From f4809dd2067c6b5424559fe1c0235ed4c002b670 Mon Sep 17 00:00:00 2001 From: stuqdog Date: Wed, 29 Jan 2025 15:17:40 +0000 Subject: [PATCH 1/2] [WORKFLOW] Updating protos from , commit: --- src/viam/api/api_proto_tag.lock | 2 +- .../app/mltraining/v1/ml_training.grpc.pb.cc | 261 +- .../app/mltraining/v1/ml_training.grpc.pb.h | 728 +- .../api/app/mltraining/v1/ml_training.pb.cc | 6687 +- .../api/app/mltraining/v1/ml_training.pb.h | 6949 +- .../api/app/packages/v1/packages.grpc.pb.cc | 145 +- .../api/app/packages/v1/packages.grpc.pb.h | 424 +- src/viam/api/app/packages/v1/packages.pb.cc | 4745 +- src/viam/api/app/packages/v1/packages.pb.h | 4691 +- src/viam/api/app/v1/app.grpc.pb.cc | 3431 +- src/viam/api/app/v1/app.grpc.pb.h | 10967 +- src/viam/api/app/v1/app.pb.cc | 75577 +++++++------ src/viam/api/app/v1/app.pb.h | 87738 ++++++++-------- src/viam/api/app/v1/billing.grpc.pb.cc | 178 +- src/viam/api/app/v1/billing.grpc.pb.h | 526 +- src/viam/api/app/v1/billing.pb.cc | 6169 +- src/viam/api/app/v1/billing.pb.h | 5985 +- src/viam/api/app/v1/end_user.grpc.pb.cc | 195 +- src/viam/api/app/v1/end_user.grpc.pb.h | 540 +- src/viam/api/app/v1/end_user.pb.cc | 3436 +- src/viam/api/app/v1/end_user.pb.h | 3898 +- src/viam/api/app/v1/robot.grpc.pb.cc | 162 +- src/viam/api/app/v1/robot.grpc.pb.h | 446 +- src/viam/api/app/v1/robot.pb.cc | 19124 ++-- src/viam/api/app/v1/robot.pb.h | 21016 ++-- src/viam/api/buf.lock | 4 +- src/viam/api/common/v1/common.grpc.pb.cc | 26 +- src/viam/api/common/v1/common.grpc.pb.h | 35 +- src/viam/api/common/v1/common.pb.cc | 10106 +- src/viam/api/common/v1/common.pb.h | 9774 +- src/viam/api/component/arm/v1/arm.grpc.pb.cc | 360 +- src/viam/api/component/arm/v1/arm.grpc.pb.h | 1010 +- src/viam/api/component/arm/v1/arm.pb.cc | 5297 +- src/viam/api/component/arm/v1/arm.pb.h | 5374 +- .../audioinput/v1/audioinput.grpc.pb.cc | 178 +- .../audioinput/v1/audioinput.grpc.pb.h | 526 +- .../component/audioinput/v1/audioinput.pb.cc | 2671 +- .../component/audioinput/v1/audioinput.pb.h | 2468 +- .../api/component/base/v1/base.grpc.pb.cc | 327 +- src/viam/api/component/base/v1/base.grpc.pb.h | 916 +- src/viam/api/component/base/v1/base.pb.cc | 4297 +- src/viam/api/component/base/v1/base.pb.h | 4405 +- .../api/component/board/v1/board.grpc.pb.cc | 442 +- .../api/component/board/v1/board.grpc.pb.h | 1252 +- src/viam/api/component/board/v1/board.pb.cc | 8070 +- src/viam/api/component/board/v1/board.pb.h | 7974 +- .../api/component/button/v1/button.grpc.pb.cc | 144 + .../api/component/button/v1/button.grpc.pb.h | 530 + src/viam/api/component/button/v1/button.pb.cc | 427 + src/viam/api/component/button/v1/button.pb.h | 524 + .../api/component/camera/v1/camera.grpc.pb.cc | 261 +- .../api/component/camera/v1/camera.grpc.pb.h | 728 +- src/viam/api/component/camera/v1/camera.pb.cc | 6111 +- src/viam/api/component/camera/v1/camera.pb.h | 5913 +- .../component/encoder/v1/encoder.grpc.pb.cc | 195 +- .../component/encoder/v1/encoder.grpc.pb.h | 540 +- .../api/component/encoder/v1/encoder.pb.cc | 2058 +- .../api/component/encoder/v1/encoder.pb.h | 1867 +- .../api/component/gantry/v1/gantry.grpc.pb.cc | 294 +- .../api/component/gantry/v1/gantry.grpc.pb.h | 822 +- src/viam/api/component/gantry/v1/gantry.pb.cc | 3948 +- src/viam/api/component/gantry/v1/gantry.pb.h | 3683 +- .../component/generic/v1/generic.grpc.pb.cc | 96 +- .../component/generic/v1/generic.grpc.pb.h | 258 +- .../api/component/generic/v1/generic.pb.cc | 121 +- .../api/component/generic/v1/generic.pb.h | 91 +- .../component/gripper/v1/gripper.grpc.pb.cc | 228 +- .../component/gripper/v1/gripper.grpc.pb.h | 634 +- .../api/component/gripper/v1/gripper.pb.cc | 2296 +- .../api/component/gripper/v1/gripper.pb.h | 2165 +- .../v1/input_controller.grpc.pb.cc | 211 +- .../v1/input_controller.grpc.pb.h | 620 +- .../inputcontroller/v1/input_controller.pb.cc | 3913 +- .../inputcontroller/v1/input_controller.pb.h | 3935 +- .../api/component/motor/v1/motor.grpc.pb.cc | 426 +- .../api/component/motor/v1/motor.grpc.pb.h | 1176 +- src/viam/api/component/motor/v1/motor.pb.cc | 6123 +- src/viam/api/component/motor/v1/motor.pb.h | 5787 +- .../v1/movementsensor.grpc.pb.cc | 393 +- .../v1/movementsensor.grpc.pb.h | 1084 +- .../movementsensor/v1/movementsensor.pb.cc | 6077 +- .../movementsensor/v1/movementsensor.pb.h | 5476 +- .../posetracker/v1/pose_tracker.grpc.pb.cc | 129 +- .../posetracker/v1/pose_tracker.grpc.pb.h | 352 +- .../posetracker/v1/pose_tracker.pb.cc | 941 +- .../posetracker/v1/pose_tracker.pb.h | 732 +- .../powersensor/v1/powersensor.grpc.pb.cc | 195 +- .../powersensor/v1/powersensor.grpc.pb.h | 540 +- .../powersensor/v1/powersensor.pb.cc | 2142 +- .../component/powersensor/v1/powersensor.pb.h | 1804 +- .../api/component/sensor/v1/sensor.grpc.pb.cc | 129 +- .../api/component/sensor/v1/sensor.grpc.pb.h | 352 +- src/viam/api/component/sensor/v1/sensor.pb.cc | 128 +- src/viam/api/component/sensor/v1/sensor.pb.h | 91 +- .../api/component/servo/v1/servo.grpc.pb.cc | 228 +- .../api/component/servo/v1/servo.grpc.pb.h | 634 +- src/viam/api/component/servo/v1/servo.pb.cc | 2533 +- src/viam/api/component/servo/v1/servo.pb.h | 2393 +- .../api/component/switch/v1/switch.grpc.pb.cc | 238 + .../api/component/switch/v1/switch.grpc.pb.h | 964 + src/viam/api/component/switch/v1/switch.pb.cc | 1412 + src/viam/api/component/switch/v1/switch.pb.h | 1527 + .../component/testecho/v1/testecho.grpc.pb.cc | 128 +- .../component/testecho/v1/testecho.grpc.pb.h | 404 +- .../api/component/testecho/v1/testecho.pb.cc | 2381 +- .../api/component/testecho/v1/testecho.pb.h | 2008 +- .../api/google/api/annotations.grpc.pb.cc | 26 +- src/viam/api/google/api/annotations.grpc.pb.h | 35 +- src/viam/api/google/api/annotations.pb.cc | 113 +- src/viam/api/google/api/annotations.pb.h | 97 +- src/viam/api/google/api/client.grpc.pb.cc | 26 +- src/viam/api/google/api/client.grpc.pb.h | 35 +- src/viam/api/google/api/client.pb.cc | 7406 +- src/viam/api/google/api/client.pb.h | 8231 +- .../api/expr/v1alpha1/checked.grpc.pb.cc | 26 +- .../api/expr/v1alpha1/checked.grpc.pb.h | 35 +- .../google/api/expr/v1alpha1/checked.pb.cc | 5475 +- .../api/google/api/expr/v1alpha1/checked.pb.h | 5799 +- .../google/api/expr/v1alpha1/eval.grpc.pb.cc | 26 +- .../google/api/expr/v1alpha1/eval.grpc.pb.h | 35 +- .../api/google/api/expr/v1alpha1/eval.pb.cc | 1693 +- .../api/google/api/expr/v1alpha1/eval.pb.h | 1527 +- .../api/expr/v1alpha1/explain.grpc.pb.cc | 26 +- .../api/expr/v1alpha1/explain.grpc.pb.h | 35 +- .../google/api/expr/v1alpha1/explain.pb.cc | 708 +- .../api/google/api/expr/v1alpha1/explain.pb.h | 512 +- .../api/expr/v1alpha1/syntax.grpc.pb.cc | 26 +- .../google/api/expr/v1alpha1/syntax.grpc.pb.h | 35 +- .../api/google/api/expr/v1alpha1/syntax.pb.cc | 6992 +- .../api/google/api/expr/v1alpha1/syntax.pb.h | 7426 +- .../google/api/expr/v1alpha1/value.grpc.pb.cc | 26 +- .../google/api/expr/v1alpha1/value.grpc.pb.h | 35 +- .../api/google/api/expr/v1alpha1/value.pb.cc | 2185 +- .../api/google/api/expr/v1alpha1/value.pb.h | 2461 +- .../google/api/expr/v1beta1/decl.grpc.pb.cc | 26 +- .../google/api/expr/v1beta1/decl.grpc.pb.h | 35 +- .../api/google/api/expr/v1beta1/decl.pb.cc | 1811 +- .../api/google/api/expr/v1beta1/decl.pb.h | 1795 +- .../google/api/expr/v1beta1/eval.grpc.pb.cc | 26 +- .../google/api/expr/v1beta1/eval.grpc.pb.h | 35 +- .../api/google/api/expr/v1beta1/eval.pb.cc | 1971 +- .../api/google/api/expr/v1beta1/eval.pb.h | 1788 +- .../google/api/expr/v1beta1/expr.grpc.pb.cc | 26 +- .../google/api/expr/v1beta1/expr.grpc.pb.h | 35 +- .../api/google/api/expr/v1beta1/expr.pb.cc | 4828 +- .../api/google/api/expr/v1beta1/expr.pb.h | 5265 +- .../google/api/expr/v1beta1/source.grpc.pb.cc | 26 +- .../google/api/expr/v1beta1/source.grpc.pb.h | 35 +- .../api/google/api/expr/v1beta1/source.pb.cc | 1001 +- .../api/google/api/expr/v1beta1/source.pb.h | 884 +- .../google/api/expr/v1beta1/value.grpc.pb.cc | 26 +- .../google/api/expr/v1beta1/value.grpc.pb.h | 35 +- .../api/google/api/expr/v1beta1/value.pb.cc | 2184 +- .../api/google/api/expr/v1beta1/value.pb.h | 2461 +- .../api/google/api/field_behavior.grpc.pb.cc | 26 +- .../api/google/api/field_behavior.grpc.pb.h | 35 +- src/viam/api/google/api/field_behavior.pb.cc | 139 +- src/viam/api/google/api/field_behavior.pb.h | 158 +- src/viam/api/google/api/field_info.grpc.pb.cc | 26 +- src/viam/api/google/api/field_info.grpc.pb.h | 35 +- src/viam/api/google/api/field_info.pb.cc | 724 +- src/viam/api/google/api/field_info.pb.h | 723 +- src/viam/api/google/api/http.grpc.pb.cc | 26 +- src/viam/api/google/api/http.grpc.pb.h | 35 +- src/viam/api/google/api/http.pb.cc | 1536 +- src/viam/api/google/api/http.pb.h | 1594 +- src/viam/api/google/api/httpbody.grpc.pb.cc | 26 +- src/viam/api/google/api/httpbody.grpc.pb.h | 35 +- src/viam/api/google/api/httpbody.pb.cc | 491 +- src/viam/api/google/api/httpbody.pb.h | 413 +- .../api/google/api/launch_stage.grpc.pb.cc | 26 +- .../api/google/api/launch_stage.grpc.pb.h | 35 +- src/viam/api/google/api/launch_stage.pb.cc | 119 +- src/viam/api/google/api/launch_stage.pb.h | 152 +- src/viam/api/google/api/resource.grpc.pb.cc | 26 +- src/viam/api/google/api/resource.grpc.pb.h | 35 +- src/viam/api/google/api/resource.pb.cc | 1175 +- src/viam/api/google/api/resource.pb.h | 1363 +- src/viam/api/google/api/visibility.grpc.pb.cc | 26 +- src/viam/api/google/api/visibility.grpc.pb.h | 35 +- src/viam/api/google/api/visibility.pb.cc | 776 +- src/viam/api/google/api/visibility.pb.h | 668 +- src/viam/api/google/rpc/code.grpc.pb.cc | 26 +- src/viam/api/google/rpc/code.grpc.pb.h | 35 +- src/viam/api/google/rpc/code.pb.cc | 136 +- src/viam/api/google/rpc/code.pb.h | 152 +- .../rpc/context/attribute_context.grpc.pb.cc | 26 +- .../rpc/context/attribute_context.grpc.pb.h | 35 +- .../rpc/context/attribute_context.pb.cc | 5719 +- .../google/rpc/context/attribute_context.pb.h | 6322 +- .../api/google/rpc/error_details.grpc.pb.cc | 26 +- .../api/google/rpc/error_details.grpc.pb.h | 35 +- src/viam/api/google/rpc/error_details.pb.cc | 5076 +- src/viam/api/google/rpc/error_details.pb.h | 4740 +- src/viam/api/google/rpc/status.grpc.pb.cc | 26 +- src/viam/api/google/rpc/status.grpc.pb.h | 35 +- src/viam/api/google/rpc/status.pb.cc | 470 +- src/viam/api/google/rpc/status.pb.h | 380 +- src/viam/api/module/v1/module.grpc.pb.cc | 195 +- src/viam/api/module/v1/module.grpc.pb.h | 540 +- src/viam/api/module/v1/module.pb.cc | 3295 +- src/viam/api/module/v1/module.pb.h | 3269 +- .../rpc/examples/echo/v1/echo.grpc.pb.cc | 95 +- .../proto/rpc/examples/echo/v1/echo.grpc.pb.h | 310 +- .../api/proto/rpc/examples/echo/v1/echo.pb.cc | 1833 +- .../api/proto/rpc/examples/echo/v1/echo.pb.h | 1411 +- .../echoresource/v1/echoresource.grpc.pb.cc | 95 +- .../echoresource/v1/echoresource.grpc.pb.h | 310 +- .../echoresource/v1/echoresource.pb.cc | 2028 +- .../echoresource/v1/echoresource.pb.h | 1684 +- src/viam/api/proto/rpc/v1/auth.grpc.pb.cc | 100 +- src/viam/api/proto/rpc/v1/auth.grpc.pb.h | 293 +- src/viam/api/proto/rpc/v1/auth.pb.cc | 1689 +- src/viam/api/proto/rpc/v1/auth.pb.h | 1431 +- .../api/proto/rpc/webrtc/v1/grpc.grpc.pb.cc | 26 +- .../api/proto/rpc/webrtc/v1/grpc.grpc.pb.h | 35 +- src/viam/api/proto/rpc/webrtc/v1/grpc.pb.cc | 4168 +- src/viam/api/proto/rpc/webrtc/v1/grpc.pb.h | 4023 +- .../proto/rpc/webrtc/v1/signaling.grpc.pb.cc | 128 +- .../proto/rpc/webrtc/v1/signaling.grpc.pb.h | 404 +- .../api/proto/rpc/webrtc/v1/signaling.pb.cc | 6998 +- .../api/proto/rpc/webrtc/v1/signaling.pb.h | 7432 +- src/viam/api/robot/v1/robot.grpc.pb.cc | 815 +- src/viam/api/robot/v1/robot.grpc.pb.h | 2633 +- src/viam/api/robot/v1/robot.pb.cc | 17057 +-- src/viam/api/robot/v1/robot.pb.h | 16812 ++- .../datamanager/v1/data_manager.grpc.pb.cc | 96 +- .../datamanager/v1/data_manager.grpc.pb.h | 258 +- .../service/datamanager/v1/data_manager.pb.cc | 575 +- .../service/datamanager/v1/data_manager.pb.h | 633 +- .../service/discovery/v1/discovery.grpc.pb.cc | 144 + .../service/discovery/v1/discovery.grpc.pb.h | 529 + .../api/service/discovery/v1/discovery.pb.cc | 576 + .../api/service/discovery/v1/discovery.pb.h | 597 + .../api/service/generic/v1/generic.grpc.pb.cc | 63 +- .../api/service/generic/v1/generic.grpc.pb.h | 162 +- src/viam/api/service/generic/v1/generic.pb.cc | 113 +- src/viam/api/service/generic/v1/generic.pb.h | 91 +- .../api/service/mlmodel/v1/mlmodel.grpc.pb.cc | 96 +- .../api/service/mlmodel/v1/mlmodel.grpc.pb.h | 258 +- src/viam/api/service/mlmodel/v1/mlmodel.pb.cc | 7179 +- src/viam/api/service/mlmodel/v1/mlmodel.pb.h | 7183 +- .../api/service/motion/v1/motion.grpc.pb.cc | 294 +- .../api/service/motion/v1/motion.grpc.pb.h | 822 +- src/viam/api/service/motion/v1/motion.pb.cc | 11655 +- src/viam/api/service/motion/v1/motion.pb.h | 12034 +-- .../navigation/v1/navigation.grpc.pb.cc | 360 +- .../navigation/v1/navigation.grpc.pb.h | 1010 +- .../service/navigation/v1/navigation.pb.cc | 6332 +- .../api/service/navigation/v1/navigation.pb.h | 6151 +- .../api/service/sensors/v1/sensors.grpc.pb.cc | 129 +- .../api/service/sensors/v1/sensors.grpc.pb.h | 352 +- src/viam/api/service/sensors/v1/sensors.pb.cc | 1923 +- src/viam/api/service/sensors/v1/sensors.pb.h | 1624 +- .../api/service/shell/v1/shell.grpc.pb.cc | 111 +- src/viam/api/service/shell/v1/shell.grpc.pb.h | 362 +- src/viam/api/service/shell/v1/shell.pb.cc | 4244 +- src/viam/api/service/shell/v1/shell.pb.h | 4051 +- src/viam/api/service/slam/v1/slam.grpc.pb.cc | 161 +- src/viam/api/service/slam/v1/slam.grpc.pb.h | 512 +- src/viam/api/service/slam/v1/slam.pb.cc | 3025 +- src/viam/api/service/slam/v1/slam.pb.h | 2391 +- .../api/service/vision/v1/vision.grpc.pb.cc | 294 +- .../api/service/vision/v1/vision.grpc.pb.h | 822 +- src/viam/api/service/vision/v1/vision.pb.cc | 7001 +- src/viam/api/service/vision/v1/vision.pb.h | 6769 +- src/viam/api/tagger/v1/tagger.grpc.pb.cc | 26 +- src/viam/api/tagger/v1/tagger.grpc.pb.h | 35 +- src/viam/api/tagger/v1/tagger.pb.cc | 113 +- src/viam/api/tagger/v1/tagger.pb.h | 101 +- 270 files changed, 356323 insertions(+), 344157 deletions(-) create mode 100644 src/viam/api/component/button/v1/button.grpc.pb.cc create mode 100644 src/viam/api/component/button/v1/button.grpc.pb.h create mode 100644 src/viam/api/component/button/v1/button.pb.cc create mode 100644 src/viam/api/component/button/v1/button.pb.h create mode 100644 src/viam/api/component/switch/v1/switch.grpc.pb.cc create mode 100644 src/viam/api/component/switch/v1/switch.grpc.pb.h create mode 100644 src/viam/api/component/switch/v1/switch.pb.cc create mode 100644 src/viam/api/component/switch/v1/switch.pb.h create mode 100644 src/viam/api/service/discovery/v1/discovery.grpc.pb.cc create mode 100644 src/viam/api/service/discovery/v1/discovery.grpc.pb.h create mode 100644 src/viam/api/service/discovery/v1/discovery.pb.cc create mode 100644 src/viam/api/service/discovery/v1/discovery.pb.h diff --git a/src/viam/api/api_proto_tag.lock b/src/viam/api/api_proto_tag.lock index 6a44d166b..8b1378917 100644 --- a/src/viam/api/api_proto_tag.lock +++ b/src/viam/api/api_proto_tag.lock @@ -1 +1 @@ -v0.1.363 + diff --git a/src/viam/api/app/mltraining/v1/ml_training.grpc.pb.cc b/src/viam/api/app/mltraining/v1/ml_training.grpc.pb.cc index 0e4533b2b..4230c9aea 100644 --- a/src/viam/api/app/mltraining/v1/ml_training.grpc.pb.cc +++ b/src/viam/api/app/mltraining/v1/ml_training.grpc.pb.cc @@ -6,19 +6,19 @@ #include "app/mltraining/v1/ml_training.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace app { namespace mltraining { @@ -36,188 +36,223 @@ static const char* MLTrainingService_method_names[] = { std::unique_ptr< MLTrainingService::Stub> MLTrainingService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { (void)options; - std::unique_ptr< MLTrainingService::Stub> stub(new MLTrainingService::Stub(channel, options)); + std::unique_ptr< MLTrainingService::Stub> stub(new MLTrainingService::Stub(channel)); return stub; } -MLTrainingService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) - : channel_(channel), rpcmethod_SubmitTrainingJob_(MLTrainingService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_SubmitCustomTrainingJob_(MLTrainingService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetTrainingJob_(MLTrainingService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_ListTrainingJobs_(MLTrainingService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_CancelTrainingJob_(MLTrainingService_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_DeleteCompletedTrainingJob_(MLTrainingService_method_names[5], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetTrainingJobLogs_(MLTrainingService_method_names[6], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) +MLTrainingService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_SubmitTrainingJob_(MLTrainingService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_SubmitCustomTrainingJob_(MLTrainingService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetTrainingJob_(MLTrainingService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListTrainingJobs_(MLTrainingService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_CancelTrainingJob_(MLTrainingService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DeleteCompletedTrainingJob_(MLTrainingService_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetTrainingJobLogs_(MLTrainingService_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status MLTrainingService::Stub::SubmitTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::SubmitTrainingJobRequest& request, ::viam::app::mltraining::v1::SubmitTrainingJobResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::mltraining::v1::SubmitTrainingJobRequest, ::viam::app::mltraining::v1::SubmitTrainingJobResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_SubmitTrainingJob_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_SubmitTrainingJob_, context, request, response); } -void MLTrainingService::Stub::async::SubmitTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::SubmitTrainingJobRequest* request, ::viam::app::mltraining::v1::SubmitTrainingJobResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::mltraining::v1::SubmitTrainingJobRequest, ::viam::app::mltraining::v1::SubmitTrainingJobResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SubmitTrainingJob_, context, request, response, std::move(f)); +void MLTrainingService::Stub::experimental_async::SubmitTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::SubmitTrainingJobRequest* request, ::viam::app::mltraining::v1::SubmitTrainingJobResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SubmitTrainingJob_, context, request, response, std::move(f)); } -void MLTrainingService::Stub::async::SubmitTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::SubmitTrainingJobRequest* request, ::viam::app::mltraining::v1::SubmitTrainingJobResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SubmitTrainingJob_, context, request, response, reactor); +void MLTrainingService::Stub::experimental_async::SubmitTrainingJob(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::mltraining::v1::SubmitTrainingJobResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SubmitTrainingJob_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::mltraining::v1::SubmitTrainingJobResponse>* MLTrainingService::Stub::PrepareAsyncSubmitTrainingJobRaw(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::SubmitTrainingJobRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::mltraining::v1::SubmitTrainingJobResponse, ::viam::app::mltraining::v1::SubmitTrainingJobRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_SubmitTrainingJob_, context, request); +void MLTrainingService::Stub::experimental_async::SubmitTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::SubmitTrainingJobRequest* request, ::viam::app::mltraining::v1::SubmitTrainingJobResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SubmitTrainingJob_, context, request, response, reactor); +} + +void MLTrainingService::Stub::experimental_async::SubmitTrainingJob(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::mltraining::v1::SubmitTrainingJobResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SubmitTrainingJob_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::app::mltraining::v1::SubmitTrainingJobResponse>* MLTrainingService::Stub::AsyncSubmitTrainingJobRaw(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::SubmitTrainingJobRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncSubmitTrainingJobRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::mltraining::v1::SubmitTrainingJobResponse>::Create(channel_.get(), cq, rpcmethod_SubmitTrainingJob_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::mltraining::v1::SubmitTrainingJobResponse>* MLTrainingService::Stub::PrepareAsyncSubmitTrainingJobRaw(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::SubmitTrainingJobRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::mltraining::v1::SubmitTrainingJobResponse>::Create(channel_.get(), cq, rpcmethod_SubmitTrainingJob_, context, request, false); } ::grpc::Status MLTrainingService::Stub::SubmitCustomTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest& request, ::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest, ::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_SubmitCustomTrainingJob_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_SubmitCustomTrainingJob_, context, request, response); } -void MLTrainingService::Stub::async::SubmitCustomTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest* request, ::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest, ::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SubmitCustomTrainingJob_, context, request, response, std::move(f)); +void MLTrainingService::Stub::experimental_async::SubmitCustomTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest* request, ::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SubmitCustomTrainingJob_, context, request, response, std::move(f)); } -void MLTrainingService::Stub::async::SubmitCustomTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest* request, ::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SubmitCustomTrainingJob_, context, request, response, reactor); +void MLTrainingService::Stub::experimental_async::SubmitCustomTrainingJob(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SubmitCustomTrainingJob_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse>* MLTrainingService::Stub::PrepareAsyncSubmitCustomTrainingJobRaw(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse, ::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_SubmitCustomTrainingJob_, context, request); +void MLTrainingService::Stub::experimental_async::SubmitCustomTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest* request, ::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SubmitCustomTrainingJob_, context, request, response, reactor); +} + +void MLTrainingService::Stub::experimental_async::SubmitCustomTrainingJob(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SubmitCustomTrainingJob_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse>* MLTrainingService::Stub::AsyncSubmitCustomTrainingJobRaw(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncSubmitCustomTrainingJobRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse>::Create(channel_.get(), cq, rpcmethod_SubmitCustomTrainingJob_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse>* MLTrainingService::Stub::PrepareAsyncSubmitCustomTrainingJobRaw(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse>::Create(channel_.get(), cq, rpcmethod_SubmitCustomTrainingJob_, context, request, false); } ::grpc::Status MLTrainingService::Stub::GetTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::GetTrainingJobRequest& request, ::viam::app::mltraining::v1::GetTrainingJobResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::mltraining::v1::GetTrainingJobRequest, ::viam::app::mltraining::v1::GetTrainingJobResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetTrainingJob_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetTrainingJob_, context, request, response); } -void MLTrainingService::Stub::async::GetTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::GetTrainingJobRequest* request, ::viam::app::mltraining::v1::GetTrainingJobResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::mltraining::v1::GetTrainingJobRequest, ::viam::app::mltraining::v1::GetTrainingJobResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetTrainingJob_, context, request, response, std::move(f)); +void MLTrainingService::Stub::experimental_async::GetTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::GetTrainingJobRequest* request, ::viam::app::mltraining::v1::GetTrainingJobResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetTrainingJob_, context, request, response, std::move(f)); } -void MLTrainingService::Stub::async::GetTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::GetTrainingJobRequest* request, ::viam::app::mltraining::v1::GetTrainingJobResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetTrainingJob_, context, request, response, reactor); +void MLTrainingService::Stub::experimental_async::GetTrainingJob(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::mltraining::v1::GetTrainingJobResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetTrainingJob_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::mltraining::v1::GetTrainingJobResponse>* MLTrainingService::Stub::PrepareAsyncGetTrainingJobRaw(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::GetTrainingJobRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::mltraining::v1::GetTrainingJobResponse, ::viam::app::mltraining::v1::GetTrainingJobRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetTrainingJob_, context, request); +void MLTrainingService::Stub::experimental_async::GetTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::GetTrainingJobRequest* request, ::viam::app::mltraining::v1::GetTrainingJobResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetTrainingJob_, context, request, response, reactor); +} + +void MLTrainingService::Stub::experimental_async::GetTrainingJob(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::mltraining::v1::GetTrainingJobResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetTrainingJob_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::app::mltraining::v1::GetTrainingJobResponse>* MLTrainingService::Stub::AsyncGetTrainingJobRaw(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::GetTrainingJobRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetTrainingJobRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::mltraining::v1::GetTrainingJobResponse>::Create(channel_.get(), cq, rpcmethod_GetTrainingJob_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::mltraining::v1::GetTrainingJobResponse>* MLTrainingService::Stub::PrepareAsyncGetTrainingJobRaw(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::GetTrainingJobRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::mltraining::v1::GetTrainingJobResponse>::Create(channel_.get(), cq, rpcmethod_GetTrainingJob_, context, request, false); } ::grpc::Status MLTrainingService::Stub::ListTrainingJobs(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::ListTrainingJobsRequest& request, ::viam::app::mltraining::v1::ListTrainingJobsResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::mltraining::v1::ListTrainingJobsRequest, ::viam::app::mltraining::v1::ListTrainingJobsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ListTrainingJobs_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListTrainingJobs_, context, request, response); } -void MLTrainingService::Stub::async::ListTrainingJobs(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::ListTrainingJobsRequest* request, ::viam::app::mltraining::v1::ListTrainingJobsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::mltraining::v1::ListTrainingJobsRequest, ::viam::app::mltraining::v1::ListTrainingJobsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListTrainingJobs_, context, request, response, std::move(f)); +void MLTrainingService::Stub::experimental_async::ListTrainingJobs(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::ListTrainingJobsRequest* request, ::viam::app::mltraining::v1::ListTrainingJobsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListTrainingJobs_, context, request, response, std::move(f)); } -void MLTrainingService::Stub::async::ListTrainingJobs(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::ListTrainingJobsRequest* request, ::viam::app::mltraining::v1::ListTrainingJobsResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListTrainingJobs_, context, request, response, reactor); +void MLTrainingService::Stub::experimental_async::ListTrainingJobs(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::mltraining::v1::ListTrainingJobsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListTrainingJobs_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::mltraining::v1::ListTrainingJobsResponse>* MLTrainingService::Stub::PrepareAsyncListTrainingJobsRaw(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::ListTrainingJobsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::mltraining::v1::ListTrainingJobsResponse, ::viam::app::mltraining::v1::ListTrainingJobsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ListTrainingJobs_, context, request); +void MLTrainingService::Stub::experimental_async::ListTrainingJobs(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::ListTrainingJobsRequest* request, ::viam::app::mltraining::v1::ListTrainingJobsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListTrainingJobs_, context, request, response, reactor); +} + +void MLTrainingService::Stub::experimental_async::ListTrainingJobs(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::mltraining::v1::ListTrainingJobsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListTrainingJobs_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::app::mltraining::v1::ListTrainingJobsResponse>* MLTrainingService::Stub::AsyncListTrainingJobsRaw(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::ListTrainingJobsRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncListTrainingJobsRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::mltraining::v1::ListTrainingJobsResponse>::Create(channel_.get(), cq, rpcmethod_ListTrainingJobs_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::mltraining::v1::ListTrainingJobsResponse>* MLTrainingService::Stub::PrepareAsyncListTrainingJobsRaw(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::ListTrainingJobsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::mltraining::v1::ListTrainingJobsResponse>::Create(channel_.get(), cq, rpcmethod_ListTrainingJobs_, context, request, false); } ::grpc::Status MLTrainingService::Stub::CancelTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::CancelTrainingJobRequest& request, ::viam::app::mltraining::v1::CancelTrainingJobResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::mltraining::v1::CancelTrainingJobRequest, ::viam::app::mltraining::v1::CancelTrainingJobResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_CancelTrainingJob_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CancelTrainingJob_, context, request, response); } -void MLTrainingService::Stub::async::CancelTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::CancelTrainingJobRequest* request, ::viam::app::mltraining::v1::CancelTrainingJobResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::mltraining::v1::CancelTrainingJobRequest, ::viam::app::mltraining::v1::CancelTrainingJobResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_CancelTrainingJob_, context, request, response, std::move(f)); +void MLTrainingService::Stub::experimental_async::CancelTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::CancelTrainingJobRequest* request, ::viam::app::mltraining::v1::CancelTrainingJobResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CancelTrainingJob_, context, request, response, std::move(f)); } -void MLTrainingService::Stub::async::CancelTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::CancelTrainingJobRequest* request, ::viam::app::mltraining::v1::CancelTrainingJobResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_CancelTrainingJob_, context, request, response, reactor); +void MLTrainingService::Stub::experimental_async::CancelTrainingJob(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::mltraining::v1::CancelTrainingJobResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CancelTrainingJob_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::mltraining::v1::CancelTrainingJobResponse>* MLTrainingService::Stub::PrepareAsyncCancelTrainingJobRaw(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::CancelTrainingJobRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::mltraining::v1::CancelTrainingJobResponse, ::viam::app::mltraining::v1::CancelTrainingJobRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_CancelTrainingJob_, context, request); +void MLTrainingService::Stub::experimental_async::CancelTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::CancelTrainingJobRequest* request, ::viam::app::mltraining::v1::CancelTrainingJobResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CancelTrainingJob_, context, request, response, reactor); +} + +void MLTrainingService::Stub::experimental_async::CancelTrainingJob(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::mltraining::v1::CancelTrainingJobResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CancelTrainingJob_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::app::mltraining::v1::CancelTrainingJobResponse>* MLTrainingService::Stub::AsyncCancelTrainingJobRaw(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::CancelTrainingJobRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncCancelTrainingJobRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::mltraining::v1::CancelTrainingJobResponse>::Create(channel_.get(), cq, rpcmethod_CancelTrainingJob_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::mltraining::v1::CancelTrainingJobResponse>* MLTrainingService::Stub::PrepareAsyncCancelTrainingJobRaw(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::CancelTrainingJobRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::mltraining::v1::CancelTrainingJobResponse>::Create(channel_.get(), cq, rpcmethod_CancelTrainingJob_, context, request, false); } ::grpc::Status MLTrainingService::Stub::DeleteCompletedTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::DeleteCompletedTrainingJobRequest& request, ::viam::app::mltraining::v1::DeleteCompletedTrainingJobResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::mltraining::v1::DeleteCompletedTrainingJobRequest, ::viam::app::mltraining::v1::DeleteCompletedTrainingJobResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_DeleteCompletedTrainingJob_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DeleteCompletedTrainingJob_, context, request, response); } -void MLTrainingService::Stub::async::DeleteCompletedTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::DeleteCompletedTrainingJobRequest* request, ::viam::app::mltraining::v1::DeleteCompletedTrainingJobResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::mltraining::v1::DeleteCompletedTrainingJobRequest, ::viam::app::mltraining::v1::DeleteCompletedTrainingJobResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DeleteCompletedTrainingJob_, context, request, response, std::move(f)); +void MLTrainingService::Stub::experimental_async::DeleteCompletedTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::DeleteCompletedTrainingJobRequest* request, ::viam::app::mltraining::v1::DeleteCompletedTrainingJobResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteCompletedTrainingJob_, context, request, response, std::move(f)); } -void MLTrainingService::Stub::async::DeleteCompletedTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::DeleteCompletedTrainingJobRequest* request, ::viam::app::mltraining::v1::DeleteCompletedTrainingJobResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DeleteCompletedTrainingJob_, context, request, response, reactor); +void MLTrainingService::Stub::experimental_async::DeleteCompletedTrainingJob(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::mltraining::v1::DeleteCompletedTrainingJobResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteCompletedTrainingJob_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::mltraining::v1::DeleteCompletedTrainingJobResponse>* MLTrainingService::Stub::PrepareAsyncDeleteCompletedTrainingJobRaw(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::DeleteCompletedTrainingJobRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::mltraining::v1::DeleteCompletedTrainingJobResponse, ::viam::app::mltraining::v1::DeleteCompletedTrainingJobRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DeleteCompletedTrainingJob_, context, request); +void MLTrainingService::Stub::experimental_async::DeleteCompletedTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::DeleteCompletedTrainingJobRequest* request, ::viam::app::mltraining::v1::DeleteCompletedTrainingJobResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteCompletedTrainingJob_, context, request, response, reactor); +} + +void MLTrainingService::Stub::experimental_async::DeleteCompletedTrainingJob(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::mltraining::v1::DeleteCompletedTrainingJobResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteCompletedTrainingJob_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::app::mltraining::v1::DeleteCompletedTrainingJobResponse>* MLTrainingService::Stub::AsyncDeleteCompletedTrainingJobRaw(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::DeleteCompletedTrainingJobRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncDeleteCompletedTrainingJobRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::mltraining::v1::DeleteCompletedTrainingJobResponse>::Create(channel_.get(), cq, rpcmethod_DeleteCompletedTrainingJob_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::mltraining::v1::DeleteCompletedTrainingJobResponse>* MLTrainingService::Stub::PrepareAsyncDeleteCompletedTrainingJobRaw(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::DeleteCompletedTrainingJobRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::mltraining::v1::DeleteCompletedTrainingJobResponse>::Create(channel_.get(), cq, rpcmethod_DeleteCompletedTrainingJob_, context, request, false); } ::grpc::Status MLTrainingService::Stub::GetTrainingJobLogs(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::GetTrainingJobLogsRequest& request, ::viam::app::mltraining::v1::GetTrainingJobLogsResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::mltraining::v1::GetTrainingJobLogsRequest, ::viam::app::mltraining::v1::GetTrainingJobLogsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetTrainingJobLogs_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetTrainingJobLogs_, context, request, response); } -void MLTrainingService::Stub::async::GetTrainingJobLogs(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::GetTrainingJobLogsRequest* request, ::viam::app::mltraining::v1::GetTrainingJobLogsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::mltraining::v1::GetTrainingJobLogsRequest, ::viam::app::mltraining::v1::GetTrainingJobLogsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetTrainingJobLogs_, context, request, response, std::move(f)); +void MLTrainingService::Stub::experimental_async::GetTrainingJobLogs(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::GetTrainingJobLogsRequest* request, ::viam::app::mltraining::v1::GetTrainingJobLogsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetTrainingJobLogs_, context, request, response, std::move(f)); } -void MLTrainingService::Stub::async::GetTrainingJobLogs(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::GetTrainingJobLogsRequest* request, ::viam::app::mltraining::v1::GetTrainingJobLogsResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetTrainingJobLogs_, context, request, response, reactor); +void MLTrainingService::Stub::experimental_async::GetTrainingJobLogs(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::mltraining::v1::GetTrainingJobLogsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetTrainingJobLogs_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::mltraining::v1::GetTrainingJobLogsResponse>* MLTrainingService::Stub::PrepareAsyncGetTrainingJobLogsRaw(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::GetTrainingJobLogsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::mltraining::v1::GetTrainingJobLogsResponse, ::viam::app::mltraining::v1::GetTrainingJobLogsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetTrainingJobLogs_, context, request); +void MLTrainingService::Stub::experimental_async::GetTrainingJobLogs(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::GetTrainingJobLogsRequest* request, ::viam::app::mltraining::v1::GetTrainingJobLogsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetTrainingJobLogs_, context, request, response, reactor); +} + +void MLTrainingService::Stub::experimental_async::GetTrainingJobLogs(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::mltraining::v1::GetTrainingJobLogsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetTrainingJobLogs_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::app::mltraining::v1::GetTrainingJobLogsResponse>* MLTrainingService::Stub::AsyncGetTrainingJobLogsRaw(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::GetTrainingJobLogsRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetTrainingJobLogsRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::mltraining::v1::GetTrainingJobLogsResponse>::Create(channel_.get(), cq, rpcmethod_GetTrainingJobLogs_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::mltraining::v1::GetTrainingJobLogsResponse>* MLTrainingService::Stub::PrepareAsyncGetTrainingJobLogsRaw(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::GetTrainingJobLogsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::mltraining::v1::GetTrainingJobLogsResponse>::Create(channel_.get(), cq, rpcmethod_GetTrainingJobLogs_, context, request, false); } MLTrainingService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( MLTrainingService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< MLTrainingService::Service, ::viam::app::mltraining::v1::SubmitTrainingJobRequest, ::viam::app::mltraining::v1::SubmitTrainingJobResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< MLTrainingService::Service, ::viam::app::mltraining::v1::SubmitTrainingJobRequest, ::viam::app::mltraining::v1::SubmitTrainingJobResponse>( [](MLTrainingService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::mltraining::v1::SubmitTrainingJobRequest* req, ::viam::app::mltraining::v1::SubmitTrainingJobResponse* resp) { return service->SubmitTrainingJob(ctx, req, resp); @@ -225,9 +260,9 @@ MLTrainingService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( MLTrainingService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< MLTrainingService::Service, ::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest, ::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< MLTrainingService::Service, ::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest, ::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse>( [](MLTrainingService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest* req, ::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse* resp) { return service->SubmitCustomTrainingJob(ctx, req, resp); @@ -235,9 +270,9 @@ MLTrainingService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( MLTrainingService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< MLTrainingService::Service, ::viam::app::mltraining::v1::GetTrainingJobRequest, ::viam::app::mltraining::v1::GetTrainingJobResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< MLTrainingService::Service, ::viam::app::mltraining::v1::GetTrainingJobRequest, ::viam::app::mltraining::v1::GetTrainingJobResponse>( [](MLTrainingService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::mltraining::v1::GetTrainingJobRequest* req, ::viam::app::mltraining::v1::GetTrainingJobResponse* resp) { return service->GetTrainingJob(ctx, req, resp); @@ -245,9 +280,9 @@ MLTrainingService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( MLTrainingService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< MLTrainingService::Service, ::viam::app::mltraining::v1::ListTrainingJobsRequest, ::viam::app::mltraining::v1::ListTrainingJobsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< MLTrainingService::Service, ::viam::app::mltraining::v1::ListTrainingJobsRequest, ::viam::app::mltraining::v1::ListTrainingJobsResponse>( [](MLTrainingService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::mltraining::v1::ListTrainingJobsRequest* req, ::viam::app::mltraining::v1::ListTrainingJobsResponse* resp) { return service->ListTrainingJobs(ctx, req, resp); @@ -255,9 +290,9 @@ MLTrainingService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( MLTrainingService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< MLTrainingService::Service, ::viam::app::mltraining::v1::CancelTrainingJobRequest, ::viam::app::mltraining::v1::CancelTrainingJobResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< MLTrainingService::Service, ::viam::app::mltraining::v1::CancelTrainingJobRequest, ::viam::app::mltraining::v1::CancelTrainingJobResponse>( [](MLTrainingService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::mltraining::v1::CancelTrainingJobRequest* req, ::viam::app::mltraining::v1::CancelTrainingJobResponse* resp) { return service->CancelTrainingJob(ctx, req, resp); @@ -265,9 +300,9 @@ MLTrainingService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( MLTrainingService_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< MLTrainingService::Service, ::viam::app::mltraining::v1::DeleteCompletedTrainingJobRequest, ::viam::app::mltraining::v1::DeleteCompletedTrainingJobResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< MLTrainingService::Service, ::viam::app::mltraining::v1::DeleteCompletedTrainingJobRequest, ::viam::app::mltraining::v1::DeleteCompletedTrainingJobResponse>( [](MLTrainingService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::mltraining::v1::DeleteCompletedTrainingJobRequest* req, ::viam::app::mltraining::v1::DeleteCompletedTrainingJobResponse* resp) { return service->DeleteCompletedTrainingJob(ctx, req, resp); @@ -275,9 +310,9 @@ MLTrainingService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( MLTrainingService_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< MLTrainingService::Service, ::viam::app::mltraining::v1::GetTrainingJobLogsRequest, ::viam::app::mltraining::v1::GetTrainingJobLogsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< MLTrainingService::Service, ::viam::app::mltraining::v1::GetTrainingJobLogsRequest, ::viam::app::mltraining::v1::GetTrainingJobLogsResponse>( [](MLTrainingService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::mltraining::v1::GetTrainingJobLogsRequest* req, ::viam::app::mltraining::v1::GetTrainingJobLogsResponse* resp) { return service->GetTrainingJobLogs(ctx, req, resp); diff --git a/src/viam/api/app/mltraining/v1/ml_training.grpc.pb.h b/src/viam/api/app/mltraining/v1/ml_training.grpc.pb.h index 44b2279f2..06a395b0b 100644 --- a/src/viam/api/app/mltraining/v1/ml_training.grpc.pb.h +++ b/src/viam/api/app/mltraining/v1/ml_training.grpc.pb.h @@ -7,23 +7,24 @@ #include "app/mltraining/v1/ml_training.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace app { @@ -94,35 +95,109 @@ class MLTrainingService final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::mltraining::v1::GetTrainingJobLogsResponse>> PrepareAsyncGetTrainingJobLogs(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::GetTrainingJobLogsRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::mltraining::v1::GetTrainingJobLogsResponse>>(PrepareAsyncGetTrainingJobLogsRaw(context, request, cq)); } - class async_interface { + class experimental_async_interface { public: - virtual ~async_interface() {} + virtual ~experimental_async_interface() {} // SubmitTrainingJob submits a training job request. virtual void SubmitTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::SubmitTrainingJobRequest* request, ::viam::app::mltraining::v1::SubmitTrainingJobResponse* response, std::function) = 0; + virtual void SubmitTrainingJob(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::mltraining::v1::SubmitTrainingJobResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void SubmitTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::SubmitTrainingJobRequest* request, ::viam::app::mltraining::v1::SubmitTrainingJobResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void SubmitTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::SubmitTrainingJobRequest* request, ::viam::app::mltraining::v1::SubmitTrainingJobResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void SubmitTrainingJob(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::mltraining::v1::SubmitTrainingJobResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void SubmitTrainingJob(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::mltraining::v1::SubmitTrainingJobResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // SubmitCustomTrainingJob submits a custom training job request. virtual void SubmitCustomTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest* request, ::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse* response, std::function) = 0; + virtual void SubmitCustomTrainingJob(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void SubmitCustomTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest* request, ::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void SubmitCustomTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest* request, ::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void SubmitCustomTrainingJob(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void SubmitCustomTrainingJob(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // GetTrainingJob retrieves a training job by its ID. virtual void GetTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::GetTrainingJobRequest* request, ::viam::app::mltraining::v1::GetTrainingJobResponse* response, std::function) = 0; + virtual void GetTrainingJob(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::mltraining::v1::GetTrainingJobResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::GetTrainingJobRequest* request, ::viam::app::mltraining::v1::GetTrainingJobResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::GetTrainingJobRequest* request, ::viam::app::mltraining::v1::GetTrainingJobResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetTrainingJob(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::mltraining::v1::GetTrainingJobResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetTrainingJob(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::mltraining::v1::GetTrainingJobResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // ListTrainingJobs lists training jobs for a given organization ID and training status. virtual void ListTrainingJobs(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::ListTrainingJobsRequest* request, ::viam::app::mltraining::v1::ListTrainingJobsResponse* response, std::function) = 0; + virtual void ListTrainingJobs(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::mltraining::v1::ListTrainingJobsResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void ListTrainingJobs(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::ListTrainingJobsRequest* request, ::viam::app::mltraining::v1::ListTrainingJobsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ListTrainingJobs(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::ListTrainingJobsRequest* request, ::viam::app::mltraining::v1::ListTrainingJobsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void ListTrainingJobs(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::mltraining::v1::ListTrainingJobsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ListTrainingJobs(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::mltraining::v1::ListTrainingJobsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // CancelTrainingJob cancels a training job that has not yet completed. virtual void CancelTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::CancelTrainingJobRequest* request, ::viam::app::mltraining::v1::CancelTrainingJobResponse* response, std::function) = 0; + virtual void CancelTrainingJob(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::mltraining::v1::CancelTrainingJobResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void CancelTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::CancelTrainingJobRequest* request, ::viam::app::mltraining::v1::CancelTrainingJobResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void CancelTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::CancelTrainingJobRequest* request, ::viam::app::mltraining::v1::CancelTrainingJobResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void CancelTrainingJob(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::mltraining::v1::CancelTrainingJobResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void CancelTrainingJob(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::mltraining::v1::CancelTrainingJobResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // DeleteCompletedTrainingJob removes a completed training job from the database, whether the job succeeded or failed. virtual void DeleteCompletedTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::DeleteCompletedTrainingJobRequest* request, ::viam::app::mltraining::v1::DeleteCompletedTrainingJobResponse* response, std::function) = 0; + virtual void DeleteCompletedTrainingJob(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::mltraining::v1::DeleteCompletedTrainingJobResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void DeleteCompletedTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::DeleteCompletedTrainingJobRequest* request, ::viam::app::mltraining::v1::DeleteCompletedTrainingJobResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DeleteCompletedTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::DeleteCompletedTrainingJobRequest* request, ::viam::app::mltraining::v1::DeleteCompletedTrainingJobResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void DeleteCompletedTrainingJob(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::mltraining::v1::DeleteCompletedTrainingJobResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DeleteCompletedTrainingJob(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::mltraining::v1::DeleteCompletedTrainingJobResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // GetTrainingJobLogs gets the logs for a given custom training job. virtual void GetTrainingJobLogs(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::GetTrainingJobLogsRequest* request, ::viam::app::mltraining::v1::GetTrainingJobLogsResponse* response, std::function) = 0; + virtual void GetTrainingJobLogs(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::mltraining::v1::GetTrainingJobLogsResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetTrainingJobLogs(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::GetTrainingJobLogsRequest* request, ::viam::app::mltraining::v1::GetTrainingJobLogsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetTrainingJobLogs(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::GetTrainingJobLogsRequest* request, ::viam::app::mltraining::v1::GetTrainingJobLogsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetTrainingJobLogs(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::mltraining::v1::GetTrainingJobLogsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetTrainingJobLogs(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::mltraining::v1::GetTrainingJobLogsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif }; - typedef class async_interface experimental_async_interface; - virtual class async_interface* async() { return nullptr; } - class async_interface* experimental_async() { return async(); } - private: + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef class experimental_async_interface async_interface; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + async_interface* async() { return experimental_async(); } + #endif + virtual class experimental_async_interface* experimental_async() { return nullptr; } + private: virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::mltraining::v1::SubmitTrainingJobResponse>* AsyncSubmitTrainingJobRaw(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::SubmitTrainingJobRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::mltraining::v1::SubmitTrainingJobResponse>* PrepareAsyncSubmitTrainingJobRaw(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::SubmitTrainingJobRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse>* AsyncSubmitCustomTrainingJobRaw(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest& request, ::grpc::CompletionQueue* cq) = 0; @@ -140,7 +215,7 @@ class MLTrainingService final { }; class Stub final : public StubInterface { public: - Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); ::grpc::Status SubmitTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::SubmitTrainingJobRequest& request, ::viam::app::mltraining::v1::SubmitTrainingJobResponse* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::mltraining::v1::SubmitTrainingJobResponse>> AsyncSubmitTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::SubmitTrainingJobRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::mltraining::v1::SubmitTrainingJobResponse>>(AsyncSubmitTrainingJobRaw(context, request, cq)); @@ -190,34 +265,104 @@ class MLTrainingService final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::mltraining::v1::GetTrainingJobLogsResponse>> PrepareAsyncGetTrainingJobLogs(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::GetTrainingJobLogsRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::mltraining::v1::GetTrainingJobLogsResponse>>(PrepareAsyncGetTrainingJobLogsRaw(context, request, cq)); } - class async final : - public StubInterface::async_interface { + class experimental_async final : + public StubInterface::experimental_async_interface { public: void SubmitTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::SubmitTrainingJobRequest* request, ::viam::app::mltraining::v1::SubmitTrainingJobResponse* response, std::function) override; + void SubmitTrainingJob(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::mltraining::v1::SubmitTrainingJobResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void SubmitTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::SubmitTrainingJobRequest* request, ::viam::app::mltraining::v1::SubmitTrainingJobResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void SubmitTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::SubmitTrainingJobRequest* request, ::viam::app::mltraining::v1::SubmitTrainingJobResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void SubmitTrainingJob(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::mltraining::v1::SubmitTrainingJobResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void SubmitTrainingJob(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::mltraining::v1::SubmitTrainingJobResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void SubmitCustomTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest* request, ::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse* response, std::function) override; + void SubmitCustomTrainingJob(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void SubmitCustomTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest* request, ::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void SubmitCustomTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest* request, ::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void SubmitCustomTrainingJob(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void SubmitCustomTrainingJob(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::GetTrainingJobRequest* request, ::viam::app::mltraining::v1::GetTrainingJobResponse* response, std::function) override; + void GetTrainingJob(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::mltraining::v1::GetTrainingJobResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::GetTrainingJobRequest* request, ::viam::app::mltraining::v1::GetTrainingJobResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::GetTrainingJobRequest* request, ::viam::app::mltraining::v1::GetTrainingJobResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetTrainingJob(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::mltraining::v1::GetTrainingJobResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetTrainingJob(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::mltraining::v1::GetTrainingJobResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void ListTrainingJobs(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::ListTrainingJobsRequest* request, ::viam::app::mltraining::v1::ListTrainingJobsResponse* response, std::function) override; + void ListTrainingJobs(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::mltraining::v1::ListTrainingJobsResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void ListTrainingJobs(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::ListTrainingJobsRequest* request, ::viam::app::mltraining::v1::ListTrainingJobsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ListTrainingJobs(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::ListTrainingJobsRequest* request, ::viam::app::mltraining::v1::ListTrainingJobsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void ListTrainingJobs(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::mltraining::v1::ListTrainingJobsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ListTrainingJobs(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::mltraining::v1::ListTrainingJobsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void CancelTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::CancelTrainingJobRequest* request, ::viam::app::mltraining::v1::CancelTrainingJobResponse* response, std::function) override; + void CancelTrainingJob(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::mltraining::v1::CancelTrainingJobResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void CancelTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::CancelTrainingJobRequest* request, ::viam::app::mltraining::v1::CancelTrainingJobResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void CancelTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::CancelTrainingJobRequest* request, ::viam::app::mltraining::v1::CancelTrainingJobResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void CancelTrainingJob(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::mltraining::v1::CancelTrainingJobResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void CancelTrainingJob(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::mltraining::v1::CancelTrainingJobResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void DeleteCompletedTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::DeleteCompletedTrainingJobRequest* request, ::viam::app::mltraining::v1::DeleteCompletedTrainingJobResponse* response, std::function) override; + void DeleteCompletedTrainingJob(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::mltraining::v1::DeleteCompletedTrainingJobResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void DeleteCompletedTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::DeleteCompletedTrainingJobRequest* request, ::viam::app::mltraining::v1::DeleteCompletedTrainingJobResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DeleteCompletedTrainingJob(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::DeleteCompletedTrainingJobRequest* request, ::viam::app::mltraining::v1::DeleteCompletedTrainingJobResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void DeleteCompletedTrainingJob(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::mltraining::v1::DeleteCompletedTrainingJobResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DeleteCompletedTrainingJob(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::mltraining::v1::DeleteCompletedTrainingJobResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetTrainingJobLogs(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::GetTrainingJobLogsRequest* request, ::viam::app::mltraining::v1::GetTrainingJobLogsResponse* response, std::function) override; + void GetTrainingJobLogs(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::mltraining::v1::GetTrainingJobLogsResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetTrainingJobLogs(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::GetTrainingJobLogsRequest* request, ::viam::app::mltraining::v1::GetTrainingJobLogsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetTrainingJobLogs(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::GetTrainingJobLogsRequest* request, ::viam::app::mltraining::v1::GetTrainingJobLogsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetTrainingJobLogs(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::mltraining::v1::GetTrainingJobLogsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetTrainingJobLogs(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::mltraining::v1::GetTrainingJobLogsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif private: friend class Stub; - explicit async(Stub* stub): stub_(stub) { } + explicit experimental_async(Stub* stub): stub_(stub) { } Stub* stub() { return stub_; } Stub* stub_; }; - class async* async() override { return &async_stub_; } + class experimental_async_interface* experimental_async() override { return &async_stub_; } private: std::shared_ptr< ::grpc::ChannelInterface> channel_; - class async async_stub_{this}; + class experimental_async async_stub_{this}; ::grpc::ClientAsyncResponseReader< ::viam::app::mltraining::v1::SubmitTrainingJobResponse>* AsyncSubmitTrainingJobRaw(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::SubmitTrainingJobRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::app::mltraining::v1::SubmitTrainingJobResponse>* PrepareAsyncSubmitTrainingJobRaw(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::SubmitTrainingJobRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse>* AsyncSubmitCustomTrainingJobRaw(::grpc::ClientContext* context, const ::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest& request, ::grpc::CompletionQueue* cq) override; @@ -403,22 +548,36 @@ class MLTrainingService final { }; typedef WithAsyncMethod_SubmitTrainingJob > > > > > > AsyncService; template - class WithCallbackMethod_SubmitTrainingJob : public BaseClass { + class ExperimentalWithCallbackMethod_SubmitTrainingJob : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_SubmitTrainingJob() { - ::grpc::Service::MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::mltraining::v1::SubmitTrainingJobRequest, ::viam::app::mltraining::v1::SubmitTrainingJobResponse>( + ExperimentalWithCallbackMethod_SubmitTrainingJob() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::mltraining::v1::SubmitTrainingJobRequest, ::viam::app::mltraining::v1::SubmitTrainingJobResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::mltraining::v1::SubmitTrainingJobRequest* request, ::viam::app::mltraining::v1::SubmitTrainingJobResponse* response) { return this->SubmitTrainingJob(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::mltraining::v1::SubmitTrainingJobRequest* request, ::viam::app::mltraining::v1::SubmitTrainingJobResponse* response) { return this->SubmitTrainingJob(context, request, response); }));} void SetMessageAllocatorFor_SubmitTrainingJob( - ::grpc::MessageAllocator< ::viam::app::mltraining::v1::SubmitTrainingJobRequest, ::viam::app::mltraining::v1::SubmitTrainingJobResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::app::mltraining::v1::SubmitTrainingJobRequest, ::viam::app::mltraining::v1::SubmitTrainingJobResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::mltraining::v1::SubmitTrainingJobRequest, ::viam::app::mltraining::v1::SubmitTrainingJobResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(0); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::mltraining::v1::SubmitTrainingJobRequest, ::viam::app::mltraining::v1::SubmitTrainingJobResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_SubmitTrainingJob() override { + ~ExperimentalWithCallbackMethod_SubmitTrainingJob() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -426,26 +585,46 @@ class MLTrainingService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* SubmitTrainingJob( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::mltraining::v1::SubmitTrainingJobRequest* /*request*/, ::viam::app::mltraining::v1::SubmitTrainingJobResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::mltraining::v1::SubmitTrainingJobRequest* /*request*/, ::viam::app::mltraining::v1::SubmitTrainingJobResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* SubmitTrainingJob( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::mltraining::v1::SubmitTrainingJobRequest* /*request*/, ::viam::app::mltraining::v1::SubmitTrainingJobResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_SubmitCustomTrainingJob : public BaseClass { + class ExperimentalWithCallbackMethod_SubmitCustomTrainingJob : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_SubmitCustomTrainingJob() { - ::grpc::Service::MarkMethodCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest, ::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse>( + ExperimentalWithCallbackMethod_SubmitCustomTrainingJob() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest, ::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest* request, ::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse* response) { return this->SubmitCustomTrainingJob(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest* request, ::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse* response) { return this->SubmitCustomTrainingJob(context, request, response); }));} void SetMessageAllocatorFor_SubmitCustomTrainingJob( - ::grpc::MessageAllocator< ::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest, ::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest, ::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest, ::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(1); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest, ::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_SubmitCustomTrainingJob() override { + ~ExperimentalWithCallbackMethod_SubmitCustomTrainingJob() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -453,26 +632,46 @@ class MLTrainingService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* SubmitCustomTrainingJob( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest* /*request*/, ::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest* /*request*/, ::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* SubmitCustomTrainingJob( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest* /*request*/, ::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetTrainingJob : public BaseClass { + class ExperimentalWithCallbackMethod_GetTrainingJob : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetTrainingJob() { - ::grpc::Service::MarkMethodCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::mltraining::v1::GetTrainingJobRequest, ::viam::app::mltraining::v1::GetTrainingJobResponse>( + ExperimentalWithCallbackMethod_GetTrainingJob() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(2, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::mltraining::v1::GetTrainingJobRequest, ::viam::app::mltraining::v1::GetTrainingJobResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::mltraining::v1::GetTrainingJobRequest* request, ::viam::app::mltraining::v1::GetTrainingJobResponse* response) { return this->GetTrainingJob(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::mltraining::v1::GetTrainingJobRequest* request, ::viam::app::mltraining::v1::GetTrainingJobResponse* response) { return this->GetTrainingJob(context, request, response); }));} void SetMessageAllocatorFor_GetTrainingJob( - ::grpc::MessageAllocator< ::viam::app::mltraining::v1::GetTrainingJobRequest, ::viam::app::mltraining::v1::GetTrainingJobResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::app::mltraining::v1::GetTrainingJobRequest, ::viam::app::mltraining::v1::GetTrainingJobResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::mltraining::v1::GetTrainingJobRequest, ::viam::app::mltraining::v1::GetTrainingJobResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(2); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::mltraining::v1::GetTrainingJobRequest, ::viam::app::mltraining::v1::GetTrainingJobResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetTrainingJob() override { + ~ExperimentalWithCallbackMethod_GetTrainingJob() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -480,26 +679,46 @@ class MLTrainingService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetTrainingJob( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::mltraining::v1::GetTrainingJobRequest* /*request*/, ::viam::app::mltraining::v1::GetTrainingJobResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::mltraining::v1::GetTrainingJobRequest* /*request*/, ::viam::app::mltraining::v1::GetTrainingJobResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetTrainingJob( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::mltraining::v1::GetTrainingJobRequest* /*request*/, ::viam::app::mltraining::v1::GetTrainingJobResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_ListTrainingJobs : public BaseClass { + class ExperimentalWithCallbackMethod_ListTrainingJobs : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_ListTrainingJobs() { - ::grpc::Service::MarkMethodCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::mltraining::v1::ListTrainingJobsRequest, ::viam::app::mltraining::v1::ListTrainingJobsResponse>( + ExperimentalWithCallbackMethod_ListTrainingJobs() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(3, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::mltraining::v1::ListTrainingJobsRequest, ::viam::app::mltraining::v1::ListTrainingJobsResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::mltraining::v1::ListTrainingJobsRequest* request, ::viam::app::mltraining::v1::ListTrainingJobsResponse* response) { return this->ListTrainingJobs(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::mltraining::v1::ListTrainingJobsRequest* request, ::viam::app::mltraining::v1::ListTrainingJobsResponse* response) { return this->ListTrainingJobs(context, request, response); }));} void SetMessageAllocatorFor_ListTrainingJobs( - ::grpc::MessageAllocator< ::viam::app::mltraining::v1::ListTrainingJobsRequest, ::viam::app::mltraining::v1::ListTrainingJobsResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::app::mltraining::v1::ListTrainingJobsRequest, ::viam::app::mltraining::v1::ListTrainingJobsResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::mltraining::v1::ListTrainingJobsRequest, ::viam::app::mltraining::v1::ListTrainingJobsResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(3); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::mltraining::v1::ListTrainingJobsRequest, ::viam::app::mltraining::v1::ListTrainingJobsResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_ListTrainingJobs() override { + ~ExperimentalWithCallbackMethod_ListTrainingJobs() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -507,26 +726,46 @@ class MLTrainingService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* ListTrainingJobs( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::mltraining::v1::ListTrainingJobsRequest* /*request*/, ::viam::app::mltraining::v1::ListTrainingJobsResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::mltraining::v1::ListTrainingJobsRequest* /*request*/, ::viam::app::mltraining::v1::ListTrainingJobsResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ListTrainingJobs( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::mltraining::v1::ListTrainingJobsRequest* /*request*/, ::viam::app::mltraining::v1::ListTrainingJobsResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_CancelTrainingJob : public BaseClass { + class ExperimentalWithCallbackMethod_CancelTrainingJob : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_CancelTrainingJob() { - ::grpc::Service::MarkMethodCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::mltraining::v1::CancelTrainingJobRequest, ::viam::app::mltraining::v1::CancelTrainingJobResponse>( + ExperimentalWithCallbackMethod_CancelTrainingJob() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(4, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::mltraining::v1::CancelTrainingJobRequest, ::viam::app::mltraining::v1::CancelTrainingJobResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::mltraining::v1::CancelTrainingJobRequest* request, ::viam::app::mltraining::v1::CancelTrainingJobResponse* response) { return this->CancelTrainingJob(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::mltraining::v1::CancelTrainingJobRequest* request, ::viam::app::mltraining::v1::CancelTrainingJobResponse* response) { return this->CancelTrainingJob(context, request, response); }));} void SetMessageAllocatorFor_CancelTrainingJob( - ::grpc::MessageAllocator< ::viam::app::mltraining::v1::CancelTrainingJobRequest, ::viam::app::mltraining::v1::CancelTrainingJobResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::app::mltraining::v1::CancelTrainingJobRequest, ::viam::app::mltraining::v1::CancelTrainingJobResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::mltraining::v1::CancelTrainingJobRequest, ::viam::app::mltraining::v1::CancelTrainingJobResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(4); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::mltraining::v1::CancelTrainingJobRequest, ::viam::app::mltraining::v1::CancelTrainingJobResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_CancelTrainingJob() override { + ~ExperimentalWithCallbackMethod_CancelTrainingJob() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -534,26 +773,46 @@ class MLTrainingService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* CancelTrainingJob( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::mltraining::v1::CancelTrainingJobRequest* /*request*/, ::viam::app::mltraining::v1::CancelTrainingJobResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::mltraining::v1::CancelTrainingJobRequest* /*request*/, ::viam::app::mltraining::v1::CancelTrainingJobResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* CancelTrainingJob( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::mltraining::v1::CancelTrainingJobRequest* /*request*/, ::viam::app::mltraining::v1::CancelTrainingJobResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_DeleteCompletedTrainingJob : public BaseClass { + class ExperimentalWithCallbackMethod_DeleteCompletedTrainingJob : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_DeleteCompletedTrainingJob() { - ::grpc::Service::MarkMethodCallback(5, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::mltraining::v1::DeleteCompletedTrainingJobRequest, ::viam::app::mltraining::v1::DeleteCompletedTrainingJobResponse>( + ExperimentalWithCallbackMethod_DeleteCompletedTrainingJob() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(5, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::mltraining::v1::DeleteCompletedTrainingJobRequest, ::viam::app::mltraining::v1::DeleteCompletedTrainingJobResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::mltraining::v1::DeleteCompletedTrainingJobRequest* request, ::viam::app::mltraining::v1::DeleteCompletedTrainingJobResponse* response) { return this->DeleteCompletedTrainingJob(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::mltraining::v1::DeleteCompletedTrainingJobRequest* request, ::viam::app::mltraining::v1::DeleteCompletedTrainingJobResponse* response) { return this->DeleteCompletedTrainingJob(context, request, response); }));} void SetMessageAllocatorFor_DeleteCompletedTrainingJob( - ::grpc::MessageAllocator< ::viam::app::mltraining::v1::DeleteCompletedTrainingJobRequest, ::viam::app::mltraining::v1::DeleteCompletedTrainingJobResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::app::mltraining::v1::DeleteCompletedTrainingJobRequest, ::viam::app::mltraining::v1::DeleteCompletedTrainingJobResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(5); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::mltraining::v1::DeleteCompletedTrainingJobRequest, ::viam::app::mltraining::v1::DeleteCompletedTrainingJobResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(5); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::mltraining::v1::DeleteCompletedTrainingJobRequest, ::viam::app::mltraining::v1::DeleteCompletedTrainingJobResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_DeleteCompletedTrainingJob() override { + ~ExperimentalWithCallbackMethod_DeleteCompletedTrainingJob() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -561,26 +820,46 @@ class MLTrainingService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DeleteCompletedTrainingJob( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::mltraining::v1::DeleteCompletedTrainingJobRequest* /*request*/, ::viam::app::mltraining::v1::DeleteCompletedTrainingJobResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::mltraining::v1::DeleteCompletedTrainingJobRequest* /*request*/, ::viam::app::mltraining::v1::DeleteCompletedTrainingJobResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DeleteCompletedTrainingJob( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::mltraining::v1::DeleteCompletedTrainingJobRequest* /*request*/, ::viam::app::mltraining::v1::DeleteCompletedTrainingJobResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetTrainingJobLogs : public BaseClass { + class ExperimentalWithCallbackMethod_GetTrainingJobLogs : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetTrainingJobLogs() { - ::grpc::Service::MarkMethodCallback(6, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::mltraining::v1::GetTrainingJobLogsRequest, ::viam::app::mltraining::v1::GetTrainingJobLogsResponse>( + ExperimentalWithCallbackMethod_GetTrainingJobLogs() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(6, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::mltraining::v1::GetTrainingJobLogsRequest, ::viam::app::mltraining::v1::GetTrainingJobLogsResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::mltraining::v1::GetTrainingJobLogsRequest* request, ::viam::app::mltraining::v1::GetTrainingJobLogsResponse* response) { return this->GetTrainingJobLogs(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::mltraining::v1::GetTrainingJobLogsRequest* request, ::viam::app::mltraining::v1::GetTrainingJobLogsResponse* response) { return this->GetTrainingJobLogs(context, request, response); }));} void SetMessageAllocatorFor_GetTrainingJobLogs( - ::grpc::MessageAllocator< ::viam::app::mltraining::v1::GetTrainingJobLogsRequest, ::viam::app::mltraining::v1::GetTrainingJobLogsResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::app::mltraining::v1::GetTrainingJobLogsRequest, ::viam::app::mltraining::v1::GetTrainingJobLogsResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(6); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::mltraining::v1::GetTrainingJobLogsRequest, ::viam::app::mltraining::v1::GetTrainingJobLogsResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(6); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::mltraining::v1::GetTrainingJobLogsRequest, ::viam::app::mltraining::v1::GetTrainingJobLogsResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetTrainingJobLogs() override { + ~ExperimentalWithCallbackMethod_GetTrainingJobLogs() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -588,11 +867,20 @@ class MLTrainingService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetTrainingJobLogs( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::mltraining::v1::GetTrainingJobLogsRequest* /*request*/, ::viam::app::mltraining::v1::GetTrainingJobLogsResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::mltraining::v1::GetTrainingJobLogsRequest* /*request*/, ::viam::app::mltraining::v1::GetTrainingJobLogsResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetTrainingJobLogs( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::mltraining::v1::GetTrainingJobLogsRequest* /*request*/, ::viam::app::mltraining::v1::GetTrainingJobLogsResponse* /*response*/) + #endif + { return nullptr; } }; - typedef WithCallbackMethod_SubmitTrainingJob > > > > > > CallbackService; - typedef CallbackService ExperimentalCallbackService; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef ExperimentalWithCallbackMethod_SubmitTrainingJob > > > > > > CallbackService; + #endif + + typedef ExperimentalWithCallbackMethod_SubmitTrainingJob > > > > > > ExperimentalCallbackService; template class WithGenericMethod_SubmitTrainingJob : public BaseClass { private: @@ -853,17 +1141,27 @@ class MLTrainingService final { } }; template - class WithRawCallbackMethod_SubmitTrainingJob : public BaseClass { + class ExperimentalWithRawCallbackMethod_SubmitTrainingJob : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_SubmitTrainingJob() { - ::grpc::Service::MarkMethodRawCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_SubmitTrainingJob() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SubmitTrainingJob(context, request, response); })); - } - ~WithRawCallbackMethod_SubmitTrainingJob() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SubmitTrainingJob(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_SubmitTrainingJob() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -871,21 +1169,37 @@ class MLTrainingService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* SubmitTrainingJob( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* SubmitTrainingJob( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_SubmitCustomTrainingJob : public BaseClass { + class ExperimentalWithRawCallbackMethod_SubmitCustomTrainingJob : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_SubmitCustomTrainingJob() { - ::grpc::Service::MarkMethodRawCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_SubmitCustomTrainingJob() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SubmitCustomTrainingJob(context, request, response); })); - } - ~WithRawCallbackMethod_SubmitCustomTrainingJob() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SubmitCustomTrainingJob(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_SubmitCustomTrainingJob() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -893,21 +1207,37 @@ class MLTrainingService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* SubmitCustomTrainingJob( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* SubmitCustomTrainingJob( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetTrainingJob : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetTrainingJob : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetTrainingJob() { - ::grpc::Service::MarkMethodRawCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetTrainingJob() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(2, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetTrainingJob(context, request, response); })); - } - ~WithRawCallbackMethod_GetTrainingJob() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetTrainingJob(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetTrainingJob() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -915,21 +1245,37 @@ class MLTrainingService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetTrainingJob( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetTrainingJob( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_ListTrainingJobs : public BaseClass { + class ExperimentalWithRawCallbackMethod_ListTrainingJobs : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_ListTrainingJobs() { - ::grpc::Service::MarkMethodRawCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_ListTrainingJobs() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(3, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ListTrainingJobs(context, request, response); })); - } - ~WithRawCallbackMethod_ListTrainingJobs() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ListTrainingJobs(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_ListTrainingJobs() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -937,21 +1283,37 @@ class MLTrainingService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* ListTrainingJobs( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ListTrainingJobs( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_CancelTrainingJob : public BaseClass { + class ExperimentalWithRawCallbackMethod_CancelTrainingJob : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_CancelTrainingJob() { - ::grpc::Service::MarkMethodRawCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_CancelTrainingJob() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(4, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->CancelTrainingJob(context, request, response); })); - } - ~WithRawCallbackMethod_CancelTrainingJob() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->CancelTrainingJob(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_CancelTrainingJob() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -959,21 +1321,37 @@ class MLTrainingService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* CancelTrainingJob( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* CancelTrainingJob( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_DeleteCompletedTrainingJob : public BaseClass { + class ExperimentalWithRawCallbackMethod_DeleteCompletedTrainingJob : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_DeleteCompletedTrainingJob() { - ::grpc::Service::MarkMethodRawCallback(5, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_DeleteCompletedTrainingJob() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(5, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DeleteCompletedTrainingJob(context, request, response); })); - } - ~WithRawCallbackMethod_DeleteCompletedTrainingJob() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DeleteCompletedTrainingJob(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_DeleteCompletedTrainingJob() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -981,21 +1359,37 @@ class MLTrainingService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DeleteCompletedTrainingJob( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DeleteCompletedTrainingJob( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetTrainingJobLogs : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetTrainingJobLogs : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetTrainingJobLogs() { - ::grpc::Service::MarkMethodRawCallback(6, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetTrainingJobLogs() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(6, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetTrainingJobLogs(context, request, response); })); - } - ~WithRawCallbackMethod_GetTrainingJobLogs() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetTrainingJobLogs(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetTrainingJobLogs() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1003,8 +1397,14 @@ class MLTrainingService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetTrainingJobLogs( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetTrainingJobLogs( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template class WithStreamedUnaryMethod_SubmitTrainingJob : public BaseClass { @@ -1015,8 +1415,8 @@ class MLTrainingService final { ::grpc::Service::MarkMethodStreamed(0, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::mltraining::v1::SubmitTrainingJobRequest, ::viam::app::mltraining::v1::SubmitTrainingJobResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::mltraining::v1::SubmitTrainingJobRequest, ::viam::app::mltraining::v1::SubmitTrainingJobResponse>* streamer) { return this->StreamedSubmitTrainingJob(context, streamer); @@ -1042,8 +1442,8 @@ class MLTrainingService final { ::grpc::Service::MarkMethodStreamed(1, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest, ::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest, ::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse>* streamer) { return this->StreamedSubmitCustomTrainingJob(context, streamer); @@ -1069,8 +1469,8 @@ class MLTrainingService final { ::grpc::Service::MarkMethodStreamed(2, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::mltraining::v1::GetTrainingJobRequest, ::viam::app::mltraining::v1::GetTrainingJobResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::mltraining::v1::GetTrainingJobRequest, ::viam::app::mltraining::v1::GetTrainingJobResponse>* streamer) { return this->StreamedGetTrainingJob(context, streamer); @@ -1096,8 +1496,8 @@ class MLTrainingService final { ::grpc::Service::MarkMethodStreamed(3, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::mltraining::v1::ListTrainingJobsRequest, ::viam::app::mltraining::v1::ListTrainingJobsResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::mltraining::v1::ListTrainingJobsRequest, ::viam::app::mltraining::v1::ListTrainingJobsResponse>* streamer) { return this->StreamedListTrainingJobs(context, streamer); @@ -1123,8 +1523,8 @@ class MLTrainingService final { ::grpc::Service::MarkMethodStreamed(4, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::mltraining::v1::CancelTrainingJobRequest, ::viam::app::mltraining::v1::CancelTrainingJobResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::mltraining::v1::CancelTrainingJobRequest, ::viam::app::mltraining::v1::CancelTrainingJobResponse>* streamer) { return this->StreamedCancelTrainingJob(context, streamer); @@ -1150,8 +1550,8 @@ class MLTrainingService final { ::grpc::Service::MarkMethodStreamed(5, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::mltraining::v1::DeleteCompletedTrainingJobRequest, ::viam::app::mltraining::v1::DeleteCompletedTrainingJobResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::mltraining::v1::DeleteCompletedTrainingJobRequest, ::viam::app::mltraining::v1::DeleteCompletedTrainingJobResponse>* streamer) { return this->StreamedDeleteCompletedTrainingJob(context, streamer); @@ -1177,8 +1577,8 @@ class MLTrainingService final { ::grpc::Service::MarkMethodStreamed(6, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::mltraining::v1::GetTrainingJobLogsRequest, ::viam::app::mltraining::v1::GetTrainingJobLogsResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::mltraining::v1::GetTrainingJobLogsRequest, ::viam::app::mltraining::v1::GetTrainingJobLogsResponse>* streamer) { return this->StreamedGetTrainingJobLogs(context, streamer); diff --git a/src/viam/api/app/mltraining/v1/ml_training.pb.cc b/src/viam/api/app/mltraining/v1/ml_training.pb.cc index e78e3d4e5..498fad7f8 100644 --- a/src/viam/api/app/mltraining/v1/ml_training.pb.cc +++ b/src/viam/api/app/mltraining/v1/ml_training.pb.cc @@ -4,1200 +4,1053 @@ #include "app/mltraining/v1/ml_training.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace viam { namespace app { namespace mltraining { namespace v1 { - -inline constexpr SubmitTrainingJobResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR SubmitTrainingJobResponse::SubmitTrainingJobResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct SubmitTrainingJobResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubmitTrainingJobResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SubmitTrainingJobResponseDefaultTypeInternal() {} - union { - SubmitTrainingJobResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubmitTrainingJobResponseDefaultTypeInternal _SubmitTrainingJobResponse_default_instance_; - -inline constexpr SubmitTrainingJobRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : tags_{}, - organization_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - model_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - model_version_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - dataset_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - model_type_{static_cast< ::viam::app::mltraining::v1::ModelType >(0)}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR SubmitTrainingJobRequest::SubmitTrainingJobRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_CONSTEXPR SubmitTrainingJobRequest::SubmitTrainingJobRequest( + ::_pbi::ConstantInitialized) + : tags_() + , organization_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , model_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , model_version_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , dataset_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , model_type_(0) +{} struct SubmitTrainingJobRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubmitTrainingJobRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SubmitTrainingJobRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~SubmitTrainingJobRequestDefaultTypeInternal() {} union { SubmitTrainingJobRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubmitTrainingJobRequestDefaultTypeInternal _SubmitTrainingJobRequest_default_instance_; - -inline constexpr SubmitCustomTrainingJobResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR SubmitCustomTrainingJobResponse::SubmitCustomTrainingJobResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct SubmitCustomTrainingJobResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubmitCustomTrainingJobResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SubmitCustomTrainingJobResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubmitTrainingJobRequestDefaultTypeInternal _SubmitTrainingJobRequest_default_instance_; +PROTOBUF_CONSTEXPR SubmitTrainingJobResponse::SubmitTrainingJobResponse( + ::_pbi::ConstantInitialized) + : id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct SubmitTrainingJobResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR SubmitTrainingJobResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SubmitTrainingJobResponseDefaultTypeInternal() {} union { - SubmitCustomTrainingJobResponse _instance; + SubmitTrainingJobResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubmitCustomTrainingJobResponseDefaultTypeInternal _SubmitCustomTrainingJobResponse_default_instance_; - template -PROTOBUF_CONSTEXPR SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse::SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse(::_pbi::ConstantInitialized) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubmitTrainingJobResponseDefaultTypeInternal _SubmitTrainingJobResponse_default_instance_; +PROTOBUF_CONSTEXPR SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse::SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse( + ::_pbi::ConstantInitialized){} struct SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUseDefaultTypeInternal() {} union { SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUseDefaultTypeInternal _SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse_default_instance_; - -inline constexpr ListTrainingJobsRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : organization_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - status_{static_cast< ::viam::app::mltraining::v1::TrainingStatus >(0)}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR ListTrainingJobsRequest::ListTrainingJobsRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ListTrainingJobsRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR ListTrainingJobsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ListTrainingJobsRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUseDefaultTypeInternal _SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR SubmitCustomTrainingJobRequest::SubmitCustomTrainingJobRequest( + ::_pbi::ConstantInitialized) + : arguments_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + , dataset_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , registry_item_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , organization_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , model_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , model_version_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , registry_item_version_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct SubmitCustomTrainingJobRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SubmitCustomTrainingJobRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SubmitCustomTrainingJobRequestDefaultTypeInternal() {} union { - ListTrainingJobsRequest _instance; + SubmitCustomTrainingJobRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListTrainingJobsRequestDefaultTypeInternal _ListTrainingJobsRequest_default_instance_; - -inline constexpr GetTrainingJobRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetTrainingJobRequest::GetTrainingJobRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubmitCustomTrainingJobRequestDefaultTypeInternal _SubmitCustomTrainingJobRequest_default_instance_; +PROTOBUF_CONSTEXPR SubmitCustomTrainingJobResponse::SubmitCustomTrainingJobResponse( + ::_pbi::ConstantInitialized) + : id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct SubmitCustomTrainingJobResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR SubmitCustomTrainingJobResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SubmitCustomTrainingJobResponseDefaultTypeInternal() {} + union { + SubmitCustomTrainingJobResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubmitCustomTrainingJobResponseDefaultTypeInternal _SubmitCustomTrainingJobResponse_default_instance_; +PROTOBUF_CONSTEXPR GetTrainingJobRequest::GetTrainingJobRequest( + ::_pbi::ConstantInitialized) + : id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} struct GetTrainingJobRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetTrainingJobRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GetTrainingJobRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~GetTrainingJobRequestDefaultTypeInternal() {} union { GetTrainingJobRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetTrainingJobRequestDefaultTypeInternal _GetTrainingJobRequest_default_instance_; - -inline constexpr GetTrainingJobLogsRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - page_token_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()) {} - -template -PROTOBUF_CONSTEXPR GetTrainingJobLogsRequest::GetTrainingJobLogsRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetTrainingJobLogsRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetTrainingJobLogsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetTrainingJobLogsRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetTrainingJobRequestDefaultTypeInternal _GetTrainingJobRequest_default_instance_; +PROTOBUF_CONSTEXPR GetTrainingJobResponse::GetTrainingJobResponse( + ::_pbi::ConstantInitialized) + : metadata_(nullptr){} +struct GetTrainingJobResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetTrainingJobResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetTrainingJobResponseDefaultTypeInternal() {} union { - GetTrainingJobLogsRequest _instance; + GetTrainingJobResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetTrainingJobLogsRequestDefaultTypeInternal _GetTrainingJobLogsRequest_default_instance_; - template -PROTOBUF_CONSTEXPR DeleteCompletedTrainingJobResponse::DeleteCompletedTrainingJobResponse(::_pbi::ConstantInitialized) {} -struct DeleteCompletedTrainingJobResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR DeleteCompletedTrainingJobResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~DeleteCompletedTrainingJobResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetTrainingJobResponseDefaultTypeInternal _GetTrainingJobResponse_default_instance_; +PROTOBUF_CONSTEXPR ListTrainingJobsRequest::ListTrainingJobsRequest( + ::_pbi::ConstantInitialized) + : organization_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , status_(0) +{} +struct ListTrainingJobsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR ListTrainingJobsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ListTrainingJobsRequestDefaultTypeInternal() {} union { - DeleteCompletedTrainingJobResponse _instance; + ListTrainingJobsRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteCompletedTrainingJobResponseDefaultTypeInternal _DeleteCompletedTrainingJobResponse_default_instance_; - -inline constexpr DeleteCompletedTrainingJobRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR DeleteCompletedTrainingJobRequest::DeleteCompletedTrainingJobRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct DeleteCompletedTrainingJobRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR DeleteCompletedTrainingJobRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~DeleteCompletedTrainingJobRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListTrainingJobsRequestDefaultTypeInternal _ListTrainingJobsRequest_default_instance_; +PROTOBUF_CONSTEXPR ListTrainingJobsResponse::ListTrainingJobsResponse( + ::_pbi::ConstantInitialized) + : jobs_(){} +struct ListTrainingJobsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ListTrainingJobsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ListTrainingJobsResponseDefaultTypeInternal() {} union { - DeleteCompletedTrainingJobRequest _instance; + ListTrainingJobsResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteCompletedTrainingJobRequestDefaultTypeInternal _DeleteCompletedTrainingJobRequest_default_instance_; - template -PROTOBUF_CONSTEXPR CancelTrainingJobResponse::CancelTrainingJobResponse(::_pbi::ConstantInitialized) {} -struct CancelTrainingJobResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR CancelTrainingJobResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CancelTrainingJobResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListTrainingJobsResponseDefaultTypeInternal _ListTrainingJobsResponse_default_instance_; +PROTOBUF_CONSTEXPR TrainingJobMetadata::TrainingJobMetadata( + ::_pbi::ConstantInitialized) + : tags_() + , synced_model_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , dataset_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , organization_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , model_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , model_version_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , registry_item_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , registry_item_version_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , created_on_(nullptr) + , last_modified_(nullptr) + , error_status_(nullptr) + , training_started_(nullptr) + , training_ended_(nullptr) + , status_(0) + + , model_type_(0) + + , model_framework_(0) + + , is_custom_job_(false){} +struct TrainingJobMetadataDefaultTypeInternal { + PROTOBUF_CONSTEXPR TrainingJobMetadataDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~TrainingJobMetadataDefaultTypeInternal() {} union { - CancelTrainingJobResponse _instance; + TrainingJobMetadata _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CancelTrainingJobResponseDefaultTypeInternal _CancelTrainingJobResponse_default_instance_; - -inline constexpr CancelTrainingJobRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR CancelTrainingJobRequest::CancelTrainingJobRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TrainingJobMetadataDefaultTypeInternal _TrainingJobMetadata_default_instance_; +PROTOBUF_CONSTEXPR CancelTrainingJobRequest::CancelTrainingJobRequest( + ::_pbi::ConstantInitialized) + : id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} struct CancelTrainingJobRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR CancelTrainingJobRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR CancelTrainingJobRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~CancelTrainingJobRequestDefaultTypeInternal() {} union { CancelTrainingJobRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CancelTrainingJobRequestDefaultTypeInternal _CancelTrainingJobRequest_default_instance_; - -inline constexpr TrainingJobLogEntry::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - level_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - message_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - time_{nullptr} {} - -template -PROTOBUF_CONSTEXPR TrainingJobLogEntry::TrainingJobLogEntry(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct TrainingJobLogEntryDefaultTypeInternal { - PROTOBUF_CONSTEXPR TrainingJobLogEntryDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TrainingJobLogEntryDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CancelTrainingJobRequestDefaultTypeInternal _CancelTrainingJobRequest_default_instance_; +PROTOBUF_CONSTEXPR CancelTrainingJobResponse::CancelTrainingJobResponse( + ::_pbi::ConstantInitialized){} +struct CancelTrainingJobResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR CancelTrainingJobResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CancelTrainingJobResponseDefaultTypeInternal() {} union { - TrainingJobLogEntry _instance; + CancelTrainingJobResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TrainingJobLogEntryDefaultTypeInternal _TrainingJobLogEntry_default_instance_; - -inline constexpr SubmitCustomTrainingJobRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : arguments_{}, - dataset_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - registry_item_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - organization_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - model_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - model_version_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - registry_item_version_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR SubmitCustomTrainingJobRequest::SubmitCustomTrainingJobRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct SubmitCustomTrainingJobRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubmitCustomTrainingJobRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SubmitCustomTrainingJobRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CancelTrainingJobResponseDefaultTypeInternal _CancelTrainingJobResponse_default_instance_; +PROTOBUF_CONSTEXPR DeleteCompletedTrainingJobRequest::DeleteCompletedTrainingJobRequest( + ::_pbi::ConstantInitialized) + : id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct DeleteCompletedTrainingJobRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR DeleteCompletedTrainingJobRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DeleteCompletedTrainingJobRequestDefaultTypeInternal() {} union { - SubmitCustomTrainingJobRequest _instance; + DeleteCompletedTrainingJobRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubmitCustomTrainingJobRequestDefaultTypeInternal _SubmitCustomTrainingJobRequest_default_instance_; - -inline constexpr TrainingJobMetadata::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - tags_{}, - synced_model_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - dataset_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - organization_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - model_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - model_version_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - registry_item_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - registry_item_version_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - created_on_{nullptr}, - last_modified_{nullptr}, - error_status_{nullptr}, - training_started_{nullptr}, - training_ended_{nullptr}, - status_{static_cast< ::viam::app::mltraining::v1::TrainingStatus >(0)}, - model_type_{static_cast< ::viam::app::mltraining::v1::ModelType >(0)}, - model_framework_{static_cast< ::viam::app::mltraining::v1::ModelFramework >(0)}, - is_custom_job_{false} {} - -template -PROTOBUF_CONSTEXPR TrainingJobMetadata::TrainingJobMetadata(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct TrainingJobMetadataDefaultTypeInternal { - PROTOBUF_CONSTEXPR TrainingJobMetadataDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TrainingJobMetadataDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteCompletedTrainingJobRequestDefaultTypeInternal _DeleteCompletedTrainingJobRequest_default_instance_; +PROTOBUF_CONSTEXPR DeleteCompletedTrainingJobResponse::DeleteCompletedTrainingJobResponse( + ::_pbi::ConstantInitialized){} +struct DeleteCompletedTrainingJobResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR DeleteCompletedTrainingJobResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DeleteCompletedTrainingJobResponseDefaultTypeInternal() {} union { - TrainingJobMetadata _instance; + DeleteCompletedTrainingJobResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TrainingJobMetadataDefaultTypeInternal _TrainingJobMetadata_default_instance_; - -inline constexpr GetTrainingJobLogsResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : logs_{}, - next_page_token_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetTrainingJobLogsResponse::GetTrainingJobLogsResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetTrainingJobLogsResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetTrainingJobLogsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetTrainingJobLogsResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteCompletedTrainingJobResponseDefaultTypeInternal _DeleteCompletedTrainingJobResponse_default_instance_; +PROTOBUF_CONSTEXPR TrainingJobLogEntry::TrainingJobLogEntry( + ::_pbi::ConstantInitialized) + : level_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , message_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , time_(nullptr){} +struct TrainingJobLogEntryDefaultTypeInternal { + PROTOBUF_CONSTEXPR TrainingJobLogEntryDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~TrainingJobLogEntryDefaultTypeInternal() {} union { - GetTrainingJobLogsResponse _instance; + TrainingJobLogEntry _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetTrainingJobLogsResponseDefaultTypeInternal _GetTrainingJobLogsResponse_default_instance_; - -inline constexpr ListTrainingJobsResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : jobs_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR ListTrainingJobsResponse::ListTrainingJobsResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ListTrainingJobsResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ListTrainingJobsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ListTrainingJobsResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TrainingJobLogEntryDefaultTypeInternal _TrainingJobLogEntry_default_instance_; +PROTOBUF_CONSTEXPR GetTrainingJobLogsRequest::GetTrainingJobLogsRequest( + ::_pbi::ConstantInitialized) + : id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , page_token_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct GetTrainingJobLogsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetTrainingJobLogsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetTrainingJobLogsRequestDefaultTypeInternal() {} union { - ListTrainingJobsResponse _instance; + GetTrainingJobLogsRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListTrainingJobsResponseDefaultTypeInternal _ListTrainingJobsResponse_default_instance_; - -inline constexpr GetTrainingJobResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - metadata_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetTrainingJobResponse::GetTrainingJobResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetTrainingJobResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetTrainingJobResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetTrainingJobResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetTrainingJobLogsRequestDefaultTypeInternal _GetTrainingJobLogsRequest_default_instance_; +PROTOBUF_CONSTEXPR GetTrainingJobLogsResponse::GetTrainingJobLogsResponse( + ::_pbi::ConstantInitialized) + : logs_() + , next_page_token_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct GetTrainingJobLogsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetTrainingJobLogsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetTrainingJobLogsResponseDefaultTypeInternal() {} union { - GetTrainingJobResponse _instance; + GetTrainingJobLogsResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetTrainingJobResponseDefaultTypeInternal _GetTrainingJobResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetTrainingJobLogsResponseDefaultTypeInternal _GetTrainingJobLogsResponse_default_instance_; } // namespace v1 } // namespace mltraining } // namespace app } // namespace viam static ::_pb::Metadata file_level_metadata_app_2fmltraining_2fv1_2fml_5ftraining_2eproto[17]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_app_2fmltraining_2fv1_2fml_5ftraining_2eproto[3]; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_app_2fmltraining_2fv1_2fml_5ftraining_2eproto = nullptr; -const ::uint32_t TableStruct_app_2fmltraining_2fv1_2fml_5ftraining_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::SubmitTrainingJobRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::SubmitTrainingJobRequest, _impl_.dataset_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::SubmitTrainingJobRequest, _impl_.organization_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::SubmitTrainingJobRequest, _impl_.model_name_), - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::SubmitTrainingJobRequest, _impl_.model_version_), - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::SubmitTrainingJobRequest, _impl_.model_type_), - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::SubmitTrainingJobRequest, _impl_.tags_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::SubmitTrainingJobResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::SubmitTrainingJobResponse, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse, value_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest, _impl_.dataset_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest, _impl_.registry_item_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest, _impl_.registry_item_version_), - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest, _impl_.organization_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest, _impl_.model_name_), - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest, _impl_.model_version_), - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest, _impl_.arguments_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse, _impl_.id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::GetTrainingJobRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::GetTrainingJobRequest, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::GetTrainingJobResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::GetTrainingJobResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::GetTrainingJobResponse, _impl_.metadata_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::ListTrainingJobsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::ListTrainingJobsRequest, _impl_.organization_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::ListTrainingJobsRequest, _impl_.status_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::ListTrainingJobsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::ListTrainingJobsResponse, _impl_.jobs_), - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::TrainingJobMetadata, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::TrainingJobMetadata, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::TrainingJobMetadata, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::TrainingJobMetadata, _impl_.dataset_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::TrainingJobMetadata, _impl_.organization_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::TrainingJobMetadata, _impl_.model_name_), - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::TrainingJobMetadata, _impl_.model_version_), - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::TrainingJobMetadata, _impl_.model_type_), - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::TrainingJobMetadata, _impl_.model_framework_), - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::TrainingJobMetadata, _impl_.is_custom_job_), - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::TrainingJobMetadata, _impl_.registry_item_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::TrainingJobMetadata, _impl_.registry_item_version_), - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::TrainingJobMetadata, _impl_.status_), - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::TrainingJobMetadata, _impl_.error_status_), - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::TrainingJobMetadata, _impl_.created_on_), - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::TrainingJobMetadata, _impl_.last_modified_), - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::TrainingJobMetadata, _impl_.training_started_), - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::TrainingJobMetadata, _impl_.training_ended_), - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::TrainingJobMetadata, _impl_.synced_model_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::TrainingJobMetadata, _impl_.tags_), - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - 2, - 0, - 1, - 3, - 4, - ~0u, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::CancelTrainingJobRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::CancelTrainingJobRequest, _impl_.id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::CancelTrainingJobResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::DeleteCompletedTrainingJobRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::DeleteCompletedTrainingJobRequest, _impl_.id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::DeleteCompletedTrainingJobResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::TrainingJobLogEntry, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::TrainingJobLogEntry, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::TrainingJobLogEntry, _impl_.level_), - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::TrainingJobLogEntry, _impl_.time_), - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::TrainingJobLogEntry, _impl_.message_), - ~0u, - 0, - ~0u, - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::GetTrainingJobLogsRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::GetTrainingJobLogsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::GetTrainingJobLogsRequest, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::GetTrainingJobLogsRequest, _impl_.page_token_), - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::GetTrainingJobLogsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::GetTrainingJobLogsResponse, _impl_.logs_), - PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::GetTrainingJobLogsResponse, _impl_.next_page_token_), +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_app_2fmltraining_2fv1_2fml_5ftraining_2eproto = nullptr; + +const uint32_t TableStruct_app_2fmltraining_2fv1_2fml_5ftraining_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::SubmitTrainingJobRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::SubmitTrainingJobRequest, dataset_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::SubmitTrainingJobRequest, organization_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::SubmitTrainingJobRequest, model_name_), + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::SubmitTrainingJobRequest, model_version_), + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::SubmitTrainingJobRequest, model_type_), + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::SubmitTrainingJobRequest, tags_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::SubmitTrainingJobResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::SubmitTrainingJobResponse, id_), + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest_ArgumentsEntry_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::mltraining::v1::SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest, dataset_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest, registry_item_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest, registry_item_version_), + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest, organization_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest, model_name_), + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest, model_version_), + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest, arguments_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse, id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::GetTrainingJobRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::GetTrainingJobRequest, id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::GetTrainingJobResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::GetTrainingJobResponse, metadata_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::ListTrainingJobsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::ListTrainingJobsRequest, organization_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::ListTrainingJobsRequest, status_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::ListTrainingJobsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::ListTrainingJobsResponse, jobs_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::TrainingJobMetadata, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::TrainingJobMetadata, id_), + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::TrainingJobMetadata, dataset_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::TrainingJobMetadata, organization_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::TrainingJobMetadata, model_name_), + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::TrainingJobMetadata, model_version_), + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::TrainingJobMetadata, model_type_), + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::TrainingJobMetadata, model_framework_), + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::TrainingJobMetadata, is_custom_job_), + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::TrainingJobMetadata, registry_item_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::TrainingJobMetadata, registry_item_version_), + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::TrainingJobMetadata, status_), + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::TrainingJobMetadata, error_status_), + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::TrainingJobMetadata, created_on_), + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::TrainingJobMetadata, last_modified_), + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::TrainingJobMetadata, training_started_), + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::TrainingJobMetadata, training_ended_), + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::TrainingJobMetadata, synced_model_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::TrainingJobMetadata, tags_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::CancelTrainingJobRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::CancelTrainingJobRequest, id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::CancelTrainingJobResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::DeleteCompletedTrainingJobRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::DeleteCompletedTrainingJobRequest, id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::DeleteCompletedTrainingJobResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::TrainingJobLogEntry, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::TrainingJobLogEntry, level_), + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::TrainingJobLogEntry, time_), + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::TrainingJobLogEntry, message_), + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::GetTrainingJobLogsRequest, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::GetTrainingJobLogsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::GetTrainingJobLogsRequest, id_), + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::GetTrainingJobLogsRequest, page_token_), + ~0u, + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::GetTrainingJobLogsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::GetTrainingJobLogsResponse, logs_), + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::GetTrainingJobLogsResponse, next_page_token_), }; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, -1, -1, sizeof(::viam::app::mltraining::v1::SubmitTrainingJobRequest)}, - {14, -1, -1, sizeof(::viam::app::mltraining::v1::SubmitTrainingJobResponse)}, - {23, 33, -1, sizeof(::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse)}, - {35, -1, -1, sizeof(::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest)}, - {50, -1, -1, sizeof(::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse)}, - {59, -1, -1, sizeof(::viam::app::mltraining::v1::GetTrainingJobRequest)}, - {68, 77, -1, sizeof(::viam::app::mltraining::v1::GetTrainingJobResponse)}, - {78, -1, -1, sizeof(::viam::app::mltraining::v1::ListTrainingJobsRequest)}, - {88, -1, -1, sizeof(::viam::app::mltraining::v1::ListTrainingJobsResponse)}, - {97, 123, -1, sizeof(::viam::app::mltraining::v1::TrainingJobMetadata)}, - {141, -1, -1, sizeof(::viam::app::mltraining::v1::CancelTrainingJobRequest)}, - {150, -1, -1, sizeof(::viam::app::mltraining::v1::CancelTrainingJobResponse)}, - {158, -1, -1, sizeof(::viam::app::mltraining::v1::DeleteCompletedTrainingJobRequest)}, - {167, -1, -1, sizeof(::viam::app::mltraining::v1::DeleteCompletedTrainingJobResponse)}, - {175, 186, -1, sizeof(::viam::app::mltraining::v1::TrainingJobLogEntry)}, - {189, 199, -1, sizeof(::viam::app::mltraining::v1::GetTrainingJobLogsRequest)}, - {201, -1, -1, sizeof(::viam::app::mltraining::v1::GetTrainingJobLogsResponse)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::app::mltraining::v1::SubmitTrainingJobRequest)}, + { 12, -1, -1, sizeof(::viam::app::mltraining::v1::SubmitTrainingJobResponse)}, + { 19, 27, -1, sizeof(::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse)}, + { 29, -1, -1, sizeof(::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest)}, + { 42, -1, -1, sizeof(::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse)}, + { 49, -1, -1, sizeof(::viam::app::mltraining::v1::GetTrainingJobRequest)}, + { 56, -1, -1, sizeof(::viam::app::mltraining::v1::GetTrainingJobResponse)}, + { 63, -1, -1, sizeof(::viam::app::mltraining::v1::ListTrainingJobsRequest)}, + { 71, -1, -1, sizeof(::viam::app::mltraining::v1::ListTrainingJobsResponse)}, + { 78, -1, -1, sizeof(::viam::app::mltraining::v1::TrainingJobMetadata)}, + { 102, -1, -1, sizeof(::viam::app::mltraining::v1::CancelTrainingJobRequest)}, + { 109, -1, -1, sizeof(::viam::app::mltraining::v1::CancelTrainingJobResponse)}, + { 115, -1, -1, sizeof(::viam::app::mltraining::v1::DeleteCompletedTrainingJobRequest)}, + { 122, -1, -1, sizeof(::viam::app::mltraining::v1::DeleteCompletedTrainingJobResponse)}, + { 128, -1, -1, sizeof(::viam::app::mltraining::v1::TrainingJobLogEntry)}, + { 137, 145, -1, sizeof(::viam::app::mltraining::v1::GetTrainingJobLogsRequest)}, + { 147, -1, -1, sizeof(::viam::app::mltraining::v1::GetTrainingJobLogsResponse)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::viam::app::mltraining::v1::_SubmitTrainingJobRequest_default_instance_._instance, - &::viam::app::mltraining::v1::_SubmitTrainingJobResponse_default_instance_._instance, - &::viam::app::mltraining::v1::_SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse_default_instance_._instance, - &::viam::app::mltraining::v1::_SubmitCustomTrainingJobRequest_default_instance_._instance, - &::viam::app::mltraining::v1::_SubmitCustomTrainingJobResponse_default_instance_._instance, - &::viam::app::mltraining::v1::_GetTrainingJobRequest_default_instance_._instance, - &::viam::app::mltraining::v1::_GetTrainingJobResponse_default_instance_._instance, - &::viam::app::mltraining::v1::_ListTrainingJobsRequest_default_instance_._instance, - &::viam::app::mltraining::v1::_ListTrainingJobsResponse_default_instance_._instance, - &::viam::app::mltraining::v1::_TrainingJobMetadata_default_instance_._instance, - &::viam::app::mltraining::v1::_CancelTrainingJobRequest_default_instance_._instance, - &::viam::app::mltraining::v1::_CancelTrainingJobResponse_default_instance_._instance, - &::viam::app::mltraining::v1::_DeleteCompletedTrainingJobRequest_default_instance_._instance, - &::viam::app::mltraining::v1::_DeleteCompletedTrainingJobResponse_default_instance_._instance, - &::viam::app::mltraining::v1::_TrainingJobLogEntry_default_instance_._instance, - &::viam::app::mltraining::v1::_GetTrainingJobLogsRequest_default_instance_._instance, - &::viam::app::mltraining::v1::_GetTrainingJobLogsResponse_default_instance_._instance, -}; -const char descriptor_table_protodef_app_2fmltraining_2fv1_2fml_5ftraining_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n#app/mltraining/v1/ml_training.proto\022\026v" - "iam.app.mltraining.v1\032\037google/protobuf/t" - "imestamp.proto\032\027google/rpc/status.proto\032" - "\026tagger/v1/tagger.proto\"\212\004\n\030SubmitTraini" - "ngJobRequest\022G\n\ndataset_id\030\007 \001(\tB(\232\204\236\003#b" - "son:\"dataset_id\" json:\"dataset_id\"R\tdata" - "setId\022[\n\017organization_id\030\002 \001(\tB2\232\204\236\003-bso" - "n:\"organization_id\" json:\"organization_i" - "d\"R\016organizationId\022G\n\nmodel_name\030\003 \001(\tB(" - "\232\204\236\003#bson:\"model_name\" json:\"model_name\"" - "R\tmodelName\022S\n\rmodel_version\030\004 \001(\tB.\232\204\236\003" - ")bson:\"model_version\" json:\"model_versio" - "n\"R\014modelVersion\022j\n\nmodel_type\030\005 \001(\0162!.v" - "iam.app.mltraining.v1.ModelTypeB(\232\204\236\003#bs" - "on:\"model_type\" json:\"model_type\"R\tmodel" - "Type\0220\n\004tags\030\006 \003(\tB\034\232\204\236\003\027bson:\"tags\" jso" - "n:\"tags\"R\004tagsJ\004\010\001\020\002R\006filter\"+\n\031SubmitTr" - "ainingJobResponse\022\016\n\002id\030\001 \001(\tR\002id\"\333\005\n\036Su" - "bmitCustomTrainingJobRequest\022G\n\ndataset_" - "id\030\001 \001(\tB(\232\204\236\003#bson:\"dataset_id\" json:\"d" - "ataset_id\"R\tdatasetId\022^\n\020registry_item_i" - "d\030\002 \001(\tB4\232\204\236\003/bson:\"registry_item_id\" js" - "on:\"registry_item_id\"R\016registryItemId\022r\n" - "\025registry_item_version\030\006 \001(\tB>\232\204\236\0039bson:" - "\"registry_item_version\" json:\"registry_i" - "tem_version\"R\023registryItemVersion\022[\n\017org" - "anization_id\030\003 \001(\tB2\232\204\236\003-bson:\"organizat" - "ion_id\" json:\"organization_id\"R\016organiza" - "tionId\022G\n\nmodel_name\030\004 \001(\tB(\232\204\236\003#bson:\"m" - "odel_name\" json:\"model_name\"R\tmodelName\022" - "S\n\rmodel_version\030\005 \001(\tB.\232\204\236\003)bson:\"model" - "_version\" json:\"model_version\"R\014modelVer" - "sion\022c\n\targuments\030\007 \003(\0132E.viam.app.mltra" - "ining.v1.SubmitCustomTrainingJobRequest." - "ArgumentsEntryR\targuments\032<\n\016ArgumentsEn" - "try\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\tR\005va" - "lue:\0028\001\"1\n\037SubmitCustomTrainingJobRespon" - "se\022\016\n\002id\030\001 \001(\tR\002id\"\'\n\025GetTrainingJobRequ" - "est\022\016\n\002id\030\001 \001(\tR\002id\"a\n\026GetTrainingJobRes" - "ponse\022G\n\010metadata\030\001 \001(\0132+.viam.app.mltra" - "ining.v1.TrainingJobMetadataR\010metadata\"\202" - "\001\n\027ListTrainingJobsRequest\022\'\n\017organizati" - "on_id\030\001 \001(\tR\016organizationId\022>\n\006status\030\002 " - "\001(\0162&.viam.app.mltraining.v1.TrainingSta" - "tusR\006status\"[\n\030ListTrainingJobsResponse\022" - "\?\n\004jobs\030\001 \003(\0132+.viam.app.mltraining.v1.T" - "rainingJobMetadataR\004jobs\"\346\r\n\023TrainingJob" - "Metadata\0223\n\002id\030\007 \001(\tB#\232\204\236\003\036bson:\"_id\" js" - "on:\"id,omitempty\"R\002id\022G\n\ndataset_id\030\013 \001(" - "\tB(\232\204\236\003#bson:\"dataset_id\" json:\"dataset_" - "id\"R\tdatasetId\022[\n\017organization_id\030\014 \001(\tB" - "2\232\204\236\003-bson:\"organization_id\" json:\"organ" - "ization_id\"R\016organizationId\022G\n\nmodel_nam" - "e\030\r \001(\tB(\232\204\236\003#bson:\"model_name\" json:\"mo" - "del_name\"R\tmodelName\022S\n\rmodel_version\030\016 " - "\001(\tB.\232\204\236\003)bson:\"model_version\" json:\"mod" - "el_version\"R\014modelVersion\022j\n\nmodel_type\030" - "\017 \001(\0162!.viam.app.mltraining.v1.ModelType" - "B(\232\204\236\003#bson:\"model_type\" json:\"model_typ" - "e\"R\tmodelType\022\203\001\n\017model_framework\030\021 \001(\0162" - "&.viam.app.mltraining.v1.ModelFrameworkB" - "2\232\204\236\003-bson:\"model_framework\" json:\"model" - "_framework\"R\016modelFramework\022R\n\ris_custom" - "_job\030\022 \001(\010B.\232\204\236\003)bson:\"is_custom_job\" js" - "on:\"is_custom_job\"R\013isCustomJob\022^\n\020regis" - "try_item_id\030\023 \001(\tB4\232\204\236\003/bson:\"registry_i" - "tem_id\" json:\"registry_item_id\"R\016registr" - "yItemId\022r\n\025registry_item_version\030\024 \001(\tB>" - "\232\204\236\0039bson:\"registry_item_version\" json:\"" - "registry_item_version\"R\023registryItemVers" - "ion\022`\n\006status\030\002 \001(\0162&.viam.app.mltrainin" - "g.v1.TrainingStatusB \232\204\236\003\033bson:\"status\" " - "json:\"status\"R\006status\022c\n\014error_status\030\010 " - "\001(\0132\022.google.rpc.StatusB,\232\204\236\003\'bson:\"erro" - "r_status\" json:\"error_status\"R\013errorStat" - "us\022c\n\ncreated_on\030\003 \001(\0132\032.google.protobuf" - ".TimestampB(\232\204\236\003#bson:\"created_on\" json:" - "\"created_on\"R\tcreatedOn\022o\n\rlast_modified" - "\030\004 \001(\0132\032.google.protobuf.TimestampB.\232\204\236\003" - ")bson:\"last_modified\" json:\"last_modifie" - "d\"R\014lastModified\022{\n\020training_started\030\t \001" - "(\0132\032.google.protobuf.TimestampB4\232\204\236\003/bso" - "n:\"training_started\" json:\"training_star" - "ted\"R\017trainingStarted\022s\n\016training_ended\030" - "\n \001(\0132\032.google.protobuf.TimestampB0\232\204\236\003+" - "bson:\"training_ended\" json:\"training_end" - "ed\"R\rtrainingEnded\022Z\n\017synced_model_id\030\005 " - "\001(\tB2\232\204\236\003-bson:\"synced_model_id\" json:\"s" - "ynced_model_id\"R\rsyncedModelId\0220\n\004tags\030\020" - " \003(\tB\034\232\204\236\003\027bson:\"tags\" json:\"tags\"R\004tags" - "J\004\010\001\020\002J\004\010\006\020\007R\007requestR\nuser_email\"*\n\030Can" - "celTrainingJobRequest\022\016\n\002id\030\001 \001(\tR\002id\"\033\n" - "\031CancelTrainingJobResponse\"3\n!DeleteComp" - "letedTrainingJobRequest\022\016\n\002id\030\001 \001(\tR\002id\"" - "$\n\"DeleteCompletedTrainingJobResponse\"u\n" - "\023TrainingJobLogEntry\022\024\n\005level\030\001 \001(\tR\005lev" - "el\022.\n\004time\030\002 \001(\0132\032.google.protobuf.Times" - "tampR\004time\022\030\n\007message\030\003 \001(\tR\007message\"^\n\031" - "GetTrainingJobLogsRequest\022\016\n\002id\030\001 \001(\tR\002i" - "d\022\"\n\npage_token\030\002 \001(\tH\000R\tpageToken\210\001\001B\r\n" - "\013_page_token\"\205\001\n\032GetTrainingJobLogsRespo" - "nse\022\?\n\004logs\030\001 \003(\0132+.viam.app.mltraining." - "v1.TrainingJobLogEntryR\004logs\022&\n\017next_pag" - "e_token\030\002 \001(\tR\rnextPageToken*\237\001\n\tModelTy" - "pe\022\032\n\026MODEL_TYPE_UNSPECIFIED\020\000\022*\n&MODEL_" - "TYPE_SINGLE_LABEL_CLASSIFICATION\020\001\022)\n%MO" - "DEL_TYPE_MULTI_LABEL_CLASSIFICATION\020\002\022\037\n" - "\033MODEL_TYPE_OBJECT_DETECTION\020\003*\244\001\n\016Model" - "Framework\022\037\n\033MODEL_FRAMEWORK_UNSPECIFIED" - "\020\000\022\032\n\026MODEL_FRAMEWORK_TFLITE\020\001\022\036\n\032MODEL_" - "FRAMEWORK_TENSORFLOW\020\002\022\033\n\027MODEL_FRAMEWOR" - "K_PYTORCH\020\003\022\030\n\024MODEL_FRAMEWORK_ONNX\020\004*\347\001" - "\n\016TrainingStatus\022\037\n\033TRAINING_STATUS_UNSP" - "ECIFIED\020\000\022\033\n\027TRAINING_STATUS_PENDING\020\001\022\037" - "\n\033TRAINING_STATUS_IN_PROGRESS\020\002\022\035\n\031TRAIN" - "ING_STATUS_COMPLETED\020\003\022\032\n\026TRAINING_STATU" - "S_FAILED\020\004\022\034\n\030TRAINING_STATUS_CANCELED\020\005" - "\022\035\n\031TRAINING_STATUS_CANCELING\020\0062\217\007\n\021MLTr" - "ainingService\022x\n\021SubmitTrainingJob\0220.via" - "m.app.mltraining.v1.SubmitTrainingJobReq" - "uest\0321.viam.app.mltraining.v1.SubmitTrai" - "ningJobResponse\022\212\001\n\027SubmitCustomTraining" - "Job\0226.viam.app.mltraining.v1.SubmitCusto" - "mTrainingJobRequest\0327.viam.app.mltrainin" - "g.v1.SubmitCustomTrainingJobResponse\022o\n\016" - "GetTrainingJob\022-.viam.app.mltraining.v1." - "GetTrainingJobRequest\032..viam.app.mltrain" - "ing.v1.GetTrainingJobResponse\022u\n\020ListTra" - "iningJobs\022/.viam.app.mltraining.v1.ListT" - "rainingJobsRequest\0320.viam.app.mltraining" - ".v1.ListTrainingJobsResponse\022x\n\021CancelTr" - "ainingJob\0220.viam.app.mltraining.v1.Cance" - "lTrainingJobRequest\0321.viam.app.mltrainin" - "g.v1.CancelTrainingJobResponse\022\223\001\n\032Delet" - "eCompletedTrainingJob\0229.viam.app.mltrain" - "ing.v1.DeleteCompletedTrainingJobRequest" - "\032:.viam.app.mltraining.v1.DeleteComplete" - "dTrainingJobResponse\022{\n\022GetTrainingJobLo" - "gs\0221.viam.app.mltraining.v1.GetTrainingJ" - "obLogsRequest\0322.viam.app.mltraining.v1.G" - "etTrainingJobLogsResponseB\313\001\n\032com.viam.a" - "pp.mltraining.v1B\017MlTrainingProtoP\001Z!go." - "viam.com/api/app/mltraining/v1\242\002\003VAM\252\002\026V" - "iam.App.Mltraining.V1\312\002\026Viam\\App\\Mltrain" - "ing\\V1\342\002\"Viam\\App\\Mltraining\\V1\\GPBMetad" - "ata\352\002\031Viam::App::Mltraining::V1b\006proto3" + &::viam::app::mltraining::v1::_SubmitTrainingJobRequest_default_instance_._instance, + &::viam::app::mltraining::v1::_SubmitTrainingJobResponse_default_instance_._instance, + &::viam::app::mltraining::v1::_SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse_default_instance_._instance, + &::viam::app::mltraining::v1::_SubmitCustomTrainingJobRequest_default_instance_._instance, + &::viam::app::mltraining::v1::_SubmitCustomTrainingJobResponse_default_instance_._instance, + &::viam::app::mltraining::v1::_GetTrainingJobRequest_default_instance_._instance, + &::viam::app::mltraining::v1::_GetTrainingJobResponse_default_instance_._instance, + &::viam::app::mltraining::v1::_ListTrainingJobsRequest_default_instance_._instance, + &::viam::app::mltraining::v1::_ListTrainingJobsResponse_default_instance_._instance, + &::viam::app::mltraining::v1::_TrainingJobMetadata_default_instance_._instance, + &::viam::app::mltraining::v1::_CancelTrainingJobRequest_default_instance_._instance, + &::viam::app::mltraining::v1::_CancelTrainingJobResponse_default_instance_._instance, + &::viam::app::mltraining::v1::_DeleteCompletedTrainingJobRequest_default_instance_._instance, + &::viam::app::mltraining::v1::_DeleteCompletedTrainingJobResponse_default_instance_._instance, + &::viam::app::mltraining::v1::_TrainingJobLogEntry_default_instance_._instance, + &::viam::app::mltraining::v1::_GetTrainingJobLogsRequest_default_instance_._instance, + &::viam::app::mltraining::v1::_GetTrainingJobLogsResponse_default_instance_._instance, }; -static const ::_pbi::DescriptorTable* const descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_deps[3] = - { - &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto, - &::descriptor_table_google_2frpc_2fstatus_2eproto, - &::descriptor_table_tagger_2fv1_2ftagger_2eproto, + +const char descriptor_table_protodef_app_2fmltraining_2fv1_2fml_5ftraining_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n#app/mltraining/v1/ml_training.proto\022\026v" + "iam.app.mltraining.v1\032\037google/protobuf/t" + "imestamp.proto\032\027google/rpc/status.proto\032" + "\026tagger/v1/tagger.proto\"\212\004\n\030SubmitTraini" + "ngJobRequest\022G\n\ndataset_id\030\007 \001(\tB(\232\204\236\003#b" + "son:\"dataset_id\" json:\"dataset_id\"R\tdata" + "setId\022[\n\017organization_id\030\002 \001(\tB2\232\204\236\003-bso" + "n:\"organization_id\" json:\"organization_i" + "d\"R\016organizationId\022G\n\nmodel_name\030\003 \001(\tB(" + "\232\204\236\003#bson:\"model_name\" json:\"model_name\"" + "R\tmodelName\022S\n\rmodel_version\030\004 \001(\tB.\232\204\236\003" + ")bson:\"model_version\" json:\"model_versio" + "n\"R\014modelVersion\022j\n\nmodel_type\030\005 \001(\0162!.v" + "iam.app.mltraining.v1.ModelTypeB(\232\204\236\003#bs" + "on:\"model_type\" json:\"model_type\"R\tmodel" + "Type\0220\n\004tags\030\006 \003(\tB\034\232\204\236\003\027bson:\"tags\" jso" + "n:\"tags\"R\004tagsJ\004\010\001\020\002R\006filter\"+\n\031SubmitTr" + "ainingJobResponse\022\016\n\002id\030\001 \001(\tR\002id\"\333\005\n\036Su" + "bmitCustomTrainingJobRequest\022G\n\ndataset_" + "id\030\001 \001(\tB(\232\204\236\003#bson:\"dataset_id\" json:\"d" + "ataset_id\"R\tdatasetId\022^\n\020registry_item_i" + "d\030\002 \001(\tB4\232\204\236\003/bson:\"registry_item_id\" js" + "on:\"registry_item_id\"R\016registryItemId\022r\n" + "\025registry_item_version\030\006 \001(\tB>\232\204\236\0039bson:" + "\"registry_item_version\" json:\"registry_i" + "tem_version\"R\023registryItemVersion\022[\n\017org" + "anization_id\030\003 \001(\tB2\232\204\236\003-bson:\"organizat" + "ion_id\" json:\"organization_id\"R\016organiza" + "tionId\022G\n\nmodel_name\030\004 \001(\tB(\232\204\236\003#bson:\"m" + "odel_name\" json:\"model_name\"R\tmodelName\022" + "S\n\rmodel_version\030\005 \001(\tB.\232\204\236\003)bson:\"model" + "_version\" json:\"model_version\"R\014modelVer" + "sion\022c\n\targuments\030\007 \003(\0132E.viam.app.mltra" + "ining.v1.SubmitCustomTrainingJobRequest." + "ArgumentsEntryR\targuments\032<\n\016ArgumentsEn" + "try\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\tR\005va" + "lue:\0028\001\"1\n\037SubmitCustomTrainingJobRespon" + "se\022\016\n\002id\030\001 \001(\tR\002id\"\'\n\025GetTrainingJobRequ" + "est\022\016\n\002id\030\001 \001(\tR\002id\"a\n\026GetTrainingJobRes" + "ponse\022G\n\010metadata\030\001 \001(\0132+.viam.app.mltra" + "ining.v1.TrainingJobMetadataR\010metadata\"\202" + "\001\n\027ListTrainingJobsRequest\022\'\n\017organizati" + "on_id\030\001 \001(\tR\016organizationId\022>\n\006status\030\002 " + "\001(\0162&.viam.app.mltraining.v1.TrainingSta" + "tusR\006status\"[\n\030ListTrainingJobsResponse\022" + "\?\n\004jobs\030\001 \003(\0132+.viam.app.mltraining.v1.T" + "rainingJobMetadataR\004jobs\"\346\r\n\023TrainingJob" + "Metadata\0223\n\002id\030\007 \001(\tB#\232\204\236\003\036bson:\"_id\" js" + "on:\"id,omitempty\"R\002id\022G\n\ndataset_id\030\013 \001(" + "\tB(\232\204\236\003#bson:\"dataset_id\" json:\"dataset_" + "id\"R\tdatasetId\022[\n\017organization_id\030\014 \001(\tB" + "2\232\204\236\003-bson:\"organization_id\" json:\"organ" + "ization_id\"R\016organizationId\022G\n\nmodel_nam" + "e\030\r \001(\tB(\232\204\236\003#bson:\"model_name\" json:\"mo" + "del_name\"R\tmodelName\022S\n\rmodel_version\030\016 " + "\001(\tB.\232\204\236\003)bson:\"model_version\" json:\"mod" + "el_version\"R\014modelVersion\022j\n\nmodel_type\030" + "\017 \001(\0162!.viam.app.mltraining.v1.ModelType" + "B(\232\204\236\003#bson:\"model_type\" json:\"model_typ" + "e\"R\tmodelType\022\203\001\n\017model_framework\030\021 \001(\0162" + "&.viam.app.mltraining.v1.ModelFrameworkB" + "2\232\204\236\003-bson:\"model_framework\" json:\"model" + "_framework\"R\016modelFramework\022R\n\ris_custom" + "_job\030\022 \001(\010B.\232\204\236\003)bson:\"is_custom_job\" js" + "on:\"is_custom_job\"R\013isCustomJob\022^\n\020regis" + "try_item_id\030\023 \001(\tB4\232\204\236\003/bson:\"registry_i" + "tem_id\" json:\"registry_item_id\"R\016registr" + "yItemId\022r\n\025registry_item_version\030\024 \001(\tB>" + "\232\204\236\0039bson:\"registry_item_version\" json:\"" + "registry_item_version\"R\023registryItemVers" + "ion\022`\n\006status\030\002 \001(\0162&.viam.app.mltrainin" + "g.v1.TrainingStatusB \232\204\236\003\033bson:\"status\" " + "json:\"status\"R\006status\022c\n\014error_status\030\010 " + "\001(\0132\022.google.rpc.StatusB,\232\204\236\003\'bson:\"erro" + "r_status\" json:\"error_status\"R\013errorStat" + "us\022c\n\ncreated_on\030\003 \001(\0132\032.google.protobuf" + ".TimestampB(\232\204\236\003#bson:\"created_on\" json:" + "\"created_on\"R\tcreatedOn\022o\n\rlast_modified" + "\030\004 \001(\0132\032.google.protobuf.TimestampB.\232\204\236\003" + ")bson:\"last_modified\" json:\"last_modifie" + "d\"R\014lastModified\022{\n\020training_started\030\t \001" + "(\0132\032.google.protobuf.TimestampB4\232\204\236\003/bso" + "n:\"training_started\" json:\"training_star" + "ted\"R\017trainingStarted\022s\n\016training_ended\030" + "\n \001(\0132\032.google.protobuf.TimestampB0\232\204\236\003+" + "bson:\"training_ended\" json:\"training_end" + "ed\"R\rtrainingEnded\022Z\n\017synced_model_id\030\005 " + "\001(\tB2\232\204\236\003-bson:\"synced_model_id\" json:\"s" + "ynced_model_id\"R\rsyncedModelId\0220\n\004tags\030\020" + " \003(\tB\034\232\204\236\003\027bson:\"tags\" json:\"tags\"R\004tags" + "J\004\010\001\020\002J\004\010\006\020\007R\007requestR\nuser_email\"*\n\030Can" + "celTrainingJobRequest\022\016\n\002id\030\001 \001(\tR\002id\"\033\n" + "\031CancelTrainingJobResponse\"3\n!DeleteComp" + "letedTrainingJobRequest\022\016\n\002id\030\001 \001(\tR\002id\"" + "$\n\"DeleteCompletedTrainingJobResponse\"u\n" + "\023TrainingJobLogEntry\022\024\n\005level\030\001 \001(\tR\005lev" + "el\022.\n\004time\030\002 \001(\0132\032.google.protobuf.Times" + "tampR\004time\022\030\n\007message\030\003 \001(\tR\007message\"^\n\031" + "GetTrainingJobLogsRequest\022\016\n\002id\030\001 \001(\tR\002i" + "d\022\"\n\npage_token\030\002 \001(\tH\000R\tpageToken\210\001\001B\r\n" + "\013_page_token\"\205\001\n\032GetTrainingJobLogsRespo" + "nse\022\?\n\004logs\030\001 \003(\0132+.viam.app.mltraining." + "v1.TrainingJobLogEntryR\004logs\022&\n\017next_pag" + "e_token\030\002 \001(\tR\rnextPageToken*\237\001\n\tModelTy" + "pe\022\032\n\026MODEL_TYPE_UNSPECIFIED\020\000\022*\n&MODEL_" + "TYPE_SINGLE_LABEL_CLASSIFICATION\020\001\022)\n%MO" + "DEL_TYPE_MULTI_LABEL_CLASSIFICATION\020\002\022\037\n" + "\033MODEL_TYPE_OBJECT_DETECTION\020\003*\244\001\n\016Model" + "Framework\022\037\n\033MODEL_FRAMEWORK_UNSPECIFIED" + "\020\000\022\032\n\026MODEL_FRAMEWORK_TFLITE\020\001\022\036\n\032MODEL_" + "FRAMEWORK_TENSORFLOW\020\002\022\033\n\027MODEL_FRAMEWOR" + "K_PYTORCH\020\003\022\030\n\024MODEL_FRAMEWORK_ONNX\020\004*\347\001" + "\n\016TrainingStatus\022\037\n\033TRAINING_STATUS_UNSP" + "ECIFIED\020\000\022\033\n\027TRAINING_STATUS_PENDING\020\001\022\037" + "\n\033TRAINING_STATUS_IN_PROGRESS\020\002\022\035\n\031TRAIN" + "ING_STATUS_COMPLETED\020\003\022\032\n\026TRAINING_STATU" + "S_FAILED\020\004\022\034\n\030TRAINING_STATUS_CANCELED\020\005" + "\022\035\n\031TRAINING_STATUS_CANCELING\020\0062\217\007\n\021MLTr" + "ainingService\022x\n\021SubmitTrainingJob\0220.via" + "m.app.mltraining.v1.SubmitTrainingJobReq" + "uest\0321.viam.app.mltraining.v1.SubmitTrai" + "ningJobResponse\022\212\001\n\027SubmitCustomTraining" + "Job\0226.viam.app.mltraining.v1.SubmitCusto" + "mTrainingJobRequest\0327.viam.app.mltrainin" + "g.v1.SubmitCustomTrainingJobResponse\022o\n\016" + "GetTrainingJob\022-.viam.app.mltraining.v1." + "GetTrainingJobRequest\032..viam.app.mltrain" + "ing.v1.GetTrainingJobResponse\022u\n\020ListTra" + "iningJobs\022/.viam.app.mltraining.v1.ListT" + "rainingJobsRequest\0320.viam.app.mltraining" + ".v1.ListTrainingJobsResponse\022x\n\021CancelTr" + "ainingJob\0220.viam.app.mltraining.v1.Cance" + "lTrainingJobRequest\0321.viam.app.mltrainin" + "g.v1.CancelTrainingJobResponse\022\223\001\n\032Delet" + "eCompletedTrainingJob\0229.viam.app.mltrain" + "ing.v1.DeleteCompletedTrainingJobRequest" + "\032:.viam.app.mltraining.v1.DeleteComplete" + "dTrainingJobResponse\022{\n\022GetTrainingJobLo" + "gs\0221.viam.app.mltraining.v1.GetTrainingJ" + "obLogsRequest\0322.viam.app.mltraining.v1.G" + "etTrainingJobLogsResponseB#Z!go.viam.com" + "/api/app/mltraining/v1b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_deps[3] = { + &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto, + &::descriptor_table_google_2frpc_2fstatus_2eproto, + &::descriptor_table_tagger_2fv1_2ftagger_2eproto, }; -static ::absl::once_flag descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_once; +static ::_pbi::once_flag descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto = { - false, - false, - 5839, - descriptor_table_protodef_app_2fmltraining_2fv1_2fml_5ftraining_2eproto, + false, false, 5670, descriptor_table_protodef_app_2fmltraining_2fv1_2fml_5ftraining_2eproto, "app/mltraining/v1/ml_training.proto", - &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_once, - descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_deps, - 3, - 17, - schemas, - file_default_instances, - TableStruct_app_2fmltraining_2fv1_2fml_5ftraining_2eproto::offsets, - file_level_metadata_app_2fmltraining_2fv1_2fml_5ftraining_2eproto, - file_level_enum_descriptors_app_2fmltraining_2fv1_2fml_5ftraining_2eproto, + &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_once, descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_deps, 3, 17, + schemas, file_default_instances, TableStruct_app_2fmltraining_2fv1_2fml_5ftraining_2eproto::offsets, + file_level_metadata_app_2fmltraining_2fv1_2fml_5ftraining_2eproto, file_level_enum_descriptors_app_2fmltraining_2fv1_2fml_5ftraining_2eproto, file_level_service_descriptors_app_2fmltraining_2fv1_2fml_5ftraining_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_getter() { return &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_app_2fmltraining_2fv1_2fml_5ftraining_2eproto(&descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_app_2fmltraining_2fv1_2fml_5ftraining_2eproto(&descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto); namespace viam { namespace app { namespace mltraining { namespace v1 { -const ::google::protobuf::EnumDescriptor* ModelType_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto); +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ModelType_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto); return file_level_enum_descriptors_app_2fmltraining_2fv1_2fml_5ftraining_2eproto[0]; } -PROTOBUF_CONSTINIT const uint32_t ModelType_internal_data_[] = { - 262144u, 0u, }; bool ModelType_IsValid(int value) { - return 0 <= value && value <= 3; + switch (value) { + case 0: + case 1: + case 2: + case 3: + return true; + default: + return false; + } } -const ::google::protobuf::EnumDescriptor* ModelFramework_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto); + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ModelFramework_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto); return file_level_enum_descriptors_app_2fmltraining_2fv1_2fml_5ftraining_2eproto[1]; } -PROTOBUF_CONSTINIT const uint32_t ModelFramework_internal_data_[] = { - 327680u, 0u, }; bool ModelFramework_IsValid(int value) { - return 0 <= value && value <= 4; + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + return true; + default: + return false; + } } -const ::google::protobuf::EnumDescriptor* TrainingStatus_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto); + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* TrainingStatus_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto); return file_level_enum_descriptors_app_2fmltraining_2fv1_2fml_5ftraining_2eproto[2]; } -PROTOBUF_CONSTINIT const uint32_t TrainingStatus_internal_data_[] = { - 458752u, 0u, }; bool TrainingStatus_IsValid(int value) { - return 0 <= value && value <= 6; + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + return true; + default: + return false; + } } + + // =================================================================== class SubmitTrainingJobRequest::_Internal { public: }; -SubmitTrainingJobRequest::SubmitTrainingJobRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +SubmitTrainingJobRequest::SubmitTrainingJobRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + tags_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.mltraining.v1.SubmitTrainingJobRequest) } -inline PROTOBUF_NDEBUG_INLINE SubmitTrainingJobRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : tags_{visibility, arena, from.tags_}, - organization_id_(arena, from.organization_id_), - model_name_(arena, from.model_name_), - model_version_(arena, from.model_version_), - dataset_id_(arena, from.dataset_id_), - _cached_size_{0} {} - -SubmitTrainingJobRequest::SubmitTrainingJobRequest( - ::google::protobuf::Arena* arena, - const SubmitTrainingJobRequest& from) - : ::google::protobuf::Message(arena) { - SubmitTrainingJobRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.model_type_ = from._impl_.model_type_; - +SubmitTrainingJobRequest::SubmitTrainingJobRequest(const SubmitTrainingJobRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + tags_(from.tags_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + organization_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_organization_id().empty()) { + organization_id_.Set(from._internal_organization_id(), + GetArenaForAllocation()); + } + model_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + model_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_model_name().empty()) { + model_name_.Set(from._internal_model_name(), + GetArenaForAllocation()); + } + model_version_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + model_version_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_model_version().empty()) { + model_version_.Set(from._internal_model_version(), + GetArenaForAllocation()); + } + dataset_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + dataset_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_dataset_id().empty()) { + dataset_id_.Set(from._internal_dataset_id(), + GetArenaForAllocation()); + } + model_type_ = from.model_type_; // @@protoc_insertion_point(copy_constructor:viam.app.mltraining.v1.SubmitTrainingJobRequest) } -inline PROTOBUF_NDEBUG_INLINE SubmitTrainingJobRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : tags_{visibility, arena}, - organization_id_(arena), - model_name_(arena), - model_version_(arena), - dataset_id_(arena), - _cached_size_{0} {} -inline void SubmitTrainingJobRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.model_type_ = {}; +inline void SubmitTrainingJobRequest::SharedCtor() { +organization_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +model_name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + model_name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +model_version_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + model_version_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +dataset_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + dataset_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +model_type_ = 0; } + SubmitTrainingJobRequest::~SubmitTrainingJobRequest() { // @@protoc_insertion_point(destructor:viam.app.mltraining.v1.SubmitTrainingJobRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void SubmitTrainingJobRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.organization_id_.Destroy(); - _impl_.model_name_.Destroy(); - _impl_.model_version_.Destroy(); - _impl_.dataset_id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + organization_id_.Destroy(); + model_name_.Destroy(); + model_version_.Destroy(); + dataset_id_.Destroy(); } -PROTOBUF_NOINLINE void SubmitTrainingJobRequest::Clear() { +void SubmitTrainingJobRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void SubmitTrainingJobRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.mltraining.v1.SubmitTrainingJobRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.tags_.Clear(); - _impl_.organization_id_.ClearToEmpty(); - _impl_.model_name_.ClearToEmpty(); - _impl_.model_version_.ClearToEmpty(); - _impl_.dataset_id_.ClearToEmpty(); - _impl_.model_type_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SubmitTrainingJobRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + tags_.Clear(); + organization_id_.ClearToEmpty(); + model_name_.ClearToEmpty(); + model_version_.ClearToEmpty(); + dataset_id_.ClearToEmpty(); + model_type_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SubmitTrainingJobRequest::_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 organization_id = 2 [json_name = "organizationId", (.tagger.v1.tags) = "bson:\"organization_id\" json:\"organization_id\""]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_organization_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.mltraining.v1.SubmitTrainingJobRequest.organization_id")); + } else + goto handle_unusual; + continue; + // string model_name = 3 [json_name = "modelName", (.tagger.v1.tags) = "bson:\"model_name\" json:\"model_name\""]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_model_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.mltraining.v1.SubmitTrainingJobRequest.model_name")); + } else + goto handle_unusual; + continue; + // string model_version = 4 [json_name = "modelVersion", (.tagger.v1.tags) = "bson:\"model_version\" json:\"model_version\""]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_model_version(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.mltraining.v1.SubmitTrainingJobRequest.model_version")); + } else + goto handle_unusual; + continue; + // .viam.app.mltraining.v1.ModelType model_type = 5 [json_name = "modelType", (.tagger.v1.tags) = "bson:\"model_type\" json:\"model_type\""]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_model_type(static_cast<::viam::app::mltraining::v1::ModelType>(val)); + } else + goto handle_unusual; + continue; + // repeated string tags = 6 [json_name = "tags", (.tagger.v1.tags) = "bson:\"tags\" json:\"tags\""]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_tags(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.mltraining.v1.SubmitTrainingJobRequest.tags")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(ptr)); + } else + goto handle_unusual; + continue; + // string dataset_id = 7 [json_name = "datasetId", (.tagger.v1.tags) = "bson:\"dataset_id\" json:\"dataset_id\""]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + auto str = _internal_mutable_dataset_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.mltraining.v1.SubmitTrainingJobRequest.dataset_id")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 6, 0, 108, 2> SubmitTrainingJobRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 7, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967169, // skipmap - offsetof(decltype(_table_), field_entries), - 6, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_SubmitTrainingJobRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - // string organization_id = 2 [json_name = "organizationId", (.tagger.v1.tags) = "bson:\"organization_id\" json:\"organization_id\""]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(SubmitTrainingJobRequest, _impl_.organization_id_)}}, - // string model_name = 3 [json_name = "modelName", (.tagger.v1.tags) = "bson:\"model_name\" json:\"model_name\""]; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(SubmitTrainingJobRequest, _impl_.model_name_)}}, - // string model_version = 4 [json_name = "modelVersion", (.tagger.v1.tags) = "bson:\"model_version\" json:\"model_version\""]; - {::_pbi::TcParser::FastUS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(SubmitTrainingJobRequest, _impl_.model_version_)}}, - // .viam.app.mltraining.v1.ModelType model_type = 5 [json_name = "modelType", (.tagger.v1.tags) = "bson:\"model_type\" json:\"model_type\""]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SubmitTrainingJobRequest, _impl_.model_type_), 63>(), - {40, 63, 0, PROTOBUF_FIELD_OFFSET(SubmitTrainingJobRequest, _impl_.model_type_)}}, - // repeated string tags = 6 [json_name = "tags", (.tagger.v1.tags) = "bson:\"tags\" json:\"tags\""]; - {::_pbi::TcParser::FastUR1, - {50, 63, 0, PROTOBUF_FIELD_OFFSET(SubmitTrainingJobRequest, _impl_.tags_)}}, - // string dataset_id = 7 [json_name = "datasetId", (.tagger.v1.tags) = "bson:\"dataset_id\" json:\"dataset_id\""]; - {::_pbi::TcParser::FastUS1, - {58, 63, 0, PROTOBUF_FIELD_OFFSET(SubmitTrainingJobRequest, _impl_.dataset_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string organization_id = 2 [json_name = "organizationId", (.tagger.v1.tags) = "bson:\"organization_id\" json:\"organization_id\""]; - {PROTOBUF_FIELD_OFFSET(SubmitTrainingJobRequest, _impl_.organization_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string model_name = 3 [json_name = "modelName", (.tagger.v1.tags) = "bson:\"model_name\" json:\"model_name\""]; - {PROTOBUF_FIELD_OFFSET(SubmitTrainingJobRequest, _impl_.model_name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string model_version = 4 [json_name = "modelVersion", (.tagger.v1.tags) = "bson:\"model_version\" json:\"model_version\""]; - {PROTOBUF_FIELD_OFFSET(SubmitTrainingJobRequest, _impl_.model_version_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .viam.app.mltraining.v1.ModelType model_type = 5 [json_name = "modelType", (.tagger.v1.tags) = "bson:\"model_type\" json:\"model_type\""]; - {PROTOBUF_FIELD_OFFSET(SubmitTrainingJobRequest, _impl_.model_type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // repeated string tags = 6 [json_name = "tags", (.tagger.v1.tags) = "bson:\"tags\" json:\"tags\""]; - {PROTOBUF_FIELD_OFFSET(SubmitTrainingJobRequest, _impl_.tags_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - // string dataset_id = 7 [json_name = "datasetId", (.tagger.v1.tags) = "bson:\"dataset_id\" json:\"dataset_id\""]; - {PROTOBUF_FIELD_OFFSET(SubmitTrainingJobRequest, _impl_.dataset_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\57\17\12\15\0\4\12\0" - "viam.app.mltraining.v1.SubmitTrainingJobRequest" - "organization_id" - "model_name" - "model_version" - "tags" - "dataset_id" - }}, -}; - -::uint8_t* SubmitTrainingJobRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* SubmitTrainingJobRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.mltraining.v1.SubmitTrainingJobRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string organization_id = 2 [json_name = "organizationId", (.tagger.v1.tags) = "bson:\"organization_id\" json:\"organization_id\""]; if (!this->_internal_organization_id().empty()) { - const std::string& _s = this->_internal_organization_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.mltraining.v1.SubmitTrainingJobRequest.organization_id"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_organization_id().data(), static_cast(this->_internal_organization_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.mltraining.v1.SubmitTrainingJobRequest.organization_id"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_organization_id(), target); } // string model_name = 3 [json_name = "modelName", (.tagger.v1.tags) = "bson:\"model_name\" json:\"model_name\""]; if (!this->_internal_model_name().empty()) { - const std::string& _s = this->_internal_model_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.mltraining.v1.SubmitTrainingJobRequest.model_name"); - target = stream->WriteStringMaybeAliased(3, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_model_name().data(), static_cast(this->_internal_model_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.mltraining.v1.SubmitTrainingJobRequest.model_name"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_model_name(), target); } // string model_version = 4 [json_name = "modelVersion", (.tagger.v1.tags) = "bson:\"model_version\" json:\"model_version\""]; if (!this->_internal_model_version().empty()) { - const std::string& _s = this->_internal_model_version(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.mltraining.v1.SubmitTrainingJobRequest.model_version"); - target = stream->WriteStringMaybeAliased(4, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_model_version().data(), static_cast(this->_internal_model_version().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.mltraining.v1.SubmitTrainingJobRequest.model_version"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_model_version(), target); } // .viam.app.mltraining.v1.ModelType model_type = 5 [json_name = "modelType", (.tagger.v1.tags) = "bson:\"model_type\" json:\"model_type\""]; if (this->_internal_model_type() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 5, this->_internal_model_type(), target); + 5, this->_internal_model_type(), target); } // repeated string tags = 6 [json_name = "tags", (.tagger.v1.tags) = "bson:\"tags\" json:\"tags\""]; - for (int i = 0, n = this->_internal_tags_size(); i < n; ++i) { - const auto& s = this->_internal_tags().Get(i); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.mltraining.v1.SubmitTrainingJobRequest.tags"); + for (int i = 0, n = this->_internal_tags_size(); i < n; i++) { + const auto& s = this->_internal_tags(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.mltraining.v1.SubmitTrainingJobRequest.tags"); target = stream->WriteString(6, s, target); } // string dataset_id = 7 [json_name = "datasetId", (.tagger.v1.tags) = "bson:\"dataset_id\" json:\"dataset_id\""]; if (!this->_internal_dataset_id().empty()) { - const std::string& _s = this->_internal_dataset_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.mltraining.v1.SubmitTrainingJobRequest.dataset_id"); - target = stream->WriteStringMaybeAliased(7, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_dataset_id().data(), static_cast(this->_internal_dataset_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.mltraining.v1.SubmitTrainingJobRequest.dataset_id"); + target = stream->WriteStringMaybeAliased( + 7, this->_internal_dataset_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.mltraining.v1.SubmitTrainingJobRequest) return target; } -::size_t SubmitTrainingJobRequest::ByteSizeLong() const { +size_t SubmitTrainingJobRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.mltraining.v1.SubmitTrainingJobRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated string tags = 6 [json_name = "tags", (.tagger.v1.tags) = "bson:\"tags\" json:\"tags\""]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_tags().size()); - for (int i = 0, n = _internal_tags().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - _internal_tags().Get(i)); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(tags_.size()); + for (int i = 0, n = tags_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + tags_.Get(i)); } + // string organization_id = 2 [json_name = "organizationId", (.tagger.v1.tags) = "bson:\"organization_id\" json:\"organization_id\""]; if (!this->_internal_organization_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_organization_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_organization_id()); } // string model_name = 3 [json_name = "modelName", (.tagger.v1.tags) = "bson:\"model_name\" json:\"model_name\""]; if (!this->_internal_model_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_model_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_model_name()); } // string model_version = 4 [json_name = "modelVersion", (.tagger.v1.tags) = "bson:\"model_version\" json:\"model_version\""]; if (!this->_internal_model_version().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_model_version()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_model_version()); } // string dataset_id = 7 [json_name = "datasetId", (.tagger.v1.tags) = "bson:\"dataset_id\" json:\"dataset_id\""]; if (!this->_internal_dataset_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_dataset_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_dataset_id()); } // .viam.app.mltraining.v1.ModelType model_type = 5 [json_name = "modelType", (.tagger.v1.tags) = "bson:\"model_type\" json:\"model_type\""]; if (this->_internal_model_type() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_model_type()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_model_type()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData SubmitTrainingJobRequest::_class_data_ = { - SubmitTrainingJobRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SubmitTrainingJobRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + SubmitTrainingJobRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* SubmitTrainingJobRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SubmitTrainingJobRequest::GetClassData() const { return &_class_data_; } + +void SubmitTrainingJobRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void SubmitTrainingJobRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.mltraining.v1.SubmitTrainingJobRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void SubmitTrainingJobRequest::MergeFrom(const SubmitTrainingJobRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.mltraining.v1.SubmitTrainingJobRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_tags()->MergeFrom(from._internal_tags()); + tags_.MergeFrom(from.tags_); if (!from._internal_organization_id().empty()) { - _this->_internal_set_organization_id(from._internal_organization_id()); + _internal_set_organization_id(from._internal_organization_id()); } if (!from._internal_model_name().empty()) { - _this->_internal_set_model_name(from._internal_model_name()); + _internal_set_model_name(from._internal_model_name()); } if (!from._internal_model_version().empty()) { - _this->_internal_set_model_version(from._internal_model_version()); + _internal_set_model_version(from._internal_model_version()); } if (!from._internal_dataset_id().empty()) { - _this->_internal_set_dataset_id(from._internal_dataset_id()); + _internal_set_dataset_id(from._internal_dataset_id()); } if (from._internal_model_type() != 0) { - _this->_internal_set_model_type(from._internal_model_type()); + _internal_set_model_type(from._internal_model_type()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SubmitTrainingJobRequest::CopyFrom(const SubmitTrainingJobRequest& from) { @@ -1207,192 +1060,206 @@ void SubmitTrainingJobRequest::CopyFrom(const SubmitTrainingJobRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool SubmitTrainingJobRequest::IsInitialized() const { +bool SubmitTrainingJobRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* SubmitTrainingJobRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void SubmitTrainingJobRequest::InternalSwap(SubmitTrainingJobRequest* PROTOBUF_RESTRICT other) { +void SubmitTrainingJobRequest::InternalSwap(SubmitTrainingJobRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.tags_.InternalSwap(&other->_impl_.tags_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.organization_id_, &other->_impl_.organization_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.model_name_, &other->_impl_.model_name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.model_version_, &other->_impl_.model_version_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.dataset_id_, &other->_impl_.dataset_id_, arena); - swap(_impl_.model_type_, other->_impl_.model_type_); -} - -::google::protobuf::Metadata SubmitTrainingJobRequest::GetMetadata() const { + tags_.InternalSwap(&other->tags_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &organization_id_, lhs_arena, + &other->organization_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &model_name_, lhs_arena, + &other->model_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &model_version_, lhs_arena, + &other->model_version_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &dataset_id_, lhs_arena, + &other->dataset_id_, rhs_arena + ); + swap(model_type_, other->model_type_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SubmitTrainingJobRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_getter, &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_once, file_level_metadata_app_2fmltraining_2fv1_2fml_5ftraining_2eproto[0]); } + // =================================================================== class SubmitTrainingJobResponse::_Internal { public: }; -SubmitTrainingJobResponse::SubmitTrainingJobResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +SubmitTrainingJobResponse::SubmitTrainingJobResponse(::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.mltraining.v1.SubmitTrainingJobResponse) } -inline PROTOBUF_NDEBUG_INLINE SubmitTrainingJobResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : id_(arena, from.id_), - _cached_size_{0} {} - -SubmitTrainingJobResponse::SubmitTrainingJobResponse( - ::google::protobuf::Arena* arena, - const SubmitTrainingJobResponse& from) - : ::google::protobuf::Message(arena) { - SubmitTrainingJobResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +SubmitTrainingJobResponse::SubmitTrainingJobResponse(const SubmitTrainingJobResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.mltraining.v1.SubmitTrainingJobResponse) } -inline PROTOBUF_NDEBUG_INLINE SubmitTrainingJobResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : id_(arena), - _cached_size_{0} {} -inline void SubmitTrainingJobResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void SubmitTrainingJobResponse::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + SubmitTrainingJobResponse::~SubmitTrainingJobResponse() { // @@protoc_insertion_point(destructor:viam.app.mltraining.v1.SubmitTrainingJobResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void SubmitTrainingJobResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); +} + +void SubmitTrainingJobResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void SubmitTrainingJobResponse::Clear() { +void SubmitTrainingJobResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.mltraining.v1.SubmitTrainingJobResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SubmitTrainingJobResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SubmitTrainingJobResponse::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.mltraining.v1.SubmitTrainingJobResponse.id")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 59, 2> SubmitTrainingJobResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_SubmitTrainingJobResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string id = 1 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(SubmitTrainingJobResponse, _impl_.id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(SubmitTrainingJobResponse, _impl_.id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\60\2\0\0\0\0\0\0" - "viam.app.mltraining.v1.SubmitTrainingJobResponse" - "id" - }}, -}; - -::uint8_t* SubmitTrainingJobResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* SubmitTrainingJobResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.mltraining.v1.SubmitTrainingJobResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.mltraining.v1.SubmitTrainingJobResponse.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.mltraining.v1.SubmitTrainingJobResponse.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.mltraining.v1.SubmitTrainingJobResponse) return target; } -::size_t SubmitTrainingJobResponse::ByteSizeLong() const { +size_t SubmitTrainingJobResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.mltraining.v1.SubmitTrainingJobResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData SubmitTrainingJobResponse::_class_data_ = { - SubmitTrainingJobResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SubmitTrainingJobResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + SubmitTrainingJobResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* SubmitTrainingJobResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SubmitTrainingJobResponse::GetClassData() const { return &_class_data_; } + +void SubmitTrainingJobResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void SubmitTrainingJobResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.mltraining.v1.SubmitTrainingJobResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void SubmitTrainingJobResponse::MergeFrom(const SubmitTrainingJobResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.mltraining.v1.SubmitTrainingJobResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SubmitTrainingJobResponse::CopyFrom(const SubmitTrainingJobResponse& from) { @@ -1402,390 +1269,491 @@ void SubmitTrainingJobResponse::CopyFrom(const SubmitTrainingJobResponse& from) MergeFrom(from); } -PROTOBUF_NOINLINE bool SubmitTrainingJobResponse::IsInitialized() const { +bool SubmitTrainingJobResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* SubmitTrainingJobResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void SubmitTrainingJobResponse::InternalSwap(SubmitTrainingJobResponse* PROTOBUF_RESTRICT other) { +void SubmitTrainingJobResponse::InternalSwap(SubmitTrainingJobResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); } -::google::protobuf::Metadata SubmitTrainingJobResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata SubmitTrainingJobResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_getter, &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_once, file_level_metadata_app_2fmltraining_2fv1_2fml_5ftraining_2eproto[1]); } + // =================================================================== SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse::SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse() {} -SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse::SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse(::google::protobuf::Arena* arena) +SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse::SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) : SuperType(arena) {} -::google::protobuf::Metadata SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse::GetMetadata() const { +void SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse::MergeFrom(const SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_getter, &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_once, file_level_metadata_app_2fmltraining_2fv1_2fml_5ftraining_2eproto[2]); } + // =================================================================== class SubmitCustomTrainingJobRequest::_Internal { public: }; -SubmitCustomTrainingJobRequest::SubmitCustomTrainingJobRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +SubmitCustomTrainingJobRequest::SubmitCustomTrainingJobRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + arguments_(arena) { + SharedCtor(); + if (arena != nullptr && !is_message_owned) { + arena->OwnCustomDestructor(this, &SubmitCustomTrainingJobRequest::ArenaDtor); + } // @@protoc_insertion_point(arena_constructor:viam.app.mltraining.v1.SubmitCustomTrainingJobRequest) } -inline PROTOBUF_NDEBUG_INLINE SubmitCustomTrainingJobRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : arguments_{visibility, arena, from.arguments_}, - dataset_id_(arena, from.dataset_id_), - registry_item_id_(arena, from.registry_item_id_), - organization_id_(arena, from.organization_id_), - model_name_(arena, from.model_name_), - model_version_(arena, from.model_version_), - registry_item_version_(arena, from.registry_item_version_), - _cached_size_{0} {} - -SubmitCustomTrainingJobRequest::SubmitCustomTrainingJobRequest( - ::google::protobuf::Arena* arena, - const SubmitCustomTrainingJobRequest& from) - : ::google::protobuf::Message(arena) { - SubmitCustomTrainingJobRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +SubmitCustomTrainingJobRequest::SubmitCustomTrainingJobRequest(const SubmitCustomTrainingJobRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + arguments_.MergeFrom(from.arguments_); + dataset_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + dataset_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_dataset_id().empty()) { + dataset_id_.Set(from._internal_dataset_id(), + GetArenaForAllocation()); + } + registry_item_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + registry_item_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_registry_item_id().empty()) { + registry_item_id_.Set(from._internal_registry_item_id(), + GetArenaForAllocation()); + } + organization_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_organization_id().empty()) { + organization_id_.Set(from._internal_organization_id(), + GetArenaForAllocation()); + } + model_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + model_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_model_name().empty()) { + model_name_.Set(from._internal_model_name(), + GetArenaForAllocation()); + } + model_version_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + model_version_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_model_version().empty()) { + model_version_.Set(from._internal_model_version(), + GetArenaForAllocation()); + } + registry_item_version_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + registry_item_version_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_registry_item_version().empty()) { + registry_item_version_.Set(from._internal_registry_item_version(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.mltraining.v1.SubmitCustomTrainingJobRequest) } -inline PROTOBUF_NDEBUG_INLINE SubmitCustomTrainingJobRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : arguments_{visibility, arena}, - dataset_id_(arena), - registry_item_id_(arena), - organization_id_(arena), - model_name_(arena), - model_version_(arena), - registry_item_version_(arena), - _cached_size_{0} {} - -inline void SubmitCustomTrainingJobRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); + +inline void SubmitCustomTrainingJobRequest::SharedCtor() { +dataset_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + dataset_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +registry_item_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + registry_item_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +organization_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +model_name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + model_name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +model_version_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + model_version_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +registry_item_version_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + registry_item_version_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + SubmitCustomTrainingJobRequest::~SubmitCustomTrainingJobRequest() { // @@protoc_insertion_point(destructor:viam.app.mltraining.v1.SubmitCustomTrainingJobRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + ArenaDtor(this); + return; + } SharedDtor(); } + inline void SubmitCustomTrainingJobRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.dataset_id_.Destroy(); - _impl_.registry_item_id_.Destroy(); - _impl_.organization_id_.Destroy(); - _impl_.model_name_.Destroy(); - _impl_.model_version_.Destroy(); - _impl_.registry_item_version_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + arguments_.Destruct(); + dataset_id_.Destroy(); + registry_item_id_.Destroy(); + organization_id_.Destroy(); + model_name_.Destroy(); + model_version_.Destroy(); + registry_item_version_.Destroy(); +} + +void SubmitCustomTrainingJobRequest::ArenaDtor(void* object) { + SubmitCustomTrainingJobRequest* _this = reinterpret_cast< SubmitCustomTrainingJobRequest* >(object); + _this->arguments_.Destruct(); +} +void SubmitCustomTrainingJobRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void SubmitCustomTrainingJobRequest::Clear() { +void SubmitCustomTrainingJobRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.mltraining.v1.SubmitCustomTrainingJobRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.arguments_.Clear(); - _impl_.dataset_id_.ClearToEmpty(); - _impl_.registry_item_id_.ClearToEmpty(); - _impl_.organization_id_.ClearToEmpty(); - _impl_.model_name_.ClearToEmpty(); - _impl_.model_version_.ClearToEmpty(); - _impl_.registry_item_version_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SubmitCustomTrainingJobRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + arguments_.Clear(); + dataset_id_.ClearToEmpty(); + registry_item_id_.ClearToEmpty(); + organization_id_.ClearToEmpty(); + model_name_.ClearToEmpty(); + model_version_.ClearToEmpty(); + registry_item_version_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SubmitCustomTrainingJobRequest::_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 dataset_id = 1 [json_name = "datasetId", (.tagger.v1.tags) = "bson:\"dataset_id\" json:\"dataset_id\""]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_dataset_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.dataset_id")); + } else + goto handle_unusual; + continue; + // string registry_item_id = 2 [json_name = "registryItemId", (.tagger.v1.tags) = "bson:\"registry_item_id\" json:\"registry_item_id\""]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_registry_item_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.registry_item_id")); + } else + goto handle_unusual; + continue; + // string organization_id = 3 [json_name = "organizationId", (.tagger.v1.tags) = "bson:\"organization_id\" json:\"organization_id\""]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_organization_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.organization_id")); + } else + goto handle_unusual; + continue; + // string model_name = 4 [json_name = "modelName", (.tagger.v1.tags) = "bson:\"model_name\" json:\"model_name\""]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_model_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.model_name")); + } else + goto handle_unusual; + continue; + // string model_version = 5 [json_name = "modelVersion", (.tagger.v1.tags) = "bson:\"model_version\" json:\"model_version\""]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + auto str = _internal_mutable_model_version(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.model_version")); + } else + goto handle_unusual; + continue; + // string registry_item_version = 6 [json_name = "registryItemVersion", (.tagger.v1.tags) = "bson:\"registry_item_version\" json:\"registry_item_version\""]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + auto str = _internal_mutable_registry_item_version(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.registry_item_version")); + } else + goto handle_unusual; + continue; + // map arguments = 7 [json_name = "arguments"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&arguments_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<58>(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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 7, 1, 156, 2> SubmitCustomTrainingJobRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 7, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967168, // skipmap - offsetof(decltype(_table_), field_entries), - 7, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_SubmitCustomTrainingJobRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string dataset_id = 1 [json_name = "datasetId", (.tagger.v1.tags) = "bson:\"dataset_id\" json:\"dataset_id\""]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(SubmitCustomTrainingJobRequest, _impl_.dataset_id_)}}, - // string registry_item_id = 2 [json_name = "registryItemId", (.tagger.v1.tags) = "bson:\"registry_item_id\" json:\"registry_item_id\""]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(SubmitCustomTrainingJobRequest, _impl_.registry_item_id_)}}, - // string organization_id = 3 [json_name = "organizationId", (.tagger.v1.tags) = "bson:\"organization_id\" json:\"organization_id\""]; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(SubmitCustomTrainingJobRequest, _impl_.organization_id_)}}, - // string model_name = 4 [json_name = "modelName", (.tagger.v1.tags) = "bson:\"model_name\" json:\"model_name\""]; - {::_pbi::TcParser::FastUS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(SubmitCustomTrainingJobRequest, _impl_.model_name_)}}, - // string model_version = 5 [json_name = "modelVersion", (.tagger.v1.tags) = "bson:\"model_version\" json:\"model_version\""]; - {::_pbi::TcParser::FastUS1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(SubmitCustomTrainingJobRequest, _impl_.model_version_)}}, - // string registry_item_version = 6 [json_name = "registryItemVersion", (.tagger.v1.tags) = "bson:\"registry_item_version\" json:\"registry_item_version\""]; - {::_pbi::TcParser::FastUS1, - {50, 63, 0, PROTOBUF_FIELD_OFFSET(SubmitCustomTrainingJobRequest, _impl_.registry_item_version_)}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string dataset_id = 1 [json_name = "datasetId", (.tagger.v1.tags) = "bson:\"dataset_id\" json:\"dataset_id\""]; - {PROTOBUF_FIELD_OFFSET(SubmitCustomTrainingJobRequest, _impl_.dataset_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string registry_item_id = 2 [json_name = "registryItemId", (.tagger.v1.tags) = "bson:\"registry_item_id\" json:\"registry_item_id\""]; - {PROTOBUF_FIELD_OFFSET(SubmitCustomTrainingJobRequest, _impl_.registry_item_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string organization_id = 3 [json_name = "organizationId", (.tagger.v1.tags) = "bson:\"organization_id\" json:\"organization_id\""]; - {PROTOBUF_FIELD_OFFSET(SubmitCustomTrainingJobRequest, _impl_.organization_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string model_name = 4 [json_name = "modelName", (.tagger.v1.tags) = "bson:\"model_name\" json:\"model_name\""]; - {PROTOBUF_FIELD_OFFSET(SubmitCustomTrainingJobRequest, _impl_.model_name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string model_version = 5 [json_name = "modelVersion", (.tagger.v1.tags) = "bson:\"model_version\" json:\"model_version\""]; - {PROTOBUF_FIELD_OFFSET(SubmitCustomTrainingJobRequest, _impl_.model_version_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string registry_item_version = 6 [json_name = "registryItemVersion", (.tagger.v1.tags) = "bson:\"registry_item_version\" json:\"registry_item_version\""]; - {PROTOBUF_FIELD_OFFSET(SubmitCustomTrainingJobRequest, _impl_.registry_item_version_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // map arguments = 7 [json_name = "arguments"]; - {PROTOBUF_FIELD_OFFSET(SubmitCustomTrainingJobRequest, _impl_.arguments_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, - }}, {{ - {::_pbi::TcParser::GetMapAuxInfo< - decltype(SubmitCustomTrainingJobRequest()._impl_.arguments_)>( - 1, 0, 0, 9, - 9)}, - }}, {{ - "\65\12\20\17\12\15\25\11" - "viam.app.mltraining.v1.SubmitCustomTrainingJobRequest" - "dataset_id" - "registry_item_id" - "organization_id" - "model_name" - "model_version" - "registry_item_version" - "arguments" - }}, -}; - -::uint8_t* SubmitCustomTrainingJobRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* SubmitCustomTrainingJobRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.mltraining.v1.SubmitCustomTrainingJobRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string dataset_id = 1 [json_name = "datasetId", (.tagger.v1.tags) = "bson:\"dataset_id\" json:\"dataset_id\""]; if (!this->_internal_dataset_id().empty()) { - const std::string& _s = this->_internal_dataset_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.dataset_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_dataset_id().data(), static_cast(this->_internal_dataset_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.dataset_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_dataset_id(), target); } // string registry_item_id = 2 [json_name = "registryItemId", (.tagger.v1.tags) = "bson:\"registry_item_id\" json:\"registry_item_id\""]; if (!this->_internal_registry_item_id().empty()) { - const std::string& _s = this->_internal_registry_item_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.registry_item_id"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_registry_item_id().data(), static_cast(this->_internal_registry_item_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.registry_item_id"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_registry_item_id(), target); } // string organization_id = 3 [json_name = "organizationId", (.tagger.v1.tags) = "bson:\"organization_id\" json:\"organization_id\""]; if (!this->_internal_organization_id().empty()) { - const std::string& _s = this->_internal_organization_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.organization_id"); - target = stream->WriteStringMaybeAliased(3, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_organization_id().data(), static_cast(this->_internal_organization_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.organization_id"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_organization_id(), target); } // string model_name = 4 [json_name = "modelName", (.tagger.v1.tags) = "bson:\"model_name\" json:\"model_name\""]; if (!this->_internal_model_name().empty()) { - const std::string& _s = this->_internal_model_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.model_name"); - target = stream->WriteStringMaybeAliased(4, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_model_name().data(), static_cast(this->_internal_model_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.model_name"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_model_name(), target); } // string model_version = 5 [json_name = "modelVersion", (.tagger.v1.tags) = "bson:\"model_version\" json:\"model_version\""]; if (!this->_internal_model_version().empty()) { - const std::string& _s = this->_internal_model_version(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.model_version"); - target = stream->WriteStringMaybeAliased(5, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_model_version().data(), static_cast(this->_internal_model_version().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.model_version"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_model_version(), target); } // string registry_item_version = 6 [json_name = "registryItemVersion", (.tagger.v1.tags) = "bson:\"registry_item_version\" json:\"registry_item_version\""]; if (!this->_internal_registry_item_version().empty()) { - const std::string& _s = this->_internal_registry_item_version(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.registry_item_version"); - target = stream->WriteStringMaybeAliased(6, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_registry_item_version().data(), static_cast(this->_internal_registry_item_version().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.registry_item_version"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_registry_item_version(), target); } // map arguments = 7 [json_name = "arguments"]; - if (!_internal_arguments().empty()) { - using MapType = ::google::protobuf::Map; - using WireHelper = _pbi::MapEntryFuncs; - const auto& field = _internal_arguments(); - - if (stream->IsSerializationDeterministic() && field.size() > 1) { - for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { - target = WireHelper::InternalSerialize( - 7, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.arguments"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.second.data(), static_cast(entry.second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.arguments"); + if (!this->_internal_arguments().empty()) { + using MapType = ::_pb::Map; + using WireHelper = SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_arguments(); + 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.mltraining.v1.SubmitCustomTrainingJobRequest.ArgumentsEntry.key"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + entry.second.data(), static_cast(entry.second.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.ArgumentsEntry.value"); + }; + + if (stream->IsSerializationDeterministic() && map_field.size() > 1) { + for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { + target = WireHelper::InternalSerialize(7, entry.first, entry.second, target, stream); + check_utf8(entry); } } else { - for (const auto& entry : field) { - target = WireHelper::InternalSerialize( - 7, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.arguments"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.second.data(), static_cast(entry.second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.arguments"); + for (const auto& entry : map_field) { + target = WireHelper::InternalSerialize(7, 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.mltraining.v1.SubmitCustomTrainingJobRequest) return target; } -::size_t SubmitCustomTrainingJobRequest::ByteSizeLong() const { +size_t SubmitCustomTrainingJobRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.mltraining.v1.SubmitCustomTrainingJobRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // map arguments = 7 [json_name = "arguments"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_arguments_size()); - for (const auto& entry : _internal_arguments()) { - total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_arguments_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator + it = this->_internal_arguments().begin(); + it != this->_internal_arguments().end(); ++it) { + total_size += SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); } + // string dataset_id = 1 [json_name = "datasetId", (.tagger.v1.tags) = "bson:\"dataset_id\" json:\"dataset_id\""]; if (!this->_internal_dataset_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_dataset_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_dataset_id()); } // string registry_item_id = 2 [json_name = "registryItemId", (.tagger.v1.tags) = "bson:\"registry_item_id\" json:\"registry_item_id\""]; if (!this->_internal_registry_item_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_registry_item_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_registry_item_id()); } // string organization_id = 3 [json_name = "organizationId", (.tagger.v1.tags) = "bson:\"organization_id\" json:\"organization_id\""]; if (!this->_internal_organization_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_organization_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_organization_id()); } // string model_name = 4 [json_name = "modelName", (.tagger.v1.tags) = "bson:\"model_name\" json:\"model_name\""]; if (!this->_internal_model_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_model_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_model_name()); } // string model_version = 5 [json_name = "modelVersion", (.tagger.v1.tags) = "bson:\"model_version\" json:\"model_version\""]; if (!this->_internal_model_version().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_model_version()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_model_version()); } // string registry_item_version = 6 [json_name = "registryItemVersion", (.tagger.v1.tags) = "bson:\"registry_item_version\" json:\"registry_item_version\""]; if (!this->_internal_registry_item_version().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_registry_item_version()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_registry_item_version()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData SubmitCustomTrainingJobRequest::_class_data_ = { - SubmitCustomTrainingJobRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SubmitCustomTrainingJobRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + SubmitCustomTrainingJobRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* SubmitCustomTrainingJobRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SubmitCustomTrainingJobRequest::GetClassData() const { return &_class_data_; } + +void SubmitCustomTrainingJobRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void SubmitCustomTrainingJobRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.mltraining.v1.SubmitCustomTrainingJobRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void SubmitCustomTrainingJobRequest::MergeFrom(const SubmitCustomTrainingJobRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.mltraining.v1.SubmitCustomTrainingJobRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.arguments_.MergeFrom(from._impl_.arguments_); + arguments_.MergeFrom(from.arguments_); if (!from._internal_dataset_id().empty()) { - _this->_internal_set_dataset_id(from._internal_dataset_id()); + _internal_set_dataset_id(from._internal_dataset_id()); } if (!from._internal_registry_item_id().empty()) { - _this->_internal_set_registry_item_id(from._internal_registry_item_id()); + _internal_set_registry_item_id(from._internal_registry_item_id()); } if (!from._internal_organization_id().empty()) { - _this->_internal_set_organization_id(from._internal_organization_id()); + _internal_set_organization_id(from._internal_organization_id()); } if (!from._internal_model_name().empty()) { - _this->_internal_set_model_name(from._internal_model_name()); + _internal_set_model_name(from._internal_model_name()); } if (!from._internal_model_version().empty()) { - _this->_internal_set_model_version(from._internal_model_version()); + _internal_set_model_version(from._internal_model_version()); } if (!from._internal_registry_item_version().empty()) { - _this->_internal_set_registry_item_version(from._internal_registry_item_version()); + _internal_set_registry_item_version(from._internal_registry_item_version()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SubmitCustomTrainingJobRequest::CopyFrom(const SubmitCustomTrainingJobRequest& from) { @@ -1795,193 +1763,213 @@ void SubmitCustomTrainingJobRequest::CopyFrom(const SubmitCustomTrainingJobReque MergeFrom(from); } -PROTOBUF_NOINLINE bool SubmitCustomTrainingJobRequest::IsInitialized() const { +bool SubmitCustomTrainingJobRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* SubmitCustomTrainingJobRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void SubmitCustomTrainingJobRequest::InternalSwap(SubmitCustomTrainingJobRequest* PROTOBUF_RESTRICT other) { +void SubmitCustomTrainingJobRequest::InternalSwap(SubmitCustomTrainingJobRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.arguments_.InternalSwap(&other->_impl_.arguments_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.dataset_id_, &other->_impl_.dataset_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.registry_item_id_, &other->_impl_.registry_item_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.organization_id_, &other->_impl_.organization_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.model_name_, &other->_impl_.model_name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.model_version_, &other->_impl_.model_version_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.registry_item_version_, &other->_impl_.registry_item_version_, arena); -} - -::google::protobuf::Metadata SubmitCustomTrainingJobRequest::GetMetadata() const { + arguments_.InternalSwap(&other->arguments_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &dataset_id_, lhs_arena, + &other->dataset_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + ®istry_item_id_, lhs_arena, + &other->registry_item_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &organization_id_, lhs_arena, + &other->organization_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &model_name_, lhs_arena, + &other->model_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &model_version_, lhs_arena, + &other->model_version_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + ®istry_item_version_, lhs_arena, + &other->registry_item_version_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SubmitCustomTrainingJobRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_getter, &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_once, file_level_metadata_app_2fmltraining_2fv1_2fml_5ftraining_2eproto[3]); } + // =================================================================== class SubmitCustomTrainingJobResponse::_Internal { public: }; -SubmitCustomTrainingJobResponse::SubmitCustomTrainingJobResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +SubmitCustomTrainingJobResponse::SubmitCustomTrainingJobResponse(::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.mltraining.v1.SubmitCustomTrainingJobResponse) } -inline PROTOBUF_NDEBUG_INLINE SubmitCustomTrainingJobResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : id_(arena, from.id_), - _cached_size_{0} {} - -SubmitCustomTrainingJobResponse::SubmitCustomTrainingJobResponse( - ::google::protobuf::Arena* arena, - const SubmitCustomTrainingJobResponse& from) - : ::google::protobuf::Message(arena) { - SubmitCustomTrainingJobResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +SubmitCustomTrainingJobResponse::SubmitCustomTrainingJobResponse(const SubmitCustomTrainingJobResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.mltraining.v1.SubmitCustomTrainingJobResponse) } -inline PROTOBUF_NDEBUG_INLINE SubmitCustomTrainingJobResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : id_(arena), - _cached_size_{0} {} -inline void SubmitCustomTrainingJobResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void SubmitCustomTrainingJobResponse::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + SubmitCustomTrainingJobResponse::~SubmitCustomTrainingJobResponse() { // @@protoc_insertion_point(destructor:viam.app.mltraining.v1.SubmitCustomTrainingJobResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void SubmitCustomTrainingJobResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); +} + +void SubmitCustomTrainingJobResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void SubmitCustomTrainingJobResponse::Clear() { +void SubmitCustomTrainingJobResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.mltraining.v1.SubmitCustomTrainingJobResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SubmitCustomTrainingJobResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SubmitCustomTrainingJobResponse::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.mltraining.v1.SubmitCustomTrainingJobResponse.id")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 65, 2> SubmitCustomTrainingJobResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_SubmitCustomTrainingJobResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string id = 1 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(SubmitCustomTrainingJobResponse, _impl_.id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(SubmitCustomTrainingJobResponse, _impl_.id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\66\2\0\0\0\0\0\0" - "viam.app.mltraining.v1.SubmitCustomTrainingJobResponse" - "id" - }}, -}; - -::uint8_t* SubmitCustomTrainingJobResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* SubmitCustomTrainingJobResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.mltraining.v1.SubmitCustomTrainingJobResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.mltraining.v1.SubmitCustomTrainingJobResponse.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.mltraining.v1.SubmitCustomTrainingJobResponse.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.mltraining.v1.SubmitCustomTrainingJobResponse) return target; } -::size_t SubmitCustomTrainingJobResponse::ByteSizeLong() const { +size_t SubmitCustomTrainingJobResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.mltraining.v1.SubmitCustomTrainingJobResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData SubmitCustomTrainingJobResponse::_class_data_ = { - SubmitCustomTrainingJobResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SubmitCustomTrainingJobResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + SubmitCustomTrainingJobResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* SubmitCustomTrainingJobResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SubmitCustomTrainingJobResponse::GetClassData() const { return &_class_data_; } + +void SubmitCustomTrainingJobResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void SubmitCustomTrainingJobResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.mltraining.v1.SubmitCustomTrainingJobResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void SubmitCustomTrainingJobResponse::MergeFrom(const SubmitCustomTrainingJobResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.mltraining.v1.SubmitCustomTrainingJobResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SubmitCustomTrainingJobResponse::CopyFrom(const SubmitCustomTrainingJobResponse& from) { @@ -1991,187 +1979,192 @@ void SubmitCustomTrainingJobResponse::CopyFrom(const SubmitCustomTrainingJobResp MergeFrom(from); } -PROTOBUF_NOINLINE bool SubmitCustomTrainingJobResponse::IsInitialized() const { +bool SubmitCustomTrainingJobResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* SubmitCustomTrainingJobResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void SubmitCustomTrainingJobResponse::InternalSwap(SubmitCustomTrainingJobResponse* PROTOBUF_RESTRICT other) { +void SubmitCustomTrainingJobResponse::InternalSwap(SubmitCustomTrainingJobResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); } -::google::protobuf::Metadata SubmitCustomTrainingJobResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata SubmitCustomTrainingJobResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_getter, &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_once, file_level_metadata_app_2fmltraining_2fv1_2fml_5ftraining_2eproto[4]); } + // =================================================================== class GetTrainingJobRequest::_Internal { public: }; -GetTrainingJobRequest::GetTrainingJobRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetTrainingJobRequest::GetTrainingJobRequest(::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.mltraining.v1.GetTrainingJobRequest) } -inline PROTOBUF_NDEBUG_INLINE GetTrainingJobRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : id_(arena, from.id_), - _cached_size_{0} {} - -GetTrainingJobRequest::GetTrainingJobRequest( - ::google::protobuf::Arena* arena, - const GetTrainingJobRequest& from) - : ::google::protobuf::Message(arena) { - GetTrainingJobRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetTrainingJobRequest::GetTrainingJobRequest(const GetTrainingJobRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.mltraining.v1.GetTrainingJobRequest) } -inline PROTOBUF_NDEBUG_INLINE GetTrainingJobRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : id_(arena), - _cached_size_{0} {} -inline void GetTrainingJobRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetTrainingJobRequest::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + GetTrainingJobRequest::~GetTrainingJobRequest() { // @@protoc_insertion_point(destructor:viam.app.mltraining.v1.GetTrainingJobRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetTrainingJobRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); +} + +void GetTrainingJobRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetTrainingJobRequest::Clear() { +void GetTrainingJobRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.mltraining.v1.GetTrainingJobRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetTrainingJobRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetTrainingJobRequest::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.mltraining.v1.GetTrainingJobRequest.id")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 55, 2> GetTrainingJobRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetTrainingJobRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string id = 1 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetTrainingJobRequest, _impl_.id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(GetTrainingJobRequest, _impl_.id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\54\2\0\0\0\0\0\0" - "viam.app.mltraining.v1.GetTrainingJobRequest" - "id" - }}, -}; - -::uint8_t* GetTrainingJobRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetTrainingJobRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.mltraining.v1.GetTrainingJobRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.mltraining.v1.GetTrainingJobRequest.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.mltraining.v1.GetTrainingJobRequest.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.mltraining.v1.GetTrainingJobRequest) return target; } -::size_t GetTrainingJobRequest::ByteSizeLong() const { +size_t GetTrainingJobRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.mltraining.v1.GetTrainingJobRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetTrainingJobRequest::_class_data_ = { - GetTrainingJobRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetTrainingJobRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetTrainingJobRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetTrainingJobRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetTrainingJobRequest::GetClassData() const { return &_class_data_; } + +void GetTrainingJobRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetTrainingJobRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.mltraining.v1.GetTrainingJobRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetTrainingJobRequest::MergeFrom(const GetTrainingJobRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.mltraining.v1.GetTrainingJobRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetTrainingJobRequest::CopyFrom(const GetTrainingJobRequest& from) { @@ -2181,205 +2174,189 @@ void GetTrainingJobRequest::CopyFrom(const GetTrainingJobRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetTrainingJobRequest::IsInitialized() const { +bool GetTrainingJobRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetTrainingJobRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetTrainingJobRequest::InternalSwap(GetTrainingJobRequest* PROTOBUF_RESTRICT other) { +void GetTrainingJobRequest::InternalSwap(GetTrainingJobRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); } -::google::protobuf::Metadata GetTrainingJobRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetTrainingJobRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_getter, &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_once, file_level_metadata_app_2fmltraining_2fv1_2fml_5ftraining_2eproto[5]); } + // =================================================================== class GetTrainingJobResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetTrainingJobResponse, _impl_._has_bits_); static const ::viam::app::mltraining::v1::TrainingJobMetadata& metadata(const GetTrainingJobResponse* msg); - static void set_has_metadata(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::app::mltraining::v1::TrainingJobMetadata& GetTrainingJobResponse::_Internal::metadata(const GetTrainingJobResponse* msg) { - return *msg->_impl_.metadata_; +const ::viam::app::mltraining::v1::TrainingJobMetadata& +GetTrainingJobResponse::_Internal::metadata(const GetTrainingJobResponse* msg) { + return *msg->metadata_; } -GetTrainingJobResponse::GetTrainingJobResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetTrainingJobResponse::GetTrainingJobResponse(::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.mltraining.v1.GetTrainingJobResponse) } -inline PROTOBUF_NDEBUG_INLINE GetTrainingJobResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -GetTrainingJobResponse::GetTrainingJobResponse( - ::google::protobuf::Arena* arena, - const GetTrainingJobResponse& from) - : ::google::protobuf::Message(arena) { - GetTrainingJobResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.metadata_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::app::mltraining::v1::TrainingJobMetadata>(arena, *from._impl_.metadata_) - : nullptr; - +GetTrainingJobResponse::GetTrainingJobResponse(const GetTrainingJobResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_metadata()) { + metadata_ = new ::viam::app::mltraining::v1::TrainingJobMetadata(*from.metadata_); + } else { + metadata_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.app.mltraining.v1.GetTrainingJobResponse) } -inline PROTOBUF_NDEBUG_INLINE GetTrainingJobResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void GetTrainingJobResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.metadata_ = {}; +inline void GetTrainingJobResponse::SharedCtor() { +metadata_ = nullptr; } + GetTrainingJobResponse::~GetTrainingJobResponse() { // @@protoc_insertion_point(destructor:viam.app.mltraining.v1.GetTrainingJobResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetTrainingJobResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.metadata_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete metadata_; } -PROTOBUF_NOINLINE void GetTrainingJobResponse::Clear() { +void GetTrainingJobResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetTrainingJobResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.mltraining.v1.GetTrainingJobResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.metadata_ != nullptr); - _impl_.metadata_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetTrainingJobResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + if (GetArenaForAllocation() == nullptr && metadata_ != nullptr) { + delete metadata_; + } + metadata_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetTrainingJobResponse::_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.app.mltraining.v1.TrainingJobMetadata metadata = 1 [json_name = "metadata"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_metadata(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetTrainingJobResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetTrainingJobResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetTrainingJobResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.app.mltraining.v1.TrainingJobMetadata metadata = 1 [json_name = "metadata"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetTrainingJobResponse, _impl_.metadata_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.app.mltraining.v1.TrainingJobMetadata metadata = 1 [json_name = "metadata"]; - {PROTOBUF_FIELD_OFFSET(GetTrainingJobResponse, _impl_.metadata_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::mltraining::v1::TrainingJobMetadata>()}, - }}, {{ - }}, -}; - -::uint8_t* GetTrainingJobResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetTrainingJobResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.mltraining.v1.GetTrainingJobResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.app.mltraining.v1.TrainingJobMetadata metadata = 1 [json_name = "metadata"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::metadata(this), + if (this->_internal_has_metadata()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::metadata(this), _Internal::metadata(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.mltraining.v1.GetTrainingJobResponse) return target; } -::size_t GetTrainingJobResponse::ByteSizeLong() const { +size_t GetTrainingJobResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.mltraining.v1.GetTrainingJobResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .viam.app.mltraining.v1.TrainingJobMetadata metadata = 1 [json_name = "metadata"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.metadata_); + if (this->_internal_has_metadata()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *metadata_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetTrainingJobResponse::_class_data_ = { - GetTrainingJobResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetTrainingJobResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetTrainingJobResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetTrainingJobResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetTrainingJobResponse::GetClassData() const { return &_class_data_; } + +void GetTrainingJobResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetTrainingJobResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.mltraining.v1.GetTrainingJobResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetTrainingJobResponse::MergeFrom(const GetTrainingJobResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.mltraining.v1.GetTrainingJobResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_metadata()->::viam::app::mltraining::v1::TrainingJobMetadata::MergeFrom( - from._internal_metadata()); + if (from._internal_has_metadata()) { + _internal_mutable_metadata()->::viam::app::mltraining::v1::TrainingJobMetadata::MergeFrom(from._internal_metadata()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetTrainingJobResponse::CopyFrom(const GetTrainingJobResponse& from) { @@ -2389,211 +2366,215 @@ void GetTrainingJobResponse::CopyFrom(const GetTrainingJobResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetTrainingJobResponse::IsInitialized() const { +bool GetTrainingJobResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetTrainingJobResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetTrainingJobResponse::InternalSwap(GetTrainingJobResponse* PROTOBUF_RESTRICT other) { +void GetTrainingJobResponse::InternalSwap(GetTrainingJobResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.metadata_, other->_impl_.metadata_); + swap(metadata_, other->metadata_); } -::google::protobuf::Metadata GetTrainingJobResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetTrainingJobResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_getter, &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_once, file_level_metadata_app_2fmltraining_2fv1_2fml_5ftraining_2eproto[6]); } + // =================================================================== class ListTrainingJobsRequest::_Internal { public: }; -ListTrainingJobsRequest::ListTrainingJobsRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ListTrainingJobsRequest::ListTrainingJobsRequest(::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.mltraining.v1.ListTrainingJobsRequest) } -inline PROTOBUF_NDEBUG_INLINE ListTrainingJobsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : organization_id_(arena, from.organization_id_), - _cached_size_{0} {} - -ListTrainingJobsRequest::ListTrainingJobsRequest( - ::google::protobuf::Arena* arena, - const ListTrainingJobsRequest& from) - : ::google::protobuf::Message(arena) { - ListTrainingJobsRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.status_ = from._impl_.status_; - +ListTrainingJobsRequest::ListTrainingJobsRequest(const ListTrainingJobsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + organization_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_organization_id().empty()) { + organization_id_.Set(from._internal_organization_id(), + GetArenaForAllocation()); + } + status_ = from.status_; // @@protoc_insertion_point(copy_constructor:viam.app.mltraining.v1.ListTrainingJobsRequest) } -inline PROTOBUF_NDEBUG_INLINE ListTrainingJobsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : organization_id_(arena), - _cached_size_{0} {} -inline void ListTrainingJobsRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.status_ = {}; +inline void ListTrainingJobsRequest::SharedCtor() { +organization_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +status_ = 0; } + ListTrainingJobsRequest::~ListTrainingJobsRequest() { // @@protoc_insertion_point(destructor:viam.app.mltraining.v1.ListTrainingJobsRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ListTrainingJobsRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.organization_id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + organization_id_.Destroy(); } -PROTOBUF_NOINLINE void ListTrainingJobsRequest::Clear() { +void ListTrainingJobsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ListTrainingJobsRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.mltraining.v1.ListTrainingJobsRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.organization_id_.ClearToEmpty(); - _impl_.status_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ListTrainingJobsRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + organization_id_.ClearToEmpty(); + status_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListTrainingJobsRequest::_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 organization_id = 1 [json_name = "organizationId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_organization_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.mltraining.v1.ListTrainingJobsRequest.organization_id")); + } else + goto handle_unusual; + continue; + // .viam.app.mltraining.v1.TrainingStatus status = 2 [json_name = "status"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_status(static_cast<::viam::app::mltraining::v1::TrainingStatus>(val)); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 70, 2> ListTrainingJobsRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_ListTrainingJobsRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.app.mltraining.v1.TrainingStatus status = 2 [json_name = "status"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ListTrainingJobsRequest, _impl_.status_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(ListTrainingJobsRequest, _impl_.status_)}}, - // string organization_id = 1 [json_name = "organizationId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ListTrainingJobsRequest, _impl_.organization_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string organization_id = 1 [json_name = "organizationId"]; - {PROTOBUF_FIELD_OFFSET(ListTrainingJobsRequest, _impl_.organization_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .viam.app.mltraining.v1.TrainingStatus status = 2 [json_name = "status"]; - {PROTOBUF_FIELD_OFFSET(ListTrainingJobsRequest, _impl_.status_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - }}, - // no aux_entries - {{ - "\56\17\0\0\0\0\0\0" - "viam.app.mltraining.v1.ListTrainingJobsRequest" - "organization_id" - }}, -}; - -::uint8_t* ListTrainingJobsRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ListTrainingJobsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.mltraining.v1.ListTrainingJobsRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string organization_id = 1 [json_name = "organizationId"]; if (!this->_internal_organization_id().empty()) { - const std::string& _s = this->_internal_organization_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.mltraining.v1.ListTrainingJobsRequest.organization_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_organization_id().data(), static_cast(this->_internal_organization_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.mltraining.v1.ListTrainingJobsRequest.organization_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_organization_id(), target); } // .viam.app.mltraining.v1.TrainingStatus status = 2 [json_name = "status"]; if (this->_internal_status() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 2, this->_internal_status(), target); + 2, this->_internal_status(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.mltraining.v1.ListTrainingJobsRequest) return target; } -::size_t ListTrainingJobsRequest::ByteSizeLong() const { +size_t ListTrainingJobsRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.mltraining.v1.ListTrainingJobsRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string organization_id = 1 [json_name = "organizationId"]; if (!this->_internal_organization_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_organization_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_organization_id()); } // .viam.app.mltraining.v1.TrainingStatus status = 2 [json_name = "status"]; if (this->_internal_status() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_status()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_status()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ListTrainingJobsRequest::_class_data_ = { - ListTrainingJobsRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListTrainingJobsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ListTrainingJobsRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* ListTrainingJobsRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListTrainingJobsRequest::GetClassData() const { return &_class_data_; } + +void ListTrainingJobsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ListTrainingJobsRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.mltraining.v1.ListTrainingJobsRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ListTrainingJobsRequest::MergeFrom(const ListTrainingJobsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.mltraining.v1.ListTrainingJobsRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_organization_id().empty()) { - _this->_internal_set_organization_id(from._internal_organization_id()); + _internal_set_organization_id(from._internal_organization_id()); } if (from._internal_status() != 0) { - _this->_internal_set_status(from._internal_status()); + _internal_set_status(from._internal_status()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ListTrainingJobsRequest::CopyFrom(const ListTrainingJobsRequest& from) { @@ -2603,183 +2584,181 @@ void ListTrainingJobsRequest::CopyFrom(const ListTrainingJobsRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ListTrainingJobsRequest::IsInitialized() const { +bool ListTrainingJobsRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* ListTrainingJobsRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ListTrainingJobsRequest::InternalSwap(ListTrainingJobsRequest* PROTOBUF_RESTRICT other) { +void ListTrainingJobsRequest::InternalSwap(ListTrainingJobsRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.organization_id_, &other->_impl_.organization_id_, arena); - swap(_impl_.status_, other->_impl_.status_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &organization_id_, lhs_arena, + &other->organization_id_, rhs_arena + ); + swap(status_, other->status_); } -::google::protobuf::Metadata ListTrainingJobsRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ListTrainingJobsRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_getter, &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_once, file_level_metadata_app_2fmltraining_2fv1_2fml_5ftraining_2eproto[7]); } + // =================================================================== class ListTrainingJobsResponse::_Internal { public: }; -ListTrainingJobsResponse::ListTrainingJobsResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ListTrainingJobsResponse::ListTrainingJobsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + jobs_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.mltraining.v1.ListTrainingJobsResponse) } -inline PROTOBUF_NDEBUG_INLINE ListTrainingJobsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : jobs_{visibility, arena, from.jobs_}, - _cached_size_{0} {} - -ListTrainingJobsResponse::ListTrainingJobsResponse( - ::google::protobuf::Arena* arena, - const ListTrainingJobsResponse& from) - : ::google::protobuf::Message(arena) { - ListTrainingJobsResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +ListTrainingJobsResponse::ListTrainingJobsResponse(const ListTrainingJobsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + jobs_(from.jobs_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.app.mltraining.v1.ListTrainingJobsResponse) } -inline PROTOBUF_NDEBUG_INLINE ListTrainingJobsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : jobs_{visibility, arena}, - _cached_size_{0} {} -inline void ListTrainingJobsResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void ListTrainingJobsResponse::SharedCtor() { } + ListTrainingJobsResponse::~ListTrainingJobsResponse() { // @@protoc_insertion_point(destructor:viam.app.mltraining.v1.ListTrainingJobsResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ListTrainingJobsResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void ListTrainingJobsResponse::Clear() { +void ListTrainingJobsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ListTrainingJobsResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.mltraining.v1.ListTrainingJobsResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.jobs_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ListTrainingJobsResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + jobs_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListTrainingJobsResponse::_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) { + // repeated .viam.app.mltraining.v1.TrainingJobMetadata jobs = 1 [json_name = "jobs"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_jobs(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ListTrainingJobsResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ListTrainingJobsResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.app.mltraining.v1.TrainingJobMetadata jobs = 1 [json_name = "jobs"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ListTrainingJobsResponse, _impl_.jobs_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.app.mltraining.v1.TrainingJobMetadata jobs = 1 [json_name = "jobs"]; - {PROTOBUF_FIELD_OFFSET(ListTrainingJobsResponse, _impl_.jobs_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::mltraining::v1::TrainingJobMetadata>()}, - }}, {{ - }}, -}; - -::uint8_t* ListTrainingJobsResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ListTrainingJobsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.mltraining.v1.ListTrainingJobsResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .viam.app.mltraining.v1.TrainingJobMetadata jobs = 1 [json_name = "jobs"]; for (unsigned i = 0, n = static_cast(this->_internal_jobs_size()); i < n; i++) { - const auto& repfield = this->_internal_jobs().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_jobs(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.mltraining.v1.ListTrainingJobsResponse) return target; } -::size_t ListTrainingJobsResponse::ByteSizeLong() const { +size_t ListTrainingJobsResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.mltraining.v1.ListTrainingJobsResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.app.mltraining.v1.TrainingJobMetadata jobs = 1 [json_name = "jobs"]; total_size += 1UL * this->_internal_jobs_size(); - for (const auto& msg : this->_internal_jobs()) { + for (const auto& msg : this->jobs_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ListTrainingJobsResponse::_class_data_ = { - ListTrainingJobsResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListTrainingJobsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ListTrainingJobsResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* ListTrainingJobsResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListTrainingJobsResponse::GetClassData() const { return &_class_data_; } + +void ListTrainingJobsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ListTrainingJobsResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.mltraining.v1.ListTrainingJobsResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ListTrainingJobsResponse::MergeFrom(const ListTrainingJobsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.mltraining.v1.ListTrainingJobsResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_jobs()->MergeFrom( - from._internal_jobs()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + jobs_.MergeFrom(from.jobs_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ListTrainingJobsResponse::CopyFrom(const ListTrainingJobsResponse& from) { @@ -2789,518 +2768,620 @@ void ListTrainingJobsResponse::CopyFrom(const ListTrainingJobsResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ListTrainingJobsResponse::IsInitialized() const { +bool ListTrainingJobsResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* ListTrainingJobsResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ListTrainingJobsResponse::InternalSwap(ListTrainingJobsResponse* PROTOBUF_RESTRICT other) { +void ListTrainingJobsResponse::InternalSwap(ListTrainingJobsResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.jobs_.InternalSwap(&other->_impl_.jobs_); + jobs_.InternalSwap(&other->jobs_); } -::google::protobuf::Metadata ListTrainingJobsResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ListTrainingJobsResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_getter, &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_once, file_level_metadata_app_2fmltraining_2fv1_2fml_5ftraining_2eproto[8]); } + // =================================================================== class TrainingJobMetadata::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(TrainingJobMetadata, _impl_._has_bits_); static const ::google::rpc::Status& error_status(const TrainingJobMetadata* msg); - static void set_has_error_status(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static const ::google::protobuf::Timestamp& created_on(const TrainingJobMetadata* msg); - static void set_has_created_on(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::google::protobuf::Timestamp& last_modified(const TrainingJobMetadata* msg); - static void set_has_last_modified(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static const ::google::protobuf::Timestamp& training_started(const TrainingJobMetadata* msg); - static void set_has_training_started(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static const ::google::protobuf::Timestamp& training_ended(const TrainingJobMetadata* msg); - static void set_has_training_ended(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& created_on(const TrainingJobMetadata* msg); + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& last_modified(const TrainingJobMetadata* msg); + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& training_started(const TrainingJobMetadata* msg); + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& training_ended(const TrainingJobMetadata* msg); }; -const ::google::rpc::Status& TrainingJobMetadata::_Internal::error_status(const TrainingJobMetadata* msg) { - return *msg->_impl_.error_status_; +const ::google::rpc::Status& +TrainingJobMetadata::_Internal::error_status(const TrainingJobMetadata* msg) { + return *msg->error_status_; } -const ::google::protobuf::Timestamp& TrainingJobMetadata::_Internal::created_on(const TrainingJobMetadata* msg) { - return *msg->_impl_.created_on_; +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +TrainingJobMetadata::_Internal::created_on(const TrainingJobMetadata* msg) { + return *msg->created_on_; } -const ::google::protobuf::Timestamp& TrainingJobMetadata::_Internal::last_modified(const TrainingJobMetadata* msg) { - return *msg->_impl_.last_modified_; +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +TrainingJobMetadata::_Internal::last_modified(const TrainingJobMetadata* msg) { + return *msg->last_modified_; } -const ::google::protobuf::Timestamp& TrainingJobMetadata::_Internal::training_started(const TrainingJobMetadata* msg) { - return *msg->_impl_.training_started_; +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +TrainingJobMetadata::_Internal::training_started(const TrainingJobMetadata* msg) { + return *msg->training_started_; } -const ::google::protobuf::Timestamp& TrainingJobMetadata::_Internal::training_ended(const TrainingJobMetadata* msg) { - return *msg->_impl_.training_ended_; +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +TrainingJobMetadata::_Internal::training_ended(const TrainingJobMetadata* msg) { + return *msg->training_ended_; } void TrainingJobMetadata::clear_error_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.error_status_ != nullptr) _impl_.error_status_->Clear(); - _impl_._has_bits_[0] &= ~0x00000004u; + if (GetArenaForAllocation() == nullptr && error_status_ != nullptr) { + delete error_status_; + } + error_status_ = nullptr; } void TrainingJobMetadata::clear_created_on() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.created_on_ != nullptr) _impl_.created_on_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && created_on_ != nullptr) { + delete created_on_; + } + created_on_ = nullptr; } void TrainingJobMetadata::clear_last_modified() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.last_modified_ != nullptr) _impl_.last_modified_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && last_modified_ != nullptr) { + delete last_modified_; + } + last_modified_ = nullptr; } void TrainingJobMetadata::clear_training_started() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.training_started_ != nullptr) _impl_.training_started_->Clear(); - _impl_._has_bits_[0] &= ~0x00000008u; + if (GetArenaForAllocation() == nullptr && training_started_ != nullptr) { + delete training_started_; + } + training_started_ = nullptr; } void TrainingJobMetadata::clear_training_ended() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.training_ended_ != nullptr) _impl_.training_ended_->Clear(); - _impl_._has_bits_[0] &= ~0x00000010u; + if (GetArenaForAllocation() == nullptr && training_ended_ != nullptr) { + delete training_ended_; + } + training_ended_ = nullptr; } -TrainingJobMetadata::TrainingJobMetadata(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +TrainingJobMetadata::TrainingJobMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + tags_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.mltraining.v1.TrainingJobMetadata) } -inline PROTOBUF_NDEBUG_INLINE TrainingJobMetadata::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - tags_{visibility, arena, from.tags_}, - synced_model_id_(arena, from.synced_model_id_), - id_(arena, from.id_), - dataset_id_(arena, from.dataset_id_), - organization_id_(arena, from.organization_id_), - model_name_(arena, from.model_name_), - model_version_(arena, from.model_version_), - registry_item_id_(arena, from.registry_item_id_), - registry_item_version_(arena, from.registry_item_version_) {} - -TrainingJobMetadata::TrainingJobMetadata( - ::google::protobuf::Arena* arena, - const TrainingJobMetadata& from) - : ::google::protobuf::Message(arena) { - TrainingJobMetadata* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.created_on_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.created_on_) - : nullptr; - _impl_.last_modified_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.last_modified_) - : nullptr; - _impl_.error_status_ = (cached_has_bits & 0x00000004u) - ? CreateMaybeMessage<::google::rpc::Status>(arena, *from._impl_.error_status_) - : nullptr; - _impl_.training_started_ = (cached_has_bits & 0x00000008u) - ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.training_started_) - : nullptr; - _impl_.training_ended_ = (cached_has_bits & 0x00000010u) - ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.training_ended_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, status_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, status_), - offsetof(Impl_, is_custom_job_) - - offsetof(Impl_, status_) + - sizeof(Impl_::is_custom_job_)); - +TrainingJobMetadata::TrainingJobMetadata(const TrainingJobMetadata& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + tags_(from.tags_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + synced_model_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + synced_model_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_synced_model_id().empty()) { + synced_model_id_.Set(from._internal_synced_model_id(), + GetArenaForAllocation()); + } + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } + dataset_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + dataset_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_dataset_id().empty()) { + dataset_id_.Set(from._internal_dataset_id(), + GetArenaForAllocation()); + } + organization_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_organization_id().empty()) { + organization_id_.Set(from._internal_organization_id(), + GetArenaForAllocation()); + } + model_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + model_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_model_name().empty()) { + model_name_.Set(from._internal_model_name(), + GetArenaForAllocation()); + } + model_version_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + model_version_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_model_version().empty()) { + model_version_.Set(from._internal_model_version(), + GetArenaForAllocation()); + } + registry_item_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + registry_item_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_registry_item_id().empty()) { + registry_item_id_.Set(from._internal_registry_item_id(), + GetArenaForAllocation()); + } + registry_item_version_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + registry_item_version_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_registry_item_version().empty()) { + registry_item_version_.Set(from._internal_registry_item_version(), + GetArenaForAllocation()); + } + if (from._internal_has_created_on()) { + created_on_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from.created_on_); + } else { + created_on_ = nullptr; + } + if (from._internal_has_last_modified()) { + last_modified_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from.last_modified_); + } else { + last_modified_ = nullptr; + } + if (from._internal_has_error_status()) { + error_status_ = new ::google::rpc::Status(*from.error_status_); + } else { + error_status_ = nullptr; + } + if (from._internal_has_training_started()) { + training_started_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from.training_started_); + } else { + training_started_ = nullptr; + } + if (from._internal_has_training_ended()) { + training_ended_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from.training_ended_); + } else { + training_ended_ = nullptr; + } + ::memcpy(&status_, &from.status_, + static_cast(reinterpret_cast(&is_custom_job_) - + reinterpret_cast(&status_)) + sizeof(is_custom_job_)); // @@protoc_insertion_point(copy_constructor:viam.app.mltraining.v1.TrainingJobMetadata) } -inline PROTOBUF_NDEBUG_INLINE TrainingJobMetadata::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - tags_{visibility, arena}, - synced_model_id_(arena), - id_(arena), - dataset_id_(arena), - organization_id_(arena), - model_name_(arena), - model_version_(arena), - registry_item_id_(arena), - registry_item_version_(arena) {} - -inline void TrainingJobMetadata::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, created_on_), - 0, - offsetof(Impl_, is_custom_job_) - - offsetof(Impl_, created_on_) + - sizeof(Impl_::is_custom_job_)); + +inline void TrainingJobMetadata::SharedCtor() { +synced_model_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + synced_model_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +dataset_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + dataset_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +organization_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +model_name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + model_name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +model_version_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + model_version_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +registry_item_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + registry_item_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +registry_item_version_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + registry_item_version_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&created_on_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&is_custom_job_) - + reinterpret_cast(&created_on_)) + sizeof(is_custom_job_)); } + TrainingJobMetadata::~TrainingJobMetadata() { // @@protoc_insertion_point(destructor:viam.app.mltraining.v1.TrainingJobMetadata) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void TrainingJobMetadata::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.synced_model_id_.Destroy(); - _impl_.id_.Destroy(); - _impl_.dataset_id_.Destroy(); - _impl_.organization_id_.Destroy(); - _impl_.model_name_.Destroy(); - _impl_.model_version_.Destroy(); - _impl_.registry_item_id_.Destroy(); - _impl_.registry_item_version_.Destroy(); - delete _impl_.created_on_; - delete _impl_.last_modified_; - delete _impl_.error_status_; - delete _impl_.training_started_; - delete _impl_.training_ended_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void TrainingJobMetadata::Clear() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + synced_model_id_.Destroy(); + id_.Destroy(); + dataset_id_.Destroy(); + organization_id_.Destroy(); + model_name_.Destroy(); + model_version_.Destroy(); + registry_item_id_.Destroy(); + registry_item_version_.Destroy(); + if (this != internal_default_instance()) delete created_on_; + if (this != internal_default_instance()) delete last_modified_; + if (this != internal_default_instance()) delete error_status_; + if (this != internal_default_instance()) delete training_started_; + if (this != internal_default_instance()) delete training_ended_; +} + +void TrainingJobMetadata::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void TrainingJobMetadata::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.mltraining.v1.TrainingJobMetadata) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.tags_.Clear(); - _impl_.synced_model_id_.ClearToEmpty(); - _impl_.id_.ClearToEmpty(); - _impl_.dataset_id_.ClearToEmpty(); - _impl_.organization_id_.ClearToEmpty(); - _impl_.model_name_.ClearToEmpty(); - _impl_.model_version_.ClearToEmpty(); - _impl_.registry_item_id_.ClearToEmpty(); - _impl_.registry_item_version_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.created_on_ != nullptr); - _impl_.created_on_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.last_modified_ != nullptr); - _impl_.last_modified_->Clear(); - } - if (cached_has_bits & 0x00000004u) { - ABSL_DCHECK(_impl_.error_status_ != nullptr); - _impl_.error_status_->Clear(); - } - if (cached_has_bits & 0x00000008u) { - ABSL_DCHECK(_impl_.training_started_ != nullptr); - _impl_.training_started_->Clear(); + tags_.Clear(); + synced_model_id_.ClearToEmpty(); + id_.ClearToEmpty(); + dataset_id_.ClearToEmpty(); + organization_id_.ClearToEmpty(); + model_name_.ClearToEmpty(); + model_version_.ClearToEmpty(); + registry_item_id_.ClearToEmpty(); + registry_item_version_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && created_on_ != nullptr) { + delete created_on_; + } + created_on_ = nullptr; + if (GetArenaForAllocation() == nullptr && last_modified_ != nullptr) { + delete last_modified_; + } + last_modified_ = nullptr; + if (GetArenaForAllocation() == nullptr && error_status_ != nullptr) { + delete error_status_; + } + error_status_ = nullptr; + if (GetArenaForAllocation() == nullptr && training_started_ != nullptr) { + delete training_started_; + } + training_started_ = nullptr; + if (GetArenaForAllocation() == nullptr && training_ended_ != nullptr) { + delete training_ended_; + } + training_ended_ = nullptr; + ::memset(&status_, 0, static_cast( + reinterpret_cast(&is_custom_job_) - + reinterpret_cast(&status_)) + sizeof(is_custom_job_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* TrainingJobMetadata::_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.app.mltraining.v1.TrainingStatus status = 2 [json_name = "status", (.tagger.v1.tags) = "bson:\"status\" json:\"status\""]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_status(static_cast<::viam::app::mltraining::v1::TrainingStatus>(val)); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\" json:\"created_on\""]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_created_on(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp last_modified = 4 [json_name = "lastModified", (.tagger.v1.tags) = "bson:\"last_modified\" json:\"last_modified\""]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_last_modified(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string synced_model_id = 5 [json_name = "syncedModelId", (.tagger.v1.tags) = "bson:\"synced_model_id\" json:\"synced_model_id\""]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + auto str = _internal_mutable_synced_model_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.mltraining.v1.TrainingJobMetadata.synced_model_id")); + } else + goto handle_unusual; + continue; + // string id = 7 [json_name = "id", (.tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.mltraining.v1.TrainingJobMetadata.id")); + } else + goto handle_unusual; + continue; + // .google.rpc.Status error_status = 8 [json_name = "errorStatus", (.tagger.v1.tags) = "bson:\"error_status\" json:\"error_status\""]; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { + ptr = ctx->ParseMessage(_internal_mutable_error_status(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp training_started = 9 [json_name = "trainingStarted", (.tagger.v1.tags) = "bson:\"training_started\" json:\"training_started\""]; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { + ptr = ctx->ParseMessage(_internal_mutable_training_started(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp training_ended = 10 [json_name = "trainingEnded", (.tagger.v1.tags) = "bson:\"training_ended\" json:\"training_ended\""]; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { + ptr = ctx->ParseMessage(_internal_mutable_training_ended(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string dataset_id = 11 [json_name = "datasetId", (.tagger.v1.tags) = "bson:\"dataset_id\" json:\"dataset_id\""]; + case 11: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 90)) { + auto str = _internal_mutable_dataset_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.mltraining.v1.TrainingJobMetadata.dataset_id")); + } else + goto handle_unusual; + continue; + // string organization_id = 12 [json_name = "organizationId", (.tagger.v1.tags) = "bson:\"organization_id\" json:\"organization_id\""]; + case 12: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 98)) { + auto str = _internal_mutable_organization_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.mltraining.v1.TrainingJobMetadata.organization_id")); + } else + goto handle_unusual; + continue; + // string model_name = 13 [json_name = "modelName", (.tagger.v1.tags) = "bson:\"model_name\" json:\"model_name\""]; + case 13: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 106)) { + auto str = _internal_mutable_model_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.mltraining.v1.TrainingJobMetadata.model_name")); + } else + goto handle_unusual; + continue; + // string model_version = 14 [json_name = "modelVersion", (.tagger.v1.tags) = "bson:\"model_version\" json:\"model_version\""]; + case 14: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 114)) { + auto str = _internal_mutable_model_version(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.mltraining.v1.TrainingJobMetadata.model_version")); + } else + goto handle_unusual; + continue; + // .viam.app.mltraining.v1.ModelType model_type = 15 [json_name = "modelType", (.tagger.v1.tags) = "bson:\"model_type\" json:\"model_type\""]; + case 15: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 120)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_model_type(static_cast<::viam::app::mltraining::v1::ModelType>(val)); + } else + goto handle_unusual; + continue; + // repeated string tags = 16 [json_name = "tags", (.tagger.v1.tags) = "bson:\"tags\" json:\"tags\""]; + case 16: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 130)) { + ptr -= 2; + do { + ptr += 2; + auto str = _internal_add_tags(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.mltraining.v1.TrainingJobMetadata.tags")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<130>(ptr)); + } else + goto handle_unusual; + continue; + // .viam.app.mltraining.v1.ModelFramework model_framework = 17 [json_name = "modelFramework", (.tagger.v1.tags) = "bson:\"model_framework\" json:\"model_framework\""]; + case 17: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 136)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_model_framework(static_cast<::viam::app::mltraining::v1::ModelFramework>(val)); + } else + goto handle_unusual; + continue; + // bool is_custom_job = 18 [json_name = "isCustomJob", (.tagger.v1.tags) = "bson:\"is_custom_job\" json:\"is_custom_job\""]; + case 18: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 144)) { + is_custom_job_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string registry_item_id = 19 [json_name = "registryItemId", (.tagger.v1.tags) = "bson:\"registry_item_id\" json:\"registry_item_id\""]; + case 19: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 154)) { + auto str = _internal_mutable_registry_item_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.mltraining.v1.TrainingJobMetadata.registry_item_id")); + } else + goto handle_unusual; + continue; + // string registry_item_version = 20 [json_name = "registryItemVersion", (.tagger.v1.tags) = "bson:\"registry_item_version\" json:\"registry_item_version\""]; + case 20: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 162)) { + auto str = _internal_mutable_registry_item_version(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.mltraining.v1.TrainingJobMetadata.registry_item_version")); + } 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; } - if (cached_has_bits & 0x00000010u) { - ABSL_DCHECK(_impl_.training_ended_ != nullptr); - _impl_.training_ended_->Clear(); - } - } - ::memset(&_impl_.status_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.is_custom_job_) - - reinterpret_cast(&_impl_.status_)) + sizeof(_impl_.is_custom_job_)); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* TrainingJobMetadata::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<5, 18, 5, 173, 2> TrainingJobMetadata::_table_ = { - { - PROTOBUF_FIELD_OFFSET(TrainingJobMetadata, _impl_._has_bits_), - 0, // no _extensions_ - 20, 248, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4293918753, // skipmap - offsetof(decltype(_table_), field_entries), - 18, // num_field_entries - 5, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_TrainingJobMetadata_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - // .viam.app.mltraining.v1.TrainingStatus status = 2 [json_name = "status", (.tagger.v1.tags) = "bson:\"status\" json:\"status\""]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(TrainingJobMetadata, _impl_.status_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(TrainingJobMetadata, _impl_.status_)}}, - // .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\" json:\"created_on\""]; - {::_pbi::TcParser::FastMtS1, - {26, 0, 0, PROTOBUF_FIELD_OFFSET(TrainingJobMetadata, _impl_.created_on_)}}, - // .google.protobuf.Timestamp last_modified = 4 [json_name = "lastModified", (.tagger.v1.tags) = "bson:\"last_modified\" json:\"last_modified\""]; - {::_pbi::TcParser::FastMtS1, - {34, 1, 1, PROTOBUF_FIELD_OFFSET(TrainingJobMetadata, _impl_.last_modified_)}}, - // string synced_model_id = 5 [json_name = "syncedModelId", (.tagger.v1.tags) = "bson:\"synced_model_id\" json:\"synced_model_id\""]; - {::_pbi::TcParser::FastUS1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(TrainingJobMetadata, _impl_.synced_model_id_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // string id = 7 [json_name = "id", (.tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""]; - {::_pbi::TcParser::FastUS1, - {58, 63, 0, PROTOBUF_FIELD_OFFSET(TrainingJobMetadata, _impl_.id_)}}, - // .google.rpc.Status error_status = 8 [json_name = "errorStatus", (.tagger.v1.tags) = "bson:\"error_status\" json:\"error_status\""]; - {::_pbi::TcParser::FastMtS1, - {66, 2, 2, PROTOBUF_FIELD_OFFSET(TrainingJobMetadata, _impl_.error_status_)}}, - // .google.protobuf.Timestamp training_started = 9 [json_name = "trainingStarted", (.tagger.v1.tags) = "bson:\"training_started\" json:\"training_started\""]; - {::_pbi::TcParser::FastMtS1, - {74, 3, 3, PROTOBUF_FIELD_OFFSET(TrainingJobMetadata, _impl_.training_started_)}}, - // .google.protobuf.Timestamp training_ended = 10 [json_name = "trainingEnded", (.tagger.v1.tags) = "bson:\"training_ended\" json:\"training_ended\""]; - {::_pbi::TcParser::FastMtS1, - {82, 4, 4, PROTOBUF_FIELD_OFFSET(TrainingJobMetadata, _impl_.training_ended_)}}, - // string dataset_id = 11 [json_name = "datasetId", (.tagger.v1.tags) = "bson:\"dataset_id\" json:\"dataset_id\""]; - {::_pbi::TcParser::FastUS1, - {90, 63, 0, PROTOBUF_FIELD_OFFSET(TrainingJobMetadata, _impl_.dataset_id_)}}, - // string organization_id = 12 [json_name = "organizationId", (.tagger.v1.tags) = "bson:\"organization_id\" json:\"organization_id\""]; - {::_pbi::TcParser::FastUS1, - {98, 63, 0, PROTOBUF_FIELD_OFFSET(TrainingJobMetadata, _impl_.organization_id_)}}, - // string model_name = 13 [json_name = "modelName", (.tagger.v1.tags) = "bson:\"model_name\" json:\"model_name\""]; - {::_pbi::TcParser::FastUS1, - {106, 63, 0, PROTOBUF_FIELD_OFFSET(TrainingJobMetadata, _impl_.model_name_)}}, - // string model_version = 14 [json_name = "modelVersion", (.tagger.v1.tags) = "bson:\"model_version\" json:\"model_version\""]; - {::_pbi::TcParser::FastUS1, - {114, 63, 0, PROTOBUF_FIELD_OFFSET(TrainingJobMetadata, _impl_.model_version_)}}, - // .viam.app.mltraining.v1.ModelType model_type = 15 [json_name = "modelType", (.tagger.v1.tags) = "bson:\"model_type\" json:\"model_type\""]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(TrainingJobMetadata, _impl_.model_type_), 63>(), - {120, 63, 0, PROTOBUF_FIELD_OFFSET(TrainingJobMetadata, _impl_.model_type_)}}, - // repeated string tags = 16 [json_name = "tags", (.tagger.v1.tags) = "bson:\"tags\" json:\"tags\""]; - {::_pbi::TcParser::FastUR2, - {386, 63, 0, PROTOBUF_FIELD_OFFSET(TrainingJobMetadata, _impl_.tags_)}}, - // .viam.app.mltraining.v1.ModelFramework model_framework = 17 [json_name = "modelFramework", (.tagger.v1.tags) = "bson:\"model_framework\" json:\"model_framework\""]; - {::_pbi::TcParser::FastV32S2, - {392, 63, 0, PROTOBUF_FIELD_OFFSET(TrainingJobMetadata, _impl_.model_framework_)}}, - // bool is_custom_job = 18 [json_name = "isCustomJob", (.tagger.v1.tags) = "bson:\"is_custom_job\" json:\"is_custom_job\""]; - {::_pbi::TcParser::FastV8S2, - {400, 63, 0, PROTOBUF_FIELD_OFFSET(TrainingJobMetadata, _impl_.is_custom_job_)}}, - // string registry_item_id = 19 [json_name = "registryItemId", (.tagger.v1.tags) = "bson:\"registry_item_id\" json:\"registry_item_id\""]; - {::_pbi::TcParser::FastUS2, - {410, 63, 0, PROTOBUF_FIELD_OFFSET(TrainingJobMetadata, _impl_.registry_item_id_)}}, - // string registry_item_version = 20 [json_name = "registryItemVersion", (.tagger.v1.tags) = "bson:\"registry_item_version\" json:\"registry_item_version\""]; - {::_pbi::TcParser::FastUS2, - {418, 63, 0, PROTOBUF_FIELD_OFFSET(TrainingJobMetadata, _impl_.registry_item_version_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.app.mltraining.v1.TrainingStatus status = 2 [json_name = "status", (.tagger.v1.tags) = "bson:\"status\" json:\"status\""]; - {PROTOBUF_FIELD_OFFSET(TrainingJobMetadata, _impl_.status_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\" json:\"created_on\""]; - {PROTOBUF_FIELD_OFFSET(TrainingJobMetadata, _impl_.created_on_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.protobuf.Timestamp last_modified = 4 [json_name = "lastModified", (.tagger.v1.tags) = "bson:\"last_modified\" json:\"last_modified\""]; - {PROTOBUF_FIELD_OFFSET(TrainingJobMetadata, _impl_.last_modified_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // string synced_model_id = 5 [json_name = "syncedModelId", (.tagger.v1.tags) = "bson:\"synced_model_id\" json:\"synced_model_id\""]; - {PROTOBUF_FIELD_OFFSET(TrainingJobMetadata, _impl_.synced_model_id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string id = 7 [json_name = "id", (.tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""]; - {PROTOBUF_FIELD_OFFSET(TrainingJobMetadata, _impl_.id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.rpc.Status error_status = 8 [json_name = "errorStatus", (.tagger.v1.tags) = "bson:\"error_status\" json:\"error_status\""]; - {PROTOBUF_FIELD_OFFSET(TrainingJobMetadata, _impl_.error_status_), _Internal::kHasBitsOffset + 2, 2, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.protobuf.Timestamp training_started = 9 [json_name = "trainingStarted", (.tagger.v1.tags) = "bson:\"training_started\" json:\"training_started\""]; - {PROTOBUF_FIELD_OFFSET(TrainingJobMetadata, _impl_.training_started_), _Internal::kHasBitsOffset + 3, 3, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.protobuf.Timestamp training_ended = 10 [json_name = "trainingEnded", (.tagger.v1.tags) = "bson:\"training_ended\" json:\"training_ended\""]; - {PROTOBUF_FIELD_OFFSET(TrainingJobMetadata, _impl_.training_ended_), _Internal::kHasBitsOffset + 4, 4, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // string dataset_id = 11 [json_name = "datasetId", (.tagger.v1.tags) = "bson:\"dataset_id\" json:\"dataset_id\""]; - {PROTOBUF_FIELD_OFFSET(TrainingJobMetadata, _impl_.dataset_id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string organization_id = 12 [json_name = "organizationId", (.tagger.v1.tags) = "bson:\"organization_id\" json:\"organization_id\""]; - {PROTOBUF_FIELD_OFFSET(TrainingJobMetadata, _impl_.organization_id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string model_name = 13 [json_name = "modelName", (.tagger.v1.tags) = "bson:\"model_name\" json:\"model_name\""]; - {PROTOBUF_FIELD_OFFSET(TrainingJobMetadata, _impl_.model_name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string model_version = 14 [json_name = "modelVersion", (.tagger.v1.tags) = "bson:\"model_version\" json:\"model_version\""]; - {PROTOBUF_FIELD_OFFSET(TrainingJobMetadata, _impl_.model_version_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .viam.app.mltraining.v1.ModelType model_type = 15 [json_name = "modelType", (.tagger.v1.tags) = "bson:\"model_type\" json:\"model_type\""]; - {PROTOBUF_FIELD_OFFSET(TrainingJobMetadata, _impl_.model_type_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // repeated string tags = 16 [json_name = "tags", (.tagger.v1.tags) = "bson:\"tags\" json:\"tags\""]; - {PROTOBUF_FIELD_OFFSET(TrainingJobMetadata, _impl_.tags_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - // .viam.app.mltraining.v1.ModelFramework model_framework = 17 [json_name = "modelFramework", (.tagger.v1.tags) = "bson:\"model_framework\" json:\"model_framework\""]; - {PROTOBUF_FIELD_OFFSET(TrainingJobMetadata, _impl_.model_framework_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // bool is_custom_job = 18 [json_name = "isCustomJob", (.tagger.v1.tags) = "bson:\"is_custom_job\" json:\"is_custom_job\""]; - {PROTOBUF_FIELD_OFFSET(TrainingJobMetadata, _impl_.is_custom_job_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // string registry_item_id = 19 [json_name = "registryItemId", (.tagger.v1.tags) = "bson:\"registry_item_id\" json:\"registry_item_id\""]; - {PROTOBUF_FIELD_OFFSET(TrainingJobMetadata, _impl_.registry_item_id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string registry_item_version = 20 [json_name = "registryItemVersion", (.tagger.v1.tags) = "bson:\"registry_item_version\" json:\"registry_item_version\""]; - {PROTOBUF_FIELD_OFFSET(TrainingJobMetadata, _impl_.registry_item_version_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, - {::_pbi::TcParser::GetTable<::google::rpc::Status>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, - }}, {{ - "\52\0\0\0\17\2\0\0\0\12\17\12\15\0\4\0\0\20\25\0\0\0\0\0" - "viam.app.mltraining.v1.TrainingJobMetadata" - "synced_model_id" - "id" - "dataset_id" - "organization_id" - "model_name" - "model_version" - "tags" - "registry_item_id" - "registry_item_version" - }}, -}; - -::uint8_t* TrainingJobMetadata::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* TrainingJobMetadata::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.mltraining.v1.TrainingJobMetadata) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // .viam.app.mltraining.v1.TrainingStatus status = 2 [json_name = "status", (.tagger.v1.tags) = "bson:\"status\" json:\"status\""]; if (this->_internal_status() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 2, this->_internal_status(), target); + 2, this->_internal_status(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\" json:\"created_on\""]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::created_on(this), + if (this->_internal_has_created_on()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::created_on(this), _Internal::created_on(this).GetCachedSize(), target, stream); } // .google.protobuf.Timestamp last_modified = 4 [json_name = "lastModified", (.tagger.v1.tags) = "bson:\"last_modified\" json:\"last_modified\""]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, _Internal::last_modified(this), + if (this->_internal_has_last_modified()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::last_modified(this), _Internal::last_modified(this).GetCachedSize(), target, stream); } // string synced_model_id = 5 [json_name = "syncedModelId", (.tagger.v1.tags) = "bson:\"synced_model_id\" json:\"synced_model_id\""]; if (!this->_internal_synced_model_id().empty()) { - const std::string& _s = this->_internal_synced_model_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.mltraining.v1.TrainingJobMetadata.synced_model_id"); - target = stream->WriteStringMaybeAliased(5, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_synced_model_id().data(), static_cast(this->_internal_synced_model_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.mltraining.v1.TrainingJobMetadata.synced_model_id"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_synced_model_id(), target); } // string id = 7 [json_name = "id", (.tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""]; if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.mltraining.v1.TrainingJobMetadata.id"); - target = stream->WriteStringMaybeAliased(7, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.mltraining.v1.TrainingJobMetadata.id"); + target = stream->WriteStringMaybeAliased( + 7, this->_internal_id(), target); } // .google.rpc.Status error_status = 8 [json_name = "errorStatus", (.tagger.v1.tags) = "bson:\"error_status\" json:\"error_status\""]; - if (cached_has_bits & 0x00000004u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 8, _Internal::error_status(this), + if (this->_internal_has_error_status()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(8, _Internal::error_status(this), _Internal::error_status(this).GetCachedSize(), target, stream); } // .google.protobuf.Timestamp training_started = 9 [json_name = "trainingStarted", (.tagger.v1.tags) = "bson:\"training_started\" json:\"training_started\""]; - if (cached_has_bits & 0x00000008u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 9, _Internal::training_started(this), + if (this->_internal_has_training_started()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(9, _Internal::training_started(this), _Internal::training_started(this).GetCachedSize(), target, stream); } // .google.protobuf.Timestamp training_ended = 10 [json_name = "trainingEnded", (.tagger.v1.tags) = "bson:\"training_ended\" json:\"training_ended\""]; - if (cached_has_bits & 0x00000010u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 10, _Internal::training_ended(this), + if (this->_internal_has_training_ended()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(10, _Internal::training_ended(this), _Internal::training_ended(this).GetCachedSize(), target, stream); } // string dataset_id = 11 [json_name = "datasetId", (.tagger.v1.tags) = "bson:\"dataset_id\" json:\"dataset_id\""]; if (!this->_internal_dataset_id().empty()) { - const std::string& _s = this->_internal_dataset_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.mltraining.v1.TrainingJobMetadata.dataset_id"); - target = stream->WriteStringMaybeAliased(11, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_dataset_id().data(), static_cast(this->_internal_dataset_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.mltraining.v1.TrainingJobMetadata.dataset_id"); + target = stream->WriteStringMaybeAliased( + 11, this->_internal_dataset_id(), target); } // string organization_id = 12 [json_name = "organizationId", (.tagger.v1.tags) = "bson:\"organization_id\" json:\"organization_id\""]; if (!this->_internal_organization_id().empty()) { - const std::string& _s = this->_internal_organization_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.mltraining.v1.TrainingJobMetadata.organization_id"); - target = stream->WriteStringMaybeAliased(12, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_organization_id().data(), static_cast(this->_internal_organization_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.mltraining.v1.TrainingJobMetadata.organization_id"); + target = stream->WriteStringMaybeAliased( + 12, this->_internal_organization_id(), target); } // string model_name = 13 [json_name = "modelName", (.tagger.v1.tags) = "bson:\"model_name\" json:\"model_name\""]; if (!this->_internal_model_name().empty()) { - const std::string& _s = this->_internal_model_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.mltraining.v1.TrainingJobMetadata.model_name"); - target = stream->WriteStringMaybeAliased(13, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_model_name().data(), static_cast(this->_internal_model_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.mltraining.v1.TrainingJobMetadata.model_name"); + target = stream->WriteStringMaybeAliased( + 13, this->_internal_model_name(), target); } // string model_version = 14 [json_name = "modelVersion", (.tagger.v1.tags) = "bson:\"model_version\" json:\"model_version\""]; if (!this->_internal_model_version().empty()) { - const std::string& _s = this->_internal_model_version(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.mltraining.v1.TrainingJobMetadata.model_version"); - target = stream->WriteStringMaybeAliased(14, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_model_version().data(), static_cast(this->_internal_model_version().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.mltraining.v1.TrainingJobMetadata.model_version"); + target = stream->WriteStringMaybeAliased( + 14, this->_internal_model_version(), target); } // .viam.app.mltraining.v1.ModelType model_type = 15 [json_name = "modelType", (.tagger.v1.tags) = "bson:\"model_type\" json:\"model_type\""]; if (this->_internal_model_type() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 15, this->_internal_model_type(), target); + 15, this->_internal_model_type(), target); } // repeated string tags = 16 [json_name = "tags", (.tagger.v1.tags) = "bson:\"tags\" json:\"tags\""]; - for (int i = 0, n = this->_internal_tags_size(); i < n; ++i) { - const auto& s = this->_internal_tags().Get(i); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.mltraining.v1.TrainingJobMetadata.tags"); + for (int i = 0, n = this->_internal_tags_size(); i < n; i++) { + const auto& s = this->_internal_tags(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.mltraining.v1.TrainingJobMetadata.tags"); target = stream->WriteString(16, s, target); } @@ -3308,239 +3389,248 @@ ::uint8_t* TrainingJobMetadata::_InternalSerialize( if (this->_internal_model_framework() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 17, this->_internal_model_framework(), target); + 17, this->_internal_model_framework(), target); } // bool is_custom_job = 18 [json_name = "isCustomJob", (.tagger.v1.tags) = "bson:\"is_custom_job\" json:\"is_custom_job\""]; if (this->_internal_is_custom_job() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 18, this->_internal_is_custom_job(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(18, this->_internal_is_custom_job(), target); } // string registry_item_id = 19 [json_name = "registryItemId", (.tagger.v1.tags) = "bson:\"registry_item_id\" json:\"registry_item_id\""]; if (!this->_internal_registry_item_id().empty()) { - const std::string& _s = this->_internal_registry_item_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.mltraining.v1.TrainingJobMetadata.registry_item_id"); - target = stream->WriteStringMaybeAliased(19, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_registry_item_id().data(), static_cast(this->_internal_registry_item_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.mltraining.v1.TrainingJobMetadata.registry_item_id"); + target = stream->WriteStringMaybeAliased( + 19, this->_internal_registry_item_id(), target); } // string registry_item_version = 20 [json_name = "registryItemVersion", (.tagger.v1.tags) = "bson:\"registry_item_version\" json:\"registry_item_version\""]; if (!this->_internal_registry_item_version().empty()) { - const std::string& _s = this->_internal_registry_item_version(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.mltraining.v1.TrainingJobMetadata.registry_item_version"); - target = stream->WriteStringMaybeAliased(20, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_registry_item_version().data(), static_cast(this->_internal_registry_item_version().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.mltraining.v1.TrainingJobMetadata.registry_item_version"); + target = stream->WriteStringMaybeAliased( + 20, this->_internal_registry_item_version(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.mltraining.v1.TrainingJobMetadata) return target; } -::size_t TrainingJobMetadata::ByteSizeLong() const { +size_t TrainingJobMetadata::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.mltraining.v1.TrainingJobMetadata) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated string tags = 16 [json_name = "tags", (.tagger.v1.tags) = "bson:\"tags\" json:\"tags\""]; - total_size += 2 * ::google::protobuf::internal::FromIntSize(_internal_tags().size()); - for (int i = 0, n = _internal_tags().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - _internal_tags().Get(i)); + total_size += 2 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(tags_.size()); + for (int i = 0, n = tags_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + tags_.Get(i)); } + // string synced_model_id = 5 [json_name = "syncedModelId", (.tagger.v1.tags) = "bson:\"synced_model_id\" json:\"synced_model_id\""]; if (!this->_internal_synced_model_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_synced_model_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_synced_model_id()); } // string id = 7 [json_name = "id", (.tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""]; if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } // string dataset_id = 11 [json_name = "datasetId", (.tagger.v1.tags) = "bson:\"dataset_id\" json:\"dataset_id\""]; if (!this->_internal_dataset_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_dataset_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_dataset_id()); } // string organization_id = 12 [json_name = "organizationId", (.tagger.v1.tags) = "bson:\"organization_id\" json:\"organization_id\""]; if (!this->_internal_organization_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_organization_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_organization_id()); } // string model_name = 13 [json_name = "modelName", (.tagger.v1.tags) = "bson:\"model_name\" json:\"model_name\""]; if (!this->_internal_model_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_model_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_model_name()); } // string model_version = 14 [json_name = "modelVersion", (.tagger.v1.tags) = "bson:\"model_version\" json:\"model_version\""]; if (!this->_internal_model_version().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_model_version()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_model_version()); } // string registry_item_id = 19 [json_name = "registryItemId", (.tagger.v1.tags) = "bson:\"registry_item_id\" json:\"registry_item_id\""]; if (!this->_internal_registry_item_id().empty()) { - total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_registry_item_id()); + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_registry_item_id()); } // string registry_item_version = 20 [json_name = "registryItemVersion", (.tagger.v1.tags) = "bson:\"registry_item_version\" json:\"registry_item_version\""]; if (!this->_internal_registry_item_version().empty()) { - total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_registry_item_version()); + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_registry_item_version()); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { - // .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\" json:\"created_on\""]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.created_on_); - } - - // .google.protobuf.Timestamp last_modified = 4 [json_name = "lastModified", (.tagger.v1.tags) = "bson:\"last_modified\" json:\"last_modified\""]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.last_modified_); - } + // .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\" json:\"created_on\""]; + if (this->_internal_has_created_on()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *created_on_); + } - // .google.rpc.Status error_status = 8 [json_name = "errorStatus", (.tagger.v1.tags) = "bson:\"error_status\" json:\"error_status\""]; - if (cached_has_bits & 0x00000004u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.error_status_); - } + // .google.protobuf.Timestamp last_modified = 4 [json_name = "lastModified", (.tagger.v1.tags) = "bson:\"last_modified\" json:\"last_modified\""]; + if (this->_internal_has_last_modified()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *last_modified_); + } - // .google.protobuf.Timestamp training_started = 9 [json_name = "trainingStarted", (.tagger.v1.tags) = "bson:\"training_started\" json:\"training_started\""]; - if (cached_has_bits & 0x00000008u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.training_started_); - } + // .google.rpc.Status error_status = 8 [json_name = "errorStatus", (.tagger.v1.tags) = "bson:\"error_status\" json:\"error_status\""]; + if (this->_internal_has_error_status()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *error_status_); + } - // .google.protobuf.Timestamp training_ended = 10 [json_name = "trainingEnded", (.tagger.v1.tags) = "bson:\"training_ended\" json:\"training_ended\""]; - if (cached_has_bits & 0x00000010u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.training_ended_); - } + // .google.protobuf.Timestamp training_started = 9 [json_name = "trainingStarted", (.tagger.v1.tags) = "bson:\"training_started\" json:\"training_started\""]; + if (this->_internal_has_training_started()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *training_started_); + } + // .google.protobuf.Timestamp training_ended = 10 [json_name = "trainingEnded", (.tagger.v1.tags) = "bson:\"training_ended\" json:\"training_ended\""]; + if (this->_internal_has_training_ended()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *training_ended_); } + // .viam.app.mltraining.v1.TrainingStatus status = 2 [json_name = "status", (.tagger.v1.tags) = "bson:\"status\" json:\"status\""]; if (this->_internal_status() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_status()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_status()); } // .viam.app.mltraining.v1.ModelType model_type = 15 [json_name = "modelType", (.tagger.v1.tags) = "bson:\"model_type\" json:\"model_type\""]; if (this->_internal_model_type() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_model_type()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_model_type()); } // .viam.app.mltraining.v1.ModelFramework model_framework = 17 [json_name = "modelFramework", (.tagger.v1.tags) = "bson:\"model_framework\" json:\"model_framework\""]; if (this->_internal_model_framework() != 0) { total_size += 2 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_model_framework()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_model_framework()); } // bool is_custom_job = 18 [json_name = "isCustomJob", (.tagger.v1.tags) = "bson:\"is_custom_job\" json:\"is_custom_job\""]; if (this->_internal_is_custom_job() != 0) { - total_size += 3; + total_size += 2 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData TrainingJobMetadata::_class_data_ = { - TrainingJobMetadata::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TrainingJobMetadata::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + TrainingJobMetadata::MergeImpl }; -const ::google::protobuf::Message::ClassData* TrainingJobMetadata::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TrainingJobMetadata::GetClassData() const { return &_class_data_; } + +void TrainingJobMetadata::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void TrainingJobMetadata::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.mltraining.v1.TrainingJobMetadata) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void TrainingJobMetadata::MergeFrom(const TrainingJobMetadata& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.mltraining.v1.TrainingJobMetadata) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_tags()->MergeFrom(from._internal_tags()); + tags_.MergeFrom(from.tags_); if (!from._internal_synced_model_id().empty()) { - _this->_internal_set_synced_model_id(from._internal_synced_model_id()); + _internal_set_synced_model_id(from._internal_synced_model_id()); } if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } if (!from._internal_dataset_id().empty()) { - _this->_internal_set_dataset_id(from._internal_dataset_id()); + _internal_set_dataset_id(from._internal_dataset_id()); } if (!from._internal_organization_id().empty()) { - _this->_internal_set_organization_id(from._internal_organization_id()); + _internal_set_organization_id(from._internal_organization_id()); } if (!from._internal_model_name().empty()) { - _this->_internal_set_model_name(from._internal_model_name()); + _internal_set_model_name(from._internal_model_name()); } if (!from._internal_model_version().empty()) { - _this->_internal_set_model_version(from._internal_model_version()); + _internal_set_model_version(from._internal_model_version()); } if (!from._internal_registry_item_id().empty()) { - _this->_internal_set_registry_item_id(from._internal_registry_item_id()); + _internal_set_registry_item_id(from._internal_registry_item_id()); } if (!from._internal_registry_item_version().empty()) { - _this->_internal_set_registry_item_version(from._internal_registry_item_version()); + _internal_set_registry_item_version(from._internal_registry_item_version()); } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_created_on()->::google::protobuf::Timestamp::MergeFrom( - from._internal_created_on()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_last_modified()->::google::protobuf::Timestamp::MergeFrom( - from._internal_last_modified()); - } - if (cached_has_bits & 0x00000004u) { - _this->_internal_mutable_error_status()->::google::rpc::Status::MergeFrom( - from._internal_error_status()); - } - if (cached_has_bits & 0x00000008u) { - _this->_internal_mutable_training_started()->::google::protobuf::Timestamp::MergeFrom( - from._internal_training_started()); - } - if (cached_has_bits & 0x00000010u) { - _this->_internal_mutable_training_ended()->::google::protobuf::Timestamp::MergeFrom( - from._internal_training_ended()); - } + if (from._internal_has_created_on()) { + _internal_mutable_created_on()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_created_on()); + } + if (from._internal_has_last_modified()) { + _internal_mutable_last_modified()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_last_modified()); + } + if (from._internal_has_error_status()) { + _internal_mutable_error_status()->::google::rpc::Status::MergeFrom(from._internal_error_status()); + } + if (from._internal_has_training_started()) { + _internal_mutable_training_started()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_training_started()); + } + if (from._internal_has_training_ended()) { + _internal_mutable_training_ended()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_training_ended()); } if (from._internal_status() != 0) { - _this->_internal_set_status(from._internal_status()); + _internal_set_status(from._internal_status()); } if (from._internal_model_type() != 0) { - _this->_internal_set_model_type(from._internal_model_type()); + _internal_set_model_type(from._internal_model_type()); } if (from._internal_model_framework() != 0) { - _this->_internal_set_model_framework(from._internal_model_framework()); + _internal_set_model_framework(from._internal_model_framework()); } if (from._internal_is_custom_job() != 0) { - _this->_internal_set_is_custom_job(from._internal_is_custom_job()); + _internal_set_is_custom_job(from._internal_is_custom_job()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void TrainingJobMetadata::CopyFrom(const TrainingJobMetadata& from) { @@ -3550,202 +3640,227 @@ void TrainingJobMetadata::CopyFrom(const TrainingJobMetadata& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool TrainingJobMetadata::IsInitialized() const { +bool TrainingJobMetadata::IsInitialized() const { return true; } -::_pbi::CachedSize* TrainingJobMetadata::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void TrainingJobMetadata::InternalSwap(TrainingJobMetadata* PROTOBUF_RESTRICT other) { +void TrainingJobMetadata::InternalSwap(TrainingJobMetadata* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.tags_.InternalSwap(&other->_impl_.tags_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.synced_model_id_, &other->_impl_.synced_model_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.dataset_id_, &other->_impl_.dataset_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.organization_id_, &other->_impl_.organization_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.model_name_, &other->_impl_.model_name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.model_version_, &other->_impl_.model_version_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.registry_item_id_, &other->_impl_.registry_item_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.registry_item_version_, &other->_impl_.registry_item_version_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(TrainingJobMetadata, _impl_.is_custom_job_) - + sizeof(TrainingJobMetadata::_impl_.is_custom_job_) - - PROTOBUF_FIELD_OFFSET(TrainingJobMetadata, _impl_.created_on_)>( - reinterpret_cast(&_impl_.created_on_), - reinterpret_cast(&other->_impl_.created_on_)); -} - -::google::protobuf::Metadata TrainingJobMetadata::GetMetadata() const { + tags_.InternalSwap(&other->tags_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &synced_model_id_, lhs_arena, + &other->synced_model_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &dataset_id_, lhs_arena, + &other->dataset_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &organization_id_, lhs_arena, + &other->organization_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &model_name_, lhs_arena, + &other->model_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &model_version_, lhs_arena, + &other->model_version_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + ®istry_item_id_, lhs_arena, + &other->registry_item_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + ®istry_item_version_, lhs_arena, + &other->registry_item_version_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(TrainingJobMetadata, is_custom_job_) + + sizeof(TrainingJobMetadata::is_custom_job_) + - PROTOBUF_FIELD_OFFSET(TrainingJobMetadata, created_on_)>( + reinterpret_cast(&created_on_), + reinterpret_cast(&other->created_on_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata TrainingJobMetadata::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_getter, &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_once, file_level_metadata_app_2fmltraining_2fv1_2fml_5ftraining_2eproto[9]); } + // =================================================================== class CancelTrainingJobRequest::_Internal { public: }; -CancelTrainingJobRequest::CancelTrainingJobRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +CancelTrainingJobRequest::CancelTrainingJobRequest(::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.mltraining.v1.CancelTrainingJobRequest) } -inline PROTOBUF_NDEBUG_INLINE CancelTrainingJobRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : id_(arena, from.id_), - _cached_size_{0} {} - -CancelTrainingJobRequest::CancelTrainingJobRequest( - ::google::protobuf::Arena* arena, - const CancelTrainingJobRequest& from) - : ::google::protobuf::Message(arena) { - CancelTrainingJobRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +CancelTrainingJobRequest::CancelTrainingJobRequest(const CancelTrainingJobRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.mltraining.v1.CancelTrainingJobRequest) } -inline PROTOBUF_NDEBUG_INLINE CancelTrainingJobRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : id_(arena), - _cached_size_{0} {} -inline void CancelTrainingJobRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void CancelTrainingJobRequest::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + CancelTrainingJobRequest::~CancelTrainingJobRequest() { // @@protoc_insertion_point(destructor:viam.app.mltraining.v1.CancelTrainingJobRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void CancelTrainingJobRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); +} + +void CancelTrainingJobRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void CancelTrainingJobRequest::Clear() { +void CancelTrainingJobRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.mltraining.v1.CancelTrainingJobRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* CancelTrainingJobRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CancelTrainingJobRequest::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.mltraining.v1.CancelTrainingJobRequest.id")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 58, 2> CancelTrainingJobRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_CancelTrainingJobRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string id = 1 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(CancelTrainingJobRequest, _impl_.id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(CancelTrainingJobRequest, _impl_.id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\57\2\0\0\0\0\0\0" - "viam.app.mltraining.v1.CancelTrainingJobRequest" - "id" - }}, -}; - -::uint8_t* CancelTrainingJobRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* CancelTrainingJobRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.mltraining.v1.CancelTrainingJobRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.mltraining.v1.CancelTrainingJobRequest.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.mltraining.v1.CancelTrainingJobRequest.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.mltraining.v1.CancelTrainingJobRequest) return target; } -::size_t CancelTrainingJobRequest::ByteSizeLong() const { +size_t CancelTrainingJobRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.mltraining.v1.CancelTrainingJobRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData CancelTrainingJobRequest::_class_data_ = { - CancelTrainingJobRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CancelTrainingJobRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CancelTrainingJobRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* CancelTrainingJobRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CancelTrainingJobRequest::GetClassData() const { return &_class_data_; } + +void CancelTrainingJobRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void CancelTrainingJobRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.mltraining.v1.CancelTrainingJobRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void CancelTrainingJobRequest::MergeFrom(const CancelTrainingJobRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.mltraining.v1.CancelTrainingJobRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CancelTrainingJobRequest::CopyFrom(const CancelTrainingJobRequest& from) { @@ -3755,45 +3870,41 @@ void CancelTrainingJobRequest::CopyFrom(const CancelTrainingJobRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool CancelTrainingJobRequest::IsInitialized() const { +bool CancelTrainingJobRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* CancelTrainingJobRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void CancelTrainingJobRequest::InternalSwap(CancelTrainingJobRequest* PROTOBUF_RESTRICT other) { +void CancelTrainingJobRequest::InternalSwap(CancelTrainingJobRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); } -::google::protobuf::Metadata CancelTrainingJobRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata CancelTrainingJobRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_getter, &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_once, file_level_metadata_app_2fmltraining_2fv1_2fml_5ftraining_2eproto[10]); } + // =================================================================== class CancelTrainingJobResponse::_Internal { public: }; -CancelTrainingJobResponse::CancelTrainingJobResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +CancelTrainingJobResponse::CancelTrainingJobResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.app.mltraining.v1.CancelTrainingJobResponse) } -CancelTrainingJobResponse::CancelTrainingJobResponse( - ::google::protobuf::Arena* arena, - const CancelTrainingJobResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - CancelTrainingJobResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +CancelTrainingJobResponse::CancelTrainingJobResponse(const CancelTrainingJobResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.app.mltraining.v1.CancelTrainingJobResponse) } @@ -3801,176 +3912,189 @@ CancelTrainingJobResponse::CancelTrainingJobResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CancelTrainingJobResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CancelTrainingJobResponse::GetClassData() const { return &_class_data_; } + + + -::google::protobuf::Metadata CancelTrainingJobResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata CancelTrainingJobResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_getter, &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_once, file_level_metadata_app_2fmltraining_2fv1_2fml_5ftraining_2eproto[11]); } + // =================================================================== class DeleteCompletedTrainingJobRequest::_Internal { public: }; -DeleteCompletedTrainingJobRequest::DeleteCompletedTrainingJobRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +DeleteCompletedTrainingJobRequest::DeleteCompletedTrainingJobRequest(::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.mltraining.v1.DeleteCompletedTrainingJobRequest) } -inline PROTOBUF_NDEBUG_INLINE DeleteCompletedTrainingJobRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : id_(arena, from.id_), - _cached_size_{0} {} - -DeleteCompletedTrainingJobRequest::DeleteCompletedTrainingJobRequest( - ::google::protobuf::Arena* arena, - const DeleteCompletedTrainingJobRequest& from) - : ::google::protobuf::Message(arena) { - DeleteCompletedTrainingJobRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +DeleteCompletedTrainingJobRequest::DeleteCompletedTrainingJobRequest(const DeleteCompletedTrainingJobRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.mltraining.v1.DeleteCompletedTrainingJobRequest) } -inline PROTOBUF_NDEBUG_INLINE DeleteCompletedTrainingJobRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : id_(arena), - _cached_size_{0} {} -inline void DeleteCompletedTrainingJobRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void DeleteCompletedTrainingJobRequest::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + DeleteCompletedTrainingJobRequest::~DeleteCompletedTrainingJobRequest() { // @@protoc_insertion_point(destructor:viam.app.mltraining.v1.DeleteCompletedTrainingJobRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void DeleteCompletedTrainingJobRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); } -PROTOBUF_NOINLINE void DeleteCompletedTrainingJobRequest::Clear() { +void DeleteCompletedTrainingJobRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void DeleteCompletedTrainingJobRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.mltraining.v1.DeleteCompletedTrainingJobRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* DeleteCompletedTrainingJobRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DeleteCompletedTrainingJobRequest::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.mltraining.v1.DeleteCompletedTrainingJobRequest.id")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 67, 2> DeleteCompletedTrainingJobRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_DeleteCompletedTrainingJobRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string id = 1 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(DeleteCompletedTrainingJobRequest, _impl_.id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(DeleteCompletedTrainingJobRequest, _impl_.id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\70\2\0\0\0\0\0\0" - "viam.app.mltraining.v1.DeleteCompletedTrainingJobRequest" - "id" - }}, -}; - -::uint8_t* DeleteCompletedTrainingJobRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* DeleteCompletedTrainingJobRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.mltraining.v1.DeleteCompletedTrainingJobRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.mltraining.v1.DeleteCompletedTrainingJobRequest.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.mltraining.v1.DeleteCompletedTrainingJobRequest.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.mltraining.v1.DeleteCompletedTrainingJobRequest) return target; } -::size_t DeleteCompletedTrainingJobRequest::ByteSizeLong() const { +size_t DeleteCompletedTrainingJobRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.mltraining.v1.DeleteCompletedTrainingJobRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData DeleteCompletedTrainingJobRequest::_class_data_ = { - DeleteCompletedTrainingJobRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeleteCompletedTrainingJobRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + DeleteCompletedTrainingJobRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* DeleteCompletedTrainingJobRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeleteCompletedTrainingJobRequest::GetClassData() const { return &_class_data_; } + +void DeleteCompletedTrainingJobRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void DeleteCompletedTrainingJobRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.mltraining.v1.DeleteCompletedTrainingJobRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void DeleteCompletedTrainingJobRequest::MergeFrom(const DeleteCompletedTrainingJobRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.mltraining.v1.DeleteCompletedTrainingJobRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void DeleteCompletedTrainingJobRequest::CopyFrom(const DeleteCompletedTrainingJobRequest& from) { @@ -3980,45 +4104,41 @@ void DeleteCompletedTrainingJobRequest::CopyFrom(const DeleteCompletedTrainingJo MergeFrom(from); } -PROTOBUF_NOINLINE bool DeleteCompletedTrainingJobRequest::IsInitialized() const { +bool DeleteCompletedTrainingJobRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* DeleteCompletedTrainingJobRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void DeleteCompletedTrainingJobRequest::InternalSwap(DeleteCompletedTrainingJobRequest* PROTOBUF_RESTRICT other) { +void DeleteCompletedTrainingJobRequest::InternalSwap(DeleteCompletedTrainingJobRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); } -::google::protobuf::Metadata DeleteCompletedTrainingJobRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata DeleteCompletedTrainingJobRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_getter, &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_once, file_level_metadata_app_2fmltraining_2fv1_2fml_5ftraining_2eproto[12]); } + // =================================================================== class DeleteCompletedTrainingJobResponse::_Internal { public: }; -DeleteCompletedTrainingJobResponse::DeleteCompletedTrainingJobResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +DeleteCompletedTrainingJobResponse::DeleteCompletedTrainingJobResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.app.mltraining.v1.DeleteCompletedTrainingJobResponse) } -DeleteCompletedTrainingJobResponse::DeleteCompletedTrainingJobResponse( - ::google::protobuf::Arena* arena, - const DeleteCompletedTrainingJobResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - DeleteCompletedTrainingJobResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +DeleteCompletedTrainingJobResponse::DeleteCompletedTrainingJobResponse(const DeleteCompletedTrainingJobResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.app.mltraining.v1.DeleteCompletedTrainingJobResponse) } @@ -4026,258 +4146,280 @@ DeleteCompletedTrainingJobResponse::DeleteCompletedTrainingJobResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeleteCompletedTrainingJobResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeleteCompletedTrainingJobResponse::GetClassData() const { return &_class_data_; } + + -::google::protobuf::Metadata DeleteCompletedTrainingJobResponse::GetMetadata() const { + +::PROTOBUF_NAMESPACE_ID::Metadata DeleteCompletedTrainingJobResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_getter, &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_once, file_level_metadata_app_2fmltraining_2fv1_2fml_5ftraining_2eproto[13]); } + // =================================================================== class TrainingJobLogEntry::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(TrainingJobLogEntry, _impl_._has_bits_); - static const ::google::protobuf::Timestamp& time(const TrainingJobLogEntry* msg); - static void set_has_time(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& time(const TrainingJobLogEntry* msg); }; -const ::google::protobuf::Timestamp& TrainingJobLogEntry::_Internal::time(const TrainingJobLogEntry* msg) { - return *msg->_impl_.time_; +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +TrainingJobLogEntry::_Internal::time(const TrainingJobLogEntry* msg) { + return *msg->time_; } void TrainingJobLogEntry::clear_time() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.time_ != nullptr) _impl_.time_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && time_ != nullptr) { + delete time_; + } + time_ = nullptr; } -TrainingJobLogEntry::TrainingJobLogEntry(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +TrainingJobLogEntry::TrainingJobLogEntry(::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.mltraining.v1.TrainingJobLogEntry) } -inline PROTOBUF_NDEBUG_INLINE TrainingJobLogEntry::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - level_(arena, from.level_), - message_(arena, from.message_) {} - -TrainingJobLogEntry::TrainingJobLogEntry( - ::google::protobuf::Arena* arena, - const TrainingJobLogEntry& from) - : ::google::protobuf::Message(arena) { - TrainingJobLogEntry* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.time_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.time_) - : nullptr; - +TrainingJobLogEntry::TrainingJobLogEntry(const TrainingJobLogEntry& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + level_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + level_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_level().empty()) { + level_.Set(from._internal_level(), + GetArenaForAllocation()); + } + message_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + message_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_message().empty()) { + message_.Set(from._internal_message(), + GetArenaForAllocation()); + } + if (from._internal_has_time()) { + time_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from.time_); + } else { + time_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.app.mltraining.v1.TrainingJobLogEntry) } -inline PROTOBUF_NDEBUG_INLINE TrainingJobLogEntry::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - level_(arena), - message_(arena) {} -inline void TrainingJobLogEntry::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.time_ = {}; +inline void TrainingJobLogEntry::SharedCtor() { +level_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + level_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +message_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + message_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +time_ = nullptr; } + TrainingJobLogEntry::~TrainingJobLogEntry() { // @@protoc_insertion_point(destructor:viam.app.mltraining.v1.TrainingJobLogEntry) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void TrainingJobLogEntry::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.level_.Destroy(); - _impl_.message_.Destroy(); - delete _impl_.time_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + level_.Destroy(); + message_.Destroy(); + if (this != internal_default_instance()) delete time_; } -PROTOBUF_NOINLINE void TrainingJobLogEntry::Clear() { +void TrainingJobLogEntry::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void TrainingJobLogEntry::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.mltraining.v1.TrainingJobLogEntry) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.level_.ClearToEmpty(); - _impl_.message_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.time_ != nullptr); - _impl_.time_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* TrainingJobLogEntry::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + level_.ClearToEmpty(); + message_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && time_ != nullptr) { + delete time_; + } + time_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* TrainingJobLogEntry::_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 level = 1 [json_name = "level"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_level(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.mltraining.v1.TrainingJobLogEntry.level")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp time = 2 [json_name = "time"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_time(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string message = 3 [json_name = "message"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_message(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.mltraining.v1.TrainingJobLogEntry.message")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 1, 63, 2> TrainingJobLogEntry::_table_ = { - { - PROTOBUF_FIELD_OFFSET(TrainingJobLogEntry, _impl_._has_bits_), - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_TrainingJobLogEntry_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string level = 1 [json_name = "level"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(TrainingJobLogEntry, _impl_.level_)}}, - // .google.protobuf.Timestamp time = 2 [json_name = "time"]; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(TrainingJobLogEntry, _impl_.time_)}}, - // string message = 3 [json_name = "message"]; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(TrainingJobLogEntry, _impl_.message_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string level = 1 [json_name = "level"]; - {PROTOBUF_FIELD_OFFSET(TrainingJobLogEntry, _impl_.level_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Timestamp time = 2 [json_name = "time"]; - {PROTOBUF_FIELD_OFFSET(TrainingJobLogEntry, _impl_.time_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // string message = 3 [json_name = "message"]; - {PROTOBUF_FIELD_OFFSET(TrainingJobLogEntry, _impl_.message_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, - }}, {{ - "\52\5\0\7\0\0\0\0" - "viam.app.mltraining.v1.TrainingJobLogEntry" - "level" - "message" - }}, -}; - -::uint8_t* TrainingJobLogEntry::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* TrainingJobLogEntry::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.mltraining.v1.TrainingJobLogEntry) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string level = 1 [json_name = "level"]; if (!this->_internal_level().empty()) { - const std::string& _s = this->_internal_level(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.mltraining.v1.TrainingJobLogEntry.level"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_level().data(), static_cast(this->_internal_level().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.mltraining.v1.TrainingJobLogEntry.level"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_level(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Timestamp time = 2 [json_name = "time"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::time(this), + if (this->_internal_has_time()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::time(this), _Internal::time(this).GetCachedSize(), target, stream); } // string message = 3 [json_name = "message"]; if (!this->_internal_message().empty()) { - const std::string& _s = this->_internal_message(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.mltraining.v1.TrainingJobLogEntry.message"); - target = stream->WriteStringMaybeAliased(3, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_message().data(), static_cast(this->_internal_message().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.mltraining.v1.TrainingJobLogEntry.message"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_message(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.mltraining.v1.TrainingJobLogEntry) return target; } -::size_t TrainingJobLogEntry::ByteSizeLong() const { +size_t TrainingJobLogEntry::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.mltraining.v1.TrainingJobLogEntry) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string level = 1 [json_name = "level"]; if (!this->_internal_level().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_level()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_level()); } // string message = 3 [json_name = "message"]; if (!this->_internal_message().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_message()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_message()); } // .google.protobuf.Timestamp time = 2 [json_name = "time"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.time_); + if (this->_internal_has_time()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *time_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData TrainingJobLogEntry::_class_data_ = { - TrainingJobLogEntry::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TrainingJobLogEntry::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + TrainingJobLogEntry::MergeImpl }; -const ::google::protobuf::Message::ClassData* TrainingJobLogEntry::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TrainingJobLogEntry::GetClassData() const { return &_class_data_; } + +void TrainingJobLogEntry::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void TrainingJobLogEntry::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.mltraining.v1.TrainingJobLogEntry) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void TrainingJobLogEntry::MergeFrom(const TrainingJobLogEntry& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.mltraining.v1.TrainingJobLogEntry) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_level().empty()) { - _this->_internal_set_level(from._internal_level()); + _internal_set_level(from._internal_level()); } if (!from._internal_message().empty()) { - _this->_internal_set_message(from._internal_message()); + _internal_set_message(from._internal_message()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_time()->::google::protobuf::Timestamp::MergeFrom( - from._internal_time()); + if (from._internal_has_time()) { + _internal_mutable_time()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_time()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void TrainingJobLogEntry::CopyFrom(const TrainingJobLogEntry& from) { @@ -4287,231 +4429,253 @@ void TrainingJobLogEntry::CopyFrom(const TrainingJobLogEntry& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool TrainingJobLogEntry::IsInitialized() const { +bool TrainingJobLogEntry::IsInitialized() const { return true; } -::_pbi::CachedSize* TrainingJobLogEntry::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void TrainingJobLogEntry::InternalSwap(TrainingJobLogEntry* PROTOBUF_RESTRICT other) { +void TrainingJobLogEntry::InternalSwap(TrainingJobLogEntry* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.level_, &other->_impl_.level_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.message_, &other->_impl_.message_, arena); - swap(_impl_.time_, other->_impl_.time_); -} - -::google::protobuf::Metadata TrainingJobLogEntry::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &level_, lhs_arena, + &other->level_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &message_, lhs_arena, + &other->message_, rhs_arena + ); + swap(time_, other->time_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata TrainingJobLogEntry::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_getter, &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_once, file_level_metadata_app_2fmltraining_2fv1_2fml_5ftraining_2eproto[14]); } + // =================================================================== class GetTrainingJobLogsRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetTrainingJobLogsRequest, _impl_._has_bits_); + using HasBits = decltype(std::declval()._has_bits_); static void set_has_page_token(HasBits* has_bits) { (*has_bits)[0] |= 1u; } }; -GetTrainingJobLogsRequest::GetTrainingJobLogsRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetTrainingJobLogsRequest::GetTrainingJobLogsRequest(::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.mltraining.v1.GetTrainingJobLogsRequest) } -inline PROTOBUF_NDEBUG_INLINE GetTrainingJobLogsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - id_(arena, from.id_), - page_token_(arena, from.page_token_) {} - -GetTrainingJobLogsRequest::GetTrainingJobLogsRequest( - ::google::protobuf::Arena* arena, - const GetTrainingJobLogsRequest& from) - : ::google::protobuf::Message(arena) { - GetTrainingJobLogsRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetTrainingJobLogsRequest::GetTrainingJobLogsRequest(const GetTrainingJobLogsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } + page_token_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + page_token_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (from._internal_has_page_token()) { + page_token_.Set(from._internal_page_token(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.mltraining.v1.GetTrainingJobLogsRequest) } -inline PROTOBUF_NDEBUG_INLINE GetTrainingJobLogsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - id_(arena), - page_token_(arena) {} -inline void GetTrainingJobLogsRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetTrainingJobLogsRequest::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +page_token_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + page_token_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + GetTrainingJobLogsRequest::~GetTrainingJobLogsRequest() { // @@protoc_insertion_point(destructor:viam.app.mltraining.v1.GetTrainingJobLogsRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetTrainingJobLogsRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.page_token_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); + page_token_.Destroy(); +} + +void GetTrainingJobLogsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetTrainingJobLogsRequest::Clear() { +void GetTrainingJobLogsRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.mltraining.v1.GetTrainingJobLogsRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.id_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; + id_.ClearToEmpty(); + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { - _impl_.page_token_.ClearNonDefaultToEmpty(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetTrainingJobLogsRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + page_token_.ClearNonDefaultToEmpty(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetTrainingJobLogsRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.mltraining.v1.GetTrainingJobLogsRequest.id")); + } else + goto handle_unusual; + continue; + // optional string page_token = 2 [json_name = "pageToken"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_page_token(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.mltraining.v1.GetTrainingJobLogsRequest.page_token")); + } 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: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 69, 2> GetTrainingJobLogsRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetTrainingJobLogsRequest, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetTrainingJobLogsRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // optional string page_token = 2 [json_name = "pageToken"]; - {::_pbi::TcParser::FastUS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(GetTrainingJobLogsRequest, _impl_.page_token_)}}, - // string id = 1 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetTrainingJobLogsRequest, _impl_.id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(GetTrainingJobLogsRequest, _impl_.id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // optional string page_token = 2 [json_name = "pageToken"]; - {PROTOBUF_FIELD_OFFSET(GetTrainingJobLogsRequest, _impl_.page_token_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\60\2\12\0\0\0\0\0" - "viam.app.mltraining.v1.GetTrainingJobLogsRequest" - "id" - "page_token" - }}, -}; - -::uint8_t* GetTrainingJobLogsRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetTrainingJobLogsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.mltraining.v1.GetTrainingJobLogsRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.mltraining.v1.GetTrainingJobLogsRequest.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.mltraining.v1.GetTrainingJobLogsRequest.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); } - cached_has_bits = _impl_._has_bits_[0]; // optional string page_token = 2 [json_name = "pageToken"]; - if (cached_has_bits & 0x00000001u) { - const std::string& _s = this->_internal_page_token(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.mltraining.v1.GetTrainingJobLogsRequest.page_token"); - target = stream->WriteStringMaybeAliased(2, _s, target); + if (_internal_has_page_token()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_page_token().data(), static_cast(this->_internal_page_token().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.mltraining.v1.GetTrainingJobLogsRequest.page_token"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_page_token(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.mltraining.v1.GetTrainingJobLogsRequest) return target; } -::size_t GetTrainingJobLogsRequest::ByteSizeLong() const { +size_t GetTrainingJobLogsRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.mltraining.v1.GetTrainingJobLogsRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } // optional string page_token = 2 [json_name = "pageToken"]; - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_page_token()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_page_token()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetTrainingJobLogsRequest::_class_data_ = { - GetTrainingJobLogsRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetTrainingJobLogsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetTrainingJobLogsRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetTrainingJobLogsRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetTrainingJobLogsRequest::GetClassData() const { return &_class_data_; } + +void GetTrainingJobLogsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetTrainingJobLogsRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.mltraining.v1.GetTrainingJobLogsRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetTrainingJobLogsRequest::MergeFrom(const GetTrainingJobLogsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.mltraining.v1.GetTrainingJobLogsRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_set_page_token(from._internal_page_token()); + if (from._internal_has_page_token()) { + _internal_set_page_token(from._internal_page_token()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetTrainingJobLogsRequest::CopyFrom(const GetTrainingJobLogsRequest& from) { @@ -4521,214 +4685,229 @@ void GetTrainingJobLogsRequest::CopyFrom(const GetTrainingJobLogsRequest& from) MergeFrom(from); } -PROTOBUF_NOINLINE bool GetTrainingJobLogsRequest::IsInitialized() const { +bool GetTrainingJobLogsRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetTrainingJobLogsRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetTrainingJobLogsRequest::InternalSwap(GetTrainingJobLogsRequest* PROTOBUF_RESTRICT other) { +void GetTrainingJobLogsRequest::InternalSwap(GetTrainingJobLogsRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.page_token_, &other->_impl_.page_token_, arena); -} - -::google::protobuf::Metadata GetTrainingJobLogsRequest::GetMetadata() const { + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &page_token_, lhs_arena, + &other->page_token_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetTrainingJobLogsRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_getter, &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_once, file_level_metadata_app_2fmltraining_2fv1_2fml_5ftraining_2eproto[15]); } + // =================================================================== class GetTrainingJobLogsResponse::_Internal { public: }; -GetTrainingJobLogsResponse::GetTrainingJobLogsResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetTrainingJobLogsResponse::GetTrainingJobLogsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + logs_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.mltraining.v1.GetTrainingJobLogsResponse) } -inline PROTOBUF_NDEBUG_INLINE GetTrainingJobLogsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : logs_{visibility, arena, from.logs_}, - next_page_token_(arena, from.next_page_token_), - _cached_size_{0} {} - -GetTrainingJobLogsResponse::GetTrainingJobLogsResponse( - ::google::protobuf::Arena* arena, - const GetTrainingJobLogsResponse& from) - : ::google::protobuf::Message(arena) { - GetTrainingJobLogsResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetTrainingJobLogsResponse::GetTrainingJobLogsResponse(const GetTrainingJobLogsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + logs_(from.logs_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + next_page_token_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + next_page_token_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_next_page_token().empty()) { + next_page_token_.Set(from._internal_next_page_token(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.mltraining.v1.GetTrainingJobLogsResponse) } -inline PROTOBUF_NDEBUG_INLINE GetTrainingJobLogsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : logs_{visibility, arena}, - next_page_token_(arena), - _cached_size_{0} {} -inline void GetTrainingJobLogsResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetTrainingJobLogsResponse::SharedCtor() { +next_page_token_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + next_page_token_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + GetTrainingJobLogsResponse::~GetTrainingJobLogsResponse() { // @@protoc_insertion_point(destructor:viam.app.mltraining.v1.GetTrainingJobLogsResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetTrainingJobLogsResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.next_page_token_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + next_page_token_.Destroy(); +} + +void GetTrainingJobLogsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetTrainingJobLogsResponse::Clear() { +void GetTrainingJobLogsResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.mltraining.v1.GetTrainingJobLogsResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.logs_.Clear(); - _impl_.next_page_token_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetTrainingJobLogsResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + logs_.Clear(); + next_page_token_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetTrainingJobLogsResponse::_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) { + // repeated .viam.app.mltraining.v1.TrainingJobLogEntry logs = 1 [json_name = "logs"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_logs(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + // string next_page_token = 2 [json_name = "nextPageToken"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_next_page_token(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.mltraining.v1.GetTrainingJobLogsResponse.next_page_token")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 73, 2> GetTrainingJobLogsResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetTrainingJobLogsResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string next_page_token = 2 [json_name = "nextPageToken"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(GetTrainingJobLogsResponse, _impl_.next_page_token_)}}, - // repeated .viam.app.mltraining.v1.TrainingJobLogEntry logs = 1 [json_name = "logs"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetTrainingJobLogsResponse, _impl_.logs_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.app.mltraining.v1.TrainingJobLogEntry logs = 1 [json_name = "logs"]; - {PROTOBUF_FIELD_OFFSET(GetTrainingJobLogsResponse, _impl_.logs_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // string next_page_token = 2 [json_name = "nextPageToken"]; - {PROTOBUF_FIELD_OFFSET(GetTrainingJobLogsResponse, _impl_.next_page_token_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::mltraining::v1::TrainingJobLogEntry>()}, - }}, {{ - "\61\0\17\0\0\0\0\0" - "viam.app.mltraining.v1.GetTrainingJobLogsResponse" - "next_page_token" - }}, -}; - -::uint8_t* GetTrainingJobLogsResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetTrainingJobLogsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.mltraining.v1.GetTrainingJobLogsResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .viam.app.mltraining.v1.TrainingJobLogEntry logs = 1 [json_name = "logs"]; for (unsigned i = 0, n = static_cast(this->_internal_logs_size()); i < n; i++) { - const auto& repfield = this->_internal_logs().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_logs(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } // string next_page_token = 2 [json_name = "nextPageToken"]; if (!this->_internal_next_page_token().empty()) { - const std::string& _s = this->_internal_next_page_token(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.mltraining.v1.GetTrainingJobLogsResponse.next_page_token"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_next_page_token().data(), static_cast(this->_internal_next_page_token().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.mltraining.v1.GetTrainingJobLogsResponse.next_page_token"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_next_page_token(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.mltraining.v1.GetTrainingJobLogsResponse) return target; } -::size_t GetTrainingJobLogsResponse::ByteSizeLong() const { +size_t GetTrainingJobLogsResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.mltraining.v1.GetTrainingJobLogsResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.app.mltraining.v1.TrainingJobLogEntry logs = 1 [json_name = "logs"]; total_size += 1UL * this->_internal_logs_size(); - for (const auto& msg : this->_internal_logs()) { + for (const auto& msg : this->logs_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // string next_page_token = 2 [json_name = "nextPageToken"]; if (!this->_internal_next_page_token().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_next_page_token()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_next_page_token()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetTrainingJobLogsResponse::_class_data_ = { - GetTrainingJobLogsResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetTrainingJobLogsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetTrainingJobLogsResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetTrainingJobLogsResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetTrainingJobLogsResponse::GetClassData() const { return &_class_data_; } + +void GetTrainingJobLogsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetTrainingJobLogsResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.mltraining.v1.GetTrainingJobLogsResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetTrainingJobLogsResponse::MergeFrom(const GetTrainingJobLogsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.mltraining.v1.GetTrainingJobLogsResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_logs()->MergeFrom( - from._internal_logs()); + logs_.MergeFrom(from.logs_); if (!from._internal_next_page_token().empty()) { - _this->_internal_set_next_page_token(from._internal_next_page_token()); + _internal_set_next_page_token(from._internal_next_page_token()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetTrainingJobLogsResponse::CopyFrom(const GetTrainingJobLogsResponse& from) { @@ -4738,35 +4917,103 @@ void GetTrainingJobLogsResponse::CopyFrom(const GetTrainingJobLogsResponse& from MergeFrom(from); } -PROTOBUF_NOINLINE bool GetTrainingJobLogsResponse::IsInitialized() const { +bool GetTrainingJobLogsResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetTrainingJobLogsResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetTrainingJobLogsResponse::InternalSwap(GetTrainingJobLogsResponse* PROTOBUF_RESTRICT other) { +void GetTrainingJobLogsResponse::InternalSwap(GetTrainingJobLogsResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.logs_.InternalSwap(&other->_impl_.logs_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.next_page_token_, &other->_impl_.next_page_token_, arena); + logs_.InternalSwap(&other->logs_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &next_page_token_, lhs_arena, + &other->next_page_token_, rhs_arena + ); } -::google::protobuf::Metadata GetTrainingJobLogsResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetTrainingJobLogsResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_getter, &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_once, file_level_metadata_app_2fmltraining_2fv1_2fml_5ftraining_2eproto[16]); } + // @@protoc_insertion_point(namespace_scope) } // namespace v1 } // namespace mltraining } // namespace app } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::app::mltraining::v1::SubmitTrainingJobRequest* +Arena::CreateMaybeMessage< ::viam::app::mltraining::v1::SubmitTrainingJobRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::mltraining::v1::SubmitTrainingJobRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::mltraining::v1::SubmitTrainingJobResponse* +Arena::CreateMaybeMessage< ::viam::app::mltraining::v1::SubmitTrainingJobResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::mltraining::v1::SubmitTrainingJobResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse* +Arena::CreateMaybeMessage< ::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest* +Arena::CreateMaybeMessage< ::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse* +Arena::CreateMaybeMessage< ::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::mltraining::v1::GetTrainingJobRequest* +Arena::CreateMaybeMessage< ::viam::app::mltraining::v1::GetTrainingJobRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::mltraining::v1::GetTrainingJobRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::mltraining::v1::GetTrainingJobResponse* +Arena::CreateMaybeMessage< ::viam::app::mltraining::v1::GetTrainingJobResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::mltraining::v1::GetTrainingJobResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::mltraining::v1::ListTrainingJobsRequest* +Arena::CreateMaybeMessage< ::viam::app::mltraining::v1::ListTrainingJobsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::mltraining::v1::ListTrainingJobsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::mltraining::v1::ListTrainingJobsResponse* +Arena::CreateMaybeMessage< ::viam::app::mltraining::v1::ListTrainingJobsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::mltraining::v1::ListTrainingJobsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::mltraining::v1::TrainingJobMetadata* +Arena::CreateMaybeMessage< ::viam::app::mltraining::v1::TrainingJobMetadata >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::mltraining::v1::TrainingJobMetadata >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::mltraining::v1::CancelTrainingJobRequest* +Arena::CreateMaybeMessage< ::viam::app::mltraining::v1::CancelTrainingJobRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::mltraining::v1::CancelTrainingJobRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::mltraining::v1::CancelTrainingJobResponse* +Arena::CreateMaybeMessage< ::viam::app::mltraining::v1::CancelTrainingJobResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::mltraining::v1::CancelTrainingJobResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::mltraining::v1::DeleteCompletedTrainingJobRequest* +Arena::CreateMaybeMessage< ::viam::app::mltraining::v1::DeleteCompletedTrainingJobRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::mltraining::v1::DeleteCompletedTrainingJobRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::mltraining::v1::DeleteCompletedTrainingJobResponse* +Arena::CreateMaybeMessage< ::viam::app::mltraining::v1::DeleteCompletedTrainingJobResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::mltraining::v1::DeleteCompletedTrainingJobResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::mltraining::v1::TrainingJobLogEntry* +Arena::CreateMaybeMessage< ::viam::app::mltraining::v1::TrainingJobLogEntry >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::mltraining::v1::TrainingJobLogEntry >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::mltraining::v1::GetTrainingJobLogsRequest* +Arena::CreateMaybeMessage< ::viam::app::mltraining::v1::GetTrainingJobLogsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::mltraining::v1::GetTrainingJobLogsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::mltraining::v1::GetTrainingJobLogsResponse* +Arena::CreateMaybeMessage< ::viam::app::mltraining::v1::GetTrainingJobLogsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::mltraining::v1::GetTrainingJobLogsResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/app/mltraining/v1/ml_training.pb.h b/src/viam/api/app/mltraining/v1/ml_training.pb.h index 1e06c31f2..66d84e931 100644 --- a/src/viam/api/app/mltraining/v1/ml_training.pb.h +++ b/src/viam/api/app/mltraining/v1/ml_training.pb.h @@ -1,68 +1,57 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: app/mltraining/v1/ml_training.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_app_2fmltraining_2fv1_2fml_5ftraining_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_app_2fmltraining_2fv1_2fml_5ftraining_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_bases.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/map.h" // IWYU pragma: export -#include "google/protobuf/map_entry.h" -#include "google/protobuf/map_field_inl.h" -#include "google/protobuf/generated_enum_reflection.h" -#include "google/protobuf/unknown_field_set.h" -#include "google/protobuf/timestamp.pb.h" + +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include +#include +#include #include "google/rpc/status.pb.h" #include "tagger/v1/tagger.pb.h" // @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - +#include #define PROTOBUF_INTERNAL_EXPORT_app_2fmltraining_2fv1_2fml_5ftraining_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_app_2fmltraining_2fv1_2fml_5ftraining_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto; namespace viam { namespace app { namespace mltraining { @@ -122,49 +111,56 @@ extern TrainingJobMetadataDefaultTypeInternal _TrainingJobMetadata_default_insta } // namespace mltraining } // namespace app } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::app::mltraining::v1::CancelTrainingJobRequest* Arena::CreateMaybeMessage<::viam::app::mltraining::v1::CancelTrainingJobRequest>(Arena*); +template<> ::viam::app::mltraining::v1::CancelTrainingJobResponse* Arena::CreateMaybeMessage<::viam::app::mltraining::v1::CancelTrainingJobResponse>(Arena*); +template<> ::viam::app::mltraining::v1::DeleteCompletedTrainingJobRequest* Arena::CreateMaybeMessage<::viam::app::mltraining::v1::DeleteCompletedTrainingJobRequest>(Arena*); +template<> ::viam::app::mltraining::v1::DeleteCompletedTrainingJobResponse* Arena::CreateMaybeMessage<::viam::app::mltraining::v1::DeleteCompletedTrainingJobResponse>(Arena*); +template<> ::viam::app::mltraining::v1::GetTrainingJobLogsRequest* Arena::CreateMaybeMessage<::viam::app::mltraining::v1::GetTrainingJobLogsRequest>(Arena*); +template<> ::viam::app::mltraining::v1::GetTrainingJobLogsResponse* Arena::CreateMaybeMessage<::viam::app::mltraining::v1::GetTrainingJobLogsResponse>(Arena*); +template<> ::viam::app::mltraining::v1::GetTrainingJobRequest* Arena::CreateMaybeMessage<::viam::app::mltraining::v1::GetTrainingJobRequest>(Arena*); +template<> ::viam::app::mltraining::v1::GetTrainingJobResponse* Arena::CreateMaybeMessage<::viam::app::mltraining::v1::GetTrainingJobResponse>(Arena*); +template<> ::viam::app::mltraining::v1::ListTrainingJobsRequest* Arena::CreateMaybeMessage<::viam::app::mltraining::v1::ListTrainingJobsRequest>(Arena*); +template<> ::viam::app::mltraining::v1::ListTrainingJobsResponse* Arena::CreateMaybeMessage<::viam::app::mltraining::v1::ListTrainingJobsResponse>(Arena*); +template<> ::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest* Arena::CreateMaybeMessage<::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest>(Arena*); +template<> ::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse* Arena::CreateMaybeMessage<::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse>(Arena*); +template<> ::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse* Arena::CreateMaybeMessage<::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse>(Arena*); +template<> ::viam::app::mltraining::v1::SubmitTrainingJobRequest* Arena::CreateMaybeMessage<::viam::app::mltraining::v1::SubmitTrainingJobRequest>(Arena*); +template<> ::viam::app::mltraining::v1::SubmitTrainingJobResponse* Arena::CreateMaybeMessage<::viam::app::mltraining::v1::SubmitTrainingJobResponse>(Arena*); +template<> ::viam::app::mltraining::v1::TrainingJobLogEntry* Arena::CreateMaybeMessage<::viam::app::mltraining::v1::TrainingJobLogEntry>(Arena*); +template<> ::viam::app::mltraining::v1::TrainingJobMetadata* Arena::CreateMaybeMessage<::viam::app::mltraining::v1::TrainingJobMetadata>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace viam { namespace app { namespace mltraining { namespace v1 { + enum ModelType : int { MODEL_TYPE_UNSPECIFIED = 0, MODEL_TYPE_SINGLE_LABEL_CLASSIFICATION = 1, MODEL_TYPE_MULTI_LABEL_CLASSIFICATION = 2, MODEL_TYPE_OBJECT_DETECTION = 3, - ModelType_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - ModelType_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), + ModelType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + ModelType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() }; - bool ModelType_IsValid(int value); -extern const uint32_t ModelType_internal_data_[]; -constexpr ModelType ModelType_MIN = static_cast(0); -constexpr ModelType ModelType_MAX = static_cast(3); -constexpr int ModelType_ARRAYSIZE = 3 + 1; -const ::google::protobuf::EnumDescriptor* -ModelType_descriptor(); -template -const std::string& ModelType_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to ModelType_Name()."); - return ModelType_Name(static_cast(value)); -} -template <> -inline const std::string& ModelType_Name(ModelType value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool ModelType_Parse(absl::string_view name, ModelType* value) { - return ::google::protobuf::internal::ParseNamedEnum( - ModelType_descriptor(), name, value); +constexpr ModelType ModelType_MIN = MODEL_TYPE_UNSPECIFIED; +constexpr ModelType ModelType_MAX = MODEL_TYPE_OBJECT_DETECTION; +constexpr int ModelType_ARRAYSIZE = ModelType_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ModelType_descriptor(); +template +inline const std::string& ModelType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function ModelType_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + ModelType_descriptor(), enum_t_value); +} +inline bool ModelType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ModelType* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + ModelType_descriptor(), name, value); } enum ModelFramework : int { MODEL_FRAMEWORK_UNSPECIFIED = 0, @@ -172,35 +168,27 @@ enum ModelFramework : int { MODEL_FRAMEWORK_TENSORFLOW = 2, MODEL_FRAMEWORK_PYTORCH = 3, MODEL_FRAMEWORK_ONNX = 4, - ModelFramework_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - ModelFramework_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), + ModelFramework_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + ModelFramework_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() }; - bool ModelFramework_IsValid(int value); -extern const uint32_t ModelFramework_internal_data_[]; -constexpr ModelFramework ModelFramework_MIN = static_cast(0); -constexpr ModelFramework ModelFramework_MAX = static_cast(4); -constexpr int ModelFramework_ARRAYSIZE = 4 + 1; -const ::google::protobuf::EnumDescriptor* -ModelFramework_descriptor(); -template -const std::string& ModelFramework_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to ModelFramework_Name()."); - return ModelFramework_Name(static_cast(value)); -} -template <> -inline const std::string& ModelFramework_Name(ModelFramework value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool ModelFramework_Parse(absl::string_view name, ModelFramework* value) { - return ::google::protobuf::internal::ParseNamedEnum( - ModelFramework_descriptor(), name, value); +constexpr ModelFramework ModelFramework_MIN = MODEL_FRAMEWORK_UNSPECIFIED; +constexpr ModelFramework ModelFramework_MAX = MODEL_FRAMEWORK_ONNX; +constexpr int ModelFramework_ARRAYSIZE = ModelFramework_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ModelFramework_descriptor(); +template +inline const std::string& ModelFramework_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function ModelFramework_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + ModelFramework_descriptor(), enum_t_value); +} +inline bool ModelFramework_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ModelFramework* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + ModelFramework_descriptor(), name, value); } enum TrainingStatus : int { TRAINING_STATUS_UNSPECIFIED = 0, @@ -210,233 +198,38 @@ enum TrainingStatus : int { TRAINING_STATUS_FAILED = 4, TRAINING_STATUS_CANCELED = 5, TRAINING_STATUS_CANCELING = 6, - TrainingStatus_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - TrainingStatus_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), + TrainingStatus_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + TrainingStatus_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() }; - bool TrainingStatus_IsValid(int value); -extern const uint32_t TrainingStatus_internal_data_[]; -constexpr TrainingStatus TrainingStatus_MIN = static_cast(0); -constexpr TrainingStatus TrainingStatus_MAX = static_cast(6); -constexpr int TrainingStatus_ARRAYSIZE = 6 + 1; -const ::google::protobuf::EnumDescriptor* -TrainingStatus_descriptor(); -template -const std::string& TrainingStatus_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to TrainingStatus_Name()."); - return TrainingStatus_Name(static_cast(value)); -} -template <> -inline const std::string& TrainingStatus_Name(TrainingStatus value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool TrainingStatus_Parse(absl::string_view name, TrainingStatus* value) { - return ::google::protobuf::internal::ParseNamedEnum( - TrainingStatus_descriptor(), name, value); +constexpr TrainingStatus TrainingStatus_MIN = TRAINING_STATUS_UNSPECIFIED; +constexpr TrainingStatus TrainingStatus_MAX = TRAINING_STATUS_CANCELING; +constexpr int TrainingStatus_ARRAYSIZE = TrainingStatus_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* TrainingStatus_descriptor(); +template +inline const std::string& TrainingStatus_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function TrainingStatus_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + TrainingStatus_descriptor(), enum_t_value); +} +inline bool TrainingStatus_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, TrainingStatus* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + TrainingStatus_descriptor(), name, value); } - // =================================================================== - -// ------------------------------------------------------------------- - -class SubmitTrainingJobResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.mltraining.v1.SubmitTrainingJobResponse) */ { - public: - inline SubmitTrainingJobResponse() : SubmitTrainingJobResponse(nullptr) {} - ~SubmitTrainingJobResponse() override; - template - explicit PROTOBUF_CONSTEXPR SubmitTrainingJobResponse(::google::protobuf::internal::ConstantInitialized); - - inline SubmitTrainingJobResponse(const SubmitTrainingJobResponse& from) - : SubmitTrainingJobResponse(nullptr, from) {} - SubmitTrainingJobResponse(SubmitTrainingJobResponse&& from) noexcept - : SubmitTrainingJobResponse() { - *this = ::std::move(from); - } - - inline SubmitTrainingJobResponse& operator=(const SubmitTrainingJobResponse& from) { - CopyFrom(from); - return *this; - } - inline SubmitTrainingJobResponse& operator=(SubmitTrainingJobResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SubmitTrainingJobResponse& default_instance() { - return *internal_default_instance(); - } - static inline const SubmitTrainingJobResponse* internal_default_instance() { - return reinterpret_cast( - &_SubmitTrainingJobResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(SubmitTrainingJobResponse& a, SubmitTrainingJobResponse& b) { - a.Swap(&b); - } - inline void Swap(SubmitTrainingJobResponse* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SubmitTrainingJobResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SubmitTrainingJobResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SubmitTrainingJobResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SubmitTrainingJobResponse& from) { - SubmitTrainingJobResponse::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SubmitTrainingJobResponse* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.mltraining.v1.SubmitTrainingJobResponse"; - } - protected: - explicit SubmitTrainingJobResponse(::google::protobuf::Arena* arena); - SubmitTrainingJobResponse(::google::protobuf::Arena* arena, const SubmitTrainingJobResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kIdFieldNumber = 1, - }; - // string id = 1 [json_name = "id"]; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - - private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); - - public: - // @@protoc_insertion_point(class_scope:viam.app.mltraining.v1.SubmitTrainingJobResponse) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 59, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_app_2fmltraining_2fv1_2fml_5ftraining_2eproto; -};// ------------------------------------------------------------------- - class SubmitTrainingJobRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.mltraining.v1.SubmitTrainingJobRequest) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.mltraining.v1.SubmitTrainingJobRequest) */ { public: inline SubmitTrainingJobRequest() : SubmitTrainingJobRequest(nullptr) {} ~SubmitTrainingJobRequest() override; - template - explicit PROTOBUF_CONSTEXPR SubmitTrainingJobRequest(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR SubmitTrainingJobRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline SubmitTrainingJobRequest(const SubmitTrainingJobRequest& from) - : SubmitTrainingJobRequest(nullptr, from) {} + SubmitTrainingJobRequest(const SubmitTrainingJobRequest& from); SubmitTrainingJobRequest(SubmitTrainingJobRequest&& from) noexcept : SubmitTrainingJobRequest() { *this = ::std::move(from); @@ -448,9 +241,9 @@ class SubmitTrainingJobRequest final : } inline SubmitTrainingJobRequest& operator=(SubmitTrainingJobRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -460,22 +253,13 @@ class SubmitTrainingJobRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const SubmitTrainingJobRequest& default_instance() { @@ -494,65 +278,63 @@ class SubmitTrainingJobRequest final : inline void Swap(SubmitTrainingJobRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(SubmitTrainingJobRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SubmitTrainingJobRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + SubmitTrainingJobRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const SubmitTrainingJobRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SubmitTrainingJobRequest& from) { - SubmitTrainingJobRequest::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const SubmitTrainingJobRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(SubmitTrainingJobRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "viam.app.mltraining.v1.SubmitTrainingJobRequest"; } protected: - explicit SubmitTrainingJobRequest(::google::protobuf::Arena* arena); - SubmitTrainingJobRequest(::google::protobuf::Arena* arena, const SubmitTrainingJobRequest& from); + explicit SubmitTrainingJobRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -570,164 +352,131 @@ class SubmitTrainingJobRequest final : int tags_size() const; private: int _internal_tags_size() const; - public: - void clear_tags() ; + void clear_tags(); const std::string& tags(int index) const; std::string* mutable_tags(int index); void set_tags(int index, const std::string& value); void set_tags(int index, std::string&& value); void set_tags(int index, const char* value); - void set_tags(int index, const char* value, std::size_t size); - void set_tags(int index, absl::string_view value); + void set_tags(int index, const char* value, size_t size); std::string* add_tags(); void add_tags(const std::string& value); void add_tags(std::string&& value); void add_tags(const char* value); - void add_tags(const char* value, std::size_t size); - void add_tags(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& tags() const; - ::google::protobuf::RepeatedPtrField* mutable_tags(); - + void add_tags(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& tags() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_tags(); private: - const ::google::protobuf::RepeatedPtrField& _internal_tags() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_tags(); - + const std::string& _internal_tags(int index) const; + std::string* _internal_add_tags(); public: + // string organization_id = 2 [json_name = "organizationId", (.tagger.v1.tags) = "bson:\"organization_id\" json:\"organization_id\""]; - void clear_organization_id() ; + void clear_organization_id(); const std::string& organization_id() const; - template - void set_organization_id(Arg_&& arg, Args_... args); + template + void set_organization_id(ArgT0&& arg0, ArgT... args); std::string* mutable_organization_id(); PROTOBUF_NODISCARD std::string* release_organization_id(); - void set_allocated_organization_id(std::string* value); - + void set_allocated_organization_id(std::string* organization_id); private: const std::string& _internal_organization_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id(const std::string& value); std::string* _internal_mutable_organization_id(); - public: + // string model_name = 3 [json_name = "modelName", (.tagger.v1.tags) = "bson:\"model_name\" json:\"model_name\""]; - void clear_model_name() ; + void clear_model_name(); const std::string& model_name() const; - template - void set_model_name(Arg_&& arg, Args_... args); + template + void set_model_name(ArgT0&& arg0, ArgT... args); std::string* mutable_model_name(); PROTOBUF_NODISCARD std::string* release_model_name(); - void set_allocated_model_name(std::string* value); - + void set_allocated_model_name(std::string* model_name); private: const std::string& _internal_model_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_model_name( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_model_name(const std::string& value); std::string* _internal_mutable_model_name(); - public: + // string model_version = 4 [json_name = "modelVersion", (.tagger.v1.tags) = "bson:\"model_version\" json:\"model_version\""]; - void clear_model_version() ; + void clear_model_version(); const std::string& model_version() const; - template - void set_model_version(Arg_&& arg, Args_... args); + template + void set_model_version(ArgT0&& arg0, ArgT... args); std::string* mutable_model_version(); PROTOBUF_NODISCARD std::string* release_model_version(); - void set_allocated_model_version(std::string* value); - + void set_allocated_model_version(std::string* model_version); private: const std::string& _internal_model_version() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_model_version( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_model_version(const std::string& value); std::string* _internal_mutable_model_version(); - public: + // string dataset_id = 7 [json_name = "datasetId", (.tagger.v1.tags) = "bson:\"dataset_id\" json:\"dataset_id\""]; - void clear_dataset_id() ; + void clear_dataset_id(); const std::string& dataset_id() const; - template - void set_dataset_id(Arg_&& arg, Args_... args); + template + void set_dataset_id(ArgT0&& arg0, ArgT... args); std::string* mutable_dataset_id(); PROTOBUF_NODISCARD std::string* release_dataset_id(); - void set_allocated_dataset_id(std::string* value); - + void set_allocated_dataset_id(std::string* dataset_id); private: const std::string& _internal_dataset_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_dataset_id( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_dataset_id(const std::string& value); std::string* _internal_mutable_dataset_id(); - public: + // .viam.app.mltraining.v1.ModelType model_type = 5 [json_name = "modelType", (.tagger.v1.tags) = "bson:\"model_type\" json:\"model_type\""]; - void clear_model_type() ; + void clear_model_type(); ::viam::app::mltraining::v1::ModelType model_type() const; void set_model_type(::viam::app::mltraining::v1::ModelType value); - private: ::viam::app::mltraining::v1::ModelType _internal_model_type() const; void _internal_set_model_type(::viam::app::mltraining::v1::ModelType value); - public: + // @@protoc_insertion_point(class_scope:viam.app.mltraining.v1.SubmitTrainingJobRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 6, 0, - 108, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField tags_; - ::google::protobuf::internal::ArenaStringPtr organization_id_; - ::google::protobuf::internal::ArenaStringPtr model_name_; - ::google::protobuf::internal::ArenaStringPtr model_version_; - ::google::protobuf::internal::ArenaStringPtr dataset_id_; - int model_type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField tags_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr organization_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr model_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr model_version_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr dataset_id_; + int model_type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fmltraining_2fv1_2fml_5ftraining_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SubmitCustomTrainingJobResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.mltraining.v1.SubmitCustomTrainingJobResponse) */ { +class SubmitTrainingJobResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.mltraining.v1.SubmitTrainingJobResponse) */ { public: - inline SubmitCustomTrainingJobResponse() : SubmitCustomTrainingJobResponse(nullptr) {} - ~SubmitCustomTrainingJobResponse() override; - template - explicit PROTOBUF_CONSTEXPR SubmitCustomTrainingJobResponse(::google::protobuf::internal::ConstantInitialized); + inline SubmitTrainingJobResponse() : SubmitTrainingJobResponse(nullptr) {} + ~SubmitTrainingJobResponse() override; + explicit PROTOBUF_CONSTEXPR SubmitTrainingJobResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline SubmitCustomTrainingJobResponse(const SubmitCustomTrainingJobResponse& from) - : SubmitCustomTrainingJobResponse(nullptr, from) {} - SubmitCustomTrainingJobResponse(SubmitCustomTrainingJobResponse&& from) noexcept - : SubmitCustomTrainingJobResponse() { + SubmitTrainingJobResponse(const SubmitTrainingJobResponse& from); + SubmitTrainingJobResponse(SubmitTrainingJobResponse&& from) noexcept + : SubmitTrainingJobResponse() { *this = ::std::move(from); } - inline SubmitCustomTrainingJobResponse& operator=(const SubmitCustomTrainingJobResponse& from) { + inline SubmitTrainingJobResponse& operator=(const SubmitTrainingJobResponse& from) { CopyFrom(from); return *this; } - inline SubmitCustomTrainingJobResponse& operator=(SubmitCustomTrainingJobResponse&& from) noexcept { + inline SubmitTrainingJobResponse& operator=(SubmitTrainingJobResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -737,99 +486,88 @@ class SubmitCustomTrainingJobResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SubmitCustomTrainingJobResponse& default_instance() { + static const SubmitTrainingJobResponse& default_instance() { return *internal_default_instance(); } - static inline const SubmitCustomTrainingJobResponse* internal_default_instance() { - return reinterpret_cast( - &_SubmitCustomTrainingJobResponse_default_instance_); + static inline const SubmitTrainingJobResponse* internal_default_instance() { + return reinterpret_cast( + &_SubmitTrainingJobResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 4; + 1; - friend void swap(SubmitCustomTrainingJobResponse& a, SubmitCustomTrainingJobResponse& b) { + friend void swap(SubmitTrainingJobResponse& a, SubmitTrainingJobResponse& b) { a.Swap(&b); } - inline void Swap(SubmitCustomTrainingJobResponse* other) { + inline void Swap(SubmitTrainingJobResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SubmitCustomTrainingJobResponse* other) { + void UnsafeArenaSwap(SubmitTrainingJobResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SubmitCustomTrainingJobResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SubmitCustomTrainingJobResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SubmitCustomTrainingJobResponse& from) { - SubmitCustomTrainingJobResponse::MergeImpl(*this, from); + SubmitTrainingJobResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SubmitTrainingJobResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const SubmitTrainingJobResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(SubmitCustomTrainingJobResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(SubmitTrainingJobResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.mltraining.v1.SubmitCustomTrainingJobResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.mltraining.v1.SubmitTrainingJobResponse"; } protected: - explicit SubmitCustomTrainingJobResponse(::google::protobuf::Arena* arena); - SubmitCustomTrainingJobResponse(::google::protobuf::Arena* arena, const SubmitCustomTrainingJobResponse& from); + explicit SubmitTrainingJobResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -839,106 +577,82 @@ class SubmitCustomTrainingJobResponse final : kIdFieldNumber = 1, }; // string id = 1 [json_name = "id"]; - void clear_id() ; + void clear_id(); const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); + template + void set_id(ArgT0&& arg0, ArgT... args); std::string* mutable_id(); PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - + void set_allocated_id(std::string* id); private: const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); std::string* _internal_mutable_id(); - public: - // @@protoc_insertion_point(class_scope:viam.app.mltraining.v1.SubmitCustomTrainingJobResponse) + + // @@protoc_insertion_point(class_scope:viam.app.mltraining.v1.SubmitTrainingJobResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 65, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fmltraining_2fv1_2fml_5ftraining_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry< - SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse, std::string, std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING> { - public: - using SuperType = ::google::protobuf::internal::MapEntry< - SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse, std::string, std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING>; +class SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse(); - template explicit PROTOBUF_CONSTEXPR SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse( - ::google::protobuf::internal::ConstantInitialized); - explicit SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse(::google::protobuf::Arena* arena); - static const SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse* internal_default_instance() { - return reinterpret_cast( - &_SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse_default_instance_); - } + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse& other); + static const SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse_default_instance_); } static bool ValidateKey(std::string* s) { - return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.ArgumentsEntry.key"); + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.ArgumentsEntry.key"); } static bool ValidateValue(std::string* s) { - return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.ArgumentsEntry.value"); + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.ArgumentsEntry.value"); } - ::google::protobuf::Metadata GetMetadata() const final; + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; friend struct ::TableStruct_app_2fmltraining_2fv1_2fml_5ftraining_2eproto; }; + // ------------------------------------------------------------------- -class ListTrainingJobsRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.mltraining.v1.ListTrainingJobsRequest) */ { +class SubmitCustomTrainingJobRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.mltraining.v1.SubmitCustomTrainingJobRequest) */ { public: - inline ListTrainingJobsRequest() : ListTrainingJobsRequest(nullptr) {} - ~ListTrainingJobsRequest() override; - template - explicit PROTOBUF_CONSTEXPR ListTrainingJobsRequest(::google::protobuf::internal::ConstantInitialized); + inline SubmitCustomTrainingJobRequest() : SubmitCustomTrainingJobRequest(nullptr) {} + ~SubmitCustomTrainingJobRequest() override; + explicit PROTOBUF_CONSTEXPR SubmitCustomTrainingJobRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ListTrainingJobsRequest(const ListTrainingJobsRequest& from) - : ListTrainingJobsRequest(nullptr, from) {} - ListTrainingJobsRequest(ListTrainingJobsRequest&& from) noexcept - : ListTrainingJobsRequest() { + SubmitCustomTrainingJobRequest(const SubmitCustomTrainingJobRequest& from); + SubmitCustomTrainingJobRequest(SubmitCustomTrainingJobRequest&& from) noexcept + : SubmitCustomTrainingJobRequest() { *this = ::std::move(from); } - inline ListTrainingJobsRequest& operator=(const ListTrainingJobsRequest& from) { + inline SubmitCustomTrainingJobRequest& operator=(const SubmitCustomTrainingJobRequest& from) { CopyFrom(from); return *this; } - inline ListTrainingJobsRequest& operator=(ListTrainingJobsRequest&& from) noexcept { + inline SubmitCustomTrainingJobRequest& operator=(SubmitCustomTrainingJobRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -948,190 +662,251 @@ class ListTrainingJobsRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ListTrainingJobsRequest& default_instance() { + static const SubmitCustomTrainingJobRequest& default_instance() { return *internal_default_instance(); } - static inline const ListTrainingJobsRequest* internal_default_instance() { - return reinterpret_cast( - &_ListTrainingJobsRequest_default_instance_); + static inline const SubmitCustomTrainingJobRequest* internal_default_instance() { + return reinterpret_cast( + &_SubmitCustomTrainingJobRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 7; + 3; - friend void swap(ListTrainingJobsRequest& a, ListTrainingJobsRequest& b) { + friend void swap(SubmitCustomTrainingJobRequest& a, SubmitCustomTrainingJobRequest& b) { a.Swap(&b); } - inline void Swap(ListTrainingJobsRequest* other) { + inline void Swap(SubmitCustomTrainingJobRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ListTrainingJobsRequest* other) { + void UnsafeArenaSwap(SubmitCustomTrainingJobRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ListTrainingJobsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ListTrainingJobsRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ListTrainingJobsRequest& from) { - ListTrainingJobsRequest::MergeImpl(*this, from); + SubmitCustomTrainingJobRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SubmitCustomTrainingJobRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const SubmitCustomTrainingJobRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ListTrainingJobsRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(SubmitCustomTrainingJobRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.mltraining.v1.ListTrainingJobsRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.mltraining.v1.SubmitCustomTrainingJobRequest"; } protected: - explicit ListTrainingJobsRequest(::google::protobuf::Arena* arena); - ListTrainingJobsRequest(::google::protobuf::Arena* arena, const ListTrainingJobsRequest& from); + explicit SubmitCustomTrainingJobRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- + // accessors ------------------------------------------------------- enum : int { - kOrganizationIdFieldNumber = 1, - kStatusFieldNumber = 2, + kArgumentsFieldNumber = 7, + kDatasetIdFieldNumber = 1, + kRegistryItemIdFieldNumber = 2, + kOrganizationIdFieldNumber = 3, + kModelNameFieldNumber = 4, + kModelVersionFieldNumber = 5, + kRegistryItemVersionFieldNumber = 6, }; - // string organization_id = 1 [json_name = "organizationId"]; - void clear_organization_id() ; + // map arguments = 7 [json_name = "arguments"]; + int arguments_size() const; + private: + int _internal_arguments_size() const; + public: + void clear_arguments(); + private: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + _internal_arguments() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + _internal_mutable_arguments(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + arguments() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + mutable_arguments(); + + // string dataset_id = 1 [json_name = "datasetId", (.tagger.v1.tags) = "bson:\"dataset_id\" json:\"dataset_id\""]; + void clear_dataset_id(); + const std::string& dataset_id() const; + template + void set_dataset_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_dataset_id(); + PROTOBUF_NODISCARD std::string* release_dataset_id(); + void set_allocated_dataset_id(std::string* dataset_id); + private: + const std::string& _internal_dataset_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_dataset_id(const std::string& value); + std::string* _internal_mutable_dataset_id(); + public: + + // string registry_item_id = 2 [json_name = "registryItemId", (.tagger.v1.tags) = "bson:\"registry_item_id\" json:\"registry_item_id\""]; + void clear_registry_item_id(); + const std::string& registry_item_id() const; + template + void set_registry_item_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_registry_item_id(); + PROTOBUF_NODISCARD std::string* release_registry_item_id(); + void set_allocated_registry_item_id(std::string* registry_item_id); + private: + const std::string& _internal_registry_item_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_registry_item_id(const std::string& value); + std::string* _internal_mutable_registry_item_id(); + public: + + // string organization_id = 3 [json_name = "organizationId", (.tagger.v1.tags) = "bson:\"organization_id\" json:\"organization_id\""]; + void clear_organization_id(); const std::string& organization_id() const; - template - void set_organization_id(Arg_&& arg, Args_... args); + template + void set_organization_id(ArgT0&& arg0, ArgT... args); std::string* mutable_organization_id(); PROTOBUF_NODISCARD std::string* release_organization_id(); - void set_allocated_organization_id(std::string* value); - + void set_allocated_organization_id(std::string* organization_id); private: const std::string& _internal_organization_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id(const std::string& value); std::string* _internal_mutable_organization_id(); + public: + // string model_name = 4 [json_name = "modelName", (.tagger.v1.tags) = "bson:\"model_name\" json:\"model_name\""]; + void clear_model_name(); + const std::string& model_name() const; + template + void set_model_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_model_name(); + PROTOBUF_NODISCARD std::string* release_model_name(); + void set_allocated_model_name(std::string* model_name); + private: + const std::string& _internal_model_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_model_name(const std::string& value); + std::string* _internal_mutable_model_name(); public: - // .viam.app.mltraining.v1.TrainingStatus status = 2 [json_name = "status"]; - void clear_status() ; - ::viam::app::mltraining::v1::TrainingStatus status() const; - void set_status(::viam::app::mltraining::v1::TrainingStatus value); + // string model_version = 5 [json_name = "modelVersion", (.tagger.v1.tags) = "bson:\"model_version\" json:\"model_version\""]; + void clear_model_version(); + const std::string& model_version() const; + template + void set_model_version(ArgT0&& arg0, ArgT... args); + std::string* mutable_model_version(); + PROTOBUF_NODISCARD std::string* release_model_version(); + void set_allocated_model_version(std::string* model_version); private: - ::viam::app::mltraining::v1::TrainingStatus _internal_status() const; - void _internal_set_status(::viam::app::mltraining::v1::TrainingStatus value); + const std::string& _internal_model_version() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_model_version(const std::string& value); + std::string* _internal_mutable_model_version(); + public: + // string registry_item_version = 6 [json_name = "registryItemVersion", (.tagger.v1.tags) = "bson:\"registry_item_version\" json:\"registry_item_version\""]; + void clear_registry_item_version(); + const std::string& registry_item_version() const; + template + void set_registry_item_version(ArgT0&& arg0, ArgT... args); + std::string* mutable_registry_item_version(); + PROTOBUF_NODISCARD std::string* release_registry_item_version(); + void set_allocated_registry_item_version(std::string* registry_item_version); + private: + const std::string& _internal_registry_item_version() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_registry_item_version(const std::string& value); + std::string* _internal_mutable_registry_item_version(); public: - // @@protoc_insertion_point(class_scope:viam.app.mltraining.v1.ListTrainingJobsRequest) + + // @@protoc_insertion_point(class_scope:viam.app.mltraining.v1.SubmitCustomTrainingJobRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 70, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr organization_id_; - int status_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse, + std::string, std::string, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> arguments_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr dataset_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr registry_item_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr organization_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr model_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr model_version_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr registry_item_version_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fmltraining_2fv1_2fml_5ftraining_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetTrainingJobRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.mltraining.v1.GetTrainingJobRequest) */ { +class SubmitCustomTrainingJobResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.mltraining.v1.SubmitCustomTrainingJobResponse) */ { public: - inline GetTrainingJobRequest() : GetTrainingJobRequest(nullptr) {} - ~GetTrainingJobRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetTrainingJobRequest(::google::protobuf::internal::ConstantInitialized); + inline SubmitCustomTrainingJobResponse() : SubmitCustomTrainingJobResponse(nullptr) {} + ~SubmitCustomTrainingJobResponse() override; + explicit PROTOBUF_CONSTEXPR SubmitCustomTrainingJobResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetTrainingJobRequest(const GetTrainingJobRequest& from) - : GetTrainingJobRequest(nullptr, from) {} - GetTrainingJobRequest(GetTrainingJobRequest&& from) noexcept - : GetTrainingJobRequest() { + SubmitCustomTrainingJobResponse(const SubmitCustomTrainingJobResponse& from); + SubmitCustomTrainingJobResponse(SubmitCustomTrainingJobResponse&& from) noexcept + : SubmitCustomTrainingJobResponse() { *this = ::std::move(from); } - inline GetTrainingJobRequest& operator=(const GetTrainingJobRequest& from) { + inline SubmitCustomTrainingJobResponse& operator=(const SubmitCustomTrainingJobResponse& from) { CopyFrom(from); return *this; } - inline GetTrainingJobRequest& operator=(GetTrainingJobRequest&& from) noexcept { + inline SubmitCustomTrainingJobResponse& operator=(SubmitCustomTrainingJobResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1141,99 +916,88 @@ class GetTrainingJobRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetTrainingJobRequest& default_instance() { + static const SubmitCustomTrainingJobResponse& default_instance() { return *internal_default_instance(); } - static inline const GetTrainingJobRequest* internal_default_instance() { - return reinterpret_cast( - &_GetTrainingJobRequest_default_instance_); + static inline const SubmitCustomTrainingJobResponse* internal_default_instance() { + return reinterpret_cast( + &_SubmitCustomTrainingJobResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 5; + 4; - friend void swap(GetTrainingJobRequest& a, GetTrainingJobRequest& b) { + friend void swap(SubmitCustomTrainingJobResponse& a, SubmitCustomTrainingJobResponse& b) { a.Swap(&b); } - inline void Swap(GetTrainingJobRequest* other) { + inline void Swap(SubmitCustomTrainingJobResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetTrainingJobRequest* other) { + void UnsafeArenaSwap(SubmitCustomTrainingJobResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetTrainingJobRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetTrainingJobRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetTrainingJobRequest& from) { - GetTrainingJobRequest::MergeImpl(*this, from); + SubmitCustomTrainingJobResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SubmitCustomTrainingJobResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const SubmitCustomTrainingJobResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetTrainingJobRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(SubmitCustomTrainingJobResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.mltraining.v1.GetTrainingJobRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.mltraining.v1.SubmitCustomTrainingJobResponse"; } protected: - explicit GetTrainingJobRequest(::google::protobuf::Arena* arena); - GetTrainingJobRequest(::google::protobuf::Arena* arena, const GetTrainingJobRequest& from); + explicit SubmitCustomTrainingJobResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1243,76 +1007,54 @@ class GetTrainingJobRequest final : kIdFieldNumber = 1, }; // string id = 1 [json_name = "id"]; - void clear_id() ; + void clear_id(); const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); + template + void set_id(ArgT0&& arg0, ArgT... args); std::string* mutable_id(); PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - + void set_allocated_id(std::string* id); private: const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); std::string* _internal_mutable_id(); - public: - // @@protoc_insertion_point(class_scope:viam.app.mltraining.v1.GetTrainingJobRequest) + + // @@protoc_insertion_point(class_scope:viam.app.mltraining.v1.SubmitCustomTrainingJobResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 55, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fmltraining_2fv1_2fml_5ftraining_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetTrainingJobLogsRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.mltraining.v1.GetTrainingJobLogsRequest) */ { +class GetTrainingJobRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.mltraining.v1.GetTrainingJobRequest) */ { public: - inline GetTrainingJobLogsRequest() : GetTrainingJobLogsRequest(nullptr) {} - ~GetTrainingJobLogsRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetTrainingJobLogsRequest(::google::protobuf::internal::ConstantInitialized); + inline GetTrainingJobRequest() : GetTrainingJobRequest(nullptr) {} + ~GetTrainingJobRequest() override; + explicit PROTOBUF_CONSTEXPR GetTrainingJobRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetTrainingJobLogsRequest(const GetTrainingJobLogsRequest& from) - : GetTrainingJobLogsRequest(nullptr, from) {} - GetTrainingJobLogsRequest(GetTrainingJobLogsRequest&& from) noexcept - : GetTrainingJobLogsRequest() { + GetTrainingJobRequest(const GetTrainingJobRequest& from); + GetTrainingJobRequest(GetTrainingJobRequest&& from) noexcept + : GetTrainingJobRequest() { *this = ::std::move(from); } - inline GetTrainingJobLogsRequest& operator=(const GetTrainingJobLogsRequest& from) { + inline GetTrainingJobRequest& operator=(const GetTrainingJobRequest& from) { CopyFrom(from); return *this; } - inline GetTrainingJobLogsRequest& operator=(GetTrainingJobLogsRequest&& from) noexcept { + inline GetTrainingJobRequest& operator=(GetTrainingJobRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1322,99 +1064,88 @@ class GetTrainingJobLogsRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetTrainingJobLogsRequest& default_instance() { + static const GetTrainingJobRequest& default_instance() { return *internal_default_instance(); } - static inline const GetTrainingJobLogsRequest* internal_default_instance() { - return reinterpret_cast( - &_GetTrainingJobLogsRequest_default_instance_); + static inline const GetTrainingJobRequest* internal_default_instance() { + return reinterpret_cast( + &_GetTrainingJobRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 15; + 5; - friend void swap(GetTrainingJobLogsRequest& a, GetTrainingJobLogsRequest& b) { + friend void swap(GetTrainingJobRequest& a, GetTrainingJobRequest& b) { a.Swap(&b); } - inline void Swap(GetTrainingJobLogsRequest* other) { + inline void Swap(GetTrainingJobRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetTrainingJobLogsRequest* other) { + void UnsafeArenaSwap(GetTrainingJobRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetTrainingJobLogsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetTrainingJobLogsRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetTrainingJobLogsRequest& from) { - GetTrainingJobLogsRequest::MergeImpl(*this, from); + GetTrainingJobRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetTrainingJobRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetTrainingJobRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetTrainingJobLogsRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetTrainingJobRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.mltraining.v1.GetTrainingJobLogsRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.mltraining.v1.GetTrainingJobRequest"; } protected: - explicit GetTrainingJobLogsRequest(::google::protobuf::Arena* arena); - GetTrainingJobLogsRequest(::google::protobuf::Arena* arena, const GetTrainingJobLogsRequest& from); + explicit GetTrainingJobRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1422,97 +1153,56 @@ class GetTrainingJobLogsRequest final : enum : int { kIdFieldNumber = 1, - kPageTokenFieldNumber = 2, }; // string id = 1 [json_name = "id"]; - void clear_id() ; + void clear_id(); const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); + template + void set_id(ArgT0&& arg0, ArgT... args); std::string* mutable_id(); PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - + void set_allocated_id(std::string* id); private: const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); std::string* _internal_mutable_id(); - public: - // optional string page_token = 2 [json_name = "pageToken"]; - bool has_page_token() const; - void clear_page_token() ; - const std::string& page_token() const; - template - void set_page_token(Arg_&& arg, Args_... args); - std::string* mutable_page_token(); - PROTOBUF_NODISCARD std::string* release_page_token(); - void set_allocated_page_token(std::string* value); - - private: - const std::string& _internal_page_token() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_page_token( - const std::string& value); - std::string* _internal_mutable_page_token(); - public: - // @@protoc_insertion_point(class_scope:viam.app.mltraining.v1.GetTrainingJobLogsRequest) + // @@protoc_insertion_point(class_scope:viam.app.mltraining.v1.GetTrainingJobRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 69, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr id_; - ::google::protobuf::internal::ArenaStringPtr page_token_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fmltraining_2fv1_2fml_5ftraining_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class DeleteCompletedTrainingJobResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.mltraining.v1.DeleteCompletedTrainingJobResponse) */ { +class GetTrainingJobResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.mltraining.v1.GetTrainingJobResponse) */ { public: - inline DeleteCompletedTrainingJobResponse() : DeleteCompletedTrainingJobResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR DeleteCompletedTrainingJobResponse(::google::protobuf::internal::ConstantInitialized); + inline GetTrainingJobResponse() : GetTrainingJobResponse(nullptr) {} + ~GetTrainingJobResponse() override; + explicit PROTOBUF_CONSTEXPR GetTrainingJobResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline DeleteCompletedTrainingJobResponse(const DeleteCompletedTrainingJobResponse& from) - : DeleteCompletedTrainingJobResponse(nullptr, from) {} - DeleteCompletedTrainingJobResponse(DeleteCompletedTrainingJobResponse&& from) noexcept - : DeleteCompletedTrainingJobResponse() { + GetTrainingJobResponse(const GetTrainingJobResponse& from); + GetTrainingJobResponse(GetTrainingJobResponse&& from) noexcept + : GetTrainingJobResponse() { *this = ::std::move(from); } - inline DeleteCompletedTrainingJobResponse& operator=(const DeleteCompletedTrainingJobResponse& from) { + inline GetTrainingJobResponse& operator=(const GetTrainingJobResponse& from) { CopyFrom(from); return *this; } - inline DeleteCompletedTrainingJobResponse& operator=(DeleteCompletedTrainingJobResponse&& from) noexcept { + inline GetTrainingJobResponse& operator=(GetTrainingJobResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1522,134 +1212,149 @@ class DeleteCompletedTrainingJobResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const DeleteCompletedTrainingJobResponse& default_instance() { + static const GetTrainingJobResponse& default_instance() { return *internal_default_instance(); } - static inline const DeleteCompletedTrainingJobResponse* internal_default_instance() { - return reinterpret_cast( - &_DeleteCompletedTrainingJobResponse_default_instance_); + static inline const GetTrainingJobResponse* internal_default_instance() { + return reinterpret_cast( + &_GetTrainingJobResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 13; + 6; - friend void swap(DeleteCompletedTrainingJobResponse& a, DeleteCompletedTrainingJobResponse& b) { + friend void swap(GetTrainingJobResponse& a, GetTrainingJobResponse& b) { a.Swap(&b); } - inline void Swap(DeleteCompletedTrainingJobResponse* other) { + inline void Swap(GetTrainingJobResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(DeleteCompletedTrainingJobResponse* other) { + void UnsafeArenaSwap(GetTrainingJobResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - DeleteCompletedTrainingJobResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const DeleteCompletedTrainingJobResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const DeleteCompletedTrainingJobResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + GetTrainingJobResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetTrainingJobResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetTrainingJobResponse& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.mltraining.v1.DeleteCompletedTrainingJobResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetTrainingJobResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.mltraining.v1.GetTrainingJobResponse"; } protected: - explicit DeleteCompletedTrainingJobResponse(::google::protobuf::Arena* arena); - DeleteCompletedTrainingJobResponse(::google::protobuf::Arena* arena, const DeleteCompletedTrainingJobResponse& from); + explicit GetTrainingJobResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.app.mltraining.v1.DeleteCompletedTrainingJobResponse) + enum : int { + kMetadataFieldNumber = 1, + }; + // .viam.app.mltraining.v1.TrainingJobMetadata metadata = 1 [json_name = "metadata"]; + bool has_metadata() const; + private: + bool _internal_has_metadata() const; + public: + void clear_metadata(); + const ::viam::app::mltraining::v1::TrainingJobMetadata& metadata() const; + PROTOBUF_NODISCARD ::viam::app::mltraining::v1::TrainingJobMetadata* release_metadata(); + ::viam::app::mltraining::v1::TrainingJobMetadata* mutable_metadata(); + void set_allocated_metadata(::viam::app::mltraining::v1::TrainingJobMetadata* metadata); + private: + const ::viam::app::mltraining::v1::TrainingJobMetadata& _internal_metadata() const; + ::viam::app::mltraining::v1::TrainingJobMetadata* _internal_mutable_metadata(); + public: + void unsafe_arena_set_allocated_metadata( + ::viam::app::mltraining::v1::TrainingJobMetadata* metadata); + ::viam::app::mltraining::v1::TrainingJobMetadata* unsafe_arena_release_metadata(); + + // @@protoc_insertion_point(class_scope:viam.app.mltraining.v1.GetTrainingJobResponse) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::viam::app::mltraining::v1::TrainingJobMetadata* metadata_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fmltraining_2fv1_2fml_5ftraining_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class DeleteCompletedTrainingJobRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.mltraining.v1.DeleteCompletedTrainingJobRequest) */ { +class ListTrainingJobsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.mltraining.v1.ListTrainingJobsRequest) */ { public: - inline DeleteCompletedTrainingJobRequest() : DeleteCompletedTrainingJobRequest(nullptr) {} - ~DeleteCompletedTrainingJobRequest() override; - template - explicit PROTOBUF_CONSTEXPR DeleteCompletedTrainingJobRequest(::google::protobuf::internal::ConstantInitialized); + inline ListTrainingJobsRequest() : ListTrainingJobsRequest(nullptr) {} + ~ListTrainingJobsRequest() override; + explicit PROTOBUF_CONSTEXPR ListTrainingJobsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline DeleteCompletedTrainingJobRequest(const DeleteCompletedTrainingJobRequest& from) - : DeleteCompletedTrainingJobRequest(nullptr, from) {} - DeleteCompletedTrainingJobRequest(DeleteCompletedTrainingJobRequest&& from) noexcept - : DeleteCompletedTrainingJobRequest() { + ListTrainingJobsRequest(const ListTrainingJobsRequest& from); + ListTrainingJobsRequest(ListTrainingJobsRequest&& from) noexcept + : ListTrainingJobsRequest() { *this = ::std::move(from); } - inline DeleteCompletedTrainingJobRequest& operator=(const DeleteCompletedTrainingJobRequest& from) { + inline ListTrainingJobsRequest& operator=(const ListTrainingJobsRequest& from) { CopyFrom(from); return *this; } - inline DeleteCompletedTrainingJobRequest& operator=(DeleteCompletedTrainingJobRequest&& from) noexcept { + inline ListTrainingJobsRequest& operator=(ListTrainingJobsRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1659,177 +1364,156 @@ class DeleteCompletedTrainingJobRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const DeleteCompletedTrainingJobRequest& default_instance() { + static const ListTrainingJobsRequest& default_instance() { return *internal_default_instance(); } - static inline const DeleteCompletedTrainingJobRequest* internal_default_instance() { - return reinterpret_cast( - &_DeleteCompletedTrainingJobRequest_default_instance_); + static inline const ListTrainingJobsRequest* internal_default_instance() { + return reinterpret_cast( + &_ListTrainingJobsRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 12; + 7; - friend void swap(DeleteCompletedTrainingJobRequest& a, DeleteCompletedTrainingJobRequest& b) { + friend void swap(ListTrainingJobsRequest& a, ListTrainingJobsRequest& b) { a.Swap(&b); } - inline void Swap(DeleteCompletedTrainingJobRequest* other) { + inline void Swap(ListTrainingJobsRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(DeleteCompletedTrainingJobRequest* other) { + void UnsafeArenaSwap(ListTrainingJobsRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - DeleteCompletedTrainingJobRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const DeleteCompletedTrainingJobRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const DeleteCompletedTrainingJobRequest& from) { - DeleteCompletedTrainingJobRequest::MergeImpl(*this, from); + ListTrainingJobsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ListTrainingJobsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ListTrainingJobsRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(DeleteCompletedTrainingJobRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(ListTrainingJobsRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.mltraining.v1.DeleteCompletedTrainingJobRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.mltraining.v1.ListTrainingJobsRequest"; } protected: - explicit DeleteCompletedTrainingJobRequest(::google::protobuf::Arena* arena); - DeleteCompletedTrainingJobRequest(::google::protobuf::Arena* arena, const DeleteCompletedTrainingJobRequest& from); + explicit ListTrainingJobsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kIdFieldNumber = 1, + kOrganizationIdFieldNumber = 1, + kStatusFieldNumber = 2, }; - // string id = 1 [json_name = "id"]; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - + // string organization_id = 1 [json_name = "organizationId"]; + void clear_organization_id(); + const std::string& organization_id() const; + template + void set_organization_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_organization_id(); + PROTOBUF_NODISCARD std::string* release_organization_id(); + void set_allocated_organization_id(std::string* organization_id); private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); + const std::string& _internal_organization_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id(const std::string& value); + std::string* _internal_mutable_organization_id(); + public: + // .viam.app.mltraining.v1.TrainingStatus status = 2 [json_name = "status"]; + void clear_status(); + ::viam::app::mltraining::v1::TrainingStatus status() const; + void set_status(::viam::app::mltraining::v1::TrainingStatus value); + private: + ::viam::app::mltraining::v1::TrainingStatus _internal_status() const; + void _internal_set_status(::viam::app::mltraining::v1::TrainingStatus value); public: - // @@protoc_insertion_point(class_scope:viam.app.mltraining.v1.DeleteCompletedTrainingJobRequest) + + // @@protoc_insertion_point(class_scope:viam.app.mltraining.v1.ListTrainingJobsRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 67, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr organization_id_; + int status_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fmltraining_2fv1_2fml_5ftraining_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class CancelTrainingJobResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.mltraining.v1.CancelTrainingJobResponse) */ { +class ListTrainingJobsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.mltraining.v1.ListTrainingJobsResponse) */ { public: - inline CancelTrainingJobResponse() : CancelTrainingJobResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR CancelTrainingJobResponse(::google::protobuf::internal::ConstantInitialized); + inline ListTrainingJobsResponse() : ListTrainingJobsResponse(nullptr) {} + ~ListTrainingJobsResponse() override; + explicit PROTOBUF_CONSTEXPR ListTrainingJobsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline CancelTrainingJobResponse(const CancelTrainingJobResponse& from) - : CancelTrainingJobResponse(nullptr, from) {} - CancelTrainingJobResponse(CancelTrainingJobResponse&& from) noexcept - : CancelTrainingJobResponse() { + ListTrainingJobsResponse(const ListTrainingJobsResponse& from); + ListTrainingJobsResponse(ListTrainingJobsResponse&& from) noexcept + : ListTrainingJobsResponse() { *this = ::std::move(from); } - inline CancelTrainingJobResponse& operator=(const CancelTrainingJobResponse& from) { + inline ListTrainingJobsResponse& operator=(const ListTrainingJobsResponse& from) { CopyFrom(from); return *this; } - inline CancelTrainingJobResponse& operator=(CancelTrainingJobResponse&& from) noexcept { + inline ListTrainingJobsResponse& operator=(ListTrainingJobsResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1839,134 +1523,149 @@ class CancelTrainingJobResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CancelTrainingJobResponse& default_instance() { + static const ListTrainingJobsResponse& default_instance() { return *internal_default_instance(); } - static inline const CancelTrainingJobResponse* internal_default_instance() { - return reinterpret_cast( - &_CancelTrainingJobResponse_default_instance_); + static inline const ListTrainingJobsResponse* internal_default_instance() { + return reinterpret_cast( + &_ListTrainingJobsResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 11; + 8; - friend void swap(CancelTrainingJobResponse& a, CancelTrainingJobResponse& b) { + friend void swap(ListTrainingJobsResponse& a, ListTrainingJobsResponse& b) { a.Swap(&b); } - inline void Swap(CancelTrainingJobResponse* other) { + inline void Swap(ListTrainingJobsResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CancelTrainingJobResponse* other) { + void UnsafeArenaSwap(ListTrainingJobsResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CancelTrainingJobResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const CancelTrainingJobResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const CancelTrainingJobResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + ListTrainingJobsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ListTrainingJobsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ListTrainingJobsResponse& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.mltraining.v1.CancelTrainingJobResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ListTrainingJobsResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.mltraining.v1.ListTrainingJobsResponse"; } protected: - explicit CancelTrainingJobResponse(::google::protobuf::Arena* arena); - CancelTrainingJobResponse(::google::protobuf::Arena* arena, const CancelTrainingJobResponse& from); + explicit ListTrainingJobsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.app.mltraining.v1.CancelTrainingJobResponse) + enum : int { + kJobsFieldNumber = 1, + }; + // repeated .viam.app.mltraining.v1.TrainingJobMetadata jobs = 1 [json_name = "jobs"]; + int jobs_size() const; + private: + int _internal_jobs_size() const; + public: + void clear_jobs(); + ::viam::app::mltraining::v1::TrainingJobMetadata* mutable_jobs(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::mltraining::v1::TrainingJobMetadata >* + mutable_jobs(); + private: + const ::viam::app::mltraining::v1::TrainingJobMetadata& _internal_jobs(int index) const; + ::viam::app::mltraining::v1::TrainingJobMetadata* _internal_add_jobs(); + public: + const ::viam::app::mltraining::v1::TrainingJobMetadata& jobs(int index) const; + ::viam::app::mltraining::v1::TrainingJobMetadata* add_jobs(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::mltraining::v1::TrainingJobMetadata >& + jobs() const; + + // @@protoc_insertion_point(class_scope:viam.app.mltraining.v1.ListTrainingJobsResponse) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::mltraining::v1::TrainingJobMetadata > jobs_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fmltraining_2fv1_2fml_5ftraining_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class CancelTrainingJobRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.mltraining.v1.CancelTrainingJobRequest) */ { +class TrainingJobMetadata final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.mltraining.v1.TrainingJobMetadata) */ { public: - inline CancelTrainingJobRequest() : CancelTrainingJobRequest(nullptr) {} - ~CancelTrainingJobRequest() override; - template - explicit PROTOBUF_CONSTEXPR CancelTrainingJobRequest(::google::protobuf::internal::ConstantInitialized); + inline TrainingJobMetadata() : TrainingJobMetadata(nullptr) {} + ~TrainingJobMetadata() override; + explicit PROTOBUF_CONSTEXPR TrainingJobMetadata(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline CancelTrainingJobRequest(const CancelTrainingJobRequest& from) - : CancelTrainingJobRequest(nullptr, from) {} - CancelTrainingJobRequest(CancelTrainingJobRequest&& from) noexcept - : CancelTrainingJobRequest() { + TrainingJobMetadata(const TrainingJobMetadata& from); + TrainingJobMetadata(TrainingJobMetadata&& from) noexcept + : TrainingJobMetadata() { *this = ::std::move(from); } - inline CancelTrainingJobRequest& operator=(const CancelTrainingJobRequest& from) { + inline TrainingJobMetadata& operator=(const TrainingJobMetadata& from) { CopyFrom(from); return *this; } - inline CancelTrainingJobRequest& operator=(CancelTrainingJobRequest&& from) noexcept { + inline TrainingJobMetadata& operator=(TrainingJobMetadata&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1976,178 +1675,427 @@ class CancelTrainingJobRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CancelTrainingJobRequest& default_instance() { + static const TrainingJobMetadata& default_instance() { return *internal_default_instance(); } - static inline const CancelTrainingJobRequest* internal_default_instance() { - return reinterpret_cast( - &_CancelTrainingJobRequest_default_instance_); + static inline const TrainingJobMetadata* internal_default_instance() { + return reinterpret_cast( + &_TrainingJobMetadata_default_instance_); } static constexpr int kIndexInFileMessages = - 10; + 9; - friend void swap(CancelTrainingJobRequest& a, CancelTrainingJobRequest& b) { + friend void swap(TrainingJobMetadata& a, TrainingJobMetadata& b) { a.Swap(&b); } - inline void Swap(CancelTrainingJobRequest* other) { + inline void Swap(TrainingJobMetadata* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CancelTrainingJobRequest* other) { + void UnsafeArenaSwap(TrainingJobMetadata* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CancelTrainingJobRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const CancelTrainingJobRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CancelTrainingJobRequest& from) { - CancelTrainingJobRequest::MergeImpl(*this, from); + TrainingJobMetadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const TrainingJobMetadata& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const TrainingJobMetadata& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(CancelTrainingJobRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(TrainingJobMetadata* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.mltraining.v1.CancelTrainingJobRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.mltraining.v1.TrainingJobMetadata"; } protected: - explicit CancelTrainingJobRequest(::google::protobuf::Arena* arena); - CancelTrainingJobRequest(::google::protobuf::Arena* arena, const CancelTrainingJobRequest& from); + explicit TrainingJobMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kIdFieldNumber = 1, + kTagsFieldNumber = 16, + kSyncedModelIdFieldNumber = 5, + kIdFieldNumber = 7, + kDatasetIdFieldNumber = 11, + kOrganizationIdFieldNumber = 12, + kModelNameFieldNumber = 13, + kModelVersionFieldNumber = 14, + kRegistryItemIdFieldNumber = 19, + kRegistryItemVersionFieldNumber = 20, + kCreatedOnFieldNumber = 3, + kLastModifiedFieldNumber = 4, + kErrorStatusFieldNumber = 8, + kTrainingStartedFieldNumber = 9, + kTrainingEndedFieldNumber = 10, + kStatusFieldNumber = 2, + kModelTypeFieldNumber = 15, + kModelFrameworkFieldNumber = 17, + kIsCustomJobFieldNumber = 18, }; - // string id = 1 [json_name = "id"]; - void clear_id() ; + // repeated string tags = 16 [json_name = "tags", (.tagger.v1.tags) = "bson:\"tags\" json:\"tags\""]; + int tags_size() const; + private: + int _internal_tags_size() const; + public: + void clear_tags(); + const std::string& tags(int index) const; + std::string* mutable_tags(int index); + void set_tags(int index, const std::string& value); + void set_tags(int index, std::string&& value); + void set_tags(int index, const char* value); + void set_tags(int index, const char* value, size_t size); + std::string* add_tags(); + void add_tags(const std::string& value); + void add_tags(std::string&& value); + void add_tags(const char* value); + void add_tags(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& tags() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_tags(); + private: + const std::string& _internal_tags(int index) const; + std::string* _internal_add_tags(); + public: + + // string synced_model_id = 5 [json_name = "syncedModelId", (.tagger.v1.tags) = "bson:\"synced_model_id\" json:\"synced_model_id\""]; + void clear_synced_model_id(); + const std::string& synced_model_id() const; + template + void set_synced_model_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_synced_model_id(); + PROTOBUF_NODISCARD std::string* release_synced_model_id(); + void set_allocated_synced_model_id(std::string* synced_model_id); + private: + const std::string& _internal_synced_model_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_synced_model_id(const std::string& value); + std::string* _internal_mutable_synced_model_id(); + public: + + // string id = 7 [json_name = "id", (.tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""]; + void clear_id(); const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); + template + void set_id(ArgT0&& arg0, ArgT... args); std::string* mutable_id(); PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - + void set_allocated_id(std::string* id); private: const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); std::string* _internal_mutable_id(); - public: - // @@protoc_insertion_point(class_scope:viam.app.mltraining.v1.CancelTrainingJobRequest) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 58, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_app_2fmltraining_2fv1_2fml_5ftraining_2eproto; -};// ------------------------------------------------------------------- + // string dataset_id = 11 [json_name = "datasetId", (.tagger.v1.tags) = "bson:\"dataset_id\" json:\"dataset_id\""]; + void clear_dataset_id(); + const std::string& dataset_id() const; + template + void set_dataset_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_dataset_id(); + PROTOBUF_NODISCARD std::string* release_dataset_id(); + void set_allocated_dataset_id(std::string* dataset_id); + private: + const std::string& _internal_dataset_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_dataset_id(const std::string& value); + std::string* _internal_mutable_dataset_id(); + public: -class TrainingJobLogEntry final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.mltraining.v1.TrainingJobLogEntry) */ { - public: - inline TrainingJobLogEntry() : TrainingJobLogEntry(nullptr) {} - ~TrainingJobLogEntry() override; - template - explicit PROTOBUF_CONSTEXPR TrainingJobLogEntry(::google::protobuf::internal::ConstantInitialized); + // string organization_id = 12 [json_name = "organizationId", (.tagger.v1.tags) = "bson:\"organization_id\" json:\"organization_id\""]; + void clear_organization_id(); + const std::string& organization_id() const; + template + void set_organization_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_organization_id(); + PROTOBUF_NODISCARD std::string* release_organization_id(); + void set_allocated_organization_id(std::string* organization_id); + private: + const std::string& _internal_organization_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id(const std::string& value); + std::string* _internal_mutable_organization_id(); + public: - inline TrainingJobLogEntry(const TrainingJobLogEntry& from) - : TrainingJobLogEntry(nullptr, from) {} - TrainingJobLogEntry(TrainingJobLogEntry&& from) noexcept - : TrainingJobLogEntry() { + // string model_name = 13 [json_name = "modelName", (.tagger.v1.tags) = "bson:\"model_name\" json:\"model_name\""]; + void clear_model_name(); + const std::string& model_name() const; + template + void set_model_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_model_name(); + PROTOBUF_NODISCARD std::string* release_model_name(); + void set_allocated_model_name(std::string* model_name); + private: + const std::string& _internal_model_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_model_name(const std::string& value); + std::string* _internal_mutable_model_name(); + public: + + // string model_version = 14 [json_name = "modelVersion", (.tagger.v1.tags) = "bson:\"model_version\" json:\"model_version\""]; + void clear_model_version(); + const std::string& model_version() const; + template + void set_model_version(ArgT0&& arg0, ArgT... args); + std::string* mutable_model_version(); + PROTOBUF_NODISCARD std::string* release_model_version(); + void set_allocated_model_version(std::string* model_version); + private: + const std::string& _internal_model_version() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_model_version(const std::string& value); + std::string* _internal_mutable_model_version(); + public: + + // string registry_item_id = 19 [json_name = "registryItemId", (.tagger.v1.tags) = "bson:\"registry_item_id\" json:\"registry_item_id\""]; + void clear_registry_item_id(); + const std::string& registry_item_id() const; + template + void set_registry_item_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_registry_item_id(); + PROTOBUF_NODISCARD std::string* release_registry_item_id(); + void set_allocated_registry_item_id(std::string* registry_item_id); + private: + const std::string& _internal_registry_item_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_registry_item_id(const std::string& value); + std::string* _internal_mutable_registry_item_id(); + public: + + // string registry_item_version = 20 [json_name = "registryItemVersion", (.tagger.v1.tags) = "bson:\"registry_item_version\" json:\"registry_item_version\""]; + void clear_registry_item_version(); + const std::string& registry_item_version() const; + template + void set_registry_item_version(ArgT0&& arg0, ArgT... args); + std::string* mutable_registry_item_version(); + PROTOBUF_NODISCARD std::string* release_registry_item_version(); + void set_allocated_registry_item_version(std::string* registry_item_version); + private: + const std::string& _internal_registry_item_version() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_registry_item_version(const std::string& value); + std::string* _internal_mutable_registry_item_version(); + public: + + // .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\" json:\"created_on\""]; + bool has_created_on() const; + private: + bool _internal_has_created_on() const; + public: + void clear_created_on(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& created_on() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_created_on(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_created_on(); + void set_allocated_created_on(::PROTOBUF_NAMESPACE_ID::Timestamp* created_on); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_created_on() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_created_on(); + public: + void unsafe_arena_set_allocated_created_on( + ::PROTOBUF_NAMESPACE_ID::Timestamp* created_on); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_created_on(); + + // .google.protobuf.Timestamp last_modified = 4 [json_name = "lastModified", (.tagger.v1.tags) = "bson:\"last_modified\" json:\"last_modified\""]; + bool has_last_modified() const; + private: + bool _internal_has_last_modified() const; + public: + void clear_last_modified(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& last_modified() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_last_modified(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_last_modified(); + void set_allocated_last_modified(::PROTOBUF_NAMESPACE_ID::Timestamp* last_modified); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_last_modified() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_last_modified(); + public: + void unsafe_arena_set_allocated_last_modified( + ::PROTOBUF_NAMESPACE_ID::Timestamp* last_modified); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_last_modified(); + + // .google.rpc.Status error_status = 8 [json_name = "errorStatus", (.tagger.v1.tags) = "bson:\"error_status\" json:\"error_status\""]; + bool has_error_status() const; + private: + bool _internal_has_error_status() const; + public: + void clear_error_status(); + const ::google::rpc::Status& error_status() const; + PROTOBUF_NODISCARD ::google::rpc::Status* release_error_status(); + ::google::rpc::Status* mutable_error_status(); + void set_allocated_error_status(::google::rpc::Status* error_status); + private: + const ::google::rpc::Status& _internal_error_status() const; + ::google::rpc::Status* _internal_mutable_error_status(); + public: + void unsafe_arena_set_allocated_error_status( + ::google::rpc::Status* error_status); + ::google::rpc::Status* unsafe_arena_release_error_status(); + + // .google.protobuf.Timestamp training_started = 9 [json_name = "trainingStarted", (.tagger.v1.tags) = "bson:\"training_started\" json:\"training_started\""]; + bool has_training_started() const; + private: + bool _internal_has_training_started() const; + public: + void clear_training_started(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& training_started() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_training_started(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_training_started(); + void set_allocated_training_started(::PROTOBUF_NAMESPACE_ID::Timestamp* training_started); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_training_started() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_training_started(); + public: + void unsafe_arena_set_allocated_training_started( + ::PROTOBUF_NAMESPACE_ID::Timestamp* training_started); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_training_started(); + + // .google.protobuf.Timestamp training_ended = 10 [json_name = "trainingEnded", (.tagger.v1.tags) = "bson:\"training_ended\" json:\"training_ended\""]; + bool has_training_ended() const; + private: + bool _internal_has_training_ended() const; + public: + void clear_training_ended(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& training_ended() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_training_ended(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_training_ended(); + void set_allocated_training_ended(::PROTOBUF_NAMESPACE_ID::Timestamp* training_ended); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_training_ended() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_training_ended(); + public: + void unsafe_arena_set_allocated_training_ended( + ::PROTOBUF_NAMESPACE_ID::Timestamp* training_ended); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_training_ended(); + + // .viam.app.mltraining.v1.TrainingStatus status = 2 [json_name = "status", (.tagger.v1.tags) = "bson:\"status\" json:\"status\""]; + void clear_status(); + ::viam::app::mltraining::v1::TrainingStatus status() const; + void set_status(::viam::app::mltraining::v1::TrainingStatus value); + private: + ::viam::app::mltraining::v1::TrainingStatus _internal_status() const; + void _internal_set_status(::viam::app::mltraining::v1::TrainingStatus value); + public: + + // .viam.app.mltraining.v1.ModelType model_type = 15 [json_name = "modelType", (.tagger.v1.tags) = "bson:\"model_type\" json:\"model_type\""]; + void clear_model_type(); + ::viam::app::mltraining::v1::ModelType model_type() const; + void set_model_type(::viam::app::mltraining::v1::ModelType value); + private: + ::viam::app::mltraining::v1::ModelType _internal_model_type() const; + void _internal_set_model_type(::viam::app::mltraining::v1::ModelType value); + public: + + // .viam.app.mltraining.v1.ModelFramework model_framework = 17 [json_name = "modelFramework", (.tagger.v1.tags) = "bson:\"model_framework\" json:\"model_framework\""]; + void clear_model_framework(); + ::viam::app::mltraining::v1::ModelFramework model_framework() const; + void set_model_framework(::viam::app::mltraining::v1::ModelFramework value); + private: + ::viam::app::mltraining::v1::ModelFramework _internal_model_framework() const; + void _internal_set_model_framework(::viam::app::mltraining::v1::ModelFramework value); + public: + + // bool is_custom_job = 18 [json_name = "isCustomJob", (.tagger.v1.tags) = "bson:\"is_custom_job\" json:\"is_custom_job\""]; + void clear_is_custom_job(); + bool is_custom_job() const; + void set_is_custom_job(bool value); + private: + bool _internal_is_custom_job() const; + void _internal_set_is_custom_job(bool value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.mltraining.v1.TrainingJobMetadata) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField tags_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr synced_model_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr dataset_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr organization_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr model_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr model_version_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr registry_item_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr registry_item_version_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* created_on_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* last_modified_; + ::google::rpc::Status* error_status_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* training_started_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* training_ended_; + int status_; + int model_type_; + int model_framework_; + bool is_custom_job_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_app_2fmltraining_2fv1_2fml_5ftraining_2eproto; +}; +// ------------------------------------------------------------------- + +class CancelTrainingJobRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.mltraining.v1.CancelTrainingJobRequest) */ { + public: + inline CancelTrainingJobRequest() : CancelTrainingJobRequest(nullptr) {} + ~CancelTrainingJobRequest() override; + explicit PROTOBUF_CONSTEXPR CancelTrainingJobRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + CancelTrainingJobRequest(const CancelTrainingJobRequest& from); + CancelTrainingJobRequest(CancelTrainingJobRequest&& from) noexcept + : CancelTrainingJobRequest() { *this = ::std::move(from); } - inline TrainingJobLogEntry& operator=(const TrainingJobLogEntry& from) { + inline CancelTrainingJobRequest& operator=(const CancelTrainingJobRequest& from) { CopyFrom(from); return *this; } - inline TrainingJobLogEntry& operator=(TrainingJobLogEntry&& from) noexcept { + inline CancelTrainingJobRequest& operator=(CancelTrainingJobRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2157,214 +2105,144 @@ class TrainingJobLogEntry final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const TrainingJobLogEntry& default_instance() { + static const CancelTrainingJobRequest& default_instance() { return *internal_default_instance(); } - static inline const TrainingJobLogEntry* internal_default_instance() { - return reinterpret_cast( - &_TrainingJobLogEntry_default_instance_); + static inline const CancelTrainingJobRequest* internal_default_instance() { + return reinterpret_cast( + &_CancelTrainingJobRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 14; + 10; - friend void swap(TrainingJobLogEntry& a, TrainingJobLogEntry& b) { + friend void swap(CancelTrainingJobRequest& a, CancelTrainingJobRequest& b) { a.Swap(&b); } - inline void Swap(TrainingJobLogEntry* other) { + inline void Swap(CancelTrainingJobRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(TrainingJobLogEntry* other) { + void UnsafeArenaSwap(CancelTrainingJobRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - TrainingJobLogEntry* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const TrainingJobLogEntry& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const TrainingJobLogEntry& from) { - TrainingJobLogEntry::MergeImpl(*this, from); + CancelTrainingJobRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CancelTrainingJobRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CancelTrainingJobRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(TrainingJobLogEntry* other); + void SetCachedSize(int size) const final; + void InternalSwap(CancelTrainingJobRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.mltraining.v1.TrainingJobLogEntry"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.mltraining.v1.CancelTrainingJobRequest"; } protected: - explicit TrainingJobLogEntry(::google::protobuf::Arena* arena); - TrainingJobLogEntry(::google::protobuf::Arena* arena, const TrainingJobLogEntry& from); + explicit CancelTrainingJobRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kLevelFieldNumber = 1, - kMessageFieldNumber = 3, - kTimeFieldNumber = 2, + kIdFieldNumber = 1, }; - // string level = 1 [json_name = "level"]; - void clear_level() ; - const std::string& level() const; - template - void set_level(Arg_&& arg, Args_... args); - std::string* mutable_level(); - PROTOBUF_NODISCARD std::string* release_level(); - void set_allocated_level(std::string* value); - - private: - const std::string& _internal_level() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_level( - const std::string& value); - std::string* _internal_mutable_level(); - - public: - // string message = 3 [json_name = "message"]; - void clear_message() ; - const std::string& message() const; - template - void set_message(Arg_&& arg, Args_... args); - std::string* mutable_message(); - PROTOBUF_NODISCARD std::string* release_message(); - void set_allocated_message(std::string* value); - + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); private: - const std::string& _internal_message() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_message( - const std::string& value); - std::string* _internal_mutable_message(); - + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); public: - // .google.protobuf.Timestamp time = 2 [json_name = "time"]; - bool has_time() const; - void clear_time() ; - const ::google::protobuf::Timestamp& time() const; - PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_time(); - ::google::protobuf::Timestamp* mutable_time(); - void set_allocated_time(::google::protobuf::Timestamp* value); - void unsafe_arena_set_allocated_time(::google::protobuf::Timestamp* value); - ::google::protobuf::Timestamp* unsafe_arena_release_time(); - private: - const ::google::protobuf::Timestamp& _internal_time() const; - ::google::protobuf::Timestamp* _internal_mutable_time(); - - public: - // @@protoc_insertion_point(class_scope:viam.app.mltraining.v1.TrainingJobLogEntry) + // @@protoc_insertion_point(class_scope:viam.app.mltraining.v1.CancelTrainingJobRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 1, - 63, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr level_; - ::google::protobuf::internal::ArenaStringPtr message_; - ::google::protobuf::Timestamp* time_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fmltraining_2fv1_2fml_5ftraining_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SubmitCustomTrainingJobRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.mltraining.v1.SubmitCustomTrainingJobRequest) */ { +class CancelTrainingJobResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.mltraining.v1.CancelTrainingJobResponse) */ { public: - inline SubmitCustomTrainingJobRequest() : SubmitCustomTrainingJobRequest(nullptr) {} - ~SubmitCustomTrainingJobRequest() override; - template - explicit PROTOBUF_CONSTEXPR SubmitCustomTrainingJobRequest(::google::protobuf::internal::ConstantInitialized); + inline CancelTrainingJobResponse() : CancelTrainingJobResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR CancelTrainingJobResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline SubmitCustomTrainingJobRequest(const SubmitCustomTrainingJobRequest& from) - : SubmitCustomTrainingJobRequest(nullptr, from) {} - SubmitCustomTrainingJobRequest(SubmitCustomTrainingJobRequest&& from) noexcept - : SubmitCustomTrainingJobRequest() { + CancelTrainingJobResponse(const CancelTrainingJobResponse& from); + CancelTrainingJobResponse(CancelTrainingJobResponse&& from) noexcept + : CancelTrainingJobResponse() { *this = ::std::move(from); } - inline SubmitCustomTrainingJobRequest& operator=(const SubmitCustomTrainingJobRequest& from) { + inline CancelTrainingJobResponse& operator=(const CancelTrainingJobResponse& from) { CopyFrom(from); return *this; } - inline SubmitCustomTrainingJobRequest& operator=(SubmitCustomTrainingJobRequest&& from) noexcept { + inline CancelTrainingJobResponse& operator=(CancelTrainingJobResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2374,289 +2252,114 @@ class SubmitCustomTrainingJobRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SubmitCustomTrainingJobRequest& default_instance() { + static const CancelTrainingJobResponse& default_instance() { return *internal_default_instance(); } - static inline const SubmitCustomTrainingJobRequest* internal_default_instance() { - return reinterpret_cast( - &_SubmitCustomTrainingJobRequest_default_instance_); + static inline const CancelTrainingJobResponse* internal_default_instance() { + return reinterpret_cast( + &_CancelTrainingJobResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 3; + 11; - friend void swap(SubmitCustomTrainingJobRequest& a, SubmitCustomTrainingJobRequest& b) { + friend void swap(CancelTrainingJobResponse& a, CancelTrainingJobResponse& b) { a.Swap(&b); } - inline void Swap(SubmitCustomTrainingJobRequest* other) { + inline void Swap(CancelTrainingJobResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SubmitCustomTrainingJobRequest* other) { + void UnsafeArenaSwap(CancelTrainingJobResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SubmitCustomTrainingJobRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + CancelTrainingJobResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SubmitCustomTrainingJobRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SubmitCustomTrainingJobRequest& from) { - SubmitCustomTrainingJobRequest::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const CancelTrainingJobResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const CancelTrainingJobResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SubmitCustomTrainingJobRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.mltraining.v1.SubmitCustomTrainingJobRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.mltraining.v1.CancelTrainingJobResponse"; } protected: - explicit SubmitCustomTrainingJobRequest(::google::protobuf::Arena* arena); - SubmitCustomTrainingJobRequest(::google::protobuf::Arena* arena, const SubmitCustomTrainingJobRequest& from); + explicit CancelTrainingJobResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- - // accessors ------------------------------------------------------- - enum : int { - kArgumentsFieldNumber = 7, - kDatasetIdFieldNumber = 1, - kRegistryItemIdFieldNumber = 2, - kOrganizationIdFieldNumber = 3, - kModelNameFieldNumber = 4, - kModelVersionFieldNumber = 5, - kRegistryItemVersionFieldNumber = 6, - }; - // map arguments = 7 [json_name = "arguments"]; - int arguments_size() const; - private: - int _internal_arguments_size() const; - - public: - void clear_arguments() ; - const ::google::protobuf::Map& arguments() const; - ::google::protobuf::Map* mutable_arguments(); - - private: - const ::google::protobuf::Map& _internal_arguments() const; - ::google::protobuf::Map* _internal_mutable_arguments(); - - public: - // string dataset_id = 1 [json_name = "datasetId", (.tagger.v1.tags) = "bson:\"dataset_id\" json:\"dataset_id\""]; - void clear_dataset_id() ; - const std::string& dataset_id() const; - template - void set_dataset_id(Arg_&& arg, Args_... args); - std::string* mutable_dataset_id(); - PROTOBUF_NODISCARD std::string* release_dataset_id(); - void set_allocated_dataset_id(std::string* value); - - private: - const std::string& _internal_dataset_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_dataset_id( - const std::string& value); - std::string* _internal_mutable_dataset_id(); - - public: - // string registry_item_id = 2 [json_name = "registryItemId", (.tagger.v1.tags) = "bson:\"registry_item_id\" json:\"registry_item_id\""]; - void clear_registry_item_id() ; - const std::string& registry_item_id() const; - template - void set_registry_item_id(Arg_&& arg, Args_... args); - std::string* mutable_registry_item_id(); - PROTOBUF_NODISCARD std::string* release_registry_item_id(); - void set_allocated_registry_item_id(std::string* value); - - private: - const std::string& _internal_registry_item_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_registry_item_id( - const std::string& value); - std::string* _internal_mutable_registry_item_id(); - - public: - // string organization_id = 3 [json_name = "organizationId", (.tagger.v1.tags) = "bson:\"organization_id\" json:\"organization_id\""]; - void clear_organization_id() ; - const std::string& organization_id() const; - template - void set_organization_id(Arg_&& arg, Args_... args); - std::string* mutable_organization_id(); - PROTOBUF_NODISCARD std::string* release_organization_id(); - void set_allocated_organization_id(std::string* value); - - private: - const std::string& _internal_organization_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id( - const std::string& value); - std::string* _internal_mutable_organization_id(); - - public: - // string model_name = 4 [json_name = "modelName", (.tagger.v1.tags) = "bson:\"model_name\" json:\"model_name\""]; - void clear_model_name() ; - const std::string& model_name() const; - template - void set_model_name(Arg_&& arg, Args_... args); - std::string* mutable_model_name(); - PROTOBUF_NODISCARD std::string* release_model_name(); - void set_allocated_model_name(std::string* value); - - private: - const std::string& _internal_model_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_model_name( - const std::string& value); - std::string* _internal_mutable_model_name(); - - public: - // string model_version = 5 [json_name = "modelVersion", (.tagger.v1.tags) = "bson:\"model_version\" json:\"model_version\""]; - void clear_model_version() ; - const std::string& model_version() const; - template - void set_model_version(Arg_&& arg, Args_... args); - std::string* mutable_model_version(); - PROTOBUF_NODISCARD std::string* release_model_version(); - void set_allocated_model_version(std::string* value); - - private: - const std::string& _internal_model_version() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_model_version( - const std::string& value); - std::string* _internal_mutable_model_version(); - - public: - // string registry_item_version = 6 [json_name = "registryItemVersion", (.tagger.v1.tags) = "bson:\"registry_item_version\" json:\"registry_item_version\""]; - void clear_registry_item_version() ; - const std::string& registry_item_version() const; - template - void set_registry_item_version(Arg_&& arg, Args_... args); - std::string* mutable_registry_item_version(); - PROTOBUF_NODISCARD std::string* release_registry_item_version(); - void set_allocated_registry_item_version(std::string* value); - - private: - const std::string& _internal_registry_item_version() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_registry_item_version( - const std::string& value); - std::string* _internal_mutable_registry_item_version(); - - public: - // @@protoc_insertion_point(class_scope:viam.app.mltraining.v1.SubmitCustomTrainingJobRequest) + // @@protoc_insertion_point(class_scope:viam.app.mltraining.v1.CancelTrainingJobResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 7, 1, - 156, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::MapField - arguments_; - ::google::protobuf::internal::ArenaStringPtr dataset_id_; - ::google::protobuf::internal::ArenaStringPtr registry_item_id_; - ::google::protobuf::internal::ArenaStringPtr organization_id_; - ::google::protobuf::internal::ArenaStringPtr model_name_; - ::google::protobuf::internal::ArenaStringPtr model_version_; - ::google::protobuf::internal::ArenaStringPtr registry_item_version_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_app_2fmltraining_2fv1_2fml_5ftraining_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class TrainingJobMetadata final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.mltraining.v1.TrainingJobMetadata) */ { +class DeleteCompletedTrainingJobRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.mltraining.v1.DeleteCompletedTrainingJobRequest) */ { public: - inline TrainingJobMetadata() : TrainingJobMetadata(nullptr) {} - ~TrainingJobMetadata() override; - template - explicit PROTOBUF_CONSTEXPR TrainingJobMetadata(::google::protobuf::internal::ConstantInitialized); + inline DeleteCompletedTrainingJobRequest() : DeleteCompletedTrainingJobRequest(nullptr) {} + ~DeleteCompletedTrainingJobRequest() override; + explicit PROTOBUF_CONSTEXPR DeleteCompletedTrainingJobRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline TrainingJobMetadata(const TrainingJobMetadata& from) - : TrainingJobMetadata(nullptr, from) {} - TrainingJobMetadata(TrainingJobMetadata&& from) noexcept - : TrainingJobMetadata() { + DeleteCompletedTrainingJobRequest(const DeleteCompletedTrainingJobRequest& from); + DeleteCompletedTrainingJobRequest(DeleteCompletedTrainingJobRequest&& from) noexcept + : DeleteCompletedTrainingJobRequest() { *this = ::std::move(from); } - inline TrainingJobMetadata& operator=(const TrainingJobMetadata& from) { + inline DeleteCompletedTrainingJobRequest& operator=(const DeleteCompletedTrainingJobRequest& from) { CopyFrom(from); return *this; } - inline TrainingJobMetadata& operator=(TrainingJobMetadata&& from) noexcept { + inline DeleteCompletedTrainingJobRequest& operator=(DeleteCompletedTrainingJobRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2666,468 +2369,261 @@ class TrainingJobMetadata final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const TrainingJobMetadata& default_instance() { + static const DeleteCompletedTrainingJobRequest& default_instance() { return *internal_default_instance(); } - static inline const TrainingJobMetadata* internal_default_instance() { - return reinterpret_cast( - &_TrainingJobMetadata_default_instance_); + static inline const DeleteCompletedTrainingJobRequest* internal_default_instance() { + return reinterpret_cast( + &_DeleteCompletedTrainingJobRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 9; + 12; - friend void swap(TrainingJobMetadata& a, TrainingJobMetadata& b) { + friend void swap(DeleteCompletedTrainingJobRequest& a, DeleteCompletedTrainingJobRequest& b) { a.Swap(&b); } - inline void Swap(TrainingJobMetadata* other) { + inline void Swap(DeleteCompletedTrainingJobRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(TrainingJobMetadata* other) { + void UnsafeArenaSwap(DeleteCompletedTrainingJobRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - TrainingJobMetadata* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const TrainingJobMetadata& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const TrainingJobMetadata& from) { - TrainingJobMetadata::MergeImpl(*this, from); + DeleteCompletedTrainingJobRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DeleteCompletedTrainingJobRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const DeleteCompletedTrainingJobRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(TrainingJobMetadata* other); + void SetCachedSize(int size) const final; + void InternalSwap(DeleteCompletedTrainingJobRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.mltraining.v1.TrainingJobMetadata"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.mltraining.v1.DeleteCompletedTrainingJobRequest"; } protected: - explicit TrainingJobMetadata(::google::protobuf::Arena* arena); - TrainingJobMetadata(::google::protobuf::Arena* arena, const TrainingJobMetadata& from); + explicit DeleteCompletedTrainingJobRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kTagsFieldNumber = 16, - kSyncedModelIdFieldNumber = 5, - kIdFieldNumber = 7, - kDatasetIdFieldNumber = 11, - kOrganizationIdFieldNumber = 12, - kModelNameFieldNumber = 13, - kModelVersionFieldNumber = 14, - kRegistryItemIdFieldNumber = 19, - kRegistryItemVersionFieldNumber = 20, - kCreatedOnFieldNumber = 3, - kLastModifiedFieldNumber = 4, - kErrorStatusFieldNumber = 8, - kTrainingStartedFieldNumber = 9, - kTrainingEndedFieldNumber = 10, - kStatusFieldNumber = 2, - kModelTypeFieldNumber = 15, - kModelFrameworkFieldNumber = 17, - kIsCustomJobFieldNumber = 18, + kIdFieldNumber = 1, }; - // repeated string tags = 16 [json_name = "tags", (.tagger.v1.tags) = "bson:\"tags\" json:\"tags\""]; - int tags_size() const; - private: - int _internal_tags_size() const; - - public: - void clear_tags() ; - const std::string& tags(int index) const; - std::string* mutable_tags(int index); - void set_tags(int index, const std::string& value); - void set_tags(int index, std::string&& value); - void set_tags(int index, const char* value); - void set_tags(int index, const char* value, std::size_t size); - void set_tags(int index, absl::string_view value); - std::string* add_tags(); - void add_tags(const std::string& value); - void add_tags(std::string&& value); - void add_tags(const char* value); - void add_tags(const char* value, std::size_t size); - void add_tags(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& tags() const; - ::google::protobuf::RepeatedPtrField* mutable_tags(); - - private: - const ::google::protobuf::RepeatedPtrField& _internal_tags() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_tags(); - - public: - // string synced_model_id = 5 [json_name = "syncedModelId", (.tagger.v1.tags) = "bson:\"synced_model_id\" json:\"synced_model_id\""]; - void clear_synced_model_id() ; - const std::string& synced_model_id() const; - template - void set_synced_model_id(Arg_&& arg, Args_... args); - std::string* mutable_synced_model_id(); - PROTOBUF_NODISCARD std::string* release_synced_model_id(); - void set_allocated_synced_model_id(std::string* value); - - private: - const std::string& _internal_synced_model_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_synced_model_id( - const std::string& value); - std::string* _internal_mutable_synced_model_id(); - - public: - // string id = 7 [json_name = "id", (.tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""]; - void clear_id() ; + // string id = 1 [json_name = "id"]; + void clear_id(); const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); + template + void set_id(ArgT0&& arg0, ArgT... args); std::string* mutable_id(); PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - + void set_allocated_id(std::string* id); private: const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); std::string* _internal_mutable_id(); - - public: - // string dataset_id = 11 [json_name = "datasetId", (.tagger.v1.tags) = "bson:\"dataset_id\" json:\"dataset_id\""]; - void clear_dataset_id() ; - const std::string& dataset_id() const; - template - void set_dataset_id(Arg_&& arg, Args_... args); - std::string* mutable_dataset_id(); - PROTOBUF_NODISCARD std::string* release_dataset_id(); - void set_allocated_dataset_id(std::string* value); - - private: - const std::string& _internal_dataset_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_dataset_id( - const std::string& value); - std::string* _internal_mutable_dataset_id(); - - public: - // string organization_id = 12 [json_name = "organizationId", (.tagger.v1.tags) = "bson:\"organization_id\" json:\"organization_id\""]; - void clear_organization_id() ; - const std::string& organization_id() const; - template - void set_organization_id(Arg_&& arg, Args_... args); - std::string* mutable_organization_id(); - PROTOBUF_NODISCARD std::string* release_organization_id(); - void set_allocated_organization_id(std::string* value); - - private: - const std::string& _internal_organization_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id( - const std::string& value); - std::string* _internal_mutable_organization_id(); - - public: - // string model_name = 13 [json_name = "modelName", (.tagger.v1.tags) = "bson:\"model_name\" json:\"model_name\""]; - void clear_model_name() ; - const std::string& model_name() const; - template - void set_model_name(Arg_&& arg, Args_... args); - std::string* mutable_model_name(); - PROTOBUF_NODISCARD std::string* release_model_name(); - void set_allocated_model_name(std::string* value); - - private: - const std::string& _internal_model_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_model_name( - const std::string& value); - std::string* _internal_mutable_model_name(); - public: - // string model_version = 14 [json_name = "modelVersion", (.tagger.v1.tags) = "bson:\"model_version\" json:\"model_version\""]; - void clear_model_version() ; - const std::string& model_version() const; - template - void set_model_version(Arg_&& arg, Args_... args); - std::string* mutable_model_version(); - PROTOBUF_NODISCARD std::string* release_model_version(); - void set_allocated_model_version(std::string* value); - - private: - const std::string& _internal_model_version() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_model_version( - const std::string& value); - std::string* _internal_mutable_model_version(); - public: - // string registry_item_id = 19 [json_name = "registryItemId", (.tagger.v1.tags) = "bson:\"registry_item_id\" json:\"registry_item_id\""]; - void clear_registry_item_id() ; - const std::string& registry_item_id() const; - template - void set_registry_item_id(Arg_&& arg, Args_... args); - std::string* mutable_registry_item_id(); - PROTOBUF_NODISCARD std::string* release_registry_item_id(); - void set_allocated_registry_item_id(std::string* value); - - private: - const std::string& _internal_registry_item_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_registry_item_id( - const std::string& value); - std::string* _internal_mutable_registry_item_id(); - - public: - // string registry_item_version = 20 [json_name = "registryItemVersion", (.tagger.v1.tags) = "bson:\"registry_item_version\" json:\"registry_item_version\""]; - void clear_registry_item_version() ; - const std::string& registry_item_version() const; - template - void set_registry_item_version(Arg_&& arg, Args_... args); - std::string* mutable_registry_item_version(); - PROTOBUF_NODISCARD std::string* release_registry_item_version(); - void set_allocated_registry_item_version(std::string* value); - - private: - const std::string& _internal_registry_item_version() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_registry_item_version( - const std::string& value); - std::string* _internal_mutable_registry_item_version(); - - public: - // .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\" json:\"created_on\""]; - bool has_created_on() const; - void clear_created_on() ; - const ::google::protobuf::Timestamp& created_on() const; - PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_created_on(); - ::google::protobuf::Timestamp* mutable_created_on(); - void set_allocated_created_on(::google::protobuf::Timestamp* value); - void unsafe_arena_set_allocated_created_on(::google::protobuf::Timestamp* value); - ::google::protobuf::Timestamp* unsafe_arena_release_created_on(); - - private: - const ::google::protobuf::Timestamp& _internal_created_on() const; - ::google::protobuf::Timestamp* _internal_mutable_created_on(); - - public: - // .google.protobuf.Timestamp last_modified = 4 [json_name = "lastModified", (.tagger.v1.tags) = "bson:\"last_modified\" json:\"last_modified\""]; - bool has_last_modified() const; - void clear_last_modified() ; - const ::google::protobuf::Timestamp& last_modified() const; - PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_last_modified(); - ::google::protobuf::Timestamp* mutable_last_modified(); - void set_allocated_last_modified(::google::protobuf::Timestamp* value); - void unsafe_arena_set_allocated_last_modified(::google::protobuf::Timestamp* value); - ::google::protobuf::Timestamp* unsafe_arena_release_last_modified(); + // @@protoc_insertion_point(class_scope:viam.app.mltraining.v1.DeleteCompletedTrainingJobRequest) + private: + class _Internal; - private: - const ::google::protobuf::Timestamp& _internal_last_modified() const; - ::google::protobuf::Timestamp* _internal_mutable_last_modified(); + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_app_2fmltraining_2fv1_2fml_5ftraining_2eproto; +}; +// ------------------------------------------------------------------- - public: - // .google.rpc.Status error_status = 8 [json_name = "errorStatus", (.tagger.v1.tags) = "bson:\"error_status\" json:\"error_status\""]; - bool has_error_status() const; - void clear_error_status() ; - const ::google::rpc::Status& error_status() const; - PROTOBUF_NODISCARD ::google::rpc::Status* release_error_status(); - ::google::rpc::Status* mutable_error_status(); - void set_allocated_error_status(::google::rpc::Status* value); - void unsafe_arena_set_allocated_error_status(::google::rpc::Status* value); - ::google::rpc::Status* unsafe_arena_release_error_status(); +class DeleteCompletedTrainingJobResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.mltraining.v1.DeleteCompletedTrainingJobResponse) */ { + public: + inline DeleteCompletedTrainingJobResponse() : DeleteCompletedTrainingJobResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR DeleteCompletedTrainingJobResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - private: - const ::google::rpc::Status& _internal_error_status() const; - ::google::rpc::Status* _internal_mutable_error_status(); + DeleteCompletedTrainingJobResponse(const DeleteCompletedTrainingJobResponse& from); + DeleteCompletedTrainingJobResponse(DeleteCompletedTrainingJobResponse&& from) noexcept + : DeleteCompletedTrainingJobResponse() { + *this = ::std::move(from); + } - public: - // .google.protobuf.Timestamp training_started = 9 [json_name = "trainingStarted", (.tagger.v1.tags) = "bson:\"training_started\" json:\"training_started\""]; - bool has_training_started() const; - void clear_training_started() ; - const ::google::protobuf::Timestamp& training_started() const; - PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_training_started(); - ::google::protobuf::Timestamp* mutable_training_started(); - void set_allocated_training_started(::google::protobuf::Timestamp* value); - void unsafe_arena_set_allocated_training_started(::google::protobuf::Timestamp* value); - ::google::protobuf::Timestamp* unsafe_arena_release_training_started(); + inline DeleteCompletedTrainingJobResponse& operator=(const DeleteCompletedTrainingJobResponse& from) { + CopyFrom(from); + return *this; + } + inline DeleteCompletedTrainingJobResponse& operator=(DeleteCompletedTrainingJobResponse&& 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; + } - private: - const ::google::protobuf::Timestamp& _internal_training_started() const; - ::google::protobuf::Timestamp* _internal_mutable_training_started(); + 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 DeleteCompletedTrainingJobResponse& default_instance() { + return *internal_default_instance(); + } + static inline const DeleteCompletedTrainingJobResponse* internal_default_instance() { + return reinterpret_cast( + &_DeleteCompletedTrainingJobResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 13; - public: - // .google.protobuf.Timestamp training_ended = 10 [json_name = "trainingEnded", (.tagger.v1.tags) = "bson:\"training_ended\" json:\"training_ended\""]; - bool has_training_ended() const; - void clear_training_ended() ; - const ::google::protobuf::Timestamp& training_ended() const; - PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_training_ended(); - ::google::protobuf::Timestamp* mutable_training_ended(); - void set_allocated_training_ended(::google::protobuf::Timestamp* value); - void unsafe_arena_set_allocated_training_ended(::google::protobuf::Timestamp* value); - ::google::protobuf::Timestamp* unsafe_arena_release_training_ended(); + friend void swap(DeleteCompletedTrainingJobResponse& a, DeleteCompletedTrainingJobResponse& b) { + a.Swap(&b); + } + inline void Swap(DeleteCompletedTrainingJobResponse* 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(DeleteCompletedTrainingJobResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } - private: - const ::google::protobuf::Timestamp& _internal_training_ended() const; - ::google::protobuf::Timestamp* _internal_mutable_training_ended(); + // implements Message ---------------------------------------------- + DeleteCompletedTrainingJobResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const DeleteCompletedTrainingJobResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const DeleteCompletedTrainingJobResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); + } public: - // .viam.app.mltraining.v1.TrainingStatus status = 2 [json_name = "status", (.tagger.v1.tags) = "bson:\"status\" json:\"status\""]; - void clear_status() ; - ::viam::app::mltraining::v1::TrainingStatus status() const; - void set_status(::viam::app::mltraining::v1::TrainingStatus value); private: - ::viam::app::mltraining::v1::TrainingStatus _internal_status() const; - void _internal_set_status(::viam::app::mltraining::v1::TrainingStatus value); - + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.mltraining.v1.DeleteCompletedTrainingJobResponse"; + } + protected: + explicit DeleteCompletedTrainingJobResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - // .viam.app.mltraining.v1.ModelType model_type = 15 [json_name = "modelType", (.tagger.v1.tags) = "bson:\"model_type\" json:\"model_type\""]; - void clear_model_type() ; - ::viam::app::mltraining::v1::ModelType model_type() const; - void set_model_type(::viam::app::mltraining::v1::ModelType value); - - private: - ::viam::app::mltraining::v1::ModelType _internal_model_type() const; - void _internal_set_model_type(::viam::app::mltraining::v1::ModelType value); - public: - // .viam.app.mltraining.v1.ModelFramework model_framework = 17 [json_name = "modelFramework", (.tagger.v1.tags) = "bson:\"model_framework\" json:\"model_framework\""]; - void clear_model_framework() ; - ::viam::app::mltraining::v1::ModelFramework model_framework() const; - void set_model_framework(::viam::app::mltraining::v1::ModelFramework value); + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - private: - ::viam::app::mltraining::v1::ModelFramework _internal_model_framework() const; - void _internal_set_model_framework(::viam::app::mltraining::v1::ModelFramework value); + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - public: - // bool is_custom_job = 18 [json_name = "isCustomJob", (.tagger.v1.tags) = "bson:\"is_custom_job\" json:\"is_custom_job\""]; - void clear_is_custom_job() ; - bool is_custom_job() const; - void set_is_custom_job(bool value); + // nested types ---------------------------------------------------- - private: - bool _internal_is_custom_job() const; - void _internal_set_is_custom_job(bool value); + // accessors ------------------------------------------------------- - public: - // @@protoc_insertion_point(class_scope:viam.app.mltraining.v1.TrainingJobMetadata) + // @@protoc_insertion_point(class_scope:viam.app.mltraining.v1.DeleteCompletedTrainingJobResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 5, 18, 5, - 173, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField tags_; - ::google::protobuf::internal::ArenaStringPtr synced_model_id_; - ::google::protobuf::internal::ArenaStringPtr id_; - ::google::protobuf::internal::ArenaStringPtr dataset_id_; - ::google::protobuf::internal::ArenaStringPtr organization_id_; - ::google::protobuf::internal::ArenaStringPtr model_name_; - ::google::protobuf::internal::ArenaStringPtr model_version_; - ::google::protobuf::internal::ArenaStringPtr registry_item_id_; - ::google::protobuf::internal::ArenaStringPtr registry_item_version_; - ::google::protobuf::Timestamp* created_on_; - ::google::protobuf::Timestamp* last_modified_; - ::google::rpc::Status* error_status_; - ::google::protobuf::Timestamp* training_started_; - ::google::protobuf::Timestamp* training_ended_; - int status_; - int model_type_; - int model_framework_; - bool is_custom_job_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_app_2fmltraining_2fv1_2fml_5ftraining_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetTrainingJobLogsResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.mltraining.v1.GetTrainingJobLogsResponse) */ { +class TrainingJobLogEntry final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.mltraining.v1.TrainingJobLogEntry) */ { public: - inline GetTrainingJobLogsResponse() : GetTrainingJobLogsResponse(nullptr) {} - ~GetTrainingJobLogsResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetTrainingJobLogsResponse(::google::protobuf::internal::ConstantInitialized); + inline TrainingJobLogEntry() : TrainingJobLogEntry(nullptr) {} + ~TrainingJobLogEntry() override; + explicit PROTOBUF_CONSTEXPR TrainingJobLogEntry(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetTrainingJobLogsResponse(const GetTrainingJobLogsResponse& from) - : GetTrainingJobLogsResponse(nullptr, from) {} - GetTrainingJobLogsResponse(GetTrainingJobLogsResponse&& from) noexcept - : GetTrainingJobLogsResponse() { + TrainingJobLogEntry(const TrainingJobLogEntry& from); + TrainingJobLogEntry(TrainingJobLogEntry&& from) noexcept + : TrainingJobLogEntry() { *this = ::std::move(from); } - inline GetTrainingJobLogsResponse& operator=(const GetTrainingJobLogsResponse& from) { + inline TrainingJobLogEntry& operator=(const TrainingJobLogEntry& from) { CopyFrom(from); return *this; } - inline GetTrainingJobLogsResponse& operator=(GetTrainingJobLogsResponse&& from) noexcept { + inline TrainingJobLogEntry& operator=(TrainingJobLogEntry&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3137,198 +2633,181 @@ class GetTrainingJobLogsResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetTrainingJobLogsResponse& default_instance() { + static const TrainingJobLogEntry& default_instance() { return *internal_default_instance(); } - static inline const GetTrainingJobLogsResponse* internal_default_instance() { - return reinterpret_cast( - &_GetTrainingJobLogsResponse_default_instance_); + static inline const TrainingJobLogEntry* internal_default_instance() { + return reinterpret_cast( + &_TrainingJobLogEntry_default_instance_); } static constexpr int kIndexInFileMessages = - 16; + 14; - friend void swap(GetTrainingJobLogsResponse& a, GetTrainingJobLogsResponse& b) { + friend void swap(TrainingJobLogEntry& a, TrainingJobLogEntry& b) { a.Swap(&b); } - inline void Swap(GetTrainingJobLogsResponse* other) { + inline void Swap(TrainingJobLogEntry* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetTrainingJobLogsResponse* other) { + void UnsafeArenaSwap(TrainingJobLogEntry* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetTrainingJobLogsResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetTrainingJobLogsResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetTrainingJobLogsResponse& from) { - GetTrainingJobLogsResponse::MergeImpl(*this, from); + TrainingJobLogEntry* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const TrainingJobLogEntry& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const TrainingJobLogEntry& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetTrainingJobLogsResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(TrainingJobLogEntry* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.mltraining.v1.GetTrainingJobLogsResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.mltraining.v1.TrainingJobLogEntry"; } protected: - explicit GetTrainingJobLogsResponse(::google::protobuf::Arena* arena); - GetTrainingJobLogsResponse(::google::protobuf::Arena* arena, const GetTrainingJobLogsResponse& from); + explicit TrainingJobLogEntry(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kLogsFieldNumber = 1, - kNextPageTokenFieldNumber = 2, + kLevelFieldNumber = 1, + kMessageFieldNumber = 3, + kTimeFieldNumber = 2, }; - // repeated .viam.app.mltraining.v1.TrainingJobLogEntry logs = 1 [json_name = "logs"]; - int logs_size() const; + // string level = 1 [json_name = "level"]; + void clear_level(); + const std::string& level() const; + template + void set_level(ArgT0&& arg0, ArgT... args); + std::string* mutable_level(); + PROTOBUF_NODISCARD std::string* release_level(); + void set_allocated_level(std::string* level); private: - int _internal_logs_size() const; - + const std::string& _internal_level() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_level(const std::string& value); + std::string* _internal_mutable_level(); public: - void clear_logs() ; - ::viam::app::mltraining::v1::TrainingJobLogEntry* mutable_logs(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::mltraining::v1::TrainingJobLogEntry >* - mutable_logs(); + + // string message = 3 [json_name = "message"]; + void clear_message(); + const std::string& message() const; + template + void set_message(ArgT0&& arg0, ArgT... args); + std::string* mutable_message(); + PROTOBUF_NODISCARD std::string* release_message(); + void set_allocated_message(std::string* message); private: - const ::google::protobuf::RepeatedPtrField<::viam::app::mltraining::v1::TrainingJobLogEntry>& _internal_logs() const; - ::google::protobuf::RepeatedPtrField<::viam::app::mltraining::v1::TrainingJobLogEntry>* _internal_mutable_logs(); + const std::string& _internal_message() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_message(const std::string& value); + std::string* _internal_mutable_message(); public: - const ::viam::app::mltraining::v1::TrainingJobLogEntry& logs(int index) const; - ::viam::app::mltraining::v1::TrainingJobLogEntry* add_logs(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::mltraining::v1::TrainingJobLogEntry >& - logs() const; - // string next_page_token = 2 [json_name = "nextPageToken"]; - void clear_next_page_token() ; - const std::string& next_page_token() const; - template - void set_next_page_token(Arg_&& arg, Args_... args); - std::string* mutable_next_page_token(); - PROTOBUF_NODISCARD std::string* release_next_page_token(); - void set_allocated_next_page_token(std::string* value); + // .google.protobuf.Timestamp time = 2 [json_name = "time"]; + bool has_time() const; private: - const std::string& _internal_next_page_token() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_next_page_token( - const std::string& value); - std::string* _internal_mutable_next_page_token(); - + bool _internal_has_time() const; public: - // @@protoc_insertion_point(class_scope:viam.app.mltraining.v1.GetTrainingJobLogsResponse) + void clear_time(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& time() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_time(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_time(); + void set_allocated_time(::PROTOBUF_NAMESPACE_ID::Timestamp* time); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_time() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_time(); + public: + void unsafe_arena_set_allocated_time( + ::PROTOBUF_NAMESPACE_ID::Timestamp* time); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_time(); + + // @@protoc_insertion_point(class_scope:viam.app.mltraining.v1.TrainingJobLogEntry) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 73, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::app::mltraining::v1::TrainingJobLogEntry > logs_; - ::google::protobuf::internal::ArenaStringPtr next_page_token_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr level_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* time_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fmltraining_2fv1_2fml_5ftraining_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ListTrainingJobsResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.mltraining.v1.ListTrainingJobsResponse) */ { +class GetTrainingJobLogsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.mltraining.v1.GetTrainingJobLogsRequest) */ { public: - inline ListTrainingJobsResponse() : ListTrainingJobsResponse(nullptr) {} - ~ListTrainingJobsResponse() override; - template - explicit PROTOBUF_CONSTEXPR ListTrainingJobsResponse(::google::protobuf::internal::ConstantInitialized); + inline GetTrainingJobLogsRequest() : GetTrainingJobLogsRequest(nullptr) {} + ~GetTrainingJobLogsRequest() override; + explicit PROTOBUF_CONSTEXPR GetTrainingJobLogsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ListTrainingJobsResponse(const ListTrainingJobsResponse& from) - : ListTrainingJobsResponse(nullptr, from) {} - ListTrainingJobsResponse(ListTrainingJobsResponse&& from) noexcept - : ListTrainingJobsResponse() { + GetTrainingJobLogsRequest(const GetTrainingJobLogsRequest& from); + GetTrainingJobLogsRequest(GetTrainingJobLogsRequest&& from) noexcept + : GetTrainingJobLogsRequest() { *this = ::std::move(from); } - inline ListTrainingJobsResponse& operator=(const ListTrainingJobsResponse& from) { + inline GetTrainingJobLogsRequest& operator=(const GetTrainingJobLogsRequest& from) { CopyFrom(from); return *this; } - inline ListTrainingJobsResponse& operator=(ListTrainingJobsResponse&& from) noexcept { + inline GetTrainingJobLogsRequest& operator=(GetTrainingJobLogsRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3338,180 +2817,166 @@ class ListTrainingJobsResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ListTrainingJobsResponse& default_instance() { + static const GetTrainingJobLogsRequest& default_instance() { return *internal_default_instance(); } - static inline const ListTrainingJobsResponse* internal_default_instance() { - return reinterpret_cast( - &_ListTrainingJobsResponse_default_instance_); + static inline const GetTrainingJobLogsRequest* internal_default_instance() { + return reinterpret_cast( + &_GetTrainingJobLogsRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 8; + 15; - friend void swap(ListTrainingJobsResponse& a, ListTrainingJobsResponse& b) { + friend void swap(GetTrainingJobLogsRequest& a, GetTrainingJobLogsRequest& b) { a.Swap(&b); } - inline void Swap(ListTrainingJobsResponse* other) { + inline void Swap(GetTrainingJobLogsRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ListTrainingJobsResponse* other) { + void UnsafeArenaSwap(GetTrainingJobLogsRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ListTrainingJobsResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ListTrainingJobsResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ListTrainingJobsResponse& from) { - ListTrainingJobsResponse::MergeImpl(*this, from); + GetTrainingJobLogsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetTrainingJobLogsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetTrainingJobLogsRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ListTrainingJobsResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetTrainingJobLogsRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.mltraining.v1.ListTrainingJobsResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.mltraining.v1.GetTrainingJobLogsRequest"; } protected: - explicit ListTrainingJobsResponse(::google::protobuf::Arena* arena); - ListTrainingJobsResponse(::google::protobuf::Arena* arena, const ListTrainingJobsResponse& from); + explicit GetTrainingJobLogsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kJobsFieldNumber = 1, + kIdFieldNumber = 1, + kPageTokenFieldNumber = 2, }; - // repeated .viam.app.mltraining.v1.TrainingJobMetadata jobs = 1 [json_name = "jobs"]; - int jobs_size() const; + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); private: - int _internal_jobs_size() const; + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + // optional string page_token = 2 [json_name = "pageToken"]; + bool has_page_token() const; + private: + bool _internal_has_page_token() const; public: - void clear_jobs() ; - ::viam::app::mltraining::v1::TrainingJobMetadata* mutable_jobs(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::mltraining::v1::TrainingJobMetadata >* - mutable_jobs(); + void clear_page_token(); + const std::string& page_token() const; + template + void set_page_token(ArgT0&& arg0, ArgT... args); + std::string* mutable_page_token(); + PROTOBUF_NODISCARD std::string* release_page_token(); + void set_allocated_page_token(std::string* page_token); private: - const ::google::protobuf::RepeatedPtrField<::viam::app::mltraining::v1::TrainingJobMetadata>& _internal_jobs() const; - ::google::protobuf::RepeatedPtrField<::viam::app::mltraining::v1::TrainingJobMetadata>* _internal_mutable_jobs(); + const std::string& _internal_page_token() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_page_token(const std::string& value); + std::string* _internal_mutable_page_token(); public: - const ::viam::app::mltraining::v1::TrainingJobMetadata& jobs(int index) const; - ::viam::app::mltraining::v1::TrainingJobMetadata* add_jobs(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::mltraining::v1::TrainingJobMetadata >& - jobs() const; - // @@protoc_insertion_point(class_scope:viam.app.mltraining.v1.ListTrainingJobsResponse) + + // @@protoc_insertion_point(class_scope:viam.app.mltraining.v1.GetTrainingJobLogsRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::app::mltraining::v1::TrainingJobMetadata > jobs_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr page_token_; friend struct ::TableStruct_app_2fmltraining_2fv1_2fml_5ftraining_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetTrainingJobResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.mltraining.v1.GetTrainingJobResponse) */ { +class GetTrainingJobLogsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.mltraining.v1.GetTrainingJobLogsResponse) */ { public: - inline GetTrainingJobResponse() : GetTrainingJobResponse(nullptr) {} - ~GetTrainingJobResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetTrainingJobResponse(::google::protobuf::internal::ConstantInitialized); + inline GetTrainingJobLogsResponse() : GetTrainingJobLogsResponse(nullptr) {} + ~GetTrainingJobLogsResponse() override; + explicit PROTOBUF_CONSTEXPR GetTrainingJobLogsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetTrainingJobResponse(const GetTrainingJobResponse& from) - : GetTrainingJobResponse(nullptr, from) {} - GetTrainingJobResponse(GetTrainingJobResponse&& from) noexcept - : GetTrainingJobResponse() { + GetTrainingJobLogsResponse(const GetTrainingJobLogsResponse& from); + GetTrainingJobLogsResponse(GetTrainingJobLogsResponse&& from) noexcept + : GetTrainingJobLogsResponse() { *this = ::std::move(from); } - inline GetTrainingJobResponse& operator=(const GetTrainingJobResponse& from) { + inline GetTrainingJobLogsResponse& operator=(const GetTrainingJobLogsResponse& from) { CopyFrom(from); return *this; } - inline GetTrainingJobResponse& operator=(GetTrainingJobResponse&& from) noexcept { + inline GetTrainingJobLogsResponse& operator=(GetTrainingJobLogsResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3521,504 +2986,445 @@ class GetTrainingJobResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetTrainingJobResponse& default_instance() { + static const GetTrainingJobLogsResponse& default_instance() { return *internal_default_instance(); } - static inline const GetTrainingJobResponse* internal_default_instance() { - return reinterpret_cast( - &_GetTrainingJobResponse_default_instance_); + static inline const GetTrainingJobLogsResponse* internal_default_instance() { + return reinterpret_cast( + &_GetTrainingJobLogsResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 6; + 16; - friend void swap(GetTrainingJobResponse& a, GetTrainingJobResponse& b) { + friend void swap(GetTrainingJobLogsResponse& a, GetTrainingJobLogsResponse& b) { a.Swap(&b); } - inline void Swap(GetTrainingJobResponse* other) { + inline void Swap(GetTrainingJobLogsResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetTrainingJobResponse* other) { + void UnsafeArenaSwap(GetTrainingJobLogsResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetTrainingJobResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetTrainingJobResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetTrainingJobResponse& from) { - GetTrainingJobResponse::MergeImpl(*this, from); + GetTrainingJobLogsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetTrainingJobLogsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetTrainingJobLogsResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetTrainingJobResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetTrainingJobLogsResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.mltraining.v1.GetTrainingJobResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.mltraining.v1.GetTrainingJobLogsResponse"; } protected: - explicit GetTrainingJobResponse(::google::protobuf::Arena* arena); - GetTrainingJobResponse(::google::protobuf::Arena* arena, const GetTrainingJobResponse& from); + explicit GetTrainingJobLogsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kMetadataFieldNumber = 1, + kLogsFieldNumber = 1, + kNextPageTokenFieldNumber = 2, }; - // .viam.app.mltraining.v1.TrainingJobMetadata metadata = 1 [json_name = "metadata"]; - bool has_metadata() const; - void clear_metadata() ; - const ::viam::app::mltraining::v1::TrainingJobMetadata& metadata() const; - PROTOBUF_NODISCARD ::viam::app::mltraining::v1::TrainingJobMetadata* release_metadata(); - ::viam::app::mltraining::v1::TrainingJobMetadata* mutable_metadata(); - void set_allocated_metadata(::viam::app::mltraining::v1::TrainingJobMetadata* value); - void unsafe_arena_set_allocated_metadata(::viam::app::mltraining::v1::TrainingJobMetadata* value); - ::viam::app::mltraining::v1::TrainingJobMetadata* unsafe_arena_release_metadata(); - + // repeated .viam.app.mltraining.v1.TrainingJobLogEntry logs = 1 [json_name = "logs"]; + int logs_size() const; private: - const ::viam::app::mltraining::v1::TrainingJobMetadata& _internal_metadata() const; - ::viam::app::mltraining::v1::TrainingJobMetadata* _internal_mutable_metadata(); + int _internal_logs_size() const; + public: + void clear_logs(); + ::viam::app::mltraining::v1::TrainingJobLogEntry* mutable_logs(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::mltraining::v1::TrainingJobLogEntry >* + mutable_logs(); + private: + const ::viam::app::mltraining::v1::TrainingJobLogEntry& _internal_logs(int index) const; + ::viam::app::mltraining::v1::TrainingJobLogEntry* _internal_add_logs(); + public: + const ::viam::app::mltraining::v1::TrainingJobLogEntry& logs(int index) const; + ::viam::app::mltraining::v1::TrainingJobLogEntry* add_logs(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::mltraining::v1::TrainingJobLogEntry >& + logs() const; + // string next_page_token = 2 [json_name = "nextPageToken"]; + void clear_next_page_token(); + const std::string& next_page_token() const; + template + void set_next_page_token(ArgT0&& arg0, ArgT... args); + std::string* mutable_next_page_token(); + PROTOBUF_NODISCARD std::string* release_next_page_token(); + void set_allocated_next_page_token(std::string* next_page_token); + private: + const std::string& _internal_next_page_token() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_next_page_token(const std::string& value); + std::string* _internal_mutable_next_page_token(); public: - // @@protoc_insertion_point(class_scope:viam.app.mltraining.v1.GetTrainingJobResponse) + + // @@protoc_insertion_point(class_scope:viam.app.mltraining.v1.GetTrainingJobLogsResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::viam::app::mltraining::v1::TrainingJobMetadata* metadata_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::mltraining::v1::TrainingJobLogEntry > logs_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr next_page_token_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fmltraining_2fv1_2fml_5ftraining_2eproto; }; - // =================================================================== - - // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ -// ------------------------------------------------------------------- - // SubmitTrainingJobRequest // string dataset_id = 7 [json_name = "datasetId", (.tagger.v1.tags) = "bson:\"dataset_id\" json:\"dataset_id\""]; inline void SubmitTrainingJobRequest::clear_dataset_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.dataset_id_.ClearToEmpty(); + dataset_id_.ClearToEmpty(); } -inline const std::string& SubmitTrainingJobRequest::dataset_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& SubmitTrainingJobRequest::dataset_id() const { // @@protoc_insertion_point(field_get:viam.app.mltraining.v1.SubmitTrainingJobRequest.dataset_id) return _internal_dataset_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void SubmitTrainingJobRequest::set_dataset_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.dataset_id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void SubmitTrainingJobRequest::set_dataset_id(ArgT0&& arg0, ArgT... args) { + + dataset_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.mltraining.v1.SubmitTrainingJobRequest.dataset_id) } -inline std::string* SubmitTrainingJobRequest::mutable_dataset_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* SubmitTrainingJobRequest::mutable_dataset_id() { std::string* _s = _internal_mutable_dataset_id(); // @@protoc_insertion_point(field_mutable:viam.app.mltraining.v1.SubmitTrainingJobRequest.dataset_id) return _s; } inline const std::string& SubmitTrainingJobRequest::_internal_dataset_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.dataset_id_.Get(); + return dataset_id_.Get(); } inline void SubmitTrainingJobRequest::_internal_set_dataset_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.dataset_id_.Set(value, GetArena()); + + dataset_id_.Set(value, GetArenaForAllocation()); } inline std::string* SubmitTrainingJobRequest::_internal_mutable_dataset_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.dataset_id_.Mutable( GetArena()); + + return dataset_id_.Mutable(GetArenaForAllocation()); } inline std::string* SubmitTrainingJobRequest::release_dataset_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.mltraining.v1.SubmitTrainingJobRequest.dataset_id) - return _impl_.dataset_id_.Release(); -} -inline void SubmitTrainingJobRequest::set_allocated_dataset_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.dataset_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.dataset_id_.IsDefault()) { - _impl_.dataset_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return dataset_id_.Release(); +} +inline void SubmitTrainingJobRequest::set_allocated_dataset_id(std::string* dataset_id) { + if (dataset_id != nullptr) { + + } else { + + } + dataset_id_.SetAllocated(dataset_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (dataset_id_.IsDefault()) { + dataset_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.mltraining.v1.SubmitTrainingJobRequest.dataset_id) } // string organization_id = 2 [json_name = "organizationId", (.tagger.v1.tags) = "bson:\"organization_id\" json:\"organization_id\""]; inline void SubmitTrainingJobRequest::clear_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.ClearToEmpty(); + organization_id_.ClearToEmpty(); } -inline const std::string& SubmitTrainingJobRequest::organization_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& SubmitTrainingJobRequest::organization_id() const { // @@protoc_insertion_point(field_get:viam.app.mltraining.v1.SubmitTrainingJobRequest.organization_id) return _internal_organization_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void SubmitTrainingJobRequest::set_organization_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void SubmitTrainingJobRequest::set_organization_id(ArgT0&& arg0, ArgT... args) { + + organization_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.mltraining.v1.SubmitTrainingJobRequest.organization_id) } -inline std::string* SubmitTrainingJobRequest::mutable_organization_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* SubmitTrainingJobRequest::mutable_organization_id() { std::string* _s = _internal_mutable_organization_id(); // @@protoc_insertion_point(field_mutable:viam.app.mltraining.v1.SubmitTrainingJobRequest.organization_id) return _s; } inline const std::string& SubmitTrainingJobRequest::_internal_organization_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.organization_id_.Get(); + return organization_id_.Get(); } inline void SubmitTrainingJobRequest::_internal_set_organization_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(value, GetArena()); + + organization_id_.Set(value, GetArenaForAllocation()); } inline std::string* SubmitTrainingJobRequest::_internal_mutable_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.organization_id_.Mutable( GetArena()); + + return organization_id_.Mutable(GetArenaForAllocation()); } inline std::string* SubmitTrainingJobRequest::release_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.mltraining.v1.SubmitTrainingJobRequest.organization_id) - return _impl_.organization_id_.Release(); -} -inline void SubmitTrainingJobRequest::set_allocated_organization_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.organization_id_.IsDefault()) { - _impl_.organization_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return organization_id_.Release(); +} +inline void SubmitTrainingJobRequest::set_allocated_organization_id(std::string* organization_id) { + if (organization_id != nullptr) { + + } else { + + } + organization_id_.SetAllocated(organization_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (organization_id_.IsDefault()) { + organization_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.mltraining.v1.SubmitTrainingJobRequest.organization_id) } // string model_name = 3 [json_name = "modelName", (.tagger.v1.tags) = "bson:\"model_name\" json:\"model_name\""]; inline void SubmitTrainingJobRequest::clear_model_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.model_name_.ClearToEmpty(); + model_name_.ClearToEmpty(); } -inline const std::string& SubmitTrainingJobRequest::model_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& SubmitTrainingJobRequest::model_name() const { // @@protoc_insertion_point(field_get:viam.app.mltraining.v1.SubmitTrainingJobRequest.model_name) return _internal_model_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void SubmitTrainingJobRequest::set_model_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.model_name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void SubmitTrainingJobRequest::set_model_name(ArgT0&& arg0, ArgT... args) { + + model_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.mltraining.v1.SubmitTrainingJobRequest.model_name) } -inline std::string* SubmitTrainingJobRequest::mutable_model_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* SubmitTrainingJobRequest::mutable_model_name() { std::string* _s = _internal_mutable_model_name(); // @@protoc_insertion_point(field_mutable:viam.app.mltraining.v1.SubmitTrainingJobRequest.model_name) return _s; } inline const std::string& SubmitTrainingJobRequest::_internal_model_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.model_name_.Get(); + return model_name_.Get(); } inline void SubmitTrainingJobRequest::_internal_set_model_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.model_name_.Set(value, GetArena()); + + model_name_.Set(value, GetArenaForAllocation()); } inline std::string* SubmitTrainingJobRequest::_internal_mutable_model_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.model_name_.Mutable( GetArena()); + + return model_name_.Mutable(GetArenaForAllocation()); } inline std::string* SubmitTrainingJobRequest::release_model_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.mltraining.v1.SubmitTrainingJobRequest.model_name) - return _impl_.model_name_.Release(); -} -inline void SubmitTrainingJobRequest::set_allocated_model_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.model_name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.model_name_.IsDefault()) { - _impl_.model_name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return model_name_.Release(); +} +inline void SubmitTrainingJobRequest::set_allocated_model_name(std::string* model_name) { + if (model_name != nullptr) { + + } else { + + } + model_name_.SetAllocated(model_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (model_name_.IsDefault()) { + model_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.mltraining.v1.SubmitTrainingJobRequest.model_name) } // string model_version = 4 [json_name = "modelVersion", (.tagger.v1.tags) = "bson:\"model_version\" json:\"model_version\""]; inline void SubmitTrainingJobRequest::clear_model_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.model_version_.ClearToEmpty(); + model_version_.ClearToEmpty(); } -inline const std::string& SubmitTrainingJobRequest::model_version() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& SubmitTrainingJobRequest::model_version() const { // @@protoc_insertion_point(field_get:viam.app.mltraining.v1.SubmitTrainingJobRequest.model_version) return _internal_model_version(); } -template -inline PROTOBUF_ALWAYS_INLINE void SubmitTrainingJobRequest::set_model_version(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.model_version_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void SubmitTrainingJobRequest::set_model_version(ArgT0&& arg0, ArgT... args) { + + model_version_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.mltraining.v1.SubmitTrainingJobRequest.model_version) } -inline std::string* SubmitTrainingJobRequest::mutable_model_version() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* SubmitTrainingJobRequest::mutable_model_version() { std::string* _s = _internal_mutable_model_version(); // @@protoc_insertion_point(field_mutable:viam.app.mltraining.v1.SubmitTrainingJobRequest.model_version) return _s; } inline const std::string& SubmitTrainingJobRequest::_internal_model_version() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.model_version_.Get(); + return model_version_.Get(); } inline void SubmitTrainingJobRequest::_internal_set_model_version(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.model_version_.Set(value, GetArena()); + + model_version_.Set(value, GetArenaForAllocation()); } inline std::string* SubmitTrainingJobRequest::_internal_mutable_model_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.model_version_.Mutable( GetArena()); + + return model_version_.Mutable(GetArenaForAllocation()); } inline std::string* SubmitTrainingJobRequest::release_model_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.mltraining.v1.SubmitTrainingJobRequest.model_version) - return _impl_.model_version_.Release(); -} -inline void SubmitTrainingJobRequest::set_allocated_model_version(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.model_version_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.model_version_.IsDefault()) { - _impl_.model_version_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return model_version_.Release(); +} +inline void SubmitTrainingJobRequest::set_allocated_model_version(std::string* model_version) { + if (model_version != nullptr) { + + } else { + + } + model_version_.SetAllocated(model_version, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (model_version_.IsDefault()) { + model_version_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.mltraining.v1.SubmitTrainingJobRequest.model_version) } // .viam.app.mltraining.v1.ModelType model_type = 5 [json_name = "modelType", (.tagger.v1.tags) = "bson:\"model_type\" json:\"model_type\""]; inline void SubmitTrainingJobRequest::clear_model_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.model_type_ = 0; + model_type_ = 0; +} +inline ::viam::app::mltraining::v1::ModelType SubmitTrainingJobRequest::_internal_model_type() const { + return static_cast< ::viam::app::mltraining::v1::ModelType >(model_type_); } inline ::viam::app::mltraining::v1::ModelType SubmitTrainingJobRequest::model_type() const { // @@protoc_insertion_point(field_get:viam.app.mltraining.v1.SubmitTrainingJobRequest.model_type) return _internal_model_type(); } -inline void SubmitTrainingJobRequest::set_model_type(::viam::app::mltraining::v1::ModelType value) { - _internal_set_model_type(value); - // @@protoc_insertion_point(field_set:viam.app.mltraining.v1.SubmitTrainingJobRequest.model_type) -} -inline ::viam::app::mltraining::v1::ModelType SubmitTrainingJobRequest::_internal_model_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::viam::app::mltraining::v1::ModelType>(_impl_.model_type_); -} inline void SubmitTrainingJobRequest::_internal_set_model_type(::viam::app::mltraining::v1::ModelType value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.model_type_ = value; + + model_type_ = value; +} +inline void SubmitTrainingJobRequest::set_model_type(::viam::app::mltraining::v1::ModelType value) { + _internal_set_model_type(value); + // @@protoc_insertion_point(field_set:viam.app.mltraining.v1.SubmitTrainingJobRequest.model_type) } // repeated string tags = 6 [json_name = "tags", (.tagger.v1.tags) = "bson:\"tags\" json:\"tags\""]; inline int SubmitTrainingJobRequest::_internal_tags_size() const { - return _internal_tags().size(); + return tags_.size(); } inline int SubmitTrainingJobRequest::tags_size() const { return _internal_tags_size(); } inline void SubmitTrainingJobRequest::clear_tags() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.tags_.Clear(); + tags_.Clear(); } -inline std::string* SubmitTrainingJobRequest::add_tags() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_tags()->Add(); +inline std::string* SubmitTrainingJobRequest::add_tags() { + std::string* _s = _internal_add_tags(); // @@protoc_insertion_point(field_add_mutable:viam.app.mltraining.v1.SubmitTrainingJobRequest.tags) return _s; } -inline const std::string& SubmitTrainingJobRequest::tags(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& SubmitTrainingJobRequest::_internal_tags(int index) const { + return tags_.Get(index); +} +inline const std::string& SubmitTrainingJobRequest::tags(int index) const { // @@protoc_insertion_point(field_get:viam.app.mltraining.v1.SubmitTrainingJobRequest.tags) - return _internal_tags().Get(index); + return _internal_tags(index); } -inline std::string* SubmitTrainingJobRequest::mutable_tags(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* SubmitTrainingJobRequest::mutable_tags(int index) { // @@protoc_insertion_point(field_mutable:viam.app.mltraining.v1.SubmitTrainingJobRequest.tags) - return _internal_mutable_tags()->Mutable(index); + return tags_.Mutable(index); } inline void SubmitTrainingJobRequest::set_tags(int index, const std::string& value) { - _internal_mutable_tags()->Mutable(index)->assign(value); + tags_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set:viam.app.mltraining.v1.SubmitTrainingJobRequest.tags) } inline void SubmitTrainingJobRequest::set_tags(int index, std::string&& value) { - _internal_mutable_tags()->Mutable(index)->assign(std::move(value)); + tags_.Mutable(index)->assign(std::move(value)); // @@protoc_insertion_point(field_set:viam.app.mltraining.v1.SubmitTrainingJobRequest.tags) } inline void SubmitTrainingJobRequest::set_tags(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_tags()->Mutable(index)->assign(value); + GOOGLE_DCHECK(value != nullptr); + tags_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:viam.app.mltraining.v1.SubmitTrainingJobRequest.tags) } -inline void SubmitTrainingJobRequest::set_tags(int index, const char* value, - std::size_t size) { - _internal_mutable_tags()->Mutable(index)->assign( - reinterpret_cast(value), size); +inline void SubmitTrainingJobRequest::set_tags(int index, const char* value, size_t size) { + tags_.Mutable(index)->assign( + reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:viam.app.mltraining.v1.SubmitTrainingJobRequest.tags) } -inline void SubmitTrainingJobRequest::set_tags(int index, absl::string_view value) { - _internal_mutable_tags()->Mutable(index)->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_set_string_piece:viam.app.mltraining.v1.SubmitTrainingJobRequest.tags) +inline std::string* SubmitTrainingJobRequest::_internal_add_tags() { + return tags_.Add(); } inline void SubmitTrainingJobRequest::add_tags(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_tags()->Add()->assign(value); + tags_.Add()->assign(value); // @@protoc_insertion_point(field_add:viam.app.mltraining.v1.SubmitTrainingJobRequest.tags) } inline void SubmitTrainingJobRequest::add_tags(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_tags()->Add(std::move(value)); + tags_.Add(std::move(value)); // @@protoc_insertion_point(field_add:viam.app.mltraining.v1.SubmitTrainingJobRequest.tags) } inline void SubmitTrainingJobRequest::add_tags(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_tags()->Add()->assign(value); + GOOGLE_DCHECK(value != nullptr); + tags_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:viam.app.mltraining.v1.SubmitTrainingJobRequest.tags) } -inline void SubmitTrainingJobRequest::add_tags(const char* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_tags()->Add()->assign( - reinterpret_cast(value), size); +inline void SubmitTrainingJobRequest::add_tags(const char* value, size_t size) { + tags_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:viam.app.mltraining.v1.SubmitTrainingJobRequest.tags) } -inline void SubmitTrainingJobRequest::add_tags(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_tags()->Add()->assign(value.data(), value.size()); - // @@protoc_insertion_point(field_add_string_piece:viam.app.mltraining.v1.SubmitTrainingJobRequest.tags) -} -inline const ::google::protobuf::RepeatedPtrField& -SubmitTrainingJobRequest::tags() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +SubmitTrainingJobRequest::tags() const { // @@protoc_insertion_point(field_list:viam.app.mltraining.v1.SubmitTrainingJobRequest.tags) - return _internal_tags(); + return tags_; } -inline ::google::protobuf::RepeatedPtrField* -SubmitTrainingJobRequest::mutable_tags() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +SubmitTrainingJobRequest::mutable_tags() { // @@protoc_insertion_point(field_mutable_list:viam.app.mltraining.v1.SubmitTrainingJobRequest.tags) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_tags(); -} -inline const ::google::protobuf::RepeatedPtrField& -SubmitTrainingJobRequest::_internal_tags() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.tags_; -} -inline ::google::protobuf::RepeatedPtrField* -SubmitTrainingJobRequest::_internal_mutable_tags() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.tags_; + return &tags_; } // ------------------------------------------------------------------- @@ -4027,54 +3433,51 @@ SubmitTrainingJobRequest::_internal_mutable_tags() { // string id = 1 [json_name = "id"]; inline void SubmitTrainingJobResponse::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); + id_.ClearToEmpty(); } -inline const std::string& SubmitTrainingJobResponse::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& SubmitTrainingJobResponse::id() const { // @@protoc_insertion_point(field_get:viam.app.mltraining.v1.SubmitTrainingJobResponse.id) return _internal_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void SubmitTrainingJobResponse::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void SubmitTrainingJobResponse::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.mltraining.v1.SubmitTrainingJobResponse.id) } -inline std::string* SubmitTrainingJobResponse::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* SubmitTrainingJobResponse::mutable_id() { std::string* _s = _internal_mutable_id(); // @@protoc_insertion_point(field_mutable:viam.app.mltraining.v1.SubmitTrainingJobResponse.id) return _s; } inline const std::string& SubmitTrainingJobResponse::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); + return id_.Get(); } inline void SubmitTrainingJobResponse::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); + + id_.Set(value, GetArenaForAllocation()); } inline std::string* SubmitTrainingJobResponse::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); + + return id_.Mutable(GetArenaForAllocation()); } inline std::string* SubmitTrainingJobResponse::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.mltraining.v1.SubmitTrainingJobResponse.id) - return _impl_.id_.Release(); -} -inline void SubmitTrainingJobResponse::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return id_.Release(); +} +inline void SubmitTrainingJobResponse::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.mltraining.v1.SubmitTrainingJobResponse.id) } @@ -4086,346 +3489,329 @@ inline void SubmitTrainingJobResponse::set_allocated_id(std::string* value) { // string dataset_id = 1 [json_name = "datasetId", (.tagger.v1.tags) = "bson:\"dataset_id\" json:\"dataset_id\""]; inline void SubmitCustomTrainingJobRequest::clear_dataset_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.dataset_id_.ClearToEmpty(); + dataset_id_.ClearToEmpty(); } -inline const std::string& SubmitCustomTrainingJobRequest::dataset_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& SubmitCustomTrainingJobRequest::dataset_id() const { // @@protoc_insertion_point(field_get:viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.dataset_id) return _internal_dataset_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void SubmitCustomTrainingJobRequest::set_dataset_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.dataset_id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void SubmitCustomTrainingJobRequest::set_dataset_id(ArgT0&& arg0, ArgT... args) { + + dataset_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.dataset_id) } -inline std::string* SubmitCustomTrainingJobRequest::mutable_dataset_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* SubmitCustomTrainingJobRequest::mutable_dataset_id() { std::string* _s = _internal_mutable_dataset_id(); // @@protoc_insertion_point(field_mutable:viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.dataset_id) return _s; } inline const std::string& SubmitCustomTrainingJobRequest::_internal_dataset_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.dataset_id_.Get(); + return dataset_id_.Get(); } inline void SubmitCustomTrainingJobRequest::_internal_set_dataset_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.dataset_id_.Set(value, GetArena()); + + dataset_id_.Set(value, GetArenaForAllocation()); } inline std::string* SubmitCustomTrainingJobRequest::_internal_mutable_dataset_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.dataset_id_.Mutable( GetArena()); + + return dataset_id_.Mutable(GetArenaForAllocation()); } inline std::string* SubmitCustomTrainingJobRequest::release_dataset_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.dataset_id) - return _impl_.dataset_id_.Release(); -} -inline void SubmitCustomTrainingJobRequest::set_allocated_dataset_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.dataset_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.dataset_id_.IsDefault()) { - _impl_.dataset_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return dataset_id_.Release(); +} +inline void SubmitCustomTrainingJobRequest::set_allocated_dataset_id(std::string* dataset_id) { + if (dataset_id != nullptr) { + + } else { + + } + dataset_id_.SetAllocated(dataset_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (dataset_id_.IsDefault()) { + dataset_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.dataset_id) } // string registry_item_id = 2 [json_name = "registryItemId", (.tagger.v1.tags) = "bson:\"registry_item_id\" json:\"registry_item_id\""]; inline void SubmitCustomTrainingJobRequest::clear_registry_item_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.registry_item_id_.ClearToEmpty(); + registry_item_id_.ClearToEmpty(); } -inline const std::string& SubmitCustomTrainingJobRequest::registry_item_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& SubmitCustomTrainingJobRequest::registry_item_id() const { // @@protoc_insertion_point(field_get:viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.registry_item_id) return _internal_registry_item_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void SubmitCustomTrainingJobRequest::set_registry_item_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.registry_item_id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void SubmitCustomTrainingJobRequest::set_registry_item_id(ArgT0&& arg0, ArgT... args) { + + registry_item_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.registry_item_id) } -inline std::string* SubmitCustomTrainingJobRequest::mutable_registry_item_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* SubmitCustomTrainingJobRequest::mutable_registry_item_id() { std::string* _s = _internal_mutable_registry_item_id(); // @@protoc_insertion_point(field_mutable:viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.registry_item_id) return _s; } inline const std::string& SubmitCustomTrainingJobRequest::_internal_registry_item_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.registry_item_id_.Get(); + return registry_item_id_.Get(); } inline void SubmitCustomTrainingJobRequest::_internal_set_registry_item_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.registry_item_id_.Set(value, GetArena()); + + registry_item_id_.Set(value, GetArenaForAllocation()); } inline std::string* SubmitCustomTrainingJobRequest::_internal_mutable_registry_item_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.registry_item_id_.Mutable( GetArena()); + + return registry_item_id_.Mutable(GetArenaForAllocation()); } inline std::string* SubmitCustomTrainingJobRequest::release_registry_item_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.registry_item_id) - return _impl_.registry_item_id_.Release(); -} -inline void SubmitCustomTrainingJobRequest::set_allocated_registry_item_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.registry_item_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.registry_item_id_.IsDefault()) { - _impl_.registry_item_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return registry_item_id_.Release(); +} +inline void SubmitCustomTrainingJobRequest::set_allocated_registry_item_id(std::string* registry_item_id) { + if (registry_item_id != nullptr) { + + } else { + + } + registry_item_id_.SetAllocated(registry_item_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (registry_item_id_.IsDefault()) { + registry_item_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.registry_item_id) } // string registry_item_version = 6 [json_name = "registryItemVersion", (.tagger.v1.tags) = "bson:\"registry_item_version\" json:\"registry_item_version\""]; inline void SubmitCustomTrainingJobRequest::clear_registry_item_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.registry_item_version_.ClearToEmpty(); + registry_item_version_.ClearToEmpty(); } -inline const std::string& SubmitCustomTrainingJobRequest::registry_item_version() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& SubmitCustomTrainingJobRequest::registry_item_version() const { // @@protoc_insertion_point(field_get:viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.registry_item_version) return _internal_registry_item_version(); } -template -inline PROTOBUF_ALWAYS_INLINE void SubmitCustomTrainingJobRequest::set_registry_item_version(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.registry_item_version_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void SubmitCustomTrainingJobRequest::set_registry_item_version(ArgT0&& arg0, ArgT... args) { + + registry_item_version_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.registry_item_version) } -inline std::string* SubmitCustomTrainingJobRequest::mutable_registry_item_version() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* SubmitCustomTrainingJobRequest::mutable_registry_item_version() { std::string* _s = _internal_mutable_registry_item_version(); // @@protoc_insertion_point(field_mutable:viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.registry_item_version) return _s; } inline const std::string& SubmitCustomTrainingJobRequest::_internal_registry_item_version() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.registry_item_version_.Get(); + return registry_item_version_.Get(); } inline void SubmitCustomTrainingJobRequest::_internal_set_registry_item_version(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.registry_item_version_.Set(value, GetArena()); + + registry_item_version_.Set(value, GetArenaForAllocation()); } inline std::string* SubmitCustomTrainingJobRequest::_internal_mutable_registry_item_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.registry_item_version_.Mutable( GetArena()); + + return registry_item_version_.Mutable(GetArenaForAllocation()); } inline std::string* SubmitCustomTrainingJobRequest::release_registry_item_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.registry_item_version) - return _impl_.registry_item_version_.Release(); -} -inline void SubmitCustomTrainingJobRequest::set_allocated_registry_item_version(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.registry_item_version_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.registry_item_version_.IsDefault()) { - _impl_.registry_item_version_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return registry_item_version_.Release(); +} +inline void SubmitCustomTrainingJobRequest::set_allocated_registry_item_version(std::string* registry_item_version) { + if (registry_item_version != nullptr) { + + } else { + + } + registry_item_version_.SetAllocated(registry_item_version, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (registry_item_version_.IsDefault()) { + registry_item_version_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.registry_item_version) } // string organization_id = 3 [json_name = "organizationId", (.tagger.v1.tags) = "bson:\"organization_id\" json:\"organization_id\""]; inline void SubmitCustomTrainingJobRequest::clear_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.ClearToEmpty(); + organization_id_.ClearToEmpty(); } -inline const std::string& SubmitCustomTrainingJobRequest::organization_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& SubmitCustomTrainingJobRequest::organization_id() const { // @@protoc_insertion_point(field_get:viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.organization_id) return _internal_organization_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void SubmitCustomTrainingJobRequest::set_organization_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void SubmitCustomTrainingJobRequest::set_organization_id(ArgT0&& arg0, ArgT... args) { + + organization_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.organization_id) } -inline std::string* SubmitCustomTrainingJobRequest::mutable_organization_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* SubmitCustomTrainingJobRequest::mutable_organization_id() { std::string* _s = _internal_mutable_organization_id(); // @@protoc_insertion_point(field_mutable:viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.organization_id) return _s; } inline const std::string& SubmitCustomTrainingJobRequest::_internal_organization_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.organization_id_.Get(); + return organization_id_.Get(); } inline void SubmitCustomTrainingJobRequest::_internal_set_organization_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(value, GetArena()); + + organization_id_.Set(value, GetArenaForAllocation()); } inline std::string* SubmitCustomTrainingJobRequest::_internal_mutable_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.organization_id_.Mutable( GetArena()); + + return organization_id_.Mutable(GetArenaForAllocation()); } inline std::string* SubmitCustomTrainingJobRequest::release_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.organization_id) - return _impl_.organization_id_.Release(); -} -inline void SubmitCustomTrainingJobRequest::set_allocated_organization_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.organization_id_.IsDefault()) { - _impl_.organization_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return organization_id_.Release(); +} +inline void SubmitCustomTrainingJobRequest::set_allocated_organization_id(std::string* organization_id) { + if (organization_id != nullptr) { + + } else { + + } + organization_id_.SetAllocated(organization_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (organization_id_.IsDefault()) { + organization_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.organization_id) } // string model_name = 4 [json_name = "modelName", (.tagger.v1.tags) = "bson:\"model_name\" json:\"model_name\""]; inline void SubmitCustomTrainingJobRequest::clear_model_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.model_name_.ClearToEmpty(); + model_name_.ClearToEmpty(); } -inline const std::string& SubmitCustomTrainingJobRequest::model_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& SubmitCustomTrainingJobRequest::model_name() const { // @@protoc_insertion_point(field_get:viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.model_name) return _internal_model_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void SubmitCustomTrainingJobRequest::set_model_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.model_name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void SubmitCustomTrainingJobRequest::set_model_name(ArgT0&& arg0, ArgT... args) { + + model_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.model_name) } -inline std::string* SubmitCustomTrainingJobRequest::mutable_model_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* SubmitCustomTrainingJobRequest::mutable_model_name() { std::string* _s = _internal_mutable_model_name(); // @@protoc_insertion_point(field_mutable:viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.model_name) return _s; } inline const std::string& SubmitCustomTrainingJobRequest::_internal_model_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.model_name_.Get(); + return model_name_.Get(); } inline void SubmitCustomTrainingJobRequest::_internal_set_model_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.model_name_.Set(value, GetArena()); + + model_name_.Set(value, GetArenaForAllocation()); } inline std::string* SubmitCustomTrainingJobRequest::_internal_mutable_model_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.model_name_.Mutable( GetArena()); + + return model_name_.Mutable(GetArenaForAllocation()); } inline std::string* SubmitCustomTrainingJobRequest::release_model_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.model_name) - return _impl_.model_name_.Release(); -} -inline void SubmitCustomTrainingJobRequest::set_allocated_model_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.model_name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.model_name_.IsDefault()) { - _impl_.model_name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return model_name_.Release(); +} +inline void SubmitCustomTrainingJobRequest::set_allocated_model_name(std::string* model_name) { + if (model_name != nullptr) { + + } else { + + } + model_name_.SetAllocated(model_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (model_name_.IsDefault()) { + model_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.model_name) } // string model_version = 5 [json_name = "modelVersion", (.tagger.v1.tags) = "bson:\"model_version\" json:\"model_version\""]; inline void SubmitCustomTrainingJobRequest::clear_model_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.model_version_.ClearToEmpty(); + model_version_.ClearToEmpty(); } -inline const std::string& SubmitCustomTrainingJobRequest::model_version() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& SubmitCustomTrainingJobRequest::model_version() const { // @@protoc_insertion_point(field_get:viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.model_version) return _internal_model_version(); } -template -inline PROTOBUF_ALWAYS_INLINE void SubmitCustomTrainingJobRequest::set_model_version(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.model_version_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void SubmitCustomTrainingJobRequest::set_model_version(ArgT0&& arg0, ArgT... args) { + + model_version_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.model_version) } -inline std::string* SubmitCustomTrainingJobRequest::mutable_model_version() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* SubmitCustomTrainingJobRequest::mutable_model_version() { std::string* _s = _internal_mutable_model_version(); // @@protoc_insertion_point(field_mutable:viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.model_version) return _s; } inline const std::string& SubmitCustomTrainingJobRequest::_internal_model_version() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.model_version_.Get(); + return model_version_.Get(); } inline void SubmitCustomTrainingJobRequest::_internal_set_model_version(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.model_version_.Set(value, GetArena()); + + model_version_.Set(value, GetArenaForAllocation()); } inline std::string* SubmitCustomTrainingJobRequest::_internal_mutable_model_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.model_version_.Mutable( GetArena()); + + return model_version_.Mutable(GetArenaForAllocation()); } inline std::string* SubmitCustomTrainingJobRequest::release_model_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.model_version) - return _impl_.model_version_.Release(); -} -inline void SubmitCustomTrainingJobRequest::set_allocated_model_version(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.model_version_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.model_version_.IsDefault()) { - _impl_.model_version_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return model_version_.Release(); +} +inline void SubmitCustomTrainingJobRequest::set_allocated_model_version(std::string* model_version) { + if (model_version != nullptr) { + + } else { + + } + model_version_.SetAllocated(model_version, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (model_version_.IsDefault()) { + model_version_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.model_version) } // map arguments = 7 [json_name = "arguments"]; inline int SubmitCustomTrainingJobRequest::_internal_arguments_size() const { - return _internal_arguments().size(); + return arguments_.size(); } inline int SubmitCustomTrainingJobRequest::arguments_size() const { return _internal_arguments_size(); } inline void SubmitCustomTrainingJobRequest::clear_arguments() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.arguments_.Clear(); + arguments_.Clear(); } -inline const ::google::protobuf::Map& SubmitCustomTrainingJobRequest::_internal_arguments() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.arguments_.GetMap(); +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +SubmitCustomTrainingJobRequest::_internal_arguments() const { + return arguments_.GetMap(); } -inline const ::google::protobuf::Map& SubmitCustomTrainingJobRequest::arguments() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +SubmitCustomTrainingJobRequest::arguments() const { // @@protoc_insertion_point(field_map:viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.arguments) return _internal_arguments(); } -inline ::google::protobuf::Map* SubmitCustomTrainingJobRequest::_internal_mutable_arguments() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.arguments_.MutableMap(); +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +SubmitCustomTrainingJobRequest::_internal_mutable_arguments() { + return arguments_.MutableMap(); } -inline ::google::protobuf::Map* SubmitCustomTrainingJobRequest::mutable_arguments() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +SubmitCustomTrainingJobRequest::mutable_arguments() { // @@protoc_insertion_point(field_mutable_map:viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.arguments) return _internal_mutable_arguments(); } @@ -4436,54 +3822,51 @@ inline ::google::protobuf::Map* SubmitCustomTrainingJo // string id = 1 [json_name = "id"]; inline void SubmitCustomTrainingJobResponse::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); + id_.ClearToEmpty(); } -inline const std::string& SubmitCustomTrainingJobResponse::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& SubmitCustomTrainingJobResponse::id() const { // @@protoc_insertion_point(field_get:viam.app.mltraining.v1.SubmitCustomTrainingJobResponse.id) return _internal_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void SubmitCustomTrainingJobResponse::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void SubmitCustomTrainingJobResponse::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.mltraining.v1.SubmitCustomTrainingJobResponse.id) } -inline std::string* SubmitCustomTrainingJobResponse::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* SubmitCustomTrainingJobResponse::mutable_id() { std::string* _s = _internal_mutable_id(); // @@protoc_insertion_point(field_mutable:viam.app.mltraining.v1.SubmitCustomTrainingJobResponse.id) return _s; } inline const std::string& SubmitCustomTrainingJobResponse::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); + return id_.Get(); } inline void SubmitCustomTrainingJobResponse::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); + + id_.Set(value, GetArenaForAllocation()); } inline std::string* SubmitCustomTrainingJobResponse::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); + + return id_.Mutable(GetArenaForAllocation()); } inline std::string* SubmitCustomTrainingJobResponse::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.mltraining.v1.SubmitCustomTrainingJobResponse.id) - return _impl_.id_.Release(); -} -inline void SubmitCustomTrainingJobResponse::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return id_.Release(); +} +inline void SubmitCustomTrainingJobResponse::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.mltraining.v1.SubmitCustomTrainingJobResponse.id) } @@ -4493,54 +3876,51 @@ inline void SubmitCustomTrainingJobResponse::set_allocated_id(std::string* value // string id = 1 [json_name = "id"]; inline void GetTrainingJobRequest::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); + id_.ClearToEmpty(); } -inline const std::string& GetTrainingJobRequest::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetTrainingJobRequest::id() const { // @@protoc_insertion_point(field_get:viam.app.mltraining.v1.GetTrainingJobRequest.id) return _internal_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetTrainingJobRequest::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetTrainingJobRequest::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.mltraining.v1.GetTrainingJobRequest.id) } -inline std::string* GetTrainingJobRequest::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetTrainingJobRequest::mutable_id() { std::string* _s = _internal_mutable_id(); // @@protoc_insertion_point(field_mutable:viam.app.mltraining.v1.GetTrainingJobRequest.id) return _s; } inline const std::string& GetTrainingJobRequest::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); + return id_.Get(); } inline void GetTrainingJobRequest::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); + + id_.Set(value, GetArenaForAllocation()); } inline std::string* GetTrainingJobRequest::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); + + return id_.Mutable(GetArenaForAllocation()); } inline std::string* GetTrainingJobRequest::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.mltraining.v1.GetTrainingJobRequest.id) - return _impl_.id_.Release(); -} -inline void GetTrainingJobRequest::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return id_.Release(); +} +inline void GetTrainingJobRequest::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.mltraining.v1.GetTrainingJobRequest.id) } @@ -4549,98 +3929,92 @@ inline void GetTrainingJobRequest::set_allocated_id(std::string* value) { // GetTrainingJobResponse // .viam.app.mltraining.v1.TrainingJobMetadata metadata = 1 [json_name = "metadata"]; +inline bool GetTrainingJobResponse::_internal_has_metadata() const { + return this != internal_default_instance() && metadata_ != nullptr; +} inline bool GetTrainingJobResponse::has_metadata() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.metadata_ != nullptr); - return value; + return _internal_has_metadata(); } inline void GetTrainingJobResponse::clear_metadata() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.metadata_ != nullptr) _impl_.metadata_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && metadata_ != nullptr) { + delete metadata_; + } + metadata_ = nullptr; } inline const ::viam::app::mltraining::v1::TrainingJobMetadata& GetTrainingJobResponse::_internal_metadata() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::mltraining::v1::TrainingJobMetadata* p = _impl_.metadata_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::mltraining::v1::_TrainingJobMetadata_default_instance_); + const ::viam::app::mltraining::v1::TrainingJobMetadata* p = metadata_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::mltraining::v1::_TrainingJobMetadata_default_instance_); } -inline const ::viam::app::mltraining::v1::TrainingJobMetadata& GetTrainingJobResponse::metadata() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::app::mltraining::v1::TrainingJobMetadata& GetTrainingJobResponse::metadata() const { // @@protoc_insertion_point(field_get:viam.app.mltraining.v1.GetTrainingJobResponse.metadata) return _internal_metadata(); } -inline void GetTrainingJobResponse::unsafe_arena_set_allocated_metadata(::viam::app::mltraining::v1::TrainingJobMetadata* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.metadata_); +inline void GetTrainingJobResponse::unsafe_arena_set_allocated_metadata( + ::viam::app::mltraining::v1::TrainingJobMetadata* metadata) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(metadata_); } - _impl_.metadata_ = reinterpret_cast<::viam::app::mltraining::v1::TrainingJobMetadata*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + metadata_ = metadata; + if (metadata) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.mltraining.v1.GetTrainingJobResponse.metadata) } inline ::viam::app::mltraining::v1::TrainingJobMetadata* GetTrainingJobResponse::release_metadata() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::mltraining::v1::TrainingJobMetadata* released = _impl_.metadata_; - _impl_.metadata_ = nullptr; + + ::viam::app::mltraining::v1::TrainingJobMetadata* temp = metadata_; + metadata_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::app::mltraining::v1::TrainingJobMetadata* GetTrainingJobResponse::unsafe_arena_release_metadata() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.mltraining.v1.GetTrainingJobResponse.metadata) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::mltraining::v1::TrainingJobMetadata* temp = _impl_.metadata_; - _impl_.metadata_ = nullptr; + + ::viam::app::mltraining::v1::TrainingJobMetadata* temp = metadata_; + metadata_ = nullptr; return temp; } inline ::viam::app::mltraining::v1::TrainingJobMetadata* GetTrainingJobResponse::_internal_mutable_metadata() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.metadata_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::mltraining::v1::TrainingJobMetadata>(GetArena()); - _impl_.metadata_ = reinterpret_cast<::viam::app::mltraining::v1::TrainingJobMetadata*>(p); + + if (metadata_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::mltraining::v1::TrainingJobMetadata>(GetArenaForAllocation()); + metadata_ = p; } - return _impl_.metadata_; + return metadata_; } -inline ::viam::app::mltraining::v1::TrainingJobMetadata* GetTrainingJobResponse::mutable_metadata() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::app::mltraining::v1::TrainingJobMetadata* GetTrainingJobResponse::mutable_metadata() { ::viam::app::mltraining::v1::TrainingJobMetadata* _msg = _internal_mutable_metadata(); // @@protoc_insertion_point(field_mutable:viam.app.mltraining.v1.GetTrainingJobResponse.metadata) return _msg; } -inline void GetTrainingJobResponse::set_allocated_metadata(::viam::app::mltraining::v1::TrainingJobMetadata* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetTrainingJobResponse::set_allocated_metadata(::viam::app::mltraining::v1::TrainingJobMetadata* metadata) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::mltraining::v1::TrainingJobMetadata*>(_impl_.metadata_); + delete metadata_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::mltraining::v1::TrainingJobMetadata*>(value)->GetArena(); + if (metadata) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(metadata); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + metadata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, metadata, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.metadata_ = reinterpret_cast<::viam::app::mltraining::v1::TrainingJobMetadata*>(value); + metadata_ = metadata; // @@protoc_insertion_point(field_set_allocated:viam.app.mltraining.v1.GetTrainingJobResponse.metadata) } @@ -4650,79 +4024,73 @@ inline void GetTrainingJobResponse::set_allocated_metadata(::viam::app::mltraini // string organization_id = 1 [json_name = "organizationId"]; inline void ListTrainingJobsRequest::clear_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.ClearToEmpty(); + organization_id_.ClearToEmpty(); } -inline const std::string& ListTrainingJobsRequest::organization_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ListTrainingJobsRequest::organization_id() const { // @@protoc_insertion_point(field_get:viam.app.mltraining.v1.ListTrainingJobsRequest.organization_id) return _internal_organization_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void ListTrainingJobsRequest::set_organization_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ListTrainingJobsRequest::set_organization_id(ArgT0&& arg0, ArgT... args) { + + organization_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.mltraining.v1.ListTrainingJobsRequest.organization_id) } -inline std::string* ListTrainingJobsRequest::mutable_organization_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ListTrainingJobsRequest::mutable_organization_id() { std::string* _s = _internal_mutable_organization_id(); // @@protoc_insertion_point(field_mutable:viam.app.mltraining.v1.ListTrainingJobsRequest.organization_id) return _s; } inline const std::string& ListTrainingJobsRequest::_internal_organization_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.organization_id_.Get(); + return organization_id_.Get(); } inline void ListTrainingJobsRequest::_internal_set_organization_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(value, GetArena()); + + organization_id_.Set(value, GetArenaForAllocation()); } inline std::string* ListTrainingJobsRequest::_internal_mutable_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.organization_id_.Mutable( GetArena()); + + return organization_id_.Mutable(GetArenaForAllocation()); } inline std::string* ListTrainingJobsRequest::release_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.mltraining.v1.ListTrainingJobsRequest.organization_id) - return _impl_.organization_id_.Release(); -} -inline void ListTrainingJobsRequest::set_allocated_organization_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.organization_id_.IsDefault()) { - _impl_.organization_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return organization_id_.Release(); +} +inline void ListTrainingJobsRequest::set_allocated_organization_id(std::string* organization_id) { + if (organization_id != nullptr) { + + } else { + + } + organization_id_.SetAllocated(organization_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (organization_id_.IsDefault()) { + organization_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.mltraining.v1.ListTrainingJobsRequest.organization_id) } // .viam.app.mltraining.v1.TrainingStatus status = 2 [json_name = "status"]; inline void ListTrainingJobsRequest::clear_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.status_ = 0; + status_ = 0; +} +inline ::viam::app::mltraining::v1::TrainingStatus ListTrainingJobsRequest::_internal_status() const { + return static_cast< ::viam::app::mltraining::v1::TrainingStatus >(status_); } inline ::viam::app::mltraining::v1::TrainingStatus ListTrainingJobsRequest::status() const { // @@protoc_insertion_point(field_get:viam.app.mltraining.v1.ListTrainingJobsRequest.status) return _internal_status(); } +inline void ListTrainingJobsRequest::_internal_set_status(::viam::app::mltraining::v1::TrainingStatus value) { + + status_ = value; +} inline void ListTrainingJobsRequest::set_status(::viam::app::mltraining::v1::TrainingStatus value) { _internal_set_status(value); // @@protoc_insertion_point(field_set:viam.app.mltraining.v1.ListTrainingJobsRequest.status) } -inline ::viam::app::mltraining::v1::TrainingStatus ListTrainingJobsRequest::_internal_status() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::viam::app::mltraining::v1::TrainingStatus>(_impl_.status_); -} -inline void ListTrainingJobsRequest::_internal_set_status(::viam::app::mltraining::v1::TrainingStatus value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.status_ = value; -} // ------------------------------------------------------------------- @@ -4730,51 +4098,42 @@ inline void ListTrainingJobsRequest::_internal_set_status(::viam::app::mltrainin // repeated .viam.app.mltraining.v1.TrainingJobMetadata jobs = 1 [json_name = "jobs"]; inline int ListTrainingJobsResponse::_internal_jobs_size() const { - return _internal_jobs().size(); + return jobs_.size(); } inline int ListTrainingJobsResponse::jobs_size() const { return _internal_jobs_size(); } inline void ListTrainingJobsResponse::clear_jobs() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.jobs_.Clear(); + jobs_.Clear(); } -inline ::viam::app::mltraining::v1::TrainingJobMetadata* ListTrainingJobsResponse::mutable_jobs(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::app::mltraining::v1::TrainingJobMetadata* ListTrainingJobsResponse::mutable_jobs(int index) { // @@protoc_insertion_point(field_mutable:viam.app.mltraining.v1.ListTrainingJobsResponse.jobs) - return _internal_mutable_jobs()->Mutable(index); + return jobs_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::app::mltraining::v1::TrainingJobMetadata>* ListTrainingJobsResponse::mutable_jobs() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::mltraining::v1::TrainingJobMetadata >* +ListTrainingJobsResponse::mutable_jobs() { // @@protoc_insertion_point(field_mutable_list:viam.app.mltraining.v1.ListTrainingJobsResponse.jobs) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_jobs(); + return &jobs_; +} +inline const ::viam::app::mltraining::v1::TrainingJobMetadata& ListTrainingJobsResponse::_internal_jobs(int index) const { + return jobs_.Get(index); } -inline const ::viam::app::mltraining::v1::TrainingJobMetadata& ListTrainingJobsResponse::jobs(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::app::mltraining::v1::TrainingJobMetadata& ListTrainingJobsResponse::jobs(int index) const { // @@protoc_insertion_point(field_get:viam.app.mltraining.v1.ListTrainingJobsResponse.jobs) - return _internal_jobs().Get(index); + return _internal_jobs(index); } -inline ::viam::app::mltraining::v1::TrainingJobMetadata* ListTrainingJobsResponse::add_jobs() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::mltraining::v1::TrainingJobMetadata* _add = _internal_mutable_jobs()->Add(); +inline ::viam::app::mltraining::v1::TrainingJobMetadata* ListTrainingJobsResponse::_internal_add_jobs() { + return jobs_.Add(); +} +inline ::viam::app::mltraining::v1::TrainingJobMetadata* ListTrainingJobsResponse::add_jobs() { + ::viam::app::mltraining::v1::TrainingJobMetadata* _add = _internal_add_jobs(); // @@protoc_insertion_point(field_add:viam.app.mltraining.v1.ListTrainingJobsResponse.jobs) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::mltraining::v1::TrainingJobMetadata>& ListTrainingJobsResponse::jobs() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::mltraining::v1::TrainingJobMetadata >& +ListTrainingJobsResponse::jobs() const { // @@protoc_insertion_point(field_list:viam.app.mltraining.v1.ListTrainingJobsResponse.jobs) - return _internal_jobs(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::app::mltraining::v1::TrainingJobMetadata>& -ListTrainingJobsResponse::_internal_jobs() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.jobs_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::app::mltraining::v1::TrainingJobMetadata>* -ListTrainingJobsResponse::_internal_mutable_jobs() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.jobs_; + return jobs_; } // ------------------------------------------------------------------- @@ -4783,1074 +4142,982 @@ ListTrainingJobsResponse::_internal_mutable_jobs() { // string id = 7 [json_name = "id", (.tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""]; inline void TrainingJobMetadata::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); + id_.ClearToEmpty(); } -inline const std::string& TrainingJobMetadata::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& TrainingJobMetadata::id() const { // @@protoc_insertion_point(field_get:viam.app.mltraining.v1.TrainingJobMetadata.id) return _internal_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void TrainingJobMetadata::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void TrainingJobMetadata::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.mltraining.v1.TrainingJobMetadata.id) } -inline std::string* TrainingJobMetadata::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* TrainingJobMetadata::mutable_id() { std::string* _s = _internal_mutable_id(); // @@protoc_insertion_point(field_mutable:viam.app.mltraining.v1.TrainingJobMetadata.id) return _s; } inline const std::string& TrainingJobMetadata::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); + return id_.Get(); } inline void TrainingJobMetadata::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); + + id_.Set(value, GetArenaForAllocation()); } inline std::string* TrainingJobMetadata::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); + + return id_.Mutable(GetArenaForAllocation()); } inline std::string* TrainingJobMetadata::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.mltraining.v1.TrainingJobMetadata.id) - return _impl_.id_.Release(); -} -inline void TrainingJobMetadata::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return id_.Release(); +} +inline void TrainingJobMetadata::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.mltraining.v1.TrainingJobMetadata.id) } // string dataset_id = 11 [json_name = "datasetId", (.tagger.v1.tags) = "bson:\"dataset_id\" json:\"dataset_id\""]; inline void TrainingJobMetadata::clear_dataset_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.dataset_id_.ClearToEmpty(); + dataset_id_.ClearToEmpty(); } -inline const std::string& TrainingJobMetadata::dataset_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& TrainingJobMetadata::dataset_id() const { // @@protoc_insertion_point(field_get:viam.app.mltraining.v1.TrainingJobMetadata.dataset_id) return _internal_dataset_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void TrainingJobMetadata::set_dataset_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.dataset_id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void TrainingJobMetadata::set_dataset_id(ArgT0&& arg0, ArgT... args) { + + dataset_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.mltraining.v1.TrainingJobMetadata.dataset_id) } -inline std::string* TrainingJobMetadata::mutable_dataset_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* TrainingJobMetadata::mutable_dataset_id() { std::string* _s = _internal_mutable_dataset_id(); // @@protoc_insertion_point(field_mutable:viam.app.mltraining.v1.TrainingJobMetadata.dataset_id) return _s; } inline const std::string& TrainingJobMetadata::_internal_dataset_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.dataset_id_.Get(); + return dataset_id_.Get(); } inline void TrainingJobMetadata::_internal_set_dataset_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.dataset_id_.Set(value, GetArena()); + + dataset_id_.Set(value, GetArenaForAllocation()); } inline std::string* TrainingJobMetadata::_internal_mutable_dataset_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.dataset_id_.Mutable( GetArena()); + + return dataset_id_.Mutable(GetArenaForAllocation()); } inline std::string* TrainingJobMetadata::release_dataset_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.mltraining.v1.TrainingJobMetadata.dataset_id) - return _impl_.dataset_id_.Release(); -} -inline void TrainingJobMetadata::set_allocated_dataset_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.dataset_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.dataset_id_.IsDefault()) { - _impl_.dataset_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return dataset_id_.Release(); +} +inline void TrainingJobMetadata::set_allocated_dataset_id(std::string* dataset_id) { + if (dataset_id != nullptr) { + + } else { + + } + dataset_id_.SetAllocated(dataset_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (dataset_id_.IsDefault()) { + dataset_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.mltraining.v1.TrainingJobMetadata.dataset_id) } // string organization_id = 12 [json_name = "organizationId", (.tagger.v1.tags) = "bson:\"organization_id\" json:\"organization_id\""]; inline void TrainingJobMetadata::clear_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.ClearToEmpty(); + organization_id_.ClearToEmpty(); } -inline const std::string& TrainingJobMetadata::organization_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& TrainingJobMetadata::organization_id() const { // @@protoc_insertion_point(field_get:viam.app.mltraining.v1.TrainingJobMetadata.organization_id) return _internal_organization_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void TrainingJobMetadata::set_organization_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void TrainingJobMetadata::set_organization_id(ArgT0&& arg0, ArgT... args) { + + organization_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.mltraining.v1.TrainingJobMetadata.organization_id) } -inline std::string* TrainingJobMetadata::mutable_organization_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* TrainingJobMetadata::mutable_organization_id() { std::string* _s = _internal_mutable_organization_id(); // @@protoc_insertion_point(field_mutable:viam.app.mltraining.v1.TrainingJobMetadata.organization_id) return _s; } inline const std::string& TrainingJobMetadata::_internal_organization_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.organization_id_.Get(); + return organization_id_.Get(); } inline void TrainingJobMetadata::_internal_set_organization_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(value, GetArena()); + + organization_id_.Set(value, GetArenaForAllocation()); } inline std::string* TrainingJobMetadata::_internal_mutable_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.organization_id_.Mutable( GetArena()); + + return organization_id_.Mutable(GetArenaForAllocation()); } inline std::string* TrainingJobMetadata::release_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.mltraining.v1.TrainingJobMetadata.organization_id) - return _impl_.organization_id_.Release(); -} -inline void TrainingJobMetadata::set_allocated_organization_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.organization_id_.IsDefault()) { - _impl_.organization_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return organization_id_.Release(); +} +inline void TrainingJobMetadata::set_allocated_organization_id(std::string* organization_id) { + if (organization_id != nullptr) { + + } else { + + } + organization_id_.SetAllocated(organization_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (organization_id_.IsDefault()) { + organization_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.mltraining.v1.TrainingJobMetadata.organization_id) } // string model_name = 13 [json_name = "modelName", (.tagger.v1.tags) = "bson:\"model_name\" json:\"model_name\""]; inline void TrainingJobMetadata::clear_model_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.model_name_.ClearToEmpty(); + model_name_.ClearToEmpty(); } -inline const std::string& TrainingJobMetadata::model_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& TrainingJobMetadata::model_name() const { // @@protoc_insertion_point(field_get:viam.app.mltraining.v1.TrainingJobMetadata.model_name) return _internal_model_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void TrainingJobMetadata::set_model_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.model_name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void TrainingJobMetadata::set_model_name(ArgT0&& arg0, ArgT... args) { + + model_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.mltraining.v1.TrainingJobMetadata.model_name) } -inline std::string* TrainingJobMetadata::mutable_model_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* TrainingJobMetadata::mutable_model_name() { std::string* _s = _internal_mutable_model_name(); // @@protoc_insertion_point(field_mutable:viam.app.mltraining.v1.TrainingJobMetadata.model_name) return _s; } inline const std::string& TrainingJobMetadata::_internal_model_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.model_name_.Get(); + return model_name_.Get(); } inline void TrainingJobMetadata::_internal_set_model_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.model_name_.Set(value, GetArena()); + + model_name_.Set(value, GetArenaForAllocation()); } inline std::string* TrainingJobMetadata::_internal_mutable_model_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.model_name_.Mutable( GetArena()); + + return model_name_.Mutable(GetArenaForAllocation()); } inline std::string* TrainingJobMetadata::release_model_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.mltraining.v1.TrainingJobMetadata.model_name) - return _impl_.model_name_.Release(); -} -inline void TrainingJobMetadata::set_allocated_model_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.model_name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.model_name_.IsDefault()) { - _impl_.model_name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return model_name_.Release(); +} +inline void TrainingJobMetadata::set_allocated_model_name(std::string* model_name) { + if (model_name != nullptr) { + + } else { + + } + model_name_.SetAllocated(model_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (model_name_.IsDefault()) { + model_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.mltraining.v1.TrainingJobMetadata.model_name) } // string model_version = 14 [json_name = "modelVersion", (.tagger.v1.tags) = "bson:\"model_version\" json:\"model_version\""]; inline void TrainingJobMetadata::clear_model_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.model_version_.ClearToEmpty(); + model_version_.ClearToEmpty(); } -inline const std::string& TrainingJobMetadata::model_version() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& TrainingJobMetadata::model_version() const { // @@protoc_insertion_point(field_get:viam.app.mltraining.v1.TrainingJobMetadata.model_version) return _internal_model_version(); } -template -inline PROTOBUF_ALWAYS_INLINE void TrainingJobMetadata::set_model_version(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.model_version_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void TrainingJobMetadata::set_model_version(ArgT0&& arg0, ArgT... args) { + + model_version_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.mltraining.v1.TrainingJobMetadata.model_version) } -inline std::string* TrainingJobMetadata::mutable_model_version() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* TrainingJobMetadata::mutable_model_version() { std::string* _s = _internal_mutable_model_version(); // @@protoc_insertion_point(field_mutable:viam.app.mltraining.v1.TrainingJobMetadata.model_version) return _s; } inline const std::string& TrainingJobMetadata::_internal_model_version() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.model_version_.Get(); + return model_version_.Get(); } inline void TrainingJobMetadata::_internal_set_model_version(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.model_version_.Set(value, GetArena()); + + model_version_.Set(value, GetArenaForAllocation()); } inline std::string* TrainingJobMetadata::_internal_mutable_model_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.model_version_.Mutable( GetArena()); + + return model_version_.Mutable(GetArenaForAllocation()); } inline std::string* TrainingJobMetadata::release_model_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.mltraining.v1.TrainingJobMetadata.model_version) - return _impl_.model_version_.Release(); -} -inline void TrainingJobMetadata::set_allocated_model_version(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.model_version_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.model_version_.IsDefault()) { - _impl_.model_version_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return model_version_.Release(); +} +inline void TrainingJobMetadata::set_allocated_model_version(std::string* model_version) { + if (model_version != nullptr) { + + } else { + + } + model_version_.SetAllocated(model_version, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (model_version_.IsDefault()) { + model_version_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.mltraining.v1.TrainingJobMetadata.model_version) } // .viam.app.mltraining.v1.ModelType model_type = 15 [json_name = "modelType", (.tagger.v1.tags) = "bson:\"model_type\" json:\"model_type\""]; inline void TrainingJobMetadata::clear_model_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.model_type_ = 0; + model_type_ = 0; +} +inline ::viam::app::mltraining::v1::ModelType TrainingJobMetadata::_internal_model_type() const { + return static_cast< ::viam::app::mltraining::v1::ModelType >(model_type_); } inline ::viam::app::mltraining::v1::ModelType TrainingJobMetadata::model_type() const { // @@protoc_insertion_point(field_get:viam.app.mltraining.v1.TrainingJobMetadata.model_type) return _internal_model_type(); } +inline void TrainingJobMetadata::_internal_set_model_type(::viam::app::mltraining::v1::ModelType value) { + + model_type_ = value; +} inline void TrainingJobMetadata::set_model_type(::viam::app::mltraining::v1::ModelType value) { _internal_set_model_type(value); // @@protoc_insertion_point(field_set:viam.app.mltraining.v1.TrainingJobMetadata.model_type) } -inline ::viam::app::mltraining::v1::ModelType TrainingJobMetadata::_internal_model_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::viam::app::mltraining::v1::ModelType>(_impl_.model_type_); -} -inline void TrainingJobMetadata::_internal_set_model_type(::viam::app::mltraining::v1::ModelType value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.model_type_ = value; -} // .viam.app.mltraining.v1.ModelFramework model_framework = 17 [json_name = "modelFramework", (.tagger.v1.tags) = "bson:\"model_framework\" json:\"model_framework\""]; inline void TrainingJobMetadata::clear_model_framework() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.model_framework_ = 0; + model_framework_ = 0; +} +inline ::viam::app::mltraining::v1::ModelFramework TrainingJobMetadata::_internal_model_framework() const { + return static_cast< ::viam::app::mltraining::v1::ModelFramework >(model_framework_); } inline ::viam::app::mltraining::v1::ModelFramework TrainingJobMetadata::model_framework() const { // @@protoc_insertion_point(field_get:viam.app.mltraining.v1.TrainingJobMetadata.model_framework) return _internal_model_framework(); } +inline void TrainingJobMetadata::_internal_set_model_framework(::viam::app::mltraining::v1::ModelFramework value) { + + model_framework_ = value; +} inline void TrainingJobMetadata::set_model_framework(::viam::app::mltraining::v1::ModelFramework value) { _internal_set_model_framework(value); // @@protoc_insertion_point(field_set:viam.app.mltraining.v1.TrainingJobMetadata.model_framework) } -inline ::viam::app::mltraining::v1::ModelFramework TrainingJobMetadata::_internal_model_framework() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::viam::app::mltraining::v1::ModelFramework>(_impl_.model_framework_); -} -inline void TrainingJobMetadata::_internal_set_model_framework(::viam::app::mltraining::v1::ModelFramework value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.model_framework_ = value; -} // bool is_custom_job = 18 [json_name = "isCustomJob", (.tagger.v1.tags) = "bson:\"is_custom_job\" json:\"is_custom_job\""]; inline void TrainingJobMetadata::clear_is_custom_job() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.is_custom_job_ = false; + is_custom_job_ = false; +} +inline bool TrainingJobMetadata::_internal_is_custom_job() const { + return is_custom_job_; } inline bool TrainingJobMetadata::is_custom_job() const { // @@protoc_insertion_point(field_get:viam.app.mltraining.v1.TrainingJobMetadata.is_custom_job) return _internal_is_custom_job(); } +inline void TrainingJobMetadata::_internal_set_is_custom_job(bool value) { + + is_custom_job_ = value; +} inline void TrainingJobMetadata::set_is_custom_job(bool value) { _internal_set_is_custom_job(value); // @@protoc_insertion_point(field_set:viam.app.mltraining.v1.TrainingJobMetadata.is_custom_job) } -inline bool TrainingJobMetadata::_internal_is_custom_job() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.is_custom_job_; -} -inline void TrainingJobMetadata::_internal_set_is_custom_job(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.is_custom_job_ = value; -} // string registry_item_id = 19 [json_name = "registryItemId", (.tagger.v1.tags) = "bson:\"registry_item_id\" json:\"registry_item_id\""]; inline void TrainingJobMetadata::clear_registry_item_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.registry_item_id_.ClearToEmpty(); + registry_item_id_.ClearToEmpty(); } -inline const std::string& TrainingJobMetadata::registry_item_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& TrainingJobMetadata::registry_item_id() const { // @@protoc_insertion_point(field_get:viam.app.mltraining.v1.TrainingJobMetadata.registry_item_id) return _internal_registry_item_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void TrainingJobMetadata::set_registry_item_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.registry_item_id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void TrainingJobMetadata::set_registry_item_id(ArgT0&& arg0, ArgT... args) { + + registry_item_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.mltraining.v1.TrainingJobMetadata.registry_item_id) } -inline std::string* TrainingJobMetadata::mutable_registry_item_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* TrainingJobMetadata::mutable_registry_item_id() { std::string* _s = _internal_mutable_registry_item_id(); // @@protoc_insertion_point(field_mutable:viam.app.mltraining.v1.TrainingJobMetadata.registry_item_id) return _s; } inline const std::string& TrainingJobMetadata::_internal_registry_item_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.registry_item_id_.Get(); + return registry_item_id_.Get(); } inline void TrainingJobMetadata::_internal_set_registry_item_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.registry_item_id_.Set(value, GetArena()); + + registry_item_id_.Set(value, GetArenaForAllocation()); } inline std::string* TrainingJobMetadata::_internal_mutable_registry_item_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.registry_item_id_.Mutable( GetArena()); + + return registry_item_id_.Mutable(GetArenaForAllocation()); } inline std::string* TrainingJobMetadata::release_registry_item_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.mltraining.v1.TrainingJobMetadata.registry_item_id) - return _impl_.registry_item_id_.Release(); -} -inline void TrainingJobMetadata::set_allocated_registry_item_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.registry_item_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.registry_item_id_.IsDefault()) { - _impl_.registry_item_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return registry_item_id_.Release(); +} +inline void TrainingJobMetadata::set_allocated_registry_item_id(std::string* registry_item_id) { + if (registry_item_id != nullptr) { + + } else { + + } + registry_item_id_.SetAllocated(registry_item_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (registry_item_id_.IsDefault()) { + registry_item_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.mltraining.v1.TrainingJobMetadata.registry_item_id) } // string registry_item_version = 20 [json_name = "registryItemVersion", (.tagger.v1.tags) = "bson:\"registry_item_version\" json:\"registry_item_version\""]; inline void TrainingJobMetadata::clear_registry_item_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.registry_item_version_.ClearToEmpty(); + registry_item_version_.ClearToEmpty(); } -inline const std::string& TrainingJobMetadata::registry_item_version() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& TrainingJobMetadata::registry_item_version() const { // @@protoc_insertion_point(field_get:viam.app.mltraining.v1.TrainingJobMetadata.registry_item_version) return _internal_registry_item_version(); } -template -inline PROTOBUF_ALWAYS_INLINE void TrainingJobMetadata::set_registry_item_version(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.registry_item_version_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void TrainingJobMetadata::set_registry_item_version(ArgT0&& arg0, ArgT... args) { + + registry_item_version_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.mltraining.v1.TrainingJobMetadata.registry_item_version) } -inline std::string* TrainingJobMetadata::mutable_registry_item_version() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* TrainingJobMetadata::mutable_registry_item_version() { std::string* _s = _internal_mutable_registry_item_version(); // @@protoc_insertion_point(field_mutable:viam.app.mltraining.v1.TrainingJobMetadata.registry_item_version) return _s; } inline const std::string& TrainingJobMetadata::_internal_registry_item_version() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.registry_item_version_.Get(); + return registry_item_version_.Get(); } inline void TrainingJobMetadata::_internal_set_registry_item_version(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.registry_item_version_.Set(value, GetArena()); + + registry_item_version_.Set(value, GetArenaForAllocation()); } inline std::string* TrainingJobMetadata::_internal_mutable_registry_item_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.registry_item_version_.Mutable( GetArena()); + + return registry_item_version_.Mutable(GetArenaForAllocation()); } inline std::string* TrainingJobMetadata::release_registry_item_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.mltraining.v1.TrainingJobMetadata.registry_item_version) - return _impl_.registry_item_version_.Release(); -} -inline void TrainingJobMetadata::set_allocated_registry_item_version(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.registry_item_version_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.registry_item_version_.IsDefault()) { - _impl_.registry_item_version_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return registry_item_version_.Release(); +} +inline void TrainingJobMetadata::set_allocated_registry_item_version(std::string* registry_item_version) { + if (registry_item_version != nullptr) { + + } else { + + } + registry_item_version_.SetAllocated(registry_item_version, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (registry_item_version_.IsDefault()) { + registry_item_version_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.mltraining.v1.TrainingJobMetadata.registry_item_version) } // .viam.app.mltraining.v1.TrainingStatus status = 2 [json_name = "status", (.tagger.v1.tags) = "bson:\"status\" json:\"status\""]; inline void TrainingJobMetadata::clear_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.status_ = 0; + status_ = 0; +} +inline ::viam::app::mltraining::v1::TrainingStatus TrainingJobMetadata::_internal_status() const { + return static_cast< ::viam::app::mltraining::v1::TrainingStatus >(status_); } inline ::viam::app::mltraining::v1::TrainingStatus TrainingJobMetadata::status() const { // @@protoc_insertion_point(field_get:viam.app.mltraining.v1.TrainingJobMetadata.status) return _internal_status(); } +inline void TrainingJobMetadata::_internal_set_status(::viam::app::mltraining::v1::TrainingStatus value) { + + status_ = value; +} inline void TrainingJobMetadata::set_status(::viam::app::mltraining::v1::TrainingStatus value) { _internal_set_status(value); // @@protoc_insertion_point(field_set:viam.app.mltraining.v1.TrainingJobMetadata.status) } -inline ::viam::app::mltraining::v1::TrainingStatus TrainingJobMetadata::_internal_status() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::viam::app::mltraining::v1::TrainingStatus>(_impl_.status_); -} -inline void TrainingJobMetadata::_internal_set_status(::viam::app::mltraining::v1::TrainingStatus value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.status_ = value; -} // .google.rpc.Status error_status = 8 [json_name = "errorStatus", (.tagger.v1.tags) = "bson:\"error_status\" json:\"error_status\""]; +inline bool TrainingJobMetadata::_internal_has_error_status() const { + return this != internal_default_instance() && error_status_ != nullptr; +} inline bool TrainingJobMetadata::has_error_status() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || _impl_.error_status_ != nullptr); - return value; + return _internal_has_error_status(); } inline const ::google::rpc::Status& TrainingJobMetadata::_internal_error_status() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::rpc::Status* p = _impl_.error_status_; - return p != nullptr ? *p : reinterpret_cast(::google::rpc::_Status_default_instance_); + const ::google::rpc::Status* p = error_status_; + return p != nullptr ? *p : reinterpret_cast( + ::google::rpc::_Status_default_instance_); } -inline const ::google::rpc::Status& TrainingJobMetadata::error_status() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::rpc::Status& TrainingJobMetadata::error_status() const { // @@protoc_insertion_point(field_get:viam.app.mltraining.v1.TrainingJobMetadata.error_status) return _internal_error_status(); } -inline void TrainingJobMetadata::unsafe_arena_set_allocated_error_status(::google::rpc::Status* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.error_status_); +inline void TrainingJobMetadata::unsafe_arena_set_allocated_error_status( + ::google::rpc::Status* error_status) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(error_status_); } - _impl_.error_status_ = reinterpret_cast<::google::rpc::Status*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000004u; + error_status_ = error_status; + if (error_status) { + } else { - _impl_._has_bits_[0] &= ~0x00000004u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.mltraining.v1.TrainingJobMetadata.error_status) } inline ::google::rpc::Status* TrainingJobMetadata::release_error_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000004u; - ::google::rpc::Status* released = _impl_.error_status_; - _impl_.error_status_ = nullptr; + + ::google::rpc::Status* temp = error_status_; + error_status_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::rpc::Status* TrainingJobMetadata::unsafe_arena_release_error_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.mltraining.v1.TrainingJobMetadata.error_status) - - _impl_._has_bits_[0] &= ~0x00000004u; - ::google::rpc::Status* temp = _impl_.error_status_; - _impl_.error_status_ = nullptr; + + ::google::rpc::Status* temp = error_status_; + error_status_ = nullptr; return temp; } inline ::google::rpc::Status* TrainingJobMetadata::_internal_mutable_error_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - if (_impl_.error_status_ == nullptr) { - auto* p = CreateMaybeMessage<::google::rpc::Status>(GetArena()); - _impl_.error_status_ = reinterpret_cast<::google::rpc::Status*>(p); + + if (error_status_ == nullptr) { + auto* p = CreateMaybeMessage<::google::rpc::Status>(GetArenaForAllocation()); + error_status_ = p; } - return _impl_.error_status_; + return error_status_; } -inline ::google::rpc::Status* TrainingJobMetadata::mutable_error_status() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::rpc::Status* TrainingJobMetadata::mutable_error_status() { ::google::rpc::Status* _msg = _internal_mutable_error_status(); // @@protoc_insertion_point(field_mutable:viam.app.mltraining.v1.TrainingJobMetadata.error_status) return _msg; } -inline void TrainingJobMetadata::set_allocated_error_status(::google::rpc::Status* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TrainingJobMetadata::set_allocated_error_status(::google::rpc::Status* error_status) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.error_status_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(error_status_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (error_status) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(error_status)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + error_status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, error_status, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000004u; + } else { - _impl_._has_bits_[0] &= ~0x00000004u; + } - - _impl_.error_status_ = reinterpret_cast<::google::rpc::Status*>(value); + error_status_ = error_status; // @@protoc_insertion_point(field_set_allocated:viam.app.mltraining.v1.TrainingJobMetadata.error_status) } // .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\" json:\"created_on\""]; +inline bool TrainingJobMetadata::_internal_has_created_on() const { + return this != internal_default_instance() && created_on_ != nullptr; +} inline bool TrainingJobMetadata::has_created_on() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.created_on_ != nullptr); - return value; + return _internal_has_created_on(); } -inline const ::google::protobuf::Timestamp& TrainingJobMetadata::_internal_created_on() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Timestamp* p = _impl_.created_on_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& TrainingJobMetadata::_internal_created_on() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = created_on_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); } -inline const ::google::protobuf::Timestamp& TrainingJobMetadata::created_on() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& TrainingJobMetadata::created_on() const { // @@protoc_insertion_point(field_get:viam.app.mltraining.v1.TrainingJobMetadata.created_on) return _internal_created_on(); } -inline void TrainingJobMetadata::unsafe_arena_set_allocated_created_on(::google::protobuf::Timestamp* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.created_on_); +inline void TrainingJobMetadata::unsafe_arena_set_allocated_created_on( + ::PROTOBUF_NAMESPACE_ID::Timestamp* created_on) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(created_on_); } - _impl_.created_on_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + created_on_ = created_on; + if (created_on) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.mltraining.v1.TrainingJobMetadata.created_on) } -inline ::google::protobuf::Timestamp* TrainingJobMetadata::release_created_on() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Timestamp* released = _impl_.created_on_; - _impl_.created_on_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* TrainingJobMetadata::release_created_on() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = created_on_; + created_on_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Timestamp* TrainingJobMetadata::unsafe_arena_release_created_on() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* TrainingJobMetadata::unsafe_arena_release_created_on() { // @@protoc_insertion_point(field_release:viam.app.mltraining.v1.TrainingJobMetadata.created_on) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Timestamp* temp = _impl_.created_on_; - _impl_.created_on_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = created_on_; + created_on_ = nullptr; return temp; } -inline ::google::protobuf::Timestamp* TrainingJobMetadata::_internal_mutable_created_on() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.created_on_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena()); - _impl_.created_on_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* TrainingJobMetadata::_internal_mutable_created_on() { + + if (created_on_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + created_on_ = p; } - return _impl_.created_on_; + return created_on_; } -inline ::google::protobuf::Timestamp* TrainingJobMetadata::mutable_created_on() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Timestamp* _msg = _internal_mutable_created_on(); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* TrainingJobMetadata::mutable_created_on() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_created_on(); // @@protoc_insertion_point(field_mutable:viam.app.mltraining.v1.TrainingJobMetadata.created_on) return _msg; } -inline void TrainingJobMetadata::set_allocated_created_on(::google::protobuf::Timestamp* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TrainingJobMetadata::set_allocated_created_on(::PROTOBUF_NAMESPACE_ID::Timestamp* created_on) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.created_on_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(created_on_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (created_on) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(created_on)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + created_on = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, created_on, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.created_on_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); + created_on_ = created_on; // @@protoc_insertion_point(field_set_allocated:viam.app.mltraining.v1.TrainingJobMetadata.created_on) } // .google.protobuf.Timestamp last_modified = 4 [json_name = "lastModified", (.tagger.v1.tags) = "bson:\"last_modified\" json:\"last_modified\""]; +inline bool TrainingJobMetadata::_internal_has_last_modified() const { + return this != internal_default_instance() && last_modified_ != nullptr; +} inline bool TrainingJobMetadata::has_last_modified() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.last_modified_ != nullptr); - return value; + return _internal_has_last_modified(); } -inline const ::google::protobuf::Timestamp& TrainingJobMetadata::_internal_last_modified() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Timestamp* p = _impl_.last_modified_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& TrainingJobMetadata::_internal_last_modified() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = last_modified_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); } -inline const ::google::protobuf::Timestamp& TrainingJobMetadata::last_modified() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& TrainingJobMetadata::last_modified() const { // @@protoc_insertion_point(field_get:viam.app.mltraining.v1.TrainingJobMetadata.last_modified) return _internal_last_modified(); } -inline void TrainingJobMetadata::unsafe_arena_set_allocated_last_modified(::google::protobuf::Timestamp* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.last_modified_); +inline void TrainingJobMetadata::unsafe_arena_set_allocated_last_modified( + ::PROTOBUF_NAMESPACE_ID::Timestamp* last_modified) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_modified_); } - _impl_.last_modified_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + last_modified_ = last_modified; + if (last_modified) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.mltraining.v1.TrainingJobMetadata.last_modified) } -inline ::google::protobuf::Timestamp* TrainingJobMetadata::release_last_modified() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Timestamp* released = _impl_.last_modified_; - _impl_.last_modified_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* TrainingJobMetadata::release_last_modified() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = last_modified_; + last_modified_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Timestamp* TrainingJobMetadata::unsafe_arena_release_last_modified() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* TrainingJobMetadata::unsafe_arena_release_last_modified() { // @@protoc_insertion_point(field_release:viam.app.mltraining.v1.TrainingJobMetadata.last_modified) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Timestamp* temp = _impl_.last_modified_; - _impl_.last_modified_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = last_modified_; + last_modified_ = nullptr; return temp; } -inline ::google::protobuf::Timestamp* TrainingJobMetadata::_internal_mutable_last_modified() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.last_modified_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena()); - _impl_.last_modified_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* TrainingJobMetadata::_internal_mutable_last_modified() { + + if (last_modified_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + last_modified_ = p; } - return _impl_.last_modified_; + return last_modified_; } -inline ::google::protobuf::Timestamp* TrainingJobMetadata::mutable_last_modified() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Timestamp* _msg = _internal_mutable_last_modified(); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* TrainingJobMetadata::mutable_last_modified() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_last_modified(); // @@protoc_insertion_point(field_mutable:viam.app.mltraining.v1.TrainingJobMetadata.last_modified) return _msg; } -inline void TrainingJobMetadata::set_allocated_last_modified(::google::protobuf::Timestamp* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TrainingJobMetadata::set_allocated_last_modified(::PROTOBUF_NAMESPACE_ID::Timestamp* last_modified) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.last_modified_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_modified_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (last_modified) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_modified)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + last_modified = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, last_modified, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.last_modified_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); + last_modified_ = last_modified; // @@protoc_insertion_point(field_set_allocated:viam.app.mltraining.v1.TrainingJobMetadata.last_modified) } // .google.protobuf.Timestamp training_started = 9 [json_name = "trainingStarted", (.tagger.v1.tags) = "bson:\"training_started\" json:\"training_started\""]; +inline bool TrainingJobMetadata::_internal_has_training_started() const { + return this != internal_default_instance() && training_started_ != nullptr; +} inline bool TrainingJobMetadata::has_training_started() const { - bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; - PROTOBUF_ASSUME(!value || _impl_.training_started_ != nullptr); - return value; + return _internal_has_training_started(); } -inline const ::google::protobuf::Timestamp& TrainingJobMetadata::_internal_training_started() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Timestamp* p = _impl_.training_started_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& TrainingJobMetadata::_internal_training_started() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = training_started_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); } -inline const ::google::protobuf::Timestamp& TrainingJobMetadata::training_started() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& TrainingJobMetadata::training_started() const { // @@protoc_insertion_point(field_get:viam.app.mltraining.v1.TrainingJobMetadata.training_started) return _internal_training_started(); } -inline void TrainingJobMetadata::unsafe_arena_set_allocated_training_started(::google::protobuf::Timestamp* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.training_started_); +inline void TrainingJobMetadata::unsafe_arena_set_allocated_training_started( + ::PROTOBUF_NAMESPACE_ID::Timestamp* training_started) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(training_started_); } - _impl_.training_started_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000008u; + training_started_ = training_started; + if (training_started) { + } else { - _impl_._has_bits_[0] &= ~0x00000008u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.mltraining.v1.TrainingJobMetadata.training_started) } -inline ::google::protobuf::Timestamp* TrainingJobMetadata::release_training_started() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000008u; - ::google::protobuf::Timestamp* released = _impl_.training_started_; - _impl_.training_started_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* TrainingJobMetadata::release_training_started() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = training_started_; + training_started_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Timestamp* TrainingJobMetadata::unsafe_arena_release_training_started() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* TrainingJobMetadata::unsafe_arena_release_training_started() { // @@protoc_insertion_point(field_release:viam.app.mltraining.v1.TrainingJobMetadata.training_started) - - _impl_._has_bits_[0] &= ~0x00000008u; - ::google::protobuf::Timestamp* temp = _impl_.training_started_; - _impl_.training_started_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = training_started_; + training_started_ = nullptr; return temp; } -inline ::google::protobuf::Timestamp* TrainingJobMetadata::_internal_mutable_training_started() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000008u; - if (_impl_.training_started_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena()); - _impl_.training_started_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* TrainingJobMetadata::_internal_mutable_training_started() { + + if (training_started_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + training_started_ = p; } - return _impl_.training_started_; + return training_started_; } -inline ::google::protobuf::Timestamp* TrainingJobMetadata::mutable_training_started() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Timestamp* _msg = _internal_mutable_training_started(); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* TrainingJobMetadata::mutable_training_started() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_training_started(); // @@protoc_insertion_point(field_mutable:viam.app.mltraining.v1.TrainingJobMetadata.training_started) return _msg; } -inline void TrainingJobMetadata::set_allocated_training_started(::google::protobuf::Timestamp* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TrainingJobMetadata::set_allocated_training_started(::PROTOBUF_NAMESPACE_ID::Timestamp* training_started) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.training_started_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(training_started_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (training_started) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(training_started)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + training_started = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, training_started, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000008u; + } else { - _impl_._has_bits_[0] &= ~0x00000008u; + } - - _impl_.training_started_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); + training_started_ = training_started; // @@protoc_insertion_point(field_set_allocated:viam.app.mltraining.v1.TrainingJobMetadata.training_started) } // .google.protobuf.Timestamp training_ended = 10 [json_name = "trainingEnded", (.tagger.v1.tags) = "bson:\"training_ended\" json:\"training_ended\""]; +inline bool TrainingJobMetadata::_internal_has_training_ended() const { + return this != internal_default_instance() && training_ended_ != nullptr; +} inline bool TrainingJobMetadata::has_training_ended() const { - bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; - PROTOBUF_ASSUME(!value || _impl_.training_ended_ != nullptr); - return value; + return _internal_has_training_ended(); } -inline const ::google::protobuf::Timestamp& TrainingJobMetadata::_internal_training_ended() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Timestamp* p = _impl_.training_ended_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& TrainingJobMetadata::_internal_training_ended() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = training_ended_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); } -inline const ::google::protobuf::Timestamp& TrainingJobMetadata::training_ended() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& TrainingJobMetadata::training_ended() const { // @@protoc_insertion_point(field_get:viam.app.mltraining.v1.TrainingJobMetadata.training_ended) return _internal_training_ended(); } -inline void TrainingJobMetadata::unsafe_arena_set_allocated_training_ended(::google::protobuf::Timestamp* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.training_ended_); +inline void TrainingJobMetadata::unsafe_arena_set_allocated_training_ended( + ::PROTOBUF_NAMESPACE_ID::Timestamp* training_ended) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(training_ended_); } - _impl_.training_ended_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000010u; + training_ended_ = training_ended; + if (training_ended) { + } else { - _impl_._has_bits_[0] &= ~0x00000010u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.mltraining.v1.TrainingJobMetadata.training_ended) } -inline ::google::protobuf::Timestamp* TrainingJobMetadata::release_training_ended() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000010u; - ::google::protobuf::Timestamp* released = _impl_.training_ended_; - _impl_.training_ended_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* TrainingJobMetadata::release_training_ended() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = training_ended_; + training_ended_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Timestamp* TrainingJobMetadata::unsafe_arena_release_training_ended() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* TrainingJobMetadata::unsafe_arena_release_training_ended() { // @@protoc_insertion_point(field_release:viam.app.mltraining.v1.TrainingJobMetadata.training_ended) - - _impl_._has_bits_[0] &= ~0x00000010u; - ::google::protobuf::Timestamp* temp = _impl_.training_ended_; - _impl_.training_ended_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = training_ended_; + training_ended_ = nullptr; return temp; } -inline ::google::protobuf::Timestamp* TrainingJobMetadata::_internal_mutable_training_ended() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000010u; - if (_impl_.training_ended_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena()); - _impl_.training_ended_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* TrainingJobMetadata::_internal_mutable_training_ended() { + + if (training_ended_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + training_ended_ = p; } - return _impl_.training_ended_; + return training_ended_; } -inline ::google::protobuf::Timestamp* TrainingJobMetadata::mutable_training_ended() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Timestamp* _msg = _internal_mutable_training_ended(); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* TrainingJobMetadata::mutable_training_ended() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_training_ended(); // @@protoc_insertion_point(field_mutable:viam.app.mltraining.v1.TrainingJobMetadata.training_ended) return _msg; } -inline void TrainingJobMetadata::set_allocated_training_ended(::google::protobuf::Timestamp* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TrainingJobMetadata::set_allocated_training_ended(::PROTOBUF_NAMESPACE_ID::Timestamp* training_ended) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.training_ended_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(training_ended_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (training_ended) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(training_ended)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + training_ended = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, training_ended, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000010u; + } else { - _impl_._has_bits_[0] &= ~0x00000010u; + } - - _impl_.training_ended_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); + training_ended_ = training_ended; // @@protoc_insertion_point(field_set_allocated:viam.app.mltraining.v1.TrainingJobMetadata.training_ended) } // string synced_model_id = 5 [json_name = "syncedModelId", (.tagger.v1.tags) = "bson:\"synced_model_id\" json:\"synced_model_id\""]; inline void TrainingJobMetadata::clear_synced_model_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.synced_model_id_.ClearToEmpty(); + synced_model_id_.ClearToEmpty(); } -inline const std::string& TrainingJobMetadata::synced_model_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& TrainingJobMetadata::synced_model_id() const { // @@protoc_insertion_point(field_get:viam.app.mltraining.v1.TrainingJobMetadata.synced_model_id) return _internal_synced_model_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void TrainingJobMetadata::set_synced_model_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.synced_model_id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void TrainingJobMetadata::set_synced_model_id(ArgT0&& arg0, ArgT... args) { + + synced_model_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.mltraining.v1.TrainingJobMetadata.synced_model_id) } -inline std::string* TrainingJobMetadata::mutable_synced_model_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* TrainingJobMetadata::mutable_synced_model_id() { std::string* _s = _internal_mutable_synced_model_id(); // @@protoc_insertion_point(field_mutable:viam.app.mltraining.v1.TrainingJobMetadata.synced_model_id) return _s; } inline const std::string& TrainingJobMetadata::_internal_synced_model_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.synced_model_id_.Get(); + return synced_model_id_.Get(); } inline void TrainingJobMetadata::_internal_set_synced_model_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.synced_model_id_.Set(value, GetArena()); + + synced_model_id_.Set(value, GetArenaForAllocation()); } inline std::string* TrainingJobMetadata::_internal_mutable_synced_model_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.synced_model_id_.Mutable( GetArena()); + + return synced_model_id_.Mutable(GetArenaForAllocation()); } inline std::string* TrainingJobMetadata::release_synced_model_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.mltraining.v1.TrainingJobMetadata.synced_model_id) - return _impl_.synced_model_id_.Release(); -} -inline void TrainingJobMetadata::set_allocated_synced_model_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.synced_model_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.synced_model_id_.IsDefault()) { - _impl_.synced_model_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return synced_model_id_.Release(); +} +inline void TrainingJobMetadata::set_allocated_synced_model_id(std::string* synced_model_id) { + if (synced_model_id != nullptr) { + + } else { + + } + synced_model_id_.SetAllocated(synced_model_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (synced_model_id_.IsDefault()) { + synced_model_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.mltraining.v1.TrainingJobMetadata.synced_model_id) } // repeated string tags = 16 [json_name = "tags", (.tagger.v1.tags) = "bson:\"tags\" json:\"tags\""]; inline int TrainingJobMetadata::_internal_tags_size() const { - return _internal_tags().size(); + return tags_.size(); } inline int TrainingJobMetadata::tags_size() const { return _internal_tags_size(); } inline void TrainingJobMetadata::clear_tags() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.tags_.Clear(); + tags_.Clear(); } -inline std::string* TrainingJobMetadata::add_tags() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_tags()->Add(); +inline std::string* TrainingJobMetadata::add_tags() { + std::string* _s = _internal_add_tags(); // @@protoc_insertion_point(field_add_mutable:viam.app.mltraining.v1.TrainingJobMetadata.tags) return _s; } -inline const std::string& TrainingJobMetadata::tags(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& TrainingJobMetadata::_internal_tags(int index) const { + return tags_.Get(index); +} +inline const std::string& TrainingJobMetadata::tags(int index) const { // @@protoc_insertion_point(field_get:viam.app.mltraining.v1.TrainingJobMetadata.tags) - return _internal_tags().Get(index); + return _internal_tags(index); } -inline std::string* TrainingJobMetadata::mutable_tags(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* TrainingJobMetadata::mutable_tags(int index) { // @@protoc_insertion_point(field_mutable:viam.app.mltraining.v1.TrainingJobMetadata.tags) - return _internal_mutable_tags()->Mutable(index); + return tags_.Mutable(index); } inline void TrainingJobMetadata::set_tags(int index, const std::string& value) { - _internal_mutable_tags()->Mutable(index)->assign(value); + tags_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set:viam.app.mltraining.v1.TrainingJobMetadata.tags) } inline void TrainingJobMetadata::set_tags(int index, std::string&& value) { - _internal_mutable_tags()->Mutable(index)->assign(std::move(value)); + tags_.Mutable(index)->assign(std::move(value)); // @@protoc_insertion_point(field_set:viam.app.mltraining.v1.TrainingJobMetadata.tags) } inline void TrainingJobMetadata::set_tags(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_tags()->Mutable(index)->assign(value); + GOOGLE_DCHECK(value != nullptr); + tags_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:viam.app.mltraining.v1.TrainingJobMetadata.tags) } -inline void TrainingJobMetadata::set_tags(int index, const char* value, - std::size_t size) { - _internal_mutable_tags()->Mutable(index)->assign( - reinterpret_cast(value), size); +inline void TrainingJobMetadata::set_tags(int index, const char* value, size_t size) { + tags_.Mutable(index)->assign( + reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:viam.app.mltraining.v1.TrainingJobMetadata.tags) } -inline void TrainingJobMetadata::set_tags(int index, absl::string_view value) { - _internal_mutable_tags()->Mutable(index)->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_set_string_piece:viam.app.mltraining.v1.TrainingJobMetadata.tags) +inline std::string* TrainingJobMetadata::_internal_add_tags() { + return tags_.Add(); } inline void TrainingJobMetadata::add_tags(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_tags()->Add()->assign(value); + tags_.Add()->assign(value); // @@protoc_insertion_point(field_add:viam.app.mltraining.v1.TrainingJobMetadata.tags) } inline void TrainingJobMetadata::add_tags(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_tags()->Add(std::move(value)); + tags_.Add(std::move(value)); // @@protoc_insertion_point(field_add:viam.app.mltraining.v1.TrainingJobMetadata.tags) } inline void TrainingJobMetadata::add_tags(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_tags()->Add()->assign(value); + GOOGLE_DCHECK(value != nullptr); + tags_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:viam.app.mltraining.v1.TrainingJobMetadata.tags) } -inline void TrainingJobMetadata::add_tags(const char* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_tags()->Add()->assign( - reinterpret_cast(value), size); +inline void TrainingJobMetadata::add_tags(const char* value, size_t size) { + tags_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:viam.app.mltraining.v1.TrainingJobMetadata.tags) } -inline void TrainingJobMetadata::add_tags(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_tags()->Add()->assign(value.data(), value.size()); - // @@protoc_insertion_point(field_add_string_piece:viam.app.mltraining.v1.TrainingJobMetadata.tags) -} -inline const ::google::protobuf::RepeatedPtrField& -TrainingJobMetadata::tags() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +TrainingJobMetadata::tags() const { // @@protoc_insertion_point(field_list:viam.app.mltraining.v1.TrainingJobMetadata.tags) - return _internal_tags(); + return tags_; } -inline ::google::protobuf::RepeatedPtrField* -TrainingJobMetadata::mutable_tags() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +TrainingJobMetadata::mutable_tags() { // @@protoc_insertion_point(field_mutable_list:viam.app.mltraining.v1.TrainingJobMetadata.tags) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_tags(); -} -inline const ::google::protobuf::RepeatedPtrField& -TrainingJobMetadata::_internal_tags() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.tags_; -} -inline ::google::protobuf::RepeatedPtrField* -TrainingJobMetadata::_internal_mutable_tags() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.tags_; + return &tags_; } // ------------------------------------------------------------------- @@ -5859,54 +5126,51 @@ TrainingJobMetadata::_internal_mutable_tags() { // string id = 1 [json_name = "id"]; inline void CancelTrainingJobRequest::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); + id_.ClearToEmpty(); } -inline const std::string& CancelTrainingJobRequest::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& CancelTrainingJobRequest::id() const { // @@protoc_insertion_point(field_get:viam.app.mltraining.v1.CancelTrainingJobRequest.id) return _internal_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void CancelTrainingJobRequest::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void CancelTrainingJobRequest::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.mltraining.v1.CancelTrainingJobRequest.id) } -inline std::string* CancelTrainingJobRequest::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* CancelTrainingJobRequest::mutable_id() { std::string* _s = _internal_mutable_id(); // @@protoc_insertion_point(field_mutable:viam.app.mltraining.v1.CancelTrainingJobRequest.id) return _s; } inline const std::string& CancelTrainingJobRequest::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); + return id_.Get(); } inline void CancelTrainingJobRequest::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); + + id_.Set(value, GetArenaForAllocation()); } inline std::string* CancelTrainingJobRequest::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); + + return id_.Mutable(GetArenaForAllocation()); } inline std::string* CancelTrainingJobRequest::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.mltraining.v1.CancelTrainingJobRequest.id) - return _impl_.id_.Release(); -} -inline void CancelTrainingJobRequest::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return id_.Release(); +} +inline void CancelTrainingJobRequest::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.mltraining.v1.CancelTrainingJobRequest.id) } @@ -5920,54 +5184,51 @@ inline void CancelTrainingJobRequest::set_allocated_id(std::string* value) { // string id = 1 [json_name = "id"]; inline void DeleteCompletedTrainingJobRequest::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); + id_.ClearToEmpty(); } -inline const std::string& DeleteCompletedTrainingJobRequest::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& DeleteCompletedTrainingJobRequest::id() const { // @@protoc_insertion_point(field_get:viam.app.mltraining.v1.DeleteCompletedTrainingJobRequest.id) return _internal_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void DeleteCompletedTrainingJobRequest::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void DeleteCompletedTrainingJobRequest::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.mltraining.v1.DeleteCompletedTrainingJobRequest.id) } -inline std::string* DeleteCompletedTrainingJobRequest::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* DeleteCompletedTrainingJobRequest::mutable_id() { std::string* _s = _internal_mutable_id(); // @@protoc_insertion_point(field_mutable:viam.app.mltraining.v1.DeleteCompletedTrainingJobRequest.id) return _s; } inline const std::string& DeleteCompletedTrainingJobRequest::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); + return id_.Get(); } inline void DeleteCompletedTrainingJobRequest::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); + + id_.Set(value, GetArenaForAllocation()); } inline std::string* DeleteCompletedTrainingJobRequest::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); + + return id_.Mutable(GetArenaForAllocation()); } inline std::string* DeleteCompletedTrainingJobRequest::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.mltraining.v1.DeleteCompletedTrainingJobRequest.id) - return _impl_.id_.Release(); -} -inline void DeleteCompletedTrainingJobRequest::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return id_.Release(); +} +inline void DeleteCompletedTrainingJobRequest::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.mltraining.v1.DeleteCompletedTrainingJobRequest.id) } @@ -5981,198 +5242,186 @@ inline void DeleteCompletedTrainingJobRequest::set_allocated_id(std::string* val // string level = 1 [json_name = "level"]; inline void TrainingJobLogEntry::clear_level() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.level_.ClearToEmpty(); + level_.ClearToEmpty(); } -inline const std::string& TrainingJobLogEntry::level() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& TrainingJobLogEntry::level() const { // @@protoc_insertion_point(field_get:viam.app.mltraining.v1.TrainingJobLogEntry.level) return _internal_level(); } -template -inline PROTOBUF_ALWAYS_INLINE void TrainingJobLogEntry::set_level(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.level_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void TrainingJobLogEntry::set_level(ArgT0&& arg0, ArgT... args) { + + level_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.mltraining.v1.TrainingJobLogEntry.level) } -inline std::string* TrainingJobLogEntry::mutable_level() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* TrainingJobLogEntry::mutable_level() { std::string* _s = _internal_mutable_level(); // @@protoc_insertion_point(field_mutable:viam.app.mltraining.v1.TrainingJobLogEntry.level) return _s; } inline const std::string& TrainingJobLogEntry::_internal_level() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.level_.Get(); + return level_.Get(); } inline void TrainingJobLogEntry::_internal_set_level(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.level_.Set(value, GetArena()); + + level_.Set(value, GetArenaForAllocation()); } inline std::string* TrainingJobLogEntry::_internal_mutable_level() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.level_.Mutable( GetArena()); + + return level_.Mutable(GetArenaForAllocation()); } inline std::string* TrainingJobLogEntry::release_level() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.mltraining.v1.TrainingJobLogEntry.level) - return _impl_.level_.Release(); -} -inline void TrainingJobLogEntry::set_allocated_level(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.level_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.level_.IsDefault()) { - _impl_.level_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return level_.Release(); +} +inline void TrainingJobLogEntry::set_allocated_level(std::string* level) { + if (level != nullptr) { + + } else { + + } + level_.SetAllocated(level, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (level_.IsDefault()) { + level_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.mltraining.v1.TrainingJobLogEntry.level) } // .google.protobuf.Timestamp time = 2 [json_name = "time"]; +inline bool TrainingJobLogEntry::_internal_has_time() const { + return this != internal_default_instance() && time_ != nullptr; +} inline bool TrainingJobLogEntry::has_time() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.time_ != nullptr); - return value; + return _internal_has_time(); } -inline const ::google::protobuf::Timestamp& TrainingJobLogEntry::_internal_time() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Timestamp* p = _impl_.time_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& TrainingJobLogEntry::_internal_time() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = time_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); } -inline const ::google::protobuf::Timestamp& TrainingJobLogEntry::time() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& TrainingJobLogEntry::time() const { // @@protoc_insertion_point(field_get:viam.app.mltraining.v1.TrainingJobLogEntry.time) return _internal_time(); } -inline void TrainingJobLogEntry::unsafe_arena_set_allocated_time(::google::protobuf::Timestamp* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.time_); +inline void TrainingJobLogEntry::unsafe_arena_set_allocated_time( + ::PROTOBUF_NAMESPACE_ID::Timestamp* time) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(time_); } - _impl_.time_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + time_ = time; + if (time) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.mltraining.v1.TrainingJobLogEntry.time) } -inline ::google::protobuf::Timestamp* TrainingJobLogEntry::release_time() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Timestamp* released = _impl_.time_; - _impl_.time_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* TrainingJobLogEntry::release_time() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = time_; + time_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Timestamp* TrainingJobLogEntry::unsafe_arena_release_time() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* TrainingJobLogEntry::unsafe_arena_release_time() { // @@protoc_insertion_point(field_release:viam.app.mltraining.v1.TrainingJobLogEntry.time) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Timestamp* temp = _impl_.time_; - _impl_.time_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = time_; + time_ = nullptr; return temp; } -inline ::google::protobuf::Timestamp* TrainingJobLogEntry::_internal_mutable_time() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.time_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena()); - _impl_.time_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* TrainingJobLogEntry::_internal_mutable_time() { + + if (time_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + time_ = p; } - return _impl_.time_; + return time_; } -inline ::google::protobuf::Timestamp* TrainingJobLogEntry::mutable_time() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Timestamp* _msg = _internal_mutable_time(); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* TrainingJobLogEntry::mutable_time() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_time(); // @@protoc_insertion_point(field_mutable:viam.app.mltraining.v1.TrainingJobLogEntry.time) return _msg; } -inline void TrainingJobLogEntry::set_allocated_time(::google::protobuf::Timestamp* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TrainingJobLogEntry::set_allocated_time(::PROTOBUF_NAMESPACE_ID::Timestamp* time) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.time_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(time_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (time) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(time)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, time, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.time_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); + time_ = time; // @@protoc_insertion_point(field_set_allocated:viam.app.mltraining.v1.TrainingJobLogEntry.time) } // string message = 3 [json_name = "message"]; inline void TrainingJobLogEntry::clear_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.message_.ClearToEmpty(); + message_.ClearToEmpty(); } -inline const std::string& TrainingJobLogEntry::message() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& TrainingJobLogEntry::message() const { // @@protoc_insertion_point(field_get:viam.app.mltraining.v1.TrainingJobLogEntry.message) return _internal_message(); } -template -inline PROTOBUF_ALWAYS_INLINE void TrainingJobLogEntry::set_message(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.message_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void TrainingJobLogEntry::set_message(ArgT0&& arg0, ArgT... args) { + + message_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.mltraining.v1.TrainingJobLogEntry.message) } -inline std::string* TrainingJobLogEntry::mutable_message() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* TrainingJobLogEntry::mutable_message() { std::string* _s = _internal_mutable_message(); // @@protoc_insertion_point(field_mutable:viam.app.mltraining.v1.TrainingJobLogEntry.message) return _s; } inline const std::string& TrainingJobLogEntry::_internal_message() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.message_.Get(); + return message_.Get(); } inline void TrainingJobLogEntry::_internal_set_message(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.message_.Set(value, GetArena()); + + message_.Set(value, GetArenaForAllocation()); } inline std::string* TrainingJobLogEntry::_internal_mutable_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.message_.Mutable( GetArena()); + + return message_.Mutable(GetArenaForAllocation()); } inline std::string* TrainingJobLogEntry::release_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.mltraining.v1.TrainingJobLogEntry.message) - return _impl_.message_.Release(); -} -inline void TrainingJobLogEntry::set_allocated_message(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.message_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.message_.IsDefault()) { - _impl_.message_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return message_.Release(); +} +inline void TrainingJobLogEntry::set_allocated_message(std::string* message) { + if (message != nullptr) { + + } else { + + } + message_.SetAllocated(message, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (message_.IsDefault()) { + message_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.mltraining.v1.TrainingJobLogEntry.message) } @@ -6182,125 +5431,119 @@ inline void TrainingJobLogEntry::set_allocated_message(std::string* value) { // string id = 1 [json_name = "id"]; inline void GetTrainingJobLogsRequest::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); + id_.ClearToEmpty(); } -inline const std::string& GetTrainingJobLogsRequest::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetTrainingJobLogsRequest::id() const { // @@protoc_insertion_point(field_get:viam.app.mltraining.v1.GetTrainingJobLogsRequest.id) return _internal_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetTrainingJobLogsRequest::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetTrainingJobLogsRequest::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.mltraining.v1.GetTrainingJobLogsRequest.id) } -inline std::string* GetTrainingJobLogsRequest::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetTrainingJobLogsRequest::mutable_id() { std::string* _s = _internal_mutable_id(); // @@protoc_insertion_point(field_mutable:viam.app.mltraining.v1.GetTrainingJobLogsRequest.id) return _s; } inline const std::string& GetTrainingJobLogsRequest::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); + return id_.Get(); } inline void GetTrainingJobLogsRequest::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); + + id_.Set(value, GetArenaForAllocation()); } inline std::string* GetTrainingJobLogsRequest::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); + + return id_.Mutable(GetArenaForAllocation()); } inline std::string* GetTrainingJobLogsRequest::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.mltraining.v1.GetTrainingJobLogsRequest.id) - return _impl_.id_.Release(); -} -inline void GetTrainingJobLogsRequest::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return id_.Release(); +} +inline void GetTrainingJobLogsRequest::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.mltraining.v1.GetTrainingJobLogsRequest.id) } // optional string page_token = 2 [json_name = "pageToken"]; -inline bool GetTrainingJobLogsRequest::has_page_token() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; +inline bool GetTrainingJobLogsRequest::_internal_has_page_token() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; return value; } +inline bool GetTrainingJobLogsRequest::has_page_token() const { + return _internal_has_page_token(); +} inline void GetTrainingJobLogsRequest::clear_page_token() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.page_token_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000001u; + page_token_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; } -inline const std::string& GetTrainingJobLogsRequest::page_token() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetTrainingJobLogsRequest::page_token() const { // @@protoc_insertion_point(field_get:viam.app.mltraining.v1.GetTrainingJobLogsRequest.page_token) return _internal_page_token(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetTrainingJobLogsRequest::set_page_token(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.page_token_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetTrainingJobLogsRequest::set_page_token(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + page_token_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.mltraining.v1.GetTrainingJobLogsRequest.page_token) } -inline std::string* GetTrainingJobLogsRequest::mutable_page_token() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetTrainingJobLogsRequest::mutable_page_token() { std::string* _s = _internal_mutable_page_token(); // @@protoc_insertion_point(field_mutable:viam.app.mltraining.v1.GetTrainingJobLogsRequest.page_token) return _s; } inline const std::string& GetTrainingJobLogsRequest::_internal_page_token() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.page_token_.Get(); + return page_token_.Get(); } inline void GetTrainingJobLogsRequest::_internal_set_page_token(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.page_token_.Set(value, GetArena()); + _has_bits_[0] |= 0x00000001u; + page_token_.Set(value, GetArenaForAllocation()); } inline std::string* GetTrainingJobLogsRequest::_internal_mutable_page_token() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.page_token_.Mutable( GetArena()); + _has_bits_[0] |= 0x00000001u; + return page_token_.Mutable(GetArenaForAllocation()); } inline std::string* GetTrainingJobLogsRequest::release_page_token() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.mltraining.v1.GetTrainingJobLogsRequest.page_token) - if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + if (!_internal_has_page_token()) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000001u; - auto* released = _impl_.page_token_.Release(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.page_token_.Set("", GetArena()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return released; -} -inline void GetTrainingJobLogsRequest::set_allocated_page_token(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + _has_bits_[0] &= ~0x00000001u; + auto* p = page_token_.Release(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (page_token_.IsDefault()) { + page_token_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; +} +inline void GetTrainingJobLogsRequest::set_allocated_page_token(std::string* page_token) { + if (page_token != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - _impl_.page_token_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.page_token_.IsDefault()) { - _impl_.page_token_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _has_bits_[0] &= ~0x00000001u; + } + page_token_.SetAllocated(page_token, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (page_token_.IsDefault()) { + page_token_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.mltraining.v1.GetTrainingJobLogsRequest.page_token) } @@ -6310,144 +5553,158 @@ inline void GetTrainingJobLogsRequest::set_allocated_page_token(std::string* val // repeated .viam.app.mltraining.v1.TrainingJobLogEntry logs = 1 [json_name = "logs"]; inline int GetTrainingJobLogsResponse::_internal_logs_size() const { - return _internal_logs().size(); + return logs_.size(); } inline int GetTrainingJobLogsResponse::logs_size() const { return _internal_logs_size(); } inline void GetTrainingJobLogsResponse::clear_logs() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.logs_.Clear(); + logs_.Clear(); } -inline ::viam::app::mltraining::v1::TrainingJobLogEntry* GetTrainingJobLogsResponse::mutable_logs(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::app::mltraining::v1::TrainingJobLogEntry* GetTrainingJobLogsResponse::mutable_logs(int index) { // @@protoc_insertion_point(field_mutable:viam.app.mltraining.v1.GetTrainingJobLogsResponse.logs) - return _internal_mutable_logs()->Mutable(index); + return logs_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::app::mltraining::v1::TrainingJobLogEntry>* GetTrainingJobLogsResponse::mutable_logs() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::mltraining::v1::TrainingJobLogEntry >* +GetTrainingJobLogsResponse::mutable_logs() { // @@protoc_insertion_point(field_mutable_list:viam.app.mltraining.v1.GetTrainingJobLogsResponse.logs) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_logs(); + return &logs_; } -inline const ::viam::app::mltraining::v1::TrainingJobLogEntry& GetTrainingJobLogsResponse::logs(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::app::mltraining::v1::TrainingJobLogEntry& GetTrainingJobLogsResponse::_internal_logs(int index) const { + return logs_.Get(index); +} +inline const ::viam::app::mltraining::v1::TrainingJobLogEntry& GetTrainingJobLogsResponse::logs(int index) const { // @@protoc_insertion_point(field_get:viam.app.mltraining.v1.GetTrainingJobLogsResponse.logs) - return _internal_logs().Get(index); + return _internal_logs(index); +} +inline ::viam::app::mltraining::v1::TrainingJobLogEntry* GetTrainingJobLogsResponse::_internal_add_logs() { + return logs_.Add(); } -inline ::viam::app::mltraining::v1::TrainingJobLogEntry* GetTrainingJobLogsResponse::add_logs() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::mltraining::v1::TrainingJobLogEntry* _add = _internal_mutable_logs()->Add(); +inline ::viam::app::mltraining::v1::TrainingJobLogEntry* GetTrainingJobLogsResponse::add_logs() { + ::viam::app::mltraining::v1::TrainingJobLogEntry* _add = _internal_add_logs(); // @@protoc_insertion_point(field_add:viam.app.mltraining.v1.GetTrainingJobLogsResponse.logs) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::mltraining::v1::TrainingJobLogEntry>& GetTrainingJobLogsResponse::logs() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::mltraining::v1::TrainingJobLogEntry >& +GetTrainingJobLogsResponse::logs() const { // @@protoc_insertion_point(field_list:viam.app.mltraining.v1.GetTrainingJobLogsResponse.logs) - return _internal_logs(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::app::mltraining::v1::TrainingJobLogEntry>& -GetTrainingJobLogsResponse::_internal_logs() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.logs_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::app::mltraining::v1::TrainingJobLogEntry>* -GetTrainingJobLogsResponse::_internal_mutable_logs() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.logs_; + return logs_; } // string next_page_token = 2 [json_name = "nextPageToken"]; inline void GetTrainingJobLogsResponse::clear_next_page_token() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.next_page_token_.ClearToEmpty(); + next_page_token_.ClearToEmpty(); } -inline const std::string& GetTrainingJobLogsResponse::next_page_token() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetTrainingJobLogsResponse::next_page_token() const { // @@protoc_insertion_point(field_get:viam.app.mltraining.v1.GetTrainingJobLogsResponse.next_page_token) return _internal_next_page_token(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetTrainingJobLogsResponse::set_next_page_token(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.next_page_token_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetTrainingJobLogsResponse::set_next_page_token(ArgT0&& arg0, ArgT... args) { + + next_page_token_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.mltraining.v1.GetTrainingJobLogsResponse.next_page_token) } -inline std::string* GetTrainingJobLogsResponse::mutable_next_page_token() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetTrainingJobLogsResponse::mutable_next_page_token() { std::string* _s = _internal_mutable_next_page_token(); // @@protoc_insertion_point(field_mutable:viam.app.mltraining.v1.GetTrainingJobLogsResponse.next_page_token) return _s; } inline const std::string& GetTrainingJobLogsResponse::_internal_next_page_token() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.next_page_token_.Get(); + return next_page_token_.Get(); } inline void GetTrainingJobLogsResponse::_internal_set_next_page_token(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.next_page_token_.Set(value, GetArena()); + + next_page_token_.Set(value, GetArenaForAllocation()); } inline std::string* GetTrainingJobLogsResponse::_internal_mutable_next_page_token() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.next_page_token_.Mutable( GetArena()); + + return next_page_token_.Mutable(GetArenaForAllocation()); } inline std::string* GetTrainingJobLogsResponse::release_next_page_token() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.mltraining.v1.GetTrainingJobLogsResponse.next_page_token) - return _impl_.next_page_token_.Release(); -} -inline void GetTrainingJobLogsResponse::set_allocated_next_page_token(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.next_page_token_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.next_page_token_.IsDefault()) { - _impl_.next_page_token_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return next_page_token_.Release(); +} +inline void GetTrainingJobLogsResponse::set_allocated_next_page_token(std::string* next_page_token) { + if (next_page_token != nullptr) { + + } else { + + } + next_page_token_.SetAllocated(next_page_token, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (next_page_token_.IsDefault()) { + next_page_token_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.mltraining.v1.GetTrainingJobLogsResponse.next_page_token) } #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) + } // namespace v1 } // namespace mltraining } // namespace app } // namespace viam +PROTOBUF_NAMESPACE_OPEN -namespace google { -namespace protobuf { - +template <> struct is_proto_enum< ::viam::app::mltraining::v1::ModelType> : ::std::true_type {}; template <> -struct is_proto_enum<::viam::app::mltraining::v1::ModelType> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::viam::app::mltraining::v1::ModelType>() { +inline const EnumDescriptor* GetEnumDescriptor< ::viam::app::mltraining::v1::ModelType>() { return ::viam::app::mltraining::v1::ModelType_descriptor(); } +template <> struct is_proto_enum< ::viam::app::mltraining::v1::ModelFramework> : ::std::true_type {}; template <> -struct is_proto_enum<::viam::app::mltraining::v1::ModelFramework> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::viam::app::mltraining::v1::ModelFramework>() { +inline const EnumDescriptor* GetEnumDescriptor< ::viam::app::mltraining::v1::ModelFramework>() { return ::viam::app::mltraining::v1::ModelFramework_descriptor(); } +template <> struct is_proto_enum< ::viam::app::mltraining::v1::TrainingStatus> : ::std::true_type {}; template <> -struct is_proto_enum<::viam::app::mltraining::v1::TrainingStatus> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::viam::app::mltraining::v1::TrainingStatus>() { +inline const EnumDescriptor* GetEnumDescriptor< ::viam::app::mltraining::v1::TrainingStatus>() { return ::viam::app::mltraining::v1::TrainingStatus_descriptor(); } -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_app_2fmltraining_2fv1_2fml_5ftraining_2eproto diff --git a/src/viam/api/app/packages/v1/packages.grpc.pb.cc b/src/viam/api/app/packages/v1/packages.grpc.pb.cc index 7c59378ae..a68f90c16 100644 --- a/src/viam/api/app/packages/v1/packages.grpc.pb.cc +++ b/src/viam/api/app/packages/v1/packages.grpc.pb.cc @@ -6,19 +6,19 @@ #include "app/packages/v1/packages.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace app { namespace packages { @@ -33,100 +33,115 @@ static const char* PackageService_method_names[] = { std::unique_ptr< PackageService::Stub> PackageService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { (void)options; - std::unique_ptr< PackageService::Stub> stub(new PackageService::Stub(channel, options)); + std::unique_ptr< PackageService::Stub> stub(new PackageService::Stub(channel)); return stub; } -PackageService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) - : channel_(channel), rpcmethod_CreatePackage_(PackageService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::CLIENT_STREAMING, channel) - , rpcmethod_DeletePackage_(PackageService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetPackage_(PackageService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_ListPackages_(PackageService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) +PackageService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_CreatePackage_(PackageService_method_names[0], ::grpc::internal::RpcMethod::CLIENT_STREAMING, channel) + , rpcmethod_DeletePackage_(PackageService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetPackage_(PackageService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListPackages_(PackageService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::ClientWriter< ::viam::app::packages::v1::CreatePackageRequest>* PackageService::Stub::CreatePackageRaw(::grpc::ClientContext* context, ::viam::app::packages::v1::CreatePackageResponse* response) { - return ::grpc::internal::ClientWriterFactory< ::viam::app::packages::v1::CreatePackageRequest>::Create(channel_.get(), rpcmethod_CreatePackage_, context, response); + return ::grpc_impl::internal::ClientWriterFactory< ::viam::app::packages::v1::CreatePackageRequest>::Create(channel_.get(), rpcmethod_CreatePackage_, context, response); } -void PackageService::Stub::async::CreatePackage(::grpc::ClientContext* context, ::viam::app::packages::v1::CreatePackageResponse* response, ::grpc::ClientWriteReactor< ::viam::app::packages::v1::CreatePackageRequest>* reactor) { - ::grpc::internal::ClientCallbackWriterFactory< ::viam::app::packages::v1::CreatePackageRequest>::Create(stub_->channel_.get(), stub_->rpcmethod_CreatePackage_, context, response, reactor); +void PackageService::Stub::experimental_async::CreatePackage(::grpc::ClientContext* context, ::viam::app::packages::v1::CreatePackageResponse* response, ::grpc::experimental::ClientWriteReactor< ::viam::app::packages::v1::CreatePackageRequest>* reactor) { + ::grpc_impl::internal::ClientCallbackWriterFactory< ::viam::app::packages::v1::CreatePackageRequest>::Create(stub_->channel_.get(), stub_->rpcmethod_CreatePackage_, context, response, reactor); } ::grpc::ClientAsyncWriter< ::viam::app::packages::v1::CreatePackageRequest>* PackageService::Stub::AsyncCreatePackageRaw(::grpc::ClientContext* context, ::viam::app::packages::v1::CreatePackageResponse* response, ::grpc::CompletionQueue* cq, void* tag) { - return ::grpc::internal::ClientAsyncWriterFactory< ::viam::app::packages::v1::CreatePackageRequest>::Create(channel_.get(), cq, rpcmethod_CreatePackage_, context, response, true, tag); + return ::grpc_impl::internal::ClientAsyncWriterFactory< ::viam::app::packages::v1::CreatePackageRequest>::Create(channel_.get(), cq, rpcmethod_CreatePackage_, context, response, true, tag); } ::grpc::ClientAsyncWriter< ::viam::app::packages::v1::CreatePackageRequest>* PackageService::Stub::PrepareAsyncCreatePackageRaw(::grpc::ClientContext* context, ::viam::app::packages::v1::CreatePackageResponse* response, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncWriterFactory< ::viam::app::packages::v1::CreatePackageRequest>::Create(channel_.get(), cq, rpcmethod_CreatePackage_, context, response, false, nullptr); + return ::grpc_impl::internal::ClientAsyncWriterFactory< ::viam::app::packages::v1::CreatePackageRequest>::Create(channel_.get(), cq, rpcmethod_CreatePackage_, context, response, false, nullptr); } ::grpc::Status PackageService::Stub::DeletePackage(::grpc::ClientContext* context, const ::viam::app::packages::v1::DeletePackageRequest& request, ::viam::app::packages::v1::DeletePackageResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::packages::v1::DeletePackageRequest, ::viam::app::packages::v1::DeletePackageResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_DeletePackage_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DeletePackage_, context, request, response); } -void PackageService::Stub::async::DeletePackage(::grpc::ClientContext* context, const ::viam::app::packages::v1::DeletePackageRequest* request, ::viam::app::packages::v1::DeletePackageResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::packages::v1::DeletePackageRequest, ::viam::app::packages::v1::DeletePackageResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DeletePackage_, context, request, response, std::move(f)); +void PackageService::Stub::experimental_async::DeletePackage(::grpc::ClientContext* context, const ::viam::app::packages::v1::DeletePackageRequest* request, ::viam::app::packages::v1::DeletePackageResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeletePackage_, context, request, response, std::move(f)); } -void PackageService::Stub::async::DeletePackage(::grpc::ClientContext* context, const ::viam::app::packages::v1::DeletePackageRequest* request, ::viam::app::packages::v1::DeletePackageResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DeletePackage_, context, request, response, reactor); +void PackageService::Stub::experimental_async::DeletePackage(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::packages::v1::DeletePackageResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeletePackage_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::packages::v1::DeletePackageResponse>* PackageService::Stub::PrepareAsyncDeletePackageRaw(::grpc::ClientContext* context, const ::viam::app::packages::v1::DeletePackageRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::packages::v1::DeletePackageResponse, ::viam::app::packages::v1::DeletePackageRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DeletePackage_, context, request); +void PackageService::Stub::experimental_async::DeletePackage(::grpc::ClientContext* context, const ::viam::app::packages::v1::DeletePackageRequest* request, ::viam::app::packages::v1::DeletePackageResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeletePackage_, context, request, response, reactor); +} + +void PackageService::Stub::experimental_async::DeletePackage(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::packages::v1::DeletePackageResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeletePackage_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::app::packages::v1::DeletePackageResponse>* PackageService::Stub::AsyncDeletePackageRaw(::grpc::ClientContext* context, const ::viam::app::packages::v1::DeletePackageRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncDeletePackageRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::packages::v1::DeletePackageResponse>::Create(channel_.get(), cq, rpcmethod_DeletePackage_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::packages::v1::DeletePackageResponse>* PackageService::Stub::PrepareAsyncDeletePackageRaw(::grpc::ClientContext* context, const ::viam::app::packages::v1::DeletePackageRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::packages::v1::DeletePackageResponse>::Create(channel_.get(), cq, rpcmethod_DeletePackage_, context, request, false); } ::grpc::Status PackageService::Stub::GetPackage(::grpc::ClientContext* context, const ::viam::app::packages::v1::GetPackageRequest& request, ::viam::app::packages::v1::GetPackageResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::packages::v1::GetPackageRequest, ::viam::app::packages::v1::GetPackageResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetPackage_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetPackage_, context, request, response); } -void PackageService::Stub::async::GetPackage(::grpc::ClientContext* context, const ::viam::app::packages::v1::GetPackageRequest* request, ::viam::app::packages::v1::GetPackageResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::packages::v1::GetPackageRequest, ::viam::app::packages::v1::GetPackageResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetPackage_, context, request, response, std::move(f)); +void PackageService::Stub::experimental_async::GetPackage(::grpc::ClientContext* context, const ::viam::app::packages::v1::GetPackageRequest* request, ::viam::app::packages::v1::GetPackageResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetPackage_, context, request, response, std::move(f)); } -void PackageService::Stub::async::GetPackage(::grpc::ClientContext* context, const ::viam::app::packages::v1::GetPackageRequest* request, ::viam::app::packages::v1::GetPackageResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetPackage_, context, request, response, reactor); +void PackageService::Stub::experimental_async::GetPackage(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::packages::v1::GetPackageResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetPackage_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::packages::v1::GetPackageResponse>* PackageService::Stub::PrepareAsyncGetPackageRaw(::grpc::ClientContext* context, const ::viam::app::packages::v1::GetPackageRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::packages::v1::GetPackageResponse, ::viam::app::packages::v1::GetPackageRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetPackage_, context, request); +void PackageService::Stub::experimental_async::GetPackage(::grpc::ClientContext* context, const ::viam::app::packages::v1::GetPackageRequest* request, ::viam::app::packages::v1::GetPackageResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetPackage_, context, request, response, reactor); +} + +void PackageService::Stub::experimental_async::GetPackage(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::packages::v1::GetPackageResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetPackage_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::app::packages::v1::GetPackageResponse>* PackageService::Stub::AsyncGetPackageRaw(::grpc::ClientContext* context, const ::viam::app::packages::v1::GetPackageRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetPackageRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::packages::v1::GetPackageResponse>::Create(channel_.get(), cq, rpcmethod_GetPackage_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::packages::v1::GetPackageResponse>* PackageService::Stub::PrepareAsyncGetPackageRaw(::grpc::ClientContext* context, const ::viam::app::packages::v1::GetPackageRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::packages::v1::GetPackageResponse>::Create(channel_.get(), cq, rpcmethod_GetPackage_, context, request, false); } ::grpc::Status PackageService::Stub::ListPackages(::grpc::ClientContext* context, const ::viam::app::packages::v1::ListPackagesRequest& request, ::viam::app::packages::v1::ListPackagesResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::packages::v1::ListPackagesRequest, ::viam::app::packages::v1::ListPackagesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ListPackages_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListPackages_, context, request, response); } -void PackageService::Stub::async::ListPackages(::grpc::ClientContext* context, const ::viam::app::packages::v1::ListPackagesRequest* request, ::viam::app::packages::v1::ListPackagesResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::packages::v1::ListPackagesRequest, ::viam::app::packages::v1::ListPackagesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListPackages_, context, request, response, std::move(f)); +void PackageService::Stub::experimental_async::ListPackages(::grpc::ClientContext* context, const ::viam::app::packages::v1::ListPackagesRequest* request, ::viam::app::packages::v1::ListPackagesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListPackages_, context, request, response, std::move(f)); } -void PackageService::Stub::async::ListPackages(::grpc::ClientContext* context, const ::viam::app::packages::v1::ListPackagesRequest* request, ::viam::app::packages::v1::ListPackagesResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListPackages_, context, request, response, reactor); +void PackageService::Stub::experimental_async::ListPackages(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::packages::v1::ListPackagesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListPackages_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::packages::v1::ListPackagesResponse>* PackageService::Stub::PrepareAsyncListPackagesRaw(::grpc::ClientContext* context, const ::viam::app::packages::v1::ListPackagesRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::packages::v1::ListPackagesResponse, ::viam::app::packages::v1::ListPackagesRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ListPackages_, context, request); +void PackageService::Stub::experimental_async::ListPackages(::grpc::ClientContext* context, const ::viam::app::packages::v1::ListPackagesRequest* request, ::viam::app::packages::v1::ListPackagesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListPackages_, context, request, response, reactor); +} + +void PackageService::Stub::experimental_async::ListPackages(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::packages::v1::ListPackagesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListPackages_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::app::packages::v1::ListPackagesResponse>* PackageService::Stub::AsyncListPackagesRaw(::grpc::ClientContext* context, const ::viam::app::packages::v1::ListPackagesRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncListPackagesRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::packages::v1::ListPackagesResponse>::Create(channel_.get(), cq, rpcmethod_ListPackages_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::packages::v1::ListPackagesResponse>* PackageService::Stub::PrepareAsyncListPackagesRaw(::grpc::ClientContext* context, const ::viam::app::packages::v1::ListPackagesRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::packages::v1::ListPackagesResponse>::Create(channel_.get(), cq, rpcmethod_ListPackages_, context, request, false); } PackageService::Service::Service() { @@ -135,17 +150,17 @@ PackageService::Service::Service() { ::grpc::internal::RpcMethod::CLIENT_STREAMING, new ::grpc::internal::ClientStreamingHandler< PackageService::Service, ::viam::app::packages::v1::CreatePackageRequest, ::viam::app::packages::v1::CreatePackageResponse>( [](PackageService::Service* service, - ::grpc::ServerContext* ctx, - ::grpc::ServerReader<::viam::app::packages::v1::CreatePackageRequest>* reader, + ::grpc_impl::ServerContext* ctx, + ::grpc_impl::ServerReader<::viam::app::packages::v1::CreatePackageRequest>* reader, ::viam::app::packages::v1::CreatePackageResponse* resp) { return service->CreatePackage(ctx, reader, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( PackageService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< PackageService::Service, ::viam::app::packages::v1::DeletePackageRequest, ::viam::app::packages::v1::DeletePackageResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< PackageService::Service, ::viam::app::packages::v1::DeletePackageRequest, ::viam::app::packages::v1::DeletePackageResponse>( [](PackageService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::packages::v1::DeletePackageRequest* req, ::viam::app::packages::v1::DeletePackageResponse* resp) { return service->DeletePackage(ctx, req, resp); @@ -153,9 +168,9 @@ PackageService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( PackageService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< PackageService::Service, ::viam::app::packages::v1::GetPackageRequest, ::viam::app::packages::v1::GetPackageResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< PackageService::Service, ::viam::app::packages::v1::GetPackageRequest, ::viam::app::packages::v1::GetPackageResponse>( [](PackageService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::packages::v1::GetPackageRequest* req, ::viam::app::packages::v1::GetPackageResponse* resp) { return service->GetPackage(ctx, req, resp); @@ -163,9 +178,9 @@ PackageService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( PackageService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< PackageService::Service, ::viam::app::packages::v1::ListPackagesRequest, ::viam::app::packages::v1::ListPackagesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< PackageService::Service, ::viam::app::packages::v1::ListPackagesRequest, ::viam::app::packages::v1::ListPackagesResponse>( [](PackageService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::packages::v1::ListPackagesRequest* req, ::viam::app::packages::v1::ListPackagesResponse* resp) { return service->ListPackages(ctx, req, resp); diff --git a/src/viam/api/app/packages/v1/packages.grpc.pb.h b/src/viam/api/app/packages/v1/packages.grpc.pb.h index ce9983526..041dc3e05 100644 --- a/src/viam/api/app/packages/v1/packages.grpc.pb.h +++ b/src/viam/api/app/packages/v1/packages.grpc.pb.h @@ -7,23 +7,24 @@ #include "app/packages/v1/packages.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace app { @@ -75,28 +76,66 @@ class PackageService final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::packages::v1::ListPackagesResponse>> PrepareAsyncListPackages(::grpc::ClientContext* context, const ::viam::app::packages::v1::ListPackagesRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::packages::v1::ListPackagesResponse>>(PrepareAsyncListPackagesRaw(context, request, cq)); } - class async_interface { + class experimental_async_interface { public: - virtual ~async_interface() {} + virtual ~experimental_async_interface() {} // CreatePackage uploads a package to the cloud + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void CreatePackage(::grpc::ClientContext* context, ::viam::app::packages::v1::CreatePackageResponse* response, ::grpc::ClientWriteReactor< ::viam::app::packages::v1::CreatePackageRequest>* reactor) = 0; + #else + virtual void CreatePackage(::grpc::ClientContext* context, ::viam::app::packages::v1::CreatePackageResponse* response, ::grpc::experimental::ClientWriteReactor< ::viam::app::packages::v1::CreatePackageRequest>* reactor) = 0; + #endif // DeletePackage removes the given package versions virtual void DeletePackage(::grpc::ClientContext* context, const ::viam::app::packages::v1::DeletePackageRequest* request, ::viam::app::packages::v1::DeletePackageResponse* response, std::function) = 0; + virtual void DeletePackage(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::packages::v1::DeletePackageResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void DeletePackage(::grpc::ClientContext* context, const ::viam::app::packages::v1::DeletePackageRequest* request, ::viam::app::packages::v1::DeletePackageResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DeletePackage(::grpc::ClientContext* context, const ::viam::app::packages::v1::DeletePackageRequest* request, ::viam::app::packages::v1::DeletePackageResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void DeletePackage(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::packages::v1::DeletePackageResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DeletePackage(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::packages::v1::DeletePackageResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // GetPackage returns the metadata for a requested package version. It also returns a URL // for downloading the package if one is requested. virtual void GetPackage(::grpc::ClientContext* context, const ::viam::app::packages::v1::GetPackageRequest* request, ::viam::app::packages::v1::GetPackageResponse* response, std::function) = 0; + virtual void GetPackage(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::packages::v1::GetPackageResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetPackage(::grpc::ClientContext* context, const ::viam::app::packages::v1::GetPackageRequest* request, ::viam::app::packages::v1::GetPackageResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetPackage(::grpc::ClientContext* context, const ::viam::app::packages::v1::GetPackageRequest* request, ::viam::app::packages::v1::GetPackageResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetPackage(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::packages::v1::GetPackageResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetPackage(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::packages::v1::GetPackageResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // ListPackages gets the metadata for the requested packages. Includes package name, version, and/or // type to filter beyond the required organization_id. ListPackages also returns URLs for // downloading each package if they are requested. virtual void ListPackages(::grpc::ClientContext* context, const ::viam::app::packages::v1::ListPackagesRequest* request, ::viam::app::packages::v1::ListPackagesResponse* response, std::function) = 0; + virtual void ListPackages(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::packages::v1::ListPackagesResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void ListPackages(::grpc::ClientContext* context, const ::viam::app::packages::v1::ListPackagesRequest* request, ::viam::app::packages::v1::ListPackagesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ListPackages(::grpc::ClientContext* context, const ::viam::app::packages::v1::ListPackagesRequest* request, ::viam::app::packages::v1::ListPackagesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void ListPackages(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::packages::v1::ListPackagesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ListPackages(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::packages::v1::ListPackagesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif }; - typedef class async_interface experimental_async_interface; - virtual class async_interface* async() { return nullptr; } - class async_interface* experimental_async() { return async(); } - private: + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef class experimental_async_interface async_interface; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + async_interface* async() { return experimental_async(); } + #endif + virtual class experimental_async_interface* experimental_async() { return nullptr; } + private: virtual ::grpc::ClientWriterInterface< ::viam::app::packages::v1::CreatePackageRequest>* CreatePackageRaw(::grpc::ClientContext* context, ::viam::app::packages::v1::CreatePackageResponse* response) = 0; virtual ::grpc::ClientAsyncWriterInterface< ::viam::app::packages::v1::CreatePackageRequest>* AsyncCreatePackageRaw(::grpc::ClientContext* context, ::viam::app::packages::v1::CreatePackageResponse* response, ::grpc::CompletionQueue* cq, void* tag) = 0; virtual ::grpc::ClientAsyncWriterInterface< ::viam::app::packages::v1::CreatePackageRequest>* PrepareAsyncCreatePackageRaw(::grpc::ClientContext* context, ::viam::app::packages::v1::CreatePackageResponse* response, ::grpc::CompletionQueue* cq) = 0; @@ -109,7 +148,7 @@ class PackageService final { }; class Stub final : public StubInterface { public: - Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); std::unique_ptr< ::grpc::ClientWriter< ::viam::app::packages::v1::CreatePackageRequest>> CreatePackage(::grpc::ClientContext* context, ::viam::app::packages::v1::CreatePackageResponse* response) { return std::unique_ptr< ::grpc::ClientWriter< ::viam::app::packages::v1::CreatePackageRequest>>(CreatePackageRaw(context, response)); } @@ -140,27 +179,61 @@ class PackageService final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::packages::v1::ListPackagesResponse>> PrepareAsyncListPackages(::grpc::ClientContext* context, const ::viam::app::packages::v1::ListPackagesRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::packages::v1::ListPackagesResponse>>(PrepareAsyncListPackagesRaw(context, request, cq)); } - class async final : - public StubInterface::async_interface { + class experimental_async final : + public StubInterface::experimental_async_interface { public: + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void CreatePackage(::grpc::ClientContext* context, ::viam::app::packages::v1::CreatePackageResponse* response, ::grpc::ClientWriteReactor< ::viam::app::packages::v1::CreatePackageRequest>* reactor) override; + #else + void CreatePackage(::grpc::ClientContext* context, ::viam::app::packages::v1::CreatePackageResponse* response, ::grpc::experimental::ClientWriteReactor< ::viam::app::packages::v1::CreatePackageRequest>* reactor) override; + #endif void DeletePackage(::grpc::ClientContext* context, const ::viam::app::packages::v1::DeletePackageRequest* request, ::viam::app::packages::v1::DeletePackageResponse* response, std::function) override; + void DeletePackage(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::packages::v1::DeletePackageResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void DeletePackage(::grpc::ClientContext* context, const ::viam::app::packages::v1::DeletePackageRequest* request, ::viam::app::packages::v1::DeletePackageResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DeletePackage(::grpc::ClientContext* context, const ::viam::app::packages::v1::DeletePackageRequest* request, ::viam::app::packages::v1::DeletePackageResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void DeletePackage(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::packages::v1::DeletePackageResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DeletePackage(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::packages::v1::DeletePackageResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetPackage(::grpc::ClientContext* context, const ::viam::app::packages::v1::GetPackageRequest* request, ::viam::app::packages::v1::GetPackageResponse* response, std::function) override; + void GetPackage(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::packages::v1::GetPackageResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetPackage(::grpc::ClientContext* context, const ::viam::app::packages::v1::GetPackageRequest* request, ::viam::app::packages::v1::GetPackageResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetPackage(::grpc::ClientContext* context, const ::viam::app::packages::v1::GetPackageRequest* request, ::viam::app::packages::v1::GetPackageResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetPackage(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::packages::v1::GetPackageResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetPackage(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::packages::v1::GetPackageResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void ListPackages(::grpc::ClientContext* context, const ::viam::app::packages::v1::ListPackagesRequest* request, ::viam::app::packages::v1::ListPackagesResponse* response, std::function) override; + void ListPackages(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::packages::v1::ListPackagesResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void ListPackages(::grpc::ClientContext* context, const ::viam::app::packages::v1::ListPackagesRequest* request, ::viam::app::packages::v1::ListPackagesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ListPackages(::grpc::ClientContext* context, const ::viam::app::packages::v1::ListPackagesRequest* request, ::viam::app::packages::v1::ListPackagesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void ListPackages(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::packages::v1::ListPackagesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ListPackages(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::packages::v1::ListPackagesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif private: friend class Stub; - explicit async(Stub* stub): stub_(stub) { } + explicit experimental_async(Stub* stub): stub_(stub) { } Stub* stub() { return stub_; } Stub* stub_; }; - class async* async() override { return &async_stub_; } + class experimental_async_interface* experimental_async() override { return &async_stub_; } private: std::shared_ptr< ::grpc::ChannelInterface> channel_; - class async async_stub_{this}; + class experimental_async async_stub_{this}; ::grpc::ClientWriter< ::viam::app::packages::v1::CreatePackageRequest>* CreatePackageRaw(::grpc::ClientContext* context, ::viam::app::packages::v1::CreatePackageResponse* response) override; ::grpc::ClientAsyncWriter< ::viam::app::packages::v1::CreatePackageRequest>* AsyncCreatePackageRaw(::grpc::ClientContext* context, ::viam::app::packages::v1::CreatePackageResponse* response, ::grpc::CompletionQueue* cq, void* tag) override; ::grpc::ClientAsyncWriter< ::viam::app::packages::v1::CreatePackageRequest>* PrepareAsyncCreatePackageRaw(::grpc::ClientContext* context, ::viam::app::packages::v1::CreatePackageResponse* response, ::grpc::CompletionQueue* cq) override; @@ -275,17 +348,27 @@ class PackageService final { }; typedef WithAsyncMethod_CreatePackage > > > AsyncService; template - class WithCallbackMethod_CreatePackage : public BaseClass { + class ExperimentalWithCallbackMethod_CreatePackage : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_CreatePackage() { - ::grpc::Service::MarkMethodCallback(0, - new ::grpc::internal::CallbackClientStreamingHandler< ::viam::app::packages::v1::CreatePackageRequest, ::viam::app::packages::v1::CreatePackageResponse>( + ExperimentalWithCallbackMethod_CreatePackage() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(0, + new ::grpc_impl::internal::CallbackClientStreamingHandler< ::viam::app::packages::v1::CreatePackageRequest, ::viam::app::packages::v1::CreatePackageResponse>( [this]( - ::grpc::CallbackServerContext* context, ::viam::app::packages::v1::CreatePackageResponse* response) { return this->CreatePackage(context, response); })); - } - ~WithCallbackMethod_CreatePackage() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, ::viam::app::packages::v1::CreatePackageResponse* response) { return this->CreatePackage(context, response); })); + } + ~ExperimentalWithCallbackMethod_CreatePackage() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -293,26 +376,46 @@ class PackageService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerReadReactor< ::viam::app::packages::v1::CreatePackageRequest>* CreatePackage( - ::grpc::CallbackServerContext* /*context*/, ::viam::app::packages::v1::CreatePackageResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, ::viam::app::packages::v1::CreatePackageResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerReadReactor< ::viam::app::packages::v1::CreatePackageRequest>* CreatePackage( + ::grpc::experimental::CallbackServerContext* /*context*/, ::viam::app::packages::v1::CreatePackageResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_DeletePackage : public BaseClass { + class ExperimentalWithCallbackMethod_DeletePackage : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_DeletePackage() { - ::grpc::Service::MarkMethodCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::packages::v1::DeletePackageRequest, ::viam::app::packages::v1::DeletePackageResponse>( + ExperimentalWithCallbackMethod_DeletePackage() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::packages::v1::DeletePackageRequest, ::viam::app::packages::v1::DeletePackageResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::packages::v1::DeletePackageRequest* request, ::viam::app::packages::v1::DeletePackageResponse* response) { return this->DeletePackage(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::packages::v1::DeletePackageRequest* request, ::viam::app::packages::v1::DeletePackageResponse* response) { return this->DeletePackage(context, request, response); }));} void SetMessageAllocatorFor_DeletePackage( - ::grpc::MessageAllocator< ::viam::app::packages::v1::DeletePackageRequest, ::viam::app::packages::v1::DeletePackageResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::app::packages::v1::DeletePackageRequest, ::viam::app::packages::v1::DeletePackageResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::packages::v1::DeletePackageRequest, ::viam::app::packages::v1::DeletePackageResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(1); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::packages::v1::DeletePackageRequest, ::viam::app::packages::v1::DeletePackageResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_DeletePackage() override { + ~ExperimentalWithCallbackMethod_DeletePackage() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -320,26 +423,46 @@ class PackageService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DeletePackage( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::packages::v1::DeletePackageRequest* /*request*/, ::viam::app::packages::v1::DeletePackageResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::packages::v1::DeletePackageRequest* /*request*/, ::viam::app::packages::v1::DeletePackageResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DeletePackage( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::packages::v1::DeletePackageRequest* /*request*/, ::viam::app::packages::v1::DeletePackageResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetPackage : public BaseClass { + class ExperimentalWithCallbackMethod_GetPackage : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetPackage() { - ::grpc::Service::MarkMethodCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::packages::v1::GetPackageRequest, ::viam::app::packages::v1::GetPackageResponse>( + ExperimentalWithCallbackMethod_GetPackage() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(2, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::packages::v1::GetPackageRequest, ::viam::app::packages::v1::GetPackageResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::packages::v1::GetPackageRequest* request, ::viam::app::packages::v1::GetPackageResponse* response) { return this->GetPackage(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::packages::v1::GetPackageRequest* request, ::viam::app::packages::v1::GetPackageResponse* response) { return this->GetPackage(context, request, response); }));} void SetMessageAllocatorFor_GetPackage( - ::grpc::MessageAllocator< ::viam::app::packages::v1::GetPackageRequest, ::viam::app::packages::v1::GetPackageResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::app::packages::v1::GetPackageRequest, ::viam::app::packages::v1::GetPackageResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::packages::v1::GetPackageRequest, ::viam::app::packages::v1::GetPackageResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(2); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::packages::v1::GetPackageRequest, ::viam::app::packages::v1::GetPackageResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetPackage() override { + ~ExperimentalWithCallbackMethod_GetPackage() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -347,26 +470,46 @@ class PackageService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetPackage( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::packages::v1::GetPackageRequest* /*request*/, ::viam::app::packages::v1::GetPackageResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::packages::v1::GetPackageRequest* /*request*/, ::viam::app::packages::v1::GetPackageResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetPackage( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::packages::v1::GetPackageRequest* /*request*/, ::viam::app::packages::v1::GetPackageResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_ListPackages : public BaseClass { + class ExperimentalWithCallbackMethod_ListPackages : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_ListPackages() { - ::grpc::Service::MarkMethodCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::packages::v1::ListPackagesRequest, ::viam::app::packages::v1::ListPackagesResponse>( + ExperimentalWithCallbackMethod_ListPackages() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(3, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::packages::v1::ListPackagesRequest, ::viam::app::packages::v1::ListPackagesResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::packages::v1::ListPackagesRequest* request, ::viam::app::packages::v1::ListPackagesResponse* response) { return this->ListPackages(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::packages::v1::ListPackagesRequest* request, ::viam::app::packages::v1::ListPackagesResponse* response) { return this->ListPackages(context, request, response); }));} void SetMessageAllocatorFor_ListPackages( - ::grpc::MessageAllocator< ::viam::app::packages::v1::ListPackagesRequest, ::viam::app::packages::v1::ListPackagesResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::app::packages::v1::ListPackagesRequest, ::viam::app::packages::v1::ListPackagesResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::packages::v1::ListPackagesRequest, ::viam::app::packages::v1::ListPackagesResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(3); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::packages::v1::ListPackagesRequest, ::viam::app::packages::v1::ListPackagesResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_ListPackages() override { + ~ExperimentalWithCallbackMethod_ListPackages() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -374,11 +517,20 @@ class PackageService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* ListPackages( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::packages::v1::ListPackagesRequest* /*request*/, ::viam::app::packages::v1::ListPackagesResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::packages::v1::ListPackagesRequest* /*request*/, ::viam::app::packages::v1::ListPackagesResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ListPackages( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::packages::v1::ListPackagesRequest* /*request*/, ::viam::app::packages::v1::ListPackagesResponse* /*response*/) + #endif + { return nullptr; } }; - typedef WithCallbackMethod_CreatePackage > > > CallbackService; - typedef CallbackService ExperimentalCallbackService; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef ExperimentalWithCallbackMethod_CreatePackage > > > CallbackService; + #endif + + typedef ExperimentalWithCallbackMethod_CreatePackage > > > ExperimentalCallbackService; template class WithGenericMethod_CreatePackage : public BaseClass { private: @@ -528,17 +680,27 @@ class PackageService final { } }; template - class WithRawCallbackMethod_CreatePackage : public BaseClass { + class ExperimentalWithRawCallbackMethod_CreatePackage : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_CreatePackage() { - ::grpc::Service::MarkMethodRawCallback(0, - new ::grpc::internal::CallbackClientStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_CreatePackage() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(0, + new ::grpc_impl::internal::CallbackClientStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, ::grpc::ByteBuffer* response) { return this->CreatePackage(context, response); })); - } - ~WithRawCallbackMethod_CreatePackage() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, ::grpc::ByteBuffer* response) { return this->CreatePackage(context, response); })); + } + ~ExperimentalWithRawCallbackMethod_CreatePackage() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -546,21 +708,37 @@ class PackageService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerReadReactor< ::grpc::ByteBuffer>* CreatePackage( - ::grpc::CallbackServerContext* /*context*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerReadReactor< ::grpc::ByteBuffer>* CreatePackage( + ::grpc::experimental::CallbackServerContext* /*context*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_DeletePackage : public BaseClass { + class ExperimentalWithRawCallbackMethod_DeletePackage : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_DeletePackage() { - ::grpc::Service::MarkMethodRawCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_DeletePackage() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DeletePackage(context, request, response); })); - } - ~WithRawCallbackMethod_DeletePackage() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DeletePackage(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_DeletePackage() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -568,21 +746,37 @@ class PackageService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DeletePackage( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DeletePackage( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetPackage : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetPackage : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetPackage() { - ::grpc::Service::MarkMethodRawCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetPackage() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(2, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetPackage(context, request, response); })); - } - ~WithRawCallbackMethod_GetPackage() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetPackage(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetPackage() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -590,21 +784,37 @@ class PackageService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetPackage( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetPackage( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_ListPackages : public BaseClass { + class ExperimentalWithRawCallbackMethod_ListPackages : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_ListPackages() { - ::grpc::Service::MarkMethodRawCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_ListPackages() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(3, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ListPackages(context, request, response); })); - } - ~WithRawCallbackMethod_ListPackages() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ListPackages(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_ListPackages() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -612,8 +822,14 @@ class PackageService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* ListPackages( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ListPackages( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template class WithStreamedUnaryMethod_DeletePackage : public BaseClass { @@ -624,8 +840,8 @@ class PackageService final { ::grpc::Service::MarkMethodStreamed(1, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::packages::v1::DeletePackageRequest, ::viam::app::packages::v1::DeletePackageResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::packages::v1::DeletePackageRequest, ::viam::app::packages::v1::DeletePackageResponse>* streamer) { return this->StreamedDeletePackage(context, streamer); @@ -651,8 +867,8 @@ class PackageService final { ::grpc::Service::MarkMethodStreamed(2, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::packages::v1::GetPackageRequest, ::viam::app::packages::v1::GetPackageResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::packages::v1::GetPackageRequest, ::viam::app::packages::v1::GetPackageResponse>* streamer) { return this->StreamedGetPackage(context, streamer); @@ -678,8 +894,8 @@ class PackageService final { ::grpc::Service::MarkMethodStreamed(3, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::packages::v1::ListPackagesRequest, ::viam::app::packages::v1::ListPackagesResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::packages::v1::ListPackagesRequest, ::viam::app::packages::v1::ListPackagesResponse>* streamer) { return this->StreamedListPackages(context, streamer); diff --git a/src/viam/api/app/packages/v1/packages.pb.cc b/src/viam/api/app/packages/v1/packages.pb.cc index 50e5c59a8..c36dfd6bf 100644 --- a/src/viam/api/app/packages/v1/packages.pb.cc +++ b/src/viam/api/app/packages/v1/packages.pb.cc @@ -4,831 +4,680 @@ #include "app/packages/v1/packages.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace viam { namespace app { namespace packages { namespace v1 { - -inline constexpr ListPackagesRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - organization_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - version_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - type_{static_cast< ::viam::app::packages::v1::PackageType >(0)}, - include_url_{false} {} - -template -PROTOBUF_CONSTEXPR ListPackagesRequest::ListPackagesRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ListPackagesRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR ListPackagesRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ListPackagesRequestDefaultTypeInternal() {} - union { - ListPackagesRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListPackagesRequestDefaultTypeInternal _ListPackagesRequest_default_instance_; - -inline constexpr GetPackageRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - version_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - platform_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - include_url_{false}, - type_{static_cast< ::viam::app::packages::v1::PackageType >(0)} {} - -template -PROTOBUF_CONSTEXPR GetPackageRequest::GetPackageRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetPackageRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetPackageRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetPackageRequestDefaultTypeInternal() {} - union { - GetPackageRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPackageRequestDefaultTypeInternal _GetPackageRequest_default_instance_; - -inline constexpr FileInfo::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - size_{::uint64_t{0u}}, - is_directory_{false} {} - -template -PROTOBUF_CONSTEXPR FileInfo::FileInfo(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_CONSTEXPR FileInfo::FileInfo( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , size_(uint64_t{0u}) + , is_directory_(false){} struct FileInfoDefaultTypeInternal { - PROTOBUF_CONSTEXPR FileInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR FileInfoDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~FileInfoDefaultTypeInternal() {} union { FileInfo _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FileInfoDefaultTypeInternal _FileInfo_default_instance_; - template -PROTOBUF_CONSTEXPR DeletePackageResponse::DeletePackageResponse(::_pbi::ConstantInitialized) {} -struct DeletePackageResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR DeletePackageResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~DeletePackageResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FileInfoDefaultTypeInternal _FileInfo_default_instance_; +PROTOBUF_CONSTEXPR PackageInfo::PackageInfo( + ::_pbi::ConstantInitialized) + : files_() + , organization_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , version_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , platform_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , metadata_(nullptr) + , type_(0) +{} +struct PackageInfoDefaultTypeInternal { + PROTOBUF_CONSTEXPR PackageInfoDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~PackageInfoDefaultTypeInternal() {} union { - DeletePackageResponse _instance; + PackageInfo _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeletePackageResponseDefaultTypeInternal _DeletePackageResponse_default_instance_; - -inline constexpr DeletePackageRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - version_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - type_{static_cast< ::viam::app::packages::v1::PackageType >(0)}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR DeletePackageRequest::DeletePackageRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct DeletePackageRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR DeletePackageRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~DeletePackageRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PackageInfoDefaultTypeInternal _PackageInfo_default_instance_; +PROTOBUF_CONSTEXPR CreatePackageRequest::CreatePackageRequest( + ::_pbi::ConstantInitialized) + : _oneof_case_{}{} +struct CreatePackageRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR CreatePackageRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CreatePackageRequestDefaultTypeInternal() {} union { - DeletePackageRequest _instance; + CreatePackageRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeletePackageRequestDefaultTypeInternal _DeletePackageRequest_default_instance_; - -inline constexpr CreatePackageResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - version_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR CreatePackageResponse::CreatePackageResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreatePackageRequestDefaultTypeInternal _CreatePackageRequest_default_instance_; +PROTOBUF_CONSTEXPR CreatePackageResponse::CreatePackageResponse( + ::_pbi::ConstantInitialized) + : id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , version_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} struct CreatePackageResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR CreatePackageResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR CreatePackageResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~CreatePackageResponseDefaultTypeInternal() {} union { CreatePackageResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreatePackageResponseDefaultTypeInternal _CreatePackageResponse_default_instance_; - -inline constexpr PackageInfo::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - files_{}, - organization_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - version_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - platform_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - metadata_{nullptr}, - type_{static_cast< ::viam::app::packages::v1::PackageType >(0)} {} - -template -PROTOBUF_CONSTEXPR PackageInfo::PackageInfo(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct PackageInfoDefaultTypeInternal { - PROTOBUF_CONSTEXPR PackageInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~PackageInfoDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreatePackageResponseDefaultTypeInternal _CreatePackageResponse_default_instance_; +PROTOBUF_CONSTEXPR DeletePackageRequest::DeletePackageRequest( + ::_pbi::ConstantInitialized) + : id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , version_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , type_(0) +{} +struct DeletePackageRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR DeletePackageRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DeletePackageRequestDefaultTypeInternal() {} union { - PackageInfo _instance; + DeletePackageRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PackageInfoDefaultTypeInternal _PackageInfo_default_instance_; - -inline constexpr Package::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - url_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - checksum_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - info_{nullptr}, - created_on_{nullptr} {} - -template -PROTOBUF_CONSTEXPR Package::Package(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct PackageDefaultTypeInternal { - PROTOBUF_CONSTEXPR PackageDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~PackageDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeletePackageRequestDefaultTypeInternal _DeletePackageRequest_default_instance_; +PROTOBUF_CONSTEXPR DeletePackageResponse::DeletePackageResponse( + ::_pbi::ConstantInitialized){} +struct DeletePackageResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR DeletePackageResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DeletePackageResponseDefaultTypeInternal() {} union { - Package _instance; + DeletePackageResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PackageDefaultTypeInternal _Package_default_instance_; - -inline constexpr CreatePackageRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : package_{}, - _cached_size_{0}, - _oneof_case_{} {} - -template -PROTOBUF_CONSTEXPR CreatePackageRequest::CreatePackageRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct CreatePackageRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR CreatePackageRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CreatePackageRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeletePackageResponseDefaultTypeInternal _DeletePackageResponse_default_instance_; +PROTOBUF_CONSTEXPR Package::Package( + ::_pbi::ConstantInitialized) + : url_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , checksum_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , info_(nullptr) + , created_on_(nullptr){} +struct PackageDefaultTypeInternal { + PROTOBUF_CONSTEXPR PackageDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~PackageDefaultTypeInternal() {} union { - CreatePackageRequest _instance; + Package _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreatePackageRequestDefaultTypeInternal _CreatePackageRequest_default_instance_; - -inline constexpr ListPackagesResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : packages_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR ListPackagesResponse::ListPackagesResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ListPackagesResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ListPackagesResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ListPackagesResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PackageDefaultTypeInternal _Package_default_instance_; +PROTOBUF_CONSTEXPR GetPackageRequest::GetPackageRequest( + ::_pbi::ConstantInitialized) + : id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , version_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , platform_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , include_url_(false) + , type_(0) +{} +struct GetPackageRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPackageRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPackageRequestDefaultTypeInternal() {} union { - ListPackagesResponse _instance; + GetPackageRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListPackagesResponseDefaultTypeInternal _ListPackagesResponse_default_instance_; - -inline constexpr GetPackageResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - package_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetPackageResponse::GetPackageResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPackageRequestDefaultTypeInternal _GetPackageRequest_default_instance_; +PROTOBUF_CONSTEXPR GetPackageResponse::GetPackageResponse( + ::_pbi::ConstantInitialized) + : package_(nullptr){} struct GetPackageResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetPackageResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GetPackageResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~GetPackageResponseDefaultTypeInternal() {} union { GetPackageResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPackageResponseDefaultTypeInternal _GetPackageResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPackageResponseDefaultTypeInternal _GetPackageResponse_default_instance_; +PROTOBUF_CONSTEXPR ListPackagesRequest::ListPackagesRequest( + ::_pbi::ConstantInitialized) + : organization_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , version_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , type_(0) + + , include_url_(false){} +struct ListPackagesRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR ListPackagesRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ListPackagesRequestDefaultTypeInternal() {} + union { + ListPackagesRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListPackagesRequestDefaultTypeInternal _ListPackagesRequest_default_instance_; +PROTOBUF_CONSTEXPR ListPackagesResponse::ListPackagesResponse( + ::_pbi::ConstantInitialized) + : packages_(){} +struct ListPackagesResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ListPackagesResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ListPackagesResponseDefaultTypeInternal() {} + union { + ListPackagesResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListPackagesResponseDefaultTypeInternal _ListPackagesResponse_default_instance_; } // namespace v1 } // namespace packages } // namespace app } // namespace viam static ::_pb::Metadata file_level_metadata_app_2fpackages_2fv1_2fpackages_2eproto[11]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_app_2fpackages_2fv1_2fpackages_2eproto[1]; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_app_2fpackages_2fv1_2fpackages_2eproto = nullptr; -const ::uint32_t TableStruct_app_2fpackages_2fv1_2fpackages_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::FileInfo, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::FileInfo, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::FileInfo, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::FileInfo, _impl_.size_), - PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::FileInfo, _impl_.is_directory_), - ~0u, - ~0u, - 0, - PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::PackageInfo, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::PackageInfo, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::PackageInfo, _impl_.organization_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::PackageInfo, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::PackageInfo, _impl_.version_), - PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::PackageInfo, _impl_.type_), - PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::PackageInfo, _impl_.platform_), - PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::PackageInfo, _impl_.files_), - PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::PackageInfo, _impl_.metadata_), - ~0u, - ~0u, - ~0u, - ~0u, - 0, - ~0u, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::CreatePackageRequest, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::CreatePackageRequest, _impl_._oneof_case_[0]), - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::CreatePackageRequest, _impl_.package_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::CreatePackageResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::CreatePackageResponse, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::CreatePackageResponse, _impl_.version_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::DeletePackageRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::DeletePackageRequest, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::DeletePackageRequest, _impl_.version_), - PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::DeletePackageRequest, _impl_.type_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::DeletePackageResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::Package, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::Package, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::Package, _impl_.info_), - PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::Package, _impl_.url_), - PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::Package, _impl_.created_on_), - PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::Package, _impl_.checksum_), - PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::Package, _impl_.id_), - 0, - ~0u, - 1, - ~0u, - ~0u, - PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::GetPackageRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::GetPackageRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::GetPackageRequest, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::GetPackageRequest, _impl_.version_), - PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::GetPackageRequest, _impl_.include_url_), - PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::GetPackageRequest, _impl_.type_), - PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::GetPackageRequest, _impl_.platform_), - ~0u, - ~0u, - 1, - 2, - 0, - PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::GetPackageResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::GetPackageResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::GetPackageResponse, _impl_.package_), - 0, - PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::ListPackagesRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::ListPackagesRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::ListPackagesRequest, _impl_.organization_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::ListPackagesRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::ListPackagesRequest, _impl_.version_), - PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::ListPackagesRequest, _impl_.type_), - PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::ListPackagesRequest, _impl_.include_url_), - ~0u, - 0, - 1, - 2, - 3, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::ListPackagesResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::ListPackagesResponse, _impl_.packages_), +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_app_2fpackages_2fv1_2fpackages_2eproto = nullptr; + +const uint32_t TableStruct_app_2fpackages_2fv1_2fpackages_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::FileInfo, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::FileInfo, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::FileInfo, name_), + PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::FileInfo, size_), + PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::FileInfo, is_directory_), + ~0u, + ~0u, + 0, + PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::PackageInfo, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::PackageInfo, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::PackageInfo, organization_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::PackageInfo, name_), + PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::PackageInfo, version_), + PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::PackageInfo, type_), + PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::PackageInfo, platform_), + PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::PackageInfo, files_), + PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::PackageInfo, metadata_), + ~0u, + ~0u, + ~0u, + ~0u, + 0, + ~0u, + ~0u, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::CreatePackageRequest, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::CreatePackageRequest, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::CreatePackageRequest, package_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::CreatePackageResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::CreatePackageResponse, id_), + PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::CreatePackageResponse, version_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::DeletePackageRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::DeletePackageRequest, id_), + PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::DeletePackageRequest, version_), + PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::DeletePackageRequest, type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::DeletePackageResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::Package, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::Package, info_), + PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::Package, url_), + PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::Package, created_on_), + PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::Package, checksum_), + PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::Package, id_), + PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::GetPackageRequest, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::GetPackageRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::GetPackageRequest, id_), + PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::GetPackageRequest, version_), + PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::GetPackageRequest, include_url_), + PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::GetPackageRequest, type_), + PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::GetPackageRequest, platform_), + ~0u, + ~0u, + 1, + 2, + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::GetPackageResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::GetPackageResponse, package_), + PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::ListPackagesRequest, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::ListPackagesRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::ListPackagesRequest, organization_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::ListPackagesRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::ListPackagesRequest, version_), + PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::ListPackagesRequest, type_), + PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::ListPackagesRequest, include_url_), + ~0u, + 0, + 1, + 2, + 3, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::ListPackagesResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::ListPackagesResponse, packages_), }; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, 11, -1, sizeof(::viam::app::packages::v1::FileInfo)}, - {14, 29, -1, sizeof(::viam::app::packages::v1::PackageInfo)}, - {36, -1, -1, sizeof(::viam::app::packages::v1::CreatePackageRequest)}, - {47, -1, -1, sizeof(::viam::app::packages::v1::CreatePackageResponse)}, - {57, -1, -1, sizeof(::viam::app::packages::v1::DeletePackageRequest)}, - {68, -1, -1, sizeof(::viam::app::packages::v1::DeletePackageResponse)}, - {76, 89, -1, sizeof(::viam::app::packages::v1::Package)}, - {94, 107, -1, sizeof(::viam::app::packages::v1::GetPackageRequest)}, - {112, 121, -1, sizeof(::viam::app::packages::v1::GetPackageResponse)}, - {122, 135, -1, sizeof(::viam::app::packages::v1::ListPackagesRequest)}, - {140, -1, -1, sizeof(::viam::app::packages::v1::ListPackagesResponse)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, 9, -1, sizeof(::viam::app::packages::v1::FileInfo)}, + { 12, 25, -1, sizeof(::viam::app::packages::v1::PackageInfo)}, + { 32, -1, -1, sizeof(::viam::app::packages::v1::CreatePackageRequest)}, + { 41, -1, -1, sizeof(::viam::app::packages::v1::CreatePackageResponse)}, + { 49, -1, -1, sizeof(::viam::app::packages::v1::DeletePackageRequest)}, + { 58, -1, -1, sizeof(::viam::app::packages::v1::DeletePackageResponse)}, + { 64, -1, -1, sizeof(::viam::app::packages::v1::Package)}, + { 75, 86, -1, sizeof(::viam::app::packages::v1::GetPackageRequest)}, + { 91, -1, -1, sizeof(::viam::app::packages::v1::GetPackageResponse)}, + { 98, 109, -1, sizeof(::viam::app::packages::v1::ListPackagesRequest)}, + { 114, -1, -1, sizeof(::viam::app::packages::v1::ListPackagesResponse)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::viam::app::packages::v1::_FileInfo_default_instance_._instance, - &::viam::app::packages::v1::_PackageInfo_default_instance_._instance, - &::viam::app::packages::v1::_CreatePackageRequest_default_instance_._instance, - &::viam::app::packages::v1::_CreatePackageResponse_default_instance_._instance, - &::viam::app::packages::v1::_DeletePackageRequest_default_instance_._instance, - &::viam::app::packages::v1::_DeletePackageResponse_default_instance_._instance, - &::viam::app::packages::v1::_Package_default_instance_._instance, - &::viam::app::packages::v1::_GetPackageRequest_default_instance_._instance, - &::viam::app::packages::v1::_GetPackageResponse_default_instance_._instance, - &::viam::app::packages::v1::_ListPackagesRequest_default_instance_._instance, - &::viam::app::packages::v1::_ListPackagesResponse_default_instance_._instance, -}; -const char descriptor_table_protodef_app_2fpackages_2fv1_2fpackages_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n\036app/packages/v1/packages.proto\022\024viam.a" - "pp.packages.v1\032\034google/api/annotations.p" - "roto\032\034google/protobuf/struct.proto\032\037goog" - "le/protobuf/timestamp.proto\"k\n\010FileInfo\022" - "\022\n\004name\030\001 \001(\tR\004name\022\022\n\004size\030\002 \001(\004R\004size\022" - "&\n\014is_directory\030\003 \001(\010H\000R\013isDirectory\210\001\001B" - "\017\n\r_is_directory\"\264\002\n\013PackageInfo\022\'\n\017orga" - "nization_id\030\001 \001(\tR\016organizationId\022\022\n\004nam" - "e\030\002 \001(\tR\004name\022\030\n\007version\030\003 \001(\tR\007version\022" - "5\n\004type\030\004 \001(\0162!.viam.app.packages.v1.Pac" - "kageTypeR\004type\022\037\n\010platform\030\007 \001(\tH\000R\010plat" - "form\210\001\001\0224\n\005files\030\005 \003(\0132\036.viam.app.packag" - "es.v1.FileInfoR\005files\0223\n\010metadata\030\006 \001(\0132" - "\027.google.protobuf.StructR\010metadataB\013\n\t_p" - "latform\"x\n\024CreatePackageRequest\0227\n\004info\030" - "\001 \001(\0132!.viam.app.packages.v1.PackageInfo" - "H\000R\004info\022\034\n\010contents\030\002 \001(\014H\000R\010contentsB\t" - "\n\007package\"A\n\025CreatePackageResponse\022\016\n\002id" - "\030\001 \001(\tR\002id\022\030\n\007version\030\002 \001(\tR\007version\"w\n\024" - "DeletePackageRequest\022\016\n\002id\030\001 \001(\tR\002id\022\030\n\007" - "version\030\002 \001(\tR\007version\0225\n\004type\030\003 \001(\0162!.v" - "iam.app.packages.v1.PackageTypeR\004type\"\027\n" - "\025DeletePackageResponse\"\271\001\n\007Package\0225\n\004in" - "fo\030\001 \001(\0132!.viam.app.packages.v1.PackageI" - "nfoR\004info\022\020\n\003url\030\002 \001(\tR\003url\0229\n\ncreated_o" - "n\030\003 \001(\0132\032.google.protobuf.TimestampR\tcre" - "atedOn\022\032\n\010checksum\030\004 \001(\tR\010checksum\022\016\n\002id" - "\030\005 \001(\tR\002id\"\346\001\n\021GetPackageRequest\022\016\n\002id\030\001" - " \001(\tR\002id\022\030\n\007version\030\002 \001(\tR\007version\022$\n\013in" - "clude_url\030\003 \001(\010H\000R\nincludeUrl\210\001\001\022:\n\004type" - "\030\004 \001(\0162!.viam.app.packages.v1.PackageTyp" - "eH\001R\004type\210\001\001\022\037\n\010platform\030\005 \001(\tH\002R\010platfo" - "rm\210\001\001B\016\n\014_include_urlB\007\n\005_typeB\013\n\t_platf" - "orm\"M\n\022GetPackageResponse\0227\n\007package\030\001 \001" - "(\0132\035.viam.app.packages.v1.PackageR\007packa" - "ge\"\206\002\n\023ListPackagesRequest\022\'\n\017organizati" - "on_id\030\001 \001(\tR\016organizationId\022\027\n\004name\030\002 \001(" - "\tH\000R\004name\210\001\001\022\035\n\007version\030\003 \001(\tH\001R\007version" - "\210\001\001\022:\n\004type\030\004 \001(\0162!.viam.app.packages.v1" - ".PackageTypeH\002R\004type\210\001\001\022$\n\013include_url\030\005" - " \001(\010H\003R\nincludeUrl\210\001\001B\007\n\005_nameB\n\n\010_versi" - "onB\007\n\005_typeB\016\n\014_include_url\"Q\n\024ListPacka" - "gesResponse\0229\n\010packages\030\001 \003(\0132\035.viam.app" - ".packages.v1.PackageR\010packages*\262\001\n\013Packa" - "geType\022\034\n\030PACKAGE_TYPE_UNSPECIFIED\020\000\022\030\n\024" - "PACKAGE_TYPE_ARCHIVE\020\001\022\031\n\025PACKAGE_TYPE_M" - "L_MODEL\020\002\022\027\n\023PACKAGE_TYPE_MODULE\020\003\022\031\n\025PA" - "CKAGE_TYPE_SLAM_MAP\020\004\022\034\n\030PACKAGE_TYPE_ML" - "_TRAINING\020\0052\240\004\n\016PackageService\022\207\001\n\rCreat" - "ePackage\022*.viam.app.packages.v1.CreatePa" - "ckageRequest\032+.viam.app.packages.v1.Crea" - "tePackageResponse\"\033\202\323\344\223\002\025\"\023/packages/v1/" - "create(\001\022\205\001\n\rDeletePackage\022*.viam.app.pa" - "ckages.v1.DeletePackageRequest\032+.viam.ap" - "p.packages.v1.DeletePackageResponse\"\033\202\323\344" - "\223\002\025*\023/packages/v1/delete\022y\n\nGetPackage\022\'" - ".viam.app.packages.v1.GetPackageRequest\032" - "(.viam.app.packages.v1.GetPackageRespons" - "e\"\030\202\323\344\223\002\022\022\020/packages/v1/get\022\200\001\n\014ListPack" - "ages\022).viam.app.packages.v1.ListPackages" - "Request\032*.viam.app.packages.v1.ListPacka" - "gesResponse\"\031\202\323\344\223\002\023\022\021/packages/v1/listB\275" - "\001\n\030com.viam.app.packages.v1B\rPackagesPro" - "toP\001Z\037go.viam.com/api/app/packages/v1\242\002\003" - "VAP\252\002\024Viam.App.Packages.V1\312\002\024Viam\\App\\Pa" - "ckages\\V1\342\002 Viam\\App\\Packages\\V1\\GPBMeta" - "data\352\002\027Viam::App::Packages::V1b\006proto3" + &::viam::app::packages::v1::_FileInfo_default_instance_._instance, + &::viam::app::packages::v1::_PackageInfo_default_instance_._instance, + &::viam::app::packages::v1::_CreatePackageRequest_default_instance_._instance, + &::viam::app::packages::v1::_CreatePackageResponse_default_instance_._instance, + &::viam::app::packages::v1::_DeletePackageRequest_default_instance_._instance, + &::viam::app::packages::v1::_DeletePackageResponse_default_instance_._instance, + &::viam::app::packages::v1::_Package_default_instance_._instance, + &::viam::app::packages::v1::_GetPackageRequest_default_instance_._instance, + &::viam::app::packages::v1::_GetPackageResponse_default_instance_._instance, + &::viam::app::packages::v1::_ListPackagesRequest_default_instance_._instance, + &::viam::app::packages::v1::_ListPackagesResponse_default_instance_._instance, }; -static const ::_pbi::DescriptorTable* const descriptor_table_app_2fpackages_2fv1_2fpackages_2eproto_deps[3] = - { - &::descriptor_table_google_2fapi_2fannotations_2eproto, - &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, - &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto, + +const char descriptor_table_protodef_app_2fpackages_2fv1_2fpackages_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\036app/packages/v1/packages.proto\022\024viam.a" + "pp.packages.v1\032\034google/api/annotations.p" + "roto\032\034google/protobuf/struct.proto\032\037goog" + "le/protobuf/timestamp.proto\"k\n\010FileInfo\022" + "\022\n\004name\030\001 \001(\tR\004name\022\022\n\004size\030\002 \001(\004R\004size\022" + "&\n\014is_directory\030\003 \001(\010H\000R\013isDirectory\210\001\001B" + "\017\n\r_is_directory\"\264\002\n\013PackageInfo\022\'\n\017orga" + "nization_id\030\001 \001(\tR\016organizationId\022\022\n\004nam" + "e\030\002 \001(\tR\004name\022\030\n\007version\030\003 \001(\tR\007version\022" + "5\n\004type\030\004 \001(\0162!.viam.app.packages.v1.Pac" + "kageTypeR\004type\022\037\n\010platform\030\007 \001(\tH\000R\010plat" + "form\210\001\001\0224\n\005files\030\005 \003(\0132\036.viam.app.packag" + "es.v1.FileInfoR\005files\0223\n\010metadata\030\006 \001(\0132" + "\027.google.protobuf.StructR\010metadataB\013\n\t_p" + "latform\"x\n\024CreatePackageRequest\0227\n\004info\030" + "\001 \001(\0132!.viam.app.packages.v1.PackageInfo" + "H\000R\004info\022\034\n\010contents\030\002 \001(\014H\000R\010contentsB\t" + "\n\007package\"A\n\025CreatePackageResponse\022\016\n\002id" + "\030\001 \001(\tR\002id\022\030\n\007version\030\002 \001(\tR\007version\"w\n\024" + "DeletePackageRequest\022\016\n\002id\030\001 \001(\tR\002id\022\030\n\007" + "version\030\002 \001(\tR\007version\0225\n\004type\030\003 \001(\0162!.v" + "iam.app.packages.v1.PackageTypeR\004type\"\027\n" + "\025DeletePackageResponse\"\271\001\n\007Package\0225\n\004in" + "fo\030\001 \001(\0132!.viam.app.packages.v1.PackageI" + "nfoR\004info\022\020\n\003url\030\002 \001(\tR\003url\0229\n\ncreated_o" + "n\030\003 \001(\0132\032.google.protobuf.TimestampR\tcre" + "atedOn\022\032\n\010checksum\030\004 \001(\tR\010checksum\022\016\n\002id" + "\030\005 \001(\tR\002id\"\346\001\n\021GetPackageRequest\022\016\n\002id\030\001" + " \001(\tR\002id\022\030\n\007version\030\002 \001(\tR\007version\022$\n\013in" + "clude_url\030\003 \001(\010H\000R\nincludeUrl\210\001\001\022:\n\004type" + "\030\004 \001(\0162!.viam.app.packages.v1.PackageTyp" + "eH\001R\004type\210\001\001\022\037\n\010platform\030\005 \001(\tH\002R\010platfo" + "rm\210\001\001B\016\n\014_include_urlB\007\n\005_typeB\013\n\t_platf" + "orm\"M\n\022GetPackageResponse\0227\n\007package\030\001 \001" + "(\0132\035.viam.app.packages.v1.PackageR\007packa" + "ge\"\206\002\n\023ListPackagesRequest\022\'\n\017organizati" + "on_id\030\001 \001(\tR\016organizationId\022\027\n\004name\030\002 \001(" + "\tH\000R\004name\210\001\001\022\035\n\007version\030\003 \001(\tH\001R\007version" + "\210\001\001\022:\n\004type\030\004 \001(\0162!.viam.app.packages.v1" + ".PackageTypeH\002R\004type\210\001\001\022$\n\013include_url\030\005" + " \001(\010H\003R\nincludeUrl\210\001\001B\007\n\005_nameB\n\n\010_versi" + "onB\007\n\005_typeB\016\n\014_include_url\"Q\n\024ListPacka" + "gesResponse\0229\n\010packages\030\001 \003(\0132\035.viam.app" + ".packages.v1.PackageR\010packages*\262\001\n\013Packa" + "geType\022\034\n\030PACKAGE_TYPE_UNSPECIFIED\020\000\022\030\n\024" + "PACKAGE_TYPE_ARCHIVE\020\001\022\031\n\025PACKAGE_TYPE_M" + "L_MODEL\020\002\022\027\n\023PACKAGE_TYPE_MODULE\020\003\022\031\n\025PA" + "CKAGE_TYPE_SLAM_MAP\020\004\022\034\n\030PACKAGE_TYPE_ML" + "_TRAINING\020\0052\240\004\n\016PackageService\022\207\001\n\rCreat" + "ePackage\022*.viam.app.packages.v1.CreatePa" + "ckageRequest\032+.viam.app.packages.v1.Crea" + "tePackageResponse\"\033\202\323\344\223\002\025\"\023/packages/v1/" + "create(\001\022\205\001\n\rDeletePackage\022*.viam.app.pa" + "ckages.v1.DeletePackageRequest\032+.viam.ap" + "p.packages.v1.DeletePackageResponse\"\033\202\323\344" + "\223\002\025*\023/packages/v1/delete\022y\n\nGetPackage\022\'" + ".viam.app.packages.v1.GetPackageRequest\032" + "(.viam.app.packages.v1.GetPackageRespons" + "e\"\030\202\323\344\223\002\022\022\020/packages/v1/get\022\200\001\n\014ListPack" + "ages\022).viam.app.packages.v1.ListPackages" + "Request\032*.viam.app.packages.v1.ListPacka" + "gesResponse\"\031\202\323\344\223\002\023\022\021/packages/v1/listB!" + "Z\037go.viam.com/api/app/packages/v1b\006proto" + "3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_app_2fpackages_2fv1_2fpackages_2eproto_deps[3] = { + &::descriptor_table_google_2fapi_2fannotations_2eproto, + &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, + &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto, }; -static ::absl::once_flag descriptor_table_app_2fpackages_2fv1_2fpackages_2eproto_once; +static ::_pbi::once_flag descriptor_table_app_2fpackages_2fv1_2fpackages_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_app_2fpackages_2fv1_2fpackages_2eproto = { - false, - false, - 2678, - descriptor_table_protodef_app_2fpackages_2fv1_2fpackages_2eproto, + false, false, 2521, descriptor_table_protodef_app_2fpackages_2fv1_2fpackages_2eproto, "app/packages/v1/packages.proto", - &descriptor_table_app_2fpackages_2fv1_2fpackages_2eproto_once, - descriptor_table_app_2fpackages_2fv1_2fpackages_2eproto_deps, - 3, - 11, - schemas, - file_default_instances, - TableStruct_app_2fpackages_2fv1_2fpackages_2eproto::offsets, - file_level_metadata_app_2fpackages_2fv1_2fpackages_2eproto, - file_level_enum_descriptors_app_2fpackages_2fv1_2fpackages_2eproto, + &descriptor_table_app_2fpackages_2fv1_2fpackages_2eproto_once, descriptor_table_app_2fpackages_2fv1_2fpackages_2eproto_deps, 3, 11, + schemas, file_default_instances, TableStruct_app_2fpackages_2fv1_2fpackages_2eproto::offsets, + file_level_metadata_app_2fpackages_2fv1_2fpackages_2eproto, file_level_enum_descriptors_app_2fpackages_2fv1_2fpackages_2eproto, file_level_service_descriptors_app_2fpackages_2fv1_2fpackages_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_app_2fpackages_2fv1_2fpackages_2eproto_getter() { return &descriptor_table_app_2fpackages_2fv1_2fpackages_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_app_2fpackages_2fv1_2fpackages_2eproto(&descriptor_table_app_2fpackages_2fv1_2fpackages_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_app_2fpackages_2fv1_2fpackages_2eproto(&descriptor_table_app_2fpackages_2fv1_2fpackages_2eproto); namespace viam { namespace app { namespace packages { namespace v1 { -const ::google::protobuf::EnumDescriptor* PackageType_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_app_2fpackages_2fv1_2fpackages_2eproto); +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PackageType_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_app_2fpackages_2fv1_2fpackages_2eproto); return file_level_enum_descriptors_app_2fpackages_2fv1_2fpackages_2eproto[0]; } -PROTOBUF_CONSTINIT const uint32_t PackageType_internal_data_[] = { - 393216u, 0u, }; bool PackageType_IsValid(int value) { - return 0 <= value && value <= 5; + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + return true; + default: + return false; + } } + + // =================================================================== class FileInfo::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(FileInfo, _impl_._has_bits_); + using HasBits = decltype(std::declval()._has_bits_); static void set_has_is_directory(HasBits* has_bits) { (*has_bits)[0] |= 1u; } }; -FileInfo::FileInfo(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +FileInfo::FileInfo(::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.packages.v1.FileInfo) } -inline PROTOBUF_NDEBUG_INLINE FileInfo::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -FileInfo::FileInfo( - ::google::protobuf::Arena* arena, - const FileInfo& from) - : ::google::protobuf::Message(arena) { - FileInfo* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, size_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, size_), - offsetof(Impl_, is_directory_) - - offsetof(Impl_, size_) + - sizeof(Impl_::is_directory_)); - +FileInfo::FileInfo(const FileInfo& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_) { + _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()); + } + ::memcpy(&size_, &from.size_, + static_cast(reinterpret_cast(&is_directory_) - + reinterpret_cast(&size_)) + sizeof(is_directory_)); // @@protoc_insertion_point(copy_constructor:viam.app.packages.v1.FileInfo) } -inline PROTOBUF_NDEBUG_INLINE FileInfo::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} - -inline void FileInfo::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, size_), - 0, - offsetof(Impl_, is_directory_) - - offsetof(Impl_, size_) + - sizeof(Impl_::is_directory_)); + +inline void FileInfo::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&size_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&is_directory_) - + reinterpret_cast(&size_)) + sizeof(is_directory_)); } + FileInfo::~FileInfo() { // @@protoc_insertion_point(destructor:viam.app.packages.v1.FileInfo) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void FileInfo::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); +} + +void FileInfo::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void FileInfo::Clear() { +void FileInfo::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.packages.v1.FileInfo) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _impl_.size_ = ::uint64_t{0u}; - _impl_.is_directory_ = false; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* FileInfo::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + size_ = uint64_t{0u}; + is_directory_ = false; + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* FileInfo::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + 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.app.packages.v1.FileInfo.name")); + } else + goto handle_unusual; + continue; + // uint64 size = 2 [json_name = "size"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional bool is_directory = 3 [json_name = "isDirectory"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + _Internal::set_has_is_directory(&has_bits); + is_directory_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 42, 2> FileInfo::_table_ = { - { - PROTOBUF_FIELD_OFFSET(FileInfo, _impl_._has_bits_), - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_FileInfo_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(FileInfo, _impl_.name_)}}, - // uint64 size = 2 [json_name = "size"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(FileInfo, _impl_.size_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(FileInfo, _impl_.size_)}}, - // optional bool is_directory = 3 [json_name = "isDirectory"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {24, 0, 0, PROTOBUF_FIELD_OFFSET(FileInfo, _impl_.is_directory_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(FileInfo, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // uint64 size = 2 [json_name = "size"]; - {PROTOBUF_FIELD_OFFSET(FileInfo, _impl_.size_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // optional bool is_directory = 3 [json_name = "isDirectory"]; - {PROTOBUF_FIELD_OFFSET(FileInfo, _impl_.is_directory_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - }}, - // no aux_entries - {{ - "\35\4\0\0\0\0\0\0" - "viam.app.packages.v1.FileInfo" - "name" - }}, -}; - -::uint8_t* FileInfo::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* FileInfo::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.packages.v1.FileInfo) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.packages.v1.FileInfo.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.packages.v1.FileInfo.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // uint64 size = 2 [json_name = "size"]; if (this->_internal_size() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 2, this->_internal_size(), target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_size(), target); } - cached_has_bits = _impl_._has_bits_[0]; // optional bool is_directory = 3 [json_name = "isDirectory"]; - if (cached_has_bits & 0x00000001u) { + if (_internal_has_is_directory()) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 3, this->_internal_is_directory(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_is_directory(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.packages.v1.FileInfo) return target; } -::size_t FileInfo::ByteSizeLong() const { +size_t FileInfo::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.packages.v1.FileInfo) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // uint64 size = 2 [json_name = "size"]; if (this->_internal_size() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_size()); + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_size()); } // optional bool is_directory = 3 [json_name = "isDirectory"]; - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData FileInfo::_class_data_ = { - FileInfo::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FileInfo::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + FileInfo::MergeImpl }; -const ::google::protobuf::Message::ClassData* FileInfo::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FileInfo::GetClassData() const { return &_class_data_; } + +void FileInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void FileInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.packages.v1.FileInfo) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void FileInfo::MergeFrom(const FileInfo& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.packages.v1.FileInfo) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (from._internal_size() != 0) { - _this->_internal_set_size(from._internal_size()); + _internal_set_size(from._internal_size()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_set_is_directory(from._internal_is_directory()); + if (from._internal_has_is_directory()) { + _internal_set_is_directory(from._internal_is_directory()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void FileInfo::CopyFrom(const FileInfo& from) { @@ -838,399 +687,452 @@ void FileInfo::CopyFrom(const FileInfo& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool FileInfo::IsInitialized() const { +bool FileInfo::IsInitialized() const { return true; } -::_pbi::CachedSize* FileInfo::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void FileInfo::InternalSwap(FileInfo* PROTOBUF_RESTRICT other) { +void FileInfo::InternalSwap(FileInfo* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(FileInfo, _impl_.is_directory_) - + sizeof(FileInfo::_impl_.is_directory_) - - PROTOBUF_FIELD_OFFSET(FileInfo, _impl_.size_)>( - reinterpret_cast(&_impl_.size_), - reinterpret_cast(&other->_impl_.size_)); -} - -::google::protobuf::Metadata FileInfo::GetMetadata() const { + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(FileInfo, is_directory_) + + sizeof(FileInfo::is_directory_) + - PROTOBUF_FIELD_OFFSET(FileInfo, size_)>( + reinterpret_cast(&size_), + reinterpret_cast(&other->size_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata FileInfo::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fpackages_2fv1_2fpackages_2eproto_getter, &descriptor_table_app_2fpackages_2fv1_2fpackages_2eproto_once, file_level_metadata_app_2fpackages_2fv1_2fpackages_2eproto[0]); } + // =================================================================== class PackageInfo::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(PackageInfo, _impl_._has_bits_); + using HasBits = decltype(std::declval()._has_bits_); static void set_has_platform(HasBits* has_bits) { (*has_bits)[0] |= 1u; } - static const ::google::protobuf::Struct& metadata(const PackageInfo* msg); - static void set_has_metadata(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& metadata(const PackageInfo* msg); }; -const ::google::protobuf::Struct& PackageInfo::_Internal::metadata(const PackageInfo* msg) { - return *msg->_impl_.metadata_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +PackageInfo::_Internal::metadata(const PackageInfo* msg) { + return *msg->metadata_; } void PackageInfo::clear_metadata() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.metadata_ != nullptr) _impl_.metadata_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && metadata_ != nullptr) { + delete metadata_; + } + metadata_ = nullptr; } -PackageInfo::PackageInfo(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +PackageInfo::PackageInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + files_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.packages.v1.PackageInfo) } -inline PROTOBUF_NDEBUG_INLINE PackageInfo::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - files_{visibility, arena, from.files_}, - organization_id_(arena, from.organization_id_), - name_(arena, from.name_), - version_(arena, from.version_), - platform_(arena, from.platform_) {} - -PackageInfo::PackageInfo( - ::google::protobuf::Arena* arena, - const PackageInfo& from) - : ::google::protobuf::Message(arena) { - PackageInfo* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.metadata_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.metadata_) - : nullptr; - _impl_.type_ = from._impl_.type_; - +PackageInfo::PackageInfo(const PackageInfo& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_), + files_(from.files_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + organization_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_organization_id().empty()) { + organization_id_.Set(from._internal_organization_id(), + GetArenaForAllocation()); + } + 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()); + } + version_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + version_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_version().empty()) { + version_.Set(from._internal_version(), + GetArenaForAllocation()); + } + platform_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + platform_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (from._internal_has_platform()) { + platform_.Set(from._internal_platform(), + GetArenaForAllocation()); + } + if (from._internal_has_metadata()) { + metadata_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.metadata_); + } else { + metadata_ = nullptr; + } + type_ = from.type_; // @@protoc_insertion_point(copy_constructor:viam.app.packages.v1.PackageInfo) } -inline PROTOBUF_NDEBUG_INLINE PackageInfo::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - files_{visibility, arena}, - organization_id_(arena), - name_(arena), - version_(arena), - platform_(arena) {} - -inline void PackageInfo::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, metadata_), - 0, - offsetof(Impl_, type_) - - offsetof(Impl_, metadata_) + - sizeof(Impl_::type_)); + +inline void PackageInfo::SharedCtor() { +organization_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +version_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + version_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +platform_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + platform_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&metadata_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&type_) - + reinterpret_cast(&metadata_)) + sizeof(type_)); } + PackageInfo::~PackageInfo() { // @@protoc_insertion_point(destructor:viam.app.packages.v1.PackageInfo) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void PackageInfo::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.organization_id_.Destroy(); - _impl_.name_.Destroy(); - _impl_.version_.Destroy(); - _impl_.platform_.Destroy(); - delete _impl_.metadata_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + organization_id_.Destroy(); + name_.Destroy(); + version_.Destroy(); + platform_.Destroy(); + if (this != internal_default_instance()) delete metadata_; +} + +void PackageInfo::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void PackageInfo::Clear() { +void PackageInfo::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.packages.v1.PackageInfo) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.files_.Clear(); - _impl_.organization_id_.ClearToEmpty(); - _impl_.name_.ClearToEmpty(); - _impl_.version_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _impl_.platform_.ClearNonDefaultToEmpty(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.metadata_ != nullptr); - _impl_.metadata_->Clear(); + files_.Clear(); + organization_id_.ClearToEmpty(); + name_.ClearToEmpty(); + version_.ClearToEmpty(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + platform_.ClearNonDefaultToEmpty(); + } + if (GetArenaForAllocation() == nullptr && metadata_ != nullptr) { + delete metadata_; + } + metadata_ = nullptr; + type_ = 0; + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* PackageInfo::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string organization_id = 1 [json_name = "organizationId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_organization_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.packages.v1.PackageInfo.organization_id")); + } else + goto handle_unusual; + continue; + // string name = 2 [json_name = "name"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.packages.v1.PackageInfo.name")); + } else + goto handle_unusual; + continue; + // string version = 3 [json_name = "version"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_version(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.packages.v1.PackageInfo.version")); + } else + goto handle_unusual; + continue; + // .viam.app.packages.v1.PackageType type = 4 [json_name = "type"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_type(static_cast<::viam::app::packages::v1::PackageType>(val)); + } else + goto handle_unusual; + continue; + // repeated .viam.app.packages.v1.FileInfo files = 5 [json_name = "files"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_files(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr)); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct metadata = 6 [json_name = "metadata"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr = ctx->ParseMessage(_internal_mutable_metadata(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional string platform = 7 [json_name = "platform"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + auto str = _internal_mutable_platform(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.packages.v1.PackageInfo.platform")); + } 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; } - } - _impl_.type_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* PackageInfo::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 7, 2, 75, 2> PackageInfo::_table_ = { - { - PROTOBUF_FIELD_OFFSET(PackageInfo, _impl_._has_bits_), - 0, // no _extensions_ - 7, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967168, // skipmap - offsetof(decltype(_table_), field_entries), - 7, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_PackageInfo_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string organization_id = 1 [json_name = "organizationId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(PackageInfo, _impl_.organization_id_)}}, - // string name = 2 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(PackageInfo, _impl_.name_)}}, - // string version = 3 [json_name = "version"]; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(PackageInfo, _impl_.version_)}}, - // .viam.app.packages.v1.PackageType type = 4 [json_name = "type"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(PackageInfo, _impl_.type_), 63>(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(PackageInfo, _impl_.type_)}}, - // repeated .viam.app.packages.v1.FileInfo files = 5 [json_name = "files"]; - {::_pbi::TcParser::FastMtR1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(PackageInfo, _impl_.files_)}}, - // .google.protobuf.Struct metadata = 6 [json_name = "metadata"]; - {::_pbi::TcParser::FastMtS1, - {50, 1, 1, PROTOBUF_FIELD_OFFSET(PackageInfo, _impl_.metadata_)}}, - // optional string platform = 7 [json_name = "platform"]; - {::_pbi::TcParser::FastUS1, - {58, 0, 0, PROTOBUF_FIELD_OFFSET(PackageInfo, _impl_.platform_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string organization_id = 1 [json_name = "organizationId"]; - {PROTOBUF_FIELD_OFFSET(PackageInfo, _impl_.organization_id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string name = 2 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(PackageInfo, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string version = 3 [json_name = "version"]; - {PROTOBUF_FIELD_OFFSET(PackageInfo, _impl_.version_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .viam.app.packages.v1.PackageType type = 4 [json_name = "type"]; - {PROTOBUF_FIELD_OFFSET(PackageInfo, _impl_.type_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // repeated .viam.app.packages.v1.FileInfo files = 5 [json_name = "files"]; - {PROTOBUF_FIELD_OFFSET(PackageInfo, _impl_.files_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.protobuf.Struct metadata = 6 [json_name = "metadata"]; - {PROTOBUF_FIELD_OFFSET(PackageInfo, _impl_.metadata_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // optional string platform = 7 [json_name = "platform"]; - {PROTOBUF_FIELD_OFFSET(PackageInfo, _impl_.platform_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::packages::v1::FileInfo>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\40\17\4\7\0\0\0\10" - "viam.app.packages.v1.PackageInfo" - "organization_id" - "name" - "version" - "platform" - }}, -}; - -::uint8_t* PackageInfo::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* PackageInfo::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.packages.v1.PackageInfo) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string organization_id = 1 [json_name = "organizationId"]; if (!this->_internal_organization_id().empty()) { - const std::string& _s = this->_internal_organization_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.packages.v1.PackageInfo.organization_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_organization_id().data(), static_cast(this->_internal_organization_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.packages.v1.PackageInfo.organization_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_organization_id(), target); } // string name = 2 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.packages.v1.PackageInfo.name"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.packages.v1.PackageInfo.name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_name(), target); } // string version = 3 [json_name = "version"]; if (!this->_internal_version().empty()) { - const std::string& _s = this->_internal_version(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.packages.v1.PackageInfo.version"); - target = stream->WriteStringMaybeAliased(3, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_version().data(), static_cast(this->_internal_version().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.packages.v1.PackageInfo.version"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_version(), target); } // .viam.app.packages.v1.PackageType type = 4 [json_name = "type"]; if (this->_internal_type() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 4, this->_internal_type(), target); + 4, this->_internal_type(), target); } // repeated .viam.app.packages.v1.FileInfo files = 5 [json_name = "files"]; for (unsigned i = 0, n = static_cast(this->_internal_files_size()); i < n; i++) { - const auto& repfield = this->_internal_files().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_files(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(5, repfield, repfield.GetCachedSize(), target, stream); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct metadata = 6 [json_name = "metadata"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 6, _Internal::metadata(this), + if (this->_internal_has_metadata()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(6, _Internal::metadata(this), _Internal::metadata(this).GetCachedSize(), target, stream); } // optional string platform = 7 [json_name = "platform"]; - if (cached_has_bits & 0x00000001u) { - const std::string& _s = this->_internal_platform(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.packages.v1.PackageInfo.platform"); - target = stream->WriteStringMaybeAliased(7, _s, target); + if (_internal_has_platform()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_platform().data(), static_cast(this->_internal_platform().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.packages.v1.PackageInfo.platform"); + target = stream->WriteStringMaybeAliased( + 7, this->_internal_platform(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.packages.v1.PackageInfo) return target; } -::size_t PackageInfo::ByteSizeLong() const { +size_t PackageInfo::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.packages.v1.PackageInfo) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.app.packages.v1.FileInfo files = 5 [json_name = "files"]; total_size += 1UL * this->_internal_files_size(); - for (const auto& msg : this->_internal_files()) { + for (const auto& msg : this->files_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // string organization_id = 1 [json_name = "organizationId"]; if (!this->_internal_organization_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_organization_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_organization_id()); } // string name = 2 [json_name = "name"]; if (!this->_internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // string version = 3 [json_name = "version"]; if (!this->_internal_version().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_version()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_version()); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // optional string platform = 7 [json_name = "platform"]; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_platform()); - } - - // .google.protobuf.Struct metadata = 6 [json_name = "metadata"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.metadata_); - } + // optional string platform = 7 [json_name = "platform"]; + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_platform()); + } + // .google.protobuf.Struct metadata = 6 [json_name = "metadata"]; + if (this->_internal_has_metadata()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *metadata_); } + // .viam.app.packages.v1.PackageType type = 4 [json_name = "type"]; if (this->_internal_type() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_type()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_type()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData PackageInfo::_class_data_ = { - PackageInfo::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PackageInfo::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + PackageInfo::MergeImpl }; -const ::google::protobuf::Message::ClassData* PackageInfo::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PackageInfo::GetClassData() const { return &_class_data_; } + +void PackageInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void PackageInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.packages.v1.PackageInfo) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void PackageInfo::MergeFrom(const PackageInfo& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.packages.v1.PackageInfo) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_files()->MergeFrom( - from._internal_files()); + files_.MergeFrom(from.files_); if (!from._internal_organization_id().empty()) { - _this->_internal_set_organization_id(from._internal_organization_id()); + _internal_set_organization_id(from._internal_organization_id()); } if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (!from._internal_version().empty()) { - _this->_internal_set_version(from._internal_version()); + _internal_set_version(from._internal_version()); } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_set_platform(from._internal_platform()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_metadata()->::google::protobuf::Struct::MergeFrom( - from._internal_metadata()); - } + if (from._internal_has_platform()) { + _internal_set_platform(from._internal_platform()); + } + if (from._internal_has_metadata()) { + _internal_mutable_metadata()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_metadata()); } if (from._internal_type() != 0) { - _this->_internal_set_type(from._internal_type()); + _internal_set_type(from._internal_type()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void PackageInfo::CopyFrom(const PackageInfo& from) { @@ -1240,280 +1142,290 @@ void PackageInfo::CopyFrom(const PackageInfo& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool PackageInfo::IsInitialized() const { +bool PackageInfo::IsInitialized() const { return true; } -::_pbi::CachedSize* PackageInfo::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void PackageInfo::InternalSwap(PackageInfo* PROTOBUF_RESTRICT other) { +void PackageInfo::InternalSwap(PackageInfo* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.files_.InternalSwap(&other->_impl_.files_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.organization_id_, &other->_impl_.organization_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.version_, &other->_impl_.version_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.platform_, &other->_impl_.platform_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(PackageInfo, _impl_.type_) - + sizeof(PackageInfo::_impl_.type_) - - PROTOBUF_FIELD_OFFSET(PackageInfo, _impl_.metadata_)>( - reinterpret_cast(&_impl_.metadata_), - reinterpret_cast(&other->_impl_.metadata_)); -} - -::google::protobuf::Metadata PackageInfo::GetMetadata() const { + swap(_has_bits_[0], other->_has_bits_[0]); + files_.InternalSwap(&other->files_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &organization_id_, lhs_arena, + &other->organization_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &version_, lhs_arena, + &other->version_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &platform_, lhs_arena, + &other->platform_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(PackageInfo, type_) + + sizeof(PackageInfo::type_) + - PROTOBUF_FIELD_OFFSET(PackageInfo, metadata_)>( + reinterpret_cast(&metadata_), + reinterpret_cast(&other->metadata_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata PackageInfo::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fpackages_2fv1_2fpackages_2eproto_getter, &descriptor_table_app_2fpackages_2fv1_2fpackages_2eproto_once, file_level_metadata_app_2fpackages_2fv1_2fpackages_2eproto[1]); } + // =================================================================== class CreatePackageRequest::_Internal { public: - static constexpr ::int32_t kOneofCaseOffset = - PROTOBUF_FIELD_OFFSET(::viam::app::packages::v1::CreatePackageRequest, _impl_._oneof_case_); static const ::viam::app::packages::v1::PackageInfo& info(const CreatePackageRequest* msg); }; -const ::viam::app::packages::v1::PackageInfo& CreatePackageRequest::_Internal::info(const CreatePackageRequest* msg) { - return *msg->_impl_.package_.info_; +const ::viam::app::packages::v1::PackageInfo& +CreatePackageRequest::_Internal::info(const CreatePackageRequest* msg) { + return *msg->package_.info_; } void CreatePackageRequest::set_allocated_info(::viam::app::packages::v1::PackageInfo* info) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_package(); if (info) { - ::google::protobuf::Arena* submessage_arena = info->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(info); if (message_arena != submessage_arena) { - info = ::google::protobuf::internal::GetOwnedMessage(message_arena, info, submessage_arena); + info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, info, submessage_arena); } set_has_info(); - _impl_.package_.info_ = info; + package_.info_ = info; } // @@protoc_insertion_point(field_set_allocated:viam.app.packages.v1.CreatePackageRequest.info) } -CreatePackageRequest::CreatePackageRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +CreatePackageRequest::CreatePackageRequest(::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.packages.v1.CreatePackageRequest) } -inline PROTOBUF_NDEBUG_INLINE CreatePackageRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : package_{}, - _cached_size_{0}, - _oneof_case_{from._oneof_case_[0]} {} - -CreatePackageRequest::CreatePackageRequest( - ::google::protobuf::Arena* arena, - const CreatePackageRequest& from) - : ::google::protobuf::Message(arena) { - CreatePackageRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - switch (package_case()) { - case PACKAGE_NOT_SET: +CreatePackageRequest::CreatePackageRequest(const CreatePackageRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + clear_has_package(); + switch (from.package_case()) { + case kInfo: { + _internal_mutable_info()->::viam::app::packages::v1::PackageInfo::MergeFrom(from._internal_info()); + break; + } + case kContents: { + _internal_set_contents(from._internal_contents()); break; - case kInfo: - _impl_.package_.info_ = CreateMaybeMessage<::viam::app::packages::v1::PackageInfo>(arena, *from._impl_.package_.info_); - break; - case kContents: - new (&_impl_.package_.contents_) decltype(_impl_.package_.contents_){arena, from._impl_.package_.contents_}; - break; + } + case PACKAGE_NOT_SET: { + break; + } } - // @@protoc_insertion_point(copy_constructor:viam.app.packages.v1.CreatePackageRequest) } -inline PROTOBUF_NDEBUG_INLINE CreatePackageRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : package_{}, - _cached_size_{0}, - _oneof_case_{} {} -inline void CreatePackageRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void CreatePackageRequest::SharedCtor() { +clear_has_package(); } + CreatePackageRequest::~CreatePackageRequest() { // @@protoc_insertion_point(destructor:viam.app.packages.v1.CreatePackageRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void CreatePackageRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); if (has_package()) { clear_package(); } - _impl_.~Impl_(); +} + +void CreatePackageRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } void CreatePackageRequest::clear_package() { // @@protoc_insertion_point(one_of_clear_start:viam.app.packages.v1.CreatePackageRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); switch (package_case()) { case kInfo: { - if (GetArena() == nullptr) { - delete _impl_.package_.info_; + if (GetArenaForAllocation() == nullptr) { + delete package_.info_; } break; } case kContents: { - _impl_.package_.contents_.Destroy(); + package_.contents_.Destroy(); break; } case PACKAGE_NOT_SET: { break; } } - _impl_._oneof_case_[0] = PACKAGE_NOT_SET; + _oneof_case_[0] = PACKAGE_NOT_SET; } -PROTOBUF_NOINLINE void CreatePackageRequest::Clear() { +void CreatePackageRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.packages.v1.CreatePackageRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; clear_package(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* CreatePackageRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CreatePackageRequest::_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.app.packages.v1.PackageInfo info = 1 [json_name = "info"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_info(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bytes contents = 2 [json_name = "contents"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_contents(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 2, 1, 0, 2> CreatePackageRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_CreatePackageRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.app.packages.v1.PackageInfo info = 1 [json_name = "info"]; - {PROTOBUF_FIELD_OFFSET(CreatePackageRequest, _impl_.package_.info_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // bytes contents = 2 [json_name = "contents"]; - {PROTOBUF_FIELD_OFFSET(CreatePackageRequest, _impl_.package_.contents_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::packages::v1::PackageInfo>()}, - }}, {{ - }}, -}; - -::uint8_t* CreatePackageRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* CreatePackageRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.packages.v1.CreatePackageRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - switch (package_case()) { - case kInfo: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::info(this), - _Internal::info(this).GetCachedSize(), target, stream); - break; - } - case kContents: { - const std::string& _s = this->_internal_contents(); - target = stream->WriteBytesMaybeAliased(2, _s, target); - break; - } - default: - break; + // .viam.app.packages.v1.PackageInfo info = 1 [json_name = "info"]; + if (_internal_has_info()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::info(this), + _Internal::info(this).GetCachedSize(), target, stream); + } + + // bytes contents = 2 [json_name = "contents"]; + if (_internal_has_contents()) { + target = stream->WriteBytesMaybeAliased( + 2, this->_internal_contents(), target); } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.packages.v1.CreatePackageRequest) return target; } -::size_t CreatePackageRequest::ByteSizeLong() const { +size_t CreatePackageRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.packages.v1.CreatePackageRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; switch (package_case()) { // .viam.app.packages.v1.PackageInfo info = 1 [json_name = "info"]; case kInfo: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.package_.info_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *package_.info_); break; } // bytes contents = 2 [json_name = "contents"]; case kContents: { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_contents()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_contents()); break; } case PACKAGE_NOT_SET: { break; } } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData CreatePackageRequest::_class_data_ = { - CreatePackageRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CreatePackageRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CreatePackageRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* CreatePackageRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CreatePackageRequest::GetClassData() const { return &_class_data_; } + +void CreatePackageRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void CreatePackageRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.packages.v1.CreatePackageRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void CreatePackageRequest::MergeFrom(const CreatePackageRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.packages.v1.CreatePackageRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; switch (from.package_case()) { case kInfo: { - _this->_internal_mutable_info()->::viam::app::packages::v1::PackageInfo::MergeFrom( - from._internal_info()); + _internal_mutable_info()->::viam::app::packages::v1::PackageInfo::MergeFrom(from._internal_info()); break; } case kContents: { - _this->_internal_set_contents(from._internal_contents()); + _internal_set_contents(from._internal_contents()); break; } case PACKAGE_NOT_SET: { break; } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CreatePackageRequest::CopyFrom(const CreatePackageRequest& from) { @@ -1523,214 +1435,232 @@ void CreatePackageRequest::CopyFrom(const CreatePackageRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool CreatePackageRequest::IsInitialized() const { +bool CreatePackageRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* CreatePackageRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void CreatePackageRequest::InternalSwap(CreatePackageRequest* PROTOBUF_RESTRICT other) { +void CreatePackageRequest::InternalSwap(CreatePackageRequest* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.package_, other->_impl_.package_); - swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); + swap(package_, other->package_); + swap(_oneof_case_[0], other->_oneof_case_[0]); } -::google::protobuf::Metadata CreatePackageRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata CreatePackageRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fpackages_2fv1_2fpackages_2eproto_getter, &descriptor_table_app_2fpackages_2fv1_2fpackages_2eproto_once, file_level_metadata_app_2fpackages_2fv1_2fpackages_2eproto[2]); } + // =================================================================== class CreatePackageResponse::_Internal { public: }; -CreatePackageResponse::CreatePackageResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +CreatePackageResponse::CreatePackageResponse(::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.packages.v1.CreatePackageResponse) } -inline PROTOBUF_NDEBUG_INLINE CreatePackageResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : id_(arena, from.id_), - version_(arena, from.version_), - _cached_size_{0} {} - -CreatePackageResponse::CreatePackageResponse( - ::google::protobuf::Arena* arena, - const CreatePackageResponse& from) - : ::google::protobuf::Message(arena) { - CreatePackageResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +CreatePackageResponse::CreatePackageResponse(const CreatePackageResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } + version_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + version_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_version().empty()) { + version_.Set(from._internal_version(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.packages.v1.CreatePackageResponse) } -inline PROTOBUF_NDEBUG_INLINE CreatePackageResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : id_(arena), - version_(arena), - _cached_size_{0} {} -inline void CreatePackageResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void CreatePackageResponse::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +version_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + version_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + CreatePackageResponse::~CreatePackageResponse() { // @@protoc_insertion_point(destructor:viam.app.packages.v1.CreatePackageResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void CreatePackageResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.version_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); + version_.Destroy(); +} + +void CreatePackageResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void CreatePackageResponse::Clear() { +void CreatePackageResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.packages.v1.CreatePackageResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.id_.ClearToEmpty(); - _impl_.version_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* CreatePackageResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + id_.ClearToEmpty(); + version_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CreatePackageResponse::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.packages.v1.CreatePackageResponse.id")); + } else + goto handle_unusual; + continue; + // string version = 2 [json_name = "version"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_version(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.packages.v1.CreatePackageResponse.version")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 60, 2> CreatePackageResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_CreatePackageResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string version = 2 [json_name = "version"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(CreatePackageResponse, _impl_.version_)}}, - // string id = 1 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(CreatePackageResponse, _impl_.id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(CreatePackageResponse, _impl_.id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string version = 2 [json_name = "version"]; - {PROTOBUF_FIELD_OFFSET(CreatePackageResponse, _impl_.version_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\52\2\7\0\0\0\0\0" - "viam.app.packages.v1.CreatePackageResponse" - "id" - "version" - }}, -}; - -::uint8_t* CreatePackageResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* CreatePackageResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.packages.v1.CreatePackageResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.packages.v1.CreatePackageResponse.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.packages.v1.CreatePackageResponse.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); } // string version = 2 [json_name = "version"]; if (!this->_internal_version().empty()) { - const std::string& _s = this->_internal_version(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.packages.v1.CreatePackageResponse.version"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_version().data(), static_cast(this->_internal_version().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.packages.v1.CreatePackageResponse.version"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_version(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.packages.v1.CreatePackageResponse) return target; } -::size_t CreatePackageResponse::ByteSizeLong() const { +size_t CreatePackageResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.packages.v1.CreatePackageResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } // string version = 2 [json_name = "version"]; if (!this->_internal_version().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_version()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_version()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData CreatePackageResponse::_class_data_ = { - CreatePackageResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CreatePackageResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CreatePackageResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* CreatePackageResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CreatePackageResponse::GetClassData() const { return &_class_data_; } + +void CreatePackageResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void CreatePackageResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.packages.v1.CreatePackageResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void CreatePackageResponse::MergeFrom(const CreatePackageResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.packages.v1.CreatePackageResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } if (!from._internal_version().empty()) { - _this->_internal_set_version(from._internal_version()); + _internal_set_version(from._internal_version()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CreatePackageResponse::CopyFrom(const CreatePackageResponse& from) { @@ -1740,242 +1670,268 @@ void CreatePackageResponse::CopyFrom(const CreatePackageResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool CreatePackageResponse::IsInitialized() const { +bool CreatePackageResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* CreatePackageResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void CreatePackageResponse::InternalSwap(CreatePackageResponse* PROTOBUF_RESTRICT other) { +void CreatePackageResponse::InternalSwap(CreatePackageResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.version_, &other->_impl_.version_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &version_, lhs_arena, + &other->version_, rhs_arena + ); } -::google::protobuf::Metadata CreatePackageResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata CreatePackageResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fpackages_2fv1_2fpackages_2eproto_getter, &descriptor_table_app_2fpackages_2fv1_2fpackages_2eproto_once, file_level_metadata_app_2fpackages_2fv1_2fpackages_2eproto[3]); } + // =================================================================== class DeletePackageRequest::_Internal { public: }; -DeletePackageRequest::DeletePackageRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +DeletePackageRequest::DeletePackageRequest(::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.packages.v1.DeletePackageRequest) } -inline PROTOBUF_NDEBUG_INLINE DeletePackageRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : id_(arena, from.id_), - version_(arena, from.version_), - _cached_size_{0} {} - -DeletePackageRequest::DeletePackageRequest( - ::google::protobuf::Arena* arena, - const DeletePackageRequest& from) - : ::google::protobuf::Message(arena) { - DeletePackageRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.type_ = from._impl_.type_; - +DeletePackageRequest::DeletePackageRequest(const DeletePackageRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } + version_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + version_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_version().empty()) { + version_.Set(from._internal_version(), + GetArenaForAllocation()); + } + type_ = from.type_; // @@protoc_insertion_point(copy_constructor:viam.app.packages.v1.DeletePackageRequest) } -inline PROTOBUF_NDEBUG_INLINE DeletePackageRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : id_(arena), - version_(arena), - _cached_size_{0} {} -inline void DeletePackageRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.type_ = {}; +inline void DeletePackageRequest::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +version_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + version_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +type_ = 0; } + DeletePackageRequest::~DeletePackageRequest() { // @@protoc_insertion_point(destructor:viam.app.packages.v1.DeletePackageRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void DeletePackageRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.version_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); + version_.Destroy(); } -PROTOBUF_NOINLINE void DeletePackageRequest::Clear() { +void DeletePackageRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void DeletePackageRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.packages.v1.DeletePackageRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.id_.ClearToEmpty(); - _impl_.version_.ClearToEmpty(); - _impl_.type_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* DeletePackageRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + id_.ClearToEmpty(); + version_.ClearToEmpty(); + type_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DeletePackageRequest::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.packages.v1.DeletePackageRequest.id")); + } else + goto handle_unusual; + continue; + // string version = 2 [json_name = "version"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_version(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.packages.v1.DeletePackageRequest.version")); + } else + goto handle_unusual; + continue; + // .viam.app.packages.v1.PackageType type = 3 [json_name = "type"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_type(static_cast<::viam::app::packages::v1::PackageType>(val)); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 59, 2> DeletePackageRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_DeletePackageRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string id = 1 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(DeletePackageRequest, _impl_.id_)}}, - // string version = 2 [json_name = "version"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(DeletePackageRequest, _impl_.version_)}}, - // .viam.app.packages.v1.PackageType type = 3 [json_name = "type"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(DeletePackageRequest, _impl_.type_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(DeletePackageRequest, _impl_.type_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(DeletePackageRequest, _impl_.id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string version = 2 [json_name = "version"]; - {PROTOBUF_FIELD_OFFSET(DeletePackageRequest, _impl_.version_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .viam.app.packages.v1.PackageType type = 3 [json_name = "type"]; - {PROTOBUF_FIELD_OFFSET(DeletePackageRequest, _impl_.type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - }}, - // no aux_entries - {{ - "\51\2\7\0\0\0\0\0" - "viam.app.packages.v1.DeletePackageRequest" - "id" - "version" - }}, -}; - -::uint8_t* DeletePackageRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* DeletePackageRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.packages.v1.DeletePackageRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.packages.v1.DeletePackageRequest.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.packages.v1.DeletePackageRequest.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); } // string version = 2 [json_name = "version"]; if (!this->_internal_version().empty()) { - const std::string& _s = this->_internal_version(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.packages.v1.DeletePackageRequest.version"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_version().data(), static_cast(this->_internal_version().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.packages.v1.DeletePackageRequest.version"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_version(), target); } // .viam.app.packages.v1.PackageType type = 3 [json_name = "type"]; if (this->_internal_type() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 3, this->_internal_type(), target); + 3, this->_internal_type(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.packages.v1.DeletePackageRequest) return target; } -::size_t DeletePackageRequest::ByteSizeLong() const { +size_t DeletePackageRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.packages.v1.DeletePackageRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } // string version = 2 [json_name = "version"]; if (!this->_internal_version().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_version()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_version()); } // .viam.app.packages.v1.PackageType type = 3 [json_name = "type"]; if (this->_internal_type() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_type()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_type()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData DeletePackageRequest::_class_data_ = { - DeletePackageRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeletePackageRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + DeletePackageRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* DeletePackageRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeletePackageRequest::GetClassData() const { return &_class_data_; } + +void DeletePackageRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void DeletePackageRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.packages.v1.DeletePackageRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void DeletePackageRequest::MergeFrom(const DeletePackageRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.packages.v1.DeletePackageRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } if (!from._internal_version().empty()) { - _this->_internal_set_version(from._internal_version()); + _internal_set_version(from._internal_version()); } if (from._internal_type() != 0) { - _this->_internal_set_type(from._internal_type()); + _internal_set_type(from._internal_type()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void DeletePackageRequest::CopyFrom(const DeletePackageRequest& from) { @@ -1985,47 +1941,46 @@ void DeletePackageRequest::CopyFrom(const DeletePackageRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool DeletePackageRequest::IsInitialized() const { +bool DeletePackageRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* DeletePackageRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void DeletePackageRequest::InternalSwap(DeletePackageRequest* PROTOBUF_RESTRICT other) { +void DeletePackageRequest::InternalSwap(DeletePackageRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.version_, &other->_impl_.version_, arena); - swap(_impl_.type_, other->_impl_.type_); -} - -::google::protobuf::Metadata DeletePackageRequest::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &version_, lhs_arena, + &other->version_, rhs_arena + ); + swap(type_, other->type_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata DeletePackageRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fpackages_2fv1_2fpackages_2eproto_getter, &descriptor_table_app_2fpackages_2fv1_2fpackages_2eproto_once, file_level_metadata_app_2fpackages_2fv1_2fpackages_2eproto[4]); } + // =================================================================== class DeletePackageResponse::_Internal { public: }; -DeletePackageResponse::DeletePackageResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +DeletePackageResponse::DeletePackageResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.app.packages.v1.DeletePackageResponse) } -DeletePackageResponse::DeletePackageResponse( - ::google::protobuf::Arena* arena, - const DeletePackageResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - DeletePackageResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +DeletePackageResponse::DeletePackageResponse(const DeletePackageResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.app.packages.v1.DeletePackageResponse) } @@ -2033,339 +1988,367 @@ DeletePackageResponse::DeletePackageResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeletePackageResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeletePackageResponse::GetClassData() const { return &_class_data_; } + + + -::google::protobuf::Metadata DeletePackageResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata DeletePackageResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fpackages_2fv1_2fpackages_2eproto_getter, &descriptor_table_app_2fpackages_2fv1_2fpackages_2eproto_once, file_level_metadata_app_2fpackages_2fv1_2fpackages_2eproto[5]); } + // =================================================================== class Package::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Package, _impl_._has_bits_); static const ::viam::app::packages::v1::PackageInfo& info(const Package* msg); - static void set_has_info(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::google::protobuf::Timestamp& created_on(const Package* msg); - static void set_has_created_on(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& created_on(const Package* msg); }; -const ::viam::app::packages::v1::PackageInfo& Package::_Internal::info(const Package* msg) { - return *msg->_impl_.info_; +const ::viam::app::packages::v1::PackageInfo& +Package::_Internal::info(const Package* msg) { + return *msg->info_; } -const ::google::protobuf::Timestamp& Package::_Internal::created_on(const Package* msg) { - return *msg->_impl_.created_on_; +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +Package::_Internal::created_on(const Package* msg) { + return *msg->created_on_; } void Package::clear_created_on() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.created_on_ != nullptr) _impl_.created_on_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && created_on_ != nullptr) { + delete created_on_; + } + created_on_ = nullptr; } -Package::Package(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Package::Package(::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.packages.v1.Package) } -inline PROTOBUF_NDEBUG_INLINE Package::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - url_(arena, from.url_), - checksum_(arena, from.checksum_), - id_(arena, from.id_) {} - -Package::Package( - ::google::protobuf::Arena* arena, - const Package& from) - : ::google::protobuf::Message(arena) { - Package* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.info_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::app::packages::v1::PackageInfo>(arena, *from._impl_.info_) - : nullptr; - _impl_.created_on_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.created_on_) - : nullptr; - +Package::Package(const Package& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + url_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + url_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_url().empty()) { + url_.Set(from._internal_url(), + GetArenaForAllocation()); + } + checksum_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + checksum_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_checksum().empty()) { + checksum_.Set(from._internal_checksum(), + GetArenaForAllocation()); + } + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } + if (from._internal_has_info()) { + info_ = new ::viam::app::packages::v1::PackageInfo(*from.info_); + } else { + info_ = nullptr; + } + if (from._internal_has_created_on()) { + created_on_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from.created_on_); + } else { + created_on_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.app.packages.v1.Package) } -inline PROTOBUF_NDEBUG_INLINE Package::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - url_(arena), - checksum_(arena), - id_(arena) {} - -inline void Package::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, info_), - 0, - offsetof(Impl_, created_on_) - - offsetof(Impl_, info_) + - sizeof(Impl_::created_on_)); + +inline void Package::SharedCtor() { +url_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + url_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +checksum_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + checksum_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&info_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&created_on_) - + reinterpret_cast(&info_)) + sizeof(created_on_)); } + Package::~Package() { // @@protoc_insertion_point(destructor:viam.app.packages.v1.Package) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Package::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.url_.Destroy(); - _impl_.checksum_.Destroy(); - _impl_.id_.Destroy(); - delete _impl_.info_; - delete _impl_.created_on_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + url_.Destroy(); + checksum_.Destroy(); + id_.Destroy(); + if (this != internal_default_instance()) delete info_; + if (this != internal_default_instance()) delete created_on_; +} + +void Package::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void Package::Clear() { +void Package::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.packages.v1.Package) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.url_.ClearToEmpty(); - _impl_.checksum_.ClearToEmpty(); - _impl_.id_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.info_ != nullptr); - _impl_.info_->Clear(); + url_.ClearToEmpty(); + checksum_.ClearToEmpty(); + id_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && info_ != nullptr) { + delete info_; + } + info_ = nullptr; + if (GetArenaForAllocation() == nullptr && created_on_ != nullptr) { + delete created_on_; + } + created_on_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Package::_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.app.packages.v1.PackageInfo info = 1 [json_name = "info"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_info(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string url = 2 [json_name = "url"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_url(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.packages.v1.Package.url")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_created_on(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string checksum = 4 [json_name = "checksum"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_checksum(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.packages.v1.Package.checksum")); + } else + goto handle_unusual; + continue; + // string id = 5 [json_name = "id"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.packages.v1.Package.id")); + } 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; } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.created_on_ != nullptr); - _impl_.created_on_->Clear(); - } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Package::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 5, 2, 50, 2> Package::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Package, _impl_._has_bits_), - 0, // no _extensions_ - 5, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967264, // skipmap - offsetof(decltype(_table_), field_entries), - 5, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Package_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // .viam.app.packages.v1.PackageInfo info = 1 [json_name = "info"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(Package, _impl_.info_)}}, - // string url = 2 [json_name = "url"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(Package, _impl_.url_)}}, - // .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn"]; - {::_pbi::TcParser::FastMtS1, - {26, 1, 1, PROTOBUF_FIELD_OFFSET(Package, _impl_.created_on_)}}, - // string checksum = 4 [json_name = "checksum"]; - {::_pbi::TcParser::FastUS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(Package, _impl_.checksum_)}}, - // string id = 5 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(Package, _impl_.id_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.app.packages.v1.PackageInfo info = 1 [json_name = "info"]; - {PROTOBUF_FIELD_OFFSET(Package, _impl_.info_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // string url = 2 [json_name = "url"]; - {PROTOBUF_FIELD_OFFSET(Package, _impl_.url_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn"]; - {PROTOBUF_FIELD_OFFSET(Package, _impl_.created_on_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // string checksum = 4 [json_name = "checksum"]; - {PROTOBUF_FIELD_OFFSET(Package, _impl_.checksum_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string id = 5 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(Package, _impl_.id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::packages::v1::PackageInfo>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, - }}, {{ - "\34\0\3\0\10\2\0\0" - "viam.app.packages.v1.Package" - "url" - "checksum" - "id" - }}, -}; - -::uint8_t* Package::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Package::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.packages.v1.Package) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.app.packages.v1.PackageInfo info = 1 [json_name = "info"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::info(this), + if (this->_internal_has_info()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::info(this), _Internal::info(this).GetCachedSize(), target, stream); } // string url = 2 [json_name = "url"]; if (!this->_internal_url().empty()) { - const std::string& _s = this->_internal_url(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.packages.v1.Package.url"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_url().data(), static_cast(this->_internal_url().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.packages.v1.Package.url"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_url(), target); } // .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::created_on(this), + if (this->_internal_has_created_on()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::created_on(this), _Internal::created_on(this).GetCachedSize(), target, stream); } // string checksum = 4 [json_name = "checksum"]; if (!this->_internal_checksum().empty()) { - const std::string& _s = this->_internal_checksum(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.packages.v1.Package.checksum"); - target = stream->WriteStringMaybeAliased(4, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_checksum().data(), static_cast(this->_internal_checksum().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.packages.v1.Package.checksum"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_checksum(), target); } // string id = 5 [json_name = "id"]; if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.packages.v1.Package.id"); - target = stream->WriteStringMaybeAliased(5, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.packages.v1.Package.id"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.packages.v1.Package) return target; } -::size_t Package::ByteSizeLong() const { +size_t Package::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.packages.v1.Package) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string url = 2 [json_name = "url"]; if (!this->_internal_url().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_url()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_url()); } // string checksum = 4 [json_name = "checksum"]; if (!this->_internal_checksum().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_checksum()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_checksum()); } // string id = 5 [json_name = "id"]; if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // .viam.app.packages.v1.PackageInfo info = 1 [json_name = "info"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.info_); - } - - // .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.created_on_); - } + // .viam.app.packages.v1.PackageInfo info = 1 [json_name = "info"]; + if (this->_internal_has_info()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *info_); + } + // .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn"]; + if (this->_internal_has_created_on()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *created_on_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Package::_class_data_ = { - Package::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Package::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Package::MergeImpl }; -const ::google::protobuf::Message::ClassData* Package::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Package::GetClassData() const { return &_class_data_; } + +void Package::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Package::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.packages.v1.Package) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Package::MergeFrom(const Package& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.packages.v1.Package) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_url().empty()) { - _this->_internal_set_url(from._internal_url()); + _internal_set_url(from._internal_url()); } if (!from._internal_checksum().empty()) { - _this->_internal_set_checksum(from._internal_checksum()); + _internal_set_checksum(from._internal_checksum()); } if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_info()->::viam::app::packages::v1::PackageInfo::MergeFrom( - from._internal_info()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_created_on()->::google::protobuf::Timestamp::MergeFrom( - from._internal_created_on()); - } + if (from._internal_has_info()) { + _internal_mutable_info()->::viam::app::packages::v1::PackageInfo::MergeFrom(from._internal_info()); + } + if (from._internal_has_created_on()) { + _internal_mutable_created_on()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_created_on()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Package::CopyFrom(const Package& from) { @@ -2375,42 +2358,46 @@ void Package::CopyFrom(const Package& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Package::IsInitialized() const { +bool Package::IsInitialized() const { return true; } -::_pbi::CachedSize* Package::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Package::InternalSwap(Package* PROTOBUF_RESTRICT other) { +void Package::InternalSwap(Package* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.url_, &other->_impl_.url_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.checksum_, &other->_impl_.checksum_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(Package, _impl_.created_on_) - + sizeof(Package::_impl_.created_on_) - - PROTOBUF_FIELD_OFFSET(Package, _impl_.info_)>( - reinterpret_cast(&_impl_.info_), - reinterpret_cast(&other->_impl_.info_)); -} - -::google::protobuf::Metadata Package::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &url_, lhs_arena, + &other->url_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &checksum_, lhs_arena, + &other->checksum_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Package, created_on_) + + sizeof(Package::created_on_) + - PROTOBUF_FIELD_OFFSET(Package, info_)>( + reinterpret_cast(&info_), + reinterpret_cast(&other->info_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Package::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fpackages_2fv1_2fpackages_2eproto_getter, &descriptor_table_app_2fpackages_2fv1_2fpackages_2eproto_once, file_level_metadata_app_2fpackages_2fv1_2fpackages_2eproto[6]); } + // =================================================================== class GetPackageRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetPackageRequest, _impl_._has_bits_); + using HasBits = decltype(std::declval()._has_bits_); static void set_has_include_url(HasBits* has_bits) { (*has_bits)[0] |= 2u; } @@ -2422,294 +2409,327 @@ class GetPackageRequest::_Internal { } }; -GetPackageRequest::GetPackageRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetPackageRequest::GetPackageRequest(::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.packages.v1.GetPackageRequest) } -inline PROTOBUF_NDEBUG_INLINE GetPackageRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - id_(arena, from.id_), - version_(arena, from.version_), - platform_(arena, from.platform_) {} - -GetPackageRequest::GetPackageRequest( - ::google::protobuf::Arena* arena, - const GetPackageRequest& from) - : ::google::protobuf::Message(arena) { - GetPackageRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, include_url_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, include_url_), - offsetof(Impl_, type_) - - offsetof(Impl_, include_url_) + - sizeof(Impl_::type_)); - +GetPackageRequest::GetPackageRequest(const GetPackageRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } + version_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + version_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_version().empty()) { + version_.Set(from._internal_version(), + GetArenaForAllocation()); + } + platform_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + platform_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (from._internal_has_platform()) { + platform_.Set(from._internal_platform(), + GetArenaForAllocation()); + } + ::memcpy(&include_url_, &from.include_url_, + static_cast(reinterpret_cast(&type_) - + reinterpret_cast(&include_url_)) + sizeof(type_)); // @@protoc_insertion_point(copy_constructor:viam.app.packages.v1.GetPackageRequest) } -inline PROTOBUF_NDEBUG_INLINE GetPackageRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - id_(arena), - version_(arena), - platform_(arena) {} - -inline void GetPackageRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, include_url_), - 0, - offsetof(Impl_, type_) - - offsetof(Impl_, include_url_) + - sizeof(Impl_::type_)); + +inline void GetPackageRequest::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +version_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + version_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +platform_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + platform_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&include_url_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&type_) - + reinterpret_cast(&include_url_)) + sizeof(type_)); } + GetPackageRequest::~GetPackageRequest() { // @@protoc_insertion_point(destructor:viam.app.packages.v1.GetPackageRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetPackageRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.version_.Destroy(); - _impl_.platform_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); + version_.Destroy(); + platform_.Destroy(); } -PROTOBUF_NOINLINE void GetPackageRequest::Clear() { +void GetPackageRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetPackageRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.packages.v1.GetPackageRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.id_.ClearToEmpty(); - _impl_.version_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; + id_.ClearToEmpty(); + version_.ClearToEmpty(); + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { - _impl_.platform_.ClearNonDefaultToEmpty(); + platform_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000006u) { - ::memset(&_impl_.include_url_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.type_) - - reinterpret_cast(&_impl_.include_url_)) + sizeof(_impl_.type_)); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetPackageRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + ::memset(&include_url_, 0, static_cast( + reinterpret_cast(&type_) - + reinterpret_cast(&include_url_)) + sizeof(type_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPackageRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.packages.v1.GetPackageRequest.id")); + } else + goto handle_unusual; + continue; + // string version = 2 [json_name = "version"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_version(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.packages.v1.GetPackageRequest.version")); + } else + goto handle_unusual; + continue; + // optional bool include_url = 3 [json_name = "includeUrl"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + _Internal::set_has_include_url(&has_bits); + include_url_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional .viam.app.packages.v1.PackageType type = 4 [json_name = "type"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_type(static_cast<::viam::app::packages::v1::PackageType>(val)); + } else + goto handle_unusual; + continue; + // optional string platform = 5 [json_name = "platform"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + auto str = _internal_mutable_platform(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.packages.v1.GetPackageRequest.platform")); + } 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: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 5, 0, 64, 2> GetPackageRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetPackageRequest, _impl_._has_bits_), - 0, // no _extensions_ - 5, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967264, // skipmap - offsetof(decltype(_table_), field_entries), - 5, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetPackageRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string id = 1 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetPackageRequest, _impl_.id_)}}, - // string version = 2 [json_name = "version"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(GetPackageRequest, _impl_.version_)}}, - // optional bool include_url = 3 [json_name = "includeUrl"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {24, 1, 0, PROTOBUF_FIELD_OFFSET(GetPackageRequest, _impl_.include_url_)}}, - // optional .viam.app.packages.v1.PackageType type = 4 [json_name = "type"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(GetPackageRequest, _impl_.type_), 2>(), - {32, 2, 0, PROTOBUF_FIELD_OFFSET(GetPackageRequest, _impl_.type_)}}, - // optional string platform = 5 [json_name = "platform"]; - {::_pbi::TcParser::FastUS1, - {42, 0, 0, PROTOBUF_FIELD_OFFSET(GetPackageRequest, _impl_.platform_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(GetPackageRequest, _impl_.id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string version = 2 [json_name = "version"]; - {PROTOBUF_FIELD_OFFSET(GetPackageRequest, _impl_.version_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // optional bool include_url = 3 [json_name = "includeUrl"]; - {PROTOBUF_FIELD_OFFSET(GetPackageRequest, _impl_.include_url_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // optional .viam.app.packages.v1.PackageType type = 4 [json_name = "type"]; - {PROTOBUF_FIELD_OFFSET(GetPackageRequest, _impl_.type_), _Internal::kHasBitsOffset + 2, 0, - (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, - // optional string platform = 5 [json_name = "platform"]; - {PROTOBUF_FIELD_OFFSET(GetPackageRequest, _impl_.platform_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\46\2\7\0\0\10\0\0" - "viam.app.packages.v1.GetPackageRequest" - "id" - "version" - "platform" - }}, -}; - -::uint8_t* GetPackageRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetPackageRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.packages.v1.GetPackageRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.packages.v1.GetPackageRequest.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.packages.v1.GetPackageRequest.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); } // string version = 2 [json_name = "version"]; if (!this->_internal_version().empty()) { - const std::string& _s = this->_internal_version(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.packages.v1.GetPackageRequest.version"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_version().data(), static_cast(this->_internal_version().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.packages.v1.GetPackageRequest.version"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_version(), target); } - cached_has_bits = _impl_._has_bits_[0]; // optional bool include_url = 3 [json_name = "includeUrl"]; - if (cached_has_bits & 0x00000002u) { + if (_internal_has_include_url()) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 3, this->_internal_include_url(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_include_url(), target); } // optional .viam.app.packages.v1.PackageType type = 4 [json_name = "type"]; - if (cached_has_bits & 0x00000004u) { + if (_internal_has_type()) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 4, this->_internal_type(), target); + 4, this->_internal_type(), target); } // optional string platform = 5 [json_name = "platform"]; - if (cached_has_bits & 0x00000001u) { - const std::string& _s = this->_internal_platform(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.packages.v1.GetPackageRequest.platform"); - target = stream->WriteStringMaybeAliased(5, _s, target); + if (_internal_has_platform()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_platform().data(), static_cast(this->_internal_platform().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.packages.v1.GetPackageRequest.platform"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_platform(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.packages.v1.GetPackageRequest) return target; } -::size_t GetPackageRequest::ByteSizeLong() const { +size_t GetPackageRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.packages.v1.GetPackageRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } // string version = 2 [json_name = "version"]; if (!this->_internal_version().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_version()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_version()); } - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000007u) { // optional string platform = 5 [json_name = "platform"]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_platform()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_platform()); } // optional bool include_url = 3 [json_name = "includeUrl"]; if (cached_has_bits & 0x00000002u) { - total_size += 2; + total_size += 1 + 1; } // optional .viam.app.packages.v1.PackageType type = 4 [json_name = "type"]; if (cached_has_bits & 0x00000004u) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_type()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_type()); } } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetPackageRequest::_class_data_ = { - GetPackageRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPackageRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetPackageRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetPackageRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPackageRequest::GetClassData() const { return &_class_data_; } + +void GetPackageRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetPackageRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.packages.v1.GetPackageRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetPackageRequest::MergeFrom(const GetPackageRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.packages.v1.GetPackageRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } if (!from._internal_version().empty()) { - _this->_internal_set_version(from._internal_version()); + _internal_set_version(from._internal_version()); } - cached_has_bits = from._impl_._has_bits_[0]; + cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { - _this->_internal_set_platform(from._internal_platform()); + _internal_set_platform(from._internal_platform()); } if (cached_has_bits & 0x00000002u) { - _this->_impl_.include_url_ = from._impl_.include_url_; + include_url_ = from.include_url_; } if (cached_has_bits & 0x00000004u) { - _this->_impl_.type_ = from._impl_.type_; + type_ = from.type_; } - _this->_impl_._has_bits_[0] |= cached_has_bits; + _has_bits_[0] |= cached_has_bits; } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetPackageRequest::CopyFrom(const GetPackageRequest& from) { @@ -2719,214 +2739,204 @@ void GetPackageRequest::CopyFrom(const GetPackageRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetPackageRequest::IsInitialized() const { +bool GetPackageRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetPackageRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetPackageRequest::InternalSwap(GetPackageRequest* PROTOBUF_RESTRICT other) { +void GetPackageRequest::InternalSwap(GetPackageRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.version_, &other->_impl_.version_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.platform_, &other->_impl_.platform_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(GetPackageRequest, _impl_.type_) - + sizeof(GetPackageRequest::_impl_.type_) - - PROTOBUF_FIELD_OFFSET(GetPackageRequest, _impl_.include_url_)>( - reinterpret_cast(&_impl_.include_url_), - reinterpret_cast(&other->_impl_.include_url_)); -} - -::google::protobuf::Metadata GetPackageRequest::GetMetadata() const { + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &version_, lhs_arena, + &other->version_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &platform_, lhs_arena, + &other->platform_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GetPackageRequest, type_) + + sizeof(GetPackageRequest::type_) + - PROTOBUF_FIELD_OFFSET(GetPackageRequest, include_url_)>( + reinterpret_cast(&include_url_), + reinterpret_cast(&other->include_url_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetPackageRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fpackages_2fv1_2fpackages_2eproto_getter, &descriptor_table_app_2fpackages_2fv1_2fpackages_2eproto_once, file_level_metadata_app_2fpackages_2fv1_2fpackages_2eproto[7]); } + // =================================================================== class GetPackageResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetPackageResponse, _impl_._has_bits_); static const ::viam::app::packages::v1::Package& package(const GetPackageResponse* msg); - static void set_has_package(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::app::packages::v1::Package& GetPackageResponse::_Internal::package(const GetPackageResponse* msg) { - return *msg->_impl_.package_; +const ::viam::app::packages::v1::Package& +GetPackageResponse::_Internal::package(const GetPackageResponse* msg) { + return *msg->package_; } -GetPackageResponse::GetPackageResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetPackageResponse::GetPackageResponse(::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.packages.v1.GetPackageResponse) } -inline PROTOBUF_NDEBUG_INLINE GetPackageResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -GetPackageResponse::GetPackageResponse( - ::google::protobuf::Arena* arena, - const GetPackageResponse& from) - : ::google::protobuf::Message(arena) { - GetPackageResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.package_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::app::packages::v1::Package>(arena, *from._impl_.package_) - : nullptr; - +GetPackageResponse::GetPackageResponse(const GetPackageResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_package()) { + package_ = new ::viam::app::packages::v1::Package(*from.package_); + } else { + package_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.app.packages.v1.GetPackageResponse) } -inline PROTOBUF_NDEBUG_INLINE GetPackageResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void GetPackageResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.package_ = {}; +inline void GetPackageResponse::SharedCtor() { +package_ = nullptr; } + GetPackageResponse::~GetPackageResponse() { // @@protoc_insertion_point(destructor:viam.app.packages.v1.GetPackageResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetPackageResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.package_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete package_; } -PROTOBUF_NOINLINE void GetPackageResponse::Clear() { +void GetPackageResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetPackageResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.packages.v1.GetPackageResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.package_ != nullptr); - _impl_.package_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetPackageResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + if (GetArenaForAllocation() == nullptr && package_ != nullptr) { + delete package_; + } + package_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPackageResponse::_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.app.packages.v1.Package package = 1 [json_name = "package"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_package(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetPackageResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetPackageResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetPackageResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.app.packages.v1.Package package = 1 [json_name = "package"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetPackageResponse, _impl_.package_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.app.packages.v1.Package package = 1 [json_name = "package"]; - {PROTOBUF_FIELD_OFFSET(GetPackageResponse, _impl_.package_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::packages::v1::Package>()}, - }}, {{ - }}, -}; - -::uint8_t* GetPackageResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetPackageResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.packages.v1.GetPackageResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.app.packages.v1.Package package = 1 [json_name = "package"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::package(this), + if (this->_internal_has_package()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::package(this), _Internal::package(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.packages.v1.GetPackageResponse) return target; } -::size_t GetPackageResponse::ByteSizeLong() const { +size_t GetPackageResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.packages.v1.GetPackageResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .viam.app.packages.v1.Package package = 1 [json_name = "package"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.package_); + if (this->_internal_has_package()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *package_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetPackageResponse::_class_data_ = { - GetPackageResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPackageResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetPackageResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetPackageResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPackageResponse::GetClassData() const { return &_class_data_; } + +void GetPackageResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetPackageResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.packages.v1.GetPackageResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetPackageResponse::MergeFrom(const GetPackageResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.packages.v1.GetPackageResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_package()->::viam::app::packages::v1::Package::MergeFrom( - from._internal_package()); + if (from._internal_has_package()) { + _internal_mutable_package()->::viam::app::packages::v1::Package::MergeFrom(from._internal_package()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetPackageResponse::CopyFrom(const GetPackageResponse& from) { @@ -2936,32 +2946,27 @@ void GetPackageResponse::CopyFrom(const GetPackageResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetPackageResponse::IsInitialized() const { +bool GetPackageResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetPackageResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetPackageResponse::InternalSwap(GetPackageResponse* PROTOBUF_RESTRICT other) { +void GetPackageResponse::InternalSwap(GetPackageResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.package_, other->_impl_.package_); + swap(package_, other->package_); } -::google::protobuf::Metadata GetPackageResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetPackageResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fpackages_2fv1_2fpackages_2eproto_getter, &descriptor_table_app_2fpackages_2fv1_2fpackages_2eproto_once, file_level_metadata_app_2fpackages_2fv1_2fpackages_2eproto[8]); } + // =================================================================== class ListPackagesRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ListPackagesRequest, _impl_._has_bits_); + using HasBits = decltype(std::declval()._has_bits_); static void set_has_name(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -2976,298 +2981,331 @@ class ListPackagesRequest::_Internal { } }; -ListPackagesRequest::ListPackagesRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ListPackagesRequest::ListPackagesRequest(::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.packages.v1.ListPackagesRequest) } -inline PROTOBUF_NDEBUG_INLINE ListPackagesRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - organization_id_(arena, from.organization_id_), - name_(arena, from.name_), - version_(arena, from.version_) {} - -ListPackagesRequest::ListPackagesRequest( - ::google::protobuf::Arena* arena, - const ListPackagesRequest& from) - : ::google::protobuf::Message(arena) { - ListPackagesRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, type_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, type_), - offsetof(Impl_, include_url_) - - offsetof(Impl_, type_) + - sizeof(Impl_::include_url_)); - +ListPackagesRequest::ListPackagesRequest(const ListPackagesRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + organization_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_organization_id().empty()) { + organization_id_.Set(from._internal_organization_id(), + GetArenaForAllocation()); + } + name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (from._internal_has_name()) { + name_.Set(from._internal_name(), + GetArenaForAllocation()); + } + version_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + version_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (from._internal_has_version()) { + version_.Set(from._internal_version(), + GetArenaForAllocation()); + } + ::memcpy(&type_, &from.type_, + static_cast(reinterpret_cast(&include_url_) - + reinterpret_cast(&type_)) + sizeof(include_url_)); // @@protoc_insertion_point(copy_constructor:viam.app.packages.v1.ListPackagesRequest) } -inline PROTOBUF_NDEBUG_INLINE ListPackagesRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - organization_id_(arena), - name_(arena), - version_(arena) {} - -inline void ListPackagesRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, type_), - 0, - offsetof(Impl_, include_url_) - - offsetof(Impl_, type_) + - sizeof(Impl_::include_url_)); + +inline void ListPackagesRequest::SharedCtor() { +organization_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +version_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + version_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&type_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&include_url_) - + reinterpret_cast(&type_)) + sizeof(include_url_)); } + ListPackagesRequest::~ListPackagesRequest() { // @@protoc_insertion_point(destructor:viam.app.packages.v1.ListPackagesRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ListPackagesRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.organization_id_.Destroy(); - _impl_.name_.Destroy(); - _impl_.version_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + organization_id_.Destroy(); + name_.Destroy(); + version_.Destroy(); } -PROTOBUF_NOINLINE void ListPackagesRequest::Clear() { +void ListPackagesRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ListPackagesRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.packages.v1.ListPackagesRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.organization_id_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; + organization_id_.ClearToEmpty(); + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - _impl_.name_.ClearNonDefaultToEmpty(); + name_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { - _impl_.version_.ClearNonDefaultToEmpty(); + version_.ClearNonDefaultToEmpty(); } } if (cached_has_bits & 0x0000000cu) { - ::memset(&_impl_.type_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.include_url_) - - reinterpret_cast(&_impl_.type_)) + sizeof(_impl_.include_url_)); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ListPackagesRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + ::memset(&type_, 0, static_cast( + reinterpret_cast(&include_url_) - + reinterpret_cast(&type_)) + sizeof(include_url_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListPackagesRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string organization_id = 1 [json_name = "organizationId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_organization_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.packages.v1.ListPackagesRequest.organization_id")); + } else + goto handle_unusual; + continue; + // optional string name = 2 [json_name = "name"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.packages.v1.ListPackagesRequest.name")); + } else + goto handle_unusual; + continue; + // optional string version = 3 [json_name = "version"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_version(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.packages.v1.ListPackagesRequest.version")); + } else + goto handle_unusual; + continue; + // optional .viam.app.packages.v1.PackageType type = 4 [json_name = "type"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_type(static_cast<::viam::app::packages::v1::PackageType>(val)); + } else + goto handle_unusual; + continue; + // optional bool include_url = 5 [json_name = "includeUrl"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { + _Internal::set_has_include_url(&has_bits); + include_url_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 5, 0, 75, 2> ListPackagesRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ListPackagesRequest, _impl_._has_bits_), - 0, // no _extensions_ - 5, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967264, // skipmap - offsetof(decltype(_table_), field_entries), - 5, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_ListPackagesRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string organization_id = 1 [json_name = "organizationId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ListPackagesRequest, _impl_.organization_id_)}}, - // optional string name = 2 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(ListPackagesRequest, _impl_.name_)}}, - // optional string version = 3 [json_name = "version"]; - {::_pbi::TcParser::FastUS1, - {26, 1, 0, PROTOBUF_FIELD_OFFSET(ListPackagesRequest, _impl_.version_)}}, - // optional .viam.app.packages.v1.PackageType type = 4 [json_name = "type"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ListPackagesRequest, _impl_.type_), 2>(), - {32, 2, 0, PROTOBUF_FIELD_OFFSET(ListPackagesRequest, _impl_.type_)}}, - // optional bool include_url = 5 [json_name = "includeUrl"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {40, 3, 0, PROTOBUF_FIELD_OFFSET(ListPackagesRequest, _impl_.include_url_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string organization_id = 1 [json_name = "organizationId"]; - {PROTOBUF_FIELD_OFFSET(ListPackagesRequest, _impl_.organization_id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // optional string name = 2 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(ListPackagesRequest, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // optional string version = 3 [json_name = "version"]; - {PROTOBUF_FIELD_OFFSET(ListPackagesRequest, _impl_.version_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // optional .viam.app.packages.v1.PackageType type = 4 [json_name = "type"]; - {PROTOBUF_FIELD_OFFSET(ListPackagesRequest, _impl_.type_), _Internal::kHasBitsOffset + 2, 0, - (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, - // optional bool include_url = 5 [json_name = "includeUrl"]; - {PROTOBUF_FIELD_OFFSET(ListPackagesRequest, _impl_.include_url_), _Internal::kHasBitsOffset + 3, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - }}, - // no aux_entries - {{ - "\50\17\4\7\0\0\0\0" - "viam.app.packages.v1.ListPackagesRequest" - "organization_id" - "name" - "version" - }}, -}; - -::uint8_t* ListPackagesRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ListPackagesRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.packages.v1.ListPackagesRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string organization_id = 1 [json_name = "organizationId"]; if (!this->_internal_organization_id().empty()) { - const std::string& _s = this->_internal_organization_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.packages.v1.ListPackagesRequest.organization_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_organization_id().data(), static_cast(this->_internal_organization_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.packages.v1.ListPackagesRequest.organization_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_organization_id(), target); } - cached_has_bits = _impl_._has_bits_[0]; // optional string name = 2 [json_name = "name"]; - if (cached_has_bits & 0x00000001u) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.packages.v1.ListPackagesRequest.name"); - target = stream->WriteStringMaybeAliased(2, _s, target); + if (_internal_has_name()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.packages.v1.ListPackagesRequest.name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_name(), target); } // optional string version = 3 [json_name = "version"]; - if (cached_has_bits & 0x00000002u) { - const std::string& _s = this->_internal_version(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.packages.v1.ListPackagesRequest.version"); - target = stream->WriteStringMaybeAliased(3, _s, target); + if (_internal_has_version()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_version().data(), static_cast(this->_internal_version().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.packages.v1.ListPackagesRequest.version"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_version(), target); } // optional .viam.app.packages.v1.PackageType type = 4 [json_name = "type"]; - if (cached_has_bits & 0x00000004u) { + if (_internal_has_type()) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 4, this->_internal_type(), target); + 4, this->_internal_type(), target); } // optional bool include_url = 5 [json_name = "includeUrl"]; - if (cached_has_bits & 0x00000008u) { + if (_internal_has_include_url()) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 5, this->_internal_include_url(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(5, this->_internal_include_url(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.packages.v1.ListPackagesRequest) return target; } -::size_t ListPackagesRequest::ByteSizeLong() const { +size_t ListPackagesRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.packages.v1.ListPackagesRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string organization_id = 1 [json_name = "organizationId"]; if (!this->_internal_organization_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_organization_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_organization_id()); } - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x0000000fu) { // optional string name = 2 [json_name = "name"]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // optional string version = 3 [json_name = "version"]; if (cached_has_bits & 0x00000002u) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_version()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_version()); } // optional .viam.app.packages.v1.PackageType type = 4 [json_name = "type"]; if (cached_has_bits & 0x00000004u) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_type()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_type()); } // optional bool include_url = 5 [json_name = "includeUrl"]; if (cached_has_bits & 0x00000008u) { - total_size += 2; + total_size += 1 + 1; } } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ListPackagesRequest::_class_data_ = { - ListPackagesRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListPackagesRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ListPackagesRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* ListPackagesRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListPackagesRequest::GetClassData() const { return &_class_data_; } + +void ListPackagesRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ListPackagesRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.packages.v1.ListPackagesRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ListPackagesRequest::MergeFrom(const ListPackagesRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.packages.v1.ListPackagesRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_organization_id().empty()) { - _this->_internal_set_organization_id(from._internal_organization_id()); + _internal_set_organization_id(from._internal_organization_id()); } - cached_has_bits = from._impl_._has_bits_[0]; + cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x0000000fu) { if (cached_has_bits & 0x00000001u) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (cached_has_bits & 0x00000002u) { - _this->_internal_set_version(from._internal_version()); + _internal_set_version(from._internal_version()); } if (cached_has_bits & 0x00000004u) { - _this->_impl_.type_ = from._impl_.type_; + type_ = from.type_; } if (cached_has_bits & 0x00000008u) { - _this->_impl_.include_url_ = from._impl_.include_url_; + include_url_ = from.include_url_; } - _this->_impl_._has_bits_[0] |= cached_has_bits; + _has_bits_[0] |= cached_has_bits; } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ListPackagesRequest::CopyFrom(const ListPackagesRequest& from) { @@ -3277,191 +3315,195 @@ void ListPackagesRequest::CopyFrom(const ListPackagesRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ListPackagesRequest::IsInitialized() const { +bool ListPackagesRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* ListPackagesRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ListPackagesRequest::InternalSwap(ListPackagesRequest* PROTOBUF_RESTRICT other) { +void ListPackagesRequest::InternalSwap(ListPackagesRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.organization_id_, &other->_impl_.organization_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.version_, &other->_impl_.version_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(ListPackagesRequest, _impl_.include_url_) - + sizeof(ListPackagesRequest::_impl_.include_url_) - - PROTOBUF_FIELD_OFFSET(ListPackagesRequest, _impl_.type_)>( - reinterpret_cast(&_impl_.type_), - reinterpret_cast(&other->_impl_.type_)); -} - -::google::protobuf::Metadata ListPackagesRequest::GetMetadata() const { + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &organization_id_, lhs_arena, + &other->organization_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &version_, lhs_arena, + &other->version_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(ListPackagesRequest, include_url_) + + sizeof(ListPackagesRequest::include_url_) + - PROTOBUF_FIELD_OFFSET(ListPackagesRequest, type_)>( + reinterpret_cast(&type_), + reinterpret_cast(&other->type_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ListPackagesRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fpackages_2fv1_2fpackages_2eproto_getter, &descriptor_table_app_2fpackages_2fv1_2fpackages_2eproto_once, file_level_metadata_app_2fpackages_2fv1_2fpackages_2eproto[9]); } + // =================================================================== class ListPackagesResponse::_Internal { public: }; -ListPackagesResponse::ListPackagesResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ListPackagesResponse::ListPackagesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + packages_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.packages.v1.ListPackagesResponse) } -inline PROTOBUF_NDEBUG_INLINE ListPackagesResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : packages_{visibility, arena, from.packages_}, - _cached_size_{0} {} - -ListPackagesResponse::ListPackagesResponse( - ::google::protobuf::Arena* arena, - const ListPackagesResponse& from) - : ::google::protobuf::Message(arena) { - ListPackagesResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +ListPackagesResponse::ListPackagesResponse(const ListPackagesResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + packages_(from.packages_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.app.packages.v1.ListPackagesResponse) } -inline PROTOBUF_NDEBUG_INLINE ListPackagesResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : packages_{visibility, arena}, - _cached_size_{0} {} -inline void ListPackagesResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void ListPackagesResponse::SharedCtor() { } + ListPackagesResponse::~ListPackagesResponse() { // @@protoc_insertion_point(destructor:viam.app.packages.v1.ListPackagesResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ListPackagesResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void ListPackagesResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void ListPackagesResponse::Clear() { +void ListPackagesResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.packages.v1.ListPackagesResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.packages_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ListPackagesResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + packages_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListPackagesResponse::_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) { + // repeated .viam.app.packages.v1.Package packages = 1 [json_name = "packages"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_packages(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ListPackagesResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ListPackagesResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.app.packages.v1.Package packages = 1 [json_name = "packages"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ListPackagesResponse, _impl_.packages_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.app.packages.v1.Package packages = 1 [json_name = "packages"]; - {PROTOBUF_FIELD_OFFSET(ListPackagesResponse, _impl_.packages_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::packages::v1::Package>()}, - }}, {{ - }}, -}; - -::uint8_t* ListPackagesResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ListPackagesResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.packages.v1.ListPackagesResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .viam.app.packages.v1.Package packages = 1 [json_name = "packages"]; for (unsigned i = 0, n = static_cast(this->_internal_packages_size()); i < n; i++) { - const auto& repfield = this->_internal_packages().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_packages(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.packages.v1.ListPackagesResponse) return target; } -::size_t ListPackagesResponse::ByteSizeLong() const { +size_t ListPackagesResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.packages.v1.ListPackagesResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.app.packages.v1.Package packages = 1 [json_name = "packages"]; total_size += 1UL * this->_internal_packages_size(); - for (const auto& msg : this->_internal_packages()) { + for (const auto& msg : this->packages_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ListPackagesResponse::_class_data_ = { - ListPackagesResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListPackagesResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ListPackagesResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* ListPackagesResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListPackagesResponse::GetClassData() const { return &_class_data_; } + +void ListPackagesResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ListPackagesResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.packages.v1.ListPackagesResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ListPackagesResponse::MergeFrom(const ListPackagesResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.packages.v1.ListPackagesResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_packages()->MergeFrom( - from._internal_packages()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + packages_.MergeFrom(from.packages_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ListPackagesResponse::CopyFrom(const ListPackagesResponse& from) { @@ -3471,32 +3513,73 @@ void ListPackagesResponse::CopyFrom(const ListPackagesResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ListPackagesResponse::IsInitialized() const { +bool ListPackagesResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* ListPackagesResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ListPackagesResponse::InternalSwap(ListPackagesResponse* PROTOBUF_RESTRICT other) { +void ListPackagesResponse::InternalSwap(ListPackagesResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.packages_.InternalSwap(&other->_impl_.packages_); + packages_.InternalSwap(&other->packages_); } -::google::protobuf::Metadata ListPackagesResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ListPackagesResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fpackages_2fv1_2fpackages_2eproto_getter, &descriptor_table_app_2fpackages_2fv1_2fpackages_2eproto_once, file_level_metadata_app_2fpackages_2fv1_2fpackages_2eproto[10]); } + // @@protoc_insertion_point(namespace_scope) } // namespace v1 } // namespace packages } // namespace app } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::app::packages::v1::FileInfo* +Arena::CreateMaybeMessage< ::viam::app::packages::v1::FileInfo >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::packages::v1::FileInfo >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::packages::v1::PackageInfo* +Arena::CreateMaybeMessage< ::viam::app::packages::v1::PackageInfo >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::packages::v1::PackageInfo >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::packages::v1::CreatePackageRequest* +Arena::CreateMaybeMessage< ::viam::app::packages::v1::CreatePackageRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::packages::v1::CreatePackageRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::packages::v1::CreatePackageResponse* +Arena::CreateMaybeMessage< ::viam::app::packages::v1::CreatePackageResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::packages::v1::CreatePackageResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::packages::v1::DeletePackageRequest* +Arena::CreateMaybeMessage< ::viam::app::packages::v1::DeletePackageRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::packages::v1::DeletePackageRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::packages::v1::DeletePackageResponse* +Arena::CreateMaybeMessage< ::viam::app::packages::v1::DeletePackageResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::packages::v1::DeletePackageResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::packages::v1::Package* +Arena::CreateMaybeMessage< ::viam::app::packages::v1::Package >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::packages::v1::Package >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::packages::v1::GetPackageRequest* +Arena::CreateMaybeMessage< ::viam::app::packages::v1::GetPackageRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::packages::v1::GetPackageRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::packages::v1::GetPackageResponse* +Arena::CreateMaybeMessage< ::viam::app::packages::v1::GetPackageResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::packages::v1::GetPackageResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::packages::v1::ListPackagesRequest* +Arena::CreateMaybeMessage< ::viam::app::packages::v1::ListPackagesRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::packages::v1::ListPackagesRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::packages::v1::ListPackagesResponse* +Arena::CreateMaybeMessage< ::viam::app::packages::v1::ListPackagesResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::packages::v1::ListPackagesResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/app/packages/v1/packages.pb.h b/src/viam/api/app/packages/v1/packages.pb.h index 7b757e2a2..752fc12fb 100644 --- a/src/viam/api/app/packages/v1/packages.pb.h +++ b/src/viam/api/app/packages/v1/packages.pb.h @@ -1,65 +1,54 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: app/packages/v1/packages.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_app_2fpackages_2fv1_2fpackages_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_app_2fpackages_2fv1_2fpackages_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_app_2fpackages_2fv1_2fpackages_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_app_2fpackages_2fv1_2fpackages_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_bases.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/generated_enum_reflection.h" -#include "google/protobuf/unknown_field_set.h" + +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include #include "google/api/annotations.pb.h" -#include "google/protobuf/struct.pb.h" -#include "google/protobuf/timestamp.pb.h" +#include +#include // @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - +#include #define PROTOBUF_INTERNAL_EXPORT_app_2fpackages_2fv1_2fpackages_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_app_2fpackages_2fv1_2fpackages_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_app_2fpackages_2fv1_2fpackages_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_app_2fpackages_2fv1_2fpackages_2eproto; namespace viam { namespace app { namespace packages { @@ -101,15 +90,24 @@ extern PackageInfoDefaultTypeInternal _PackageInfo_default_instance_; } // namespace packages } // namespace app } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::app::packages::v1::CreatePackageRequest* Arena::CreateMaybeMessage<::viam::app::packages::v1::CreatePackageRequest>(Arena*); +template<> ::viam::app::packages::v1::CreatePackageResponse* Arena::CreateMaybeMessage<::viam::app::packages::v1::CreatePackageResponse>(Arena*); +template<> ::viam::app::packages::v1::DeletePackageRequest* Arena::CreateMaybeMessage<::viam::app::packages::v1::DeletePackageRequest>(Arena*); +template<> ::viam::app::packages::v1::DeletePackageResponse* Arena::CreateMaybeMessage<::viam::app::packages::v1::DeletePackageResponse>(Arena*); +template<> ::viam::app::packages::v1::FileInfo* Arena::CreateMaybeMessage<::viam::app::packages::v1::FileInfo>(Arena*); +template<> ::viam::app::packages::v1::GetPackageRequest* Arena::CreateMaybeMessage<::viam::app::packages::v1::GetPackageRequest>(Arena*); +template<> ::viam::app::packages::v1::GetPackageResponse* Arena::CreateMaybeMessage<::viam::app::packages::v1::GetPackageResponse>(Arena*); +template<> ::viam::app::packages::v1::ListPackagesRequest* Arena::CreateMaybeMessage<::viam::app::packages::v1::ListPackagesRequest>(Arena*); +template<> ::viam::app::packages::v1::ListPackagesResponse* Arena::CreateMaybeMessage<::viam::app::packages::v1::ListPackagesResponse>(Arena*); +template<> ::viam::app::packages::v1::Package* Arena::CreateMaybeMessage<::viam::app::packages::v1::Package>(Arena*); +template<> ::viam::app::packages::v1::PackageInfo* Arena::CreateMaybeMessage<::viam::app::packages::v1::PackageInfo>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace viam { namespace app { namespace packages { namespace v1 { + enum PackageType : int { PACKAGE_TYPE_UNSPECIFIED = 0, PACKAGE_TYPE_ARCHIVE = 1, @@ -117,66 +115,52 @@ enum PackageType : int { PACKAGE_TYPE_MODULE = 3, PACKAGE_TYPE_SLAM_MAP = 4, PACKAGE_TYPE_ML_TRAINING = 5, - PackageType_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - PackageType_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), + PackageType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + PackageType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() }; - bool PackageType_IsValid(int value); -extern const uint32_t PackageType_internal_data_[]; -constexpr PackageType PackageType_MIN = static_cast(0); -constexpr PackageType PackageType_MAX = static_cast(5); -constexpr int PackageType_ARRAYSIZE = 5 + 1; -const ::google::protobuf::EnumDescriptor* -PackageType_descriptor(); -template -const std::string& PackageType_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to PackageType_Name()."); - return PackageType_Name(static_cast(value)); -} -template <> -inline const std::string& PackageType_Name(PackageType value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool PackageType_Parse(absl::string_view name, PackageType* value) { - return ::google::protobuf::internal::ParseNamedEnum( - PackageType_descriptor(), name, value); +constexpr PackageType PackageType_MIN = PACKAGE_TYPE_UNSPECIFIED; +constexpr PackageType PackageType_MAX = PACKAGE_TYPE_ML_TRAINING; +constexpr int PackageType_ARRAYSIZE = PackageType_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PackageType_descriptor(); +template +inline const std::string& PackageType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function PackageType_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + PackageType_descriptor(), enum_t_value); +} +inline bool PackageType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PackageType* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + PackageType_descriptor(), name, value); } - // =================================================================== - -// ------------------------------------------------------------------- - -class ListPackagesRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.packages.v1.ListPackagesRequest) */ { +class FileInfo final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.packages.v1.FileInfo) */ { public: - inline ListPackagesRequest() : ListPackagesRequest(nullptr) {} - ~ListPackagesRequest() override; - template - explicit PROTOBUF_CONSTEXPR ListPackagesRequest(::google::protobuf::internal::ConstantInitialized); + inline FileInfo() : FileInfo(nullptr) {} + ~FileInfo() override; + explicit PROTOBUF_CONSTEXPR FileInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ListPackagesRequest(const ListPackagesRequest& from) - : ListPackagesRequest(nullptr, from) {} - ListPackagesRequest(ListPackagesRequest&& from) noexcept - : ListPackagesRequest() { + FileInfo(const FileInfo& from); + FileInfo(FileInfo&& from) noexcept + : FileInfo() { *this = ::std::move(from); } - inline ListPackagesRequest& operator=(const ListPackagesRequest& from) { + inline FileInfo& operator=(const FileInfo& from) { CopyFrom(from); return *this; } - inline ListPackagesRequest& operator=(ListPackagesRequest&& from) noexcept { + inline FileInfo& operator=(FileInfo&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -186,243 +170,172 @@ class ListPackagesRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ListPackagesRequest& default_instance() { + static const FileInfo& default_instance() { return *internal_default_instance(); } - static inline const ListPackagesRequest* internal_default_instance() { - return reinterpret_cast( - &_ListPackagesRequest_default_instance_); + static inline const FileInfo* internal_default_instance() { + return reinterpret_cast( + &_FileInfo_default_instance_); } static constexpr int kIndexInFileMessages = - 9; + 0; - friend void swap(ListPackagesRequest& a, ListPackagesRequest& b) { + friend void swap(FileInfo& a, FileInfo& b) { a.Swap(&b); } - inline void Swap(ListPackagesRequest* other) { + inline void Swap(FileInfo* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ListPackagesRequest* other) { + void UnsafeArenaSwap(FileInfo* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ListPackagesRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ListPackagesRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ListPackagesRequest& from) { - ListPackagesRequest::MergeImpl(*this, from); + FileInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const FileInfo& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const FileInfo& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ListPackagesRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(FileInfo* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.packages.v1.ListPackagesRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.packages.v1.FileInfo"; } protected: - explicit ListPackagesRequest(::google::protobuf::Arena* arena); - ListPackagesRequest(::google::protobuf::Arena* arena, const ListPackagesRequest& from); + explicit FileInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kOrganizationIdFieldNumber = 1, - kNameFieldNumber = 2, - kVersionFieldNumber = 3, - kTypeFieldNumber = 4, - kIncludeUrlFieldNumber = 5, + kNameFieldNumber = 1, + kSizeFieldNumber = 2, + kIsDirectoryFieldNumber = 3, }; - // string organization_id = 1 [json_name = "organizationId"]; - void clear_organization_id() ; - const std::string& organization_id() const; - template - void set_organization_id(Arg_&& arg, Args_... args); - std::string* mutable_organization_id(); - PROTOBUF_NODISCARD std::string* release_organization_id(); - void set_allocated_organization_id(std::string* value); - - private: - const std::string& _internal_organization_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id( - const std::string& value); - std::string* _internal_mutable_organization_id(); - - public: - // optional string name = 2 [json_name = "name"]; - bool has_name() const; - void clear_name() ; + // string name = 1 [json_name = "name"]; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); std::string* _internal_mutable_name(); - public: - // optional string version = 3 [json_name = "version"]; - bool has_version() const; - void clear_version() ; - const std::string& version() const; - template - void set_version(Arg_&& arg, Args_... args); - std::string* mutable_version(); - PROTOBUF_NODISCARD std::string* release_version(); - void set_allocated_version(std::string* value); + // uint64 size = 2 [json_name = "size"]; + void clear_size(); + uint64_t size() const; + void set_size(uint64_t value); private: - const std::string& _internal_version() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_version( - const std::string& value); - std::string* _internal_mutable_version(); - + uint64_t _internal_size() const; + void _internal_set_size(uint64_t value); public: - // optional .viam.app.packages.v1.PackageType type = 4 [json_name = "type"]; - bool has_type() const; - void clear_type() ; - ::viam::app::packages::v1::PackageType type() const; - void set_type(::viam::app::packages::v1::PackageType value); + // optional bool is_directory = 3 [json_name = "isDirectory"]; + bool has_is_directory() const; private: - ::viam::app::packages::v1::PackageType _internal_type() const; - void _internal_set_type(::viam::app::packages::v1::PackageType value); - + bool _internal_has_is_directory() const; public: - // optional bool include_url = 5 [json_name = "includeUrl"]; - bool has_include_url() const; - void clear_include_url() ; - bool include_url() const; - void set_include_url(bool value); - + void clear_is_directory(); + bool is_directory() const; + void set_is_directory(bool value); private: - bool _internal_include_url() const; - void _internal_set_include_url(bool value); - + bool _internal_is_directory() const; + void _internal_set_is_directory(bool value); public: - // @@protoc_insertion_point(class_scope:viam.app.packages.v1.ListPackagesRequest) + + // @@protoc_insertion_point(class_scope:viam.app.packages.v1.FileInfo) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 5, 0, - 75, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr organization_id_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr version_; - int type_; - bool include_url_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + uint64_t size_; + bool is_directory_; friend struct ::TableStruct_app_2fpackages_2fv1_2fpackages_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetPackageRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.packages.v1.GetPackageRequest) */ { +class PackageInfo final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.packages.v1.PackageInfo) */ { public: - inline GetPackageRequest() : GetPackageRequest(nullptr) {} - ~GetPackageRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetPackageRequest(::google::protobuf::internal::ConstantInitialized); + inline PackageInfo() : PackageInfo(nullptr) {} + ~PackageInfo() override; + explicit PROTOBUF_CONSTEXPR PackageInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetPackageRequest(const GetPackageRequest& from) - : GetPackageRequest(nullptr, from) {} - GetPackageRequest(GetPackageRequest&& from) noexcept - : GetPackageRequest() { + PackageInfo(const PackageInfo& from); + PackageInfo(PackageInfo&& from) noexcept + : PackageInfo() { *this = ::std::move(from); } - inline GetPackageRequest& operator=(const GetPackageRequest& from) { + inline PackageInfo& operator=(const PackageInfo& from) { CopyFrom(from); return *this; } - inline GetPackageRequest& operator=(GetPackageRequest&& from) noexcept { + inline PackageInfo& operator=(PackageInfo&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -432,242 +345,249 @@ class GetPackageRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetPackageRequest& default_instance() { + static const PackageInfo& default_instance() { return *internal_default_instance(); } - static inline const GetPackageRequest* internal_default_instance() { - return reinterpret_cast( - &_GetPackageRequest_default_instance_); + static inline const PackageInfo* internal_default_instance() { + return reinterpret_cast( + &_PackageInfo_default_instance_); } static constexpr int kIndexInFileMessages = - 7; + 1; - friend void swap(GetPackageRequest& a, GetPackageRequest& b) { + friend void swap(PackageInfo& a, PackageInfo& b) { a.Swap(&b); } - inline void Swap(GetPackageRequest* other) { + inline void Swap(PackageInfo* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetPackageRequest* other) { + void UnsafeArenaSwap(PackageInfo* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetPackageRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetPackageRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetPackageRequest& from) { - GetPackageRequest::MergeImpl(*this, from); + PackageInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const PackageInfo& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const PackageInfo& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetPackageRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(PackageInfo* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.packages.v1.GetPackageRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.packages.v1.PackageInfo"; } protected: - explicit GetPackageRequest(::google::protobuf::Arena* arena); - GetPackageRequest(::google::protobuf::Arena* arena, const GetPackageRequest& from); + explicit PackageInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kIdFieldNumber = 1, - kVersionFieldNumber = 2, - kPlatformFieldNumber = 5, - kIncludeUrlFieldNumber = 3, + kFilesFieldNumber = 5, + kOrganizationIdFieldNumber = 1, + kNameFieldNumber = 2, + kVersionFieldNumber = 3, + kPlatformFieldNumber = 7, + kMetadataFieldNumber = 6, kTypeFieldNumber = 4, }; - // string id = 1 [json_name = "id"]; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); + // repeated .viam.app.packages.v1.FileInfo files = 5 [json_name = "files"]; + int files_size() const; + private: + int _internal_files_size() const; + public: + void clear_files(); + ::viam::app::packages::v1::FileInfo* mutable_files(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::packages::v1::FileInfo >* + mutable_files(); + private: + const ::viam::app::packages::v1::FileInfo& _internal_files(int index) const; + ::viam::app::packages::v1::FileInfo* _internal_add_files(); + public: + const ::viam::app::packages::v1::FileInfo& files(int index) const; + ::viam::app::packages::v1::FileInfo* add_files(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::packages::v1::FileInfo >& + files() const; + // string organization_id = 1 [json_name = "organizationId"]; + void clear_organization_id(); + const std::string& organization_id() const; + template + void set_organization_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_organization_id(); + PROTOBUF_NODISCARD std::string* release_organization_id(); + void set_allocated_organization_id(std::string* organization_id); private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); + const std::string& _internal_organization_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id(const std::string& value); + std::string* _internal_mutable_organization_id(); + public: + // string name = 2 [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: - // string version = 2 [json_name = "version"]; - void clear_version() ; + + // string version = 3 [json_name = "version"]; + void clear_version(); const std::string& version() const; - template - void set_version(Arg_&& arg, Args_... args); + template + void set_version(ArgT0&& arg0, ArgT... args); std::string* mutable_version(); PROTOBUF_NODISCARD std::string* release_version(); - void set_allocated_version(std::string* value); - + void set_allocated_version(std::string* version); private: const std::string& _internal_version() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_version( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_version(const std::string& value); std::string* _internal_mutable_version(); - public: - // optional string platform = 5 [json_name = "platform"]; + + // optional string platform = 7 [json_name = "platform"]; bool has_platform() const; - void clear_platform() ; + private: + bool _internal_has_platform() const; + public: + void clear_platform(); const std::string& platform() const; - template - void set_platform(Arg_&& arg, Args_... args); + template + void set_platform(ArgT0&& arg0, ArgT... args); std::string* mutable_platform(); PROTOBUF_NODISCARD std::string* release_platform(); - void set_allocated_platform(std::string* value); - + void set_allocated_platform(std::string* platform); private: const std::string& _internal_platform() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_platform( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_platform(const std::string& value); std::string* _internal_mutable_platform(); - public: - // optional bool include_url = 3 [json_name = "includeUrl"]; - bool has_include_url() const; - void clear_include_url() ; - bool include_url() const; - void set_include_url(bool value); + // .google.protobuf.Struct metadata = 6 [json_name = "metadata"]; + bool has_metadata() const; private: - bool _internal_include_url() const; - void _internal_set_include_url(bool value); - + bool _internal_has_metadata() const; public: - // optional .viam.app.packages.v1.PackageType type = 4 [json_name = "type"]; - bool has_type() const; - void clear_type() ; + void clear_metadata(); + const ::PROTOBUF_NAMESPACE_ID::Struct& metadata() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_metadata(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_metadata(); + void set_allocated_metadata(::PROTOBUF_NAMESPACE_ID::Struct* metadata); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_metadata() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_metadata(); + public: + void unsafe_arena_set_allocated_metadata( + ::PROTOBUF_NAMESPACE_ID::Struct* metadata); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_metadata(); + + // .viam.app.packages.v1.PackageType type = 4 [json_name = "type"]; + void clear_type(); ::viam::app::packages::v1::PackageType type() const; void set_type(::viam::app::packages::v1::PackageType value); - private: ::viam::app::packages::v1::PackageType _internal_type() const; void _internal_set_type(::viam::app::packages::v1::PackageType value); - public: - // @@protoc_insertion_point(class_scope:viam.app.packages.v1.GetPackageRequest) + + // @@protoc_insertion_point(class_scope:viam.app.packages.v1.PackageInfo) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 5, 0, - 64, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr id_; - ::google::protobuf::internal::ArenaStringPtr version_; - ::google::protobuf::internal::ArenaStringPtr platform_; - bool include_url_; - int type_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::packages::v1::FileInfo > files_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr organization_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr version_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr platform_; + ::PROTOBUF_NAMESPACE_ID::Struct* metadata_; + int type_; friend struct ::TableStruct_app_2fpackages_2fv1_2fpackages_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class FileInfo final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.packages.v1.FileInfo) */ { +class CreatePackageRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.packages.v1.CreatePackageRequest) */ { public: - inline FileInfo() : FileInfo(nullptr) {} - ~FileInfo() override; - template - explicit PROTOBUF_CONSTEXPR FileInfo(::google::protobuf::internal::ConstantInitialized); + inline CreatePackageRequest() : CreatePackageRequest(nullptr) {} + ~CreatePackageRequest() override; + explicit PROTOBUF_CONSTEXPR CreatePackageRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline FileInfo(const FileInfo& from) - : FileInfo(nullptr, from) {} - FileInfo(FileInfo&& from) noexcept - : FileInfo() { + CreatePackageRequest(const CreatePackageRequest& from); + CreatePackageRequest(CreatePackageRequest&& from) noexcept + : CreatePackageRequest() { *this = ::std::move(from); } - inline FileInfo& operator=(const FileInfo& from) { + inline CreatePackageRequest& operator=(const CreatePackageRequest& from) { CopyFrom(from); return *this; } - inline FileInfo& operator=(FileInfo&& from) noexcept { + inline CreatePackageRequest& operator=(CreatePackageRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -677,203 +597,188 @@ class FileInfo final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const FileInfo& default_instance() { + static const CreatePackageRequest& default_instance() { return *internal_default_instance(); } - static inline const FileInfo* internal_default_instance() { - return reinterpret_cast( - &_FileInfo_default_instance_); - } + enum PackageCase { + kInfo = 1, + kContents = 2, + PACKAGE_NOT_SET = 0, + }; + + static inline const CreatePackageRequest* internal_default_instance() { + return reinterpret_cast( + &_CreatePackageRequest_default_instance_); + } static constexpr int kIndexInFileMessages = - 0; + 2; - friend void swap(FileInfo& a, FileInfo& b) { + friend void swap(CreatePackageRequest& a, CreatePackageRequest& b) { a.Swap(&b); } - inline void Swap(FileInfo* other) { + inline void Swap(CreatePackageRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(FileInfo* other) { + void UnsafeArenaSwap(CreatePackageRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - FileInfo* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const FileInfo& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const FileInfo& from) { - FileInfo::MergeImpl(*this, from); + CreatePackageRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CreatePackageRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CreatePackageRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(FileInfo* other); + void SetCachedSize(int size) const final; + void InternalSwap(CreatePackageRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.packages.v1.FileInfo"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.packages.v1.CreatePackageRequest"; } protected: - explicit FileInfo(::google::protobuf::Arena* arena); - FileInfo(::google::protobuf::Arena* arena, const FileInfo& from); + explicit CreatePackageRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kNameFieldNumber = 1, - kSizeFieldNumber = 2, - kIsDirectoryFieldNumber = 3, + kInfoFieldNumber = 1, + kContentsFieldNumber = 2, }; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + // .viam.app.packages.v1.PackageInfo info = 1 [json_name = "info"]; + bool has_info() const; private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - + bool _internal_has_info() const; public: - // uint64 size = 2 [json_name = "size"]; - void clear_size() ; - ::uint64_t size() const; - void set_size(::uint64_t value); - + void clear_info(); + const ::viam::app::packages::v1::PackageInfo& info() const; + PROTOBUF_NODISCARD ::viam::app::packages::v1::PackageInfo* release_info(); + ::viam::app::packages::v1::PackageInfo* mutable_info(); + void set_allocated_info(::viam::app::packages::v1::PackageInfo* info); private: - ::uint64_t _internal_size() const; - void _internal_set_size(::uint64_t value); - + const ::viam::app::packages::v1::PackageInfo& _internal_info() const; + ::viam::app::packages::v1::PackageInfo* _internal_mutable_info(); public: - // optional bool is_directory = 3 [json_name = "isDirectory"]; - bool has_is_directory() const; - void clear_is_directory() ; - bool is_directory() const; - void set_is_directory(bool value); + void unsafe_arena_set_allocated_info( + ::viam::app::packages::v1::PackageInfo* info); + ::viam::app::packages::v1::PackageInfo* unsafe_arena_release_info(); + // bytes contents = 2 [json_name = "contents"]; + bool has_contents() const; private: - bool _internal_is_directory() const; - void _internal_set_is_directory(bool value); - + bool _internal_has_contents() const; public: - // @@protoc_insertion_point(class_scope:viam.app.packages.v1.FileInfo) + void clear_contents(); + const std::string& contents() const; + template + void set_contents(ArgT0&& arg0, ArgT... args); + std::string* mutable_contents(); + PROTOBUF_NODISCARD std::string* release_contents(); + void set_allocated_contents(std::string* contents); + private: + const std::string& _internal_contents() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_contents(const std::string& value); + std::string* _internal_mutable_contents(); + public: + + void clear_package(); + PackageCase package_case() const; + // @@protoc_insertion_point(class_scope:viam.app.packages.v1.CreatePackageRequest) private: class _Internal; + void set_has_info(); + void set_has_contents(); + + inline bool has_package() const; + inline void clear_has_package(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + union PackageUnion { + constexpr PackageUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::viam::app::packages::v1::PackageInfo* info_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr contents_; + } package_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 0, - 42, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::uint64_t size_; - bool is_directory_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; friend struct ::TableStruct_app_2fpackages_2fv1_2fpackages_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class DeletePackageResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.packages.v1.DeletePackageResponse) */ { +class CreatePackageResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.packages.v1.CreatePackageResponse) */ { public: - inline DeletePackageResponse() : DeletePackageResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR DeletePackageResponse(::google::protobuf::internal::ConstantInitialized); + inline CreatePackageResponse() : CreatePackageResponse(nullptr) {} + ~CreatePackageResponse() override; + explicit PROTOBUF_CONSTEXPR CreatePackageResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline DeletePackageResponse(const DeletePackageResponse& from) - : DeletePackageResponse(nullptr, from) {} - DeletePackageResponse(DeletePackageResponse&& from) noexcept - : DeletePackageResponse() { + CreatePackageResponse(const CreatePackageResponse& from); + CreatePackageResponse(CreatePackageResponse&& from) noexcept + : CreatePackageResponse() { *this = ::std::move(from); } - inline DeletePackageResponse& operator=(const DeletePackageResponse& from) { + inline CreatePackageResponse& operator=(const CreatePackageResponse& from) { CopyFrom(from); return *this; } - inline DeletePackageResponse& operator=(DeletePackageResponse&& from) noexcept { + inline CreatePackageResponse& operator=(CreatePackageResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -883,120 +788,147 @@ class DeletePackageResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const DeletePackageResponse& default_instance() { + static const CreatePackageResponse& default_instance() { return *internal_default_instance(); } - static inline const DeletePackageResponse* internal_default_instance() { - return reinterpret_cast( - &_DeletePackageResponse_default_instance_); + static inline const CreatePackageResponse* internal_default_instance() { + return reinterpret_cast( + &_CreatePackageResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 5; + 3; - friend void swap(DeletePackageResponse& a, DeletePackageResponse& b) { + friend void swap(CreatePackageResponse& a, CreatePackageResponse& b) { a.Swap(&b); } - inline void Swap(DeletePackageResponse* other) { + inline void Swap(CreatePackageResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(DeletePackageResponse* other) { + void UnsafeArenaSwap(CreatePackageResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - DeletePackageResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const DeletePackageResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const DeletePackageResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + CreatePackageResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CreatePackageResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CreatePackageResponse& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.packages.v1.DeletePackageResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CreatePackageResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.packages.v1.CreatePackageResponse"; } protected: - explicit DeletePackageResponse(::google::protobuf::Arena* arena); - DeletePackageResponse(::google::protobuf::Arena* arena, const DeletePackageResponse& from); + explicit CreatePackageResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.app.packages.v1.DeletePackageResponse) + enum : int { + kIdFieldNumber = 1, + kVersionFieldNumber = 2, + }; + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + + // string version = 2 [json_name = "version"]; + void clear_version(); + const std::string& version() const; + template + void set_version(ArgT0&& arg0, ArgT... args); + std::string* mutable_version(); + PROTOBUF_NODISCARD std::string* release_version(); + void set_allocated_version(std::string* version); + private: + const std::string& _internal_version() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_version(const std::string& value); + std::string* _internal_mutable_version(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.packages.v1.CreatePackageResponse) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr version_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fpackages_2fv1_2fpackages_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class DeletePackageRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.packages.v1.DeletePackageRequest) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.packages.v1.DeletePackageRequest) */ { public: inline DeletePackageRequest() : DeletePackageRequest(nullptr) {} ~DeletePackageRequest() override; - template - explicit PROTOBUF_CONSTEXPR DeletePackageRequest(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR DeletePackageRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline DeletePackageRequest(const DeletePackageRequest& from) - : DeletePackageRequest(nullptr, from) {} + DeletePackageRequest(const DeletePackageRequest& from); DeletePackageRequest(DeletePackageRequest&& from) noexcept : DeletePackageRequest() { *this = ::std::move(from); @@ -1008,9 +940,9 @@ class DeletePackageRequest final : } inline DeletePackageRequest& operator=(DeletePackageRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1020,22 +952,13 @@ class DeletePackageRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const DeletePackageRequest& default_instance() { @@ -1054,65 +977,63 @@ class DeletePackageRequest final : inline void Swap(DeletePackageRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(DeletePackageRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - DeletePackageRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + DeletePackageRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const DeletePackageRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const DeletePackageRequest& from) { - DeletePackageRequest::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const DeletePackageRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(DeletePackageRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "viam.app.packages.v1.DeletePackageRequest"; } protected: - explicit DeletePackageRequest(::google::protobuf::Arena* arena); - DeletePackageRequest(::google::protobuf::Arena* arena, const DeletePackageRequest& from); + explicit DeletePackageRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1124,104 +1045,78 @@ class DeletePackageRequest final : kTypeFieldNumber = 3, }; // string id = 1 [json_name = "id"]; - void clear_id() ; + void clear_id(); const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); + template + void set_id(ArgT0&& arg0, ArgT... args); std::string* mutable_id(); PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - + void set_allocated_id(std::string* id); private: const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); std::string* _internal_mutable_id(); - public: + // string version = 2 [json_name = "version"]; - void clear_version() ; + void clear_version(); const std::string& version() const; - template - void set_version(Arg_&& arg, Args_... args); + template + void set_version(ArgT0&& arg0, ArgT... args); std::string* mutable_version(); PROTOBUF_NODISCARD std::string* release_version(); - void set_allocated_version(std::string* value); - + void set_allocated_version(std::string* version); private: const std::string& _internal_version() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_version( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_version(const std::string& value); std::string* _internal_mutable_version(); - public: + // .viam.app.packages.v1.PackageType type = 3 [json_name = "type"]; - void clear_type() ; + void clear_type(); ::viam::app::packages::v1::PackageType type() const; void set_type(::viam::app::packages::v1::PackageType value); - private: ::viam::app::packages::v1::PackageType _internal_type() const; void _internal_set_type(::viam::app::packages::v1::PackageType value); - public: + // @@protoc_insertion_point(class_scope:viam.app.packages.v1.DeletePackageRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 0, - 59, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr id_; - ::google::protobuf::internal::ArenaStringPtr version_; - int type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr version_; + int type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fpackages_2fv1_2fpackages_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class CreatePackageResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.packages.v1.CreatePackageResponse) */ { +class DeletePackageResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.packages.v1.DeletePackageResponse) */ { public: - inline CreatePackageResponse() : CreatePackageResponse(nullptr) {} - ~CreatePackageResponse() override; - template - explicit PROTOBUF_CONSTEXPR CreatePackageResponse(::google::protobuf::internal::ConstantInitialized); + inline DeletePackageResponse() : DeletePackageResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR DeletePackageResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline CreatePackageResponse(const CreatePackageResponse& from) - : CreatePackageResponse(nullptr, from) {} - CreatePackageResponse(CreatePackageResponse&& from) noexcept - : CreatePackageResponse() { + DeletePackageResponse(const DeletePackageResponse& from); + DeletePackageResponse(DeletePackageResponse&& from) noexcept + : DeletePackageResponse() { *this = ::std::move(from); } - inline CreatePackageResponse& operator=(const CreatePackageResponse& from) { + inline DeletePackageResponse& operator=(const DeletePackageResponse& from) { CopyFrom(from); return *this; } - inline CreatePackageResponse& operator=(CreatePackageResponse&& from) noexcept { + inline DeletePackageResponse& operator=(DeletePackageResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1231,196 +1126,114 @@ class CreatePackageResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CreatePackageResponse& default_instance() { + static const DeletePackageResponse& default_instance() { return *internal_default_instance(); } - static inline const CreatePackageResponse* internal_default_instance() { - return reinterpret_cast( - &_CreatePackageResponse_default_instance_); + static inline const DeletePackageResponse* internal_default_instance() { + return reinterpret_cast( + &_DeletePackageResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 3; + 5; - friend void swap(CreatePackageResponse& a, CreatePackageResponse& b) { + friend void swap(DeletePackageResponse& a, DeletePackageResponse& b) { a.Swap(&b); } - inline void Swap(CreatePackageResponse* other) { + inline void Swap(DeletePackageResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CreatePackageResponse* other) { + void UnsafeArenaSwap(DeletePackageResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CreatePackageResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + DeletePackageResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const CreatePackageResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CreatePackageResponse& from) { - CreatePackageResponse::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const DeletePackageResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const DeletePackageResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(CreatePackageResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.packages.v1.CreatePackageResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.packages.v1.DeletePackageResponse"; } protected: - explicit CreatePackageResponse(::google::protobuf::Arena* arena); - CreatePackageResponse(::google::protobuf::Arena* arena, const CreatePackageResponse& from); + explicit DeletePackageResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kIdFieldNumber = 1, - kVersionFieldNumber = 2, - }; - // string id = 1 [json_name = "id"]; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - - private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); - - public: - // string version = 2 [json_name = "version"]; - void clear_version() ; - const std::string& version() const; - template - void set_version(Arg_&& arg, Args_... args); - std::string* mutable_version(); - PROTOBUF_NODISCARD std::string* release_version(); - void set_allocated_version(std::string* value); - - private: - const std::string& _internal_version() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_version( - const std::string& value); - std::string* _internal_mutable_version(); - - public: - // @@protoc_insertion_point(class_scope:viam.app.packages.v1.CreatePackageResponse) + // @@protoc_insertion_point(class_scope:viam.app.packages.v1.DeletePackageResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 60, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr id_; - ::google::protobuf::internal::ArenaStringPtr version_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_app_2fpackages_2fv1_2fpackages_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class PackageInfo final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.packages.v1.PackageInfo) */ { +class Package final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.packages.v1.Package) */ { public: - inline PackageInfo() : PackageInfo(nullptr) {} - ~PackageInfo() override; - template - explicit PROTOBUF_CONSTEXPR PackageInfo(::google::protobuf::internal::ConstantInitialized); + inline Package() : Package(nullptr) {} + ~Package() override; + explicit PROTOBUF_CONSTEXPR Package(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline PackageInfo(const PackageInfo& from) - : PackageInfo(nullptr, from) {} - PackageInfo(PackageInfo&& from) noexcept - : PackageInfo() { + Package(const Package& from); + Package(Package&& from) noexcept + : Package() { *this = ::std::move(from); } - inline PackageInfo& operator=(const PackageInfo& from) { + inline Package& operator=(const Package& from) { CopyFrom(from); return *this; } - inline PackageInfo& operator=(PackageInfo&& from) noexcept { + inline Package& operator=(Package&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1430,283 +1243,217 @@ class PackageInfo final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const PackageInfo& default_instance() { + static const Package& default_instance() { return *internal_default_instance(); } - static inline const PackageInfo* internal_default_instance() { - return reinterpret_cast( - &_PackageInfo_default_instance_); + static inline const Package* internal_default_instance() { + return reinterpret_cast( + &_Package_default_instance_); } static constexpr int kIndexInFileMessages = - 1; + 6; - friend void swap(PackageInfo& a, PackageInfo& b) { + friend void swap(Package& a, Package& b) { a.Swap(&b); } - inline void Swap(PackageInfo* other) { + inline void Swap(Package* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(PackageInfo* other) { + void UnsafeArenaSwap(Package* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - PackageInfo* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const PackageInfo& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const PackageInfo& from) { - PackageInfo::MergeImpl(*this, from); + Package* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Package& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Package& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(PackageInfo* other); + void SetCachedSize(int size) const final; + void InternalSwap(Package* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.packages.v1.PackageInfo"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.packages.v1.Package"; } protected: - explicit PackageInfo(::google::protobuf::Arena* arena); - PackageInfo(::google::protobuf::Arena* arena, const PackageInfo& from); + explicit Package(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kFilesFieldNumber = 5, - kOrganizationIdFieldNumber = 1, - kNameFieldNumber = 2, - kVersionFieldNumber = 3, - kPlatformFieldNumber = 7, - kMetadataFieldNumber = 6, - kTypeFieldNumber = 4, + kUrlFieldNumber = 2, + kChecksumFieldNumber = 4, + kIdFieldNumber = 5, + kInfoFieldNumber = 1, + kCreatedOnFieldNumber = 3, }; - // repeated .viam.app.packages.v1.FileInfo files = 5 [json_name = "files"]; - int files_size() const; - private: - int _internal_files_size() const; - - public: - void clear_files() ; - ::viam::app::packages::v1::FileInfo* mutable_files(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::packages::v1::FileInfo >* - mutable_files(); + // string url = 2 [json_name = "url"]; + void clear_url(); + const std::string& url() const; + template + void set_url(ArgT0&& arg0, ArgT... args); + std::string* mutable_url(); + PROTOBUF_NODISCARD std::string* release_url(); + void set_allocated_url(std::string* url); private: - const ::google::protobuf::RepeatedPtrField<::viam::app::packages::v1::FileInfo>& _internal_files() const; - ::google::protobuf::RepeatedPtrField<::viam::app::packages::v1::FileInfo>* _internal_mutable_files(); + const std::string& _internal_url() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_url(const std::string& value); + std::string* _internal_mutable_url(); public: - const ::viam::app::packages::v1::FileInfo& files(int index) const; - ::viam::app::packages::v1::FileInfo* add_files(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::packages::v1::FileInfo >& - files() const; - // string organization_id = 1 [json_name = "organizationId"]; - void clear_organization_id() ; - const std::string& organization_id() const; - template - void set_organization_id(Arg_&& arg, Args_... args); - std::string* mutable_organization_id(); - PROTOBUF_NODISCARD std::string* release_organization_id(); - void set_allocated_organization_id(std::string* value); + // string checksum = 4 [json_name = "checksum"]; + void clear_checksum(); + const std::string& checksum() const; + template + void set_checksum(ArgT0&& arg0, ArgT... args); + std::string* mutable_checksum(); + PROTOBUF_NODISCARD std::string* release_checksum(); + void set_allocated_checksum(std::string* checksum); private: - const std::string& _internal_organization_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id( - const std::string& value); - std::string* _internal_mutable_organization_id(); - + const std::string& _internal_checksum() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_checksum(const std::string& value); + std::string* _internal_mutable_checksum(); public: - // string name = 2 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); + // string id = 5 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); public: - // string version = 3 [json_name = "version"]; - void clear_version() ; - const std::string& version() const; - template - void set_version(Arg_&& arg, Args_... args); - std::string* mutable_version(); - PROTOBUF_NODISCARD std::string* release_version(); - void set_allocated_version(std::string* value); + // .viam.app.packages.v1.PackageInfo info = 1 [json_name = "info"]; + bool has_info() const; private: - const std::string& _internal_version() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_version( - const std::string& value); - std::string* _internal_mutable_version(); - + bool _internal_has_info() const; public: - // optional string platform = 7 [json_name = "platform"]; - bool has_platform() const; - void clear_platform() ; - const std::string& platform() const; - template - void set_platform(Arg_&& arg, Args_... args); - std::string* mutable_platform(); - PROTOBUF_NODISCARD std::string* release_platform(); - void set_allocated_platform(std::string* value); - + void clear_info(); + const ::viam::app::packages::v1::PackageInfo& info() const; + PROTOBUF_NODISCARD ::viam::app::packages::v1::PackageInfo* release_info(); + ::viam::app::packages::v1::PackageInfo* mutable_info(); + void set_allocated_info(::viam::app::packages::v1::PackageInfo* info); private: - const std::string& _internal_platform() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_platform( - const std::string& value); - std::string* _internal_mutable_platform(); - + const ::viam::app::packages::v1::PackageInfo& _internal_info() const; + ::viam::app::packages::v1::PackageInfo* _internal_mutable_info(); public: - // .google.protobuf.Struct metadata = 6 [json_name = "metadata"]; - bool has_metadata() const; - void clear_metadata() ; - const ::google::protobuf::Struct& metadata() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_metadata(); - ::google::protobuf::Struct* mutable_metadata(); - void set_allocated_metadata(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_metadata(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_metadata(); + void unsafe_arena_set_allocated_info( + ::viam::app::packages::v1::PackageInfo* info); + ::viam::app::packages::v1::PackageInfo* unsafe_arena_release_info(); + // .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn"]; + bool has_created_on() const; private: - const ::google::protobuf::Struct& _internal_metadata() const; - ::google::protobuf::Struct* _internal_mutable_metadata(); - + bool _internal_has_created_on() const; public: - // .viam.app.packages.v1.PackageType type = 4 [json_name = "type"]; - void clear_type() ; - ::viam::app::packages::v1::PackageType type() const; - void set_type(::viam::app::packages::v1::PackageType value); - - private: - ::viam::app::packages::v1::PackageType _internal_type() const; - void _internal_set_type(::viam::app::packages::v1::PackageType value); - + void clear_created_on(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& created_on() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_created_on(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_created_on(); + void set_allocated_created_on(::PROTOBUF_NAMESPACE_ID::Timestamp* created_on); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_created_on() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_created_on(); public: - // @@protoc_insertion_point(class_scope:viam.app.packages.v1.PackageInfo) + void unsafe_arena_set_allocated_created_on( + ::PROTOBUF_NAMESPACE_ID::Timestamp* created_on); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_created_on(); + + // @@protoc_insertion_point(class_scope:viam.app.packages.v1.Package) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 7, 2, - 75, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::viam::app::packages::v1::FileInfo > files_; - ::google::protobuf::internal::ArenaStringPtr organization_id_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr version_; - ::google::protobuf::internal::ArenaStringPtr platform_; - ::google::protobuf::Struct* metadata_; - int type_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr url_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr checksum_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::viam::app::packages::v1::PackageInfo* info_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* created_on_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fpackages_2fv1_2fpackages_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Package final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.packages.v1.Package) */ { +class GetPackageRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.packages.v1.GetPackageRequest) */ { public: - inline Package() : Package(nullptr) {} - ~Package() override; - template - explicit PROTOBUF_CONSTEXPR Package(::google::protobuf::internal::ConstantInitialized); + inline GetPackageRequest() : GetPackageRequest(nullptr) {} + ~GetPackageRequest() override; + explicit PROTOBUF_CONSTEXPR GetPackageRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Package(const Package& from) - : Package(nullptr, from) {} - Package(Package&& from) noexcept - : Package() { + GetPackageRequest(const GetPackageRequest& from); + GetPackageRequest(GetPackageRequest&& from) noexcept + : GetPackageRequest() { *this = ::std::move(from); } - inline Package& operator=(const Package& from) { + inline GetPackageRequest& operator=(const GetPackageRequest& from) { CopyFrom(from); return *this; } - inline Package& operator=(Package&& from) noexcept { + inline GetPackageRequest& operator=(GetPackageRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1716,249 +1463,212 @@ class Package final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Package& default_instance() { + static const GetPackageRequest& default_instance() { return *internal_default_instance(); } - static inline const Package* internal_default_instance() { - return reinterpret_cast( - &_Package_default_instance_); + static inline const GetPackageRequest* internal_default_instance() { + return reinterpret_cast( + &_GetPackageRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 6; + 7; - friend void swap(Package& a, Package& b) { + friend void swap(GetPackageRequest& a, GetPackageRequest& b) { a.Swap(&b); } - inline void Swap(Package* other) { + inline void Swap(GetPackageRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Package* other) { + void UnsafeArenaSwap(GetPackageRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Package* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Package& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Package& from) { - Package::MergeImpl(*this, from); + GetPackageRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPackageRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetPackageRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Package* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetPackageRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.packages.v1.Package"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.packages.v1.GetPackageRequest"; } protected: - explicit Package(::google::protobuf::Arena* arena); - Package(::google::protobuf::Arena* arena, const Package& from); + explicit GetPackageRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kUrlFieldNumber = 2, - kChecksumFieldNumber = 4, - kIdFieldNumber = 5, - kInfoFieldNumber = 1, - kCreatedOnFieldNumber = 3, + kIdFieldNumber = 1, + kVersionFieldNumber = 2, + kPlatformFieldNumber = 5, + kIncludeUrlFieldNumber = 3, + kTypeFieldNumber = 4, }; - // string url = 2 [json_name = "url"]; - void clear_url() ; - const std::string& url() const; - template - void set_url(Arg_&& arg, Args_... args); - std::string* mutable_url(); - PROTOBUF_NODISCARD std::string* release_url(); - void set_allocated_url(std::string* value); - - private: - const std::string& _internal_url() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_url( - const std::string& value); - std::string* _internal_mutable_url(); - - public: - // string checksum = 4 [json_name = "checksum"]; - void clear_checksum() ; - const std::string& checksum() const; - template - void set_checksum(Arg_&& arg, Args_... args); - std::string* mutable_checksum(); - PROTOBUF_NODISCARD std::string* release_checksum(); - void set_allocated_checksum(std::string* value); - - private: - const std::string& _internal_checksum() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_checksum( - const std::string& value); - std::string* _internal_mutable_checksum(); - - public: - // string id = 5 [json_name = "id"]; - void clear_id() ; + // string id = 1 [json_name = "id"]; + void clear_id(); const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); + template + void set_id(ArgT0&& arg0, ArgT... args); std::string* mutable_id(); PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - + void set_allocated_id(std::string* id); private: const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); std::string* _internal_mutable_id(); - public: - // .viam.app.packages.v1.PackageInfo info = 1 [json_name = "info"]; - bool has_info() const; - void clear_info() ; - const ::viam::app::packages::v1::PackageInfo& info() const; - PROTOBUF_NODISCARD ::viam::app::packages::v1::PackageInfo* release_info(); - ::viam::app::packages::v1::PackageInfo* mutable_info(); - void set_allocated_info(::viam::app::packages::v1::PackageInfo* value); - void unsafe_arena_set_allocated_info(::viam::app::packages::v1::PackageInfo* value); - ::viam::app::packages::v1::PackageInfo* unsafe_arena_release_info(); + // string version = 2 [json_name = "version"]; + void clear_version(); + const std::string& version() const; + template + void set_version(ArgT0&& arg0, ArgT... args); + std::string* mutable_version(); + PROTOBUF_NODISCARD std::string* release_version(); + void set_allocated_version(std::string* version); private: - const ::viam::app::packages::v1::PackageInfo& _internal_info() const; - ::viam::app::packages::v1::PackageInfo* _internal_mutable_info(); + const std::string& _internal_version() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_version(const std::string& value); + std::string* _internal_mutable_version(); + public: + // optional string platform = 5 [json_name = "platform"]; + bool has_platform() const; + private: + bool _internal_has_platform() const; + public: + void clear_platform(); + const std::string& platform() const; + template + void set_platform(ArgT0&& arg0, ArgT... args); + std::string* mutable_platform(); + PROTOBUF_NODISCARD std::string* release_platform(); + void set_allocated_platform(std::string* platform); + private: + const std::string& _internal_platform() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_platform(const std::string& value); + std::string* _internal_mutable_platform(); public: - // .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn"]; - bool has_created_on() const; - void clear_created_on() ; - const ::google::protobuf::Timestamp& created_on() const; - PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_created_on(); - ::google::protobuf::Timestamp* mutable_created_on(); - void set_allocated_created_on(::google::protobuf::Timestamp* value); - void unsafe_arena_set_allocated_created_on(::google::protobuf::Timestamp* value); - ::google::protobuf::Timestamp* unsafe_arena_release_created_on(); + // optional bool include_url = 3 [json_name = "includeUrl"]; + bool has_include_url() const; private: - const ::google::protobuf::Timestamp& _internal_created_on() const; - ::google::protobuf::Timestamp* _internal_mutable_created_on(); + bool _internal_has_include_url() const; + public: + void clear_include_url(); + bool include_url() const; + void set_include_url(bool value); + private: + bool _internal_include_url() const; + void _internal_set_include_url(bool value); + public: + // optional .viam.app.packages.v1.PackageType type = 4 [json_name = "type"]; + bool has_type() const; + private: + bool _internal_has_type() const; public: - // @@protoc_insertion_point(class_scope:viam.app.packages.v1.Package) + void clear_type(); + ::viam::app::packages::v1::PackageType type() const; + void set_type(::viam::app::packages::v1::PackageType value); + private: + ::viam::app::packages::v1::PackageType _internal_type() const; + void _internal_set_type(::viam::app::packages::v1::PackageType value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.packages.v1.GetPackageRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 5, 2, - 50, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr url_; - ::google::protobuf::internal::ArenaStringPtr checksum_; - ::google::protobuf::internal::ArenaStringPtr id_; - ::viam::app::packages::v1::PackageInfo* info_; - ::google::protobuf::Timestamp* created_on_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr version_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr platform_; + bool include_url_; + int type_; friend struct ::TableStruct_app_2fpackages_2fv1_2fpackages_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class CreatePackageRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.packages.v1.CreatePackageRequest) */ { +class GetPackageResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.packages.v1.GetPackageResponse) */ { public: - inline CreatePackageRequest() : CreatePackageRequest(nullptr) {} - ~CreatePackageRequest() override; - template - explicit PROTOBUF_CONSTEXPR CreatePackageRequest(::google::protobuf::internal::ConstantInitialized); + inline GetPackageResponse() : GetPackageResponse(nullptr) {} + ~GetPackageResponse() override; + explicit PROTOBUF_CONSTEXPR GetPackageResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline CreatePackageRequest(const CreatePackageRequest& from) - : CreatePackageRequest(nullptr, from) {} - CreatePackageRequest(CreatePackageRequest&& from) noexcept - : CreatePackageRequest() { + GetPackageResponse(const GetPackageResponse& from); + GetPackageResponse(GetPackageResponse&& from) noexcept + : GetPackageResponse() { *this = ::std::move(from); } - inline CreatePackageRequest& operator=(const CreatePackageRequest& from) { + inline GetPackageResponse& operator=(const GetPackageResponse& from) { CopyFrom(from); return *this; } - inline CreatePackageRequest& operator=(CreatePackageRequest&& from) noexcept { + inline GetPackageResponse& operator=(GetPackageResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1968,219 +1678,149 @@ class CreatePackageRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CreatePackageRequest& default_instance() { + static const GetPackageResponse& default_instance() { return *internal_default_instance(); } - enum PackageCase { - kInfo = 1, - kContents = 2, - PACKAGE_NOT_SET = 0, - }; - - static inline const CreatePackageRequest* internal_default_instance() { - return reinterpret_cast( - &_CreatePackageRequest_default_instance_); + static inline const GetPackageResponse* internal_default_instance() { + return reinterpret_cast( + &_GetPackageResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 2; + 8; - friend void swap(CreatePackageRequest& a, CreatePackageRequest& b) { + friend void swap(GetPackageResponse& a, GetPackageResponse& b) { a.Swap(&b); } - inline void Swap(CreatePackageRequest* other) { + inline void Swap(GetPackageResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CreatePackageRequest* other) { + void UnsafeArenaSwap(GetPackageResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CreatePackageRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const CreatePackageRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CreatePackageRequest& from) { - CreatePackageRequest::MergeImpl(*this, from); + GetPackageResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPackageResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetPackageResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(CreatePackageRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetPackageResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.packages.v1.CreatePackageRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.packages.v1.GetPackageResponse"; } protected: - explicit CreatePackageRequest(::google::protobuf::Arena* arena); - CreatePackageRequest(::google::protobuf::Arena* arena, const CreatePackageRequest& from); + explicit GetPackageResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kInfoFieldNumber = 1, - kContentsFieldNumber = 2, + kPackageFieldNumber = 1, }; - // .viam.app.packages.v1.PackageInfo info = 1 [json_name = "info"]; - bool has_info() const; + // .viam.app.packages.v1.Package package = 1 [json_name = "package"]; + bool has_package() const; private: - bool _internal_has_info() const; - + bool _internal_has_package() const; public: - void clear_info() ; - const ::viam::app::packages::v1::PackageInfo& info() const; - PROTOBUF_NODISCARD ::viam::app::packages::v1::PackageInfo* release_info(); - ::viam::app::packages::v1::PackageInfo* mutable_info(); - void set_allocated_info(::viam::app::packages::v1::PackageInfo* value); - void unsafe_arena_set_allocated_info(::viam::app::packages::v1::PackageInfo* value); - ::viam::app::packages::v1::PackageInfo* unsafe_arena_release_info(); - + void clear_package(); + const ::viam::app::packages::v1::Package& package() const; + PROTOBUF_NODISCARD ::viam::app::packages::v1::Package* release_package(); + ::viam::app::packages::v1::Package* mutable_package(); + void set_allocated_package(::viam::app::packages::v1::Package* package); private: - const ::viam::app::packages::v1::PackageInfo& _internal_info() const; - ::viam::app::packages::v1::PackageInfo* _internal_mutable_info(); - + const ::viam::app::packages::v1::Package& _internal_package() const; + ::viam::app::packages::v1::Package* _internal_mutable_package(); public: - // bytes contents = 2 [json_name = "contents"]; - bool has_contents() const; - void clear_contents() ; - const std::string& contents() const; - template - void set_contents(Arg_&& arg, Args_... args); - std::string* mutable_contents(); - PROTOBUF_NODISCARD std::string* release_contents(); - void set_allocated_contents(std::string* value); - - private: - const std::string& _internal_contents() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_contents( - const std::string& value); - std::string* _internal_mutable_contents(); + void unsafe_arena_set_allocated_package( + ::viam::app::packages::v1::Package* package); + ::viam::app::packages::v1::Package* unsafe_arena_release_package(); - public: - void clear_package(); - PackageCase package_case() const; - // @@protoc_insertion_point(class_scope:viam.app.packages.v1.CreatePackageRequest) + // @@protoc_insertion_point(class_scope:viam.app.packages.v1.GetPackageResponse) private: class _Internal; - void set_has_info(); - void set_has_contents(); - - inline bool has_package() const; - inline void clear_has_package(); - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 2, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - union PackageUnion { - constexpr PackageUnion() : _constinit_{} {} - ::google::protobuf::internal::ConstantInitialized _constinit_; - ::viam::app::packages::v1::PackageInfo* info_; - ::google::protobuf::internal::ArenaStringPtr contents_; - } package_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t _oneof_case_[1]; - - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::viam::app::packages::v1::Package* package_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fpackages_2fv1_2fpackages_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ListPackagesResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.packages.v1.ListPackagesResponse) */ { +class ListPackagesRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.packages.v1.ListPackagesRequest) */ { public: - inline ListPackagesResponse() : ListPackagesResponse(nullptr) {} - ~ListPackagesResponse() override; - template - explicit PROTOBUF_CONSTEXPR ListPackagesResponse(::google::protobuf::internal::ConstantInitialized); + inline ListPackagesRequest() : ListPackagesRequest(nullptr) {} + ~ListPackagesRequest() override; + explicit PROTOBUF_CONSTEXPR ListPackagesRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ListPackagesResponse(const ListPackagesResponse& from) - : ListPackagesResponse(nullptr, from) {} - ListPackagesResponse(ListPackagesResponse&& from) noexcept - : ListPackagesResponse() { + ListPackagesRequest(const ListPackagesRequest& from); + ListPackagesRequest(ListPackagesRequest&& from) noexcept + : ListPackagesRequest() { *this = ::std::move(from); } - inline ListPackagesResponse& operator=(const ListPackagesResponse& from) { + inline ListPackagesRequest& operator=(const ListPackagesRequest& from) { CopyFrom(from); return *this; } - inline ListPackagesResponse& operator=(ListPackagesResponse&& from) noexcept { + inline ListPackagesRequest& operator=(ListPackagesRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2190,180 +1830,216 @@ class ListPackagesResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ListPackagesResponse& default_instance() { + static const ListPackagesRequest& default_instance() { return *internal_default_instance(); } - static inline const ListPackagesResponse* internal_default_instance() { - return reinterpret_cast( - &_ListPackagesResponse_default_instance_); + static inline const ListPackagesRequest* internal_default_instance() { + return reinterpret_cast( + &_ListPackagesRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 10; + 9; - friend void swap(ListPackagesResponse& a, ListPackagesResponse& b) { + friend void swap(ListPackagesRequest& a, ListPackagesRequest& b) { a.Swap(&b); } - inline void Swap(ListPackagesResponse* other) { + inline void Swap(ListPackagesRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ListPackagesResponse* other) { + void UnsafeArenaSwap(ListPackagesRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ListPackagesResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ListPackagesResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ListPackagesResponse& from) { - ListPackagesResponse::MergeImpl(*this, from); + ListPackagesRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ListPackagesRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ListPackagesRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ListPackagesResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(ListPackagesRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.packages.v1.ListPackagesResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.packages.v1.ListPackagesRequest"; } protected: - explicit ListPackagesResponse(::google::protobuf::Arena* arena); - ListPackagesResponse(::google::protobuf::Arena* arena, const ListPackagesResponse& from); + explicit ListPackagesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kPackagesFieldNumber = 1, + kOrganizationIdFieldNumber = 1, + kNameFieldNumber = 2, + kVersionFieldNumber = 3, + kTypeFieldNumber = 4, + kIncludeUrlFieldNumber = 5, }; - // repeated .viam.app.packages.v1.Package packages = 1 [json_name = "packages"]; - int packages_size() const; + // string organization_id = 1 [json_name = "organizationId"]; + void clear_organization_id(); + const std::string& organization_id() const; + template + void set_organization_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_organization_id(); + PROTOBUF_NODISCARD std::string* release_organization_id(); + void set_allocated_organization_id(std::string* organization_id); private: - int _internal_packages_size() const; + const std::string& _internal_organization_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id(const std::string& value); + std::string* _internal_mutable_organization_id(); + public: + // optional string name = 2 [json_name = "name"]; + bool has_name() const; + private: + bool _internal_has_name() const; public: - void clear_packages() ; - ::viam::app::packages::v1::Package* mutable_packages(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::packages::v1::Package >* - mutable_packages(); + 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 ::google::protobuf::RepeatedPtrField<::viam::app::packages::v1::Package>& _internal_packages() const; - ::google::protobuf::RepeatedPtrField<::viam::app::packages::v1::Package>* _internal_mutable_packages(); + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); public: - const ::viam::app::packages::v1::Package& packages(int index) const; - ::viam::app::packages::v1::Package* add_packages(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::packages::v1::Package >& - packages() const; - // @@protoc_insertion_point(class_scope:viam.app.packages.v1.ListPackagesResponse) + + // optional string version = 3 [json_name = "version"]; + bool has_version() const; + private: + bool _internal_has_version() const; + public: + void clear_version(); + const std::string& version() const; + template + void set_version(ArgT0&& arg0, ArgT... args); + std::string* mutable_version(); + PROTOBUF_NODISCARD std::string* release_version(); + void set_allocated_version(std::string* version); + private: + const std::string& _internal_version() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_version(const std::string& value); + std::string* _internal_mutable_version(); + public: + + // optional .viam.app.packages.v1.PackageType type = 4 [json_name = "type"]; + bool has_type() const; + private: + bool _internal_has_type() const; + public: + void clear_type(); + ::viam::app::packages::v1::PackageType type() const; + void set_type(::viam::app::packages::v1::PackageType value); + private: + ::viam::app::packages::v1::PackageType _internal_type() const; + void _internal_set_type(::viam::app::packages::v1::PackageType value); + public: + + // optional bool include_url = 5 [json_name = "includeUrl"]; + bool has_include_url() const; + private: + bool _internal_has_include_url() const; + public: + void clear_include_url(); + bool include_url() const; + void set_include_url(bool value); + private: + bool _internal_include_url() const; + void _internal_set_include_url(bool value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.packages.v1.ListPackagesRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::app::packages::v1::Package > packages_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr organization_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr version_; + int type_; + bool include_url_; friend struct ::TableStruct_app_2fpackages_2fv1_2fpackages_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetPackageResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.packages.v1.GetPackageResponse) */ { +class ListPackagesResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.packages.v1.ListPackagesResponse) */ { public: - inline GetPackageResponse() : GetPackageResponse(nullptr) {} - ~GetPackageResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetPackageResponse(::google::protobuf::internal::ConstantInitialized); + inline ListPackagesResponse() : ListPackagesResponse(nullptr) {} + ~ListPackagesResponse() override; + explicit PROTOBUF_CONSTEXPR ListPackagesResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetPackageResponse(const GetPackageResponse& from) - : GetPackageResponse(nullptr, from) {} - GetPackageResponse(GetPackageResponse&& from) noexcept - : GetPackageResponse() { + ListPackagesResponse(const ListPackagesResponse& from); + ListPackagesResponse(ListPackagesResponse&& from) noexcept + : ListPackagesResponse() { *this = ::std::move(from); } - inline GetPackageResponse& operator=(const GetPackageResponse& from) { + inline ListPackagesResponse& operator=(const ListPackagesResponse& from) { CopyFrom(from); return *this; } - inline GetPackageResponse& operator=(GetPackageResponse&& from) noexcept { + inline ListPackagesResponse& operator=(ListPackagesResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2373,273 +2049,233 @@ class GetPackageResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetPackageResponse& default_instance() { + static const ListPackagesResponse& default_instance() { return *internal_default_instance(); } - static inline const GetPackageResponse* internal_default_instance() { - return reinterpret_cast( - &_GetPackageResponse_default_instance_); + static inline const ListPackagesResponse* internal_default_instance() { + return reinterpret_cast( + &_ListPackagesResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 8; + 10; - friend void swap(GetPackageResponse& a, GetPackageResponse& b) { + friend void swap(ListPackagesResponse& a, ListPackagesResponse& b) { a.Swap(&b); } - inline void Swap(GetPackageResponse* other) { + inline void Swap(ListPackagesResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetPackageResponse* other) { + void UnsafeArenaSwap(ListPackagesResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetPackageResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetPackageResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetPackageResponse& from) { - GetPackageResponse::MergeImpl(*this, from); + ListPackagesResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ListPackagesResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ListPackagesResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetPackageResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(ListPackagesResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.packages.v1.GetPackageResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.packages.v1.ListPackagesResponse"; } protected: - explicit GetPackageResponse(::google::protobuf::Arena* arena); - GetPackageResponse(::google::protobuf::Arena* arena, const GetPackageResponse& from); + explicit ListPackagesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kPackageFieldNumber = 1, + kPackagesFieldNumber = 1, }; - // .viam.app.packages.v1.Package package = 1 [json_name = "package"]; - bool has_package() const; - void clear_package() ; - const ::viam::app::packages::v1::Package& package() const; - PROTOBUF_NODISCARD ::viam::app::packages::v1::Package* release_package(); - ::viam::app::packages::v1::Package* mutable_package(); - void set_allocated_package(::viam::app::packages::v1::Package* value); - void unsafe_arena_set_allocated_package(::viam::app::packages::v1::Package* value); - ::viam::app::packages::v1::Package* unsafe_arena_release_package(); - + // repeated .viam.app.packages.v1.Package packages = 1 [json_name = "packages"]; + int packages_size() const; + private: + int _internal_packages_size() const; + public: + void clear_packages(); + ::viam::app::packages::v1::Package* mutable_packages(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::packages::v1::Package >* + mutable_packages(); private: - const ::viam::app::packages::v1::Package& _internal_package() const; - ::viam::app::packages::v1::Package* _internal_mutable_package(); - + const ::viam::app::packages::v1::Package& _internal_packages(int index) const; + ::viam::app::packages::v1::Package* _internal_add_packages(); public: - // @@protoc_insertion_point(class_scope:viam.app.packages.v1.GetPackageResponse) + const ::viam::app::packages::v1::Package& packages(int index) const; + ::viam::app::packages::v1::Package* add_packages(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::packages::v1::Package >& + packages() const; + + // @@protoc_insertion_point(class_scope:viam.app.packages.v1.ListPackagesResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::viam::app::packages::v1::Package* package_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::packages::v1::Package > packages_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fpackages_2fv1_2fpackages_2eproto; }; - // =================================================================== - - // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ -// ------------------------------------------------------------------- - // FileInfo // string name = 1 [json_name = "name"]; inline void FileInfo::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& FileInfo::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& FileInfo::name() const { // @@protoc_insertion_point(field_get:viam.app.packages.v1.FileInfo.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void FileInfo::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void FileInfo::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.packages.v1.FileInfo.name) } -inline std::string* FileInfo::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* FileInfo::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.app.packages.v1.FileInfo.name) return _s; } inline const std::string& FileInfo::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void FileInfo::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* FileInfo::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* FileInfo::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.packages.v1.FileInfo.name) - return _impl_.name_.Release(); -} -inline void FileInfo::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void FileInfo::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.app.packages.v1.FileInfo.name) } // uint64 size = 2 [json_name = "size"]; inline void FileInfo::clear_size() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.size_ = ::uint64_t{0u}; + size_ = uint64_t{0u}; } -inline ::uint64_t FileInfo::size() const { +inline uint64_t FileInfo::_internal_size() const { + return size_; +} +inline uint64_t FileInfo::size() const { // @@protoc_insertion_point(field_get:viam.app.packages.v1.FileInfo.size) return _internal_size(); } -inline void FileInfo::set_size(::uint64_t value) { +inline void FileInfo::_internal_set_size(uint64_t value) { + + size_ = value; +} +inline void FileInfo::set_size(uint64_t value) { _internal_set_size(value); // @@protoc_insertion_point(field_set:viam.app.packages.v1.FileInfo.size) } -inline ::uint64_t FileInfo::_internal_size() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.size_; -} -inline void FileInfo::_internal_set_size(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.size_ = value; -} // optional bool is_directory = 3 [json_name = "isDirectory"]; -inline bool FileInfo::has_is_directory() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; +inline bool FileInfo::_internal_has_is_directory() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; return value; } +inline bool FileInfo::has_is_directory() const { + return _internal_has_is_directory(); +} inline void FileInfo::clear_is_directory() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.is_directory_ = false; - _impl_._has_bits_[0] &= ~0x00000001u; + is_directory_ = false; + _has_bits_[0] &= ~0x00000001u; +} +inline bool FileInfo::_internal_is_directory() const { + return is_directory_; } inline bool FileInfo::is_directory() const { // @@protoc_insertion_point(field_get:viam.app.packages.v1.FileInfo.is_directory) return _internal_is_directory(); } +inline void FileInfo::_internal_set_is_directory(bool value) { + _has_bits_[0] |= 0x00000001u; + is_directory_ = value; +} inline void FileInfo::set_is_directory(bool value) { _internal_set_is_directory(value); // @@protoc_insertion_point(field_set:viam.app.packages.v1.FileInfo.is_directory) } -inline bool FileInfo::_internal_is_directory() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.is_directory_; -} -inline void FileInfo::_internal_set_is_directory(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.is_directory_ = value; -} // ------------------------------------------------------------------- @@ -2647,394 +2283,364 @@ inline void FileInfo::_internal_set_is_directory(bool value) { // string organization_id = 1 [json_name = "organizationId"]; inline void PackageInfo::clear_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.ClearToEmpty(); + organization_id_.ClearToEmpty(); } -inline const std::string& PackageInfo::organization_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& PackageInfo::organization_id() const { // @@protoc_insertion_point(field_get:viam.app.packages.v1.PackageInfo.organization_id) return _internal_organization_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void PackageInfo::set_organization_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void PackageInfo::set_organization_id(ArgT0&& arg0, ArgT... args) { + + organization_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.packages.v1.PackageInfo.organization_id) } -inline std::string* PackageInfo::mutable_organization_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* PackageInfo::mutable_organization_id() { std::string* _s = _internal_mutable_organization_id(); // @@protoc_insertion_point(field_mutable:viam.app.packages.v1.PackageInfo.organization_id) return _s; } inline const std::string& PackageInfo::_internal_organization_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.organization_id_.Get(); + return organization_id_.Get(); } inline void PackageInfo::_internal_set_organization_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(value, GetArena()); + + organization_id_.Set(value, GetArenaForAllocation()); } inline std::string* PackageInfo::_internal_mutable_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.organization_id_.Mutable( GetArena()); + + return organization_id_.Mutable(GetArenaForAllocation()); } inline std::string* PackageInfo::release_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.packages.v1.PackageInfo.organization_id) - return _impl_.organization_id_.Release(); -} -inline void PackageInfo::set_allocated_organization_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.organization_id_.IsDefault()) { - _impl_.organization_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return organization_id_.Release(); +} +inline void PackageInfo::set_allocated_organization_id(std::string* organization_id) { + if (organization_id != nullptr) { + + } else { + + } + organization_id_.SetAllocated(organization_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (organization_id_.IsDefault()) { + organization_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.packages.v1.PackageInfo.organization_id) } // string name = 2 [json_name = "name"]; inline void PackageInfo::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& PackageInfo::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& PackageInfo::name() const { // @@protoc_insertion_point(field_get:viam.app.packages.v1.PackageInfo.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void PackageInfo::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void PackageInfo::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.packages.v1.PackageInfo.name) } -inline std::string* PackageInfo::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* PackageInfo::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.app.packages.v1.PackageInfo.name) return _s; } inline const std::string& PackageInfo::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void PackageInfo::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* PackageInfo::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* PackageInfo::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.packages.v1.PackageInfo.name) - return _impl_.name_.Release(); -} -inline void PackageInfo::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void PackageInfo::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.app.packages.v1.PackageInfo.name) } // string version = 3 [json_name = "version"]; inline void PackageInfo::clear_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.version_.ClearToEmpty(); + version_.ClearToEmpty(); } -inline const std::string& PackageInfo::version() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& PackageInfo::version() const { // @@protoc_insertion_point(field_get:viam.app.packages.v1.PackageInfo.version) return _internal_version(); } -template -inline PROTOBUF_ALWAYS_INLINE void PackageInfo::set_version(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.version_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void PackageInfo::set_version(ArgT0&& arg0, ArgT... args) { + + version_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.packages.v1.PackageInfo.version) } -inline std::string* PackageInfo::mutable_version() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* PackageInfo::mutable_version() { std::string* _s = _internal_mutable_version(); // @@protoc_insertion_point(field_mutable:viam.app.packages.v1.PackageInfo.version) return _s; } inline const std::string& PackageInfo::_internal_version() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.version_.Get(); + return version_.Get(); } inline void PackageInfo::_internal_set_version(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.version_.Set(value, GetArena()); + + version_.Set(value, GetArenaForAllocation()); } inline std::string* PackageInfo::_internal_mutable_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.version_.Mutable( GetArena()); + + return version_.Mutable(GetArenaForAllocation()); } inline std::string* PackageInfo::release_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.packages.v1.PackageInfo.version) - return _impl_.version_.Release(); -} -inline void PackageInfo::set_allocated_version(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.version_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.version_.IsDefault()) { - _impl_.version_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return version_.Release(); +} +inline void PackageInfo::set_allocated_version(std::string* version) { + if (version != nullptr) { + + } else { + + } + version_.SetAllocated(version, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (version_.IsDefault()) { + version_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.packages.v1.PackageInfo.version) } // .viam.app.packages.v1.PackageType type = 4 [json_name = "type"]; inline void PackageInfo::clear_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_ = 0; + type_ = 0; +} +inline ::viam::app::packages::v1::PackageType PackageInfo::_internal_type() const { + return static_cast< ::viam::app::packages::v1::PackageType >(type_); } inline ::viam::app::packages::v1::PackageType PackageInfo::type() const { // @@protoc_insertion_point(field_get:viam.app.packages.v1.PackageInfo.type) return _internal_type(); } +inline void PackageInfo::_internal_set_type(::viam::app::packages::v1::PackageType value) { + + type_ = value; +} inline void PackageInfo::set_type(::viam::app::packages::v1::PackageType value) { _internal_set_type(value); // @@protoc_insertion_point(field_set:viam.app.packages.v1.PackageInfo.type) } -inline ::viam::app::packages::v1::PackageType PackageInfo::_internal_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::viam::app::packages::v1::PackageType>(_impl_.type_); -} -inline void PackageInfo::_internal_set_type(::viam::app::packages::v1::PackageType value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.type_ = value; -} // optional string platform = 7 [json_name = "platform"]; -inline bool PackageInfo::has_platform() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; +inline bool PackageInfo::_internal_has_platform() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; return value; } +inline bool PackageInfo::has_platform() const { + return _internal_has_platform(); +} inline void PackageInfo::clear_platform() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.platform_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000001u; + platform_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; } -inline const std::string& PackageInfo::platform() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& PackageInfo::platform() const { // @@protoc_insertion_point(field_get:viam.app.packages.v1.PackageInfo.platform) return _internal_platform(); } -template -inline PROTOBUF_ALWAYS_INLINE void PackageInfo::set_platform(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.platform_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void PackageInfo::set_platform(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + platform_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.packages.v1.PackageInfo.platform) } -inline std::string* PackageInfo::mutable_platform() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* PackageInfo::mutable_platform() { std::string* _s = _internal_mutable_platform(); // @@protoc_insertion_point(field_mutable:viam.app.packages.v1.PackageInfo.platform) return _s; } inline const std::string& PackageInfo::_internal_platform() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.platform_.Get(); + return platform_.Get(); } inline void PackageInfo::_internal_set_platform(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.platform_.Set(value, GetArena()); + _has_bits_[0] |= 0x00000001u; + platform_.Set(value, GetArenaForAllocation()); } inline std::string* PackageInfo::_internal_mutable_platform() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.platform_.Mutable( GetArena()); + _has_bits_[0] |= 0x00000001u; + return platform_.Mutable(GetArenaForAllocation()); } inline std::string* PackageInfo::release_platform() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.packages.v1.PackageInfo.platform) - if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + if (!_internal_has_platform()) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000001u; - auto* released = _impl_.platform_.Release(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.platform_.Set("", GetArena()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return released; -} -inline void PackageInfo::set_allocated_platform(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + _has_bits_[0] &= ~0x00000001u; + auto* p = platform_.Release(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (platform_.IsDefault()) { + platform_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; +} +inline void PackageInfo::set_allocated_platform(std::string* platform) { + if (platform != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - _impl_.platform_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.platform_.IsDefault()) { - _impl_.platform_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _has_bits_[0] &= ~0x00000001u; + } + platform_.SetAllocated(platform, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (platform_.IsDefault()) { + platform_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.packages.v1.PackageInfo.platform) } // repeated .viam.app.packages.v1.FileInfo files = 5 [json_name = "files"]; inline int PackageInfo::_internal_files_size() const { - return _internal_files().size(); + return files_.size(); } inline int PackageInfo::files_size() const { return _internal_files_size(); } inline void PackageInfo::clear_files() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.files_.Clear(); + files_.Clear(); } -inline ::viam::app::packages::v1::FileInfo* PackageInfo::mutable_files(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::app::packages::v1::FileInfo* PackageInfo::mutable_files(int index) { // @@protoc_insertion_point(field_mutable:viam.app.packages.v1.PackageInfo.files) - return _internal_mutable_files()->Mutable(index); + return files_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::app::packages::v1::FileInfo>* PackageInfo::mutable_files() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::packages::v1::FileInfo >* +PackageInfo::mutable_files() { // @@protoc_insertion_point(field_mutable_list:viam.app.packages.v1.PackageInfo.files) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_files(); + return &files_; } -inline const ::viam::app::packages::v1::FileInfo& PackageInfo::files(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::app::packages::v1::FileInfo& PackageInfo::_internal_files(int index) const { + return files_.Get(index); +} +inline const ::viam::app::packages::v1::FileInfo& PackageInfo::files(int index) const { // @@protoc_insertion_point(field_get:viam.app.packages.v1.PackageInfo.files) - return _internal_files().Get(index); + return _internal_files(index); +} +inline ::viam::app::packages::v1::FileInfo* PackageInfo::_internal_add_files() { + return files_.Add(); } -inline ::viam::app::packages::v1::FileInfo* PackageInfo::add_files() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::packages::v1::FileInfo* _add = _internal_mutable_files()->Add(); +inline ::viam::app::packages::v1::FileInfo* PackageInfo::add_files() { + ::viam::app::packages::v1::FileInfo* _add = _internal_add_files(); // @@protoc_insertion_point(field_add:viam.app.packages.v1.PackageInfo.files) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::packages::v1::FileInfo>& PackageInfo::files() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::packages::v1::FileInfo >& +PackageInfo::files() const { // @@protoc_insertion_point(field_list:viam.app.packages.v1.PackageInfo.files) - return _internal_files(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::app::packages::v1::FileInfo>& -PackageInfo::_internal_files() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.files_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::app::packages::v1::FileInfo>* -PackageInfo::_internal_mutable_files() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.files_; + return files_; } // .google.protobuf.Struct metadata = 6 [json_name = "metadata"]; +inline bool PackageInfo::_internal_has_metadata() const { + return this != internal_default_instance() && metadata_ != nullptr; +} inline bool PackageInfo::has_metadata() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.metadata_ != nullptr); - return value; + return _internal_has_metadata(); } -inline const ::google::protobuf::Struct& PackageInfo::_internal_metadata() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.metadata_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& PackageInfo::_internal_metadata() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = metadata_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& PackageInfo::metadata() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& PackageInfo::metadata() const { // @@protoc_insertion_point(field_get:viam.app.packages.v1.PackageInfo.metadata) return _internal_metadata(); } -inline void PackageInfo::unsafe_arena_set_allocated_metadata(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.metadata_); +inline void PackageInfo::unsafe_arena_set_allocated_metadata( + ::PROTOBUF_NAMESPACE_ID::Struct* metadata) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(metadata_); } - _impl_.metadata_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + metadata_ = metadata; + if (metadata) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.packages.v1.PackageInfo.metadata) } -inline ::google::protobuf::Struct* PackageInfo::release_metadata() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Struct* released = _impl_.metadata_; - _impl_.metadata_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* PackageInfo::release_metadata() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = metadata_; + metadata_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* PackageInfo::unsafe_arena_release_metadata() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* PackageInfo::unsafe_arena_release_metadata() { // @@protoc_insertion_point(field_release:viam.app.packages.v1.PackageInfo.metadata) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Struct* temp = _impl_.metadata_; - _impl_.metadata_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = metadata_; + metadata_ = nullptr; return temp; } -inline ::google::protobuf::Struct* PackageInfo::_internal_mutable_metadata() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.metadata_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.metadata_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* PackageInfo::_internal_mutable_metadata() { + + if (metadata_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + metadata_ = p; } - return _impl_.metadata_; + return metadata_; } -inline ::google::protobuf::Struct* PackageInfo::mutable_metadata() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_metadata(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* PackageInfo::mutable_metadata() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_metadata(); // @@protoc_insertion_point(field_mutable:viam.app.packages.v1.PackageInfo.metadata) return _msg; } -inline void PackageInfo::set_allocated_metadata(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void PackageInfo::set_allocated_metadata(::PROTOBUF_NAMESPACE_ID::Struct* metadata) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.metadata_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(metadata_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (metadata) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(metadata)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + metadata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, metadata, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.metadata_ = reinterpret_cast<::google::protobuf::Struct*>(value); + metadata_ = metadata; // @@protoc_insertion_point(field_set_allocated:viam.app.packages.v1.PackageInfo.metadata) } @@ -3043,162 +2649,152 @@ inline void PackageInfo::set_allocated_metadata(::google::protobuf::Struct* valu // CreatePackageRequest // .viam.app.packages.v1.PackageInfo info = 1 [json_name = "info"]; -inline bool CreatePackageRequest::has_info() const { - return package_case() == kInfo; -} inline bool CreatePackageRequest::_internal_has_info() const { return package_case() == kInfo; } +inline bool CreatePackageRequest::has_info() const { + return _internal_has_info(); +} inline void CreatePackageRequest::set_has_info() { - _impl_._oneof_case_[0] = kInfo; + _oneof_case_[0] = kInfo; } inline void CreatePackageRequest::clear_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (package_case() == kInfo) { - if (GetArena() == nullptr) { - delete _impl_.package_.info_; + if (_internal_has_info()) { + if (GetArenaForAllocation() == nullptr) { + delete package_.info_; } clear_has_package(); } } inline ::viam::app::packages::v1::PackageInfo* CreatePackageRequest::release_info() { // @@protoc_insertion_point(field_release:viam.app.packages.v1.CreatePackageRequest.info) - if (package_case() == kInfo) { + if (_internal_has_info()) { clear_has_package(); - auto* temp = _impl_.package_.info_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::viam::app::packages::v1::PackageInfo* temp = package_.info_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.package_.info_ = nullptr; + package_.info_ = nullptr; return temp; } else { return nullptr; } } inline const ::viam::app::packages::v1::PackageInfo& CreatePackageRequest::_internal_info() const { - return package_case() == kInfo ? *_impl_.package_.info_ : reinterpret_cast<::viam::app::packages::v1::PackageInfo&>(::viam::app::packages::v1::_PackageInfo_default_instance_); + return _internal_has_info() + ? *package_.info_ + : reinterpret_cast< ::viam::app::packages::v1::PackageInfo&>(::viam::app::packages::v1::_PackageInfo_default_instance_); } -inline const ::viam::app::packages::v1::PackageInfo& CreatePackageRequest::info() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::app::packages::v1::PackageInfo& CreatePackageRequest::info() const { // @@protoc_insertion_point(field_get:viam.app.packages.v1.CreatePackageRequest.info) return _internal_info(); } inline ::viam::app::packages::v1::PackageInfo* CreatePackageRequest::unsafe_arena_release_info() { // @@protoc_insertion_point(field_unsafe_arena_release:viam.app.packages.v1.CreatePackageRequest.info) - if (package_case() == kInfo) { + if (_internal_has_info()) { clear_has_package(); - auto* temp = _impl_.package_.info_; - _impl_.package_.info_ = nullptr; + ::viam::app::packages::v1::PackageInfo* temp = package_.info_; + package_.info_ = nullptr; return temp; } else { return nullptr; } } -inline void CreatePackageRequest::unsafe_arena_set_allocated_info(::viam::app::packages::v1::PackageInfo* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void CreatePackageRequest::unsafe_arena_set_allocated_info(::viam::app::packages::v1::PackageInfo* info) { clear_package(); - if (value) { + if (info) { set_has_info(); - _impl_.package_.info_ = value; + package_.info_ = info; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.packages.v1.CreatePackageRequest.info) } inline ::viam::app::packages::v1::PackageInfo* CreatePackageRequest::_internal_mutable_info() { - if (package_case() != kInfo) { + if (!_internal_has_info()) { clear_package(); set_has_info(); - _impl_.package_.info_ = CreateMaybeMessage<::viam::app::packages::v1::PackageInfo>(GetArena()); + package_.info_ = CreateMaybeMessage< ::viam::app::packages::v1::PackageInfo >(GetArenaForAllocation()); } - return _impl_.package_.info_; + return package_.info_; } -inline ::viam::app::packages::v1::PackageInfo* CreatePackageRequest::mutable_info() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::app::packages::v1::PackageInfo* CreatePackageRequest::mutable_info() { ::viam::app::packages::v1::PackageInfo* _msg = _internal_mutable_info(); // @@protoc_insertion_point(field_mutable:viam.app.packages.v1.CreatePackageRequest.info) return _msg; } // bytes contents = 2 [json_name = "contents"]; -inline bool CreatePackageRequest::has_contents() const { +inline bool CreatePackageRequest::_internal_has_contents() const { return package_case() == kContents; } +inline bool CreatePackageRequest::has_contents() const { + return _internal_has_contents(); +} inline void CreatePackageRequest::set_has_contents() { - _impl_._oneof_case_[0] = kContents; + _oneof_case_[0] = kContents; } inline void CreatePackageRequest::clear_contents() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (package_case() == kContents) { - _impl_.package_.contents_.Destroy(); + if (_internal_has_contents()) { + package_.contents_.Destroy(); clear_has_package(); } } -inline const std::string& CreatePackageRequest::contents() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& CreatePackageRequest::contents() const { // @@protoc_insertion_point(field_get:viam.app.packages.v1.CreatePackageRequest.contents) return _internal_contents(); } -template -inline PROTOBUF_ALWAYS_INLINE void CreatePackageRequest::set_contents(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (package_case() != kContents) { +template +inline void CreatePackageRequest::set_contents(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_contents()) { clear_package(); - set_has_contents(); - _impl_.package_.contents_.InitDefault(); + package_.contents_.InitDefault(); } - _impl_.package_.contents_.SetBytes(static_cast(arg), args..., GetArena()); + package_.contents_.SetBytes( static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.packages.v1.CreatePackageRequest.contents) } -inline std::string* CreatePackageRequest::mutable_contents() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* CreatePackageRequest::mutable_contents() { std::string* _s = _internal_mutable_contents(); // @@protoc_insertion_point(field_mutable:viam.app.packages.v1.CreatePackageRequest.contents) return _s; } inline const std::string& CreatePackageRequest::_internal_contents() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - if (package_case() != kContents) { - return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); + if (_internal_has_contents()) { + return package_.contents_.Get(); } - return _impl_.package_.contents_.Get(); + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } inline void CreatePackageRequest::_internal_set_contents(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (package_case() != kContents) { + if (!_internal_has_contents()) { clear_package(); - set_has_contents(); - _impl_.package_.contents_.InitDefault(); + package_.contents_.InitDefault(); } - _impl_.package_.contents_.Set(value, GetArena()); + package_.contents_.Set(value, GetArenaForAllocation()); } inline std::string* CreatePackageRequest::_internal_mutable_contents() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (package_case() != kContents) { + if (!_internal_has_contents()) { clear_package(); - set_has_contents(); - _impl_.package_.contents_.InitDefault(); + package_.contents_.InitDefault(); } - return _impl_.package_.contents_.Mutable( GetArena()); + return package_.contents_.Mutable( GetArenaForAllocation()); } inline std::string* CreatePackageRequest::release_contents() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.packages.v1.CreatePackageRequest.contents) - if (package_case() != kContents) { + if (_internal_has_contents()) { + clear_has_package(); + return package_.contents_.Release(); + } else { return nullptr; } - clear_has_package(); - return _impl_.package_.contents_.Release(); } -inline void CreatePackageRequest::set_allocated_contents(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void CreatePackageRequest::set_allocated_contents(std::string* contents) { if (has_package()) { clear_package(); } - if (value != nullptr) { + if (contents != nullptr) { set_has_contents(); - _impl_.package_.contents_.InitAllocated(value, GetArena()); + package_.contents_.InitAllocated(contents, GetArenaForAllocation()); } // @@protoc_insertion_point(field_set_allocated:viam.app.packages.v1.CreatePackageRequest.contents) } @@ -3207,10 +2803,10 @@ inline bool CreatePackageRequest::has_package() const { return package_case() != PACKAGE_NOT_SET; } inline void CreatePackageRequest::clear_has_package() { - _impl_._oneof_case_[0] = PACKAGE_NOT_SET; + _oneof_case_[0] = PACKAGE_NOT_SET; } inline CreatePackageRequest::PackageCase CreatePackageRequest::package_case() const { - return CreatePackageRequest::PackageCase(_impl_._oneof_case_[0]); + return CreatePackageRequest::PackageCase(_oneof_case_[0]); } // ------------------------------------------------------------------- @@ -3218,107 +2814,101 @@ inline CreatePackageRequest::PackageCase CreatePackageRequest::package_case() co // string id = 1 [json_name = "id"]; inline void CreatePackageResponse::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); + id_.ClearToEmpty(); } -inline const std::string& CreatePackageResponse::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& CreatePackageResponse::id() const { // @@protoc_insertion_point(field_get:viam.app.packages.v1.CreatePackageResponse.id) return _internal_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void CreatePackageResponse::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void CreatePackageResponse::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.packages.v1.CreatePackageResponse.id) } -inline std::string* CreatePackageResponse::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* CreatePackageResponse::mutable_id() { std::string* _s = _internal_mutable_id(); // @@protoc_insertion_point(field_mutable:viam.app.packages.v1.CreatePackageResponse.id) return _s; } inline const std::string& CreatePackageResponse::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); + return id_.Get(); } inline void CreatePackageResponse::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); + + id_.Set(value, GetArenaForAllocation()); } inline std::string* CreatePackageResponse::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); + + return id_.Mutable(GetArenaForAllocation()); } inline std::string* CreatePackageResponse::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.packages.v1.CreatePackageResponse.id) - return _impl_.id_.Release(); -} -inline void CreatePackageResponse::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return id_.Release(); +} +inline void CreatePackageResponse::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.packages.v1.CreatePackageResponse.id) } // string version = 2 [json_name = "version"]; inline void CreatePackageResponse::clear_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.version_.ClearToEmpty(); + version_.ClearToEmpty(); } -inline const std::string& CreatePackageResponse::version() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& CreatePackageResponse::version() const { // @@protoc_insertion_point(field_get:viam.app.packages.v1.CreatePackageResponse.version) return _internal_version(); } -template -inline PROTOBUF_ALWAYS_INLINE void CreatePackageResponse::set_version(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.version_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void CreatePackageResponse::set_version(ArgT0&& arg0, ArgT... args) { + + version_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.packages.v1.CreatePackageResponse.version) } -inline std::string* CreatePackageResponse::mutable_version() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* CreatePackageResponse::mutable_version() { std::string* _s = _internal_mutable_version(); // @@protoc_insertion_point(field_mutable:viam.app.packages.v1.CreatePackageResponse.version) return _s; } inline const std::string& CreatePackageResponse::_internal_version() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.version_.Get(); + return version_.Get(); } inline void CreatePackageResponse::_internal_set_version(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.version_.Set(value, GetArena()); + + version_.Set(value, GetArenaForAllocation()); } inline std::string* CreatePackageResponse::_internal_mutable_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.version_.Mutable( GetArena()); + + return version_.Mutable(GetArenaForAllocation()); } inline std::string* CreatePackageResponse::release_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.packages.v1.CreatePackageResponse.version) - return _impl_.version_.Release(); -} -inline void CreatePackageResponse::set_allocated_version(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.version_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.version_.IsDefault()) { - _impl_.version_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return version_.Release(); +} +inline void CreatePackageResponse::set_allocated_version(std::string* version) { + if (version != nullptr) { + + } else { + + } + version_.SetAllocated(version, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (version_.IsDefault()) { + version_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.packages.v1.CreatePackageResponse.version) } @@ -3328,132 +2918,123 @@ inline void CreatePackageResponse::set_allocated_version(std::string* value) { // string id = 1 [json_name = "id"]; inline void DeletePackageRequest::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); + id_.ClearToEmpty(); } -inline const std::string& DeletePackageRequest::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& DeletePackageRequest::id() const { // @@protoc_insertion_point(field_get:viam.app.packages.v1.DeletePackageRequest.id) return _internal_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void DeletePackageRequest::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void DeletePackageRequest::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.packages.v1.DeletePackageRequest.id) } -inline std::string* DeletePackageRequest::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* DeletePackageRequest::mutable_id() { std::string* _s = _internal_mutable_id(); // @@protoc_insertion_point(field_mutable:viam.app.packages.v1.DeletePackageRequest.id) return _s; } inline const std::string& DeletePackageRequest::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); + return id_.Get(); } inline void DeletePackageRequest::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); + + id_.Set(value, GetArenaForAllocation()); } inline std::string* DeletePackageRequest::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); + + return id_.Mutable(GetArenaForAllocation()); } inline std::string* DeletePackageRequest::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.packages.v1.DeletePackageRequest.id) - return _impl_.id_.Release(); -} -inline void DeletePackageRequest::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return id_.Release(); +} +inline void DeletePackageRequest::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.packages.v1.DeletePackageRequest.id) } // string version = 2 [json_name = "version"]; inline void DeletePackageRequest::clear_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.version_.ClearToEmpty(); + version_.ClearToEmpty(); } -inline const std::string& DeletePackageRequest::version() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& DeletePackageRequest::version() const { // @@protoc_insertion_point(field_get:viam.app.packages.v1.DeletePackageRequest.version) return _internal_version(); } -template -inline PROTOBUF_ALWAYS_INLINE void DeletePackageRequest::set_version(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.version_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void DeletePackageRequest::set_version(ArgT0&& arg0, ArgT... args) { + + version_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.packages.v1.DeletePackageRequest.version) } -inline std::string* DeletePackageRequest::mutable_version() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* DeletePackageRequest::mutable_version() { std::string* _s = _internal_mutable_version(); // @@protoc_insertion_point(field_mutable:viam.app.packages.v1.DeletePackageRequest.version) return _s; } inline const std::string& DeletePackageRequest::_internal_version() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.version_.Get(); + return version_.Get(); } inline void DeletePackageRequest::_internal_set_version(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.version_.Set(value, GetArena()); + + version_.Set(value, GetArenaForAllocation()); } inline std::string* DeletePackageRequest::_internal_mutable_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.version_.Mutable( GetArena()); + + return version_.Mutable(GetArenaForAllocation()); } inline std::string* DeletePackageRequest::release_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.packages.v1.DeletePackageRequest.version) - return _impl_.version_.Release(); -} -inline void DeletePackageRequest::set_allocated_version(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.version_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.version_.IsDefault()) { - _impl_.version_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return version_.Release(); +} +inline void DeletePackageRequest::set_allocated_version(std::string* version) { + if (version != nullptr) { + + } else { + + } + version_.SetAllocated(version, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (version_.IsDefault()) { + version_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.packages.v1.DeletePackageRequest.version) } // .viam.app.packages.v1.PackageType type = 3 [json_name = "type"]; inline void DeletePackageRequest::clear_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_ = 0; + type_ = 0; +} +inline ::viam::app::packages::v1::PackageType DeletePackageRequest::_internal_type() const { + return static_cast< ::viam::app::packages::v1::PackageType >(type_); } inline ::viam::app::packages::v1::PackageType DeletePackageRequest::type() const { // @@protoc_insertion_point(field_get:viam.app.packages.v1.DeletePackageRequest.type) return _internal_type(); } +inline void DeletePackageRequest::_internal_set_type(::viam::app::packages::v1::PackageType value) { + + type_ = value; +} inline void DeletePackageRequest::set_type(::viam::app::packages::v1::PackageType value) { _internal_set_type(value); // @@protoc_insertion_point(field_set:viam.app.packages.v1.DeletePackageRequest.type) } -inline ::viam::app::packages::v1::PackageType DeletePackageRequest::_internal_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::viam::app::packages::v1::PackageType>(_impl_.type_); -} -inline void DeletePackageRequest::_internal_set_type(::viam::app::packages::v1::PackageType value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.type_ = value; -} // ------------------------------------------------------------------- @@ -3464,348 +3045,327 @@ inline void DeletePackageRequest::_internal_set_type(::viam::app::packages::v1:: // Package // .viam.app.packages.v1.PackageInfo info = 1 [json_name = "info"]; +inline bool Package::_internal_has_info() const { + return this != internal_default_instance() && info_ != nullptr; +} inline bool Package::has_info() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.info_ != nullptr); - return value; + return _internal_has_info(); } inline void Package::clear_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.info_ != nullptr) _impl_.info_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && info_ != nullptr) { + delete info_; + } + info_ = nullptr; } inline const ::viam::app::packages::v1::PackageInfo& Package::_internal_info() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::packages::v1::PackageInfo* p = _impl_.info_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::packages::v1::_PackageInfo_default_instance_); + const ::viam::app::packages::v1::PackageInfo* p = info_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::packages::v1::_PackageInfo_default_instance_); } -inline const ::viam::app::packages::v1::PackageInfo& Package::info() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::app::packages::v1::PackageInfo& Package::info() const { // @@protoc_insertion_point(field_get:viam.app.packages.v1.Package.info) return _internal_info(); } -inline void Package::unsafe_arena_set_allocated_info(::viam::app::packages::v1::PackageInfo* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.info_); +inline void Package::unsafe_arena_set_allocated_info( + ::viam::app::packages::v1::PackageInfo* info) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(info_); } - _impl_.info_ = reinterpret_cast<::viam::app::packages::v1::PackageInfo*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + info_ = info; + if (info) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.packages.v1.Package.info) } inline ::viam::app::packages::v1::PackageInfo* Package::release_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::packages::v1::PackageInfo* released = _impl_.info_; - _impl_.info_ = nullptr; + + ::viam::app::packages::v1::PackageInfo* temp = info_; + info_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::app::packages::v1::PackageInfo* Package::unsafe_arena_release_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.packages.v1.Package.info) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::packages::v1::PackageInfo* temp = _impl_.info_; - _impl_.info_ = nullptr; + + ::viam::app::packages::v1::PackageInfo* temp = info_; + info_ = nullptr; return temp; } inline ::viam::app::packages::v1::PackageInfo* Package::_internal_mutable_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.info_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::packages::v1::PackageInfo>(GetArena()); - _impl_.info_ = reinterpret_cast<::viam::app::packages::v1::PackageInfo*>(p); + + if (info_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::packages::v1::PackageInfo>(GetArenaForAllocation()); + info_ = p; } - return _impl_.info_; + return info_; } -inline ::viam::app::packages::v1::PackageInfo* Package::mutable_info() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::app::packages::v1::PackageInfo* Package::mutable_info() { ::viam::app::packages::v1::PackageInfo* _msg = _internal_mutable_info(); // @@protoc_insertion_point(field_mutable:viam.app.packages.v1.Package.info) return _msg; } -inline void Package::set_allocated_info(::viam::app::packages::v1::PackageInfo* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Package::set_allocated_info(::viam::app::packages::v1::PackageInfo* info) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::packages::v1::PackageInfo*>(_impl_.info_); + delete info_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::packages::v1::PackageInfo*>(value)->GetArena(); + if (info) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(info); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, info, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.info_ = reinterpret_cast<::viam::app::packages::v1::PackageInfo*>(value); + info_ = info; // @@protoc_insertion_point(field_set_allocated:viam.app.packages.v1.Package.info) } // string url = 2 [json_name = "url"]; inline void Package::clear_url() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.url_.ClearToEmpty(); + url_.ClearToEmpty(); } -inline const std::string& Package::url() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Package::url() const { // @@protoc_insertion_point(field_get:viam.app.packages.v1.Package.url) return _internal_url(); } -template -inline PROTOBUF_ALWAYS_INLINE void Package::set_url(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.url_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Package::set_url(ArgT0&& arg0, ArgT... args) { + + url_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.packages.v1.Package.url) } -inline std::string* Package::mutable_url() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Package::mutable_url() { std::string* _s = _internal_mutable_url(); // @@protoc_insertion_point(field_mutable:viam.app.packages.v1.Package.url) return _s; } inline const std::string& Package::_internal_url() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.url_.Get(); + return url_.Get(); } inline void Package::_internal_set_url(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.url_.Set(value, GetArena()); + + url_.Set(value, GetArenaForAllocation()); } inline std::string* Package::_internal_mutable_url() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.url_.Mutable( GetArena()); + + return url_.Mutable(GetArenaForAllocation()); } inline std::string* Package::release_url() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.packages.v1.Package.url) - return _impl_.url_.Release(); -} -inline void Package::set_allocated_url(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.url_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.url_.IsDefault()) { - _impl_.url_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return url_.Release(); +} +inline void Package::set_allocated_url(std::string* url) { + if (url != nullptr) { + + } else { + + } + url_.SetAllocated(url, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (url_.IsDefault()) { + url_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.packages.v1.Package.url) } // .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn"]; +inline bool Package::_internal_has_created_on() const { + return this != internal_default_instance() && created_on_ != nullptr; +} inline bool Package::has_created_on() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.created_on_ != nullptr); - return value; + return _internal_has_created_on(); } -inline const ::google::protobuf::Timestamp& Package::_internal_created_on() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Timestamp* p = _impl_.created_on_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& Package::_internal_created_on() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = created_on_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); } -inline const ::google::protobuf::Timestamp& Package::created_on() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& Package::created_on() const { // @@protoc_insertion_point(field_get:viam.app.packages.v1.Package.created_on) return _internal_created_on(); } -inline void Package::unsafe_arena_set_allocated_created_on(::google::protobuf::Timestamp* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.created_on_); +inline void Package::unsafe_arena_set_allocated_created_on( + ::PROTOBUF_NAMESPACE_ID::Timestamp* created_on) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(created_on_); } - _impl_.created_on_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + created_on_ = created_on; + if (created_on) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.packages.v1.Package.created_on) } -inline ::google::protobuf::Timestamp* Package::release_created_on() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Timestamp* released = _impl_.created_on_; - _impl_.created_on_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Package::release_created_on() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = created_on_; + created_on_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Timestamp* Package::unsafe_arena_release_created_on() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Package::unsafe_arena_release_created_on() { // @@protoc_insertion_point(field_release:viam.app.packages.v1.Package.created_on) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Timestamp* temp = _impl_.created_on_; - _impl_.created_on_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = created_on_; + created_on_ = nullptr; return temp; } -inline ::google::protobuf::Timestamp* Package::_internal_mutable_created_on() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.created_on_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena()); - _impl_.created_on_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Package::_internal_mutable_created_on() { + + if (created_on_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + created_on_ = p; } - return _impl_.created_on_; + return created_on_; } -inline ::google::protobuf::Timestamp* Package::mutable_created_on() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Timestamp* _msg = _internal_mutable_created_on(); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Package::mutable_created_on() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_created_on(); // @@protoc_insertion_point(field_mutable:viam.app.packages.v1.Package.created_on) return _msg; } -inline void Package::set_allocated_created_on(::google::protobuf::Timestamp* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Package::set_allocated_created_on(::PROTOBUF_NAMESPACE_ID::Timestamp* created_on) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.created_on_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(created_on_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (created_on) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(created_on)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + created_on = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, created_on, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.created_on_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); + created_on_ = created_on; // @@protoc_insertion_point(field_set_allocated:viam.app.packages.v1.Package.created_on) } // string checksum = 4 [json_name = "checksum"]; inline void Package::clear_checksum() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.checksum_.ClearToEmpty(); + checksum_.ClearToEmpty(); } -inline const std::string& Package::checksum() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Package::checksum() const { // @@protoc_insertion_point(field_get:viam.app.packages.v1.Package.checksum) return _internal_checksum(); } -template -inline PROTOBUF_ALWAYS_INLINE void Package::set_checksum(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.checksum_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Package::set_checksum(ArgT0&& arg0, ArgT... args) { + + checksum_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.packages.v1.Package.checksum) } -inline std::string* Package::mutable_checksum() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Package::mutable_checksum() { std::string* _s = _internal_mutable_checksum(); // @@protoc_insertion_point(field_mutable:viam.app.packages.v1.Package.checksum) return _s; } inline const std::string& Package::_internal_checksum() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.checksum_.Get(); + return checksum_.Get(); } inline void Package::_internal_set_checksum(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.checksum_.Set(value, GetArena()); + + checksum_.Set(value, GetArenaForAllocation()); } inline std::string* Package::_internal_mutable_checksum() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.checksum_.Mutable( GetArena()); + + return checksum_.Mutable(GetArenaForAllocation()); } inline std::string* Package::release_checksum() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.packages.v1.Package.checksum) - return _impl_.checksum_.Release(); -} -inline void Package::set_allocated_checksum(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.checksum_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.checksum_.IsDefault()) { - _impl_.checksum_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return checksum_.Release(); +} +inline void Package::set_allocated_checksum(std::string* checksum) { + if (checksum != nullptr) { + + } else { + + } + checksum_.SetAllocated(checksum, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (checksum_.IsDefault()) { + checksum_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.packages.v1.Package.checksum) } // string id = 5 [json_name = "id"]; inline void Package::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); + id_.ClearToEmpty(); } -inline const std::string& Package::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Package::id() const { // @@protoc_insertion_point(field_get:viam.app.packages.v1.Package.id) return _internal_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void Package::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Package::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.packages.v1.Package.id) } -inline std::string* Package::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Package::mutable_id() { std::string* _s = _internal_mutable_id(); // @@protoc_insertion_point(field_mutable:viam.app.packages.v1.Package.id) return _s; } inline const std::string& Package::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); + return id_.Get(); } inline void Package::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); + + id_.Set(value, GetArenaForAllocation()); } inline std::string* Package::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); + + return id_.Mutable(GetArenaForAllocation()); } inline std::string* Package::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.packages.v1.Package.id) - return _impl_.id_.Release(); -} -inline void Package::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return id_.Release(); +} +inline void Package::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.packages.v1.Package.id) } @@ -3815,234 +3375,225 @@ inline void Package::set_allocated_id(std::string* value) { // string id = 1 [json_name = "id"]; inline void GetPackageRequest::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); + id_.ClearToEmpty(); } -inline const std::string& GetPackageRequest::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetPackageRequest::id() const { // @@protoc_insertion_point(field_get:viam.app.packages.v1.GetPackageRequest.id) return _internal_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetPackageRequest::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetPackageRequest::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.packages.v1.GetPackageRequest.id) } -inline std::string* GetPackageRequest::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetPackageRequest::mutable_id() { std::string* _s = _internal_mutable_id(); // @@protoc_insertion_point(field_mutable:viam.app.packages.v1.GetPackageRequest.id) return _s; } inline const std::string& GetPackageRequest::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); + return id_.Get(); } inline void GetPackageRequest::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); + + id_.Set(value, GetArenaForAllocation()); } inline std::string* GetPackageRequest::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); + + return id_.Mutable(GetArenaForAllocation()); } inline std::string* GetPackageRequest::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.packages.v1.GetPackageRequest.id) - return _impl_.id_.Release(); -} -inline void GetPackageRequest::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return id_.Release(); +} +inline void GetPackageRequest::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.packages.v1.GetPackageRequest.id) } // string version = 2 [json_name = "version"]; inline void GetPackageRequest::clear_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.version_.ClearToEmpty(); + version_.ClearToEmpty(); } -inline const std::string& GetPackageRequest::version() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetPackageRequest::version() const { // @@protoc_insertion_point(field_get:viam.app.packages.v1.GetPackageRequest.version) return _internal_version(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetPackageRequest::set_version(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.version_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetPackageRequest::set_version(ArgT0&& arg0, ArgT... args) { + + version_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.packages.v1.GetPackageRequest.version) } -inline std::string* GetPackageRequest::mutable_version() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetPackageRequest::mutable_version() { std::string* _s = _internal_mutable_version(); // @@protoc_insertion_point(field_mutable:viam.app.packages.v1.GetPackageRequest.version) return _s; } inline const std::string& GetPackageRequest::_internal_version() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.version_.Get(); + return version_.Get(); } inline void GetPackageRequest::_internal_set_version(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.version_.Set(value, GetArena()); + + version_.Set(value, GetArenaForAllocation()); } inline std::string* GetPackageRequest::_internal_mutable_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.version_.Mutable( GetArena()); + + return version_.Mutable(GetArenaForAllocation()); } inline std::string* GetPackageRequest::release_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.packages.v1.GetPackageRequest.version) - return _impl_.version_.Release(); -} -inline void GetPackageRequest::set_allocated_version(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.version_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.version_.IsDefault()) { - _impl_.version_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return version_.Release(); +} +inline void GetPackageRequest::set_allocated_version(std::string* version) { + if (version != nullptr) { + + } else { + + } + version_.SetAllocated(version, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (version_.IsDefault()) { + version_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.packages.v1.GetPackageRequest.version) } // optional bool include_url = 3 [json_name = "includeUrl"]; -inline bool GetPackageRequest::has_include_url() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; +inline bool GetPackageRequest::_internal_has_include_url() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; return value; } +inline bool GetPackageRequest::has_include_url() const { + return _internal_has_include_url(); +} inline void GetPackageRequest::clear_include_url() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.include_url_ = false; - _impl_._has_bits_[0] &= ~0x00000002u; + include_url_ = false; + _has_bits_[0] &= ~0x00000002u; +} +inline bool GetPackageRequest::_internal_include_url() const { + return include_url_; } inline bool GetPackageRequest::include_url() const { // @@protoc_insertion_point(field_get:viam.app.packages.v1.GetPackageRequest.include_url) return _internal_include_url(); } +inline void GetPackageRequest::_internal_set_include_url(bool value) { + _has_bits_[0] |= 0x00000002u; + include_url_ = value; +} inline void GetPackageRequest::set_include_url(bool value) { _internal_set_include_url(value); // @@protoc_insertion_point(field_set:viam.app.packages.v1.GetPackageRequest.include_url) } -inline bool GetPackageRequest::_internal_include_url() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.include_url_; -} -inline void GetPackageRequest::_internal_set_include_url(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.include_url_ = value; -} // optional .viam.app.packages.v1.PackageType type = 4 [json_name = "type"]; -inline bool GetPackageRequest::has_type() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; +inline bool GetPackageRequest::_internal_has_type() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; return value; } +inline bool GetPackageRequest::has_type() const { + return _internal_has_type(); +} inline void GetPackageRequest::clear_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_ = 0; - _impl_._has_bits_[0] &= ~0x00000004u; + type_ = 0; + _has_bits_[0] &= ~0x00000004u; +} +inline ::viam::app::packages::v1::PackageType GetPackageRequest::_internal_type() const { + return static_cast< ::viam::app::packages::v1::PackageType >(type_); } inline ::viam::app::packages::v1::PackageType GetPackageRequest::type() const { // @@protoc_insertion_point(field_get:viam.app.packages.v1.GetPackageRequest.type) return _internal_type(); } +inline void GetPackageRequest::_internal_set_type(::viam::app::packages::v1::PackageType value) { + _has_bits_[0] |= 0x00000004u; + type_ = value; +} inline void GetPackageRequest::set_type(::viam::app::packages::v1::PackageType value) { _internal_set_type(value); // @@protoc_insertion_point(field_set:viam.app.packages.v1.GetPackageRequest.type) } -inline ::viam::app::packages::v1::PackageType GetPackageRequest::_internal_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::viam::app::packages::v1::PackageType>(_impl_.type_); -} -inline void GetPackageRequest::_internal_set_type(::viam::app::packages::v1::PackageType value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - _impl_.type_ = value; -} // optional string platform = 5 [json_name = "platform"]; -inline bool GetPackageRequest::has_platform() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; +inline bool GetPackageRequest::_internal_has_platform() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; return value; } +inline bool GetPackageRequest::has_platform() const { + return _internal_has_platform(); +} inline void GetPackageRequest::clear_platform() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.platform_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000001u; + platform_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; } -inline const std::string& GetPackageRequest::platform() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetPackageRequest::platform() const { // @@protoc_insertion_point(field_get:viam.app.packages.v1.GetPackageRequest.platform) return _internal_platform(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetPackageRequest::set_platform(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.platform_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetPackageRequest::set_platform(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + platform_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.packages.v1.GetPackageRequest.platform) } -inline std::string* GetPackageRequest::mutable_platform() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetPackageRequest::mutable_platform() { std::string* _s = _internal_mutable_platform(); // @@protoc_insertion_point(field_mutable:viam.app.packages.v1.GetPackageRequest.platform) return _s; } inline const std::string& GetPackageRequest::_internal_platform() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.platform_.Get(); + return platform_.Get(); } inline void GetPackageRequest::_internal_set_platform(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.platform_.Set(value, GetArena()); + _has_bits_[0] |= 0x00000001u; + platform_.Set(value, GetArenaForAllocation()); } inline std::string* GetPackageRequest::_internal_mutable_platform() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.platform_.Mutable( GetArena()); + _has_bits_[0] |= 0x00000001u; + return platform_.Mutable(GetArenaForAllocation()); } inline std::string* GetPackageRequest::release_platform() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.packages.v1.GetPackageRequest.platform) - if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + if (!_internal_has_platform()) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000001u; - auto* released = _impl_.platform_.Release(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.platform_.Set("", GetArena()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return released; -} -inline void GetPackageRequest::set_allocated_platform(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + _has_bits_[0] &= ~0x00000001u; + auto* p = platform_.Release(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (platform_.IsDefault()) { + platform_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; +} +inline void GetPackageRequest::set_allocated_platform(std::string* platform) { + if (platform != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - _impl_.platform_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.platform_.IsDefault()) { - _impl_.platform_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _has_bits_[0] &= ~0x00000001u; + } + platform_.SetAllocated(platform, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (platform_.IsDefault()) { + platform_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.packages.v1.GetPackageRequest.platform) } @@ -4051,98 +3602,92 @@ inline void GetPackageRequest::set_allocated_platform(std::string* value) { // GetPackageResponse // .viam.app.packages.v1.Package package = 1 [json_name = "package"]; +inline bool GetPackageResponse::_internal_has_package() const { + return this != internal_default_instance() && package_ != nullptr; +} inline bool GetPackageResponse::has_package() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.package_ != nullptr); - return value; + return _internal_has_package(); } inline void GetPackageResponse::clear_package() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.package_ != nullptr) _impl_.package_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && package_ != nullptr) { + delete package_; + } + package_ = nullptr; } inline const ::viam::app::packages::v1::Package& GetPackageResponse::_internal_package() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::packages::v1::Package* p = _impl_.package_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::packages::v1::_Package_default_instance_); + const ::viam::app::packages::v1::Package* p = package_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::packages::v1::_Package_default_instance_); } -inline const ::viam::app::packages::v1::Package& GetPackageResponse::package() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::app::packages::v1::Package& GetPackageResponse::package() const { // @@protoc_insertion_point(field_get:viam.app.packages.v1.GetPackageResponse.package) return _internal_package(); } -inline void GetPackageResponse::unsafe_arena_set_allocated_package(::viam::app::packages::v1::Package* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.package_); +inline void GetPackageResponse::unsafe_arena_set_allocated_package( + ::viam::app::packages::v1::Package* package) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(package_); } - _impl_.package_ = reinterpret_cast<::viam::app::packages::v1::Package*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + package_ = package; + if (package) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.packages.v1.GetPackageResponse.package) } inline ::viam::app::packages::v1::Package* GetPackageResponse::release_package() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::packages::v1::Package* released = _impl_.package_; - _impl_.package_ = nullptr; + + ::viam::app::packages::v1::Package* temp = package_; + package_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::app::packages::v1::Package* GetPackageResponse::unsafe_arena_release_package() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.packages.v1.GetPackageResponse.package) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::packages::v1::Package* temp = _impl_.package_; - _impl_.package_ = nullptr; + + ::viam::app::packages::v1::Package* temp = package_; + package_ = nullptr; return temp; } inline ::viam::app::packages::v1::Package* GetPackageResponse::_internal_mutable_package() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.package_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::packages::v1::Package>(GetArena()); - _impl_.package_ = reinterpret_cast<::viam::app::packages::v1::Package*>(p); + + if (package_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::packages::v1::Package>(GetArenaForAllocation()); + package_ = p; } - return _impl_.package_; + return package_; } -inline ::viam::app::packages::v1::Package* GetPackageResponse::mutable_package() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::app::packages::v1::Package* GetPackageResponse::mutable_package() { ::viam::app::packages::v1::Package* _msg = _internal_mutable_package(); // @@protoc_insertion_point(field_mutable:viam.app.packages.v1.GetPackageResponse.package) return _msg; } -inline void GetPackageResponse::set_allocated_package(::viam::app::packages::v1::Package* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetPackageResponse::set_allocated_package(::viam::app::packages::v1::Package* package) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::packages::v1::Package*>(_impl_.package_); + delete package_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::packages::v1::Package*>(value)->GetArena(); + if (package) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(package); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + package = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, package, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.package_ = reinterpret_cast<::viam::app::packages::v1::Package*>(value); + package_ = package; // @@protoc_insertion_point(field_set_allocated:viam.app.packages.v1.GetPackageResponse.package) } @@ -4152,254 +3697,245 @@ inline void GetPackageResponse::set_allocated_package(::viam::app::packages::v1: // string organization_id = 1 [json_name = "organizationId"]; inline void ListPackagesRequest::clear_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.ClearToEmpty(); + organization_id_.ClearToEmpty(); } -inline const std::string& ListPackagesRequest::organization_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ListPackagesRequest::organization_id() const { // @@protoc_insertion_point(field_get:viam.app.packages.v1.ListPackagesRequest.organization_id) return _internal_organization_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void ListPackagesRequest::set_organization_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ListPackagesRequest::set_organization_id(ArgT0&& arg0, ArgT... args) { + + organization_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.packages.v1.ListPackagesRequest.organization_id) } -inline std::string* ListPackagesRequest::mutable_organization_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ListPackagesRequest::mutable_organization_id() { std::string* _s = _internal_mutable_organization_id(); // @@protoc_insertion_point(field_mutable:viam.app.packages.v1.ListPackagesRequest.organization_id) return _s; } inline const std::string& ListPackagesRequest::_internal_organization_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.organization_id_.Get(); + return organization_id_.Get(); } inline void ListPackagesRequest::_internal_set_organization_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(value, GetArena()); + + organization_id_.Set(value, GetArenaForAllocation()); } inline std::string* ListPackagesRequest::_internal_mutable_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.organization_id_.Mutable( GetArena()); + + return organization_id_.Mutable(GetArenaForAllocation()); } inline std::string* ListPackagesRequest::release_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.packages.v1.ListPackagesRequest.organization_id) - return _impl_.organization_id_.Release(); -} -inline void ListPackagesRequest::set_allocated_organization_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.organization_id_.IsDefault()) { - _impl_.organization_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return organization_id_.Release(); +} +inline void ListPackagesRequest::set_allocated_organization_id(std::string* organization_id) { + if (organization_id != nullptr) { + + } else { + + } + organization_id_.SetAllocated(organization_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (organization_id_.IsDefault()) { + organization_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.packages.v1.ListPackagesRequest.organization_id) } // optional string name = 2 [json_name = "name"]; -inline bool ListPackagesRequest::has_name() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; +inline bool ListPackagesRequest::_internal_has_name() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; return value; } +inline bool ListPackagesRequest::has_name() const { + return _internal_has_name(); +} inline void ListPackagesRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000001u; + name_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; } -inline const std::string& ListPackagesRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ListPackagesRequest::name() const { // @@protoc_insertion_point(field_get:viam.app.packages.v1.ListPackagesRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void ListPackagesRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ListPackagesRequest::set_name(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.packages.v1.ListPackagesRequest.name) } -inline std::string* ListPackagesRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ListPackagesRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.app.packages.v1.ListPackagesRequest.name) return _s; } inline const std::string& ListPackagesRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void ListPackagesRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.name_.Set(value, GetArena()); + _has_bits_[0] |= 0x00000001u; + name_.Set(value, GetArenaForAllocation()); } inline std::string* ListPackagesRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.name_.Mutable( GetArena()); + _has_bits_[0] |= 0x00000001u; + return name_.Mutable(GetArenaForAllocation()); } inline std::string* ListPackagesRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.packages.v1.ListPackagesRequest.name) - if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + if (!_internal_has_name()) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000001u; - auto* released = _impl_.name_.Release(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArena()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return released; -} -inline void ListPackagesRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + _has_bits_[0] &= ~0x00000001u; + auto* p = name_.Release(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (name_.IsDefault()) { + name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; +} +inline void ListPackagesRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _has_bits_[0] &= ~0x00000001u; + } + 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.app.packages.v1.ListPackagesRequest.name) } // optional string version = 3 [json_name = "version"]; -inline bool ListPackagesRequest::has_version() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; +inline bool ListPackagesRequest::_internal_has_version() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; return value; } +inline bool ListPackagesRequest::has_version() const { + return _internal_has_version(); +} inline void ListPackagesRequest::clear_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.version_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000002u; + version_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000002u; } -inline const std::string& ListPackagesRequest::version() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ListPackagesRequest::version() const { // @@protoc_insertion_point(field_get:viam.app.packages.v1.ListPackagesRequest.version) return _internal_version(); } -template -inline PROTOBUF_ALWAYS_INLINE void ListPackagesRequest::set_version(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.version_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ListPackagesRequest::set_version(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000002u; + version_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.packages.v1.ListPackagesRequest.version) } -inline std::string* ListPackagesRequest::mutable_version() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ListPackagesRequest::mutable_version() { std::string* _s = _internal_mutable_version(); // @@protoc_insertion_point(field_mutable:viam.app.packages.v1.ListPackagesRequest.version) return _s; } inline const std::string& ListPackagesRequest::_internal_version() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.version_.Get(); + return version_.Get(); } inline void ListPackagesRequest::_internal_set_version(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.version_.Set(value, GetArena()); + _has_bits_[0] |= 0x00000002u; + version_.Set(value, GetArenaForAllocation()); } inline std::string* ListPackagesRequest::_internal_mutable_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - return _impl_.version_.Mutable( GetArena()); + _has_bits_[0] |= 0x00000002u; + return version_.Mutable(GetArenaForAllocation()); } inline std::string* ListPackagesRequest::release_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.packages.v1.ListPackagesRequest.version) - if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { + if (!_internal_has_version()) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000002u; - auto* released = _impl_.version_.Release(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.version_.Set("", GetArena()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return released; -} -inline void ListPackagesRequest::set_allocated_version(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + _has_bits_[0] &= ~0x00000002u; + auto* p = version_.Release(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (version_.IsDefault()) { + version_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; +} +inline void ListPackagesRequest::set_allocated_version(std::string* version) { + if (version != nullptr) { + _has_bits_[0] |= 0x00000002u; } else { - _impl_._has_bits_[0] &= ~0x00000002u; - } - _impl_.version_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.version_.IsDefault()) { - _impl_.version_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _has_bits_[0] &= ~0x00000002u; + } + version_.SetAllocated(version, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (version_.IsDefault()) { + version_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.packages.v1.ListPackagesRequest.version) } // optional .viam.app.packages.v1.PackageType type = 4 [json_name = "type"]; -inline bool ListPackagesRequest::has_type() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; +inline bool ListPackagesRequest::_internal_has_type() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; return value; } +inline bool ListPackagesRequest::has_type() const { + return _internal_has_type(); +} inline void ListPackagesRequest::clear_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_ = 0; - _impl_._has_bits_[0] &= ~0x00000004u; + type_ = 0; + _has_bits_[0] &= ~0x00000004u; +} +inline ::viam::app::packages::v1::PackageType ListPackagesRequest::_internal_type() const { + return static_cast< ::viam::app::packages::v1::PackageType >(type_); } inline ::viam::app::packages::v1::PackageType ListPackagesRequest::type() const { // @@protoc_insertion_point(field_get:viam.app.packages.v1.ListPackagesRequest.type) return _internal_type(); } +inline void ListPackagesRequest::_internal_set_type(::viam::app::packages::v1::PackageType value) { + _has_bits_[0] |= 0x00000004u; + type_ = value; +} inline void ListPackagesRequest::set_type(::viam::app::packages::v1::PackageType value) { _internal_set_type(value); // @@protoc_insertion_point(field_set:viam.app.packages.v1.ListPackagesRequest.type) } -inline ::viam::app::packages::v1::PackageType ListPackagesRequest::_internal_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::viam::app::packages::v1::PackageType>(_impl_.type_); -} -inline void ListPackagesRequest::_internal_set_type(::viam::app::packages::v1::PackageType value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - _impl_.type_ = value; -} // optional bool include_url = 5 [json_name = "includeUrl"]; -inline bool ListPackagesRequest::has_include_url() const { - bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; +inline bool ListPackagesRequest::_internal_has_include_url() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; return value; } +inline bool ListPackagesRequest::has_include_url() const { + return _internal_has_include_url(); +} inline void ListPackagesRequest::clear_include_url() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.include_url_ = false; - _impl_._has_bits_[0] &= ~0x00000008u; + include_url_ = false; + _has_bits_[0] &= ~0x00000008u; +} +inline bool ListPackagesRequest::_internal_include_url() const { + return include_url_; } inline bool ListPackagesRequest::include_url() const { // @@protoc_insertion_point(field_get:viam.app.packages.v1.ListPackagesRequest.include_url) return _internal_include_url(); } +inline void ListPackagesRequest::_internal_set_include_url(bool value) { + _has_bits_[0] |= 0x00000008u; + include_url_ = value; +} inline void ListPackagesRequest::set_include_url(bool value) { _internal_set_include_url(value); // @@protoc_insertion_point(field_set:viam.app.packages.v1.ListPackagesRequest.include_url) } -inline bool ListPackagesRequest::_internal_include_url() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.include_url_; -} -inline void ListPackagesRequest::_internal_set_include_url(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000008u; - _impl_.include_url_ = value; -} // ------------------------------------------------------------------- @@ -4407,79 +3943,86 @@ inline void ListPackagesRequest::_internal_set_include_url(bool value) { // repeated .viam.app.packages.v1.Package packages = 1 [json_name = "packages"]; inline int ListPackagesResponse::_internal_packages_size() const { - return _internal_packages().size(); + return packages_.size(); } inline int ListPackagesResponse::packages_size() const { return _internal_packages_size(); } inline void ListPackagesResponse::clear_packages() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.packages_.Clear(); + packages_.Clear(); } -inline ::viam::app::packages::v1::Package* ListPackagesResponse::mutable_packages(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::app::packages::v1::Package* ListPackagesResponse::mutable_packages(int index) { // @@protoc_insertion_point(field_mutable:viam.app.packages.v1.ListPackagesResponse.packages) - return _internal_mutable_packages()->Mutable(index); + return packages_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::app::packages::v1::Package>* ListPackagesResponse::mutable_packages() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::packages::v1::Package >* +ListPackagesResponse::mutable_packages() { // @@protoc_insertion_point(field_mutable_list:viam.app.packages.v1.ListPackagesResponse.packages) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_packages(); + return &packages_; } -inline const ::viam::app::packages::v1::Package& ListPackagesResponse::packages(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::app::packages::v1::Package& ListPackagesResponse::_internal_packages(int index) const { + return packages_.Get(index); +} +inline const ::viam::app::packages::v1::Package& ListPackagesResponse::packages(int index) const { // @@protoc_insertion_point(field_get:viam.app.packages.v1.ListPackagesResponse.packages) - return _internal_packages().Get(index); + return _internal_packages(index); +} +inline ::viam::app::packages::v1::Package* ListPackagesResponse::_internal_add_packages() { + return packages_.Add(); } -inline ::viam::app::packages::v1::Package* ListPackagesResponse::add_packages() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::packages::v1::Package* _add = _internal_mutable_packages()->Add(); +inline ::viam::app::packages::v1::Package* ListPackagesResponse::add_packages() { + ::viam::app::packages::v1::Package* _add = _internal_add_packages(); // @@protoc_insertion_point(field_add:viam.app.packages.v1.ListPackagesResponse.packages) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::packages::v1::Package>& ListPackagesResponse::packages() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::packages::v1::Package >& +ListPackagesResponse::packages() const { // @@protoc_insertion_point(field_list:viam.app.packages.v1.ListPackagesResponse.packages) - return _internal_packages(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::app::packages::v1::Package>& -ListPackagesResponse::_internal_packages() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.packages_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::app::packages::v1::Package>* -ListPackagesResponse::_internal_mutable_packages() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.packages_; + return packages_; } #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) + } // namespace v1 } // namespace packages } // namespace app } // namespace viam +PROTOBUF_NAMESPACE_OPEN -namespace google { -namespace protobuf { - +template <> struct is_proto_enum< ::viam::app::packages::v1::PackageType> : ::std::true_type {}; template <> -struct is_proto_enum<::viam::app::packages::v1::PackageType> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::viam::app::packages::v1::PackageType>() { +inline const EnumDescriptor* GetEnumDescriptor< ::viam::app::packages::v1::PackageType>() { return ::viam::app::packages::v1::PackageType_descriptor(); } -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_app_2fpackages_2fv1_2fpackages_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_app_2fpackages_2fv1_2fpackages_2eproto diff --git a/src/viam/api/app/v1/app.grpc.pb.cc b/src/viam/api/app/v1/app.grpc.pb.cc index 58c01dc7f..eaa1bc12e 100644 --- a/src/viam/api/app/v1/app.grpc.pb.cc +++ b/src/viam/api/app/v1/app.grpc.pb.cc @@ -6,19 +6,19 @@ #include "app/v1/app.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace app { namespace v1 { @@ -29,6 +29,7 @@ static const char* AppService_method_names[] = { "/viam.app.v1.AppService/ListOrganizations", "/viam.app.v1.AppService/GetOrganizationsWithAccessToLocation", "/viam.app.v1.AppService/ListOrganizationsByUser", + "/viam.app.v1.AppService/SearchOrganizations", "/viam.app.v1.AppService/GetOrganization", "/viam.app.v1.AppService/GetOrganizationNamespaceAvailability", "/viam.app.v1.AppService/UpdateOrganization", @@ -45,6 +46,15 @@ static const char* AppService_method_names[] = { "/viam.app.v1.AppService/GetBillingServiceConfig", "/viam.app.v1.AppService/OrganizationSetSupportEmail", "/viam.app.v1.AppService/OrganizationGetSupportEmail", + "/viam.app.v1.AppService/OrganizationSetLogo", + "/viam.app.v1.AppService/OrganizationGetLogo", + "/viam.app.v1.AppService/EnableAuthService", + "/viam.app.v1.AppService/DisableAuthService", + "/viam.app.v1.AppService/CreateOAuthApp", + "/viam.app.v1.AppService/ReadOAuthApp", + "/viam.app.v1.AppService/UpdateOAuthApp", + "/viam.app.v1.AppService/DeleteOAuthApp", + "/viam.app.v1.AppService/ListOAuthApps", "/viam.app.v1.AppService/CreateLocation", "/viam.app.v1.AppService/GetLocation", "/viam.app.v1.AppService/UpdateLocation", @@ -107,1902 +117,2577 @@ static const char* AppService_method_names[] = { std::unique_ptr< AppService::Stub> AppService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { (void)options; - std::unique_ptr< AppService::Stub> stub(new AppService::Stub(channel, options)); + std::unique_ptr< AppService::Stub> stub(new AppService::Stub(channel)); return stub; } -AppService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) - : channel_(channel), rpcmethod_GetUserIDByEmail_(AppService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_CreateOrganization_(AppService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_ListOrganizations_(AppService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetOrganizationsWithAccessToLocation_(AppService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_ListOrganizationsByUser_(AppService_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetOrganization_(AppService_method_names[5], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetOrganizationNamespaceAvailability_(AppService_method_names[6], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_UpdateOrganization_(AppService_method_names[7], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_DeleteOrganization_(AppService_method_names[8], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_ListOrganizationMembers_(AppService_method_names[9], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_CreateOrganizationInvite_(AppService_method_names[10], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_UpdateOrganizationInviteAuthorizations_(AppService_method_names[11], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_DeleteOrganizationMember_(AppService_method_names[12], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_DeleteOrganizationInvite_(AppService_method_names[13], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_ResendOrganizationInvite_(AppService_method_names[14], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_EnableBillingService_(AppService_method_names[15], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_DisableBillingService_(AppService_method_names[16], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_UpdateBillingService_(AppService_method_names[17], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetBillingServiceConfig_(AppService_method_names[18], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_OrganizationSetSupportEmail_(AppService_method_names[19], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_OrganizationGetSupportEmail_(AppService_method_names[20], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_CreateLocation_(AppService_method_names[21], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetLocation_(AppService_method_names[22], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_UpdateLocation_(AppService_method_names[23], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_DeleteLocation_(AppService_method_names[24], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_ListLocations_(AppService_method_names[25], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_ShareLocation_(AppService_method_names[26], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_UnshareLocation_(AppService_method_names[27], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_LocationAuth_(AppService_method_names[28], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_CreateLocationSecret_(AppService_method_names[29], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_DeleteLocationSecret_(AppService_method_names[30], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetRobot_(AppService_method_names[31], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetRoverRentalRobots_(AppService_method_names[32], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetRobotParts_(AppService_method_names[33], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetRobotPart_(AppService_method_names[34], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetRobotPartLogs_(AppService_method_names[35], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_TailRobotPartLogs_(AppService_method_names[36], options.suffix_for_stats(),::grpc::internal::RpcMethod::SERVER_STREAMING, channel) - , rpcmethod_GetRobotPartHistory_(AppService_method_names[37], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_UpdateRobotPart_(AppService_method_names[38], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_NewRobotPart_(AppService_method_names[39], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_DeleteRobotPart_(AppService_method_names[40], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetRobotAPIKeys_(AppService_method_names[41], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_MarkPartAsMain_(AppService_method_names[42], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_MarkPartForRestart_(AppService_method_names[43], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_CreateRobotPartSecret_(AppService_method_names[44], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_DeleteRobotPartSecret_(AppService_method_names[45], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_ListRobots_(AppService_method_names[46], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_NewRobot_(AppService_method_names[47], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_UpdateRobot_(AppService_method_names[48], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_DeleteRobot_(AppService_method_names[49], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_ListFragments_(AppService_method_names[50], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetFragment_(AppService_method_names[51], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_CreateFragment_(AppService_method_names[52], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_UpdateFragment_(AppService_method_names[53], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_DeleteFragment_(AppService_method_names[54], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_ListMachineFragments_(AppService_method_names[55], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetFragmentHistory_(AppService_method_names[56], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_AddRole_(AppService_method_names[57], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_RemoveRole_(AppService_method_names[58], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_ChangeRole_(AppService_method_names[59], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_ListAuthorizations_(AppService_method_names[60], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_CheckPermissions_(AppService_method_names[61], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetRegistryItem_(AppService_method_names[62], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_CreateRegistryItem_(AppService_method_names[63], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_UpdateRegistryItem_(AppService_method_names[64], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_ListRegistryItems_(AppService_method_names[65], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_DeleteRegistryItem_(AppService_method_names[66], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_TransferRegistryItem_(AppService_method_names[67], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_CreateModule_(AppService_method_names[68], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_UpdateModule_(AppService_method_names[69], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_UploadModuleFile_(AppService_method_names[70], options.suffix_for_stats(),::grpc::internal::RpcMethod::CLIENT_STREAMING, channel) - , rpcmethod_GetModule_(AppService_method_names[71], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_ListModules_(AppService_method_names[72], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_CreateKey_(AppService_method_names[73], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_DeleteKey_(AppService_method_names[74], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_ListKeys_(AppService_method_names[75], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_RenameKey_(AppService_method_names[76], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_RotateKey_(AppService_method_names[77], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_CreateKeyFromExistingKeyAuthorizations_(AppService_method_names[78], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) +AppService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_GetUserIDByEmail_(AppService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_CreateOrganization_(AppService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListOrganizations_(AppService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetOrganizationsWithAccessToLocation_(AppService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListOrganizationsByUser_(AppService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_SearchOrganizations_(AppService_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetOrganization_(AppService_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetOrganizationNamespaceAvailability_(AppService_method_names[7], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_UpdateOrganization_(AppService_method_names[8], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DeleteOrganization_(AppService_method_names[9], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListOrganizationMembers_(AppService_method_names[10], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_CreateOrganizationInvite_(AppService_method_names[11], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_UpdateOrganizationInviteAuthorizations_(AppService_method_names[12], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DeleteOrganizationMember_(AppService_method_names[13], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DeleteOrganizationInvite_(AppService_method_names[14], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ResendOrganizationInvite_(AppService_method_names[15], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_EnableBillingService_(AppService_method_names[16], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DisableBillingService_(AppService_method_names[17], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_UpdateBillingService_(AppService_method_names[18], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetBillingServiceConfig_(AppService_method_names[19], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_OrganizationSetSupportEmail_(AppService_method_names[20], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_OrganizationGetSupportEmail_(AppService_method_names[21], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_OrganizationSetLogo_(AppService_method_names[22], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_OrganizationGetLogo_(AppService_method_names[23], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_EnableAuthService_(AppService_method_names[24], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DisableAuthService_(AppService_method_names[25], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_CreateOAuthApp_(AppService_method_names[26], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ReadOAuthApp_(AppService_method_names[27], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_UpdateOAuthApp_(AppService_method_names[28], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DeleteOAuthApp_(AppService_method_names[29], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListOAuthApps_(AppService_method_names[30], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_CreateLocation_(AppService_method_names[31], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetLocation_(AppService_method_names[32], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_UpdateLocation_(AppService_method_names[33], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DeleteLocation_(AppService_method_names[34], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListLocations_(AppService_method_names[35], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ShareLocation_(AppService_method_names[36], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_UnshareLocation_(AppService_method_names[37], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_LocationAuth_(AppService_method_names[38], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_CreateLocationSecret_(AppService_method_names[39], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DeleteLocationSecret_(AppService_method_names[40], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetRobot_(AppService_method_names[41], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetRoverRentalRobots_(AppService_method_names[42], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetRobotParts_(AppService_method_names[43], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetRobotPart_(AppService_method_names[44], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetRobotPartLogs_(AppService_method_names[45], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_TailRobotPartLogs_(AppService_method_names[46], ::grpc::internal::RpcMethod::SERVER_STREAMING, channel) + , rpcmethod_GetRobotPartHistory_(AppService_method_names[47], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_UpdateRobotPart_(AppService_method_names[48], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_NewRobotPart_(AppService_method_names[49], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DeleteRobotPart_(AppService_method_names[50], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetRobotAPIKeys_(AppService_method_names[51], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_MarkPartAsMain_(AppService_method_names[52], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_MarkPartForRestart_(AppService_method_names[53], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_CreateRobotPartSecret_(AppService_method_names[54], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DeleteRobotPartSecret_(AppService_method_names[55], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListRobots_(AppService_method_names[56], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_NewRobot_(AppService_method_names[57], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_UpdateRobot_(AppService_method_names[58], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DeleteRobot_(AppService_method_names[59], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListFragments_(AppService_method_names[60], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetFragment_(AppService_method_names[61], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_CreateFragment_(AppService_method_names[62], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_UpdateFragment_(AppService_method_names[63], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DeleteFragment_(AppService_method_names[64], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListMachineFragments_(AppService_method_names[65], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetFragmentHistory_(AppService_method_names[66], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_AddRole_(AppService_method_names[67], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_RemoveRole_(AppService_method_names[68], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ChangeRole_(AppService_method_names[69], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListAuthorizations_(AppService_method_names[70], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_CheckPermissions_(AppService_method_names[71], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetRegistryItem_(AppService_method_names[72], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_CreateRegistryItem_(AppService_method_names[73], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_UpdateRegistryItem_(AppService_method_names[74], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListRegistryItems_(AppService_method_names[75], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DeleteRegistryItem_(AppService_method_names[76], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_TransferRegistryItem_(AppService_method_names[77], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_CreateModule_(AppService_method_names[78], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_UpdateModule_(AppService_method_names[79], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_UploadModuleFile_(AppService_method_names[80], ::grpc::internal::RpcMethod::CLIENT_STREAMING, channel) + , rpcmethod_GetModule_(AppService_method_names[81], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListModules_(AppService_method_names[82], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_CreateKey_(AppService_method_names[83], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DeleteKey_(AppService_method_names[84], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListKeys_(AppService_method_names[85], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_RenameKey_(AppService_method_names[86], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_RotateKey_(AppService_method_names[87], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_CreateKeyFromExistingKeyAuthorizations_(AppService_method_names[88], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status AppService::Stub::GetUserIDByEmail(::grpc::ClientContext* context, const ::viam::app::v1::GetUserIDByEmailRequest& request, ::viam::app::v1::GetUserIDByEmailResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::GetUserIDByEmailRequest, ::viam::app::v1::GetUserIDByEmailResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetUserIDByEmail_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetUserIDByEmail_, context, request, response); } -void AppService::Stub::async::GetUserIDByEmail(::grpc::ClientContext* context, const ::viam::app::v1::GetUserIDByEmailRequest* request, ::viam::app::v1::GetUserIDByEmailResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::GetUserIDByEmailRequest, ::viam::app::v1::GetUserIDByEmailResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetUserIDByEmail_, context, request, response, std::move(f)); +void AppService::Stub::experimental_async::GetUserIDByEmail(::grpc::ClientContext* context, const ::viam::app::v1::GetUserIDByEmailRequest* request, ::viam::app::v1::GetUserIDByEmailResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetUserIDByEmail_, context, request, response, std::move(f)); } -void AppService::Stub::async::GetUserIDByEmail(::grpc::ClientContext* context, const ::viam::app::v1::GetUserIDByEmailRequest* request, ::viam::app::v1::GetUserIDByEmailResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetUserIDByEmail_, context, request, response, reactor); +void AppService::Stub::experimental_async::GetUserIDByEmail(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetUserIDByEmailResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetUserIDByEmail_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetUserIDByEmailResponse>* AppService::Stub::PrepareAsyncGetUserIDByEmailRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetUserIDByEmailRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::GetUserIDByEmailResponse, ::viam::app::v1::GetUserIDByEmailRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetUserIDByEmail_, context, request); +void AppService::Stub::experimental_async::GetUserIDByEmail(::grpc::ClientContext* context, const ::viam::app::v1::GetUserIDByEmailRequest* request, ::viam::app::v1::GetUserIDByEmailResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetUserIDByEmail_, context, request, response, reactor); +} + +void AppService::Stub::experimental_async::GetUserIDByEmail(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetUserIDByEmailResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetUserIDByEmail_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetUserIDByEmailResponse>* AppService::Stub::AsyncGetUserIDByEmailRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetUserIDByEmailRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetUserIDByEmailRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::GetUserIDByEmailResponse>::Create(channel_.get(), cq, rpcmethod_GetUserIDByEmail_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetUserIDByEmailResponse>* AppService::Stub::PrepareAsyncGetUserIDByEmailRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetUserIDByEmailRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::GetUserIDByEmailResponse>::Create(channel_.get(), cq, rpcmethod_GetUserIDByEmail_, context, request, false); } ::grpc::Status AppService::Stub::CreateOrganization(::grpc::ClientContext* context, const ::viam::app::v1::CreateOrganizationRequest& request, ::viam::app::v1::CreateOrganizationResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::CreateOrganizationRequest, ::viam::app::v1::CreateOrganizationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_CreateOrganization_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateOrganization_, context, request, response); } -void AppService::Stub::async::CreateOrganization(::grpc::ClientContext* context, const ::viam::app::v1::CreateOrganizationRequest* request, ::viam::app::v1::CreateOrganizationResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::CreateOrganizationRequest, ::viam::app::v1::CreateOrganizationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_CreateOrganization_, context, request, response, std::move(f)); +void AppService::Stub::experimental_async::CreateOrganization(::grpc::ClientContext* context, const ::viam::app::v1::CreateOrganizationRequest* request, ::viam::app::v1::CreateOrganizationResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateOrganization_, context, request, response, std::move(f)); } -void AppService::Stub::async::CreateOrganization(::grpc::ClientContext* context, const ::viam::app::v1::CreateOrganizationRequest* request, ::viam::app::v1::CreateOrganizationResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_CreateOrganization_, context, request, response, reactor); +void AppService::Stub::experimental_async::CreateOrganization(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateOrganizationResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateOrganization_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::CreateOrganizationResponse>* AppService::Stub::PrepareAsyncCreateOrganizationRaw(::grpc::ClientContext* context, const ::viam::app::v1::CreateOrganizationRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::CreateOrganizationResponse, ::viam::app::v1::CreateOrganizationRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_CreateOrganization_, context, request); +void AppService::Stub::experimental_async::CreateOrganization(::grpc::ClientContext* context, const ::viam::app::v1::CreateOrganizationRequest* request, ::viam::app::v1::CreateOrganizationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateOrganization_, context, request, response, reactor); +} + +void AppService::Stub::experimental_async::CreateOrganization(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateOrganizationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateOrganization_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::app::v1::CreateOrganizationResponse>* AppService::Stub::AsyncCreateOrganizationRaw(::grpc::ClientContext* context, const ::viam::app::v1::CreateOrganizationRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncCreateOrganizationRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::CreateOrganizationResponse>::Create(channel_.get(), cq, rpcmethod_CreateOrganization_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::CreateOrganizationResponse>* AppService::Stub::PrepareAsyncCreateOrganizationRaw(::grpc::ClientContext* context, const ::viam::app::v1::CreateOrganizationRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::CreateOrganizationResponse>::Create(channel_.get(), cq, rpcmethod_CreateOrganization_, context, request, false); } ::grpc::Status AppService::Stub::ListOrganizations(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationsRequest& request, ::viam::app::v1::ListOrganizationsResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::ListOrganizationsRequest, ::viam::app::v1::ListOrganizationsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ListOrganizations_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListOrganizations_, context, request, response); } -void AppService::Stub::async::ListOrganizations(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationsRequest* request, ::viam::app::v1::ListOrganizationsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::ListOrganizationsRequest, ::viam::app::v1::ListOrganizationsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListOrganizations_, context, request, response, std::move(f)); +void AppService::Stub::experimental_async::ListOrganizations(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationsRequest* request, ::viam::app::v1::ListOrganizationsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListOrganizations_, context, request, response, std::move(f)); } -void AppService::Stub::async::ListOrganizations(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationsRequest* request, ::viam::app::v1::ListOrganizationsResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListOrganizations_, context, request, response, reactor); +void AppService::Stub::experimental_async::ListOrganizations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListOrganizationsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListOrganizations_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListOrganizationsResponse>* AppService::Stub::PrepareAsyncListOrganizationsRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::ListOrganizationsResponse, ::viam::app::v1::ListOrganizationsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ListOrganizations_, context, request); +void AppService::Stub::experimental_async::ListOrganizations(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationsRequest* request, ::viam::app::v1::ListOrganizationsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListOrganizations_, context, request, response, reactor); +} + +void AppService::Stub::experimental_async::ListOrganizations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListOrganizationsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListOrganizations_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListOrganizationsResponse>* AppService::Stub::AsyncListOrganizationsRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationsRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncListOrganizationsRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::ListOrganizationsResponse>::Create(channel_.get(), cq, rpcmethod_ListOrganizations_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListOrganizationsResponse>* AppService::Stub::PrepareAsyncListOrganizationsRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::ListOrganizationsResponse>::Create(channel_.get(), cq, rpcmethod_ListOrganizations_, context, request, false); } ::grpc::Status AppService::Stub::GetOrganizationsWithAccessToLocation(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationsWithAccessToLocationRequest& request, ::viam::app::v1::GetOrganizationsWithAccessToLocationResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::GetOrganizationsWithAccessToLocationRequest, ::viam::app::v1::GetOrganizationsWithAccessToLocationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetOrganizationsWithAccessToLocation_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetOrganizationsWithAccessToLocation_, context, request, response); } -void AppService::Stub::async::GetOrganizationsWithAccessToLocation(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationsWithAccessToLocationRequest* request, ::viam::app::v1::GetOrganizationsWithAccessToLocationResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::GetOrganizationsWithAccessToLocationRequest, ::viam::app::v1::GetOrganizationsWithAccessToLocationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetOrganizationsWithAccessToLocation_, context, request, response, std::move(f)); +void AppService::Stub::experimental_async::GetOrganizationsWithAccessToLocation(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationsWithAccessToLocationRequest* request, ::viam::app::v1::GetOrganizationsWithAccessToLocationResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetOrganizationsWithAccessToLocation_, context, request, response, std::move(f)); } -void AppService::Stub::async::GetOrganizationsWithAccessToLocation(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationsWithAccessToLocationRequest* request, ::viam::app::v1::GetOrganizationsWithAccessToLocationResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetOrganizationsWithAccessToLocation_, context, request, response, reactor); +void AppService::Stub::experimental_async::GetOrganizationsWithAccessToLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetOrganizationsWithAccessToLocationResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetOrganizationsWithAccessToLocation_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetOrganizationsWithAccessToLocationResponse>* AppService::Stub::PrepareAsyncGetOrganizationsWithAccessToLocationRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationsWithAccessToLocationRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::GetOrganizationsWithAccessToLocationResponse, ::viam::app::v1::GetOrganizationsWithAccessToLocationRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetOrganizationsWithAccessToLocation_, context, request); +void AppService::Stub::experimental_async::GetOrganizationsWithAccessToLocation(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationsWithAccessToLocationRequest* request, ::viam::app::v1::GetOrganizationsWithAccessToLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetOrganizationsWithAccessToLocation_, context, request, response, reactor); +} + +void AppService::Stub::experimental_async::GetOrganizationsWithAccessToLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetOrganizationsWithAccessToLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetOrganizationsWithAccessToLocation_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetOrganizationsWithAccessToLocationResponse>* AppService::Stub::AsyncGetOrganizationsWithAccessToLocationRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationsWithAccessToLocationRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetOrganizationsWithAccessToLocationRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::GetOrganizationsWithAccessToLocationResponse>::Create(channel_.get(), cq, rpcmethod_GetOrganizationsWithAccessToLocation_, context, request, true); } -::grpc::Status AppService::Stub::ListOrganizationsByUser(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationsByUserRequest& request, ::viam::app::v1::ListOrganizationsByUserResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::ListOrganizationsByUserRequest, ::viam::app::v1::ListOrganizationsByUserResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ListOrganizationsByUser_, context, request, response); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetOrganizationsWithAccessToLocationResponse>* AppService::Stub::PrepareAsyncGetOrganizationsWithAccessToLocationRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationsWithAccessToLocationRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::GetOrganizationsWithAccessToLocationResponse>::Create(channel_.get(), cq, rpcmethod_GetOrganizationsWithAccessToLocation_, context, request, false); } -void AppService::Stub::async::ListOrganizationsByUser(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationsByUserRequest* request, ::viam::app::v1::ListOrganizationsByUserResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::ListOrganizationsByUserRequest, ::viam::app::v1::ListOrganizationsByUserResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListOrganizationsByUser_, context, request, response, std::move(f)); +::grpc::Status AppService::Stub::ListOrganizationsByUser(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationsByUserRequest& request, ::viam::app::v1::ListOrganizationsByUserResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListOrganizationsByUser_, context, request, response); } -void AppService::Stub::async::ListOrganizationsByUser(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationsByUserRequest* request, ::viam::app::v1::ListOrganizationsByUserResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListOrganizationsByUser_, context, request, response, reactor); +void AppService::Stub::experimental_async::ListOrganizationsByUser(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationsByUserRequest* request, ::viam::app::v1::ListOrganizationsByUserResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListOrganizationsByUser_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListOrganizationsByUserResponse>* AppService::Stub::PrepareAsyncListOrganizationsByUserRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationsByUserRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::ListOrganizationsByUserResponse, ::viam::app::v1::ListOrganizationsByUserRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ListOrganizationsByUser_, context, request); +void AppService::Stub::experimental_async::ListOrganizationsByUser(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListOrganizationsByUserResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListOrganizationsByUser_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListOrganizationsByUserResponse>* AppService::Stub::AsyncListOrganizationsByUserRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationsByUserRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncListOrganizationsByUserRaw(context, request, cq); - result->StartCall(); - return result; +void AppService::Stub::experimental_async::ListOrganizationsByUser(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationsByUserRequest* request, ::viam::app::v1::ListOrganizationsByUserResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListOrganizationsByUser_, context, request, response, reactor); } -::grpc::Status AppService::Stub::GetOrganization(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationRequest& request, ::viam::app::v1::GetOrganizationResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::GetOrganizationRequest, ::viam::app::v1::GetOrganizationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetOrganization_, context, request, response); +void AppService::Stub::experimental_async::ListOrganizationsByUser(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListOrganizationsByUserResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListOrganizationsByUser_, context, request, response, reactor); } -void AppService::Stub::async::GetOrganization(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationRequest* request, ::viam::app::v1::GetOrganizationResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::GetOrganizationRequest, ::viam::app::v1::GetOrganizationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetOrganization_, context, request, response, std::move(f)); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListOrganizationsByUserResponse>* AppService::Stub::AsyncListOrganizationsByUserRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationsByUserRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::ListOrganizationsByUserResponse>::Create(channel_.get(), cq, rpcmethod_ListOrganizationsByUser_, context, request, true); } -void AppService::Stub::async::GetOrganization(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationRequest* request, ::viam::app::v1::GetOrganizationResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetOrganization_, context, request, response, reactor); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListOrganizationsByUserResponse>* AppService::Stub::PrepareAsyncListOrganizationsByUserRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationsByUserRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::ListOrganizationsByUserResponse>::Create(channel_.get(), cq, rpcmethod_ListOrganizationsByUser_, context, request, false); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetOrganizationResponse>* AppService::Stub::PrepareAsyncGetOrganizationRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::GetOrganizationResponse, ::viam::app::v1::GetOrganizationRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetOrganization_, context, request); +::grpc::Status AppService::Stub::SearchOrganizations(::grpc::ClientContext* context, const ::viam::app::v1::SearchOrganizationsRequest& request, ::viam::app::v1::SearchOrganizationsResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_SearchOrganizations_, context, request, response); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetOrganizationResponse>* AppService::Stub::AsyncGetOrganizationRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetOrganizationRaw(context, request, cq); - result->StartCall(); - return result; +void AppService::Stub::experimental_async::SearchOrganizations(::grpc::ClientContext* context, const ::viam::app::v1::SearchOrganizationsRequest* request, ::viam::app::v1::SearchOrganizationsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SearchOrganizations_, context, request, response, std::move(f)); } -::grpc::Status AppService::Stub::GetOrganizationNamespaceAvailability(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationNamespaceAvailabilityRequest& request, ::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::GetOrganizationNamespaceAvailabilityRequest, ::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetOrganizationNamespaceAvailability_, context, request, response); +void AppService::Stub::experimental_async::SearchOrganizations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::SearchOrganizationsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SearchOrganizations_, context, request, response, std::move(f)); } -void AppService::Stub::async::GetOrganizationNamespaceAvailability(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationNamespaceAvailabilityRequest* request, ::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::GetOrganizationNamespaceAvailabilityRequest, ::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetOrganizationNamespaceAvailability_, context, request, response, std::move(f)); +void AppService::Stub::experimental_async::SearchOrganizations(::grpc::ClientContext* context, const ::viam::app::v1::SearchOrganizationsRequest* request, ::viam::app::v1::SearchOrganizationsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SearchOrganizations_, context, request, response, reactor); } -void AppService::Stub::async::GetOrganizationNamespaceAvailability(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationNamespaceAvailabilityRequest* request, ::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetOrganizationNamespaceAvailability_, context, request, response, reactor); +void AppService::Stub::experimental_async::SearchOrganizations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::SearchOrganizationsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SearchOrganizations_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse>* AppService::Stub::PrepareAsyncGetOrganizationNamespaceAvailabilityRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationNamespaceAvailabilityRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse, ::viam::app::v1::GetOrganizationNamespaceAvailabilityRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetOrganizationNamespaceAvailability_, context, request); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::SearchOrganizationsResponse>* AppService::Stub::AsyncSearchOrganizationsRaw(::grpc::ClientContext* context, const ::viam::app::v1::SearchOrganizationsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::SearchOrganizationsResponse>::Create(channel_.get(), cq, rpcmethod_SearchOrganizations_, context, request, true); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse>* AppService::Stub::AsyncGetOrganizationNamespaceAvailabilityRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationNamespaceAvailabilityRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetOrganizationNamespaceAvailabilityRaw(context, request, cq); - result->StartCall(); - return result; +::grpc::ClientAsyncResponseReader< ::viam::app::v1::SearchOrganizationsResponse>* AppService::Stub::PrepareAsyncSearchOrganizationsRaw(::grpc::ClientContext* context, const ::viam::app::v1::SearchOrganizationsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::SearchOrganizationsResponse>::Create(channel_.get(), cq, rpcmethod_SearchOrganizations_, context, request, false); } -::grpc::Status AppService::Stub::UpdateOrganization(::grpc::ClientContext* context, const ::viam::app::v1::UpdateOrganizationRequest& request, ::viam::app::v1::UpdateOrganizationResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::UpdateOrganizationRequest, ::viam::app::v1::UpdateOrganizationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_UpdateOrganization_, context, request, response); +::grpc::Status AppService::Stub::GetOrganization(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationRequest& request, ::viam::app::v1::GetOrganizationResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetOrganization_, context, request, response); } -void AppService::Stub::async::UpdateOrganization(::grpc::ClientContext* context, const ::viam::app::v1::UpdateOrganizationRequest* request, ::viam::app::v1::UpdateOrganizationResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::UpdateOrganizationRequest, ::viam::app::v1::UpdateOrganizationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_UpdateOrganization_, context, request, response, std::move(f)); +void AppService::Stub::experimental_async::GetOrganization(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationRequest* request, ::viam::app::v1::GetOrganizationResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetOrganization_, context, request, response, std::move(f)); } -void AppService::Stub::async::UpdateOrganization(::grpc::ClientContext* context, const ::viam::app::v1::UpdateOrganizationRequest* request, ::viam::app::v1::UpdateOrganizationResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_UpdateOrganization_, context, request, response, reactor); +void AppService::Stub::experimental_async::GetOrganization(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetOrganizationResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetOrganization_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateOrganizationResponse>* AppService::Stub::PrepareAsyncUpdateOrganizationRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateOrganizationRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::UpdateOrganizationResponse, ::viam::app::v1::UpdateOrganizationRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_UpdateOrganization_, context, request); +void AppService::Stub::experimental_async::GetOrganization(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationRequest* request, ::viam::app::v1::GetOrganizationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetOrganization_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateOrganizationResponse>* AppService::Stub::AsyncUpdateOrganizationRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateOrganizationRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncUpdateOrganizationRaw(context, request, cq); - result->StartCall(); - return result; +void AppService::Stub::experimental_async::GetOrganization(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetOrganizationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetOrganization_, context, request, response, reactor); } -::grpc::Status AppService::Stub::DeleteOrganization(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOrganizationRequest& request, ::viam::app::v1::DeleteOrganizationResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::DeleteOrganizationRequest, ::viam::app::v1::DeleteOrganizationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_DeleteOrganization_, context, request, response); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetOrganizationResponse>* AppService::Stub::AsyncGetOrganizationRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::GetOrganizationResponse>::Create(channel_.get(), cq, rpcmethod_GetOrganization_, context, request, true); } -void AppService::Stub::async::DeleteOrganization(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOrganizationRequest* request, ::viam::app::v1::DeleteOrganizationResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::DeleteOrganizationRequest, ::viam::app::v1::DeleteOrganizationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DeleteOrganization_, context, request, response, std::move(f)); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetOrganizationResponse>* AppService::Stub::PrepareAsyncGetOrganizationRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::GetOrganizationResponse>::Create(channel_.get(), cq, rpcmethod_GetOrganization_, context, request, false); } -void AppService::Stub::async::DeleteOrganization(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOrganizationRequest* request, ::viam::app::v1::DeleteOrganizationResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DeleteOrganization_, context, request, response, reactor); +::grpc::Status AppService::Stub::GetOrganizationNamespaceAvailability(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationNamespaceAvailabilityRequest& request, ::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetOrganizationNamespaceAvailability_, context, request, response); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteOrganizationResponse>* AppService::Stub::PrepareAsyncDeleteOrganizationRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOrganizationRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::DeleteOrganizationResponse, ::viam::app::v1::DeleteOrganizationRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DeleteOrganization_, context, request); +void AppService::Stub::experimental_async::GetOrganizationNamespaceAvailability(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationNamespaceAvailabilityRequest* request, ::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetOrganizationNamespaceAvailability_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteOrganizationResponse>* AppService::Stub::AsyncDeleteOrganizationRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOrganizationRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncDeleteOrganizationRaw(context, request, cq); - result->StartCall(); - return result; +void AppService::Stub::experimental_async::GetOrganizationNamespaceAvailability(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetOrganizationNamespaceAvailability_, context, request, response, std::move(f)); } -::grpc::Status AppService::Stub::ListOrganizationMembers(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationMembersRequest& request, ::viam::app::v1::ListOrganizationMembersResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::ListOrganizationMembersRequest, ::viam::app::v1::ListOrganizationMembersResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ListOrganizationMembers_, context, request, response); +void AppService::Stub::experimental_async::GetOrganizationNamespaceAvailability(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationNamespaceAvailabilityRequest* request, ::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetOrganizationNamespaceAvailability_, context, request, response, reactor); } -void AppService::Stub::async::ListOrganizationMembers(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationMembersRequest* request, ::viam::app::v1::ListOrganizationMembersResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::ListOrganizationMembersRequest, ::viam::app::v1::ListOrganizationMembersResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListOrganizationMembers_, context, request, response, std::move(f)); +void AppService::Stub::experimental_async::GetOrganizationNamespaceAvailability(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetOrganizationNamespaceAvailability_, context, request, response, reactor); } -void AppService::Stub::async::ListOrganizationMembers(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationMembersRequest* request, ::viam::app::v1::ListOrganizationMembersResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListOrganizationMembers_, context, request, response, reactor); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse>* AppService::Stub::AsyncGetOrganizationNamespaceAvailabilityRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationNamespaceAvailabilityRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse>::Create(channel_.get(), cq, rpcmethod_GetOrganizationNamespaceAvailability_, context, request, true); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListOrganizationMembersResponse>* AppService::Stub::PrepareAsyncListOrganizationMembersRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationMembersRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::ListOrganizationMembersResponse, ::viam::app::v1::ListOrganizationMembersRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ListOrganizationMembers_, context, request); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse>* AppService::Stub::PrepareAsyncGetOrganizationNamespaceAvailabilityRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationNamespaceAvailabilityRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse>::Create(channel_.get(), cq, rpcmethod_GetOrganizationNamespaceAvailability_, context, request, false); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListOrganizationMembersResponse>* AppService::Stub::AsyncListOrganizationMembersRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationMembersRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncListOrganizationMembersRaw(context, request, cq); - result->StartCall(); - return result; +::grpc::Status AppService::Stub::UpdateOrganization(::grpc::ClientContext* context, const ::viam::app::v1::UpdateOrganizationRequest& request, ::viam::app::v1::UpdateOrganizationResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_UpdateOrganization_, context, request, response); } -::grpc::Status AppService::Stub::CreateOrganizationInvite(::grpc::ClientContext* context, const ::viam::app::v1::CreateOrganizationInviteRequest& request, ::viam::app::v1::CreateOrganizationInviteResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::CreateOrganizationInviteRequest, ::viam::app::v1::CreateOrganizationInviteResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_CreateOrganizationInvite_, context, request, response); +void AppService::Stub::experimental_async::UpdateOrganization(::grpc::ClientContext* context, const ::viam::app::v1::UpdateOrganizationRequest* request, ::viam::app::v1::UpdateOrganizationResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateOrganization_, context, request, response, std::move(f)); } -void AppService::Stub::async::CreateOrganizationInvite(::grpc::ClientContext* context, const ::viam::app::v1::CreateOrganizationInviteRequest* request, ::viam::app::v1::CreateOrganizationInviteResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::CreateOrganizationInviteRequest, ::viam::app::v1::CreateOrganizationInviteResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_CreateOrganizationInvite_, context, request, response, std::move(f)); +void AppService::Stub::experimental_async::UpdateOrganization(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateOrganizationResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateOrganization_, context, request, response, std::move(f)); } -void AppService::Stub::async::CreateOrganizationInvite(::grpc::ClientContext* context, const ::viam::app::v1::CreateOrganizationInviteRequest* request, ::viam::app::v1::CreateOrganizationInviteResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_CreateOrganizationInvite_, context, request, response, reactor); +void AppService::Stub::experimental_async::UpdateOrganization(::grpc::ClientContext* context, const ::viam::app::v1::UpdateOrganizationRequest* request, ::viam::app::v1::UpdateOrganizationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateOrganization_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::CreateOrganizationInviteResponse>* AppService::Stub::PrepareAsyncCreateOrganizationInviteRaw(::grpc::ClientContext* context, const ::viam::app::v1::CreateOrganizationInviteRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::CreateOrganizationInviteResponse, ::viam::app::v1::CreateOrganizationInviteRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_CreateOrganizationInvite_, context, request); +void AppService::Stub::experimental_async::UpdateOrganization(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateOrganizationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateOrganization_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::CreateOrganizationInviteResponse>* AppService::Stub::AsyncCreateOrganizationInviteRaw(::grpc::ClientContext* context, const ::viam::app::v1::CreateOrganizationInviteRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncCreateOrganizationInviteRaw(context, request, cq); - result->StartCall(); - return result; +::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateOrganizationResponse>* AppService::Stub::AsyncUpdateOrganizationRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateOrganizationRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::UpdateOrganizationResponse>::Create(channel_.get(), cq, rpcmethod_UpdateOrganization_, context, request, true); } -::grpc::Status AppService::Stub::UpdateOrganizationInviteAuthorizations(::grpc::ClientContext* context, const ::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest& request, ::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest, ::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_UpdateOrganizationInviteAuthorizations_, context, request, response); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateOrganizationResponse>* AppService::Stub::PrepareAsyncUpdateOrganizationRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateOrganizationRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::UpdateOrganizationResponse>::Create(channel_.get(), cq, rpcmethod_UpdateOrganization_, context, request, false); } -void AppService::Stub::async::UpdateOrganizationInviteAuthorizations(::grpc::ClientContext* context, const ::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest* request, ::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest, ::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_UpdateOrganizationInviteAuthorizations_, context, request, response, std::move(f)); +::grpc::Status AppService::Stub::DeleteOrganization(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOrganizationRequest& request, ::viam::app::v1::DeleteOrganizationResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DeleteOrganization_, context, request, response); } -void AppService::Stub::async::UpdateOrganizationInviteAuthorizations(::grpc::ClientContext* context, const ::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest* request, ::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_UpdateOrganizationInviteAuthorizations_, context, request, response, reactor); +void AppService::Stub::experimental_async::DeleteOrganization(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOrganizationRequest* request, ::viam::app::v1::DeleteOrganizationResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteOrganization_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse>* AppService::Stub::PrepareAsyncUpdateOrganizationInviteAuthorizationsRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse, ::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_UpdateOrganizationInviteAuthorizations_, context, request); +void AppService::Stub::experimental_async::DeleteOrganization(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteOrganizationResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteOrganization_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse>* AppService::Stub::AsyncUpdateOrganizationInviteAuthorizationsRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncUpdateOrganizationInviteAuthorizationsRaw(context, request, cq); - result->StartCall(); - return result; +void AppService::Stub::experimental_async::DeleteOrganization(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOrganizationRequest* request, ::viam::app::v1::DeleteOrganizationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteOrganization_, context, request, response, reactor); } -::grpc::Status AppService::Stub::DeleteOrganizationMember(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOrganizationMemberRequest& request, ::viam::app::v1::DeleteOrganizationMemberResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::DeleteOrganizationMemberRequest, ::viam::app::v1::DeleteOrganizationMemberResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_DeleteOrganizationMember_, context, request, response); +void AppService::Stub::experimental_async::DeleteOrganization(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteOrganizationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteOrganization_, context, request, response, reactor); } -void AppService::Stub::async::DeleteOrganizationMember(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOrganizationMemberRequest* request, ::viam::app::v1::DeleteOrganizationMemberResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::DeleteOrganizationMemberRequest, ::viam::app::v1::DeleteOrganizationMemberResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DeleteOrganizationMember_, context, request, response, std::move(f)); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteOrganizationResponse>* AppService::Stub::AsyncDeleteOrganizationRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOrganizationRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::DeleteOrganizationResponse>::Create(channel_.get(), cq, rpcmethod_DeleteOrganization_, context, request, true); } -void AppService::Stub::async::DeleteOrganizationMember(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOrganizationMemberRequest* request, ::viam::app::v1::DeleteOrganizationMemberResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DeleteOrganizationMember_, context, request, response, reactor); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteOrganizationResponse>* AppService::Stub::PrepareAsyncDeleteOrganizationRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOrganizationRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::DeleteOrganizationResponse>::Create(channel_.get(), cq, rpcmethod_DeleteOrganization_, context, request, false); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteOrganizationMemberResponse>* AppService::Stub::PrepareAsyncDeleteOrganizationMemberRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOrganizationMemberRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::DeleteOrganizationMemberResponse, ::viam::app::v1::DeleteOrganizationMemberRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DeleteOrganizationMember_, context, request); +::grpc::Status AppService::Stub::ListOrganizationMembers(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationMembersRequest& request, ::viam::app::v1::ListOrganizationMembersResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListOrganizationMembers_, context, request, response); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteOrganizationMemberResponse>* AppService::Stub::AsyncDeleteOrganizationMemberRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOrganizationMemberRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncDeleteOrganizationMemberRaw(context, request, cq); - result->StartCall(); - return result; +void AppService::Stub::experimental_async::ListOrganizationMembers(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationMembersRequest* request, ::viam::app::v1::ListOrganizationMembersResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListOrganizationMembers_, context, request, response, std::move(f)); } -::grpc::Status AppService::Stub::DeleteOrganizationInvite(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOrganizationInviteRequest& request, ::viam::app::v1::DeleteOrganizationInviteResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::DeleteOrganizationInviteRequest, ::viam::app::v1::DeleteOrganizationInviteResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_DeleteOrganizationInvite_, context, request, response); +void AppService::Stub::experimental_async::ListOrganizationMembers(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListOrganizationMembersResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListOrganizationMembers_, context, request, response, std::move(f)); } -void AppService::Stub::async::DeleteOrganizationInvite(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOrganizationInviteRequest* request, ::viam::app::v1::DeleteOrganizationInviteResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::DeleteOrganizationInviteRequest, ::viam::app::v1::DeleteOrganizationInviteResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DeleteOrganizationInvite_, context, request, response, std::move(f)); +void AppService::Stub::experimental_async::ListOrganizationMembers(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationMembersRequest* request, ::viam::app::v1::ListOrganizationMembersResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListOrganizationMembers_, context, request, response, reactor); } -void AppService::Stub::async::DeleteOrganizationInvite(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOrganizationInviteRequest* request, ::viam::app::v1::DeleteOrganizationInviteResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DeleteOrganizationInvite_, context, request, response, reactor); +void AppService::Stub::experimental_async::ListOrganizationMembers(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListOrganizationMembersResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListOrganizationMembers_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteOrganizationInviteResponse>* AppService::Stub::PrepareAsyncDeleteOrganizationInviteRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOrganizationInviteRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::DeleteOrganizationInviteResponse, ::viam::app::v1::DeleteOrganizationInviteRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DeleteOrganizationInvite_, context, request); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListOrganizationMembersResponse>* AppService::Stub::AsyncListOrganizationMembersRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationMembersRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::ListOrganizationMembersResponse>::Create(channel_.get(), cq, rpcmethod_ListOrganizationMembers_, context, request, true); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteOrganizationInviteResponse>* AppService::Stub::AsyncDeleteOrganizationInviteRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOrganizationInviteRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncDeleteOrganizationInviteRaw(context, request, cq); - result->StartCall(); - return result; +::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListOrganizationMembersResponse>* AppService::Stub::PrepareAsyncListOrganizationMembersRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationMembersRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::ListOrganizationMembersResponse>::Create(channel_.get(), cq, rpcmethod_ListOrganizationMembers_, context, request, false); } -::grpc::Status AppService::Stub::ResendOrganizationInvite(::grpc::ClientContext* context, const ::viam::app::v1::ResendOrganizationInviteRequest& request, ::viam::app::v1::ResendOrganizationInviteResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::ResendOrganizationInviteRequest, ::viam::app::v1::ResendOrganizationInviteResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ResendOrganizationInvite_, context, request, response); +::grpc::Status AppService::Stub::CreateOrganizationInvite(::grpc::ClientContext* context, const ::viam::app::v1::CreateOrganizationInviteRequest& request, ::viam::app::v1::CreateOrganizationInviteResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateOrganizationInvite_, context, request, response); } -void AppService::Stub::async::ResendOrganizationInvite(::grpc::ClientContext* context, const ::viam::app::v1::ResendOrganizationInviteRequest* request, ::viam::app::v1::ResendOrganizationInviteResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::ResendOrganizationInviteRequest, ::viam::app::v1::ResendOrganizationInviteResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ResendOrganizationInvite_, context, request, response, std::move(f)); +void AppService::Stub::experimental_async::CreateOrganizationInvite(::grpc::ClientContext* context, const ::viam::app::v1::CreateOrganizationInviteRequest* request, ::viam::app::v1::CreateOrganizationInviteResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateOrganizationInvite_, context, request, response, std::move(f)); } -void AppService::Stub::async::ResendOrganizationInvite(::grpc::ClientContext* context, const ::viam::app::v1::ResendOrganizationInviteRequest* request, ::viam::app::v1::ResendOrganizationInviteResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ResendOrganizationInvite_, context, request, response, reactor); +void AppService::Stub::experimental_async::CreateOrganizationInvite(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateOrganizationInviteResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateOrganizationInvite_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::ResendOrganizationInviteResponse>* AppService::Stub::PrepareAsyncResendOrganizationInviteRaw(::grpc::ClientContext* context, const ::viam::app::v1::ResendOrganizationInviteRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::ResendOrganizationInviteResponse, ::viam::app::v1::ResendOrganizationInviteRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ResendOrganizationInvite_, context, request); +void AppService::Stub::experimental_async::CreateOrganizationInvite(::grpc::ClientContext* context, const ::viam::app::v1::CreateOrganizationInviteRequest* request, ::viam::app::v1::CreateOrganizationInviteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateOrganizationInvite_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::ResendOrganizationInviteResponse>* AppService::Stub::AsyncResendOrganizationInviteRaw(::grpc::ClientContext* context, const ::viam::app::v1::ResendOrganizationInviteRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncResendOrganizationInviteRaw(context, request, cq); - result->StartCall(); - return result; +void AppService::Stub::experimental_async::CreateOrganizationInvite(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateOrganizationInviteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateOrganizationInvite_, context, request, response, reactor); } -::grpc::Status AppService::Stub::EnableBillingService(::grpc::ClientContext* context, const ::viam::app::v1::EnableBillingServiceRequest& request, ::viam::app::v1::EnableBillingServiceResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::EnableBillingServiceRequest, ::viam::app::v1::EnableBillingServiceResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_EnableBillingService_, context, request, response); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::CreateOrganizationInviteResponse>* AppService::Stub::AsyncCreateOrganizationInviteRaw(::grpc::ClientContext* context, const ::viam::app::v1::CreateOrganizationInviteRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::CreateOrganizationInviteResponse>::Create(channel_.get(), cq, rpcmethod_CreateOrganizationInvite_, context, request, true); } -void AppService::Stub::async::EnableBillingService(::grpc::ClientContext* context, const ::viam::app::v1::EnableBillingServiceRequest* request, ::viam::app::v1::EnableBillingServiceResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::EnableBillingServiceRequest, ::viam::app::v1::EnableBillingServiceResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EnableBillingService_, context, request, response, std::move(f)); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::CreateOrganizationInviteResponse>* AppService::Stub::PrepareAsyncCreateOrganizationInviteRaw(::grpc::ClientContext* context, const ::viam::app::v1::CreateOrganizationInviteRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::CreateOrganizationInviteResponse>::Create(channel_.get(), cq, rpcmethod_CreateOrganizationInvite_, context, request, false); } -void AppService::Stub::async::EnableBillingService(::grpc::ClientContext* context, const ::viam::app::v1::EnableBillingServiceRequest* request, ::viam::app::v1::EnableBillingServiceResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EnableBillingService_, context, request, response, reactor); +::grpc::Status AppService::Stub::UpdateOrganizationInviteAuthorizations(::grpc::ClientContext* context, const ::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest& request, ::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_UpdateOrganizationInviteAuthorizations_, context, request, response); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::EnableBillingServiceResponse>* AppService::Stub::PrepareAsyncEnableBillingServiceRaw(::grpc::ClientContext* context, const ::viam::app::v1::EnableBillingServiceRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::EnableBillingServiceResponse, ::viam::app::v1::EnableBillingServiceRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_EnableBillingService_, context, request); +void AppService::Stub::experimental_async::UpdateOrganizationInviteAuthorizations(::grpc::ClientContext* context, const ::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest* request, ::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateOrganizationInviteAuthorizations_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::EnableBillingServiceResponse>* AppService::Stub::AsyncEnableBillingServiceRaw(::grpc::ClientContext* context, const ::viam::app::v1::EnableBillingServiceRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncEnableBillingServiceRaw(context, request, cq); - result->StartCall(); - return result; +void AppService::Stub::experimental_async::UpdateOrganizationInviteAuthorizations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateOrganizationInviteAuthorizations_, context, request, response, std::move(f)); } -::grpc::Status AppService::Stub::DisableBillingService(::grpc::ClientContext* context, const ::viam::app::v1::DisableBillingServiceRequest& request, ::viam::app::v1::DisableBillingServiceResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::DisableBillingServiceRequest, ::viam::app::v1::DisableBillingServiceResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_DisableBillingService_, context, request, response); +void AppService::Stub::experimental_async::UpdateOrganizationInviteAuthorizations(::grpc::ClientContext* context, const ::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest* request, ::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateOrganizationInviteAuthorizations_, context, request, response, reactor); } -void AppService::Stub::async::DisableBillingService(::grpc::ClientContext* context, const ::viam::app::v1::DisableBillingServiceRequest* request, ::viam::app::v1::DisableBillingServiceResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::DisableBillingServiceRequest, ::viam::app::v1::DisableBillingServiceResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DisableBillingService_, context, request, response, std::move(f)); +void AppService::Stub::experimental_async::UpdateOrganizationInviteAuthorizations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateOrganizationInviteAuthorizations_, context, request, response, reactor); } -void AppService::Stub::async::DisableBillingService(::grpc::ClientContext* context, const ::viam::app::v1::DisableBillingServiceRequest* request, ::viam::app::v1::DisableBillingServiceResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DisableBillingService_, context, request, response, reactor); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse>* AppService::Stub::AsyncUpdateOrganizationInviteAuthorizationsRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse>::Create(channel_.get(), cq, rpcmethod_UpdateOrganizationInviteAuthorizations_, context, request, true); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::DisableBillingServiceResponse>* AppService::Stub::PrepareAsyncDisableBillingServiceRaw(::grpc::ClientContext* context, const ::viam::app::v1::DisableBillingServiceRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::DisableBillingServiceResponse, ::viam::app::v1::DisableBillingServiceRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DisableBillingService_, context, request); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse>* AppService::Stub::PrepareAsyncUpdateOrganizationInviteAuthorizationsRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse>::Create(channel_.get(), cq, rpcmethod_UpdateOrganizationInviteAuthorizations_, context, request, false); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::DisableBillingServiceResponse>* AppService::Stub::AsyncDisableBillingServiceRaw(::grpc::ClientContext* context, const ::viam::app::v1::DisableBillingServiceRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncDisableBillingServiceRaw(context, request, cq); - result->StartCall(); - return result; +::grpc::Status AppService::Stub::DeleteOrganizationMember(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOrganizationMemberRequest& request, ::viam::app::v1::DeleteOrganizationMemberResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DeleteOrganizationMember_, context, request, response); } -::grpc::Status AppService::Stub::UpdateBillingService(::grpc::ClientContext* context, const ::viam::app::v1::UpdateBillingServiceRequest& request, ::viam::app::v1::UpdateBillingServiceResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::UpdateBillingServiceRequest, ::viam::app::v1::UpdateBillingServiceResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_UpdateBillingService_, context, request, response); +void AppService::Stub::experimental_async::DeleteOrganizationMember(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOrganizationMemberRequest* request, ::viam::app::v1::DeleteOrganizationMemberResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteOrganizationMember_, context, request, response, std::move(f)); } -void AppService::Stub::async::UpdateBillingService(::grpc::ClientContext* context, const ::viam::app::v1::UpdateBillingServiceRequest* request, ::viam::app::v1::UpdateBillingServiceResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::UpdateBillingServiceRequest, ::viam::app::v1::UpdateBillingServiceResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_UpdateBillingService_, context, request, response, std::move(f)); +void AppService::Stub::experimental_async::DeleteOrganizationMember(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteOrganizationMemberResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteOrganizationMember_, context, request, response, std::move(f)); } -void AppService::Stub::async::UpdateBillingService(::grpc::ClientContext* context, const ::viam::app::v1::UpdateBillingServiceRequest* request, ::viam::app::v1::UpdateBillingServiceResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_UpdateBillingService_, context, request, response, reactor); +void AppService::Stub::experimental_async::DeleteOrganizationMember(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOrganizationMemberRequest* request, ::viam::app::v1::DeleteOrganizationMemberResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteOrganizationMember_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateBillingServiceResponse>* AppService::Stub::PrepareAsyncUpdateBillingServiceRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateBillingServiceRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::UpdateBillingServiceResponse, ::viam::app::v1::UpdateBillingServiceRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_UpdateBillingService_, context, request); +void AppService::Stub::experimental_async::DeleteOrganizationMember(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteOrganizationMemberResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteOrganizationMember_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateBillingServiceResponse>* AppService::Stub::AsyncUpdateBillingServiceRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateBillingServiceRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncUpdateBillingServiceRaw(context, request, cq); - result->StartCall(); - return result; +::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteOrganizationMemberResponse>* AppService::Stub::AsyncDeleteOrganizationMemberRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOrganizationMemberRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::DeleteOrganizationMemberResponse>::Create(channel_.get(), cq, rpcmethod_DeleteOrganizationMember_, context, request, true); } -::grpc::Status AppService::Stub::GetBillingServiceConfig(::grpc::ClientContext* context, const ::viam::app::v1::GetBillingServiceConfigRequest& request, ::viam::app::v1::GetBillingServiceConfigResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::GetBillingServiceConfigRequest, ::viam::app::v1::GetBillingServiceConfigResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetBillingServiceConfig_, context, request, response); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteOrganizationMemberResponse>* AppService::Stub::PrepareAsyncDeleteOrganizationMemberRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOrganizationMemberRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::DeleteOrganizationMemberResponse>::Create(channel_.get(), cq, rpcmethod_DeleteOrganizationMember_, context, request, false); } -void AppService::Stub::async::GetBillingServiceConfig(::grpc::ClientContext* context, const ::viam::app::v1::GetBillingServiceConfigRequest* request, ::viam::app::v1::GetBillingServiceConfigResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::GetBillingServiceConfigRequest, ::viam::app::v1::GetBillingServiceConfigResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetBillingServiceConfig_, context, request, response, std::move(f)); +::grpc::Status AppService::Stub::DeleteOrganizationInvite(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOrganizationInviteRequest& request, ::viam::app::v1::DeleteOrganizationInviteResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DeleteOrganizationInvite_, context, request, response); } -void AppService::Stub::async::GetBillingServiceConfig(::grpc::ClientContext* context, const ::viam::app::v1::GetBillingServiceConfigRequest* request, ::viam::app::v1::GetBillingServiceConfigResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetBillingServiceConfig_, context, request, response, reactor); +void AppService::Stub::experimental_async::DeleteOrganizationInvite(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOrganizationInviteRequest* request, ::viam::app::v1::DeleteOrganizationInviteResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteOrganizationInvite_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetBillingServiceConfigResponse>* AppService::Stub::PrepareAsyncGetBillingServiceConfigRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetBillingServiceConfigRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::GetBillingServiceConfigResponse, ::viam::app::v1::GetBillingServiceConfigRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetBillingServiceConfig_, context, request); +void AppService::Stub::experimental_async::DeleteOrganizationInvite(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteOrganizationInviteResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteOrganizationInvite_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetBillingServiceConfigResponse>* AppService::Stub::AsyncGetBillingServiceConfigRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetBillingServiceConfigRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetBillingServiceConfigRaw(context, request, cq); - result->StartCall(); - return result; +void AppService::Stub::experimental_async::DeleteOrganizationInvite(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOrganizationInviteRequest* request, ::viam::app::v1::DeleteOrganizationInviteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteOrganizationInvite_, context, request, response, reactor); } -::grpc::Status AppService::Stub::OrganizationSetSupportEmail(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationSetSupportEmailRequest& request, ::viam::app::v1::OrganizationSetSupportEmailResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::OrganizationSetSupportEmailRequest, ::viam::app::v1::OrganizationSetSupportEmailResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_OrganizationSetSupportEmail_, context, request, response); +void AppService::Stub::experimental_async::DeleteOrganizationInvite(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteOrganizationInviteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteOrganizationInvite_, context, request, response, reactor); } -void AppService::Stub::async::OrganizationSetSupportEmail(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationSetSupportEmailRequest* request, ::viam::app::v1::OrganizationSetSupportEmailResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::OrganizationSetSupportEmailRequest, ::viam::app::v1::OrganizationSetSupportEmailResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_OrganizationSetSupportEmail_, context, request, response, std::move(f)); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteOrganizationInviteResponse>* AppService::Stub::AsyncDeleteOrganizationInviteRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOrganizationInviteRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::DeleteOrganizationInviteResponse>::Create(channel_.get(), cq, rpcmethod_DeleteOrganizationInvite_, context, request, true); } -void AppService::Stub::async::OrganizationSetSupportEmail(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationSetSupportEmailRequest* request, ::viam::app::v1::OrganizationSetSupportEmailResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_OrganizationSetSupportEmail_, context, request, response, reactor); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteOrganizationInviteResponse>* AppService::Stub::PrepareAsyncDeleteOrganizationInviteRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOrganizationInviteRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::DeleteOrganizationInviteResponse>::Create(channel_.get(), cq, rpcmethod_DeleteOrganizationInvite_, context, request, false); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::OrganizationSetSupportEmailResponse>* AppService::Stub::PrepareAsyncOrganizationSetSupportEmailRaw(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationSetSupportEmailRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::OrganizationSetSupportEmailResponse, ::viam::app::v1::OrganizationSetSupportEmailRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_OrganizationSetSupportEmail_, context, request); +::grpc::Status AppService::Stub::ResendOrganizationInvite(::grpc::ClientContext* context, const ::viam::app::v1::ResendOrganizationInviteRequest& request, ::viam::app::v1::ResendOrganizationInviteResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ResendOrganizationInvite_, context, request, response); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::OrganizationSetSupportEmailResponse>* AppService::Stub::AsyncOrganizationSetSupportEmailRaw(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationSetSupportEmailRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncOrganizationSetSupportEmailRaw(context, request, cq); - result->StartCall(); - return result; +void AppService::Stub::experimental_async::ResendOrganizationInvite(::grpc::ClientContext* context, const ::viam::app::v1::ResendOrganizationInviteRequest* request, ::viam::app::v1::ResendOrganizationInviteResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ResendOrganizationInvite_, context, request, response, std::move(f)); } -::grpc::Status AppService::Stub::OrganizationGetSupportEmail(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationGetSupportEmailRequest& request, ::viam::app::v1::OrganizationGetSupportEmailResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::OrganizationGetSupportEmailRequest, ::viam::app::v1::OrganizationGetSupportEmailResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_OrganizationGetSupportEmail_, context, request, response); +void AppService::Stub::experimental_async::ResendOrganizationInvite(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ResendOrganizationInviteResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ResendOrganizationInvite_, context, request, response, std::move(f)); } -void AppService::Stub::async::OrganizationGetSupportEmail(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationGetSupportEmailRequest* request, ::viam::app::v1::OrganizationGetSupportEmailResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::OrganizationGetSupportEmailRequest, ::viam::app::v1::OrganizationGetSupportEmailResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_OrganizationGetSupportEmail_, context, request, response, std::move(f)); +void AppService::Stub::experimental_async::ResendOrganizationInvite(::grpc::ClientContext* context, const ::viam::app::v1::ResendOrganizationInviteRequest* request, ::viam::app::v1::ResendOrganizationInviteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ResendOrganizationInvite_, context, request, response, reactor); } -void AppService::Stub::async::OrganizationGetSupportEmail(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationGetSupportEmailRequest* request, ::viam::app::v1::OrganizationGetSupportEmailResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_OrganizationGetSupportEmail_, context, request, response, reactor); +void AppService::Stub::experimental_async::ResendOrganizationInvite(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ResendOrganizationInviteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ResendOrganizationInvite_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::OrganizationGetSupportEmailResponse>* AppService::Stub::PrepareAsyncOrganizationGetSupportEmailRaw(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationGetSupportEmailRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::OrganizationGetSupportEmailResponse, ::viam::app::v1::OrganizationGetSupportEmailRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_OrganizationGetSupportEmail_, context, request); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::ResendOrganizationInviteResponse>* AppService::Stub::AsyncResendOrganizationInviteRaw(::grpc::ClientContext* context, const ::viam::app::v1::ResendOrganizationInviteRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::ResendOrganizationInviteResponse>::Create(channel_.get(), cq, rpcmethod_ResendOrganizationInvite_, context, request, true); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::OrganizationGetSupportEmailResponse>* AppService::Stub::AsyncOrganizationGetSupportEmailRaw(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationGetSupportEmailRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncOrganizationGetSupportEmailRaw(context, request, cq); - result->StartCall(); - return result; +::grpc::ClientAsyncResponseReader< ::viam::app::v1::ResendOrganizationInviteResponse>* AppService::Stub::PrepareAsyncResendOrganizationInviteRaw(::grpc::ClientContext* context, const ::viam::app::v1::ResendOrganizationInviteRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::ResendOrganizationInviteResponse>::Create(channel_.get(), cq, rpcmethod_ResendOrganizationInvite_, context, request, false); } -::grpc::Status AppService::Stub::CreateLocation(::grpc::ClientContext* context, const ::viam::app::v1::CreateLocationRequest& request, ::viam::app::v1::CreateLocationResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::CreateLocationRequest, ::viam::app::v1::CreateLocationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_CreateLocation_, context, request, response); +::grpc::Status AppService::Stub::EnableBillingService(::grpc::ClientContext* context, const ::viam::app::v1::EnableBillingServiceRequest& request, ::viam::app::v1::EnableBillingServiceResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_EnableBillingService_, context, request, response); } -void AppService::Stub::async::CreateLocation(::grpc::ClientContext* context, const ::viam::app::v1::CreateLocationRequest* request, ::viam::app::v1::CreateLocationResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::CreateLocationRequest, ::viam::app::v1::CreateLocationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_CreateLocation_, context, request, response, std::move(f)); +void AppService::Stub::experimental_async::EnableBillingService(::grpc::ClientContext* context, const ::viam::app::v1::EnableBillingServiceRequest* request, ::viam::app::v1::EnableBillingServiceResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_EnableBillingService_, context, request, response, std::move(f)); } -void AppService::Stub::async::CreateLocation(::grpc::ClientContext* context, const ::viam::app::v1::CreateLocationRequest* request, ::viam::app::v1::CreateLocationResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_CreateLocation_, context, request, response, reactor); +void AppService::Stub::experimental_async::EnableBillingService(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::EnableBillingServiceResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_EnableBillingService_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::CreateLocationResponse>* AppService::Stub::PrepareAsyncCreateLocationRaw(::grpc::ClientContext* context, const ::viam::app::v1::CreateLocationRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::CreateLocationResponse, ::viam::app::v1::CreateLocationRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_CreateLocation_, context, request); +void AppService::Stub::experimental_async::EnableBillingService(::grpc::ClientContext* context, const ::viam::app::v1::EnableBillingServiceRequest* request, ::viam::app::v1::EnableBillingServiceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_EnableBillingService_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::CreateLocationResponse>* AppService::Stub::AsyncCreateLocationRaw(::grpc::ClientContext* context, const ::viam::app::v1::CreateLocationRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncCreateLocationRaw(context, request, cq); - result->StartCall(); - return result; +void AppService::Stub::experimental_async::EnableBillingService(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::EnableBillingServiceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_EnableBillingService_, context, request, response, reactor); } -::grpc::Status AppService::Stub::GetLocation(::grpc::ClientContext* context, const ::viam::app::v1::GetLocationRequest& request, ::viam::app::v1::GetLocationResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::GetLocationRequest, ::viam::app::v1::GetLocationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetLocation_, context, request, response); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::EnableBillingServiceResponse>* AppService::Stub::AsyncEnableBillingServiceRaw(::grpc::ClientContext* context, const ::viam::app::v1::EnableBillingServiceRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::EnableBillingServiceResponse>::Create(channel_.get(), cq, rpcmethod_EnableBillingService_, context, request, true); } -void AppService::Stub::async::GetLocation(::grpc::ClientContext* context, const ::viam::app::v1::GetLocationRequest* request, ::viam::app::v1::GetLocationResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::GetLocationRequest, ::viam::app::v1::GetLocationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetLocation_, context, request, response, std::move(f)); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::EnableBillingServiceResponse>* AppService::Stub::PrepareAsyncEnableBillingServiceRaw(::grpc::ClientContext* context, const ::viam::app::v1::EnableBillingServiceRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::EnableBillingServiceResponse>::Create(channel_.get(), cq, rpcmethod_EnableBillingService_, context, request, false); } -void AppService::Stub::async::GetLocation(::grpc::ClientContext* context, const ::viam::app::v1::GetLocationRequest* request, ::viam::app::v1::GetLocationResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetLocation_, context, request, response, reactor); +::grpc::Status AppService::Stub::DisableBillingService(::grpc::ClientContext* context, const ::viam::app::v1::DisableBillingServiceRequest& request, ::viam::app::v1::DisableBillingServiceResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DisableBillingService_, context, request, response); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetLocationResponse>* AppService::Stub::PrepareAsyncGetLocationRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetLocationRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::GetLocationResponse, ::viam::app::v1::GetLocationRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetLocation_, context, request); +void AppService::Stub::experimental_async::DisableBillingService(::grpc::ClientContext* context, const ::viam::app::v1::DisableBillingServiceRequest* request, ::viam::app::v1::DisableBillingServiceResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DisableBillingService_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetLocationResponse>* AppService::Stub::AsyncGetLocationRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetLocationRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetLocationRaw(context, request, cq); - result->StartCall(); - return result; +void AppService::Stub::experimental_async::DisableBillingService(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DisableBillingServiceResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DisableBillingService_, context, request, response, std::move(f)); } -::grpc::Status AppService::Stub::UpdateLocation(::grpc::ClientContext* context, const ::viam::app::v1::UpdateLocationRequest& request, ::viam::app::v1::UpdateLocationResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::UpdateLocationRequest, ::viam::app::v1::UpdateLocationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_UpdateLocation_, context, request, response); +void AppService::Stub::experimental_async::DisableBillingService(::grpc::ClientContext* context, const ::viam::app::v1::DisableBillingServiceRequest* request, ::viam::app::v1::DisableBillingServiceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DisableBillingService_, context, request, response, reactor); } -void AppService::Stub::async::UpdateLocation(::grpc::ClientContext* context, const ::viam::app::v1::UpdateLocationRequest* request, ::viam::app::v1::UpdateLocationResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::UpdateLocationRequest, ::viam::app::v1::UpdateLocationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_UpdateLocation_, context, request, response, std::move(f)); +void AppService::Stub::experimental_async::DisableBillingService(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DisableBillingServiceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DisableBillingService_, context, request, response, reactor); } -void AppService::Stub::async::UpdateLocation(::grpc::ClientContext* context, const ::viam::app::v1::UpdateLocationRequest* request, ::viam::app::v1::UpdateLocationResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_UpdateLocation_, context, request, response, reactor); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::DisableBillingServiceResponse>* AppService::Stub::AsyncDisableBillingServiceRaw(::grpc::ClientContext* context, const ::viam::app::v1::DisableBillingServiceRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::DisableBillingServiceResponse>::Create(channel_.get(), cq, rpcmethod_DisableBillingService_, context, request, true); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateLocationResponse>* AppService::Stub::PrepareAsyncUpdateLocationRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateLocationRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::UpdateLocationResponse, ::viam::app::v1::UpdateLocationRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_UpdateLocation_, context, request); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::DisableBillingServiceResponse>* AppService::Stub::PrepareAsyncDisableBillingServiceRaw(::grpc::ClientContext* context, const ::viam::app::v1::DisableBillingServiceRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::DisableBillingServiceResponse>::Create(channel_.get(), cq, rpcmethod_DisableBillingService_, context, request, false); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateLocationResponse>* AppService::Stub::AsyncUpdateLocationRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateLocationRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncUpdateLocationRaw(context, request, cq); - result->StartCall(); - return result; +::grpc::Status AppService::Stub::UpdateBillingService(::grpc::ClientContext* context, const ::viam::app::v1::UpdateBillingServiceRequest& request, ::viam::app::v1::UpdateBillingServiceResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_UpdateBillingService_, context, request, response); } -::grpc::Status AppService::Stub::DeleteLocation(::grpc::ClientContext* context, const ::viam::app::v1::DeleteLocationRequest& request, ::viam::app::v1::DeleteLocationResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::DeleteLocationRequest, ::viam::app::v1::DeleteLocationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_DeleteLocation_, context, request, response); +void AppService::Stub::experimental_async::UpdateBillingService(::grpc::ClientContext* context, const ::viam::app::v1::UpdateBillingServiceRequest* request, ::viam::app::v1::UpdateBillingServiceResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateBillingService_, context, request, response, std::move(f)); } -void AppService::Stub::async::DeleteLocation(::grpc::ClientContext* context, const ::viam::app::v1::DeleteLocationRequest* request, ::viam::app::v1::DeleteLocationResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::DeleteLocationRequest, ::viam::app::v1::DeleteLocationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DeleteLocation_, context, request, response, std::move(f)); +void AppService::Stub::experimental_async::UpdateBillingService(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateBillingServiceResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateBillingService_, context, request, response, std::move(f)); } -void AppService::Stub::async::DeleteLocation(::grpc::ClientContext* context, const ::viam::app::v1::DeleteLocationRequest* request, ::viam::app::v1::DeleteLocationResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DeleteLocation_, context, request, response, reactor); +void AppService::Stub::experimental_async::UpdateBillingService(::grpc::ClientContext* context, const ::viam::app::v1::UpdateBillingServiceRequest* request, ::viam::app::v1::UpdateBillingServiceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateBillingService_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteLocationResponse>* AppService::Stub::PrepareAsyncDeleteLocationRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteLocationRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::DeleteLocationResponse, ::viam::app::v1::DeleteLocationRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DeleteLocation_, context, request); +void AppService::Stub::experimental_async::UpdateBillingService(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateBillingServiceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateBillingService_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteLocationResponse>* AppService::Stub::AsyncDeleteLocationRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteLocationRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncDeleteLocationRaw(context, request, cq); - result->StartCall(); - return result; +::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateBillingServiceResponse>* AppService::Stub::AsyncUpdateBillingServiceRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateBillingServiceRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::UpdateBillingServiceResponse>::Create(channel_.get(), cq, rpcmethod_UpdateBillingService_, context, request, true); } -::grpc::Status AppService::Stub::ListLocations(::grpc::ClientContext* context, const ::viam::app::v1::ListLocationsRequest& request, ::viam::app::v1::ListLocationsResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::ListLocationsRequest, ::viam::app::v1::ListLocationsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ListLocations_, context, request, response); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateBillingServiceResponse>* AppService::Stub::PrepareAsyncUpdateBillingServiceRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateBillingServiceRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::UpdateBillingServiceResponse>::Create(channel_.get(), cq, rpcmethod_UpdateBillingService_, context, request, false); } -void AppService::Stub::async::ListLocations(::grpc::ClientContext* context, const ::viam::app::v1::ListLocationsRequest* request, ::viam::app::v1::ListLocationsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::ListLocationsRequest, ::viam::app::v1::ListLocationsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListLocations_, context, request, response, std::move(f)); +::grpc::Status AppService::Stub::GetBillingServiceConfig(::grpc::ClientContext* context, const ::viam::app::v1::GetBillingServiceConfigRequest& request, ::viam::app::v1::GetBillingServiceConfigResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetBillingServiceConfig_, context, request, response); } -void AppService::Stub::async::ListLocations(::grpc::ClientContext* context, const ::viam::app::v1::ListLocationsRequest* request, ::viam::app::v1::ListLocationsResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListLocations_, context, request, response, reactor); +void AppService::Stub::experimental_async::GetBillingServiceConfig(::grpc::ClientContext* context, const ::viam::app::v1::GetBillingServiceConfigRequest* request, ::viam::app::v1::GetBillingServiceConfigResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetBillingServiceConfig_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListLocationsResponse>* AppService::Stub::PrepareAsyncListLocationsRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListLocationsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::ListLocationsResponse, ::viam::app::v1::ListLocationsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ListLocations_, context, request); +void AppService::Stub::experimental_async::GetBillingServiceConfig(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetBillingServiceConfigResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetBillingServiceConfig_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListLocationsResponse>* AppService::Stub::AsyncListLocationsRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListLocationsRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncListLocationsRaw(context, request, cq); - result->StartCall(); - return result; +void AppService::Stub::experimental_async::GetBillingServiceConfig(::grpc::ClientContext* context, const ::viam::app::v1::GetBillingServiceConfigRequest* request, ::viam::app::v1::GetBillingServiceConfigResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetBillingServiceConfig_, context, request, response, reactor); } -::grpc::Status AppService::Stub::ShareLocation(::grpc::ClientContext* context, const ::viam::app::v1::ShareLocationRequest& request, ::viam::app::v1::ShareLocationResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::ShareLocationRequest, ::viam::app::v1::ShareLocationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ShareLocation_, context, request, response); +void AppService::Stub::experimental_async::GetBillingServiceConfig(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetBillingServiceConfigResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetBillingServiceConfig_, context, request, response, reactor); } -void AppService::Stub::async::ShareLocation(::grpc::ClientContext* context, const ::viam::app::v1::ShareLocationRequest* request, ::viam::app::v1::ShareLocationResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::ShareLocationRequest, ::viam::app::v1::ShareLocationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ShareLocation_, context, request, response, std::move(f)); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetBillingServiceConfigResponse>* AppService::Stub::AsyncGetBillingServiceConfigRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetBillingServiceConfigRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::GetBillingServiceConfigResponse>::Create(channel_.get(), cq, rpcmethod_GetBillingServiceConfig_, context, request, true); } -void AppService::Stub::async::ShareLocation(::grpc::ClientContext* context, const ::viam::app::v1::ShareLocationRequest* request, ::viam::app::v1::ShareLocationResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ShareLocation_, context, request, response, reactor); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetBillingServiceConfigResponse>* AppService::Stub::PrepareAsyncGetBillingServiceConfigRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetBillingServiceConfigRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::GetBillingServiceConfigResponse>::Create(channel_.get(), cq, rpcmethod_GetBillingServiceConfig_, context, request, false); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::ShareLocationResponse>* AppService::Stub::PrepareAsyncShareLocationRaw(::grpc::ClientContext* context, const ::viam::app::v1::ShareLocationRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::ShareLocationResponse, ::viam::app::v1::ShareLocationRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ShareLocation_, context, request); +::grpc::Status AppService::Stub::OrganizationSetSupportEmail(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationSetSupportEmailRequest& request, ::viam::app::v1::OrganizationSetSupportEmailResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_OrganizationSetSupportEmail_, context, request, response); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::ShareLocationResponse>* AppService::Stub::AsyncShareLocationRaw(::grpc::ClientContext* context, const ::viam::app::v1::ShareLocationRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncShareLocationRaw(context, request, cq); - result->StartCall(); - return result; +void AppService::Stub::experimental_async::OrganizationSetSupportEmail(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationSetSupportEmailRequest* request, ::viam::app::v1::OrganizationSetSupportEmailResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_OrganizationSetSupportEmail_, context, request, response, std::move(f)); } -::grpc::Status AppService::Stub::UnshareLocation(::grpc::ClientContext* context, const ::viam::app::v1::UnshareLocationRequest& request, ::viam::app::v1::UnshareLocationResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::UnshareLocationRequest, ::viam::app::v1::UnshareLocationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_UnshareLocation_, context, request, response); +void AppService::Stub::experimental_async::OrganizationSetSupportEmail(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::OrganizationSetSupportEmailResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_OrganizationSetSupportEmail_, context, request, response, std::move(f)); } -void AppService::Stub::async::UnshareLocation(::grpc::ClientContext* context, const ::viam::app::v1::UnshareLocationRequest* request, ::viam::app::v1::UnshareLocationResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::UnshareLocationRequest, ::viam::app::v1::UnshareLocationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_UnshareLocation_, context, request, response, std::move(f)); +void AppService::Stub::experimental_async::OrganizationSetSupportEmail(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationSetSupportEmailRequest* request, ::viam::app::v1::OrganizationSetSupportEmailResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_OrganizationSetSupportEmail_, context, request, response, reactor); } -void AppService::Stub::async::UnshareLocation(::grpc::ClientContext* context, const ::viam::app::v1::UnshareLocationRequest* request, ::viam::app::v1::UnshareLocationResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_UnshareLocation_, context, request, response, reactor); +void AppService::Stub::experimental_async::OrganizationSetSupportEmail(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::OrganizationSetSupportEmailResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_OrganizationSetSupportEmail_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::UnshareLocationResponse>* AppService::Stub::PrepareAsyncUnshareLocationRaw(::grpc::ClientContext* context, const ::viam::app::v1::UnshareLocationRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::UnshareLocationResponse, ::viam::app::v1::UnshareLocationRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_UnshareLocation_, context, request); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::OrganizationSetSupportEmailResponse>* AppService::Stub::AsyncOrganizationSetSupportEmailRaw(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationSetSupportEmailRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::OrganizationSetSupportEmailResponse>::Create(channel_.get(), cq, rpcmethod_OrganizationSetSupportEmail_, context, request, true); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::UnshareLocationResponse>* AppService::Stub::AsyncUnshareLocationRaw(::grpc::ClientContext* context, const ::viam::app::v1::UnshareLocationRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncUnshareLocationRaw(context, request, cq); - result->StartCall(); - return result; +::grpc::ClientAsyncResponseReader< ::viam::app::v1::OrganizationSetSupportEmailResponse>* AppService::Stub::PrepareAsyncOrganizationSetSupportEmailRaw(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationSetSupportEmailRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::OrganizationSetSupportEmailResponse>::Create(channel_.get(), cq, rpcmethod_OrganizationSetSupportEmail_, context, request, false); } -::grpc::Status AppService::Stub::LocationAuth(::grpc::ClientContext* context, const ::viam::app::v1::LocationAuthRequest& request, ::viam::app::v1::LocationAuthResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::LocationAuthRequest, ::viam::app::v1::LocationAuthResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_LocationAuth_, context, request, response); +::grpc::Status AppService::Stub::OrganizationGetSupportEmail(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationGetSupportEmailRequest& request, ::viam::app::v1::OrganizationGetSupportEmailResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_OrganizationGetSupportEmail_, context, request, response); } -void AppService::Stub::async::LocationAuth(::grpc::ClientContext* context, const ::viam::app::v1::LocationAuthRequest* request, ::viam::app::v1::LocationAuthResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::LocationAuthRequest, ::viam::app::v1::LocationAuthResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_LocationAuth_, context, request, response, std::move(f)); +void AppService::Stub::experimental_async::OrganizationGetSupportEmail(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationGetSupportEmailRequest* request, ::viam::app::v1::OrganizationGetSupportEmailResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_OrganizationGetSupportEmail_, context, request, response, std::move(f)); } -void AppService::Stub::async::LocationAuth(::grpc::ClientContext* context, const ::viam::app::v1::LocationAuthRequest* request, ::viam::app::v1::LocationAuthResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_LocationAuth_, context, request, response, reactor); +void AppService::Stub::experimental_async::OrganizationGetSupportEmail(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::OrganizationGetSupportEmailResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_OrganizationGetSupportEmail_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::LocationAuthResponse>* AppService::Stub::PrepareAsyncLocationAuthRaw(::grpc::ClientContext* context, const ::viam::app::v1::LocationAuthRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::LocationAuthResponse, ::viam::app::v1::LocationAuthRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_LocationAuth_, context, request); +void AppService::Stub::experimental_async::OrganizationGetSupportEmail(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationGetSupportEmailRequest* request, ::viam::app::v1::OrganizationGetSupportEmailResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_OrganizationGetSupportEmail_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::LocationAuthResponse>* AppService::Stub::AsyncLocationAuthRaw(::grpc::ClientContext* context, const ::viam::app::v1::LocationAuthRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncLocationAuthRaw(context, request, cq); - result->StartCall(); - return result; +void AppService::Stub::experimental_async::OrganizationGetSupportEmail(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::OrganizationGetSupportEmailResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_OrganizationGetSupportEmail_, context, request, response, reactor); } -::grpc::Status AppService::Stub::CreateLocationSecret(::grpc::ClientContext* context, const ::viam::app::v1::CreateLocationSecretRequest& request, ::viam::app::v1::CreateLocationSecretResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::CreateLocationSecretRequest, ::viam::app::v1::CreateLocationSecretResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_CreateLocationSecret_, context, request, response); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::OrganizationGetSupportEmailResponse>* AppService::Stub::AsyncOrganizationGetSupportEmailRaw(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationGetSupportEmailRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::OrganizationGetSupportEmailResponse>::Create(channel_.get(), cq, rpcmethod_OrganizationGetSupportEmail_, context, request, true); } -void AppService::Stub::async::CreateLocationSecret(::grpc::ClientContext* context, const ::viam::app::v1::CreateLocationSecretRequest* request, ::viam::app::v1::CreateLocationSecretResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::CreateLocationSecretRequest, ::viam::app::v1::CreateLocationSecretResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_CreateLocationSecret_, context, request, response, std::move(f)); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::OrganizationGetSupportEmailResponse>* AppService::Stub::PrepareAsyncOrganizationGetSupportEmailRaw(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationGetSupportEmailRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::OrganizationGetSupportEmailResponse>::Create(channel_.get(), cq, rpcmethod_OrganizationGetSupportEmail_, context, request, false); } -void AppService::Stub::async::CreateLocationSecret(::grpc::ClientContext* context, const ::viam::app::v1::CreateLocationSecretRequest* request, ::viam::app::v1::CreateLocationSecretResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_CreateLocationSecret_, context, request, response, reactor); +::grpc::Status AppService::Stub::OrganizationSetLogo(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationSetLogoRequest& request, ::viam::app::v1::OrganizationSetLogoResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_OrganizationSetLogo_, context, request, response); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::CreateLocationSecretResponse>* AppService::Stub::PrepareAsyncCreateLocationSecretRaw(::grpc::ClientContext* context, const ::viam::app::v1::CreateLocationSecretRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::CreateLocationSecretResponse, ::viam::app::v1::CreateLocationSecretRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_CreateLocationSecret_, context, request); +void AppService::Stub::experimental_async::OrganizationSetLogo(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationSetLogoRequest* request, ::viam::app::v1::OrganizationSetLogoResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_OrganizationSetLogo_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::CreateLocationSecretResponse>* AppService::Stub::AsyncCreateLocationSecretRaw(::grpc::ClientContext* context, const ::viam::app::v1::CreateLocationSecretRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncCreateLocationSecretRaw(context, request, cq); - result->StartCall(); - return result; +void AppService::Stub::experimental_async::OrganizationSetLogo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::OrganizationSetLogoResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_OrganizationSetLogo_, context, request, response, std::move(f)); } -::grpc::Status AppService::Stub::DeleteLocationSecret(::grpc::ClientContext* context, const ::viam::app::v1::DeleteLocationSecretRequest& request, ::viam::app::v1::DeleteLocationSecretResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::DeleteLocationSecretRequest, ::viam::app::v1::DeleteLocationSecretResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_DeleteLocationSecret_, context, request, response); +void AppService::Stub::experimental_async::OrganizationSetLogo(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationSetLogoRequest* request, ::viam::app::v1::OrganizationSetLogoResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_OrganizationSetLogo_, context, request, response, reactor); } -void AppService::Stub::async::DeleteLocationSecret(::grpc::ClientContext* context, const ::viam::app::v1::DeleteLocationSecretRequest* request, ::viam::app::v1::DeleteLocationSecretResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::DeleteLocationSecretRequest, ::viam::app::v1::DeleteLocationSecretResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DeleteLocationSecret_, context, request, response, std::move(f)); +void AppService::Stub::experimental_async::OrganizationSetLogo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::OrganizationSetLogoResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_OrganizationSetLogo_, context, request, response, reactor); } -void AppService::Stub::async::DeleteLocationSecret(::grpc::ClientContext* context, const ::viam::app::v1::DeleteLocationSecretRequest* request, ::viam::app::v1::DeleteLocationSecretResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DeleteLocationSecret_, context, request, response, reactor); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::OrganizationSetLogoResponse>* AppService::Stub::AsyncOrganizationSetLogoRaw(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationSetLogoRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::OrganizationSetLogoResponse>::Create(channel_.get(), cq, rpcmethod_OrganizationSetLogo_, context, request, true); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteLocationSecretResponse>* AppService::Stub::PrepareAsyncDeleteLocationSecretRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteLocationSecretRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::DeleteLocationSecretResponse, ::viam::app::v1::DeleteLocationSecretRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DeleteLocationSecret_, context, request); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::OrganizationSetLogoResponse>* AppService::Stub::PrepareAsyncOrganizationSetLogoRaw(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationSetLogoRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::OrganizationSetLogoResponse>::Create(channel_.get(), cq, rpcmethod_OrganizationSetLogo_, context, request, false); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteLocationSecretResponse>* AppService::Stub::AsyncDeleteLocationSecretRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteLocationSecretRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncDeleteLocationSecretRaw(context, request, cq); - result->StartCall(); - return result; +::grpc::Status AppService::Stub::OrganizationGetLogo(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationGetLogoRequest& request, ::viam::app::v1::OrganizationGetLogoResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_OrganizationGetLogo_, context, request, response); } -::grpc::Status AppService::Stub::GetRobot(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotRequest& request, ::viam::app::v1::GetRobotResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::GetRobotRequest, ::viam::app::v1::GetRobotResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetRobot_, context, request, response); +void AppService::Stub::experimental_async::OrganizationGetLogo(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationGetLogoRequest* request, ::viam::app::v1::OrganizationGetLogoResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_OrganizationGetLogo_, context, request, response, std::move(f)); } -void AppService::Stub::async::GetRobot(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotRequest* request, ::viam::app::v1::GetRobotResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::GetRobotRequest, ::viam::app::v1::GetRobotResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetRobot_, context, request, response, std::move(f)); +void AppService::Stub::experimental_async::OrganizationGetLogo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::OrganizationGetLogoResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_OrganizationGetLogo_, context, request, response, std::move(f)); } -void AppService::Stub::async::GetRobot(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotRequest* request, ::viam::app::v1::GetRobotResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetRobot_, context, request, response, reactor); +void AppService::Stub::experimental_async::OrganizationGetLogo(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationGetLogoRequest* request, ::viam::app::v1::OrganizationGetLogoResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_OrganizationGetLogo_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotResponse>* AppService::Stub::PrepareAsyncGetRobotRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::GetRobotResponse, ::viam::app::v1::GetRobotRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetRobot_, context, request); +void AppService::Stub::experimental_async::OrganizationGetLogo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::OrganizationGetLogoResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_OrganizationGetLogo_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotResponse>* AppService::Stub::AsyncGetRobotRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetRobotRaw(context, request, cq); - result->StartCall(); - return result; +::grpc::ClientAsyncResponseReader< ::viam::app::v1::OrganizationGetLogoResponse>* AppService::Stub::AsyncOrganizationGetLogoRaw(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationGetLogoRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::OrganizationGetLogoResponse>::Create(channel_.get(), cq, rpcmethod_OrganizationGetLogo_, context, request, true); } -::grpc::Status AppService::Stub::GetRoverRentalRobots(::grpc::ClientContext* context, const ::viam::app::v1::GetRoverRentalRobotsRequest& request, ::viam::app::v1::GetRoverRentalRobotsResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::GetRoverRentalRobotsRequest, ::viam::app::v1::GetRoverRentalRobotsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetRoverRentalRobots_, context, request, response); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::OrganizationGetLogoResponse>* AppService::Stub::PrepareAsyncOrganizationGetLogoRaw(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationGetLogoRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::OrganizationGetLogoResponse>::Create(channel_.get(), cq, rpcmethod_OrganizationGetLogo_, context, request, false); } -void AppService::Stub::async::GetRoverRentalRobots(::grpc::ClientContext* context, const ::viam::app::v1::GetRoverRentalRobotsRequest* request, ::viam::app::v1::GetRoverRentalRobotsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::GetRoverRentalRobotsRequest, ::viam::app::v1::GetRoverRentalRobotsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetRoverRentalRobots_, context, request, response, std::move(f)); +::grpc::Status AppService::Stub::EnableAuthService(::grpc::ClientContext* context, const ::viam::app::v1::EnableAuthServiceRequest& request, ::viam::app::v1::EnableAuthServiceResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_EnableAuthService_, context, request, response); } -void AppService::Stub::async::GetRoverRentalRobots(::grpc::ClientContext* context, const ::viam::app::v1::GetRoverRentalRobotsRequest* request, ::viam::app::v1::GetRoverRentalRobotsResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetRoverRentalRobots_, context, request, response, reactor); +void AppService::Stub::experimental_async::EnableAuthService(::grpc::ClientContext* context, const ::viam::app::v1::EnableAuthServiceRequest* request, ::viam::app::v1::EnableAuthServiceResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_EnableAuthService_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRoverRentalRobotsResponse>* AppService::Stub::PrepareAsyncGetRoverRentalRobotsRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRoverRentalRobotsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::GetRoverRentalRobotsResponse, ::viam::app::v1::GetRoverRentalRobotsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetRoverRentalRobots_, context, request); +void AppService::Stub::experimental_async::EnableAuthService(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::EnableAuthServiceResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_EnableAuthService_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRoverRentalRobotsResponse>* AppService::Stub::AsyncGetRoverRentalRobotsRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRoverRentalRobotsRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetRoverRentalRobotsRaw(context, request, cq); - result->StartCall(); - return result; +void AppService::Stub::experimental_async::EnableAuthService(::grpc::ClientContext* context, const ::viam::app::v1::EnableAuthServiceRequest* request, ::viam::app::v1::EnableAuthServiceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_EnableAuthService_, context, request, response, reactor); } -::grpc::Status AppService::Stub::GetRobotParts(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartsRequest& request, ::viam::app::v1::GetRobotPartsResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::GetRobotPartsRequest, ::viam::app::v1::GetRobotPartsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetRobotParts_, context, request, response); +void AppService::Stub::experimental_async::EnableAuthService(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::EnableAuthServiceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_EnableAuthService_, context, request, response, reactor); } -void AppService::Stub::async::GetRobotParts(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartsRequest* request, ::viam::app::v1::GetRobotPartsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::GetRobotPartsRequest, ::viam::app::v1::GetRobotPartsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetRobotParts_, context, request, response, std::move(f)); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::EnableAuthServiceResponse>* AppService::Stub::AsyncEnableAuthServiceRaw(::grpc::ClientContext* context, const ::viam::app::v1::EnableAuthServiceRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::EnableAuthServiceResponse>::Create(channel_.get(), cq, rpcmethod_EnableAuthService_, context, request, true); } -void AppService::Stub::async::GetRobotParts(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartsRequest* request, ::viam::app::v1::GetRobotPartsResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetRobotParts_, context, request, response, reactor); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::EnableAuthServiceResponse>* AppService::Stub::PrepareAsyncEnableAuthServiceRaw(::grpc::ClientContext* context, const ::viam::app::v1::EnableAuthServiceRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::EnableAuthServiceResponse>::Create(channel_.get(), cq, rpcmethod_EnableAuthService_, context, request, false); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotPartsResponse>* AppService::Stub::PrepareAsyncGetRobotPartsRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::GetRobotPartsResponse, ::viam::app::v1::GetRobotPartsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetRobotParts_, context, request); +::grpc::Status AppService::Stub::DisableAuthService(::grpc::ClientContext* context, const ::viam::app::v1::DisableAuthServiceRequest& request, ::viam::app::v1::DisableAuthServiceResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DisableAuthService_, context, request, response); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotPartsResponse>* AppService::Stub::AsyncGetRobotPartsRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartsRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetRobotPartsRaw(context, request, cq); - result->StartCall(); - return result; +void AppService::Stub::experimental_async::DisableAuthService(::grpc::ClientContext* context, const ::viam::app::v1::DisableAuthServiceRequest* request, ::viam::app::v1::DisableAuthServiceResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DisableAuthService_, context, request, response, std::move(f)); } -::grpc::Status AppService::Stub::GetRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartRequest& request, ::viam::app::v1::GetRobotPartResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::GetRobotPartRequest, ::viam::app::v1::GetRobotPartResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetRobotPart_, context, request, response); +void AppService::Stub::experimental_async::DisableAuthService(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DisableAuthServiceResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DisableAuthService_, context, request, response, std::move(f)); } -void AppService::Stub::async::GetRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartRequest* request, ::viam::app::v1::GetRobotPartResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::GetRobotPartRequest, ::viam::app::v1::GetRobotPartResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetRobotPart_, context, request, response, std::move(f)); +void AppService::Stub::experimental_async::DisableAuthService(::grpc::ClientContext* context, const ::viam::app::v1::DisableAuthServiceRequest* request, ::viam::app::v1::DisableAuthServiceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DisableAuthService_, context, request, response, reactor); } -void AppService::Stub::async::GetRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartRequest* request, ::viam::app::v1::GetRobotPartResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetRobotPart_, context, request, response, reactor); +void AppService::Stub::experimental_async::DisableAuthService(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DisableAuthServiceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DisableAuthService_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotPartResponse>* AppService::Stub::PrepareAsyncGetRobotPartRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::GetRobotPartResponse, ::viam::app::v1::GetRobotPartRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetRobotPart_, context, request); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::DisableAuthServiceResponse>* AppService::Stub::AsyncDisableAuthServiceRaw(::grpc::ClientContext* context, const ::viam::app::v1::DisableAuthServiceRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::DisableAuthServiceResponse>::Create(channel_.get(), cq, rpcmethod_DisableAuthService_, context, request, true); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotPartResponse>* AppService::Stub::AsyncGetRobotPartRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetRobotPartRaw(context, request, cq); - result->StartCall(); - return result; +::grpc::ClientAsyncResponseReader< ::viam::app::v1::DisableAuthServiceResponse>* AppService::Stub::PrepareAsyncDisableAuthServiceRaw(::grpc::ClientContext* context, const ::viam::app::v1::DisableAuthServiceRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::DisableAuthServiceResponse>::Create(channel_.get(), cq, rpcmethod_DisableAuthService_, context, request, false); } -::grpc::Status AppService::Stub::GetRobotPartLogs(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartLogsRequest& request, ::viam::app::v1::GetRobotPartLogsResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::GetRobotPartLogsRequest, ::viam::app::v1::GetRobotPartLogsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetRobotPartLogs_, context, request, response); +::grpc::Status AppService::Stub::CreateOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::CreateOAuthAppRequest& request, ::viam::app::v1::CreateOAuthAppResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateOAuthApp_, context, request, response); } -void AppService::Stub::async::GetRobotPartLogs(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartLogsRequest* request, ::viam::app::v1::GetRobotPartLogsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::GetRobotPartLogsRequest, ::viam::app::v1::GetRobotPartLogsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetRobotPartLogs_, context, request, response, std::move(f)); +void AppService::Stub::experimental_async::CreateOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::CreateOAuthAppRequest* request, ::viam::app::v1::CreateOAuthAppResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateOAuthApp_, context, request, response, std::move(f)); } -void AppService::Stub::async::GetRobotPartLogs(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartLogsRequest* request, ::viam::app::v1::GetRobotPartLogsResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetRobotPartLogs_, context, request, response, reactor); +void AppService::Stub::experimental_async::CreateOAuthApp(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateOAuthAppResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateOAuthApp_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotPartLogsResponse>* AppService::Stub::PrepareAsyncGetRobotPartLogsRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartLogsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::GetRobotPartLogsResponse, ::viam::app::v1::GetRobotPartLogsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetRobotPartLogs_, context, request); +void AppService::Stub::experimental_async::CreateOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::CreateOAuthAppRequest* request, ::viam::app::v1::CreateOAuthAppResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateOAuthApp_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotPartLogsResponse>* AppService::Stub::AsyncGetRobotPartLogsRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartLogsRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetRobotPartLogsRaw(context, request, cq); - result->StartCall(); - return result; +void AppService::Stub::experimental_async::CreateOAuthApp(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateOAuthAppResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateOAuthApp_, context, request, response, reactor); } -::grpc::ClientReader< ::viam::app::v1::TailRobotPartLogsResponse>* AppService::Stub::TailRobotPartLogsRaw(::grpc::ClientContext* context, const ::viam::app::v1::TailRobotPartLogsRequest& request) { - return ::grpc::internal::ClientReaderFactory< ::viam::app::v1::TailRobotPartLogsResponse>::Create(channel_.get(), rpcmethod_TailRobotPartLogs_, context, request); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::CreateOAuthAppResponse>* AppService::Stub::AsyncCreateOAuthAppRaw(::grpc::ClientContext* context, const ::viam::app::v1::CreateOAuthAppRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::CreateOAuthAppResponse>::Create(channel_.get(), cq, rpcmethod_CreateOAuthApp_, context, request, true); } -void AppService::Stub::async::TailRobotPartLogs(::grpc::ClientContext* context, const ::viam::app::v1::TailRobotPartLogsRequest* request, ::grpc::ClientReadReactor< ::viam::app::v1::TailRobotPartLogsResponse>* reactor) { - ::grpc::internal::ClientCallbackReaderFactory< ::viam::app::v1::TailRobotPartLogsResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_TailRobotPartLogs_, context, request, reactor); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::CreateOAuthAppResponse>* AppService::Stub::PrepareAsyncCreateOAuthAppRaw(::grpc::ClientContext* context, const ::viam::app::v1::CreateOAuthAppRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::CreateOAuthAppResponse>::Create(channel_.get(), cq, rpcmethod_CreateOAuthApp_, context, request, false); } -::grpc::ClientAsyncReader< ::viam::app::v1::TailRobotPartLogsResponse>* AppService::Stub::AsyncTailRobotPartLogsRaw(::grpc::ClientContext* context, const ::viam::app::v1::TailRobotPartLogsRequest& request, ::grpc::CompletionQueue* cq, void* tag) { - return ::grpc::internal::ClientAsyncReaderFactory< ::viam::app::v1::TailRobotPartLogsResponse>::Create(channel_.get(), cq, rpcmethod_TailRobotPartLogs_, context, request, true, tag); +::grpc::Status AppService::Stub::ReadOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::ReadOAuthAppRequest& request, ::viam::app::v1::ReadOAuthAppResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ReadOAuthApp_, context, request, response); } -::grpc::ClientAsyncReader< ::viam::app::v1::TailRobotPartLogsResponse>* AppService::Stub::PrepareAsyncTailRobotPartLogsRaw(::grpc::ClientContext* context, const ::viam::app::v1::TailRobotPartLogsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncReaderFactory< ::viam::app::v1::TailRobotPartLogsResponse>::Create(channel_.get(), cq, rpcmethod_TailRobotPartLogs_, context, request, false, nullptr); +void AppService::Stub::experimental_async::ReadOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::ReadOAuthAppRequest* request, ::viam::app::v1::ReadOAuthAppResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ReadOAuthApp_, context, request, response, std::move(f)); } -::grpc::Status AppService::Stub::GetRobotPartHistory(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartHistoryRequest& request, ::viam::app::v1::GetRobotPartHistoryResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::GetRobotPartHistoryRequest, ::viam::app::v1::GetRobotPartHistoryResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetRobotPartHistory_, context, request, response); +void AppService::Stub::experimental_async::ReadOAuthApp(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ReadOAuthAppResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ReadOAuthApp_, context, request, response, std::move(f)); } -void AppService::Stub::async::GetRobotPartHistory(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartHistoryRequest* request, ::viam::app::v1::GetRobotPartHistoryResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::GetRobotPartHistoryRequest, ::viam::app::v1::GetRobotPartHistoryResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetRobotPartHistory_, context, request, response, std::move(f)); +void AppService::Stub::experimental_async::ReadOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::ReadOAuthAppRequest* request, ::viam::app::v1::ReadOAuthAppResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ReadOAuthApp_, context, request, response, reactor); } -void AppService::Stub::async::GetRobotPartHistory(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartHistoryRequest* request, ::viam::app::v1::GetRobotPartHistoryResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetRobotPartHistory_, context, request, response, reactor); +void AppService::Stub::experimental_async::ReadOAuthApp(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ReadOAuthAppResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ReadOAuthApp_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotPartHistoryResponse>* AppService::Stub::PrepareAsyncGetRobotPartHistoryRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartHistoryRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::GetRobotPartHistoryResponse, ::viam::app::v1::GetRobotPartHistoryRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetRobotPartHistory_, context, request); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::ReadOAuthAppResponse>* AppService::Stub::AsyncReadOAuthAppRaw(::grpc::ClientContext* context, const ::viam::app::v1::ReadOAuthAppRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::ReadOAuthAppResponse>::Create(channel_.get(), cq, rpcmethod_ReadOAuthApp_, context, request, true); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotPartHistoryResponse>* AppService::Stub::AsyncGetRobotPartHistoryRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartHistoryRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetRobotPartHistoryRaw(context, request, cq); - result->StartCall(); - return result; +::grpc::ClientAsyncResponseReader< ::viam::app::v1::ReadOAuthAppResponse>* AppService::Stub::PrepareAsyncReadOAuthAppRaw(::grpc::ClientContext* context, const ::viam::app::v1::ReadOAuthAppRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::ReadOAuthAppResponse>::Create(channel_.get(), cq, rpcmethod_ReadOAuthApp_, context, request, false); } -::grpc::Status AppService::Stub::UpdateRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotPartRequest& request, ::viam::app::v1::UpdateRobotPartResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::UpdateRobotPartRequest, ::viam::app::v1::UpdateRobotPartResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_UpdateRobotPart_, context, request, response); +::grpc::Status AppService::Stub::UpdateOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::UpdateOAuthAppRequest& request, ::viam::app::v1::UpdateOAuthAppResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_UpdateOAuthApp_, context, request, response); } -void AppService::Stub::async::UpdateRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotPartRequest* request, ::viam::app::v1::UpdateRobotPartResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::UpdateRobotPartRequest, ::viam::app::v1::UpdateRobotPartResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_UpdateRobotPart_, context, request, response, std::move(f)); +void AppService::Stub::experimental_async::UpdateOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::UpdateOAuthAppRequest* request, ::viam::app::v1::UpdateOAuthAppResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateOAuthApp_, context, request, response, std::move(f)); } -void AppService::Stub::async::UpdateRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotPartRequest* request, ::viam::app::v1::UpdateRobotPartResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_UpdateRobotPart_, context, request, response, reactor); +void AppService::Stub::experimental_async::UpdateOAuthApp(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateOAuthAppResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateOAuthApp_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateRobotPartResponse>* AppService::Stub::PrepareAsyncUpdateRobotPartRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotPartRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::UpdateRobotPartResponse, ::viam::app::v1::UpdateRobotPartRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_UpdateRobotPart_, context, request); +void AppService::Stub::experimental_async::UpdateOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::UpdateOAuthAppRequest* request, ::viam::app::v1::UpdateOAuthAppResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateOAuthApp_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateRobotPartResponse>* AppService::Stub::AsyncUpdateRobotPartRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotPartRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncUpdateRobotPartRaw(context, request, cq); - result->StartCall(); - return result; +void AppService::Stub::experimental_async::UpdateOAuthApp(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateOAuthAppResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateOAuthApp_, context, request, response, reactor); } -::grpc::Status AppService::Stub::NewRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotPartRequest& request, ::viam::app::v1::NewRobotPartResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::NewRobotPartRequest, ::viam::app::v1::NewRobotPartResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_NewRobotPart_, context, request, response); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateOAuthAppResponse>* AppService::Stub::AsyncUpdateOAuthAppRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateOAuthAppRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::UpdateOAuthAppResponse>::Create(channel_.get(), cq, rpcmethod_UpdateOAuthApp_, context, request, true); } -void AppService::Stub::async::NewRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotPartRequest* request, ::viam::app::v1::NewRobotPartResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::NewRobotPartRequest, ::viam::app::v1::NewRobotPartResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_NewRobotPart_, context, request, response, std::move(f)); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateOAuthAppResponse>* AppService::Stub::PrepareAsyncUpdateOAuthAppRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateOAuthAppRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::UpdateOAuthAppResponse>::Create(channel_.get(), cq, rpcmethod_UpdateOAuthApp_, context, request, false); } -void AppService::Stub::async::NewRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotPartRequest* request, ::viam::app::v1::NewRobotPartResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_NewRobotPart_, context, request, response, reactor); +::grpc::Status AppService::Stub::DeleteOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOAuthAppRequest& request, ::viam::app::v1::DeleteOAuthAppResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DeleteOAuthApp_, context, request, response); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::NewRobotPartResponse>* AppService::Stub::PrepareAsyncNewRobotPartRaw(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotPartRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::NewRobotPartResponse, ::viam::app::v1::NewRobotPartRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_NewRobotPart_, context, request); +void AppService::Stub::experimental_async::DeleteOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOAuthAppRequest* request, ::viam::app::v1::DeleteOAuthAppResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteOAuthApp_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::NewRobotPartResponse>* AppService::Stub::AsyncNewRobotPartRaw(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotPartRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncNewRobotPartRaw(context, request, cq); - result->StartCall(); - return result; +void AppService::Stub::experimental_async::DeleteOAuthApp(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteOAuthAppResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteOAuthApp_, context, request, response, std::move(f)); } -::grpc::Status AppService::Stub::DeleteRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotPartRequest& request, ::viam::app::v1::DeleteRobotPartResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::DeleteRobotPartRequest, ::viam::app::v1::DeleteRobotPartResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_DeleteRobotPart_, context, request, response); +void AppService::Stub::experimental_async::DeleteOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOAuthAppRequest* request, ::viam::app::v1::DeleteOAuthAppResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteOAuthApp_, context, request, response, reactor); } -void AppService::Stub::async::DeleteRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotPartRequest* request, ::viam::app::v1::DeleteRobotPartResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::DeleteRobotPartRequest, ::viam::app::v1::DeleteRobotPartResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DeleteRobotPart_, context, request, response, std::move(f)); +void AppService::Stub::experimental_async::DeleteOAuthApp(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteOAuthAppResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteOAuthApp_, context, request, response, reactor); } -void AppService::Stub::async::DeleteRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotPartRequest* request, ::viam::app::v1::DeleteRobotPartResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DeleteRobotPart_, context, request, response, reactor); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteOAuthAppResponse>* AppService::Stub::AsyncDeleteOAuthAppRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOAuthAppRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::DeleteOAuthAppResponse>::Create(channel_.get(), cq, rpcmethod_DeleteOAuthApp_, context, request, true); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteRobotPartResponse>* AppService::Stub::PrepareAsyncDeleteRobotPartRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotPartRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::DeleteRobotPartResponse, ::viam::app::v1::DeleteRobotPartRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DeleteRobotPart_, context, request); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteOAuthAppResponse>* AppService::Stub::PrepareAsyncDeleteOAuthAppRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOAuthAppRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::DeleteOAuthAppResponse>::Create(channel_.get(), cq, rpcmethod_DeleteOAuthApp_, context, request, false); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteRobotPartResponse>* AppService::Stub::AsyncDeleteRobotPartRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotPartRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncDeleteRobotPartRaw(context, request, cq); - result->StartCall(); - return result; +::grpc::Status AppService::Stub::ListOAuthApps(::grpc::ClientContext* context, const ::viam::app::v1::ListOAuthAppsRequest& request, ::viam::app::v1::ListOAuthAppsResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListOAuthApps_, context, request, response); } -::grpc::Status AppService::Stub::GetRobotAPIKeys(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotAPIKeysRequest& request, ::viam::app::v1::GetRobotAPIKeysResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::GetRobotAPIKeysRequest, ::viam::app::v1::GetRobotAPIKeysResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetRobotAPIKeys_, context, request, response); +void AppService::Stub::experimental_async::ListOAuthApps(::grpc::ClientContext* context, const ::viam::app::v1::ListOAuthAppsRequest* request, ::viam::app::v1::ListOAuthAppsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListOAuthApps_, context, request, response, std::move(f)); } -void AppService::Stub::async::GetRobotAPIKeys(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotAPIKeysRequest* request, ::viam::app::v1::GetRobotAPIKeysResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::GetRobotAPIKeysRequest, ::viam::app::v1::GetRobotAPIKeysResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetRobotAPIKeys_, context, request, response, std::move(f)); +void AppService::Stub::experimental_async::ListOAuthApps(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListOAuthAppsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListOAuthApps_, context, request, response, std::move(f)); } -void AppService::Stub::async::GetRobotAPIKeys(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotAPIKeysRequest* request, ::viam::app::v1::GetRobotAPIKeysResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetRobotAPIKeys_, context, request, response, reactor); +void AppService::Stub::experimental_async::ListOAuthApps(::grpc::ClientContext* context, const ::viam::app::v1::ListOAuthAppsRequest* request, ::viam::app::v1::ListOAuthAppsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListOAuthApps_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotAPIKeysResponse>* AppService::Stub::PrepareAsyncGetRobotAPIKeysRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotAPIKeysRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::GetRobotAPIKeysResponse, ::viam::app::v1::GetRobotAPIKeysRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetRobotAPIKeys_, context, request); +void AppService::Stub::experimental_async::ListOAuthApps(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListOAuthAppsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListOAuthApps_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotAPIKeysResponse>* AppService::Stub::AsyncGetRobotAPIKeysRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotAPIKeysRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetRobotAPIKeysRaw(context, request, cq); - result->StartCall(); - return result; +::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListOAuthAppsResponse>* AppService::Stub::AsyncListOAuthAppsRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListOAuthAppsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::ListOAuthAppsResponse>::Create(channel_.get(), cq, rpcmethod_ListOAuthApps_, context, request, true); } -::grpc::Status AppService::Stub::MarkPartAsMain(::grpc::ClientContext* context, const ::viam::app::v1::MarkPartAsMainRequest& request, ::viam::app::v1::MarkPartAsMainResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::MarkPartAsMainRequest, ::viam::app::v1::MarkPartAsMainResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_MarkPartAsMain_, context, request, response); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListOAuthAppsResponse>* AppService::Stub::PrepareAsyncListOAuthAppsRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListOAuthAppsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::ListOAuthAppsResponse>::Create(channel_.get(), cq, rpcmethod_ListOAuthApps_, context, request, false); } -void AppService::Stub::async::MarkPartAsMain(::grpc::ClientContext* context, const ::viam::app::v1::MarkPartAsMainRequest* request, ::viam::app::v1::MarkPartAsMainResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::MarkPartAsMainRequest, ::viam::app::v1::MarkPartAsMainResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_MarkPartAsMain_, context, request, response, std::move(f)); +::grpc::Status AppService::Stub::CreateLocation(::grpc::ClientContext* context, const ::viam::app::v1::CreateLocationRequest& request, ::viam::app::v1::CreateLocationResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateLocation_, context, request, response); } -void AppService::Stub::async::MarkPartAsMain(::grpc::ClientContext* context, const ::viam::app::v1::MarkPartAsMainRequest* request, ::viam::app::v1::MarkPartAsMainResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_MarkPartAsMain_, context, request, response, reactor); +void AppService::Stub::experimental_async::CreateLocation(::grpc::ClientContext* context, const ::viam::app::v1::CreateLocationRequest* request, ::viam::app::v1::CreateLocationResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateLocation_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::MarkPartAsMainResponse>* AppService::Stub::PrepareAsyncMarkPartAsMainRaw(::grpc::ClientContext* context, const ::viam::app::v1::MarkPartAsMainRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::MarkPartAsMainResponse, ::viam::app::v1::MarkPartAsMainRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_MarkPartAsMain_, context, request); +void AppService::Stub::experimental_async::CreateLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateLocationResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateLocation_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::MarkPartAsMainResponse>* AppService::Stub::AsyncMarkPartAsMainRaw(::grpc::ClientContext* context, const ::viam::app::v1::MarkPartAsMainRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncMarkPartAsMainRaw(context, request, cq); - result->StartCall(); - return result; +void AppService::Stub::experimental_async::CreateLocation(::grpc::ClientContext* context, const ::viam::app::v1::CreateLocationRequest* request, ::viam::app::v1::CreateLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateLocation_, context, request, response, reactor); } -::grpc::Status AppService::Stub::MarkPartForRestart(::grpc::ClientContext* context, const ::viam::app::v1::MarkPartForRestartRequest& request, ::viam::app::v1::MarkPartForRestartResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::MarkPartForRestartRequest, ::viam::app::v1::MarkPartForRestartResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_MarkPartForRestart_, context, request, response); +void AppService::Stub::experimental_async::CreateLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateLocation_, context, request, response, reactor); } -void AppService::Stub::async::MarkPartForRestart(::grpc::ClientContext* context, const ::viam::app::v1::MarkPartForRestartRequest* request, ::viam::app::v1::MarkPartForRestartResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::MarkPartForRestartRequest, ::viam::app::v1::MarkPartForRestartResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_MarkPartForRestart_, context, request, response, std::move(f)); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::CreateLocationResponse>* AppService::Stub::AsyncCreateLocationRaw(::grpc::ClientContext* context, const ::viam::app::v1::CreateLocationRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::CreateLocationResponse>::Create(channel_.get(), cq, rpcmethod_CreateLocation_, context, request, true); } -void AppService::Stub::async::MarkPartForRestart(::grpc::ClientContext* context, const ::viam::app::v1::MarkPartForRestartRequest* request, ::viam::app::v1::MarkPartForRestartResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_MarkPartForRestart_, context, request, response, reactor); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::CreateLocationResponse>* AppService::Stub::PrepareAsyncCreateLocationRaw(::grpc::ClientContext* context, const ::viam::app::v1::CreateLocationRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::CreateLocationResponse>::Create(channel_.get(), cq, rpcmethod_CreateLocation_, context, request, false); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::MarkPartForRestartResponse>* AppService::Stub::PrepareAsyncMarkPartForRestartRaw(::grpc::ClientContext* context, const ::viam::app::v1::MarkPartForRestartRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::MarkPartForRestartResponse, ::viam::app::v1::MarkPartForRestartRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_MarkPartForRestart_, context, request); +::grpc::Status AppService::Stub::GetLocation(::grpc::ClientContext* context, const ::viam::app::v1::GetLocationRequest& request, ::viam::app::v1::GetLocationResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetLocation_, context, request, response); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::MarkPartForRestartResponse>* AppService::Stub::AsyncMarkPartForRestartRaw(::grpc::ClientContext* context, const ::viam::app::v1::MarkPartForRestartRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncMarkPartForRestartRaw(context, request, cq); - result->StartCall(); - return result; +void AppService::Stub::experimental_async::GetLocation(::grpc::ClientContext* context, const ::viam::app::v1::GetLocationRequest* request, ::viam::app::v1::GetLocationResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetLocation_, context, request, response, std::move(f)); } -::grpc::Status AppService::Stub::CreateRobotPartSecret(::grpc::ClientContext* context, const ::viam::app::v1::CreateRobotPartSecretRequest& request, ::viam::app::v1::CreateRobotPartSecretResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::CreateRobotPartSecretRequest, ::viam::app::v1::CreateRobotPartSecretResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_CreateRobotPartSecret_, context, request, response); +void AppService::Stub::experimental_async::GetLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetLocationResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetLocation_, context, request, response, std::move(f)); } -void AppService::Stub::async::CreateRobotPartSecret(::grpc::ClientContext* context, const ::viam::app::v1::CreateRobotPartSecretRequest* request, ::viam::app::v1::CreateRobotPartSecretResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::CreateRobotPartSecretRequest, ::viam::app::v1::CreateRobotPartSecretResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_CreateRobotPartSecret_, context, request, response, std::move(f)); +void AppService::Stub::experimental_async::GetLocation(::grpc::ClientContext* context, const ::viam::app::v1::GetLocationRequest* request, ::viam::app::v1::GetLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetLocation_, context, request, response, reactor); } -void AppService::Stub::async::CreateRobotPartSecret(::grpc::ClientContext* context, const ::viam::app::v1::CreateRobotPartSecretRequest* request, ::viam::app::v1::CreateRobotPartSecretResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_CreateRobotPartSecret_, context, request, response, reactor); +void AppService::Stub::experimental_async::GetLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetLocation_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::CreateRobotPartSecretResponse>* AppService::Stub::PrepareAsyncCreateRobotPartSecretRaw(::grpc::ClientContext* context, const ::viam::app::v1::CreateRobotPartSecretRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::CreateRobotPartSecretResponse, ::viam::app::v1::CreateRobotPartSecretRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_CreateRobotPartSecret_, context, request); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetLocationResponse>* AppService::Stub::AsyncGetLocationRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetLocationRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::GetLocationResponse>::Create(channel_.get(), cq, rpcmethod_GetLocation_, context, request, true); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::CreateRobotPartSecretResponse>* AppService::Stub::AsyncCreateRobotPartSecretRaw(::grpc::ClientContext* context, const ::viam::app::v1::CreateRobotPartSecretRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncCreateRobotPartSecretRaw(context, request, cq); - result->StartCall(); - return result; +::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetLocationResponse>* AppService::Stub::PrepareAsyncGetLocationRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetLocationRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::GetLocationResponse>::Create(channel_.get(), cq, rpcmethod_GetLocation_, context, request, false); } -::grpc::Status AppService::Stub::DeleteRobotPartSecret(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotPartSecretRequest& request, ::viam::app::v1::DeleteRobotPartSecretResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::DeleteRobotPartSecretRequest, ::viam::app::v1::DeleteRobotPartSecretResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_DeleteRobotPartSecret_, context, request, response); +::grpc::Status AppService::Stub::UpdateLocation(::grpc::ClientContext* context, const ::viam::app::v1::UpdateLocationRequest& request, ::viam::app::v1::UpdateLocationResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_UpdateLocation_, context, request, response); } -void AppService::Stub::async::DeleteRobotPartSecret(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotPartSecretRequest* request, ::viam::app::v1::DeleteRobotPartSecretResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::DeleteRobotPartSecretRequest, ::viam::app::v1::DeleteRobotPartSecretResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DeleteRobotPartSecret_, context, request, response, std::move(f)); +void AppService::Stub::experimental_async::UpdateLocation(::grpc::ClientContext* context, const ::viam::app::v1::UpdateLocationRequest* request, ::viam::app::v1::UpdateLocationResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateLocation_, context, request, response, std::move(f)); } -void AppService::Stub::async::DeleteRobotPartSecret(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotPartSecretRequest* request, ::viam::app::v1::DeleteRobotPartSecretResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DeleteRobotPartSecret_, context, request, response, reactor); +void AppService::Stub::experimental_async::UpdateLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateLocationResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateLocation_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteRobotPartSecretResponse>* AppService::Stub::PrepareAsyncDeleteRobotPartSecretRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotPartSecretRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::DeleteRobotPartSecretResponse, ::viam::app::v1::DeleteRobotPartSecretRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DeleteRobotPartSecret_, context, request); +void AppService::Stub::experimental_async::UpdateLocation(::grpc::ClientContext* context, const ::viam::app::v1::UpdateLocationRequest* request, ::viam::app::v1::UpdateLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateLocation_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteRobotPartSecretResponse>* AppService::Stub::AsyncDeleteRobotPartSecretRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotPartSecretRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncDeleteRobotPartSecretRaw(context, request, cq); - result->StartCall(); - return result; +void AppService::Stub::experimental_async::UpdateLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateLocation_, context, request, response, reactor); } -::grpc::Status AppService::Stub::ListRobots(::grpc::ClientContext* context, const ::viam::app::v1::ListRobotsRequest& request, ::viam::app::v1::ListRobotsResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::ListRobotsRequest, ::viam::app::v1::ListRobotsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ListRobots_, context, request, response); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateLocationResponse>* AppService::Stub::AsyncUpdateLocationRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateLocationRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::UpdateLocationResponse>::Create(channel_.get(), cq, rpcmethod_UpdateLocation_, context, request, true); } -void AppService::Stub::async::ListRobots(::grpc::ClientContext* context, const ::viam::app::v1::ListRobotsRequest* request, ::viam::app::v1::ListRobotsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::ListRobotsRequest, ::viam::app::v1::ListRobotsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListRobots_, context, request, response, std::move(f)); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateLocationResponse>* AppService::Stub::PrepareAsyncUpdateLocationRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateLocationRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::UpdateLocationResponse>::Create(channel_.get(), cq, rpcmethod_UpdateLocation_, context, request, false); } -void AppService::Stub::async::ListRobots(::grpc::ClientContext* context, const ::viam::app::v1::ListRobotsRequest* request, ::viam::app::v1::ListRobotsResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListRobots_, context, request, response, reactor); +::grpc::Status AppService::Stub::DeleteLocation(::grpc::ClientContext* context, const ::viam::app::v1::DeleteLocationRequest& request, ::viam::app::v1::DeleteLocationResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DeleteLocation_, context, request, response); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListRobotsResponse>* AppService::Stub::PrepareAsyncListRobotsRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListRobotsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::ListRobotsResponse, ::viam::app::v1::ListRobotsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ListRobots_, context, request); +void AppService::Stub::experimental_async::DeleteLocation(::grpc::ClientContext* context, const ::viam::app::v1::DeleteLocationRequest* request, ::viam::app::v1::DeleteLocationResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteLocation_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListRobotsResponse>* AppService::Stub::AsyncListRobotsRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListRobotsRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncListRobotsRaw(context, request, cq); - result->StartCall(); - return result; +void AppService::Stub::experimental_async::DeleteLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteLocationResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteLocation_, context, request, response, std::move(f)); } -::grpc::Status AppService::Stub::NewRobot(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotRequest& request, ::viam::app::v1::NewRobotResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::NewRobotRequest, ::viam::app::v1::NewRobotResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_NewRobot_, context, request, response); +void AppService::Stub::experimental_async::DeleteLocation(::grpc::ClientContext* context, const ::viam::app::v1::DeleteLocationRequest* request, ::viam::app::v1::DeleteLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteLocation_, context, request, response, reactor); } -void AppService::Stub::async::NewRobot(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotRequest* request, ::viam::app::v1::NewRobotResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::NewRobotRequest, ::viam::app::v1::NewRobotResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_NewRobot_, context, request, response, std::move(f)); +void AppService::Stub::experimental_async::DeleteLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteLocation_, context, request, response, reactor); } -void AppService::Stub::async::NewRobot(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotRequest* request, ::viam::app::v1::NewRobotResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_NewRobot_, context, request, response, reactor); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteLocationResponse>* AppService::Stub::AsyncDeleteLocationRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteLocationRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::DeleteLocationResponse>::Create(channel_.get(), cq, rpcmethod_DeleteLocation_, context, request, true); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::NewRobotResponse>* AppService::Stub::PrepareAsyncNewRobotRaw(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::NewRobotResponse, ::viam::app::v1::NewRobotRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_NewRobot_, context, request); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteLocationResponse>* AppService::Stub::PrepareAsyncDeleteLocationRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteLocationRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::DeleteLocationResponse>::Create(channel_.get(), cq, rpcmethod_DeleteLocation_, context, request, false); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::NewRobotResponse>* AppService::Stub::AsyncNewRobotRaw(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncNewRobotRaw(context, request, cq); - result->StartCall(); - return result; +::grpc::Status AppService::Stub::ListLocations(::grpc::ClientContext* context, const ::viam::app::v1::ListLocationsRequest& request, ::viam::app::v1::ListLocationsResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListLocations_, context, request, response); } -::grpc::Status AppService::Stub::UpdateRobot(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotRequest& request, ::viam::app::v1::UpdateRobotResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::UpdateRobotRequest, ::viam::app::v1::UpdateRobotResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_UpdateRobot_, context, request, response); +void AppService::Stub::experimental_async::ListLocations(::grpc::ClientContext* context, const ::viam::app::v1::ListLocationsRequest* request, ::viam::app::v1::ListLocationsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListLocations_, context, request, response, std::move(f)); } -void AppService::Stub::async::UpdateRobot(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotRequest* request, ::viam::app::v1::UpdateRobotResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::UpdateRobotRequest, ::viam::app::v1::UpdateRobotResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_UpdateRobot_, context, request, response, std::move(f)); +void AppService::Stub::experimental_async::ListLocations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListLocationsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListLocations_, context, request, response, std::move(f)); } -void AppService::Stub::async::UpdateRobot(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotRequest* request, ::viam::app::v1::UpdateRobotResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_UpdateRobot_, context, request, response, reactor); +void AppService::Stub::experimental_async::ListLocations(::grpc::ClientContext* context, const ::viam::app::v1::ListLocationsRequest* request, ::viam::app::v1::ListLocationsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListLocations_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateRobotResponse>* AppService::Stub::PrepareAsyncUpdateRobotRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::UpdateRobotResponse, ::viam::app::v1::UpdateRobotRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_UpdateRobot_, context, request); +void AppService::Stub::experimental_async::ListLocations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListLocationsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListLocations_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateRobotResponse>* AppService::Stub::AsyncUpdateRobotRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncUpdateRobotRaw(context, request, cq); - result->StartCall(); - return result; +::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListLocationsResponse>* AppService::Stub::AsyncListLocationsRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListLocationsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::ListLocationsResponse>::Create(channel_.get(), cq, rpcmethod_ListLocations_, context, request, true); } -::grpc::Status AppService::Stub::DeleteRobot(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotRequest& request, ::viam::app::v1::DeleteRobotResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::DeleteRobotRequest, ::viam::app::v1::DeleteRobotResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_DeleteRobot_, context, request, response); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListLocationsResponse>* AppService::Stub::PrepareAsyncListLocationsRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListLocationsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::ListLocationsResponse>::Create(channel_.get(), cq, rpcmethod_ListLocations_, context, request, false); } -void AppService::Stub::async::DeleteRobot(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotRequest* request, ::viam::app::v1::DeleteRobotResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::DeleteRobotRequest, ::viam::app::v1::DeleteRobotResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DeleteRobot_, context, request, response, std::move(f)); +::grpc::Status AppService::Stub::ShareLocation(::grpc::ClientContext* context, const ::viam::app::v1::ShareLocationRequest& request, ::viam::app::v1::ShareLocationResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ShareLocation_, context, request, response); } -void AppService::Stub::async::DeleteRobot(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotRequest* request, ::viam::app::v1::DeleteRobotResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DeleteRobot_, context, request, response, reactor); +void AppService::Stub::experimental_async::ShareLocation(::grpc::ClientContext* context, const ::viam::app::v1::ShareLocationRequest* request, ::viam::app::v1::ShareLocationResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ShareLocation_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteRobotResponse>* AppService::Stub::PrepareAsyncDeleteRobotRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::DeleteRobotResponse, ::viam::app::v1::DeleteRobotRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DeleteRobot_, context, request); +void AppService::Stub::experimental_async::ShareLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ShareLocationResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ShareLocation_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteRobotResponse>* AppService::Stub::AsyncDeleteRobotRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncDeleteRobotRaw(context, request, cq); - result->StartCall(); - return result; +void AppService::Stub::experimental_async::ShareLocation(::grpc::ClientContext* context, const ::viam::app::v1::ShareLocationRequest* request, ::viam::app::v1::ShareLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ShareLocation_, context, request, response, reactor); } -::grpc::Status AppService::Stub::ListFragments(::grpc::ClientContext* context, const ::viam::app::v1::ListFragmentsRequest& request, ::viam::app::v1::ListFragmentsResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::ListFragmentsRequest, ::viam::app::v1::ListFragmentsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ListFragments_, context, request, response); +void AppService::Stub::experimental_async::ShareLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ShareLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ShareLocation_, context, request, response, reactor); } -void AppService::Stub::async::ListFragments(::grpc::ClientContext* context, const ::viam::app::v1::ListFragmentsRequest* request, ::viam::app::v1::ListFragmentsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::ListFragmentsRequest, ::viam::app::v1::ListFragmentsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListFragments_, context, request, response, std::move(f)); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::ShareLocationResponse>* AppService::Stub::AsyncShareLocationRaw(::grpc::ClientContext* context, const ::viam::app::v1::ShareLocationRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::ShareLocationResponse>::Create(channel_.get(), cq, rpcmethod_ShareLocation_, context, request, true); } -void AppService::Stub::async::ListFragments(::grpc::ClientContext* context, const ::viam::app::v1::ListFragmentsRequest* request, ::viam::app::v1::ListFragmentsResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListFragments_, context, request, response, reactor); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::ShareLocationResponse>* AppService::Stub::PrepareAsyncShareLocationRaw(::grpc::ClientContext* context, const ::viam::app::v1::ShareLocationRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::ShareLocationResponse>::Create(channel_.get(), cq, rpcmethod_ShareLocation_, context, request, false); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListFragmentsResponse>* AppService::Stub::PrepareAsyncListFragmentsRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListFragmentsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::ListFragmentsResponse, ::viam::app::v1::ListFragmentsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ListFragments_, context, request); +::grpc::Status AppService::Stub::UnshareLocation(::grpc::ClientContext* context, const ::viam::app::v1::UnshareLocationRequest& request, ::viam::app::v1::UnshareLocationResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_UnshareLocation_, context, request, response); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListFragmentsResponse>* AppService::Stub::AsyncListFragmentsRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListFragmentsRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncListFragmentsRaw(context, request, cq); - result->StartCall(); - return result; +void AppService::Stub::experimental_async::UnshareLocation(::grpc::ClientContext* context, const ::viam::app::v1::UnshareLocationRequest* request, ::viam::app::v1::UnshareLocationResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UnshareLocation_, context, request, response, std::move(f)); } -::grpc::Status AppService::Stub::GetFragment(::grpc::ClientContext* context, const ::viam::app::v1::GetFragmentRequest& request, ::viam::app::v1::GetFragmentResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::GetFragmentRequest, ::viam::app::v1::GetFragmentResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetFragment_, context, request, response); +void AppService::Stub::experimental_async::UnshareLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UnshareLocationResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UnshareLocation_, context, request, response, std::move(f)); } -void AppService::Stub::async::GetFragment(::grpc::ClientContext* context, const ::viam::app::v1::GetFragmentRequest* request, ::viam::app::v1::GetFragmentResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::GetFragmentRequest, ::viam::app::v1::GetFragmentResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetFragment_, context, request, response, std::move(f)); +void AppService::Stub::experimental_async::UnshareLocation(::grpc::ClientContext* context, const ::viam::app::v1::UnshareLocationRequest* request, ::viam::app::v1::UnshareLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UnshareLocation_, context, request, response, reactor); } -void AppService::Stub::async::GetFragment(::grpc::ClientContext* context, const ::viam::app::v1::GetFragmentRequest* request, ::viam::app::v1::GetFragmentResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetFragment_, context, request, response, reactor); +void AppService::Stub::experimental_async::UnshareLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UnshareLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UnshareLocation_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetFragmentResponse>* AppService::Stub::PrepareAsyncGetFragmentRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetFragmentRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::GetFragmentResponse, ::viam::app::v1::GetFragmentRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetFragment_, context, request); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::UnshareLocationResponse>* AppService::Stub::AsyncUnshareLocationRaw(::grpc::ClientContext* context, const ::viam::app::v1::UnshareLocationRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::UnshareLocationResponse>::Create(channel_.get(), cq, rpcmethod_UnshareLocation_, context, request, true); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetFragmentResponse>* AppService::Stub::AsyncGetFragmentRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetFragmentRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetFragmentRaw(context, request, cq); - result->StartCall(); - return result; +::grpc::ClientAsyncResponseReader< ::viam::app::v1::UnshareLocationResponse>* AppService::Stub::PrepareAsyncUnshareLocationRaw(::grpc::ClientContext* context, const ::viam::app::v1::UnshareLocationRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::UnshareLocationResponse>::Create(channel_.get(), cq, rpcmethod_UnshareLocation_, context, request, false); } -::grpc::Status AppService::Stub::CreateFragment(::grpc::ClientContext* context, const ::viam::app::v1::CreateFragmentRequest& request, ::viam::app::v1::CreateFragmentResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::CreateFragmentRequest, ::viam::app::v1::CreateFragmentResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_CreateFragment_, context, request, response); +::grpc::Status AppService::Stub::LocationAuth(::grpc::ClientContext* context, const ::viam::app::v1::LocationAuthRequest& request, ::viam::app::v1::LocationAuthResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_LocationAuth_, context, request, response); } -void AppService::Stub::async::CreateFragment(::grpc::ClientContext* context, const ::viam::app::v1::CreateFragmentRequest* request, ::viam::app::v1::CreateFragmentResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::CreateFragmentRequest, ::viam::app::v1::CreateFragmentResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_CreateFragment_, context, request, response, std::move(f)); +void AppService::Stub::experimental_async::LocationAuth(::grpc::ClientContext* context, const ::viam::app::v1::LocationAuthRequest* request, ::viam::app::v1::LocationAuthResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_LocationAuth_, context, request, response, std::move(f)); } -void AppService::Stub::async::CreateFragment(::grpc::ClientContext* context, const ::viam::app::v1::CreateFragmentRequest* request, ::viam::app::v1::CreateFragmentResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_CreateFragment_, context, request, response, reactor); +void AppService::Stub::experimental_async::LocationAuth(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::LocationAuthResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_LocationAuth_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::CreateFragmentResponse>* AppService::Stub::PrepareAsyncCreateFragmentRaw(::grpc::ClientContext* context, const ::viam::app::v1::CreateFragmentRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::CreateFragmentResponse, ::viam::app::v1::CreateFragmentRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_CreateFragment_, context, request); +void AppService::Stub::experimental_async::LocationAuth(::grpc::ClientContext* context, const ::viam::app::v1::LocationAuthRequest* request, ::viam::app::v1::LocationAuthResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_LocationAuth_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::CreateFragmentResponse>* AppService::Stub::AsyncCreateFragmentRaw(::grpc::ClientContext* context, const ::viam::app::v1::CreateFragmentRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncCreateFragmentRaw(context, request, cq); - result->StartCall(); - return result; +void AppService::Stub::experimental_async::LocationAuth(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::LocationAuthResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_LocationAuth_, context, request, response, reactor); } -::grpc::Status AppService::Stub::UpdateFragment(::grpc::ClientContext* context, const ::viam::app::v1::UpdateFragmentRequest& request, ::viam::app::v1::UpdateFragmentResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::UpdateFragmentRequest, ::viam::app::v1::UpdateFragmentResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_UpdateFragment_, context, request, response); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::LocationAuthResponse>* AppService::Stub::AsyncLocationAuthRaw(::grpc::ClientContext* context, const ::viam::app::v1::LocationAuthRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::LocationAuthResponse>::Create(channel_.get(), cq, rpcmethod_LocationAuth_, context, request, true); } -void AppService::Stub::async::UpdateFragment(::grpc::ClientContext* context, const ::viam::app::v1::UpdateFragmentRequest* request, ::viam::app::v1::UpdateFragmentResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::UpdateFragmentRequest, ::viam::app::v1::UpdateFragmentResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_UpdateFragment_, context, request, response, std::move(f)); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::LocationAuthResponse>* AppService::Stub::PrepareAsyncLocationAuthRaw(::grpc::ClientContext* context, const ::viam::app::v1::LocationAuthRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::LocationAuthResponse>::Create(channel_.get(), cq, rpcmethod_LocationAuth_, context, request, false); } -void AppService::Stub::async::UpdateFragment(::grpc::ClientContext* context, const ::viam::app::v1::UpdateFragmentRequest* request, ::viam::app::v1::UpdateFragmentResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_UpdateFragment_, context, request, response, reactor); +::grpc::Status AppService::Stub::CreateLocationSecret(::grpc::ClientContext* context, const ::viam::app::v1::CreateLocationSecretRequest& request, ::viam::app::v1::CreateLocationSecretResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateLocationSecret_, context, request, response); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateFragmentResponse>* AppService::Stub::PrepareAsyncUpdateFragmentRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateFragmentRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::UpdateFragmentResponse, ::viam::app::v1::UpdateFragmentRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_UpdateFragment_, context, request); +void AppService::Stub::experimental_async::CreateLocationSecret(::grpc::ClientContext* context, const ::viam::app::v1::CreateLocationSecretRequest* request, ::viam::app::v1::CreateLocationSecretResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateLocationSecret_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateFragmentResponse>* AppService::Stub::AsyncUpdateFragmentRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateFragmentRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncUpdateFragmentRaw(context, request, cq); - result->StartCall(); - return result; +void AppService::Stub::experimental_async::CreateLocationSecret(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateLocationSecretResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateLocationSecret_, context, request, response, std::move(f)); } -::grpc::Status AppService::Stub::DeleteFragment(::grpc::ClientContext* context, const ::viam::app::v1::DeleteFragmentRequest& request, ::viam::app::v1::DeleteFragmentResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::DeleteFragmentRequest, ::viam::app::v1::DeleteFragmentResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_DeleteFragment_, context, request, response); +void AppService::Stub::experimental_async::CreateLocationSecret(::grpc::ClientContext* context, const ::viam::app::v1::CreateLocationSecretRequest* request, ::viam::app::v1::CreateLocationSecretResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateLocationSecret_, context, request, response, reactor); } -void AppService::Stub::async::DeleteFragment(::grpc::ClientContext* context, const ::viam::app::v1::DeleteFragmentRequest* request, ::viam::app::v1::DeleteFragmentResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::DeleteFragmentRequest, ::viam::app::v1::DeleteFragmentResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DeleteFragment_, context, request, response, std::move(f)); +void AppService::Stub::experimental_async::CreateLocationSecret(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateLocationSecretResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateLocationSecret_, context, request, response, reactor); } -void AppService::Stub::async::DeleteFragment(::grpc::ClientContext* context, const ::viam::app::v1::DeleteFragmentRequest* request, ::viam::app::v1::DeleteFragmentResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DeleteFragment_, context, request, response, reactor); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::CreateLocationSecretResponse>* AppService::Stub::AsyncCreateLocationSecretRaw(::grpc::ClientContext* context, const ::viam::app::v1::CreateLocationSecretRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::CreateLocationSecretResponse>::Create(channel_.get(), cq, rpcmethod_CreateLocationSecret_, context, request, true); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteFragmentResponse>* AppService::Stub::PrepareAsyncDeleteFragmentRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteFragmentRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::DeleteFragmentResponse, ::viam::app::v1::DeleteFragmentRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DeleteFragment_, context, request); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::CreateLocationSecretResponse>* AppService::Stub::PrepareAsyncCreateLocationSecretRaw(::grpc::ClientContext* context, const ::viam::app::v1::CreateLocationSecretRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::CreateLocationSecretResponse>::Create(channel_.get(), cq, rpcmethod_CreateLocationSecret_, context, request, false); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteFragmentResponse>* AppService::Stub::AsyncDeleteFragmentRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteFragmentRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncDeleteFragmentRaw(context, request, cq); - result->StartCall(); - return result; +::grpc::Status AppService::Stub::DeleteLocationSecret(::grpc::ClientContext* context, const ::viam::app::v1::DeleteLocationSecretRequest& request, ::viam::app::v1::DeleteLocationSecretResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DeleteLocationSecret_, context, request, response); } -::grpc::Status AppService::Stub::ListMachineFragments(::grpc::ClientContext* context, const ::viam::app::v1::ListMachineFragmentsRequest& request, ::viam::app::v1::ListMachineFragmentsResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::ListMachineFragmentsRequest, ::viam::app::v1::ListMachineFragmentsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ListMachineFragments_, context, request, response); +void AppService::Stub::experimental_async::DeleteLocationSecret(::grpc::ClientContext* context, const ::viam::app::v1::DeleteLocationSecretRequest* request, ::viam::app::v1::DeleteLocationSecretResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteLocationSecret_, context, request, response, std::move(f)); } -void AppService::Stub::async::ListMachineFragments(::grpc::ClientContext* context, const ::viam::app::v1::ListMachineFragmentsRequest* request, ::viam::app::v1::ListMachineFragmentsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::ListMachineFragmentsRequest, ::viam::app::v1::ListMachineFragmentsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListMachineFragments_, context, request, response, std::move(f)); +void AppService::Stub::experimental_async::DeleteLocationSecret(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteLocationSecretResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteLocationSecret_, context, request, response, std::move(f)); } -void AppService::Stub::async::ListMachineFragments(::grpc::ClientContext* context, const ::viam::app::v1::ListMachineFragmentsRequest* request, ::viam::app::v1::ListMachineFragmentsResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListMachineFragments_, context, request, response, reactor); +void AppService::Stub::experimental_async::DeleteLocationSecret(::grpc::ClientContext* context, const ::viam::app::v1::DeleteLocationSecretRequest* request, ::viam::app::v1::DeleteLocationSecretResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteLocationSecret_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListMachineFragmentsResponse>* AppService::Stub::PrepareAsyncListMachineFragmentsRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListMachineFragmentsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::ListMachineFragmentsResponse, ::viam::app::v1::ListMachineFragmentsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ListMachineFragments_, context, request); +void AppService::Stub::experimental_async::DeleteLocationSecret(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteLocationSecretResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteLocationSecret_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteLocationSecretResponse>* AppService::Stub::AsyncDeleteLocationSecretRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteLocationSecretRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::DeleteLocationSecretResponse>::Create(channel_.get(), cq, rpcmethod_DeleteLocationSecret_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteLocationSecretResponse>* AppService::Stub::PrepareAsyncDeleteLocationSecretRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteLocationSecretRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::DeleteLocationSecretResponse>::Create(channel_.get(), cq, rpcmethod_DeleteLocationSecret_, context, request, false); +} + +::grpc::Status AppService::Stub::GetRobot(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotRequest& request, ::viam::app::v1::GetRobotResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetRobot_, context, request, response); +} + +void AppService::Stub::experimental_async::GetRobot(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotRequest* request, ::viam::app::v1::GetRobotResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetRobot_, context, request, response, std::move(f)); +} + +void AppService::Stub::experimental_async::GetRobot(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRobotResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetRobot_, context, request, response, std::move(f)); +} + +void AppService::Stub::experimental_async::GetRobot(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotRequest* request, ::viam::app::v1::GetRobotResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetRobot_, context, request, response, reactor); +} + +void AppService::Stub::experimental_async::GetRobot(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRobotResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetRobot_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotResponse>* AppService::Stub::AsyncGetRobotRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::GetRobotResponse>::Create(channel_.get(), cq, rpcmethod_GetRobot_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotResponse>* AppService::Stub::PrepareAsyncGetRobotRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::GetRobotResponse>::Create(channel_.get(), cq, rpcmethod_GetRobot_, context, request, false); +} + +::grpc::Status AppService::Stub::GetRoverRentalRobots(::grpc::ClientContext* context, const ::viam::app::v1::GetRoverRentalRobotsRequest& request, ::viam::app::v1::GetRoverRentalRobotsResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetRoverRentalRobots_, context, request, response); +} + +void AppService::Stub::experimental_async::GetRoverRentalRobots(::grpc::ClientContext* context, const ::viam::app::v1::GetRoverRentalRobotsRequest* request, ::viam::app::v1::GetRoverRentalRobotsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetRoverRentalRobots_, context, request, response, std::move(f)); +} + +void AppService::Stub::experimental_async::GetRoverRentalRobots(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRoverRentalRobotsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetRoverRentalRobots_, context, request, response, std::move(f)); +} + +void AppService::Stub::experimental_async::GetRoverRentalRobots(::grpc::ClientContext* context, const ::viam::app::v1::GetRoverRentalRobotsRequest* request, ::viam::app::v1::GetRoverRentalRobotsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetRoverRentalRobots_, context, request, response, reactor); +} + +void AppService::Stub::experimental_async::GetRoverRentalRobots(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRoverRentalRobotsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetRoverRentalRobots_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRoverRentalRobotsResponse>* AppService::Stub::AsyncGetRoverRentalRobotsRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRoverRentalRobotsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::GetRoverRentalRobotsResponse>::Create(channel_.get(), cq, rpcmethod_GetRoverRentalRobots_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRoverRentalRobotsResponse>* AppService::Stub::PrepareAsyncGetRoverRentalRobotsRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRoverRentalRobotsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::GetRoverRentalRobotsResponse>::Create(channel_.get(), cq, rpcmethod_GetRoverRentalRobots_, context, request, false); +} + +::grpc::Status AppService::Stub::GetRobotParts(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartsRequest& request, ::viam::app::v1::GetRobotPartsResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetRobotParts_, context, request, response); +} + +void AppService::Stub::experimental_async::GetRobotParts(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartsRequest* request, ::viam::app::v1::GetRobotPartsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetRobotParts_, context, request, response, std::move(f)); +} + +void AppService::Stub::experimental_async::GetRobotParts(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRobotPartsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetRobotParts_, context, request, response, std::move(f)); +} + +void AppService::Stub::experimental_async::GetRobotParts(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartsRequest* request, ::viam::app::v1::GetRobotPartsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetRobotParts_, context, request, response, reactor); +} + +void AppService::Stub::experimental_async::GetRobotParts(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRobotPartsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetRobotParts_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotPartsResponse>* AppService::Stub::AsyncGetRobotPartsRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::GetRobotPartsResponse>::Create(channel_.get(), cq, rpcmethod_GetRobotParts_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotPartsResponse>* AppService::Stub::PrepareAsyncGetRobotPartsRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::GetRobotPartsResponse>::Create(channel_.get(), cq, rpcmethod_GetRobotParts_, context, request, false); +} + +::grpc::Status AppService::Stub::GetRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartRequest& request, ::viam::app::v1::GetRobotPartResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetRobotPart_, context, request, response); +} + +void AppService::Stub::experimental_async::GetRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartRequest* request, ::viam::app::v1::GetRobotPartResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetRobotPart_, context, request, response, std::move(f)); +} + +void AppService::Stub::experimental_async::GetRobotPart(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRobotPartResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetRobotPart_, context, request, response, std::move(f)); +} + +void AppService::Stub::experimental_async::GetRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartRequest* request, ::viam::app::v1::GetRobotPartResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetRobotPart_, context, request, response, reactor); +} + +void AppService::Stub::experimental_async::GetRobotPart(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRobotPartResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetRobotPart_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotPartResponse>* AppService::Stub::AsyncGetRobotPartRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::GetRobotPartResponse>::Create(channel_.get(), cq, rpcmethod_GetRobotPart_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotPartResponse>* AppService::Stub::PrepareAsyncGetRobotPartRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::GetRobotPartResponse>::Create(channel_.get(), cq, rpcmethod_GetRobotPart_, context, request, false); +} + +::grpc::Status AppService::Stub::GetRobotPartLogs(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartLogsRequest& request, ::viam::app::v1::GetRobotPartLogsResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetRobotPartLogs_, context, request, response); +} + +void AppService::Stub::experimental_async::GetRobotPartLogs(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartLogsRequest* request, ::viam::app::v1::GetRobotPartLogsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetRobotPartLogs_, context, request, response, std::move(f)); +} + +void AppService::Stub::experimental_async::GetRobotPartLogs(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRobotPartLogsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetRobotPartLogs_, context, request, response, std::move(f)); +} + +void AppService::Stub::experimental_async::GetRobotPartLogs(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartLogsRequest* request, ::viam::app::v1::GetRobotPartLogsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetRobotPartLogs_, context, request, response, reactor); +} + +void AppService::Stub::experimental_async::GetRobotPartLogs(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRobotPartLogsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetRobotPartLogs_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotPartLogsResponse>* AppService::Stub::AsyncGetRobotPartLogsRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartLogsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::GetRobotPartLogsResponse>::Create(channel_.get(), cq, rpcmethod_GetRobotPartLogs_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotPartLogsResponse>* AppService::Stub::PrepareAsyncGetRobotPartLogsRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartLogsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::GetRobotPartLogsResponse>::Create(channel_.get(), cq, rpcmethod_GetRobotPartLogs_, context, request, false); +} + +::grpc::ClientReader< ::viam::app::v1::TailRobotPartLogsResponse>* AppService::Stub::TailRobotPartLogsRaw(::grpc::ClientContext* context, const ::viam::app::v1::TailRobotPartLogsRequest& request) { + return ::grpc_impl::internal::ClientReaderFactory< ::viam::app::v1::TailRobotPartLogsResponse>::Create(channel_.get(), rpcmethod_TailRobotPartLogs_, context, request); +} + +void AppService::Stub::experimental_async::TailRobotPartLogs(::grpc::ClientContext* context, ::viam::app::v1::TailRobotPartLogsRequest* request, ::grpc::experimental::ClientReadReactor< ::viam::app::v1::TailRobotPartLogsResponse>* reactor) { + ::grpc_impl::internal::ClientCallbackReaderFactory< ::viam::app::v1::TailRobotPartLogsResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_TailRobotPartLogs_, context, request, reactor); +} + +::grpc::ClientAsyncReader< ::viam::app::v1::TailRobotPartLogsResponse>* AppService::Stub::AsyncTailRobotPartLogsRaw(::grpc::ClientContext* context, const ::viam::app::v1::TailRobotPartLogsRequest& request, ::grpc::CompletionQueue* cq, void* tag) { + return ::grpc_impl::internal::ClientAsyncReaderFactory< ::viam::app::v1::TailRobotPartLogsResponse>::Create(channel_.get(), cq, rpcmethod_TailRobotPartLogs_, context, request, true, tag); +} + +::grpc::ClientAsyncReader< ::viam::app::v1::TailRobotPartLogsResponse>* AppService::Stub::PrepareAsyncTailRobotPartLogsRaw(::grpc::ClientContext* context, const ::viam::app::v1::TailRobotPartLogsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncReaderFactory< ::viam::app::v1::TailRobotPartLogsResponse>::Create(channel_.get(), cq, rpcmethod_TailRobotPartLogs_, context, request, false, nullptr); +} + +::grpc::Status AppService::Stub::GetRobotPartHistory(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartHistoryRequest& request, ::viam::app::v1::GetRobotPartHistoryResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetRobotPartHistory_, context, request, response); +} + +void AppService::Stub::experimental_async::GetRobotPartHistory(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartHistoryRequest* request, ::viam::app::v1::GetRobotPartHistoryResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetRobotPartHistory_, context, request, response, std::move(f)); +} + +void AppService::Stub::experimental_async::GetRobotPartHistory(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRobotPartHistoryResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetRobotPartHistory_, context, request, response, std::move(f)); +} + +void AppService::Stub::experimental_async::GetRobotPartHistory(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartHistoryRequest* request, ::viam::app::v1::GetRobotPartHistoryResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetRobotPartHistory_, context, request, response, reactor); +} + +void AppService::Stub::experimental_async::GetRobotPartHistory(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRobotPartHistoryResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetRobotPartHistory_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotPartHistoryResponse>* AppService::Stub::AsyncGetRobotPartHistoryRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartHistoryRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::GetRobotPartHistoryResponse>::Create(channel_.get(), cq, rpcmethod_GetRobotPartHistory_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotPartHistoryResponse>* AppService::Stub::PrepareAsyncGetRobotPartHistoryRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartHistoryRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::GetRobotPartHistoryResponse>::Create(channel_.get(), cq, rpcmethod_GetRobotPartHistory_, context, request, false); +} + +::grpc::Status AppService::Stub::UpdateRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotPartRequest& request, ::viam::app::v1::UpdateRobotPartResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_UpdateRobotPart_, context, request, response); +} + +void AppService::Stub::experimental_async::UpdateRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotPartRequest* request, ::viam::app::v1::UpdateRobotPartResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateRobotPart_, context, request, response, std::move(f)); +} + +void AppService::Stub::experimental_async::UpdateRobotPart(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateRobotPartResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateRobotPart_, context, request, response, std::move(f)); +} + +void AppService::Stub::experimental_async::UpdateRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotPartRequest* request, ::viam::app::v1::UpdateRobotPartResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateRobotPart_, context, request, response, reactor); +} + +void AppService::Stub::experimental_async::UpdateRobotPart(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateRobotPartResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateRobotPart_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateRobotPartResponse>* AppService::Stub::AsyncUpdateRobotPartRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotPartRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::UpdateRobotPartResponse>::Create(channel_.get(), cq, rpcmethod_UpdateRobotPart_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateRobotPartResponse>* AppService::Stub::PrepareAsyncUpdateRobotPartRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotPartRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::UpdateRobotPartResponse>::Create(channel_.get(), cq, rpcmethod_UpdateRobotPart_, context, request, false); +} + +::grpc::Status AppService::Stub::NewRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotPartRequest& request, ::viam::app::v1::NewRobotPartResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_NewRobotPart_, context, request, response); +} + +void AppService::Stub::experimental_async::NewRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotPartRequest* request, ::viam::app::v1::NewRobotPartResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_NewRobotPart_, context, request, response, std::move(f)); +} + +void AppService::Stub::experimental_async::NewRobotPart(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::NewRobotPartResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_NewRobotPart_, context, request, response, std::move(f)); +} + +void AppService::Stub::experimental_async::NewRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotPartRequest* request, ::viam::app::v1::NewRobotPartResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_NewRobotPart_, context, request, response, reactor); +} + +void AppService::Stub::experimental_async::NewRobotPart(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::NewRobotPartResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_NewRobotPart_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::NewRobotPartResponse>* AppService::Stub::AsyncNewRobotPartRaw(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotPartRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::NewRobotPartResponse>::Create(channel_.get(), cq, rpcmethod_NewRobotPart_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::NewRobotPartResponse>* AppService::Stub::PrepareAsyncNewRobotPartRaw(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotPartRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::NewRobotPartResponse>::Create(channel_.get(), cq, rpcmethod_NewRobotPart_, context, request, false); +} + +::grpc::Status AppService::Stub::DeleteRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotPartRequest& request, ::viam::app::v1::DeleteRobotPartResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DeleteRobotPart_, context, request, response); +} + +void AppService::Stub::experimental_async::DeleteRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotPartRequest* request, ::viam::app::v1::DeleteRobotPartResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteRobotPart_, context, request, response, std::move(f)); +} + +void AppService::Stub::experimental_async::DeleteRobotPart(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteRobotPartResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteRobotPart_, context, request, response, std::move(f)); +} + +void AppService::Stub::experimental_async::DeleteRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotPartRequest* request, ::viam::app::v1::DeleteRobotPartResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteRobotPart_, context, request, response, reactor); +} + +void AppService::Stub::experimental_async::DeleteRobotPart(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteRobotPartResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteRobotPart_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteRobotPartResponse>* AppService::Stub::AsyncDeleteRobotPartRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotPartRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::DeleteRobotPartResponse>::Create(channel_.get(), cq, rpcmethod_DeleteRobotPart_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteRobotPartResponse>* AppService::Stub::PrepareAsyncDeleteRobotPartRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotPartRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::DeleteRobotPartResponse>::Create(channel_.get(), cq, rpcmethod_DeleteRobotPart_, context, request, false); +} + +::grpc::Status AppService::Stub::GetRobotAPIKeys(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotAPIKeysRequest& request, ::viam::app::v1::GetRobotAPIKeysResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetRobotAPIKeys_, context, request, response); +} + +void AppService::Stub::experimental_async::GetRobotAPIKeys(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotAPIKeysRequest* request, ::viam::app::v1::GetRobotAPIKeysResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetRobotAPIKeys_, context, request, response, std::move(f)); +} + +void AppService::Stub::experimental_async::GetRobotAPIKeys(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRobotAPIKeysResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetRobotAPIKeys_, context, request, response, std::move(f)); +} + +void AppService::Stub::experimental_async::GetRobotAPIKeys(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotAPIKeysRequest* request, ::viam::app::v1::GetRobotAPIKeysResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetRobotAPIKeys_, context, request, response, reactor); +} + +void AppService::Stub::experimental_async::GetRobotAPIKeys(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRobotAPIKeysResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetRobotAPIKeys_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotAPIKeysResponse>* AppService::Stub::AsyncGetRobotAPIKeysRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotAPIKeysRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::GetRobotAPIKeysResponse>::Create(channel_.get(), cq, rpcmethod_GetRobotAPIKeys_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRobotAPIKeysResponse>* AppService::Stub::PrepareAsyncGetRobotAPIKeysRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotAPIKeysRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::GetRobotAPIKeysResponse>::Create(channel_.get(), cq, rpcmethod_GetRobotAPIKeys_, context, request, false); +} + +::grpc::Status AppService::Stub::MarkPartAsMain(::grpc::ClientContext* context, const ::viam::app::v1::MarkPartAsMainRequest& request, ::viam::app::v1::MarkPartAsMainResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_MarkPartAsMain_, context, request, response); +} + +void AppService::Stub::experimental_async::MarkPartAsMain(::grpc::ClientContext* context, const ::viam::app::v1::MarkPartAsMainRequest* request, ::viam::app::v1::MarkPartAsMainResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_MarkPartAsMain_, context, request, response, std::move(f)); +} + +void AppService::Stub::experimental_async::MarkPartAsMain(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::MarkPartAsMainResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_MarkPartAsMain_, context, request, response, std::move(f)); +} + +void AppService::Stub::experimental_async::MarkPartAsMain(::grpc::ClientContext* context, const ::viam::app::v1::MarkPartAsMainRequest* request, ::viam::app::v1::MarkPartAsMainResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_MarkPartAsMain_, context, request, response, reactor); +} + +void AppService::Stub::experimental_async::MarkPartAsMain(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::MarkPartAsMainResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_MarkPartAsMain_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::MarkPartAsMainResponse>* AppService::Stub::AsyncMarkPartAsMainRaw(::grpc::ClientContext* context, const ::viam::app::v1::MarkPartAsMainRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::MarkPartAsMainResponse>::Create(channel_.get(), cq, rpcmethod_MarkPartAsMain_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::MarkPartAsMainResponse>* AppService::Stub::PrepareAsyncMarkPartAsMainRaw(::grpc::ClientContext* context, const ::viam::app::v1::MarkPartAsMainRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::MarkPartAsMainResponse>::Create(channel_.get(), cq, rpcmethod_MarkPartAsMain_, context, request, false); +} + +::grpc::Status AppService::Stub::MarkPartForRestart(::grpc::ClientContext* context, const ::viam::app::v1::MarkPartForRestartRequest& request, ::viam::app::v1::MarkPartForRestartResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_MarkPartForRestart_, context, request, response); +} + +void AppService::Stub::experimental_async::MarkPartForRestart(::grpc::ClientContext* context, const ::viam::app::v1::MarkPartForRestartRequest* request, ::viam::app::v1::MarkPartForRestartResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_MarkPartForRestart_, context, request, response, std::move(f)); +} + +void AppService::Stub::experimental_async::MarkPartForRestart(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::MarkPartForRestartResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_MarkPartForRestart_, context, request, response, std::move(f)); +} + +void AppService::Stub::experimental_async::MarkPartForRestart(::grpc::ClientContext* context, const ::viam::app::v1::MarkPartForRestartRequest* request, ::viam::app::v1::MarkPartForRestartResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_MarkPartForRestart_, context, request, response, reactor); +} + +void AppService::Stub::experimental_async::MarkPartForRestart(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::MarkPartForRestartResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_MarkPartForRestart_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::MarkPartForRestartResponse>* AppService::Stub::AsyncMarkPartForRestartRaw(::grpc::ClientContext* context, const ::viam::app::v1::MarkPartForRestartRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::MarkPartForRestartResponse>::Create(channel_.get(), cq, rpcmethod_MarkPartForRestart_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::MarkPartForRestartResponse>* AppService::Stub::PrepareAsyncMarkPartForRestartRaw(::grpc::ClientContext* context, const ::viam::app::v1::MarkPartForRestartRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::MarkPartForRestartResponse>::Create(channel_.get(), cq, rpcmethod_MarkPartForRestart_, context, request, false); +} + +::grpc::Status AppService::Stub::CreateRobotPartSecret(::grpc::ClientContext* context, const ::viam::app::v1::CreateRobotPartSecretRequest& request, ::viam::app::v1::CreateRobotPartSecretResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateRobotPartSecret_, context, request, response); +} + +void AppService::Stub::experimental_async::CreateRobotPartSecret(::grpc::ClientContext* context, const ::viam::app::v1::CreateRobotPartSecretRequest* request, ::viam::app::v1::CreateRobotPartSecretResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateRobotPartSecret_, context, request, response, std::move(f)); +} + +void AppService::Stub::experimental_async::CreateRobotPartSecret(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateRobotPartSecretResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateRobotPartSecret_, context, request, response, std::move(f)); +} + +void AppService::Stub::experimental_async::CreateRobotPartSecret(::grpc::ClientContext* context, const ::viam::app::v1::CreateRobotPartSecretRequest* request, ::viam::app::v1::CreateRobotPartSecretResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateRobotPartSecret_, context, request, response, reactor); +} + +void AppService::Stub::experimental_async::CreateRobotPartSecret(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateRobotPartSecretResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateRobotPartSecret_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::CreateRobotPartSecretResponse>* AppService::Stub::AsyncCreateRobotPartSecretRaw(::grpc::ClientContext* context, const ::viam::app::v1::CreateRobotPartSecretRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::CreateRobotPartSecretResponse>::Create(channel_.get(), cq, rpcmethod_CreateRobotPartSecret_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::CreateRobotPartSecretResponse>* AppService::Stub::PrepareAsyncCreateRobotPartSecretRaw(::grpc::ClientContext* context, const ::viam::app::v1::CreateRobotPartSecretRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::CreateRobotPartSecretResponse>::Create(channel_.get(), cq, rpcmethod_CreateRobotPartSecret_, context, request, false); +} + +::grpc::Status AppService::Stub::DeleteRobotPartSecret(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotPartSecretRequest& request, ::viam::app::v1::DeleteRobotPartSecretResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DeleteRobotPartSecret_, context, request, response); +} + +void AppService::Stub::experimental_async::DeleteRobotPartSecret(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotPartSecretRequest* request, ::viam::app::v1::DeleteRobotPartSecretResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteRobotPartSecret_, context, request, response, std::move(f)); +} + +void AppService::Stub::experimental_async::DeleteRobotPartSecret(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteRobotPartSecretResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteRobotPartSecret_, context, request, response, std::move(f)); +} + +void AppService::Stub::experimental_async::DeleteRobotPartSecret(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotPartSecretRequest* request, ::viam::app::v1::DeleteRobotPartSecretResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteRobotPartSecret_, context, request, response, reactor); +} + +void AppService::Stub::experimental_async::DeleteRobotPartSecret(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteRobotPartSecretResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteRobotPartSecret_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteRobotPartSecretResponse>* AppService::Stub::AsyncDeleteRobotPartSecretRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotPartSecretRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::DeleteRobotPartSecretResponse>::Create(channel_.get(), cq, rpcmethod_DeleteRobotPartSecret_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteRobotPartSecretResponse>* AppService::Stub::PrepareAsyncDeleteRobotPartSecretRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotPartSecretRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::DeleteRobotPartSecretResponse>::Create(channel_.get(), cq, rpcmethod_DeleteRobotPartSecret_, context, request, false); +} + +::grpc::Status AppService::Stub::ListRobots(::grpc::ClientContext* context, const ::viam::app::v1::ListRobotsRequest& request, ::viam::app::v1::ListRobotsResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListRobots_, context, request, response); +} + +void AppService::Stub::experimental_async::ListRobots(::grpc::ClientContext* context, const ::viam::app::v1::ListRobotsRequest* request, ::viam::app::v1::ListRobotsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListRobots_, context, request, response, std::move(f)); +} + +void AppService::Stub::experimental_async::ListRobots(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListRobotsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListRobots_, context, request, response, std::move(f)); +} + +void AppService::Stub::experimental_async::ListRobots(::grpc::ClientContext* context, const ::viam::app::v1::ListRobotsRequest* request, ::viam::app::v1::ListRobotsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListRobots_, context, request, response, reactor); +} + +void AppService::Stub::experimental_async::ListRobots(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListRobotsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListRobots_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListRobotsResponse>* AppService::Stub::AsyncListRobotsRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListRobotsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::ListRobotsResponse>::Create(channel_.get(), cq, rpcmethod_ListRobots_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListRobotsResponse>* AppService::Stub::PrepareAsyncListRobotsRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListRobotsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::ListRobotsResponse>::Create(channel_.get(), cq, rpcmethod_ListRobots_, context, request, false); +} + +::grpc::Status AppService::Stub::NewRobot(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotRequest& request, ::viam::app::v1::NewRobotResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_NewRobot_, context, request, response); +} + +void AppService::Stub::experimental_async::NewRobot(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotRequest* request, ::viam::app::v1::NewRobotResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_NewRobot_, context, request, response, std::move(f)); +} + +void AppService::Stub::experimental_async::NewRobot(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::NewRobotResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_NewRobot_, context, request, response, std::move(f)); +} + +void AppService::Stub::experimental_async::NewRobot(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotRequest* request, ::viam::app::v1::NewRobotResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_NewRobot_, context, request, response, reactor); +} + +void AppService::Stub::experimental_async::NewRobot(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::NewRobotResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_NewRobot_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::NewRobotResponse>* AppService::Stub::AsyncNewRobotRaw(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::NewRobotResponse>::Create(channel_.get(), cq, rpcmethod_NewRobot_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::NewRobotResponse>* AppService::Stub::PrepareAsyncNewRobotRaw(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::NewRobotResponse>::Create(channel_.get(), cq, rpcmethod_NewRobot_, context, request, false); +} + +::grpc::Status AppService::Stub::UpdateRobot(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotRequest& request, ::viam::app::v1::UpdateRobotResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_UpdateRobot_, context, request, response); +} + +void AppService::Stub::experimental_async::UpdateRobot(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotRequest* request, ::viam::app::v1::UpdateRobotResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateRobot_, context, request, response, std::move(f)); +} + +void AppService::Stub::experimental_async::UpdateRobot(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateRobotResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateRobot_, context, request, response, std::move(f)); +} + +void AppService::Stub::experimental_async::UpdateRobot(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotRequest* request, ::viam::app::v1::UpdateRobotResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateRobot_, context, request, response, reactor); +} + +void AppService::Stub::experimental_async::UpdateRobot(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateRobotResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateRobot_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateRobotResponse>* AppService::Stub::AsyncUpdateRobotRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::UpdateRobotResponse>::Create(channel_.get(), cq, rpcmethod_UpdateRobot_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateRobotResponse>* AppService::Stub::PrepareAsyncUpdateRobotRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::UpdateRobotResponse>::Create(channel_.get(), cq, rpcmethod_UpdateRobot_, context, request, false); +} + +::grpc::Status AppService::Stub::DeleteRobot(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotRequest& request, ::viam::app::v1::DeleteRobotResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DeleteRobot_, context, request, response); +} + +void AppService::Stub::experimental_async::DeleteRobot(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotRequest* request, ::viam::app::v1::DeleteRobotResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteRobot_, context, request, response, std::move(f)); +} + +void AppService::Stub::experimental_async::DeleteRobot(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteRobotResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteRobot_, context, request, response, std::move(f)); +} + +void AppService::Stub::experimental_async::DeleteRobot(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotRequest* request, ::viam::app::v1::DeleteRobotResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteRobot_, context, request, response, reactor); +} + +void AppService::Stub::experimental_async::DeleteRobot(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteRobotResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteRobot_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteRobotResponse>* AppService::Stub::AsyncDeleteRobotRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::DeleteRobotResponse>::Create(channel_.get(), cq, rpcmethod_DeleteRobot_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteRobotResponse>* AppService::Stub::PrepareAsyncDeleteRobotRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::DeleteRobotResponse>::Create(channel_.get(), cq, rpcmethod_DeleteRobot_, context, request, false); +} + +::grpc::Status AppService::Stub::ListFragments(::grpc::ClientContext* context, const ::viam::app::v1::ListFragmentsRequest& request, ::viam::app::v1::ListFragmentsResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListFragments_, context, request, response); +} + +void AppService::Stub::experimental_async::ListFragments(::grpc::ClientContext* context, const ::viam::app::v1::ListFragmentsRequest* request, ::viam::app::v1::ListFragmentsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListFragments_, context, request, response, std::move(f)); +} + +void AppService::Stub::experimental_async::ListFragments(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListFragmentsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListFragments_, context, request, response, std::move(f)); +} + +void AppService::Stub::experimental_async::ListFragments(::grpc::ClientContext* context, const ::viam::app::v1::ListFragmentsRequest* request, ::viam::app::v1::ListFragmentsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListFragments_, context, request, response, reactor); +} + +void AppService::Stub::experimental_async::ListFragments(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListFragmentsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListFragments_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListFragmentsResponse>* AppService::Stub::AsyncListFragmentsRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListFragmentsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::ListFragmentsResponse>::Create(channel_.get(), cq, rpcmethod_ListFragments_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListFragmentsResponse>* AppService::Stub::PrepareAsyncListFragmentsRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListFragmentsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::ListFragmentsResponse>::Create(channel_.get(), cq, rpcmethod_ListFragments_, context, request, false); +} + +::grpc::Status AppService::Stub::GetFragment(::grpc::ClientContext* context, const ::viam::app::v1::GetFragmentRequest& request, ::viam::app::v1::GetFragmentResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetFragment_, context, request, response); +} + +void AppService::Stub::experimental_async::GetFragment(::grpc::ClientContext* context, const ::viam::app::v1::GetFragmentRequest* request, ::viam::app::v1::GetFragmentResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetFragment_, context, request, response, std::move(f)); +} + +void AppService::Stub::experimental_async::GetFragment(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetFragmentResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetFragment_, context, request, response, std::move(f)); +} + +void AppService::Stub::experimental_async::GetFragment(::grpc::ClientContext* context, const ::viam::app::v1::GetFragmentRequest* request, ::viam::app::v1::GetFragmentResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetFragment_, context, request, response, reactor); +} + +void AppService::Stub::experimental_async::GetFragment(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetFragmentResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetFragment_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetFragmentResponse>* AppService::Stub::AsyncGetFragmentRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetFragmentRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::GetFragmentResponse>::Create(channel_.get(), cq, rpcmethod_GetFragment_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetFragmentResponse>* AppService::Stub::PrepareAsyncGetFragmentRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetFragmentRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::GetFragmentResponse>::Create(channel_.get(), cq, rpcmethod_GetFragment_, context, request, false); +} + +::grpc::Status AppService::Stub::CreateFragment(::grpc::ClientContext* context, const ::viam::app::v1::CreateFragmentRequest& request, ::viam::app::v1::CreateFragmentResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateFragment_, context, request, response); +} + +void AppService::Stub::experimental_async::CreateFragment(::grpc::ClientContext* context, const ::viam::app::v1::CreateFragmentRequest* request, ::viam::app::v1::CreateFragmentResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateFragment_, context, request, response, std::move(f)); +} + +void AppService::Stub::experimental_async::CreateFragment(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateFragmentResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateFragment_, context, request, response, std::move(f)); +} + +void AppService::Stub::experimental_async::CreateFragment(::grpc::ClientContext* context, const ::viam::app::v1::CreateFragmentRequest* request, ::viam::app::v1::CreateFragmentResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateFragment_, context, request, response, reactor); +} + +void AppService::Stub::experimental_async::CreateFragment(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateFragmentResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateFragment_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::CreateFragmentResponse>* AppService::Stub::AsyncCreateFragmentRaw(::grpc::ClientContext* context, const ::viam::app::v1::CreateFragmentRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::CreateFragmentResponse>::Create(channel_.get(), cq, rpcmethod_CreateFragment_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::CreateFragmentResponse>* AppService::Stub::PrepareAsyncCreateFragmentRaw(::grpc::ClientContext* context, const ::viam::app::v1::CreateFragmentRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::CreateFragmentResponse>::Create(channel_.get(), cq, rpcmethod_CreateFragment_, context, request, false); +} + +::grpc::Status AppService::Stub::UpdateFragment(::grpc::ClientContext* context, const ::viam::app::v1::UpdateFragmentRequest& request, ::viam::app::v1::UpdateFragmentResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_UpdateFragment_, context, request, response); +} + +void AppService::Stub::experimental_async::UpdateFragment(::grpc::ClientContext* context, const ::viam::app::v1::UpdateFragmentRequest* request, ::viam::app::v1::UpdateFragmentResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateFragment_, context, request, response, std::move(f)); +} + +void AppService::Stub::experimental_async::UpdateFragment(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateFragmentResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateFragment_, context, request, response, std::move(f)); +} + +void AppService::Stub::experimental_async::UpdateFragment(::grpc::ClientContext* context, const ::viam::app::v1::UpdateFragmentRequest* request, ::viam::app::v1::UpdateFragmentResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateFragment_, context, request, response, reactor); +} + +void AppService::Stub::experimental_async::UpdateFragment(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateFragmentResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateFragment_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateFragmentResponse>* AppService::Stub::AsyncUpdateFragmentRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateFragmentRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::UpdateFragmentResponse>::Create(channel_.get(), cq, rpcmethod_UpdateFragment_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateFragmentResponse>* AppService::Stub::PrepareAsyncUpdateFragmentRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateFragmentRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::UpdateFragmentResponse>::Create(channel_.get(), cq, rpcmethod_UpdateFragment_, context, request, false); +} + +::grpc::Status AppService::Stub::DeleteFragment(::grpc::ClientContext* context, const ::viam::app::v1::DeleteFragmentRequest& request, ::viam::app::v1::DeleteFragmentResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DeleteFragment_, context, request, response); +} + +void AppService::Stub::experimental_async::DeleteFragment(::grpc::ClientContext* context, const ::viam::app::v1::DeleteFragmentRequest* request, ::viam::app::v1::DeleteFragmentResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteFragment_, context, request, response, std::move(f)); +} + +void AppService::Stub::experimental_async::DeleteFragment(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteFragmentResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteFragment_, context, request, response, std::move(f)); +} + +void AppService::Stub::experimental_async::DeleteFragment(::grpc::ClientContext* context, const ::viam::app::v1::DeleteFragmentRequest* request, ::viam::app::v1::DeleteFragmentResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteFragment_, context, request, response, reactor); +} + +void AppService::Stub::experimental_async::DeleteFragment(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteFragmentResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteFragment_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteFragmentResponse>* AppService::Stub::AsyncDeleteFragmentRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteFragmentRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::DeleteFragmentResponse>::Create(channel_.get(), cq, rpcmethod_DeleteFragment_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteFragmentResponse>* AppService::Stub::PrepareAsyncDeleteFragmentRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteFragmentRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::DeleteFragmentResponse>::Create(channel_.get(), cq, rpcmethod_DeleteFragment_, context, request, false); +} + +::grpc::Status AppService::Stub::ListMachineFragments(::grpc::ClientContext* context, const ::viam::app::v1::ListMachineFragmentsRequest& request, ::viam::app::v1::ListMachineFragmentsResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListMachineFragments_, context, request, response); +} + +void AppService::Stub::experimental_async::ListMachineFragments(::grpc::ClientContext* context, const ::viam::app::v1::ListMachineFragmentsRequest* request, ::viam::app::v1::ListMachineFragmentsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListMachineFragments_, context, request, response, std::move(f)); +} + +void AppService::Stub::experimental_async::ListMachineFragments(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListMachineFragmentsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListMachineFragments_, context, request, response, std::move(f)); +} + +void AppService::Stub::experimental_async::ListMachineFragments(::grpc::ClientContext* context, const ::viam::app::v1::ListMachineFragmentsRequest* request, ::viam::app::v1::ListMachineFragmentsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListMachineFragments_, context, request, response, reactor); +} + +void AppService::Stub::experimental_async::ListMachineFragments(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListMachineFragmentsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListMachineFragments_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListMachineFragmentsResponse>* AppService::Stub::AsyncListMachineFragmentsRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListMachineFragmentsRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncListMachineFragmentsRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::ListMachineFragmentsResponse>::Create(channel_.get(), cq, rpcmethod_ListMachineFragments_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListMachineFragmentsResponse>* AppService::Stub::PrepareAsyncListMachineFragmentsRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListMachineFragmentsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::ListMachineFragmentsResponse>::Create(channel_.get(), cq, rpcmethod_ListMachineFragments_, context, request, false); } ::grpc::Status AppService::Stub::GetFragmentHistory(::grpc::ClientContext* context, const ::viam::app::v1::GetFragmentHistoryRequest& request, ::viam::app::v1::GetFragmentHistoryResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::GetFragmentHistoryRequest, ::viam::app::v1::GetFragmentHistoryResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetFragmentHistory_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetFragmentHistory_, context, request, response); } -void AppService::Stub::async::GetFragmentHistory(::grpc::ClientContext* context, const ::viam::app::v1::GetFragmentHistoryRequest* request, ::viam::app::v1::GetFragmentHistoryResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::GetFragmentHistoryRequest, ::viam::app::v1::GetFragmentHistoryResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetFragmentHistory_, context, request, response, std::move(f)); +void AppService::Stub::experimental_async::GetFragmentHistory(::grpc::ClientContext* context, const ::viam::app::v1::GetFragmentHistoryRequest* request, ::viam::app::v1::GetFragmentHistoryResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetFragmentHistory_, context, request, response, std::move(f)); } -void AppService::Stub::async::GetFragmentHistory(::grpc::ClientContext* context, const ::viam::app::v1::GetFragmentHistoryRequest* request, ::viam::app::v1::GetFragmentHistoryResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetFragmentHistory_, context, request, response, reactor); +void AppService::Stub::experimental_async::GetFragmentHistory(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetFragmentHistoryResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetFragmentHistory_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetFragmentHistoryResponse>* AppService::Stub::PrepareAsyncGetFragmentHistoryRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetFragmentHistoryRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::GetFragmentHistoryResponse, ::viam::app::v1::GetFragmentHistoryRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetFragmentHistory_, context, request); +void AppService::Stub::experimental_async::GetFragmentHistory(::grpc::ClientContext* context, const ::viam::app::v1::GetFragmentHistoryRequest* request, ::viam::app::v1::GetFragmentHistoryResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetFragmentHistory_, context, request, response, reactor); +} + +void AppService::Stub::experimental_async::GetFragmentHistory(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetFragmentHistoryResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetFragmentHistory_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetFragmentHistoryResponse>* AppService::Stub::AsyncGetFragmentHistoryRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetFragmentHistoryRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetFragmentHistoryRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::GetFragmentHistoryResponse>::Create(channel_.get(), cq, rpcmethod_GetFragmentHistory_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetFragmentHistoryResponse>* AppService::Stub::PrepareAsyncGetFragmentHistoryRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetFragmentHistoryRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::GetFragmentHistoryResponse>::Create(channel_.get(), cq, rpcmethod_GetFragmentHistory_, context, request, false); } ::grpc::Status AppService::Stub::AddRole(::grpc::ClientContext* context, const ::viam::app::v1::AddRoleRequest& request, ::viam::app::v1::AddRoleResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::AddRoleRequest, ::viam::app::v1::AddRoleResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_AddRole_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_AddRole_, context, request, response); } -void AppService::Stub::async::AddRole(::grpc::ClientContext* context, const ::viam::app::v1::AddRoleRequest* request, ::viam::app::v1::AddRoleResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::AddRoleRequest, ::viam::app::v1::AddRoleResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_AddRole_, context, request, response, std::move(f)); +void AppService::Stub::experimental_async::AddRole(::grpc::ClientContext* context, const ::viam::app::v1::AddRoleRequest* request, ::viam::app::v1::AddRoleResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_AddRole_, context, request, response, std::move(f)); } -void AppService::Stub::async::AddRole(::grpc::ClientContext* context, const ::viam::app::v1::AddRoleRequest* request, ::viam::app::v1::AddRoleResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_AddRole_, context, request, response, reactor); +void AppService::Stub::experimental_async::AddRole(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::AddRoleResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_AddRole_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::AddRoleResponse>* AppService::Stub::PrepareAsyncAddRoleRaw(::grpc::ClientContext* context, const ::viam::app::v1::AddRoleRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::AddRoleResponse, ::viam::app::v1::AddRoleRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_AddRole_, context, request); +void AppService::Stub::experimental_async::AddRole(::grpc::ClientContext* context, const ::viam::app::v1::AddRoleRequest* request, ::viam::app::v1::AddRoleResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_AddRole_, context, request, response, reactor); +} + +void AppService::Stub::experimental_async::AddRole(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::AddRoleResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_AddRole_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::app::v1::AddRoleResponse>* AppService::Stub::AsyncAddRoleRaw(::grpc::ClientContext* context, const ::viam::app::v1::AddRoleRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncAddRoleRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::AddRoleResponse>::Create(channel_.get(), cq, rpcmethod_AddRole_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::AddRoleResponse>* AppService::Stub::PrepareAsyncAddRoleRaw(::grpc::ClientContext* context, const ::viam::app::v1::AddRoleRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::AddRoleResponse>::Create(channel_.get(), cq, rpcmethod_AddRole_, context, request, false); } ::grpc::Status AppService::Stub::RemoveRole(::grpc::ClientContext* context, const ::viam::app::v1::RemoveRoleRequest& request, ::viam::app::v1::RemoveRoleResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::RemoveRoleRequest, ::viam::app::v1::RemoveRoleResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_RemoveRole_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_RemoveRole_, context, request, response); } -void AppService::Stub::async::RemoveRole(::grpc::ClientContext* context, const ::viam::app::v1::RemoveRoleRequest* request, ::viam::app::v1::RemoveRoleResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::RemoveRoleRequest, ::viam::app::v1::RemoveRoleResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_RemoveRole_, context, request, response, std::move(f)); +void AppService::Stub::experimental_async::RemoveRole(::grpc::ClientContext* context, const ::viam::app::v1::RemoveRoleRequest* request, ::viam::app::v1::RemoveRoleResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_RemoveRole_, context, request, response, std::move(f)); } -void AppService::Stub::async::RemoveRole(::grpc::ClientContext* context, const ::viam::app::v1::RemoveRoleRequest* request, ::viam::app::v1::RemoveRoleResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_RemoveRole_, context, request, response, reactor); +void AppService::Stub::experimental_async::RemoveRole(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::RemoveRoleResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_RemoveRole_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::RemoveRoleResponse>* AppService::Stub::PrepareAsyncRemoveRoleRaw(::grpc::ClientContext* context, const ::viam::app::v1::RemoveRoleRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::RemoveRoleResponse, ::viam::app::v1::RemoveRoleRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_RemoveRole_, context, request); +void AppService::Stub::experimental_async::RemoveRole(::grpc::ClientContext* context, const ::viam::app::v1::RemoveRoleRequest* request, ::viam::app::v1::RemoveRoleResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_RemoveRole_, context, request, response, reactor); +} + +void AppService::Stub::experimental_async::RemoveRole(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::RemoveRoleResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_RemoveRole_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::app::v1::RemoveRoleResponse>* AppService::Stub::AsyncRemoveRoleRaw(::grpc::ClientContext* context, const ::viam::app::v1::RemoveRoleRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncRemoveRoleRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::RemoveRoleResponse>::Create(channel_.get(), cq, rpcmethod_RemoveRole_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::RemoveRoleResponse>* AppService::Stub::PrepareAsyncRemoveRoleRaw(::grpc::ClientContext* context, const ::viam::app::v1::RemoveRoleRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::RemoveRoleResponse>::Create(channel_.get(), cq, rpcmethod_RemoveRole_, context, request, false); } ::grpc::Status AppService::Stub::ChangeRole(::grpc::ClientContext* context, const ::viam::app::v1::ChangeRoleRequest& request, ::viam::app::v1::ChangeRoleResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::ChangeRoleRequest, ::viam::app::v1::ChangeRoleResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ChangeRole_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ChangeRole_, context, request, response); } -void AppService::Stub::async::ChangeRole(::grpc::ClientContext* context, const ::viam::app::v1::ChangeRoleRequest* request, ::viam::app::v1::ChangeRoleResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::ChangeRoleRequest, ::viam::app::v1::ChangeRoleResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ChangeRole_, context, request, response, std::move(f)); +void AppService::Stub::experimental_async::ChangeRole(::grpc::ClientContext* context, const ::viam::app::v1::ChangeRoleRequest* request, ::viam::app::v1::ChangeRoleResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ChangeRole_, context, request, response, std::move(f)); } -void AppService::Stub::async::ChangeRole(::grpc::ClientContext* context, const ::viam::app::v1::ChangeRoleRequest* request, ::viam::app::v1::ChangeRoleResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ChangeRole_, context, request, response, reactor); +void AppService::Stub::experimental_async::ChangeRole(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ChangeRoleResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ChangeRole_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::ChangeRoleResponse>* AppService::Stub::PrepareAsyncChangeRoleRaw(::grpc::ClientContext* context, const ::viam::app::v1::ChangeRoleRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::ChangeRoleResponse, ::viam::app::v1::ChangeRoleRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ChangeRole_, context, request); +void AppService::Stub::experimental_async::ChangeRole(::grpc::ClientContext* context, const ::viam::app::v1::ChangeRoleRequest* request, ::viam::app::v1::ChangeRoleResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ChangeRole_, context, request, response, reactor); +} + +void AppService::Stub::experimental_async::ChangeRole(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ChangeRoleResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ChangeRole_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::app::v1::ChangeRoleResponse>* AppService::Stub::AsyncChangeRoleRaw(::grpc::ClientContext* context, const ::viam::app::v1::ChangeRoleRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncChangeRoleRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::ChangeRoleResponse>::Create(channel_.get(), cq, rpcmethod_ChangeRole_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::ChangeRoleResponse>* AppService::Stub::PrepareAsyncChangeRoleRaw(::grpc::ClientContext* context, const ::viam::app::v1::ChangeRoleRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::ChangeRoleResponse>::Create(channel_.get(), cq, rpcmethod_ChangeRole_, context, request, false); } ::grpc::Status AppService::Stub::ListAuthorizations(::grpc::ClientContext* context, const ::viam::app::v1::ListAuthorizationsRequest& request, ::viam::app::v1::ListAuthorizationsResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::ListAuthorizationsRequest, ::viam::app::v1::ListAuthorizationsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ListAuthorizations_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListAuthorizations_, context, request, response); } -void AppService::Stub::async::ListAuthorizations(::grpc::ClientContext* context, const ::viam::app::v1::ListAuthorizationsRequest* request, ::viam::app::v1::ListAuthorizationsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::ListAuthorizationsRequest, ::viam::app::v1::ListAuthorizationsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListAuthorizations_, context, request, response, std::move(f)); +void AppService::Stub::experimental_async::ListAuthorizations(::grpc::ClientContext* context, const ::viam::app::v1::ListAuthorizationsRequest* request, ::viam::app::v1::ListAuthorizationsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListAuthorizations_, context, request, response, std::move(f)); } -void AppService::Stub::async::ListAuthorizations(::grpc::ClientContext* context, const ::viam::app::v1::ListAuthorizationsRequest* request, ::viam::app::v1::ListAuthorizationsResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListAuthorizations_, context, request, response, reactor); +void AppService::Stub::experimental_async::ListAuthorizations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListAuthorizationsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListAuthorizations_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListAuthorizationsResponse>* AppService::Stub::PrepareAsyncListAuthorizationsRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListAuthorizationsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::ListAuthorizationsResponse, ::viam::app::v1::ListAuthorizationsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ListAuthorizations_, context, request); +void AppService::Stub::experimental_async::ListAuthorizations(::grpc::ClientContext* context, const ::viam::app::v1::ListAuthorizationsRequest* request, ::viam::app::v1::ListAuthorizationsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListAuthorizations_, context, request, response, reactor); +} + +void AppService::Stub::experimental_async::ListAuthorizations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListAuthorizationsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListAuthorizations_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListAuthorizationsResponse>* AppService::Stub::AsyncListAuthorizationsRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListAuthorizationsRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncListAuthorizationsRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::ListAuthorizationsResponse>::Create(channel_.get(), cq, rpcmethod_ListAuthorizations_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListAuthorizationsResponse>* AppService::Stub::PrepareAsyncListAuthorizationsRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListAuthorizationsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::ListAuthorizationsResponse>::Create(channel_.get(), cq, rpcmethod_ListAuthorizations_, context, request, false); } ::grpc::Status AppService::Stub::CheckPermissions(::grpc::ClientContext* context, const ::viam::app::v1::CheckPermissionsRequest& request, ::viam::app::v1::CheckPermissionsResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::CheckPermissionsRequest, ::viam::app::v1::CheckPermissionsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_CheckPermissions_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CheckPermissions_, context, request, response); } -void AppService::Stub::async::CheckPermissions(::grpc::ClientContext* context, const ::viam::app::v1::CheckPermissionsRequest* request, ::viam::app::v1::CheckPermissionsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::CheckPermissionsRequest, ::viam::app::v1::CheckPermissionsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_CheckPermissions_, context, request, response, std::move(f)); +void AppService::Stub::experimental_async::CheckPermissions(::grpc::ClientContext* context, const ::viam::app::v1::CheckPermissionsRequest* request, ::viam::app::v1::CheckPermissionsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CheckPermissions_, context, request, response, std::move(f)); } -void AppService::Stub::async::CheckPermissions(::grpc::ClientContext* context, const ::viam::app::v1::CheckPermissionsRequest* request, ::viam::app::v1::CheckPermissionsResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_CheckPermissions_, context, request, response, reactor); +void AppService::Stub::experimental_async::CheckPermissions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CheckPermissionsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CheckPermissions_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::CheckPermissionsResponse>* AppService::Stub::PrepareAsyncCheckPermissionsRaw(::grpc::ClientContext* context, const ::viam::app::v1::CheckPermissionsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::CheckPermissionsResponse, ::viam::app::v1::CheckPermissionsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_CheckPermissions_, context, request); +void AppService::Stub::experimental_async::CheckPermissions(::grpc::ClientContext* context, const ::viam::app::v1::CheckPermissionsRequest* request, ::viam::app::v1::CheckPermissionsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CheckPermissions_, context, request, response, reactor); +} + +void AppService::Stub::experimental_async::CheckPermissions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CheckPermissionsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CheckPermissions_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::app::v1::CheckPermissionsResponse>* AppService::Stub::AsyncCheckPermissionsRaw(::grpc::ClientContext* context, const ::viam::app::v1::CheckPermissionsRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncCheckPermissionsRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::CheckPermissionsResponse>::Create(channel_.get(), cq, rpcmethod_CheckPermissions_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::CheckPermissionsResponse>* AppService::Stub::PrepareAsyncCheckPermissionsRaw(::grpc::ClientContext* context, const ::viam::app::v1::CheckPermissionsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::CheckPermissionsResponse>::Create(channel_.get(), cq, rpcmethod_CheckPermissions_, context, request, false); } ::grpc::Status AppService::Stub::GetRegistryItem(::grpc::ClientContext* context, const ::viam::app::v1::GetRegistryItemRequest& request, ::viam::app::v1::GetRegistryItemResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::GetRegistryItemRequest, ::viam::app::v1::GetRegistryItemResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetRegistryItem_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetRegistryItem_, context, request, response); } -void AppService::Stub::async::GetRegistryItem(::grpc::ClientContext* context, const ::viam::app::v1::GetRegistryItemRequest* request, ::viam::app::v1::GetRegistryItemResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::GetRegistryItemRequest, ::viam::app::v1::GetRegistryItemResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetRegistryItem_, context, request, response, std::move(f)); +void AppService::Stub::experimental_async::GetRegistryItem(::grpc::ClientContext* context, const ::viam::app::v1::GetRegistryItemRequest* request, ::viam::app::v1::GetRegistryItemResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetRegistryItem_, context, request, response, std::move(f)); } -void AppService::Stub::async::GetRegistryItem(::grpc::ClientContext* context, const ::viam::app::v1::GetRegistryItemRequest* request, ::viam::app::v1::GetRegistryItemResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetRegistryItem_, context, request, response, reactor); +void AppService::Stub::experimental_async::GetRegistryItem(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRegistryItemResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetRegistryItem_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRegistryItemResponse>* AppService::Stub::PrepareAsyncGetRegistryItemRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRegistryItemRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::GetRegistryItemResponse, ::viam::app::v1::GetRegistryItemRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetRegistryItem_, context, request); +void AppService::Stub::experimental_async::GetRegistryItem(::grpc::ClientContext* context, const ::viam::app::v1::GetRegistryItemRequest* request, ::viam::app::v1::GetRegistryItemResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetRegistryItem_, context, request, response, reactor); +} + +void AppService::Stub::experimental_async::GetRegistryItem(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRegistryItemResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetRegistryItem_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRegistryItemResponse>* AppService::Stub::AsyncGetRegistryItemRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRegistryItemRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetRegistryItemRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::GetRegistryItemResponse>::Create(channel_.get(), cq, rpcmethod_GetRegistryItem_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetRegistryItemResponse>* AppService::Stub::PrepareAsyncGetRegistryItemRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetRegistryItemRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::GetRegistryItemResponse>::Create(channel_.get(), cq, rpcmethod_GetRegistryItem_, context, request, false); } ::grpc::Status AppService::Stub::CreateRegistryItem(::grpc::ClientContext* context, const ::viam::app::v1::CreateRegistryItemRequest& request, ::viam::app::v1::CreateRegistryItemResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::CreateRegistryItemRequest, ::viam::app::v1::CreateRegistryItemResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_CreateRegistryItem_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateRegistryItem_, context, request, response); } -void AppService::Stub::async::CreateRegistryItem(::grpc::ClientContext* context, const ::viam::app::v1::CreateRegistryItemRequest* request, ::viam::app::v1::CreateRegistryItemResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::CreateRegistryItemRequest, ::viam::app::v1::CreateRegistryItemResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_CreateRegistryItem_, context, request, response, std::move(f)); +void AppService::Stub::experimental_async::CreateRegistryItem(::grpc::ClientContext* context, const ::viam::app::v1::CreateRegistryItemRequest* request, ::viam::app::v1::CreateRegistryItemResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateRegistryItem_, context, request, response, std::move(f)); } -void AppService::Stub::async::CreateRegistryItem(::grpc::ClientContext* context, const ::viam::app::v1::CreateRegistryItemRequest* request, ::viam::app::v1::CreateRegistryItemResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_CreateRegistryItem_, context, request, response, reactor); +void AppService::Stub::experimental_async::CreateRegistryItem(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateRegistryItemResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateRegistryItem_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::CreateRegistryItemResponse>* AppService::Stub::PrepareAsyncCreateRegistryItemRaw(::grpc::ClientContext* context, const ::viam::app::v1::CreateRegistryItemRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::CreateRegistryItemResponse, ::viam::app::v1::CreateRegistryItemRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_CreateRegistryItem_, context, request); +void AppService::Stub::experimental_async::CreateRegistryItem(::grpc::ClientContext* context, const ::viam::app::v1::CreateRegistryItemRequest* request, ::viam::app::v1::CreateRegistryItemResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateRegistryItem_, context, request, response, reactor); +} + +void AppService::Stub::experimental_async::CreateRegistryItem(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateRegistryItemResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateRegistryItem_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::app::v1::CreateRegistryItemResponse>* AppService::Stub::AsyncCreateRegistryItemRaw(::grpc::ClientContext* context, const ::viam::app::v1::CreateRegistryItemRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncCreateRegistryItemRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::CreateRegistryItemResponse>::Create(channel_.get(), cq, rpcmethod_CreateRegistryItem_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::CreateRegistryItemResponse>* AppService::Stub::PrepareAsyncCreateRegistryItemRaw(::grpc::ClientContext* context, const ::viam::app::v1::CreateRegistryItemRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::CreateRegistryItemResponse>::Create(channel_.get(), cq, rpcmethod_CreateRegistryItem_, context, request, false); } ::grpc::Status AppService::Stub::UpdateRegistryItem(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRegistryItemRequest& request, ::viam::app::v1::UpdateRegistryItemResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::UpdateRegistryItemRequest, ::viam::app::v1::UpdateRegistryItemResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_UpdateRegistryItem_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_UpdateRegistryItem_, context, request, response); } -void AppService::Stub::async::UpdateRegistryItem(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRegistryItemRequest* request, ::viam::app::v1::UpdateRegistryItemResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::UpdateRegistryItemRequest, ::viam::app::v1::UpdateRegistryItemResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_UpdateRegistryItem_, context, request, response, std::move(f)); +void AppService::Stub::experimental_async::UpdateRegistryItem(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRegistryItemRequest* request, ::viam::app::v1::UpdateRegistryItemResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateRegistryItem_, context, request, response, std::move(f)); } -void AppService::Stub::async::UpdateRegistryItem(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRegistryItemRequest* request, ::viam::app::v1::UpdateRegistryItemResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_UpdateRegistryItem_, context, request, response, reactor); +void AppService::Stub::experimental_async::UpdateRegistryItem(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateRegistryItemResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateRegistryItem_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateRegistryItemResponse>* AppService::Stub::PrepareAsyncUpdateRegistryItemRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRegistryItemRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::UpdateRegistryItemResponse, ::viam::app::v1::UpdateRegistryItemRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_UpdateRegistryItem_, context, request); +void AppService::Stub::experimental_async::UpdateRegistryItem(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRegistryItemRequest* request, ::viam::app::v1::UpdateRegistryItemResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateRegistryItem_, context, request, response, reactor); +} + +void AppService::Stub::experimental_async::UpdateRegistryItem(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateRegistryItemResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateRegistryItem_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateRegistryItemResponse>* AppService::Stub::AsyncUpdateRegistryItemRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRegistryItemRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncUpdateRegistryItemRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::UpdateRegistryItemResponse>::Create(channel_.get(), cq, rpcmethod_UpdateRegistryItem_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateRegistryItemResponse>* AppService::Stub::PrepareAsyncUpdateRegistryItemRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRegistryItemRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::UpdateRegistryItemResponse>::Create(channel_.get(), cq, rpcmethod_UpdateRegistryItem_, context, request, false); } ::grpc::Status AppService::Stub::ListRegistryItems(::grpc::ClientContext* context, const ::viam::app::v1::ListRegistryItemsRequest& request, ::viam::app::v1::ListRegistryItemsResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::ListRegistryItemsRequest, ::viam::app::v1::ListRegistryItemsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ListRegistryItems_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListRegistryItems_, context, request, response); } -void AppService::Stub::async::ListRegistryItems(::grpc::ClientContext* context, const ::viam::app::v1::ListRegistryItemsRequest* request, ::viam::app::v1::ListRegistryItemsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::ListRegistryItemsRequest, ::viam::app::v1::ListRegistryItemsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListRegistryItems_, context, request, response, std::move(f)); +void AppService::Stub::experimental_async::ListRegistryItems(::grpc::ClientContext* context, const ::viam::app::v1::ListRegistryItemsRequest* request, ::viam::app::v1::ListRegistryItemsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListRegistryItems_, context, request, response, std::move(f)); } -void AppService::Stub::async::ListRegistryItems(::grpc::ClientContext* context, const ::viam::app::v1::ListRegistryItemsRequest* request, ::viam::app::v1::ListRegistryItemsResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListRegistryItems_, context, request, response, reactor); +void AppService::Stub::experimental_async::ListRegistryItems(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListRegistryItemsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListRegistryItems_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListRegistryItemsResponse>* AppService::Stub::PrepareAsyncListRegistryItemsRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListRegistryItemsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::ListRegistryItemsResponse, ::viam::app::v1::ListRegistryItemsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ListRegistryItems_, context, request); +void AppService::Stub::experimental_async::ListRegistryItems(::grpc::ClientContext* context, const ::viam::app::v1::ListRegistryItemsRequest* request, ::viam::app::v1::ListRegistryItemsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListRegistryItems_, context, request, response, reactor); +} + +void AppService::Stub::experimental_async::ListRegistryItems(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListRegistryItemsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListRegistryItems_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListRegistryItemsResponse>* AppService::Stub::AsyncListRegistryItemsRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListRegistryItemsRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncListRegistryItemsRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::ListRegistryItemsResponse>::Create(channel_.get(), cq, rpcmethod_ListRegistryItems_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListRegistryItemsResponse>* AppService::Stub::PrepareAsyncListRegistryItemsRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListRegistryItemsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::ListRegistryItemsResponse>::Create(channel_.get(), cq, rpcmethod_ListRegistryItems_, context, request, false); } ::grpc::Status AppService::Stub::DeleteRegistryItem(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRegistryItemRequest& request, ::viam::app::v1::DeleteRegistryItemResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::DeleteRegistryItemRequest, ::viam::app::v1::DeleteRegistryItemResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_DeleteRegistryItem_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DeleteRegistryItem_, context, request, response); } -void AppService::Stub::async::DeleteRegistryItem(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRegistryItemRequest* request, ::viam::app::v1::DeleteRegistryItemResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::DeleteRegistryItemRequest, ::viam::app::v1::DeleteRegistryItemResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DeleteRegistryItem_, context, request, response, std::move(f)); +void AppService::Stub::experimental_async::DeleteRegistryItem(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRegistryItemRequest* request, ::viam::app::v1::DeleteRegistryItemResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteRegistryItem_, context, request, response, std::move(f)); } -void AppService::Stub::async::DeleteRegistryItem(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRegistryItemRequest* request, ::viam::app::v1::DeleteRegistryItemResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DeleteRegistryItem_, context, request, response, reactor); +void AppService::Stub::experimental_async::DeleteRegistryItem(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteRegistryItemResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteRegistryItem_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteRegistryItemResponse>* AppService::Stub::PrepareAsyncDeleteRegistryItemRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRegistryItemRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::DeleteRegistryItemResponse, ::viam::app::v1::DeleteRegistryItemRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DeleteRegistryItem_, context, request); +void AppService::Stub::experimental_async::DeleteRegistryItem(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRegistryItemRequest* request, ::viam::app::v1::DeleteRegistryItemResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteRegistryItem_, context, request, response, reactor); +} + +void AppService::Stub::experimental_async::DeleteRegistryItem(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteRegistryItemResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteRegistryItem_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteRegistryItemResponse>* AppService::Stub::AsyncDeleteRegistryItemRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRegistryItemRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncDeleteRegistryItemRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::DeleteRegistryItemResponse>::Create(channel_.get(), cq, rpcmethod_DeleteRegistryItem_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteRegistryItemResponse>* AppService::Stub::PrepareAsyncDeleteRegistryItemRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRegistryItemRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::DeleteRegistryItemResponse>::Create(channel_.get(), cq, rpcmethod_DeleteRegistryItem_, context, request, false); } ::grpc::Status AppService::Stub::TransferRegistryItem(::grpc::ClientContext* context, const ::viam::app::v1::TransferRegistryItemRequest& request, ::viam::app::v1::TransferRegistryItemResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::TransferRegistryItemRequest, ::viam::app::v1::TransferRegistryItemResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_TransferRegistryItem_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_TransferRegistryItem_, context, request, response); } -void AppService::Stub::async::TransferRegistryItem(::grpc::ClientContext* context, const ::viam::app::v1::TransferRegistryItemRequest* request, ::viam::app::v1::TransferRegistryItemResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::TransferRegistryItemRequest, ::viam::app::v1::TransferRegistryItemResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_TransferRegistryItem_, context, request, response, std::move(f)); +void AppService::Stub::experimental_async::TransferRegistryItem(::grpc::ClientContext* context, const ::viam::app::v1::TransferRegistryItemRequest* request, ::viam::app::v1::TransferRegistryItemResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_TransferRegistryItem_, context, request, response, std::move(f)); } -void AppService::Stub::async::TransferRegistryItem(::grpc::ClientContext* context, const ::viam::app::v1::TransferRegistryItemRequest* request, ::viam::app::v1::TransferRegistryItemResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_TransferRegistryItem_, context, request, response, reactor); +void AppService::Stub::experimental_async::TransferRegistryItem(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::TransferRegistryItemResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_TransferRegistryItem_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::TransferRegistryItemResponse>* AppService::Stub::PrepareAsyncTransferRegistryItemRaw(::grpc::ClientContext* context, const ::viam::app::v1::TransferRegistryItemRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::TransferRegistryItemResponse, ::viam::app::v1::TransferRegistryItemRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_TransferRegistryItem_, context, request); +void AppService::Stub::experimental_async::TransferRegistryItem(::grpc::ClientContext* context, const ::viam::app::v1::TransferRegistryItemRequest* request, ::viam::app::v1::TransferRegistryItemResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_TransferRegistryItem_, context, request, response, reactor); +} + +void AppService::Stub::experimental_async::TransferRegistryItem(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::TransferRegistryItemResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_TransferRegistryItem_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::app::v1::TransferRegistryItemResponse>* AppService::Stub::AsyncTransferRegistryItemRaw(::grpc::ClientContext* context, const ::viam::app::v1::TransferRegistryItemRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncTransferRegistryItemRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::TransferRegistryItemResponse>::Create(channel_.get(), cq, rpcmethod_TransferRegistryItem_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::TransferRegistryItemResponse>* AppService::Stub::PrepareAsyncTransferRegistryItemRaw(::grpc::ClientContext* context, const ::viam::app::v1::TransferRegistryItemRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::TransferRegistryItemResponse>::Create(channel_.get(), cq, rpcmethod_TransferRegistryItem_, context, request, false); } ::grpc::Status AppService::Stub::CreateModule(::grpc::ClientContext* context, const ::viam::app::v1::CreateModuleRequest& request, ::viam::app::v1::CreateModuleResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::CreateModuleRequest, ::viam::app::v1::CreateModuleResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_CreateModule_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateModule_, context, request, response); } -void AppService::Stub::async::CreateModule(::grpc::ClientContext* context, const ::viam::app::v1::CreateModuleRequest* request, ::viam::app::v1::CreateModuleResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::CreateModuleRequest, ::viam::app::v1::CreateModuleResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_CreateModule_, context, request, response, std::move(f)); +void AppService::Stub::experimental_async::CreateModule(::grpc::ClientContext* context, const ::viam::app::v1::CreateModuleRequest* request, ::viam::app::v1::CreateModuleResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateModule_, context, request, response, std::move(f)); } -void AppService::Stub::async::CreateModule(::grpc::ClientContext* context, const ::viam::app::v1::CreateModuleRequest* request, ::viam::app::v1::CreateModuleResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_CreateModule_, context, request, response, reactor); +void AppService::Stub::experimental_async::CreateModule(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateModuleResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateModule_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::CreateModuleResponse>* AppService::Stub::PrepareAsyncCreateModuleRaw(::grpc::ClientContext* context, const ::viam::app::v1::CreateModuleRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::CreateModuleResponse, ::viam::app::v1::CreateModuleRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_CreateModule_, context, request); +void AppService::Stub::experimental_async::CreateModule(::grpc::ClientContext* context, const ::viam::app::v1::CreateModuleRequest* request, ::viam::app::v1::CreateModuleResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateModule_, context, request, response, reactor); +} + +void AppService::Stub::experimental_async::CreateModule(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateModuleResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateModule_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::app::v1::CreateModuleResponse>* AppService::Stub::AsyncCreateModuleRaw(::grpc::ClientContext* context, const ::viam::app::v1::CreateModuleRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncCreateModuleRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::CreateModuleResponse>::Create(channel_.get(), cq, rpcmethod_CreateModule_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::CreateModuleResponse>* AppService::Stub::PrepareAsyncCreateModuleRaw(::grpc::ClientContext* context, const ::viam::app::v1::CreateModuleRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::CreateModuleResponse>::Create(channel_.get(), cq, rpcmethod_CreateModule_, context, request, false); } ::grpc::Status AppService::Stub::UpdateModule(::grpc::ClientContext* context, const ::viam::app::v1::UpdateModuleRequest& request, ::viam::app::v1::UpdateModuleResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::UpdateModuleRequest, ::viam::app::v1::UpdateModuleResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_UpdateModule_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_UpdateModule_, context, request, response); } -void AppService::Stub::async::UpdateModule(::grpc::ClientContext* context, const ::viam::app::v1::UpdateModuleRequest* request, ::viam::app::v1::UpdateModuleResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::UpdateModuleRequest, ::viam::app::v1::UpdateModuleResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_UpdateModule_, context, request, response, std::move(f)); +void AppService::Stub::experimental_async::UpdateModule(::grpc::ClientContext* context, const ::viam::app::v1::UpdateModuleRequest* request, ::viam::app::v1::UpdateModuleResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateModule_, context, request, response, std::move(f)); } -void AppService::Stub::async::UpdateModule(::grpc::ClientContext* context, const ::viam::app::v1::UpdateModuleRequest* request, ::viam::app::v1::UpdateModuleResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_UpdateModule_, context, request, response, reactor); +void AppService::Stub::experimental_async::UpdateModule(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateModuleResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateModule_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateModuleResponse>* AppService::Stub::PrepareAsyncUpdateModuleRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateModuleRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::UpdateModuleResponse, ::viam::app::v1::UpdateModuleRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_UpdateModule_, context, request); +void AppService::Stub::experimental_async::UpdateModule(::grpc::ClientContext* context, const ::viam::app::v1::UpdateModuleRequest* request, ::viam::app::v1::UpdateModuleResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateModule_, context, request, response, reactor); +} + +void AppService::Stub::experimental_async::UpdateModule(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateModuleResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateModule_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateModuleResponse>* AppService::Stub::AsyncUpdateModuleRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateModuleRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncUpdateModuleRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::UpdateModuleResponse>::Create(channel_.get(), cq, rpcmethod_UpdateModule_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateModuleResponse>* AppService::Stub::PrepareAsyncUpdateModuleRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateModuleRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::UpdateModuleResponse>::Create(channel_.get(), cq, rpcmethod_UpdateModule_, context, request, false); } ::grpc::ClientWriter< ::viam::app::v1::UploadModuleFileRequest>* AppService::Stub::UploadModuleFileRaw(::grpc::ClientContext* context, ::viam::app::v1::UploadModuleFileResponse* response) { - return ::grpc::internal::ClientWriterFactory< ::viam::app::v1::UploadModuleFileRequest>::Create(channel_.get(), rpcmethod_UploadModuleFile_, context, response); + return ::grpc_impl::internal::ClientWriterFactory< ::viam::app::v1::UploadModuleFileRequest>::Create(channel_.get(), rpcmethod_UploadModuleFile_, context, response); } -void AppService::Stub::async::UploadModuleFile(::grpc::ClientContext* context, ::viam::app::v1::UploadModuleFileResponse* response, ::grpc::ClientWriteReactor< ::viam::app::v1::UploadModuleFileRequest>* reactor) { - ::grpc::internal::ClientCallbackWriterFactory< ::viam::app::v1::UploadModuleFileRequest>::Create(stub_->channel_.get(), stub_->rpcmethod_UploadModuleFile_, context, response, reactor); +void AppService::Stub::experimental_async::UploadModuleFile(::grpc::ClientContext* context, ::viam::app::v1::UploadModuleFileResponse* response, ::grpc::experimental::ClientWriteReactor< ::viam::app::v1::UploadModuleFileRequest>* reactor) { + ::grpc_impl::internal::ClientCallbackWriterFactory< ::viam::app::v1::UploadModuleFileRequest>::Create(stub_->channel_.get(), stub_->rpcmethod_UploadModuleFile_, context, response, reactor); } ::grpc::ClientAsyncWriter< ::viam::app::v1::UploadModuleFileRequest>* AppService::Stub::AsyncUploadModuleFileRaw(::grpc::ClientContext* context, ::viam::app::v1::UploadModuleFileResponse* response, ::grpc::CompletionQueue* cq, void* tag) { - return ::grpc::internal::ClientAsyncWriterFactory< ::viam::app::v1::UploadModuleFileRequest>::Create(channel_.get(), cq, rpcmethod_UploadModuleFile_, context, response, true, tag); + return ::grpc_impl::internal::ClientAsyncWriterFactory< ::viam::app::v1::UploadModuleFileRequest>::Create(channel_.get(), cq, rpcmethod_UploadModuleFile_, context, response, true, tag); } ::grpc::ClientAsyncWriter< ::viam::app::v1::UploadModuleFileRequest>* AppService::Stub::PrepareAsyncUploadModuleFileRaw(::grpc::ClientContext* context, ::viam::app::v1::UploadModuleFileResponse* response, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncWriterFactory< ::viam::app::v1::UploadModuleFileRequest>::Create(channel_.get(), cq, rpcmethod_UploadModuleFile_, context, response, false, nullptr); + return ::grpc_impl::internal::ClientAsyncWriterFactory< ::viam::app::v1::UploadModuleFileRequest>::Create(channel_.get(), cq, rpcmethod_UploadModuleFile_, context, response, false, nullptr); } ::grpc::Status AppService::Stub::GetModule(::grpc::ClientContext* context, const ::viam::app::v1::GetModuleRequest& request, ::viam::app::v1::GetModuleResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::GetModuleRequest, ::viam::app::v1::GetModuleResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetModule_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetModule_, context, request, response); } -void AppService::Stub::async::GetModule(::grpc::ClientContext* context, const ::viam::app::v1::GetModuleRequest* request, ::viam::app::v1::GetModuleResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::GetModuleRequest, ::viam::app::v1::GetModuleResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetModule_, context, request, response, std::move(f)); +void AppService::Stub::experimental_async::GetModule(::grpc::ClientContext* context, const ::viam::app::v1::GetModuleRequest* request, ::viam::app::v1::GetModuleResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetModule_, context, request, response, std::move(f)); } -void AppService::Stub::async::GetModule(::grpc::ClientContext* context, const ::viam::app::v1::GetModuleRequest* request, ::viam::app::v1::GetModuleResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetModule_, context, request, response, reactor); +void AppService::Stub::experimental_async::GetModule(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetModuleResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetModule_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetModuleResponse>* AppService::Stub::PrepareAsyncGetModuleRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetModuleRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::GetModuleResponse, ::viam::app::v1::GetModuleRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetModule_, context, request); +void AppService::Stub::experimental_async::GetModule(::grpc::ClientContext* context, const ::viam::app::v1::GetModuleRequest* request, ::viam::app::v1::GetModuleResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetModule_, context, request, response, reactor); +} + +void AppService::Stub::experimental_async::GetModule(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetModuleResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetModule_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetModuleResponse>* AppService::Stub::AsyncGetModuleRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetModuleRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetModuleRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::GetModuleResponse>::Create(channel_.get(), cq, rpcmethod_GetModule_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetModuleResponse>* AppService::Stub::PrepareAsyncGetModuleRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetModuleRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::GetModuleResponse>::Create(channel_.get(), cq, rpcmethod_GetModule_, context, request, false); } ::grpc::Status AppService::Stub::ListModules(::grpc::ClientContext* context, const ::viam::app::v1::ListModulesRequest& request, ::viam::app::v1::ListModulesResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::ListModulesRequest, ::viam::app::v1::ListModulesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ListModules_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListModules_, context, request, response); } -void AppService::Stub::async::ListModules(::grpc::ClientContext* context, const ::viam::app::v1::ListModulesRequest* request, ::viam::app::v1::ListModulesResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::ListModulesRequest, ::viam::app::v1::ListModulesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListModules_, context, request, response, std::move(f)); +void AppService::Stub::experimental_async::ListModules(::grpc::ClientContext* context, const ::viam::app::v1::ListModulesRequest* request, ::viam::app::v1::ListModulesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListModules_, context, request, response, std::move(f)); } -void AppService::Stub::async::ListModules(::grpc::ClientContext* context, const ::viam::app::v1::ListModulesRequest* request, ::viam::app::v1::ListModulesResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListModules_, context, request, response, reactor); +void AppService::Stub::experimental_async::ListModules(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListModulesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListModules_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListModulesResponse>* AppService::Stub::PrepareAsyncListModulesRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListModulesRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::ListModulesResponse, ::viam::app::v1::ListModulesRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ListModules_, context, request); +void AppService::Stub::experimental_async::ListModules(::grpc::ClientContext* context, const ::viam::app::v1::ListModulesRequest* request, ::viam::app::v1::ListModulesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListModules_, context, request, response, reactor); +} + +void AppService::Stub::experimental_async::ListModules(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListModulesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListModules_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListModulesResponse>* AppService::Stub::AsyncListModulesRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListModulesRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncListModulesRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::ListModulesResponse>::Create(channel_.get(), cq, rpcmethod_ListModules_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListModulesResponse>* AppService::Stub::PrepareAsyncListModulesRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListModulesRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::ListModulesResponse>::Create(channel_.get(), cq, rpcmethod_ListModules_, context, request, false); } ::grpc::Status AppService::Stub::CreateKey(::grpc::ClientContext* context, const ::viam::app::v1::CreateKeyRequest& request, ::viam::app::v1::CreateKeyResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::CreateKeyRequest, ::viam::app::v1::CreateKeyResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_CreateKey_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateKey_, context, request, response); } -void AppService::Stub::async::CreateKey(::grpc::ClientContext* context, const ::viam::app::v1::CreateKeyRequest* request, ::viam::app::v1::CreateKeyResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::CreateKeyRequest, ::viam::app::v1::CreateKeyResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_CreateKey_, context, request, response, std::move(f)); +void AppService::Stub::experimental_async::CreateKey(::grpc::ClientContext* context, const ::viam::app::v1::CreateKeyRequest* request, ::viam::app::v1::CreateKeyResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateKey_, context, request, response, std::move(f)); } -void AppService::Stub::async::CreateKey(::grpc::ClientContext* context, const ::viam::app::v1::CreateKeyRequest* request, ::viam::app::v1::CreateKeyResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_CreateKey_, context, request, response, reactor); +void AppService::Stub::experimental_async::CreateKey(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateKeyResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateKey_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::CreateKeyResponse>* AppService::Stub::PrepareAsyncCreateKeyRaw(::grpc::ClientContext* context, const ::viam::app::v1::CreateKeyRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::CreateKeyResponse, ::viam::app::v1::CreateKeyRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_CreateKey_, context, request); +void AppService::Stub::experimental_async::CreateKey(::grpc::ClientContext* context, const ::viam::app::v1::CreateKeyRequest* request, ::viam::app::v1::CreateKeyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateKey_, context, request, response, reactor); +} + +void AppService::Stub::experimental_async::CreateKey(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateKeyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateKey_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::app::v1::CreateKeyResponse>* AppService::Stub::AsyncCreateKeyRaw(::grpc::ClientContext* context, const ::viam::app::v1::CreateKeyRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncCreateKeyRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::CreateKeyResponse>::Create(channel_.get(), cq, rpcmethod_CreateKey_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::CreateKeyResponse>* AppService::Stub::PrepareAsyncCreateKeyRaw(::grpc::ClientContext* context, const ::viam::app::v1::CreateKeyRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::CreateKeyResponse>::Create(channel_.get(), cq, rpcmethod_CreateKey_, context, request, false); } ::grpc::Status AppService::Stub::DeleteKey(::grpc::ClientContext* context, const ::viam::app::v1::DeleteKeyRequest& request, ::viam::app::v1::DeleteKeyResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::DeleteKeyRequest, ::viam::app::v1::DeleteKeyResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_DeleteKey_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DeleteKey_, context, request, response); } -void AppService::Stub::async::DeleteKey(::grpc::ClientContext* context, const ::viam::app::v1::DeleteKeyRequest* request, ::viam::app::v1::DeleteKeyResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::DeleteKeyRequest, ::viam::app::v1::DeleteKeyResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DeleteKey_, context, request, response, std::move(f)); +void AppService::Stub::experimental_async::DeleteKey(::grpc::ClientContext* context, const ::viam::app::v1::DeleteKeyRequest* request, ::viam::app::v1::DeleteKeyResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteKey_, context, request, response, std::move(f)); } -void AppService::Stub::async::DeleteKey(::grpc::ClientContext* context, const ::viam::app::v1::DeleteKeyRequest* request, ::viam::app::v1::DeleteKeyResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DeleteKey_, context, request, response, reactor); +void AppService::Stub::experimental_async::DeleteKey(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteKeyResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteKey_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteKeyResponse>* AppService::Stub::PrepareAsyncDeleteKeyRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteKeyRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::DeleteKeyResponse, ::viam::app::v1::DeleteKeyRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DeleteKey_, context, request); +void AppService::Stub::experimental_async::DeleteKey(::grpc::ClientContext* context, const ::viam::app::v1::DeleteKeyRequest* request, ::viam::app::v1::DeleteKeyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteKey_, context, request, response, reactor); +} + +void AppService::Stub::experimental_async::DeleteKey(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteKeyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteKey_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteKeyResponse>* AppService::Stub::AsyncDeleteKeyRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteKeyRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncDeleteKeyRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::DeleteKeyResponse>::Create(channel_.get(), cq, rpcmethod_DeleteKey_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteKeyResponse>* AppService::Stub::PrepareAsyncDeleteKeyRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteKeyRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::DeleteKeyResponse>::Create(channel_.get(), cq, rpcmethod_DeleteKey_, context, request, false); } ::grpc::Status AppService::Stub::ListKeys(::grpc::ClientContext* context, const ::viam::app::v1::ListKeysRequest& request, ::viam::app::v1::ListKeysResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::ListKeysRequest, ::viam::app::v1::ListKeysResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ListKeys_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListKeys_, context, request, response); } -void AppService::Stub::async::ListKeys(::grpc::ClientContext* context, const ::viam::app::v1::ListKeysRequest* request, ::viam::app::v1::ListKeysResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::ListKeysRequest, ::viam::app::v1::ListKeysResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListKeys_, context, request, response, std::move(f)); +void AppService::Stub::experimental_async::ListKeys(::grpc::ClientContext* context, const ::viam::app::v1::ListKeysRequest* request, ::viam::app::v1::ListKeysResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListKeys_, context, request, response, std::move(f)); } -void AppService::Stub::async::ListKeys(::grpc::ClientContext* context, const ::viam::app::v1::ListKeysRequest* request, ::viam::app::v1::ListKeysResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListKeys_, context, request, response, reactor); +void AppService::Stub::experimental_async::ListKeys(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListKeysResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListKeys_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListKeysResponse>* AppService::Stub::PrepareAsyncListKeysRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListKeysRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::ListKeysResponse, ::viam::app::v1::ListKeysRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ListKeys_, context, request); +void AppService::Stub::experimental_async::ListKeys(::grpc::ClientContext* context, const ::viam::app::v1::ListKeysRequest* request, ::viam::app::v1::ListKeysResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListKeys_, context, request, response, reactor); +} + +void AppService::Stub::experimental_async::ListKeys(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListKeysResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListKeys_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListKeysResponse>* AppService::Stub::AsyncListKeysRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListKeysRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncListKeysRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::ListKeysResponse>::Create(channel_.get(), cq, rpcmethod_ListKeys_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListKeysResponse>* AppService::Stub::PrepareAsyncListKeysRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListKeysRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::ListKeysResponse>::Create(channel_.get(), cq, rpcmethod_ListKeys_, context, request, false); } ::grpc::Status AppService::Stub::RenameKey(::grpc::ClientContext* context, const ::viam::app::v1::RenameKeyRequest& request, ::viam::app::v1::RenameKeyResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::RenameKeyRequest, ::viam::app::v1::RenameKeyResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_RenameKey_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_RenameKey_, context, request, response); +} + +void AppService::Stub::experimental_async::RenameKey(::grpc::ClientContext* context, const ::viam::app::v1::RenameKeyRequest* request, ::viam::app::v1::RenameKeyResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_RenameKey_, context, request, response, std::move(f)); +} + +void AppService::Stub::experimental_async::RenameKey(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::RenameKeyResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_RenameKey_, context, request, response, std::move(f)); } -void AppService::Stub::async::RenameKey(::grpc::ClientContext* context, const ::viam::app::v1::RenameKeyRequest* request, ::viam::app::v1::RenameKeyResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::RenameKeyRequest, ::viam::app::v1::RenameKeyResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_RenameKey_, context, request, response, std::move(f)); +void AppService::Stub::experimental_async::RenameKey(::grpc::ClientContext* context, const ::viam::app::v1::RenameKeyRequest* request, ::viam::app::v1::RenameKeyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_RenameKey_, context, request, response, reactor); } -void AppService::Stub::async::RenameKey(::grpc::ClientContext* context, const ::viam::app::v1::RenameKeyRequest* request, ::viam::app::v1::RenameKeyResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_RenameKey_, context, request, response, reactor); +void AppService::Stub::experimental_async::RenameKey(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::RenameKeyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_RenameKey_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::RenameKeyResponse>* AppService::Stub::AsyncRenameKeyRaw(::grpc::ClientContext* context, const ::viam::app::v1::RenameKeyRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::RenameKeyResponse>::Create(channel_.get(), cq, rpcmethod_RenameKey_, context, request, true); } ::grpc::ClientAsyncResponseReader< ::viam::app::v1::RenameKeyResponse>* AppService::Stub::PrepareAsyncRenameKeyRaw(::grpc::ClientContext* context, const ::viam::app::v1::RenameKeyRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::RenameKeyResponse, ::viam::app::v1::RenameKeyRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_RenameKey_, context, request); + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::RenameKeyResponse>::Create(channel_.get(), cq, rpcmethod_RenameKey_, context, request, false); +} + +::grpc::Status AppService::Stub::RotateKey(::grpc::ClientContext* context, const ::viam::app::v1::RotateKeyRequest& request, ::viam::app::v1::RotateKeyResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_RotateKey_, context, request, response); +} + +void AppService::Stub::experimental_async::RotateKey(::grpc::ClientContext* context, const ::viam::app::v1::RotateKeyRequest* request, ::viam::app::v1::RotateKeyResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_RotateKey_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::RenameKeyResponse>* AppService::Stub::AsyncRenameKeyRaw(::grpc::ClientContext* context, const ::viam::app::v1::RenameKeyRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncRenameKeyRaw(context, request, cq); - result->StartCall(); - return result; +void AppService::Stub::experimental_async::RotateKey(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::RotateKeyResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_RotateKey_, context, request, response, std::move(f)); } -::grpc::Status AppService::Stub::RotateKey(::grpc::ClientContext* context, const ::viam::app::v1::RotateKeyRequest& request, ::viam::app::v1::RotateKeyResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::RotateKeyRequest, ::viam::app::v1::RotateKeyResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_RotateKey_, context, request, response); +void AppService::Stub::experimental_async::RotateKey(::grpc::ClientContext* context, const ::viam::app::v1::RotateKeyRequest* request, ::viam::app::v1::RotateKeyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_RotateKey_, context, request, response, reactor); } -void AppService::Stub::async::RotateKey(::grpc::ClientContext* context, const ::viam::app::v1::RotateKeyRequest* request, ::viam::app::v1::RotateKeyResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::RotateKeyRequest, ::viam::app::v1::RotateKeyResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_RotateKey_, context, request, response, std::move(f)); +void AppService::Stub::experimental_async::RotateKey(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::RotateKeyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_RotateKey_, context, request, response, reactor); } -void AppService::Stub::async::RotateKey(::grpc::ClientContext* context, const ::viam::app::v1::RotateKeyRequest* request, ::viam::app::v1::RotateKeyResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_RotateKey_, context, request, response, reactor); +::grpc::ClientAsyncResponseReader< ::viam::app::v1::RotateKeyResponse>* AppService::Stub::AsyncRotateKeyRaw(::grpc::ClientContext* context, const ::viam::app::v1::RotateKeyRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::RotateKeyResponse>::Create(channel_.get(), cq, rpcmethod_RotateKey_, context, request, true); } ::grpc::ClientAsyncResponseReader< ::viam::app::v1::RotateKeyResponse>* AppService::Stub::PrepareAsyncRotateKeyRaw(::grpc::ClientContext* context, const ::viam::app::v1::RotateKeyRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::RotateKeyResponse, ::viam::app::v1::RotateKeyRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_RotateKey_, context, request); + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::RotateKeyResponse>::Create(channel_.get(), cq, rpcmethod_RotateKey_, context, request, false); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::RotateKeyResponse>* AppService::Stub::AsyncRotateKeyRaw(::grpc::ClientContext* context, const ::viam::app::v1::RotateKeyRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncRotateKeyRaw(context, request, cq); - result->StartCall(); - return result; +::grpc::Status AppService::Stub::CreateKeyFromExistingKeyAuthorizations(::grpc::ClientContext* context, const ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsRequest& request, ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateKeyFromExistingKeyAuthorizations_, context, request, response); } -::grpc::Status AppService::Stub::CreateKeyFromExistingKeyAuthorizations(::grpc::ClientContext* context, const ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsRequest& request, ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsRequest, ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_CreateKeyFromExistingKeyAuthorizations_, context, request, response); +void AppService::Stub::experimental_async::CreateKeyFromExistingKeyAuthorizations(::grpc::ClientContext* context, const ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsRequest* request, ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateKeyFromExistingKeyAuthorizations_, context, request, response, std::move(f)); } -void AppService::Stub::async::CreateKeyFromExistingKeyAuthorizations(::grpc::ClientContext* context, const ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsRequest* request, ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsRequest, ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_CreateKeyFromExistingKeyAuthorizations_, context, request, response, std::move(f)); +void AppService::Stub::experimental_async::CreateKeyFromExistingKeyAuthorizations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateKeyFromExistingKeyAuthorizations_, context, request, response, std::move(f)); } -void AppService::Stub::async::CreateKeyFromExistingKeyAuthorizations(::grpc::ClientContext* context, const ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsRequest* request, ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_CreateKeyFromExistingKeyAuthorizations_, context, request, response, reactor); +void AppService::Stub::experimental_async::CreateKeyFromExistingKeyAuthorizations(::grpc::ClientContext* context, const ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsRequest* request, ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateKeyFromExistingKeyAuthorizations_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse>* AppService::Stub::PrepareAsyncCreateKeyFromExistingKeyAuthorizationsRaw(::grpc::ClientContext* context, const ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse, ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_CreateKeyFromExistingKeyAuthorizations_, context, request); +void AppService::Stub::experimental_async::CreateKeyFromExistingKeyAuthorizations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateKeyFromExistingKeyAuthorizations_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse>* AppService::Stub::AsyncCreateKeyFromExistingKeyAuthorizationsRaw(::grpc::ClientContext* context, const ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncCreateKeyFromExistingKeyAuthorizationsRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse>::Create(channel_.get(), cq, rpcmethod_CreateKeyFromExistingKeyAuthorizations_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse>* AppService::Stub::PrepareAsyncCreateKeyFromExistingKeyAuthorizationsRaw(::grpc::ClientContext* context, const ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse>::Create(channel_.get(), cq, rpcmethod_CreateKeyFromExistingKeyAuthorizations_, context, request, false); } AppService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( AppService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::GetUserIDByEmailRequest, ::viam::app::v1::GetUserIDByEmailResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::GetUserIDByEmailRequest, ::viam::app::v1::GetUserIDByEmailResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::GetUserIDByEmailRequest* req, ::viam::app::v1::GetUserIDByEmailResponse* resp) { return service->GetUserIDByEmail(ctx, req, resp); @@ -2010,9 +2695,9 @@ AppService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( AppService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::CreateOrganizationRequest, ::viam::app::v1::CreateOrganizationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::CreateOrganizationRequest, ::viam::app::v1::CreateOrganizationResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::CreateOrganizationRequest* req, ::viam::app::v1::CreateOrganizationResponse* resp) { return service->CreateOrganization(ctx, req, resp); @@ -2020,9 +2705,9 @@ AppService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( AppService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::ListOrganizationsRequest, ::viam::app::v1::ListOrganizationsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::ListOrganizationsRequest, ::viam::app::v1::ListOrganizationsResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::ListOrganizationsRequest* req, ::viam::app::v1::ListOrganizationsResponse* resp) { return service->ListOrganizations(ctx, req, resp); @@ -2030,9 +2715,9 @@ AppService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( AppService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::GetOrganizationsWithAccessToLocationRequest, ::viam::app::v1::GetOrganizationsWithAccessToLocationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::GetOrganizationsWithAccessToLocationRequest, ::viam::app::v1::GetOrganizationsWithAccessToLocationResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::GetOrganizationsWithAccessToLocationRequest* req, ::viam::app::v1::GetOrganizationsWithAccessToLocationResponse* resp) { return service->GetOrganizationsWithAccessToLocation(ctx, req, resp); @@ -2040,9 +2725,9 @@ AppService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( AppService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::ListOrganizationsByUserRequest, ::viam::app::v1::ListOrganizationsByUserResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::ListOrganizationsByUserRequest, ::viam::app::v1::ListOrganizationsByUserResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::ListOrganizationsByUserRequest* req, ::viam::app::v1::ListOrganizationsByUserResponse* resp) { return service->ListOrganizationsByUser(ctx, req, resp); @@ -2050,739 +2735,839 @@ AppService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( AppService_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::GetOrganizationRequest, ::viam::app::v1::GetOrganizationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::SearchOrganizationsRequest, ::viam::app::v1::SearchOrganizationsResponse>( + [](AppService::Service* service, + ::grpc_impl::ServerContext* ctx, + const ::viam::app::v1::SearchOrganizationsRequest* req, + ::viam::app::v1::SearchOrganizationsResponse* resp) { + return service->SearchOrganizations(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AppService_method_names[6], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::GetOrganizationRequest, ::viam::app::v1::GetOrganizationResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::GetOrganizationRequest* req, ::viam::app::v1::GetOrganizationResponse* resp) { return service->GetOrganization(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[6], + AppService_method_names[7], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::GetOrganizationNamespaceAvailabilityRequest, ::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::GetOrganizationNamespaceAvailabilityRequest, ::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::GetOrganizationNamespaceAvailabilityRequest* req, ::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse* resp) { return service->GetOrganizationNamespaceAvailability(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[7], + AppService_method_names[8], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::UpdateOrganizationRequest, ::viam::app::v1::UpdateOrganizationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::UpdateOrganizationRequest, ::viam::app::v1::UpdateOrganizationResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::UpdateOrganizationRequest* req, ::viam::app::v1::UpdateOrganizationResponse* resp) { return service->UpdateOrganization(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[8], + AppService_method_names[9], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::DeleteOrganizationRequest, ::viam::app::v1::DeleteOrganizationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::DeleteOrganizationRequest, ::viam::app::v1::DeleteOrganizationResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::DeleteOrganizationRequest* req, ::viam::app::v1::DeleteOrganizationResponse* resp) { return service->DeleteOrganization(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[9], + AppService_method_names[10], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::ListOrganizationMembersRequest, ::viam::app::v1::ListOrganizationMembersResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::ListOrganizationMembersRequest, ::viam::app::v1::ListOrganizationMembersResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::ListOrganizationMembersRequest* req, ::viam::app::v1::ListOrganizationMembersResponse* resp) { return service->ListOrganizationMembers(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[10], + AppService_method_names[11], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::CreateOrganizationInviteRequest, ::viam::app::v1::CreateOrganizationInviteResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::CreateOrganizationInviteRequest, ::viam::app::v1::CreateOrganizationInviteResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::CreateOrganizationInviteRequest* req, ::viam::app::v1::CreateOrganizationInviteResponse* resp) { return service->CreateOrganizationInvite(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[11], + AppService_method_names[12], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest, ::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest, ::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest* req, ::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse* resp) { return service->UpdateOrganizationInviteAuthorizations(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[12], + AppService_method_names[13], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::DeleteOrganizationMemberRequest, ::viam::app::v1::DeleteOrganizationMemberResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::DeleteOrganizationMemberRequest, ::viam::app::v1::DeleteOrganizationMemberResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::DeleteOrganizationMemberRequest* req, ::viam::app::v1::DeleteOrganizationMemberResponse* resp) { return service->DeleteOrganizationMember(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[13], + AppService_method_names[14], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::DeleteOrganizationInviteRequest, ::viam::app::v1::DeleteOrganizationInviteResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::DeleteOrganizationInviteRequest, ::viam::app::v1::DeleteOrganizationInviteResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::DeleteOrganizationInviteRequest* req, ::viam::app::v1::DeleteOrganizationInviteResponse* resp) { return service->DeleteOrganizationInvite(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[14], + AppService_method_names[15], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::ResendOrganizationInviteRequest, ::viam::app::v1::ResendOrganizationInviteResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::ResendOrganizationInviteRequest, ::viam::app::v1::ResendOrganizationInviteResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::ResendOrganizationInviteRequest* req, ::viam::app::v1::ResendOrganizationInviteResponse* resp) { return service->ResendOrganizationInvite(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[15], + AppService_method_names[16], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::EnableBillingServiceRequest, ::viam::app::v1::EnableBillingServiceResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::EnableBillingServiceRequest, ::viam::app::v1::EnableBillingServiceResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::EnableBillingServiceRequest* req, ::viam::app::v1::EnableBillingServiceResponse* resp) { return service->EnableBillingService(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[16], + AppService_method_names[17], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::DisableBillingServiceRequest, ::viam::app::v1::DisableBillingServiceResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::DisableBillingServiceRequest, ::viam::app::v1::DisableBillingServiceResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::DisableBillingServiceRequest* req, ::viam::app::v1::DisableBillingServiceResponse* resp) { return service->DisableBillingService(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[17], + AppService_method_names[18], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::UpdateBillingServiceRequest, ::viam::app::v1::UpdateBillingServiceResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::UpdateBillingServiceRequest, ::viam::app::v1::UpdateBillingServiceResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::UpdateBillingServiceRequest* req, ::viam::app::v1::UpdateBillingServiceResponse* resp) { return service->UpdateBillingService(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[18], + AppService_method_names[19], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::GetBillingServiceConfigRequest, ::viam::app::v1::GetBillingServiceConfigResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::GetBillingServiceConfigRequest, ::viam::app::v1::GetBillingServiceConfigResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::GetBillingServiceConfigRequest* req, ::viam::app::v1::GetBillingServiceConfigResponse* resp) { return service->GetBillingServiceConfig(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[19], + AppService_method_names[20], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::OrganizationSetSupportEmailRequest, ::viam::app::v1::OrganizationSetSupportEmailResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::OrganizationSetSupportEmailRequest, ::viam::app::v1::OrganizationSetSupportEmailResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::OrganizationSetSupportEmailRequest* req, ::viam::app::v1::OrganizationSetSupportEmailResponse* resp) { return service->OrganizationSetSupportEmail(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[20], + AppService_method_names[21], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::OrganizationGetSupportEmailRequest, ::viam::app::v1::OrganizationGetSupportEmailResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::OrganizationGetSupportEmailRequest, ::viam::app::v1::OrganizationGetSupportEmailResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::OrganizationGetSupportEmailRequest* req, ::viam::app::v1::OrganizationGetSupportEmailResponse* resp) { return service->OrganizationGetSupportEmail(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[21], + AppService_method_names[22], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::OrganizationSetLogoRequest, ::viam::app::v1::OrganizationSetLogoResponse>( + [](AppService::Service* service, + ::grpc_impl::ServerContext* ctx, + const ::viam::app::v1::OrganizationSetLogoRequest* req, + ::viam::app::v1::OrganizationSetLogoResponse* resp) { + return service->OrganizationSetLogo(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AppService_method_names[23], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::OrganizationGetLogoRequest, ::viam::app::v1::OrganizationGetLogoResponse>( + [](AppService::Service* service, + ::grpc_impl::ServerContext* ctx, + const ::viam::app::v1::OrganizationGetLogoRequest* req, + ::viam::app::v1::OrganizationGetLogoResponse* resp) { + return service->OrganizationGetLogo(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AppService_method_names[24], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::EnableAuthServiceRequest, ::viam::app::v1::EnableAuthServiceResponse>( + [](AppService::Service* service, + ::grpc_impl::ServerContext* ctx, + const ::viam::app::v1::EnableAuthServiceRequest* req, + ::viam::app::v1::EnableAuthServiceResponse* resp) { + return service->EnableAuthService(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AppService_method_names[25], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::DisableAuthServiceRequest, ::viam::app::v1::DisableAuthServiceResponse>( + [](AppService::Service* service, + ::grpc_impl::ServerContext* ctx, + const ::viam::app::v1::DisableAuthServiceRequest* req, + ::viam::app::v1::DisableAuthServiceResponse* resp) { + return service->DisableAuthService(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AppService_method_names[26], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::CreateOAuthAppRequest, ::viam::app::v1::CreateOAuthAppResponse>( + [](AppService::Service* service, + ::grpc_impl::ServerContext* ctx, + const ::viam::app::v1::CreateOAuthAppRequest* req, + ::viam::app::v1::CreateOAuthAppResponse* resp) { + return service->CreateOAuthApp(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AppService_method_names[27], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::ReadOAuthAppRequest, ::viam::app::v1::ReadOAuthAppResponse>( + [](AppService::Service* service, + ::grpc_impl::ServerContext* ctx, + const ::viam::app::v1::ReadOAuthAppRequest* req, + ::viam::app::v1::ReadOAuthAppResponse* resp) { + return service->ReadOAuthApp(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AppService_method_names[28], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::UpdateOAuthAppRequest, ::viam::app::v1::UpdateOAuthAppResponse>( + [](AppService::Service* service, + ::grpc_impl::ServerContext* ctx, + const ::viam::app::v1::UpdateOAuthAppRequest* req, + ::viam::app::v1::UpdateOAuthAppResponse* resp) { + return service->UpdateOAuthApp(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AppService_method_names[29], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::DeleteOAuthAppRequest, ::viam::app::v1::DeleteOAuthAppResponse>( + [](AppService::Service* service, + ::grpc_impl::ServerContext* ctx, + const ::viam::app::v1::DeleteOAuthAppRequest* req, + ::viam::app::v1::DeleteOAuthAppResponse* resp) { + return service->DeleteOAuthApp(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AppService_method_names[30], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::ListOAuthAppsRequest, ::viam::app::v1::ListOAuthAppsResponse>( + [](AppService::Service* service, + ::grpc_impl::ServerContext* ctx, + const ::viam::app::v1::ListOAuthAppsRequest* req, + ::viam::app::v1::ListOAuthAppsResponse* resp) { + return service->ListOAuthApps(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AppService_method_names[31], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::CreateLocationRequest, ::viam::app::v1::CreateLocationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::CreateLocationRequest, ::viam::app::v1::CreateLocationResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::CreateLocationRequest* req, ::viam::app::v1::CreateLocationResponse* resp) { return service->CreateLocation(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[22], + AppService_method_names[32], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::GetLocationRequest, ::viam::app::v1::GetLocationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::GetLocationRequest, ::viam::app::v1::GetLocationResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::GetLocationRequest* req, ::viam::app::v1::GetLocationResponse* resp) { return service->GetLocation(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[23], + AppService_method_names[33], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::UpdateLocationRequest, ::viam::app::v1::UpdateLocationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::UpdateLocationRequest, ::viam::app::v1::UpdateLocationResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::UpdateLocationRequest* req, ::viam::app::v1::UpdateLocationResponse* resp) { return service->UpdateLocation(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[24], + AppService_method_names[34], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::DeleteLocationRequest, ::viam::app::v1::DeleteLocationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::DeleteLocationRequest, ::viam::app::v1::DeleteLocationResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::DeleteLocationRequest* req, ::viam::app::v1::DeleteLocationResponse* resp) { return service->DeleteLocation(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[25], + AppService_method_names[35], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::ListLocationsRequest, ::viam::app::v1::ListLocationsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::ListLocationsRequest, ::viam::app::v1::ListLocationsResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::ListLocationsRequest* req, ::viam::app::v1::ListLocationsResponse* resp) { return service->ListLocations(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[26], + AppService_method_names[36], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::ShareLocationRequest, ::viam::app::v1::ShareLocationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::ShareLocationRequest, ::viam::app::v1::ShareLocationResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::ShareLocationRequest* req, ::viam::app::v1::ShareLocationResponse* resp) { return service->ShareLocation(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[27], + AppService_method_names[37], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::UnshareLocationRequest, ::viam::app::v1::UnshareLocationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::UnshareLocationRequest, ::viam::app::v1::UnshareLocationResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::UnshareLocationRequest* req, ::viam::app::v1::UnshareLocationResponse* resp) { return service->UnshareLocation(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[28], + AppService_method_names[38], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::LocationAuthRequest, ::viam::app::v1::LocationAuthResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::LocationAuthRequest, ::viam::app::v1::LocationAuthResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::LocationAuthRequest* req, ::viam::app::v1::LocationAuthResponse* resp) { return service->LocationAuth(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[29], + AppService_method_names[39], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::CreateLocationSecretRequest, ::viam::app::v1::CreateLocationSecretResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::CreateLocationSecretRequest, ::viam::app::v1::CreateLocationSecretResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::CreateLocationSecretRequest* req, ::viam::app::v1::CreateLocationSecretResponse* resp) { return service->CreateLocationSecret(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[30], + AppService_method_names[40], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::DeleteLocationSecretRequest, ::viam::app::v1::DeleteLocationSecretResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::DeleteLocationSecretRequest, ::viam::app::v1::DeleteLocationSecretResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::DeleteLocationSecretRequest* req, ::viam::app::v1::DeleteLocationSecretResponse* resp) { return service->DeleteLocationSecret(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[31], + AppService_method_names[41], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::GetRobotRequest, ::viam::app::v1::GetRobotResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::GetRobotRequest, ::viam::app::v1::GetRobotResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::GetRobotRequest* req, ::viam::app::v1::GetRobotResponse* resp) { return service->GetRobot(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[32], + AppService_method_names[42], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::GetRoverRentalRobotsRequest, ::viam::app::v1::GetRoverRentalRobotsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::GetRoverRentalRobotsRequest, ::viam::app::v1::GetRoverRentalRobotsResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::GetRoverRentalRobotsRequest* req, ::viam::app::v1::GetRoverRentalRobotsResponse* resp) { return service->GetRoverRentalRobots(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[33], + AppService_method_names[43], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::GetRobotPartsRequest, ::viam::app::v1::GetRobotPartsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::GetRobotPartsRequest, ::viam::app::v1::GetRobotPartsResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::GetRobotPartsRequest* req, ::viam::app::v1::GetRobotPartsResponse* resp) { return service->GetRobotParts(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[34], + AppService_method_names[44], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::GetRobotPartRequest, ::viam::app::v1::GetRobotPartResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::GetRobotPartRequest, ::viam::app::v1::GetRobotPartResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::GetRobotPartRequest* req, ::viam::app::v1::GetRobotPartResponse* resp) { return service->GetRobotPart(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[35], + AppService_method_names[45], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::GetRobotPartLogsRequest, ::viam::app::v1::GetRobotPartLogsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::GetRobotPartLogsRequest, ::viam::app::v1::GetRobotPartLogsResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::GetRobotPartLogsRequest* req, ::viam::app::v1::GetRobotPartLogsResponse* resp) { return service->GetRobotPartLogs(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[36], + AppService_method_names[46], ::grpc::internal::RpcMethod::SERVER_STREAMING, new ::grpc::internal::ServerStreamingHandler< AppService::Service, ::viam::app::v1::TailRobotPartLogsRequest, ::viam::app::v1::TailRobotPartLogsResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::TailRobotPartLogsRequest* req, - ::grpc::ServerWriter<::viam::app::v1::TailRobotPartLogsResponse>* writer) { + ::grpc_impl::ServerWriter<::viam::app::v1::TailRobotPartLogsResponse>* writer) { return service->TailRobotPartLogs(ctx, req, writer); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[37], + AppService_method_names[47], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::GetRobotPartHistoryRequest, ::viam::app::v1::GetRobotPartHistoryResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::GetRobotPartHistoryRequest, ::viam::app::v1::GetRobotPartHistoryResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::GetRobotPartHistoryRequest* req, ::viam::app::v1::GetRobotPartHistoryResponse* resp) { return service->GetRobotPartHistory(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[38], + AppService_method_names[48], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::UpdateRobotPartRequest, ::viam::app::v1::UpdateRobotPartResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::UpdateRobotPartRequest, ::viam::app::v1::UpdateRobotPartResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::UpdateRobotPartRequest* req, ::viam::app::v1::UpdateRobotPartResponse* resp) { return service->UpdateRobotPart(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[39], + AppService_method_names[49], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::NewRobotPartRequest, ::viam::app::v1::NewRobotPartResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::NewRobotPartRequest, ::viam::app::v1::NewRobotPartResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::NewRobotPartRequest* req, ::viam::app::v1::NewRobotPartResponse* resp) { return service->NewRobotPart(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[40], + AppService_method_names[50], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::DeleteRobotPartRequest, ::viam::app::v1::DeleteRobotPartResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::DeleteRobotPartRequest, ::viam::app::v1::DeleteRobotPartResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::DeleteRobotPartRequest* req, ::viam::app::v1::DeleteRobotPartResponse* resp) { return service->DeleteRobotPart(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[41], + AppService_method_names[51], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::GetRobotAPIKeysRequest, ::viam::app::v1::GetRobotAPIKeysResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::GetRobotAPIKeysRequest, ::viam::app::v1::GetRobotAPIKeysResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::GetRobotAPIKeysRequest* req, ::viam::app::v1::GetRobotAPIKeysResponse* resp) { return service->GetRobotAPIKeys(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[42], + AppService_method_names[52], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::MarkPartAsMainRequest, ::viam::app::v1::MarkPartAsMainResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::MarkPartAsMainRequest, ::viam::app::v1::MarkPartAsMainResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::MarkPartAsMainRequest* req, ::viam::app::v1::MarkPartAsMainResponse* resp) { return service->MarkPartAsMain(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[43], + AppService_method_names[53], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::MarkPartForRestartRequest, ::viam::app::v1::MarkPartForRestartResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::MarkPartForRestartRequest, ::viam::app::v1::MarkPartForRestartResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::MarkPartForRestartRequest* req, ::viam::app::v1::MarkPartForRestartResponse* resp) { return service->MarkPartForRestart(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[44], + AppService_method_names[54], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::CreateRobotPartSecretRequest, ::viam::app::v1::CreateRobotPartSecretResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::CreateRobotPartSecretRequest, ::viam::app::v1::CreateRobotPartSecretResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::CreateRobotPartSecretRequest* req, ::viam::app::v1::CreateRobotPartSecretResponse* resp) { return service->CreateRobotPartSecret(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[45], + AppService_method_names[55], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::DeleteRobotPartSecretRequest, ::viam::app::v1::DeleteRobotPartSecretResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::DeleteRobotPartSecretRequest, ::viam::app::v1::DeleteRobotPartSecretResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::DeleteRobotPartSecretRequest* req, ::viam::app::v1::DeleteRobotPartSecretResponse* resp) { return service->DeleteRobotPartSecret(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[46], + AppService_method_names[56], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::ListRobotsRequest, ::viam::app::v1::ListRobotsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::ListRobotsRequest, ::viam::app::v1::ListRobotsResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::ListRobotsRequest* req, ::viam::app::v1::ListRobotsResponse* resp) { return service->ListRobots(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[47], + AppService_method_names[57], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::NewRobotRequest, ::viam::app::v1::NewRobotResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::NewRobotRequest, ::viam::app::v1::NewRobotResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::NewRobotRequest* req, ::viam::app::v1::NewRobotResponse* resp) { return service->NewRobot(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[48], + AppService_method_names[58], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::UpdateRobotRequest, ::viam::app::v1::UpdateRobotResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::UpdateRobotRequest, ::viam::app::v1::UpdateRobotResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::UpdateRobotRequest* req, ::viam::app::v1::UpdateRobotResponse* resp) { return service->UpdateRobot(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[49], + AppService_method_names[59], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::DeleteRobotRequest, ::viam::app::v1::DeleteRobotResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::DeleteRobotRequest, ::viam::app::v1::DeleteRobotResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::DeleteRobotRequest* req, ::viam::app::v1::DeleteRobotResponse* resp) { return service->DeleteRobot(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[50], + AppService_method_names[60], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::ListFragmentsRequest, ::viam::app::v1::ListFragmentsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::ListFragmentsRequest, ::viam::app::v1::ListFragmentsResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::ListFragmentsRequest* req, ::viam::app::v1::ListFragmentsResponse* resp) { return service->ListFragments(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[51], + AppService_method_names[61], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::GetFragmentRequest, ::viam::app::v1::GetFragmentResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::GetFragmentRequest, ::viam::app::v1::GetFragmentResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::GetFragmentRequest* req, ::viam::app::v1::GetFragmentResponse* resp) { return service->GetFragment(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[52], + AppService_method_names[62], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::CreateFragmentRequest, ::viam::app::v1::CreateFragmentResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::CreateFragmentRequest, ::viam::app::v1::CreateFragmentResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::CreateFragmentRequest* req, ::viam::app::v1::CreateFragmentResponse* resp) { return service->CreateFragment(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[53], + AppService_method_names[63], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::UpdateFragmentRequest, ::viam::app::v1::UpdateFragmentResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::UpdateFragmentRequest, ::viam::app::v1::UpdateFragmentResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::UpdateFragmentRequest* req, ::viam::app::v1::UpdateFragmentResponse* resp) { return service->UpdateFragment(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[54], + AppService_method_names[64], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::DeleteFragmentRequest, ::viam::app::v1::DeleteFragmentResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::DeleteFragmentRequest, ::viam::app::v1::DeleteFragmentResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::DeleteFragmentRequest* req, ::viam::app::v1::DeleteFragmentResponse* resp) { return service->DeleteFragment(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[55], + AppService_method_names[65], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::ListMachineFragmentsRequest, ::viam::app::v1::ListMachineFragmentsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::ListMachineFragmentsRequest, ::viam::app::v1::ListMachineFragmentsResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::ListMachineFragmentsRequest* req, ::viam::app::v1::ListMachineFragmentsResponse* resp) { return service->ListMachineFragments(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[56], + AppService_method_names[66], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::GetFragmentHistoryRequest, ::viam::app::v1::GetFragmentHistoryResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::GetFragmentHistoryRequest, ::viam::app::v1::GetFragmentHistoryResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::GetFragmentHistoryRequest* req, ::viam::app::v1::GetFragmentHistoryResponse* resp) { return service->GetFragmentHistory(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[57], + AppService_method_names[67], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::AddRoleRequest, ::viam::app::v1::AddRoleResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::AddRoleRequest, ::viam::app::v1::AddRoleResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::AddRoleRequest* req, ::viam::app::v1::AddRoleResponse* resp) { return service->AddRole(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[58], + AppService_method_names[68], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::RemoveRoleRequest, ::viam::app::v1::RemoveRoleResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::RemoveRoleRequest, ::viam::app::v1::RemoveRoleResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::RemoveRoleRequest* req, ::viam::app::v1::RemoveRoleResponse* resp) { return service->RemoveRole(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[59], + AppService_method_names[69], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::ChangeRoleRequest, ::viam::app::v1::ChangeRoleResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::ChangeRoleRequest, ::viam::app::v1::ChangeRoleResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::ChangeRoleRequest* req, ::viam::app::v1::ChangeRoleResponse* resp) { return service->ChangeRole(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[60], + AppService_method_names[70], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::ListAuthorizationsRequest, ::viam::app::v1::ListAuthorizationsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::ListAuthorizationsRequest, ::viam::app::v1::ListAuthorizationsResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::ListAuthorizationsRequest* req, ::viam::app::v1::ListAuthorizationsResponse* resp) { return service->ListAuthorizations(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[61], + AppService_method_names[71], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::CheckPermissionsRequest, ::viam::app::v1::CheckPermissionsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::CheckPermissionsRequest, ::viam::app::v1::CheckPermissionsResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::CheckPermissionsRequest* req, ::viam::app::v1::CheckPermissionsResponse* resp) { return service->CheckPermissions(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[62], + AppService_method_names[72], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::GetRegistryItemRequest, ::viam::app::v1::GetRegistryItemResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::GetRegistryItemRequest, ::viam::app::v1::GetRegistryItemResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::GetRegistryItemRequest* req, ::viam::app::v1::GetRegistryItemResponse* resp) { return service->GetRegistryItem(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[63], + AppService_method_names[73], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::CreateRegistryItemRequest, ::viam::app::v1::CreateRegistryItemResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::CreateRegistryItemRequest, ::viam::app::v1::CreateRegistryItemResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::CreateRegistryItemRequest* req, ::viam::app::v1::CreateRegistryItemResponse* resp) { return service->CreateRegistryItem(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[64], + AppService_method_names[74], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::UpdateRegistryItemRequest, ::viam::app::v1::UpdateRegistryItemResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::UpdateRegistryItemRequest, ::viam::app::v1::UpdateRegistryItemResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::UpdateRegistryItemRequest* req, ::viam::app::v1::UpdateRegistryItemResponse* resp) { return service->UpdateRegistryItem(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[65], + AppService_method_names[75], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::ListRegistryItemsRequest, ::viam::app::v1::ListRegistryItemsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::ListRegistryItemsRequest, ::viam::app::v1::ListRegistryItemsResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::ListRegistryItemsRequest* req, ::viam::app::v1::ListRegistryItemsResponse* resp) { return service->ListRegistryItems(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[66], + AppService_method_names[76], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::DeleteRegistryItemRequest, ::viam::app::v1::DeleteRegistryItemResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::DeleteRegistryItemRequest, ::viam::app::v1::DeleteRegistryItemResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::DeleteRegistryItemRequest* req, ::viam::app::v1::DeleteRegistryItemResponse* resp) { return service->DeleteRegistryItem(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[67], + AppService_method_names[77], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::TransferRegistryItemRequest, ::viam::app::v1::TransferRegistryItemResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::TransferRegistryItemRequest, ::viam::app::v1::TransferRegistryItemResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::TransferRegistryItemRequest* req, ::viam::app::v1::TransferRegistryItemResponse* resp) { return service->TransferRegistryItem(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[68], + AppService_method_names[78], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::CreateModuleRequest, ::viam::app::v1::CreateModuleResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::CreateModuleRequest, ::viam::app::v1::CreateModuleResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::CreateModuleRequest* req, ::viam::app::v1::CreateModuleResponse* resp) { return service->CreateModule(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[69], + AppService_method_names[79], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::UpdateModuleRequest, ::viam::app::v1::UpdateModuleResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::UpdateModuleRequest, ::viam::app::v1::UpdateModuleResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::UpdateModuleRequest* req, ::viam::app::v1::UpdateModuleResponse* resp) { return service->UpdateModule(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[70], + AppService_method_names[80], ::grpc::internal::RpcMethod::CLIENT_STREAMING, new ::grpc::internal::ClientStreamingHandler< AppService::Service, ::viam::app::v1::UploadModuleFileRequest, ::viam::app::v1::UploadModuleFileResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, - ::grpc::ServerReader<::viam::app::v1::UploadModuleFileRequest>* reader, + ::grpc_impl::ServerContext* ctx, + ::grpc_impl::ServerReader<::viam::app::v1::UploadModuleFileRequest>* reader, ::viam::app::v1::UploadModuleFileResponse* resp) { return service->UploadModuleFile(ctx, reader, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[71], + AppService_method_names[81], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::GetModuleRequest, ::viam::app::v1::GetModuleResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::GetModuleRequest, ::viam::app::v1::GetModuleResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::GetModuleRequest* req, ::viam::app::v1::GetModuleResponse* resp) { return service->GetModule(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[72], + AppService_method_names[82], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::ListModulesRequest, ::viam::app::v1::ListModulesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::ListModulesRequest, ::viam::app::v1::ListModulesResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::ListModulesRequest* req, ::viam::app::v1::ListModulesResponse* resp) { return service->ListModules(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[73], + AppService_method_names[83], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::CreateKeyRequest, ::viam::app::v1::CreateKeyResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::CreateKeyRequest, ::viam::app::v1::CreateKeyResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::CreateKeyRequest* req, ::viam::app::v1::CreateKeyResponse* resp) { return service->CreateKey(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[74], + AppService_method_names[84], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::DeleteKeyRequest, ::viam::app::v1::DeleteKeyResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::DeleteKeyRequest, ::viam::app::v1::DeleteKeyResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::DeleteKeyRequest* req, ::viam::app::v1::DeleteKeyResponse* resp) { return service->DeleteKey(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[75], + AppService_method_names[85], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::ListKeysRequest, ::viam::app::v1::ListKeysResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::ListKeysRequest, ::viam::app::v1::ListKeysResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::ListKeysRequest* req, ::viam::app::v1::ListKeysResponse* resp) { return service->ListKeys(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[76], + AppService_method_names[86], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::RenameKeyRequest, ::viam::app::v1::RenameKeyResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::RenameKeyRequest, ::viam::app::v1::RenameKeyResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::RenameKeyRequest* req, ::viam::app::v1::RenameKeyResponse* resp) { return service->RenameKey(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[77], + AppService_method_names[87], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::RotateKeyRequest, ::viam::app::v1::RotateKeyResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::RotateKeyRequest, ::viam::app::v1::RotateKeyResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::RotateKeyRequest* req, ::viam::app::v1::RotateKeyResponse* resp) { return service->RotateKey(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - AppService_method_names[78], + AppService_method_names[88], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsRequest, ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AppService::Service, ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsRequest, ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse>( [](AppService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsRequest* req, ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse* resp) { return service->CreateKeyFromExistingKeyAuthorizations(ctx, req, resp); @@ -2827,6 +3612,13 @@ ::grpc::Status AppService::Service::ListOrganizationsByUser(::grpc::ServerContex return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } +::grpc::Status AppService::Service::SearchOrganizations(::grpc::ServerContext* context, const ::viam::app::v1::SearchOrganizationsRequest* request, ::viam::app::v1::SearchOrganizationsResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + ::grpc::Status AppService::Service::GetOrganization(::grpc::ServerContext* context, const ::viam::app::v1::GetOrganizationRequest* request, ::viam::app::v1::GetOrganizationResponse* response) { (void) context; (void) request; @@ -2939,6 +3731,69 @@ ::grpc::Status AppService::Service::OrganizationGetSupportEmail(::grpc::ServerCo return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } +::grpc::Status AppService::Service::OrganizationSetLogo(::grpc::ServerContext* context, const ::viam::app::v1::OrganizationSetLogoRequest* request, ::viam::app::v1::OrganizationSetLogoResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AppService::Service::OrganizationGetLogo(::grpc::ServerContext* context, const ::viam::app::v1::OrganizationGetLogoRequest* request, ::viam::app::v1::OrganizationGetLogoResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AppService::Service::EnableAuthService(::grpc::ServerContext* context, const ::viam::app::v1::EnableAuthServiceRequest* request, ::viam::app::v1::EnableAuthServiceResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AppService::Service::DisableAuthService(::grpc::ServerContext* context, const ::viam::app::v1::DisableAuthServiceRequest* request, ::viam::app::v1::DisableAuthServiceResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AppService::Service::CreateOAuthApp(::grpc::ServerContext* context, const ::viam::app::v1::CreateOAuthAppRequest* request, ::viam::app::v1::CreateOAuthAppResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AppService::Service::ReadOAuthApp(::grpc::ServerContext* context, const ::viam::app::v1::ReadOAuthAppRequest* request, ::viam::app::v1::ReadOAuthAppResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AppService::Service::UpdateOAuthApp(::grpc::ServerContext* context, const ::viam::app::v1::UpdateOAuthAppRequest* request, ::viam::app::v1::UpdateOAuthAppResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AppService::Service::DeleteOAuthApp(::grpc::ServerContext* context, const ::viam::app::v1::DeleteOAuthAppRequest* request, ::viam::app::v1::DeleteOAuthAppResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AppService::Service::ListOAuthApps(::grpc::ServerContext* context, const ::viam::app::v1::ListOAuthAppsRequest* request, ::viam::app::v1::ListOAuthAppsResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + ::grpc::Status AppService::Service::CreateLocation(::grpc::ServerContext* context, const ::viam::app::v1::CreateLocationRequest* request, ::viam::app::v1::CreateLocationResponse* response) { (void) context; (void) request; diff --git a/src/viam/api/app/v1/app.grpc.pb.h b/src/viam/api/app/v1/app.grpc.pb.h index f06734ee1..01c8e3f51 100644 --- a/src/viam/api/app/v1/app.grpc.pb.h +++ b/src/viam/api/app/v1/app.grpc.pb.h @@ -7,23 +7,24 @@ #include "app/v1/app.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace app { @@ -79,6 +80,14 @@ class AppService final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::ListOrganizationsByUserResponse>> PrepareAsyncListOrganizationsByUser(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationsByUserRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::ListOrganizationsByUserResponse>>(PrepareAsyncListOrganizationsByUserRaw(context, request, cq)); } + // Search organizations by a couple fields + virtual ::grpc::Status SearchOrganizations(::grpc::ClientContext* context, const ::viam::app::v1::SearchOrganizationsRequest& request, ::viam::app::v1::SearchOrganizationsResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::SearchOrganizationsResponse>> AsyncSearchOrganizations(::grpc::ClientContext* context, const ::viam::app::v1::SearchOrganizationsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::SearchOrganizationsResponse>>(AsyncSearchOrganizationsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::SearchOrganizationsResponse>> PrepareAsyncSearchOrganizations(::grpc::ClientContext* context, const ::viam::app::v1::SearchOrganizationsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::SearchOrganizationsResponse>>(PrepareAsyncSearchOrganizationsRaw(context, request, cq)); + } // Get an organization virtual ::grpc::Status GetOrganization(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationRequest& request, ::viam::app::v1::GetOrganizationResponse* response) = 0; std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::GetOrganizationResponse>> AsyncGetOrganization(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationRequest& request, ::grpc::CompletionQueue* cq) { @@ -203,6 +212,69 @@ class AppService final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::OrganizationGetSupportEmailResponse>> PrepareAsyncOrganizationGetSupportEmail(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationGetSupportEmailRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::OrganizationGetSupportEmailResponse>>(PrepareAsyncOrganizationGetSupportEmailRaw(context, request, cq)); } + virtual ::grpc::Status OrganizationSetLogo(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationSetLogoRequest& request, ::viam::app::v1::OrganizationSetLogoResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::OrganizationSetLogoResponse>> AsyncOrganizationSetLogo(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationSetLogoRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::OrganizationSetLogoResponse>>(AsyncOrganizationSetLogoRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::OrganizationSetLogoResponse>> PrepareAsyncOrganizationSetLogo(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationSetLogoRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::OrganizationSetLogoResponse>>(PrepareAsyncOrganizationSetLogoRaw(context, request, cq)); + } + virtual ::grpc::Status OrganizationGetLogo(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationGetLogoRequest& request, ::viam::app::v1::OrganizationGetLogoResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::OrganizationGetLogoResponse>> AsyncOrganizationGetLogo(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationGetLogoRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::OrganizationGetLogoResponse>>(AsyncOrganizationGetLogoRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::OrganizationGetLogoResponse>> PrepareAsyncOrganizationGetLogo(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationGetLogoRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::OrganizationGetLogoResponse>>(PrepareAsyncOrganizationGetLogoRaw(context, request, cq)); + } + virtual ::grpc::Status EnableAuthService(::grpc::ClientContext* context, const ::viam::app::v1::EnableAuthServiceRequest& request, ::viam::app::v1::EnableAuthServiceResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::EnableAuthServiceResponse>> AsyncEnableAuthService(::grpc::ClientContext* context, const ::viam::app::v1::EnableAuthServiceRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::EnableAuthServiceResponse>>(AsyncEnableAuthServiceRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::EnableAuthServiceResponse>> PrepareAsyncEnableAuthService(::grpc::ClientContext* context, const ::viam::app::v1::EnableAuthServiceRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::EnableAuthServiceResponse>>(PrepareAsyncEnableAuthServiceRaw(context, request, cq)); + } + virtual ::grpc::Status DisableAuthService(::grpc::ClientContext* context, const ::viam::app::v1::DisableAuthServiceRequest& request, ::viam::app::v1::DisableAuthServiceResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::DisableAuthServiceResponse>> AsyncDisableAuthService(::grpc::ClientContext* context, const ::viam::app::v1::DisableAuthServiceRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::DisableAuthServiceResponse>>(AsyncDisableAuthServiceRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::DisableAuthServiceResponse>> PrepareAsyncDisableAuthService(::grpc::ClientContext* context, const ::viam::app::v1::DisableAuthServiceRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::DisableAuthServiceResponse>>(PrepareAsyncDisableAuthServiceRaw(context, request, cq)); + } + virtual ::grpc::Status CreateOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::CreateOAuthAppRequest& request, ::viam::app::v1::CreateOAuthAppResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::CreateOAuthAppResponse>> AsyncCreateOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::CreateOAuthAppRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::CreateOAuthAppResponse>>(AsyncCreateOAuthAppRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::CreateOAuthAppResponse>> PrepareAsyncCreateOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::CreateOAuthAppRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::CreateOAuthAppResponse>>(PrepareAsyncCreateOAuthAppRaw(context, request, cq)); + } + virtual ::grpc::Status ReadOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::ReadOAuthAppRequest& request, ::viam::app::v1::ReadOAuthAppResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::ReadOAuthAppResponse>> AsyncReadOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::ReadOAuthAppRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::ReadOAuthAppResponse>>(AsyncReadOAuthAppRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::ReadOAuthAppResponse>> PrepareAsyncReadOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::ReadOAuthAppRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::ReadOAuthAppResponse>>(PrepareAsyncReadOAuthAppRaw(context, request, cq)); + } + virtual ::grpc::Status UpdateOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::UpdateOAuthAppRequest& request, ::viam::app::v1::UpdateOAuthAppResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::UpdateOAuthAppResponse>> AsyncUpdateOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::UpdateOAuthAppRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::UpdateOAuthAppResponse>>(AsyncUpdateOAuthAppRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::UpdateOAuthAppResponse>> PrepareAsyncUpdateOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::UpdateOAuthAppRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::UpdateOAuthAppResponse>>(PrepareAsyncUpdateOAuthAppRaw(context, request, cq)); + } + virtual ::grpc::Status DeleteOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOAuthAppRequest& request, ::viam::app::v1::DeleteOAuthAppResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::DeleteOAuthAppResponse>> AsyncDeleteOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOAuthAppRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::DeleteOAuthAppResponse>>(AsyncDeleteOAuthAppRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::DeleteOAuthAppResponse>> PrepareAsyncDeleteOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOAuthAppRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::DeleteOAuthAppResponse>>(PrepareAsyncDeleteOAuthAppRaw(context, request, cq)); + } + virtual ::grpc::Status ListOAuthApps(::grpc::ClientContext* context, const ::viam::app::v1::ListOAuthAppsRequest& request, ::viam::app::v1::ListOAuthAppsResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::ListOAuthAppsResponse>> AsyncListOAuthApps(::grpc::ClientContext* context, const ::viam::app::v1::ListOAuthAppsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::ListOAuthAppsResponse>>(AsyncListOAuthAppsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::ListOAuthAppsResponse>> PrepareAsyncListOAuthApps(::grpc::ClientContext* context, const ::viam::app::v1::ListOAuthAppsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::ListOAuthAppsResponse>>(PrepareAsyncListOAuthAppsRaw(context, request, cq)); + } // Location // // Create a location @@ -661,237 +733,1140 @@ class AppService final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse>> PrepareAsyncCreateKeyFromExistingKeyAuthorizations(::grpc::ClientContext* context, const ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse>>(PrepareAsyncCreateKeyFromExistingKeyAuthorizationsRaw(context, request, cq)); } - class async_interface { + class experimental_async_interface { public: - virtual ~async_interface() {} + virtual ~experimental_async_interface() {} // Get the id of the user with the email virtual void GetUserIDByEmail(::grpc::ClientContext* context, const ::viam::app::v1::GetUserIDByEmailRequest* request, ::viam::app::v1::GetUserIDByEmailResponse* response, std::function) = 0; + virtual void GetUserIDByEmail(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetUserIDByEmailResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetUserIDByEmail(::grpc::ClientContext* context, const ::viam::app::v1::GetUserIDByEmailRequest* request, ::viam::app::v1::GetUserIDByEmailResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetUserIDByEmail(::grpc::ClientContext* context, const ::viam::app::v1::GetUserIDByEmailRequest* request, ::viam::app::v1::GetUserIDByEmailResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetUserIDByEmail(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetUserIDByEmailResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetUserIDByEmail(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetUserIDByEmailResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Organizations // // Create a new organization virtual void CreateOrganization(::grpc::ClientContext* context, const ::viam::app::v1::CreateOrganizationRequest* request, ::viam::app::v1::CreateOrganizationResponse* response, std::function) = 0; + virtual void CreateOrganization(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateOrganizationResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void CreateOrganization(::grpc::ClientContext* context, const ::viam::app::v1::CreateOrganizationRequest* request, ::viam::app::v1::CreateOrganizationResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void CreateOrganization(::grpc::ClientContext* context, const ::viam::app::v1::CreateOrganizationRequest* request, ::viam::app::v1::CreateOrganizationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void CreateOrganization(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateOrganizationResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void CreateOrganization(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateOrganizationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // List organizations virtual void ListOrganizations(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationsRequest* request, ::viam::app::v1::ListOrganizationsResponse* response, std::function) = 0; + virtual void ListOrganizations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListOrganizationsResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void ListOrganizations(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationsRequest* request, ::viam::app::v1::ListOrganizationsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ListOrganizations(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationsRequest* request, ::viam::app::v1::ListOrganizationsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void ListOrganizations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListOrganizationsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ListOrganizations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListOrganizationsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Get all organizations that have access to a location. virtual void GetOrganizationsWithAccessToLocation(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationsWithAccessToLocationRequest* request, ::viam::app::v1::GetOrganizationsWithAccessToLocationResponse* response, std::function) = 0; + virtual void GetOrganizationsWithAccessToLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetOrganizationsWithAccessToLocationResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetOrganizationsWithAccessToLocation(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationsWithAccessToLocationRequest* request, ::viam::app::v1::GetOrganizationsWithAccessToLocationResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetOrganizationsWithAccessToLocation(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationsWithAccessToLocationRequest* request, ::viam::app::v1::GetOrganizationsWithAccessToLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetOrganizationsWithAccessToLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetOrganizationsWithAccessToLocationResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetOrganizationsWithAccessToLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetOrganizationsWithAccessToLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // List the organizations a user belongs to virtual void ListOrganizationsByUser(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationsByUserRequest* request, ::viam::app::v1::ListOrganizationsByUserResponse* response, std::function) = 0; + virtual void ListOrganizationsByUser(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListOrganizationsByUserResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void ListOrganizationsByUser(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationsByUserRequest* request, ::viam::app::v1::ListOrganizationsByUserResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ListOrganizationsByUser(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationsByUserRequest* request, ::viam::app::v1::ListOrganizationsByUserResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void ListOrganizationsByUser(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListOrganizationsByUserResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ListOrganizationsByUser(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListOrganizationsByUserResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + // Search organizations by a couple fields + virtual void SearchOrganizations(::grpc::ClientContext* context, const ::viam::app::v1::SearchOrganizationsRequest* request, ::viam::app::v1::SearchOrganizationsResponse* response, std::function) = 0; + virtual void SearchOrganizations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::SearchOrganizationsResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void SearchOrganizations(::grpc::ClientContext* context, const ::viam::app::v1::SearchOrganizationsRequest* request, ::viam::app::v1::SearchOrganizationsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void SearchOrganizations(::grpc::ClientContext* context, const ::viam::app::v1::SearchOrganizationsRequest* request, ::viam::app::v1::SearchOrganizationsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void SearchOrganizations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::SearchOrganizationsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void SearchOrganizations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::SearchOrganizationsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Get an organization virtual void GetOrganization(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationRequest* request, ::viam::app::v1::GetOrganizationResponse* response, std::function) = 0; + virtual void GetOrganization(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetOrganizationResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetOrganization(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationRequest* request, ::viam::app::v1::GetOrganizationResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetOrganization(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationRequest* request, ::viam::app::v1::GetOrganizationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetOrganization(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetOrganizationResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetOrganization(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetOrganizationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Checks for namespace availablity throughout all orgs. virtual void GetOrganizationNamespaceAvailability(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationNamespaceAvailabilityRequest* request, ::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse* response, std::function) = 0; + virtual void GetOrganizationNamespaceAvailability(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetOrganizationNamespaceAvailability(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationNamespaceAvailabilityRequest* request, ::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetOrganizationNamespaceAvailability(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationNamespaceAvailabilityRequest* request, ::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetOrganizationNamespaceAvailability(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetOrganizationNamespaceAvailability(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Update an organization virtual void UpdateOrganization(::grpc::ClientContext* context, const ::viam::app::v1::UpdateOrganizationRequest* request, ::viam::app::v1::UpdateOrganizationResponse* response, std::function) = 0; + virtual void UpdateOrganization(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateOrganizationResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void UpdateOrganization(::grpc::ClientContext* context, const ::viam::app::v1::UpdateOrganizationRequest* request, ::viam::app::v1::UpdateOrganizationResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void UpdateOrganization(::grpc::ClientContext* context, const ::viam::app::v1::UpdateOrganizationRequest* request, ::viam::app::v1::UpdateOrganizationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void UpdateOrganization(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateOrganizationResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void UpdateOrganization(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateOrganizationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Delete an organization virtual void DeleteOrganization(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOrganizationRequest* request, ::viam::app::v1::DeleteOrganizationResponse* response, std::function) = 0; + virtual void DeleteOrganization(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteOrganizationResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void DeleteOrganization(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOrganizationRequest* request, ::viam::app::v1::DeleteOrganizationResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DeleteOrganization(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOrganizationRequest* request, ::viam::app::v1::DeleteOrganizationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void DeleteOrganization(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteOrganizationResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DeleteOrganization(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteOrganizationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // List all members of an organization and all invited members to the organization. virtual void ListOrganizationMembers(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationMembersRequest* request, ::viam::app::v1::ListOrganizationMembersResponse* response, std::function) = 0; + virtual void ListOrganizationMembers(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListOrganizationMembersResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void ListOrganizationMembers(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationMembersRequest* request, ::viam::app::v1::ListOrganizationMembersResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ListOrganizationMembers(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationMembersRequest* request, ::viam::app::v1::ListOrganizationMembersResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void ListOrganizationMembers(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListOrganizationMembersResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ListOrganizationMembers(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListOrganizationMembersResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Create an organization invite to an organization virtual void CreateOrganizationInvite(::grpc::ClientContext* context, const ::viam::app::v1::CreateOrganizationInviteRequest* request, ::viam::app::v1::CreateOrganizationInviteResponse* response, std::function) = 0; + virtual void CreateOrganizationInvite(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateOrganizationInviteResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void CreateOrganizationInvite(::grpc::ClientContext* context, const ::viam::app::v1::CreateOrganizationInviteRequest* request, ::viam::app::v1::CreateOrganizationInviteResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void CreateOrganizationInvite(::grpc::ClientContext* context, const ::viam::app::v1::CreateOrganizationInviteRequest* request, ::viam::app::v1::CreateOrganizationInviteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void CreateOrganizationInvite(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateOrganizationInviteResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void CreateOrganizationInvite(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateOrganizationInviteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Update the authorizations attached to an organization invite virtual void UpdateOrganizationInviteAuthorizations(::grpc::ClientContext* context, const ::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest* request, ::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse* response, std::function) = 0; + virtual void UpdateOrganizationInviteAuthorizations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void UpdateOrganizationInviteAuthorizations(::grpc::ClientContext* context, const ::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest* request, ::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void UpdateOrganizationInviteAuthorizations(::grpc::ClientContext* context, const ::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest* request, ::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void UpdateOrganizationInviteAuthorizations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void UpdateOrganizationInviteAuthorizations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Delete an organization member from an organization virtual void DeleteOrganizationMember(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOrganizationMemberRequest* request, ::viam::app::v1::DeleteOrganizationMemberResponse* response, std::function) = 0; + virtual void DeleteOrganizationMember(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteOrganizationMemberResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void DeleteOrganizationMember(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOrganizationMemberRequest* request, ::viam::app::v1::DeleteOrganizationMemberResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DeleteOrganizationMember(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOrganizationMemberRequest* request, ::viam::app::v1::DeleteOrganizationMemberResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void DeleteOrganizationMember(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteOrganizationMemberResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DeleteOrganizationMember(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteOrganizationMemberResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Delete an organization invite virtual void DeleteOrganizationInvite(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOrganizationInviteRequest* request, ::viam::app::v1::DeleteOrganizationInviteResponse* response, std::function) = 0; + virtual void DeleteOrganizationInvite(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteOrganizationInviteResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void DeleteOrganizationInvite(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOrganizationInviteRequest* request, ::viam::app::v1::DeleteOrganizationInviteResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DeleteOrganizationInvite(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOrganizationInviteRequest* request, ::viam::app::v1::DeleteOrganizationInviteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void DeleteOrganizationInvite(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteOrganizationInviteResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DeleteOrganizationInvite(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteOrganizationInviteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Resend an organization invite virtual void ResendOrganizationInvite(::grpc::ClientContext* context, const ::viam::app::v1::ResendOrganizationInviteRequest* request, ::viam::app::v1::ResendOrganizationInviteResponse* response, std::function) = 0; + virtual void ResendOrganizationInvite(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ResendOrganizationInviteResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void ResendOrganizationInvite(::grpc::ClientContext* context, const ::viam::app::v1::ResendOrganizationInviteRequest* request, ::viam::app::v1::ResendOrganizationInviteResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ResendOrganizationInvite(::grpc::ClientContext* context, const ::viam::app::v1::ResendOrganizationInviteRequest* request, ::viam::app::v1::ResendOrganizationInviteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void ResendOrganizationInvite(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ResendOrganizationInviteResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ResendOrganizationInvite(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ResendOrganizationInviteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Third party // virtual void EnableBillingService(::grpc::ClientContext* context, const ::viam::app::v1::EnableBillingServiceRequest* request, ::viam::app::v1::EnableBillingServiceResponse* response, std::function) = 0; + virtual void EnableBillingService(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::EnableBillingServiceResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void EnableBillingService(::grpc::ClientContext* context, const ::viam::app::v1::EnableBillingServiceRequest* request, ::viam::app::v1::EnableBillingServiceResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void EnableBillingService(::grpc::ClientContext* context, const ::viam::app::v1::EnableBillingServiceRequest* request, ::viam::app::v1::EnableBillingServiceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void EnableBillingService(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::EnableBillingServiceResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void EnableBillingService(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::EnableBillingServiceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif virtual void DisableBillingService(::grpc::ClientContext* context, const ::viam::app::v1::DisableBillingServiceRequest* request, ::viam::app::v1::DisableBillingServiceResponse* response, std::function) = 0; + virtual void DisableBillingService(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DisableBillingServiceResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void DisableBillingService(::grpc::ClientContext* context, const ::viam::app::v1::DisableBillingServiceRequest* request, ::viam::app::v1::DisableBillingServiceResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DisableBillingService(::grpc::ClientContext* context, const ::viam::app::v1::DisableBillingServiceRequest* request, ::viam::app::v1::DisableBillingServiceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void DisableBillingService(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DisableBillingServiceResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DisableBillingService(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DisableBillingServiceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif virtual void UpdateBillingService(::grpc::ClientContext* context, const ::viam::app::v1::UpdateBillingServiceRequest* request, ::viam::app::v1::UpdateBillingServiceResponse* response, std::function) = 0; + virtual void UpdateBillingService(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateBillingServiceResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void UpdateBillingService(::grpc::ClientContext* context, const ::viam::app::v1::UpdateBillingServiceRequest* request, ::viam::app::v1::UpdateBillingServiceResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void UpdateBillingService(::grpc::ClientContext* context, const ::viam::app::v1::UpdateBillingServiceRequest* request, ::viam::app::v1::UpdateBillingServiceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void UpdateBillingService(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateBillingServiceResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void UpdateBillingService(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateBillingServiceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif virtual void GetBillingServiceConfig(::grpc::ClientContext* context, const ::viam::app::v1::GetBillingServiceConfigRequest* request, ::viam::app::v1::GetBillingServiceConfigResponse* response, std::function) = 0; + virtual void GetBillingServiceConfig(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetBillingServiceConfigResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetBillingServiceConfig(::grpc::ClientContext* context, const ::viam::app::v1::GetBillingServiceConfigRequest* request, ::viam::app::v1::GetBillingServiceConfigResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetBillingServiceConfig(::grpc::ClientContext* context, const ::viam::app::v1::GetBillingServiceConfigRequest* request, ::viam::app::v1::GetBillingServiceConfigResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetBillingServiceConfig(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetBillingServiceConfigResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetBillingServiceConfig(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetBillingServiceConfigResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif virtual void OrganizationSetSupportEmail(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationSetSupportEmailRequest* request, ::viam::app::v1::OrganizationSetSupportEmailResponse* response, std::function) = 0; + virtual void OrganizationSetSupportEmail(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::OrganizationSetSupportEmailResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void OrganizationSetSupportEmail(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationSetSupportEmailRequest* request, ::viam::app::v1::OrganizationSetSupportEmailResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void OrganizationSetSupportEmail(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationSetSupportEmailRequest* request, ::viam::app::v1::OrganizationSetSupportEmailResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void OrganizationSetSupportEmail(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::OrganizationSetSupportEmailResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void OrganizationSetSupportEmail(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::OrganizationSetSupportEmailResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif virtual void OrganizationGetSupportEmail(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationGetSupportEmailRequest* request, ::viam::app::v1::OrganizationGetSupportEmailResponse* response, std::function) = 0; + virtual void OrganizationGetSupportEmail(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::OrganizationGetSupportEmailResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void OrganizationGetSupportEmail(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationGetSupportEmailRequest* request, ::viam::app::v1::OrganizationGetSupportEmailResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void OrganizationGetSupportEmail(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationGetSupportEmailRequest* request, ::viam::app::v1::OrganizationGetSupportEmailResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void OrganizationGetSupportEmail(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::OrganizationGetSupportEmailResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void OrganizationGetSupportEmail(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::OrganizationGetSupportEmailResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + virtual void OrganizationSetLogo(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationSetLogoRequest* request, ::viam::app::v1::OrganizationSetLogoResponse* response, std::function) = 0; + virtual void OrganizationSetLogo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::OrganizationSetLogoResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void OrganizationSetLogo(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationSetLogoRequest* request, ::viam::app::v1::OrganizationSetLogoResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void OrganizationSetLogo(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationSetLogoRequest* request, ::viam::app::v1::OrganizationSetLogoResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void OrganizationSetLogo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::OrganizationSetLogoResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void OrganizationSetLogo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::OrganizationSetLogoResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + virtual void OrganizationGetLogo(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationGetLogoRequest* request, ::viam::app::v1::OrganizationGetLogoResponse* response, std::function) = 0; + virtual void OrganizationGetLogo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::OrganizationGetLogoResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void OrganizationGetLogo(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationGetLogoRequest* request, ::viam::app::v1::OrganizationGetLogoResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void OrganizationGetLogo(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationGetLogoRequest* request, ::viam::app::v1::OrganizationGetLogoResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void OrganizationGetLogo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::OrganizationGetLogoResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void OrganizationGetLogo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::OrganizationGetLogoResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + virtual void EnableAuthService(::grpc::ClientContext* context, const ::viam::app::v1::EnableAuthServiceRequest* request, ::viam::app::v1::EnableAuthServiceResponse* response, std::function) = 0; + virtual void EnableAuthService(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::EnableAuthServiceResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void EnableAuthService(::grpc::ClientContext* context, const ::viam::app::v1::EnableAuthServiceRequest* request, ::viam::app::v1::EnableAuthServiceResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void EnableAuthService(::grpc::ClientContext* context, const ::viam::app::v1::EnableAuthServiceRequest* request, ::viam::app::v1::EnableAuthServiceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void EnableAuthService(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::EnableAuthServiceResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void EnableAuthService(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::EnableAuthServiceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + virtual void DisableAuthService(::grpc::ClientContext* context, const ::viam::app::v1::DisableAuthServiceRequest* request, ::viam::app::v1::DisableAuthServiceResponse* response, std::function) = 0; + virtual void DisableAuthService(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DisableAuthServiceResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void DisableAuthService(::grpc::ClientContext* context, const ::viam::app::v1::DisableAuthServiceRequest* request, ::viam::app::v1::DisableAuthServiceResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DisableAuthService(::grpc::ClientContext* context, const ::viam::app::v1::DisableAuthServiceRequest* request, ::viam::app::v1::DisableAuthServiceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void DisableAuthService(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DisableAuthServiceResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DisableAuthService(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DisableAuthServiceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + virtual void CreateOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::CreateOAuthAppRequest* request, ::viam::app::v1::CreateOAuthAppResponse* response, std::function) = 0; + virtual void CreateOAuthApp(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateOAuthAppResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void CreateOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::CreateOAuthAppRequest* request, ::viam::app::v1::CreateOAuthAppResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void CreateOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::CreateOAuthAppRequest* request, ::viam::app::v1::CreateOAuthAppResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void CreateOAuthApp(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateOAuthAppResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void CreateOAuthApp(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateOAuthAppResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + virtual void ReadOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::ReadOAuthAppRequest* request, ::viam::app::v1::ReadOAuthAppResponse* response, std::function) = 0; + virtual void ReadOAuthApp(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ReadOAuthAppResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void ReadOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::ReadOAuthAppRequest* request, ::viam::app::v1::ReadOAuthAppResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ReadOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::ReadOAuthAppRequest* request, ::viam::app::v1::ReadOAuthAppResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void ReadOAuthApp(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ReadOAuthAppResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ReadOAuthApp(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ReadOAuthAppResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + virtual void UpdateOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::UpdateOAuthAppRequest* request, ::viam::app::v1::UpdateOAuthAppResponse* response, std::function) = 0; + virtual void UpdateOAuthApp(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateOAuthAppResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void UpdateOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::UpdateOAuthAppRequest* request, ::viam::app::v1::UpdateOAuthAppResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void UpdateOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::UpdateOAuthAppRequest* request, ::viam::app::v1::UpdateOAuthAppResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void UpdateOAuthApp(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateOAuthAppResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void UpdateOAuthApp(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateOAuthAppResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + virtual void DeleteOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOAuthAppRequest* request, ::viam::app::v1::DeleteOAuthAppResponse* response, std::function) = 0; + virtual void DeleteOAuthApp(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteOAuthAppResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void DeleteOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOAuthAppRequest* request, ::viam::app::v1::DeleteOAuthAppResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DeleteOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOAuthAppRequest* request, ::viam::app::v1::DeleteOAuthAppResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void DeleteOAuthApp(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteOAuthAppResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DeleteOAuthApp(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteOAuthAppResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + virtual void ListOAuthApps(::grpc::ClientContext* context, const ::viam::app::v1::ListOAuthAppsRequest* request, ::viam::app::v1::ListOAuthAppsResponse* response, std::function) = 0; + virtual void ListOAuthApps(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListOAuthAppsResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void ListOAuthApps(::grpc::ClientContext* context, const ::viam::app::v1::ListOAuthAppsRequest* request, ::viam::app::v1::ListOAuthAppsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ListOAuthApps(::grpc::ClientContext* context, const ::viam::app::v1::ListOAuthAppsRequest* request, ::viam::app::v1::ListOAuthAppsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void ListOAuthApps(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListOAuthAppsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ListOAuthApps(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListOAuthAppsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Location // // Create a location virtual void CreateLocation(::grpc::ClientContext* context, const ::viam::app::v1::CreateLocationRequest* request, ::viam::app::v1::CreateLocationResponse* response, std::function) = 0; + virtual void CreateLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateLocationResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void CreateLocation(::grpc::ClientContext* context, const ::viam::app::v1::CreateLocationRequest* request, ::viam::app::v1::CreateLocationResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void CreateLocation(::grpc::ClientContext* context, const ::viam::app::v1::CreateLocationRequest* request, ::viam::app::v1::CreateLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void CreateLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateLocationResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void CreateLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Get a location virtual void GetLocation(::grpc::ClientContext* context, const ::viam::app::v1::GetLocationRequest* request, ::viam::app::v1::GetLocationResponse* response, std::function) = 0; + virtual void GetLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetLocationResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetLocation(::grpc::ClientContext* context, const ::viam::app::v1::GetLocationRequest* request, ::viam::app::v1::GetLocationResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetLocation(::grpc::ClientContext* context, const ::viam::app::v1::GetLocationRequest* request, ::viam::app::v1::GetLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetLocationResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Update a location virtual void UpdateLocation(::grpc::ClientContext* context, const ::viam::app::v1::UpdateLocationRequest* request, ::viam::app::v1::UpdateLocationResponse* response, std::function) = 0; + virtual void UpdateLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateLocationResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void UpdateLocation(::grpc::ClientContext* context, const ::viam::app::v1::UpdateLocationRequest* request, ::viam::app::v1::UpdateLocationResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void UpdateLocation(::grpc::ClientContext* context, const ::viam::app::v1::UpdateLocationRequest* request, ::viam::app::v1::UpdateLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void UpdateLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateLocationResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void UpdateLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Delete a location virtual void DeleteLocation(::grpc::ClientContext* context, const ::viam::app::v1::DeleteLocationRequest* request, ::viam::app::v1::DeleteLocationResponse* response, std::function) = 0; + virtual void DeleteLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteLocationResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void DeleteLocation(::grpc::ClientContext* context, const ::viam::app::v1::DeleteLocationRequest* request, ::viam::app::v1::DeleteLocationResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DeleteLocation(::grpc::ClientContext* context, const ::viam::app::v1::DeleteLocationRequest* request, ::viam::app::v1::DeleteLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void DeleteLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteLocationResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DeleteLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Get a list of locations virtual void ListLocations(::grpc::ClientContext* context, const ::viam::app::v1::ListLocationsRequest* request, ::viam::app::v1::ListLocationsResponse* response, std::function) = 0; + virtual void ListLocations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListLocationsResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void ListLocations(::grpc::ClientContext* context, const ::viam::app::v1::ListLocationsRequest* request, ::viam::app::v1::ListLocationsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ListLocations(::grpc::ClientContext* context, const ::viam::app::v1::ListLocationsRequest* request, ::viam::app::v1::ListLocationsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void ListLocations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListLocationsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ListLocations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListLocationsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Share a location with an organization virtual void ShareLocation(::grpc::ClientContext* context, const ::viam::app::v1::ShareLocationRequest* request, ::viam::app::v1::ShareLocationResponse* response, std::function) = 0; + virtual void ShareLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ShareLocationResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void ShareLocation(::grpc::ClientContext* context, const ::viam::app::v1::ShareLocationRequest* request, ::viam::app::v1::ShareLocationResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ShareLocation(::grpc::ClientContext* context, const ::viam::app::v1::ShareLocationRequest* request, ::viam::app::v1::ShareLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void ShareLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ShareLocationResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ShareLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ShareLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Stop sharing a location with an organization virtual void UnshareLocation(::grpc::ClientContext* context, const ::viam::app::v1::UnshareLocationRequest* request, ::viam::app::v1::UnshareLocationResponse* response, std::function) = 0; + virtual void UnshareLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UnshareLocationResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void UnshareLocation(::grpc::ClientContext* context, const ::viam::app::v1::UnshareLocationRequest* request, ::viam::app::v1::UnshareLocationResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void UnshareLocation(::grpc::ClientContext* context, const ::viam::app::v1::UnshareLocationRequest* request, ::viam::app::v1::UnshareLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void UnshareLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UnshareLocationResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void UnshareLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UnshareLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Get a location's authorization secrets virtual void LocationAuth(::grpc::ClientContext* context, const ::viam::app::v1::LocationAuthRequest* request, ::viam::app::v1::LocationAuthResponse* response, std::function) = 0; + virtual void LocationAuth(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::LocationAuthResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void LocationAuth(::grpc::ClientContext* context, const ::viam::app::v1::LocationAuthRequest* request, ::viam::app::v1::LocationAuthResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void LocationAuth(::grpc::ClientContext* context, const ::viam::app::v1::LocationAuthRequest* request, ::viam::app::v1::LocationAuthResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void LocationAuth(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::LocationAuthResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void LocationAuth(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::LocationAuthResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Create a new generated Secret in the Location. // - Succeeds if there are no more than 2 active secrets after creation. virtual void CreateLocationSecret(::grpc::ClientContext* context, const ::viam::app::v1::CreateLocationSecretRequest* request, ::viam::app::v1::CreateLocationSecretResponse* response, std::function) = 0; + virtual void CreateLocationSecret(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateLocationSecretResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void CreateLocationSecret(::grpc::ClientContext* context, const ::viam::app::v1::CreateLocationSecretRequest* request, ::viam::app::v1::CreateLocationSecretResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void CreateLocationSecret(::grpc::ClientContext* context, const ::viam::app::v1::CreateLocationSecretRequest* request, ::viam::app::v1::CreateLocationSecretResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void CreateLocationSecret(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateLocationSecretResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void CreateLocationSecret(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateLocationSecretResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Delete a Secret from the Location. virtual void DeleteLocationSecret(::grpc::ClientContext* context, const ::viam::app::v1::DeleteLocationSecretRequest* request, ::viam::app::v1::DeleteLocationSecretResponse* response, std::function) = 0; + virtual void DeleteLocationSecret(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteLocationSecretResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void DeleteLocationSecret(::grpc::ClientContext* context, const ::viam::app::v1::DeleteLocationSecretRequest* request, ::viam::app::v1::DeleteLocationSecretResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DeleteLocationSecret(::grpc::ClientContext* context, const ::viam::app::v1::DeleteLocationSecretRequest* request, ::viam::app::v1::DeleteLocationSecretResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void DeleteLocationSecret(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteLocationSecretResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DeleteLocationSecret(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteLocationSecretResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Get a specific robot by ID virtual void GetRobot(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotRequest* request, ::viam::app::v1::GetRobotResponse* response, std::function) = 0; + virtual void GetRobot(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRobotResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetRobot(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotRequest* request, ::viam::app::v1::GetRobotResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetRobot(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotRequest* request, ::viam::app::v1::GetRobotResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetRobot(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRobotResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetRobot(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRobotResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Get Rover Rental Location Robots virtual void GetRoverRentalRobots(::grpc::ClientContext* context, const ::viam::app::v1::GetRoverRentalRobotsRequest* request, ::viam::app::v1::GetRoverRentalRobotsResponse* response, std::function) = 0; + virtual void GetRoverRentalRobots(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRoverRentalRobotsResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetRoverRentalRobots(::grpc::ClientContext* context, const ::viam::app::v1::GetRoverRentalRobotsRequest* request, ::viam::app::v1::GetRoverRentalRobotsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetRoverRentalRobots(::grpc::ClientContext* context, const ::viam::app::v1::GetRoverRentalRobotsRequest* request, ::viam::app::v1::GetRoverRentalRobotsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetRoverRentalRobots(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRoverRentalRobotsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetRoverRentalRobots(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRoverRentalRobotsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif virtual void GetRobotParts(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartsRequest* request, ::viam::app::v1::GetRobotPartsResponse* response, std::function) = 0; + virtual void GetRobotParts(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRobotPartsResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetRobotParts(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartsRequest* request, ::viam::app::v1::GetRobotPartsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetRobotParts(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartsRequest* request, ::viam::app::v1::GetRobotPartsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetRobotParts(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRobotPartsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetRobotParts(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRobotPartsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Get a specific robot part by ID virtual void GetRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartRequest* request, ::viam::app::v1::GetRobotPartResponse* response, std::function) = 0; + virtual void GetRobotPart(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRobotPartResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartRequest* request, ::viam::app::v1::GetRobotPartResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartRequest* request, ::viam::app::v1::GetRobotPartResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetRobotPart(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRobotPartResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetRobotPart(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRobotPartResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif virtual void GetRobotPartLogs(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartLogsRequest* request, ::viam::app::v1::GetRobotPartLogsResponse* response, std::function) = 0; + virtual void GetRobotPartLogs(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRobotPartLogsResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetRobotPartLogs(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartLogsRequest* request, ::viam::app::v1::GetRobotPartLogsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - virtual void TailRobotPartLogs(::grpc::ClientContext* context, const ::viam::app::v1::TailRobotPartLogsRequest* request, ::grpc::ClientReadReactor< ::viam::app::v1::TailRobotPartLogsResponse>* reactor) = 0; + #else + virtual void GetRobotPartLogs(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartLogsRequest* request, ::viam::app::v1::GetRobotPartLogsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetRobotPartLogs(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRobotPartLogsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetRobotPartLogs(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRobotPartLogsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void TailRobotPartLogs(::grpc::ClientContext* context, ::viam::app::v1::TailRobotPartLogsRequest* request, ::grpc::ClientReadReactor< ::viam::app::v1::TailRobotPartLogsResponse>* reactor) = 0; + #else + virtual void TailRobotPartLogs(::grpc::ClientContext* context, ::viam::app::v1::TailRobotPartLogsRequest* request, ::grpc::experimental::ClientReadReactor< ::viam::app::v1::TailRobotPartLogsResponse>* reactor) = 0; + #endif // Get a specific robot part histy by ID virtual void GetRobotPartHistory(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartHistoryRequest* request, ::viam::app::v1::GetRobotPartHistoryResponse* response, std::function) = 0; + virtual void GetRobotPartHistory(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRobotPartHistoryResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetRobotPartHistory(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartHistoryRequest* request, ::viam::app::v1::GetRobotPartHistoryResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetRobotPartHistory(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartHistoryRequest* request, ::viam::app::v1::GetRobotPartHistoryResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetRobotPartHistory(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRobotPartHistoryResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetRobotPartHistory(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRobotPartHistoryResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Update a robot virtual void UpdateRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotPartRequest* request, ::viam::app::v1::UpdateRobotPartResponse* response, std::function) = 0; + virtual void UpdateRobotPart(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateRobotPartResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void UpdateRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotPartRequest* request, ::viam::app::v1::UpdateRobotPartResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void UpdateRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotPartRequest* request, ::viam::app::v1::UpdateRobotPartResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void UpdateRobotPart(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateRobotPartResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void UpdateRobotPart(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateRobotPartResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Create a new robot part virtual void NewRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotPartRequest* request, ::viam::app::v1::NewRobotPartResponse* response, std::function) = 0; + virtual void NewRobotPart(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::NewRobotPartResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void NewRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotPartRequest* request, ::viam::app::v1::NewRobotPartResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void NewRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotPartRequest* request, ::viam::app::v1::NewRobotPartResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void NewRobotPart(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::NewRobotPartResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void NewRobotPart(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::NewRobotPartResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Delete a robot part virtual void DeleteRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotPartRequest* request, ::viam::app::v1::DeleteRobotPartResponse* response, std::function) = 0; + virtual void DeleteRobotPart(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteRobotPartResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void DeleteRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotPartRequest* request, ::viam::app::v1::DeleteRobotPartResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DeleteRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotPartRequest* request, ::viam::app::v1::DeleteRobotPartResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void DeleteRobotPart(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteRobotPartResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DeleteRobotPart(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteRobotPartResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Gets the Robot API Keys for the robot virtual void GetRobotAPIKeys(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotAPIKeysRequest* request, ::viam::app::v1::GetRobotAPIKeysResponse* response, std::function) = 0; + virtual void GetRobotAPIKeys(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRobotAPIKeysResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetRobotAPIKeys(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotAPIKeysRequest* request, ::viam::app::v1::GetRobotAPIKeysResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetRobotAPIKeys(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotAPIKeysRequest* request, ::viam::app::v1::GetRobotAPIKeysResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetRobotAPIKeys(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRobotAPIKeysResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetRobotAPIKeys(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRobotAPIKeysResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Marks the given part as the main part, and all the others as not virtual void MarkPartAsMain(::grpc::ClientContext* context, const ::viam::app::v1::MarkPartAsMainRequest* request, ::viam::app::v1::MarkPartAsMainResponse* response, std::function) = 0; + virtual void MarkPartAsMain(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::MarkPartAsMainResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void MarkPartAsMain(::grpc::ClientContext* context, const ::viam::app::v1::MarkPartAsMainRequest* request, ::viam::app::v1::MarkPartAsMainResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void MarkPartAsMain(::grpc::ClientContext* context, const ::viam::app::v1::MarkPartAsMainRequest* request, ::viam::app::v1::MarkPartAsMainResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void MarkPartAsMain(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::MarkPartAsMainResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void MarkPartAsMain(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::MarkPartAsMainResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Marks part for restart. Once the robot part checks-in with the app the flag // is reset on the robot part. Calling this multiple times before a robot part // checks-in has no affect. // Note: This API may be removed in the near future. // TODO(APP-388): Remove virtual void MarkPartForRestart(::grpc::ClientContext* context, const ::viam::app::v1::MarkPartForRestartRequest* request, ::viam::app::v1::MarkPartForRestartResponse* response, std::function) = 0; + virtual void MarkPartForRestart(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::MarkPartForRestartResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void MarkPartForRestart(::grpc::ClientContext* context, const ::viam::app::v1::MarkPartForRestartRequest* request, ::viam::app::v1::MarkPartForRestartResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void MarkPartForRestart(::grpc::ClientContext* context, const ::viam::app::v1::MarkPartForRestartRequest* request, ::viam::app::v1::MarkPartForRestartResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void MarkPartForRestart(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::MarkPartForRestartResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void MarkPartForRestart(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::MarkPartForRestartResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Create a new generated Secret in the Robot Part. // - Succeeds if there are no more than 2 active secrets after creation. virtual void CreateRobotPartSecret(::grpc::ClientContext* context, const ::viam::app::v1::CreateRobotPartSecretRequest* request, ::viam::app::v1::CreateRobotPartSecretResponse* response, std::function) = 0; + virtual void CreateRobotPartSecret(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateRobotPartSecretResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void CreateRobotPartSecret(::grpc::ClientContext* context, const ::viam::app::v1::CreateRobotPartSecretRequest* request, ::viam::app::v1::CreateRobotPartSecretResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void CreateRobotPartSecret(::grpc::ClientContext* context, const ::viam::app::v1::CreateRobotPartSecretRequest* request, ::viam::app::v1::CreateRobotPartSecretResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void CreateRobotPartSecret(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateRobotPartSecretResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void CreateRobotPartSecret(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateRobotPartSecretResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Delete a Secret from the RobotPart. virtual void DeleteRobotPartSecret(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotPartSecretRequest* request, ::viam::app::v1::DeleteRobotPartSecretResponse* response, std::function) = 0; + virtual void DeleteRobotPartSecret(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteRobotPartSecretResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void DeleteRobotPartSecret(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotPartSecretRequest* request, ::viam::app::v1::DeleteRobotPartSecretResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DeleteRobotPartSecret(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotPartSecretRequest* request, ::viam::app::v1::DeleteRobotPartSecretResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void DeleteRobotPartSecret(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteRobotPartSecretResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DeleteRobotPartSecret(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteRobotPartSecretResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Get a list of robots virtual void ListRobots(::grpc::ClientContext* context, const ::viam::app::v1::ListRobotsRequest* request, ::viam::app::v1::ListRobotsResponse* response, std::function) = 0; + virtual void ListRobots(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListRobotsResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void ListRobots(::grpc::ClientContext* context, const ::viam::app::v1::ListRobotsRequest* request, ::viam::app::v1::ListRobotsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ListRobots(::grpc::ClientContext* context, const ::viam::app::v1::ListRobotsRequest* request, ::viam::app::v1::ListRobotsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void ListRobots(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListRobotsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ListRobots(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListRobotsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // NewRobot creates a new robot virtual void NewRobot(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotRequest* request, ::viam::app::v1::NewRobotResponse* response, std::function) = 0; + virtual void NewRobot(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::NewRobotResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void NewRobot(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotRequest* request, ::viam::app::v1::NewRobotResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void NewRobot(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotRequest* request, ::viam::app::v1::NewRobotResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void NewRobot(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::NewRobotResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void NewRobot(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::NewRobotResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // UpdateRobot updates a robot virtual void UpdateRobot(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotRequest* request, ::viam::app::v1::UpdateRobotResponse* response, std::function) = 0; + virtual void UpdateRobot(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateRobotResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void UpdateRobot(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotRequest* request, ::viam::app::v1::UpdateRobotResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void UpdateRobot(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotRequest* request, ::viam::app::v1::UpdateRobotResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void UpdateRobot(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateRobotResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void UpdateRobot(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateRobotResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // DeleteRobot deletes a robot virtual void DeleteRobot(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotRequest* request, ::viam::app::v1::DeleteRobotResponse* response, std::function) = 0; + virtual void DeleteRobot(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteRobotResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void DeleteRobot(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotRequest* request, ::viam::app::v1::DeleteRobotResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DeleteRobot(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotRequest* request, ::viam::app::v1::DeleteRobotResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void DeleteRobot(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteRobotResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DeleteRobot(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteRobotResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Fragments // // Gets a list of fragments virtual void ListFragments(::grpc::ClientContext* context, const ::viam::app::v1::ListFragmentsRequest* request, ::viam::app::v1::ListFragmentsResponse* response, std::function) = 0; + virtual void ListFragments(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListFragmentsResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void ListFragments(::grpc::ClientContext* context, const ::viam::app::v1::ListFragmentsRequest* request, ::viam::app::v1::ListFragmentsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ListFragments(::grpc::ClientContext* context, const ::viam::app::v1::ListFragmentsRequest* request, ::viam::app::v1::ListFragmentsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void ListFragments(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListFragmentsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ListFragments(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListFragmentsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Gets a single fragment virtual void GetFragment(::grpc::ClientContext* context, const ::viam::app::v1::GetFragmentRequest* request, ::viam::app::v1::GetFragmentResponse* response, std::function) = 0; + virtual void GetFragment(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetFragmentResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetFragment(::grpc::ClientContext* context, const ::viam::app::v1::GetFragmentRequest* request, ::viam::app::v1::GetFragmentResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetFragment(::grpc::ClientContext* context, const ::viam::app::v1::GetFragmentRequest* request, ::viam::app::v1::GetFragmentResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetFragment(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetFragmentResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetFragment(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetFragmentResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Creates a fragment virtual void CreateFragment(::grpc::ClientContext* context, const ::viam::app::v1::CreateFragmentRequest* request, ::viam::app::v1::CreateFragmentResponse* response, std::function) = 0; + virtual void CreateFragment(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateFragmentResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void CreateFragment(::grpc::ClientContext* context, const ::viam::app::v1::CreateFragmentRequest* request, ::viam::app::v1::CreateFragmentResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void CreateFragment(::grpc::ClientContext* context, const ::viam::app::v1::CreateFragmentRequest* request, ::viam::app::v1::CreateFragmentResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void CreateFragment(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateFragmentResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void CreateFragment(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateFragmentResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Updates a fragment virtual void UpdateFragment(::grpc::ClientContext* context, const ::viam::app::v1::UpdateFragmentRequest* request, ::viam::app::v1::UpdateFragmentResponse* response, std::function) = 0; + virtual void UpdateFragment(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateFragmentResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void UpdateFragment(::grpc::ClientContext* context, const ::viam::app::v1::UpdateFragmentRequest* request, ::viam::app::v1::UpdateFragmentResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void UpdateFragment(::grpc::ClientContext* context, const ::viam::app::v1::UpdateFragmentRequest* request, ::viam::app::v1::UpdateFragmentResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void UpdateFragment(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateFragmentResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void UpdateFragment(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateFragmentResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Deletes a fragment virtual void DeleteFragment(::grpc::ClientContext* context, const ::viam::app::v1::DeleteFragmentRequest* request, ::viam::app::v1::DeleteFragmentResponse* response, std::function) = 0; + virtual void DeleteFragment(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteFragmentResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void DeleteFragment(::grpc::ClientContext* context, const ::viam::app::v1::DeleteFragmentRequest* request, ::viam::app::v1::DeleteFragmentResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DeleteFragment(::grpc::ClientContext* context, const ::viam::app::v1::DeleteFragmentRequest* request, ::viam::app::v1::DeleteFragmentResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void DeleteFragment(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteFragmentResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DeleteFragment(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteFragmentResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Gets top level and nested fragments for a machine, as well as any other specified fragment ids virtual void ListMachineFragments(::grpc::ClientContext* context, const ::viam::app::v1::ListMachineFragmentsRequest* request, ::viam::app::v1::ListMachineFragmentsResponse* response, std::function) = 0; + virtual void ListMachineFragments(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListMachineFragmentsResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void ListMachineFragments(::grpc::ClientContext* context, const ::viam::app::v1::ListMachineFragmentsRequest* request, ::viam::app::v1::ListMachineFragmentsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ListMachineFragments(::grpc::ClientContext* context, const ::viam::app::v1::ListMachineFragmentsRequest* request, ::viam::app::v1::ListMachineFragmentsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void ListMachineFragments(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListMachineFragmentsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ListMachineFragments(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListMachineFragmentsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Gets fragment history virtual void GetFragmentHistory(::grpc::ClientContext* context, const ::viam::app::v1::GetFragmentHistoryRequest* request, ::viam::app::v1::GetFragmentHistoryResponse* response, std::function) = 0; + virtual void GetFragmentHistory(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetFragmentHistoryResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetFragmentHistory(::grpc::ClientContext* context, const ::viam::app::v1::GetFragmentHistoryRequest* request, ::viam::app::v1::GetFragmentHistoryResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetFragmentHistory(::grpc::ClientContext* context, const ::viam::app::v1::GetFragmentHistoryRequest* request, ::viam::app::v1::GetFragmentHistoryResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetFragmentHistory(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetFragmentHistoryResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetFragmentHistory(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetFragmentHistoryResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Creates an IdentityAuthorization virtual void AddRole(::grpc::ClientContext* context, const ::viam::app::v1::AddRoleRequest* request, ::viam::app::v1::AddRoleResponse* response, std::function) = 0; + virtual void AddRole(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::AddRoleResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void AddRole(::grpc::ClientContext* context, const ::viam::app::v1::AddRoleRequest* request, ::viam::app::v1::AddRoleResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void AddRole(::grpc::ClientContext* context, const ::viam::app::v1::AddRoleRequest* request, ::viam::app::v1::AddRoleResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void AddRole(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::AddRoleResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void AddRole(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::AddRoleResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Deletes an IdentityAuthorization virtual void RemoveRole(::grpc::ClientContext* context, const ::viam::app::v1::RemoveRoleRequest* request, ::viam::app::v1::RemoveRoleResponse* response, std::function) = 0; + virtual void RemoveRole(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::RemoveRoleResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void RemoveRole(::grpc::ClientContext* context, const ::viam::app::v1::RemoveRoleRequest* request, ::viam::app::v1::RemoveRoleResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void RemoveRole(::grpc::ClientContext* context, const ::viam::app::v1::RemoveRoleRequest* request, ::viam::app::v1::RemoveRoleResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void RemoveRole(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::RemoveRoleResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void RemoveRole(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::RemoveRoleResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Changes an IdentityAuthorization to a new IdentityAuthorization virtual void ChangeRole(::grpc::ClientContext* context, const ::viam::app::v1::ChangeRoleRequest* request, ::viam::app::v1::ChangeRoleResponse* response, std::function) = 0; + virtual void ChangeRole(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ChangeRoleResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void ChangeRole(::grpc::ClientContext* context, const ::viam::app::v1::ChangeRoleRequest* request, ::viam::app::v1::ChangeRoleResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ChangeRole(::grpc::ClientContext* context, const ::viam::app::v1::ChangeRoleRequest* request, ::viam::app::v1::ChangeRoleResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void ChangeRole(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ChangeRoleResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ChangeRole(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ChangeRoleResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Returns all authorization roles for a given resource virtual void ListAuthorizations(::grpc::ClientContext* context, const ::viam::app::v1::ListAuthorizationsRequest* request, ::viam::app::v1::ListAuthorizationsResponse* response, std::function) = 0; + virtual void ListAuthorizations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListAuthorizationsResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void ListAuthorizations(::grpc::ClientContext* context, const ::viam::app::v1::ListAuthorizationsRequest* request, ::viam::app::v1::ListAuthorizationsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ListAuthorizations(::grpc::ClientContext* context, const ::viam::app::v1::ListAuthorizationsRequest* request, ::viam::app::v1::ListAuthorizationsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void ListAuthorizations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListAuthorizationsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ListAuthorizations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListAuthorizationsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Validates a permission for the current user virtual void CheckPermissions(::grpc::ClientContext* context, const ::viam::app::v1::CheckPermissionsRequest* request, ::viam::app::v1::CheckPermissionsResponse* response, std::function) = 0; + virtual void CheckPermissions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CheckPermissionsResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void CheckPermissions(::grpc::ClientContext* context, const ::viam::app::v1::CheckPermissionsRequest* request, ::viam::app::v1::CheckPermissionsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void CheckPermissions(::grpc::ClientContext* context, const ::viam::app::v1::CheckPermissionsRequest* request, ::viam::app::v1::CheckPermissionsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void CheckPermissions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CheckPermissionsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void CheckPermissions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CheckPermissionsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif virtual void GetRegistryItem(::grpc::ClientContext* context, const ::viam::app::v1::GetRegistryItemRequest* request, ::viam::app::v1::GetRegistryItemResponse* response, std::function) = 0; + virtual void GetRegistryItem(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRegistryItemResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetRegistryItem(::grpc::ClientContext* context, const ::viam::app::v1::GetRegistryItemRequest* request, ::viam::app::v1::GetRegistryItemResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetRegistryItem(::grpc::ClientContext* context, const ::viam::app::v1::GetRegistryItemRequest* request, ::viam::app::v1::GetRegistryItemResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetRegistryItem(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRegistryItemResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetRegistryItem(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRegistryItemResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif virtual void CreateRegistryItem(::grpc::ClientContext* context, const ::viam::app::v1::CreateRegistryItemRequest* request, ::viam::app::v1::CreateRegistryItemResponse* response, std::function) = 0; + virtual void CreateRegistryItem(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateRegistryItemResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void CreateRegistryItem(::grpc::ClientContext* context, const ::viam::app::v1::CreateRegistryItemRequest* request, ::viam::app::v1::CreateRegistryItemResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void CreateRegistryItem(::grpc::ClientContext* context, const ::viam::app::v1::CreateRegistryItemRequest* request, ::viam::app::v1::CreateRegistryItemResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void CreateRegistryItem(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateRegistryItemResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void CreateRegistryItem(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateRegistryItemResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif virtual void UpdateRegistryItem(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRegistryItemRequest* request, ::viam::app::v1::UpdateRegistryItemResponse* response, std::function) = 0; + virtual void UpdateRegistryItem(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateRegistryItemResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void UpdateRegistryItem(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRegistryItemRequest* request, ::viam::app::v1::UpdateRegistryItemResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void UpdateRegistryItem(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRegistryItemRequest* request, ::viam::app::v1::UpdateRegistryItemResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void UpdateRegistryItem(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateRegistryItemResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void UpdateRegistryItem(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateRegistryItemResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif virtual void ListRegistryItems(::grpc::ClientContext* context, const ::viam::app::v1::ListRegistryItemsRequest* request, ::viam::app::v1::ListRegistryItemsResponse* response, std::function) = 0; + virtual void ListRegistryItems(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListRegistryItemsResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void ListRegistryItems(::grpc::ClientContext* context, const ::viam::app::v1::ListRegistryItemsRequest* request, ::viam::app::v1::ListRegistryItemsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ListRegistryItems(::grpc::ClientContext* context, const ::viam::app::v1::ListRegistryItemsRequest* request, ::viam::app::v1::ListRegistryItemsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void ListRegistryItems(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListRegistryItemsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ListRegistryItems(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListRegistryItemsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif virtual void DeleteRegistryItem(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRegistryItemRequest* request, ::viam::app::v1::DeleteRegistryItemResponse* response, std::function) = 0; + virtual void DeleteRegistryItem(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteRegistryItemResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void DeleteRegistryItem(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRegistryItemRequest* request, ::viam::app::v1::DeleteRegistryItemResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DeleteRegistryItem(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRegistryItemRequest* request, ::viam::app::v1::DeleteRegistryItemResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void DeleteRegistryItem(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteRegistryItemResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DeleteRegistryItem(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteRegistryItemResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif virtual void TransferRegistryItem(::grpc::ClientContext* context, const ::viam::app::v1::TransferRegistryItemRequest* request, ::viam::app::v1::TransferRegistryItemResponse* response, std::function) = 0; + virtual void TransferRegistryItem(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::TransferRegistryItemResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void TransferRegistryItem(::grpc::ClientContext* context, const ::viam::app::v1::TransferRegistryItemRequest* request, ::viam::app::v1::TransferRegistryItemResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void TransferRegistryItem(::grpc::ClientContext* context, const ::viam::app::v1::TransferRegistryItemRequest* request, ::viam::app::v1::TransferRegistryItemResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void TransferRegistryItem(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::TransferRegistryItemResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void TransferRegistryItem(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::TransferRegistryItemResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif virtual void CreateModule(::grpc::ClientContext* context, const ::viam::app::v1::CreateModuleRequest* request, ::viam::app::v1::CreateModuleResponse* response, std::function) = 0; + virtual void CreateModule(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateModuleResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void CreateModule(::grpc::ClientContext* context, const ::viam::app::v1::CreateModuleRequest* request, ::viam::app::v1::CreateModuleResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void CreateModule(::grpc::ClientContext* context, const ::viam::app::v1::CreateModuleRequest* request, ::viam::app::v1::CreateModuleResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void CreateModule(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateModuleResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void CreateModule(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateModuleResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif virtual void UpdateModule(::grpc::ClientContext* context, const ::viam::app::v1::UpdateModuleRequest* request, ::viam::app::v1::UpdateModuleResponse* response, std::function) = 0; + virtual void UpdateModule(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateModuleResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void UpdateModule(::grpc::ClientContext* context, const ::viam::app::v1::UpdateModuleRequest* request, ::viam::app::v1::UpdateModuleResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void UpdateModule(::grpc::ClientContext* context, const ::viam::app::v1::UpdateModuleRequest* request, ::viam::app::v1::UpdateModuleResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void UpdateModule(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateModuleResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void UpdateModule(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateModuleResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void UploadModuleFile(::grpc::ClientContext* context, ::viam::app::v1::UploadModuleFileResponse* response, ::grpc::ClientWriteReactor< ::viam::app::v1::UploadModuleFileRequest>* reactor) = 0; + #else + virtual void UploadModuleFile(::grpc::ClientContext* context, ::viam::app::v1::UploadModuleFileResponse* response, ::grpc::experimental::ClientWriteReactor< ::viam::app::v1::UploadModuleFileRequest>* reactor) = 0; + #endif virtual void GetModule(::grpc::ClientContext* context, const ::viam::app::v1::GetModuleRequest* request, ::viam::app::v1::GetModuleResponse* response, std::function) = 0; + virtual void GetModule(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetModuleResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetModule(::grpc::ClientContext* context, const ::viam::app::v1::GetModuleRequest* request, ::viam::app::v1::GetModuleResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetModule(::grpc::ClientContext* context, const ::viam::app::v1::GetModuleRequest* request, ::viam::app::v1::GetModuleResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetModule(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetModuleResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetModule(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetModuleResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif virtual void ListModules(::grpc::ClientContext* context, const ::viam::app::v1::ListModulesRequest* request, ::viam::app::v1::ListModulesResponse* response, std::function) = 0; + virtual void ListModules(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListModulesResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void ListModules(::grpc::ClientContext* context, const ::viam::app::v1::ListModulesRequest* request, ::viam::app::v1::ListModulesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ListModules(::grpc::ClientContext* context, const ::viam::app::v1::ListModulesRequest* request, ::viam::app::v1::ListModulesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void ListModules(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListModulesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ListModules(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListModulesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif virtual void CreateKey(::grpc::ClientContext* context, const ::viam::app::v1::CreateKeyRequest* request, ::viam::app::v1::CreateKeyResponse* response, std::function) = 0; + virtual void CreateKey(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateKeyResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void CreateKey(::grpc::ClientContext* context, const ::viam::app::v1::CreateKeyRequest* request, ::viam::app::v1::CreateKeyResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void CreateKey(::grpc::ClientContext* context, const ::viam::app::v1::CreateKeyRequest* request, ::viam::app::v1::CreateKeyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void CreateKey(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateKeyResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void CreateKey(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateKeyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif virtual void DeleteKey(::grpc::ClientContext* context, const ::viam::app::v1::DeleteKeyRequest* request, ::viam::app::v1::DeleteKeyResponse* response, std::function) = 0; + virtual void DeleteKey(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteKeyResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void DeleteKey(::grpc::ClientContext* context, const ::viam::app::v1::DeleteKeyRequest* request, ::viam::app::v1::DeleteKeyResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DeleteKey(::grpc::ClientContext* context, const ::viam::app::v1::DeleteKeyRequest* request, ::viam::app::v1::DeleteKeyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void DeleteKey(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteKeyResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DeleteKey(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteKeyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif virtual void ListKeys(::grpc::ClientContext* context, const ::viam::app::v1::ListKeysRequest* request, ::viam::app::v1::ListKeysResponse* response, std::function) = 0; + virtual void ListKeys(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListKeysResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void ListKeys(::grpc::ClientContext* context, const ::viam::app::v1::ListKeysRequest* request, ::viam::app::v1::ListKeysResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ListKeys(::grpc::ClientContext* context, const ::viam::app::v1::ListKeysRequest* request, ::viam::app::v1::ListKeysResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void ListKeys(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListKeysResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ListKeys(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListKeysResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif virtual void RenameKey(::grpc::ClientContext* context, const ::viam::app::v1::RenameKeyRequest* request, ::viam::app::v1::RenameKeyResponse* response, std::function) = 0; + virtual void RenameKey(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::RenameKeyResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void RenameKey(::grpc::ClientContext* context, const ::viam::app::v1::RenameKeyRequest* request, ::viam::app::v1::RenameKeyResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void RenameKey(::grpc::ClientContext* context, const ::viam::app::v1::RenameKeyRequest* request, ::viam::app::v1::RenameKeyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void RenameKey(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::RenameKeyResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void RenameKey(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::RenameKeyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif virtual void RotateKey(::grpc::ClientContext* context, const ::viam::app::v1::RotateKeyRequest* request, ::viam::app::v1::RotateKeyResponse* response, std::function) = 0; + virtual void RotateKey(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::RotateKeyResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void RotateKey(::grpc::ClientContext* context, const ::viam::app::v1::RotateKeyRequest* request, ::viam::app::v1::RotateKeyResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void RotateKey(::grpc::ClientContext* context, const ::viam::app::v1::RotateKeyRequest* request, ::viam::app::v1::RotateKeyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void RotateKey(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::RotateKeyResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void RotateKey(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::RotateKeyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif virtual void CreateKeyFromExistingKeyAuthorizations(::grpc::ClientContext* context, const ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsRequest* request, ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse* response, std::function) = 0; + virtual void CreateKeyFromExistingKeyAuthorizations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void CreateKeyFromExistingKeyAuthorizations(::grpc::ClientContext* context, const ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsRequest* request, ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void CreateKeyFromExistingKeyAuthorizations(::grpc::ClientContext* context, const ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsRequest* request, ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void CreateKeyFromExistingKeyAuthorizations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void CreateKeyFromExistingKeyAuthorizations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif }; - typedef class async_interface experimental_async_interface; - virtual class async_interface* async() { return nullptr; } - class async_interface* experimental_async() { return async(); } - private: + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef class experimental_async_interface async_interface; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + async_interface* async() { return experimental_async(); } + #endif + virtual class experimental_async_interface* experimental_async() { return nullptr; } + private: virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::GetUserIDByEmailResponse>* AsyncGetUserIDByEmailRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetUserIDByEmailRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::GetUserIDByEmailResponse>* PrepareAsyncGetUserIDByEmailRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetUserIDByEmailRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::CreateOrganizationResponse>* AsyncCreateOrganizationRaw(::grpc::ClientContext* context, const ::viam::app::v1::CreateOrganizationRequest& request, ::grpc::CompletionQueue* cq) = 0; @@ -902,6 +1877,8 @@ class AppService final { virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::GetOrganizationsWithAccessToLocationResponse>* PrepareAsyncGetOrganizationsWithAccessToLocationRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationsWithAccessToLocationRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::ListOrganizationsByUserResponse>* AsyncListOrganizationsByUserRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationsByUserRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::ListOrganizationsByUserResponse>* PrepareAsyncListOrganizationsByUserRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationsByUserRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::SearchOrganizationsResponse>* AsyncSearchOrganizationsRaw(::grpc::ClientContext* context, const ::viam::app::v1::SearchOrganizationsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::SearchOrganizationsResponse>* PrepareAsyncSearchOrganizationsRaw(::grpc::ClientContext* context, const ::viam::app::v1::SearchOrganizationsRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::GetOrganizationResponse>* AsyncGetOrganizationRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::GetOrganizationResponse>* PrepareAsyncGetOrganizationRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse>* AsyncGetOrganizationNamespaceAvailabilityRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationNamespaceAvailabilityRequest& request, ::grpc::CompletionQueue* cq) = 0; @@ -934,6 +1911,24 @@ class AppService final { virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::OrganizationSetSupportEmailResponse>* PrepareAsyncOrganizationSetSupportEmailRaw(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationSetSupportEmailRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::OrganizationGetSupportEmailResponse>* AsyncOrganizationGetSupportEmailRaw(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationGetSupportEmailRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::OrganizationGetSupportEmailResponse>* PrepareAsyncOrganizationGetSupportEmailRaw(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationGetSupportEmailRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::OrganizationSetLogoResponse>* AsyncOrganizationSetLogoRaw(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationSetLogoRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::OrganizationSetLogoResponse>* PrepareAsyncOrganizationSetLogoRaw(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationSetLogoRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::OrganizationGetLogoResponse>* AsyncOrganizationGetLogoRaw(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationGetLogoRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::OrganizationGetLogoResponse>* PrepareAsyncOrganizationGetLogoRaw(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationGetLogoRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::EnableAuthServiceResponse>* AsyncEnableAuthServiceRaw(::grpc::ClientContext* context, const ::viam::app::v1::EnableAuthServiceRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::EnableAuthServiceResponse>* PrepareAsyncEnableAuthServiceRaw(::grpc::ClientContext* context, const ::viam::app::v1::EnableAuthServiceRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::DisableAuthServiceResponse>* AsyncDisableAuthServiceRaw(::grpc::ClientContext* context, const ::viam::app::v1::DisableAuthServiceRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::DisableAuthServiceResponse>* PrepareAsyncDisableAuthServiceRaw(::grpc::ClientContext* context, const ::viam::app::v1::DisableAuthServiceRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::CreateOAuthAppResponse>* AsyncCreateOAuthAppRaw(::grpc::ClientContext* context, const ::viam::app::v1::CreateOAuthAppRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::CreateOAuthAppResponse>* PrepareAsyncCreateOAuthAppRaw(::grpc::ClientContext* context, const ::viam::app::v1::CreateOAuthAppRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::ReadOAuthAppResponse>* AsyncReadOAuthAppRaw(::grpc::ClientContext* context, const ::viam::app::v1::ReadOAuthAppRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::ReadOAuthAppResponse>* PrepareAsyncReadOAuthAppRaw(::grpc::ClientContext* context, const ::viam::app::v1::ReadOAuthAppRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::UpdateOAuthAppResponse>* AsyncUpdateOAuthAppRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateOAuthAppRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::UpdateOAuthAppResponse>* PrepareAsyncUpdateOAuthAppRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateOAuthAppRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::DeleteOAuthAppResponse>* AsyncDeleteOAuthAppRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOAuthAppRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::DeleteOAuthAppResponse>* PrepareAsyncDeleteOAuthAppRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOAuthAppRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::ListOAuthAppsResponse>* AsyncListOAuthAppsRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListOAuthAppsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::ListOAuthAppsResponse>* PrepareAsyncListOAuthAppsRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListOAuthAppsRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::CreateLocationResponse>* AsyncCreateLocationRaw(::grpc::ClientContext* context, const ::viam::app::v1::CreateLocationRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::CreateLocationResponse>* PrepareAsyncCreateLocationRaw(::grpc::ClientContext* context, const ::viam::app::v1::CreateLocationRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::GetLocationResponse>* AsyncGetLocationRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetLocationRequest& request, ::grpc::CompletionQueue* cq) = 0; @@ -1055,7 +2050,7 @@ class AppService final { }; class Stub final : public StubInterface { public: - Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); ::grpc::Status GetUserIDByEmail(::grpc::ClientContext* context, const ::viam::app::v1::GetUserIDByEmailRequest& request, ::viam::app::v1::GetUserIDByEmailResponse* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetUserIDByEmailResponse>> AsyncGetUserIDByEmail(::grpc::ClientContext* context, const ::viam::app::v1::GetUserIDByEmailRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetUserIDByEmailResponse>>(AsyncGetUserIDByEmailRaw(context, request, cq)); @@ -1091,6 +2086,13 @@ class AppService final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListOrganizationsByUserResponse>> PrepareAsyncListOrganizationsByUser(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationsByUserRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListOrganizationsByUserResponse>>(PrepareAsyncListOrganizationsByUserRaw(context, request, cq)); } + ::grpc::Status SearchOrganizations(::grpc::ClientContext* context, const ::viam::app::v1::SearchOrganizationsRequest& request, ::viam::app::v1::SearchOrganizationsResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::SearchOrganizationsResponse>> AsyncSearchOrganizations(::grpc::ClientContext* context, const ::viam::app::v1::SearchOrganizationsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::SearchOrganizationsResponse>>(AsyncSearchOrganizationsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::SearchOrganizationsResponse>> PrepareAsyncSearchOrganizations(::grpc::ClientContext* context, const ::viam::app::v1::SearchOrganizationsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::SearchOrganizationsResponse>>(PrepareAsyncSearchOrganizationsRaw(context, request, cq)); + } ::grpc::Status GetOrganization(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationRequest& request, ::viam::app::v1::GetOrganizationResponse* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetOrganizationResponse>> AsyncGetOrganization(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetOrganizationResponse>>(AsyncGetOrganizationRaw(context, request, cq)); @@ -1203,6 +2205,69 @@ class AppService final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::OrganizationGetSupportEmailResponse>> PrepareAsyncOrganizationGetSupportEmail(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationGetSupportEmailRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::OrganizationGetSupportEmailResponse>>(PrepareAsyncOrganizationGetSupportEmailRaw(context, request, cq)); } + ::grpc::Status OrganizationSetLogo(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationSetLogoRequest& request, ::viam::app::v1::OrganizationSetLogoResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::OrganizationSetLogoResponse>> AsyncOrganizationSetLogo(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationSetLogoRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::OrganizationSetLogoResponse>>(AsyncOrganizationSetLogoRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::OrganizationSetLogoResponse>> PrepareAsyncOrganizationSetLogo(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationSetLogoRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::OrganizationSetLogoResponse>>(PrepareAsyncOrganizationSetLogoRaw(context, request, cq)); + } + ::grpc::Status OrganizationGetLogo(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationGetLogoRequest& request, ::viam::app::v1::OrganizationGetLogoResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::OrganizationGetLogoResponse>> AsyncOrganizationGetLogo(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationGetLogoRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::OrganizationGetLogoResponse>>(AsyncOrganizationGetLogoRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::OrganizationGetLogoResponse>> PrepareAsyncOrganizationGetLogo(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationGetLogoRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::OrganizationGetLogoResponse>>(PrepareAsyncOrganizationGetLogoRaw(context, request, cq)); + } + ::grpc::Status EnableAuthService(::grpc::ClientContext* context, const ::viam::app::v1::EnableAuthServiceRequest& request, ::viam::app::v1::EnableAuthServiceResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::EnableAuthServiceResponse>> AsyncEnableAuthService(::grpc::ClientContext* context, const ::viam::app::v1::EnableAuthServiceRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::EnableAuthServiceResponse>>(AsyncEnableAuthServiceRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::EnableAuthServiceResponse>> PrepareAsyncEnableAuthService(::grpc::ClientContext* context, const ::viam::app::v1::EnableAuthServiceRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::EnableAuthServiceResponse>>(PrepareAsyncEnableAuthServiceRaw(context, request, cq)); + } + ::grpc::Status DisableAuthService(::grpc::ClientContext* context, const ::viam::app::v1::DisableAuthServiceRequest& request, ::viam::app::v1::DisableAuthServiceResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::DisableAuthServiceResponse>> AsyncDisableAuthService(::grpc::ClientContext* context, const ::viam::app::v1::DisableAuthServiceRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::DisableAuthServiceResponse>>(AsyncDisableAuthServiceRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::DisableAuthServiceResponse>> PrepareAsyncDisableAuthService(::grpc::ClientContext* context, const ::viam::app::v1::DisableAuthServiceRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::DisableAuthServiceResponse>>(PrepareAsyncDisableAuthServiceRaw(context, request, cq)); + } + ::grpc::Status CreateOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::CreateOAuthAppRequest& request, ::viam::app::v1::CreateOAuthAppResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::CreateOAuthAppResponse>> AsyncCreateOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::CreateOAuthAppRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::CreateOAuthAppResponse>>(AsyncCreateOAuthAppRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::CreateOAuthAppResponse>> PrepareAsyncCreateOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::CreateOAuthAppRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::CreateOAuthAppResponse>>(PrepareAsyncCreateOAuthAppRaw(context, request, cq)); + } + ::grpc::Status ReadOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::ReadOAuthAppRequest& request, ::viam::app::v1::ReadOAuthAppResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::ReadOAuthAppResponse>> AsyncReadOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::ReadOAuthAppRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::ReadOAuthAppResponse>>(AsyncReadOAuthAppRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::ReadOAuthAppResponse>> PrepareAsyncReadOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::ReadOAuthAppRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::ReadOAuthAppResponse>>(PrepareAsyncReadOAuthAppRaw(context, request, cq)); + } + ::grpc::Status UpdateOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::UpdateOAuthAppRequest& request, ::viam::app::v1::UpdateOAuthAppResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateOAuthAppResponse>> AsyncUpdateOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::UpdateOAuthAppRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateOAuthAppResponse>>(AsyncUpdateOAuthAppRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateOAuthAppResponse>> PrepareAsyncUpdateOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::UpdateOAuthAppRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateOAuthAppResponse>>(PrepareAsyncUpdateOAuthAppRaw(context, request, cq)); + } + ::grpc::Status DeleteOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOAuthAppRequest& request, ::viam::app::v1::DeleteOAuthAppResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteOAuthAppResponse>> AsyncDeleteOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOAuthAppRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteOAuthAppResponse>>(AsyncDeleteOAuthAppRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteOAuthAppResponse>> PrepareAsyncDeleteOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOAuthAppRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteOAuthAppResponse>>(PrepareAsyncDeleteOAuthAppRaw(context, request, cq)); + } + ::grpc::Status ListOAuthApps(::grpc::ClientContext* context, const ::viam::app::v1::ListOAuthAppsRequest& request, ::viam::app::v1::ListOAuthAppsResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListOAuthAppsResponse>> AsyncListOAuthApps(::grpc::ClientContext* context, const ::viam::app::v1::ListOAuthAppsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListOAuthAppsResponse>>(AsyncListOAuthAppsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListOAuthAppsResponse>> PrepareAsyncListOAuthApps(::grpc::ClientContext* context, const ::viam::app::v1::ListOAuthAppsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListOAuthAppsResponse>>(PrepareAsyncListOAuthAppsRaw(context, request, cq)); + } ::grpc::Status CreateLocation(::grpc::ClientContext* context, const ::viam::app::v1::CreateLocationRequest& request, ::viam::app::v1::CreateLocationResponse* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::CreateLocationResponse>> AsyncCreateLocation(::grpc::ClientContext* context, const ::viam::app::v1::CreateLocationRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::CreateLocationResponse>>(AsyncCreateLocationRaw(context, request, cq)); @@ -1613,176 +2678,1074 @@ class AppService final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse>> PrepareAsyncCreateKeyFromExistingKeyAuthorizations(::grpc::ClientContext* context, const ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse>>(PrepareAsyncCreateKeyFromExistingKeyAuthorizationsRaw(context, request, cq)); } - class async final : - public StubInterface::async_interface { + class experimental_async final : + public StubInterface::experimental_async_interface { public: void GetUserIDByEmail(::grpc::ClientContext* context, const ::viam::app::v1::GetUserIDByEmailRequest* request, ::viam::app::v1::GetUserIDByEmailResponse* response, std::function) override; + void GetUserIDByEmail(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetUserIDByEmailResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetUserIDByEmail(::grpc::ClientContext* context, const ::viam::app::v1::GetUserIDByEmailRequest* request, ::viam::app::v1::GetUserIDByEmailResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetUserIDByEmail(::grpc::ClientContext* context, const ::viam::app::v1::GetUserIDByEmailRequest* request, ::viam::app::v1::GetUserIDByEmailResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetUserIDByEmail(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetUserIDByEmailResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetUserIDByEmail(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetUserIDByEmailResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void CreateOrganization(::grpc::ClientContext* context, const ::viam::app::v1::CreateOrganizationRequest* request, ::viam::app::v1::CreateOrganizationResponse* response, std::function) override; + void CreateOrganization(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateOrganizationResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void CreateOrganization(::grpc::ClientContext* context, const ::viam::app::v1::CreateOrganizationRequest* request, ::viam::app::v1::CreateOrganizationResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void CreateOrganization(::grpc::ClientContext* context, const ::viam::app::v1::CreateOrganizationRequest* request, ::viam::app::v1::CreateOrganizationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void CreateOrganization(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateOrganizationResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void CreateOrganization(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateOrganizationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void ListOrganizations(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationsRequest* request, ::viam::app::v1::ListOrganizationsResponse* response, std::function) override; + void ListOrganizations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListOrganizationsResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void ListOrganizations(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationsRequest* request, ::viam::app::v1::ListOrganizationsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ListOrganizations(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationsRequest* request, ::viam::app::v1::ListOrganizationsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void ListOrganizations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListOrganizationsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ListOrganizations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListOrganizationsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetOrganizationsWithAccessToLocation(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationsWithAccessToLocationRequest* request, ::viam::app::v1::GetOrganizationsWithAccessToLocationResponse* response, std::function) override; + void GetOrganizationsWithAccessToLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetOrganizationsWithAccessToLocationResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetOrganizationsWithAccessToLocation(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationsWithAccessToLocationRequest* request, ::viam::app::v1::GetOrganizationsWithAccessToLocationResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetOrganizationsWithAccessToLocation(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationsWithAccessToLocationRequest* request, ::viam::app::v1::GetOrganizationsWithAccessToLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetOrganizationsWithAccessToLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetOrganizationsWithAccessToLocationResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetOrganizationsWithAccessToLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetOrganizationsWithAccessToLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void ListOrganizationsByUser(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationsByUserRequest* request, ::viam::app::v1::ListOrganizationsByUserResponse* response, std::function) override; + void ListOrganizationsByUser(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListOrganizationsByUserResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void ListOrganizationsByUser(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationsByUserRequest* request, ::viam::app::v1::ListOrganizationsByUserResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ListOrganizationsByUser(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationsByUserRequest* request, ::viam::app::v1::ListOrganizationsByUserResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void ListOrganizationsByUser(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListOrganizationsByUserResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ListOrganizationsByUser(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListOrganizationsByUserResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + void SearchOrganizations(::grpc::ClientContext* context, const ::viam::app::v1::SearchOrganizationsRequest* request, ::viam::app::v1::SearchOrganizationsResponse* response, std::function) override; + void SearchOrganizations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::SearchOrganizationsResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void SearchOrganizations(::grpc::ClientContext* context, const ::viam::app::v1::SearchOrganizationsRequest* request, ::viam::app::v1::SearchOrganizationsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void SearchOrganizations(::grpc::ClientContext* context, const ::viam::app::v1::SearchOrganizationsRequest* request, ::viam::app::v1::SearchOrganizationsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void SearchOrganizations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::SearchOrganizationsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void SearchOrganizations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::SearchOrganizationsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetOrganization(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationRequest* request, ::viam::app::v1::GetOrganizationResponse* response, std::function) override; + void GetOrganization(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetOrganizationResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetOrganization(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationRequest* request, ::viam::app::v1::GetOrganizationResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetOrganization(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationRequest* request, ::viam::app::v1::GetOrganizationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetOrganization(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetOrganizationResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetOrganization(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetOrganizationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetOrganizationNamespaceAvailability(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationNamespaceAvailabilityRequest* request, ::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse* response, std::function) override; + void GetOrganizationNamespaceAvailability(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetOrganizationNamespaceAvailability(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationNamespaceAvailabilityRequest* request, ::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetOrganizationNamespaceAvailability(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationNamespaceAvailabilityRequest* request, ::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetOrganizationNamespaceAvailability(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetOrganizationNamespaceAvailability(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void UpdateOrganization(::grpc::ClientContext* context, const ::viam::app::v1::UpdateOrganizationRequest* request, ::viam::app::v1::UpdateOrganizationResponse* response, std::function) override; + void UpdateOrganization(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateOrganizationResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void UpdateOrganization(::grpc::ClientContext* context, const ::viam::app::v1::UpdateOrganizationRequest* request, ::viam::app::v1::UpdateOrganizationResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void UpdateOrganization(::grpc::ClientContext* context, const ::viam::app::v1::UpdateOrganizationRequest* request, ::viam::app::v1::UpdateOrganizationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void UpdateOrganization(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateOrganizationResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void UpdateOrganization(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateOrganizationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void DeleteOrganization(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOrganizationRequest* request, ::viam::app::v1::DeleteOrganizationResponse* response, std::function) override; + void DeleteOrganization(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteOrganizationResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void DeleteOrganization(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOrganizationRequest* request, ::viam::app::v1::DeleteOrganizationResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DeleteOrganization(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOrganizationRequest* request, ::viam::app::v1::DeleteOrganizationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void DeleteOrganization(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteOrganizationResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DeleteOrganization(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteOrganizationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void ListOrganizationMembers(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationMembersRequest* request, ::viam::app::v1::ListOrganizationMembersResponse* response, std::function) override; + void ListOrganizationMembers(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListOrganizationMembersResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void ListOrganizationMembers(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationMembersRequest* request, ::viam::app::v1::ListOrganizationMembersResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ListOrganizationMembers(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationMembersRequest* request, ::viam::app::v1::ListOrganizationMembersResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void ListOrganizationMembers(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListOrganizationMembersResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ListOrganizationMembers(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListOrganizationMembersResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void CreateOrganizationInvite(::grpc::ClientContext* context, const ::viam::app::v1::CreateOrganizationInviteRequest* request, ::viam::app::v1::CreateOrganizationInviteResponse* response, std::function) override; + void CreateOrganizationInvite(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateOrganizationInviteResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void CreateOrganizationInvite(::grpc::ClientContext* context, const ::viam::app::v1::CreateOrganizationInviteRequest* request, ::viam::app::v1::CreateOrganizationInviteResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void CreateOrganizationInvite(::grpc::ClientContext* context, const ::viam::app::v1::CreateOrganizationInviteRequest* request, ::viam::app::v1::CreateOrganizationInviteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void CreateOrganizationInvite(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateOrganizationInviteResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void CreateOrganizationInvite(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateOrganizationInviteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void UpdateOrganizationInviteAuthorizations(::grpc::ClientContext* context, const ::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest* request, ::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse* response, std::function) override; + void UpdateOrganizationInviteAuthorizations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void UpdateOrganizationInviteAuthorizations(::grpc::ClientContext* context, const ::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest* request, ::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void UpdateOrganizationInviteAuthorizations(::grpc::ClientContext* context, const ::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest* request, ::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void UpdateOrganizationInviteAuthorizations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void UpdateOrganizationInviteAuthorizations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void DeleteOrganizationMember(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOrganizationMemberRequest* request, ::viam::app::v1::DeleteOrganizationMemberResponse* response, std::function) override; + void DeleteOrganizationMember(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteOrganizationMemberResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void DeleteOrganizationMember(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOrganizationMemberRequest* request, ::viam::app::v1::DeleteOrganizationMemberResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DeleteOrganizationMember(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOrganizationMemberRequest* request, ::viam::app::v1::DeleteOrganizationMemberResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void DeleteOrganizationMember(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteOrganizationMemberResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DeleteOrganizationMember(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteOrganizationMemberResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void DeleteOrganizationInvite(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOrganizationInviteRequest* request, ::viam::app::v1::DeleteOrganizationInviteResponse* response, std::function) override; + void DeleteOrganizationInvite(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteOrganizationInviteResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void DeleteOrganizationInvite(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOrganizationInviteRequest* request, ::viam::app::v1::DeleteOrganizationInviteResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DeleteOrganizationInvite(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOrganizationInviteRequest* request, ::viam::app::v1::DeleteOrganizationInviteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void DeleteOrganizationInvite(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteOrganizationInviteResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DeleteOrganizationInvite(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteOrganizationInviteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void ResendOrganizationInvite(::grpc::ClientContext* context, const ::viam::app::v1::ResendOrganizationInviteRequest* request, ::viam::app::v1::ResendOrganizationInviteResponse* response, std::function) override; + void ResendOrganizationInvite(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ResendOrganizationInviteResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void ResendOrganizationInvite(::grpc::ClientContext* context, const ::viam::app::v1::ResendOrganizationInviteRequest* request, ::viam::app::v1::ResendOrganizationInviteResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ResendOrganizationInvite(::grpc::ClientContext* context, const ::viam::app::v1::ResendOrganizationInviteRequest* request, ::viam::app::v1::ResendOrganizationInviteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void ResendOrganizationInvite(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ResendOrganizationInviteResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ResendOrganizationInvite(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ResendOrganizationInviteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void EnableBillingService(::grpc::ClientContext* context, const ::viam::app::v1::EnableBillingServiceRequest* request, ::viam::app::v1::EnableBillingServiceResponse* response, std::function) override; + void EnableBillingService(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::EnableBillingServiceResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void EnableBillingService(::grpc::ClientContext* context, const ::viam::app::v1::EnableBillingServiceRequest* request, ::viam::app::v1::EnableBillingServiceResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void EnableBillingService(::grpc::ClientContext* context, const ::viam::app::v1::EnableBillingServiceRequest* request, ::viam::app::v1::EnableBillingServiceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void EnableBillingService(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::EnableBillingServiceResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void EnableBillingService(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::EnableBillingServiceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void DisableBillingService(::grpc::ClientContext* context, const ::viam::app::v1::DisableBillingServiceRequest* request, ::viam::app::v1::DisableBillingServiceResponse* response, std::function) override; + void DisableBillingService(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DisableBillingServiceResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void DisableBillingService(::grpc::ClientContext* context, const ::viam::app::v1::DisableBillingServiceRequest* request, ::viam::app::v1::DisableBillingServiceResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DisableBillingService(::grpc::ClientContext* context, const ::viam::app::v1::DisableBillingServiceRequest* request, ::viam::app::v1::DisableBillingServiceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void DisableBillingService(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DisableBillingServiceResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DisableBillingService(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DisableBillingServiceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void UpdateBillingService(::grpc::ClientContext* context, const ::viam::app::v1::UpdateBillingServiceRequest* request, ::viam::app::v1::UpdateBillingServiceResponse* response, std::function) override; + void UpdateBillingService(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateBillingServiceResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void UpdateBillingService(::grpc::ClientContext* context, const ::viam::app::v1::UpdateBillingServiceRequest* request, ::viam::app::v1::UpdateBillingServiceResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void UpdateBillingService(::grpc::ClientContext* context, const ::viam::app::v1::UpdateBillingServiceRequest* request, ::viam::app::v1::UpdateBillingServiceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void UpdateBillingService(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateBillingServiceResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void UpdateBillingService(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateBillingServiceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetBillingServiceConfig(::grpc::ClientContext* context, const ::viam::app::v1::GetBillingServiceConfigRequest* request, ::viam::app::v1::GetBillingServiceConfigResponse* response, std::function) override; + void GetBillingServiceConfig(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetBillingServiceConfigResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetBillingServiceConfig(::grpc::ClientContext* context, const ::viam::app::v1::GetBillingServiceConfigRequest* request, ::viam::app::v1::GetBillingServiceConfigResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetBillingServiceConfig(::grpc::ClientContext* context, const ::viam::app::v1::GetBillingServiceConfigRequest* request, ::viam::app::v1::GetBillingServiceConfigResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetBillingServiceConfig(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetBillingServiceConfigResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetBillingServiceConfig(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetBillingServiceConfigResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void OrganizationSetSupportEmail(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationSetSupportEmailRequest* request, ::viam::app::v1::OrganizationSetSupportEmailResponse* response, std::function) override; + void OrganizationSetSupportEmail(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::OrganizationSetSupportEmailResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void OrganizationSetSupportEmail(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationSetSupportEmailRequest* request, ::viam::app::v1::OrganizationSetSupportEmailResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void OrganizationSetSupportEmail(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationSetSupportEmailRequest* request, ::viam::app::v1::OrganizationSetSupportEmailResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void OrganizationSetSupportEmail(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::OrganizationSetSupportEmailResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void OrganizationSetSupportEmail(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::OrganizationSetSupportEmailResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void OrganizationGetSupportEmail(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationGetSupportEmailRequest* request, ::viam::app::v1::OrganizationGetSupportEmailResponse* response, std::function) override; + void OrganizationGetSupportEmail(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::OrganizationGetSupportEmailResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void OrganizationGetSupportEmail(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationGetSupportEmailRequest* request, ::viam::app::v1::OrganizationGetSupportEmailResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void OrganizationGetSupportEmail(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationGetSupportEmailRequest* request, ::viam::app::v1::OrganizationGetSupportEmailResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void OrganizationGetSupportEmail(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::OrganizationGetSupportEmailResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void OrganizationGetSupportEmail(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::OrganizationGetSupportEmailResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + void OrganizationSetLogo(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationSetLogoRequest* request, ::viam::app::v1::OrganizationSetLogoResponse* response, std::function) override; + void OrganizationSetLogo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::OrganizationSetLogoResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void OrganizationSetLogo(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationSetLogoRequest* request, ::viam::app::v1::OrganizationSetLogoResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void OrganizationSetLogo(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationSetLogoRequest* request, ::viam::app::v1::OrganizationSetLogoResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void OrganizationSetLogo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::OrganizationSetLogoResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void OrganizationSetLogo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::OrganizationSetLogoResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + void OrganizationGetLogo(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationGetLogoRequest* request, ::viam::app::v1::OrganizationGetLogoResponse* response, std::function) override; + void OrganizationGetLogo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::OrganizationGetLogoResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void OrganizationGetLogo(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationGetLogoRequest* request, ::viam::app::v1::OrganizationGetLogoResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void OrganizationGetLogo(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationGetLogoRequest* request, ::viam::app::v1::OrganizationGetLogoResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void OrganizationGetLogo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::OrganizationGetLogoResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void OrganizationGetLogo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::OrganizationGetLogoResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + void EnableAuthService(::grpc::ClientContext* context, const ::viam::app::v1::EnableAuthServiceRequest* request, ::viam::app::v1::EnableAuthServiceResponse* response, std::function) override; + void EnableAuthService(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::EnableAuthServiceResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void EnableAuthService(::grpc::ClientContext* context, const ::viam::app::v1::EnableAuthServiceRequest* request, ::viam::app::v1::EnableAuthServiceResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void EnableAuthService(::grpc::ClientContext* context, const ::viam::app::v1::EnableAuthServiceRequest* request, ::viam::app::v1::EnableAuthServiceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void EnableAuthService(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::EnableAuthServiceResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void EnableAuthService(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::EnableAuthServiceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + void DisableAuthService(::grpc::ClientContext* context, const ::viam::app::v1::DisableAuthServiceRequest* request, ::viam::app::v1::DisableAuthServiceResponse* response, std::function) override; + void DisableAuthService(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DisableAuthServiceResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void DisableAuthService(::grpc::ClientContext* context, const ::viam::app::v1::DisableAuthServiceRequest* request, ::viam::app::v1::DisableAuthServiceResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DisableAuthService(::grpc::ClientContext* context, const ::viam::app::v1::DisableAuthServiceRequest* request, ::viam::app::v1::DisableAuthServiceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void DisableAuthService(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DisableAuthServiceResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DisableAuthService(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DisableAuthServiceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + void CreateOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::CreateOAuthAppRequest* request, ::viam::app::v1::CreateOAuthAppResponse* response, std::function) override; + void CreateOAuthApp(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateOAuthAppResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void CreateOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::CreateOAuthAppRequest* request, ::viam::app::v1::CreateOAuthAppResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void CreateOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::CreateOAuthAppRequest* request, ::viam::app::v1::CreateOAuthAppResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void CreateOAuthApp(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateOAuthAppResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void CreateOAuthApp(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateOAuthAppResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + void ReadOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::ReadOAuthAppRequest* request, ::viam::app::v1::ReadOAuthAppResponse* response, std::function) override; + void ReadOAuthApp(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ReadOAuthAppResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void ReadOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::ReadOAuthAppRequest* request, ::viam::app::v1::ReadOAuthAppResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ReadOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::ReadOAuthAppRequest* request, ::viam::app::v1::ReadOAuthAppResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void ReadOAuthApp(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ReadOAuthAppResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ReadOAuthApp(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ReadOAuthAppResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + void UpdateOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::UpdateOAuthAppRequest* request, ::viam::app::v1::UpdateOAuthAppResponse* response, std::function) override; + void UpdateOAuthApp(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateOAuthAppResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void UpdateOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::UpdateOAuthAppRequest* request, ::viam::app::v1::UpdateOAuthAppResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void UpdateOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::UpdateOAuthAppRequest* request, ::viam::app::v1::UpdateOAuthAppResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void UpdateOAuthApp(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateOAuthAppResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void UpdateOAuthApp(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateOAuthAppResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + void DeleteOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOAuthAppRequest* request, ::viam::app::v1::DeleteOAuthAppResponse* response, std::function) override; + void DeleteOAuthApp(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteOAuthAppResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void DeleteOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOAuthAppRequest* request, ::viam::app::v1::DeleteOAuthAppResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DeleteOAuthApp(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOAuthAppRequest* request, ::viam::app::v1::DeleteOAuthAppResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void DeleteOAuthApp(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteOAuthAppResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DeleteOAuthApp(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteOAuthAppResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + void ListOAuthApps(::grpc::ClientContext* context, const ::viam::app::v1::ListOAuthAppsRequest* request, ::viam::app::v1::ListOAuthAppsResponse* response, std::function) override; + void ListOAuthApps(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListOAuthAppsResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void ListOAuthApps(::grpc::ClientContext* context, const ::viam::app::v1::ListOAuthAppsRequest* request, ::viam::app::v1::ListOAuthAppsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ListOAuthApps(::grpc::ClientContext* context, const ::viam::app::v1::ListOAuthAppsRequest* request, ::viam::app::v1::ListOAuthAppsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void ListOAuthApps(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListOAuthAppsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ListOAuthApps(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListOAuthAppsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void CreateLocation(::grpc::ClientContext* context, const ::viam::app::v1::CreateLocationRequest* request, ::viam::app::v1::CreateLocationResponse* response, std::function) override; + void CreateLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateLocationResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void CreateLocation(::grpc::ClientContext* context, const ::viam::app::v1::CreateLocationRequest* request, ::viam::app::v1::CreateLocationResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void CreateLocation(::grpc::ClientContext* context, const ::viam::app::v1::CreateLocationRequest* request, ::viam::app::v1::CreateLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void CreateLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateLocationResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void CreateLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetLocation(::grpc::ClientContext* context, const ::viam::app::v1::GetLocationRequest* request, ::viam::app::v1::GetLocationResponse* response, std::function) override; + void GetLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetLocationResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetLocation(::grpc::ClientContext* context, const ::viam::app::v1::GetLocationRequest* request, ::viam::app::v1::GetLocationResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetLocation(::grpc::ClientContext* context, const ::viam::app::v1::GetLocationRequest* request, ::viam::app::v1::GetLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetLocationResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void UpdateLocation(::grpc::ClientContext* context, const ::viam::app::v1::UpdateLocationRequest* request, ::viam::app::v1::UpdateLocationResponse* response, std::function) override; + void UpdateLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateLocationResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void UpdateLocation(::grpc::ClientContext* context, const ::viam::app::v1::UpdateLocationRequest* request, ::viam::app::v1::UpdateLocationResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void UpdateLocation(::grpc::ClientContext* context, const ::viam::app::v1::UpdateLocationRequest* request, ::viam::app::v1::UpdateLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void UpdateLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateLocationResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void UpdateLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void DeleteLocation(::grpc::ClientContext* context, const ::viam::app::v1::DeleteLocationRequest* request, ::viam::app::v1::DeleteLocationResponse* response, std::function) override; + void DeleteLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteLocationResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void DeleteLocation(::grpc::ClientContext* context, const ::viam::app::v1::DeleteLocationRequest* request, ::viam::app::v1::DeleteLocationResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DeleteLocation(::grpc::ClientContext* context, const ::viam::app::v1::DeleteLocationRequest* request, ::viam::app::v1::DeleteLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void DeleteLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteLocationResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DeleteLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void ListLocations(::grpc::ClientContext* context, const ::viam::app::v1::ListLocationsRequest* request, ::viam::app::v1::ListLocationsResponse* response, std::function) override; + void ListLocations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListLocationsResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void ListLocations(::grpc::ClientContext* context, const ::viam::app::v1::ListLocationsRequest* request, ::viam::app::v1::ListLocationsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ListLocations(::grpc::ClientContext* context, const ::viam::app::v1::ListLocationsRequest* request, ::viam::app::v1::ListLocationsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void ListLocations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListLocationsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ListLocations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListLocationsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void ShareLocation(::grpc::ClientContext* context, const ::viam::app::v1::ShareLocationRequest* request, ::viam::app::v1::ShareLocationResponse* response, std::function) override; + void ShareLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ShareLocationResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void ShareLocation(::grpc::ClientContext* context, const ::viam::app::v1::ShareLocationRequest* request, ::viam::app::v1::ShareLocationResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ShareLocation(::grpc::ClientContext* context, const ::viam::app::v1::ShareLocationRequest* request, ::viam::app::v1::ShareLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void ShareLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ShareLocationResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ShareLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ShareLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void UnshareLocation(::grpc::ClientContext* context, const ::viam::app::v1::UnshareLocationRequest* request, ::viam::app::v1::UnshareLocationResponse* response, std::function) override; + void UnshareLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UnshareLocationResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void UnshareLocation(::grpc::ClientContext* context, const ::viam::app::v1::UnshareLocationRequest* request, ::viam::app::v1::UnshareLocationResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void UnshareLocation(::grpc::ClientContext* context, const ::viam::app::v1::UnshareLocationRequest* request, ::viam::app::v1::UnshareLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void UnshareLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UnshareLocationResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void UnshareLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UnshareLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void LocationAuth(::grpc::ClientContext* context, const ::viam::app::v1::LocationAuthRequest* request, ::viam::app::v1::LocationAuthResponse* response, std::function) override; + void LocationAuth(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::LocationAuthResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void LocationAuth(::grpc::ClientContext* context, const ::viam::app::v1::LocationAuthRequest* request, ::viam::app::v1::LocationAuthResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void LocationAuth(::grpc::ClientContext* context, const ::viam::app::v1::LocationAuthRequest* request, ::viam::app::v1::LocationAuthResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void LocationAuth(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::LocationAuthResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void LocationAuth(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::LocationAuthResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void CreateLocationSecret(::grpc::ClientContext* context, const ::viam::app::v1::CreateLocationSecretRequest* request, ::viam::app::v1::CreateLocationSecretResponse* response, std::function) override; + void CreateLocationSecret(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateLocationSecretResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void CreateLocationSecret(::grpc::ClientContext* context, const ::viam::app::v1::CreateLocationSecretRequest* request, ::viam::app::v1::CreateLocationSecretResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void CreateLocationSecret(::grpc::ClientContext* context, const ::viam::app::v1::CreateLocationSecretRequest* request, ::viam::app::v1::CreateLocationSecretResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void CreateLocationSecret(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateLocationSecretResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void CreateLocationSecret(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateLocationSecretResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void DeleteLocationSecret(::grpc::ClientContext* context, const ::viam::app::v1::DeleteLocationSecretRequest* request, ::viam::app::v1::DeleteLocationSecretResponse* response, std::function) override; + void DeleteLocationSecret(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteLocationSecretResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void DeleteLocationSecret(::grpc::ClientContext* context, const ::viam::app::v1::DeleteLocationSecretRequest* request, ::viam::app::v1::DeleteLocationSecretResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DeleteLocationSecret(::grpc::ClientContext* context, const ::viam::app::v1::DeleteLocationSecretRequest* request, ::viam::app::v1::DeleteLocationSecretResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void DeleteLocationSecret(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteLocationSecretResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DeleteLocationSecret(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteLocationSecretResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetRobot(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotRequest* request, ::viam::app::v1::GetRobotResponse* response, std::function) override; + void GetRobot(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRobotResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetRobot(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotRequest* request, ::viam::app::v1::GetRobotResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetRobot(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotRequest* request, ::viam::app::v1::GetRobotResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetRobot(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRobotResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetRobot(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRobotResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetRoverRentalRobots(::grpc::ClientContext* context, const ::viam::app::v1::GetRoverRentalRobotsRequest* request, ::viam::app::v1::GetRoverRentalRobotsResponse* response, std::function) override; + void GetRoverRentalRobots(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRoverRentalRobotsResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetRoverRentalRobots(::grpc::ClientContext* context, const ::viam::app::v1::GetRoverRentalRobotsRequest* request, ::viam::app::v1::GetRoverRentalRobotsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetRoverRentalRobots(::grpc::ClientContext* context, const ::viam::app::v1::GetRoverRentalRobotsRequest* request, ::viam::app::v1::GetRoverRentalRobotsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetRoverRentalRobots(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRoverRentalRobotsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetRoverRentalRobots(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRoverRentalRobotsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetRobotParts(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartsRequest* request, ::viam::app::v1::GetRobotPartsResponse* response, std::function) override; + void GetRobotParts(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRobotPartsResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetRobotParts(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartsRequest* request, ::viam::app::v1::GetRobotPartsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetRobotParts(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartsRequest* request, ::viam::app::v1::GetRobotPartsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetRobotParts(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRobotPartsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetRobotParts(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRobotPartsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartRequest* request, ::viam::app::v1::GetRobotPartResponse* response, std::function) override; + void GetRobotPart(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRobotPartResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartRequest* request, ::viam::app::v1::GetRobotPartResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartRequest* request, ::viam::app::v1::GetRobotPartResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetRobotPart(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRobotPartResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetRobotPart(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRobotPartResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetRobotPartLogs(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartLogsRequest* request, ::viam::app::v1::GetRobotPartLogsResponse* response, std::function) override; + void GetRobotPartLogs(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRobotPartLogsResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetRobotPartLogs(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartLogsRequest* request, ::viam::app::v1::GetRobotPartLogsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - void TailRobotPartLogs(::grpc::ClientContext* context, const ::viam::app::v1::TailRobotPartLogsRequest* request, ::grpc::ClientReadReactor< ::viam::app::v1::TailRobotPartLogsResponse>* reactor) override; + #else + void GetRobotPartLogs(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartLogsRequest* request, ::viam::app::v1::GetRobotPartLogsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetRobotPartLogs(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRobotPartLogsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetRobotPartLogs(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRobotPartLogsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void TailRobotPartLogs(::grpc::ClientContext* context, ::viam::app::v1::TailRobotPartLogsRequest* request, ::grpc::ClientReadReactor< ::viam::app::v1::TailRobotPartLogsResponse>* reactor) override; + #else + void TailRobotPartLogs(::grpc::ClientContext* context, ::viam::app::v1::TailRobotPartLogsRequest* request, ::grpc::experimental::ClientReadReactor< ::viam::app::v1::TailRobotPartLogsResponse>* reactor) override; + #endif void GetRobotPartHistory(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartHistoryRequest* request, ::viam::app::v1::GetRobotPartHistoryResponse* response, std::function) override; + void GetRobotPartHistory(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRobotPartHistoryResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetRobotPartHistory(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartHistoryRequest* request, ::viam::app::v1::GetRobotPartHistoryResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetRobotPartHistory(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotPartHistoryRequest* request, ::viam::app::v1::GetRobotPartHistoryResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetRobotPartHistory(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRobotPartHistoryResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetRobotPartHistory(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRobotPartHistoryResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void UpdateRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotPartRequest* request, ::viam::app::v1::UpdateRobotPartResponse* response, std::function) override; + void UpdateRobotPart(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateRobotPartResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void UpdateRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotPartRequest* request, ::viam::app::v1::UpdateRobotPartResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void UpdateRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotPartRequest* request, ::viam::app::v1::UpdateRobotPartResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void UpdateRobotPart(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateRobotPartResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void UpdateRobotPart(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateRobotPartResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void NewRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotPartRequest* request, ::viam::app::v1::NewRobotPartResponse* response, std::function) override; + void NewRobotPart(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::NewRobotPartResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void NewRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotPartRequest* request, ::viam::app::v1::NewRobotPartResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void NewRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotPartRequest* request, ::viam::app::v1::NewRobotPartResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void NewRobotPart(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::NewRobotPartResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void NewRobotPart(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::NewRobotPartResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void DeleteRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotPartRequest* request, ::viam::app::v1::DeleteRobotPartResponse* response, std::function) override; + void DeleteRobotPart(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteRobotPartResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void DeleteRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotPartRequest* request, ::viam::app::v1::DeleteRobotPartResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DeleteRobotPart(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotPartRequest* request, ::viam::app::v1::DeleteRobotPartResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void DeleteRobotPart(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteRobotPartResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DeleteRobotPart(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteRobotPartResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetRobotAPIKeys(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotAPIKeysRequest* request, ::viam::app::v1::GetRobotAPIKeysResponse* response, std::function) override; + void GetRobotAPIKeys(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRobotAPIKeysResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetRobotAPIKeys(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotAPIKeysRequest* request, ::viam::app::v1::GetRobotAPIKeysResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetRobotAPIKeys(::grpc::ClientContext* context, const ::viam::app::v1::GetRobotAPIKeysRequest* request, ::viam::app::v1::GetRobotAPIKeysResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetRobotAPIKeys(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRobotAPIKeysResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetRobotAPIKeys(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRobotAPIKeysResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void MarkPartAsMain(::grpc::ClientContext* context, const ::viam::app::v1::MarkPartAsMainRequest* request, ::viam::app::v1::MarkPartAsMainResponse* response, std::function) override; + void MarkPartAsMain(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::MarkPartAsMainResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void MarkPartAsMain(::grpc::ClientContext* context, const ::viam::app::v1::MarkPartAsMainRequest* request, ::viam::app::v1::MarkPartAsMainResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void MarkPartAsMain(::grpc::ClientContext* context, const ::viam::app::v1::MarkPartAsMainRequest* request, ::viam::app::v1::MarkPartAsMainResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void MarkPartAsMain(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::MarkPartAsMainResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void MarkPartAsMain(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::MarkPartAsMainResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void MarkPartForRestart(::grpc::ClientContext* context, const ::viam::app::v1::MarkPartForRestartRequest* request, ::viam::app::v1::MarkPartForRestartResponse* response, std::function) override; + void MarkPartForRestart(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::MarkPartForRestartResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void MarkPartForRestart(::grpc::ClientContext* context, const ::viam::app::v1::MarkPartForRestartRequest* request, ::viam::app::v1::MarkPartForRestartResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void MarkPartForRestart(::grpc::ClientContext* context, const ::viam::app::v1::MarkPartForRestartRequest* request, ::viam::app::v1::MarkPartForRestartResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void MarkPartForRestart(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::MarkPartForRestartResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void MarkPartForRestart(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::MarkPartForRestartResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void CreateRobotPartSecret(::grpc::ClientContext* context, const ::viam::app::v1::CreateRobotPartSecretRequest* request, ::viam::app::v1::CreateRobotPartSecretResponse* response, std::function) override; + void CreateRobotPartSecret(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateRobotPartSecretResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void CreateRobotPartSecret(::grpc::ClientContext* context, const ::viam::app::v1::CreateRobotPartSecretRequest* request, ::viam::app::v1::CreateRobotPartSecretResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void CreateRobotPartSecret(::grpc::ClientContext* context, const ::viam::app::v1::CreateRobotPartSecretRequest* request, ::viam::app::v1::CreateRobotPartSecretResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void CreateRobotPartSecret(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateRobotPartSecretResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void CreateRobotPartSecret(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateRobotPartSecretResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void DeleteRobotPartSecret(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotPartSecretRequest* request, ::viam::app::v1::DeleteRobotPartSecretResponse* response, std::function) override; + void DeleteRobotPartSecret(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteRobotPartSecretResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void DeleteRobotPartSecret(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotPartSecretRequest* request, ::viam::app::v1::DeleteRobotPartSecretResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DeleteRobotPartSecret(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotPartSecretRequest* request, ::viam::app::v1::DeleteRobotPartSecretResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void DeleteRobotPartSecret(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteRobotPartSecretResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DeleteRobotPartSecret(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteRobotPartSecretResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void ListRobots(::grpc::ClientContext* context, const ::viam::app::v1::ListRobotsRequest* request, ::viam::app::v1::ListRobotsResponse* response, std::function) override; + void ListRobots(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListRobotsResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void ListRobots(::grpc::ClientContext* context, const ::viam::app::v1::ListRobotsRequest* request, ::viam::app::v1::ListRobotsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ListRobots(::grpc::ClientContext* context, const ::viam::app::v1::ListRobotsRequest* request, ::viam::app::v1::ListRobotsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void ListRobots(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListRobotsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ListRobots(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListRobotsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void NewRobot(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotRequest* request, ::viam::app::v1::NewRobotResponse* response, std::function) override; + void NewRobot(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::NewRobotResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void NewRobot(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotRequest* request, ::viam::app::v1::NewRobotResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void NewRobot(::grpc::ClientContext* context, const ::viam::app::v1::NewRobotRequest* request, ::viam::app::v1::NewRobotResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void NewRobot(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::NewRobotResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void NewRobot(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::NewRobotResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void UpdateRobot(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotRequest* request, ::viam::app::v1::UpdateRobotResponse* response, std::function) override; + void UpdateRobot(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateRobotResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void UpdateRobot(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotRequest* request, ::viam::app::v1::UpdateRobotResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void UpdateRobot(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRobotRequest* request, ::viam::app::v1::UpdateRobotResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void UpdateRobot(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateRobotResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void UpdateRobot(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateRobotResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void DeleteRobot(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotRequest* request, ::viam::app::v1::DeleteRobotResponse* response, std::function) override; + void DeleteRobot(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteRobotResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void DeleteRobot(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotRequest* request, ::viam::app::v1::DeleteRobotResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DeleteRobot(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRobotRequest* request, ::viam::app::v1::DeleteRobotResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void DeleteRobot(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteRobotResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DeleteRobot(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteRobotResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void ListFragments(::grpc::ClientContext* context, const ::viam::app::v1::ListFragmentsRequest* request, ::viam::app::v1::ListFragmentsResponse* response, std::function) override; + void ListFragments(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListFragmentsResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void ListFragments(::grpc::ClientContext* context, const ::viam::app::v1::ListFragmentsRequest* request, ::viam::app::v1::ListFragmentsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ListFragments(::grpc::ClientContext* context, const ::viam::app::v1::ListFragmentsRequest* request, ::viam::app::v1::ListFragmentsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void ListFragments(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListFragmentsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ListFragments(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListFragmentsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetFragment(::grpc::ClientContext* context, const ::viam::app::v1::GetFragmentRequest* request, ::viam::app::v1::GetFragmentResponse* response, std::function) override; + void GetFragment(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetFragmentResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetFragment(::grpc::ClientContext* context, const ::viam::app::v1::GetFragmentRequest* request, ::viam::app::v1::GetFragmentResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetFragment(::grpc::ClientContext* context, const ::viam::app::v1::GetFragmentRequest* request, ::viam::app::v1::GetFragmentResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetFragment(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetFragmentResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetFragment(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetFragmentResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void CreateFragment(::grpc::ClientContext* context, const ::viam::app::v1::CreateFragmentRequest* request, ::viam::app::v1::CreateFragmentResponse* response, std::function) override; + void CreateFragment(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateFragmentResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void CreateFragment(::grpc::ClientContext* context, const ::viam::app::v1::CreateFragmentRequest* request, ::viam::app::v1::CreateFragmentResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void CreateFragment(::grpc::ClientContext* context, const ::viam::app::v1::CreateFragmentRequest* request, ::viam::app::v1::CreateFragmentResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void CreateFragment(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateFragmentResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void CreateFragment(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateFragmentResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void UpdateFragment(::grpc::ClientContext* context, const ::viam::app::v1::UpdateFragmentRequest* request, ::viam::app::v1::UpdateFragmentResponse* response, std::function) override; + void UpdateFragment(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateFragmentResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void UpdateFragment(::grpc::ClientContext* context, const ::viam::app::v1::UpdateFragmentRequest* request, ::viam::app::v1::UpdateFragmentResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void UpdateFragment(::grpc::ClientContext* context, const ::viam::app::v1::UpdateFragmentRequest* request, ::viam::app::v1::UpdateFragmentResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void UpdateFragment(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateFragmentResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void UpdateFragment(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateFragmentResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void DeleteFragment(::grpc::ClientContext* context, const ::viam::app::v1::DeleteFragmentRequest* request, ::viam::app::v1::DeleteFragmentResponse* response, std::function) override; + void DeleteFragment(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteFragmentResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void DeleteFragment(::grpc::ClientContext* context, const ::viam::app::v1::DeleteFragmentRequest* request, ::viam::app::v1::DeleteFragmentResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DeleteFragment(::grpc::ClientContext* context, const ::viam::app::v1::DeleteFragmentRequest* request, ::viam::app::v1::DeleteFragmentResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void DeleteFragment(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteFragmentResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DeleteFragment(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteFragmentResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void ListMachineFragments(::grpc::ClientContext* context, const ::viam::app::v1::ListMachineFragmentsRequest* request, ::viam::app::v1::ListMachineFragmentsResponse* response, std::function) override; + void ListMachineFragments(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListMachineFragmentsResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void ListMachineFragments(::grpc::ClientContext* context, const ::viam::app::v1::ListMachineFragmentsRequest* request, ::viam::app::v1::ListMachineFragmentsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ListMachineFragments(::grpc::ClientContext* context, const ::viam::app::v1::ListMachineFragmentsRequest* request, ::viam::app::v1::ListMachineFragmentsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void ListMachineFragments(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListMachineFragmentsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ListMachineFragments(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListMachineFragmentsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetFragmentHistory(::grpc::ClientContext* context, const ::viam::app::v1::GetFragmentHistoryRequest* request, ::viam::app::v1::GetFragmentHistoryResponse* response, std::function) override; + void GetFragmentHistory(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetFragmentHistoryResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetFragmentHistory(::grpc::ClientContext* context, const ::viam::app::v1::GetFragmentHistoryRequest* request, ::viam::app::v1::GetFragmentHistoryResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetFragmentHistory(::grpc::ClientContext* context, const ::viam::app::v1::GetFragmentHistoryRequest* request, ::viam::app::v1::GetFragmentHistoryResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetFragmentHistory(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetFragmentHistoryResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetFragmentHistory(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetFragmentHistoryResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void AddRole(::grpc::ClientContext* context, const ::viam::app::v1::AddRoleRequest* request, ::viam::app::v1::AddRoleResponse* response, std::function) override; + void AddRole(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::AddRoleResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void AddRole(::grpc::ClientContext* context, const ::viam::app::v1::AddRoleRequest* request, ::viam::app::v1::AddRoleResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void AddRole(::grpc::ClientContext* context, const ::viam::app::v1::AddRoleRequest* request, ::viam::app::v1::AddRoleResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void AddRole(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::AddRoleResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void AddRole(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::AddRoleResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void RemoveRole(::grpc::ClientContext* context, const ::viam::app::v1::RemoveRoleRequest* request, ::viam::app::v1::RemoveRoleResponse* response, std::function) override; + void RemoveRole(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::RemoveRoleResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void RemoveRole(::grpc::ClientContext* context, const ::viam::app::v1::RemoveRoleRequest* request, ::viam::app::v1::RemoveRoleResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void RemoveRole(::grpc::ClientContext* context, const ::viam::app::v1::RemoveRoleRequest* request, ::viam::app::v1::RemoveRoleResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void RemoveRole(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::RemoveRoleResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void RemoveRole(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::RemoveRoleResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void ChangeRole(::grpc::ClientContext* context, const ::viam::app::v1::ChangeRoleRequest* request, ::viam::app::v1::ChangeRoleResponse* response, std::function) override; + void ChangeRole(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ChangeRoleResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void ChangeRole(::grpc::ClientContext* context, const ::viam::app::v1::ChangeRoleRequest* request, ::viam::app::v1::ChangeRoleResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ChangeRole(::grpc::ClientContext* context, const ::viam::app::v1::ChangeRoleRequest* request, ::viam::app::v1::ChangeRoleResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void ChangeRole(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ChangeRoleResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ChangeRole(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ChangeRoleResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void ListAuthorizations(::grpc::ClientContext* context, const ::viam::app::v1::ListAuthorizationsRequest* request, ::viam::app::v1::ListAuthorizationsResponse* response, std::function) override; + void ListAuthorizations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListAuthorizationsResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void ListAuthorizations(::grpc::ClientContext* context, const ::viam::app::v1::ListAuthorizationsRequest* request, ::viam::app::v1::ListAuthorizationsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ListAuthorizations(::grpc::ClientContext* context, const ::viam::app::v1::ListAuthorizationsRequest* request, ::viam::app::v1::ListAuthorizationsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void ListAuthorizations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListAuthorizationsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ListAuthorizations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListAuthorizationsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void CheckPermissions(::grpc::ClientContext* context, const ::viam::app::v1::CheckPermissionsRequest* request, ::viam::app::v1::CheckPermissionsResponse* response, std::function) override; + void CheckPermissions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CheckPermissionsResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void CheckPermissions(::grpc::ClientContext* context, const ::viam::app::v1::CheckPermissionsRequest* request, ::viam::app::v1::CheckPermissionsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void CheckPermissions(::grpc::ClientContext* context, const ::viam::app::v1::CheckPermissionsRequest* request, ::viam::app::v1::CheckPermissionsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void CheckPermissions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CheckPermissionsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void CheckPermissions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CheckPermissionsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetRegistryItem(::grpc::ClientContext* context, const ::viam::app::v1::GetRegistryItemRequest* request, ::viam::app::v1::GetRegistryItemResponse* response, std::function) override; + void GetRegistryItem(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRegistryItemResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetRegistryItem(::grpc::ClientContext* context, const ::viam::app::v1::GetRegistryItemRequest* request, ::viam::app::v1::GetRegistryItemResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetRegistryItem(::grpc::ClientContext* context, const ::viam::app::v1::GetRegistryItemRequest* request, ::viam::app::v1::GetRegistryItemResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetRegistryItem(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRegistryItemResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetRegistryItem(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetRegistryItemResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void CreateRegistryItem(::grpc::ClientContext* context, const ::viam::app::v1::CreateRegistryItemRequest* request, ::viam::app::v1::CreateRegistryItemResponse* response, std::function) override; + void CreateRegistryItem(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateRegistryItemResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void CreateRegistryItem(::grpc::ClientContext* context, const ::viam::app::v1::CreateRegistryItemRequest* request, ::viam::app::v1::CreateRegistryItemResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void CreateRegistryItem(::grpc::ClientContext* context, const ::viam::app::v1::CreateRegistryItemRequest* request, ::viam::app::v1::CreateRegistryItemResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void CreateRegistryItem(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateRegistryItemResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void CreateRegistryItem(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateRegistryItemResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void UpdateRegistryItem(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRegistryItemRequest* request, ::viam::app::v1::UpdateRegistryItemResponse* response, std::function) override; + void UpdateRegistryItem(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateRegistryItemResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void UpdateRegistryItem(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRegistryItemRequest* request, ::viam::app::v1::UpdateRegistryItemResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void UpdateRegistryItem(::grpc::ClientContext* context, const ::viam::app::v1::UpdateRegistryItemRequest* request, ::viam::app::v1::UpdateRegistryItemResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void UpdateRegistryItem(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateRegistryItemResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void UpdateRegistryItem(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateRegistryItemResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void ListRegistryItems(::grpc::ClientContext* context, const ::viam::app::v1::ListRegistryItemsRequest* request, ::viam::app::v1::ListRegistryItemsResponse* response, std::function) override; + void ListRegistryItems(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListRegistryItemsResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void ListRegistryItems(::grpc::ClientContext* context, const ::viam::app::v1::ListRegistryItemsRequest* request, ::viam::app::v1::ListRegistryItemsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ListRegistryItems(::grpc::ClientContext* context, const ::viam::app::v1::ListRegistryItemsRequest* request, ::viam::app::v1::ListRegistryItemsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void ListRegistryItems(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListRegistryItemsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ListRegistryItems(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListRegistryItemsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void DeleteRegistryItem(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRegistryItemRequest* request, ::viam::app::v1::DeleteRegistryItemResponse* response, std::function) override; + void DeleteRegistryItem(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteRegistryItemResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void DeleteRegistryItem(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRegistryItemRequest* request, ::viam::app::v1::DeleteRegistryItemResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DeleteRegistryItem(::grpc::ClientContext* context, const ::viam::app::v1::DeleteRegistryItemRequest* request, ::viam::app::v1::DeleteRegistryItemResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void DeleteRegistryItem(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteRegistryItemResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DeleteRegistryItem(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteRegistryItemResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void TransferRegistryItem(::grpc::ClientContext* context, const ::viam::app::v1::TransferRegistryItemRequest* request, ::viam::app::v1::TransferRegistryItemResponse* response, std::function) override; + void TransferRegistryItem(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::TransferRegistryItemResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void TransferRegistryItem(::grpc::ClientContext* context, const ::viam::app::v1::TransferRegistryItemRequest* request, ::viam::app::v1::TransferRegistryItemResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void TransferRegistryItem(::grpc::ClientContext* context, const ::viam::app::v1::TransferRegistryItemRequest* request, ::viam::app::v1::TransferRegistryItemResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void TransferRegistryItem(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::TransferRegistryItemResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void TransferRegistryItem(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::TransferRegistryItemResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void CreateModule(::grpc::ClientContext* context, const ::viam::app::v1::CreateModuleRequest* request, ::viam::app::v1::CreateModuleResponse* response, std::function) override; + void CreateModule(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateModuleResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void CreateModule(::grpc::ClientContext* context, const ::viam::app::v1::CreateModuleRequest* request, ::viam::app::v1::CreateModuleResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void CreateModule(::grpc::ClientContext* context, const ::viam::app::v1::CreateModuleRequest* request, ::viam::app::v1::CreateModuleResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void CreateModule(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateModuleResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void CreateModule(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateModuleResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void UpdateModule(::grpc::ClientContext* context, const ::viam::app::v1::UpdateModuleRequest* request, ::viam::app::v1::UpdateModuleResponse* response, std::function) override; + void UpdateModule(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateModuleResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void UpdateModule(::grpc::ClientContext* context, const ::viam::app::v1::UpdateModuleRequest* request, ::viam::app::v1::UpdateModuleResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void UpdateModule(::grpc::ClientContext* context, const ::viam::app::v1::UpdateModuleRequest* request, ::viam::app::v1::UpdateModuleResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void UpdateModule(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateModuleResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void UpdateModule(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateModuleResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void UploadModuleFile(::grpc::ClientContext* context, ::viam::app::v1::UploadModuleFileResponse* response, ::grpc::ClientWriteReactor< ::viam::app::v1::UploadModuleFileRequest>* reactor) override; + #else + void UploadModuleFile(::grpc::ClientContext* context, ::viam::app::v1::UploadModuleFileResponse* response, ::grpc::experimental::ClientWriteReactor< ::viam::app::v1::UploadModuleFileRequest>* reactor) override; + #endif void GetModule(::grpc::ClientContext* context, const ::viam::app::v1::GetModuleRequest* request, ::viam::app::v1::GetModuleResponse* response, std::function) override; + void GetModule(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetModuleResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetModule(::grpc::ClientContext* context, const ::viam::app::v1::GetModuleRequest* request, ::viam::app::v1::GetModuleResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetModule(::grpc::ClientContext* context, const ::viam::app::v1::GetModuleRequest* request, ::viam::app::v1::GetModuleResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetModule(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetModuleResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetModule(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetModuleResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void ListModules(::grpc::ClientContext* context, const ::viam::app::v1::ListModulesRequest* request, ::viam::app::v1::ListModulesResponse* response, std::function) override; + void ListModules(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListModulesResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void ListModules(::grpc::ClientContext* context, const ::viam::app::v1::ListModulesRequest* request, ::viam::app::v1::ListModulesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ListModules(::grpc::ClientContext* context, const ::viam::app::v1::ListModulesRequest* request, ::viam::app::v1::ListModulesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void ListModules(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListModulesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ListModules(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListModulesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void CreateKey(::grpc::ClientContext* context, const ::viam::app::v1::CreateKeyRequest* request, ::viam::app::v1::CreateKeyResponse* response, std::function) override; + void CreateKey(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateKeyResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void CreateKey(::grpc::ClientContext* context, const ::viam::app::v1::CreateKeyRequest* request, ::viam::app::v1::CreateKeyResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void CreateKey(::grpc::ClientContext* context, const ::viam::app::v1::CreateKeyRequest* request, ::viam::app::v1::CreateKeyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void CreateKey(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateKeyResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void CreateKey(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateKeyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void DeleteKey(::grpc::ClientContext* context, const ::viam::app::v1::DeleteKeyRequest* request, ::viam::app::v1::DeleteKeyResponse* response, std::function) override; + void DeleteKey(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteKeyResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void DeleteKey(::grpc::ClientContext* context, const ::viam::app::v1::DeleteKeyRequest* request, ::viam::app::v1::DeleteKeyResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DeleteKey(::grpc::ClientContext* context, const ::viam::app::v1::DeleteKeyRequest* request, ::viam::app::v1::DeleteKeyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void DeleteKey(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteKeyResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DeleteKey(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::DeleteKeyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void ListKeys(::grpc::ClientContext* context, const ::viam::app::v1::ListKeysRequest* request, ::viam::app::v1::ListKeysResponse* response, std::function) override; + void ListKeys(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListKeysResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void ListKeys(::grpc::ClientContext* context, const ::viam::app::v1::ListKeysRequest* request, ::viam::app::v1::ListKeysResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ListKeys(::grpc::ClientContext* context, const ::viam::app::v1::ListKeysRequest* request, ::viam::app::v1::ListKeysResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void ListKeys(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListKeysResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ListKeys(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ListKeysResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void RenameKey(::grpc::ClientContext* context, const ::viam::app::v1::RenameKeyRequest* request, ::viam::app::v1::RenameKeyResponse* response, std::function) override; + void RenameKey(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::RenameKeyResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void RenameKey(::grpc::ClientContext* context, const ::viam::app::v1::RenameKeyRequest* request, ::viam::app::v1::RenameKeyResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void RenameKey(::grpc::ClientContext* context, const ::viam::app::v1::RenameKeyRequest* request, ::viam::app::v1::RenameKeyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void RenameKey(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::RenameKeyResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void RenameKey(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::RenameKeyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void RotateKey(::grpc::ClientContext* context, const ::viam::app::v1::RotateKeyRequest* request, ::viam::app::v1::RotateKeyResponse* response, std::function) override; + void RotateKey(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::RotateKeyResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void RotateKey(::grpc::ClientContext* context, const ::viam::app::v1::RotateKeyRequest* request, ::viam::app::v1::RotateKeyResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void RotateKey(::grpc::ClientContext* context, const ::viam::app::v1::RotateKeyRequest* request, ::viam::app::v1::RotateKeyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void RotateKey(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::RotateKeyResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void RotateKey(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::RotateKeyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void CreateKeyFromExistingKeyAuthorizations(::grpc::ClientContext* context, const ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsRequest* request, ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse* response, std::function) override; + void CreateKeyFromExistingKeyAuthorizations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void CreateKeyFromExistingKeyAuthorizations(::grpc::ClientContext* context, const ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsRequest* request, ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void CreateKeyFromExistingKeyAuthorizations(::grpc::ClientContext* context, const ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsRequest* request, ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void CreateKeyFromExistingKeyAuthorizations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void CreateKeyFromExistingKeyAuthorizations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif private: friend class Stub; - explicit async(Stub* stub): stub_(stub) { } + explicit experimental_async(Stub* stub): stub_(stub) { } Stub* stub() { return stub_; } Stub* stub_; }; - class async* async() override { return &async_stub_; } + class experimental_async_interface* experimental_async() override { return &async_stub_; } private: std::shared_ptr< ::grpc::ChannelInterface> channel_; - class async async_stub_{this}; + class experimental_async async_stub_{this}; ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetUserIDByEmailResponse>* AsyncGetUserIDByEmailRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetUserIDByEmailRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetUserIDByEmailResponse>* PrepareAsyncGetUserIDByEmailRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetUserIDByEmailRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::app::v1::CreateOrganizationResponse>* AsyncCreateOrganizationRaw(::grpc::ClientContext* context, const ::viam::app::v1::CreateOrganizationRequest& request, ::grpc::CompletionQueue* cq) override; @@ -1793,6 +3756,8 @@ class AppService final { ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetOrganizationsWithAccessToLocationResponse>* PrepareAsyncGetOrganizationsWithAccessToLocationRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationsWithAccessToLocationRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListOrganizationsByUserResponse>* AsyncListOrganizationsByUserRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationsByUserRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListOrganizationsByUserResponse>* PrepareAsyncListOrganizationsByUserRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListOrganizationsByUserRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::SearchOrganizationsResponse>* AsyncSearchOrganizationsRaw(::grpc::ClientContext* context, const ::viam::app::v1::SearchOrganizationsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::SearchOrganizationsResponse>* PrepareAsyncSearchOrganizationsRaw(::grpc::ClientContext* context, const ::viam::app::v1::SearchOrganizationsRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetOrganizationResponse>* AsyncGetOrganizationRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetOrganizationResponse>* PrepareAsyncGetOrganizationRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse>* AsyncGetOrganizationNamespaceAvailabilityRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetOrganizationNamespaceAvailabilityRequest& request, ::grpc::CompletionQueue* cq) override; @@ -1825,6 +3790,24 @@ class AppService final { ::grpc::ClientAsyncResponseReader< ::viam::app::v1::OrganizationSetSupportEmailResponse>* PrepareAsyncOrganizationSetSupportEmailRaw(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationSetSupportEmailRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::app::v1::OrganizationGetSupportEmailResponse>* AsyncOrganizationGetSupportEmailRaw(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationGetSupportEmailRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::app::v1::OrganizationGetSupportEmailResponse>* PrepareAsyncOrganizationGetSupportEmailRaw(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationGetSupportEmailRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::OrganizationSetLogoResponse>* AsyncOrganizationSetLogoRaw(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationSetLogoRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::OrganizationSetLogoResponse>* PrepareAsyncOrganizationSetLogoRaw(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationSetLogoRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::OrganizationGetLogoResponse>* AsyncOrganizationGetLogoRaw(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationGetLogoRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::OrganizationGetLogoResponse>* PrepareAsyncOrganizationGetLogoRaw(::grpc::ClientContext* context, const ::viam::app::v1::OrganizationGetLogoRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::EnableAuthServiceResponse>* AsyncEnableAuthServiceRaw(::grpc::ClientContext* context, const ::viam::app::v1::EnableAuthServiceRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::EnableAuthServiceResponse>* PrepareAsyncEnableAuthServiceRaw(::grpc::ClientContext* context, const ::viam::app::v1::EnableAuthServiceRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::DisableAuthServiceResponse>* AsyncDisableAuthServiceRaw(::grpc::ClientContext* context, const ::viam::app::v1::DisableAuthServiceRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::DisableAuthServiceResponse>* PrepareAsyncDisableAuthServiceRaw(::grpc::ClientContext* context, const ::viam::app::v1::DisableAuthServiceRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::CreateOAuthAppResponse>* AsyncCreateOAuthAppRaw(::grpc::ClientContext* context, const ::viam::app::v1::CreateOAuthAppRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::CreateOAuthAppResponse>* PrepareAsyncCreateOAuthAppRaw(::grpc::ClientContext* context, const ::viam::app::v1::CreateOAuthAppRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::ReadOAuthAppResponse>* AsyncReadOAuthAppRaw(::grpc::ClientContext* context, const ::viam::app::v1::ReadOAuthAppRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::ReadOAuthAppResponse>* PrepareAsyncReadOAuthAppRaw(::grpc::ClientContext* context, const ::viam::app::v1::ReadOAuthAppRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateOAuthAppResponse>* AsyncUpdateOAuthAppRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateOAuthAppRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateOAuthAppResponse>* PrepareAsyncUpdateOAuthAppRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateOAuthAppRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteOAuthAppResponse>* AsyncDeleteOAuthAppRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOAuthAppRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::DeleteOAuthAppResponse>* PrepareAsyncDeleteOAuthAppRaw(::grpc::ClientContext* context, const ::viam::app::v1::DeleteOAuthAppRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListOAuthAppsResponse>* AsyncListOAuthAppsRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListOAuthAppsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::ListOAuthAppsResponse>* PrepareAsyncListOAuthAppsRaw(::grpc::ClientContext* context, const ::viam::app::v1::ListOAuthAppsRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::app::v1::CreateLocationResponse>* AsyncCreateLocationRaw(::grpc::ClientContext* context, const ::viam::app::v1::CreateLocationRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::app::v1::CreateLocationResponse>* PrepareAsyncCreateLocationRaw(::grpc::ClientContext* context, const ::viam::app::v1::CreateLocationRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetLocationResponse>* AsyncGetLocationRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetLocationRequest& request, ::grpc::CompletionQueue* cq) override; @@ -1948,6 +3931,7 @@ class AppService final { const ::grpc::internal::RpcMethod rpcmethod_ListOrganizations_; const ::grpc::internal::RpcMethod rpcmethod_GetOrganizationsWithAccessToLocation_; const ::grpc::internal::RpcMethod rpcmethod_ListOrganizationsByUser_; + const ::grpc::internal::RpcMethod rpcmethod_SearchOrganizations_; const ::grpc::internal::RpcMethod rpcmethod_GetOrganization_; const ::grpc::internal::RpcMethod rpcmethod_GetOrganizationNamespaceAvailability_; const ::grpc::internal::RpcMethod rpcmethod_UpdateOrganization_; @@ -1964,6 +3948,15 @@ class AppService final { const ::grpc::internal::RpcMethod rpcmethod_GetBillingServiceConfig_; const ::grpc::internal::RpcMethod rpcmethod_OrganizationSetSupportEmail_; const ::grpc::internal::RpcMethod rpcmethod_OrganizationGetSupportEmail_; + const ::grpc::internal::RpcMethod rpcmethod_OrganizationSetLogo_; + const ::grpc::internal::RpcMethod rpcmethod_OrganizationGetLogo_; + const ::grpc::internal::RpcMethod rpcmethod_EnableAuthService_; + const ::grpc::internal::RpcMethod rpcmethod_DisableAuthService_; + const ::grpc::internal::RpcMethod rpcmethod_CreateOAuthApp_; + const ::grpc::internal::RpcMethod rpcmethod_ReadOAuthApp_; + const ::grpc::internal::RpcMethod rpcmethod_UpdateOAuthApp_; + const ::grpc::internal::RpcMethod rpcmethod_DeleteOAuthApp_; + const ::grpc::internal::RpcMethod rpcmethod_ListOAuthApps_; const ::grpc::internal::RpcMethod rpcmethod_CreateLocation_; const ::grpc::internal::RpcMethod rpcmethod_GetLocation_; const ::grpc::internal::RpcMethod rpcmethod_UpdateLocation_; @@ -2041,6 +4034,8 @@ class AppService final { virtual ::grpc::Status GetOrganizationsWithAccessToLocation(::grpc::ServerContext* context, const ::viam::app::v1::GetOrganizationsWithAccessToLocationRequest* request, ::viam::app::v1::GetOrganizationsWithAccessToLocationResponse* response); // List the organizations a user belongs to virtual ::grpc::Status ListOrganizationsByUser(::grpc::ServerContext* context, const ::viam::app::v1::ListOrganizationsByUserRequest* request, ::viam::app::v1::ListOrganizationsByUserResponse* response); + // Search organizations by a couple fields + virtual ::grpc::Status SearchOrganizations(::grpc::ServerContext* context, const ::viam::app::v1::SearchOrganizationsRequest* request, ::viam::app::v1::SearchOrganizationsResponse* response); // Get an organization virtual ::grpc::Status GetOrganization(::grpc::ServerContext* context, const ::viam::app::v1::GetOrganizationRequest* request, ::viam::app::v1::GetOrganizationResponse* response); // Checks for namespace availablity throughout all orgs. @@ -2069,6 +4064,15 @@ class AppService final { virtual ::grpc::Status GetBillingServiceConfig(::grpc::ServerContext* context, const ::viam::app::v1::GetBillingServiceConfigRequest* request, ::viam::app::v1::GetBillingServiceConfigResponse* response); virtual ::grpc::Status OrganizationSetSupportEmail(::grpc::ServerContext* context, const ::viam::app::v1::OrganizationSetSupportEmailRequest* request, ::viam::app::v1::OrganizationSetSupportEmailResponse* response); virtual ::grpc::Status OrganizationGetSupportEmail(::grpc::ServerContext* context, const ::viam::app::v1::OrganizationGetSupportEmailRequest* request, ::viam::app::v1::OrganizationGetSupportEmailResponse* response); + virtual ::grpc::Status OrganizationSetLogo(::grpc::ServerContext* context, const ::viam::app::v1::OrganizationSetLogoRequest* request, ::viam::app::v1::OrganizationSetLogoResponse* response); + virtual ::grpc::Status OrganizationGetLogo(::grpc::ServerContext* context, const ::viam::app::v1::OrganizationGetLogoRequest* request, ::viam::app::v1::OrganizationGetLogoResponse* response); + virtual ::grpc::Status EnableAuthService(::grpc::ServerContext* context, const ::viam::app::v1::EnableAuthServiceRequest* request, ::viam::app::v1::EnableAuthServiceResponse* response); + virtual ::grpc::Status DisableAuthService(::grpc::ServerContext* context, const ::viam::app::v1::DisableAuthServiceRequest* request, ::viam::app::v1::DisableAuthServiceResponse* response); + virtual ::grpc::Status CreateOAuthApp(::grpc::ServerContext* context, const ::viam::app::v1::CreateOAuthAppRequest* request, ::viam::app::v1::CreateOAuthAppResponse* response); + virtual ::grpc::Status ReadOAuthApp(::grpc::ServerContext* context, const ::viam::app::v1::ReadOAuthAppRequest* request, ::viam::app::v1::ReadOAuthAppResponse* response); + virtual ::grpc::Status UpdateOAuthApp(::grpc::ServerContext* context, const ::viam::app::v1::UpdateOAuthAppRequest* request, ::viam::app::v1::UpdateOAuthAppResponse* response); + virtual ::grpc::Status DeleteOAuthApp(::grpc::ServerContext* context, const ::viam::app::v1::DeleteOAuthAppRequest* request, ::viam::app::v1::DeleteOAuthAppResponse* response); + virtual ::grpc::Status ListOAuthApps(::grpc::ServerContext* context, const ::viam::app::v1::ListOAuthAppsRequest* request, ::viam::app::v1::ListOAuthAppsResponse* response); // Location // // Create a location @@ -2277,12 +4281,32 @@ class AppService final { } }; template + class WithAsyncMethod_SearchOrganizations : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_SearchOrganizations() { + ::grpc::Service::MarkMethodAsync(5); + } + ~WithAsyncMethod_SearchOrganizations() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SearchOrganizations(::grpc::ServerContext* /*context*/, const ::viam::app::v1::SearchOrganizationsRequest* /*request*/, ::viam::app::v1::SearchOrganizationsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestSearchOrganizations(::grpc::ServerContext* context, ::viam::app::v1::SearchOrganizationsRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::SearchOrganizationsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template class WithAsyncMethod_GetOrganization : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_GetOrganization() { - ::grpc::Service::MarkMethodAsync(5); + ::grpc::Service::MarkMethodAsync(6); } ~WithAsyncMethod_GetOrganization() override { BaseClassMustBeDerivedFromService(this); @@ -2293,7 +4317,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestGetOrganization(::grpc::ServerContext* context, ::viam::app::v1::GetOrganizationRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::GetOrganizationResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -2302,7 +4326,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_GetOrganizationNamespaceAvailability() { - ::grpc::Service::MarkMethodAsync(6); + ::grpc::Service::MarkMethodAsync(7); } ~WithAsyncMethod_GetOrganizationNamespaceAvailability() override { BaseClassMustBeDerivedFromService(this); @@ -2313,7 +4337,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestGetOrganizationNamespaceAvailability(::grpc::ServerContext* context, ::viam::app::v1::GetOrganizationNamespaceAvailabilityRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -2322,7 +4346,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_UpdateOrganization() { - ::grpc::Service::MarkMethodAsync(7); + ::grpc::Service::MarkMethodAsync(8); } ~WithAsyncMethod_UpdateOrganization() override { BaseClassMustBeDerivedFromService(this); @@ -2333,7 +4357,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestUpdateOrganization(::grpc::ServerContext* context, ::viam::app::v1::UpdateOrganizationRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::UpdateOrganizationResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -2342,7 +4366,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_DeleteOrganization() { - ::grpc::Service::MarkMethodAsync(8); + ::grpc::Service::MarkMethodAsync(9); } ~WithAsyncMethod_DeleteOrganization() override { BaseClassMustBeDerivedFromService(this); @@ -2353,7 +4377,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestDeleteOrganization(::grpc::ServerContext* context, ::viam::app::v1::DeleteOrganizationRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::DeleteOrganizationResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -2362,7 +4386,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_ListOrganizationMembers() { - ::grpc::Service::MarkMethodAsync(9); + ::grpc::Service::MarkMethodAsync(10); } ~WithAsyncMethod_ListOrganizationMembers() override { BaseClassMustBeDerivedFromService(this); @@ -2373,7 +4397,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestListOrganizationMembers(::grpc::ServerContext* context, ::viam::app::v1::ListOrganizationMembersRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::ListOrganizationMembersResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(10, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -2382,7 +4406,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_CreateOrganizationInvite() { - ::grpc::Service::MarkMethodAsync(10); + ::grpc::Service::MarkMethodAsync(11); } ~WithAsyncMethod_CreateOrganizationInvite() override { BaseClassMustBeDerivedFromService(this); @@ -2393,7 +4417,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestCreateOrganizationInvite(::grpc::ServerContext* context, ::viam::app::v1::CreateOrganizationInviteRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::CreateOrganizationInviteResponse>* 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); + ::grpc::Service::RequestAsyncUnary(11, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -2402,7 +4426,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_UpdateOrganizationInviteAuthorizations() { - ::grpc::Service::MarkMethodAsync(11); + ::grpc::Service::MarkMethodAsync(12); } ~WithAsyncMethod_UpdateOrganizationInviteAuthorizations() override { BaseClassMustBeDerivedFromService(this); @@ -2413,7 +4437,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestUpdateOrganizationInviteAuthorizations(::grpc::ServerContext* context, ::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(11, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(12, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -2422,7 +4446,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_DeleteOrganizationMember() { - ::grpc::Service::MarkMethodAsync(12); + ::grpc::Service::MarkMethodAsync(13); } ~WithAsyncMethod_DeleteOrganizationMember() override { BaseClassMustBeDerivedFromService(this); @@ -2433,7 +4457,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestDeleteOrganizationMember(::grpc::ServerContext* context, ::viam::app::v1::DeleteOrganizationMemberRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::DeleteOrganizationMemberResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(12, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(13, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -2442,7 +4466,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_DeleteOrganizationInvite() { - ::grpc::Service::MarkMethodAsync(13); + ::grpc::Service::MarkMethodAsync(14); } ~WithAsyncMethod_DeleteOrganizationInvite() override { BaseClassMustBeDerivedFromService(this); @@ -2453,7 +4477,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestDeleteOrganizationInvite(::grpc::ServerContext* context, ::viam::app::v1::DeleteOrganizationInviteRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::DeleteOrganizationInviteResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(13, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(14, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -2462,7 +4486,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_ResendOrganizationInvite() { - ::grpc::Service::MarkMethodAsync(14); + ::grpc::Service::MarkMethodAsync(15); } ~WithAsyncMethod_ResendOrganizationInvite() override { BaseClassMustBeDerivedFromService(this); @@ -2473,7 +4497,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestResendOrganizationInvite(::grpc::ServerContext* context, ::viam::app::v1::ResendOrganizationInviteRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::ResendOrganizationInviteResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(14, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(15, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -2482,7 +4506,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_EnableBillingService() { - ::grpc::Service::MarkMethodAsync(15); + ::grpc::Service::MarkMethodAsync(16); } ~WithAsyncMethod_EnableBillingService() override { BaseClassMustBeDerivedFromService(this); @@ -2493,7 +4517,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestEnableBillingService(::grpc::ServerContext* context, ::viam::app::v1::EnableBillingServiceRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::EnableBillingServiceResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(15, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(16, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -2502,7 +4526,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_DisableBillingService() { - ::grpc::Service::MarkMethodAsync(16); + ::grpc::Service::MarkMethodAsync(17); } ~WithAsyncMethod_DisableBillingService() override { BaseClassMustBeDerivedFromService(this); @@ -2513,7 +4537,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestDisableBillingService(::grpc::ServerContext* context, ::viam::app::v1::DisableBillingServiceRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::DisableBillingServiceResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(16, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(17, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -2522,7 +4546,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_UpdateBillingService() { - ::grpc::Service::MarkMethodAsync(17); + ::grpc::Service::MarkMethodAsync(18); } ~WithAsyncMethod_UpdateBillingService() override { BaseClassMustBeDerivedFromService(this); @@ -2533,7 +4557,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestUpdateBillingService(::grpc::ServerContext* context, ::viam::app::v1::UpdateBillingServiceRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::UpdateBillingServiceResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(17, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(18, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -2542,7 +4566,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_GetBillingServiceConfig() { - ::grpc::Service::MarkMethodAsync(18); + ::grpc::Service::MarkMethodAsync(19); } ~WithAsyncMethod_GetBillingServiceConfig() override { BaseClassMustBeDerivedFromService(this); @@ -2553,7 +4577,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestGetBillingServiceConfig(::grpc::ServerContext* context, ::viam::app::v1::GetBillingServiceConfigRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::GetBillingServiceConfigResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(18, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(19, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -2562,7 +4586,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_OrganizationSetSupportEmail() { - ::grpc::Service::MarkMethodAsync(19); + ::grpc::Service::MarkMethodAsync(20); } ~WithAsyncMethod_OrganizationSetSupportEmail() override { BaseClassMustBeDerivedFromService(this); @@ -2573,7 +4597,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestOrganizationSetSupportEmail(::grpc::ServerContext* context, ::viam::app::v1::OrganizationSetSupportEmailRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::OrganizationSetSupportEmailResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(19, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(20, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -2582,7 +4606,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_OrganizationGetSupportEmail() { - ::grpc::Service::MarkMethodAsync(20); + ::grpc::Service::MarkMethodAsync(21); } ~WithAsyncMethod_OrganizationGetSupportEmail() override { BaseClassMustBeDerivedFromService(this); @@ -2593,357 +4617,537 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestOrganizationGetSupportEmail(::grpc::ServerContext* context, ::viam::app::v1::OrganizationGetSupportEmailRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::OrganizationGetSupportEmailResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(20, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_CreateLocation : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_CreateLocation() { - ::grpc::Service::MarkMethodAsync(21); - } - ~WithAsyncMethod_CreateLocation() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateLocation(::grpc::ServerContext* /*context*/, const ::viam::app::v1::CreateLocationRequest* /*request*/, ::viam::app::v1::CreateLocationResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestCreateLocation(::grpc::ServerContext* context, ::viam::app::v1::CreateLocationRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::CreateLocationResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(21, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithAsyncMethod_GetLocation : public BaseClass { + class WithAsyncMethod_OrganizationSetLogo : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithAsyncMethod_GetLocation() { + WithAsyncMethod_OrganizationSetLogo() { ::grpc::Service::MarkMethodAsync(22); } - ~WithAsyncMethod_GetLocation() override { + ~WithAsyncMethod_OrganizationSetLogo() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetLocation(::grpc::ServerContext* /*context*/, const ::viam::app::v1::GetLocationRequest* /*request*/, ::viam::app::v1::GetLocationResponse* /*response*/) override { + ::grpc::Status OrganizationSetLogo(::grpc::ServerContext* /*context*/, const ::viam::app::v1::OrganizationSetLogoRequest* /*request*/, ::viam::app::v1::OrganizationSetLogoResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestGetLocation(::grpc::ServerContext* context, ::viam::app::v1::GetLocationRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::GetLocationResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestOrganizationSetLogo(::grpc::ServerContext* context, ::viam::app::v1::OrganizationSetLogoRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::OrganizationSetLogoResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(22, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithAsyncMethod_UpdateLocation : public BaseClass { + class WithAsyncMethod_OrganizationGetLogo : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithAsyncMethod_UpdateLocation() { + WithAsyncMethod_OrganizationGetLogo() { ::grpc::Service::MarkMethodAsync(23); } - ~WithAsyncMethod_UpdateLocation() override { + ~WithAsyncMethod_OrganizationGetLogo() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status UpdateLocation(::grpc::ServerContext* /*context*/, const ::viam::app::v1::UpdateLocationRequest* /*request*/, ::viam::app::v1::UpdateLocationResponse* /*response*/) override { + ::grpc::Status OrganizationGetLogo(::grpc::ServerContext* /*context*/, const ::viam::app::v1::OrganizationGetLogoRequest* /*request*/, ::viam::app::v1::OrganizationGetLogoResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestUpdateLocation(::grpc::ServerContext* context, ::viam::app::v1::UpdateLocationRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::UpdateLocationResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestOrganizationGetLogo(::grpc::ServerContext* context, ::viam::app::v1::OrganizationGetLogoRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::OrganizationGetLogoResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(23, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithAsyncMethod_DeleteLocation : public BaseClass { + class WithAsyncMethod_EnableAuthService : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithAsyncMethod_DeleteLocation() { + WithAsyncMethod_EnableAuthService() { ::grpc::Service::MarkMethodAsync(24); } - ~WithAsyncMethod_DeleteLocation() override { + ~WithAsyncMethod_EnableAuthService() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status DeleteLocation(::grpc::ServerContext* /*context*/, const ::viam::app::v1::DeleteLocationRequest* /*request*/, ::viam::app::v1::DeleteLocationResponse* /*response*/) override { + ::grpc::Status EnableAuthService(::grpc::ServerContext* /*context*/, const ::viam::app::v1::EnableAuthServiceRequest* /*request*/, ::viam::app::v1::EnableAuthServiceResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestDeleteLocation(::grpc::ServerContext* context, ::viam::app::v1::DeleteLocationRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::DeleteLocationResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestEnableAuthService(::grpc::ServerContext* context, ::viam::app::v1::EnableAuthServiceRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::EnableAuthServiceResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(24, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithAsyncMethod_ListLocations : public BaseClass { + class WithAsyncMethod_DisableAuthService : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithAsyncMethod_ListLocations() { + WithAsyncMethod_DisableAuthService() { ::grpc::Service::MarkMethodAsync(25); } - ~WithAsyncMethod_ListLocations() override { + ~WithAsyncMethod_DisableAuthService() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status ListLocations(::grpc::ServerContext* /*context*/, const ::viam::app::v1::ListLocationsRequest* /*request*/, ::viam::app::v1::ListLocationsResponse* /*response*/) override { + ::grpc::Status DisableAuthService(::grpc::ServerContext* /*context*/, const ::viam::app::v1::DisableAuthServiceRequest* /*request*/, ::viam::app::v1::DisableAuthServiceResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestListLocations(::grpc::ServerContext* context, ::viam::app::v1::ListLocationsRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::ListLocationsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestDisableAuthService(::grpc::ServerContext* context, ::viam::app::v1::DisableAuthServiceRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::DisableAuthServiceResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(25, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithAsyncMethod_ShareLocation : public BaseClass { + class WithAsyncMethod_CreateOAuthApp : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithAsyncMethod_ShareLocation() { + WithAsyncMethod_CreateOAuthApp() { ::grpc::Service::MarkMethodAsync(26); } - ~WithAsyncMethod_ShareLocation() override { + ~WithAsyncMethod_CreateOAuthApp() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status ShareLocation(::grpc::ServerContext* /*context*/, const ::viam::app::v1::ShareLocationRequest* /*request*/, ::viam::app::v1::ShareLocationResponse* /*response*/) override { + ::grpc::Status CreateOAuthApp(::grpc::ServerContext* /*context*/, const ::viam::app::v1::CreateOAuthAppRequest* /*request*/, ::viam::app::v1::CreateOAuthAppResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestShareLocation(::grpc::ServerContext* context, ::viam::app::v1::ShareLocationRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::ShareLocationResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestCreateOAuthApp(::grpc::ServerContext* context, ::viam::app::v1::CreateOAuthAppRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::CreateOAuthAppResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(26, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithAsyncMethod_UnshareLocation : public BaseClass { + class WithAsyncMethod_ReadOAuthApp : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithAsyncMethod_UnshareLocation() { + WithAsyncMethod_ReadOAuthApp() { ::grpc::Service::MarkMethodAsync(27); } - ~WithAsyncMethod_UnshareLocation() override { + ~WithAsyncMethod_ReadOAuthApp() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status UnshareLocation(::grpc::ServerContext* /*context*/, const ::viam::app::v1::UnshareLocationRequest* /*request*/, ::viam::app::v1::UnshareLocationResponse* /*response*/) override { + ::grpc::Status ReadOAuthApp(::grpc::ServerContext* /*context*/, const ::viam::app::v1::ReadOAuthAppRequest* /*request*/, ::viam::app::v1::ReadOAuthAppResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestUnshareLocation(::grpc::ServerContext* context, ::viam::app::v1::UnshareLocationRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::UnshareLocationResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestReadOAuthApp(::grpc::ServerContext* context, ::viam::app::v1::ReadOAuthAppRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::ReadOAuthAppResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(27, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithAsyncMethod_LocationAuth : public BaseClass { + class WithAsyncMethod_UpdateOAuthApp : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithAsyncMethod_LocationAuth() { + WithAsyncMethod_UpdateOAuthApp() { ::grpc::Service::MarkMethodAsync(28); } - ~WithAsyncMethod_LocationAuth() override { + ~WithAsyncMethod_UpdateOAuthApp() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status LocationAuth(::grpc::ServerContext* /*context*/, const ::viam::app::v1::LocationAuthRequest* /*request*/, ::viam::app::v1::LocationAuthResponse* /*response*/) override { + ::grpc::Status UpdateOAuthApp(::grpc::ServerContext* /*context*/, const ::viam::app::v1::UpdateOAuthAppRequest* /*request*/, ::viam::app::v1::UpdateOAuthAppResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestLocationAuth(::grpc::ServerContext* context, ::viam::app::v1::LocationAuthRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::LocationAuthResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestUpdateOAuthApp(::grpc::ServerContext* context, ::viam::app::v1::UpdateOAuthAppRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::UpdateOAuthAppResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(28, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithAsyncMethod_CreateLocationSecret : public BaseClass { + class WithAsyncMethod_DeleteOAuthApp : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithAsyncMethod_CreateLocationSecret() { + WithAsyncMethod_DeleteOAuthApp() { ::grpc::Service::MarkMethodAsync(29); } - ~WithAsyncMethod_CreateLocationSecret() override { + ~WithAsyncMethod_DeleteOAuthApp() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status CreateLocationSecret(::grpc::ServerContext* /*context*/, const ::viam::app::v1::CreateLocationSecretRequest* /*request*/, ::viam::app::v1::CreateLocationSecretResponse* /*response*/) override { + ::grpc::Status DeleteOAuthApp(::grpc::ServerContext* /*context*/, const ::viam::app::v1::DeleteOAuthAppRequest* /*request*/, ::viam::app::v1::DeleteOAuthAppResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestCreateLocationSecret(::grpc::ServerContext* context, ::viam::app::v1::CreateLocationSecretRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::CreateLocationSecretResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestDeleteOAuthApp(::grpc::ServerContext* context, ::viam::app::v1::DeleteOAuthAppRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::DeleteOAuthAppResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(29, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithAsyncMethod_DeleteLocationSecret : public BaseClass { + class WithAsyncMethod_ListOAuthApps : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithAsyncMethod_DeleteLocationSecret() { + WithAsyncMethod_ListOAuthApps() { ::grpc::Service::MarkMethodAsync(30); } - ~WithAsyncMethod_DeleteLocationSecret() override { + ~WithAsyncMethod_ListOAuthApps() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status DeleteLocationSecret(::grpc::ServerContext* /*context*/, const ::viam::app::v1::DeleteLocationSecretRequest* /*request*/, ::viam::app::v1::DeleteLocationSecretResponse* /*response*/) override { + ::grpc::Status ListOAuthApps(::grpc::ServerContext* /*context*/, const ::viam::app::v1::ListOAuthAppsRequest* /*request*/, ::viam::app::v1::ListOAuthAppsResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestDeleteLocationSecret(::grpc::ServerContext* context, ::viam::app::v1::DeleteLocationSecretRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::DeleteLocationSecretResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestListOAuthApps(::grpc::ServerContext* context, ::viam::app::v1::ListOAuthAppsRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::ListOAuthAppsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(30, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithAsyncMethod_GetRobot : public BaseClass { + class WithAsyncMethod_CreateLocation : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithAsyncMethod_GetRobot() { + WithAsyncMethod_CreateLocation() { ::grpc::Service::MarkMethodAsync(31); } - ~WithAsyncMethod_GetRobot() override { + ~WithAsyncMethod_CreateLocation() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetRobot(::grpc::ServerContext* /*context*/, const ::viam::app::v1::GetRobotRequest* /*request*/, ::viam::app::v1::GetRobotResponse* /*response*/) override { + ::grpc::Status CreateLocation(::grpc::ServerContext* /*context*/, const ::viam::app::v1::CreateLocationRequest* /*request*/, ::viam::app::v1::CreateLocationResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestGetRobot(::grpc::ServerContext* context, ::viam::app::v1::GetRobotRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::GetRobotResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestCreateLocation(::grpc::ServerContext* context, ::viam::app::v1::CreateLocationRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::CreateLocationResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(31, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithAsyncMethod_GetRoverRentalRobots : public BaseClass { + class WithAsyncMethod_GetLocation : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithAsyncMethod_GetRoverRentalRobots() { + WithAsyncMethod_GetLocation() { ::grpc::Service::MarkMethodAsync(32); } - ~WithAsyncMethod_GetRoverRentalRobots() override { + ~WithAsyncMethod_GetLocation() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetRoverRentalRobots(::grpc::ServerContext* /*context*/, const ::viam::app::v1::GetRoverRentalRobotsRequest* /*request*/, ::viam::app::v1::GetRoverRentalRobotsResponse* /*response*/) override { + ::grpc::Status GetLocation(::grpc::ServerContext* /*context*/, const ::viam::app::v1::GetLocationRequest* /*request*/, ::viam::app::v1::GetLocationResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestGetRoverRentalRobots(::grpc::ServerContext* context, ::viam::app::v1::GetRoverRentalRobotsRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::GetRoverRentalRobotsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestGetLocation(::grpc::ServerContext* context, ::viam::app::v1::GetLocationRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::GetLocationResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(32, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithAsyncMethod_GetRobotParts : public BaseClass { + class WithAsyncMethod_UpdateLocation : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithAsyncMethod_GetRobotParts() { + WithAsyncMethod_UpdateLocation() { ::grpc::Service::MarkMethodAsync(33); } - ~WithAsyncMethod_GetRobotParts() override { + ~WithAsyncMethod_UpdateLocation() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetRobotParts(::grpc::ServerContext* /*context*/, const ::viam::app::v1::GetRobotPartsRequest* /*request*/, ::viam::app::v1::GetRobotPartsResponse* /*response*/) override { + ::grpc::Status UpdateLocation(::grpc::ServerContext* /*context*/, const ::viam::app::v1::UpdateLocationRequest* /*request*/, ::viam::app::v1::UpdateLocationResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestGetRobotParts(::grpc::ServerContext* context, ::viam::app::v1::GetRobotPartsRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::GetRobotPartsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestUpdateLocation(::grpc::ServerContext* context, ::viam::app::v1::UpdateLocationRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::UpdateLocationResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(33, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithAsyncMethod_GetRobotPart : public BaseClass { + class WithAsyncMethod_DeleteLocation : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithAsyncMethod_GetRobotPart() { + WithAsyncMethod_DeleteLocation() { ::grpc::Service::MarkMethodAsync(34); } - ~WithAsyncMethod_GetRobotPart() override { + ~WithAsyncMethod_DeleteLocation() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetRobotPart(::grpc::ServerContext* /*context*/, const ::viam::app::v1::GetRobotPartRequest* /*request*/, ::viam::app::v1::GetRobotPartResponse* /*response*/) override { + ::grpc::Status DeleteLocation(::grpc::ServerContext* /*context*/, const ::viam::app::v1::DeleteLocationRequest* /*request*/, ::viam::app::v1::DeleteLocationResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestGetRobotPart(::grpc::ServerContext* context, ::viam::app::v1::GetRobotPartRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::GetRobotPartResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestDeleteLocation(::grpc::ServerContext* context, ::viam::app::v1::DeleteLocationRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::DeleteLocationResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(34, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithAsyncMethod_GetRobotPartLogs : public BaseClass { + class WithAsyncMethod_ListLocations : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithAsyncMethod_GetRobotPartLogs() { + WithAsyncMethod_ListLocations() { ::grpc::Service::MarkMethodAsync(35); } - ~WithAsyncMethod_GetRobotPartLogs() override { + ~WithAsyncMethod_ListLocations() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetRobotPartLogs(::grpc::ServerContext* /*context*/, const ::viam::app::v1::GetRobotPartLogsRequest* /*request*/, ::viam::app::v1::GetRobotPartLogsResponse* /*response*/) override { + ::grpc::Status ListLocations(::grpc::ServerContext* /*context*/, const ::viam::app::v1::ListLocationsRequest* /*request*/, ::viam::app::v1::ListLocationsResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestGetRobotPartLogs(::grpc::ServerContext* context, ::viam::app::v1::GetRobotPartLogsRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::GetRobotPartLogsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestListLocations(::grpc::ServerContext* context, ::viam::app::v1::ListLocationsRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::ListLocationsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(35, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithAsyncMethod_TailRobotPartLogs : public BaseClass { + class WithAsyncMethod_ShareLocation : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithAsyncMethod_TailRobotPartLogs() { + WithAsyncMethod_ShareLocation() { ::grpc::Service::MarkMethodAsync(36); } - ~WithAsyncMethod_TailRobotPartLogs() override { + ~WithAsyncMethod_ShareLocation() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status TailRobotPartLogs(::grpc::ServerContext* /*context*/, const ::viam::app::v1::TailRobotPartLogsRequest* /*request*/, ::grpc::ServerWriter< ::viam::app::v1::TailRobotPartLogsResponse>* /*writer*/) override { + ::grpc::Status ShareLocation(::grpc::ServerContext* /*context*/, const ::viam::app::v1::ShareLocationRequest* /*request*/, ::viam::app::v1::ShareLocationResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestTailRobotPartLogs(::grpc::ServerContext* context, ::viam::app::v1::TailRobotPartLogsRequest* request, ::grpc::ServerAsyncWriter< ::viam::app::v1::TailRobotPartLogsResponse>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncServerStreaming(36, context, request, writer, new_call_cq, notification_cq, tag); + void RequestShareLocation(::grpc::ServerContext* context, ::viam::app::v1::ShareLocationRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::ShareLocationResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(36, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithAsyncMethod_GetRobotPartHistory : public BaseClass { + class WithAsyncMethod_UnshareLocation : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithAsyncMethod_GetRobotPartHistory() { + WithAsyncMethod_UnshareLocation() { ::grpc::Service::MarkMethodAsync(37); } - ~WithAsyncMethod_GetRobotPartHistory() override { + ~WithAsyncMethod_UnshareLocation() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetRobotPartHistory(::grpc::ServerContext* /*context*/, const ::viam::app::v1::GetRobotPartHistoryRequest* /*request*/, ::viam::app::v1::GetRobotPartHistoryResponse* /*response*/) override { + ::grpc::Status UnshareLocation(::grpc::ServerContext* /*context*/, const ::viam::app::v1::UnshareLocationRequest* /*request*/, ::viam::app::v1::UnshareLocationResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestGetRobotPartHistory(::grpc::ServerContext* context, ::viam::app::v1::GetRobotPartHistoryRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::GetRobotPartHistoryResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestUnshareLocation(::grpc::ServerContext* context, ::viam::app::v1::UnshareLocationRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::UnshareLocationResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(37, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithAsyncMethod_UpdateRobotPart : public BaseClass { + class WithAsyncMethod_LocationAuth : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithAsyncMethod_UpdateRobotPart() { + WithAsyncMethod_LocationAuth() { ::grpc::Service::MarkMethodAsync(38); } + ~WithAsyncMethod_LocationAuth() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status LocationAuth(::grpc::ServerContext* /*context*/, const ::viam::app::v1::LocationAuthRequest* /*request*/, ::viam::app::v1::LocationAuthResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestLocationAuth(::grpc::ServerContext* context, ::viam::app::v1::LocationAuthRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::LocationAuthResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(38, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_CreateLocationSecret : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_CreateLocationSecret() { + ::grpc::Service::MarkMethodAsync(39); + } + ~WithAsyncMethod_CreateLocationSecret() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateLocationSecret(::grpc::ServerContext* /*context*/, const ::viam::app::v1::CreateLocationSecretRequest* /*request*/, ::viam::app::v1::CreateLocationSecretResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreateLocationSecret(::grpc::ServerContext* context, ::viam::app::v1::CreateLocationSecretRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::CreateLocationSecretResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(39, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_DeleteLocationSecret : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_DeleteLocationSecret() { + ::grpc::Service::MarkMethodAsync(40); + } + ~WithAsyncMethod_DeleteLocationSecret() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteLocationSecret(::grpc::ServerContext* /*context*/, const ::viam::app::v1::DeleteLocationSecretRequest* /*request*/, ::viam::app::v1::DeleteLocationSecretResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDeleteLocationSecret(::grpc::ServerContext* context, ::viam::app::v1::DeleteLocationSecretRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::DeleteLocationSecretResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(40, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetRobot : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetRobot() { + ::grpc::Service::MarkMethodAsync(41); + } + ~WithAsyncMethod_GetRobot() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetRobot(::grpc::ServerContext* /*context*/, const ::viam::app::v1::GetRobotRequest* /*request*/, ::viam::app::v1::GetRobotResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetRobot(::grpc::ServerContext* context, ::viam::app::v1::GetRobotRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::GetRobotResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(41, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetRoverRentalRobots : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetRoverRentalRobots() { + ::grpc::Service::MarkMethodAsync(42); + } + ~WithAsyncMethod_GetRoverRentalRobots() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetRoverRentalRobots(::grpc::ServerContext* /*context*/, const ::viam::app::v1::GetRoverRentalRobotsRequest* /*request*/, ::viam::app::v1::GetRoverRentalRobotsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetRoverRentalRobots(::grpc::ServerContext* context, ::viam::app::v1::GetRoverRentalRobotsRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::GetRoverRentalRobotsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(42, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetRobotParts : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetRobotParts() { + ::grpc::Service::MarkMethodAsync(43); + } + ~WithAsyncMethod_GetRobotParts() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetRobotParts(::grpc::ServerContext* /*context*/, const ::viam::app::v1::GetRobotPartsRequest* /*request*/, ::viam::app::v1::GetRobotPartsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetRobotParts(::grpc::ServerContext* context, ::viam::app::v1::GetRobotPartsRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::GetRobotPartsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(43, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetRobotPart : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetRobotPart() { + ::grpc::Service::MarkMethodAsync(44); + } + ~WithAsyncMethod_GetRobotPart() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetRobotPart(::grpc::ServerContext* /*context*/, const ::viam::app::v1::GetRobotPartRequest* /*request*/, ::viam::app::v1::GetRobotPartResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetRobotPart(::grpc::ServerContext* context, ::viam::app::v1::GetRobotPartRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::GetRobotPartResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(44, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetRobotPartLogs : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetRobotPartLogs() { + ::grpc::Service::MarkMethodAsync(45); + } + ~WithAsyncMethod_GetRobotPartLogs() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetRobotPartLogs(::grpc::ServerContext* /*context*/, const ::viam::app::v1::GetRobotPartLogsRequest* /*request*/, ::viam::app::v1::GetRobotPartLogsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetRobotPartLogs(::grpc::ServerContext* context, ::viam::app::v1::GetRobotPartLogsRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::GetRobotPartLogsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(45, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_TailRobotPartLogs : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_TailRobotPartLogs() { + ::grpc::Service::MarkMethodAsync(46); + } + ~WithAsyncMethod_TailRobotPartLogs() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status TailRobotPartLogs(::grpc::ServerContext* /*context*/, const ::viam::app::v1::TailRobotPartLogsRequest* /*request*/, ::grpc::ServerWriter< ::viam::app::v1::TailRobotPartLogsResponse>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestTailRobotPartLogs(::grpc::ServerContext* context, ::viam::app::v1::TailRobotPartLogsRequest* request, ::grpc::ServerAsyncWriter< ::viam::app::v1::TailRobotPartLogsResponse>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncServerStreaming(46, context, request, writer, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetRobotPartHistory : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetRobotPartHistory() { + ::grpc::Service::MarkMethodAsync(47); + } + ~WithAsyncMethod_GetRobotPartHistory() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetRobotPartHistory(::grpc::ServerContext* /*context*/, const ::viam::app::v1::GetRobotPartHistoryRequest* /*request*/, ::viam::app::v1::GetRobotPartHistoryResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetRobotPartHistory(::grpc::ServerContext* context, ::viam::app::v1::GetRobotPartHistoryRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::GetRobotPartHistoryResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(47, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_UpdateRobotPart : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_UpdateRobotPart() { + ::grpc::Service::MarkMethodAsync(48); + } ~WithAsyncMethod_UpdateRobotPart() override { BaseClassMustBeDerivedFromService(this); } @@ -2953,7 +5157,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestUpdateRobotPart(::grpc::ServerContext* context, ::viam::app::v1::UpdateRobotPartRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::UpdateRobotPartResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(38, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(48, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -2962,7 +5166,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_NewRobotPart() { - ::grpc::Service::MarkMethodAsync(39); + ::grpc::Service::MarkMethodAsync(49); } ~WithAsyncMethod_NewRobotPart() override { BaseClassMustBeDerivedFromService(this); @@ -2973,7 +5177,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestNewRobotPart(::grpc::ServerContext* context, ::viam::app::v1::NewRobotPartRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::NewRobotPartResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(39, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(49, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -2982,7 +5186,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_DeleteRobotPart() { - ::grpc::Service::MarkMethodAsync(40); + ::grpc::Service::MarkMethodAsync(50); } ~WithAsyncMethod_DeleteRobotPart() override { BaseClassMustBeDerivedFromService(this); @@ -2993,7 +5197,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestDeleteRobotPart(::grpc::ServerContext* context, ::viam::app::v1::DeleteRobotPartRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::DeleteRobotPartResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(40, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(50, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -3002,7 +5206,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_GetRobotAPIKeys() { - ::grpc::Service::MarkMethodAsync(41); + ::grpc::Service::MarkMethodAsync(51); } ~WithAsyncMethod_GetRobotAPIKeys() override { BaseClassMustBeDerivedFromService(this); @@ -3013,7 +5217,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestGetRobotAPIKeys(::grpc::ServerContext* context, ::viam::app::v1::GetRobotAPIKeysRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::GetRobotAPIKeysResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(41, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(51, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -3022,7 +5226,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_MarkPartAsMain() { - ::grpc::Service::MarkMethodAsync(42); + ::grpc::Service::MarkMethodAsync(52); } ~WithAsyncMethod_MarkPartAsMain() override { BaseClassMustBeDerivedFromService(this); @@ -3033,7 +5237,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestMarkPartAsMain(::grpc::ServerContext* context, ::viam::app::v1::MarkPartAsMainRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::MarkPartAsMainResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(42, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(52, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -3042,7 +5246,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_MarkPartForRestart() { - ::grpc::Service::MarkMethodAsync(43); + ::grpc::Service::MarkMethodAsync(53); } ~WithAsyncMethod_MarkPartForRestart() override { BaseClassMustBeDerivedFromService(this); @@ -3053,7 +5257,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestMarkPartForRestart(::grpc::ServerContext* context, ::viam::app::v1::MarkPartForRestartRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::MarkPartForRestartResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(43, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(53, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -3062,7 +5266,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_CreateRobotPartSecret() { - ::grpc::Service::MarkMethodAsync(44); + ::grpc::Service::MarkMethodAsync(54); } ~WithAsyncMethod_CreateRobotPartSecret() override { BaseClassMustBeDerivedFromService(this); @@ -3073,7 +5277,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestCreateRobotPartSecret(::grpc::ServerContext* context, ::viam::app::v1::CreateRobotPartSecretRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::CreateRobotPartSecretResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(44, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(54, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -3082,7 +5286,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_DeleteRobotPartSecret() { - ::grpc::Service::MarkMethodAsync(45); + ::grpc::Service::MarkMethodAsync(55); } ~WithAsyncMethod_DeleteRobotPartSecret() override { BaseClassMustBeDerivedFromService(this); @@ -3093,7 +5297,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestDeleteRobotPartSecret(::grpc::ServerContext* context, ::viam::app::v1::DeleteRobotPartSecretRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::DeleteRobotPartSecretResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(45, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(55, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -3102,7 +5306,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_ListRobots() { - ::grpc::Service::MarkMethodAsync(46); + ::grpc::Service::MarkMethodAsync(56); } ~WithAsyncMethod_ListRobots() override { BaseClassMustBeDerivedFromService(this); @@ -3113,7 +5317,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestListRobots(::grpc::ServerContext* context, ::viam::app::v1::ListRobotsRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::ListRobotsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(46, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(56, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -3122,7 +5326,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_NewRobot() { - ::grpc::Service::MarkMethodAsync(47); + ::grpc::Service::MarkMethodAsync(57); } ~WithAsyncMethod_NewRobot() override { BaseClassMustBeDerivedFromService(this); @@ -3133,7 +5337,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestNewRobot(::grpc::ServerContext* context, ::viam::app::v1::NewRobotRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::NewRobotResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(47, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(57, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -3142,7 +5346,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_UpdateRobot() { - ::grpc::Service::MarkMethodAsync(48); + ::grpc::Service::MarkMethodAsync(58); } ~WithAsyncMethod_UpdateRobot() override { BaseClassMustBeDerivedFromService(this); @@ -3153,7 +5357,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestUpdateRobot(::grpc::ServerContext* context, ::viam::app::v1::UpdateRobotRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::UpdateRobotResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(48, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(58, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -3162,7 +5366,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_DeleteRobot() { - ::grpc::Service::MarkMethodAsync(49); + ::grpc::Service::MarkMethodAsync(59); } ~WithAsyncMethod_DeleteRobot() override { BaseClassMustBeDerivedFromService(this); @@ -3173,7 +5377,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestDeleteRobot(::grpc::ServerContext* context, ::viam::app::v1::DeleteRobotRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::DeleteRobotResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(49, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(59, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -3182,7 +5386,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_ListFragments() { - ::grpc::Service::MarkMethodAsync(50); + ::grpc::Service::MarkMethodAsync(60); } ~WithAsyncMethod_ListFragments() override { BaseClassMustBeDerivedFromService(this); @@ -3193,7 +5397,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestListFragments(::grpc::ServerContext* context, ::viam::app::v1::ListFragmentsRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::ListFragmentsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(50, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(60, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -3202,7 +5406,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_GetFragment() { - ::grpc::Service::MarkMethodAsync(51); + ::grpc::Service::MarkMethodAsync(61); } ~WithAsyncMethod_GetFragment() override { BaseClassMustBeDerivedFromService(this); @@ -3213,7 +5417,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestGetFragment(::grpc::ServerContext* context, ::viam::app::v1::GetFragmentRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::GetFragmentResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(51, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(61, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -3222,7 +5426,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_CreateFragment() { - ::grpc::Service::MarkMethodAsync(52); + ::grpc::Service::MarkMethodAsync(62); } ~WithAsyncMethod_CreateFragment() override { BaseClassMustBeDerivedFromService(this); @@ -3233,7 +5437,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestCreateFragment(::grpc::ServerContext* context, ::viam::app::v1::CreateFragmentRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::CreateFragmentResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(52, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(62, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -3242,7 +5446,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_UpdateFragment() { - ::grpc::Service::MarkMethodAsync(53); + ::grpc::Service::MarkMethodAsync(63); } ~WithAsyncMethod_UpdateFragment() override { BaseClassMustBeDerivedFromService(this); @@ -3253,7 +5457,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestUpdateFragment(::grpc::ServerContext* context, ::viam::app::v1::UpdateFragmentRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::UpdateFragmentResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(53, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(63, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -3262,7 +5466,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_DeleteFragment() { - ::grpc::Service::MarkMethodAsync(54); + ::grpc::Service::MarkMethodAsync(64); } ~WithAsyncMethod_DeleteFragment() override { BaseClassMustBeDerivedFromService(this); @@ -3273,7 +5477,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestDeleteFragment(::grpc::ServerContext* context, ::viam::app::v1::DeleteFragmentRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::DeleteFragmentResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(54, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(64, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -3282,7 +5486,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_ListMachineFragments() { - ::grpc::Service::MarkMethodAsync(55); + ::grpc::Service::MarkMethodAsync(65); } ~WithAsyncMethod_ListMachineFragments() override { BaseClassMustBeDerivedFromService(this); @@ -3293,7 +5497,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestListMachineFragments(::grpc::ServerContext* context, ::viam::app::v1::ListMachineFragmentsRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::ListMachineFragmentsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(55, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(65, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -3302,7 +5506,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_GetFragmentHistory() { - ::grpc::Service::MarkMethodAsync(56); + ::grpc::Service::MarkMethodAsync(66); } ~WithAsyncMethod_GetFragmentHistory() override { BaseClassMustBeDerivedFromService(this); @@ -3313,7 +5517,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestGetFragmentHistory(::grpc::ServerContext* context, ::viam::app::v1::GetFragmentHistoryRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::GetFragmentHistoryResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(56, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(66, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -3322,7 +5526,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_AddRole() { - ::grpc::Service::MarkMethodAsync(57); + ::grpc::Service::MarkMethodAsync(67); } ~WithAsyncMethod_AddRole() override { BaseClassMustBeDerivedFromService(this); @@ -3333,7 +5537,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestAddRole(::grpc::ServerContext* context, ::viam::app::v1::AddRoleRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::AddRoleResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(57, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(67, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -3342,7 +5546,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_RemoveRole() { - ::grpc::Service::MarkMethodAsync(58); + ::grpc::Service::MarkMethodAsync(68); } ~WithAsyncMethod_RemoveRole() override { BaseClassMustBeDerivedFromService(this); @@ -3353,7 +5557,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestRemoveRole(::grpc::ServerContext* context, ::viam::app::v1::RemoveRoleRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::RemoveRoleResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(58, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(68, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -3362,7 +5566,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_ChangeRole() { - ::grpc::Service::MarkMethodAsync(59); + ::grpc::Service::MarkMethodAsync(69); } ~WithAsyncMethod_ChangeRole() override { BaseClassMustBeDerivedFromService(this); @@ -3373,7 +5577,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestChangeRole(::grpc::ServerContext* context, ::viam::app::v1::ChangeRoleRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::ChangeRoleResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(59, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(69, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -3382,7 +5586,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_ListAuthorizations() { - ::grpc::Service::MarkMethodAsync(60); + ::grpc::Service::MarkMethodAsync(70); } ~WithAsyncMethod_ListAuthorizations() override { BaseClassMustBeDerivedFromService(this); @@ -3393,7 +5597,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestListAuthorizations(::grpc::ServerContext* context, ::viam::app::v1::ListAuthorizationsRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::ListAuthorizationsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(60, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(70, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -3402,7 +5606,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_CheckPermissions() { - ::grpc::Service::MarkMethodAsync(61); + ::grpc::Service::MarkMethodAsync(71); } ~WithAsyncMethod_CheckPermissions() override { BaseClassMustBeDerivedFromService(this); @@ -3413,7 +5617,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestCheckPermissions(::grpc::ServerContext* context, ::viam::app::v1::CheckPermissionsRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::CheckPermissionsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(61, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(71, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -3422,7 +5626,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_GetRegistryItem() { - ::grpc::Service::MarkMethodAsync(62); + ::grpc::Service::MarkMethodAsync(72); } ~WithAsyncMethod_GetRegistryItem() override { BaseClassMustBeDerivedFromService(this); @@ -3433,7 +5637,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestGetRegistryItem(::grpc::ServerContext* context, ::viam::app::v1::GetRegistryItemRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::GetRegistryItemResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(62, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(72, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -3442,7 +5646,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_CreateRegistryItem() { - ::grpc::Service::MarkMethodAsync(63); + ::grpc::Service::MarkMethodAsync(73); } ~WithAsyncMethod_CreateRegistryItem() override { BaseClassMustBeDerivedFromService(this); @@ -3453,7 +5657,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestCreateRegistryItem(::grpc::ServerContext* context, ::viam::app::v1::CreateRegistryItemRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::CreateRegistryItemResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(63, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(73, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -3462,7 +5666,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_UpdateRegistryItem() { - ::grpc::Service::MarkMethodAsync(64); + ::grpc::Service::MarkMethodAsync(74); } ~WithAsyncMethod_UpdateRegistryItem() override { BaseClassMustBeDerivedFromService(this); @@ -3473,7 +5677,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestUpdateRegistryItem(::grpc::ServerContext* context, ::viam::app::v1::UpdateRegistryItemRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::UpdateRegistryItemResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(64, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(74, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -3482,7 +5686,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_ListRegistryItems() { - ::grpc::Service::MarkMethodAsync(65); + ::grpc::Service::MarkMethodAsync(75); } ~WithAsyncMethod_ListRegistryItems() override { BaseClassMustBeDerivedFromService(this); @@ -3493,7 +5697,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestListRegistryItems(::grpc::ServerContext* context, ::viam::app::v1::ListRegistryItemsRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::ListRegistryItemsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(65, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(75, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -3502,7 +5706,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_DeleteRegistryItem() { - ::grpc::Service::MarkMethodAsync(66); + ::grpc::Service::MarkMethodAsync(76); } ~WithAsyncMethod_DeleteRegistryItem() override { BaseClassMustBeDerivedFromService(this); @@ -3513,7 +5717,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestDeleteRegistryItem(::grpc::ServerContext* context, ::viam::app::v1::DeleteRegistryItemRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::DeleteRegistryItemResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(66, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(76, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -3522,7 +5726,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_TransferRegistryItem() { - ::grpc::Service::MarkMethodAsync(67); + ::grpc::Service::MarkMethodAsync(77); } ~WithAsyncMethod_TransferRegistryItem() override { BaseClassMustBeDerivedFromService(this); @@ -3533,7 +5737,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestTransferRegistryItem(::grpc::ServerContext* context, ::viam::app::v1::TransferRegistryItemRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::TransferRegistryItemResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(67, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(77, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -3542,7 +5746,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_CreateModule() { - ::grpc::Service::MarkMethodAsync(68); + ::grpc::Service::MarkMethodAsync(78); } ~WithAsyncMethod_CreateModule() override { BaseClassMustBeDerivedFromService(this); @@ -3553,7 +5757,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestCreateModule(::grpc::ServerContext* context, ::viam::app::v1::CreateModuleRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::CreateModuleResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(68, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(78, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -3562,7 +5766,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_UpdateModule() { - ::grpc::Service::MarkMethodAsync(69); + ::grpc::Service::MarkMethodAsync(79); } ~WithAsyncMethod_UpdateModule() override { BaseClassMustBeDerivedFromService(this); @@ -3573,7 +5777,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestUpdateModule(::grpc::ServerContext* context, ::viam::app::v1::UpdateModuleRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::UpdateModuleResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(69, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(79, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -3582,7 +5786,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_UploadModuleFile() { - ::grpc::Service::MarkMethodAsync(70); + ::grpc::Service::MarkMethodAsync(80); } ~WithAsyncMethod_UploadModuleFile() override { BaseClassMustBeDerivedFromService(this); @@ -3593,7 +5797,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestUploadModuleFile(::grpc::ServerContext* context, ::grpc::ServerAsyncReader< ::viam::app::v1::UploadModuleFileResponse, ::viam::app::v1::UploadModuleFileRequest>* reader, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncClientStreaming(70, context, reader, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncClientStreaming(80, context, reader, new_call_cq, notification_cq, tag); } }; template @@ -3602,7 +5806,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_GetModule() { - ::grpc::Service::MarkMethodAsync(71); + ::grpc::Service::MarkMethodAsync(81); } ~WithAsyncMethod_GetModule() override { BaseClassMustBeDerivedFromService(this); @@ -3613,7 +5817,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestGetModule(::grpc::ServerContext* context, ::viam::app::v1::GetModuleRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::GetModuleResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(71, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(81, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -3622,7 +5826,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_ListModules() { - ::grpc::Service::MarkMethodAsync(72); + ::grpc::Service::MarkMethodAsync(82); } ~WithAsyncMethod_ListModules() override { BaseClassMustBeDerivedFromService(this); @@ -3633,7 +5837,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestListModules(::grpc::ServerContext* context, ::viam::app::v1::ListModulesRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::ListModulesResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(72, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(82, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -3642,7 +5846,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_CreateKey() { - ::grpc::Service::MarkMethodAsync(73); + ::grpc::Service::MarkMethodAsync(83); } ~WithAsyncMethod_CreateKey() override { BaseClassMustBeDerivedFromService(this); @@ -3653,7 +5857,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestCreateKey(::grpc::ServerContext* context, ::viam::app::v1::CreateKeyRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::CreateKeyResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(73, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(83, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -3662,7 +5866,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_DeleteKey() { - ::grpc::Service::MarkMethodAsync(74); + ::grpc::Service::MarkMethodAsync(84); } ~WithAsyncMethod_DeleteKey() override { BaseClassMustBeDerivedFromService(this); @@ -3673,7 +5877,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestDeleteKey(::grpc::ServerContext* context, ::viam::app::v1::DeleteKeyRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::DeleteKeyResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(74, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(84, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -3682,7 +5886,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_ListKeys() { - ::grpc::Service::MarkMethodAsync(75); + ::grpc::Service::MarkMethodAsync(85); } ~WithAsyncMethod_ListKeys() override { BaseClassMustBeDerivedFromService(this); @@ -3693,7 +5897,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestListKeys(::grpc::ServerContext* context, ::viam::app::v1::ListKeysRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::ListKeysResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(75, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(85, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -3702,7 +5906,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_RenameKey() { - ::grpc::Service::MarkMethodAsync(76); + ::grpc::Service::MarkMethodAsync(86); } ~WithAsyncMethod_RenameKey() override { BaseClassMustBeDerivedFromService(this); @@ -3713,7 +5917,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestRenameKey(::grpc::ServerContext* context, ::viam::app::v1::RenameKeyRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::RenameKeyResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(76, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(86, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -3722,7 +5926,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_RotateKey() { - ::grpc::Service::MarkMethodAsync(77); + ::grpc::Service::MarkMethodAsync(87); } ~WithAsyncMethod_RotateKey() override { BaseClassMustBeDerivedFromService(this); @@ -3733,7 +5937,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestRotateKey(::grpc::ServerContext* context, ::viam::app::v1::RotateKeyRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::RotateKeyResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(77, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(87, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -3742,7 +5946,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_CreateKeyFromExistingKeyAuthorizations() { - ::grpc::Service::MarkMethodAsync(78); + ::grpc::Service::MarkMethodAsync(88); } ~WithAsyncMethod_CreateKeyFromExistingKeyAuthorizations() override { BaseClassMustBeDerivedFromService(this); @@ -3753,27 +5957,41 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestCreateKeyFromExistingKeyAuthorizations(::grpc::ServerContext* context, ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(78, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(88, context, request, response, new_call_cq, notification_cq, tag); } }; - typedef WithAsyncMethod_GetUserIDByEmail > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > AsyncService; + typedef WithAsyncMethod_GetUserIDByEmail > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > AsyncService; template - class WithCallbackMethod_GetUserIDByEmail : public BaseClass { + class ExperimentalWithCallbackMethod_GetUserIDByEmail : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetUserIDByEmail() { - ::grpc::Service::MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::GetUserIDByEmailRequest, ::viam::app::v1::GetUserIDByEmailResponse>( + ExperimentalWithCallbackMethod_GetUserIDByEmail() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::GetUserIDByEmailRequest, ::viam::app::v1::GetUserIDByEmailResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::GetUserIDByEmailRequest* request, ::viam::app::v1::GetUserIDByEmailResponse* response) { return this->GetUserIDByEmail(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::GetUserIDByEmailRequest* request, ::viam::app::v1::GetUserIDByEmailResponse* response) { return this->GetUserIDByEmail(context, request, response); }));} void SetMessageAllocatorFor_GetUserIDByEmail( - ::grpc::MessageAllocator< ::viam::app::v1::GetUserIDByEmailRequest, ::viam::app::v1::GetUserIDByEmailResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::app::v1::GetUserIDByEmailRequest, ::viam::app::v1::GetUserIDByEmailResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::GetUserIDByEmailRequest, ::viam::app::v1::GetUserIDByEmailResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(0); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::GetUserIDByEmailRequest, ::viam::app::v1::GetUserIDByEmailResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetUserIDByEmail() override { + ~ExperimentalWithCallbackMethod_GetUserIDByEmail() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -3781,26 +5999,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetUserIDByEmail( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::GetUserIDByEmailRequest* /*request*/, ::viam::app::v1::GetUserIDByEmailResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::GetUserIDByEmailRequest* /*request*/, ::viam::app::v1::GetUserIDByEmailResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetUserIDByEmail( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::GetUserIDByEmailRequest* /*request*/, ::viam::app::v1::GetUserIDByEmailResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_CreateOrganization : public BaseClass { + class ExperimentalWithCallbackMethod_CreateOrganization : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_CreateOrganization() { - ::grpc::Service::MarkMethodCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::CreateOrganizationRequest, ::viam::app::v1::CreateOrganizationResponse>( + ExperimentalWithCallbackMethod_CreateOrganization() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::CreateOrganizationRequest, ::viam::app::v1::CreateOrganizationResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::CreateOrganizationRequest* request, ::viam::app::v1::CreateOrganizationResponse* response) { return this->CreateOrganization(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::CreateOrganizationRequest* request, ::viam::app::v1::CreateOrganizationResponse* response) { return this->CreateOrganization(context, request, response); }));} void SetMessageAllocatorFor_CreateOrganization( - ::grpc::MessageAllocator< ::viam::app::v1::CreateOrganizationRequest, ::viam::app::v1::CreateOrganizationResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::app::v1::CreateOrganizationRequest, ::viam::app::v1::CreateOrganizationResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::CreateOrganizationRequest, ::viam::app::v1::CreateOrganizationResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(1); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::CreateOrganizationRequest, ::viam::app::v1::CreateOrganizationResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_CreateOrganization() override { + ~ExperimentalWithCallbackMethod_CreateOrganization() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -3808,26 +6046,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* CreateOrganization( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::CreateOrganizationRequest* /*request*/, ::viam::app::v1::CreateOrganizationResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::CreateOrganizationRequest* /*request*/, ::viam::app::v1::CreateOrganizationResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* CreateOrganization( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::CreateOrganizationRequest* /*request*/, ::viam::app::v1::CreateOrganizationResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_ListOrganizations : public BaseClass { + class ExperimentalWithCallbackMethod_ListOrganizations : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_ListOrganizations() { - ::grpc::Service::MarkMethodCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::ListOrganizationsRequest, ::viam::app::v1::ListOrganizationsResponse>( + ExperimentalWithCallbackMethod_ListOrganizations() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(2, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::ListOrganizationsRequest, ::viam::app::v1::ListOrganizationsResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::ListOrganizationsRequest* request, ::viam::app::v1::ListOrganizationsResponse* response) { return this->ListOrganizations(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::ListOrganizationsRequest* request, ::viam::app::v1::ListOrganizationsResponse* response) { return this->ListOrganizations(context, request, response); }));} void SetMessageAllocatorFor_ListOrganizations( - ::grpc::MessageAllocator< ::viam::app::v1::ListOrganizationsRequest, ::viam::app::v1::ListOrganizationsResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::app::v1::ListOrganizationsRequest, ::viam::app::v1::ListOrganizationsResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::ListOrganizationsRequest, ::viam::app::v1::ListOrganizationsResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(2); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::ListOrganizationsRequest, ::viam::app::v1::ListOrganizationsResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_ListOrganizations() override { + ~ExperimentalWithCallbackMethod_ListOrganizations() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -3835,26 +6093,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* ListOrganizations( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::ListOrganizationsRequest* /*request*/, ::viam::app::v1::ListOrganizationsResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::ListOrganizationsRequest* /*request*/, ::viam::app::v1::ListOrganizationsResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ListOrganizations( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::ListOrganizationsRequest* /*request*/, ::viam::app::v1::ListOrganizationsResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetOrganizationsWithAccessToLocation : public BaseClass { + class ExperimentalWithCallbackMethod_GetOrganizationsWithAccessToLocation : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetOrganizationsWithAccessToLocation() { - ::grpc::Service::MarkMethodCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::GetOrganizationsWithAccessToLocationRequest, ::viam::app::v1::GetOrganizationsWithAccessToLocationResponse>( + ExperimentalWithCallbackMethod_GetOrganizationsWithAccessToLocation() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(3, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::GetOrganizationsWithAccessToLocationRequest, ::viam::app::v1::GetOrganizationsWithAccessToLocationResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::GetOrganizationsWithAccessToLocationRequest* request, ::viam::app::v1::GetOrganizationsWithAccessToLocationResponse* response) { return this->GetOrganizationsWithAccessToLocation(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::GetOrganizationsWithAccessToLocationRequest* request, ::viam::app::v1::GetOrganizationsWithAccessToLocationResponse* response) { return this->GetOrganizationsWithAccessToLocation(context, request, response); }));} void SetMessageAllocatorFor_GetOrganizationsWithAccessToLocation( - ::grpc::MessageAllocator< ::viam::app::v1::GetOrganizationsWithAccessToLocationRequest, ::viam::app::v1::GetOrganizationsWithAccessToLocationResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::app::v1::GetOrganizationsWithAccessToLocationRequest, ::viam::app::v1::GetOrganizationsWithAccessToLocationResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::GetOrganizationsWithAccessToLocationRequest, ::viam::app::v1::GetOrganizationsWithAccessToLocationResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(3); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::GetOrganizationsWithAccessToLocationRequest, ::viam::app::v1::GetOrganizationsWithAccessToLocationResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetOrganizationsWithAccessToLocation() override { + ~ExperimentalWithCallbackMethod_GetOrganizationsWithAccessToLocation() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -3862,26 +6140,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetOrganizationsWithAccessToLocation( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::GetOrganizationsWithAccessToLocationRequest* /*request*/, ::viam::app::v1::GetOrganizationsWithAccessToLocationResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::GetOrganizationsWithAccessToLocationRequest* /*request*/, ::viam::app::v1::GetOrganizationsWithAccessToLocationResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetOrganizationsWithAccessToLocation( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::GetOrganizationsWithAccessToLocationRequest* /*request*/, ::viam::app::v1::GetOrganizationsWithAccessToLocationResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_ListOrganizationsByUser : public BaseClass { + class ExperimentalWithCallbackMethod_ListOrganizationsByUser : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_ListOrganizationsByUser() { - ::grpc::Service::MarkMethodCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::ListOrganizationsByUserRequest, ::viam::app::v1::ListOrganizationsByUserResponse>( + ExperimentalWithCallbackMethod_ListOrganizationsByUser() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(4, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::ListOrganizationsByUserRequest, ::viam::app::v1::ListOrganizationsByUserResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::ListOrganizationsByUserRequest* request, ::viam::app::v1::ListOrganizationsByUserResponse* response) { return this->ListOrganizationsByUser(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::ListOrganizationsByUserRequest* request, ::viam::app::v1::ListOrganizationsByUserResponse* response) { return this->ListOrganizationsByUser(context, request, response); }));} void SetMessageAllocatorFor_ListOrganizationsByUser( - ::grpc::MessageAllocator< ::viam::app::v1::ListOrganizationsByUserRequest, ::viam::app::v1::ListOrganizationsByUserResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::app::v1::ListOrganizationsByUserRequest, ::viam::app::v1::ListOrganizationsByUserResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::ListOrganizationsByUserRequest, ::viam::app::v1::ListOrganizationsByUserResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(4); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::ListOrganizationsByUserRequest, ::viam::app::v1::ListOrganizationsByUserResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_ListOrganizationsByUser() override { + ~ExperimentalWithCallbackMethod_ListOrganizationsByUser() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -3889,26 +6187,93 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* ListOrganizationsByUser( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::ListOrganizationsByUserRequest* /*request*/, ::viam::app::v1::ListOrganizationsByUserResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::ListOrganizationsByUserRequest* /*request*/, ::viam::app::v1::ListOrganizationsByUserResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ListOrganizationsByUser( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::ListOrganizationsByUserRequest* /*request*/, ::viam::app::v1::ListOrganizationsByUserResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetOrganization : public BaseClass { + class ExperimentalWithCallbackMethod_SearchOrganizations : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetOrganization() { - ::grpc::Service::MarkMethodCallback(5, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::GetOrganizationRequest, ::viam::app::v1::GetOrganizationResponse>( + ExperimentalWithCallbackMethod_SearchOrganizations() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(5, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::SearchOrganizationsRequest, ::viam::app::v1::SearchOrganizationsResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::GetOrganizationRequest* request, ::viam::app::v1::GetOrganizationResponse* response) { return this->GetOrganization(context, request, response); }));} - void SetMessageAllocatorFor_GetOrganization( - ::grpc::MessageAllocator< ::viam::app::v1::GetOrganizationRequest, ::viam::app::v1::GetOrganizationResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::SearchOrganizationsRequest* request, ::viam::app::v1::SearchOrganizationsResponse* response) { return this->SearchOrganizations(context, request, response); }));} + void SetMessageAllocatorFor_SearchOrganizations( + ::grpc::experimental::MessageAllocator< ::viam::app::v1::SearchOrganizationsRequest, ::viam::app::v1::SearchOrganizationsResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(5); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::GetOrganizationRequest, ::viam::app::v1::GetOrganizationResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(5); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::SearchOrganizationsRequest, ::viam::app::v1::SearchOrganizationsResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_SearchOrganizations() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SearchOrganizations(::grpc::ServerContext* /*context*/, const ::viam::app::v1::SearchOrganizationsRequest* /*request*/, ::viam::app::v1::SearchOrganizationsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* SearchOrganizations( + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::SearchOrganizationsRequest* /*request*/, ::viam::app::v1::SearchOrganizationsResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* SearchOrganizations( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::SearchOrganizationsRequest* /*request*/, ::viam::app::v1::SearchOrganizationsResponse* /*response*/) + #endif + { return nullptr; } + }; + template + class ExperimentalWithCallbackMethod_GetOrganization : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithCallbackMethod_GetOrganization() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(6, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::GetOrganizationRequest, ::viam::app::v1::GetOrganizationResponse>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::GetOrganizationRequest* request, ::viam::app::v1::GetOrganizationResponse* response) { return this->GetOrganization(context, request, response); }));} + void SetMessageAllocatorFor_GetOrganization( + ::grpc::experimental::MessageAllocator< ::viam::app::v1::GetOrganizationRequest, ::viam::app::v1::GetOrganizationResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(6); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(6); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::GetOrganizationRequest, ::viam::app::v1::GetOrganizationResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetOrganization() override { + ~ExperimentalWithCallbackMethod_GetOrganization() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -3916,26 +6281,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetOrganization( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::GetOrganizationRequest* /*request*/, ::viam::app::v1::GetOrganizationResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::GetOrganizationRequest* /*request*/, ::viam::app::v1::GetOrganizationResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetOrganization( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::GetOrganizationRequest* /*request*/, ::viam::app::v1::GetOrganizationResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetOrganizationNamespaceAvailability : public BaseClass { + class ExperimentalWithCallbackMethod_GetOrganizationNamespaceAvailability : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetOrganizationNamespaceAvailability() { - ::grpc::Service::MarkMethodCallback(6, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::GetOrganizationNamespaceAvailabilityRequest, ::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse>( + ExperimentalWithCallbackMethod_GetOrganizationNamespaceAvailability() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(7, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::GetOrganizationNamespaceAvailabilityRequest, ::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::GetOrganizationNamespaceAvailabilityRequest* request, ::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse* response) { return this->GetOrganizationNamespaceAvailability(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::GetOrganizationNamespaceAvailabilityRequest* request, ::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse* response) { return this->GetOrganizationNamespaceAvailability(context, request, response); }));} void SetMessageAllocatorFor_GetOrganizationNamespaceAvailability( - ::grpc::MessageAllocator< ::viam::app::v1::GetOrganizationNamespaceAvailabilityRequest, ::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(6); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::GetOrganizationNamespaceAvailabilityRequest, ::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::GetOrganizationNamespaceAvailabilityRequest, ::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(7); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(7); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::GetOrganizationNamespaceAvailabilityRequest, ::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetOrganizationNamespaceAvailability() override { + ~ExperimentalWithCallbackMethod_GetOrganizationNamespaceAvailability() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -3943,26 +6328,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetOrganizationNamespaceAvailability( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::GetOrganizationNamespaceAvailabilityRequest* /*request*/, ::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::GetOrganizationNamespaceAvailabilityRequest* /*request*/, ::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetOrganizationNamespaceAvailability( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::GetOrganizationNamespaceAvailabilityRequest* /*request*/, ::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_UpdateOrganization : public BaseClass { + class ExperimentalWithCallbackMethod_UpdateOrganization : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_UpdateOrganization() { - ::grpc::Service::MarkMethodCallback(7, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::UpdateOrganizationRequest, ::viam::app::v1::UpdateOrganizationResponse>( + ExperimentalWithCallbackMethod_UpdateOrganization() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(8, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::UpdateOrganizationRequest, ::viam::app::v1::UpdateOrganizationResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::UpdateOrganizationRequest* request, ::viam::app::v1::UpdateOrganizationResponse* response) { return this->UpdateOrganization(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::UpdateOrganizationRequest* request, ::viam::app::v1::UpdateOrganizationResponse* response) { return this->UpdateOrganization(context, request, response); }));} void SetMessageAllocatorFor_UpdateOrganization( - ::grpc::MessageAllocator< ::viam::app::v1::UpdateOrganizationRequest, ::viam::app::v1::UpdateOrganizationResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(7); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::UpdateOrganizationRequest, ::viam::app::v1::UpdateOrganizationResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::UpdateOrganizationRequest, ::viam::app::v1::UpdateOrganizationResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(8); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(8); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::UpdateOrganizationRequest, ::viam::app::v1::UpdateOrganizationResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_UpdateOrganization() override { + ~ExperimentalWithCallbackMethod_UpdateOrganization() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -3970,26 +6375,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* UpdateOrganization( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::UpdateOrganizationRequest* /*request*/, ::viam::app::v1::UpdateOrganizationResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::UpdateOrganizationRequest* /*request*/, ::viam::app::v1::UpdateOrganizationResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* UpdateOrganization( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::UpdateOrganizationRequest* /*request*/, ::viam::app::v1::UpdateOrganizationResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_DeleteOrganization : public BaseClass { + class ExperimentalWithCallbackMethod_DeleteOrganization : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_DeleteOrganization() { - ::grpc::Service::MarkMethodCallback(8, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::DeleteOrganizationRequest, ::viam::app::v1::DeleteOrganizationResponse>( + ExperimentalWithCallbackMethod_DeleteOrganization() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(9, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::DeleteOrganizationRequest, ::viam::app::v1::DeleteOrganizationResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::DeleteOrganizationRequest* request, ::viam::app::v1::DeleteOrganizationResponse* response) { return this->DeleteOrganization(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::DeleteOrganizationRequest* request, ::viam::app::v1::DeleteOrganizationResponse* response) { return this->DeleteOrganization(context, request, response); }));} void SetMessageAllocatorFor_DeleteOrganization( - ::grpc::MessageAllocator< ::viam::app::v1::DeleteOrganizationRequest, ::viam::app::v1::DeleteOrganizationResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(8); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::DeleteOrganizationRequest, ::viam::app::v1::DeleteOrganizationResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::DeleteOrganizationRequest, ::viam::app::v1::DeleteOrganizationResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(9); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(9); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::DeleteOrganizationRequest, ::viam::app::v1::DeleteOrganizationResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_DeleteOrganization() override { + ~ExperimentalWithCallbackMethod_DeleteOrganization() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -3997,26 +6422,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DeleteOrganization( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::DeleteOrganizationRequest* /*request*/, ::viam::app::v1::DeleteOrganizationResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::DeleteOrganizationRequest* /*request*/, ::viam::app::v1::DeleteOrganizationResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DeleteOrganization( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::DeleteOrganizationRequest* /*request*/, ::viam::app::v1::DeleteOrganizationResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_ListOrganizationMembers : public BaseClass { + class ExperimentalWithCallbackMethod_ListOrganizationMembers : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_ListOrganizationMembers() { - ::grpc::Service::MarkMethodCallback(9, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::ListOrganizationMembersRequest, ::viam::app::v1::ListOrganizationMembersResponse>( + ExperimentalWithCallbackMethod_ListOrganizationMembers() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(10, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::ListOrganizationMembersRequest, ::viam::app::v1::ListOrganizationMembersResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::ListOrganizationMembersRequest* request, ::viam::app::v1::ListOrganizationMembersResponse* response) { return this->ListOrganizationMembers(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::ListOrganizationMembersRequest* request, ::viam::app::v1::ListOrganizationMembersResponse* response) { return this->ListOrganizationMembers(context, request, response); }));} void SetMessageAllocatorFor_ListOrganizationMembers( - ::grpc::MessageAllocator< ::viam::app::v1::ListOrganizationMembersRequest, ::viam::app::v1::ListOrganizationMembersResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(9); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::ListOrganizationMembersRequest, ::viam::app::v1::ListOrganizationMembersResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::ListOrganizationMembersRequest, ::viam::app::v1::ListOrganizationMembersResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(10); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(10); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::ListOrganizationMembersRequest, ::viam::app::v1::ListOrganizationMembersResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_ListOrganizationMembers() override { + ~ExperimentalWithCallbackMethod_ListOrganizationMembers() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -4024,26 +6469,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* ListOrganizationMembers( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::ListOrganizationMembersRequest* /*request*/, ::viam::app::v1::ListOrganizationMembersResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::ListOrganizationMembersRequest* /*request*/, ::viam::app::v1::ListOrganizationMembersResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ListOrganizationMembers( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::ListOrganizationMembersRequest* /*request*/, ::viam::app::v1::ListOrganizationMembersResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_CreateOrganizationInvite : public BaseClass { + class ExperimentalWithCallbackMethod_CreateOrganizationInvite : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_CreateOrganizationInvite() { - ::grpc::Service::MarkMethodCallback(10, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::CreateOrganizationInviteRequest, ::viam::app::v1::CreateOrganizationInviteResponse>( + ExperimentalWithCallbackMethod_CreateOrganizationInvite() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(11, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::CreateOrganizationInviteRequest, ::viam::app::v1::CreateOrganizationInviteResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::CreateOrganizationInviteRequest* request, ::viam::app::v1::CreateOrganizationInviteResponse* response) { return this->CreateOrganizationInvite(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::CreateOrganizationInviteRequest* request, ::viam::app::v1::CreateOrganizationInviteResponse* response) { return this->CreateOrganizationInvite(context, request, response); }));} void SetMessageAllocatorFor_CreateOrganizationInvite( - ::grpc::MessageAllocator< ::viam::app::v1::CreateOrganizationInviteRequest, ::viam::app::v1::CreateOrganizationInviteResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(10); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::CreateOrganizationInviteRequest, ::viam::app::v1::CreateOrganizationInviteResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::CreateOrganizationInviteRequest, ::viam::app::v1::CreateOrganizationInviteResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(11); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(11); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::CreateOrganizationInviteRequest, ::viam::app::v1::CreateOrganizationInviteResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_CreateOrganizationInvite() override { + ~ExperimentalWithCallbackMethod_CreateOrganizationInvite() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -4051,26 +6516,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* CreateOrganizationInvite( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::CreateOrganizationInviteRequest* /*request*/, ::viam::app::v1::CreateOrganizationInviteResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::CreateOrganizationInviteRequest* /*request*/, ::viam::app::v1::CreateOrganizationInviteResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* CreateOrganizationInvite( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::CreateOrganizationInviteRequest* /*request*/, ::viam::app::v1::CreateOrganizationInviteResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_UpdateOrganizationInviteAuthorizations : public BaseClass { + class ExperimentalWithCallbackMethod_UpdateOrganizationInviteAuthorizations : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_UpdateOrganizationInviteAuthorizations() { - ::grpc::Service::MarkMethodCallback(11, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest, ::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse>( + ExperimentalWithCallbackMethod_UpdateOrganizationInviteAuthorizations() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(12, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest, ::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest* request, ::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse* response) { return this->UpdateOrganizationInviteAuthorizations(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest* request, ::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse* response) { return this->UpdateOrganizationInviteAuthorizations(context, request, response); }));} void SetMessageAllocatorFor_UpdateOrganizationInviteAuthorizations( - ::grpc::MessageAllocator< ::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest, ::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(11); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest, ::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest, ::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(12); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(12); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest, ::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_UpdateOrganizationInviteAuthorizations() override { + ~ExperimentalWithCallbackMethod_UpdateOrganizationInviteAuthorizations() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -4078,26 +6563,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* UpdateOrganizationInviteAuthorizations( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest* /*request*/, ::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest* /*request*/, ::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* UpdateOrganizationInviteAuthorizations( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest* /*request*/, ::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_DeleteOrganizationMember : public BaseClass { + class ExperimentalWithCallbackMethod_DeleteOrganizationMember : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_DeleteOrganizationMember() { - ::grpc::Service::MarkMethodCallback(12, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::DeleteOrganizationMemberRequest, ::viam::app::v1::DeleteOrganizationMemberResponse>( + ExperimentalWithCallbackMethod_DeleteOrganizationMember() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(13, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::DeleteOrganizationMemberRequest, ::viam::app::v1::DeleteOrganizationMemberResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::DeleteOrganizationMemberRequest* request, ::viam::app::v1::DeleteOrganizationMemberResponse* response) { return this->DeleteOrganizationMember(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::DeleteOrganizationMemberRequest* request, ::viam::app::v1::DeleteOrganizationMemberResponse* response) { return this->DeleteOrganizationMember(context, request, response); }));} void SetMessageAllocatorFor_DeleteOrganizationMember( - ::grpc::MessageAllocator< ::viam::app::v1::DeleteOrganizationMemberRequest, ::viam::app::v1::DeleteOrganizationMemberResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(12); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::DeleteOrganizationMemberRequest, ::viam::app::v1::DeleteOrganizationMemberResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::DeleteOrganizationMemberRequest, ::viam::app::v1::DeleteOrganizationMemberResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(13); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(13); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::DeleteOrganizationMemberRequest, ::viam::app::v1::DeleteOrganizationMemberResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_DeleteOrganizationMember() override { + ~ExperimentalWithCallbackMethod_DeleteOrganizationMember() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -4105,26 +6610,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DeleteOrganizationMember( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::DeleteOrganizationMemberRequest* /*request*/, ::viam::app::v1::DeleteOrganizationMemberResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::DeleteOrganizationMemberRequest* /*request*/, ::viam::app::v1::DeleteOrganizationMemberResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DeleteOrganizationMember( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::DeleteOrganizationMemberRequest* /*request*/, ::viam::app::v1::DeleteOrganizationMemberResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_DeleteOrganizationInvite : public BaseClass { + class ExperimentalWithCallbackMethod_DeleteOrganizationInvite : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_DeleteOrganizationInvite() { - ::grpc::Service::MarkMethodCallback(13, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::DeleteOrganizationInviteRequest, ::viam::app::v1::DeleteOrganizationInviteResponse>( + ExperimentalWithCallbackMethod_DeleteOrganizationInvite() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(14, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::DeleteOrganizationInviteRequest, ::viam::app::v1::DeleteOrganizationInviteResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::DeleteOrganizationInviteRequest* request, ::viam::app::v1::DeleteOrganizationInviteResponse* response) { return this->DeleteOrganizationInvite(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::DeleteOrganizationInviteRequest* request, ::viam::app::v1::DeleteOrganizationInviteResponse* response) { return this->DeleteOrganizationInvite(context, request, response); }));} void SetMessageAllocatorFor_DeleteOrganizationInvite( - ::grpc::MessageAllocator< ::viam::app::v1::DeleteOrganizationInviteRequest, ::viam::app::v1::DeleteOrganizationInviteResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(13); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::DeleteOrganizationInviteRequest, ::viam::app::v1::DeleteOrganizationInviteResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::DeleteOrganizationInviteRequest, ::viam::app::v1::DeleteOrganizationInviteResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(14); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(14); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::DeleteOrganizationInviteRequest, ::viam::app::v1::DeleteOrganizationInviteResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_DeleteOrganizationInvite() override { + ~ExperimentalWithCallbackMethod_DeleteOrganizationInvite() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -4132,26 +6657,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DeleteOrganizationInvite( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::DeleteOrganizationInviteRequest* /*request*/, ::viam::app::v1::DeleteOrganizationInviteResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::DeleteOrganizationInviteRequest* /*request*/, ::viam::app::v1::DeleteOrganizationInviteResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DeleteOrganizationInvite( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::DeleteOrganizationInviteRequest* /*request*/, ::viam::app::v1::DeleteOrganizationInviteResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_ResendOrganizationInvite : public BaseClass { + class ExperimentalWithCallbackMethod_ResendOrganizationInvite : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_ResendOrganizationInvite() { - ::grpc::Service::MarkMethodCallback(14, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::ResendOrganizationInviteRequest, ::viam::app::v1::ResendOrganizationInviteResponse>( + ExperimentalWithCallbackMethod_ResendOrganizationInvite() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(15, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::ResendOrganizationInviteRequest, ::viam::app::v1::ResendOrganizationInviteResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::ResendOrganizationInviteRequest* request, ::viam::app::v1::ResendOrganizationInviteResponse* response) { return this->ResendOrganizationInvite(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::ResendOrganizationInviteRequest* request, ::viam::app::v1::ResendOrganizationInviteResponse* response) { return this->ResendOrganizationInvite(context, request, response); }));} void SetMessageAllocatorFor_ResendOrganizationInvite( - ::grpc::MessageAllocator< ::viam::app::v1::ResendOrganizationInviteRequest, ::viam::app::v1::ResendOrganizationInviteResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(14); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::ResendOrganizationInviteRequest, ::viam::app::v1::ResendOrganizationInviteResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::ResendOrganizationInviteRequest, ::viam::app::v1::ResendOrganizationInviteResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(15); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(15); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::ResendOrganizationInviteRequest, ::viam::app::v1::ResendOrganizationInviteResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_ResendOrganizationInvite() override { + ~ExperimentalWithCallbackMethod_ResendOrganizationInvite() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -4159,26 +6704,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* ResendOrganizationInvite( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::ResendOrganizationInviteRequest* /*request*/, ::viam::app::v1::ResendOrganizationInviteResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::ResendOrganizationInviteRequest* /*request*/, ::viam::app::v1::ResendOrganizationInviteResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ResendOrganizationInvite( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::ResendOrganizationInviteRequest* /*request*/, ::viam::app::v1::ResendOrganizationInviteResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_EnableBillingService : public BaseClass { + class ExperimentalWithCallbackMethod_EnableBillingService : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_EnableBillingService() { - ::grpc::Service::MarkMethodCallback(15, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::EnableBillingServiceRequest, ::viam::app::v1::EnableBillingServiceResponse>( + ExperimentalWithCallbackMethod_EnableBillingService() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(16, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::EnableBillingServiceRequest, ::viam::app::v1::EnableBillingServiceResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::EnableBillingServiceRequest* request, ::viam::app::v1::EnableBillingServiceResponse* response) { return this->EnableBillingService(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::EnableBillingServiceRequest* request, ::viam::app::v1::EnableBillingServiceResponse* response) { return this->EnableBillingService(context, request, response); }));} void SetMessageAllocatorFor_EnableBillingService( - ::grpc::MessageAllocator< ::viam::app::v1::EnableBillingServiceRequest, ::viam::app::v1::EnableBillingServiceResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(15); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::EnableBillingServiceRequest, ::viam::app::v1::EnableBillingServiceResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::EnableBillingServiceRequest, ::viam::app::v1::EnableBillingServiceResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(16); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(16); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::EnableBillingServiceRequest, ::viam::app::v1::EnableBillingServiceResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_EnableBillingService() override { + ~ExperimentalWithCallbackMethod_EnableBillingService() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -4186,26 +6751,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* EnableBillingService( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::EnableBillingServiceRequest* /*request*/, ::viam::app::v1::EnableBillingServiceResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::EnableBillingServiceRequest* /*request*/, ::viam::app::v1::EnableBillingServiceResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* EnableBillingService( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::EnableBillingServiceRequest* /*request*/, ::viam::app::v1::EnableBillingServiceResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_DisableBillingService : public BaseClass { + class ExperimentalWithCallbackMethod_DisableBillingService : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_DisableBillingService() { - ::grpc::Service::MarkMethodCallback(16, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::DisableBillingServiceRequest, ::viam::app::v1::DisableBillingServiceResponse>( + ExperimentalWithCallbackMethod_DisableBillingService() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(17, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::DisableBillingServiceRequest, ::viam::app::v1::DisableBillingServiceResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::DisableBillingServiceRequest* request, ::viam::app::v1::DisableBillingServiceResponse* response) { return this->DisableBillingService(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::DisableBillingServiceRequest* request, ::viam::app::v1::DisableBillingServiceResponse* response) { return this->DisableBillingService(context, request, response); }));} void SetMessageAllocatorFor_DisableBillingService( - ::grpc::MessageAllocator< ::viam::app::v1::DisableBillingServiceRequest, ::viam::app::v1::DisableBillingServiceResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(16); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::DisableBillingServiceRequest, ::viam::app::v1::DisableBillingServiceResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::DisableBillingServiceRequest, ::viam::app::v1::DisableBillingServiceResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(17); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(17); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::DisableBillingServiceRequest, ::viam::app::v1::DisableBillingServiceResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_DisableBillingService() override { + ~ExperimentalWithCallbackMethod_DisableBillingService() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -4213,26 +6798,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DisableBillingService( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::DisableBillingServiceRequest* /*request*/, ::viam::app::v1::DisableBillingServiceResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::DisableBillingServiceRequest* /*request*/, ::viam::app::v1::DisableBillingServiceResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DisableBillingService( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::DisableBillingServiceRequest* /*request*/, ::viam::app::v1::DisableBillingServiceResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_UpdateBillingService : public BaseClass { + class ExperimentalWithCallbackMethod_UpdateBillingService : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_UpdateBillingService() { - ::grpc::Service::MarkMethodCallback(17, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::UpdateBillingServiceRequest, ::viam::app::v1::UpdateBillingServiceResponse>( + ExperimentalWithCallbackMethod_UpdateBillingService() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(18, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::UpdateBillingServiceRequest, ::viam::app::v1::UpdateBillingServiceResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::UpdateBillingServiceRequest* request, ::viam::app::v1::UpdateBillingServiceResponse* response) { return this->UpdateBillingService(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::UpdateBillingServiceRequest* request, ::viam::app::v1::UpdateBillingServiceResponse* response) { return this->UpdateBillingService(context, request, response); }));} void SetMessageAllocatorFor_UpdateBillingService( - ::grpc::MessageAllocator< ::viam::app::v1::UpdateBillingServiceRequest, ::viam::app::v1::UpdateBillingServiceResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(17); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::UpdateBillingServiceRequest, ::viam::app::v1::UpdateBillingServiceResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::UpdateBillingServiceRequest, ::viam::app::v1::UpdateBillingServiceResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(18); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(18); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::UpdateBillingServiceRequest, ::viam::app::v1::UpdateBillingServiceResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_UpdateBillingService() override { + ~ExperimentalWithCallbackMethod_UpdateBillingService() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -4240,26 +6845,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* UpdateBillingService( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::UpdateBillingServiceRequest* /*request*/, ::viam::app::v1::UpdateBillingServiceResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::UpdateBillingServiceRequest* /*request*/, ::viam::app::v1::UpdateBillingServiceResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* UpdateBillingService( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::UpdateBillingServiceRequest* /*request*/, ::viam::app::v1::UpdateBillingServiceResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetBillingServiceConfig : public BaseClass { + class ExperimentalWithCallbackMethod_GetBillingServiceConfig : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetBillingServiceConfig() { - ::grpc::Service::MarkMethodCallback(18, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::GetBillingServiceConfigRequest, ::viam::app::v1::GetBillingServiceConfigResponse>( + ExperimentalWithCallbackMethod_GetBillingServiceConfig() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(19, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::GetBillingServiceConfigRequest, ::viam::app::v1::GetBillingServiceConfigResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::GetBillingServiceConfigRequest* request, ::viam::app::v1::GetBillingServiceConfigResponse* response) { return this->GetBillingServiceConfig(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::GetBillingServiceConfigRequest* request, ::viam::app::v1::GetBillingServiceConfigResponse* response) { return this->GetBillingServiceConfig(context, request, response); }));} void SetMessageAllocatorFor_GetBillingServiceConfig( - ::grpc::MessageAllocator< ::viam::app::v1::GetBillingServiceConfigRequest, ::viam::app::v1::GetBillingServiceConfigResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(18); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::GetBillingServiceConfigRequest, ::viam::app::v1::GetBillingServiceConfigResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::GetBillingServiceConfigRequest, ::viam::app::v1::GetBillingServiceConfigResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(19); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(19); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::GetBillingServiceConfigRequest, ::viam::app::v1::GetBillingServiceConfigResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetBillingServiceConfig() override { + ~ExperimentalWithCallbackMethod_GetBillingServiceConfig() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -4267,26 +6892,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetBillingServiceConfig( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::GetBillingServiceConfigRequest* /*request*/, ::viam::app::v1::GetBillingServiceConfigResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::GetBillingServiceConfigRequest* /*request*/, ::viam::app::v1::GetBillingServiceConfigResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetBillingServiceConfig( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::GetBillingServiceConfigRequest* /*request*/, ::viam::app::v1::GetBillingServiceConfigResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_OrganizationSetSupportEmail : public BaseClass { + class ExperimentalWithCallbackMethod_OrganizationSetSupportEmail : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_OrganizationSetSupportEmail() { - ::grpc::Service::MarkMethodCallback(19, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::OrganizationSetSupportEmailRequest, ::viam::app::v1::OrganizationSetSupportEmailResponse>( + ExperimentalWithCallbackMethod_OrganizationSetSupportEmail() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(20, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::OrganizationSetSupportEmailRequest, ::viam::app::v1::OrganizationSetSupportEmailResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::OrganizationSetSupportEmailRequest* request, ::viam::app::v1::OrganizationSetSupportEmailResponse* response) { return this->OrganizationSetSupportEmail(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::OrganizationSetSupportEmailRequest* request, ::viam::app::v1::OrganizationSetSupportEmailResponse* response) { return this->OrganizationSetSupportEmail(context, request, response); }));} void SetMessageAllocatorFor_OrganizationSetSupportEmail( - ::grpc::MessageAllocator< ::viam::app::v1::OrganizationSetSupportEmailRequest, ::viam::app::v1::OrganizationSetSupportEmailResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(19); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::OrganizationSetSupportEmailRequest, ::viam::app::v1::OrganizationSetSupportEmailResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::OrganizationSetSupportEmailRequest, ::viam::app::v1::OrganizationSetSupportEmailResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(20); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(20); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::OrganizationSetSupportEmailRequest, ::viam::app::v1::OrganizationSetSupportEmailResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_OrganizationSetSupportEmail() override { + ~ExperimentalWithCallbackMethod_OrganizationSetSupportEmail() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -4294,26 +6939,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* OrganizationSetSupportEmail( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::OrganizationSetSupportEmailRequest* /*request*/, ::viam::app::v1::OrganizationSetSupportEmailResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::OrganizationSetSupportEmailRequest* /*request*/, ::viam::app::v1::OrganizationSetSupportEmailResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* OrganizationSetSupportEmail( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::OrganizationSetSupportEmailRequest* /*request*/, ::viam::app::v1::OrganizationSetSupportEmailResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_OrganizationGetSupportEmail : public BaseClass { + class ExperimentalWithCallbackMethod_OrganizationGetSupportEmail : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_OrganizationGetSupportEmail() { - ::grpc::Service::MarkMethodCallback(20, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::OrganizationGetSupportEmailRequest, ::viam::app::v1::OrganizationGetSupportEmailResponse>( + ExperimentalWithCallbackMethod_OrganizationGetSupportEmail() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(21, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::OrganizationGetSupportEmailRequest, ::viam::app::v1::OrganizationGetSupportEmailResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::OrganizationGetSupportEmailRequest* request, ::viam::app::v1::OrganizationGetSupportEmailResponse* response) { return this->OrganizationGetSupportEmail(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::OrganizationGetSupportEmailRequest* request, ::viam::app::v1::OrganizationGetSupportEmailResponse* response) { return this->OrganizationGetSupportEmail(context, request, response); }));} void SetMessageAllocatorFor_OrganizationGetSupportEmail( - ::grpc::MessageAllocator< ::viam::app::v1::OrganizationGetSupportEmailRequest, ::viam::app::v1::OrganizationGetSupportEmailResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(20); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::OrganizationGetSupportEmailRequest, ::viam::app::v1::OrganizationGetSupportEmailResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::OrganizationGetSupportEmailRequest, ::viam::app::v1::OrganizationGetSupportEmailResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(21); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(21); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::OrganizationGetSupportEmailRequest, ::viam::app::v1::OrganizationGetSupportEmailResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_OrganizationGetSupportEmail() override { + ~ExperimentalWithCallbackMethod_OrganizationGetSupportEmail() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -4321,26 +6986,469 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* OrganizationGetSupportEmail( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::OrganizationGetSupportEmailRequest* /*request*/, ::viam::app::v1::OrganizationGetSupportEmailResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::OrganizationGetSupportEmailRequest* /*request*/, ::viam::app::v1::OrganizationGetSupportEmailResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* OrganizationGetSupportEmail( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::OrganizationGetSupportEmailRequest* /*request*/, ::viam::app::v1::OrganizationGetSupportEmailResponse* /*response*/) + #endif + { return nullptr; } + }; + template + class ExperimentalWithCallbackMethod_OrganizationSetLogo : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithCallbackMethod_OrganizationSetLogo() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(22, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::OrganizationSetLogoRequest, ::viam::app::v1::OrganizationSetLogoResponse>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::OrganizationSetLogoRequest* request, ::viam::app::v1::OrganizationSetLogoResponse* response) { return this->OrganizationSetLogo(context, request, response); }));} + void SetMessageAllocatorFor_OrganizationSetLogo( + ::grpc::experimental::MessageAllocator< ::viam::app::v1::OrganizationSetLogoRequest, ::viam::app::v1::OrganizationSetLogoResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(22); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(22); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::OrganizationSetLogoRequest, ::viam::app::v1::OrganizationSetLogoResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_OrganizationSetLogo() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status OrganizationSetLogo(::grpc::ServerContext* /*context*/, const ::viam::app::v1::OrganizationSetLogoRequest* /*request*/, ::viam::app::v1::OrganizationSetLogoResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* OrganizationSetLogo( + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::OrganizationSetLogoRequest* /*request*/, ::viam::app::v1::OrganizationSetLogoResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* OrganizationSetLogo( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::OrganizationSetLogoRequest* /*request*/, ::viam::app::v1::OrganizationSetLogoResponse* /*response*/) + #endif + { return nullptr; } + }; + template + class ExperimentalWithCallbackMethod_OrganizationGetLogo : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithCallbackMethod_OrganizationGetLogo() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(23, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::OrganizationGetLogoRequest, ::viam::app::v1::OrganizationGetLogoResponse>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::OrganizationGetLogoRequest* request, ::viam::app::v1::OrganizationGetLogoResponse* response) { return this->OrganizationGetLogo(context, request, response); }));} + void SetMessageAllocatorFor_OrganizationGetLogo( + ::grpc::experimental::MessageAllocator< ::viam::app::v1::OrganizationGetLogoRequest, ::viam::app::v1::OrganizationGetLogoResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(23); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(23); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::OrganizationGetLogoRequest, ::viam::app::v1::OrganizationGetLogoResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_OrganizationGetLogo() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status OrganizationGetLogo(::grpc::ServerContext* /*context*/, const ::viam::app::v1::OrganizationGetLogoRequest* /*request*/, ::viam::app::v1::OrganizationGetLogoResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* OrganizationGetLogo( + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::OrganizationGetLogoRequest* /*request*/, ::viam::app::v1::OrganizationGetLogoResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* OrganizationGetLogo( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::OrganizationGetLogoRequest* /*request*/, ::viam::app::v1::OrganizationGetLogoResponse* /*response*/) + #endif + { return nullptr; } + }; + template + class ExperimentalWithCallbackMethod_EnableAuthService : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithCallbackMethod_EnableAuthService() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(24, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::EnableAuthServiceRequest, ::viam::app::v1::EnableAuthServiceResponse>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::EnableAuthServiceRequest* request, ::viam::app::v1::EnableAuthServiceResponse* response) { return this->EnableAuthService(context, request, response); }));} + void SetMessageAllocatorFor_EnableAuthService( + ::grpc::experimental::MessageAllocator< ::viam::app::v1::EnableAuthServiceRequest, ::viam::app::v1::EnableAuthServiceResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(24); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(24); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::EnableAuthServiceRequest, ::viam::app::v1::EnableAuthServiceResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_EnableAuthService() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status EnableAuthService(::grpc::ServerContext* /*context*/, const ::viam::app::v1::EnableAuthServiceRequest* /*request*/, ::viam::app::v1::EnableAuthServiceResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* EnableAuthService( + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::EnableAuthServiceRequest* /*request*/, ::viam::app::v1::EnableAuthServiceResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* EnableAuthService( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::EnableAuthServiceRequest* /*request*/, ::viam::app::v1::EnableAuthServiceResponse* /*response*/) + #endif + { return nullptr; } + }; + template + class ExperimentalWithCallbackMethod_DisableAuthService : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithCallbackMethod_DisableAuthService() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(25, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::DisableAuthServiceRequest, ::viam::app::v1::DisableAuthServiceResponse>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::DisableAuthServiceRequest* request, ::viam::app::v1::DisableAuthServiceResponse* response) { return this->DisableAuthService(context, request, response); }));} + void SetMessageAllocatorFor_DisableAuthService( + ::grpc::experimental::MessageAllocator< ::viam::app::v1::DisableAuthServiceRequest, ::viam::app::v1::DisableAuthServiceResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(25); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(25); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::DisableAuthServiceRequest, ::viam::app::v1::DisableAuthServiceResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_DisableAuthService() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DisableAuthService(::grpc::ServerContext* /*context*/, const ::viam::app::v1::DisableAuthServiceRequest* /*request*/, ::viam::app::v1::DisableAuthServiceResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* DisableAuthService( + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::DisableAuthServiceRequest* /*request*/, ::viam::app::v1::DisableAuthServiceResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DisableAuthService( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::DisableAuthServiceRequest* /*request*/, ::viam::app::v1::DisableAuthServiceResponse* /*response*/) + #endif + { return nullptr; } + }; + template + class ExperimentalWithCallbackMethod_CreateOAuthApp : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithCallbackMethod_CreateOAuthApp() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(26, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::CreateOAuthAppRequest, ::viam::app::v1::CreateOAuthAppResponse>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::CreateOAuthAppRequest* request, ::viam::app::v1::CreateOAuthAppResponse* response) { return this->CreateOAuthApp(context, request, response); }));} + void SetMessageAllocatorFor_CreateOAuthApp( + ::grpc::experimental::MessageAllocator< ::viam::app::v1::CreateOAuthAppRequest, ::viam::app::v1::CreateOAuthAppResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(26); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(26); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::CreateOAuthAppRequest, ::viam::app::v1::CreateOAuthAppResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_CreateOAuthApp() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateOAuthApp(::grpc::ServerContext* /*context*/, const ::viam::app::v1::CreateOAuthAppRequest* /*request*/, ::viam::app::v1::CreateOAuthAppResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* CreateOAuthApp( + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::CreateOAuthAppRequest* /*request*/, ::viam::app::v1::CreateOAuthAppResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* CreateOAuthApp( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::CreateOAuthAppRequest* /*request*/, ::viam::app::v1::CreateOAuthAppResponse* /*response*/) + #endif + { return nullptr; } + }; + template + class ExperimentalWithCallbackMethod_ReadOAuthApp : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithCallbackMethod_ReadOAuthApp() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(27, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::ReadOAuthAppRequest, ::viam::app::v1::ReadOAuthAppResponse>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::ReadOAuthAppRequest* request, ::viam::app::v1::ReadOAuthAppResponse* response) { return this->ReadOAuthApp(context, request, response); }));} + void SetMessageAllocatorFor_ReadOAuthApp( + ::grpc::experimental::MessageAllocator< ::viam::app::v1::ReadOAuthAppRequest, ::viam::app::v1::ReadOAuthAppResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(27); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(27); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::ReadOAuthAppRequest, ::viam::app::v1::ReadOAuthAppResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_ReadOAuthApp() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ReadOAuthApp(::grpc::ServerContext* /*context*/, const ::viam::app::v1::ReadOAuthAppRequest* /*request*/, ::viam::app::v1::ReadOAuthAppResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* ReadOAuthApp( + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::ReadOAuthAppRequest* /*request*/, ::viam::app::v1::ReadOAuthAppResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ReadOAuthApp( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::ReadOAuthAppRequest* /*request*/, ::viam::app::v1::ReadOAuthAppResponse* /*response*/) + #endif + { return nullptr; } + }; + template + class ExperimentalWithCallbackMethod_UpdateOAuthApp : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithCallbackMethod_UpdateOAuthApp() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(28, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::UpdateOAuthAppRequest, ::viam::app::v1::UpdateOAuthAppResponse>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::UpdateOAuthAppRequest* request, ::viam::app::v1::UpdateOAuthAppResponse* response) { return this->UpdateOAuthApp(context, request, response); }));} + void SetMessageAllocatorFor_UpdateOAuthApp( + ::grpc::experimental::MessageAllocator< ::viam::app::v1::UpdateOAuthAppRequest, ::viam::app::v1::UpdateOAuthAppResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(28); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(28); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::UpdateOAuthAppRequest, ::viam::app::v1::UpdateOAuthAppResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_UpdateOAuthApp() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateOAuthApp(::grpc::ServerContext* /*context*/, const ::viam::app::v1::UpdateOAuthAppRequest* /*request*/, ::viam::app::v1::UpdateOAuthAppResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* UpdateOAuthApp( + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::UpdateOAuthAppRequest* /*request*/, ::viam::app::v1::UpdateOAuthAppResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* UpdateOAuthApp( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::UpdateOAuthAppRequest* /*request*/, ::viam::app::v1::UpdateOAuthAppResponse* /*response*/) + #endif + { return nullptr; } + }; + template + class ExperimentalWithCallbackMethod_DeleteOAuthApp : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithCallbackMethod_DeleteOAuthApp() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(29, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::DeleteOAuthAppRequest, ::viam::app::v1::DeleteOAuthAppResponse>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::DeleteOAuthAppRequest* request, ::viam::app::v1::DeleteOAuthAppResponse* response) { return this->DeleteOAuthApp(context, request, response); }));} + void SetMessageAllocatorFor_DeleteOAuthApp( + ::grpc::experimental::MessageAllocator< ::viam::app::v1::DeleteOAuthAppRequest, ::viam::app::v1::DeleteOAuthAppResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(29); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(29); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::DeleteOAuthAppRequest, ::viam::app::v1::DeleteOAuthAppResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_DeleteOAuthApp() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteOAuthApp(::grpc::ServerContext* /*context*/, const ::viam::app::v1::DeleteOAuthAppRequest* /*request*/, ::viam::app::v1::DeleteOAuthAppResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* DeleteOAuthApp( + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::DeleteOAuthAppRequest* /*request*/, ::viam::app::v1::DeleteOAuthAppResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DeleteOAuthApp( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::DeleteOAuthAppRequest* /*request*/, ::viam::app::v1::DeleteOAuthAppResponse* /*response*/) + #endif + { return nullptr; } + }; + template + class ExperimentalWithCallbackMethod_ListOAuthApps : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithCallbackMethod_ListOAuthApps() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(30, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::ListOAuthAppsRequest, ::viam::app::v1::ListOAuthAppsResponse>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::ListOAuthAppsRequest* request, ::viam::app::v1::ListOAuthAppsResponse* response) { return this->ListOAuthApps(context, request, response); }));} + void SetMessageAllocatorFor_ListOAuthApps( + ::grpc::experimental::MessageAllocator< ::viam::app::v1::ListOAuthAppsRequest, ::viam::app::v1::ListOAuthAppsResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(30); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(30); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::ListOAuthAppsRequest, ::viam::app::v1::ListOAuthAppsResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_ListOAuthApps() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListOAuthApps(::grpc::ServerContext* /*context*/, const ::viam::app::v1::ListOAuthAppsRequest* /*request*/, ::viam::app::v1::ListOAuthAppsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* ListOAuthApps( + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::ListOAuthAppsRequest* /*request*/, ::viam::app::v1::ListOAuthAppsResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ListOAuthApps( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::ListOAuthAppsRequest* /*request*/, ::viam::app::v1::ListOAuthAppsResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_CreateLocation : public BaseClass { + class ExperimentalWithCallbackMethod_CreateLocation : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_CreateLocation() { - ::grpc::Service::MarkMethodCallback(21, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::CreateLocationRequest, ::viam::app::v1::CreateLocationResponse>( + ExperimentalWithCallbackMethod_CreateLocation() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(31, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::CreateLocationRequest, ::viam::app::v1::CreateLocationResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::CreateLocationRequest* request, ::viam::app::v1::CreateLocationResponse* response) { return this->CreateLocation(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::CreateLocationRequest* request, ::viam::app::v1::CreateLocationResponse* response) { return this->CreateLocation(context, request, response); }));} void SetMessageAllocatorFor_CreateLocation( - ::grpc::MessageAllocator< ::viam::app::v1::CreateLocationRequest, ::viam::app::v1::CreateLocationResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(21); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::CreateLocationRequest, ::viam::app::v1::CreateLocationResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::CreateLocationRequest, ::viam::app::v1::CreateLocationResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(31); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(31); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::CreateLocationRequest, ::viam::app::v1::CreateLocationResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_CreateLocation() override { + ~ExperimentalWithCallbackMethod_CreateLocation() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -4348,26 +7456,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* CreateLocation( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::CreateLocationRequest* /*request*/, ::viam::app::v1::CreateLocationResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::CreateLocationRequest* /*request*/, ::viam::app::v1::CreateLocationResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* CreateLocation( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::CreateLocationRequest* /*request*/, ::viam::app::v1::CreateLocationResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetLocation : public BaseClass { + class ExperimentalWithCallbackMethod_GetLocation : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetLocation() { - ::grpc::Service::MarkMethodCallback(22, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::GetLocationRequest, ::viam::app::v1::GetLocationResponse>( + ExperimentalWithCallbackMethod_GetLocation() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(32, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::GetLocationRequest, ::viam::app::v1::GetLocationResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::GetLocationRequest* request, ::viam::app::v1::GetLocationResponse* response) { return this->GetLocation(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::GetLocationRequest* request, ::viam::app::v1::GetLocationResponse* response) { return this->GetLocation(context, request, response); }));} void SetMessageAllocatorFor_GetLocation( - ::grpc::MessageAllocator< ::viam::app::v1::GetLocationRequest, ::viam::app::v1::GetLocationResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(22); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::GetLocationRequest, ::viam::app::v1::GetLocationResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::GetLocationRequest, ::viam::app::v1::GetLocationResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(32); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(32); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::GetLocationRequest, ::viam::app::v1::GetLocationResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetLocation() override { + ~ExperimentalWithCallbackMethod_GetLocation() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -4375,26 +7503,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetLocation( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::GetLocationRequest* /*request*/, ::viam::app::v1::GetLocationResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::GetLocationRequest* /*request*/, ::viam::app::v1::GetLocationResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetLocation( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::GetLocationRequest* /*request*/, ::viam::app::v1::GetLocationResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_UpdateLocation : public BaseClass { + class ExperimentalWithCallbackMethod_UpdateLocation : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_UpdateLocation() { - ::grpc::Service::MarkMethodCallback(23, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::UpdateLocationRequest, ::viam::app::v1::UpdateLocationResponse>( + ExperimentalWithCallbackMethod_UpdateLocation() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(33, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::UpdateLocationRequest, ::viam::app::v1::UpdateLocationResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::UpdateLocationRequest* request, ::viam::app::v1::UpdateLocationResponse* response) { return this->UpdateLocation(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::UpdateLocationRequest* request, ::viam::app::v1::UpdateLocationResponse* response) { return this->UpdateLocation(context, request, response); }));} void SetMessageAllocatorFor_UpdateLocation( - ::grpc::MessageAllocator< ::viam::app::v1::UpdateLocationRequest, ::viam::app::v1::UpdateLocationResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(23); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::UpdateLocationRequest, ::viam::app::v1::UpdateLocationResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::UpdateLocationRequest, ::viam::app::v1::UpdateLocationResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(33); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(33); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::UpdateLocationRequest, ::viam::app::v1::UpdateLocationResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_UpdateLocation() override { + ~ExperimentalWithCallbackMethod_UpdateLocation() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -4402,26 +7550,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* UpdateLocation( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::UpdateLocationRequest* /*request*/, ::viam::app::v1::UpdateLocationResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::UpdateLocationRequest* /*request*/, ::viam::app::v1::UpdateLocationResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* UpdateLocation( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::UpdateLocationRequest* /*request*/, ::viam::app::v1::UpdateLocationResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_DeleteLocation : public BaseClass { + class ExperimentalWithCallbackMethod_DeleteLocation : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_DeleteLocation() { - ::grpc::Service::MarkMethodCallback(24, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::DeleteLocationRequest, ::viam::app::v1::DeleteLocationResponse>( + ExperimentalWithCallbackMethod_DeleteLocation() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(34, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::DeleteLocationRequest, ::viam::app::v1::DeleteLocationResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::DeleteLocationRequest* request, ::viam::app::v1::DeleteLocationResponse* response) { return this->DeleteLocation(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::DeleteLocationRequest* request, ::viam::app::v1::DeleteLocationResponse* response) { return this->DeleteLocation(context, request, response); }));} void SetMessageAllocatorFor_DeleteLocation( - ::grpc::MessageAllocator< ::viam::app::v1::DeleteLocationRequest, ::viam::app::v1::DeleteLocationResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(24); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::DeleteLocationRequest, ::viam::app::v1::DeleteLocationResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::DeleteLocationRequest, ::viam::app::v1::DeleteLocationResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(34); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(34); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::DeleteLocationRequest, ::viam::app::v1::DeleteLocationResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_DeleteLocation() override { + ~ExperimentalWithCallbackMethod_DeleteLocation() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -4429,26 +7597,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DeleteLocation( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::DeleteLocationRequest* /*request*/, ::viam::app::v1::DeleteLocationResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::DeleteLocationRequest* /*request*/, ::viam::app::v1::DeleteLocationResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DeleteLocation( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::DeleteLocationRequest* /*request*/, ::viam::app::v1::DeleteLocationResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_ListLocations : public BaseClass { + class ExperimentalWithCallbackMethod_ListLocations : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_ListLocations() { - ::grpc::Service::MarkMethodCallback(25, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::ListLocationsRequest, ::viam::app::v1::ListLocationsResponse>( + ExperimentalWithCallbackMethod_ListLocations() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(35, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::ListLocationsRequest, ::viam::app::v1::ListLocationsResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::ListLocationsRequest* request, ::viam::app::v1::ListLocationsResponse* response) { return this->ListLocations(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::ListLocationsRequest* request, ::viam::app::v1::ListLocationsResponse* response) { return this->ListLocations(context, request, response); }));} void SetMessageAllocatorFor_ListLocations( - ::grpc::MessageAllocator< ::viam::app::v1::ListLocationsRequest, ::viam::app::v1::ListLocationsResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(25); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::ListLocationsRequest, ::viam::app::v1::ListLocationsResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::ListLocationsRequest, ::viam::app::v1::ListLocationsResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(35); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(35); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::ListLocationsRequest, ::viam::app::v1::ListLocationsResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_ListLocations() override { + ~ExperimentalWithCallbackMethod_ListLocations() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -4456,26 +7644,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* ListLocations( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::ListLocationsRequest* /*request*/, ::viam::app::v1::ListLocationsResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::ListLocationsRequest* /*request*/, ::viam::app::v1::ListLocationsResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ListLocations( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::ListLocationsRequest* /*request*/, ::viam::app::v1::ListLocationsResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_ShareLocation : public BaseClass { + class ExperimentalWithCallbackMethod_ShareLocation : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_ShareLocation() { - ::grpc::Service::MarkMethodCallback(26, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::ShareLocationRequest, ::viam::app::v1::ShareLocationResponse>( + ExperimentalWithCallbackMethod_ShareLocation() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(36, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::ShareLocationRequest, ::viam::app::v1::ShareLocationResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::ShareLocationRequest* request, ::viam::app::v1::ShareLocationResponse* response) { return this->ShareLocation(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::ShareLocationRequest* request, ::viam::app::v1::ShareLocationResponse* response) { return this->ShareLocation(context, request, response); }));} void SetMessageAllocatorFor_ShareLocation( - ::grpc::MessageAllocator< ::viam::app::v1::ShareLocationRequest, ::viam::app::v1::ShareLocationResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(26); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::ShareLocationRequest, ::viam::app::v1::ShareLocationResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::ShareLocationRequest, ::viam::app::v1::ShareLocationResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(36); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(36); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::ShareLocationRequest, ::viam::app::v1::ShareLocationResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_ShareLocation() override { + ~ExperimentalWithCallbackMethod_ShareLocation() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -4483,26 +7691,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* ShareLocation( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::ShareLocationRequest* /*request*/, ::viam::app::v1::ShareLocationResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::ShareLocationRequest* /*request*/, ::viam::app::v1::ShareLocationResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ShareLocation( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::ShareLocationRequest* /*request*/, ::viam::app::v1::ShareLocationResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_UnshareLocation : public BaseClass { + class ExperimentalWithCallbackMethod_UnshareLocation : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_UnshareLocation() { - ::grpc::Service::MarkMethodCallback(27, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::UnshareLocationRequest, ::viam::app::v1::UnshareLocationResponse>( + ExperimentalWithCallbackMethod_UnshareLocation() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(37, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::UnshareLocationRequest, ::viam::app::v1::UnshareLocationResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::UnshareLocationRequest* request, ::viam::app::v1::UnshareLocationResponse* response) { return this->UnshareLocation(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::UnshareLocationRequest* request, ::viam::app::v1::UnshareLocationResponse* response) { return this->UnshareLocation(context, request, response); }));} void SetMessageAllocatorFor_UnshareLocation( - ::grpc::MessageAllocator< ::viam::app::v1::UnshareLocationRequest, ::viam::app::v1::UnshareLocationResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(27); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::UnshareLocationRequest, ::viam::app::v1::UnshareLocationResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::UnshareLocationRequest, ::viam::app::v1::UnshareLocationResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(37); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(37); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::UnshareLocationRequest, ::viam::app::v1::UnshareLocationResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_UnshareLocation() override { + ~ExperimentalWithCallbackMethod_UnshareLocation() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -4510,26 +7738,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* UnshareLocation( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::UnshareLocationRequest* /*request*/, ::viam::app::v1::UnshareLocationResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::UnshareLocationRequest* /*request*/, ::viam::app::v1::UnshareLocationResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* UnshareLocation( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::UnshareLocationRequest* /*request*/, ::viam::app::v1::UnshareLocationResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_LocationAuth : public BaseClass { + class ExperimentalWithCallbackMethod_LocationAuth : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_LocationAuth() { - ::grpc::Service::MarkMethodCallback(28, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::LocationAuthRequest, ::viam::app::v1::LocationAuthResponse>( + ExperimentalWithCallbackMethod_LocationAuth() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(38, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::LocationAuthRequest, ::viam::app::v1::LocationAuthResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::LocationAuthRequest* request, ::viam::app::v1::LocationAuthResponse* response) { return this->LocationAuth(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::LocationAuthRequest* request, ::viam::app::v1::LocationAuthResponse* response) { return this->LocationAuth(context, request, response); }));} void SetMessageAllocatorFor_LocationAuth( - ::grpc::MessageAllocator< ::viam::app::v1::LocationAuthRequest, ::viam::app::v1::LocationAuthResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(28); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::LocationAuthRequest, ::viam::app::v1::LocationAuthResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::LocationAuthRequest, ::viam::app::v1::LocationAuthResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(38); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(38); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::LocationAuthRequest, ::viam::app::v1::LocationAuthResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_LocationAuth() override { + ~ExperimentalWithCallbackMethod_LocationAuth() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -4537,26 +7785,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* LocationAuth( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::LocationAuthRequest* /*request*/, ::viam::app::v1::LocationAuthResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::LocationAuthRequest* /*request*/, ::viam::app::v1::LocationAuthResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* LocationAuth( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::LocationAuthRequest* /*request*/, ::viam::app::v1::LocationAuthResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_CreateLocationSecret : public BaseClass { + class ExperimentalWithCallbackMethod_CreateLocationSecret : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_CreateLocationSecret() { - ::grpc::Service::MarkMethodCallback(29, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::CreateLocationSecretRequest, ::viam::app::v1::CreateLocationSecretResponse>( + ExperimentalWithCallbackMethod_CreateLocationSecret() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(39, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::CreateLocationSecretRequest, ::viam::app::v1::CreateLocationSecretResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::CreateLocationSecretRequest* request, ::viam::app::v1::CreateLocationSecretResponse* response) { return this->CreateLocationSecret(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::CreateLocationSecretRequest* request, ::viam::app::v1::CreateLocationSecretResponse* response) { return this->CreateLocationSecret(context, request, response); }));} void SetMessageAllocatorFor_CreateLocationSecret( - ::grpc::MessageAllocator< ::viam::app::v1::CreateLocationSecretRequest, ::viam::app::v1::CreateLocationSecretResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(29); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::CreateLocationSecretRequest, ::viam::app::v1::CreateLocationSecretResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::CreateLocationSecretRequest, ::viam::app::v1::CreateLocationSecretResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(39); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(39); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::CreateLocationSecretRequest, ::viam::app::v1::CreateLocationSecretResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_CreateLocationSecret() override { + ~ExperimentalWithCallbackMethod_CreateLocationSecret() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -4564,26 +7832,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* CreateLocationSecret( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::CreateLocationSecretRequest* /*request*/, ::viam::app::v1::CreateLocationSecretResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::CreateLocationSecretRequest* /*request*/, ::viam::app::v1::CreateLocationSecretResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* CreateLocationSecret( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::CreateLocationSecretRequest* /*request*/, ::viam::app::v1::CreateLocationSecretResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_DeleteLocationSecret : public BaseClass { + class ExperimentalWithCallbackMethod_DeleteLocationSecret : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_DeleteLocationSecret() { - ::grpc::Service::MarkMethodCallback(30, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::DeleteLocationSecretRequest, ::viam::app::v1::DeleteLocationSecretResponse>( + ExperimentalWithCallbackMethod_DeleteLocationSecret() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(40, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::DeleteLocationSecretRequest, ::viam::app::v1::DeleteLocationSecretResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::DeleteLocationSecretRequest* request, ::viam::app::v1::DeleteLocationSecretResponse* response) { return this->DeleteLocationSecret(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::DeleteLocationSecretRequest* request, ::viam::app::v1::DeleteLocationSecretResponse* response) { return this->DeleteLocationSecret(context, request, response); }));} void SetMessageAllocatorFor_DeleteLocationSecret( - ::grpc::MessageAllocator< ::viam::app::v1::DeleteLocationSecretRequest, ::viam::app::v1::DeleteLocationSecretResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(30); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::DeleteLocationSecretRequest, ::viam::app::v1::DeleteLocationSecretResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::DeleteLocationSecretRequest, ::viam::app::v1::DeleteLocationSecretResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(40); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(40); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::DeleteLocationSecretRequest, ::viam::app::v1::DeleteLocationSecretResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_DeleteLocationSecret() override { + ~ExperimentalWithCallbackMethod_DeleteLocationSecret() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -4591,26 +7879,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DeleteLocationSecret( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::DeleteLocationSecretRequest* /*request*/, ::viam::app::v1::DeleteLocationSecretResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::DeleteLocationSecretRequest* /*request*/, ::viam::app::v1::DeleteLocationSecretResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DeleteLocationSecret( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::DeleteLocationSecretRequest* /*request*/, ::viam::app::v1::DeleteLocationSecretResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetRobot : public BaseClass { + class ExperimentalWithCallbackMethod_GetRobot : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetRobot() { - ::grpc::Service::MarkMethodCallback(31, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::GetRobotRequest, ::viam::app::v1::GetRobotResponse>( + ExperimentalWithCallbackMethod_GetRobot() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(41, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::GetRobotRequest, ::viam::app::v1::GetRobotResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::GetRobotRequest* request, ::viam::app::v1::GetRobotResponse* response) { return this->GetRobot(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::GetRobotRequest* request, ::viam::app::v1::GetRobotResponse* response) { return this->GetRobot(context, request, response); }));} void SetMessageAllocatorFor_GetRobot( - ::grpc::MessageAllocator< ::viam::app::v1::GetRobotRequest, ::viam::app::v1::GetRobotResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(31); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::GetRobotRequest, ::viam::app::v1::GetRobotResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::GetRobotRequest, ::viam::app::v1::GetRobotResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(41); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(41); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::GetRobotRequest, ::viam::app::v1::GetRobotResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetRobot() override { + ~ExperimentalWithCallbackMethod_GetRobot() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -4618,26 +7926,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetRobot( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::GetRobotRequest* /*request*/, ::viam::app::v1::GetRobotResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::GetRobotRequest* /*request*/, ::viam::app::v1::GetRobotResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetRobot( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::GetRobotRequest* /*request*/, ::viam::app::v1::GetRobotResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetRoverRentalRobots : public BaseClass { + class ExperimentalWithCallbackMethod_GetRoverRentalRobots : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetRoverRentalRobots() { - ::grpc::Service::MarkMethodCallback(32, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::GetRoverRentalRobotsRequest, ::viam::app::v1::GetRoverRentalRobotsResponse>( + ExperimentalWithCallbackMethod_GetRoverRentalRobots() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(42, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::GetRoverRentalRobotsRequest, ::viam::app::v1::GetRoverRentalRobotsResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::GetRoverRentalRobotsRequest* request, ::viam::app::v1::GetRoverRentalRobotsResponse* response) { return this->GetRoverRentalRobots(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::GetRoverRentalRobotsRequest* request, ::viam::app::v1::GetRoverRentalRobotsResponse* response) { return this->GetRoverRentalRobots(context, request, response); }));} void SetMessageAllocatorFor_GetRoverRentalRobots( - ::grpc::MessageAllocator< ::viam::app::v1::GetRoverRentalRobotsRequest, ::viam::app::v1::GetRoverRentalRobotsResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(32); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::GetRoverRentalRobotsRequest, ::viam::app::v1::GetRoverRentalRobotsResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::GetRoverRentalRobotsRequest, ::viam::app::v1::GetRoverRentalRobotsResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(42); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(42); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::GetRoverRentalRobotsRequest, ::viam::app::v1::GetRoverRentalRobotsResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetRoverRentalRobots() override { + ~ExperimentalWithCallbackMethod_GetRoverRentalRobots() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -4645,26 +7973,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetRoverRentalRobots( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::GetRoverRentalRobotsRequest* /*request*/, ::viam::app::v1::GetRoverRentalRobotsResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::GetRoverRentalRobotsRequest* /*request*/, ::viam::app::v1::GetRoverRentalRobotsResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetRoverRentalRobots( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::GetRoverRentalRobotsRequest* /*request*/, ::viam::app::v1::GetRoverRentalRobotsResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetRobotParts : public BaseClass { + class ExperimentalWithCallbackMethod_GetRobotParts : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetRobotParts() { - ::grpc::Service::MarkMethodCallback(33, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::GetRobotPartsRequest, ::viam::app::v1::GetRobotPartsResponse>( + ExperimentalWithCallbackMethod_GetRobotParts() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(43, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::GetRobotPartsRequest, ::viam::app::v1::GetRobotPartsResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::GetRobotPartsRequest* request, ::viam::app::v1::GetRobotPartsResponse* response) { return this->GetRobotParts(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::GetRobotPartsRequest* request, ::viam::app::v1::GetRobotPartsResponse* response) { return this->GetRobotParts(context, request, response); }));} void SetMessageAllocatorFor_GetRobotParts( - ::grpc::MessageAllocator< ::viam::app::v1::GetRobotPartsRequest, ::viam::app::v1::GetRobotPartsResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(33); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::GetRobotPartsRequest, ::viam::app::v1::GetRobotPartsResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::GetRobotPartsRequest, ::viam::app::v1::GetRobotPartsResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(43); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(43); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::GetRobotPartsRequest, ::viam::app::v1::GetRobotPartsResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetRobotParts() override { + ~ExperimentalWithCallbackMethod_GetRobotParts() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -4672,26 +8020,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetRobotParts( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::GetRobotPartsRequest* /*request*/, ::viam::app::v1::GetRobotPartsResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::GetRobotPartsRequest* /*request*/, ::viam::app::v1::GetRobotPartsResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetRobotParts( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::GetRobotPartsRequest* /*request*/, ::viam::app::v1::GetRobotPartsResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetRobotPart : public BaseClass { + class ExperimentalWithCallbackMethod_GetRobotPart : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetRobotPart() { - ::grpc::Service::MarkMethodCallback(34, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::GetRobotPartRequest, ::viam::app::v1::GetRobotPartResponse>( + ExperimentalWithCallbackMethod_GetRobotPart() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(44, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::GetRobotPartRequest, ::viam::app::v1::GetRobotPartResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::GetRobotPartRequest* request, ::viam::app::v1::GetRobotPartResponse* response) { return this->GetRobotPart(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::GetRobotPartRequest* request, ::viam::app::v1::GetRobotPartResponse* response) { return this->GetRobotPart(context, request, response); }));} void SetMessageAllocatorFor_GetRobotPart( - ::grpc::MessageAllocator< ::viam::app::v1::GetRobotPartRequest, ::viam::app::v1::GetRobotPartResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(34); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::GetRobotPartRequest, ::viam::app::v1::GetRobotPartResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::GetRobotPartRequest, ::viam::app::v1::GetRobotPartResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(44); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(44); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::GetRobotPartRequest, ::viam::app::v1::GetRobotPartResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetRobotPart() override { + ~ExperimentalWithCallbackMethod_GetRobotPart() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -4699,26 +8067,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetRobotPart( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::GetRobotPartRequest* /*request*/, ::viam::app::v1::GetRobotPartResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::GetRobotPartRequest* /*request*/, ::viam::app::v1::GetRobotPartResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetRobotPart( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::GetRobotPartRequest* /*request*/, ::viam::app::v1::GetRobotPartResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetRobotPartLogs : public BaseClass { + class ExperimentalWithCallbackMethod_GetRobotPartLogs : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetRobotPartLogs() { - ::grpc::Service::MarkMethodCallback(35, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::GetRobotPartLogsRequest, ::viam::app::v1::GetRobotPartLogsResponse>( + ExperimentalWithCallbackMethod_GetRobotPartLogs() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(45, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::GetRobotPartLogsRequest, ::viam::app::v1::GetRobotPartLogsResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::GetRobotPartLogsRequest* request, ::viam::app::v1::GetRobotPartLogsResponse* response) { return this->GetRobotPartLogs(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::GetRobotPartLogsRequest* request, ::viam::app::v1::GetRobotPartLogsResponse* response) { return this->GetRobotPartLogs(context, request, response); }));} void SetMessageAllocatorFor_GetRobotPartLogs( - ::grpc::MessageAllocator< ::viam::app::v1::GetRobotPartLogsRequest, ::viam::app::v1::GetRobotPartLogsResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(35); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::GetRobotPartLogsRequest, ::viam::app::v1::GetRobotPartLogsResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::GetRobotPartLogsRequest, ::viam::app::v1::GetRobotPartLogsResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(45); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(45); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::GetRobotPartLogsRequest, ::viam::app::v1::GetRobotPartLogsResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetRobotPartLogs() override { + ~ExperimentalWithCallbackMethod_GetRobotPartLogs() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -4726,21 +8114,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetRobotPartLogs( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::GetRobotPartLogsRequest* /*request*/, ::viam::app::v1::GetRobotPartLogsResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::GetRobotPartLogsRequest* /*request*/, ::viam::app::v1::GetRobotPartLogsResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetRobotPartLogs( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::GetRobotPartLogsRequest* /*request*/, ::viam::app::v1::GetRobotPartLogsResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_TailRobotPartLogs : public BaseClass { + class ExperimentalWithCallbackMethod_TailRobotPartLogs : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_TailRobotPartLogs() { - ::grpc::Service::MarkMethodCallback(36, - new ::grpc::internal::CallbackServerStreamingHandler< ::viam::app::v1::TailRobotPartLogsRequest, ::viam::app::v1::TailRobotPartLogsResponse>( + ExperimentalWithCallbackMethod_TailRobotPartLogs() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(46, + new ::grpc_impl::internal::CallbackServerStreamingHandler< ::viam::app::v1::TailRobotPartLogsRequest, ::viam::app::v1::TailRobotPartLogsResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::TailRobotPartLogsRequest* request) { return this->TailRobotPartLogs(context, request); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::TailRobotPartLogsRequest* request) { return this->TailRobotPartLogs(context, request); })); } - ~WithCallbackMethod_TailRobotPartLogs() override { + ~ExperimentalWithCallbackMethod_TailRobotPartLogs() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -4748,26 +8152,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerWriteReactor< ::viam::app::v1::TailRobotPartLogsResponse>* TailRobotPartLogs( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::TailRobotPartLogsRequest* /*request*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::TailRobotPartLogsRequest* /*request*/) + #else + virtual ::grpc::experimental::ServerWriteReactor< ::viam::app::v1::TailRobotPartLogsResponse>* TailRobotPartLogs( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::TailRobotPartLogsRequest* /*request*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetRobotPartHistory : public BaseClass { + class ExperimentalWithCallbackMethod_GetRobotPartHistory : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetRobotPartHistory() { - ::grpc::Service::MarkMethodCallback(37, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::GetRobotPartHistoryRequest, ::viam::app::v1::GetRobotPartHistoryResponse>( + ExperimentalWithCallbackMethod_GetRobotPartHistory() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(47, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::GetRobotPartHistoryRequest, ::viam::app::v1::GetRobotPartHistoryResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::GetRobotPartHistoryRequest* request, ::viam::app::v1::GetRobotPartHistoryResponse* response) { return this->GetRobotPartHistory(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::GetRobotPartHistoryRequest* request, ::viam::app::v1::GetRobotPartHistoryResponse* response) { return this->GetRobotPartHistory(context, request, response); }));} void SetMessageAllocatorFor_GetRobotPartHistory( - ::grpc::MessageAllocator< ::viam::app::v1::GetRobotPartHistoryRequest, ::viam::app::v1::GetRobotPartHistoryResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(37); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::GetRobotPartHistoryRequest, ::viam::app::v1::GetRobotPartHistoryResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::GetRobotPartHistoryRequest, ::viam::app::v1::GetRobotPartHistoryResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(47); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(47); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::GetRobotPartHistoryRequest, ::viam::app::v1::GetRobotPartHistoryResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetRobotPartHistory() override { + ~ExperimentalWithCallbackMethod_GetRobotPartHistory() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -4775,26 +8199,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetRobotPartHistory( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::GetRobotPartHistoryRequest* /*request*/, ::viam::app::v1::GetRobotPartHistoryResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::GetRobotPartHistoryRequest* /*request*/, ::viam::app::v1::GetRobotPartHistoryResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetRobotPartHistory( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::GetRobotPartHistoryRequest* /*request*/, ::viam::app::v1::GetRobotPartHistoryResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_UpdateRobotPart : public BaseClass { + class ExperimentalWithCallbackMethod_UpdateRobotPart : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_UpdateRobotPart() { - ::grpc::Service::MarkMethodCallback(38, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::UpdateRobotPartRequest, ::viam::app::v1::UpdateRobotPartResponse>( + ExperimentalWithCallbackMethod_UpdateRobotPart() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(48, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::UpdateRobotPartRequest, ::viam::app::v1::UpdateRobotPartResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::UpdateRobotPartRequest* request, ::viam::app::v1::UpdateRobotPartResponse* response) { return this->UpdateRobotPart(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::UpdateRobotPartRequest* request, ::viam::app::v1::UpdateRobotPartResponse* response) { return this->UpdateRobotPart(context, request, response); }));} void SetMessageAllocatorFor_UpdateRobotPart( - ::grpc::MessageAllocator< ::viam::app::v1::UpdateRobotPartRequest, ::viam::app::v1::UpdateRobotPartResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(38); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::UpdateRobotPartRequest, ::viam::app::v1::UpdateRobotPartResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::UpdateRobotPartRequest, ::viam::app::v1::UpdateRobotPartResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(48); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(48); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::UpdateRobotPartRequest, ::viam::app::v1::UpdateRobotPartResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_UpdateRobotPart() override { + ~ExperimentalWithCallbackMethod_UpdateRobotPart() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -4802,26 +8246,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* UpdateRobotPart( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::UpdateRobotPartRequest* /*request*/, ::viam::app::v1::UpdateRobotPartResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::UpdateRobotPartRequest* /*request*/, ::viam::app::v1::UpdateRobotPartResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* UpdateRobotPart( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::UpdateRobotPartRequest* /*request*/, ::viam::app::v1::UpdateRobotPartResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_NewRobotPart : public BaseClass { + class ExperimentalWithCallbackMethod_NewRobotPart : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_NewRobotPart() { - ::grpc::Service::MarkMethodCallback(39, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::NewRobotPartRequest, ::viam::app::v1::NewRobotPartResponse>( + ExperimentalWithCallbackMethod_NewRobotPart() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(49, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::NewRobotPartRequest, ::viam::app::v1::NewRobotPartResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::NewRobotPartRequest* request, ::viam::app::v1::NewRobotPartResponse* response) { return this->NewRobotPart(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::NewRobotPartRequest* request, ::viam::app::v1::NewRobotPartResponse* response) { return this->NewRobotPart(context, request, response); }));} void SetMessageAllocatorFor_NewRobotPart( - ::grpc::MessageAllocator< ::viam::app::v1::NewRobotPartRequest, ::viam::app::v1::NewRobotPartResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(39); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::NewRobotPartRequest, ::viam::app::v1::NewRobotPartResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::NewRobotPartRequest, ::viam::app::v1::NewRobotPartResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(49); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(49); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::NewRobotPartRequest, ::viam::app::v1::NewRobotPartResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_NewRobotPart() override { + ~ExperimentalWithCallbackMethod_NewRobotPart() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -4829,26 +8293,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* NewRobotPart( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::NewRobotPartRequest* /*request*/, ::viam::app::v1::NewRobotPartResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::NewRobotPartRequest* /*request*/, ::viam::app::v1::NewRobotPartResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* NewRobotPart( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::NewRobotPartRequest* /*request*/, ::viam::app::v1::NewRobotPartResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_DeleteRobotPart : public BaseClass { + class ExperimentalWithCallbackMethod_DeleteRobotPart : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_DeleteRobotPart() { - ::grpc::Service::MarkMethodCallback(40, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::DeleteRobotPartRequest, ::viam::app::v1::DeleteRobotPartResponse>( + ExperimentalWithCallbackMethod_DeleteRobotPart() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(50, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::DeleteRobotPartRequest, ::viam::app::v1::DeleteRobotPartResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::DeleteRobotPartRequest* request, ::viam::app::v1::DeleteRobotPartResponse* response) { return this->DeleteRobotPart(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::DeleteRobotPartRequest* request, ::viam::app::v1::DeleteRobotPartResponse* response) { return this->DeleteRobotPart(context, request, response); }));} void SetMessageAllocatorFor_DeleteRobotPart( - ::grpc::MessageAllocator< ::viam::app::v1::DeleteRobotPartRequest, ::viam::app::v1::DeleteRobotPartResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(40); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::DeleteRobotPartRequest, ::viam::app::v1::DeleteRobotPartResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::DeleteRobotPartRequest, ::viam::app::v1::DeleteRobotPartResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(50); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(50); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::DeleteRobotPartRequest, ::viam::app::v1::DeleteRobotPartResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_DeleteRobotPart() override { + ~ExperimentalWithCallbackMethod_DeleteRobotPart() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -4856,26 +8340,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DeleteRobotPart( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::DeleteRobotPartRequest* /*request*/, ::viam::app::v1::DeleteRobotPartResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::DeleteRobotPartRequest* /*request*/, ::viam::app::v1::DeleteRobotPartResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DeleteRobotPart( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::DeleteRobotPartRequest* /*request*/, ::viam::app::v1::DeleteRobotPartResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetRobotAPIKeys : public BaseClass { + class ExperimentalWithCallbackMethod_GetRobotAPIKeys : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetRobotAPIKeys() { - ::grpc::Service::MarkMethodCallback(41, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::GetRobotAPIKeysRequest, ::viam::app::v1::GetRobotAPIKeysResponse>( + ExperimentalWithCallbackMethod_GetRobotAPIKeys() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(51, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::GetRobotAPIKeysRequest, ::viam::app::v1::GetRobotAPIKeysResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::GetRobotAPIKeysRequest* request, ::viam::app::v1::GetRobotAPIKeysResponse* response) { return this->GetRobotAPIKeys(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::GetRobotAPIKeysRequest* request, ::viam::app::v1::GetRobotAPIKeysResponse* response) { return this->GetRobotAPIKeys(context, request, response); }));} void SetMessageAllocatorFor_GetRobotAPIKeys( - ::grpc::MessageAllocator< ::viam::app::v1::GetRobotAPIKeysRequest, ::viam::app::v1::GetRobotAPIKeysResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(41); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::GetRobotAPIKeysRequest, ::viam::app::v1::GetRobotAPIKeysResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::GetRobotAPIKeysRequest, ::viam::app::v1::GetRobotAPIKeysResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(51); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(51); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::GetRobotAPIKeysRequest, ::viam::app::v1::GetRobotAPIKeysResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetRobotAPIKeys() override { + ~ExperimentalWithCallbackMethod_GetRobotAPIKeys() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -4883,26 +8387,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetRobotAPIKeys( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::GetRobotAPIKeysRequest* /*request*/, ::viam::app::v1::GetRobotAPIKeysResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::GetRobotAPIKeysRequest* /*request*/, ::viam::app::v1::GetRobotAPIKeysResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetRobotAPIKeys( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::GetRobotAPIKeysRequest* /*request*/, ::viam::app::v1::GetRobotAPIKeysResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_MarkPartAsMain : public BaseClass { + class ExperimentalWithCallbackMethod_MarkPartAsMain : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_MarkPartAsMain() { - ::grpc::Service::MarkMethodCallback(42, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::MarkPartAsMainRequest, ::viam::app::v1::MarkPartAsMainResponse>( + ExperimentalWithCallbackMethod_MarkPartAsMain() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(52, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::MarkPartAsMainRequest, ::viam::app::v1::MarkPartAsMainResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::MarkPartAsMainRequest* request, ::viam::app::v1::MarkPartAsMainResponse* response) { return this->MarkPartAsMain(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::MarkPartAsMainRequest* request, ::viam::app::v1::MarkPartAsMainResponse* response) { return this->MarkPartAsMain(context, request, response); }));} void SetMessageAllocatorFor_MarkPartAsMain( - ::grpc::MessageAllocator< ::viam::app::v1::MarkPartAsMainRequest, ::viam::app::v1::MarkPartAsMainResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(42); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::MarkPartAsMainRequest, ::viam::app::v1::MarkPartAsMainResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::MarkPartAsMainRequest, ::viam::app::v1::MarkPartAsMainResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(52); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(52); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::MarkPartAsMainRequest, ::viam::app::v1::MarkPartAsMainResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_MarkPartAsMain() override { + ~ExperimentalWithCallbackMethod_MarkPartAsMain() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -4910,26 +8434,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* MarkPartAsMain( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::MarkPartAsMainRequest* /*request*/, ::viam::app::v1::MarkPartAsMainResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::MarkPartAsMainRequest* /*request*/, ::viam::app::v1::MarkPartAsMainResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* MarkPartAsMain( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::MarkPartAsMainRequest* /*request*/, ::viam::app::v1::MarkPartAsMainResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_MarkPartForRestart : public BaseClass { + class ExperimentalWithCallbackMethod_MarkPartForRestart : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_MarkPartForRestart() { - ::grpc::Service::MarkMethodCallback(43, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::MarkPartForRestartRequest, ::viam::app::v1::MarkPartForRestartResponse>( + ExperimentalWithCallbackMethod_MarkPartForRestart() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(53, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::MarkPartForRestartRequest, ::viam::app::v1::MarkPartForRestartResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::MarkPartForRestartRequest* request, ::viam::app::v1::MarkPartForRestartResponse* response) { return this->MarkPartForRestart(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::MarkPartForRestartRequest* request, ::viam::app::v1::MarkPartForRestartResponse* response) { return this->MarkPartForRestart(context, request, response); }));} void SetMessageAllocatorFor_MarkPartForRestart( - ::grpc::MessageAllocator< ::viam::app::v1::MarkPartForRestartRequest, ::viam::app::v1::MarkPartForRestartResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(43); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::MarkPartForRestartRequest, ::viam::app::v1::MarkPartForRestartResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::MarkPartForRestartRequest, ::viam::app::v1::MarkPartForRestartResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(53); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(53); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::MarkPartForRestartRequest, ::viam::app::v1::MarkPartForRestartResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_MarkPartForRestart() override { + ~ExperimentalWithCallbackMethod_MarkPartForRestart() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -4937,26 +8481,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* MarkPartForRestart( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::MarkPartForRestartRequest* /*request*/, ::viam::app::v1::MarkPartForRestartResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::MarkPartForRestartRequest* /*request*/, ::viam::app::v1::MarkPartForRestartResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* MarkPartForRestart( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::MarkPartForRestartRequest* /*request*/, ::viam::app::v1::MarkPartForRestartResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_CreateRobotPartSecret : public BaseClass { + class ExperimentalWithCallbackMethod_CreateRobotPartSecret : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_CreateRobotPartSecret() { - ::grpc::Service::MarkMethodCallback(44, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::CreateRobotPartSecretRequest, ::viam::app::v1::CreateRobotPartSecretResponse>( + ExperimentalWithCallbackMethod_CreateRobotPartSecret() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(54, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::CreateRobotPartSecretRequest, ::viam::app::v1::CreateRobotPartSecretResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::CreateRobotPartSecretRequest* request, ::viam::app::v1::CreateRobotPartSecretResponse* response) { return this->CreateRobotPartSecret(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::CreateRobotPartSecretRequest* request, ::viam::app::v1::CreateRobotPartSecretResponse* response) { return this->CreateRobotPartSecret(context, request, response); }));} void SetMessageAllocatorFor_CreateRobotPartSecret( - ::grpc::MessageAllocator< ::viam::app::v1::CreateRobotPartSecretRequest, ::viam::app::v1::CreateRobotPartSecretResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(44); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::CreateRobotPartSecretRequest, ::viam::app::v1::CreateRobotPartSecretResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::CreateRobotPartSecretRequest, ::viam::app::v1::CreateRobotPartSecretResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(54); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(54); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::CreateRobotPartSecretRequest, ::viam::app::v1::CreateRobotPartSecretResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_CreateRobotPartSecret() override { + ~ExperimentalWithCallbackMethod_CreateRobotPartSecret() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -4964,26 +8528,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* CreateRobotPartSecret( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::CreateRobotPartSecretRequest* /*request*/, ::viam::app::v1::CreateRobotPartSecretResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::CreateRobotPartSecretRequest* /*request*/, ::viam::app::v1::CreateRobotPartSecretResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* CreateRobotPartSecret( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::CreateRobotPartSecretRequest* /*request*/, ::viam::app::v1::CreateRobotPartSecretResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_DeleteRobotPartSecret : public BaseClass { + class ExperimentalWithCallbackMethod_DeleteRobotPartSecret : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_DeleteRobotPartSecret() { - ::grpc::Service::MarkMethodCallback(45, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::DeleteRobotPartSecretRequest, ::viam::app::v1::DeleteRobotPartSecretResponse>( + ExperimentalWithCallbackMethod_DeleteRobotPartSecret() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(55, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::DeleteRobotPartSecretRequest, ::viam::app::v1::DeleteRobotPartSecretResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::DeleteRobotPartSecretRequest* request, ::viam::app::v1::DeleteRobotPartSecretResponse* response) { return this->DeleteRobotPartSecret(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::DeleteRobotPartSecretRequest* request, ::viam::app::v1::DeleteRobotPartSecretResponse* response) { return this->DeleteRobotPartSecret(context, request, response); }));} void SetMessageAllocatorFor_DeleteRobotPartSecret( - ::grpc::MessageAllocator< ::viam::app::v1::DeleteRobotPartSecretRequest, ::viam::app::v1::DeleteRobotPartSecretResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(45); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::DeleteRobotPartSecretRequest, ::viam::app::v1::DeleteRobotPartSecretResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::DeleteRobotPartSecretRequest, ::viam::app::v1::DeleteRobotPartSecretResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(55); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(55); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::DeleteRobotPartSecretRequest, ::viam::app::v1::DeleteRobotPartSecretResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_DeleteRobotPartSecret() override { + ~ExperimentalWithCallbackMethod_DeleteRobotPartSecret() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -4991,26 +8575,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DeleteRobotPartSecret( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::DeleteRobotPartSecretRequest* /*request*/, ::viam::app::v1::DeleteRobotPartSecretResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::DeleteRobotPartSecretRequest* /*request*/, ::viam::app::v1::DeleteRobotPartSecretResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DeleteRobotPartSecret( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::DeleteRobotPartSecretRequest* /*request*/, ::viam::app::v1::DeleteRobotPartSecretResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_ListRobots : public BaseClass { + class ExperimentalWithCallbackMethod_ListRobots : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_ListRobots() { - ::grpc::Service::MarkMethodCallback(46, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::ListRobotsRequest, ::viam::app::v1::ListRobotsResponse>( + ExperimentalWithCallbackMethod_ListRobots() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(56, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::ListRobotsRequest, ::viam::app::v1::ListRobotsResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::ListRobotsRequest* request, ::viam::app::v1::ListRobotsResponse* response) { return this->ListRobots(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::ListRobotsRequest* request, ::viam::app::v1::ListRobotsResponse* response) { return this->ListRobots(context, request, response); }));} void SetMessageAllocatorFor_ListRobots( - ::grpc::MessageAllocator< ::viam::app::v1::ListRobotsRequest, ::viam::app::v1::ListRobotsResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(46); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::ListRobotsRequest, ::viam::app::v1::ListRobotsResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::ListRobotsRequest, ::viam::app::v1::ListRobotsResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(56); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(56); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::ListRobotsRequest, ::viam::app::v1::ListRobotsResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_ListRobots() override { + ~ExperimentalWithCallbackMethod_ListRobots() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -5018,26 +8622,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* ListRobots( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::ListRobotsRequest* /*request*/, ::viam::app::v1::ListRobotsResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::ListRobotsRequest* /*request*/, ::viam::app::v1::ListRobotsResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ListRobots( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::ListRobotsRequest* /*request*/, ::viam::app::v1::ListRobotsResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_NewRobot : public BaseClass { + class ExperimentalWithCallbackMethod_NewRobot : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_NewRobot() { - ::grpc::Service::MarkMethodCallback(47, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::NewRobotRequest, ::viam::app::v1::NewRobotResponse>( + ExperimentalWithCallbackMethod_NewRobot() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(57, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::NewRobotRequest, ::viam::app::v1::NewRobotResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::NewRobotRequest* request, ::viam::app::v1::NewRobotResponse* response) { return this->NewRobot(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::NewRobotRequest* request, ::viam::app::v1::NewRobotResponse* response) { return this->NewRobot(context, request, response); }));} void SetMessageAllocatorFor_NewRobot( - ::grpc::MessageAllocator< ::viam::app::v1::NewRobotRequest, ::viam::app::v1::NewRobotResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(47); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::NewRobotRequest, ::viam::app::v1::NewRobotResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::NewRobotRequest, ::viam::app::v1::NewRobotResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(57); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(57); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::NewRobotRequest, ::viam::app::v1::NewRobotResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_NewRobot() override { + ~ExperimentalWithCallbackMethod_NewRobot() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -5045,26 +8669,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* NewRobot( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::NewRobotRequest* /*request*/, ::viam::app::v1::NewRobotResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::NewRobotRequest* /*request*/, ::viam::app::v1::NewRobotResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* NewRobot( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::NewRobotRequest* /*request*/, ::viam::app::v1::NewRobotResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_UpdateRobot : public BaseClass { + class ExperimentalWithCallbackMethod_UpdateRobot : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_UpdateRobot() { - ::grpc::Service::MarkMethodCallback(48, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::UpdateRobotRequest, ::viam::app::v1::UpdateRobotResponse>( + ExperimentalWithCallbackMethod_UpdateRobot() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(58, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::UpdateRobotRequest, ::viam::app::v1::UpdateRobotResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::UpdateRobotRequest* request, ::viam::app::v1::UpdateRobotResponse* response) { return this->UpdateRobot(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::UpdateRobotRequest* request, ::viam::app::v1::UpdateRobotResponse* response) { return this->UpdateRobot(context, request, response); }));} void SetMessageAllocatorFor_UpdateRobot( - ::grpc::MessageAllocator< ::viam::app::v1::UpdateRobotRequest, ::viam::app::v1::UpdateRobotResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(48); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::UpdateRobotRequest, ::viam::app::v1::UpdateRobotResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::UpdateRobotRequest, ::viam::app::v1::UpdateRobotResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(58); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(58); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::UpdateRobotRequest, ::viam::app::v1::UpdateRobotResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_UpdateRobot() override { + ~ExperimentalWithCallbackMethod_UpdateRobot() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -5072,26 +8716,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* UpdateRobot( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::UpdateRobotRequest* /*request*/, ::viam::app::v1::UpdateRobotResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::UpdateRobotRequest* /*request*/, ::viam::app::v1::UpdateRobotResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* UpdateRobot( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::UpdateRobotRequest* /*request*/, ::viam::app::v1::UpdateRobotResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_DeleteRobot : public BaseClass { + class ExperimentalWithCallbackMethod_DeleteRobot : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_DeleteRobot() { - ::grpc::Service::MarkMethodCallback(49, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::DeleteRobotRequest, ::viam::app::v1::DeleteRobotResponse>( + ExperimentalWithCallbackMethod_DeleteRobot() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(59, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::DeleteRobotRequest, ::viam::app::v1::DeleteRobotResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::DeleteRobotRequest* request, ::viam::app::v1::DeleteRobotResponse* response) { return this->DeleteRobot(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::DeleteRobotRequest* request, ::viam::app::v1::DeleteRobotResponse* response) { return this->DeleteRobot(context, request, response); }));} void SetMessageAllocatorFor_DeleteRobot( - ::grpc::MessageAllocator< ::viam::app::v1::DeleteRobotRequest, ::viam::app::v1::DeleteRobotResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(49); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::DeleteRobotRequest, ::viam::app::v1::DeleteRobotResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::DeleteRobotRequest, ::viam::app::v1::DeleteRobotResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(59); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(59); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::DeleteRobotRequest, ::viam::app::v1::DeleteRobotResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_DeleteRobot() override { + ~ExperimentalWithCallbackMethod_DeleteRobot() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -5099,26 +8763,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DeleteRobot( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::DeleteRobotRequest* /*request*/, ::viam::app::v1::DeleteRobotResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::DeleteRobotRequest* /*request*/, ::viam::app::v1::DeleteRobotResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DeleteRobot( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::DeleteRobotRequest* /*request*/, ::viam::app::v1::DeleteRobotResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_ListFragments : public BaseClass { + class ExperimentalWithCallbackMethod_ListFragments : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_ListFragments() { - ::grpc::Service::MarkMethodCallback(50, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::ListFragmentsRequest, ::viam::app::v1::ListFragmentsResponse>( + ExperimentalWithCallbackMethod_ListFragments() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(60, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::ListFragmentsRequest, ::viam::app::v1::ListFragmentsResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::ListFragmentsRequest* request, ::viam::app::v1::ListFragmentsResponse* response) { return this->ListFragments(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::ListFragmentsRequest* request, ::viam::app::v1::ListFragmentsResponse* response) { return this->ListFragments(context, request, response); }));} void SetMessageAllocatorFor_ListFragments( - ::grpc::MessageAllocator< ::viam::app::v1::ListFragmentsRequest, ::viam::app::v1::ListFragmentsResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(50); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::ListFragmentsRequest, ::viam::app::v1::ListFragmentsResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::ListFragmentsRequest, ::viam::app::v1::ListFragmentsResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(60); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(60); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::ListFragmentsRequest, ::viam::app::v1::ListFragmentsResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_ListFragments() override { + ~ExperimentalWithCallbackMethod_ListFragments() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -5126,26 +8810,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* ListFragments( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::ListFragmentsRequest* /*request*/, ::viam::app::v1::ListFragmentsResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::ListFragmentsRequest* /*request*/, ::viam::app::v1::ListFragmentsResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ListFragments( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::ListFragmentsRequest* /*request*/, ::viam::app::v1::ListFragmentsResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetFragment : public BaseClass { + class ExperimentalWithCallbackMethod_GetFragment : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetFragment() { - ::grpc::Service::MarkMethodCallback(51, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::GetFragmentRequest, ::viam::app::v1::GetFragmentResponse>( + ExperimentalWithCallbackMethod_GetFragment() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(61, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::GetFragmentRequest, ::viam::app::v1::GetFragmentResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::GetFragmentRequest* request, ::viam::app::v1::GetFragmentResponse* response) { return this->GetFragment(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::GetFragmentRequest* request, ::viam::app::v1::GetFragmentResponse* response) { return this->GetFragment(context, request, response); }));} void SetMessageAllocatorFor_GetFragment( - ::grpc::MessageAllocator< ::viam::app::v1::GetFragmentRequest, ::viam::app::v1::GetFragmentResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(51); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::GetFragmentRequest, ::viam::app::v1::GetFragmentResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::GetFragmentRequest, ::viam::app::v1::GetFragmentResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(61); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(61); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::GetFragmentRequest, ::viam::app::v1::GetFragmentResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetFragment() override { + ~ExperimentalWithCallbackMethod_GetFragment() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -5153,26 +8857,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetFragment( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::GetFragmentRequest* /*request*/, ::viam::app::v1::GetFragmentResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::GetFragmentRequest* /*request*/, ::viam::app::v1::GetFragmentResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetFragment( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::GetFragmentRequest* /*request*/, ::viam::app::v1::GetFragmentResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_CreateFragment : public BaseClass { + class ExperimentalWithCallbackMethod_CreateFragment : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_CreateFragment() { - ::grpc::Service::MarkMethodCallback(52, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::CreateFragmentRequest, ::viam::app::v1::CreateFragmentResponse>( + ExperimentalWithCallbackMethod_CreateFragment() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(62, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::CreateFragmentRequest, ::viam::app::v1::CreateFragmentResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::CreateFragmentRequest* request, ::viam::app::v1::CreateFragmentResponse* response) { return this->CreateFragment(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::CreateFragmentRequest* request, ::viam::app::v1::CreateFragmentResponse* response) { return this->CreateFragment(context, request, response); }));} void SetMessageAllocatorFor_CreateFragment( - ::grpc::MessageAllocator< ::viam::app::v1::CreateFragmentRequest, ::viam::app::v1::CreateFragmentResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(52); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::CreateFragmentRequest, ::viam::app::v1::CreateFragmentResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::CreateFragmentRequest, ::viam::app::v1::CreateFragmentResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(62); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(62); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::CreateFragmentRequest, ::viam::app::v1::CreateFragmentResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_CreateFragment() override { + ~ExperimentalWithCallbackMethod_CreateFragment() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -5180,26 +8904,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* CreateFragment( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::CreateFragmentRequest* /*request*/, ::viam::app::v1::CreateFragmentResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::CreateFragmentRequest* /*request*/, ::viam::app::v1::CreateFragmentResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* CreateFragment( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::CreateFragmentRequest* /*request*/, ::viam::app::v1::CreateFragmentResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_UpdateFragment : public BaseClass { + class ExperimentalWithCallbackMethod_UpdateFragment : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_UpdateFragment() { - ::grpc::Service::MarkMethodCallback(53, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::UpdateFragmentRequest, ::viam::app::v1::UpdateFragmentResponse>( + ExperimentalWithCallbackMethod_UpdateFragment() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(63, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::UpdateFragmentRequest, ::viam::app::v1::UpdateFragmentResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::UpdateFragmentRequest* request, ::viam::app::v1::UpdateFragmentResponse* response) { return this->UpdateFragment(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::UpdateFragmentRequest* request, ::viam::app::v1::UpdateFragmentResponse* response) { return this->UpdateFragment(context, request, response); }));} void SetMessageAllocatorFor_UpdateFragment( - ::grpc::MessageAllocator< ::viam::app::v1::UpdateFragmentRequest, ::viam::app::v1::UpdateFragmentResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(53); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::UpdateFragmentRequest, ::viam::app::v1::UpdateFragmentResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::UpdateFragmentRequest, ::viam::app::v1::UpdateFragmentResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(63); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(63); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::UpdateFragmentRequest, ::viam::app::v1::UpdateFragmentResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_UpdateFragment() override { + ~ExperimentalWithCallbackMethod_UpdateFragment() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -5207,26 +8951,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* UpdateFragment( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::UpdateFragmentRequest* /*request*/, ::viam::app::v1::UpdateFragmentResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::UpdateFragmentRequest* /*request*/, ::viam::app::v1::UpdateFragmentResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* UpdateFragment( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::UpdateFragmentRequest* /*request*/, ::viam::app::v1::UpdateFragmentResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_DeleteFragment : public BaseClass { + class ExperimentalWithCallbackMethod_DeleteFragment : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_DeleteFragment() { - ::grpc::Service::MarkMethodCallback(54, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::DeleteFragmentRequest, ::viam::app::v1::DeleteFragmentResponse>( + ExperimentalWithCallbackMethod_DeleteFragment() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(64, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::DeleteFragmentRequest, ::viam::app::v1::DeleteFragmentResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::DeleteFragmentRequest* request, ::viam::app::v1::DeleteFragmentResponse* response) { return this->DeleteFragment(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::DeleteFragmentRequest* request, ::viam::app::v1::DeleteFragmentResponse* response) { return this->DeleteFragment(context, request, response); }));} void SetMessageAllocatorFor_DeleteFragment( - ::grpc::MessageAllocator< ::viam::app::v1::DeleteFragmentRequest, ::viam::app::v1::DeleteFragmentResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(54); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::DeleteFragmentRequest, ::viam::app::v1::DeleteFragmentResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::DeleteFragmentRequest, ::viam::app::v1::DeleteFragmentResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(64); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(64); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::DeleteFragmentRequest, ::viam::app::v1::DeleteFragmentResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_DeleteFragment() override { + ~ExperimentalWithCallbackMethod_DeleteFragment() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -5234,26 +8998,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DeleteFragment( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::DeleteFragmentRequest* /*request*/, ::viam::app::v1::DeleteFragmentResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::DeleteFragmentRequest* /*request*/, ::viam::app::v1::DeleteFragmentResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DeleteFragment( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::DeleteFragmentRequest* /*request*/, ::viam::app::v1::DeleteFragmentResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_ListMachineFragments : public BaseClass { + class ExperimentalWithCallbackMethod_ListMachineFragments : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_ListMachineFragments() { - ::grpc::Service::MarkMethodCallback(55, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::ListMachineFragmentsRequest, ::viam::app::v1::ListMachineFragmentsResponse>( + ExperimentalWithCallbackMethod_ListMachineFragments() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(65, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::ListMachineFragmentsRequest, ::viam::app::v1::ListMachineFragmentsResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::ListMachineFragmentsRequest* request, ::viam::app::v1::ListMachineFragmentsResponse* response) { return this->ListMachineFragments(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::ListMachineFragmentsRequest* request, ::viam::app::v1::ListMachineFragmentsResponse* response) { return this->ListMachineFragments(context, request, response); }));} void SetMessageAllocatorFor_ListMachineFragments( - ::grpc::MessageAllocator< ::viam::app::v1::ListMachineFragmentsRequest, ::viam::app::v1::ListMachineFragmentsResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(55); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::ListMachineFragmentsRequest, ::viam::app::v1::ListMachineFragmentsResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::ListMachineFragmentsRequest, ::viam::app::v1::ListMachineFragmentsResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(65); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(65); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::ListMachineFragmentsRequest, ::viam::app::v1::ListMachineFragmentsResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_ListMachineFragments() override { + ~ExperimentalWithCallbackMethod_ListMachineFragments() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -5261,26 +9045,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* ListMachineFragments( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::ListMachineFragmentsRequest* /*request*/, ::viam::app::v1::ListMachineFragmentsResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::ListMachineFragmentsRequest* /*request*/, ::viam::app::v1::ListMachineFragmentsResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ListMachineFragments( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::ListMachineFragmentsRequest* /*request*/, ::viam::app::v1::ListMachineFragmentsResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetFragmentHistory : public BaseClass { + class ExperimentalWithCallbackMethod_GetFragmentHistory : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetFragmentHistory() { - ::grpc::Service::MarkMethodCallback(56, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::GetFragmentHistoryRequest, ::viam::app::v1::GetFragmentHistoryResponse>( + ExperimentalWithCallbackMethod_GetFragmentHistory() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(66, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::GetFragmentHistoryRequest, ::viam::app::v1::GetFragmentHistoryResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::GetFragmentHistoryRequest* request, ::viam::app::v1::GetFragmentHistoryResponse* response) { return this->GetFragmentHistory(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::GetFragmentHistoryRequest* request, ::viam::app::v1::GetFragmentHistoryResponse* response) { return this->GetFragmentHistory(context, request, response); }));} void SetMessageAllocatorFor_GetFragmentHistory( - ::grpc::MessageAllocator< ::viam::app::v1::GetFragmentHistoryRequest, ::viam::app::v1::GetFragmentHistoryResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(56); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::GetFragmentHistoryRequest, ::viam::app::v1::GetFragmentHistoryResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::GetFragmentHistoryRequest, ::viam::app::v1::GetFragmentHistoryResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(66); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(66); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::GetFragmentHistoryRequest, ::viam::app::v1::GetFragmentHistoryResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetFragmentHistory() override { + ~ExperimentalWithCallbackMethod_GetFragmentHistory() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -5288,26 +9092,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetFragmentHistory( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::GetFragmentHistoryRequest* /*request*/, ::viam::app::v1::GetFragmentHistoryResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::GetFragmentHistoryRequest* /*request*/, ::viam::app::v1::GetFragmentHistoryResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetFragmentHistory( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::GetFragmentHistoryRequest* /*request*/, ::viam::app::v1::GetFragmentHistoryResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_AddRole : public BaseClass { + class ExperimentalWithCallbackMethod_AddRole : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_AddRole() { - ::grpc::Service::MarkMethodCallback(57, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::AddRoleRequest, ::viam::app::v1::AddRoleResponse>( + ExperimentalWithCallbackMethod_AddRole() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(67, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::AddRoleRequest, ::viam::app::v1::AddRoleResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::AddRoleRequest* request, ::viam::app::v1::AddRoleResponse* response) { return this->AddRole(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::AddRoleRequest* request, ::viam::app::v1::AddRoleResponse* response) { return this->AddRole(context, request, response); }));} void SetMessageAllocatorFor_AddRole( - ::grpc::MessageAllocator< ::viam::app::v1::AddRoleRequest, ::viam::app::v1::AddRoleResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(57); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::AddRoleRequest, ::viam::app::v1::AddRoleResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::AddRoleRequest, ::viam::app::v1::AddRoleResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(67); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(67); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::AddRoleRequest, ::viam::app::v1::AddRoleResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_AddRole() override { + ~ExperimentalWithCallbackMethod_AddRole() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -5315,26 +9139,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* AddRole( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::AddRoleRequest* /*request*/, ::viam::app::v1::AddRoleResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::AddRoleRequest* /*request*/, ::viam::app::v1::AddRoleResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* AddRole( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::AddRoleRequest* /*request*/, ::viam::app::v1::AddRoleResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_RemoveRole : public BaseClass { + class ExperimentalWithCallbackMethod_RemoveRole : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_RemoveRole() { - ::grpc::Service::MarkMethodCallback(58, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::RemoveRoleRequest, ::viam::app::v1::RemoveRoleResponse>( + ExperimentalWithCallbackMethod_RemoveRole() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(68, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::RemoveRoleRequest, ::viam::app::v1::RemoveRoleResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::RemoveRoleRequest* request, ::viam::app::v1::RemoveRoleResponse* response) { return this->RemoveRole(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::RemoveRoleRequest* request, ::viam::app::v1::RemoveRoleResponse* response) { return this->RemoveRole(context, request, response); }));} void SetMessageAllocatorFor_RemoveRole( - ::grpc::MessageAllocator< ::viam::app::v1::RemoveRoleRequest, ::viam::app::v1::RemoveRoleResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(58); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::RemoveRoleRequest, ::viam::app::v1::RemoveRoleResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::RemoveRoleRequest, ::viam::app::v1::RemoveRoleResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(68); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(68); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::RemoveRoleRequest, ::viam::app::v1::RemoveRoleResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_RemoveRole() override { + ~ExperimentalWithCallbackMethod_RemoveRole() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -5342,26 +9186,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* RemoveRole( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::RemoveRoleRequest* /*request*/, ::viam::app::v1::RemoveRoleResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::RemoveRoleRequest* /*request*/, ::viam::app::v1::RemoveRoleResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* RemoveRole( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::RemoveRoleRequest* /*request*/, ::viam::app::v1::RemoveRoleResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_ChangeRole : public BaseClass { + class ExperimentalWithCallbackMethod_ChangeRole : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_ChangeRole() { - ::grpc::Service::MarkMethodCallback(59, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::ChangeRoleRequest, ::viam::app::v1::ChangeRoleResponse>( + ExperimentalWithCallbackMethod_ChangeRole() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(69, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::ChangeRoleRequest, ::viam::app::v1::ChangeRoleResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::ChangeRoleRequest* request, ::viam::app::v1::ChangeRoleResponse* response) { return this->ChangeRole(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::ChangeRoleRequest* request, ::viam::app::v1::ChangeRoleResponse* response) { return this->ChangeRole(context, request, response); }));} void SetMessageAllocatorFor_ChangeRole( - ::grpc::MessageAllocator< ::viam::app::v1::ChangeRoleRequest, ::viam::app::v1::ChangeRoleResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(59); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::ChangeRoleRequest, ::viam::app::v1::ChangeRoleResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::ChangeRoleRequest, ::viam::app::v1::ChangeRoleResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(69); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(69); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::ChangeRoleRequest, ::viam::app::v1::ChangeRoleResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_ChangeRole() override { + ~ExperimentalWithCallbackMethod_ChangeRole() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -5369,26 +9233,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* ChangeRole( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::ChangeRoleRequest* /*request*/, ::viam::app::v1::ChangeRoleResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::ChangeRoleRequest* /*request*/, ::viam::app::v1::ChangeRoleResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ChangeRole( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::ChangeRoleRequest* /*request*/, ::viam::app::v1::ChangeRoleResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_ListAuthorizations : public BaseClass { + class ExperimentalWithCallbackMethod_ListAuthorizations : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_ListAuthorizations() { - ::grpc::Service::MarkMethodCallback(60, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::ListAuthorizationsRequest, ::viam::app::v1::ListAuthorizationsResponse>( + ExperimentalWithCallbackMethod_ListAuthorizations() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(70, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::ListAuthorizationsRequest, ::viam::app::v1::ListAuthorizationsResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::ListAuthorizationsRequest* request, ::viam::app::v1::ListAuthorizationsResponse* response) { return this->ListAuthorizations(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::ListAuthorizationsRequest* request, ::viam::app::v1::ListAuthorizationsResponse* response) { return this->ListAuthorizations(context, request, response); }));} void SetMessageAllocatorFor_ListAuthorizations( - ::grpc::MessageAllocator< ::viam::app::v1::ListAuthorizationsRequest, ::viam::app::v1::ListAuthorizationsResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(60); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::ListAuthorizationsRequest, ::viam::app::v1::ListAuthorizationsResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::ListAuthorizationsRequest, ::viam::app::v1::ListAuthorizationsResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(70); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(70); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::ListAuthorizationsRequest, ::viam::app::v1::ListAuthorizationsResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_ListAuthorizations() override { + ~ExperimentalWithCallbackMethod_ListAuthorizations() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -5396,26 +9280,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* ListAuthorizations( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::ListAuthorizationsRequest* /*request*/, ::viam::app::v1::ListAuthorizationsResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::ListAuthorizationsRequest* /*request*/, ::viam::app::v1::ListAuthorizationsResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ListAuthorizations( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::ListAuthorizationsRequest* /*request*/, ::viam::app::v1::ListAuthorizationsResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_CheckPermissions : public BaseClass { + class ExperimentalWithCallbackMethod_CheckPermissions : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_CheckPermissions() { - ::grpc::Service::MarkMethodCallback(61, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::CheckPermissionsRequest, ::viam::app::v1::CheckPermissionsResponse>( + ExperimentalWithCallbackMethod_CheckPermissions() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(71, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::CheckPermissionsRequest, ::viam::app::v1::CheckPermissionsResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::CheckPermissionsRequest* request, ::viam::app::v1::CheckPermissionsResponse* response) { return this->CheckPermissions(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::CheckPermissionsRequest* request, ::viam::app::v1::CheckPermissionsResponse* response) { return this->CheckPermissions(context, request, response); }));} void SetMessageAllocatorFor_CheckPermissions( - ::grpc::MessageAllocator< ::viam::app::v1::CheckPermissionsRequest, ::viam::app::v1::CheckPermissionsResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(61); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::CheckPermissionsRequest, ::viam::app::v1::CheckPermissionsResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::CheckPermissionsRequest, ::viam::app::v1::CheckPermissionsResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(71); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(71); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::CheckPermissionsRequest, ::viam::app::v1::CheckPermissionsResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_CheckPermissions() override { + ~ExperimentalWithCallbackMethod_CheckPermissions() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -5423,26 +9327,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* CheckPermissions( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::CheckPermissionsRequest* /*request*/, ::viam::app::v1::CheckPermissionsResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::CheckPermissionsRequest* /*request*/, ::viam::app::v1::CheckPermissionsResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* CheckPermissions( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::CheckPermissionsRequest* /*request*/, ::viam::app::v1::CheckPermissionsResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetRegistryItem : public BaseClass { + class ExperimentalWithCallbackMethod_GetRegistryItem : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetRegistryItem() { - ::grpc::Service::MarkMethodCallback(62, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::GetRegistryItemRequest, ::viam::app::v1::GetRegistryItemResponse>( + ExperimentalWithCallbackMethod_GetRegistryItem() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(72, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::GetRegistryItemRequest, ::viam::app::v1::GetRegistryItemResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::GetRegistryItemRequest* request, ::viam::app::v1::GetRegistryItemResponse* response) { return this->GetRegistryItem(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::GetRegistryItemRequest* request, ::viam::app::v1::GetRegistryItemResponse* response) { return this->GetRegistryItem(context, request, response); }));} void SetMessageAllocatorFor_GetRegistryItem( - ::grpc::MessageAllocator< ::viam::app::v1::GetRegistryItemRequest, ::viam::app::v1::GetRegistryItemResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(62); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::GetRegistryItemRequest, ::viam::app::v1::GetRegistryItemResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::GetRegistryItemRequest, ::viam::app::v1::GetRegistryItemResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(72); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(72); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::GetRegistryItemRequest, ::viam::app::v1::GetRegistryItemResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetRegistryItem() override { + ~ExperimentalWithCallbackMethod_GetRegistryItem() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -5450,26 +9374,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetRegistryItem( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::GetRegistryItemRequest* /*request*/, ::viam::app::v1::GetRegistryItemResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::GetRegistryItemRequest* /*request*/, ::viam::app::v1::GetRegistryItemResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetRegistryItem( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::GetRegistryItemRequest* /*request*/, ::viam::app::v1::GetRegistryItemResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_CreateRegistryItem : public BaseClass { + class ExperimentalWithCallbackMethod_CreateRegistryItem : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_CreateRegistryItem() { - ::grpc::Service::MarkMethodCallback(63, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::CreateRegistryItemRequest, ::viam::app::v1::CreateRegistryItemResponse>( + ExperimentalWithCallbackMethod_CreateRegistryItem() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(73, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::CreateRegistryItemRequest, ::viam::app::v1::CreateRegistryItemResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::CreateRegistryItemRequest* request, ::viam::app::v1::CreateRegistryItemResponse* response) { return this->CreateRegistryItem(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::CreateRegistryItemRequest* request, ::viam::app::v1::CreateRegistryItemResponse* response) { return this->CreateRegistryItem(context, request, response); }));} void SetMessageAllocatorFor_CreateRegistryItem( - ::grpc::MessageAllocator< ::viam::app::v1::CreateRegistryItemRequest, ::viam::app::v1::CreateRegistryItemResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(63); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::CreateRegistryItemRequest, ::viam::app::v1::CreateRegistryItemResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::CreateRegistryItemRequest, ::viam::app::v1::CreateRegistryItemResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(73); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(73); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::CreateRegistryItemRequest, ::viam::app::v1::CreateRegistryItemResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_CreateRegistryItem() override { + ~ExperimentalWithCallbackMethod_CreateRegistryItem() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -5477,26 +9421,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* CreateRegistryItem( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::CreateRegistryItemRequest* /*request*/, ::viam::app::v1::CreateRegistryItemResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::CreateRegistryItemRequest* /*request*/, ::viam::app::v1::CreateRegistryItemResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* CreateRegistryItem( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::CreateRegistryItemRequest* /*request*/, ::viam::app::v1::CreateRegistryItemResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_UpdateRegistryItem : public BaseClass { + class ExperimentalWithCallbackMethod_UpdateRegistryItem : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_UpdateRegistryItem() { - ::grpc::Service::MarkMethodCallback(64, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::UpdateRegistryItemRequest, ::viam::app::v1::UpdateRegistryItemResponse>( + ExperimentalWithCallbackMethod_UpdateRegistryItem() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(74, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::UpdateRegistryItemRequest, ::viam::app::v1::UpdateRegistryItemResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::UpdateRegistryItemRequest* request, ::viam::app::v1::UpdateRegistryItemResponse* response) { return this->UpdateRegistryItem(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::UpdateRegistryItemRequest* request, ::viam::app::v1::UpdateRegistryItemResponse* response) { return this->UpdateRegistryItem(context, request, response); }));} void SetMessageAllocatorFor_UpdateRegistryItem( - ::grpc::MessageAllocator< ::viam::app::v1::UpdateRegistryItemRequest, ::viam::app::v1::UpdateRegistryItemResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(64); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::UpdateRegistryItemRequest, ::viam::app::v1::UpdateRegistryItemResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::UpdateRegistryItemRequest, ::viam::app::v1::UpdateRegistryItemResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(74); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(74); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::UpdateRegistryItemRequest, ::viam::app::v1::UpdateRegistryItemResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_UpdateRegistryItem() override { + ~ExperimentalWithCallbackMethod_UpdateRegistryItem() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -5504,26 +9468,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* UpdateRegistryItem( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::UpdateRegistryItemRequest* /*request*/, ::viam::app::v1::UpdateRegistryItemResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::UpdateRegistryItemRequest* /*request*/, ::viam::app::v1::UpdateRegistryItemResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* UpdateRegistryItem( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::UpdateRegistryItemRequest* /*request*/, ::viam::app::v1::UpdateRegistryItemResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_ListRegistryItems : public BaseClass { + class ExperimentalWithCallbackMethod_ListRegistryItems : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_ListRegistryItems() { - ::grpc::Service::MarkMethodCallback(65, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::ListRegistryItemsRequest, ::viam::app::v1::ListRegistryItemsResponse>( + ExperimentalWithCallbackMethod_ListRegistryItems() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(75, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::ListRegistryItemsRequest, ::viam::app::v1::ListRegistryItemsResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::ListRegistryItemsRequest* request, ::viam::app::v1::ListRegistryItemsResponse* response) { return this->ListRegistryItems(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::ListRegistryItemsRequest* request, ::viam::app::v1::ListRegistryItemsResponse* response) { return this->ListRegistryItems(context, request, response); }));} void SetMessageAllocatorFor_ListRegistryItems( - ::grpc::MessageAllocator< ::viam::app::v1::ListRegistryItemsRequest, ::viam::app::v1::ListRegistryItemsResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(65); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::ListRegistryItemsRequest, ::viam::app::v1::ListRegistryItemsResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::ListRegistryItemsRequest, ::viam::app::v1::ListRegistryItemsResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(75); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(75); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::ListRegistryItemsRequest, ::viam::app::v1::ListRegistryItemsResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_ListRegistryItems() override { + ~ExperimentalWithCallbackMethod_ListRegistryItems() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -5531,26 +9515,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* ListRegistryItems( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::ListRegistryItemsRequest* /*request*/, ::viam::app::v1::ListRegistryItemsResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::ListRegistryItemsRequest* /*request*/, ::viam::app::v1::ListRegistryItemsResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ListRegistryItems( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::ListRegistryItemsRequest* /*request*/, ::viam::app::v1::ListRegistryItemsResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_DeleteRegistryItem : public BaseClass { + class ExperimentalWithCallbackMethod_DeleteRegistryItem : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_DeleteRegistryItem() { - ::grpc::Service::MarkMethodCallback(66, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::DeleteRegistryItemRequest, ::viam::app::v1::DeleteRegistryItemResponse>( + ExperimentalWithCallbackMethod_DeleteRegistryItem() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(76, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::DeleteRegistryItemRequest, ::viam::app::v1::DeleteRegistryItemResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::DeleteRegistryItemRequest* request, ::viam::app::v1::DeleteRegistryItemResponse* response) { return this->DeleteRegistryItem(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::DeleteRegistryItemRequest* request, ::viam::app::v1::DeleteRegistryItemResponse* response) { return this->DeleteRegistryItem(context, request, response); }));} void SetMessageAllocatorFor_DeleteRegistryItem( - ::grpc::MessageAllocator< ::viam::app::v1::DeleteRegistryItemRequest, ::viam::app::v1::DeleteRegistryItemResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(66); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::DeleteRegistryItemRequest, ::viam::app::v1::DeleteRegistryItemResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::DeleteRegistryItemRequest, ::viam::app::v1::DeleteRegistryItemResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(76); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(76); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::DeleteRegistryItemRequest, ::viam::app::v1::DeleteRegistryItemResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_DeleteRegistryItem() override { + ~ExperimentalWithCallbackMethod_DeleteRegistryItem() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -5558,26 +9562,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DeleteRegistryItem( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::DeleteRegistryItemRequest* /*request*/, ::viam::app::v1::DeleteRegistryItemResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::DeleteRegistryItemRequest* /*request*/, ::viam::app::v1::DeleteRegistryItemResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DeleteRegistryItem( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::DeleteRegistryItemRequest* /*request*/, ::viam::app::v1::DeleteRegistryItemResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_TransferRegistryItem : public BaseClass { + class ExperimentalWithCallbackMethod_TransferRegistryItem : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_TransferRegistryItem() { - ::grpc::Service::MarkMethodCallback(67, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::TransferRegistryItemRequest, ::viam::app::v1::TransferRegistryItemResponse>( + ExperimentalWithCallbackMethod_TransferRegistryItem() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(77, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::TransferRegistryItemRequest, ::viam::app::v1::TransferRegistryItemResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::TransferRegistryItemRequest* request, ::viam::app::v1::TransferRegistryItemResponse* response) { return this->TransferRegistryItem(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::TransferRegistryItemRequest* request, ::viam::app::v1::TransferRegistryItemResponse* response) { return this->TransferRegistryItem(context, request, response); }));} void SetMessageAllocatorFor_TransferRegistryItem( - ::grpc::MessageAllocator< ::viam::app::v1::TransferRegistryItemRequest, ::viam::app::v1::TransferRegistryItemResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(67); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::TransferRegistryItemRequest, ::viam::app::v1::TransferRegistryItemResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::TransferRegistryItemRequest, ::viam::app::v1::TransferRegistryItemResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(77); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(77); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::TransferRegistryItemRequest, ::viam::app::v1::TransferRegistryItemResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_TransferRegistryItem() override { + ~ExperimentalWithCallbackMethod_TransferRegistryItem() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -5585,26 +9609,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* TransferRegistryItem( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::TransferRegistryItemRequest* /*request*/, ::viam::app::v1::TransferRegistryItemResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::TransferRegistryItemRequest* /*request*/, ::viam::app::v1::TransferRegistryItemResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* TransferRegistryItem( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::TransferRegistryItemRequest* /*request*/, ::viam::app::v1::TransferRegistryItemResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_CreateModule : public BaseClass { + class ExperimentalWithCallbackMethod_CreateModule : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_CreateModule() { - ::grpc::Service::MarkMethodCallback(68, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::CreateModuleRequest, ::viam::app::v1::CreateModuleResponse>( + ExperimentalWithCallbackMethod_CreateModule() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(78, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::CreateModuleRequest, ::viam::app::v1::CreateModuleResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::CreateModuleRequest* request, ::viam::app::v1::CreateModuleResponse* response) { return this->CreateModule(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::CreateModuleRequest* request, ::viam::app::v1::CreateModuleResponse* response) { return this->CreateModule(context, request, response); }));} void SetMessageAllocatorFor_CreateModule( - ::grpc::MessageAllocator< ::viam::app::v1::CreateModuleRequest, ::viam::app::v1::CreateModuleResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(68); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::CreateModuleRequest, ::viam::app::v1::CreateModuleResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::CreateModuleRequest, ::viam::app::v1::CreateModuleResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(78); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(78); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::CreateModuleRequest, ::viam::app::v1::CreateModuleResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_CreateModule() override { + ~ExperimentalWithCallbackMethod_CreateModule() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -5612,26 +9656,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* CreateModule( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::CreateModuleRequest* /*request*/, ::viam::app::v1::CreateModuleResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::CreateModuleRequest* /*request*/, ::viam::app::v1::CreateModuleResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* CreateModule( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::CreateModuleRequest* /*request*/, ::viam::app::v1::CreateModuleResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_UpdateModule : public BaseClass { + class ExperimentalWithCallbackMethod_UpdateModule : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_UpdateModule() { - ::grpc::Service::MarkMethodCallback(69, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::UpdateModuleRequest, ::viam::app::v1::UpdateModuleResponse>( + ExperimentalWithCallbackMethod_UpdateModule() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(79, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::UpdateModuleRequest, ::viam::app::v1::UpdateModuleResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::UpdateModuleRequest* request, ::viam::app::v1::UpdateModuleResponse* response) { return this->UpdateModule(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::UpdateModuleRequest* request, ::viam::app::v1::UpdateModuleResponse* response) { return this->UpdateModule(context, request, response); }));} void SetMessageAllocatorFor_UpdateModule( - ::grpc::MessageAllocator< ::viam::app::v1::UpdateModuleRequest, ::viam::app::v1::UpdateModuleResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(69); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::UpdateModuleRequest, ::viam::app::v1::UpdateModuleResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::UpdateModuleRequest, ::viam::app::v1::UpdateModuleResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(79); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(79); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::UpdateModuleRequest, ::viam::app::v1::UpdateModuleResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_UpdateModule() override { + ~ExperimentalWithCallbackMethod_UpdateModule() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -5639,21 +9703,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* UpdateModule( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::UpdateModuleRequest* /*request*/, ::viam::app::v1::UpdateModuleResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::UpdateModuleRequest* /*request*/, ::viam::app::v1::UpdateModuleResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* UpdateModule( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::UpdateModuleRequest* /*request*/, ::viam::app::v1::UpdateModuleResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_UploadModuleFile : public BaseClass { + class ExperimentalWithCallbackMethod_UploadModuleFile : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_UploadModuleFile() { - ::grpc::Service::MarkMethodCallback(70, - new ::grpc::internal::CallbackClientStreamingHandler< ::viam::app::v1::UploadModuleFileRequest, ::viam::app::v1::UploadModuleFileResponse>( + ExperimentalWithCallbackMethod_UploadModuleFile() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(80, + new ::grpc_impl::internal::CallbackClientStreamingHandler< ::viam::app::v1::UploadModuleFileRequest, ::viam::app::v1::UploadModuleFileResponse>( [this]( - ::grpc::CallbackServerContext* context, ::viam::app::v1::UploadModuleFileResponse* response) { return this->UploadModuleFile(context, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, ::viam::app::v1::UploadModuleFileResponse* response) { return this->UploadModuleFile(context, response); })); } - ~WithCallbackMethod_UploadModuleFile() override { + ~ExperimentalWithCallbackMethod_UploadModuleFile() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -5661,26 +9741,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerReadReactor< ::viam::app::v1::UploadModuleFileRequest>* UploadModuleFile( - ::grpc::CallbackServerContext* /*context*/, ::viam::app::v1::UploadModuleFileResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, ::viam::app::v1::UploadModuleFileResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerReadReactor< ::viam::app::v1::UploadModuleFileRequest>* UploadModuleFile( + ::grpc::experimental::CallbackServerContext* /*context*/, ::viam::app::v1::UploadModuleFileResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetModule : public BaseClass { + class ExperimentalWithCallbackMethod_GetModule : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetModule() { - ::grpc::Service::MarkMethodCallback(71, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::GetModuleRequest, ::viam::app::v1::GetModuleResponse>( + ExperimentalWithCallbackMethod_GetModule() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(81, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::GetModuleRequest, ::viam::app::v1::GetModuleResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::GetModuleRequest* request, ::viam::app::v1::GetModuleResponse* response) { return this->GetModule(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::GetModuleRequest* request, ::viam::app::v1::GetModuleResponse* response) { return this->GetModule(context, request, response); }));} void SetMessageAllocatorFor_GetModule( - ::grpc::MessageAllocator< ::viam::app::v1::GetModuleRequest, ::viam::app::v1::GetModuleResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(71); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::GetModuleRequest, ::viam::app::v1::GetModuleResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::GetModuleRequest, ::viam::app::v1::GetModuleResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(81); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(81); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::GetModuleRequest, ::viam::app::v1::GetModuleResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetModule() override { + ~ExperimentalWithCallbackMethod_GetModule() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -5688,26 +9788,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetModule( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::GetModuleRequest* /*request*/, ::viam::app::v1::GetModuleResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::GetModuleRequest* /*request*/, ::viam::app::v1::GetModuleResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetModule( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::GetModuleRequest* /*request*/, ::viam::app::v1::GetModuleResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_ListModules : public BaseClass { + class ExperimentalWithCallbackMethod_ListModules : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_ListModules() { - ::grpc::Service::MarkMethodCallback(72, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::ListModulesRequest, ::viam::app::v1::ListModulesResponse>( + ExperimentalWithCallbackMethod_ListModules() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(82, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::ListModulesRequest, ::viam::app::v1::ListModulesResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::ListModulesRequest* request, ::viam::app::v1::ListModulesResponse* response) { return this->ListModules(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::ListModulesRequest* request, ::viam::app::v1::ListModulesResponse* response) { return this->ListModules(context, request, response); }));} void SetMessageAllocatorFor_ListModules( - ::grpc::MessageAllocator< ::viam::app::v1::ListModulesRequest, ::viam::app::v1::ListModulesResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(72); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::ListModulesRequest, ::viam::app::v1::ListModulesResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::ListModulesRequest, ::viam::app::v1::ListModulesResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(82); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(82); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::ListModulesRequest, ::viam::app::v1::ListModulesResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_ListModules() override { + ~ExperimentalWithCallbackMethod_ListModules() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -5715,26 +9835,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* ListModules( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::ListModulesRequest* /*request*/, ::viam::app::v1::ListModulesResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::ListModulesRequest* /*request*/, ::viam::app::v1::ListModulesResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ListModules( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::ListModulesRequest* /*request*/, ::viam::app::v1::ListModulesResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_CreateKey : public BaseClass { + class ExperimentalWithCallbackMethod_CreateKey : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_CreateKey() { - ::grpc::Service::MarkMethodCallback(73, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::CreateKeyRequest, ::viam::app::v1::CreateKeyResponse>( + ExperimentalWithCallbackMethod_CreateKey() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(83, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::CreateKeyRequest, ::viam::app::v1::CreateKeyResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::CreateKeyRequest* request, ::viam::app::v1::CreateKeyResponse* response) { return this->CreateKey(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::CreateKeyRequest* request, ::viam::app::v1::CreateKeyResponse* response) { return this->CreateKey(context, request, response); }));} void SetMessageAllocatorFor_CreateKey( - ::grpc::MessageAllocator< ::viam::app::v1::CreateKeyRequest, ::viam::app::v1::CreateKeyResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(73); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::CreateKeyRequest, ::viam::app::v1::CreateKeyResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::CreateKeyRequest, ::viam::app::v1::CreateKeyResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(83); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(83); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::CreateKeyRequest, ::viam::app::v1::CreateKeyResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_CreateKey() override { + ~ExperimentalWithCallbackMethod_CreateKey() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -5742,26 +9882,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* CreateKey( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::CreateKeyRequest* /*request*/, ::viam::app::v1::CreateKeyResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::CreateKeyRequest* /*request*/, ::viam::app::v1::CreateKeyResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* CreateKey( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::CreateKeyRequest* /*request*/, ::viam::app::v1::CreateKeyResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_DeleteKey : public BaseClass { + class ExperimentalWithCallbackMethod_DeleteKey : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_DeleteKey() { - ::grpc::Service::MarkMethodCallback(74, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::DeleteKeyRequest, ::viam::app::v1::DeleteKeyResponse>( + ExperimentalWithCallbackMethod_DeleteKey() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(84, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::DeleteKeyRequest, ::viam::app::v1::DeleteKeyResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::DeleteKeyRequest* request, ::viam::app::v1::DeleteKeyResponse* response) { return this->DeleteKey(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::DeleteKeyRequest* request, ::viam::app::v1::DeleteKeyResponse* response) { return this->DeleteKey(context, request, response); }));} void SetMessageAllocatorFor_DeleteKey( - ::grpc::MessageAllocator< ::viam::app::v1::DeleteKeyRequest, ::viam::app::v1::DeleteKeyResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(74); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::DeleteKeyRequest, ::viam::app::v1::DeleteKeyResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::DeleteKeyRequest, ::viam::app::v1::DeleteKeyResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(84); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(84); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::DeleteKeyRequest, ::viam::app::v1::DeleteKeyResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_DeleteKey() override { + ~ExperimentalWithCallbackMethod_DeleteKey() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -5769,26 +9929,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DeleteKey( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::DeleteKeyRequest* /*request*/, ::viam::app::v1::DeleteKeyResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::DeleteKeyRequest* /*request*/, ::viam::app::v1::DeleteKeyResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DeleteKey( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::DeleteKeyRequest* /*request*/, ::viam::app::v1::DeleteKeyResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_ListKeys : public BaseClass { + class ExperimentalWithCallbackMethod_ListKeys : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_ListKeys() { - ::grpc::Service::MarkMethodCallback(75, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::ListKeysRequest, ::viam::app::v1::ListKeysResponse>( + ExperimentalWithCallbackMethod_ListKeys() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(85, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::ListKeysRequest, ::viam::app::v1::ListKeysResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::ListKeysRequest* request, ::viam::app::v1::ListKeysResponse* response) { return this->ListKeys(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::ListKeysRequest* request, ::viam::app::v1::ListKeysResponse* response) { return this->ListKeys(context, request, response); }));} void SetMessageAllocatorFor_ListKeys( - ::grpc::MessageAllocator< ::viam::app::v1::ListKeysRequest, ::viam::app::v1::ListKeysResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(75); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::ListKeysRequest, ::viam::app::v1::ListKeysResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::ListKeysRequest, ::viam::app::v1::ListKeysResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(85); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(85); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::ListKeysRequest, ::viam::app::v1::ListKeysResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_ListKeys() override { + ~ExperimentalWithCallbackMethod_ListKeys() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -5796,26 +9976,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* ListKeys( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::ListKeysRequest* /*request*/, ::viam::app::v1::ListKeysResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::ListKeysRequest* /*request*/, ::viam::app::v1::ListKeysResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ListKeys( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::ListKeysRequest* /*request*/, ::viam::app::v1::ListKeysResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_RenameKey : public BaseClass { + class ExperimentalWithCallbackMethod_RenameKey : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_RenameKey() { - ::grpc::Service::MarkMethodCallback(76, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::RenameKeyRequest, ::viam::app::v1::RenameKeyResponse>( + ExperimentalWithCallbackMethod_RenameKey() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(86, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::RenameKeyRequest, ::viam::app::v1::RenameKeyResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::RenameKeyRequest* request, ::viam::app::v1::RenameKeyResponse* response) { return this->RenameKey(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::RenameKeyRequest* request, ::viam::app::v1::RenameKeyResponse* response) { return this->RenameKey(context, request, response); }));} void SetMessageAllocatorFor_RenameKey( - ::grpc::MessageAllocator< ::viam::app::v1::RenameKeyRequest, ::viam::app::v1::RenameKeyResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(76); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::RenameKeyRequest, ::viam::app::v1::RenameKeyResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::RenameKeyRequest, ::viam::app::v1::RenameKeyResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(86); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(86); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::RenameKeyRequest, ::viam::app::v1::RenameKeyResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_RenameKey() override { + ~ExperimentalWithCallbackMethod_RenameKey() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -5823,26 +10023,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* RenameKey( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::RenameKeyRequest* /*request*/, ::viam::app::v1::RenameKeyResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::RenameKeyRequest* /*request*/, ::viam::app::v1::RenameKeyResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* RenameKey( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::RenameKeyRequest* /*request*/, ::viam::app::v1::RenameKeyResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_RotateKey : public BaseClass { + class ExperimentalWithCallbackMethod_RotateKey : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_RotateKey() { - ::grpc::Service::MarkMethodCallback(77, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::RotateKeyRequest, ::viam::app::v1::RotateKeyResponse>( + ExperimentalWithCallbackMethod_RotateKey() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(87, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::RotateKeyRequest, ::viam::app::v1::RotateKeyResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::RotateKeyRequest* request, ::viam::app::v1::RotateKeyResponse* response) { return this->RotateKey(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::RotateKeyRequest* request, ::viam::app::v1::RotateKeyResponse* response) { return this->RotateKey(context, request, response); }));} void SetMessageAllocatorFor_RotateKey( - ::grpc::MessageAllocator< ::viam::app::v1::RotateKeyRequest, ::viam::app::v1::RotateKeyResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(77); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::RotateKeyRequest, ::viam::app::v1::RotateKeyResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::RotateKeyRequest, ::viam::app::v1::RotateKeyResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(87); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(87); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::RotateKeyRequest, ::viam::app::v1::RotateKeyResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_RotateKey() override { + ~ExperimentalWithCallbackMethod_RotateKey() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -5850,26 +10070,46 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* RotateKey( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::RotateKeyRequest* /*request*/, ::viam::app::v1::RotateKeyResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::RotateKeyRequest* /*request*/, ::viam::app::v1::RotateKeyResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* RotateKey( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::RotateKeyRequest* /*request*/, ::viam::app::v1::RotateKeyResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_CreateKeyFromExistingKeyAuthorizations : public BaseClass { + class ExperimentalWithCallbackMethod_CreateKeyFromExistingKeyAuthorizations : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_CreateKeyFromExistingKeyAuthorizations() { - ::grpc::Service::MarkMethodCallback(78, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsRequest, ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse>( + ExperimentalWithCallbackMethod_CreateKeyFromExistingKeyAuthorizations() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(88, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsRequest, ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsRequest* request, ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse* response) { return this->CreateKeyFromExistingKeyAuthorizations(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsRequest* request, ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse* response) { return this->CreateKeyFromExistingKeyAuthorizations(context, request, response); }));} void SetMessageAllocatorFor_CreateKeyFromExistingKeyAuthorizations( - ::grpc::MessageAllocator< ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsRequest, ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(78); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsRequest, ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsRequest, ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(88); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(88); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsRequest, ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_CreateKeyFromExistingKeyAuthorizations() override { + ~ExperimentalWithCallbackMethod_CreateKeyFromExistingKeyAuthorizations() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -5877,11 +10117,20 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* CreateKeyFromExistingKeyAuthorizations( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsRequest* /*request*/, ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse* /*response*/) { return nullptr; } - }; - typedef WithCallbackMethod_GetUserIDByEmail > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > CallbackService; - typedef CallbackService ExperimentalCallbackService; + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsRequest* /*request*/, ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* CreateKeyFromExistingKeyAuthorizations( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsRequest* /*request*/, ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse* /*response*/) + #endif + { return nullptr; } + }; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef ExperimentalWithCallbackMethod_GetUserIDByEmail > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > CallbackService; + #endif + + typedef ExperimentalWithCallbackMethod_GetUserIDByEmail > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ExperimentalCallbackService; template class WithGenericMethod_GetUserIDByEmail : public BaseClass { private: @@ -5968,12 +10217,29 @@ class AppService final { } }; template + class WithGenericMethod_SearchOrganizations : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_SearchOrganizations() { + ::grpc::Service::MarkMethodGeneric(5); + } + ~WithGenericMethod_SearchOrganizations() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SearchOrganizations(::grpc::ServerContext* /*context*/, const ::viam::app::v1::SearchOrganizationsRequest* /*request*/, ::viam::app::v1::SearchOrganizationsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template class WithGenericMethod_GetOrganization : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_GetOrganization() { - ::grpc::Service::MarkMethodGeneric(5); + ::grpc::Service::MarkMethodGeneric(6); } ~WithGenericMethod_GetOrganization() override { BaseClassMustBeDerivedFromService(this); @@ -5990,7 +10256,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_GetOrganizationNamespaceAvailability() { - ::grpc::Service::MarkMethodGeneric(6); + ::grpc::Service::MarkMethodGeneric(7); } ~WithGenericMethod_GetOrganizationNamespaceAvailability() override { BaseClassMustBeDerivedFromService(this); @@ -6007,7 +10273,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_UpdateOrganization() { - ::grpc::Service::MarkMethodGeneric(7); + ::grpc::Service::MarkMethodGeneric(8); } ~WithGenericMethod_UpdateOrganization() override { BaseClassMustBeDerivedFromService(this); @@ -6024,7 +10290,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_DeleteOrganization() { - ::grpc::Service::MarkMethodGeneric(8); + ::grpc::Service::MarkMethodGeneric(9); } ~WithGenericMethod_DeleteOrganization() override { BaseClassMustBeDerivedFromService(this); @@ -6041,7 +10307,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_ListOrganizationMembers() { - ::grpc::Service::MarkMethodGeneric(9); + ::grpc::Service::MarkMethodGeneric(10); } ~WithGenericMethod_ListOrganizationMembers() override { BaseClassMustBeDerivedFromService(this); @@ -6058,7 +10324,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_CreateOrganizationInvite() { - ::grpc::Service::MarkMethodGeneric(10); + ::grpc::Service::MarkMethodGeneric(11); } ~WithGenericMethod_CreateOrganizationInvite() override { BaseClassMustBeDerivedFromService(this); @@ -6075,7 +10341,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_UpdateOrganizationInviteAuthorizations() { - ::grpc::Service::MarkMethodGeneric(11); + ::grpc::Service::MarkMethodGeneric(12); } ~WithGenericMethod_UpdateOrganizationInviteAuthorizations() override { BaseClassMustBeDerivedFromService(this); @@ -6092,7 +10358,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_DeleteOrganizationMember() { - ::grpc::Service::MarkMethodGeneric(12); + ::grpc::Service::MarkMethodGeneric(13); } ~WithGenericMethod_DeleteOrganizationMember() override { BaseClassMustBeDerivedFromService(this); @@ -6109,7 +10375,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_DeleteOrganizationInvite() { - ::grpc::Service::MarkMethodGeneric(13); + ::grpc::Service::MarkMethodGeneric(14); } ~WithGenericMethod_DeleteOrganizationInvite() override { BaseClassMustBeDerivedFromService(this); @@ -6126,7 +10392,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_ResendOrganizationInvite() { - ::grpc::Service::MarkMethodGeneric(14); + ::grpc::Service::MarkMethodGeneric(15); } ~WithGenericMethod_ResendOrganizationInvite() override { BaseClassMustBeDerivedFromService(this); @@ -6143,7 +10409,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_EnableBillingService() { - ::grpc::Service::MarkMethodGeneric(15); + ::grpc::Service::MarkMethodGeneric(16); } ~WithGenericMethod_EnableBillingService() override { BaseClassMustBeDerivedFromService(this); @@ -6160,7 +10426,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_DisableBillingService() { - ::grpc::Service::MarkMethodGeneric(16); + ::grpc::Service::MarkMethodGeneric(17); } ~WithGenericMethod_DisableBillingService() override { BaseClassMustBeDerivedFromService(this); @@ -6177,7 +10443,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_UpdateBillingService() { - ::grpc::Service::MarkMethodGeneric(17); + ::grpc::Service::MarkMethodGeneric(18); } ~WithGenericMethod_UpdateBillingService() override { BaseClassMustBeDerivedFromService(this); @@ -6194,7 +10460,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_GetBillingServiceConfig() { - ::grpc::Service::MarkMethodGeneric(18); + ::grpc::Service::MarkMethodGeneric(19); } ~WithGenericMethod_GetBillingServiceConfig() override { BaseClassMustBeDerivedFromService(this); @@ -6211,7 +10477,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_OrganizationSetSupportEmail() { - ::grpc::Service::MarkMethodGeneric(19); + ::grpc::Service::MarkMethodGeneric(20); } ~WithGenericMethod_OrganizationSetSupportEmail() override { BaseClassMustBeDerivedFromService(this); @@ -6228,7 +10494,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_OrganizationGetSupportEmail() { - ::grpc::Service::MarkMethodGeneric(20); + ::grpc::Service::MarkMethodGeneric(21); } ~WithGenericMethod_OrganizationGetSupportEmail() override { BaseClassMustBeDerivedFromService(this); @@ -6240,12 +10506,165 @@ class AppService final { } }; template + class WithGenericMethod_OrganizationSetLogo : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_OrganizationSetLogo() { + ::grpc::Service::MarkMethodGeneric(22); + } + ~WithGenericMethod_OrganizationSetLogo() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status OrganizationSetLogo(::grpc::ServerContext* /*context*/, const ::viam::app::v1::OrganizationSetLogoRequest* /*request*/, ::viam::app::v1::OrganizationSetLogoResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_OrganizationGetLogo : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_OrganizationGetLogo() { + ::grpc::Service::MarkMethodGeneric(23); + } + ~WithGenericMethod_OrganizationGetLogo() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status OrganizationGetLogo(::grpc::ServerContext* /*context*/, const ::viam::app::v1::OrganizationGetLogoRequest* /*request*/, ::viam::app::v1::OrganizationGetLogoResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_EnableAuthService : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_EnableAuthService() { + ::grpc::Service::MarkMethodGeneric(24); + } + ~WithGenericMethod_EnableAuthService() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status EnableAuthService(::grpc::ServerContext* /*context*/, const ::viam::app::v1::EnableAuthServiceRequest* /*request*/, ::viam::app::v1::EnableAuthServiceResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_DisableAuthService : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_DisableAuthService() { + ::grpc::Service::MarkMethodGeneric(25); + } + ~WithGenericMethod_DisableAuthService() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DisableAuthService(::grpc::ServerContext* /*context*/, const ::viam::app::v1::DisableAuthServiceRequest* /*request*/, ::viam::app::v1::DisableAuthServiceResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_CreateOAuthApp : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_CreateOAuthApp() { + ::grpc::Service::MarkMethodGeneric(26); + } + ~WithGenericMethod_CreateOAuthApp() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateOAuthApp(::grpc::ServerContext* /*context*/, const ::viam::app::v1::CreateOAuthAppRequest* /*request*/, ::viam::app::v1::CreateOAuthAppResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_ReadOAuthApp : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_ReadOAuthApp() { + ::grpc::Service::MarkMethodGeneric(27); + } + ~WithGenericMethod_ReadOAuthApp() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ReadOAuthApp(::grpc::ServerContext* /*context*/, const ::viam::app::v1::ReadOAuthAppRequest* /*request*/, ::viam::app::v1::ReadOAuthAppResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_UpdateOAuthApp : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_UpdateOAuthApp() { + ::grpc::Service::MarkMethodGeneric(28); + } + ~WithGenericMethod_UpdateOAuthApp() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateOAuthApp(::grpc::ServerContext* /*context*/, const ::viam::app::v1::UpdateOAuthAppRequest* /*request*/, ::viam::app::v1::UpdateOAuthAppResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_DeleteOAuthApp : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_DeleteOAuthApp() { + ::grpc::Service::MarkMethodGeneric(29); + } + ~WithGenericMethod_DeleteOAuthApp() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteOAuthApp(::grpc::ServerContext* /*context*/, const ::viam::app::v1::DeleteOAuthAppRequest* /*request*/, ::viam::app::v1::DeleteOAuthAppResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_ListOAuthApps : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_ListOAuthApps() { + ::grpc::Service::MarkMethodGeneric(30); + } + ~WithGenericMethod_ListOAuthApps() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListOAuthApps(::grpc::ServerContext* /*context*/, const ::viam::app::v1::ListOAuthAppsRequest* /*request*/, ::viam::app::v1::ListOAuthAppsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template class WithGenericMethod_CreateLocation : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_CreateLocation() { - ::grpc::Service::MarkMethodGeneric(21); + ::grpc::Service::MarkMethodGeneric(31); } ~WithGenericMethod_CreateLocation() override { BaseClassMustBeDerivedFromService(this); @@ -6262,7 +10681,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_GetLocation() { - ::grpc::Service::MarkMethodGeneric(22); + ::grpc::Service::MarkMethodGeneric(32); } ~WithGenericMethod_GetLocation() override { BaseClassMustBeDerivedFromService(this); @@ -6279,7 +10698,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_UpdateLocation() { - ::grpc::Service::MarkMethodGeneric(23); + ::grpc::Service::MarkMethodGeneric(33); } ~WithGenericMethod_UpdateLocation() override { BaseClassMustBeDerivedFromService(this); @@ -6296,7 +10715,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_DeleteLocation() { - ::grpc::Service::MarkMethodGeneric(24); + ::grpc::Service::MarkMethodGeneric(34); } ~WithGenericMethod_DeleteLocation() override { BaseClassMustBeDerivedFromService(this); @@ -6313,7 +10732,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_ListLocations() { - ::grpc::Service::MarkMethodGeneric(25); + ::grpc::Service::MarkMethodGeneric(35); } ~WithGenericMethod_ListLocations() override { BaseClassMustBeDerivedFromService(this); @@ -6330,7 +10749,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_ShareLocation() { - ::grpc::Service::MarkMethodGeneric(26); + ::grpc::Service::MarkMethodGeneric(36); } ~WithGenericMethod_ShareLocation() override { BaseClassMustBeDerivedFromService(this); @@ -6347,7 +10766,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_UnshareLocation() { - ::grpc::Service::MarkMethodGeneric(27); + ::grpc::Service::MarkMethodGeneric(37); } ~WithGenericMethod_UnshareLocation() override { BaseClassMustBeDerivedFromService(this); @@ -6364,7 +10783,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_LocationAuth() { - ::grpc::Service::MarkMethodGeneric(28); + ::grpc::Service::MarkMethodGeneric(38); } ~WithGenericMethod_LocationAuth() override { BaseClassMustBeDerivedFromService(this); @@ -6381,7 +10800,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_CreateLocationSecret() { - ::grpc::Service::MarkMethodGeneric(29); + ::grpc::Service::MarkMethodGeneric(39); } ~WithGenericMethod_CreateLocationSecret() override { BaseClassMustBeDerivedFromService(this); @@ -6398,7 +10817,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_DeleteLocationSecret() { - ::grpc::Service::MarkMethodGeneric(30); + ::grpc::Service::MarkMethodGeneric(40); } ~WithGenericMethod_DeleteLocationSecret() override { BaseClassMustBeDerivedFromService(this); @@ -6415,7 +10834,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_GetRobot() { - ::grpc::Service::MarkMethodGeneric(31); + ::grpc::Service::MarkMethodGeneric(41); } ~WithGenericMethod_GetRobot() override { BaseClassMustBeDerivedFromService(this); @@ -6432,7 +10851,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_GetRoverRentalRobots() { - ::grpc::Service::MarkMethodGeneric(32); + ::grpc::Service::MarkMethodGeneric(42); } ~WithGenericMethod_GetRoverRentalRobots() override { BaseClassMustBeDerivedFromService(this); @@ -6449,7 +10868,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_GetRobotParts() { - ::grpc::Service::MarkMethodGeneric(33); + ::grpc::Service::MarkMethodGeneric(43); } ~WithGenericMethod_GetRobotParts() override { BaseClassMustBeDerivedFromService(this); @@ -6466,7 +10885,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_GetRobotPart() { - ::grpc::Service::MarkMethodGeneric(34); + ::grpc::Service::MarkMethodGeneric(44); } ~WithGenericMethod_GetRobotPart() override { BaseClassMustBeDerivedFromService(this); @@ -6483,7 +10902,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_GetRobotPartLogs() { - ::grpc::Service::MarkMethodGeneric(35); + ::grpc::Service::MarkMethodGeneric(45); } ~WithGenericMethod_GetRobotPartLogs() override { BaseClassMustBeDerivedFromService(this); @@ -6500,7 +10919,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_TailRobotPartLogs() { - ::grpc::Service::MarkMethodGeneric(36); + ::grpc::Service::MarkMethodGeneric(46); } ~WithGenericMethod_TailRobotPartLogs() override { BaseClassMustBeDerivedFromService(this); @@ -6517,7 +10936,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_GetRobotPartHistory() { - ::grpc::Service::MarkMethodGeneric(37); + ::grpc::Service::MarkMethodGeneric(47); } ~WithGenericMethod_GetRobotPartHistory() override { BaseClassMustBeDerivedFromService(this); @@ -6534,7 +10953,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_UpdateRobotPart() { - ::grpc::Service::MarkMethodGeneric(38); + ::grpc::Service::MarkMethodGeneric(48); } ~WithGenericMethod_UpdateRobotPart() override { BaseClassMustBeDerivedFromService(this); @@ -6551,7 +10970,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_NewRobotPart() { - ::grpc::Service::MarkMethodGeneric(39); + ::grpc::Service::MarkMethodGeneric(49); } ~WithGenericMethod_NewRobotPart() override { BaseClassMustBeDerivedFromService(this); @@ -6568,7 +10987,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_DeleteRobotPart() { - ::grpc::Service::MarkMethodGeneric(40); + ::grpc::Service::MarkMethodGeneric(50); } ~WithGenericMethod_DeleteRobotPart() override { BaseClassMustBeDerivedFromService(this); @@ -6585,7 +11004,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_GetRobotAPIKeys() { - ::grpc::Service::MarkMethodGeneric(41); + ::grpc::Service::MarkMethodGeneric(51); } ~WithGenericMethod_GetRobotAPIKeys() override { BaseClassMustBeDerivedFromService(this); @@ -6602,7 +11021,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_MarkPartAsMain() { - ::grpc::Service::MarkMethodGeneric(42); + ::grpc::Service::MarkMethodGeneric(52); } ~WithGenericMethod_MarkPartAsMain() override { BaseClassMustBeDerivedFromService(this); @@ -6619,7 +11038,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_MarkPartForRestart() { - ::grpc::Service::MarkMethodGeneric(43); + ::grpc::Service::MarkMethodGeneric(53); } ~WithGenericMethod_MarkPartForRestart() override { BaseClassMustBeDerivedFromService(this); @@ -6636,7 +11055,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_CreateRobotPartSecret() { - ::grpc::Service::MarkMethodGeneric(44); + ::grpc::Service::MarkMethodGeneric(54); } ~WithGenericMethod_CreateRobotPartSecret() override { BaseClassMustBeDerivedFromService(this); @@ -6653,7 +11072,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_DeleteRobotPartSecret() { - ::grpc::Service::MarkMethodGeneric(45); + ::grpc::Service::MarkMethodGeneric(55); } ~WithGenericMethod_DeleteRobotPartSecret() override { BaseClassMustBeDerivedFromService(this); @@ -6670,7 +11089,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_ListRobots() { - ::grpc::Service::MarkMethodGeneric(46); + ::grpc::Service::MarkMethodGeneric(56); } ~WithGenericMethod_ListRobots() override { BaseClassMustBeDerivedFromService(this); @@ -6687,7 +11106,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_NewRobot() { - ::grpc::Service::MarkMethodGeneric(47); + ::grpc::Service::MarkMethodGeneric(57); } ~WithGenericMethod_NewRobot() override { BaseClassMustBeDerivedFromService(this); @@ -6704,7 +11123,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_UpdateRobot() { - ::grpc::Service::MarkMethodGeneric(48); + ::grpc::Service::MarkMethodGeneric(58); } ~WithGenericMethod_UpdateRobot() override { BaseClassMustBeDerivedFromService(this); @@ -6721,7 +11140,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_DeleteRobot() { - ::grpc::Service::MarkMethodGeneric(49); + ::grpc::Service::MarkMethodGeneric(59); } ~WithGenericMethod_DeleteRobot() override { BaseClassMustBeDerivedFromService(this); @@ -6738,7 +11157,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_ListFragments() { - ::grpc::Service::MarkMethodGeneric(50); + ::grpc::Service::MarkMethodGeneric(60); } ~WithGenericMethod_ListFragments() override { BaseClassMustBeDerivedFromService(this); @@ -6755,7 +11174,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_GetFragment() { - ::grpc::Service::MarkMethodGeneric(51); + ::grpc::Service::MarkMethodGeneric(61); } ~WithGenericMethod_GetFragment() override { BaseClassMustBeDerivedFromService(this); @@ -6772,7 +11191,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_CreateFragment() { - ::grpc::Service::MarkMethodGeneric(52); + ::grpc::Service::MarkMethodGeneric(62); } ~WithGenericMethod_CreateFragment() override { BaseClassMustBeDerivedFromService(this); @@ -6789,7 +11208,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_UpdateFragment() { - ::grpc::Service::MarkMethodGeneric(53); + ::grpc::Service::MarkMethodGeneric(63); } ~WithGenericMethod_UpdateFragment() override { BaseClassMustBeDerivedFromService(this); @@ -6806,7 +11225,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_DeleteFragment() { - ::grpc::Service::MarkMethodGeneric(54); + ::grpc::Service::MarkMethodGeneric(64); } ~WithGenericMethod_DeleteFragment() override { BaseClassMustBeDerivedFromService(this); @@ -6823,7 +11242,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_ListMachineFragments() { - ::grpc::Service::MarkMethodGeneric(55); + ::grpc::Service::MarkMethodGeneric(65); } ~WithGenericMethod_ListMachineFragments() override { BaseClassMustBeDerivedFromService(this); @@ -6840,7 +11259,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_GetFragmentHistory() { - ::grpc::Service::MarkMethodGeneric(56); + ::grpc::Service::MarkMethodGeneric(66); } ~WithGenericMethod_GetFragmentHistory() override { BaseClassMustBeDerivedFromService(this); @@ -6857,7 +11276,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_AddRole() { - ::grpc::Service::MarkMethodGeneric(57); + ::grpc::Service::MarkMethodGeneric(67); } ~WithGenericMethod_AddRole() override { BaseClassMustBeDerivedFromService(this); @@ -6874,7 +11293,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_RemoveRole() { - ::grpc::Service::MarkMethodGeneric(58); + ::grpc::Service::MarkMethodGeneric(68); } ~WithGenericMethod_RemoveRole() override { BaseClassMustBeDerivedFromService(this); @@ -6891,7 +11310,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_ChangeRole() { - ::grpc::Service::MarkMethodGeneric(59); + ::grpc::Service::MarkMethodGeneric(69); } ~WithGenericMethod_ChangeRole() override { BaseClassMustBeDerivedFromService(this); @@ -6908,7 +11327,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_ListAuthorizations() { - ::grpc::Service::MarkMethodGeneric(60); + ::grpc::Service::MarkMethodGeneric(70); } ~WithGenericMethod_ListAuthorizations() override { BaseClassMustBeDerivedFromService(this); @@ -6925,7 +11344,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_CheckPermissions() { - ::grpc::Service::MarkMethodGeneric(61); + ::grpc::Service::MarkMethodGeneric(71); } ~WithGenericMethod_CheckPermissions() override { BaseClassMustBeDerivedFromService(this); @@ -6942,7 +11361,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_GetRegistryItem() { - ::grpc::Service::MarkMethodGeneric(62); + ::grpc::Service::MarkMethodGeneric(72); } ~WithGenericMethod_GetRegistryItem() override { BaseClassMustBeDerivedFromService(this); @@ -6959,7 +11378,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_CreateRegistryItem() { - ::grpc::Service::MarkMethodGeneric(63); + ::grpc::Service::MarkMethodGeneric(73); } ~WithGenericMethod_CreateRegistryItem() override { BaseClassMustBeDerivedFromService(this); @@ -6976,7 +11395,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_UpdateRegistryItem() { - ::grpc::Service::MarkMethodGeneric(64); + ::grpc::Service::MarkMethodGeneric(74); } ~WithGenericMethod_UpdateRegistryItem() override { BaseClassMustBeDerivedFromService(this); @@ -6993,7 +11412,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_ListRegistryItems() { - ::grpc::Service::MarkMethodGeneric(65); + ::grpc::Service::MarkMethodGeneric(75); } ~WithGenericMethod_ListRegistryItems() override { BaseClassMustBeDerivedFromService(this); @@ -7010,7 +11429,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_DeleteRegistryItem() { - ::grpc::Service::MarkMethodGeneric(66); + ::grpc::Service::MarkMethodGeneric(76); } ~WithGenericMethod_DeleteRegistryItem() override { BaseClassMustBeDerivedFromService(this); @@ -7027,7 +11446,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_TransferRegistryItem() { - ::grpc::Service::MarkMethodGeneric(67); + ::grpc::Service::MarkMethodGeneric(77); } ~WithGenericMethod_TransferRegistryItem() override { BaseClassMustBeDerivedFromService(this); @@ -7044,7 +11463,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_CreateModule() { - ::grpc::Service::MarkMethodGeneric(68); + ::grpc::Service::MarkMethodGeneric(78); } ~WithGenericMethod_CreateModule() override { BaseClassMustBeDerivedFromService(this); @@ -7061,7 +11480,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_UpdateModule() { - ::grpc::Service::MarkMethodGeneric(69); + ::grpc::Service::MarkMethodGeneric(79); } ~WithGenericMethod_UpdateModule() override { BaseClassMustBeDerivedFromService(this); @@ -7078,7 +11497,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_UploadModuleFile() { - ::grpc::Service::MarkMethodGeneric(70); + ::grpc::Service::MarkMethodGeneric(80); } ~WithGenericMethod_UploadModuleFile() override { BaseClassMustBeDerivedFromService(this); @@ -7095,7 +11514,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_GetModule() { - ::grpc::Service::MarkMethodGeneric(71); + ::grpc::Service::MarkMethodGeneric(81); } ~WithGenericMethod_GetModule() override { BaseClassMustBeDerivedFromService(this); @@ -7112,7 +11531,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_ListModules() { - ::grpc::Service::MarkMethodGeneric(72); + ::grpc::Service::MarkMethodGeneric(82); } ~WithGenericMethod_ListModules() override { BaseClassMustBeDerivedFromService(this); @@ -7129,7 +11548,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_CreateKey() { - ::grpc::Service::MarkMethodGeneric(73); + ::grpc::Service::MarkMethodGeneric(83); } ~WithGenericMethod_CreateKey() override { BaseClassMustBeDerivedFromService(this); @@ -7146,7 +11565,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_DeleteKey() { - ::grpc::Service::MarkMethodGeneric(74); + ::grpc::Service::MarkMethodGeneric(84); } ~WithGenericMethod_DeleteKey() override { BaseClassMustBeDerivedFromService(this); @@ -7163,7 +11582,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_ListKeys() { - ::grpc::Service::MarkMethodGeneric(75); + ::grpc::Service::MarkMethodGeneric(85); } ~WithGenericMethod_ListKeys() override { BaseClassMustBeDerivedFromService(this); @@ -7180,7 +11599,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_RenameKey() { - ::grpc::Service::MarkMethodGeneric(76); + ::grpc::Service::MarkMethodGeneric(86); } ~WithGenericMethod_RenameKey() override { BaseClassMustBeDerivedFromService(this); @@ -7197,7 +11616,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_RotateKey() { - ::grpc::Service::MarkMethodGeneric(77); + ::grpc::Service::MarkMethodGeneric(87); } ~WithGenericMethod_RotateKey() override { BaseClassMustBeDerivedFromService(this); @@ -7214,7 +11633,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_CreateKeyFromExistingKeyAuthorizations() { - ::grpc::Service::MarkMethodGeneric(78); + ::grpc::Service::MarkMethodGeneric(88); } ~WithGenericMethod_CreateKeyFromExistingKeyAuthorizations() override { BaseClassMustBeDerivedFromService(this); @@ -7326,12 +11745,32 @@ class AppService final { } }; template + class WithRawMethod_SearchOrganizations : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_SearchOrganizations() { + ::grpc::Service::MarkMethodRaw(5); + } + ~WithRawMethod_SearchOrganizations() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SearchOrganizations(::grpc::ServerContext* /*context*/, const ::viam::app::v1::SearchOrganizationsRequest* /*request*/, ::viam::app::v1::SearchOrganizationsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestSearchOrganizations(::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(5, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template class WithRawMethod_GetOrganization : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_GetOrganization() { - ::grpc::Service::MarkMethodRaw(5); + ::grpc::Service::MarkMethodRaw(6); } ~WithRawMethod_GetOrganization() override { BaseClassMustBeDerivedFromService(this); @@ -7342,307 +11781,487 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestGetOrganization(::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(5, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetOrganizationNamespaceAvailability : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetOrganizationNamespaceAvailability() { + ::grpc::Service::MarkMethodRaw(7); + } + ~WithRawMethod_GetOrganizationNamespaceAvailability() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetOrganizationNamespaceAvailability(::grpc::ServerContext* /*context*/, const ::viam::app::v1::GetOrganizationNamespaceAvailabilityRequest* /*request*/, ::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetOrganizationNamespaceAvailability(::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(7, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_UpdateOrganization : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_UpdateOrganization() { + ::grpc::Service::MarkMethodRaw(8); + } + ~WithRawMethod_UpdateOrganization() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateOrganization(::grpc::ServerContext* /*context*/, const ::viam::app::v1::UpdateOrganizationRequest* /*request*/, ::viam::app::v1::UpdateOrganizationResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestUpdateOrganization(::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(8, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_DeleteOrganization : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_DeleteOrganization() { + ::grpc::Service::MarkMethodRaw(9); + } + ~WithRawMethod_DeleteOrganization() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteOrganization(::grpc::ServerContext* /*context*/, const ::viam::app::v1::DeleteOrganizationRequest* /*request*/, ::viam::app::v1::DeleteOrganizationResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDeleteOrganization(::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(9, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_ListOrganizationMembers : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_ListOrganizationMembers() { + ::grpc::Service::MarkMethodRaw(10); + } + ~WithRawMethod_ListOrganizationMembers() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListOrganizationMembers(::grpc::ServerContext* /*context*/, const ::viam::app::v1::ListOrganizationMembersRequest* /*request*/, ::viam::app::v1::ListOrganizationMembersResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListOrganizationMembers(::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 WithRawMethod_CreateOrganizationInvite : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_CreateOrganizationInvite() { + ::grpc::Service::MarkMethodRaw(11); + } + ~WithRawMethod_CreateOrganizationInvite() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateOrganizationInvite(::grpc::ServerContext* /*context*/, const ::viam::app::v1::CreateOrganizationInviteRequest* /*request*/, ::viam::app::v1::CreateOrganizationInviteResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreateOrganizationInvite(::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(11, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_UpdateOrganizationInviteAuthorizations : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_UpdateOrganizationInviteAuthorizations() { + ::grpc::Service::MarkMethodRaw(12); + } + ~WithRawMethod_UpdateOrganizationInviteAuthorizations() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateOrganizationInviteAuthorizations(::grpc::ServerContext* /*context*/, const ::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest* /*request*/, ::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestUpdateOrganizationInviteAuthorizations(::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(12, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_DeleteOrganizationMember : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_DeleteOrganizationMember() { + ::grpc::Service::MarkMethodRaw(13); + } + ~WithRawMethod_DeleteOrganizationMember() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteOrganizationMember(::grpc::ServerContext* /*context*/, const ::viam::app::v1::DeleteOrganizationMemberRequest* /*request*/, ::viam::app::v1::DeleteOrganizationMemberResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDeleteOrganizationMember(::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(13, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_DeleteOrganizationInvite : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_DeleteOrganizationInvite() { + ::grpc::Service::MarkMethodRaw(14); + } + ~WithRawMethod_DeleteOrganizationInvite() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteOrganizationInvite(::grpc::ServerContext* /*context*/, const ::viam::app::v1::DeleteOrganizationInviteRequest* /*request*/, ::viam::app::v1::DeleteOrganizationInviteResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDeleteOrganizationInvite(::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(14, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_ResendOrganizationInvite : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_ResendOrganizationInvite() { + ::grpc::Service::MarkMethodRaw(15); + } + ~WithRawMethod_ResendOrganizationInvite() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ResendOrganizationInvite(::grpc::ServerContext* /*context*/, const ::viam::app::v1::ResendOrganizationInviteRequest* /*request*/, ::viam::app::v1::ResendOrganizationInviteResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestResendOrganizationInvite(::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(15, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithRawMethod_GetOrganizationNamespaceAvailability : public BaseClass { + class WithRawMethod_EnableBillingService : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawMethod_GetOrganizationNamespaceAvailability() { - ::grpc::Service::MarkMethodRaw(6); + WithRawMethod_EnableBillingService() { + ::grpc::Service::MarkMethodRaw(16); } - ~WithRawMethod_GetOrganizationNamespaceAvailability() override { + ~WithRawMethod_EnableBillingService() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetOrganizationNamespaceAvailability(::grpc::ServerContext* /*context*/, const ::viam::app::v1::GetOrganizationNamespaceAvailabilityRequest* /*request*/, ::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse* /*response*/) override { + ::grpc::Status EnableBillingService(::grpc::ServerContext* /*context*/, const ::viam::app::v1::EnableBillingServiceRequest* /*request*/, ::viam::app::v1::EnableBillingServiceResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestGetOrganizationNamespaceAvailability(::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(6, context, request, response, new_call_cq, notification_cq, tag); + void RequestEnableBillingService(::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(16, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithRawMethod_UpdateOrganization : public BaseClass { + class WithRawMethod_DisableBillingService : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawMethod_UpdateOrganization() { - ::grpc::Service::MarkMethodRaw(7); + WithRawMethod_DisableBillingService() { + ::grpc::Service::MarkMethodRaw(17); } - ~WithRawMethod_UpdateOrganization() override { + ~WithRawMethod_DisableBillingService() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status UpdateOrganization(::grpc::ServerContext* /*context*/, const ::viam::app::v1::UpdateOrganizationRequest* /*request*/, ::viam::app::v1::UpdateOrganizationResponse* /*response*/) override { + ::grpc::Status DisableBillingService(::grpc::ServerContext* /*context*/, const ::viam::app::v1::DisableBillingServiceRequest* /*request*/, ::viam::app::v1::DisableBillingServiceResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestUpdateOrganization(::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(7, context, request, response, new_call_cq, notification_cq, tag); + void RequestDisableBillingService(::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(17, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithRawMethod_DeleteOrganization : public BaseClass { + class WithRawMethod_UpdateBillingService : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawMethod_DeleteOrganization() { - ::grpc::Service::MarkMethodRaw(8); + WithRawMethod_UpdateBillingService() { + ::grpc::Service::MarkMethodRaw(18); } - ~WithRawMethod_DeleteOrganization() override { + ~WithRawMethod_UpdateBillingService() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status DeleteOrganization(::grpc::ServerContext* /*context*/, const ::viam::app::v1::DeleteOrganizationRequest* /*request*/, ::viam::app::v1::DeleteOrganizationResponse* /*response*/) override { + ::grpc::Status UpdateBillingService(::grpc::ServerContext* /*context*/, const ::viam::app::v1::UpdateBillingServiceRequest* /*request*/, ::viam::app::v1::UpdateBillingServiceResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestDeleteOrganization(::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(8, context, request, response, new_call_cq, notification_cq, tag); + void RequestUpdateBillingService(::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(18, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithRawMethod_ListOrganizationMembers : public BaseClass { + class WithRawMethod_GetBillingServiceConfig : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawMethod_ListOrganizationMembers() { - ::grpc::Service::MarkMethodRaw(9); + WithRawMethod_GetBillingServiceConfig() { + ::grpc::Service::MarkMethodRaw(19); } - ~WithRawMethod_ListOrganizationMembers() override { + ~WithRawMethod_GetBillingServiceConfig() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status ListOrganizationMembers(::grpc::ServerContext* /*context*/, const ::viam::app::v1::ListOrganizationMembersRequest* /*request*/, ::viam::app::v1::ListOrganizationMembersResponse* /*response*/) override { + ::grpc::Status GetBillingServiceConfig(::grpc::ServerContext* /*context*/, const ::viam::app::v1::GetBillingServiceConfigRequest* /*request*/, ::viam::app::v1::GetBillingServiceConfigResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestListOrganizationMembers(::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(9, context, request, response, new_call_cq, notification_cq, tag); + void RequestGetBillingServiceConfig(::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(19, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithRawMethod_CreateOrganizationInvite : public BaseClass { + class WithRawMethod_OrganizationSetSupportEmail : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawMethod_CreateOrganizationInvite() { - ::grpc::Service::MarkMethodRaw(10); + WithRawMethod_OrganizationSetSupportEmail() { + ::grpc::Service::MarkMethodRaw(20); } - ~WithRawMethod_CreateOrganizationInvite() override { + ~WithRawMethod_OrganizationSetSupportEmail() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status CreateOrganizationInvite(::grpc::ServerContext* /*context*/, const ::viam::app::v1::CreateOrganizationInviteRequest* /*request*/, ::viam::app::v1::CreateOrganizationInviteResponse* /*response*/) override { + ::grpc::Status OrganizationSetSupportEmail(::grpc::ServerContext* /*context*/, const ::viam::app::v1::OrganizationSetSupportEmailRequest* /*request*/, ::viam::app::v1::OrganizationSetSupportEmailResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestCreateOrganizationInvite(::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); + void RequestOrganizationSetSupportEmail(::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(20, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithRawMethod_UpdateOrganizationInviteAuthorizations : public BaseClass { + class WithRawMethod_OrganizationGetSupportEmail : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawMethod_UpdateOrganizationInviteAuthorizations() { - ::grpc::Service::MarkMethodRaw(11); + WithRawMethod_OrganizationGetSupportEmail() { + ::grpc::Service::MarkMethodRaw(21); } - ~WithRawMethod_UpdateOrganizationInviteAuthorizations() override { + ~WithRawMethod_OrganizationGetSupportEmail() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status UpdateOrganizationInviteAuthorizations(::grpc::ServerContext* /*context*/, const ::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest* /*request*/, ::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse* /*response*/) override { + ::grpc::Status OrganizationGetSupportEmail(::grpc::ServerContext* /*context*/, const ::viam::app::v1::OrganizationGetSupportEmailRequest* /*request*/, ::viam::app::v1::OrganizationGetSupportEmailResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestUpdateOrganizationInviteAuthorizations(::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(11, context, request, response, new_call_cq, notification_cq, tag); + void RequestOrganizationGetSupportEmail(::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(21, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithRawMethod_DeleteOrganizationMember : public BaseClass { + class WithRawMethod_OrganizationSetLogo : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawMethod_DeleteOrganizationMember() { - ::grpc::Service::MarkMethodRaw(12); + WithRawMethod_OrganizationSetLogo() { + ::grpc::Service::MarkMethodRaw(22); } - ~WithRawMethod_DeleteOrganizationMember() override { + ~WithRawMethod_OrganizationSetLogo() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status DeleteOrganizationMember(::grpc::ServerContext* /*context*/, const ::viam::app::v1::DeleteOrganizationMemberRequest* /*request*/, ::viam::app::v1::DeleteOrganizationMemberResponse* /*response*/) override { + ::grpc::Status OrganizationSetLogo(::grpc::ServerContext* /*context*/, const ::viam::app::v1::OrganizationSetLogoRequest* /*request*/, ::viam::app::v1::OrganizationSetLogoResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestDeleteOrganizationMember(::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(12, context, request, response, new_call_cq, notification_cq, tag); + void RequestOrganizationSetLogo(::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(22, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithRawMethod_DeleteOrganizationInvite : public BaseClass { + class WithRawMethod_OrganizationGetLogo : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawMethod_DeleteOrganizationInvite() { - ::grpc::Service::MarkMethodRaw(13); + WithRawMethod_OrganizationGetLogo() { + ::grpc::Service::MarkMethodRaw(23); } - ~WithRawMethod_DeleteOrganizationInvite() override { + ~WithRawMethod_OrganizationGetLogo() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status DeleteOrganizationInvite(::grpc::ServerContext* /*context*/, const ::viam::app::v1::DeleteOrganizationInviteRequest* /*request*/, ::viam::app::v1::DeleteOrganizationInviteResponse* /*response*/) override { + ::grpc::Status OrganizationGetLogo(::grpc::ServerContext* /*context*/, const ::viam::app::v1::OrganizationGetLogoRequest* /*request*/, ::viam::app::v1::OrganizationGetLogoResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestDeleteOrganizationInvite(::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(13, context, request, response, new_call_cq, notification_cq, tag); + void RequestOrganizationGetLogo(::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(23, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithRawMethod_ResendOrganizationInvite : public BaseClass { + class WithRawMethod_EnableAuthService : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawMethod_ResendOrganizationInvite() { - ::grpc::Service::MarkMethodRaw(14); + WithRawMethod_EnableAuthService() { + ::grpc::Service::MarkMethodRaw(24); } - ~WithRawMethod_ResendOrganizationInvite() override { + ~WithRawMethod_EnableAuthService() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status ResendOrganizationInvite(::grpc::ServerContext* /*context*/, const ::viam::app::v1::ResendOrganizationInviteRequest* /*request*/, ::viam::app::v1::ResendOrganizationInviteResponse* /*response*/) override { + ::grpc::Status EnableAuthService(::grpc::ServerContext* /*context*/, const ::viam::app::v1::EnableAuthServiceRequest* /*request*/, ::viam::app::v1::EnableAuthServiceResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestResendOrganizationInvite(::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(14, context, request, response, new_call_cq, notification_cq, tag); + void RequestEnableAuthService(::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(24, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithRawMethod_EnableBillingService : public BaseClass { + class WithRawMethod_DisableAuthService : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawMethod_EnableBillingService() { - ::grpc::Service::MarkMethodRaw(15); + WithRawMethod_DisableAuthService() { + ::grpc::Service::MarkMethodRaw(25); } - ~WithRawMethod_EnableBillingService() override { + ~WithRawMethod_DisableAuthService() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EnableBillingService(::grpc::ServerContext* /*context*/, const ::viam::app::v1::EnableBillingServiceRequest* /*request*/, ::viam::app::v1::EnableBillingServiceResponse* /*response*/) override { + ::grpc::Status DisableAuthService(::grpc::ServerContext* /*context*/, const ::viam::app::v1::DisableAuthServiceRequest* /*request*/, ::viam::app::v1::DisableAuthServiceResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestEnableBillingService(::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(15, context, request, response, new_call_cq, notification_cq, tag); + void RequestDisableAuthService(::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(25, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithRawMethod_DisableBillingService : public BaseClass { + class WithRawMethod_CreateOAuthApp : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawMethod_DisableBillingService() { - ::grpc::Service::MarkMethodRaw(16); + WithRawMethod_CreateOAuthApp() { + ::grpc::Service::MarkMethodRaw(26); } - ~WithRawMethod_DisableBillingService() override { + ~WithRawMethod_CreateOAuthApp() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status DisableBillingService(::grpc::ServerContext* /*context*/, const ::viam::app::v1::DisableBillingServiceRequest* /*request*/, ::viam::app::v1::DisableBillingServiceResponse* /*response*/) override { + ::grpc::Status CreateOAuthApp(::grpc::ServerContext* /*context*/, const ::viam::app::v1::CreateOAuthAppRequest* /*request*/, ::viam::app::v1::CreateOAuthAppResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestDisableBillingService(::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(16, context, request, response, new_call_cq, notification_cq, tag); + void RequestCreateOAuthApp(::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(26, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithRawMethod_UpdateBillingService : public BaseClass { + class WithRawMethod_ReadOAuthApp : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawMethod_UpdateBillingService() { - ::grpc::Service::MarkMethodRaw(17); + WithRawMethod_ReadOAuthApp() { + ::grpc::Service::MarkMethodRaw(27); } - ~WithRawMethod_UpdateBillingService() override { + ~WithRawMethod_ReadOAuthApp() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status UpdateBillingService(::grpc::ServerContext* /*context*/, const ::viam::app::v1::UpdateBillingServiceRequest* /*request*/, ::viam::app::v1::UpdateBillingServiceResponse* /*response*/) override { + ::grpc::Status ReadOAuthApp(::grpc::ServerContext* /*context*/, const ::viam::app::v1::ReadOAuthAppRequest* /*request*/, ::viam::app::v1::ReadOAuthAppResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestUpdateBillingService(::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(17, context, request, response, new_call_cq, notification_cq, tag); + void RequestReadOAuthApp(::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(27, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithRawMethod_GetBillingServiceConfig : public BaseClass { + class WithRawMethod_UpdateOAuthApp : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawMethod_GetBillingServiceConfig() { - ::grpc::Service::MarkMethodRaw(18); + WithRawMethod_UpdateOAuthApp() { + ::grpc::Service::MarkMethodRaw(28); } - ~WithRawMethod_GetBillingServiceConfig() override { + ~WithRawMethod_UpdateOAuthApp() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetBillingServiceConfig(::grpc::ServerContext* /*context*/, const ::viam::app::v1::GetBillingServiceConfigRequest* /*request*/, ::viam::app::v1::GetBillingServiceConfigResponse* /*response*/) override { + ::grpc::Status UpdateOAuthApp(::grpc::ServerContext* /*context*/, const ::viam::app::v1::UpdateOAuthAppRequest* /*request*/, ::viam::app::v1::UpdateOAuthAppResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestGetBillingServiceConfig(::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(18, context, request, response, new_call_cq, notification_cq, tag); + void RequestUpdateOAuthApp(::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(28, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithRawMethod_OrganizationSetSupportEmail : public BaseClass { + class WithRawMethod_DeleteOAuthApp : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawMethod_OrganizationSetSupportEmail() { - ::grpc::Service::MarkMethodRaw(19); + WithRawMethod_DeleteOAuthApp() { + ::grpc::Service::MarkMethodRaw(29); } - ~WithRawMethod_OrganizationSetSupportEmail() override { + ~WithRawMethod_DeleteOAuthApp() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status OrganizationSetSupportEmail(::grpc::ServerContext* /*context*/, const ::viam::app::v1::OrganizationSetSupportEmailRequest* /*request*/, ::viam::app::v1::OrganizationSetSupportEmailResponse* /*response*/) override { + ::grpc::Status DeleteOAuthApp(::grpc::ServerContext* /*context*/, const ::viam::app::v1::DeleteOAuthAppRequest* /*request*/, ::viam::app::v1::DeleteOAuthAppResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestOrganizationSetSupportEmail(::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(19, context, request, response, new_call_cq, notification_cq, tag); + void RequestDeleteOAuthApp(::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(29, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithRawMethod_OrganizationGetSupportEmail : public BaseClass { + class WithRawMethod_ListOAuthApps : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawMethod_OrganizationGetSupportEmail() { - ::grpc::Service::MarkMethodRaw(20); + WithRawMethod_ListOAuthApps() { + ::grpc::Service::MarkMethodRaw(30); } - ~WithRawMethod_OrganizationGetSupportEmail() override { + ~WithRawMethod_ListOAuthApps() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status OrganizationGetSupportEmail(::grpc::ServerContext* /*context*/, const ::viam::app::v1::OrganizationGetSupportEmailRequest* /*request*/, ::viam::app::v1::OrganizationGetSupportEmailResponse* /*response*/) override { + ::grpc::Status ListOAuthApps(::grpc::ServerContext* /*context*/, const ::viam::app::v1::ListOAuthAppsRequest* /*request*/, ::viam::app::v1::ListOAuthAppsResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestOrganizationGetSupportEmail(::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(20, context, request, response, new_call_cq, notification_cq, tag); + void RequestListOAuthApps(::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(30, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -7651,7 +12270,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_CreateLocation() { - ::grpc::Service::MarkMethodRaw(21); + ::grpc::Service::MarkMethodRaw(31); } ~WithRawMethod_CreateLocation() override { BaseClassMustBeDerivedFromService(this); @@ -7662,7 +12281,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestCreateLocation(::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(21, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(31, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -7671,7 +12290,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_GetLocation() { - ::grpc::Service::MarkMethodRaw(22); + ::grpc::Service::MarkMethodRaw(32); } ~WithRawMethod_GetLocation() override { BaseClassMustBeDerivedFromService(this); @@ -7682,7 +12301,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestGetLocation(::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(22, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(32, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -7691,7 +12310,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_UpdateLocation() { - ::grpc::Service::MarkMethodRaw(23); + ::grpc::Service::MarkMethodRaw(33); } ~WithRawMethod_UpdateLocation() override { BaseClassMustBeDerivedFromService(this); @@ -7702,7 +12321,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestUpdateLocation(::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(23, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(33, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -7711,7 +12330,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_DeleteLocation() { - ::grpc::Service::MarkMethodRaw(24); + ::grpc::Service::MarkMethodRaw(34); } ~WithRawMethod_DeleteLocation() override { BaseClassMustBeDerivedFromService(this); @@ -7722,7 +12341,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestDeleteLocation(::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(24, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(34, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -7731,7 +12350,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_ListLocations() { - ::grpc::Service::MarkMethodRaw(25); + ::grpc::Service::MarkMethodRaw(35); } ~WithRawMethod_ListLocations() override { BaseClassMustBeDerivedFromService(this); @@ -7742,7 +12361,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestListLocations(::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(25, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(35, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -7751,7 +12370,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_ShareLocation() { - ::grpc::Service::MarkMethodRaw(26); + ::grpc::Service::MarkMethodRaw(36); } ~WithRawMethod_ShareLocation() override { BaseClassMustBeDerivedFromService(this); @@ -7762,7 +12381,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestShareLocation(::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(26, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(36, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -7771,7 +12390,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_UnshareLocation() { - ::grpc::Service::MarkMethodRaw(27); + ::grpc::Service::MarkMethodRaw(37); } ~WithRawMethod_UnshareLocation() override { BaseClassMustBeDerivedFromService(this); @@ -7782,7 +12401,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestUnshareLocation(::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(27, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(37, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -7791,7 +12410,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_LocationAuth() { - ::grpc::Service::MarkMethodRaw(28); + ::grpc::Service::MarkMethodRaw(38); } ~WithRawMethod_LocationAuth() override { BaseClassMustBeDerivedFromService(this); @@ -7802,7 +12421,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestLocationAuth(::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(28, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(38, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -7811,7 +12430,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_CreateLocationSecret() { - ::grpc::Service::MarkMethodRaw(29); + ::grpc::Service::MarkMethodRaw(39); } ~WithRawMethod_CreateLocationSecret() override { BaseClassMustBeDerivedFromService(this); @@ -7822,7 +12441,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestCreateLocationSecret(::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(29, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(39, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -7831,7 +12450,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_DeleteLocationSecret() { - ::grpc::Service::MarkMethodRaw(30); + ::grpc::Service::MarkMethodRaw(40); } ~WithRawMethod_DeleteLocationSecret() override { BaseClassMustBeDerivedFromService(this); @@ -7842,7 +12461,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestDeleteLocationSecret(::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(30, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(40, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -7851,7 +12470,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_GetRobot() { - ::grpc::Service::MarkMethodRaw(31); + ::grpc::Service::MarkMethodRaw(41); } ~WithRawMethod_GetRobot() override { BaseClassMustBeDerivedFromService(this); @@ -7862,7 +12481,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestGetRobot(::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(31, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(41, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -7871,7 +12490,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_GetRoverRentalRobots() { - ::grpc::Service::MarkMethodRaw(32); + ::grpc::Service::MarkMethodRaw(42); } ~WithRawMethod_GetRoverRentalRobots() override { BaseClassMustBeDerivedFromService(this); @@ -7882,7 +12501,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestGetRoverRentalRobots(::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(32, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(42, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -7891,7 +12510,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_GetRobotParts() { - ::grpc::Service::MarkMethodRaw(33); + ::grpc::Service::MarkMethodRaw(43); } ~WithRawMethod_GetRobotParts() override { BaseClassMustBeDerivedFromService(this); @@ -7902,7 +12521,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestGetRobotParts(::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(33, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(43, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -7911,7 +12530,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_GetRobotPart() { - ::grpc::Service::MarkMethodRaw(34); + ::grpc::Service::MarkMethodRaw(44); } ~WithRawMethod_GetRobotPart() override { BaseClassMustBeDerivedFromService(this); @@ -7922,7 +12541,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestGetRobotPart(::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(34, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(44, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -7931,7 +12550,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_GetRobotPartLogs() { - ::grpc::Service::MarkMethodRaw(35); + ::grpc::Service::MarkMethodRaw(45); } ~WithRawMethod_GetRobotPartLogs() override { BaseClassMustBeDerivedFromService(this); @@ -7942,7 +12561,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestGetRobotPartLogs(::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(35, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(45, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -7951,7 +12570,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_TailRobotPartLogs() { - ::grpc::Service::MarkMethodRaw(36); + ::grpc::Service::MarkMethodRaw(46); } ~WithRawMethod_TailRobotPartLogs() override { BaseClassMustBeDerivedFromService(this); @@ -7962,7 +12581,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestTailRobotPartLogs(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncWriter< ::grpc::ByteBuffer>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncServerStreaming(36, context, request, writer, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncServerStreaming(46, context, request, writer, new_call_cq, notification_cq, tag); } }; template @@ -7971,7 +12590,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_GetRobotPartHistory() { - ::grpc::Service::MarkMethodRaw(37); + ::grpc::Service::MarkMethodRaw(47); } ~WithRawMethod_GetRobotPartHistory() override { BaseClassMustBeDerivedFromService(this); @@ -7982,7 +12601,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestGetRobotPartHistory(::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(37, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(47, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -7991,7 +12610,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_UpdateRobotPart() { - ::grpc::Service::MarkMethodRaw(38); + ::grpc::Service::MarkMethodRaw(48); } ~WithRawMethod_UpdateRobotPart() override { BaseClassMustBeDerivedFromService(this); @@ -8002,7 +12621,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestUpdateRobotPart(::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(38, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(48, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -8011,7 +12630,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_NewRobotPart() { - ::grpc::Service::MarkMethodRaw(39); + ::grpc::Service::MarkMethodRaw(49); } ~WithRawMethod_NewRobotPart() override { BaseClassMustBeDerivedFromService(this); @@ -8022,7 +12641,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestNewRobotPart(::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(39, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(49, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -8031,7 +12650,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_DeleteRobotPart() { - ::grpc::Service::MarkMethodRaw(40); + ::grpc::Service::MarkMethodRaw(50); } ~WithRawMethod_DeleteRobotPart() override { BaseClassMustBeDerivedFromService(this); @@ -8042,7 +12661,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestDeleteRobotPart(::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(40, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(50, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -8051,7 +12670,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_GetRobotAPIKeys() { - ::grpc::Service::MarkMethodRaw(41); + ::grpc::Service::MarkMethodRaw(51); } ~WithRawMethod_GetRobotAPIKeys() override { BaseClassMustBeDerivedFromService(this); @@ -8062,7 +12681,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestGetRobotAPIKeys(::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(41, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(51, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -8071,7 +12690,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_MarkPartAsMain() { - ::grpc::Service::MarkMethodRaw(42); + ::grpc::Service::MarkMethodRaw(52); } ~WithRawMethod_MarkPartAsMain() override { BaseClassMustBeDerivedFromService(this); @@ -8082,7 +12701,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestMarkPartAsMain(::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(42, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(52, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -8091,7 +12710,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_MarkPartForRestart() { - ::grpc::Service::MarkMethodRaw(43); + ::grpc::Service::MarkMethodRaw(53); } ~WithRawMethod_MarkPartForRestart() override { BaseClassMustBeDerivedFromService(this); @@ -8102,7 +12721,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestMarkPartForRestart(::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(43, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(53, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -8111,7 +12730,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_CreateRobotPartSecret() { - ::grpc::Service::MarkMethodRaw(44); + ::grpc::Service::MarkMethodRaw(54); } ~WithRawMethod_CreateRobotPartSecret() override { BaseClassMustBeDerivedFromService(this); @@ -8122,7 +12741,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestCreateRobotPartSecret(::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(44, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(54, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -8131,7 +12750,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_DeleteRobotPartSecret() { - ::grpc::Service::MarkMethodRaw(45); + ::grpc::Service::MarkMethodRaw(55); } ~WithRawMethod_DeleteRobotPartSecret() override { BaseClassMustBeDerivedFromService(this); @@ -8142,7 +12761,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestDeleteRobotPartSecret(::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(45, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(55, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -8151,7 +12770,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_ListRobots() { - ::grpc::Service::MarkMethodRaw(46); + ::grpc::Service::MarkMethodRaw(56); } ~WithRawMethod_ListRobots() override { BaseClassMustBeDerivedFromService(this); @@ -8162,7 +12781,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestListRobots(::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(46, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(56, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -8171,7 +12790,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_NewRobot() { - ::grpc::Service::MarkMethodRaw(47); + ::grpc::Service::MarkMethodRaw(57); } ~WithRawMethod_NewRobot() override { BaseClassMustBeDerivedFromService(this); @@ -8182,7 +12801,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestNewRobot(::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(47, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(57, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -8191,7 +12810,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_UpdateRobot() { - ::grpc::Service::MarkMethodRaw(48); + ::grpc::Service::MarkMethodRaw(58); } ~WithRawMethod_UpdateRobot() override { BaseClassMustBeDerivedFromService(this); @@ -8202,7 +12821,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestUpdateRobot(::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(48, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(58, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -8211,7 +12830,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_DeleteRobot() { - ::grpc::Service::MarkMethodRaw(49); + ::grpc::Service::MarkMethodRaw(59); } ~WithRawMethod_DeleteRobot() override { BaseClassMustBeDerivedFromService(this); @@ -8222,7 +12841,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestDeleteRobot(::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(49, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(59, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -8231,7 +12850,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_ListFragments() { - ::grpc::Service::MarkMethodRaw(50); + ::grpc::Service::MarkMethodRaw(60); } ~WithRawMethod_ListFragments() override { BaseClassMustBeDerivedFromService(this); @@ -8242,7 +12861,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestListFragments(::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(50, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(60, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -8251,7 +12870,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_GetFragment() { - ::grpc::Service::MarkMethodRaw(51); + ::grpc::Service::MarkMethodRaw(61); } ~WithRawMethod_GetFragment() override { BaseClassMustBeDerivedFromService(this); @@ -8262,7 +12881,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestGetFragment(::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(51, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(61, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -8271,7 +12890,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_CreateFragment() { - ::grpc::Service::MarkMethodRaw(52); + ::grpc::Service::MarkMethodRaw(62); } ~WithRawMethod_CreateFragment() override { BaseClassMustBeDerivedFromService(this); @@ -8282,7 +12901,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestCreateFragment(::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(52, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(62, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -8291,7 +12910,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_UpdateFragment() { - ::grpc::Service::MarkMethodRaw(53); + ::grpc::Service::MarkMethodRaw(63); } ~WithRawMethod_UpdateFragment() override { BaseClassMustBeDerivedFromService(this); @@ -8302,7 +12921,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestUpdateFragment(::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(53, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(63, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -8311,7 +12930,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_DeleteFragment() { - ::grpc::Service::MarkMethodRaw(54); + ::grpc::Service::MarkMethodRaw(64); } ~WithRawMethod_DeleteFragment() override { BaseClassMustBeDerivedFromService(this); @@ -8322,7 +12941,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestDeleteFragment(::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(54, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(64, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -8331,7 +12950,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_ListMachineFragments() { - ::grpc::Service::MarkMethodRaw(55); + ::grpc::Service::MarkMethodRaw(65); } ~WithRawMethod_ListMachineFragments() override { BaseClassMustBeDerivedFromService(this); @@ -8342,7 +12961,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestListMachineFragments(::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(55, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(65, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -8351,7 +12970,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_GetFragmentHistory() { - ::grpc::Service::MarkMethodRaw(56); + ::grpc::Service::MarkMethodRaw(66); } ~WithRawMethod_GetFragmentHistory() override { BaseClassMustBeDerivedFromService(this); @@ -8362,7 +12981,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestGetFragmentHistory(::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(56, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(66, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -8371,7 +12990,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_AddRole() { - ::grpc::Service::MarkMethodRaw(57); + ::grpc::Service::MarkMethodRaw(67); } ~WithRawMethod_AddRole() override { BaseClassMustBeDerivedFromService(this); @@ -8382,7 +13001,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestAddRole(::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(57, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(67, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -8391,7 +13010,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_RemoveRole() { - ::grpc::Service::MarkMethodRaw(58); + ::grpc::Service::MarkMethodRaw(68); } ~WithRawMethod_RemoveRole() override { BaseClassMustBeDerivedFromService(this); @@ -8402,7 +13021,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestRemoveRole(::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(58, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(68, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -8411,7 +13030,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_ChangeRole() { - ::grpc::Service::MarkMethodRaw(59); + ::grpc::Service::MarkMethodRaw(69); } ~WithRawMethod_ChangeRole() override { BaseClassMustBeDerivedFromService(this); @@ -8422,7 +13041,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestChangeRole(::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(59, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(69, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -8431,7 +13050,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_ListAuthorizations() { - ::grpc::Service::MarkMethodRaw(60); + ::grpc::Service::MarkMethodRaw(70); } ~WithRawMethod_ListAuthorizations() override { BaseClassMustBeDerivedFromService(this); @@ -8442,7 +13061,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestListAuthorizations(::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(60, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(70, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -8451,7 +13070,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_CheckPermissions() { - ::grpc::Service::MarkMethodRaw(61); + ::grpc::Service::MarkMethodRaw(71); } ~WithRawMethod_CheckPermissions() override { BaseClassMustBeDerivedFromService(this); @@ -8462,7 +13081,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestCheckPermissions(::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(61, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(71, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -8471,7 +13090,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_GetRegistryItem() { - ::grpc::Service::MarkMethodRaw(62); + ::grpc::Service::MarkMethodRaw(72); } ~WithRawMethod_GetRegistryItem() override { BaseClassMustBeDerivedFromService(this); @@ -8482,7 +13101,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestGetRegistryItem(::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(62, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(72, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -8491,7 +13110,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_CreateRegistryItem() { - ::grpc::Service::MarkMethodRaw(63); + ::grpc::Service::MarkMethodRaw(73); } ~WithRawMethod_CreateRegistryItem() override { BaseClassMustBeDerivedFromService(this); @@ -8502,7 +13121,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestCreateRegistryItem(::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(63, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(73, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -8511,7 +13130,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_UpdateRegistryItem() { - ::grpc::Service::MarkMethodRaw(64); + ::grpc::Service::MarkMethodRaw(74); } ~WithRawMethod_UpdateRegistryItem() override { BaseClassMustBeDerivedFromService(this); @@ -8522,7 +13141,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestUpdateRegistryItem(::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(64, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(74, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -8531,7 +13150,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_ListRegistryItems() { - ::grpc::Service::MarkMethodRaw(65); + ::grpc::Service::MarkMethodRaw(75); } ~WithRawMethod_ListRegistryItems() override { BaseClassMustBeDerivedFromService(this); @@ -8542,7 +13161,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestListRegistryItems(::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(65, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(75, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -8551,7 +13170,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_DeleteRegistryItem() { - ::grpc::Service::MarkMethodRaw(66); + ::grpc::Service::MarkMethodRaw(76); } ~WithRawMethod_DeleteRegistryItem() override { BaseClassMustBeDerivedFromService(this); @@ -8562,7 +13181,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestDeleteRegistryItem(::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(66, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(76, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -8571,7 +13190,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_TransferRegistryItem() { - ::grpc::Service::MarkMethodRaw(67); + ::grpc::Service::MarkMethodRaw(77); } ~WithRawMethod_TransferRegistryItem() override { BaseClassMustBeDerivedFromService(this); @@ -8582,7 +13201,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestTransferRegistryItem(::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(67, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(77, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -8591,7 +13210,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_CreateModule() { - ::grpc::Service::MarkMethodRaw(68); + ::grpc::Service::MarkMethodRaw(78); } ~WithRawMethod_CreateModule() override { BaseClassMustBeDerivedFromService(this); @@ -8602,7 +13221,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestCreateModule(::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(68, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(78, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -8611,7 +13230,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_UpdateModule() { - ::grpc::Service::MarkMethodRaw(69); + ::grpc::Service::MarkMethodRaw(79); } ~WithRawMethod_UpdateModule() override { BaseClassMustBeDerivedFromService(this); @@ -8622,7 +13241,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestUpdateModule(::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(69, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(79, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -8631,7 +13250,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_UploadModuleFile() { - ::grpc::Service::MarkMethodRaw(70); + ::grpc::Service::MarkMethodRaw(80); } ~WithRawMethod_UploadModuleFile() override { BaseClassMustBeDerivedFromService(this); @@ -8642,7 +13261,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestUploadModuleFile(::grpc::ServerContext* context, ::grpc::ServerAsyncReader< ::grpc::ByteBuffer, ::grpc::ByteBuffer>* reader, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncClientStreaming(70, context, reader, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncClientStreaming(80, context, reader, new_call_cq, notification_cq, tag); } }; template @@ -8651,7 +13270,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_GetModule() { - ::grpc::Service::MarkMethodRaw(71); + ::grpc::Service::MarkMethodRaw(81); } ~WithRawMethod_GetModule() override { BaseClassMustBeDerivedFromService(this); @@ -8662,7 +13281,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestGetModule(::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(71, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(81, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -8671,7 +13290,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_ListModules() { - ::grpc::Service::MarkMethodRaw(72); + ::grpc::Service::MarkMethodRaw(82); } ~WithRawMethod_ListModules() override { BaseClassMustBeDerivedFromService(this); @@ -8682,7 +13301,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestListModules(::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(72, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(82, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -8691,7 +13310,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_CreateKey() { - ::grpc::Service::MarkMethodRaw(73); + ::grpc::Service::MarkMethodRaw(83); } ~WithRawMethod_CreateKey() override { BaseClassMustBeDerivedFromService(this); @@ -8702,7 +13321,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestCreateKey(::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(73, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(83, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -8711,7 +13330,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_DeleteKey() { - ::grpc::Service::MarkMethodRaw(74); + ::grpc::Service::MarkMethodRaw(84); } ~WithRawMethod_DeleteKey() override { BaseClassMustBeDerivedFromService(this); @@ -8722,7 +13341,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestDeleteKey(::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(74, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(84, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -8731,7 +13350,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_ListKeys() { - ::grpc::Service::MarkMethodRaw(75); + ::grpc::Service::MarkMethodRaw(85); } ~WithRawMethod_ListKeys() override { BaseClassMustBeDerivedFromService(this); @@ -8742,7 +13361,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestListKeys(::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(75, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(85, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -8751,7 +13370,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_RenameKey() { - ::grpc::Service::MarkMethodRaw(76); + ::grpc::Service::MarkMethodRaw(86); } ~WithRawMethod_RenameKey() override { BaseClassMustBeDerivedFromService(this); @@ -8762,7 +13381,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestRenameKey(::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(76, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(86, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -8771,7 +13390,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_RotateKey() { - ::grpc::Service::MarkMethodRaw(77); + ::grpc::Service::MarkMethodRaw(87); } ~WithRawMethod_RotateKey() override { BaseClassMustBeDerivedFromService(this); @@ -8782,7 +13401,7 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestRotateKey(::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(77, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(87, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -8791,7 +13410,7 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_CreateKeyFromExistingKeyAuthorizations() { - ::grpc::Service::MarkMethodRaw(78); + ::grpc::Service::MarkMethodRaw(88); } ~WithRawMethod_CreateKeyFromExistingKeyAuthorizations() override { BaseClassMustBeDerivedFromService(this); @@ -8802,21 +13421,31 @@ class AppService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestCreateKeyFromExistingKeyAuthorizations(::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(78, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(88, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithRawCallbackMethod_GetUserIDByEmail : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetUserIDByEmail : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetUserIDByEmail() { - ::grpc::Service::MarkMethodRawCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetUserIDByEmail() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetUserIDByEmail(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetUserIDByEmail(context, request, response); })); } - ~WithRawCallbackMethod_GetUserIDByEmail() override { + ~ExperimentalWithRawCallbackMethod_GetUserIDByEmail() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -8824,21 +13453,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetUserIDByEmail( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetUserIDByEmail( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_CreateOrganization : public BaseClass { + class ExperimentalWithRawCallbackMethod_CreateOrganization : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_CreateOrganization() { - ::grpc::Service::MarkMethodRawCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_CreateOrganization() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->CreateOrganization(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->CreateOrganization(context, request, response); })); } - ~WithRawCallbackMethod_CreateOrganization() override { + ~ExperimentalWithRawCallbackMethod_CreateOrganization() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -8846,21 +13491,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* CreateOrganization( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* CreateOrganization( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_ListOrganizations : public BaseClass { + class ExperimentalWithRawCallbackMethod_ListOrganizations : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_ListOrganizations() { - ::grpc::Service::MarkMethodRawCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_ListOrganizations() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(2, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ListOrganizations(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ListOrganizations(context, request, response); })); } - ~WithRawCallbackMethod_ListOrganizations() override { + ~ExperimentalWithRawCallbackMethod_ListOrganizations() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -8868,21 +13529,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* ListOrganizations( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ListOrganizations( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetOrganizationsWithAccessToLocation : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetOrganizationsWithAccessToLocation : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetOrganizationsWithAccessToLocation() { - ::grpc::Service::MarkMethodRawCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetOrganizationsWithAccessToLocation() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(3, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetOrganizationsWithAccessToLocation(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetOrganizationsWithAccessToLocation(context, request, response); })); } - ~WithRawCallbackMethod_GetOrganizationsWithAccessToLocation() override { + ~ExperimentalWithRawCallbackMethod_GetOrganizationsWithAccessToLocation() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -8890,21 +13567,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetOrganizationsWithAccessToLocation( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetOrganizationsWithAccessToLocation( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_ListOrganizationsByUser : public BaseClass { + class ExperimentalWithRawCallbackMethod_ListOrganizationsByUser : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_ListOrganizationsByUser() { - ::grpc::Service::MarkMethodRawCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_ListOrganizationsByUser() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(4, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ListOrganizationsByUser(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ListOrganizationsByUser(context, request, response); })); } - ~WithRawCallbackMethod_ListOrganizationsByUser() override { + ~ExperimentalWithRawCallbackMethod_ListOrganizationsByUser() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -8912,21 +13605,75 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* ListOrganizationsByUser( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ListOrganizationsByUser( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } + }; + template + class ExperimentalWithRawCallbackMethod_SearchOrganizations : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithRawCallbackMethod_SearchOrganizations() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(5, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SearchOrganizations(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_SearchOrganizations() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SearchOrganizations(::grpc::ServerContext* /*context*/, const ::viam::app::v1::SearchOrganizationsRequest* /*request*/, ::viam::app::v1::SearchOrganizationsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* SearchOrganizations( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* SearchOrganizations( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetOrganization : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetOrganization : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetOrganization() { - ::grpc::Service::MarkMethodRawCallback(5, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetOrganization() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(6, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetOrganization(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetOrganization(context, request, response); })); } - ~WithRawCallbackMethod_GetOrganization() override { + ~ExperimentalWithRawCallbackMethod_GetOrganization() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -8934,21 +13681,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetOrganization( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetOrganization( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetOrganizationNamespaceAvailability : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetOrganizationNamespaceAvailability : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetOrganizationNamespaceAvailability() { - ::grpc::Service::MarkMethodRawCallback(6, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetOrganizationNamespaceAvailability() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(7, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetOrganizationNamespaceAvailability(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetOrganizationNamespaceAvailability(context, request, response); })); } - ~WithRawCallbackMethod_GetOrganizationNamespaceAvailability() override { + ~ExperimentalWithRawCallbackMethod_GetOrganizationNamespaceAvailability() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -8956,21 +13719,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetOrganizationNamespaceAvailability( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetOrganizationNamespaceAvailability( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_UpdateOrganization : public BaseClass { + class ExperimentalWithRawCallbackMethod_UpdateOrganization : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_UpdateOrganization() { - ::grpc::Service::MarkMethodRawCallback(7, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_UpdateOrganization() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(8, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->UpdateOrganization(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->UpdateOrganization(context, request, response); })); } - ~WithRawCallbackMethod_UpdateOrganization() override { + ~ExperimentalWithRawCallbackMethod_UpdateOrganization() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -8978,21 +13757,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* UpdateOrganization( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* UpdateOrganization( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_DeleteOrganization : public BaseClass { + class ExperimentalWithRawCallbackMethod_DeleteOrganization : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_DeleteOrganization() { - ::grpc::Service::MarkMethodRawCallback(8, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_DeleteOrganization() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(9, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DeleteOrganization(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DeleteOrganization(context, request, response); })); } - ~WithRawCallbackMethod_DeleteOrganization() override { + ~ExperimentalWithRawCallbackMethod_DeleteOrganization() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -9000,21 +13795,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DeleteOrganization( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DeleteOrganization( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_ListOrganizationMembers : public BaseClass { + class ExperimentalWithRawCallbackMethod_ListOrganizationMembers : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_ListOrganizationMembers() { - ::grpc::Service::MarkMethodRawCallback(9, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_ListOrganizationMembers() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(10, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ListOrganizationMembers(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ListOrganizationMembers(context, request, response); })); } - ~WithRawCallbackMethod_ListOrganizationMembers() override { + ~ExperimentalWithRawCallbackMethod_ListOrganizationMembers() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -9022,21 +13833,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* ListOrganizationMembers( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ListOrganizationMembers( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_CreateOrganizationInvite : public BaseClass { + class ExperimentalWithRawCallbackMethod_CreateOrganizationInvite : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_CreateOrganizationInvite() { - ::grpc::Service::MarkMethodRawCallback(10, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_CreateOrganizationInvite() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(11, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->CreateOrganizationInvite(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->CreateOrganizationInvite(context, request, response); })); } - ~WithRawCallbackMethod_CreateOrganizationInvite() override { + ~ExperimentalWithRawCallbackMethod_CreateOrganizationInvite() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -9044,21 +13871,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* CreateOrganizationInvite( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* CreateOrganizationInvite( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_UpdateOrganizationInviteAuthorizations : public BaseClass { + class ExperimentalWithRawCallbackMethod_UpdateOrganizationInviteAuthorizations : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_UpdateOrganizationInviteAuthorizations() { - ::grpc::Service::MarkMethodRawCallback(11, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_UpdateOrganizationInviteAuthorizations() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(12, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->UpdateOrganizationInviteAuthorizations(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->UpdateOrganizationInviteAuthorizations(context, request, response); })); } - ~WithRawCallbackMethod_UpdateOrganizationInviteAuthorizations() override { + ~ExperimentalWithRawCallbackMethod_UpdateOrganizationInviteAuthorizations() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -9066,21 +13909,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* UpdateOrganizationInviteAuthorizations( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* UpdateOrganizationInviteAuthorizations( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_DeleteOrganizationMember : public BaseClass { + class ExperimentalWithRawCallbackMethod_DeleteOrganizationMember : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_DeleteOrganizationMember() { - ::grpc::Service::MarkMethodRawCallback(12, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_DeleteOrganizationMember() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(13, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DeleteOrganizationMember(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DeleteOrganizationMember(context, request, response); })); } - ~WithRawCallbackMethod_DeleteOrganizationMember() override { + ~ExperimentalWithRawCallbackMethod_DeleteOrganizationMember() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -9088,21 +13947,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DeleteOrganizationMember( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DeleteOrganizationMember( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_DeleteOrganizationInvite : public BaseClass { + class ExperimentalWithRawCallbackMethod_DeleteOrganizationInvite : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_DeleteOrganizationInvite() { - ::grpc::Service::MarkMethodRawCallback(13, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_DeleteOrganizationInvite() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(14, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DeleteOrganizationInvite(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DeleteOrganizationInvite(context, request, response); })); } - ~WithRawCallbackMethod_DeleteOrganizationInvite() override { + ~ExperimentalWithRawCallbackMethod_DeleteOrganizationInvite() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -9110,21 +13985,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DeleteOrganizationInvite( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DeleteOrganizationInvite( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_ResendOrganizationInvite : public BaseClass { + class ExperimentalWithRawCallbackMethod_ResendOrganizationInvite : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_ResendOrganizationInvite() { - ::grpc::Service::MarkMethodRawCallback(14, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_ResendOrganizationInvite() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(15, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ResendOrganizationInvite(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ResendOrganizationInvite(context, request, response); })); } - ~WithRawCallbackMethod_ResendOrganizationInvite() override { + ~ExperimentalWithRawCallbackMethod_ResendOrganizationInvite() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -9132,21 +14023,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* ResendOrganizationInvite( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ResendOrganizationInvite( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_EnableBillingService : public BaseClass { + class ExperimentalWithRawCallbackMethod_EnableBillingService : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_EnableBillingService() { - ::grpc::Service::MarkMethodRawCallback(15, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_EnableBillingService() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(16, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->EnableBillingService(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->EnableBillingService(context, request, response); })); } - ~WithRawCallbackMethod_EnableBillingService() override { + ~ExperimentalWithRawCallbackMethod_EnableBillingService() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -9154,21 +14061,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* EnableBillingService( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* EnableBillingService( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_DisableBillingService : public BaseClass { + class ExperimentalWithRawCallbackMethod_DisableBillingService : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_DisableBillingService() { - ::grpc::Service::MarkMethodRawCallback(16, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_DisableBillingService() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(17, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DisableBillingService(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DisableBillingService(context, request, response); })); } - ~WithRawCallbackMethod_DisableBillingService() override { + ~ExperimentalWithRawCallbackMethod_DisableBillingService() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -9176,109 +14099,531 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DisableBillingService( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DisableBillingService( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } + }; + template + class ExperimentalWithRawCallbackMethod_UpdateBillingService : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithRawCallbackMethod_UpdateBillingService() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(18, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->UpdateBillingService(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_UpdateBillingService() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateBillingService(::grpc::ServerContext* /*context*/, const ::viam::app::v1::UpdateBillingServiceRequest* /*request*/, ::viam::app::v1::UpdateBillingServiceResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* UpdateBillingService( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* UpdateBillingService( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } + }; + template + class ExperimentalWithRawCallbackMethod_GetBillingServiceConfig : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithRawCallbackMethod_GetBillingServiceConfig() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(19, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetBillingServiceConfig(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetBillingServiceConfig() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetBillingServiceConfig(::grpc::ServerContext* /*context*/, const ::viam::app::v1::GetBillingServiceConfigRequest* /*request*/, ::viam::app::v1::GetBillingServiceConfigResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* GetBillingServiceConfig( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetBillingServiceConfig( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } + }; + template + class ExperimentalWithRawCallbackMethod_OrganizationSetSupportEmail : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithRawCallbackMethod_OrganizationSetSupportEmail() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(20, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->OrganizationSetSupportEmail(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_OrganizationSetSupportEmail() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status OrganizationSetSupportEmail(::grpc::ServerContext* /*context*/, const ::viam::app::v1::OrganizationSetSupportEmailRequest* /*request*/, ::viam::app::v1::OrganizationSetSupportEmailResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* OrganizationSetSupportEmail( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* OrganizationSetSupportEmail( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } + }; + template + class ExperimentalWithRawCallbackMethod_OrganizationGetSupportEmail : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithRawCallbackMethod_OrganizationGetSupportEmail() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(21, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->OrganizationGetSupportEmail(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_OrganizationGetSupportEmail() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status OrganizationGetSupportEmail(::grpc::ServerContext* /*context*/, const ::viam::app::v1::OrganizationGetSupportEmailRequest* /*request*/, ::viam::app::v1::OrganizationGetSupportEmailResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* OrganizationGetSupportEmail( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* OrganizationGetSupportEmail( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } + }; + template + class ExperimentalWithRawCallbackMethod_OrganizationSetLogo : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithRawCallbackMethod_OrganizationSetLogo() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(22, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->OrganizationSetLogo(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_OrganizationSetLogo() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status OrganizationSetLogo(::grpc::ServerContext* /*context*/, const ::viam::app::v1::OrganizationSetLogoRequest* /*request*/, ::viam::app::v1::OrganizationSetLogoResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* OrganizationSetLogo( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* OrganizationSetLogo( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } + }; + template + class ExperimentalWithRawCallbackMethod_OrganizationGetLogo : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithRawCallbackMethod_OrganizationGetLogo() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(23, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->OrganizationGetLogo(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_OrganizationGetLogo() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status OrganizationGetLogo(::grpc::ServerContext* /*context*/, const ::viam::app::v1::OrganizationGetLogoRequest* /*request*/, ::viam::app::v1::OrganizationGetLogoResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* OrganizationGetLogo( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* OrganizationGetLogo( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } + }; + template + class ExperimentalWithRawCallbackMethod_EnableAuthService : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithRawCallbackMethod_EnableAuthService() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(24, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->EnableAuthService(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_EnableAuthService() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status EnableAuthService(::grpc::ServerContext* /*context*/, const ::viam::app::v1::EnableAuthServiceRequest* /*request*/, ::viam::app::v1::EnableAuthServiceResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* EnableAuthService( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* EnableAuthService( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } + }; + template + class ExperimentalWithRawCallbackMethod_DisableAuthService : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithRawCallbackMethod_DisableAuthService() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(25, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DisableAuthService(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_DisableAuthService() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DisableAuthService(::grpc::ServerContext* /*context*/, const ::viam::app::v1::DisableAuthServiceRequest* /*request*/, ::viam::app::v1::DisableAuthServiceResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* DisableAuthService( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DisableAuthService( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } + }; + template + class ExperimentalWithRawCallbackMethod_CreateOAuthApp : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithRawCallbackMethod_CreateOAuthApp() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(26, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->CreateOAuthApp(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_CreateOAuthApp() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateOAuthApp(::grpc::ServerContext* /*context*/, const ::viam::app::v1::CreateOAuthAppRequest* /*request*/, ::viam::app::v1::CreateOAuthAppResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* CreateOAuthApp( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* CreateOAuthApp( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_UpdateBillingService : public BaseClass { + class ExperimentalWithRawCallbackMethod_ReadOAuthApp : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_UpdateBillingService() { - ::grpc::Service::MarkMethodRawCallback(17, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_ReadOAuthApp() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(27, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->UpdateBillingService(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ReadOAuthApp(context, request, response); })); } - ~WithRawCallbackMethod_UpdateBillingService() override { + ~ExperimentalWithRawCallbackMethod_ReadOAuthApp() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status UpdateBillingService(::grpc::ServerContext* /*context*/, const ::viam::app::v1::UpdateBillingServiceRequest* /*request*/, ::viam::app::v1::UpdateBillingServiceResponse* /*response*/) override { + ::grpc::Status ReadOAuthApp(::grpc::ServerContext* /*context*/, const ::viam::app::v1::ReadOAuthAppRequest* /*request*/, ::viam::app::v1::ReadOAuthAppResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual ::grpc::ServerUnaryReactor* UpdateBillingService( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* ReadOAuthApp( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ReadOAuthApp( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetBillingServiceConfig : public BaseClass { + class ExperimentalWithRawCallbackMethod_UpdateOAuthApp : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetBillingServiceConfig() { - ::grpc::Service::MarkMethodRawCallback(18, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_UpdateOAuthApp() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(28, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetBillingServiceConfig(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->UpdateOAuthApp(context, request, response); })); } - ~WithRawCallbackMethod_GetBillingServiceConfig() override { + ~ExperimentalWithRawCallbackMethod_UpdateOAuthApp() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetBillingServiceConfig(::grpc::ServerContext* /*context*/, const ::viam::app::v1::GetBillingServiceConfigRequest* /*request*/, ::viam::app::v1::GetBillingServiceConfigResponse* /*response*/) override { + ::grpc::Status UpdateOAuthApp(::grpc::ServerContext* /*context*/, const ::viam::app::v1::UpdateOAuthAppRequest* /*request*/, ::viam::app::v1::UpdateOAuthAppResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual ::grpc::ServerUnaryReactor* GetBillingServiceConfig( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* UpdateOAuthApp( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* UpdateOAuthApp( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_OrganizationSetSupportEmail : public BaseClass { + class ExperimentalWithRawCallbackMethod_DeleteOAuthApp : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_OrganizationSetSupportEmail() { - ::grpc::Service::MarkMethodRawCallback(19, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_DeleteOAuthApp() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(29, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->OrganizationSetSupportEmail(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DeleteOAuthApp(context, request, response); })); } - ~WithRawCallbackMethod_OrganizationSetSupportEmail() override { + ~ExperimentalWithRawCallbackMethod_DeleteOAuthApp() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status OrganizationSetSupportEmail(::grpc::ServerContext* /*context*/, const ::viam::app::v1::OrganizationSetSupportEmailRequest* /*request*/, ::viam::app::v1::OrganizationSetSupportEmailResponse* /*response*/) override { + ::grpc::Status DeleteOAuthApp(::grpc::ServerContext* /*context*/, const ::viam::app::v1::DeleteOAuthAppRequest* /*request*/, ::viam::app::v1::DeleteOAuthAppResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual ::grpc::ServerUnaryReactor* OrganizationSetSupportEmail( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* DeleteOAuthApp( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DeleteOAuthApp( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_OrganizationGetSupportEmail : public BaseClass { + class ExperimentalWithRawCallbackMethod_ListOAuthApps : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_OrganizationGetSupportEmail() { - ::grpc::Service::MarkMethodRawCallback(20, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_ListOAuthApps() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(30, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->OrganizationGetSupportEmail(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ListOAuthApps(context, request, response); })); } - ~WithRawCallbackMethod_OrganizationGetSupportEmail() override { + ~ExperimentalWithRawCallbackMethod_ListOAuthApps() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status OrganizationGetSupportEmail(::grpc::ServerContext* /*context*/, const ::viam::app::v1::OrganizationGetSupportEmailRequest* /*request*/, ::viam::app::v1::OrganizationGetSupportEmailResponse* /*response*/) override { + ::grpc::Status ListOAuthApps(::grpc::ServerContext* /*context*/, const ::viam::app::v1::ListOAuthAppsRequest* /*request*/, ::viam::app::v1::ListOAuthAppsResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual ::grpc::ServerUnaryReactor* OrganizationGetSupportEmail( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* ListOAuthApps( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ListOAuthApps( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_CreateLocation : public BaseClass { + class ExperimentalWithRawCallbackMethod_CreateLocation : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_CreateLocation() { - ::grpc::Service::MarkMethodRawCallback(21, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_CreateLocation() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(31, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->CreateLocation(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->CreateLocation(context, request, response); })); } - ~WithRawCallbackMethod_CreateLocation() override { + ~ExperimentalWithRawCallbackMethod_CreateLocation() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -9286,21 +14631,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* CreateLocation( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* CreateLocation( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetLocation : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetLocation : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetLocation() { - ::grpc::Service::MarkMethodRawCallback(22, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetLocation() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(32, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetLocation(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetLocation(context, request, response); })); } - ~WithRawCallbackMethod_GetLocation() override { + ~ExperimentalWithRawCallbackMethod_GetLocation() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -9308,21 +14669,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetLocation( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetLocation( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_UpdateLocation : public BaseClass { + class ExperimentalWithRawCallbackMethod_UpdateLocation : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_UpdateLocation() { - ::grpc::Service::MarkMethodRawCallback(23, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_UpdateLocation() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(33, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->UpdateLocation(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->UpdateLocation(context, request, response); })); } - ~WithRawCallbackMethod_UpdateLocation() override { + ~ExperimentalWithRawCallbackMethod_UpdateLocation() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -9330,21 +14707,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* UpdateLocation( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* UpdateLocation( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_DeleteLocation : public BaseClass { + class ExperimentalWithRawCallbackMethod_DeleteLocation : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_DeleteLocation() { - ::grpc::Service::MarkMethodRawCallback(24, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_DeleteLocation() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(34, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DeleteLocation(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DeleteLocation(context, request, response); })); } - ~WithRawCallbackMethod_DeleteLocation() override { + ~ExperimentalWithRawCallbackMethod_DeleteLocation() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -9352,21 +14745,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DeleteLocation( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DeleteLocation( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_ListLocations : public BaseClass { + class ExperimentalWithRawCallbackMethod_ListLocations : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_ListLocations() { - ::grpc::Service::MarkMethodRawCallback(25, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_ListLocations() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(35, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ListLocations(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ListLocations(context, request, response); })); } - ~WithRawCallbackMethod_ListLocations() override { + ~ExperimentalWithRawCallbackMethod_ListLocations() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -9374,21 +14783,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* ListLocations( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ListLocations( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_ShareLocation : public BaseClass { + class ExperimentalWithRawCallbackMethod_ShareLocation : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_ShareLocation() { - ::grpc::Service::MarkMethodRawCallback(26, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_ShareLocation() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(36, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ShareLocation(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ShareLocation(context, request, response); })); } - ~WithRawCallbackMethod_ShareLocation() override { + ~ExperimentalWithRawCallbackMethod_ShareLocation() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -9396,21 +14821,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* ShareLocation( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ShareLocation( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_UnshareLocation : public BaseClass { + class ExperimentalWithRawCallbackMethod_UnshareLocation : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_UnshareLocation() { - ::grpc::Service::MarkMethodRawCallback(27, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_UnshareLocation() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(37, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->UnshareLocation(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->UnshareLocation(context, request, response); })); } - ~WithRawCallbackMethod_UnshareLocation() override { + ~ExperimentalWithRawCallbackMethod_UnshareLocation() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -9418,21 +14859,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* UnshareLocation( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* UnshareLocation( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_LocationAuth : public BaseClass { + class ExperimentalWithRawCallbackMethod_LocationAuth : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_LocationAuth() { - ::grpc::Service::MarkMethodRawCallback(28, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_LocationAuth() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(38, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->LocationAuth(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->LocationAuth(context, request, response); })); } - ~WithRawCallbackMethod_LocationAuth() override { + ~ExperimentalWithRawCallbackMethod_LocationAuth() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -9440,21 +14897,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* LocationAuth( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* LocationAuth( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_CreateLocationSecret : public BaseClass { + class ExperimentalWithRawCallbackMethod_CreateLocationSecret : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_CreateLocationSecret() { - ::grpc::Service::MarkMethodRawCallback(29, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_CreateLocationSecret() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(39, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->CreateLocationSecret(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->CreateLocationSecret(context, request, response); })); } - ~WithRawCallbackMethod_CreateLocationSecret() override { + ~ExperimentalWithRawCallbackMethod_CreateLocationSecret() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -9462,21 +14935,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* CreateLocationSecret( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* CreateLocationSecret( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_DeleteLocationSecret : public BaseClass { + class ExperimentalWithRawCallbackMethod_DeleteLocationSecret : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_DeleteLocationSecret() { - ::grpc::Service::MarkMethodRawCallback(30, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_DeleteLocationSecret() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(40, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DeleteLocationSecret(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DeleteLocationSecret(context, request, response); })); } - ~WithRawCallbackMethod_DeleteLocationSecret() override { + ~ExperimentalWithRawCallbackMethod_DeleteLocationSecret() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -9484,21 +14973,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DeleteLocationSecret( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DeleteLocationSecret( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetRobot : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetRobot : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetRobot() { - ::grpc::Service::MarkMethodRawCallback(31, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetRobot() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(41, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetRobot(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetRobot(context, request, response); })); } - ~WithRawCallbackMethod_GetRobot() override { + ~ExperimentalWithRawCallbackMethod_GetRobot() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -9506,21 +15011,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetRobot( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetRobot( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetRoverRentalRobots : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetRoverRentalRobots : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetRoverRentalRobots() { - ::grpc::Service::MarkMethodRawCallback(32, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetRoverRentalRobots() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(42, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetRoverRentalRobots(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetRoverRentalRobots(context, request, response); })); } - ~WithRawCallbackMethod_GetRoverRentalRobots() override { + ~ExperimentalWithRawCallbackMethod_GetRoverRentalRobots() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -9528,21 +15049,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetRoverRentalRobots( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetRoverRentalRobots( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetRobotParts : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetRobotParts : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetRobotParts() { - ::grpc::Service::MarkMethodRawCallback(33, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetRobotParts() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(43, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetRobotParts(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetRobotParts(context, request, response); })); } - ~WithRawCallbackMethod_GetRobotParts() override { + ~ExperimentalWithRawCallbackMethod_GetRobotParts() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -9550,21 +15087,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetRobotParts( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetRobotParts( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetRobotPart : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetRobotPart : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetRobotPart() { - ::grpc::Service::MarkMethodRawCallback(34, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetRobotPart() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(44, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetRobotPart(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetRobotPart(context, request, response); })); } - ~WithRawCallbackMethod_GetRobotPart() override { + ~ExperimentalWithRawCallbackMethod_GetRobotPart() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -9572,21 +15125,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetRobotPart( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetRobotPart( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetRobotPartLogs : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetRobotPartLogs : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetRobotPartLogs() { - ::grpc::Service::MarkMethodRawCallback(35, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetRobotPartLogs() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(45, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetRobotPartLogs(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetRobotPartLogs(context, request, response); })); } - ~WithRawCallbackMethod_GetRobotPartLogs() override { + ~ExperimentalWithRawCallbackMethod_GetRobotPartLogs() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -9594,21 +15163,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetRobotPartLogs( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetRobotPartLogs( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_TailRobotPartLogs : public BaseClass { + class ExperimentalWithRawCallbackMethod_TailRobotPartLogs : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_TailRobotPartLogs() { - ::grpc::Service::MarkMethodRawCallback(36, - new ::grpc::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_TailRobotPartLogs() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(46, + new ::grpc_impl::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const::grpc::ByteBuffer* request) { return this->TailRobotPartLogs(context, request); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const::grpc::ByteBuffer* request) { return this->TailRobotPartLogs(context, request); })); } - ~WithRawCallbackMethod_TailRobotPartLogs() override { + ~ExperimentalWithRawCallbackMethod_TailRobotPartLogs() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -9616,21 +15201,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerWriteReactor< ::grpc::ByteBuffer>* TailRobotPartLogs( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) + #else + virtual ::grpc::experimental::ServerWriteReactor< ::grpc::ByteBuffer>* TailRobotPartLogs( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetRobotPartHistory : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetRobotPartHistory : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetRobotPartHistory() { - ::grpc::Service::MarkMethodRawCallback(37, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetRobotPartHistory() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(47, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetRobotPartHistory(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetRobotPartHistory(context, request, response); })); } - ~WithRawCallbackMethod_GetRobotPartHistory() override { + ~ExperimentalWithRawCallbackMethod_GetRobotPartHistory() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -9638,21 +15239,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetRobotPartHistory( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetRobotPartHistory( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_UpdateRobotPart : public BaseClass { + class ExperimentalWithRawCallbackMethod_UpdateRobotPart : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_UpdateRobotPart() { - ::grpc::Service::MarkMethodRawCallback(38, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_UpdateRobotPart() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(48, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->UpdateRobotPart(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->UpdateRobotPart(context, request, response); })); } - ~WithRawCallbackMethod_UpdateRobotPart() override { + ~ExperimentalWithRawCallbackMethod_UpdateRobotPart() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -9660,21 +15277,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* UpdateRobotPart( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* UpdateRobotPart( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_NewRobotPart : public BaseClass { + class ExperimentalWithRawCallbackMethod_NewRobotPart : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_NewRobotPart() { - ::grpc::Service::MarkMethodRawCallback(39, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_NewRobotPart() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(49, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->NewRobotPart(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->NewRobotPart(context, request, response); })); } - ~WithRawCallbackMethod_NewRobotPart() override { + ~ExperimentalWithRawCallbackMethod_NewRobotPart() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -9682,21 +15315,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* NewRobotPart( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* NewRobotPart( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_DeleteRobotPart : public BaseClass { + class ExperimentalWithRawCallbackMethod_DeleteRobotPart : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_DeleteRobotPart() { - ::grpc::Service::MarkMethodRawCallback(40, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_DeleteRobotPart() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(50, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DeleteRobotPart(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DeleteRobotPart(context, request, response); })); } - ~WithRawCallbackMethod_DeleteRobotPart() override { + ~ExperimentalWithRawCallbackMethod_DeleteRobotPart() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -9704,21 +15353,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DeleteRobotPart( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DeleteRobotPart( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetRobotAPIKeys : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetRobotAPIKeys : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetRobotAPIKeys() { - ::grpc::Service::MarkMethodRawCallback(41, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetRobotAPIKeys() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(51, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetRobotAPIKeys(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetRobotAPIKeys(context, request, response); })); } - ~WithRawCallbackMethod_GetRobotAPIKeys() override { + ~ExperimentalWithRawCallbackMethod_GetRobotAPIKeys() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -9726,21 +15391,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetRobotAPIKeys( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetRobotAPIKeys( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_MarkPartAsMain : public BaseClass { + class ExperimentalWithRawCallbackMethod_MarkPartAsMain : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_MarkPartAsMain() { - ::grpc::Service::MarkMethodRawCallback(42, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_MarkPartAsMain() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(52, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->MarkPartAsMain(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->MarkPartAsMain(context, request, response); })); } - ~WithRawCallbackMethod_MarkPartAsMain() override { + ~ExperimentalWithRawCallbackMethod_MarkPartAsMain() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -9748,21 +15429,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* MarkPartAsMain( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* MarkPartAsMain( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_MarkPartForRestart : public BaseClass { + class ExperimentalWithRawCallbackMethod_MarkPartForRestart : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_MarkPartForRestart() { - ::grpc::Service::MarkMethodRawCallback(43, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_MarkPartForRestart() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(53, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->MarkPartForRestart(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->MarkPartForRestart(context, request, response); })); } - ~WithRawCallbackMethod_MarkPartForRestart() override { + ~ExperimentalWithRawCallbackMethod_MarkPartForRestart() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -9770,21 +15467,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* MarkPartForRestart( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* MarkPartForRestart( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_CreateRobotPartSecret : public BaseClass { + class ExperimentalWithRawCallbackMethod_CreateRobotPartSecret : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_CreateRobotPartSecret() { - ::grpc::Service::MarkMethodRawCallback(44, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_CreateRobotPartSecret() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(54, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->CreateRobotPartSecret(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->CreateRobotPartSecret(context, request, response); })); } - ~WithRawCallbackMethod_CreateRobotPartSecret() override { + ~ExperimentalWithRawCallbackMethod_CreateRobotPartSecret() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -9792,21 +15505,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* CreateRobotPartSecret( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* CreateRobotPartSecret( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_DeleteRobotPartSecret : public BaseClass { + class ExperimentalWithRawCallbackMethod_DeleteRobotPartSecret : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_DeleteRobotPartSecret() { - ::grpc::Service::MarkMethodRawCallback(45, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_DeleteRobotPartSecret() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(55, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DeleteRobotPartSecret(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DeleteRobotPartSecret(context, request, response); })); } - ~WithRawCallbackMethod_DeleteRobotPartSecret() override { + ~ExperimentalWithRawCallbackMethod_DeleteRobotPartSecret() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -9814,21 +15543,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DeleteRobotPartSecret( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DeleteRobotPartSecret( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_ListRobots : public BaseClass { + class ExperimentalWithRawCallbackMethod_ListRobots : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_ListRobots() { - ::grpc::Service::MarkMethodRawCallback(46, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_ListRobots() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(56, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ListRobots(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ListRobots(context, request, response); })); } - ~WithRawCallbackMethod_ListRobots() override { + ~ExperimentalWithRawCallbackMethod_ListRobots() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -9836,21 +15581,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* ListRobots( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ListRobots( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_NewRobot : public BaseClass { + class ExperimentalWithRawCallbackMethod_NewRobot : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_NewRobot() { - ::grpc::Service::MarkMethodRawCallback(47, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_NewRobot() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(57, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->NewRobot(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->NewRobot(context, request, response); })); } - ~WithRawCallbackMethod_NewRobot() override { + ~ExperimentalWithRawCallbackMethod_NewRobot() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -9858,21 +15619,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* NewRobot( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* NewRobot( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_UpdateRobot : public BaseClass { + class ExperimentalWithRawCallbackMethod_UpdateRobot : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_UpdateRobot() { - ::grpc::Service::MarkMethodRawCallback(48, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_UpdateRobot() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(58, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->UpdateRobot(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->UpdateRobot(context, request, response); })); } - ~WithRawCallbackMethod_UpdateRobot() override { + ~ExperimentalWithRawCallbackMethod_UpdateRobot() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -9880,21 +15657,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* UpdateRobot( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* UpdateRobot( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_DeleteRobot : public BaseClass { + class ExperimentalWithRawCallbackMethod_DeleteRobot : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_DeleteRobot() { - ::grpc::Service::MarkMethodRawCallback(49, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_DeleteRobot() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(59, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DeleteRobot(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DeleteRobot(context, request, response); })); } - ~WithRawCallbackMethod_DeleteRobot() override { + ~ExperimentalWithRawCallbackMethod_DeleteRobot() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -9902,21 +15695,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DeleteRobot( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DeleteRobot( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_ListFragments : public BaseClass { + class ExperimentalWithRawCallbackMethod_ListFragments : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_ListFragments() { - ::grpc::Service::MarkMethodRawCallback(50, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_ListFragments() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(60, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ListFragments(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ListFragments(context, request, response); })); } - ~WithRawCallbackMethod_ListFragments() override { + ~ExperimentalWithRawCallbackMethod_ListFragments() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -9924,21 +15733,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* ListFragments( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ListFragments( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetFragment : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetFragment : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetFragment() { - ::grpc::Service::MarkMethodRawCallback(51, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetFragment() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(61, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetFragment(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetFragment(context, request, response); })); } - ~WithRawCallbackMethod_GetFragment() override { + ~ExperimentalWithRawCallbackMethod_GetFragment() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -9946,21 +15771,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetFragment( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetFragment( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_CreateFragment : public BaseClass { + class ExperimentalWithRawCallbackMethod_CreateFragment : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_CreateFragment() { - ::grpc::Service::MarkMethodRawCallback(52, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_CreateFragment() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(62, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->CreateFragment(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->CreateFragment(context, request, response); })); } - ~WithRawCallbackMethod_CreateFragment() override { + ~ExperimentalWithRawCallbackMethod_CreateFragment() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -9968,21 +15809,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* CreateFragment( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* CreateFragment( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_UpdateFragment : public BaseClass { + class ExperimentalWithRawCallbackMethod_UpdateFragment : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_UpdateFragment() { - ::grpc::Service::MarkMethodRawCallback(53, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_UpdateFragment() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(63, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->UpdateFragment(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->UpdateFragment(context, request, response); })); } - ~WithRawCallbackMethod_UpdateFragment() override { + ~ExperimentalWithRawCallbackMethod_UpdateFragment() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -9990,21 +15847,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* UpdateFragment( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* UpdateFragment( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_DeleteFragment : public BaseClass { + class ExperimentalWithRawCallbackMethod_DeleteFragment : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_DeleteFragment() { - ::grpc::Service::MarkMethodRawCallback(54, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_DeleteFragment() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(64, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DeleteFragment(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DeleteFragment(context, request, response); })); } - ~WithRawCallbackMethod_DeleteFragment() override { + ~ExperimentalWithRawCallbackMethod_DeleteFragment() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -10012,21 +15885,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DeleteFragment( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DeleteFragment( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_ListMachineFragments : public BaseClass { + class ExperimentalWithRawCallbackMethod_ListMachineFragments : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_ListMachineFragments() { - ::grpc::Service::MarkMethodRawCallback(55, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_ListMachineFragments() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(65, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ListMachineFragments(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ListMachineFragments(context, request, response); })); } - ~WithRawCallbackMethod_ListMachineFragments() override { + ~ExperimentalWithRawCallbackMethod_ListMachineFragments() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -10034,21 +15923,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* ListMachineFragments( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ListMachineFragments( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetFragmentHistory : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetFragmentHistory : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetFragmentHistory() { - ::grpc::Service::MarkMethodRawCallback(56, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetFragmentHistory() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(66, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetFragmentHistory(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetFragmentHistory(context, request, response); })); } - ~WithRawCallbackMethod_GetFragmentHistory() override { + ~ExperimentalWithRawCallbackMethod_GetFragmentHistory() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -10056,21 +15961,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetFragmentHistory( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetFragmentHistory( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_AddRole : public BaseClass { + class ExperimentalWithRawCallbackMethod_AddRole : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_AddRole() { - ::grpc::Service::MarkMethodRawCallback(57, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_AddRole() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(67, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->AddRole(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->AddRole(context, request, response); })); } - ~WithRawCallbackMethod_AddRole() override { + ~ExperimentalWithRawCallbackMethod_AddRole() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -10078,21 +15999,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* AddRole( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* AddRole( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_RemoveRole : public BaseClass { + class ExperimentalWithRawCallbackMethod_RemoveRole : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_RemoveRole() { - ::grpc::Service::MarkMethodRawCallback(58, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_RemoveRole() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(68, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->RemoveRole(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->RemoveRole(context, request, response); })); } - ~WithRawCallbackMethod_RemoveRole() override { + ~ExperimentalWithRawCallbackMethod_RemoveRole() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -10100,21 +16037,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* RemoveRole( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* RemoveRole( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_ChangeRole : public BaseClass { + class ExperimentalWithRawCallbackMethod_ChangeRole : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_ChangeRole() { - ::grpc::Service::MarkMethodRawCallback(59, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_ChangeRole() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(69, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ChangeRole(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ChangeRole(context, request, response); })); } - ~WithRawCallbackMethod_ChangeRole() override { + ~ExperimentalWithRawCallbackMethod_ChangeRole() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -10122,21 +16075,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* ChangeRole( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ChangeRole( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_ListAuthorizations : public BaseClass { + class ExperimentalWithRawCallbackMethod_ListAuthorizations : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_ListAuthorizations() { - ::grpc::Service::MarkMethodRawCallback(60, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_ListAuthorizations() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(70, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ListAuthorizations(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ListAuthorizations(context, request, response); })); } - ~WithRawCallbackMethod_ListAuthorizations() override { + ~ExperimentalWithRawCallbackMethod_ListAuthorizations() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -10144,21 +16113,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* ListAuthorizations( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ListAuthorizations( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_CheckPermissions : public BaseClass { + class ExperimentalWithRawCallbackMethod_CheckPermissions : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_CheckPermissions() { - ::grpc::Service::MarkMethodRawCallback(61, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_CheckPermissions() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(71, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->CheckPermissions(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->CheckPermissions(context, request, response); })); } - ~WithRawCallbackMethod_CheckPermissions() override { + ~ExperimentalWithRawCallbackMethod_CheckPermissions() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -10166,21 +16151,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* CheckPermissions( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* CheckPermissions( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetRegistryItem : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetRegistryItem : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetRegistryItem() { - ::grpc::Service::MarkMethodRawCallback(62, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetRegistryItem() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(72, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetRegistryItem(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetRegistryItem(context, request, response); })); } - ~WithRawCallbackMethod_GetRegistryItem() override { + ~ExperimentalWithRawCallbackMethod_GetRegistryItem() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -10188,21 +16189,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetRegistryItem( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetRegistryItem( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_CreateRegistryItem : public BaseClass { + class ExperimentalWithRawCallbackMethod_CreateRegistryItem : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_CreateRegistryItem() { - ::grpc::Service::MarkMethodRawCallback(63, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_CreateRegistryItem() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(73, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->CreateRegistryItem(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->CreateRegistryItem(context, request, response); })); } - ~WithRawCallbackMethod_CreateRegistryItem() override { + ~ExperimentalWithRawCallbackMethod_CreateRegistryItem() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -10210,21 +16227,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* CreateRegistryItem( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* CreateRegistryItem( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_UpdateRegistryItem : public BaseClass { + class ExperimentalWithRawCallbackMethod_UpdateRegistryItem : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_UpdateRegistryItem() { - ::grpc::Service::MarkMethodRawCallback(64, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_UpdateRegistryItem() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(74, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->UpdateRegistryItem(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->UpdateRegistryItem(context, request, response); })); } - ~WithRawCallbackMethod_UpdateRegistryItem() override { + ~ExperimentalWithRawCallbackMethod_UpdateRegistryItem() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -10232,21 +16265,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* UpdateRegistryItem( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* UpdateRegistryItem( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_ListRegistryItems : public BaseClass { + class ExperimentalWithRawCallbackMethod_ListRegistryItems : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_ListRegistryItems() { - ::grpc::Service::MarkMethodRawCallback(65, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_ListRegistryItems() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(75, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ListRegistryItems(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ListRegistryItems(context, request, response); })); } - ~WithRawCallbackMethod_ListRegistryItems() override { + ~ExperimentalWithRawCallbackMethod_ListRegistryItems() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -10254,21 +16303,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* ListRegistryItems( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ListRegistryItems( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_DeleteRegistryItem : public BaseClass { + class ExperimentalWithRawCallbackMethod_DeleteRegistryItem : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_DeleteRegistryItem() { - ::grpc::Service::MarkMethodRawCallback(66, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_DeleteRegistryItem() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(76, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DeleteRegistryItem(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DeleteRegistryItem(context, request, response); })); } - ~WithRawCallbackMethod_DeleteRegistryItem() override { + ~ExperimentalWithRawCallbackMethod_DeleteRegistryItem() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -10276,21 +16341,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DeleteRegistryItem( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DeleteRegistryItem( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_TransferRegistryItem : public BaseClass { + class ExperimentalWithRawCallbackMethod_TransferRegistryItem : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_TransferRegistryItem() { - ::grpc::Service::MarkMethodRawCallback(67, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_TransferRegistryItem() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(77, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->TransferRegistryItem(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->TransferRegistryItem(context, request, response); })); } - ~WithRawCallbackMethod_TransferRegistryItem() override { + ~ExperimentalWithRawCallbackMethod_TransferRegistryItem() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -10298,21 +16379,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* TransferRegistryItem( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* TransferRegistryItem( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_CreateModule : public BaseClass { + class ExperimentalWithRawCallbackMethod_CreateModule : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_CreateModule() { - ::grpc::Service::MarkMethodRawCallback(68, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_CreateModule() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(78, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->CreateModule(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->CreateModule(context, request, response); })); } - ~WithRawCallbackMethod_CreateModule() override { + ~ExperimentalWithRawCallbackMethod_CreateModule() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -10320,21 +16417,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* CreateModule( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* CreateModule( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_UpdateModule : public BaseClass { + class ExperimentalWithRawCallbackMethod_UpdateModule : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_UpdateModule() { - ::grpc::Service::MarkMethodRawCallback(69, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_UpdateModule() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(79, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->UpdateModule(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->UpdateModule(context, request, response); })); } - ~WithRawCallbackMethod_UpdateModule() override { + ~ExperimentalWithRawCallbackMethod_UpdateModule() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -10342,21 +16455,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* UpdateModule( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* UpdateModule( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_UploadModuleFile : public BaseClass { + class ExperimentalWithRawCallbackMethod_UploadModuleFile : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_UploadModuleFile() { - ::grpc::Service::MarkMethodRawCallback(70, - new ::grpc::internal::CallbackClientStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_UploadModuleFile() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(80, + new ::grpc_impl::internal::CallbackClientStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, ::grpc::ByteBuffer* response) { return this->UploadModuleFile(context, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, ::grpc::ByteBuffer* response) { return this->UploadModuleFile(context, response); })); } - ~WithRawCallbackMethod_UploadModuleFile() override { + ~ExperimentalWithRawCallbackMethod_UploadModuleFile() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -10364,21 +16493,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerReadReactor< ::grpc::ByteBuffer>* UploadModuleFile( - ::grpc::CallbackServerContext* /*context*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerReadReactor< ::grpc::ByteBuffer>* UploadModuleFile( + ::grpc::experimental::CallbackServerContext* /*context*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetModule : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetModule : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetModule() { - ::grpc::Service::MarkMethodRawCallback(71, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetModule() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(81, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetModule(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetModule(context, request, response); })); } - ~WithRawCallbackMethod_GetModule() override { + ~ExperimentalWithRawCallbackMethod_GetModule() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -10386,21 +16531,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetModule( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetModule( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_ListModules : public BaseClass { + class ExperimentalWithRawCallbackMethod_ListModules : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_ListModules() { - ::grpc::Service::MarkMethodRawCallback(72, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_ListModules() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(82, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ListModules(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ListModules(context, request, response); })); } - ~WithRawCallbackMethod_ListModules() override { + ~ExperimentalWithRawCallbackMethod_ListModules() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -10408,21 +16569,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* ListModules( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ListModules( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_CreateKey : public BaseClass { + class ExperimentalWithRawCallbackMethod_CreateKey : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_CreateKey() { - ::grpc::Service::MarkMethodRawCallback(73, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_CreateKey() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(83, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->CreateKey(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->CreateKey(context, request, response); })); } - ~WithRawCallbackMethod_CreateKey() override { + ~ExperimentalWithRawCallbackMethod_CreateKey() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -10430,21 +16607,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* CreateKey( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* CreateKey( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_DeleteKey : public BaseClass { + class ExperimentalWithRawCallbackMethod_DeleteKey : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_DeleteKey() { - ::grpc::Service::MarkMethodRawCallback(74, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_DeleteKey() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(84, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DeleteKey(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DeleteKey(context, request, response); })); } - ~WithRawCallbackMethod_DeleteKey() override { + ~ExperimentalWithRawCallbackMethod_DeleteKey() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -10452,21 +16645,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DeleteKey( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DeleteKey( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_ListKeys : public BaseClass { + class ExperimentalWithRawCallbackMethod_ListKeys : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_ListKeys() { - ::grpc::Service::MarkMethodRawCallback(75, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_ListKeys() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(85, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ListKeys(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ListKeys(context, request, response); })); } - ~WithRawCallbackMethod_ListKeys() override { + ~ExperimentalWithRawCallbackMethod_ListKeys() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -10474,21 +16683,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* ListKeys( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ListKeys( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_RenameKey : public BaseClass { + class ExperimentalWithRawCallbackMethod_RenameKey : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_RenameKey() { - ::grpc::Service::MarkMethodRawCallback(76, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_RenameKey() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(86, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->RenameKey(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->RenameKey(context, request, response); })); } - ~WithRawCallbackMethod_RenameKey() override { + ~ExperimentalWithRawCallbackMethod_RenameKey() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -10496,21 +16721,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* RenameKey( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* RenameKey( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_RotateKey : public BaseClass { + class ExperimentalWithRawCallbackMethod_RotateKey : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_RotateKey() { - ::grpc::Service::MarkMethodRawCallback(77, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_RotateKey() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(87, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->RotateKey(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->RotateKey(context, request, response); })); } - ~WithRawCallbackMethod_RotateKey() override { + ~ExperimentalWithRawCallbackMethod_RotateKey() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -10518,21 +16759,37 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* RotateKey( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* RotateKey( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_CreateKeyFromExistingKeyAuthorizations : public BaseClass { + class ExperimentalWithRawCallbackMethod_CreateKeyFromExistingKeyAuthorizations : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_CreateKeyFromExistingKeyAuthorizations() { - ::grpc::Service::MarkMethodRawCallback(78, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_CreateKeyFromExistingKeyAuthorizations() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(88, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->CreateKeyFromExistingKeyAuthorizations(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->CreateKeyFromExistingKeyAuthorizations(context, request, response); })); } - ~WithRawCallbackMethod_CreateKeyFromExistingKeyAuthorizations() override { + ~ExperimentalWithRawCallbackMethod_CreateKeyFromExistingKeyAuthorizations() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -10540,8 +16797,14 @@ class AppService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* CreateKeyFromExistingKeyAuthorizations( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* CreateKeyFromExistingKeyAuthorizations( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template class WithStreamedUnaryMethod_GetUserIDByEmail : public BaseClass { @@ -10552,8 +16815,8 @@ class AppService final { ::grpc::Service::MarkMethodStreamed(0, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::GetUserIDByEmailRequest, ::viam::app::v1::GetUserIDByEmailResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::GetUserIDByEmailRequest, ::viam::app::v1::GetUserIDByEmailResponse>* streamer) { return this->StreamedGetUserIDByEmail(context, streamer); @@ -10579,8 +16842,8 @@ class AppService final { ::grpc::Service::MarkMethodStreamed(1, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::CreateOrganizationRequest, ::viam::app::v1::CreateOrganizationResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::CreateOrganizationRequest, ::viam::app::v1::CreateOrganizationResponse>* streamer) { return this->StreamedCreateOrganization(context, streamer); @@ -10606,8 +16869,8 @@ class AppService final { ::grpc::Service::MarkMethodStreamed(2, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::ListOrganizationsRequest, ::viam::app::v1::ListOrganizationsResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::ListOrganizationsRequest, ::viam::app::v1::ListOrganizationsResponse>* streamer) { return this->StreamedListOrganizations(context, streamer); @@ -10633,8 +16896,8 @@ class AppService final { ::grpc::Service::MarkMethodStreamed(3, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::GetOrganizationsWithAccessToLocationRequest, ::viam::app::v1::GetOrganizationsWithAccessToLocationResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::GetOrganizationsWithAccessToLocationRequest, ::viam::app::v1::GetOrganizationsWithAccessToLocationResponse>* streamer) { return this->StreamedGetOrganizationsWithAccessToLocation(context, streamer); @@ -10660,8 +16923,8 @@ class AppService final { ::grpc::Service::MarkMethodStreamed(4, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::ListOrganizationsByUserRequest, ::viam::app::v1::ListOrganizationsByUserResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::ListOrganizationsByUserRequest, ::viam::app::v1::ListOrganizationsByUserResponse>* streamer) { return this->StreamedListOrganizationsByUser(context, streamer); @@ -10679,16 +16942,43 @@ class AppService final { virtual ::grpc::Status StreamedListOrganizationsByUser(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::ListOrganizationsByUserRequest,::viam::app::v1::ListOrganizationsByUserResponse>* server_unary_streamer) = 0; }; template + class WithStreamedUnaryMethod_SearchOrganizations : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_SearchOrganizations() { + ::grpc::Service::MarkMethodStreamed(5, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::app::v1::SearchOrganizationsRequest, ::viam::app::v1::SearchOrganizationsResponse>( + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< + ::viam::app::v1::SearchOrganizationsRequest, ::viam::app::v1::SearchOrganizationsResponse>* streamer) { + return this->StreamedSearchOrganizations(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_SearchOrganizations() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status SearchOrganizations(::grpc::ServerContext* /*context*/, const ::viam::app::v1::SearchOrganizationsRequest* /*request*/, ::viam::app::v1::SearchOrganizationsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedSearchOrganizations(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::SearchOrganizationsRequest,::viam::app::v1::SearchOrganizationsResponse>* server_unary_streamer) = 0; + }; + template class WithStreamedUnaryMethod_GetOrganization : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_GetOrganization() { - ::grpc::Service::MarkMethodStreamed(5, + ::grpc::Service::MarkMethodStreamed(6, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::GetOrganizationRequest, ::viam::app::v1::GetOrganizationResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::GetOrganizationRequest, ::viam::app::v1::GetOrganizationResponse>* streamer) { return this->StreamedGetOrganization(context, streamer); @@ -10711,11 +17001,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_GetOrganizationNamespaceAvailability() { - ::grpc::Service::MarkMethodStreamed(6, + ::grpc::Service::MarkMethodStreamed(7, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::GetOrganizationNamespaceAvailabilityRequest, ::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::GetOrganizationNamespaceAvailabilityRequest, ::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse>* streamer) { return this->StreamedGetOrganizationNamespaceAvailability(context, streamer); @@ -10738,11 +17028,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_UpdateOrganization() { - ::grpc::Service::MarkMethodStreamed(7, + ::grpc::Service::MarkMethodStreamed(8, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::UpdateOrganizationRequest, ::viam::app::v1::UpdateOrganizationResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::UpdateOrganizationRequest, ::viam::app::v1::UpdateOrganizationResponse>* streamer) { return this->StreamedUpdateOrganization(context, streamer); @@ -10765,350 +17055,593 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_DeleteOrganization() { - ::grpc::Service::MarkMethodStreamed(8, + ::grpc::Service::MarkMethodStreamed(9, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::DeleteOrganizationRequest, ::viam::app::v1::DeleteOrganizationResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::DeleteOrganizationRequest, ::viam::app::v1::DeleteOrganizationResponse>* streamer) { return this->StreamedDeleteOrganization(context, streamer); })); } - ~WithStreamedUnaryMethod_DeleteOrganization() override { + ~WithStreamedUnaryMethod_DeleteOrganization() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status DeleteOrganization(::grpc::ServerContext* /*context*/, const ::viam::app::v1::DeleteOrganizationRequest* /*request*/, ::viam::app::v1::DeleteOrganizationResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedDeleteOrganization(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::DeleteOrganizationRequest,::viam::app::v1::DeleteOrganizationResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ListOrganizationMembers : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_ListOrganizationMembers() { + ::grpc::Service::MarkMethodStreamed(10, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::app::v1::ListOrganizationMembersRequest, ::viam::app::v1::ListOrganizationMembersResponse>( + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< + ::viam::app::v1::ListOrganizationMembersRequest, ::viam::app::v1::ListOrganizationMembersResponse>* streamer) { + return this->StreamedListOrganizationMembers(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_ListOrganizationMembers() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ListOrganizationMembers(::grpc::ServerContext* /*context*/, const ::viam::app::v1::ListOrganizationMembersRequest* /*request*/, ::viam::app::v1::ListOrganizationMembersResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedListOrganizationMembers(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::ListOrganizationMembersRequest,::viam::app::v1::ListOrganizationMembersResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_CreateOrganizationInvite : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_CreateOrganizationInvite() { + ::grpc::Service::MarkMethodStreamed(11, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::app::v1::CreateOrganizationInviteRequest, ::viam::app::v1::CreateOrganizationInviteResponse>( + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< + ::viam::app::v1::CreateOrganizationInviteRequest, ::viam::app::v1::CreateOrganizationInviteResponse>* streamer) { + return this->StreamedCreateOrganizationInvite(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_CreateOrganizationInvite() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status CreateOrganizationInvite(::grpc::ServerContext* /*context*/, const ::viam::app::v1::CreateOrganizationInviteRequest* /*request*/, ::viam::app::v1::CreateOrganizationInviteResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedCreateOrganizationInvite(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::CreateOrganizationInviteRequest,::viam::app::v1::CreateOrganizationInviteResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_UpdateOrganizationInviteAuthorizations : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_UpdateOrganizationInviteAuthorizations() { + ::grpc::Service::MarkMethodStreamed(12, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest, ::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse>( + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< + ::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest, ::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse>* streamer) { + return this->StreamedUpdateOrganizationInviteAuthorizations(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_UpdateOrganizationInviteAuthorizations() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status UpdateOrganizationInviteAuthorizations(::grpc::ServerContext* /*context*/, const ::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest* /*request*/, ::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedUpdateOrganizationInviteAuthorizations(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest,::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_DeleteOrganizationMember : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_DeleteOrganizationMember() { + ::grpc::Service::MarkMethodStreamed(13, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::app::v1::DeleteOrganizationMemberRequest, ::viam::app::v1::DeleteOrganizationMemberResponse>( + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< + ::viam::app::v1::DeleteOrganizationMemberRequest, ::viam::app::v1::DeleteOrganizationMemberResponse>* streamer) { + return this->StreamedDeleteOrganizationMember(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_DeleteOrganizationMember() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status DeleteOrganizationMember(::grpc::ServerContext* /*context*/, const ::viam::app::v1::DeleteOrganizationMemberRequest* /*request*/, ::viam::app::v1::DeleteOrganizationMemberResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedDeleteOrganizationMember(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::DeleteOrganizationMemberRequest,::viam::app::v1::DeleteOrganizationMemberResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_DeleteOrganizationInvite : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_DeleteOrganizationInvite() { + ::grpc::Service::MarkMethodStreamed(14, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::app::v1::DeleteOrganizationInviteRequest, ::viam::app::v1::DeleteOrganizationInviteResponse>( + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< + ::viam::app::v1::DeleteOrganizationInviteRequest, ::viam::app::v1::DeleteOrganizationInviteResponse>* streamer) { + return this->StreamedDeleteOrganizationInvite(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_DeleteOrganizationInvite() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status DeleteOrganizationInvite(::grpc::ServerContext* /*context*/, const ::viam::app::v1::DeleteOrganizationInviteRequest* /*request*/, ::viam::app::v1::DeleteOrganizationInviteResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedDeleteOrganizationInvite(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::DeleteOrganizationInviteRequest,::viam::app::v1::DeleteOrganizationInviteResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ResendOrganizationInvite : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_ResendOrganizationInvite() { + ::grpc::Service::MarkMethodStreamed(15, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::app::v1::ResendOrganizationInviteRequest, ::viam::app::v1::ResendOrganizationInviteResponse>( + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< + ::viam::app::v1::ResendOrganizationInviteRequest, ::viam::app::v1::ResendOrganizationInviteResponse>* streamer) { + return this->StreamedResendOrganizationInvite(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_ResendOrganizationInvite() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ResendOrganizationInvite(::grpc::ServerContext* /*context*/, const ::viam::app::v1::ResendOrganizationInviteRequest* /*request*/, ::viam::app::v1::ResendOrganizationInviteResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedResendOrganizationInvite(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::ResendOrganizationInviteRequest,::viam::app::v1::ResendOrganizationInviteResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_EnableBillingService : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_EnableBillingService() { + ::grpc::Service::MarkMethodStreamed(16, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::app::v1::EnableBillingServiceRequest, ::viam::app::v1::EnableBillingServiceResponse>( + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< + ::viam::app::v1::EnableBillingServiceRequest, ::viam::app::v1::EnableBillingServiceResponse>* streamer) { + return this->StreamedEnableBillingService(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_EnableBillingService() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status EnableBillingService(::grpc::ServerContext* /*context*/, const ::viam::app::v1::EnableBillingServiceRequest* /*request*/, ::viam::app::v1::EnableBillingServiceResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedEnableBillingService(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::EnableBillingServiceRequest,::viam::app::v1::EnableBillingServiceResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_DisableBillingService : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_DisableBillingService() { + ::grpc::Service::MarkMethodStreamed(17, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::app::v1::DisableBillingServiceRequest, ::viam::app::v1::DisableBillingServiceResponse>( + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< + ::viam::app::v1::DisableBillingServiceRequest, ::viam::app::v1::DisableBillingServiceResponse>* streamer) { + return this->StreamedDisableBillingService(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_DisableBillingService() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status DisableBillingService(::grpc::ServerContext* /*context*/, const ::viam::app::v1::DisableBillingServiceRequest* /*request*/, ::viam::app::v1::DisableBillingServiceResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedDisableBillingService(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::DisableBillingServiceRequest,::viam::app::v1::DisableBillingServiceResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_UpdateBillingService : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_UpdateBillingService() { + ::grpc::Service::MarkMethodStreamed(18, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::app::v1::UpdateBillingServiceRequest, ::viam::app::v1::UpdateBillingServiceResponse>( + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< + ::viam::app::v1::UpdateBillingServiceRequest, ::viam::app::v1::UpdateBillingServiceResponse>* streamer) { + return this->StreamedUpdateBillingService(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_UpdateBillingService() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status DeleteOrganization(::grpc::ServerContext* /*context*/, const ::viam::app::v1::DeleteOrganizationRequest* /*request*/, ::viam::app::v1::DeleteOrganizationResponse* /*response*/) override { + ::grpc::Status UpdateBillingService(::grpc::ServerContext* /*context*/, const ::viam::app::v1::UpdateBillingServiceRequest* /*request*/, ::viam::app::v1::UpdateBillingServiceResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedDeleteOrganization(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::DeleteOrganizationRequest,::viam::app::v1::DeleteOrganizationResponse>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedUpdateBillingService(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::UpdateBillingServiceRequest,::viam::app::v1::UpdateBillingServiceResponse>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_ListOrganizationMembers : public BaseClass { + class WithStreamedUnaryMethod_GetBillingServiceConfig : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithStreamedUnaryMethod_ListOrganizationMembers() { - ::grpc::Service::MarkMethodStreamed(9, + WithStreamedUnaryMethod_GetBillingServiceConfig() { + ::grpc::Service::MarkMethodStreamed(19, new ::grpc::internal::StreamedUnaryHandler< - ::viam::app::v1::ListOrganizationMembersRequest, ::viam::app::v1::ListOrganizationMembersResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::viam::app::v1::ListOrganizationMembersRequest, ::viam::app::v1::ListOrganizationMembersResponse>* streamer) { - return this->StreamedListOrganizationMembers(context, + ::viam::app::v1::GetBillingServiceConfigRequest, ::viam::app::v1::GetBillingServiceConfigResponse>( + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< + ::viam::app::v1::GetBillingServiceConfigRequest, ::viam::app::v1::GetBillingServiceConfigResponse>* streamer) { + return this->StreamedGetBillingServiceConfig(context, streamer); })); } - ~WithStreamedUnaryMethod_ListOrganizationMembers() override { + ~WithStreamedUnaryMethod_GetBillingServiceConfig() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status ListOrganizationMembers(::grpc::ServerContext* /*context*/, const ::viam::app::v1::ListOrganizationMembersRequest* /*request*/, ::viam::app::v1::ListOrganizationMembersResponse* /*response*/) override { + ::grpc::Status GetBillingServiceConfig(::grpc::ServerContext* /*context*/, const ::viam::app::v1::GetBillingServiceConfigRequest* /*request*/, ::viam::app::v1::GetBillingServiceConfigResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedListOrganizationMembers(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::ListOrganizationMembersRequest,::viam::app::v1::ListOrganizationMembersResponse>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedGetBillingServiceConfig(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::GetBillingServiceConfigRequest,::viam::app::v1::GetBillingServiceConfigResponse>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_CreateOrganizationInvite : public BaseClass { + class WithStreamedUnaryMethod_OrganizationSetSupportEmail : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithStreamedUnaryMethod_CreateOrganizationInvite() { - ::grpc::Service::MarkMethodStreamed(10, + WithStreamedUnaryMethod_OrganizationSetSupportEmail() { + ::grpc::Service::MarkMethodStreamed(20, new ::grpc::internal::StreamedUnaryHandler< - ::viam::app::v1::CreateOrganizationInviteRequest, ::viam::app::v1::CreateOrganizationInviteResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::viam::app::v1::CreateOrganizationInviteRequest, ::viam::app::v1::CreateOrganizationInviteResponse>* streamer) { - return this->StreamedCreateOrganizationInvite(context, + ::viam::app::v1::OrganizationSetSupportEmailRequest, ::viam::app::v1::OrganizationSetSupportEmailResponse>( + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< + ::viam::app::v1::OrganizationSetSupportEmailRequest, ::viam::app::v1::OrganizationSetSupportEmailResponse>* streamer) { + return this->StreamedOrganizationSetSupportEmail(context, streamer); })); } - ~WithStreamedUnaryMethod_CreateOrganizationInvite() override { + ~WithStreamedUnaryMethod_OrganizationSetSupportEmail() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status CreateOrganizationInvite(::grpc::ServerContext* /*context*/, const ::viam::app::v1::CreateOrganizationInviteRequest* /*request*/, ::viam::app::v1::CreateOrganizationInviteResponse* /*response*/) override { + ::grpc::Status OrganizationSetSupportEmail(::grpc::ServerContext* /*context*/, const ::viam::app::v1::OrganizationSetSupportEmailRequest* /*request*/, ::viam::app::v1::OrganizationSetSupportEmailResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedCreateOrganizationInvite(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::CreateOrganizationInviteRequest,::viam::app::v1::CreateOrganizationInviteResponse>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedOrganizationSetSupportEmail(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::OrganizationSetSupportEmailRequest,::viam::app::v1::OrganizationSetSupportEmailResponse>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_UpdateOrganizationInviteAuthorizations : public BaseClass { + class WithStreamedUnaryMethod_OrganizationGetSupportEmail : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithStreamedUnaryMethod_UpdateOrganizationInviteAuthorizations() { - ::grpc::Service::MarkMethodStreamed(11, + WithStreamedUnaryMethod_OrganizationGetSupportEmail() { + ::grpc::Service::MarkMethodStreamed(21, new ::grpc::internal::StreamedUnaryHandler< - ::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest, ::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest, ::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse>* streamer) { - return this->StreamedUpdateOrganizationInviteAuthorizations(context, + ::viam::app::v1::OrganizationGetSupportEmailRequest, ::viam::app::v1::OrganizationGetSupportEmailResponse>( + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< + ::viam::app::v1::OrganizationGetSupportEmailRequest, ::viam::app::v1::OrganizationGetSupportEmailResponse>* streamer) { + return this->StreamedOrganizationGetSupportEmail(context, streamer); })); } - ~WithStreamedUnaryMethod_UpdateOrganizationInviteAuthorizations() override { + ~WithStreamedUnaryMethod_OrganizationGetSupportEmail() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status UpdateOrganizationInviteAuthorizations(::grpc::ServerContext* /*context*/, const ::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest* /*request*/, ::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse* /*response*/) override { + ::grpc::Status OrganizationGetSupportEmail(::grpc::ServerContext* /*context*/, const ::viam::app::v1::OrganizationGetSupportEmailRequest* /*request*/, ::viam::app::v1::OrganizationGetSupportEmailResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedUpdateOrganizationInviteAuthorizations(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest,::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedOrganizationGetSupportEmail(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::OrganizationGetSupportEmailRequest,::viam::app::v1::OrganizationGetSupportEmailResponse>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_DeleteOrganizationMember : public BaseClass { + class WithStreamedUnaryMethod_OrganizationSetLogo : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithStreamedUnaryMethod_DeleteOrganizationMember() { - ::grpc::Service::MarkMethodStreamed(12, + WithStreamedUnaryMethod_OrganizationSetLogo() { + ::grpc::Service::MarkMethodStreamed(22, new ::grpc::internal::StreamedUnaryHandler< - ::viam::app::v1::DeleteOrganizationMemberRequest, ::viam::app::v1::DeleteOrganizationMemberResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::viam::app::v1::DeleteOrganizationMemberRequest, ::viam::app::v1::DeleteOrganizationMemberResponse>* streamer) { - return this->StreamedDeleteOrganizationMember(context, + ::viam::app::v1::OrganizationSetLogoRequest, ::viam::app::v1::OrganizationSetLogoResponse>( + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< + ::viam::app::v1::OrganizationSetLogoRequest, ::viam::app::v1::OrganizationSetLogoResponse>* streamer) { + return this->StreamedOrganizationSetLogo(context, streamer); })); } - ~WithStreamedUnaryMethod_DeleteOrganizationMember() override { + ~WithStreamedUnaryMethod_OrganizationSetLogo() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status DeleteOrganizationMember(::grpc::ServerContext* /*context*/, const ::viam::app::v1::DeleteOrganizationMemberRequest* /*request*/, ::viam::app::v1::DeleteOrganizationMemberResponse* /*response*/) override { + ::grpc::Status OrganizationSetLogo(::grpc::ServerContext* /*context*/, const ::viam::app::v1::OrganizationSetLogoRequest* /*request*/, ::viam::app::v1::OrganizationSetLogoResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedDeleteOrganizationMember(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::DeleteOrganizationMemberRequest,::viam::app::v1::DeleteOrganizationMemberResponse>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedOrganizationSetLogo(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::OrganizationSetLogoRequest,::viam::app::v1::OrganizationSetLogoResponse>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_DeleteOrganizationInvite : public BaseClass { + class WithStreamedUnaryMethod_OrganizationGetLogo : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithStreamedUnaryMethod_DeleteOrganizationInvite() { - ::grpc::Service::MarkMethodStreamed(13, + WithStreamedUnaryMethod_OrganizationGetLogo() { + ::grpc::Service::MarkMethodStreamed(23, new ::grpc::internal::StreamedUnaryHandler< - ::viam::app::v1::DeleteOrganizationInviteRequest, ::viam::app::v1::DeleteOrganizationInviteResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::viam::app::v1::DeleteOrganizationInviteRequest, ::viam::app::v1::DeleteOrganizationInviteResponse>* streamer) { - return this->StreamedDeleteOrganizationInvite(context, + ::viam::app::v1::OrganizationGetLogoRequest, ::viam::app::v1::OrganizationGetLogoResponse>( + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< + ::viam::app::v1::OrganizationGetLogoRequest, ::viam::app::v1::OrganizationGetLogoResponse>* streamer) { + return this->StreamedOrganizationGetLogo(context, streamer); })); } - ~WithStreamedUnaryMethod_DeleteOrganizationInvite() override { + ~WithStreamedUnaryMethod_OrganizationGetLogo() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status DeleteOrganizationInvite(::grpc::ServerContext* /*context*/, const ::viam::app::v1::DeleteOrganizationInviteRequest* /*request*/, ::viam::app::v1::DeleteOrganizationInviteResponse* /*response*/) override { + ::grpc::Status OrganizationGetLogo(::grpc::ServerContext* /*context*/, const ::viam::app::v1::OrganizationGetLogoRequest* /*request*/, ::viam::app::v1::OrganizationGetLogoResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedDeleteOrganizationInvite(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::DeleteOrganizationInviteRequest,::viam::app::v1::DeleteOrganizationInviteResponse>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedOrganizationGetLogo(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::OrganizationGetLogoRequest,::viam::app::v1::OrganizationGetLogoResponse>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_ResendOrganizationInvite : public BaseClass { + class WithStreamedUnaryMethod_EnableAuthService : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithStreamedUnaryMethod_ResendOrganizationInvite() { - ::grpc::Service::MarkMethodStreamed(14, + WithStreamedUnaryMethod_EnableAuthService() { + ::grpc::Service::MarkMethodStreamed(24, new ::grpc::internal::StreamedUnaryHandler< - ::viam::app::v1::ResendOrganizationInviteRequest, ::viam::app::v1::ResendOrganizationInviteResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::viam::app::v1::ResendOrganizationInviteRequest, ::viam::app::v1::ResendOrganizationInviteResponse>* streamer) { - return this->StreamedResendOrganizationInvite(context, + ::viam::app::v1::EnableAuthServiceRequest, ::viam::app::v1::EnableAuthServiceResponse>( + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< + ::viam::app::v1::EnableAuthServiceRequest, ::viam::app::v1::EnableAuthServiceResponse>* streamer) { + return this->StreamedEnableAuthService(context, streamer); })); } - ~WithStreamedUnaryMethod_ResendOrganizationInvite() override { + ~WithStreamedUnaryMethod_EnableAuthService() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status ResendOrganizationInvite(::grpc::ServerContext* /*context*/, const ::viam::app::v1::ResendOrganizationInviteRequest* /*request*/, ::viam::app::v1::ResendOrganizationInviteResponse* /*response*/) override { + ::grpc::Status EnableAuthService(::grpc::ServerContext* /*context*/, const ::viam::app::v1::EnableAuthServiceRequest* /*request*/, ::viam::app::v1::EnableAuthServiceResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedResendOrganizationInvite(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::ResendOrganizationInviteRequest,::viam::app::v1::ResendOrganizationInviteResponse>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedEnableAuthService(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::EnableAuthServiceRequest,::viam::app::v1::EnableAuthServiceResponse>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_EnableBillingService : public BaseClass { + class WithStreamedUnaryMethod_DisableAuthService : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithStreamedUnaryMethod_EnableBillingService() { - ::grpc::Service::MarkMethodStreamed(15, + WithStreamedUnaryMethod_DisableAuthService() { + ::grpc::Service::MarkMethodStreamed(25, new ::grpc::internal::StreamedUnaryHandler< - ::viam::app::v1::EnableBillingServiceRequest, ::viam::app::v1::EnableBillingServiceResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::viam::app::v1::EnableBillingServiceRequest, ::viam::app::v1::EnableBillingServiceResponse>* streamer) { - return this->StreamedEnableBillingService(context, + ::viam::app::v1::DisableAuthServiceRequest, ::viam::app::v1::DisableAuthServiceResponse>( + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< + ::viam::app::v1::DisableAuthServiceRequest, ::viam::app::v1::DisableAuthServiceResponse>* streamer) { + return this->StreamedDisableAuthService(context, streamer); })); } - ~WithStreamedUnaryMethod_EnableBillingService() override { + ~WithStreamedUnaryMethod_DisableAuthService() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status EnableBillingService(::grpc::ServerContext* /*context*/, const ::viam::app::v1::EnableBillingServiceRequest* /*request*/, ::viam::app::v1::EnableBillingServiceResponse* /*response*/) override { + ::grpc::Status DisableAuthService(::grpc::ServerContext* /*context*/, const ::viam::app::v1::DisableAuthServiceRequest* /*request*/, ::viam::app::v1::DisableAuthServiceResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedEnableBillingService(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::EnableBillingServiceRequest,::viam::app::v1::EnableBillingServiceResponse>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedDisableAuthService(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::DisableAuthServiceRequest,::viam::app::v1::DisableAuthServiceResponse>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_DisableBillingService : public BaseClass { + class WithStreamedUnaryMethod_CreateOAuthApp : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithStreamedUnaryMethod_DisableBillingService() { - ::grpc::Service::MarkMethodStreamed(16, + WithStreamedUnaryMethod_CreateOAuthApp() { + ::grpc::Service::MarkMethodStreamed(26, new ::grpc::internal::StreamedUnaryHandler< - ::viam::app::v1::DisableBillingServiceRequest, ::viam::app::v1::DisableBillingServiceResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::viam::app::v1::DisableBillingServiceRequest, ::viam::app::v1::DisableBillingServiceResponse>* streamer) { - return this->StreamedDisableBillingService(context, + ::viam::app::v1::CreateOAuthAppRequest, ::viam::app::v1::CreateOAuthAppResponse>( + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< + ::viam::app::v1::CreateOAuthAppRequest, ::viam::app::v1::CreateOAuthAppResponse>* streamer) { + return this->StreamedCreateOAuthApp(context, streamer); })); } - ~WithStreamedUnaryMethod_DisableBillingService() override { + ~WithStreamedUnaryMethod_CreateOAuthApp() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status DisableBillingService(::grpc::ServerContext* /*context*/, const ::viam::app::v1::DisableBillingServiceRequest* /*request*/, ::viam::app::v1::DisableBillingServiceResponse* /*response*/) override { + ::grpc::Status CreateOAuthApp(::grpc::ServerContext* /*context*/, const ::viam::app::v1::CreateOAuthAppRequest* /*request*/, ::viam::app::v1::CreateOAuthAppResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedDisableBillingService(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::DisableBillingServiceRequest,::viam::app::v1::DisableBillingServiceResponse>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedCreateOAuthApp(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::CreateOAuthAppRequest,::viam::app::v1::CreateOAuthAppResponse>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_UpdateBillingService : public BaseClass { + class WithStreamedUnaryMethod_ReadOAuthApp : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithStreamedUnaryMethod_UpdateBillingService() { - ::grpc::Service::MarkMethodStreamed(17, + WithStreamedUnaryMethod_ReadOAuthApp() { + ::grpc::Service::MarkMethodStreamed(27, new ::grpc::internal::StreamedUnaryHandler< - ::viam::app::v1::UpdateBillingServiceRequest, ::viam::app::v1::UpdateBillingServiceResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::viam::app::v1::UpdateBillingServiceRequest, ::viam::app::v1::UpdateBillingServiceResponse>* streamer) { - return this->StreamedUpdateBillingService(context, + ::viam::app::v1::ReadOAuthAppRequest, ::viam::app::v1::ReadOAuthAppResponse>( + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< + ::viam::app::v1::ReadOAuthAppRequest, ::viam::app::v1::ReadOAuthAppResponse>* streamer) { + return this->StreamedReadOAuthApp(context, streamer); })); } - ~WithStreamedUnaryMethod_UpdateBillingService() override { + ~WithStreamedUnaryMethod_ReadOAuthApp() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status UpdateBillingService(::grpc::ServerContext* /*context*/, const ::viam::app::v1::UpdateBillingServiceRequest* /*request*/, ::viam::app::v1::UpdateBillingServiceResponse* /*response*/) override { + ::grpc::Status ReadOAuthApp(::grpc::ServerContext* /*context*/, const ::viam::app::v1::ReadOAuthAppRequest* /*request*/, ::viam::app::v1::ReadOAuthAppResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedUpdateBillingService(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::UpdateBillingServiceRequest,::viam::app::v1::UpdateBillingServiceResponse>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedReadOAuthApp(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::ReadOAuthAppRequest,::viam::app::v1::ReadOAuthAppResponse>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_GetBillingServiceConfig : public BaseClass { + class WithStreamedUnaryMethod_UpdateOAuthApp : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithStreamedUnaryMethod_GetBillingServiceConfig() { - ::grpc::Service::MarkMethodStreamed(18, + WithStreamedUnaryMethod_UpdateOAuthApp() { + ::grpc::Service::MarkMethodStreamed(28, new ::grpc::internal::StreamedUnaryHandler< - ::viam::app::v1::GetBillingServiceConfigRequest, ::viam::app::v1::GetBillingServiceConfigResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::viam::app::v1::GetBillingServiceConfigRequest, ::viam::app::v1::GetBillingServiceConfigResponse>* streamer) { - return this->StreamedGetBillingServiceConfig(context, + ::viam::app::v1::UpdateOAuthAppRequest, ::viam::app::v1::UpdateOAuthAppResponse>( + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< + ::viam::app::v1::UpdateOAuthAppRequest, ::viam::app::v1::UpdateOAuthAppResponse>* streamer) { + return this->StreamedUpdateOAuthApp(context, streamer); })); } - ~WithStreamedUnaryMethod_GetBillingServiceConfig() override { + ~WithStreamedUnaryMethod_UpdateOAuthApp() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status GetBillingServiceConfig(::grpc::ServerContext* /*context*/, const ::viam::app::v1::GetBillingServiceConfigRequest* /*request*/, ::viam::app::v1::GetBillingServiceConfigResponse* /*response*/) override { + ::grpc::Status UpdateOAuthApp(::grpc::ServerContext* /*context*/, const ::viam::app::v1::UpdateOAuthAppRequest* /*request*/, ::viam::app::v1::UpdateOAuthAppResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedGetBillingServiceConfig(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::GetBillingServiceConfigRequest,::viam::app::v1::GetBillingServiceConfigResponse>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedUpdateOAuthApp(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::UpdateOAuthAppRequest,::viam::app::v1::UpdateOAuthAppResponse>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_OrganizationSetSupportEmail : public BaseClass { + class WithStreamedUnaryMethod_DeleteOAuthApp : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithStreamedUnaryMethod_OrganizationSetSupportEmail() { - ::grpc::Service::MarkMethodStreamed(19, + WithStreamedUnaryMethod_DeleteOAuthApp() { + ::grpc::Service::MarkMethodStreamed(29, new ::grpc::internal::StreamedUnaryHandler< - ::viam::app::v1::OrganizationSetSupportEmailRequest, ::viam::app::v1::OrganizationSetSupportEmailResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::viam::app::v1::OrganizationSetSupportEmailRequest, ::viam::app::v1::OrganizationSetSupportEmailResponse>* streamer) { - return this->StreamedOrganizationSetSupportEmail(context, + ::viam::app::v1::DeleteOAuthAppRequest, ::viam::app::v1::DeleteOAuthAppResponse>( + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< + ::viam::app::v1::DeleteOAuthAppRequest, ::viam::app::v1::DeleteOAuthAppResponse>* streamer) { + return this->StreamedDeleteOAuthApp(context, streamer); })); } - ~WithStreamedUnaryMethod_OrganizationSetSupportEmail() override { + ~WithStreamedUnaryMethod_DeleteOAuthApp() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status OrganizationSetSupportEmail(::grpc::ServerContext* /*context*/, const ::viam::app::v1::OrganizationSetSupportEmailRequest* /*request*/, ::viam::app::v1::OrganizationSetSupportEmailResponse* /*response*/) override { + ::grpc::Status DeleteOAuthApp(::grpc::ServerContext* /*context*/, const ::viam::app::v1::DeleteOAuthAppRequest* /*request*/, ::viam::app::v1::DeleteOAuthAppResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedOrganizationSetSupportEmail(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::OrganizationSetSupportEmailRequest,::viam::app::v1::OrganizationSetSupportEmailResponse>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedDeleteOAuthApp(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::DeleteOAuthAppRequest,::viam::app::v1::DeleteOAuthAppResponse>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_OrganizationGetSupportEmail : public BaseClass { + class WithStreamedUnaryMethod_ListOAuthApps : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithStreamedUnaryMethod_OrganizationGetSupportEmail() { - ::grpc::Service::MarkMethodStreamed(20, + WithStreamedUnaryMethod_ListOAuthApps() { + ::grpc::Service::MarkMethodStreamed(30, new ::grpc::internal::StreamedUnaryHandler< - ::viam::app::v1::OrganizationGetSupportEmailRequest, ::viam::app::v1::OrganizationGetSupportEmailResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::viam::app::v1::OrganizationGetSupportEmailRequest, ::viam::app::v1::OrganizationGetSupportEmailResponse>* streamer) { - return this->StreamedOrganizationGetSupportEmail(context, + ::viam::app::v1::ListOAuthAppsRequest, ::viam::app::v1::ListOAuthAppsResponse>( + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< + ::viam::app::v1::ListOAuthAppsRequest, ::viam::app::v1::ListOAuthAppsResponse>* streamer) { + return this->StreamedListOAuthApps(context, streamer); })); } - ~WithStreamedUnaryMethod_OrganizationGetSupportEmail() override { + ~WithStreamedUnaryMethod_ListOAuthApps() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status OrganizationGetSupportEmail(::grpc::ServerContext* /*context*/, const ::viam::app::v1::OrganizationGetSupportEmailRequest* /*request*/, ::viam::app::v1::OrganizationGetSupportEmailResponse* /*response*/) override { + ::grpc::Status ListOAuthApps(::grpc::ServerContext* /*context*/, const ::viam::app::v1::ListOAuthAppsRequest* /*request*/, ::viam::app::v1::ListOAuthAppsResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedOrganizationGetSupportEmail(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::OrganizationGetSupportEmailRequest,::viam::app::v1::OrganizationGetSupportEmailResponse>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedListOAuthApps(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::ListOAuthAppsRequest,::viam::app::v1::ListOAuthAppsResponse>* server_unary_streamer) = 0; }; template class WithStreamedUnaryMethod_CreateLocation : public BaseClass { @@ -11116,11 +17649,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_CreateLocation() { - ::grpc::Service::MarkMethodStreamed(21, + ::grpc::Service::MarkMethodStreamed(31, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::CreateLocationRequest, ::viam::app::v1::CreateLocationResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::CreateLocationRequest, ::viam::app::v1::CreateLocationResponse>* streamer) { return this->StreamedCreateLocation(context, streamer); @@ -11143,11 +17676,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_GetLocation() { - ::grpc::Service::MarkMethodStreamed(22, + ::grpc::Service::MarkMethodStreamed(32, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::GetLocationRequest, ::viam::app::v1::GetLocationResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::GetLocationRequest, ::viam::app::v1::GetLocationResponse>* streamer) { return this->StreamedGetLocation(context, streamer); @@ -11170,11 +17703,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_UpdateLocation() { - ::grpc::Service::MarkMethodStreamed(23, + ::grpc::Service::MarkMethodStreamed(33, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::UpdateLocationRequest, ::viam::app::v1::UpdateLocationResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::UpdateLocationRequest, ::viam::app::v1::UpdateLocationResponse>* streamer) { return this->StreamedUpdateLocation(context, streamer); @@ -11197,11 +17730,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_DeleteLocation() { - ::grpc::Service::MarkMethodStreamed(24, + ::grpc::Service::MarkMethodStreamed(34, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::DeleteLocationRequest, ::viam::app::v1::DeleteLocationResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::DeleteLocationRequest, ::viam::app::v1::DeleteLocationResponse>* streamer) { return this->StreamedDeleteLocation(context, streamer); @@ -11224,11 +17757,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_ListLocations() { - ::grpc::Service::MarkMethodStreamed(25, + ::grpc::Service::MarkMethodStreamed(35, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::ListLocationsRequest, ::viam::app::v1::ListLocationsResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::ListLocationsRequest, ::viam::app::v1::ListLocationsResponse>* streamer) { return this->StreamedListLocations(context, streamer); @@ -11251,11 +17784,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_ShareLocation() { - ::grpc::Service::MarkMethodStreamed(26, + ::grpc::Service::MarkMethodStreamed(36, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::ShareLocationRequest, ::viam::app::v1::ShareLocationResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::ShareLocationRequest, ::viam::app::v1::ShareLocationResponse>* streamer) { return this->StreamedShareLocation(context, streamer); @@ -11278,11 +17811,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_UnshareLocation() { - ::grpc::Service::MarkMethodStreamed(27, + ::grpc::Service::MarkMethodStreamed(37, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::UnshareLocationRequest, ::viam::app::v1::UnshareLocationResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::UnshareLocationRequest, ::viam::app::v1::UnshareLocationResponse>* streamer) { return this->StreamedUnshareLocation(context, streamer); @@ -11305,11 +17838,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_LocationAuth() { - ::grpc::Service::MarkMethodStreamed(28, + ::grpc::Service::MarkMethodStreamed(38, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::LocationAuthRequest, ::viam::app::v1::LocationAuthResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::LocationAuthRequest, ::viam::app::v1::LocationAuthResponse>* streamer) { return this->StreamedLocationAuth(context, streamer); @@ -11332,11 +17865,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_CreateLocationSecret() { - ::grpc::Service::MarkMethodStreamed(29, + ::grpc::Service::MarkMethodStreamed(39, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::CreateLocationSecretRequest, ::viam::app::v1::CreateLocationSecretResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::CreateLocationSecretRequest, ::viam::app::v1::CreateLocationSecretResponse>* streamer) { return this->StreamedCreateLocationSecret(context, streamer); @@ -11359,11 +17892,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_DeleteLocationSecret() { - ::grpc::Service::MarkMethodStreamed(30, + ::grpc::Service::MarkMethodStreamed(40, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::DeleteLocationSecretRequest, ::viam::app::v1::DeleteLocationSecretResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::DeleteLocationSecretRequest, ::viam::app::v1::DeleteLocationSecretResponse>* streamer) { return this->StreamedDeleteLocationSecret(context, streamer); @@ -11386,11 +17919,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_GetRobot() { - ::grpc::Service::MarkMethodStreamed(31, + ::grpc::Service::MarkMethodStreamed(41, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::GetRobotRequest, ::viam::app::v1::GetRobotResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::GetRobotRequest, ::viam::app::v1::GetRobotResponse>* streamer) { return this->StreamedGetRobot(context, streamer); @@ -11413,11 +17946,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_GetRoverRentalRobots() { - ::grpc::Service::MarkMethodStreamed(32, + ::grpc::Service::MarkMethodStreamed(42, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::GetRoverRentalRobotsRequest, ::viam::app::v1::GetRoverRentalRobotsResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::GetRoverRentalRobotsRequest, ::viam::app::v1::GetRoverRentalRobotsResponse>* streamer) { return this->StreamedGetRoverRentalRobots(context, streamer); @@ -11440,11 +17973,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_GetRobotParts() { - ::grpc::Service::MarkMethodStreamed(33, + ::grpc::Service::MarkMethodStreamed(43, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::GetRobotPartsRequest, ::viam::app::v1::GetRobotPartsResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::GetRobotPartsRequest, ::viam::app::v1::GetRobotPartsResponse>* streamer) { return this->StreamedGetRobotParts(context, streamer); @@ -11467,11 +18000,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_GetRobotPart() { - ::grpc::Service::MarkMethodStreamed(34, + ::grpc::Service::MarkMethodStreamed(44, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::GetRobotPartRequest, ::viam::app::v1::GetRobotPartResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::GetRobotPartRequest, ::viam::app::v1::GetRobotPartResponse>* streamer) { return this->StreamedGetRobotPart(context, streamer); @@ -11494,11 +18027,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_GetRobotPartLogs() { - ::grpc::Service::MarkMethodStreamed(35, + ::grpc::Service::MarkMethodStreamed(45, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::GetRobotPartLogsRequest, ::viam::app::v1::GetRobotPartLogsResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::GetRobotPartLogsRequest, ::viam::app::v1::GetRobotPartLogsResponse>* streamer) { return this->StreamedGetRobotPartLogs(context, streamer); @@ -11521,11 +18054,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_GetRobotPartHistory() { - ::grpc::Service::MarkMethodStreamed(37, + ::grpc::Service::MarkMethodStreamed(47, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::GetRobotPartHistoryRequest, ::viam::app::v1::GetRobotPartHistoryResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::GetRobotPartHistoryRequest, ::viam::app::v1::GetRobotPartHistoryResponse>* streamer) { return this->StreamedGetRobotPartHistory(context, streamer); @@ -11548,11 +18081,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_UpdateRobotPart() { - ::grpc::Service::MarkMethodStreamed(38, + ::grpc::Service::MarkMethodStreamed(48, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::UpdateRobotPartRequest, ::viam::app::v1::UpdateRobotPartResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::UpdateRobotPartRequest, ::viam::app::v1::UpdateRobotPartResponse>* streamer) { return this->StreamedUpdateRobotPart(context, streamer); @@ -11575,11 +18108,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_NewRobotPart() { - ::grpc::Service::MarkMethodStreamed(39, + ::grpc::Service::MarkMethodStreamed(49, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::NewRobotPartRequest, ::viam::app::v1::NewRobotPartResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::NewRobotPartRequest, ::viam::app::v1::NewRobotPartResponse>* streamer) { return this->StreamedNewRobotPart(context, streamer); @@ -11602,11 +18135,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_DeleteRobotPart() { - ::grpc::Service::MarkMethodStreamed(40, + ::grpc::Service::MarkMethodStreamed(50, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::DeleteRobotPartRequest, ::viam::app::v1::DeleteRobotPartResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::DeleteRobotPartRequest, ::viam::app::v1::DeleteRobotPartResponse>* streamer) { return this->StreamedDeleteRobotPart(context, streamer); @@ -11629,11 +18162,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_GetRobotAPIKeys() { - ::grpc::Service::MarkMethodStreamed(41, + ::grpc::Service::MarkMethodStreamed(51, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::GetRobotAPIKeysRequest, ::viam::app::v1::GetRobotAPIKeysResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::GetRobotAPIKeysRequest, ::viam::app::v1::GetRobotAPIKeysResponse>* streamer) { return this->StreamedGetRobotAPIKeys(context, streamer); @@ -11656,11 +18189,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_MarkPartAsMain() { - ::grpc::Service::MarkMethodStreamed(42, + ::grpc::Service::MarkMethodStreamed(52, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::MarkPartAsMainRequest, ::viam::app::v1::MarkPartAsMainResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::MarkPartAsMainRequest, ::viam::app::v1::MarkPartAsMainResponse>* streamer) { return this->StreamedMarkPartAsMain(context, streamer); @@ -11683,11 +18216,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_MarkPartForRestart() { - ::grpc::Service::MarkMethodStreamed(43, + ::grpc::Service::MarkMethodStreamed(53, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::MarkPartForRestartRequest, ::viam::app::v1::MarkPartForRestartResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::MarkPartForRestartRequest, ::viam::app::v1::MarkPartForRestartResponse>* streamer) { return this->StreamedMarkPartForRestart(context, streamer); @@ -11710,11 +18243,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_CreateRobotPartSecret() { - ::grpc::Service::MarkMethodStreamed(44, + ::grpc::Service::MarkMethodStreamed(54, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::CreateRobotPartSecretRequest, ::viam::app::v1::CreateRobotPartSecretResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::CreateRobotPartSecretRequest, ::viam::app::v1::CreateRobotPartSecretResponse>* streamer) { return this->StreamedCreateRobotPartSecret(context, streamer); @@ -11737,11 +18270,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_DeleteRobotPartSecret() { - ::grpc::Service::MarkMethodStreamed(45, + ::grpc::Service::MarkMethodStreamed(55, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::DeleteRobotPartSecretRequest, ::viam::app::v1::DeleteRobotPartSecretResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::DeleteRobotPartSecretRequest, ::viam::app::v1::DeleteRobotPartSecretResponse>* streamer) { return this->StreamedDeleteRobotPartSecret(context, streamer); @@ -11764,11 +18297,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_ListRobots() { - ::grpc::Service::MarkMethodStreamed(46, + ::grpc::Service::MarkMethodStreamed(56, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::ListRobotsRequest, ::viam::app::v1::ListRobotsResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::ListRobotsRequest, ::viam::app::v1::ListRobotsResponse>* streamer) { return this->StreamedListRobots(context, streamer); @@ -11791,11 +18324,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_NewRobot() { - ::grpc::Service::MarkMethodStreamed(47, + ::grpc::Service::MarkMethodStreamed(57, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::NewRobotRequest, ::viam::app::v1::NewRobotResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::NewRobotRequest, ::viam::app::v1::NewRobotResponse>* streamer) { return this->StreamedNewRobot(context, streamer); @@ -11818,11 +18351,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_UpdateRobot() { - ::grpc::Service::MarkMethodStreamed(48, + ::grpc::Service::MarkMethodStreamed(58, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::UpdateRobotRequest, ::viam::app::v1::UpdateRobotResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::UpdateRobotRequest, ::viam::app::v1::UpdateRobotResponse>* streamer) { return this->StreamedUpdateRobot(context, streamer); @@ -11845,11 +18378,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_DeleteRobot() { - ::grpc::Service::MarkMethodStreamed(49, + ::grpc::Service::MarkMethodStreamed(59, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::DeleteRobotRequest, ::viam::app::v1::DeleteRobotResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::DeleteRobotRequest, ::viam::app::v1::DeleteRobotResponse>* streamer) { return this->StreamedDeleteRobot(context, streamer); @@ -11872,11 +18405,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_ListFragments() { - ::grpc::Service::MarkMethodStreamed(50, + ::grpc::Service::MarkMethodStreamed(60, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::ListFragmentsRequest, ::viam::app::v1::ListFragmentsResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::ListFragmentsRequest, ::viam::app::v1::ListFragmentsResponse>* streamer) { return this->StreamedListFragments(context, streamer); @@ -11899,11 +18432,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_GetFragment() { - ::grpc::Service::MarkMethodStreamed(51, + ::grpc::Service::MarkMethodStreamed(61, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::GetFragmentRequest, ::viam::app::v1::GetFragmentResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::GetFragmentRequest, ::viam::app::v1::GetFragmentResponse>* streamer) { return this->StreamedGetFragment(context, streamer); @@ -11926,11 +18459,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_CreateFragment() { - ::grpc::Service::MarkMethodStreamed(52, + ::grpc::Service::MarkMethodStreamed(62, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::CreateFragmentRequest, ::viam::app::v1::CreateFragmentResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::CreateFragmentRequest, ::viam::app::v1::CreateFragmentResponse>* streamer) { return this->StreamedCreateFragment(context, streamer); @@ -11953,11 +18486,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_UpdateFragment() { - ::grpc::Service::MarkMethodStreamed(53, + ::grpc::Service::MarkMethodStreamed(63, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::UpdateFragmentRequest, ::viam::app::v1::UpdateFragmentResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::UpdateFragmentRequest, ::viam::app::v1::UpdateFragmentResponse>* streamer) { return this->StreamedUpdateFragment(context, streamer); @@ -11980,11 +18513,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_DeleteFragment() { - ::grpc::Service::MarkMethodStreamed(54, + ::grpc::Service::MarkMethodStreamed(64, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::DeleteFragmentRequest, ::viam::app::v1::DeleteFragmentResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::DeleteFragmentRequest, ::viam::app::v1::DeleteFragmentResponse>* streamer) { return this->StreamedDeleteFragment(context, streamer); @@ -12007,11 +18540,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_ListMachineFragments() { - ::grpc::Service::MarkMethodStreamed(55, + ::grpc::Service::MarkMethodStreamed(65, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::ListMachineFragmentsRequest, ::viam::app::v1::ListMachineFragmentsResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::ListMachineFragmentsRequest, ::viam::app::v1::ListMachineFragmentsResponse>* streamer) { return this->StreamedListMachineFragments(context, streamer); @@ -12034,11 +18567,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_GetFragmentHistory() { - ::grpc::Service::MarkMethodStreamed(56, + ::grpc::Service::MarkMethodStreamed(66, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::GetFragmentHistoryRequest, ::viam::app::v1::GetFragmentHistoryResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::GetFragmentHistoryRequest, ::viam::app::v1::GetFragmentHistoryResponse>* streamer) { return this->StreamedGetFragmentHistory(context, streamer); @@ -12061,11 +18594,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_AddRole() { - ::grpc::Service::MarkMethodStreamed(57, + ::grpc::Service::MarkMethodStreamed(67, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::AddRoleRequest, ::viam::app::v1::AddRoleResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::AddRoleRequest, ::viam::app::v1::AddRoleResponse>* streamer) { return this->StreamedAddRole(context, streamer); @@ -12088,11 +18621,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_RemoveRole() { - ::grpc::Service::MarkMethodStreamed(58, + ::grpc::Service::MarkMethodStreamed(68, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::RemoveRoleRequest, ::viam::app::v1::RemoveRoleResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::RemoveRoleRequest, ::viam::app::v1::RemoveRoleResponse>* streamer) { return this->StreamedRemoveRole(context, streamer); @@ -12115,11 +18648,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_ChangeRole() { - ::grpc::Service::MarkMethodStreamed(59, + ::grpc::Service::MarkMethodStreamed(69, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::ChangeRoleRequest, ::viam::app::v1::ChangeRoleResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::ChangeRoleRequest, ::viam::app::v1::ChangeRoleResponse>* streamer) { return this->StreamedChangeRole(context, streamer); @@ -12142,11 +18675,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_ListAuthorizations() { - ::grpc::Service::MarkMethodStreamed(60, + ::grpc::Service::MarkMethodStreamed(70, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::ListAuthorizationsRequest, ::viam::app::v1::ListAuthorizationsResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::ListAuthorizationsRequest, ::viam::app::v1::ListAuthorizationsResponse>* streamer) { return this->StreamedListAuthorizations(context, streamer); @@ -12169,11 +18702,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_CheckPermissions() { - ::grpc::Service::MarkMethodStreamed(61, + ::grpc::Service::MarkMethodStreamed(71, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::CheckPermissionsRequest, ::viam::app::v1::CheckPermissionsResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::CheckPermissionsRequest, ::viam::app::v1::CheckPermissionsResponse>* streamer) { return this->StreamedCheckPermissions(context, streamer); @@ -12196,11 +18729,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_GetRegistryItem() { - ::grpc::Service::MarkMethodStreamed(62, + ::grpc::Service::MarkMethodStreamed(72, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::GetRegistryItemRequest, ::viam::app::v1::GetRegistryItemResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::GetRegistryItemRequest, ::viam::app::v1::GetRegistryItemResponse>* streamer) { return this->StreamedGetRegistryItem(context, streamer); @@ -12223,11 +18756,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_CreateRegistryItem() { - ::grpc::Service::MarkMethodStreamed(63, + ::grpc::Service::MarkMethodStreamed(73, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::CreateRegistryItemRequest, ::viam::app::v1::CreateRegistryItemResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::CreateRegistryItemRequest, ::viam::app::v1::CreateRegistryItemResponse>* streamer) { return this->StreamedCreateRegistryItem(context, streamer); @@ -12250,11 +18783,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_UpdateRegistryItem() { - ::grpc::Service::MarkMethodStreamed(64, + ::grpc::Service::MarkMethodStreamed(74, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::UpdateRegistryItemRequest, ::viam::app::v1::UpdateRegistryItemResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::UpdateRegistryItemRequest, ::viam::app::v1::UpdateRegistryItemResponse>* streamer) { return this->StreamedUpdateRegistryItem(context, streamer); @@ -12277,11 +18810,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_ListRegistryItems() { - ::grpc::Service::MarkMethodStreamed(65, + ::grpc::Service::MarkMethodStreamed(75, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::ListRegistryItemsRequest, ::viam::app::v1::ListRegistryItemsResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::ListRegistryItemsRequest, ::viam::app::v1::ListRegistryItemsResponse>* streamer) { return this->StreamedListRegistryItems(context, streamer); @@ -12304,11 +18837,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_DeleteRegistryItem() { - ::grpc::Service::MarkMethodStreamed(66, + ::grpc::Service::MarkMethodStreamed(76, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::DeleteRegistryItemRequest, ::viam::app::v1::DeleteRegistryItemResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::DeleteRegistryItemRequest, ::viam::app::v1::DeleteRegistryItemResponse>* streamer) { return this->StreamedDeleteRegistryItem(context, streamer); @@ -12331,11 +18864,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_TransferRegistryItem() { - ::grpc::Service::MarkMethodStreamed(67, + ::grpc::Service::MarkMethodStreamed(77, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::TransferRegistryItemRequest, ::viam::app::v1::TransferRegistryItemResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::TransferRegistryItemRequest, ::viam::app::v1::TransferRegistryItemResponse>* streamer) { return this->StreamedTransferRegistryItem(context, streamer); @@ -12358,11 +18891,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_CreateModule() { - ::grpc::Service::MarkMethodStreamed(68, + ::grpc::Service::MarkMethodStreamed(78, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::CreateModuleRequest, ::viam::app::v1::CreateModuleResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::CreateModuleRequest, ::viam::app::v1::CreateModuleResponse>* streamer) { return this->StreamedCreateModule(context, streamer); @@ -12385,11 +18918,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_UpdateModule() { - ::grpc::Service::MarkMethodStreamed(69, + ::grpc::Service::MarkMethodStreamed(79, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::UpdateModuleRequest, ::viam::app::v1::UpdateModuleResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::UpdateModuleRequest, ::viam::app::v1::UpdateModuleResponse>* streamer) { return this->StreamedUpdateModule(context, streamer); @@ -12412,11 +18945,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_GetModule() { - ::grpc::Service::MarkMethodStreamed(71, + ::grpc::Service::MarkMethodStreamed(81, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::GetModuleRequest, ::viam::app::v1::GetModuleResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::GetModuleRequest, ::viam::app::v1::GetModuleResponse>* streamer) { return this->StreamedGetModule(context, streamer); @@ -12439,11 +18972,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_ListModules() { - ::grpc::Service::MarkMethodStreamed(72, + ::grpc::Service::MarkMethodStreamed(82, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::ListModulesRequest, ::viam::app::v1::ListModulesResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::ListModulesRequest, ::viam::app::v1::ListModulesResponse>* streamer) { return this->StreamedListModules(context, streamer); @@ -12466,11 +18999,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_CreateKey() { - ::grpc::Service::MarkMethodStreamed(73, + ::grpc::Service::MarkMethodStreamed(83, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::CreateKeyRequest, ::viam::app::v1::CreateKeyResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::CreateKeyRequest, ::viam::app::v1::CreateKeyResponse>* streamer) { return this->StreamedCreateKey(context, streamer); @@ -12493,11 +19026,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_DeleteKey() { - ::grpc::Service::MarkMethodStreamed(74, + ::grpc::Service::MarkMethodStreamed(84, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::DeleteKeyRequest, ::viam::app::v1::DeleteKeyResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::DeleteKeyRequest, ::viam::app::v1::DeleteKeyResponse>* streamer) { return this->StreamedDeleteKey(context, streamer); @@ -12520,11 +19053,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_ListKeys() { - ::grpc::Service::MarkMethodStreamed(75, + ::grpc::Service::MarkMethodStreamed(85, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::ListKeysRequest, ::viam::app::v1::ListKeysResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::ListKeysRequest, ::viam::app::v1::ListKeysResponse>* streamer) { return this->StreamedListKeys(context, streamer); @@ -12547,11 +19080,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_RenameKey() { - ::grpc::Service::MarkMethodStreamed(76, + ::grpc::Service::MarkMethodStreamed(86, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::RenameKeyRequest, ::viam::app::v1::RenameKeyResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::RenameKeyRequest, ::viam::app::v1::RenameKeyResponse>* streamer) { return this->StreamedRenameKey(context, streamer); @@ -12574,11 +19107,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_RotateKey() { - ::grpc::Service::MarkMethodStreamed(77, + ::grpc::Service::MarkMethodStreamed(87, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::RotateKeyRequest, ::viam::app::v1::RotateKeyResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::RotateKeyRequest, ::viam::app::v1::RotateKeyResponse>* streamer) { return this->StreamedRotateKey(context, streamer); @@ -12601,11 +19134,11 @@ class AppService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_CreateKeyFromExistingKeyAuthorizations() { - ::grpc::Service::MarkMethodStreamed(78, + ::grpc::Service::MarkMethodStreamed(88, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsRequest, ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsRequest, ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse>* streamer) { return this->StreamedCreateKeyFromExistingKeyAuthorizations(context, streamer); @@ -12622,18 +19155,18 @@ class AppService final { // replace default version of method with streamed unary virtual ::grpc::Status StreamedCreateKeyFromExistingKeyAuthorizations(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsRequest,::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse>* server_unary_streamer) = 0; }; - typedef WithStreamedUnaryMethod_GetUserIDByEmail > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > StreamedUnaryService; + typedef WithStreamedUnaryMethod_GetUserIDByEmail > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > StreamedUnaryService; template class WithSplitStreamingMethod_TailRobotPartLogs : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithSplitStreamingMethod_TailRobotPartLogs() { - ::grpc::Service::MarkMethodStreamed(36, + ::grpc::Service::MarkMethodStreamed(46, new ::grpc::internal::SplitServerStreamingHandler< ::viam::app::v1::TailRobotPartLogsRequest, ::viam::app::v1::TailRobotPartLogsResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerSplitStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerSplitStreamer< ::viam::app::v1::TailRobotPartLogsRequest, ::viam::app::v1::TailRobotPartLogsResponse>* streamer) { return this->StreamedTailRobotPartLogs(context, streamer); @@ -12651,7 +19184,7 @@ class AppService final { virtual ::grpc::Status StreamedTailRobotPartLogs(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::viam::app::v1::TailRobotPartLogsRequest,::viam::app::v1::TailRobotPartLogsResponse>* server_split_streamer) = 0; }; typedef WithSplitStreamingMethod_TailRobotPartLogs SplitStreamedService; - typedef WithStreamedUnaryMethod_GetUserIDByEmail > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > StreamedService; + typedef WithStreamedUnaryMethod_GetUserIDByEmail > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > StreamedService; }; // Users diff --git a/src/viam/api/app/v1/app.pb.cc b/src/viam/api/app/v1/app.pb.cc index 16a917798..1d3842a2f 100644 --- a/src/viam/api/app/v1/app.pb.cc +++ b/src/viam/api/app/v1/app.pb.cc @@ -4,8070 +4,6762 @@ #include "app/v1/app.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace viam { namespace app { namespace v1 { - -inline constexpr UploadModuleFileResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : url_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR UploadModuleFileResponse::UploadModuleFileResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct UploadModuleFileResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR UploadModuleFileResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~UploadModuleFileResponseDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR Robot::Robot( + ::_pbi::ConstantInitialized) + : id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , location_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , last_access_(nullptr) + , created_on_(nullptr){} +struct RobotDefaultTypeInternal { + PROTOBUF_CONSTEXPR RobotDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RobotDefaultTypeInternal() {} union { - UploadModuleFileResponse _instance; + Robot _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UploadModuleFileResponseDefaultTypeInternal _UploadModuleFileResponse_default_instance_; - -inline constexpr UpdateRobotRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - location_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR UpdateRobotRequest::UpdateRobotRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct UpdateRobotRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR UpdateRobotRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~UpdateRobotRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RobotDefaultTypeInternal _Robot_default_instance_; +PROTOBUF_CONSTEXPR RobotPart::RobotPart( + ::_pbi::ConstantInitialized) + : secrets_() + , id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , secret_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , robot_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , fqdn_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , dns_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , local_fqdn_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , location_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , robot_config_(nullptr) + , last_access_(nullptr) + , user_supplied_info_(nullptr) + , created_on_(nullptr) + , last_updated_(nullptr) + , main_part_(false){} +struct RobotPartDefaultTypeInternal { + PROTOBUF_CONSTEXPR RobotPartDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RobotPartDefaultTypeInternal() {} union { - UpdateRobotRequest _instance; + RobotPart _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateRobotRequestDefaultTypeInternal _UpdateRobotRequest_default_instance_; - template -PROTOBUF_CONSTEXPR UpdateRegistryItemResponse::UpdateRegistryItemResponse(::_pbi::ConstantInitialized) {} -struct UpdateRegistryItemResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR UpdateRegistryItemResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~UpdateRegistryItemResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RobotPartDefaultTypeInternal _RobotPart_default_instance_; +PROTOBUF_CONSTEXPR RobotPartHistoryEntry::RobotPartHistoryEntry( + ::_pbi::ConstantInitialized) + : part_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , robot_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , when_(nullptr) + , old_(nullptr) + , edited_by_(nullptr){} +struct RobotPartHistoryEntryDefaultTypeInternal { + PROTOBUF_CONSTEXPR RobotPartHistoryEntryDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RobotPartHistoryEntryDefaultTypeInternal() {} union { - UpdateRegistryItemResponse _instance; + RobotPartHistoryEntry _instance; }; }; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RobotPartHistoryEntryDefaultTypeInternal _RobotPartHistoryEntry_default_instance_; +PROTOBUF_CONSTEXPR AuthenticatorInfo::AuthenticatorInfo( + ::_pbi::ConstantInitialized) + : value_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , type_(0) -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateRegistryItemResponseDefaultTypeInternal _UpdateRegistryItemResponse_default_instance_; - -inline constexpr UpdateRegistryItemRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - item_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - description_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - url_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - type_{static_cast< ::viam::app::packages::v1::PackageType >(0)}, - visibility_{static_cast< ::viam::app::v1::Visibility >(0)} {} - -template -PROTOBUF_CONSTEXPR UpdateRegistryItemRequest::UpdateRegistryItemRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct UpdateRegistryItemRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR UpdateRegistryItemRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~UpdateRegistryItemRequestDefaultTypeInternal() {} + , is_deactivated_(false){} +struct AuthenticatorInfoDefaultTypeInternal { + PROTOBUF_CONSTEXPR AuthenticatorInfoDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AuthenticatorInfoDefaultTypeInternal() {} union { - UpdateRegistryItemRequest _instance; + AuthenticatorInfo _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateRegistryItemRequestDefaultTypeInternal _UpdateRegistryItemRequest_default_instance_; - -inline constexpr UpdateOrganizationRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - organization_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - public_namespace_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - region_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - cid_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()) {} - -template -PROTOBUF_CONSTEXPR UpdateOrganizationRequest::UpdateOrganizationRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct UpdateOrganizationRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR UpdateOrganizationRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~UpdateOrganizationRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AuthenticatorInfoDefaultTypeInternal _AuthenticatorInfo_default_instance_; +PROTOBUF_CONSTEXPR ListOrganizationsRequest::ListOrganizationsRequest( + ::_pbi::ConstantInitialized){} +struct ListOrganizationsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR ListOrganizationsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ListOrganizationsRequestDefaultTypeInternal() {} union { - UpdateOrganizationRequest _instance; + ListOrganizationsRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateOrganizationRequestDefaultTypeInternal _UpdateOrganizationRequest_default_instance_; - -inline constexpr UpdateModuleResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : url_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR UpdateModuleResponse::UpdateModuleResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct UpdateModuleResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR UpdateModuleResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~UpdateModuleResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListOrganizationsRequestDefaultTypeInternal _ListOrganizationsRequest_default_instance_; +PROTOBUF_CONSTEXPR Organization::Organization( + ::_pbi::ConstantInitialized) + : id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , public_namespace_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , default_region_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , cid_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , created_on_(nullptr){} +struct OrganizationDefaultTypeInternal { + PROTOBUF_CONSTEXPR OrganizationDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~OrganizationDefaultTypeInternal() {} union { - UpdateModuleResponse _instance; + Organization _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateModuleResponseDefaultTypeInternal _UpdateModuleResponse_default_instance_; - -inline constexpr UpdateLocationRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - location_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - parent_location_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - region_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()) {} - -template -PROTOBUF_CONSTEXPR UpdateLocationRequest::UpdateLocationRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct UpdateLocationRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR UpdateLocationRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~UpdateLocationRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OrganizationDefaultTypeInternal _Organization_default_instance_; +PROTOBUF_CONSTEXPR OrganizationMember::OrganizationMember( + ::_pbi::ConstantInitialized) + : emails_() + , user_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , date_added_(nullptr) + , last_login_(nullptr){} +struct OrganizationMemberDefaultTypeInternal { + PROTOBUF_CONSTEXPR OrganizationMemberDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~OrganizationMemberDefaultTypeInternal() {} union { - UpdateLocationRequest _instance; + OrganizationMember _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateLocationRequestDefaultTypeInternal _UpdateLocationRequest_default_instance_; - template -PROTOBUF_CONSTEXPR UpdateBillingServiceResponse::UpdateBillingServiceResponse(::_pbi::ConstantInitialized) {} -struct UpdateBillingServiceResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR UpdateBillingServiceResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~UpdateBillingServiceResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OrganizationMemberDefaultTypeInternal _OrganizationMember_default_instance_; +PROTOBUF_CONSTEXPR ListOrganizationsResponse::ListOrganizationsResponse( + ::_pbi::ConstantInitialized) + : organizations_(){} +struct ListOrganizationsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ListOrganizationsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ListOrganizationsResponseDefaultTypeInternal() {} union { - UpdateBillingServiceResponse _instance; + ListOrganizationsResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateBillingServiceResponseDefaultTypeInternal _UpdateBillingServiceResponse_default_instance_; - template -PROTOBUF_CONSTEXPR UnshareLocationResponse::UnshareLocationResponse(::_pbi::ConstantInitialized) {} -struct UnshareLocationResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR UnshareLocationResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~UnshareLocationResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListOrganizationsResponseDefaultTypeInternal _ListOrganizationsResponse_default_instance_; +PROTOBUF_CONSTEXPR OrganizationInvite::OrganizationInvite( + ::_pbi::ConstantInitialized) + : authorizations_() + , organization_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , email_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , created_on_(nullptr){} +struct OrganizationInviteDefaultTypeInternal { + PROTOBUF_CONSTEXPR OrganizationInviteDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~OrganizationInviteDefaultTypeInternal() {} union { - UnshareLocationResponse _instance; + OrganizationInvite _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UnshareLocationResponseDefaultTypeInternal _UnshareLocationResponse_default_instance_; - -inline constexpr UnshareLocationRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : location_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - organization_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR UnshareLocationRequest::UnshareLocationRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct UnshareLocationRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR UnshareLocationRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~UnshareLocationRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OrganizationInviteDefaultTypeInternal _OrganizationInvite_default_instance_; +PROTOBUF_CONSTEXPR CreateOrganizationRequest::CreateOrganizationRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct CreateOrganizationRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR CreateOrganizationRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CreateOrganizationRequestDefaultTypeInternal() {} union { - UnshareLocationRequest _instance; + CreateOrganizationRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UnshareLocationRequestDefaultTypeInternal _UnshareLocationRequest_default_instance_; - template -PROTOBUF_CONSTEXPR TransferRegistryItemResponse::TransferRegistryItemResponse(::_pbi::ConstantInitialized) {} -struct TransferRegistryItemResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR TransferRegistryItemResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TransferRegistryItemResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateOrganizationRequestDefaultTypeInternal _CreateOrganizationRequest_default_instance_; +PROTOBUF_CONSTEXPR CreateOrganizationResponse::CreateOrganizationResponse( + ::_pbi::ConstantInitialized) + : organization_(nullptr){} +struct CreateOrganizationResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR CreateOrganizationResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CreateOrganizationResponseDefaultTypeInternal() {} union { - TransferRegistryItemResponse _instance; + CreateOrganizationResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TransferRegistryItemResponseDefaultTypeInternal _TransferRegistryItemResponse_default_instance_; - -inline constexpr TransferRegistryItemRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : item_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - new_public_namespace_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR TransferRegistryItemRequest::TransferRegistryItemRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct TransferRegistryItemRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR TransferRegistryItemRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TransferRegistryItemRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateOrganizationResponseDefaultTypeInternal _CreateOrganizationResponse_default_instance_; +PROTOBUF_CONSTEXPR GetOrganizationRequest::GetOrganizationRequest( + ::_pbi::ConstantInitialized) + : organization_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct GetOrganizationRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetOrganizationRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetOrganizationRequestDefaultTypeInternal() {} union { - TransferRegistryItemRequest _instance; + GetOrganizationRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TransferRegistryItemRequestDefaultTypeInternal _TransferRegistryItemRequest_default_instance_; - -inline constexpr TailRobotPartLogsRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - filter_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - errors_only_{false} {} - -template -PROTOBUF_CONSTEXPR TailRobotPartLogsRequest::TailRobotPartLogsRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct TailRobotPartLogsRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR TailRobotPartLogsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TailRobotPartLogsRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetOrganizationRequestDefaultTypeInternal _GetOrganizationRequest_default_instance_; +PROTOBUF_CONSTEXPR GetOrganizationResponse::GetOrganizationResponse( + ::_pbi::ConstantInitialized) + : organization_(nullptr){} +struct GetOrganizationResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetOrganizationResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetOrganizationResponseDefaultTypeInternal() {} union { - TailRobotPartLogsRequest _instance; + GetOrganizationResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TailRobotPartLogsRequestDefaultTypeInternal _TailRobotPartLogsRequest_default_instance_; - -inline constexpr StorageConfig::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : region_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR StorageConfig::StorageConfig(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct StorageConfigDefaultTypeInternal { - PROTOBUF_CONSTEXPR StorageConfigDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StorageConfigDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetOrganizationResponseDefaultTypeInternal _GetOrganizationResponse_default_instance_; +PROTOBUF_CONSTEXPR GetOrganizationNamespaceAvailabilityRequest::GetOrganizationNamespaceAvailabilityRequest( + ::_pbi::ConstantInitialized) + : public_namespace_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct GetOrganizationNamespaceAvailabilityRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetOrganizationNamespaceAvailabilityRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetOrganizationNamespaceAvailabilityRequestDefaultTypeInternal() {} union { - StorageConfig _instance; + GetOrganizationNamespaceAvailabilityRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StorageConfigDefaultTypeInternal _StorageConfig_default_instance_; - template -PROTOBUF_CONSTEXPR ShareLocationResponse::ShareLocationResponse(::_pbi::ConstantInitialized) {} -struct ShareLocationResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ShareLocationResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ShareLocationResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetOrganizationNamespaceAvailabilityRequestDefaultTypeInternal _GetOrganizationNamespaceAvailabilityRequest_default_instance_; +PROTOBUF_CONSTEXPR GetOrganizationNamespaceAvailabilityResponse::GetOrganizationNamespaceAvailabilityResponse( + ::_pbi::ConstantInitialized) + : available_(false){} +struct GetOrganizationNamespaceAvailabilityResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetOrganizationNamespaceAvailabilityResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetOrganizationNamespaceAvailabilityResponseDefaultTypeInternal() {} union { - ShareLocationResponse _instance; + GetOrganizationNamespaceAvailabilityResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ShareLocationResponseDefaultTypeInternal _ShareLocationResponse_default_instance_; - -inline constexpr ShareLocationRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : location_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - organization_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR ShareLocationRequest::ShareLocationRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ShareLocationRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR ShareLocationRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ShareLocationRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetOrganizationNamespaceAvailabilityResponseDefaultTypeInternal _GetOrganizationNamespaceAvailabilityResponse_default_instance_; +PROTOBUF_CONSTEXPR UpdateOrganizationRequest::UpdateOrganizationRequest( + ::_pbi::ConstantInitialized) + : organization_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , public_namespace_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , region_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , cid_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct UpdateOrganizationRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR UpdateOrganizationRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~UpdateOrganizationRequestDefaultTypeInternal() {} union { - ShareLocationRequest _instance; + UpdateOrganizationRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ShareLocationRequestDefaultTypeInternal _ShareLocationRequest_default_instance_; - -inline constexpr RoverRentalRobot::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : robot_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - location_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - robot_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - robot_main_part_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR RoverRentalRobot::RoverRentalRobot(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct RoverRentalRobotDefaultTypeInternal { - PROTOBUF_CONSTEXPR RoverRentalRobotDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RoverRentalRobotDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateOrganizationRequestDefaultTypeInternal _UpdateOrganizationRequest_default_instance_; +PROTOBUF_CONSTEXPR UpdateOrganizationResponse::UpdateOrganizationResponse( + ::_pbi::ConstantInitialized) + : organization_(nullptr){} +struct UpdateOrganizationResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR UpdateOrganizationResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~UpdateOrganizationResponseDefaultTypeInternal() {} union { - RoverRentalRobot _instance; + UpdateOrganizationResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RoverRentalRobotDefaultTypeInternal _RoverRentalRobot_default_instance_; - -inline constexpr RotateKeyResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - key_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR RotateKeyResponse::RotateKeyResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct RotateKeyResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR RotateKeyResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RotateKeyResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateOrganizationResponseDefaultTypeInternal _UpdateOrganizationResponse_default_instance_; +PROTOBUF_CONSTEXPR DeleteOrganizationRequest::DeleteOrganizationRequest( + ::_pbi::ConstantInitialized) + : organization_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct DeleteOrganizationRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR DeleteOrganizationRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DeleteOrganizationRequestDefaultTypeInternal() {} union { - RotateKeyResponse _instance; + DeleteOrganizationRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RotateKeyResponseDefaultTypeInternal _RotateKeyResponse_default_instance_; - -inline constexpr RotateKeyRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR RotateKeyRequest::RotateKeyRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct RotateKeyRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR RotateKeyRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RotateKeyRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteOrganizationRequestDefaultTypeInternal _DeleteOrganizationRequest_default_instance_; +PROTOBUF_CONSTEXPR DeleteOrganizationResponse::DeleteOrganizationResponse( + ::_pbi::ConstantInitialized){} +struct DeleteOrganizationResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR DeleteOrganizationResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DeleteOrganizationResponseDefaultTypeInternal() {} union { - RotateKeyRequest _instance; + DeleteOrganizationResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RotateKeyRequestDefaultTypeInternal _RotateKeyRequest_default_instance_; - -inline constexpr ResendOrganizationInviteRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : organization_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - email_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR ResendOrganizationInviteRequest::ResendOrganizationInviteRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ResendOrganizationInviteRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR ResendOrganizationInviteRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ResendOrganizationInviteRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteOrganizationResponseDefaultTypeInternal _DeleteOrganizationResponse_default_instance_; +PROTOBUF_CONSTEXPR ListOrganizationMembersRequest::ListOrganizationMembersRequest( + ::_pbi::ConstantInitialized) + : organization_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct ListOrganizationMembersRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR ListOrganizationMembersRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ListOrganizationMembersRequestDefaultTypeInternal() {} union { - ResendOrganizationInviteRequest _instance; + ListOrganizationMembersRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResendOrganizationInviteRequestDefaultTypeInternal _ResendOrganizationInviteRequest_default_instance_; - -inline constexpr RenameKeyResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR RenameKeyResponse::RenameKeyResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct RenameKeyResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR RenameKeyResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RenameKeyResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListOrganizationMembersRequestDefaultTypeInternal _ListOrganizationMembersRequest_default_instance_; +PROTOBUF_CONSTEXPR ListOrganizationMembersResponse::ListOrganizationMembersResponse( + ::_pbi::ConstantInitialized) + : members_() + , invites_() + , organization_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct ListOrganizationMembersResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ListOrganizationMembersResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ListOrganizationMembersResponseDefaultTypeInternal() {} union { - RenameKeyResponse _instance; + ListOrganizationMembersResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RenameKeyResponseDefaultTypeInternal _RenameKeyResponse_default_instance_; - -inline constexpr RenameKeyRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR RenameKeyRequest::RenameKeyRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct RenameKeyRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR RenameKeyRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RenameKeyRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListOrganizationMembersResponseDefaultTypeInternal _ListOrganizationMembersResponse_default_instance_; +PROTOBUF_CONSTEXPR CreateOrganizationInviteRequest::CreateOrganizationInviteRequest( + ::_pbi::ConstantInitialized) + : authorizations_() + , organization_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , email_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , send_email_invite_(false){} +struct CreateOrganizationInviteRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR CreateOrganizationInviteRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CreateOrganizationInviteRequestDefaultTypeInternal() {} union { - RenameKeyRequest _instance; + CreateOrganizationInviteRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RenameKeyRequestDefaultTypeInternal _RenameKeyRequest_default_instance_; - template -PROTOBUF_CONSTEXPR RemoveRoleResponse::RemoveRoleResponse(::_pbi::ConstantInitialized) {} -struct RemoveRoleResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR RemoveRoleResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RemoveRoleResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateOrganizationInviteRequestDefaultTypeInternal _CreateOrganizationInviteRequest_default_instance_; +PROTOBUF_CONSTEXPR CreateOrganizationInviteResponse::CreateOrganizationInviteResponse( + ::_pbi::ConstantInitialized) + : invite_(nullptr){} +struct CreateOrganizationInviteResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR CreateOrganizationInviteResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CreateOrganizationInviteResponseDefaultTypeInternal() {} union { - RemoveRoleResponse _instance; + CreateOrganizationInviteResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RemoveRoleResponseDefaultTypeInternal _RemoveRoleResponse_default_instance_; - template -PROTOBUF_CONSTEXPR OrganizationSetSupportEmailResponse::OrganizationSetSupportEmailResponse(::_pbi::ConstantInitialized) {} -struct OrganizationSetSupportEmailResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR OrganizationSetSupportEmailResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~OrganizationSetSupportEmailResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateOrganizationInviteResponseDefaultTypeInternal _CreateOrganizationInviteResponse_default_instance_; +PROTOBUF_CONSTEXPR UpdateOrganizationInviteAuthorizationsRequest::UpdateOrganizationInviteAuthorizationsRequest( + ::_pbi::ConstantInitialized) + : add_authorizations_() + , remove_authorizations_() + , organization_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , email_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct UpdateOrganizationInviteAuthorizationsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR UpdateOrganizationInviteAuthorizationsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~UpdateOrganizationInviteAuthorizationsRequestDefaultTypeInternal() {} union { - OrganizationSetSupportEmailResponse _instance; + UpdateOrganizationInviteAuthorizationsRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OrganizationSetSupportEmailResponseDefaultTypeInternal _OrganizationSetSupportEmailResponse_default_instance_; - -inline constexpr OrganizationSetSupportEmailRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : org_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - email_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR OrganizationSetSupportEmailRequest::OrganizationSetSupportEmailRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct OrganizationSetSupportEmailRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR OrganizationSetSupportEmailRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~OrganizationSetSupportEmailRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateOrganizationInviteAuthorizationsRequestDefaultTypeInternal _UpdateOrganizationInviteAuthorizationsRequest_default_instance_; +PROTOBUF_CONSTEXPR UpdateOrganizationInviteAuthorizationsResponse::UpdateOrganizationInviteAuthorizationsResponse( + ::_pbi::ConstantInitialized) + : invite_(nullptr){} +struct UpdateOrganizationInviteAuthorizationsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR UpdateOrganizationInviteAuthorizationsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~UpdateOrganizationInviteAuthorizationsResponseDefaultTypeInternal() {} union { - OrganizationSetSupportEmailRequest _instance; + UpdateOrganizationInviteAuthorizationsResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OrganizationSetSupportEmailRequestDefaultTypeInternal _OrganizationSetSupportEmailRequest_default_instance_; - -inline constexpr OrganizationIdentity::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR OrganizationIdentity::OrganizationIdentity(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct OrganizationIdentityDefaultTypeInternal { - PROTOBUF_CONSTEXPR OrganizationIdentityDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~OrganizationIdentityDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateOrganizationInviteAuthorizationsResponseDefaultTypeInternal _UpdateOrganizationInviteAuthorizationsResponse_default_instance_; +PROTOBUF_CONSTEXPR DeleteOrganizationInviteRequest::DeleteOrganizationInviteRequest( + ::_pbi::ConstantInitialized) + : organization_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , email_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct DeleteOrganizationInviteRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR DeleteOrganizationInviteRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DeleteOrganizationInviteRequestDefaultTypeInternal() {} union { - OrganizationIdentity _instance; + DeleteOrganizationInviteRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OrganizationIdentityDefaultTypeInternal _OrganizationIdentity_default_instance_; - -inline constexpr OrganizationGetSupportEmailResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : email_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR OrganizationGetSupportEmailResponse::OrganizationGetSupportEmailResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct OrganizationGetSupportEmailResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR OrganizationGetSupportEmailResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~OrganizationGetSupportEmailResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteOrganizationInviteRequestDefaultTypeInternal _DeleteOrganizationInviteRequest_default_instance_; +PROTOBUF_CONSTEXPR DeleteOrganizationInviteResponse::DeleteOrganizationInviteResponse( + ::_pbi::ConstantInitialized){} +struct DeleteOrganizationInviteResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR DeleteOrganizationInviteResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DeleteOrganizationInviteResponseDefaultTypeInternal() {} union { - OrganizationGetSupportEmailResponse _instance; + DeleteOrganizationInviteResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OrganizationGetSupportEmailResponseDefaultTypeInternal _OrganizationGetSupportEmailResponse_default_instance_; - -inline constexpr OrganizationGetSupportEmailRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : org_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR OrganizationGetSupportEmailRequest::OrganizationGetSupportEmailRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct OrganizationGetSupportEmailRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR OrganizationGetSupportEmailRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~OrganizationGetSupportEmailRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteOrganizationInviteResponseDefaultTypeInternal _DeleteOrganizationInviteResponse_default_instance_; +PROTOBUF_CONSTEXPR ResendOrganizationInviteRequest::ResendOrganizationInviteRequest( + ::_pbi::ConstantInitialized) + : organization_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , email_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct ResendOrganizationInviteRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR ResendOrganizationInviteRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ResendOrganizationInviteRequestDefaultTypeInternal() {} union { - OrganizationGetSupportEmailRequest _instance; + ResendOrganizationInviteRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OrganizationGetSupportEmailRequestDefaultTypeInternal _OrganizationGetSupportEmailRequest_default_instance_; - -inline constexpr OrgDetails::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : org_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - org_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR OrgDetails::OrgDetails(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct OrgDetailsDefaultTypeInternal { - PROTOBUF_CONSTEXPR OrgDetailsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~OrgDetailsDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResendOrganizationInviteRequestDefaultTypeInternal _ResendOrganizationInviteRequest_default_instance_; +PROTOBUF_CONSTEXPR ResendOrganizationInviteResponse::ResendOrganizationInviteResponse( + ::_pbi::ConstantInitialized) + : invite_(nullptr){} +struct ResendOrganizationInviteResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ResendOrganizationInviteResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ResendOrganizationInviteResponseDefaultTypeInternal() {} union { - OrgDetails _instance; + ResendOrganizationInviteResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OrgDetailsDefaultTypeInternal _OrgDetails_default_instance_; - -inline constexpr NewRobotResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR NewRobotResponse::NewRobotResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct NewRobotResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR NewRobotResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~NewRobotResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResendOrganizationInviteResponseDefaultTypeInternal _ResendOrganizationInviteResponse_default_instance_; +PROTOBUF_CONSTEXPR DeleteOrganizationMemberRequest::DeleteOrganizationMemberRequest( + ::_pbi::ConstantInitialized) + : organization_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , user_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct DeleteOrganizationMemberRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR DeleteOrganizationMemberRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DeleteOrganizationMemberRequestDefaultTypeInternal() {} union { - NewRobotResponse _instance; + DeleteOrganizationMemberRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NewRobotResponseDefaultTypeInternal _NewRobotResponse_default_instance_; - -inline constexpr NewRobotRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - location_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR NewRobotRequest::NewRobotRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct NewRobotRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR NewRobotRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~NewRobotRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteOrganizationMemberRequestDefaultTypeInternal _DeleteOrganizationMemberRequest_default_instance_; +PROTOBUF_CONSTEXPR DeleteOrganizationMemberResponse::DeleteOrganizationMemberResponse( + ::_pbi::ConstantInitialized){} +struct DeleteOrganizationMemberResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR DeleteOrganizationMemberResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DeleteOrganizationMemberResponseDefaultTypeInternal() {} union { - NewRobotRequest _instance; + DeleteOrganizationMemberResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NewRobotRequestDefaultTypeInternal _NewRobotRequest_default_instance_; - -inline constexpr NewRobotPartResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : part_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR NewRobotPartResponse::NewRobotPartResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct NewRobotPartResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR NewRobotPartResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~NewRobotPartResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteOrganizationMemberResponseDefaultTypeInternal _DeleteOrganizationMemberResponse_default_instance_; +PROTOBUF_CONSTEXPR BillingAddress::BillingAddress( + ::_pbi::ConstantInitialized) + : address_line_1_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , address_line_2_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , city_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , state_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , zipcode_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct BillingAddressDefaultTypeInternal { + PROTOBUF_CONSTEXPR BillingAddressDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~BillingAddressDefaultTypeInternal() {} union { - NewRobotPartResponse _instance; + BillingAddress _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NewRobotPartResponseDefaultTypeInternal _NewRobotPartResponse_default_instance_; - -inline constexpr NewRobotPartRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : robot_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - part_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR NewRobotPartRequest::NewRobotPartRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct NewRobotPartRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR NewRobotPartRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~NewRobotPartRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BillingAddressDefaultTypeInternal _BillingAddress_default_instance_; +PROTOBUF_CONSTEXPR EnableBillingServiceRequest::EnableBillingServiceRequest( + ::_pbi::ConstantInitialized) + : org_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , billing_address_(nullptr){} +struct EnableBillingServiceRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR EnableBillingServiceRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~EnableBillingServiceRequestDefaultTypeInternal() {} union { - NewRobotPartRequest _instance; + EnableBillingServiceRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NewRobotPartRequestDefaultTypeInternal _NewRobotPartRequest_default_instance_; - -inline constexpr ModuleFileInfo::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : platform_tags_{}, - module_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - version_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - platform_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR ModuleFileInfo::ModuleFileInfo(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ModuleFileInfoDefaultTypeInternal { - PROTOBUF_CONSTEXPR ModuleFileInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ModuleFileInfoDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EnableBillingServiceRequestDefaultTypeInternal _EnableBillingServiceRequest_default_instance_; +PROTOBUF_CONSTEXPR EnableBillingServiceResponse::EnableBillingServiceResponse( + ::_pbi::ConstantInitialized){} +struct EnableBillingServiceResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR EnableBillingServiceResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~EnableBillingServiceResponseDefaultTypeInternal() {} union { - ModuleFileInfo _instance; + EnableBillingServiceResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ModuleFileInfoDefaultTypeInternal _ModuleFileInfo_default_instance_; - -inline constexpr Model::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : api_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - model_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR Model::Model(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ModelDefaultTypeInternal { - PROTOBUF_CONSTEXPR ModelDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ModelDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EnableBillingServiceResponseDefaultTypeInternal _EnableBillingServiceResponse_default_instance_; +PROTOBUF_CONSTEXPR UpdateBillingServiceRequest::UpdateBillingServiceRequest( + ::_pbi::ConstantInitialized) + : org_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , billing_address_(nullptr){} +struct UpdateBillingServiceRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR UpdateBillingServiceRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~UpdateBillingServiceRequestDefaultTypeInternal() {} union { - Model _instance; + UpdateBillingServiceRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ModelDefaultTypeInternal _Model_default_instance_; - template -PROTOBUF_CONSTEXPR MarkPartForRestartResponse::MarkPartForRestartResponse(::_pbi::ConstantInitialized) {} -struct MarkPartForRestartResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR MarkPartForRestartResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~MarkPartForRestartResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateBillingServiceRequestDefaultTypeInternal _UpdateBillingServiceRequest_default_instance_; +PROTOBUF_CONSTEXPR UpdateBillingServiceResponse::UpdateBillingServiceResponse( + ::_pbi::ConstantInitialized){} +struct UpdateBillingServiceResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR UpdateBillingServiceResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~UpdateBillingServiceResponseDefaultTypeInternal() {} union { - MarkPartForRestartResponse _instance; + UpdateBillingServiceResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MarkPartForRestartResponseDefaultTypeInternal _MarkPartForRestartResponse_default_instance_; - -inline constexpr MarkPartForRestartRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : part_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR MarkPartForRestartRequest::MarkPartForRestartRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct MarkPartForRestartRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR MarkPartForRestartRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~MarkPartForRestartRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateBillingServiceResponseDefaultTypeInternal _UpdateBillingServiceResponse_default_instance_; +PROTOBUF_CONSTEXPR GetBillingServiceConfigRequest::GetBillingServiceConfigRequest( + ::_pbi::ConstantInitialized) + : org_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct GetBillingServiceConfigRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetBillingServiceConfigRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetBillingServiceConfigRequestDefaultTypeInternal() {} union { - MarkPartForRestartRequest _instance; + GetBillingServiceConfigRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MarkPartForRestartRequestDefaultTypeInternal _MarkPartForRestartRequest_default_instance_; - template -PROTOBUF_CONSTEXPR MarkPartAsMainResponse::MarkPartAsMainResponse(::_pbi::ConstantInitialized) {} -struct MarkPartAsMainResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR MarkPartAsMainResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~MarkPartAsMainResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetBillingServiceConfigRequestDefaultTypeInternal _GetBillingServiceConfigRequest_default_instance_; +PROTOBUF_CONSTEXPR GetBillingServiceConfigResponse::GetBillingServiceConfigResponse( + ::_pbi::ConstantInitialized) + : support_email_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , logo_url_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , billing_dashboard_url_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , billing_address_(nullptr){} +struct GetBillingServiceConfigResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetBillingServiceConfigResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetBillingServiceConfigResponseDefaultTypeInternal() {} union { - MarkPartAsMainResponse _instance; + GetBillingServiceConfigResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MarkPartAsMainResponseDefaultTypeInternal _MarkPartAsMainResponse_default_instance_; - -inline constexpr MarkPartAsMainRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : part_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR MarkPartAsMainRequest::MarkPartAsMainRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct MarkPartAsMainRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR MarkPartAsMainRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~MarkPartAsMainRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetBillingServiceConfigResponseDefaultTypeInternal _GetBillingServiceConfigResponse_default_instance_; +PROTOBUF_CONSTEXPR DisableBillingServiceRequest::DisableBillingServiceRequest( + ::_pbi::ConstantInitialized) + : org_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct DisableBillingServiceRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR DisableBillingServiceRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DisableBillingServiceRequestDefaultTypeInternal() {} union { - MarkPartAsMainRequest _instance; + DisableBillingServiceRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MarkPartAsMainRequestDefaultTypeInternal _MarkPartAsMainRequest_default_instance_; - -inline constexpr MLModelMetadata::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : versions_{}, - model_type_{static_cast< ::viam::app::mltraining::v1::ModelType >(0)}, - model_framework_{static_cast< ::viam::app::mltraining::v1::ModelFramework >(0)}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR MLModelMetadata::MLModelMetadata(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct MLModelMetadataDefaultTypeInternal { - PROTOBUF_CONSTEXPR MLModelMetadataDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~MLModelMetadataDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DisableBillingServiceRequestDefaultTypeInternal _DisableBillingServiceRequest_default_instance_; +PROTOBUF_CONSTEXPR DisableBillingServiceResponse::DisableBillingServiceResponse( + ::_pbi::ConstantInitialized){} +struct DisableBillingServiceResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR DisableBillingServiceResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DisableBillingServiceResponseDefaultTypeInternal() {} union { - MLModelMetadata _instance; + DisableBillingServiceResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MLModelMetadataDefaultTypeInternal _MLModelMetadata_default_instance_; - -inline constexpr LocationOrganization::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : organization_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - primary_{false}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR LocationOrganization::LocationOrganization(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct LocationOrganizationDefaultTypeInternal { - PROTOBUF_CONSTEXPR LocationOrganizationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~LocationOrganizationDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DisableBillingServiceResponseDefaultTypeInternal _DisableBillingServiceResponse_default_instance_; +PROTOBUF_CONSTEXPR OrganizationSetSupportEmailRequest::OrganizationSetSupportEmailRequest( + ::_pbi::ConstantInitialized) + : org_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , email_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct OrganizationSetSupportEmailRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR OrganizationSetSupportEmailRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~OrganizationSetSupportEmailRequestDefaultTypeInternal() {} union { - LocationOrganization _instance; + OrganizationSetSupportEmailRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LocationOrganizationDefaultTypeInternal _LocationOrganization_default_instance_; - -inline constexpr LocationAuthRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : location_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR LocationAuthRequest::LocationAuthRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct LocationAuthRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR LocationAuthRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~LocationAuthRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OrganizationSetSupportEmailRequestDefaultTypeInternal _OrganizationSetSupportEmailRequest_default_instance_; +PROTOBUF_CONSTEXPR OrganizationSetSupportEmailResponse::OrganizationSetSupportEmailResponse( + ::_pbi::ConstantInitialized){} +struct OrganizationSetSupportEmailResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR OrganizationSetSupportEmailResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~OrganizationSetSupportEmailResponseDefaultTypeInternal() {} union { - LocationAuthRequest _instance; + OrganizationSetSupportEmailResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LocationAuthRequestDefaultTypeInternal _LocationAuthRequest_default_instance_; - -inline constexpr ListRobotsRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : location_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR ListRobotsRequest::ListRobotsRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ListRobotsRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR ListRobotsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ListRobotsRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OrganizationSetSupportEmailResponseDefaultTypeInternal _OrganizationSetSupportEmailResponse_default_instance_; +PROTOBUF_CONSTEXPR OrganizationGetSupportEmailRequest::OrganizationGetSupportEmailRequest( + ::_pbi::ConstantInitialized) + : org_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct OrganizationGetSupportEmailRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR OrganizationGetSupportEmailRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~OrganizationGetSupportEmailRequestDefaultTypeInternal() {} union { - ListRobotsRequest _instance; + OrganizationGetSupportEmailRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListRobotsRequestDefaultTypeInternal _ListRobotsRequest_default_instance_; - -inline constexpr ListRegistryItemsRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - types_{}, - _types_cached_byte_size_{0}, - visibilities_{}, - _visibilities_cached_byte_size_{0}, - platforms_{}, - statuses_{}, - _statuses_cached_byte_size_{0}, - public_namespaces_{}, - organization_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - search_term_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - page_token_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()) {} - -template -PROTOBUF_CONSTEXPR ListRegistryItemsRequest::ListRegistryItemsRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ListRegistryItemsRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR ListRegistryItemsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ListRegistryItemsRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OrganizationGetSupportEmailRequestDefaultTypeInternal _OrganizationGetSupportEmailRequest_default_instance_; +PROTOBUF_CONSTEXPR OrganizationGetSupportEmailResponse::OrganizationGetSupportEmailResponse( + ::_pbi::ConstantInitialized) + : email_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct OrganizationGetSupportEmailResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR OrganizationGetSupportEmailResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~OrganizationGetSupportEmailResponseDefaultTypeInternal() {} union { - ListRegistryItemsRequest _instance; + OrganizationGetSupportEmailResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListRegistryItemsRequestDefaultTypeInternal _ListRegistryItemsRequest_default_instance_; - template -PROTOBUF_CONSTEXPR ListOrganizationsRequest::ListOrganizationsRequest(::_pbi::ConstantInitialized) {} -struct ListOrganizationsRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR ListOrganizationsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ListOrganizationsRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OrganizationGetSupportEmailResponseDefaultTypeInternal _OrganizationGetSupportEmailResponse_default_instance_; +PROTOBUF_CONSTEXPR OrganizationIdentity::OrganizationIdentity( + ::_pbi::ConstantInitialized) + : id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct OrganizationIdentityDefaultTypeInternal { + PROTOBUF_CONSTEXPR OrganizationIdentityDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~OrganizationIdentityDefaultTypeInternal() {} union { - ListOrganizationsRequest _instance; + OrganizationIdentity _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListOrganizationsRequestDefaultTypeInternal _ListOrganizationsRequest_default_instance_; - -inline constexpr ListOrganizationsByUserRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : user_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR ListOrganizationsByUserRequest::ListOrganizationsByUserRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ListOrganizationsByUserRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR ListOrganizationsByUserRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ListOrganizationsByUserRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OrganizationIdentityDefaultTypeInternal _OrganizationIdentity_default_instance_; +PROTOBUF_CONSTEXPR LocationOrganization::LocationOrganization( + ::_pbi::ConstantInitialized) + : organization_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , primary_(false){} +struct LocationOrganizationDefaultTypeInternal { + PROTOBUF_CONSTEXPR LocationOrganizationDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~LocationOrganizationDefaultTypeInternal() {} union { - ListOrganizationsByUserRequest _instance; + LocationOrganization _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListOrganizationsByUserRequestDefaultTypeInternal _ListOrganizationsByUserRequest_default_instance_; - -inline constexpr ListOrganizationMembersRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : organization_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR ListOrganizationMembersRequest::ListOrganizationMembersRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ListOrganizationMembersRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR ListOrganizationMembersRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ListOrganizationMembersRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LocationOrganizationDefaultTypeInternal _LocationOrganization_default_instance_; +PROTOBUF_CONSTEXPR LocationAuth::LocationAuth( + ::_pbi::ConstantInitialized) + : secrets_() + , secret_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , location_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct LocationAuthDefaultTypeInternal { + PROTOBUF_CONSTEXPR LocationAuthDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~LocationAuthDefaultTypeInternal() {} union { - ListOrganizationMembersRequest _instance; + LocationAuth _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListOrganizationMembersRequestDefaultTypeInternal _ListOrganizationMembersRequest_default_instance_; - -inline constexpr ListModulesRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - organization_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()) {} - -template -PROTOBUF_CONSTEXPR ListModulesRequest::ListModulesRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ListModulesRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR ListModulesRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ListModulesRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LocationAuthDefaultTypeInternal _LocationAuth_default_instance_; +PROTOBUF_CONSTEXPR StorageConfig::StorageConfig( + ::_pbi::ConstantInitialized) + : region_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct StorageConfigDefaultTypeInternal { + PROTOBUF_CONSTEXPR StorageConfigDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StorageConfigDefaultTypeInternal() {} union { - ListModulesRequest _instance; + StorageConfig _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListModulesRequestDefaultTypeInternal _ListModulesRequest_default_instance_; - -inline constexpr ListMachineFragmentsRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : additional_fragment_ids_{}, - machine_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR ListMachineFragmentsRequest::ListMachineFragmentsRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ListMachineFragmentsRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR ListMachineFragmentsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ListMachineFragmentsRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StorageConfigDefaultTypeInternal _StorageConfig_default_instance_; +PROTOBUF_CONSTEXPR Location::Location( + ::_pbi::ConstantInitialized) + : organizations_() + , id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , parent_location_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , created_on_(nullptr) + , auth_(nullptr) + , config_(nullptr) + , robot_count_(0){} +struct LocationDefaultTypeInternal { + PROTOBUF_CONSTEXPR LocationDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~LocationDefaultTypeInternal() {} union { - ListMachineFragmentsRequest _instance; + Location _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListMachineFragmentsRequestDefaultTypeInternal _ListMachineFragmentsRequest_default_instance_; - -inline constexpr ListLocationsRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : organization_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR ListLocationsRequest::ListLocationsRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ListLocationsRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR ListLocationsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ListLocationsRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LocationDefaultTypeInternal _Location_default_instance_; +PROTOBUF_CONSTEXPR SharedSecret::SharedSecret( + ::_pbi::ConstantInitialized) + : id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , secret_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , created_on_(nullptr) + , state_(0) +{} +struct SharedSecretDefaultTypeInternal { + PROTOBUF_CONSTEXPR SharedSecretDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SharedSecretDefaultTypeInternal() {} union { - ListLocationsRequest _instance; + SharedSecret _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListLocationsRequestDefaultTypeInternal _ListLocationsRequest_default_instance_; - -inline constexpr ListKeysRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : org_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR ListKeysRequest::ListKeysRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ListKeysRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR ListKeysRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ListKeysRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharedSecretDefaultTypeInternal _SharedSecret_default_instance_; +PROTOBUF_CONSTEXPR CreateLocationRequest::CreateLocationRequest( + ::_pbi::ConstantInitialized) + : organization_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , parent_location_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct CreateLocationRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR CreateLocationRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CreateLocationRequestDefaultTypeInternal() {} union { - ListKeysRequest _instance; + CreateLocationRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListKeysRequestDefaultTypeInternal _ListKeysRequest_default_instance_; - -inline constexpr ListFragmentsRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : fragment_visibility_{}, - _fragment_visibility_cached_byte_size_{0}, - organization_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - show_public_{false}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR ListFragmentsRequest::ListFragmentsRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ListFragmentsRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR ListFragmentsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ListFragmentsRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateLocationRequestDefaultTypeInternal _CreateLocationRequest_default_instance_; +PROTOBUF_CONSTEXPR CreateLocationResponse::CreateLocationResponse( + ::_pbi::ConstantInitialized) + : location_(nullptr){} +struct CreateLocationResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR CreateLocationResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CreateLocationResponseDefaultTypeInternal() {} union { - ListFragmentsRequest _instance; + CreateLocationResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListFragmentsRequestDefaultTypeInternal _ListFragmentsRequest_default_instance_; - -inline constexpr ListAuthorizationsRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : resource_ids_{}, - organization_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR ListAuthorizationsRequest::ListAuthorizationsRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ListAuthorizationsRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR ListAuthorizationsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ListAuthorizationsRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateLocationResponseDefaultTypeInternal _CreateLocationResponse_default_instance_; +PROTOBUF_CONSTEXPR GetLocationRequest::GetLocationRequest( + ::_pbi::ConstantInitialized) + : location_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct GetLocationRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetLocationRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetLocationRequestDefaultTypeInternal() {} union { - ListAuthorizationsRequest _instance; + GetLocationRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListAuthorizationsRequestDefaultTypeInternal _ListAuthorizationsRequest_default_instance_; - -inline constexpr GetUserIDByEmailResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : user_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetUserIDByEmailResponse::GetUserIDByEmailResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetUserIDByEmailResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetUserIDByEmailResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetUserIDByEmailResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetLocationRequestDefaultTypeInternal _GetLocationRequest_default_instance_; +PROTOBUF_CONSTEXPR GetLocationResponse::GetLocationResponse( + ::_pbi::ConstantInitialized) + : location_(nullptr){} +struct GetLocationResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetLocationResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetLocationResponseDefaultTypeInternal() {} union { - GetUserIDByEmailResponse _instance; + GetLocationResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetUserIDByEmailResponseDefaultTypeInternal _GetUserIDByEmailResponse_default_instance_; - -inline constexpr GetUserIDByEmailRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : email_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetUserIDByEmailRequest::GetUserIDByEmailRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetUserIDByEmailRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetUserIDByEmailRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetUserIDByEmailRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetLocationResponseDefaultTypeInternal _GetLocationResponse_default_instance_; +PROTOBUF_CONSTEXPR UpdateLocationRequest::UpdateLocationRequest( + ::_pbi::ConstantInitialized) + : location_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , parent_location_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , region_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct UpdateLocationRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR UpdateLocationRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~UpdateLocationRequestDefaultTypeInternal() {} union { - GetUserIDByEmailRequest _instance; + UpdateLocationRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetUserIDByEmailRequestDefaultTypeInternal _GetUserIDByEmailRequest_default_instance_; - -inline constexpr GetRoverRentalRobotsRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : org_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetRoverRentalRobotsRequest::GetRoverRentalRobotsRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetRoverRentalRobotsRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetRoverRentalRobotsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetRoverRentalRobotsRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateLocationRequestDefaultTypeInternal _UpdateLocationRequest_default_instance_; +PROTOBUF_CONSTEXPR UpdateLocationResponse::UpdateLocationResponse( + ::_pbi::ConstantInitialized) + : location_(nullptr){} +struct UpdateLocationResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR UpdateLocationResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~UpdateLocationResponseDefaultTypeInternal() {} union { - GetRoverRentalRobotsRequest _instance; + UpdateLocationResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetRoverRentalRobotsRequestDefaultTypeInternal _GetRoverRentalRobotsRequest_default_instance_; - -inline constexpr GetRobotRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetRobotRequest::GetRobotRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetRobotRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetRobotRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetRobotRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateLocationResponseDefaultTypeInternal _UpdateLocationResponse_default_instance_; +PROTOBUF_CONSTEXPR DeleteLocationRequest::DeleteLocationRequest( + ::_pbi::ConstantInitialized) + : location_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct DeleteLocationRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR DeleteLocationRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DeleteLocationRequestDefaultTypeInternal() {} union { - GetRobotRequest _instance; + DeleteLocationRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetRobotRequestDefaultTypeInternal _GetRobotRequest_default_instance_; - -inline constexpr GetRobotPartsRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : robot_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetRobotPartsRequest::GetRobotPartsRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetRobotPartsRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetRobotPartsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetRobotPartsRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteLocationRequestDefaultTypeInternal _DeleteLocationRequest_default_instance_; +PROTOBUF_CONSTEXPR DeleteLocationResponse::DeleteLocationResponse( + ::_pbi::ConstantInitialized){} +struct DeleteLocationResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR DeleteLocationResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DeleteLocationResponseDefaultTypeInternal() {} union { - GetRobotPartsRequest _instance; + DeleteLocationResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetRobotPartsRequestDefaultTypeInternal _GetRobotPartsRequest_default_instance_; - -inline constexpr GetRobotPartRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetRobotPartRequest::GetRobotPartRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetRobotPartRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetRobotPartRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetRobotPartRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteLocationResponseDefaultTypeInternal _DeleteLocationResponse_default_instance_; +PROTOBUF_CONSTEXPR GetOrganizationsWithAccessToLocationRequest::GetOrganizationsWithAccessToLocationRequest( + ::_pbi::ConstantInitialized) + : location_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct GetOrganizationsWithAccessToLocationRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetOrganizationsWithAccessToLocationRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetOrganizationsWithAccessToLocationRequestDefaultTypeInternal() {} union { - GetRobotPartRequest _instance; + GetOrganizationsWithAccessToLocationRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetRobotPartRequestDefaultTypeInternal _GetRobotPartRequest_default_instance_; - -inline constexpr GetRobotPartHistoryRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetRobotPartHistoryRequest::GetRobotPartHistoryRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetRobotPartHistoryRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetRobotPartHistoryRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetRobotPartHistoryRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetOrganizationsWithAccessToLocationRequestDefaultTypeInternal _GetOrganizationsWithAccessToLocationRequest_default_instance_; +PROTOBUF_CONSTEXPR GetOrganizationsWithAccessToLocationResponse::GetOrganizationsWithAccessToLocationResponse( + ::_pbi::ConstantInitialized) + : organization_identities_(){} +struct GetOrganizationsWithAccessToLocationResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetOrganizationsWithAccessToLocationResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetOrganizationsWithAccessToLocationResponseDefaultTypeInternal() {} union { - GetRobotPartHistoryRequest _instance; + GetOrganizationsWithAccessToLocationResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetRobotPartHistoryRequestDefaultTypeInternal _GetRobotPartHistoryRequest_default_instance_; - -inline constexpr GetRobotAPIKeysRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : robot_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetRobotAPIKeysRequest::GetRobotAPIKeysRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetRobotAPIKeysRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetRobotAPIKeysRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetRobotAPIKeysRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetOrganizationsWithAccessToLocationResponseDefaultTypeInternal _GetOrganizationsWithAccessToLocationResponse_default_instance_; +PROTOBUF_CONSTEXPR ListLocationsRequest::ListLocationsRequest( + ::_pbi::ConstantInitialized) + : organization_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct ListLocationsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR ListLocationsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ListLocationsRequestDefaultTypeInternal() {} union { - GetRobotAPIKeysRequest _instance; + ListLocationsRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetRobotAPIKeysRequestDefaultTypeInternal _GetRobotAPIKeysRequest_default_instance_; - -inline constexpr GetRegistryItemRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : item_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetRegistryItemRequest::GetRegistryItemRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetRegistryItemRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetRegistryItemRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetRegistryItemRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListLocationsRequestDefaultTypeInternal _ListLocationsRequest_default_instance_; +PROTOBUF_CONSTEXPR ShareLocationRequest::ShareLocationRequest( + ::_pbi::ConstantInitialized) + : location_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , organization_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct ShareLocationRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR ShareLocationRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ShareLocationRequestDefaultTypeInternal() {} union { - GetRegistryItemRequest _instance; + ShareLocationRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetRegistryItemRequestDefaultTypeInternal _GetRegistryItemRequest_default_instance_; - -inline constexpr GetOrganizationsWithAccessToLocationRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : location_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetOrganizationsWithAccessToLocationRequest::GetOrganizationsWithAccessToLocationRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetOrganizationsWithAccessToLocationRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetOrganizationsWithAccessToLocationRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetOrganizationsWithAccessToLocationRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ShareLocationRequestDefaultTypeInternal _ShareLocationRequest_default_instance_; +PROTOBUF_CONSTEXPR ShareLocationResponse::ShareLocationResponse( + ::_pbi::ConstantInitialized){} +struct ShareLocationResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ShareLocationResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ShareLocationResponseDefaultTypeInternal() {} union { - GetOrganizationsWithAccessToLocationRequest _instance; + ShareLocationResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetOrganizationsWithAccessToLocationRequestDefaultTypeInternal _GetOrganizationsWithAccessToLocationRequest_default_instance_; - -inline constexpr GetOrganizationRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : organization_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetOrganizationRequest::GetOrganizationRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetOrganizationRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetOrganizationRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetOrganizationRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ShareLocationResponseDefaultTypeInternal _ShareLocationResponse_default_instance_; +PROTOBUF_CONSTEXPR UnshareLocationRequest::UnshareLocationRequest( + ::_pbi::ConstantInitialized) + : location_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , organization_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct UnshareLocationRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR UnshareLocationRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~UnshareLocationRequestDefaultTypeInternal() {} union { - GetOrganizationRequest _instance; + UnshareLocationRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetOrganizationRequestDefaultTypeInternal _GetOrganizationRequest_default_instance_; - -inline constexpr GetOrganizationNamespaceAvailabilityResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : available_{false}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetOrganizationNamespaceAvailabilityResponse::GetOrganizationNamespaceAvailabilityResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetOrganizationNamespaceAvailabilityResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetOrganizationNamespaceAvailabilityResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetOrganizationNamespaceAvailabilityResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UnshareLocationRequestDefaultTypeInternal _UnshareLocationRequest_default_instance_; +PROTOBUF_CONSTEXPR UnshareLocationResponse::UnshareLocationResponse( + ::_pbi::ConstantInitialized){} +struct UnshareLocationResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR UnshareLocationResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~UnshareLocationResponseDefaultTypeInternal() {} union { - GetOrganizationNamespaceAvailabilityResponse _instance; + UnshareLocationResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetOrganizationNamespaceAvailabilityResponseDefaultTypeInternal _GetOrganizationNamespaceAvailabilityResponse_default_instance_; - -inline constexpr GetOrganizationNamespaceAvailabilityRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : public_namespace_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetOrganizationNamespaceAvailabilityRequest::GetOrganizationNamespaceAvailabilityRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetOrganizationNamespaceAvailabilityRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetOrganizationNamespaceAvailabilityRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetOrganizationNamespaceAvailabilityRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UnshareLocationResponseDefaultTypeInternal _UnshareLocationResponse_default_instance_; +PROTOBUF_CONSTEXPR ListLocationsResponse::ListLocationsResponse( + ::_pbi::ConstantInitialized) + : locations_(){} +struct ListLocationsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ListLocationsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ListLocationsResponseDefaultTypeInternal() {} union { - GetOrganizationNamespaceAvailabilityRequest _instance; + ListLocationsResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetOrganizationNamespaceAvailabilityRequestDefaultTypeInternal _GetOrganizationNamespaceAvailabilityRequest_default_instance_; - -inline constexpr GetModuleRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : module_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetModuleRequest::GetModuleRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetModuleRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetModuleRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetModuleRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListLocationsResponseDefaultTypeInternal _ListLocationsResponse_default_instance_; +PROTOBUF_CONSTEXPR CreateLocationSecretRequest::CreateLocationSecretRequest( + ::_pbi::ConstantInitialized) + : location_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct CreateLocationSecretRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR CreateLocationSecretRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CreateLocationSecretRequestDefaultTypeInternal() {} union { - GetModuleRequest _instance; + CreateLocationSecretRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetModuleRequestDefaultTypeInternal _GetModuleRequest_default_instance_; - -inline constexpr GetLocationRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : location_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetLocationRequest::GetLocationRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetLocationRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetLocationRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetLocationRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateLocationSecretRequestDefaultTypeInternal _CreateLocationSecretRequest_default_instance_; +PROTOBUF_CONSTEXPR CreateLocationSecretResponse::CreateLocationSecretResponse( + ::_pbi::ConstantInitialized) + : auth_(nullptr){} +struct CreateLocationSecretResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR CreateLocationSecretResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CreateLocationSecretResponseDefaultTypeInternal() {} union { - GetLocationRequest _instance; + CreateLocationSecretResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetLocationRequestDefaultTypeInternal _GetLocationRequest_default_instance_; - -inline constexpr GetFragmentRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetFragmentRequest::GetFragmentRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetFragmentRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetFragmentRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetFragmentRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateLocationSecretResponseDefaultTypeInternal _CreateLocationSecretResponse_default_instance_; +PROTOBUF_CONSTEXPR DeleteLocationSecretRequest::DeleteLocationSecretRequest( + ::_pbi::ConstantInitialized) + : location_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , secret_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct DeleteLocationSecretRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR DeleteLocationSecretRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DeleteLocationSecretRequestDefaultTypeInternal() {} union { - GetFragmentRequest _instance; + DeleteLocationSecretRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetFragmentRequestDefaultTypeInternal _GetFragmentRequest_default_instance_; - -inline constexpr GetFragmentHistoryRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - page_token_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - page_limit_{::int64_t{0}} {} - -template -PROTOBUF_CONSTEXPR GetFragmentHistoryRequest::GetFragmentHistoryRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetFragmentHistoryRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetFragmentHistoryRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetFragmentHistoryRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteLocationSecretRequestDefaultTypeInternal _DeleteLocationSecretRequest_default_instance_; +PROTOBUF_CONSTEXPR DeleteLocationSecretResponse::DeleteLocationSecretResponse( + ::_pbi::ConstantInitialized){} +struct DeleteLocationSecretResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR DeleteLocationSecretResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DeleteLocationSecretResponseDefaultTypeInternal() {} union { - GetFragmentHistoryRequest _instance; + DeleteLocationSecretResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetFragmentHistoryRequestDefaultTypeInternal _GetFragmentHistoryRequest_default_instance_; - -inline constexpr GetBillingServiceConfigRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : org_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetBillingServiceConfigRequest::GetBillingServiceConfigRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetBillingServiceConfigRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetBillingServiceConfigRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetBillingServiceConfigRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteLocationSecretResponseDefaultTypeInternal _DeleteLocationSecretResponse_default_instance_; +PROTOBUF_CONSTEXPR LocationAuthRequest::LocationAuthRequest( + ::_pbi::ConstantInitialized) + : location_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct LocationAuthRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR LocationAuthRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~LocationAuthRequestDefaultTypeInternal() {} union { - GetBillingServiceConfigRequest _instance; + LocationAuthRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetBillingServiceConfigRequestDefaultTypeInternal _GetBillingServiceConfigRequest_default_instance_; - -inline constexpr FragmentError::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : fragment_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - detail_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - error_type_{static_cast< ::viam::app::v1::FragmentErrorType >(0)}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR FragmentError::FragmentError(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct FragmentErrorDefaultTypeInternal { - PROTOBUF_CONSTEXPR FragmentErrorDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~FragmentErrorDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LocationAuthRequestDefaultTypeInternal _LocationAuthRequest_default_instance_; +PROTOBUF_CONSTEXPR LocationAuthResponse::LocationAuthResponse( + ::_pbi::ConstantInitialized) + : auth_(nullptr){} +struct LocationAuthResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR LocationAuthResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~LocationAuthResponseDefaultTypeInternal() {} union { - FragmentError _instance; + LocationAuthResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FragmentErrorDefaultTypeInternal _FragmentError_default_instance_; - template -PROTOBUF_CONSTEXPR EnableBillingServiceResponse::EnableBillingServiceResponse(::_pbi::ConstantInitialized) {} -struct EnableBillingServiceResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR EnableBillingServiceResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~EnableBillingServiceResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LocationAuthResponseDefaultTypeInternal _LocationAuthResponse_default_instance_; +PROTOBUF_CONSTEXPR GetRobotRequest::GetRobotRequest( + ::_pbi::ConstantInitialized) + : id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct GetRobotRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetRobotRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetRobotRequestDefaultTypeInternal() {} union { - EnableBillingServiceResponse _instance; + GetRobotRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EnableBillingServiceResponseDefaultTypeInternal _EnableBillingServiceResponse_default_instance_; - template -PROTOBUF_CONSTEXPR DisableBillingServiceResponse::DisableBillingServiceResponse(::_pbi::ConstantInitialized) {} -struct DisableBillingServiceResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR DisableBillingServiceResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~DisableBillingServiceResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetRobotRequestDefaultTypeInternal _GetRobotRequest_default_instance_; +PROTOBUF_CONSTEXPR GetRoverRentalRobotsRequest::GetRoverRentalRobotsRequest( + ::_pbi::ConstantInitialized) + : org_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct GetRoverRentalRobotsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetRoverRentalRobotsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetRoverRentalRobotsRequestDefaultTypeInternal() {} union { - DisableBillingServiceResponse _instance; + GetRoverRentalRobotsRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DisableBillingServiceResponseDefaultTypeInternal _DisableBillingServiceResponse_default_instance_; - -inline constexpr DisableBillingServiceRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : org_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR DisableBillingServiceRequest::DisableBillingServiceRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct DisableBillingServiceRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR DisableBillingServiceRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~DisableBillingServiceRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetRoverRentalRobotsRequestDefaultTypeInternal _GetRoverRentalRobotsRequest_default_instance_; +PROTOBUF_CONSTEXPR RoverRentalRobot::RoverRentalRobot( + ::_pbi::ConstantInitialized) + : robot_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , location_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , robot_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , robot_main_part_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct RoverRentalRobotDefaultTypeInternal { + PROTOBUF_CONSTEXPR RoverRentalRobotDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RoverRentalRobotDefaultTypeInternal() {} union { - DisableBillingServiceRequest _instance; + RoverRentalRobot _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DisableBillingServiceRequestDefaultTypeInternal _DisableBillingServiceRequest_default_instance_; - template -PROTOBUF_CONSTEXPR DeleteRobotResponse::DeleteRobotResponse(::_pbi::ConstantInitialized) {} -struct DeleteRobotResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR DeleteRobotResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~DeleteRobotResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RoverRentalRobotDefaultTypeInternal _RoverRentalRobot_default_instance_; +PROTOBUF_CONSTEXPR GetRoverRentalRobotsResponse::GetRoverRentalRobotsResponse( + ::_pbi::ConstantInitialized) + : robots_(){} +struct GetRoverRentalRobotsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetRoverRentalRobotsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetRoverRentalRobotsResponseDefaultTypeInternal() {} union { - DeleteRobotResponse _instance; + GetRoverRentalRobotsResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteRobotResponseDefaultTypeInternal _DeleteRobotResponse_default_instance_; - -inline constexpr DeleteRobotRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR DeleteRobotRequest::DeleteRobotRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct DeleteRobotRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR DeleteRobotRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~DeleteRobotRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetRoverRentalRobotsResponseDefaultTypeInternal _GetRoverRentalRobotsResponse_default_instance_; +PROTOBUF_CONSTEXPR GetRobotResponse::GetRobotResponse( + ::_pbi::ConstantInitialized) + : robot_(nullptr){} +struct GetRobotResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetRobotResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetRobotResponseDefaultTypeInternal() {} union { - DeleteRobotRequest _instance; + GetRobotResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteRobotRequestDefaultTypeInternal _DeleteRobotRequest_default_instance_; - template -PROTOBUF_CONSTEXPR DeleteRobotPartSecretResponse::DeleteRobotPartSecretResponse(::_pbi::ConstantInitialized) {} -struct DeleteRobotPartSecretResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR DeleteRobotPartSecretResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~DeleteRobotPartSecretResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetRobotResponseDefaultTypeInternal _GetRobotResponse_default_instance_; +PROTOBUF_CONSTEXPR GetRobotPartsRequest::GetRobotPartsRequest( + ::_pbi::ConstantInitialized) + : robot_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct GetRobotPartsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetRobotPartsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetRobotPartsRequestDefaultTypeInternal() {} union { - DeleteRobotPartSecretResponse _instance; + GetRobotPartsRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteRobotPartSecretResponseDefaultTypeInternal _DeleteRobotPartSecretResponse_default_instance_; - -inline constexpr DeleteRobotPartSecretRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : part_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - secret_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR DeleteRobotPartSecretRequest::DeleteRobotPartSecretRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct DeleteRobotPartSecretRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR DeleteRobotPartSecretRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~DeleteRobotPartSecretRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetRobotPartsRequestDefaultTypeInternal _GetRobotPartsRequest_default_instance_; +PROTOBUF_CONSTEXPR GetRobotPartsResponse::GetRobotPartsResponse( + ::_pbi::ConstantInitialized) + : parts_(){} +struct GetRobotPartsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetRobotPartsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetRobotPartsResponseDefaultTypeInternal() {} union { - DeleteRobotPartSecretRequest _instance; + GetRobotPartsResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteRobotPartSecretRequestDefaultTypeInternal _DeleteRobotPartSecretRequest_default_instance_; - template -PROTOBUF_CONSTEXPR DeleteRobotPartResponse::DeleteRobotPartResponse(::_pbi::ConstantInitialized) {} -struct DeleteRobotPartResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR DeleteRobotPartResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~DeleteRobotPartResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetRobotPartsResponseDefaultTypeInternal _GetRobotPartsResponse_default_instance_; +PROTOBUF_CONSTEXPR GetRobotPartRequest::GetRobotPartRequest( + ::_pbi::ConstantInitialized) + : id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct GetRobotPartRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetRobotPartRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetRobotPartRequestDefaultTypeInternal() {} union { - DeleteRobotPartResponse _instance; + GetRobotPartRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteRobotPartResponseDefaultTypeInternal _DeleteRobotPartResponse_default_instance_; - -inline constexpr DeleteRobotPartRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : part_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR DeleteRobotPartRequest::DeleteRobotPartRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct DeleteRobotPartRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR DeleteRobotPartRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~DeleteRobotPartRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetRobotPartRequestDefaultTypeInternal _GetRobotPartRequest_default_instance_; +PROTOBUF_CONSTEXPR GetRobotPartResponse::GetRobotPartResponse( + ::_pbi::ConstantInitialized) + : config_json_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , part_(nullptr){} +struct GetRobotPartResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetRobotPartResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetRobotPartResponseDefaultTypeInternal() {} union { - DeleteRobotPartRequest _instance; + GetRobotPartResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteRobotPartRequestDefaultTypeInternal _DeleteRobotPartRequest_default_instance_; - template -PROTOBUF_CONSTEXPR DeleteRegistryItemResponse::DeleteRegistryItemResponse(::_pbi::ConstantInitialized) {} -struct DeleteRegistryItemResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR DeleteRegistryItemResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~DeleteRegistryItemResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetRobotPartResponseDefaultTypeInternal _GetRobotPartResponse_default_instance_; +PROTOBUF_CONSTEXPR GetRobotPartLogsRequest::GetRobotPartLogsRequest( + ::_pbi::ConstantInitialized) + : levels_() + , id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , filter_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , page_token_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , source_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , start_(nullptr) + , end_(nullptr) + , limit_(int64_t{0}) + , errors_only_(false){} +struct GetRobotPartLogsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetRobotPartLogsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetRobotPartLogsRequestDefaultTypeInternal() {} union { - DeleteRegistryItemResponse _instance; + GetRobotPartLogsRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteRegistryItemResponseDefaultTypeInternal _DeleteRegistryItemResponse_default_instance_; - -inline constexpr DeleteRegistryItemRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : item_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR DeleteRegistryItemRequest::DeleteRegistryItemRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct DeleteRegistryItemRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR DeleteRegistryItemRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~DeleteRegistryItemRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetRobotPartLogsRequestDefaultTypeInternal _GetRobotPartLogsRequest_default_instance_; +PROTOBUF_CONSTEXPR GetRobotPartLogsResponse::GetRobotPartLogsResponse( + ::_pbi::ConstantInitialized) + : logs_() + , next_page_token_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct GetRobotPartLogsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetRobotPartLogsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetRobotPartLogsResponseDefaultTypeInternal() {} union { - DeleteRegistryItemRequest _instance; + GetRobotPartLogsResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteRegistryItemRequestDefaultTypeInternal _DeleteRegistryItemRequest_default_instance_; - template -PROTOBUF_CONSTEXPR DeleteOrganizationResponse::DeleteOrganizationResponse(::_pbi::ConstantInitialized) {} -struct DeleteOrganizationResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR DeleteOrganizationResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~DeleteOrganizationResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetRobotPartLogsResponseDefaultTypeInternal _GetRobotPartLogsResponse_default_instance_; +PROTOBUF_CONSTEXPR TailRobotPartLogsRequest::TailRobotPartLogsRequest( + ::_pbi::ConstantInitialized) + : id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , filter_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , errors_only_(false){} +struct TailRobotPartLogsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR TailRobotPartLogsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~TailRobotPartLogsRequestDefaultTypeInternal() {} union { - DeleteOrganizationResponse _instance; + TailRobotPartLogsRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteOrganizationResponseDefaultTypeInternal _DeleteOrganizationResponse_default_instance_; - -inline constexpr DeleteOrganizationRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : organization_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR DeleteOrganizationRequest::DeleteOrganizationRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct DeleteOrganizationRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR DeleteOrganizationRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~DeleteOrganizationRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TailRobotPartLogsRequestDefaultTypeInternal _TailRobotPartLogsRequest_default_instance_; +PROTOBUF_CONSTEXPR TailRobotPartLogsResponse::TailRobotPartLogsResponse( + ::_pbi::ConstantInitialized) + : logs_(){} +struct TailRobotPartLogsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR TailRobotPartLogsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~TailRobotPartLogsResponseDefaultTypeInternal() {} union { - DeleteOrganizationRequest _instance; + TailRobotPartLogsResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteOrganizationRequestDefaultTypeInternal _DeleteOrganizationRequest_default_instance_; - template -PROTOBUF_CONSTEXPR DeleteOrganizationMemberResponse::DeleteOrganizationMemberResponse(::_pbi::ConstantInitialized) {} -struct DeleteOrganizationMemberResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR DeleteOrganizationMemberResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~DeleteOrganizationMemberResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TailRobotPartLogsResponseDefaultTypeInternal _TailRobotPartLogsResponse_default_instance_; +PROTOBUF_CONSTEXPR GetRobotPartHistoryRequest::GetRobotPartHistoryRequest( + ::_pbi::ConstantInitialized) + : id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct GetRobotPartHistoryRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetRobotPartHistoryRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetRobotPartHistoryRequestDefaultTypeInternal() {} union { - DeleteOrganizationMemberResponse _instance; + GetRobotPartHistoryRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteOrganizationMemberResponseDefaultTypeInternal _DeleteOrganizationMemberResponse_default_instance_; - -inline constexpr DeleteOrganizationMemberRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : organization_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - user_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR DeleteOrganizationMemberRequest::DeleteOrganizationMemberRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct DeleteOrganizationMemberRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR DeleteOrganizationMemberRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~DeleteOrganizationMemberRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetRobotPartHistoryRequestDefaultTypeInternal _GetRobotPartHistoryRequest_default_instance_; +PROTOBUF_CONSTEXPR GetRobotPartHistoryResponse::GetRobotPartHistoryResponse( + ::_pbi::ConstantInitialized) + : history_(){} +struct GetRobotPartHistoryResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetRobotPartHistoryResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetRobotPartHistoryResponseDefaultTypeInternal() {} union { - DeleteOrganizationMemberRequest _instance; + GetRobotPartHistoryResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteOrganizationMemberRequestDefaultTypeInternal _DeleteOrganizationMemberRequest_default_instance_; - template -PROTOBUF_CONSTEXPR DeleteOrganizationInviteResponse::DeleteOrganizationInviteResponse(::_pbi::ConstantInitialized) {} -struct DeleteOrganizationInviteResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR DeleteOrganizationInviteResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~DeleteOrganizationInviteResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetRobotPartHistoryResponseDefaultTypeInternal _GetRobotPartHistoryResponse_default_instance_; +PROTOBUF_CONSTEXPR UpdateRobotPartRequest::UpdateRobotPartRequest( + ::_pbi::ConstantInitialized) + : id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , robot_config_(nullptr){} +struct UpdateRobotPartRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR UpdateRobotPartRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~UpdateRobotPartRequestDefaultTypeInternal() {} union { - DeleteOrganizationInviteResponse _instance; + UpdateRobotPartRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteOrganizationInviteResponseDefaultTypeInternal _DeleteOrganizationInviteResponse_default_instance_; - -inline constexpr DeleteOrganizationInviteRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : organization_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - email_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR DeleteOrganizationInviteRequest::DeleteOrganizationInviteRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct DeleteOrganizationInviteRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR DeleteOrganizationInviteRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~DeleteOrganizationInviteRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateRobotPartRequestDefaultTypeInternal _UpdateRobotPartRequest_default_instance_; +PROTOBUF_CONSTEXPR UpdateRobotPartResponse::UpdateRobotPartResponse( + ::_pbi::ConstantInitialized) + : part_(nullptr){} +struct UpdateRobotPartResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR UpdateRobotPartResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~UpdateRobotPartResponseDefaultTypeInternal() {} union { - DeleteOrganizationInviteRequest _instance; + UpdateRobotPartResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteOrganizationInviteRequestDefaultTypeInternal _DeleteOrganizationInviteRequest_default_instance_; - template -PROTOBUF_CONSTEXPR DeleteLocationSecretResponse::DeleteLocationSecretResponse(::_pbi::ConstantInitialized) {} -struct DeleteLocationSecretResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR DeleteLocationSecretResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~DeleteLocationSecretResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateRobotPartResponseDefaultTypeInternal _UpdateRobotPartResponse_default_instance_; +PROTOBUF_CONSTEXPR NewRobotPartRequest::NewRobotPartRequest( + ::_pbi::ConstantInitialized) + : robot_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , part_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct NewRobotPartRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR NewRobotPartRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~NewRobotPartRequestDefaultTypeInternal() {} union { - DeleteLocationSecretResponse _instance; + NewRobotPartRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteLocationSecretResponseDefaultTypeInternal _DeleteLocationSecretResponse_default_instance_; - -inline constexpr DeleteLocationSecretRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : location_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - secret_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR DeleteLocationSecretRequest::DeleteLocationSecretRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct DeleteLocationSecretRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR DeleteLocationSecretRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~DeleteLocationSecretRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NewRobotPartRequestDefaultTypeInternal _NewRobotPartRequest_default_instance_; +PROTOBUF_CONSTEXPR NewRobotPartResponse::NewRobotPartResponse( + ::_pbi::ConstantInitialized) + : part_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct NewRobotPartResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR NewRobotPartResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~NewRobotPartResponseDefaultTypeInternal() {} union { - DeleteLocationSecretRequest _instance; + NewRobotPartResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteLocationSecretRequestDefaultTypeInternal _DeleteLocationSecretRequest_default_instance_; - template -PROTOBUF_CONSTEXPR DeleteLocationResponse::DeleteLocationResponse(::_pbi::ConstantInitialized) {} -struct DeleteLocationResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR DeleteLocationResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~DeleteLocationResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NewRobotPartResponseDefaultTypeInternal _NewRobotPartResponse_default_instance_; +PROTOBUF_CONSTEXPR DeleteRobotPartRequest::DeleteRobotPartRequest( + ::_pbi::ConstantInitialized) + : part_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct DeleteRobotPartRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR DeleteRobotPartRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DeleteRobotPartRequestDefaultTypeInternal() {} union { - DeleteLocationResponse _instance; + DeleteRobotPartRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteLocationResponseDefaultTypeInternal _DeleteLocationResponse_default_instance_; - -inline constexpr DeleteLocationRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : location_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR DeleteLocationRequest::DeleteLocationRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct DeleteLocationRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR DeleteLocationRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~DeleteLocationRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteRobotPartRequestDefaultTypeInternal _DeleteRobotPartRequest_default_instance_; +PROTOBUF_CONSTEXPR GetRobotAPIKeysRequest::GetRobotAPIKeysRequest( + ::_pbi::ConstantInitialized) + : robot_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct GetRobotAPIKeysRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetRobotAPIKeysRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetRobotAPIKeysRequestDefaultTypeInternal() {} union { - DeleteLocationRequest _instance; + GetRobotAPIKeysRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteLocationRequestDefaultTypeInternal _DeleteLocationRequest_default_instance_; - template -PROTOBUF_CONSTEXPR DeleteKeyResponse::DeleteKeyResponse(::_pbi::ConstantInitialized) {} -struct DeleteKeyResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR DeleteKeyResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~DeleteKeyResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetRobotAPIKeysRequestDefaultTypeInternal _GetRobotAPIKeysRequest_default_instance_; +PROTOBUF_CONSTEXPR APIKey::APIKey( + ::_pbi::ConstantInitialized) + : id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , key_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , created_on_(nullptr){} +struct APIKeyDefaultTypeInternal { + PROTOBUF_CONSTEXPR APIKeyDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~APIKeyDefaultTypeInternal() {} union { - DeleteKeyResponse _instance; + APIKey _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteKeyResponseDefaultTypeInternal _DeleteKeyResponse_default_instance_; - -inline constexpr DeleteKeyRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR DeleteKeyRequest::DeleteKeyRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct DeleteKeyRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR DeleteKeyRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~DeleteKeyRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 APIKeyDefaultTypeInternal _APIKey_default_instance_; +PROTOBUF_CONSTEXPR GetRobotAPIKeysResponse::GetRobotAPIKeysResponse( + ::_pbi::ConstantInitialized) + : api_keys_(){} +struct GetRobotAPIKeysResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetRobotAPIKeysResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetRobotAPIKeysResponseDefaultTypeInternal() {} union { - DeleteKeyRequest _instance; + GetRobotAPIKeysResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteKeyRequestDefaultTypeInternal _DeleteKeyRequest_default_instance_; - template -PROTOBUF_CONSTEXPR DeleteFragmentResponse::DeleteFragmentResponse(::_pbi::ConstantInitialized) {} -struct DeleteFragmentResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR DeleteFragmentResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~DeleteFragmentResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetRobotAPIKeysResponseDefaultTypeInternal _GetRobotAPIKeysResponse_default_instance_; +PROTOBUF_CONSTEXPR DeleteRobotPartResponse::DeleteRobotPartResponse( + ::_pbi::ConstantInitialized){} +struct DeleteRobotPartResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR DeleteRobotPartResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DeleteRobotPartResponseDefaultTypeInternal() {} union { - DeleteFragmentResponse _instance; + DeleteRobotPartResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteFragmentResponseDefaultTypeInternal _DeleteFragmentResponse_default_instance_; - -inline constexpr DeleteFragmentRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR DeleteFragmentRequest::DeleteFragmentRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct DeleteFragmentRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR DeleteFragmentRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~DeleteFragmentRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteRobotPartResponseDefaultTypeInternal _DeleteRobotPartResponse_default_instance_; +PROTOBUF_CONSTEXPR Fragment::Fragment( + ::_pbi::ConstantInitialized) + : id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , organization_owner_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , organization_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , fragment_(nullptr) + , created_on_(nullptr) + , last_updated_(nullptr) + , public__(false) + , only_used_by_owner_(false) + , robot_part_count_(0) + , organization_count_(0) + , visibility_(0) +{} +struct FragmentDefaultTypeInternal { + PROTOBUF_CONSTEXPR FragmentDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~FragmentDefaultTypeInternal() {} union { - DeleteFragmentRequest _instance; + Fragment _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteFragmentRequestDefaultTypeInternal _DeleteFragmentRequest_default_instance_; - -inline constexpr CreateRobotPartSecretRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : part_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR CreateRobotPartSecretRequest::CreateRobotPartSecretRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct CreateRobotPartSecretRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR CreateRobotPartSecretRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CreateRobotPartSecretRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FragmentDefaultTypeInternal _Fragment_default_instance_; +PROTOBUF_CONSTEXPR FragmentHistoryEntry::FragmentHistoryEntry( + ::_pbi::ConstantInitialized) + : fragment_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , revision_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , edited_on_(nullptr) + , old_(nullptr) + , edited_by_(nullptr) + , config_(nullptr){} +struct FragmentHistoryEntryDefaultTypeInternal { + PROTOBUF_CONSTEXPR FragmentHistoryEntryDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~FragmentHistoryEntryDefaultTypeInternal() {} union { - CreateRobotPartSecretRequest _instance; + FragmentHistoryEntry _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateRobotPartSecretRequestDefaultTypeInternal _CreateRobotPartSecretRequest_default_instance_; - template -PROTOBUF_CONSTEXPR CreateRegistryItemResponse::CreateRegistryItemResponse(::_pbi::ConstantInitialized) {} -struct CreateRegistryItemResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR CreateRegistryItemResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CreateRegistryItemResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FragmentHistoryEntryDefaultTypeInternal _FragmentHistoryEntry_default_instance_; +PROTOBUF_CONSTEXPR FragmentError::FragmentError( + ::_pbi::ConstantInitialized) + : fragment_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , detail_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , error_type_(0) +{} +struct FragmentErrorDefaultTypeInternal { + PROTOBUF_CONSTEXPR FragmentErrorDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~FragmentErrorDefaultTypeInternal() {} union { - CreateRegistryItemResponse _instance; + FragmentError _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateRegistryItemResponseDefaultTypeInternal _CreateRegistryItemResponse_default_instance_; - -inline constexpr CreateRegistryItemRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : organization_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - type_{static_cast< ::viam::app::packages::v1::PackageType >(0)}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR CreateRegistryItemRequest::CreateRegistryItemRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct CreateRegistryItemRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR CreateRegistryItemRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CreateRegistryItemRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FragmentErrorDefaultTypeInternal _FragmentError_default_instance_; +PROTOBUF_CONSTEXPR FragmentUsage::FragmentUsage( + ::_pbi::ConstantInitialized) + : fragment_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , organizations_(0) + , machines_(0) + , machines_in_current_org_(0){} +struct FragmentUsageDefaultTypeInternal { + PROTOBUF_CONSTEXPR FragmentUsageDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~FragmentUsageDefaultTypeInternal() {} union { - CreateRegistryItemRequest _instance; + FragmentUsage _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateRegistryItemRequestDefaultTypeInternal _CreateRegistryItemRequest_default_instance_; - -inline constexpr CreateOrganizationRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR CreateOrganizationRequest::CreateOrganizationRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct CreateOrganizationRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR CreateOrganizationRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CreateOrganizationRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FragmentUsageDefaultTypeInternal _FragmentUsage_default_instance_; +PROTOBUF_CONSTEXPR ResolvedFragment::ResolvedFragment( + ::_pbi::ConstantInitialized) + : fragment_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , resolved_config_(nullptr) + , error_(nullptr){} +struct ResolvedFragmentDefaultTypeInternal { + PROTOBUF_CONSTEXPR ResolvedFragmentDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ResolvedFragmentDefaultTypeInternal() {} union { - CreateOrganizationRequest _instance; + ResolvedFragment _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateOrganizationRequestDefaultTypeInternal _CreateOrganizationRequest_default_instance_; - -inline constexpr CreateModuleResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : module_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - url_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR CreateModuleResponse::CreateModuleResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct CreateModuleResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR CreateModuleResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CreateModuleResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResolvedFragmentDefaultTypeInternal _ResolvedFragment_default_instance_; +PROTOBUF_CONSTEXPR ListFragmentsRequest::ListFragmentsRequest( + ::_pbi::ConstantInitialized) + : fragment_visibility_() + , _fragment_visibility_cached_byte_size_(0) + , organization_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , show_public_(false){} +struct ListFragmentsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR ListFragmentsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ListFragmentsRequestDefaultTypeInternal() {} union { - CreateModuleResponse _instance; + ListFragmentsRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateModuleResponseDefaultTypeInternal _CreateModuleResponse_default_instance_; - -inline constexpr CreateModuleRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : organization_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR CreateModuleRequest::CreateModuleRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct CreateModuleRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR CreateModuleRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CreateModuleRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListFragmentsRequestDefaultTypeInternal _ListFragmentsRequest_default_instance_; +PROTOBUF_CONSTEXPR ListFragmentsResponse::ListFragmentsResponse( + ::_pbi::ConstantInitialized) + : fragments_() + , fragment_usages_(){} +struct ListFragmentsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ListFragmentsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ListFragmentsResponseDefaultTypeInternal() {} union { - CreateModuleRequest _instance; + ListFragmentsResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateModuleRequestDefaultTypeInternal _CreateModuleRequest_default_instance_; - -inline constexpr CreateLocationSecretRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : location_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR CreateLocationSecretRequest::CreateLocationSecretRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct CreateLocationSecretRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR CreateLocationSecretRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CreateLocationSecretRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListFragmentsResponseDefaultTypeInternal _ListFragmentsResponse_default_instance_; +PROTOBUF_CONSTEXPR GetFragmentRequest::GetFragmentRequest( + ::_pbi::ConstantInitialized) + : id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , current_organization_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct GetFragmentRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetFragmentRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetFragmentRequestDefaultTypeInternal() {} union { - CreateLocationSecretRequest _instance; + GetFragmentRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateLocationSecretRequestDefaultTypeInternal _CreateLocationSecretRequest_default_instance_; - -inline constexpr CreateLocationRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - organization_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - parent_location_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()) {} - -template -PROTOBUF_CONSTEXPR CreateLocationRequest::CreateLocationRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct CreateLocationRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR CreateLocationRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CreateLocationRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetFragmentRequestDefaultTypeInternal _GetFragmentRequest_default_instance_; +PROTOBUF_CONSTEXPR GetFragmentResponse::GetFragmentResponse( + ::_pbi::ConstantInitialized) + : fragment_(nullptr) + , fragment_usage_(nullptr){} +struct GetFragmentResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetFragmentResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetFragmentResponseDefaultTypeInternal() {} union { - CreateLocationRequest _instance; + GetFragmentResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateLocationRequestDefaultTypeInternal _CreateLocationRequest_default_instance_; - -inline constexpr CreateKeyResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : key_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR CreateKeyResponse::CreateKeyResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct CreateKeyResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR CreateKeyResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CreateKeyResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetFragmentResponseDefaultTypeInternal _GetFragmentResponse_default_instance_; +PROTOBUF_CONSTEXPR CreateFragmentRequest::CreateFragmentRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , organization_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , config_(nullptr) + , visibility_(0) +{} +struct CreateFragmentRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR CreateFragmentRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CreateFragmentRequestDefaultTypeInternal() {} union { - CreateKeyResponse _instance; + CreateFragmentRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateKeyResponseDefaultTypeInternal _CreateKeyResponse_default_instance_; - -inline constexpr CreateKeyFromExistingKeyAuthorizationsResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - key_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR CreateKeyFromExistingKeyAuthorizationsResponse::CreateKeyFromExistingKeyAuthorizationsResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct CreateKeyFromExistingKeyAuthorizationsResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR CreateKeyFromExistingKeyAuthorizationsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CreateKeyFromExistingKeyAuthorizationsResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateFragmentRequestDefaultTypeInternal _CreateFragmentRequest_default_instance_; +PROTOBUF_CONSTEXPR CreateFragmentResponse::CreateFragmentResponse( + ::_pbi::ConstantInitialized) + : fragment_(nullptr){} +struct CreateFragmentResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR CreateFragmentResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CreateFragmentResponseDefaultTypeInternal() {} union { - CreateKeyFromExistingKeyAuthorizationsResponse _instance; + CreateFragmentResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateKeyFromExistingKeyAuthorizationsResponseDefaultTypeInternal _CreateKeyFromExistingKeyAuthorizationsResponse_default_instance_; - -inline constexpr CreateKeyFromExistingKeyAuthorizationsRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR CreateKeyFromExistingKeyAuthorizationsRequest::CreateKeyFromExistingKeyAuthorizationsRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct CreateKeyFromExistingKeyAuthorizationsRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR CreateKeyFromExistingKeyAuthorizationsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CreateKeyFromExistingKeyAuthorizationsRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateFragmentResponseDefaultTypeInternal _CreateFragmentResponse_default_instance_; +PROTOBUF_CONSTEXPR UpdateFragmentRequest::UpdateFragmentRequest( + ::_pbi::ConstantInitialized) + : id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , config_(nullptr) + , public__(false) + , visibility_(0) +{} +struct UpdateFragmentRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR UpdateFragmentRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~UpdateFragmentRequestDefaultTypeInternal() {} union { - CreateKeyFromExistingKeyAuthorizationsRequest _instance; + UpdateFragmentRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateKeyFromExistingKeyAuthorizationsRequestDefaultTypeInternal _CreateKeyFromExistingKeyAuthorizationsRequest_default_instance_; - template -PROTOBUF_CONSTEXPR ChangeRoleResponse::ChangeRoleResponse(::_pbi::ConstantInitialized) {} -struct ChangeRoleResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ChangeRoleResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ChangeRoleResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateFragmentRequestDefaultTypeInternal _UpdateFragmentRequest_default_instance_; +PROTOBUF_CONSTEXPR UpdateFragmentResponse::UpdateFragmentResponse( + ::_pbi::ConstantInitialized) + : fragment_(nullptr){} +struct UpdateFragmentResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR UpdateFragmentResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~UpdateFragmentResponseDefaultTypeInternal() {} union { - ChangeRoleResponse _instance; + UpdateFragmentResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChangeRoleResponseDefaultTypeInternal _ChangeRoleResponse_default_instance_; - -inline constexpr BillingAddress::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - address_line_1_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - address_line_2_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - city_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - state_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - zipcode_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()) {} - -template -PROTOBUF_CONSTEXPR BillingAddress::BillingAddress(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct BillingAddressDefaultTypeInternal { - PROTOBUF_CONSTEXPR BillingAddressDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~BillingAddressDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateFragmentResponseDefaultTypeInternal _UpdateFragmentResponse_default_instance_; +PROTOBUF_CONSTEXPR DeleteFragmentRequest::DeleteFragmentRequest( + ::_pbi::ConstantInitialized) + : id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct DeleteFragmentRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR DeleteFragmentRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DeleteFragmentRequestDefaultTypeInternal() {} union { - BillingAddress _instance; + DeleteFragmentRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BillingAddressDefaultTypeInternal _BillingAddress_default_instance_; - -inline constexpr AuthorizedPermissions::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : permissions_{}, - resource_type_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - resource_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR AuthorizedPermissions::AuthorizedPermissions(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct AuthorizedPermissionsDefaultTypeInternal { - PROTOBUF_CONSTEXPR AuthorizedPermissionsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AuthorizedPermissionsDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteFragmentRequestDefaultTypeInternal _DeleteFragmentRequest_default_instance_; +PROTOBUF_CONSTEXPR DeleteFragmentResponse::DeleteFragmentResponse( + ::_pbi::ConstantInitialized){} +struct DeleteFragmentResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR DeleteFragmentResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DeleteFragmentResponseDefaultTypeInternal() {} union { - AuthorizedPermissions _instance; + DeleteFragmentResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AuthorizedPermissionsDefaultTypeInternal _AuthorizedPermissions_default_instance_; - -inline constexpr AuthorizationDetails::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : authorization_type_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - authorization_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - resource_type_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - resource_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - org_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR AuthorizationDetails::AuthorizationDetails(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct AuthorizationDetailsDefaultTypeInternal { - PROTOBUF_CONSTEXPR AuthorizationDetailsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AuthorizationDetailsDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteFragmentResponseDefaultTypeInternal _DeleteFragmentResponse_default_instance_; +PROTOBUF_CONSTEXPR GetFragmentHistoryRequest::GetFragmentHistoryRequest( + ::_pbi::ConstantInitialized) + : id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , page_token_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , page_limit_(int64_t{0}){} +struct GetFragmentHistoryRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetFragmentHistoryRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetFragmentHistoryRequestDefaultTypeInternal() {} union { - AuthorizationDetails _instance; + GetFragmentHistoryRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AuthorizationDetailsDefaultTypeInternal _AuthorizationDetails_default_instance_; - -inline constexpr Authorization::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : authorization_type_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - authorization_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - resource_type_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - resource_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - identity_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - organization_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - identity_type_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR Authorization::Authorization(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct AuthorizationDefaultTypeInternal { - PROTOBUF_CONSTEXPR AuthorizationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AuthorizationDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetFragmentHistoryRequestDefaultTypeInternal _GetFragmentHistoryRequest_default_instance_; +PROTOBUF_CONSTEXPR GetFragmentHistoryResponse::GetFragmentHistoryResponse( + ::_pbi::ConstantInitialized) + : history_() + , next_page_token_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct GetFragmentHistoryResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetFragmentHistoryResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetFragmentHistoryResponseDefaultTypeInternal() {} union { - Authorization _instance; + GetFragmentHistoryResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AuthorizationDefaultTypeInternal _Authorization_default_instance_; - -inline constexpr AuthenticatorInfo::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : value_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - type_{static_cast< ::viam::app::v1::AuthenticationType >(0)}, - is_deactivated_{false}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR AuthenticatorInfo::AuthenticatorInfo(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct AuthenticatorInfoDefaultTypeInternal { - PROTOBUF_CONSTEXPR AuthenticatorInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AuthenticatorInfoDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetFragmentHistoryResponseDefaultTypeInternal _GetFragmentHistoryResponse_default_instance_; +PROTOBUF_CONSTEXPR ListRobotsRequest::ListRobotsRequest( + ::_pbi::ConstantInitialized) + : location_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct ListRobotsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR ListRobotsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ListRobotsRequestDefaultTypeInternal() {} union { - AuthenticatorInfo _instance; + ListRobotsRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AuthenticatorInfoDefaultTypeInternal _AuthenticatorInfo_default_instance_; - template -PROTOBUF_CONSTEXPR AddRoleResponse::AddRoleResponse(::_pbi::ConstantInitialized) {} -struct AddRoleResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR AddRoleResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AddRoleResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListRobotsRequestDefaultTypeInternal _ListRobotsRequest_default_instance_; +PROTOBUF_CONSTEXPR ListMachineFragmentsRequest::ListMachineFragmentsRequest( + ::_pbi::ConstantInitialized) + : additional_fragment_ids_() + , machine_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct ListMachineFragmentsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR ListMachineFragmentsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ListMachineFragmentsRequestDefaultTypeInternal() {} union { - AddRoleResponse _instance; + ListMachineFragmentsRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AddRoleResponseDefaultTypeInternal _AddRoleResponse_default_instance_; - -inline constexpr Uploads::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - platform_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - uploaded_at_{nullptr} {} - -template -PROTOBUF_CONSTEXPR Uploads::Uploads(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct UploadsDefaultTypeInternal { - PROTOBUF_CONSTEXPR UploadsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~UploadsDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListMachineFragmentsRequestDefaultTypeInternal _ListMachineFragmentsRequest_default_instance_; +PROTOBUF_CONSTEXPR ListMachineFragmentsResponse::ListMachineFragmentsResponse( + ::_pbi::ConstantInitialized) + : fragments_() + , resolved_fragments_(){} +struct ListMachineFragmentsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ListMachineFragmentsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ListMachineFragmentsResponseDefaultTypeInternal() {} union { - Uploads _instance; + ListMachineFragmentsResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UploadsDefaultTypeInternal _Uploads_default_instance_; - -inline constexpr UploadModuleFileRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : module_file_{}, - _cached_size_{0}, - _oneof_case_{} {} - -template -PROTOBUF_CONSTEXPR UploadModuleFileRequest::UploadModuleFileRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct UploadModuleFileRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR UploadModuleFileRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~UploadModuleFileRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListMachineFragmentsResponseDefaultTypeInternal _ListMachineFragmentsResponse_default_instance_; +PROTOBUF_CONSTEXPR ListRobotsResponse::ListRobotsResponse( + ::_pbi::ConstantInitialized) + : robots_(){} +struct ListRobotsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ListRobotsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ListRobotsResponseDefaultTypeInternal() {} union { - UploadModuleFileRequest _instance; + ListRobotsResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UploadModuleFileRequestDefaultTypeInternal _UploadModuleFileRequest_default_instance_; - -inline constexpr UpdateRobotPartRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - robot_config_{nullptr} {} - -template -PROTOBUF_CONSTEXPR UpdateRobotPartRequest::UpdateRobotPartRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct UpdateRobotPartRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR UpdateRobotPartRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~UpdateRobotPartRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListRobotsResponseDefaultTypeInternal _ListRobotsResponse_default_instance_; +PROTOBUF_CONSTEXPR NewRobotRequest::NewRobotRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , location_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct NewRobotRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR NewRobotRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~NewRobotRequestDefaultTypeInternal() {} union { - UpdateRobotPartRequest _instance; + NewRobotRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateRobotPartRequestDefaultTypeInternal _UpdateRobotPartRequest_default_instance_; - -inline constexpr UpdateOrganizationInviteAuthorizationsRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : add_authorizations_{}, - remove_authorizations_{}, - organization_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - email_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR UpdateOrganizationInviteAuthorizationsRequest::UpdateOrganizationInviteAuthorizationsRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct UpdateOrganizationInviteAuthorizationsRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR UpdateOrganizationInviteAuthorizationsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~UpdateOrganizationInviteAuthorizationsRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NewRobotRequestDefaultTypeInternal _NewRobotRequest_default_instance_; +PROTOBUF_CONSTEXPR NewRobotResponse::NewRobotResponse( + ::_pbi::ConstantInitialized) + : id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct NewRobotResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR NewRobotResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~NewRobotResponseDefaultTypeInternal() {} union { - UpdateOrganizationInviteAuthorizationsRequest _instance; + NewRobotResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateOrganizationInviteAuthorizationsRequestDefaultTypeInternal _UpdateOrganizationInviteAuthorizationsRequest_default_instance_; - -inline constexpr UpdateModuleRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - models_{}, - module_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - url_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - description_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - entrypoint_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - first_run_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - visibility_{static_cast< ::viam::app::v1::Visibility >(0)} {} - -template -PROTOBUF_CONSTEXPR UpdateModuleRequest::UpdateModuleRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct UpdateModuleRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR UpdateModuleRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~UpdateModuleRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NewRobotResponseDefaultTypeInternal _NewRobotResponse_default_instance_; +PROTOBUF_CONSTEXPR UpdateRobotRequest::UpdateRobotRequest( + ::_pbi::ConstantInitialized) + : id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , location_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct UpdateRobotRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR UpdateRobotRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~UpdateRobotRequestDefaultTypeInternal() {} union { - UpdateModuleRequest _instance; + UpdateRobotRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateModuleRequestDefaultTypeInternal _UpdateModuleRequest_default_instance_; - -inline constexpr UpdateFragmentRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - config_{nullptr}, - public__{false}, - visibility_{static_cast< ::viam::app::v1::FragmentVisibility >(0)} {} - -template -PROTOBUF_CONSTEXPR UpdateFragmentRequest::UpdateFragmentRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct UpdateFragmentRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR UpdateFragmentRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~UpdateFragmentRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateRobotRequestDefaultTypeInternal _UpdateRobotRequest_default_instance_; +PROTOBUF_CONSTEXPR UpdateRobotResponse::UpdateRobotResponse( + ::_pbi::ConstantInitialized) + : robot_(nullptr){} +struct UpdateRobotResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR UpdateRobotResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~UpdateRobotResponseDefaultTypeInternal() {} union { - UpdateFragmentRequest _instance; + UpdateRobotResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateFragmentRequestDefaultTypeInternal _UpdateFragmentRequest_default_instance_; - -inline constexpr UpdateBillingServiceRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - org_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - billing_address_{nullptr} {} - -template -PROTOBUF_CONSTEXPR UpdateBillingServiceRequest::UpdateBillingServiceRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct UpdateBillingServiceRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR UpdateBillingServiceRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~UpdateBillingServiceRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateRobotResponseDefaultTypeInternal _UpdateRobotResponse_default_instance_; +PROTOBUF_CONSTEXPR DeleteRobotRequest::DeleteRobotRequest( + ::_pbi::ConstantInitialized) + : id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct DeleteRobotRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR DeleteRobotRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DeleteRobotRequestDefaultTypeInternal() {} union { - UpdateBillingServiceRequest _instance; + DeleteRobotRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateBillingServiceRequestDefaultTypeInternal _UpdateBillingServiceRequest_default_instance_; - -inline constexpr SharedSecret::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - secret_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - created_on_{nullptr}, - state_{static_cast< ::viam::app::v1::SharedSecret_State >(0)} {} - -template -PROTOBUF_CONSTEXPR SharedSecret::SharedSecret(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct SharedSecretDefaultTypeInternal { - PROTOBUF_CONSTEXPR SharedSecretDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SharedSecretDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteRobotRequestDefaultTypeInternal _DeleteRobotRequest_default_instance_; +PROTOBUF_CONSTEXPR DeleteRobotResponse::DeleteRobotResponse( + ::_pbi::ConstantInitialized){} +struct DeleteRobotResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR DeleteRobotResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DeleteRobotResponseDefaultTypeInternal() {} union { - SharedSecret _instance; + DeleteRobotResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharedSecretDefaultTypeInternal _SharedSecret_default_instance_; - -inline constexpr Robot::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - location_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - last_access_{nullptr}, - created_on_{nullptr} {} - -template -PROTOBUF_CONSTEXPR Robot::Robot(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct RobotDefaultTypeInternal { - PROTOBUF_CONSTEXPR RobotDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RobotDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteRobotResponseDefaultTypeInternal _DeleteRobotResponse_default_instance_; +PROTOBUF_CONSTEXPR MarkPartAsMainRequest::MarkPartAsMainRequest( + ::_pbi::ConstantInitialized) + : part_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct MarkPartAsMainRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR MarkPartAsMainRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~MarkPartAsMainRequestDefaultTypeInternal() {} union { - Robot _instance; + MarkPartAsMainRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RobotDefaultTypeInternal _Robot_default_instance_; - -inline constexpr ResolvedFragment::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - fragment_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - resolved_config_{nullptr}, - error_{nullptr} {} - -template -PROTOBUF_CONSTEXPR ResolvedFragment::ResolvedFragment(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ResolvedFragmentDefaultTypeInternal { - PROTOBUF_CONSTEXPR ResolvedFragmentDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ResolvedFragmentDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MarkPartAsMainRequestDefaultTypeInternal _MarkPartAsMainRequest_default_instance_; +PROTOBUF_CONSTEXPR MarkPartAsMainResponse::MarkPartAsMainResponse( + ::_pbi::ConstantInitialized){} +struct MarkPartAsMainResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR MarkPartAsMainResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~MarkPartAsMainResponseDefaultTypeInternal() {} union { - ResolvedFragment _instance; + MarkPartAsMainResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResolvedFragmentDefaultTypeInternal _ResolvedFragment_default_instance_; - -inline constexpr RemoveRoleRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - authorization_{nullptr} {} - -template -PROTOBUF_CONSTEXPR RemoveRoleRequest::RemoveRoleRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct RemoveRoleRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR RemoveRoleRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RemoveRoleRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MarkPartAsMainResponseDefaultTypeInternal _MarkPartAsMainResponse_default_instance_; +PROTOBUF_CONSTEXPR MarkPartForRestartRequest::MarkPartForRestartRequest( + ::_pbi::ConstantInitialized) + : part_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct MarkPartForRestartRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR MarkPartForRestartRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~MarkPartForRestartRequestDefaultTypeInternal() {} union { - RemoveRoleRequest _instance; + MarkPartForRestartRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RemoveRoleRequestDefaultTypeInternal _RemoveRoleRequest_default_instance_; - -inline constexpr OrganizationMember::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - emails_{}, - user_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - date_added_{nullptr}, - last_login_{nullptr} {} - -template -PROTOBUF_CONSTEXPR OrganizationMember::OrganizationMember(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct OrganizationMemberDefaultTypeInternal { - PROTOBUF_CONSTEXPR OrganizationMemberDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~OrganizationMemberDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MarkPartForRestartRequestDefaultTypeInternal _MarkPartForRestartRequest_default_instance_; +PROTOBUF_CONSTEXPR MarkPartForRestartResponse::MarkPartForRestartResponse( + ::_pbi::ConstantInitialized){} +struct MarkPartForRestartResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR MarkPartForRestartResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~MarkPartForRestartResponseDefaultTypeInternal() {} union { - OrganizationMember _instance; + MarkPartForRestartResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OrganizationMemberDefaultTypeInternal _OrganizationMember_default_instance_; - -inline constexpr OrganizationInvite::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - authorizations_{}, - organization_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - email_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - created_on_{nullptr} {} - -template -PROTOBUF_CONSTEXPR OrganizationInvite::OrganizationInvite(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct OrganizationInviteDefaultTypeInternal { - PROTOBUF_CONSTEXPR OrganizationInviteDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~OrganizationInviteDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MarkPartForRestartResponseDefaultTypeInternal _MarkPartForRestartResponse_default_instance_; +PROTOBUF_CONSTEXPR CreateRobotPartSecretRequest::CreateRobotPartSecretRequest( + ::_pbi::ConstantInitialized) + : part_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct CreateRobotPartSecretRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR CreateRobotPartSecretRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CreateRobotPartSecretRequestDefaultTypeInternal() {} union { - OrganizationInvite _instance; + CreateRobotPartSecretRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OrganizationInviteDefaultTypeInternal _OrganizationInvite_default_instance_; - -inline constexpr Organization::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - public_namespace_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - default_region_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - cid_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - created_on_{nullptr} {} - -template -PROTOBUF_CONSTEXPR Organization::Organization(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct OrganizationDefaultTypeInternal { - PROTOBUF_CONSTEXPR OrganizationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~OrganizationDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateRobotPartSecretRequestDefaultTypeInternal _CreateRobotPartSecretRequest_default_instance_; +PROTOBUF_CONSTEXPR CreateRobotPartSecretResponse::CreateRobotPartSecretResponse( + ::_pbi::ConstantInitialized) + : part_(nullptr){} +struct CreateRobotPartSecretResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR CreateRobotPartSecretResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CreateRobotPartSecretResponseDefaultTypeInternal() {} union { - Organization _instance; + CreateRobotPartSecretResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OrganizationDefaultTypeInternal _Organization_default_instance_; - -inline constexpr MLTrainingVersion::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - version_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - created_on_{nullptr} {} - -template -PROTOBUF_CONSTEXPR MLTrainingVersion::MLTrainingVersion(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct MLTrainingVersionDefaultTypeInternal { - PROTOBUF_CONSTEXPR MLTrainingVersionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~MLTrainingVersionDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateRobotPartSecretResponseDefaultTypeInternal _CreateRobotPartSecretResponse_default_instance_; +PROTOBUF_CONSTEXPR DeleteRobotPartSecretRequest::DeleteRobotPartSecretRequest( + ::_pbi::ConstantInitialized) + : part_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , secret_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct DeleteRobotPartSecretRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR DeleteRobotPartSecretRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DeleteRobotPartSecretRequestDefaultTypeInternal() {} union { - MLTrainingVersion _instance; + DeleteRobotPartSecretRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MLTrainingVersionDefaultTypeInternal _MLTrainingVersion_default_instance_; - -inline constexpr ListOrganizationsByUserResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : orgs_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR ListOrganizationsByUserResponse::ListOrganizationsByUserResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ListOrganizationsByUserResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ListOrganizationsByUserResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ListOrganizationsByUserResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteRobotPartSecretRequestDefaultTypeInternal _DeleteRobotPartSecretRequest_default_instance_; +PROTOBUF_CONSTEXPR DeleteRobotPartSecretResponse::DeleteRobotPartSecretResponse( + ::_pbi::ConstantInitialized){} +struct DeleteRobotPartSecretResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR DeleteRobotPartSecretResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DeleteRobotPartSecretResponseDefaultTypeInternal() {} union { - ListOrganizationsByUserResponse _instance; + DeleteRobotPartSecretResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListOrganizationsByUserResponseDefaultTypeInternal _ListOrganizationsByUserResponse_default_instance_; - -inline constexpr ListAuthorizationsResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : authorizations_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR ListAuthorizationsResponse::ListAuthorizationsResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ListAuthorizationsResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ListAuthorizationsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ListAuthorizationsResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteRobotPartSecretResponseDefaultTypeInternal _DeleteRobotPartSecretResponse_default_instance_; +PROTOBUF_CONSTEXPR Authorization::Authorization( + ::_pbi::ConstantInitialized) + : authorization_type_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , authorization_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , resource_type_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , resource_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , identity_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , organization_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , identity_type_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct AuthorizationDefaultTypeInternal { + PROTOBUF_CONSTEXPR AuthorizationDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AuthorizationDefaultTypeInternal() {} union { - ListAuthorizationsResponse _instance; + Authorization _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListAuthorizationsResponseDefaultTypeInternal _ListAuthorizationsResponse_default_instance_; - -inline constexpr GetRoverRentalRobotsResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : robots_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetRoverRentalRobotsResponse::GetRoverRentalRobotsResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetRoverRentalRobotsResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetRoverRentalRobotsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetRoverRentalRobotsResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AuthorizationDefaultTypeInternal _Authorization_default_instance_; +PROTOBUF_CONSTEXPR AddRoleRequest::AddRoleRequest( + ::_pbi::ConstantInitialized) + : authorization_(nullptr){} +struct AddRoleRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR AddRoleRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AddRoleRequestDefaultTypeInternal() {} union { - GetRoverRentalRobotsResponse _instance; + AddRoleRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetRoverRentalRobotsResponseDefaultTypeInternal _GetRoverRentalRobotsResponse_default_instance_; - -inline constexpr GetRobotPartLogsRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - levels_{}, - id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - filter_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - page_token_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - source_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - start_{nullptr}, - end_{nullptr}, - limit_{::int64_t{0}}, - errors_only_{false} {} - -template -PROTOBUF_CONSTEXPR GetRobotPartLogsRequest::GetRobotPartLogsRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetRobotPartLogsRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetRobotPartLogsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetRobotPartLogsRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AddRoleRequestDefaultTypeInternal _AddRoleRequest_default_instance_; +PROTOBUF_CONSTEXPR AddRoleResponse::AddRoleResponse( + ::_pbi::ConstantInitialized){} +struct AddRoleResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR AddRoleResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AddRoleResponseDefaultTypeInternal() {} union { - GetRobotPartLogsRequest _instance; + AddRoleResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetRobotPartLogsRequestDefaultTypeInternal _GetRobotPartLogsRequest_default_instance_; - -inline constexpr GetOrganizationsWithAccessToLocationResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : organization_identities_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetOrganizationsWithAccessToLocationResponse::GetOrganizationsWithAccessToLocationResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetOrganizationsWithAccessToLocationResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetOrganizationsWithAccessToLocationResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetOrganizationsWithAccessToLocationResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AddRoleResponseDefaultTypeInternal _AddRoleResponse_default_instance_; +PROTOBUF_CONSTEXPR RemoveRoleRequest::RemoveRoleRequest( + ::_pbi::ConstantInitialized) + : authorization_(nullptr){} +struct RemoveRoleRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR RemoveRoleRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RemoveRoleRequestDefaultTypeInternal() {} union { - GetOrganizationsWithAccessToLocationResponse _instance; + RemoveRoleRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetOrganizationsWithAccessToLocationResponseDefaultTypeInternal _GetOrganizationsWithAccessToLocationResponse_default_instance_; - -inline constexpr GetBillingServiceConfigResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - support_email_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - logo_url_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - billing_dashboard_url_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - billing_address_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetBillingServiceConfigResponse::GetBillingServiceConfigResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetBillingServiceConfigResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetBillingServiceConfigResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetBillingServiceConfigResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RemoveRoleRequestDefaultTypeInternal _RemoveRoleRequest_default_instance_; +PROTOBUF_CONSTEXPR RemoveRoleResponse::RemoveRoleResponse( + ::_pbi::ConstantInitialized){} +struct RemoveRoleResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR RemoveRoleResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RemoveRoleResponseDefaultTypeInternal() {} union { - GetBillingServiceConfigResponse _instance; + RemoveRoleResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetBillingServiceConfigResponseDefaultTypeInternal _GetBillingServiceConfigResponse_default_instance_; - -inline constexpr Fragment::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - organization_owner_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - organization_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - fragment_{nullptr}, - created_on_{nullptr}, - last_updated_{nullptr}, - public__{false}, - only_used_by_owner_{false}, - robot_part_count_{0}, - organization_count_{0}, - visibility_{static_cast< ::viam::app::v1::FragmentVisibility >(0)} {} - -template -PROTOBUF_CONSTEXPR Fragment::Fragment(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct FragmentDefaultTypeInternal { - PROTOBUF_CONSTEXPR FragmentDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~FragmentDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RemoveRoleResponseDefaultTypeInternal _RemoveRoleResponse_default_instance_; +PROTOBUF_CONSTEXPR ChangeRoleRequest::ChangeRoleRequest( + ::_pbi::ConstantInitialized) + : old_authorization_(nullptr) + , new_authorization_(nullptr){} +struct ChangeRoleRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR ChangeRoleRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ChangeRoleRequestDefaultTypeInternal() {} union { - Fragment _instance; + ChangeRoleRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FragmentDefaultTypeInternal _Fragment_default_instance_; - -inline constexpr EnableBillingServiceRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - org_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - billing_address_{nullptr} {} - -template -PROTOBUF_CONSTEXPR EnableBillingServiceRequest::EnableBillingServiceRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct EnableBillingServiceRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR EnableBillingServiceRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~EnableBillingServiceRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChangeRoleRequestDefaultTypeInternal _ChangeRoleRequest_default_instance_; +PROTOBUF_CONSTEXPR ChangeRoleResponse::ChangeRoleResponse( + ::_pbi::ConstantInitialized){} +struct ChangeRoleResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ChangeRoleResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ChangeRoleResponseDefaultTypeInternal() {} union { - EnableBillingServiceRequest _instance; + ChangeRoleResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EnableBillingServiceRequestDefaultTypeInternal _EnableBillingServiceRequest_default_instance_; - -inline constexpr CreateOrganizationInviteRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - authorizations_{}, - organization_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - email_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - send_email_invite_{false} {} - -template -PROTOBUF_CONSTEXPR CreateOrganizationInviteRequest::CreateOrganizationInviteRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct CreateOrganizationInviteRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR CreateOrganizationInviteRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CreateOrganizationInviteRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChangeRoleResponseDefaultTypeInternal _ChangeRoleResponse_default_instance_; +PROTOBUF_CONSTEXPR ListAuthorizationsRequest::ListAuthorizationsRequest( + ::_pbi::ConstantInitialized) + : resource_ids_() + , organization_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct ListAuthorizationsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR ListAuthorizationsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ListAuthorizationsRequestDefaultTypeInternal() {} union { - CreateOrganizationInviteRequest _instance; + ListAuthorizationsRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateOrganizationInviteRequestDefaultTypeInternal _CreateOrganizationInviteRequest_default_instance_; - -inline constexpr CreateKeyRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : authorizations_{}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR CreateKeyRequest::CreateKeyRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct CreateKeyRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR CreateKeyRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CreateKeyRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListAuthorizationsRequestDefaultTypeInternal _ListAuthorizationsRequest_default_instance_; +PROTOBUF_CONSTEXPR ListAuthorizationsResponse::ListAuthorizationsResponse( + ::_pbi::ConstantInitialized) + : authorizations_(){} +struct ListAuthorizationsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ListAuthorizationsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ListAuthorizationsResponseDefaultTypeInternal() {} union { - CreateKeyRequest _instance; + ListAuthorizationsResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateKeyRequestDefaultTypeInternal _CreateKeyRequest_default_instance_; - -inline constexpr CreateFragmentRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - organization_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - config_{nullptr}, - visibility_{static_cast< ::viam::app::v1::FragmentVisibility >(0)} {} - -template -PROTOBUF_CONSTEXPR CreateFragmentRequest::CreateFragmentRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct CreateFragmentRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR CreateFragmentRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CreateFragmentRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListAuthorizationsResponseDefaultTypeInternal _ListAuthorizationsResponse_default_instance_; +PROTOBUF_CONSTEXPR CheckPermissionsRequest::CheckPermissionsRequest( + ::_pbi::ConstantInitialized) + : permissions_(){} +struct CheckPermissionsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR CheckPermissionsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CheckPermissionsRequestDefaultTypeInternal() {} union { - CreateFragmentRequest _instance; + CheckPermissionsRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateFragmentRequestDefaultTypeInternal _CreateFragmentRequest_default_instance_; - -inline constexpr CheckPermissionsResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : authorized_permissions_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR CheckPermissionsResponse::CheckPermissionsResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct CheckPermissionsResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR CheckPermissionsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CheckPermissionsResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CheckPermissionsRequestDefaultTypeInternal _CheckPermissionsRequest_default_instance_; +PROTOBUF_CONSTEXPR AuthorizedPermissions::AuthorizedPermissions( + ::_pbi::ConstantInitialized) + : permissions_() + , resource_type_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , resource_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct AuthorizedPermissionsDefaultTypeInternal { + PROTOBUF_CONSTEXPR AuthorizedPermissionsDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AuthorizedPermissionsDefaultTypeInternal() {} union { - CheckPermissionsResponse _instance; + AuthorizedPermissions _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CheckPermissionsResponseDefaultTypeInternal _CheckPermissionsResponse_default_instance_; - -inline constexpr CheckPermissionsRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : permissions_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR CheckPermissionsRequest::CheckPermissionsRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct CheckPermissionsRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR CheckPermissionsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CheckPermissionsRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AuthorizedPermissionsDefaultTypeInternal _AuthorizedPermissions_default_instance_; +PROTOBUF_CONSTEXPR CheckPermissionsResponse::CheckPermissionsResponse( + ::_pbi::ConstantInitialized) + : authorized_permissions_(){} +struct CheckPermissionsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR CheckPermissionsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CheckPermissionsResponseDefaultTypeInternal() {} union { - CheckPermissionsRequest _instance; + CheckPermissionsResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CheckPermissionsRequestDefaultTypeInternal _CheckPermissionsRequest_default_instance_; - -inline constexpr ChangeRoleRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - old_authorization_{nullptr}, - new_authorization_{nullptr} {} - -template -PROTOBUF_CONSTEXPR ChangeRoleRequest::ChangeRoleRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ChangeRoleRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR ChangeRoleRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ChangeRoleRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CheckPermissionsResponseDefaultTypeInternal _CheckPermissionsResponse_default_instance_; +PROTOBUF_CONSTEXPR ModuleVersion::ModuleVersion( + ::_pbi::ConstantInitialized) + : files_() + , models_() + , version_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , entrypoint_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , first_run_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct ModuleVersionDefaultTypeInternal { + PROTOBUF_CONSTEXPR ModuleVersionDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ModuleVersionDefaultTypeInternal() {} union { - ChangeRoleRequest _instance; + ModuleVersion _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChangeRoleRequestDefaultTypeInternal _ChangeRoleRequest_default_instance_; - -inline constexpr AddRoleRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - authorization_{nullptr} {} - -template -PROTOBUF_CONSTEXPR AddRoleRequest::AddRoleRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct AddRoleRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR AddRoleRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AddRoleRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ModuleVersionDefaultTypeInternal _ModuleVersion_default_instance_; +PROTOBUF_CONSTEXPR ModuleMetadata::ModuleMetadata( + ::_pbi::ConstantInitialized) + : models_() + , versions_() + , entrypoint_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , first_run_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct ModuleMetadataDefaultTypeInternal { + PROTOBUF_CONSTEXPR ModuleMetadataDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ModuleMetadataDefaultTypeInternal() {} union { - AddRoleRequest _instance; + ModuleMetadata _instance; }; }; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ModuleMetadataDefaultTypeInternal _ModuleMetadata_default_instance_; +PROTOBUF_CONSTEXPR MLModelMetadata::MLModelMetadata( + ::_pbi::ConstantInitialized) + : versions_() + , model_type_(0) -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AddRoleRequestDefaultTypeInternal _AddRoleRequest_default_instance_; - -inline constexpr APIKey::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - key_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - created_on_{nullptr} {} - -template -PROTOBUF_CONSTEXPR APIKey::APIKey(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct APIKeyDefaultTypeInternal { - PROTOBUF_CONSTEXPR APIKeyDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~APIKeyDefaultTypeInternal() {} + , model_framework_(0) +{} +struct MLModelMetadataDefaultTypeInternal { + PROTOBUF_CONSTEXPR MLModelMetadataDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~MLModelMetadataDefaultTypeInternal() {} union { - APIKey _instance; + MLModelMetadata _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 APIKeyDefaultTypeInternal _APIKey_default_instance_; - -inline constexpr VersionHistory::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - files_{}, - models_{}, - version_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - entrypoint_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - first_run_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()) {} - -template -PROTOBUF_CONSTEXPR VersionHistory::VersionHistory(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct VersionHistoryDefaultTypeInternal { - PROTOBUF_CONSTEXPR VersionHistoryDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~VersionHistoryDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MLModelMetadataDefaultTypeInternal _MLModelMetadata_default_instance_; +PROTOBUF_CONSTEXPR MLTrainingVersion::MLTrainingVersion( + ::_pbi::ConstantInitialized) + : version_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , created_on_(nullptr){} +struct MLTrainingVersionDefaultTypeInternal { + PROTOBUF_CONSTEXPR MLTrainingVersionDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~MLTrainingVersionDefaultTypeInternal() {} union { - VersionHistory _instance; + MLTrainingVersion _instance; }; }; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MLTrainingVersionDefaultTypeInternal _MLTrainingVersion_default_instance_; +PROTOBUF_CONSTEXPR MLTrainingMetadata::MLTrainingMetadata( + ::_pbi::ConstantInitialized) + : versions_() + , model_type_(0) -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 VersionHistoryDefaultTypeInternal _VersionHistory_default_instance_; + , model_framework_(0) -inline constexpr UpdateRobotResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - robot_{nullptr} {} - -template -PROTOBUF_CONSTEXPR UpdateRobotResponse::UpdateRobotResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct UpdateRobotResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR UpdateRobotResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~UpdateRobotResponseDefaultTypeInternal() {} + , draft_(false){} +struct MLTrainingMetadataDefaultTypeInternal { + PROTOBUF_CONSTEXPR MLTrainingMetadataDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~MLTrainingMetadataDefaultTypeInternal() {} union { - UpdateRobotResponse _instance; + MLTrainingMetadata _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateRobotResponseDefaultTypeInternal _UpdateRobotResponse_default_instance_; - -inline constexpr UpdateOrganizationResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - organization_{nullptr} {} - -template -PROTOBUF_CONSTEXPR UpdateOrganizationResponse::UpdateOrganizationResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct UpdateOrganizationResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR UpdateOrganizationResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~UpdateOrganizationResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MLTrainingMetadataDefaultTypeInternal _MLTrainingMetadata_default_instance_; +PROTOBUF_CONSTEXPR RegistryItem::RegistryItem( + ::_pbi::ConstantInitialized) + : item_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , organization_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , public_namespace_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , url_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , description_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , created_at_(nullptr) + , updated_at_(nullptr) + , type_(0) + + , visibility_(0) + + , total_robot_usage_(int64_t{0}) + , total_organization_usage_(int64_t{0}) + , total_external_robot_usage_(int64_t{0}) + , total_external_organization_usage_(int64_t{0}) + , _oneof_case_{}{} +struct RegistryItemDefaultTypeInternal { + PROTOBUF_CONSTEXPR RegistryItemDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RegistryItemDefaultTypeInternal() {} union { - UpdateOrganizationResponse _instance; + RegistryItem _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateOrganizationResponseDefaultTypeInternal _UpdateOrganizationResponse_default_instance_; - -inline constexpr UpdateOrganizationInviteAuthorizationsResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - invite_{nullptr} {} - -template -PROTOBUF_CONSTEXPR UpdateOrganizationInviteAuthorizationsResponse::UpdateOrganizationInviteAuthorizationsResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct UpdateOrganizationInviteAuthorizationsResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR UpdateOrganizationInviteAuthorizationsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~UpdateOrganizationInviteAuthorizationsResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RegistryItemDefaultTypeInternal _RegistryItem_default_instance_; +PROTOBUF_CONSTEXPR GetRegistryItemRequest::GetRegistryItemRequest( + ::_pbi::ConstantInitialized) + : item_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , include_markdown_documentation_(false){} +struct GetRegistryItemRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetRegistryItemRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetRegistryItemRequestDefaultTypeInternal() {} union { - UpdateOrganizationInviteAuthorizationsResponse _instance; + GetRegistryItemRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateOrganizationInviteAuthorizationsResponseDefaultTypeInternal _UpdateOrganizationInviteAuthorizationsResponse_default_instance_; - -inline constexpr UpdateFragmentResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - fragment_{nullptr} {} - -template -PROTOBUF_CONSTEXPR UpdateFragmentResponse::UpdateFragmentResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct UpdateFragmentResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR UpdateFragmentResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~UpdateFragmentResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetRegistryItemRequestDefaultTypeInternal _GetRegistryItemRequest_default_instance_; +PROTOBUF_CONSTEXPR GetRegistryItemResponse::GetRegistryItemResponse( + ::_pbi::ConstantInitialized) + : item_(nullptr){} +struct GetRegistryItemResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetRegistryItemResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetRegistryItemResponseDefaultTypeInternal() {} union { - UpdateFragmentResponse _instance; + GetRegistryItemResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateFragmentResponseDefaultTypeInternal _UpdateFragmentResponse_default_instance_; - -inline constexpr TailRobotPartLogsResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : logs_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR TailRobotPartLogsResponse::TailRobotPartLogsResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct TailRobotPartLogsResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR TailRobotPartLogsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TailRobotPartLogsResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetRegistryItemResponseDefaultTypeInternal _GetRegistryItemResponse_default_instance_; +PROTOBUF_CONSTEXPR CreateRegistryItemRequest::CreateRegistryItemRequest( + ::_pbi::ConstantInitialized) + : organization_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , type_(0) +{} +struct CreateRegistryItemRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR CreateRegistryItemRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CreateRegistryItemRequestDefaultTypeInternal() {} union { - TailRobotPartLogsResponse _instance; + CreateRegistryItemRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TailRobotPartLogsResponseDefaultTypeInternal _TailRobotPartLogsResponse_default_instance_; - -inline constexpr RobotPart::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - secrets_{}, - id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - secret_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - robot_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - fqdn_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - dns_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - local_fqdn_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - location_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - robot_config_{nullptr}, - last_access_{nullptr}, - user_supplied_info_{nullptr}, - created_on_{nullptr}, - last_updated_{nullptr}, - main_part_{false} {} - -template -PROTOBUF_CONSTEXPR RobotPart::RobotPart(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct RobotPartDefaultTypeInternal { - PROTOBUF_CONSTEXPR RobotPartDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RobotPartDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateRegistryItemRequestDefaultTypeInternal _CreateRegistryItemRequest_default_instance_; +PROTOBUF_CONSTEXPR CreateRegistryItemResponse::CreateRegistryItemResponse( + ::_pbi::ConstantInitialized){} +struct CreateRegistryItemResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR CreateRegistryItemResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CreateRegistryItemResponseDefaultTypeInternal() {} union { - RobotPart _instance; + CreateRegistryItemResponse _instance; }; }; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateRegistryItemResponseDefaultTypeInternal _CreateRegistryItemResponse_default_instance_; +PROTOBUF_CONSTEXPR UpdateRegistryItemRequest::UpdateRegistryItemRequest( + ::_pbi::ConstantInitialized) + : item_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , description_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , url_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , type_(0) -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RobotPartDefaultTypeInternal _RobotPart_default_instance_; + , visibility_(0) -inline constexpr ResendOrganizationInviteResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - invite_{nullptr} {} - -template -PROTOBUF_CONSTEXPR ResendOrganizationInviteResponse::ResendOrganizationInviteResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ResendOrganizationInviteResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ResendOrganizationInviteResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ResendOrganizationInviteResponseDefaultTypeInternal() {} + , _oneof_case_{}{} +struct UpdateRegistryItemRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR UpdateRegistryItemRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~UpdateRegistryItemRequestDefaultTypeInternal() {} union { - ResendOrganizationInviteResponse _instance; + UpdateRegistryItemRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResendOrganizationInviteResponseDefaultTypeInternal _ResendOrganizationInviteResponse_default_instance_; - -inline constexpr ModuleVersion::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - files_{}, - models_{}, - version_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - entrypoint_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - first_run_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()) {} - -template -PROTOBUF_CONSTEXPR ModuleVersion::ModuleVersion(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ModuleVersionDefaultTypeInternal { - PROTOBUF_CONSTEXPR ModuleVersionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ModuleVersionDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateRegistryItemRequestDefaultTypeInternal _UpdateRegistryItemRequest_default_instance_; +PROTOBUF_CONSTEXPR UpdateRegistryItemResponse::UpdateRegistryItemResponse( + ::_pbi::ConstantInitialized){} +struct UpdateRegistryItemResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR UpdateRegistryItemResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~UpdateRegistryItemResponseDefaultTypeInternal() {} union { - ModuleVersion _instance; + UpdateRegistryItemResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ModuleVersionDefaultTypeInternal _ModuleVersion_default_instance_; - -inline constexpr MLTrainingMetadata::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : versions_{}, - model_type_{static_cast< ::viam::app::mltraining::v1::ModelType >(0)}, - model_framework_{static_cast< ::viam::app::mltraining::v1::ModelFramework >(0)}, - draft_{false}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR MLTrainingMetadata::MLTrainingMetadata(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct MLTrainingMetadataDefaultTypeInternal { - PROTOBUF_CONSTEXPR MLTrainingMetadataDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~MLTrainingMetadataDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateRegistryItemResponseDefaultTypeInternal _UpdateRegistryItemResponse_default_instance_; +PROTOBUF_CONSTEXPR ListRegistryItemsRequest::ListRegistryItemsRequest( + ::_pbi::ConstantInitialized) + : types_() + , _types_cached_byte_size_(0) + , visibilities_() + , _visibilities_cached_byte_size_(0) + , platforms_() + , statuses_() + , _statuses_cached_byte_size_(0) + , public_namespaces_() + , organization_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , search_term_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , page_token_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , include_markdown_documentation_(false){} +struct ListRegistryItemsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR ListRegistryItemsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ListRegistryItemsRequestDefaultTypeInternal() {} union { - MLTrainingMetadata _instance; + ListRegistryItemsRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MLTrainingMetadataDefaultTypeInternal _MLTrainingMetadata_default_instance_; - -inline constexpr LocationAuth::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : secrets_{}, - secret_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - location_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR LocationAuth::LocationAuth(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct LocationAuthDefaultTypeInternal { - PROTOBUF_CONSTEXPR LocationAuthDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~LocationAuthDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListRegistryItemsRequestDefaultTypeInternal _ListRegistryItemsRequest_default_instance_; +PROTOBUF_CONSTEXPR ListRegistryItemsResponse::ListRegistryItemsResponse( + ::_pbi::ConstantInitialized) + : items_(){} +struct ListRegistryItemsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ListRegistryItemsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ListRegistryItemsResponseDefaultTypeInternal() {} union { - LocationAuth _instance; + ListRegistryItemsResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LocationAuthDefaultTypeInternal _LocationAuth_default_instance_; - -inline constexpr ListRobotsResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : robots_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR ListRobotsResponse::ListRobotsResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ListRobotsResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ListRobotsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ListRobotsResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListRegistryItemsResponseDefaultTypeInternal _ListRegistryItemsResponse_default_instance_; +PROTOBUF_CONSTEXPR DeleteRegistryItemRequest::DeleteRegistryItemRequest( + ::_pbi::ConstantInitialized) + : item_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct DeleteRegistryItemRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR DeleteRegistryItemRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DeleteRegistryItemRequestDefaultTypeInternal() {} union { - ListRobotsResponse _instance; + DeleteRegistryItemRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListRobotsResponseDefaultTypeInternal _ListRobotsResponse_default_instance_; - -inline constexpr ListOrganizationsResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : organizations_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR ListOrganizationsResponse::ListOrganizationsResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ListOrganizationsResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ListOrganizationsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ListOrganizationsResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteRegistryItemRequestDefaultTypeInternal _DeleteRegistryItemRequest_default_instance_; +PROTOBUF_CONSTEXPR DeleteRegistryItemResponse::DeleteRegistryItemResponse( + ::_pbi::ConstantInitialized){} +struct DeleteRegistryItemResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR DeleteRegistryItemResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DeleteRegistryItemResponseDefaultTypeInternal() {} union { - ListOrganizationsResponse _instance; + DeleteRegistryItemResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListOrganizationsResponseDefaultTypeInternal _ListOrganizationsResponse_default_instance_; - -inline constexpr ListOrganizationMembersResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : members_{}, - invites_{}, - organization_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR ListOrganizationMembersResponse::ListOrganizationMembersResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ListOrganizationMembersResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ListOrganizationMembersResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ListOrganizationMembersResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteRegistryItemResponseDefaultTypeInternal _DeleteRegistryItemResponse_default_instance_; +PROTOBUF_CONSTEXPR TransferRegistryItemRequest::TransferRegistryItemRequest( + ::_pbi::ConstantInitialized) + : item_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , new_public_namespace_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct TransferRegistryItemRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR TransferRegistryItemRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~TransferRegistryItemRequestDefaultTypeInternal() {} union { - ListOrganizationMembersResponse _instance; + TransferRegistryItemRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListOrganizationMembersResponseDefaultTypeInternal _ListOrganizationMembersResponse_default_instance_; - -inline constexpr ListMachineFragmentsResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : fragments_{}, - resolved_fragments_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR ListMachineFragmentsResponse::ListMachineFragmentsResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ListMachineFragmentsResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ListMachineFragmentsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ListMachineFragmentsResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TransferRegistryItemRequestDefaultTypeInternal _TransferRegistryItemRequest_default_instance_; +PROTOBUF_CONSTEXPR TransferRegistryItemResponse::TransferRegistryItemResponse( + ::_pbi::ConstantInitialized){} +struct TransferRegistryItemResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR TransferRegistryItemResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~TransferRegistryItemResponseDefaultTypeInternal() {} union { - ListMachineFragmentsResponse _instance; + TransferRegistryItemResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListMachineFragmentsResponseDefaultTypeInternal _ListMachineFragmentsResponse_default_instance_; - -inline constexpr ListFragmentsResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : fragments_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR ListFragmentsResponse::ListFragmentsResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ListFragmentsResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ListFragmentsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ListFragmentsResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TransferRegistryItemResponseDefaultTypeInternal _TransferRegistryItemResponse_default_instance_; +PROTOBUF_CONSTEXPR CreateModuleRequest::CreateModuleRequest( + ::_pbi::ConstantInitialized) + : organization_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct CreateModuleRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR CreateModuleRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CreateModuleRequestDefaultTypeInternal() {} union { - ListFragmentsResponse _instance; + CreateModuleRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListFragmentsResponseDefaultTypeInternal _ListFragmentsResponse_default_instance_; - -inline constexpr GetRobotResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - robot_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetRobotResponse::GetRobotResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetRobotResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetRobotResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetRobotResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateModuleRequestDefaultTypeInternal _CreateModuleRequest_default_instance_; +PROTOBUF_CONSTEXPR CreateModuleResponse::CreateModuleResponse( + ::_pbi::ConstantInitialized) + : module_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , url_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct CreateModuleResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR CreateModuleResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CreateModuleResponseDefaultTypeInternal() {} union { - GetRobotResponse _instance; + CreateModuleResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetRobotResponseDefaultTypeInternal _GetRobotResponse_default_instance_; - -inline constexpr GetRobotPartLogsResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : logs_{}, - next_page_token_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetRobotPartLogsResponse::GetRobotPartLogsResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetRobotPartLogsResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetRobotPartLogsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetRobotPartLogsResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateModuleResponseDefaultTypeInternal _CreateModuleResponse_default_instance_; +PROTOBUF_CONSTEXPR UpdateModuleRequest::UpdateModuleRequest( + ::_pbi::ConstantInitialized) + : models_() + , module_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , url_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , description_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , entrypoint_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , first_run_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , visibility_(0) +{} +struct UpdateModuleRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR UpdateModuleRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~UpdateModuleRequestDefaultTypeInternal() {} union { - GetRobotPartLogsResponse _instance; + UpdateModuleRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetRobotPartLogsResponseDefaultTypeInternal _GetRobotPartLogsResponse_default_instance_; - -inline constexpr GetOrganizationResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - organization_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetOrganizationResponse::GetOrganizationResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetOrganizationResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetOrganizationResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetOrganizationResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateModuleRequestDefaultTypeInternal _UpdateModuleRequest_default_instance_; +PROTOBUF_CONSTEXPR UpdateModuleResponse::UpdateModuleResponse( + ::_pbi::ConstantInitialized) + : url_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct UpdateModuleResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR UpdateModuleResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~UpdateModuleResponseDefaultTypeInternal() {} union { - GetOrganizationResponse _instance; + UpdateModuleResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetOrganizationResponseDefaultTypeInternal _GetOrganizationResponse_default_instance_; - -inline constexpr GetFragmentResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - fragment_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetFragmentResponse::GetFragmentResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetFragmentResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetFragmentResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetFragmentResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateModuleResponseDefaultTypeInternal _UpdateModuleResponse_default_instance_; +PROTOBUF_CONSTEXPR UpdateModuleMetadata::UpdateModuleMetadata( + ::_pbi::ConstantInitialized) + : models_() + , entrypoint_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct UpdateModuleMetadataDefaultTypeInternal { + PROTOBUF_CONSTEXPR UpdateModuleMetadataDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~UpdateModuleMetadataDefaultTypeInternal() {} union { - GetFragmentResponse _instance; + UpdateModuleMetadata _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetFragmentResponseDefaultTypeInternal _GetFragmentResponse_default_instance_; - -inline constexpr FragmentHistoryEntry::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - fragment_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - edited_on_{nullptr}, - old_{nullptr}, - edited_by_{nullptr} {} - -template -PROTOBUF_CONSTEXPR FragmentHistoryEntry::FragmentHistoryEntry(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct FragmentHistoryEntryDefaultTypeInternal { - PROTOBUF_CONSTEXPR FragmentHistoryEntryDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~FragmentHistoryEntryDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateModuleMetadataDefaultTypeInternal _UpdateModuleMetadata_default_instance_; +PROTOBUF_CONSTEXPR UpdateMLModelMetadata::UpdateMLModelMetadata( + ::_pbi::ConstantInitialized) + : model_type_(0) + + , model_framework_(0) +{} +struct UpdateMLModelMetadataDefaultTypeInternal { + PROTOBUF_CONSTEXPR UpdateMLModelMetadataDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~UpdateMLModelMetadataDefaultTypeInternal() {} union { - FragmentHistoryEntry _instance; + UpdateMLModelMetadata _instance; }; }; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateMLModelMetadataDefaultTypeInternal _UpdateMLModelMetadata_default_instance_; +PROTOBUF_CONSTEXPR UpdateMLTrainingMetadata::UpdateMLTrainingMetadata( + ::_pbi::ConstantInitialized) + : model_type_(0) -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FragmentHistoryEntryDefaultTypeInternal _FragmentHistoryEntry_default_instance_; + , model_framework_(0) -inline constexpr CreateOrganizationResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - organization_{nullptr} {} - -template -PROTOBUF_CONSTEXPR CreateOrganizationResponse::CreateOrganizationResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct CreateOrganizationResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR CreateOrganizationResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CreateOrganizationResponseDefaultTypeInternal() {} + , draft_(false){} +struct UpdateMLTrainingMetadataDefaultTypeInternal { + PROTOBUF_CONSTEXPR UpdateMLTrainingMetadataDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~UpdateMLTrainingMetadataDefaultTypeInternal() {} union { - CreateOrganizationResponse _instance; + UpdateMLTrainingMetadata _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateOrganizationResponseDefaultTypeInternal _CreateOrganizationResponse_default_instance_; - -inline constexpr CreateOrganizationInviteResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - invite_{nullptr} {} - -template -PROTOBUF_CONSTEXPR CreateOrganizationInviteResponse::CreateOrganizationInviteResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct CreateOrganizationInviteResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR CreateOrganizationInviteResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CreateOrganizationInviteResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateMLTrainingMetadataDefaultTypeInternal _UpdateMLTrainingMetadata_default_instance_; +PROTOBUF_CONSTEXPR Model::Model( + ::_pbi::ConstantInitialized) + : api_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , model_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , markdown_documentation_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , description_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct ModelDefaultTypeInternal { + PROTOBUF_CONSTEXPR ModelDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ModelDefaultTypeInternal() {} union { - CreateOrganizationInviteResponse _instance; + Model _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateOrganizationInviteResponseDefaultTypeInternal _CreateOrganizationInviteResponse_default_instance_; - -inline constexpr CreateFragmentResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - fragment_{nullptr} {} - -template -PROTOBUF_CONSTEXPR CreateFragmentResponse::CreateFragmentResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct CreateFragmentResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR CreateFragmentResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CreateFragmentResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ModelDefaultTypeInternal _Model_default_instance_; +PROTOBUF_CONSTEXPR ModuleFileInfo::ModuleFileInfo( + ::_pbi::ConstantInitialized) + : platform_tags_() + , module_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , version_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , platform_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct ModuleFileInfoDefaultTypeInternal { + PROTOBUF_CONSTEXPR ModuleFileInfoDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ModuleFileInfoDefaultTypeInternal() {} union { - CreateFragmentResponse _instance; + ModuleFileInfo _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateFragmentResponseDefaultTypeInternal _CreateFragmentResponse_default_instance_; - -inline constexpr APIKeyWithAuthorizations::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - authorizations_{}, - api_key_{nullptr} {} - -template -PROTOBUF_CONSTEXPR APIKeyWithAuthorizations::APIKeyWithAuthorizations(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct APIKeyWithAuthorizationsDefaultTypeInternal { - PROTOBUF_CONSTEXPR APIKeyWithAuthorizationsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~APIKeyWithAuthorizationsDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ModuleFileInfoDefaultTypeInternal _ModuleFileInfo_default_instance_; +PROTOBUF_CONSTEXPR UploadModuleFileRequest::UploadModuleFileRequest( + ::_pbi::ConstantInitialized) + : _oneof_case_{}{} +struct UploadModuleFileRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR UploadModuleFileRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~UploadModuleFileRequestDefaultTypeInternal() {} union { - APIKeyWithAuthorizations _instance; + UploadModuleFileRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 APIKeyWithAuthorizationsDefaultTypeInternal _APIKeyWithAuthorizations_default_instance_; - -inline constexpr UpdateRobotPartResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - part_{nullptr} {} - -template -PROTOBUF_CONSTEXPR UpdateRobotPartResponse::UpdateRobotPartResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct UpdateRobotPartResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR UpdateRobotPartResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~UpdateRobotPartResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UploadModuleFileRequestDefaultTypeInternal _UploadModuleFileRequest_default_instance_; +PROTOBUF_CONSTEXPR UploadModuleFileResponse::UploadModuleFileResponse( + ::_pbi::ConstantInitialized) + : url_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct UploadModuleFileResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR UploadModuleFileResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~UploadModuleFileResponseDefaultTypeInternal() {} union { - UpdateRobotPartResponse _instance; + UploadModuleFileResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateRobotPartResponseDefaultTypeInternal _UpdateRobotPartResponse_default_instance_; - -inline constexpr RobotPartHistoryEntry::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - part_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - robot_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - when_{nullptr}, - old_{nullptr}, - edited_by_{nullptr} {} - -template -PROTOBUF_CONSTEXPR RobotPartHistoryEntry::RobotPartHistoryEntry(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct RobotPartHistoryEntryDefaultTypeInternal { - PROTOBUF_CONSTEXPR RobotPartHistoryEntryDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RobotPartHistoryEntryDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UploadModuleFileResponseDefaultTypeInternal _UploadModuleFileResponse_default_instance_; +PROTOBUF_CONSTEXPR GetModuleRequest::GetModuleRequest( + ::_pbi::ConstantInitialized) + : module_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , include_markdown_documentation_(false){} +struct GetModuleRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetModuleRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetModuleRequestDefaultTypeInternal() {} union { - RobotPartHistoryEntry _instance; + GetModuleRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RobotPartHistoryEntryDefaultTypeInternal _RobotPartHistoryEntry_default_instance_; - -inline constexpr ModuleMetadata::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - models_{}, - versions_{}, - entrypoint_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - first_run_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()) {} - -template -PROTOBUF_CONSTEXPR ModuleMetadata::ModuleMetadata(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ModuleMetadataDefaultTypeInternal { - PROTOBUF_CONSTEXPR ModuleMetadataDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ModuleMetadataDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetModuleRequestDefaultTypeInternal _GetModuleRequest_default_instance_; +PROTOBUF_CONSTEXPR GetModuleResponse::GetModuleResponse( + ::_pbi::ConstantInitialized) + : module_(nullptr){} +struct GetModuleResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetModuleResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetModuleResponseDefaultTypeInternal() {} union { - ModuleMetadata _instance; + GetModuleResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ModuleMetadataDefaultTypeInternal _ModuleMetadata_default_instance_; - -inline constexpr Module::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - versions_{}, - models_{}, - module_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - url_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - description_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - organization_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - entrypoint_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - public_namespace_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - first_run_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - total_robot_usage_{::int64_t{0}}, - total_organization_usage_{::int64_t{0}}, - visibility_{static_cast< ::viam::app::v1::Visibility >(0)} {} - -template -PROTOBUF_CONSTEXPR Module::Module(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetModuleResponseDefaultTypeInternal _GetModuleResponse_default_instance_; +PROTOBUF_CONSTEXPR Module::Module( + ::_pbi::ConstantInitialized) + : versions_() + , models_() + , module_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , url_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , description_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , organization_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , entrypoint_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , public_namespace_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , first_run_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , total_robot_usage_(int64_t{0}) + , total_organization_usage_(int64_t{0}) + , visibility_(0) +{} struct ModuleDefaultTypeInternal { - PROTOBUF_CONSTEXPR ModuleDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ModuleDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~ModuleDefaultTypeInternal() {} union { Module _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ModuleDefaultTypeInternal _Module_default_instance_; - -inline constexpr LocationAuthResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - auth_{nullptr} {} - -template -PROTOBUF_CONSTEXPR LocationAuthResponse::LocationAuthResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct LocationAuthResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR LocationAuthResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~LocationAuthResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ModuleDefaultTypeInternal _Module_default_instance_; +PROTOBUF_CONSTEXPR VersionHistory::VersionHistory( + ::_pbi::ConstantInitialized) + : files_() + , models_() + , version_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , entrypoint_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , first_run_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct VersionHistoryDefaultTypeInternal { + PROTOBUF_CONSTEXPR VersionHistoryDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~VersionHistoryDefaultTypeInternal() {} union { - LocationAuthResponse _instance; + VersionHistory _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LocationAuthResponseDefaultTypeInternal _LocationAuthResponse_default_instance_; - -inline constexpr Location::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - organizations_{}, - id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - parent_location_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - created_on_{nullptr}, - auth_{nullptr}, - config_{nullptr}, - robot_count_{0} {} - -template -PROTOBUF_CONSTEXPR Location::Location(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct LocationDefaultTypeInternal { - PROTOBUF_CONSTEXPR LocationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~LocationDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 VersionHistoryDefaultTypeInternal _VersionHistory_default_instance_; +PROTOBUF_CONSTEXPR Uploads::Uploads( + ::_pbi::ConstantInitialized) + : platform_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , uploaded_at_(nullptr){} +struct UploadsDefaultTypeInternal { + PROTOBUF_CONSTEXPR UploadsDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~UploadsDefaultTypeInternal() {} union { - Location _instance; + Uploads _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LocationDefaultTypeInternal _Location_default_instance_; - -inline constexpr ListKeysResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : api_keys_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR ListKeysResponse::ListKeysResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ListKeysResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ListKeysResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ListKeysResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UploadsDefaultTypeInternal _Uploads_default_instance_; +PROTOBUF_CONSTEXPR ListModulesRequest::ListModulesRequest( + ::_pbi::ConstantInitialized) + : organization_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , include_markdown_documentation_(false){} +struct ListModulesRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR ListModulesRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ListModulesRequestDefaultTypeInternal() {} union { - ListKeysResponse _instance; + ListModulesRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListKeysResponseDefaultTypeInternal _ListKeysResponse_default_instance_; - -inline constexpr GetRobotPartsResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : parts_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetRobotPartsResponse::GetRobotPartsResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetRobotPartsResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetRobotPartsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetRobotPartsResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListModulesRequestDefaultTypeInternal _ListModulesRequest_default_instance_; +PROTOBUF_CONSTEXPR ListModulesResponse::ListModulesResponse( + ::_pbi::ConstantInitialized) + : modules_(){} +struct ListModulesResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ListModulesResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ListModulesResponseDefaultTypeInternal() {} union { - GetRobotPartsResponse _instance; + ListModulesResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetRobotPartsResponseDefaultTypeInternal _GetRobotPartsResponse_default_instance_; - -inline constexpr GetRobotPartResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - config_json_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - part_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetRobotPartResponse::GetRobotPartResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetRobotPartResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetRobotPartResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetRobotPartResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListModulesResponseDefaultTypeInternal _ListModulesResponse_default_instance_; +PROTOBUF_CONSTEXPR GetUserIDByEmailRequest::GetUserIDByEmailRequest( + ::_pbi::ConstantInitialized) + : email_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct GetUserIDByEmailRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetUserIDByEmailRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetUserIDByEmailRequestDefaultTypeInternal() {} union { - GetRobotPartResponse _instance; + GetUserIDByEmailRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetRobotPartResponseDefaultTypeInternal _GetRobotPartResponse_default_instance_; - -inline constexpr GetRobotAPIKeysResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : api_keys_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetRobotAPIKeysResponse::GetRobotAPIKeysResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetRobotAPIKeysResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetRobotAPIKeysResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetRobotAPIKeysResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetUserIDByEmailRequestDefaultTypeInternal _GetUserIDByEmailRequest_default_instance_; +PROTOBUF_CONSTEXPR GetUserIDByEmailResponse::GetUserIDByEmailResponse( + ::_pbi::ConstantInitialized) + : user_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct GetUserIDByEmailResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetUserIDByEmailResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetUserIDByEmailResponseDefaultTypeInternal() {} union { - GetRobotAPIKeysResponse _instance; + GetUserIDByEmailResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetRobotAPIKeysResponseDefaultTypeInternal _GetRobotAPIKeysResponse_default_instance_; - -inline constexpr GetFragmentHistoryResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : history_{}, - next_page_token_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetFragmentHistoryResponse::GetFragmentHistoryResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetFragmentHistoryResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetFragmentHistoryResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetFragmentHistoryResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetUserIDByEmailResponseDefaultTypeInternal _GetUserIDByEmailResponse_default_instance_; +PROTOBUF_CONSTEXPR ListOrganizationsByUserRequest::ListOrganizationsByUserRequest( + ::_pbi::ConstantInitialized) + : user_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct ListOrganizationsByUserRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR ListOrganizationsByUserRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ListOrganizationsByUserRequestDefaultTypeInternal() {} union { - GetFragmentHistoryResponse _instance; + ListOrganizationsByUserRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetFragmentHistoryResponseDefaultTypeInternal _GetFragmentHistoryResponse_default_instance_; - -inline constexpr CreateRobotPartSecretResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - part_{nullptr} {} - -template -PROTOBUF_CONSTEXPR CreateRobotPartSecretResponse::CreateRobotPartSecretResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct CreateRobotPartSecretResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR CreateRobotPartSecretResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CreateRobotPartSecretResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListOrganizationsByUserRequestDefaultTypeInternal _ListOrganizationsByUserRequest_default_instance_; +PROTOBUF_CONSTEXPR OrgDetails::OrgDetails( + ::_pbi::ConstantInitialized) + : org_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , org_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , org_cid_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , public_namespace_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct OrgDetailsDefaultTypeInternal { + PROTOBUF_CONSTEXPR OrgDetailsDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~OrgDetailsDefaultTypeInternal() {} union { - CreateRobotPartSecretResponse _instance; + OrgDetails _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateRobotPartSecretResponseDefaultTypeInternal _CreateRobotPartSecretResponse_default_instance_; - -inline constexpr CreateLocationSecretResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - auth_{nullptr} {} - -template -PROTOBUF_CONSTEXPR CreateLocationSecretResponse::CreateLocationSecretResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct CreateLocationSecretResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR CreateLocationSecretResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CreateLocationSecretResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OrgDetailsDefaultTypeInternal _OrgDetails_default_instance_; +PROTOBUF_CONSTEXPR ListOrganizationsByUserResponse::ListOrganizationsByUserResponse( + ::_pbi::ConstantInitialized) + : orgs_(){} +struct ListOrganizationsByUserResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ListOrganizationsByUserResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ListOrganizationsByUserResponseDefaultTypeInternal() {} union { - CreateLocationSecretResponse _instance; + ListOrganizationsByUserResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateLocationSecretResponseDefaultTypeInternal _CreateLocationSecretResponse_default_instance_; - -inline constexpr UpdateLocationResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - location_{nullptr} {} - -template -PROTOBUF_CONSTEXPR UpdateLocationResponse::UpdateLocationResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct UpdateLocationResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR UpdateLocationResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~UpdateLocationResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListOrganizationsByUserResponseDefaultTypeInternal _ListOrganizationsByUserResponse_default_instance_; +PROTOBUF_CONSTEXPR SearchOrganizationsRequest::SearchOrganizationsRequest( + ::_pbi::ConstantInitialized) + : org_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , org_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , cid_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , public_namespace_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct SearchOrganizationsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SearchOrganizationsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SearchOrganizationsRequestDefaultTypeInternal() {} union { - UpdateLocationResponse _instance; + SearchOrganizationsRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateLocationResponseDefaultTypeInternal _UpdateLocationResponse_default_instance_; - -inline constexpr RegistryItem::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - item_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - organization_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - public_namespace_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - url_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - description_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - created_at_{nullptr}, - updated_at_{nullptr}, - type_{static_cast< ::viam::app::packages::v1::PackageType >(0)}, - visibility_{static_cast< ::viam::app::v1::Visibility >(0)}, - total_robot_usage_{::int64_t{0}}, - total_organization_usage_{::int64_t{0}}, - total_external_robot_usage_{::int64_t{0}}, - total_external_organization_usage_{::int64_t{0}}, - metadata_{}, - _oneof_case_{} {} - -template -PROTOBUF_CONSTEXPR RegistryItem::RegistryItem(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct RegistryItemDefaultTypeInternal { - PROTOBUF_CONSTEXPR RegistryItemDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RegistryItemDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SearchOrganizationsRequestDefaultTypeInternal _SearchOrganizationsRequest_default_instance_; +PROTOBUF_CONSTEXPR SearchOrganizationsResponse::SearchOrganizationsResponse( + ::_pbi::ConstantInitialized) + : organizations_(){} +struct SearchOrganizationsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR SearchOrganizationsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SearchOrganizationsResponseDefaultTypeInternal() {} union { - RegistryItem _instance; + SearchOrganizationsResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RegistryItemDefaultTypeInternal _RegistryItem_default_instance_; - -inline constexpr ListModulesResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : modules_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR ListModulesResponse::ListModulesResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ListModulesResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ListModulesResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ListModulesResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SearchOrganizationsResponseDefaultTypeInternal _SearchOrganizationsResponse_default_instance_; +PROTOBUF_CONSTEXPR CreateKeyRequest::CreateKeyRequest( + ::_pbi::ConstantInitialized) + : authorizations_() + , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct CreateKeyRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR CreateKeyRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CreateKeyRequestDefaultTypeInternal() {} union { - ListModulesResponse _instance; + CreateKeyRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListModulesResponseDefaultTypeInternal _ListModulesResponse_default_instance_; - -inline constexpr ListLocationsResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : locations_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR ListLocationsResponse::ListLocationsResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ListLocationsResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ListLocationsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ListLocationsResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateKeyRequestDefaultTypeInternal _CreateKeyRequest_default_instance_; +PROTOBUF_CONSTEXPR CreateKeyResponse::CreateKeyResponse( + ::_pbi::ConstantInitialized) + : key_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct CreateKeyResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR CreateKeyResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CreateKeyResponseDefaultTypeInternal() {} union { - ListLocationsResponse _instance; + CreateKeyResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListLocationsResponseDefaultTypeInternal _ListLocationsResponse_default_instance_; - -inline constexpr GetRobotPartHistoryResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : history_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetRobotPartHistoryResponse::GetRobotPartHistoryResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetRobotPartHistoryResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetRobotPartHistoryResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetRobotPartHistoryResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateKeyResponseDefaultTypeInternal _CreateKeyResponse_default_instance_; +PROTOBUF_CONSTEXPR DeleteKeyRequest::DeleteKeyRequest( + ::_pbi::ConstantInitialized) + : id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct DeleteKeyRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR DeleteKeyRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DeleteKeyRequestDefaultTypeInternal() {} union { - GetRobotPartHistoryResponse _instance; + DeleteKeyRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetRobotPartHistoryResponseDefaultTypeInternal _GetRobotPartHistoryResponse_default_instance_; - -inline constexpr GetModuleResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - module_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetModuleResponse::GetModuleResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetModuleResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetModuleResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetModuleResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteKeyRequestDefaultTypeInternal _DeleteKeyRequest_default_instance_; +PROTOBUF_CONSTEXPR DeleteKeyResponse::DeleteKeyResponse( + ::_pbi::ConstantInitialized){} +struct DeleteKeyResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR DeleteKeyResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DeleteKeyResponseDefaultTypeInternal() {} union { - GetModuleResponse _instance; + DeleteKeyResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetModuleResponseDefaultTypeInternal _GetModuleResponse_default_instance_; - -inline constexpr GetLocationResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - location_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetLocationResponse::GetLocationResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetLocationResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetLocationResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetLocationResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteKeyResponseDefaultTypeInternal _DeleteKeyResponse_default_instance_; +PROTOBUF_CONSTEXPR RenameKeyRequest::RenameKeyRequest( + ::_pbi::ConstantInitialized) + : id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct RenameKeyRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR RenameKeyRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RenameKeyRequestDefaultTypeInternal() {} union { - GetLocationResponse _instance; + RenameKeyRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetLocationResponseDefaultTypeInternal _GetLocationResponse_default_instance_; - -inline constexpr CreateLocationResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - location_{nullptr} {} - -template -PROTOBUF_CONSTEXPR CreateLocationResponse::CreateLocationResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct CreateLocationResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR CreateLocationResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CreateLocationResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RenameKeyRequestDefaultTypeInternal _RenameKeyRequest_default_instance_; +PROTOBUF_CONSTEXPR RenameKeyResponse::RenameKeyResponse( + ::_pbi::ConstantInitialized) + : id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct RenameKeyResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR RenameKeyResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RenameKeyResponseDefaultTypeInternal() {} union { - CreateLocationResponse _instance; + RenameKeyResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateLocationResponseDefaultTypeInternal _CreateLocationResponse_default_instance_; - -inline constexpr ListRegistryItemsResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : items_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR ListRegistryItemsResponse::ListRegistryItemsResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ListRegistryItemsResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ListRegistryItemsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ListRegistryItemsResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RenameKeyResponseDefaultTypeInternal _RenameKeyResponse_default_instance_; +PROTOBUF_CONSTEXPR AuthorizationDetails::AuthorizationDetails( + ::_pbi::ConstantInitialized) + : authorization_type_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , authorization_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , resource_type_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , resource_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , org_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct AuthorizationDetailsDefaultTypeInternal { + PROTOBUF_CONSTEXPR AuthorizationDetailsDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AuthorizationDetailsDefaultTypeInternal() {} union { - ListRegistryItemsResponse _instance; + AuthorizationDetails _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListRegistryItemsResponseDefaultTypeInternal _ListRegistryItemsResponse_default_instance_; - -inline constexpr GetRegistryItemResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - item_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetRegistryItemResponse::GetRegistryItemResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetRegistryItemResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetRegistryItemResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetRegistryItemResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AuthorizationDetailsDefaultTypeInternal _AuthorizationDetails_default_instance_; +PROTOBUF_CONSTEXPR APIKeyWithAuthorizations::APIKeyWithAuthorizations( + ::_pbi::ConstantInitialized) + : authorizations_() + , api_key_(nullptr){} +struct APIKeyWithAuthorizationsDefaultTypeInternal { + PROTOBUF_CONSTEXPR APIKeyWithAuthorizationsDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~APIKeyWithAuthorizationsDefaultTypeInternal() {} union { - GetRegistryItemResponse _instance; + APIKeyWithAuthorizations _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetRegistryItemResponseDefaultTypeInternal _GetRegistryItemResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 APIKeyWithAuthorizationsDefaultTypeInternal _APIKeyWithAuthorizations_default_instance_; +PROTOBUF_CONSTEXPR ListKeysRequest::ListKeysRequest( + ::_pbi::ConstantInitialized) + : org_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct ListKeysRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR ListKeysRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ListKeysRequestDefaultTypeInternal() {} + union { + ListKeysRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListKeysRequestDefaultTypeInternal _ListKeysRequest_default_instance_; +PROTOBUF_CONSTEXPR ListKeysResponse::ListKeysResponse( + ::_pbi::ConstantInitialized) + : api_keys_(){} +struct ListKeysResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ListKeysResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ListKeysResponseDefaultTypeInternal() {} + union { + ListKeysResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListKeysResponseDefaultTypeInternal _ListKeysResponse_default_instance_; +PROTOBUF_CONSTEXPR RotateKeyRequest::RotateKeyRequest( + ::_pbi::ConstantInitialized) + : id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct RotateKeyRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR RotateKeyRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RotateKeyRequestDefaultTypeInternal() {} + union { + RotateKeyRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RotateKeyRequestDefaultTypeInternal _RotateKeyRequest_default_instance_; +PROTOBUF_CONSTEXPR RotateKeyResponse::RotateKeyResponse( + ::_pbi::ConstantInitialized) + : id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , key_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct RotateKeyResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR RotateKeyResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RotateKeyResponseDefaultTypeInternal() {} + union { + RotateKeyResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RotateKeyResponseDefaultTypeInternal _RotateKeyResponse_default_instance_; +PROTOBUF_CONSTEXPR CreateKeyFromExistingKeyAuthorizationsRequest::CreateKeyFromExistingKeyAuthorizationsRequest( + ::_pbi::ConstantInitialized) + : id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct CreateKeyFromExistingKeyAuthorizationsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR CreateKeyFromExistingKeyAuthorizationsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CreateKeyFromExistingKeyAuthorizationsRequestDefaultTypeInternal() {} + union { + CreateKeyFromExistingKeyAuthorizationsRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateKeyFromExistingKeyAuthorizationsRequestDefaultTypeInternal _CreateKeyFromExistingKeyAuthorizationsRequest_default_instance_; +PROTOBUF_CONSTEXPR CreateKeyFromExistingKeyAuthorizationsResponse::CreateKeyFromExistingKeyAuthorizationsResponse( + ::_pbi::ConstantInitialized) + : id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , key_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct CreateKeyFromExistingKeyAuthorizationsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR CreateKeyFromExistingKeyAuthorizationsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CreateKeyFromExistingKeyAuthorizationsResponseDefaultTypeInternal() {} + union { + CreateKeyFromExistingKeyAuthorizationsResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateKeyFromExistingKeyAuthorizationsResponseDefaultTypeInternal _CreateKeyFromExistingKeyAuthorizationsResponse_default_instance_; +PROTOBUF_CONSTEXPR OrganizationSetLogoRequest::OrganizationSetLogoRequest( + ::_pbi::ConstantInitialized) + : org_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , logo_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct OrganizationSetLogoRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR OrganizationSetLogoRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~OrganizationSetLogoRequestDefaultTypeInternal() {} + union { + OrganizationSetLogoRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OrganizationSetLogoRequestDefaultTypeInternal _OrganizationSetLogoRequest_default_instance_; +PROTOBUF_CONSTEXPR OrganizationSetLogoResponse::OrganizationSetLogoResponse( + ::_pbi::ConstantInitialized){} +struct OrganizationSetLogoResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR OrganizationSetLogoResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~OrganizationSetLogoResponseDefaultTypeInternal() {} + union { + OrganizationSetLogoResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OrganizationSetLogoResponseDefaultTypeInternal _OrganizationSetLogoResponse_default_instance_; +PROTOBUF_CONSTEXPR OrganizationGetLogoRequest::OrganizationGetLogoRequest( + ::_pbi::ConstantInitialized) + : org_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct OrganizationGetLogoRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR OrganizationGetLogoRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~OrganizationGetLogoRequestDefaultTypeInternal() {} + union { + OrganizationGetLogoRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OrganizationGetLogoRequestDefaultTypeInternal _OrganizationGetLogoRequest_default_instance_; +PROTOBUF_CONSTEXPR OrganizationGetLogoResponse::OrganizationGetLogoResponse( + ::_pbi::ConstantInitialized) + : url_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct OrganizationGetLogoResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR OrganizationGetLogoResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~OrganizationGetLogoResponseDefaultTypeInternal() {} + union { + OrganizationGetLogoResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OrganizationGetLogoResponseDefaultTypeInternal _OrganizationGetLogoResponse_default_instance_; +PROTOBUF_CONSTEXPR EnableAuthServiceRequest::EnableAuthServiceRequest( + ::_pbi::ConstantInitialized) + : org_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct EnableAuthServiceRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR EnableAuthServiceRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~EnableAuthServiceRequestDefaultTypeInternal() {} + union { + EnableAuthServiceRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EnableAuthServiceRequestDefaultTypeInternal _EnableAuthServiceRequest_default_instance_; +PROTOBUF_CONSTEXPR EnableAuthServiceResponse::EnableAuthServiceResponse( + ::_pbi::ConstantInitialized){} +struct EnableAuthServiceResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR EnableAuthServiceResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~EnableAuthServiceResponseDefaultTypeInternal() {} + union { + EnableAuthServiceResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EnableAuthServiceResponseDefaultTypeInternal _EnableAuthServiceResponse_default_instance_; +PROTOBUF_CONSTEXPR DisableAuthServiceRequest::DisableAuthServiceRequest( + ::_pbi::ConstantInitialized) + : org_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct DisableAuthServiceRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR DisableAuthServiceRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DisableAuthServiceRequestDefaultTypeInternal() {} + union { + DisableAuthServiceRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DisableAuthServiceRequestDefaultTypeInternal _DisableAuthServiceRequest_default_instance_; +PROTOBUF_CONSTEXPR DisableAuthServiceResponse::DisableAuthServiceResponse( + ::_pbi::ConstantInitialized){} +struct DisableAuthServiceResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR DisableAuthServiceResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DisableAuthServiceResponseDefaultTypeInternal() {} + union { + DisableAuthServiceResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DisableAuthServiceResponseDefaultTypeInternal _DisableAuthServiceResponse_default_instance_; +PROTOBUF_CONSTEXPR CreateOAuthAppRequest::CreateOAuthAppRequest( + ::_pbi::ConstantInitialized) + : org_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , client_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , oauth_config_(nullptr){} +struct CreateOAuthAppRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR CreateOAuthAppRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CreateOAuthAppRequestDefaultTypeInternal() {} + union { + CreateOAuthAppRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateOAuthAppRequestDefaultTypeInternal _CreateOAuthAppRequest_default_instance_; +PROTOBUF_CONSTEXPR CreateOAuthAppResponse::CreateOAuthAppResponse( + ::_pbi::ConstantInitialized) + : client_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , client_secret_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct CreateOAuthAppResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR CreateOAuthAppResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CreateOAuthAppResponseDefaultTypeInternal() {} + union { + CreateOAuthAppResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateOAuthAppResponseDefaultTypeInternal _CreateOAuthAppResponse_default_instance_; +PROTOBUF_CONSTEXPR ReadOAuthAppRequest::ReadOAuthAppRequest( + ::_pbi::ConstantInitialized) + : org_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , client_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct ReadOAuthAppRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR ReadOAuthAppRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ReadOAuthAppRequestDefaultTypeInternal() {} + union { + ReadOAuthAppRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ReadOAuthAppRequestDefaultTypeInternal _ReadOAuthAppRequest_default_instance_; +PROTOBUF_CONSTEXPR ReadOAuthAppResponse::ReadOAuthAppResponse( + ::_pbi::ConstantInitialized) + : client_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , client_secret_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , oauth_config_(nullptr){} +struct ReadOAuthAppResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ReadOAuthAppResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ReadOAuthAppResponseDefaultTypeInternal() {} + union { + ReadOAuthAppResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ReadOAuthAppResponseDefaultTypeInternal _ReadOAuthAppResponse_default_instance_; +PROTOBUF_CONSTEXPR UpdateOAuthAppRequest::UpdateOAuthAppRequest( + ::_pbi::ConstantInitialized) + : org_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , client_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , client_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , oauth_config_(nullptr){} +struct UpdateOAuthAppRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR UpdateOAuthAppRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~UpdateOAuthAppRequestDefaultTypeInternal() {} + union { + UpdateOAuthAppRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateOAuthAppRequestDefaultTypeInternal _UpdateOAuthAppRequest_default_instance_; +PROTOBUF_CONSTEXPR UpdateOAuthAppResponse::UpdateOAuthAppResponse( + ::_pbi::ConstantInitialized){} +struct UpdateOAuthAppResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR UpdateOAuthAppResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~UpdateOAuthAppResponseDefaultTypeInternal() {} + union { + UpdateOAuthAppResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateOAuthAppResponseDefaultTypeInternal _UpdateOAuthAppResponse_default_instance_; +PROTOBUF_CONSTEXPR DeleteOAuthAppRequest::DeleteOAuthAppRequest( + ::_pbi::ConstantInitialized) + : org_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , client_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct DeleteOAuthAppRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR DeleteOAuthAppRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DeleteOAuthAppRequestDefaultTypeInternal() {} + union { + DeleteOAuthAppRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteOAuthAppRequestDefaultTypeInternal _DeleteOAuthAppRequest_default_instance_; +PROTOBUF_CONSTEXPR DeleteOAuthAppResponse::DeleteOAuthAppResponse( + ::_pbi::ConstantInitialized){} +struct DeleteOAuthAppResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR DeleteOAuthAppResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DeleteOAuthAppResponseDefaultTypeInternal() {} + union { + DeleteOAuthAppResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteOAuthAppResponseDefaultTypeInternal _DeleteOAuthAppResponse_default_instance_; +PROTOBUF_CONSTEXPR ListOAuthAppsRequest::ListOAuthAppsRequest( + ::_pbi::ConstantInitialized) + : org_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct ListOAuthAppsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR ListOAuthAppsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ListOAuthAppsRequestDefaultTypeInternal() {} + union { + ListOAuthAppsRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListOAuthAppsRequestDefaultTypeInternal _ListOAuthAppsRequest_default_instance_; +PROTOBUF_CONSTEXPR ListOAuthAppsResponse::ListOAuthAppsResponse( + ::_pbi::ConstantInitialized) + : client_ids_(){} +struct ListOAuthAppsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ListOAuthAppsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ListOAuthAppsResponseDefaultTypeInternal() {} + union { + ListOAuthAppsResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListOAuthAppsResponseDefaultTypeInternal _ListOAuthAppsResponse_default_instance_; +PROTOBUF_CONSTEXPR OAuthConfig::OAuthConfig( + ::_pbi::ConstantInitialized) + : origin_uris_() + , redirect_uris_() + , enabled_grants_() + , _enabled_grants_cached_byte_size_(0) + , logout_uri_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , client_authentication_(0) + + , pkce_(0) + + , url_validation_(0) +{} +struct OAuthConfigDefaultTypeInternal { + PROTOBUF_CONSTEXPR OAuthConfigDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~OAuthConfigDefaultTypeInternal() {} + union { + OAuthConfig _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OAuthConfigDefaultTypeInternal _OAuthConfig_default_instance_; } // namespace v1 } // namespace app } // namespace viam -static ::_pb::Metadata file_level_metadata_app_2fv1_2fapp_2eproto[194]; -static const ::_pb::EnumDescriptor* file_level_enum_descriptors_app_2fv1_2fapp_2eproto[6]; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_app_2fv1_2fapp_2eproto = nullptr; -const ::uint32_t TableStruct_app_2fv1_2fapp_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Robot, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Robot, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Robot, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Robot, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Robot, _impl_.location_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Robot, _impl_.last_access_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Robot, _impl_.created_on_), - ~0u, - ~0u, - ~0u, - 0, - 1, - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPart, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPart, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPart, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPart, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPart, _impl_.dns_name_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPart, _impl_.secret_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPart, _impl_.robot_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPart, _impl_.location_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPart, _impl_.robot_config_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPart, _impl_.last_access_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPart, _impl_.user_supplied_info_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPart, _impl_.main_part_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPart, _impl_.fqdn_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPart, _impl_.local_fqdn_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPart, _impl_.created_on_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPart, _impl_.secrets_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPart, _impl_.last_updated_), - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - 0, - 1, - 2, - ~0u, - ~0u, - ~0u, - 3, - ~0u, - 4, - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPartHistoryEntry, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPartHistoryEntry, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPartHistoryEntry, _impl_.part_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPartHistoryEntry, _impl_.robot_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPartHistoryEntry, _impl_.when_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPartHistoryEntry, _impl_.old_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPartHistoryEntry, _impl_.edited_by_), - ~0u, - ~0u, - 0, - 1, - 2, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::AuthenticatorInfo, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::AuthenticatorInfo, _impl_.type_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::AuthenticatorInfo, _impl_.value_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::AuthenticatorInfo, _impl_.is_deactivated_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListOrganizationsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Organization, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Organization, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Organization, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Organization, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Organization, _impl_.created_on_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Organization, _impl_.public_namespace_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Organization, _impl_.default_region_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Organization, _impl_.cid_), - ~0u, - ~0u, - 1, - ~0u, - ~0u, - 0, - PROTOBUF_FIELD_OFFSET(::viam::app::v1::OrganizationMember, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::OrganizationMember, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::OrganizationMember, _impl_.user_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::OrganizationMember, _impl_.emails_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::OrganizationMember, _impl_.date_added_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::OrganizationMember, _impl_.last_login_), - ~0u, - ~0u, - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListOrganizationsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListOrganizationsResponse, _impl_.organizations_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::OrganizationInvite, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::OrganizationInvite, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::OrganizationInvite, _impl_.organization_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::OrganizationInvite, _impl_.email_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::OrganizationInvite, _impl_.created_on_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::OrganizationInvite, _impl_.authorizations_), - ~0u, - ~0u, - 0, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateOrganizationRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateOrganizationRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateOrganizationResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateOrganizationResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateOrganizationResponse, _impl_.organization_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetOrganizationRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetOrganizationRequest, _impl_.organization_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetOrganizationResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetOrganizationResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetOrganizationResponse, _impl_.organization_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetOrganizationNamespaceAvailabilityRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetOrganizationNamespaceAvailabilityRequest, _impl_.public_namespace_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse, _impl_.available_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateOrganizationRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateOrganizationRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateOrganizationRequest, _impl_.organization_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateOrganizationRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateOrganizationRequest, _impl_.public_namespace_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateOrganizationRequest, _impl_.region_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateOrganizationRequest, _impl_.cid_), - ~0u, - 0, - 1, - 2, - 3, - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateOrganizationResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateOrganizationResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateOrganizationResponse, _impl_.organization_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteOrganizationRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteOrganizationRequest, _impl_.organization_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteOrganizationResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListOrganizationMembersRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListOrganizationMembersRequest, _impl_.organization_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListOrganizationMembersResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListOrganizationMembersResponse, _impl_.organization_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListOrganizationMembersResponse, _impl_.members_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListOrganizationMembersResponse, _impl_.invites_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateOrganizationInviteRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateOrganizationInviteRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateOrganizationInviteRequest, _impl_.organization_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateOrganizationInviteRequest, _impl_.email_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateOrganizationInviteRequest, _impl_.authorizations_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateOrganizationInviteRequest, _impl_.send_email_invite_), - ~0u, - ~0u, - ~0u, - 0, - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateOrganizationInviteResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateOrganizationInviteResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateOrganizationInviteResponse, _impl_.invite_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest, _impl_.organization_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest, _impl_.email_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest, _impl_.add_authorizations_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest, _impl_.remove_authorizations_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse, _impl_.invite_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteOrganizationInviteRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteOrganizationInviteRequest, _impl_.organization_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteOrganizationInviteRequest, _impl_.email_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteOrganizationInviteResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ResendOrganizationInviteRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ResendOrganizationInviteRequest, _impl_.organization_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ResendOrganizationInviteRequest, _impl_.email_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ResendOrganizationInviteResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ResendOrganizationInviteResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ResendOrganizationInviteResponse, _impl_.invite_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteOrganizationMemberRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteOrganizationMemberRequest, _impl_.organization_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteOrganizationMemberRequest, _impl_.user_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteOrganizationMemberResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::BillingAddress, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::BillingAddress, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::BillingAddress, _impl_.address_line_1_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::BillingAddress, _impl_.address_line_2_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::BillingAddress, _impl_.city_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::BillingAddress, _impl_.state_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::BillingAddress, _impl_.zipcode_), - ~0u, - 0, - ~0u, - ~0u, - ~0u, - PROTOBUF_FIELD_OFFSET(::viam::app::v1::EnableBillingServiceRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::EnableBillingServiceRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::EnableBillingServiceRequest, _impl_.org_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::EnableBillingServiceRequest, _impl_.billing_address_), - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::EnableBillingServiceResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateBillingServiceRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateBillingServiceRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateBillingServiceRequest, _impl_.org_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateBillingServiceRequest, _impl_.billing_address_), - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateBillingServiceResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetBillingServiceConfigRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetBillingServiceConfigRequest, _impl_.org_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetBillingServiceConfigResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetBillingServiceConfigResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetBillingServiceConfigResponse, _impl_.billing_address_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetBillingServiceConfigResponse, _impl_.support_email_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetBillingServiceConfigResponse, _impl_.logo_url_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetBillingServiceConfigResponse, _impl_.billing_dashboard_url_), - 0, - ~0u, - ~0u, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::DisableBillingServiceRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::DisableBillingServiceRequest, _impl_.org_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::DisableBillingServiceResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::OrganizationSetSupportEmailRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::OrganizationSetSupportEmailRequest, _impl_.org_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::OrganizationSetSupportEmailRequest, _impl_.email_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::OrganizationSetSupportEmailResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::OrganizationGetSupportEmailRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::OrganizationGetSupportEmailRequest, _impl_.org_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::OrganizationGetSupportEmailResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::OrganizationGetSupportEmailResponse, _impl_.email_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::OrganizationIdentity, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::OrganizationIdentity, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::OrganizationIdentity, _impl_.name_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::LocationOrganization, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::LocationOrganization, _impl_.organization_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::LocationOrganization, _impl_.primary_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::LocationAuth, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::LocationAuth, _impl_.secret_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::LocationAuth, _impl_.location_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::LocationAuth, _impl_.secrets_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::StorageConfig, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::StorageConfig, _impl_.region_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Location, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Location, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Location, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Location, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Location, _impl_.parent_location_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Location, _impl_.auth_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Location, _impl_.organizations_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Location, _impl_.created_on_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Location, _impl_.robot_count_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Location, _impl_.config_), - ~0u, - ~0u, - ~0u, - 1, - ~0u, - 0, - ~0u, - 2, - PROTOBUF_FIELD_OFFSET(::viam::app::v1::SharedSecret, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::SharedSecret, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::SharedSecret, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::SharedSecret, _impl_.secret_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::SharedSecret, _impl_.created_on_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::SharedSecret, _impl_.state_), - ~0u, - ~0u, - 0, - ~0u, - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateLocationRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateLocationRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateLocationRequest, _impl_.organization_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateLocationRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateLocationRequest, _impl_.parent_location_id_), - ~0u, - ~0u, - 0, - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateLocationResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateLocationResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateLocationResponse, _impl_.location_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetLocationRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetLocationRequest, _impl_.location_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetLocationResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetLocationResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetLocationResponse, _impl_.location_), - 0, - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateLocationRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateLocationRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateLocationRequest, _impl_.location_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateLocationRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateLocationRequest, _impl_.parent_location_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateLocationRequest, _impl_.region_), - ~0u, - 0, - 1, - 2, - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateLocationResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateLocationResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateLocationResponse, _impl_.location_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteLocationRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteLocationRequest, _impl_.location_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteLocationResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetOrganizationsWithAccessToLocationRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetOrganizationsWithAccessToLocationRequest, _impl_.location_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetOrganizationsWithAccessToLocationResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetOrganizationsWithAccessToLocationResponse, _impl_.organization_identities_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListLocationsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListLocationsRequest, _impl_.organization_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ShareLocationRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ShareLocationRequest, _impl_.location_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ShareLocationRequest, _impl_.organization_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ShareLocationResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UnshareLocationRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UnshareLocationRequest, _impl_.location_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UnshareLocationRequest, _impl_.organization_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UnshareLocationResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListLocationsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListLocationsResponse, _impl_.locations_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateLocationSecretRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateLocationSecretRequest, _impl_.location_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateLocationSecretResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateLocationSecretResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateLocationSecretResponse, _impl_.auth_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteLocationSecretRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteLocationSecretRequest, _impl_.location_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteLocationSecretRequest, _impl_.secret_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteLocationSecretResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::LocationAuthRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::LocationAuthRequest, _impl_.location_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::LocationAuthResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::LocationAuthResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::LocationAuthResponse, _impl_.auth_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotRequest, _impl_.id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRoverRentalRobotsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRoverRentalRobotsRequest, _impl_.org_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RoverRentalRobot, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RoverRentalRobot, _impl_.robot_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RoverRentalRobot, _impl_.location_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RoverRentalRobot, _impl_.robot_name_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RoverRentalRobot, _impl_.robot_main_part_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRoverRentalRobotsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRoverRentalRobotsResponse, _impl_.robots_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotResponse, _impl_.robot_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartsRequest, _impl_.robot_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartsResponse, _impl_.parts_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartRequest, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartResponse, _impl_.part_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartResponse, _impl_.config_json_), - 0, - ~0u, - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartLogsRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartLogsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartLogsRequest, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartLogsRequest, _impl_.errors_only_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartLogsRequest, _impl_.filter_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartLogsRequest, _impl_.page_token_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartLogsRequest, _impl_.levels_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartLogsRequest, _impl_.start_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartLogsRequest, _impl_.end_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartLogsRequest, _impl_.limit_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartLogsRequest, _impl_.source_), - ~0u, - ~0u, - 0, - 1, - ~0u, - 3, - 4, - 5, - 2, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartLogsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartLogsResponse, _impl_.logs_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartLogsResponse, _impl_.next_page_token_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::TailRobotPartLogsRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::TailRobotPartLogsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::TailRobotPartLogsRequest, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::TailRobotPartLogsRequest, _impl_.errors_only_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::TailRobotPartLogsRequest, _impl_.filter_), - ~0u, - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::TailRobotPartLogsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::TailRobotPartLogsResponse, _impl_.logs_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartHistoryRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartHistoryRequest, _impl_.id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartHistoryResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartHistoryResponse, _impl_.history_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateRobotPartRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateRobotPartRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateRobotPartRequest, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateRobotPartRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateRobotPartRequest, _impl_.robot_config_), - ~0u, - ~0u, - 0, - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateRobotPartResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateRobotPartResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateRobotPartResponse, _impl_.part_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::NewRobotPartRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::NewRobotPartRequest, _impl_.robot_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::NewRobotPartRequest, _impl_.part_name_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::NewRobotPartResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::NewRobotPartResponse, _impl_.part_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteRobotPartRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteRobotPartRequest, _impl_.part_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotAPIKeysRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotAPIKeysRequest, _impl_.robot_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::APIKey, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::APIKey, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::APIKey, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::APIKey, _impl_.key_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::APIKey, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::APIKey, _impl_.created_on_), - ~0u, - ~0u, - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotAPIKeysResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotAPIKeysResponse, _impl_.api_keys_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteRobotPartResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Fragment, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Fragment, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Fragment, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Fragment, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Fragment, _impl_.fragment_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Fragment, _impl_.organization_owner_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Fragment, _impl_.public__), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Fragment, _impl_.created_on_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Fragment, _impl_.organization_name_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Fragment, _impl_.robot_part_count_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Fragment, _impl_.organization_count_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Fragment, _impl_.only_used_by_owner_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Fragment, _impl_.visibility_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Fragment, _impl_.last_updated_), - ~0u, - ~0u, - 0, - ~0u, - ~0u, - 1, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - 2, - PROTOBUF_FIELD_OFFSET(::viam::app::v1::FragmentHistoryEntry, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::FragmentHistoryEntry, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::FragmentHistoryEntry, _impl_.fragment_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::FragmentHistoryEntry, _impl_.edited_on_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::FragmentHistoryEntry, _impl_.old_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::FragmentHistoryEntry, _impl_.edited_by_), - ~0u, - 0, - 1, - 2, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::FragmentError, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::FragmentError, _impl_.error_type_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::FragmentError, _impl_.fragment_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::FragmentError, _impl_.detail_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ResolvedFragment, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ResolvedFragment, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ResolvedFragment, _impl_.fragment_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ResolvedFragment, _impl_.resolved_config_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ResolvedFragment, _impl_.error_), - ~0u, - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListFragmentsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListFragmentsRequest, _impl_.organization_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListFragmentsRequest, _impl_.show_public_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListFragmentsRequest, _impl_.fragment_visibility_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListFragmentsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListFragmentsResponse, _impl_.fragments_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetFragmentRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetFragmentRequest, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetFragmentResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetFragmentResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetFragmentResponse, _impl_.fragment_), - 0, - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateFragmentRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateFragmentRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateFragmentRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateFragmentRequest, _impl_.config_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateFragmentRequest, _impl_.organization_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateFragmentRequest, _impl_.visibility_), - ~0u, - 0, - ~0u, - 1, - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateFragmentResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateFragmentResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateFragmentResponse, _impl_.fragment_), - 0, - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateFragmentRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateFragmentRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateFragmentRequest, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateFragmentRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateFragmentRequest, _impl_.config_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateFragmentRequest, _impl_.public__), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateFragmentRequest, _impl_.visibility_), - ~0u, - ~0u, - 0, - 1, - 2, - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateFragmentResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateFragmentResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateFragmentResponse, _impl_.fragment_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteFragmentRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteFragmentRequest, _impl_.id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteFragmentResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetFragmentHistoryRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetFragmentHistoryRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetFragmentHistoryRequest, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetFragmentHistoryRequest, _impl_.page_token_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetFragmentHistoryRequest, _impl_.page_limit_), - ~0u, - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetFragmentHistoryResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetFragmentHistoryResponse, _impl_.history_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetFragmentHistoryResponse, _impl_.next_page_token_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListRobotsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListRobotsRequest, _impl_.location_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListMachineFragmentsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListMachineFragmentsRequest, _impl_.machine_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListMachineFragmentsRequest, _impl_.additional_fragment_ids_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListMachineFragmentsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListMachineFragmentsResponse, _impl_.fragments_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListMachineFragmentsResponse, _impl_.resolved_fragments_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListRobotsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListRobotsResponse, _impl_.robots_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::NewRobotRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::NewRobotRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::NewRobotRequest, _impl_.location_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::NewRobotResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::NewRobotResponse, _impl_.id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateRobotRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateRobotRequest, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateRobotRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateRobotRequest, _impl_.location_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateRobotResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateRobotResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateRobotResponse, _impl_.robot_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteRobotRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteRobotRequest, _impl_.id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteRobotResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::MarkPartAsMainRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::MarkPartAsMainRequest, _impl_.part_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::MarkPartAsMainResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::MarkPartForRestartRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::MarkPartForRestartRequest, _impl_.part_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::MarkPartForRestartResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateRobotPartSecretRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateRobotPartSecretRequest, _impl_.part_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateRobotPartSecretResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateRobotPartSecretResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateRobotPartSecretResponse, _impl_.part_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteRobotPartSecretRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteRobotPartSecretRequest, _impl_.part_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteRobotPartSecretRequest, _impl_.secret_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteRobotPartSecretResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Authorization, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Authorization, _impl_.authorization_type_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Authorization, _impl_.authorization_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Authorization, _impl_.resource_type_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Authorization, _impl_.resource_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Authorization, _impl_.identity_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Authorization, _impl_.organization_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Authorization, _impl_.identity_type_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::AddRoleRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::AddRoleRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::AddRoleRequest, _impl_.authorization_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::AddRoleResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RemoveRoleRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RemoveRoleRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RemoveRoleRequest, _impl_.authorization_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RemoveRoleResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ChangeRoleRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ChangeRoleRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ChangeRoleRequest, _impl_.old_authorization_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ChangeRoleRequest, _impl_.new_authorization_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ChangeRoleResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListAuthorizationsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListAuthorizationsRequest, _impl_.organization_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListAuthorizationsRequest, _impl_.resource_ids_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListAuthorizationsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListAuthorizationsResponse, _impl_.authorizations_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CheckPermissionsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CheckPermissionsRequest, _impl_.permissions_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::AuthorizedPermissions, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::AuthorizedPermissions, _impl_.resource_type_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::AuthorizedPermissions, _impl_.resource_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::AuthorizedPermissions, _impl_.permissions_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CheckPermissionsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CheckPermissionsResponse, _impl_.authorized_permissions_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleVersion, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleVersion, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleVersion, _impl_.version_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleVersion, _impl_.files_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleVersion, _impl_.models_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleVersion, _impl_.entrypoint_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleVersion, _impl_.first_run_), - ~0u, - ~0u, - ~0u, - ~0u, - 0, - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleMetadata, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleMetadata, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleMetadata, _impl_.models_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleMetadata, _impl_.versions_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleMetadata, _impl_.entrypoint_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleMetadata, _impl_.first_run_), - ~0u, - ~0u, - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::MLModelMetadata, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::MLModelMetadata, _impl_.versions_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::MLModelMetadata, _impl_.model_type_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::MLModelMetadata, _impl_.model_framework_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::MLTrainingVersion, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::MLTrainingVersion, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::MLTrainingVersion, _impl_.version_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::MLTrainingVersion, _impl_.created_on_), - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::MLTrainingMetadata, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::MLTrainingMetadata, _impl_.versions_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::MLTrainingMetadata, _impl_.model_type_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::MLTrainingMetadata, _impl_.model_framework_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::MLTrainingMetadata, _impl_.draft_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegistryItem, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegistryItem, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegistryItem, _impl_._oneof_case_[0]), - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegistryItem, _impl_.item_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegistryItem, _impl_.organization_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegistryItem, _impl_.public_namespace_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegistryItem, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegistryItem, _impl_.type_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegistryItem, _impl_.visibility_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegistryItem, _impl_.url_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegistryItem, _impl_.description_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegistryItem, _impl_.total_robot_usage_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegistryItem, _impl_.total_external_robot_usage_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegistryItem, _impl_.total_organization_usage_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegistryItem, _impl_.total_external_organization_usage_), - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegistryItem, _impl_.created_at_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegistryItem, _impl_.updated_at_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegistryItem, _impl_.metadata_), - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRegistryItemRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRegistryItemRequest, _impl_.item_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRegistryItemResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRegistryItemResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRegistryItemResponse, _impl_.item_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateRegistryItemRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateRegistryItemRequest, _impl_.organization_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateRegistryItemRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateRegistryItemRequest, _impl_.type_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateRegistryItemResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateRegistryItemRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateRegistryItemRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateRegistryItemRequest, _impl_.item_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateRegistryItemRequest, _impl_.type_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateRegistryItemRequest, _impl_.description_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateRegistryItemRequest, _impl_.visibility_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateRegistryItemRequest, _impl_.url_), - ~0u, - ~0u, - ~0u, - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateRegistryItemResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListRegistryItemsRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListRegistryItemsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListRegistryItemsRequest, _impl_.organization_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListRegistryItemsRequest, _impl_.types_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListRegistryItemsRequest, _impl_.visibilities_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListRegistryItemsRequest, _impl_.platforms_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListRegistryItemsRequest, _impl_.statuses_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListRegistryItemsRequest, _impl_.search_term_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListRegistryItemsRequest, _impl_.page_token_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListRegistryItemsRequest, _impl_.public_namespaces_), - 0, - ~0u, - ~0u, - ~0u, - ~0u, - 1, - 2, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListRegistryItemsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListRegistryItemsResponse, _impl_.items_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteRegistryItemRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteRegistryItemRequest, _impl_.item_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteRegistryItemResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::TransferRegistryItemRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::TransferRegistryItemRequest, _impl_.item_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::TransferRegistryItemRequest, _impl_.new_public_namespace_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::TransferRegistryItemResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateModuleRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateModuleRequest, _impl_.organization_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateModuleRequest, _impl_.name_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateModuleResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateModuleResponse, _impl_.module_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateModuleResponse, _impl_.url_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateModuleRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateModuleRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateModuleRequest, _impl_.module_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateModuleRequest, _impl_.visibility_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateModuleRequest, _impl_.url_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateModuleRequest, _impl_.description_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateModuleRequest, _impl_.models_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateModuleRequest, _impl_.entrypoint_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateModuleRequest, _impl_.first_run_), - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateModuleResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateModuleResponse, _impl_.url_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Model, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Model, _impl_.api_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Model, _impl_.model_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleFileInfo, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleFileInfo, _impl_.module_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleFileInfo, _impl_.version_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleFileInfo, _impl_.platform_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleFileInfo, _impl_.platform_tags_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UploadModuleFileRequest, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UploadModuleFileRequest, _impl_._oneof_case_[0]), - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UploadModuleFileRequest, _impl_.module_file_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UploadModuleFileResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UploadModuleFileResponse, _impl_.url_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetModuleRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetModuleRequest, _impl_.module_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetModuleResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetModuleResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetModuleResponse, _impl_.module_), - 0, - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Module, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Module, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Module, _impl_.module_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Module, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Module, _impl_.visibility_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Module, _impl_.versions_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Module, _impl_.url_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Module, _impl_.description_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Module, _impl_.models_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Module, _impl_.total_robot_usage_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Module, _impl_.total_organization_usage_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Module, _impl_.organization_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Module, _impl_.entrypoint_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Module, _impl_.public_namespace_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Module, _impl_.first_run_), - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - 0, - PROTOBUF_FIELD_OFFSET(::viam::app::v1::VersionHistory, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::VersionHistory, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::VersionHistory, _impl_.version_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::VersionHistory, _impl_.files_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::VersionHistory, _impl_.models_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::VersionHistory, _impl_.entrypoint_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::VersionHistory, _impl_.first_run_), - ~0u, - ~0u, - ~0u, - ~0u, - 0, - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Uploads, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Uploads, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Uploads, _impl_.platform_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Uploads, _impl_.uploaded_at_), - ~0u, - 0, - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListModulesRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListModulesRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListModulesRequest, _impl_.organization_id_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListModulesResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListModulesResponse, _impl_.modules_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetUserIDByEmailRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetUserIDByEmailRequest, _impl_.email_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetUserIDByEmailResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetUserIDByEmailResponse, _impl_.user_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListOrganizationsByUserRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListOrganizationsByUserRequest, _impl_.user_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::OrgDetails, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::OrgDetails, _impl_.org_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::OrgDetails, _impl_.org_name_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListOrganizationsByUserResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListOrganizationsByUserResponse, _impl_.orgs_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateKeyRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateKeyRequest, _impl_.authorizations_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateKeyRequest, _impl_.name_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateKeyResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateKeyResponse, _impl_.key_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateKeyResponse, _impl_.id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteKeyRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteKeyRequest, _impl_.id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteKeyResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RenameKeyRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RenameKeyRequest, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RenameKeyRequest, _impl_.name_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RenameKeyResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RenameKeyResponse, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RenameKeyResponse, _impl_.name_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::AuthorizationDetails, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::AuthorizationDetails, _impl_.authorization_type_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::AuthorizationDetails, _impl_.authorization_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::AuthorizationDetails, _impl_.resource_type_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::AuthorizationDetails, _impl_.resource_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::AuthorizationDetails, _impl_.org_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::APIKeyWithAuthorizations, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::APIKeyWithAuthorizations, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::APIKeyWithAuthorizations, _impl_.api_key_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::APIKeyWithAuthorizations, _impl_.authorizations_), - 0, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListKeysRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListKeysRequest, _impl_.org_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListKeysResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListKeysResponse, _impl_.api_keys_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RotateKeyRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RotateKeyRequest, _impl_.id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RotateKeyResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RotateKeyResponse, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RotateKeyResponse, _impl_.key_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsRequest, _impl_.id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse, _impl_.key_), -}; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, 13, -1, sizeof(::viam::app::v1::Robot)}, - {18, 41, -1, sizeof(::viam::app::v1::RobotPart)}, - {56, 69, -1, sizeof(::viam::app::v1::RobotPartHistoryEntry)}, - {74, -1, -1, sizeof(::viam::app::v1::AuthenticatorInfo)}, - {85, -1, -1, sizeof(::viam::app::v1::ListOrganizationsRequest)}, - {93, 107, -1, sizeof(::viam::app::v1::Organization)}, - {113, 125, -1, sizeof(::viam::app::v1::OrganizationMember)}, - {129, -1, -1, sizeof(::viam::app::v1::ListOrganizationsResponse)}, - {138, 150, -1, sizeof(::viam::app::v1::OrganizationInvite)}, - {154, -1, -1, sizeof(::viam::app::v1::CreateOrganizationRequest)}, - {163, 172, -1, sizeof(::viam::app::v1::CreateOrganizationResponse)}, - {173, -1, -1, sizeof(::viam::app::v1::GetOrganizationRequest)}, - {182, 191, -1, sizeof(::viam::app::v1::GetOrganizationResponse)}, - {192, -1, -1, sizeof(::viam::app::v1::GetOrganizationNamespaceAvailabilityRequest)}, - {201, -1, -1, sizeof(::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse)}, - {210, 223, -1, sizeof(::viam::app::v1::UpdateOrganizationRequest)}, - {228, 237, -1, sizeof(::viam::app::v1::UpdateOrganizationResponse)}, - {238, -1, -1, sizeof(::viam::app::v1::DeleteOrganizationRequest)}, - {247, -1, -1, sizeof(::viam::app::v1::DeleteOrganizationResponse)}, - {255, -1, -1, sizeof(::viam::app::v1::ListOrganizationMembersRequest)}, - {264, -1, -1, sizeof(::viam::app::v1::ListOrganizationMembersResponse)}, - {275, 287, -1, sizeof(::viam::app::v1::CreateOrganizationInviteRequest)}, - {291, 300, -1, sizeof(::viam::app::v1::CreateOrganizationInviteResponse)}, - {301, -1, -1, sizeof(::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest)}, - {313, 322, -1, sizeof(::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse)}, - {323, -1, -1, sizeof(::viam::app::v1::DeleteOrganizationInviteRequest)}, - {333, -1, -1, sizeof(::viam::app::v1::DeleteOrganizationInviteResponse)}, - {341, -1, -1, sizeof(::viam::app::v1::ResendOrganizationInviteRequest)}, - {351, 360, -1, sizeof(::viam::app::v1::ResendOrganizationInviteResponse)}, - {361, -1, -1, sizeof(::viam::app::v1::DeleteOrganizationMemberRequest)}, - {371, -1, -1, sizeof(::viam::app::v1::DeleteOrganizationMemberResponse)}, - {379, 392, -1, sizeof(::viam::app::v1::BillingAddress)}, - {397, 407, -1, sizeof(::viam::app::v1::EnableBillingServiceRequest)}, - {409, -1, -1, sizeof(::viam::app::v1::EnableBillingServiceResponse)}, - {417, 427, -1, sizeof(::viam::app::v1::UpdateBillingServiceRequest)}, - {429, -1, -1, sizeof(::viam::app::v1::UpdateBillingServiceResponse)}, - {437, -1, -1, sizeof(::viam::app::v1::GetBillingServiceConfigRequest)}, - {446, 458, -1, sizeof(::viam::app::v1::GetBillingServiceConfigResponse)}, - {462, -1, -1, sizeof(::viam::app::v1::DisableBillingServiceRequest)}, - {471, -1, -1, sizeof(::viam::app::v1::DisableBillingServiceResponse)}, - {479, -1, -1, sizeof(::viam::app::v1::OrganizationSetSupportEmailRequest)}, - {489, -1, -1, sizeof(::viam::app::v1::OrganizationSetSupportEmailResponse)}, - {497, -1, -1, sizeof(::viam::app::v1::OrganizationGetSupportEmailRequest)}, - {506, -1, -1, sizeof(::viam::app::v1::OrganizationGetSupportEmailResponse)}, - {515, -1, -1, sizeof(::viam::app::v1::OrganizationIdentity)}, - {525, -1, -1, sizeof(::viam::app::v1::LocationOrganization)}, - {535, -1, -1, sizeof(::viam::app::v1::LocationAuth)}, - {546, -1, -1, sizeof(::viam::app::v1::StorageConfig)}, - {555, 571, -1, sizeof(::viam::app::v1::Location)}, - {579, 591, -1, sizeof(::viam::app::v1::SharedSecret)}, - {595, 606, -1, sizeof(::viam::app::v1::CreateLocationRequest)}, - {609, 618, -1, sizeof(::viam::app::v1::CreateLocationResponse)}, - {619, -1, -1, sizeof(::viam::app::v1::GetLocationRequest)}, - {628, 637, -1, sizeof(::viam::app::v1::GetLocationResponse)}, - {638, 650, -1, sizeof(::viam::app::v1::UpdateLocationRequest)}, - {654, 663, -1, sizeof(::viam::app::v1::UpdateLocationResponse)}, - {664, -1, -1, sizeof(::viam::app::v1::DeleteLocationRequest)}, - {673, -1, -1, sizeof(::viam::app::v1::DeleteLocationResponse)}, - {681, -1, -1, sizeof(::viam::app::v1::GetOrganizationsWithAccessToLocationRequest)}, - {690, -1, -1, sizeof(::viam::app::v1::GetOrganizationsWithAccessToLocationResponse)}, - {699, -1, -1, sizeof(::viam::app::v1::ListLocationsRequest)}, - {708, -1, -1, sizeof(::viam::app::v1::ShareLocationRequest)}, - {718, -1, -1, sizeof(::viam::app::v1::ShareLocationResponse)}, - {726, -1, -1, sizeof(::viam::app::v1::UnshareLocationRequest)}, - {736, -1, -1, sizeof(::viam::app::v1::UnshareLocationResponse)}, - {744, -1, -1, sizeof(::viam::app::v1::ListLocationsResponse)}, - {753, -1, -1, sizeof(::viam::app::v1::CreateLocationSecretRequest)}, - {762, 771, -1, sizeof(::viam::app::v1::CreateLocationSecretResponse)}, - {772, -1, -1, sizeof(::viam::app::v1::DeleteLocationSecretRequest)}, - {782, -1, -1, sizeof(::viam::app::v1::DeleteLocationSecretResponse)}, - {790, -1, -1, sizeof(::viam::app::v1::LocationAuthRequest)}, - {799, 808, -1, sizeof(::viam::app::v1::LocationAuthResponse)}, - {809, -1, -1, sizeof(::viam::app::v1::GetRobotRequest)}, - {818, -1, -1, sizeof(::viam::app::v1::GetRoverRentalRobotsRequest)}, - {827, -1, -1, sizeof(::viam::app::v1::RoverRentalRobot)}, - {839, -1, -1, sizeof(::viam::app::v1::GetRoverRentalRobotsResponse)}, - {848, 857, -1, sizeof(::viam::app::v1::GetRobotResponse)}, - {858, -1, -1, sizeof(::viam::app::v1::GetRobotPartsRequest)}, - {867, -1, -1, sizeof(::viam::app::v1::GetRobotPartsResponse)}, - {876, -1, -1, sizeof(::viam::app::v1::GetRobotPartRequest)}, - {885, 895, -1, sizeof(::viam::app::v1::GetRobotPartResponse)}, - {897, 914, -1, sizeof(::viam::app::v1::GetRobotPartLogsRequest)}, - {923, -1, -1, sizeof(::viam::app::v1::GetRobotPartLogsResponse)}, - {933, 944, -1, sizeof(::viam::app::v1::TailRobotPartLogsRequest)}, - {947, -1, -1, sizeof(::viam::app::v1::TailRobotPartLogsResponse)}, - {956, -1, -1, sizeof(::viam::app::v1::GetRobotPartHistoryRequest)}, - {965, -1, -1, sizeof(::viam::app::v1::GetRobotPartHistoryResponse)}, - {974, 985, -1, sizeof(::viam::app::v1::UpdateRobotPartRequest)}, - {988, 997, -1, sizeof(::viam::app::v1::UpdateRobotPartResponse)}, - {998, -1, -1, sizeof(::viam::app::v1::NewRobotPartRequest)}, - {1008, -1, -1, sizeof(::viam::app::v1::NewRobotPartResponse)}, - {1017, -1, -1, sizeof(::viam::app::v1::DeleteRobotPartRequest)}, - {1026, -1, -1, sizeof(::viam::app::v1::GetRobotAPIKeysRequest)}, - {1035, 1047, -1, sizeof(::viam::app::v1::APIKey)}, - {1051, -1, -1, sizeof(::viam::app::v1::GetRobotAPIKeysResponse)}, - {1060, -1, -1, sizeof(::viam::app::v1::DeleteRobotPartResponse)}, - {1068, 1088, -1, sizeof(::viam::app::v1::Fragment)}, - {1100, 1112, -1, sizeof(::viam::app::v1::FragmentHistoryEntry)}, - {1116, -1, -1, sizeof(::viam::app::v1::FragmentError)}, - {1127, 1138, -1, sizeof(::viam::app::v1::ResolvedFragment)}, - {1141, -1, -1, sizeof(::viam::app::v1::ListFragmentsRequest)}, - {1152, -1, -1, sizeof(::viam::app::v1::ListFragmentsResponse)}, - {1161, -1, -1, sizeof(::viam::app::v1::GetFragmentRequest)}, - {1170, 1179, -1, sizeof(::viam::app::v1::GetFragmentResponse)}, - {1180, 1192, -1, sizeof(::viam::app::v1::CreateFragmentRequest)}, - {1196, 1205, -1, sizeof(::viam::app::v1::CreateFragmentResponse)}, - {1206, 1219, -1, sizeof(::viam::app::v1::UpdateFragmentRequest)}, - {1224, 1233, -1, sizeof(::viam::app::v1::UpdateFragmentResponse)}, - {1234, -1, -1, sizeof(::viam::app::v1::DeleteFragmentRequest)}, - {1243, -1, -1, sizeof(::viam::app::v1::DeleteFragmentResponse)}, - {1251, 1262, -1, sizeof(::viam::app::v1::GetFragmentHistoryRequest)}, - {1265, -1, -1, sizeof(::viam::app::v1::GetFragmentHistoryResponse)}, - {1275, -1, -1, sizeof(::viam::app::v1::ListRobotsRequest)}, - {1284, -1, -1, sizeof(::viam::app::v1::ListMachineFragmentsRequest)}, - {1294, -1, -1, sizeof(::viam::app::v1::ListMachineFragmentsResponse)}, - {1304, -1, -1, sizeof(::viam::app::v1::ListRobotsResponse)}, - {1313, -1, -1, sizeof(::viam::app::v1::NewRobotRequest)}, - {1323, -1, -1, sizeof(::viam::app::v1::NewRobotResponse)}, - {1332, -1, -1, sizeof(::viam::app::v1::UpdateRobotRequest)}, - {1343, 1352, -1, sizeof(::viam::app::v1::UpdateRobotResponse)}, - {1353, -1, -1, sizeof(::viam::app::v1::DeleteRobotRequest)}, - {1362, -1, -1, sizeof(::viam::app::v1::DeleteRobotResponse)}, - {1370, -1, -1, sizeof(::viam::app::v1::MarkPartAsMainRequest)}, - {1379, -1, -1, sizeof(::viam::app::v1::MarkPartAsMainResponse)}, - {1387, -1, -1, sizeof(::viam::app::v1::MarkPartForRestartRequest)}, - {1396, -1, -1, sizeof(::viam::app::v1::MarkPartForRestartResponse)}, - {1404, -1, -1, sizeof(::viam::app::v1::CreateRobotPartSecretRequest)}, - {1413, 1422, -1, sizeof(::viam::app::v1::CreateRobotPartSecretResponse)}, - {1423, -1, -1, sizeof(::viam::app::v1::DeleteRobotPartSecretRequest)}, - {1433, -1, -1, sizeof(::viam::app::v1::DeleteRobotPartSecretResponse)}, - {1441, -1, -1, sizeof(::viam::app::v1::Authorization)}, - {1456, 1465, -1, sizeof(::viam::app::v1::AddRoleRequest)}, - {1466, -1, -1, sizeof(::viam::app::v1::AddRoleResponse)}, - {1474, 1483, -1, sizeof(::viam::app::v1::RemoveRoleRequest)}, - {1484, -1, -1, sizeof(::viam::app::v1::RemoveRoleResponse)}, - {1492, 1502, -1, sizeof(::viam::app::v1::ChangeRoleRequest)}, - {1504, -1, -1, sizeof(::viam::app::v1::ChangeRoleResponse)}, - {1512, -1, -1, sizeof(::viam::app::v1::ListAuthorizationsRequest)}, - {1522, -1, -1, sizeof(::viam::app::v1::ListAuthorizationsResponse)}, - {1531, -1, -1, sizeof(::viam::app::v1::CheckPermissionsRequest)}, - {1540, -1, -1, sizeof(::viam::app::v1::AuthorizedPermissions)}, - {1551, -1, -1, sizeof(::viam::app::v1::CheckPermissionsResponse)}, - {1560, 1573, -1, sizeof(::viam::app::v1::ModuleVersion)}, - {1578, 1590, -1, sizeof(::viam::app::v1::ModuleMetadata)}, - {1594, -1, -1, sizeof(::viam::app::v1::MLModelMetadata)}, - {1605, 1615, -1, sizeof(::viam::app::v1::MLTrainingVersion)}, - {1617, -1, -1, sizeof(::viam::app::v1::MLTrainingMetadata)}, - {1629, 1655, -1, sizeof(::viam::app::v1::RegistryItem)}, - {1672, -1, -1, sizeof(::viam::app::v1::GetRegistryItemRequest)}, - {1681, 1690, -1, sizeof(::viam::app::v1::GetRegistryItemResponse)}, - {1691, -1, -1, sizeof(::viam::app::v1::CreateRegistryItemRequest)}, - {1702, -1, -1, sizeof(::viam::app::v1::CreateRegistryItemResponse)}, - {1710, 1723, -1, sizeof(::viam::app::v1::UpdateRegistryItemRequest)}, - {1728, -1, -1, sizeof(::viam::app::v1::UpdateRegistryItemResponse)}, - {1736, 1752, -1, sizeof(::viam::app::v1::ListRegistryItemsRequest)}, - {1760, -1, -1, sizeof(::viam::app::v1::ListRegistryItemsResponse)}, - {1769, -1, -1, sizeof(::viam::app::v1::DeleteRegistryItemRequest)}, - {1778, -1, -1, sizeof(::viam::app::v1::DeleteRegistryItemResponse)}, - {1786, -1, -1, sizeof(::viam::app::v1::TransferRegistryItemRequest)}, - {1796, -1, -1, sizeof(::viam::app::v1::TransferRegistryItemResponse)}, - {1804, -1, -1, sizeof(::viam::app::v1::CreateModuleRequest)}, - {1814, -1, -1, sizeof(::viam::app::v1::CreateModuleResponse)}, - {1824, 1839, -1, sizeof(::viam::app::v1::UpdateModuleRequest)}, - {1846, -1, -1, sizeof(::viam::app::v1::UpdateModuleResponse)}, - {1855, -1, -1, sizeof(::viam::app::v1::Model)}, - {1865, -1, -1, sizeof(::viam::app::v1::ModuleFileInfo)}, - {1877, -1, -1, sizeof(::viam::app::v1::UploadModuleFileRequest)}, - {1888, -1, -1, sizeof(::viam::app::v1::UploadModuleFileResponse)}, - {1897, -1, -1, sizeof(::viam::app::v1::GetModuleRequest)}, - {1906, 1915, -1, sizeof(::viam::app::v1::GetModuleResponse)}, - {1916, 1937, -1, sizeof(::viam::app::v1::Module)}, - {1950, 1963, -1, sizeof(::viam::app::v1::VersionHistory)}, - {1968, 1978, -1, sizeof(::viam::app::v1::Uploads)}, - {1980, 1989, -1, sizeof(::viam::app::v1::ListModulesRequest)}, - {1990, -1, -1, sizeof(::viam::app::v1::ListModulesResponse)}, - {1999, -1, -1, sizeof(::viam::app::v1::GetUserIDByEmailRequest)}, - {2008, -1, -1, sizeof(::viam::app::v1::GetUserIDByEmailResponse)}, - {2017, -1, -1, sizeof(::viam::app::v1::ListOrganizationsByUserRequest)}, - {2026, -1, -1, sizeof(::viam::app::v1::OrgDetails)}, - {2036, -1, -1, sizeof(::viam::app::v1::ListOrganizationsByUserResponse)}, - {2045, -1, -1, sizeof(::viam::app::v1::CreateKeyRequest)}, - {2055, -1, -1, sizeof(::viam::app::v1::CreateKeyResponse)}, - {2065, -1, -1, sizeof(::viam::app::v1::DeleteKeyRequest)}, - {2074, -1, -1, sizeof(::viam::app::v1::DeleteKeyResponse)}, - {2082, -1, -1, sizeof(::viam::app::v1::RenameKeyRequest)}, - {2092, -1, -1, sizeof(::viam::app::v1::RenameKeyResponse)}, - {2102, -1, -1, sizeof(::viam::app::v1::AuthorizationDetails)}, - {2115, 2125, -1, sizeof(::viam::app::v1::APIKeyWithAuthorizations)}, - {2127, -1, -1, sizeof(::viam::app::v1::ListKeysRequest)}, - {2136, -1, -1, sizeof(::viam::app::v1::ListKeysResponse)}, - {2145, -1, -1, sizeof(::viam::app::v1::RotateKeyRequest)}, - {2154, -1, -1, sizeof(::viam::app::v1::RotateKeyResponse)}, - {2164, -1, -1, sizeof(::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsRequest)}, - {2173, -1, -1, sizeof(::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse)}, +static ::_pb::Metadata file_level_metadata_app_2fv1_2fapp_2eproto[219]; +static const ::_pb::EnumDescriptor* file_level_enum_descriptors_app_2fv1_2fapp_2eproto[10]; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_app_2fv1_2fapp_2eproto = nullptr; + +const uint32_t TableStruct_app_2fv1_2fapp_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Robot, _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::Robot, id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Robot, name_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Robot, location_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Robot, last_access_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Robot, created_on_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPart, _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::RobotPart, id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPart, name_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPart, dns_name_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPart, secret_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPart, robot_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPart, location_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPart, robot_config_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPart, last_access_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPart, user_supplied_info_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPart, main_part_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPart, fqdn_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPart, local_fqdn_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPart, created_on_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPart, secrets_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPart, last_updated_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPartHistoryEntry, _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::RobotPartHistoryEntry, part_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPartHistoryEntry, robot_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPartHistoryEntry, when_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPartHistoryEntry, old_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotPartHistoryEntry, edited_by_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::AuthenticatorInfo, _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::AuthenticatorInfo, type_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::AuthenticatorInfo, value_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::AuthenticatorInfo, is_deactivated_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListOrganizationsRequest, _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::Organization, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Organization, _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::Organization, id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Organization, name_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Organization, created_on_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Organization, public_namespace_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Organization, default_region_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Organization, cid_), + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + 0, + PROTOBUF_FIELD_OFFSET(::viam::app::v1::OrganizationMember, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::OrganizationMember, _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::OrganizationMember, user_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::OrganizationMember, emails_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::OrganizationMember, date_added_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::OrganizationMember, last_login_), + ~0u, + ~0u, + ~0u, + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListOrganizationsResponse, _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::ListOrganizationsResponse, organizations_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::OrganizationInvite, _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::OrganizationInvite, organization_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::OrganizationInvite, email_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::OrganizationInvite, created_on_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::OrganizationInvite, authorizations_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateOrganizationRequest, _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::CreateOrganizationRequest, name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateOrganizationResponse, _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::CreateOrganizationResponse, organization_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetOrganizationRequest, _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::GetOrganizationRequest, organization_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetOrganizationResponse, _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::GetOrganizationResponse, organization_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetOrganizationNamespaceAvailabilityRequest, _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::GetOrganizationNamespaceAvailabilityRequest, public_namespace_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse, _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::GetOrganizationNamespaceAvailabilityResponse, available_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateOrganizationRequest, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateOrganizationRequest, _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::UpdateOrganizationRequest, organization_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateOrganizationRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateOrganizationRequest, public_namespace_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateOrganizationRequest, region_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateOrganizationRequest, cid_), + ~0u, + 0, + 1, + 2, + 3, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateOrganizationResponse, _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::UpdateOrganizationResponse, organization_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteOrganizationRequest, _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::DeleteOrganizationRequest, organization_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteOrganizationResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListOrganizationMembersRequest, _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::ListOrganizationMembersRequest, organization_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListOrganizationMembersResponse, _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::ListOrganizationMembersResponse, organization_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListOrganizationMembersResponse, members_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListOrganizationMembersResponse, invites_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateOrganizationInviteRequest, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateOrganizationInviteRequest, _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::CreateOrganizationInviteRequest, organization_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateOrganizationInviteRequest, email_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateOrganizationInviteRequest, authorizations_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateOrganizationInviteRequest, send_email_invite_), + ~0u, + ~0u, + ~0u, + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateOrganizationInviteResponse, _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::CreateOrganizationInviteResponse, invite_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest, _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::UpdateOrganizationInviteAuthorizationsRequest, organization_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest, email_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest, add_authorizations_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest, remove_authorizations_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse, _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::UpdateOrganizationInviteAuthorizationsResponse, invite_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteOrganizationInviteRequest, _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::DeleteOrganizationInviteRequest, organization_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteOrganizationInviteRequest, email_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteOrganizationInviteResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ResendOrganizationInviteRequest, _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::ResendOrganizationInviteRequest, organization_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ResendOrganizationInviteRequest, email_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ResendOrganizationInviteResponse, _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::ResendOrganizationInviteResponse, invite_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteOrganizationMemberRequest, _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::DeleteOrganizationMemberRequest, organization_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteOrganizationMemberRequest, user_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteOrganizationMemberResponse, _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::BillingAddress, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::BillingAddress, _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::BillingAddress, address_line_1_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::BillingAddress, address_line_2_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::BillingAddress, city_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::BillingAddress, state_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::BillingAddress, zipcode_), + ~0u, + 0, + ~0u, + ~0u, + ~0u, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::EnableBillingServiceRequest, _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::EnableBillingServiceRequest, org_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::EnableBillingServiceRequest, billing_address_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::EnableBillingServiceResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateBillingServiceRequest, _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::UpdateBillingServiceRequest, org_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateBillingServiceRequest, billing_address_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateBillingServiceResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetBillingServiceConfigRequest, _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::GetBillingServiceConfigRequest, org_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetBillingServiceConfigResponse, _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::GetBillingServiceConfigResponse, billing_address_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetBillingServiceConfigResponse, support_email_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetBillingServiceConfigResponse, logo_url_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetBillingServiceConfigResponse, billing_dashboard_url_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::DisableBillingServiceRequest, _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::DisableBillingServiceRequest, org_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::DisableBillingServiceResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::OrganizationSetSupportEmailRequest, _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::OrganizationSetSupportEmailRequest, org_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::OrganizationSetSupportEmailRequest, email_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::OrganizationSetSupportEmailResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::OrganizationGetSupportEmailRequest, _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::OrganizationGetSupportEmailRequest, org_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::OrganizationGetSupportEmailResponse, _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::OrganizationGetSupportEmailResponse, email_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::OrganizationIdentity, _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::OrganizationIdentity, id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::OrganizationIdentity, name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::LocationOrganization, _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::LocationOrganization, organization_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::LocationOrganization, primary_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::LocationAuth, _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::LocationAuth, secret_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::LocationAuth, location_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::LocationAuth, secrets_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::StorageConfig, _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::StorageConfig, region_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Location, _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::Location, id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Location, name_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Location, parent_location_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Location, auth_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Location, organizations_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Location, created_on_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Location, robot_count_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Location, config_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::SharedSecret, _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::SharedSecret, id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::SharedSecret, secret_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::SharedSecret, created_on_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::SharedSecret, state_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateLocationRequest, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateLocationRequest, _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::CreateLocationRequest, organization_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateLocationRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateLocationRequest, parent_location_id_), + ~0u, + ~0u, + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateLocationResponse, _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::CreateLocationResponse, location_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetLocationRequest, _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::GetLocationRequest, location_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetLocationResponse, _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::GetLocationResponse, location_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateLocationRequest, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateLocationRequest, _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::UpdateLocationRequest, location_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateLocationRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateLocationRequest, parent_location_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateLocationRequest, region_), + ~0u, + 0, + 1, + 2, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateLocationResponse, _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::UpdateLocationResponse, location_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteLocationRequest, _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::DeleteLocationRequest, location_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteLocationResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetOrganizationsWithAccessToLocationRequest, _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::GetOrganizationsWithAccessToLocationRequest, location_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetOrganizationsWithAccessToLocationResponse, _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::GetOrganizationsWithAccessToLocationResponse, organization_identities_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListLocationsRequest, _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::ListLocationsRequest, organization_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ShareLocationRequest, _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::ShareLocationRequest, location_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ShareLocationRequest, organization_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ShareLocationResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UnshareLocationRequest, _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::UnshareLocationRequest, location_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UnshareLocationRequest, organization_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UnshareLocationResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListLocationsResponse, _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::ListLocationsResponse, locations_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateLocationSecretRequest, _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::CreateLocationSecretRequest, location_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateLocationSecretResponse, _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::CreateLocationSecretResponse, auth_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteLocationSecretRequest, _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::DeleteLocationSecretRequest, location_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteLocationSecretRequest, secret_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteLocationSecretResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::LocationAuthRequest, _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::LocationAuthRequest, location_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::LocationAuthResponse, _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::LocationAuthResponse, auth_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotRequest, _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::GetRobotRequest, id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRoverRentalRobotsRequest, _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::GetRoverRentalRobotsRequest, org_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RoverRentalRobot, _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::RoverRentalRobot, robot_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RoverRentalRobot, location_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RoverRentalRobot, robot_name_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RoverRentalRobot, robot_main_part_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRoverRentalRobotsResponse, _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::GetRoverRentalRobotsResponse, robots_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotResponse, _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::GetRobotResponse, robot_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartsRequest, _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::GetRobotPartsRequest, robot_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartsResponse, _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::GetRobotPartsResponse, parts_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartRequest, _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::GetRobotPartRequest, id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartResponse, _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::GetRobotPartResponse, part_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartResponse, config_json_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartLogsRequest, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartLogsRequest, _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::GetRobotPartLogsRequest, id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartLogsRequest, errors_only_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartLogsRequest, filter_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartLogsRequest, page_token_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartLogsRequest, levels_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartLogsRequest, start_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartLogsRequest, end_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartLogsRequest, limit_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartLogsRequest, source_), + ~0u, + ~0u, + 0, + 1, + ~0u, + 3, + 4, + 5, + 2, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartLogsResponse, _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::GetRobotPartLogsResponse, logs_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartLogsResponse, next_page_token_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::TailRobotPartLogsRequest, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::TailRobotPartLogsRequest, _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::TailRobotPartLogsRequest, id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::TailRobotPartLogsRequest, errors_only_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::TailRobotPartLogsRequest, filter_), + ~0u, + ~0u, + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::TailRobotPartLogsResponse, _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::TailRobotPartLogsResponse, logs_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartHistoryRequest, _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::GetRobotPartHistoryRequest, id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotPartHistoryResponse, _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::GetRobotPartHistoryResponse, history_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateRobotPartRequest, _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::UpdateRobotPartRequest, id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateRobotPartRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateRobotPartRequest, robot_config_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateRobotPartResponse, _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::UpdateRobotPartResponse, part_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::NewRobotPartRequest, _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::NewRobotPartRequest, robot_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::NewRobotPartRequest, part_name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::NewRobotPartResponse, _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::NewRobotPartResponse, part_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteRobotPartRequest, _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::DeleteRobotPartRequest, part_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotAPIKeysRequest, _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::GetRobotAPIKeysRequest, robot_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::APIKey, _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::APIKey, id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::APIKey, key_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::APIKey, name_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::APIKey, created_on_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRobotAPIKeysResponse, _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::GetRobotAPIKeysResponse, api_keys_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteRobotPartResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Fragment, _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::Fragment, id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Fragment, name_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Fragment, fragment_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Fragment, organization_owner_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Fragment, public__), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Fragment, created_on_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Fragment, organization_name_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Fragment, robot_part_count_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Fragment, organization_count_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Fragment, only_used_by_owner_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Fragment, visibility_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Fragment, last_updated_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::FragmentHistoryEntry, _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::FragmentHistoryEntry, fragment_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::FragmentHistoryEntry, edited_on_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::FragmentHistoryEntry, old_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::FragmentHistoryEntry, edited_by_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::FragmentHistoryEntry, revision_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::FragmentHistoryEntry, config_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::FragmentError, _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::FragmentError, error_type_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::FragmentError, fragment_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::FragmentError, detail_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::FragmentUsage, _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::FragmentUsage, fragment_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::FragmentUsage, organizations_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::FragmentUsage, machines_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::FragmentUsage, machines_in_current_org_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ResolvedFragment, _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::ResolvedFragment, fragment_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ResolvedFragment, resolved_config_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ResolvedFragment, error_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListFragmentsRequest, _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::ListFragmentsRequest, organization_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListFragmentsRequest, show_public_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListFragmentsRequest, fragment_visibility_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListFragmentsResponse, _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::ListFragmentsResponse, fragments_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListFragmentsResponse, fragment_usages_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetFragmentRequest, _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::GetFragmentRequest, id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetFragmentRequest, current_organization_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetFragmentResponse, _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::GetFragmentResponse, fragment_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetFragmentResponse, fragment_usage_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateFragmentRequest, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateFragmentRequest, _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::CreateFragmentRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateFragmentRequest, config_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateFragmentRequest, organization_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateFragmentRequest, visibility_), + ~0u, + ~0u, + ~0u, + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateFragmentResponse, _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::CreateFragmentResponse, fragment_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateFragmentRequest, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateFragmentRequest, _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::UpdateFragmentRequest, id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateFragmentRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateFragmentRequest, config_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateFragmentRequest, public__), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateFragmentRequest, visibility_), + ~0u, + ~0u, + ~0u, + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateFragmentResponse, _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::UpdateFragmentResponse, fragment_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteFragmentRequest, _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::DeleteFragmentRequest, id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteFragmentResponse, _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::GetFragmentHistoryRequest, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetFragmentHistoryRequest, _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::GetFragmentHistoryRequest, id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetFragmentHistoryRequest, page_token_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetFragmentHistoryRequest, page_limit_), + ~0u, + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetFragmentHistoryResponse, _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::GetFragmentHistoryResponse, history_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetFragmentHistoryResponse, next_page_token_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListRobotsRequest, _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::ListRobotsRequest, location_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListMachineFragmentsRequest, _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::ListMachineFragmentsRequest, machine_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListMachineFragmentsRequest, additional_fragment_ids_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListMachineFragmentsResponse, _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::ListMachineFragmentsResponse, fragments_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListMachineFragmentsResponse, resolved_fragments_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListRobotsResponse, _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::ListRobotsResponse, robots_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::NewRobotRequest, _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::NewRobotRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::NewRobotRequest, location_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::NewRobotResponse, _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::NewRobotResponse, id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateRobotRequest, _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::UpdateRobotRequest, id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateRobotRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateRobotRequest, location_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateRobotResponse, _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::UpdateRobotResponse, robot_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteRobotRequest, _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::DeleteRobotRequest, id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteRobotResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::MarkPartAsMainRequest, _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::MarkPartAsMainRequest, part_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::MarkPartAsMainResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::MarkPartForRestartRequest, _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::MarkPartForRestartRequest, part_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::MarkPartForRestartResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateRobotPartSecretRequest, _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::CreateRobotPartSecretRequest, part_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateRobotPartSecretResponse, _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::CreateRobotPartSecretResponse, part_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteRobotPartSecretRequest, _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::DeleteRobotPartSecretRequest, part_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteRobotPartSecretRequest, secret_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteRobotPartSecretResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Authorization, _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::Authorization, authorization_type_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Authorization, authorization_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Authorization, resource_type_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Authorization, resource_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Authorization, identity_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Authorization, organization_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Authorization, identity_type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::AddRoleRequest, _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::AddRoleRequest, authorization_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::AddRoleResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RemoveRoleRequest, _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::RemoveRoleRequest, authorization_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RemoveRoleResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ChangeRoleRequest, _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::ChangeRoleRequest, old_authorization_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ChangeRoleRequest, new_authorization_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ChangeRoleResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListAuthorizationsRequest, _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::ListAuthorizationsRequest, organization_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListAuthorizationsRequest, resource_ids_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListAuthorizationsResponse, _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::ListAuthorizationsResponse, authorizations_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CheckPermissionsRequest, _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::CheckPermissionsRequest, permissions_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::AuthorizedPermissions, _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::AuthorizedPermissions, resource_type_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::AuthorizedPermissions, resource_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::AuthorizedPermissions, permissions_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CheckPermissionsResponse, _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::CheckPermissionsResponse, authorized_permissions_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleVersion, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleVersion, _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::ModuleVersion, version_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleVersion, files_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleVersion, models_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleVersion, entrypoint_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleVersion, first_run_), + ~0u, + ~0u, + ~0u, + ~0u, + 0, + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleMetadata, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleMetadata, _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::ModuleMetadata, models_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleMetadata, versions_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleMetadata, entrypoint_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleMetadata, first_run_), + ~0u, + ~0u, + ~0u, + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::MLModelMetadata, _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::MLModelMetadata, versions_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::MLModelMetadata, model_type_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::MLModelMetadata, model_framework_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::MLTrainingVersion, _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::MLTrainingVersion, version_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::MLTrainingVersion, created_on_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::MLTrainingMetadata, _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::MLTrainingMetadata, versions_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::MLTrainingMetadata, model_type_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::MLTrainingMetadata, model_framework_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::MLTrainingMetadata, draft_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegistryItem, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegistryItem, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegistryItem, item_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegistryItem, organization_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegistryItem, public_namespace_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegistryItem, name_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegistryItem, type_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegistryItem, visibility_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegistryItem, url_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegistryItem, description_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegistryItem, total_robot_usage_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegistryItem, total_external_robot_usage_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegistryItem, total_organization_usage_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegistryItem, total_external_organization_usage_), + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegistryItem, created_at_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegistryItem, updated_at_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegistryItem, metadata_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRegistryItemRequest, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRegistryItemRequest, _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::GetRegistryItemRequest, item_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRegistryItemRequest, include_markdown_documentation_), + ~0u, + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetRegistryItemResponse, _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::GetRegistryItemResponse, item_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateRegistryItemRequest, _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::CreateRegistryItemRequest, organization_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateRegistryItemRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateRegistryItemRequest, type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateRegistryItemResponse, _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::UpdateRegistryItemRequest, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateRegistryItemRequest, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateRegistryItemRequest, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateRegistryItemRequest, item_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateRegistryItemRequest, type_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateRegistryItemRequest, description_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateRegistryItemRequest, visibility_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateRegistryItemRequest, url_), + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateRegistryItemRequest, metadata_), + ~0u, + ~0u, + ~0u, + ~0u, + 0, + ~0u, + ~0u, + ~0u, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateRegistryItemResponse, _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::ListRegistryItemsRequest, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListRegistryItemsRequest, _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::ListRegistryItemsRequest, organization_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListRegistryItemsRequest, types_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListRegistryItemsRequest, visibilities_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListRegistryItemsRequest, platforms_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListRegistryItemsRequest, statuses_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListRegistryItemsRequest, search_term_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListRegistryItemsRequest, page_token_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListRegistryItemsRequest, public_namespaces_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListRegistryItemsRequest, include_markdown_documentation_), + 0, + ~0u, + ~0u, + ~0u, + ~0u, + 1, + 2, + ~0u, + 3, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListRegistryItemsResponse, _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::ListRegistryItemsResponse, items_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteRegistryItemRequest, _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::DeleteRegistryItemRequest, item_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteRegistryItemResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::TransferRegistryItemRequest, _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::TransferRegistryItemRequest, item_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::TransferRegistryItemRequest, new_public_namespace_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::TransferRegistryItemResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateModuleRequest, _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::CreateModuleRequest, organization_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateModuleRequest, name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateModuleResponse, _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::CreateModuleResponse, module_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateModuleResponse, url_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateModuleRequest, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateModuleRequest, _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::UpdateModuleRequest, module_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateModuleRequest, visibility_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateModuleRequest, url_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateModuleRequest, description_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateModuleRequest, models_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateModuleRequest, entrypoint_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateModuleRequest, first_run_), + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateModuleResponse, _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::UpdateModuleResponse, url_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateModuleMetadata, _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::UpdateModuleMetadata, models_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateModuleMetadata, entrypoint_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateMLModelMetadata, _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::UpdateMLModelMetadata, model_type_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateMLModelMetadata, model_framework_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateMLTrainingMetadata, _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::UpdateMLTrainingMetadata, model_type_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateMLTrainingMetadata, model_framework_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateMLTrainingMetadata, draft_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Model, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Model, _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::Model, api_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Model, model_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Model, markdown_documentation_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Model, description_), + ~0u, + ~0u, + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleFileInfo, _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::ModuleFileInfo, module_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleFileInfo, version_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleFileInfo, platform_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleFileInfo, platform_tags_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UploadModuleFileRequest, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UploadModuleFileRequest, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UploadModuleFileRequest, module_file_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UploadModuleFileResponse, _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::UploadModuleFileResponse, url_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetModuleRequest, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetModuleRequest, _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::GetModuleRequest, module_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetModuleRequest, include_markdown_documentation_), + ~0u, + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetModuleResponse, _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::GetModuleResponse, module_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Module, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Module, _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::Module, module_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Module, name_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Module, visibility_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Module, versions_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Module, url_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Module, description_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Module, models_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Module, total_robot_usage_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Module, total_organization_usage_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Module, organization_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Module, entrypoint_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Module, public_namespace_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Module, first_run_), + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + 0, + PROTOBUF_FIELD_OFFSET(::viam::app::v1::VersionHistory, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::VersionHistory, _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::VersionHistory, version_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::VersionHistory, files_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::VersionHistory, models_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::VersionHistory, entrypoint_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::VersionHistory, first_run_), + ~0u, + ~0u, + ~0u, + ~0u, + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Uploads, _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::Uploads, platform_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Uploads, uploaded_at_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListModulesRequest, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListModulesRequest, _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::ListModulesRequest, organization_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListModulesRequest, include_markdown_documentation_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListModulesResponse, _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::ListModulesResponse, modules_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetUserIDByEmailRequest, _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::GetUserIDByEmailRequest, email_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetUserIDByEmailResponse, _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::GetUserIDByEmailResponse, user_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListOrganizationsByUserRequest, _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::ListOrganizationsByUserRequest, user_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::OrgDetails, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::OrgDetails, _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::OrgDetails, org_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::OrgDetails, org_name_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::OrgDetails, org_cid_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::OrgDetails, public_namespace_), + ~0u, + ~0u, + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListOrganizationsByUserResponse, _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::ListOrganizationsByUserResponse, orgs_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::SearchOrganizationsRequest, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::SearchOrganizationsRequest, _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::SearchOrganizationsRequest, org_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::SearchOrganizationsRequest, org_name_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::SearchOrganizationsRequest, cid_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::SearchOrganizationsRequest, public_namespace_), + 0, + 1, + 2, + 3, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::SearchOrganizationsResponse, _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::SearchOrganizationsResponse, organizations_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateKeyRequest, _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::CreateKeyRequest, authorizations_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateKeyRequest, name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateKeyResponse, _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::CreateKeyResponse, key_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateKeyResponse, id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteKeyRequest, _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::DeleteKeyRequest, id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteKeyResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RenameKeyRequest, _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::RenameKeyRequest, id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RenameKeyRequest, name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RenameKeyResponse, _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::RenameKeyResponse, id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RenameKeyResponse, name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::AuthorizationDetails, _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::AuthorizationDetails, authorization_type_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::AuthorizationDetails, authorization_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::AuthorizationDetails, resource_type_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::AuthorizationDetails, resource_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::AuthorizationDetails, org_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::APIKeyWithAuthorizations, _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::APIKeyWithAuthorizations, api_key_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::APIKeyWithAuthorizations, authorizations_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListKeysRequest, _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::ListKeysRequest, org_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListKeysResponse, _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::ListKeysResponse, api_keys_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RotateKeyRequest, _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::RotateKeyRequest, id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RotateKeyResponse, _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::RotateKeyResponse, id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RotateKeyResponse, key_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsRequest, _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::CreateKeyFromExistingKeyAuthorizationsRequest, id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse, _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::CreateKeyFromExistingKeyAuthorizationsResponse, id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse, key_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::OrganizationSetLogoRequest, _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::OrganizationSetLogoRequest, org_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::OrganizationSetLogoRequest, logo_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::OrganizationSetLogoResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::OrganizationGetLogoRequest, _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::OrganizationGetLogoRequest, org_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::OrganizationGetLogoResponse, _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::OrganizationGetLogoResponse, url_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::EnableAuthServiceRequest, _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::EnableAuthServiceRequest, org_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::EnableAuthServiceResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::DisableAuthServiceRequest, _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::DisableAuthServiceRequest, org_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::DisableAuthServiceResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateOAuthAppRequest, _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::CreateOAuthAppRequest, org_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateOAuthAppRequest, client_name_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateOAuthAppRequest, oauth_config_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateOAuthAppResponse, _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::CreateOAuthAppResponse, client_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CreateOAuthAppResponse, client_secret_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ReadOAuthAppRequest, _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::ReadOAuthAppRequest, org_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ReadOAuthAppRequest, client_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ReadOAuthAppResponse, _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::ReadOAuthAppResponse, client_name_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ReadOAuthAppResponse, client_secret_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ReadOAuthAppResponse, oauth_config_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateOAuthAppRequest, _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::UpdateOAuthAppRequest, org_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateOAuthAppRequest, client_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateOAuthAppRequest, client_name_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateOAuthAppRequest, oauth_config_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateOAuthAppResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteOAuthAppRequest, _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::DeleteOAuthAppRequest, org_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteOAuthAppRequest, client_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::DeleteOAuthAppResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListOAuthAppsRequest, _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::ListOAuthAppsRequest, org_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ListOAuthAppsResponse, _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::ListOAuthAppsResponse, client_ids_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::OAuthConfig, _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::OAuthConfig, client_authentication_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::OAuthConfig, pkce_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::OAuthConfig, url_validation_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::OAuthConfig, origin_uris_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::OAuthConfig, redirect_uris_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::OAuthConfig, logout_uri_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::OAuthConfig, enabled_grants_), +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::app::v1::Robot)}, + { 11, -1, -1, sizeof(::viam::app::v1::RobotPart)}, + { 32, -1, -1, sizeof(::viam::app::v1::RobotPartHistoryEntry)}, + { 43, -1, -1, sizeof(::viam::app::v1::AuthenticatorInfo)}, + { 52, -1, -1, sizeof(::viam::app::v1::ListOrganizationsRequest)}, + { 58, 70, -1, sizeof(::viam::app::v1::Organization)}, + { 76, 86, -1, sizeof(::viam::app::v1::OrganizationMember)}, + { 90, -1, -1, sizeof(::viam::app::v1::ListOrganizationsResponse)}, + { 97, -1, -1, sizeof(::viam::app::v1::OrganizationInvite)}, + { 107, -1, -1, sizeof(::viam::app::v1::CreateOrganizationRequest)}, + { 114, -1, -1, sizeof(::viam::app::v1::CreateOrganizationResponse)}, + { 121, -1, -1, sizeof(::viam::app::v1::GetOrganizationRequest)}, + { 128, -1, -1, sizeof(::viam::app::v1::GetOrganizationResponse)}, + { 135, -1, -1, sizeof(::viam::app::v1::GetOrganizationNamespaceAvailabilityRequest)}, + { 142, -1, -1, sizeof(::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse)}, + { 149, 160, -1, sizeof(::viam::app::v1::UpdateOrganizationRequest)}, + { 165, -1, -1, sizeof(::viam::app::v1::UpdateOrganizationResponse)}, + { 172, -1, -1, sizeof(::viam::app::v1::DeleteOrganizationRequest)}, + { 179, -1, -1, sizeof(::viam::app::v1::DeleteOrganizationResponse)}, + { 185, -1, -1, sizeof(::viam::app::v1::ListOrganizationMembersRequest)}, + { 192, -1, -1, sizeof(::viam::app::v1::ListOrganizationMembersResponse)}, + { 201, 211, -1, sizeof(::viam::app::v1::CreateOrganizationInviteRequest)}, + { 215, -1, -1, sizeof(::viam::app::v1::CreateOrganizationInviteResponse)}, + { 222, -1, -1, sizeof(::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest)}, + { 232, -1, -1, sizeof(::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse)}, + { 239, -1, -1, sizeof(::viam::app::v1::DeleteOrganizationInviteRequest)}, + { 247, -1, -1, sizeof(::viam::app::v1::DeleteOrganizationInviteResponse)}, + { 253, -1, -1, sizeof(::viam::app::v1::ResendOrganizationInviteRequest)}, + { 261, -1, -1, sizeof(::viam::app::v1::ResendOrganizationInviteResponse)}, + { 268, -1, -1, sizeof(::viam::app::v1::DeleteOrganizationMemberRequest)}, + { 276, -1, -1, sizeof(::viam::app::v1::DeleteOrganizationMemberResponse)}, + { 282, 293, -1, sizeof(::viam::app::v1::BillingAddress)}, + { 298, -1, -1, sizeof(::viam::app::v1::EnableBillingServiceRequest)}, + { 306, -1, -1, sizeof(::viam::app::v1::EnableBillingServiceResponse)}, + { 312, -1, -1, sizeof(::viam::app::v1::UpdateBillingServiceRequest)}, + { 320, -1, -1, sizeof(::viam::app::v1::UpdateBillingServiceResponse)}, + { 326, -1, -1, sizeof(::viam::app::v1::GetBillingServiceConfigRequest)}, + { 333, -1, -1, sizeof(::viam::app::v1::GetBillingServiceConfigResponse)}, + { 343, -1, -1, sizeof(::viam::app::v1::DisableBillingServiceRequest)}, + { 350, -1, -1, sizeof(::viam::app::v1::DisableBillingServiceResponse)}, + { 356, -1, -1, sizeof(::viam::app::v1::OrganizationSetSupportEmailRequest)}, + { 364, -1, -1, sizeof(::viam::app::v1::OrganizationSetSupportEmailResponse)}, + { 370, -1, -1, sizeof(::viam::app::v1::OrganizationGetSupportEmailRequest)}, + { 377, -1, -1, sizeof(::viam::app::v1::OrganizationGetSupportEmailResponse)}, + { 384, -1, -1, sizeof(::viam::app::v1::OrganizationIdentity)}, + { 392, -1, -1, sizeof(::viam::app::v1::LocationOrganization)}, + { 400, -1, -1, sizeof(::viam::app::v1::LocationAuth)}, + { 409, -1, -1, sizeof(::viam::app::v1::StorageConfig)}, + { 416, -1, -1, sizeof(::viam::app::v1::Location)}, + { 430, -1, -1, sizeof(::viam::app::v1::SharedSecret)}, + { 440, 449, -1, sizeof(::viam::app::v1::CreateLocationRequest)}, + { 452, -1, -1, sizeof(::viam::app::v1::CreateLocationResponse)}, + { 459, -1, -1, sizeof(::viam::app::v1::GetLocationRequest)}, + { 466, -1, -1, sizeof(::viam::app::v1::GetLocationResponse)}, + { 473, 483, -1, sizeof(::viam::app::v1::UpdateLocationRequest)}, + { 487, -1, -1, sizeof(::viam::app::v1::UpdateLocationResponse)}, + { 494, -1, -1, sizeof(::viam::app::v1::DeleteLocationRequest)}, + { 501, -1, -1, sizeof(::viam::app::v1::DeleteLocationResponse)}, + { 507, -1, -1, sizeof(::viam::app::v1::GetOrganizationsWithAccessToLocationRequest)}, + { 514, -1, -1, sizeof(::viam::app::v1::GetOrganizationsWithAccessToLocationResponse)}, + { 521, -1, -1, sizeof(::viam::app::v1::ListLocationsRequest)}, + { 528, -1, -1, sizeof(::viam::app::v1::ShareLocationRequest)}, + { 536, -1, -1, sizeof(::viam::app::v1::ShareLocationResponse)}, + { 542, -1, -1, sizeof(::viam::app::v1::UnshareLocationRequest)}, + { 550, -1, -1, sizeof(::viam::app::v1::UnshareLocationResponse)}, + { 556, -1, -1, sizeof(::viam::app::v1::ListLocationsResponse)}, + { 563, -1, -1, sizeof(::viam::app::v1::CreateLocationSecretRequest)}, + { 570, -1, -1, sizeof(::viam::app::v1::CreateLocationSecretResponse)}, + { 577, -1, -1, sizeof(::viam::app::v1::DeleteLocationSecretRequest)}, + { 585, -1, -1, sizeof(::viam::app::v1::DeleteLocationSecretResponse)}, + { 591, -1, -1, sizeof(::viam::app::v1::LocationAuthRequest)}, + { 598, -1, -1, sizeof(::viam::app::v1::LocationAuthResponse)}, + { 605, -1, -1, sizeof(::viam::app::v1::GetRobotRequest)}, + { 612, -1, -1, sizeof(::viam::app::v1::GetRoverRentalRobotsRequest)}, + { 619, -1, -1, sizeof(::viam::app::v1::RoverRentalRobot)}, + { 629, -1, -1, sizeof(::viam::app::v1::GetRoverRentalRobotsResponse)}, + { 636, -1, -1, sizeof(::viam::app::v1::GetRobotResponse)}, + { 643, -1, -1, sizeof(::viam::app::v1::GetRobotPartsRequest)}, + { 650, -1, -1, sizeof(::viam::app::v1::GetRobotPartsResponse)}, + { 657, -1, -1, sizeof(::viam::app::v1::GetRobotPartRequest)}, + { 664, -1, -1, sizeof(::viam::app::v1::GetRobotPartResponse)}, + { 672, 687, -1, sizeof(::viam::app::v1::GetRobotPartLogsRequest)}, + { 696, -1, -1, sizeof(::viam::app::v1::GetRobotPartLogsResponse)}, + { 704, 713, -1, sizeof(::viam::app::v1::TailRobotPartLogsRequest)}, + { 716, -1, -1, sizeof(::viam::app::v1::TailRobotPartLogsResponse)}, + { 723, -1, -1, sizeof(::viam::app::v1::GetRobotPartHistoryRequest)}, + { 730, -1, -1, sizeof(::viam::app::v1::GetRobotPartHistoryResponse)}, + { 737, -1, -1, sizeof(::viam::app::v1::UpdateRobotPartRequest)}, + { 746, -1, -1, sizeof(::viam::app::v1::UpdateRobotPartResponse)}, + { 753, -1, -1, sizeof(::viam::app::v1::NewRobotPartRequest)}, + { 761, -1, -1, sizeof(::viam::app::v1::NewRobotPartResponse)}, + { 768, -1, -1, sizeof(::viam::app::v1::DeleteRobotPartRequest)}, + { 775, -1, -1, sizeof(::viam::app::v1::GetRobotAPIKeysRequest)}, + { 782, -1, -1, sizeof(::viam::app::v1::APIKey)}, + { 792, -1, -1, sizeof(::viam::app::v1::GetRobotAPIKeysResponse)}, + { 799, -1, -1, sizeof(::viam::app::v1::DeleteRobotPartResponse)}, + { 805, -1, -1, sizeof(::viam::app::v1::Fragment)}, + { 823, -1, -1, sizeof(::viam::app::v1::FragmentHistoryEntry)}, + { 835, -1, -1, sizeof(::viam::app::v1::FragmentError)}, + { 844, -1, -1, sizeof(::viam::app::v1::FragmentUsage)}, + { 854, -1, -1, sizeof(::viam::app::v1::ResolvedFragment)}, + { 863, -1, -1, sizeof(::viam::app::v1::ListFragmentsRequest)}, + { 872, -1, -1, sizeof(::viam::app::v1::ListFragmentsResponse)}, + { 880, -1, -1, sizeof(::viam::app::v1::GetFragmentRequest)}, + { 888, -1, -1, sizeof(::viam::app::v1::GetFragmentResponse)}, + { 896, 906, -1, sizeof(::viam::app::v1::CreateFragmentRequest)}, + { 910, -1, -1, sizeof(::viam::app::v1::CreateFragmentResponse)}, + { 917, 928, -1, sizeof(::viam::app::v1::UpdateFragmentRequest)}, + { 933, -1, -1, sizeof(::viam::app::v1::UpdateFragmentResponse)}, + { 940, -1, -1, sizeof(::viam::app::v1::DeleteFragmentRequest)}, + { 947, -1, -1, sizeof(::viam::app::v1::DeleteFragmentResponse)}, + { 953, 962, -1, sizeof(::viam::app::v1::GetFragmentHistoryRequest)}, + { 965, -1, -1, sizeof(::viam::app::v1::GetFragmentHistoryResponse)}, + { 973, -1, -1, sizeof(::viam::app::v1::ListRobotsRequest)}, + { 980, -1, -1, sizeof(::viam::app::v1::ListMachineFragmentsRequest)}, + { 988, -1, -1, sizeof(::viam::app::v1::ListMachineFragmentsResponse)}, + { 996, -1, -1, sizeof(::viam::app::v1::ListRobotsResponse)}, + { 1003, -1, -1, sizeof(::viam::app::v1::NewRobotRequest)}, + { 1011, -1, -1, sizeof(::viam::app::v1::NewRobotResponse)}, + { 1018, -1, -1, sizeof(::viam::app::v1::UpdateRobotRequest)}, + { 1027, -1, -1, sizeof(::viam::app::v1::UpdateRobotResponse)}, + { 1034, -1, -1, sizeof(::viam::app::v1::DeleteRobotRequest)}, + { 1041, -1, -1, sizeof(::viam::app::v1::DeleteRobotResponse)}, + { 1047, -1, -1, sizeof(::viam::app::v1::MarkPartAsMainRequest)}, + { 1054, -1, -1, sizeof(::viam::app::v1::MarkPartAsMainResponse)}, + { 1060, -1, -1, sizeof(::viam::app::v1::MarkPartForRestartRequest)}, + { 1067, -1, -1, sizeof(::viam::app::v1::MarkPartForRestartResponse)}, + { 1073, -1, -1, sizeof(::viam::app::v1::CreateRobotPartSecretRequest)}, + { 1080, -1, -1, sizeof(::viam::app::v1::CreateRobotPartSecretResponse)}, + { 1087, -1, -1, sizeof(::viam::app::v1::DeleteRobotPartSecretRequest)}, + { 1095, -1, -1, sizeof(::viam::app::v1::DeleteRobotPartSecretResponse)}, + { 1101, -1, -1, sizeof(::viam::app::v1::Authorization)}, + { 1114, -1, -1, sizeof(::viam::app::v1::AddRoleRequest)}, + { 1121, -1, -1, sizeof(::viam::app::v1::AddRoleResponse)}, + { 1127, -1, -1, sizeof(::viam::app::v1::RemoveRoleRequest)}, + { 1134, -1, -1, sizeof(::viam::app::v1::RemoveRoleResponse)}, + { 1140, -1, -1, sizeof(::viam::app::v1::ChangeRoleRequest)}, + { 1148, -1, -1, sizeof(::viam::app::v1::ChangeRoleResponse)}, + { 1154, -1, -1, sizeof(::viam::app::v1::ListAuthorizationsRequest)}, + { 1162, -1, -1, sizeof(::viam::app::v1::ListAuthorizationsResponse)}, + { 1169, -1, -1, sizeof(::viam::app::v1::CheckPermissionsRequest)}, + { 1176, -1, -1, sizeof(::viam::app::v1::AuthorizedPermissions)}, + { 1185, -1, -1, sizeof(::viam::app::v1::CheckPermissionsResponse)}, + { 1192, 1203, -1, sizeof(::viam::app::v1::ModuleVersion)}, + { 1208, 1218, -1, sizeof(::viam::app::v1::ModuleMetadata)}, + { 1222, -1, -1, sizeof(::viam::app::v1::MLModelMetadata)}, + { 1231, -1, -1, sizeof(::viam::app::v1::MLTrainingVersion)}, + { 1239, -1, -1, sizeof(::viam::app::v1::MLTrainingMetadata)}, + { 1249, -1, -1, sizeof(::viam::app::v1::RegistryItem)}, + { 1273, 1281, -1, sizeof(::viam::app::v1::GetRegistryItemRequest)}, + { 1283, -1, -1, sizeof(::viam::app::v1::GetRegistryItemResponse)}, + { 1290, -1, -1, sizeof(::viam::app::v1::CreateRegistryItemRequest)}, + { 1299, -1, -1, sizeof(::viam::app::v1::CreateRegistryItemResponse)}, + { 1305, 1320, -1, sizeof(::viam::app::v1::UpdateRegistryItemRequest)}, + { 1328, -1, -1, sizeof(::viam::app::v1::UpdateRegistryItemResponse)}, + { 1334, 1349, -1, sizeof(::viam::app::v1::ListRegistryItemsRequest)}, + { 1358, -1, -1, sizeof(::viam::app::v1::ListRegistryItemsResponse)}, + { 1365, -1, -1, sizeof(::viam::app::v1::DeleteRegistryItemRequest)}, + { 1372, -1, -1, sizeof(::viam::app::v1::DeleteRegistryItemResponse)}, + { 1378, -1, -1, sizeof(::viam::app::v1::TransferRegistryItemRequest)}, + { 1386, -1, -1, sizeof(::viam::app::v1::TransferRegistryItemResponse)}, + { 1392, -1, -1, sizeof(::viam::app::v1::CreateModuleRequest)}, + { 1400, -1, -1, sizeof(::viam::app::v1::CreateModuleResponse)}, + { 1408, 1421, -1, sizeof(::viam::app::v1::UpdateModuleRequest)}, + { 1428, -1, -1, sizeof(::viam::app::v1::UpdateModuleResponse)}, + { 1435, -1, -1, sizeof(::viam::app::v1::UpdateModuleMetadata)}, + { 1443, -1, -1, sizeof(::viam::app::v1::UpdateMLModelMetadata)}, + { 1451, -1, -1, sizeof(::viam::app::v1::UpdateMLTrainingMetadata)}, + { 1460, 1470, -1, sizeof(::viam::app::v1::Model)}, + { 1474, -1, -1, sizeof(::viam::app::v1::ModuleFileInfo)}, + { 1484, -1, -1, sizeof(::viam::app::v1::UploadModuleFileRequest)}, + { 1493, -1, -1, sizeof(::viam::app::v1::UploadModuleFileResponse)}, + { 1500, 1508, -1, sizeof(::viam::app::v1::GetModuleRequest)}, + { 1510, -1, -1, sizeof(::viam::app::v1::GetModuleResponse)}, + { 1517, 1536, -1, sizeof(::viam::app::v1::Module)}, + { 1549, 1560, -1, sizeof(::viam::app::v1::VersionHistory)}, + { 1565, -1, -1, sizeof(::viam::app::v1::Uploads)}, + { 1573, 1581, -1, sizeof(::viam::app::v1::ListModulesRequest)}, + { 1583, -1, -1, sizeof(::viam::app::v1::ListModulesResponse)}, + { 1590, -1, -1, sizeof(::viam::app::v1::GetUserIDByEmailRequest)}, + { 1597, -1, -1, sizeof(::viam::app::v1::GetUserIDByEmailResponse)}, + { 1604, -1, -1, sizeof(::viam::app::v1::ListOrganizationsByUserRequest)}, + { 1611, 1621, -1, sizeof(::viam::app::v1::OrgDetails)}, + { 1625, -1, -1, sizeof(::viam::app::v1::ListOrganizationsByUserResponse)}, + { 1632, 1642, -1, sizeof(::viam::app::v1::SearchOrganizationsRequest)}, + { 1646, -1, -1, sizeof(::viam::app::v1::SearchOrganizationsResponse)}, + { 1653, -1, -1, sizeof(::viam::app::v1::CreateKeyRequest)}, + { 1661, -1, -1, sizeof(::viam::app::v1::CreateKeyResponse)}, + { 1669, -1, -1, sizeof(::viam::app::v1::DeleteKeyRequest)}, + { 1676, -1, -1, sizeof(::viam::app::v1::DeleteKeyResponse)}, + { 1682, -1, -1, sizeof(::viam::app::v1::RenameKeyRequest)}, + { 1690, -1, -1, sizeof(::viam::app::v1::RenameKeyResponse)}, + { 1698, -1, -1, sizeof(::viam::app::v1::AuthorizationDetails)}, + { 1709, -1, -1, sizeof(::viam::app::v1::APIKeyWithAuthorizations)}, + { 1717, -1, -1, sizeof(::viam::app::v1::ListKeysRequest)}, + { 1724, -1, -1, sizeof(::viam::app::v1::ListKeysResponse)}, + { 1731, -1, -1, sizeof(::viam::app::v1::RotateKeyRequest)}, + { 1738, -1, -1, sizeof(::viam::app::v1::RotateKeyResponse)}, + { 1746, -1, -1, sizeof(::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsRequest)}, + { 1753, -1, -1, sizeof(::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse)}, + { 1761, -1, -1, sizeof(::viam::app::v1::OrganizationSetLogoRequest)}, + { 1769, -1, -1, sizeof(::viam::app::v1::OrganizationSetLogoResponse)}, + { 1775, -1, -1, sizeof(::viam::app::v1::OrganizationGetLogoRequest)}, + { 1782, -1, -1, sizeof(::viam::app::v1::OrganizationGetLogoResponse)}, + { 1789, -1, -1, sizeof(::viam::app::v1::EnableAuthServiceRequest)}, + { 1796, -1, -1, sizeof(::viam::app::v1::EnableAuthServiceResponse)}, + { 1802, -1, -1, sizeof(::viam::app::v1::DisableAuthServiceRequest)}, + { 1809, -1, -1, sizeof(::viam::app::v1::DisableAuthServiceResponse)}, + { 1815, -1, -1, sizeof(::viam::app::v1::CreateOAuthAppRequest)}, + { 1824, -1, -1, sizeof(::viam::app::v1::CreateOAuthAppResponse)}, + { 1832, -1, -1, sizeof(::viam::app::v1::ReadOAuthAppRequest)}, + { 1840, -1, -1, sizeof(::viam::app::v1::ReadOAuthAppResponse)}, + { 1849, -1, -1, sizeof(::viam::app::v1::UpdateOAuthAppRequest)}, + { 1859, -1, -1, sizeof(::viam::app::v1::UpdateOAuthAppResponse)}, + { 1865, -1, -1, sizeof(::viam::app::v1::DeleteOAuthAppRequest)}, + { 1873, -1, -1, sizeof(::viam::app::v1::DeleteOAuthAppResponse)}, + { 1879, -1, -1, sizeof(::viam::app::v1::ListOAuthAppsRequest)}, + { 1886, -1, -1, sizeof(::viam::app::v1::ListOAuthAppsResponse)}, + { 1893, -1, -1, sizeof(::viam::app::v1::OAuthConfig)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::viam::app::v1::_Robot_default_instance_._instance, - &::viam::app::v1::_RobotPart_default_instance_._instance, - &::viam::app::v1::_RobotPartHistoryEntry_default_instance_._instance, - &::viam::app::v1::_AuthenticatorInfo_default_instance_._instance, - &::viam::app::v1::_ListOrganizationsRequest_default_instance_._instance, - &::viam::app::v1::_Organization_default_instance_._instance, - &::viam::app::v1::_OrganizationMember_default_instance_._instance, - &::viam::app::v1::_ListOrganizationsResponse_default_instance_._instance, - &::viam::app::v1::_OrganizationInvite_default_instance_._instance, - &::viam::app::v1::_CreateOrganizationRequest_default_instance_._instance, - &::viam::app::v1::_CreateOrganizationResponse_default_instance_._instance, - &::viam::app::v1::_GetOrganizationRequest_default_instance_._instance, - &::viam::app::v1::_GetOrganizationResponse_default_instance_._instance, - &::viam::app::v1::_GetOrganizationNamespaceAvailabilityRequest_default_instance_._instance, - &::viam::app::v1::_GetOrganizationNamespaceAvailabilityResponse_default_instance_._instance, - &::viam::app::v1::_UpdateOrganizationRequest_default_instance_._instance, - &::viam::app::v1::_UpdateOrganizationResponse_default_instance_._instance, - &::viam::app::v1::_DeleteOrganizationRequest_default_instance_._instance, - &::viam::app::v1::_DeleteOrganizationResponse_default_instance_._instance, - &::viam::app::v1::_ListOrganizationMembersRequest_default_instance_._instance, - &::viam::app::v1::_ListOrganizationMembersResponse_default_instance_._instance, - &::viam::app::v1::_CreateOrganizationInviteRequest_default_instance_._instance, - &::viam::app::v1::_CreateOrganizationInviteResponse_default_instance_._instance, - &::viam::app::v1::_UpdateOrganizationInviteAuthorizationsRequest_default_instance_._instance, - &::viam::app::v1::_UpdateOrganizationInviteAuthorizationsResponse_default_instance_._instance, - &::viam::app::v1::_DeleteOrganizationInviteRequest_default_instance_._instance, - &::viam::app::v1::_DeleteOrganizationInviteResponse_default_instance_._instance, - &::viam::app::v1::_ResendOrganizationInviteRequest_default_instance_._instance, - &::viam::app::v1::_ResendOrganizationInviteResponse_default_instance_._instance, - &::viam::app::v1::_DeleteOrganizationMemberRequest_default_instance_._instance, - &::viam::app::v1::_DeleteOrganizationMemberResponse_default_instance_._instance, - &::viam::app::v1::_BillingAddress_default_instance_._instance, - &::viam::app::v1::_EnableBillingServiceRequest_default_instance_._instance, - &::viam::app::v1::_EnableBillingServiceResponse_default_instance_._instance, - &::viam::app::v1::_UpdateBillingServiceRequest_default_instance_._instance, - &::viam::app::v1::_UpdateBillingServiceResponse_default_instance_._instance, - &::viam::app::v1::_GetBillingServiceConfigRequest_default_instance_._instance, - &::viam::app::v1::_GetBillingServiceConfigResponse_default_instance_._instance, - &::viam::app::v1::_DisableBillingServiceRequest_default_instance_._instance, - &::viam::app::v1::_DisableBillingServiceResponse_default_instance_._instance, - &::viam::app::v1::_OrganizationSetSupportEmailRequest_default_instance_._instance, - &::viam::app::v1::_OrganizationSetSupportEmailResponse_default_instance_._instance, - &::viam::app::v1::_OrganizationGetSupportEmailRequest_default_instance_._instance, - &::viam::app::v1::_OrganizationGetSupportEmailResponse_default_instance_._instance, - &::viam::app::v1::_OrganizationIdentity_default_instance_._instance, - &::viam::app::v1::_LocationOrganization_default_instance_._instance, - &::viam::app::v1::_LocationAuth_default_instance_._instance, - &::viam::app::v1::_StorageConfig_default_instance_._instance, - &::viam::app::v1::_Location_default_instance_._instance, - &::viam::app::v1::_SharedSecret_default_instance_._instance, - &::viam::app::v1::_CreateLocationRequest_default_instance_._instance, - &::viam::app::v1::_CreateLocationResponse_default_instance_._instance, - &::viam::app::v1::_GetLocationRequest_default_instance_._instance, - &::viam::app::v1::_GetLocationResponse_default_instance_._instance, - &::viam::app::v1::_UpdateLocationRequest_default_instance_._instance, - &::viam::app::v1::_UpdateLocationResponse_default_instance_._instance, - &::viam::app::v1::_DeleteLocationRequest_default_instance_._instance, - &::viam::app::v1::_DeleteLocationResponse_default_instance_._instance, - &::viam::app::v1::_GetOrganizationsWithAccessToLocationRequest_default_instance_._instance, - &::viam::app::v1::_GetOrganizationsWithAccessToLocationResponse_default_instance_._instance, - &::viam::app::v1::_ListLocationsRequest_default_instance_._instance, - &::viam::app::v1::_ShareLocationRequest_default_instance_._instance, - &::viam::app::v1::_ShareLocationResponse_default_instance_._instance, - &::viam::app::v1::_UnshareLocationRequest_default_instance_._instance, - &::viam::app::v1::_UnshareLocationResponse_default_instance_._instance, - &::viam::app::v1::_ListLocationsResponse_default_instance_._instance, - &::viam::app::v1::_CreateLocationSecretRequest_default_instance_._instance, - &::viam::app::v1::_CreateLocationSecretResponse_default_instance_._instance, - &::viam::app::v1::_DeleteLocationSecretRequest_default_instance_._instance, - &::viam::app::v1::_DeleteLocationSecretResponse_default_instance_._instance, - &::viam::app::v1::_LocationAuthRequest_default_instance_._instance, - &::viam::app::v1::_LocationAuthResponse_default_instance_._instance, - &::viam::app::v1::_GetRobotRequest_default_instance_._instance, - &::viam::app::v1::_GetRoverRentalRobotsRequest_default_instance_._instance, - &::viam::app::v1::_RoverRentalRobot_default_instance_._instance, - &::viam::app::v1::_GetRoverRentalRobotsResponse_default_instance_._instance, - &::viam::app::v1::_GetRobotResponse_default_instance_._instance, - &::viam::app::v1::_GetRobotPartsRequest_default_instance_._instance, - &::viam::app::v1::_GetRobotPartsResponse_default_instance_._instance, - &::viam::app::v1::_GetRobotPartRequest_default_instance_._instance, - &::viam::app::v1::_GetRobotPartResponse_default_instance_._instance, - &::viam::app::v1::_GetRobotPartLogsRequest_default_instance_._instance, - &::viam::app::v1::_GetRobotPartLogsResponse_default_instance_._instance, - &::viam::app::v1::_TailRobotPartLogsRequest_default_instance_._instance, - &::viam::app::v1::_TailRobotPartLogsResponse_default_instance_._instance, - &::viam::app::v1::_GetRobotPartHistoryRequest_default_instance_._instance, - &::viam::app::v1::_GetRobotPartHistoryResponse_default_instance_._instance, - &::viam::app::v1::_UpdateRobotPartRequest_default_instance_._instance, - &::viam::app::v1::_UpdateRobotPartResponse_default_instance_._instance, - &::viam::app::v1::_NewRobotPartRequest_default_instance_._instance, - &::viam::app::v1::_NewRobotPartResponse_default_instance_._instance, - &::viam::app::v1::_DeleteRobotPartRequest_default_instance_._instance, - &::viam::app::v1::_GetRobotAPIKeysRequest_default_instance_._instance, - &::viam::app::v1::_APIKey_default_instance_._instance, - &::viam::app::v1::_GetRobotAPIKeysResponse_default_instance_._instance, - &::viam::app::v1::_DeleteRobotPartResponse_default_instance_._instance, - &::viam::app::v1::_Fragment_default_instance_._instance, - &::viam::app::v1::_FragmentHistoryEntry_default_instance_._instance, - &::viam::app::v1::_FragmentError_default_instance_._instance, - &::viam::app::v1::_ResolvedFragment_default_instance_._instance, - &::viam::app::v1::_ListFragmentsRequest_default_instance_._instance, - &::viam::app::v1::_ListFragmentsResponse_default_instance_._instance, - &::viam::app::v1::_GetFragmentRequest_default_instance_._instance, - &::viam::app::v1::_GetFragmentResponse_default_instance_._instance, - &::viam::app::v1::_CreateFragmentRequest_default_instance_._instance, - &::viam::app::v1::_CreateFragmentResponse_default_instance_._instance, - &::viam::app::v1::_UpdateFragmentRequest_default_instance_._instance, - &::viam::app::v1::_UpdateFragmentResponse_default_instance_._instance, - &::viam::app::v1::_DeleteFragmentRequest_default_instance_._instance, - &::viam::app::v1::_DeleteFragmentResponse_default_instance_._instance, - &::viam::app::v1::_GetFragmentHistoryRequest_default_instance_._instance, - &::viam::app::v1::_GetFragmentHistoryResponse_default_instance_._instance, - &::viam::app::v1::_ListRobotsRequest_default_instance_._instance, - &::viam::app::v1::_ListMachineFragmentsRequest_default_instance_._instance, - &::viam::app::v1::_ListMachineFragmentsResponse_default_instance_._instance, - &::viam::app::v1::_ListRobotsResponse_default_instance_._instance, - &::viam::app::v1::_NewRobotRequest_default_instance_._instance, - &::viam::app::v1::_NewRobotResponse_default_instance_._instance, - &::viam::app::v1::_UpdateRobotRequest_default_instance_._instance, - &::viam::app::v1::_UpdateRobotResponse_default_instance_._instance, - &::viam::app::v1::_DeleteRobotRequest_default_instance_._instance, - &::viam::app::v1::_DeleteRobotResponse_default_instance_._instance, - &::viam::app::v1::_MarkPartAsMainRequest_default_instance_._instance, - &::viam::app::v1::_MarkPartAsMainResponse_default_instance_._instance, - &::viam::app::v1::_MarkPartForRestartRequest_default_instance_._instance, - &::viam::app::v1::_MarkPartForRestartResponse_default_instance_._instance, - &::viam::app::v1::_CreateRobotPartSecretRequest_default_instance_._instance, - &::viam::app::v1::_CreateRobotPartSecretResponse_default_instance_._instance, - &::viam::app::v1::_DeleteRobotPartSecretRequest_default_instance_._instance, - &::viam::app::v1::_DeleteRobotPartSecretResponse_default_instance_._instance, - &::viam::app::v1::_Authorization_default_instance_._instance, - &::viam::app::v1::_AddRoleRequest_default_instance_._instance, - &::viam::app::v1::_AddRoleResponse_default_instance_._instance, - &::viam::app::v1::_RemoveRoleRequest_default_instance_._instance, - &::viam::app::v1::_RemoveRoleResponse_default_instance_._instance, - &::viam::app::v1::_ChangeRoleRequest_default_instance_._instance, - &::viam::app::v1::_ChangeRoleResponse_default_instance_._instance, - &::viam::app::v1::_ListAuthorizationsRequest_default_instance_._instance, - &::viam::app::v1::_ListAuthorizationsResponse_default_instance_._instance, - &::viam::app::v1::_CheckPermissionsRequest_default_instance_._instance, - &::viam::app::v1::_AuthorizedPermissions_default_instance_._instance, - &::viam::app::v1::_CheckPermissionsResponse_default_instance_._instance, - &::viam::app::v1::_ModuleVersion_default_instance_._instance, - &::viam::app::v1::_ModuleMetadata_default_instance_._instance, - &::viam::app::v1::_MLModelMetadata_default_instance_._instance, - &::viam::app::v1::_MLTrainingVersion_default_instance_._instance, - &::viam::app::v1::_MLTrainingMetadata_default_instance_._instance, - &::viam::app::v1::_RegistryItem_default_instance_._instance, - &::viam::app::v1::_GetRegistryItemRequest_default_instance_._instance, - &::viam::app::v1::_GetRegistryItemResponse_default_instance_._instance, - &::viam::app::v1::_CreateRegistryItemRequest_default_instance_._instance, - &::viam::app::v1::_CreateRegistryItemResponse_default_instance_._instance, - &::viam::app::v1::_UpdateRegistryItemRequest_default_instance_._instance, - &::viam::app::v1::_UpdateRegistryItemResponse_default_instance_._instance, - &::viam::app::v1::_ListRegistryItemsRequest_default_instance_._instance, - &::viam::app::v1::_ListRegistryItemsResponse_default_instance_._instance, - &::viam::app::v1::_DeleteRegistryItemRequest_default_instance_._instance, - &::viam::app::v1::_DeleteRegistryItemResponse_default_instance_._instance, - &::viam::app::v1::_TransferRegistryItemRequest_default_instance_._instance, - &::viam::app::v1::_TransferRegistryItemResponse_default_instance_._instance, - &::viam::app::v1::_CreateModuleRequest_default_instance_._instance, - &::viam::app::v1::_CreateModuleResponse_default_instance_._instance, - &::viam::app::v1::_UpdateModuleRequest_default_instance_._instance, - &::viam::app::v1::_UpdateModuleResponse_default_instance_._instance, - &::viam::app::v1::_Model_default_instance_._instance, - &::viam::app::v1::_ModuleFileInfo_default_instance_._instance, - &::viam::app::v1::_UploadModuleFileRequest_default_instance_._instance, - &::viam::app::v1::_UploadModuleFileResponse_default_instance_._instance, - &::viam::app::v1::_GetModuleRequest_default_instance_._instance, - &::viam::app::v1::_GetModuleResponse_default_instance_._instance, - &::viam::app::v1::_Module_default_instance_._instance, - &::viam::app::v1::_VersionHistory_default_instance_._instance, - &::viam::app::v1::_Uploads_default_instance_._instance, - &::viam::app::v1::_ListModulesRequest_default_instance_._instance, - &::viam::app::v1::_ListModulesResponse_default_instance_._instance, - &::viam::app::v1::_GetUserIDByEmailRequest_default_instance_._instance, - &::viam::app::v1::_GetUserIDByEmailResponse_default_instance_._instance, - &::viam::app::v1::_ListOrganizationsByUserRequest_default_instance_._instance, - &::viam::app::v1::_OrgDetails_default_instance_._instance, - &::viam::app::v1::_ListOrganizationsByUserResponse_default_instance_._instance, - &::viam::app::v1::_CreateKeyRequest_default_instance_._instance, - &::viam::app::v1::_CreateKeyResponse_default_instance_._instance, - &::viam::app::v1::_DeleteKeyRequest_default_instance_._instance, - &::viam::app::v1::_DeleteKeyResponse_default_instance_._instance, - &::viam::app::v1::_RenameKeyRequest_default_instance_._instance, - &::viam::app::v1::_RenameKeyResponse_default_instance_._instance, - &::viam::app::v1::_AuthorizationDetails_default_instance_._instance, - &::viam::app::v1::_APIKeyWithAuthorizations_default_instance_._instance, - &::viam::app::v1::_ListKeysRequest_default_instance_._instance, - &::viam::app::v1::_ListKeysResponse_default_instance_._instance, - &::viam::app::v1::_RotateKeyRequest_default_instance_._instance, - &::viam::app::v1::_RotateKeyResponse_default_instance_._instance, - &::viam::app::v1::_CreateKeyFromExistingKeyAuthorizationsRequest_default_instance_._instance, - &::viam::app::v1::_CreateKeyFromExistingKeyAuthorizationsResponse_default_instance_._instance, -}; -const char descriptor_table_protodef_app_2fv1_2fapp_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n\020app/v1/app.proto\022\013viam.app.v1\032#app/mlt" - "raining/v1/ml_training.proto\032\036app/packag" - "es/v1/packages.proto\032\026common/v1/common.p" - "roto\032\034google/protobuf/struct.proto\032\037goog" - "le/protobuf/timestamp.proto\032\026tagger/v1/t" - "agger.proto\"\354\002\n\005Robot\0223\n\002id\030\001 \001(\tB#\232\204\236\003\036" - "bson:\"_id\" json:\"id,omitempty\"R\002id\0220\n\004na" - "me\030\002 \001(\tB\034\232\204\236\003\027bson:\"name\" json:\"name\"R\004" - "name\022@\n\010location\030\003 \001(\tB$\232\204\236\003\037bson:\"locat" - "ion\" json:\"location\"R\010location\022g\n\013last_a" - "ccess\030\004 \001(\0132\032.google.protobuf.TimestampB" - "*\232\204\236\003%bson:\"last_access\" json:\"last_acce" - "ss\"R\nlastAccess\022Q\n\ncreated_on\030\005 \001(\0132\032.go" - "ogle.protobuf.TimestampB\026\232\204\236\003\021bson:\"crea" - "ted_on\"R\tcreatedOn\"\257\010\n\tRobotPart\0223\n\002id\030\001" - " \001(\tB#\232\204\236\003\036bson:\"_id\" json:\"id,omitempty" - "\"R\002id\0220\n\004name\030\002 \001(\tB\034\232\204\236\003\027bson:\"name\" js" - "on:\"name\"R\004name\022\?\n\010dns_name\030\n \001(\tB$\232\204\236\003\037" - "bson:\"dns_name\" json:\"dns_name\"R\007dnsName" - "\022B\n\006secret\030\003 \001(\tB*\232\204\236\003%bson:\"secret\" jso" - "n:\"secret,omitempty\"R\006secret\0224\n\005robot\030\004 " - "\001(\tB\036\232\204\236\003\031bson:\"robot\" json:\"robot\"R\005rob" - "ot\022A\n\013location_id\030\014 \001(\tB \232\204\236\003\033bson:\"loca" - "tion_id\" json:\"-\"R\nlocationId\022b\n\014robot_c" - "onfig\030\005 \001(\0132\027.google.protobuf.StructB&\232\204" - "\236\003!bson:\"config\" json:\"robot_config\"R\013ro" - "botConfig\022g\n\013last_access\030\006 \001(\0132\032.google." - "protobuf.TimestampB*\232\204\236\003%bson:\"last_acce" - "ss\" json:\"last_access\"R\nlastAccess\022\177\n\022us" - "er_supplied_info\030\007 \001(\0132\027.google.protobuf" - ".StructB8\232\204\236\0033bson:\"user_supplied_info\" " - "json:\"user_supplied_info\"R\020userSuppliedI" - "nfo\022C\n\tmain_part\030\010 \001(\010B&\232\204\236\003!bson:\"main_" - "part\" json:\"main_part\"R\010mainPart\022\022\n\004fqdn" - "\030\t \001(\tR\004fqdn\022\035\n\nlocal_fqdn\030\013 \001(\tR\tlocalF" - "qdn\022Q\n\ncreated_on\030\r \001(\0132\032.google.protobu" - "f.TimestampB\026\232\204\236\003\021bson:\"created_on\"R\tcre" - "atedOn\022H\n\007secrets\030\016 \003(\0132\031.viam.app.v1.Sh" - "aredSecretB\023\232\204\236\003\016bson:\"secrets\"R\007secrets" - "\022Z\n\014last_updated\030\017 \001(\0132\032.google.protobuf" - ".TimestampB\033\232\204\236\003\026bson:\"last_updated_at\"R" - "\013lastUpdated\"\370\002\n\025RobotPartHistoryEntry\0220" - "\n\004part\030\001 \001(\tB\034\232\204\236\003\027bson:\"part\" json:\"par" - "t\"R\004part\0224\n\005robot\030\002 \001(\tB\036\232\204\236\003\031bson:\"robo" - "t\" json:\"robot\"R\005robot\022L\n\004when\030\003 \001(\0132\032.g" - "oogle.protobuf.TimestampB\034\232\204\236\003\027bson:\"whe" - "n\" json:\"when\"R\004when\022D\n\003old\030\004 \001(\0132\026.viam" - ".app.v1.RobotPartB\032\232\204\236\003\025bson:\"old\" json:" - "\"old\"R\003old\022c\n\tedited_by\030\005 \001(\0132\036.viam.app" - ".v1.AuthenticatorInfoB&\232\204\236\003!bson:\"edited" - "_by\" json:\"edited_by\"R\010editedBy\"\205\001\n\021Auth" - "enticatorInfo\0223\n\004type\030\001 \001(\0162\037.viam.app.v" - "1.AuthenticationTypeR\004type\022\024\n\005value\030\002 \001(" - "\tR\005value\022%\n\016is_deactivated\030\003 \001(\010R\risDeac" - "tivated\"\032\n\030ListOrganizationsRequest\"\336\001\n\014" - "Organization\022\016\n\002id\030\001 \001(\tR\002id\022\022\n\004name\030\002 \001" - "(\tR\004name\0229\n\ncreated_on\030\003 \001(\0132\032.google.pr" - "otobuf.TimestampR\tcreatedOn\022)\n\020public_na" - "mespace\030\004 \001(\tR\017publicNamespace\022%\n\016defaul" - "t_region\030\005 \001(\tR\rdefaultRegion\022\025\n\003cid\030\006 \001" - "(\tH\000R\003cid\210\001\001B\006\n\004_cid\"\317\001\n\022OrganizationMem" - "ber\022\027\n\007user_id\030\001 \001(\tR\006userId\022\026\n\006emails\030\002" - " \003(\tR\006emails\0229\n\ndate_added\030\003 \001(\0132\032.googl" - "e.protobuf.TimestampR\tdateAdded\022>\n\nlast_" - "login\030\004 \001(\0132\032.google.protobuf.TimestampH" - "\000R\tlastLogin\210\001\001B\r\n\013_last_login\"\\\n\031ListOr" - "ganizationsResponse\022\?\n\rorganizations\030\001 \003" - "(\0132\031.viam.app.v1.OrganizationR\rorganizat" - "ions\"\322\001\n\022OrganizationInvite\022\'\n\017organizat" - "ion_id\030\001 \001(\tR\016organizationId\022\024\n\005email\030\002 " - "\001(\tR\005email\0229\n\ncreated_on\030\003 \001(\0132\032.google." - "protobuf.TimestampR\tcreatedOn\022B\n\016authori" - "zations\030\004 \003(\0132\032.viam.app.v1.Authorizatio" - "nR\016authorizations\"/\n\031CreateOrganizationR" - "equest\022\022\n\004name\030\001 \001(\tR\004name\"[\n\032CreateOrga" - "nizationResponse\022=\n\014organization\030\001 \001(\0132\031" - ".viam.app.v1.OrganizationR\014organization\"" - "A\n\026GetOrganizationRequest\022\'\n\017organizatio" - "n_id\030\001 \001(\tR\016organizationId\"X\n\027GetOrganiz" - "ationResponse\022=\n\014organization\030\001 \001(\0132\031.vi" - "am.app.v1.OrganizationR\014organization\"X\n+" - "GetOrganizationNamespaceAvailabilityRequ" - "est\022)\n\020public_namespace\030\001 \001(\tR\017publicNam" - "espace\"L\n,GetOrganizationNamespaceAvaila" - "bilityResponse\022\034\n\tavailable\030\001 \001(\010R\tavail" - "able\"\362\001\n\031UpdateOrganizationRequest\022\'\n\017or" - "ganization_id\030\001 \001(\tR\016organizationId\022\027\n\004n" - "ame\030\002 \001(\tH\000R\004name\210\001\001\022.\n\020public_namespace" - "\030\003 \001(\tH\001R\017publicNamespace\210\001\001\022\033\n\006region\030\004" - " \001(\tH\002R\006region\210\001\001\022\025\n\003cid\030\005 \001(\tH\003R\003cid\210\001\001" - "B\007\n\005_nameB\023\n\021_public_namespaceB\t\n\007_regio" - "nB\006\n\004_cid\"[\n\032UpdateOrganizationResponse\022" - "=\n\014organization\030\001 \001(\0132\031.viam.app.v1.Orga" - "nizationR\014organization\"D\n\031DeleteOrganiza" - "tionRequest\022\'\n\017organization_id\030\001 \001(\tR\016or" - "ganizationId\"\034\n\032DeleteOrganizationRespon" - "se\"I\n\036ListOrganizationMembersRequest\022\'\n\017" - "organization_id\030\001 \001(\tR\016organizationId\"\300\001" - "\n\037ListOrganizationMembersResponse\022\'\n\017org" - "anization_id\030\001 \001(\tR\016organizationId\0229\n\007me" - "mbers\030\002 \003(\0132\037.viam.app.v1.OrganizationMe" - "mberR\007members\0229\n\007invites\030\003 \003(\0132\037.viam.ap" - "p.v1.OrganizationInviteR\007invites\"\353\001\n\037Cre" - "ateOrganizationInviteRequest\022\'\n\017organiza" - "tion_id\030\001 \001(\tR\016organizationId\022\024\n\005email\030\002" - " \001(\tR\005email\022B\n\016authorizations\030\003 \003(\0132\032.vi" - "am.app.v1.AuthorizationR\016authorizations\022" - "/\n\021send_email_invite\030\004 \001(\010H\000R\017sendEmailI" - "nvite\210\001\001B\024\n\022_send_email_invite\"[\n Create" - "OrganizationInviteResponse\0227\n\006invite\030\001 \001" - "(\0132\037.viam.app.v1.OrganizationInviteR\006inv" - "ite\"\212\002\n-UpdateOrganizationInviteAuthoriz" - "ationsRequest\022\'\n\017organization_id\030\001 \001(\tR\016" - "organizationId\022\024\n\005email\030\002 \001(\tR\005email\022I\n\022" - "add_authorizations\030\003 \003(\0132\032.viam.app.v1.A" - "uthorizationR\021addAuthorizations\022O\n\025remov" - "e_authorizations\030\004 \003(\0132\032.viam.app.v1.Aut" - "horizationR\024removeAuthorizations\"i\n.Upda" - "teOrganizationInviteAuthorizationsRespon" - "se\0227\n\006invite\030\001 \001(\0132\037.viam.app.v1.Organiz" - "ationInviteR\006invite\"`\n\037DeleteOrganizatio" - "nInviteRequest\022\'\n\017organization_id\030\001 \001(\tR" - "\016organizationId\022\024\n\005email\030\002 \001(\tR\005email\"\"\n" - " DeleteOrganizationInviteResponse\"`\n\037Res" - "endOrganizationInviteRequest\022\'\n\017organiza" - "tion_id\030\001 \001(\tR\016organizationId\022\024\n\005email\030\002" - " \001(\tR\005email\"[\n ResendOrganizationInviteR" - "esponse\0227\n\006invite\030\001 \001(\0132\037.viam.app.v1.Or" - "ganizationInviteR\006invite\"c\n\037DeleteOrgani" - "zationMemberRequest\022\'\n\017organization_id\030\001" - " \001(\tR\016organizationId\022\027\n\007user_id\030\002 \001(\tR\006u" - "serId\"\"\n DeleteOrganizationMemberRespons" - "e\"\270\001\n\016BillingAddress\022$\n\016address_line_1\030\001" - " \001(\tR\014addressLine1\022)\n\016address_line_2\030\002 \001" - "(\tH\000R\014addressLine2\210\001\001\022\022\n\004city\030\003 \001(\tR\004cit" - "y\022\024\n\005state\030\004 \001(\tR\005state\022\030\n\007zipcode\030\005 \001(\t" - "R\007zipcodeB\021\n\017_address_line_2\"z\n\033EnableBi" - "llingServiceRequest\022\025\n\006org_id\030\001 \001(\tR\005org" - "Id\022D\n\017billing_address\030\002 \001(\0132\033.viam.app.v" - "1.BillingAddressR\016billingAddress\"\036\n\034Enab" - "leBillingServiceResponse\"z\n\033UpdateBillin" - "gServiceRequest\022\025\n\006org_id\030\001 \001(\tR\005orgId\022D" - "\n\017billing_address\030\002 \001(\0132\033.viam.app.v1.Bi" - "llingAddressR\016billingAddress\"\036\n\034UpdateBi" - "llingServiceResponse\"7\n\036GetBillingServic" - "eConfigRequest\022\025\n\006org_id\030\001 \001(\tR\005orgId\"\333\001" - "\n\037GetBillingServiceConfigResponse\022D\n\017bil" - "ling_address\030\001 \001(\0132\033.viam.app.v1.Billing" - "AddressR\016billingAddress\022#\n\rsupport_email" - "\030\002 \001(\tR\014supportEmail\022\031\n\010logo_url\030\003 \001(\tR\007" - "logoUrl\0222\n\025billing_dashboard_url\030\004 \001(\tR\023" - "billingDashboardUrl\"5\n\034DisableBillingSer" - "viceRequest\022\025\n\006org_id\030\001 \001(\tR\005orgId\"\037\n\035Di" - "sableBillingServiceResponse\"Q\n\"Organizat" - "ionSetSupportEmailRequest\022\025\n\006org_id\030\001 \001(" - "\tR\005orgId\022\024\n\005email\030\002 \001(\tR\005email\"%\n#Organi" - "zationSetSupportEmailResponse\";\n\"Organiz" - "ationGetSupportEmailRequest\022\025\n\006org_id\030\001 " - "\001(\tR\005orgId\";\n#OrganizationGetSupportEmai" - "lResponse\022\024\n\005email\030\001 \001(\tR\005email\":\n\024Organ" - "izationIdentity\022\016\n\002id\030\001 \001(\tR\002id\022\022\n\004name\030" - "\002 \001(\tR\004name\"Y\n\024LocationOrganization\022\'\n\017o" - "rganization_id\030\001 \001(\tR\016organizationId\022\030\n\007" - "primary\030\002 \001(\010R\007primary\"\200\001\n\014LocationAuth\022" - "\032\n\006secret\030\001 \001(\tB\002\030\001R\006secret\022\037\n\013location_" - "id\030\002 \001(\tR\nlocationId\0223\n\007secrets\030\003 \003(\0132\031." - "viam.app.v1.SharedSecretR\007secrets\"\'\n\rSto" - "rageConfig\022\026\n\006region\030\001 \001(\tR\006region\"\344\002\n\010L" - "ocation\022\016\n\002id\030\001 \001(\tR\002id\022\022\n\004name\030\002 \001(\tR\004n" - "ame\022,\n\022parent_location_id\030\004 \001(\tR\020parentL" - "ocationId\022-\n\004auth\030\005 \001(\0132\031.viam.app.v1.Lo" - "cationAuthR\004auth\022G\n\rorganizations\030\006 \003(\0132" - "!.viam.app.v1.LocationOrganizationR\rorga" - "nizations\0229\n\ncreated_on\030\003 \001(\0132\032.google.p" - "rotobuf.TimestampR\tcreatedOn\022\037\n\013robot_co" - "unt\030\007 \001(\005R\nrobotCount\0222\n\006config\030\010 \001(\0132\032." - "viam.app.v1.StorageConfigR\006config\"\320\002\n\014Sh" - "aredSecret\022\036\n\002id\030\001 \001(\tB\016\232\204\236\003\tbson:\"id\"R\002" - "id\022*\n\006secret\030\002 \001(\tB\022\232\204\236\003\rbson:\"secret\"R\006" - "secret\022c\n\ncreated_on\030\003 \001(\0132\032.google.prot" - "obuf.TimestampB(\232\204\236\003#bson:\"created_on\" j" - "son:\"created_on\"R\tcreatedOn\022H\n\005state\030\004 \001" - "(\0162\037.viam.app.v1.SharedSecret.StateB\021\232\204\236" - "\003\014bson:\"state\"R\005state\"E\n\005State\022\025\n\021STATE_" - "UNSPECIFIED\020\000\022\021\n\rSTATE_ENABLED\020\001\022\022\n\016STAT" - "E_DISABLED\020\002\"\236\001\n\025CreateLocationRequest\022\'" - "\n\017organization_id\030\001 \001(\tR\016organizationId\022" - "\022\n\004name\030\002 \001(\tR\004name\0221\n\022parent_location_i" - "d\030\003 \001(\tH\000R\020parentLocationId\210\001\001B\025\n\023_paren" - "t_location_id\"K\n\026CreateLocationResponse\022" - "1\n\010location\030\001 \001(\0132\025.viam.app.v1.Location" - "R\010location\"5\n\022GetLocationRequest\022\037\n\013loca" - "tion_id\030\001 \001(\tR\nlocationId\"H\n\023GetLocation" - "Response\0221\n\010location\030\001 \001(\0132\025.viam.app.v1" - ".LocationR\010location\"\314\001\n\025UpdateLocationRe" - "quest\022\037\n\013location_id\030\001 \001(\tR\nlocationId\022\027" - "\n\004name\030\002 \001(\tH\000R\004name\210\001\001\0221\n\022parent_locati" - "on_id\030\003 \001(\tH\001R\020parentLocationId\210\001\001\022\033\n\006re" - "gion\030\004 \001(\tH\002R\006region\210\001\001B\007\n\005_nameB\025\n\023_par" - "ent_location_idB\t\n\007_region\"K\n\026UpdateLoca" - "tionResponse\0221\n\010location\030\001 \001(\0132\025.viam.ap" - "p.v1.LocationR\010location\"8\n\025DeleteLocatio" - "nRequest\022\037\n\013location_id\030\001 \001(\tR\nlocationI" - "d\"\030\n\026DeleteLocationResponse\"N\n+GetOrgani" - "zationsWithAccessToLocationRequest\022\037\n\013lo" - "cation_id\030\001 \001(\tR\nlocationId\"\212\001\n,GetOrgan" - "izationsWithAccessToLocationResponse\022Z\n\027" - "organization_identities\030\001 \003(\0132!.viam.app" - ".v1.OrganizationIdentityR\026organizationId" - "entities\"\?\n\024ListLocationsRequest\022\'\n\017orga" - "nization_id\030\001 \001(\tR\016organizationId\"`\n\024Sha" - "reLocationRequest\022\037\n\013location_id\030\001 \001(\tR\n" - "locationId\022\'\n\017organization_id\030\002 \001(\tR\016org" - "anizationId\"\027\n\025ShareLocationResponse\"b\n\026" - "UnshareLocationRequest\022\037\n\013location_id\030\001 " - "\001(\tR\nlocationId\022\'\n\017organization_id\030\002 \001(\t" - "R\016organizationId\"\031\n\027UnshareLocationRespo" - "nse\"L\n\025ListLocationsResponse\0223\n\tlocation" - "s\030\001 \003(\0132\025.viam.app.v1.LocationR\tlocation" - "s\">\n\033CreateLocationSecretRequest\022\037\n\013loca" - "tion_id\030\001 \001(\tR\nlocationId\"M\n\034CreateLocat" - "ionSecretResponse\022-\n\004auth\030\001 \001(\0132\031.viam.a" - "pp.v1.LocationAuthR\004auth\"[\n\033DeleteLocati" - "onSecretRequest\022\037\n\013location_id\030\001 \001(\tR\nlo" - "cationId\022\033\n\tsecret_id\030\002 \001(\tR\010secretId\"\036\n" - "\034DeleteLocationSecretResponse\"6\n\023Locatio" - "nAuthRequest\022\037\n\013location_id\030\001 \001(\tR\nlocat" - "ionId\"E\n\024LocationAuthResponse\022-\n\004auth\030\001 " - "\001(\0132\031.viam.app.v1.LocationAuthR\004auth\"!\n\017" - "GetRobotRequest\022\016\n\002id\030\001 \001(\tR\002id\"4\n\033GetRo" - "verRentalRobotsRequest\022\025\n\006org_id\030\001 \001(\tR\005" - "orgId\"\232\001\n\020RoverRentalRobot\022\031\n\010robot_id\030\001" - " \001(\tR\007robotId\022\037\n\013location_id\030\002 \001(\tR\nloca" - "tionId\022\035\n\nrobot_name\030\003 \001(\tR\trobotName\022+\n" - "\022robot_main_part_id\030\004 \001(\tR\017robotMainPart" - "Id\"U\n\034GetRoverRentalRobotsResponse\0225\n\006ro" - "bots\030\001 \003(\0132\035.viam.app.v1.RoverRentalRobo" - "tR\006robots\"<\n\020GetRobotResponse\022(\n\005robot\030\001" - " \001(\0132\022.viam.app.v1.RobotR\005robot\"1\n\024GetRo" - "botPartsRequest\022\031\n\010robot_id\030\001 \001(\tR\007robot" - "Id\"E\n\025GetRobotPartsResponse\022,\n\005parts\030\001 \003" - "(\0132\026.viam.app.v1.RobotPartR\005parts\"%\n\023Get" - "RobotPartRequest\022\016\n\002id\030\001 \001(\tR\002id\"c\n\024GetR" - "obotPartResponse\022*\n\004part\030\001 \001(\0132\026.viam.ap" - "p.v1.RobotPartR\004part\022\037\n\013config_json\030\002 \001(" - "\tR\nconfigJson\"\212\003\n\027GetRobotPartLogsReques" - "t\022\016\n\002id\030\001 \001(\tR\002id\022#\n\013errors_only\030\002 \001(\010B\002" - "\030\001R\nerrorsOnly\022\033\n\006filter\030\003 \001(\tH\000R\006filter" - "\210\001\001\022\"\n\npage_token\030\004 \001(\tH\001R\tpageToken\210\001\001\022" - "\026\n\006levels\030\005 \003(\tR\006levels\0225\n\005start\030\006 \001(\0132\032" - ".google.protobuf.TimestampH\002R\005start\210\001\001\0221" - "\n\003end\030\007 \001(\0132\032.google.protobuf.TimestampH" - "\003R\003end\210\001\001\022\031\n\005limit\030\010 \001(\003H\004R\005limit\210\001\001\022\033\n\006" - "source\030\t \001(\tH\005R\006source\210\001\001B\t\n\007_filterB\r\n\013" - "_page_tokenB\010\n\006_startB\006\n\004_endB\010\n\006_limitB" - "\t\n\007_source\"p\n\030GetRobotPartLogsResponse\022," - "\n\004logs\030\001 \003(\0132\030.viam.common.v1.LogEntryR\004" - "logs\022&\n\017next_page_token\030\002 \001(\tR\rnextPageT" - "oken\"s\n\030TailRobotPartLogsRequest\022\016\n\002id\030\001" - " \001(\tR\002id\022\037\n\013errors_only\030\002 \001(\010R\nerrorsOnl" - "y\022\033\n\006filter\030\003 \001(\tH\000R\006filter\210\001\001B\t\n\007_filte" - "r\"I\n\031TailRobotPartLogsResponse\022,\n\004logs\030\001" - " \003(\0132\030.viam.common.v1.LogEntryR\004logs\",\n\032" - "GetRobotPartHistoryRequest\022\016\n\002id\030\001 \001(\tR\002" - "id\"[\n\033GetRobotPartHistoryResponse\022<\n\007his" - "tory\030\001 \003(\0132\".viam.app.v1.RobotPartHistor" - "yEntryR\007history\"x\n\026UpdateRobotPartReques" - "t\022\016\n\002id\030\001 \001(\tR\002id\022\022\n\004name\030\002 \001(\tR\004name\022:\n" - "\014robot_config\030\003 \001(\0132\027.google.protobuf.St" - "ructR\013robotConfig\"E\n\027UpdateRobotPartResp" - "onse\022*\n\004part\030\001 \001(\0132\026.viam.app.v1.RobotPa" - "rtR\004part\"M\n\023NewRobotPartRequest\022\031\n\010robot" - "_id\030\001 \001(\tR\007robotId\022\033\n\tpart_name\030\002 \001(\tR\010p" - "artName\"/\n\024NewRobotPartResponse\022\027\n\007part_" - "id\030\001 \001(\tR\006partId\"1\n\026DeleteRobotPartReque" - "st\022\027\n\007part_id\030\001 \001(\tR\006partId\"3\n\026GetRobotA" - "PIKeysRequest\022\031\n\010robot_id\030\001 \001(\tR\007robotId" - "\"y\n\006APIKey\022\016\n\002id\030\001 \001(\tR\002id\022\020\n\003key\030\002 \001(\tR" - "\003key\022\022\n\004name\030\003 \001(\tR\004name\0229\n\ncreated_on\030\004" - " \001(\0132\032.google.protobuf.TimestampR\tcreate" - "dOn\"[\n\027GetRobotAPIKeysResponse\022@\n\010api_ke" - "ys\030\001 \003(\0132%.viam.app.v1.APIKeyWithAuthori" - "zationsR\007apiKeys\"\031\n\027DeleteRobotPartRespo" - "nse\"\205\006\n\010Fragment\0223\n\002id\030\001 \001(\tB#\232\204\236\003\036bson:" - "\"_id\" json:\"id,omitempty\"R\002id\0220\n\004name\030\002 " - "\001(\tB\034\232\204\236\003\027bson:\"name\" json:\"name\"R\004name\022" - "Y\n\010fragment\030\003 \001(\0132\027.google.protobuf.Stru" - "ctB$\232\204\236\003\037bson:\"fragment\" json:\"fragment\"" - "R\010fragment\022Z\n\022organization_owner\030\004 \001(\tB+" - "\232\204\236\003&bson:\"organization_owner\" json:\"own" - "er\"R\021organizationOwner\0228\n\006public\030\005 \001(\010B " - "\232\204\236\003\033bson:\"public\" json:\"public\"R\006public" - "\022Q\n\ncreated_on\030\006 \001(\0132\032.google.protobuf.T" - "imestampB\026\232\204\236\003\021bson:\"created_on\"R\tcreate" - "dOn\022+\n\021organization_name\030\007 \001(\tR\020organiza" - "tionName\022(\n\020robot_part_count\030\t \001(\005R\016robo" - "tPartCount\022-\n\022organization_count\030\n \001(\005R\021" - "organizationCount\022+\n\022only_used_by_owner\030" - "\013 \001(\010R\017onlyUsedByOwner\022\?\n\nvisibility\030\014 \001" - "(\0162\037.viam.app.v1.FragmentVisibilityR\nvis" - "ibility\022Z\n\014last_updated\030\r \001(\0132\032.google.p" - "rotobuf.TimestampB\033\232\204\236\003\026bson:\"last_updat" - "ed_at\"R\013lastUpdated\"\343\002\n\024FragmentHistoryE" - "ntry\022@\n\010fragment\030\001 \001(\tB$\232\204\236\003\037bson:\"fragm" - "ent\" json:\"fragment\"R\010fragment\022_\n\tedited" - "_on\030\002 \001(\0132\032.google.protobuf.TimestampB&\232" - "\204\236\003!bson:\"edited_on\" json:\"edited_on\"R\010e" - "ditedOn\022C\n\003old\030\003 \001(\0132\025.viam.app.v1.Fragm" - "entB\032\232\204\236\003\025bson:\"old\" json:\"old\"R\003old\022c\n\t" - "edited_by\030\004 \001(\0132\036.viam.app.v1.Authentica" - "torInfoB&\232\204\236\003!bson:\"edited_by\" json:\"edi" - "ted_by\"R\010editedBy\"\207\001\n\rFragmentError\022=\n\ne" - "rror_type\030\001 \001(\0162\036.viam.app.v1.FragmentEr" - "rorTypeR\terrorType\022\037\n\013fragment_id\030\002 \001(\tR" - "\nfragmentId\022\026\n\006detail\030\003 \001(\tR\006detail\"\247\001\n\020" - "ResolvedFragment\022\037\n\013fragment_id\030\001 \001(\tR\nf" - "ragmentId\022@\n\017resolved_config\030\002 \001(\0132\027.goo" - "gle.protobuf.StructR\016resolvedConfig\0220\n\005e" - "rror\030\003 \001(\0132\032.viam.app.v1.FragmentErrorR\005" - "error\"\262\001\n\024ListFragmentsRequest\022\'\n\017organi" - "zation_id\030\001 \001(\tR\016organizationId\022\037\n\013show_" - "public\030\002 \001(\010R\nshowPublic\022P\n\023fragment_vis" - "ibility\030\003 \003(\0162\037.viam.app.v1.FragmentVisi" - "bilityR\022fragmentVisibility\"L\n\025ListFragme" - "ntsResponse\0223\n\tfragments\030\001 \003(\0132\025.viam.ap" - "p.v1.FragmentR\tfragments\"$\n\022GetFragmentR" - "equest\022\016\n\002id\030\001 \001(\tR\002id\"H\n\023GetFragmentRes" - "ponse\0221\n\010fragment\030\001 \001(\0132\025.viam.app.v1.Fr" - "agmentR\010fragment\"\332\001\n\025CreateFragmentReque" - "st\022\022\n\004name\030\001 \001(\tR\004name\022/\n\006config\030\002 \001(\0132\027" - ".google.protobuf.StructR\006config\022\'\n\017organ" - "ization_id\030\003 \001(\tR\016organizationId\022D\n\nvisi" - "bility\030\004 \001(\0162\037.viam.app.v1.FragmentVisib" - "ilityH\000R\nvisibility\210\001\001B\r\n\013_visibility\"K\n" - "\026CreateFragmentResponse\0221\n\010fragment\030\001 \001(" - "\0132\025.viam.app.v1.FragmentR\010fragment\"\351\001\n\025U" - "pdateFragmentRequest\022\016\n\002id\030\001 \001(\tR\002id\022\022\n\004" - "name\030\002 \001(\tR\004name\022/\n\006config\030\003 \001(\0132\027.googl" - "e.protobuf.StructR\006config\022\033\n\006public\030\004 \001(" - "\010H\000R\006public\210\001\001\022D\n\nvisibility\030\005 \001(\0162\037.via" - "m.app.v1.FragmentVisibilityH\001R\nvisibilit" - "y\210\001\001B\t\n\007_publicB\r\n\013_visibility\"K\n\026Update" - "FragmentResponse\0221\n\010fragment\030\001 \001(\0132\025.via" - "m.app.v1.FragmentR\010fragment\"\'\n\025DeleteFra" - "gmentRequest\022\016\n\002id\030\001 \001(\tR\002id\"\030\n\026DeleteFr" - "agmentResponse\"\221\001\n\031GetFragmentHistoryReq" - "uest\022\016\n\002id\030\001 \001(\tR\002id\022\"\n\npage_token\030\002 \001(\t" - "H\000R\tpageToken\210\001\001\022\"\n\npage_limit\030\003 \001(\003H\001R\t" - "pageLimit\210\001\001B\r\n\013_page_tokenB\r\n\013_page_lim" - "it\"\201\001\n\032GetFragmentHistoryResponse\022;\n\007his" - "tory\030\001 \003(\0132!.viam.app.v1.FragmentHistory" - "EntryR\007history\022&\n\017next_page_token\030\002 \001(\tR" - "\rnextPageToken\"4\n\021ListRobotsRequest\022\037\n\013l" - "ocation_id\030\001 \001(\tR\nlocationId\"t\n\033ListMach" - "ineFragmentsRequest\022\035\n\nmachine_id\030\001 \001(\tR" - "\tmachineId\0226\n\027additional_fragment_ids\030\002 " - "\003(\tR\025additionalFragmentIds\"\241\001\n\034ListMachi" - "neFragmentsResponse\0223\n\tfragments\030\001 \003(\0132\025" - ".viam.app.v1.FragmentR\tfragments\022L\n\022reso" - "lved_fragments\030\002 \003(\0132\035.viam.app.v1.Resol" - "vedFragmentR\021resolvedFragments\"@\n\022ListRo" - "botsResponse\022*\n\006robots\030\001 \003(\0132\022.viam.app." - "v1.RobotR\006robots\"A\n\017NewRobotRequest\022\022\n\004n" - "ame\030\001 \001(\tR\004name\022\032\n\010location\030\002 \001(\tR\010locat" - "ion\"\"\n\020NewRobotResponse\022\016\n\002id\030\001 \001(\tR\002id\"" - "T\n\022UpdateRobotRequest\022\016\n\002id\030\001 \001(\tR\002id\022\022\n" - "\004name\030\002 \001(\tR\004name\022\032\n\010location\030\003 \001(\tR\010loc" - "ation\"\?\n\023UpdateRobotResponse\022(\n\005robot\030\001 " - "\001(\0132\022.viam.app.v1.RobotR\005robot\"$\n\022Delete" - "RobotRequest\022\016\n\002id\030\001 \001(\tR\002id\"\025\n\023DeleteRo" - "botResponse\"0\n\025MarkPartAsMainRequest\022\027\n\007" - "part_id\030\001 \001(\tR\006partId\"\030\n\026MarkPartAsMainR" - "esponse\"4\n\031MarkPartForRestartRequest\022\027\n\007" - "part_id\030\001 \001(\tR\006partId\"\034\n\032MarkPartForRest" - "artResponse\"7\n\034CreateRobotPartSecretRequ" - "est\022\027\n\007part_id\030\001 \001(\tR\006partId\"K\n\035CreateRo" - "botPartSecretResponse\022*\n\004part\030\001 \001(\0132\026.vi" - "am.app.v1.RobotPartR\004part\"T\n\034DeleteRobot" - "PartSecretRequest\022\027\n\007part_id\030\001 \001(\tR\006part" - "Id\022\033\n\tsecret_id\030\002 \001(\tR\010secretId\"\037\n\035Delet" - "eRobotPartSecretResponse\"\236\002\n\rAuthorizati" - "on\022-\n\022authorization_type\030\001 \001(\tR\021authoriz" - "ationType\022)\n\020authorization_id\030\002 \001(\tR\017aut" - "horizationId\022#\n\rresource_type\030\003 \001(\tR\014res" - "ourceType\022\037\n\013resource_id\030\004 \001(\tR\nresource" - "Id\022\037\n\013identity_id\030\005 \001(\tR\nidentityId\022\'\n\017o" - "rganization_id\030\006 \001(\tR\016organizationId\022#\n\r" - "identity_type\030\007 \001(\tR\014identityType\"R\n\016Add" - "RoleRequest\022@\n\rauthorization\030\001 \001(\0132\032.via" - "m.app.v1.AuthorizationR\rauthorization\"\021\n" - "\017AddRoleResponse\"U\n\021RemoveRoleRequest\022@\n" - "\rauthorization\030\001 \001(\0132\032.viam.app.v1.Autho" - "rizationR\rauthorization\"\024\n\022RemoveRoleRes" - "ponse\"\245\001\n\021ChangeRoleRequest\022G\n\021old_autho" - "rization\030\001 \001(\0132\032.viam.app.v1.Authorizati" - "onR\020oldAuthorization\022G\n\021new_authorizatio" - "n\030\002 \001(\0132\032.viam.app.v1.AuthorizationR\020new" - "Authorization\"\024\n\022ChangeRoleResponse\"g\n\031L" - "istAuthorizationsRequest\022\'\n\017organization" - "_id\030\001 \001(\tR\016organizationId\022!\n\014resource_id" - "s\030\002 \003(\tR\013resourceIds\"`\n\032ListAuthorizatio" - "nsResponse\022B\n\016authorizations\030\001 \003(\0132\032.via" - "m.app.v1.AuthorizationR\016authorizations\"_" - "\n\027CheckPermissionsRequest\022D\n\013permissions" - "\030\001 \003(\0132\".viam.app.v1.AuthorizedPermissio" - "nsR\013permissions\"\177\n\025AuthorizedPermissions" - "\022#\n\rresource_type\030\001 \001(\tR\014resourceType\022\037\n" - "\013resource_id\030\002 \001(\tR\nresourceId\022 \n\013permis" - "sions\030\003 \003(\tR\013permissions\"u\n\030CheckPermiss" - "ionsResponse\022Y\n\026authorized_permissions\030\001" - " \003(\0132\".viam.app.v1.AuthorizedPermissions" - "R\025authorizedPermissions\"\321\001\n\rModuleVersio" - "n\022\030\n\007version\030\001 \001(\tR\007version\022*\n\005files\030\002 \003" - "(\0132\024.viam.app.v1.UploadsR\005files\022*\n\006model" - "s\030\003 \003(\0132\022.viam.app.v1.ModelR\006models\022\036\n\ne" - "ntrypoint\030\004 \001(\tR\nentrypoint\022 \n\tfirst_run" - "\030\005 \001(\tH\000R\010firstRun\210\001\001B\014\n\n_first_run\"\304\001\n\016" - "ModuleMetadata\022*\n\006models\030\001 \003(\0132\022.viam.ap" - "p.v1.ModelR\006models\0226\n\010versions\030\002 \003(\0132\032.v" - "iam.app.v1.ModuleVersionR\010versions\022\036\n\nen" - "trypoint\030\003 \001(\tR\nentrypoint\022 \n\tfirst_run\030" - "\004 \001(\tH\000R\010firstRun\210\001\001B\014\n\n_first_run\"\300\001\n\017M" - "LModelMetadata\022\032\n\010versions\030\001 \003(\tR\010versio" - "ns\022@\n\nmodel_type\030\002 \001(\0162!.viam.app.mltrai" - "ning.v1.ModelTypeR\tmodelType\022O\n\017model_fr" - "amework\030\003 \001(\0162&.viam.app.mltraining.v1.M" - "odelFrameworkR\016modelFramework\"h\n\021MLTrain" - "ingVersion\022\030\n\007version\030\001 \001(\tR\007version\0229\n\n" - "created_on\030\002 \001(\0132\032.google.protobuf.Times" - "tampR\tcreatedOn\"\377\001\n\022MLTrainingMetadata\022:" - "\n\010versions\030\005 \003(\0132\036.viam.app.v1.MLTrainin" - "gVersionR\010versions\022@\n\nmodel_type\030\002 \001(\0162!" - ".viam.app.mltraining.v1.ModelTypeR\tmodel" - "Type\022O\n\017model_framework\030\003 \001(\0162&.viam.app" - ".mltraining.v1.ModelFrameworkR\016modelFram" - "ework\022\024\n\005draft\030\004 \001(\010R\005draftJ\004\010\001\020\002\"\214\007\n\014Re" - "gistryItem\022\027\n\007item_id\030\001 \001(\tR\006itemId\022\'\n\017o" - "rganization_id\030\002 \001(\tR\016organizationId\022)\n\020" - "public_namespace\030\003 \001(\tR\017publicNamespace\022" - "\022\n\004name\030\004 \001(\tR\004name\0225\n\004type\030\005 \001(\0162!.viam" - ".app.packages.v1.PackageTypeR\004type\0227\n\nvi" - "sibility\030\006 \001(\0162\027.viam.app.v1.VisibilityR" - "\nvisibility\022\020\n\003url\030\007 \001(\tR\003url\022 \n\013descrip" - "tion\030\010 \001(\tR\013description\022*\n\021total_robot_u" - "sage\030\t \001(\003R\017totalRobotUsage\022;\n\032total_ext" - "ernal_robot_usage\030\r \001(\003R\027totalExternalRo" - "botUsage\0228\n\030total_organization_usage\030\n \001" - "(\003R\026totalOrganizationUsage\022I\n!total_exte" - "rnal_organization_usage\030\016 \001(\003R\036totalExte" - "rnalOrganizationUsage\022F\n\017module_metadata" - "\030\013 \001(\0132\033.viam.app.v1.ModuleMetadataH\000R\016m" - "oduleMetadata\022J\n\021ml_model_metadata\030\014 \001(\013" - "2\034.viam.app.v1.MLModelMetadataH\000R\017mlMode" - "lMetadata\022S\n\024ml_training_metadata\030\022 \001(\0132" - "\037.viam.app.v1.MLTrainingMetadataH\000R\022mlTr" - "ainingMetadata\0229\n\ncreated_at\030\017 \001(\0132\032.goo" - "gle.protobuf.TimestampR\tcreatedAt\0229\n\nupd" - "ated_at\030\020 \001(\0132\032.google.protobuf.Timestam" - "pR\tupdatedAtB\n\n\010metadata\"1\n\026GetRegistryI" - "temRequest\022\027\n\007item_id\030\001 \001(\tR\006itemId\"H\n\027G" - "etRegistryItemResponse\022-\n\004item\030\001 \001(\0132\031.v" - "iam.app.v1.RegistryItemR\004item\"\217\001\n\031Create" - "RegistryItemRequest\022\'\n\017organization_id\030\001" - " \001(\tR\016organizationId\022\022\n\004name\030\002 \001(\tR\004name" - "\0225\n\004type\030\003 \001(\0162!.viam.app.packages.v1.Pa" - "ckageTypeR\004type\"\034\n\032CreateRegistryItemRes" - "ponse\"\345\001\n\031UpdateRegistryItemRequest\022\027\n\007i" - "tem_id\030\001 \001(\tR\006itemId\0225\n\004type\030\002 \001(\0162!.via" - "m.app.packages.v1.PackageTypeR\004type\022 \n\013d" - "escription\030\003 \001(\tR\013description\0227\n\nvisibil" - "ity\030\004 \001(\0162\027.viam.app.v1.VisibilityR\nvisi" - "bility\022\025\n\003url\030\005 \001(\tH\000R\003url\210\001\001B\006\n\004_url\"\034\n" - "\032UpdateRegistryItemResponse\"\303\003\n\030ListRegi" - "stryItemsRequest\022,\n\017organization_id\030\001 \001(" - "\tH\000R\016organizationId\210\001\001\0227\n\005types\030\002 \003(\0162!." - "viam.app.packages.v1.PackageTypeR\005types\022" - ";\n\014visibilities\030\003 \003(\0162\027.viam.app.v1.Visi" - "bilityR\014visibilities\022\034\n\tplatforms\030\004 \003(\tR" - "\tplatforms\022;\n\010statuses\030\005 \003(\0162\037.viam.app." - "v1.RegistryItemStatusR\010statuses\022$\n\013searc" - "h_term\030\006 \001(\tH\001R\nsearchTerm\210\001\001\022\"\n\npage_to" - "ken\030\007 \001(\tH\002R\tpageToken\210\001\001\022+\n\021public_name" - "spaces\030\010 \003(\tR\020publicNamespacesB\022\n\020_organ" - "ization_idB\016\n\014_search_termB\r\n\013_page_toke" - "n\"L\n\031ListRegistryItemsResponse\022/\n\005items\030" - "\001 \003(\0132\031.viam.app.v1.RegistryItemR\005items\"" - "4\n\031DeleteRegistryItemRequest\022\027\n\007item_id\030" - "\001 \001(\tR\006itemId\"\034\n\032DeleteRegistryItemRespo" - "nse\"h\n\033TransferRegistryItemRequest\022\027\n\007it" - "em_id\030\001 \001(\tR\006itemId\0220\n\024new_public_namesp" - "ace\030\002 \001(\tR\022newPublicNamespace\"\036\n\034Transfe" - "rRegistryItemResponse\"R\n\023CreateModuleReq" - "uest\022\'\n\017organization_id\030\001 \001(\tR\016organizat" - "ionId\022\022\n\004name\030\002 \001(\tR\004name\"E\n\024CreateModul" - "eResponse\022\033\n\tmodule_id\030\001 \001(\tR\010moduleId\022\020" - "\n\003url\030\002 \001(\tR\003url\"\233\002\n\023UpdateModuleRequest" - "\022\033\n\tmodule_id\030\001 \001(\tR\010moduleId\0227\n\nvisibil" - "ity\030\002 \001(\0162\027.viam.app.v1.VisibilityR\nvisi" - "bility\022\020\n\003url\030\003 \001(\tR\003url\022 \n\013description\030" - "\004 \001(\tR\013description\022*\n\006models\030\005 \003(\0132\022.via" - "m.app.v1.ModelR\006models\022\036\n\nentrypoint\030\006 \001" - "(\tR\nentrypoint\022 \n\tfirst_run\030\007 \001(\tH\000R\010fir" - "stRun\210\001\001B\014\n\n_first_run\"(\n\024UpdateModuleRe" - "sponse\022\020\n\003url\030\001 \001(\tR\003url\"/\n\005Model\022\020\n\003api" - "\030\001 \001(\tR\003api\022\024\n\005model\030\002 \001(\tR\005model\"\210\001\n\016Mo" - "duleFileInfo\022\033\n\tmodule_id\030\001 \001(\tR\010moduleI" - "d\022\030\n\007version\030\002 \001(\tR\007version\022\032\n\010platform\030" - "\003 \001(\tR\010platform\022#\n\rplatform_tags\030\005 \003(\tR\014" - "platformTags\"\207\001\n\027UploadModuleFileRequest" - "\022G\n\020module_file_info\030\001 \001(\0132\033.viam.app.v1" - ".ModuleFileInfoH\000R\016moduleFileInfo\022\024\n\004fil" - "e\030\002 \001(\014H\000R\004fileB\r\n\013module_file\",\n\030Upload" - "ModuleFileResponse\022\020\n\003url\030\001 \001(\tR\003url\"/\n\020" - "GetModuleRequest\022\033\n\tmodule_id\030\001 \001(\tR\010mod" - "uleId\"@\n\021GetModuleResponse\022+\n\006module\030\001 \001" - "(\0132\023.viam.app.v1.ModuleR\006module\"\225\004\n\006Modu" - "le\022\033\n\tmodule_id\030\001 \001(\tR\010moduleId\022\022\n\004name\030" - "\002 \001(\tR\004name\0227\n\nvisibility\030\003 \001(\0162\027.viam.a" - "pp.v1.VisibilityR\nvisibility\0227\n\010versions" - "\030\004 \003(\0132\033.viam.app.v1.VersionHistoryR\010ver" - "sions\022\020\n\003url\030\005 \001(\tR\003url\022 \n\013description\030\006" - " \001(\tR\013description\022*\n\006models\030\007 \003(\0132\022.viam" - ".app.v1.ModelR\006models\022*\n\021total_robot_usa" - "ge\030\010 \001(\003R\017totalRobotUsage\0228\n\030total_organ" - "ization_usage\030\t \001(\003R\026totalOrganizationUs" - "age\022\'\n\017organization_id\030\n \001(\tR\016organizati" - "onId\022\036\n\nentrypoint\030\013 \001(\tR\nentrypoint\022)\n\020" - "public_namespace\030\014 \001(\tR\017publicNamespace\022" - " \n\tfirst_run\030\r \001(\tH\000R\010firstRun\210\001\001B\014\n\n_fi" - "rst_run\"\322\001\n\016VersionHistory\022\030\n\007version\030\001 " - "\001(\tR\007version\022*\n\005files\030\002 \003(\0132\024.viam.app.v" - "1.UploadsR\005files\022*\n\006models\030\003 \003(\0132\022.viam." - "app.v1.ModelR\006models\022\036\n\nentrypoint\030\004 \001(\t" - "R\nentrypoint\022 \n\tfirst_run\030\005 \001(\tH\000R\010first" - "Run\210\001\001B\014\n\n_first_run\"b\n\007Uploads\022\032\n\010platf" - "orm\030\001 \001(\tR\010platform\022;\n\013uploaded_at\030\002 \001(\013" - "2\032.google.protobuf.TimestampR\nuploadedAt" - "\"V\n\022ListModulesRequest\022,\n\017organization_i" - "d\030\001 \001(\tH\000R\016organizationId\210\001\001B\022\n\020_organiz" - "ation_id\"D\n\023ListModulesResponse\022-\n\007modul" - "es\030\001 \003(\0132\023.viam.app.v1.ModuleR\007modules\"/" - "\n\027GetUserIDByEmailRequest\022\024\n\005email\030\001 \001(\t" - "R\005email\"3\n\030GetUserIDByEmailResponse\022\027\n\007u" - "ser_id\030\001 \001(\tR\006userId\"9\n\036ListOrganization" - "sByUserRequest\022\027\n\007user_id\030\001 \001(\tR\006userId\"" - ">\n\nOrgDetails\022\025\n\006org_id\030\001 \001(\tR\005orgId\022\031\n\010" - "org_name\030\002 \001(\tR\007orgName\"N\n\037ListOrganizat" - "ionsByUserResponse\022+\n\004orgs\030\001 \003(\0132\027.viam." - "app.v1.OrgDetailsR\004orgs\"j\n\020CreateKeyRequ" - "est\022B\n\016authorizations\030\001 \003(\0132\032.viam.app.v" - "1.AuthorizationR\016authorizations\022\022\n\004name\030" - "\002 \001(\tR\004name\"5\n\021CreateKeyResponse\022\020\n\003key\030" - "\001 \001(\tR\003key\022\016\n\002id\030\002 \001(\tR\002id\"\"\n\020DeleteKeyR" - "equest\022\016\n\002id\030\001 \001(\tR\002id\"\023\n\021DeleteKeyRespo" - "nse\"6\n\020RenameKeyRequest\022\016\n\002id\030\001 \001(\tR\002id\022" - "\022\n\004name\030\002 \001(\tR\004name\"7\n\021RenameKeyResponse" - "\022\016\n\002id\030\001 \001(\tR\002id\022\022\n\004name\030\002 \001(\tR\004name\"\315\001\n" - "\024AuthorizationDetails\022-\n\022authorization_t" - "ype\030\001 \001(\tR\021authorizationType\022)\n\020authoriz" - "ation_id\030\002 \001(\tR\017authorizationId\022#\n\rresou" - "rce_type\030\003 \001(\tR\014resourceType\022\037\n\013resource" - "_id\030\004 \001(\tR\nresourceId\022\025\n\006org_id\030\005 \001(\tR\005o" - "rgId\"\223\001\n\030APIKeyWithAuthorizations\022,\n\007api" - "_key\030\001 \001(\0132\023.viam.app.v1.APIKeyR\006apiKey\022" - "I\n\016authorizations\030\002 \003(\0132!.viam.app.v1.Au" - "thorizationDetailsR\016authorizations\"(\n\017Li" - "stKeysRequest\022\025\n\006org_id\030\001 \001(\tR\005orgId\"T\n\020" - "ListKeysResponse\022@\n\010api_keys\030\001 \003(\0132%.via" - "m.app.v1.APIKeyWithAuthorizationsR\007apiKe" - "ys\"\"\n\020RotateKeyRequest\022\016\n\002id\030\001 \001(\tR\002id\"5" - "\n\021RotateKeyResponse\022\016\n\002id\030\001 \001(\tR\002id\022\020\n\003k" - "ey\030\002 \001(\tR\003key\"\?\n-CreateKeyFromExistingKe" - "yAuthorizationsRequest\022\016\n\002id\030\001 \001(\tR\002id\"R" - "\n.CreateKeyFromExistingKeyAuthorizations" - "Response\022\016\n\002id\030\001 \001(\tR\002id\022\020\n\003key\030\002 \001(\tR\003k" - "ey*\321\001\n\022AuthenticationType\022#\n\037AUTHENTICAT" - "ION_TYPE_UNSPECIFIED\020\000\022!\n\035AUTHENTICATION" - "_TYPE_WEB_OAUTH\020\001\022\037\n\033AUTHENTICATION_TYPE" - "_API_KEY\020\002\022)\n%AUTHENTICATION_TYPE_ROBOT_" - "PART_SECRET\020\003\022\'\n#AUTHENTICATION_TYPE_LOC" - "ATION_SECRET\020\004*\243\001\n\022FragmentVisibility\022#\n" - "\037FRAGMENT_VISIBILITY_UNSPECIFIED\020\000\022\037\n\033FR" - "AGMENT_VISIBILITY_PRIVATE\020\001\022\036\n\032FRAGMENT_" - "VISIBILITY_PUBLIC\020\002\022\'\n#FRAGMENT_VISIBILI" - "TY_PUBLIC_UNLISTED\020\003*\335\001\n\021FragmentErrorTy" - "pe\022#\n\037FRAGMENT_ERROR_TYPE_UNSPECIFIED\020\000\022" - "!\n\035FRAGMENT_ERROR_TYPE_NO_ACCESS\020\001\022.\n*FR" - "AGMENT_ERROR_TYPE_NESTING_LIMIT_EXCEEDED" - "\020\002\022(\n$FRAGMENT_ERROR_TYPE_CHILD_ID_INVAL" - "ID\020\003\022&\n\"FRAGMENT_ERROR_TYPE_CYCLE_DETECT" - "ED\020\004*\207\001\n\022RegistryItemStatus\022$\n REGISTRY_" - "ITEM_STATUS_UNSPECIFIED\020\000\022\"\n\036REGISTRY_IT" - "EM_STATUS_PUBLISHED\020\001\022\'\n#REGISTRY_ITEM_S" - "TATUS_IN_DEVELOPMENT\020\002*w\n\nVisibility\022\032\n\026" - "VISIBILITY_UNSPECIFIED\020\000\022\026\n\022VISIBILITY_P" - "RIVATE\020\001\022\025\n\021VISIBILITY_PUBLIC\020\002\022\036\n\032VISIB" - "ILITY_PUBLIC_UNLISTED\020\0032\302=\n\nAppService\022_" - "\n\020GetUserIDByEmail\022$.viam.app.v1.GetUser" - "IDByEmailRequest\032%.viam.app.v1.GetUserID" - "ByEmailResponse\022e\n\022CreateOrganization\022&." - "viam.app.v1.CreateOrganizationRequest\032\'." - "viam.app.v1.CreateOrganizationResponse\022b" - "\n\021ListOrganizations\022%.viam.app.v1.ListOr" - "ganizationsRequest\032&.viam.app.v1.ListOrg" - "anizationsResponse\022\233\001\n$GetOrganizationsW" - "ithAccessToLocation\0228.viam.app.v1.GetOrg" - "anizationsWithAccessToLocationRequest\0329." - "viam.app.v1.GetOrganizationsWithAccessTo" - "LocationResponse\022t\n\027ListOrganizationsByU" - "ser\022+.viam.app.v1.ListOrganizationsByUse" - "rRequest\032,.viam.app.v1.ListOrganizations" - "ByUserResponse\022\\\n\017GetOrganization\022#.viam" - ".app.v1.GetOrganizationRequest\032$.viam.ap" - "p.v1.GetOrganizationResponse\022\233\001\n$GetOrga" - "nizationNamespaceAvailability\0228.viam.app" - ".v1.GetOrganizationNamespaceAvailability" - "Request\0329.viam.app.v1.GetOrganizationNam" - "espaceAvailabilityResponse\022e\n\022UpdateOrga" - "nization\022&.viam.app.v1.UpdateOrganizatio" - "nRequest\032\'.viam.app.v1.UpdateOrganizatio" - "nResponse\022e\n\022DeleteOrganization\022&.viam.a" - "pp.v1.DeleteOrganizationRequest\032\'.viam.a" - "pp.v1.DeleteOrganizationResponse\022t\n\027List" - "OrganizationMembers\022+.viam.app.v1.ListOr" - "ganizationMembersRequest\032,.viam.app.v1.L" - "istOrganizationMembersResponse\022w\n\030Create" - "OrganizationInvite\022,.viam.app.v1.CreateO" - "rganizationInviteRequest\032-.viam.app.v1.C" - "reateOrganizationInviteResponse\022\241\001\n&Upda" - "teOrganizationInviteAuthorizations\022:.via" - "m.app.v1.UpdateOrganizationInviteAuthori" - "zationsRequest\032;.viam.app.v1.UpdateOrgan" - "izationInviteAuthorizationsResponse\022w\n\030D" - "eleteOrganizationMember\022,.viam.app.v1.De" - "leteOrganizationMemberRequest\032-.viam.app" - ".v1.DeleteOrganizationMemberResponse\022w\n\030" - "DeleteOrganizationInvite\022,.viam.app.v1.D" - "eleteOrganizationInviteRequest\032-.viam.ap" - "p.v1.DeleteOrganizationInviteResponse\022w\n" - "\030ResendOrganizationInvite\022,.viam.app.v1." - "ResendOrganizationInviteRequest\032-.viam.a" - "pp.v1.ResendOrganizationInviteResponse\022k" - "\n\024EnableBillingService\022(.viam.app.v1.Ena" - "bleBillingServiceRequest\032).viam.app.v1.E" - "nableBillingServiceResponse\022n\n\025DisableBi" - "llingService\022).viam.app.v1.DisableBillin" - "gServiceRequest\032*.viam.app.v1.DisableBil" - "lingServiceResponse\022k\n\024UpdateBillingServ" - "ice\022(.viam.app.v1.UpdateBillingServiceRe" - "quest\032).viam.app.v1.UpdateBillingService" - "Response\022t\n\027GetBillingServiceConfig\022+.vi" - "am.app.v1.GetBillingServiceConfigRequest" - "\032,.viam.app.v1.GetBillingServiceConfigRe" - "sponse\022\200\001\n\033OrganizationSetSupportEmail\022/" - ".viam.app.v1.OrganizationSetSupportEmail" - "Request\0320.viam.app.v1.OrganizationSetSup" - "portEmailResponse\022\200\001\n\033OrganizationGetSup" - "portEmail\022/.viam.app.v1.OrganizationGetS" - "upportEmailRequest\0320.viam.app.v1.Organiz" - "ationGetSupportEmailResponse\022Y\n\016CreateLo" - "cation\022\".viam.app.v1.CreateLocationReque" - "st\032#.viam.app.v1.CreateLocationResponse\022" - "P\n\013GetLocation\022\037.viam.app.v1.GetLocation" - "Request\032 .viam.app.v1.GetLocationRespons" - "e\022Y\n\016UpdateLocation\022\".viam.app.v1.Update" - "LocationRequest\032#.viam.app.v1.UpdateLoca" - "tionResponse\022Y\n\016DeleteLocation\022\".viam.ap" - "p.v1.DeleteLocationRequest\032#.viam.app.v1" - ".DeleteLocationResponse\022V\n\rListLocations" - "\022!.viam.app.v1.ListLocationsRequest\032\".vi" - "am.app.v1.ListLocationsResponse\022V\n\rShare" - "Location\022!.viam.app.v1.ShareLocationRequ" - "est\032\".viam.app.v1.ShareLocationResponse\022" - "\\\n\017UnshareLocation\022#.viam.app.v1.Unshare" - "LocationRequest\032$.viam.app.v1.UnshareLoc" - "ationResponse\022S\n\014LocationAuth\022 .viam.app" - ".v1.LocationAuthRequest\032!.viam.app.v1.Lo" - "cationAuthResponse\022k\n\024CreateLocationSecr" - "et\022(.viam.app.v1.CreateLocationSecretReq" - "uest\032).viam.app.v1.CreateLocationSecretR" - "esponse\022k\n\024DeleteLocationSecret\022(.viam.a" - "pp.v1.DeleteLocationSecretRequest\032).viam" - ".app.v1.DeleteLocationSecretResponse\022G\n\010" - "GetRobot\022\034.viam.app.v1.GetRobotRequest\032\035" - ".viam.app.v1.GetRobotResponse\022k\n\024GetRove" - "rRentalRobots\022(.viam.app.v1.GetRoverRent" - "alRobotsRequest\032).viam.app.v1.GetRoverRe" - "ntalRobotsResponse\022V\n\rGetRobotParts\022!.vi" - "am.app.v1.GetRobotPartsRequest\032\".viam.ap" - "p.v1.GetRobotPartsResponse\022S\n\014GetRobotPa" - "rt\022 .viam.app.v1.GetRobotPartRequest\032!.v" - "iam.app.v1.GetRobotPartResponse\022_\n\020GetRo" - "botPartLogs\022$.viam.app.v1.GetRobotPartLo" - "gsRequest\032%.viam.app.v1.GetRobotPartLogs" - "Response\022d\n\021TailRobotPartLogs\022%.viam.app" - ".v1.TailRobotPartLogsRequest\032&.viam.app." - "v1.TailRobotPartLogsResponse0\001\022h\n\023GetRob" - "otPartHistory\022\'.viam.app.v1.GetRobotPart" - "HistoryRequest\032(.viam.app.v1.GetRobotPar" - "tHistoryResponse\022\\\n\017UpdateRobotPart\022#.vi" - "am.app.v1.UpdateRobotPartRequest\032$.viam." - "app.v1.UpdateRobotPartResponse\022S\n\014NewRob" - "otPart\022 .viam.app.v1.NewRobotPartRequest" - "\032!.viam.app.v1.NewRobotPartResponse\022\\\n\017D" - "eleteRobotPart\022#.viam.app.v1.DeleteRobot" - "PartRequest\032$.viam.app.v1.DeleteRobotPar" - "tResponse\022\\\n\017GetRobotAPIKeys\022#.viam.app." - "v1.GetRobotAPIKeysRequest\032$.viam.app.v1." - "GetRobotAPIKeysResponse\022Y\n\016MarkPartAsMai" - "n\022\".viam.app.v1.MarkPartAsMainRequest\032#." - "viam.app.v1.MarkPartAsMainResponse\022e\n\022Ma" - "rkPartForRestart\022&.viam.app.v1.MarkPartF" - "orRestartRequest\032\'.viam.app.v1.MarkPartF" - "orRestartResponse\022n\n\025CreateRobotPartSecr" - "et\022).viam.app.v1.CreateRobotPartSecretRe" - "quest\032*.viam.app.v1.CreateRobotPartSecre" - "tResponse\022n\n\025DeleteRobotPartSecret\022).via" - "m.app.v1.DeleteRobotPartSecretRequest\032*." - "viam.app.v1.DeleteRobotPartSecretRespons" - "e\022M\n\nListRobots\022\036.viam.app.v1.ListRobots" - "Request\032\037.viam.app.v1.ListRobotsResponse" - "\022G\n\010NewRobot\022\034.viam.app.v1.NewRobotReque" - "st\032\035.viam.app.v1.NewRobotResponse\022P\n\013Upd" - "ateRobot\022\037.viam.app.v1.UpdateRobotReques" - "t\032 .viam.app.v1.UpdateRobotResponse\022P\n\013D" - "eleteRobot\022\037.viam.app.v1.DeleteRobotRequ" - "est\032 .viam.app.v1.DeleteRobotResponse\022V\n" - "\rListFragments\022!.viam.app.v1.ListFragmen" - "tsRequest\032\".viam.app.v1.ListFragmentsRes" - "ponse\022P\n\013GetFragment\022\037.viam.app.v1.GetFr" - "agmentRequest\032 .viam.app.v1.GetFragmentR" - "esponse\022Y\n\016CreateFragment\022\".viam.app.v1." - "CreateFragmentRequest\032#.viam.app.v1.Crea" - "teFragmentResponse\022Y\n\016UpdateFragment\022\".v" - "iam.app.v1.UpdateFragmentRequest\032#.viam." - "app.v1.UpdateFragmentResponse\022Y\n\016DeleteF" - "ragment\022\".viam.app.v1.DeleteFragmentRequ" - "est\032#.viam.app.v1.DeleteFragmentResponse" - "\022k\n\024ListMachineFragments\022(.viam.app.v1.L" - "istMachineFragmentsRequest\032).viam.app.v1" - ".ListMachineFragmentsResponse\022e\n\022GetFrag" - "mentHistory\022&.viam.app.v1.GetFragmentHis" - "toryRequest\032\'.viam.app.v1.GetFragmentHis" - "toryResponse\022D\n\007AddRole\022\033.viam.app.v1.Ad" - "dRoleRequest\032\034.viam.app.v1.AddRoleRespon" - "se\022M\n\nRemoveRole\022\036.viam.app.v1.RemoveRol" - "eRequest\032\037.viam.app.v1.RemoveRoleRespons" - "e\022M\n\nChangeRole\022\036.viam.app.v1.ChangeRole" - "Request\032\037.viam.app.v1.ChangeRoleResponse" - "\022e\n\022ListAuthorizations\022&.viam.app.v1.Lis" - "tAuthorizationsRequest\032\'.viam.app.v1.Lis" - "tAuthorizationsResponse\022_\n\020CheckPermissi" - "ons\022$.viam.app.v1.CheckPermissionsReques" - "t\032%.viam.app.v1.CheckPermissionsResponse" - "\022\\\n\017GetRegistryItem\022#.viam.app.v1.GetReg" - "istryItemRequest\032$.viam.app.v1.GetRegist" - "ryItemResponse\022e\n\022CreateRegistryItem\022&.v" - "iam.app.v1.CreateRegistryItemRequest\032\'.v" - "iam.app.v1.CreateRegistryItemResponse\022e\n" - "\022UpdateRegistryItem\022&.viam.app.v1.Update" - "RegistryItemRequest\032\'.viam.app.v1.Update" - "RegistryItemResponse\022b\n\021ListRegistryItem" - "s\022%.viam.app.v1.ListRegistryItemsRequest" - "\032&.viam.app.v1.ListRegistryItemsResponse" - "\022e\n\022DeleteRegistryItem\022&.viam.app.v1.Del" - "eteRegistryItemRequest\032\'.viam.app.v1.Del" - "eteRegistryItemResponse\022k\n\024TransferRegis" - "tryItem\022(.viam.app.v1.TransferRegistryIt" - "emRequest\032).viam.app.v1.TransferRegistry" - "ItemResponse\022S\n\014CreateModule\022 .viam.app." - "v1.CreateModuleRequest\032!.viam.app.v1.Cre" - "ateModuleResponse\022S\n\014UpdateModule\022 .viam" - ".app.v1.UpdateModuleRequest\032!.viam.app.v" - "1.UpdateModuleResponse\022a\n\020UploadModuleFi" - "le\022$.viam.app.v1.UploadModuleFileRequest" - "\032%.viam.app.v1.UploadModuleFileResponse(" - "\001\022J\n\tGetModule\022\035.viam.app.v1.GetModuleRe" - "quest\032\036.viam.app.v1.GetModuleResponse\022P\n" - "\013ListModules\022\037.viam.app.v1.ListModulesRe" - "quest\032 .viam.app.v1.ListModulesResponse\022" - "J\n\tCreateKey\022\035.viam.app.v1.CreateKeyRequ" - "est\032\036.viam.app.v1.CreateKeyResponse\022J\n\tD" - "eleteKey\022\035.viam.app.v1.DeleteKeyRequest\032" - "\036.viam.app.v1.DeleteKeyResponse\022G\n\010ListK" - "eys\022\034.viam.app.v1.ListKeysRequest\032\035.viam" - ".app.v1.ListKeysResponse\022J\n\tRenameKey\022\035." - "viam.app.v1.RenameKeyRequest\032\036.viam.app." - "v1.RenameKeyResponse\022J\n\tRotateKey\022\035.viam" - ".app.v1.RotateKeyRequest\032\036.viam.app.v1.R" - "otateKeyResponse\022\241\001\n&CreateKeyFromExisti" - "ngKeyAuthorizations\022:.viam.app.v1.Create" - "KeyFromExistingKeyAuthorizationsRequest\032" - ";.viam.app.v1.CreateKeyFromExistingKeyAu" - "thorizationsResponseB\201\001\n\017com.viam.app.v1" - "B\010AppProtoP\001Z\026go.viam.com/api/app/v1\242\002\003V" - "AX\252\002\013Viam.App.V1\312\002\013Viam\\App\\V1\342\002\027Viam\\Ap" - "p\\V1\\GPBMetadata\352\002\rViam::App::V1b\006proto3" -}; -static const ::_pbi::DescriptorTable* const descriptor_table_app_2fv1_2fapp_2eproto_deps[6] = - { - &::descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto, - &::descriptor_table_app_2fpackages_2fv1_2fpackages_2eproto, - &::descriptor_table_common_2fv1_2fcommon_2eproto, - &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, - &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto, - &::descriptor_table_tagger_2fv1_2ftagger_2eproto, -}; -static ::absl::once_flag descriptor_table_app_2fv1_2fapp_2eproto_once; + &::viam::app::v1::_Robot_default_instance_._instance, + &::viam::app::v1::_RobotPart_default_instance_._instance, + &::viam::app::v1::_RobotPartHistoryEntry_default_instance_._instance, + &::viam::app::v1::_AuthenticatorInfo_default_instance_._instance, + &::viam::app::v1::_ListOrganizationsRequest_default_instance_._instance, + &::viam::app::v1::_Organization_default_instance_._instance, + &::viam::app::v1::_OrganizationMember_default_instance_._instance, + &::viam::app::v1::_ListOrganizationsResponse_default_instance_._instance, + &::viam::app::v1::_OrganizationInvite_default_instance_._instance, + &::viam::app::v1::_CreateOrganizationRequest_default_instance_._instance, + &::viam::app::v1::_CreateOrganizationResponse_default_instance_._instance, + &::viam::app::v1::_GetOrganizationRequest_default_instance_._instance, + &::viam::app::v1::_GetOrganizationResponse_default_instance_._instance, + &::viam::app::v1::_GetOrganizationNamespaceAvailabilityRequest_default_instance_._instance, + &::viam::app::v1::_GetOrganizationNamespaceAvailabilityResponse_default_instance_._instance, + &::viam::app::v1::_UpdateOrganizationRequest_default_instance_._instance, + &::viam::app::v1::_UpdateOrganizationResponse_default_instance_._instance, + &::viam::app::v1::_DeleteOrganizationRequest_default_instance_._instance, + &::viam::app::v1::_DeleteOrganizationResponse_default_instance_._instance, + &::viam::app::v1::_ListOrganizationMembersRequest_default_instance_._instance, + &::viam::app::v1::_ListOrganizationMembersResponse_default_instance_._instance, + &::viam::app::v1::_CreateOrganizationInviteRequest_default_instance_._instance, + &::viam::app::v1::_CreateOrganizationInviteResponse_default_instance_._instance, + &::viam::app::v1::_UpdateOrganizationInviteAuthorizationsRequest_default_instance_._instance, + &::viam::app::v1::_UpdateOrganizationInviteAuthorizationsResponse_default_instance_._instance, + &::viam::app::v1::_DeleteOrganizationInviteRequest_default_instance_._instance, + &::viam::app::v1::_DeleteOrganizationInviteResponse_default_instance_._instance, + &::viam::app::v1::_ResendOrganizationInviteRequest_default_instance_._instance, + &::viam::app::v1::_ResendOrganizationInviteResponse_default_instance_._instance, + &::viam::app::v1::_DeleteOrganizationMemberRequest_default_instance_._instance, + &::viam::app::v1::_DeleteOrganizationMemberResponse_default_instance_._instance, + &::viam::app::v1::_BillingAddress_default_instance_._instance, + &::viam::app::v1::_EnableBillingServiceRequest_default_instance_._instance, + &::viam::app::v1::_EnableBillingServiceResponse_default_instance_._instance, + &::viam::app::v1::_UpdateBillingServiceRequest_default_instance_._instance, + &::viam::app::v1::_UpdateBillingServiceResponse_default_instance_._instance, + &::viam::app::v1::_GetBillingServiceConfigRequest_default_instance_._instance, + &::viam::app::v1::_GetBillingServiceConfigResponse_default_instance_._instance, + &::viam::app::v1::_DisableBillingServiceRequest_default_instance_._instance, + &::viam::app::v1::_DisableBillingServiceResponse_default_instance_._instance, + &::viam::app::v1::_OrganizationSetSupportEmailRequest_default_instance_._instance, + &::viam::app::v1::_OrganizationSetSupportEmailResponse_default_instance_._instance, + &::viam::app::v1::_OrganizationGetSupportEmailRequest_default_instance_._instance, + &::viam::app::v1::_OrganizationGetSupportEmailResponse_default_instance_._instance, + &::viam::app::v1::_OrganizationIdentity_default_instance_._instance, + &::viam::app::v1::_LocationOrganization_default_instance_._instance, + &::viam::app::v1::_LocationAuth_default_instance_._instance, + &::viam::app::v1::_StorageConfig_default_instance_._instance, + &::viam::app::v1::_Location_default_instance_._instance, + &::viam::app::v1::_SharedSecret_default_instance_._instance, + &::viam::app::v1::_CreateLocationRequest_default_instance_._instance, + &::viam::app::v1::_CreateLocationResponse_default_instance_._instance, + &::viam::app::v1::_GetLocationRequest_default_instance_._instance, + &::viam::app::v1::_GetLocationResponse_default_instance_._instance, + &::viam::app::v1::_UpdateLocationRequest_default_instance_._instance, + &::viam::app::v1::_UpdateLocationResponse_default_instance_._instance, + &::viam::app::v1::_DeleteLocationRequest_default_instance_._instance, + &::viam::app::v1::_DeleteLocationResponse_default_instance_._instance, + &::viam::app::v1::_GetOrganizationsWithAccessToLocationRequest_default_instance_._instance, + &::viam::app::v1::_GetOrganizationsWithAccessToLocationResponse_default_instance_._instance, + &::viam::app::v1::_ListLocationsRequest_default_instance_._instance, + &::viam::app::v1::_ShareLocationRequest_default_instance_._instance, + &::viam::app::v1::_ShareLocationResponse_default_instance_._instance, + &::viam::app::v1::_UnshareLocationRequest_default_instance_._instance, + &::viam::app::v1::_UnshareLocationResponse_default_instance_._instance, + &::viam::app::v1::_ListLocationsResponse_default_instance_._instance, + &::viam::app::v1::_CreateLocationSecretRequest_default_instance_._instance, + &::viam::app::v1::_CreateLocationSecretResponse_default_instance_._instance, + &::viam::app::v1::_DeleteLocationSecretRequest_default_instance_._instance, + &::viam::app::v1::_DeleteLocationSecretResponse_default_instance_._instance, + &::viam::app::v1::_LocationAuthRequest_default_instance_._instance, + &::viam::app::v1::_LocationAuthResponse_default_instance_._instance, + &::viam::app::v1::_GetRobotRequest_default_instance_._instance, + &::viam::app::v1::_GetRoverRentalRobotsRequest_default_instance_._instance, + &::viam::app::v1::_RoverRentalRobot_default_instance_._instance, + &::viam::app::v1::_GetRoverRentalRobotsResponse_default_instance_._instance, + &::viam::app::v1::_GetRobotResponse_default_instance_._instance, + &::viam::app::v1::_GetRobotPartsRequest_default_instance_._instance, + &::viam::app::v1::_GetRobotPartsResponse_default_instance_._instance, + &::viam::app::v1::_GetRobotPartRequest_default_instance_._instance, + &::viam::app::v1::_GetRobotPartResponse_default_instance_._instance, + &::viam::app::v1::_GetRobotPartLogsRequest_default_instance_._instance, + &::viam::app::v1::_GetRobotPartLogsResponse_default_instance_._instance, + &::viam::app::v1::_TailRobotPartLogsRequest_default_instance_._instance, + &::viam::app::v1::_TailRobotPartLogsResponse_default_instance_._instance, + &::viam::app::v1::_GetRobotPartHistoryRequest_default_instance_._instance, + &::viam::app::v1::_GetRobotPartHistoryResponse_default_instance_._instance, + &::viam::app::v1::_UpdateRobotPartRequest_default_instance_._instance, + &::viam::app::v1::_UpdateRobotPartResponse_default_instance_._instance, + &::viam::app::v1::_NewRobotPartRequest_default_instance_._instance, + &::viam::app::v1::_NewRobotPartResponse_default_instance_._instance, + &::viam::app::v1::_DeleteRobotPartRequest_default_instance_._instance, + &::viam::app::v1::_GetRobotAPIKeysRequest_default_instance_._instance, + &::viam::app::v1::_APIKey_default_instance_._instance, + &::viam::app::v1::_GetRobotAPIKeysResponse_default_instance_._instance, + &::viam::app::v1::_DeleteRobotPartResponse_default_instance_._instance, + &::viam::app::v1::_Fragment_default_instance_._instance, + &::viam::app::v1::_FragmentHistoryEntry_default_instance_._instance, + &::viam::app::v1::_FragmentError_default_instance_._instance, + &::viam::app::v1::_FragmentUsage_default_instance_._instance, + &::viam::app::v1::_ResolvedFragment_default_instance_._instance, + &::viam::app::v1::_ListFragmentsRequest_default_instance_._instance, + &::viam::app::v1::_ListFragmentsResponse_default_instance_._instance, + &::viam::app::v1::_GetFragmentRequest_default_instance_._instance, + &::viam::app::v1::_GetFragmentResponse_default_instance_._instance, + &::viam::app::v1::_CreateFragmentRequest_default_instance_._instance, + &::viam::app::v1::_CreateFragmentResponse_default_instance_._instance, + &::viam::app::v1::_UpdateFragmentRequest_default_instance_._instance, + &::viam::app::v1::_UpdateFragmentResponse_default_instance_._instance, + &::viam::app::v1::_DeleteFragmentRequest_default_instance_._instance, + &::viam::app::v1::_DeleteFragmentResponse_default_instance_._instance, + &::viam::app::v1::_GetFragmentHistoryRequest_default_instance_._instance, + &::viam::app::v1::_GetFragmentHistoryResponse_default_instance_._instance, + &::viam::app::v1::_ListRobotsRequest_default_instance_._instance, + &::viam::app::v1::_ListMachineFragmentsRequest_default_instance_._instance, + &::viam::app::v1::_ListMachineFragmentsResponse_default_instance_._instance, + &::viam::app::v1::_ListRobotsResponse_default_instance_._instance, + &::viam::app::v1::_NewRobotRequest_default_instance_._instance, + &::viam::app::v1::_NewRobotResponse_default_instance_._instance, + &::viam::app::v1::_UpdateRobotRequest_default_instance_._instance, + &::viam::app::v1::_UpdateRobotResponse_default_instance_._instance, + &::viam::app::v1::_DeleteRobotRequest_default_instance_._instance, + &::viam::app::v1::_DeleteRobotResponse_default_instance_._instance, + &::viam::app::v1::_MarkPartAsMainRequest_default_instance_._instance, + &::viam::app::v1::_MarkPartAsMainResponse_default_instance_._instance, + &::viam::app::v1::_MarkPartForRestartRequest_default_instance_._instance, + &::viam::app::v1::_MarkPartForRestartResponse_default_instance_._instance, + &::viam::app::v1::_CreateRobotPartSecretRequest_default_instance_._instance, + &::viam::app::v1::_CreateRobotPartSecretResponse_default_instance_._instance, + &::viam::app::v1::_DeleteRobotPartSecretRequest_default_instance_._instance, + &::viam::app::v1::_DeleteRobotPartSecretResponse_default_instance_._instance, + &::viam::app::v1::_Authorization_default_instance_._instance, + &::viam::app::v1::_AddRoleRequest_default_instance_._instance, + &::viam::app::v1::_AddRoleResponse_default_instance_._instance, + &::viam::app::v1::_RemoveRoleRequest_default_instance_._instance, + &::viam::app::v1::_RemoveRoleResponse_default_instance_._instance, + &::viam::app::v1::_ChangeRoleRequest_default_instance_._instance, + &::viam::app::v1::_ChangeRoleResponse_default_instance_._instance, + &::viam::app::v1::_ListAuthorizationsRequest_default_instance_._instance, + &::viam::app::v1::_ListAuthorizationsResponse_default_instance_._instance, + &::viam::app::v1::_CheckPermissionsRequest_default_instance_._instance, + &::viam::app::v1::_AuthorizedPermissions_default_instance_._instance, + &::viam::app::v1::_CheckPermissionsResponse_default_instance_._instance, + &::viam::app::v1::_ModuleVersion_default_instance_._instance, + &::viam::app::v1::_ModuleMetadata_default_instance_._instance, + &::viam::app::v1::_MLModelMetadata_default_instance_._instance, + &::viam::app::v1::_MLTrainingVersion_default_instance_._instance, + &::viam::app::v1::_MLTrainingMetadata_default_instance_._instance, + &::viam::app::v1::_RegistryItem_default_instance_._instance, + &::viam::app::v1::_GetRegistryItemRequest_default_instance_._instance, + &::viam::app::v1::_GetRegistryItemResponse_default_instance_._instance, + &::viam::app::v1::_CreateRegistryItemRequest_default_instance_._instance, + &::viam::app::v1::_CreateRegistryItemResponse_default_instance_._instance, + &::viam::app::v1::_UpdateRegistryItemRequest_default_instance_._instance, + &::viam::app::v1::_UpdateRegistryItemResponse_default_instance_._instance, + &::viam::app::v1::_ListRegistryItemsRequest_default_instance_._instance, + &::viam::app::v1::_ListRegistryItemsResponse_default_instance_._instance, + &::viam::app::v1::_DeleteRegistryItemRequest_default_instance_._instance, + &::viam::app::v1::_DeleteRegistryItemResponse_default_instance_._instance, + &::viam::app::v1::_TransferRegistryItemRequest_default_instance_._instance, + &::viam::app::v1::_TransferRegistryItemResponse_default_instance_._instance, + &::viam::app::v1::_CreateModuleRequest_default_instance_._instance, + &::viam::app::v1::_CreateModuleResponse_default_instance_._instance, + &::viam::app::v1::_UpdateModuleRequest_default_instance_._instance, + &::viam::app::v1::_UpdateModuleResponse_default_instance_._instance, + &::viam::app::v1::_UpdateModuleMetadata_default_instance_._instance, + &::viam::app::v1::_UpdateMLModelMetadata_default_instance_._instance, + &::viam::app::v1::_UpdateMLTrainingMetadata_default_instance_._instance, + &::viam::app::v1::_Model_default_instance_._instance, + &::viam::app::v1::_ModuleFileInfo_default_instance_._instance, + &::viam::app::v1::_UploadModuleFileRequest_default_instance_._instance, + &::viam::app::v1::_UploadModuleFileResponse_default_instance_._instance, + &::viam::app::v1::_GetModuleRequest_default_instance_._instance, + &::viam::app::v1::_GetModuleResponse_default_instance_._instance, + &::viam::app::v1::_Module_default_instance_._instance, + &::viam::app::v1::_VersionHistory_default_instance_._instance, + &::viam::app::v1::_Uploads_default_instance_._instance, + &::viam::app::v1::_ListModulesRequest_default_instance_._instance, + &::viam::app::v1::_ListModulesResponse_default_instance_._instance, + &::viam::app::v1::_GetUserIDByEmailRequest_default_instance_._instance, + &::viam::app::v1::_GetUserIDByEmailResponse_default_instance_._instance, + &::viam::app::v1::_ListOrganizationsByUserRequest_default_instance_._instance, + &::viam::app::v1::_OrgDetails_default_instance_._instance, + &::viam::app::v1::_ListOrganizationsByUserResponse_default_instance_._instance, + &::viam::app::v1::_SearchOrganizationsRequest_default_instance_._instance, + &::viam::app::v1::_SearchOrganizationsResponse_default_instance_._instance, + &::viam::app::v1::_CreateKeyRequest_default_instance_._instance, + &::viam::app::v1::_CreateKeyResponse_default_instance_._instance, + &::viam::app::v1::_DeleteKeyRequest_default_instance_._instance, + &::viam::app::v1::_DeleteKeyResponse_default_instance_._instance, + &::viam::app::v1::_RenameKeyRequest_default_instance_._instance, + &::viam::app::v1::_RenameKeyResponse_default_instance_._instance, + &::viam::app::v1::_AuthorizationDetails_default_instance_._instance, + &::viam::app::v1::_APIKeyWithAuthorizations_default_instance_._instance, + &::viam::app::v1::_ListKeysRequest_default_instance_._instance, + &::viam::app::v1::_ListKeysResponse_default_instance_._instance, + &::viam::app::v1::_RotateKeyRequest_default_instance_._instance, + &::viam::app::v1::_RotateKeyResponse_default_instance_._instance, + &::viam::app::v1::_CreateKeyFromExistingKeyAuthorizationsRequest_default_instance_._instance, + &::viam::app::v1::_CreateKeyFromExistingKeyAuthorizationsResponse_default_instance_._instance, + &::viam::app::v1::_OrganizationSetLogoRequest_default_instance_._instance, + &::viam::app::v1::_OrganizationSetLogoResponse_default_instance_._instance, + &::viam::app::v1::_OrganizationGetLogoRequest_default_instance_._instance, + &::viam::app::v1::_OrganizationGetLogoResponse_default_instance_._instance, + &::viam::app::v1::_EnableAuthServiceRequest_default_instance_._instance, + &::viam::app::v1::_EnableAuthServiceResponse_default_instance_._instance, + &::viam::app::v1::_DisableAuthServiceRequest_default_instance_._instance, + &::viam::app::v1::_DisableAuthServiceResponse_default_instance_._instance, + &::viam::app::v1::_CreateOAuthAppRequest_default_instance_._instance, + &::viam::app::v1::_CreateOAuthAppResponse_default_instance_._instance, + &::viam::app::v1::_ReadOAuthAppRequest_default_instance_._instance, + &::viam::app::v1::_ReadOAuthAppResponse_default_instance_._instance, + &::viam::app::v1::_UpdateOAuthAppRequest_default_instance_._instance, + &::viam::app::v1::_UpdateOAuthAppResponse_default_instance_._instance, + &::viam::app::v1::_DeleteOAuthAppRequest_default_instance_._instance, + &::viam::app::v1::_DeleteOAuthAppResponse_default_instance_._instance, + &::viam::app::v1::_ListOAuthAppsRequest_default_instance_._instance, + &::viam::app::v1::_ListOAuthAppsResponse_default_instance_._instance, + &::viam::app::v1::_OAuthConfig_default_instance_._instance, +}; + +const char descriptor_table_protodef_app_2fv1_2fapp_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\020app/v1/app.proto\022\013viam.app.v1\032#app/mlt" + "raining/v1/ml_training.proto\032\036app/packag" + "es/v1/packages.proto\032\026common/v1/common.p" + "roto\032\034google/protobuf/struct.proto\032\037goog" + "le/protobuf/timestamp.proto\032\026tagger/v1/t" + "agger.proto\"\354\002\n\005Robot\0223\n\002id\030\001 \001(\tB#\232\204\236\003\036" + "bson:\"_id\" json:\"id,omitempty\"R\002id\0220\n\004na" + "me\030\002 \001(\tB\034\232\204\236\003\027bson:\"name\" json:\"name\"R\004" + "name\022@\n\010location\030\003 \001(\tB$\232\204\236\003\037bson:\"locat" + "ion\" json:\"location\"R\010location\022g\n\013last_a" + "ccess\030\004 \001(\0132\032.google.protobuf.TimestampB" + "*\232\204\236\003%bson:\"last_access\" json:\"last_acce" + "ss\"R\nlastAccess\022Q\n\ncreated_on\030\005 \001(\0132\032.go" + "ogle.protobuf.TimestampB\026\232\204\236\003\021bson:\"crea" + "ted_on\"R\tcreatedOn\"\257\010\n\tRobotPart\0223\n\002id\030\001" + " \001(\tB#\232\204\236\003\036bson:\"_id\" json:\"id,omitempty" + "\"R\002id\0220\n\004name\030\002 \001(\tB\034\232\204\236\003\027bson:\"name\" js" + "on:\"name\"R\004name\022\?\n\010dns_name\030\n \001(\tB$\232\204\236\003\037" + "bson:\"dns_name\" json:\"dns_name\"R\007dnsName" + "\022B\n\006secret\030\003 \001(\tB*\232\204\236\003%bson:\"secret\" jso" + "n:\"secret,omitempty\"R\006secret\0224\n\005robot\030\004 " + "\001(\tB\036\232\204\236\003\031bson:\"robot\" json:\"robot\"R\005rob" + "ot\022A\n\013location_id\030\014 \001(\tB \232\204\236\003\033bson:\"loca" + "tion_id\" json:\"-\"R\nlocationId\022b\n\014robot_c" + "onfig\030\005 \001(\0132\027.google.protobuf.StructB&\232\204" + "\236\003!bson:\"config\" json:\"robot_config\"R\013ro" + "botConfig\022g\n\013last_access\030\006 \001(\0132\032.google." + "protobuf.TimestampB*\232\204\236\003%bson:\"last_acce" + "ss\" json:\"last_access\"R\nlastAccess\022\177\n\022us" + "er_supplied_info\030\007 \001(\0132\027.google.protobuf" + ".StructB8\232\204\236\0033bson:\"user_supplied_info\" " + "json:\"user_supplied_info\"R\020userSuppliedI" + "nfo\022C\n\tmain_part\030\010 \001(\010B&\232\204\236\003!bson:\"main_" + "part\" json:\"main_part\"R\010mainPart\022\022\n\004fqdn" + "\030\t \001(\tR\004fqdn\022\035\n\nlocal_fqdn\030\013 \001(\tR\tlocalF" + "qdn\022Q\n\ncreated_on\030\r \001(\0132\032.google.protobu" + "f.TimestampB\026\232\204\236\003\021bson:\"created_on\"R\tcre" + "atedOn\022H\n\007secrets\030\016 \003(\0132\031.viam.app.v1.Sh" + "aredSecretB\023\232\204\236\003\016bson:\"secrets\"R\007secrets" + "\022Z\n\014last_updated\030\017 \001(\0132\032.google.protobuf" + ".TimestampB\033\232\204\236\003\026bson:\"last_updated_at\"R" + "\013lastUpdated\"\370\002\n\025RobotPartHistoryEntry\0220" + "\n\004part\030\001 \001(\tB\034\232\204\236\003\027bson:\"part\" json:\"par" + "t\"R\004part\0224\n\005robot\030\002 \001(\tB\036\232\204\236\003\031bson:\"robo" + "t\" json:\"robot\"R\005robot\022L\n\004when\030\003 \001(\0132\032.g" + "oogle.protobuf.TimestampB\034\232\204\236\003\027bson:\"whe" + "n\" json:\"when\"R\004when\022D\n\003old\030\004 \001(\0132\026.viam" + ".app.v1.RobotPartB\032\232\204\236\003\025bson:\"old\" json:" + "\"old\"R\003old\022c\n\tedited_by\030\005 \001(\0132\036.viam.app" + ".v1.AuthenticatorInfoB&\232\204\236\003!bson:\"edited" + "_by\" json:\"edited_by\"R\010editedBy\"\205\001\n\021Auth" + "enticatorInfo\0223\n\004type\030\001 \001(\0162\037.viam.app.v" + "1.AuthenticationTypeR\004type\022\024\n\005value\030\002 \001(" + "\tR\005value\022%\n\016is_deactivated\030\003 \001(\010R\risDeac" + "tivated\"\032\n\030ListOrganizationsRequest\"\336\001\n\014" + "Organization\022\016\n\002id\030\001 \001(\tR\002id\022\022\n\004name\030\002 \001" + "(\tR\004name\0229\n\ncreated_on\030\003 \001(\0132\032.google.pr" + "otobuf.TimestampR\tcreatedOn\022)\n\020public_na" + "mespace\030\004 \001(\tR\017publicNamespace\022%\n\016defaul" + "t_region\030\005 \001(\tR\rdefaultRegion\022\025\n\003cid\030\006 \001" + "(\tH\000R\003cid\210\001\001B\006\n\004_cid\"\317\001\n\022OrganizationMem" + "ber\022\027\n\007user_id\030\001 \001(\tR\006userId\022\026\n\006emails\030\002" + " \003(\tR\006emails\0229\n\ndate_added\030\003 \001(\0132\032.googl" + "e.protobuf.TimestampR\tdateAdded\022>\n\nlast_" + "login\030\004 \001(\0132\032.google.protobuf.TimestampH" + "\000R\tlastLogin\210\001\001B\r\n\013_last_login\"\\\n\031ListOr" + "ganizationsResponse\022\?\n\rorganizations\030\001 \003" + "(\0132\031.viam.app.v1.OrganizationR\rorganizat" + "ions\"\322\001\n\022OrganizationInvite\022\'\n\017organizat" + "ion_id\030\001 \001(\tR\016organizationId\022\024\n\005email\030\002 " + "\001(\tR\005email\0229\n\ncreated_on\030\003 \001(\0132\032.google." + "protobuf.TimestampR\tcreatedOn\022B\n\016authori" + "zations\030\004 \003(\0132\032.viam.app.v1.Authorizatio" + "nR\016authorizations\"/\n\031CreateOrganizationR" + "equest\022\022\n\004name\030\001 \001(\tR\004name\"[\n\032CreateOrga" + "nizationResponse\022=\n\014organization\030\001 \001(\0132\031" + ".viam.app.v1.OrganizationR\014organization\"" + "A\n\026GetOrganizationRequest\022\'\n\017organizatio" + "n_id\030\001 \001(\tR\016organizationId\"X\n\027GetOrganiz" + "ationResponse\022=\n\014organization\030\001 \001(\0132\031.vi" + "am.app.v1.OrganizationR\014organization\"X\n+" + "GetOrganizationNamespaceAvailabilityRequ" + "est\022)\n\020public_namespace\030\001 \001(\tR\017publicNam" + "espace\"L\n,GetOrganizationNamespaceAvaila" + "bilityResponse\022\034\n\tavailable\030\001 \001(\010R\tavail" + "able\"\362\001\n\031UpdateOrganizationRequest\022\'\n\017or" + "ganization_id\030\001 \001(\tR\016organizationId\022\027\n\004n" + "ame\030\002 \001(\tH\000R\004name\210\001\001\022.\n\020public_namespace" + "\030\003 \001(\tH\001R\017publicNamespace\210\001\001\022\033\n\006region\030\004" + " \001(\tH\002R\006region\210\001\001\022\025\n\003cid\030\005 \001(\tH\003R\003cid\210\001\001" + "B\007\n\005_nameB\023\n\021_public_namespaceB\t\n\007_regio" + "nB\006\n\004_cid\"[\n\032UpdateOrganizationResponse\022" + "=\n\014organization\030\001 \001(\0132\031.viam.app.v1.Orga" + "nizationR\014organization\"D\n\031DeleteOrganiza" + "tionRequest\022\'\n\017organization_id\030\001 \001(\tR\016or" + "ganizationId\"\034\n\032DeleteOrganizationRespon" + "se\"I\n\036ListOrganizationMembersRequest\022\'\n\017" + "organization_id\030\001 \001(\tR\016organizationId\"\300\001" + "\n\037ListOrganizationMembersResponse\022\'\n\017org" + "anization_id\030\001 \001(\tR\016organizationId\0229\n\007me" + "mbers\030\002 \003(\0132\037.viam.app.v1.OrganizationMe" + "mberR\007members\0229\n\007invites\030\003 \003(\0132\037.viam.ap" + "p.v1.OrganizationInviteR\007invites\"\353\001\n\037Cre" + "ateOrganizationInviteRequest\022\'\n\017organiza" + "tion_id\030\001 \001(\tR\016organizationId\022\024\n\005email\030\002" + " \001(\tR\005email\022B\n\016authorizations\030\003 \003(\0132\032.vi" + "am.app.v1.AuthorizationR\016authorizations\022" + "/\n\021send_email_invite\030\004 \001(\010H\000R\017sendEmailI" + "nvite\210\001\001B\024\n\022_send_email_invite\"[\n Create" + "OrganizationInviteResponse\0227\n\006invite\030\001 \001" + "(\0132\037.viam.app.v1.OrganizationInviteR\006inv" + "ite\"\212\002\n-UpdateOrganizationInviteAuthoriz" + "ationsRequest\022\'\n\017organization_id\030\001 \001(\tR\016" + "organizationId\022\024\n\005email\030\002 \001(\tR\005email\022I\n\022" + "add_authorizations\030\003 \003(\0132\032.viam.app.v1.A" + "uthorizationR\021addAuthorizations\022O\n\025remov" + "e_authorizations\030\004 \003(\0132\032.viam.app.v1.Aut" + "horizationR\024removeAuthorizations\"i\n.Upda" + "teOrganizationInviteAuthorizationsRespon" + "se\0227\n\006invite\030\001 \001(\0132\037.viam.app.v1.Organiz" + "ationInviteR\006invite\"`\n\037DeleteOrganizatio" + "nInviteRequest\022\'\n\017organization_id\030\001 \001(\tR" + "\016organizationId\022\024\n\005email\030\002 \001(\tR\005email\"\"\n" + " DeleteOrganizationInviteResponse\"`\n\037Res" + "endOrganizationInviteRequest\022\'\n\017organiza" + "tion_id\030\001 \001(\tR\016organizationId\022\024\n\005email\030\002" + " \001(\tR\005email\"[\n ResendOrganizationInviteR" + "esponse\0227\n\006invite\030\001 \001(\0132\037.viam.app.v1.Or" + "ganizationInviteR\006invite\"c\n\037DeleteOrgani" + "zationMemberRequest\022\'\n\017organization_id\030\001" + " \001(\tR\016organizationId\022\027\n\007user_id\030\002 \001(\tR\006u" + "serId\"\"\n DeleteOrganizationMemberRespons" + "e\"\270\001\n\016BillingAddress\022$\n\016address_line_1\030\001" + " \001(\tR\014addressLine1\022)\n\016address_line_2\030\002 \001" + "(\tH\000R\014addressLine2\210\001\001\022\022\n\004city\030\003 \001(\tR\004cit" + "y\022\024\n\005state\030\004 \001(\tR\005state\022\030\n\007zipcode\030\005 \001(\t" + "R\007zipcodeB\021\n\017_address_line_2\"z\n\033EnableBi" + "llingServiceRequest\022\025\n\006org_id\030\001 \001(\tR\005org" + "Id\022D\n\017billing_address\030\002 \001(\0132\033.viam.app.v" + "1.BillingAddressR\016billingAddress\"\036\n\034Enab" + "leBillingServiceResponse\"z\n\033UpdateBillin" + "gServiceRequest\022\025\n\006org_id\030\001 \001(\tR\005orgId\022D" + "\n\017billing_address\030\002 \001(\0132\033.viam.app.v1.Bi" + "llingAddressR\016billingAddress\"\036\n\034UpdateBi" + "llingServiceResponse\"7\n\036GetBillingServic" + "eConfigRequest\022\025\n\006org_id\030\001 \001(\tR\005orgId\"\333\001" + "\n\037GetBillingServiceConfigResponse\022D\n\017bil" + "ling_address\030\001 \001(\0132\033.viam.app.v1.Billing" + "AddressR\016billingAddress\022#\n\rsupport_email" + "\030\002 \001(\tR\014supportEmail\022\031\n\010logo_url\030\003 \001(\tR\007" + "logoUrl\0222\n\025billing_dashboard_url\030\004 \001(\tR\023" + "billingDashboardUrl\"5\n\034DisableBillingSer" + "viceRequest\022\025\n\006org_id\030\001 \001(\tR\005orgId\"\037\n\035Di" + "sableBillingServiceResponse\"Q\n\"Organizat" + "ionSetSupportEmailRequest\022\025\n\006org_id\030\001 \001(" + "\tR\005orgId\022\024\n\005email\030\002 \001(\tR\005email\"%\n#Organi" + "zationSetSupportEmailResponse\";\n\"Organiz" + "ationGetSupportEmailRequest\022\025\n\006org_id\030\001 " + "\001(\tR\005orgId\";\n#OrganizationGetSupportEmai" + "lResponse\022\024\n\005email\030\001 \001(\tR\005email\":\n\024Organ" + "izationIdentity\022\016\n\002id\030\001 \001(\tR\002id\022\022\n\004name\030" + "\002 \001(\tR\004name\"Y\n\024LocationOrganization\022\'\n\017o" + "rganization_id\030\001 \001(\tR\016organizationId\022\030\n\007" + "primary\030\002 \001(\010R\007primary\"\200\001\n\014LocationAuth\022" + "\032\n\006secret\030\001 \001(\tB\002\030\001R\006secret\022\037\n\013location_" + "id\030\002 \001(\tR\nlocationId\0223\n\007secrets\030\003 \003(\0132\031." + "viam.app.v1.SharedSecretR\007secrets\"\'\n\rSto" + "rageConfig\022\026\n\006region\030\001 \001(\tR\006region\"\344\002\n\010L" + "ocation\022\016\n\002id\030\001 \001(\tR\002id\022\022\n\004name\030\002 \001(\tR\004n" + "ame\022,\n\022parent_location_id\030\004 \001(\tR\020parentL" + "ocationId\022-\n\004auth\030\005 \001(\0132\031.viam.app.v1.Lo" + "cationAuthR\004auth\022G\n\rorganizations\030\006 \003(\0132" + "!.viam.app.v1.LocationOrganizationR\rorga" + "nizations\0229\n\ncreated_on\030\003 \001(\0132\032.google.p" + "rotobuf.TimestampR\tcreatedOn\022\037\n\013robot_co" + "unt\030\007 \001(\005R\nrobotCount\0222\n\006config\030\010 \001(\0132\032." + "viam.app.v1.StorageConfigR\006config\"\320\002\n\014Sh" + "aredSecret\022\036\n\002id\030\001 \001(\tB\016\232\204\236\003\tbson:\"id\"R\002" + "id\022*\n\006secret\030\002 \001(\tB\022\232\204\236\003\rbson:\"secret\"R\006" + "secret\022c\n\ncreated_on\030\003 \001(\0132\032.google.prot" + "obuf.TimestampB(\232\204\236\003#bson:\"created_on\" j" + "son:\"created_on\"R\tcreatedOn\022H\n\005state\030\004 \001" + "(\0162\037.viam.app.v1.SharedSecret.StateB\021\232\204\236" + "\003\014bson:\"state\"R\005state\"E\n\005State\022\025\n\021STATE_" + "UNSPECIFIED\020\000\022\021\n\rSTATE_ENABLED\020\001\022\022\n\016STAT" + "E_DISABLED\020\002\"\236\001\n\025CreateLocationRequest\022\'" + "\n\017organization_id\030\001 \001(\tR\016organizationId\022" + "\022\n\004name\030\002 \001(\tR\004name\0221\n\022parent_location_i" + "d\030\003 \001(\tH\000R\020parentLocationId\210\001\001B\025\n\023_paren" + "t_location_id\"K\n\026CreateLocationResponse\022" + "1\n\010location\030\001 \001(\0132\025.viam.app.v1.Location" + "R\010location\"5\n\022GetLocationRequest\022\037\n\013loca" + "tion_id\030\001 \001(\tR\nlocationId\"H\n\023GetLocation" + "Response\0221\n\010location\030\001 \001(\0132\025.viam.app.v1" + ".LocationR\010location\"\314\001\n\025UpdateLocationRe" + "quest\022\037\n\013location_id\030\001 \001(\tR\nlocationId\022\027" + "\n\004name\030\002 \001(\tH\000R\004name\210\001\001\0221\n\022parent_locati" + "on_id\030\003 \001(\tH\001R\020parentLocationId\210\001\001\022\033\n\006re" + "gion\030\004 \001(\tH\002R\006region\210\001\001B\007\n\005_nameB\025\n\023_par" + "ent_location_idB\t\n\007_region\"K\n\026UpdateLoca" + "tionResponse\0221\n\010location\030\001 \001(\0132\025.viam.ap" + "p.v1.LocationR\010location\"8\n\025DeleteLocatio" + "nRequest\022\037\n\013location_id\030\001 \001(\tR\nlocationI" + "d\"\030\n\026DeleteLocationResponse\"N\n+GetOrgani" + "zationsWithAccessToLocationRequest\022\037\n\013lo" + "cation_id\030\001 \001(\tR\nlocationId\"\212\001\n,GetOrgan" + "izationsWithAccessToLocationResponse\022Z\n\027" + "organization_identities\030\001 \003(\0132!.viam.app" + ".v1.OrganizationIdentityR\026organizationId" + "entities\"\?\n\024ListLocationsRequest\022\'\n\017orga" + "nization_id\030\001 \001(\tR\016organizationId\"`\n\024Sha" + "reLocationRequest\022\037\n\013location_id\030\001 \001(\tR\n" + "locationId\022\'\n\017organization_id\030\002 \001(\tR\016org" + "anizationId\"\027\n\025ShareLocationResponse\"b\n\026" + "UnshareLocationRequest\022\037\n\013location_id\030\001 " + "\001(\tR\nlocationId\022\'\n\017organization_id\030\002 \001(\t" + "R\016organizationId\"\031\n\027UnshareLocationRespo" + "nse\"L\n\025ListLocationsResponse\0223\n\tlocation" + "s\030\001 \003(\0132\025.viam.app.v1.LocationR\tlocation" + "s\">\n\033CreateLocationSecretRequest\022\037\n\013loca" + "tion_id\030\001 \001(\tR\nlocationId\"M\n\034CreateLocat" + "ionSecretResponse\022-\n\004auth\030\001 \001(\0132\031.viam.a" + "pp.v1.LocationAuthR\004auth\"[\n\033DeleteLocati" + "onSecretRequest\022\037\n\013location_id\030\001 \001(\tR\nlo" + "cationId\022\033\n\tsecret_id\030\002 \001(\tR\010secretId\"\036\n" + "\034DeleteLocationSecretResponse\"6\n\023Locatio" + "nAuthRequest\022\037\n\013location_id\030\001 \001(\tR\nlocat" + "ionId\"E\n\024LocationAuthResponse\022-\n\004auth\030\001 " + "\001(\0132\031.viam.app.v1.LocationAuthR\004auth\"!\n\017" + "GetRobotRequest\022\016\n\002id\030\001 \001(\tR\002id\"4\n\033GetRo" + "verRentalRobotsRequest\022\025\n\006org_id\030\001 \001(\tR\005" + "orgId\"\232\001\n\020RoverRentalRobot\022\031\n\010robot_id\030\001" + " \001(\tR\007robotId\022\037\n\013location_id\030\002 \001(\tR\nloca" + "tionId\022\035\n\nrobot_name\030\003 \001(\tR\trobotName\022+\n" + "\022robot_main_part_id\030\004 \001(\tR\017robotMainPart" + "Id\"U\n\034GetRoverRentalRobotsResponse\0225\n\006ro" + "bots\030\001 \003(\0132\035.viam.app.v1.RoverRentalRobo" + "tR\006robots\"<\n\020GetRobotResponse\022(\n\005robot\030\001" + " \001(\0132\022.viam.app.v1.RobotR\005robot\"1\n\024GetRo" + "botPartsRequest\022\031\n\010robot_id\030\001 \001(\tR\007robot" + "Id\"E\n\025GetRobotPartsResponse\022,\n\005parts\030\001 \003" + "(\0132\026.viam.app.v1.RobotPartR\005parts\"%\n\023Get" + "RobotPartRequest\022\016\n\002id\030\001 \001(\tR\002id\"c\n\024GetR" + "obotPartResponse\022*\n\004part\030\001 \001(\0132\026.viam.ap" + "p.v1.RobotPartR\004part\022\037\n\013config_json\030\002 \001(" + "\tR\nconfigJson\"\212\003\n\027GetRobotPartLogsReques" + "t\022\016\n\002id\030\001 \001(\tR\002id\022#\n\013errors_only\030\002 \001(\010B\002" + "\030\001R\nerrorsOnly\022\033\n\006filter\030\003 \001(\tH\000R\006filter" + "\210\001\001\022\"\n\npage_token\030\004 \001(\tH\001R\tpageToken\210\001\001\022" + "\026\n\006levels\030\005 \003(\tR\006levels\0225\n\005start\030\006 \001(\0132\032" + ".google.protobuf.TimestampH\002R\005start\210\001\001\0221" + "\n\003end\030\007 \001(\0132\032.google.protobuf.TimestampH" + "\003R\003end\210\001\001\022\031\n\005limit\030\010 \001(\003H\004R\005limit\210\001\001\022\033\n\006" + "source\030\t \001(\tH\005R\006source\210\001\001B\t\n\007_filterB\r\n\013" + "_page_tokenB\010\n\006_startB\006\n\004_endB\010\n\006_limitB" + "\t\n\007_source\"p\n\030GetRobotPartLogsResponse\022," + "\n\004logs\030\001 \003(\0132\030.viam.common.v1.LogEntryR\004" + "logs\022&\n\017next_page_token\030\002 \001(\tR\rnextPageT" + "oken\"s\n\030TailRobotPartLogsRequest\022\016\n\002id\030\001" + " \001(\tR\002id\022\037\n\013errors_only\030\002 \001(\010R\nerrorsOnl" + "y\022\033\n\006filter\030\003 \001(\tH\000R\006filter\210\001\001B\t\n\007_filte" + "r\"I\n\031TailRobotPartLogsResponse\022,\n\004logs\030\001" + " \003(\0132\030.viam.common.v1.LogEntryR\004logs\",\n\032" + "GetRobotPartHistoryRequest\022\016\n\002id\030\001 \001(\tR\002" + "id\"[\n\033GetRobotPartHistoryResponse\022<\n\007his" + "tory\030\001 \003(\0132\".viam.app.v1.RobotPartHistor" + "yEntryR\007history\"x\n\026UpdateRobotPartReques" + "t\022\016\n\002id\030\001 \001(\tR\002id\022\022\n\004name\030\002 \001(\tR\004name\022:\n" + "\014robot_config\030\003 \001(\0132\027.google.protobuf.St" + "ructR\013robotConfig\"E\n\027UpdateRobotPartResp" + "onse\022*\n\004part\030\001 \001(\0132\026.viam.app.v1.RobotPa" + "rtR\004part\"M\n\023NewRobotPartRequest\022\031\n\010robot" + "_id\030\001 \001(\tR\007robotId\022\033\n\tpart_name\030\002 \001(\tR\010p" + "artName\"/\n\024NewRobotPartResponse\022\027\n\007part_" + "id\030\001 \001(\tR\006partId\"1\n\026DeleteRobotPartReque" + "st\022\027\n\007part_id\030\001 \001(\tR\006partId\"3\n\026GetRobotA" + "PIKeysRequest\022\031\n\010robot_id\030\001 \001(\tR\007robotId" + "\"y\n\006APIKey\022\016\n\002id\030\001 \001(\tR\002id\022\020\n\003key\030\002 \001(\tR" + "\003key\022\022\n\004name\030\003 \001(\tR\004name\0229\n\ncreated_on\030\004" + " \001(\0132\032.google.protobuf.TimestampR\tcreate" + "dOn\"[\n\027GetRobotAPIKeysResponse\022@\n\010api_ke" + "ys\030\001 \003(\0132%.viam.app.v1.APIKeyWithAuthori" + "zationsR\007apiKeys\"\031\n\027DeleteRobotPartRespo" + "nse\"\205\006\n\010Fragment\0223\n\002id\030\001 \001(\tB#\232\204\236\003\036bson:" + "\"_id\" json:\"id,omitempty\"R\002id\0220\n\004name\030\002 " + "\001(\tB\034\232\204\236\003\027bson:\"name\" json:\"name\"R\004name\022" + "Y\n\010fragment\030\003 \001(\0132\027.google.protobuf.Stru" + "ctB$\232\204\236\003\037bson:\"fragment\" json:\"fragment\"" + "R\010fragment\022Z\n\022organization_owner\030\004 \001(\tB+" + "\232\204\236\003&bson:\"organization_owner\" json:\"own" + "er\"R\021organizationOwner\0228\n\006public\030\005 \001(\010B " + "\232\204\236\003\033bson:\"public\" json:\"public\"R\006public" + "\022Q\n\ncreated_on\030\006 \001(\0132\032.google.protobuf.T" + "imestampB\026\232\204\236\003\021bson:\"created_on\"R\tcreate" + "dOn\022+\n\021organization_name\030\007 \001(\tR\020organiza" + "tionName\022(\n\020robot_part_count\030\t \001(\005R\016robo" + "tPartCount\022-\n\022organization_count\030\n \001(\005R\021" + "organizationCount\022+\n\022only_used_by_owner\030" + "\013 \001(\010R\017onlyUsedByOwner\022\?\n\nvisibility\030\014 \001" + "(\0162\037.viam.app.v1.FragmentVisibilityR\nvis" + "ibility\022Z\n\014last_updated\030\r \001(\0132\032.google.p" + "rotobuf.TimestampB\033\232\204\236\003\026bson:\"last_updat" + "ed_at\"R\013lastUpdated\"\370\003\n\024FragmentHistoryE" + "ntry\022@\n\010fragment\030\001 \001(\tB$\232\204\236\003\037bson:\"fragm" + "ent\" json:\"fragment\"R\010fragment\022_\n\tedited" + "_on\030\002 \001(\0132\032.google.protobuf.TimestampB&\232" + "\204\236\003!bson:\"edited_on\" json:\"edited_on\"R\010e" + "ditedOn\022C\n\003old\030\003 \001(\0132\025.viam.app.v1.Fragm" + "entB\032\232\204\236\003\025bson:\"old\" json:\"old\"R\003old\022c\n\t" + "edited_by\030\004 \001(\0132\036.viam.app.v1.Authentica" + "torInfoB&\232\204\236\003!bson:\"edited_by\" json:\"edi" + "ted_by\"R\010editedBy\022@\n\010revision\030\005 \001(\tB$\232\204\236" + "\003\037bson:\"revision\" json:\"revision\"R\010revis" + "ion\022Q\n\006config\030\006 \001(\0132\027.google.protobuf.St" + "ructB \232\204\236\003\033bson:\"config\" json:\"config\"R\006" + "config\"\207\001\n\rFragmentError\022=\n\nerror_type\030\001" + " \001(\0162\036.viam.app.v1.FragmentErrorTypeR\ter" + "rorType\022\037\n\013fragment_id\030\002 \001(\tR\nfragmentId" + "\022\026\n\006detail\030\003 \001(\tR\006detail\"\251\001\n\rFragmentUsa" + "ge\022\037\n\013fragment_id\030\001 \001(\tR\nfragmentId\022$\n\ro" + "rganizations\030\002 \001(\005R\rorganizations\022\032\n\010mac" + "hines\030\003 \001(\005R\010machines\0225\n\027machines_in_cur" + "rent_org\030\004 \001(\005R\024machinesInCurrentOrg\"\247\001\n" + "\020ResolvedFragment\022\037\n\013fragment_id\030\001 \001(\tR\n" + "fragmentId\022@\n\017resolved_config\030\002 \001(\0132\027.go" + "ogle.protobuf.StructR\016resolvedConfig\0220\n\005" + "error\030\003 \001(\0132\032.viam.app.v1.FragmentErrorR" + "\005error\"\262\001\n\024ListFragmentsRequest\022\'\n\017organ" + "ization_id\030\001 \001(\tR\016organizationId\022\037\n\013show" + "_public\030\002 \001(\010R\nshowPublic\022P\n\023fragment_vi" + "sibility\030\003 \003(\0162\037.viam.app.v1.FragmentVis" + "ibilityR\022fragmentVisibility\"\221\001\n\025ListFrag" + "mentsResponse\0223\n\tfragments\030\001 \003(\0132\025.viam." + "app.v1.FragmentR\tfragments\022C\n\017fragment_u" + "sages\030\002 \003(\0132\032.viam.app.v1.FragmentUsageR" + "\016fragmentUsages\"\\\n\022GetFragmentRequest\022\016\n" + "\002id\030\001 \001(\tR\002id\0226\n\027current_organization_id" + "\030\002 \001(\tR\025currentOrganizationId\"\213\001\n\023GetFra" + "gmentResponse\0221\n\010fragment\030\001 \001(\0132\025.viam.a" + "pp.v1.FragmentR\010fragment\022A\n\016fragment_usa" + "ge\030\002 \001(\0132\032.viam.app.v1.FragmentUsageR\rfr" + "agmentUsage\"\332\001\n\025CreateFragmentRequest\022\022\n" + "\004name\030\001 \001(\tR\004name\022/\n\006config\030\002 \001(\0132\027.goog" + "le.protobuf.StructR\006config\022\'\n\017organizati" + "on_id\030\003 \001(\tR\016organizationId\022D\n\nvisibilit" + "y\030\004 \001(\0162\037.viam.app.v1.FragmentVisibility" + "H\000R\nvisibility\210\001\001B\r\n\013_visibility\"K\n\026Crea" + "teFragmentResponse\0221\n\010fragment\030\001 \001(\0132\025.v" + "iam.app.v1.FragmentR\010fragment\"\351\001\n\025Update" + "FragmentRequest\022\016\n\002id\030\001 \001(\tR\002id\022\022\n\004name\030" + "\002 \001(\tR\004name\022/\n\006config\030\003 \001(\0132\027.google.pro" + "tobuf.StructR\006config\022\033\n\006public\030\004 \001(\010H\000R\006" + "public\210\001\001\022D\n\nvisibility\030\005 \001(\0162\037.viam.app" + ".v1.FragmentVisibilityH\001R\nvisibility\210\001\001B" + "\t\n\007_publicB\r\n\013_visibility\"K\n\026UpdateFragm" + "entResponse\0221\n\010fragment\030\001 \001(\0132\025.viam.app" + ".v1.FragmentR\010fragment\"\'\n\025DeleteFragment" + "Request\022\016\n\002id\030\001 \001(\tR\002id\"\030\n\026DeleteFragmen" + "tResponse\"\221\001\n\031GetFragmentHistoryRequest\022" + "\016\n\002id\030\001 \001(\tR\002id\022\"\n\npage_token\030\002 \001(\tH\000R\tp" + "ageToken\210\001\001\022\"\n\npage_limit\030\003 \001(\003H\001R\tpageL" + "imit\210\001\001B\r\n\013_page_tokenB\r\n\013_page_limit\"\201\001" + "\n\032GetFragmentHistoryResponse\022;\n\007history\030" + "\001 \003(\0132!.viam.app.v1.FragmentHistoryEntry" + "R\007history\022&\n\017next_page_token\030\002 \001(\tR\rnext" + "PageToken\"4\n\021ListRobotsRequest\022\037\n\013locati" + "on_id\030\001 \001(\tR\nlocationId\"t\n\033ListMachineFr" + "agmentsRequest\022\035\n\nmachine_id\030\001 \001(\tR\tmach" + "ineId\0226\n\027additional_fragment_ids\030\002 \003(\tR\025" + "additionalFragmentIds\"\241\001\n\034ListMachineFra" + "gmentsResponse\0223\n\tfragments\030\001 \003(\0132\025.viam" + ".app.v1.FragmentR\tfragments\022L\n\022resolved_" + "fragments\030\002 \003(\0132\035.viam.app.v1.ResolvedFr" + "agmentR\021resolvedFragments\"@\n\022ListRobotsR" + "esponse\022*\n\006robots\030\001 \003(\0132\022.viam.app.v1.Ro" + "botR\006robots\"A\n\017NewRobotRequest\022\022\n\004name\030\001" + " \001(\tR\004name\022\032\n\010location\030\002 \001(\tR\010location\"\"" + "\n\020NewRobotResponse\022\016\n\002id\030\001 \001(\tR\002id\"T\n\022Up" + "dateRobotRequest\022\016\n\002id\030\001 \001(\tR\002id\022\022\n\004name" + "\030\002 \001(\tR\004name\022\032\n\010location\030\003 \001(\tR\010location" + "\"\?\n\023UpdateRobotResponse\022(\n\005robot\030\001 \001(\0132\022" + ".viam.app.v1.RobotR\005robot\"$\n\022DeleteRobot" + "Request\022\016\n\002id\030\001 \001(\tR\002id\"\025\n\023DeleteRobotRe" + "sponse\"0\n\025MarkPartAsMainRequest\022\027\n\007part_" + "id\030\001 \001(\tR\006partId\"\030\n\026MarkPartAsMainRespon" + "se\"4\n\031MarkPartForRestartRequest\022\027\n\007part_" + "id\030\001 \001(\tR\006partId\"\034\n\032MarkPartForRestartRe" + "sponse\"7\n\034CreateRobotPartSecretRequest\022\027" + "\n\007part_id\030\001 \001(\tR\006partId\"K\n\035CreateRobotPa" + "rtSecretResponse\022*\n\004part\030\001 \001(\0132\026.viam.ap" + "p.v1.RobotPartR\004part\"T\n\034DeleteRobotPartS" + "ecretRequest\022\027\n\007part_id\030\001 \001(\tR\006partId\022\033\n" + "\tsecret_id\030\002 \001(\tR\010secretId\"\037\n\035DeleteRobo" + "tPartSecretResponse\"\236\002\n\rAuthorization\022-\n" + "\022authorization_type\030\001 \001(\tR\021authorization" + "Type\022)\n\020authorization_id\030\002 \001(\tR\017authoriz" + "ationId\022#\n\rresource_type\030\003 \001(\tR\014resource" + "Type\022\037\n\013resource_id\030\004 \001(\tR\nresourceId\022\037\n" + "\013identity_id\030\005 \001(\tR\nidentityId\022\'\n\017organi" + "zation_id\030\006 \001(\tR\016organizationId\022#\n\rident" + "ity_type\030\007 \001(\tR\014identityType\"R\n\016AddRoleR" + "equest\022@\n\rauthorization\030\001 \001(\0132\032.viam.app" + ".v1.AuthorizationR\rauthorization\"\021\n\017AddR" + "oleResponse\"U\n\021RemoveRoleRequest\022@\n\rauth" + "orization\030\001 \001(\0132\032.viam.app.v1.Authorizat" + "ionR\rauthorization\"\024\n\022RemoveRoleResponse" + "\"\245\001\n\021ChangeRoleRequest\022G\n\021old_authorizat" + "ion\030\001 \001(\0132\032.viam.app.v1.AuthorizationR\020o" + "ldAuthorization\022G\n\021new_authorization\030\002 \001" + "(\0132\032.viam.app.v1.AuthorizationR\020newAutho" + "rization\"\024\n\022ChangeRoleResponse\"g\n\031ListAu" + "thorizationsRequest\022\'\n\017organization_id\030\001" + " \001(\tR\016organizationId\022!\n\014resource_ids\030\002 \003" + "(\tR\013resourceIds\"`\n\032ListAuthorizationsRes" + "ponse\022B\n\016authorizations\030\001 \003(\0132\032.viam.app" + ".v1.AuthorizationR\016authorizations\"_\n\027Che" + "ckPermissionsRequest\022D\n\013permissions\030\001 \003(" + "\0132\".viam.app.v1.AuthorizedPermissionsR\013p" + "ermissions\"\177\n\025AuthorizedPermissions\022#\n\rr" + "esource_type\030\001 \001(\tR\014resourceType\022\037\n\013reso" + "urce_id\030\002 \001(\tR\nresourceId\022 \n\013permissions" + "\030\003 \003(\tR\013permissions\"u\n\030CheckPermissionsR" + "esponse\022Y\n\026authorized_permissions\030\001 \003(\0132" + "\".viam.app.v1.AuthorizedPermissionsR\025aut" + "horizedPermissions\"\321\001\n\rModuleVersion\022\030\n\007" + "version\030\001 \001(\tR\007version\022*\n\005files\030\002 \003(\0132\024." + "viam.app.v1.UploadsR\005files\022*\n\006models\030\003 \003" + "(\0132\022.viam.app.v1.ModelR\006models\022\036\n\nentryp" + "oint\030\004 \001(\tR\nentrypoint\022 \n\tfirst_run\030\005 \001(" + "\tH\000R\010firstRun\210\001\001B\014\n\n_first_run\"\304\001\n\016Modul" + "eMetadata\022*\n\006models\030\001 \003(\0132\022.viam.app.v1." + "ModelR\006models\0226\n\010versions\030\002 \003(\0132\032.viam.a" + "pp.v1.ModuleVersionR\010versions\022\036\n\nentrypo" + "int\030\003 \001(\tR\nentrypoint\022 \n\tfirst_run\030\004 \001(\t" + "H\000R\010firstRun\210\001\001B\014\n\n_first_run\"\300\001\n\017MLMode" + "lMetadata\022\032\n\010versions\030\001 \003(\tR\010versions\022@\n" + "\nmodel_type\030\002 \001(\0162!.viam.app.mltraining." + "v1.ModelTypeR\tmodelType\022O\n\017model_framewo" + "rk\030\003 \001(\0162&.viam.app.mltraining.v1.ModelF" + "rameworkR\016modelFramework\"h\n\021MLTrainingVe" + "rsion\022\030\n\007version\030\001 \001(\tR\007version\0229\n\ncreat" + "ed_on\030\002 \001(\0132\032.google.protobuf.TimestampR" + "\tcreatedOn\"\377\001\n\022MLTrainingMetadata\022:\n\010ver" + "sions\030\005 \003(\0132\036.viam.app.v1.MLTrainingVers" + "ionR\010versions\022@\n\nmodel_type\030\002 \001(\0162!.viam" + ".app.mltraining.v1.ModelTypeR\tmodelType\022" + "O\n\017model_framework\030\003 \001(\0162&.viam.app.mltr" + "aining.v1.ModelFrameworkR\016modelFramework" + "\022\024\n\005draft\030\004 \001(\010R\005draftJ\004\010\001\020\002\"\214\007\n\014Registr" + "yItem\022\027\n\007item_id\030\001 \001(\tR\006itemId\022\'\n\017organi" + "zation_id\030\002 \001(\tR\016organizationId\022)\n\020publi" + "c_namespace\030\003 \001(\tR\017publicNamespace\022\022\n\004na" + "me\030\004 \001(\tR\004name\0225\n\004type\030\005 \001(\0162!.viam.app." + "packages.v1.PackageTypeR\004type\0227\n\nvisibil" + "ity\030\006 \001(\0162\027.viam.app.v1.VisibilityR\nvisi" + "bility\022\020\n\003url\030\007 \001(\tR\003url\022 \n\013description\030" + "\010 \001(\tR\013description\022*\n\021total_robot_usage\030" + "\t \001(\003R\017totalRobotUsage\022;\n\032total_external" + "_robot_usage\030\r \001(\003R\027totalExternalRobotUs" + "age\0228\n\030total_organization_usage\030\n \001(\003R\026t" + "otalOrganizationUsage\022I\n!total_external_" + "organization_usage\030\016 \001(\003R\036totalExternalO" + "rganizationUsage\022F\n\017module_metadata\030\013 \001(" + "\0132\033.viam.app.v1.ModuleMetadataH\000R\016module" + "Metadata\022J\n\021ml_model_metadata\030\014 \001(\0132\034.vi" + "am.app.v1.MLModelMetadataH\000R\017mlModelMeta" + "data\022S\n\024ml_training_metadata\030\022 \001(\0132\037.via" + "m.app.v1.MLTrainingMetadataH\000R\022mlTrainin" + "gMetadata\0229\n\ncreated_at\030\017 \001(\0132\032.google.p" + "rotobuf.TimestampR\tcreatedAt\0229\n\nupdated_" + "at\030\020 \001(\0132\032.google.protobuf.TimestampR\tup" + "datedAtB\n\n\010metadata\"\237\001\n\026GetRegistryItemR" + "equest\022\027\n\007item_id\030\001 \001(\tR\006itemId\022I\n\036inclu" + "de_markdown_documentation\030\002 \001(\010H\000R\034inclu" + "deMarkdownDocumentation\210\001\001B!\n\037_include_m" + "arkdown_documentation\"H\n\027GetRegistryItem" + "Response\022-\n\004item\030\001 \001(\0132\031.viam.app.v1.Reg" + "istryItemR\004item\"\217\001\n\031CreateRegistryItemRe" + "quest\022\'\n\017organization_id\030\001 \001(\tR\016organiza" + "tionId\022\022\n\004name\030\002 \001(\tR\004name\0225\n\004type\030\003 \001(\016" + "2!.viam.app.packages.v1.PackageTypeR\004typ" + "e\"\034\n\032CreateRegistryItemResponse\"\223\004\n\031Upda" + "teRegistryItemRequest\022\027\n\007item_id\030\001 \001(\tR\006" + "itemId\0225\n\004type\030\002 \001(\0162!.viam.app.packages" + ".v1.PackageTypeR\004type\022 \n\013description\030\003 \001" + "(\tR\013description\0227\n\nvisibility\030\004 \001(\0162\027.vi" + "am.app.v1.VisibilityR\nvisibility\022\025\n\003url\030" + "\005 \001(\tH\001R\003url\210\001\001\022Y\n\026module_update_metadat" + "a\030\006 \001(\0132!.viam.app.v1.UpdateModuleMetada" + "taH\000R\024moduleUpdateMetadata\022]\n\030ml_model_u" + "pdate_metadata\030\007 \001(\0132\".viam.app.v1.Updat" + "eMLModelMetadataH\000R\025mlModelUpdateMetadat" + "a\022f\n\033ml_training_update_metadata\030\010 \001(\0132%" + ".viam.app.v1.UpdateMLTrainingMetadataH\000R" + "\030mlTrainingUpdateMetadataB\n\n\010metadataB\006\n" + "\004_url\"\034\n\032UpdateRegistryItemResponse\"\261\004\n\030" + "ListRegistryItemsRequest\022,\n\017organization" + "_id\030\001 \001(\tH\000R\016organizationId\210\001\001\0227\n\005types\030" + "\002 \003(\0162!.viam.app.packages.v1.PackageType" + "R\005types\022;\n\014visibilities\030\003 \003(\0162\027.viam.app" + ".v1.VisibilityR\014visibilities\022\034\n\tplatform" + "s\030\004 \003(\tR\tplatforms\022;\n\010statuses\030\005 \003(\0162\037.v" + "iam.app.v1.RegistryItemStatusR\010statuses\022" + "$\n\013search_term\030\006 \001(\tH\001R\nsearchTerm\210\001\001\022\"\n" + "\npage_token\030\007 \001(\tH\002R\tpageToken\210\001\001\022+\n\021pub" + "lic_namespaces\030\010 \003(\tR\020publicNamespaces\022I" + "\n\036include_markdown_documentation\030\t \001(\010H\003" + "R\034includeMarkdownDocumentation\210\001\001B\022\n\020_or" + "ganization_idB\016\n\014_search_termB\r\n\013_page_t" + "okenB!\n\037_include_markdown_documentation\"" + "L\n\031ListRegistryItemsResponse\022/\n\005items\030\001 " + "\003(\0132\031.viam.app.v1.RegistryItemR\005items\"4\n" + "\031DeleteRegistryItemRequest\022\027\n\007item_id\030\001 " + "\001(\tR\006itemId\"\034\n\032DeleteRegistryItemRespons" + "e\"h\n\033TransferRegistryItemRequest\022\027\n\007item" + "_id\030\001 \001(\tR\006itemId\0220\n\024new_public_namespac" + "e\030\002 \001(\tR\022newPublicNamespace\"\036\n\034TransferR" + "egistryItemResponse\"R\n\023CreateModuleReque" + "st\022\'\n\017organization_id\030\001 \001(\tR\016organizatio" + "nId\022\022\n\004name\030\002 \001(\tR\004name\"E\n\024CreateModuleR" + "esponse\022\033\n\tmodule_id\030\001 \001(\tR\010moduleId\022\020\n\003" + "url\030\002 \001(\tR\003url\"\233\002\n\023UpdateModuleRequest\022\033" + "\n\tmodule_id\030\001 \001(\tR\010moduleId\0227\n\nvisibilit" + "y\030\002 \001(\0162\027.viam.app.v1.VisibilityR\nvisibi" + "lity\022\020\n\003url\030\003 \001(\tR\003url\022 \n\013description\030\004 " + "\001(\tR\013description\022*\n\006models\030\005 \003(\0132\022.viam." + "app.v1.ModelR\006models\022\036\n\nentrypoint\030\006 \001(\t" + "R\nentrypoint\022 \n\tfirst_run\030\007 \001(\tH\000R\010first" + "Run\210\001\001B\014\n\n_first_run\"(\n\024UpdateModuleResp" + "onse\022\020\n\003url\030\001 \001(\tR\003url\"b\n\024UpdateModuleMe" + "tadata\022*\n\006models\030\001 \003(\0132\022.viam.app.v1.Mod" + "elR\006models\022\036\n\nentrypoint\030\002 \001(\tR\nentrypoi" + "nt\"\252\001\n\025UpdateMLModelMetadata\022@\n\nmodel_ty" + "pe\030\001 \001(\0162!.viam.app.mltraining.v1.ModelT" + "ypeR\tmodelType\022O\n\017model_framework\030\002 \001(\0162" + "&.viam.app.mltraining.v1.ModelFrameworkR" + "\016modelFramework\"\303\001\n\030UpdateMLTrainingMeta" + "data\022@\n\nmodel_type\030\001 \001(\0162!.viam.app.mltr" + "aining.v1.ModelTypeR\tmodelType\022O\n\017model_" + "framework\030\002 \001(\0162&.viam.app.mltraining.v1" + ".ModelFrameworkR\016modelFramework\022\024\n\005draft" + "\030\003 \001(\010R\005draft\"\275\001\n\005Model\022\020\n\003api\030\001 \001(\tR\003ap" + "i\022\024\n\005model\030\002 \001(\tR\005model\022:\n\026markdown_docu" + "mentation\030\003 \001(\tH\000R\025markdownDocumentation" + "\210\001\001\022%\n\013description\030\004 \001(\tH\001R\013description\210" + "\001\001B\031\n\027_markdown_documentationB\016\n\014_descri" + "ption\"\210\001\n\016ModuleFileInfo\022\033\n\tmodule_id\030\001 " + "\001(\tR\010moduleId\022\030\n\007version\030\002 \001(\tR\007version\022" + "\032\n\010platform\030\003 \001(\tR\010platform\022#\n\rplatform_" + "tags\030\005 \003(\tR\014platformTags\"\207\001\n\027UploadModul" + "eFileRequest\022G\n\020module_file_info\030\001 \001(\0132\033" + ".viam.app.v1.ModuleFileInfoH\000R\016moduleFil" + "eInfo\022\024\n\004file\030\002 \001(\014H\000R\004fileB\r\n\013module_fi" + "le\",\n\030UploadModuleFileResponse\022\020\n\003url\030\001 " + "\001(\tR\003url\"\235\001\n\020GetModuleRequest\022\033\n\tmodule_" + "id\030\001 \001(\tR\010moduleId\022I\n\036include_markdown_d" + "ocumentation\030\002 \001(\010H\000R\034includeMarkdownDoc" + "umentation\210\001\001B!\n\037_include_markdown_docum" + "entation\"@\n\021GetModuleResponse\022+\n\006module\030" + "\001 \001(\0132\023.viam.app.v1.ModuleR\006module\"\225\004\n\006M" + "odule\022\033\n\tmodule_id\030\001 \001(\tR\010moduleId\022\022\n\004na" + "me\030\002 \001(\tR\004name\0227\n\nvisibility\030\003 \001(\0162\027.via" + "m.app.v1.VisibilityR\nvisibility\0227\n\010versi" + "ons\030\004 \003(\0132\033.viam.app.v1.VersionHistoryR\010" + "versions\022\020\n\003url\030\005 \001(\tR\003url\022 \n\013descriptio" + "n\030\006 \001(\tR\013description\022*\n\006models\030\007 \003(\0132\022.v" + "iam.app.v1.ModelR\006models\022*\n\021total_robot_" + "usage\030\010 \001(\003R\017totalRobotUsage\0228\n\030total_or" + "ganization_usage\030\t \001(\003R\026totalOrganizatio" + "nUsage\022\'\n\017organization_id\030\n \001(\tR\016organiz" + "ationId\022\036\n\nentrypoint\030\013 \001(\tR\nentrypoint\022" + ")\n\020public_namespace\030\014 \001(\tR\017publicNamespa" + "ce\022 \n\tfirst_run\030\r \001(\tH\000R\010firstRun\210\001\001B\014\n\n" + "_first_run\"\322\001\n\016VersionHistory\022\030\n\007version" + "\030\001 \001(\tR\007version\022*\n\005files\030\002 \003(\0132\024.viam.ap" + "p.v1.UploadsR\005files\022*\n\006models\030\003 \003(\0132\022.vi" + "am.app.v1.ModelR\006models\022\036\n\nentrypoint\030\004 " + "\001(\tR\nentrypoint\022 \n\tfirst_run\030\005 \001(\tH\000R\010fi" + "rstRun\210\001\001B\014\n\n_first_run\"b\n\007Uploads\022\032\n\010pl" + "atform\030\001 \001(\tR\010platform\022;\n\013uploaded_at\030\002 " + "\001(\0132\032.google.protobuf.TimestampR\nuploade" + "dAt\"\304\001\n\022ListModulesRequest\022,\n\017organizati" + "on_id\030\001 \001(\tH\000R\016organizationId\210\001\001\022I\n\036incl" + "ude_markdown_documentation\030\002 \001(\010H\001R\034incl" + "udeMarkdownDocumentation\210\001\001B\022\n\020_organiza" + "tion_idB!\n\037_include_markdown_documentati" + "on\"D\n\023ListModulesResponse\022-\n\007modules\030\001 \003" + "(\0132\023.viam.app.v1.ModuleR\007modules\"/\n\027GetU" + "serIDByEmailRequest\022\024\n\005email\030\001 \001(\tR\005emai" + "l\"3\n\030GetUserIDByEmailResponse\022\027\n\007user_id" + "\030\001 \001(\tR\006userId\"9\n\036ListOrganizationsByUse" + "rRequest\022\027\n\007user_id\030\001 \001(\tR\006userId\"\255\001\n\nOr" + "gDetails\022\025\n\006org_id\030\001 \001(\tR\005orgId\022\031\n\010org_n" + "ame\030\002 \001(\tR\007orgName\022\034\n\007org_cid\030\003 \001(\tH\000R\006o" + "rgCid\210\001\001\022.\n\020public_namespace\030\004 \001(\tH\001R\017pu" + "blicNamespace\210\001\001B\n\n\010_org_cidB\023\n\021_public_" + "namespace\"N\n\037ListOrganizationsByUserResp" + "onse\022+\n\004orgs\030\001 \003(\0132\027.viam.app.v1.OrgDeta" + "ilsR\004orgs\"\324\001\n\032SearchOrganizationsRequest" + "\022\032\n\006org_id\030\001 \001(\tH\000R\005orgId\210\001\001\022\036\n\010org_name" + "\030\002 \001(\tH\001R\007orgName\210\001\001\022\025\n\003cid\030\003 \001(\tH\002R\003cid" + "\210\001\001\022.\n\020public_namespace\030\004 \001(\tH\003R\017publicN" + "amespace\210\001\001B\t\n\007_org_idB\013\n\t_org_nameB\006\n\004_" + "cidB\023\n\021_public_namespace\"\\\n\033SearchOrgani" + "zationsResponse\022=\n\rorganizations\030\001 \003(\0132\027" + ".viam.app.v1.OrgDetailsR\rorganizations\"j" + "\n\020CreateKeyRequest\022B\n\016authorizations\030\001 \003" + "(\0132\032.viam.app.v1.AuthorizationR\016authoriz" + "ations\022\022\n\004name\030\002 \001(\tR\004name\"5\n\021CreateKeyR" + "esponse\022\020\n\003key\030\001 \001(\tR\003key\022\016\n\002id\030\002 \001(\tR\002i" + "d\"\"\n\020DeleteKeyRequest\022\016\n\002id\030\001 \001(\tR\002id\"\023\n" + "\021DeleteKeyResponse\"6\n\020RenameKeyRequest\022\016" + "\n\002id\030\001 \001(\tR\002id\022\022\n\004name\030\002 \001(\tR\004name\"7\n\021Re" + "nameKeyResponse\022\016\n\002id\030\001 \001(\tR\002id\022\022\n\004name\030" + "\002 \001(\tR\004name\"\315\001\n\024AuthorizationDetails\022-\n\022" + "authorization_type\030\001 \001(\tR\021authorizationT" + "ype\022)\n\020authorization_id\030\002 \001(\tR\017authoriza" + "tionId\022#\n\rresource_type\030\003 \001(\tR\014resourceT" + "ype\022\037\n\013resource_id\030\004 \001(\tR\nresourceId\022\025\n\006" + "org_id\030\005 \001(\tR\005orgId\"\223\001\n\030APIKeyWithAuthor" + "izations\022,\n\007api_key\030\001 \001(\0132\023.viam.app.v1." + "APIKeyR\006apiKey\022I\n\016authorizations\030\002 \003(\0132!" + ".viam.app.v1.AuthorizationDetailsR\016autho" + "rizations\"(\n\017ListKeysRequest\022\025\n\006org_id\030\001" + " \001(\tR\005orgId\"T\n\020ListKeysResponse\022@\n\010api_k" + "eys\030\001 \003(\0132%.viam.app.v1.APIKeyWithAuthor" + "izationsR\007apiKeys\"\"\n\020RotateKeyRequest\022\016\n" + "\002id\030\001 \001(\tR\002id\"5\n\021RotateKeyResponse\022\016\n\002id" + "\030\001 \001(\tR\002id\022\020\n\003key\030\002 \001(\tR\003key\"\?\n-CreateKe" + "yFromExistingKeyAuthorizationsRequest\022\016\n" + "\002id\030\001 \001(\tR\002id\"R\n.CreateKeyFromExistingKe" + "yAuthorizationsResponse\022\016\n\002id\030\001 \001(\tR\002id\022" + "\020\n\003key\030\002 \001(\tR\003key\"G\n\032OrganizationSetLogo" + "Request\022\025\n\006org_id\030\001 \001(\tR\005orgId\022\022\n\004logo\030\002" + " \001(\014R\004logo\"\035\n\033OrganizationSetLogoRespons" + "e\"3\n\032OrganizationGetLogoRequest\022\025\n\006org_i" + "d\030\001 \001(\tR\005orgId\"/\n\033OrganizationGetLogoRes" + "ponse\022\020\n\003url\030\001 \001(\tR\003url\"1\n\030EnableAuthSer" + "viceRequest\022\025\n\006org_id\030\001 \001(\tR\005orgId\"\033\n\031En" + "ableAuthServiceResponse\"2\n\031DisableAuthSe" + "rviceRequest\022\025\n\006org_id\030\001 \001(\tR\005orgId\"\034\n\032D" + "isableAuthServiceResponse\"\214\001\n\025CreateOAut" + "hAppRequest\022\025\n\006org_id\030\001 \001(\tR\005orgId\022\037\n\013cl" + "ient_name\030\002 \001(\tR\nclientName\022;\n\014oauth_con" + "fig\030\003 \001(\0132\030.viam.app.v1.OAuthConfigR\013oau" + "thConfig\"Z\n\026CreateOAuthAppResponse\022\033\n\tcl" + "ient_id\030\001 \001(\tR\010clientId\022#\n\rclient_secret" + "\030\002 \001(\tR\014clientSecret\"I\n\023ReadOAuthAppRequ" + "est\022\025\n\006org_id\030\001 \001(\tR\005orgId\022\033\n\tclient_id\030" + "\002 \001(\tR\010clientId\"\231\001\n\024ReadOAuthAppResponse" + "\022\037\n\013client_name\030\001 \001(\tR\nclientName\022#\n\rcli" + "ent_secret\030\002 \001(\tR\014clientSecret\022;\n\014oauth_" + "config\030\003 \001(\0132\030.viam.app.v1.OAuthConfigR\013" + "oauthConfig\"\251\001\n\025UpdateOAuthAppRequest\022\025\n" + "\006org_id\030\001 \001(\tR\005orgId\022\033\n\tclient_id\030\002 \001(\tR" + "\010clientId\022\037\n\013client_name\030\003 \001(\tR\nclientNa" + "me\022;\n\014oauth_config\030\004 \001(\0132\030.viam.app.v1.O" + "AuthConfigR\013oauthConfig\"\030\n\026UpdateOAuthAp" + "pResponse\"K\n\025DeleteOAuthAppRequest\022\025\n\006or" + "g_id\030\001 \001(\tR\005orgId\022\033\n\tclient_id\030\002 \001(\tR\010cl" + "ientId\"\030\n\026DeleteOAuthAppResponse\"-\n\024List" + "OAuthAppsRequest\022\025\n\006org_id\030\001 \001(\tR\005orgId\"" + "6\n\025ListOAuthAppsResponse\022\035\n\nclient_ids\030\001" + " \003(\tR\tclientIds\"\366\002\n\013OAuthConfig\022V\n\025clien" + "t_authentication\030\001 \001(\0162!.viam.app.v1.Cli" + "entAuthenticationR\024clientAuthentication\022" + "%\n\004pkce\030\002 \001(\0162\021.viam.app.v1.PKCER\004pkce\022A" + "\n\016url_validation\030\003 \001(\0162\032.viam.app.v1.URL" + "ValidationR\rurlValidation\022\037\n\013origin_uris" + "\030\004 \003(\tR\noriginUris\022#\n\rredirect_uris\030\005 \003(" + "\tR\014redirectUris\022\035\n\nlogout_uri\030\006 \001(\tR\tlog" + "outUri\022@\n\016enabled_grants\030\007 \003(\0162\031.viam.ap" + "p.v1.EnabledGrantR\renabledGrants*\321\001\n\022Aut" + "henticationType\022#\n\037AUTHENTICATION_TYPE_U" + "NSPECIFIED\020\000\022!\n\035AUTHENTICATION_TYPE_WEB_" + "OAUTH\020\001\022\037\n\033AUTHENTICATION_TYPE_API_KEY\020\002" + "\022)\n%AUTHENTICATION_TYPE_ROBOT_PART_SECRE" + "T\020\003\022\'\n#AUTHENTICATION_TYPE_LOCATION_SECR" + "ET\020\004*\243\001\n\022FragmentVisibility\022#\n\037FRAGMENT_" + "VISIBILITY_UNSPECIFIED\020\000\022\037\n\033FRAGMENT_VIS" + "IBILITY_PRIVATE\020\001\022\036\n\032FRAGMENT_VISIBILITY" + "_PUBLIC\020\002\022\'\n#FRAGMENT_VISIBILITY_PUBLIC_" + "UNLISTED\020\003*\335\001\n\021FragmentErrorType\022#\n\037FRAG" + "MENT_ERROR_TYPE_UNSPECIFIED\020\000\022!\n\035FRAGMEN" + "T_ERROR_TYPE_NO_ACCESS\020\001\022.\n*FRAGMENT_ERR" + "OR_TYPE_NESTING_LIMIT_EXCEEDED\020\002\022(\n$FRAG" + "MENT_ERROR_TYPE_CHILD_ID_INVALID\020\003\022&\n\"FR" + "AGMENT_ERROR_TYPE_CYCLE_DETECTED\020\004*\207\001\n\022R" + "egistryItemStatus\022$\n REGISTRY_ITEM_STATU" + "S_UNSPECIFIED\020\000\022\"\n\036REGISTRY_ITEM_STATUS_" + "PUBLISHED\020\001\022\'\n#REGISTRY_ITEM_STATUS_IN_D" + "EVELOPMENT\020\002*w\n\nVisibility\022\032\n\026VISIBILITY" + "_UNSPECIFIED\020\000\022\026\n\022VISIBILITY_PRIVATE\020\001\022\025" + "\n\021VISIBILITY_PUBLIC\020\002\022\036\n\032VISIBILITY_PUBL" + "IC_UNLISTED\020\003*\301\001\n\024ClientAuthentication\022%" + "\n!CLIENT_AUTHENTICATION_UNSPECIFIED\020\000\022\"\n" + "\036CLIENT_AUTHENTICATION_REQUIRED\020\001\022&\n\"CLI" + "ENT_AUTHENTICATION_NOT_REQUIRED\020\002\0226\n2CLI" + "ENT_AUTHENTICATION_NOT_REQUIRED_WHEN_USI" + "NG_PKCE\020\003*~\n\004PKCE\022\024\n\020PKCE_UNSPECIFIED\020\000\022" + "\021\n\rPKCE_REQUIRED\020\001\022\025\n\021PKCE_NOT_REQUIRED\020" + "\002\0226\n2PKCE_NOT_REQUIRED_WHEN_USING_CLIENT" + "_AUTHENTICATION\020\003*s\n\rURLValidation\022\036\n\032UR" + "L_VALIDATION_UNSPECIFIED\020\000\022\036\n\032URL_VALIDA" + "TION_EXACT_MATCH\020\001\022\"\n\036URL_VALIDATION_ALL" + "OW_WILDCARDS\020\002*\313\001\n\014EnabledGrant\022\035\n\031ENABL" + "ED_GRANT_UNSPECIFIED\020\000\022$\n ENABLED_GRANT_" + "AUTHORIZATION_CODE\020\001\022\032\n\026ENABLED_GRANT_IM" + "PLICIT\020\002\022\032\n\026ENABLED_GRANT_PASSWORD\020\003\022\037\n\033" + "ENABLED_GRANT_REFRESH_TOKEN\020\004\022\035\n\031ENABLED" + "_GRANT_DEVICE_CODE\020\0052\211E\n\nAppService\022_\n\020G" + "etUserIDByEmail\022$.viam.app.v1.GetUserIDB" + "yEmailRequest\032%.viam.app.v1.GetUserIDByE" + "mailResponse\022e\n\022CreateOrganization\022&.via" + "m.app.v1.CreateOrganizationRequest\032\'.via" + "m.app.v1.CreateOrganizationResponse\022b\n\021L" + "istOrganizations\022%.viam.app.v1.ListOrgan" + "izationsRequest\032&.viam.app.v1.ListOrgani" + "zationsResponse\022\233\001\n$GetOrganizationsWith" + "AccessToLocation\0228.viam.app.v1.GetOrgani" + "zationsWithAccessToLocationRequest\0329.via" + "m.app.v1.GetOrganizationsWithAccessToLoc" + "ationResponse\022t\n\027ListOrganizationsByUser" + "\022+.viam.app.v1.ListOrganizationsByUserRe" + "quest\032,.viam.app.v1.ListOrganizationsByU" + "serResponse\022h\n\023SearchOrganizations\022\'.via" + "m.app.v1.SearchOrganizationsRequest\032(.vi" + "am.app.v1.SearchOrganizationsResponse\022\\\n" + "\017GetOrganization\022#.viam.app.v1.GetOrgani" + "zationRequest\032$.viam.app.v1.GetOrganizat" + "ionResponse\022\233\001\n$GetOrganizationNamespace" + "Availability\0228.viam.app.v1.GetOrganizati" + "onNamespaceAvailabilityRequest\0329.viam.ap" + "p.v1.GetOrganizationNamespaceAvailabilit" + "yResponse\022e\n\022UpdateOrganization\022&.viam.a" + "pp.v1.UpdateOrganizationRequest\032\'.viam.a" + "pp.v1.UpdateOrganizationResponse\022e\n\022Dele" + "teOrganization\022&.viam.app.v1.DeleteOrgan" + "izationRequest\032\'.viam.app.v1.DeleteOrgan" + "izationResponse\022t\n\027ListOrganizationMembe" + "rs\022+.viam.app.v1.ListOrganizationMembers" + "Request\032,.viam.app.v1.ListOrganizationMe" + "mbersResponse\022w\n\030CreateOrganizationInvit" + "e\022,.viam.app.v1.CreateOrganizationInvite" + "Request\032-.viam.app.v1.CreateOrganization" + "InviteResponse\022\241\001\n&UpdateOrganizationInv" + "iteAuthorizations\022:.viam.app.v1.UpdateOr" + "ganizationInviteAuthorizationsRequest\032;." + "viam.app.v1.UpdateOrganizationInviteAuth" + "orizationsResponse\022w\n\030DeleteOrganization" + "Member\022,.viam.app.v1.DeleteOrganizationM" + "emberRequest\032-.viam.app.v1.DeleteOrganiz" + "ationMemberResponse\022w\n\030DeleteOrganizatio" + "nInvite\022,.viam.app.v1.DeleteOrganization" + "InviteRequest\032-.viam.app.v1.DeleteOrgani" + "zationInviteResponse\022w\n\030ResendOrganizati" + "onInvite\022,.viam.app.v1.ResendOrganizatio" + "nInviteRequest\032-.viam.app.v1.ResendOrgan" + "izationInviteResponse\022k\n\024EnableBillingSe" + "rvice\022(.viam.app.v1.EnableBillingService" + "Request\032).viam.app.v1.EnableBillingServi" + "ceResponse\022n\n\025DisableBillingService\022).vi" + "am.app.v1.DisableBillingServiceRequest\032*" + ".viam.app.v1.DisableBillingServiceRespon" + "se\022k\n\024UpdateBillingService\022(.viam.app.v1" + ".UpdateBillingServiceRequest\032).viam.app." + "v1.UpdateBillingServiceResponse\022t\n\027GetBi" + "llingServiceConfig\022+.viam.app.v1.GetBill" + "ingServiceConfigRequest\032,.viam.app.v1.Ge" + "tBillingServiceConfigResponse\022\200\001\n\033Organi" + "zationSetSupportEmail\022/.viam.app.v1.Orga" + "nizationSetSupportEmailRequest\0320.viam.ap" + "p.v1.OrganizationSetSupportEmailResponse" + "\022\200\001\n\033OrganizationGetSupportEmail\022/.viam." + "app.v1.OrganizationGetSupportEmailReques" + "t\0320.viam.app.v1.OrganizationGetSupportEm" + "ailResponse\022h\n\023OrganizationSetLogo\022\'.via" + "m.app.v1.OrganizationSetLogoRequest\032(.vi" + "am.app.v1.OrganizationSetLogoResponse\022h\n" + "\023OrganizationGetLogo\022\'.viam.app.v1.Organ" + "izationGetLogoRequest\032(.viam.app.v1.Orga" + "nizationGetLogoResponse\022b\n\021EnableAuthSer" + "vice\022%.viam.app.v1.EnableAuthServiceRequ" + "est\032&.viam.app.v1.EnableAuthServiceRespo" + "nse\022e\n\022DisableAuthService\022&.viam.app.v1." + "DisableAuthServiceRequest\032\'.viam.app.v1." + "DisableAuthServiceResponse\022Y\n\016CreateOAut" + "hApp\022\".viam.app.v1.CreateOAuthAppRequest" + "\032#.viam.app.v1.CreateOAuthAppResponse\022S\n" + "\014ReadOAuthApp\022 .viam.app.v1.ReadOAuthApp" + "Request\032!.viam.app.v1.ReadOAuthAppRespon" + "se\022Y\n\016UpdateOAuthApp\022\".viam.app.v1.Updat" + "eOAuthAppRequest\032#.viam.app.v1.UpdateOAu" + "thAppResponse\022Y\n\016DeleteOAuthApp\022\".viam.a" + "pp.v1.DeleteOAuthAppRequest\032#.viam.app.v" + "1.DeleteOAuthAppResponse\022V\n\rListOAuthApp" + "s\022!.viam.app.v1.ListOAuthAppsRequest\032\".v" + "iam.app.v1.ListOAuthAppsResponse\022Y\n\016Crea" + "teLocation\022\".viam.app.v1.CreateLocationR" + "equest\032#.viam.app.v1.CreateLocationRespo" + "nse\022P\n\013GetLocation\022\037.viam.app.v1.GetLoca" + "tionRequest\032 .viam.app.v1.GetLocationRes" + "ponse\022Y\n\016UpdateLocation\022\".viam.app.v1.Up" + "dateLocationRequest\032#.viam.app.v1.Update" + "LocationResponse\022Y\n\016DeleteLocation\022\".via" + "m.app.v1.DeleteLocationRequest\032#.viam.ap" + "p.v1.DeleteLocationResponse\022V\n\rListLocat" + "ions\022!.viam.app.v1.ListLocationsRequest\032" + "\".viam.app.v1.ListLocationsResponse\022V\n\rS" + "hareLocation\022!.viam.app.v1.ShareLocation" + "Request\032\".viam.app.v1.ShareLocationRespo" + "nse\022\\\n\017UnshareLocation\022#.viam.app.v1.Uns" + "hareLocationRequest\032$.viam.app.v1.Unshar" + "eLocationResponse\022S\n\014LocationAuth\022 .viam" + ".app.v1.LocationAuthRequest\032!.viam.app.v" + "1.LocationAuthResponse\022k\n\024CreateLocation" + "Secret\022(.viam.app.v1.CreateLocationSecre" + "tRequest\032).viam.app.v1.CreateLocationSec" + "retResponse\022k\n\024DeleteLocationSecret\022(.vi" + "am.app.v1.DeleteLocationSecretRequest\032)." + "viam.app.v1.DeleteLocationSecretResponse" + "\022G\n\010GetRobot\022\034.viam.app.v1.GetRobotReque" + "st\032\035.viam.app.v1.GetRobotResponse\022k\n\024Get" + "RoverRentalRobots\022(.viam.app.v1.GetRover" + "RentalRobotsRequest\032).viam.app.v1.GetRov" + "erRentalRobotsResponse\022V\n\rGetRobotParts\022" + "!.viam.app.v1.GetRobotPartsRequest\032\".via" + "m.app.v1.GetRobotPartsResponse\022S\n\014GetRob" + "otPart\022 .viam.app.v1.GetRobotPartRequest" + "\032!.viam.app.v1.GetRobotPartResponse\022_\n\020G" + "etRobotPartLogs\022$.viam.app.v1.GetRobotPa" + "rtLogsRequest\032%.viam.app.v1.GetRobotPart" + "LogsResponse\022d\n\021TailRobotPartLogs\022%.viam" + ".app.v1.TailRobotPartLogsRequest\032&.viam." + "app.v1.TailRobotPartLogsResponse0\001\022h\n\023Ge" + "tRobotPartHistory\022\'.viam.app.v1.GetRobot" + "PartHistoryRequest\032(.viam.app.v1.GetRobo" + "tPartHistoryResponse\022\\\n\017UpdateRobotPart\022" + "#.viam.app.v1.UpdateRobotPartRequest\032$.v" + "iam.app.v1.UpdateRobotPartResponse\022S\n\014Ne" + "wRobotPart\022 .viam.app.v1.NewRobotPartReq" + "uest\032!.viam.app.v1.NewRobotPartResponse\022" + "\\\n\017DeleteRobotPart\022#.viam.app.v1.DeleteR" + "obotPartRequest\032$.viam.app.v1.DeleteRobo" + "tPartResponse\022\\\n\017GetRobotAPIKeys\022#.viam." + "app.v1.GetRobotAPIKeysRequest\032$.viam.app" + ".v1.GetRobotAPIKeysResponse\022Y\n\016MarkPartA" + "sMain\022\".viam.app.v1.MarkPartAsMainReques" + "t\032#.viam.app.v1.MarkPartAsMainResponse\022e" + "\n\022MarkPartForRestart\022&.viam.app.v1.MarkP" + "artForRestartRequest\032\'.viam.app.v1.MarkP" + "artForRestartResponse\022n\n\025CreateRobotPart" + "Secret\022).viam.app.v1.CreateRobotPartSecr" + "etRequest\032*.viam.app.v1.CreateRobotPartS" + "ecretResponse\022n\n\025DeleteRobotPartSecret\022)" + ".viam.app.v1.DeleteRobotPartSecretReques" + "t\032*.viam.app.v1.DeleteRobotPartSecretRes" + "ponse\022M\n\nListRobots\022\036.viam.app.v1.ListRo" + "botsRequest\032\037.viam.app.v1.ListRobotsResp" + "onse\022G\n\010NewRobot\022\034.viam.app.v1.NewRobotR" + "equest\032\035.viam.app.v1.NewRobotResponse\022P\n" + "\013UpdateRobot\022\037.viam.app.v1.UpdateRobotRe" + "quest\032 .viam.app.v1.UpdateRobotResponse\022" + "P\n\013DeleteRobot\022\037.viam.app.v1.DeleteRobot" + "Request\032 .viam.app.v1.DeleteRobotRespons" + "e\022V\n\rListFragments\022!.viam.app.v1.ListFra" + "gmentsRequest\032\".viam.app.v1.ListFragment" + "sResponse\022P\n\013GetFragment\022\037.viam.app.v1.G" + "etFragmentRequest\032 .viam.app.v1.GetFragm" + "entResponse\022Y\n\016CreateFragment\022\".viam.app" + ".v1.CreateFragmentRequest\032#.viam.app.v1." + "CreateFragmentResponse\022Y\n\016UpdateFragment" + "\022\".viam.app.v1.UpdateFragmentRequest\032#.v" + "iam.app.v1.UpdateFragmentResponse\022Y\n\016Del" + "eteFragment\022\".viam.app.v1.DeleteFragment" + "Request\032#.viam.app.v1.DeleteFragmentResp" + "onse\022k\n\024ListMachineFragments\022(.viam.app." + "v1.ListMachineFragmentsRequest\032).viam.ap" + "p.v1.ListMachineFragmentsResponse\022e\n\022Get" + "FragmentHistory\022&.viam.app.v1.GetFragmen" + "tHistoryRequest\032\'.viam.app.v1.GetFragmen" + "tHistoryResponse\022D\n\007AddRole\022\033.viam.app.v" + "1.AddRoleRequest\032\034.viam.app.v1.AddRoleRe" + "sponse\022M\n\nRemoveRole\022\036.viam.app.v1.Remov" + "eRoleRequest\032\037.viam.app.v1.RemoveRoleRes" + "ponse\022M\n\nChangeRole\022\036.viam.app.v1.Change" + "RoleRequest\032\037.viam.app.v1.ChangeRoleResp" + "onse\022e\n\022ListAuthorizations\022&.viam.app.v1" + ".ListAuthorizationsRequest\032\'.viam.app.v1" + ".ListAuthorizationsResponse\022_\n\020CheckPerm" + "issions\022$.viam.app.v1.CheckPermissionsRe" + "quest\032%.viam.app.v1.CheckPermissionsResp" + "onse\022\\\n\017GetRegistryItem\022#.viam.app.v1.Ge" + "tRegistryItemRequest\032$.viam.app.v1.GetRe" + "gistryItemResponse\022e\n\022CreateRegistryItem" + "\022&.viam.app.v1.CreateRegistryItemRequest" + "\032\'.viam.app.v1.CreateRegistryItemRespons" + "e\022e\n\022UpdateRegistryItem\022&.viam.app.v1.Up" + "dateRegistryItemRequest\032\'.viam.app.v1.Up" + "dateRegistryItemResponse\022b\n\021ListRegistry" + "Items\022%.viam.app.v1.ListRegistryItemsReq" + "uest\032&.viam.app.v1.ListRegistryItemsResp" + "onse\022e\n\022DeleteRegistryItem\022&.viam.app.v1" + ".DeleteRegistryItemRequest\032\'.viam.app.v1" + ".DeleteRegistryItemResponse\022k\n\024TransferR" + "egistryItem\022(.viam.app.v1.TransferRegist" + "ryItemRequest\032).viam.app.v1.TransferRegi" + "stryItemResponse\022S\n\014CreateModule\022 .viam." + "app.v1.CreateModuleRequest\032!.viam.app.v1" + ".CreateModuleResponse\022S\n\014UpdateModule\022 ." + "viam.app.v1.UpdateModuleRequest\032!.viam.a" + "pp.v1.UpdateModuleResponse\022a\n\020UploadModu" + "leFile\022$.viam.app.v1.UploadModuleFileReq" + "uest\032%.viam.app.v1.UploadModuleFileRespo" + "nse(\001\022J\n\tGetModule\022\035.viam.app.v1.GetModu" + "leRequest\032\036.viam.app.v1.GetModuleRespons" + "e\022P\n\013ListModules\022\037.viam.app.v1.ListModul" + "esRequest\032 .viam.app.v1.ListModulesRespo" + "nse\022J\n\tCreateKey\022\035.viam.app.v1.CreateKey" + "Request\032\036.viam.app.v1.CreateKeyResponse\022" + "J\n\tDeleteKey\022\035.viam.app.v1.DeleteKeyRequ" + "est\032\036.viam.app.v1.DeleteKeyResponse\022G\n\010L" + "istKeys\022\034.viam.app.v1.ListKeysRequest\032\035." + "viam.app.v1.ListKeysResponse\022J\n\tRenameKe" + "y\022\035.viam.app.v1.RenameKeyRequest\032\036.viam." + "app.v1.RenameKeyResponse\022J\n\tRotateKey\022\035." + "viam.app.v1.RotateKeyRequest\032\036.viam.app." + "v1.RotateKeyResponse\022\241\001\n&CreateKeyFromEx" + "istingKeyAuthorizations\022:.viam.app.v1.Cr" + "eateKeyFromExistingKeyAuthorizationsRequ" + "est\032;.viam.app.v1.CreateKeyFromExistingK" + "eyAuthorizationsResponseB\030Z\026go.viam.com/" + "api/app/v1b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_app_2fv1_2fapp_2eproto_deps[6] = { + &::descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto, + &::descriptor_table_app_2fpackages_2fv1_2fpackages_2eproto, + &::descriptor_table_common_2fv1_2fcommon_2eproto, + &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, + &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto, + &::descriptor_table_tagger_2fv1_2ftagger_2eproto, +}; +static ::_pbi::once_flag descriptor_table_app_2fv1_2fapp_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_app_2fv1_2fapp_2eproto = { - false, - false, - 31880, - descriptor_table_protodef_app_2fv1_2fapp_2eproto, + false, false, 37298, descriptor_table_protodef_app_2fv1_2fapp_2eproto, "app/v1/app.proto", - &descriptor_table_app_2fv1_2fapp_2eproto_once, - descriptor_table_app_2fv1_2fapp_2eproto_deps, - 6, - 194, - schemas, - file_default_instances, - TableStruct_app_2fv1_2fapp_2eproto::offsets, - file_level_metadata_app_2fv1_2fapp_2eproto, - file_level_enum_descriptors_app_2fv1_2fapp_2eproto, + &descriptor_table_app_2fv1_2fapp_2eproto_once, descriptor_table_app_2fv1_2fapp_2eproto_deps, 6, 219, + schemas, file_default_instances, TableStruct_app_2fv1_2fapp_2eproto::offsets, + file_level_metadata_app_2fv1_2fapp_2eproto, file_level_enum_descriptors_app_2fv1_2fapp_2eproto, file_level_service_descriptors_app_2fv1_2fapp_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_app_2fv1_2fapp_2eproto_getter() { return &descriptor_table_app_2fv1_2fapp_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_app_2fv1_2fapp_2eproto(&descriptor_table_app_2fv1_2fapp_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_app_2fv1_2fapp_2eproto(&descriptor_table_app_2fv1_2fapp_2eproto); namespace viam { namespace app { namespace v1 { -const ::google::protobuf::EnumDescriptor* SharedSecret_State_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_app_2fv1_2fapp_2eproto); +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SharedSecret_State_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_app_2fv1_2fapp_2eproto); return file_level_enum_descriptors_app_2fv1_2fapp_2eproto[0]; } -PROTOBUF_CONSTINIT const uint32_t SharedSecret_State_internal_data_[] = { - 196608u, 0u, }; bool SharedSecret_State_IsValid(int value) { - return 0 <= value && value <= 2; + switch (value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } } -#if (__cplusplus < 201703) && \ - (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr SharedSecret_State SharedSecret::STATE_UNSPECIFIED; constexpr SharedSecret_State SharedSecret::STATE_ENABLED; constexpr SharedSecret_State SharedSecret::STATE_DISABLED; constexpr SharedSecret_State SharedSecret::State_MIN; constexpr SharedSecret_State SharedSecret::State_MAX; constexpr int SharedSecret::State_ARRAYSIZE; - -#endif // (__cplusplus < 201703) && - // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -const ::google::protobuf::EnumDescriptor* AuthenticationType_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_app_2fv1_2fapp_2eproto); +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* AuthenticationType_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_app_2fv1_2fapp_2eproto); return file_level_enum_descriptors_app_2fv1_2fapp_2eproto[1]; } -PROTOBUF_CONSTINIT const uint32_t AuthenticationType_internal_data_[] = { - 327680u, 0u, }; bool AuthenticationType_IsValid(int value) { - return 0 <= value && value <= 4; + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + return true; + default: + return false; + } } -const ::google::protobuf::EnumDescriptor* FragmentVisibility_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_app_2fv1_2fapp_2eproto); + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FragmentVisibility_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_app_2fv1_2fapp_2eproto); return file_level_enum_descriptors_app_2fv1_2fapp_2eproto[2]; } -PROTOBUF_CONSTINIT const uint32_t FragmentVisibility_internal_data_[] = { - 262144u, 0u, }; bool FragmentVisibility_IsValid(int value) { - return 0 <= value && value <= 3; + switch (value) { + case 0: + case 1: + case 2: + case 3: + return true; + default: + return false; + } } -const ::google::protobuf::EnumDescriptor* FragmentErrorType_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_app_2fv1_2fapp_2eproto); + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FragmentErrorType_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_app_2fv1_2fapp_2eproto); return file_level_enum_descriptors_app_2fv1_2fapp_2eproto[3]; } -PROTOBUF_CONSTINIT const uint32_t FragmentErrorType_internal_data_[] = { - 327680u, 0u, }; bool FragmentErrorType_IsValid(int value) { - return 0 <= value && value <= 4; + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + return true; + default: + return false; + } } -const ::google::protobuf::EnumDescriptor* RegistryItemStatus_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_app_2fv1_2fapp_2eproto); + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* RegistryItemStatus_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_app_2fv1_2fapp_2eproto); return file_level_enum_descriptors_app_2fv1_2fapp_2eproto[4]; } -PROTOBUF_CONSTINIT const uint32_t RegistryItemStatus_internal_data_[] = { - 196608u, 0u, }; bool RegistryItemStatus_IsValid(int value) { - return 0 <= value && value <= 2; + switch (value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } } -const ::google::protobuf::EnumDescriptor* Visibility_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_app_2fv1_2fapp_2eproto); + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Visibility_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_app_2fv1_2fapp_2eproto); return file_level_enum_descriptors_app_2fv1_2fapp_2eproto[5]; } -PROTOBUF_CONSTINIT const uint32_t Visibility_internal_data_[] = { - 262144u, 0u, }; bool Visibility_IsValid(int value) { - return 0 <= value && value <= 3; + switch (value) { + case 0: + case 1: + case 2: + case 3: + return true; + default: + return false; + } +} + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ClientAuthentication_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_app_2fv1_2fapp_2eproto); + return file_level_enum_descriptors_app_2fv1_2fapp_2eproto[6]; +} +bool ClientAuthentication_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + return true; + default: + return false; + } +} + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PKCE_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_app_2fv1_2fapp_2eproto); + return file_level_enum_descriptors_app_2fv1_2fapp_2eproto[7]; +} +bool PKCE_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + return true; + default: + return false; + } +} + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* URLValidation_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_app_2fv1_2fapp_2eproto); + return file_level_enum_descriptors_app_2fv1_2fapp_2eproto[8]; +} +bool URLValidation_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } } + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* EnabledGrant_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_app_2fv1_2fapp_2eproto); + return file_level_enum_descriptors_app_2fv1_2fapp_2eproto[9]; +} +bool EnabledGrant_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + return true; + default: + return false; + } +} + + // =================================================================== class Robot::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Robot, _impl_._has_bits_); - static const ::google::protobuf::Timestamp& last_access(const Robot* msg); - static void set_has_last_access(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::google::protobuf::Timestamp& created_on(const Robot* msg); - static void set_has_created_on(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& last_access(const Robot* msg); + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& created_on(const Robot* msg); }; -const ::google::protobuf::Timestamp& Robot::_Internal::last_access(const Robot* msg) { - return *msg->_impl_.last_access_; +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +Robot::_Internal::last_access(const Robot* msg) { + return *msg->last_access_; } -const ::google::protobuf::Timestamp& Robot::_Internal::created_on(const Robot* msg) { - return *msg->_impl_.created_on_; +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +Robot::_Internal::created_on(const Robot* msg) { + return *msg->created_on_; } void Robot::clear_last_access() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.last_access_ != nullptr) _impl_.last_access_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && last_access_ != nullptr) { + delete last_access_; + } + last_access_ = nullptr; } void Robot::clear_created_on() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.created_on_ != nullptr) _impl_.created_on_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && created_on_ != nullptr) { + delete created_on_; + } + created_on_ = nullptr; } -Robot::Robot(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Robot::Robot(::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.Robot) } -inline PROTOBUF_NDEBUG_INLINE Robot::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - id_(arena, from.id_), - name_(arena, from.name_), - location_(arena, from.location_) {} - -Robot::Robot( - ::google::protobuf::Arena* arena, - const Robot& from) - : ::google::protobuf::Message(arena) { - Robot* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.last_access_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.last_access_) - : nullptr; - _impl_.created_on_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.created_on_) - : nullptr; - +Robot::Robot(const Robot& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } + 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()); + } + location_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + location_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_location().empty()) { + location_.Set(from._internal_location(), + GetArenaForAllocation()); + } + if (from._internal_has_last_access()) { + last_access_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from.last_access_); + } else { + last_access_ = nullptr; + } + if (from._internal_has_created_on()) { + created_on_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from.created_on_); + } else { + created_on_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.Robot) } -inline PROTOBUF_NDEBUG_INLINE Robot::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - id_(arena), - name_(arena), - location_(arena) {} - -inline void Robot::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, last_access_), - 0, - offsetof(Impl_, created_on_) - - offsetof(Impl_, last_access_) + - sizeof(Impl_::created_on_)); + +inline void Robot::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +location_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + location_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&last_access_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&created_on_) - + reinterpret_cast(&last_access_)) + sizeof(created_on_)); } + Robot::~Robot() { // @@protoc_insertion_point(destructor:viam.app.v1.Robot) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Robot::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.name_.Destroy(); - _impl_.location_.Destroy(); - delete _impl_.last_access_; - delete _impl_.created_on_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); + name_.Destroy(); + location_.Destroy(); + if (this != internal_default_instance()) delete last_access_; + if (this != internal_default_instance()) delete created_on_; } -PROTOBUF_NOINLINE void Robot::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.Robot) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.id_.ClearToEmpty(); - _impl_.name_.ClearToEmpty(); - _impl_.location_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.last_access_ != nullptr); - _impl_.last_access_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.created_on_ != nullptr); - _impl_.created_on_->Clear(); - } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void Robot::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* Robot::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void Robot::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.Robot) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + id_.ClearToEmpty(); + name_.ClearToEmpty(); + location_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && last_access_ != nullptr) { + delete last_access_; + } + last_access_ = nullptr; + if (GetArenaForAllocation() == nullptr && created_on_ != nullptr) { + delete created_on_; + } + created_on_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Robot::_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 id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.Robot.id")); + } else + goto handle_unusual; + continue; + // string name = 2 [json_name = "name", (.tagger.v1.tags) = "bson:\"name\" json:\"name\""]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.Robot.name")); + } else + goto handle_unusual; + continue; + // string location = 3 [json_name = "location", (.tagger.v1.tags) = "bson:\"location\" json:\"location\""]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_location(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.Robot.location")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp last_access = 4 [json_name = "lastAccess", (.tagger.v1.tags) = "bson:\"last_access\" json:\"last_access\""]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_last_access(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp created_on = 5 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\""]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_created_on(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 5, 2, 40, 2> Robot::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Robot, _impl_._has_bits_), - 0, // no _extensions_ - 5, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967264, // skipmap - offsetof(decltype(_table_), field_entries), - 5, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Robot_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Robot, _impl_.id_)}}, - // string name = 2 [json_name = "name", (.tagger.v1.tags) = "bson:\"name\" json:\"name\""]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(Robot, _impl_.name_)}}, - // string location = 3 [json_name = "location", (.tagger.v1.tags) = "bson:\"location\" json:\"location\""]; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(Robot, _impl_.location_)}}, - // .google.protobuf.Timestamp last_access = 4 [json_name = "lastAccess", (.tagger.v1.tags) = "bson:\"last_access\" json:\"last_access\""]; - {::_pbi::TcParser::FastMtS1, - {34, 0, 0, PROTOBUF_FIELD_OFFSET(Robot, _impl_.last_access_)}}, - // .google.protobuf.Timestamp created_on = 5 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\""]; - {::_pbi::TcParser::FastMtS1, - {42, 1, 1, PROTOBUF_FIELD_OFFSET(Robot, _impl_.created_on_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""]; - {PROTOBUF_FIELD_OFFSET(Robot, _impl_.id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string name = 2 [json_name = "name", (.tagger.v1.tags) = "bson:\"name\" json:\"name\""]; - {PROTOBUF_FIELD_OFFSET(Robot, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string location = 3 [json_name = "location", (.tagger.v1.tags) = "bson:\"location\" json:\"location\""]; - {PROTOBUF_FIELD_OFFSET(Robot, _impl_.location_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Timestamp last_access = 4 [json_name = "lastAccess", (.tagger.v1.tags) = "bson:\"last_access\" json:\"last_access\""]; - {PROTOBUF_FIELD_OFFSET(Robot, _impl_.last_access_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.protobuf.Timestamp created_on = 5 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\""]; - {PROTOBUF_FIELD_OFFSET(Robot, _impl_.created_on_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, - }}, {{ - "\21\2\4\10\0\0\0\0" - "viam.app.v1.Robot" - "id" - "name" - "location" - }}, -}; - -::uint8_t* Robot::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Robot::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.Robot) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""]; if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.Robot.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.Robot.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); } // string name = 2 [json_name = "name", (.tagger.v1.tags) = "bson:\"name\" json:\"name\""]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.Robot.name"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.Robot.name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_name(), target); } // string location = 3 [json_name = "location", (.tagger.v1.tags) = "bson:\"location\" json:\"location\""]; if (!this->_internal_location().empty()) { - const std::string& _s = this->_internal_location(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.Robot.location"); - target = stream->WriteStringMaybeAliased(3, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_location().data(), static_cast(this->_internal_location().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.Robot.location"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_location(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Timestamp last_access = 4 [json_name = "lastAccess", (.tagger.v1.tags) = "bson:\"last_access\" json:\"last_access\""]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, _Internal::last_access(this), + if (this->_internal_has_last_access()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::last_access(this), _Internal::last_access(this).GetCachedSize(), target, stream); } // .google.protobuf.Timestamp created_on = 5 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\""]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 5, _Internal::created_on(this), + if (this->_internal_has_created_on()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(5, _Internal::created_on(this), _Internal::created_on(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.Robot) return target; } -::size_t Robot::ByteSizeLong() const { +size_t Robot::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.Robot) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""]; if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } // string name = 2 [json_name = "name", (.tagger.v1.tags) = "bson:\"name\" json:\"name\""]; if (!this->_internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // string location = 3 [json_name = "location", (.tagger.v1.tags) = "bson:\"location\" json:\"location\""]; if (!this->_internal_location().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_location()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_location()); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // .google.protobuf.Timestamp last_access = 4 [json_name = "lastAccess", (.tagger.v1.tags) = "bson:\"last_access\" json:\"last_access\""]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.last_access_); - } - - // .google.protobuf.Timestamp created_on = 5 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\""]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.created_on_); - } + // .google.protobuf.Timestamp last_access = 4 [json_name = "lastAccess", (.tagger.v1.tags) = "bson:\"last_access\" json:\"last_access\""]; + if (this->_internal_has_last_access()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *last_access_); + } + // .google.protobuf.Timestamp created_on = 5 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\""]; + if (this->_internal_has_created_on()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *created_on_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Robot::_class_data_ = { - Robot::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Robot::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Robot::MergeImpl }; -const ::google::protobuf::Message::ClassData* Robot::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Robot::GetClassData() const { return &_class_data_; } + +void Robot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Robot::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.Robot) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Robot::MergeFrom(const Robot& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.Robot) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (!from._internal_location().empty()) { - _this->_internal_set_location(from._internal_location()); + _internal_set_location(from._internal_location()); } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_last_access()->::google::protobuf::Timestamp::MergeFrom( - from._internal_last_access()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_created_on()->::google::protobuf::Timestamp::MergeFrom( - from._internal_created_on()); - } + if (from._internal_has_last_access()) { + _internal_mutable_last_access()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_last_access()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_created_on()) { + _internal_mutable_created_on()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_created_on()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Robot::CopyFrom(const Robot& from) { @@ -8077,683 +6769,804 @@ void Robot::CopyFrom(const Robot& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Robot::IsInitialized() const { +bool Robot::IsInitialized() const { return true; } -::_pbi::CachedSize* Robot::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Robot::InternalSwap(Robot* PROTOBUF_RESTRICT other) { +void Robot::InternalSwap(Robot* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.location_, &other->_impl_.location_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(Robot, _impl_.created_on_) - + sizeof(Robot::_impl_.created_on_) - - PROTOBUF_FIELD_OFFSET(Robot, _impl_.last_access_)>( - reinterpret_cast(&_impl_.last_access_), - reinterpret_cast(&other->_impl_.last_access_)); -} - -::google::protobuf::Metadata Robot::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &location_, lhs_arena, + &other->location_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Robot, created_on_) + + sizeof(Robot::created_on_) + - PROTOBUF_FIELD_OFFSET(Robot, last_access_)>( + reinterpret_cast(&last_access_), + reinterpret_cast(&other->last_access_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Robot::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[0]); } + // =================================================================== class RobotPart::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(RobotPart, _impl_._has_bits_); - static const ::google::protobuf::Struct& robot_config(const RobotPart* msg); - static void set_has_robot_config(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::google::protobuf::Timestamp& last_access(const RobotPart* msg); - static void set_has_last_access(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static const ::google::protobuf::Struct& user_supplied_info(const RobotPart* msg); - static void set_has_user_supplied_info(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static const ::google::protobuf::Timestamp& created_on(const RobotPart* msg); - static void set_has_created_on(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static const ::google::protobuf::Timestamp& last_updated(const RobotPart* msg); - static void set_has_last_updated(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& robot_config(const RobotPart* msg); + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& last_access(const RobotPart* msg); + static const ::PROTOBUF_NAMESPACE_ID::Struct& user_supplied_info(const RobotPart* msg); + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& created_on(const RobotPart* msg); + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& last_updated(const RobotPart* msg); }; -const ::google::protobuf::Struct& RobotPart::_Internal::robot_config(const RobotPart* msg) { - return *msg->_impl_.robot_config_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +RobotPart::_Internal::robot_config(const RobotPart* msg) { + return *msg->robot_config_; } -const ::google::protobuf::Timestamp& RobotPart::_Internal::last_access(const RobotPart* msg) { - return *msg->_impl_.last_access_; +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +RobotPart::_Internal::last_access(const RobotPart* msg) { + return *msg->last_access_; } -const ::google::protobuf::Struct& RobotPart::_Internal::user_supplied_info(const RobotPart* msg) { - return *msg->_impl_.user_supplied_info_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +RobotPart::_Internal::user_supplied_info(const RobotPart* msg) { + return *msg->user_supplied_info_; } -const ::google::protobuf::Timestamp& RobotPart::_Internal::created_on(const RobotPart* msg) { - return *msg->_impl_.created_on_; +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +RobotPart::_Internal::created_on(const RobotPart* msg) { + return *msg->created_on_; } -const ::google::protobuf::Timestamp& RobotPart::_Internal::last_updated(const RobotPart* msg) { - return *msg->_impl_.last_updated_; +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +RobotPart::_Internal::last_updated(const RobotPart* msg) { + return *msg->last_updated_; } void RobotPart::clear_robot_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.robot_config_ != nullptr) _impl_.robot_config_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && robot_config_ != nullptr) { + delete robot_config_; + } + robot_config_ = nullptr; } void RobotPart::clear_last_access() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.last_access_ != nullptr) _impl_.last_access_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && last_access_ != nullptr) { + delete last_access_; + } + last_access_ = nullptr; } void RobotPart::clear_user_supplied_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.user_supplied_info_ != nullptr) _impl_.user_supplied_info_->Clear(); - _impl_._has_bits_[0] &= ~0x00000004u; + if (GetArenaForAllocation() == nullptr && user_supplied_info_ != nullptr) { + delete user_supplied_info_; + } + user_supplied_info_ = nullptr; } void RobotPart::clear_created_on() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.created_on_ != nullptr) _impl_.created_on_->Clear(); - _impl_._has_bits_[0] &= ~0x00000008u; + if (GetArenaForAllocation() == nullptr && created_on_ != nullptr) { + delete created_on_; + } + created_on_ = nullptr; } void RobotPart::clear_last_updated() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.last_updated_ != nullptr) _impl_.last_updated_->Clear(); - _impl_._has_bits_[0] &= ~0x00000010u; + if (GetArenaForAllocation() == nullptr && last_updated_ != nullptr) { + delete last_updated_; + } + last_updated_ = nullptr; } -RobotPart::RobotPart(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +RobotPart::RobotPart(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + secrets_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.v1.RobotPart) } -inline PROTOBUF_NDEBUG_INLINE RobotPart::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - secrets_{visibility, arena, from.secrets_}, - id_(arena, from.id_), - name_(arena, from.name_), - secret_(arena, from.secret_), - robot_(arena, from.robot_), - fqdn_(arena, from.fqdn_), - dns_name_(arena, from.dns_name_), - local_fqdn_(arena, from.local_fqdn_), - location_id_(arena, from.location_id_) {} - -RobotPart::RobotPart( - ::google::protobuf::Arena* arena, - const RobotPart& from) - : ::google::protobuf::Message(arena) { - RobotPart* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.robot_config_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.robot_config_) - : nullptr; - _impl_.last_access_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.last_access_) - : nullptr; - _impl_.user_supplied_info_ = (cached_has_bits & 0x00000004u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.user_supplied_info_) - : nullptr; - _impl_.created_on_ = (cached_has_bits & 0x00000008u) - ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.created_on_) - : nullptr; - _impl_.last_updated_ = (cached_has_bits & 0x00000010u) - ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.last_updated_) - : nullptr; - _impl_.main_part_ = from._impl_.main_part_; - +RobotPart::RobotPart(const RobotPart& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + secrets_(from.secrets_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } + 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()); + } + secret_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + secret_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_secret().empty()) { + secret_.Set(from._internal_secret(), + GetArenaForAllocation()); + } + robot_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + robot_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_robot().empty()) { + robot_.Set(from._internal_robot(), + GetArenaForAllocation()); + } + fqdn_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + fqdn_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_fqdn().empty()) { + fqdn_.Set(from._internal_fqdn(), + GetArenaForAllocation()); + } + dns_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + dns_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_dns_name().empty()) { + dns_name_.Set(from._internal_dns_name(), + GetArenaForAllocation()); + } + local_fqdn_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + local_fqdn_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_local_fqdn().empty()) { + local_fqdn_.Set(from._internal_local_fqdn(), + GetArenaForAllocation()); + } + location_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + location_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_location_id().empty()) { + location_id_.Set(from._internal_location_id(), + GetArenaForAllocation()); + } + if (from._internal_has_robot_config()) { + robot_config_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.robot_config_); + } else { + robot_config_ = nullptr; + } + if (from._internal_has_last_access()) { + last_access_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from.last_access_); + } else { + last_access_ = nullptr; + } + if (from._internal_has_user_supplied_info()) { + user_supplied_info_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.user_supplied_info_); + } else { + user_supplied_info_ = nullptr; + } + if (from._internal_has_created_on()) { + created_on_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from.created_on_); + } else { + created_on_ = nullptr; + } + if (from._internal_has_last_updated()) { + last_updated_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from.last_updated_); + } else { + last_updated_ = nullptr; + } + main_part_ = from.main_part_; // @@protoc_insertion_point(copy_constructor:viam.app.v1.RobotPart) } -inline PROTOBUF_NDEBUG_INLINE RobotPart::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - secrets_{visibility, arena}, - id_(arena), - name_(arena), - secret_(arena), - robot_(arena), - fqdn_(arena), - dns_name_(arena), - local_fqdn_(arena), - location_id_(arena) {} - -inline void RobotPart::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, robot_config_), - 0, - offsetof(Impl_, main_part_) - - offsetof(Impl_, robot_config_) + - sizeof(Impl_::main_part_)); + +inline void RobotPart::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +secret_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + secret_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +robot_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + robot_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +fqdn_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + fqdn_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +dns_name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + dns_name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +local_fqdn_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + local_fqdn_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +location_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + location_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&robot_config_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&main_part_) - + reinterpret_cast(&robot_config_)) + sizeof(main_part_)); } + RobotPart::~RobotPart() { // @@protoc_insertion_point(destructor:viam.app.v1.RobotPart) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void RobotPart::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.name_.Destroy(); - _impl_.secret_.Destroy(); - _impl_.robot_.Destroy(); - _impl_.fqdn_.Destroy(); - _impl_.dns_name_.Destroy(); - _impl_.local_fqdn_.Destroy(); - _impl_.location_id_.Destroy(); - delete _impl_.robot_config_; - delete _impl_.last_access_; - delete _impl_.user_supplied_info_; - delete _impl_.created_on_; - delete _impl_.last_updated_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void RobotPart::Clear() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); + name_.Destroy(); + secret_.Destroy(); + robot_.Destroy(); + fqdn_.Destroy(); + dns_name_.Destroy(); + local_fqdn_.Destroy(); + location_id_.Destroy(); + if (this != internal_default_instance()) delete robot_config_; + if (this != internal_default_instance()) delete last_access_; + if (this != internal_default_instance()) delete user_supplied_info_; + if (this != internal_default_instance()) delete created_on_; + if (this != internal_default_instance()) delete last_updated_; +} + +void RobotPart::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void RobotPart::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.RobotPart) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.secrets_.Clear(); - _impl_.id_.ClearToEmpty(); - _impl_.name_.ClearToEmpty(); - _impl_.secret_.ClearToEmpty(); - _impl_.robot_.ClearToEmpty(); - _impl_.fqdn_.ClearToEmpty(); - _impl_.dns_name_.ClearToEmpty(); - _impl_.local_fqdn_.ClearToEmpty(); - _impl_.location_id_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.robot_config_ != nullptr); - _impl_.robot_config_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.last_access_ != nullptr); - _impl_.last_access_->Clear(); - } - if (cached_has_bits & 0x00000004u) { - ABSL_DCHECK(_impl_.user_supplied_info_ != nullptr); - _impl_.user_supplied_info_->Clear(); - } - if (cached_has_bits & 0x00000008u) { - ABSL_DCHECK(_impl_.created_on_ != nullptr); - _impl_.created_on_->Clear(); - } - if (cached_has_bits & 0x00000010u) { - ABSL_DCHECK(_impl_.last_updated_ != nullptr); - _impl_.last_updated_->Clear(); + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + secrets_.Clear(); + id_.ClearToEmpty(); + name_.ClearToEmpty(); + secret_.ClearToEmpty(); + robot_.ClearToEmpty(); + fqdn_.ClearToEmpty(); + dns_name_.ClearToEmpty(); + local_fqdn_.ClearToEmpty(); + location_id_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && robot_config_ != nullptr) { + delete robot_config_; + } + robot_config_ = nullptr; + if (GetArenaForAllocation() == nullptr && last_access_ != nullptr) { + delete last_access_; + } + last_access_ = nullptr; + if (GetArenaForAllocation() == nullptr && user_supplied_info_ != nullptr) { + delete user_supplied_info_; + } + user_supplied_info_ = nullptr; + if (GetArenaForAllocation() == nullptr && created_on_ != nullptr) { + delete created_on_; + } + created_on_ = nullptr; + if (GetArenaForAllocation() == nullptr && last_updated_ != nullptr) { + delete last_updated_; + } + last_updated_ = nullptr; + main_part_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RobotPart::_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 id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RobotPart.id")); + } else + goto handle_unusual; + continue; + // string name = 2 [json_name = "name", (.tagger.v1.tags) = "bson:\"name\" json:\"name\""]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RobotPart.name")); + } else + goto handle_unusual; + continue; + // string secret = 3 [json_name = "secret", (.tagger.v1.tags) = "bson:\"secret\" json:\"secret,omitempty\""]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_secret(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RobotPart.secret")); + } else + goto handle_unusual; + continue; + // string robot = 4 [json_name = "robot", (.tagger.v1.tags) = "bson:\"robot\" json:\"robot\""]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_robot(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RobotPart.robot")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct robot_config = 5 [json_name = "robotConfig", (.tagger.v1.tags) = "bson:\"config\" json:\"robot_config\""]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_robot_config(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp last_access = 6 [json_name = "lastAccess", (.tagger.v1.tags) = "bson:\"last_access\" json:\"last_access\""]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr = ctx->ParseMessage(_internal_mutable_last_access(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct user_supplied_info = 7 [json_name = "userSuppliedInfo", (.tagger.v1.tags) = "bson:\"user_supplied_info\" json:\"user_supplied_info\""]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + ptr = ctx->ParseMessage(_internal_mutable_user_supplied_info(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool main_part = 8 [json_name = "mainPart", (.tagger.v1.tags) = "bson:\"main_part\" json:\"main_part\""]; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 64)) { + main_part_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string fqdn = 9 [json_name = "fqdn"]; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { + auto str = _internal_mutable_fqdn(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RobotPart.fqdn")); + } else + goto handle_unusual; + continue; + // string dns_name = 10 [json_name = "dnsName", (.tagger.v1.tags) = "bson:\"dns_name\" json:\"dns_name\""]; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { + auto str = _internal_mutable_dns_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RobotPart.dns_name")); + } else + goto handle_unusual; + continue; + // string local_fqdn = 11 [json_name = "localFqdn"]; + case 11: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 90)) { + auto str = _internal_mutable_local_fqdn(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RobotPart.local_fqdn")); + } else + goto handle_unusual; + continue; + // string location_id = 12 [json_name = "locationId", (.tagger.v1.tags) = "bson:\"location_id\" json:\"-\""]; + case 12: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 98)) { + auto str = _internal_mutable_location_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RobotPart.location_id")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp created_on = 13 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\""]; + case 13: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 106)) { + ptr = ctx->ParseMessage(_internal_mutable_created_on(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // repeated .viam.app.v1.SharedSecret secrets = 14 [json_name = "secrets", (.tagger.v1.tags) = "bson:\"secrets\""]; + case 14: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 114)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_secrets(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<114>(ptr)); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp last_updated = 15 [json_name = "lastUpdated", (.tagger.v1.tags) = "bson:\"last_updated_at\""]; + case 15: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 122)) { + ptr = ctx->ParseMessage(_internal_mutable_last_updated(), 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; } - } - _impl_.main_part_ = false; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* RobotPart::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<4, 15, 6, 88, 2> RobotPart::_table_ = { - { - PROTOBUF_FIELD_OFFSET(RobotPart, _impl_._has_bits_), - 0, // no _extensions_ - 15, 120, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294934528, // skipmap - offsetof(decltype(_table_), field_entries), - 15, // num_field_entries - 6, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_RobotPart_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(RobotPart, _impl_.id_)}}, - // string name = 2 [json_name = "name", (.tagger.v1.tags) = "bson:\"name\" json:\"name\""]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(RobotPart, _impl_.name_)}}, - // string secret = 3 [json_name = "secret", (.tagger.v1.tags) = "bson:\"secret\" json:\"secret,omitempty\""]; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(RobotPart, _impl_.secret_)}}, - // string robot = 4 [json_name = "robot", (.tagger.v1.tags) = "bson:\"robot\" json:\"robot\""]; - {::_pbi::TcParser::FastUS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(RobotPart, _impl_.robot_)}}, - // .google.protobuf.Struct robot_config = 5 [json_name = "robotConfig", (.tagger.v1.tags) = "bson:\"config\" json:\"robot_config\""]; - {::_pbi::TcParser::FastMtS1, - {42, 0, 0, PROTOBUF_FIELD_OFFSET(RobotPart, _impl_.robot_config_)}}, - // .google.protobuf.Timestamp last_access = 6 [json_name = "lastAccess", (.tagger.v1.tags) = "bson:\"last_access\" json:\"last_access\""]; - {::_pbi::TcParser::FastMtS1, - {50, 1, 1, PROTOBUF_FIELD_OFFSET(RobotPart, _impl_.last_access_)}}, - // .google.protobuf.Struct user_supplied_info = 7 [json_name = "userSuppliedInfo", (.tagger.v1.tags) = "bson:\"user_supplied_info\" json:\"user_supplied_info\""]; - {::_pbi::TcParser::FastMtS1, - {58, 2, 2, PROTOBUF_FIELD_OFFSET(RobotPart, _impl_.user_supplied_info_)}}, - // bool main_part = 8 [json_name = "mainPart", (.tagger.v1.tags) = "bson:\"main_part\" json:\"main_part\""]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {64, 63, 0, PROTOBUF_FIELD_OFFSET(RobotPart, _impl_.main_part_)}}, - // string fqdn = 9 [json_name = "fqdn"]; - {::_pbi::TcParser::FastUS1, - {74, 63, 0, PROTOBUF_FIELD_OFFSET(RobotPart, _impl_.fqdn_)}}, - // string dns_name = 10 [json_name = "dnsName", (.tagger.v1.tags) = "bson:\"dns_name\" json:\"dns_name\""]; - {::_pbi::TcParser::FastUS1, - {82, 63, 0, PROTOBUF_FIELD_OFFSET(RobotPart, _impl_.dns_name_)}}, - // string local_fqdn = 11 [json_name = "localFqdn"]; - {::_pbi::TcParser::FastUS1, - {90, 63, 0, PROTOBUF_FIELD_OFFSET(RobotPart, _impl_.local_fqdn_)}}, - // string location_id = 12 [json_name = "locationId", (.tagger.v1.tags) = "bson:\"location_id\" json:\"-\""]; - {::_pbi::TcParser::FastUS1, - {98, 63, 0, PROTOBUF_FIELD_OFFSET(RobotPart, _impl_.location_id_)}}, - // .google.protobuf.Timestamp created_on = 13 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\""]; - {::_pbi::TcParser::FastMtS1, - {106, 3, 3, PROTOBUF_FIELD_OFFSET(RobotPart, _impl_.created_on_)}}, - // repeated .viam.app.v1.SharedSecret secrets = 14 [json_name = "secrets", (.tagger.v1.tags) = "bson:\"secrets\""]; - {::_pbi::TcParser::FastMtR1, - {114, 63, 4, PROTOBUF_FIELD_OFFSET(RobotPart, _impl_.secrets_)}}, - // .google.protobuf.Timestamp last_updated = 15 [json_name = "lastUpdated", (.tagger.v1.tags) = "bson:\"last_updated_at\""]; - {::_pbi::TcParser::FastMtS1, - {122, 4, 5, PROTOBUF_FIELD_OFFSET(RobotPart, _impl_.last_updated_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""]; - {PROTOBUF_FIELD_OFFSET(RobotPart, _impl_.id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string name = 2 [json_name = "name", (.tagger.v1.tags) = "bson:\"name\" json:\"name\""]; - {PROTOBUF_FIELD_OFFSET(RobotPart, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string secret = 3 [json_name = "secret", (.tagger.v1.tags) = "bson:\"secret\" json:\"secret,omitempty\""]; - {PROTOBUF_FIELD_OFFSET(RobotPart, _impl_.secret_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string robot = 4 [json_name = "robot", (.tagger.v1.tags) = "bson:\"robot\" json:\"robot\""]; - {PROTOBUF_FIELD_OFFSET(RobotPart, _impl_.robot_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct robot_config = 5 [json_name = "robotConfig", (.tagger.v1.tags) = "bson:\"config\" json:\"robot_config\""]; - {PROTOBUF_FIELD_OFFSET(RobotPart, _impl_.robot_config_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.protobuf.Timestamp last_access = 6 [json_name = "lastAccess", (.tagger.v1.tags) = "bson:\"last_access\" json:\"last_access\""]; - {PROTOBUF_FIELD_OFFSET(RobotPart, _impl_.last_access_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.protobuf.Struct user_supplied_info = 7 [json_name = "userSuppliedInfo", (.tagger.v1.tags) = "bson:\"user_supplied_info\" json:\"user_supplied_info\""]; - {PROTOBUF_FIELD_OFFSET(RobotPart, _impl_.user_supplied_info_), _Internal::kHasBitsOffset + 2, 2, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // bool main_part = 8 [json_name = "mainPart", (.tagger.v1.tags) = "bson:\"main_part\" json:\"main_part\""]; - {PROTOBUF_FIELD_OFFSET(RobotPart, _impl_.main_part_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // string fqdn = 9 [json_name = "fqdn"]; - {PROTOBUF_FIELD_OFFSET(RobotPart, _impl_.fqdn_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string dns_name = 10 [json_name = "dnsName", (.tagger.v1.tags) = "bson:\"dns_name\" json:\"dns_name\""]; - {PROTOBUF_FIELD_OFFSET(RobotPart, _impl_.dns_name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string local_fqdn = 11 [json_name = "localFqdn"]; - {PROTOBUF_FIELD_OFFSET(RobotPart, _impl_.local_fqdn_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string location_id = 12 [json_name = "locationId", (.tagger.v1.tags) = "bson:\"location_id\" json:\"-\""]; - {PROTOBUF_FIELD_OFFSET(RobotPart, _impl_.location_id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Timestamp created_on = 13 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\""]; - {PROTOBUF_FIELD_OFFSET(RobotPart, _impl_.created_on_), _Internal::kHasBitsOffset + 3, 3, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated .viam.app.v1.SharedSecret secrets = 14 [json_name = "secrets", (.tagger.v1.tags) = "bson:\"secrets\""]; - {PROTOBUF_FIELD_OFFSET(RobotPart, _impl_.secrets_), -1, 4, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.protobuf.Timestamp last_updated = 15 [json_name = "lastUpdated", (.tagger.v1.tags) = "bson:\"last_updated_at\""]; - {PROTOBUF_FIELD_OFFSET(RobotPart, _impl_.last_updated_), _Internal::kHasBitsOffset + 4, 5, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, - {::_pbi::TcParser::GetTable<::viam::app::v1::SharedSecret>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, - }}, {{ - "\25\2\4\6\5\0\0\0\0\4\10\12\13\0\0\0" - "viam.app.v1.RobotPart" - "id" - "name" - "secret" - "robot" - "fqdn" - "dns_name" - "local_fqdn" - "location_id" - }}, -}; - -::uint8_t* RobotPart::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* RobotPart::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.RobotPart) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""]; if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.RobotPart.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RobotPart.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); } // string name = 2 [json_name = "name", (.tagger.v1.tags) = "bson:\"name\" json:\"name\""]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.RobotPart.name"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RobotPart.name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_name(), target); } // string secret = 3 [json_name = "secret", (.tagger.v1.tags) = "bson:\"secret\" json:\"secret,omitempty\""]; if (!this->_internal_secret().empty()) { - const std::string& _s = this->_internal_secret(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.RobotPart.secret"); - target = stream->WriteStringMaybeAliased(3, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_secret().data(), static_cast(this->_internal_secret().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RobotPart.secret"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_secret(), target); } // string robot = 4 [json_name = "robot", (.tagger.v1.tags) = "bson:\"robot\" json:\"robot\""]; if (!this->_internal_robot().empty()) { - const std::string& _s = this->_internal_robot(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.RobotPart.robot"); - target = stream->WriteStringMaybeAliased(4, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_robot().data(), static_cast(this->_internal_robot().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RobotPart.robot"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_robot(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct robot_config = 5 [json_name = "robotConfig", (.tagger.v1.tags) = "bson:\"config\" json:\"robot_config\""]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 5, _Internal::robot_config(this), + if (this->_internal_has_robot_config()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(5, _Internal::robot_config(this), _Internal::robot_config(this).GetCachedSize(), target, stream); } // .google.protobuf.Timestamp last_access = 6 [json_name = "lastAccess", (.tagger.v1.tags) = "bson:\"last_access\" json:\"last_access\""]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 6, _Internal::last_access(this), + if (this->_internal_has_last_access()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(6, _Internal::last_access(this), _Internal::last_access(this).GetCachedSize(), target, stream); } // .google.protobuf.Struct user_supplied_info = 7 [json_name = "userSuppliedInfo", (.tagger.v1.tags) = "bson:\"user_supplied_info\" json:\"user_supplied_info\""]; - if (cached_has_bits & 0x00000004u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 7, _Internal::user_supplied_info(this), + if (this->_internal_has_user_supplied_info()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(7, _Internal::user_supplied_info(this), _Internal::user_supplied_info(this).GetCachedSize(), target, stream); } // bool main_part = 8 [json_name = "mainPart", (.tagger.v1.tags) = "bson:\"main_part\" json:\"main_part\""]; if (this->_internal_main_part() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 8, this->_internal_main_part(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(8, this->_internal_main_part(), target); } // string fqdn = 9 [json_name = "fqdn"]; if (!this->_internal_fqdn().empty()) { - const std::string& _s = this->_internal_fqdn(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.RobotPart.fqdn"); - target = stream->WriteStringMaybeAliased(9, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_fqdn().data(), static_cast(this->_internal_fqdn().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RobotPart.fqdn"); + target = stream->WriteStringMaybeAliased( + 9, this->_internal_fqdn(), target); } // string dns_name = 10 [json_name = "dnsName", (.tagger.v1.tags) = "bson:\"dns_name\" json:\"dns_name\""]; if (!this->_internal_dns_name().empty()) { - const std::string& _s = this->_internal_dns_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.RobotPart.dns_name"); - target = stream->WriteStringMaybeAliased(10, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_dns_name().data(), static_cast(this->_internal_dns_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RobotPart.dns_name"); + target = stream->WriteStringMaybeAliased( + 10, this->_internal_dns_name(), target); } // string local_fqdn = 11 [json_name = "localFqdn"]; if (!this->_internal_local_fqdn().empty()) { - const std::string& _s = this->_internal_local_fqdn(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.RobotPart.local_fqdn"); - target = stream->WriteStringMaybeAliased(11, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_local_fqdn().data(), static_cast(this->_internal_local_fqdn().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RobotPart.local_fqdn"); + target = stream->WriteStringMaybeAliased( + 11, this->_internal_local_fqdn(), target); } // string location_id = 12 [json_name = "locationId", (.tagger.v1.tags) = "bson:\"location_id\" json:\"-\""]; if (!this->_internal_location_id().empty()) { - const std::string& _s = this->_internal_location_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.RobotPart.location_id"); - target = stream->WriteStringMaybeAliased(12, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_location_id().data(), static_cast(this->_internal_location_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RobotPart.location_id"); + target = stream->WriteStringMaybeAliased( + 12, this->_internal_location_id(), target); } // .google.protobuf.Timestamp created_on = 13 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\""]; - if (cached_has_bits & 0x00000008u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 13, _Internal::created_on(this), + if (this->_internal_has_created_on()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(13, _Internal::created_on(this), _Internal::created_on(this).GetCachedSize(), target, stream); } // repeated .viam.app.v1.SharedSecret secrets = 14 [json_name = "secrets", (.tagger.v1.tags) = "bson:\"secrets\""]; for (unsigned i = 0, n = static_cast(this->_internal_secrets_size()); i < n; i++) { - const auto& repfield = this->_internal_secrets().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_secrets(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(14, repfield, repfield.GetCachedSize(), target, stream); } // .google.protobuf.Timestamp last_updated = 15 [json_name = "lastUpdated", (.tagger.v1.tags) = "bson:\"last_updated_at\""]; - if (cached_has_bits & 0x00000010u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 15, _Internal::last_updated(this), + if (this->_internal_has_last_updated()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(15, _Internal::last_updated(this), _Internal::last_updated(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.RobotPart) return target; } -::size_t RobotPart::ByteSizeLong() const { +size_t RobotPart::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.RobotPart) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.app.v1.SharedSecret secrets = 14 [json_name = "secrets", (.tagger.v1.tags) = "bson:\"secrets\""]; total_size += 1UL * this->_internal_secrets_size(); - for (const auto& msg : this->_internal_secrets()) { + for (const auto& msg : this->secrets_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""]; if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } // string name = 2 [json_name = "name", (.tagger.v1.tags) = "bson:\"name\" json:\"name\""]; if (!this->_internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // string secret = 3 [json_name = "secret", (.tagger.v1.tags) = "bson:\"secret\" json:\"secret,omitempty\""]; if (!this->_internal_secret().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_secret()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_secret()); } // string robot = 4 [json_name = "robot", (.tagger.v1.tags) = "bson:\"robot\" json:\"robot\""]; if (!this->_internal_robot().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_robot()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_robot()); } // string fqdn = 9 [json_name = "fqdn"]; if (!this->_internal_fqdn().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_fqdn()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_fqdn()); } // string dns_name = 10 [json_name = "dnsName", (.tagger.v1.tags) = "bson:\"dns_name\" json:\"dns_name\""]; if (!this->_internal_dns_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_dns_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_dns_name()); } // string local_fqdn = 11 [json_name = "localFqdn"]; if (!this->_internal_local_fqdn().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_local_fqdn()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_local_fqdn()); } // string location_id = 12 [json_name = "locationId", (.tagger.v1.tags) = "bson:\"location_id\" json:\"-\""]; if (!this->_internal_location_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_location_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_location_id()); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { - // .google.protobuf.Struct robot_config = 5 [json_name = "robotConfig", (.tagger.v1.tags) = "bson:\"config\" json:\"robot_config\""]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.robot_config_); - } - - // .google.protobuf.Timestamp last_access = 6 [json_name = "lastAccess", (.tagger.v1.tags) = "bson:\"last_access\" json:\"last_access\""]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.last_access_); - } + // .google.protobuf.Struct robot_config = 5 [json_name = "robotConfig", (.tagger.v1.tags) = "bson:\"config\" json:\"robot_config\""]; + if (this->_internal_has_robot_config()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *robot_config_); + } - // .google.protobuf.Struct user_supplied_info = 7 [json_name = "userSuppliedInfo", (.tagger.v1.tags) = "bson:\"user_supplied_info\" json:\"user_supplied_info\""]; - if (cached_has_bits & 0x00000004u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.user_supplied_info_); - } + // .google.protobuf.Timestamp last_access = 6 [json_name = "lastAccess", (.tagger.v1.tags) = "bson:\"last_access\" json:\"last_access\""]; + if (this->_internal_has_last_access()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *last_access_); + } - // .google.protobuf.Timestamp created_on = 13 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\""]; - if (cached_has_bits & 0x00000008u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.created_on_); - } + // .google.protobuf.Struct user_supplied_info = 7 [json_name = "userSuppliedInfo", (.tagger.v1.tags) = "bson:\"user_supplied_info\" json:\"user_supplied_info\""]; + if (this->_internal_has_user_supplied_info()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *user_supplied_info_); + } - // .google.protobuf.Timestamp last_updated = 15 [json_name = "lastUpdated", (.tagger.v1.tags) = "bson:\"last_updated_at\""]; - if (cached_has_bits & 0x00000010u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.last_updated_); - } + // .google.protobuf.Timestamp created_on = 13 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\""]; + if (this->_internal_has_created_on()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *created_on_); + } + // .google.protobuf.Timestamp last_updated = 15 [json_name = "lastUpdated", (.tagger.v1.tags) = "bson:\"last_updated_at\""]; + if (this->_internal_has_last_updated()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *last_updated_); } + // bool main_part = 8 [json_name = "mainPart", (.tagger.v1.tags) = "bson:\"main_part\" json:\"main_part\""]; if (this->_internal_main_part() != 0) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData RobotPart::_class_data_ = { - RobotPart::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RobotPart::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + RobotPart::MergeImpl }; -const ::google::protobuf::Message::ClassData* RobotPart::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RobotPart::GetClassData() const { return &_class_data_; } + +void RobotPart::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void RobotPart::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.RobotPart) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void RobotPart::MergeFrom(const RobotPart& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.RobotPart) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_secrets()->MergeFrom( - from._internal_secrets()); + secrets_.MergeFrom(from.secrets_); if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (!from._internal_secret().empty()) { - _this->_internal_set_secret(from._internal_secret()); + _internal_set_secret(from._internal_secret()); } if (!from._internal_robot().empty()) { - _this->_internal_set_robot(from._internal_robot()); + _internal_set_robot(from._internal_robot()); } if (!from._internal_fqdn().empty()) { - _this->_internal_set_fqdn(from._internal_fqdn()); + _internal_set_fqdn(from._internal_fqdn()); } if (!from._internal_dns_name().empty()) { - _this->_internal_set_dns_name(from._internal_dns_name()); + _internal_set_dns_name(from._internal_dns_name()); } if (!from._internal_local_fqdn().empty()) { - _this->_internal_set_local_fqdn(from._internal_local_fqdn()); + _internal_set_local_fqdn(from._internal_local_fqdn()); } if (!from._internal_location_id().empty()) { - _this->_internal_set_location_id(from._internal_location_id()); + _internal_set_location_id(from._internal_location_id()); } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_robot_config()->::google::protobuf::Struct::MergeFrom( - from._internal_robot_config()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_last_access()->::google::protobuf::Timestamp::MergeFrom( - from._internal_last_access()); - } - if (cached_has_bits & 0x00000004u) { - _this->_internal_mutable_user_supplied_info()->::google::protobuf::Struct::MergeFrom( - from._internal_user_supplied_info()); - } - if (cached_has_bits & 0x00000008u) { - _this->_internal_mutable_created_on()->::google::protobuf::Timestamp::MergeFrom( - from._internal_created_on()); - } - if (cached_has_bits & 0x00000010u) { - _this->_internal_mutable_last_updated()->::google::protobuf::Timestamp::MergeFrom( - from._internal_last_updated()); - } + if (from._internal_has_robot_config()) { + _internal_mutable_robot_config()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_robot_config()); + } + if (from._internal_has_last_access()) { + _internal_mutable_last_access()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_last_access()); + } + if (from._internal_has_user_supplied_info()) { + _internal_mutable_user_supplied_info()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_user_supplied_info()); + } + if (from._internal_has_created_on()) { + _internal_mutable_created_on()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_created_on()); + } + if (from._internal_has_last_updated()) { + _internal_mutable_last_updated()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_last_updated()); } if (from._internal_main_part() != 0) { - _this->_internal_set_main_part(from._internal_main_part()); + _internal_set_main_part(from._internal_main_part()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void RobotPart::CopyFrom(const RobotPart& from) { @@ -8763,376 +7576,401 @@ void RobotPart::CopyFrom(const RobotPart& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool RobotPart::IsInitialized() const { +bool RobotPart::IsInitialized() const { return true; } -::_pbi::CachedSize* RobotPart::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void RobotPart::InternalSwap(RobotPart* PROTOBUF_RESTRICT other) { +void RobotPart::InternalSwap(RobotPart* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.secrets_.InternalSwap(&other->_impl_.secrets_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.secret_, &other->_impl_.secret_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.robot_, &other->_impl_.robot_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.fqdn_, &other->_impl_.fqdn_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.dns_name_, &other->_impl_.dns_name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.local_fqdn_, &other->_impl_.local_fqdn_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.location_id_, &other->_impl_.location_id_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(RobotPart, _impl_.main_part_) - + sizeof(RobotPart::_impl_.main_part_) - - PROTOBUF_FIELD_OFFSET(RobotPart, _impl_.robot_config_)>( - reinterpret_cast(&_impl_.robot_config_), - reinterpret_cast(&other->_impl_.robot_config_)); -} - -::google::protobuf::Metadata RobotPart::GetMetadata() const { + secrets_.InternalSwap(&other->secrets_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &secret_, lhs_arena, + &other->secret_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &robot_, lhs_arena, + &other->robot_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &fqdn_, lhs_arena, + &other->fqdn_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &dns_name_, lhs_arena, + &other->dns_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &local_fqdn_, lhs_arena, + &other->local_fqdn_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &location_id_, lhs_arena, + &other->location_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(RobotPart, main_part_) + + sizeof(RobotPart::main_part_) + - PROTOBUF_FIELD_OFFSET(RobotPart, robot_config_)>( + reinterpret_cast(&robot_config_), + reinterpret_cast(&other->robot_config_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata RobotPart::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[1]); } + // =================================================================== class RobotPartHistoryEntry::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(RobotPartHistoryEntry, _impl_._has_bits_); - static const ::google::protobuf::Timestamp& when(const RobotPartHistoryEntry* msg); - static void set_has_when(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& when(const RobotPartHistoryEntry* msg); static const ::viam::app::v1::RobotPart& old(const RobotPartHistoryEntry* msg); - static void set_has_old(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } static const ::viam::app::v1::AuthenticatorInfo& edited_by(const RobotPartHistoryEntry* msg); - static void set_has_edited_by(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } }; -const ::google::protobuf::Timestamp& RobotPartHistoryEntry::_Internal::when(const RobotPartHistoryEntry* msg) { - return *msg->_impl_.when_; +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +RobotPartHistoryEntry::_Internal::when(const RobotPartHistoryEntry* msg) { + return *msg->when_; } -const ::viam::app::v1::RobotPart& RobotPartHistoryEntry::_Internal::old(const RobotPartHistoryEntry* msg) { - return *msg->_impl_.old_; +const ::viam::app::v1::RobotPart& +RobotPartHistoryEntry::_Internal::old(const RobotPartHistoryEntry* msg) { + return *msg->old_; } -const ::viam::app::v1::AuthenticatorInfo& RobotPartHistoryEntry::_Internal::edited_by(const RobotPartHistoryEntry* msg) { - return *msg->_impl_.edited_by_; +const ::viam::app::v1::AuthenticatorInfo& +RobotPartHistoryEntry::_Internal::edited_by(const RobotPartHistoryEntry* msg) { + return *msg->edited_by_; } void RobotPartHistoryEntry::clear_when() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.when_ != nullptr) _impl_.when_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && when_ != nullptr) { + delete when_; + } + when_ = nullptr; } -RobotPartHistoryEntry::RobotPartHistoryEntry(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +RobotPartHistoryEntry::RobotPartHistoryEntry(::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.RobotPartHistoryEntry) } -inline PROTOBUF_NDEBUG_INLINE RobotPartHistoryEntry::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - part_(arena, from.part_), - robot_(arena, from.robot_) {} - -RobotPartHistoryEntry::RobotPartHistoryEntry( - ::google::protobuf::Arena* arena, - const RobotPartHistoryEntry& from) - : ::google::protobuf::Message(arena) { - RobotPartHistoryEntry* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.when_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.when_) - : nullptr; - _impl_.old_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::viam::app::v1::RobotPart>(arena, *from._impl_.old_) - : nullptr; - _impl_.edited_by_ = (cached_has_bits & 0x00000004u) - ? CreateMaybeMessage<::viam::app::v1::AuthenticatorInfo>(arena, *from._impl_.edited_by_) - : nullptr; - +RobotPartHistoryEntry::RobotPartHistoryEntry(const RobotPartHistoryEntry& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + part_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + part_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_part().empty()) { + part_.Set(from._internal_part(), + GetArenaForAllocation()); + } + robot_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + robot_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_robot().empty()) { + robot_.Set(from._internal_robot(), + GetArenaForAllocation()); + } + if (from._internal_has_when()) { + when_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from.when_); + } else { + when_ = nullptr; + } + if (from._internal_has_old()) { + old_ = new ::viam::app::v1::RobotPart(*from.old_); + } else { + old_ = nullptr; + } + if (from._internal_has_edited_by()) { + edited_by_ = new ::viam::app::v1::AuthenticatorInfo(*from.edited_by_); + } else { + edited_by_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.RobotPartHistoryEntry) } -inline PROTOBUF_NDEBUG_INLINE RobotPartHistoryEntry::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - part_(arena), - robot_(arena) {} - -inline void RobotPartHistoryEntry::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, when_), - 0, - offsetof(Impl_, edited_by_) - - offsetof(Impl_, when_) + - sizeof(Impl_::edited_by_)); + +inline void RobotPartHistoryEntry::SharedCtor() { +part_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + part_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +robot_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + robot_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&when_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&edited_by_) - + reinterpret_cast(&when_)) + sizeof(edited_by_)); } + RobotPartHistoryEntry::~RobotPartHistoryEntry() { // @@protoc_insertion_point(destructor:viam.app.v1.RobotPartHistoryEntry) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void RobotPartHistoryEntry::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.part_.Destroy(); - _impl_.robot_.Destroy(); - delete _impl_.when_; - delete _impl_.old_; - delete _impl_.edited_by_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + part_.Destroy(); + robot_.Destroy(); + if (this != internal_default_instance()) delete when_; + if (this != internal_default_instance()) delete old_; + if (this != internal_default_instance()) delete edited_by_; } -PROTOBUF_NOINLINE void RobotPartHistoryEntry::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.RobotPartHistoryEntry) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.part_.ClearToEmpty(); - _impl_.robot_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.when_ != nullptr); - _impl_.when_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.old_ != nullptr); - _impl_.old_->Clear(); - } - if (cached_has_bits & 0x00000004u) { - ABSL_DCHECK(_impl_.edited_by_ != nullptr); - _impl_.edited_by_->Clear(); - } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void RobotPartHistoryEntry::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* RobotPartHistoryEntry::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void RobotPartHistoryEntry::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.RobotPartHistoryEntry) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + part_.ClearToEmpty(); + robot_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && when_ != nullptr) { + delete when_; + } + when_ = nullptr; + if (GetArenaForAllocation() == nullptr && old_ != nullptr) { + delete old_; + } + old_ = nullptr; + if (GetArenaForAllocation() == nullptr && edited_by_ != nullptr) { + delete edited_by_; + } + edited_by_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RobotPartHistoryEntry::_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 part = 1 [json_name = "part", (.tagger.v1.tags) = "bson:\"part\" json:\"part\""]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_part(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RobotPartHistoryEntry.part")); + } else + goto handle_unusual; + continue; + // string robot = 2 [json_name = "robot", (.tagger.v1.tags) = "bson:\"robot\" json:\"robot\""]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_robot(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RobotPartHistoryEntry.robot")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp when = 3 [json_name = "when", (.tagger.v1.tags) = "bson:\"when\" json:\"when\""]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_when(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.app.v1.RobotPart old = 4 [json_name = "old", (.tagger.v1.tags) = "bson:\"old\" json:\"old\""]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_old(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.app.v1.AuthenticatorInfo edited_by = 5 [json_name = "editedBy", (.tagger.v1.tags) = "bson:\"edited_by\" json:\"edited_by\""]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_edited_by(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 5, 3, 51, 2> RobotPartHistoryEntry::_table_ = { - { - PROTOBUF_FIELD_OFFSET(RobotPartHistoryEntry, _impl_._has_bits_), - 0, // no _extensions_ - 5, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967264, // skipmap - offsetof(decltype(_table_), field_entries), - 5, // num_field_entries - 3, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_RobotPartHistoryEntry_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string part = 1 [json_name = "part", (.tagger.v1.tags) = "bson:\"part\" json:\"part\""]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(RobotPartHistoryEntry, _impl_.part_)}}, - // string robot = 2 [json_name = "robot", (.tagger.v1.tags) = "bson:\"robot\" json:\"robot\""]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(RobotPartHistoryEntry, _impl_.robot_)}}, - // .google.protobuf.Timestamp when = 3 [json_name = "when", (.tagger.v1.tags) = "bson:\"when\" json:\"when\""]; - {::_pbi::TcParser::FastMtS1, - {26, 0, 0, PROTOBUF_FIELD_OFFSET(RobotPartHistoryEntry, _impl_.when_)}}, - // .viam.app.v1.RobotPart old = 4 [json_name = "old", (.tagger.v1.tags) = "bson:\"old\" json:\"old\""]; - {::_pbi::TcParser::FastMtS1, - {34, 1, 1, PROTOBUF_FIELD_OFFSET(RobotPartHistoryEntry, _impl_.old_)}}, - // .viam.app.v1.AuthenticatorInfo edited_by = 5 [json_name = "editedBy", (.tagger.v1.tags) = "bson:\"edited_by\" json:\"edited_by\""]; - {::_pbi::TcParser::FastMtS1, - {42, 2, 2, PROTOBUF_FIELD_OFFSET(RobotPartHistoryEntry, _impl_.edited_by_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string part = 1 [json_name = "part", (.tagger.v1.tags) = "bson:\"part\" json:\"part\""]; - {PROTOBUF_FIELD_OFFSET(RobotPartHistoryEntry, _impl_.part_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string robot = 2 [json_name = "robot", (.tagger.v1.tags) = "bson:\"robot\" json:\"robot\""]; - {PROTOBUF_FIELD_OFFSET(RobotPartHistoryEntry, _impl_.robot_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Timestamp when = 3 [json_name = "when", (.tagger.v1.tags) = "bson:\"when\" json:\"when\""]; - {PROTOBUF_FIELD_OFFSET(RobotPartHistoryEntry, _impl_.when_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .viam.app.v1.RobotPart old = 4 [json_name = "old", (.tagger.v1.tags) = "bson:\"old\" json:\"old\""]; - {PROTOBUF_FIELD_OFFSET(RobotPartHistoryEntry, _impl_.old_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .viam.app.v1.AuthenticatorInfo edited_by = 5 [json_name = "editedBy", (.tagger.v1.tags) = "bson:\"edited_by\" json:\"edited_by\""]; - {PROTOBUF_FIELD_OFFSET(RobotPartHistoryEntry, _impl_.edited_by_), _Internal::kHasBitsOffset + 2, 2, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, - {::_pbi::TcParser::GetTable<::viam::app::v1::RobotPart>()}, - {::_pbi::TcParser::GetTable<::viam::app::v1::AuthenticatorInfo>()}, - }}, {{ - "\41\4\5\0\0\0\0\0" - "viam.app.v1.RobotPartHistoryEntry" - "part" - "robot" - }}, -}; - -::uint8_t* RobotPartHistoryEntry::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* RobotPartHistoryEntry::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.RobotPartHistoryEntry) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string part = 1 [json_name = "part", (.tagger.v1.tags) = "bson:\"part\" json:\"part\""]; if (!this->_internal_part().empty()) { - const std::string& _s = this->_internal_part(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.RobotPartHistoryEntry.part"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_part().data(), static_cast(this->_internal_part().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RobotPartHistoryEntry.part"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_part(), target); } // string robot = 2 [json_name = "robot", (.tagger.v1.tags) = "bson:\"robot\" json:\"robot\""]; if (!this->_internal_robot().empty()) { - const std::string& _s = this->_internal_robot(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.RobotPartHistoryEntry.robot"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_robot().data(), static_cast(this->_internal_robot().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RobotPartHistoryEntry.robot"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_robot(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Timestamp when = 3 [json_name = "when", (.tagger.v1.tags) = "bson:\"when\" json:\"when\""]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::when(this), + if (this->_internal_has_when()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::when(this), _Internal::when(this).GetCachedSize(), target, stream); } // .viam.app.v1.RobotPart old = 4 [json_name = "old", (.tagger.v1.tags) = "bson:\"old\" json:\"old\""]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, _Internal::old(this), + if (this->_internal_has_old()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::old(this), _Internal::old(this).GetCachedSize(), target, stream); } // .viam.app.v1.AuthenticatorInfo edited_by = 5 [json_name = "editedBy", (.tagger.v1.tags) = "bson:\"edited_by\" json:\"edited_by\""]; - if (cached_has_bits & 0x00000004u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 5, _Internal::edited_by(this), + if (this->_internal_has_edited_by()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(5, _Internal::edited_by(this), _Internal::edited_by(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.RobotPartHistoryEntry) return target; } -::size_t RobotPartHistoryEntry::ByteSizeLong() const { +size_t RobotPartHistoryEntry::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.RobotPartHistoryEntry) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string part = 1 [json_name = "part", (.tagger.v1.tags) = "bson:\"part\" json:\"part\""]; if (!this->_internal_part().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_part()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_part()); } // string robot = 2 [json_name = "robot", (.tagger.v1.tags) = "bson:\"robot\" json:\"robot\""]; if (!this->_internal_robot().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_robot()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_robot()); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - // .google.protobuf.Timestamp when = 3 [json_name = "when", (.tagger.v1.tags) = "bson:\"when\" json:\"when\""]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.when_); - } - - // .viam.app.v1.RobotPart old = 4 [json_name = "old", (.tagger.v1.tags) = "bson:\"old\" json:\"old\""]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.old_); - } + // .google.protobuf.Timestamp when = 3 [json_name = "when", (.tagger.v1.tags) = "bson:\"when\" json:\"when\""]; + if (this->_internal_has_when()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *when_); + } - // .viam.app.v1.AuthenticatorInfo edited_by = 5 [json_name = "editedBy", (.tagger.v1.tags) = "bson:\"edited_by\" json:\"edited_by\""]; - if (cached_has_bits & 0x00000004u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.edited_by_); - } + // .viam.app.v1.RobotPart old = 4 [json_name = "old", (.tagger.v1.tags) = "bson:\"old\" json:\"old\""]; + if (this->_internal_has_old()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *old_); + } + // .viam.app.v1.AuthenticatorInfo edited_by = 5 [json_name = "editedBy", (.tagger.v1.tags) = "bson:\"edited_by\" json:\"edited_by\""]; + if (this->_internal_has_edited_by()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *edited_by_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData RobotPartHistoryEntry::_class_data_ = { - RobotPartHistoryEntry::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RobotPartHistoryEntry::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + RobotPartHistoryEntry::MergeImpl }; -const ::google::protobuf::Message::ClassData* RobotPartHistoryEntry::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RobotPartHistoryEntry::GetClassData() const { return &_class_data_; } + +void RobotPartHistoryEntry::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void RobotPartHistoryEntry::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.RobotPartHistoryEntry) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void RobotPartHistoryEntry::MergeFrom(const RobotPartHistoryEntry& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.RobotPartHistoryEntry) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_part().empty()) { - _this->_internal_set_part(from._internal_part()); + _internal_set_part(from._internal_part()); } if (!from._internal_robot().empty()) { - _this->_internal_set_robot(from._internal_robot()); + _internal_set_robot(from._internal_robot()); } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_when()->::google::protobuf::Timestamp::MergeFrom( - from._internal_when()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_old()->::viam::app::v1::RobotPart::MergeFrom( - from._internal_old()); - } - if (cached_has_bits & 0x00000004u) { - _this->_internal_mutable_edited_by()->::viam::app::v1::AuthenticatorInfo::MergeFrom( - from._internal_edited_by()); - } + if (from._internal_has_when()) { + _internal_mutable_when()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_when()); + } + if (from._internal_has_old()) { + _internal_mutable_old()->::viam::app::v1::RobotPart::MergeFrom(from._internal_old()); + } + if (from._internal_has_edited_by()) { + _internal_mutable_edited_by()->::viam::app::v1::AuthenticatorInfo::MergeFrom(from._internal_edited_by()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void RobotPartHistoryEntry::CopyFrom(const RobotPartHistoryEntry& from) { @@ -9142,255 +7980,259 @@ void RobotPartHistoryEntry::CopyFrom(const RobotPartHistoryEntry& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool RobotPartHistoryEntry::IsInitialized() const { +bool RobotPartHistoryEntry::IsInitialized() const { return true; } -::_pbi::CachedSize* RobotPartHistoryEntry::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void RobotPartHistoryEntry::InternalSwap(RobotPartHistoryEntry* PROTOBUF_RESTRICT other) { +void RobotPartHistoryEntry::InternalSwap(RobotPartHistoryEntry* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.part_, &other->_impl_.part_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.robot_, &other->_impl_.robot_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(RobotPartHistoryEntry, _impl_.edited_by_) - + sizeof(RobotPartHistoryEntry::_impl_.edited_by_) - - PROTOBUF_FIELD_OFFSET(RobotPartHistoryEntry, _impl_.when_)>( - reinterpret_cast(&_impl_.when_), - reinterpret_cast(&other->_impl_.when_)); -} - -::google::protobuf::Metadata RobotPartHistoryEntry::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &part_, lhs_arena, + &other->part_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &robot_, lhs_arena, + &other->robot_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(RobotPartHistoryEntry, edited_by_) + + sizeof(RobotPartHistoryEntry::edited_by_) + - PROTOBUF_FIELD_OFFSET(RobotPartHistoryEntry, when_)>( + reinterpret_cast(&when_), + reinterpret_cast(&other->when_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata RobotPartHistoryEntry::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[2]); } + // =================================================================== class AuthenticatorInfo::_Internal { public: }; -AuthenticatorInfo::AuthenticatorInfo(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +AuthenticatorInfo::AuthenticatorInfo(::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.AuthenticatorInfo) } -inline PROTOBUF_NDEBUG_INLINE AuthenticatorInfo::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : value_(arena, from.value_), - _cached_size_{0} {} - -AuthenticatorInfo::AuthenticatorInfo( - ::google::protobuf::Arena* arena, - const AuthenticatorInfo& from) - : ::google::protobuf::Message(arena) { - AuthenticatorInfo* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, type_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, type_), - offsetof(Impl_, is_deactivated_) - - offsetof(Impl_, type_) + - sizeof(Impl_::is_deactivated_)); - +AuthenticatorInfo::AuthenticatorInfo(const AuthenticatorInfo& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + value_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + value_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_value().empty()) { + value_.Set(from._internal_value(), + GetArenaForAllocation()); + } + ::memcpy(&type_, &from.type_, + static_cast(reinterpret_cast(&is_deactivated_) - + reinterpret_cast(&type_)) + sizeof(is_deactivated_)); // @@protoc_insertion_point(copy_constructor:viam.app.v1.AuthenticatorInfo) } -inline PROTOBUF_NDEBUG_INLINE AuthenticatorInfo::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : value_(arena), - _cached_size_{0} {} - -inline void AuthenticatorInfo::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, type_), - 0, - offsetof(Impl_, is_deactivated_) - - offsetof(Impl_, type_) + - sizeof(Impl_::is_deactivated_)); + +inline void AuthenticatorInfo::SharedCtor() { +value_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + value_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&type_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&is_deactivated_) - + reinterpret_cast(&type_)) + sizeof(is_deactivated_)); } + AuthenticatorInfo::~AuthenticatorInfo() { // @@protoc_insertion_point(destructor:viam.app.v1.AuthenticatorInfo) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void AuthenticatorInfo::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.value_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + value_.Destroy(); } -PROTOBUF_NOINLINE void AuthenticatorInfo::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.AuthenticatorInfo) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.value_.ClearToEmpty(); - ::memset(&_impl_.type_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.is_deactivated_) - - reinterpret_cast(&_impl_.type_)) + sizeof(_impl_.is_deactivated_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void AuthenticatorInfo::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* AuthenticatorInfo::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void AuthenticatorInfo::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.AuthenticatorInfo) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + value_.ClearToEmpty(); + ::memset(&type_, 0, static_cast( + reinterpret_cast(&is_deactivated_) - + reinterpret_cast(&type_)) + sizeof(is_deactivated_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* AuthenticatorInfo::_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.app.v1.AuthenticationType type = 1 [json_name = "type"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_type(static_cast<::viam::app::v1::AuthenticationType>(val)); + } else + goto handle_unusual; + continue; + // string value = 2 [json_name = "value"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_value(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.AuthenticatorInfo.value")); + } else + goto handle_unusual; + continue; + // bool is_deactivated = 3 [json_name = "isDeactivated"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + is_deactivated_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 43, 2> AuthenticatorInfo::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_AuthenticatorInfo_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // .viam.app.v1.AuthenticationType type = 1 [json_name = "type"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(AuthenticatorInfo, _impl_.type_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(AuthenticatorInfo, _impl_.type_)}}, - // string value = 2 [json_name = "value"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(AuthenticatorInfo, _impl_.value_)}}, - // bool is_deactivated = 3 [json_name = "isDeactivated"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(AuthenticatorInfo, _impl_.is_deactivated_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.app.v1.AuthenticationType type = 1 [json_name = "type"]; - {PROTOBUF_FIELD_OFFSET(AuthenticatorInfo, _impl_.type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // string value = 2 [json_name = "value"]; - {PROTOBUF_FIELD_OFFSET(AuthenticatorInfo, _impl_.value_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // bool is_deactivated = 3 [json_name = "isDeactivated"]; - {PROTOBUF_FIELD_OFFSET(AuthenticatorInfo, _impl_.is_deactivated_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, - // no aux_entries - {{ - "\35\0\5\0\0\0\0\0" - "viam.app.v1.AuthenticatorInfo" - "value" - }}, -}; - -::uint8_t* AuthenticatorInfo::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* AuthenticatorInfo::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.AuthenticatorInfo) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // .viam.app.v1.AuthenticationType type = 1 [json_name = "type"]; if (this->_internal_type() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_type(), target); + 1, this->_internal_type(), target); } // string value = 2 [json_name = "value"]; if (!this->_internal_value().empty()) { - const std::string& _s = this->_internal_value(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.AuthenticatorInfo.value"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_value().data(), static_cast(this->_internal_value().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.AuthenticatorInfo.value"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_value(), target); } // bool is_deactivated = 3 [json_name = "isDeactivated"]; if (this->_internal_is_deactivated() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 3, this->_internal_is_deactivated(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_is_deactivated(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.AuthenticatorInfo) return target; } -::size_t AuthenticatorInfo::ByteSizeLong() const { +size_t AuthenticatorInfo::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.AuthenticatorInfo) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string value = 2 [json_name = "value"]; if (!this->_internal_value().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_value()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_value()); } // .viam.app.v1.AuthenticationType type = 1 [json_name = "type"]; if (this->_internal_type() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_type()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_type()); } // bool is_deactivated = 3 [json_name = "isDeactivated"]; if (this->_internal_is_deactivated() != 0) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData AuthenticatorInfo::_class_data_ = { - AuthenticatorInfo::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AuthenticatorInfo::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + AuthenticatorInfo::MergeImpl }; -const ::google::protobuf::Message::ClassData* AuthenticatorInfo::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AuthenticatorInfo::GetClassData() const { return &_class_data_; } + +void AuthenticatorInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void AuthenticatorInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.AuthenticatorInfo) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void AuthenticatorInfo::MergeFrom(const AuthenticatorInfo& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.AuthenticatorInfo) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_value().empty()) { - _this->_internal_set_value(from._internal_value()); + _internal_set_value(from._internal_value()); } if (from._internal_type() != 0) { - _this->_internal_set_type(from._internal_type()); + _internal_set_type(from._internal_type()); } if (from._internal_is_deactivated() != 0) { - _this->_internal_set_is_deactivated(from._internal_is_deactivated()); + _internal_set_is_deactivated(from._internal_is_deactivated()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void AuthenticatorInfo::CopyFrom(const AuthenticatorInfo& from) { @@ -9400,51 +8242,47 @@ void AuthenticatorInfo::CopyFrom(const AuthenticatorInfo& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool AuthenticatorInfo::IsInitialized() const { +bool AuthenticatorInfo::IsInitialized() const { return true; } -::_pbi::CachedSize* AuthenticatorInfo::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void AuthenticatorInfo::InternalSwap(AuthenticatorInfo* PROTOBUF_RESTRICT other) { +void AuthenticatorInfo::InternalSwap(AuthenticatorInfo* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.value_, &other->_impl_.value_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(AuthenticatorInfo, _impl_.is_deactivated_) - + sizeof(AuthenticatorInfo::_impl_.is_deactivated_) - - PROTOBUF_FIELD_OFFSET(AuthenticatorInfo, _impl_.type_)>( - reinterpret_cast(&_impl_.type_), - reinterpret_cast(&other->_impl_.type_)); -} - -::google::protobuf::Metadata AuthenticatorInfo::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &value_, lhs_arena, + &other->value_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(AuthenticatorInfo, is_deactivated_) + + sizeof(AuthenticatorInfo::is_deactivated_) + - PROTOBUF_FIELD_OFFSET(AuthenticatorInfo, type_)>( + reinterpret_cast(&type_), + reinterpret_cast(&other->type_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata AuthenticatorInfo::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[3]); } + // =================================================================== class ListOrganizationsRequest::_Internal { public: }; -ListOrganizationsRequest::ListOrganizationsRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +ListOrganizationsRequest::ListOrganizationsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.app.v1.ListOrganizationsRequest) } -ListOrganizationsRequest::ListOrganizationsRequest( - ::google::protobuf::Arena* arena, - const ListOrganizationsRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - ListOrganizationsRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +ListOrganizationsRequest::ListOrganizationsRequest(const ListOrganizationsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.app.v1.ListOrganizationsRequest) } @@ -9452,355 +8290,424 @@ ListOrganizationsRequest::ListOrganizationsRequest( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListOrganizationsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListOrganizationsRequest::GetClassData() const { return &_class_data_; } + + + -::google::protobuf::Metadata ListOrganizationsRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ListOrganizationsRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[4]); } + // =================================================================== class Organization::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Organization, _impl_._has_bits_); - static const ::google::protobuf::Timestamp& created_on(const Organization* msg); - static void set_has_created_on(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = decltype(std::declval()._has_bits_); + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& created_on(const Organization* msg); static void set_has_cid(HasBits* has_bits) { (*has_bits)[0] |= 1u; } }; -const ::google::protobuf::Timestamp& Organization::_Internal::created_on(const Organization* msg) { - return *msg->_impl_.created_on_; +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +Organization::_Internal::created_on(const Organization* msg) { + return *msg->created_on_; } void Organization::clear_created_on() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.created_on_ != nullptr) _impl_.created_on_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && created_on_ != nullptr) { + delete created_on_; + } + created_on_ = nullptr; } -Organization::Organization(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Organization::Organization(::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.Organization) } -inline PROTOBUF_NDEBUG_INLINE Organization::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - id_(arena, from.id_), - name_(arena, from.name_), - public_namespace_(arena, from.public_namespace_), - default_region_(arena, from.default_region_), - cid_(arena, from.cid_) {} - -Organization::Organization( - ::google::protobuf::Arena* arena, - const Organization& from) - : ::google::protobuf::Message(arena) { - Organization* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.created_on_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.created_on_) - : nullptr; - +Organization::Organization(const Organization& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } + 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()); + } + public_namespace_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + public_namespace_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_public_namespace().empty()) { + public_namespace_.Set(from._internal_public_namespace(), + GetArenaForAllocation()); + } + default_region_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + default_region_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_default_region().empty()) { + default_region_.Set(from._internal_default_region(), + GetArenaForAllocation()); + } + cid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + cid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (from._internal_has_cid()) { + cid_.Set(from._internal_cid(), + GetArenaForAllocation()); + } + if (from._internal_has_created_on()) { + created_on_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from.created_on_); + } else { + created_on_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.Organization) } -inline PROTOBUF_NDEBUG_INLINE Organization::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - id_(arena), - name_(arena), - public_namespace_(arena), - default_region_(arena), - cid_(arena) {} -inline void Organization::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.created_on_ = {}; +inline void Organization::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +public_namespace_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + public_namespace_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +default_region_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + default_region_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +cid_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + cid_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +created_on_ = nullptr; } + Organization::~Organization() { // @@protoc_insertion_point(destructor:viam.app.v1.Organization) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Organization::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.name_.Destroy(); - _impl_.public_namespace_.Destroy(); - _impl_.default_region_.Destroy(); - _impl_.cid_.Destroy(); - delete _impl_.created_on_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); + name_.Destroy(); + public_namespace_.Destroy(); + default_region_.Destroy(); + cid_.Destroy(); + if (this != internal_default_instance()) delete created_on_; +} + +void Organization::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void Organization::Clear() { +void Organization::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.Organization) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.id_.ClearToEmpty(); - _impl_.name_.ClearToEmpty(); - _impl_.public_namespace_.ClearToEmpty(); - _impl_.default_region_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _impl_.cid_.ClearNonDefaultToEmpty(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.created_on_ != nullptr); - _impl_.created_on_->Clear(); + id_.ClearToEmpty(); + name_.ClearToEmpty(); + public_namespace_.ClearToEmpty(); + default_region_.ClearToEmpty(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + cid_.ClearNonDefaultToEmpty(); + } + if (GetArenaForAllocation() == nullptr && created_on_ != nullptr) { + delete created_on_; + } + created_on_ = nullptr; + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Organization::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.Organization.id")); + } else + goto handle_unusual; + continue; + // string name = 2 [json_name = "name"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.Organization.name")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_created_on(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string public_namespace = 4 [json_name = "publicNamespace"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_public_namespace(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.Organization.public_namespace")); + } else + goto handle_unusual; + continue; + // string default_region = 5 [json_name = "defaultRegion"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + auto str = _internal_mutable_default_region(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.Organization.default_region")); + } else + goto handle_unusual; + continue; + // optional string cid = 6 [json_name = "cid"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + auto str = _internal_mutable_cid(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.Organization.cid")); + } 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; } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Organization::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 6, 1, 72, 2> Organization::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Organization, _impl_._has_bits_), - 0, // no _extensions_ - 6, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967232, // skipmap - offsetof(decltype(_table_), field_entries), - 6, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Organization_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string id = 1 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Organization, _impl_.id_)}}, - // string name = 2 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(Organization, _impl_.name_)}}, - // .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn"]; - {::_pbi::TcParser::FastMtS1, - {26, 1, 0, PROTOBUF_FIELD_OFFSET(Organization, _impl_.created_on_)}}, - // string public_namespace = 4 [json_name = "publicNamespace"]; - {::_pbi::TcParser::FastUS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(Organization, _impl_.public_namespace_)}}, - // string default_region = 5 [json_name = "defaultRegion"]; - {::_pbi::TcParser::FastUS1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(Organization, _impl_.default_region_)}}, - // optional string cid = 6 [json_name = "cid"]; - {::_pbi::TcParser::FastUS1, - {50, 0, 0, PROTOBUF_FIELD_OFFSET(Organization, _impl_.cid_)}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(Organization, _impl_.id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string name = 2 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(Organization, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn"]; - {PROTOBUF_FIELD_OFFSET(Organization, _impl_.created_on_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // string public_namespace = 4 [json_name = "publicNamespace"]; - {PROTOBUF_FIELD_OFFSET(Organization, _impl_.public_namespace_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string default_region = 5 [json_name = "defaultRegion"]; - {PROTOBUF_FIELD_OFFSET(Organization, _impl_.default_region_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // optional string cid = 6 [json_name = "cid"]; - {PROTOBUF_FIELD_OFFSET(Organization, _impl_.cid_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, - }}, {{ - "\30\2\4\0\20\16\3\0" - "viam.app.v1.Organization" - "id" - "name" - "public_namespace" - "default_region" - "cid" - }}, -}; - -::uint8_t* Organization::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Organization::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.Organization) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.Organization.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.Organization.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); } // string name = 2 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.Organization.name"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.Organization.name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::created_on(this), + if (this->_internal_has_created_on()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::created_on(this), _Internal::created_on(this).GetCachedSize(), target, stream); } // string public_namespace = 4 [json_name = "publicNamespace"]; if (!this->_internal_public_namespace().empty()) { - const std::string& _s = this->_internal_public_namespace(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.Organization.public_namespace"); - target = stream->WriteStringMaybeAliased(4, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_public_namespace().data(), static_cast(this->_internal_public_namespace().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.Organization.public_namespace"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_public_namespace(), target); } // string default_region = 5 [json_name = "defaultRegion"]; if (!this->_internal_default_region().empty()) { - const std::string& _s = this->_internal_default_region(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.Organization.default_region"); - target = stream->WriteStringMaybeAliased(5, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_default_region().data(), static_cast(this->_internal_default_region().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.Organization.default_region"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_default_region(), target); } // optional string cid = 6 [json_name = "cid"]; - if (cached_has_bits & 0x00000001u) { - const std::string& _s = this->_internal_cid(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.Organization.cid"); - target = stream->WriteStringMaybeAliased(6, _s, target); + if (_internal_has_cid()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_cid().data(), static_cast(this->_internal_cid().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.Organization.cid"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_cid(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.Organization) return target; } -::size_t Organization::ByteSizeLong() const { +size_t Organization::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.Organization) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } // string name = 2 [json_name = "name"]; if (!this->_internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // string public_namespace = 4 [json_name = "publicNamespace"]; if (!this->_internal_public_namespace().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_public_namespace()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_public_namespace()); } // string default_region = 5 [json_name = "defaultRegion"]; if (!this->_internal_default_region().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_default_region()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_default_region()); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // optional string cid = 6 [json_name = "cid"]; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_cid()); - } - - // .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.created_on_); - } - + // optional string cid = 6 [json_name = "cid"]; + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_cid()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} -const ::google::protobuf::Message::ClassData Organization::_class_data_ = { - Organization::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* Organization::GetClassData() const { - return &_class_data_; + // .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn"]; + if (this->_internal_has_created_on()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *created_on_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Organization::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Organization::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Organization::GetClassData() const { return &_class_data_; } + +void Organization::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Organization::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.Organization) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Organization::MergeFrom(const Organization& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.Organization) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (!from._internal_public_namespace().empty()) { - _this->_internal_set_public_namespace(from._internal_public_namespace()); + _internal_set_public_namespace(from._internal_public_namespace()); } if (!from._internal_default_region().empty()) { - _this->_internal_set_default_region(from._internal_default_region()); + _internal_set_default_region(from._internal_default_region()); } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_set_cid(from._internal_cid()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_created_on()->::google::protobuf::Timestamp::MergeFrom( - from._internal_created_on()); - } + if (from._internal_has_cid()) { + _internal_set_cid(from._internal_cid()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_created_on()) { + _internal_mutable_created_on()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_created_on()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Organization::CopyFrom(const Organization& from) { @@ -9810,327 +8717,351 @@ void Organization::CopyFrom(const Organization& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Organization::IsInitialized() const { +bool Organization::IsInitialized() const { return true; } -::_pbi::CachedSize* Organization::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Organization::InternalSwap(Organization* PROTOBUF_RESTRICT other) { +void Organization::InternalSwap(Organization* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.public_namespace_, &other->_impl_.public_namespace_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.default_region_, &other->_impl_.default_region_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.cid_, &other->_impl_.cid_, arena); - swap(_impl_.created_on_, other->_impl_.created_on_); -} - -::google::protobuf::Metadata Organization::GetMetadata() const { + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &public_namespace_, lhs_arena, + &other->public_namespace_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &default_region_, lhs_arena, + &other->default_region_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &cid_, lhs_arena, + &other->cid_, rhs_arena + ); + swap(created_on_, other->created_on_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Organization::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[5]); } + // =================================================================== class OrganizationMember::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(OrganizationMember, _impl_._has_bits_); - static const ::google::protobuf::Timestamp& date_added(const OrganizationMember* msg); - static void set_has_date_added(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::google::protobuf::Timestamp& last_login(const OrganizationMember* msg); + using HasBits = decltype(std::declval()._has_bits_); + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& date_added(const OrganizationMember* msg); + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& last_login(const OrganizationMember* msg); static void set_has_last_login(HasBits* has_bits) { - (*has_bits)[0] |= 2u; + (*has_bits)[0] |= 1u; } }; -const ::google::protobuf::Timestamp& OrganizationMember::_Internal::date_added(const OrganizationMember* msg) { - return *msg->_impl_.date_added_; +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +OrganizationMember::_Internal::date_added(const OrganizationMember* msg) { + return *msg->date_added_; } -const ::google::protobuf::Timestamp& OrganizationMember::_Internal::last_login(const OrganizationMember* msg) { - return *msg->_impl_.last_login_; +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +OrganizationMember::_Internal::last_login(const OrganizationMember* msg) { + return *msg->last_login_; } void OrganizationMember::clear_date_added() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.date_added_ != nullptr) _impl_.date_added_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && date_added_ != nullptr) { + delete date_added_; + } + date_added_ = nullptr; } void OrganizationMember::clear_last_login() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.last_login_ != nullptr) _impl_.last_login_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; -} -OrganizationMember::OrganizationMember(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); + if (last_login_ != nullptr) last_login_->Clear(); + _has_bits_[0] &= ~0x00000001u; +} +OrganizationMember::OrganizationMember(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + emails_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.v1.OrganizationMember) } -inline PROTOBUF_NDEBUG_INLINE OrganizationMember::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - emails_{visibility, arena, from.emails_}, - user_id_(arena, from.user_id_) {} - -OrganizationMember::OrganizationMember( - ::google::protobuf::Arena* arena, - const OrganizationMember& from) - : ::google::protobuf::Message(arena) { - OrganizationMember* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.date_added_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.date_added_) - : nullptr; - _impl_.last_login_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.last_login_) - : nullptr; - +OrganizationMember::OrganizationMember(const OrganizationMember& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_), + emails_(from.emails_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + user_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + user_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_user_id().empty()) { + user_id_.Set(from._internal_user_id(), + GetArenaForAllocation()); + } + if (from._internal_has_date_added()) { + date_added_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from.date_added_); + } else { + date_added_ = nullptr; + } + if (from._internal_has_last_login()) { + last_login_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from.last_login_); + } else { + last_login_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.OrganizationMember) } -inline PROTOBUF_NDEBUG_INLINE OrganizationMember::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - emails_{visibility, arena}, - user_id_(arena) {} - -inline void OrganizationMember::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, date_added_), - 0, - offsetof(Impl_, last_login_) - - offsetof(Impl_, date_added_) + - sizeof(Impl_::last_login_)); + +inline void OrganizationMember::SharedCtor() { +user_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + user_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&date_added_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&last_login_) - + reinterpret_cast(&date_added_)) + sizeof(last_login_)); } + OrganizationMember::~OrganizationMember() { // @@protoc_insertion_point(destructor:viam.app.v1.OrganizationMember) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void OrganizationMember::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.user_id_.Destroy(); - delete _impl_.date_added_; - delete _impl_.last_login_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + user_id_.Destroy(); + if (this != internal_default_instance()) delete date_added_; + if (this != internal_default_instance()) delete last_login_; +} + +void OrganizationMember::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void OrganizationMember::Clear() { +void OrganizationMember::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.OrganizationMember) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.emails_.Clear(); - _impl_.user_id_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.date_added_ != nullptr); - _impl_.date_added_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.last_login_ != nullptr); - _impl_.last_login_->Clear(); - } + emails_.Clear(); + user_id_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && date_added_ != nullptr) { + delete date_added_; } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* OrganizationMember::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + date_added_ = nullptr; + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(last_login_ != nullptr); + last_login_->Clear(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* OrganizationMember::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string user_id = 1 [json_name = "userId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_user_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.OrganizationMember.user_id")); + } else + goto handle_unusual; + continue; + // repeated string emails = 2 [json_name = "emails"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_emails(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.OrganizationMember.emails")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp date_added = 3 [json_name = "dateAdded"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_date_added(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional .google.protobuf.Timestamp last_login = 4 [json_name = "lastLogin"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_last_login(), 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: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 2, 52, 2> OrganizationMember::_table_ = { - { - PROTOBUF_FIELD_OFFSET(OrganizationMember, _impl_._has_bits_), - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_OrganizationMember_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // optional .google.protobuf.Timestamp last_login = 4 [json_name = "lastLogin"]; - {::_pbi::TcParser::FastMtS1, - {34, 1, 1, PROTOBUF_FIELD_OFFSET(OrganizationMember, _impl_.last_login_)}}, - // string user_id = 1 [json_name = "userId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(OrganizationMember, _impl_.user_id_)}}, - // repeated string emails = 2 [json_name = "emails"]; - {::_pbi::TcParser::FastUR1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(OrganizationMember, _impl_.emails_)}}, - // .google.protobuf.Timestamp date_added = 3 [json_name = "dateAdded"]; - {::_pbi::TcParser::FastMtS1, - {26, 0, 0, PROTOBUF_FIELD_OFFSET(OrganizationMember, _impl_.date_added_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string user_id = 1 [json_name = "userId"]; - {PROTOBUF_FIELD_OFFSET(OrganizationMember, _impl_.user_id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated string emails = 2 [json_name = "emails"]; - {PROTOBUF_FIELD_OFFSET(OrganizationMember, _impl_.emails_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - // .google.protobuf.Timestamp date_added = 3 [json_name = "dateAdded"]; - {PROTOBUF_FIELD_OFFSET(OrganizationMember, _impl_.date_added_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // optional .google.protobuf.Timestamp last_login = 4 [json_name = "lastLogin"]; - {PROTOBUF_FIELD_OFFSET(OrganizationMember, _impl_.last_login_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, - }}, {{ - "\36\7\6\0\0\0\0\0" - "viam.app.v1.OrganizationMember" - "user_id" - "emails" - }}, -}; - -::uint8_t* OrganizationMember::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* OrganizationMember::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.OrganizationMember) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string user_id = 1 [json_name = "userId"]; if (!this->_internal_user_id().empty()) { - const std::string& _s = this->_internal_user_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.OrganizationMember.user_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_user_id().data(), static_cast(this->_internal_user_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.OrganizationMember.user_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_user_id(), target); } // repeated string emails = 2 [json_name = "emails"]; - for (int i = 0, n = this->_internal_emails_size(); i < n; ++i) { - const auto& s = this->_internal_emails().Get(i); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.OrganizationMember.emails"); + for (int i = 0, n = this->_internal_emails_size(); i < n; i++) { + const auto& s = this->_internal_emails(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.OrganizationMember.emails"); target = stream->WriteString(2, s, target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Timestamp date_added = 3 [json_name = "dateAdded"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::date_added(this), + if (this->_internal_has_date_added()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::date_added(this), _Internal::date_added(this).GetCachedSize(), target, stream); } // optional .google.protobuf.Timestamp last_login = 4 [json_name = "lastLogin"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, _Internal::last_login(this), + if (_internal_has_last_login()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::last_login(this), _Internal::last_login(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.OrganizationMember) return target; } -::size_t OrganizationMember::ByteSizeLong() const { +size_t OrganizationMember::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.OrganizationMember) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated string emails = 2 [json_name = "emails"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_emails().size()); - for (int i = 0, n = _internal_emails().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - _internal_emails().Get(i)); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(emails_.size()); + for (int i = 0, n = emails_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + emails_.Get(i)); } + // string user_id = 1 [json_name = "userId"]; if (!this->_internal_user_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_user_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_user_id()); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // .google.protobuf.Timestamp date_added = 3 [json_name = "dateAdded"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.date_added_); - } - - // optional .google.protobuf.Timestamp last_login = 4 [json_name = "lastLogin"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.last_login_); - } + // .google.protobuf.Timestamp date_added = 3 [json_name = "dateAdded"]; + if (this->_internal_has_date_added()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *date_added_); + } + // optional .google.protobuf.Timestamp last_login = 4 [json_name = "lastLogin"]; + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *last_login_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData OrganizationMember::_class_data_ = { - OrganizationMember::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData OrganizationMember::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + OrganizationMember::MergeImpl }; -const ::google::protobuf::Message::ClassData* OrganizationMember::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*OrganizationMember::GetClassData() const { return &_class_data_; } + +void OrganizationMember::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void OrganizationMember::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.OrganizationMember) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void OrganizationMember::MergeFrom(const OrganizationMember& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.OrganizationMember) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_emails()->MergeFrom(from._internal_emails()); + emails_.MergeFrom(from.emails_); if (!from._internal_user_id().empty()) { - _this->_internal_set_user_id(from._internal_user_id()); + _internal_set_user_id(from._internal_user_id()); } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_date_added()->::google::protobuf::Timestamp::MergeFrom( - from._internal_date_added()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_last_login()->::google::protobuf::Timestamp::MergeFrom( - from._internal_last_login()); - } + if (from._internal_has_date_added()) { + _internal_mutable_date_added()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_date_added()); + } + if (from._internal_has_last_login()) { + _internal_mutable_last_login()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_last_login()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void OrganizationMember::CopyFrom(const OrganizationMember& from) { @@ -10140,190 +9071,188 @@ void OrganizationMember::CopyFrom(const OrganizationMember& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool OrganizationMember::IsInitialized() const { +bool OrganizationMember::IsInitialized() const { return true; } -::_pbi::CachedSize* OrganizationMember::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void OrganizationMember::InternalSwap(OrganizationMember* PROTOBUF_RESTRICT other) { +void OrganizationMember::InternalSwap(OrganizationMember* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.emails_.InternalSwap(&other->_impl_.emails_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.user_id_, &other->_impl_.user_id_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(OrganizationMember, _impl_.last_login_) - + sizeof(OrganizationMember::_impl_.last_login_) - - PROTOBUF_FIELD_OFFSET(OrganizationMember, _impl_.date_added_)>( - reinterpret_cast(&_impl_.date_added_), - reinterpret_cast(&other->_impl_.date_added_)); -} - -::google::protobuf::Metadata OrganizationMember::GetMetadata() const { + swap(_has_bits_[0], other->_has_bits_[0]); + emails_.InternalSwap(&other->emails_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &user_id_, lhs_arena, + &other->user_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(OrganizationMember, last_login_) + + sizeof(OrganizationMember::last_login_) + - PROTOBUF_FIELD_OFFSET(OrganizationMember, date_added_)>( + reinterpret_cast(&date_added_), + reinterpret_cast(&other->date_added_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata OrganizationMember::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[6]); } + // =================================================================== class ListOrganizationsResponse::_Internal { public: }; -ListOrganizationsResponse::ListOrganizationsResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ListOrganizationsResponse::ListOrganizationsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + organizations_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.v1.ListOrganizationsResponse) } -inline PROTOBUF_NDEBUG_INLINE ListOrganizationsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : organizations_{visibility, arena, from.organizations_}, - _cached_size_{0} {} - -ListOrganizationsResponse::ListOrganizationsResponse( - ::google::protobuf::Arena* arena, - const ListOrganizationsResponse& from) - : ::google::protobuf::Message(arena) { - ListOrganizationsResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +ListOrganizationsResponse::ListOrganizationsResponse(const ListOrganizationsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + organizations_(from.organizations_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.app.v1.ListOrganizationsResponse) } -inline PROTOBUF_NDEBUG_INLINE ListOrganizationsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : organizations_{visibility, arena}, - _cached_size_{0} {} -inline void ListOrganizationsResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void ListOrganizationsResponse::SharedCtor() { } + ListOrganizationsResponse::~ListOrganizationsResponse() { // @@protoc_insertion_point(destructor:viam.app.v1.ListOrganizationsResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ListOrganizationsResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void ListOrganizationsResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.ListOrganizationsResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.organizations_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void ListOrganizationsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* ListOrganizationsResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void ListOrganizationsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.ListOrganizationsResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + organizations_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListOrganizationsResponse::_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) { + // repeated .viam.app.v1.Organization organizations = 1 [json_name = "organizations"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_organizations(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ListOrganizationsResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ListOrganizationsResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.app.v1.Organization organizations = 1 [json_name = "organizations"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ListOrganizationsResponse, _impl_.organizations_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.app.v1.Organization organizations = 1 [json_name = "organizations"]; - {PROTOBUF_FIELD_OFFSET(ListOrganizationsResponse, _impl_.organizations_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::Organization>()}, - }}, {{ - }}, -}; - -::uint8_t* ListOrganizationsResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ListOrganizationsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ListOrganizationsResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .viam.app.v1.Organization organizations = 1 [json_name = "organizations"]; for (unsigned i = 0, n = static_cast(this->_internal_organizations_size()); i < n; i++) { - const auto& repfield = this->_internal_organizations().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_organizations(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.ListOrganizationsResponse) return target; } -::size_t ListOrganizationsResponse::ByteSizeLong() const { +size_t ListOrganizationsResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ListOrganizationsResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.app.v1.Organization organizations = 1 [json_name = "organizations"]; total_size += 1UL * this->_internal_organizations_size(); - for (const auto& msg : this->_internal_organizations()) { + for (const auto& msg : this->organizations_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ListOrganizationsResponse::_class_data_ = { - ListOrganizationsResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListOrganizationsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ListOrganizationsResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* ListOrganizationsResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListOrganizationsResponse::GetClassData() const { return &_class_data_; } + +void ListOrganizationsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ListOrganizationsResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ListOrganizationsResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ListOrganizationsResponse::MergeFrom(const ListOrganizationsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ListOrganizationsResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_organizations()->MergeFrom( - from._internal_organizations()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + organizations_.MergeFrom(from.organizations_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ListOrganizationsResponse::CopyFrom(const ListOrganizationsResponse& from) { @@ -10333,292 +9262,310 @@ void ListOrganizationsResponse::CopyFrom(const ListOrganizationsResponse& from) MergeFrom(from); } -PROTOBUF_NOINLINE bool ListOrganizationsResponse::IsInitialized() const { +bool ListOrganizationsResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* ListOrganizationsResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ListOrganizationsResponse::InternalSwap(ListOrganizationsResponse* PROTOBUF_RESTRICT other) { +void ListOrganizationsResponse::InternalSwap(ListOrganizationsResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.organizations_.InternalSwap(&other->_impl_.organizations_); + organizations_.InternalSwap(&other->organizations_); } -::google::protobuf::Metadata ListOrganizationsResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ListOrganizationsResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[7]); } + // =================================================================== class OrganizationInvite::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(OrganizationInvite, _impl_._has_bits_); - static const ::google::protobuf::Timestamp& created_on(const OrganizationInvite* msg); - static void set_has_created_on(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& created_on(const OrganizationInvite* msg); }; -const ::google::protobuf::Timestamp& OrganizationInvite::_Internal::created_on(const OrganizationInvite* msg) { - return *msg->_impl_.created_on_; +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +OrganizationInvite::_Internal::created_on(const OrganizationInvite* msg) { + return *msg->created_on_; } void OrganizationInvite::clear_created_on() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.created_on_ != nullptr) _impl_.created_on_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && created_on_ != nullptr) { + delete created_on_; + } + created_on_ = nullptr; } -OrganizationInvite::OrganizationInvite(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +OrganizationInvite::OrganizationInvite(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + authorizations_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.v1.OrganizationInvite) } -inline PROTOBUF_NDEBUG_INLINE OrganizationInvite::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - authorizations_{visibility, arena, from.authorizations_}, - organization_id_(arena, from.organization_id_), - email_(arena, from.email_) {} - -OrganizationInvite::OrganizationInvite( - ::google::protobuf::Arena* arena, - const OrganizationInvite& from) - : ::google::protobuf::Message(arena) { - OrganizationInvite* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.created_on_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.created_on_) - : nullptr; - +OrganizationInvite::OrganizationInvite(const OrganizationInvite& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + authorizations_(from.authorizations_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + organization_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_organization_id().empty()) { + organization_id_.Set(from._internal_organization_id(), + GetArenaForAllocation()); + } + email_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + email_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_email().empty()) { + email_.Set(from._internal_email(), + GetArenaForAllocation()); + } + if (from._internal_has_created_on()) { + created_on_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from.created_on_); + } else { + created_on_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.OrganizationInvite) } -inline PROTOBUF_NDEBUG_INLINE OrganizationInvite::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - authorizations_{visibility, arena}, - organization_id_(arena), - email_(arena) {} -inline void OrganizationInvite::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.created_on_ = {}; +inline void OrganizationInvite::SharedCtor() { +organization_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +email_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + email_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +created_on_ = nullptr; } + OrganizationInvite::~OrganizationInvite() { // @@protoc_insertion_point(destructor:viam.app.v1.OrganizationInvite) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void OrganizationInvite::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.organization_id_.Destroy(); - _impl_.email_.Destroy(); - delete _impl_.created_on_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + organization_id_.Destroy(); + email_.Destroy(); + if (this != internal_default_instance()) delete created_on_; } -PROTOBUF_NOINLINE void OrganizationInvite::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.OrganizationInvite) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.authorizations_.Clear(); - _impl_.organization_id_.ClearToEmpty(); - _impl_.email_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.created_on_ != nullptr); - _impl_.created_on_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void OrganizationInvite::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* OrganizationInvite::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void OrganizationInvite::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.OrganizationInvite) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + authorizations_.Clear(); + organization_id_.ClearToEmpty(); + email_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && created_on_ != nullptr) { + delete created_on_; + } + created_on_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* OrganizationInvite::_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 organization_id = 1 [json_name = "organizationId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_organization_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.OrganizationInvite.organization_id")); + } else + goto handle_unusual; + continue; + // string email = 2 [json_name = "email"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_email(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.OrganizationInvite.email")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_created_on(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // repeated .viam.app.v1.Authorization authorizations = 4 [json_name = "authorizations"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_authorizations(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 2, 59, 2> OrganizationInvite::_table_ = { - { - PROTOBUF_FIELD_OFFSET(OrganizationInvite, _impl_._has_bits_), - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_OrganizationInvite_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.app.v1.Authorization authorizations = 4 [json_name = "authorizations"]; - {::_pbi::TcParser::FastMtR1, - {34, 63, 1, PROTOBUF_FIELD_OFFSET(OrganizationInvite, _impl_.authorizations_)}}, - // string organization_id = 1 [json_name = "organizationId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(OrganizationInvite, _impl_.organization_id_)}}, - // string email = 2 [json_name = "email"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(OrganizationInvite, _impl_.email_)}}, - // .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn"]; - {::_pbi::TcParser::FastMtS1, - {26, 0, 0, PROTOBUF_FIELD_OFFSET(OrganizationInvite, _impl_.created_on_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string organization_id = 1 [json_name = "organizationId"]; - {PROTOBUF_FIELD_OFFSET(OrganizationInvite, _impl_.organization_id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string email = 2 [json_name = "email"]; - {PROTOBUF_FIELD_OFFSET(OrganizationInvite, _impl_.email_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn"]; - {PROTOBUF_FIELD_OFFSET(OrganizationInvite, _impl_.created_on_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated .viam.app.v1.Authorization authorizations = 4 [json_name = "authorizations"]; - {PROTOBUF_FIELD_OFFSET(OrganizationInvite, _impl_.authorizations_), -1, 1, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, - {::_pbi::TcParser::GetTable<::viam::app::v1::Authorization>()}, - }}, {{ - "\36\17\5\0\0\0\0\0" - "viam.app.v1.OrganizationInvite" - "organization_id" - "email" - }}, -}; - -::uint8_t* OrganizationInvite::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* OrganizationInvite::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.OrganizationInvite) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string organization_id = 1 [json_name = "organizationId"]; if (!this->_internal_organization_id().empty()) { - const std::string& _s = this->_internal_organization_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.OrganizationInvite.organization_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_organization_id().data(), static_cast(this->_internal_organization_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.OrganizationInvite.organization_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_organization_id(), target); } // string email = 2 [json_name = "email"]; if (!this->_internal_email().empty()) { - const std::string& _s = this->_internal_email(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.OrganizationInvite.email"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_email().data(), static_cast(this->_internal_email().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.OrganizationInvite.email"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_email(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::created_on(this), + if (this->_internal_has_created_on()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::created_on(this), _Internal::created_on(this).GetCachedSize(), target, stream); } // repeated .viam.app.v1.Authorization authorizations = 4 [json_name = "authorizations"]; for (unsigned i = 0, n = static_cast(this->_internal_authorizations_size()); i < n; i++) { - const auto& repfield = this->_internal_authorizations().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_authorizations(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(4, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.OrganizationInvite) return target; } -::size_t OrganizationInvite::ByteSizeLong() const { +size_t OrganizationInvite::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.OrganizationInvite) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.app.v1.Authorization authorizations = 4 [json_name = "authorizations"]; total_size += 1UL * this->_internal_authorizations_size(); - for (const auto& msg : this->_internal_authorizations()) { + for (const auto& msg : this->authorizations_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // string organization_id = 1 [json_name = "organizationId"]; if (!this->_internal_organization_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_organization_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_organization_id()); } // string email = 2 [json_name = "email"]; if (!this->_internal_email().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_email()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_email()); } // .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.created_on_); + if (this->_internal_has_created_on()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *created_on_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData OrganizationInvite::_class_data_ = { - OrganizationInvite::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData OrganizationInvite::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + OrganizationInvite::MergeImpl }; -const ::google::protobuf::Message::ClassData* OrganizationInvite::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*OrganizationInvite::GetClassData() const { return &_class_data_; } + +void OrganizationInvite::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void OrganizationInvite::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.OrganizationInvite) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void OrganizationInvite::MergeFrom(const OrganizationInvite& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.OrganizationInvite) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_authorizations()->MergeFrom( - from._internal_authorizations()); + authorizations_.MergeFrom(from.authorizations_); if (!from._internal_organization_id().empty()) { - _this->_internal_set_organization_id(from._internal_organization_id()); + _internal_set_organization_id(from._internal_organization_id()); } if (!from._internal_email().empty()) { - _this->_internal_set_email(from._internal_email()); + _internal_set_email(from._internal_email()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_created_on()->::google::protobuf::Timestamp::MergeFrom( - from._internal_created_on()); + if (from._internal_has_created_on()) { + _internal_mutable_created_on()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_created_on()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void OrganizationInvite::CopyFrom(const OrganizationInvite& from) { @@ -10628,191 +9575,198 @@ void OrganizationInvite::CopyFrom(const OrganizationInvite& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool OrganizationInvite::IsInitialized() const { +bool OrganizationInvite::IsInitialized() const { return true; } -::_pbi::CachedSize* OrganizationInvite::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void OrganizationInvite::InternalSwap(OrganizationInvite* PROTOBUF_RESTRICT other) { +void OrganizationInvite::InternalSwap(OrganizationInvite* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.authorizations_.InternalSwap(&other->_impl_.authorizations_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.organization_id_, &other->_impl_.organization_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.email_, &other->_impl_.email_, arena); - swap(_impl_.created_on_, other->_impl_.created_on_); -} - -::google::protobuf::Metadata OrganizationInvite::GetMetadata() const { + authorizations_.InternalSwap(&other->authorizations_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &organization_id_, lhs_arena, + &other->organization_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &email_, lhs_arena, + &other->email_, rhs_arena + ); + swap(created_on_, other->created_on_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata OrganizationInvite::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[8]); } + // =================================================================== class CreateOrganizationRequest::_Internal { public: }; -CreateOrganizationRequest::CreateOrganizationRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +CreateOrganizationRequest::CreateOrganizationRequest(::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.CreateOrganizationRequest) } -inline PROTOBUF_NDEBUG_INLINE CreateOrganizationRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : name_(arena, from.name_), - _cached_size_{0} {} - -CreateOrganizationRequest::CreateOrganizationRequest( - ::google::protobuf::Arena* arena, - const CreateOrganizationRequest& from) - : ::google::protobuf::Message(arena) { - CreateOrganizationRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +CreateOrganizationRequest::CreateOrganizationRequest(const CreateOrganizationRequest& 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()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.CreateOrganizationRequest) } -inline PROTOBUF_NDEBUG_INLINE CreateOrganizationRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : name_(arena), - _cached_size_{0} {} -inline void CreateOrganizationRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void CreateOrganizationRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + CreateOrganizationRequest::~CreateOrganizationRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.CreateOrganizationRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void CreateOrganizationRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); } -PROTOBUF_NOINLINE void CreateOrganizationRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.CreateOrganizationRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.name_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void CreateOrganizationRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* CreateOrganizationRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void CreateOrganizationRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.CreateOrganizationRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CreateOrganizationRequest::_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.app.v1.CreateOrganizationRequest.name")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 50, 2> CreateOrganizationRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_CreateOrganizationRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(CreateOrganizationRequest, _impl_.name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(CreateOrganizationRequest, _impl_.name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\45\4\0\0\0\0\0\0" - "viam.app.v1.CreateOrganizationRequest" - "name" - }}, -}; - -::uint8_t* CreateOrganizationRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* CreateOrganizationRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.CreateOrganizationRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.CreateOrganizationRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.CreateOrganizationRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.CreateOrganizationRequest) return target; } -::size_t CreateOrganizationRequest::ByteSizeLong() const { +size_t CreateOrganizationRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.CreateOrganizationRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData CreateOrganizationRequest::_class_data_ = { - CreateOrganizationRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CreateOrganizationRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CreateOrganizationRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* CreateOrganizationRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CreateOrganizationRequest::GetClassData() const { return &_class_data_; } + +void CreateOrganizationRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void CreateOrganizationRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.CreateOrganizationRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void CreateOrganizationRequest::MergeFrom(const CreateOrganizationRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.CreateOrganizationRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CreateOrganizationRequest::CopyFrom(const CreateOrganizationRequest& from) { @@ -10822,205 +9776,189 @@ void CreateOrganizationRequest::CopyFrom(const CreateOrganizationRequest& from) MergeFrom(from); } -PROTOBUF_NOINLINE bool CreateOrganizationRequest::IsInitialized() const { +bool CreateOrganizationRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* CreateOrganizationRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void CreateOrganizationRequest::InternalSwap(CreateOrganizationRequest* PROTOBUF_RESTRICT other) { +void CreateOrganizationRequest::InternalSwap(CreateOrganizationRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); } -::google::protobuf::Metadata CreateOrganizationRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata CreateOrganizationRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[9]); } + // =================================================================== class CreateOrganizationResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(CreateOrganizationResponse, _impl_._has_bits_); static const ::viam::app::v1::Organization& organization(const CreateOrganizationResponse* msg); - static void set_has_organization(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::app::v1::Organization& CreateOrganizationResponse::_Internal::organization(const CreateOrganizationResponse* msg) { - return *msg->_impl_.organization_; +const ::viam::app::v1::Organization& +CreateOrganizationResponse::_Internal::organization(const CreateOrganizationResponse* msg) { + return *msg->organization_; } -CreateOrganizationResponse::CreateOrganizationResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +CreateOrganizationResponse::CreateOrganizationResponse(::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.CreateOrganizationResponse) } -inline PROTOBUF_NDEBUG_INLINE CreateOrganizationResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -CreateOrganizationResponse::CreateOrganizationResponse( - ::google::protobuf::Arena* arena, - const CreateOrganizationResponse& from) - : ::google::protobuf::Message(arena) { - CreateOrganizationResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.organization_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::app::v1::Organization>(arena, *from._impl_.organization_) - : nullptr; - +CreateOrganizationResponse::CreateOrganizationResponse(const CreateOrganizationResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_organization()) { + organization_ = new ::viam::app::v1::Organization(*from.organization_); + } else { + organization_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.CreateOrganizationResponse) } -inline PROTOBUF_NDEBUG_INLINE CreateOrganizationResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void CreateOrganizationResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.organization_ = {}; +inline void CreateOrganizationResponse::SharedCtor() { +organization_ = nullptr; } + CreateOrganizationResponse::~CreateOrganizationResponse() { // @@protoc_insertion_point(destructor:viam.app.v1.CreateOrganizationResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void CreateOrganizationResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.organization_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete organization_; } -PROTOBUF_NOINLINE void CreateOrganizationResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.CreateOrganizationResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.organization_ != nullptr); - _impl_.organization_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void CreateOrganizationResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* CreateOrganizationResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void CreateOrganizationResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.CreateOrganizationResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && organization_ != nullptr) { + delete organization_; + } + organization_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CreateOrganizationResponse::_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.app.v1.Organization organization = 1 [json_name = "organization"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_organization(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> CreateOrganizationResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(CreateOrganizationResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_CreateOrganizationResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.app.v1.Organization organization = 1 [json_name = "organization"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(CreateOrganizationResponse, _impl_.organization_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.app.v1.Organization organization = 1 [json_name = "organization"]; - {PROTOBUF_FIELD_OFFSET(CreateOrganizationResponse, _impl_.organization_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::Organization>()}, - }}, {{ - }}, -}; - -::uint8_t* CreateOrganizationResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* CreateOrganizationResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.CreateOrganizationResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.app.v1.Organization organization = 1 [json_name = "organization"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::organization(this), + if (this->_internal_has_organization()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::organization(this), _Internal::organization(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.CreateOrganizationResponse) return target; } -::size_t CreateOrganizationResponse::ByteSizeLong() const { +size_t CreateOrganizationResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.CreateOrganizationResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .viam.app.v1.Organization organization = 1 [json_name = "organization"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.organization_); + if (this->_internal_has_organization()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *organization_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData CreateOrganizationResponse::_class_data_ = { - CreateOrganizationResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CreateOrganizationResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CreateOrganizationResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* CreateOrganizationResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CreateOrganizationResponse::GetClassData() const { return &_class_data_; } + +void CreateOrganizationResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void CreateOrganizationResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.CreateOrganizationResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void CreateOrganizationResponse::MergeFrom(const CreateOrganizationResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.CreateOrganizationResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_organization()->::viam::app::v1::Organization::MergeFrom( - from._internal_organization()); + if (from._internal_has_organization()) { + _internal_mutable_organization()->::viam::app::v1::Organization::MergeFrom(from._internal_organization()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CreateOrganizationResponse::CopyFrom(const CreateOrganizationResponse& from) { @@ -11030,186 +9968,187 @@ void CreateOrganizationResponse::CopyFrom(const CreateOrganizationResponse& from MergeFrom(from); } -PROTOBUF_NOINLINE bool CreateOrganizationResponse::IsInitialized() const { +bool CreateOrganizationResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* CreateOrganizationResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void CreateOrganizationResponse::InternalSwap(CreateOrganizationResponse* PROTOBUF_RESTRICT other) { +void CreateOrganizationResponse::InternalSwap(CreateOrganizationResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.organization_, other->_impl_.organization_); + swap(organization_, other->organization_); } -::google::protobuf::Metadata CreateOrganizationResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata CreateOrganizationResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[10]); } + // =================================================================== class GetOrganizationRequest::_Internal { public: }; -GetOrganizationRequest::GetOrganizationRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetOrganizationRequest::GetOrganizationRequest(::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.GetOrganizationRequest) } -inline PROTOBUF_NDEBUG_INLINE GetOrganizationRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : organization_id_(arena, from.organization_id_), - _cached_size_{0} {} - -GetOrganizationRequest::GetOrganizationRequest( - ::google::protobuf::Arena* arena, - const GetOrganizationRequest& from) - : ::google::protobuf::Message(arena) { - GetOrganizationRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetOrganizationRequest::GetOrganizationRequest(const GetOrganizationRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + organization_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_organization_id().empty()) { + organization_id_.Set(from._internal_organization_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetOrganizationRequest) } -inline PROTOBUF_NDEBUG_INLINE GetOrganizationRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : organization_id_(arena), - _cached_size_{0} {} -inline void GetOrganizationRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetOrganizationRequest::SharedCtor() { +organization_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + GetOrganizationRequest::~GetOrganizationRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.GetOrganizationRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetOrganizationRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.organization_id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + organization_id_.Destroy(); } -PROTOBUF_NOINLINE void GetOrganizationRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetOrganizationRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.organization_id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void GetOrganizationRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* GetOrganizationRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void GetOrganizationRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetOrganizationRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + organization_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetOrganizationRequest::_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 organization_id = 1 [json_name = "organizationId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_organization_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.GetOrganizationRequest.organization_id")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 58, 2> GetOrganizationRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetOrganizationRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string organization_id = 1 [json_name = "organizationId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetOrganizationRequest, _impl_.organization_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string organization_id = 1 [json_name = "organizationId"]; - {PROTOBUF_FIELD_OFFSET(GetOrganizationRequest, _impl_.organization_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\42\17\0\0\0\0\0\0" - "viam.app.v1.GetOrganizationRequest" - "organization_id" - }}, -}; - -::uint8_t* GetOrganizationRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetOrganizationRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetOrganizationRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string organization_id = 1 [json_name = "organizationId"]; if (!this->_internal_organization_id().empty()) { - const std::string& _s = this->_internal_organization_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.GetOrganizationRequest.organization_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_organization_id().data(), static_cast(this->_internal_organization_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.GetOrganizationRequest.organization_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_organization_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.GetOrganizationRequest) return target; } -::size_t GetOrganizationRequest::ByteSizeLong() const { +size_t GetOrganizationRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetOrganizationRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string organization_id = 1 [json_name = "organizationId"]; if (!this->_internal_organization_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_organization_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_organization_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetOrganizationRequest::_class_data_ = { - GetOrganizationRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetOrganizationRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetOrganizationRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetOrganizationRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetOrganizationRequest::GetClassData() const { return &_class_data_; } + +void GetOrganizationRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetOrganizationRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetOrganizationRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetOrganizationRequest::MergeFrom(const GetOrganizationRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetOrganizationRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_organization_id().empty()) { - _this->_internal_set_organization_id(from._internal_organization_id()); + _internal_set_organization_id(from._internal_organization_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetOrganizationRequest::CopyFrom(const GetOrganizationRequest& from) { @@ -11219,205 +10158,189 @@ void GetOrganizationRequest::CopyFrom(const GetOrganizationRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetOrganizationRequest::IsInitialized() const { +bool GetOrganizationRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetOrganizationRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetOrganizationRequest::InternalSwap(GetOrganizationRequest* PROTOBUF_RESTRICT other) { +void GetOrganizationRequest::InternalSwap(GetOrganizationRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.organization_id_, &other->_impl_.organization_id_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &organization_id_, lhs_arena, + &other->organization_id_, rhs_arena + ); } -::google::protobuf::Metadata GetOrganizationRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetOrganizationRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[11]); } + // =================================================================== class GetOrganizationResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetOrganizationResponse, _impl_._has_bits_); static const ::viam::app::v1::Organization& organization(const GetOrganizationResponse* msg); - static void set_has_organization(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::app::v1::Organization& GetOrganizationResponse::_Internal::organization(const GetOrganizationResponse* msg) { - return *msg->_impl_.organization_; +const ::viam::app::v1::Organization& +GetOrganizationResponse::_Internal::organization(const GetOrganizationResponse* msg) { + return *msg->organization_; } -GetOrganizationResponse::GetOrganizationResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetOrganizationResponse::GetOrganizationResponse(::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.GetOrganizationResponse) } -inline PROTOBUF_NDEBUG_INLINE GetOrganizationResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -GetOrganizationResponse::GetOrganizationResponse( - ::google::protobuf::Arena* arena, - const GetOrganizationResponse& from) - : ::google::protobuf::Message(arena) { - GetOrganizationResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.organization_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::app::v1::Organization>(arena, *from._impl_.organization_) - : nullptr; - +GetOrganizationResponse::GetOrganizationResponse(const GetOrganizationResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_organization()) { + organization_ = new ::viam::app::v1::Organization(*from.organization_); + } else { + organization_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetOrganizationResponse) } -inline PROTOBUF_NDEBUG_INLINE GetOrganizationResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void GetOrganizationResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.organization_ = {}; +inline void GetOrganizationResponse::SharedCtor() { +organization_ = nullptr; } + GetOrganizationResponse::~GetOrganizationResponse() { // @@protoc_insertion_point(destructor:viam.app.v1.GetOrganizationResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetOrganizationResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.organization_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete organization_; } -PROTOBUF_NOINLINE void GetOrganizationResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetOrganizationResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.organization_ != nullptr); - _impl_.organization_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void GetOrganizationResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* GetOrganizationResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void GetOrganizationResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetOrganizationResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && organization_ != nullptr) { + delete organization_; + } + organization_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetOrganizationResponse::_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.app.v1.Organization organization = 1 [json_name = "organization"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_organization(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetOrganizationResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetOrganizationResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetOrganizationResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.app.v1.Organization organization = 1 [json_name = "organization"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetOrganizationResponse, _impl_.organization_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.app.v1.Organization organization = 1 [json_name = "organization"]; - {PROTOBUF_FIELD_OFFSET(GetOrganizationResponse, _impl_.organization_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::Organization>()}, - }}, {{ - }}, -}; - -::uint8_t* GetOrganizationResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetOrganizationResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetOrganizationResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.app.v1.Organization organization = 1 [json_name = "organization"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::organization(this), + if (this->_internal_has_organization()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::organization(this), _Internal::organization(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.GetOrganizationResponse) return target; } -::size_t GetOrganizationResponse::ByteSizeLong() const { +size_t GetOrganizationResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetOrganizationResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .viam.app.v1.Organization organization = 1 [json_name = "organization"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.organization_); + if (this->_internal_has_organization()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *organization_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetOrganizationResponse::_class_data_ = { - GetOrganizationResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetOrganizationResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetOrganizationResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetOrganizationResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetOrganizationResponse::GetClassData() const { return &_class_data_; } + +void GetOrganizationResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetOrganizationResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetOrganizationResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetOrganizationResponse::MergeFrom(const GetOrganizationResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetOrganizationResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_organization()->::viam::app::v1::Organization::MergeFrom( - from._internal_organization()); + if (from._internal_has_organization()) { + _internal_mutable_organization()->::viam::app::v1::Organization::MergeFrom(from._internal_organization()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetOrganizationResponse::CopyFrom(const GetOrganizationResponse& from) { @@ -11427,186 +10350,187 @@ void GetOrganizationResponse::CopyFrom(const GetOrganizationResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetOrganizationResponse::IsInitialized() const { +bool GetOrganizationResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetOrganizationResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetOrganizationResponse::InternalSwap(GetOrganizationResponse* PROTOBUF_RESTRICT other) { +void GetOrganizationResponse::InternalSwap(GetOrganizationResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.organization_, other->_impl_.organization_); + swap(organization_, other->organization_); } -::google::protobuf::Metadata GetOrganizationResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetOrganizationResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[12]); } + // =================================================================== class GetOrganizationNamespaceAvailabilityRequest::_Internal { public: }; -GetOrganizationNamespaceAvailabilityRequest::GetOrganizationNamespaceAvailabilityRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetOrganizationNamespaceAvailabilityRequest::GetOrganizationNamespaceAvailabilityRequest(::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.GetOrganizationNamespaceAvailabilityRequest) } -inline PROTOBUF_NDEBUG_INLINE GetOrganizationNamespaceAvailabilityRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : public_namespace_(arena, from.public_namespace_), - _cached_size_{0} {} - -GetOrganizationNamespaceAvailabilityRequest::GetOrganizationNamespaceAvailabilityRequest( - ::google::protobuf::Arena* arena, - const GetOrganizationNamespaceAvailabilityRequest& from) - : ::google::protobuf::Message(arena) { - GetOrganizationNamespaceAvailabilityRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetOrganizationNamespaceAvailabilityRequest::GetOrganizationNamespaceAvailabilityRequest(const GetOrganizationNamespaceAvailabilityRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + public_namespace_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + public_namespace_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_public_namespace().empty()) { + public_namespace_.Set(from._internal_public_namespace(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetOrganizationNamespaceAvailabilityRequest) } -inline PROTOBUF_NDEBUG_INLINE GetOrganizationNamespaceAvailabilityRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : public_namespace_(arena), - _cached_size_{0} {} -inline void GetOrganizationNamespaceAvailabilityRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetOrganizationNamespaceAvailabilityRequest::SharedCtor() { +public_namespace_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + public_namespace_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + GetOrganizationNamespaceAvailabilityRequest::~GetOrganizationNamespaceAvailabilityRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.GetOrganizationNamespaceAvailabilityRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetOrganizationNamespaceAvailabilityRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.public_namespace_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + public_namespace_.Destroy(); } -PROTOBUF_NOINLINE void GetOrganizationNamespaceAvailabilityRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetOrganizationNamespaceAvailabilityRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.public_namespace_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void GetOrganizationNamespaceAvailabilityRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* GetOrganizationNamespaceAvailabilityRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void GetOrganizationNamespaceAvailabilityRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetOrganizationNamespaceAvailabilityRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + public_namespace_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetOrganizationNamespaceAvailabilityRequest::_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 public_namespace = 1 [json_name = "publicNamespace"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_public_namespace(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.GetOrganizationNamespaceAvailabilityRequest.public_namespace")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 80, 2> GetOrganizationNamespaceAvailabilityRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetOrganizationNamespaceAvailabilityRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string public_namespace = 1 [json_name = "publicNamespace"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetOrganizationNamespaceAvailabilityRequest, _impl_.public_namespace_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string public_namespace = 1 [json_name = "publicNamespace"]; - {PROTOBUF_FIELD_OFFSET(GetOrganizationNamespaceAvailabilityRequest, _impl_.public_namespace_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\67\20\0\0\0\0\0\0" - "viam.app.v1.GetOrganizationNamespaceAvailabilityRequest" - "public_namespace" - }}, -}; - -::uint8_t* GetOrganizationNamespaceAvailabilityRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetOrganizationNamespaceAvailabilityRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetOrganizationNamespaceAvailabilityRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string public_namespace = 1 [json_name = "publicNamespace"]; if (!this->_internal_public_namespace().empty()) { - const std::string& _s = this->_internal_public_namespace(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.GetOrganizationNamespaceAvailabilityRequest.public_namespace"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_public_namespace().data(), static_cast(this->_internal_public_namespace().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.GetOrganizationNamespaceAvailabilityRequest.public_namespace"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_public_namespace(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.GetOrganizationNamespaceAvailabilityRequest) return target; } -::size_t GetOrganizationNamespaceAvailabilityRequest::ByteSizeLong() const { +size_t GetOrganizationNamespaceAvailabilityRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetOrganizationNamespaceAvailabilityRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string public_namespace = 1 [json_name = "publicNamespace"]; if (!this->_internal_public_namespace().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_public_namespace()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_public_namespace()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetOrganizationNamespaceAvailabilityRequest::_class_data_ = { - GetOrganizationNamespaceAvailabilityRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetOrganizationNamespaceAvailabilityRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetOrganizationNamespaceAvailabilityRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetOrganizationNamespaceAvailabilityRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetOrganizationNamespaceAvailabilityRequest::GetClassData() const { return &_class_data_; } + +void GetOrganizationNamespaceAvailabilityRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetOrganizationNamespaceAvailabilityRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetOrganizationNamespaceAvailabilityRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetOrganizationNamespaceAvailabilityRequest::MergeFrom(const GetOrganizationNamespaceAvailabilityRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetOrganizationNamespaceAvailabilityRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_public_namespace().empty()) { - _this->_internal_set_public_namespace(from._internal_public_namespace()); + _internal_set_public_namespace(from._internal_public_namespace()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetOrganizationNamespaceAvailabilityRequest::CopyFrom(const GetOrganizationNamespaceAvailabilityRequest& from) { @@ -11616,168 +10540,173 @@ void GetOrganizationNamespaceAvailabilityRequest::CopyFrom(const GetOrganization MergeFrom(from); } -PROTOBUF_NOINLINE bool GetOrganizationNamespaceAvailabilityRequest::IsInitialized() const { +bool GetOrganizationNamespaceAvailabilityRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetOrganizationNamespaceAvailabilityRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetOrganizationNamespaceAvailabilityRequest::InternalSwap(GetOrganizationNamespaceAvailabilityRequest* PROTOBUF_RESTRICT other) { +void GetOrganizationNamespaceAvailabilityRequest::InternalSwap(GetOrganizationNamespaceAvailabilityRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.public_namespace_, &other->_impl_.public_namespace_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &public_namespace_, lhs_arena, + &other->public_namespace_, rhs_arena + ); } -::google::protobuf::Metadata GetOrganizationNamespaceAvailabilityRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetOrganizationNamespaceAvailabilityRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[13]); } + // =================================================================== class GetOrganizationNamespaceAvailabilityResponse::_Internal { public: }; -GetOrganizationNamespaceAvailabilityResponse::GetOrganizationNamespaceAvailabilityResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetOrganizationNamespaceAvailabilityResponse::GetOrganizationNamespaceAvailabilityResponse(::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.GetOrganizationNamespaceAvailabilityResponse) } -GetOrganizationNamespaceAvailabilityResponse::GetOrganizationNamespaceAvailabilityResponse( - ::google::protobuf::Arena* arena, const GetOrganizationNamespaceAvailabilityResponse& from) - : GetOrganizationNamespaceAvailabilityResponse(arena) { - MergeFrom(from); +GetOrganizationNamespaceAvailabilityResponse::GetOrganizationNamespaceAvailabilityResponse(const GetOrganizationNamespaceAvailabilityResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + available_ = from.available_; + // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetOrganizationNamespaceAvailabilityResponse) } -inline PROTOBUF_NDEBUG_INLINE GetOrganizationNamespaceAvailabilityResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void GetOrganizationNamespaceAvailabilityResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.available_ = {}; +inline void GetOrganizationNamespaceAvailabilityResponse::SharedCtor() { +available_ = false; } + GetOrganizationNamespaceAvailabilityResponse::~GetOrganizationNamespaceAvailabilityResponse() { // @@protoc_insertion_point(destructor:viam.app.v1.GetOrganizationNamespaceAvailabilityResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetOrganizationNamespaceAvailabilityResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void GetOrganizationNamespaceAvailabilityResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetOrganizationNamespaceAvailabilityResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.available_ = false; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void GetOrganizationNamespaceAvailabilityResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* GetOrganizationNamespaceAvailabilityResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void GetOrganizationNamespaceAvailabilityResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetOrganizationNamespaceAvailabilityResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + available_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetOrganizationNamespaceAvailabilityResponse::_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) { + // bool available = 1 [json_name = "available"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + available_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> GetOrganizationNamespaceAvailabilityResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetOrganizationNamespaceAvailabilityResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // bool available = 1 [json_name = "available"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(GetOrganizationNamespaceAvailabilityResponse, _impl_.available_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bool available = 1 [json_name = "available"]; - {PROTOBUF_FIELD_OFFSET(GetOrganizationNamespaceAvailabilityResponse, _impl_.available_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* GetOrganizationNamespaceAvailabilityResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetOrganizationNamespaceAvailabilityResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetOrganizationNamespaceAvailabilityResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // bool available = 1 [json_name = "available"]; if (this->_internal_available() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 1, this->_internal_available(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_available(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.GetOrganizationNamespaceAvailabilityResponse) return target; } -::size_t GetOrganizationNamespaceAvailabilityResponse::ByteSizeLong() const { +size_t GetOrganizationNamespaceAvailabilityResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetOrganizationNamespaceAvailabilityResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // bool available = 1 [json_name = "available"]; if (this->_internal_available() != 0) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetOrganizationNamespaceAvailabilityResponse::_class_data_ = { - GetOrganizationNamespaceAvailabilityResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetOrganizationNamespaceAvailabilityResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetOrganizationNamespaceAvailabilityResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetOrganizationNamespaceAvailabilityResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetOrganizationNamespaceAvailabilityResponse::GetClassData() const { return &_class_data_; } + +void GetOrganizationNamespaceAvailabilityResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetOrganizationNamespaceAvailabilityResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetOrganizationNamespaceAvailabilityResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetOrganizationNamespaceAvailabilityResponse::MergeFrom(const GetOrganizationNamespaceAvailabilityResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetOrganizationNamespaceAvailabilityResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_available() != 0) { - _this->_internal_set_available(from._internal_available()); + _internal_set_available(from._internal_available()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetOrganizationNamespaceAvailabilityResponse::CopyFrom(const GetOrganizationNamespaceAvailabilityResponse& from) { @@ -11787,31 +10716,27 @@ void GetOrganizationNamespaceAvailabilityResponse::CopyFrom(const GetOrganizatio MergeFrom(from); } -PROTOBUF_NOINLINE bool GetOrganizationNamespaceAvailabilityResponse::IsInitialized() const { +bool GetOrganizationNamespaceAvailabilityResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetOrganizationNamespaceAvailabilityResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetOrganizationNamespaceAvailabilityResponse::InternalSwap(GetOrganizationNamespaceAvailabilityResponse* PROTOBUF_RESTRICT other) { +void GetOrganizationNamespaceAvailabilityResponse::InternalSwap(GetOrganizationNamespaceAvailabilityResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.available_, other->_impl_.available_); + swap(available_, other->available_); } -::google::protobuf::Metadata GetOrganizationNamespaceAvailabilityResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetOrganizationNamespaceAvailabilityResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[14]); } + // =================================================================== class UpdateOrganizationRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(UpdateOrganizationRequest, _impl_._has_bits_); + using HasBits = decltype(std::declval()._has_bits_); static void set_has_name(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -11826,296 +10751,362 @@ class UpdateOrganizationRequest::_Internal { } }; -UpdateOrganizationRequest::UpdateOrganizationRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +UpdateOrganizationRequest::UpdateOrganizationRequest(::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.UpdateOrganizationRequest) } -inline PROTOBUF_NDEBUG_INLINE UpdateOrganizationRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - organization_id_(arena, from.organization_id_), - name_(arena, from.name_), - public_namespace_(arena, from.public_namespace_), - region_(arena, from.region_), - cid_(arena, from.cid_) {} - -UpdateOrganizationRequest::UpdateOrganizationRequest( - ::google::protobuf::Arena* arena, - const UpdateOrganizationRequest& from) - : ::google::protobuf::Message(arena) { - UpdateOrganizationRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +UpdateOrganizationRequest::UpdateOrganizationRequest(const UpdateOrganizationRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + organization_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_organization_id().empty()) { + organization_id_.Set(from._internal_organization_id(), + GetArenaForAllocation()); + } + name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (from._internal_has_name()) { + name_.Set(from._internal_name(), + GetArenaForAllocation()); + } + public_namespace_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + public_namespace_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (from._internal_has_public_namespace()) { + public_namespace_.Set(from._internal_public_namespace(), + GetArenaForAllocation()); + } + region_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + region_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (from._internal_has_region()) { + region_.Set(from._internal_region(), + GetArenaForAllocation()); + } + cid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + cid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (from._internal_has_cid()) { + cid_.Set(from._internal_cid(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.UpdateOrganizationRequest) } -inline PROTOBUF_NDEBUG_INLINE UpdateOrganizationRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - organization_id_(arena), - name_(arena), - public_namespace_(arena), - region_(arena), - cid_(arena) {} -inline void UpdateOrganizationRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void UpdateOrganizationRequest::SharedCtor() { +organization_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +public_namespace_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + public_namespace_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +region_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + region_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +cid_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + cid_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + UpdateOrganizationRequest::~UpdateOrganizationRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.UpdateOrganizationRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void UpdateOrganizationRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.organization_id_.Destroy(); - _impl_.name_.Destroy(); - _impl_.public_namespace_.Destroy(); - _impl_.region_.Destroy(); - _impl_.cid_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + organization_id_.Destroy(); + name_.Destroy(); + public_namespace_.Destroy(); + region_.Destroy(); + cid_.Destroy(); +} + +void UpdateOrganizationRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void UpdateOrganizationRequest::Clear() { +void UpdateOrganizationRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.UpdateOrganizationRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.organization_id_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; + organization_id_.ClearToEmpty(); + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x0000000fu) { if (cached_has_bits & 0x00000001u) { - _impl_.name_.ClearNonDefaultToEmpty(); + name_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { - _impl_.public_namespace_.ClearNonDefaultToEmpty(); + public_namespace_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { - _impl_.region_.ClearNonDefaultToEmpty(); + region_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000008u) { - _impl_.cid_.ClearNonDefaultToEmpty(); + cid_.ClearNonDefaultToEmpty(); } } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* UpdateOrganizationRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* UpdateOrganizationRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string organization_id = 1 [json_name = "organizationId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_organization_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.UpdateOrganizationRequest.organization_id")); + } else + goto handle_unusual; + continue; + // optional string name = 2 [json_name = "name"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.UpdateOrganizationRequest.name")); + } else + goto handle_unusual; + continue; + // optional string public_namespace = 3 [json_name = "publicNamespace"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_public_namespace(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.UpdateOrganizationRequest.public_namespace")); + } else + goto handle_unusual; + continue; + // optional string region = 4 [json_name = "region"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_region(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.UpdateOrganizationRequest.region")); + } else + goto handle_unusual; + continue; + // optional string cid = 5 [json_name = "cid"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + auto str = _internal_mutable_cid(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.UpdateOrganizationRequest.cid")); + } 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: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 5, 0, 90, 2> UpdateOrganizationRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(UpdateOrganizationRequest, _impl_._has_bits_), - 0, // no _extensions_ - 5, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967264, // skipmap - offsetof(decltype(_table_), field_entries), - 5, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_UpdateOrganizationRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string organization_id = 1 [json_name = "organizationId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(UpdateOrganizationRequest, _impl_.organization_id_)}}, - // optional string name = 2 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(UpdateOrganizationRequest, _impl_.name_)}}, - // optional string public_namespace = 3 [json_name = "publicNamespace"]; - {::_pbi::TcParser::FastUS1, - {26, 1, 0, PROTOBUF_FIELD_OFFSET(UpdateOrganizationRequest, _impl_.public_namespace_)}}, - // optional string region = 4 [json_name = "region"]; - {::_pbi::TcParser::FastUS1, - {34, 2, 0, PROTOBUF_FIELD_OFFSET(UpdateOrganizationRequest, _impl_.region_)}}, - // optional string cid = 5 [json_name = "cid"]; - {::_pbi::TcParser::FastUS1, - {42, 3, 0, PROTOBUF_FIELD_OFFSET(UpdateOrganizationRequest, _impl_.cid_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string organization_id = 1 [json_name = "organizationId"]; - {PROTOBUF_FIELD_OFFSET(UpdateOrganizationRequest, _impl_.organization_id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // optional string name = 2 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(UpdateOrganizationRequest, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // optional string public_namespace = 3 [json_name = "publicNamespace"]; - {PROTOBUF_FIELD_OFFSET(UpdateOrganizationRequest, _impl_.public_namespace_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // optional string region = 4 [json_name = "region"]; - {PROTOBUF_FIELD_OFFSET(UpdateOrganizationRequest, _impl_.region_), _Internal::kHasBitsOffset + 2, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // optional string cid = 5 [json_name = "cid"]; - {PROTOBUF_FIELD_OFFSET(UpdateOrganizationRequest, _impl_.cid_), _Internal::kHasBitsOffset + 3, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\45\17\4\20\6\3\0\0" - "viam.app.v1.UpdateOrganizationRequest" - "organization_id" - "name" - "public_namespace" - "region" - "cid" - }}, -}; - -::uint8_t* UpdateOrganizationRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* UpdateOrganizationRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.UpdateOrganizationRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string organization_id = 1 [json_name = "organizationId"]; if (!this->_internal_organization_id().empty()) { - const std::string& _s = this->_internal_organization_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.UpdateOrganizationRequest.organization_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_organization_id().data(), static_cast(this->_internal_organization_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.UpdateOrganizationRequest.organization_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_organization_id(), target); } - cached_has_bits = _impl_._has_bits_[0]; // optional string name = 2 [json_name = "name"]; - if (cached_has_bits & 0x00000001u) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.UpdateOrganizationRequest.name"); - target = stream->WriteStringMaybeAliased(2, _s, target); + if (_internal_has_name()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.UpdateOrganizationRequest.name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_name(), target); } // optional string public_namespace = 3 [json_name = "publicNamespace"]; - if (cached_has_bits & 0x00000002u) { - const std::string& _s = this->_internal_public_namespace(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.UpdateOrganizationRequest.public_namespace"); - target = stream->WriteStringMaybeAliased(3, _s, target); + if (_internal_has_public_namespace()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_public_namespace().data(), static_cast(this->_internal_public_namespace().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.UpdateOrganizationRequest.public_namespace"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_public_namespace(), target); } // optional string region = 4 [json_name = "region"]; - if (cached_has_bits & 0x00000004u) { - const std::string& _s = this->_internal_region(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.UpdateOrganizationRequest.region"); - target = stream->WriteStringMaybeAliased(4, _s, target); + if (_internal_has_region()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_region().data(), static_cast(this->_internal_region().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.UpdateOrganizationRequest.region"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_region(), target); } // optional string cid = 5 [json_name = "cid"]; - if (cached_has_bits & 0x00000008u) { - const std::string& _s = this->_internal_cid(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.UpdateOrganizationRequest.cid"); - target = stream->WriteStringMaybeAliased(5, _s, target); + if (_internal_has_cid()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_cid().data(), static_cast(this->_internal_cid().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.UpdateOrganizationRequest.cid"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_cid(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.UpdateOrganizationRequest) return target; } -::size_t UpdateOrganizationRequest::ByteSizeLong() const { +size_t UpdateOrganizationRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.UpdateOrganizationRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string organization_id = 1 [json_name = "organizationId"]; if (!this->_internal_organization_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_organization_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_organization_id()); } - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x0000000fu) { // optional string name = 2 [json_name = "name"]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // optional string public_namespace = 3 [json_name = "publicNamespace"]; if (cached_has_bits & 0x00000002u) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_public_namespace()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_public_namespace()); } // optional string region = 4 [json_name = "region"]; if (cached_has_bits & 0x00000004u) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_region()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_region()); } // optional string cid = 5 [json_name = "cid"]; if (cached_has_bits & 0x00000008u) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_cid()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_cid()); } } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData UpdateOrganizationRequest::_class_data_ = { - UpdateOrganizationRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UpdateOrganizationRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + UpdateOrganizationRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* UpdateOrganizationRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UpdateOrganizationRequest::GetClassData() const { return &_class_data_; } + +void UpdateOrganizationRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void UpdateOrganizationRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.UpdateOrganizationRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void UpdateOrganizationRequest::MergeFrom(const UpdateOrganizationRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.UpdateOrganizationRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_organization_id().empty()) { - _this->_internal_set_organization_id(from._internal_organization_id()); + _internal_set_organization_id(from._internal_organization_id()); } - cached_has_bits = from._impl_._has_bits_[0]; + cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x0000000fu) { if (cached_has_bits & 0x00000001u) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (cached_has_bits & 0x00000002u) { - _this->_internal_set_public_namespace(from._internal_public_namespace()); + _internal_set_public_namespace(from._internal_public_namespace()); } if (cached_has_bits & 0x00000004u) { - _this->_internal_set_region(from._internal_region()); + _internal_set_region(from._internal_region()); } if (cached_has_bits & 0x00000008u) { - _this->_internal_set_cid(from._internal_cid()); + _internal_set_cid(from._internal_cid()); } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void UpdateOrganizationRequest::CopyFrom(const UpdateOrganizationRequest& from) { @@ -12125,210 +11116,206 @@ void UpdateOrganizationRequest::CopyFrom(const UpdateOrganizationRequest& from) MergeFrom(from); } -PROTOBUF_NOINLINE bool UpdateOrganizationRequest::IsInitialized() const { +bool UpdateOrganizationRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* UpdateOrganizationRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void UpdateOrganizationRequest::InternalSwap(UpdateOrganizationRequest* PROTOBUF_RESTRICT other) { +void UpdateOrganizationRequest::InternalSwap(UpdateOrganizationRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.organization_id_, &other->_impl_.organization_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.public_namespace_, &other->_impl_.public_namespace_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.region_, &other->_impl_.region_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.cid_, &other->_impl_.cid_, arena); -} - -::google::protobuf::Metadata UpdateOrganizationRequest::GetMetadata() const { + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &organization_id_, lhs_arena, + &other->organization_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &public_namespace_, lhs_arena, + &other->public_namespace_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + ®ion_, lhs_arena, + &other->region_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &cid_, lhs_arena, + &other->cid_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata UpdateOrganizationRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[15]); } + // =================================================================== class UpdateOrganizationResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(UpdateOrganizationResponse, _impl_._has_bits_); static const ::viam::app::v1::Organization& organization(const UpdateOrganizationResponse* msg); - static void set_has_organization(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::app::v1::Organization& UpdateOrganizationResponse::_Internal::organization(const UpdateOrganizationResponse* msg) { - return *msg->_impl_.organization_; +const ::viam::app::v1::Organization& +UpdateOrganizationResponse::_Internal::organization(const UpdateOrganizationResponse* msg) { + return *msg->organization_; } -UpdateOrganizationResponse::UpdateOrganizationResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +UpdateOrganizationResponse::UpdateOrganizationResponse(::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.UpdateOrganizationResponse) } -inline PROTOBUF_NDEBUG_INLINE UpdateOrganizationResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -UpdateOrganizationResponse::UpdateOrganizationResponse( - ::google::protobuf::Arena* arena, - const UpdateOrganizationResponse& from) - : ::google::protobuf::Message(arena) { - UpdateOrganizationResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.organization_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::app::v1::Organization>(arena, *from._impl_.organization_) - : nullptr; - +UpdateOrganizationResponse::UpdateOrganizationResponse(const UpdateOrganizationResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_organization()) { + organization_ = new ::viam::app::v1::Organization(*from.organization_); + } else { + organization_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.UpdateOrganizationResponse) } -inline PROTOBUF_NDEBUG_INLINE UpdateOrganizationResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void UpdateOrganizationResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.organization_ = {}; +inline void UpdateOrganizationResponse::SharedCtor() { +organization_ = nullptr; } + UpdateOrganizationResponse::~UpdateOrganizationResponse() { // @@protoc_insertion_point(destructor:viam.app.v1.UpdateOrganizationResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void UpdateOrganizationResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.organization_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete organization_; } -PROTOBUF_NOINLINE void UpdateOrganizationResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.UpdateOrganizationResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.organization_ != nullptr); - _impl_.organization_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void UpdateOrganizationResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* UpdateOrganizationResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void UpdateOrganizationResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.UpdateOrganizationResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && organization_ != nullptr) { + delete organization_; + } + organization_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* UpdateOrganizationResponse::_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.app.v1.Organization organization = 1 [json_name = "organization"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_organization(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> UpdateOrganizationResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(UpdateOrganizationResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_UpdateOrganizationResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.app.v1.Organization organization = 1 [json_name = "organization"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(UpdateOrganizationResponse, _impl_.organization_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.app.v1.Organization organization = 1 [json_name = "organization"]; - {PROTOBUF_FIELD_OFFSET(UpdateOrganizationResponse, _impl_.organization_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::Organization>()}, - }}, {{ - }}, -}; - -::uint8_t* UpdateOrganizationResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* UpdateOrganizationResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.UpdateOrganizationResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.app.v1.Organization organization = 1 [json_name = "organization"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::organization(this), + if (this->_internal_has_organization()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::organization(this), _Internal::organization(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.UpdateOrganizationResponse) return target; } -::size_t UpdateOrganizationResponse::ByteSizeLong() const { +size_t UpdateOrganizationResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.UpdateOrganizationResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .viam.app.v1.Organization organization = 1 [json_name = "organization"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.organization_); + if (this->_internal_has_organization()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *organization_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData UpdateOrganizationResponse::_class_data_ = { - UpdateOrganizationResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UpdateOrganizationResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + UpdateOrganizationResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* UpdateOrganizationResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UpdateOrganizationResponse::GetClassData() const { return &_class_data_; } + +void UpdateOrganizationResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void UpdateOrganizationResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.UpdateOrganizationResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void UpdateOrganizationResponse::MergeFrom(const UpdateOrganizationResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.UpdateOrganizationResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_organization()->::viam::app::v1::Organization::MergeFrom( - from._internal_organization()); + if (from._internal_has_organization()) { + _internal_mutable_organization()->::viam::app::v1::Organization::MergeFrom(from._internal_organization()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void UpdateOrganizationResponse::CopyFrom(const UpdateOrganizationResponse& from) { @@ -12338,186 +11325,187 @@ void UpdateOrganizationResponse::CopyFrom(const UpdateOrganizationResponse& from MergeFrom(from); } -PROTOBUF_NOINLINE bool UpdateOrganizationResponse::IsInitialized() const { +bool UpdateOrganizationResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* UpdateOrganizationResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void UpdateOrganizationResponse::InternalSwap(UpdateOrganizationResponse* PROTOBUF_RESTRICT other) { +void UpdateOrganizationResponse::InternalSwap(UpdateOrganizationResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.organization_, other->_impl_.organization_); + swap(organization_, other->organization_); } -::google::protobuf::Metadata UpdateOrganizationResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata UpdateOrganizationResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[16]); } + // =================================================================== class DeleteOrganizationRequest::_Internal { public: }; -DeleteOrganizationRequest::DeleteOrganizationRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +DeleteOrganizationRequest::DeleteOrganizationRequest(::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.DeleteOrganizationRequest) } -inline PROTOBUF_NDEBUG_INLINE DeleteOrganizationRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : organization_id_(arena, from.organization_id_), - _cached_size_{0} {} - -DeleteOrganizationRequest::DeleteOrganizationRequest( - ::google::protobuf::Arena* arena, - const DeleteOrganizationRequest& from) - : ::google::protobuf::Message(arena) { - DeleteOrganizationRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +DeleteOrganizationRequest::DeleteOrganizationRequest(const DeleteOrganizationRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + organization_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_organization_id().empty()) { + organization_id_.Set(from._internal_organization_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.DeleteOrganizationRequest) } -inline PROTOBUF_NDEBUG_INLINE DeleteOrganizationRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : organization_id_(arena), - _cached_size_{0} {} -inline void DeleteOrganizationRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void DeleteOrganizationRequest::SharedCtor() { +organization_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + DeleteOrganizationRequest::~DeleteOrganizationRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.DeleteOrganizationRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void DeleteOrganizationRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.organization_id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + organization_id_.Destroy(); } -PROTOBUF_NOINLINE void DeleteOrganizationRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.DeleteOrganizationRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.organization_id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void DeleteOrganizationRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* DeleteOrganizationRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void DeleteOrganizationRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.DeleteOrganizationRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + organization_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DeleteOrganizationRequest::_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 organization_id = 1 [json_name = "organizationId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_organization_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.DeleteOrganizationRequest.organization_id")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 61, 2> DeleteOrganizationRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_DeleteOrganizationRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string organization_id = 1 [json_name = "organizationId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(DeleteOrganizationRequest, _impl_.organization_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string organization_id = 1 [json_name = "organizationId"]; - {PROTOBUF_FIELD_OFFSET(DeleteOrganizationRequest, _impl_.organization_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\45\17\0\0\0\0\0\0" - "viam.app.v1.DeleteOrganizationRequest" - "organization_id" - }}, -}; - -::uint8_t* DeleteOrganizationRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* DeleteOrganizationRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.DeleteOrganizationRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string organization_id = 1 [json_name = "organizationId"]; if (!this->_internal_organization_id().empty()) { - const std::string& _s = this->_internal_organization_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.DeleteOrganizationRequest.organization_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_organization_id().data(), static_cast(this->_internal_organization_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.DeleteOrganizationRequest.organization_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_organization_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.DeleteOrganizationRequest) return target; } -::size_t DeleteOrganizationRequest::ByteSizeLong() const { +size_t DeleteOrganizationRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.DeleteOrganizationRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string organization_id = 1 [json_name = "organizationId"]; if (!this->_internal_organization_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_organization_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_organization_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData DeleteOrganizationRequest::_class_data_ = { - DeleteOrganizationRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeleteOrganizationRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + DeleteOrganizationRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* DeleteOrganizationRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeleteOrganizationRequest::GetClassData() const { return &_class_data_; } + +void DeleteOrganizationRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void DeleteOrganizationRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.DeleteOrganizationRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void DeleteOrganizationRequest::MergeFrom(const DeleteOrganizationRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.DeleteOrganizationRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_organization_id().empty()) { - _this->_internal_set_organization_id(from._internal_organization_id()); + _internal_set_organization_id(from._internal_organization_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void DeleteOrganizationRequest::CopyFrom(const DeleteOrganizationRequest& from) { @@ -12527,45 +11515,41 @@ void DeleteOrganizationRequest::CopyFrom(const DeleteOrganizationRequest& from) MergeFrom(from); } -PROTOBUF_NOINLINE bool DeleteOrganizationRequest::IsInitialized() const { +bool DeleteOrganizationRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* DeleteOrganizationRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void DeleteOrganizationRequest::InternalSwap(DeleteOrganizationRequest* PROTOBUF_RESTRICT other) { +void DeleteOrganizationRequest::InternalSwap(DeleteOrganizationRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.organization_id_, &other->_impl_.organization_id_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &organization_id_, lhs_arena, + &other->organization_id_, rhs_arena + ); } -::google::protobuf::Metadata DeleteOrganizationRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata DeleteOrganizationRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[17]); } + // =================================================================== class DeleteOrganizationResponse::_Internal { public: }; -DeleteOrganizationResponse::DeleteOrganizationResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +DeleteOrganizationResponse::DeleteOrganizationResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.app.v1.DeleteOrganizationResponse) } -DeleteOrganizationResponse::DeleteOrganizationResponse( - ::google::protobuf::Arena* arena, - const DeleteOrganizationResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - DeleteOrganizationResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +DeleteOrganizationResponse::DeleteOrganizationResponse(const DeleteOrganizationResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.app.v1.DeleteOrganizationResponse) } @@ -12573,176 +11557,189 @@ DeleteOrganizationResponse::DeleteOrganizationResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeleteOrganizationResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeleteOrganizationResponse::GetClassData() const { return &_class_data_; } + + + -::google::protobuf::Metadata DeleteOrganizationResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata DeleteOrganizationResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[18]); } + // =================================================================== class ListOrganizationMembersRequest::_Internal { public: }; -ListOrganizationMembersRequest::ListOrganizationMembersRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ListOrganizationMembersRequest::ListOrganizationMembersRequest(::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.ListOrganizationMembersRequest) } -inline PROTOBUF_NDEBUG_INLINE ListOrganizationMembersRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : organization_id_(arena, from.organization_id_), - _cached_size_{0} {} - -ListOrganizationMembersRequest::ListOrganizationMembersRequest( - ::google::protobuf::Arena* arena, - const ListOrganizationMembersRequest& from) - : ::google::protobuf::Message(arena) { - ListOrganizationMembersRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +ListOrganizationMembersRequest::ListOrganizationMembersRequest(const ListOrganizationMembersRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + organization_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_organization_id().empty()) { + organization_id_.Set(from._internal_organization_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.ListOrganizationMembersRequest) } -inline PROTOBUF_NDEBUG_INLINE ListOrganizationMembersRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : organization_id_(arena), - _cached_size_{0} {} -inline void ListOrganizationMembersRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void ListOrganizationMembersRequest::SharedCtor() { +organization_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + ListOrganizationMembersRequest::~ListOrganizationMembersRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.ListOrganizationMembersRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ListOrganizationMembersRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.organization_id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + organization_id_.Destroy(); } -PROTOBUF_NOINLINE void ListOrganizationMembersRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.ListOrganizationMembersRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.organization_id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void ListOrganizationMembersRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* ListOrganizationMembersRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void ListOrganizationMembersRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.ListOrganizationMembersRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + organization_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListOrganizationMembersRequest::_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 organization_id = 1 [json_name = "organizationId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_organization_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ListOrganizationMembersRequest.organization_id")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 66, 2> ListOrganizationMembersRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_ListOrganizationMembersRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string organization_id = 1 [json_name = "organizationId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ListOrganizationMembersRequest, _impl_.organization_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string organization_id = 1 [json_name = "organizationId"]; - {PROTOBUF_FIELD_OFFSET(ListOrganizationMembersRequest, _impl_.organization_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\52\17\0\0\0\0\0\0" - "viam.app.v1.ListOrganizationMembersRequest" - "organization_id" - }}, -}; - -::uint8_t* ListOrganizationMembersRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ListOrganizationMembersRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ListOrganizationMembersRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string organization_id = 1 [json_name = "organizationId"]; if (!this->_internal_organization_id().empty()) { - const std::string& _s = this->_internal_organization_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ListOrganizationMembersRequest.organization_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_organization_id().data(), static_cast(this->_internal_organization_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ListOrganizationMembersRequest.organization_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_organization_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.ListOrganizationMembersRequest) return target; } -::size_t ListOrganizationMembersRequest::ByteSizeLong() const { +size_t ListOrganizationMembersRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ListOrganizationMembersRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string organization_id = 1 [json_name = "organizationId"]; if (!this->_internal_organization_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_organization_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_organization_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ListOrganizationMembersRequest::_class_data_ = { - ListOrganizationMembersRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListOrganizationMembersRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ListOrganizationMembersRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* ListOrganizationMembersRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListOrganizationMembersRequest::GetClassData() const { return &_class_data_; } + +void ListOrganizationMembersRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ListOrganizationMembersRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ListOrganizationMembersRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ListOrganizationMembersRequest::MergeFrom(const ListOrganizationMembersRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ListOrganizationMembersRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_organization_id().empty()) { - _this->_internal_set_organization_id(from._internal_organization_id()); + _internal_set_organization_id(from._internal_organization_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ListOrganizationMembersRequest::CopyFrom(const ListOrganizationMembersRequest& from) { @@ -12752,239 +11749,256 @@ void ListOrganizationMembersRequest::CopyFrom(const ListOrganizationMembersReque MergeFrom(from); } -PROTOBUF_NOINLINE bool ListOrganizationMembersRequest::IsInitialized() const { +bool ListOrganizationMembersRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* ListOrganizationMembersRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ListOrganizationMembersRequest::InternalSwap(ListOrganizationMembersRequest* PROTOBUF_RESTRICT other) { +void ListOrganizationMembersRequest::InternalSwap(ListOrganizationMembersRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.organization_id_, &other->_impl_.organization_id_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &organization_id_, lhs_arena, + &other->organization_id_, rhs_arena + ); } -::google::protobuf::Metadata ListOrganizationMembersRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ListOrganizationMembersRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[19]); } + // =================================================================== class ListOrganizationMembersResponse::_Internal { public: }; -ListOrganizationMembersResponse::ListOrganizationMembersResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ListOrganizationMembersResponse::ListOrganizationMembersResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + members_(arena), + invites_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.v1.ListOrganizationMembersResponse) } -inline PROTOBUF_NDEBUG_INLINE ListOrganizationMembersResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : members_{visibility, arena, from.members_}, - invites_{visibility, arena, from.invites_}, - organization_id_(arena, from.organization_id_), - _cached_size_{0} {} - -ListOrganizationMembersResponse::ListOrganizationMembersResponse( - ::google::protobuf::Arena* arena, - const ListOrganizationMembersResponse& from) - : ::google::protobuf::Message(arena) { - ListOrganizationMembersResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +ListOrganizationMembersResponse::ListOrganizationMembersResponse(const ListOrganizationMembersResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + members_(from.members_), + invites_(from.invites_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + organization_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_organization_id().empty()) { + organization_id_.Set(from._internal_organization_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.ListOrganizationMembersResponse) } -inline PROTOBUF_NDEBUG_INLINE ListOrganizationMembersResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : members_{visibility, arena}, - invites_{visibility, arena}, - organization_id_(arena), - _cached_size_{0} {} -inline void ListOrganizationMembersResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void ListOrganizationMembersResponse::SharedCtor() { +organization_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + ListOrganizationMembersResponse::~ListOrganizationMembersResponse() { // @@protoc_insertion_point(destructor:viam.app.v1.ListOrganizationMembersResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ListOrganizationMembersResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.organization_id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + organization_id_.Destroy(); } -PROTOBUF_NOINLINE void ListOrganizationMembersResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.ListOrganizationMembersResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.members_.Clear(); - _impl_.invites_.Clear(); - _impl_.organization_id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void ListOrganizationMembersResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* ListOrganizationMembersResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void ListOrganizationMembersResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.ListOrganizationMembersResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + members_.Clear(); + invites_.Clear(); + organization_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListOrganizationMembersResponse::_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 organization_id = 1 [json_name = "organizationId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_organization_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ListOrganizationMembersResponse.organization_id")); + } else + goto handle_unusual; + continue; + // repeated .viam.app.v1.OrganizationMember members = 2 [json_name = "members"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_members(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } else + goto handle_unusual; + continue; + // repeated .viam.app.v1.OrganizationInvite invites = 3 [json_name = "invites"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_invites(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 2, 67, 2> ListOrganizationMembersResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ListOrganizationMembersResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string organization_id = 1 [json_name = "organizationId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ListOrganizationMembersResponse, _impl_.organization_id_)}}, - // repeated .viam.app.v1.OrganizationMember members = 2 [json_name = "members"]; - {::_pbi::TcParser::FastMtR1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(ListOrganizationMembersResponse, _impl_.members_)}}, - // repeated .viam.app.v1.OrganizationInvite invites = 3 [json_name = "invites"]; - {::_pbi::TcParser::FastMtR1, - {26, 63, 1, PROTOBUF_FIELD_OFFSET(ListOrganizationMembersResponse, _impl_.invites_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string organization_id = 1 [json_name = "organizationId"]; - {PROTOBUF_FIELD_OFFSET(ListOrganizationMembersResponse, _impl_.organization_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated .viam.app.v1.OrganizationMember members = 2 [json_name = "members"]; - {PROTOBUF_FIELD_OFFSET(ListOrganizationMembersResponse, _impl_.members_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated .viam.app.v1.OrganizationInvite invites = 3 [json_name = "invites"]; - {PROTOBUF_FIELD_OFFSET(ListOrganizationMembersResponse, _impl_.invites_), 0, 1, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::OrganizationMember>()}, - {::_pbi::TcParser::GetTable<::viam::app::v1::OrganizationInvite>()}, - }}, {{ - "\53\17\0\0\0\0\0\0" - "viam.app.v1.ListOrganizationMembersResponse" - "organization_id" - }}, -}; - -::uint8_t* ListOrganizationMembersResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ListOrganizationMembersResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ListOrganizationMembersResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string organization_id = 1 [json_name = "organizationId"]; if (!this->_internal_organization_id().empty()) { - const std::string& _s = this->_internal_organization_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ListOrganizationMembersResponse.organization_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_organization_id().data(), static_cast(this->_internal_organization_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ListOrganizationMembersResponse.organization_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_organization_id(), target); } // repeated .viam.app.v1.OrganizationMember members = 2 [json_name = "members"]; for (unsigned i = 0, n = static_cast(this->_internal_members_size()); i < n; i++) { - const auto& repfield = this->_internal_members().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_members(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); } // repeated .viam.app.v1.OrganizationInvite invites = 3 [json_name = "invites"]; for (unsigned i = 0, n = static_cast(this->_internal_invites_size()); i < n; i++) { - const auto& repfield = this->_internal_invites().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_invites(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.ListOrganizationMembersResponse) return target; } -::size_t ListOrganizationMembersResponse::ByteSizeLong() const { +size_t ListOrganizationMembersResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ListOrganizationMembersResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.app.v1.OrganizationMember members = 2 [json_name = "members"]; total_size += 1UL * this->_internal_members_size(); - for (const auto& msg : this->_internal_members()) { + for (const auto& msg : this->members_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // repeated .viam.app.v1.OrganizationInvite invites = 3 [json_name = "invites"]; total_size += 1UL * this->_internal_invites_size(); - for (const auto& msg : this->_internal_invites()) { + for (const auto& msg : this->invites_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // string organization_id = 1 [json_name = "organizationId"]; if (!this->_internal_organization_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_organization_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_organization_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ListOrganizationMembersResponse::_class_data_ = { - ListOrganizationMembersResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListOrganizationMembersResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ListOrganizationMembersResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* ListOrganizationMembersResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListOrganizationMembersResponse::GetClassData() const { return &_class_data_; } + +void ListOrganizationMembersResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ListOrganizationMembersResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ListOrganizationMembersResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ListOrganizationMembersResponse::MergeFrom(const ListOrganizationMembersResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ListOrganizationMembersResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_members()->MergeFrom( - from._internal_members()); - _this->_internal_mutable_invites()->MergeFrom( - from._internal_invites()); + members_.MergeFrom(from.members_); + invites_.MergeFrom(from.invites_); if (!from._internal_organization_id().empty()) { - _this->_internal_set_organization_id(from._internal_organization_id()); + _internal_set_organization_id(from._internal_organization_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ListOrganizationMembersResponse::CopyFrom(const ListOrganizationMembersResponse& from) { @@ -12994,276 +12008,305 @@ void ListOrganizationMembersResponse::CopyFrom(const ListOrganizationMembersResp MergeFrom(from); } -PROTOBUF_NOINLINE bool ListOrganizationMembersResponse::IsInitialized() const { +bool ListOrganizationMembersResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* ListOrganizationMembersResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ListOrganizationMembersResponse::InternalSwap(ListOrganizationMembersResponse* PROTOBUF_RESTRICT other) { +void ListOrganizationMembersResponse::InternalSwap(ListOrganizationMembersResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.members_.InternalSwap(&other->_impl_.members_); - _impl_.invites_.InternalSwap(&other->_impl_.invites_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.organization_id_, &other->_impl_.organization_id_, arena); + members_.InternalSwap(&other->members_); + invites_.InternalSwap(&other->invites_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &organization_id_, lhs_arena, + &other->organization_id_, rhs_arena + ); } -::google::protobuf::Metadata ListOrganizationMembersResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ListOrganizationMembersResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[20]); } + // =================================================================== class CreateOrganizationInviteRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(CreateOrganizationInviteRequest, _impl_._has_bits_); + using HasBits = decltype(std::declval()._has_bits_); static void set_has_send_email_invite(HasBits* has_bits) { (*has_bits)[0] |= 1u; } }; -CreateOrganizationInviteRequest::CreateOrganizationInviteRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +CreateOrganizationInviteRequest::CreateOrganizationInviteRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + authorizations_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.v1.CreateOrganizationInviteRequest) } -inline PROTOBUF_NDEBUG_INLINE CreateOrganizationInviteRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - authorizations_{visibility, arena, from.authorizations_}, - organization_id_(arena, from.organization_id_), - email_(arena, from.email_) {} - -CreateOrganizationInviteRequest::CreateOrganizationInviteRequest( - ::google::protobuf::Arena* arena, - const CreateOrganizationInviteRequest& from) - : ::google::protobuf::Message(arena) { - CreateOrganizationInviteRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.send_email_invite_ = from._impl_.send_email_invite_; - +CreateOrganizationInviteRequest::CreateOrganizationInviteRequest(const CreateOrganizationInviteRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_), + authorizations_(from.authorizations_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + organization_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_organization_id().empty()) { + organization_id_.Set(from._internal_organization_id(), + GetArenaForAllocation()); + } + email_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + email_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_email().empty()) { + email_.Set(from._internal_email(), + GetArenaForAllocation()); + } + send_email_invite_ = from.send_email_invite_; // @@protoc_insertion_point(copy_constructor:viam.app.v1.CreateOrganizationInviteRequest) } -inline PROTOBUF_NDEBUG_INLINE CreateOrganizationInviteRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - authorizations_{visibility, arena}, - organization_id_(arena), - email_(arena) {} -inline void CreateOrganizationInviteRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.send_email_invite_ = {}; +inline void CreateOrganizationInviteRequest::SharedCtor() { +organization_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +email_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + email_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +send_email_invite_ = false; } + CreateOrganizationInviteRequest::~CreateOrganizationInviteRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.CreateOrganizationInviteRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void CreateOrganizationInviteRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.organization_id_.Destroy(); - _impl_.email_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + organization_id_.Destroy(); + email_.Destroy(); } -PROTOBUF_NOINLINE void CreateOrganizationInviteRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.CreateOrganizationInviteRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.authorizations_.Clear(); - _impl_.organization_id_.ClearToEmpty(); - _impl_.email_.ClearToEmpty(); - _impl_.send_email_invite_ = false; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void CreateOrganizationInviteRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* CreateOrganizationInviteRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void CreateOrganizationInviteRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.CreateOrganizationInviteRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + authorizations_.Clear(); + organization_id_.ClearToEmpty(); + email_.ClearToEmpty(); + send_email_invite_ = false; + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CreateOrganizationInviteRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string organization_id = 1 [json_name = "organizationId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_organization_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.CreateOrganizationInviteRequest.organization_id")); + } else + goto handle_unusual; + continue; + // string email = 2 [json_name = "email"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_email(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.CreateOrganizationInviteRequest.email")); + } else + goto handle_unusual; + continue; + // repeated .viam.app.v1.Authorization authorizations = 3 [json_name = "authorizations"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_authorizations(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); + } else + goto handle_unusual; + continue; + // optional bool send_email_invite = 4 [json_name = "sendEmailInvite"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + _Internal::set_has_send_email_invite(&has_bits); + send_email_invite_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 1, 72, 2> CreateOrganizationInviteRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(CreateOrganizationInviteRequest, _impl_._has_bits_), - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_CreateOrganizationInviteRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // optional bool send_email_invite = 4 [json_name = "sendEmailInvite"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {32, 0, 0, PROTOBUF_FIELD_OFFSET(CreateOrganizationInviteRequest, _impl_.send_email_invite_)}}, - // string organization_id = 1 [json_name = "organizationId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(CreateOrganizationInviteRequest, _impl_.organization_id_)}}, - // string email = 2 [json_name = "email"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(CreateOrganizationInviteRequest, _impl_.email_)}}, - // repeated .viam.app.v1.Authorization authorizations = 3 [json_name = "authorizations"]; - {::_pbi::TcParser::FastMtR1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(CreateOrganizationInviteRequest, _impl_.authorizations_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string organization_id = 1 [json_name = "organizationId"]; - {PROTOBUF_FIELD_OFFSET(CreateOrganizationInviteRequest, _impl_.organization_id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string email = 2 [json_name = "email"]; - {PROTOBUF_FIELD_OFFSET(CreateOrganizationInviteRequest, _impl_.email_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated .viam.app.v1.Authorization authorizations = 3 [json_name = "authorizations"]; - {PROTOBUF_FIELD_OFFSET(CreateOrganizationInviteRequest, _impl_.authorizations_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // optional bool send_email_invite = 4 [json_name = "sendEmailInvite"]; - {PROTOBUF_FIELD_OFFSET(CreateOrganizationInviteRequest, _impl_.send_email_invite_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::Authorization>()}, - }}, {{ - "\53\17\5\0\0\0\0\0" - "viam.app.v1.CreateOrganizationInviteRequest" - "organization_id" - "email" - }}, -}; - -::uint8_t* CreateOrganizationInviteRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* CreateOrganizationInviteRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.CreateOrganizationInviteRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string organization_id = 1 [json_name = "organizationId"]; if (!this->_internal_organization_id().empty()) { - const std::string& _s = this->_internal_organization_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.CreateOrganizationInviteRequest.organization_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_organization_id().data(), static_cast(this->_internal_organization_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.CreateOrganizationInviteRequest.organization_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_organization_id(), target); } // string email = 2 [json_name = "email"]; if (!this->_internal_email().empty()) { - const std::string& _s = this->_internal_email(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.CreateOrganizationInviteRequest.email"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_email().data(), static_cast(this->_internal_email().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.CreateOrganizationInviteRequest.email"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_email(), target); } // repeated .viam.app.v1.Authorization authorizations = 3 [json_name = "authorizations"]; for (unsigned i = 0, n = static_cast(this->_internal_authorizations_size()); i < n; i++) { - const auto& repfield = this->_internal_authorizations().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_authorizations(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream); } - cached_has_bits = _impl_._has_bits_[0]; // optional bool send_email_invite = 4 [json_name = "sendEmailInvite"]; - if (cached_has_bits & 0x00000001u) { + if (_internal_has_send_email_invite()) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 4, this->_internal_send_email_invite(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(4, this->_internal_send_email_invite(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.CreateOrganizationInviteRequest) return target; } -::size_t CreateOrganizationInviteRequest::ByteSizeLong() const { +size_t CreateOrganizationInviteRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.CreateOrganizationInviteRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.app.v1.Authorization authorizations = 3 [json_name = "authorizations"]; total_size += 1UL * this->_internal_authorizations_size(); - for (const auto& msg : this->_internal_authorizations()) { + for (const auto& msg : this->authorizations_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // string organization_id = 1 [json_name = "organizationId"]; if (!this->_internal_organization_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_organization_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_organization_id()); } // string email = 2 [json_name = "email"]; if (!this->_internal_email().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_email()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_email()); } // optional bool send_email_invite = 4 [json_name = "sendEmailInvite"]; - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData CreateOrganizationInviteRequest::_class_data_ = { - CreateOrganizationInviteRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CreateOrganizationInviteRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CreateOrganizationInviteRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* CreateOrganizationInviteRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CreateOrganizationInviteRequest::GetClassData() const { return &_class_data_; } + +void CreateOrganizationInviteRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void CreateOrganizationInviteRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.CreateOrganizationInviteRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void CreateOrganizationInviteRequest::MergeFrom(const CreateOrganizationInviteRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.CreateOrganizationInviteRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_authorizations()->MergeFrom( - from._internal_authorizations()); + authorizations_.MergeFrom(from.authorizations_); if (!from._internal_organization_id().empty()) { - _this->_internal_set_organization_id(from._internal_organization_id()); + _internal_set_organization_id(from._internal_organization_id()); } if (!from._internal_email().empty()) { - _this->_internal_set_email(from._internal_email()); + _internal_set_email(from._internal_email()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_set_send_email_invite(from._internal_send_email_invite()); + if (from._internal_has_send_email_invite()) { + _internal_set_send_email_invite(from._internal_send_email_invite()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CreateOrganizationInviteRequest::CopyFrom(const CreateOrganizationInviteRequest& from) { @@ -13273,209 +12316,196 @@ void CreateOrganizationInviteRequest::CopyFrom(const CreateOrganizationInviteReq MergeFrom(from); } -PROTOBUF_NOINLINE bool CreateOrganizationInviteRequest::IsInitialized() const { +bool CreateOrganizationInviteRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* CreateOrganizationInviteRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void CreateOrganizationInviteRequest::InternalSwap(CreateOrganizationInviteRequest* PROTOBUF_RESTRICT other) { +void CreateOrganizationInviteRequest::InternalSwap(CreateOrganizationInviteRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.authorizations_.InternalSwap(&other->_impl_.authorizations_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.organization_id_, &other->_impl_.organization_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.email_, &other->_impl_.email_, arena); - swap(_impl_.send_email_invite_, other->_impl_.send_email_invite_); -} - -::google::protobuf::Metadata CreateOrganizationInviteRequest::GetMetadata() const { + swap(_has_bits_[0], other->_has_bits_[0]); + authorizations_.InternalSwap(&other->authorizations_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &organization_id_, lhs_arena, + &other->organization_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &email_, lhs_arena, + &other->email_, rhs_arena + ); + swap(send_email_invite_, other->send_email_invite_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata CreateOrganizationInviteRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[21]); } + // =================================================================== class CreateOrganizationInviteResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(CreateOrganizationInviteResponse, _impl_._has_bits_); static const ::viam::app::v1::OrganizationInvite& invite(const CreateOrganizationInviteResponse* msg); - static void set_has_invite(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::app::v1::OrganizationInvite& CreateOrganizationInviteResponse::_Internal::invite(const CreateOrganizationInviteResponse* msg) { - return *msg->_impl_.invite_; +const ::viam::app::v1::OrganizationInvite& +CreateOrganizationInviteResponse::_Internal::invite(const CreateOrganizationInviteResponse* msg) { + return *msg->invite_; } -CreateOrganizationInviteResponse::CreateOrganizationInviteResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +CreateOrganizationInviteResponse::CreateOrganizationInviteResponse(::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.CreateOrganizationInviteResponse) } -inline PROTOBUF_NDEBUG_INLINE CreateOrganizationInviteResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -CreateOrganizationInviteResponse::CreateOrganizationInviteResponse( - ::google::protobuf::Arena* arena, - const CreateOrganizationInviteResponse& from) - : ::google::protobuf::Message(arena) { - CreateOrganizationInviteResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.invite_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::app::v1::OrganizationInvite>(arena, *from._impl_.invite_) - : nullptr; - +CreateOrganizationInviteResponse::CreateOrganizationInviteResponse(const CreateOrganizationInviteResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_invite()) { + invite_ = new ::viam::app::v1::OrganizationInvite(*from.invite_); + } else { + invite_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.CreateOrganizationInviteResponse) } -inline PROTOBUF_NDEBUG_INLINE CreateOrganizationInviteResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void CreateOrganizationInviteResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.invite_ = {}; +inline void CreateOrganizationInviteResponse::SharedCtor() { +invite_ = nullptr; } + CreateOrganizationInviteResponse::~CreateOrganizationInviteResponse() { // @@protoc_insertion_point(destructor:viam.app.v1.CreateOrganizationInviteResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void CreateOrganizationInviteResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.invite_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete invite_; } -PROTOBUF_NOINLINE void CreateOrganizationInviteResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.CreateOrganizationInviteResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.invite_ != nullptr); - _impl_.invite_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void CreateOrganizationInviteResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* CreateOrganizationInviteResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void CreateOrganizationInviteResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.CreateOrganizationInviteResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && invite_ != nullptr) { + delete invite_; + } + invite_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CreateOrganizationInviteResponse::_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.app.v1.OrganizationInvite invite = 1 [json_name = "invite"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_invite(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> CreateOrganizationInviteResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(CreateOrganizationInviteResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_CreateOrganizationInviteResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.app.v1.OrganizationInvite invite = 1 [json_name = "invite"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(CreateOrganizationInviteResponse, _impl_.invite_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.app.v1.OrganizationInvite invite = 1 [json_name = "invite"]; - {PROTOBUF_FIELD_OFFSET(CreateOrganizationInviteResponse, _impl_.invite_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::OrganizationInvite>()}, - }}, {{ - }}, -}; - -::uint8_t* CreateOrganizationInviteResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* CreateOrganizationInviteResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.CreateOrganizationInviteResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.app.v1.OrganizationInvite invite = 1 [json_name = "invite"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::invite(this), + if (this->_internal_has_invite()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::invite(this), _Internal::invite(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.CreateOrganizationInviteResponse) return target; } -::size_t CreateOrganizationInviteResponse::ByteSizeLong() const { +size_t CreateOrganizationInviteResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.CreateOrganizationInviteResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .viam.app.v1.OrganizationInvite invite = 1 [json_name = "invite"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.invite_); + if (this->_internal_has_invite()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *invite_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData CreateOrganizationInviteResponse::_class_data_ = { - CreateOrganizationInviteResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CreateOrganizationInviteResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CreateOrganizationInviteResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* CreateOrganizationInviteResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CreateOrganizationInviteResponse::GetClassData() const { return &_class_data_; } + +void CreateOrganizationInviteResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void CreateOrganizationInviteResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.CreateOrganizationInviteResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void CreateOrganizationInviteResponse::MergeFrom(const CreateOrganizationInviteResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.CreateOrganizationInviteResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_invite()->::viam::app::v1::OrganizationInvite::MergeFrom( - from._internal_invite()); + if (from._internal_has_invite()) { + _internal_mutable_invite()->::viam::app::v1::OrganizationInvite::MergeFrom(from._internal_invite()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CreateOrganizationInviteResponse::CopyFrom(const CreateOrganizationInviteResponse& from) { @@ -13485,265 +12515,295 @@ void CreateOrganizationInviteResponse::CopyFrom(const CreateOrganizationInviteRe MergeFrom(from); } -PROTOBUF_NOINLINE bool CreateOrganizationInviteResponse::IsInitialized() const { +bool CreateOrganizationInviteResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* CreateOrganizationInviteResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void CreateOrganizationInviteResponse::InternalSwap(CreateOrganizationInviteResponse* PROTOBUF_RESTRICT other) { +void CreateOrganizationInviteResponse::InternalSwap(CreateOrganizationInviteResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.invite_, other->_impl_.invite_); + swap(invite_, other->invite_); } -::google::protobuf::Metadata CreateOrganizationInviteResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata CreateOrganizationInviteResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[22]); } + // =================================================================== class UpdateOrganizationInviteAuthorizationsRequest::_Internal { public: }; -UpdateOrganizationInviteAuthorizationsRequest::UpdateOrganizationInviteAuthorizationsRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +UpdateOrganizationInviteAuthorizationsRequest::UpdateOrganizationInviteAuthorizationsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + add_authorizations_(arena), + remove_authorizations_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest) } -inline PROTOBUF_NDEBUG_INLINE UpdateOrganizationInviteAuthorizationsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : add_authorizations_{visibility, arena, from.add_authorizations_}, - remove_authorizations_{visibility, arena, from.remove_authorizations_}, - organization_id_(arena, from.organization_id_), - email_(arena, from.email_), - _cached_size_{0} {} - -UpdateOrganizationInviteAuthorizationsRequest::UpdateOrganizationInviteAuthorizationsRequest( - ::google::protobuf::Arena* arena, - const UpdateOrganizationInviteAuthorizationsRequest& from) - : ::google::protobuf::Message(arena) { - UpdateOrganizationInviteAuthorizationsRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +UpdateOrganizationInviteAuthorizationsRequest::UpdateOrganizationInviteAuthorizationsRequest(const UpdateOrganizationInviteAuthorizationsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + add_authorizations_(from.add_authorizations_), + remove_authorizations_(from.remove_authorizations_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + organization_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_organization_id().empty()) { + organization_id_.Set(from._internal_organization_id(), + GetArenaForAllocation()); + } + email_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + email_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_email().empty()) { + email_.Set(from._internal_email(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest) } -inline PROTOBUF_NDEBUG_INLINE UpdateOrganizationInviteAuthorizationsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : add_authorizations_{visibility, arena}, - remove_authorizations_{visibility, arena}, - organization_id_(arena), - email_(arena), - _cached_size_{0} {} -inline void UpdateOrganizationInviteAuthorizationsRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void UpdateOrganizationInviteAuthorizationsRequest::SharedCtor() { +organization_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +email_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + email_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + UpdateOrganizationInviteAuthorizationsRequest::~UpdateOrganizationInviteAuthorizationsRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void UpdateOrganizationInviteAuthorizationsRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.organization_id_.Destroy(); - _impl_.email_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + organization_id_.Destroy(); + email_.Destroy(); } -PROTOBUF_NOINLINE void UpdateOrganizationInviteAuthorizationsRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.add_authorizations_.Clear(); - _impl_.remove_authorizations_.Clear(); - _impl_.organization_id_.ClearToEmpty(); - _impl_.email_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void UpdateOrganizationInviteAuthorizationsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* UpdateOrganizationInviteAuthorizationsRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void UpdateOrganizationInviteAuthorizationsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + add_authorizations_.Clear(); + remove_authorizations_.Clear(); + organization_id_.ClearToEmpty(); + email_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* UpdateOrganizationInviteAuthorizationsRequest::_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 organization_id = 1 [json_name = "organizationId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_organization_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest.organization_id")); + } else + goto handle_unusual; + continue; + // string email = 2 [json_name = "email"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_email(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest.email")); + } else + goto handle_unusual; + continue; + // repeated .viam.app.v1.Authorization add_authorizations = 3 [json_name = "addAuthorizations"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_add_authorizations(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); + } else + goto handle_unusual; + continue; + // repeated .viam.app.v1.Authorization remove_authorizations = 4 [json_name = "removeAuthorizations"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_remove_authorizations(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 2, 86, 2> UpdateOrganizationInviteAuthorizationsRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_UpdateOrganizationInviteAuthorizationsRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.app.v1.Authorization remove_authorizations = 4 [json_name = "removeAuthorizations"]; - {::_pbi::TcParser::FastMtR1, - {34, 63, 1, PROTOBUF_FIELD_OFFSET(UpdateOrganizationInviteAuthorizationsRequest, _impl_.remove_authorizations_)}}, - // string organization_id = 1 [json_name = "organizationId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(UpdateOrganizationInviteAuthorizationsRequest, _impl_.organization_id_)}}, - // string email = 2 [json_name = "email"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(UpdateOrganizationInviteAuthorizationsRequest, _impl_.email_)}}, - // repeated .viam.app.v1.Authorization add_authorizations = 3 [json_name = "addAuthorizations"]; - {::_pbi::TcParser::FastMtR1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(UpdateOrganizationInviteAuthorizationsRequest, _impl_.add_authorizations_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string organization_id = 1 [json_name = "organizationId"]; - {PROTOBUF_FIELD_OFFSET(UpdateOrganizationInviteAuthorizationsRequest, _impl_.organization_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string email = 2 [json_name = "email"]; - {PROTOBUF_FIELD_OFFSET(UpdateOrganizationInviteAuthorizationsRequest, _impl_.email_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated .viam.app.v1.Authorization add_authorizations = 3 [json_name = "addAuthorizations"]; - {PROTOBUF_FIELD_OFFSET(UpdateOrganizationInviteAuthorizationsRequest, _impl_.add_authorizations_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated .viam.app.v1.Authorization remove_authorizations = 4 [json_name = "removeAuthorizations"]; - {PROTOBUF_FIELD_OFFSET(UpdateOrganizationInviteAuthorizationsRequest, _impl_.remove_authorizations_), 0, 1, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::Authorization>()}, - {::_pbi::TcParser::GetTable<::viam::app::v1::Authorization>()}, - }}, {{ - "\71\17\5\0\0\0\0\0" - "viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest" - "organization_id" - "email" - }}, -}; - -::uint8_t* UpdateOrganizationInviteAuthorizationsRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* UpdateOrganizationInviteAuthorizationsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string organization_id = 1 [json_name = "organizationId"]; if (!this->_internal_organization_id().empty()) { - const std::string& _s = this->_internal_organization_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest.organization_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_organization_id().data(), static_cast(this->_internal_organization_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest.organization_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_organization_id(), target); } // string email = 2 [json_name = "email"]; if (!this->_internal_email().empty()) { - const std::string& _s = this->_internal_email(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest.email"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_email().data(), static_cast(this->_internal_email().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest.email"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_email(), target); } // repeated .viam.app.v1.Authorization add_authorizations = 3 [json_name = "addAuthorizations"]; for (unsigned i = 0, n = static_cast(this->_internal_add_authorizations_size()); i < n; i++) { - const auto& repfield = this->_internal_add_authorizations().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_add_authorizations(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream); } // repeated .viam.app.v1.Authorization remove_authorizations = 4 [json_name = "removeAuthorizations"]; for (unsigned i = 0, n = static_cast(this->_internal_remove_authorizations_size()); i < n; i++) { - const auto& repfield = this->_internal_remove_authorizations().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_remove_authorizations(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(4, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.UpdateOrganizationInviteAuthorizationsRequest) return target; } -::size_t UpdateOrganizationInviteAuthorizationsRequest::ByteSizeLong() const { +size_t UpdateOrganizationInviteAuthorizationsRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.app.v1.Authorization add_authorizations = 3 [json_name = "addAuthorizations"]; total_size += 1UL * this->_internal_add_authorizations_size(); - for (const auto& msg : this->_internal_add_authorizations()) { + for (const auto& msg : this->add_authorizations_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // repeated .viam.app.v1.Authorization remove_authorizations = 4 [json_name = "removeAuthorizations"]; total_size += 1UL * this->_internal_remove_authorizations_size(); - for (const auto& msg : this->_internal_remove_authorizations()) { + for (const auto& msg : this->remove_authorizations_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // string organization_id = 1 [json_name = "organizationId"]; if (!this->_internal_organization_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_organization_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_organization_id()); } // string email = 2 [json_name = "email"]; if (!this->_internal_email().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_email()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_email()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData UpdateOrganizationInviteAuthorizationsRequest::_class_data_ = { - UpdateOrganizationInviteAuthorizationsRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UpdateOrganizationInviteAuthorizationsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + UpdateOrganizationInviteAuthorizationsRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* UpdateOrganizationInviteAuthorizationsRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UpdateOrganizationInviteAuthorizationsRequest::GetClassData() const { return &_class_data_; } + +void UpdateOrganizationInviteAuthorizationsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void UpdateOrganizationInviteAuthorizationsRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void UpdateOrganizationInviteAuthorizationsRequest::MergeFrom(const UpdateOrganizationInviteAuthorizationsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_add_authorizations()->MergeFrom( - from._internal_add_authorizations()); - _this->_internal_mutable_remove_authorizations()->MergeFrom( - from._internal_remove_authorizations()); + add_authorizations_.MergeFrom(from.add_authorizations_); + remove_authorizations_.MergeFrom(from.remove_authorizations_); if (!from._internal_organization_id().empty()) { - _this->_internal_set_organization_id(from._internal_organization_id()); + _internal_set_organization_id(from._internal_organization_id()); } if (!from._internal_email().empty()) { - _this->_internal_set_email(from._internal_email()); + _internal_set_email(from._internal_email()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void UpdateOrganizationInviteAuthorizationsRequest::CopyFrom(const UpdateOrganizationInviteAuthorizationsRequest& from) { @@ -13753,208 +12813,195 @@ void UpdateOrganizationInviteAuthorizationsRequest::CopyFrom(const UpdateOrganiz MergeFrom(from); } -PROTOBUF_NOINLINE bool UpdateOrganizationInviteAuthorizationsRequest::IsInitialized() const { +bool UpdateOrganizationInviteAuthorizationsRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* UpdateOrganizationInviteAuthorizationsRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void UpdateOrganizationInviteAuthorizationsRequest::InternalSwap(UpdateOrganizationInviteAuthorizationsRequest* PROTOBUF_RESTRICT other) { +void UpdateOrganizationInviteAuthorizationsRequest::InternalSwap(UpdateOrganizationInviteAuthorizationsRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.add_authorizations_.InternalSwap(&other->_impl_.add_authorizations_); - _impl_.remove_authorizations_.InternalSwap(&other->_impl_.remove_authorizations_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.organization_id_, &other->_impl_.organization_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.email_, &other->_impl_.email_, arena); -} - -::google::protobuf::Metadata UpdateOrganizationInviteAuthorizationsRequest::GetMetadata() const { + add_authorizations_.InternalSwap(&other->add_authorizations_); + remove_authorizations_.InternalSwap(&other->remove_authorizations_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &organization_id_, lhs_arena, + &other->organization_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &email_, lhs_arena, + &other->email_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata UpdateOrganizationInviteAuthorizationsRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[23]); } + // =================================================================== class UpdateOrganizationInviteAuthorizationsResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(UpdateOrganizationInviteAuthorizationsResponse, _impl_._has_bits_); static const ::viam::app::v1::OrganizationInvite& invite(const UpdateOrganizationInviteAuthorizationsResponse* msg); - static void set_has_invite(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::app::v1::OrganizationInvite& UpdateOrganizationInviteAuthorizationsResponse::_Internal::invite(const UpdateOrganizationInviteAuthorizationsResponse* msg) { - return *msg->_impl_.invite_; +const ::viam::app::v1::OrganizationInvite& +UpdateOrganizationInviteAuthorizationsResponse::_Internal::invite(const UpdateOrganizationInviteAuthorizationsResponse* msg) { + return *msg->invite_; } -UpdateOrganizationInviteAuthorizationsResponse::UpdateOrganizationInviteAuthorizationsResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +UpdateOrganizationInviteAuthorizationsResponse::UpdateOrganizationInviteAuthorizationsResponse(::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.UpdateOrganizationInviteAuthorizationsResponse) } -inline PROTOBUF_NDEBUG_INLINE UpdateOrganizationInviteAuthorizationsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -UpdateOrganizationInviteAuthorizationsResponse::UpdateOrganizationInviteAuthorizationsResponse( - ::google::protobuf::Arena* arena, - const UpdateOrganizationInviteAuthorizationsResponse& from) - : ::google::protobuf::Message(arena) { - UpdateOrganizationInviteAuthorizationsResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.invite_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::app::v1::OrganizationInvite>(arena, *from._impl_.invite_) - : nullptr; - +UpdateOrganizationInviteAuthorizationsResponse::UpdateOrganizationInviteAuthorizationsResponse(const UpdateOrganizationInviteAuthorizationsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_invite()) { + invite_ = new ::viam::app::v1::OrganizationInvite(*from.invite_); + } else { + invite_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.UpdateOrganizationInviteAuthorizationsResponse) } -inline PROTOBUF_NDEBUG_INLINE UpdateOrganizationInviteAuthorizationsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void UpdateOrganizationInviteAuthorizationsResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.invite_ = {}; +inline void UpdateOrganizationInviteAuthorizationsResponse::SharedCtor() { +invite_ = nullptr; } + UpdateOrganizationInviteAuthorizationsResponse::~UpdateOrganizationInviteAuthorizationsResponse() { // @@protoc_insertion_point(destructor:viam.app.v1.UpdateOrganizationInviteAuthorizationsResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void UpdateOrganizationInviteAuthorizationsResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.invite_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete invite_; } -PROTOBUF_NOINLINE void UpdateOrganizationInviteAuthorizationsResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.UpdateOrganizationInviteAuthorizationsResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.invite_ != nullptr); - _impl_.invite_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void UpdateOrganizationInviteAuthorizationsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* UpdateOrganizationInviteAuthorizationsResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void UpdateOrganizationInviteAuthorizationsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.UpdateOrganizationInviteAuthorizationsResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && invite_ != nullptr) { + delete invite_; + } + invite_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* UpdateOrganizationInviteAuthorizationsResponse::_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.app.v1.OrganizationInvite invite = 1 [json_name = "invite"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_invite(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> UpdateOrganizationInviteAuthorizationsResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(UpdateOrganizationInviteAuthorizationsResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_UpdateOrganizationInviteAuthorizationsResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.app.v1.OrganizationInvite invite = 1 [json_name = "invite"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(UpdateOrganizationInviteAuthorizationsResponse, _impl_.invite_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.app.v1.OrganizationInvite invite = 1 [json_name = "invite"]; - {PROTOBUF_FIELD_OFFSET(UpdateOrganizationInviteAuthorizationsResponse, _impl_.invite_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::OrganizationInvite>()}, - }}, {{ - }}, -}; - -::uint8_t* UpdateOrganizationInviteAuthorizationsResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* UpdateOrganizationInviteAuthorizationsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.UpdateOrganizationInviteAuthorizationsResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.app.v1.OrganizationInvite invite = 1 [json_name = "invite"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::invite(this), + if (this->_internal_has_invite()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::invite(this), _Internal::invite(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.UpdateOrganizationInviteAuthorizationsResponse) return target; } -::size_t UpdateOrganizationInviteAuthorizationsResponse::ByteSizeLong() const { +size_t UpdateOrganizationInviteAuthorizationsResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.UpdateOrganizationInviteAuthorizationsResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .viam.app.v1.OrganizationInvite invite = 1 [json_name = "invite"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.invite_); + if (this->_internal_has_invite()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *invite_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData UpdateOrganizationInviteAuthorizationsResponse::_class_data_ = { - UpdateOrganizationInviteAuthorizationsResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UpdateOrganizationInviteAuthorizationsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + UpdateOrganizationInviteAuthorizationsResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* UpdateOrganizationInviteAuthorizationsResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UpdateOrganizationInviteAuthorizationsResponse::GetClassData() const { return &_class_data_; } + +void UpdateOrganizationInviteAuthorizationsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void UpdateOrganizationInviteAuthorizationsResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.UpdateOrganizationInviteAuthorizationsResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void UpdateOrganizationInviteAuthorizationsResponse::MergeFrom(const UpdateOrganizationInviteAuthorizationsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.UpdateOrganizationInviteAuthorizationsResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_invite()->::viam::app::v1::OrganizationInvite::MergeFrom( - from._internal_invite()); + if (from._internal_has_invite()) { + _internal_mutable_invite()->::viam::app::v1::OrganizationInvite::MergeFrom(from._internal_invite()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void UpdateOrganizationInviteAuthorizationsResponse::CopyFrom(const UpdateOrganizationInviteAuthorizationsResponse& from) { @@ -13964,214 +13011,231 @@ void UpdateOrganizationInviteAuthorizationsResponse::CopyFrom(const UpdateOrgani MergeFrom(from); } -PROTOBUF_NOINLINE bool UpdateOrganizationInviteAuthorizationsResponse::IsInitialized() const { +bool UpdateOrganizationInviteAuthorizationsResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* UpdateOrganizationInviteAuthorizationsResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void UpdateOrganizationInviteAuthorizationsResponse::InternalSwap(UpdateOrganizationInviteAuthorizationsResponse* PROTOBUF_RESTRICT other) { +void UpdateOrganizationInviteAuthorizationsResponse::InternalSwap(UpdateOrganizationInviteAuthorizationsResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.invite_, other->_impl_.invite_); + swap(invite_, other->invite_); } -::google::protobuf::Metadata UpdateOrganizationInviteAuthorizationsResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata UpdateOrganizationInviteAuthorizationsResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[24]); } + // =================================================================== class DeleteOrganizationInviteRequest::_Internal { public: }; -DeleteOrganizationInviteRequest::DeleteOrganizationInviteRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +DeleteOrganizationInviteRequest::DeleteOrganizationInviteRequest(::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.DeleteOrganizationInviteRequest) } -inline PROTOBUF_NDEBUG_INLINE DeleteOrganizationInviteRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : organization_id_(arena, from.organization_id_), - email_(arena, from.email_), - _cached_size_{0} {} - -DeleteOrganizationInviteRequest::DeleteOrganizationInviteRequest( - ::google::protobuf::Arena* arena, - const DeleteOrganizationInviteRequest& from) - : ::google::protobuf::Message(arena) { - DeleteOrganizationInviteRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +DeleteOrganizationInviteRequest::DeleteOrganizationInviteRequest(const DeleteOrganizationInviteRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + organization_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_organization_id().empty()) { + organization_id_.Set(from._internal_organization_id(), + GetArenaForAllocation()); + } + email_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + email_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_email().empty()) { + email_.Set(from._internal_email(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.DeleteOrganizationInviteRequest) } -inline PROTOBUF_NDEBUG_INLINE DeleteOrganizationInviteRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : organization_id_(arena), - email_(arena), - _cached_size_{0} {} -inline void DeleteOrganizationInviteRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void DeleteOrganizationInviteRequest::SharedCtor() { +organization_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +email_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + email_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + DeleteOrganizationInviteRequest::~DeleteOrganizationInviteRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.DeleteOrganizationInviteRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void DeleteOrganizationInviteRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.organization_id_.Destroy(); - _impl_.email_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + organization_id_.Destroy(); + email_.Destroy(); } -PROTOBUF_NOINLINE void DeleteOrganizationInviteRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.DeleteOrganizationInviteRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.organization_id_.ClearToEmpty(); - _impl_.email_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void DeleteOrganizationInviteRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* DeleteOrganizationInviteRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void DeleteOrganizationInviteRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.DeleteOrganizationInviteRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + organization_id_.ClearToEmpty(); + email_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DeleteOrganizationInviteRequest::_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 organization_id = 1 [json_name = "organizationId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_organization_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.DeleteOrganizationInviteRequest.organization_id")); + } else + goto handle_unusual; + continue; + // string email = 2 [json_name = "email"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_email(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.DeleteOrganizationInviteRequest.email")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 72, 2> DeleteOrganizationInviteRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_DeleteOrganizationInviteRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string email = 2 [json_name = "email"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(DeleteOrganizationInviteRequest, _impl_.email_)}}, - // string organization_id = 1 [json_name = "organizationId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(DeleteOrganizationInviteRequest, _impl_.organization_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string organization_id = 1 [json_name = "organizationId"]; - {PROTOBUF_FIELD_OFFSET(DeleteOrganizationInviteRequest, _impl_.organization_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string email = 2 [json_name = "email"]; - {PROTOBUF_FIELD_OFFSET(DeleteOrganizationInviteRequest, _impl_.email_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\53\17\5\0\0\0\0\0" - "viam.app.v1.DeleteOrganizationInviteRequest" - "organization_id" - "email" - }}, -}; - -::uint8_t* DeleteOrganizationInviteRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* DeleteOrganizationInviteRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.DeleteOrganizationInviteRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string organization_id = 1 [json_name = "organizationId"]; if (!this->_internal_organization_id().empty()) { - const std::string& _s = this->_internal_organization_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.DeleteOrganizationInviteRequest.organization_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_organization_id().data(), static_cast(this->_internal_organization_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.DeleteOrganizationInviteRequest.organization_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_organization_id(), target); } // string email = 2 [json_name = "email"]; if (!this->_internal_email().empty()) { - const std::string& _s = this->_internal_email(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.DeleteOrganizationInviteRequest.email"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_email().data(), static_cast(this->_internal_email().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.DeleteOrganizationInviteRequest.email"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_email(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.DeleteOrganizationInviteRequest) return target; } -::size_t DeleteOrganizationInviteRequest::ByteSizeLong() const { +size_t DeleteOrganizationInviteRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.DeleteOrganizationInviteRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string organization_id = 1 [json_name = "organizationId"]; if (!this->_internal_organization_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_organization_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_organization_id()); } // string email = 2 [json_name = "email"]; if (!this->_internal_email().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_email()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_email()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData DeleteOrganizationInviteRequest::_class_data_ = { - DeleteOrganizationInviteRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeleteOrganizationInviteRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + DeleteOrganizationInviteRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* DeleteOrganizationInviteRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeleteOrganizationInviteRequest::GetClassData() const { return &_class_data_; } + +void DeleteOrganizationInviteRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void DeleteOrganizationInviteRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.DeleteOrganizationInviteRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void DeleteOrganizationInviteRequest::MergeFrom(const DeleteOrganizationInviteRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.DeleteOrganizationInviteRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_organization_id().empty()) { - _this->_internal_set_organization_id(from._internal_organization_id()); + _internal_set_organization_id(from._internal_organization_id()); } if (!from._internal_email().empty()) { - _this->_internal_set_email(from._internal_email()); + _internal_set_email(from._internal_email()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void DeleteOrganizationInviteRequest::CopyFrom(const DeleteOrganizationInviteRequest& from) { @@ -14181,46 +13245,45 @@ void DeleteOrganizationInviteRequest::CopyFrom(const DeleteOrganizationInviteReq MergeFrom(from); } -PROTOBUF_NOINLINE bool DeleteOrganizationInviteRequest::IsInitialized() const { +bool DeleteOrganizationInviteRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* DeleteOrganizationInviteRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void DeleteOrganizationInviteRequest::InternalSwap(DeleteOrganizationInviteRequest* PROTOBUF_RESTRICT other) { +void DeleteOrganizationInviteRequest::InternalSwap(DeleteOrganizationInviteRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.organization_id_, &other->_impl_.organization_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.email_, &other->_impl_.email_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &organization_id_, lhs_arena, + &other->organization_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &email_, lhs_arena, + &other->email_, rhs_arena + ); } -::google::protobuf::Metadata DeleteOrganizationInviteRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata DeleteOrganizationInviteRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[25]); } + // =================================================================== class DeleteOrganizationInviteResponse::_Internal { public: }; -DeleteOrganizationInviteResponse::DeleteOrganizationInviteResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +DeleteOrganizationInviteResponse::DeleteOrganizationInviteResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.app.v1.DeleteOrganizationInviteResponse) } -DeleteOrganizationInviteResponse::DeleteOrganizationInviteResponse( - ::google::protobuf::Arena* arena, - const DeleteOrganizationInviteResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - DeleteOrganizationInviteResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +DeleteOrganizationInviteResponse::DeleteOrganizationInviteResponse(const DeleteOrganizationInviteResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.app.v1.DeleteOrganizationInviteResponse) } @@ -14228,204 +13291,233 @@ DeleteOrganizationInviteResponse::DeleteOrganizationInviteResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeleteOrganizationInviteResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeleteOrganizationInviteResponse::GetClassData() const { return &_class_data_; } + + -::google::protobuf::Metadata DeleteOrganizationInviteResponse::GetMetadata() const { + +::PROTOBUF_NAMESPACE_ID::Metadata DeleteOrganizationInviteResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[26]); } + // =================================================================== class ResendOrganizationInviteRequest::_Internal { public: }; -ResendOrganizationInviteRequest::ResendOrganizationInviteRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ResendOrganizationInviteRequest::ResendOrganizationInviteRequest(::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.ResendOrganizationInviteRequest) } -inline PROTOBUF_NDEBUG_INLINE ResendOrganizationInviteRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : organization_id_(arena, from.organization_id_), - email_(arena, from.email_), - _cached_size_{0} {} - -ResendOrganizationInviteRequest::ResendOrganizationInviteRequest( - ::google::protobuf::Arena* arena, - const ResendOrganizationInviteRequest& from) - : ::google::protobuf::Message(arena) { - ResendOrganizationInviteRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +ResendOrganizationInviteRequest::ResendOrganizationInviteRequest(const ResendOrganizationInviteRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + organization_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_organization_id().empty()) { + organization_id_.Set(from._internal_organization_id(), + GetArenaForAllocation()); + } + email_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + email_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_email().empty()) { + email_.Set(from._internal_email(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.ResendOrganizationInviteRequest) } -inline PROTOBUF_NDEBUG_INLINE ResendOrganizationInviteRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : organization_id_(arena), - email_(arena), - _cached_size_{0} {} -inline void ResendOrganizationInviteRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void ResendOrganizationInviteRequest::SharedCtor() { +organization_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +email_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + email_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + ResendOrganizationInviteRequest::~ResendOrganizationInviteRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.ResendOrganizationInviteRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ResendOrganizationInviteRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.organization_id_.Destroy(); - _impl_.email_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + organization_id_.Destroy(); + email_.Destroy(); } -PROTOBUF_NOINLINE void ResendOrganizationInviteRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.ResendOrganizationInviteRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.organization_id_.ClearToEmpty(); - _impl_.email_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void ResendOrganizationInviteRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* ResendOrganizationInviteRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void ResendOrganizationInviteRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.ResendOrganizationInviteRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + organization_id_.ClearToEmpty(); + email_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ResendOrganizationInviteRequest::_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 organization_id = 1 [json_name = "organizationId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_organization_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ResendOrganizationInviteRequest.organization_id")); + } else + goto handle_unusual; + continue; + // string email = 2 [json_name = "email"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_email(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ResendOrganizationInviteRequest.email")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 72, 2> ResendOrganizationInviteRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_ResendOrganizationInviteRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string email = 2 [json_name = "email"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(ResendOrganizationInviteRequest, _impl_.email_)}}, - // string organization_id = 1 [json_name = "organizationId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ResendOrganizationInviteRequest, _impl_.organization_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string organization_id = 1 [json_name = "organizationId"]; - {PROTOBUF_FIELD_OFFSET(ResendOrganizationInviteRequest, _impl_.organization_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string email = 2 [json_name = "email"]; - {PROTOBUF_FIELD_OFFSET(ResendOrganizationInviteRequest, _impl_.email_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\53\17\5\0\0\0\0\0" - "viam.app.v1.ResendOrganizationInviteRequest" - "organization_id" - "email" - }}, -}; - -::uint8_t* ResendOrganizationInviteRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ResendOrganizationInviteRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ResendOrganizationInviteRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string organization_id = 1 [json_name = "organizationId"]; if (!this->_internal_organization_id().empty()) { - const std::string& _s = this->_internal_organization_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ResendOrganizationInviteRequest.organization_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_organization_id().data(), static_cast(this->_internal_organization_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ResendOrganizationInviteRequest.organization_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_organization_id(), target); } // string email = 2 [json_name = "email"]; if (!this->_internal_email().empty()) { - const std::string& _s = this->_internal_email(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ResendOrganizationInviteRequest.email"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_email().data(), static_cast(this->_internal_email().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ResendOrganizationInviteRequest.email"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_email(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.ResendOrganizationInviteRequest) return target; } -::size_t ResendOrganizationInviteRequest::ByteSizeLong() const { +size_t ResendOrganizationInviteRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ResendOrganizationInviteRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string organization_id = 1 [json_name = "organizationId"]; if (!this->_internal_organization_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_organization_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_organization_id()); } // string email = 2 [json_name = "email"]; if (!this->_internal_email().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_email()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_email()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ResendOrganizationInviteRequest::_class_data_ = { - ResendOrganizationInviteRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ResendOrganizationInviteRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ResendOrganizationInviteRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* ResendOrganizationInviteRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ResendOrganizationInviteRequest::GetClassData() const { return &_class_data_; } + +void ResendOrganizationInviteRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ResendOrganizationInviteRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ResendOrganizationInviteRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ResendOrganizationInviteRequest::MergeFrom(const ResendOrganizationInviteRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ResendOrganizationInviteRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_organization_id().empty()) { - _this->_internal_set_organization_id(from._internal_organization_id()); + _internal_set_organization_id(from._internal_organization_id()); } if (!from._internal_email().empty()) { - _this->_internal_set_email(from._internal_email()); + _internal_set_email(from._internal_email()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ResendOrganizationInviteRequest::CopyFrom(const ResendOrganizationInviteRequest& from) { @@ -14435,206 +13527,193 @@ void ResendOrganizationInviteRequest::CopyFrom(const ResendOrganizationInviteReq MergeFrom(from); } -PROTOBUF_NOINLINE bool ResendOrganizationInviteRequest::IsInitialized() const { +bool ResendOrganizationInviteRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* ResendOrganizationInviteRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ResendOrganizationInviteRequest::InternalSwap(ResendOrganizationInviteRequest* PROTOBUF_RESTRICT other) { +void ResendOrganizationInviteRequest::InternalSwap(ResendOrganizationInviteRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.organization_id_, &other->_impl_.organization_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.email_, &other->_impl_.email_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &organization_id_, lhs_arena, + &other->organization_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &email_, lhs_arena, + &other->email_, rhs_arena + ); } -::google::protobuf::Metadata ResendOrganizationInviteRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ResendOrganizationInviteRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[27]); } + // =================================================================== class ResendOrganizationInviteResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ResendOrganizationInviteResponse, _impl_._has_bits_); static const ::viam::app::v1::OrganizationInvite& invite(const ResendOrganizationInviteResponse* msg); - static void set_has_invite(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::app::v1::OrganizationInvite& ResendOrganizationInviteResponse::_Internal::invite(const ResendOrganizationInviteResponse* msg) { - return *msg->_impl_.invite_; +const ::viam::app::v1::OrganizationInvite& +ResendOrganizationInviteResponse::_Internal::invite(const ResendOrganizationInviteResponse* msg) { + return *msg->invite_; } -ResendOrganizationInviteResponse::ResendOrganizationInviteResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ResendOrganizationInviteResponse::ResendOrganizationInviteResponse(::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.ResendOrganizationInviteResponse) } -inline PROTOBUF_NDEBUG_INLINE ResendOrganizationInviteResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -ResendOrganizationInviteResponse::ResendOrganizationInviteResponse( - ::google::protobuf::Arena* arena, - const ResendOrganizationInviteResponse& from) - : ::google::protobuf::Message(arena) { - ResendOrganizationInviteResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.invite_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::app::v1::OrganizationInvite>(arena, *from._impl_.invite_) - : nullptr; - +ResendOrganizationInviteResponse::ResendOrganizationInviteResponse(const ResendOrganizationInviteResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_invite()) { + invite_ = new ::viam::app::v1::OrganizationInvite(*from.invite_); + } else { + invite_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.ResendOrganizationInviteResponse) } -inline PROTOBUF_NDEBUG_INLINE ResendOrganizationInviteResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void ResendOrganizationInviteResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.invite_ = {}; +inline void ResendOrganizationInviteResponse::SharedCtor() { +invite_ = nullptr; } + ResendOrganizationInviteResponse::~ResendOrganizationInviteResponse() { // @@protoc_insertion_point(destructor:viam.app.v1.ResendOrganizationInviteResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ResendOrganizationInviteResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.invite_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete invite_; } -PROTOBUF_NOINLINE void ResendOrganizationInviteResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.ResendOrganizationInviteResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.invite_ != nullptr); - _impl_.invite_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void ResendOrganizationInviteResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* ResendOrganizationInviteResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void ResendOrganizationInviteResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.ResendOrganizationInviteResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && invite_ != nullptr) { + delete invite_; + } + invite_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ResendOrganizationInviteResponse::_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.app.v1.OrganizationInvite invite = 1 [json_name = "invite"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_invite(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ResendOrganizationInviteResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ResendOrganizationInviteResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ResendOrganizationInviteResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.app.v1.OrganizationInvite invite = 1 [json_name = "invite"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(ResendOrganizationInviteResponse, _impl_.invite_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.app.v1.OrganizationInvite invite = 1 [json_name = "invite"]; - {PROTOBUF_FIELD_OFFSET(ResendOrganizationInviteResponse, _impl_.invite_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::OrganizationInvite>()}, - }}, {{ - }}, -}; - -::uint8_t* ResendOrganizationInviteResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ResendOrganizationInviteResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ResendOrganizationInviteResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.app.v1.OrganizationInvite invite = 1 [json_name = "invite"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::invite(this), + if (this->_internal_has_invite()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::invite(this), _Internal::invite(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.ResendOrganizationInviteResponse) return target; } -::size_t ResendOrganizationInviteResponse::ByteSizeLong() const { +size_t ResendOrganizationInviteResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ResendOrganizationInviteResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .viam.app.v1.OrganizationInvite invite = 1 [json_name = "invite"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.invite_); + if (this->_internal_has_invite()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *invite_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ResendOrganizationInviteResponse::_class_data_ = { - ResendOrganizationInviteResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ResendOrganizationInviteResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ResendOrganizationInviteResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* ResendOrganizationInviteResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ResendOrganizationInviteResponse::GetClassData() const { return &_class_data_; } + +void ResendOrganizationInviteResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ResendOrganizationInviteResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ResendOrganizationInviteResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ResendOrganizationInviteResponse::MergeFrom(const ResendOrganizationInviteResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ResendOrganizationInviteResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_invite()->::viam::app::v1::OrganizationInvite::MergeFrom( - from._internal_invite()); + if (from._internal_has_invite()) { + _internal_mutable_invite()->::viam::app::v1::OrganizationInvite::MergeFrom(from._internal_invite()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ResendOrganizationInviteResponse::CopyFrom(const ResendOrganizationInviteResponse& from) { @@ -14644,214 +13723,231 @@ void ResendOrganizationInviteResponse::CopyFrom(const ResendOrganizationInviteRe MergeFrom(from); } -PROTOBUF_NOINLINE bool ResendOrganizationInviteResponse::IsInitialized() const { +bool ResendOrganizationInviteResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* ResendOrganizationInviteResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ResendOrganizationInviteResponse::InternalSwap(ResendOrganizationInviteResponse* PROTOBUF_RESTRICT other) { +void ResendOrganizationInviteResponse::InternalSwap(ResendOrganizationInviteResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.invite_, other->_impl_.invite_); + swap(invite_, other->invite_); } -::google::protobuf::Metadata ResendOrganizationInviteResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ResendOrganizationInviteResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[28]); } + // =================================================================== class DeleteOrganizationMemberRequest::_Internal { public: }; -DeleteOrganizationMemberRequest::DeleteOrganizationMemberRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +DeleteOrganizationMemberRequest::DeleteOrganizationMemberRequest(::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.DeleteOrganizationMemberRequest) } -inline PROTOBUF_NDEBUG_INLINE DeleteOrganizationMemberRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : organization_id_(arena, from.organization_id_), - user_id_(arena, from.user_id_), - _cached_size_{0} {} - -DeleteOrganizationMemberRequest::DeleteOrganizationMemberRequest( - ::google::protobuf::Arena* arena, - const DeleteOrganizationMemberRequest& from) - : ::google::protobuf::Message(arena) { - DeleteOrganizationMemberRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +DeleteOrganizationMemberRequest::DeleteOrganizationMemberRequest(const DeleteOrganizationMemberRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + organization_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_organization_id().empty()) { + organization_id_.Set(from._internal_organization_id(), + GetArenaForAllocation()); + } + user_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + user_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_user_id().empty()) { + user_id_.Set(from._internal_user_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.DeleteOrganizationMemberRequest) } -inline PROTOBUF_NDEBUG_INLINE DeleteOrganizationMemberRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : organization_id_(arena), - user_id_(arena), - _cached_size_{0} {} -inline void DeleteOrganizationMemberRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void DeleteOrganizationMemberRequest::SharedCtor() { +organization_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +user_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + user_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + DeleteOrganizationMemberRequest::~DeleteOrganizationMemberRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.DeleteOrganizationMemberRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void DeleteOrganizationMemberRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.organization_id_.Destroy(); - _impl_.user_id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + organization_id_.Destroy(); + user_id_.Destroy(); } -PROTOBUF_NOINLINE void DeleteOrganizationMemberRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.DeleteOrganizationMemberRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.organization_id_.ClearToEmpty(); - _impl_.user_id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void DeleteOrganizationMemberRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* DeleteOrganizationMemberRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void DeleteOrganizationMemberRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.DeleteOrganizationMemberRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + organization_id_.ClearToEmpty(); + user_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DeleteOrganizationMemberRequest::_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 organization_id = 1 [json_name = "organizationId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_organization_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.DeleteOrganizationMemberRequest.organization_id")); + } else + goto handle_unusual; + continue; + // string user_id = 2 [json_name = "userId"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_user_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.DeleteOrganizationMemberRequest.user_id")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 74, 2> DeleteOrganizationMemberRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_DeleteOrganizationMemberRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string user_id = 2 [json_name = "userId"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(DeleteOrganizationMemberRequest, _impl_.user_id_)}}, - // string organization_id = 1 [json_name = "organizationId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(DeleteOrganizationMemberRequest, _impl_.organization_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string organization_id = 1 [json_name = "organizationId"]; - {PROTOBUF_FIELD_OFFSET(DeleteOrganizationMemberRequest, _impl_.organization_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string user_id = 2 [json_name = "userId"]; - {PROTOBUF_FIELD_OFFSET(DeleteOrganizationMemberRequest, _impl_.user_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\53\17\7\0\0\0\0\0" - "viam.app.v1.DeleteOrganizationMemberRequest" - "organization_id" - "user_id" - }}, -}; - -::uint8_t* DeleteOrganizationMemberRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* DeleteOrganizationMemberRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.DeleteOrganizationMemberRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string organization_id = 1 [json_name = "organizationId"]; if (!this->_internal_organization_id().empty()) { - const std::string& _s = this->_internal_organization_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.DeleteOrganizationMemberRequest.organization_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_organization_id().data(), static_cast(this->_internal_organization_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.DeleteOrganizationMemberRequest.organization_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_organization_id(), target); } // string user_id = 2 [json_name = "userId"]; if (!this->_internal_user_id().empty()) { - const std::string& _s = this->_internal_user_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.DeleteOrganizationMemberRequest.user_id"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_user_id().data(), static_cast(this->_internal_user_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.DeleteOrganizationMemberRequest.user_id"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_user_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.DeleteOrganizationMemberRequest) return target; } -::size_t DeleteOrganizationMemberRequest::ByteSizeLong() const { +size_t DeleteOrganizationMemberRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.DeleteOrganizationMemberRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string organization_id = 1 [json_name = "organizationId"]; if (!this->_internal_organization_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_organization_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_organization_id()); } // string user_id = 2 [json_name = "userId"]; if (!this->_internal_user_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_user_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_user_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData DeleteOrganizationMemberRequest::_class_data_ = { - DeleteOrganizationMemberRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeleteOrganizationMemberRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + DeleteOrganizationMemberRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* DeleteOrganizationMemberRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeleteOrganizationMemberRequest::GetClassData() const { return &_class_data_; } + +void DeleteOrganizationMemberRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void DeleteOrganizationMemberRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.DeleteOrganizationMemberRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void DeleteOrganizationMemberRequest::MergeFrom(const DeleteOrganizationMemberRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.DeleteOrganizationMemberRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_organization_id().empty()) { - _this->_internal_set_organization_id(from._internal_organization_id()); + _internal_set_organization_id(from._internal_organization_id()); } if (!from._internal_user_id().empty()) { - _this->_internal_set_user_id(from._internal_user_id()); + _internal_set_user_id(from._internal_user_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void DeleteOrganizationMemberRequest::CopyFrom(const DeleteOrganizationMemberRequest& from) { @@ -14861,46 +13957,45 @@ void DeleteOrganizationMemberRequest::CopyFrom(const DeleteOrganizationMemberReq MergeFrom(from); } -PROTOBUF_NOINLINE bool DeleteOrganizationMemberRequest::IsInitialized() const { +bool DeleteOrganizationMemberRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* DeleteOrganizationMemberRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void DeleteOrganizationMemberRequest::InternalSwap(DeleteOrganizationMemberRequest* PROTOBUF_RESTRICT other) { +void DeleteOrganizationMemberRequest::InternalSwap(DeleteOrganizationMemberRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.organization_id_, &other->_impl_.organization_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.user_id_, &other->_impl_.user_id_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &organization_id_, lhs_arena, + &other->organization_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &user_id_, lhs_arena, + &other->user_id_, rhs_arena + ); } -::google::protobuf::Metadata DeleteOrganizationMemberRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata DeleteOrganizationMemberRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[29]); } + // =================================================================== class DeleteOrganizationMemberResponse::_Internal { public: }; -DeleteOrganizationMemberResponse::DeleteOrganizationMemberResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +DeleteOrganizationMemberResponse::DeleteOrganizationMemberResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.app.v1.DeleteOrganizationMemberResponse) } -DeleteOrganizationMemberResponse::DeleteOrganizationMemberResponse( - ::google::protobuf::Arena* arena, - const DeleteOrganizationMemberResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - DeleteOrganizationMemberResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +DeleteOrganizationMemberResponse::DeleteOrganizationMemberResponse(const DeleteOrganizationMemberResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.app.v1.DeleteOrganizationMemberResponse) } @@ -14908,304 +14003,377 @@ DeleteOrganizationMemberResponse::DeleteOrganizationMemberResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeleteOrganizationMemberResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeleteOrganizationMemberResponse::GetClassData() const { return &_class_data_; } + + + -::google::protobuf::Metadata DeleteOrganizationMemberResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata DeleteOrganizationMemberResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[30]); } + // =================================================================== class BillingAddress::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(BillingAddress, _impl_._has_bits_); + using HasBits = decltype(std::declval()._has_bits_); static void set_has_address_line_2(HasBits* has_bits) { (*has_bits)[0] |= 1u; } }; -BillingAddress::BillingAddress(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +BillingAddress::BillingAddress(::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.BillingAddress) } -inline PROTOBUF_NDEBUG_INLINE BillingAddress::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - address_line_1_(arena, from.address_line_1_), - address_line_2_(arena, from.address_line_2_), - city_(arena, from.city_), - state_(arena, from.state_), - zipcode_(arena, from.zipcode_) {} - -BillingAddress::BillingAddress( - ::google::protobuf::Arena* arena, - const BillingAddress& from) - : ::google::protobuf::Message(arena) { - BillingAddress* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +BillingAddress::BillingAddress(const BillingAddress& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + address_line_1_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + address_line_1_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_address_line_1().empty()) { + address_line_1_.Set(from._internal_address_line_1(), + GetArenaForAllocation()); + } + address_line_2_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + address_line_2_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (from._internal_has_address_line_2()) { + address_line_2_.Set(from._internal_address_line_2(), + GetArenaForAllocation()); + } + city_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + city_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_city().empty()) { + city_.Set(from._internal_city(), + GetArenaForAllocation()); + } + state_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + state_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_state().empty()) { + state_.Set(from._internal_state(), + GetArenaForAllocation()); + } + zipcode_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + zipcode_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_zipcode().empty()) { + zipcode_.Set(from._internal_zipcode(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.BillingAddress) } -inline PROTOBUF_NDEBUG_INLINE BillingAddress::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - address_line_1_(arena), - address_line_2_(arena), - city_(arena), - state_(arena), - zipcode_(arena) {} -inline void BillingAddress::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void BillingAddress::SharedCtor() { +address_line_1_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + address_line_1_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +address_line_2_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + address_line_2_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +city_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + city_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +state_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + state_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +zipcode_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + zipcode_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + BillingAddress::~BillingAddress() { // @@protoc_insertion_point(destructor:viam.app.v1.BillingAddress) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void BillingAddress::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.address_line_1_.Destroy(); - _impl_.address_line_2_.Destroy(); - _impl_.city_.Destroy(); - _impl_.state_.Destroy(); - _impl_.zipcode_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + address_line_1_.Destroy(); + address_line_2_.Destroy(); + city_.Destroy(); + state_.Destroy(); + zipcode_.Destroy(); +} + +void BillingAddress::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void BillingAddress::Clear() { +void BillingAddress::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.BillingAddress) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.address_line_1_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; + address_line_1_.ClearToEmpty(); + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { - _impl_.address_line_2_.ClearNonDefaultToEmpty(); - } - _impl_.city_.ClearToEmpty(); - _impl_.state_.ClearToEmpty(); - _impl_.zipcode_.ClearToEmpty(); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* BillingAddress::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + address_line_2_.ClearNonDefaultToEmpty(); + } + city_.ClearToEmpty(); + state_.ClearToEmpty(); + zipcode_.ClearToEmpty(); + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* BillingAddress::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string address_line_1 = 1 [json_name = "addressLine1"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_address_line_1(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.BillingAddress.address_line_1")); + } else + goto handle_unusual; + continue; + // optional string address_line_2 = 2 [json_name = "addressLine2"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_address_line_2(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.BillingAddress.address_line_2")); + } else + goto handle_unusual; + continue; + // string city = 3 [json_name = "city"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_city(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.BillingAddress.city")); + } else + goto handle_unusual; + continue; + // string state = 4 [json_name = "state"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_state(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.BillingAddress.state")); + } else + goto handle_unusual; + continue; + // string zipcode = 5 [json_name = "zipcode"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + auto str = _internal_mutable_zipcode(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.BillingAddress.zipcode")); + } 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: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 5, 0, 79, 2> BillingAddress::_table_ = { - { - PROTOBUF_FIELD_OFFSET(BillingAddress, _impl_._has_bits_), - 0, // no _extensions_ - 5, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967264, // skipmap - offsetof(decltype(_table_), field_entries), - 5, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_BillingAddress_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string address_line_1 = 1 [json_name = "addressLine1"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(BillingAddress, _impl_.address_line_1_)}}, - // optional string address_line_2 = 2 [json_name = "addressLine2"]; - {::_pbi::TcParser::FastUS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(BillingAddress, _impl_.address_line_2_)}}, - // string city = 3 [json_name = "city"]; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(BillingAddress, _impl_.city_)}}, - // string state = 4 [json_name = "state"]; - {::_pbi::TcParser::FastUS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(BillingAddress, _impl_.state_)}}, - // string zipcode = 5 [json_name = "zipcode"]; - {::_pbi::TcParser::FastUS1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(BillingAddress, _impl_.zipcode_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string address_line_1 = 1 [json_name = "addressLine1"]; - {PROTOBUF_FIELD_OFFSET(BillingAddress, _impl_.address_line_1_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // optional string address_line_2 = 2 [json_name = "addressLine2"]; - {PROTOBUF_FIELD_OFFSET(BillingAddress, _impl_.address_line_2_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string city = 3 [json_name = "city"]; - {PROTOBUF_FIELD_OFFSET(BillingAddress, _impl_.city_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string state = 4 [json_name = "state"]; - {PROTOBUF_FIELD_OFFSET(BillingAddress, _impl_.state_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string zipcode = 5 [json_name = "zipcode"]; - {PROTOBUF_FIELD_OFFSET(BillingAddress, _impl_.zipcode_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\32\16\16\4\5\7\0\0" - "viam.app.v1.BillingAddress" - "address_line_1" - "address_line_2" - "city" - "state" - "zipcode" - }}, -}; - -::uint8_t* BillingAddress::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* BillingAddress::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.BillingAddress) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string address_line_1 = 1 [json_name = "addressLine1"]; if (!this->_internal_address_line_1().empty()) { - const std::string& _s = this->_internal_address_line_1(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.BillingAddress.address_line_1"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_address_line_1().data(), static_cast(this->_internal_address_line_1().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.BillingAddress.address_line_1"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_address_line_1(), target); } - cached_has_bits = _impl_._has_bits_[0]; // optional string address_line_2 = 2 [json_name = "addressLine2"]; - if (cached_has_bits & 0x00000001u) { - const std::string& _s = this->_internal_address_line_2(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.BillingAddress.address_line_2"); - target = stream->WriteStringMaybeAliased(2, _s, target); + if (_internal_has_address_line_2()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_address_line_2().data(), static_cast(this->_internal_address_line_2().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.BillingAddress.address_line_2"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_address_line_2(), target); } // string city = 3 [json_name = "city"]; if (!this->_internal_city().empty()) { - const std::string& _s = this->_internal_city(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.BillingAddress.city"); - target = stream->WriteStringMaybeAliased(3, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_city().data(), static_cast(this->_internal_city().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.BillingAddress.city"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_city(), target); } // string state = 4 [json_name = "state"]; if (!this->_internal_state().empty()) { - const std::string& _s = this->_internal_state(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.BillingAddress.state"); - target = stream->WriteStringMaybeAliased(4, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_state().data(), static_cast(this->_internal_state().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.BillingAddress.state"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_state(), target); } // string zipcode = 5 [json_name = "zipcode"]; if (!this->_internal_zipcode().empty()) { - const std::string& _s = this->_internal_zipcode(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.BillingAddress.zipcode"); - target = stream->WriteStringMaybeAliased(5, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_zipcode().data(), static_cast(this->_internal_zipcode().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.BillingAddress.zipcode"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_zipcode(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.BillingAddress) return target; } -::size_t BillingAddress::ByteSizeLong() const { +size_t BillingAddress::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.BillingAddress) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string address_line_1 = 1 [json_name = "addressLine1"]; if (!this->_internal_address_line_1().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_address_line_1()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_address_line_1()); } // optional string address_line_2 = 2 [json_name = "addressLine2"]; - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_address_line_2()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_address_line_2()); } // string city = 3 [json_name = "city"]; if (!this->_internal_city().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_city()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_city()); } // string state = 4 [json_name = "state"]; if (!this->_internal_state().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_state()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_state()); } // string zipcode = 5 [json_name = "zipcode"]; if (!this->_internal_zipcode().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_zipcode()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_zipcode()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData BillingAddress::_class_data_ = { - BillingAddress::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData BillingAddress::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + BillingAddress::MergeImpl }; -const ::google::protobuf::Message::ClassData* BillingAddress::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*BillingAddress::GetClassData() const { return &_class_data_; } + +void BillingAddress::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void BillingAddress::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.BillingAddress) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void BillingAddress::MergeFrom(const BillingAddress& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.BillingAddress) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_address_line_1().empty()) { - _this->_internal_set_address_line_1(from._internal_address_line_1()); + _internal_set_address_line_1(from._internal_address_line_1()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_set_address_line_2(from._internal_address_line_2()); + if (from._internal_has_address_line_2()) { + _internal_set_address_line_2(from._internal_address_line_2()); } if (!from._internal_city().empty()) { - _this->_internal_set_city(from._internal_city()); + _internal_set_city(from._internal_city()); } if (!from._internal_state().empty()) { - _this->_internal_set_state(from._internal_state()); + _internal_set_state(from._internal_state()); } if (!from._internal_zipcode().empty()) { - _this->_internal_set_zipcode(from._internal_zipcode()); + _internal_set_zipcode(from._internal_zipcode()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void BillingAddress::CopyFrom(const BillingAddress& from) { @@ -15215,240 +14383,250 @@ void BillingAddress::CopyFrom(const BillingAddress& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool BillingAddress::IsInitialized() const { +bool BillingAddress::IsInitialized() const { return true; } -::_pbi::CachedSize* BillingAddress::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void BillingAddress::InternalSwap(BillingAddress* PROTOBUF_RESTRICT other) { +void BillingAddress::InternalSwap(BillingAddress* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.address_line_1_, &other->_impl_.address_line_1_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.address_line_2_, &other->_impl_.address_line_2_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.city_, &other->_impl_.city_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.state_, &other->_impl_.state_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.zipcode_, &other->_impl_.zipcode_, arena); -} - -::google::protobuf::Metadata BillingAddress::GetMetadata() const { + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &address_line_1_, lhs_arena, + &other->address_line_1_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &address_line_2_, lhs_arena, + &other->address_line_2_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &city_, lhs_arena, + &other->city_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &state_, lhs_arena, + &other->state_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &zipcode_, lhs_arena, + &other->zipcode_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata BillingAddress::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[31]); } + // =================================================================== class EnableBillingServiceRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(EnableBillingServiceRequest, _impl_._has_bits_); static const ::viam::app::v1::BillingAddress& billing_address(const EnableBillingServiceRequest* msg); - static void set_has_billing_address(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::app::v1::BillingAddress& EnableBillingServiceRequest::_Internal::billing_address(const EnableBillingServiceRequest* msg) { - return *msg->_impl_.billing_address_; +const ::viam::app::v1::BillingAddress& +EnableBillingServiceRequest::_Internal::billing_address(const EnableBillingServiceRequest* msg) { + return *msg->billing_address_; } -EnableBillingServiceRequest::EnableBillingServiceRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +EnableBillingServiceRequest::EnableBillingServiceRequest(::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.EnableBillingServiceRequest) } -inline PROTOBUF_NDEBUG_INLINE EnableBillingServiceRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - org_id_(arena, from.org_id_) {} - -EnableBillingServiceRequest::EnableBillingServiceRequest( - ::google::protobuf::Arena* arena, - const EnableBillingServiceRequest& from) - : ::google::protobuf::Message(arena) { - EnableBillingServiceRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.billing_address_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::app::v1::BillingAddress>(arena, *from._impl_.billing_address_) - : nullptr; - +EnableBillingServiceRequest::EnableBillingServiceRequest(const EnableBillingServiceRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + org_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_org_id().empty()) { + org_id_.Set(from._internal_org_id(), + GetArenaForAllocation()); + } + if (from._internal_has_billing_address()) { + billing_address_ = new ::viam::app::v1::BillingAddress(*from.billing_address_); + } else { + billing_address_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.EnableBillingServiceRequest) } -inline PROTOBUF_NDEBUG_INLINE EnableBillingServiceRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - org_id_(arena) {} -inline void EnableBillingServiceRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.billing_address_ = {}; +inline void EnableBillingServiceRequest::SharedCtor() { +org_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +billing_address_ = nullptr; } + EnableBillingServiceRequest::~EnableBillingServiceRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.EnableBillingServiceRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void EnableBillingServiceRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.org_id_.Destroy(); - delete _impl_.billing_address_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + org_id_.Destroy(); + if (this != internal_default_instance()) delete billing_address_; } -PROTOBUF_NOINLINE void EnableBillingServiceRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.EnableBillingServiceRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.org_id_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.billing_address_ != nullptr); - _impl_.billing_address_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void EnableBillingServiceRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* EnableBillingServiceRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void EnableBillingServiceRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.EnableBillingServiceRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + org_id_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && billing_address_ != nullptr) { + delete billing_address_; + } + billing_address_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* EnableBillingServiceRequest::_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 org_id = 1 [json_name = "orgId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_org_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.EnableBillingServiceRequest.org_id")); + } else + goto handle_unusual; + continue; + // .viam.app.v1.BillingAddress billing_address = 2 [json_name = "billingAddress"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_billing_address(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 54, 2> EnableBillingServiceRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(EnableBillingServiceRequest, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_EnableBillingServiceRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.app.v1.BillingAddress billing_address = 2 [json_name = "billingAddress"]; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(EnableBillingServiceRequest, _impl_.billing_address_)}}, - // string org_id = 1 [json_name = "orgId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(EnableBillingServiceRequest, _impl_.org_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string org_id = 1 [json_name = "orgId"]; - {PROTOBUF_FIELD_OFFSET(EnableBillingServiceRequest, _impl_.org_id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .viam.app.v1.BillingAddress billing_address = 2 [json_name = "billingAddress"]; - {PROTOBUF_FIELD_OFFSET(EnableBillingServiceRequest, _impl_.billing_address_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::BillingAddress>()}, - }}, {{ - "\47\6\0\0\0\0\0\0" - "viam.app.v1.EnableBillingServiceRequest" - "org_id" - }}, -}; - -::uint8_t* EnableBillingServiceRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* EnableBillingServiceRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.EnableBillingServiceRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string org_id = 1 [json_name = "orgId"]; if (!this->_internal_org_id().empty()) { - const std::string& _s = this->_internal_org_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.EnableBillingServiceRequest.org_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_org_id().data(), static_cast(this->_internal_org_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.EnableBillingServiceRequest.org_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_org_id(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .viam.app.v1.BillingAddress billing_address = 2 [json_name = "billingAddress"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::billing_address(this), + if (this->_internal_has_billing_address()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::billing_address(this), _Internal::billing_address(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.EnableBillingServiceRequest) return target; } -::size_t EnableBillingServiceRequest::ByteSizeLong() const { +size_t EnableBillingServiceRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.EnableBillingServiceRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string org_id = 1 [json_name = "orgId"]; if (!this->_internal_org_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_org_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_org_id()); } // .viam.app.v1.BillingAddress billing_address = 2 [json_name = "billingAddress"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.billing_address_); + if (this->_internal_has_billing_address()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *billing_address_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData EnableBillingServiceRequest::_class_data_ = { - EnableBillingServiceRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EnableBillingServiceRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + EnableBillingServiceRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* EnableBillingServiceRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EnableBillingServiceRequest::GetClassData() const { return &_class_data_; } + +void EnableBillingServiceRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void EnableBillingServiceRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.EnableBillingServiceRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void EnableBillingServiceRequest::MergeFrom(const EnableBillingServiceRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.EnableBillingServiceRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_org_id().empty()) { - _this->_internal_set_org_id(from._internal_org_id()); + _internal_set_org_id(from._internal_org_id()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_billing_address()->::viam::app::v1::BillingAddress::MergeFrom( - from._internal_billing_address()); + if (from._internal_has_billing_address()) { + _internal_mutable_billing_address()->::viam::app::v1::BillingAddress::MergeFrom(from._internal_billing_address()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void EnableBillingServiceRequest::CopyFrom(const EnableBillingServiceRequest& from) { @@ -15458,47 +14636,42 @@ void EnableBillingServiceRequest::CopyFrom(const EnableBillingServiceRequest& fr MergeFrom(from); } -PROTOBUF_NOINLINE bool EnableBillingServiceRequest::IsInitialized() const { +bool EnableBillingServiceRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* EnableBillingServiceRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void EnableBillingServiceRequest::InternalSwap(EnableBillingServiceRequest* PROTOBUF_RESTRICT other) { +void EnableBillingServiceRequest::InternalSwap(EnableBillingServiceRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.org_id_, &other->_impl_.org_id_, arena); - swap(_impl_.billing_address_, other->_impl_.billing_address_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &org_id_, lhs_arena, + &other->org_id_, rhs_arena + ); + swap(billing_address_, other->billing_address_); } -::google::protobuf::Metadata EnableBillingServiceRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata EnableBillingServiceRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[32]); } + // =================================================================== class EnableBillingServiceResponse::_Internal { public: }; -EnableBillingServiceResponse::EnableBillingServiceResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +EnableBillingServiceResponse::EnableBillingServiceResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.app.v1.EnableBillingServiceResponse) } -EnableBillingServiceResponse::EnableBillingServiceResponse( - ::google::protobuf::Arena* arena, - const EnableBillingServiceResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - EnableBillingServiceResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +EnableBillingServiceResponse::EnableBillingServiceResponse(const EnableBillingServiceResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.app.v1.EnableBillingServiceResponse) } @@ -15506,224 +14679,230 @@ EnableBillingServiceResponse::EnableBillingServiceResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EnableBillingServiceResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EnableBillingServiceResponse::GetClassData() const { return &_class_data_; } + + + -::google::protobuf::Metadata EnableBillingServiceResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata EnableBillingServiceResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[33]); } + // =================================================================== class UpdateBillingServiceRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(UpdateBillingServiceRequest, _impl_._has_bits_); static const ::viam::app::v1::BillingAddress& billing_address(const UpdateBillingServiceRequest* msg); - static void set_has_billing_address(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::app::v1::BillingAddress& UpdateBillingServiceRequest::_Internal::billing_address(const UpdateBillingServiceRequest* msg) { - return *msg->_impl_.billing_address_; +const ::viam::app::v1::BillingAddress& +UpdateBillingServiceRequest::_Internal::billing_address(const UpdateBillingServiceRequest* msg) { + return *msg->billing_address_; } -UpdateBillingServiceRequest::UpdateBillingServiceRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +UpdateBillingServiceRequest::UpdateBillingServiceRequest(::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.UpdateBillingServiceRequest) } -inline PROTOBUF_NDEBUG_INLINE UpdateBillingServiceRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - org_id_(arena, from.org_id_) {} - -UpdateBillingServiceRequest::UpdateBillingServiceRequest( - ::google::protobuf::Arena* arena, - const UpdateBillingServiceRequest& from) - : ::google::protobuf::Message(arena) { - UpdateBillingServiceRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.billing_address_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::app::v1::BillingAddress>(arena, *from._impl_.billing_address_) - : nullptr; - +UpdateBillingServiceRequest::UpdateBillingServiceRequest(const UpdateBillingServiceRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + org_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_org_id().empty()) { + org_id_.Set(from._internal_org_id(), + GetArenaForAllocation()); + } + if (from._internal_has_billing_address()) { + billing_address_ = new ::viam::app::v1::BillingAddress(*from.billing_address_); + } else { + billing_address_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.UpdateBillingServiceRequest) } -inline PROTOBUF_NDEBUG_INLINE UpdateBillingServiceRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - org_id_(arena) {} -inline void UpdateBillingServiceRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.billing_address_ = {}; +inline void UpdateBillingServiceRequest::SharedCtor() { +org_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +billing_address_ = nullptr; } + UpdateBillingServiceRequest::~UpdateBillingServiceRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.UpdateBillingServiceRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void UpdateBillingServiceRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.org_id_.Destroy(); - delete _impl_.billing_address_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + org_id_.Destroy(); + if (this != internal_default_instance()) delete billing_address_; } -PROTOBUF_NOINLINE void UpdateBillingServiceRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.UpdateBillingServiceRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.org_id_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.billing_address_ != nullptr); - _impl_.billing_address_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void UpdateBillingServiceRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* UpdateBillingServiceRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void UpdateBillingServiceRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.UpdateBillingServiceRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + org_id_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && billing_address_ != nullptr) { + delete billing_address_; + } + billing_address_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* UpdateBillingServiceRequest::_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 org_id = 1 [json_name = "orgId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_org_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.UpdateBillingServiceRequest.org_id")); + } else + goto handle_unusual; + continue; + // .viam.app.v1.BillingAddress billing_address = 2 [json_name = "billingAddress"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_billing_address(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 54, 2> UpdateBillingServiceRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(UpdateBillingServiceRequest, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_UpdateBillingServiceRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.app.v1.BillingAddress billing_address = 2 [json_name = "billingAddress"]; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(UpdateBillingServiceRequest, _impl_.billing_address_)}}, - // string org_id = 1 [json_name = "orgId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(UpdateBillingServiceRequest, _impl_.org_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string org_id = 1 [json_name = "orgId"]; - {PROTOBUF_FIELD_OFFSET(UpdateBillingServiceRequest, _impl_.org_id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .viam.app.v1.BillingAddress billing_address = 2 [json_name = "billingAddress"]; - {PROTOBUF_FIELD_OFFSET(UpdateBillingServiceRequest, _impl_.billing_address_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::BillingAddress>()}, - }}, {{ - "\47\6\0\0\0\0\0\0" - "viam.app.v1.UpdateBillingServiceRequest" - "org_id" - }}, -}; - -::uint8_t* UpdateBillingServiceRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* UpdateBillingServiceRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.UpdateBillingServiceRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string org_id = 1 [json_name = "orgId"]; if (!this->_internal_org_id().empty()) { - const std::string& _s = this->_internal_org_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.UpdateBillingServiceRequest.org_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_org_id().data(), static_cast(this->_internal_org_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.UpdateBillingServiceRequest.org_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_org_id(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .viam.app.v1.BillingAddress billing_address = 2 [json_name = "billingAddress"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::billing_address(this), + if (this->_internal_has_billing_address()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::billing_address(this), _Internal::billing_address(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.UpdateBillingServiceRequest) return target; } -::size_t UpdateBillingServiceRequest::ByteSizeLong() const { +size_t UpdateBillingServiceRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.UpdateBillingServiceRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string org_id = 1 [json_name = "orgId"]; if (!this->_internal_org_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_org_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_org_id()); } // .viam.app.v1.BillingAddress billing_address = 2 [json_name = "billingAddress"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.billing_address_); + if (this->_internal_has_billing_address()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *billing_address_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData UpdateBillingServiceRequest::_class_data_ = { - UpdateBillingServiceRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UpdateBillingServiceRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + UpdateBillingServiceRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* UpdateBillingServiceRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UpdateBillingServiceRequest::GetClassData() const { return &_class_data_; } + +void UpdateBillingServiceRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void UpdateBillingServiceRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.UpdateBillingServiceRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void UpdateBillingServiceRequest::MergeFrom(const UpdateBillingServiceRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.UpdateBillingServiceRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_org_id().empty()) { - _this->_internal_set_org_id(from._internal_org_id()); + _internal_set_org_id(from._internal_org_id()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_billing_address()->::viam::app::v1::BillingAddress::MergeFrom( - from._internal_billing_address()); + if (from._internal_has_billing_address()) { + _internal_mutable_billing_address()->::viam::app::v1::BillingAddress::MergeFrom(from._internal_billing_address()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void UpdateBillingServiceRequest::CopyFrom(const UpdateBillingServiceRequest& from) { @@ -15733,47 +14912,42 @@ void UpdateBillingServiceRequest::CopyFrom(const UpdateBillingServiceRequest& fr MergeFrom(from); } -PROTOBUF_NOINLINE bool UpdateBillingServiceRequest::IsInitialized() const { +bool UpdateBillingServiceRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* UpdateBillingServiceRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void UpdateBillingServiceRequest::InternalSwap(UpdateBillingServiceRequest* PROTOBUF_RESTRICT other) { +void UpdateBillingServiceRequest::InternalSwap(UpdateBillingServiceRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.org_id_, &other->_impl_.org_id_, arena); - swap(_impl_.billing_address_, other->_impl_.billing_address_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &org_id_, lhs_arena, + &other->org_id_, rhs_arena + ); + swap(billing_address_, other->billing_address_); } -::google::protobuf::Metadata UpdateBillingServiceRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata UpdateBillingServiceRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[34]); } + // =================================================================== class UpdateBillingServiceResponse::_Internal { public: }; -UpdateBillingServiceResponse::UpdateBillingServiceResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +UpdateBillingServiceResponse::UpdateBillingServiceResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.app.v1.UpdateBillingServiceResponse) } -UpdateBillingServiceResponse::UpdateBillingServiceResponse( - ::google::protobuf::Arena* arena, - const UpdateBillingServiceResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - UpdateBillingServiceResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +UpdateBillingServiceResponse::UpdateBillingServiceResponse(const UpdateBillingServiceResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.app.v1.UpdateBillingServiceResponse) } @@ -15781,176 +14955,189 @@ UpdateBillingServiceResponse::UpdateBillingServiceResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UpdateBillingServiceResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UpdateBillingServiceResponse::GetClassData() const { return &_class_data_; } + + + -::google::protobuf::Metadata UpdateBillingServiceResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata UpdateBillingServiceResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[35]); } + // =================================================================== class GetBillingServiceConfigRequest::_Internal { public: }; -GetBillingServiceConfigRequest::GetBillingServiceConfigRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetBillingServiceConfigRequest::GetBillingServiceConfigRequest(::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.GetBillingServiceConfigRequest) } -inline PROTOBUF_NDEBUG_INLINE GetBillingServiceConfigRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : org_id_(arena, from.org_id_), - _cached_size_{0} {} - -GetBillingServiceConfigRequest::GetBillingServiceConfigRequest( - ::google::protobuf::Arena* arena, - const GetBillingServiceConfigRequest& from) - : ::google::protobuf::Message(arena) { - GetBillingServiceConfigRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetBillingServiceConfigRequest::GetBillingServiceConfigRequest(const GetBillingServiceConfigRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + org_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_org_id().empty()) { + org_id_.Set(from._internal_org_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetBillingServiceConfigRequest) } -inline PROTOBUF_NDEBUG_INLINE GetBillingServiceConfigRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : org_id_(arena), - _cached_size_{0} {} -inline void GetBillingServiceConfigRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetBillingServiceConfigRequest::SharedCtor() { +org_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + GetBillingServiceConfigRequest::~GetBillingServiceConfigRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.GetBillingServiceConfigRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetBillingServiceConfigRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.org_id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + org_id_.Destroy(); } -PROTOBUF_NOINLINE void GetBillingServiceConfigRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetBillingServiceConfigRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.org_id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void GetBillingServiceConfigRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* GetBillingServiceConfigRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void GetBillingServiceConfigRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetBillingServiceConfigRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + org_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetBillingServiceConfigRequest::_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 org_id = 1 [json_name = "orgId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_org_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.GetBillingServiceConfigRequest.org_id")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 57, 2> GetBillingServiceConfigRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetBillingServiceConfigRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string org_id = 1 [json_name = "orgId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetBillingServiceConfigRequest, _impl_.org_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string org_id = 1 [json_name = "orgId"]; - {PROTOBUF_FIELD_OFFSET(GetBillingServiceConfigRequest, _impl_.org_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\52\6\0\0\0\0\0\0" - "viam.app.v1.GetBillingServiceConfigRequest" - "org_id" - }}, -}; - -::uint8_t* GetBillingServiceConfigRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetBillingServiceConfigRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetBillingServiceConfigRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string org_id = 1 [json_name = "orgId"]; if (!this->_internal_org_id().empty()) { - const std::string& _s = this->_internal_org_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.GetBillingServiceConfigRequest.org_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_org_id().data(), static_cast(this->_internal_org_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.GetBillingServiceConfigRequest.org_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_org_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.GetBillingServiceConfigRequest) return target; } -::size_t GetBillingServiceConfigRequest::ByteSizeLong() const { +size_t GetBillingServiceConfigRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetBillingServiceConfigRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string org_id = 1 [json_name = "orgId"]; if (!this->_internal_org_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_org_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_org_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetBillingServiceConfigRequest::_class_data_ = { - GetBillingServiceConfigRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetBillingServiceConfigRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetBillingServiceConfigRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetBillingServiceConfigRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetBillingServiceConfigRequest::GetClassData() const { return &_class_data_; } + +void GetBillingServiceConfigRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetBillingServiceConfigRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetBillingServiceConfigRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetBillingServiceConfigRequest::MergeFrom(const GetBillingServiceConfigRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetBillingServiceConfigRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_org_id().empty()) { - _this->_internal_set_org_id(from._internal_org_id()); + _internal_set_org_id(from._internal_org_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetBillingServiceConfigRequest::CopyFrom(const GetBillingServiceConfigRequest& from) { @@ -15960,291 +15147,321 @@ void GetBillingServiceConfigRequest::CopyFrom(const GetBillingServiceConfigReque MergeFrom(from); } -PROTOBUF_NOINLINE bool GetBillingServiceConfigRequest::IsInitialized() const { +bool GetBillingServiceConfigRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetBillingServiceConfigRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetBillingServiceConfigRequest::InternalSwap(GetBillingServiceConfigRequest* PROTOBUF_RESTRICT other) { +void GetBillingServiceConfigRequest::InternalSwap(GetBillingServiceConfigRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.org_id_, &other->_impl_.org_id_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &org_id_, lhs_arena, + &other->org_id_, rhs_arena + ); } -::google::protobuf::Metadata GetBillingServiceConfigRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetBillingServiceConfigRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[36]); } + // =================================================================== class GetBillingServiceConfigResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetBillingServiceConfigResponse, _impl_._has_bits_); static const ::viam::app::v1::BillingAddress& billing_address(const GetBillingServiceConfigResponse* msg); - static void set_has_billing_address(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::app::v1::BillingAddress& GetBillingServiceConfigResponse::_Internal::billing_address(const GetBillingServiceConfigResponse* msg) { - return *msg->_impl_.billing_address_; +const ::viam::app::v1::BillingAddress& +GetBillingServiceConfigResponse::_Internal::billing_address(const GetBillingServiceConfigResponse* msg) { + return *msg->billing_address_; } -GetBillingServiceConfigResponse::GetBillingServiceConfigResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetBillingServiceConfigResponse::GetBillingServiceConfigResponse(::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.GetBillingServiceConfigResponse) } -inline PROTOBUF_NDEBUG_INLINE GetBillingServiceConfigResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - support_email_(arena, from.support_email_), - logo_url_(arena, from.logo_url_), - billing_dashboard_url_(arena, from.billing_dashboard_url_) {} - -GetBillingServiceConfigResponse::GetBillingServiceConfigResponse( - ::google::protobuf::Arena* arena, - const GetBillingServiceConfigResponse& from) - : ::google::protobuf::Message(arena) { - GetBillingServiceConfigResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.billing_address_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::app::v1::BillingAddress>(arena, *from._impl_.billing_address_) - : nullptr; - +GetBillingServiceConfigResponse::GetBillingServiceConfigResponse(const GetBillingServiceConfigResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + support_email_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + support_email_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_support_email().empty()) { + support_email_.Set(from._internal_support_email(), + GetArenaForAllocation()); + } + logo_url_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + logo_url_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_logo_url().empty()) { + logo_url_.Set(from._internal_logo_url(), + GetArenaForAllocation()); + } + billing_dashboard_url_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + billing_dashboard_url_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_billing_dashboard_url().empty()) { + billing_dashboard_url_.Set(from._internal_billing_dashboard_url(), + GetArenaForAllocation()); + } + if (from._internal_has_billing_address()) { + billing_address_ = new ::viam::app::v1::BillingAddress(*from.billing_address_); + } else { + billing_address_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetBillingServiceConfigResponse) } -inline PROTOBUF_NDEBUG_INLINE GetBillingServiceConfigResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - support_email_(arena), - logo_url_(arena), - billing_dashboard_url_(arena) {} -inline void GetBillingServiceConfigResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.billing_address_ = {}; +inline void GetBillingServiceConfigResponse::SharedCtor() { +support_email_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + support_email_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +logo_url_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + logo_url_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +billing_dashboard_url_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + billing_dashboard_url_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +billing_address_ = nullptr; } + GetBillingServiceConfigResponse::~GetBillingServiceConfigResponse() { // @@protoc_insertion_point(destructor:viam.app.v1.GetBillingServiceConfigResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetBillingServiceConfigResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.support_email_.Destroy(); - _impl_.logo_url_.Destroy(); - _impl_.billing_dashboard_url_.Destroy(); - delete _impl_.billing_address_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + support_email_.Destroy(); + logo_url_.Destroy(); + billing_dashboard_url_.Destroy(); + if (this != internal_default_instance()) delete billing_address_; } -PROTOBUF_NOINLINE void GetBillingServiceConfigResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetBillingServiceConfigResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.support_email_.ClearToEmpty(); - _impl_.logo_url_.ClearToEmpty(); - _impl_.billing_dashboard_url_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.billing_address_ != nullptr); - _impl_.billing_address_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void GetBillingServiceConfigResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* GetBillingServiceConfigResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void GetBillingServiceConfigResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetBillingServiceConfigResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + support_email_.ClearToEmpty(); + logo_url_.ClearToEmpty(); + billing_dashboard_url_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && billing_address_ != nullptr) { + delete billing_address_; + } + billing_address_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetBillingServiceConfigResponse::_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.app.v1.BillingAddress billing_address = 1 [json_name = "billingAddress"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_billing_address(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string support_email = 2 [json_name = "supportEmail"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_support_email(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.GetBillingServiceConfigResponse.support_email")); + } else + goto handle_unusual; + continue; + // string logo_url = 3 [json_name = "logoUrl"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_logo_url(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.GetBillingServiceConfigResponse.logo_url")); + } else + goto handle_unusual; + continue; + // string billing_dashboard_url = 4 [json_name = "billingDashboardUrl"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_billing_dashboard_url(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.GetBillingServiceConfigResponse.billing_dashboard_url")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 1, 94, 2> GetBillingServiceConfigResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetBillingServiceConfigResponse, _impl_._has_bits_), - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetBillingServiceConfigResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string billing_dashboard_url = 4 [json_name = "billingDashboardUrl"]; - {::_pbi::TcParser::FastUS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(GetBillingServiceConfigResponse, _impl_.billing_dashboard_url_)}}, - // .viam.app.v1.BillingAddress billing_address = 1 [json_name = "billingAddress"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetBillingServiceConfigResponse, _impl_.billing_address_)}}, - // string support_email = 2 [json_name = "supportEmail"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(GetBillingServiceConfigResponse, _impl_.support_email_)}}, - // string logo_url = 3 [json_name = "logoUrl"]; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(GetBillingServiceConfigResponse, _impl_.logo_url_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.app.v1.BillingAddress billing_address = 1 [json_name = "billingAddress"]; - {PROTOBUF_FIELD_OFFSET(GetBillingServiceConfigResponse, _impl_.billing_address_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // string support_email = 2 [json_name = "supportEmail"]; - {PROTOBUF_FIELD_OFFSET(GetBillingServiceConfigResponse, _impl_.support_email_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string logo_url = 3 [json_name = "logoUrl"]; - {PROTOBUF_FIELD_OFFSET(GetBillingServiceConfigResponse, _impl_.logo_url_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string billing_dashboard_url = 4 [json_name = "billingDashboardUrl"]; - {PROTOBUF_FIELD_OFFSET(GetBillingServiceConfigResponse, _impl_.billing_dashboard_url_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::BillingAddress>()}, - }}, {{ - "\53\0\15\10\25\0\0\0" - "viam.app.v1.GetBillingServiceConfigResponse" - "support_email" - "logo_url" - "billing_dashboard_url" - }}, -}; - -::uint8_t* GetBillingServiceConfigResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetBillingServiceConfigResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetBillingServiceConfigResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.app.v1.BillingAddress billing_address = 1 [json_name = "billingAddress"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::billing_address(this), + if (this->_internal_has_billing_address()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::billing_address(this), _Internal::billing_address(this).GetCachedSize(), target, stream); } // string support_email = 2 [json_name = "supportEmail"]; if (!this->_internal_support_email().empty()) { - const std::string& _s = this->_internal_support_email(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.GetBillingServiceConfigResponse.support_email"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_support_email().data(), static_cast(this->_internal_support_email().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.GetBillingServiceConfigResponse.support_email"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_support_email(), target); } // string logo_url = 3 [json_name = "logoUrl"]; if (!this->_internal_logo_url().empty()) { - const std::string& _s = this->_internal_logo_url(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.GetBillingServiceConfigResponse.logo_url"); - target = stream->WriteStringMaybeAliased(3, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_logo_url().data(), static_cast(this->_internal_logo_url().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.GetBillingServiceConfigResponse.logo_url"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_logo_url(), target); } // string billing_dashboard_url = 4 [json_name = "billingDashboardUrl"]; if (!this->_internal_billing_dashboard_url().empty()) { - const std::string& _s = this->_internal_billing_dashboard_url(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.GetBillingServiceConfigResponse.billing_dashboard_url"); - target = stream->WriteStringMaybeAliased(4, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_billing_dashboard_url().data(), static_cast(this->_internal_billing_dashboard_url().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.GetBillingServiceConfigResponse.billing_dashboard_url"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_billing_dashboard_url(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.GetBillingServiceConfigResponse) return target; } -::size_t GetBillingServiceConfigResponse::ByteSizeLong() const { +size_t GetBillingServiceConfigResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetBillingServiceConfigResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string support_email = 2 [json_name = "supportEmail"]; if (!this->_internal_support_email().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_support_email()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_support_email()); } // string logo_url = 3 [json_name = "logoUrl"]; if (!this->_internal_logo_url().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_logo_url()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_logo_url()); } // string billing_dashboard_url = 4 [json_name = "billingDashboardUrl"]; if (!this->_internal_billing_dashboard_url().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_billing_dashboard_url()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_billing_dashboard_url()); } // .viam.app.v1.BillingAddress billing_address = 1 [json_name = "billingAddress"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.billing_address_); + if (this->_internal_has_billing_address()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *billing_address_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetBillingServiceConfigResponse::_class_data_ = { - GetBillingServiceConfigResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetBillingServiceConfigResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetBillingServiceConfigResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetBillingServiceConfigResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetBillingServiceConfigResponse::GetClassData() const { return &_class_data_; } + +void GetBillingServiceConfigResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetBillingServiceConfigResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetBillingServiceConfigResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetBillingServiceConfigResponse::MergeFrom(const GetBillingServiceConfigResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetBillingServiceConfigResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_support_email().empty()) { - _this->_internal_set_support_email(from._internal_support_email()); + _internal_set_support_email(from._internal_support_email()); } if (!from._internal_logo_url().empty()) { - _this->_internal_set_logo_url(from._internal_logo_url()); + _internal_set_logo_url(from._internal_logo_url()); } if (!from._internal_billing_dashboard_url().empty()) { - _this->_internal_set_billing_dashboard_url(from._internal_billing_dashboard_url()); + _internal_set_billing_dashboard_url(from._internal_billing_dashboard_url()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_billing_address()->::viam::app::v1::BillingAddress::MergeFrom( - from._internal_billing_address()); + if (from._internal_has_billing_address()) { + _internal_mutable_billing_address()->::viam::app::v1::BillingAddress::MergeFrom(from._internal_billing_address()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetBillingServiceConfigResponse::CopyFrom(const GetBillingServiceConfigResponse& from) { @@ -16254,191 +15471,201 @@ void GetBillingServiceConfigResponse::CopyFrom(const GetBillingServiceConfigResp MergeFrom(from); } -PROTOBUF_NOINLINE bool GetBillingServiceConfigResponse::IsInitialized() const { +bool GetBillingServiceConfigResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetBillingServiceConfigResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetBillingServiceConfigResponse::InternalSwap(GetBillingServiceConfigResponse* PROTOBUF_RESTRICT other) { +void GetBillingServiceConfigResponse::InternalSwap(GetBillingServiceConfigResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.support_email_, &other->_impl_.support_email_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.logo_url_, &other->_impl_.logo_url_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.billing_dashboard_url_, &other->_impl_.billing_dashboard_url_, arena); - swap(_impl_.billing_address_, other->_impl_.billing_address_); -} - -::google::protobuf::Metadata GetBillingServiceConfigResponse::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &support_email_, lhs_arena, + &other->support_email_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &logo_url_, lhs_arena, + &other->logo_url_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &billing_dashboard_url_, lhs_arena, + &other->billing_dashboard_url_, rhs_arena + ); + swap(billing_address_, other->billing_address_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetBillingServiceConfigResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[37]); } + // =================================================================== class DisableBillingServiceRequest::_Internal { public: }; -DisableBillingServiceRequest::DisableBillingServiceRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +DisableBillingServiceRequest::DisableBillingServiceRequest(::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.DisableBillingServiceRequest) } -inline PROTOBUF_NDEBUG_INLINE DisableBillingServiceRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : org_id_(arena, from.org_id_), - _cached_size_{0} {} - -DisableBillingServiceRequest::DisableBillingServiceRequest( - ::google::protobuf::Arena* arena, - const DisableBillingServiceRequest& from) - : ::google::protobuf::Message(arena) { - DisableBillingServiceRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +DisableBillingServiceRequest::DisableBillingServiceRequest(const DisableBillingServiceRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + org_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_org_id().empty()) { + org_id_.Set(from._internal_org_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.DisableBillingServiceRequest) } -inline PROTOBUF_NDEBUG_INLINE DisableBillingServiceRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : org_id_(arena), - _cached_size_{0} {} -inline void DisableBillingServiceRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void DisableBillingServiceRequest::SharedCtor() { +org_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + DisableBillingServiceRequest::~DisableBillingServiceRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.DisableBillingServiceRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void DisableBillingServiceRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.org_id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + org_id_.Destroy(); } -PROTOBUF_NOINLINE void DisableBillingServiceRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.DisableBillingServiceRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.org_id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void DisableBillingServiceRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* DisableBillingServiceRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void DisableBillingServiceRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.DisableBillingServiceRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + org_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DisableBillingServiceRequest::_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 org_id = 1 [json_name = "orgId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_org_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.DisableBillingServiceRequest.org_id")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 55, 2> DisableBillingServiceRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_DisableBillingServiceRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string org_id = 1 [json_name = "orgId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(DisableBillingServiceRequest, _impl_.org_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string org_id = 1 [json_name = "orgId"]; - {PROTOBUF_FIELD_OFFSET(DisableBillingServiceRequest, _impl_.org_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\50\6\0\0\0\0\0\0" - "viam.app.v1.DisableBillingServiceRequest" - "org_id" - }}, -}; - -::uint8_t* DisableBillingServiceRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* DisableBillingServiceRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.DisableBillingServiceRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string org_id = 1 [json_name = "orgId"]; if (!this->_internal_org_id().empty()) { - const std::string& _s = this->_internal_org_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.DisableBillingServiceRequest.org_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_org_id().data(), static_cast(this->_internal_org_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.DisableBillingServiceRequest.org_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_org_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.DisableBillingServiceRequest) return target; } -::size_t DisableBillingServiceRequest::ByteSizeLong() const { +size_t DisableBillingServiceRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.DisableBillingServiceRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string org_id = 1 [json_name = "orgId"]; if (!this->_internal_org_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_org_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_org_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData DisableBillingServiceRequest::_class_data_ = { - DisableBillingServiceRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DisableBillingServiceRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + DisableBillingServiceRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* DisableBillingServiceRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DisableBillingServiceRequest::GetClassData() const { return &_class_data_; } + +void DisableBillingServiceRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void DisableBillingServiceRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.DisableBillingServiceRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void DisableBillingServiceRequest::MergeFrom(const DisableBillingServiceRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.DisableBillingServiceRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_org_id().empty()) { - _this->_internal_set_org_id(from._internal_org_id()); + _internal_set_org_id(from._internal_org_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void DisableBillingServiceRequest::CopyFrom(const DisableBillingServiceRequest& from) { @@ -16448,45 +15675,41 @@ void DisableBillingServiceRequest::CopyFrom(const DisableBillingServiceRequest& MergeFrom(from); } -PROTOBUF_NOINLINE bool DisableBillingServiceRequest::IsInitialized() const { +bool DisableBillingServiceRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* DisableBillingServiceRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void DisableBillingServiceRequest::InternalSwap(DisableBillingServiceRequest* PROTOBUF_RESTRICT other) { +void DisableBillingServiceRequest::InternalSwap(DisableBillingServiceRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.org_id_, &other->_impl_.org_id_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &org_id_, lhs_arena, + &other->org_id_, rhs_arena + ); } -::google::protobuf::Metadata DisableBillingServiceRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata DisableBillingServiceRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[38]); } + // =================================================================== class DisableBillingServiceResponse::_Internal { public: }; -DisableBillingServiceResponse::DisableBillingServiceResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +DisableBillingServiceResponse::DisableBillingServiceResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.app.v1.DisableBillingServiceResponse) } -DisableBillingServiceResponse::DisableBillingServiceResponse( - ::google::protobuf::Arena* arena, - const DisableBillingServiceResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - DisableBillingServiceResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +DisableBillingServiceResponse::DisableBillingServiceResponse(const DisableBillingServiceResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.app.v1.DisableBillingServiceResponse) } @@ -16494,204 +15717,233 @@ DisableBillingServiceResponse::DisableBillingServiceResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DisableBillingServiceResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DisableBillingServiceResponse::GetClassData() const { return &_class_data_; } + + -::google::protobuf::Metadata DisableBillingServiceResponse::GetMetadata() const { + +::PROTOBUF_NAMESPACE_ID::Metadata DisableBillingServiceResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[39]); } + // =================================================================== class OrganizationSetSupportEmailRequest::_Internal { public: }; -OrganizationSetSupportEmailRequest::OrganizationSetSupportEmailRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +OrganizationSetSupportEmailRequest::OrganizationSetSupportEmailRequest(::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.OrganizationSetSupportEmailRequest) } -inline PROTOBUF_NDEBUG_INLINE OrganizationSetSupportEmailRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : org_id_(arena, from.org_id_), - email_(arena, from.email_), - _cached_size_{0} {} - -OrganizationSetSupportEmailRequest::OrganizationSetSupportEmailRequest( - ::google::protobuf::Arena* arena, - const OrganizationSetSupportEmailRequest& from) - : ::google::protobuf::Message(arena) { - OrganizationSetSupportEmailRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +OrganizationSetSupportEmailRequest::OrganizationSetSupportEmailRequest(const OrganizationSetSupportEmailRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + org_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_org_id().empty()) { + org_id_.Set(from._internal_org_id(), + GetArenaForAllocation()); + } + email_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + email_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_email().empty()) { + email_.Set(from._internal_email(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.OrganizationSetSupportEmailRequest) } -inline PROTOBUF_NDEBUG_INLINE OrganizationSetSupportEmailRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : org_id_(arena), - email_(arena), - _cached_size_{0} {} -inline void OrganizationSetSupportEmailRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void OrganizationSetSupportEmailRequest::SharedCtor() { +org_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +email_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + email_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + OrganizationSetSupportEmailRequest::~OrganizationSetSupportEmailRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.OrganizationSetSupportEmailRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void OrganizationSetSupportEmailRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.org_id_.Destroy(); - _impl_.email_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + org_id_.Destroy(); + email_.Destroy(); } -PROTOBUF_NOINLINE void OrganizationSetSupportEmailRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.OrganizationSetSupportEmailRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.org_id_.ClearToEmpty(); - _impl_.email_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void OrganizationSetSupportEmailRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* OrganizationSetSupportEmailRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void OrganizationSetSupportEmailRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.OrganizationSetSupportEmailRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + org_id_.ClearToEmpty(); + email_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* OrganizationSetSupportEmailRequest::_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 org_id = 1 [json_name = "orgId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_org_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.OrganizationSetSupportEmailRequest.org_id")); + } else + goto handle_unusual; + continue; + // string email = 2 [json_name = "email"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_email(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.OrganizationSetSupportEmailRequest.email")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 66, 2> OrganizationSetSupportEmailRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_OrganizationSetSupportEmailRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string email = 2 [json_name = "email"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(OrganizationSetSupportEmailRequest, _impl_.email_)}}, - // string org_id = 1 [json_name = "orgId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(OrganizationSetSupportEmailRequest, _impl_.org_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string org_id = 1 [json_name = "orgId"]; - {PROTOBUF_FIELD_OFFSET(OrganizationSetSupportEmailRequest, _impl_.org_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string email = 2 [json_name = "email"]; - {PROTOBUF_FIELD_OFFSET(OrganizationSetSupportEmailRequest, _impl_.email_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\56\6\5\0\0\0\0\0" - "viam.app.v1.OrganizationSetSupportEmailRequest" - "org_id" - "email" - }}, -}; - -::uint8_t* OrganizationSetSupportEmailRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* OrganizationSetSupportEmailRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.OrganizationSetSupportEmailRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string org_id = 1 [json_name = "orgId"]; if (!this->_internal_org_id().empty()) { - const std::string& _s = this->_internal_org_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.OrganizationSetSupportEmailRequest.org_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_org_id().data(), static_cast(this->_internal_org_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.OrganizationSetSupportEmailRequest.org_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_org_id(), target); } // string email = 2 [json_name = "email"]; if (!this->_internal_email().empty()) { - const std::string& _s = this->_internal_email(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.OrganizationSetSupportEmailRequest.email"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_email().data(), static_cast(this->_internal_email().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.OrganizationSetSupportEmailRequest.email"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_email(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.OrganizationSetSupportEmailRequest) return target; } -::size_t OrganizationSetSupportEmailRequest::ByteSizeLong() const { +size_t OrganizationSetSupportEmailRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.OrganizationSetSupportEmailRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string org_id = 1 [json_name = "orgId"]; if (!this->_internal_org_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_org_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_org_id()); } // string email = 2 [json_name = "email"]; if (!this->_internal_email().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_email()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_email()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData OrganizationSetSupportEmailRequest::_class_data_ = { - OrganizationSetSupportEmailRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData OrganizationSetSupportEmailRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + OrganizationSetSupportEmailRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* OrganizationSetSupportEmailRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*OrganizationSetSupportEmailRequest::GetClassData() const { return &_class_data_; } + +void OrganizationSetSupportEmailRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void OrganizationSetSupportEmailRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.OrganizationSetSupportEmailRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void OrganizationSetSupportEmailRequest::MergeFrom(const OrganizationSetSupportEmailRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.OrganizationSetSupportEmailRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_org_id().empty()) { - _this->_internal_set_org_id(from._internal_org_id()); + _internal_set_org_id(from._internal_org_id()); } if (!from._internal_email().empty()) { - _this->_internal_set_email(from._internal_email()); + _internal_set_email(from._internal_email()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void OrganizationSetSupportEmailRequest::CopyFrom(const OrganizationSetSupportEmailRequest& from) { @@ -16701,46 +15953,45 @@ void OrganizationSetSupportEmailRequest::CopyFrom(const OrganizationSetSupportEm MergeFrom(from); } -PROTOBUF_NOINLINE bool OrganizationSetSupportEmailRequest::IsInitialized() const { +bool OrganizationSetSupportEmailRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* OrganizationSetSupportEmailRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void OrganizationSetSupportEmailRequest::InternalSwap(OrganizationSetSupportEmailRequest* PROTOBUF_RESTRICT other) { +void OrganizationSetSupportEmailRequest::InternalSwap(OrganizationSetSupportEmailRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.org_id_, &other->_impl_.org_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.email_, &other->_impl_.email_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &org_id_, lhs_arena, + &other->org_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &email_, lhs_arena, + &other->email_, rhs_arena + ); } -::google::protobuf::Metadata OrganizationSetSupportEmailRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata OrganizationSetSupportEmailRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[40]); } + // =================================================================== class OrganizationSetSupportEmailResponse::_Internal { public: }; -OrganizationSetSupportEmailResponse::OrganizationSetSupportEmailResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +OrganizationSetSupportEmailResponse::OrganizationSetSupportEmailResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.app.v1.OrganizationSetSupportEmailResponse) } -OrganizationSetSupportEmailResponse::OrganizationSetSupportEmailResponse( - ::google::protobuf::Arena* arena, - const OrganizationSetSupportEmailResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - OrganizationSetSupportEmailResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +OrganizationSetSupportEmailResponse::OrganizationSetSupportEmailResponse(const OrganizationSetSupportEmailResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.app.v1.OrganizationSetSupportEmailResponse) } @@ -16748,176 +15999,189 @@ OrganizationSetSupportEmailResponse::OrganizationSetSupportEmailResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData OrganizationSetSupportEmailResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*OrganizationSetSupportEmailResponse::GetClassData() const { return &_class_data_; } + + + -::google::protobuf::Metadata OrganizationSetSupportEmailResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata OrganizationSetSupportEmailResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[41]); } + // =================================================================== class OrganizationGetSupportEmailRequest::_Internal { public: }; -OrganizationGetSupportEmailRequest::OrganizationGetSupportEmailRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +OrganizationGetSupportEmailRequest::OrganizationGetSupportEmailRequest(::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.OrganizationGetSupportEmailRequest) } -inline PROTOBUF_NDEBUG_INLINE OrganizationGetSupportEmailRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : org_id_(arena, from.org_id_), - _cached_size_{0} {} - -OrganizationGetSupportEmailRequest::OrganizationGetSupportEmailRequest( - ::google::protobuf::Arena* arena, - const OrganizationGetSupportEmailRequest& from) - : ::google::protobuf::Message(arena) { - OrganizationGetSupportEmailRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +OrganizationGetSupportEmailRequest::OrganizationGetSupportEmailRequest(const OrganizationGetSupportEmailRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + org_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_org_id().empty()) { + org_id_.Set(from._internal_org_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.OrganizationGetSupportEmailRequest) } -inline PROTOBUF_NDEBUG_INLINE OrganizationGetSupportEmailRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : org_id_(arena), - _cached_size_{0} {} -inline void OrganizationGetSupportEmailRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void OrganizationGetSupportEmailRequest::SharedCtor() { +org_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + OrganizationGetSupportEmailRequest::~OrganizationGetSupportEmailRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.OrganizationGetSupportEmailRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void OrganizationGetSupportEmailRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.org_id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + org_id_.Destroy(); } -PROTOBUF_NOINLINE void OrganizationGetSupportEmailRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.OrganizationGetSupportEmailRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.org_id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void OrganizationGetSupportEmailRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* OrganizationGetSupportEmailRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void OrganizationGetSupportEmailRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.OrganizationGetSupportEmailRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + org_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* OrganizationGetSupportEmailRequest::_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 org_id = 1 [json_name = "orgId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_org_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.OrganizationGetSupportEmailRequest.org_id")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 61, 2> OrganizationGetSupportEmailRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_OrganizationGetSupportEmailRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string org_id = 1 [json_name = "orgId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(OrganizationGetSupportEmailRequest, _impl_.org_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string org_id = 1 [json_name = "orgId"]; - {PROTOBUF_FIELD_OFFSET(OrganizationGetSupportEmailRequest, _impl_.org_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\56\6\0\0\0\0\0\0" - "viam.app.v1.OrganizationGetSupportEmailRequest" - "org_id" - }}, -}; - -::uint8_t* OrganizationGetSupportEmailRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* OrganizationGetSupportEmailRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.OrganizationGetSupportEmailRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string org_id = 1 [json_name = "orgId"]; if (!this->_internal_org_id().empty()) { - const std::string& _s = this->_internal_org_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.OrganizationGetSupportEmailRequest.org_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_org_id().data(), static_cast(this->_internal_org_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.OrganizationGetSupportEmailRequest.org_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_org_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.OrganizationGetSupportEmailRequest) return target; } -::size_t OrganizationGetSupportEmailRequest::ByteSizeLong() const { +size_t OrganizationGetSupportEmailRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.OrganizationGetSupportEmailRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string org_id = 1 [json_name = "orgId"]; if (!this->_internal_org_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_org_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_org_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData OrganizationGetSupportEmailRequest::_class_data_ = { - OrganizationGetSupportEmailRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData OrganizationGetSupportEmailRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + OrganizationGetSupportEmailRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* OrganizationGetSupportEmailRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*OrganizationGetSupportEmailRequest::GetClassData() const { return &_class_data_; } + +void OrganizationGetSupportEmailRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void OrganizationGetSupportEmailRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.OrganizationGetSupportEmailRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void OrganizationGetSupportEmailRequest::MergeFrom(const OrganizationGetSupportEmailRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.OrganizationGetSupportEmailRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_org_id().empty()) { - _this->_internal_set_org_id(from._internal_org_id()); + _internal_set_org_id(from._internal_org_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void OrganizationGetSupportEmailRequest::CopyFrom(const OrganizationGetSupportEmailRequest& from) { @@ -16927,187 +16191,192 @@ void OrganizationGetSupportEmailRequest::CopyFrom(const OrganizationGetSupportEm MergeFrom(from); } -PROTOBUF_NOINLINE bool OrganizationGetSupportEmailRequest::IsInitialized() const { +bool OrganizationGetSupportEmailRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* OrganizationGetSupportEmailRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void OrganizationGetSupportEmailRequest::InternalSwap(OrganizationGetSupportEmailRequest* PROTOBUF_RESTRICT other) { +void OrganizationGetSupportEmailRequest::InternalSwap(OrganizationGetSupportEmailRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.org_id_, &other->_impl_.org_id_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &org_id_, lhs_arena, + &other->org_id_, rhs_arena + ); } -::google::protobuf::Metadata OrganizationGetSupportEmailRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata OrganizationGetSupportEmailRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[42]); } + // =================================================================== class OrganizationGetSupportEmailResponse::_Internal { public: }; -OrganizationGetSupportEmailResponse::OrganizationGetSupportEmailResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +OrganizationGetSupportEmailResponse::OrganizationGetSupportEmailResponse(::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.OrganizationGetSupportEmailResponse) } -inline PROTOBUF_NDEBUG_INLINE OrganizationGetSupportEmailResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : email_(arena, from.email_), - _cached_size_{0} {} - -OrganizationGetSupportEmailResponse::OrganizationGetSupportEmailResponse( - ::google::protobuf::Arena* arena, - const OrganizationGetSupportEmailResponse& from) - : ::google::protobuf::Message(arena) { - OrganizationGetSupportEmailResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +OrganizationGetSupportEmailResponse::OrganizationGetSupportEmailResponse(const OrganizationGetSupportEmailResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + email_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + email_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_email().empty()) { + email_.Set(from._internal_email(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.OrganizationGetSupportEmailResponse) } -inline PROTOBUF_NDEBUG_INLINE OrganizationGetSupportEmailResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : email_(arena), - _cached_size_{0} {} -inline void OrganizationGetSupportEmailResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void OrganizationGetSupportEmailResponse::SharedCtor() { +email_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + email_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + OrganizationGetSupportEmailResponse::~OrganizationGetSupportEmailResponse() { // @@protoc_insertion_point(destructor:viam.app.v1.OrganizationGetSupportEmailResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void OrganizationGetSupportEmailResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.email_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + email_.Destroy(); } -PROTOBUF_NOINLINE void OrganizationGetSupportEmailResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.OrganizationGetSupportEmailResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.email_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void OrganizationGetSupportEmailResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* OrganizationGetSupportEmailResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void OrganizationGetSupportEmailResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.OrganizationGetSupportEmailResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + email_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* OrganizationGetSupportEmailResponse::_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 email = 1 [json_name = "email"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_email(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.OrganizationGetSupportEmailResponse.email")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 61, 2> OrganizationGetSupportEmailResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_OrganizationGetSupportEmailResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string email = 1 [json_name = "email"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(OrganizationGetSupportEmailResponse, _impl_.email_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string email = 1 [json_name = "email"]; - {PROTOBUF_FIELD_OFFSET(OrganizationGetSupportEmailResponse, _impl_.email_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\57\5\0\0\0\0\0\0" - "viam.app.v1.OrganizationGetSupportEmailResponse" - "email" - }}, -}; - -::uint8_t* OrganizationGetSupportEmailResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* OrganizationGetSupportEmailResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.OrganizationGetSupportEmailResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string email = 1 [json_name = "email"]; if (!this->_internal_email().empty()) { - const std::string& _s = this->_internal_email(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.OrganizationGetSupportEmailResponse.email"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_email().data(), static_cast(this->_internal_email().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.OrganizationGetSupportEmailResponse.email"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_email(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.OrganizationGetSupportEmailResponse) return target; } -::size_t OrganizationGetSupportEmailResponse::ByteSizeLong() const { +size_t OrganizationGetSupportEmailResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.OrganizationGetSupportEmailResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string email = 1 [json_name = "email"]; if (!this->_internal_email().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_email()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_email()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData OrganizationGetSupportEmailResponse::_class_data_ = { - OrganizationGetSupportEmailResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData OrganizationGetSupportEmailResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + OrganizationGetSupportEmailResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* OrganizationGetSupportEmailResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*OrganizationGetSupportEmailResponse::GetClassData() const { return &_class_data_; } + +void OrganizationGetSupportEmailResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void OrganizationGetSupportEmailResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.OrganizationGetSupportEmailResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void OrganizationGetSupportEmailResponse::MergeFrom(const OrganizationGetSupportEmailResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.OrganizationGetSupportEmailResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_email().empty()) { - _this->_internal_set_email(from._internal_email()); + _internal_set_email(from._internal_email()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void OrganizationGetSupportEmailResponse::CopyFrom(const OrganizationGetSupportEmailResponse& from) { @@ -17117,215 +16386,236 @@ void OrganizationGetSupportEmailResponse::CopyFrom(const OrganizationGetSupportE MergeFrom(from); } -PROTOBUF_NOINLINE bool OrganizationGetSupportEmailResponse::IsInitialized() const { +bool OrganizationGetSupportEmailResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* OrganizationGetSupportEmailResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void OrganizationGetSupportEmailResponse::InternalSwap(OrganizationGetSupportEmailResponse* PROTOBUF_RESTRICT other) { +void OrganizationGetSupportEmailResponse::InternalSwap(OrganizationGetSupportEmailResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.email_, &other->_impl_.email_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &email_, lhs_arena, + &other->email_, rhs_arena + ); } -::google::protobuf::Metadata OrganizationGetSupportEmailResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata OrganizationGetSupportEmailResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[43]); } + // =================================================================== class OrganizationIdentity::_Internal { public: }; -OrganizationIdentity::OrganizationIdentity(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +OrganizationIdentity::OrganizationIdentity(::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.OrganizationIdentity) } -inline PROTOBUF_NDEBUG_INLINE OrganizationIdentity::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : id_(arena, from.id_), - name_(arena, from.name_), - _cached_size_{0} {} - -OrganizationIdentity::OrganizationIdentity( - ::google::protobuf::Arena* arena, - const OrganizationIdentity& from) - : ::google::protobuf::Message(arena) { - OrganizationIdentity* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +OrganizationIdentity::OrganizationIdentity(const OrganizationIdentity& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } + 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()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.OrganizationIdentity) } -inline PROTOBUF_NDEBUG_INLINE OrganizationIdentity::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : id_(arena), - name_(arena), - _cached_size_{0} {} -inline void OrganizationIdentity::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void OrganizationIdentity::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + OrganizationIdentity::~OrganizationIdentity() { // @@protoc_insertion_point(destructor:viam.app.v1.OrganizationIdentity) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void OrganizationIdentity::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.name_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); + name_.Destroy(); } -PROTOBUF_NOINLINE void OrganizationIdentity::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.OrganizationIdentity) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.id_.ClearToEmpty(); - _impl_.name_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void OrganizationIdentity::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* OrganizationIdentity::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void OrganizationIdentity::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.OrganizationIdentity) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + id_.ClearToEmpty(); + name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* OrganizationIdentity::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.OrganizationIdentity.id")); + } else + goto handle_unusual; + continue; + // string name = 2 [json_name = "name"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.OrganizationIdentity.name")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 47, 2> OrganizationIdentity::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_OrganizationIdentity_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string name = 2 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(OrganizationIdentity, _impl_.name_)}}, - // string id = 1 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(OrganizationIdentity, _impl_.id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(OrganizationIdentity, _impl_.id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string name = 2 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(OrganizationIdentity, _impl_.name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\40\2\4\0\0\0\0\0" - "viam.app.v1.OrganizationIdentity" - "id" - "name" - }}, -}; - -::uint8_t* OrganizationIdentity::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* OrganizationIdentity::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.OrganizationIdentity) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.OrganizationIdentity.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.OrganizationIdentity.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); } // string name = 2 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.OrganizationIdentity.name"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.OrganizationIdentity.name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_name(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.OrganizationIdentity) return target; } -::size_t OrganizationIdentity::ByteSizeLong() const { +size_t OrganizationIdentity::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.OrganizationIdentity) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } // string name = 2 [json_name = "name"]; if (!this->_internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData OrganizationIdentity::_class_data_ = { - OrganizationIdentity::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData OrganizationIdentity::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + OrganizationIdentity::MergeImpl }; -const ::google::protobuf::Message::ClassData* OrganizationIdentity::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*OrganizationIdentity::GetClassData() const { return &_class_data_; } + +void OrganizationIdentity::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void OrganizationIdentity::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.OrganizationIdentity) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void OrganizationIdentity::MergeFrom(const OrganizationIdentity& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.OrganizationIdentity) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void OrganizationIdentity::CopyFrom(const OrganizationIdentity& from) { @@ -17335,212 +16625,221 @@ void OrganizationIdentity::CopyFrom(const OrganizationIdentity& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool OrganizationIdentity::IsInitialized() const { +bool OrganizationIdentity::IsInitialized() const { return true; } -::_pbi::CachedSize* OrganizationIdentity::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void OrganizationIdentity::InternalSwap(OrganizationIdentity* PROTOBUF_RESTRICT other) { +void OrganizationIdentity::InternalSwap(OrganizationIdentity* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); } -::google::protobuf::Metadata OrganizationIdentity::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata OrganizationIdentity::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[44]); } + // =================================================================== class LocationOrganization::_Internal { public: }; -LocationOrganization::LocationOrganization(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +LocationOrganization::LocationOrganization(::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.LocationOrganization) } -inline PROTOBUF_NDEBUG_INLINE LocationOrganization::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : organization_id_(arena, from.organization_id_), - _cached_size_{0} {} - -LocationOrganization::LocationOrganization( - ::google::protobuf::Arena* arena, - const LocationOrganization& from) - : ::google::protobuf::Message(arena) { - LocationOrganization* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.primary_ = from._impl_.primary_; - +LocationOrganization::LocationOrganization(const LocationOrganization& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + organization_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_organization_id().empty()) { + organization_id_.Set(from._internal_organization_id(), + GetArenaForAllocation()); + } + primary_ = from.primary_; // @@protoc_insertion_point(copy_constructor:viam.app.v1.LocationOrganization) } -inline PROTOBUF_NDEBUG_INLINE LocationOrganization::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : organization_id_(arena), - _cached_size_{0} {} -inline void LocationOrganization::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.primary_ = {}; +inline void LocationOrganization::SharedCtor() { +organization_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +primary_ = false; } + LocationOrganization::~LocationOrganization() { // @@protoc_insertion_point(destructor:viam.app.v1.LocationOrganization) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void LocationOrganization::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.organization_id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + organization_id_.Destroy(); } -PROTOBUF_NOINLINE void LocationOrganization::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.LocationOrganization) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.organization_id_.ClearToEmpty(); - _impl_.primary_ = false; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void LocationOrganization::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* LocationOrganization::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void LocationOrganization::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.LocationOrganization) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + organization_id_.ClearToEmpty(); + primary_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* LocationOrganization::_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 organization_id = 1 [json_name = "organizationId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_organization_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.LocationOrganization.organization_id")); + } else + goto handle_unusual; + continue; + // bool primary = 2 [json_name = "primary"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + primary_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 56, 2> LocationOrganization::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_LocationOrganization_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // bool primary = 2 [json_name = "primary"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(LocationOrganization, _impl_.primary_)}}, - // string organization_id = 1 [json_name = "organizationId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(LocationOrganization, _impl_.organization_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string organization_id = 1 [json_name = "organizationId"]; - {PROTOBUF_FIELD_OFFSET(LocationOrganization, _impl_.organization_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // bool primary = 2 [json_name = "primary"]; - {PROTOBUF_FIELD_OFFSET(LocationOrganization, _impl_.primary_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, - // no aux_entries - {{ - "\40\17\0\0\0\0\0\0" - "viam.app.v1.LocationOrganization" - "organization_id" - }}, -}; - -::uint8_t* LocationOrganization::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* LocationOrganization::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.LocationOrganization) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string organization_id = 1 [json_name = "organizationId"]; if (!this->_internal_organization_id().empty()) { - const std::string& _s = this->_internal_organization_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.LocationOrganization.organization_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_organization_id().data(), static_cast(this->_internal_organization_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.LocationOrganization.organization_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_organization_id(), target); } // bool primary = 2 [json_name = "primary"]; if (this->_internal_primary() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 2, this->_internal_primary(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_primary(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.LocationOrganization) return target; } -::size_t LocationOrganization::ByteSizeLong() const { +size_t LocationOrganization::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.LocationOrganization) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string organization_id = 1 [json_name = "organizationId"]; if (!this->_internal_organization_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_organization_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_organization_id()); } // bool primary = 2 [json_name = "primary"]; if (this->_internal_primary() != 0) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData LocationOrganization::_class_data_ = { - LocationOrganization::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LocationOrganization::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + LocationOrganization::MergeImpl }; -const ::google::protobuf::Message::ClassData* LocationOrganization::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LocationOrganization::GetClassData() const { return &_class_data_; } + +void LocationOrganization::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void LocationOrganization::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.LocationOrganization) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void LocationOrganization::MergeFrom(const LocationOrganization& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.LocationOrganization) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_organization_id().empty()) { - _this->_internal_set_organization_id(from._internal_organization_id()); + _internal_set_organization_id(from._internal_organization_id()); } if (from._internal_primary() != 0) { - _this->_internal_set_primary(from._internal_primary()); + _internal_set_primary(from._internal_primary()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void LocationOrganization::CopyFrom(const LocationOrganization& from) { @@ -17550,242 +16849,269 @@ void LocationOrganization::CopyFrom(const LocationOrganization& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool LocationOrganization::IsInitialized() const { +bool LocationOrganization::IsInitialized() const { return true; } -::_pbi::CachedSize* LocationOrganization::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void LocationOrganization::InternalSwap(LocationOrganization* PROTOBUF_RESTRICT other) { +void LocationOrganization::InternalSwap(LocationOrganization* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.organization_id_, &other->_impl_.organization_id_, arena); - swap(_impl_.primary_, other->_impl_.primary_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &organization_id_, lhs_arena, + &other->organization_id_, rhs_arena + ); + swap(primary_, other->primary_); } -::google::protobuf::Metadata LocationOrganization::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata LocationOrganization::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[45]); } + // =================================================================== class LocationAuth::_Internal { public: }; -LocationAuth::LocationAuth(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +LocationAuth::LocationAuth(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + secrets_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.v1.LocationAuth) } -inline PROTOBUF_NDEBUG_INLINE LocationAuth::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : secrets_{visibility, arena, from.secrets_}, - secret_(arena, from.secret_), - location_id_(arena, from.location_id_), - _cached_size_{0} {} - -LocationAuth::LocationAuth( - ::google::protobuf::Arena* arena, - const LocationAuth& from) - : ::google::protobuf::Message(arena) { - LocationAuth* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +LocationAuth::LocationAuth(const LocationAuth& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + secrets_(from.secrets_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + secret_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + secret_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_secret().empty()) { + secret_.Set(from._internal_secret(), + GetArenaForAllocation()); + } + location_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + location_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_location_id().empty()) { + location_id_.Set(from._internal_location_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.LocationAuth) } -inline PROTOBUF_NDEBUG_INLINE LocationAuth::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : secrets_{visibility, arena}, - secret_(arena), - location_id_(arena), - _cached_size_{0} {} -inline void LocationAuth::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void LocationAuth::SharedCtor() { +secret_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + secret_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +location_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + location_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + LocationAuth::~LocationAuth() { // @@protoc_insertion_point(destructor:viam.app.v1.LocationAuth) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void LocationAuth::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.secret_.Destroy(); - _impl_.location_id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + secret_.Destroy(); + location_id_.Destroy(); } -PROTOBUF_NOINLINE void LocationAuth::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.LocationAuth) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.secrets_.Clear(); - _impl_.secret_.ClearToEmpty(); - _impl_.location_id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void LocationAuth::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* LocationAuth::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void LocationAuth::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.LocationAuth) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + secrets_.Clear(); + secret_.ClearToEmpty(); + location_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* LocationAuth::_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 secret = 1 [json_name = "secret", deprecated = true]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_secret(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.LocationAuth.secret")); + } else + goto handle_unusual; + continue; + // string location_id = 2 [json_name = "locationId"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_location_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.LocationAuth.location_id")); + } else + goto handle_unusual; + continue; + // repeated .viam.app.v1.SharedSecret secrets = 3 [json_name = "secrets"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_secrets(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 1, 50, 2> LocationAuth::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_LocationAuth_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string secret = 1 [json_name = "secret", deprecated = true]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(LocationAuth, _impl_.secret_)}}, - // string location_id = 2 [json_name = "locationId"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(LocationAuth, _impl_.location_id_)}}, - // repeated .viam.app.v1.SharedSecret secrets = 3 [json_name = "secrets"]; - {::_pbi::TcParser::FastMtR1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(LocationAuth, _impl_.secrets_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string secret = 1 [json_name = "secret", deprecated = true]; - {PROTOBUF_FIELD_OFFSET(LocationAuth, _impl_.secret_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string location_id = 2 [json_name = "locationId"]; - {PROTOBUF_FIELD_OFFSET(LocationAuth, _impl_.location_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated .viam.app.v1.SharedSecret secrets = 3 [json_name = "secrets"]; - {PROTOBUF_FIELD_OFFSET(LocationAuth, _impl_.secrets_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::SharedSecret>()}, - }}, {{ - "\30\6\13\0\0\0\0\0" - "viam.app.v1.LocationAuth" - "secret" - "location_id" - }}, -}; - -::uint8_t* LocationAuth::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* LocationAuth::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.LocationAuth) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string secret = 1 [json_name = "secret", deprecated = true]; if (!this->_internal_secret().empty()) { - const std::string& _s = this->_internal_secret(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.LocationAuth.secret"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_secret().data(), static_cast(this->_internal_secret().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.LocationAuth.secret"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_secret(), target); } // string location_id = 2 [json_name = "locationId"]; if (!this->_internal_location_id().empty()) { - const std::string& _s = this->_internal_location_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.LocationAuth.location_id"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_location_id().data(), static_cast(this->_internal_location_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.LocationAuth.location_id"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_location_id(), target); } // repeated .viam.app.v1.SharedSecret secrets = 3 [json_name = "secrets"]; for (unsigned i = 0, n = static_cast(this->_internal_secrets_size()); i < n; i++) { - const auto& repfield = this->_internal_secrets().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_secrets(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.LocationAuth) return target; } -::size_t LocationAuth::ByteSizeLong() const { +size_t LocationAuth::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.LocationAuth) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.app.v1.SharedSecret secrets = 3 [json_name = "secrets"]; total_size += 1UL * this->_internal_secrets_size(); - for (const auto& msg : this->_internal_secrets()) { + for (const auto& msg : this->secrets_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // string secret = 1 [json_name = "secret", deprecated = true]; if (!this->_internal_secret().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_secret()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_secret()); } // string location_id = 2 [json_name = "locationId"]; if (!this->_internal_location_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_location_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_location_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData LocationAuth::_class_data_ = { - LocationAuth::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LocationAuth::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + LocationAuth::MergeImpl }; -const ::google::protobuf::Message::ClassData* LocationAuth::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LocationAuth::GetClassData() const { return &_class_data_; } + +void LocationAuth::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void LocationAuth::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.LocationAuth) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void LocationAuth::MergeFrom(const LocationAuth& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.LocationAuth) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_secrets()->MergeFrom( - from._internal_secrets()); + secrets_.MergeFrom(from.secrets_); if (!from._internal_secret().empty()) { - _this->_internal_set_secret(from._internal_secret()); + _internal_set_secret(from._internal_secret()); } if (!from._internal_location_id().empty()) { - _this->_internal_set_location_id(from._internal_location_id()); + _internal_set_location_id(from._internal_location_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void LocationAuth::CopyFrom(const LocationAuth& from) { @@ -17795,189 +17121,197 @@ void LocationAuth::CopyFrom(const LocationAuth& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool LocationAuth::IsInitialized() const { +bool LocationAuth::IsInitialized() const { return true; } -::_pbi::CachedSize* LocationAuth::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void LocationAuth::InternalSwap(LocationAuth* PROTOBUF_RESTRICT other) { +void LocationAuth::InternalSwap(LocationAuth* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.secrets_.InternalSwap(&other->_impl_.secrets_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.secret_, &other->_impl_.secret_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.location_id_, &other->_impl_.location_id_, arena); -} - -::google::protobuf::Metadata LocationAuth::GetMetadata() const { + secrets_.InternalSwap(&other->secrets_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &secret_, lhs_arena, + &other->secret_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &location_id_, lhs_arena, + &other->location_id_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata LocationAuth::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[46]); } + // =================================================================== class StorageConfig::_Internal { public: }; -StorageConfig::StorageConfig(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +StorageConfig::StorageConfig(::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.StorageConfig) } -inline PROTOBUF_NDEBUG_INLINE StorageConfig::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : region_(arena, from.region_), - _cached_size_{0} {} - -StorageConfig::StorageConfig( - ::google::protobuf::Arena* arena, - const StorageConfig& from) - : ::google::protobuf::Message(arena) { - StorageConfig* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +StorageConfig::StorageConfig(const StorageConfig& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + region_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + region_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_region().empty()) { + region_.Set(from._internal_region(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.StorageConfig) } -inline PROTOBUF_NDEBUG_INLINE StorageConfig::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : region_(arena), - _cached_size_{0} {} -inline void StorageConfig::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void StorageConfig::SharedCtor() { +region_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + region_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + StorageConfig::~StorageConfig() { // @@protoc_insertion_point(destructor:viam.app.v1.StorageConfig) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void StorageConfig::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.region_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + region_.Destroy(); } -PROTOBUF_NOINLINE void StorageConfig::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.StorageConfig) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.region_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void StorageConfig::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* StorageConfig::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void StorageConfig::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.StorageConfig) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + region_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* StorageConfig::_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 region = 1 [json_name = "region"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_region(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.StorageConfig.region")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 40, 2> StorageConfig::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_StorageConfig_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string region = 1 [json_name = "region"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(StorageConfig, _impl_.region_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string region = 1 [json_name = "region"]; - {PROTOBUF_FIELD_OFFSET(StorageConfig, _impl_.region_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\31\6\0\0\0\0\0\0" - "viam.app.v1.StorageConfig" - "region" - }}, -}; - -::uint8_t* StorageConfig::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* StorageConfig::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.StorageConfig) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string region = 1 [json_name = "region"]; if (!this->_internal_region().empty()) { - const std::string& _s = this->_internal_region(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.StorageConfig.region"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_region().data(), static_cast(this->_internal_region().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.StorageConfig.region"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_region(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.StorageConfig) return target; } -::size_t StorageConfig::ByteSizeLong() const { +size_t StorageConfig::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.StorageConfig) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string region = 1 [json_name = "region"]; if (!this->_internal_region().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_region()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_region()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData StorageConfig::_class_data_ = { - StorageConfig::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StorageConfig::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + StorageConfig::MergeImpl }; -const ::google::protobuf::Message::ClassData* StorageConfig::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StorageConfig::GetClassData() const { return &_class_data_; } + +void StorageConfig::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void StorageConfig::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.StorageConfig) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void StorageConfig::MergeFrom(const StorageConfig& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.StorageConfig) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_region().empty()) { - _this->_internal_set_region(from._internal_region()); + _internal_set_region(from._internal_region()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void StorageConfig::CopyFrom(const StorageConfig& from) { @@ -17987,436 +17321,466 @@ void StorageConfig::CopyFrom(const StorageConfig& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool StorageConfig::IsInitialized() const { +bool StorageConfig::IsInitialized() const { return true; } -::_pbi::CachedSize* StorageConfig::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void StorageConfig::InternalSwap(StorageConfig* PROTOBUF_RESTRICT other) { +void StorageConfig::InternalSwap(StorageConfig* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.region_, &other->_impl_.region_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + ®ion_, lhs_arena, + &other->region_, rhs_arena + ); } -::google::protobuf::Metadata StorageConfig::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata StorageConfig::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[47]); } + // =================================================================== class Location::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Location, _impl_._has_bits_); static const ::viam::app::v1::LocationAuth& auth(const Location* msg); - static void set_has_auth(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static const ::google::protobuf::Timestamp& created_on(const Location* msg); - static void set_has_created_on(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& created_on(const Location* msg); static const ::viam::app::v1::StorageConfig& config(const Location* msg); - static void set_has_config(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } }; -const ::viam::app::v1::LocationAuth& Location::_Internal::auth(const Location* msg) { - return *msg->_impl_.auth_; +const ::viam::app::v1::LocationAuth& +Location::_Internal::auth(const Location* msg) { + return *msg->auth_; } -const ::google::protobuf::Timestamp& Location::_Internal::created_on(const Location* msg) { - return *msg->_impl_.created_on_; +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +Location::_Internal::created_on(const Location* msg) { + return *msg->created_on_; } -const ::viam::app::v1::StorageConfig& Location::_Internal::config(const Location* msg) { - return *msg->_impl_.config_; +const ::viam::app::v1::StorageConfig& +Location::_Internal::config(const Location* msg) { + return *msg->config_; } void Location::clear_created_on() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.created_on_ != nullptr) _impl_.created_on_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && created_on_ != nullptr) { + delete created_on_; + } + created_on_ = nullptr; } -Location::Location(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Location::Location(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + organizations_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.v1.Location) } -inline PROTOBUF_NDEBUG_INLINE Location::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - organizations_{visibility, arena, from.organizations_}, - id_(arena, from.id_), - name_(arena, from.name_), - parent_location_id_(arena, from.parent_location_id_) {} - -Location::Location( - ::google::protobuf::Arena* arena, - const Location& from) - : ::google::protobuf::Message(arena) { - Location* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.created_on_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.created_on_) - : nullptr; - _impl_.auth_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::viam::app::v1::LocationAuth>(arena, *from._impl_.auth_) - : nullptr; - _impl_.config_ = (cached_has_bits & 0x00000004u) - ? CreateMaybeMessage<::viam::app::v1::StorageConfig>(arena, *from._impl_.config_) - : nullptr; - _impl_.robot_count_ = from._impl_.robot_count_; - +Location::Location(const Location& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + organizations_(from.organizations_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } + 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()); + } + parent_location_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + parent_location_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_parent_location_id().empty()) { + parent_location_id_.Set(from._internal_parent_location_id(), + GetArenaForAllocation()); + } + if (from._internal_has_created_on()) { + created_on_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from.created_on_); + } else { + created_on_ = nullptr; + } + if (from._internal_has_auth()) { + auth_ = new ::viam::app::v1::LocationAuth(*from.auth_); + } else { + auth_ = nullptr; + } + if (from._internal_has_config()) { + config_ = new ::viam::app::v1::StorageConfig(*from.config_); + } else { + config_ = nullptr; + } + robot_count_ = from.robot_count_; // @@protoc_insertion_point(copy_constructor:viam.app.v1.Location) } -inline PROTOBUF_NDEBUG_INLINE Location::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - organizations_{visibility, arena}, - id_(arena), - name_(arena), - parent_location_id_(arena) {} - -inline void Location::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, created_on_), - 0, - offsetof(Impl_, robot_count_) - - offsetof(Impl_, created_on_) + - sizeof(Impl_::robot_count_)); + +inline void Location::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +parent_location_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + parent_location_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&created_on_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&robot_count_) - + reinterpret_cast(&created_on_)) + sizeof(robot_count_)); } + Location::~Location() { // @@protoc_insertion_point(destructor:viam.app.v1.Location) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Location::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.name_.Destroy(); - _impl_.parent_location_id_.Destroy(); - delete _impl_.created_on_; - delete _impl_.auth_; - delete _impl_.config_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); + name_.Destroy(); + parent_location_id_.Destroy(); + if (this != internal_default_instance()) delete created_on_; + if (this != internal_default_instance()) delete auth_; + if (this != internal_default_instance()) delete config_; } -PROTOBUF_NOINLINE void Location::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.Location) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.organizations_.Clear(); - _impl_.id_.ClearToEmpty(); - _impl_.name_.ClearToEmpty(); - _impl_.parent_location_id_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.created_on_ != nullptr); - _impl_.created_on_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.auth_ != nullptr); - _impl_.auth_->Clear(); - } - if (cached_has_bits & 0x00000004u) { - ABSL_DCHECK(_impl_.config_ != nullptr); - _impl_.config_->Clear(); - } - } - _impl_.robot_count_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void Location::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* Location::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void Location::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.Location) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + organizations_.Clear(); + id_.ClearToEmpty(); + name_.ClearToEmpty(); + parent_location_id_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && created_on_ != nullptr) { + delete created_on_; + } + created_on_ = nullptr; + if (GetArenaForAllocation() == nullptr && auth_ != nullptr) { + delete auth_; + } + auth_ = nullptr; + if (GetArenaForAllocation() == nullptr && config_ != nullptr) { + delete config_; + } + config_ = nullptr; + robot_count_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Location::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.Location.id")); + } else + goto handle_unusual; + continue; + // string name = 2 [json_name = "name"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.Location.name")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_created_on(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string parent_location_id = 4 [json_name = "parentLocationId"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_parent_location_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.Location.parent_location_id")); + } else + goto handle_unusual; + continue; + // .viam.app.v1.LocationAuth auth = 5 [json_name = "auth"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_auth(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // repeated .viam.app.v1.LocationOrganization organizations = 6 [json_name = "organizations"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_organizations(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(ptr)); + } else + goto handle_unusual; + continue; + // int32 robot_count = 7 [json_name = "robotCount"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 56)) { + robot_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.app.v1.StorageConfig config = 8 [json_name = "config"]; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { + ptr = ctx->ParseMessage(_internal_mutable_config(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 8, 4, 61, 2> Location::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Location, _impl_._has_bits_), - 0, // no _extensions_ - 8, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967040, // skipmap - offsetof(decltype(_table_), field_entries), - 8, // num_field_entries - 4, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Location_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.app.v1.StorageConfig config = 8 [json_name = "config"]; - {::_pbi::TcParser::FastMtS1, - {66, 2, 3, PROTOBUF_FIELD_OFFSET(Location, _impl_.config_)}}, - // string id = 1 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Location, _impl_.id_)}}, - // string name = 2 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(Location, _impl_.name_)}}, - // .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn"]; - {::_pbi::TcParser::FastMtS1, - {26, 0, 0, PROTOBUF_FIELD_OFFSET(Location, _impl_.created_on_)}}, - // string parent_location_id = 4 [json_name = "parentLocationId"]; - {::_pbi::TcParser::FastUS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(Location, _impl_.parent_location_id_)}}, - // .viam.app.v1.LocationAuth auth = 5 [json_name = "auth"]; - {::_pbi::TcParser::FastMtS1, - {42, 1, 1, PROTOBUF_FIELD_OFFSET(Location, _impl_.auth_)}}, - // repeated .viam.app.v1.LocationOrganization organizations = 6 [json_name = "organizations"]; - {::_pbi::TcParser::FastMtR1, - {50, 63, 2, PROTOBUF_FIELD_OFFSET(Location, _impl_.organizations_)}}, - // int32 robot_count = 7 [json_name = "robotCount"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Location, _impl_.robot_count_), 63>(), - {56, 63, 0, PROTOBUF_FIELD_OFFSET(Location, _impl_.robot_count_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(Location, _impl_.id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string name = 2 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(Location, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn"]; - {PROTOBUF_FIELD_OFFSET(Location, _impl_.created_on_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // string parent_location_id = 4 [json_name = "parentLocationId"]; - {PROTOBUF_FIELD_OFFSET(Location, _impl_.parent_location_id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .viam.app.v1.LocationAuth auth = 5 [json_name = "auth"]; - {PROTOBUF_FIELD_OFFSET(Location, _impl_.auth_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated .viam.app.v1.LocationOrganization organizations = 6 [json_name = "organizations"]; - {PROTOBUF_FIELD_OFFSET(Location, _impl_.organizations_), -1, 2, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // int32 robot_count = 7 [json_name = "robotCount"]; - {PROTOBUF_FIELD_OFFSET(Location, _impl_.robot_count_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // .viam.app.v1.StorageConfig config = 8 [json_name = "config"]; - {PROTOBUF_FIELD_OFFSET(Location, _impl_.config_), _Internal::kHasBitsOffset + 2, 3, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, - {::_pbi::TcParser::GetTable<::viam::app::v1::LocationAuth>()}, - {::_pbi::TcParser::GetTable<::viam::app::v1::LocationOrganization>()}, - {::_pbi::TcParser::GetTable<::viam::app::v1::StorageConfig>()}, - }}, {{ - "\24\2\4\0\22\0\0\0\0\0\0\0\0\0\0\0" - "viam.app.v1.Location" - "id" - "name" - "parent_location_id" - }}, -}; - -::uint8_t* Location::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Location::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.Location) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.Location.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.Location.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); } // string name = 2 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.Location.name"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.Location.name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::created_on(this), + if (this->_internal_has_created_on()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::created_on(this), _Internal::created_on(this).GetCachedSize(), target, stream); } // string parent_location_id = 4 [json_name = "parentLocationId"]; if (!this->_internal_parent_location_id().empty()) { - const std::string& _s = this->_internal_parent_location_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.Location.parent_location_id"); - target = stream->WriteStringMaybeAliased(4, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_parent_location_id().data(), static_cast(this->_internal_parent_location_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.Location.parent_location_id"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_parent_location_id(), target); } // .viam.app.v1.LocationAuth auth = 5 [json_name = "auth"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 5, _Internal::auth(this), + if (this->_internal_has_auth()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(5, _Internal::auth(this), _Internal::auth(this).GetCachedSize(), target, stream); } // repeated .viam.app.v1.LocationOrganization organizations = 6 [json_name = "organizations"]; for (unsigned i = 0, n = static_cast(this->_internal_organizations_size()); i < n; i++) { - const auto& repfield = this->_internal_organizations().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_organizations(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(6, repfield, repfield.GetCachedSize(), target, stream); } // int32 robot_count = 7 [json_name = "robotCount"]; if (this->_internal_robot_count() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<7>( - stream, this->_internal_robot_count(), target); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(7, this->_internal_robot_count(), target); } // .viam.app.v1.StorageConfig config = 8 [json_name = "config"]; - if (cached_has_bits & 0x00000004u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 8, _Internal::config(this), + if (this->_internal_has_config()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(8, _Internal::config(this), _Internal::config(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.Location) return target; } -::size_t Location::ByteSizeLong() const { +size_t Location::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.Location) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.app.v1.LocationOrganization organizations = 6 [json_name = "organizations"]; total_size += 1UL * this->_internal_organizations_size(); - for (const auto& msg : this->_internal_organizations()) { + for (const auto& msg : this->organizations_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } // string name = 2 [json_name = "name"]; if (!this->_internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // string parent_location_id = 4 [json_name = "parentLocationId"]; if (!this->_internal_parent_location_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_parent_location_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_parent_location_id()); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - // .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.created_on_); - } - - // .viam.app.v1.LocationAuth auth = 5 [json_name = "auth"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.auth_); - } + // .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn"]; + if (this->_internal_has_created_on()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *created_on_); + } - // .viam.app.v1.StorageConfig config = 8 [json_name = "config"]; - if (cached_has_bits & 0x00000004u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.config_); - } + // .viam.app.v1.LocationAuth auth = 5 [json_name = "auth"]; + if (this->_internal_has_auth()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *auth_); + } + // .viam.app.v1.StorageConfig config = 8 [json_name = "config"]; + if (this->_internal_has_config()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *config_); } + // int32 robot_count = 7 [json_name = "robotCount"]; if (this->_internal_robot_count() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_robot_count()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_robot_count()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Location::_class_data_ = { - Location::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Location::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Location::MergeImpl }; -const ::google::protobuf::Message::ClassData* Location::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Location::GetClassData() const { return &_class_data_; } + +void Location::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Location::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.Location) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Location::MergeFrom(const Location& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.Location) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_organizations()->MergeFrom( - from._internal_organizations()); + organizations_.MergeFrom(from.organizations_); if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (!from._internal_parent_location_id().empty()) { - _this->_internal_set_parent_location_id(from._internal_parent_location_id()); + _internal_set_parent_location_id(from._internal_parent_location_id()); } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_created_on()->::google::protobuf::Timestamp::MergeFrom( - from._internal_created_on()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_auth()->::viam::app::v1::LocationAuth::MergeFrom( - from._internal_auth()); - } - if (cached_has_bits & 0x00000004u) { - _this->_internal_mutable_config()->::viam::app::v1::StorageConfig::MergeFrom( - from._internal_config()); - } + if (from._internal_has_created_on()) { + _internal_mutable_created_on()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_created_on()); + } + if (from._internal_has_auth()) { + _internal_mutable_auth()->::viam::app::v1::LocationAuth::MergeFrom(from._internal_auth()); + } + if (from._internal_has_config()) { + _internal_mutable_config()->::viam::app::v1::StorageConfig::MergeFrom(from._internal_config()); } if (from._internal_robot_count() != 0) { - _this->_internal_set_robot_count(from._internal_robot_count()); + _internal_set_robot_count(from._internal_robot_count()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Location::CopyFrom(const Location& from) { @@ -18426,222 +17790,240 @@ void Location::CopyFrom(const Location& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Location::IsInitialized() const { +bool Location::IsInitialized() const { return true; } -::_pbi::CachedSize* Location::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Location::InternalSwap(Location* PROTOBUF_RESTRICT other) { +void Location::InternalSwap(Location* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.organizations_.InternalSwap(&other->_impl_.organizations_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.parent_location_id_, &other->_impl_.parent_location_id_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(Location, _impl_.robot_count_) - + sizeof(Location::_impl_.robot_count_) - - PROTOBUF_FIELD_OFFSET(Location, _impl_.created_on_)>( - reinterpret_cast(&_impl_.created_on_), - reinterpret_cast(&other->_impl_.created_on_)); -} - -::google::protobuf::Metadata Location::GetMetadata() const { + organizations_.InternalSwap(&other->organizations_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &parent_location_id_, lhs_arena, + &other->parent_location_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Location, robot_count_) + + sizeof(Location::robot_count_) + - PROTOBUF_FIELD_OFFSET(Location, created_on_)>( + reinterpret_cast(&created_on_), + reinterpret_cast(&other->created_on_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Location::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[48]); } + // =================================================================== class SharedSecret::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SharedSecret, _impl_._has_bits_); - static const ::google::protobuf::Timestamp& created_on(const SharedSecret* msg); - static void set_has_created_on(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& created_on(const SharedSecret* msg); }; -const ::google::protobuf::Timestamp& SharedSecret::_Internal::created_on(const SharedSecret* msg) { - return *msg->_impl_.created_on_; +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +SharedSecret::_Internal::created_on(const SharedSecret* msg) { + return *msg->created_on_; } void SharedSecret::clear_created_on() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.created_on_ != nullptr) _impl_.created_on_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && created_on_ != nullptr) { + delete created_on_; + } + created_on_ = nullptr; } -SharedSecret::SharedSecret(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +SharedSecret::SharedSecret(::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.SharedSecret) } -inline PROTOBUF_NDEBUG_INLINE SharedSecret::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - id_(arena, from.id_), - secret_(arena, from.secret_) {} - -SharedSecret::SharedSecret( - ::google::protobuf::Arena* arena, - const SharedSecret& from) - : ::google::protobuf::Message(arena) { - SharedSecret* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.created_on_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.created_on_) - : nullptr; - _impl_.state_ = from._impl_.state_; - - // @@protoc_insertion_point(copy_constructor:viam.app.v1.SharedSecret) -} -inline PROTOBUF_NDEBUG_INLINE SharedSecret::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - id_(arena), - secret_(arena) {} - -inline void SharedSecret::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, created_on_), - 0, - offsetof(Impl_, state_) - - offsetof(Impl_, created_on_) + - sizeof(Impl_::state_)); -} -SharedSecret::~SharedSecret() { +SharedSecret::SharedSecret(const SharedSecret& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } + secret_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + secret_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_secret().empty()) { + secret_.Set(from._internal_secret(), + GetArenaForAllocation()); + } + if (from._internal_has_created_on()) { + created_on_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from.created_on_); + } else { + created_on_ = nullptr; + } + state_ = from.state_; + // @@protoc_insertion_point(copy_constructor:viam.app.v1.SharedSecret) +} + +inline void SharedSecret::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +secret_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + secret_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&created_on_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&state_) - + reinterpret_cast(&created_on_)) + sizeof(state_)); +} + +SharedSecret::~SharedSecret() { // @@protoc_insertion_point(destructor:viam.app.v1.SharedSecret) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void SharedSecret::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.secret_.Destroy(); - delete _impl_.created_on_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); + secret_.Destroy(); + if (this != internal_default_instance()) delete created_on_; } -PROTOBUF_NOINLINE void SharedSecret::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.SharedSecret) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.id_.ClearToEmpty(); - _impl_.secret_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.created_on_ != nullptr); - _impl_.created_on_->Clear(); - } - _impl_.state_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void SharedSecret::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* SharedSecret::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void SharedSecret::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.SharedSecret) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + id_.ClearToEmpty(); + secret_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && created_on_ != nullptr) { + delete created_on_; + } + created_on_ = nullptr; + state_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SharedSecret::_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 id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"id\""]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.SharedSecret.id")); + } else + goto handle_unusual; + continue; + // string secret = 2 [json_name = "secret", (.tagger.v1.tags) = "bson:\"secret\""]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_secret(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.SharedSecret.secret")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\" json:\"created_on\""]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_created_on(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.app.v1.SharedSecret.State state = 4 [json_name = "state", (.tagger.v1.tags) = "bson:\"state\""]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_state(static_cast<::viam::app::v1::SharedSecret_State>(val)); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 1, 41, 2> SharedSecret::_table_ = { - { - PROTOBUF_FIELD_OFFSET(SharedSecret, _impl_._has_bits_), - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_SharedSecret_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.app.v1.SharedSecret.State state = 4 [json_name = "state", (.tagger.v1.tags) = "bson:\"state\""]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SharedSecret, _impl_.state_), 63>(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(SharedSecret, _impl_.state_)}}, - // string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"id\""]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(SharedSecret, _impl_.id_)}}, - // string secret = 2 [json_name = "secret", (.tagger.v1.tags) = "bson:\"secret\""]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(SharedSecret, _impl_.secret_)}}, - // .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\" json:\"created_on\""]; - {::_pbi::TcParser::FastMtS1, - {26, 0, 0, PROTOBUF_FIELD_OFFSET(SharedSecret, _impl_.created_on_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"id\""]; - {PROTOBUF_FIELD_OFFSET(SharedSecret, _impl_.id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string secret = 2 [json_name = "secret", (.tagger.v1.tags) = "bson:\"secret\""]; - {PROTOBUF_FIELD_OFFSET(SharedSecret, _impl_.secret_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\" json:\"created_on\""]; - {PROTOBUF_FIELD_OFFSET(SharedSecret, _impl_.created_on_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .viam.app.v1.SharedSecret.State state = 4 [json_name = "state", (.tagger.v1.tags) = "bson:\"state\""]; - {PROTOBUF_FIELD_OFFSET(SharedSecret, _impl_.state_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, - }}, {{ - "\30\2\6\0\0\0\0\0" - "viam.app.v1.SharedSecret" - "id" - "secret" - }}, -}; - -::uint8_t* SharedSecret::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* SharedSecret::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.SharedSecret) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"id\""]; if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.SharedSecret.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.SharedSecret.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); } // string secret = 2 [json_name = "secret", (.tagger.v1.tags) = "bson:\"secret\""]; if (!this->_internal_secret().empty()) { - const std::string& _s = this->_internal_secret(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.SharedSecret.secret"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_secret().data(), static_cast(this->_internal_secret().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.SharedSecret.secret"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_secret(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\" json:\"created_on\""]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::created_on(this), + if (this->_internal_has_created_on()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::created_on(this), _Internal::created_on(this).GetCachedSize(), target, stream); } @@ -18649,84 +18031,87 @@ ::uint8_t* SharedSecret::_InternalSerialize( if (this->_internal_state() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 4, this->_internal_state(), target); + 4, this->_internal_state(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.SharedSecret) return target; } -::size_t SharedSecret::ByteSizeLong() const { +size_t SharedSecret::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.SharedSecret) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"id\""]; if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } // string secret = 2 [json_name = "secret", (.tagger.v1.tags) = "bson:\"secret\""]; if (!this->_internal_secret().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_secret()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_secret()); } // .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\" json:\"created_on\""]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.created_on_); + if (this->_internal_has_created_on()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *created_on_); } // .viam.app.v1.SharedSecret.State state = 4 [json_name = "state", (.tagger.v1.tags) = "bson:\"state\""]; if (this->_internal_state() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_state()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_state()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData SharedSecret::_class_data_ = { - SharedSecret::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SharedSecret::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + SharedSecret::MergeImpl }; -const ::google::protobuf::Message::ClassData* SharedSecret::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SharedSecret::GetClassData() const { return &_class_data_; } + +void SharedSecret::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void SharedSecret::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.SharedSecret) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void SharedSecret::MergeFrom(const SharedSecret& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.SharedSecret) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } if (!from._internal_secret().empty()) { - _this->_internal_set_secret(from._internal_secret()); + _internal_set_secret(from._internal_secret()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_created_on()->::google::protobuf::Timestamp::MergeFrom( - from._internal_created_on()); + if (from._internal_has_created_on()) { + _internal_mutable_created_on()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_created_on()); } if (from._internal_state() != 0) { - _this->_internal_set_state(from._internal_state()); + _internal_set_state(from._internal_state()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SharedSecret::CopyFrom(const SharedSecret& from) { @@ -18736,265 +18121,302 @@ void SharedSecret::CopyFrom(const SharedSecret& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool SharedSecret::IsInitialized() const { +bool SharedSecret::IsInitialized() const { return true; } -::_pbi::CachedSize* SharedSecret::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void SharedSecret::InternalSwap(SharedSecret* PROTOBUF_RESTRICT other) { +void SharedSecret::InternalSwap(SharedSecret* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.secret_, &other->_impl_.secret_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(SharedSecret, _impl_.state_) - + sizeof(SharedSecret::_impl_.state_) - - PROTOBUF_FIELD_OFFSET(SharedSecret, _impl_.created_on_)>( - reinterpret_cast(&_impl_.created_on_), - reinterpret_cast(&other->_impl_.created_on_)); -} - -::google::protobuf::Metadata SharedSecret::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &secret_, lhs_arena, + &other->secret_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(SharedSecret, state_) + + sizeof(SharedSecret::state_) + - PROTOBUF_FIELD_OFFSET(SharedSecret, created_on_)>( + reinterpret_cast(&created_on_), + reinterpret_cast(&other->created_on_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SharedSecret::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[49]); } + // =================================================================== class CreateLocationRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(CreateLocationRequest, _impl_._has_bits_); + using HasBits = decltype(std::declval()._has_bits_); static void set_has_parent_location_id(HasBits* has_bits) { (*has_bits)[0] |= 1u; } }; -CreateLocationRequest::CreateLocationRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +CreateLocationRequest::CreateLocationRequest(::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.CreateLocationRequest) } -inline PROTOBUF_NDEBUG_INLINE CreateLocationRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - organization_id_(arena, from.organization_id_), - name_(arena, from.name_), - parent_location_id_(arena, from.parent_location_id_) {} - -CreateLocationRequest::CreateLocationRequest( - ::google::protobuf::Arena* arena, - const CreateLocationRequest& from) - : ::google::protobuf::Message(arena) { - CreateLocationRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +CreateLocationRequest::CreateLocationRequest(const CreateLocationRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + organization_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_organization_id().empty()) { + organization_id_.Set(from._internal_organization_id(), + GetArenaForAllocation()); + } + 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()); + } + parent_location_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + parent_location_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (from._internal_has_parent_location_id()) { + parent_location_id_.Set(from._internal_parent_location_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.CreateLocationRequest) } -inline PROTOBUF_NDEBUG_INLINE CreateLocationRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - organization_id_(arena), - name_(arena), - parent_location_id_(arena) {} -inline void CreateLocationRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void CreateLocationRequest::SharedCtor() { +organization_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +parent_location_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + parent_location_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + CreateLocationRequest::~CreateLocationRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.CreateLocationRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void CreateLocationRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.organization_id_.Destroy(); - _impl_.name_.Destroy(); - _impl_.parent_location_id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + organization_id_.Destroy(); + name_.Destroy(); + parent_location_id_.Destroy(); } -PROTOBUF_NOINLINE void CreateLocationRequest::Clear() { +void CreateLocationRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void CreateLocationRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.CreateLocationRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.organization_id_.ClearToEmpty(); - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; + organization_id_.ClearToEmpty(); + name_.ClearToEmpty(); + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { - _impl_.parent_location_id_.ClearNonDefaultToEmpty(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* CreateLocationRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + parent_location_id_.ClearNonDefaultToEmpty(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CreateLocationRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string organization_id = 1 [json_name = "organizationId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_organization_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.CreateLocationRequest.organization_id")); + } else + goto handle_unusual; + continue; + // string name = 2 [json_name = "name"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.CreateLocationRequest.name")); + } else + goto handle_unusual; + continue; + // optional string parent_location_id = 3 [json_name = "parentLocationId"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_parent_location_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.CreateLocationRequest.parent_location_id")); + } 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: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 79, 2> CreateLocationRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(CreateLocationRequest, _impl_._has_bits_), - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_CreateLocationRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string organization_id = 1 [json_name = "organizationId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(CreateLocationRequest, _impl_.organization_id_)}}, - // string name = 2 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(CreateLocationRequest, _impl_.name_)}}, - // optional string parent_location_id = 3 [json_name = "parentLocationId"]; - {::_pbi::TcParser::FastUS1, - {26, 0, 0, PROTOBUF_FIELD_OFFSET(CreateLocationRequest, _impl_.parent_location_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string organization_id = 1 [json_name = "organizationId"]; - {PROTOBUF_FIELD_OFFSET(CreateLocationRequest, _impl_.organization_id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string name = 2 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(CreateLocationRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // optional string parent_location_id = 3 [json_name = "parentLocationId"]; - {PROTOBUF_FIELD_OFFSET(CreateLocationRequest, _impl_.parent_location_id_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\41\17\4\22\0\0\0\0" - "viam.app.v1.CreateLocationRequest" - "organization_id" - "name" - "parent_location_id" - }}, -}; - -::uint8_t* CreateLocationRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* CreateLocationRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.CreateLocationRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string organization_id = 1 [json_name = "organizationId"]; if (!this->_internal_organization_id().empty()) { - const std::string& _s = this->_internal_organization_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.CreateLocationRequest.organization_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_organization_id().data(), static_cast(this->_internal_organization_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.CreateLocationRequest.organization_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_organization_id(), target); } // string name = 2 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.CreateLocationRequest.name"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.CreateLocationRequest.name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // optional string parent_location_id = 3 [json_name = "parentLocationId"]; - if (cached_has_bits & 0x00000001u) { - const std::string& _s = this->_internal_parent_location_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.CreateLocationRequest.parent_location_id"); - target = stream->WriteStringMaybeAliased(3, _s, target); + if (_internal_has_parent_location_id()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_parent_location_id().data(), static_cast(this->_internal_parent_location_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.CreateLocationRequest.parent_location_id"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_parent_location_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.CreateLocationRequest) return target; } -::size_t CreateLocationRequest::ByteSizeLong() const { +size_t CreateLocationRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.CreateLocationRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string organization_id = 1 [json_name = "organizationId"]; if (!this->_internal_organization_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_organization_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_organization_id()); } // string name = 2 [json_name = "name"]; if (!this->_internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // optional string parent_location_id = 3 [json_name = "parentLocationId"]; - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_parent_location_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_parent_location_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData CreateLocationRequest::_class_data_ = { - CreateLocationRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CreateLocationRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CreateLocationRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* CreateLocationRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CreateLocationRequest::GetClassData() const { return &_class_data_; } + +void CreateLocationRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void CreateLocationRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.CreateLocationRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void CreateLocationRequest::MergeFrom(const CreateLocationRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.CreateLocationRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_organization_id().empty()) { - _this->_internal_set_organization_id(from._internal_organization_id()); + _internal_set_organization_id(from._internal_organization_id()); } if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_set_parent_location_id(from._internal_parent_location_id()); + if (from._internal_has_parent_location_id()) { + _internal_set_parent_location_id(from._internal_parent_location_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CreateLocationRequest::CopyFrom(const CreateLocationRequest& from) { @@ -19004,208 +18426,198 @@ void CreateLocationRequest::CopyFrom(const CreateLocationRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool CreateLocationRequest::IsInitialized() const { +bool CreateLocationRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* CreateLocationRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void CreateLocationRequest::InternalSwap(CreateLocationRequest* PROTOBUF_RESTRICT other) { +void CreateLocationRequest::InternalSwap(CreateLocationRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.organization_id_, &other->_impl_.organization_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.parent_location_id_, &other->_impl_.parent_location_id_, arena); -} - -::google::protobuf::Metadata CreateLocationRequest::GetMetadata() const { + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &organization_id_, lhs_arena, + &other->organization_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &parent_location_id_, lhs_arena, + &other->parent_location_id_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata CreateLocationRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[50]); } + // =================================================================== class CreateLocationResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(CreateLocationResponse, _impl_._has_bits_); static const ::viam::app::v1::Location& location(const CreateLocationResponse* msg); - static void set_has_location(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::app::v1::Location& CreateLocationResponse::_Internal::location(const CreateLocationResponse* msg) { - return *msg->_impl_.location_; +const ::viam::app::v1::Location& +CreateLocationResponse::_Internal::location(const CreateLocationResponse* msg) { + return *msg->location_; } -CreateLocationResponse::CreateLocationResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +CreateLocationResponse::CreateLocationResponse(::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.CreateLocationResponse) } -inline PROTOBUF_NDEBUG_INLINE CreateLocationResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -CreateLocationResponse::CreateLocationResponse( - ::google::protobuf::Arena* arena, - const CreateLocationResponse& from) - : ::google::protobuf::Message(arena) { - CreateLocationResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.location_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::app::v1::Location>(arena, *from._impl_.location_) - : nullptr; - +CreateLocationResponse::CreateLocationResponse(const CreateLocationResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_location()) { + location_ = new ::viam::app::v1::Location(*from.location_); + } else { + location_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.CreateLocationResponse) } -inline PROTOBUF_NDEBUG_INLINE CreateLocationResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void CreateLocationResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.location_ = {}; +inline void CreateLocationResponse::SharedCtor() { +location_ = nullptr; } + CreateLocationResponse::~CreateLocationResponse() { // @@protoc_insertion_point(destructor:viam.app.v1.CreateLocationResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void CreateLocationResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.location_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete location_; } -PROTOBUF_NOINLINE void CreateLocationResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.CreateLocationResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.location_ != nullptr); - _impl_.location_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void CreateLocationResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* CreateLocationResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void CreateLocationResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.CreateLocationResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && location_ != nullptr) { + delete location_; + } + location_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CreateLocationResponse::_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.app.v1.Location location = 1 [json_name = "location"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_location(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> CreateLocationResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(CreateLocationResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_CreateLocationResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.app.v1.Location location = 1 [json_name = "location"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(CreateLocationResponse, _impl_.location_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.app.v1.Location location = 1 [json_name = "location"]; - {PROTOBUF_FIELD_OFFSET(CreateLocationResponse, _impl_.location_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::Location>()}, - }}, {{ - }}, -}; - -::uint8_t* CreateLocationResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* CreateLocationResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.CreateLocationResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.app.v1.Location location = 1 [json_name = "location"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::location(this), + if (this->_internal_has_location()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::location(this), _Internal::location(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.CreateLocationResponse) return target; } -::size_t CreateLocationResponse::ByteSizeLong() const { +size_t CreateLocationResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.CreateLocationResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .viam.app.v1.Location location = 1 [json_name = "location"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.location_); + if (this->_internal_has_location()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *location_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData CreateLocationResponse::_class_data_ = { - CreateLocationResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CreateLocationResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CreateLocationResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* CreateLocationResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CreateLocationResponse::GetClassData() const { return &_class_data_; } + +void CreateLocationResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void CreateLocationResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.CreateLocationResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void CreateLocationResponse::MergeFrom(const CreateLocationResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.CreateLocationResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_location()->::viam::app::v1::Location::MergeFrom( - from._internal_location()); + if (from._internal_has_location()) { + _internal_mutable_location()->::viam::app::v1::Location::MergeFrom(from._internal_location()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CreateLocationResponse::CopyFrom(const CreateLocationResponse& from) { @@ -19215,186 +18627,187 @@ void CreateLocationResponse::CopyFrom(const CreateLocationResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool CreateLocationResponse::IsInitialized() const { +bool CreateLocationResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* CreateLocationResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void CreateLocationResponse::InternalSwap(CreateLocationResponse* PROTOBUF_RESTRICT other) { +void CreateLocationResponse::InternalSwap(CreateLocationResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.location_, other->_impl_.location_); + swap(location_, other->location_); } -::google::protobuf::Metadata CreateLocationResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata CreateLocationResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[51]); } + // =================================================================== class GetLocationRequest::_Internal { public: }; -GetLocationRequest::GetLocationRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetLocationRequest::GetLocationRequest(::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.GetLocationRequest) } -inline PROTOBUF_NDEBUG_INLINE GetLocationRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : location_id_(arena, from.location_id_), - _cached_size_{0} {} - -GetLocationRequest::GetLocationRequest( - ::google::protobuf::Arena* arena, - const GetLocationRequest& from) - : ::google::protobuf::Message(arena) { - GetLocationRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetLocationRequest::GetLocationRequest(const GetLocationRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + location_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + location_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_location_id().empty()) { + location_id_.Set(from._internal_location_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetLocationRequest) } -inline PROTOBUF_NDEBUG_INLINE GetLocationRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : location_id_(arena), - _cached_size_{0} {} -inline void GetLocationRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetLocationRequest::SharedCtor() { +location_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + location_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + GetLocationRequest::~GetLocationRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.GetLocationRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetLocationRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.location_id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + location_id_.Destroy(); } -PROTOBUF_NOINLINE void GetLocationRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetLocationRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.location_id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void GetLocationRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* GetLocationRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void GetLocationRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetLocationRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + location_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetLocationRequest::_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 location_id = 1 [json_name = "locationId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_location_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.GetLocationRequest.location_id")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 50, 2> GetLocationRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetLocationRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string location_id = 1 [json_name = "locationId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetLocationRequest, _impl_.location_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string location_id = 1 [json_name = "locationId"]; - {PROTOBUF_FIELD_OFFSET(GetLocationRequest, _impl_.location_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\36\13\0\0\0\0\0\0" - "viam.app.v1.GetLocationRequest" - "location_id" - }}, -}; - -::uint8_t* GetLocationRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetLocationRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetLocationRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string location_id = 1 [json_name = "locationId"]; if (!this->_internal_location_id().empty()) { - const std::string& _s = this->_internal_location_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.GetLocationRequest.location_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_location_id().data(), static_cast(this->_internal_location_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.GetLocationRequest.location_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_location_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.GetLocationRequest) return target; } -::size_t GetLocationRequest::ByteSizeLong() const { +size_t GetLocationRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetLocationRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string location_id = 1 [json_name = "locationId"]; if (!this->_internal_location_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_location_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_location_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetLocationRequest::_class_data_ = { - GetLocationRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetLocationRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetLocationRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetLocationRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetLocationRequest::GetClassData() const { return &_class_data_; } + +void GetLocationRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetLocationRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetLocationRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetLocationRequest::MergeFrom(const GetLocationRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetLocationRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_location_id().empty()) { - _this->_internal_set_location_id(from._internal_location_id()); + _internal_set_location_id(from._internal_location_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetLocationRequest::CopyFrom(const GetLocationRequest& from) { @@ -19404,205 +18817,189 @@ void GetLocationRequest::CopyFrom(const GetLocationRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetLocationRequest::IsInitialized() const { +bool GetLocationRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetLocationRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetLocationRequest::InternalSwap(GetLocationRequest* PROTOBUF_RESTRICT other) { +void GetLocationRequest::InternalSwap(GetLocationRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.location_id_, &other->_impl_.location_id_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &location_id_, lhs_arena, + &other->location_id_, rhs_arena + ); } -::google::protobuf::Metadata GetLocationRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetLocationRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[52]); } + // =================================================================== class GetLocationResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetLocationResponse, _impl_._has_bits_); static const ::viam::app::v1::Location& location(const GetLocationResponse* msg); - static void set_has_location(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::app::v1::Location& GetLocationResponse::_Internal::location(const GetLocationResponse* msg) { - return *msg->_impl_.location_; +const ::viam::app::v1::Location& +GetLocationResponse::_Internal::location(const GetLocationResponse* msg) { + return *msg->location_; } -GetLocationResponse::GetLocationResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetLocationResponse::GetLocationResponse(::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.GetLocationResponse) } -inline PROTOBUF_NDEBUG_INLINE GetLocationResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -GetLocationResponse::GetLocationResponse( - ::google::protobuf::Arena* arena, - const GetLocationResponse& from) - : ::google::protobuf::Message(arena) { - GetLocationResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.location_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::app::v1::Location>(arena, *from._impl_.location_) - : nullptr; - +GetLocationResponse::GetLocationResponse(const GetLocationResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_location()) { + location_ = new ::viam::app::v1::Location(*from.location_); + } else { + location_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetLocationResponse) } -inline PROTOBUF_NDEBUG_INLINE GetLocationResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void GetLocationResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.location_ = {}; +inline void GetLocationResponse::SharedCtor() { +location_ = nullptr; } + GetLocationResponse::~GetLocationResponse() { // @@protoc_insertion_point(destructor:viam.app.v1.GetLocationResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetLocationResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.location_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete location_; } -PROTOBUF_NOINLINE void GetLocationResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetLocationResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.location_ != nullptr); - _impl_.location_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void GetLocationResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* GetLocationResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void GetLocationResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetLocationResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && location_ != nullptr) { + delete location_; + } + location_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetLocationResponse::_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.app.v1.Location location = 1 [json_name = "location"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_location(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetLocationResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetLocationResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetLocationResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.app.v1.Location location = 1 [json_name = "location"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetLocationResponse, _impl_.location_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.app.v1.Location location = 1 [json_name = "location"]; - {PROTOBUF_FIELD_OFFSET(GetLocationResponse, _impl_.location_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::Location>()}, - }}, {{ - }}, -}; - -::uint8_t* GetLocationResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetLocationResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetLocationResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.app.v1.Location location = 1 [json_name = "location"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::location(this), + if (this->_internal_has_location()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::location(this), _Internal::location(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.GetLocationResponse) return target; } -::size_t GetLocationResponse::ByteSizeLong() const { +size_t GetLocationResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetLocationResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .viam.app.v1.Location location = 1 [json_name = "location"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.location_); + if (this->_internal_has_location()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *location_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetLocationResponse::_class_data_ = { - GetLocationResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetLocationResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetLocationResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetLocationResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetLocationResponse::GetClassData() const { return &_class_data_; } + +void GetLocationResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetLocationResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetLocationResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetLocationResponse::MergeFrom(const GetLocationResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetLocationResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_location()->::viam::app::v1::Location::MergeFrom( - from._internal_location()); + if (from._internal_has_location()) { + _internal_mutable_location()->::viam::app::v1::Location::MergeFrom(from._internal_location()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetLocationResponse::CopyFrom(const GetLocationResponse& from) { @@ -19612,32 +19009,27 @@ void GetLocationResponse::CopyFrom(const GetLocationResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetLocationResponse::IsInitialized() const { +bool GetLocationResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetLocationResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetLocationResponse::InternalSwap(GetLocationResponse* PROTOBUF_RESTRICT other) { +void GetLocationResponse::InternalSwap(GetLocationResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.location_, other->_impl_.location_); + swap(location_, other->location_); } -::google::protobuf::Metadata GetLocationResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetLocationResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[53]); } + // =================================================================== class UpdateLocationRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(UpdateLocationRequest, _impl_._has_bits_); + using HasBits = decltype(std::declval()._has_bits_); static void set_has_name(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -19649,263 +19041,316 @@ class UpdateLocationRequest::_Internal { } }; -UpdateLocationRequest::UpdateLocationRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +UpdateLocationRequest::UpdateLocationRequest(::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.UpdateLocationRequest) } -inline PROTOBUF_NDEBUG_INLINE UpdateLocationRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - location_id_(arena, from.location_id_), - name_(arena, from.name_), - parent_location_id_(arena, from.parent_location_id_), - region_(arena, from.region_) {} - -UpdateLocationRequest::UpdateLocationRequest( - ::google::protobuf::Arena* arena, - const UpdateLocationRequest& from) - : ::google::protobuf::Message(arena) { - UpdateLocationRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +UpdateLocationRequest::UpdateLocationRequest(const UpdateLocationRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + location_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + location_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_location_id().empty()) { + location_id_.Set(from._internal_location_id(), + GetArenaForAllocation()); + } + name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (from._internal_has_name()) { + name_.Set(from._internal_name(), + GetArenaForAllocation()); + } + parent_location_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + parent_location_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (from._internal_has_parent_location_id()) { + parent_location_id_.Set(from._internal_parent_location_id(), + GetArenaForAllocation()); + } + region_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + region_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (from._internal_has_region()) { + region_.Set(from._internal_region(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.UpdateLocationRequest) } -inline PROTOBUF_NDEBUG_INLINE UpdateLocationRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - location_id_(arena), - name_(arena), - parent_location_id_(arena), - region_(arena) {} -inline void UpdateLocationRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void UpdateLocationRequest::SharedCtor() { +location_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + location_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +parent_location_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + parent_location_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +region_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + region_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + UpdateLocationRequest::~UpdateLocationRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.UpdateLocationRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void UpdateLocationRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.location_id_.Destroy(); - _impl_.name_.Destroy(); - _impl_.parent_location_id_.Destroy(); - _impl_.region_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + location_id_.Destroy(); + name_.Destroy(); + parent_location_id_.Destroy(); + region_.Destroy(); +} + +void UpdateLocationRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void UpdateLocationRequest::Clear() { +void UpdateLocationRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.UpdateLocationRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.location_id_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; + location_id_.ClearToEmpty(); + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { - _impl_.name_.ClearNonDefaultToEmpty(); + name_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { - _impl_.parent_location_id_.ClearNonDefaultToEmpty(); + parent_location_id_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { - _impl_.region_.ClearNonDefaultToEmpty(); + region_.ClearNonDefaultToEmpty(); } } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* UpdateLocationRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* UpdateLocationRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string location_id = 1 [json_name = "locationId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_location_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.UpdateLocationRequest.location_id")); + } else + goto handle_unusual; + continue; + // optional string name = 2 [json_name = "name"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.UpdateLocationRequest.name")); + } else + goto handle_unusual; + continue; + // optional string parent_location_id = 3 [json_name = "parentLocationId"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_parent_location_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.UpdateLocationRequest.parent_location_id")); + } else + goto handle_unusual; + continue; + // optional string region = 4 [json_name = "region"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_region(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.UpdateLocationRequest.region")); + } 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: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 0, 81, 2> UpdateLocationRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(UpdateLocationRequest, _impl_._has_bits_), - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_UpdateLocationRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // optional string region = 4 [json_name = "region"]; - {::_pbi::TcParser::FastUS1, - {34, 2, 0, PROTOBUF_FIELD_OFFSET(UpdateLocationRequest, _impl_.region_)}}, - // string location_id = 1 [json_name = "locationId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(UpdateLocationRequest, _impl_.location_id_)}}, - // optional string name = 2 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(UpdateLocationRequest, _impl_.name_)}}, - // optional string parent_location_id = 3 [json_name = "parentLocationId"]; - {::_pbi::TcParser::FastUS1, - {26, 1, 0, PROTOBUF_FIELD_OFFSET(UpdateLocationRequest, _impl_.parent_location_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string location_id = 1 [json_name = "locationId"]; - {PROTOBUF_FIELD_OFFSET(UpdateLocationRequest, _impl_.location_id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // optional string name = 2 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(UpdateLocationRequest, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // optional string parent_location_id = 3 [json_name = "parentLocationId"]; - {PROTOBUF_FIELD_OFFSET(UpdateLocationRequest, _impl_.parent_location_id_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // optional string region = 4 [json_name = "region"]; - {PROTOBUF_FIELD_OFFSET(UpdateLocationRequest, _impl_.region_), _Internal::kHasBitsOffset + 2, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\41\13\4\22\6\0\0\0" - "viam.app.v1.UpdateLocationRequest" - "location_id" - "name" - "parent_location_id" - "region" - }}, -}; - -::uint8_t* UpdateLocationRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* UpdateLocationRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.UpdateLocationRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string location_id = 1 [json_name = "locationId"]; if (!this->_internal_location_id().empty()) { - const std::string& _s = this->_internal_location_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.UpdateLocationRequest.location_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_location_id().data(), static_cast(this->_internal_location_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.UpdateLocationRequest.location_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_location_id(), target); } - cached_has_bits = _impl_._has_bits_[0]; // optional string name = 2 [json_name = "name"]; - if (cached_has_bits & 0x00000001u) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.UpdateLocationRequest.name"); - target = stream->WriteStringMaybeAliased(2, _s, target); + if (_internal_has_name()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.UpdateLocationRequest.name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_name(), target); } // optional string parent_location_id = 3 [json_name = "parentLocationId"]; - if (cached_has_bits & 0x00000002u) { - const std::string& _s = this->_internal_parent_location_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.UpdateLocationRequest.parent_location_id"); - target = stream->WriteStringMaybeAliased(3, _s, target); + if (_internal_has_parent_location_id()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_parent_location_id().data(), static_cast(this->_internal_parent_location_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.UpdateLocationRequest.parent_location_id"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_parent_location_id(), target); } // optional string region = 4 [json_name = "region"]; - if (cached_has_bits & 0x00000004u) { - const std::string& _s = this->_internal_region(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.UpdateLocationRequest.region"); - target = stream->WriteStringMaybeAliased(4, _s, target); + if (_internal_has_region()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_region().data(), static_cast(this->_internal_region().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.UpdateLocationRequest.region"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_region(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.UpdateLocationRequest) return target; } -::size_t UpdateLocationRequest::ByteSizeLong() const { +size_t UpdateLocationRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.UpdateLocationRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string location_id = 1 [json_name = "locationId"]; if (!this->_internal_location_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_location_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_location_id()); } - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000007u) { // optional string name = 2 [json_name = "name"]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // optional string parent_location_id = 3 [json_name = "parentLocationId"]; if (cached_has_bits & 0x00000002u) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_parent_location_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_parent_location_id()); } // optional string region = 4 [json_name = "region"]; if (cached_has_bits & 0x00000004u) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_region()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_region()); } } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData UpdateLocationRequest::_class_data_ = { - UpdateLocationRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UpdateLocationRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + UpdateLocationRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* UpdateLocationRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UpdateLocationRequest::GetClassData() const { return &_class_data_; } + +void UpdateLocationRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void UpdateLocationRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.UpdateLocationRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void UpdateLocationRequest::MergeFrom(const UpdateLocationRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.UpdateLocationRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_location_id().empty()) { - _this->_internal_set_location_id(from._internal_location_id()); + _internal_set_location_id(from._internal_location_id()); } - cached_has_bits = from._impl_._has_bits_[0]; + cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (cached_has_bits & 0x00000002u) { - _this->_internal_set_parent_location_id(from._internal_parent_location_id()); + _internal_set_parent_location_id(from._internal_parent_location_id()); } if (cached_has_bits & 0x00000004u) { - _this->_internal_set_region(from._internal_region()); + _internal_set_region(from._internal_region()); } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void UpdateLocationRequest::CopyFrom(const UpdateLocationRequest& from) { @@ -19915,209 +19360,202 @@ void UpdateLocationRequest::CopyFrom(const UpdateLocationRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool UpdateLocationRequest::IsInitialized() const { +bool UpdateLocationRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* UpdateLocationRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void UpdateLocationRequest::InternalSwap(UpdateLocationRequest* PROTOBUF_RESTRICT other) { +void UpdateLocationRequest::InternalSwap(UpdateLocationRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.location_id_, &other->_impl_.location_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.parent_location_id_, &other->_impl_.parent_location_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.region_, &other->_impl_.region_, arena); -} - -::google::protobuf::Metadata UpdateLocationRequest::GetMetadata() const { + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &location_id_, lhs_arena, + &other->location_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &parent_location_id_, lhs_arena, + &other->parent_location_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + ®ion_, lhs_arena, + &other->region_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata UpdateLocationRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[54]); } + // =================================================================== class UpdateLocationResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(UpdateLocationResponse, _impl_._has_bits_); static const ::viam::app::v1::Location& location(const UpdateLocationResponse* msg); - static void set_has_location(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::app::v1::Location& UpdateLocationResponse::_Internal::location(const UpdateLocationResponse* msg) { - return *msg->_impl_.location_; +const ::viam::app::v1::Location& +UpdateLocationResponse::_Internal::location(const UpdateLocationResponse* msg) { + return *msg->location_; } -UpdateLocationResponse::UpdateLocationResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +UpdateLocationResponse::UpdateLocationResponse(::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.UpdateLocationResponse) } -inline PROTOBUF_NDEBUG_INLINE UpdateLocationResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -UpdateLocationResponse::UpdateLocationResponse( - ::google::protobuf::Arena* arena, - const UpdateLocationResponse& from) - : ::google::protobuf::Message(arena) { - UpdateLocationResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.location_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::app::v1::Location>(arena, *from._impl_.location_) - : nullptr; - +UpdateLocationResponse::UpdateLocationResponse(const UpdateLocationResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_location()) { + location_ = new ::viam::app::v1::Location(*from.location_); + } else { + location_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.UpdateLocationResponse) } -inline PROTOBUF_NDEBUG_INLINE UpdateLocationResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void UpdateLocationResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.location_ = {}; +inline void UpdateLocationResponse::SharedCtor() { +location_ = nullptr; } + UpdateLocationResponse::~UpdateLocationResponse() { // @@protoc_insertion_point(destructor:viam.app.v1.UpdateLocationResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void UpdateLocationResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.location_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete location_; } -PROTOBUF_NOINLINE void UpdateLocationResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.UpdateLocationResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.location_ != nullptr); - _impl_.location_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void UpdateLocationResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* UpdateLocationResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void UpdateLocationResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.UpdateLocationResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && location_ != nullptr) { + delete location_; + } + location_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* UpdateLocationResponse::_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.app.v1.Location location = 1 [json_name = "location"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_location(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> UpdateLocationResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(UpdateLocationResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_UpdateLocationResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.app.v1.Location location = 1 [json_name = "location"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(UpdateLocationResponse, _impl_.location_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.app.v1.Location location = 1 [json_name = "location"]; - {PROTOBUF_FIELD_OFFSET(UpdateLocationResponse, _impl_.location_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::Location>()}, - }}, {{ - }}, -}; - -::uint8_t* UpdateLocationResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* UpdateLocationResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.UpdateLocationResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.app.v1.Location location = 1 [json_name = "location"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::location(this), + if (this->_internal_has_location()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::location(this), _Internal::location(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.UpdateLocationResponse) return target; } -::size_t UpdateLocationResponse::ByteSizeLong() const { +size_t UpdateLocationResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.UpdateLocationResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .viam.app.v1.Location location = 1 [json_name = "location"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.location_); + if (this->_internal_has_location()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *location_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData UpdateLocationResponse::_class_data_ = { - UpdateLocationResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UpdateLocationResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + UpdateLocationResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* UpdateLocationResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UpdateLocationResponse::GetClassData() const { return &_class_data_; } + +void UpdateLocationResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void UpdateLocationResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.UpdateLocationResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void UpdateLocationResponse::MergeFrom(const UpdateLocationResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.UpdateLocationResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_location()->::viam::app::v1::Location::MergeFrom( - from._internal_location()); + if (from._internal_has_location()) { + _internal_mutable_location()->::viam::app::v1::Location::MergeFrom(from._internal_location()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void UpdateLocationResponse::CopyFrom(const UpdateLocationResponse& from) { @@ -20127,186 +19565,187 @@ void UpdateLocationResponse::CopyFrom(const UpdateLocationResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool UpdateLocationResponse::IsInitialized() const { +bool UpdateLocationResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* UpdateLocationResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void UpdateLocationResponse::InternalSwap(UpdateLocationResponse* PROTOBUF_RESTRICT other) { +void UpdateLocationResponse::InternalSwap(UpdateLocationResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.location_, other->_impl_.location_); + swap(location_, other->location_); } -::google::protobuf::Metadata UpdateLocationResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata UpdateLocationResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[55]); } + // =================================================================== class DeleteLocationRequest::_Internal { public: }; -DeleteLocationRequest::DeleteLocationRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +DeleteLocationRequest::DeleteLocationRequest(::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.DeleteLocationRequest) } -inline PROTOBUF_NDEBUG_INLINE DeleteLocationRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : location_id_(arena, from.location_id_), - _cached_size_{0} {} - -DeleteLocationRequest::DeleteLocationRequest( - ::google::protobuf::Arena* arena, - const DeleteLocationRequest& from) - : ::google::protobuf::Message(arena) { - DeleteLocationRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +DeleteLocationRequest::DeleteLocationRequest(const DeleteLocationRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + location_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + location_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_location_id().empty()) { + location_id_.Set(from._internal_location_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.DeleteLocationRequest) } -inline PROTOBUF_NDEBUG_INLINE DeleteLocationRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : location_id_(arena), - _cached_size_{0} {} -inline void DeleteLocationRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void DeleteLocationRequest::SharedCtor() { +location_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + location_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + DeleteLocationRequest::~DeleteLocationRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.DeleteLocationRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void DeleteLocationRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.location_id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + location_id_.Destroy(); } -PROTOBUF_NOINLINE void DeleteLocationRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.DeleteLocationRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.location_id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void DeleteLocationRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* DeleteLocationRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void DeleteLocationRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.DeleteLocationRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + location_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DeleteLocationRequest::_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 location_id = 1 [json_name = "locationId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_location_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.DeleteLocationRequest.location_id")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 53, 2> DeleteLocationRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_DeleteLocationRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string location_id = 1 [json_name = "locationId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(DeleteLocationRequest, _impl_.location_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string location_id = 1 [json_name = "locationId"]; - {PROTOBUF_FIELD_OFFSET(DeleteLocationRequest, _impl_.location_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\41\13\0\0\0\0\0\0" - "viam.app.v1.DeleteLocationRequest" - "location_id" - }}, -}; - -::uint8_t* DeleteLocationRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* DeleteLocationRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.DeleteLocationRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string location_id = 1 [json_name = "locationId"]; if (!this->_internal_location_id().empty()) { - const std::string& _s = this->_internal_location_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.DeleteLocationRequest.location_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_location_id().data(), static_cast(this->_internal_location_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.DeleteLocationRequest.location_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_location_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.DeleteLocationRequest) return target; } -::size_t DeleteLocationRequest::ByteSizeLong() const { +size_t DeleteLocationRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.DeleteLocationRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string location_id = 1 [json_name = "locationId"]; if (!this->_internal_location_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_location_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_location_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData DeleteLocationRequest::_class_data_ = { - DeleteLocationRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeleteLocationRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + DeleteLocationRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* DeleteLocationRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeleteLocationRequest::GetClassData() const { return &_class_data_; } + +void DeleteLocationRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void DeleteLocationRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.DeleteLocationRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void DeleteLocationRequest::MergeFrom(const DeleteLocationRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.DeleteLocationRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_location_id().empty()) { - _this->_internal_set_location_id(from._internal_location_id()); + _internal_set_location_id(from._internal_location_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void DeleteLocationRequest::CopyFrom(const DeleteLocationRequest& from) { @@ -20316,45 +19755,41 @@ void DeleteLocationRequest::CopyFrom(const DeleteLocationRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool DeleteLocationRequest::IsInitialized() const { +bool DeleteLocationRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* DeleteLocationRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void DeleteLocationRequest::InternalSwap(DeleteLocationRequest* PROTOBUF_RESTRICT other) { +void DeleteLocationRequest::InternalSwap(DeleteLocationRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.location_id_, &other->_impl_.location_id_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &location_id_, lhs_arena, + &other->location_id_, rhs_arena + ); } -::google::protobuf::Metadata DeleteLocationRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata DeleteLocationRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[56]); } + // =================================================================== class DeleteLocationResponse::_Internal { public: }; -DeleteLocationResponse::DeleteLocationResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +DeleteLocationResponse::DeleteLocationResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.app.v1.DeleteLocationResponse) } -DeleteLocationResponse::DeleteLocationResponse( - ::google::protobuf::Arena* arena, - const DeleteLocationResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - DeleteLocationResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +DeleteLocationResponse::DeleteLocationResponse(const DeleteLocationResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.app.v1.DeleteLocationResponse) } @@ -20362,176 +19797,189 @@ DeleteLocationResponse::DeleteLocationResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeleteLocationResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeleteLocationResponse::GetClassData() const { return &_class_data_; } + + -::google::protobuf::Metadata DeleteLocationResponse::GetMetadata() const { + +::PROTOBUF_NAMESPACE_ID::Metadata DeleteLocationResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[57]); } + // =================================================================== class GetOrganizationsWithAccessToLocationRequest::_Internal { public: }; -GetOrganizationsWithAccessToLocationRequest::GetOrganizationsWithAccessToLocationRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetOrganizationsWithAccessToLocationRequest::GetOrganizationsWithAccessToLocationRequest(::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.GetOrganizationsWithAccessToLocationRequest) } -inline PROTOBUF_NDEBUG_INLINE GetOrganizationsWithAccessToLocationRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : location_id_(arena, from.location_id_), - _cached_size_{0} {} - -GetOrganizationsWithAccessToLocationRequest::GetOrganizationsWithAccessToLocationRequest( - ::google::protobuf::Arena* arena, - const GetOrganizationsWithAccessToLocationRequest& from) - : ::google::protobuf::Message(arena) { - GetOrganizationsWithAccessToLocationRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetOrganizationsWithAccessToLocationRequest::GetOrganizationsWithAccessToLocationRequest(const GetOrganizationsWithAccessToLocationRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + location_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + location_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_location_id().empty()) { + location_id_.Set(from._internal_location_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetOrganizationsWithAccessToLocationRequest) } -inline PROTOBUF_NDEBUG_INLINE GetOrganizationsWithAccessToLocationRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : location_id_(arena), - _cached_size_{0} {} -inline void GetOrganizationsWithAccessToLocationRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetOrganizationsWithAccessToLocationRequest::SharedCtor() { +location_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + location_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + GetOrganizationsWithAccessToLocationRequest::~GetOrganizationsWithAccessToLocationRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.GetOrganizationsWithAccessToLocationRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetOrganizationsWithAccessToLocationRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.location_id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + location_id_.Destroy(); } -PROTOBUF_NOINLINE void GetOrganizationsWithAccessToLocationRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetOrganizationsWithAccessToLocationRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.location_id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void GetOrganizationsWithAccessToLocationRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* GetOrganizationsWithAccessToLocationRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void GetOrganizationsWithAccessToLocationRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetOrganizationsWithAccessToLocationRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + location_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetOrganizationsWithAccessToLocationRequest::_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 location_id = 1 [json_name = "locationId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_location_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.GetOrganizationsWithAccessToLocationRequest.location_id")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 75, 2> GetOrganizationsWithAccessToLocationRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetOrganizationsWithAccessToLocationRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string location_id = 1 [json_name = "locationId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetOrganizationsWithAccessToLocationRequest, _impl_.location_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string location_id = 1 [json_name = "locationId"]; - {PROTOBUF_FIELD_OFFSET(GetOrganizationsWithAccessToLocationRequest, _impl_.location_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\67\13\0\0\0\0\0\0" - "viam.app.v1.GetOrganizationsWithAccessToLocationRequest" - "location_id" - }}, -}; - -::uint8_t* GetOrganizationsWithAccessToLocationRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetOrganizationsWithAccessToLocationRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetOrganizationsWithAccessToLocationRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string location_id = 1 [json_name = "locationId"]; if (!this->_internal_location_id().empty()) { - const std::string& _s = this->_internal_location_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.GetOrganizationsWithAccessToLocationRequest.location_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_location_id().data(), static_cast(this->_internal_location_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.GetOrganizationsWithAccessToLocationRequest.location_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_location_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.GetOrganizationsWithAccessToLocationRequest) return target; } -::size_t GetOrganizationsWithAccessToLocationRequest::ByteSizeLong() const { +size_t GetOrganizationsWithAccessToLocationRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetOrganizationsWithAccessToLocationRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string location_id = 1 [json_name = "locationId"]; if (!this->_internal_location_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_location_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_location_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetOrganizationsWithAccessToLocationRequest::_class_data_ = { - GetOrganizationsWithAccessToLocationRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetOrganizationsWithAccessToLocationRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetOrganizationsWithAccessToLocationRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetOrganizationsWithAccessToLocationRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetOrganizationsWithAccessToLocationRequest::GetClassData() const { return &_class_data_; } + +void GetOrganizationsWithAccessToLocationRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetOrganizationsWithAccessToLocationRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetOrganizationsWithAccessToLocationRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetOrganizationsWithAccessToLocationRequest::MergeFrom(const GetOrganizationsWithAccessToLocationRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetOrganizationsWithAccessToLocationRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_location_id().empty()) { - _this->_internal_set_location_id(from._internal_location_id()); + _internal_set_location_id(from._internal_location_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetOrganizationsWithAccessToLocationRequest::CopyFrom(const GetOrganizationsWithAccessToLocationRequest& from) { @@ -20541,182 +19989,180 @@ void GetOrganizationsWithAccessToLocationRequest::CopyFrom(const GetOrganization MergeFrom(from); } -PROTOBUF_NOINLINE bool GetOrganizationsWithAccessToLocationRequest::IsInitialized() const { +bool GetOrganizationsWithAccessToLocationRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetOrganizationsWithAccessToLocationRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetOrganizationsWithAccessToLocationRequest::InternalSwap(GetOrganizationsWithAccessToLocationRequest* PROTOBUF_RESTRICT other) { +void GetOrganizationsWithAccessToLocationRequest::InternalSwap(GetOrganizationsWithAccessToLocationRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.location_id_, &other->_impl_.location_id_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &location_id_, lhs_arena, + &other->location_id_, rhs_arena + ); } -::google::protobuf::Metadata GetOrganizationsWithAccessToLocationRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetOrganizationsWithAccessToLocationRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[58]); } + // =================================================================== class GetOrganizationsWithAccessToLocationResponse::_Internal { public: }; -GetOrganizationsWithAccessToLocationResponse::GetOrganizationsWithAccessToLocationResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetOrganizationsWithAccessToLocationResponse::GetOrganizationsWithAccessToLocationResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + organization_identities_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.v1.GetOrganizationsWithAccessToLocationResponse) } -inline PROTOBUF_NDEBUG_INLINE GetOrganizationsWithAccessToLocationResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : organization_identities_{visibility, arena, from.organization_identities_}, - _cached_size_{0} {} - -GetOrganizationsWithAccessToLocationResponse::GetOrganizationsWithAccessToLocationResponse( - ::google::protobuf::Arena* arena, - const GetOrganizationsWithAccessToLocationResponse& from) - : ::google::protobuf::Message(arena) { - GetOrganizationsWithAccessToLocationResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetOrganizationsWithAccessToLocationResponse::GetOrganizationsWithAccessToLocationResponse(const GetOrganizationsWithAccessToLocationResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + organization_identities_(from.organization_identities_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetOrganizationsWithAccessToLocationResponse) } -inline PROTOBUF_NDEBUG_INLINE GetOrganizationsWithAccessToLocationResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : organization_identities_{visibility, arena}, - _cached_size_{0} {} -inline void GetOrganizationsWithAccessToLocationResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetOrganizationsWithAccessToLocationResponse::SharedCtor() { } + GetOrganizationsWithAccessToLocationResponse::~GetOrganizationsWithAccessToLocationResponse() { // @@protoc_insertion_point(destructor:viam.app.v1.GetOrganizationsWithAccessToLocationResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetOrganizationsWithAccessToLocationResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void GetOrganizationsWithAccessToLocationResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetOrganizationsWithAccessToLocationResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.organization_identities_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void GetOrganizationsWithAccessToLocationResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* GetOrganizationsWithAccessToLocationResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void GetOrganizationsWithAccessToLocationResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetOrganizationsWithAccessToLocationResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + organization_identities_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetOrganizationsWithAccessToLocationResponse::_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) { + // repeated .viam.app.v1.OrganizationIdentity organization_identities = 1 [json_name = "organizationIdentities"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_organization_identities(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetOrganizationsWithAccessToLocationResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetOrganizationsWithAccessToLocationResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.app.v1.OrganizationIdentity organization_identities = 1 [json_name = "organizationIdentities"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetOrganizationsWithAccessToLocationResponse, _impl_.organization_identities_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.app.v1.OrganizationIdentity organization_identities = 1 [json_name = "organizationIdentities"]; - {PROTOBUF_FIELD_OFFSET(GetOrganizationsWithAccessToLocationResponse, _impl_.organization_identities_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::OrganizationIdentity>()}, - }}, {{ - }}, -}; - -::uint8_t* GetOrganizationsWithAccessToLocationResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetOrganizationsWithAccessToLocationResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetOrganizationsWithAccessToLocationResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .viam.app.v1.OrganizationIdentity organization_identities = 1 [json_name = "organizationIdentities"]; for (unsigned i = 0, n = static_cast(this->_internal_organization_identities_size()); i < n; i++) { - const auto& repfield = this->_internal_organization_identities().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_organization_identities(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.GetOrganizationsWithAccessToLocationResponse) return target; } -::size_t GetOrganizationsWithAccessToLocationResponse::ByteSizeLong() const { +size_t GetOrganizationsWithAccessToLocationResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetOrganizationsWithAccessToLocationResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.app.v1.OrganizationIdentity organization_identities = 1 [json_name = "organizationIdentities"]; total_size += 1UL * this->_internal_organization_identities_size(); - for (const auto& msg : this->_internal_organization_identities()) { + for (const auto& msg : this->organization_identities_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetOrganizationsWithAccessToLocationResponse::_class_data_ = { - GetOrganizationsWithAccessToLocationResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetOrganizationsWithAccessToLocationResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetOrganizationsWithAccessToLocationResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetOrganizationsWithAccessToLocationResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetOrganizationsWithAccessToLocationResponse::GetClassData() const { return &_class_data_; } + +void GetOrganizationsWithAccessToLocationResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetOrganizationsWithAccessToLocationResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetOrganizationsWithAccessToLocationResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetOrganizationsWithAccessToLocationResponse::MergeFrom(const GetOrganizationsWithAccessToLocationResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetOrganizationsWithAccessToLocationResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_organization_identities()->MergeFrom( - from._internal_organization_identities()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + organization_identities_.MergeFrom(from.organization_identities_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetOrganizationsWithAccessToLocationResponse::CopyFrom(const GetOrganizationsWithAccessToLocationResponse& from) { @@ -20726,185 +20172,187 @@ void GetOrganizationsWithAccessToLocationResponse::CopyFrom(const GetOrganizatio MergeFrom(from); } -PROTOBUF_NOINLINE bool GetOrganizationsWithAccessToLocationResponse::IsInitialized() const { +bool GetOrganizationsWithAccessToLocationResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetOrganizationsWithAccessToLocationResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetOrganizationsWithAccessToLocationResponse::InternalSwap(GetOrganizationsWithAccessToLocationResponse* PROTOBUF_RESTRICT other) { +void GetOrganizationsWithAccessToLocationResponse::InternalSwap(GetOrganizationsWithAccessToLocationResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.organization_identities_.InternalSwap(&other->_impl_.organization_identities_); + organization_identities_.InternalSwap(&other->organization_identities_); } -::google::protobuf::Metadata GetOrganizationsWithAccessToLocationResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetOrganizationsWithAccessToLocationResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[59]); } + // =================================================================== class ListLocationsRequest::_Internal { public: }; -ListLocationsRequest::ListLocationsRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ListLocationsRequest::ListLocationsRequest(::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.ListLocationsRequest) } -inline PROTOBUF_NDEBUG_INLINE ListLocationsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : organization_id_(arena, from.organization_id_), - _cached_size_{0} {} - -ListLocationsRequest::ListLocationsRequest( - ::google::protobuf::Arena* arena, - const ListLocationsRequest& from) - : ::google::protobuf::Message(arena) { - ListLocationsRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +ListLocationsRequest::ListLocationsRequest(const ListLocationsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + organization_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_organization_id().empty()) { + organization_id_.Set(from._internal_organization_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.ListLocationsRequest) } -inline PROTOBUF_NDEBUG_INLINE ListLocationsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : organization_id_(arena), - _cached_size_{0} {} -inline void ListLocationsRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void ListLocationsRequest::SharedCtor() { +organization_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + ListLocationsRequest::~ListLocationsRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.ListLocationsRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ListLocationsRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.organization_id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + organization_id_.Destroy(); } -PROTOBUF_NOINLINE void ListLocationsRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.ListLocationsRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.organization_id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void ListLocationsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* ListLocationsRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void ListLocationsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.ListLocationsRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + organization_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListLocationsRequest::_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 organization_id = 1 [json_name = "organizationId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_organization_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ListLocationsRequest.organization_id")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 56, 2> ListLocationsRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_ListLocationsRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string organization_id = 1 [json_name = "organizationId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ListLocationsRequest, _impl_.organization_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string organization_id = 1 [json_name = "organizationId"]; - {PROTOBUF_FIELD_OFFSET(ListLocationsRequest, _impl_.organization_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\40\17\0\0\0\0\0\0" - "viam.app.v1.ListLocationsRequest" - "organization_id" - }}, -}; - -::uint8_t* ListLocationsRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ListLocationsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ListLocationsRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string organization_id = 1 [json_name = "organizationId"]; if (!this->_internal_organization_id().empty()) { - const std::string& _s = this->_internal_organization_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ListLocationsRequest.organization_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_organization_id().data(), static_cast(this->_internal_organization_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ListLocationsRequest.organization_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_organization_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.ListLocationsRequest) return target; } -::size_t ListLocationsRequest::ByteSizeLong() const { +size_t ListLocationsRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ListLocationsRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string organization_id = 1 [json_name = "organizationId"]; if (!this->_internal_organization_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_organization_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_organization_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ListLocationsRequest::_class_data_ = { - ListLocationsRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListLocationsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ListLocationsRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* ListLocationsRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListLocationsRequest::GetClassData() const { return &_class_data_; } + +void ListLocationsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ListLocationsRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ListLocationsRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ListLocationsRequest::MergeFrom(const ListLocationsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ListLocationsRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_organization_id().empty()) { - _this->_internal_set_organization_id(from._internal_organization_id()); + _internal_set_organization_id(from._internal_organization_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ListLocationsRequest::CopyFrom(const ListLocationsRequest& from) { @@ -20914,215 +20362,236 @@ void ListLocationsRequest::CopyFrom(const ListLocationsRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ListLocationsRequest::IsInitialized() const { +bool ListLocationsRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* ListLocationsRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ListLocationsRequest::InternalSwap(ListLocationsRequest* PROTOBUF_RESTRICT other) { +void ListLocationsRequest::InternalSwap(ListLocationsRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.organization_id_, &other->_impl_.organization_id_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &organization_id_, lhs_arena, + &other->organization_id_, rhs_arena + ); } -::google::protobuf::Metadata ListLocationsRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ListLocationsRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[60]); } + // =================================================================== class ShareLocationRequest::_Internal { public: }; -ShareLocationRequest::ShareLocationRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ShareLocationRequest::ShareLocationRequest(::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.ShareLocationRequest) } -inline PROTOBUF_NDEBUG_INLINE ShareLocationRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : location_id_(arena, from.location_id_), - organization_id_(arena, from.organization_id_), - _cached_size_{0} {} - -ShareLocationRequest::ShareLocationRequest( - ::google::protobuf::Arena* arena, - const ShareLocationRequest& from) - : ::google::protobuf::Message(arena) { - ShareLocationRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +ShareLocationRequest::ShareLocationRequest(const ShareLocationRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + location_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + location_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_location_id().empty()) { + location_id_.Set(from._internal_location_id(), + GetArenaForAllocation()); + } + organization_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_organization_id().empty()) { + organization_id_.Set(from._internal_organization_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.ShareLocationRequest) } -inline PROTOBUF_NDEBUG_INLINE ShareLocationRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : location_id_(arena), - organization_id_(arena), - _cached_size_{0} {} -inline void ShareLocationRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void ShareLocationRequest::SharedCtor() { +location_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + location_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +organization_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + ShareLocationRequest::~ShareLocationRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.ShareLocationRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ShareLocationRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.location_id_.Destroy(); - _impl_.organization_id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + location_id_.Destroy(); + organization_id_.Destroy(); } -PROTOBUF_NOINLINE void ShareLocationRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.ShareLocationRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.location_id_.ClearToEmpty(); - _impl_.organization_id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void ShareLocationRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* ShareLocationRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void ShareLocationRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.ShareLocationRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + location_id_.ClearToEmpty(); + organization_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ShareLocationRequest::_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 location_id = 1 [json_name = "locationId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_location_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ShareLocationRequest.location_id")); + } else + goto handle_unusual; + continue; + // string organization_id = 2 [json_name = "organizationId"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_organization_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ShareLocationRequest.organization_id")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 67, 2> ShareLocationRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_ShareLocationRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string organization_id = 2 [json_name = "organizationId"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(ShareLocationRequest, _impl_.organization_id_)}}, - // string location_id = 1 [json_name = "locationId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ShareLocationRequest, _impl_.location_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string location_id = 1 [json_name = "locationId"]; - {PROTOBUF_FIELD_OFFSET(ShareLocationRequest, _impl_.location_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string organization_id = 2 [json_name = "organizationId"]; - {PROTOBUF_FIELD_OFFSET(ShareLocationRequest, _impl_.organization_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\40\13\17\0\0\0\0\0" - "viam.app.v1.ShareLocationRequest" - "location_id" - "organization_id" - }}, -}; - -::uint8_t* ShareLocationRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ShareLocationRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ShareLocationRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string location_id = 1 [json_name = "locationId"]; if (!this->_internal_location_id().empty()) { - const std::string& _s = this->_internal_location_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ShareLocationRequest.location_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_location_id().data(), static_cast(this->_internal_location_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ShareLocationRequest.location_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_location_id(), target); } // string organization_id = 2 [json_name = "organizationId"]; if (!this->_internal_organization_id().empty()) { - const std::string& _s = this->_internal_organization_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ShareLocationRequest.organization_id"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_organization_id().data(), static_cast(this->_internal_organization_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ShareLocationRequest.organization_id"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_organization_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.ShareLocationRequest) return target; } -::size_t ShareLocationRequest::ByteSizeLong() const { +size_t ShareLocationRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ShareLocationRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string location_id = 1 [json_name = "locationId"]; if (!this->_internal_location_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_location_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_location_id()); } // string organization_id = 2 [json_name = "organizationId"]; if (!this->_internal_organization_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_organization_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_organization_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ShareLocationRequest::_class_data_ = { - ShareLocationRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ShareLocationRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ShareLocationRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* ShareLocationRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ShareLocationRequest::GetClassData() const { return &_class_data_; } + +void ShareLocationRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ShareLocationRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ShareLocationRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ShareLocationRequest::MergeFrom(const ShareLocationRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ShareLocationRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_location_id().empty()) { - _this->_internal_set_location_id(from._internal_location_id()); + _internal_set_location_id(from._internal_location_id()); } if (!from._internal_organization_id().empty()) { - _this->_internal_set_organization_id(from._internal_organization_id()); + _internal_set_organization_id(from._internal_organization_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ShareLocationRequest::CopyFrom(const ShareLocationRequest& from) { @@ -21132,46 +20601,45 @@ void ShareLocationRequest::CopyFrom(const ShareLocationRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ShareLocationRequest::IsInitialized() const { +bool ShareLocationRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* ShareLocationRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ShareLocationRequest::InternalSwap(ShareLocationRequest* PROTOBUF_RESTRICT other) { +void ShareLocationRequest::InternalSwap(ShareLocationRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.location_id_, &other->_impl_.location_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.organization_id_, &other->_impl_.organization_id_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &location_id_, lhs_arena, + &other->location_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &organization_id_, lhs_arena, + &other->organization_id_, rhs_arena + ); } -::google::protobuf::Metadata ShareLocationRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ShareLocationRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[61]); } + // =================================================================== class ShareLocationResponse::_Internal { public: }; -ShareLocationResponse::ShareLocationResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +ShareLocationResponse::ShareLocationResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.app.v1.ShareLocationResponse) } -ShareLocationResponse::ShareLocationResponse( - ::google::protobuf::Arena* arena, - const ShareLocationResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - ShareLocationResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +ShareLocationResponse::ShareLocationResponse(const ShareLocationResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.app.v1.ShareLocationResponse) } @@ -21179,204 +20647,233 @@ ShareLocationResponse::ShareLocationResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ShareLocationResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ShareLocationResponse::GetClassData() const { return &_class_data_; } + + + -::google::protobuf::Metadata ShareLocationResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ShareLocationResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[62]); } + // =================================================================== class UnshareLocationRequest::_Internal { public: }; -UnshareLocationRequest::UnshareLocationRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +UnshareLocationRequest::UnshareLocationRequest(::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.UnshareLocationRequest) } -inline PROTOBUF_NDEBUG_INLINE UnshareLocationRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : location_id_(arena, from.location_id_), - organization_id_(arena, from.organization_id_), - _cached_size_{0} {} - -UnshareLocationRequest::UnshareLocationRequest( - ::google::protobuf::Arena* arena, - const UnshareLocationRequest& from) - : ::google::protobuf::Message(arena) { - UnshareLocationRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +UnshareLocationRequest::UnshareLocationRequest(const UnshareLocationRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + location_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + location_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_location_id().empty()) { + location_id_.Set(from._internal_location_id(), + GetArenaForAllocation()); + } + organization_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_organization_id().empty()) { + organization_id_.Set(from._internal_organization_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.UnshareLocationRequest) } -inline PROTOBUF_NDEBUG_INLINE UnshareLocationRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : location_id_(arena), - organization_id_(arena), - _cached_size_{0} {} -inline void UnshareLocationRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void UnshareLocationRequest::SharedCtor() { +location_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + location_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +organization_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + UnshareLocationRequest::~UnshareLocationRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.UnshareLocationRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void UnshareLocationRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.location_id_.Destroy(); - _impl_.organization_id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + location_id_.Destroy(); + organization_id_.Destroy(); } -PROTOBUF_NOINLINE void UnshareLocationRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.UnshareLocationRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.location_id_.ClearToEmpty(); - _impl_.organization_id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void UnshareLocationRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* UnshareLocationRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void UnshareLocationRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.UnshareLocationRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + location_id_.ClearToEmpty(); + organization_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* UnshareLocationRequest::_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 location_id = 1 [json_name = "locationId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_location_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.UnshareLocationRequest.location_id")); + } else + goto handle_unusual; + continue; + // string organization_id = 2 [json_name = "organizationId"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_organization_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.UnshareLocationRequest.organization_id")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 69, 2> UnshareLocationRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_UnshareLocationRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string organization_id = 2 [json_name = "organizationId"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(UnshareLocationRequest, _impl_.organization_id_)}}, - // string location_id = 1 [json_name = "locationId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(UnshareLocationRequest, _impl_.location_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string location_id = 1 [json_name = "locationId"]; - {PROTOBUF_FIELD_OFFSET(UnshareLocationRequest, _impl_.location_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string organization_id = 2 [json_name = "organizationId"]; - {PROTOBUF_FIELD_OFFSET(UnshareLocationRequest, _impl_.organization_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\42\13\17\0\0\0\0\0" - "viam.app.v1.UnshareLocationRequest" - "location_id" - "organization_id" - }}, -}; - -::uint8_t* UnshareLocationRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* UnshareLocationRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.UnshareLocationRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string location_id = 1 [json_name = "locationId"]; if (!this->_internal_location_id().empty()) { - const std::string& _s = this->_internal_location_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.UnshareLocationRequest.location_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_location_id().data(), static_cast(this->_internal_location_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.UnshareLocationRequest.location_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_location_id(), target); } // string organization_id = 2 [json_name = "organizationId"]; if (!this->_internal_organization_id().empty()) { - const std::string& _s = this->_internal_organization_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.UnshareLocationRequest.organization_id"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_organization_id().data(), static_cast(this->_internal_organization_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.UnshareLocationRequest.organization_id"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_organization_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.UnshareLocationRequest) return target; } -::size_t UnshareLocationRequest::ByteSizeLong() const { +size_t UnshareLocationRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.UnshareLocationRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string location_id = 1 [json_name = "locationId"]; if (!this->_internal_location_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_location_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_location_id()); } // string organization_id = 2 [json_name = "organizationId"]; if (!this->_internal_organization_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_organization_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_organization_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData UnshareLocationRequest::_class_data_ = { - UnshareLocationRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UnshareLocationRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + UnshareLocationRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* UnshareLocationRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UnshareLocationRequest::GetClassData() const { return &_class_data_; } + +void UnshareLocationRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void UnshareLocationRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.UnshareLocationRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void UnshareLocationRequest::MergeFrom(const UnshareLocationRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.UnshareLocationRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_location_id().empty()) { - _this->_internal_set_location_id(from._internal_location_id()); + _internal_set_location_id(from._internal_location_id()); } if (!from._internal_organization_id().empty()) { - _this->_internal_set_organization_id(from._internal_organization_id()); + _internal_set_organization_id(from._internal_organization_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void UnshareLocationRequest::CopyFrom(const UnshareLocationRequest& from) { @@ -21386,46 +20883,45 @@ void UnshareLocationRequest::CopyFrom(const UnshareLocationRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool UnshareLocationRequest::IsInitialized() const { +bool UnshareLocationRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* UnshareLocationRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void UnshareLocationRequest::InternalSwap(UnshareLocationRequest* PROTOBUF_RESTRICT other) { +void UnshareLocationRequest::InternalSwap(UnshareLocationRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.location_id_, &other->_impl_.location_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.organization_id_, &other->_impl_.organization_id_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &location_id_, lhs_arena, + &other->location_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &organization_id_, lhs_arena, + &other->organization_id_, rhs_arena + ); } -::google::protobuf::Metadata UnshareLocationRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata UnshareLocationRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[63]); } + // =================================================================== class UnshareLocationResponse::_Internal { public: }; -UnshareLocationResponse::UnshareLocationResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +UnshareLocationResponse::UnshareLocationResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.app.v1.UnshareLocationResponse) } -UnshareLocationResponse::UnshareLocationResponse( - ::google::protobuf::Arena* arena, - const UnshareLocationResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - UnshareLocationResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +UnshareLocationResponse::UnshareLocationResponse(const UnshareLocationResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.app.v1.UnshareLocationResponse) } @@ -21433,171 +20929,177 @@ UnshareLocationResponse::UnshareLocationResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UnshareLocationResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UnshareLocationResponse::GetClassData() const { return &_class_data_; } + + -::google::protobuf::Metadata UnshareLocationResponse::GetMetadata() const { + +::PROTOBUF_NAMESPACE_ID::Metadata UnshareLocationResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[64]); } + // =================================================================== class ListLocationsResponse::_Internal { public: }; -ListLocationsResponse::ListLocationsResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ListLocationsResponse::ListLocationsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + locations_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.v1.ListLocationsResponse) } -inline PROTOBUF_NDEBUG_INLINE ListLocationsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : locations_{visibility, arena, from.locations_}, - _cached_size_{0} {} - -ListLocationsResponse::ListLocationsResponse( - ::google::protobuf::Arena* arena, - const ListLocationsResponse& from) - : ::google::protobuf::Message(arena) { - ListLocationsResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +ListLocationsResponse::ListLocationsResponse(const ListLocationsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + locations_(from.locations_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.app.v1.ListLocationsResponse) } -inline PROTOBUF_NDEBUG_INLINE ListLocationsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : locations_{visibility, arena}, - _cached_size_{0} {} -inline void ListLocationsResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void ListLocationsResponse::SharedCtor() { } + ListLocationsResponse::~ListLocationsResponse() { // @@protoc_insertion_point(destructor:viam.app.v1.ListLocationsResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ListLocationsResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void ListLocationsResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.ListLocationsResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.locations_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void ListLocationsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* ListLocationsResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void ListLocationsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.ListLocationsResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + locations_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListLocationsResponse::_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) { + // repeated .viam.app.v1.Location locations = 1 [json_name = "locations"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_locations(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ListLocationsResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ListLocationsResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.app.v1.Location locations = 1 [json_name = "locations"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ListLocationsResponse, _impl_.locations_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.app.v1.Location locations = 1 [json_name = "locations"]; - {PROTOBUF_FIELD_OFFSET(ListLocationsResponse, _impl_.locations_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::Location>()}, - }}, {{ - }}, -}; - -::uint8_t* ListLocationsResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ListLocationsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ListLocationsResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .viam.app.v1.Location locations = 1 [json_name = "locations"]; for (unsigned i = 0, n = static_cast(this->_internal_locations_size()); i < n; i++) { - const auto& repfield = this->_internal_locations().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_locations(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.ListLocationsResponse) return target; } -::size_t ListLocationsResponse::ByteSizeLong() const { +size_t ListLocationsResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ListLocationsResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.app.v1.Location locations = 1 [json_name = "locations"]; total_size += 1UL * this->_internal_locations_size(); - for (const auto& msg : this->_internal_locations()) { + for (const auto& msg : this->locations_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ListLocationsResponse::_class_data_ = { - ListLocationsResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListLocationsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ListLocationsResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* ListLocationsResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListLocationsResponse::GetClassData() const { return &_class_data_; } + +void ListLocationsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ListLocationsResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ListLocationsResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ListLocationsResponse::MergeFrom(const ListLocationsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ListLocationsResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_locations()->MergeFrom( - from._internal_locations()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + locations_.MergeFrom(from.locations_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ListLocationsResponse::CopyFrom(const ListLocationsResponse& from) { @@ -21607,185 +21109,187 @@ void ListLocationsResponse::CopyFrom(const ListLocationsResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ListLocationsResponse::IsInitialized() const { +bool ListLocationsResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* ListLocationsResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ListLocationsResponse::InternalSwap(ListLocationsResponse* PROTOBUF_RESTRICT other) { +void ListLocationsResponse::InternalSwap(ListLocationsResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.locations_.InternalSwap(&other->_impl_.locations_); + locations_.InternalSwap(&other->locations_); } -::google::protobuf::Metadata ListLocationsResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ListLocationsResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[65]); } + // =================================================================== class CreateLocationSecretRequest::_Internal { public: }; -CreateLocationSecretRequest::CreateLocationSecretRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +CreateLocationSecretRequest::CreateLocationSecretRequest(::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.CreateLocationSecretRequest) } -inline PROTOBUF_NDEBUG_INLINE CreateLocationSecretRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : location_id_(arena, from.location_id_), - _cached_size_{0} {} - -CreateLocationSecretRequest::CreateLocationSecretRequest( - ::google::protobuf::Arena* arena, - const CreateLocationSecretRequest& from) - : ::google::protobuf::Message(arena) { - CreateLocationSecretRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +CreateLocationSecretRequest::CreateLocationSecretRequest(const CreateLocationSecretRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + location_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + location_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_location_id().empty()) { + location_id_.Set(from._internal_location_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.CreateLocationSecretRequest) } -inline PROTOBUF_NDEBUG_INLINE CreateLocationSecretRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : location_id_(arena), - _cached_size_{0} {} -inline void CreateLocationSecretRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void CreateLocationSecretRequest::SharedCtor() { +location_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + location_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + CreateLocationSecretRequest::~CreateLocationSecretRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.CreateLocationSecretRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void CreateLocationSecretRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.location_id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + location_id_.Destroy(); } -PROTOBUF_NOINLINE void CreateLocationSecretRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.CreateLocationSecretRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.location_id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void CreateLocationSecretRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* CreateLocationSecretRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void CreateLocationSecretRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.CreateLocationSecretRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + location_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CreateLocationSecretRequest::_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 location_id = 1 [json_name = "locationId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_location_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.CreateLocationSecretRequest.location_id")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 59, 2> CreateLocationSecretRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_CreateLocationSecretRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string location_id = 1 [json_name = "locationId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(CreateLocationSecretRequest, _impl_.location_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string location_id = 1 [json_name = "locationId"]; - {PROTOBUF_FIELD_OFFSET(CreateLocationSecretRequest, _impl_.location_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\47\13\0\0\0\0\0\0" - "viam.app.v1.CreateLocationSecretRequest" - "location_id" - }}, -}; - -::uint8_t* CreateLocationSecretRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* CreateLocationSecretRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.CreateLocationSecretRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string location_id = 1 [json_name = "locationId"]; if (!this->_internal_location_id().empty()) { - const std::string& _s = this->_internal_location_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.CreateLocationSecretRequest.location_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_location_id().data(), static_cast(this->_internal_location_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.CreateLocationSecretRequest.location_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_location_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.CreateLocationSecretRequest) return target; } -::size_t CreateLocationSecretRequest::ByteSizeLong() const { +size_t CreateLocationSecretRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.CreateLocationSecretRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string location_id = 1 [json_name = "locationId"]; if (!this->_internal_location_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_location_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_location_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData CreateLocationSecretRequest::_class_data_ = { - CreateLocationSecretRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CreateLocationSecretRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CreateLocationSecretRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* CreateLocationSecretRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CreateLocationSecretRequest::GetClassData() const { return &_class_data_; } + +void CreateLocationSecretRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void CreateLocationSecretRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.CreateLocationSecretRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void CreateLocationSecretRequest::MergeFrom(const CreateLocationSecretRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.CreateLocationSecretRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_location_id().empty()) { - _this->_internal_set_location_id(from._internal_location_id()); + _internal_set_location_id(from._internal_location_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CreateLocationSecretRequest::CopyFrom(const CreateLocationSecretRequest& from) { @@ -21795,205 +21299,189 @@ void CreateLocationSecretRequest::CopyFrom(const CreateLocationSecretRequest& fr MergeFrom(from); } -PROTOBUF_NOINLINE bool CreateLocationSecretRequest::IsInitialized() const { +bool CreateLocationSecretRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* CreateLocationSecretRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void CreateLocationSecretRequest::InternalSwap(CreateLocationSecretRequest* PROTOBUF_RESTRICT other) { +void CreateLocationSecretRequest::InternalSwap(CreateLocationSecretRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.location_id_, &other->_impl_.location_id_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &location_id_, lhs_arena, + &other->location_id_, rhs_arena + ); } -::google::protobuf::Metadata CreateLocationSecretRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata CreateLocationSecretRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[66]); } + // =================================================================== class CreateLocationSecretResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(CreateLocationSecretResponse, _impl_._has_bits_); static const ::viam::app::v1::LocationAuth& auth(const CreateLocationSecretResponse* msg); - static void set_has_auth(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::app::v1::LocationAuth& CreateLocationSecretResponse::_Internal::auth(const CreateLocationSecretResponse* msg) { - return *msg->_impl_.auth_; +const ::viam::app::v1::LocationAuth& +CreateLocationSecretResponse::_Internal::auth(const CreateLocationSecretResponse* msg) { + return *msg->auth_; } -CreateLocationSecretResponse::CreateLocationSecretResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +CreateLocationSecretResponse::CreateLocationSecretResponse(::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.CreateLocationSecretResponse) } -inline PROTOBUF_NDEBUG_INLINE CreateLocationSecretResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -CreateLocationSecretResponse::CreateLocationSecretResponse( - ::google::protobuf::Arena* arena, - const CreateLocationSecretResponse& from) - : ::google::protobuf::Message(arena) { - CreateLocationSecretResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.auth_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::app::v1::LocationAuth>(arena, *from._impl_.auth_) - : nullptr; - +CreateLocationSecretResponse::CreateLocationSecretResponse(const CreateLocationSecretResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_auth()) { + auth_ = new ::viam::app::v1::LocationAuth(*from.auth_); + } else { + auth_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.CreateLocationSecretResponse) } -inline PROTOBUF_NDEBUG_INLINE CreateLocationSecretResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void CreateLocationSecretResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.auth_ = {}; +inline void CreateLocationSecretResponse::SharedCtor() { +auth_ = nullptr; } + CreateLocationSecretResponse::~CreateLocationSecretResponse() { // @@protoc_insertion_point(destructor:viam.app.v1.CreateLocationSecretResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void CreateLocationSecretResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.auth_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete auth_; } -PROTOBUF_NOINLINE void CreateLocationSecretResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.CreateLocationSecretResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.auth_ != nullptr); - _impl_.auth_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void CreateLocationSecretResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* CreateLocationSecretResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void CreateLocationSecretResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.CreateLocationSecretResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && auth_ != nullptr) { + delete auth_; + } + auth_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CreateLocationSecretResponse::_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.app.v1.LocationAuth auth = 1 [json_name = "auth"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_auth(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> CreateLocationSecretResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(CreateLocationSecretResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_CreateLocationSecretResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.app.v1.LocationAuth auth = 1 [json_name = "auth"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(CreateLocationSecretResponse, _impl_.auth_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.app.v1.LocationAuth auth = 1 [json_name = "auth"]; - {PROTOBUF_FIELD_OFFSET(CreateLocationSecretResponse, _impl_.auth_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::LocationAuth>()}, - }}, {{ - }}, -}; - -::uint8_t* CreateLocationSecretResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* CreateLocationSecretResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.CreateLocationSecretResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.app.v1.LocationAuth auth = 1 [json_name = "auth"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::auth(this), + if (this->_internal_has_auth()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::auth(this), _Internal::auth(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.CreateLocationSecretResponse) return target; } -::size_t CreateLocationSecretResponse::ByteSizeLong() const { +size_t CreateLocationSecretResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.CreateLocationSecretResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .viam.app.v1.LocationAuth auth = 1 [json_name = "auth"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.auth_); + if (this->_internal_has_auth()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *auth_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData CreateLocationSecretResponse::_class_data_ = { - CreateLocationSecretResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CreateLocationSecretResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CreateLocationSecretResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* CreateLocationSecretResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CreateLocationSecretResponse::GetClassData() const { return &_class_data_; } + +void CreateLocationSecretResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void CreateLocationSecretResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.CreateLocationSecretResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void CreateLocationSecretResponse::MergeFrom(const CreateLocationSecretResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.CreateLocationSecretResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_auth()->::viam::app::v1::LocationAuth::MergeFrom( - from._internal_auth()); + if (from._internal_has_auth()) { + _internal_mutable_auth()->::viam::app::v1::LocationAuth::MergeFrom(from._internal_auth()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CreateLocationSecretResponse::CopyFrom(const CreateLocationSecretResponse& from) { @@ -22003,214 +21491,231 @@ void CreateLocationSecretResponse::CopyFrom(const CreateLocationSecretResponse& MergeFrom(from); } -PROTOBUF_NOINLINE bool CreateLocationSecretResponse::IsInitialized() const { +bool CreateLocationSecretResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* CreateLocationSecretResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void CreateLocationSecretResponse::InternalSwap(CreateLocationSecretResponse* PROTOBUF_RESTRICT other) { +void CreateLocationSecretResponse::InternalSwap(CreateLocationSecretResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.auth_, other->_impl_.auth_); + swap(auth_, other->auth_); } -::google::protobuf::Metadata CreateLocationSecretResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata CreateLocationSecretResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[67]); } + // =================================================================== class DeleteLocationSecretRequest::_Internal { public: }; -DeleteLocationSecretRequest::DeleteLocationSecretRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +DeleteLocationSecretRequest::DeleteLocationSecretRequest(::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.DeleteLocationSecretRequest) } -inline PROTOBUF_NDEBUG_INLINE DeleteLocationSecretRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : location_id_(arena, from.location_id_), - secret_id_(arena, from.secret_id_), - _cached_size_{0} {} - -DeleteLocationSecretRequest::DeleteLocationSecretRequest( - ::google::protobuf::Arena* arena, - const DeleteLocationSecretRequest& from) - : ::google::protobuf::Message(arena) { - DeleteLocationSecretRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +DeleteLocationSecretRequest::DeleteLocationSecretRequest(const DeleteLocationSecretRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + location_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + location_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_location_id().empty()) { + location_id_.Set(from._internal_location_id(), + GetArenaForAllocation()); + } + secret_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + secret_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_secret_id().empty()) { + secret_id_.Set(from._internal_secret_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.DeleteLocationSecretRequest) } -inline PROTOBUF_NDEBUG_INLINE DeleteLocationSecretRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : location_id_(arena), - secret_id_(arena), - _cached_size_{0} {} -inline void DeleteLocationSecretRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void DeleteLocationSecretRequest::SharedCtor() { +location_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + location_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +secret_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + secret_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + DeleteLocationSecretRequest::~DeleteLocationSecretRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.DeleteLocationSecretRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void DeleteLocationSecretRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.location_id_.Destroy(); - _impl_.secret_id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + location_id_.Destroy(); + secret_id_.Destroy(); } -PROTOBUF_NOINLINE void DeleteLocationSecretRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.DeleteLocationSecretRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.location_id_.ClearToEmpty(); - _impl_.secret_id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void DeleteLocationSecretRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* DeleteLocationSecretRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void DeleteLocationSecretRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.DeleteLocationSecretRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + location_id_.ClearToEmpty(); + secret_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DeleteLocationSecretRequest::_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 location_id = 1 [json_name = "locationId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_location_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.DeleteLocationSecretRequest.location_id")); + } else + goto handle_unusual; + continue; + // string secret_id = 2 [json_name = "secretId"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_secret_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.DeleteLocationSecretRequest.secret_id")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 68, 2> DeleteLocationSecretRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_DeleteLocationSecretRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string secret_id = 2 [json_name = "secretId"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(DeleteLocationSecretRequest, _impl_.secret_id_)}}, - // string location_id = 1 [json_name = "locationId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(DeleteLocationSecretRequest, _impl_.location_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string location_id = 1 [json_name = "locationId"]; - {PROTOBUF_FIELD_OFFSET(DeleteLocationSecretRequest, _impl_.location_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string secret_id = 2 [json_name = "secretId"]; - {PROTOBUF_FIELD_OFFSET(DeleteLocationSecretRequest, _impl_.secret_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\47\13\11\0\0\0\0\0" - "viam.app.v1.DeleteLocationSecretRequest" - "location_id" - "secret_id" - }}, -}; - -::uint8_t* DeleteLocationSecretRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* DeleteLocationSecretRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.DeleteLocationSecretRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string location_id = 1 [json_name = "locationId"]; if (!this->_internal_location_id().empty()) { - const std::string& _s = this->_internal_location_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.DeleteLocationSecretRequest.location_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_location_id().data(), static_cast(this->_internal_location_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.DeleteLocationSecretRequest.location_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_location_id(), target); } // string secret_id = 2 [json_name = "secretId"]; if (!this->_internal_secret_id().empty()) { - const std::string& _s = this->_internal_secret_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.DeleteLocationSecretRequest.secret_id"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_secret_id().data(), static_cast(this->_internal_secret_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.DeleteLocationSecretRequest.secret_id"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_secret_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.DeleteLocationSecretRequest) return target; } -::size_t DeleteLocationSecretRequest::ByteSizeLong() const { +size_t DeleteLocationSecretRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.DeleteLocationSecretRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string location_id = 1 [json_name = "locationId"]; if (!this->_internal_location_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_location_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_location_id()); } // string secret_id = 2 [json_name = "secretId"]; if (!this->_internal_secret_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_secret_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_secret_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData DeleteLocationSecretRequest::_class_data_ = { - DeleteLocationSecretRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeleteLocationSecretRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + DeleteLocationSecretRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* DeleteLocationSecretRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeleteLocationSecretRequest::GetClassData() const { return &_class_data_; } + +void DeleteLocationSecretRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void DeleteLocationSecretRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.DeleteLocationSecretRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void DeleteLocationSecretRequest::MergeFrom(const DeleteLocationSecretRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.DeleteLocationSecretRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_location_id().empty()) { - _this->_internal_set_location_id(from._internal_location_id()); + _internal_set_location_id(from._internal_location_id()); } if (!from._internal_secret_id().empty()) { - _this->_internal_set_secret_id(from._internal_secret_id()); + _internal_set_secret_id(from._internal_secret_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void DeleteLocationSecretRequest::CopyFrom(const DeleteLocationSecretRequest& from) { @@ -22220,46 +21725,45 @@ void DeleteLocationSecretRequest::CopyFrom(const DeleteLocationSecretRequest& fr MergeFrom(from); } -PROTOBUF_NOINLINE bool DeleteLocationSecretRequest::IsInitialized() const { +bool DeleteLocationSecretRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* DeleteLocationSecretRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void DeleteLocationSecretRequest::InternalSwap(DeleteLocationSecretRequest* PROTOBUF_RESTRICT other) { +void DeleteLocationSecretRequest::InternalSwap(DeleteLocationSecretRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.location_id_, &other->_impl_.location_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.secret_id_, &other->_impl_.secret_id_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &location_id_, lhs_arena, + &other->location_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &secret_id_, lhs_arena, + &other->secret_id_, rhs_arena + ); } -::google::protobuf::Metadata DeleteLocationSecretRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata DeleteLocationSecretRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[68]); } + // =================================================================== class DeleteLocationSecretResponse::_Internal { public: }; -DeleteLocationSecretResponse::DeleteLocationSecretResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +DeleteLocationSecretResponse::DeleteLocationSecretResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.app.v1.DeleteLocationSecretResponse) } -DeleteLocationSecretResponse::DeleteLocationSecretResponse( - ::google::protobuf::Arena* arena, - const DeleteLocationSecretResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - DeleteLocationSecretResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +DeleteLocationSecretResponse::DeleteLocationSecretResponse(const DeleteLocationSecretResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.app.v1.DeleteLocationSecretResponse) } @@ -22267,176 +21771,189 @@ DeleteLocationSecretResponse::DeleteLocationSecretResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeleteLocationSecretResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeleteLocationSecretResponse::GetClassData() const { return &_class_data_; } + + + -::google::protobuf::Metadata DeleteLocationSecretResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata DeleteLocationSecretResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[69]); } + // =================================================================== class LocationAuthRequest::_Internal { public: }; -LocationAuthRequest::LocationAuthRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +LocationAuthRequest::LocationAuthRequest(::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.LocationAuthRequest) } -inline PROTOBUF_NDEBUG_INLINE LocationAuthRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : location_id_(arena, from.location_id_), - _cached_size_{0} {} - -LocationAuthRequest::LocationAuthRequest( - ::google::protobuf::Arena* arena, - const LocationAuthRequest& from) - : ::google::protobuf::Message(arena) { - LocationAuthRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +LocationAuthRequest::LocationAuthRequest(const LocationAuthRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + location_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + location_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_location_id().empty()) { + location_id_.Set(from._internal_location_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.LocationAuthRequest) } -inline PROTOBUF_NDEBUG_INLINE LocationAuthRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : location_id_(arena), - _cached_size_{0} {} -inline void LocationAuthRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void LocationAuthRequest::SharedCtor() { +location_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + location_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + LocationAuthRequest::~LocationAuthRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.LocationAuthRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void LocationAuthRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.location_id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + location_id_.Destroy(); } -PROTOBUF_NOINLINE void LocationAuthRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.LocationAuthRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.location_id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void LocationAuthRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* LocationAuthRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void LocationAuthRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.LocationAuthRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + location_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* LocationAuthRequest::_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 location_id = 1 [json_name = "locationId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_location_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.LocationAuthRequest.location_id")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 51, 2> LocationAuthRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_LocationAuthRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string location_id = 1 [json_name = "locationId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(LocationAuthRequest, _impl_.location_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string location_id = 1 [json_name = "locationId"]; - {PROTOBUF_FIELD_OFFSET(LocationAuthRequest, _impl_.location_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\37\13\0\0\0\0\0\0" - "viam.app.v1.LocationAuthRequest" - "location_id" - }}, -}; - -::uint8_t* LocationAuthRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* LocationAuthRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.LocationAuthRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string location_id = 1 [json_name = "locationId"]; if (!this->_internal_location_id().empty()) { - const std::string& _s = this->_internal_location_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.LocationAuthRequest.location_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_location_id().data(), static_cast(this->_internal_location_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.LocationAuthRequest.location_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_location_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.LocationAuthRequest) return target; } -::size_t LocationAuthRequest::ByteSizeLong() const { +size_t LocationAuthRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.LocationAuthRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string location_id = 1 [json_name = "locationId"]; if (!this->_internal_location_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_location_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_location_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData LocationAuthRequest::_class_data_ = { - LocationAuthRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LocationAuthRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + LocationAuthRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* LocationAuthRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LocationAuthRequest::GetClassData() const { return &_class_data_; } + +void LocationAuthRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void LocationAuthRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.LocationAuthRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void LocationAuthRequest::MergeFrom(const LocationAuthRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.LocationAuthRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_location_id().empty()) { - _this->_internal_set_location_id(from._internal_location_id()); + _internal_set_location_id(from._internal_location_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void LocationAuthRequest::CopyFrom(const LocationAuthRequest& from) { @@ -22446,205 +21963,189 @@ void LocationAuthRequest::CopyFrom(const LocationAuthRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool LocationAuthRequest::IsInitialized() const { +bool LocationAuthRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* LocationAuthRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void LocationAuthRequest::InternalSwap(LocationAuthRequest* PROTOBUF_RESTRICT other) { +void LocationAuthRequest::InternalSwap(LocationAuthRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.location_id_, &other->_impl_.location_id_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &location_id_, lhs_arena, + &other->location_id_, rhs_arena + ); } -::google::protobuf::Metadata LocationAuthRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata LocationAuthRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[70]); } + // =================================================================== class LocationAuthResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(LocationAuthResponse, _impl_._has_bits_); static const ::viam::app::v1::LocationAuth& auth(const LocationAuthResponse* msg); - static void set_has_auth(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::app::v1::LocationAuth& LocationAuthResponse::_Internal::auth(const LocationAuthResponse* msg) { - return *msg->_impl_.auth_; +const ::viam::app::v1::LocationAuth& +LocationAuthResponse::_Internal::auth(const LocationAuthResponse* msg) { + return *msg->auth_; } -LocationAuthResponse::LocationAuthResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +LocationAuthResponse::LocationAuthResponse(::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.LocationAuthResponse) } -inline PROTOBUF_NDEBUG_INLINE LocationAuthResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -LocationAuthResponse::LocationAuthResponse( - ::google::protobuf::Arena* arena, - const LocationAuthResponse& from) - : ::google::protobuf::Message(arena) { - LocationAuthResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.auth_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::app::v1::LocationAuth>(arena, *from._impl_.auth_) - : nullptr; - +LocationAuthResponse::LocationAuthResponse(const LocationAuthResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_auth()) { + auth_ = new ::viam::app::v1::LocationAuth(*from.auth_); + } else { + auth_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.LocationAuthResponse) } -inline PROTOBUF_NDEBUG_INLINE LocationAuthResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void LocationAuthResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.auth_ = {}; +inline void LocationAuthResponse::SharedCtor() { +auth_ = nullptr; } + LocationAuthResponse::~LocationAuthResponse() { // @@protoc_insertion_point(destructor:viam.app.v1.LocationAuthResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void LocationAuthResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.auth_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete auth_; } -PROTOBUF_NOINLINE void LocationAuthResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.LocationAuthResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.auth_ != nullptr); - _impl_.auth_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void LocationAuthResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* LocationAuthResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void LocationAuthResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.LocationAuthResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && auth_ != nullptr) { + delete auth_; + } + auth_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* LocationAuthResponse::_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.app.v1.LocationAuth auth = 1 [json_name = "auth"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_auth(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> LocationAuthResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(LocationAuthResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_LocationAuthResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.app.v1.LocationAuth auth = 1 [json_name = "auth"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(LocationAuthResponse, _impl_.auth_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.app.v1.LocationAuth auth = 1 [json_name = "auth"]; - {PROTOBUF_FIELD_OFFSET(LocationAuthResponse, _impl_.auth_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::LocationAuth>()}, - }}, {{ - }}, -}; - -::uint8_t* LocationAuthResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* LocationAuthResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.LocationAuthResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.app.v1.LocationAuth auth = 1 [json_name = "auth"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::auth(this), + if (this->_internal_has_auth()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::auth(this), _Internal::auth(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.LocationAuthResponse) return target; } -::size_t LocationAuthResponse::ByteSizeLong() const { +size_t LocationAuthResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.LocationAuthResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .viam.app.v1.LocationAuth auth = 1 [json_name = "auth"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.auth_); + if (this->_internal_has_auth()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *auth_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData LocationAuthResponse::_class_data_ = { - LocationAuthResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LocationAuthResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + LocationAuthResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* LocationAuthResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LocationAuthResponse::GetClassData() const { return &_class_data_; } + +void LocationAuthResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void LocationAuthResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.LocationAuthResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void LocationAuthResponse::MergeFrom(const LocationAuthResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.LocationAuthResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_auth()->::viam::app::v1::LocationAuth::MergeFrom( - from._internal_auth()); + if (from._internal_has_auth()) { + _internal_mutable_auth()->::viam::app::v1::LocationAuth::MergeFrom(from._internal_auth()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void LocationAuthResponse::CopyFrom(const LocationAuthResponse& from) { @@ -22654,186 +22155,187 @@ void LocationAuthResponse::CopyFrom(const LocationAuthResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool LocationAuthResponse::IsInitialized() const { +bool LocationAuthResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* LocationAuthResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void LocationAuthResponse::InternalSwap(LocationAuthResponse* PROTOBUF_RESTRICT other) { +void LocationAuthResponse::InternalSwap(LocationAuthResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.auth_, other->_impl_.auth_); + swap(auth_, other->auth_); } -::google::protobuf::Metadata LocationAuthResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata LocationAuthResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[71]); } + // =================================================================== class GetRobotRequest::_Internal { public: }; -GetRobotRequest::GetRobotRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetRobotRequest::GetRobotRequest(::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.GetRobotRequest) } -inline PROTOBUF_NDEBUG_INLINE GetRobotRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : id_(arena, from.id_), - _cached_size_{0} {} - -GetRobotRequest::GetRobotRequest( - ::google::protobuf::Arena* arena, - const GetRobotRequest& from) - : ::google::protobuf::Message(arena) { - GetRobotRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetRobotRequest::GetRobotRequest(const GetRobotRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetRobotRequest) } -inline PROTOBUF_NDEBUG_INLINE GetRobotRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : id_(arena), - _cached_size_{0} {} -inline void GetRobotRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetRobotRequest::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + GetRobotRequest::~GetRobotRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.GetRobotRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetRobotRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); } -PROTOBUF_NOINLINE void GetRobotRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetRobotRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void GetRobotRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* GetRobotRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void GetRobotRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetRobotRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetRobotRequest::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.GetRobotRequest.id")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 38, 2> GetRobotRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetRobotRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string id = 1 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetRobotRequest, _impl_.id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(GetRobotRequest, _impl_.id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\33\2\0\0\0\0\0\0" - "viam.app.v1.GetRobotRequest" - "id" - }}, -}; - -::uint8_t* GetRobotRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetRobotRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetRobotRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.GetRobotRequest.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.GetRobotRequest.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.GetRobotRequest) return target; } -::size_t GetRobotRequest::ByteSizeLong() const { +size_t GetRobotRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetRobotRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetRobotRequest::_class_data_ = { - GetRobotRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetRobotRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetRobotRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetRobotRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetRobotRequest::GetClassData() const { return &_class_data_; } + +void GetRobotRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetRobotRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetRobotRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetRobotRequest::MergeFrom(const GetRobotRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetRobotRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetRobotRequest::CopyFrom(const GetRobotRequest& from) { @@ -22843,187 +22345,192 @@ void GetRobotRequest::CopyFrom(const GetRobotRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetRobotRequest::IsInitialized() const { +bool GetRobotRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetRobotRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetRobotRequest::InternalSwap(GetRobotRequest* PROTOBUF_RESTRICT other) { +void GetRobotRequest::InternalSwap(GetRobotRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); } -::google::protobuf::Metadata GetRobotRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetRobotRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[72]); } + // =================================================================== class GetRoverRentalRobotsRequest::_Internal { public: }; -GetRoverRentalRobotsRequest::GetRoverRentalRobotsRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetRoverRentalRobotsRequest::GetRoverRentalRobotsRequest(::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.GetRoverRentalRobotsRequest) } -inline PROTOBUF_NDEBUG_INLINE GetRoverRentalRobotsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : org_id_(arena, from.org_id_), - _cached_size_{0} {} - -GetRoverRentalRobotsRequest::GetRoverRentalRobotsRequest( - ::google::protobuf::Arena* arena, - const GetRoverRentalRobotsRequest& from) - : ::google::protobuf::Message(arena) { - GetRoverRentalRobotsRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetRoverRentalRobotsRequest::GetRoverRentalRobotsRequest(const GetRoverRentalRobotsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + org_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_org_id().empty()) { + org_id_.Set(from._internal_org_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetRoverRentalRobotsRequest) } -inline PROTOBUF_NDEBUG_INLINE GetRoverRentalRobotsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : org_id_(arena), - _cached_size_{0} {} -inline void GetRoverRentalRobotsRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetRoverRentalRobotsRequest::SharedCtor() { +org_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + GetRoverRentalRobotsRequest::~GetRoverRentalRobotsRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.GetRoverRentalRobotsRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetRoverRentalRobotsRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.org_id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + org_id_.Destroy(); } -PROTOBUF_NOINLINE void GetRoverRentalRobotsRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetRoverRentalRobotsRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.org_id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void GetRoverRentalRobotsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* GetRoverRentalRobotsRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void GetRoverRentalRobotsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetRoverRentalRobotsRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + org_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetRoverRentalRobotsRequest::_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 org_id = 1 [json_name = "orgId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_org_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.GetRoverRentalRobotsRequest.org_id")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 54, 2> GetRoverRentalRobotsRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetRoverRentalRobotsRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string org_id = 1 [json_name = "orgId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetRoverRentalRobotsRequest, _impl_.org_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string org_id = 1 [json_name = "orgId"]; - {PROTOBUF_FIELD_OFFSET(GetRoverRentalRobotsRequest, _impl_.org_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\47\6\0\0\0\0\0\0" - "viam.app.v1.GetRoverRentalRobotsRequest" - "org_id" - }}, -}; - -::uint8_t* GetRoverRentalRobotsRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetRoverRentalRobotsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetRoverRentalRobotsRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string org_id = 1 [json_name = "orgId"]; if (!this->_internal_org_id().empty()) { - const std::string& _s = this->_internal_org_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.GetRoverRentalRobotsRequest.org_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_org_id().data(), static_cast(this->_internal_org_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.GetRoverRentalRobotsRequest.org_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_org_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.GetRoverRentalRobotsRequest) return target; } -::size_t GetRoverRentalRobotsRequest::ByteSizeLong() const { +size_t GetRoverRentalRobotsRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetRoverRentalRobotsRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string org_id = 1 [json_name = "orgId"]; if (!this->_internal_org_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_org_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_org_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetRoverRentalRobotsRequest::_class_data_ = { - GetRoverRentalRobotsRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetRoverRentalRobotsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetRoverRentalRobotsRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetRoverRentalRobotsRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetRoverRentalRobotsRequest::GetClassData() const { return &_class_data_; } + +void GetRoverRentalRobotsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetRoverRentalRobotsRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetRoverRentalRobotsRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetRoverRentalRobotsRequest::MergeFrom(const GetRoverRentalRobotsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetRoverRentalRobotsRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_org_id().empty()) { - _this->_internal_set_org_id(from._internal_org_id()); + _internal_set_org_id(from._internal_org_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetRoverRentalRobotsRequest::CopyFrom(const GetRoverRentalRobotsRequest& from) { @@ -23033,271 +22540,324 @@ void GetRoverRentalRobotsRequest::CopyFrom(const GetRoverRentalRobotsRequest& fr MergeFrom(from); } -PROTOBUF_NOINLINE bool GetRoverRentalRobotsRequest::IsInitialized() const { +bool GetRoverRentalRobotsRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetRoverRentalRobotsRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetRoverRentalRobotsRequest::InternalSwap(GetRoverRentalRobotsRequest* PROTOBUF_RESTRICT other) { +void GetRoverRentalRobotsRequest::InternalSwap(GetRoverRentalRobotsRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.org_id_, &other->_impl_.org_id_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &org_id_, lhs_arena, + &other->org_id_, rhs_arena + ); } -::google::protobuf::Metadata GetRoverRentalRobotsRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetRoverRentalRobotsRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[73]); } + // =================================================================== class RoverRentalRobot::_Internal { public: }; -RoverRentalRobot::RoverRentalRobot(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +RoverRentalRobot::RoverRentalRobot(::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.RoverRentalRobot) } -inline PROTOBUF_NDEBUG_INLINE RoverRentalRobot::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : robot_id_(arena, from.robot_id_), - location_id_(arena, from.location_id_), - robot_name_(arena, from.robot_name_), - robot_main_part_id_(arena, from.robot_main_part_id_), - _cached_size_{0} {} - -RoverRentalRobot::RoverRentalRobot( - ::google::protobuf::Arena* arena, - const RoverRentalRobot& from) - : ::google::protobuf::Message(arena) { - RoverRentalRobot* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +RoverRentalRobot::RoverRentalRobot(const RoverRentalRobot& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + robot_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + robot_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_robot_id().empty()) { + robot_id_.Set(from._internal_robot_id(), + GetArenaForAllocation()); + } + location_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + location_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_location_id().empty()) { + location_id_.Set(from._internal_location_id(), + GetArenaForAllocation()); + } + robot_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + robot_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_robot_name().empty()) { + robot_name_.Set(from._internal_robot_name(), + GetArenaForAllocation()); + } + robot_main_part_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + robot_main_part_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_robot_main_part_id().empty()) { + robot_main_part_id_.Set(from._internal_robot_main_part_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.RoverRentalRobot) } -inline PROTOBUF_NDEBUG_INLINE RoverRentalRobot::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : robot_id_(arena), - location_id_(arena), - robot_name_(arena), - robot_main_part_id_(arena), - _cached_size_{0} {} -inline void RoverRentalRobot::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void RoverRentalRobot::SharedCtor() { +robot_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + robot_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +location_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + location_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +robot_name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + robot_name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +robot_main_part_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + robot_main_part_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + RoverRentalRobot::~RoverRentalRobot() { // @@protoc_insertion_point(destructor:viam.app.v1.RoverRentalRobot) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void RoverRentalRobot::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.robot_id_.Destroy(); - _impl_.location_id_.Destroy(); - _impl_.robot_name_.Destroy(); - _impl_.robot_main_part_id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + robot_id_.Destroy(); + location_id_.Destroy(); + robot_name_.Destroy(); + robot_main_part_id_.Destroy(); } -PROTOBUF_NOINLINE void RoverRentalRobot::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.RoverRentalRobot) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.robot_id_.ClearToEmpty(); - _impl_.location_id_.ClearToEmpty(); - _impl_.robot_name_.ClearToEmpty(); - _impl_.robot_main_part_id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void RoverRentalRobot::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* RoverRentalRobot::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void RoverRentalRobot::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.RoverRentalRobot) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + robot_id_.ClearToEmpty(); + location_id_.ClearToEmpty(); + robot_name_.ClearToEmpty(); + robot_main_part_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RoverRentalRobot::_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 robot_id = 1 [json_name = "robotId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_robot_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RoverRentalRobot.robot_id")); + } else + goto handle_unusual; + continue; + // string location_id = 2 [json_name = "locationId"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_location_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RoverRentalRobot.location_id")); + } else + goto handle_unusual; + continue; + // string robot_name = 3 [json_name = "robotName"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_robot_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RoverRentalRobot.robot_name")); + } else + goto handle_unusual; + continue; + // string robot_main_part_id = 4 [json_name = "robotMainPartId"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_robot_main_part_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RoverRentalRobot.robot_main_part_id")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 0, 84, 2> RoverRentalRobot::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_RoverRentalRobot_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string robot_main_part_id = 4 [json_name = "robotMainPartId"]; - {::_pbi::TcParser::FastUS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(RoverRentalRobot, _impl_.robot_main_part_id_)}}, - // string robot_id = 1 [json_name = "robotId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(RoverRentalRobot, _impl_.robot_id_)}}, - // string location_id = 2 [json_name = "locationId"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(RoverRentalRobot, _impl_.location_id_)}}, - // string robot_name = 3 [json_name = "robotName"]; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(RoverRentalRobot, _impl_.robot_name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string robot_id = 1 [json_name = "robotId"]; - {PROTOBUF_FIELD_OFFSET(RoverRentalRobot, _impl_.robot_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string location_id = 2 [json_name = "locationId"]; - {PROTOBUF_FIELD_OFFSET(RoverRentalRobot, _impl_.location_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string robot_name = 3 [json_name = "robotName"]; - {PROTOBUF_FIELD_OFFSET(RoverRentalRobot, _impl_.robot_name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string robot_main_part_id = 4 [json_name = "robotMainPartId"]; - {PROTOBUF_FIELD_OFFSET(RoverRentalRobot, _impl_.robot_main_part_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\34\10\13\12\22\0\0\0" - "viam.app.v1.RoverRentalRobot" - "robot_id" - "location_id" - "robot_name" - "robot_main_part_id" - }}, -}; - -::uint8_t* RoverRentalRobot::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* RoverRentalRobot::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.RoverRentalRobot) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string robot_id = 1 [json_name = "robotId"]; if (!this->_internal_robot_id().empty()) { - const std::string& _s = this->_internal_robot_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.RoverRentalRobot.robot_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_robot_id().data(), static_cast(this->_internal_robot_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RoverRentalRobot.robot_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_robot_id(), target); } // string location_id = 2 [json_name = "locationId"]; if (!this->_internal_location_id().empty()) { - const std::string& _s = this->_internal_location_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.RoverRentalRobot.location_id"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_location_id().data(), static_cast(this->_internal_location_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RoverRentalRobot.location_id"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_location_id(), target); } // string robot_name = 3 [json_name = "robotName"]; if (!this->_internal_robot_name().empty()) { - const std::string& _s = this->_internal_robot_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.RoverRentalRobot.robot_name"); - target = stream->WriteStringMaybeAliased(3, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_robot_name().data(), static_cast(this->_internal_robot_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RoverRentalRobot.robot_name"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_robot_name(), target); } // string robot_main_part_id = 4 [json_name = "robotMainPartId"]; if (!this->_internal_robot_main_part_id().empty()) { - const std::string& _s = this->_internal_robot_main_part_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.RoverRentalRobot.robot_main_part_id"); - target = stream->WriteStringMaybeAliased(4, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_robot_main_part_id().data(), static_cast(this->_internal_robot_main_part_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RoverRentalRobot.robot_main_part_id"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_robot_main_part_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.RoverRentalRobot) return target; } -::size_t RoverRentalRobot::ByteSizeLong() const { +size_t RoverRentalRobot::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.RoverRentalRobot) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string robot_id = 1 [json_name = "robotId"]; if (!this->_internal_robot_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_robot_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_robot_id()); } // string location_id = 2 [json_name = "locationId"]; if (!this->_internal_location_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_location_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_location_id()); } // string robot_name = 3 [json_name = "robotName"]; if (!this->_internal_robot_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_robot_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_robot_name()); } // string robot_main_part_id = 4 [json_name = "robotMainPartId"]; if (!this->_internal_robot_main_part_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_robot_main_part_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_robot_main_part_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData RoverRentalRobot::_class_data_ = { - RoverRentalRobot::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RoverRentalRobot::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + RoverRentalRobot::MergeImpl }; -const ::google::protobuf::Message::ClassData* RoverRentalRobot::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RoverRentalRobot::GetClassData() const { return &_class_data_; } + +void RoverRentalRobot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void RoverRentalRobot::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.RoverRentalRobot) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void RoverRentalRobot::MergeFrom(const RoverRentalRobot& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.RoverRentalRobot) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_robot_id().empty()) { - _this->_internal_set_robot_id(from._internal_robot_id()); + _internal_set_robot_id(from._internal_robot_id()); } if (!from._internal_location_id().empty()) { - _this->_internal_set_location_id(from._internal_location_id()); + _internal_set_location_id(from._internal_location_id()); } if (!from._internal_robot_name().empty()) { - _this->_internal_set_robot_name(from._internal_robot_name()); + _internal_set_robot_name(from._internal_robot_name()); } if (!from._internal_robot_main_part_id().empty()) { - _this->_internal_set_robot_main_part_id(from._internal_robot_main_part_id()); + _internal_set_robot_main_part_id(from._internal_robot_main_part_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void RoverRentalRobot::CopyFrom(const RoverRentalRobot& from) { @@ -23307,185 +22867,192 @@ void RoverRentalRobot::CopyFrom(const RoverRentalRobot& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool RoverRentalRobot::IsInitialized() const { +bool RoverRentalRobot::IsInitialized() const { return true; } -::_pbi::CachedSize* RoverRentalRobot::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void RoverRentalRobot::InternalSwap(RoverRentalRobot* PROTOBUF_RESTRICT other) { +void RoverRentalRobot::InternalSwap(RoverRentalRobot* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.robot_id_, &other->_impl_.robot_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.location_id_, &other->_impl_.location_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.robot_name_, &other->_impl_.robot_name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.robot_main_part_id_, &other->_impl_.robot_main_part_id_, arena); -} - -::google::protobuf::Metadata RoverRentalRobot::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &robot_id_, lhs_arena, + &other->robot_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &location_id_, lhs_arena, + &other->location_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &robot_name_, lhs_arena, + &other->robot_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &robot_main_part_id_, lhs_arena, + &other->robot_main_part_id_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata RoverRentalRobot::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[74]); } + // =================================================================== class GetRoverRentalRobotsResponse::_Internal { public: }; -GetRoverRentalRobotsResponse::GetRoverRentalRobotsResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetRoverRentalRobotsResponse::GetRoverRentalRobotsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + robots_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.v1.GetRoverRentalRobotsResponse) } -inline PROTOBUF_NDEBUG_INLINE GetRoverRentalRobotsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : robots_{visibility, arena, from.robots_}, - _cached_size_{0} {} - -GetRoverRentalRobotsResponse::GetRoverRentalRobotsResponse( - ::google::protobuf::Arena* arena, - const GetRoverRentalRobotsResponse& from) - : ::google::protobuf::Message(arena) { - GetRoverRentalRobotsResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetRoverRentalRobotsResponse::GetRoverRentalRobotsResponse(const GetRoverRentalRobotsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + robots_(from.robots_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetRoverRentalRobotsResponse) } -inline PROTOBUF_NDEBUG_INLINE GetRoverRentalRobotsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : robots_{visibility, arena}, - _cached_size_{0} {} -inline void GetRoverRentalRobotsResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetRoverRentalRobotsResponse::SharedCtor() { } + GetRoverRentalRobotsResponse::~GetRoverRentalRobotsResponse() { // @@protoc_insertion_point(destructor:viam.app.v1.GetRoverRentalRobotsResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetRoverRentalRobotsResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void GetRoverRentalRobotsResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetRoverRentalRobotsResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.robots_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void GetRoverRentalRobotsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* GetRoverRentalRobotsResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void GetRoverRentalRobotsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetRoverRentalRobotsResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + robots_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetRoverRentalRobotsResponse::_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) { + // repeated .viam.app.v1.RoverRentalRobot robots = 1 [json_name = "robots"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_robots(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetRoverRentalRobotsResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetRoverRentalRobotsResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.app.v1.RoverRentalRobot robots = 1 [json_name = "robots"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetRoverRentalRobotsResponse, _impl_.robots_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.app.v1.RoverRentalRobot robots = 1 [json_name = "robots"]; - {PROTOBUF_FIELD_OFFSET(GetRoverRentalRobotsResponse, _impl_.robots_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::RoverRentalRobot>()}, - }}, {{ - }}, -}; - -::uint8_t* GetRoverRentalRobotsResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetRoverRentalRobotsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetRoverRentalRobotsResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .viam.app.v1.RoverRentalRobot robots = 1 [json_name = "robots"]; for (unsigned i = 0, n = static_cast(this->_internal_robots_size()); i < n; i++) { - const auto& repfield = this->_internal_robots().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_robots(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.GetRoverRentalRobotsResponse) return target; } -::size_t GetRoverRentalRobotsResponse::ByteSizeLong() const { +size_t GetRoverRentalRobotsResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetRoverRentalRobotsResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.app.v1.RoverRentalRobot robots = 1 [json_name = "robots"]; total_size += 1UL * this->_internal_robots_size(); - for (const auto& msg : this->_internal_robots()) { + for (const auto& msg : this->robots_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetRoverRentalRobotsResponse::_class_data_ = { - GetRoverRentalRobotsResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetRoverRentalRobotsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetRoverRentalRobotsResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetRoverRentalRobotsResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetRoverRentalRobotsResponse::GetClassData() const { return &_class_data_; } + +void GetRoverRentalRobotsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetRoverRentalRobotsResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetRoverRentalRobotsResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetRoverRentalRobotsResponse::MergeFrom(const GetRoverRentalRobotsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetRoverRentalRobotsResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_robots()->MergeFrom( - from._internal_robots()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + robots_.MergeFrom(from.robots_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetRoverRentalRobotsResponse::CopyFrom(const GetRoverRentalRobotsResponse& from) { @@ -23495,203 +23062,184 @@ void GetRoverRentalRobotsResponse::CopyFrom(const GetRoverRentalRobotsResponse& MergeFrom(from); } -PROTOBUF_NOINLINE bool GetRoverRentalRobotsResponse::IsInitialized() const { +bool GetRoverRentalRobotsResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetRoverRentalRobotsResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetRoverRentalRobotsResponse::InternalSwap(GetRoverRentalRobotsResponse* PROTOBUF_RESTRICT other) { +void GetRoverRentalRobotsResponse::InternalSwap(GetRoverRentalRobotsResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.robots_.InternalSwap(&other->_impl_.robots_); + robots_.InternalSwap(&other->robots_); } -::google::protobuf::Metadata GetRoverRentalRobotsResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetRoverRentalRobotsResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[75]); } + // =================================================================== class GetRobotResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetRobotResponse, _impl_._has_bits_); static const ::viam::app::v1::Robot& robot(const GetRobotResponse* msg); - static void set_has_robot(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::app::v1::Robot& GetRobotResponse::_Internal::robot(const GetRobotResponse* msg) { - return *msg->_impl_.robot_; +const ::viam::app::v1::Robot& +GetRobotResponse::_Internal::robot(const GetRobotResponse* msg) { + return *msg->robot_; } -GetRobotResponse::GetRobotResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetRobotResponse::GetRobotResponse(::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.GetRobotResponse) } -inline PROTOBUF_NDEBUG_INLINE GetRobotResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -GetRobotResponse::GetRobotResponse( - ::google::protobuf::Arena* arena, - const GetRobotResponse& from) - : ::google::protobuf::Message(arena) { - GetRobotResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.robot_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::app::v1::Robot>(arena, *from._impl_.robot_) - : nullptr; - +GetRobotResponse::GetRobotResponse(const GetRobotResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_robot()) { + robot_ = new ::viam::app::v1::Robot(*from.robot_); + } else { + robot_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetRobotResponse) } -inline PROTOBUF_NDEBUG_INLINE GetRobotResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void GetRobotResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.robot_ = {}; +inline void GetRobotResponse::SharedCtor() { +robot_ = nullptr; } + GetRobotResponse::~GetRobotResponse() { // @@protoc_insertion_point(destructor:viam.app.v1.GetRobotResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetRobotResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.robot_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete robot_; } -PROTOBUF_NOINLINE void GetRobotResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetRobotResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.robot_ != nullptr); - _impl_.robot_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void GetRobotResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* GetRobotResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void GetRobotResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetRobotResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && robot_ != nullptr) { + delete robot_; + } + robot_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetRobotResponse::_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.app.v1.Robot robot = 1 [json_name = "robot"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_robot(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetRobotResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetRobotResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetRobotResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.app.v1.Robot robot = 1 [json_name = "robot"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetRobotResponse, _impl_.robot_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.app.v1.Robot robot = 1 [json_name = "robot"]; - {PROTOBUF_FIELD_OFFSET(GetRobotResponse, _impl_.robot_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::Robot>()}, - }}, {{ - }}, -}; - -::uint8_t* GetRobotResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetRobotResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetRobotResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.app.v1.Robot robot = 1 [json_name = "robot"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::robot(this), + if (this->_internal_has_robot()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::robot(this), _Internal::robot(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.GetRobotResponse) return target; } -::size_t GetRobotResponse::ByteSizeLong() const { +size_t GetRobotResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetRobotResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .viam.app.v1.Robot robot = 1 [json_name = "robot"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.robot_); + if (this->_internal_has_robot()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *robot_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetRobotResponse::_class_data_ = { - GetRobotResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetRobotResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetRobotResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetRobotResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetRobotResponse::GetClassData() const { return &_class_data_; } + +void GetRobotResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetRobotResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetRobotResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetRobotResponse::MergeFrom(const GetRobotResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetRobotResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_robot()->::viam::app::v1::Robot::MergeFrom( - from._internal_robot()); + if (from._internal_has_robot()) { + _internal_mutable_robot()->::viam::app::v1::Robot::MergeFrom(from._internal_robot()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetRobotResponse::CopyFrom(const GetRobotResponse& from) { @@ -23701,186 +23249,187 @@ void GetRobotResponse::CopyFrom(const GetRobotResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetRobotResponse::IsInitialized() const { +bool GetRobotResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetRobotResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetRobotResponse::InternalSwap(GetRobotResponse* PROTOBUF_RESTRICT other) { +void GetRobotResponse::InternalSwap(GetRobotResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.robot_, other->_impl_.robot_); + swap(robot_, other->robot_); } -::google::protobuf::Metadata GetRobotResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetRobotResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[76]); } + // =================================================================== class GetRobotPartsRequest::_Internal { public: }; -GetRobotPartsRequest::GetRobotPartsRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetRobotPartsRequest::GetRobotPartsRequest(::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.GetRobotPartsRequest) } -inline PROTOBUF_NDEBUG_INLINE GetRobotPartsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : robot_id_(arena, from.robot_id_), - _cached_size_{0} {} - -GetRobotPartsRequest::GetRobotPartsRequest( - ::google::protobuf::Arena* arena, - const GetRobotPartsRequest& from) - : ::google::protobuf::Message(arena) { - GetRobotPartsRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetRobotPartsRequest::GetRobotPartsRequest(const GetRobotPartsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + robot_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + robot_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_robot_id().empty()) { + robot_id_.Set(from._internal_robot_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetRobotPartsRequest) } -inline PROTOBUF_NDEBUG_INLINE GetRobotPartsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : robot_id_(arena), - _cached_size_{0} {} -inline void GetRobotPartsRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetRobotPartsRequest::SharedCtor() { +robot_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + robot_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + GetRobotPartsRequest::~GetRobotPartsRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.GetRobotPartsRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetRobotPartsRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.robot_id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + robot_id_.Destroy(); } -PROTOBUF_NOINLINE void GetRobotPartsRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetRobotPartsRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.robot_id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void GetRobotPartsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* GetRobotPartsRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void GetRobotPartsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetRobotPartsRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + robot_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetRobotPartsRequest::_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 robot_id = 1 [json_name = "robotId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_robot_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.GetRobotPartsRequest.robot_id")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 49, 2> GetRobotPartsRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetRobotPartsRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string robot_id = 1 [json_name = "robotId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetRobotPartsRequest, _impl_.robot_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string robot_id = 1 [json_name = "robotId"]; - {PROTOBUF_FIELD_OFFSET(GetRobotPartsRequest, _impl_.robot_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\40\10\0\0\0\0\0\0" - "viam.app.v1.GetRobotPartsRequest" - "robot_id" - }}, -}; - -::uint8_t* GetRobotPartsRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetRobotPartsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetRobotPartsRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string robot_id = 1 [json_name = "robotId"]; if (!this->_internal_robot_id().empty()) { - const std::string& _s = this->_internal_robot_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.GetRobotPartsRequest.robot_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_robot_id().data(), static_cast(this->_internal_robot_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.GetRobotPartsRequest.robot_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_robot_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.GetRobotPartsRequest) return target; } -::size_t GetRobotPartsRequest::ByteSizeLong() const { +size_t GetRobotPartsRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetRobotPartsRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string robot_id = 1 [json_name = "robotId"]; if (!this->_internal_robot_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_robot_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_robot_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetRobotPartsRequest::_class_data_ = { - GetRobotPartsRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetRobotPartsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetRobotPartsRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetRobotPartsRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetRobotPartsRequest::GetClassData() const { return &_class_data_; } + +void GetRobotPartsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetRobotPartsRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetRobotPartsRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetRobotPartsRequest::MergeFrom(const GetRobotPartsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetRobotPartsRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_robot_id().empty()) { - _this->_internal_set_robot_id(from._internal_robot_id()); + _internal_set_robot_id(from._internal_robot_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetRobotPartsRequest::CopyFrom(const GetRobotPartsRequest& from) { @@ -23890,182 +23439,180 @@ void GetRobotPartsRequest::CopyFrom(const GetRobotPartsRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetRobotPartsRequest::IsInitialized() const { +bool GetRobotPartsRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetRobotPartsRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetRobotPartsRequest::InternalSwap(GetRobotPartsRequest* PROTOBUF_RESTRICT other) { +void GetRobotPartsRequest::InternalSwap(GetRobotPartsRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.robot_id_, &other->_impl_.robot_id_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &robot_id_, lhs_arena, + &other->robot_id_, rhs_arena + ); } -::google::protobuf::Metadata GetRobotPartsRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetRobotPartsRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[77]); } + // =================================================================== class GetRobotPartsResponse::_Internal { public: }; -GetRobotPartsResponse::GetRobotPartsResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetRobotPartsResponse::GetRobotPartsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + parts_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.v1.GetRobotPartsResponse) } -inline PROTOBUF_NDEBUG_INLINE GetRobotPartsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : parts_{visibility, arena, from.parts_}, - _cached_size_{0} {} - -GetRobotPartsResponse::GetRobotPartsResponse( - ::google::protobuf::Arena* arena, - const GetRobotPartsResponse& from) - : ::google::protobuf::Message(arena) { - GetRobotPartsResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetRobotPartsResponse::GetRobotPartsResponse(const GetRobotPartsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + parts_(from.parts_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetRobotPartsResponse) } -inline PROTOBUF_NDEBUG_INLINE GetRobotPartsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : parts_{visibility, arena}, - _cached_size_{0} {} -inline void GetRobotPartsResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetRobotPartsResponse::SharedCtor() { } + GetRobotPartsResponse::~GetRobotPartsResponse() { // @@protoc_insertion_point(destructor:viam.app.v1.GetRobotPartsResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetRobotPartsResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void GetRobotPartsResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetRobotPartsResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.parts_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void GetRobotPartsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* GetRobotPartsResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void GetRobotPartsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetRobotPartsResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + parts_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetRobotPartsResponse::_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) { + // repeated .viam.app.v1.RobotPart parts = 1 [json_name = "parts"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_parts(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetRobotPartsResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetRobotPartsResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.app.v1.RobotPart parts = 1 [json_name = "parts"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetRobotPartsResponse, _impl_.parts_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.app.v1.RobotPart parts = 1 [json_name = "parts"]; - {PROTOBUF_FIELD_OFFSET(GetRobotPartsResponse, _impl_.parts_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::RobotPart>()}, - }}, {{ - }}, -}; - -::uint8_t* GetRobotPartsResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetRobotPartsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetRobotPartsResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .viam.app.v1.RobotPart parts = 1 [json_name = "parts"]; for (unsigned i = 0, n = static_cast(this->_internal_parts_size()); i < n; i++) { - const auto& repfield = this->_internal_parts().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_parts(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.GetRobotPartsResponse) return target; } -::size_t GetRobotPartsResponse::ByteSizeLong() const { +size_t GetRobotPartsResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetRobotPartsResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.app.v1.RobotPart parts = 1 [json_name = "parts"]; total_size += 1UL * this->_internal_parts_size(); - for (const auto& msg : this->_internal_parts()) { + for (const auto& msg : this->parts_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetRobotPartsResponse::_class_data_ = { - GetRobotPartsResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetRobotPartsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetRobotPartsResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetRobotPartsResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetRobotPartsResponse::GetClassData() const { return &_class_data_; } + +void GetRobotPartsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetRobotPartsResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetRobotPartsResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetRobotPartsResponse::MergeFrom(const GetRobotPartsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetRobotPartsResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_parts()->MergeFrom( - from._internal_parts()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + parts_.MergeFrom(from.parts_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetRobotPartsResponse::CopyFrom(const GetRobotPartsResponse& from) { @@ -24075,185 +23622,187 @@ void GetRobotPartsResponse::CopyFrom(const GetRobotPartsResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetRobotPartsResponse::IsInitialized() const { +bool GetRobotPartsResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetRobotPartsResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetRobotPartsResponse::InternalSwap(GetRobotPartsResponse* PROTOBUF_RESTRICT other) { +void GetRobotPartsResponse::InternalSwap(GetRobotPartsResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.parts_.InternalSwap(&other->_impl_.parts_); + parts_.InternalSwap(&other->parts_); } -::google::protobuf::Metadata GetRobotPartsResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetRobotPartsResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[78]); } + // =================================================================== class GetRobotPartRequest::_Internal { public: }; -GetRobotPartRequest::GetRobotPartRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetRobotPartRequest::GetRobotPartRequest(::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.GetRobotPartRequest) } -inline PROTOBUF_NDEBUG_INLINE GetRobotPartRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : id_(arena, from.id_), - _cached_size_{0} {} - -GetRobotPartRequest::GetRobotPartRequest( - ::google::protobuf::Arena* arena, - const GetRobotPartRequest& from) - : ::google::protobuf::Message(arena) { - GetRobotPartRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetRobotPartRequest::GetRobotPartRequest(const GetRobotPartRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetRobotPartRequest) } -inline PROTOBUF_NDEBUG_INLINE GetRobotPartRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : id_(arena), - _cached_size_{0} {} -inline void GetRobotPartRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetRobotPartRequest::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + GetRobotPartRequest::~GetRobotPartRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.GetRobotPartRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetRobotPartRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); } -PROTOBUF_NOINLINE void GetRobotPartRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetRobotPartRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void GetRobotPartRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* GetRobotPartRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void GetRobotPartRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetRobotPartRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetRobotPartRequest::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.GetRobotPartRequest.id")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 42, 2> GetRobotPartRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetRobotPartRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string id = 1 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetRobotPartRequest, _impl_.id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(GetRobotPartRequest, _impl_.id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\37\2\0\0\0\0\0\0" - "viam.app.v1.GetRobotPartRequest" - "id" - }}, -}; - -::uint8_t* GetRobotPartRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetRobotPartRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetRobotPartRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.GetRobotPartRequest.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.GetRobotPartRequest.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.GetRobotPartRequest) return target; } -::size_t GetRobotPartRequest::ByteSizeLong() const { +size_t GetRobotPartRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetRobotPartRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetRobotPartRequest::_class_data_ = { - GetRobotPartRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetRobotPartRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetRobotPartRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetRobotPartRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetRobotPartRequest::GetClassData() const { return &_class_data_; } + +void GetRobotPartRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetRobotPartRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetRobotPartRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetRobotPartRequest::MergeFrom(const GetRobotPartRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetRobotPartRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetRobotPartRequest::CopyFrom(const GetRobotPartRequest& from) { @@ -24263,235 +23812,233 @@ void GetRobotPartRequest::CopyFrom(const GetRobotPartRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetRobotPartRequest::IsInitialized() const { +bool GetRobotPartRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetRobotPartRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetRobotPartRequest::InternalSwap(GetRobotPartRequest* PROTOBUF_RESTRICT other) { +void GetRobotPartRequest::InternalSwap(GetRobotPartRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); } -::google::protobuf::Metadata GetRobotPartRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetRobotPartRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[79]); } + // =================================================================== class GetRobotPartResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetRobotPartResponse, _impl_._has_bits_); static const ::viam::app::v1::RobotPart& part(const GetRobotPartResponse* msg); - static void set_has_part(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::app::v1::RobotPart& GetRobotPartResponse::_Internal::part(const GetRobotPartResponse* msg) { - return *msg->_impl_.part_; +const ::viam::app::v1::RobotPart& +GetRobotPartResponse::_Internal::part(const GetRobotPartResponse* msg) { + return *msg->part_; } -GetRobotPartResponse::GetRobotPartResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetRobotPartResponse::GetRobotPartResponse(::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.GetRobotPartResponse) } -inline PROTOBUF_NDEBUG_INLINE GetRobotPartResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - config_json_(arena, from.config_json_) {} - -GetRobotPartResponse::GetRobotPartResponse( - ::google::protobuf::Arena* arena, - const GetRobotPartResponse& from) - : ::google::protobuf::Message(arena) { - GetRobotPartResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.part_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::app::v1::RobotPart>(arena, *from._impl_.part_) - : nullptr; - +GetRobotPartResponse::GetRobotPartResponse(const GetRobotPartResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + config_json_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + config_json_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_config_json().empty()) { + config_json_.Set(from._internal_config_json(), + GetArenaForAllocation()); + } + if (from._internal_has_part()) { + part_ = new ::viam::app::v1::RobotPart(*from.part_); + } else { + part_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetRobotPartResponse) } -inline PROTOBUF_NDEBUG_INLINE GetRobotPartResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - config_json_(arena) {} -inline void GetRobotPartResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.part_ = {}; +inline void GetRobotPartResponse::SharedCtor() { +config_json_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + config_json_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +part_ = nullptr; } + GetRobotPartResponse::~GetRobotPartResponse() { // @@protoc_insertion_point(destructor:viam.app.v1.GetRobotPartResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetRobotPartResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.config_json_.Destroy(); - delete _impl_.part_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + config_json_.Destroy(); + if (this != internal_default_instance()) delete part_; } -PROTOBUF_NOINLINE void GetRobotPartResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetRobotPartResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.config_json_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.part_ != nullptr); - _impl_.part_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void GetRobotPartResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* GetRobotPartResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void GetRobotPartResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetRobotPartResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + config_json_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && part_ != nullptr) { + delete part_; + } + part_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetRobotPartResponse::_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.app.v1.RobotPart part = 1 [json_name = "part"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_part(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string config_json = 2 [json_name = "configJson"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_config_json(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.GetRobotPartResponse.config_json")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 52, 2> GetRobotPartResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetRobotPartResponse, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetRobotPartResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string config_json = 2 [json_name = "configJson"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(GetRobotPartResponse, _impl_.config_json_)}}, - // .viam.app.v1.RobotPart part = 1 [json_name = "part"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetRobotPartResponse, _impl_.part_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.app.v1.RobotPart part = 1 [json_name = "part"]; - {PROTOBUF_FIELD_OFFSET(GetRobotPartResponse, _impl_.part_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // string config_json = 2 [json_name = "configJson"]; - {PROTOBUF_FIELD_OFFSET(GetRobotPartResponse, _impl_.config_json_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::RobotPart>()}, - }}, {{ - "\40\0\13\0\0\0\0\0" - "viam.app.v1.GetRobotPartResponse" - "config_json" - }}, -}; - -::uint8_t* GetRobotPartResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetRobotPartResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetRobotPartResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.app.v1.RobotPart part = 1 [json_name = "part"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::part(this), + if (this->_internal_has_part()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::part(this), _Internal::part(this).GetCachedSize(), target, stream); } // string config_json = 2 [json_name = "configJson"]; if (!this->_internal_config_json().empty()) { - const std::string& _s = this->_internal_config_json(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.GetRobotPartResponse.config_json"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_config_json().data(), static_cast(this->_internal_config_json().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.GetRobotPartResponse.config_json"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_config_json(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.GetRobotPartResponse) return target; } -::size_t GetRobotPartResponse::ByteSizeLong() const { +size_t GetRobotPartResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetRobotPartResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string config_json = 2 [json_name = "configJson"]; if (!this->_internal_config_json().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_config_json()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_config_json()); } // .viam.app.v1.RobotPart part = 1 [json_name = "part"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.part_); + if (this->_internal_has_part()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *part_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetRobotPartResponse::_class_data_ = { - GetRobotPartResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetRobotPartResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetRobotPartResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetRobotPartResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetRobotPartResponse::GetClassData() const { return &_class_data_; } + +void GetRobotPartResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetRobotPartResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetRobotPartResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetRobotPartResponse::MergeFrom(const GetRobotPartResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetRobotPartResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_config_json().empty()) { - _this->_internal_set_config_json(from._internal_config_json()); + _internal_set_config_json(from._internal_config_json()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_part()->::viam::app::v1::RobotPart::MergeFrom( - from._internal_part()); + if (from._internal_has_part()) { + _internal_mutable_part()->::viam::app::v1::RobotPart::MergeFrom(from._internal_part()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetRobotPartResponse::CopyFrom(const GetRobotPartResponse& from) { @@ -24501,46 +24048,44 @@ void GetRobotPartResponse::CopyFrom(const GetRobotPartResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetRobotPartResponse::IsInitialized() const { +bool GetRobotPartResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetRobotPartResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetRobotPartResponse::InternalSwap(GetRobotPartResponse* PROTOBUF_RESTRICT other) { +void GetRobotPartResponse::InternalSwap(GetRobotPartResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.config_json_, &other->_impl_.config_json_, arena); - swap(_impl_.part_, other->_impl_.part_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &config_json_, lhs_arena, + &other->config_json_, rhs_arena + ); + swap(part_, other->part_); } -::google::protobuf::Metadata GetRobotPartResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetRobotPartResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[80]); } + // =================================================================== class GetRobotPartLogsRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetRobotPartLogsRequest, _impl_._has_bits_); + using HasBits = decltype(std::declval()._has_bits_); static void set_has_filter(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static void set_has_page_token(HasBits* has_bits) { (*has_bits)[0] |= 2u; } - static const ::google::protobuf::Timestamp& start(const GetRobotPartLogsRequest* msg); + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& start(const GetRobotPartLogsRequest* msg); static void set_has_start(HasBits* has_bits) { (*has_bits)[0] |= 8u; } - static const ::google::protobuf::Timestamp& end(const GetRobotPartLogsRequest* msg); + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& end(const GetRobotPartLogsRequest* msg); static void set_has_end(HasBits* has_bits) { (*has_bits)[0] |= 16u; } @@ -24552,434 +24097,494 @@ class GetRobotPartLogsRequest::_Internal { } }; -const ::google::protobuf::Timestamp& GetRobotPartLogsRequest::_Internal::start(const GetRobotPartLogsRequest* msg) { - return *msg->_impl_.start_; +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +GetRobotPartLogsRequest::_Internal::start(const GetRobotPartLogsRequest* msg) { + return *msg->start_; } -const ::google::protobuf::Timestamp& GetRobotPartLogsRequest::_Internal::end(const GetRobotPartLogsRequest* msg) { - return *msg->_impl_.end_; +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +GetRobotPartLogsRequest::_Internal::end(const GetRobotPartLogsRequest* msg) { + return *msg->end_; } void GetRobotPartLogsRequest::clear_start() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.start_ != nullptr) _impl_.start_->Clear(); - _impl_._has_bits_[0] &= ~0x00000008u; + if (start_ != nullptr) start_->Clear(); + _has_bits_[0] &= ~0x00000008u; } void GetRobotPartLogsRequest::clear_end() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.end_ != nullptr) _impl_.end_->Clear(); - _impl_._has_bits_[0] &= ~0x00000010u; -} -GetRobotPartLogsRequest::GetRobotPartLogsRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); + if (end_ != nullptr) end_->Clear(); + _has_bits_[0] &= ~0x00000010u; +} +GetRobotPartLogsRequest::GetRobotPartLogsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + levels_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.v1.GetRobotPartLogsRequest) } -inline PROTOBUF_NDEBUG_INLINE GetRobotPartLogsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - levels_{visibility, arena, from.levels_}, - id_(arena, from.id_), - filter_(arena, from.filter_), - page_token_(arena, from.page_token_), - source_(arena, from.source_) {} - -GetRobotPartLogsRequest::GetRobotPartLogsRequest( - ::google::protobuf::Arena* arena, - const GetRobotPartLogsRequest& from) - : ::google::protobuf::Message(arena) { - GetRobotPartLogsRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.start_ = (cached_has_bits & 0x00000008u) - ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.start_) - : nullptr; - _impl_.end_ = (cached_has_bits & 0x00000010u) - ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.end_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, limit_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, limit_), - offsetof(Impl_, errors_only_) - - offsetof(Impl_, limit_) + - sizeof(Impl_::errors_only_)); - +GetRobotPartLogsRequest::GetRobotPartLogsRequest(const GetRobotPartLogsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_), + levels_(from.levels_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } + filter_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + filter_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (from._internal_has_filter()) { + filter_.Set(from._internal_filter(), + GetArenaForAllocation()); + } + page_token_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + page_token_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (from._internal_has_page_token()) { + page_token_.Set(from._internal_page_token(), + GetArenaForAllocation()); + } + source_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + source_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (from._internal_has_source()) { + source_.Set(from._internal_source(), + GetArenaForAllocation()); + } + if (from._internal_has_start()) { + start_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from.start_); + } else { + start_ = nullptr; + } + if (from._internal_has_end()) { + end_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from.end_); + } else { + end_ = nullptr; + } + ::memcpy(&limit_, &from.limit_, + static_cast(reinterpret_cast(&errors_only_) - + reinterpret_cast(&limit_)) + sizeof(errors_only_)); // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetRobotPartLogsRequest) } -inline PROTOBUF_NDEBUG_INLINE GetRobotPartLogsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - levels_{visibility, arena}, - id_(arena), - filter_(arena), - page_token_(arena), - source_(arena) {} - -inline void GetRobotPartLogsRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, start_), - 0, - offsetof(Impl_, errors_only_) - - offsetof(Impl_, start_) + - sizeof(Impl_::errors_only_)); + +inline void GetRobotPartLogsRequest::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +filter_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + filter_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +page_token_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + page_token_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +source_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + source_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&start_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&errors_only_) - + reinterpret_cast(&start_)) + sizeof(errors_only_)); } + GetRobotPartLogsRequest::~GetRobotPartLogsRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.GetRobotPartLogsRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetRobotPartLogsRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.filter_.Destroy(); - _impl_.page_token_.Destroy(); - _impl_.source_.Destroy(); - delete _impl_.start_; - delete _impl_.end_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); + filter_.Destroy(); + page_token_.Destroy(); + source_.Destroy(); + if (this != internal_default_instance()) delete start_; + if (this != internal_default_instance()) delete end_; } -PROTOBUF_NOINLINE void GetRobotPartLogsRequest::Clear() { +void GetRobotPartLogsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetRobotPartLogsRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.GetRobotPartLogsRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.levels_.Clear(); - _impl_.id_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; + levels_.Clear(); + id_.ClearToEmpty(); + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x0000001fu) { if (cached_has_bits & 0x00000001u) { - _impl_.filter_.ClearNonDefaultToEmpty(); + filter_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { - _impl_.page_token_.ClearNonDefaultToEmpty(); + page_token_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { - _impl_.source_.ClearNonDefaultToEmpty(); + source_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000008u) { - ABSL_DCHECK(_impl_.start_ != nullptr); - _impl_.start_->Clear(); + GOOGLE_DCHECK(start_ != nullptr); + start_->Clear(); } if (cached_has_bits & 0x00000010u) { - ABSL_DCHECK(_impl_.end_ != nullptr); - _impl_.end_->Clear(); + GOOGLE_DCHECK(end_ != nullptr); + end_->Clear(); } } - _impl_.limit_ = ::int64_t{0}; - _impl_.errors_only_ = false; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetRobotPartLogsRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + limit_ = int64_t{0}; + errors_only_ = false; + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetRobotPartLogsRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.GetRobotPartLogsRequest.id")); + } else + goto handle_unusual; + continue; + // bool errors_only = 2 [json_name = "errorsOnly", deprecated = true]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + errors_only_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional string filter = 3 [json_name = "filter"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_filter(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.GetRobotPartLogsRequest.filter")); + } else + goto handle_unusual; + continue; + // optional string page_token = 4 [json_name = "pageToken"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_page_token(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.GetRobotPartLogsRequest.page_token")); + } else + goto handle_unusual; + continue; + // repeated string levels = 5 [json_name = "levels"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_levels(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.GetRobotPartLogsRequest.levels")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr)); + } else + goto handle_unusual; + continue; + // optional .google.protobuf.Timestamp start = 6 [json_name = "start"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr = ctx->ParseMessage(_internal_mutable_start(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional .google.protobuf.Timestamp end = 7 [json_name = "end"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + ptr = ctx->ParseMessage(_internal_mutable_end(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional int64 limit = 8 [json_name = "limit"]; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 64)) { + _Internal::set_has_limit(&has_bits); + limit_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional string source = 9 [json_name = "source"]; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { + auto str = _internal_mutable_source(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.GetRobotPartLogsRequest.source")); + } 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: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<4, 9, 2, 82, 2> GetRobotPartLogsRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetRobotPartLogsRequest, _impl_._has_bits_), - 0, // no _extensions_ - 9, 120, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294966784, // skipmap - offsetof(decltype(_table_), field_entries), - 9, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetRobotPartLogsRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string id = 1 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetRobotPartLogsRequest, _impl_.id_)}}, - // bool errors_only = 2 [json_name = "errorsOnly", deprecated = true]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(GetRobotPartLogsRequest, _impl_.errors_only_)}}, - // optional string filter = 3 [json_name = "filter"]; - {::_pbi::TcParser::FastUS1, - {26, 0, 0, PROTOBUF_FIELD_OFFSET(GetRobotPartLogsRequest, _impl_.filter_)}}, - // optional string page_token = 4 [json_name = "pageToken"]; - {::_pbi::TcParser::FastUS1, - {34, 1, 0, PROTOBUF_FIELD_OFFSET(GetRobotPartLogsRequest, _impl_.page_token_)}}, - // repeated string levels = 5 [json_name = "levels"]; - {::_pbi::TcParser::FastUR1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(GetRobotPartLogsRequest, _impl_.levels_)}}, - // optional .google.protobuf.Timestamp start = 6 [json_name = "start"]; - {::_pbi::TcParser::FastMtS1, - {50, 3, 0, PROTOBUF_FIELD_OFFSET(GetRobotPartLogsRequest, _impl_.start_)}}, - // optional .google.protobuf.Timestamp end = 7 [json_name = "end"]; - {::_pbi::TcParser::FastMtS1, - {58, 4, 1, PROTOBUF_FIELD_OFFSET(GetRobotPartLogsRequest, _impl_.end_)}}, - // optional int64 limit = 8 [json_name = "limit"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GetRobotPartLogsRequest, _impl_.limit_), 5>(), - {64, 5, 0, PROTOBUF_FIELD_OFFSET(GetRobotPartLogsRequest, _impl_.limit_)}}, - // optional string source = 9 [json_name = "source"]; - {::_pbi::TcParser::FastUS1, - {74, 2, 0, PROTOBUF_FIELD_OFFSET(GetRobotPartLogsRequest, _impl_.source_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(GetRobotPartLogsRequest, _impl_.id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // bool errors_only = 2 [json_name = "errorsOnly", deprecated = true]; - {PROTOBUF_FIELD_OFFSET(GetRobotPartLogsRequest, _impl_.errors_only_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // optional string filter = 3 [json_name = "filter"]; - {PROTOBUF_FIELD_OFFSET(GetRobotPartLogsRequest, _impl_.filter_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // optional string page_token = 4 [json_name = "pageToken"]; - {PROTOBUF_FIELD_OFFSET(GetRobotPartLogsRequest, _impl_.page_token_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated string levels = 5 [json_name = "levels"]; - {PROTOBUF_FIELD_OFFSET(GetRobotPartLogsRequest, _impl_.levels_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - // optional .google.protobuf.Timestamp start = 6 [json_name = "start"]; - {PROTOBUF_FIELD_OFFSET(GetRobotPartLogsRequest, _impl_.start_), _Internal::kHasBitsOffset + 3, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // optional .google.protobuf.Timestamp end = 7 [json_name = "end"]; - {PROTOBUF_FIELD_OFFSET(GetRobotPartLogsRequest, _impl_.end_), _Internal::kHasBitsOffset + 4, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // optional int64 limit = 8 [json_name = "limit"]; - {PROTOBUF_FIELD_OFFSET(GetRobotPartLogsRequest, _impl_.limit_), _Internal::kHasBitsOffset + 5, 0, - (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, - // optional string source = 9 [json_name = "source"]; - {PROTOBUF_FIELD_OFFSET(GetRobotPartLogsRequest, _impl_.source_), _Internal::kHasBitsOffset + 2, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, - }}, {{ - "\43\2\0\6\12\6\0\0\0\6\0\0\0\0\0\0" - "viam.app.v1.GetRobotPartLogsRequest" - "id" - "filter" - "page_token" - "levels" - "source" - }}, -}; - -::uint8_t* GetRobotPartLogsRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetRobotPartLogsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetRobotPartLogsRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.GetRobotPartLogsRequest.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.GetRobotPartLogsRequest.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); } // bool errors_only = 2 [json_name = "errorsOnly", deprecated = true]; if (this->_internal_errors_only() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 2, this->_internal_errors_only(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_errors_only(), target); } - cached_has_bits = _impl_._has_bits_[0]; // optional string filter = 3 [json_name = "filter"]; - if (cached_has_bits & 0x00000001u) { - const std::string& _s = this->_internal_filter(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.GetRobotPartLogsRequest.filter"); - target = stream->WriteStringMaybeAliased(3, _s, target); + if (_internal_has_filter()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_filter().data(), static_cast(this->_internal_filter().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.GetRobotPartLogsRequest.filter"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_filter(), target); } // optional string page_token = 4 [json_name = "pageToken"]; - if (cached_has_bits & 0x00000002u) { - const std::string& _s = this->_internal_page_token(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.GetRobotPartLogsRequest.page_token"); - target = stream->WriteStringMaybeAliased(4, _s, target); + if (_internal_has_page_token()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_page_token().data(), static_cast(this->_internal_page_token().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.GetRobotPartLogsRequest.page_token"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_page_token(), target); } // repeated string levels = 5 [json_name = "levels"]; - for (int i = 0, n = this->_internal_levels_size(); i < n; ++i) { - const auto& s = this->_internal_levels().Get(i); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.GetRobotPartLogsRequest.levels"); + for (int i = 0, n = this->_internal_levels_size(); i < n; i++) { + const auto& s = this->_internal_levels(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.GetRobotPartLogsRequest.levels"); target = stream->WriteString(5, s, target); } // optional .google.protobuf.Timestamp start = 6 [json_name = "start"]; - if (cached_has_bits & 0x00000008u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 6, _Internal::start(this), + if (_internal_has_start()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(6, _Internal::start(this), _Internal::start(this).GetCachedSize(), target, stream); } // optional .google.protobuf.Timestamp end = 7 [json_name = "end"]; - if (cached_has_bits & 0x00000010u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 7, _Internal::end(this), + if (_internal_has_end()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(7, _Internal::end(this), _Internal::end(this).GetCachedSize(), target, stream); } // optional int64 limit = 8 [json_name = "limit"]; - if (cached_has_bits & 0x00000020u) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<8>( - stream, this->_internal_limit(), target); + if (_internal_has_limit()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(8, this->_internal_limit(), target); } // optional string source = 9 [json_name = "source"]; - if (cached_has_bits & 0x00000004u) { - const std::string& _s = this->_internal_source(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.GetRobotPartLogsRequest.source"); - target = stream->WriteStringMaybeAliased(9, _s, target); + if (_internal_has_source()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_source().data(), static_cast(this->_internal_source().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.GetRobotPartLogsRequest.source"); + target = stream->WriteStringMaybeAliased( + 9, this->_internal_source(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.GetRobotPartLogsRequest) return target; } -::size_t GetRobotPartLogsRequest::ByteSizeLong() const { +size_t GetRobotPartLogsRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetRobotPartLogsRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated string levels = 5 [json_name = "levels"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_levels().size()); - for (int i = 0, n = _internal_levels().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - _internal_levels().Get(i)); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(levels_.size()); + for (int i = 0, n = levels_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + levels_.Get(i)); } + // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x0000003fu) { // optional string filter = 3 [json_name = "filter"]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_filter()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_filter()); } // optional string page_token = 4 [json_name = "pageToken"]; if (cached_has_bits & 0x00000002u) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_page_token()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_page_token()); } // optional string source = 9 [json_name = "source"]; if (cached_has_bits & 0x00000004u) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_source()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_source()); } // optional .google.protobuf.Timestamp start = 6 [json_name = "start"]; if (cached_has_bits & 0x00000008u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.start_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *start_); } // optional .google.protobuf.Timestamp end = 7 [json_name = "end"]; if (cached_has_bits & 0x00000010u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.end_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *end_); } // optional int64 limit = 8 [json_name = "limit"]; if (cached_has_bits & 0x00000020u) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( - this->_internal_limit()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_limit()); } } // bool errors_only = 2 [json_name = "errorsOnly", deprecated = true]; if (this->_internal_errors_only() != 0) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetRobotPartLogsRequest::_class_data_ = { - GetRobotPartLogsRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetRobotPartLogsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetRobotPartLogsRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetRobotPartLogsRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetRobotPartLogsRequest::GetClassData() const { return &_class_data_; } + +void GetRobotPartLogsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetRobotPartLogsRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetRobotPartLogsRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetRobotPartLogsRequest::MergeFrom(const GetRobotPartLogsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetRobotPartLogsRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_levels()->MergeFrom(from._internal_levels()); + levels_.MergeFrom(from.levels_); if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } - cached_has_bits = from._impl_._has_bits_[0]; + cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x0000003fu) { if (cached_has_bits & 0x00000001u) { - _this->_internal_set_filter(from._internal_filter()); + _internal_set_filter(from._internal_filter()); } if (cached_has_bits & 0x00000002u) { - _this->_internal_set_page_token(from._internal_page_token()); + _internal_set_page_token(from._internal_page_token()); } if (cached_has_bits & 0x00000004u) { - _this->_internal_set_source(from._internal_source()); + _internal_set_source(from._internal_source()); } if (cached_has_bits & 0x00000008u) { - _this->_internal_mutable_start()->::google::protobuf::Timestamp::MergeFrom( - from._internal_start()); + _internal_mutable_start()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_start()); } if (cached_has_bits & 0x00000010u) { - _this->_internal_mutable_end()->::google::protobuf::Timestamp::MergeFrom( - from._internal_end()); + _internal_mutable_end()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_end()); } if (cached_has_bits & 0x00000020u) { - _this->_impl_.limit_ = from._impl_.limit_; + limit_ = from.limit_; } - _this->_impl_._has_bits_[0] |= cached_has_bits; + _has_bits_[0] |= cached_has_bits; } if (from._internal_errors_only() != 0) { - _this->_internal_set_errors_only(from._internal_errors_only()); + _internal_set_errors_only(from._internal_errors_only()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetRobotPartLogsRequest::CopyFrom(const GetRobotPartLogsRequest& from) { @@ -24989,37 +24594,47 @@ void GetRobotPartLogsRequest::CopyFrom(const GetRobotPartLogsRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetRobotPartLogsRequest::IsInitialized() const { +bool GetRobotPartLogsRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetRobotPartLogsRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetRobotPartLogsRequest::InternalSwap(GetRobotPartLogsRequest* PROTOBUF_RESTRICT other) { +void GetRobotPartLogsRequest::InternalSwap(GetRobotPartLogsRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.levels_.InternalSwap(&other->_impl_.levels_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.filter_, &other->_impl_.filter_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.page_token_, &other->_impl_.page_token_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.source_, &other->_impl_.source_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(GetRobotPartLogsRequest, _impl_.errors_only_) - + sizeof(GetRobotPartLogsRequest::_impl_.errors_only_) - - PROTOBUF_FIELD_OFFSET(GetRobotPartLogsRequest, _impl_.start_)>( - reinterpret_cast(&_impl_.start_), - reinterpret_cast(&other->_impl_.start_)); -} - -::google::protobuf::Metadata GetRobotPartLogsRequest::GetMetadata() const { + swap(_has_bits_[0], other->_has_bits_[0]); + levels_.InternalSwap(&other->levels_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &filter_, lhs_arena, + &other->filter_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &page_token_, lhs_arena, + &other->page_token_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &source_, lhs_arena, + &other->source_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GetRobotPartLogsRequest, errors_only_) + + sizeof(GetRobotPartLogsRequest::errors_only_) + - PROTOBUF_FIELD_OFFSET(GetRobotPartLogsRequest, start_)>( + reinterpret_cast(&start_), + reinterpret_cast(&other->start_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetRobotPartLogsRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[81]); } + // =================================================================== class GetRobotPartLogsResponse::_Internal { @@ -25027,189 +24642,199 @@ class GetRobotPartLogsResponse::_Internal { }; void GetRobotPartLogsResponse::clear_logs() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.logs_.Clear(); + logs_.Clear(); } -GetRobotPartLogsResponse::GetRobotPartLogsResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetRobotPartLogsResponse::GetRobotPartLogsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + logs_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.v1.GetRobotPartLogsResponse) } -inline PROTOBUF_NDEBUG_INLINE GetRobotPartLogsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : logs_{visibility, arena, from.logs_}, - next_page_token_(arena, from.next_page_token_), - _cached_size_{0} {} - -GetRobotPartLogsResponse::GetRobotPartLogsResponse( - ::google::protobuf::Arena* arena, - const GetRobotPartLogsResponse& from) - : ::google::protobuf::Message(arena) { - GetRobotPartLogsResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetRobotPartLogsResponse::GetRobotPartLogsResponse(const GetRobotPartLogsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + logs_(from.logs_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + next_page_token_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + next_page_token_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_next_page_token().empty()) { + next_page_token_.Set(from._internal_next_page_token(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetRobotPartLogsResponse) } -inline PROTOBUF_NDEBUG_INLINE GetRobotPartLogsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : logs_{visibility, arena}, - next_page_token_(arena), - _cached_size_{0} {} -inline void GetRobotPartLogsResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetRobotPartLogsResponse::SharedCtor() { +next_page_token_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + next_page_token_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + GetRobotPartLogsResponse::~GetRobotPartLogsResponse() { // @@protoc_insertion_point(destructor:viam.app.v1.GetRobotPartLogsResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetRobotPartLogsResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.next_page_token_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + next_page_token_.Destroy(); } -PROTOBUF_NOINLINE void GetRobotPartLogsResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetRobotPartLogsResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.logs_.Clear(); - _impl_.next_page_token_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void GetRobotPartLogsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* GetRobotPartLogsResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void GetRobotPartLogsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetRobotPartLogsResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + logs_.Clear(); + next_page_token_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetRobotPartLogsResponse::_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) { + // repeated .viam.common.v1.LogEntry logs = 1 [json_name = "logs"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_logs(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + // string next_page_token = 2 [json_name = "nextPageToken"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_next_page_token(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.GetRobotPartLogsResponse.next_page_token")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 60, 2> GetRobotPartLogsResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetRobotPartLogsResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string next_page_token = 2 [json_name = "nextPageToken"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(GetRobotPartLogsResponse, _impl_.next_page_token_)}}, - // repeated .viam.common.v1.LogEntry logs = 1 [json_name = "logs"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetRobotPartLogsResponse, _impl_.logs_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.common.v1.LogEntry logs = 1 [json_name = "logs"]; - {PROTOBUF_FIELD_OFFSET(GetRobotPartLogsResponse, _impl_.logs_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // string next_page_token = 2 [json_name = "nextPageToken"]; - {PROTOBUF_FIELD_OFFSET(GetRobotPartLogsResponse, _impl_.next_page_token_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::common::v1::LogEntry>()}, - }}, {{ - "\44\0\17\0\0\0\0\0" - "viam.app.v1.GetRobotPartLogsResponse" - "next_page_token" - }}, -}; - -::uint8_t* GetRobotPartLogsResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetRobotPartLogsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetRobotPartLogsResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .viam.common.v1.LogEntry logs = 1 [json_name = "logs"]; for (unsigned i = 0, n = static_cast(this->_internal_logs_size()); i < n; i++) { - const auto& repfield = this->_internal_logs().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_logs(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } // string next_page_token = 2 [json_name = "nextPageToken"]; if (!this->_internal_next_page_token().empty()) { - const std::string& _s = this->_internal_next_page_token(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.GetRobotPartLogsResponse.next_page_token"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_next_page_token().data(), static_cast(this->_internal_next_page_token().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.GetRobotPartLogsResponse.next_page_token"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_next_page_token(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.GetRobotPartLogsResponse) return target; } -::size_t GetRobotPartLogsResponse::ByteSizeLong() const { +size_t GetRobotPartLogsResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetRobotPartLogsResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.common.v1.LogEntry logs = 1 [json_name = "logs"]; total_size += 1UL * this->_internal_logs_size(); - for (const auto& msg : this->_internal_logs()) { + for (const auto& msg : this->logs_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // string next_page_token = 2 [json_name = "nextPageToken"]; if (!this->_internal_next_page_token().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_next_page_token()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_next_page_token()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetRobotPartLogsResponse::_class_data_ = { - GetRobotPartLogsResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetRobotPartLogsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetRobotPartLogsResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetRobotPartLogsResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetRobotPartLogsResponse::GetClassData() const { return &_class_data_; } + +void GetRobotPartLogsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetRobotPartLogsResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetRobotPartLogsResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetRobotPartLogsResponse::MergeFrom(const GetRobotPartLogsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetRobotPartLogsResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_logs()->MergeFrom( - from._internal_logs()); + logs_.MergeFrom(from.logs_); if (!from._internal_next_page_token().empty()) { - _this->_internal_set_next_page_token(from._internal_next_page_token()); + _internal_set_next_page_token(from._internal_next_page_token()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetRobotPartLogsResponse::CopyFrom(const GetRobotPartLogsResponse& from) { @@ -25219,254 +24844,274 @@ void GetRobotPartLogsResponse::CopyFrom(const GetRobotPartLogsResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetRobotPartLogsResponse::IsInitialized() const { +bool GetRobotPartLogsResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetRobotPartLogsResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetRobotPartLogsResponse::InternalSwap(GetRobotPartLogsResponse* PROTOBUF_RESTRICT other) { +void GetRobotPartLogsResponse::InternalSwap(GetRobotPartLogsResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.logs_.InternalSwap(&other->_impl_.logs_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.next_page_token_, &other->_impl_.next_page_token_, arena); + logs_.InternalSwap(&other->logs_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &next_page_token_, lhs_arena, + &other->next_page_token_, rhs_arena + ); } -::google::protobuf::Metadata GetRobotPartLogsResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetRobotPartLogsResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[82]); } + // =================================================================== class TailRobotPartLogsRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(TailRobotPartLogsRequest, _impl_._has_bits_); + using HasBits = decltype(std::declval()._has_bits_); static void set_has_filter(HasBits* has_bits) { (*has_bits)[0] |= 1u; } }; -TailRobotPartLogsRequest::TailRobotPartLogsRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +TailRobotPartLogsRequest::TailRobotPartLogsRequest(::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.TailRobotPartLogsRequest) } -inline PROTOBUF_NDEBUG_INLINE TailRobotPartLogsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - id_(arena, from.id_), - filter_(arena, from.filter_) {} - -TailRobotPartLogsRequest::TailRobotPartLogsRequest( - ::google::protobuf::Arena* arena, - const TailRobotPartLogsRequest& from) - : ::google::protobuf::Message(arena) { - TailRobotPartLogsRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.errors_only_ = from._impl_.errors_only_; - +TailRobotPartLogsRequest::TailRobotPartLogsRequest(const TailRobotPartLogsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } + filter_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + filter_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (from._internal_has_filter()) { + filter_.Set(from._internal_filter(), + GetArenaForAllocation()); + } + errors_only_ = from.errors_only_; // @@protoc_insertion_point(copy_constructor:viam.app.v1.TailRobotPartLogsRequest) } -inline PROTOBUF_NDEBUG_INLINE TailRobotPartLogsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - id_(arena), - filter_(arena) {} -inline void TailRobotPartLogsRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.errors_only_ = {}; +inline void TailRobotPartLogsRequest::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +filter_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + filter_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +errors_only_ = false; } + TailRobotPartLogsRequest::~TailRobotPartLogsRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.TailRobotPartLogsRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void TailRobotPartLogsRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.filter_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); + filter_.Destroy(); +} + +void TailRobotPartLogsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void TailRobotPartLogsRequest::Clear() { +void TailRobotPartLogsRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.TailRobotPartLogsRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.id_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; + id_.ClearToEmpty(); + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { - _impl_.filter_.ClearNonDefaultToEmpty(); - } - _impl_.errors_only_ = false; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* TailRobotPartLogsRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + filter_.ClearNonDefaultToEmpty(); + } + errors_only_ = false; + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* TailRobotPartLogsRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.TailRobotPartLogsRequest.id")); + } else + goto handle_unusual; + continue; + // bool errors_only = 2 [json_name = "errorsOnly"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + errors_only_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional string filter = 3 [json_name = "filter"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_filter(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.TailRobotPartLogsRequest.filter")); + } 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: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 53, 2> TailRobotPartLogsRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(TailRobotPartLogsRequest, _impl_._has_bits_), - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_TailRobotPartLogsRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string id = 1 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(TailRobotPartLogsRequest, _impl_.id_)}}, - // bool errors_only = 2 [json_name = "errorsOnly"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(TailRobotPartLogsRequest, _impl_.errors_only_)}}, - // optional string filter = 3 [json_name = "filter"]; - {::_pbi::TcParser::FastUS1, - {26, 0, 0, PROTOBUF_FIELD_OFFSET(TailRobotPartLogsRequest, _impl_.filter_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(TailRobotPartLogsRequest, _impl_.id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // bool errors_only = 2 [json_name = "errorsOnly"]; - {PROTOBUF_FIELD_OFFSET(TailRobotPartLogsRequest, _impl_.errors_only_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // optional string filter = 3 [json_name = "filter"]; - {PROTOBUF_FIELD_OFFSET(TailRobotPartLogsRequest, _impl_.filter_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\44\2\0\6\0\0\0\0" - "viam.app.v1.TailRobotPartLogsRequest" - "id" - "filter" - }}, -}; - -::uint8_t* TailRobotPartLogsRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* TailRobotPartLogsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.TailRobotPartLogsRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.TailRobotPartLogsRequest.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.TailRobotPartLogsRequest.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); } // bool errors_only = 2 [json_name = "errorsOnly"]; if (this->_internal_errors_only() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 2, this->_internal_errors_only(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_errors_only(), target); } - cached_has_bits = _impl_._has_bits_[0]; // optional string filter = 3 [json_name = "filter"]; - if (cached_has_bits & 0x00000001u) { - const std::string& _s = this->_internal_filter(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.TailRobotPartLogsRequest.filter"); - target = stream->WriteStringMaybeAliased(3, _s, target); + if (_internal_has_filter()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_filter().data(), static_cast(this->_internal_filter().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.TailRobotPartLogsRequest.filter"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_filter(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.TailRobotPartLogsRequest) return target; } -::size_t TailRobotPartLogsRequest::ByteSizeLong() const { +size_t TailRobotPartLogsRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.TailRobotPartLogsRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } // optional string filter = 3 [json_name = "filter"]; - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_filter()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_filter()); } // bool errors_only = 2 [json_name = "errorsOnly"]; if (this->_internal_errors_only() != 0) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData TailRobotPartLogsRequest::_class_data_ = { - TailRobotPartLogsRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TailRobotPartLogsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + TailRobotPartLogsRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* TailRobotPartLogsRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TailRobotPartLogsRequest::GetClassData() const { return &_class_data_; } + +void TailRobotPartLogsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void TailRobotPartLogsRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.TailRobotPartLogsRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void TailRobotPartLogsRequest::MergeFrom(const TailRobotPartLogsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.TailRobotPartLogsRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_set_filter(from._internal_filter()); + if (from._internal_has_filter()) { + _internal_set_filter(from._internal_filter()); } if (from._internal_errors_only() != 0) { - _this->_internal_set_errors_only(from._internal_errors_only()); + _internal_set_errors_only(from._internal_errors_only()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void TailRobotPartLogsRequest::CopyFrom(const TailRobotPartLogsRequest& from) { @@ -25476,29 +25121,33 @@ void TailRobotPartLogsRequest::CopyFrom(const TailRobotPartLogsRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool TailRobotPartLogsRequest::IsInitialized() const { +bool TailRobotPartLogsRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* TailRobotPartLogsRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void TailRobotPartLogsRequest::InternalSwap(TailRobotPartLogsRequest* PROTOBUF_RESTRICT other) { +void TailRobotPartLogsRequest::InternalSwap(TailRobotPartLogsRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.filter_, &other->_impl_.filter_, arena); - swap(_impl_.errors_only_, other->_impl_.errors_only_); -} - -::google::protobuf::Metadata TailRobotPartLogsRequest::GetMetadata() const { + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &filter_, lhs_arena, + &other->filter_, rhs_arena + ); + swap(errors_only_, other->errors_only_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata TailRobotPartLogsRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[83]); } + // =================================================================== class TailRobotPartLogsResponse::_Internal { @@ -25506,159 +25155,155 @@ class TailRobotPartLogsResponse::_Internal { }; void TailRobotPartLogsResponse::clear_logs() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.logs_.Clear(); + logs_.Clear(); } -TailRobotPartLogsResponse::TailRobotPartLogsResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +TailRobotPartLogsResponse::TailRobotPartLogsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + logs_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.v1.TailRobotPartLogsResponse) } -inline PROTOBUF_NDEBUG_INLINE TailRobotPartLogsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : logs_{visibility, arena, from.logs_}, - _cached_size_{0} {} - -TailRobotPartLogsResponse::TailRobotPartLogsResponse( - ::google::protobuf::Arena* arena, - const TailRobotPartLogsResponse& from) - : ::google::protobuf::Message(arena) { - TailRobotPartLogsResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +TailRobotPartLogsResponse::TailRobotPartLogsResponse(const TailRobotPartLogsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + logs_(from.logs_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.app.v1.TailRobotPartLogsResponse) } -inline PROTOBUF_NDEBUG_INLINE TailRobotPartLogsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : logs_{visibility, arena}, - _cached_size_{0} {} -inline void TailRobotPartLogsResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void TailRobotPartLogsResponse::SharedCtor() { } + TailRobotPartLogsResponse::~TailRobotPartLogsResponse() { // @@protoc_insertion_point(destructor:viam.app.v1.TailRobotPartLogsResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void TailRobotPartLogsResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void TailRobotPartLogsResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.TailRobotPartLogsResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.logs_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void TailRobotPartLogsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* TailRobotPartLogsResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void TailRobotPartLogsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.TailRobotPartLogsResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + logs_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* TailRobotPartLogsResponse::_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) { + // repeated .viam.common.v1.LogEntry logs = 1 [json_name = "logs"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_logs(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> TailRobotPartLogsResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_TailRobotPartLogsResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.common.v1.LogEntry logs = 1 [json_name = "logs"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(TailRobotPartLogsResponse, _impl_.logs_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.common.v1.LogEntry logs = 1 [json_name = "logs"]; - {PROTOBUF_FIELD_OFFSET(TailRobotPartLogsResponse, _impl_.logs_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::common::v1::LogEntry>()}, - }}, {{ - }}, -}; - -::uint8_t* TailRobotPartLogsResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* TailRobotPartLogsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.TailRobotPartLogsResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .viam.common.v1.LogEntry logs = 1 [json_name = "logs"]; for (unsigned i = 0, n = static_cast(this->_internal_logs_size()); i < n; i++) { - const auto& repfield = this->_internal_logs().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_logs(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.TailRobotPartLogsResponse) return target; } -::size_t TailRobotPartLogsResponse::ByteSizeLong() const { +size_t TailRobotPartLogsResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.TailRobotPartLogsResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.common.v1.LogEntry logs = 1 [json_name = "logs"]; total_size += 1UL * this->_internal_logs_size(); - for (const auto& msg : this->_internal_logs()) { + for (const auto& msg : this->logs_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData TailRobotPartLogsResponse::_class_data_ = { - TailRobotPartLogsResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TailRobotPartLogsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + TailRobotPartLogsResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* TailRobotPartLogsResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TailRobotPartLogsResponse::GetClassData() const { return &_class_data_; } + +void TailRobotPartLogsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void TailRobotPartLogsResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.TailRobotPartLogsResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void TailRobotPartLogsResponse::MergeFrom(const TailRobotPartLogsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.TailRobotPartLogsResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_logs()->MergeFrom( - from._internal_logs()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + logs_.MergeFrom(from.logs_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void TailRobotPartLogsResponse::CopyFrom(const TailRobotPartLogsResponse& from) { @@ -25668,185 +25313,187 @@ void TailRobotPartLogsResponse::CopyFrom(const TailRobotPartLogsResponse& from) MergeFrom(from); } -PROTOBUF_NOINLINE bool TailRobotPartLogsResponse::IsInitialized() const { +bool TailRobotPartLogsResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* TailRobotPartLogsResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void TailRobotPartLogsResponse::InternalSwap(TailRobotPartLogsResponse* PROTOBUF_RESTRICT other) { +void TailRobotPartLogsResponse::InternalSwap(TailRobotPartLogsResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.logs_.InternalSwap(&other->_impl_.logs_); + logs_.InternalSwap(&other->logs_); } -::google::protobuf::Metadata TailRobotPartLogsResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata TailRobotPartLogsResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[84]); } + // =================================================================== class GetRobotPartHistoryRequest::_Internal { public: }; -GetRobotPartHistoryRequest::GetRobotPartHistoryRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetRobotPartHistoryRequest::GetRobotPartHistoryRequest(::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.GetRobotPartHistoryRequest) } -inline PROTOBUF_NDEBUG_INLINE GetRobotPartHistoryRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : id_(arena, from.id_), - _cached_size_{0} {} - -GetRobotPartHistoryRequest::GetRobotPartHistoryRequest( - ::google::protobuf::Arena* arena, - const GetRobotPartHistoryRequest& from) - : ::google::protobuf::Message(arena) { - GetRobotPartHistoryRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetRobotPartHistoryRequest::GetRobotPartHistoryRequest(const GetRobotPartHistoryRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetRobotPartHistoryRequest) } -inline PROTOBUF_NDEBUG_INLINE GetRobotPartHistoryRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : id_(arena), - _cached_size_{0} {} -inline void GetRobotPartHistoryRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetRobotPartHistoryRequest::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + GetRobotPartHistoryRequest::~GetRobotPartHistoryRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.GetRobotPartHistoryRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetRobotPartHistoryRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); } -PROTOBUF_NOINLINE void GetRobotPartHistoryRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetRobotPartHistoryRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void GetRobotPartHistoryRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* GetRobotPartHistoryRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void GetRobotPartHistoryRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetRobotPartHistoryRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetRobotPartHistoryRequest::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.GetRobotPartHistoryRequest.id")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 49, 2> GetRobotPartHistoryRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetRobotPartHistoryRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string id = 1 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetRobotPartHistoryRequest, _impl_.id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(GetRobotPartHistoryRequest, _impl_.id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\46\2\0\0\0\0\0\0" - "viam.app.v1.GetRobotPartHistoryRequest" - "id" - }}, -}; - -::uint8_t* GetRobotPartHistoryRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetRobotPartHistoryRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetRobotPartHistoryRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.GetRobotPartHistoryRequest.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.GetRobotPartHistoryRequest.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.GetRobotPartHistoryRequest) return target; } -::size_t GetRobotPartHistoryRequest::ByteSizeLong() const { +size_t GetRobotPartHistoryRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetRobotPartHistoryRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetRobotPartHistoryRequest::_class_data_ = { - GetRobotPartHistoryRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetRobotPartHistoryRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetRobotPartHistoryRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetRobotPartHistoryRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetRobotPartHistoryRequest::GetClassData() const { return &_class_data_; } + +void GetRobotPartHistoryRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetRobotPartHistoryRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetRobotPartHistoryRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetRobotPartHistoryRequest::MergeFrom(const GetRobotPartHistoryRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetRobotPartHistoryRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetRobotPartHistoryRequest::CopyFrom(const GetRobotPartHistoryRequest& from) { @@ -25856,182 +25503,180 @@ void GetRobotPartHistoryRequest::CopyFrom(const GetRobotPartHistoryRequest& from MergeFrom(from); } -PROTOBUF_NOINLINE bool GetRobotPartHistoryRequest::IsInitialized() const { +bool GetRobotPartHistoryRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetRobotPartHistoryRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetRobotPartHistoryRequest::InternalSwap(GetRobotPartHistoryRequest* PROTOBUF_RESTRICT other) { +void GetRobotPartHistoryRequest::InternalSwap(GetRobotPartHistoryRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); } -::google::protobuf::Metadata GetRobotPartHistoryRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetRobotPartHistoryRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[85]); } + // =================================================================== class GetRobotPartHistoryResponse::_Internal { public: }; -GetRobotPartHistoryResponse::GetRobotPartHistoryResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetRobotPartHistoryResponse::GetRobotPartHistoryResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + history_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.v1.GetRobotPartHistoryResponse) } -inline PROTOBUF_NDEBUG_INLINE GetRobotPartHistoryResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : history_{visibility, arena, from.history_}, - _cached_size_{0} {} - -GetRobotPartHistoryResponse::GetRobotPartHistoryResponse( - ::google::protobuf::Arena* arena, - const GetRobotPartHistoryResponse& from) - : ::google::protobuf::Message(arena) { - GetRobotPartHistoryResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetRobotPartHistoryResponse::GetRobotPartHistoryResponse(const GetRobotPartHistoryResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + history_(from.history_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetRobotPartHistoryResponse) } -inline PROTOBUF_NDEBUG_INLINE GetRobotPartHistoryResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : history_{visibility, arena}, - _cached_size_{0} {} -inline void GetRobotPartHistoryResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetRobotPartHistoryResponse::SharedCtor() { } + GetRobotPartHistoryResponse::~GetRobotPartHistoryResponse() { // @@protoc_insertion_point(destructor:viam.app.v1.GetRobotPartHistoryResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetRobotPartHistoryResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void GetRobotPartHistoryResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetRobotPartHistoryResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.history_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void GetRobotPartHistoryResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* GetRobotPartHistoryResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void GetRobotPartHistoryResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetRobotPartHistoryResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + history_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetRobotPartHistoryResponse::_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) { + // repeated .viam.app.v1.RobotPartHistoryEntry history = 1 [json_name = "history"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_history(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetRobotPartHistoryResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetRobotPartHistoryResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.app.v1.RobotPartHistoryEntry history = 1 [json_name = "history"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetRobotPartHistoryResponse, _impl_.history_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.app.v1.RobotPartHistoryEntry history = 1 [json_name = "history"]; - {PROTOBUF_FIELD_OFFSET(GetRobotPartHistoryResponse, _impl_.history_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::RobotPartHistoryEntry>()}, - }}, {{ - }}, -}; - -::uint8_t* GetRobotPartHistoryResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetRobotPartHistoryResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetRobotPartHistoryResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .viam.app.v1.RobotPartHistoryEntry history = 1 [json_name = "history"]; for (unsigned i = 0, n = static_cast(this->_internal_history_size()); i < n; i++) { - const auto& repfield = this->_internal_history().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_history(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.GetRobotPartHistoryResponse) return target; } -::size_t GetRobotPartHistoryResponse::ByteSizeLong() const { +size_t GetRobotPartHistoryResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetRobotPartHistoryResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.app.v1.RobotPartHistoryEntry history = 1 [json_name = "history"]; total_size += 1UL * this->_internal_history_size(); - for (const auto& msg : this->_internal_history()) { + for (const auto& msg : this->history_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetRobotPartHistoryResponse::_class_data_ = { - GetRobotPartHistoryResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetRobotPartHistoryResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetRobotPartHistoryResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetRobotPartHistoryResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetRobotPartHistoryResponse::GetClassData() const { return &_class_data_; } + +void GetRobotPartHistoryResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetRobotPartHistoryResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetRobotPartHistoryResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetRobotPartHistoryResponse::MergeFrom(const GetRobotPartHistoryResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetRobotPartHistoryResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_history()->MergeFrom( - from._internal_history()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + history_.MergeFrom(from.history_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetRobotPartHistoryResponse::CopyFrom(const GetRobotPartHistoryResponse& from) { @@ -26041,267 +25686,278 @@ void GetRobotPartHistoryResponse::CopyFrom(const GetRobotPartHistoryResponse& fr MergeFrom(from); } -PROTOBUF_NOINLINE bool GetRobotPartHistoryResponse::IsInitialized() const { +bool GetRobotPartHistoryResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetRobotPartHistoryResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetRobotPartHistoryResponse::InternalSwap(GetRobotPartHistoryResponse* PROTOBUF_RESTRICT other) { +void GetRobotPartHistoryResponse::InternalSwap(GetRobotPartHistoryResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.history_.InternalSwap(&other->_impl_.history_); + history_.InternalSwap(&other->history_); } -::google::protobuf::Metadata GetRobotPartHistoryResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetRobotPartHistoryResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[86]); } + // =================================================================== class UpdateRobotPartRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(UpdateRobotPartRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& robot_config(const UpdateRobotPartRequest* msg); - static void set_has_robot_config(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& robot_config(const UpdateRobotPartRequest* msg); }; -const ::google::protobuf::Struct& UpdateRobotPartRequest::_Internal::robot_config(const UpdateRobotPartRequest* msg) { - return *msg->_impl_.robot_config_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +UpdateRobotPartRequest::_Internal::robot_config(const UpdateRobotPartRequest* msg) { + return *msg->robot_config_; } void UpdateRobotPartRequest::clear_robot_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.robot_config_ != nullptr) _impl_.robot_config_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && robot_config_ != nullptr) { + delete robot_config_; + } + robot_config_ = nullptr; } -UpdateRobotPartRequest::UpdateRobotPartRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +UpdateRobotPartRequest::UpdateRobotPartRequest(::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.UpdateRobotPartRequest) } -inline PROTOBUF_NDEBUG_INLINE UpdateRobotPartRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - id_(arena, from.id_), - name_(arena, from.name_) {} - -UpdateRobotPartRequest::UpdateRobotPartRequest( - ::google::protobuf::Arena* arena, - const UpdateRobotPartRequest& from) - : ::google::protobuf::Message(arena) { - UpdateRobotPartRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.robot_config_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.robot_config_) - : nullptr; - +UpdateRobotPartRequest::UpdateRobotPartRequest(const UpdateRobotPartRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } + 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_robot_config()) { + robot_config_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.robot_config_); + } else { + robot_config_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.UpdateRobotPartRequest) } -inline PROTOBUF_NDEBUG_INLINE UpdateRobotPartRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - id_(arena), - name_(arena) {} -inline void UpdateRobotPartRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.robot_config_ = {}; +inline void UpdateRobotPartRequest::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +robot_config_ = nullptr; } + UpdateRobotPartRequest::~UpdateRobotPartRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.UpdateRobotPartRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void UpdateRobotPartRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.name_.Destroy(); - delete _impl_.robot_config_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); + name_.Destroy(); + if (this != internal_default_instance()) delete robot_config_; } -PROTOBUF_NOINLINE void UpdateRobotPartRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.UpdateRobotPartRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.id_.ClearToEmpty(); - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.robot_config_ != nullptr); - _impl_.robot_config_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void UpdateRobotPartRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* UpdateRobotPartRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void UpdateRobotPartRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.UpdateRobotPartRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + id_.ClearToEmpty(); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && robot_config_ != nullptr) { + delete robot_config_; + } + robot_config_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* UpdateRobotPartRequest::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.UpdateRobotPartRequest.id")); + } else + goto handle_unusual; + continue; + // string name = 2 [json_name = "name"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.UpdateRobotPartRequest.name")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct robot_config = 3 [json_name = "robotConfig"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_robot_config(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 1, 49, 2> UpdateRobotPartRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(UpdateRobotPartRequest, _impl_._has_bits_), - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_UpdateRobotPartRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string id = 1 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(UpdateRobotPartRequest, _impl_.id_)}}, - // string name = 2 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(UpdateRobotPartRequest, _impl_.name_)}}, - // .google.protobuf.Struct robot_config = 3 [json_name = "robotConfig"]; - {::_pbi::TcParser::FastMtS1, - {26, 0, 0, PROTOBUF_FIELD_OFFSET(UpdateRobotPartRequest, _impl_.robot_config_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(UpdateRobotPartRequest, _impl_.id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string name = 2 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(UpdateRobotPartRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct robot_config = 3 [json_name = "robotConfig"]; - {PROTOBUF_FIELD_OFFSET(UpdateRobotPartRequest, _impl_.robot_config_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\42\2\4\0\0\0\0\0" - "viam.app.v1.UpdateRobotPartRequest" - "id" - "name" - }}, -}; - -::uint8_t* UpdateRobotPartRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* UpdateRobotPartRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.UpdateRobotPartRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.UpdateRobotPartRequest.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.UpdateRobotPartRequest.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); } // string name = 2 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.UpdateRobotPartRequest.name"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.UpdateRobotPartRequest.name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct robot_config = 3 [json_name = "robotConfig"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::robot_config(this), + if (this->_internal_has_robot_config()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::robot_config(this), _Internal::robot_config(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.UpdateRobotPartRequest) return target; } -::size_t UpdateRobotPartRequest::ByteSizeLong() const { +size_t UpdateRobotPartRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.UpdateRobotPartRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } // string name = 2 [json_name = "name"]; if (!this->_internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct robot_config = 3 [json_name = "robotConfig"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.robot_config_); + if (this->_internal_has_robot_config()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *robot_config_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData UpdateRobotPartRequest::_class_data_ = { - UpdateRobotPartRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UpdateRobotPartRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + UpdateRobotPartRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* UpdateRobotPartRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UpdateRobotPartRequest::GetClassData() const { return &_class_data_; } + +void UpdateRobotPartRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void UpdateRobotPartRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.UpdateRobotPartRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void UpdateRobotPartRequest::MergeFrom(const UpdateRobotPartRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.UpdateRobotPartRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_robot_config()->::google::protobuf::Struct::MergeFrom( - from._internal_robot_config()); + if (from._internal_has_robot_config()) { + _internal_mutable_robot_config()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_robot_config()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void UpdateRobotPartRequest::CopyFrom(const UpdateRobotPartRequest& from) { @@ -26311,208 +25967,194 @@ void UpdateRobotPartRequest::CopyFrom(const UpdateRobotPartRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool UpdateRobotPartRequest::IsInitialized() const { +bool UpdateRobotPartRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* UpdateRobotPartRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void UpdateRobotPartRequest::InternalSwap(UpdateRobotPartRequest* PROTOBUF_RESTRICT other) { +void UpdateRobotPartRequest::InternalSwap(UpdateRobotPartRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.robot_config_, other->_impl_.robot_config_); -} - -::google::protobuf::Metadata UpdateRobotPartRequest::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(robot_config_, other->robot_config_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata UpdateRobotPartRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[87]); } + // =================================================================== class UpdateRobotPartResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(UpdateRobotPartResponse, _impl_._has_bits_); static const ::viam::app::v1::RobotPart& part(const UpdateRobotPartResponse* msg); - static void set_has_part(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::app::v1::RobotPart& UpdateRobotPartResponse::_Internal::part(const UpdateRobotPartResponse* msg) { - return *msg->_impl_.part_; +const ::viam::app::v1::RobotPart& +UpdateRobotPartResponse::_Internal::part(const UpdateRobotPartResponse* msg) { + return *msg->part_; } -UpdateRobotPartResponse::UpdateRobotPartResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +UpdateRobotPartResponse::UpdateRobotPartResponse(::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.UpdateRobotPartResponse) } -inline PROTOBUF_NDEBUG_INLINE UpdateRobotPartResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -UpdateRobotPartResponse::UpdateRobotPartResponse( - ::google::protobuf::Arena* arena, - const UpdateRobotPartResponse& from) - : ::google::protobuf::Message(arena) { - UpdateRobotPartResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.part_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::app::v1::RobotPart>(arena, *from._impl_.part_) - : nullptr; - +UpdateRobotPartResponse::UpdateRobotPartResponse(const UpdateRobotPartResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_part()) { + part_ = new ::viam::app::v1::RobotPart(*from.part_); + } else { + part_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.UpdateRobotPartResponse) } -inline PROTOBUF_NDEBUG_INLINE UpdateRobotPartResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void UpdateRobotPartResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.part_ = {}; +inline void UpdateRobotPartResponse::SharedCtor() { +part_ = nullptr; } + UpdateRobotPartResponse::~UpdateRobotPartResponse() { // @@protoc_insertion_point(destructor:viam.app.v1.UpdateRobotPartResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void UpdateRobotPartResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.part_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete part_; } -PROTOBUF_NOINLINE void UpdateRobotPartResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.UpdateRobotPartResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.part_ != nullptr); - _impl_.part_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void UpdateRobotPartResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* UpdateRobotPartResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void UpdateRobotPartResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.UpdateRobotPartResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && part_ != nullptr) { + delete part_; + } + part_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* UpdateRobotPartResponse::_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.app.v1.RobotPart part = 1 [json_name = "part"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_part(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> UpdateRobotPartResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(UpdateRobotPartResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_UpdateRobotPartResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.app.v1.RobotPart part = 1 [json_name = "part"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(UpdateRobotPartResponse, _impl_.part_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.app.v1.RobotPart part = 1 [json_name = "part"]; - {PROTOBUF_FIELD_OFFSET(UpdateRobotPartResponse, _impl_.part_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::RobotPart>()}, - }}, {{ - }}, -}; - -::uint8_t* UpdateRobotPartResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* UpdateRobotPartResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.UpdateRobotPartResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.app.v1.RobotPart part = 1 [json_name = "part"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::part(this), + if (this->_internal_has_part()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::part(this), _Internal::part(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.UpdateRobotPartResponse) return target; } -::size_t UpdateRobotPartResponse::ByteSizeLong() const { +size_t UpdateRobotPartResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.UpdateRobotPartResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .viam.app.v1.RobotPart part = 1 [json_name = "part"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.part_); + if (this->_internal_has_part()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *part_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData UpdateRobotPartResponse::_class_data_ = { - UpdateRobotPartResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UpdateRobotPartResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + UpdateRobotPartResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* UpdateRobotPartResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UpdateRobotPartResponse::GetClassData() const { return &_class_data_; } + +void UpdateRobotPartResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void UpdateRobotPartResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.UpdateRobotPartResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void UpdateRobotPartResponse::MergeFrom(const UpdateRobotPartResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.UpdateRobotPartResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_part()->::viam::app::v1::RobotPart::MergeFrom( - from._internal_part()); + if (from._internal_has_part()) { + _internal_mutable_part()->::viam::app::v1::RobotPart::MergeFrom(from._internal_part()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void UpdateRobotPartResponse::CopyFrom(const UpdateRobotPartResponse& from) { @@ -26522,214 +26164,231 @@ void UpdateRobotPartResponse::CopyFrom(const UpdateRobotPartResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool UpdateRobotPartResponse::IsInitialized() const { +bool UpdateRobotPartResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* UpdateRobotPartResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void UpdateRobotPartResponse::InternalSwap(UpdateRobotPartResponse* PROTOBUF_RESTRICT other) { +void UpdateRobotPartResponse::InternalSwap(UpdateRobotPartResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.part_, other->_impl_.part_); + swap(part_, other->part_); } -::google::protobuf::Metadata UpdateRobotPartResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata UpdateRobotPartResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[88]); } + // =================================================================== class NewRobotPartRequest::_Internal { public: }; -NewRobotPartRequest::NewRobotPartRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +NewRobotPartRequest::NewRobotPartRequest(::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.NewRobotPartRequest) } -inline PROTOBUF_NDEBUG_INLINE NewRobotPartRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : robot_id_(arena, from.robot_id_), - part_name_(arena, from.part_name_), - _cached_size_{0} {} - -NewRobotPartRequest::NewRobotPartRequest( - ::google::protobuf::Arena* arena, - const NewRobotPartRequest& from) - : ::google::protobuf::Message(arena) { - NewRobotPartRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +NewRobotPartRequest::NewRobotPartRequest(const NewRobotPartRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + robot_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + robot_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_robot_id().empty()) { + robot_id_.Set(from._internal_robot_id(), + GetArenaForAllocation()); + } + part_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + part_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_part_name().empty()) { + part_name_.Set(from._internal_part_name(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.NewRobotPartRequest) } -inline PROTOBUF_NDEBUG_INLINE NewRobotPartRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : robot_id_(arena), - part_name_(arena), - _cached_size_{0} {} -inline void NewRobotPartRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void NewRobotPartRequest::SharedCtor() { +robot_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + robot_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +part_name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + part_name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + NewRobotPartRequest::~NewRobotPartRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.NewRobotPartRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void NewRobotPartRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.robot_id_.Destroy(); - _impl_.part_name_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + robot_id_.Destroy(); + part_name_.Destroy(); } -PROTOBUF_NOINLINE void NewRobotPartRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.NewRobotPartRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.robot_id_.ClearToEmpty(); - _impl_.part_name_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void NewRobotPartRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* NewRobotPartRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void NewRobotPartRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.NewRobotPartRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + robot_id_.ClearToEmpty(); + part_name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* NewRobotPartRequest::_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 robot_id = 1 [json_name = "robotId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_robot_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.NewRobotPartRequest.robot_id")); + } else + goto handle_unusual; + continue; + // string part_name = 2 [json_name = "partName"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_part_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.NewRobotPartRequest.part_name")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 57, 2> NewRobotPartRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_NewRobotPartRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string part_name = 2 [json_name = "partName"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(NewRobotPartRequest, _impl_.part_name_)}}, - // string robot_id = 1 [json_name = "robotId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(NewRobotPartRequest, _impl_.robot_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string robot_id = 1 [json_name = "robotId"]; - {PROTOBUF_FIELD_OFFSET(NewRobotPartRequest, _impl_.robot_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string part_name = 2 [json_name = "partName"]; - {PROTOBUF_FIELD_OFFSET(NewRobotPartRequest, _impl_.part_name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\37\10\11\0\0\0\0\0" - "viam.app.v1.NewRobotPartRequest" - "robot_id" - "part_name" - }}, -}; - -::uint8_t* NewRobotPartRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* NewRobotPartRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.NewRobotPartRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string robot_id = 1 [json_name = "robotId"]; if (!this->_internal_robot_id().empty()) { - const std::string& _s = this->_internal_robot_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.NewRobotPartRequest.robot_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_robot_id().data(), static_cast(this->_internal_robot_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.NewRobotPartRequest.robot_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_robot_id(), target); } // string part_name = 2 [json_name = "partName"]; if (!this->_internal_part_name().empty()) { - const std::string& _s = this->_internal_part_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.NewRobotPartRequest.part_name"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_part_name().data(), static_cast(this->_internal_part_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.NewRobotPartRequest.part_name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_part_name(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.NewRobotPartRequest) return target; } -::size_t NewRobotPartRequest::ByteSizeLong() const { +size_t NewRobotPartRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.NewRobotPartRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string robot_id = 1 [json_name = "robotId"]; if (!this->_internal_robot_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_robot_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_robot_id()); } // string part_name = 2 [json_name = "partName"]; if (!this->_internal_part_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_part_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_part_name()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData NewRobotPartRequest::_class_data_ = { - NewRobotPartRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NewRobotPartRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + NewRobotPartRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* NewRobotPartRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NewRobotPartRequest::GetClassData() const { return &_class_data_; } + +void NewRobotPartRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void NewRobotPartRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.NewRobotPartRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void NewRobotPartRequest::MergeFrom(const NewRobotPartRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.NewRobotPartRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_robot_id().empty()) { - _this->_internal_set_robot_id(from._internal_robot_id()); + _internal_set_robot_id(from._internal_robot_id()); } if (!from._internal_part_name().empty()) { - _this->_internal_set_part_name(from._internal_part_name()); + _internal_set_part_name(from._internal_part_name()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void NewRobotPartRequest::CopyFrom(const NewRobotPartRequest& from) { @@ -26739,188 +26398,196 @@ void NewRobotPartRequest::CopyFrom(const NewRobotPartRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool NewRobotPartRequest::IsInitialized() const { +bool NewRobotPartRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* NewRobotPartRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void NewRobotPartRequest::InternalSwap(NewRobotPartRequest* PROTOBUF_RESTRICT other) { +void NewRobotPartRequest::InternalSwap(NewRobotPartRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.robot_id_, &other->_impl_.robot_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.part_name_, &other->_impl_.part_name_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &robot_id_, lhs_arena, + &other->robot_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &part_name_, lhs_arena, + &other->part_name_, rhs_arena + ); } -::google::protobuf::Metadata NewRobotPartRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata NewRobotPartRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[89]); } + // =================================================================== class NewRobotPartResponse::_Internal { public: }; -NewRobotPartResponse::NewRobotPartResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +NewRobotPartResponse::NewRobotPartResponse(::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.NewRobotPartResponse) } -inline PROTOBUF_NDEBUG_INLINE NewRobotPartResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : part_id_(arena, from.part_id_), - _cached_size_{0} {} - -NewRobotPartResponse::NewRobotPartResponse( - ::google::protobuf::Arena* arena, - const NewRobotPartResponse& from) - : ::google::protobuf::Message(arena) { - NewRobotPartResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +NewRobotPartResponse::NewRobotPartResponse(const NewRobotPartResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + part_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + part_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_part_id().empty()) { + part_id_.Set(from._internal_part_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.NewRobotPartResponse) } -inline PROTOBUF_NDEBUG_INLINE NewRobotPartResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : part_id_(arena), - _cached_size_{0} {} -inline void NewRobotPartResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void NewRobotPartResponse::SharedCtor() { +part_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + part_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + NewRobotPartResponse::~NewRobotPartResponse() { // @@protoc_insertion_point(destructor:viam.app.v1.NewRobotPartResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void NewRobotPartResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.part_id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + part_id_.Destroy(); } -PROTOBUF_NOINLINE void NewRobotPartResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.NewRobotPartResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.part_id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void NewRobotPartResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* NewRobotPartResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void NewRobotPartResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.NewRobotPartResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + part_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* NewRobotPartResponse::_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 part_id = 1 [json_name = "partId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_part_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.NewRobotPartResponse.part_id")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 48, 2> NewRobotPartResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_NewRobotPartResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string part_id = 1 [json_name = "partId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(NewRobotPartResponse, _impl_.part_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string part_id = 1 [json_name = "partId"]; - {PROTOBUF_FIELD_OFFSET(NewRobotPartResponse, _impl_.part_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\40\7\0\0\0\0\0\0" - "viam.app.v1.NewRobotPartResponse" - "part_id" - }}, -}; - -::uint8_t* NewRobotPartResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* NewRobotPartResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.NewRobotPartResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string part_id = 1 [json_name = "partId"]; if (!this->_internal_part_id().empty()) { - const std::string& _s = this->_internal_part_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.NewRobotPartResponse.part_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_part_id().data(), static_cast(this->_internal_part_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.NewRobotPartResponse.part_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_part_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.NewRobotPartResponse) return target; } -::size_t NewRobotPartResponse::ByteSizeLong() const { +size_t NewRobotPartResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.NewRobotPartResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string part_id = 1 [json_name = "partId"]; if (!this->_internal_part_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_part_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_part_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData NewRobotPartResponse::_class_data_ = { - NewRobotPartResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NewRobotPartResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + NewRobotPartResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* NewRobotPartResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NewRobotPartResponse::GetClassData() const { return &_class_data_; } + +void NewRobotPartResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void NewRobotPartResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.NewRobotPartResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void NewRobotPartResponse::MergeFrom(const NewRobotPartResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.NewRobotPartResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_part_id().empty()) { - _this->_internal_set_part_id(from._internal_part_id()); + _internal_set_part_id(from._internal_part_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void NewRobotPartResponse::CopyFrom(const NewRobotPartResponse& from) { @@ -26930,187 +26597,192 @@ void NewRobotPartResponse::CopyFrom(const NewRobotPartResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool NewRobotPartResponse::IsInitialized() const { +bool NewRobotPartResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* NewRobotPartResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void NewRobotPartResponse::InternalSwap(NewRobotPartResponse* PROTOBUF_RESTRICT other) { +void NewRobotPartResponse::InternalSwap(NewRobotPartResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.part_id_, &other->_impl_.part_id_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &part_id_, lhs_arena, + &other->part_id_, rhs_arena + ); } -::google::protobuf::Metadata NewRobotPartResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata NewRobotPartResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[90]); } + // =================================================================== class DeleteRobotPartRequest::_Internal { public: }; -DeleteRobotPartRequest::DeleteRobotPartRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +DeleteRobotPartRequest::DeleteRobotPartRequest(::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.DeleteRobotPartRequest) } -inline PROTOBUF_NDEBUG_INLINE DeleteRobotPartRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : part_id_(arena, from.part_id_), - _cached_size_{0} {} - -DeleteRobotPartRequest::DeleteRobotPartRequest( - ::google::protobuf::Arena* arena, - const DeleteRobotPartRequest& from) - : ::google::protobuf::Message(arena) { - DeleteRobotPartRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +DeleteRobotPartRequest::DeleteRobotPartRequest(const DeleteRobotPartRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + part_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + part_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_part_id().empty()) { + part_id_.Set(from._internal_part_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.DeleteRobotPartRequest) } -inline PROTOBUF_NDEBUG_INLINE DeleteRobotPartRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : part_id_(arena), - _cached_size_{0} {} -inline void DeleteRobotPartRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void DeleteRobotPartRequest::SharedCtor() { +part_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + part_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + DeleteRobotPartRequest::~DeleteRobotPartRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.DeleteRobotPartRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void DeleteRobotPartRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.part_id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + part_id_.Destroy(); } -PROTOBUF_NOINLINE void DeleteRobotPartRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.DeleteRobotPartRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.part_id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void DeleteRobotPartRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* DeleteRobotPartRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void DeleteRobotPartRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.DeleteRobotPartRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + part_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DeleteRobotPartRequest::_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 part_id = 1 [json_name = "partId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_part_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.DeleteRobotPartRequest.part_id")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 50, 2> DeleteRobotPartRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_DeleteRobotPartRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string part_id = 1 [json_name = "partId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(DeleteRobotPartRequest, _impl_.part_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string part_id = 1 [json_name = "partId"]; - {PROTOBUF_FIELD_OFFSET(DeleteRobotPartRequest, _impl_.part_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\42\7\0\0\0\0\0\0" - "viam.app.v1.DeleteRobotPartRequest" - "part_id" - }}, -}; - -::uint8_t* DeleteRobotPartRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* DeleteRobotPartRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.DeleteRobotPartRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string part_id = 1 [json_name = "partId"]; if (!this->_internal_part_id().empty()) { - const std::string& _s = this->_internal_part_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.DeleteRobotPartRequest.part_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_part_id().data(), static_cast(this->_internal_part_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.DeleteRobotPartRequest.part_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_part_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.DeleteRobotPartRequest) return target; } -::size_t DeleteRobotPartRequest::ByteSizeLong() const { +size_t DeleteRobotPartRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.DeleteRobotPartRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string part_id = 1 [json_name = "partId"]; if (!this->_internal_part_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_part_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_part_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData DeleteRobotPartRequest::_class_data_ = { - DeleteRobotPartRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeleteRobotPartRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + DeleteRobotPartRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* DeleteRobotPartRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeleteRobotPartRequest::GetClassData() const { return &_class_data_; } + +void DeleteRobotPartRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void DeleteRobotPartRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.DeleteRobotPartRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void DeleteRobotPartRequest::MergeFrom(const DeleteRobotPartRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.DeleteRobotPartRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_part_id().empty()) { - _this->_internal_set_part_id(from._internal_part_id()); + _internal_set_part_id(from._internal_part_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void DeleteRobotPartRequest::CopyFrom(const DeleteRobotPartRequest& from) { @@ -27120,187 +26792,192 @@ void DeleteRobotPartRequest::CopyFrom(const DeleteRobotPartRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool DeleteRobotPartRequest::IsInitialized() const { +bool DeleteRobotPartRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* DeleteRobotPartRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void DeleteRobotPartRequest::InternalSwap(DeleteRobotPartRequest* PROTOBUF_RESTRICT other) { +void DeleteRobotPartRequest::InternalSwap(DeleteRobotPartRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.part_id_, &other->_impl_.part_id_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &part_id_, lhs_arena, + &other->part_id_, rhs_arena + ); } -::google::protobuf::Metadata DeleteRobotPartRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata DeleteRobotPartRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[91]); } + // =================================================================== class GetRobotAPIKeysRequest::_Internal { public: }; -GetRobotAPIKeysRequest::GetRobotAPIKeysRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetRobotAPIKeysRequest::GetRobotAPIKeysRequest(::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.GetRobotAPIKeysRequest) } -inline PROTOBUF_NDEBUG_INLINE GetRobotAPIKeysRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : robot_id_(arena, from.robot_id_), - _cached_size_{0} {} - -GetRobotAPIKeysRequest::GetRobotAPIKeysRequest( - ::google::protobuf::Arena* arena, - const GetRobotAPIKeysRequest& from) - : ::google::protobuf::Message(arena) { - GetRobotAPIKeysRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetRobotAPIKeysRequest::GetRobotAPIKeysRequest(const GetRobotAPIKeysRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + robot_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + robot_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_robot_id().empty()) { + robot_id_.Set(from._internal_robot_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetRobotAPIKeysRequest) } -inline PROTOBUF_NDEBUG_INLINE GetRobotAPIKeysRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : robot_id_(arena), - _cached_size_{0} {} -inline void GetRobotAPIKeysRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetRobotAPIKeysRequest::SharedCtor() { +robot_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + robot_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + GetRobotAPIKeysRequest::~GetRobotAPIKeysRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.GetRobotAPIKeysRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetRobotAPIKeysRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.robot_id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + robot_id_.Destroy(); } -PROTOBUF_NOINLINE void GetRobotAPIKeysRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetRobotAPIKeysRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.robot_id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void GetRobotAPIKeysRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* GetRobotAPIKeysRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void GetRobotAPIKeysRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetRobotAPIKeysRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + robot_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetRobotAPIKeysRequest::_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 robot_id = 1 [json_name = "robotId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_robot_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.GetRobotAPIKeysRequest.robot_id")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 51, 2> GetRobotAPIKeysRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetRobotAPIKeysRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string robot_id = 1 [json_name = "robotId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetRobotAPIKeysRequest, _impl_.robot_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string robot_id = 1 [json_name = "robotId"]; - {PROTOBUF_FIELD_OFFSET(GetRobotAPIKeysRequest, _impl_.robot_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\42\10\0\0\0\0\0\0" - "viam.app.v1.GetRobotAPIKeysRequest" - "robot_id" - }}, -}; - -::uint8_t* GetRobotAPIKeysRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetRobotAPIKeysRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetRobotAPIKeysRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string robot_id = 1 [json_name = "robotId"]; if (!this->_internal_robot_id().empty()) { - const std::string& _s = this->_internal_robot_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.GetRobotAPIKeysRequest.robot_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_robot_id().data(), static_cast(this->_internal_robot_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.GetRobotAPIKeysRequest.robot_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_robot_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.GetRobotAPIKeysRequest) return target; } -::size_t GetRobotAPIKeysRequest::ByteSizeLong() const { +size_t GetRobotAPIKeysRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetRobotAPIKeysRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string robot_id = 1 [json_name = "robotId"]; if (!this->_internal_robot_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_robot_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_robot_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetRobotAPIKeysRequest::_class_data_ = { - GetRobotAPIKeysRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetRobotAPIKeysRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetRobotAPIKeysRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetRobotAPIKeysRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetRobotAPIKeysRequest::GetClassData() const { return &_class_data_; } + +void GetRobotAPIKeysRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetRobotAPIKeysRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetRobotAPIKeysRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetRobotAPIKeysRequest::MergeFrom(const GetRobotAPIKeysRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetRobotAPIKeysRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_robot_id().empty()) { - _this->_internal_set_robot_id(from._internal_robot_id()); + _internal_set_robot_id(from._internal_robot_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetRobotAPIKeysRequest::CopyFrom(const GetRobotAPIKeysRequest& from) { @@ -27310,296 +26987,327 @@ void GetRobotAPIKeysRequest::CopyFrom(const GetRobotAPIKeysRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetRobotAPIKeysRequest::IsInitialized() const { +bool GetRobotAPIKeysRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetRobotAPIKeysRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetRobotAPIKeysRequest::InternalSwap(GetRobotAPIKeysRequest* PROTOBUF_RESTRICT other) { +void GetRobotAPIKeysRequest::InternalSwap(GetRobotAPIKeysRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.robot_id_, &other->_impl_.robot_id_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &robot_id_, lhs_arena, + &other->robot_id_, rhs_arena + ); } -::google::protobuf::Metadata GetRobotAPIKeysRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetRobotAPIKeysRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[92]); } + // =================================================================== class APIKey::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(APIKey, _impl_._has_bits_); - static const ::google::protobuf::Timestamp& created_on(const APIKey* msg); - static void set_has_created_on(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& created_on(const APIKey* msg); }; -const ::google::protobuf::Timestamp& APIKey::_Internal::created_on(const APIKey* msg) { - return *msg->_impl_.created_on_; +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +APIKey::_Internal::created_on(const APIKey* msg) { + return *msg->created_on_; } void APIKey::clear_created_on() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.created_on_ != nullptr) _impl_.created_on_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && created_on_ != nullptr) { + delete created_on_; + } + created_on_ = nullptr; } -APIKey::APIKey(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +APIKey::APIKey(::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.APIKey) } -inline PROTOBUF_NDEBUG_INLINE APIKey::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - id_(arena, from.id_), - key_(arena, from.key_), - name_(arena, from.name_) {} - -APIKey::APIKey( - ::google::protobuf::Arena* arena, - const APIKey& from) - : ::google::protobuf::Message(arena) { - APIKey* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.created_on_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.created_on_) - : nullptr; - +APIKey::APIKey(const APIKey& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } + key_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + key_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_key().empty()) { + key_.Set(from._internal_key(), + GetArenaForAllocation()); + } + 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_created_on()) { + created_on_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from.created_on_); + } else { + created_on_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.APIKey) } -inline PROTOBUF_NDEBUG_INLINE APIKey::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - id_(arena), - key_(arena), - name_(arena) {} -inline void APIKey::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.created_on_ = {}; +inline void APIKey::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +key_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + key_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +created_on_ = nullptr; } + APIKey::~APIKey() { // @@protoc_insertion_point(destructor:viam.app.v1.APIKey) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void APIKey::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.key_.Destroy(); - _impl_.name_.Destroy(); - delete _impl_.created_on_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); + key_.Destroy(); + name_.Destroy(); + if (this != internal_default_instance()) delete created_on_; } -PROTOBUF_NOINLINE void APIKey::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.APIKey) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.id_.ClearToEmpty(); - _impl_.key_.ClearToEmpty(); - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.created_on_ != nullptr); - _impl_.created_on_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void APIKey::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* APIKey::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void APIKey::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.APIKey) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + id_.ClearToEmpty(); + key_.ClearToEmpty(); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && created_on_ != nullptr) { + delete created_on_; + } + created_on_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* APIKey::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.APIKey.id")); + } else + goto handle_unusual; + continue; + // string key = 2 [json_name = "key"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_key(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.APIKey.key")); + } else + goto handle_unusual; + continue; + // string name = 3 [json_name = "name"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.APIKey.name")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp created_on = 4 [json_name = "createdOn"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_created_on(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 1, 36, 2> APIKey::_table_ = { - { - PROTOBUF_FIELD_OFFSET(APIKey, _impl_._has_bits_), - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_APIKey_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .google.protobuf.Timestamp created_on = 4 [json_name = "createdOn"]; - {::_pbi::TcParser::FastMtS1, - {34, 0, 0, PROTOBUF_FIELD_OFFSET(APIKey, _impl_.created_on_)}}, - // string id = 1 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(APIKey, _impl_.id_)}}, - // string key = 2 [json_name = "key"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(APIKey, _impl_.key_)}}, - // string name = 3 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(APIKey, _impl_.name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(APIKey, _impl_.id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string key = 2 [json_name = "key"]; - {PROTOBUF_FIELD_OFFSET(APIKey, _impl_.key_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string name = 3 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(APIKey, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Timestamp created_on = 4 [json_name = "createdOn"]; - {PROTOBUF_FIELD_OFFSET(APIKey, _impl_.created_on_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, - }}, {{ - "\22\2\3\4\0\0\0\0" - "viam.app.v1.APIKey" - "id" - "key" - "name" - }}, -}; - -::uint8_t* APIKey::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* APIKey::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.APIKey) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.APIKey.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.APIKey.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); } // string key = 2 [json_name = "key"]; if (!this->_internal_key().empty()) { - const std::string& _s = this->_internal_key(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.APIKey.key"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_key().data(), static_cast(this->_internal_key().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.APIKey.key"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_key(), target); } // string name = 3 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.APIKey.name"); - target = stream->WriteStringMaybeAliased(3, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.APIKey.name"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Timestamp created_on = 4 [json_name = "createdOn"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, _Internal::created_on(this), + if (this->_internal_has_created_on()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::created_on(this), _Internal::created_on(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.APIKey) return target; } -::size_t APIKey::ByteSizeLong() const { +size_t APIKey::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.APIKey) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } // string key = 2 [json_name = "key"]; if (!this->_internal_key().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_key()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_key()); } // string name = 3 [json_name = "name"]; if (!this->_internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Timestamp created_on = 4 [json_name = "createdOn"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.created_on_); + if (this->_internal_has_created_on()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *created_on_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData APIKey::_class_data_ = { - APIKey::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData APIKey::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + APIKey::MergeImpl }; -const ::google::protobuf::Message::ClassData* APIKey::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*APIKey::GetClassData() const { return &_class_data_; } + +void APIKey::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void APIKey::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.APIKey) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void APIKey::MergeFrom(const APIKey& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.APIKey) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } if (!from._internal_key().empty()) { - _this->_internal_set_key(from._internal_key()); + _internal_set_key(from._internal_key()); } if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_created_on()->::google::protobuf::Timestamp::MergeFrom( - from._internal_created_on()); + if (from._internal_has_created_on()) { + _internal_mutable_created_on()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_created_on()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void APIKey::CopyFrom(const APIKey& from) { @@ -27609,186 +27317,189 @@ void APIKey::CopyFrom(const APIKey& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool APIKey::IsInitialized() const { +bool APIKey::IsInitialized() const { return true; } -::_pbi::CachedSize* APIKey::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void APIKey::InternalSwap(APIKey* PROTOBUF_RESTRICT other) { +void APIKey::InternalSwap(APIKey* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.key_, &other->_impl_.key_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.created_on_, other->_impl_.created_on_); -} - -::google::protobuf::Metadata APIKey::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &key_, lhs_arena, + &other->key_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(created_on_, other->created_on_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata APIKey::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[93]); } + // =================================================================== class GetRobotAPIKeysResponse::_Internal { public: }; -GetRobotAPIKeysResponse::GetRobotAPIKeysResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetRobotAPIKeysResponse::GetRobotAPIKeysResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + api_keys_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.v1.GetRobotAPIKeysResponse) } -inline PROTOBUF_NDEBUG_INLINE GetRobotAPIKeysResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : api_keys_{visibility, arena, from.api_keys_}, - _cached_size_{0} {} - -GetRobotAPIKeysResponse::GetRobotAPIKeysResponse( - ::google::protobuf::Arena* arena, - const GetRobotAPIKeysResponse& from) - : ::google::protobuf::Message(arena) { - GetRobotAPIKeysResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetRobotAPIKeysResponse::GetRobotAPIKeysResponse(const GetRobotAPIKeysResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + api_keys_(from.api_keys_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetRobotAPIKeysResponse) } -inline PROTOBUF_NDEBUG_INLINE GetRobotAPIKeysResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : api_keys_{visibility, arena}, - _cached_size_{0} {} -inline void GetRobotAPIKeysResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetRobotAPIKeysResponse::SharedCtor() { } + GetRobotAPIKeysResponse::~GetRobotAPIKeysResponse() { // @@protoc_insertion_point(destructor:viam.app.v1.GetRobotAPIKeysResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetRobotAPIKeysResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void GetRobotAPIKeysResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetRobotAPIKeysResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.api_keys_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void GetRobotAPIKeysResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* GetRobotAPIKeysResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void GetRobotAPIKeysResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetRobotAPIKeysResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + api_keys_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetRobotAPIKeysResponse::_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) { + // repeated .viam.app.v1.APIKeyWithAuthorizations api_keys = 1 [json_name = "apiKeys"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_api_keys(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetRobotAPIKeysResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetRobotAPIKeysResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.app.v1.APIKeyWithAuthorizations api_keys = 1 [json_name = "apiKeys"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetRobotAPIKeysResponse, _impl_.api_keys_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.app.v1.APIKeyWithAuthorizations api_keys = 1 [json_name = "apiKeys"]; - {PROTOBUF_FIELD_OFFSET(GetRobotAPIKeysResponse, _impl_.api_keys_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::APIKeyWithAuthorizations>()}, - }}, {{ - }}, -}; - -::uint8_t* GetRobotAPIKeysResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetRobotAPIKeysResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetRobotAPIKeysResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .viam.app.v1.APIKeyWithAuthorizations api_keys = 1 [json_name = "apiKeys"]; for (unsigned i = 0, n = static_cast(this->_internal_api_keys_size()); i < n; i++) { - const auto& repfield = this->_internal_api_keys().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_api_keys(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.GetRobotAPIKeysResponse) return target; } -::size_t GetRobotAPIKeysResponse::ByteSizeLong() const { +size_t GetRobotAPIKeysResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetRobotAPIKeysResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.app.v1.APIKeyWithAuthorizations api_keys = 1 [json_name = "apiKeys"]; total_size += 1UL * this->_internal_api_keys_size(); - for (const auto& msg : this->_internal_api_keys()) { + for (const auto& msg : this->api_keys_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetRobotAPIKeysResponse::_class_data_ = { - GetRobotAPIKeysResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetRobotAPIKeysResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetRobotAPIKeysResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetRobotAPIKeysResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetRobotAPIKeysResponse::GetClassData() const { return &_class_data_; } + +void GetRobotAPIKeysResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetRobotAPIKeysResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetRobotAPIKeysResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetRobotAPIKeysResponse::MergeFrom(const GetRobotAPIKeysResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetRobotAPIKeysResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_api_keys()->MergeFrom( - from._internal_api_keys()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + api_keys_.MergeFrom(from.api_keys_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetRobotAPIKeysResponse::CopyFrom(const GetRobotAPIKeysResponse& from) { @@ -27798,43 +27509,36 @@ void GetRobotAPIKeysResponse::CopyFrom(const GetRobotAPIKeysResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetRobotAPIKeysResponse::IsInitialized() const { +bool GetRobotAPIKeysResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetRobotAPIKeysResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetRobotAPIKeysResponse::InternalSwap(GetRobotAPIKeysResponse* PROTOBUF_RESTRICT other) { +void GetRobotAPIKeysResponse::InternalSwap(GetRobotAPIKeysResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.api_keys_.InternalSwap(&other->_impl_.api_keys_); + api_keys_.InternalSwap(&other->api_keys_); } -::google::protobuf::Metadata GetRobotAPIKeysResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetRobotAPIKeysResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[94]); } + // =================================================================== class DeleteRobotPartResponse::_Internal { public: }; -DeleteRobotPartResponse::DeleteRobotPartResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +DeleteRobotPartResponse::DeleteRobotPartResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.app.v1.DeleteRobotPartResponse) } -DeleteRobotPartResponse::DeleteRobotPartResponse( - ::google::protobuf::Arena* arena, - const DeleteRobotPartResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - DeleteRobotPartResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +DeleteRobotPartResponse::DeleteRobotPartResponse(const DeleteRobotPartResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.app.v1.DeleteRobotPartResponse) } @@ -27842,535 +27546,582 @@ DeleteRobotPartResponse::DeleteRobotPartResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeleteRobotPartResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeleteRobotPartResponse::GetClassData() const { return &_class_data_; } + + + -::google::protobuf::Metadata DeleteRobotPartResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata DeleteRobotPartResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[95]); } + // =================================================================== class Fragment::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Fragment, _impl_._has_bits_); - static const ::google::protobuf::Struct& fragment(const Fragment* msg); - static void set_has_fragment(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::google::protobuf::Timestamp& created_on(const Fragment* msg); - static void set_has_created_on(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static const ::google::protobuf::Timestamp& last_updated(const Fragment* msg); - static void set_has_last_updated(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& fragment(const Fragment* msg); + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& created_on(const Fragment* msg); + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& last_updated(const Fragment* msg); }; -const ::google::protobuf::Struct& Fragment::_Internal::fragment(const Fragment* msg) { - return *msg->_impl_.fragment_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +Fragment::_Internal::fragment(const Fragment* msg) { + return *msg->fragment_; } -const ::google::protobuf::Timestamp& Fragment::_Internal::created_on(const Fragment* msg) { - return *msg->_impl_.created_on_; +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +Fragment::_Internal::created_on(const Fragment* msg) { + return *msg->created_on_; } -const ::google::protobuf::Timestamp& Fragment::_Internal::last_updated(const Fragment* msg) { - return *msg->_impl_.last_updated_; +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +Fragment::_Internal::last_updated(const Fragment* msg) { + return *msg->last_updated_; } void Fragment::clear_fragment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.fragment_ != nullptr) _impl_.fragment_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && fragment_ != nullptr) { + delete fragment_; + } + fragment_ = nullptr; } void Fragment::clear_created_on() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.created_on_ != nullptr) _impl_.created_on_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && created_on_ != nullptr) { + delete created_on_; + } + created_on_ = nullptr; } void Fragment::clear_last_updated() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.last_updated_ != nullptr) _impl_.last_updated_->Clear(); - _impl_._has_bits_[0] &= ~0x00000004u; + if (GetArenaForAllocation() == nullptr && last_updated_ != nullptr) { + delete last_updated_; + } + last_updated_ = nullptr; } -Fragment::Fragment(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Fragment::Fragment(::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.Fragment) } -inline PROTOBUF_NDEBUG_INLINE Fragment::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - id_(arena, from.id_), - name_(arena, from.name_), - organization_owner_(arena, from.organization_owner_), - organization_name_(arena, from.organization_name_) {} - -Fragment::Fragment( - ::google::protobuf::Arena* arena, - const Fragment& from) - : ::google::protobuf::Message(arena) { - Fragment* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.fragment_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.fragment_) - : nullptr; - _impl_.created_on_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.created_on_) - : nullptr; - _impl_.last_updated_ = (cached_has_bits & 0x00000004u) - ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.last_updated_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, public__), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, public__), - offsetof(Impl_, visibility_) - - offsetof(Impl_, public__) + - sizeof(Impl_::visibility_)); - +Fragment::Fragment(const Fragment& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } + 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()); + } + organization_owner_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_owner_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_organization_owner().empty()) { + organization_owner_.Set(from._internal_organization_owner(), + GetArenaForAllocation()); + } + organization_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_organization_name().empty()) { + organization_name_.Set(from._internal_organization_name(), + GetArenaForAllocation()); + } + if (from._internal_has_fragment()) { + fragment_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.fragment_); + } else { + fragment_ = nullptr; + } + if (from._internal_has_created_on()) { + created_on_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from.created_on_); + } else { + created_on_ = nullptr; + } + if (from._internal_has_last_updated()) { + last_updated_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from.last_updated_); + } else { + last_updated_ = nullptr; + } + ::memcpy(&public__, &from.public__, + static_cast(reinterpret_cast(&visibility_) - + reinterpret_cast(&public__)) + sizeof(visibility_)); // @@protoc_insertion_point(copy_constructor:viam.app.v1.Fragment) } -inline PROTOBUF_NDEBUG_INLINE Fragment::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - id_(arena), - name_(arena), - organization_owner_(arena), - organization_name_(arena) {} - -inline void Fragment::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, fragment_), - 0, - offsetof(Impl_, visibility_) - - offsetof(Impl_, fragment_) + - sizeof(Impl_::visibility_)); + +inline void Fragment::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +organization_owner_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_owner_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +organization_name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&fragment_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&visibility_) - + reinterpret_cast(&fragment_)) + sizeof(visibility_)); } + Fragment::~Fragment() { // @@protoc_insertion_point(destructor:viam.app.v1.Fragment) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Fragment::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.name_.Destroy(); - _impl_.organization_owner_.Destroy(); - _impl_.organization_name_.Destroy(); - delete _impl_.fragment_; - delete _impl_.created_on_; - delete _impl_.last_updated_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void Fragment::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.Fragment) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); + name_.Destroy(); + organization_owner_.Destroy(); + organization_name_.Destroy(); + if (this != internal_default_instance()) delete fragment_; + if (this != internal_default_instance()) delete created_on_; + if (this != internal_default_instance()) delete last_updated_; +} - _impl_.id_.ClearToEmpty(); - _impl_.name_.ClearToEmpty(); - _impl_.organization_owner_.ClearToEmpty(); - _impl_.organization_name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.fragment_ != nullptr); - _impl_.fragment_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.created_on_ != nullptr); - _impl_.created_on_->Clear(); - } - if (cached_has_bits & 0x00000004u) { - ABSL_DCHECK(_impl_.last_updated_ != nullptr); - _impl_.last_updated_->Clear(); - } - } - ::memset(&_impl_.public__, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.visibility_) - - reinterpret_cast(&_impl_.public__)) + sizeof(_impl_.visibility_)); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void Fragment::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* Fragment::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void Fragment::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.Fragment) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + id_.ClearToEmpty(); + name_.ClearToEmpty(); + organization_owner_.ClearToEmpty(); + organization_name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && fragment_ != nullptr) { + delete fragment_; + } + fragment_ = nullptr; + if (GetArenaForAllocation() == nullptr && created_on_ != nullptr) { + delete created_on_; + } + created_on_ = nullptr; + if (GetArenaForAllocation() == nullptr && last_updated_ != nullptr) { + delete last_updated_; + } + last_updated_ = nullptr; + ::memset(&public__, 0, static_cast( + reinterpret_cast(&visibility_) - + reinterpret_cast(&public__)) + sizeof(visibility_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Fragment::_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 id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.Fragment.id")); + } else + goto handle_unusual; + continue; + // string name = 2 [json_name = "name", (.tagger.v1.tags) = "bson:\"name\" json:\"name\""]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.Fragment.name")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct fragment = 3 [json_name = "fragment", (.tagger.v1.tags) = "bson:\"fragment\" json:\"fragment\""]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_fragment(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string organization_owner = 4 [json_name = "organizationOwner", (.tagger.v1.tags) = "bson:\"organization_owner\" json:\"owner\""]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_organization_owner(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.Fragment.organization_owner")); + } else + goto handle_unusual; + continue; + // bool public = 5 [json_name = "public", (.tagger.v1.tags) = "bson:\"public\" json:\"public\""]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { + public__ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp created_on = 6 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\""]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr = ctx->ParseMessage(_internal_mutable_created_on(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string organization_name = 7 [json_name = "organizationName"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + auto str = _internal_mutable_organization_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.Fragment.organization_name")); + } else + goto handle_unusual; + continue; + // int32 robot_part_count = 9 [json_name = "robotPartCount"]; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 72)) { + robot_part_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int32 organization_count = 10 [json_name = "organizationCount"]; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 80)) { + organization_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool only_used_by_owner = 11 [json_name = "onlyUsedByOwner"]; + case 11: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 88)) { + only_used_by_owner_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.app.v1.FragmentVisibility visibility = 12 [json_name = "visibility"]; + case 12: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 96)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_visibility(static_cast<::viam::app::v1::FragmentVisibility>(val)); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp last_updated = 13 [json_name = "lastUpdated", (.tagger.v1.tags) = "bson:\"last_updated_at\""]; + case 13: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 106)) { + ptr = ctx->ParseMessage(_internal_mutable_last_updated(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<4, 12, 3, 78, 2> Fragment::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Fragment, _impl_._has_bits_), - 0, // no _extensions_ - 13, 120, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294959232, // skipmap - offsetof(decltype(_table_), field_entries), - 12, // num_field_entries - 3, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Fragment_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Fragment, _impl_.id_)}}, - // string name = 2 [json_name = "name", (.tagger.v1.tags) = "bson:\"name\" json:\"name\""]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(Fragment, _impl_.name_)}}, - // .google.protobuf.Struct fragment = 3 [json_name = "fragment", (.tagger.v1.tags) = "bson:\"fragment\" json:\"fragment\""]; - {::_pbi::TcParser::FastMtS1, - {26, 0, 0, PROTOBUF_FIELD_OFFSET(Fragment, _impl_.fragment_)}}, - // string organization_owner = 4 [json_name = "organizationOwner", (.tagger.v1.tags) = "bson:\"organization_owner\" json:\"owner\""]; - {::_pbi::TcParser::FastUS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(Fragment, _impl_.organization_owner_)}}, - // bool public = 5 [json_name = "public", (.tagger.v1.tags) = "bson:\"public\" json:\"public\""]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {40, 63, 0, PROTOBUF_FIELD_OFFSET(Fragment, _impl_.public__)}}, - // .google.protobuf.Timestamp created_on = 6 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\""]; - {::_pbi::TcParser::FastMtS1, - {50, 1, 1, PROTOBUF_FIELD_OFFSET(Fragment, _impl_.created_on_)}}, - // string organization_name = 7 [json_name = "organizationName"]; - {::_pbi::TcParser::FastUS1, - {58, 63, 0, PROTOBUF_FIELD_OFFSET(Fragment, _impl_.organization_name_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // int32 robot_part_count = 9 [json_name = "robotPartCount"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Fragment, _impl_.robot_part_count_), 63>(), - {72, 63, 0, PROTOBUF_FIELD_OFFSET(Fragment, _impl_.robot_part_count_)}}, - // int32 organization_count = 10 [json_name = "organizationCount"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Fragment, _impl_.organization_count_), 63>(), - {80, 63, 0, PROTOBUF_FIELD_OFFSET(Fragment, _impl_.organization_count_)}}, - // bool only_used_by_owner = 11 [json_name = "onlyUsedByOwner"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {88, 63, 0, PROTOBUF_FIELD_OFFSET(Fragment, _impl_.only_used_by_owner_)}}, - // .viam.app.v1.FragmentVisibility visibility = 12 [json_name = "visibility"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Fragment, _impl_.visibility_), 63>(), - {96, 63, 0, PROTOBUF_FIELD_OFFSET(Fragment, _impl_.visibility_)}}, - // .google.protobuf.Timestamp last_updated = 13 [json_name = "lastUpdated", (.tagger.v1.tags) = "bson:\"last_updated_at\""]; - {::_pbi::TcParser::FastMtS1, - {106, 2, 2, PROTOBUF_FIELD_OFFSET(Fragment, _impl_.last_updated_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""]; - {PROTOBUF_FIELD_OFFSET(Fragment, _impl_.id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string name = 2 [json_name = "name", (.tagger.v1.tags) = "bson:\"name\" json:\"name\""]; - {PROTOBUF_FIELD_OFFSET(Fragment, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct fragment = 3 [json_name = "fragment", (.tagger.v1.tags) = "bson:\"fragment\" json:\"fragment\""]; - {PROTOBUF_FIELD_OFFSET(Fragment, _impl_.fragment_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // string organization_owner = 4 [json_name = "organizationOwner", (.tagger.v1.tags) = "bson:\"organization_owner\" json:\"owner\""]; - {PROTOBUF_FIELD_OFFSET(Fragment, _impl_.organization_owner_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // bool public = 5 [json_name = "public", (.tagger.v1.tags) = "bson:\"public\" json:\"public\""]; - {PROTOBUF_FIELD_OFFSET(Fragment, _impl_.public__), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // .google.protobuf.Timestamp created_on = 6 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\""]; - {PROTOBUF_FIELD_OFFSET(Fragment, _impl_.created_on_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // string organization_name = 7 [json_name = "organizationName"]; - {PROTOBUF_FIELD_OFFSET(Fragment, _impl_.organization_name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // int32 robot_part_count = 9 [json_name = "robotPartCount"]; - {PROTOBUF_FIELD_OFFSET(Fragment, _impl_.robot_part_count_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // int32 organization_count = 10 [json_name = "organizationCount"]; - {PROTOBUF_FIELD_OFFSET(Fragment, _impl_.organization_count_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // bool only_used_by_owner = 11 [json_name = "onlyUsedByOwner"]; - {PROTOBUF_FIELD_OFFSET(Fragment, _impl_.only_used_by_owner_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // .viam.app.v1.FragmentVisibility visibility = 12 [json_name = "visibility"]; - {PROTOBUF_FIELD_OFFSET(Fragment, _impl_.visibility_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // .google.protobuf.Timestamp last_updated = 13 [json_name = "lastUpdated", (.tagger.v1.tags) = "bson:\"last_updated_at\""]; - {PROTOBUF_FIELD_OFFSET(Fragment, _impl_.last_updated_), _Internal::kHasBitsOffset + 2, 2, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, - }}, {{ - "\24\2\4\0\22\0\0\21\0\0\0\0\0\0\0\0" - "viam.app.v1.Fragment" - "id" - "name" - "organization_owner" - "organization_name" - }}, -}; - -::uint8_t* Fragment::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Fragment::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.Fragment) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""]; if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.Fragment.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.Fragment.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); } // string name = 2 [json_name = "name", (.tagger.v1.tags) = "bson:\"name\" json:\"name\""]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.Fragment.name"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.Fragment.name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct fragment = 3 [json_name = "fragment", (.tagger.v1.tags) = "bson:\"fragment\" json:\"fragment\""]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::fragment(this), + if (this->_internal_has_fragment()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::fragment(this), _Internal::fragment(this).GetCachedSize(), target, stream); } // string organization_owner = 4 [json_name = "organizationOwner", (.tagger.v1.tags) = "bson:\"organization_owner\" json:\"owner\""]; if (!this->_internal_organization_owner().empty()) { - const std::string& _s = this->_internal_organization_owner(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.Fragment.organization_owner"); - target = stream->WriteStringMaybeAliased(4, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_organization_owner().data(), static_cast(this->_internal_organization_owner().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.Fragment.organization_owner"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_organization_owner(), target); } // bool public = 5 [json_name = "public", (.tagger.v1.tags) = "bson:\"public\" json:\"public\""]; if (this->_internal_public_() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 5, this->_internal_public_(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(5, this->_internal_public_(), target); } // .google.protobuf.Timestamp created_on = 6 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\""]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 6, _Internal::created_on(this), + if (this->_internal_has_created_on()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(6, _Internal::created_on(this), _Internal::created_on(this).GetCachedSize(), target, stream); } // string organization_name = 7 [json_name = "organizationName"]; if (!this->_internal_organization_name().empty()) { - const std::string& _s = this->_internal_organization_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.Fragment.organization_name"); - target = stream->WriteStringMaybeAliased(7, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_organization_name().data(), static_cast(this->_internal_organization_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.Fragment.organization_name"); + target = stream->WriteStringMaybeAliased( + 7, this->_internal_organization_name(), target); } // int32 robot_part_count = 9 [json_name = "robotPartCount"]; if (this->_internal_robot_part_count() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<9>( - stream, this->_internal_robot_part_count(), target); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(9, this->_internal_robot_part_count(), target); } // int32 organization_count = 10 [json_name = "organizationCount"]; if (this->_internal_organization_count() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<10>( - stream, this->_internal_organization_count(), target); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(10, this->_internal_organization_count(), target); } // bool only_used_by_owner = 11 [json_name = "onlyUsedByOwner"]; if (this->_internal_only_used_by_owner() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 11, this->_internal_only_used_by_owner(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(11, this->_internal_only_used_by_owner(), target); } // .viam.app.v1.FragmentVisibility visibility = 12 [json_name = "visibility"]; if (this->_internal_visibility() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 12, this->_internal_visibility(), target); + 12, this->_internal_visibility(), target); } // .google.protobuf.Timestamp last_updated = 13 [json_name = "lastUpdated", (.tagger.v1.tags) = "bson:\"last_updated_at\""]; - if (cached_has_bits & 0x00000004u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 13, _Internal::last_updated(this), + if (this->_internal_has_last_updated()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(13, _Internal::last_updated(this), _Internal::last_updated(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.Fragment) return target; } -::size_t Fragment::ByteSizeLong() const { +size_t Fragment::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.Fragment) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""]; if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } // string name = 2 [json_name = "name", (.tagger.v1.tags) = "bson:\"name\" json:\"name\""]; if (!this->_internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // string organization_owner = 4 [json_name = "organizationOwner", (.tagger.v1.tags) = "bson:\"organization_owner\" json:\"owner\""]; if (!this->_internal_organization_owner().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_organization_owner()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_organization_owner()); } // string organization_name = 7 [json_name = "organizationName"]; if (!this->_internal_organization_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_organization_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_organization_name()); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - // .google.protobuf.Struct fragment = 3 [json_name = "fragment", (.tagger.v1.tags) = "bson:\"fragment\" json:\"fragment\""]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.fragment_); - } - - // .google.protobuf.Timestamp created_on = 6 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\""]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.created_on_); - } + // .google.protobuf.Struct fragment = 3 [json_name = "fragment", (.tagger.v1.tags) = "bson:\"fragment\" json:\"fragment\""]; + if (this->_internal_has_fragment()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *fragment_); + } - // .google.protobuf.Timestamp last_updated = 13 [json_name = "lastUpdated", (.tagger.v1.tags) = "bson:\"last_updated_at\""]; - if (cached_has_bits & 0x00000004u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.last_updated_); - } + // .google.protobuf.Timestamp created_on = 6 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\""]; + if (this->_internal_has_created_on()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *created_on_); + } + // .google.protobuf.Timestamp last_updated = 13 [json_name = "lastUpdated", (.tagger.v1.tags) = "bson:\"last_updated_at\""]; + if (this->_internal_has_last_updated()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *last_updated_); } + // bool public = 5 [json_name = "public", (.tagger.v1.tags) = "bson:\"public\" json:\"public\""]; if (this->_internal_public_() != 0) { - total_size += 2; + total_size += 1 + 1; } // bool only_used_by_owner = 11 [json_name = "onlyUsedByOwner"]; if (this->_internal_only_used_by_owner() != 0) { - total_size += 2; + total_size += 1 + 1; } // int32 robot_part_count = 9 [json_name = "robotPartCount"]; if (this->_internal_robot_part_count() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_robot_part_count()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_robot_part_count()); } // int32 organization_count = 10 [json_name = "organizationCount"]; if (this->_internal_organization_count() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_organization_count()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_organization_count()); } // .viam.app.v1.FragmentVisibility visibility = 12 [json_name = "visibility"]; if (this->_internal_visibility() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_visibility()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_visibility()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Fragment::_class_data_ = { - Fragment::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Fragment::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Fragment::MergeImpl }; -const ::google::protobuf::Message::ClassData* Fragment::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Fragment::GetClassData() const { return &_class_data_; } + +void Fragment::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Fragment::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.Fragment) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Fragment::MergeFrom(const Fragment& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.Fragment) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (!from._internal_organization_owner().empty()) { - _this->_internal_set_organization_owner(from._internal_organization_owner()); + _internal_set_organization_owner(from._internal_organization_owner()); } if (!from._internal_organization_name().empty()) { - _this->_internal_set_organization_name(from._internal_organization_name()); + _internal_set_organization_name(from._internal_organization_name()); } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_fragment()->::google::protobuf::Struct::MergeFrom( - from._internal_fragment()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_created_on()->::google::protobuf::Timestamp::MergeFrom( - from._internal_created_on()); - } - if (cached_has_bits & 0x00000004u) { - _this->_internal_mutable_last_updated()->::google::protobuf::Timestamp::MergeFrom( - from._internal_last_updated()); - } + if (from._internal_has_fragment()) { + _internal_mutable_fragment()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_fragment()); + } + if (from._internal_has_created_on()) { + _internal_mutable_created_on()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_created_on()); + } + if (from._internal_has_last_updated()) { + _internal_mutable_last_updated()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_last_updated()); } if (from._internal_public_() != 0) { - _this->_internal_set_public_(from._internal_public_()); + _internal_set_public_(from._internal_public_()); } if (from._internal_only_used_by_owner() != 0) { - _this->_internal_set_only_used_by_owner(from._internal_only_used_by_owner()); + _internal_set_only_used_by_owner(from._internal_only_used_by_owner()); } if (from._internal_robot_part_count() != 0) { - _this->_internal_set_robot_part_count(from._internal_robot_part_count()); + _internal_set_robot_part_count(from._internal_robot_part_count()); } if (from._internal_organization_count() != 0) { - _this->_internal_set_organization_count(from._internal_organization_count()); + _internal_set_organization_count(from._internal_organization_count()); } if (from._internal_visibility() != 0) { - _this->_internal_set_visibility(from._internal_visibility()); + _internal_set_visibility(from._internal_visibility()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Fragment::CopyFrom(const Fragment& from) { @@ -28380,340 +28131,430 @@ void Fragment::CopyFrom(const Fragment& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Fragment::IsInitialized() const { +bool Fragment::IsInitialized() const { return true; } -::_pbi::CachedSize* Fragment::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Fragment::InternalSwap(Fragment* PROTOBUF_RESTRICT other) { +void Fragment::InternalSwap(Fragment* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.organization_owner_, &other->_impl_.organization_owner_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.organization_name_, &other->_impl_.organization_name_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(Fragment, _impl_.visibility_) - + sizeof(Fragment::_impl_.visibility_) - - PROTOBUF_FIELD_OFFSET(Fragment, _impl_.fragment_)>( - reinterpret_cast(&_impl_.fragment_), - reinterpret_cast(&other->_impl_.fragment_)); -} - -::google::protobuf::Metadata Fragment::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &organization_owner_, lhs_arena, + &other->organization_owner_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &organization_name_, lhs_arena, + &other->organization_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Fragment, visibility_) + + sizeof(Fragment::visibility_) + - PROTOBUF_FIELD_OFFSET(Fragment, fragment_)>( + reinterpret_cast(&fragment_), + reinterpret_cast(&other->fragment_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Fragment::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[96]); } + // =================================================================== class FragmentHistoryEntry::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(FragmentHistoryEntry, _impl_._has_bits_); - static const ::google::protobuf::Timestamp& edited_on(const FragmentHistoryEntry* msg); - static void set_has_edited_on(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& edited_on(const FragmentHistoryEntry* msg); static const ::viam::app::v1::Fragment& old(const FragmentHistoryEntry* msg); - static void set_has_old(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } static const ::viam::app::v1::AuthenticatorInfo& edited_by(const FragmentHistoryEntry* msg); - static void set_has_edited_by(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& config(const FragmentHistoryEntry* msg); }; -const ::google::protobuf::Timestamp& FragmentHistoryEntry::_Internal::edited_on(const FragmentHistoryEntry* msg) { - return *msg->_impl_.edited_on_; +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +FragmentHistoryEntry::_Internal::edited_on(const FragmentHistoryEntry* msg) { + return *msg->edited_on_; } -const ::viam::app::v1::Fragment& FragmentHistoryEntry::_Internal::old(const FragmentHistoryEntry* msg) { - return *msg->_impl_.old_; +const ::viam::app::v1::Fragment& +FragmentHistoryEntry::_Internal::old(const FragmentHistoryEntry* msg) { + return *msg->old_; } -const ::viam::app::v1::AuthenticatorInfo& FragmentHistoryEntry::_Internal::edited_by(const FragmentHistoryEntry* msg) { - return *msg->_impl_.edited_by_; +const ::viam::app::v1::AuthenticatorInfo& +FragmentHistoryEntry::_Internal::edited_by(const FragmentHistoryEntry* msg) { + return *msg->edited_by_; +} +const ::PROTOBUF_NAMESPACE_ID::Struct& +FragmentHistoryEntry::_Internal::config(const FragmentHistoryEntry* msg) { + return *msg->config_; } void FragmentHistoryEntry::clear_edited_on() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.edited_on_ != nullptr) _impl_.edited_on_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && edited_on_ != nullptr) { + delete edited_on_; + } + edited_on_ = nullptr; } -FragmentHistoryEntry::FragmentHistoryEntry(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +void FragmentHistoryEntry::clear_config() { + if (GetArenaForAllocation() == nullptr && config_ != nullptr) { + delete config_; + } + config_ = nullptr; +} +FragmentHistoryEntry::FragmentHistoryEntry(::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.FragmentHistoryEntry) } -inline PROTOBUF_NDEBUG_INLINE FragmentHistoryEntry::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - fragment_(arena, from.fragment_) {} - -FragmentHistoryEntry::FragmentHistoryEntry( - ::google::protobuf::Arena* arena, - const FragmentHistoryEntry& from) - : ::google::protobuf::Message(arena) { - FragmentHistoryEntry* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.edited_on_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.edited_on_) - : nullptr; - _impl_.old_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::viam::app::v1::Fragment>(arena, *from._impl_.old_) - : nullptr; - _impl_.edited_by_ = (cached_has_bits & 0x00000004u) - ? CreateMaybeMessage<::viam::app::v1::AuthenticatorInfo>(arena, *from._impl_.edited_by_) - : nullptr; - +FragmentHistoryEntry::FragmentHistoryEntry(const FragmentHistoryEntry& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + fragment_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + fragment_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_fragment().empty()) { + fragment_.Set(from._internal_fragment(), + GetArenaForAllocation()); + } + revision_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + revision_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_revision().empty()) { + revision_.Set(from._internal_revision(), + GetArenaForAllocation()); + } + if (from._internal_has_edited_on()) { + edited_on_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from.edited_on_); + } else { + edited_on_ = nullptr; + } + if (from._internal_has_old()) { + old_ = new ::viam::app::v1::Fragment(*from.old_); + } else { + old_ = nullptr; + } + if (from._internal_has_edited_by()) { + edited_by_ = new ::viam::app::v1::AuthenticatorInfo(*from.edited_by_); + } else { + edited_by_ = nullptr; + } + if (from._internal_has_config()) { + config_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.config_); + } else { + config_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.FragmentHistoryEntry) } -inline PROTOBUF_NDEBUG_INLINE FragmentHistoryEntry::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - fragment_(arena) {} - -inline void FragmentHistoryEntry::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, edited_on_), - 0, - offsetof(Impl_, edited_by_) - - offsetof(Impl_, edited_on_) + - sizeof(Impl_::edited_by_)); + +inline void FragmentHistoryEntry::SharedCtor() { +fragment_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + fragment_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +revision_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + revision_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&edited_on_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&config_) - + reinterpret_cast(&edited_on_)) + sizeof(config_)); } + FragmentHistoryEntry::~FragmentHistoryEntry() { // @@protoc_insertion_point(destructor:viam.app.v1.FragmentHistoryEntry) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void FragmentHistoryEntry::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.fragment_.Destroy(); - delete _impl_.edited_on_; - delete _impl_.old_; - delete _impl_.edited_by_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + fragment_.Destroy(); + revision_.Destroy(); + if (this != internal_default_instance()) delete edited_on_; + if (this != internal_default_instance()) delete old_; + if (this != internal_default_instance()) delete edited_by_; + if (this != internal_default_instance()) delete config_; } -PROTOBUF_NOINLINE void FragmentHistoryEntry::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.FragmentHistoryEntry) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.fragment_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.edited_on_ != nullptr); - _impl_.edited_on_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.old_ != nullptr); - _impl_.old_->Clear(); - } - if (cached_has_bits & 0x00000004u) { - ABSL_DCHECK(_impl_.edited_by_ != nullptr); - _impl_.edited_by_->Clear(); - } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void FragmentHistoryEntry::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* FragmentHistoryEntry::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void FragmentHistoryEntry::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.FragmentHistoryEntry) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + fragment_.ClearToEmpty(); + revision_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && edited_on_ != nullptr) { + delete edited_on_; + } + edited_on_ = nullptr; + if (GetArenaForAllocation() == nullptr && old_ != nullptr) { + delete old_; + } + old_ = nullptr; + if (GetArenaForAllocation() == nullptr && edited_by_ != nullptr) { + delete edited_by_; + } + edited_by_ = nullptr; + if (GetArenaForAllocation() == nullptr && config_ != nullptr) { + delete config_; + } + config_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* FragmentHistoryEntry::_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 fragment = 1 [json_name = "fragment", (.tagger.v1.tags) = "bson:\"fragment\" json:\"fragment\""]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_fragment(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.FragmentHistoryEntry.fragment")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp edited_on = 2 [json_name = "editedOn", (.tagger.v1.tags) = "bson:\"edited_on\" json:\"edited_on\""]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_edited_on(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.app.v1.Fragment old = 3 [json_name = "old", (.tagger.v1.tags) = "bson:\"old\" json:\"old\""]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_old(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.app.v1.AuthenticatorInfo edited_by = 4 [json_name = "editedBy", (.tagger.v1.tags) = "bson:\"edited_by\" json:\"edited_by\""]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_edited_by(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string revision = 5 [json_name = "revision", (.tagger.v1.tags) = "bson:\"revision\" json:\"revision\""]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + auto str = _internal_mutable_revision(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.FragmentHistoryEntry.revision")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct config = 6 [json_name = "config", (.tagger.v1.tags) = "bson:\"config\" json:\"config\""]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr = ctx->ParseMessage(_internal_mutable_config(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 3, 49, 2> FragmentHistoryEntry::_table_ = { - { - PROTOBUF_FIELD_OFFSET(FragmentHistoryEntry, _impl_._has_bits_), - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 3, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_FragmentHistoryEntry_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.app.v1.AuthenticatorInfo edited_by = 4 [json_name = "editedBy", (.tagger.v1.tags) = "bson:\"edited_by\" json:\"edited_by\""]; - {::_pbi::TcParser::FastMtS1, - {34, 2, 2, PROTOBUF_FIELD_OFFSET(FragmentHistoryEntry, _impl_.edited_by_)}}, - // string fragment = 1 [json_name = "fragment", (.tagger.v1.tags) = "bson:\"fragment\" json:\"fragment\""]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(FragmentHistoryEntry, _impl_.fragment_)}}, - // .google.protobuf.Timestamp edited_on = 2 [json_name = "editedOn", (.tagger.v1.tags) = "bson:\"edited_on\" json:\"edited_on\""]; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(FragmentHistoryEntry, _impl_.edited_on_)}}, - // .viam.app.v1.Fragment old = 3 [json_name = "old", (.tagger.v1.tags) = "bson:\"old\" json:\"old\""]; - {::_pbi::TcParser::FastMtS1, - {26, 1, 1, PROTOBUF_FIELD_OFFSET(FragmentHistoryEntry, _impl_.old_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string fragment = 1 [json_name = "fragment", (.tagger.v1.tags) = "bson:\"fragment\" json:\"fragment\""]; - {PROTOBUF_FIELD_OFFSET(FragmentHistoryEntry, _impl_.fragment_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Timestamp edited_on = 2 [json_name = "editedOn", (.tagger.v1.tags) = "bson:\"edited_on\" json:\"edited_on\""]; - {PROTOBUF_FIELD_OFFSET(FragmentHistoryEntry, _impl_.edited_on_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .viam.app.v1.Fragment old = 3 [json_name = "old", (.tagger.v1.tags) = "bson:\"old\" json:\"old\""]; - {PROTOBUF_FIELD_OFFSET(FragmentHistoryEntry, _impl_.old_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .viam.app.v1.AuthenticatorInfo edited_by = 4 [json_name = "editedBy", (.tagger.v1.tags) = "bson:\"edited_by\" json:\"edited_by\""]; - {PROTOBUF_FIELD_OFFSET(FragmentHistoryEntry, _impl_.edited_by_), _Internal::kHasBitsOffset + 2, 2, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, - {::_pbi::TcParser::GetTable<::viam::app::v1::Fragment>()}, - {::_pbi::TcParser::GetTable<::viam::app::v1::AuthenticatorInfo>()}, - }}, {{ - "\40\10\0\0\0\0\0\0" - "viam.app.v1.FragmentHistoryEntry" - "fragment" - }}, -}; - -::uint8_t* FragmentHistoryEntry::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* FragmentHistoryEntry::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.FragmentHistoryEntry) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string fragment = 1 [json_name = "fragment", (.tagger.v1.tags) = "bson:\"fragment\" json:\"fragment\""]; if (!this->_internal_fragment().empty()) { - const std::string& _s = this->_internal_fragment(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.FragmentHistoryEntry.fragment"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_fragment().data(), static_cast(this->_internal_fragment().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.FragmentHistoryEntry.fragment"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_fragment(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Timestamp edited_on = 2 [json_name = "editedOn", (.tagger.v1.tags) = "bson:\"edited_on\" json:\"edited_on\""]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::edited_on(this), + if (this->_internal_has_edited_on()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::edited_on(this), _Internal::edited_on(this).GetCachedSize(), target, stream); } // .viam.app.v1.Fragment old = 3 [json_name = "old", (.tagger.v1.tags) = "bson:\"old\" json:\"old\""]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::old(this), + if (this->_internal_has_old()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::old(this), _Internal::old(this).GetCachedSize(), target, stream); } // .viam.app.v1.AuthenticatorInfo edited_by = 4 [json_name = "editedBy", (.tagger.v1.tags) = "bson:\"edited_by\" json:\"edited_by\""]; - if (cached_has_bits & 0x00000004u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, _Internal::edited_by(this), + if (this->_internal_has_edited_by()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::edited_by(this), _Internal::edited_by(this).GetCachedSize(), target, stream); } + // string revision = 5 [json_name = "revision", (.tagger.v1.tags) = "bson:\"revision\" json:\"revision\""]; + if (!this->_internal_revision().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_revision().data(), static_cast(this->_internal_revision().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.FragmentHistoryEntry.revision"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_revision(), target); + } + + // .google.protobuf.Struct config = 6 [json_name = "config", (.tagger.v1.tags) = "bson:\"config\" json:\"config\""]; + if (this->_internal_has_config()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(6, _Internal::config(this), + _Internal::config(this).GetCachedSize(), target, stream); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.FragmentHistoryEntry) return target; } -::size_t FragmentHistoryEntry::ByteSizeLong() const { +size_t FragmentHistoryEntry::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.FragmentHistoryEntry) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string fragment = 1 [json_name = "fragment", (.tagger.v1.tags) = "bson:\"fragment\" json:\"fragment\""]; if (!this->_internal_fragment().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_fragment()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_fragment()); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - // .google.protobuf.Timestamp edited_on = 2 [json_name = "editedOn", (.tagger.v1.tags) = "bson:\"edited_on\" json:\"edited_on\""]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.edited_on_); - } + // string revision = 5 [json_name = "revision", (.tagger.v1.tags) = "bson:\"revision\" json:\"revision\""]; + if (!this->_internal_revision().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_revision()); + } - // .viam.app.v1.Fragment old = 3 [json_name = "old", (.tagger.v1.tags) = "bson:\"old\" json:\"old\""]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.old_); - } + // .google.protobuf.Timestamp edited_on = 2 [json_name = "editedOn", (.tagger.v1.tags) = "bson:\"edited_on\" json:\"edited_on\""]; + if (this->_internal_has_edited_on()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *edited_on_); + } - // .viam.app.v1.AuthenticatorInfo edited_by = 4 [json_name = "editedBy", (.tagger.v1.tags) = "bson:\"edited_by\" json:\"edited_by\""]; - if (cached_has_bits & 0x00000004u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.edited_by_); - } + // .viam.app.v1.Fragment old = 3 [json_name = "old", (.tagger.v1.tags) = "bson:\"old\" json:\"old\""]; + if (this->_internal_has_old()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *old_); + } + + // .viam.app.v1.AuthenticatorInfo edited_by = 4 [json_name = "editedBy", (.tagger.v1.tags) = "bson:\"edited_by\" json:\"edited_by\""]; + if (this->_internal_has_edited_by()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *edited_by_); + } + // .google.protobuf.Struct config = 6 [json_name = "config", (.tagger.v1.tags) = "bson:\"config\" json:\"config\""]; + if (this->_internal_has_config()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *config_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData FragmentHistoryEntry::_class_data_ = { - FragmentHistoryEntry::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FragmentHistoryEntry::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + FragmentHistoryEntry::MergeImpl }; -const ::google::protobuf::Message::ClassData* FragmentHistoryEntry::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FragmentHistoryEntry::GetClassData() const { return &_class_data_; } + +void FragmentHistoryEntry::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void FragmentHistoryEntry::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.FragmentHistoryEntry) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void FragmentHistoryEntry::MergeFrom(const FragmentHistoryEntry& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.FragmentHistoryEntry) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_fragment().empty()) { - _this->_internal_set_fragment(from._internal_fragment()); + _internal_set_fragment(from._internal_fragment()); } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_edited_on()->::google::protobuf::Timestamp::MergeFrom( - from._internal_edited_on()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_old()->::viam::app::v1::Fragment::MergeFrom( - from._internal_old()); - } - if (cached_has_bits & 0x00000004u) { - _this->_internal_mutable_edited_by()->::viam::app::v1::AuthenticatorInfo::MergeFrom( - from._internal_edited_by()); - } + if (!from._internal_revision().empty()) { + _internal_set_revision(from._internal_revision()); + } + if (from._internal_has_edited_on()) { + _internal_mutable_edited_on()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_edited_on()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_old()) { + _internal_mutable_old()->::viam::app::v1::Fragment::MergeFrom(from._internal_old()); + } + if (from._internal_has_edited_by()) { + _internal_mutable_edited_by()->::viam::app::v1::AuthenticatorInfo::MergeFrom(from._internal_edited_by()); + } + if (from._internal_has_config()) { + _internal_mutable_config()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_config()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void FragmentHistoryEntry::CopyFrom(const FragmentHistoryEntry& from) { @@ -28723,248 +28564,274 @@ void FragmentHistoryEntry::CopyFrom(const FragmentHistoryEntry& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool FragmentHistoryEntry::IsInitialized() const { +bool FragmentHistoryEntry::IsInitialized() const { return true; } -::_pbi::CachedSize* FragmentHistoryEntry::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void FragmentHistoryEntry::InternalSwap(FragmentHistoryEntry* PROTOBUF_RESTRICT other) { +void FragmentHistoryEntry::InternalSwap(FragmentHistoryEntry* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.fragment_, &other->_impl_.fragment_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(FragmentHistoryEntry, _impl_.edited_by_) - + sizeof(FragmentHistoryEntry::_impl_.edited_by_) - - PROTOBUF_FIELD_OFFSET(FragmentHistoryEntry, _impl_.edited_on_)>( - reinterpret_cast(&_impl_.edited_on_), - reinterpret_cast(&other->_impl_.edited_on_)); -} - -::google::protobuf::Metadata FragmentHistoryEntry::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &fragment_, lhs_arena, + &other->fragment_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &revision_, lhs_arena, + &other->revision_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(FragmentHistoryEntry, config_) + + sizeof(FragmentHistoryEntry::config_) + - PROTOBUF_FIELD_OFFSET(FragmentHistoryEntry, edited_on_)>( + reinterpret_cast(&edited_on_), + reinterpret_cast(&other->edited_on_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata FragmentHistoryEntry::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[97]); } + // =================================================================== class FragmentError::_Internal { public: }; -FragmentError::FragmentError(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +FragmentError::FragmentError(::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.FragmentError) } -inline PROTOBUF_NDEBUG_INLINE FragmentError::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : fragment_id_(arena, from.fragment_id_), - detail_(arena, from.detail_), - _cached_size_{0} {} - -FragmentError::FragmentError( - ::google::protobuf::Arena* arena, - const FragmentError& from) - : ::google::protobuf::Message(arena) { - FragmentError* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.error_type_ = from._impl_.error_type_; - +FragmentError::FragmentError(const FragmentError& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + fragment_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + fragment_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_fragment_id().empty()) { + fragment_id_.Set(from._internal_fragment_id(), + GetArenaForAllocation()); + } + detail_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + detail_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_detail().empty()) { + detail_.Set(from._internal_detail(), + GetArenaForAllocation()); + } + error_type_ = from.error_type_; // @@protoc_insertion_point(copy_constructor:viam.app.v1.FragmentError) } -inline PROTOBUF_NDEBUG_INLINE FragmentError::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : fragment_id_(arena), - detail_(arena), - _cached_size_{0} {} -inline void FragmentError::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.error_type_ = {}; +inline void FragmentError::SharedCtor() { +fragment_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + fragment_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +detail_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + detail_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +error_type_ = 0; } + FragmentError::~FragmentError() { // @@protoc_insertion_point(destructor:viam.app.v1.FragmentError) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void FragmentError::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.fragment_id_.Destroy(); - _impl_.detail_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + fragment_id_.Destroy(); + detail_.Destroy(); } -PROTOBUF_NOINLINE void FragmentError::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.FragmentError) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.fragment_id_.ClearToEmpty(); - _impl_.detail_.ClearToEmpty(); - _impl_.error_type_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void FragmentError::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* FragmentError::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void FragmentError::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.FragmentError) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + fragment_id_.ClearToEmpty(); + detail_.ClearToEmpty(); + error_type_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* FragmentError::_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.app.v1.FragmentErrorType error_type = 1 [json_name = "errorType"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_error_type(static_cast<::viam::app::v1::FragmentErrorType>(val)); + } else + goto handle_unusual; + continue; + // string fragment_id = 2 [json_name = "fragmentId"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_fragment_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.FragmentError.fragment_id")); + } else + goto handle_unusual; + continue; + // string detail = 3 [json_name = "detail"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_detail(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.FragmentError.detail")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 51, 2> FragmentError::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_FragmentError_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // .viam.app.v1.FragmentErrorType error_type = 1 [json_name = "errorType"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(FragmentError, _impl_.error_type_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(FragmentError, _impl_.error_type_)}}, - // string fragment_id = 2 [json_name = "fragmentId"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(FragmentError, _impl_.fragment_id_)}}, - // string detail = 3 [json_name = "detail"]; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(FragmentError, _impl_.detail_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.app.v1.FragmentErrorType error_type = 1 [json_name = "errorType"]; - {PROTOBUF_FIELD_OFFSET(FragmentError, _impl_.error_type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // string fragment_id = 2 [json_name = "fragmentId"]; - {PROTOBUF_FIELD_OFFSET(FragmentError, _impl_.fragment_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string detail = 3 [json_name = "detail"]; - {PROTOBUF_FIELD_OFFSET(FragmentError, _impl_.detail_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\31\0\13\6\0\0\0\0" - "viam.app.v1.FragmentError" - "fragment_id" - "detail" - }}, -}; - -::uint8_t* FragmentError::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* FragmentError::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.FragmentError) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // .viam.app.v1.FragmentErrorType error_type = 1 [json_name = "errorType"]; if (this->_internal_error_type() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_error_type(), target); + 1, this->_internal_error_type(), target); } // string fragment_id = 2 [json_name = "fragmentId"]; if (!this->_internal_fragment_id().empty()) { - const std::string& _s = this->_internal_fragment_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.FragmentError.fragment_id"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_fragment_id().data(), static_cast(this->_internal_fragment_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.FragmentError.fragment_id"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_fragment_id(), target); } // string detail = 3 [json_name = "detail"]; if (!this->_internal_detail().empty()) { - const std::string& _s = this->_internal_detail(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.FragmentError.detail"); - target = stream->WriteStringMaybeAliased(3, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_detail().data(), static_cast(this->_internal_detail().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.FragmentError.detail"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_detail(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.FragmentError) return target; } -::size_t FragmentError::ByteSizeLong() const { +size_t FragmentError::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.FragmentError) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string fragment_id = 2 [json_name = "fragmentId"]; if (!this->_internal_fragment_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_fragment_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_fragment_id()); } // string detail = 3 [json_name = "detail"]; if (!this->_internal_detail().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_detail()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_detail()); } // .viam.app.v1.FragmentErrorType error_type = 1 [json_name = "errorType"]; if (this->_internal_error_type() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_error_type()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_error_type()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData FragmentError::_class_data_ = { - FragmentError::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FragmentError::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + FragmentError::MergeImpl }; -const ::google::protobuf::Message::ClassData* FragmentError::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FragmentError::GetClassData() const { return &_class_data_; } + +void FragmentError::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void FragmentError::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.FragmentError) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void FragmentError::MergeFrom(const FragmentError& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.FragmentError) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_fragment_id().empty()) { - _this->_internal_set_fragment_id(from._internal_fragment_id()); + _internal_set_fragment_id(from._internal_fragment_id()); } if (!from._internal_detail().empty()) { - _this->_internal_set_detail(from._internal_detail()); + _internal_set_detail(from._internal_detail()); } if (from._internal_error_type() != 0) { - _this->_internal_set_error_type(from._internal_error_type()); + _internal_set_error_type(from._internal_error_type()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void FragmentError::CopyFrom(const FragmentError& from) { @@ -28974,554 +28841,832 @@ void FragmentError::CopyFrom(const FragmentError& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool FragmentError::IsInitialized() const { +bool FragmentError::IsInitialized() const { return true; } -::_pbi::CachedSize* FragmentError::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void FragmentError::InternalSwap(FragmentError* PROTOBUF_RESTRICT other) { +void FragmentError::InternalSwap(FragmentError* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.fragment_id_, &other->_impl_.fragment_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.detail_, &other->_impl_.detail_, arena); - swap(_impl_.error_type_, other->_impl_.error_type_); -} - -::google::protobuf::Metadata FragmentError::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &fragment_id_, lhs_arena, + &other->fragment_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &detail_, lhs_arena, + &other->detail_, rhs_arena + ); + swap(error_type_, other->error_type_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata FragmentError::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[98]); } + // =================================================================== -class ResolvedFragment::_Internal { +class FragmentUsage::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ResolvedFragment, _impl_._has_bits_); - static const ::google::protobuf::Struct& resolved_config(const ResolvedFragment* msg); - static void set_has_resolved_config(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::viam::app::v1::FragmentError& error(const ResolvedFragment* msg); - static void set_has_error(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } }; -const ::google::protobuf::Struct& ResolvedFragment::_Internal::resolved_config(const ResolvedFragment* msg) { - return *msg->_impl_.resolved_config_; -} -const ::viam::app::v1::FragmentError& ResolvedFragment::_Internal::error(const ResolvedFragment* msg) { - return *msg->_impl_.error_; -} -void ResolvedFragment::clear_resolved_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.resolved_config_ != nullptr) _impl_.resolved_config_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; +FragmentUsage::FragmentUsage(::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.FragmentUsage) } -ResolvedFragment::ResolvedFragment(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:viam.app.v1.ResolvedFragment) +FragmentUsage::FragmentUsage(const FragmentUsage& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + fragment_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + fragment_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_fragment_id().empty()) { + fragment_id_.Set(from._internal_fragment_id(), + GetArenaForAllocation()); + } + ::memcpy(&organizations_, &from.organizations_, + static_cast(reinterpret_cast(&machines_in_current_org_) - + reinterpret_cast(&organizations_)) + sizeof(machines_in_current_org_)); + // @@protoc_insertion_point(copy_constructor:viam.app.v1.FragmentUsage) } -inline PROTOBUF_NDEBUG_INLINE ResolvedFragment::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - fragment_id_(arena, from.fragment_id_) {} - -ResolvedFragment::ResolvedFragment( - ::google::protobuf::Arena* arena, - const ResolvedFragment& from) - : ::google::protobuf::Message(arena) { - ResolvedFragment* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.resolved_config_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.resolved_config_) - : nullptr; - _impl_.error_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::viam::app::v1::FragmentError>(arena, *from._impl_.error_) - : nullptr; - // @@protoc_insertion_point(copy_constructor:viam.app.v1.ResolvedFragment) -} -inline PROTOBUF_NDEBUG_INLINE ResolvedFragment::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - fragment_id_(arena) {} - -inline void ResolvedFragment::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, resolved_config_), - 0, - offsetof(Impl_, error_) - - offsetof(Impl_, resolved_config_) + - sizeof(Impl_::error_)); -} -ResolvedFragment::~ResolvedFragment() { - // @@protoc_insertion_point(destructor:viam.app.v1.ResolvedFragment) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void ResolvedFragment::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.fragment_id_.Destroy(); - delete _impl_.resolved_config_; - delete _impl_.error_; - _impl_.~Impl_(); +inline void FragmentUsage::SharedCtor() { +fragment_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + fragment_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&organizations_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&machines_in_current_org_) - + reinterpret_cast(&organizations_)) + sizeof(machines_in_current_org_)); } -PROTOBUF_NOINLINE void ResolvedFragment::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.ResolvedFragment) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.fragment_id_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.resolved_config_ != nullptr); - _impl_.resolved_config_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.error_ != nullptr); - _impl_.error_->Clear(); - } +FragmentUsage::~FragmentUsage() { + // @@protoc_insertion_point(destructor:viam.app.v1.FragmentUsage) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); } -const char* ResolvedFragment::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +inline void FragmentUsage::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + fragment_id_.Destroy(); +} + +void FragmentUsage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void FragmentUsage::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.FragmentUsage) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + fragment_id_.ClearToEmpty(); + ::memset(&organizations_, 0, static_cast( + reinterpret_cast(&machines_in_current_org_) - + reinterpret_cast(&organizations_)) + sizeof(machines_in_current_org_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* FragmentUsage::_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 fragment_id = 1 [json_name = "fragmentId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_fragment_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.FragmentUsage.fragment_id")); + } else + goto handle_unusual; + continue; + // int32 organizations = 2 [json_name = "organizations"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + organizations_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int32 machines = 3 [json_name = "machines"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + machines_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int32 machines_in_current_org = 4 [json_name = "machinesInCurrentOrg"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + machines_in_current_org_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 2, 48, 2> ResolvedFragment::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ResolvedFragment, _impl_._has_bits_), - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ResolvedFragment_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string fragment_id = 1 [json_name = "fragmentId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ResolvedFragment, _impl_.fragment_id_)}}, - // .google.protobuf.Struct resolved_config = 2 [json_name = "resolvedConfig"]; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(ResolvedFragment, _impl_.resolved_config_)}}, - // .viam.app.v1.FragmentError error = 3 [json_name = "error"]; - {::_pbi::TcParser::FastMtS1, - {26, 1, 1, PROTOBUF_FIELD_OFFSET(ResolvedFragment, _impl_.error_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string fragment_id = 1 [json_name = "fragmentId"]; - {PROTOBUF_FIELD_OFFSET(ResolvedFragment, _impl_.fragment_id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct resolved_config = 2 [json_name = "resolvedConfig"]; - {PROTOBUF_FIELD_OFFSET(ResolvedFragment, _impl_.resolved_config_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .viam.app.v1.FragmentError error = 3 [json_name = "error"]; - {PROTOBUF_FIELD_OFFSET(ResolvedFragment, _impl_.error_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - {::_pbi::TcParser::GetTable<::viam::app::v1::FragmentError>()}, - }}, {{ - "\34\13\0\0\0\0\0\0" - "viam.app.v1.ResolvedFragment" - "fragment_id" - }}, -}; - -::uint8_t* ResolvedFragment::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ResolvedFragment) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; +uint8_t* FragmentUsage::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.FragmentUsage) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string fragment_id = 1 [json_name = "fragmentId"]; if (!this->_internal_fragment_id().empty()) { - const std::string& _s = this->_internal_fragment_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ResolvedFragment.fragment_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_fragment_id().data(), static_cast(this->_internal_fragment_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.FragmentUsage.fragment_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_fragment_id(), target); } - cached_has_bits = _impl_._has_bits_[0]; - // .google.protobuf.Struct resolved_config = 2 [json_name = "resolvedConfig"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::resolved_config(this), - _Internal::resolved_config(this).GetCachedSize(), target, stream); + // int32 organizations = 2 [json_name = "organizations"]; + if (this->_internal_organizations() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_organizations(), target); } - // .viam.app.v1.FragmentError error = 3 [json_name = "error"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::error(this), - _Internal::error(this).GetCachedSize(), target, stream); + // int32 machines = 3 [json_name = "machines"]; + if (this->_internal_machines() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_machines(), target); + } + + // int32 machines_in_current_org = 4 [json_name = "machinesInCurrentOrg"]; + if (this->_internal_machines_in_current_org() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(4, this->_internal_machines_in_current_org(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.ResolvedFragment) + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.FragmentUsage) return target; } -::size_t ResolvedFragment::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ResolvedFragment) - ::size_t total_size = 0; +size_t FragmentUsage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.FragmentUsage) + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string fragment_id = 1 [json_name = "fragmentId"]; if (!this->_internal_fragment_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_fragment_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_fragment_id()); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // .google.protobuf.Struct resolved_config = 2 [json_name = "resolvedConfig"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.resolved_config_); - } + // int32 organizations = 2 [json_name = "organizations"]; + if (this->_internal_organizations() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_organizations()); + } - // .viam.app.v1.FragmentError error = 3 [json_name = "error"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.error_); - } + // int32 machines = 3 [json_name = "machines"]; + if (this->_internal_machines() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_machines()); + } + // int32 machines_in_current_org = 4 [json_name = "machinesInCurrentOrg"]; + if (this->_internal_machines_in_current_org() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_machines_in_current_org()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ResolvedFragment::_class_data_ = { - ResolvedFragment::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FragmentUsage::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + FragmentUsage::MergeImpl }; -const ::google::protobuf::Message::ClassData* ResolvedFragment::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FragmentUsage::GetClassData() const { return &_class_data_; } + +void FragmentUsage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ResolvedFragment::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ResolvedFragment) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void FragmentUsage::MergeFrom(const FragmentUsage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.FragmentUsage) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_fragment_id().empty()) { - _this->_internal_set_fragment_id(from._internal_fragment_id()); + _internal_set_fragment_id(from._internal_fragment_id()); } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_resolved_config()->::google::protobuf::Struct::MergeFrom( - from._internal_resolved_config()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_error()->::viam::app::v1::FragmentError::MergeFrom( - from._internal_error()); - } + if (from._internal_organizations() != 0) { + _internal_set_organizations(from._internal_organizations()); + } + if (from._internal_machines() != 0) { + _internal_set_machines(from._internal_machines()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_machines_in_current_org() != 0) { + _internal_set_machines_in_current_org(from._internal_machines_in_current_org()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void ResolvedFragment::CopyFrom(const ResolvedFragment& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.ResolvedFragment) +void FragmentUsage::CopyFrom(const FragmentUsage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.FragmentUsage) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool ResolvedFragment::IsInitialized() const { +bool FragmentUsage::IsInitialized() const { return true; } -::_pbi::CachedSize* ResolvedFragment::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ResolvedFragment::InternalSwap(ResolvedFragment* PROTOBUF_RESTRICT other) { +void FragmentUsage::InternalSwap(FragmentUsage* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.fragment_id_, &other->_impl_.fragment_id_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(ResolvedFragment, _impl_.error_) - + sizeof(ResolvedFragment::_impl_.error_) - - PROTOBUF_FIELD_OFFSET(ResolvedFragment, _impl_.resolved_config_)>( - reinterpret_cast(&_impl_.resolved_config_), - reinterpret_cast(&other->_impl_.resolved_config_)); -} - -::google::protobuf::Metadata ResolvedFragment::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &fragment_id_, lhs_arena, + &other->fragment_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(FragmentUsage, machines_in_current_org_) + + sizeof(FragmentUsage::machines_in_current_org_) + - PROTOBUF_FIELD_OFFSET(FragmentUsage, organizations_)>( + reinterpret_cast(&organizations_), + reinterpret_cast(&other->organizations_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata FragmentUsage::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[99]); } + // =================================================================== -class ListFragmentsRequest::_Internal { +class ResolvedFragment::_Internal { public: + static const ::PROTOBUF_NAMESPACE_ID::Struct& resolved_config(const ResolvedFragment* msg); + static const ::viam::app::v1::FragmentError& error(const ResolvedFragment* msg); }; -ListFragmentsRequest::ListFragmentsRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:viam.app.v1.ListFragmentsRequest) +const ::PROTOBUF_NAMESPACE_ID::Struct& +ResolvedFragment::_Internal::resolved_config(const ResolvedFragment* msg) { + return *msg->resolved_config_; } -inline PROTOBUF_NDEBUG_INLINE ListFragmentsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : fragment_visibility_{visibility, arena, from.fragment_visibility_}, - _fragment_visibility_cached_byte_size_{0}, - organization_id_(arena, from.organization_id_), - _cached_size_{0} {} - -ListFragmentsRequest::ListFragmentsRequest( - ::google::protobuf::Arena* arena, - const ListFragmentsRequest& from) - : ::google::protobuf::Message(arena) { - ListFragmentsRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.show_public_ = from._impl_.show_public_; - +const ::viam::app::v1::FragmentError& +ResolvedFragment::_Internal::error(const ResolvedFragment* msg) { + return *msg->error_; +} +void ResolvedFragment::clear_resolved_config() { + if (GetArenaForAllocation() == nullptr && resolved_config_ != nullptr) { + delete resolved_config_; + } + resolved_config_ = nullptr; +} +ResolvedFragment::ResolvedFragment(::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.ResolvedFragment) +} +ResolvedFragment::ResolvedFragment(const ResolvedFragment& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + fragment_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + fragment_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_fragment_id().empty()) { + fragment_id_.Set(from._internal_fragment_id(), + GetArenaForAllocation()); + } + if (from._internal_has_resolved_config()) { + resolved_config_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.resolved_config_); + } else { + resolved_config_ = nullptr; + } + if (from._internal_has_error()) { + error_ = new ::viam::app::v1::FragmentError(*from.error_); + } else { + error_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.ResolvedFragment) +} + +inline void ResolvedFragment::SharedCtor() { +fragment_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + fragment_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&resolved_config_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&error_) - + reinterpret_cast(&resolved_config_)) + sizeof(error_)); +} + +ResolvedFragment::~ResolvedFragment() { + // @@protoc_insertion_point(destructor:viam.app.v1.ResolvedFragment) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ResolvedFragment::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + fragment_id_.Destroy(); + if (this != internal_default_instance()) delete resolved_config_; + if (this != internal_default_instance()) delete error_; +} + +void ResolvedFragment::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ResolvedFragment::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.ResolvedFragment) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + fragment_id_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && resolved_config_ != nullptr) { + delete resolved_config_; + } + resolved_config_ = nullptr; + if (GetArenaForAllocation() == nullptr && error_ != nullptr) { + delete error_; + } + error_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ResolvedFragment::_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 fragment_id = 1 [json_name = "fragmentId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_fragment_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ResolvedFragment.fragment_id")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct resolved_config = 2 [json_name = "resolvedConfig"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_resolved_config(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.app.v1.FragmentError error = 3 [json_name = "error"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_error(), 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* ResolvedFragment::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ResolvedFragment) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string fragment_id = 1 [json_name = "fragmentId"]; + if (!this->_internal_fragment_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_fragment_id().data(), static_cast(this->_internal_fragment_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ResolvedFragment.fragment_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_fragment_id(), target); + } + + // .google.protobuf.Struct resolved_config = 2 [json_name = "resolvedConfig"]; + if (this->_internal_has_resolved_config()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::resolved_config(this), + _Internal::resolved_config(this).GetCachedSize(), target, stream); + } + + // .viam.app.v1.FragmentError error = 3 [json_name = "error"]; + if (this->_internal_has_error()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::error(this), + _Internal::error(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.app.v1.ResolvedFragment) + return target; +} + +size_t ResolvedFragment::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ResolvedFragment) + 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 fragment_id = 1 [json_name = "fragmentId"]; + if (!this->_internal_fragment_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_fragment_id()); + } + + // .google.protobuf.Struct resolved_config = 2 [json_name = "resolvedConfig"]; + if (this->_internal_has_resolved_config()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *resolved_config_); + } + + // .viam.app.v1.FragmentError error = 3 [json_name = "error"]; + if (this->_internal_has_error()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *error_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ResolvedFragment::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ResolvedFragment::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ResolvedFragment::GetClassData() const { return &_class_data_; } + +void ResolvedFragment::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void ResolvedFragment::MergeFrom(const ResolvedFragment& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ResolvedFragment) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_fragment_id().empty()) { + _internal_set_fragment_id(from._internal_fragment_id()); + } + if (from._internal_has_resolved_config()) { + _internal_mutable_resolved_config()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_resolved_config()); + } + if (from._internal_has_error()) { + _internal_mutable_error()->::viam::app::v1::FragmentError::MergeFrom(from._internal_error()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ResolvedFragment::CopyFrom(const ResolvedFragment& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.ResolvedFragment) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ResolvedFragment::IsInitialized() const { + return true; +} + +void ResolvedFragment::InternalSwap(ResolvedFragment* 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( + &fragment_id_, lhs_arena, + &other->fragment_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(ResolvedFragment, error_) + + sizeof(ResolvedFragment::error_) + - PROTOBUF_FIELD_OFFSET(ResolvedFragment, resolved_config_)>( + reinterpret_cast(&resolved_config_), + reinterpret_cast(&other->resolved_config_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ResolvedFragment::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[100]); +} + +// =================================================================== + +class ListFragmentsRequest::_Internal { + public: +}; + +ListFragmentsRequest::ListFragmentsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + fragment_visibility_(arena) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.ListFragmentsRequest) +} +ListFragmentsRequest::ListFragmentsRequest(const ListFragmentsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + fragment_visibility_(from.fragment_visibility_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + organization_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_organization_id().empty()) { + organization_id_.Set(from._internal_organization_id(), + GetArenaForAllocation()); + } + show_public_ = from.show_public_; // @@protoc_insertion_point(copy_constructor:viam.app.v1.ListFragmentsRequest) } -inline PROTOBUF_NDEBUG_INLINE ListFragmentsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : fragment_visibility_{visibility, arena}, - _fragment_visibility_cached_byte_size_{0}, - organization_id_(arena), - _cached_size_{0} {} -inline void ListFragmentsRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.show_public_ = {}; +inline void ListFragmentsRequest::SharedCtor() { +organization_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +show_public_ = false; } + ListFragmentsRequest::~ListFragmentsRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.ListFragmentsRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ListFragmentsRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.organization_id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + organization_id_.Destroy(); } -PROTOBUF_NOINLINE void ListFragmentsRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.ListFragmentsRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.fragment_visibility_.Clear(); - _impl_.organization_id_.ClearToEmpty(); - _impl_.show_public_ = false; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void ListFragmentsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* ListFragmentsRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void ListFragmentsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.ListFragmentsRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + fragment_visibility_.Clear(); + organization_id_.ClearToEmpty(); + show_public_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListFragmentsRequest::_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 organization_id = 1 [json_name = "organizationId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_organization_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ListFragmentsRequest.organization_id")); + } else + goto handle_unusual; + continue; + // bool show_public = 2 [json_name = "showPublic"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + show_public_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // repeated .viam.app.v1.FragmentVisibility fragment_visibility = 3 [json_name = "fragmentVisibility"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_fragment_visibility(), ptr, ctx); + CHK_(ptr); + } else if (static_cast(tag) == 24) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_add_fragment_visibility(static_cast<::viam::app::v1::FragmentVisibility>(val)); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 56, 2> ListFragmentsRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_ListFragmentsRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string organization_id = 1 [json_name = "organizationId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ListFragmentsRequest, _impl_.organization_id_)}}, - // bool show_public = 2 [json_name = "showPublic"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(ListFragmentsRequest, _impl_.show_public_)}}, - // repeated .viam.app.v1.FragmentVisibility fragment_visibility = 3 [json_name = "fragmentVisibility"]; - {::_pbi::TcParser::FastV32P1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(ListFragmentsRequest, _impl_.fragment_visibility_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string organization_id = 1 [json_name = "organizationId"]; - {PROTOBUF_FIELD_OFFSET(ListFragmentsRequest, _impl_.organization_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // bool show_public = 2 [json_name = "showPublic"]; - {PROTOBUF_FIELD_OFFSET(ListFragmentsRequest, _impl_.show_public_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // repeated .viam.app.v1.FragmentVisibility fragment_visibility = 3 [json_name = "fragmentVisibility"]; - {PROTOBUF_FIELD_OFFSET(ListFragmentsRequest, _impl_.fragment_visibility_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kPackedOpenEnum)}, - }}, - // no aux_entries - {{ - "\40\17\0\0\0\0\0\0" - "viam.app.v1.ListFragmentsRequest" - "organization_id" - }}, -}; - -::uint8_t* ListFragmentsRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ListFragmentsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ListFragmentsRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string organization_id = 1 [json_name = "organizationId"]; if (!this->_internal_organization_id().empty()) { - const std::string& _s = this->_internal_organization_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ListFragmentsRequest.organization_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_organization_id().data(), static_cast(this->_internal_organization_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ListFragmentsRequest.organization_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_organization_id(), target); } // bool show_public = 2 [json_name = "showPublic"]; if (this->_internal_show_public() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 2, this->_internal_show_public(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_show_public(), target); } // repeated .viam.app.v1.FragmentVisibility fragment_visibility = 3 [json_name = "fragmentVisibility"]; { - std::size_t byte_size = _impl_._fragment_visibility_cached_byte_size_.Get(); + int byte_size = _fragment_visibility_cached_byte_size_.load(std::memory_order_relaxed); if (byte_size > 0) { - target = stream->WriteEnumPacked(3, _internal_fragment_visibility(), - byte_size, target); + target = stream->WriteEnumPacked( + 3, fragment_visibility_, byte_size, target); } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.ListFragmentsRequest) return target; } -::size_t ListFragmentsRequest::ByteSizeLong() const { +size_t ListFragmentsRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ListFragmentsRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.app.v1.FragmentVisibility fragment_visibility = 3 [json_name = "fragmentVisibility"]; { - std::size_t data_size = 0; - auto count = static_cast(this->_internal_fragment_visibility_size()); - - for (std::size_t i = 0; i < count; ++i) { + size_t data_size = 0; + unsigned int count = static_cast(this->_internal_fragment_visibility_size());for (unsigned int i = 0; i < count; i++) { data_size += ::_pbi::WireFormatLite::EnumSize( - this->_internal_fragment_visibility().Get(static_cast(i))); + this->_internal_fragment_visibility(static_cast(i))); } - total_size += data_size; if (data_size > 0) { - total_size += 1; - total_size += ::_pbi::WireFormatLite::Int32Size( - static_cast(data_size)); + total_size += 1 + + ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); } - _impl_._fragment_visibility_cached_byte_size_.Set(::_pbi::ToCachedSize(data_size)); + int cached_size = ::_pbi::ToCachedSize(data_size); + _fragment_visibility_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); + total_size += data_size; } + // string organization_id = 1 [json_name = "organizationId"]; if (!this->_internal_organization_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_organization_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_organization_id()); } // bool show_public = 2 [json_name = "showPublic"]; if (this->_internal_show_public() != 0) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ListFragmentsRequest::_class_data_ = { - ListFragmentsRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListFragmentsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ListFragmentsRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* ListFragmentsRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListFragmentsRequest::GetClassData() const { return &_class_data_; } + +void ListFragmentsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ListFragmentsRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ListFragmentsRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ListFragmentsRequest::MergeFrom(const ListFragmentsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ListFragmentsRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_fragment_visibility()->MergeFrom(from._internal_fragment_visibility()); + fragment_visibility_.MergeFrom(from.fragment_visibility_); if (!from._internal_organization_id().empty()) { - _this->_internal_set_organization_id(from._internal_organization_id()); + _internal_set_organization_id(from._internal_organization_id()); } if (from._internal_show_public() != 0) { - _this->_internal_set_show_public(from._internal_show_public()); + _internal_set_show_public(from._internal_show_public()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ListFragmentsRequest::CopyFrom(const ListFragmentsRequest& from) { @@ -29531,184 +29676,214 @@ void ListFragmentsRequest::CopyFrom(const ListFragmentsRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ListFragmentsRequest::IsInitialized() const { +bool ListFragmentsRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* ListFragmentsRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ListFragmentsRequest::InternalSwap(ListFragmentsRequest* PROTOBUF_RESTRICT other) { +void ListFragmentsRequest::InternalSwap(ListFragmentsRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.fragment_visibility_.InternalSwap(&other->_impl_.fragment_visibility_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.organization_id_, &other->_impl_.organization_id_, arena); - swap(_impl_.show_public_, other->_impl_.show_public_); + fragment_visibility_.InternalSwap(&other->fragment_visibility_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &organization_id_, lhs_arena, + &other->organization_id_, rhs_arena + ); + swap(show_public_, other->show_public_); } -::google::protobuf::Metadata ListFragmentsRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ListFragmentsRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[100]); + file_level_metadata_app_2fv1_2fapp_2eproto[101]); } + // =================================================================== class ListFragmentsResponse::_Internal { public: }; -ListFragmentsResponse::ListFragmentsResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ListFragmentsResponse::ListFragmentsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + fragments_(arena), + fragment_usages_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.v1.ListFragmentsResponse) } -inline PROTOBUF_NDEBUG_INLINE ListFragmentsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : fragments_{visibility, arena, from.fragments_}, - _cached_size_{0} {} - -ListFragmentsResponse::ListFragmentsResponse( - ::google::protobuf::Arena* arena, - const ListFragmentsResponse& from) - : ::google::protobuf::Message(arena) { - ListFragmentsResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +ListFragmentsResponse::ListFragmentsResponse(const ListFragmentsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + fragments_(from.fragments_), + fragment_usages_(from.fragment_usages_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.app.v1.ListFragmentsResponse) } -inline PROTOBUF_NDEBUG_INLINE ListFragmentsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : fragments_{visibility, arena}, - _cached_size_{0} {} -inline void ListFragmentsResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void ListFragmentsResponse::SharedCtor() { } + ListFragmentsResponse::~ListFragmentsResponse() { // @@protoc_insertion_point(destructor:viam.app.v1.ListFragmentsResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ListFragmentsResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void ListFragmentsResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.ListFragmentsResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.fragments_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void ListFragmentsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* ListFragmentsResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void ListFragmentsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.ListFragmentsResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + fragments_.Clear(); + fragment_usages_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListFragmentsResponse::_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) { + // repeated .viam.app.v1.Fragment fragments = 1 [json_name = "fragments"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_fragments(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + // repeated .viam.app.v1.FragmentUsage fragment_usages = 2 [json_name = "fragmentUsages"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_fragment_usages(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ListFragmentsResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ListFragmentsResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.app.v1.Fragment fragments = 1 [json_name = "fragments"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ListFragmentsResponse, _impl_.fragments_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.app.v1.Fragment fragments = 1 [json_name = "fragments"]; - {PROTOBUF_FIELD_OFFSET(ListFragmentsResponse, _impl_.fragments_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::Fragment>()}, - }}, {{ - }}, -}; - -::uint8_t* ListFragmentsResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ListFragmentsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ListFragmentsResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .viam.app.v1.Fragment fragments = 1 [json_name = "fragments"]; for (unsigned i = 0, n = static_cast(this->_internal_fragments_size()); i < n; i++) { - const auto& repfield = this->_internal_fragments().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_fragments(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } + // repeated .viam.app.v1.FragmentUsage fragment_usages = 2 [json_name = "fragmentUsages"]; + for (unsigned i = 0, + n = static_cast(this->_internal_fragment_usages_size()); i < n; i++) { + const auto& repfield = this->_internal_fragment_usages(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.ListFragmentsResponse) return target; } -::size_t ListFragmentsResponse::ByteSizeLong() const { +size_t ListFragmentsResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ListFragmentsResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.app.v1.Fragment fragments = 1 [json_name = "fragments"]; total_size += 1UL * this->_internal_fragments_size(); - for (const auto& msg : this->_internal_fragments()) { + for (const auto& msg : this->fragments_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // repeated .viam.app.v1.FragmentUsage fragment_usages = 2 [json_name = "fragmentUsages"]; + total_size += 1UL * this->_internal_fragment_usages_size(); + for (const auto& msg : this->fragment_usages_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ListFragmentsResponse::_class_data_ = { - ListFragmentsResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListFragmentsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ListFragmentsResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* ListFragmentsResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListFragmentsResponse::GetClassData() const { return &_class_data_; } + +void ListFragmentsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ListFragmentsResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ListFragmentsResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ListFragmentsResponse::MergeFrom(const ListFragmentsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ListFragmentsResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_fragments()->MergeFrom( - from._internal_fragments()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + fragments_.MergeFrom(from.fragments_); + fragment_usages_.MergeFrom(from.fragment_usages_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ListFragmentsResponse::CopyFrom(const ListFragmentsResponse& from) { @@ -29718,185 +29893,232 @@ void ListFragmentsResponse::CopyFrom(const ListFragmentsResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ListFragmentsResponse::IsInitialized() const { +bool ListFragmentsResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* ListFragmentsResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ListFragmentsResponse::InternalSwap(ListFragmentsResponse* PROTOBUF_RESTRICT other) { +void ListFragmentsResponse::InternalSwap(ListFragmentsResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.fragments_.InternalSwap(&other->_impl_.fragments_); + fragments_.InternalSwap(&other->fragments_); + fragment_usages_.InternalSwap(&other->fragment_usages_); } -::google::protobuf::Metadata ListFragmentsResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ListFragmentsResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[101]); + file_level_metadata_app_2fv1_2fapp_2eproto[102]); } + // =================================================================== class GetFragmentRequest::_Internal { public: }; -GetFragmentRequest::GetFragmentRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetFragmentRequest::GetFragmentRequest(::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.GetFragmentRequest) } -inline PROTOBUF_NDEBUG_INLINE GetFragmentRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : id_(arena, from.id_), - _cached_size_{0} {} - -GetFragmentRequest::GetFragmentRequest( - ::google::protobuf::Arena* arena, - const GetFragmentRequest& from) - : ::google::protobuf::Message(arena) { - GetFragmentRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetFragmentRequest::GetFragmentRequest(const GetFragmentRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } + current_organization_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + current_organization_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_current_organization_id().empty()) { + current_organization_id_.Set(from._internal_current_organization_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetFragmentRequest) } -inline PROTOBUF_NDEBUG_INLINE GetFragmentRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : id_(arena), - _cached_size_{0} {} -inline void GetFragmentRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetFragmentRequest::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +current_organization_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + current_organization_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + GetFragmentRequest::~GetFragmentRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.GetFragmentRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetFragmentRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); + current_organization_id_.Destroy(); } -PROTOBUF_NOINLINE void GetFragmentRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetFragmentRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void GetFragmentRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* GetFragmentRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void GetFragmentRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetFragmentRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + id_.ClearToEmpty(); + current_organization_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetFragmentRequest::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.GetFragmentRequest.id")); + } else + goto handle_unusual; + continue; + // string current_organization_id = 2 [json_name = "currentOrganizationId"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_current_organization_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.GetFragmentRequest.current_organization_id")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 41, 2> GetFragmentRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetFragmentRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string id = 1 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetFragmentRequest, _impl_.id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(GetFragmentRequest, _impl_.id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\36\2\0\0\0\0\0\0" - "viam.app.v1.GetFragmentRequest" - "id" - }}, -}; - -::uint8_t* GetFragmentRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetFragmentRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetFragmentRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.GetFragmentRequest.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.GetFragmentRequest.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); + } + + // string current_organization_id = 2 [json_name = "currentOrganizationId"]; + if (!this->_internal_current_organization_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_current_organization_id().data(), static_cast(this->_internal_current_organization_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.GetFragmentRequest.current_organization_id"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_current_organization_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.GetFragmentRequest) return target; } -::size_t GetFragmentRequest::ByteSizeLong() const { +size_t GetFragmentRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetFragmentRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); + } + + // string current_organization_id = 2 [json_name = "currentOrganizationId"]; + if (!this->_internal_current_organization_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_current_organization_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetFragmentRequest::_class_data_ = { - GetFragmentRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetFragmentRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetFragmentRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetFragmentRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetFragmentRequest::GetClassData() const { return &_class_data_; } + +void GetFragmentRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetFragmentRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetFragmentRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetFragmentRequest::MergeFrom(const GetFragmentRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetFragmentRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); + } + if (!from._internal_current_organization_id().empty()) { + _internal_set_current_organization_id(from._internal_current_organization_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetFragmentRequest::CopyFrom(const GetFragmentRequest& from) { @@ -29906,205 +30128,236 @@ void GetFragmentRequest::CopyFrom(const GetFragmentRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetFragmentRequest::IsInitialized() const { +bool GetFragmentRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetFragmentRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetFragmentRequest::InternalSwap(GetFragmentRequest* PROTOBUF_RESTRICT other) { +void GetFragmentRequest::InternalSwap(GetFragmentRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + ¤t_organization_id_, lhs_arena, + &other->current_organization_id_, rhs_arena + ); } -::google::protobuf::Metadata GetFragmentRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetFragmentRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[102]); + file_level_metadata_app_2fv1_2fapp_2eproto[103]); } + // =================================================================== class GetFragmentResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetFragmentResponse, _impl_._has_bits_); static const ::viam::app::v1::Fragment& fragment(const GetFragmentResponse* msg); - static void set_has_fragment(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::viam::app::v1::FragmentUsage& fragment_usage(const GetFragmentResponse* msg); }; -const ::viam::app::v1::Fragment& GetFragmentResponse::_Internal::fragment(const GetFragmentResponse* msg) { - return *msg->_impl_.fragment_; +const ::viam::app::v1::Fragment& +GetFragmentResponse::_Internal::fragment(const GetFragmentResponse* msg) { + return *msg->fragment_; } -GetFragmentResponse::GetFragmentResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +const ::viam::app::v1::FragmentUsage& +GetFragmentResponse::_Internal::fragment_usage(const GetFragmentResponse* msg) { + return *msg->fragment_usage_; +} +GetFragmentResponse::GetFragmentResponse(::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.GetFragmentResponse) } -inline PROTOBUF_NDEBUG_INLINE GetFragmentResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -GetFragmentResponse::GetFragmentResponse( - ::google::protobuf::Arena* arena, - const GetFragmentResponse& from) - : ::google::protobuf::Message(arena) { - GetFragmentResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.fragment_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::app::v1::Fragment>(arena, *from._impl_.fragment_) - : nullptr; - +GetFragmentResponse::GetFragmentResponse(const GetFragmentResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_fragment()) { + fragment_ = new ::viam::app::v1::Fragment(*from.fragment_); + } else { + fragment_ = nullptr; + } + if (from._internal_has_fragment_usage()) { + fragment_usage_ = new ::viam::app::v1::FragmentUsage(*from.fragment_usage_); + } else { + fragment_usage_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetFragmentResponse) } -inline PROTOBUF_NDEBUG_INLINE GetFragmentResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void GetFragmentResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.fragment_ = {}; +inline void GetFragmentResponse::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&fragment_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&fragment_usage_) - + reinterpret_cast(&fragment_)) + sizeof(fragment_usage_)); } + GetFragmentResponse::~GetFragmentResponse() { // @@protoc_insertion_point(destructor:viam.app.v1.GetFragmentResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetFragmentResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.fragment_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete fragment_; + if (this != internal_default_instance()) delete fragment_usage_; } -PROTOBUF_NOINLINE void GetFragmentResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetFragmentResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.fragment_ != nullptr); - _impl_.fragment_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void GetFragmentResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* GetFragmentResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void GetFragmentResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetFragmentResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && fragment_ != nullptr) { + delete fragment_; + } + fragment_ = nullptr; + if (GetArenaForAllocation() == nullptr && fragment_usage_ != nullptr) { + delete fragment_usage_; + } + fragment_usage_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetFragmentResponse::_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.app.v1.Fragment fragment = 1 [json_name = "fragment"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_fragment(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.app.v1.FragmentUsage fragment_usage = 2 [json_name = "fragmentUsage"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_fragment_usage(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetFragmentResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetFragmentResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetFragmentResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.app.v1.Fragment fragment = 1 [json_name = "fragment"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetFragmentResponse, _impl_.fragment_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.app.v1.Fragment fragment = 1 [json_name = "fragment"]; - {PROTOBUF_FIELD_OFFSET(GetFragmentResponse, _impl_.fragment_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::Fragment>()}, - }}, {{ - }}, -}; - -::uint8_t* GetFragmentResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetFragmentResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetFragmentResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.app.v1.Fragment fragment = 1 [json_name = "fragment"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::fragment(this), + if (this->_internal_has_fragment()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::fragment(this), _Internal::fragment(this).GetCachedSize(), target, stream); } + // .viam.app.v1.FragmentUsage fragment_usage = 2 [json_name = "fragmentUsage"]; + if (this->_internal_has_fragment_usage()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::fragment_usage(this), + _Internal::fragment_usage(this).GetCachedSize(), target, stream); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.GetFragmentResponse) return target; } -::size_t GetFragmentResponse::ByteSizeLong() const { +size_t GetFragmentResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetFragmentResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .viam.app.v1.Fragment fragment = 1 [json_name = "fragment"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.fragment_); + if (this->_internal_has_fragment()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *fragment_); + } + + // .viam.app.v1.FragmentUsage fragment_usage = 2 [json_name = "fragmentUsage"]; + if (this->_internal_has_fragment_usage()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *fragment_usage_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetFragmentResponse::_class_data_ = { - GetFragmentResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetFragmentResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetFragmentResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetFragmentResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetFragmentResponse::GetClassData() const { return &_class_data_; } + +void GetFragmentResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetFragmentResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetFragmentResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetFragmentResponse::MergeFrom(const GetFragmentResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetFragmentResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_fragment()->::viam::app::v1::Fragment::MergeFrom( - from._internal_fragment()); + if (from._internal_has_fragment()) { + _internal_mutable_fragment()->::viam::app::v1::Fragment::MergeFrom(from._internal_fragment()); + } + if (from._internal_has_fragment_usage()) { + _internal_mutable_fragment_usage()->::viam::app::v1::FragmentUsage::MergeFrom(from._internal_fragment_usage()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetFragmentResponse::CopyFrom(const GetFragmentResponse& from) { @@ -30114,305 +30367,322 @@ void GetFragmentResponse::CopyFrom(const GetFragmentResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetFragmentResponse::IsInitialized() const { +bool GetFragmentResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetFragmentResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetFragmentResponse::InternalSwap(GetFragmentResponse* PROTOBUF_RESTRICT other) { +void GetFragmentResponse::InternalSwap(GetFragmentResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.fragment_, other->_impl_.fragment_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GetFragmentResponse, fragment_usage_) + + sizeof(GetFragmentResponse::fragment_usage_) + - PROTOBUF_FIELD_OFFSET(GetFragmentResponse, fragment_)>( + reinterpret_cast(&fragment_), + reinterpret_cast(&other->fragment_)); } -::google::protobuf::Metadata GetFragmentResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetFragmentResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[103]); + file_level_metadata_app_2fv1_2fapp_2eproto[104]); } + // =================================================================== class CreateFragmentRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(CreateFragmentRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& config(const CreateFragmentRequest* msg); - static void set_has_config(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + using HasBits = decltype(std::declval()._has_bits_); + static const ::PROTOBUF_NAMESPACE_ID::Struct& config(const CreateFragmentRequest* msg); static void set_has_visibility(HasBits* has_bits) { - (*has_bits)[0] |= 2u; + (*has_bits)[0] |= 1u; } }; -const ::google::protobuf::Struct& CreateFragmentRequest::_Internal::config(const CreateFragmentRequest* msg) { - return *msg->_impl_.config_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +CreateFragmentRequest::_Internal::config(const CreateFragmentRequest* msg) { + return *msg->config_; } void CreateFragmentRequest::clear_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.config_ != nullptr) _impl_.config_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && config_ != nullptr) { + delete config_; + } + config_ = nullptr; } -CreateFragmentRequest::CreateFragmentRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +CreateFragmentRequest::CreateFragmentRequest(::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.CreateFragmentRequest) } -inline PROTOBUF_NDEBUG_INLINE CreateFragmentRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_), - organization_id_(arena, from.organization_id_) {} - -CreateFragmentRequest::CreateFragmentRequest( - ::google::protobuf::Arena* arena, - const CreateFragmentRequest& from) - : ::google::protobuf::Message(arena) { - CreateFragmentRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.config_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.config_) - : nullptr; - _impl_.visibility_ = from._impl_.visibility_; - +CreateFragmentRequest::CreateFragmentRequest(const CreateFragmentRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_) { + _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()); + } + organization_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_organization_id().empty()) { + organization_id_.Set(from._internal_organization_id(), + GetArenaForAllocation()); + } + if (from._internal_has_config()) { + config_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.config_); + } else { + config_ = nullptr; + } + visibility_ = from.visibility_; // @@protoc_insertion_point(copy_constructor:viam.app.v1.CreateFragmentRequest) } -inline PROTOBUF_NDEBUG_INLINE CreateFragmentRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena), - organization_id_(arena) {} - -inline void CreateFragmentRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, config_), - 0, - offsetof(Impl_, visibility_) - - offsetof(Impl_, config_) + - sizeof(Impl_::visibility_)); + +inline void CreateFragmentRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +organization_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&config_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&visibility_) - + reinterpret_cast(&config_)) + sizeof(visibility_)); } + CreateFragmentRequest::~CreateFragmentRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.CreateFragmentRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void CreateFragmentRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.organization_id_.Destroy(); - delete _impl_.config_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + organization_id_.Destroy(); + if (this != internal_default_instance()) delete config_; } -PROTOBUF_NOINLINE void CreateFragmentRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.CreateFragmentRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.name_.ClearToEmpty(); - _impl_.organization_id_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.config_ != nullptr); - _impl_.config_->Clear(); - } - _impl_.visibility_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void CreateFragmentRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* CreateFragmentRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void CreateFragmentRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.CreateFragmentRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + name_.ClearToEmpty(); + organization_id_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && config_ != nullptr) { + delete config_; + } + config_ = nullptr; + visibility_ = 0; + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CreateFragmentRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + 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.app.v1.CreateFragmentRequest.name")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct config = 2 [json_name = "config"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_config(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string organization_id = 3 [json_name = "organizationId"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_organization_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.CreateFragmentRequest.organization_id")); + } else + goto handle_unusual; + continue; + // optional .viam.app.v1.FragmentVisibility visibility = 4 [json_name = "visibility"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_visibility(static_cast<::viam::app::v1::FragmentVisibility>(val)); + } 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: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 1, 61, 2> CreateFragmentRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(CreateFragmentRequest, _impl_._has_bits_), - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_CreateFragmentRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // optional .viam.app.v1.FragmentVisibility visibility = 4 [json_name = "visibility"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreateFragmentRequest, _impl_.visibility_), 1>(), - {32, 1, 0, PROTOBUF_FIELD_OFFSET(CreateFragmentRequest, _impl_.visibility_)}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(CreateFragmentRequest, _impl_.name_)}}, - // .google.protobuf.Struct config = 2 [json_name = "config"]; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(CreateFragmentRequest, _impl_.config_)}}, - // string organization_id = 3 [json_name = "organizationId"]; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(CreateFragmentRequest, _impl_.organization_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(CreateFragmentRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct config = 2 [json_name = "config"]; - {PROTOBUF_FIELD_OFFSET(CreateFragmentRequest, _impl_.config_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // string organization_id = 3 [json_name = "organizationId"]; - {PROTOBUF_FIELD_OFFSET(CreateFragmentRequest, _impl_.organization_id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // optional .viam.app.v1.FragmentVisibility visibility = 4 [json_name = "visibility"]; - {PROTOBUF_FIELD_OFFSET(CreateFragmentRequest, _impl_.visibility_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\41\4\0\17\0\0\0\0" - "viam.app.v1.CreateFragmentRequest" - "name" - "organization_id" - }}, -}; - -::uint8_t* CreateFragmentRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* CreateFragmentRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.CreateFragmentRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.CreateFragmentRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.CreateFragmentRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct config = 2 [json_name = "config"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::config(this), + if (this->_internal_has_config()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::config(this), _Internal::config(this).GetCachedSize(), target, stream); } // string organization_id = 3 [json_name = "organizationId"]; if (!this->_internal_organization_id().empty()) { - const std::string& _s = this->_internal_organization_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.CreateFragmentRequest.organization_id"); - target = stream->WriteStringMaybeAliased(3, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_organization_id().data(), static_cast(this->_internal_organization_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.CreateFragmentRequest.organization_id"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_organization_id(), target); } // optional .viam.app.v1.FragmentVisibility visibility = 4 [json_name = "visibility"]; - if (cached_has_bits & 0x00000002u) { + if (_internal_has_visibility()) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 4, this->_internal_visibility(), target); + 4, this->_internal_visibility(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.CreateFragmentRequest) return target; } -::size_t CreateFragmentRequest::ByteSizeLong() const { +size_t CreateFragmentRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.CreateFragmentRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // string organization_id = 3 [json_name = "organizationId"]; if (!this->_internal_organization_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_organization_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_organization_id()); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // .google.protobuf.Struct config = 2 [json_name = "config"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.config_); - } - - // optional .viam.app.v1.FragmentVisibility visibility = 4 [json_name = "visibility"]; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_visibility()); - } + // .google.protobuf.Struct config = 2 [json_name = "config"]; + if (this->_internal_has_config()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *config_); + } + // optional .viam.app.v1.FragmentVisibility visibility = 4 [json_name = "visibility"]; + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_visibility()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData CreateFragmentRequest::_class_data_ = { - CreateFragmentRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CreateFragmentRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CreateFragmentRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* CreateFragmentRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CreateFragmentRequest::GetClassData() const { return &_class_data_; } + +void CreateFragmentRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void CreateFragmentRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.CreateFragmentRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void CreateFragmentRequest::MergeFrom(const CreateFragmentRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.CreateFragmentRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (!from._internal_organization_id().empty()) { - _this->_internal_set_organization_id(from._internal_organization_id()); + _internal_set_organization_id(from._internal_organization_id()); } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_config()->::google::protobuf::Struct::MergeFrom( - from._internal_config()); - } - if (cached_has_bits & 0x00000002u) { - _this->_impl_.visibility_ = from._impl_.visibility_; - } - _this->_impl_._has_bits_[0] |= cached_has_bits; + if (from._internal_has_config()) { + _internal_mutable_config()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_config()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_visibility()) { + _internal_set_visibility(from._internal_visibility()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CreateFragmentRequest::CopyFrom(const CreateFragmentRequest& from) { @@ -30422,213 +30692,200 @@ void CreateFragmentRequest::CopyFrom(const CreateFragmentRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool CreateFragmentRequest::IsInitialized() const { +bool CreateFragmentRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* CreateFragmentRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void CreateFragmentRequest::InternalSwap(CreateFragmentRequest* PROTOBUF_RESTRICT other) { +void CreateFragmentRequest::InternalSwap(CreateFragmentRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.organization_id_, &other->_impl_.organization_id_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(CreateFragmentRequest, _impl_.visibility_) - + sizeof(CreateFragmentRequest::_impl_.visibility_) - - PROTOBUF_FIELD_OFFSET(CreateFragmentRequest, _impl_.config_)>( - reinterpret_cast(&_impl_.config_), - reinterpret_cast(&other->_impl_.config_)); -} - -::google::protobuf::Metadata CreateFragmentRequest::GetMetadata() const { + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &organization_id_, lhs_arena, + &other->organization_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(CreateFragmentRequest, visibility_) + + sizeof(CreateFragmentRequest::visibility_) + - PROTOBUF_FIELD_OFFSET(CreateFragmentRequest, config_)>( + reinterpret_cast(&config_), + reinterpret_cast(&other->config_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata CreateFragmentRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[104]); + file_level_metadata_app_2fv1_2fapp_2eproto[105]); } + // =================================================================== class CreateFragmentResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(CreateFragmentResponse, _impl_._has_bits_); static const ::viam::app::v1::Fragment& fragment(const CreateFragmentResponse* msg); - static void set_has_fragment(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::app::v1::Fragment& CreateFragmentResponse::_Internal::fragment(const CreateFragmentResponse* msg) { - return *msg->_impl_.fragment_; +const ::viam::app::v1::Fragment& +CreateFragmentResponse::_Internal::fragment(const CreateFragmentResponse* msg) { + return *msg->fragment_; } -CreateFragmentResponse::CreateFragmentResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +CreateFragmentResponse::CreateFragmentResponse(::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.CreateFragmentResponse) } -inline PROTOBUF_NDEBUG_INLINE CreateFragmentResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -CreateFragmentResponse::CreateFragmentResponse( - ::google::protobuf::Arena* arena, - const CreateFragmentResponse& from) - : ::google::protobuf::Message(arena) { - CreateFragmentResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.fragment_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::app::v1::Fragment>(arena, *from._impl_.fragment_) - : nullptr; - +CreateFragmentResponse::CreateFragmentResponse(const CreateFragmentResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_fragment()) { + fragment_ = new ::viam::app::v1::Fragment(*from.fragment_); + } else { + fragment_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.CreateFragmentResponse) } -inline PROTOBUF_NDEBUG_INLINE CreateFragmentResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void CreateFragmentResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.fragment_ = {}; +inline void CreateFragmentResponse::SharedCtor() { +fragment_ = nullptr; } + CreateFragmentResponse::~CreateFragmentResponse() { // @@protoc_insertion_point(destructor:viam.app.v1.CreateFragmentResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void CreateFragmentResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.fragment_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete fragment_; } -PROTOBUF_NOINLINE void CreateFragmentResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.CreateFragmentResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.fragment_ != nullptr); - _impl_.fragment_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void CreateFragmentResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* CreateFragmentResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void CreateFragmentResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.CreateFragmentResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && fragment_ != nullptr) { + delete fragment_; + } + fragment_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CreateFragmentResponse::_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.app.v1.Fragment fragment = 1 [json_name = "fragment"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_fragment(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> CreateFragmentResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(CreateFragmentResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_CreateFragmentResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.app.v1.Fragment fragment = 1 [json_name = "fragment"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(CreateFragmentResponse, _impl_.fragment_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.app.v1.Fragment fragment = 1 [json_name = "fragment"]; - {PROTOBUF_FIELD_OFFSET(CreateFragmentResponse, _impl_.fragment_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::Fragment>()}, - }}, {{ - }}, -}; - -::uint8_t* CreateFragmentResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* CreateFragmentResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.CreateFragmentResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.app.v1.Fragment fragment = 1 [json_name = "fragment"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::fragment(this), + if (this->_internal_has_fragment()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::fragment(this), _Internal::fragment(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.CreateFragmentResponse) return target; } -::size_t CreateFragmentResponse::ByteSizeLong() const { +size_t CreateFragmentResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.CreateFragmentResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .viam.app.v1.Fragment fragment = 1 [json_name = "fragment"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.fragment_); + if (this->_internal_has_fragment()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *fragment_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData CreateFragmentResponse::_class_data_ = { - CreateFragmentResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CreateFragmentResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CreateFragmentResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* CreateFragmentResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CreateFragmentResponse::GetClassData() const { return &_class_data_; } + +void CreateFragmentResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void CreateFragmentResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.CreateFragmentResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void CreateFragmentResponse::MergeFrom(const CreateFragmentResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.CreateFragmentResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_fragment()->::viam::app::v1::Fragment::MergeFrom( - from._internal_fragment()); + if (from._internal_has_fragment()) { + _internal_mutable_fragment()->::viam::app::v1::Fragment::MergeFrom(from._internal_fragment()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CreateFragmentResponse::CopyFrom(const CreateFragmentResponse& from) { @@ -30638,342 +30895,356 @@ void CreateFragmentResponse::CopyFrom(const CreateFragmentResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool CreateFragmentResponse::IsInitialized() const { +bool CreateFragmentResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* CreateFragmentResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void CreateFragmentResponse::InternalSwap(CreateFragmentResponse* PROTOBUF_RESTRICT other) { +void CreateFragmentResponse::InternalSwap(CreateFragmentResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.fragment_, other->_impl_.fragment_); + swap(fragment_, other->fragment_); } -::google::protobuf::Metadata CreateFragmentResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata CreateFragmentResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[105]); + file_level_metadata_app_2fv1_2fapp_2eproto[106]); } + // =================================================================== class UpdateFragmentRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(UpdateFragmentRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& config(const UpdateFragmentRequest* msg); - static void set_has_config(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + using HasBits = decltype(std::declval()._has_bits_); + static const ::PROTOBUF_NAMESPACE_ID::Struct& config(const UpdateFragmentRequest* msg); static void set_has_public_(HasBits* has_bits) { - (*has_bits)[0] |= 2u; + (*has_bits)[0] |= 1u; } static void set_has_visibility(HasBits* has_bits) { - (*has_bits)[0] |= 4u; + (*has_bits)[0] |= 2u; } }; -const ::google::protobuf::Struct& UpdateFragmentRequest::_Internal::config(const UpdateFragmentRequest* msg) { - return *msg->_impl_.config_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +UpdateFragmentRequest::_Internal::config(const UpdateFragmentRequest* msg) { + return *msg->config_; } void UpdateFragmentRequest::clear_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.config_ != nullptr) _impl_.config_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && config_ != nullptr) { + delete config_; + } + config_ = nullptr; } -UpdateFragmentRequest::UpdateFragmentRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +UpdateFragmentRequest::UpdateFragmentRequest(::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.UpdateFragmentRequest) } -inline PROTOBUF_NDEBUG_INLINE UpdateFragmentRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - id_(arena, from.id_), - name_(arena, from.name_) {} - -UpdateFragmentRequest::UpdateFragmentRequest( - ::google::protobuf::Arena* arena, - const UpdateFragmentRequest& from) - : ::google::protobuf::Message(arena) { - UpdateFragmentRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.config_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.config_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, public__), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, public__), - offsetof(Impl_, visibility_) - - offsetof(Impl_, public__) + - sizeof(Impl_::visibility_)); - +UpdateFragmentRequest::UpdateFragmentRequest(const UpdateFragmentRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } + 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_config()) { + config_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.config_); + } else { + config_ = nullptr; + } + ::memcpy(&public__, &from.public__, + static_cast(reinterpret_cast(&visibility_) - + reinterpret_cast(&public__)) + sizeof(visibility_)); // @@protoc_insertion_point(copy_constructor:viam.app.v1.UpdateFragmentRequest) } -inline PROTOBUF_NDEBUG_INLINE UpdateFragmentRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - id_(arena), - name_(arena) {} - -inline void UpdateFragmentRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, config_), - 0, - offsetof(Impl_, visibility_) - - offsetof(Impl_, config_) + - sizeof(Impl_::visibility_)); + +inline void UpdateFragmentRequest::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&config_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&visibility_) - + reinterpret_cast(&config_)) + sizeof(visibility_)); } + UpdateFragmentRequest::~UpdateFragmentRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.UpdateFragmentRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void UpdateFragmentRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.name_.Destroy(); - delete _impl_.config_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); + name_.Destroy(); + if (this != internal_default_instance()) delete config_; } -PROTOBUF_NOINLINE void UpdateFragmentRequest::Clear() { +void UpdateFragmentRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void UpdateFragmentRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.UpdateFragmentRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.id_.ClearToEmpty(); - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.config_ != nullptr); - _impl_.config_->Clear(); - } - if (cached_has_bits & 0x00000006u) { - ::memset(&_impl_.public__, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.visibility_) - - reinterpret_cast(&_impl_.public__)) + sizeof(_impl_.visibility_)); + id_.ClearToEmpty(); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && config_ != nullptr) { + delete config_; } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* UpdateFragmentRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + config_ = nullptr; + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + ::memset(&public__, 0, static_cast( + reinterpret_cast(&visibility_) - + reinterpret_cast(&public__)) + sizeof(visibility_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* UpdateFragmentRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.UpdateFragmentRequest.id")); + } else + goto handle_unusual; + continue; + // string name = 2 [json_name = "name"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.UpdateFragmentRequest.name")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct config = 3 [json_name = "config"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_config(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional bool public = 4 [json_name = "public"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + _Internal::set_has_public_(&has_bits); + public__ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional .viam.app.v1.FragmentVisibility visibility = 5 [json_name = "visibility"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_visibility(static_cast<::viam::app::v1::FragmentVisibility>(val)); + } 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: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 5, 1, 48, 2> UpdateFragmentRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(UpdateFragmentRequest, _impl_._has_bits_), - 0, // no _extensions_ - 5, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967264, // skipmap - offsetof(decltype(_table_), field_entries), - 5, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_UpdateFragmentRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string id = 1 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(UpdateFragmentRequest, _impl_.id_)}}, - // string name = 2 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(UpdateFragmentRequest, _impl_.name_)}}, - // .google.protobuf.Struct config = 3 [json_name = "config"]; - {::_pbi::TcParser::FastMtS1, - {26, 0, 0, PROTOBUF_FIELD_OFFSET(UpdateFragmentRequest, _impl_.config_)}}, - // optional bool public = 4 [json_name = "public"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {32, 1, 0, PROTOBUF_FIELD_OFFSET(UpdateFragmentRequest, _impl_.public__)}}, - // optional .viam.app.v1.FragmentVisibility visibility = 5 [json_name = "visibility"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(UpdateFragmentRequest, _impl_.visibility_), 2>(), - {40, 2, 0, PROTOBUF_FIELD_OFFSET(UpdateFragmentRequest, _impl_.visibility_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(UpdateFragmentRequest, _impl_.id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string name = 2 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(UpdateFragmentRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct config = 3 [json_name = "config"]; - {PROTOBUF_FIELD_OFFSET(UpdateFragmentRequest, _impl_.config_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // optional bool public = 4 [json_name = "public"]; - {PROTOBUF_FIELD_OFFSET(UpdateFragmentRequest, _impl_.public__), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // optional .viam.app.v1.FragmentVisibility visibility = 5 [json_name = "visibility"]; - {PROTOBUF_FIELD_OFFSET(UpdateFragmentRequest, _impl_.visibility_), _Internal::kHasBitsOffset + 2, 0, - (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\41\2\4\0\0\0\0\0" - "viam.app.v1.UpdateFragmentRequest" - "id" - "name" - }}, -}; - -::uint8_t* UpdateFragmentRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* UpdateFragmentRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.UpdateFragmentRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.UpdateFragmentRequest.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.UpdateFragmentRequest.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); } // string name = 2 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.UpdateFragmentRequest.name"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.UpdateFragmentRequest.name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct config = 3 [json_name = "config"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::config(this), + if (this->_internal_has_config()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::config(this), _Internal::config(this).GetCachedSize(), target, stream); } // optional bool public = 4 [json_name = "public"]; - if (cached_has_bits & 0x00000002u) { + if (_internal_has_public_()) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 4, this->_internal_public_(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(4, this->_internal_public_(), target); } // optional .viam.app.v1.FragmentVisibility visibility = 5 [json_name = "visibility"]; - if (cached_has_bits & 0x00000004u) { + if (_internal_has_visibility()) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 5, this->_internal_visibility(), target); + 5, this->_internal_visibility(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.UpdateFragmentRequest) return target; } -::size_t UpdateFragmentRequest::ByteSizeLong() const { +size_t UpdateFragmentRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.UpdateFragmentRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } // string name = 2 [json_name = "name"]; if (!this->_internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - // .google.protobuf.Struct config = 3 [json_name = "config"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.config_); - } + // .google.protobuf.Struct config = 3 [json_name = "config"]; + if (this->_internal_has_config()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *config_); + } + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000003u) { // optional bool public = 4 [json_name = "public"]; - if (cached_has_bits & 0x00000002u) { - total_size += 2; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + 1; } // optional .viam.app.v1.FragmentVisibility visibility = 5 [json_name = "visibility"]; - if (cached_has_bits & 0x00000004u) { + if (cached_has_bits & 0x00000002u) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_visibility()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_visibility()); } } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData UpdateFragmentRequest::_class_data_ = { - UpdateFragmentRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UpdateFragmentRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + UpdateFragmentRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* UpdateFragmentRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UpdateFragmentRequest::GetClassData() const { return &_class_data_; } + +void UpdateFragmentRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void UpdateFragmentRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.UpdateFragmentRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void UpdateFragmentRequest::MergeFrom(const UpdateFragmentRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.UpdateFragmentRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { + if (from._internal_has_config()) { + _internal_mutable_config()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_config()); + } + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_config()->::google::protobuf::Struct::MergeFrom( - from._internal_config()); + public__ = from.public__; } if (cached_has_bits & 0x00000002u) { - _this->_impl_.public__ = from._impl_.public__; - } - if (cached_has_bits & 0x00000004u) { - _this->_impl_.visibility_ = from._impl_.visibility_; + visibility_ = from.visibility_; } - _this->_impl_._has_bits_[0] |= cached_has_bits; + _has_bits_[0] |= cached_has_bits; } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void UpdateFragmentRequest::CopyFrom(const UpdateFragmentRequest& from) { @@ -30983,213 +31254,200 @@ void UpdateFragmentRequest::CopyFrom(const UpdateFragmentRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool UpdateFragmentRequest::IsInitialized() const { +bool UpdateFragmentRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* UpdateFragmentRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void UpdateFragmentRequest::InternalSwap(UpdateFragmentRequest* PROTOBUF_RESTRICT other) { +void UpdateFragmentRequest::InternalSwap(UpdateFragmentRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(UpdateFragmentRequest, _impl_.visibility_) - + sizeof(UpdateFragmentRequest::_impl_.visibility_) - - PROTOBUF_FIELD_OFFSET(UpdateFragmentRequest, _impl_.config_)>( - reinterpret_cast(&_impl_.config_), - reinterpret_cast(&other->_impl_.config_)); -} - -::google::protobuf::Metadata UpdateFragmentRequest::GetMetadata() const { + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(UpdateFragmentRequest, visibility_) + + sizeof(UpdateFragmentRequest::visibility_) + - PROTOBUF_FIELD_OFFSET(UpdateFragmentRequest, config_)>( + reinterpret_cast(&config_), + reinterpret_cast(&other->config_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata UpdateFragmentRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[106]); + file_level_metadata_app_2fv1_2fapp_2eproto[107]); } + // =================================================================== class UpdateFragmentResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(UpdateFragmentResponse, _impl_._has_bits_); static const ::viam::app::v1::Fragment& fragment(const UpdateFragmentResponse* msg); - static void set_has_fragment(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::app::v1::Fragment& UpdateFragmentResponse::_Internal::fragment(const UpdateFragmentResponse* msg) { - return *msg->_impl_.fragment_; +const ::viam::app::v1::Fragment& +UpdateFragmentResponse::_Internal::fragment(const UpdateFragmentResponse* msg) { + return *msg->fragment_; } -UpdateFragmentResponse::UpdateFragmentResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +UpdateFragmentResponse::UpdateFragmentResponse(::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.UpdateFragmentResponse) } -inline PROTOBUF_NDEBUG_INLINE UpdateFragmentResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -UpdateFragmentResponse::UpdateFragmentResponse( - ::google::protobuf::Arena* arena, - const UpdateFragmentResponse& from) - : ::google::protobuf::Message(arena) { - UpdateFragmentResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.fragment_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::app::v1::Fragment>(arena, *from._impl_.fragment_) - : nullptr; - +UpdateFragmentResponse::UpdateFragmentResponse(const UpdateFragmentResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_fragment()) { + fragment_ = new ::viam::app::v1::Fragment(*from.fragment_); + } else { + fragment_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.UpdateFragmentResponse) } -inline PROTOBUF_NDEBUG_INLINE UpdateFragmentResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void UpdateFragmentResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.fragment_ = {}; +inline void UpdateFragmentResponse::SharedCtor() { +fragment_ = nullptr; } + UpdateFragmentResponse::~UpdateFragmentResponse() { // @@protoc_insertion_point(destructor:viam.app.v1.UpdateFragmentResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void UpdateFragmentResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.fragment_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete fragment_; } -PROTOBUF_NOINLINE void UpdateFragmentResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.UpdateFragmentResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.fragment_ != nullptr); - _impl_.fragment_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void UpdateFragmentResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* UpdateFragmentResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void UpdateFragmentResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.UpdateFragmentResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && fragment_ != nullptr) { + delete fragment_; + } + fragment_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* UpdateFragmentResponse::_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.app.v1.Fragment fragment = 1 [json_name = "fragment"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_fragment(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> UpdateFragmentResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(UpdateFragmentResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_UpdateFragmentResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.app.v1.Fragment fragment = 1 [json_name = "fragment"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(UpdateFragmentResponse, _impl_.fragment_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.app.v1.Fragment fragment = 1 [json_name = "fragment"]; - {PROTOBUF_FIELD_OFFSET(UpdateFragmentResponse, _impl_.fragment_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::Fragment>()}, - }}, {{ - }}, -}; - -::uint8_t* UpdateFragmentResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* UpdateFragmentResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.UpdateFragmentResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.app.v1.Fragment fragment = 1 [json_name = "fragment"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::fragment(this), + if (this->_internal_has_fragment()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::fragment(this), _Internal::fragment(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.UpdateFragmentResponse) return target; } -::size_t UpdateFragmentResponse::ByteSizeLong() const { +size_t UpdateFragmentResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.UpdateFragmentResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .viam.app.v1.Fragment fragment = 1 [json_name = "fragment"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.fragment_); + if (this->_internal_has_fragment()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *fragment_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData UpdateFragmentResponse::_class_data_ = { - UpdateFragmentResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UpdateFragmentResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + UpdateFragmentResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* UpdateFragmentResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UpdateFragmentResponse::GetClassData() const { return &_class_data_; } + +void UpdateFragmentResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void UpdateFragmentResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.UpdateFragmentResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void UpdateFragmentResponse::MergeFrom(const UpdateFragmentResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.UpdateFragmentResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_fragment()->::viam::app::v1::Fragment::MergeFrom( - from._internal_fragment()); + if (from._internal_has_fragment()) { + _internal_mutable_fragment()->::viam::app::v1::Fragment::MergeFrom(from._internal_fragment()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void UpdateFragmentResponse::CopyFrom(const UpdateFragmentResponse& from) { @@ -31199,186 +31457,187 @@ void UpdateFragmentResponse::CopyFrom(const UpdateFragmentResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool UpdateFragmentResponse::IsInitialized() const { +bool UpdateFragmentResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* UpdateFragmentResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void UpdateFragmentResponse::InternalSwap(UpdateFragmentResponse* PROTOBUF_RESTRICT other) { +void UpdateFragmentResponse::InternalSwap(UpdateFragmentResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.fragment_, other->_impl_.fragment_); + swap(fragment_, other->fragment_); } -::google::protobuf::Metadata UpdateFragmentResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata UpdateFragmentResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[107]); + file_level_metadata_app_2fv1_2fapp_2eproto[108]); } + // =================================================================== class DeleteFragmentRequest::_Internal { public: }; -DeleteFragmentRequest::DeleteFragmentRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +DeleteFragmentRequest::DeleteFragmentRequest(::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.DeleteFragmentRequest) } -inline PROTOBUF_NDEBUG_INLINE DeleteFragmentRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : id_(arena, from.id_), - _cached_size_{0} {} - -DeleteFragmentRequest::DeleteFragmentRequest( - ::google::protobuf::Arena* arena, - const DeleteFragmentRequest& from) - : ::google::protobuf::Message(arena) { - DeleteFragmentRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +DeleteFragmentRequest::DeleteFragmentRequest(const DeleteFragmentRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.DeleteFragmentRequest) } -inline PROTOBUF_NDEBUG_INLINE DeleteFragmentRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : id_(arena), - _cached_size_{0} {} -inline void DeleteFragmentRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void DeleteFragmentRequest::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + DeleteFragmentRequest::~DeleteFragmentRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.DeleteFragmentRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void DeleteFragmentRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); } -PROTOBUF_NOINLINE void DeleteFragmentRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.DeleteFragmentRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void DeleteFragmentRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* DeleteFragmentRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void DeleteFragmentRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.DeleteFragmentRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DeleteFragmentRequest::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.DeleteFragmentRequest.id")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 44, 2> DeleteFragmentRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_DeleteFragmentRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string id = 1 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(DeleteFragmentRequest, _impl_.id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(DeleteFragmentRequest, _impl_.id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\41\2\0\0\0\0\0\0" - "viam.app.v1.DeleteFragmentRequest" - "id" - }}, -}; - -::uint8_t* DeleteFragmentRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* DeleteFragmentRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.DeleteFragmentRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.DeleteFragmentRequest.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.DeleteFragmentRequest.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.DeleteFragmentRequest) return target; } -::size_t DeleteFragmentRequest::ByteSizeLong() const { +size_t DeleteFragmentRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.DeleteFragmentRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData DeleteFragmentRequest::_class_data_ = { - DeleteFragmentRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeleteFragmentRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + DeleteFragmentRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* DeleteFragmentRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeleteFragmentRequest::GetClassData() const { return &_class_data_; } + +void DeleteFragmentRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void DeleteFragmentRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.DeleteFragmentRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void DeleteFragmentRequest::MergeFrom(const DeleteFragmentRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.DeleteFragmentRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void DeleteFragmentRequest::CopyFrom(const DeleteFragmentRequest& from) { @@ -31388,45 +31647,41 @@ void DeleteFragmentRequest::CopyFrom(const DeleteFragmentRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool DeleteFragmentRequest::IsInitialized() const { +bool DeleteFragmentRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* DeleteFragmentRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void DeleteFragmentRequest::InternalSwap(DeleteFragmentRequest* PROTOBUF_RESTRICT other) { +void DeleteFragmentRequest::InternalSwap(DeleteFragmentRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); } -::google::protobuf::Metadata DeleteFragmentRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata DeleteFragmentRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[108]); + file_level_metadata_app_2fv1_2fapp_2eproto[109]); } + // =================================================================== class DeleteFragmentResponse::_Internal { public: }; -DeleteFragmentResponse::DeleteFragmentResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +DeleteFragmentResponse::DeleteFragmentResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.app.v1.DeleteFragmentResponse) } -DeleteFragmentResponse::DeleteFragmentResponse( - ::google::protobuf::Arena* arena, - const DeleteFragmentResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - DeleteFragmentResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +DeleteFragmentResponse::DeleteFragmentResponse(const DeleteFragmentResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.app.v1.DeleteFragmentResponse) } @@ -31434,22 +31689,29 @@ DeleteFragmentResponse::DeleteFragmentResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeleteFragmentResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeleteFragmentResponse::GetClassData() const { return &_class_data_; } + + -::google::protobuf::Metadata DeleteFragmentResponse::GetMetadata() const { + +::PROTOBUF_NAMESPACE_ID::Metadata DeleteFragmentResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[109]); + file_level_metadata_app_2fv1_2fapp_2eproto[110]); } + // =================================================================== class GetFragmentHistoryRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetFragmentHistoryRequest, _impl_._has_bits_); + using HasBits = decltype(std::declval()._has_bits_); static void set_has_page_token(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -31458,228 +31720,249 @@ class GetFragmentHistoryRequest::_Internal { } }; -GetFragmentHistoryRequest::GetFragmentHistoryRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetFragmentHistoryRequest::GetFragmentHistoryRequest(::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.GetFragmentHistoryRequest) } -inline PROTOBUF_NDEBUG_INLINE GetFragmentHistoryRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - id_(arena, from.id_), - page_token_(arena, from.page_token_) {} - -GetFragmentHistoryRequest::GetFragmentHistoryRequest( - ::google::protobuf::Arena* arena, - const GetFragmentHistoryRequest& from) - : ::google::protobuf::Message(arena) { - GetFragmentHistoryRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.page_limit_ = from._impl_.page_limit_; - +GetFragmentHistoryRequest::GetFragmentHistoryRequest(const GetFragmentHistoryRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } + page_token_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + page_token_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (from._internal_has_page_token()) { + page_token_.Set(from._internal_page_token(), + GetArenaForAllocation()); + } + page_limit_ = from.page_limit_; // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetFragmentHistoryRequest) } -inline PROTOBUF_NDEBUG_INLINE GetFragmentHistoryRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - id_(arena), - page_token_(arena) {} -inline void GetFragmentHistoryRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.page_limit_ = {}; +inline void GetFragmentHistoryRequest::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +page_token_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + page_token_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +page_limit_ = int64_t{0}; } + GetFragmentHistoryRequest::~GetFragmentHistoryRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.GetFragmentHistoryRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetFragmentHistoryRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.page_token_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); + page_token_.Destroy(); +} + +void GetFragmentHistoryRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetFragmentHistoryRequest::Clear() { +void GetFragmentHistoryRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.GetFragmentHistoryRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.id_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; + id_.ClearToEmpty(); + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { - _impl_.page_token_.ClearNonDefaultToEmpty(); - } - _impl_.page_limit_ = ::int64_t{0}; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetFragmentHistoryRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + page_token_.ClearNonDefaultToEmpty(); + } + page_limit_ = int64_t{0}; + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetFragmentHistoryRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.GetFragmentHistoryRequest.id")); + } else + goto handle_unusual; + continue; + // optional string page_token = 2 [json_name = "pageToken"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_page_token(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.GetFragmentHistoryRequest.page_token")); + } else + goto handle_unusual; + continue; + // optional int64 page_limit = 3 [json_name = "pageLimit"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + _Internal::set_has_page_limit(&has_bits); + page_limit_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 58, 2> GetFragmentHistoryRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetFragmentHistoryRequest, _impl_._has_bits_), - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetFragmentHistoryRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string id = 1 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetFragmentHistoryRequest, _impl_.id_)}}, - // optional string page_token = 2 [json_name = "pageToken"]; - {::_pbi::TcParser::FastUS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(GetFragmentHistoryRequest, _impl_.page_token_)}}, - // optional int64 page_limit = 3 [json_name = "pageLimit"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GetFragmentHistoryRequest, _impl_.page_limit_), 1>(), - {24, 1, 0, PROTOBUF_FIELD_OFFSET(GetFragmentHistoryRequest, _impl_.page_limit_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(GetFragmentHistoryRequest, _impl_.id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // optional string page_token = 2 [json_name = "pageToken"]; - {PROTOBUF_FIELD_OFFSET(GetFragmentHistoryRequest, _impl_.page_token_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // optional int64 page_limit = 3 [json_name = "pageLimit"]; - {PROTOBUF_FIELD_OFFSET(GetFragmentHistoryRequest, _impl_.page_limit_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, - }}, - // no aux_entries - {{ - "\45\2\12\0\0\0\0\0" - "viam.app.v1.GetFragmentHistoryRequest" - "id" - "page_token" - }}, -}; - -::uint8_t* GetFragmentHistoryRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetFragmentHistoryRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetFragmentHistoryRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.GetFragmentHistoryRequest.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.GetFragmentHistoryRequest.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); } - cached_has_bits = _impl_._has_bits_[0]; // optional string page_token = 2 [json_name = "pageToken"]; - if (cached_has_bits & 0x00000001u) { - const std::string& _s = this->_internal_page_token(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.GetFragmentHistoryRequest.page_token"); - target = stream->WriteStringMaybeAliased(2, _s, target); + if (_internal_has_page_token()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_page_token().data(), static_cast(this->_internal_page_token().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.GetFragmentHistoryRequest.page_token"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_page_token(), target); } // optional int64 page_limit = 3 [json_name = "pageLimit"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<3>( - stream, this->_internal_page_limit(), target); + if (_internal_has_page_limit()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(3, this->_internal_page_limit(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.GetFragmentHistoryRequest) return target; } -::size_t GetFragmentHistoryRequest::ByteSizeLong() const { +size_t GetFragmentHistoryRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetFragmentHistoryRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000003u) { // optional string page_token = 2 [json_name = "pageToken"]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_page_token()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_page_token()); } // optional int64 page_limit = 3 [json_name = "pageLimit"]; if (cached_has_bits & 0x00000002u) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( - this->_internal_page_limit()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_page_limit()); } } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetFragmentHistoryRequest::_class_data_ = { - GetFragmentHistoryRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetFragmentHistoryRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetFragmentHistoryRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetFragmentHistoryRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetFragmentHistoryRequest::GetClassData() const { return &_class_data_; } + +void GetFragmentHistoryRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetFragmentHistoryRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetFragmentHistoryRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetFragmentHistoryRequest::MergeFrom(const GetFragmentHistoryRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetFragmentHistoryRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } - cached_has_bits = from._impl_._has_bits_[0]; + cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - _this->_internal_set_page_token(from._internal_page_token()); + _internal_set_page_token(from._internal_page_token()); } if (cached_has_bits & 0x00000002u) { - _this->_impl_.page_limit_ = from._impl_.page_limit_; + page_limit_ = from.page_limit_; } - _this->_impl_._has_bits_[0] |= cached_has_bits; + _has_bits_[0] |= cached_has_bits; } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetFragmentHistoryRequest::CopyFrom(const GetFragmentHistoryRequest& from) { @@ -31689,215 +31972,230 @@ void GetFragmentHistoryRequest::CopyFrom(const GetFragmentHistoryRequest& from) MergeFrom(from); } -PROTOBUF_NOINLINE bool GetFragmentHistoryRequest::IsInitialized() const { +bool GetFragmentHistoryRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetFragmentHistoryRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetFragmentHistoryRequest::InternalSwap(GetFragmentHistoryRequest* PROTOBUF_RESTRICT other) { +void GetFragmentHistoryRequest::InternalSwap(GetFragmentHistoryRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.page_token_, &other->_impl_.page_token_, arena); - swap(_impl_.page_limit_, other->_impl_.page_limit_); -} - -::google::protobuf::Metadata GetFragmentHistoryRequest::GetMetadata() const { + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &page_token_, lhs_arena, + &other->page_token_, rhs_arena + ); + swap(page_limit_, other->page_limit_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetFragmentHistoryRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[110]); + file_level_metadata_app_2fv1_2fapp_2eproto[111]); } + // =================================================================== class GetFragmentHistoryResponse::_Internal { public: }; -GetFragmentHistoryResponse::GetFragmentHistoryResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetFragmentHistoryResponse::GetFragmentHistoryResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + history_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.v1.GetFragmentHistoryResponse) } -inline PROTOBUF_NDEBUG_INLINE GetFragmentHistoryResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : history_{visibility, arena, from.history_}, - next_page_token_(arena, from.next_page_token_), - _cached_size_{0} {} - -GetFragmentHistoryResponse::GetFragmentHistoryResponse( - ::google::protobuf::Arena* arena, - const GetFragmentHistoryResponse& from) - : ::google::protobuf::Message(arena) { - GetFragmentHistoryResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetFragmentHistoryResponse::GetFragmentHistoryResponse(const GetFragmentHistoryResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + history_(from.history_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + next_page_token_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + next_page_token_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_next_page_token().empty()) { + next_page_token_.Set(from._internal_next_page_token(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetFragmentHistoryResponse) } -inline PROTOBUF_NDEBUG_INLINE GetFragmentHistoryResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : history_{visibility, arena}, - next_page_token_(arena), - _cached_size_{0} {} -inline void GetFragmentHistoryResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetFragmentHistoryResponse::SharedCtor() { +next_page_token_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + next_page_token_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + GetFragmentHistoryResponse::~GetFragmentHistoryResponse() { // @@protoc_insertion_point(destructor:viam.app.v1.GetFragmentHistoryResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetFragmentHistoryResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.next_page_token_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + next_page_token_.Destroy(); } -PROTOBUF_NOINLINE void GetFragmentHistoryResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetFragmentHistoryResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.history_.Clear(); - _impl_.next_page_token_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void GetFragmentHistoryResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* GetFragmentHistoryResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void GetFragmentHistoryResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetFragmentHistoryResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + history_.Clear(); + next_page_token_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetFragmentHistoryResponse::_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) { + // repeated .viam.app.v1.FragmentHistoryEntry history = 1 [json_name = "history"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_history(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + // string next_page_token = 2 [json_name = "nextPageToken"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_next_page_token(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.GetFragmentHistoryResponse.next_page_token")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 62, 2> GetFragmentHistoryResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetFragmentHistoryResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string next_page_token = 2 [json_name = "nextPageToken"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(GetFragmentHistoryResponse, _impl_.next_page_token_)}}, - // repeated .viam.app.v1.FragmentHistoryEntry history = 1 [json_name = "history"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetFragmentHistoryResponse, _impl_.history_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.app.v1.FragmentHistoryEntry history = 1 [json_name = "history"]; - {PROTOBUF_FIELD_OFFSET(GetFragmentHistoryResponse, _impl_.history_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // string next_page_token = 2 [json_name = "nextPageToken"]; - {PROTOBUF_FIELD_OFFSET(GetFragmentHistoryResponse, _impl_.next_page_token_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::FragmentHistoryEntry>()}, - }}, {{ - "\46\0\17\0\0\0\0\0" - "viam.app.v1.GetFragmentHistoryResponse" - "next_page_token" - }}, -}; - -::uint8_t* GetFragmentHistoryResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetFragmentHistoryResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetFragmentHistoryResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .viam.app.v1.FragmentHistoryEntry history = 1 [json_name = "history"]; for (unsigned i = 0, n = static_cast(this->_internal_history_size()); i < n; i++) { - const auto& repfield = this->_internal_history().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_history(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } // string next_page_token = 2 [json_name = "nextPageToken"]; if (!this->_internal_next_page_token().empty()) { - const std::string& _s = this->_internal_next_page_token(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.GetFragmentHistoryResponse.next_page_token"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_next_page_token().data(), static_cast(this->_internal_next_page_token().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.GetFragmentHistoryResponse.next_page_token"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_next_page_token(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.GetFragmentHistoryResponse) return target; } -::size_t GetFragmentHistoryResponse::ByteSizeLong() const { +size_t GetFragmentHistoryResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetFragmentHistoryResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.app.v1.FragmentHistoryEntry history = 1 [json_name = "history"]; total_size += 1UL * this->_internal_history_size(); - for (const auto& msg : this->_internal_history()) { + for (const auto& msg : this->history_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // string next_page_token = 2 [json_name = "nextPageToken"]; if (!this->_internal_next_page_token().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_next_page_token()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_next_page_token()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetFragmentHistoryResponse::_class_data_ = { - GetFragmentHistoryResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetFragmentHistoryResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetFragmentHistoryResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetFragmentHistoryResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetFragmentHistoryResponse::GetClassData() const { return &_class_data_; } + +void GetFragmentHistoryResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetFragmentHistoryResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetFragmentHistoryResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetFragmentHistoryResponse::MergeFrom(const GetFragmentHistoryResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetFragmentHistoryResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_history()->MergeFrom( - from._internal_history()); + history_.MergeFrom(from.history_); if (!from._internal_next_page_token().empty()) { - _this->_internal_set_next_page_token(from._internal_next_page_token()); + _internal_set_next_page_token(from._internal_next_page_token()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetFragmentHistoryResponse::CopyFrom(const GetFragmentHistoryResponse& from) { @@ -31907,188 +32205,193 @@ void GetFragmentHistoryResponse::CopyFrom(const GetFragmentHistoryResponse& from MergeFrom(from); } -PROTOBUF_NOINLINE bool GetFragmentHistoryResponse::IsInitialized() const { +bool GetFragmentHistoryResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetFragmentHistoryResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetFragmentHistoryResponse::InternalSwap(GetFragmentHistoryResponse* PROTOBUF_RESTRICT other) { +void GetFragmentHistoryResponse::InternalSwap(GetFragmentHistoryResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.history_.InternalSwap(&other->_impl_.history_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.next_page_token_, &other->_impl_.next_page_token_, arena); + history_.InternalSwap(&other->history_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &next_page_token_, lhs_arena, + &other->next_page_token_, rhs_arena + ); } -::google::protobuf::Metadata GetFragmentHistoryResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetFragmentHistoryResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[111]); + file_level_metadata_app_2fv1_2fapp_2eproto[112]); } + // =================================================================== class ListRobotsRequest::_Internal { public: }; -ListRobotsRequest::ListRobotsRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ListRobotsRequest::ListRobotsRequest(::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.ListRobotsRequest) } -inline PROTOBUF_NDEBUG_INLINE ListRobotsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : location_id_(arena, from.location_id_), - _cached_size_{0} {} - -ListRobotsRequest::ListRobotsRequest( - ::google::protobuf::Arena* arena, - const ListRobotsRequest& from) - : ::google::protobuf::Message(arena) { - ListRobotsRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +ListRobotsRequest::ListRobotsRequest(const ListRobotsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + location_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + location_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_location_id().empty()) { + location_id_.Set(from._internal_location_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.ListRobotsRequest) } -inline PROTOBUF_NDEBUG_INLINE ListRobotsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : location_id_(arena), - _cached_size_{0} {} -inline void ListRobotsRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void ListRobotsRequest::SharedCtor() { +location_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + location_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + ListRobotsRequest::~ListRobotsRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.ListRobotsRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ListRobotsRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.location_id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + location_id_.Destroy(); } -PROTOBUF_NOINLINE void ListRobotsRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.ListRobotsRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.location_id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void ListRobotsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* ListRobotsRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void ListRobotsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.ListRobotsRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + location_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListRobotsRequest::_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 location_id = 1 [json_name = "locationId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_location_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ListRobotsRequest.location_id")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 49, 2> ListRobotsRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_ListRobotsRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string location_id = 1 [json_name = "locationId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ListRobotsRequest, _impl_.location_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string location_id = 1 [json_name = "locationId"]; - {PROTOBUF_FIELD_OFFSET(ListRobotsRequest, _impl_.location_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\35\13\0\0\0\0\0\0" - "viam.app.v1.ListRobotsRequest" - "location_id" - }}, -}; - -::uint8_t* ListRobotsRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ListRobotsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ListRobotsRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string location_id = 1 [json_name = "locationId"]; if (!this->_internal_location_id().empty()) { - const std::string& _s = this->_internal_location_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ListRobotsRequest.location_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_location_id().data(), static_cast(this->_internal_location_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ListRobotsRequest.location_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_location_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.ListRobotsRequest) return target; } -::size_t ListRobotsRequest::ByteSizeLong() const { +size_t ListRobotsRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ListRobotsRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string location_id = 1 [json_name = "locationId"]; if (!this->_internal_location_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_location_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_location_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ListRobotsRequest::_class_data_ = { - ListRobotsRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListRobotsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ListRobotsRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* ListRobotsRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListRobotsRequest::GetClassData() const { return &_class_data_; } + +void ListRobotsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ListRobotsRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ListRobotsRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ListRobotsRequest::MergeFrom(const ListRobotsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ListRobotsRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_location_id().empty()) { - _this->_internal_set_location_id(from._internal_location_id()); + _internal_set_location_id(from._internal_location_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ListRobotsRequest::CopyFrom(const ListRobotsRequest& from) { @@ -32098,212 +32401,229 @@ void ListRobotsRequest::CopyFrom(const ListRobotsRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ListRobotsRequest::IsInitialized() const { +bool ListRobotsRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* ListRobotsRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ListRobotsRequest::InternalSwap(ListRobotsRequest* PROTOBUF_RESTRICT other) { +void ListRobotsRequest::InternalSwap(ListRobotsRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.location_id_, &other->_impl_.location_id_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &location_id_, lhs_arena, + &other->location_id_, rhs_arena + ); } -::google::protobuf::Metadata ListRobotsRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ListRobotsRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[112]); + file_level_metadata_app_2fv1_2fapp_2eproto[113]); } + // =================================================================== class ListMachineFragmentsRequest::_Internal { public: }; -ListMachineFragmentsRequest::ListMachineFragmentsRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ListMachineFragmentsRequest::ListMachineFragmentsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + additional_fragment_ids_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.v1.ListMachineFragmentsRequest) } -inline PROTOBUF_NDEBUG_INLINE ListMachineFragmentsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : additional_fragment_ids_{visibility, arena, from.additional_fragment_ids_}, - machine_id_(arena, from.machine_id_), - _cached_size_{0} {} - -ListMachineFragmentsRequest::ListMachineFragmentsRequest( - ::google::protobuf::Arena* arena, - const ListMachineFragmentsRequest& from) - : ::google::protobuf::Message(arena) { - ListMachineFragmentsRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +ListMachineFragmentsRequest::ListMachineFragmentsRequest(const ListMachineFragmentsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + additional_fragment_ids_(from.additional_fragment_ids_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + machine_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + machine_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_machine_id().empty()) { + machine_id_.Set(from._internal_machine_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.ListMachineFragmentsRequest) } -inline PROTOBUF_NDEBUG_INLINE ListMachineFragmentsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : additional_fragment_ids_{visibility, arena}, - machine_id_(arena), - _cached_size_{0} {} -inline void ListMachineFragmentsRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void ListMachineFragmentsRequest::SharedCtor() { +machine_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + machine_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + ListMachineFragmentsRequest::~ListMachineFragmentsRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.ListMachineFragmentsRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ListMachineFragmentsRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.machine_id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + machine_id_.Destroy(); } -PROTOBUF_NOINLINE void ListMachineFragmentsRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.ListMachineFragmentsRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.additional_fragment_ids_.Clear(); - _impl_.machine_id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void ListMachineFragmentsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* ListMachineFragmentsRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +void ListMachineFragmentsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.ListMachineFragmentsRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + additional_fragment_ids_.Clear(); + machine_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListMachineFragmentsRequest::_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 machine_id = 1 [json_name = "machineId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_machine_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ListMachineFragmentsRequest.machine_id")); + } else + goto handle_unusual; + continue; + // repeated string additional_fragment_ids = 2 [json_name = "additionalFragmentIds"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_additional_fragment_ids(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ListMachineFragmentsRequest.additional_fragment_ids")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 81, 2> ListMachineFragmentsRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_ListMachineFragmentsRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated string additional_fragment_ids = 2 [json_name = "additionalFragmentIds"]; - {::_pbi::TcParser::FastUR1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(ListMachineFragmentsRequest, _impl_.additional_fragment_ids_)}}, - // string machine_id = 1 [json_name = "machineId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ListMachineFragmentsRequest, _impl_.machine_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string machine_id = 1 [json_name = "machineId"]; - {PROTOBUF_FIELD_OFFSET(ListMachineFragmentsRequest, _impl_.machine_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated string additional_fragment_ids = 2 [json_name = "additionalFragmentIds"]; - {PROTOBUF_FIELD_OFFSET(ListMachineFragmentsRequest, _impl_.additional_fragment_ids_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - }}, - // no aux_entries - {{ - "\47\12\27\0\0\0\0\0" - "viam.app.v1.ListMachineFragmentsRequest" - "machine_id" - "additional_fragment_ids" - }}, -}; - -::uint8_t* ListMachineFragmentsRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ListMachineFragmentsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ListMachineFragmentsRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string machine_id = 1 [json_name = "machineId"]; if (!this->_internal_machine_id().empty()) { - const std::string& _s = this->_internal_machine_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ListMachineFragmentsRequest.machine_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_machine_id().data(), static_cast(this->_internal_machine_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ListMachineFragmentsRequest.machine_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_machine_id(), target); } // repeated string additional_fragment_ids = 2 [json_name = "additionalFragmentIds"]; - for (int i = 0, n = this->_internal_additional_fragment_ids_size(); i < n; ++i) { - const auto& s = this->_internal_additional_fragment_ids().Get(i); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ListMachineFragmentsRequest.additional_fragment_ids"); + for (int i = 0, n = this->_internal_additional_fragment_ids_size(); i < n; i++) { + const auto& s = this->_internal_additional_fragment_ids(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ListMachineFragmentsRequest.additional_fragment_ids"); target = stream->WriteString(2, s, target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.ListMachineFragmentsRequest) return target; } -::size_t ListMachineFragmentsRequest::ByteSizeLong() const { +size_t ListMachineFragmentsRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ListMachineFragmentsRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated string additional_fragment_ids = 2 [json_name = "additionalFragmentIds"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_additional_fragment_ids().size()); - for (int i = 0, n = _internal_additional_fragment_ids().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - _internal_additional_fragment_ids().Get(i)); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(additional_fragment_ids_.size()); + for (int i = 0, n = additional_fragment_ids_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + additional_fragment_ids_.Get(i)); } + // string machine_id = 1 [json_name = "machineId"]; if (!this->_internal_machine_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_machine_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_machine_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ListMachineFragmentsRequest::_class_data_ = { - ListMachineFragmentsRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListMachineFragmentsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ListMachineFragmentsRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* ListMachineFragmentsRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListMachineFragmentsRequest::GetClassData() const { return &_class_data_; } + +void ListMachineFragmentsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ListMachineFragmentsRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ListMachineFragmentsRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ListMachineFragmentsRequest::MergeFrom(const ListMachineFragmentsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ListMachineFragmentsRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_additional_fragment_ids()->MergeFrom(from._internal_additional_fragment_ids()); + additional_fragment_ids_.MergeFrom(from.additional_fragment_ids_); if (!from._internal_machine_id().empty()) { - _this->_internal_set_machine_id(from._internal_machine_id()); + _internal_set_machine_id(from._internal_machine_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ListMachineFragmentsRequest::CopyFrom(const ListMachineFragmentsRequest& from) { @@ -32313,209 +32633,213 @@ void ListMachineFragmentsRequest::CopyFrom(const ListMachineFragmentsRequest& fr MergeFrom(from); } -PROTOBUF_NOINLINE bool ListMachineFragmentsRequest::IsInitialized() const { +bool ListMachineFragmentsRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* ListMachineFragmentsRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ListMachineFragmentsRequest::InternalSwap(ListMachineFragmentsRequest* PROTOBUF_RESTRICT other) { +void ListMachineFragmentsRequest::InternalSwap(ListMachineFragmentsRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.additional_fragment_ids_.InternalSwap(&other->_impl_.additional_fragment_ids_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.machine_id_, &other->_impl_.machine_id_, arena); + additional_fragment_ids_.InternalSwap(&other->additional_fragment_ids_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &machine_id_, lhs_arena, + &other->machine_id_, rhs_arena + ); } -::google::protobuf::Metadata ListMachineFragmentsRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ListMachineFragmentsRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[113]); + file_level_metadata_app_2fv1_2fapp_2eproto[114]); } + // =================================================================== class ListMachineFragmentsResponse::_Internal { public: }; -ListMachineFragmentsResponse::ListMachineFragmentsResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ListMachineFragmentsResponse::ListMachineFragmentsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + fragments_(arena), + resolved_fragments_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.v1.ListMachineFragmentsResponse) } -inline PROTOBUF_NDEBUG_INLINE ListMachineFragmentsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : fragments_{visibility, arena, from.fragments_}, - resolved_fragments_{visibility, arena, from.resolved_fragments_}, - _cached_size_{0} {} - -ListMachineFragmentsResponse::ListMachineFragmentsResponse( - ::google::protobuf::Arena* arena, - const ListMachineFragmentsResponse& from) - : ::google::protobuf::Message(arena) { - ListMachineFragmentsResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +ListMachineFragmentsResponse::ListMachineFragmentsResponse(const ListMachineFragmentsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + fragments_(from.fragments_), + resolved_fragments_(from.resolved_fragments_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.app.v1.ListMachineFragmentsResponse) } -inline PROTOBUF_NDEBUG_INLINE ListMachineFragmentsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : fragments_{visibility, arena}, - resolved_fragments_{visibility, arena}, - _cached_size_{0} {} -inline void ListMachineFragmentsResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void ListMachineFragmentsResponse::SharedCtor() { } + ListMachineFragmentsResponse::~ListMachineFragmentsResponse() { // @@protoc_insertion_point(destructor:viam.app.v1.ListMachineFragmentsResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ListMachineFragmentsResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void ListMachineFragmentsResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.ListMachineFragmentsResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.fragments_.Clear(); - _impl_.resolved_fragments_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void ListMachineFragmentsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* ListMachineFragmentsResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void ListMachineFragmentsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.ListMachineFragmentsResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + fragments_.Clear(); + resolved_fragments_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListMachineFragmentsResponse::_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) { + // repeated .viam.app.v1.Fragment fragments = 1 [json_name = "fragments"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_fragments(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + // repeated .viam.app.v1.ResolvedFragment resolved_fragments = 2 [json_name = "resolvedFragments"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_resolved_fragments(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 2, 0, 2> ListMachineFragmentsResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ListMachineFragmentsResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.app.v1.ResolvedFragment resolved_fragments = 2 [json_name = "resolvedFragments"]; - {::_pbi::TcParser::FastMtR1, - {18, 63, 1, PROTOBUF_FIELD_OFFSET(ListMachineFragmentsResponse, _impl_.resolved_fragments_)}}, - // repeated .viam.app.v1.Fragment fragments = 1 [json_name = "fragments"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ListMachineFragmentsResponse, _impl_.fragments_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.app.v1.Fragment fragments = 1 [json_name = "fragments"]; - {PROTOBUF_FIELD_OFFSET(ListMachineFragmentsResponse, _impl_.fragments_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated .viam.app.v1.ResolvedFragment resolved_fragments = 2 [json_name = "resolvedFragments"]; - {PROTOBUF_FIELD_OFFSET(ListMachineFragmentsResponse, _impl_.resolved_fragments_), 0, 1, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::Fragment>()}, - {::_pbi::TcParser::GetTable<::viam::app::v1::ResolvedFragment>()}, - }}, {{ - }}, -}; - -::uint8_t* ListMachineFragmentsResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ListMachineFragmentsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ListMachineFragmentsResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .viam.app.v1.Fragment fragments = 1 [json_name = "fragments"]; for (unsigned i = 0, n = static_cast(this->_internal_fragments_size()); i < n; i++) { - const auto& repfield = this->_internal_fragments().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_fragments(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } // repeated .viam.app.v1.ResolvedFragment resolved_fragments = 2 [json_name = "resolvedFragments"]; for (unsigned i = 0, n = static_cast(this->_internal_resolved_fragments_size()); i < n; i++) { - const auto& repfield = this->_internal_resolved_fragments().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_resolved_fragments(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.ListMachineFragmentsResponse) return target; } -::size_t ListMachineFragmentsResponse::ByteSizeLong() const { +size_t ListMachineFragmentsResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ListMachineFragmentsResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.app.v1.Fragment fragments = 1 [json_name = "fragments"]; total_size += 1UL * this->_internal_fragments_size(); - for (const auto& msg : this->_internal_fragments()) { + for (const auto& msg : this->fragments_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // repeated .viam.app.v1.ResolvedFragment resolved_fragments = 2 [json_name = "resolvedFragments"]; total_size += 1UL * this->_internal_resolved_fragments_size(); - for (const auto& msg : this->_internal_resolved_fragments()) { + for (const auto& msg : this->resolved_fragments_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ListMachineFragmentsResponse::_class_data_ = { - ListMachineFragmentsResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListMachineFragmentsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ListMachineFragmentsResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* ListMachineFragmentsResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListMachineFragmentsResponse::GetClassData() const { return &_class_data_; } + +void ListMachineFragmentsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ListMachineFragmentsResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ListMachineFragmentsResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ListMachineFragmentsResponse::MergeFrom(const ListMachineFragmentsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ListMachineFragmentsResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_fragments()->MergeFrom( - from._internal_fragments()); - _this->_internal_mutable_resolved_fragments()->MergeFrom( - from._internal_resolved_fragments()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + fragments_.MergeFrom(from.fragments_); + resolved_fragments_.MergeFrom(from.resolved_fragments_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ListMachineFragmentsResponse::CopyFrom(const ListMachineFragmentsResponse& from) { @@ -32525,181 +32849,176 @@ void ListMachineFragmentsResponse::CopyFrom(const ListMachineFragmentsResponse& MergeFrom(from); } -PROTOBUF_NOINLINE bool ListMachineFragmentsResponse::IsInitialized() const { +bool ListMachineFragmentsResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* ListMachineFragmentsResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ListMachineFragmentsResponse::InternalSwap(ListMachineFragmentsResponse* PROTOBUF_RESTRICT other) { +void ListMachineFragmentsResponse::InternalSwap(ListMachineFragmentsResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.fragments_.InternalSwap(&other->_impl_.fragments_); - _impl_.resolved_fragments_.InternalSwap(&other->_impl_.resolved_fragments_); + fragments_.InternalSwap(&other->fragments_); + resolved_fragments_.InternalSwap(&other->resolved_fragments_); } -::google::protobuf::Metadata ListMachineFragmentsResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ListMachineFragmentsResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[114]); + file_level_metadata_app_2fv1_2fapp_2eproto[115]); } + // =================================================================== class ListRobotsResponse::_Internal { public: }; -ListRobotsResponse::ListRobotsResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ListRobotsResponse::ListRobotsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + robots_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.v1.ListRobotsResponse) } -inline PROTOBUF_NDEBUG_INLINE ListRobotsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : robots_{visibility, arena, from.robots_}, - _cached_size_{0} {} - -ListRobotsResponse::ListRobotsResponse( - ::google::protobuf::Arena* arena, - const ListRobotsResponse& from) - : ::google::protobuf::Message(arena) { - ListRobotsResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +ListRobotsResponse::ListRobotsResponse(const ListRobotsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + robots_(from.robots_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.app.v1.ListRobotsResponse) } -inline PROTOBUF_NDEBUG_INLINE ListRobotsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : robots_{visibility, arena}, - _cached_size_{0} {} -inline void ListRobotsResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void ListRobotsResponse::SharedCtor() { } + ListRobotsResponse::~ListRobotsResponse() { // @@protoc_insertion_point(destructor:viam.app.v1.ListRobotsResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ListRobotsResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void ListRobotsResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.ListRobotsResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.robots_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void ListRobotsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* ListRobotsResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void ListRobotsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.ListRobotsResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + robots_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListRobotsResponse::_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) { + // repeated .viam.app.v1.Robot robots = 1 [json_name = "robots"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_robots(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ListRobotsResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ListRobotsResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.app.v1.Robot robots = 1 [json_name = "robots"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ListRobotsResponse, _impl_.robots_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.app.v1.Robot robots = 1 [json_name = "robots"]; - {PROTOBUF_FIELD_OFFSET(ListRobotsResponse, _impl_.robots_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::Robot>()}, - }}, {{ - }}, -}; - -::uint8_t* ListRobotsResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ListRobotsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ListRobotsResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .viam.app.v1.Robot robots = 1 [json_name = "robots"]; for (unsigned i = 0, n = static_cast(this->_internal_robots_size()); i < n; i++) { - const auto& repfield = this->_internal_robots().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_robots(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.ListRobotsResponse) return target; } -::size_t ListRobotsResponse::ByteSizeLong() const { +size_t ListRobotsResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ListRobotsResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.app.v1.Robot robots = 1 [json_name = "robots"]; total_size += 1UL * this->_internal_robots_size(); - for (const auto& msg : this->_internal_robots()) { + for (const auto& msg : this->robots_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ListRobotsResponse::_class_data_ = { - ListRobotsResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListRobotsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ListRobotsResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* ListRobotsResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListRobotsResponse::GetClassData() const { return &_class_data_; } + +void ListRobotsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ListRobotsResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ListRobotsResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ListRobotsResponse::MergeFrom(const ListRobotsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ListRobotsResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_robots()->MergeFrom( - from._internal_robots()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + robots_.MergeFrom(from.robots_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ListRobotsResponse::CopyFrom(const ListRobotsResponse& from) { @@ -32709,213 +33028,231 @@ void ListRobotsResponse::CopyFrom(const ListRobotsResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ListRobotsResponse::IsInitialized() const { +bool ListRobotsResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* ListRobotsResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ListRobotsResponse::InternalSwap(ListRobotsResponse* PROTOBUF_RESTRICT other) { +void ListRobotsResponse::InternalSwap(ListRobotsResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.robots_.InternalSwap(&other->_impl_.robots_); + robots_.InternalSwap(&other->robots_); } -::google::protobuf::Metadata ListRobotsResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ListRobotsResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[115]); + file_level_metadata_app_2fv1_2fapp_2eproto[116]); } + // =================================================================== class NewRobotRequest::_Internal { public: }; -NewRobotRequest::NewRobotRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +NewRobotRequest::NewRobotRequest(::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.NewRobotRequest) } -inline PROTOBUF_NDEBUG_INLINE NewRobotRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : name_(arena, from.name_), - location_(arena, from.location_), - _cached_size_{0} {} - -NewRobotRequest::NewRobotRequest( - ::google::protobuf::Arena* arena, - const NewRobotRequest& from) - : ::google::protobuf::Message(arena) { - NewRobotRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +NewRobotRequest::NewRobotRequest(const NewRobotRequest& 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()); + } + location_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + location_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_location().empty()) { + location_.Set(from._internal_location(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.NewRobotRequest) } -inline PROTOBUF_NDEBUG_INLINE NewRobotRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : name_(arena), - location_(arena), - _cached_size_{0} {} -inline void NewRobotRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void NewRobotRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +location_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + location_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + NewRobotRequest::~NewRobotRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.NewRobotRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void NewRobotRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.location_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + location_.Destroy(); } -PROTOBUF_NOINLINE void NewRobotRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.NewRobotRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.name_.ClearToEmpty(); - _impl_.location_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void NewRobotRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* NewRobotRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void NewRobotRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.NewRobotRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + name_.ClearToEmpty(); + location_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* NewRobotRequest::_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.app.v1.NewRobotRequest.name")); + } else + goto handle_unusual; + continue; + // string location = 2 [json_name = "location"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_location(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.NewRobotRequest.location")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 48, 2> NewRobotRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_NewRobotRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string location = 2 [json_name = "location"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(NewRobotRequest, _impl_.location_)}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(NewRobotRequest, _impl_.name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(NewRobotRequest, _impl_.name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string location = 2 [json_name = "location"]; - {PROTOBUF_FIELD_OFFSET(NewRobotRequest, _impl_.location_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\33\4\10\0\0\0\0\0" - "viam.app.v1.NewRobotRequest" - "name" - "location" - }}, -}; - -::uint8_t* NewRobotRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* NewRobotRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.NewRobotRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.NewRobotRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.NewRobotRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // string location = 2 [json_name = "location"]; if (!this->_internal_location().empty()) { - const std::string& _s = this->_internal_location(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.NewRobotRequest.location"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_location().data(), static_cast(this->_internal_location().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.NewRobotRequest.location"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_location(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.NewRobotRequest) return target; } -::size_t NewRobotRequest::ByteSizeLong() const { +size_t NewRobotRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.NewRobotRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // string location = 2 [json_name = "location"]; if (!this->_internal_location().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_location()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_location()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData NewRobotRequest::_class_data_ = { - NewRobotRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NewRobotRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + NewRobotRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* NewRobotRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NewRobotRequest::GetClassData() const { return &_class_data_; } + +void NewRobotRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void NewRobotRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.NewRobotRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void NewRobotRequest::MergeFrom(const NewRobotRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.NewRobotRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (!from._internal_location().empty()) { - _this->_internal_set_location(from._internal_location()); + _internal_set_location(from._internal_location()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void NewRobotRequest::CopyFrom(const NewRobotRequest& from) { @@ -32925,188 +33262,196 @@ void NewRobotRequest::CopyFrom(const NewRobotRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool NewRobotRequest::IsInitialized() const { +bool NewRobotRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* NewRobotRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void NewRobotRequest::InternalSwap(NewRobotRequest* PROTOBUF_RESTRICT other) { +void NewRobotRequest::InternalSwap(NewRobotRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.location_, &other->_impl_.location_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &location_, lhs_arena, + &other->location_, rhs_arena + ); } -::google::protobuf::Metadata NewRobotRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata NewRobotRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[116]); + file_level_metadata_app_2fv1_2fapp_2eproto[117]); } + // =================================================================== class NewRobotResponse::_Internal { public: }; -NewRobotResponse::NewRobotResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +NewRobotResponse::NewRobotResponse(::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.NewRobotResponse) } -inline PROTOBUF_NDEBUG_INLINE NewRobotResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : id_(arena, from.id_), - _cached_size_{0} {} - -NewRobotResponse::NewRobotResponse( - ::google::protobuf::Arena* arena, - const NewRobotResponse& from) - : ::google::protobuf::Message(arena) { - NewRobotResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +NewRobotResponse::NewRobotResponse(const NewRobotResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.NewRobotResponse) } -inline PROTOBUF_NDEBUG_INLINE NewRobotResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : id_(arena), - _cached_size_{0} {} -inline void NewRobotResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void NewRobotResponse::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + NewRobotResponse::~NewRobotResponse() { // @@protoc_insertion_point(destructor:viam.app.v1.NewRobotResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void NewRobotResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); } -PROTOBUF_NOINLINE void NewRobotResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.NewRobotResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void NewRobotResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* NewRobotResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void NewRobotResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.NewRobotResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* NewRobotResponse::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.NewRobotResponse.id")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 39, 2> NewRobotResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_NewRobotResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string id = 1 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(NewRobotResponse, _impl_.id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(NewRobotResponse, _impl_.id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\34\2\0\0\0\0\0\0" - "viam.app.v1.NewRobotResponse" - "id" - }}, -}; - -::uint8_t* NewRobotResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* NewRobotResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.NewRobotResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.NewRobotResponse.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.NewRobotResponse.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.NewRobotResponse) return target; } -::size_t NewRobotResponse::ByteSizeLong() const { +size_t NewRobotResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.NewRobotResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData NewRobotResponse::_class_data_ = { - NewRobotResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NewRobotResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + NewRobotResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* NewRobotResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NewRobotResponse::GetClassData() const { return &_class_data_; } + +void NewRobotResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void NewRobotResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.NewRobotResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void NewRobotResponse::MergeFrom(const NewRobotResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.NewRobotResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void NewRobotResponse::CopyFrom(const NewRobotResponse& from) { @@ -33116,244 +33461,280 @@ void NewRobotResponse::CopyFrom(const NewRobotResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool NewRobotResponse::IsInitialized() const { +bool NewRobotResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* NewRobotResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void NewRobotResponse::InternalSwap(NewRobotResponse* PROTOBUF_RESTRICT other) { +void NewRobotResponse::InternalSwap(NewRobotResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); } -::google::protobuf::Metadata NewRobotResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata NewRobotResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[117]); + file_level_metadata_app_2fv1_2fapp_2eproto[118]); } + // =================================================================== class UpdateRobotRequest::_Internal { public: }; -UpdateRobotRequest::UpdateRobotRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +UpdateRobotRequest::UpdateRobotRequest(::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.UpdateRobotRequest) } -inline PROTOBUF_NDEBUG_INLINE UpdateRobotRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : id_(arena, from.id_), - name_(arena, from.name_), - location_(arena, from.location_), - _cached_size_{0} {} - -UpdateRobotRequest::UpdateRobotRequest( - ::google::protobuf::Arena* arena, - const UpdateRobotRequest& from) - : ::google::protobuf::Message(arena) { - UpdateRobotRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +UpdateRobotRequest::UpdateRobotRequest(const UpdateRobotRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } + 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()); + } + location_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + location_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_location().empty()) { + location_.Set(from._internal_location(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.UpdateRobotRequest) } -inline PROTOBUF_NDEBUG_INLINE UpdateRobotRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : id_(arena), - name_(arena), - location_(arena), - _cached_size_{0} {} -inline void UpdateRobotRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void UpdateRobotRequest::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +location_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + location_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + UpdateRobotRequest::~UpdateRobotRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.UpdateRobotRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void UpdateRobotRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.name_.Destroy(); - _impl_.location_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); + name_.Destroy(); + location_.Destroy(); } -PROTOBUF_NOINLINE void UpdateRobotRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.UpdateRobotRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.id_.ClearToEmpty(); - _impl_.name_.ClearToEmpty(); - _impl_.location_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void UpdateRobotRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* UpdateRobotRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void UpdateRobotRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.UpdateRobotRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + id_.ClearToEmpty(); + name_.ClearToEmpty(); + location_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* UpdateRobotRequest::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.UpdateRobotRequest.id")); + } else + goto handle_unusual; + continue; + // string name = 2 [json_name = "name"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.UpdateRobotRequest.name")); + } else + goto handle_unusual; + continue; + // string location = 3 [json_name = "location"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_location(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.UpdateRobotRequest.location")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 53, 2> UpdateRobotRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_UpdateRobotRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string id = 1 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(UpdateRobotRequest, _impl_.id_)}}, - // string name = 2 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(UpdateRobotRequest, _impl_.name_)}}, - // string location = 3 [json_name = "location"]; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(UpdateRobotRequest, _impl_.location_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(UpdateRobotRequest, _impl_.id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string name = 2 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(UpdateRobotRequest, _impl_.name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string location = 3 [json_name = "location"]; - {PROTOBUF_FIELD_OFFSET(UpdateRobotRequest, _impl_.location_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\36\2\4\10\0\0\0\0" - "viam.app.v1.UpdateRobotRequest" - "id" - "name" - "location" - }}, -}; - -::uint8_t* UpdateRobotRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* UpdateRobotRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.UpdateRobotRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.UpdateRobotRequest.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.UpdateRobotRequest.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); } // string name = 2 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.UpdateRobotRequest.name"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.UpdateRobotRequest.name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_name(), target); } // string location = 3 [json_name = "location"]; if (!this->_internal_location().empty()) { - const std::string& _s = this->_internal_location(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.UpdateRobotRequest.location"); - target = stream->WriteStringMaybeAliased(3, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_location().data(), static_cast(this->_internal_location().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.UpdateRobotRequest.location"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_location(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.UpdateRobotRequest) return target; } -::size_t UpdateRobotRequest::ByteSizeLong() const { +size_t UpdateRobotRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.UpdateRobotRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } // string name = 2 [json_name = "name"]; if (!this->_internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // string location = 3 [json_name = "location"]; if (!this->_internal_location().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_location()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_location()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData UpdateRobotRequest::_class_data_ = { - UpdateRobotRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UpdateRobotRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + UpdateRobotRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* UpdateRobotRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UpdateRobotRequest::GetClassData() const { return &_class_data_; } + +void UpdateRobotRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void UpdateRobotRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.UpdateRobotRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void UpdateRobotRequest::MergeFrom(const UpdateRobotRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.UpdateRobotRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (!from._internal_location().empty()) { - _this->_internal_set_location(from._internal_location()); + _internal_set_location(from._internal_location()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void UpdateRobotRequest::CopyFrom(const UpdateRobotRequest& from) { @@ -33363,207 +33744,197 @@ void UpdateRobotRequest::CopyFrom(const UpdateRobotRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool UpdateRobotRequest::IsInitialized() const { +bool UpdateRobotRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* UpdateRobotRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void UpdateRobotRequest::InternalSwap(UpdateRobotRequest* PROTOBUF_RESTRICT other) { +void UpdateRobotRequest::InternalSwap(UpdateRobotRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.location_, &other->_impl_.location_, arena); -} - -::google::protobuf::Metadata UpdateRobotRequest::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &location_, lhs_arena, + &other->location_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata UpdateRobotRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[118]); + file_level_metadata_app_2fv1_2fapp_2eproto[119]); } + // =================================================================== class UpdateRobotResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(UpdateRobotResponse, _impl_._has_bits_); static const ::viam::app::v1::Robot& robot(const UpdateRobotResponse* msg); - static void set_has_robot(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::app::v1::Robot& UpdateRobotResponse::_Internal::robot(const UpdateRobotResponse* msg) { - return *msg->_impl_.robot_; +const ::viam::app::v1::Robot& +UpdateRobotResponse::_Internal::robot(const UpdateRobotResponse* msg) { + return *msg->robot_; } -UpdateRobotResponse::UpdateRobotResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +UpdateRobotResponse::UpdateRobotResponse(::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.UpdateRobotResponse) } -inline PROTOBUF_NDEBUG_INLINE UpdateRobotResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -UpdateRobotResponse::UpdateRobotResponse( - ::google::protobuf::Arena* arena, - const UpdateRobotResponse& from) - : ::google::protobuf::Message(arena) { - UpdateRobotResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.robot_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::app::v1::Robot>(arena, *from._impl_.robot_) - : nullptr; - +UpdateRobotResponse::UpdateRobotResponse(const UpdateRobotResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_robot()) { + robot_ = new ::viam::app::v1::Robot(*from.robot_); + } else { + robot_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.UpdateRobotResponse) } -inline PROTOBUF_NDEBUG_INLINE UpdateRobotResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void UpdateRobotResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.robot_ = {}; +inline void UpdateRobotResponse::SharedCtor() { +robot_ = nullptr; } + UpdateRobotResponse::~UpdateRobotResponse() { // @@protoc_insertion_point(destructor:viam.app.v1.UpdateRobotResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void UpdateRobotResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.robot_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete robot_; } -PROTOBUF_NOINLINE void UpdateRobotResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.UpdateRobotResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.robot_ != nullptr); - _impl_.robot_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void UpdateRobotResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* UpdateRobotResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void UpdateRobotResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.UpdateRobotResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && robot_ != nullptr) { + delete robot_; + } + robot_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* UpdateRobotResponse::_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.app.v1.Robot robot = 1 [json_name = "robot"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_robot(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> UpdateRobotResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(UpdateRobotResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_UpdateRobotResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.app.v1.Robot robot = 1 [json_name = "robot"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(UpdateRobotResponse, _impl_.robot_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.app.v1.Robot robot = 1 [json_name = "robot"]; - {PROTOBUF_FIELD_OFFSET(UpdateRobotResponse, _impl_.robot_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::Robot>()}, - }}, {{ - }}, -}; - -::uint8_t* UpdateRobotResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* UpdateRobotResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.UpdateRobotResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.app.v1.Robot robot = 1 [json_name = "robot"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::robot(this), + if (this->_internal_has_robot()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::robot(this), _Internal::robot(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.UpdateRobotResponse) return target; } -::size_t UpdateRobotResponse::ByteSizeLong() const { +size_t UpdateRobotResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.UpdateRobotResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .viam.app.v1.Robot robot = 1 [json_name = "robot"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.robot_); + if (this->_internal_has_robot()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *robot_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData UpdateRobotResponse::_class_data_ = { - UpdateRobotResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UpdateRobotResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + UpdateRobotResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* UpdateRobotResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UpdateRobotResponse::GetClassData() const { return &_class_data_; } + +void UpdateRobotResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void UpdateRobotResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.UpdateRobotResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void UpdateRobotResponse::MergeFrom(const UpdateRobotResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.UpdateRobotResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_robot()->::viam::app::v1::Robot::MergeFrom( - from._internal_robot()); + if (from._internal_has_robot()) { + _internal_mutable_robot()->::viam::app::v1::Robot::MergeFrom(from._internal_robot()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void UpdateRobotResponse::CopyFrom(const UpdateRobotResponse& from) { @@ -33573,186 +33944,187 @@ void UpdateRobotResponse::CopyFrom(const UpdateRobotResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool UpdateRobotResponse::IsInitialized() const { +bool UpdateRobotResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* UpdateRobotResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void UpdateRobotResponse::InternalSwap(UpdateRobotResponse* PROTOBUF_RESTRICT other) { +void UpdateRobotResponse::InternalSwap(UpdateRobotResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.robot_, other->_impl_.robot_); + swap(robot_, other->robot_); } -::google::protobuf::Metadata UpdateRobotResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata UpdateRobotResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[119]); + file_level_metadata_app_2fv1_2fapp_2eproto[120]); } + // =================================================================== class DeleteRobotRequest::_Internal { public: }; -DeleteRobotRequest::DeleteRobotRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +DeleteRobotRequest::DeleteRobotRequest(::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.DeleteRobotRequest) } -inline PROTOBUF_NDEBUG_INLINE DeleteRobotRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : id_(arena, from.id_), - _cached_size_{0} {} - -DeleteRobotRequest::DeleteRobotRequest( - ::google::protobuf::Arena* arena, - const DeleteRobotRequest& from) - : ::google::protobuf::Message(arena) { - DeleteRobotRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +DeleteRobotRequest::DeleteRobotRequest(const DeleteRobotRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.DeleteRobotRequest) } -inline PROTOBUF_NDEBUG_INLINE DeleteRobotRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : id_(arena), - _cached_size_{0} {} -inline void DeleteRobotRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void DeleteRobotRequest::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + DeleteRobotRequest::~DeleteRobotRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.DeleteRobotRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void DeleteRobotRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); } -PROTOBUF_NOINLINE void DeleteRobotRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.DeleteRobotRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void DeleteRobotRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* DeleteRobotRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void DeleteRobotRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.DeleteRobotRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DeleteRobotRequest::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.DeleteRobotRequest.id")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 41, 2> DeleteRobotRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_DeleteRobotRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string id = 1 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(DeleteRobotRequest, _impl_.id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(DeleteRobotRequest, _impl_.id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\36\2\0\0\0\0\0\0" - "viam.app.v1.DeleteRobotRequest" - "id" - }}, -}; - -::uint8_t* DeleteRobotRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* DeleteRobotRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.DeleteRobotRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.DeleteRobotRequest.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.DeleteRobotRequest.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.DeleteRobotRequest) return target; } -::size_t DeleteRobotRequest::ByteSizeLong() const { +size_t DeleteRobotRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.DeleteRobotRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData DeleteRobotRequest::_class_data_ = { - DeleteRobotRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeleteRobotRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + DeleteRobotRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* DeleteRobotRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeleteRobotRequest::GetClassData() const { return &_class_data_; } + +void DeleteRobotRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void DeleteRobotRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.DeleteRobotRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void DeleteRobotRequest::MergeFrom(const DeleteRobotRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.DeleteRobotRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void DeleteRobotRequest::CopyFrom(const DeleteRobotRequest& from) { @@ -33762,45 +34134,41 @@ void DeleteRobotRequest::CopyFrom(const DeleteRobotRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool DeleteRobotRequest::IsInitialized() const { +bool DeleteRobotRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* DeleteRobotRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void DeleteRobotRequest::InternalSwap(DeleteRobotRequest* PROTOBUF_RESTRICT other) { +void DeleteRobotRequest::InternalSwap(DeleteRobotRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); } -::google::protobuf::Metadata DeleteRobotRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata DeleteRobotRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[120]); + file_level_metadata_app_2fv1_2fapp_2eproto[121]); } + // =================================================================== class DeleteRobotResponse::_Internal { public: }; -DeleteRobotResponse::DeleteRobotResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +DeleteRobotResponse::DeleteRobotResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.app.v1.DeleteRobotResponse) } -DeleteRobotResponse::DeleteRobotResponse( - ::google::protobuf::Arena* arena, - const DeleteRobotResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - DeleteRobotResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +DeleteRobotResponse::DeleteRobotResponse(const DeleteRobotResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.app.v1.DeleteRobotResponse) } @@ -33808,176 +34176,189 @@ DeleteRobotResponse::DeleteRobotResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeleteRobotResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeleteRobotResponse::GetClassData() const { return &_class_data_; } + + -::google::protobuf::Metadata DeleteRobotResponse::GetMetadata() const { + +::PROTOBUF_NAMESPACE_ID::Metadata DeleteRobotResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[121]); + file_level_metadata_app_2fv1_2fapp_2eproto[122]); } + // =================================================================== class MarkPartAsMainRequest::_Internal { public: }; -MarkPartAsMainRequest::MarkPartAsMainRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +MarkPartAsMainRequest::MarkPartAsMainRequest(::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.MarkPartAsMainRequest) } -inline PROTOBUF_NDEBUG_INLINE MarkPartAsMainRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : part_id_(arena, from.part_id_), - _cached_size_{0} {} - -MarkPartAsMainRequest::MarkPartAsMainRequest( - ::google::protobuf::Arena* arena, - const MarkPartAsMainRequest& from) - : ::google::protobuf::Message(arena) { - MarkPartAsMainRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +MarkPartAsMainRequest::MarkPartAsMainRequest(const MarkPartAsMainRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + part_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + part_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_part_id().empty()) { + part_id_.Set(from._internal_part_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.MarkPartAsMainRequest) } -inline PROTOBUF_NDEBUG_INLINE MarkPartAsMainRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : part_id_(arena), - _cached_size_{0} {} -inline void MarkPartAsMainRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void MarkPartAsMainRequest::SharedCtor() { +part_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + part_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + MarkPartAsMainRequest::~MarkPartAsMainRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.MarkPartAsMainRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void MarkPartAsMainRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.part_id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + part_id_.Destroy(); } -PROTOBUF_NOINLINE void MarkPartAsMainRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.MarkPartAsMainRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.part_id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void MarkPartAsMainRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* MarkPartAsMainRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void MarkPartAsMainRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.MarkPartAsMainRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + part_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* MarkPartAsMainRequest::_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 part_id = 1 [json_name = "partId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_part_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.MarkPartAsMainRequest.part_id")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 49, 2> MarkPartAsMainRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_MarkPartAsMainRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string part_id = 1 [json_name = "partId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(MarkPartAsMainRequest, _impl_.part_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string part_id = 1 [json_name = "partId"]; - {PROTOBUF_FIELD_OFFSET(MarkPartAsMainRequest, _impl_.part_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\41\7\0\0\0\0\0\0" - "viam.app.v1.MarkPartAsMainRequest" - "part_id" - }}, -}; - -::uint8_t* MarkPartAsMainRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* MarkPartAsMainRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.MarkPartAsMainRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string part_id = 1 [json_name = "partId"]; if (!this->_internal_part_id().empty()) { - const std::string& _s = this->_internal_part_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.MarkPartAsMainRequest.part_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_part_id().data(), static_cast(this->_internal_part_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.MarkPartAsMainRequest.part_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_part_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.MarkPartAsMainRequest) return target; } -::size_t MarkPartAsMainRequest::ByteSizeLong() const { +size_t MarkPartAsMainRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.MarkPartAsMainRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string part_id = 1 [json_name = "partId"]; if (!this->_internal_part_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_part_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_part_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData MarkPartAsMainRequest::_class_data_ = { - MarkPartAsMainRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MarkPartAsMainRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + MarkPartAsMainRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* MarkPartAsMainRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MarkPartAsMainRequest::GetClassData() const { return &_class_data_; } + +void MarkPartAsMainRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void MarkPartAsMainRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.MarkPartAsMainRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void MarkPartAsMainRequest::MergeFrom(const MarkPartAsMainRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.MarkPartAsMainRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_part_id().empty()) { - _this->_internal_set_part_id(from._internal_part_id()); + _internal_set_part_id(from._internal_part_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MarkPartAsMainRequest::CopyFrom(const MarkPartAsMainRequest& from) { @@ -33987,45 +34368,41 @@ void MarkPartAsMainRequest::CopyFrom(const MarkPartAsMainRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool MarkPartAsMainRequest::IsInitialized() const { +bool MarkPartAsMainRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* MarkPartAsMainRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void MarkPartAsMainRequest::InternalSwap(MarkPartAsMainRequest* PROTOBUF_RESTRICT other) { +void MarkPartAsMainRequest::InternalSwap(MarkPartAsMainRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.part_id_, &other->_impl_.part_id_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &part_id_, lhs_arena, + &other->part_id_, rhs_arena + ); } -::google::protobuf::Metadata MarkPartAsMainRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata MarkPartAsMainRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[122]); + file_level_metadata_app_2fv1_2fapp_2eproto[123]); } + // =================================================================== class MarkPartAsMainResponse::_Internal { public: }; -MarkPartAsMainResponse::MarkPartAsMainResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +MarkPartAsMainResponse::MarkPartAsMainResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.app.v1.MarkPartAsMainResponse) } -MarkPartAsMainResponse::MarkPartAsMainResponse( - ::google::protobuf::Arena* arena, - const MarkPartAsMainResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - MarkPartAsMainResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +MarkPartAsMainResponse::MarkPartAsMainResponse(const MarkPartAsMainResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.app.v1.MarkPartAsMainResponse) } @@ -34033,176 +34410,189 @@ MarkPartAsMainResponse::MarkPartAsMainResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MarkPartAsMainResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MarkPartAsMainResponse::GetClassData() const { return &_class_data_; } + + + -::google::protobuf::Metadata MarkPartAsMainResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata MarkPartAsMainResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[123]); + file_level_metadata_app_2fv1_2fapp_2eproto[124]); } + // =================================================================== class MarkPartForRestartRequest::_Internal { public: }; -MarkPartForRestartRequest::MarkPartForRestartRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +MarkPartForRestartRequest::MarkPartForRestartRequest(::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.MarkPartForRestartRequest) } -inline PROTOBUF_NDEBUG_INLINE MarkPartForRestartRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : part_id_(arena, from.part_id_), - _cached_size_{0} {} - -MarkPartForRestartRequest::MarkPartForRestartRequest( - ::google::protobuf::Arena* arena, - const MarkPartForRestartRequest& from) - : ::google::protobuf::Message(arena) { - MarkPartForRestartRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +MarkPartForRestartRequest::MarkPartForRestartRequest(const MarkPartForRestartRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + part_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + part_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_part_id().empty()) { + part_id_.Set(from._internal_part_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.MarkPartForRestartRequest) } -inline PROTOBUF_NDEBUG_INLINE MarkPartForRestartRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : part_id_(arena), - _cached_size_{0} {} -inline void MarkPartForRestartRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void MarkPartForRestartRequest::SharedCtor() { +part_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + part_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + MarkPartForRestartRequest::~MarkPartForRestartRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.MarkPartForRestartRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void MarkPartForRestartRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.part_id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + part_id_.Destroy(); } -PROTOBUF_NOINLINE void MarkPartForRestartRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.MarkPartForRestartRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.part_id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void MarkPartForRestartRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* MarkPartForRestartRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void MarkPartForRestartRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.MarkPartForRestartRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + part_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* MarkPartForRestartRequest::_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 part_id = 1 [json_name = "partId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_part_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.MarkPartForRestartRequest.part_id")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 53, 2> MarkPartForRestartRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_MarkPartForRestartRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string part_id = 1 [json_name = "partId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(MarkPartForRestartRequest, _impl_.part_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string part_id = 1 [json_name = "partId"]; - {PROTOBUF_FIELD_OFFSET(MarkPartForRestartRequest, _impl_.part_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\45\7\0\0\0\0\0\0" - "viam.app.v1.MarkPartForRestartRequest" - "part_id" - }}, -}; - -::uint8_t* MarkPartForRestartRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* MarkPartForRestartRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.MarkPartForRestartRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string part_id = 1 [json_name = "partId"]; if (!this->_internal_part_id().empty()) { - const std::string& _s = this->_internal_part_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.MarkPartForRestartRequest.part_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_part_id().data(), static_cast(this->_internal_part_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.MarkPartForRestartRequest.part_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_part_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.MarkPartForRestartRequest) return target; } -::size_t MarkPartForRestartRequest::ByteSizeLong() const { +size_t MarkPartForRestartRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.MarkPartForRestartRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string part_id = 1 [json_name = "partId"]; if (!this->_internal_part_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_part_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_part_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData MarkPartForRestartRequest::_class_data_ = { - MarkPartForRestartRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MarkPartForRestartRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + MarkPartForRestartRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* MarkPartForRestartRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MarkPartForRestartRequest::GetClassData() const { return &_class_data_; } + +void MarkPartForRestartRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void MarkPartForRestartRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.MarkPartForRestartRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void MarkPartForRestartRequest::MergeFrom(const MarkPartForRestartRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.MarkPartForRestartRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_part_id().empty()) { - _this->_internal_set_part_id(from._internal_part_id()); + _internal_set_part_id(from._internal_part_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MarkPartForRestartRequest::CopyFrom(const MarkPartForRestartRequest& from) { @@ -34212,45 +34602,41 @@ void MarkPartForRestartRequest::CopyFrom(const MarkPartForRestartRequest& from) MergeFrom(from); } -PROTOBUF_NOINLINE bool MarkPartForRestartRequest::IsInitialized() const { +bool MarkPartForRestartRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* MarkPartForRestartRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void MarkPartForRestartRequest::InternalSwap(MarkPartForRestartRequest* PROTOBUF_RESTRICT other) { +void MarkPartForRestartRequest::InternalSwap(MarkPartForRestartRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.part_id_, &other->_impl_.part_id_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &part_id_, lhs_arena, + &other->part_id_, rhs_arena + ); } -::google::protobuf::Metadata MarkPartForRestartRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata MarkPartForRestartRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[124]); + file_level_metadata_app_2fv1_2fapp_2eproto[125]); } + // =================================================================== class MarkPartForRestartResponse::_Internal { public: }; -MarkPartForRestartResponse::MarkPartForRestartResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +MarkPartForRestartResponse::MarkPartForRestartResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.app.v1.MarkPartForRestartResponse) } -MarkPartForRestartResponse::MarkPartForRestartResponse( - ::google::protobuf::Arena* arena, - const MarkPartForRestartResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - MarkPartForRestartResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +MarkPartForRestartResponse::MarkPartForRestartResponse(const MarkPartForRestartResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.app.v1.MarkPartForRestartResponse) } @@ -34258,176 +34644,189 @@ MarkPartForRestartResponse::MarkPartForRestartResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MarkPartForRestartResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MarkPartForRestartResponse::GetClassData() const { return &_class_data_; } + + -::google::protobuf::Metadata MarkPartForRestartResponse::GetMetadata() const { + +::PROTOBUF_NAMESPACE_ID::Metadata MarkPartForRestartResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[125]); + file_level_metadata_app_2fv1_2fapp_2eproto[126]); } + // =================================================================== class CreateRobotPartSecretRequest::_Internal { public: }; -CreateRobotPartSecretRequest::CreateRobotPartSecretRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +CreateRobotPartSecretRequest::CreateRobotPartSecretRequest(::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.CreateRobotPartSecretRequest) } -inline PROTOBUF_NDEBUG_INLINE CreateRobotPartSecretRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : part_id_(arena, from.part_id_), - _cached_size_{0} {} - -CreateRobotPartSecretRequest::CreateRobotPartSecretRequest( - ::google::protobuf::Arena* arena, - const CreateRobotPartSecretRequest& from) - : ::google::protobuf::Message(arena) { - CreateRobotPartSecretRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +CreateRobotPartSecretRequest::CreateRobotPartSecretRequest(const CreateRobotPartSecretRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + part_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + part_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_part_id().empty()) { + part_id_.Set(from._internal_part_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.CreateRobotPartSecretRequest) } -inline PROTOBUF_NDEBUG_INLINE CreateRobotPartSecretRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : part_id_(arena), - _cached_size_{0} {} -inline void CreateRobotPartSecretRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void CreateRobotPartSecretRequest::SharedCtor() { +part_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + part_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + CreateRobotPartSecretRequest::~CreateRobotPartSecretRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.CreateRobotPartSecretRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void CreateRobotPartSecretRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.part_id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + part_id_.Destroy(); } -PROTOBUF_NOINLINE void CreateRobotPartSecretRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.CreateRobotPartSecretRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.part_id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void CreateRobotPartSecretRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* CreateRobotPartSecretRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void CreateRobotPartSecretRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.CreateRobotPartSecretRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + part_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CreateRobotPartSecretRequest::_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 part_id = 1 [json_name = "partId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_part_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.CreateRobotPartSecretRequest.part_id")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 56, 2> CreateRobotPartSecretRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_CreateRobotPartSecretRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string part_id = 1 [json_name = "partId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(CreateRobotPartSecretRequest, _impl_.part_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string part_id = 1 [json_name = "partId"]; - {PROTOBUF_FIELD_OFFSET(CreateRobotPartSecretRequest, _impl_.part_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\50\7\0\0\0\0\0\0" - "viam.app.v1.CreateRobotPartSecretRequest" - "part_id" - }}, -}; - -::uint8_t* CreateRobotPartSecretRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* CreateRobotPartSecretRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.CreateRobotPartSecretRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string part_id = 1 [json_name = "partId"]; if (!this->_internal_part_id().empty()) { - const std::string& _s = this->_internal_part_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.CreateRobotPartSecretRequest.part_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_part_id().data(), static_cast(this->_internal_part_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.CreateRobotPartSecretRequest.part_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_part_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.CreateRobotPartSecretRequest) return target; } -::size_t CreateRobotPartSecretRequest::ByteSizeLong() const { +size_t CreateRobotPartSecretRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.CreateRobotPartSecretRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string part_id = 1 [json_name = "partId"]; if (!this->_internal_part_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_part_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_part_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData CreateRobotPartSecretRequest::_class_data_ = { - CreateRobotPartSecretRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CreateRobotPartSecretRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CreateRobotPartSecretRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* CreateRobotPartSecretRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CreateRobotPartSecretRequest::GetClassData() const { return &_class_data_; } + +void CreateRobotPartSecretRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void CreateRobotPartSecretRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.CreateRobotPartSecretRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void CreateRobotPartSecretRequest::MergeFrom(const CreateRobotPartSecretRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.CreateRobotPartSecretRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_part_id().empty()) { - _this->_internal_set_part_id(from._internal_part_id()); + _internal_set_part_id(from._internal_part_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CreateRobotPartSecretRequest::CopyFrom(const CreateRobotPartSecretRequest& from) { @@ -34437,205 +34836,189 @@ void CreateRobotPartSecretRequest::CopyFrom(const CreateRobotPartSecretRequest& MergeFrom(from); } -PROTOBUF_NOINLINE bool CreateRobotPartSecretRequest::IsInitialized() const { +bool CreateRobotPartSecretRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* CreateRobotPartSecretRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void CreateRobotPartSecretRequest::InternalSwap(CreateRobotPartSecretRequest* PROTOBUF_RESTRICT other) { +void CreateRobotPartSecretRequest::InternalSwap(CreateRobotPartSecretRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.part_id_, &other->_impl_.part_id_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &part_id_, lhs_arena, + &other->part_id_, rhs_arena + ); } -::google::protobuf::Metadata CreateRobotPartSecretRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata CreateRobotPartSecretRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[126]); + file_level_metadata_app_2fv1_2fapp_2eproto[127]); } + // =================================================================== class CreateRobotPartSecretResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(CreateRobotPartSecretResponse, _impl_._has_bits_); static const ::viam::app::v1::RobotPart& part(const CreateRobotPartSecretResponse* msg); - static void set_has_part(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::app::v1::RobotPart& CreateRobotPartSecretResponse::_Internal::part(const CreateRobotPartSecretResponse* msg) { - return *msg->_impl_.part_; +const ::viam::app::v1::RobotPart& +CreateRobotPartSecretResponse::_Internal::part(const CreateRobotPartSecretResponse* msg) { + return *msg->part_; } -CreateRobotPartSecretResponse::CreateRobotPartSecretResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +CreateRobotPartSecretResponse::CreateRobotPartSecretResponse(::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.CreateRobotPartSecretResponse) } -inline PROTOBUF_NDEBUG_INLINE CreateRobotPartSecretResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -CreateRobotPartSecretResponse::CreateRobotPartSecretResponse( - ::google::protobuf::Arena* arena, - const CreateRobotPartSecretResponse& from) - : ::google::protobuf::Message(arena) { - CreateRobotPartSecretResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.part_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::app::v1::RobotPart>(arena, *from._impl_.part_) - : nullptr; - +CreateRobotPartSecretResponse::CreateRobotPartSecretResponse(const CreateRobotPartSecretResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_part()) { + part_ = new ::viam::app::v1::RobotPart(*from.part_); + } else { + part_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.CreateRobotPartSecretResponse) } -inline PROTOBUF_NDEBUG_INLINE CreateRobotPartSecretResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void CreateRobotPartSecretResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.part_ = {}; +inline void CreateRobotPartSecretResponse::SharedCtor() { +part_ = nullptr; } + CreateRobotPartSecretResponse::~CreateRobotPartSecretResponse() { // @@protoc_insertion_point(destructor:viam.app.v1.CreateRobotPartSecretResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void CreateRobotPartSecretResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.part_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete part_; } -PROTOBUF_NOINLINE void CreateRobotPartSecretResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.CreateRobotPartSecretResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.part_ != nullptr); - _impl_.part_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void CreateRobotPartSecretResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* CreateRobotPartSecretResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void CreateRobotPartSecretResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.CreateRobotPartSecretResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && part_ != nullptr) { + delete part_; + } + part_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CreateRobotPartSecretResponse::_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.app.v1.RobotPart part = 1 [json_name = "part"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_part(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> CreateRobotPartSecretResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(CreateRobotPartSecretResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_CreateRobotPartSecretResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.app.v1.RobotPart part = 1 [json_name = "part"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(CreateRobotPartSecretResponse, _impl_.part_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.app.v1.RobotPart part = 1 [json_name = "part"]; - {PROTOBUF_FIELD_OFFSET(CreateRobotPartSecretResponse, _impl_.part_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::RobotPart>()}, - }}, {{ - }}, -}; - -::uint8_t* CreateRobotPartSecretResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* CreateRobotPartSecretResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.CreateRobotPartSecretResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.app.v1.RobotPart part = 1 [json_name = "part"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::part(this), + if (this->_internal_has_part()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::part(this), _Internal::part(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.CreateRobotPartSecretResponse) return target; } -::size_t CreateRobotPartSecretResponse::ByteSizeLong() const { +size_t CreateRobotPartSecretResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.CreateRobotPartSecretResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .viam.app.v1.RobotPart part = 1 [json_name = "part"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.part_); + if (this->_internal_has_part()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *part_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData CreateRobotPartSecretResponse::_class_data_ = { - CreateRobotPartSecretResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CreateRobotPartSecretResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CreateRobotPartSecretResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* CreateRobotPartSecretResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CreateRobotPartSecretResponse::GetClassData() const { return &_class_data_; } + +void CreateRobotPartSecretResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void CreateRobotPartSecretResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.CreateRobotPartSecretResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void CreateRobotPartSecretResponse::MergeFrom(const CreateRobotPartSecretResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.CreateRobotPartSecretResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_part()->::viam::app::v1::RobotPart::MergeFrom( - from._internal_part()); + if (from._internal_has_part()) { + _internal_mutable_part()->::viam::app::v1::RobotPart::MergeFrom(from._internal_part()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CreateRobotPartSecretResponse::CopyFrom(const CreateRobotPartSecretResponse& from) { @@ -34645,214 +35028,231 @@ void CreateRobotPartSecretResponse::CopyFrom(const CreateRobotPartSecretResponse MergeFrom(from); } -PROTOBUF_NOINLINE bool CreateRobotPartSecretResponse::IsInitialized() const { +bool CreateRobotPartSecretResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* CreateRobotPartSecretResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void CreateRobotPartSecretResponse::InternalSwap(CreateRobotPartSecretResponse* PROTOBUF_RESTRICT other) { +void CreateRobotPartSecretResponse::InternalSwap(CreateRobotPartSecretResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.part_, other->_impl_.part_); + swap(part_, other->part_); } -::google::protobuf::Metadata CreateRobotPartSecretResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata CreateRobotPartSecretResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[127]); + file_level_metadata_app_2fv1_2fapp_2eproto[128]); } + // =================================================================== class DeleteRobotPartSecretRequest::_Internal { public: }; -DeleteRobotPartSecretRequest::DeleteRobotPartSecretRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +DeleteRobotPartSecretRequest::DeleteRobotPartSecretRequest(::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.DeleteRobotPartSecretRequest) } -inline PROTOBUF_NDEBUG_INLINE DeleteRobotPartSecretRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : part_id_(arena, from.part_id_), - secret_id_(arena, from.secret_id_), - _cached_size_{0} {} - -DeleteRobotPartSecretRequest::DeleteRobotPartSecretRequest( - ::google::protobuf::Arena* arena, - const DeleteRobotPartSecretRequest& from) - : ::google::protobuf::Message(arena) { - DeleteRobotPartSecretRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +DeleteRobotPartSecretRequest::DeleteRobotPartSecretRequest(const DeleteRobotPartSecretRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + part_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + part_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_part_id().empty()) { + part_id_.Set(from._internal_part_id(), + GetArenaForAllocation()); + } + secret_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + secret_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_secret_id().empty()) { + secret_id_.Set(from._internal_secret_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.DeleteRobotPartSecretRequest) } -inline PROTOBUF_NDEBUG_INLINE DeleteRobotPartSecretRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : part_id_(arena), - secret_id_(arena), - _cached_size_{0} {} -inline void DeleteRobotPartSecretRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void DeleteRobotPartSecretRequest::SharedCtor() { +part_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + part_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +secret_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + secret_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + DeleteRobotPartSecretRequest::~DeleteRobotPartSecretRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.DeleteRobotPartSecretRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void DeleteRobotPartSecretRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.part_id_.Destroy(); - _impl_.secret_id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + part_id_.Destroy(); + secret_id_.Destroy(); } -PROTOBUF_NOINLINE void DeleteRobotPartSecretRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.DeleteRobotPartSecretRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.part_id_.ClearToEmpty(); - _impl_.secret_id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void DeleteRobotPartSecretRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* DeleteRobotPartSecretRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void DeleteRobotPartSecretRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.DeleteRobotPartSecretRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + part_id_.ClearToEmpty(); + secret_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DeleteRobotPartSecretRequest::_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 part_id = 1 [json_name = "partId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_part_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.DeleteRobotPartSecretRequest.part_id")); + } else + goto handle_unusual; + continue; + // string secret_id = 2 [json_name = "secretId"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_secret_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.DeleteRobotPartSecretRequest.secret_id")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 65, 2> DeleteRobotPartSecretRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_DeleteRobotPartSecretRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string secret_id = 2 [json_name = "secretId"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(DeleteRobotPartSecretRequest, _impl_.secret_id_)}}, - // string part_id = 1 [json_name = "partId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(DeleteRobotPartSecretRequest, _impl_.part_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string part_id = 1 [json_name = "partId"]; - {PROTOBUF_FIELD_OFFSET(DeleteRobotPartSecretRequest, _impl_.part_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string secret_id = 2 [json_name = "secretId"]; - {PROTOBUF_FIELD_OFFSET(DeleteRobotPartSecretRequest, _impl_.secret_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\50\7\11\0\0\0\0\0" - "viam.app.v1.DeleteRobotPartSecretRequest" - "part_id" - "secret_id" - }}, -}; - -::uint8_t* DeleteRobotPartSecretRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* DeleteRobotPartSecretRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.DeleteRobotPartSecretRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string part_id = 1 [json_name = "partId"]; if (!this->_internal_part_id().empty()) { - const std::string& _s = this->_internal_part_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.DeleteRobotPartSecretRequest.part_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_part_id().data(), static_cast(this->_internal_part_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.DeleteRobotPartSecretRequest.part_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_part_id(), target); } // string secret_id = 2 [json_name = "secretId"]; if (!this->_internal_secret_id().empty()) { - const std::string& _s = this->_internal_secret_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.DeleteRobotPartSecretRequest.secret_id"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_secret_id().data(), static_cast(this->_internal_secret_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.DeleteRobotPartSecretRequest.secret_id"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_secret_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.DeleteRobotPartSecretRequest) return target; } -::size_t DeleteRobotPartSecretRequest::ByteSizeLong() const { +size_t DeleteRobotPartSecretRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.DeleteRobotPartSecretRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string part_id = 1 [json_name = "partId"]; if (!this->_internal_part_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_part_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_part_id()); } // string secret_id = 2 [json_name = "secretId"]; if (!this->_internal_secret_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_secret_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_secret_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData DeleteRobotPartSecretRequest::_class_data_ = { - DeleteRobotPartSecretRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeleteRobotPartSecretRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + DeleteRobotPartSecretRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* DeleteRobotPartSecretRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeleteRobotPartSecretRequest::GetClassData() const { return &_class_data_; } + +void DeleteRobotPartSecretRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void DeleteRobotPartSecretRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.DeleteRobotPartSecretRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void DeleteRobotPartSecretRequest::MergeFrom(const DeleteRobotPartSecretRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.DeleteRobotPartSecretRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_part_id().empty()) { - _this->_internal_set_part_id(from._internal_part_id()); + _internal_set_part_id(from._internal_part_id()); } if (!from._internal_secret_id().empty()) { - _this->_internal_set_secret_id(from._internal_secret_id()); + _internal_set_secret_id(from._internal_secret_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void DeleteRobotPartSecretRequest::CopyFrom(const DeleteRobotPartSecretRequest& from) { @@ -34862,46 +35262,45 @@ void DeleteRobotPartSecretRequest::CopyFrom(const DeleteRobotPartSecretRequest& MergeFrom(from); } -PROTOBUF_NOINLINE bool DeleteRobotPartSecretRequest::IsInitialized() const { +bool DeleteRobotPartSecretRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* DeleteRobotPartSecretRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void DeleteRobotPartSecretRequest::InternalSwap(DeleteRobotPartSecretRequest* PROTOBUF_RESTRICT other) { +void DeleteRobotPartSecretRequest::InternalSwap(DeleteRobotPartSecretRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.part_id_, &other->_impl_.part_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.secret_id_, &other->_impl_.secret_id_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &part_id_, lhs_arena, + &other->part_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &secret_id_, lhs_arena, + &other->secret_id_, rhs_arena + ); } -::google::protobuf::Metadata DeleteRobotPartSecretRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata DeleteRobotPartSecretRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[128]); + file_level_metadata_app_2fv1_2fapp_2eproto[129]); } + // =================================================================== class DeleteRobotPartSecretResponse::_Internal { public: }; -DeleteRobotPartSecretResponse::DeleteRobotPartSecretResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +DeleteRobotPartSecretResponse::DeleteRobotPartSecretResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.app.v1.DeleteRobotPartSecretResponse) } -DeleteRobotPartSecretResponse::DeleteRobotPartSecretResponse( - ::google::protobuf::Arena* arena, - const DeleteRobotPartSecretResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - DeleteRobotPartSecretResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +DeleteRobotPartSecretResponse::DeleteRobotPartSecretResponse(const DeleteRobotPartSecretResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.app.v1.DeleteRobotPartSecretResponse) } @@ -34909,345 +35308,453 @@ DeleteRobotPartSecretResponse::DeleteRobotPartSecretResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeleteRobotPartSecretResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeleteRobotPartSecretResponse::GetClassData() const { return &_class_data_; } + + + -::google::protobuf::Metadata DeleteRobotPartSecretResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata DeleteRobotPartSecretResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[129]); + file_level_metadata_app_2fv1_2fapp_2eproto[130]); } + // =================================================================== class Authorization::_Internal { public: }; -Authorization::Authorization(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Authorization::Authorization(::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.Authorization) } -inline PROTOBUF_NDEBUG_INLINE Authorization::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : authorization_type_(arena, from.authorization_type_), - authorization_id_(arena, from.authorization_id_), - resource_type_(arena, from.resource_type_), - resource_id_(arena, from.resource_id_), - identity_id_(arena, from.identity_id_), - organization_id_(arena, from.organization_id_), - identity_type_(arena, from.identity_type_), - _cached_size_{0} {} - -Authorization::Authorization( - ::google::protobuf::Arena* arena, - const Authorization& from) - : ::google::protobuf::Message(arena) { - Authorization* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +Authorization::Authorization(const Authorization& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + authorization_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + authorization_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_authorization_type().empty()) { + authorization_type_.Set(from._internal_authorization_type(), + GetArenaForAllocation()); + } + authorization_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + authorization_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_authorization_id().empty()) { + authorization_id_.Set(from._internal_authorization_id(), + GetArenaForAllocation()); + } + resource_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + resource_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_resource_type().empty()) { + resource_type_.Set(from._internal_resource_type(), + GetArenaForAllocation()); + } + resource_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + resource_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_resource_id().empty()) { + resource_id_.Set(from._internal_resource_id(), + GetArenaForAllocation()); + } + identity_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + identity_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_identity_id().empty()) { + identity_id_.Set(from._internal_identity_id(), + GetArenaForAllocation()); + } + organization_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_organization_id().empty()) { + organization_id_.Set(from._internal_organization_id(), + GetArenaForAllocation()); + } + identity_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + identity_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_identity_type().empty()) { + identity_type_.Set(from._internal_identity_type(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.Authorization) } -inline PROTOBUF_NDEBUG_INLINE Authorization::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : authorization_type_(arena), - authorization_id_(arena), - resource_type_(arena), - resource_id_(arena), - identity_id_(arena), - organization_id_(arena), - identity_type_(arena), - _cached_size_{0} {} - -inline void Authorization::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); + +inline void Authorization::SharedCtor() { +authorization_type_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + authorization_type_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +authorization_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + authorization_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +resource_type_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + resource_type_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +resource_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + resource_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +identity_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + identity_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +organization_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +identity_type_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + identity_type_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + Authorization::~Authorization() { // @@protoc_insertion_point(destructor:viam.app.v1.Authorization) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Authorization::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.authorization_type_.Destroy(); - _impl_.authorization_id_.Destroy(); - _impl_.resource_type_.Destroy(); - _impl_.resource_id_.Destroy(); - _impl_.identity_id_.Destroy(); - _impl_.organization_id_.Destroy(); - _impl_.identity_type_.Destroy(); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void Authorization::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.Authorization) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + authorization_type_.Destroy(); + authorization_id_.Destroy(); + resource_type_.Destroy(); + resource_id_.Destroy(); + identity_id_.Destroy(); + organization_id_.Destroy(); + identity_type_.Destroy(); +} - _impl_.authorization_type_.ClearToEmpty(); - _impl_.authorization_id_.ClearToEmpty(); - _impl_.resource_type_.ClearToEmpty(); - _impl_.resource_id_.ClearToEmpty(); - _impl_.identity_id_.ClearToEmpty(); - _impl_.organization_id_.ClearToEmpty(); - _impl_.identity_type_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void Authorization::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* Authorization::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void Authorization::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.Authorization) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + authorization_type_.ClearToEmpty(); + authorization_id_.ClearToEmpty(); + resource_type_.ClearToEmpty(); + resource_id_.ClearToEmpty(); + identity_id_.ClearToEmpty(); + organization_id_.ClearToEmpty(); + identity_type_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Authorization::_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 authorization_type = 1 [json_name = "authorizationType"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_authorization_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.Authorization.authorization_type")); + } else + goto handle_unusual; + continue; + // string authorization_id = 2 [json_name = "authorizationId"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_authorization_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.Authorization.authorization_id")); + } else + goto handle_unusual; + continue; + // string resource_type = 3 [json_name = "resourceType"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_resource_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.Authorization.resource_type")); + } else + goto handle_unusual; + continue; + // string resource_id = 4 [json_name = "resourceId"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_resource_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.Authorization.resource_id")); + } else + goto handle_unusual; + continue; + // string identity_id = 5 [json_name = "identityId"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + auto str = _internal_mutable_identity_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.Authorization.identity_id")); + } else + goto handle_unusual; + continue; + // string organization_id = 6 [json_name = "organizationId"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + auto str = _internal_mutable_organization_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.Authorization.organization_id")); + } else + goto handle_unusual; + continue; + // string identity_type = 7 [json_name = "identityType"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + auto str = _internal_mutable_identity_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.Authorization.identity_type")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 7, 0, 131, 2> Authorization::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 7, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967168, // skipmap - offsetof(decltype(_table_), field_entries), - 7, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_Authorization_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string authorization_type = 1 [json_name = "authorizationType"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Authorization, _impl_.authorization_type_)}}, - // string authorization_id = 2 [json_name = "authorizationId"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(Authorization, _impl_.authorization_id_)}}, - // string resource_type = 3 [json_name = "resourceType"]; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(Authorization, _impl_.resource_type_)}}, - // string resource_id = 4 [json_name = "resourceId"]; - {::_pbi::TcParser::FastUS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(Authorization, _impl_.resource_id_)}}, - // string identity_id = 5 [json_name = "identityId"]; - {::_pbi::TcParser::FastUS1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(Authorization, _impl_.identity_id_)}}, - // string organization_id = 6 [json_name = "organizationId"]; - {::_pbi::TcParser::FastUS1, - {50, 63, 0, PROTOBUF_FIELD_OFFSET(Authorization, _impl_.organization_id_)}}, - // string identity_type = 7 [json_name = "identityType"]; - {::_pbi::TcParser::FastUS1, - {58, 63, 0, PROTOBUF_FIELD_OFFSET(Authorization, _impl_.identity_type_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string authorization_type = 1 [json_name = "authorizationType"]; - {PROTOBUF_FIELD_OFFSET(Authorization, _impl_.authorization_type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string authorization_id = 2 [json_name = "authorizationId"]; - {PROTOBUF_FIELD_OFFSET(Authorization, _impl_.authorization_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string resource_type = 3 [json_name = "resourceType"]; - {PROTOBUF_FIELD_OFFSET(Authorization, _impl_.resource_type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string resource_id = 4 [json_name = "resourceId"]; - {PROTOBUF_FIELD_OFFSET(Authorization, _impl_.resource_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string identity_id = 5 [json_name = "identityId"]; - {PROTOBUF_FIELD_OFFSET(Authorization, _impl_.identity_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string organization_id = 6 [json_name = "organizationId"]; - {PROTOBUF_FIELD_OFFSET(Authorization, _impl_.organization_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string identity_type = 7 [json_name = "identityType"]; - {PROTOBUF_FIELD_OFFSET(Authorization, _impl_.identity_type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\31\22\20\15\13\13\17\15" - "viam.app.v1.Authorization" - "authorization_type" - "authorization_id" - "resource_type" - "resource_id" - "identity_id" - "organization_id" - "identity_type" - }}, -}; - -::uint8_t* Authorization::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Authorization::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.Authorization) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string authorization_type = 1 [json_name = "authorizationType"]; if (!this->_internal_authorization_type().empty()) { - const std::string& _s = this->_internal_authorization_type(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.Authorization.authorization_type"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_authorization_type().data(), static_cast(this->_internal_authorization_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.Authorization.authorization_type"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_authorization_type(), target); } // string authorization_id = 2 [json_name = "authorizationId"]; if (!this->_internal_authorization_id().empty()) { - const std::string& _s = this->_internal_authorization_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.Authorization.authorization_id"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_authorization_id().data(), static_cast(this->_internal_authorization_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.Authorization.authorization_id"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_authorization_id(), target); } // string resource_type = 3 [json_name = "resourceType"]; if (!this->_internal_resource_type().empty()) { - const std::string& _s = this->_internal_resource_type(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.Authorization.resource_type"); - target = stream->WriteStringMaybeAliased(3, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_resource_type().data(), static_cast(this->_internal_resource_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.Authorization.resource_type"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_resource_type(), target); } // string resource_id = 4 [json_name = "resourceId"]; if (!this->_internal_resource_id().empty()) { - const std::string& _s = this->_internal_resource_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.Authorization.resource_id"); - target = stream->WriteStringMaybeAliased(4, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_resource_id().data(), static_cast(this->_internal_resource_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.Authorization.resource_id"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_resource_id(), target); } // string identity_id = 5 [json_name = "identityId"]; if (!this->_internal_identity_id().empty()) { - const std::string& _s = this->_internal_identity_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.Authorization.identity_id"); - target = stream->WriteStringMaybeAliased(5, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_identity_id().data(), static_cast(this->_internal_identity_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.Authorization.identity_id"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_identity_id(), target); } // string organization_id = 6 [json_name = "organizationId"]; if (!this->_internal_organization_id().empty()) { - const std::string& _s = this->_internal_organization_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.Authorization.organization_id"); - target = stream->WriteStringMaybeAliased(6, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_organization_id().data(), static_cast(this->_internal_organization_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.Authorization.organization_id"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_organization_id(), target); } // string identity_type = 7 [json_name = "identityType"]; if (!this->_internal_identity_type().empty()) { - const std::string& _s = this->_internal_identity_type(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.Authorization.identity_type"); - target = stream->WriteStringMaybeAliased(7, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_identity_type().data(), static_cast(this->_internal_identity_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.Authorization.identity_type"); + target = stream->WriteStringMaybeAliased( + 7, this->_internal_identity_type(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.Authorization) return target; } -::size_t Authorization::ByteSizeLong() const { +size_t Authorization::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.Authorization) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string authorization_type = 1 [json_name = "authorizationType"]; if (!this->_internal_authorization_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_authorization_type()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_authorization_type()); } // string authorization_id = 2 [json_name = "authorizationId"]; if (!this->_internal_authorization_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_authorization_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_authorization_id()); } // string resource_type = 3 [json_name = "resourceType"]; if (!this->_internal_resource_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_resource_type()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_resource_type()); } // string resource_id = 4 [json_name = "resourceId"]; if (!this->_internal_resource_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_resource_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_resource_id()); } // string identity_id = 5 [json_name = "identityId"]; if (!this->_internal_identity_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_identity_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_identity_id()); } // string organization_id = 6 [json_name = "organizationId"]; if (!this->_internal_organization_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_organization_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_organization_id()); } // string identity_type = 7 [json_name = "identityType"]; if (!this->_internal_identity_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_identity_type()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_identity_type()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Authorization::_class_data_ = { - Authorization::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Authorization::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Authorization::MergeImpl }; -const ::google::protobuf::Message::ClassData* Authorization::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Authorization::GetClassData() const { return &_class_data_; } + +void Authorization::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Authorization::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.Authorization) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Authorization::MergeFrom(const Authorization& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.Authorization) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_authorization_type().empty()) { - _this->_internal_set_authorization_type(from._internal_authorization_type()); + _internal_set_authorization_type(from._internal_authorization_type()); } if (!from._internal_authorization_id().empty()) { - _this->_internal_set_authorization_id(from._internal_authorization_id()); + _internal_set_authorization_id(from._internal_authorization_id()); } if (!from._internal_resource_type().empty()) { - _this->_internal_set_resource_type(from._internal_resource_type()); + _internal_set_resource_type(from._internal_resource_type()); } if (!from._internal_resource_id().empty()) { - _this->_internal_set_resource_id(from._internal_resource_id()); + _internal_set_resource_id(from._internal_resource_id()); } if (!from._internal_identity_id().empty()) { - _this->_internal_set_identity_id(from._internal_identity_id()); + _internal_set_identity_id(from._internal_identity_id()); } if (!from._internal_organization_id().empty()) { - _this->_internal_set_organization_id(from._internal_organization_id()); + _internal_set_organization_id(from._internal_organization_id()); } if (!from._internal_identity_type().empty()) { - _this->_internal_set_identity_type(from._internal_identity_type()); + _internal_set_identity_type(from._internal_identity_type()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Authorization::CopyFrom(const Authorization& from) { @@ -35257,211 +35764,213 @@ void Authorization::CopyFrom(const Authorization& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Authorization::IsInitialized() const { +bool Authorization::IsInitialized() const { return true; } -::_pbi::CachedSize* Authorization::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Authorization::InternalSwap(Authorization* PROTOBUF_RESTRICT other) { +void Authorization::InternalSwap(Authorization* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.authorization_type_, &other->_impl_.authorization_type_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.authorization_id_, &other->_impl_.authorization_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.resource_type_, &other->_impl_.resource_type_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.resource_id_, &other->_impl_.resource_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.identity_id_, &other->_impl_.identity_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.organization_id_, &other->_impl_.organization_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.identity_type_, &other->_impl_.identity_type_, arena); -} - -::google::protobuf::Metadata Authorization::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &authorization_type_, lhs_arena, + &other->authorization_type_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &authorization_id_, lhs_arena, + &other->authorization_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &resource_type_, lhs_arena, + &other->resource_type_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &resource_id_, lhs_arena, + &other->resource_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &identity_id_, lhs_arena, + &other->identity_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &organization_id_, lhs_arena, + &other->organization_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &identity_type_, lhs_arena, + &other->identity_type_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Authorization::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[130]); + file_level_metadata_app_2fv1_2fapp_2eproto[131]); } + // =================================================================== class AddRoleRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(AddRoleRequest, _impl_._has_bits_); static const ::viam::app::v1::Authorization& authorization(const AddRoleRequest* msg); - static void set_has_authorization(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::app::v1::Authorization& AddRoleRequest::_Internal::authorization(const AddRoleRequest* msg) { - return *msg->_impl_.authorization_; +const ::viam::app::v1::Authorization& +AddRoleRequest::_Internal::authorization(const AddRoleRequest* msg) { + return *msg->authorization_; } -AddRoleRequest::AddRoleRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +AddRoleRequest::AddRoleRequest(::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.AddRoleRequest) } -inline PROTOBUF_NDEBUG_INLINE AddRoleRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -AddRoleRequest::AddRoleRequest( - ::google::protobuf::Arena* arena, - const AddRoleRequest& from) - : ::google::protobuf::Message(arena) { - AddRoleRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.authorization_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::app::v1::Authorization>(arena, *from._impl_.authorization_) - : nullptr; - +AddRoleRequest::AddRoleRequest(const AddRoleRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_authorization()) { + authorization_ = new ::viam::app::v1::Authorization(*from.authorization_); + } else { + authorization_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.AddRoleRequest) } -inline PROTOBUF_NDEBUG_INLINE AddRoleRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void AddRoleRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.authorization_ = {}; +inline void AddRoleRequest::SharedCtor() { +authorization_ = nullptr; } + AddRoleRequest::~AddRoleRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.AddRoleRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void AddRoleRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.authorization_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete authorization_; } -PROTOBUF_NOINLINE void AddRoleRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.AddRoleRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.authorization_ != nullptr); - _impl_.authorization_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void AddRoleRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* AddRoleRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void AddRoleRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.AddRoleRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && authorization_ != nullptr) { + delete authorization_; + } + authorization_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* AddRoleRequest::_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.app.v1.Authorization authorization = 1 [json_name = "authorization"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_authorization(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> AddRoleRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(AddRoleRequest, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_AddRoleRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.app.v1.Authorization authorization = 1 [json_name = "authorization"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(AddRoleRequest, _impl_.authorization_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.app.v1.Authorization authorization = 1 [json_name = "authorization"]; - {PROTOBUF_FIELD_OFFSET(AddRoleRequest, _impl_.authorization_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::Authorization>()}, - }}, {{ - }}, -}; - -::uint8_t* AddRoleRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* AddRoleRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.AddRoleRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.app.v1.Authorization authorization = 1 [json_name = "authorization"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::authorization(this), + if (this->_internal_has_authorization()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::authorization(this), _Internal::authorization(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.AddRoleRequest) return target; } -::size_t AddRoleRequest::ByteSizeLong() const { +size_t AddRoleRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.AddRoleRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .viam.app.v1.Authorization authorization = 1 [json_name = "authorization"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.authorization_); + if (this->_internal_has_authorization()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *authorization_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData AddRoleRequest::_class_data_ = { - AddRoleRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AddRoleRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + AddRoleRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* AddRoleRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AddRoleRequest::GetClassData() const { return &_class_data_; } + +void AddRoleRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void AddRoleRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.AddRoleRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void AddRoleRequest::MergeFrom(const AddRoleRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.AddRoleRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_authorization()->::viam::app::v1::Authorization::MergeFrom( - from._internal_authorization()); + if (from._internal_has_authorization()) { + _internal_mutable_authorization()->::viam::app::v1::Authorization::MergeFrom(from._internal_authorization()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void AddRoleRequest::CopyFrom(const AddRoleRequest& from) { @@ -35471,44 +35980,36 @@ void AddRoleRequest::CopyFrom(const AddRoleRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool AddRoleRequest::IsInitialized() const { +bool AddRoleRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* AddRoleRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void AddRoleRequest::InternalSwap(AddRoleRequest* PROTOBUF_RESTRICT other) { +void AddRoleRequest::InternalSwap(AddRoleRequest* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.authorization_, other->_impl_.authorization_); + swap(authorization_, other->authorization_); } -::google::protobuf::Metadata AddRoleRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata AddRoleRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[131]); + file_level_metadata_app_2fv1_2fapp_2eproto[132]); } + // =================================================================== class AddRoleResponse::_Internal { public: }; -AddRoleResponse::AddRoleResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +AddRoleResponse::AddRoleResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.app.v1.AddRoleResponse) } -AddRoleResponse::AddRoleResponse( - ::google::protobuf::Arena* arena, - const AddRoleResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - AddRoleResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +AddRoleResponse::AddRoleResponse(const AddRoleResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.app.v1.AddRoleResponse) } @@ -35516,194 +36017,186 @@ AddRoleResponse::AddRoleResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AddRoleResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AddRoleResponse::GetClassData() const { return &_class_data_; } + + + -::google::protobuf::Metadata AddRoleResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata AddRoleResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[132]); + file_level_metadata_app_2fv1_2fapp_2eproto[133]); } + // =================================================================== class RemoveRoleRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(RemoveRoleRequest, _impl_._has_bits_); static const ::viam::app::v1::Authorization& authorization(const RemoveRoleRequest* msg); - static void set_has_authorization(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::app::v1::Authorization& RemoveRoleRequest::_Internal::authorization(const RemoveRoleRequest* msg) { - return *msg->_impl_.authorization_; +const ::viam::app::v1::Authorization& +RemoveRoleRequest::_Internal::authorization(const RemoveRoleRequest* msg) { + return *msg->authorization_; } -RemoveRoleRequest::RemoveRoleRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +RemoveRoleRequest::RemoveRoleRequest(::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.RemoveRoleRequest) } -inline PROTOBUF_NDEBUG_INLINE RemoveRoleRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -RemoveRoleRequest::RemoveRoleRequest( - ::google::protobuf::Arena* arena, - const RemoveRoleRequest& from) - : ::google::protobuf::Message(arena) { - RemoveRoleRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.authorization_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::app::v1::Authorization>(arena, *from._impl_.authorization_) - : nullptr; - +RemoveRoleRequest::RemoveRoleRequest(const RemoveRoleRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_authorization()) { + authorization_ = new ::viam::app::v1::Authorization(*from.authorization_); + } else { + authorization_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.RemoveRoleRequest) } -inline PROTOBUF_NDEBUG_INLINE RemoveRoleRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void RemoveRoleRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.authorization_ = {}; +inline void RemoveRoleRequest::SharedCtor() { +authorization_ = nullptr; } + RemoveRoleRequest::~RemoveRoleRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.RemoveRoleRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void RemoveRoleRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.authorization_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete authorization_; } -PROTOBUF_NOINLINE void RemoveRoleRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.RemoveRoleRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.authorization_ != nullptr); - _impl_.authorization_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void RemoveRoleRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* RemoveRoleRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void RemoveRoleRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.RemoveRoleRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && authorization_ != nullptr) { + delete authorization_; + } + authorization_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RemoveRoleRequest::_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.app.v1.Authorization authorization = 1 [json_name = "authorization"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_authorization(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> RemoveRoleRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(RemoveRoleRequest, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_RemoveRoleRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.app.v1.Authorization authorization = 1 [json_name = "authorization"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(RemoveRoleRequest, _impl_.authorization_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.app.v1.Authorization authorization = 1 [json_name = "authorization"]; - {PROTOBUF_FIELD_OFFSET(RemoveRoleRequest, _impl_.authorization_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::Authorization>()}, - }}, {{ - }}, -}; - -::uint8_t* RemoveRoleRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* RemoveRoleRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.RemoveRoleRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.app.v1.Authorization authorization = 1 [json_name = "authorization"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::authorization(this), + if (this->_internal_has_authorization()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::authorization(this), _Internal::authorization(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.RemoveRoleRequest) return target; } -::size_t RemoveRoleRequest::ByteSizeLong() const { +size_t RemoveRoleRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.RemoveRoleRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .viam.app.v1.Authorization authorization = 1 [json_name = "authorization"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.authorization_); + if (this->_internal_has_authorization()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *authorization_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData RemoveRoleRequest::_class_data_ = { - RemoveRoleRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RemoveRoleRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + RemoveRoleRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* RemoveRoleRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RemoveRoleRequest::GetClassData() const { return &_class_data_; } + +void RemoveRoleRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void RemoveRoleRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.RemoveRoleRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void RemoveRoleRequest::MergeFrom(const RemoveRoleRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.RemoveRoleRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_authorization()->::viam::app::v1::Authorization::MergeFrom( - from._internal_authorization()); + if (from._internal_has_authorization()) { + _internal_mutable_authorization()->::viam::app::v1::Authorization::MergeFrom(from._internal_authorization()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void RemoveRoleRequest::CopyFrom(const RemoveRoleRequest& from) { @@ -35713,44 +36206,36 @@ void RemoveRoleRequest::CopyFrom(const RemoveRoleRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool RemoveRoleRequest::IsInitialized() const { +bool RemoveRoleRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* RemoveRoleRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void RemoveRoleRequest::InternalSwap(RemoveRoleRequest* PROTOBUF_RESTRICT other) { +void RemoveRoleRequest::InternalSwap(RemoveRoleRequest* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.authorization_, other->_impl_.authorization_); + swap(authorization_, other->authorization_); } -::google::protobuf::Metadata RemoveRoleRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata RemoveRoleRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[133]); + file_level_metadata_app_2fv1_2fapp_2eproto[134]); } + // =================================================================== class RemoveRoleResponse::_Internal { public: }; -RemoveRoleResponse::RemoveRoleResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +RemoveRoleResponse::RemoveRoleResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.app.v1.RemoveRoleResponse) } -RemoveRoleResponse::RemoveRoleResponse( - ::google::protobuf::Arena* arena, - const RemoveRoleResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - RemoveRoleResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +RemoveRoleResponse::RemoveRoleResponse(const RemoveRoleResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.app.v1.RemoveRoleResponse) } @@ -35758,245 +36243,229 @@ RemoveRoleResponse::RemoveRoleResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RemoveRoleResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RemoveRoleResponse::GetClassData() const { return &_class_data_; } + + + -::google::protobuf::Metadata RemoveRoleResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata RemoveRoleResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[134]); + file_level_metadata_app_2fv1_2fapp_2eproto[135]); } + // =================================================================== class ChangeRoleRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ChangeRoleRequest, _impl_._has_bits_); static const ::viam::app::v1::Authorization& old_authorization(const ChangeRoleRequest* msg); - static void set_has_old_authorization(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } static const ::viam::app::v1::Authorization& new_authorization(const ChangeRoleRequest* msg); - static void set_has_new_authorization(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } }; -const ::viam::app::v1::Authorization& ChangeRoleRequest::_Internal::old_authorization(const ChangeRoleRequest* msg) { - return *msg->_impl_.old_authorization_; +const ::viam::app::v1::Authorization& +ChangeRoleRequest::_Internal::old_authorization(const ChangeRoleRequest* msg) { + return *msg->old_authorization_; } -const ::viam::app::v1::Authorization& ChangeRoleRequest::_Internal::new_authorization(const ChangeRoleRequest* msg) { - return *msg->_impl_.new_authorization_; +const ::viam::app::v1::Authorization& +ChangeRoleRequest::_Internal::new_authorization(const ChangeRoleRequest* msg) { + return *msg->new_authorization_; } -ChangeRoleRequest::ChangeRoleRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ChangeRoleRequest::ChangeRoleRequest(::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.ChangeRoleRequest) } -inline PROTOBUF_NDEBUG_INLINE ChangeRoleRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -ChangeRoleRequest::ChangeRoleRequest( - ::google::protobuf::Arena* arena, - const ChangeRoleRequest& from) - : ::google::protobuf::Message(arena) { - ChangeRoleRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.old_authorization_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::app::v1::Authorization>(arena, *from._impl_.old_authorization_) - : nullptr; - _impl_.new_authorization_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::viam::app::v1::Authorization>(arena, *from._impl_.new_authorization_) - : nullptr; - +ChangeRoleRequest::ChangeRoleRequest(const ChangeRoleRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_old_authorization()) { + old_authorization_ = new ::viam::app::v1::Authorization(*from.old_authorization_); + } else { + old_authorization_ = nullptr; + } + if (from._internal_has_new_authorization()) { + new_authorization_ = new ::viam::app::v1::Authorization(*from.new_authorization_); + } else { + new_authorization_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.ChangeRoleRequest) } -inline PROTOBUF_NDEBUG_INLINE ChangeRoleRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void ChangeRoleRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, old_authorization_), - 0, - offsetof(Impl_, new_authorization_) - - offsetof(Impl_, old_authorization_) + - sizeof(Impl_::new_authorization_)); +inline void ChangeRoleRequest::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&old_authorization_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&new_authorization_) - + reinterpret_cast(&old_authorization_)) + sizeof(new_authorization_)); } + ChangeRoleRequest::~ChangeRoleRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.ChangeRoleRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ChangeRoleRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.old_authorization_; - delete _impl_.new_authorization_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete old_authorization_; + if (this != internal_default_instance()) delete new_authorization_; } -PROTOBUF_NOINLINE void ChangeRoleRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.ChangeRoleRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.old_authorization_ != nullptr); - _impl_.old_authorization_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.new_authorization_ != nullptr); - _impl_.new_authorization_->Clear(); - } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void ChangeRoleRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* ChangeRoleRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void ChangeRoleRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.ChangeRoleRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && old_authorization_ != nullptr) { + delete old_authorization_; + } + old_authorization_ = nullptr; + if (GetArenaForAllocation() == nullptr && new_authorization_ != nullptr) { + delete new_authorization_; + } + new_authorization_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ChangeRoleRequest::_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.app.v1.Authorization old_authorization = 1 [json_name = "oldAuthorization"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_old_authorization(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.app.v1.Authorization new_authorization = 2 [json_name = "newAuthorization"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_new_authorization(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 2, 0, 2> ChangeRoleRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ChangeRoleRequest, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ChangeRoleRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.app.v1.Authorization new_authorization = 2 [json_name = "newAuthorization"]; - {::_pbi::TcParser::FastMtS1, - {18, 1, 1, PROTOBUF_FIELD_OFFSET(ChangeRoleRequest, _impl_.new_authorization_)}}, - // .viam.app.v1.Authorization old_authorization = 1 [json_name = "oldAuthorization"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(ChangeRoleRequest, _impl_.old_authorization_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.app.v1.Authorization old_authorization = 1 [json_name = "oldAuthorization"]; - {PROTOBUF_FIELD_OFFSET(ChangeRoleRequest, _impl_.old_authorization_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .viam.app.v1.Authorization new_authorization = 2 [json_name = "newAuthorization"]; - {PROTOBUF_FIELD_OFFSET(ChangeRoleRequest, _impl_.new_authorization_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::Authorization>()}, - {::_pbi::TcParser::GetTable<::viam::app::v1::Authorization>()}, - }}, {{ - }}, -}; - -::uint8_t* ChangeRoleRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ChangeRoleRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ChangeRoleRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.app.v1.Authorization old_authorization = 1 [json_name = "oldAuthorization"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::old_authorization(this), + if (this->_internal_has_old_authorization()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::old_authorization(this), _Internal::old_authorization(this).GetCachedSize(), target, stream); } // .viam.app.v1.Authorization new_authorization = 2 [json_name = "newAuthorization"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::new_authorization(this), + if (this->_internal_has_new_authorization()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::new_authorization(this), _Internal::new_authorization(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.ChangeRoleRequest) return target; } -::size_t ChangeRoleRequest::ByteSizeLong() const { +size_t ChangeRoleRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ChangeRoleRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // .viam.app.v1.Authorization old_authorization = 1 [json_name = "oldAuthorization"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.old_authorization_); - } - - // .viam.app.v1.Authorization new_authorization = 2 [json_name = "newAuthorization"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.new_authorization_); - } + // .viam.app.v1.Authorization old_authorization = 1 [json_name = "oldAuthorization"]; + if (this->_internal_has_old_authorization()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *old_authorization_); + } + // .viam.app.v1.Authorization new_authorization = 2 [json_name = "newAuthorization"]; + if (this->_internal_has_new_authorization()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *new_authorization_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ChangeRoleRequest::_class_data_ = { - ChangeRoleRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ChangeRoleRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ChangeRoleRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* ChangeRoleRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ChangeRoleRequest::GetClassData() const { return &_class_data_; } + +void ChangeRoleRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ChangeRoleRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ChangeRoleRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ChangeRoleRequest::MergeFrom(const ChangeRoleRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ChangeRoleRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_old_authorization()->::viam::app::v1::Authorization::MergeFrom( - from._internal_old_authorization()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_new_authorization()->::viam::app::v1::Authorization::MergeFrom( - from._internal_new_authorization()); - } + if (from._internal_has_old_authorization()) { + _internal_mutable_old_authorization()->::viam::app::v1::Authorization::MergeFrom(from._internal_old_authorization()); + } + if (from._internal_has_new_authorization()) { + _internal_mutable_new_authorization()->::viam::app::v1::Authorization::MergeFrom(from._internal_new_authorization()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ChangeRoleRequest::CopyFrom(const ChangeRoleRequest& from) { @@ -36006,49 +36475,41 @@ void ChangeRoleRequest::CopyFrom(const ChangeRoleRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ChangeRoleRequest::IsInitialized() const { +bool ChangeRoleRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* ChangeRoleRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ChangeRoleRequest::InternalSwap(ChangeRoleRequest* PROTOBUF_RESTRICT other) { +void ChangeRoleRequest::InternalSwap(ChangeRoleRequest* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(ChangeRoleRequest, _impl_.new_authorization_) - + sizeof(ChangeRoleRequest::_impl_.new_authorization_) - - PROTOBUF_FIELD_OFFSET(ChangeRoleRequest, _impl_.old_authorization_)>( - reinterpret_cast(&_impl_.old_authorization_), - reinterpret_cast(&other->_impl_.old_authorization_)); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(ChangeRoleRequest, new_authorization_) + + sizeof(ChangeRoleRequest::new_authorization_) + - PROTOBUF_FIELD_OFFSET(ChangeRoleRequest, old_authorization_)>( + reinterpret_cast(&old_authorization_), + reinterpret_cast(&other->old_authorization_)); } -::google::protobuf::Metadata ChangeRoleRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ChangeRoleRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[135]); + file_level_metadata_app_2fv1_2fapp_2eproto[136]); } + // =================================================================== class ChangeRoleResponse::_Internal { public: }; -ChangeRoleResponse::ChangeRoleResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +ChangeRoleResponse::ChangeRoleResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.app.v1.ChangeRoleResponse) } -ChangeRoleResponse::ChangeRoleResponse( - ::google::protobuf::Arena* arena, - const ChangeRoleResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - ChangeRoleResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +ChangeRoleResponse::ChangeRoleResponse(const ChangeRoleResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.app.v1.ChangeRoleResponse) } @@ -36056,201 +36517,226 @@ ChangeRoleResponse::ChangeRoleResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ChangeRoleResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ChangeRoleResponse::GetClassData() const { return &_class_data_; } + + -::google::protobuf::Metadata ChangeRoleResponse::GetMetadata() const { + +::PROTOBUF_NAMESPACE_ID::Metadata ChangeRoleResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[136]); + file_level_metadata_app_2fv1_2fapp_2eproto[137]); } + // =================================================================== class ListAuthorizationsRequest::_Internal { public: }; -ListAuthorizationsRequest::ListAuthorizationsRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ListAuthorizationsRequest::ListAuthorizationsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + resource_ids_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.v1.ListAuthorizationsRequest) } -inline PROTOBUF_NDEBUG_INLINE ListAuthorizationsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : resource_ids_{visibility, arena, from.resource_ids_}, - organization_id_(arena, from.organization_id_), - _cached_size_{0} {} - -ListAuthorizationsRequest::ListAuthorizationsRequest( - ::google::protobuf::Arena* arena, - const ListAuthorizationsRequest& from) - : ::google::protobuf::Message(arena) { - ListAuthorizationsRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +ListAuthorizationsRequest::ListAuthorizationsRequest(const ListAuthorizationsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + resource_ids_(from.resource_ids_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + organization_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_organization_id().empty()) { + organization_id_.Set(from._internal_organization_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.ListAuthorizationsRequest) } -inline PROTOBUF_NDEBUG_INLINE ListAuthorizationsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : resource_ids_{visibility, arena}, - organization_id_(arena), - _cached_size_{0} {} -inline void ListAuthorizationsRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void ListAuthorizationsRequest::SharedCtor() { +organization_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + ListAuthorizationsRequest::~ListAuthorizationsRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.ListAuthorizationsRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ListAuthorizationsRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.organization_id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + organization_id_.Destroy(); } -PROTOBUF_NOINLINE void ListAuthorizationsRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.ListAuthorizationsRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.resource_ids_.Clear(); - _impl_.organization_id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void ListAuthorizationsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* ListAuthorizationsRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void ListAuthorizationsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.ListAuthorizationsRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + resource_ids_.Clear(); + organization_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListAuthorizationsRequest::_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 organization_id = 1 [json_name = "organizationId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_organization_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ListAuthorizationsRequest.organization_id")); + } else + goto handle_unusual; + continue; + // repeated string resource_ids = 2 [json_name = "resourceIds"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_resource_ids(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ListAuthorizationsRequest.resource_ids")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 73, 2> ListAuthorizationsRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_ListAuthorizationsRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated string resource_ids = 2 [json_name = "resourceIds"]; - {::_pbi::TcParser::FastUR1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(ListAuthorizationsRequest, _impl_.resource_ids_)}}, - // string organization_id = 1 [json_name = "organizationId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ListAuthorizationsRequest, _impl_.organization_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string organization_id = 1 [json_name = "organizationId"]; - {PROTOBUF_FIELD_OFFSET(ListAuthorizationsRequest, _impl_.organization_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated string resource_ids = 2 [json_name = "resourceIds"]; - {PROTOBUF_FIELD_OFFSET(ListAuthorizationsRequest, _impl_.resource_ids_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - }}, - // no aux_entries - {{ - "\45\17\14\0\0\0\0\0" - "viam.app.v1.ListAuthorizationsRequest" - "organization_id" - "resource_ids" - }}, -}; - -::uint8_t* ListAuthorizationsRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ListAuthorizationsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ListAuthorizationsRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string organization_id = 1 [json_name = "organizationId"]; if (!this->_internal_organization_id().empty()) { - const std::string& _s = this->_internal_organization_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ListAuthorizationsRequest.organization_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_organization_id().data(), static_cast(this->_internal_organization_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ListAuthorizationsRequest.organization_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_organization_id(), target); } // repeated string resource_ids = 2 [json_name = "resourceIds"]; - for (int i = 0, n = this->_internal_resource_ids_size(); i < n; ++i) { - const auto& s = this->_internal_resource_ids().Get(i); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ListAuthorizationsRequest.resource_ids"); + for (int i = 0, n = this->_internal_resource_ids_size(); i < n; i++) { + const auto& s = this->_internal_resource_ids(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ListAuthorizationsRequest.resource_ids"); target = stream->WriteString(2, s, target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.ListAuthorizationsRequest) return target; } -::size_t ListAuthorizationsRequest::ByteSizeLong() const { +size_t ListAuthorizationsRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ListAuthorizationsRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated string resource_ids = 2 [json_name = "resourceIds"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_resource_ids().size()); - for (int i = 0, n = _internal_resource_ids().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - _internal_resource_ids().Get(i)); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(resource_ids_.size()); + for (int i = 0, n = resource_ids_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + resource_ids_.Get(i)); } + // string organization_id = 1 [json_name = "organizationId"]; if (!this->_internal_organization_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_organization_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_organization_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ListAuthorizationsRequest::_class_data_ = { - ListAuthorizationsRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListAuthorizationsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ListAuthorizationsRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* ListAuthorizationsRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListAuthorizationsRequest::GetClassData() const { return &_class_data_; } + +void ListAuthorizationsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ListAuthorizationsRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ListAuthorizationsRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ListAuthorizationsRequest::MergeFrom(const ListAuthorizationsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ListAuthorizationsRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_resource_ids()->MergeFrom(from._internal_resource_ids()); + resource_ids_.MergeFrom(from.resource_ids_); if (!from._internal_organization_id().empty()) { - _this->_internal_set_organization_id(from._internal_organization_id()); + _internal_set_organization_id(from._internal_organization_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ListAuthorizationsRequest::CopyFrom(const ListAuthorizationsRequest& from) { @@ -36260,183 +36746,181 @@ void ListAuthorizationsRequest::CopyFrom(const ListAuthorizationsRequest& from) MergeFrom(from); } -PROTOBUF_NOINLINE bool ListAuthorizationsRequest::IsInitialized() const { +bool ListAuthorizationsRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* ListAuthorizationsRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ListAuthorizationsRequest::InternalSwap(ListAuthorizationsRequest* PROTOBUF_RESTRICT other) { +void ListAuthorizationsRequest::InternalSwap(ListAuthorizationsRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.resource_ids_.InternalSwap(&other->_impl_.resource_ids_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.organization_id_, &other->_impl_.organization_id_, arena); + resource_ids_.InternalSwap(&other->resource_ids_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &organization_id_, lhs_arena, + &other->organization_id_, rhs_arena + ); } -::google::protobuf::Metadata ListAuthorizationsRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ListAuthorizationsRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[137]); + file_level_metadata_app_2fv1_2fapp_2eproto[138]); } + // =================================================================== class ListAuthorizationsResponse::_Internal { public: }; -ListAuthorizationsResponse::ListAuthorizationsResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ListAuthorizationsResponse::ListAuthorizationsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + authorizations_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.v1.ListAuthorizationsResponse) } -inline PROTOBUF_NDEBUG_INLINE ListAuthorizationsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : authorizations_{visibility, arena, from.authorizations_}, - _cached_size_{0} {} - -ListAuthorizationsResponse::ListAuthorizationsResponse( - ::google::protobuf::Arena* arena, - const ListAuthorizationsResponse& from) - : ::google::protobuf::Message(arena) { - ListAuthorizationsResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +ListAuthorizationsResponse::ListAuthorizationsResponse(const ListAuthorizationsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + authorizations_(from.authorizations_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.app.v1.ListAuthorizationsResponse) } -inline PROTOBUF_NDEBUG_INLINE ListAuthorizationsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : authorizations_{visibility, arena}, - _cached_size_{0} {} -inline void ListAuthorizationsResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void ListAuthorizationsResponse::SharedCtor() { } + ListAuthorizationsResponse::~ListAuthorizationsResponse() { // @@protoc_insertion_point(destructor:viam.app.v1.ListAuthorizationsResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ListAuthorizationsResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void ListAuthorizationsResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.ListAuthorizationsResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.authorizations_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void ListAuthorizationsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* ListAuthorizationsResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void ListAuthorizationsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.ListAuthorizationsResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + authorizations_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListAuthorizationsResponse::_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) { + // repeated .viam.app.v1.Authorization authorizations = 1 [json_name = "authorizations"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_authorizations(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ListAuthorizationsResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ListAuthorizationsResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.app.v1.Authorization authorizations = 1 [json_name = "authorizations"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ListAuthorizationsResponse, _impl_.authorizations_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.app.v1.Authorization authorizations = 1 [json_name = "authorizations"]; - {PROTOBUF_FIELD_OFFSET(ListAuthorizationsResponse, _impl_.authorizations_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::Authorization>()}, - }}, {{ - }}, -}; - -::uint8_t* ListAuthorizationsResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ListAuthorizationsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ListAuthorizationsResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .viam.app.v1.Authorization authorizations = 1 [json_name = "authorizations"]; for (unsigned i = 0, n = static_cast(this->_internal_authorizations_size()); i < n; i++) { - const auto& repfield = this->_internal_authorizations().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_authorizations(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.ListAuthorizationsResponse) return target; } -::size_t ListAuthorizationsResponse::ByteSizeLong() const { +size_t ListAuthorizationsResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ListAuthorizationsResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.app.v1.Authorization authorizations = 1 [json_name = "authorizations"]; total_size += 1UL * this->_internal_authorizations_size(); - for (const auto& msg : this->_internal_authorizations()) { + for (const auto& msg : this->authorizations_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ListAuthorizationsResponse::_class_data_ = { - ListAuthorizationsResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListAuthorizationsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ListAuthorizationsResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* ListAuthorizationsResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListAuthorizationsResponse::GetClassData() const { return &_class_data_; } + +void ListAuthorizationsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ListAuthorizationsResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ListAuthorizationsResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ListAuthorizationsResponse::MergeFrom(const ListAuthorizationsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ListAuthorizationsResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_authorizations()->MergeFrom( - from._internal_authorizations()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + authorizations_.MergeFrom(from.authorizations_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ListAuthorizationsResponse::CopyFrom(const ListAuthorizationsResponse& from) { @@ -36446,180 +36930,175 @@ void ListAuthorizationsResponse::CopyFrom(const ListAuthorizationsResponse& from MergeFrom(from); } -PROTOBUF_NOINLINE bool ListAuthorizationsResponse::IsInitialized() const { +bool ListAuthorizationsResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* ListAuthorizationsResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ListAuthorizationsResponse::InternalSwap(ListAuthorizationsResponse* PROTOBUF_RESTRICT other) { +void ListAuthorizationsResponse::InternalSwap(ListAuthorizationsResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.authorizations_.InternalSwap(&other->_impl_.authorizations_); + authorizations_.InternalSwap(&other->authorizations_); } -::google::protobuf::Metadata ListAuthorizationsResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ListAuthorizationsResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[138]); + file_level_metadata_app_2fv1_2fapp_2eproto[139]); } + // =================================================================== class CheckPermissionsRequest::_Internal { public: }; -CheckPermissionsRequest::CheckPermissionsRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +CheckPermissionsRequest::CheckPermissionsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + permissions_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.v1.CheckPermissionsRequest) } -inline PROTOBUF_NDEBUG_INLINE CheckPermissionsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : permissions_{visibility, arena, from.permissions_}, - _cached_size_{0} {} - -CheckPermissionsRequest::CheckPermissionsRequest( - ::google::protobuf::Arena* arena, - const CheckPermissionsRequest& from) - : ::google::protobuf::Message(arena) { - CheckPermissionsRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +CheckPermissionsRequest::CheckPermissionsRequest(const CheckPermissionsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + permissions_(from.permissions_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.app.v1.CheckPermissionsRequest) } -inline PROTOBUF_NDEBUG_INLINE CheckPermissionsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : permissions_{visibility, arena}, - _cached_size_{0} {} -inline void CheckPermissionsRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void CheckPermissionsRequest::SharedCtor() { } + CheckPermissionsRequest::~CheckPermissionsRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.CheckPermissionsRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void CheckPermissionsRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void CheckPermissionsRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.CheckPermissionsRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.permissions_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void CheckPermissionsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* CheckPermissionsRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void CheckPermissionsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.CheckPermissionsRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + permissions_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CheckPermissionsRequest::_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) { + // repeated .viam.app.v1.AuthorizedPermissions permissions = 1 [json_name = "permissions"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_permissions(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> CheckPermissionsRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_CheckPermissionsRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.app.v1.AuthorizedPermissions permissions = 1 [json_name = "permissions"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(CheckPermissionsRequest, _impl_.permissions_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.app.v1.AuthorizedPermissions permissions = 1 [json_name = "permissions"]; - {PROTOBUF_FIELD_OFFSET(CheckPermissionsRequest, _impl_.permissions_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::AuthorizedPermissions>()}, - }}, {{ - }}, -}; - -::uint8_t* CheckPermissionsRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* CheckPermissionsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.CheckPermissionsRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .viam.app.v1.AuthorizedPermissions permissions = 1 [json_name = "permissions"]; for (unsigned i = 0, n = static_cast(this->_internal_permissions_size()); i < n; i++) { - const auto& repfield = this->_internal_permissions().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_permissions(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.CheckPermissionsRequest) return target; } -::size_t CheckPermissionsRequest::ByteSizeLong() const { +size_t CheckPermissionsRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.CheckPermissionsRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.app.v1.AuthorizedPermissions permissions = 1 [json_name = "permissions"]; total_size += 1UL * this->_internal_permissions_size(); - for (const auto& msg : this->_internal_permissions()) { + for (const auto& msg : this->permissions_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData CheckPermissionsRequest::_class_data_ = { - CheckPermissionsRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CheckPermissionsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CheckPermissionsRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* CheckPermissionsRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CheckPermissionsRequest::GetClassData() const { return &_class_data_; } + +void CheckPermissionsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void CheckPermissionsRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.CheckPermissionsRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void CheckPermissionsRequest::MergeFrom(const CheckPermissionsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.CheckPermissionsRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_permissions()->MergeFrom( - from._internal_permissions()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + permissions_.MergeFrom(from.permissions_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CheckPermissionsRequest::CopyFrom(const CheckPermissionsRequest& from) { @@ -36629,239 +37108,268 @@ void CheckPermissionsRequest::CopyFrom(const CheckPermissionsRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool CheckPermissionsRequest::IsInitialized() const { +bool CheckPermissionsRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* CheckPermissionsRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void CheckPermissionsRequest::InternalSwap(CheckPermissionsRequest* PROTOBUF_RESTRICT other) { +void CheckPermissionsRequest::InternalSwap(CheckPermissionsRequest* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.permissions_.InternalSwap(&other->_impl_.permissions_); + permissions_.InternalSwap(&other->permissions_); } -::google::protobuf::Metadata CheckPermissionsRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata CheckPermissionsRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[139]); + file_level_metadata_app_2fv1_2fapp_2eproto[140]); } + // =================================================================== class AuthorizedPermissions::_Internal { public: }; -AuthorizedPermissions::AuthorizedPermissions(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +AuthorizedPermissions::AuthorizedPermissions(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + permissions_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.v1.AuthorizedPermissions) } -inline PROTOBUF_NDEBUG_INLINE AuthorizedPermissions::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : permissions_{visibility, arena, from.permissions_}, - resource_type_(arena, from.resource_type_), - resource_id_(arena, from.resource_id_), - _cached_size_{0} {} - -AuthorizedPermissions::AuthorizedPermissions( - ::google::protobuf::Arena* arena, - const AuthorizedPermissions& from) - : ::google::protobuf::Message(arena) { - AuthorizedPermissions* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +AuthorizedPermissions::AuthorizedPermissions(const AuthorizedPermissions& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + permissions_(from.permissions_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + resource_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + resource_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_resource_type().empty()) { + resource_type_.Set(from._internal_resource_type(), + GetArenaForAllocation()); + } + resource_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + resource_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_resource_id().empty()) { + resource_id_.Set(from._internal_resource_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.AuthorizedPermissions) } -inline PROTOBUF_NDEBUG_INLINE AuthorizedPermissions::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : permissions_{visibility, arena}, - resource_type_(arena), - resource_id_(arena), - _cached_size_{0} {} -inline void AuthorizedPermissions::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void AuthorizedPermissions::SharedCtor() { +resource_type_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + resource_type_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +resource_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + resource_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + AuthorizedPermissions::~AuthorizedPermissions() { // @@protoc_insertion_point(destructor:viam.app.v1.AuthorizedPermissions) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void AuthorizedPermissions::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.resource_type_.Destroy(); - _impl_.resource_id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + resource_type_.Destroy(); + resource_id_.Destroy(); } -PROTOBUF_NOINLINE void AuthorizedPermissions::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.AuthorizedPermissions) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.permissions_.Clear(); - _impl_.resource_type_.ClearToEmpty(); - _impl_.resource_id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void AuthorizedPermissions::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* AuthorizedPermissions::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void AuthorizedPermissions::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.AuthorizedPermissions) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + permissions_.Clear(); + resource_type_.ClearToEmpty(); + resource_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* AuthorizedPermissions::_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 resource_type = 1 [json_name = "resourceType"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_resource_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.AuthorizedPermissions.resource_type")); + } else + goto handle_unusual; + continue; + // string resource_id = 2 [json_name = "resourceId"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_resource_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.AuthorizedPermissions.resource_id")); + } else + goto handle_unusual; + continue; + // repeated string permissions = 3 [json_name = "permissions"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_permissions(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.AuthorizedPermissions.permissions")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 77, 2> AuthorizedPermissions::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_AuthorizedPermissions_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string resource_type = 1 [json_name = "resourceType"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(AuthorizedPermissions, _impl_.resource_type_)}}, - // string resource_id = 2 [json_name = "resourceId"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(AuthorizedPermissions, _impl_.resource_id_)}}, - // repeated string permissions = 3 [json_name = "permissions"]; - {::_pbi::TcParser::FastUR1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(AuthorizedPermissions, _impl_.permissions_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string resource_type = 1 [json_name = "resourceType"]; - {PROTOBUF_FIELD_OFFSET(AuthorizedPermissions, _impl_.resource_type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string resource_id = 2 [json_name = "resourceId"]; - {PROTOBUF_FIELD_OFFSET(AuthorizedPermissions, _impl_.resource_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated string permissions = 3 [json_name = "permissions"]; - {PROTOBUF_FIELD_OFFSET(AuthorizedPermissions, _impl_.permissions_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - }}, - // no aux_entries - {{ - "\41\15\13\13\0\0\0\0" - "viam.app.v1.AuthorizedPermissions" - "resource_type" - "resource_id" - "permissions" - }}, -}; - -::uint8_t* AuthorizedPermissions::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* AuthorizedPermissions::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.AuthorizedPermissions) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string resource_type = 1 [json_name = "resourceType"]; if (!this->_internal_resource_type().empty()) { - const std::string& _s = this->_internal_resource_type(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.AuthorizedPermissions.resource_type"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_resource_type().data(), static_cast(this->_internal_resource_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.AuthorizedPermissions.resource_type"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_resource_type(), target); } // string resource_id = 2 [json_name = "resourceId"]; if (!this->_internal_resource_id().empty()) { - const std::string& _s = this->_internal_resource_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.AuthorizedPermissions.resource_id"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_resource_id().data(), static_cast(this->_internal_resource_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.AuthorizedPermissions.resource_id"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_resource_id(), target); } // repeated string permissions = 3 [json_name = "permissions"]; - for (int i = 0, n = this->_internal_permissions_size(); i < n; ++i) { - const auto& s = this->_internal_permissions().Get(i); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.AuthorizedPermissions.permissions"); + for (int i = 0, n = this->_internal_permissions_size(); i < n; i++) { + const auto& s = this->_internal_permissions(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.AuthorizedPermissions.permissions"); target = stream->WriteString(3, s, target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.AuthorizedPermissions) return target; } -::size_t AuthorizedPermissions::ByteSizeLong() const { +size_t AuthorizedPermissions::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.AuthorizedPermissions) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated string permissions = 3 [json_name = "permissions"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_permissions().size()); - for (int i = 0, n = _internal_permissions().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - _internal_permissions().Get(i)); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(permissions_.size()); + for (int i = 0, n = permissions_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + permissions_.Get(i)); } + // string resource_type = 1 [json_name = "resourceType"]; if (!this->_internal_resource_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_resource_type()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_resource_type()); } // string resource_id = 2 [json_name = "resourceId"]; if (!this->_internal_resource_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_resource_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_resource_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData AuthorizedPermissions::_class_data_ = { - AuthorizedPermissions::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AuthorizedPermissions::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + AuthorizedPermissions::MergeImpl }; -const ::google::protobuf::Message::ClassData* AuthorizedPermissions::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AuthorizedPermissions::GetClassData() const { return &_class_data_; } + +void AuthorizedPermissions::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void AuthorizedPermissions::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.AuthorizedPermissions) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void AuthorizedPermissions::MergeFrom(const AuthorizedPermissions& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.AuthorizedPermissions) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_permissions()->MergeFrom(from._internal_permissions()); + permissions_.MergeFrom(from.permissions_); if (!from._internal_resource_type().empty()) { - _this->_internal_set_resource_type(from._internal_resource_type()); + _internal_set_resource_type(from._internal_resource_type()); } if (!from._internal_resource_id().empty()) { - _this->_internal_set_resource_id(from._internal_resource_id()); + _internal_set_resource_id(from._internal_resource_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void AuthorizedPermissions::CopyFrom(const AuthorizedPermissions& from) { @@ -36871,184 +37379,185 @@ void AuthorizedPermissions::CopyFrom(const AuthorizedPermissions& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool AuthorizedPermissions::IsInitialized() const { +bool AuthorizedPermissions::IsInitialized() const { return true; } -::_pbi::CachedSize* AuthorizedPermissions::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void AuthorizedPermissions::InternalSwap(AuthorizedPermissions* PROTOBUF_RESTRICT other) { +void AuthorizedPermissions::InternalSwap(AuthorizedPermissions* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.permissions_.InternalSwap(&other->_impl_.permissions_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.resource_type_, &other->_impl_.resource_type_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.resource_id_, &other->_impl_.resource_id_, arena); -} - -::google::protobuf::Metadata AuthorizedPermissions::GetMetadata() const { + permissions_.InternalSwap(&other->permissions_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &resource_type_, lhs_arena, + &other->resource_type_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &resource_id_, lhs_arena, + &other->resource_id_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata AuthorizedPermissions::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[140]); + file_level_metadata_app_2fv1_2fapp_2eproto[141]); } + // =================================================================== class CheckPermissionsResponse::_Internal { public: }; -CheckPermissionsResponse::CheckPermissionsResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +CheckPermissionsResponse::CheckPermissionsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + authorized_permissions_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.v1.CheckPermissionsResponse) } -inline PROTOBUF_NDEBUG_INLINE CheckPermissionsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : authorized_permissions_{visibility, arena, from.authorized_permissions_}, - _cached_size_{0} {} - -CheckPermissionsResponse::CheckPermissionsResponse( - ::google::protobuf::Arena* arena, - const CheckPermissionsResponse& from) - : ::google::protobuf::Message(arena) { - CheckPermissionsResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +CheckPermissionsResponse::CheckPermissionsResponse(const CheckPermissionsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + authorized_permissions_(from.authorized_permissions_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.app.v1.CheckPermissionsResponse) } -inline PROTOBUF_NDEBUG_INLINE CheckPermissionsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : authorized_permissions_{visibility, arena}, - _cached_size_{0} {} -inline void CheckPermissionsResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void CheckPermissionsResponse::SharedCtor() { } + CheckPermissionsResponse::~CheckPermissionsResponse() { // @@protoc_insertion_point(destructor:viam.app.v1.CheckPermissionsResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void CheckPermissionsResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void CheckPermissionsResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.CheckPermissionsResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.authorized_permissions_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void CheckPermissionsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* CheckPermissionsResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void CheckPermissionsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.CheckPermissionsResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + authorized_permissions_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CheckPermissionsResponse::_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) { + // repeated .viam.app.v1.AuthorizedPermissions authorized_permissions = 1 [json_name = "authorizedPermissions"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_authorized_permissions(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> CheckPermissionsResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_CheckPermissionsResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.app.v1.AuthorizedPermissions authorized_permissions = 1 [json_name = "authorizedPermissions"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(CheckPermissionsResponse, _impl_.authorized_permissions_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.app.v1.AuthorizedPermissions authorized_permissions = 1 [json_name = "authorizedPermissions"]; - {PROTOBUF_FIELD_OFFSET(CheckPermissionsResponse, _impl_.authorized_permissions_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::AuthorizedPermissions>()}, - }}, {{ - }}, -}; - -::uint8_t* CheckPermissionsResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* CheckPermissionsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.CheckPermissionsResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .viam.app.v1.AuthorizedPermissions authorized_permissions = 1 [json_name = "authorizedPermissions"]; for (unsigned i = 0, n = static_cast(this->_internal_authorized_permissions_size()); i < n; i++) { - const auto& repfield = this->_internal_authorized_permissions().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_authorized_permissions(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.CheckPermissionsResponse) return target; } -::size_t CheckPermissionsResponse::ByteSizeLong() const { +size_t CheckPermissionsResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.CheckPermissionsResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.app.v1.AuthorizedPermissions authorized_permissions = 1 [json_name = "authorizedPermissions"]; total_size += 1UL * this->_internal_authorized_permissions_size(); - for (const auto& msg : this->_internal_authorized_permissions()) { + for (const auto& msg : this->authorized_permissions_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData CheckPermissionsResponse::_class_data_ = { - CheckPermissionsResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CheckPermissionsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CheckPermissionsResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* CheckPermissionsResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CheckPermissionsResponse::GetClassData() const { return &_class_data_; } + +void CheckPermissionsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void CheckPermissionsResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.CheckPermissionsResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void CheckPermissionsResponse::MergeFrom(const CheckPermissionsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.CheckPermissionsResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_authorized_permissions()->MergeFrom( - from._internal_authorized_permissions()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + authorized_permissions_.MergeFrom(from.authorized_permissions_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CheckPermissionsResponse::CopyFrom(const CheckPermissionsResponse& from) { @@ -37058,308 +37567,351 @@ void CheckPermissionsResponse::CopyFrom(const CheckPermissionsResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool CheckPermissionsResponse::IsInitialized() const { +bool CheckPermissionsResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* CheckPermissionsResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void CheckPermissionsResponse::InternalSwap(CheckPermissionsResponse* PROTOBUF_RESTRICT other) { +void CheckPermissionsResponse::InternalSwap(CheckPermissionsResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.authorized_permissions_.InternalSwap(&other->_impl_.authorized_permissions_); + authorized_permissions_.InternalSwap(&other->authorized_permissions_); } -::google::protobuf::Metadata CheckPermissionsResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata CheckPermissionsResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[141]); + file_level_metadata_app_2fv1_2fapp_2eproto[142]); } + // =================================================================== class ModuleVersion::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ModuleVersion, _impl_._has_bits_); + using HasBits = decltype(std::declval()._has_bits_); static void set_has_first_run(HasBits* has_bits) { (*has_bits)[0] |= 1u; } }; -ModuleVersion::ModuleVersion(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ModuleVersion::ModuleVersion(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + files_(arena), + models_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.v1.ModuleVersion) } -inline PROTOBUF_NDEBUG_INLINE ModuleVersion::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - files_{visibility, arena, from.files_}, - models_{visibility, arena, from.models_}, - version_(arena, from.version_), - entrypoint_(arena, from.entrypoint_), - first_run_(arena, from.first_run_) {} - -ModuleVersion::ModuleVersion( - ::google::protobuf::Arena* arena, - const ModuleVersion& from) - : ::google::protobuf::Message(arena) { - ModuleVersion* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +ModuleVersion::ModuleVersion(const ModuleVersion& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_), + files_(from.files_), + models_(from.models_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + version_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + version_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_version().empty()) { + version_.Set(from._internal_version(), + GetArenaForAllocation()); + } + entrypoint_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + entrypoint_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_entrypoint().empty()) { + entrypoint_.Set(from._internal_entrypoint(), + GetArenaForAllocation()); + } + first_run_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + first_run_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (from._internal_has_first_run()) { + first_run_.Set(from._internal_first_run(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.ModuleVersion) } -inline PROTOBUF_NDEBUG_INLINE ModuleVersion::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - files_{visibility, arena}, - models_{visibility, arena}, - version_(arena), - entrypoint_(arena), - first_run_(arena) {} -inline void ModuleVersion::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void ModuleVersion::SharedCtor() { +version_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + version_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +entrypoint_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + entrypoint_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +first_run_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + first_run_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + ModuleVersion::~ModuleVersion() { // @@protoc_insertion_point(destructor:viam.app.v1.ModuleVersion) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ModuleVersion::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.version_.Destroy(); - _impl_.entrypoint_.Destroy(); - _impl_.first_run_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + version_.Destroy(); + entrypoint_.Destroy(); + first_run_.Destroy(); +} + +void ModuleVersion::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void ModuleVersion::Clear() { +void ModuleVersion::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.ModuleVersion) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.files_.Clear(); - _impl_.models_.Clear(); - _impl_.version_.ClearToEmpty(); - _impl_.entrypoint_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; + files_.Clear(); + models_.Clear(); + version_.ClearToEmpty(); + entrypoint_.ClearToEmpty(); + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { - _impl_.first_run_.ClearNonDefaultToEmpty(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ModuleVersion::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + first_run_.ClearNonDefaultToEmpty(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ModuleVersion::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string version = 1 [json_name = "version"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_version(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ModuleVersion.version")); + } else + goto handle_unusual; + continue; + // repeated .viam.app.v1.Uploads files = 2 [json_name = "files"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_files(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } else + goto handle_unusual; + continue; + // repeated .viam.app.v1.Model models = 3 [json_name = "models"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_models(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); + } else + goto handle_unusual; + continue; + // string entrypoint = 4 [json_name = "entrypoint"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_entrypoint(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ModuleVersion.entrypoint")); + } else + goto handle_unusual; + continue; + // optional string first_run = 5 [json_name = "firstRun"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + auto str = _internal_mutable_first_run(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ModuleVersion.first_run")); + } 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: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 5, 2, 60, 2> ModuleVersion::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ModuleVersion, _impl_._has_bits_), - 0, // no _extensions_ - 5, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967264, // skipmap - offsetof(decltype(_table_), field_entries), - 5, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ModuleVersion_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string version = 1 [json_name = "version"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ModuleVersion, _impl_.version_)}}, - // repeated .viam.app.v1.Uploads files = 2 [json_name = "files"]; - {::_pbi::TcParser::FastMtR1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(ModuleVersion, _impl_.files_)}}, - // repeated .viam.app.v1.Model models = 3 [json_name = "models"]; - {::_pbi::TcParser::FastMtR1, - {26, 63, 1, PROTOBUF_FIELD_OFFSET(ModuleVersion, _impl_.models_)}}, - // string entrypoint = 4 [json_name = "entrypoint"]; - {::_pbi::TcParser::FastUS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(ModuleVersion, _impl_.entrypoint_)}}, - // optional string first_run = 5 [json_name = "firstRun"]; - {::_pbi::TcParser::FastUS1, - {42, 0, 0, PROTOBUF_FIELD_OFFSET(ModuleVersion, _impl_.first_run_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string version = 1 [json_name = "version"]; - {PROTOBUF_FIELD_OFFSET(ModuleVersion, _impl_.version_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated .viam.app.v1.Uploads files = 2 [json_name = "files"]; - {PROTOBUF_FIELD_OFFSET(ModuleVersion, _impl_.files_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated .viam.app.v1.Model models = 3 [json_name = "models"]; - {PROTOBUF_FIELD_OFFSET(ModuleVersion, _impl_.models_), -1, 1, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // string entrypoint = 4 [json_name = "entrypoint"]; - {PROTOBUF_FIELD_OFFSET(ModuleVersion, _impl_.entrypoint_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // optional string first_run = 5 [json_name = "firstRun"]; - {PROTOBUF_FIELD_OFFSET(ModuleVersion, _impl_.first_run_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::Uploads>()}, - {::_pbi::TcParser::GetTable<::viam::app::v1::Model>()}, - }}, {{ - "\31\7\0\0\12\11\0\0" - "viam.app.v1.ModuleVersion" - "version" - "entrypoint" - "first_run" - }}, -}; - -::uint8_t* ModuleVersion::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ModuleVersion::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ModuleVersion) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string version = 1 [json_name = "version"]; if (!this->_internal_version().empty()) { - const std::string& _s = this->_internal_version(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ModuleVersion.version"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_version().data(), static_cast(this->_internal_version().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ModuleVersion.version"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_version(), target); } // repeated .viam.app.v1.Uploads files = 2 [json_name = "files"]; for (unsigned i = 0, n = static_cast(this->_internal_files_size()); i < n; i++) { - const auto& repfield = this->_internal_files().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_files(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); } // repeated .viam.app.v1.Model models = 3 [json_name = "models"]; for (unsigned i = 0, n = static_cast(this->_internal_models_size()); i < n; i++) { - const auto& repfield = this->_internal_models().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_models(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream); } // string entrypoint = 4 [json_name = "entrypoint"]; if (!this->_internal_entrypoint().empty()) { - const std::string& _s = this->_internal_entrypoint(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ModuleVersion.entrypoint"); - target = stream->WriteStringMaybeAliased(4, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_entrypoint().data(), static_cast(this->_internal_entrypoint().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ModuleVersion.entrypoint"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_entrypoint(), target); } - cached_has_bits = _impl_._has_bits_[0]; // optional string first_run = 5 [json_name = "firstRun"]; - if (cached_has_bits & 0x00000001u) { - const std::string& _s = this->_internal_first_run(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ModuleVersion.first_run"); - target = stream->WriteStringMaybeAliased(5, _s, target); + if (_internal_has_first_run()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_first_run().data(), static_cast(this->_internal_first_run().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ModuleVersion.first_run"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_first_run(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.ModuleVersion) return target; } -::size_t ModuleVersion::ByteSizeLong() const { +size_t ModuleVersion::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ModuleVersion) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.app.v1.Uploads files = 2 [json_name = "files"]; total_size += 1UL * this->_internal_files_size(); - for (const auto& msg : this->_internal_files()) { + for (const auto& msg : this->files_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // repeated .viam.app.v1.Model models = 3 [json_name = "models"]; total_size += 1UL * this->_internal_models_size(); - for (const auto& msg : this->_internal_models()) { + for (const auto& msg : this->models_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // string version = 1 [json_name = "version"]; if (!this->_internal_version().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_version()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_version()); } // string entrypoint = 4 [json_name = "entrypoint"]; if (!this->_internal_entrypoint().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_entrypoint()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_entrypoint()); } // optional string first_run = 5 [json_name = "firstRun"]; - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_first_run()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_first_run()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ModuleVersion::_class_data_ = { - ModuleVersion::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ModuleVersion::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ModuleVersion::MergeImpl }; -const ::google::protobuf::Message::ClassData* ModuleVersion::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ModuleVersion::GetClassData() const { return &_class_data_; } + +void ModuleVersion::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ModuleVersion::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ModuleVersion) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ModuleVersion::MergeFrom(const ModuleVersion& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ModuleVersion) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_files()->MergeFrom( - from._internal_files()); - _this->_internal_mutable_models()->MergeFrom( - from._internal_models()); + files_.MergeFrom(from.files_); + models_.MergeFrom(from.models_); if (!from._internal_version().empty()) { - _this->_internal_set_version(from._internal_version()); + _internal_set_version(from._internal_version()); } if (!from._internal_entrypoint().empty()) { - _this->_internal_set_entrypoint(from._internal_entrypoint()); + _internal_set_entrypoint(from._internal_entrypoint()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_set_first_run(from._internal_first_run()); + if (from._internal_has_first_run()) { + _internal_set_first_run(from._internal_first_run()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ModuleVersion::CopyFrom(const ModuleVersion& from) { @@ -37369,284 +37921,323 @@ void ModuleVersion::CopyFrom(const ModuleVersion& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ModuleVersion::IsInitialized() const { +bool ModuleVersion::IsInitialized() const { return true; } -::_pbi::CachedSize* ModuleVersion::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ModuleVersion::InternalSwap(ModuleVersion* PROTOBUF_RESTRICT other) { +void ModuleVersion::InternalSwap(ModuleVersion* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.files_.InternalSwap(&other->_impl_.files_); - _impl_.models_.InternalSwap(&other->_impl_.models_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.version_, &other->_impl_.version_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.entrypoint_, &other->_impl_.entrypoint_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.first_run_, &other->_impl_.first_run_, arena); -} - -::google::protobuf::Metadata ModuleVersion::GetMetadata() const { + swap(_has_bits_[0], other->_has_bits_[0]); + files_.InternalSwap(&other->files_); + models_.InternalSwap(&other->models_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &version_, lhs_arena, + &other->version_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &entrypoint_, lhs_arena, + &other->entrypoint_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &first_run_, lhs_arena, + &other->first_run_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ModuleVersion::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[142]); + file_level_metadata_app_2fv1_2fapp_2eproto[143]); } + // =================================================================== class ModuleMetadata::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ModuleMetadata, _impl_._has_bits_); + using HasBits = decltype(std::declval()._has_bits_); static void set_has_first_run(HasBits* has_bits) { (*has_bits)[0] |= 1u; } }; -ModuleMetadata::ModuleMetadata(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ModuleMetadata::ModuleMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + models_(arena), + versions_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.v1.ModuleMetadata) } -inline PROTOBUF_NDEBUG_INLINE ModuleMetadata::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - models_{visibility, arena, from.models_}, - versions_{visibility, arena, from.versions_}, - entrypoint_(arena, from.entrypoint_), - first_run_(arena, from.first_run_) {} - -ModuleMetadata::ModuleMetadata( - ::google::protobuf::Arena* arena, - const ModuleMetadata& from) - : ::google::protobuf::Message(arena) { - ModuleMetadata* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +ModuleMetadata::ModuleMetadata(const ModuleMetadata& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_), + models_(from.models_), + versions_(from.versions_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + entrypoint_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + entrypoint_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_entrypoint().empty()) { + entrypoint_.Set(from._internal_entrypoint(), + GetArenaForAllocation()); + } + first_run_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + first_run_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (from._internal_has_first_run()) { + first_run_.Set(from._internal_first_run(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.ModuleMetadata) } -inline PROTOBUF_NDEBUG_INLINE ModuleMetadata::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - models_{visibility, arena}, - versions_{visibility, arena}, - entrypoint_(arena), - first_run_(arena) {} -inline void ModuleMetadata::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void ModuleMetadata::SharedCtor() { +entrypoint_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + entrypoint_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +first_run_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + first_run_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + ModuleMetadata::~ModuleMetadata() { // @@protoc_insertion_point(destructor:viam.app.v1.ModuleMetadata) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ModuleMetadata::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.entrypoint_.Destroy(); - _impl_.first_run_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + entrypoint_.Destroy(); + first_run_.Destroy(); } -PROTOBUF_NOINLINE void ModuleMetadata::Clear() { +void ModuleMetadata::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ModuleMetadata::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.ModuleMetadata) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.models_.Clear(); - _impl_.versions_.Clear(); - _impl_.entrypoint_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; + models_.Clear(); + versions_.Clear(); + entrypoint_.ClearToEmpty(); + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { - _impl_.first_run_.ClearNonDefaultToEmpty(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ModuleMetadata::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + first_run_.ClearNonDefaultToEmpty(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ModuleMetadata::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // repeated .viam.app.v1.Model models = 1 [json_name = "models"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_models(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + // repeated .viam.app.v1.ModuleVersion versions = 2 [json_name = "versions"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_versions(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } else + goto handle_unusual; + continue; + // string entrypoint = 3 [json_name = "entrypoint"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_entrypoint(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ModuleMetadata.entrypoint")); + } else + goto handle_unusual; + continue; + // optional string first_run = 4 [json_name = "firstRun"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_first_run(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ModuleMetadata.first_run")); + } 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: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 2, 54, 2> ModuleMetadata::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ModuleMetadata, _impl_._has_bits_), - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ModuleMetadata_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // optional string first_run = 4 [json_name = "firstRun"]; - {::_pbi::TcParser::FastUS1, - {34, 0, 0, PROTOBUF_FIELD_OFFSET(ModuleMetadata, _impl_.first_run_)}}, - // repeated .viam.app.v1.Model models = 1 [json_name = "models"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ModuleMetadata, _impl_.models_)}}, - // repeated .viam.app.v1.ModuleVersion versions = 2 [json_name = "versions"]; - {::_pbi::TcParser::FastMtR1, - {18, 63, 1, PROTOBUF_FIELD_OFFSET(ModuleMetadata, _impl_.versions_)}}, - // string entrypoint = 3 [json_name = "entrypoint"]; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(ModuleMetadata, _impl_.entrypoint_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.app.v1.Model models = 1 [json_name = "models"]; - {PROTOBUF_FIELD_OFFSET(ModuleMetadata, _impl_.models_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated .viam.app.v1.ModuleVersion versions = 2 [json_name = "versions"]; - {PROTOBUF_FIELD_OFFSET(ModuleMetadata, _impl_.versions_), -1, 1, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // string entrypoint = 3 [json_name = "entrypoint"]; - {PROTOBUF_FIELD_OFFSET(ModuleMetadata, _impl_.entrypoint_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // optional string first_run = 4 [json_name = "firstRun"]; - {PROTOBUF_FIELD_OFFSET(ModuleMetadata, _impl_.first_run_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::Model>()}, - {::_pbi::TcParser::GetTable<::viam::app::v1::ModuleVersion>()}, - }}, {{ - "\32\0\0\12\11\0\0\0" - "viam.app.v1.ModuleMetadata" - "entrypoint" - "first_run" - }}, -}; - -::uint8_t* ModuleMetadata::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ModuleMetadata::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ModuleMetadata) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .viam.app.v1.Model models = 1 [json_name = "models"]; for (unsigned i = 0, n = static_cast(this->_internal_models_size()); i < n; i++) { - const auto& repfield = this->_internal_models().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_models(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } // repeated .viam.app.v1.ModuleVersion versions = 2 [json_name = "versions"]; for (unsigned i = 0, n = static_cast(this->_internal_versions_size()); i < n; i++) { - const auto& repfield = this->_internal_versions().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_versions(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); } // string entrypoint = 3 [json_name = "entrypoint"]; if (!this->_internal_entrypoint().empty()) { - const std::string& _s = this->_internal_entrypoint(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ModuleMetadata.entrypoint"); - target = stream->WriteStringMaybeAliased(3, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_entrypoint().data(), static_cast(this->_internal_entrypoint().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ModuleMetadata.entrypoint"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_entrypoint(), target); } - cached_has_bits = _impl_._has_bits_[0]; // optional string first_run = 4 [json_name = "firstRun"]; - if (cached_has_bits & 0x00000001u) { - const std::string& _s = this->_internal_first_run(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ModuleMetadata.first_run"); - target = stream->WriteStringMaybeAliased(4, _s, target); + if (_internal_has_first_run()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_first_run().data(), static_cast(this->_internal_first_run().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ModuleMetadata.first_run"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_first_run(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.ModuleMetadata) return target; } -::size_t ModuleMetadata::ByteSizeLong() const { +size_t ModuleMetadata::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ModuleMetadata) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.app.v1.Model models = 1 [json_name = "models"]; total_size += 1UL * this->_internal_models_size(); - for (const auto& msg : this->_internal_models()) { + for (const auto& msg : this->models_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // repeated .viam.app.v1.ModuleVersion versions = 2 [json_name = "versions"]; total_size += 1UL * this->_internal_versions_size(); - for (const auto& msg : this->_internal_versions()) { + for (const auto& msg : this->versions_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // string entrypoint = 3 [json_name = "entrypoint"]; if (!this->_internal_entrypoint().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_entrypoint()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_entrypoint()); } // optional string first_run = 4 [json_name = "firstRun"]; - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_first_run()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_first_run()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ModuleMetadata::_class_data_ = { - ModuleMetadata::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ModuleMetadata::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ModuleMetadata::MergeImpl }; -const ::google::protobuf::Message::ClassData* ModuleMetadata::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ModuleMetadata::GetClassData() const { return &_class_data_; } + +void ModuleMetadata::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ModuleMetadata::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ModuleMetadata) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ModuleMetadata::MergeFrom(const ModuleMetadata& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ModuleMetadata) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_models()->MergeFrom( - from._internal_models()); - _this->_internal_mutable_versions()->MergeFrom( - from._internal_versions()); + models_.MergeFrom(from.models_); + versions_.MergeFrom(from.versions_); if (!from._internal_entrypoint().empty()) { - _this->_internal_set_entrypoint(from._internal_entrypoint()); + _internal_set_entrypoint(from._internal_entrypoint()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_set_first_run(from._internal_first_run()); + if (from._internal_has_first_run()) { + _internal_set_first_run(from._internal_first_run()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ModuleMetadata::CopyFrom(const ModuleMetadata& from) { @@ -37656,170 +38247,169 @@ void ModuleMetadata::CopyFrom(const ModuleMetadata& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ModuleMetadata::IsInitialized() const { +bool ModuleMetadata::IsInitialized() const { return true; } -::_pbi::CachedSize* ModuleMetadata::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ModuleMetadata::InternalSwap(ModuleMetadata* PROTOBUF_RESTRICT other) { +void ModuleMetadata::InternalSwap(ModuleMetadata* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.models_.InternalSwap(&other->_impl_.models_); - _impl_.versions_.InternalSwap(&other->_impl_.versions_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.entrypoint_, &other->_impl_.entrypoint_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.first_run_, &other->_impl_.first_run_, arena); -} - -::google::protobuf::Metadata ModuleMetadata::GetMetadata() const { + swap(_has_bits_[0], other->_has_bits_[0]); + models_.InternalSwap(&other->models_); + versions_.InternalSwap(&other->versions_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &entrypoint_, lhs_arena, + &other->entrypoint_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &first_run_, lhs_arena, + &other->first_run_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ModuleMetadata::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[143]); + file_level_metadata_app_2fv1_2fapp_2eproto[144]); } + // =================================================================== class MLModelMetadata::_Internal { public: }; -MLModelMetadata::MLModelMetadata(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +MLModelMetadata::MLModelMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + versions_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.v1.MLModelMetadata) } -inline PROTOBUF_NDEBUG_INLINE MLModelMetadata::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : versions_{visibility, arena, from.versions_}, - _cached_size_{0} {} - -MLModelMetadata::MLModelMetadata( - ::google::protobuf::Arena* arena, - const MLModelMetadata& from) - : ::google::protobuf::Message(arena) { - MLModelMetadata* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, model_type_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, model_type_), - offsetof(Impl_, model_framework_) - - offsetof(Impl_, model_type_) + - sizeof(Impl_::model_framework_)); - +MLModelMetadata::MLModelMetadata(const MLModelMetadata& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + versions_(from.versions_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&model_type_, &from.model_type_, + static_cast(reinterpret_cast(&model_framework_) - + reinterpret_cast(&model_type_)) + sizeof(model_framework_)); // @@protoc_insertion_point(copy_constructor:viam.app.v1.MLModelMetadata) } -inline PROTOBUF_NDEBUG_INLINE MLModelMetadata::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : versions_{visibility, arena}, - _cached_size_{0} {} - -inline void MLModelMetadata::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, model_type_), - 0, - offsetof(Impl_, model_framework_) - - offsetof(Impl_, model_type_) + - sizeof(Impl_::model_framework_)); + +inline void MLModelMetadata::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&model_type_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&model_framework_) - + reinterpret_cast(&model_type_)) + sizeof(model_framework_)); } + MLModelMetadata::~MLModelMetadata() { // @@protoc_insertion_point(destructor:viam.app.v1.MLModelMetadata) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void MLModelMetadata::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void MLModelMetadata::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.MLModelMetadata) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.versions_.Clear(); - ::memset(&_impl_.model_type_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.model_framework_) - - reinterpret_cast(&_impl_.model_type_)) + sizeof(_impl_.model_framework_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void MLModelMetadata::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* MLModelMetadata::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void MLModelMetadata::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.MLModelMetadata) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + versions_.Clear(); + ::memset(&model_type_, 0, static_cast( + reinterpret_cast(&model_framework_) - + reinterpret_cast(&model_type_)) + sizeof(model_framework_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* MLModelMetadata::_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) { + // repeated string versions = 1 [json_name = "versions"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_versions(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.MLModelMetadata.versions")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + // .viam.app.mltraining.v1.ModelType model_type = 2 [json_name = "modelType"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_model_type(static_cast<::viam::app::mltraining::v1::ModelType>(val)); + } else + goto handle_unusual; + continue; + // .viam.app.mltraining.v1.ModelFramework model_framework = 3 [json_name = "modelFramework"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_model_framework(static_cast<::viam::app::mltraining::v1::ModelFramework>(val)); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 44, 2> MLModelMetadata::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_MLModelMetadata_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // repeated string versions = 1 [json_name = "versions"]; - {::_pbi::TcParser::FastUR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(MLModelMetadata, _impl_.versions_)}}, - // .viam.app.mltraining.v1.ModelType model_type = 2 [json_name = "modelType"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MLModelMetadata, _impl_.model_type_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(MLModelMetadata, _impl_.model_type_)}}, - // .viam.app.mltraining.v1.ModelFramework model_framework = 3 [json_name = "modelFramework"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MLModelMetadata, _impl_.model_framework_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(MLModelMetadata, _impl_.model_framework_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated string versions = 1 [json_name = "versions"]; - {PROTOBUF_FIELD_OFFSET(MLModelMetadata, _impl_.versions_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - // .viam.app.mltraining.v1.ModelType model_type = 2 [json_name = "modelType"]; - {PROTOBUF_FIELD_OFFSET(MLModelMetadata, _impl_.model_type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // .viam.app.mltraining.v1.ModelFramework model_framework = 3 [json_name = "modelFramework"]; - {PROTOBUF_FIELD_OFFSET(MLModelMetadata, _impl_.model_framework_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - }}, - // no aux_entries - {{ - "\33\10\0\0\0\0\0\0" - "viam.app.v1.MLModelMetadata" - "versions" - }}, -}; - -::uint8_t* MLModelMetadata::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* MLModelMetadata::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.MLModelMetadata) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated string versions = 1 [json_name = "versions"]; - for (int i = 0, n = this->_internal_versions_size(); i < n; ++i) { - const auto& s = this->_internal_versions().Get(i); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.MLModelMetadata.versions"); + for (int i = 0, n = this->_internal_versions_size(); i < n; i++) { + const auto& s = this->_internal_versions(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.MLModelMetadata.versions"); target = stream->WriteString(1, s, target); } @@ -37827,78 +38417,82 @@ ::uint8_t* MLModelMetadata::_InternalSerialize( if (this->_internal_model_type() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 2, this->_internal_model_type(), target); + 2, this->_internal_model_type(), target); } // .viam.app.mltraining.v1.ModelFramework model_framework = 3 [json_name = "modelFramework"]; if (this->_internal_model_framework() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 3, this->_internal_model_framework(), target); + 3, this->_internal_model_framework(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.MLModelMetadata) return target; } -::size_t MLModelMetadata::ByteSizeLong() const { +size_t MLModelMetadata::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.MLModelMetadata) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated string versions = 1 [json_name = "versions"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_versions().size()); - for (int i = 0, n = _internal_versions().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - _internal_versions().Get(i)); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(versions_.size()); + for (int i = 0, n = versions_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + versions_.Get(i)); } + // .viam.app.mltraining.v1.ModelType model_type = 2 [json_name = "modelType"]; if (this->_internal_model_type() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_model_type()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_model_type()); } // .viam.app.mltraining.v1.ModelFramework model_framework = 3 [json_name = "modelFramework"]; if (this->_internal_model_framework() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_model_framework()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_model_framework()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData MLModelMetadata::_class_data_ = { - MLModelMetadata::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MLModelMetadata::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + MLModelMetadata::MergeImpl }; -const ::google::protobuf::Message::ClassData* MLModelMetadata::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MLModelMetadata::GetClassData() const { return &_class_data_; } + +void MLModelMetadata::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void MLModelMetadata::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.MLModelMetadata) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void MLModelMetadata::MergeFrom(const MLModelMetadata& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.MLModelMetadata) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_versions()->MergeFrom(from._internal_versions()); + versions_.MergeFrom(from.versions_); if (from._internal_model_type() != 0) { - _this->_internal_set_model_type(from._internal_model_type()); + _internal_set_model_type(from._internal_model_type()); } if (from._internal_model_framework() != 0) { - _this->_internal_set_model_framework(from._internal_model_framework()); + _internal_set_model_framework(from._internal_model_framework()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MLModelMetadata::CopyFrom(const MLModelMetadata& from) { @@ -37908,244 +38502,240 @@ void MLModelMetadata::CopyFrom(const MLModelMetadata& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool MLModelMetadata::IsInitialized() const { +bool MLModelMetadata::IsInitialized() const { return true; } -::_pbi::CachedSize* MLModelMetadata::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void MLModelMetadata::InternalSwap(MLModelMetadata* PROTOBUF_RESTRICT other) { +void MLModelMetadata::InternalSwap(MLModelMetadata* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.versions_.InternalSwap(&other->_impl_.versions_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(MLModelMetadata, _impl_.model_framework_) - + sizeof(MLModelMetadata::_impl_.model_framework_) - - PROTOBUF_FIELD_OFFSET(MLModelMetadata, _impl_.model_type_)>( - reinterpret_cast(&_impl_.model_type_), - reinterpret_cast(&other->_impl_.model_type_)); + versions_.InternalSwap(&other->versions_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(MLModelMetadata, model_framework_) + + sizeof(MLModelMetadata::model_framework_) + - PROTOBUF_FIELD_OFFSET(MLModelMetadata, model_type_)>( + reinterpret_cast(&model_type_), + reinterpret_cast(&other->model_type_)); } -::google::protobuf::Metadata MLModelMetadata::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata MLModelMetadata::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[144]); + file_level_metadata_app_2fv1_2fapp_2eproto[145]); } + // =================================================================== class MLTrainingVersion::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(MLTrainingVersion, _impl_._has_bits_); - static const ::google::protobuf::Timestamp& created_on(const MLTrainingVersion* msg); - static void set_has_created_on(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& created_on(const MLTrainingVersion* msg); }; -const ::google::protobuf::Timestamp& MLTrainingVersion::_Internal::created_on(const MLTrainingVersion* msg) { - return *msg->_impl_.created_on_; +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +MLTrainingVersion::_Internal::created_on(const MLTrainingVersion* msg) { + return *msg->created_on_; } void MLTrainingVersion::clear_created_on() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.created_on_ != nullptr) _impl_.created_on_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && created_on_ != nullptr) { + delete created_on_; + } + created_on_ = nullptr; } -MLTrainingVersion::MLTrainingVersion(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +MLTrainingVersion::MLTrainingVersion(::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.MLTrainingVersion) } -inline PROTOBUF_NDEBUG_INLINE MLTrainingVersion::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - version_(arena, from.version_) {} - -MLTrainingVersion::MLTrainingVersion( - ::google::protobuf::Arena* arena, - const MLTrainingVersion& from) - : ::google::protobuf::Message(arena) { - MLTrainingVersion* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.created_on_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.created_on_) - : nullptr; - +MLTrainingVersion::MLTrainingVersion(const MLTrainingVersion& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + version_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + version_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_version().empty()) { + version_.Set(from._internal_version(), + GetArenaForAllocation()); + } + if (from._internal_has_created_on()) { + created_on_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from.created_on_); + } else { + created_on_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.MLTrainingVersion) } -inline PROTOBUF_NDEBUG_INLINE MLTrainingVersion::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - version_(arena) {} -inline void MLTrainingVersion::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.created_on_ = {}; +inline void MLTrainingVersion::SharedCtor() { +version_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + version_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +created_on_ = nullptr; } + MLTrainingVersion::~MLTrainingVersion() { // @@protoc_insertion_point(destructor:viam.app.v1.MLTrainingVersion) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void MLTrainingVersion::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.version_.Destroy(); - delete _impl_.created_on_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + version_.Destroy(); + if (this != internal_default_instance()) delete created_on_; } -PROTOBUF_NOINLINE void MLTrainingVersion::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.MLTrainingVersion) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.version_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.created_on_ != nullptr); - _impl_.created_on_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void MLTrainingVersion::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* MLTrainingVersion::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void MLTrainingVersion::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.MLTrainingVersion) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + version_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && created_on_ != nullptr) { + delete created_on_; + } + created_on_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* MLTrainingVersion::_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 version = 1 [json_name = "version"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_version(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.MLTrainingVersion.version")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp created_on = 2 [json_name = "createdOn"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_created_on(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 45, 2> MLTrainingVersion::_table_ = { - { - PROTOBUF_FIELD_OFFSET(MLTrainingVersion, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_MLTrainingVersion_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .google.protobuf.Timestamp created_on = 2 [json_name = "createdOn"]; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(MLTrainingVersion, _impl_.created_on_)}}, - // string version = 1 [json_name = "version"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(MLTrainingVersion, _impl_.version_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string version = 1 [json_name = "version"]; - {PROTOBUF_FIELD_OFFSET(MLTrainingVersion, _impl_.version_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Timestamp created_on = 2 [json_name = "createdOn"]; - {PROTOBUF_FIELD_OFFSET(MLTrainingVersion, _impl_.created_on_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, - }}, {{ - "\35\7\0\0\0\0\0\0" - "viam.app.v1.MLTrainingVersion" - "version" - }}, -}; - -::uint8_t* MLTrainingVersion::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* MLTrainingVersion::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.MLTrainingVersion) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string version = 1 [json_name = "version"]; if (!this->_internal_version().empty()) { - const std::string& _s = this->_internal_version(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.MLTrainingVersion.version"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_version().data(), static_cast(this->_internal_version().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.MLTrainingVersion.version"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_version(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Timestamp created_on = 2 [json_name = "createdOn"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::created_on(this), + if (this->_internal_has_created_on()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::created_on(this), _Internal::created_on(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.MLTrainingVersion) return target; } -::size_t MLTrainingVersion::ByteSizeLong() const { +size_t MLTrainingVersion::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.MLTrainingVersion) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string version = 1 [json_name = "version"]; if (!this->_internal_version().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_version()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_version()); } // .google.protobuf.Timestamp created_on = 2 [json_name = "createdOn"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.created_on_); + if (this->_internal_has_created_on()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *created_on_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData MLTrainingVersion::_class_data_ = { - MLTrainingVersion::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MLTrainingVersion::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + MLTrainingVersion::MergeImpl }; -const ::google::protobuf::Message::ClassData* MLTrainingVersion::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MLTrainingVersion::GetClassData() const { return &_class_data_; } + +void MLTrainingVersion::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void MLTrainingVersion::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.MLTrainingVersion) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void MLTrainingVersion::MergeFrom(const MLTrainingVersion& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.MLTrainingVersion) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_version().empty()) { - _this->_internal_set_version(from._internal_version()); + _internal_set_version(from._internal_version()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_created_on()->::google::protobuf::Timestamp::MergeFrom( - from._internal_created_on()); + if (from._internal_has_created_on()) { + _internal_mutable_created_on()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_created_on()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MLTrainingVersion::CopyFrom(const MLTrainingVersion& from) { @@ -38155,265 +38745,263 @@ void MLTrainingVersion::CopyFrom(const MLTrainingVersion& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool MLTrainingVersion::IsInitialized() const { +bool MLTrainingVersion::IsInitialized() const { return true; } -::_pbi::CachedSize* MLTrainingVersion::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void MLTrainingVersion::InternalSwap(MLTrainingVersion* PROTOBUF_RESTRICT other) { +void MLTrainingVersion::InternalSwap(MLTrainingVersion* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.version_, &other->_impl_.version_, arena); - swap(_impl_.created_on_, other->_impl_.created_on_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &version_, lhs_arena, + &other->version_, rhs_arena + ); + swap(created_on_, other->created_on_); } -::google::protobuf::Metadata MLTrainingVersion::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata MLTrainingVersion::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[145]); + file_level_metadata_app_2fv1_2fapp_2eproto[146]); } + // =================================================================== class MLTrainingMetadata::_Internal { public: }; -MLTrainingMetadata::MLTrainingMetadata(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +MLTrainingMetadata::MLTrainingMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + versions_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.v1.MLTrainingMetadata) } -inline PROTOBUF_NDEBUG_INLINE MLTrainingMetadata::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : versions_{visibility, arena, from.versions_}, - _cached_size_{0} {} - -MLTrainingMetadata::MLTrainingMetadata( - ::google::protobuf::Arena* arena, - const MLTrainingMetadata& from) - : ::google::protobuf::Message(arena) { - MLTrainingMetadata* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, model_type_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, model_type_), - offsetof(Impl_, draft_) - - offsetof(Impl_, model_type_) + - sizeof(Impl_::draft_)); - +MLTrainingMetadata::MLTrainingMetadata(const MLTrainingMetadata& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + versions_(from.versions_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&model_type_, &from.model_type_, + static_cast(reinterpret_cast(&draft_) - + reinterpret_cast(&model_type_)) + sizeof(draft_)); // @@protoc_insertion_point(copy_constructor:viam.app.v1.MLTrainingMetadata) } -inline PROTOBUF_NDEBUG_INLINE MLTrainingMetadata::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : versions_{visibility, arena}, - _cached_size_{0} {} - -inline void MLTrainingMetadata::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, model_type_), - 0, - offsetof(Impl_, draft_) - - offsetof(Impl_, model_type_) + - sizeof(Impl_::draft_)); + +inline void MLTrainingMetadata::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&model_type_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&draft_) - + reinterpret_cast(&model_type_)) + sizeof(draft_)); } + MLTrainingMetadata::~MLTrainingMetadata() { // @@protoc_insertion_point(destructor:viam.app.v1.MLTrainingMetadata) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void MLTrainingMetadata::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void MLTrainingMetadata::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.MLTrainingMetadata) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.versions_.Clear(); - ::memset(&_impl_.model_type_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.draft_) - - reinterpret_cast(&_impl_.model_type_)) + sizeof(_impl_.draft_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void MLTrainingMetadata::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* MLTrainingMetadata::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void MLTrainingMetadata::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.MLTrainingMetadata) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + versions_.Clear(); + ::memset(&model_type_, 0, static_cast( + reinterpret_cast(&draft_) - + reinterpret_cast(&model_type_)) + sizeof(draft_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* MLTrainingMetadata::_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.app.mltraining.v1.ModelType model_type = 2 [json_name = "modelType"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_model_type(static_cast<::viam::app::mltraining::v1::ModelType>(val)); + } else + goto handle_unusual; + continue; + // .viam.app.mltraining.v1.ModelFramework model_framework = 3 [json_name = "modelFramework"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_model_framework(static_cast<::viam::app::mltraining::v1::ModelFramework>(val)); + } else + goto handle_unusual; + continue; + // bool draft = 4 [json_name = "draft"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + draft_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // repeated .viam.app.v1.MLTrainingVersion versions = 5 [json_name = "versions"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_versions(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 1, 0, 2> MLTrainingMetadata::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 5, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967265, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_MLTrainingMetadata_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // bool draft = 4 [json_name = "draft"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(MLTrainingMetadata, _impl_.draft_)}}, - // repeated .viam.app.v1.MLTrainingVersion versions = 5 [json_name = "versions"]; - {::_pbi::TcParser::FastMtR1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(MLTrainingMetadata, _impl_.versions_)}}, - // .viam.app.mltraining.v1.ModelType model_type = 2 [json_name = "modelType"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MLTrainingMetadata, _impl_.model_type_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(MLTrainingMetadata, _impl_.model_type_)}}, - // .viam.app.mltraining.v1.ModelFramework model_framework = 3 [json_name = "modelFramework"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MLTrainingMetadata, _impl_.model_framework_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(MLTrainingMetadata, _impl_.model_framework_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.app.mltraining.v1.ModelType model_type = 2 [json_name = "modelType"]; - {PROTOBUF_FIELD_OFFSET(MLTrainingMetadata, _impl_.model_type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // .viam.app.mltraining.v1.ModelFramework model_framework = 3 [json_name = "modelFramework"]; - {PROTOBUF_FIELD_OFFSET(MLTrainingMetadata, _impl_.model_framework_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // bool draft = 4 [json_name = "draft"]; - {PROTOBUF_FIELD_OFFSET(MLTrainingMetadata, _impl_.draft_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // repeated .viam.app.v1.MLTrainingVersion versions = 5 [json_name = "versions"]; - {PROTOBUF_FIELD_OFFSET(MLTrainingMetadata, _impl_.versions_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::MLTrainingVersion>()}, - }}, {{ - }}, -}; - -::uint8_t* MLTrainingMetadata::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* MLTrainingMetadata::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.MLTrainingMetadata) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // .viam.app.mltraining.v1.ModelType model_type = 2 [json_name = "modelType"]; if (this->_internal_model_type() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 2, this->_internal_model_type(), target); + 2, this->_internal_model_type(), target); } // .viam.app.mltraining.v1.ModelFramework model_framework = 3 [json_name = "modelFramework"]; if (this->_internal_model_framework() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 3, this->_internal_model_framework(), target); + 3, this->_internal_model_framework(), target); } // bool draft = 4 [json_name = "draft"]; if (this->_internal_draft() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 4, this->_internal_draft(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(4, this->_internal_draft(), target); } // repeated .viam.app.v1.MLTrainingVersion versions = 5 [json_name = "versions"]; for (unsigned i = 0, n = static_cast(this->_internal_versions_size()); i < n; i++) { - const auto& repfield = this->_internal_versions().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_versions(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(5, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.MLTrainingMetadata) return target; } -::size_t MLTrainingMetadata::ByteSizeLong() const { +size_t MLTrainingMetadata::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.MLTrainingMetadata) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.app.v1.MLTrainingVersion versions = 5 [json_name = "versions"]; total_size += 1UL * this->_internal_versions_size(); - for (const auto& msg : this->_internal_versions()) { + for (const auto& msg : this->versions_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // .viam.app.mltraining.v1.ModelType model_type = 2 [json_name = "modelType"]; if (this->_internal_model_type() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_model_type()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_model_type()); } // .viam.app.mltraining.v1.ModelFramework model_framework = 3 [json_name = "modelFramework"]; if (this->_internal_model_framework() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_model_framework()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_model_framework()); } // bool draft = 4 [json_name = "draft"]; if (this->_internal_draft() != 0) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData MLTrainingMetadata::_class_data_ = { - MLTrainingMetadata::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MLTrainingMetadata::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + MLTrainingMetadata::MergeImpl }; -const ::google::protobuf::Message::ClassData* MLTrainingMetadata::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MLTrainingMetadata::GetClassData() const { return &_class_data_; } + +void MLTrainingMetadata::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void MLTrainingMetadata::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.MLTrainingMetadata) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void MLTrainingMetadata::MergeFrom(const MLTrainingMetadata& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.MLTrainingMetadata) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_versions()->MergeFrom( - from._internal_versions()); + versions_.MergeFrom(from.versions_); if (from._internal_model_type() != 0) { - _this->_internal_set_model_type(from._internal_model_type()); + _internal_set_model_type(from._internal_model_type()); } if (from._internal_model_framework() != 0) { - _this->_internal_set_model_framework(from._internal_model_framework()); + _internal_set_model_framework(from._internal_model_framework()); } if (from._internal_draft() != 0) { - _this->_internal_set_draft(from._internal_draft()); + _internal_set_draft(from._internal_draft()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MLTrainingMetadata::CopyFrom(const MLTrainingMetadata& from) { @@ -38423,236 +39011,285 @@ void MLTrainingMetadata::CopyFrom(const MLTrainingMetadata& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool MLTrainingMetadata::IsInitialized() const { +bool MLTrainingMetadata::IsInitialized() const { return true; } -::_pbi::CachedSize* MLTrainingMetadata::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void MLTrainingMetadata::InternalSwap(MLTrainingMetadata* PROTOBUF_RESTRICT other) { +void MLTrainingMetadata::InternalSwap(MLTrainingMetadata* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.versions_.InternalSwap(&other->_impl_.versions_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(MLTrainingMetadata, _impl_.draft_) - + sizeof(MLTrainingMetadata::_impl_.draft_) - - PROTOBUF_FIELD_OFFSET(MLTrainingMetadata, _impl_.model_type_)>( - reinterpret_cast(&_impl_.model_type_), - reinterpret_cast(&other->_impl_.model_type_)); + versions_.InternalSwap(&other->versions_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(MLTrainingMetadata, draft_) + + sizeof(MLTrainingMetadata::draft_) + - PROTOBUF_FIELD_OFFSET(MLTrainingMetadata, model_type_)>( + reinterpret_cast(&model_type_), + reinterpret_cast(&other->model_type_)); } -::google::protobuf::Metadata MLTrainingMetadata::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata MLTrainingMetadata::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[146]); + file_level_metadata_app_2fv1_2fapp_2eproto[147]); } + // =================================================================== class RegistryItem::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(RegistryItem, _impl_._has_bits_); - static constexpr ::int32_t kOneofCaseOffset = - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegistryItem, _impl_._oneof_case_); static const ::viam::app::v1::ModuleMetadata& module_metadata(const RegistryItem* msg); static const ::viam::app::v1::MLModelMetadata& ml_model_metadata(const RegistryItem* msg); static const ::viam::app::v1::MLTrainingMetadata& ml_training_metadata(const RegistryItem* msg); - static const ::google::protobuf::Timestamp& created_at(const RegistryItem* msg); - static void set_has_created_at(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::google::protobuf::Timestamp& updated_at(const RegistryItem* msg); - static void set_has_updated_at(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& created_at(const RegistryItem* msg); + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& updated_at(const RegistryItem* msg); }; -const ::viam::app::v1::ModuleMetadata& RegistryItem::_Internal::module_metadata(const RegistryItem* msg) { - return *msg->_impl_.metadata_.module_metadata_; +const ::viam::app::v1::ModuleMetadata& +RegistryItem::_Internal::module_metadata(const RegistryItem* msg) { + return *msg->metadata_.module_metadata_; } -const ::viam::app::v1::MLModelMetadata& RegistryItem::_Internal::ml_model_metadata(const RegistryItem* msg) { - return *msg->_impl_.metadata_.ml_model_metadata_; +const ::viam::app::v1::MLModelMetadata& +RegistryItem::_Internal::ml_model_metadata(const RegistryItem* msg) { + return *msg->metadata_.ml_model_metadata_; } -const ::viam::app::v1::MLTrainingMetadata& RegistryItem::_Internal::ml_training_metadata(const RegistryItem* msg) { - return *msg->_impl_.metadata_.ml_training_metadata_; +const ::viam::app::v1::MLTrainingMetadata& +RegistryItem::_Internal::ml_training_metadata(const RegistryItem* msg) { + return *msg->metadata_.ml_training_metadata_; } -const ::google::protobuf::Timestamp& RegistryItem::_Internal::created_at(const RegistryItem* msg) { - return *msg->_impl_.created_at_; +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +RegistryItem::_Internal::created_at(const RegistryItem* msg) { + return *msg->created_at_; } -const ::google::protobuf::Timestamp& RegistryItem::_Internal::updated_at(const RegistryItem* msg) { - return *msg->_impl_.updated_at_; +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +RegistryItem::_Internal::updated_at(const RegistryItem* msg) { + return *msg->updated_at_; } void RegistryItem::set_allocated_module_metadata(::viam::app::v1::ModuleMetadata* module_metadata) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_metadata(); if (module_metadata) { - ::google::protobuf::Arena* submessage_arena = module_metadata->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(module_metadata); if (message_arena != submessage_arena) { - module_metadata = ::google::protobuf::internal::GetOwnedMessage(message_arena, module_metadata, submessage_arena); + module_metadata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, module_metadata, submessage_arena); } set_has_module_metadata(); - _impl_.metadata_.module_metadata_ = module_metadata; + metadata_.module_metadata_ = module_metadata; } // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RegistryItem.module_metadata) } void RegistryItem::set_allocated_ml_model_metadata(::viam::app::v1::MLModelMetadata* ml_model_metadata) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_metadata(); if (ml_model_metadata) { - ::google::protobuf::Arena* submessage_arena = ml_model_metadata->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(ml_model_metadata); if (message_arena != submessage_arena) { - ml_model_metadata = ::google::protobuf::internal::GetOwnedMessage(message_arena, ml_model_metadata, submessage_arena); + ml_model_metadata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, ml_model_metadata, submessage_arena); } set_has_ml_model_metadata(); - _impl_.metadata_.ml_model_metadata_ = ml_model_metadata; + metadata_.ml_model_metadata_ = ml_model_metadata; } // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RegistryItem.ml_model_metadata) } void RegistryItem::set_allocated_ml_training_metadata(::viam::app::v1::MLTrainingMetadata* ml_training_metadata) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_metadata(); if (ml_training_metadata) { - ::google::protobuf::Arena* submessage_arena = ml_training_metadata->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(ml_training_metadata); if (message_arena != submessage_arena) { - ml_training_metadata = ::google::protobuf::internal::GetOwnedMessage(message_arena, ml_training_metadata, submessage_arena); + ml_training_metadata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, ml_training_metadata, submessage_arena); } set_has_ml_training_metadata(); - _impl_.metadata_.ml_training_metadata_ = ml_training_metadata; + metadata_.ml_training_metadata_ = ml_training_metadata; } // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RegistryItem.ml_training_metadata) } void RegistryItem::clear_created_at() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.created_at_ != nullptr) _impl_.created_at_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && created_at_ != nullptr) { + delete created_at_; + } + created_at_ = nullptr; } void RegistryItem::clear_updated_at() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.updated_at_ != nullptr) _impl_.updated_at_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && updated_at_ != nullptr) { + delete updated_at_; + } + updated_at_ = nullptr; } -RegistryItem::RegistryItem(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +RegistryItem::RegistryItem(::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.RegistryItem) } -inline PROTOBUF_NDEBUG_INLINE RegistryItem::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - item_id_(arena, from.item_id_), - organization_id_(arena, from.organization_id_), - public_namespace_(arena, from.public_namespace_), - name_(arena, from.name_), - url_(arena, from.url_), - description_(arena, from.description_), - metadata_{}, - _oneof_case_{from._oneof_case_[0]} {} - -RegistryItem::RegistryItem( - ::google::protobuf::Arena* arena, - const RegistryItem& from) - : ::google::protobuf::Message(arena) { - RegistryItem* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.created_at_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.created_at_) - : nullptr; - _impl_.updated_at_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.updated_at_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, type_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, type_), - offsetof(Impl_, total_external_organization_usage_) - - offsetof(Impl_, type_) + - sizeof(Impl_::total_external_organization_usage_)); - switch (metadata_case()) { - case METADATA_NOT_SET: - break; - case kModuleMetadata: - _impl_.metadata_.module_metadata_ = CreateMaybeMessage<::viam::app::v1::ModuleMetadata>(arena, *from._impl_.metadata_.module_metadata_); - break; - case kMlModelMetadata: - _impl_.metadata_.ml_model_metadata_ = CreateMaybeMessage<::viam::app::v1::MLModelMetadata>(arena, *from._impl_.metadata_.ml_model_metadata_); - break; - case kMlTrainingMetadata: - _impl_.metadata_.ml_training_metadata_ = CreateMaybeMessage<::viam::app::v1::MLTrainingMetadata>(arena, *from._impl_.metadata_.ml_training_metadata_); - break; +RegistryItem::RegistryItem(const RegistryItem& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + item_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + item_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_item_id().empty()) { + item_id_.Set(from._internal_item_id(), + GetArenaForAllocation()); } - - // @@protoc_insertion_point(copy_constructor:viam.app.v1.RegistryItem) -} -inline PROTOBUF_NDEBUG_INLINE RegistryItem::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - item_id_(arena), - organization_id_(arena), - public_namespace_(arena), - name_(arena), - url_(arena), - description_(arena), - metadata_{}, - _oneof_case_{} {} - -inline void RegistryItem::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, created_at_), - 0, - offsetof(Impl_, total_external_organization_usage_) - - offsetof(Impl_, created_at_) + - sizeof(Impl_::total_external_organization_usage_)); -} -RegistryItem::~RegistryItem() { - // @@protoc_insertion_point(destructor:viam.app.v1.RegistryItem) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + organization_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_organization_id().empty()) { + organization_id_.Set(from._internal_organization_id(), + GetArenaForAllocation()); + } + public_namespace_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + public_namespace_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_public_namespace().empty()) { + public_namespace_.Set(from._internal_public_namespace(), + GetArenaForAllocation()); + } + 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()); + } + url_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + url_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_url().empty()) { + url_.Set(from._internal_url(), + GetArenaForAllocation()); + } + description_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + description_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_description().empty()) { + description_.Set(from._internal_description(), + GetArenaForAllocation()); + } + if (from._internal_has_created_at()) { + created_at_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from.created_at_); + } else { + created_at_ = nullptr; + } + if (from._internal_has_updated_at()) { + updated_at_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from.updated_at_); + } else { + updated_at_ = nullptr; + } + ::memcpy(&type_, &from.type_, + static_cast(reinterpret_cast(&total_external_organization_usage_) - + reinterpret_cast(&type_)) + sizeof(total_external_organization_usage_)); + clear_has_metadata(); + switch (from.metadata_case()) { + case kModuleMetadata: { + _internal_mutable_module_metadata()->::viam::app::v1::ModuleMetadata::MergeFrom(from._internal_module_metadata()); + break; + } + case kMlModelMetadata: { + _internal_mutable_ml_model_metadata()->::viam::app::v1::MLModelMetadata::MergeFrom(from._internal_ml_model_metadata()); + break; + } + case kMlTrainingMetadata: { + _internal_mutable_ml_training_metadata()->::viam::app::v1::MLTrainingMetadata::MergeFrom(from._internal_ml_training_metadata()); + break; + } + case METADATA_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.RegistryItem) +} + +inline void RegistryItem::SharedCtor() { +item_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + item_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +organization_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +public_namespace_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + public_namespace_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +url_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + url_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +description_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + description_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&created_at_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&total_external_organization_usage_) - + reinterpret_cast(&created_at_)) + sizeof(total_external_organization_usage_)); +clear_has_metadata(); +} + +RegistryItem::~RegistryItem() { + // @@protoc_insertion_point(destructor:viam.app.v1.RegistryItem) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); } + inline void RegistryItem::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.item_id_.Destroy(); - _impl_.organization_id_.Destroy(); - _impl_.public_namespace_.Destroy(); - _impl_.name_.Destroy(); - _impl_.url_.Destroy(); - _impl_.description_.Destroy(); - delete _impl_.created_at_; - delete _impl_.updated_at_; + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + item_id_.Destroy(); + organization_id_.Destroy(); + public_namespace_.Destroy(); + name_.Destroy(); + url_.Destroy(); + description_.Destroy(); + if (this != internal_default_instance()) delete created_at_; + if (this != internal_default_instance()) delete updated_at_; if (has_metadata()) { clear_metadata(); } - _impl_.~Impl_(); +} + +void RegistryItem::SetCachedSize(int size) const { + _cached_size_.Set(size); } void RegistryItem::clear_metadata() { // @@protoc_insertion_point(one_of_clear_start:viam.app.v1.RegistryItem) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); switch (metadata_case()) { case kModuleMetadata: { - if (GetArena() == nullptr) { - delete _impl_.metadata_.module_metadata_; + if (GetArenaForAllocation() == nullptr) { + delete metadata_.module_metadata_; } break; } case kMlModelMetadata: { - if (GetArena() == nullptr) { - delete _impl_.metadata_.ml_model_metadata_; + if (GetArenaForAllocation() == nullptr) { + delete metadata_.ml_model_metadata_; } break; } case kMlTrainingMetadata: { - if (GetArena() == nullptr) { - delete _impl_.metadata_.ml_training_metadata_; + if (GetArenaForAllocation() == nullptr) { + delete metadata_.ml_training_metadata_; } break; } @@ -38660,529 +39297,567 @@ void RegistryItem::clear_metadata() { break; } } - _impl_._oneof_case_[0] = METADATA_NOT_SET; + _oneof_case_[0] = METADATA_NOT_SET; } -PROTOBUF_NOINLINE void RegistryItem::Clear() { +void RegistryItem::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.RegistryItem) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.item_id_.ClearToEmpty(); - _impl_.organization_id_.ClearToEmpty(); - _impl_.public_namespace_.ClearToEmpty(); - _impl_.name_.ClearToEmpty(); - _impl_.url_.ClearToEmpty(); - _impl_.description_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.created_at_ != nullptr); - _impl_.created_at_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.updated_at_ != nullptr); - _impl_.updated_at_->Clear(); - } + item_id_.ClearToEmpty(); + organization_id_.ClearToEmpty(); + public_namespace_.ClearToEmpty(); + name_.ClearToEmpty(); + url_.ClearToEmpty(); + description_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && created_at_ != nullptr) { + delete created_at_; } - ::memset(&_impl_.type_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.total_external_organization_usage_) - - reinterpret_cast(&_impl_.type_)) + sizeof(_impl_.total_external_organization_usage_)); + created_at_ = nullptr; + if (GetArenaForAllocation() == nullptr && updated_at_ != nullptr) { + delete updated_at_; + } + updated_at_ = nullptr; + ::memset(&type_, 0, static_cast( + reinterpret_cast(&total_external_organization_usage_) - + reinterpret_cast(&type_)) + sizeof(total_external_organization_usage_)); clear_metadata(); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* RegistryItem::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RegistryItem::_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 item_id = 1 [json_name = "itemId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_item_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RegistryItem.item_id")); + } else + goto handle_unusual; + continue; + // string organization_id = 2 [json_name = "organizationId"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_organization_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RegistryItem.organization_id")); + } else + goto handle_unusual; + continue; + // string public_namespace = 3 [json_name = "publicNamespace"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_public_namespace(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RegistryItem.public_namespace")); + } else + goto handle_unusual; + continue; + // string name = 4 [json_name = "name"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RegistryItem.name")); + } else + goto handle_unusual; + continue; + // .viam.app.packages.v1.PackageType type = 5 [json_name = "type"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_type(static_cast<::viam::app::packages::v1::PackageType>(val)); + } else + goto handle_unusual; + continue; + // .viam.app.v1.Visibility visibility = 6 [json_name = "visibility"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_visibility(static_cast<::viam::app::v1::Visibility>(val)); + } else + goto handle_unusual; + continue; + // string url = 7 [json_name = "url"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + auto str = _internal_mutable_url(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RegistryItem.url")); + } else + goto handle_unusual; + continue; + // string description = 8 [json_name = "description"]; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { + auto str = _internal_mutable_description(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RegistryItem.description")); + } else + goto handle_unusual; + continue; + // int64 total_robot_usage = 9 [json_name = "totalRobotUsage"]; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 72)) { + total_robot_usage_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int64 total_organization_usage = 10 [json_name = "totalOrganizationUsage"]; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 80)) { + total_organization_usage_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.app.v1.ModuleMetadata module_metadata = 11 [json_name = "moduleMetadata"]; + case 11: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 90)) { + ptr = ctx->ParseMessage(_internal_mutable_module_metadata(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.app.v1.MLModelMetadata ml_model_metadata = 12 [json_name = "mlModelMetadata"]; + case 12: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 98)) { + ptr = ctx->ParseMessage(_internal_mutable_ml_model_metadata(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int64 total_external_robot_usage = 13 [json_name = "totalExternalRobotUsage"]; + case 13: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 104)) { + total_external_robot_usage_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int64 total_external_organization_usage = 14 [json_name = "totalExternalOrganizationUsage"]; + case 14: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 112)) { + total_external_organization_usage_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp created_at = 15 [json_name = "createdAt"]; + case 15: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 122)) { + ptr = ctx->ParseMessage(_internal_mutable_created_at(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp updated_at = 16 [json_name = "updatedAt"]; + case 16: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 130)) { + ptr = ctx->ParseMessage(_internal_mutable_updated_at(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.app.v1.MLTrainingMetadata ml_training_metadata = 18 [json_name = "mlTrainingMetadata"]; + case 18: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 146)) { + ptr = ctx->ParseMessage(_internal_mutable_ml_training_metadata(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<4, 17, 5, 105, 2> RegistryItem::_table_ = { - { - PROTOBUF_FIELD_OFFSET(RegistryItem, _impl_._has_bits_), - 0, // no _extensions_ - 18, 120, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294770688, // skipmap - offsetof(decltype(_table_), field_entries), - 17, // num_field_entries - 5, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_RegistryItem_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .google.protobuf.Timestamp updated_at = 16 [json_name = "updatedAt"]; - {::_pbi::TcParser::FastMtS2, - {386, 1, 3, PROTOBUF_FIELD_OFFSET(RegistryItem, _impl_.updated_at_)}}, - // string item_id = 1 [json_name = "itemId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(RegistryItem, _impl_.item_id_)}}, - // string organization_id = 2 [json_name = "organizationId"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(RegistryItem, _impl_.organization_id_)}}, - // string public_namespace = 3 [json_name = "publicNamespace"]; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(RegistryItem, _impl_.public_namespace_)}}, - // string name = 4 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(RegistryItem, _impl_.name_)}}, - // .viam.app.packages.v1.PackageType type = 5 [json_name = "type"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RegistryItem, _impl_.type_), 63>(), - {40, 63, 0, PROTOBUF_FIELD_OFFSET(RegistryItem, _impl_.type_)}}, - // .viam.app.v1.Visibility visibility = 6 [json_name = "visibility"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RegistryItem, _impl_.visibility_), 63>(), - {48, 63, 0, PROTOBUF_FIELD_OFFSET(RegistryItem, _impl_.visibility_)}}, - // string url = 7 [json_name = "url"]; - {::_pbi::TcParser::FastUS1, - {58, 63, 0, PROTOBUF_FIELD_OFFSET(RegistryItem, _impl_.url_)}}, - // string description = 8 [json_name = "description"]; - {::_pbi::TcParser::FastUS1, - {66, 63, 0, PROTOBUF_FIELD_OFFSET(RegistryItem, _impl_.description_)}}, - // int64 total_robot_usage = 9 [json_name = "totalRobotUsage"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(RegistryItem, _impl_.total_robot_usage_), 63>(), - {72, 63, 0, PROTOBUF_FIELD_OFFSET(RegistryItem, _impl_.total_robot_usage_)}}, - // int64 total_organization_usage = 10 [json_name = "totalOrganizationUsage"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(RegistryItem, _impl_.total_organization_usage_), 63>(), - {80, 63, 0, PROTOBUF_FIELD_OFFSET(RegistryItem, _impl_.total_organization_usage_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - // int64 total_external_robot_usage = 13 [json_name = "totalExternalRobotUsage"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(RegistryItem, _impl_.total_external_robot_usage_), 63>(), - {104, 63, 0, PROTOBUF_FIELD_OFFSET(RegistryItem, _impl_.total_external_robot_usage_)}}, - // int64 total_external_organization_usage = 14 [json_name = "totalExternalOrganizationUsage"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(RegistryItem, _impl_.total_external_organization_usage_), 63>(), - {112, 63, 0, PROTOBUF_FIELD_OFFSET(RegistryItem, _impl_.total_external_organization_usage_)}}, - // .google.protobuf.Timestamp created_at = 15 [json_name = "createdAt"]; - {::_pbi::TcParser::FastMtS1, - {122, 0, 2, PROTOBUF_FIELD_OFFSET(RegistryItem, _impl_.created_at_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string item_id = 1 [json_name = "itemId"]; - {PROTOBUF_FIELD_OFFSET(RegistryItem, _impl_.item_id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string organization_id = 2 [json_name = "organizationId"]; - {PROTOBUF_FIELD_OFFSET(RegistryItem, _impl_.organization_id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string public_namespace = 3 [json_name = "publicNamespace"]; - {PROTOBUF_FIELD_OFFSET(RegistryItem, _impl_.public_namespace_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string name = 4 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(RegistryItem, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .viam.app.packages.v1.PackageType type = 5 [json_name = "type"]; - {PROTOBUF_FIELD_OFFSET(RegistryItem, _impl_.type_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // .viam.app.v1.Visibility visibility = 6 [json_name = "visibility"]; - {PROTOBUF_FIELD_OFFSET(RegistryItem, _impl_.visibility_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // string url = 7 [json_name = "url"]; - {PROTOBUF_FIELD_OFFSET(RegistryItem, _impl_.url_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string description = 8 [json_name = "description"]; - {PROTOBUF_FIELD_OFFSET(RegistryItem, _impl_.description_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // int64 total_robot_usage = 9 [json_name = "totalRobotUsage"]; - {PROTOBUF_FIELD_OFFSET(RegistryItem, _impl_.total_robot_usage_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - // int64 total_organization_usage = 10 [json_name = "totalOrganizationUsage"]; - {PROTOBUF_FIELD_OFFSET(RegistryItem, _impl_.total_organization_usage_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - // .viam.app.v1.ModuleMetadata module_metadata = 11 [json_name = "moduleMetadata"]; - {PROTOBUF_FIELD_OFFSET(RegistryItem, _impl_.metadata_.module_metadata_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .viam.app.v1.MLModelMetadata ml_model_metadata = 12 [json_name = "mlModelMetadata"]; - {PROTOBUF_FIELD_OFFSET(RegistryItem, _impl_.metadata_.ml_model_metadata_), _Internal::kOneofCaseOffset + 0, 1, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // int64 total_external_robot_usage = 13 [json_name = "totalExternalRobotUsage"]; - {PROTOBUF_FIELD_OFFSET(RegistryItem, _impl_.total_external_robot_usage_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - // int64 total_external_organization_usage = 14 [json_name = "totalExternalOrganizationUsage"]; - {PROTOBUF_FIELD_OFFSET(RegistryItem, _impl_.total_external_organization_usage_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - // .google.protobuf.Timestamp created_at = 15 [json_name = "createdAt"]; - {PROTOBUF_FIELD_OFFSET(RegistryItem, _impl_.created_at_), _Internal::kHasBitsOffset + 0, 2, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.protobuf.Timestamp updated_at = 16 [json_name = "updatedAt"]; - {PROTOBUF_FIELD_OFFSET(RegistryItem, _impl_.updated_at_), _Internal::kHasBitsOffset + 1, 3, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .viam.app.v1.MLTrainingMetadata ml_training_metadata = 18 [json_name = "mlTrainingMetadata"]; - {PROTOBUF_FIELD_OFFSET(RegistryItem, _impl_.metadata_.ml_training_metadata_), _Internal::kOneofCaseOffset + 0, 4, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::ModuleMetadata>()}, - {::_pbi::TcParser::GetTable<::viam::app::v1::MLModelMetadata>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, - {::_pbi::TcParser::GetTable<::viam::app::v1::MLTrainingMetadata>()}, - }}, {{ - "\30\7\17\20\4\0\0\3\13\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" - "viam.app.v1.RegistryItem" - "item_id" - "organization_id" - "public_namespace" - "name" - "url" - "description" - }}, -}; - -::uint8_t* RegistryItem::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* RegistryItem::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.RegistryItem) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string item_id = 1 [json_name = "itemId"]; if (!this->_internal_item_id().empty()) { - const std::string& _s = this->_internal_item_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.RegistryItem.item_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_item_id().data(), static_cast(this->_internal_item_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RegistryItem.item_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_item_id(), target); } // string organization_id = 2 [json_name = "organizationId"]; if (!this->_internal_organization_id().empty()) { - const std::string& _s = this->_internal_organization_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.RegistryItem.organization_id"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_organization_id().data(), static_cast(this->_internal_organization_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RegistryItem.organization_id"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_organization_id(), target); } // string public_namespace = 3 [json_name = "publicNamespace"]; if (!this->_internal_public_namespace().empty()) { - const std::string& _s = this->_internal_public_namespace(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.RegistryItem.public_namespace"); - target = stream->WriteStringMaybeAliased(3, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_public_namespace().data(), static_cast(this->_internal_public_namespace().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RegistryItem.public_namespace"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_public_namespace(), target); } // string name = 4 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.RegistryItem.name"); - target = stream->WriteStringMaybeAliased(4, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RegistryItem.name"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_name(), target); } // .viam.app.packages.v1.PackageType type = 5 [json_name = "type"]; if (this->_internal_type() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 5, this->_internal_type(), target); + 5, this->_internal_type(), target); } // .viam.app.v1.Visibility visibility = 6 [json_name = "visibility"]; if (this->_internal_visibility() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 6, this->_internal_visibility(), target); + 6, this->_internal_visibility(), target); } // string url = 7 [json_name = "url"]; if (!this->_internal_url().empty()) { - const std::string& _s = this->_internal_url(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.RegistryItem.url"); - target = stream->WriteStringMaybeAliased(7, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_url().data(), static_cast(this->_internal_url().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RegistryItem.url"); + target = stream->WriteStringMaybeAliased( + 7, this->_internal_url(), target); } // string description = 8 [json_name = "description"]; if (!this->_internal_description().empty()) { - const std::string& _s = this->_internal_description(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.RegistryItem.description"); - target = stream->WriteStringMaybeAliased(8, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_description().data(), static_cast(this->_internal_description().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RegistryItem.description"); + target = stream->WriteStringMaybeAliased( + 8, this->_internal_description(), target); } // int64 total_robot_usage = 9 [json_name = "totalRobotUsage"]; if (this->_internal_total_robot_usage() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<9>( - stream, this->_internal_total_robot_usage(), target); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(9, this->_internal_total_robot_usage(), target); } // int64 total_organization_usage = 10 [json_name = "totalOrganizationUsage"]; if (this->_internal_total_organization_usage() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<10>( - stream, this->_internal_total_organization_usage(), target); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(10, this->_internal_total_organization_usage(), target); } - switch (metadata_case()) { - case kModuleMetadata: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 11, _Internal::module_metadata(this), - _Internal::module_metadata(this).GetCachedSize(), target, stream); - break; - } - case kMlModelMetadata: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 12, _Internal::ml_model_metadata(this), - _Internal::ml_model_metadata(this).GetCachedSize(), target, stream); - break; - } - default: - break; + // .viam.app.v1.ModuleMetadata module_metadata = 11 [json_name = "moduleMetadata"]; + if (_internal_has_module_metadata()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(11, _Internal::module_metadata(this), + _Internal::module_metadata(this).GetCachedSize(), target, stream); + } + + // .viam.app.v1.MLModelMetadata ml_model_metadata = 12 [json_name = "mlModelMetadata"]; + if (_internal_has_ml_model_metadata()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(12, _Internal::ml_model_metadata(this), + _Internal::ml_model_metadata(this).GetCachedSize(), target, stream); } + // int64 total_external_robot_usage = 13 [json_name = "totalExternalRobotUsage"]; if (this->_internal_total_external_robot_usage() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<13>( - stream, this->_internal_total_external_robot_usage(), target); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(13, this->_internal_total_external_robot_usage(), target); } // int64 total_external_organization_usage = 14 [json_name = "totalExternalOrganizationUsage"]; if (this->_internal_total_external_organization_usage() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<14>( - stream, this->_internal_total_external_organization_usage(), target); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(14, this->_internal_total_external_organization_usage(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Timestamp created_at = 15 [json_name = "createdAt"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 15, _Internal::created_at(this), + if (this->_internal_has_created_at()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(15, _Internal::created_at(this), _Internal::created_at(this).GetCachedSize(), target, stream); } // .google.protobuf.Timestamp updated_at = 16 [json_name = "updatedAt"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 16, _Internal::updated_at(this), + if (this->_internal_has_updated_at()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(16, _Internal::updated_at(this), _Internal::updated_at(this).GetCachedSize(), target, stream); } // .viam.app.v1.MLTrainingMetadata ml_training_metadata = 18 [json_name = "mlTrainingMetadata"]; - if (metadata_case() == kMlTrainingMetadata) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 18, _Internal::ml_training_metadata(this), + if (_internal_has_ml_training_metadata()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(18, _Internal::ml_training_metadata(this), _Internal::ml_training_metadata(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.RegistryItem) return target; } -::size_t RegistryItem::ByteSizeLong() const { +size_t RegistryItem::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.RegistryItem) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string item_id = 1 [json_name = "itemId"]; if (!this->_internal_item_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_item_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_item_id()); } // string organization_id = 2 [json_name = "organizationId"]; if (!this->_internal_organization_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_organization_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_organization_id()); } // string public_namespace = 3 [json_name = "publicNamespace"]; if (!this->_internal_public_namespace().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_public_namespace()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_public_namespace()); } // string name = 4 [json_name = "name"]; if (!this->_internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // string url = 7 [json_name = "url"]; if (!this->_internal_url().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_url()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_url()); } // string description = 8 [json_name = "description"]; if (!this->_internal_description().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_description()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_description()); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // .google.protobuf.Timestamp created_at = 15 [json_name = "createdAt"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.created_at_); - } - - // .google.protobuf.Timestamp updated_at = 16 [json_name = "updatedAt"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.updated_at_); - } + // .google.protobuf.Timestamp created_at = 15 [json_name = "createdAt"]; + if (this->_internal_has_created_at()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *created_at_); + } + // .google.protobuf.Timestamp updated_at = 16 [json_name = "updatedAt"]; + if (this->_internal_has_updated_at()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *updated_at_); } + // .viam.app.packages.v1.PackageType type = 5 [json_name = "type"]; if (this->_internal_type() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_type()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_type()); } // .viam.app.v1.Visibility visibility = 6 [json_name = "visibility"]; if (this->_internal_visibility() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_visibility()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_visibility()); } // int64 total_robot_usage = 9 [json_name = "totalRobotUsage"]; if (this->_internal_total_robot_usage() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( - this->_internal_total_robot_usage()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_total_robot_usage()); } // int64 total_organization_usage = 10 [json_name = "totalOrganizationUsage"]; if (this->_internal_total_organization_usage() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( - this->_internal_total_organization_usage()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_total_organization_usage()); } // int64 total_external_robot_usage = 13 [json_name = "totalExternalRobotUsage"]; if (this->_internal_total_external_robot_usage() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( - this->_internal_total_external_robot_usage()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_total_external_robot_usage()); } // int64 total_external_organization_usage = 14 [json_name = "totalExternalOrganizationUsage"]; if (this->_internal_total_external_organization_usage() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( - this->_internal_total_external_organization_usage()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_total_external_organization_usage()); } switch (metadata_case()) { // .viam.app.v1.ModuleMetadata module_metadata = 11 [json_name = "moduleMetadata"]; case kModuleMetadata: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.metadata_.module_metadata_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *metadata_.module_metadata_); break; } // .viam.app.v1.MLModelMetadata ml_model_metadata = 12 [json_name = "mlModelMetadata"]; case kMlModelMetadata: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.metadata_.ml_model_metadata_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *metadata_.ml_model_metadata_); break; } // .viam.app.v1.MLTrainingMetadata ml_training_metadata = 18 [json_name = "mlTrainingMetadata"]; case kMlTrainingMetadata: { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.metadata_.ml_training_metadata_); + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *metadata_.ml_training_metadata_); break; } case METADATA_NOT_SET: { break; } } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData RegistryItem::_class_data_ = { - RegistryItem::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RegistryItem::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + RegistryItem::MergeImpl }; -const ::google::protobuf::Message::ClassData* RegistryItem::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RegistryItem::GetClassData() const { return &_class_data_; } + +void RegistryItem::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void RegistryItem::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.RegistryItem) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void RegistryItem::MergeFrom(const RegistryItem& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.RegistryItem) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_item_id().empty()) { - _this->_internal_set_item_id(from._internal_item_id()); + _internal_set_item_id(from._internal_item_id()); } if (!from._internal_organization_id().empty()) { - _this->_internal_set_organization_id(from._internal_organization_id()); + _internal_set_organization_id(from._internal_organization_id()); } if (!from._internal_public_namespace().empty()) { - _this->_internal_set_public_namespace(from._internal_public_namespace()); + _internal_set_public_namespace(from._internal_public_namespace()); } if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (!from._internal_url().empty()) { - _this->_internal_set_url(from._internal_url()); + _internal_set_url(from._internal_url()); } if (!from._internal_description().empty()) { - _this->_internal_set_description(from._internal_description()); + _internal_set_description(from._internal_description()); } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_created_at()->::google::protobuf::Timestamp::MergeFrom( - from._internal_created_at()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_updated_at()->::google::protobuf::Timestamp::MergeFrom( - from._internal_updated_at()); - } + if (from._internal_has_created_at()) { + _internal_mutable_created_at()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_created_at()); + } + if (from._internal_has_updated_at()) { + _internal_mutable_updated_at()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_updated_at()); } if (from._internal_type() != 0) { - _this->_internal_set_type(from._internal_type()); + _internal_set_type(from._internal_type()); } if (from._internal_visibility() != 0) { - _this->_internal_set_visibility(from._internal_visibility()); + _internal_set_visibility(from._internal_visibility()); } if (from._internal_total_robot_usage() != 0) { - _this->_internal_set_total_robot_usage(from._internal_total_robot_usage()); + _internal_set_total_robot_usage(from._internal_total_robot_usage()); } if (from._internal_total_organization_usage() != 0) { - _this->_internal_set_total_organization_usage(from._internal_total_organization_usage()); + _internal_set_total_organization_usage(from._internal_total_organization_usage()); } if (from._internal_total_external_robot_usage() != 0) { - _this->_internal_set_total_external_robot_usage(from._internal_total_external_robot_usage()); + _internal_set_total_external_robot_usage(from._internal_total_external_robot_usage()); } if (from._internal_total_external_organization_usage() != 0) { - _this->_internal_set_total_external_organization_usage(from._internal_total_external_organization_usage()); + _internal_set_total_external_organization_usage(from._internal_total_external_organization_usage()); } switch (from.metadata_case()) { case kModuleMetadata: { - _this->_internal_mutable_module_metadata()->::viam::app::v1::ModuleMetadata::MergeFrom( - from._internal_module_metadata()); + _internal_mutable_module_metadata()->::viam::app::v1::ModuleMetadata::MergeFrom(from._internal_module_metadata()); break; } case kMlModelMetadata: { - _this->_internal_mutable_ml_model_metadata()->::viam::app::v1::MLModelMetadata::MergeFrom( - from._internal_ml_model_metadata()); + _internal_mutable_ml_model_metadata()->::viam::app::v1::MLModelMetadata::MergeFrom(from._internal_ml_model_metadata()); break; } case kMlTrainingMetadata: { - _this->_internal_mutable_ml_training_metadata()->::viam::app::v1::MLTrainingMetadata::MergeFrom( - from._internal_ml_training_metadata()); + _internal_mutable_ml_training_metadata()->::viam::app::v1::MLTrainingMetadata::MergeFrom(from._internal_ml_training_metadata()); break; } case METADATA_NOT_SET: { break; } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void RegistryItem::CopyFrom(const RegistryItem& from) { @@ -39192,201 +39867,255 @@ void RegistryItem::CopyFrom(const RegistryItem& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool RegistryItem::IsInitialized() const { +bool RegistryItem::IsInitialized() const { return true; } -::_pbi::CachedSize* RegistryItem::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void RegistryItem::InternalSwap(RegistryItem* PROTOBUF_RESTRICT other) { +void RegistryItem::InternalSwap(RegistryItem* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.item_id_, &other->_impl_.item_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.organization_id_, &other->_impl_.organization_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.public_namespace_, &other->_impl_.public_namespace_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.url_, &other->_impl_.url_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.description_, &other->_impl_.description_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(RegistryItem, _impl_.total_external_organization_usage_) - + sizeof(RegistryItem::_impl_.total_external_organization_usage_) - - PROTOBUF_FIELD_OFFSET(RegistryItem, _impl_.created_at_)>( - reinterpret_cast(&_impl_.created_at_), - reinterpret_cast(&other->_impl_.created_at_)); - swap(_impl_.metadata_, other->_impl_.metadata_); - swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); -} - -::google::protobuf::Metadata RegistryItem::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &item_id_, lhs_arena, + &other->item_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &organization_id_, lhs_arena, + &other->organization_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &public_namespace_, lhs_arena, + &other->public_namespace_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &url_, lhs_arena, + &other->url_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &description_, lhs_arena, + &other->description_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(RegistryItem, total_external_organization_usage_) + + sizeof(RegistryItem::total_external_organization_usage_) + - PROTOBUF_FIELD_OFFSET(RegistryItem, created_at_)>( + reinterpret_cast(&created_at_), + reinterpret_cast(&other->created_at_)); + swap(metadata_, other->metadata_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::PROTOBUF_NAMESPACE_ID::Metadata RegistryItem::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[147]); + file_level_metadata_app_2fv1_2fapp_2eproto[148]); } + // =================================================================== class GetRegistryItemRequest::_Internal { public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_include_markdown_documentation(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; -GetRegistryItemRequest::GetRegistryItemRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetRegistryItemRequest::GetRegistryItemRequest(::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.GetRegistryItemRequest) } -inline PROTOBUF_NDEBUG_INLINE GetRegistryItemRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : item_id_(arena, from.item_id_), - _cached_size_{0} {} - -GetRegistryItemRequest::GetRegistryItemRequest( - ::google::protobuf::Arena* arena, - const GetRegistryItemRequest& from) - : ::google::protobuf::Message(arena) { - GetRegistryItemRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetRegistryItemRequest::GetRegistryItemRequest(const GetRegistryItemRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + item_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + item_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_item_id().empty()) { + item_id_.Set(from._internal_item_id(), + GetArenaForAllocation()); + } + include_markdown_documentation_ = from.include_markdown_documentation_; // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetRegistryItemRequest) } -inline PROTOBUF_NDEBUG_INLINE GetRegistryItemRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : item_id_(arena), - _cached_size_{0} {} -inline void GetRegistryItemRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetRegistryItemRequest::SharedCtor() { +item_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + item_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +include_markdown_documentation_ = false; } + GetRegistryItemRequest::~GetRegistryItemRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.GetRegistryItemRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetRegistryItemRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.item_id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + item_id_.Destroy(); } -PROTOBUF_NOINLINE void GetRegistryItemRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetRegistryItemRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.item_id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void GetRegistryItemRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* GetRegistryItemRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void GetRegistryItemRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetRegistryItemRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + item_id_.ClearToEmpty(); + include_markdown_documentation_ = false; + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetRegistryItemRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string item_id = 1 [json_name = "itemId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_item_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.GetRegistryItemRequest.item_id")); + } else + goto handle_unusual; + continue; + // optional bool include_markdown_documentation = 2 [json_name = "includeMarkdownDocumentation"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _Internal::set_has_include_markdown_documentation(&has_bits); + include_markdown_documentation_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 50, 2> GetRegistryItemRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetRegistryItemRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string item_id = 1 [json_name = "itemId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetRegistryItemRequest, _impl_.item_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string item_id = 1 [json_name = "itemId"]; - {PROTOBUF_FIELD_OFFSET(GetRegistryItemRequest, _impl_.item_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\42\7\0\0\0\0\0\0" - "viam.app.v1.GetRegistryItemRequest" - "item_id" - }}, -}; - -::uint8_t* GetRegistryItemRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetRegistryItemRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetRegistryItemRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string item_id = 1 [json_name = "itemId"]; if (!this->_internal_item_id().empty()) { - const std::string& _s = this->_internal_item_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.GetRegistryItemRequest.item_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_item_id().data(), static_cast(this->_internal_item_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.GetRegistryItemRequest.item_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_item_id(), target); + } + + // optional bool include_markdown_documentation = 2 [json_name = "includeMarkdownDocumentation"]; + if (_internal_has_include_markdown_documentation()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_include_markdown_documentation(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.GetRegistryItemRequest) return target; } -::size_t GetRegistryItemRequest::ByteSizeLong() const { +size_t GetRegistryItemRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetRegistryItemRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string item_id = 1 [json_name = "itemId"]; if (!this->_internal_item_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_item_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_item_id()); + } + + // optional bool include_markdown_documentation = 2 [json_name = "includeMarkdownDocumentation"]; + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetRegistryItemRequest::_class_data_ = { - GetRegistryItemRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetRegistryItemRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetRegistryItemRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetRegistryItemRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetRegistryItemRequest::GetClassData() const { return &_class_data_; } + +void GetRegistryItemRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetRegistryItemRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetRegistryItemRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetRegistryItemRequest::MergeFrom(const GetRegistryItemRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetRegistryItemRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_item_id().empty()) { - _this->_internal_set_item_id(from._internal_item_id()); + _internal_set_item_id(from._internal_item_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_include_markdown_documentation()) { + _internal_set_include_markdown_documentation(from._internal_include_markdown_documentation()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetRegistryItemRequest::CopyFrom(const GetRegistryItemRequest& from) { @@ -39396,205 +40125,191 @@ void GetRegistryItemRequest::CopyFrom(const GetRegistryItemRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetRegistryItemRequest::IsInitialized() const { +bool GetRegistryItemRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetRegistryItemRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetRegistryItemRequest::InternalSwap(GetRegistryItemRequest* PROTOBUF_RESTRICT other) { +void GetRegistryItemRequest::InternalSwap(GetRegistryItemRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.item_id_, &other->_impl_.item_id_, arena); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &item_id_, lhs_arena, + &other->item_id_, rhs_arena + ); + swap(include_markdown_documentation_, other->include_markdown_documentation_); } -::google::protobuf::Metadata GetRegistryItemRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetRegistryItemRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[148]); + file_level_metadata_app_2fv1_2fapp_2eproto[149]); } + // =================================================================== class GetRegistryItemResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetRegistryItemResponse, _impl_._has_bits_); static const ::viam::app::v1::RegistryItem& item(const GetRegistryItemResponse* msg); - static void set_has_item(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::app::v1::RegistryItem& GetRegistryItemResponse::_Internal::item(const GetRegistryItemResponse* msg) { - return *msg->_impl_.item_; +const ::viam::app::v1::RegistryItem& +GetRegistryItemResponse::_Internal::item(const GetRegistryItemResponse* msg) { + return *msg->item_; } -GetRegistryItemResponse::GetRegistryItemResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetRegistryItemResponse::GetRegistryItemResponse(::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.GetRegistryItemResponse) } -inline PROTOBUF_NDEBUG_INLINE GetRegistryItemResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -GetRegistryItemResponse::GetRegistryItemResponse( - ::google::protobuf::Arena* arena, - const GetRegistryItemResponse& from) - : ::google::protobuf::Message(arena) { - GetRegistryItemResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.item_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::app::v1::RegistryItem>(arena, *from._impl_.item_) - : nullptr; - +GetRegistryItemResponse::GetRegistryItemResponse(const GetRegistryItemResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_item()) { + item_ = new ::viam::app::v1::RegistryItem(*from.item_); + } else { + item_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetRegistryItemResponse) } -inline PROTOBUF_NDEBUG_INLINE GetRegistryItemResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void GetRegistryItemResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.item_ = {}; +inline void GetRegistryItemResponse::SharedCtor() { +item_ = nullptr; } + GetRegistryItemResponse::~GetRegistryItemResponse() { // @@protoc_insertion_point(destructor:viam.app.v1.GetRegistryItemResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetRegistryItemResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.item_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete item_; } -PROTOBUF_NOINLINE void GetRegistryItemResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetRegistryItemResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.item_ != nullptr); - _impl_.item_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void GetRegistryItemResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* GetRegistryItemResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void GetRegistryItemResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetRegistryItemResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && item_ != nullptr) { + delete item_; + } + item_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetRegistryItemResponse::_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.app.v1.RegistryItem item = 1 [json_name = "item"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_item(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetRegistryItemResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetRegistryItemResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetRegistryItemResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.app.v1.RegistryItem item = 1 [json_name = "item"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetRegistryItemResponse, _impl_.item_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.app.v1.RegistryItem item = 1 [json_name = "item"]; - {PROTOBUF_FIELD_OFFSET(GetRegistryItemResponse, _impl_.item_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::RegistryItem>()}, - }}, {{ - }}, -}; - -::uint8_t* GetRegistryItemResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetRegistryItemResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetRegistryItemResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.app.v1.RegistryItem item = 1 [json_name = "item"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::item(this), + if (this->_internal_has_item()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::item(this), _Internal::item(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.GetRegistryItemResponse) return target; } -::size_t GetRegistryItemResponse::ByteSizeLong() const { +size_t GetRegistryItemResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetRegistryItemResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .viam.app.v1.RegistryItem item = 1 [json_name = "item"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.item_); + if (this->_internal_has_item()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *item_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetRegistryItemResponse::_class_data_ = { - GetRegistryItemResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetRegistryItemResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetRegistryItemResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetRegistryItemResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetRegistryItemResponse::GetClassData() const { return &_class_data_; } + +void GetRegistryItemResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetRegistryItemResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetRegistryItemResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetRegistryItemResponse::MergeFrom(const GetRegistryItemResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetRegistryItemResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_item()->::viam::app::v1::RegistryItem::MergeFrom( - from._internal_item()); + if (from._internal_has_item()) { + _internal_mutable_item()->::viam::app::v1::RegistryItem::MergeFrom(from._internal_item()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetRegistryItemResponse::CopyFrom(const GetRegistryItemResponse& from) { @@ -39604,240 +40319,259 @@ void GetRegistryItemResponse::CopyFrom(const GetRegistryItemResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetRegistryItemResponse::IsInitialized() const { +bool GetRegistryItemResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetRegistryItemResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetRegistryItemResponse::InternalSwap(GetRegistryItemResponse* PROTOBUF_RESTRICT other) { +void GetRegistryItemResponse::InternalSwap(GetRegistryItemResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.item_, other->_impl_.item_); + swap(item_, other->item_); } -::google::protobuf::Metadata GetRegistryItemResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetRegistryItemResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[149]); + file_level_metadata_app_2fv1_2fapp_2eproto[150]); } + // =================================================================== class CreateRegistryItemRequest::_Internal { public: }; -CreateRegistryItemRequest::CreateRegistryItemRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +CreateRegistryItemRequest::CreateRegistryItemRequest(::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.CreateRegistryItemRequest) } -inline PROTOBUF_NDEBUG_INLINE CreateRegistryItemRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : organization_id_(arena, from.organization_id_), - name_(arena, from.name_), - _cached_size_{0} {} - -CreateRegistryItemRequest::CreateRegistryItemRequest( - ::google::protobuf::Arena* arena, - const CreateRegistryItemRequest& from) - : ::google::protobuf::Message(arena) { - CreateRegistryItemRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.type_ = from._impl_.type_; - +CreateRegistryItemRequest::CreateRegistryItemRequest(const CreateRegistryItemRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + organization_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_organization_id().empty()) { + organization_id_.Set(from._internal_organization_id(), + GetArenaForAllocation()); + } + 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()); + } + type_ = from.type_; // @@protoc_insertion_point(copy_constructor:viam.app.v1.CreateRegistryItemRequest) } -inline PROTOBUF_NDEBUG_INLINE CreateRegistryItemRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : organization_id_(arena), - name_(arena), - _cached_size_{0} {} -inline void CreateRegistryItemRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.type_ = {}; +inline void CreateRegistryItemRequest::SharedCtor() { +organization_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +type_ = 0; } + CreateRegistryItemRequest::~CreateRegistryItemRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.CreateRegistryItemRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void CreateRegistryItemRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.organization_id_.Destroy(); - _impl_.name_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + organization_id_.Destroy(); + name_.Destroy(); } -PROTOBUF_NOINLINE void CreateRegistryItemRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.CreateRegistryItemRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.organization_id_.ClearToEmpty(); - _impl_.name_.ClearToEmpty(); - _impl_.type_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void CreateRegistryItemRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* CreateRegistryItemRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void CreateRegistryItemRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.CreateRegistryItemRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + organization_id_.ClearToEmpty(); + name_.ClearToEmpty(); + type_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CreateRegistryItemRequest::_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 organization_id = 1 [json_name = "organizationId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_organization_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.CreateRegistryItemRequest.organization_id")); + } else + goto handle_unusual; + continue; + // string name = 2 [json_name = "name"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.CreateRegistryItemRequest.name")); + } else + goto handle_unusual; + continue; + // .viam.app.packages.v1.PackageType type = 3 [json_name = "type"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_type(static_cast<::viam::app::packages::v1::PackageType>(val)); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 65, 2> CreateRegistryItemRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_CreateRegistryItemRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string organization_id = 1 [json_name = "organizationId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(CreateRegistryItemRequest, _impl_.organization_id_)}}, - // string name = 2 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(CreateRegistryItemRequest, _impl_.name_)}}, - // .viam.app.packages.v1.PackageType type = 3 [json_name = "type"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreateRegistryItemRequest, _impl_.type_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(CreateRegistryItemRequest, _impl_.type_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string organization_id = 1 [json_name = "organizationId"]; - {PROTOBUF_FIELD_OFFSET(CreateRegistryItemRequest, _impl_.organization_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string name = 2 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(CreateRegistryItemRequest, _impl_.name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .viam.app.packages.v1.PackageType type = 3 [json_name = "type"]; - {PROTOBUF_FIELD_OFFSET(CreateRegistryItemRequest, _impl_.type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - }}, - // no aux_entries - {{ - "\45\17\4\0\0\0\0\0" - "viam.app.v1.CreateRegistryItemRequest" - "organization_id" - "name" - }}, -}; - -::uint8_t* CreateRegistryItemRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* CreateRegistryItemRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.CreateRegistryItemRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string organization_id = 1 [json_name = "organizationId"]; if (!this->_internal_organization_id().empty()) { - const std::string& _s = this->_internal_organization_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.CreateRegistryItemRequest.organization_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_organization_id().data(), static_cast(this->_internal_organization_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.CreateRegistryItemRequest.organization_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_organization_id(), target); } // string name = 2 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.CreateRegistryItemRequest.name"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.CreateRegistryItemRequest.name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_name(), target); } // .viam.app.packages.v1.PackageType type = 3 [json_name = "type"]; if (this->_internal_type() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 3, this->_internal_type(), target); + 3, this->_internal_type(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.CreateRegistryItemRequest) return target; } -::size_t CreateRegistryItemRequest::ByteSizeLong() const { +size_t CreateRegistryItemRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.CreateRegistryItemRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string organization_id = 1 [json_name = "organizationId"]; if (!this->_internal_organization_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_organization_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_organization_id()); } // string name = 2 [json_name = "name"]; if (!this->_internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .viam.app.packages.v1.PackageType type = 3 [json_name = "type"]; if (this->_internal_type() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_type()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_type()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData CreateRegistryItemRequest::_class_data_ = { - CreateRegistryItemRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CreateRegistryItemRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CreateRegistryItemRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* CreateRegistryItemRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CreateRegistryItemRequest::GetClassData() const { return &_class_data_; } + +void CreateRegistryItemRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void CreateRegistryItemRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.CreateRegistryItemRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void CreateRegistryItemRequest::MergeFrom(const CreateRegistryItemRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.CreateRegistryItemRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_organization_id().empty()) { - _this->_internal_set_organization_id(from._internal_organization_id()); + _internal_set_organization_id(from._internal_organization_id()); } if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (from._internal_type() != 0) { - _this->_internal_set_type(from._internal_type()); + _internal_set_type(from._internal_type()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CreateRegistryItemRequest::CopyFrom(const CreateRegistryItemRequest& from) { @@ -39847,47 +40581,46 @@ void CreateRegistryItemRequest::CopyFrom(const CreateRegistryItemRequest& from) MergeFrom(from); } -PROTOBUF_NOINLINE bool CreateRegistryItemRequest::IsInitialized() const { +bool CreateRegistryItemRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* CreateRegistryItemRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void CreateRegistryItemRequest::InternalSwap(CreateRegistryItemRequest* PROTOBUF_RESTRICT other) { +void CreateRegistryItemRequest::InternalSwap(CreateRegistryItemRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.organization_id_, &other->_impl_.organization_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.type_, other->_impl_.type_); -} - -::google::protobuf::Metadata CreateRegistryItemRequest::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &organization_id_, lhs_arena, + &other->organization_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(type_, other->type_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata CreateRegistryItemRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[150]); + file_level_metadata_app_2fv1_2fapp_2eproto[151]); } + // =================================================================== class CreateRegistryItemResponse::_Internal { public: }; -CreateRegistryItemResponse::CreateRegistryItemResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +CreateRegistryItemResponse::CreateRegistryItemResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.app.v1.CreateRegistryItemResponse) } -CreateRegistryItemResponse::CreateRegistryItemResponse( - ::google::protobuf::Arena* arena, - const CreateRegistryItemResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - CreateRegistryItemResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +CreateRegistryItemResponse::CreateRegistryItemResponse(const CreateRegistryItemResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.app.v1.CreateRegistryItemResponse) } @@ -39895,308 +40628,549 @@ CreateRegistryItemResponse::CreateRegistryItemResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CreateRegistryItemResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CreateRegistryItemResponse::GetClassData() const { return &_class_data_; } + + + -::google::protobuf::Metadata CreateRegistryItemResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata CreateRegistryItemResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[151]); + file_level_metadata_app_2fv1_2fapp_2eproto[152]); } + // =================================================================== class UpdateRegistryItemRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(UpdateRegistryItemRequest, _impl_._has_bits_); + using HasBits = decltype(std::declval()._has_bits_); static void set_has_url(HasBits* has_bits) { (*has_bits)[0] |= 1u; } + static const ::viam::app::v1::UpdateModuleMetadata& module_update_metadata(const UpdateRegistryItemRequest* msg); + static const ::viam::app::v1::UpdateMLModelMetadata& ml_model_update_metadata(const UpdateRegistryItemRequest* msg); + static const ::viam::app::v1::UpdateMLTrainingMetadata& ml_training_update_metadata(const UpdateRegistryItemRequest* msg); }; -UpdateRegistryItemRequest::UpdateRegistryItemRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +const ::viam::app::v1::UpdateModuleMetadata& +UpdateRegistryItemRequest::_Internal::module_update_metadata(const UpdateRegistryItemRequest* msg) { + return *msg->metadata_.module_update_metadata_; +} +const ::viam::app::v1::UpdateMLModelMetadata& +UpdateRegistryItemRequest::_Internal::ml_model_update_metadata(const UpdateRegistryItemRequest* msg) { + return *msg->metadata_.ml_model_update_metadata_; +} +const ::viam::app::v1::UpdateMLTrainingMetadata& +UpdateRegistryItemRequest::_Internal::ml_training_update_metadata(const UpdateRegistryItemRequest* msg) { + return *msg->metadata_.ml_training_update_metadata_; +} +void UpdateRegistryItemRequest::set_allocated_module_update_metadata(::viam::app::v1::UpdateModuleMetadata* module_update_metadata) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_metadata(); + if (module_update_metadata) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(module_update_metadata); + if (message_arena != submessage_arena) { + module_update_metadata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, module_update_metadata, submessage_arena); + } + set_has_module_update_metadata(); + metadata_.module_update_metadata_ = module_update_metadata; + } + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateRegistryItemRequest.module_update_metadata) +} +void UpdateRegistryItemRequest::set_allocated_ml_model_update_metadata(::viam::app::v1::UpdateMLModelMetadata* ml_model_update_metadata) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_metadata(); + if (ml_model_update_metadata) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(ml_model_update_metadata); + if (message_arena != submessage_arena) { + ml_model_update_metadata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, ml_model_update_metadata, submessage_arena); + } + set_has_ml_model_update_metadata(); + metadata_.ml_model_update_metadata_ = ml_model_update_metadata; + } + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateRegistryItemRequest.ml_model_update_metadata) +} +void UpdateRegistryItemRequest::set_allocated_ml_training_update_metadata(::viam::app::v1::UpdateMLTrainingMetadata* ml_training_update_metadata) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_metadata(); + if (ml_training_update_metadata) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(ml_training_update_metadata); + if (message_arena != submessage_arena) { + ml_training_update_metadata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, ml_training_update_metadata, submessage_arena); + } + set_has_ml_training_update_metadata(); + metadata_.ml_training_update_metadata_ = ml_training_update_metadata; + } + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateRegistryItemRequest.ml_training_update_metadata) +} +UpdateRegistryItemRequest::UpdateRegistryItemRequest(::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.UpdateRegistryItemRequest) } -inline PROTOBUF_NDEBUG_INLINE UpdateRegistryItemRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - item_id_(arena, from.item_id_), - description_(arena, from.description_), - url_(arena, from.url_) {} - -UpdateRegistryItemRequest::UpdateRegistryItemRequest( - ::google::protobuf::Arena* arena, - const UpdateRegistryItemRequest& from) - : ::google::protobuf::Message(arena) { - UpdateRegistryItemRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, type_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, type_), - offsetof(Impl_, visibility_) - - offsetof(Impl_, type_) + - sizeof(Impl_::visibility_)); - +UpdateRegistryItemRequest::UpdateRegistryItemRequest(const UpdateRegistryItemRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + item_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + item_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_item_id().empty()) { + item_id_.Set(from._internal_item_id(), + GetArenaForAllocation()); + } + description_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + description_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_description().empty()) { + description_.Set(from._internal_description(), + GetArenaForAllocation()); + } + url_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + url_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (from._internal_has_url()) { + url_.Set(from._internal_url(), + GetArenaForAllocation()); + } + ::memcpy(&type_, &from.type_, + static_cast(reinterpret_cast(&visibility_) - + reinterpret_cast(&type_)) + sizeof(visibility_)); + clear_has_metadata(); + switch (from.metadata_case()) { + case kModuleUpdateMetadata: { + _internal_mutable_module_update_metadata()->::viam::app::v1::UpdateModuleMetadata::MergeFrom(from._internal_module_update_metadata()); + break; + } + case kMlModelUpdateMetadata: { + _internal_mutable_ml_model_update_metadata()->::viam::app::v1::UpdateMLModelMetadata::MergeFrom(from._internal_ml_model_update_metadata()); + break; + } + case kMlTrainingUpdateMetadata: { + _internal_mutable_ml_training_update_metadata()->::viam::app::v1::UpdateMLTrainingMetadata::MergeFrom(from._internal_ml_training_update_metadata()); + break; + } + case METADATA_NOT_SET: { + break; + } + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.UpdateRegistryItemRequest) } -inline PROTOBUF_NDEBUG_INLINE UpdateRegistryItemRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - item_id_(arena), - description_(arena), - url_(arena) {} - -inline void UpdateRegistryItemRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, type_), - 0, - offsetof(Impl_, visibility_) - - offsetof(Impl_, type_) + - sizeof(Impl_::visibility_)); + +inline void UpdateRegistryItemRequest::SharedCtor() { +item_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + item_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +description_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + description_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +url_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + url_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&type_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&visibility_) - + reinterpret_cast(&type_)) + sizeof(visibility_)); +clear_has_metadata(); } + UpdateRegistryItemRequest::~UpdateRegistryItemRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.UpdateRegistryItemRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void UpdateRegistryItemRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.item_id_.Destroy(); - _impl_.description_.Destroy(); - _impl_.url_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + item_id_.Destroy(); + description_.Destroy(); + url_.Destroy(); + if (has_metadata()) { + clear_metadata(); + } +} + +void UpdateRegistryItemRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void UpdateRegistryItemRequest::clear_metadata() { +// @@protoc_insertion_point(one_of_clear_start:viam.app.v1.UpdateRegistryItemRequest) + switch (metadata_case()) { + case kModuleUpdateMetadata: { + if (GetArenaForAllocation() == nullptr) { + delete metadata_.module_update_metadata_; + } + break; + } + case kMlModelUpdateMetadata: { + if (GetArenaForAllocation() == nullptr) { + delete metadata_.ml_model_update_metadata_; + } + break; + } + case kMlTrainingUpdateMetadata: { + if (GetArenaForAllocation() == nullptr) { + delete metadata_.ml_training_update_metadata_; + } + break; + } + case METADATA_NOT_SET: { + break; + } + } + _oneof_case_[0] = METADATA_NOT_SET; } -PROTOBUF_NOINLINE void UpdateRegistryItemRequest::Clear() { + +void UpdateRegistryItemRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.UpdateRegistryItemRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.item_id_.ClearToEmpty(); - _impl_.description_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; + item_id_.ClearToEmpty(); + description_.ClearToEmpty(); + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { - _impl_.url_.ClearNonDefaultToEmpty(); + url_.ClearNonDefaultToEmpty(); } - ::memset(&_impl_.type_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.visibility_) - - reinterpret_cast(&_impl_.type_)) + sizeof(_impl_.visibility_)); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* UpdateRegistryItemRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + ::memset(&type_, 0, static_cast( + reinterpret_cast(&visibility_) - + reinterpret_cast(&type_)) + sizeof(visibility_)); + clear_metadata(); + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* UpdateRegistryItemRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string item_id = 1 [json_name = "itemId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_item_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.UpdateRegistryItemRequest.item_id")); + } else + goto handle_unusual; + continue; + // .viam.app.packages.v1.PackageType type = 2 [json_name = "type"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_type(static_cast<::viam::app::packages::v1::PackageType>(val)); + } else + goto handle_unusual; + continue; + // string description = 3 [json_name = "description"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_description(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.UpdateRegistryItemRequest.description")); + } else + goto handle_unusual; + continue; + // .viam.app.v1.Visibility visibility = 4 [json_name = "visibility"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_visibility(static_cast<::viam::app::v1::Visibility>(val)); + } else + goto handle_unusual; + continue; + // optional string url = 5 [json_name = "url"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + auto str = _internal_mutable_url(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.UpdateRegistryItemRequest.url")); + } else + goto handle_unusual; + continue; + // .viam.app.v1.UpdateModuleMetadata module_update_metadata = 6 [json_name = "moduleUpdateMetadata"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr = ctx->ParseMessage(_internal_mutable_module_update_metadata(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.app.v1.UpdateMLModelMetadata ml_model_update_metadata = 7 [json_name = "mlModelUpdateMetadata"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + ptr = ctx->ParseMessage(_internal_mutable_ml_model_update_metadata(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.app.v1.UpdateMLTrainingMetadata ml_training_update_metadata = 8 [json_name = "mlTrainingUpdateMetadata"]; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { + ptr = ctx->ParseMessage(_internal_mutable_ml_training_update_metadata(), 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: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 5, 0, 67, 2> UpdateRegistryItemRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(UpdateRegistryItemRequest, _impl_._has_bits_), - 0, // no _extensions_ - 5, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967264, // skipmap - offsetof(decltype(_table_), field_entries), - 5, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_UpdateRegistryItemRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string item_id = 1 [json_name = "itemId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(UpdateRegistryItemRequest, _impl_.item_id_)}}, - // .viam.app.packages.v1.PackageType type = 2 [json_name = "type"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(UpdateRegistryItemRequest, _impl_.type_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(UpdateRegistryItemRequest, _impl_.type_)}}, - // string description = 3 [json_name = "description"]; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(UpdateRegistryItemRequest, _impl_.description_)}}, - // .viam.app.v1.Visibility visibility = 4 [json_name = "visibility"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(UpdateRegistryItemRequest, _impl_.visibility_), 63>(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(UpdateRegistryItemRequest, _impl_.visibility_)}}, - // optional string url = 5 [json_name = "url"]; - {::_pbi::TcParser::FastUS1, - {42, 0, 0, PROTOBUF_FIELD_OFFSET(UpdateRegistryItemRequest, _impl_.url_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string item_id = 1 [json_name = "itemId"]; - {PROTOBUF_FIELD_OFFSET(UpdateRegistryItemRequest, _impl_.item_id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .viam.app.packages.v1.PackageType type = 2 [json_name = "type"]; - {PROTOBUF_FIELD_OFFSET(UpdateRegistryItemRequest, _impl_.type_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // string description = 3 [json_name = "description"]; - {PROTOBUF_FIELD_OFFSET(UpdateRegistryItemRequest, _impl_.description_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .viam.app.v1.Visibility visibility = 4 [json_name = "visibility"]; - {PROTOBUF_FIELD_OFFSET(UpdateRegistryItemRequest, _impl_.visibility_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // optional string url = 5 [json_name = "url"]; - {PROTOBUF_FIELD_OFFSET(UpdateRegistryItemRequest, _impl_.url_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\45\7\0\13\0\3\0\0" - "viam.app.v1.UpdateRegistryItemRequest" - "item_id" - "description" - "url" - }}, -}; - -::uint8_t* UpdateRegistryItemRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* UpdateRegistryItemRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.UpdateRegistryItemRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string item_id = 1 [json_name = "itemId"]; if (!this->_internal_item_id().empty()) { - const std::string& _s = this->_internal_item_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.UpdateRegistryItemRequest.item_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_item_id().data(), static_cast(this->_internal_item_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.UpdateRegistryItemRequest.item_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_item_id(), target); } // .viam.app.packages.v1.PackageType type = 2 [json_name = "type"]; if (this->_internal_type() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 2, this->_internal_type(), target); + 2, this->_internal_type(), target); } // string description = 3 [json_name = "description"]; if (!this->_internal_description().empty()) { - const std::string& _s = this->_internal_description(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.UpdateRegistryItemRequest.description"); - target = stream->WriteStringMaybeAliased(3, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_description().data(), static_cast(this->_internal_description().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.UpdateRegistryItemRequest.description"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_description(), target); } // .viam.app.v1.Visibility visibility = 4 [json_name = "visibility"]; if (this->_internal_visibility() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 4, this->_internal_visibility(), target); + 4, this->_internal_visibility(), target); } - cached_has_bits = _impl_._has_bits_[0]; // optional string url = 5 [json_name = "url"]; - if (cached_has_bits & 0x00000001u) { - const std::string& _s = this->_internal_url(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.UpdateRegistryItemRequest.url"); - target = stream->WriteStringMaybeAliased(5, _s, target); + if (_internal_has_url()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_url().data(), static_cast(this->_internal_url().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.UpdateRegistryItemRequest.url"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_url(), target); + } + + // .viam.app.v1.UpdateModuleMetadata module_update_metadata = 6 [json_name = "moduleUpdateMetadata"]; + if (_internal_has_module_update_metadata()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(6, _Internal::module_update_metadata(this), + _Internal::module_update_metadata(this).GetCachedSize(), target, stream); + } + + // .viam.app.v1.UpdateMLModelMetadata ml_model_update_metadata = 7 [json_name = "mlModelUpdateMetadata"]; + if (_internal_has_ml_model_update_metadata()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(7, _Internal::ml_model_update_metadata(this), + _Internal::ml_model_update_metadata(this).GetCachedSize(), target, stream); + } + + // .viam.app.v1.UpdateMLTrainingMetadata ml_training_update_metadata = 8 [json_name = "mlTrainingUpdateMetadata"]; + if (_internal_has_ml_training_update_metadata()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(8, _Internal::ml_training_update_metadata(this), + _Internal::ml_training_update_metadata(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.UpdateRegistryItemRequest) return target; } -::size_t UpdateRegistryItemRequest::ByteSizeLong() const { +size_t UpdateRegistryItemRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.UpdateRegistryItemRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string item_id = 1 [json_name = "itemId"]; if (!this->_internal_item_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_item_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_item_id()); } // string description = 3 [json_name = "description"]; if (!this->_internal_description().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_description()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_description()); } // optional string url = 5 [json_name = "url"]; - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_url()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_url()); } // .viam.app.packages.v1.PackageType type = 2 [json_name = "type"]; if (this->_internal_type() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_type()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_type()); } // .viam.app.v1.Visibility visibility = 4 [json_name = "visibility"]; if (this->_internal_visibility() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_visibility()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_visibility()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + switch (metadata_case()) { + // .viam.app.v1.UpdateModuleMetadata module_update_metadata = 6 [json_name = "moduleUpdateMetadata"]; + case kModuleUpdateMetadata: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *metadata_.module_update_metadata_); + break; + } + // .viam.app.v1.UpdateMLModelMetadata ml_model_update_metadata = 7 [json_name = "mlModelUpdateMetadata"]; + case kMlModelUpdateMetadata: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *metadata_.ml_model_update_metadata_); + break; + } + // .viam.app.v1.UpdateMLTrainingMetadata ml_training_update_metadata = 8 [json_name = "mlTrainingUpdateMetadata"]; + case kMlTrainingUpdateMetadata: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *metadata_.ml_training_update_metadata_); + break; + } + case METADATA_NOT_SET: { + break; + } + } + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData UpdateRegistryItemRequest::_class_data_ = { - UpdateRegistryItemRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UpdateRegistryItemRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + UpdateRegistryItemRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* UpdateRegistryItemRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UpdateRegistryItemRequest::GetClassData() const { return &_class_data_; } + +void UpdateRegistryItemRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void UpdateRegistryItemRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.UpdateRegistryItemRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void UpdateRegistryItemRequest::MergeFrom(const UpdateRegistryItemRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.UpdateRegistryItemRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_item_id().empty()) { - _this->_internal_set_item_id(from._internal_item_id()); + _internal_set_item_id(from._internal_item_id()); } if (!from._internal_description().empty()) { - _this->_internal_set_description(from._internal_description()); + _internal_set_description(from._internal_description()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_set_url(from._internal_url()); + if (from._internal_has_url()) { + _internal_set_url(from._internal_url()); } if (from._internal_type() != 0) { - _this->_internal_set_type(from._internal_type()); + _internal_set_type(from._internal_type()); } if (from._internal_visibility() != 0) { - _this->_internal_set_visibility(from._internal_visibility()); + _internal_set_visibility(from._internal_visibility()); + } + switch (from.metadata_case()) { + case kModuleUpdateMetadata: { + _internal_mutable_module_update_metadata()->::viam::app::v1::UpdateModuleMetadata::MergeFrom(from._internal_module_update_metadata()); + break; + } + case kMlModelUpdateMetadata: { + _internal_mutable_ml_model_update_metadata()->::viam::app::v1::UpdateMLModelMetadata::MergeFrom(from._internal_ml_model_update_metadata()); + break; + } + case kMlTrainingUpdateMetadata: { + _internal_mutable_ml_training_update_metadata()->::viam::app::v1::UpdateMLTrainingMetadata::MergeFrom(from._internal_ml_training_update_metadata()); + break; + } + case METADATA_NOT_SET: { + break; + } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void UpdateRegistryItemRequest::CopyFrom(const UpdateRegistryItemRequest& from) { @@ -40206,54 +41180,58 @@ void UpdateRegistryItemRequest::CopyFrom(const UpdateRegistryItemRequest& from) MergeFrom(from); } -PROTOBUF_NOINLINE bool UpdateRegistryItemRequest::IsInitialized() const { +bool UpdateRegistryItemRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* UpdateRegistryItemRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void UpdateRegistryItemRequest::InternalSwap(UpdateRegistryItemRequest* PROTOBUF_RESTRICT other) { +void UpdateRegistryItemRequest::InternalSwap(UpdateRegistryItemRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.item_id_, &other->_impl_.item_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.description_, &other->_impl_.description_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.url_, &other->_impl_.url_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(UpdateRegistryItemRequest, _impl_.visibility_) - + sizeof(UpdateRegistryItemRequest::_impl_.visibility_) - - PROTOBUF_FIELD_OFFSET(UpdateRegistryItemRequest, _impl_.type_)>( - reinterpret_cast(&_impl_.type_), - reinterpret_cast(&other->_impl_.type_)); -} - -::google::protobuf::Metadata UpdateRegistryItemRequest::GetMetadata() const { + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &item_id_, lhs_arena, + &other->item_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &description_, lhs_arena, + &other->description_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &url_, lhs_arena, + &other->url_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(UpdateRegistryItemRequest, visibility_) + + sizeof(UpdateRegistryItemRequest::visibility_) + - PROTOBUF_FIELD_OFFSET(UpdateRegistryItemRequest, type_)>( + reinterpret_cast(&type_), + reinterpret_cast(&other->type_)); + swap(metadata_, other->metadata_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::PROTOBUF_NAMESPACE_ID::Metadata UpdateRegistryItemRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[152]); + file_level_metadata_app_2fv1_2fapp_2eproto[153]); } + // =================================================================== class UpdateRegistryItemResponse::_Internal { public: }; -UpdateRegistryItemResponse::UpdateRegistryItemResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +UpdateRegistryItemResponse::UpdateRegistryItemResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.app.v1.UpdateRegistryItemResponse) } -UpdateRegistryItemResponse::UpdateRegistryItemResponse( - ::google::protobuf::Arena* arena, - const UpdateRegistryItemResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - UpdateRegistryItemResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +UpdateRegistryItemResponse::UpdateRegistryItemResponse(const UpdateRegistryItemResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.app.v1.UpdateRegistryItemResponse) } @@ -40261,22 +41239,29 @@ UpdateRegistryItemResponse::UpdateRegistryItemResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UpdateRegistryItemResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UpdateRegistryItemResponse::GetClassData() const { return &_class_data_; } + + + -::google::protobuf::Metadata UpdateRegistryItemResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata UpdateRegistryItemResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[153]); + file_level_metadata_app_2fv1_2fapp_2eproto[154]); } + // =================================================================== class ListRegistryItemsRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ListRegistryItemsRequest, _impl_._has_bits_); + using HasBits = decltype(std::declval()._has_bits_); static void set_has_organization_id(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -40286,401 +41271,504 @@ class ListRegistryItemsRequest::_Internal { static void set_has_page_token(HasBits* has_bits) { (*has_bits)[0] |= 4u; } + static void set_has_include_markdown_documentation(HasBits* has_bits) { + (*has_bits)[0] |= 8u; + } }; -ListRegistryItemsRequest::ListRegistryItemsRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ListRegistryItemsRequest::ListRegistryItemsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + types_(arena), + visibilities_(arena), + platforms_(arena), + statuses_(arena), + public_namespaces_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.v1.ListRegistryItemsRequest) } -inline PROTOBUF_NDEBUG_INLINE ListRegistryItemsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - types_{visibility, arena, from.types_}, - _types_cached_byte_size_{0}, - visibilities_{visibility, arena, from.visibilities_}, - _visibilities_cached_byte_size_{0}, - platforms_{visibility, arena, from.platforms_}, - statuses_{visibility, arena, from.statuses_}, - _statuses_cached_byte_size_{0}, - public_namespaces_{visibility, arena, from.public_namespaces_}, - organization_id_(arena, from.organization_id_), - search_term_(arena, from.search_term_), - page_token_(arena, from.page_token_) {} - -ListRegistryItemsRequest::ListRegistryItemsRequest( - ::google::protobuf::Arena* arena, - const ListRegistryItemsRequest& from) - : ::google::protobuf::Message(arena) { - ListRegistryItemsRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +ListRegistryItemsRequest::ListRegistryItemsRequest(const ListRegistryItemsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_), + types_(from.types_), + visibilities_(from.visibilities_), + platforms_(from.platforms_), + statuses_(from.statuses_), + public_namespaces_(from.public_namespaces_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + organization_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (from._internal_has_organization_id()) { + organization_id_.Set(from._internal_organization_id(), + GetArenaForAllocation()); + } + search_term_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + search_term_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (from._internal_has_search_term()) { + search_term_.Set(from._internal_search_term(), + GetArenaForAllocation()); + } + page_token_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + page_token_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (from._internal_has_page_token()) { + page_token_.Set(from._internal_page_token(), + GetArenaForAllocation()); + } + include_markdown_documentation_ = from.include_markdown_documentation_; // @@protoc_insertion_point(copy_constructor:viam.app.v1.ListRegistryItemsRequest) } -inline PROTOBUF_NDEBUG_INLINE ListRegistryItemsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - types_{visibility, arena}, - _types_cached_byte_size_{0}, - visibilities_{visibility, arena}, - _visibilities_cached_byte_size_{0}, - platforms_{visibility, arena}, - statuses_{visibility, arena}, - _statuses_cached_byte_size_{0}, - public_namespaces_{visibility, arena}, - organization_id_(arena), - search_term_(arena), - page_token_(arena) {} - -inline void ListRegistryItemsRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); + +inline void ListRegistryItemsRequest::SharedCtor() { +organization_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +search_term_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + search_term_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +page_token_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + page_token_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +include_markdown_documentation_ = false; } + ListRegistryItemsRequest::~ListRegistryItemsRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.ListRegistryItemsRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ListRegistryItemsRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.organization_id_.Destroy(); - _impl_.search_term_.Destroy(); - _impl_.page_token_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + organization_id_.Destroy(); + search_term_.Destroy(); + page_token_.Destroy(); +} + +void ListRegistryItemsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void ListRegistryItemsRequest::Clear() { +void ListRegistryItemsRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.ListRegistryItemsRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.types_.Clear(); - _impl_.visibilities_.Clear(); - _impl_.platforms_.Clear(); - _impl_.statuses_.Clear(); - _impl_.public_namespaces_.Clear(); - cached_has_bits = _impl_._has_bits_[0]; + types_.Clear(); + visibilities_.Clear(); + platforms_.Clear(); + statuses_.Clear(); + public_namespaces_.Clear(); + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { - _impl_.organization_id_.ClearNonDefaultToEmpty(); + organization_id_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { - _impl_.search_term_.ClearNonDefaultToEmpty(); + search_term_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { - _impl_.page_token_.ClearNonDefaultToEmpty(); + page_token_.ClearNonDefaultToEmpty(); } } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ListRegistryItemsRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + include_markdown_documentation_ = false; + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListRegistryItemsRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // optional string organization_id = 1 [json_name = "organizationId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_organization_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ListRegistryItemsRequest.organization_id")); + } else + goto handle_unusual; + continue; + // repeated .viam.app.packages.v1.PackageType types = 2 [json_name = "types"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_types(), ptr, ctx); + CHK_(ptr); + } else if (static_cast(tag) == 16) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_add_types(static_cast<::viam::app::packages::v1::PackageType>(val)); + } else + goto handle_unusual; + continue; + // repeated .viam.app.v1.Visibility visibilities = 3 [json_name = "visibilities"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_visibilities(), ptr, ctx); + CHK_(ptr); + } else if (static_cast(tag) == 24) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_add_visibilities(static_cast<::viam::app::v1::Visibility>(val)); + } else + goto handle_unusual; + continue; + // repeated string platforms = 4 [json_name = "platforms"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_platforms(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ListRegistryItemsRequest.platforms")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr)); + } else + goto handle_unusual; + continue; + // repeated .viam.app.v1.RegistryItemStatus statuses = 5 [json_name = "statuses"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_statuses(), ptr, ctx); + CHK_(ptr); + } else if (static_cast(tag) == 40) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_add_statuses(static_cast<::viam::app::v1::RegistryItemStatus>(val)); + } else + goto handle_unusual; + continue; + // optional string search_term = 6 [json_name = "searchTerm"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + auto str = _internal_mutable_search_term(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ListRegistryItemsRequest.search_term")); + } else + goto handle_unusual; + continue; + // optional string page_token = 7 [json_name = "pageToken"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + auto str = _internal_mutable_page_token(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ListRegistryItemsRequest.page_token")); + } else + goto handle_unusual; + continue; + // repeated string public_namespaces = 8 [json_name = "publicNamespaces"]; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_public_namespaces(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ListRegistryItemsRequest.public_namespaces")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<66>(ptr)); + } else + goto handle_unusual; + continue; + // optional bool include_markdown_documentation = 9 [json_name = "includeMarkdownDocumentation"]; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 72)) { + _Internal::set_has_include_markdown_documentation(&has_bits); + include_markdown_documentation_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 8, 0, 115, 2> ListRegistryItemsRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ListRegistryItemsRequest, _impl_._has_bits_), - 0, // no _extensions_ - 8, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967040, // skipmap - offsetof(decltype(_table_), field_entries), - 8, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_ListRegistryItemsRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated string public_namespaces = 8 [json_name = "publicNamespaces"]; - {::_pbi::TcParser::FastUR1, - {66, 63, 0, PROTOBUF_FIELD_OFFSET(ListRegistryItemsRequest, _impl_.public_namespaces_)}}, - // optional string organization_id = 1 [json_name = "organizationId"]; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(ListRegistryItemsRequest, _impl_.organization_id_)}}, - // repeated .viam.app.packages.v1.PackageType types = 2 [json_name = "types"]; - {::_pbi::TcParser::FastV32P1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(ListRegistryItemsRequest, _impl_.types_)}}, - // repeated .viam.app.v1.Visibility visibilities = 3 [json_name = "visibilities"]; - {::_pbi::TcParser::FastV32P1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(ListRegistryItemsRequest, _impl_.visibilities_)}}, - // repeated string platforms = 4 [json_name = "platforms"]; - {::_pbi::TcParser::FastUR1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(ListRegistryItemsRequest, _impl_.platforms_)}}, - // repeated .viam.app.v1.RegistryItemStatus statuses = 5 [json_name = "statuses"]; - {::_pbi::TcParser::FastV32P1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(ListRegistryItemsRequest, _impl_.statuses_)}}, - // optional string search_term = 6 [json_name = "searchTerm"]; - {::_pbi::TcParser::FastUS1, - {50, 1, 0, PROTOBUF_FIELD_OFFSET(ListRegistryItemsRequest, _impl_.search_term_)}}, - // optional string page_token = 7 [json_name = "pageToken"]; - {::_pbi::TcParser::FastUS1, - {58, 2, 0, PROTOBUF_FIELD_OFFSET(ListRegistryItemsRequest, _impl_.page_token_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // optional string organization_id = 1 [json_name = "organizationId"]; - {PROTOBUF_FIELD_OFFSET(ListRegistryItemsRequest, _impl_.organization_id_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated .viam.app.packages.v1.PackageType types = 2 [json_name = "types"]; - {PROTOBUF_FIELD_OFFSET(ListRegistryItemsRequest, _impl_.types_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kPackedOpenEnum)}, - // repeated .viam.app.v1.Visibility visibilities = 3 [json_name = "visibilities"]; - {PROTOBUF_FIELD_OFFSET(ListRegistryItemsRequest, _impl_.visibilities_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kPackedOpenEnum)}, - // repeated string platforms = 4 [json_name = "platforms"]; - {PROTOBUF_FIELD_OFFSET(ListRegistryItemsRequest, _impl_.platforms_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - // repeated .viam.app.v1.RegistryItemStatus statuses = 5 [json_name = "statuses"]; - {PROTOBUF_FIELD_OFFSET(ListRegistryItemsRequest, _impl_.statuses_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kPackedOpenEnum)}, - // optional string search_term = 6 [json_name = "searchTerm"]; - {PROTOBUF_FIELD_OFFSET(ListRegistryItemsRequest, _impl_.search_term_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // optional string page_token = 7 [json_name = "pageToken"]; - {PROTOBUF_FIELD_OFFSET(ListRegistryItemsRequest, _impl_.page_token_), _Internal::kHasBitsOffset + 2, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated string public_namespaces = 8 [json_name = "publicNamespaces"]; - {PROTOBUF_FIELD_OFFSET(ListRegistryItemsRequest, _impl_.public_namespaces_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - }}, - // no aux_entries - {{ - "\44\17\0\0\11\0\13\12\21\0\0\0\0\0\0\0" - "viam.app.v1.ListRegistryItemsRequest" - "organization_id" - "platforms" - "search_term" - "page_token" - "public_namespaces" - }}, -}; - -::uint8_t* ListRegistryItemsRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ListRegistryItemsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ListRegistryItemsRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // optional string organization_id = 1 [json_name = "organizationId"]; - if (cached_has_bits & 0x00000001u) { - const std::string& _s = this->_internal_organization_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ListRegistryItemsRequest.organization_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + if (_internal_has_organization_id()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_organization_id().data(), static_cast(this->_internal_organization_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ListRegistryItemsRequest.organization_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_organization_id(), target); } // repeated .viam.app.packages.v1.PackageType types = 2 [json_name = "types"]; { - std::size_t byte_size = _impl_._types_cached_byte_size_.Get(); + int byte_size = _types_cached_byte_size_.load(std::memory_order_relaxed); if (byte_size > 0) { - target = stream->WriteEnumPacked(2, _internal_types(), - byte_size, target); + target = stream->WriteEnumPacked( + 2, types_, byte_size, target); } } // repeated .viam.app.v1.Visibility visibilities = 3 [json_name = "visibilities"]; { - std::size_t byte_size = _impl_._visibilities_cached_byte_size_.Get(); + int byte_size = _visibilities_cached_byte_size_.load(std::memory_order_relaxed); if (byte_size > 0) { - target = stream->WriteEnumPacked(3, _internal_visibilities(), - byte_size, target); + target = stream->WriteEnumPacked( + 3, visibilities_, byte_size, target); } } // repeated string platforms = 4 [json_name = "platforms"]; - for (int i = 0, n = this->_internal_platforms_size(); i < n; ++i) { - const auto& s = this->_internal_platforms().Get(i); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ListRegistryItemsRequest.platforms"); + for (int i = 0, n = this->_internal_platforms_size(); i < n; i++) { + const auto& s = this->_internal_platforms(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ListRegistryItemsRequest.platforms"); target = stream->WriteString(4, s, target); } // repeated .viam.app.v1.RegistryItemStatus statuses = 5 [json_name = "statuses"]; { - std::size_t byte_size = _impl_._statuses_cached_byte_size_.Get(); + int byte_size = _statuses_cached_byte_size_.load(std::memory_order_relaxed); if (byte_size > 0) { - target = stream->WriteEnumPacked(5, _internal_statuses(), - byte_size, target); + target = stream->WriteEnumPacked( + 5, statuses_, byte_size, target); } } // optional string search_term = 6 [json_name = "searchTerm"]; - if (cached_has_bits & 0x00000002u) { - const std::string& _s = this->_internal_search_term(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ListRegistryItemsRequest.search_term"); - target = stream->WriteStringMaybeAliased(6, _s, target); + if (_internal_has_search_term()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_search_term().data(), static_cast(this->_internal_search_term().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ListRegistryItemsRequest.search_term"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_search_term(), target); } // optional string page_token = 7 [json_name = "pageToken"]; - if (cached_has_bits & 0x00000004u) { - const std::string& _s = this->_internal_page_token(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ListRegistryItemsRequest.page_token"); - target = stream->WriteStringMaybeAliased(7, _s, target); + if (_internal_has_page_token()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_page_token().data(), static_cast(this->_internal_page_token().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ListRegistryItemsRequest.page_token"); + target = stream->WriteStringMaybeAliased( + 7, this->_internal_page_token(), target); } // repeated string public_namespaces = 8 [json_name = "publicNamespaces"]; - for (int i = 0, n = this->_internal_public_namespaces_size(); i < n; ++i) { - const auto& s = this->_internal_public_namespaces().Get(i); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ListRegistryItemsRequest.public_namespaces"); + for (int i = 0, n = this->_internal_public_namespaces_size(); i < n; i++) { + const auto& s = this->_internal_public_namespaces(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ListRegistryItemsRequest.public_namespaces"); target = stream->WriteString(8, s, target); } + // optional bool include_markdown_documentation = 9 [json_name = "includeMarkdownDocumentation"]; + if (_internal_has_include_markdown_documentation()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(9, this->_internal_include_markdown_documentation(), target); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.ListRegistryItemsRequest) return target; } -::size_t ListRegistryItemsRequest::ByteSizeLong() const { +size_t ListRegistryItemsRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ListRegistryItemsRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.app.packages.v1.PackageType types = 2 [json_name = "types"]; { - std::size_t data_size = 0; - auto count = static_cast(this->_internal_types_size()); - - for (std::size_t i = 0; i < count; ++i) { + size_t data_size = 0; + unsigned int count = static_cast(this->_internal_types_size());for (unsigned int i = 0; i < count; i++) { data_size += ::_pbi::WireFormatLite::EnumSize( - this->_internal_types().Get(static_cast(i))); + this->_internal_types(static_cast(i))); } - total_size += data_size; if (data_size > 0) { - total_size += 1; - total_size += ::_pbi::WireFormatLite::Int32Size( - static_cast(data_size)); + total_size += 1 + + ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); } - _impl_._types_cached_byte_size_.Set(::_pbi::ToCachedSize(data_size)); + int cached_size = ::_pbi::ToCachedSize(data_size); + _types_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); + total_size += data_size; } + // repeated .viam.app.v1.Visibility visibilities = 3 [json_name = "visibilities"]; { - std::size_t data_size = 0; - auto count = static_cast(this->_internal_visibilities_size()); - - for (std::size_t i = 0; i < count; ++i) { + size_t data_size = 0; + unsigned int count = static_cast(this->_internal_visibilities_size());for (unsigned int i = 0; i < count; i++) { data_size += ::_pbi::WireFormatLite::EnumSize( - this->_internal_visibilities().Get(static_cast(i))); + this->_internal_visibilities(static_cast(i))); } - total_size += data_size; if (data_size > 0) { - total_size += 1; - total_size += ::_pbi::WireFormatLite::Int32Size( - static_cast(data_size)); + total_size += 1 + + ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); } - _impl_._visibilities_cached_byte_size_.Set(::_pbi::ToCachedSize(data_size)); + int cached_size = ::_pbi::ToCachedSize(data_size); + _visibilities_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); + total_size += data_size; } + // repeated string platforms = 4 [json_name = "platforms"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_platforms().size()); - for (int i = 0, n = _internal_platforms().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - _internal_platforms().Get(i)); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(platforms_.size()); + for (int i = 0, n = platforms_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + platforms_.Get(i)); } + // repeated .viam.app.v1.RegistryItemStatus statuses = 5 [json_name = "statuses"]; { - std::size_t data_size = 0; - auto count = static_cast(this->_internal_statuses_size()); - - for (std::size_t i = 0; i < count; ++i) { + size_t data_size = 0; + unsigned int count = static_cast(this->_internal_statuses_size());for (unsigned int i = 0; i < count; i++) { data_size += ::_pbi::WireFormatLite::EnumSize( - this->_internal_statuses().Get(static_cast(i))); + this->_internal_statuses(static_cast(i))); } - total_size += data_size; if (data_size > 0) { - total_size += 1; - total_size += ::_pbi::WireFormatLite::Int32Size( - static_cast(data_size)); + total_size += 1 + + ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); } - _impl_._statuses_cached_byte_size_.Set(::_pbi::ToCachedSize(data_size)); + int cached_size = ::_pbi::ToCachedSize(data_size); + _statuses_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); + total_size += data_size; } + // repeated string public_namespaces = 8 [json_name = "publicNamespaces"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_public_namespaces().size()); - for (int i = 0, n = _internal_public_namespaces().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - _internal_public_namespaces().Get(i)); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(public_namespaces_.size()); + for (int i = 0, n = public_namespaces_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + public_namespaces_.Get(i)); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x0000000fu) { // optional string organization_id = 1 [json_name = "organizationId"]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_organization_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_organization_id()); } // optional string search_term = 6 [json_name = "searchTerm"]; if (cached_has_bits & 0x00000002u) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_search_term()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_search_term()); } // optional string page_token = 7 [json_name = "pageToken"]; if (cached_has_bits & 0x00000004u) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_page_token()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_page_token()); + } + + // optional bool include_markdown_documentation = 9 [json_name = "includeMarkdownDocumentation"]; + if (cached_has_bits & 0x00000008u) { + total_size += 1 + 1; } } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ListRegistryItemsRequest::_class_data_ = { - ListRegistryItemsRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListRegistryItemsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ListRegistryItemsRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* ListRegistryItemsRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListRegistryItemsRequest::GetClassData() const { return &_class_data_; } + +void ListRegistryItemsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ListRegistryItemsRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ListRegistryItemsRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ListRegistryItemsRequest::MergeFrom(const ListRegistryItemsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ListRegistryItemsRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_types()->MergeFrom(from._internal_types()); - _this->_internal_mutable_visibilities()->MergeFrom(from._internal_visibilities()); - _this->_internal_mutable_platforms()->MergeFrom(from._internal_platforms()); - _this->_internal_mutable_statuses()->MergeFrom(from._internal_statuses()); - _this->_internal_mutable_public_namespaces()->MergeFrom(from._internal_public_namespaces()); - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { + types_.MergeFrom(from.types_); + visibilities_.MergeFrom(from.visibilities_); + platforms_.MergeFrom(from.platforms_); + statuses_.MergeFrom(from.statuses_); + public_namespaces_.MergeFrom(from.public_namespaces_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x0000000fu) { if (cached_has_bits & 0x00000001u) { - _this->_internal_set_organization_id(from._internal_organization_id()); + _internal_set_organization_id(from._internal_organization_id()); } if (cached_has_bits & 0x00000002u) { - _this->_internal_set_search_term(from._internal_search_term()); + _internal_set_search_term(from._internal_search_term()); } if (cached_has_bits & 0x00000004u) { - _this->_internal_set_page_token(from._internal_page_token()); + _internal_set_page_token(from._internal_page_token()); + } + if (cached_has_bits & 0x00000008u) { + include_markdown_documentation_ = from.include_markdown_documentation_; } + _has_bits_[0] |= cached_has_bits; } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ListRegistryItemsRequest::CopyFrom(const ListRegistryItemsRequest& from) { @@ -40690,190 +41778,195 @@ void ListRegistryItemsRequest::CopyFrom(const ListRegistryItemsRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ListRegistryItemsRequest::IsInitialized() const { +bool ListRegistryItemsRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* ListRegistryItemsRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ListRegistryItemsRequest::InternalSwap(ListRegistryItemsRequest* PROTOBUF_RESTRICT other) { +void ListRegistryItemsRequest::InternalSwap(ListRegistryItemsRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.types_.InternalSwap(&other->_impl_.types_); - _impl_.visibilities_.InternalSwap(&other->_impl_.visibilities_); - _impl_.platforms_.InternalSwap(&other->_impl_.platforms_); - _impl_.statuses_.InternalSwap(&other->_impl_.statuses_); - _impl_.public_namespaces_.InternalSwap(&other->_impl_.public_namespaces_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.organization_id_, &other->_impl_.organization_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.search_term_, &other->_impl_.search_term_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.page_token_, &other->_impl_.page_token_, arena); -} - -::google::protobuf::Metadata ListRegistryItemsRequest::GetMetadata() const { + swap(_has_bits_[0], other->_has_bits_[0]); + types_.InternalSwap(&other->types_); + visibilities_.InternalSwap(&other->visibilities_); + platforms_.InternalSwap(&other->platforms_); + statuses_.InternalSwap(&other->statuses_); + public_namespaces_.InternalSwap(&other->public_namespaces_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &organization_id_, lhs_arena, + &other->organization_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &search_term_, lhs_arena, + &other->search_term_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &page_token_, lhs_arena, + &other->page_token_, rhs_arena + ); + swap(include_markdown_documentation_, other->include_markdown_documentation_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ListRegistryItemsRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[154]); + file_level_metadata_app_2fv1_2fapp_2eproto[155]); } + // =================================================================== class ListRegistryItemsResponse::_Internal { public: }; -ListRegistryItemsResponse::ListRegistryItemsResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ListRegistryItemsResponse::ListRegistryItemsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + items_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.v1.ListRegistryItemsResponse) } -inline PROTOBUF_NDEBUG_INLINE ListRegistryItemsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : items_{visibility, arena, from.items_}, - _cached_size_{0} {} - -ListRegistryItemsResponse::ListRegistryItemsResponse( - ::google::protobuf::Arena* arena, - const ListRegistryItemsResponse& from) - : ::google::protobuf::Message(arena) { - ListRegistryItemsResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +ListRegistryItemsResponse::ListRegistryItemsResponse(const ListRegistryItemsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + items_(from.items_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.app.v1.ListRegistryItemsResponse) } -inline PROTOBUF_NDEBUG_INLINE ListRegistryItemsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : items_{visibility, arena}, - _cached_size_{0} {} -inline void ListRegistryItemsResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void ListRegistryItemsResponse::SharedCtor() { } + ListRegistryItemsResponse::~ListRegistryItemsResponse() { // @@protoc_insertion_point(destructor:viam.app.v1.ListRegistryItemsResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ListRegistryItemsResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void ListRegistryItemsResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.ListRegistryItemsResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.items_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void ListRegistryItemsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* ListRegistryItemsResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void ListRegistryItemsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.ListRegistryItemsResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + items_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListRegistryItemsResponse::_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) { + // repeated .viam.app.v1.RegistryItem items = 1 [json_name = "items"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_items(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ListRegistryItemsResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ListRegistryItemsResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.app.v1.RegistryItem items = 1 [json_name = "items"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ListRegistryItemsResponse, _impl_.items_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.app.v1.RegistryItem items = 1 [json_name = "items"]; - {PROTOBUF_FIELD_OFFSET(ListRegistryItemsResponse, _impl_.items_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::RegistryItem>()}, - }}, {{ - }}, -}; - -::uint8_t* ListRegistryItemsResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ListRegistryItemsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ListRegistryItemsResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .viam.app.v1.RegistryItem items = 1 [json_name = "items"]; for (unsigned i = 0, n = static_cast(this->_internal_items_size()); i < n; i++) { - const auto& repfield = this->_internal_items().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_items(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.ListRegistryItemsResponse) return target; } -::size_t ListRegistryItemsResponse::ByteSizeLong() const { +size_t ListRegistryItemsResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ListRegistryItemsResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.app.v1.RegistryItem items = 1 [json_name = "items"]; total_size += 1UL * this->_internal_items_size(); - for (const auto& msg : this->_internal_items()) { + for (const auto& msg : this->items_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ListRegistryItemsResponse::_class_data_ = { - ListRegistryItemsResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListRegistryItemsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ListRegistryItemsResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* ListRegistryItemsResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListRegistryItemsResponse::GetClassData() const { return &_class_data_; } + +void ListRegistryItemsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ListRegistryItemsResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ListRegistryItemsResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ListRegistryItemsResponse::MergeFrom(const ListRegistryItemsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ListRegistryItemsResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_items()->MergeFrom( - from._internal_items()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + items_.MergeFrom(from.items_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ListRegistryItemsResponse::CopyFrom(const ListRegistryItemsResponse& from) { @@ -40883,185 +41976,187 @@ void ListRegistryItemsResponse::CopyFrom(const ListRegistryItemsResponse& from) MergeFrom(from); } -PROTOBUF_NOINLINE bool ListRegistryItemsResponse::IsInitialized() const { +bool ListRegistryItemsResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* ListRegistryItemsResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ListRegistryItemsResponse::InternalSwap(ListRegistryItemsResponse* PROTOBUF_RESTRICT other) { +void ListRegistryItemsResponse::InternalSwap(ListRegistryItemsResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.items_.InternalSwap(&other->_impl_.items_); + items_.InternalSwap(&other->items_); } -::google::protobuf::Metadata ListRegistryItemsResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ListRegistryItemsResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[155]); + file_level_metadata_app_2fv1_2fapp_2eproto[156]); } + // =================================================================== class DeleteRegistryItemRequest::_Internal { public: }; -DeleteRegistryItemRequest::DeleteRegistryItemRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +DeleteRegistryItemRequest::DeleteRegistryItemRequest(::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.DeleteRegistryItemRequest) } -inline PROTOBUF_NDEBUG_INLINE DeleteRegistryItemRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : item_id_(arena, from.item_id_), - _cached_size_{0} {} - -DeleteRegistryItemRequest::DeleteRegistryItemRequest( - ::google::protobuf::Arena* arena, - const DeleteRegistryItemRequest& from) - : ::google::protobuf::Message(arena) { - DeleteRegistryItemRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +DeleteRegistryItemRequest::DeleteRegistryItemRequest(const DeleteRegistryItemRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + item_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + item_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_item_id().empty()) { + item_id_.Set(from._internal_item_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.DeleteRegistryItemRequest) } -inline PROTOBUF_NDEBUG_INLINE DeleteRegistryItemRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : item_id_(arena), - _cached_size_{0} {} -inline void DeleteRegistryItemRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void DeleteRegistryItemRequest::SharedCtor() { +item_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + item_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + DeleteRegistryItemRequest::~DeleteRegistryItemRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.DeleteRegistryItemRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void DeleteRegistryItemRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.item_id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + item_id_.Destroy(); } -PROTOBUF_NOINLINE void DeleteRegistryItemRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.DeleteRegistryItemRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.item_id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void DeleteRegistryItemRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* DeleteRegistryItemRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void DeleteRegistryItemRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.DeleteRegistryItemRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + item_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DeleteRegistryItemRequest::_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 item_id = 1 [json_name = "itemId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_item_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.DeleteRegistryItemRequest.item_id")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 53, 2> DeleteRegistryItemRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_DeleteRegistryItemRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string item_id = 1 [json_name = "itemId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(DeleteRegistryItemRequest, _impl_.item_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string item_id = 1 [json_name = "itemId"]; - {PROTOBUF_FIELD_OFFSET(DeleteRegistryItemRequest, _impl_.item_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\45\7\0\0\0\0\0\0" - "viam.app.v1.DeleteRegistryItemRequest" - "item_id" - }}, -}; - -::uint8_t* DeleteRegistryItemRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* DeleteRegistryItemRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.DeleteRegistryItemRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string item_id = 1 [json_name = "itemId"]; if (!this->_internal_item_id().empty()) { - const std::string& _s = this->_internal_item_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.DeleteRegistryItemRequest.item_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_item_id().data(), static_cast(this->_internal_item_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.DeleteRegistryItemRequest.item_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_item_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.DeleteRegistryItemRequest) return target; } -::size_t DeleteRegistryItemRequest::ByteSizeLong() const { +size_t DeleteRegistryItemRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.DeleteRegistryItemRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string item_id = 1 [json_name = "itemId"]; if (!this->_internal_item_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_item_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_item_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData DeleteRegistryItemRequest::_class_data_ = { - DeleteRegistryItemRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeleteRegistryItemRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + DeleteRegistryItemRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* DeleteRegistryItemRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeleteRegistryItemRequest::GetClassData() const { return &_class_data_; } + +void DeleteRegistryItemRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void DeleteRegistryItemRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.DeleteRegistryItemRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void DeleteRegistryItemRequest::MergeFrom(const DeleteRegistryItemRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.DeleteRegistryItemRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_item_id().empty()) { - _this->_internal_set_item_id(from._internal_item_id()); + _internal_set_item_id(from._internal_item_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void DeleteRegistryItemRequest::CopyFrom(const DeleteRegistryItemRequest& from) { @@ -41071,45 +42166,41 @@ void DeleteRegistryItemRequest::CopyFrom(const DeleteRegistryItemRequest& from) MergeFrom(from); } -PROTOBUF_NOINLINE bool DeleteRegistryItemRequest::IsInitialized() const { +bool DeleteRegistryItemRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* DeleteRegistryItemRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void DeleteRegistryItemRequest::InternalSwap(DeleteRegistryItemRequest* PROTOBUF_RESTRICT other) { +void DeleteRegistryItemRequest::InternalSwap(DeleteRegistryItemRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.item_id_, &other->_impl_.item_id_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &item_id_, lhs_arena, + &other->item_id_, rhs_arena + ); } -::google::protobuf::Metadata DeleteRegistryItemRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata DeleteRegistryItemRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[156]); + file_level_metadata_app_2fv1_2fapp_2eproto[157]); } + // =================================================================== class DeleteRegistryItemResponse::_Internal { public: }; -DeleteRegistryItemResponse::DeleteRegistryItemResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +DeleteRegistryItemResponse::DeleteRegistryItemResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.app.v1.DeleteRegistryItemResponse) } -DeleteRegistryItemResponse::DeleteRegistryItemResponse( - ::google::protobuf::Arena* arena, - const DeleteRegistryItemResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - DeleteRegistryItemResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +DeleteRegistryItemResponse::DeleteRegistryItemResponse(const DeleteRegistryItemResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.app.v1.DeleteRegistryItemResponse) } @@ -41117,204 +42208,233 @@ DeleteRegistryItemResponse::DeleteRegistryItemResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeleteRegistryItemResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeleteRegistryItemResponse::GetClassData() const { return &_class_data_; } + + + -::google::protobuf::Metadata DeleteRegistryItemResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata DeleteRegistryItemResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[157]); + file_level_metadata_app_2fv1_2fapp_2eproto[158]); } + // =================================================================== class TransferRegistryItemRequest::_Internal { public: }; -TransferRegistryItemRequest::TransferRegistryItemRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +TransferRegistryItemRequest::TransferRegistryItemRequest(::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.TransferRegistryItemRequest) } -inline PROTOBUF_NDEBUG_INLINE TransferRegistryItemRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : item_id_(arena, from.item_id_), - new_public_namespace_(arena, from.new_public_namespace_), - _cached_size_{0} {} - -TransferRegistryItemRequest::TransferRegistryItemRequest( - ::google::protobuf::Arena* arena, - const TransferRegistryItemRequest& from) - : ::google::protobuf::Message(arena) { - TransferRegistryItemRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +TransferRegistryItemRequest::TransferRegistryItemRequest(const TransferRegistryItemRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + item_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + item_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_item_id().empty()) { + item_id_.Set(from._internal_item_id(), + GetArenaForAllocation()); + } + new_public_namespace_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + new_public_namespace_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_new_public_namespace().empty()) { + new_public_namespace_.Set(from._internal_new_public_namespace(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.TransferRegistryItemRequest) } -inline PROTOBUF_NDEBUG_INLINE TransferRegistryItemRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : item_id_(arena), - new_public_namespace_(arena), - _cached_size_{0} {} -inline void TransferRegistryItemRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void TransferRegistryItemRequest::SharedCtor() { +item_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + item_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +new_public_namespace_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + new_public_namespace_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + TransferRegistryItemRequest::~TransferRegistryItemRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.TransferRegistryItemRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void TransferRegistryItemRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.item_id_.Destroy(); - _impl_.new_public_namespace_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + item_id_.Destroy(); + new_public_namespace_.Destroy(); } -PROTOBUF_NOINLINE void TransferRegistryItemRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.TransferRegistryItemRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.item_id_.ClearToEmpty(); - _impl_.new_public_namespace_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void TransferRegistryItemRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* TransferRegistryItemRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void TransferRegistryItemRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.TransferRegistryItemRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + item_id_.ClearToEmpty(); + new_public_namespace_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* TransferRegistryItemRequest::_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 item_id = 1 [json_name = "itemId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_item_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.TransferRegistryItemRequest.item_id")); + } else + goto handle_unusual; + continue; + // string new_public_namespace = 2 [json_name = "newPublicNamespace"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_new_public_namespace(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.TransferRegistryItemRequest.new_public_namespace")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 75, 2> TransferRegistryItemRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_TransferRegistryItemRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string new_public_namespace = 2 [json_name = "newPublicNamespace"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(TransferRegistryItemRequest, _impl_.new_public_namespace_)}}, - // string item_id = 1 [json_name = "itemId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(TransferRegistryItemRequest, _impl_.item_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string item_id = 1 [json_name = "itemId"]; - {PROTOBUF_FIELD_OFFSET(TransferRegistryItemRequest, _impl_.item_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string new_public_namespace = 2 [json_name = "newPublicNamespace"]; - {PROTOBUF_FIELD_OFFSET(TransferRegistryItemRequest, _impl_.new_public_namespace_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\47\7\24\0\0\0\0\0" - "viam.app.v1.TransferRegistryItemRequest" - "item_id" - "new_public_namespace" - }}, -}; - -::uint8_t* TransferRegistryItemRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* TransferRegistryItemRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.TransferRegistryItemRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string item_id = 1 [json_name = "itemId"]; if (!this->_internal_item_id().empty()) { - const std::string& _s = this->_internal_item_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.TransferRegistryItemRequest.item_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_item_id().data(), static_cast(this->_internal_item_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.TransferRegistryItemRequest.item_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_item_id(), target); } // string new_public_namespace = 2 [json_name = "newPublicNamespace"]; if (!this->_internal_new_public_namespace().empty()) { - const std::string& _s = this->_internal_new_public_namespace(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.TransferRegistryItemRequest.new_public_namespace"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_new_public_namespace().data(), static_cast(this->_internal_new_public_namespace().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.TransferRegistryItemRequest.new_public_namespace"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_new_public_namespace(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.TransferRegistryItemRequest) return target; } -::size_t TransferRegistryItemRequest::ByteSizeLong() const { +size_t TransferRegistryItemRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.TransferRegistryItemRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string item_id = 1 [json_name = "itemId"]; if (!this->_internal_item_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_item_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_item_id()); } // string new_public_namespace = 2 [json_name = "newPublicNamespace"]; if (!this->_internal_new_public_namespace().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_new_public_namespace()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_new_public_namespace()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData TransferRegistryItemRequest::_class_data_ = { - TransferRegistryItemRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TransferRegistryItemRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + TransferRegistryItemRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* TransferRegistryItemRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TransferRegistryItemRequest::GetClassData() const { return &_class_data_; } + +void TransferRegistryItemRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void TransferRegistryItemRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.TransferRegistryItemRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void TransferRegistryItemRequest::MergeFrom(const TransferRegistryItemRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.TransferRegistryItemRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_item_id().empty()) { - _this->_internal_set_item_id(from._internal_item_id()); + _internal_set_item_id(from._internal_item_id()); } if (!from._internal_new_public_namespace().empty()) { - _this->_internal_set_new_public_namespace(from._internal_new_public_namespace()); + _internal_set_new_public_namespace(from._internal_new_public_namespace()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void TransferRegistryItemRequest::CopyFrom(const TransferRegistryItemRequest& from) { @@ -41324,46 +42444,45 @@ void TransferRegistryItemRequest::CopyFrom(const TransferRegistryItemRequest& fr MergeFrom(from); } -PROTOBUF_NOINLINE bool TransferRegistryItemRequest::IsInitialized() const { +bool TransferRegistryItemRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* TransferRegistryItemRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void TransferRegistryItemRequest::InternalSwap(TransferRegistryItemRequest* PROTOBUF_RESTRICT other) { +void TransferRegistryItemRequest::InternalSwap(TransferRegistryItemRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.item_id_, &other->_impl_.item_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.new_public_namespace_, &other->_impl_.new_public_namespace_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &item_id_, lhs_arena, + &other->item_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &new_public_namespace_, lhs_arena, + &other->new_public_namespace_, rhs_arena + ); } -::google::protobuf::Metadata TransferRegistryItemRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata TransferRegistryItemRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[158]); + file_level_metadata_app_2fv1_2fapp_2eproto[159]); } + // =================================================================== class TransferRegistryItemResponse::_Internal { public: }; -TransferRegistryItemResponse::TransferRegistryItemResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +TransferRegistryItemResponse::TransferRegistryItemResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.app.v1.TransferRegistryItemResponse) } -TransferRegistryItemResponse::TransferRegistryItemResponse( - ::google::protobuf::Arena* arena, - const TransferRegistryItemResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - TransferRegistryItemResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +TransferRegistryItemResponse::TransferRegistryItemResponse(const TransferRegistryItemResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.app.v1.TransferRegistryItemResponse) } @@ -41371,204 +42490,233 @@ TransferRegistryItemResponse::TransferRegistryItemResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TransferRegistryItemResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TransferRegistryItemResponse::GetClassData() const { return &_class_data_; } + + -::google::protobuf::Metadata TransferRegistryItemResponse::GetMetadata() const { + +::PROTOBUF_NAMESPACE_ID::Metadata TransferRegistryItemResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[159]); + file_level_metadata_app_2fv1_2fapp_2eproto[160]); } + // =================================================================== class CreateModuleRequest::_Internal { public: }; -CreateModuleRequest::CreateModuleRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +CreateModuleRequest::CreateModuleRequest(::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.CreateModuleRequest) } -inline PROTOBUF_NDEBUG_INLINE CreateModuleRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : organization_id_(arena, from.organization_id_), - name_(arena, from.name_), - _cached_size_{0} {} - -CreateModuleRequest::CreateModuleRequest( - ::google::protobuf::Arena* arena, - const CreateModuleRequest& from) - : ::google::protobuf::Message(arena) { - CreateModuleRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +CreateModuleRequest::CreateModuleRequest(const CreateModuleRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + organization_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_organization_id().empty()) { + organization_id_.Set(from._internal_organization_id(), + GetArenaForAllocation()); + } + 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()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.CreateModuleRequest) } -inline PROTOBUF_NDEBUG_INLINE CreateModuleRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : organization_id_(arena), - name_(arena), - _cached_size_{0} {} -inline void CreateModuleRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void CreateModuleRequest::SharedCtor() { +organization_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + CreateModuleRequest::~CreateModuleRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.CreateModuleRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void CreateModuleRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.organization_id_.Destroy(); - _impl_.name_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + organization_id_.Destroy(); + name_.Destroy(); } -PROTOBUF_NOINLINE void CreateModuleRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.CreateModuleRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.organization_id_.ClearToEmpty(); - _impl_.name_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void CreateModuleRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* CreateModuleRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void CreateModuleRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.CreateModuleRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + organization_id_.ClearToEmpty(); + name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CreateModuleRequest::_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 organization_id = 1 [json_name = "organizationId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_organization_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.CreateModuleRequest.organization_id")); + } else + goto handle_unusual; + continue; + // string name = 2 [json_name = "name"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.CreateModuleRequest.name")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 59, 2> CreateModuleRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_CreateModuleRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string name = 2 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(CreateModuleRequest, _impl_.name_)}}, - // string organization_id = 1 [json_name = "organizationId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(CreateModuleRequest, _impl_.organization_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string organization_id = 1 [json_name = "organizationId"]; - {PROTOBUF_FIELD_OFFSET(CreateModuleRequest, _impl_.organization_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string name = 2 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(CreateModuleRequest, _impl_.name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\37\17\4\0\0\0\0\0" - "viam.app.v1.CreateModuleRequest" - "organization_id" - "name" - }}, -}; - -::uint8_t* CreateModuleRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* CreateModuleRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.CreateModuleRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string organization_id = 1 [json_name = "organizationId"]; if (!this->_internal_organization_id().empty()) { - const std::string& _s = this->_internal_organization_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.CreateModuleRequest.organization_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_organization_id().data(), static_cast(this->_internal_organization_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.CreateModuleRequest.organization_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_organization_id(), target); } // string name = 2 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.CreateModuleRequest.name"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.CreateModuleRequest.name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_name(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.CreateModuleRequest) return target; } -::size_t CreateModuleRequest::ByteSizeLong() const { +size_t CreateModuleRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.CreateModuleRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string organization_id = 1 [json_name = "organizationId"]; if (!this->_internal_organization_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_organization_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_organization_id()); } // string name = 2 [json_name = "name"]; if (!this->_internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData CreateModuleRequest::_class_data_ = { - CreateModuleRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CreateModuleRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CreateModuleRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* CreateModuleRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CreateModuleRequest::GetClassData() const { return &_class_data_; } + +void CreateModuleRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void CreateModuleRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.CreateModuleRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void CreateModuleRequest::MergeFrom(const CreateModuleRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.CreateModuleRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_organization_id().empty()) { - _this->_internal_set_organization_id(from._internal_organization_id()); + _internal_set_organization_id(from._internal_organization_id()); } if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CreateModuleRequest::CopyFrom(const CreateModuleRequest& from) { @@ -41578,216 +42726,240 @@ void CreateModuleRequest::CopyFrom(const CreateModuleRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool CreateModuleRequest::IsInitialized() const { +bool CreateModuleRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* CreateModuleRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void CreateModuleRequest::InternalSwap(CreateModuleRequest* PROTOBUF_RESTRICT other) { +void CreateModuleRequest::InternalSwap(CreateModuleRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.organization_id_, &other->_impl_.organization_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &organization_id_, lhs_arena, + &other->organization_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); } -::google::protobuf::Metadata CreateModuleRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata CreateModuleRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[160]); + file_level_metadata_app_2fv1_2fapp_2eproto[161]); } + // =================================================================== class CreateModuleResponse::_Internal { public: }; -CreateModuleResponse::CreateModuleResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +CreateModuleResponse::CreateModuleResponse(::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.CreateModuleResponse) } -inline PROTOBUF_NDEBUG_INLINE CreateModuleResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : module_id_(arena, from.module_id_), - url_(arena, from.url_), - _cached_size_{0} {} - -CreateModuleResponse::CreateModuleResponse( - ::google::protobuf::Arena* arena, - const CreateModuleResponse& from) - : ::google::protobuf::Message(arena) { - CreateModuleResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +CreateModuleResponse::CreateModuleResponse(const CreateModuleResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + 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()); + } + url_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + url_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_url().empty()) { + url_.Set(from._internal_url(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.CreateModuleResponse) } -inline PROTOBUF_NDEBUG_INLINE CreateModuleResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : module_id_(arena), - url_(arena), - _cached_size_{0} {} -inline void CreateModuleResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void CreateModuleResponse::SharedCtor() { +module_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + module_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +url_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + url_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + CreateModuleResponse::~CreateModuleResponse() { // @@protoc_insertion_point(destructor:viam.app.v1.CreateModuleResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void CreateModuleResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.module_id_.Destroy(); - _impl_.url_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + module_id_.Destroy(); + url_.Destroy(); } -PROTOBUF_NOINLINE void CreateModuleResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.CreateModuleResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.module_id_.ClearToEmpty(); - _impl_.url_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void CreateModuleResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* CreateModuleResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void CreateModuleResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.CreateModuleResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + module_id_.ClearToEmpty(); + url_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CreateModuleResponse::_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 module_id = 1 [json_name = "moduleId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_module_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.CreateModuleResponse.module_id")); + } else + goto handle_unusual; + continue; + // string url = 2 [json_name = "url"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_url(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.CreateModuleResponse.url")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 53, 2> CreateModuleResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_CreateModuleResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string url = 2 [json_name = "url"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(CreateModuleResponse, _impl_.url_)}}, - // string module_id = 1 [json_name = "moduleId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(CreateModuleResponse, _impl_.module_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string module_id = 1 [json_name = "moduleId"]; - {PROTOBUF_FIELD_OFFSET(CreateModuleResponse, _impl_.module_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string url = 2 [json_name = "url"]; - {PROTOBUF_FIELD_OFFSET(CreateModuleResponse, _impl_.url_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\40\11\3\0\0\0\0\0" - "viam.app.v1.CreateModuleResponse" - "module_id" - "url" - }}, -}; - -::uint8_t* CreateModuleResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* CreateModuleResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.CreateModuleResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string module_id = 1 [json_name = "moduleId"]; if (!this->_internal_module_id().empty()) { - const std::string& _s = this->_internal_module_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.CreateModuleResponse.module_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::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.CreateModuleResponse.module_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_module_id(), target); } // string url = 2 [json_name = "url"]; if (!this->_internal_url().empty()) { - const std::string& _s = this->_internal_url(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.CreateModuleResponse.url"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_url().data(), static_cast(this->_internal_url().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.CreateModuleResponse.url"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_url(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.CreateModuleResponse) return target; } -::size_t CreateModuleResponse::ByteSizeLong() const { +size_t CreateModuleResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.CreateModuleResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string module_id = 1 [json_name = "moduleId"]; if (!this->_internal_module_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_module_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_module_id()); } // string url = 2 [json_name = "url"]; if (!this->_internal_url().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_url()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_url()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData CreateModuleResponse::_class_data_ = { - CreateModuleResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CreateModuleResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CreateModuleResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* CreateModuleResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CreateModuleResponse::GetClassData() const { return &_class_data_; } + +void CreateModuleResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void CreateModuleResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.CreateModuleResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void CreateModuleResponse::MergeFrom(const CreateModuleResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.CreateModuleResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_module_id().empty()) { - _this->_internal_set_module_id(from._internal_module_id()); + _internal_set_module_id(from._internal_module_id()); } if (!from._internal_url().empty()) { - _this->_internal_set_url(from._internal_url()); + _internal_set_url(from._internal_url()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CreateModuleResponse::CopyFrom(const CreateModuleResponse& from) { @@ -41797,364 +42969,444 @@ void CreateModuleResponse::CopyFrom(const CreateModuleResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool CreateModuleResponse::IsInitialized() const { +bool CreateModuleResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* CreateModuleResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void CreateModuleResponse::InternalSwap(CreateModuleResponse* PROTOBUF_RESTRICT other) { +void CreateModuleResponse::InternalSwap(CreateModuleResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.module_id_, &other->_impl_.module_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.url_, &other->_impl_.url_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &module_id_, lhs_arena, + &other->module_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &url_, lhs_arena, + &other->url_, rhs_arena + ); } -::google::protobuf::Metadata CreateModuleResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata CreateModuleResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[161]); + file_level_metadata_app_2fv1_2fapp_2eproto[162]); } + // =================================================================== class UpdateModuleRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(UpdateModuleRequest, _impl_._has_bits_); + using HasBits = decltype(std::declval()._has_bits_); static void set_has_first_run(HasBits* has_bits) { (*has_bits)[0] |= 1u; } }; -UpdateModuleRequest::UpdateModuleRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +UpdateModuleRequest::UpdateModuleRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + models_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.v1.UpdateModuleRequest) } -inline PROTOBUF_NDEBUG_INLINE UpdateModuleRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - models_{visibility, arena, from.models_}, - module_id_(arena, from.module_id_), - url_(arena, from.url_), - description_(arena, from.description_), - entrypoint_(arena, from.entrypoint_), - first_run_(arena, from.first_run_) {} - -UpdateModuleRequest::UpdateModuleRequest( - ::google::protobuf::Arena* arena, - const UpdateModuleRequest& from) - : ::google::protobuf::Message(arena) { - UpdateModuleRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.visibility_ = from._impl_.visibility_; - +UpdateModuleRequest::UpdateModuleRequest(const UpdateModuleRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_), + models_(from.models_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + 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()); + } + url_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + url_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_url().empty()) { + url_.Set(from._internal_url(), + GetArenaForAllocation()); + } + description_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + description_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_description().empty()) { + description_.Set(from._internal_description(), + GetArenaForAllocation()); + } + entrypoint_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + entrypoint_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_entrypoint().empty()) { + entrypoint_.Set(from._internal_entrypoint(), + GetArenaForAllocation()); + } + first_run_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + first_run_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (from._internal_has_first_run()) { + first_run_.Set(from._internal_first_run(), + GetArenaForAllocation()); + } + visibility_ = from.visibility_; // @@protoc_insertion_point(copy_constructor:viam.app.v1.UpdateModuleRequest) } -inline PROTOBUF_NDEBUG_INLINE UpdateModuleRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - models_{visibility, arena}, - module_id_(arena), - url_(arena), - description_(arena), - entrypoint_(arena), - first_run_(arena) {} - -inline void UpdateModuleRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.visibility_ = {}; + +inline void UpdateModuleRequest::SharedCtor() { +module_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + module_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +url_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + url_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +description_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + description_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +entrypoint_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + entrypoint_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +first_run_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + first_run_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +visibility_ = 0; } + UpdateModuleRequest::~UpdateModuleRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.UpdateModuleRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void UpdateModuleRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.module_id_.Destroy(); - _impl_.url_.Destroy(); - _impl_.description_.Destroy(); - _impl_.entrypoint_.Destroy(); - _impl_.first_run_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + module_id_.Destroy(); + url_.Destroy(); + description_.Destroy(); + entrypoint_.Destroy(); + first_run_.Destroy(); } -PROTOBUF_NOINLINE void UpdateModuleRequest::Clear() { +void UpdateModuleRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void UpdateModuleRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.UpdateModuleRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.models_.Clear(); - _impl_.module_id_.ClearToEmpty(); - _impl_.url_.ClearToEmpty(); - _impl_.description_.ClearToEmpty(); - _impl_.entrypoint_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; + models_.Clear(); + module_id_.ClearToEmpty(); + url_.ClearToEmpty(); + description_.ClearToEmpty(); + entrypoint_.ClearToEmpty(); + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { - _impl_.first_run_.ClearNonDefaultToEmpty(); - } - _impl_.visibility_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* UpdateModuleRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + first_run_.ClearNonDefaultToEmpty(); + } + visibility_ = 0; + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* UpdateModuleRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string module_id = 1 [json_name = "moduleId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_module_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.UpdateModuleRequest.module_id")); + } else + goto handle_unusual; + continue; + // .viam.app.v1.Visibility visibility = 2 [json_name = "visibility"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_visibility(static_cast<::viam::app::v1::Visibility>(val)); + } else + goto handle_unusual; + continue; + // string url = 3 [json_name = "url"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_url(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.UpdateModuleRequest.url")); + } else + goto handle_unusual; + continue; + // string description = 4 [json_name = "description"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_description(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.UpdateModuleRequest.description")); + } else + goto handle_unusual; + continue; + // repeated .viam.app.v1.Model models = 5 [json_name = "models"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_models(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr)); + } else + goto handle_unusual; + continue; + // string entrypoint = 6 [json_name = "entrypoint"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + auto str = _internal_mutable_entrypoint(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.UpdateModuleRequest.entrypoint")); + } else + goto handle_unusual; + continue; + // optional string first_run = 7 [json_name = "firstRun"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + auto str = _internal_mutable_first_run(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.UpdateModuleRequest.first_run")); + } 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: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 7, 1, 82, 2> UpdateModuleRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(UpdateModuleRequest, _impl_._has_bits_), - 0, // no _extensions_ - 7, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967168, // skipmap - offsetof(decltype(_table_), field_entries), - 7, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_UpdateModuleRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string module_id = 1 [json_name = "moduleId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(UpdateModuleRequest, _impl_.module_id_)}}, - // .viam.app.v1.Visibility visibility = 2 [json_name = "visibility"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(UpdateModuleRequest, _impl_.visibility_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(UpdateModuleRequest, _impl_.visibility_)}}, - // string url = 3 [json_name = "url"]; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(UpdateModuleRequest, _impl_.url_)}}, - // string description = 4 [json_name = "description"]; - {::_pbi::TcParser::FastUS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(UpdateModuleRequest, _impl_.description_)}}, - // repeated .viam.app.v1.Model models = 5 [json_name = "models"]; - {::_pbi::TcParser::FastMtR1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(UpdateModuleRequest, _impl_.models_)}}, - // string entrypoint = 6 [json_name = "entrypoint"]; - {::_pbi::TcParser::FastUS1, - {50, 63, 0, PROTOBUF_FIELD_OFFSET(UpdateModuleRequest, _impl_.entrypoint_)}}, - // optional string first_run = 7 [json_name = "firstRun"]; - {::_pbi::TcParser::FastUS1, - {58, 0, 0, PROTOBUF_FIELD_OFFSET(UpdateModuleRequest, _impl_.first_run_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string module_id = 1 [json_name = "moduleId"]; - {PROTOBUF_FIELD_OFFSET(UpdateModuleRequest, _impl_.module_id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .viam.app.v1.Visibility visibility = 2 [json_name = "visibility"]; - {PROTOBUF_FIELD_OFFSET(UpdateModuleRequest, _impl_.visibility_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // string url = 3 [json_name = "url"]; - {PROTOBUF_FIELD_OFFSET(UpdateModuleRequest, _impl_.url_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string description = 4 [json_name = "description"]; - {PROTOBUF_FIELD_OFFSET(UpdateModuleRequest, _impl_.description_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated .viam.app.v1.Model models = 5 [json_name = "models"]; - {PROTOBUF_FIELD_OFFSET(UpdateModuleRequest, _impl_.models_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // string entrypoint = 6 [json_name = "entrypoint"]; - {PROTOBUF_FIELD_OFFSET(UpdateModuleRequest, _impl_.entrypoint_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // optional string first_run = 7 [json_name = "firstRun"]; - {PROTOBUF_FIELD_OFFSET(UpdateModuleRequest, _impl_.first_run_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::Model>()}, - }}, {{ - "\37\11\0\3\13\0\12\11" - "viam.app.v1.UpdateModuleRequest" - "module_id" - "url" - "description" - "entrypoint" - "first_run" - }}, -}; - -::uint8_t* UpdateModuleRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* UpdateModuleRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.UpdateModuleRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string module_id = 1 [json_name = "moduleId"]; if (!this->_internal_module_id().empty()) { - const std::string& _s = this->_internal_module_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.UpdateModuleRequest.module_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::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.UpdateModuleRequest.module_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_module_id(), target); } // .viam.app.v1.Visibility visibility = 2 [json_name = "visibility"]; if (this->_internal_visibility() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 2, this->_internal_visibility(), target); + 2, this->_internal_visibility(), target); } // string url = 3 [json_name = "url"]; if (!this->_internal_url().empty()) { - const std::string& _s = this->_internal_url(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.UpdateModuleRequest.url"); - target = stream->WriteStringMaybeAliased(3, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_url().data(), static_cast(this->_internal_url().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.UpdateModuleRequest.url"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_url(), target); } // string description = 4 [json_name = "description"]; if (!this->_internal_description().empty()) { - const std::string& _s = this->_internal_description(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.UpdateModuleRequest.description"); - target = stream->WriteStringMaybeAliased(4, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_description().data(), static_cast(this->_internal_description().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.UpdateModuleRequest.description"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_description(), target); } // repeated .viam.app.v1.Model models = 5 [json_name = "models"]; for (unsigned i = 0, n = static_cast(this->_internal_models_size()); i < n; i++) { - const auto& repfield = this->_internal_models().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_models(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(5, repfield, repfield.GetCachedSize(), target, stream); } // string entrypoint = 6 [json_name = "entrypoint"]; if (!this->_internal_entrypoint().empty()) { - const std::string& _s = this->_internal_entrypoint(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.UpdateModuleRequest.entrypoint"); - target = stream->WriteStringMaybeAliased(6, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_entrypoint().data(), static_cast(this->_internal_entrypoint().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.UpdateModuleRequest.entrypoint"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_entrypoint(), target); } - cached_has_bits = _impl_._has_bits_[0]; // optional string first_run = 7 [json_name = "firstRun"]; - if (cached_has_bits & 0x00000001u) { - const std::string& _s = this->_internal_first_run(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.UpdateModuleRequest.first_run"); - target = stream->WriteStringMaybeAliased(7, _s, target); + if (_internal_has_first_run()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_first_run().data(), static_cast(this->_internal_first_run().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.UpdateModuleRequest.first_run"); + target = stream->WriteStringMaybeAliased( + 7, this->_internal_first_run(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.UpdateModuleRequest) return target; } -::size_t UpdateModuleRequest::ByteSizeLong() const { +size_t UpdateModuleRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.UpdateModuleRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.app.v1.Model models = 5 [json_name = "models"]; total_size += 1UL * this->_internal_models_size(); - for (const auto& msg : this->_internal_models()) { + for (const auto& msg : this->models_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // string module_id = 1 [json_name = "moduleId"]; if (!this->_internal_module_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_module_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_module_id()); } // string url = 3 [json_name = "url"]; if (!this->_internal_url().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_url()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_url()); } // string description = 4 [json_name = "description"]; if (!this->_internal_description().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_description()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_description()); } // string entrypoint = 6 [json_name = "entrypoint"]; if (!this->_internal_entrypoint().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_entrypoint()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_entrypoint()); } // optional string first_run = 7 [json_name = "firstRun"]; - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_first_run()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_first_run()); } // .viam.app.v1.Visibility visibility = 2 [json_name = "visibility"]; if (this->_internal_visibility() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_visibility()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_visibility()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData UpdateModuleRequest::_class_data_ = { - UpdateModuleRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UpdateModuleRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + UpdateModuleRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* UpdateModuleRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UpdateModuleRequest::GetClassData() const { return &_class_data_; } + +void UpdateModuleRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void UpdateModuleRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.UpdateModuleRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void UpdateModuleRequest::MergeFrom(const UpdateModuleRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.UpdateModuleRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_models()->MergeFrom( - from._internal_models()); + models_.MergeFrom(from.models_); if (!from._internal_module_id().empty()) { - _this->_internal_set_module_id(from._internal_module_id()); + _internal_set_module_id(from._internal_module_id()); } if (!from._internal_url().empty()) { - _this->_internal_set_url(from._internal_url()); + _internal_set_url(from._internal_url()); } if (!from._internal_description().empty()) { - _this->_internal_set_description(from._internal_description()); + _internal_set_description(from._internal_description()); } if (!from._internal_entrypoint().empty()) { - _this->_internal_set_entrypoint(from._internal_entrypoint()); + _internal_set_entrypoint(from._internal_entrypoint()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_set_first_run(from._internal_first_run()); + if (from._internal_has_first_run()) { + _internal_set_first_run(from._internal_first_run()); } if (from._internal_visibility() != 0) { - _this->_internal_set_visibility(from._internal_visibility()); + _internal_set_visibility(from._internal_visibility()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void UpdateModuleRequest::CopyFrom(const UpdateModuleRequest& from) { @@ -42164,194 +43416,211 @@ void UpdateModuleRequest::CopyFrom(const UpdateModuleRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool UpdateModuleRequest::IsInitialized() const { +bool UpdateModuleRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* UpdateModuleRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void UpdateModuleRequest::InternalSwap(UpdateModuleRequest* PROTOBUF_RESTRICT other) { +void UpdateModuleRequest::InternalSwap(UpdateModuleRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.models_.InternalSwap(&other->_impl_.models_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.module_id_, &other->_impl_.module_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.url_, &other->_impl_.url_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.description_, &other->_impl_.description_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.entrypoint_, &other->_impl_.entrypoint_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.first_run_, &other->_impl_.first_run_, arena); - swap(_impl_.visibility_, other->_impl_.visibility_); -} - -::google::protobuf::Metadata UpdateModuleRequest::GetMetadata() const { + swap(_has_bits_[0], other->_has_bits_[0]); + models_.InternalSwap(&other->models_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &module_id_, lhs_arena, + &other->module_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &url_, lhs_arena, + &other->url_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &description_, lhs_arena, + &other->description_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &entrypoint_, lhs_arena, + &other->entrypoint_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &first_run_, lhs_arena, + &other->first_run_, rhs_arena + ); + swap(visibility_, other->visibility_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata UpdateModuleRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[162]); + file_level_metadata_app_2fv1_2fapp_2eproto[163]); } + // =================================================================== class UpdateModuleResponse::_Internal { public: }; -UpdateModuleResponse::UpdateModuleResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +UpdateModuleResponse::UpdateModuleResponse(::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.UpdateModuleResponse) } -inline PROTOBUF_NDEBUG_INLINE UpdateModuleResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : url_(arena, from.url_), - _cached_size_{0} {} - -UpdateModuleResponse::UpdateModuleResponse( - ::google::protobuf::Arena* arena, - const UpdateModuleResponse& from) - : ::google::protobuf::Message(arena) { - UpdateModuleResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +UpdateModuleResponse::UpdateModuleResponse(const UpdateModuleResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + url_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + url_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_url().empty()) { + url_.Set(from._internal_url(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.UpdateModuleResponse) } -inline PROTOBUF_NDEBUG_INLINE UpdateModuleResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : url_(arena), - _cached_size_{0} {} -inline void UpdateModuleResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void UpdateModuleResponse::SharedCtor() { +url_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + url_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + UpdateModuleResponse::~UpdateModuleResponse() { // @@protoc_insertion_point(destructor:viam.app.v1.UpdateModuleResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void UpdateModuleResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.url_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + url_.Destroy(); } -PROTOBUF_NOINLINE void UpdateModuleResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.UpdateModuleResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.url_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void UpdateModuleResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* UpdateModuleResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void UpdateModuleResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.UpdateModuleResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + url_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* UpdateModuleResponse::_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 url = 1 [json_name = "url"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_url(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.UpdateModuleResponse.url")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 44, 2> UpdateModuleResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_UpdateModuleResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string url = 1 [json_name = "url"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(UpdateModuleResponse, _impl_.url_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string url = 1 [json_name = "url"]; - {PROTOBUF_FIELD_OFFSET(UpdateModuleResponse, _impl_.url_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\40\3\0\0\0\0\0\0" - "viam.app.v1.UpdateModuleResponse" - "url" - }}, -}; - -::uint8_t* UpdateModuleResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* UpdateModuleResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.UpdateModuleResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string url = 1 [json_name = "url"]; if (!this->_internal_url().empty()) { - const std::string& _s = this->_internal_url(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.UpdateModuleResponse.url"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_url().data(), static_cast(this->_internal_url().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.UpdateModuleResponse.url"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_url(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.UpdateModuleResponse) return target; } -::size_t UpdateModuleResponse::ByteSizeLong() const { +size_t UpdateModuleResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.UpdateModuleResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string url = 1 [json_name = "url"]; if (!this->_internal_url().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_url()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_url()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData UpdateModuleResponse::_class_data_ = { - UpdateModuleResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UpdateModuleResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + UpdateModuleResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* UpdateModuleResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UpdateModuleResponse::GetClassData() const { return &_class_data_; } + +void UpdateModuleResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void UpdateModuleResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.UpdateModuleResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void UpdateModuleResponse::MergeFrom(const UpdateModuleResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.UpdateModuleResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_url().empty()) { - _this->_internal_set_url(from._internal_url()); + _internal_set_url(from._internal_url()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void UpdateModuleResponse::CopyFrom(const UpdateModuleResponse& from) { @@ -42361,6693 +43630,13241 @@ void UpdateModuleResponse::CopyFrom(const UpdateModuleResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool UpdateModuleResponse::IsInitialized() const { +bool UpdateModuleResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* UpdateModuleResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void UpdateModuleResponse::InternalSwap(UpdateModuleResponse* PROTOBUF_RESTRICT other) { +void UpdateModuleResponse::InternalSwap(UpdateModuleResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.url_, &other->_impl_.url_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &url_, lhs_arena, + &other->url_, rhs_arena + ); } -::google::protobuf::Metadata UpdateModuleResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata UpdateModuleResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[163]); + file_level_metadata_app_2fv1_2fapp_2eproto[164]); } + // =================================================================== -class Model::_Internal { +class UpdateModuleMetadata::_Internal { public: }; -Model::Model(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:viam.app.v1.Model) +UpdateModuleMetadata::UpdateModuleMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + models_(arena) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.UpdateModuleMetadata) +} +UpdateModuleMetadata::UpdateModuleMetadata(const UpdateModuleMetadata& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + models_(from.models_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + entrypoint_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + entrypoint_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_entrypoint().empty()) { + entrypoint_.Set(from._internal_entrypoint(), + GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.UpdateModuleMetadata) } -inline PROTOBUF_NDEBUG_INLINE Model::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : api_(arena, from.api_), - model_(arena, from.model_), - _cached_size_{0} {} - -Model::Model( - ::google::protobuf::Arena* arena, - const Model& from) - : ::google::protobuf::Message(arena) { - Model* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - // @@protoc_insertion_point(copy_constructor:viam.app.v1.Model) +inline void UpdateModuleMetadata::SharedCtor() { +entrypoint_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + entrypoint_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } -inline PROTOBUF_NDEBUG_INLINE Model::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : api_(arena), - model_(arena), - _cached_size_{0} {} -inline void Model::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -Model::~Model() { - // @@protoc_insertion_point(destructor:viam.app.v1.Model) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); +UpdateModuleMetadata::~UpdateModuleMetadata() { + // @@protoc_insertion_point(destructor:viam.app.v1.UpdateModuleMetadata) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } -inline void Model::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.api_.Destroy(); - _impl_.model_.Destroy(); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void Model::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.Model) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.api_.ClearToEmpty(); - _impl_.model_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} -const char* Model::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +inline void UpdateModuleMetadata::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + entrypoint_.Destroy(); +} + +void UpdateModuleMetadata::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void UpdateModuleMetadata::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.UpdateModuleMetadata) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + models_.Clear(); + entrypoint_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* UpdateModuleMetadata::_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) { + // repeated .viam.app.v1.Model models = 1 [json_name = "models"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_models(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + // string entrypoint = 2 [json_name = "entrypoint"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_entrypoint(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.UpdateModuleMetadata.entrypoint")); + } 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* UpdateModuleMetadata::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.UpdateModuleMetadata) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 34, 2> Model::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_Model_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string model = 2 [json_name = "model"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(Model, _impl_.model_)}}, - // string api = 1 [json_name = "api"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Model, _impl_.api_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string api = 1 [json_name = "api"]; - {PROTOBUF_FIELD_OFFSET(Model, _impl_.api_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string model = 2 [json_name = "model"]; - {PROTOBUF_FIELD_OFFSET(Model, _impl_.model_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\21\3\5\0\0\0\0\0" - "viam.app.v1.Model" - "api" - "model" - }}, -}; - -::uint8_t* Model::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.Model) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string api = 1 [json_name = "api"]; - if (!this->_internal_api().empty()) { - const std::string& _s = this->_internal_api(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.Model.api"); - target = stream->WriteStringMaybeAliased(1, _s, target); + // repeated .viam.app.v1.Model models = 1 [json_name = "models"]; + for (unsigned i = 0, + n = static_cast(this->_internal_models_size()); i < n; i++) { + const auto& repfield = this->_internal_models(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } - // string model = 2 [json_name = "model"]; - if (!this->_internal_model().empty()) { - const std::string& _s = this->_internal_model(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.Model.model"); - target = stream->WriteStringMaybeAliased(2, _s, target); + // string entrypoint = 2 [json_name = "entrypoint"]; + if (!this->_internal_entrypoint().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_entrypoint().data(), static_cast(this->_internal_entrypoint().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.UpdateModuleMetadata.entrypoint"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_entrypoint(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.Model) + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.UpdateModuleMetadata) return target; } -::size_t Model::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.Model) - ::size_t total_size = 0; +size_t UpdateModuleMetadata::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.UpdateModuleMetadata) + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string api = 1 [json_name = "api"]; - if (!this->_internal_api().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_api()); + // repeated .viam.app.v1.Model models = 1 [json_name = "models"]; + total_size += 1UL * this->_internal_models_size(); + for (const auto& msg : this->models_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - // string model = 2 [json_name = "model"]; - if (!this->_internal_model().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_model()); + // string entrypoint = 2 [json_name = "entrypoint"]; + if (!this->_internal_entrypoint().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_entrypoint()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Model::_class_data_ = { - Model::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UpdateModuleMetadata::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + UpdateModuleMetadata::MergeImpl }; -const ::google::protobuf::Message::ClassData* Model::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UpdateModuleMetadata::GetClassData() const { return &_class_data_; } + +void UpdateModuleMetadata::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Model::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.Model) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void UpdateModuleMetadata::MergeFrom(const UpdateModuleMetadata& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.UpdateModuleMetadata) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_api().empty()) { - _this->_internal_set_api(from._internal_api()); - } - if (!from._internal_model().empty()) { - _this->_internal_set_model(from._internal_model()); + models_.MergeFrom(from.models_); + if (!from._internal_entrypoint().empty()) { + _internal_set_entrypoint(from._internal_entrypoint()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void Model::CopyFrom(const Model& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.Model) +void UpdateModuleMetadata::CopyFrom(const UpdateModuleMetadata& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.UpdateModuleMetadata) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool Model::IsInitialized() const { +bool UpdateModuleMetadata::IsInitialized() const { return true; } -::_pbi::CachedSize* Model::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Model::InternalSwap(Model* PROTOBUF_RESTRICT other) { +void UpdateModuleMetadata::InternalSwap(UpdateModuleMetadata* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.api_, &other->_impl_.api_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.model_, &other->_impl_.model_, arena); + models_.InternalSwap(&other->models_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &entrypoint_, lhs_arena, + &other->entrypoint_, rhs_arena + ); } -::google::protobuf::Metadata Model::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata UpdateModuleMetadata::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[164]); + file_level_metadata_app_2fv1_2fapp_2eproto[165]); } + // =================================================================== -class ModuleFileInfo::_Internal { +class UpdateMLModelMetadata::_Internal { public: }; -ModuleFileInfo::ModuleFileInfo(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:viam.app.v1.ModuleFileInfo) +UpdateMLModelMetadata::UpdateMLModelMetadata(::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.UpdateMLModelMetadata) } -inline PROTOBUF_NDEBUG_INLINE ModuleFileInfo::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : platform_tags_{visibility, arena, from.platform_tags_}, - module_id_(arena, from.module_id_), - version_(arena, from.version_), - platform_(arena, from.platform_), - _cached_size_{0} {} - -ModuleFileInfo::ModuleFileInfo( - ::google::protobuf::Arena* arena, - const ModuleFileInfo& from) - : ::google::protobuf::Message(arena) { - ModuleFileInfo* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:viam.app.v1.ModuleFileInfo) +UpdateMLModelMetadata::UpdateMLModelMetadata(const UpdateMLModelMetadata& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&model_type_, &from.model_type_, + static_cast(reinterpret_cast(&model_framework_) - + reinterpret_cast(&model_type_)) + sizeof(model_framework_)); + // @@protoc_insertion_point(copy_constructor:viam.app.v1.UpdateMLModelMetadata) } -inline PROTOBUF_NDEBUG_INLINE ModuleFileInfo::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : platform_tags_{visibility, arena}, - module_id_(arena), - version_(arena), - platform_(arena), - _cached_size_{0} {} -inline void ModuleFileInfo::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void UpdateMLModelMetadata::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&model_type_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&model_framework_) - + reinterpret_cast(&model_type_)) + sizeof(model_framework_)); } -ModuleFileInfo::~ModuleFileInfo() { - // @@protoc_insertion_point(destructor:viam.app.v1.ModuleFileInfo) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void ModuleFileInfo::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.module_id_.Destroy(); - _impl_.version_.Destroy(); - _impl_.platform_.Destroy(); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void ModuleFileInfo::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.ModuleFileInfo) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - _impl_.platform_tags_.Clear(); - _impl_.module_id_.ClearToEmpty(); - _impl_.version_.ClearToEmpty(); - _impl_.platform_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +UpdateMLModelMetadata::~UpdateMLModelMetadata() { + // @@protoc_insertion_point(destructor:viam.app.v1.UpdateMLModelMetadata) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); } -const char* ModuleFileInfo::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +inline void UpdateMLModelMetadata::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void UpdateMLModelMetadata::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void UpdateMLModelMetadata::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.UpdateMLModelMetadata) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&model_type_, 0, static_cast( + reinterpret_cast(&model_framework_) - + reinterpret_cast(&model_type_)) + sizeof(model_framework_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* UpdateMLModelMetadata::_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.app.mltraining.v1.ModelType model_type = 1 [json_name = "modelType"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_model_type(static_cast<::viam::app::mltraining::v1::ModelType>(val)); + } else + goto handle_unusual; + continue; + // .viam.app.mltraining.v1.ModelFramework model_framework = 2 [json_name = "modelFramework"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_model_framework(static_cast<::viam::app::mltraining::v1::ModelFramework>(val)); + } 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* UpdateMLModelMetadata::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.UpdateMLModelMetadata) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 4, 0, 72, 2> ModuleFileInfo::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 5, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967272, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_ModuleFileInfo_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string module_id = 1 [json_name = "moduleId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ModuleFileInfo, _impl_.module_id_)}}, - // string version = 2 [json_name = "version"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(ModuleFileInfo, _impl_.version_)}}, - // string platform = 3 [json_name = "platform"]; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(ModuleFileInfo, _impl_.platform_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // repeated string platform_tags = 5 [json_name = "platformTags"]; - {::_pbi::TcParser::FastUR1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(ModuleFileInfo, _impl_.platform_tags_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string module_id = 1 [json_name = "moduleId"]; - {PROTOBUF_FIELD_OFFSET(ModuleFileInfo, _impl_.module_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string version = 2 [json_name = "version"]; - {PROTOBUF_FIELD_OFFSET(ModuleFileInfo, _impl_.version_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string platform = 3 [json_name = "platform"]; - {PROTOBUF_FIELD_OFFSET(ModuleFileInfo, _impl_.platform_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated string platform_tags = 5 [json_name = "platformTags"]; - {PROTOBUF_FIELD_OFFSET(ModuleFileInfo, _impl_.platform_tags_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - }}, - // no aux_entries - {{ - "\32\11\7\10\15\0\0\0" - "viam.app.v1.ModuleFileInfo" - "module_id" - "version" - "platform" - "platform_tags" - }}, -}; - -::uint8_t* ModuleFileInfo::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ModuleFileInfo) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string module_id = 1 [json_name = "moduleId"]; - if (!this->_internal_module_id().empty()) { - const std::string& _s = this->_internal_module_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ModuleFileInfo.module_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // string version = 2 [json_name = "version"]; - if (!this->_internal_version().empty()) { - const std::string& _s = this->_internal_version(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ModuleFileInfo.version"); - target = stream->WriteStringMaybeAliased(2, _s, target); - } - - // string platform = 3 [json_name = "platform"]; - if (!this->_internal_platform().empty()) { - const std::string& _s = this->_internal_platform(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ModuleFileInfo.platform"); - target = stream->WriteStringMaybeAliased(3, _s, target); + // .viam.app.mltraining.v1.ModelType model_type = 1 [json_name = "modelType"]; + if (this->_internal_model_type() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this->_internal_model_type(), target); } - // repeated string platform_tags = 5 [json_name = "platformTags"]; - for (int i = 0, n = this->_internal_platform_tags_size(); i < n; ++i) { - const auto& s = this->_internal_platform_tags().Get(i); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ModuleFileInfo.platform_tags"); - target = stream->WriteString(5, s, target); + // .viam.app.mltraining.v1.ModelFramework model_framework = 2 [json_name = "modelFramework"]; + if (this->_internal_model_framework() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this->_internal_model_framework(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.ModuleFileInfo) + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.UpdateMLModelMetadata) return target; } -::size_t ModuleFileInfo::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ModuleFileInfo) - ::size_t total_size = 0; +size_t UpdateMLModelMetadata::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.UpdateMLModelMetadata) + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated string platform_tags = 5 [json_name = "platformTags"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_platform_tags().size()); - for (int i = 0, n = _internal_platform_tags().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - _internal_platform_tags().Get(i)); - } - // string module_id = 1 [json_name = "moduleId"]; - if (!this->_internal_module_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_module_id()); - } - - // string version = 2 [json_name = "version"]; - if (!this->_internal_version().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_version()); + // .viam.app.mltraining.v1.ModelType model_type = 1 [json_name = "modelType"]; + if (this->_internal_model_type() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_model_type()); } - // string platform = 3 [json_name = "platform"]; - if (!this->_internal_platform().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_platform()); + // .viam.app.mltraining.v1.ModelFramework model_framework = 2 [json_name = "modelFramework"]; + if (this->_internal_model_framework() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_model_framework()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ModuleFileInfo::_class_data_ = { - ModuleFileInfo::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UpdateMLModelMetadata::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + UpdateMLModelMetadata::MergeImpl }; -const ::google::protobuf::Message::ClassData* ModuleFileInfo::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UpdateMLModelMetadata::GetClassData() const { return &_class_data_; } + +void UpdateMLModelMetadata::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ModuleFileInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ModuleFileInfo) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void UpdateMLModelMetadata::MergeFrom(const UpdateMLModelMetadata& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.UpdateMLModelMetadata) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_platform_tags()->MergeFrom(from._internal_platform_tags()); - if (!from._internal_module_id().empty()) { - _this->_internal_set_module_id(from._internal_module_id()); - } - if (!from._internal_version().empty()) { - _this->_internal_set_version(from._internal_version()); + if (from._internal_model_type() != 0) { + _internal_set_model_type(from._internal_model_type()); } - if (!from._internal_platform().empty()) { - _this->_internal_set_platform(from._internal_platform()); + if (from._internal_model_framework() != 0) { + _internal_set_model_framework(from._internal_model_framework()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void ModuleFileInfo::CopyFrom(const ModuleFileInfo& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.ModuleFileInfo) +void UpdateMLModelMetadata::CopyFrom(const UpdateMLModelMetadata& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.UpdateMLModelMetadata) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool ModuleFileInfo::IsInitialized() const { +bool UpdateMLModelMetadata::IsInitialized() const { return true; } -::_pbi::CachedSize* ModuleFileInfo::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ModuleFileInfo::InternalSwap(ModuleFileInfo* PROTOBUF_RESTRICT other) { +void UpdateMLModelMetadata::InternalSwap(UpdateMLModelMetadata* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.platform_tags_.InternalSwap(&other->_impl_.platform_tags_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.module_id_, &other->_impl_.module_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.version_, &other->_impl_.version_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.platform_, &other->_impl_.platform_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(UpdateMLModelMetadata, model_framework_) + + sizeof(UpdateMLModelMetadata::model_framework_) + - PROTOBUF_FIELD_OFFSET(UpdateMLModelMetadata, model_type_)>( + reinterpret_cast(&model_type_), + reinterpret_cast(&other->model_type_)); } -::google::protobuf::Metadata ModuleFileInfo::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata UpdateMLModelMetadata::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[165]); + file_level_metadata_app_2fv1_2fapp_2eproto[166]); } + // =================================================================== -class UploadModuleFileRequest::_Internal { +class UpdateMLTrainingMetadata::_Internal { public: - static constexpr ::int32_t kOneofCaseOffset = - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UploadModuleFileRequest, _impl_._oneof_case_); - static const ::viam::app::v1::ModuleFileInfo& module_file_info(const UploadModuleFileRequest* msg); }; -const ::viam::app::v1::ModuleFileInfo& UploadModuleFileRequest::_Internal::module_file_info(const UploadModuleFileRequest* msg) { - return *msg->_impl_.module_file_.module_file_info_; -} -void UploadModuleFileRequest::set_allocated_module_file_info(::viam::app::v1::ModuleFileInfo* module_file_info) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_module_file(); - if (module_file_info) { - ::google::protobuf::Arena* submessage_arena = module_file_info->GetArena(); - if (message_arena != submessage_arena) { - module_file_info = ::google::protobuf::internal::GetOwnedMessage(message_arena, module_file_info, submessage_arena); - } - set_has_module_file_info(); - _impl_.module_file_.module_file_info_ = module_file_info; - } - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UploadModuleFileRequest.module_file_info) +UpdateMLTrainingMetadata::UpdateMLTrainingMetadata(::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.UpdateMLTrainingMetadata) } -UploadModuleFileRequest::UploadModuleFileRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:viam.app.v1.UploadModuleFileRequest) +UpdateMLTrainingMetadata::UpdateMLTrainingMetadata(const UpdateMLTrainingMetadata& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&model_type_, &from.model_type_, + static_cast(reinterpret_cast(&draft_) - + reinterpret_cast(&model_type_)) + sizeof(draft_)); + // @@protoc_insertion_point(copy_constructor:viam.app.v1.UpdateMLTrainingMetadata) } -inline PROTOBUF_NDEBUG_INLINE UploadModuleFileRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : module_file_{}, - _cached_size_{0}, - _oneof_case_{from._oneof_case_[0]} {} - -UploadModuleFileRequest::UploadModuleFileRequest( - ::google::protobuf::Arena* arena, - const UploadModuleFileRequest& from) - : ::google::protobuf::Message(arena) { - UploadModuleFileRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - switch (module_file_case()) { - case MODULE_FILE_NOT_SET: - break; - case kModuleFileInfo: - _impl_.module_file_.module_file_info_ = CreateMaybeMessage<::viam::app::v1::ModuleFileInfo>(arena, *from._impl_.module_file_.module_file_info_); - break; - case kFile: - new (&_impl_.module_file_.file_) decltype(_impl_.module_file_.file_){arena, from._impl_.module_file_.file_}; - break; - } - // @@protoc_insertion_point(copy_constructor:viam.app.v1.UploadModuleFileRequest) +inline void UpdateMLTrainingMetadata::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&model_type_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&draft_) - + reinterpret_cast(&model_type_)) + sizeof(draft_)); } -inline PROTOBUF_NDEBUG_INLINE UploadModuleFileRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : module_file_{}, - _cached_size_{0}, - _oneof_case_{} {} -inline void UploadModuleFileRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -UploadModuleFileRequest::~UploadModuleFileRequest() { - // @@protoc_insertion_point(destructor:viam.app.v1.UploadModuleFileRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void UploadModuleFileRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - if (has_module_file()) { - clear_module_file(); +UpdateMLTrainingMetadata::~UpdateMLTrainingMetadata() { + // @@protoc_insertion_point(destructor:viam.app.v1.UpdateMLTrainingMetadata) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; } - _impl_.~Impl_(); + SharedDtor(); } -void UploadModuleFileRequest::clear_module_file() { -// @@protoc_insertion_point(one_of_clear_start:viam.app.v1.UploadModuleFileRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - switch (module_file_case()) { - case kModuleFileInfo: { - if (GetArena() == nullptr) { - delete _impl_.module_file_.module_file_info_; - } - break; +inline void UpdateMLTrainingMetadata::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void UpdateMLTrainingMetadata::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void UpdateMLTrainingMetadata::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.UpdateMLTrainingMetadata) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&model_type_, 0, static_cast( + reinterpret_cast(&draft_) - + reinterpret_cast(&model_type_)) + sizeof(draft_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* UpdateMLTrainingMetadata::_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.app.mltraining.v1.ModelType model_type = 1 [json_name = "modelType"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_model_type(static_cast<::viam::app::mltraining::v1::ModelType>(val)); + } else + goto handle_unusual; + continue; + // .viam.app.mltraining.v1.ModelFramework model_framework = 2 [json_name = "modelFramework"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_model_framework(static_cast<::viam::app::mltraining::v1::ModelFramework>(val)); + } else + goto handle_unusual; + continue; + // bool draft = 3 [json_name = "draft"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + draft_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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; } - case kFile: { - _impl_.module_file_.file_.Destroy(); - break; - } - case MODULE_FILE_NOT_SET: { - break; - } - } - _impl_._oneof_case_[0] = MODULE_FILE_NOT_SET; -} - - -PROTOBUF_NOINLINE void UploadModuleFileRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.UploadModuleFileRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - clear_module_file(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* UploadModuleFileRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + 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* UpdateMLTrainingMetadata::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.UpdateMLTrainingMetadata) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 2, 1, 0, 2> UploadModuleFileRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_UploadModuleFileRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.app.v1.ModuleFileInfo module_file_info = 1 [json_name = "moduleFileInfo"]; - {PROTOBUF_FIELD_OFFSET(UploadModuleFileRequest, _impl_.module_file_.module_file_info_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // bytes file = 2 [json_name = "file"]; - {PROTOBUF_FIELD_OFFSET(UploadModuleFileRequest, _impl_.module_file_.file_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::ModuleFileInfo>()}, - }}, {{ - }}, -}; + // .viam.app.mltraining.v1.ModelType model_type = 1 [json_name = "modelType"]; + if (this->_internal_model_type() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this->_internal_model_type(), target); + } -::uint8_t* UploadModuleFileRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.UploadModuleFileRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + // .viam.app.mltraining.v1.ModelFramework model_framework = 2 [json_name = "modelFramework"]; + if (this->_internal_model_framework() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this->_internal_model_framework(), target); + } - switch (module_file_case()) { - case kModuleFileInfo: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::module_file_info(this), - _Internal::module_file_info(this).GetCachedSize(), target, stream); - break; - } - case kFile: { - const std::string& _s = this->_internal_file(); - target = stream->WriteBytesMaybeAliased(2, _s, target); - break; - } - default: - break; + // bool draft = 3 [json_name = "draft"]; + if (this->_internal_draft() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_draft(), target); } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.UploadModuleFileRequest) + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.UpdateMLTrainingMetadata) return target; } -::size_t UploadModuleFileRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.UploadModuleFileRequest) - ::size_t total_size = 0; +size_t UpdateMLTrainingMetadata::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.UpdateMLTrainingMetadata) + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - switch (module_file_case()) { - // .viam.app.v1.ModuleFileInfo module_file_info = 1 [json_name = "moduleFileInfo"]; - case kModuleFileInfo: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.module_file_.module_file_info_); - break; - } - // bytes file = 2 [json_name = "file"]; - case kFile: { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_file()); - break; - } - case MODULE_FILE_NOT_SET: { - break; - } + // .viam.app.mltraining.v1.ModelType model_type = 1 [json_name = "modelType"]; + if (this->_internal_model_type() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_model_type()); + } + + // .viam.app.mltraining.v1.ModelFramework model_framework = 2 [json_name = "modelFramework"]; + if (this->_internal_model_framework() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_model_framework()); + } + + // bool draft = 3 [json_name = "draft"]; + if (this->_internal_draft() != 0) { + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData UploadModuleFileRequest::_class_data_ = { - UploadModuleFileRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UpdateMLTrainingMetadata::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + UpdateMLTrainingMetadata::MergeImpl }; -const ::google::protobuf::Message::ClassData* UploadModuleFileRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UpdateMLTrainingMetadata::GetClassData() const { return &_class_data_; } + +void UpdateMLTrainingMetadata::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void UploadModuleFileRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.UploadModuleFileRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void UpdateMLTrainingMetadata::MergeFrom(const UpdateMLTrainingMetadata& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.UpdateMLTrainingMetadata) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - switch (from.module_file_case()) { - case kModuleFileInfo: { - _this->_internal_mutable_module_file_info()->::viam::app::v1::ModuleFileInfo::MergeFrom( - from._internal_module_file_info()); - break; - } - case kFile: { - _this->_internal_set_file(from._internal_file()); - break; - } - case MODULE_FILE_NOT_SET: { - break; - } + if (from._internal_model_type() != 0) { + _internal_set_model_type(from._internal_model_type()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_model_framework() != 0) { + _internal_set_model_framework(from._internal_model_framework()); + } + if (from._internal_draft() != 0) { + _internal_set_draft(from._internal_draft()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void UploadModuleFileRequest::CopyFrom(const UploadModuleFileRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.UploadModuleFileRequest) +void UpdateMLTrainingMetadata::CopyFrom(const UpdateMLTrainingMetadata& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.UpdateMLTrainingMetadata) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool UploadModuleFileRequest::IsInitialized() const { +bool UpdateMLTrainingMetadata::IsInitialized() const { return true; } -::_pbi::CachedSize* UploadModuleFileRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void UploadModuleFileRequest::InternalSwap(UploadModuleFileRequest* PROTOBUF_RESTRICT other) { +void UpdateMLTrainingMetadata::InternalSwap(UpdateMLTrainingMetadata* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.module_file_, other->_impl_.module_file_); - swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(UpdateMLTrainingMetadata, draft_) + + sizeof(UpdateMLTrainingMetadata::draft_) + - PROTOBUF_FIELD_OFFSET(UpdateMLTrainingMetadata, model_type_)>( + reinterpret_cast(&model_type_), + reinterpret_cast(&other->model_type_)); } -::google::protobuf::Metadata UploadModuleFileRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata UpdateMLTrainingMetadata::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[166]); + file_level_metadata_app_2fv1_2fapp_2eproto[167]); } + // =================================================================== -class UploadModuleFileResponse::_Internal { +class Model::_Internal { public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_markdown_documentation(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_description(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } }; -UploadModuleFileResponse::UploadModuleFileResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:viam.app.v1.UploadModuleFileResponse) +Model::Model(::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.Model) } -inline PROTOBUF_NDEBUG_INLINE UploadModuleFileResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : url_(arena, from.url_), - _cached_size_{0} {} - -UploadModuleFileResponse::UploadModuleFileResponse( - ::google::protobuf::Arena* arena, - const UploadModuleFileResponse& from) - : ::google::protobuf::Message(arena) { - UploadModuleFileResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:viam.app.v1.UploadModuleFileResponse) +Model::Model(const Model& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + api_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + api_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_api().empty()) { + api_.Set(from._internal_api(), + GetArenaForAllocation()); + } + model_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + model_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_model().empty()) { + model_.Set(from._internal_model(), + GetArenaForAllocation()); + } + markdown_documentation_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + markdown_documentation_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (from._internal_has_markdown_documentation()) { + markdown_documentation_.Set(from._internal_markdown_documentation(), + GetArenaForAllocation()); + } + description_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + description_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (from._internal_has_description()) { + description_.Set(from._internal_description(), + GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.Model) } -inline PROTOBUF_NDEBUG_INLINE UploadModuleFileResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : url_(arena), - _cached_size_{0} {} -inline void UploadModuleFileResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void Model::SharedCtor() { +api_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + api_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +model_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + model_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +markdown_documentation_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + markdown_documentation_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +description_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + description_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } -UploadModuleFileResponse::~UploadModuleFileResponse() { - // @@protoc_insertion_point(destructor:viam.app.v1.UploadModuleFileResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + +Model::~Model() { + // @@protoc_insertion_point(destructor:viam.app.v1.Model) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } -inline void UploadModuleFileResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.url_.Destroy(); - _impl_.~Impl_(); + +inline void Model::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + api_.Destroy(); + model_.Destroy(); + markdown_documentation_.Destroy(); + description_.Destroy(); } -PROTOBUF_NOINLINE void UploadModuleFileResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.UploadModuleFileResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; +void Model::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void Model::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.Model) + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.url_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* UploadModuleFileResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + api_.ClearToEmpty(); + model_.ClearToEmpty(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + markdown_documentation_.ClearNonDefaultToEmpty(); + } + if (cached_has_bits & 0x00000002u) { + description_.ClearNonDefaultToEmpty(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Model::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string api = 1 [json_name = "api"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_api(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.Model.api")); + } else + goto handle_unusual; + continue; + // string model = 2 [json_name = "model"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_model(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.Model.model")); + } else + goto handle_unusual; + continue; + // optional string markdown_documentation = 3 [json_name = "markdownDocumentation"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_markdown_documentation(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.Model.markdown_documentation")); + } else + goto handle_unusual; + continue; + // optional string description = 4 [json_name = "description"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_description(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.Model.description")); + } 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: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } +uint8_t* Model::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.Model) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 48, 2> UploadModuleFileResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_UploadModuleFileResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string url = 1 [json_name = "url"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(UploadModuleFileResponse, _impl_.url_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string url = 1 [json_name = "url"]; - {PROTOBUF_FIELD_OFFSET(UploadModuleFileResponse, _impl_.url_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\44\3\0\0\0\0\0\0" - "viam.app.v1.UploadModuleFileResponse" - "url" - }}, -}; - -::uint8_t* UploadModuleFileResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.UploadModuleFileResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + // string api = 1 [json_name = "api"]; + if (!this->_internal_api().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_api().data(), static_cast(this->_internal_api().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.Model.api"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_api(), target); + } - // string url = 1 [json_name = "url"]; - if (!this->_internal_url().empty()) { - const std::string& _s = this->_internal_url(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.UploadModuleFileResponse.url"); - target = stream->WriteStringMaybeAliased(1, _s, target); + // string model = 2 [json_name = "model"]; + if (!this->_internal_model().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_model().data(), static_cast(this->_internal_model().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.Model.model"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_model(), target); + } + + // optional string markdown_documentation = 3 [json_name = "markdownDocumentation"]; + if (_internal_has_markdown_documentation()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_markdown_documentation().data(), static_cast(this->_internal_markdown_documentation().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.Model.markdown_documentation"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_markdown_documentation(), target); + } + + // optional string description = 4 [json_name = "description"]; + if (_internal_has_description()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_description().data(), static_cast(this->_internal_description().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.Model.description"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_description(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.UploadModuleFileResponse) + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.Model) return target; } -::size_t UploadModuleFileResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.UploadModuleFileResponse) - ::size_t total_size = 0; +size_t Model::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.Model) + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string url = 1 [json_name = "url"]; - if (!this->_internal_url().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_url()); + // string api = 1 [json_name = "api"]; + if (!this->_internal_api().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_api()); + } + + // string model = 2 [json_name = "model"]; + if (!this->_internal_model().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_model()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + // optional string markdown_documentation = 3 [json_name = "markdownDocumentation"]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_markdown_documentation()); + } + + // optional string description = 4 [json_name = "description"]; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_description()); + } + + } + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData UploadModuleFileResponse::_class_data_ = { - UploadModuleFileResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Model::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Model::MergeImpl }; -const ::google::protobuf::Message::ClassData* UploadModuleFileResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Model::GetClassData() const { return &_class_data_; } + +void Model::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void UploadModuleFileResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.UploadModuleFileResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Model::MergeFrom(const Model& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.Model) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_url().empty()) { - _this->_internal_set_url(from._internal_url()); + if (!from._internal_api().empty()) { + _internal_set_api(from._internal_api()); + } + if (!from._internal_model().empty()) { + _internal_set_model(from._internal_model()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + _internal_set_markdown_documentation(from._internal_markdown_documentation()); + } + if (cached_has_bits & 0x00000002u) { + _internal_set_description(from._internal_description()); + } + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void UploadModuleFileResponse::CopyFrom(const UploadModuleFileResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.UploadModuleFileResponse) +void Model::CopyFrom(const Model& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.Model) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool UploadModuleFileResponse::IsInitialized() const { +bool Model::IsInitialized() const { return true; } -::_pbi::CachedSize* UploadModuleFileResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void UploadModuleFileResponse::InternalSwap(UploadModuleFileResponse* PROTOBUF_RESTRICT other) { +void Model::InternalSwap(Model* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.url_, &other->_impl_.url_, arena); -} - -::google::protobuf::Metadata UploadModuleFileResponse::GetMetadata() const { + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &api_, lhs_arena, + &other->api_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &model_, lhs_arena, + &other->model_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &markdown_documentation_, lhs_arena, + &other->markdown_documentation_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &description_, lhs_arena, + &other->description_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Model::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[167]); + file_level_metadata_app_2fv1_2fapp_2eproto[168]); } + // =================================================================== -class GetModuleRequest::_Internal { +class ModuleFileInfo::_Internal { public: }; -GetModuleRequest::GetModuleRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:viam.app.v1.GetModuleRequest) +ModuleFileInfo::ModuleFileInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + platform_tags_(arena) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.ModuleFileInfo) } -inline PROTOBUF_NDEBUG_INLINE GetModuleRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : module_id_(arena, from.module_id_), - _cached_size_{0} {} - -GetModuleRequest::GetModuleRequest( - ::google::protobuf::Arena* arena, - const GetModuleRequest& from) - : ::google::protobuf::Message(arena) { - GetModuleRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetModuleRequest) +ModuleFileInfo::ModuleFileInfo(const ModuleFileInfo& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + platform_tags_(from.platform_tags_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + 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()); + } + version_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + version_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_version().empty()) { + version_.Set(from._internal_version(), + GetArenaForAllocation()); + } + platform_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + platform_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_platform().empty()) { + platform_.Set(from._internal_platform(), + GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.ModuleFileInfo) } -inline PROTOBUF_NDEBUG_INLINE GetModuleRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : module_id_(arena), - _cached_size_{0} {} -inline void GetModuleRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void ModuleFileInfo::SharedCtor() { +module_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + module_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +version_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + version_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +platform_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + platform_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } -GetModuleRequest::~GetModuleRequest() { - // @@protoc_insertion_point(destructor:viam.app.v1.GetModuleRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + +ModuleFileInfo::~ModuleFileInfo() { + // @@protoc_insertion_point(destructor:viam.app.v1.ModuleFileInfo) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } -inline void GetModuleRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.module_id_.Destroy(); - _impl_.~Impl_(); -} -PROTOBUF_NOINLINE void GetModuleRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetModuleRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; +inline void ModuleFileInfo::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + module_id_.Destroy(); + version_.Destroy(); + platform_.Destroy(); +} - _impl_.module_id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void ModuleFileInfo::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* GetModuleRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void ModuleFileInfo::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.ModuleFileInfo) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + platform_tags_.Clear(); + module_id_.ClearToEmpty(); + version_.ClearToEmpty(); + platform_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ModuleFileInfo::_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 module_id = 1 [json_name = "moduleId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_module_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ModuleFileInfo.module_id")); + } else + goto handle_unusual; + continue; + // string version = 2 [json_name = "version"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_version(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ModuleFileInfo.version")); + } else + goto handle_unusual; + continue; + // string platform = 3 [json_name = "platform"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_platform(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ModuleFileInfo.platform")); + } else + goto handle_unusual; + continue; + // repeated string platform_tags = 5 [json_name = "platformTags"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_platform_tags(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ModuleFileInfo.platform_tags")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 46, 2> GetModuleRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetModuleRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string module_id = 1 [json_name = "moduleId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetModuleRequest, _impl_.module_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string module_id = 1 [json_name = "moduleId"]; - {PROTOBUF_FIELD_OFFSET(GetModuleRequest, _impl_.module_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\34\11\0\0\0\0\0\0" - "viam.app.v1.GetModuleRequest" - "module_id" - }}, -}; - -::uint8_t* GetModuleRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetModuleRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; +uint8_t* ModuleFileInfo::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ModuleFileInfo) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string module_id = 1 [json_name = "moduleId"]; if (!this->_internal_module_id().empty()) { - const std::string& _s = this->_internal_module_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.GetModuleRequest.module_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::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.ModuleFileInfo.module_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_module_id(), target); + } + + // string version = 2 [json_name = "version"]; + if (!this->_internal_version().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_version().data(), static_cast(this->_internal_version().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ModuleFileInfo.version"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_version(), target); + } + + // string platform = 3 [json_name = "platform"]; + if (!this->_internal_platform().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_platform().data(), static_cast(this->_internal_platform().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ModuleFileInfo.platform"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_platform(), target); + } + + // repeated string platform_tags = 5 [json_name = "platformTags"]; + for (int i = 0, n = this->_internal_platform_tags_size(); i < n; i++) { + const auto& s = this->_internal_platform_tags(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ModuleFileInfo.platform_tags"); + target = stream->WriteString(5, s, target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.GetModuleRequest) + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.ModuleFileInfo) return target; } -::size_t GetModuleRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetModuleRequest) - ::size_t total_size = 0; +size_t ModuleFileInfo::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ModuleFileInfo) + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + // repeated string platform_tags = 5 [json_name = "platformTags"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(platform_tags_.size()); + for (int i = 0, n = platform_tags_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + platform_tags_.Get(i)); + } + // string module_id = 1 [json_name = "moduleId"]; if (!this->_internal_module_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_module_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_module_id()); + } + + // string version = 2 [json_name = "version"]; + if (!this->_internal_version().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_version()); + } + + // string platform = 3 [json_name = "platform"]; + if (!this->_internal_platform().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_platform()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetModuleRequest::_class_data_ = { - GetModuleRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ModuleFileInfo::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ModuleFileInfo::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetModuleRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ModuleFileInfo::GetClassData() const { return &_class_data_; } + +void ModuleFileInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetModuleRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetModuleRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ModuleFileInfo::MergeFrom(const ModuleFileInfo& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ModuleFileInfo) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; + platform_tags_.MergeFrom(from.platform_tags_); if (!from._internal_module_id().empty()) { - _this->_internal_set_module_id(from._internal_module_id()); + _internal_set_module_id(from._internal_module_id()); + } + if (!from._internal_version().empty()) { + _internal_set_version(from._internal_version()); + } + if (!from._internal_platform().empty()) { + _internal_set_platform(from._internal_platform()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void GetModuleRequest::CopyFrom(const GetModuleRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.GetModuleRequest) +void ModuleFileInfo::CopyFrom(const ModuleFileInfo& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.ModuleFileInfo) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool GetModuleRequest::IsInitialized() const { +bool ModuleFileInfo::IsInitialized() const { return true; } -::_pbi::CachedSize* GetModuleRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetModuleRequest::InternalSwap(GetModuleRequest* PROTOBUF_RESTRICT other) { +void ModuleFileInfo::InternalSwap(ModuleFileInfo* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.module_id_, &other->_impl_.module_id_, arena); -} - -::google::protobuf::Metadata GetModuleRequest::GetMetadata() const { + platform_tags_.InternalSwap(&other->platform_tags_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &module_id_, lhs_arena, + &other->module_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &version_, lhs_arena, + &other->version_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &platform_, lhs_arena, + &other->platform_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ModuleFileInfo::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[168]); + file_level_metadata_app_2fv1_2fapp_2eproto[169]); } + // =================================================================== -class GetModuleResponse::_Internal { +class UploadModuleFileRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetModuleResponse, _impl_._has_bits_); - static const ::viam::app::v1::Module& module(const GetModuleResponse* msg); - static void set_has_module(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::viam::app::v1::ModuleFileInfo& module_file_info(const UploadModuleFileRequest* msg); }; -const ::viam::app::v1::Module& GetModuleResponse::_Internal::module(const GetModuleResponse* msg) { - return *msg->_impl_.module_; +const ::viam::app::v1::ModuleFileInfo& +UploadModuleFileRequest::_Internal::module_file_info(const UploadModuleFileRequest* msg) { + return *msg->module_file_.module_file_info_; } -GetModuleResponse::GetModuleResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:viam.app.v1.GetModuleResponse) +void UploadModuleFileRequest::set_allocated_module_file_info(::viam::app::v1::ModuleFileInfo* module_file_info) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_module_file(); + if (module_file_info) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(module_file_info); + if (message_arena != submessage_arena) { + module_file_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, module_file_info, submessage_arena); + } + set_has_module_file_info(); + module_file_.module_file_info_ = module_file_info; + } + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UploadModuleFileRequest.module_file_info) } -inline PROTOBUF_NDEBUG_INLINE GetModuleResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -GetModuleResponse::GetModuleResponse( - ::google::protobuf::Arena* arena, - const GetModuleResponse& from) - : ::google::protobuf::Message(arena) { - GetModuleResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.module_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::app::v1::Module>(arena, *from._impl_.module_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetModuleResponse) +UploadModuleFileRequest::UploadModuleFileRequest(::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.UploadModuleFileRequest) +} +UploadModuleFileRequest::UploadModuleFileRequest(const UploadModuleFileRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + clear_has_module_file(); + switch (from.module_file_case()) { + case kModuleFileInfo: { + _internal_mutable_module_file_info()->::viam::app::v1::ModuleFileInfo::MergeFrom(from._internal_module_file_info()); + break; + } + case kFile: { + _internal_set_file(from._internal_file()); + break; + } + case MODULE_FILE_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.UploadModuleFileRequest) } -inline PROTOBUF_NDEBUG_INLINE GetModuleResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void GetModuleResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.module_ = {}; +inline void UploadModuleFileRequest::SharedCtor() { +clear_has_module_file(); } -GetModuleResponse::~GetModuleResponse() { - // @@protoc_insertion_point(destructor:viam.app.v1.GetModuleResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + +UploadModuleFileRequest::~UploadModuleFileRequest() { + // @@protoc_insertion_point(destructor:viam.app.v1.UploadModuleFileRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } -inline void GetModuleResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.module_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void GetModuleResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetModuleResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.module_ != nullptr); - _impl_.module_->Clear(); +inline void UploadModuleFileRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (has_module_file()) { + clear_module_file(); } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const char* GetModuleResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +void UploadModuleFileRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } +void UploadModuleFileRequest::clear_module_file() { +// @@protoc_insertion_point(one_of_clear_start:viam.app.v1.UploadModuleFileRequest) + switch (module_file_case()) { + case kModuleFileInfo: { + if (GetArenaForAllocation() == nullptr) { + delete module_file_.module_file_info_; + } + break; + } + case kFile: { + module_file_.file_.Destroy(); + break; + } + case MODULE_FILE_NOT_SET: { + break; + } + } + _oneof_case_[0] = MODULE_FILE_NOT_SET; +} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetModuleResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetModuleResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetModuleResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.app.v1.Module module = 1 [json_name = "module"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetModuleResponse, _impl_.module_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.app.v1.Module module = 1 [json_name = "module"]; - {PROTOBUF_FIELD_OFFSET(GetModuleResponse, _impl_.module_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::Module>()}, - }}, {{ - }}, -}; - -::uint8_t* GetModuleResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetModuleResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .viam.app.v1.Module module = 1 [json_name = "module"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::module(this), - _Internal::module(this).GetCachedSize(), target, stream); + +void UploadModuleFileRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.UploadModuleFileRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_module_file(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* UploadModuleFileRequest::_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.app.v1.ModuleFileInfo module_file_info = 1 [json_name = "moduleFileInfo"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_module_file_info(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bytes file = 2 [json_name = "file"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_file(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + 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* UploadModuleFileRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.UploadModuleFileRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .viam.app.v1.ModuleFileInfo module_file_info = 1 [json_name = "moduleFileInfo"]; + if (_internal_has_module_file_info()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::module_file_info(this), + _Internal::module_file_info(this).GetCachedSize(), target, stream); + } + + // bytes file = 2 [json_name = "file"]; + if (_internal_has_file()) { + target = stream->WriteBytesMaybeAliased( + 2, this->_internal_file(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.GetModuleResponse) + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.UploadModuleFileRequest) return target; } -::size_t GetModuleResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetModuleResponse) - ::size_t total_size = 0; +size_t UploadModuleFileRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.UploadModuleFileRequest) + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .viam.app.v1.Module module = 1 [json_name = "module"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.module_); + switch (module_file_case()) { + // .viam.app.v1.ModuleFileInfo module_file_info = 1 [json_name = "moduleFileInfo"]; + case kModuleFileInfo: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *module_file_.module_file_info_); + break; + } + // bytes file = 2 [json_name = "file"]; + case kFile: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_file()); + break; + } + case MODULE_FILE_NOT_SET: { + break; + } } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetModuleResponse::_class_data_ = { - GetModuleResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UploadModuleFileRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + UploadModuleFileRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetModuleResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UploadModuleFileRequest::GetClassData() const { return &_class_data_; } + +void UploadModuleFileRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetModuleResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetModuleResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void UploadModuleFileRequest::MergeFrom(const UploadModuleFileRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.UploadModuleFileRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_module()->::viam::app::v1::Module::MergeFrom( - from._internal_module()); + switch (from.module_file_case()) { + case kModuleFileInfo: { + _internal_mutable_module_file_info()->::viam::app::v1::ModuleFileInfo::MergeFrom(from._internal_module_file_info()); + break; + } + case kFile: { + _internal_set_file(from._internal_file()); + break; + } + case MODULE_FILE_NOT_SET: { + break; + } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void GetModuleResponse::CopyFrom(const GetModuleResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.GetModuleResponse) +void UploadModuleFileRequest::CopyFrom(const UploadModuleFileRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.UploadModuleFileRequest) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool GetModuleResponse::IsInitialized() const { +bool UploadModuleFileRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetModuleResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetModuleResponse::InternalSwap(GetModuleResponse* PROTOBUF_RESTRICT other) { +void UploadModuleFileRequest::InternalSwap(UploadModuleFileRequest* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.module_, other->_impl_.module_); + swap(module_file_, other->module_file_); + swap(_oneof_case_[0], other->_oneof_case_[0]); } -::google::protobuf::Metadata GetModuleResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata UploadModuleFileRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[169]); + file_level_metadata_app_2fv1_2fapp_2eproto[170]); } + // =================================================================== -class Module::_Internal { +class UploadModuleFileResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Module, _impl_._has_bits_); - static void set_has_first_run(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -Module::Module(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:viam.app.v1.Module) -} -inline PROTOBUF_NDEBUG_INLINE Module::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - versions_{visibility, arena, from.versions_}, - models_{visibility, arena, from.models_}, - module_id_(arena, from.module_id_), - name_(arena, from.name_), - url_(arena, from.url_), - description_(arena, from.description_), - organization_id_(arena, from.organization_id_), - entrypoint_(arena, from.entrypoint_), - public_namespace_(arena, from.public_namespace_), - first_run_(arena, from.first_run_) {} - -Module::Module( - ::google::protobuf::Arena* arena, - const Module& from) - : ::google::protobuf::Message(arena) { - Module* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, total_robot_usage_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, total_robot_usage_), - offsetof(Impl_, visibility_) - - offsetof(Impl_, total_robot_usage_) + - sizeof(Impl_::visibility_)); - - // @@protoc_insertion_point(copy_constructor:viam.app.v1.Module) +UploadModuleFileResponse::UploadModuleFileResponse(::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.UploadModuleFileResponse) } -inline PROTOBUF_NDEBUG_INLINE Module::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - versions_{visibility, arena}, - models_{visibility, arena}, - module_id_(arena), - name_(arena), - url_(arena), - description_(arena), - organization_id_(arena), - entrypoint_(arena), - public_namespace_(arena), - first_run_(arena) {} - -inline void Module::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, total_robot_usage_), - 0, - offsetof(Impl_, visibility_) - - offsetof(Impl_, total_robot_usage_) + - sizeof(Impl_::visibility_)); +UploadModuleFileResponse::UploadModuleFileResponse(const UploadModuleFileResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + url_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + url_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_url().empty()) { + url_.Set(from._internal_url(), + GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.UploadModuleFileResponse) } -Module::~Module() { - // @@protoc_insertion_point(destructor:viam.app.v1.Module) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + +inline void UploadModuleFileResponse::SharedCtor() { +url_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + url_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } -inline void Module::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.module_id_.Destroy(); - _impl_.name_.Destroy(); - _impl_.url_.Destroy(); - _impl_.description_.Destroy(); - _impl_.organization_id_.Destroy(); - _impl_.entrypoint_.Destroy(); - _impl_.public_namespace_.Destroy(); - _impl_.first_run_.Destroy(); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void Module::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.Module) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - _impl_.versions_.Clear(); - _impl_.models_.Clear(); - _impl_.module_id_.ClearToEmpty(); - _impl_.name_.ClearToEmpty(); - _impl_.url_.ClearToEmpty(); - _impl_.description_.ClearToEmpty(); - _impl_.organization_id_.ClearToEmpty(); - _impl_.entrypoint_.ClearToEmpty(); - _impl_.public_namespace_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - _impl_.first_run_.ClearNonDefaultToEmpty(); +UploadModuleFileResponse::~UploadModuleFileResponse() { + // @@protoc_insertion_point(destructor:viam.app.v1.UploadModuleFileResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; } - ::memset(&_impl_.total_robot_usage_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.visibility_) - - reinterpret_cast(&_impl_.total_robot_usage_)) + sizeof(_impl_.visibility_)); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); } -const char* Module::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +inline void UploadModuleFileResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + url_.Destroy(); } +void UploadModuleFileResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<4, 13, 2, 112, 2> Module::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Module, _impl_._has_bits_), - 0, // no _extensions_ - 13, 120, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294959104, // skipmap - offsetof(decltype(_table_), field_entries), - 13, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Module_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string module_id = 1 [json_name = "moduleId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Module, _impl_.module_id_)}}, - // string name = 2 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(Module, _impl_.name_)}}, - // .viam.app.v1.Visibility visibility = 3 [json_name = "visibility"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Module, _impl_.visibility_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(Module, _impl_.visibility_)}}, - // repeated .viam.app.v1.VersionHistory versions = 4 [json_name = "versions"]; - {::_pbi::TcParser::FastMtR1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(Module, _impl_.versions_)}}, - // string url = 5 [json_name = "url"]; - {::_pbi::TcParser::FastUS1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(Module, _impl_.url_)}}, - // string description = 6 [json_name = "description"]; - {::_pbi::TcParser::FastUS1, - {50, 63, 0, PROTOBUF_FIELD_OFFSET(Module, _impl_.description_)}}, - // repeated .viam.app.v1.Model models = 7 [json_name = "models"]; - {::_pbi::TcParser::FastMtR1, - {58, 63, 1, PROTOBUF_FIELD_OFFSET(Module, _impl_.models_)}}, - // int64 total_robot_usage = 8 [json_name = "totalRobotUsage"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(Module, _impl_.total_robot_usage_), 63>(), - {64, 63, 0, PROTOBUF_FIELD_OFFSET(Module, _impl_.total_robot_usage_)}}, - // int64 total_organization_usage = 9 [json_name = "totalOrganizationUsage"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(Module, _impl_.total_organization_usage_), 63>(), - {72, 63, 0, PROTOBUF_FIELD_OFFSET(Module, _impl_.total_organization_usage_)}}, - // string organization_id = 10 [json_name = "organizationId"]; - {::_pbi::TcParser::FastUS1, - {82, 63, 0, PROTOBUF_FIELD_OFFSET(Module, _impl_.organization_id_)}}, - // string entrypoint = 11 [json_name = "entrypoint"]; - {::_pbi::TcParser::FastUS1, - {90, 63, 0, PROTOBUF_FIELD_OFFSET(Module, _impl_.entrypoint_)}}, - // string public_namespace = 12 [json_name = "publicNamespace"]; - {::_pbi::TcParser::FastUS1, - {98, 63, 0, PROTOBUF_FIELD_OFFSET(Module, _impl_.public_namespace_)}}, - // optional string first_run = 13 [json_name = "firstRun"]; - {::_pbi::TcParser::FastUS1, - {106, 0, 0, PROTOBUF_FIELD_OFFSET(Module, _impl_.first_run_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string module_id = 1 [json_name = "moduleId"]; - {PROTOBUF_FIELD_OFFSET(Module, _impl_.module_id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string name = 2 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(Module, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .viam.app.v1.Visibility visibility = 3 [json_name = "visibility"]; - {PROTOBUF_FIELD_OFFSET(Module, _impl_.visibility_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // repeated .viam.app.v1.VersionHistory versions = 4 [json_name = "versions"]; - {PROTOBUF_FIELD_OFFSET(Module, _impl_.versions_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // string url = 5 [json_name = "url"]; - {PROTOBUF_FIELD_OFFSET(Module, _impl_.url_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string description = 6 [json_name = "description"]; - {PROTOBUF_FIELD_OFFSET(Module, _impl_.description_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated .viam.app.v1.Model models = 7 [json_name = "models"]; - {PROTOBUF_FIELD_OFFSET(Module, _impl_.models_), -1, 1, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // int64 total_robot_usage = 8 [json_name = "totalRobotUsage"]; - {PROTOBUF_FIELD_OFFSET(Module, _impl_.total_robot_usage_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - // int64 total_organization_usage = 9 [json_name = "totalOrganizationUsage"]; - {PROTOBUF_FIELD_OFFSET(Module, _impl_.total_organization_usage_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - // string organization_id = 10 [json_name = "organizationId"]; - {PROTOBUF_FIELD_OFFSET(Module, _impl_.organization_id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string entrypoint = 11 [json_name = "entrypoint"]; - {PROTOBUF_FIELD_OFFSET(Module, _impl_.entrypoint_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string public_namespace = 12 [json_name = "publicNamespace"]; - {PROTOBUF_FIELD_OFFSET(Module, _impl_.public_namespace_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // optional string first_run = 13 [json_name = "firstRun"]; - {PROTOBUF_FIELD_OFFSET(Module, _impl_.first_run_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::VersionHistory>()}, - {::_pbi::TcParser::GetTable<::viam::app::v1::Model>()}, - }}, {{ - "\22\11\4\0\0\3\13\0\0\0\17\12\20\11\0\0" - "viam.app.v1.Module" - "module_id" - "name" - "url" - "description" - "organization_id" - "entrypoint" - "public_namespace" - "first_run" - }}, -}; - -::uint8_t* Module::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.Module) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string module_id = 1 [json_name = "moduleId"]; - if (!this->_internal_module_id().empty()) { - const std::string& _s = this->_internal_module_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.Module.module_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // string name = 2 [json_name = "name"]; - if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.Module.name"); - target = stream->WriteStringMaybeAliased(2, _s, target); - } - - // .viam.app.v1.Visibility visibility = 3 [json_name = "visibility"]; - if (this->_internal_visibility() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 3, this->_internal_visibility(), target); - } +void UploadModuleFileResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.UploadModuleFileResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + url_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* UploadModuleFileResponse::_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 url = 1 [json_name = "url"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_url(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.UploadModuleFileResponse.url")); + } 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_ +} - // repeated .viam.app.v1.VersionHistory versions = 4 [json_name = "versions"]; - for (unsigned i = 0, - n = static_cast(this->_internal_versions_size()); i < n; i++) { - const auto& repfield = this->_internal_versions().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessage(4, repfield, repfield.GetCachedSize(), target, stream); - } +uint8_t* UploadModuleFileResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.UploadModuleFileResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - // string url = 5 [json_name = "url"]; + // string url = 1 [json_name = "url"]; if (!this->_internal_url().empty()) { - const std::string& _s = this->_internal_url(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.Module.url"); - target = stream->WriteStringMaybeAliased(5, _s, target); - } - - // string description = 6 [json_name = "description"]; - if (!this->_internal_description().empty()) { - const std::string& _s = this->_internal_description(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.Module.description"); - target = stream->WriteStringMaybeAliased(6, _s, target); - } - - // repeated .viam.app.v1.Model models = 7 [json_name = "models"]; - for (unsigned i = 0, - n = static_cast(this->_internal_models_size()); i < n; i++) { - const auto& repfield = this->_internal_models().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessage(7, repfield, repfield.GetCachedSize(), target, stream); - } - - // int64 total_robot_usage = 8 [json_name = "totalRobotUsage"]; - if (this->_internal_total_robot_usage() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<8>( - stream, this->_internal_total_robot_usage(), target); - } - - // int64 total_organization_usage = 9 [json_name = "totalOrganizationUsage"]; - if (this->_internal_total_organization_usage() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<9>( - stream, this->_internal_total_organization_usage(), target); - } - - // string organization_id = 10 [json_name = "organizationId"]; - if (!this->_internal_organization_id().empty()) { - const std::string& _s = this->_internal_organization_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.Module.organization_id"); - target = stream->WriteStringMaybeAliased(10, _s, target); - } - - // string entrypoint = 11 [json_name = "entrypoint"]; - if (!this->_internal_entrypoint().empty()) { - const std::string& _s = this->_internal_entrypoint(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.Module.entrypoint"); - target = stream->WriteStringMaybeAliased(11, _s, target); - } - - // string public_namespace = 12 [json_name = "publicNamespace"]; - if (!this->_internal_public_namespace().empty()) { - const std::string& _s = this->_internal_public_namespace(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.Module.public_namespace"); - target = stream->WriteStringMaybeAliased(12, _s, target); - } - - cached_has_bits = _impl_._has_bits_[0]; - // optional string first_run = 13 [json_name = "firstRun"]; - if (cached_has_bits & 0x00000001u) { - const std::string& _s = this->_internal_first_run(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.Module.first_run"); - target = stream->WriteStringMaybeAliased(13, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_url().data(), static_cast(this->_internal_url().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.UploadModuleFileResponse.url"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_url(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.Module) + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.UploadModuleFileResponse) return target; } -::size_t Module::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.Module) - ::size_t total_size = 0; +size_t UploadModuleFileResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.UploadModuleFileResponse) + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated .viam.app.v1.VersionHistory versions = 4 [json_name = "versions"]; - total_size += 1UL * this->_internal_versions_size(); - for (const auto& msg : this->_internal_versions()) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); - } - // repeated .viam.app.v1.Model models = 7 [json_name = "models"]; - total_size += 1UL * this->_internal_models_size(); - for (const auto& msg : this->_internal_models()) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); - } - // string module_id = 1 [json_name = "moduleId"]; - if (!this->_internal_module_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_module_id()); - } - - // string name = 2 [json_name = "name"]; - if (!this->_internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); - } - - // string url = 5 [json_name = "url"]; + // string url = 1 [json_name = "url"]; if (!this->_internal_url().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_url()); - } - - // string description = 6 [json_name = "description"]; - if (!this->_internal_description().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_description()); - } - - // string organization_id = 10 [json_name = "organizationId"]; - if (!this->_internal_organization_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_organization_id()); - } - - // string entrypoint = 11 [json_name = "entrypoint"]; - if (!this->_internal_entrypoint().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_entrypoint()); - } - - // string public_namespace = 12 [json_name = "publicNamespace"]; - if (!this->_internal_public_namespace().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_public_namespace()); - } - - // optional string first_run = 13 [json_name = "firstRun"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_first_run()); - } - - // int64 total_robot_usage = 8 [json_name = "totalRobotUsage"]; - if (this->_internal_total_robot_usage() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( - this->_internal_total_robot_usage()); - } - - // int64 total_organization_usage = 9 [json_name = "totalOrganizationUsage"]; - if (this->_internal_total_organization_usage() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( - this->_internal_total_organization_usage()); - } - - // .viam.app.v1.Visibility visibility = 3 [json_name = "visibility"]; - if (this->_internal_visibility() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_visibility()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_url()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Module::_class_data_ = { - Module::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UploadModuleFileResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + UploadModuleFileResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* Module::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UploadModuleFileResponse::GetClassData() const { return &_class_data_; } + +void UploadModuleFileResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Module::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.Module) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void UploadModuleFileResponse::MergeFrom(const UploadModuleFileResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.UploadModuleFileResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_versions()->MergeFrom( - from._internal_versions()); - _this->_internal_mutable_models()->MergeFrom( - from._internal_models()); - if (!from._internal_module_id().empty()) { - _this->_internal_set_module_id(from._internal_module_id()); - } - if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); - } if (!from._internal_url().empty()) { - _this->_internal_set_url(from._internal_url()); - } - if (!from._internal_description().empty()) { - _this->_internal_set_description(from._internal_description()); - } - if (!from._internal_organization_id().empty()) { - _this->_internal_set_organization_id(from._internal_organization_id()); - } - if (!from._internal_entrypoint().empty()) { - _this->_internal_set_entrypoint(from._internal_entrypoint()); - } - if (!from._internal_public_namespace().empty()) { - _this->_internal_set_public_namespace(from._internal_public_namespace()); - } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_set_first_run(from._internal_first_run()); - } - if (from._internal_total_robot_usage() != 0) { - _this->_internal_set_total_robot_usage(from._internal_total_robot_usage()); - } - if (from._internal_total_organization_usage() != 0) { - _this->_internal_set_total_organization_usage(from._internal_total_organization_usage()); - } - if (from._internal_visibility() != 0) { - _this->_internal_set_visibility(from._internal_visibility()); + _internal_set_url(from._internal_url()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void Module::CopyFrom(const Module& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.Module) +void UploadModuleFileResponse::CopyFrom(const UploadModuleFileResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.UploadModuleFileResponse) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool Module::IsInitialized() const { +bool UploadModuleFileResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* Module::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Module::InternalSwap(Module* PROTOBUF_RESTRICT other) { +void UploadModuleFileResponse::InternalSwap(UploadModuleFileResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.versions_.InternalSwap(&other->_impl_.versions_); - _impl_.models_.InternalSwap(&other->_impl_.models_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.module_id_, &other->_impl_.module_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.url_, &other->_impl_.url_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.description_, &other->_impl_.description_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.organization_id_, &other->_impl_.organization_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.entrypoint_, &other->_impl_.entrypoint_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.public_namespace_, &other->_impl_.public_namespace_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.first_run_, &other->_impl_.first_run_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(Module, _impl_.visibility_) - + sizeof(Module::_impl_.visibility_) - - PROTOBUF_FIELD_OFFSET(Module, _impl_.total_robot_usage_)>( - reinterpret_cast(&_impl_.total_robot_usage_), - reinterpret_cast(&other->_impl_.total_robot_usage_)); -} - -::google::protobuf::Metadata Module::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &url_, lhs_arena, + &other->url_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata UploadModuleFileResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[170]); + file_level_metadata_app_2fv1_2fapp_2eproto[171]); } + // =================================================================== -class VersionHistory::_Internal { +class GetModuleRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(VersionHistory, _impl_._has_bits_); - static void set_has_first_run(HasBits* has_bits) { + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_include_markdown_documentation(HasBits* has_bits) { (*has_bits)[0] |= 1u; } }; -VersionHistory::VersionHistory(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:viam.app.v1.VersionHistory) +GetModuleRequest::GetModuleRequest(::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.GetModuleRequest) } -inline PROTOBUF_NDEBUG_INLINE VersionHistory::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - files_{visibility, arena, from.files_}, - models_{visibility, arena, from.models_}, - version_(arena, from.version_), - entrypoint_(arena, from.entrypoint_), - first_run_(arena, from.first_run_) {} - -VersionHistory::VersionHistory( - ::google::protobuf::Arena* arena, - const VersionHistory& from) - : ::google::protobuf::Message(arena) { - VersionHistory* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:viam.app.v1.VersionHistory) +GetModuleRequest::GetModuleRequest(const GetModuleRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + 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()); + } + include_markdown_documentation_ = from.include_markdown_documentation_; + // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetModuleRequest) } -inline PROTOBUF_NDEBUG_INLINE VersionHistory::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - files_{visibility, arena}, - models_{visibility, arena}, - version_(arena), - entrypoint_(arena), - first_run_(arena) {} -inline void VersionHistory::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetModuleRequest::SharedCtor() { +module_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + module_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +include_markdown_documentation_ = false; } -VersionHistory::~VersionHistory() { - // @@protoc_insertion_point(destructor:viam.app.v1.VersionHistory) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + +GetModuleRequest::~GetModuleRequest() { + // @@protoc_insertion_point(destructor:viam.app.v1.GetModuleRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } -inline void VersionHistory::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.version_.Destroy(); - _impl_.entrypoint_.Destroy(); - _impl_.first_run_.Destroy(); - _impl_.~Impl_(); -} -PROTOBUF_NOINLINE void VersionHistory::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.VersionHistory) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; +inline void GetModuleRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + module_id_.Destroy(); +} - _impl_.files_.Clear(); - _impl_.models_.Clear(); - _impl_.version_.ClearToEmpty(); - _impl_.entrypoint_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - _impl_.first_run_.ClearNonDefaultToEmpty(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void GetModuleRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* VersionHistory::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void GetModuleRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetModuleRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + module_id_.ClearToEmpty(); + include_markdown_documentation_ = false; + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetModuleRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string module_id = 1 [json_name = "moduleId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_module_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.GetModuleRequest.module_id")); + } else + goto handle_unusual; + continue; + // optional bool include_markdown_documentation = 2 [json_name = "includeMarkdownDocumentation"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _Internal::set_has_include_markdown_documentation(&has_bits); + include_markdown_documentation_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } +uint8_t* GetModuleRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetModuleRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 5, 2, 61, 2> VersionHistory::_table_ = { - { - PROTOBUF_FIELD_OFFSET(VersionHistory, _impl_._has_bits_), - 0, // no _extensions_ - 5, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967264, // skipmap - offsetof(decltype(_table_), field_entries), - 5, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_VersionHistory_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string version = 1 [json_name = "version"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(VersionHistory, _impl_.version_)}}, - // repeated .viam.app.v1.Uploads files = 2 [json_name = "files"]; - {::_pbi::TcParser::FastMtR1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(VersionHistory, _impl_.files_)}}, - // repeated .viam.app.v1.Model models = 3 [json_name = "models"]; - {::_pbi::TcParser::FastMtR1, - {26, 63, 1, PROTOBUF_FIELD_OFFSET(VersionHistory, _impl_.models_)}}, - // string entrypoint = 4 [json_name = "entrypoint"]; - {::_pbi::TcParser::FastUS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(VersionHistory, _impl_.entrypoint_)}}, - // optional string first_run = 5 [json_name = "firstRun"]; - {::_pbi::TcParser::FastUS1, - {42, 0, 0, PROTOBUF_FIELD_OFFSET(VersionHistory, _impl_.first_run_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string version = 1 [json_name = "version"]; - {PROTOBUF_FIELD_OFFSET(VersionHistory, _impl_.version_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated .viam.app.v1.Uploads files = 2 [json_name = "files"]; - {PROTOBUF_FIELD_OFFSET(VersionHistory, _impl_.files_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated .viam.app.v1.Model models = 3 [json_name = "models"]; - {PROTOBUF_FIELD_OFFSET(VersionHistory, _impl_.models_), -1, 1, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // string entrypoint = 4 [json_name = "entrypoint"]; - {PROTOBUF_FIELD_OFFSET(VersionHistory, _impl_.entrypoint_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // optional string first_run = 5 [json_name = "firstRun"]; - {PROTOBUF_FIELD_OFFSET(VersionHistory, _impl_.first_run_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::Uploads>()}, - {::_pbi::TcParser::GetTable<::viam::app::v1::Model>()}, - }}, {{ - "\32\7\0\0\12\11\0\0" - "viam.app.v1.VersionHistory" - "version" - "entrypoint" - "first_run" - }}, -}; - -::uint8_t* VersionHistory::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.VersionHistory) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string version = 1 [json_name = "version"]; - if (!this->_internal_version().empty()) { - const std::string& _s = this->_internal_version(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.VersionHistory.version"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // repeated .viam.app.v1.Uploads files = 2 [json_name = "files"]; - for (unsigned i = 0, - n = static_cast(this->_internal_files_size()); i < n; i++) { - const auto& repfield = this->_internal_files().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); - } - - // repeated .viam.app.v1.Model models = 3 [json_name = "models"]; - for (unsigned i = 0, - n = static_cast(this->_internal_models_size()); i < n; i++) { - const auto& repfield = this->_internal_models().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream); - } - - // string entrypoint = 4 [json_name = "entrypoint"]; - if (!this->_internal_entrypoint().empty()) { - const std::string& _s = this->_internal_entrypoint(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.VersionHistory.entrypoint"); - target = stream->WriteStringMaybeAliased(4, _s, target); + // string module_id = 1 [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.GetModuleRequest.module_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_module_id(), target); } - cached_has_bits = _impl_._has_bits_[0]; - // optional string first_run = 5 [json_name = "firstRun"]; - if (cached_has_bits & 0x00000001u) { - const std::string& _s = this->_internal_first_run(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.VersionHistory.first_run"); - target = stream->WriteStringMaybeAliased(5, _s, target); + // optional bool include_markdown_documentation = 2 [json_name = "includeMarkdownDocumentation"]; + if (_internal_has_include_markdown_documentation()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_include_markdown_documentation(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.VersionHistory) + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.GetModuleRequest) return target; } -::size_t VersionHistory::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.VersionHistory) - ::size_t total_size = 0; +size_t GetModuleRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetModuleRequest) + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated .viam.app.v1.Uploads files = 2 [json_name = "files"]; - total_size += 1UL * this->_internal_files_size(); - for (const auto& msg : this->_internal_files()) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); - } - // repeated .viam.app.v1.Model models = 3 [json_name = "models"]; - total_size += 1UL * this->_internal_models_size(); - for (const auto& msg : this->_internal_models()) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); - } - // string version = 1 [json_name = "version"]; - if (!this->_internal_version().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_version()); - } - - // string entrypoint = 4 [json_name = "entrypoint"]; - if (!this->_internal_entrypoint().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_entrypoint()); + // string module_id = 1 [json_name = "moduleId"]; + if (!this->_internal_module_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_module_id()); } - // optional string first_run = 5 [json_name = "firstRun"]; - cached_has_bits = _impl_._has_bits_[0]; + // optional bool include_markdown_documentation = 2 [json_name = "includeMarkdownDocumentation"]; + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_first_run()); + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData VersionHistory::_class_data_ = { - VersionHistory::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetModuleRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetModuleRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* VersionHistory::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetModuleRequest::GetClassData() const { return &_class_data_; } + +void GetModuleRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void VersionHistory::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.VersionHistory) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetModuleRequest::MergeFrom(const GetModuleRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetModuleRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_files()->MergeFrom( - from._internal_files()); - _this->_internal_mutable_models()->MergeFrom( - from._internal_models()); - if (!from._internal_version().empty()) { - _this->_internal_set_version(from._internal_version()); - } - if (!from._internal_entrypoint().empty()) { - _this->_internal_set_entrypoint(from._internal_entrypoint()); + if (!from._internal_module_id().empty()) { + _internal_set_module_id(from._internal_module_id()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_set_first_run(from._internal_first_run()); + if (from._internal_has_include_markdown_documentation()) { + _internal_set_include_markdown_documentation(from._internal_include_markdown_documentation()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void VersionHistory::CopyFrom(const VersionHistory& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.VersionHistory) +void GetModuleRequest::CopyFrom(const GetModuleRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.GetModuleRequest) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool VersionHistory::IsInitialized() const { +bool GetModuleRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* VersionHistory::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void VersionHistory::InternalSwap(VersionHistory* PROTOBUF_RESTRICT other) { +void GetModuleRequest::InternalSwap(GetModuleRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.files_.InternalSwap(&other->_impl_.files_); - _impl_.models_.InternalSwap(&other->_impl_.models_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.version_, &other->_impl_.version_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.entrypoint_, &other->_impl_.entrypoint_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.first_run_, &other->_impl_.first_run_, arena); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &module_id_, lhs_arena, + &other->module_id_, rhs_arena + ); + swap(include_markdown_documentation_, other->include_markdown_documentation_); } -::google::protobuf::Metadata VersionHistory::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetModuleRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[171]); + file_level_metadata_app_2fv1_2fapp_2eproto[172]); } + // =================================================================== -class Uploads::_Internal { +class GetModuleResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Uploads, _impl_._has_bits_); - static const ::google::protobuf::Timestamp& uploaded_at(const Uploads* msg); - static void set_has_uploaded_at(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::viam::app::v1::Module& module(const GetModuleResponse* msg); }; -const ::google::protobuf::Timestamp& Uploads::_Internal::uploaded_at(const Uploads* msg) { - return *msg->_impl_.uploaded_at_; +const ::viam::app::v1::Module& +GetModuleResponse::_Internal::module(const GetModuleResponse* msg) { + return *msg->module_; } -void Uploads::clear_uploaded_at() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.uploaded_at_ != nullptr) _impl_.uploaded_at_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; +GetModuleResponse::GetModuleResponse(::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.GetModuleResponse) } -Uploads::Uploads(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:viam.app.v1.Uploads) +GetModuleResponse::GetModuleResponse(const GetModuleResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_module()) { + module_ = new ::viam::app::v1::Module(*from.module_); + } else { + module_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetModuleResponse) } -inline PROTOBUF_NDEBUG_INLINE Uploads::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - platform_(arena, from.platform_) {} - -Uploads::Uploads( - ::google::protobuf::Arena* arena, - const Uploads& from) - : ::google::protobuf::Message(arena) { - Uploads* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.uploaded_at_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.uploaded_at_) - : nullptr; - // @@protoc_insertion_point(copy_constructor:viam.app.v1.Uploads) +inline void GetModuleResponse::SharedCtor() { +module_ = nullptr; } -inline PROTOBUF_NDEBUG_INLINE Uploads::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - platform_(arena) {} -inline void Uploads::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.uploaded_at_ = {}; -} -Uploads::~Uploads() { - // @@protoc_insertion_point(destructor:viam.app.v1.Uploads) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); +GetModuleResponse::~GetModuleResponse() { + // @@protoc_insertion_point(destructor:viam.app.v1.GetModuleResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } -inline void Uploads::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.platform_.Destroy(); - delete _impl_.uploaded_at_; - _impl_.~Impl_(); -} -PROTOBUF_NOINLINE void Uploads::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.Uploads) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; +inline void GetModuleResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete module_; +} - _impl_.platform_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.uploaded_at_ != nullptr); - _impl_.uploaded_at_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void GetModuleResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* Uploads::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void GetModuleResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetModuleResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && module_ != nullptr) { + delete module_; + } + module_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetModuleResponse::_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.app.v1.Module module = 1 [json_name = "module"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_module(), 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* GetModuleResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetModuleResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 36, 2> Uploads::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Uploads, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Uploads_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .google.protobuf.Timestamp uploaded_at = 2 [json_name = "uploadedAt"]; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(Uploads, _impl_.uploaded_at_)}}, - // string platform = 1 [json_name = "platform"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Uploads, _impl_.platform_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string platform = 1 [json_name = "platform"]; - {PROTOBUF_FIELD_OFFSET(Uploads, _impl_.platform_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Timestamp uploaded_at = 2 [json_name = "uploadedAt"]; - {PROTOBUF_FIELD_OFFSET(Uploads, _impl_.uploaded_at_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, - }}, {{ - "\23\10\0\0\0\0\0\0" - "viam.app.v1.Uploads" - "platform" - }}, -}; - -::uint8_t* Uploads::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.Uploads) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string platform = 1 [json_name = "platform"]; - if (!this->_internal_platform().empty()) { - const std::string& _s = this->_internal_platform(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.Uploads.platform"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - cached_has_bits = _impl_._has_bits_[0]; - // .google.protobuf.Timestamp uploaded_at = 2 [json_name = "uploadedAt"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::uploaded_at(this), - _Internal::uploaded_at(this).GetCachedSize(), target, stream); + // .viam.app.v1.Module module = 1 [json_name = "module"]; + if (this->_internal_has_module()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::module(this), + _Internal::module(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.Uploads) + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.GetModuleResponse) return target; } -::size_t Uploads::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.Uploads) - ::size_t total_size = 0; +size_t GetModuleResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetModuleResponse) + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string platform = 1 [json_name = "platform"]; - if (!this->_internal_platform().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_platform()); - } - - // .google.protobuf.Timestamp uploaded_at = 2 [json_name = "uploadedAt"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.uploaded_at_); + // .viam.app.v1.Module module = 1 [json_name = "module"]; + if (this->_internal_has_module()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *module_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Uploads::_class_data_ = { - Uploads::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetModuleResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetModuleResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* Uploads::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetModuleResponse::GetClassData() const { return &_class_data_; } + +void GetModuleResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Uploads::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.Uploads) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetModuleResponse::MergeFrom(const GetModuleResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetModuleResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_platform().empty()) { - _this->_internal_set_platform(from._internal_platform()); + if (from._internal_has_module()) { + _internal_mutable_module()->::viam::app::v1::Module::MergeFrom(from._internal_module()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_uploaded_at()->::google::protobuf::Timestamp::MergeFrom( - from._internal_uploaded_at()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void Uploads::CopyFrom(const Uploads& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.Uploads) +void GetModuleResponse::CopyFrom(const GetModuleResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.GetModuleResponse) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool Uploads::IsInitialized() const { +bool GetModuleResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* Uploads::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Uploads::InternalSwap(Uploads* PROTOBUF_RESTRICT other) { +void GetModuleResponse::InternalSwap(GetModuleResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.platform_, &other->_impl_.platform_, arena); - swap(_impl_.uploaded_at_, other->_impl_.uploaded_at_); + swap(module_, other->module_); } -::google::protobuf::Metadata Uploads::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetModuleResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[172]); + file_level_metadata_app_2fv1_2fapp_2eproto[173]); } + // =================================================================== -class ListModulesRequest::_Internal { +class Module::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ListModulesRequest, _impl_._has_bits_); - static void set_has_organization_id(HasBits* has_bits) { + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_first_run(HasBits* has_bits) { (*has_bits)[0] |= 1u; } }; -ListModulesRequest::ListModulesRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:viam.app.v1.ListModulesRequest) +Module::Module(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + versions_(arena), + models_(arena) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.Module) } -inline PROTOBUF_NDEBUG_INLINE ListModulesRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - organization_id_(arena, from.organization_id_) {} - -ListModulesRequest::ListModulesRequest( - ::google::protobuf::Arena* arena, - const ListModulesRequest& from) - : ::google::protobuf::Message(arena) { - ListModulesRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:viam.app.v1.ListModulesRequest) +Module::Module(const Module& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_), + versions_(from.versions_), + models_(from.models_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + 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()); + } + 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()); + } + url_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + url_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_url().empty()) { + url_.Set(from._internal_url(), + GetArenaForAllocation()); + } + description_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + description_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_description().empty()) { + description_.Set(from._internal_description(), + GetArenaForAllocation()); + } + organization_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_organization_id().empty()) { + organization_id_.Set(from._internal_organization_id(), + GetArenaForAllocation()); + } + entrypoint_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + entrypoint_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_entrypoint().empty()) { + entrypoint_.Set(from._internal_entrypoint(), + GetArenaForAllocation()); + } + public_namespace_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + public_namespace_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_public_namespace().empty()) { + public_namespace_.Set(from._internal_public_namespace(), + GetArenaForAllocation()); + } + first_run_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + first_run_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (from._internal_has_first_run()) { + first_run_.Set(from._internal_first_run(), + GetArenaForAllocation()); + } + ::memcpy(&total_robot_usage_, &from.total_robot_usage_, + static_cast(reinterpret_cast(&visibility_) - + reinterpret_cast(&total_robot_usage_)) + sizeof(visibility_)); + // @@protoc_insertion_point(copy_constructor:viam.app.v1.Module) } -inline PROTOBUF_NDEBUG_INLINE ListModulesRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - organization_id_(arena) {} -inline void ListModulesRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void Module::SharedCtor() { +module_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + module_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +url_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + url_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +description_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + description_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +organization_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +entrypoint_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + entrypoint_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +public_namespace_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + public_namespace_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +first_run_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + first_run_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&total_robot_usage_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&visibility_) - + reinterpret_cast(&total_robot_usage_)) + sizeof(visibility_)); } -ListModulesRequest::~ListModulesRequest() { - // @@protoc_insertion_point(destructor:viam.app.v1.ListModulesRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + +Module::~Module() { + // @@protoc_insertion_point(destructor:viam.app.v1.Module) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } -inline void ListModulesRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.organization_id_.Destroy(); - _impl_.~Impl_(); + +inline void Module::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + module_id_.Destroy(); + name_.Destroy(); + url_.Destroy(); + description_.Destroy(); + organization_id_.Destroy(); + entrypoint_.Destroy(); + public_namespace_.Destroy(); + first_run_.Destroy(); } -PROTOBUF_NOINLINE void ListModulesRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.ListModulesRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; +void Module::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void Module::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.Module) + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; + versions_.Clear(); + models_.Clear(); + module_id_.ClearToEmpty(); + name_.ClearToEmpty(); + url_.ClearToEmpty(); + description_.ClearToEmpty(); + organization_id_.ClearToEmpty(); + entrypoint_.ClearToEmpty(); + public_namespace_.ClearToEmpty(); + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { - _impl_.organization_id_.ClearNonDefaultToEmpty(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ListModulesRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + first_run_.ClearNonDefaultToEmpty(); + } + ::memset(&total_robot_usage_, 0, static_cast( + reinterpret_cast(&visibility_) - + reinterpret_cast(&total_robot_usage_)) + sizeof(visibility_)); + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Module::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string module_id = 1 [json_name = "moduleId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_module_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.Module.module_id")); + } else + goto handle_unusual; + continue; + // string name = 2 [json_name = "name"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.Module.name")); + } else + goto handle_unusual; + continue; + // .viam.app.v1.Visibility visibility = 3 [json_name = "visibility"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_visibility(static_cast<::viam::app::v1::Visibility>(val)); + } else + goto handle_unusual; + continue; + // repeated .viam.app.v1.VersionHistory versions = 4 [json_name = "versions"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_versions(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr)); + } else + goto handle_unusual; + continue; + // string url = 5 [json_name = "url"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + auto str = _internal_mutable_url(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.Module.url")); + } else + goto handle_unusual; + continue; + // string description = 6 [json_name = "description"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + auto str = _internal_mutable_description(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.Module.description")); + } else + goto handle_unusual; + continue; + // repeated .viam.app.v1.Model models = 7 [json_name = "models"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_models(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<58>(ptr)); + } else + goto handle_unusual; + continue; + // int64 total_robot_usage = 8 [json_name = "totalRobotUsage"]; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 64)) { + total_robot_usage_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int64 total_organization_usage = 9 [json_name = "totalOrganizationUsage"]; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 72)) { + total_organization_usage_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string organization_id = 10 [json_name = "organizationId"]; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { + auto str = _internal_mutable_organization_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.Module.organization_id")); + } else + goto handle_unusual; + continue; + // string entrypoint = 11 [json_name = "entrypoint"]; + case 11: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 90)) { + auto str = _internal_mutable_entrypoint(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.Module.entrypoint")); + } else + goto handle_unusual; + continue; + // string public_namespace = 12 [json_name = "publicNamespace"]; + case 12: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 98)) { + auto str = _internal_mutable_public_namespace(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.Module.public_namespace")); + } else + goto handle_unusual; + continue; + // optional string first_run = 13 [json_name = "firstRun"]; + case 13: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 106)) { + auto str = _internal_mutable_first_run(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.Module.first_run")); + } 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: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } +uint8_t* Module::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.Module) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 54, 2> ListModulesRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ListModulesRequest, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_ListModulesRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // optional string organization_id = 1 [json_name = "organizationId"]; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(ListModulesRequest, _impl_.organization_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // optional string organization_id = 1 [json_name = "organizationId"]; - {PROTOBUF_FIELD_OFFSET(ListModulesRequest, _impl_.organization_id_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\36\17\0\0\0\0\0\0" - "viam.app.v1.ListModulesRequest" - "organization_id" - }}, -}; - -::uint8_t* ListModulesRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ListModulesRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + // string module_id = 1 [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.Module.module_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_module_id(), target); + } - cached_has_bits = _impl_._has_bits_[0]; - // optional string organization_id = 1 [json_name = "organizationId"]; - if (cached_has_bits & 0x00000001u) { - const std::string& _s = this->_internal_organization_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ListModulesRequest.organization_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + // string name = 2 [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.app.v1.Module.name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_name(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + // .viam.app.v1.Visibility visibility = 3 [json_name = "visibility"]; + if (this->_internal_visibility() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 3, this->_internal_visibility(), target); } - // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.ListModulesRequest) - return target; -} -::size_t ListModulesRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ListModulesRequest) - ::size_t total_size = 0; + // repeated .viam.app.v1.VersionHistory versions = 4 [json_name = "versions"]; + for (unsigned i = 0, + n = static_cast(this->_internal_versions_size()); i < n; i++) { + const auto& repfield = this->_internal_versions(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, repfield, repfield.GetCachedSize(), target, stream); + } - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + // string url = 5 [json_name = "url"]; + if (!this->_internal_url().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_url().data(), static_cast(this->_internal_url().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.Module.url"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_url(), target); + } - // optional string organization_id = 1 [json_name = "organizationId"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_organization_id()); + // string description = 6 [json_name = "description"]; + if (!this->_internal_description().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_description().data(), static_cast(this->_internal_description().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.Module.description"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_description(), target); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} + // repeated .viam.app.v1.Model models = 7 [json_name = "models"]; + for (unsigned i = 0, + n = static_cast(this->_internal_models_size()); i < n; i++) { + const auto& repfield = this->_internal_models(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(7, repfield, repfield.GetCachedSize(), target, stream); + } -const ::google::protobuf::Message::ClassData ListModulesRequest::_class_data_ = { - ListModulesRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* ListModulesRequest::GetClassData() const { - return &_class_data_; -} + // int64 total_robot_usage = 8 [json_name = "totalRobotUsage"]; + if (this->_internal_total_robot_usage() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(8, this->_internal_total_robot_usage(), target); + } -void ListModulesRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ListModulesRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + // int64 total_organization_usage = 9 [json_name = "totalOrganizationUsage"]; + if (this->_internal_total_organization_usage() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(9, this->_internal_total_organization_usage(), target); + } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_set_organization_id(from._internal_organization_id()); + // string organization_id = 10 [json_name = "organizationId"]; + if (!this->_internal_organization_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_organization_id().data(), static_cast(this->_internal_organization_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.Module.organization_id"); + target = stream->WriteStringMaybeAliased( + 10, this->_internal_organization_id(), target); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} -void ListModulesRequest::CopyFrom(const ListModulesRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.ListModulesRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} + // string entrypoint = 11 [json_name = "entrypoint"]; + if (!this->_internal_entrypoint().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_entrypoint().data(), static_cast(this->_internal_entrypoint().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.Module.entrypoint"); + target = stream->WriteStringMaybeAliased( + 11, this->_internal_entrypoint(), target); + } -PROTOBUF_NOINLINE bool ListModulesRequest::IsInitialized() const { - return true; -} + // string public_namespace = 12 [json_name = "publicNamespace"]; + if (!this->_internal_public_namespace().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_public_namespace().data(), static_cast(this->_internal_public_namespace().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.Module.public_namespace"); + target = stream->WriteStringMaybeAliased( + 12, this->_internal_public_namespace(), target); + } -::_pbi::CachedSize* ListModulesRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ListModulesRequest::InternalSwap(ListModulesRequest* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.organization_id_, &other->_impl_.organization_id_, arena); -} + // optional string first_run = 13 [json_name = "firstRun"]; + if (_internal_has_first_run()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_first_run().data(), static_cast(this->_internal_first_run().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.Module.first_run"); + target = stream->WriteStringMaybeAliased( + 13, this->_internal_first_run(), target); + } -::google::protobuf::Metadata ListModulesRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[173]); + 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.Module) + return target; } -// =================================================================== -class ListModulesResponse::_Internal { - public: -}; +size_t Module::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.Module) + size_t total_size = 0; -ListModulesResponse::ListModulesResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:viam.app.v1.ListModulesResponse) -} -inline PROTOBUF_NDEBUG_INLINE ListModulesResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : modules_{visibility, arena, from.modules_}, - _cached_size_{0} {} - -ListModulesResponse::ListModulesResponse( - ::google::protobuf::Arena* arena, - const ListModulesResponse& from) - : ::google::protobuf::Message(arena) { - ListModulesResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; - // @@protoc_insertion_point(copy_constructor:viam.app.v1.ListModulesResponse) -} -inline PROTOBUF_NDEBUG_INLINE ListModulesResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : modules_{visibility, arena}, - _cached_size_{0} {} + // repeated .viam.app.v1.VersionHistory versions = 4 [json_name = "versions"]; + total_size += 1UL * this->_internal_versions_size(); + for (const auto& msg : this->versions_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } -inline void ListModulesResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -ListModulesResponse::~ListModulesResponse() { - // @@protoc_insertion_point(destructor:viam.app.v1.ListModulesResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void ListModulesResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} + // repeated .viam.app.v1.Model models = 7 [json_name = "models"]; + total_size += 1UL * this->_internal_models_size(); + for (const auto& msg : this->models_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } -PROTOBUF_NOINLINE void ListModulesResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.ListModulesResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + // string module_id = 1 [json_name = "moduleId"]; + if (!this->_internal_module_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_module_id()); + } - _impl_.modules_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} + // string name = 2 [json_name = "name"]; + if (!this->_internal_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); + } -const char* ListModulesResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} + // string url = 5 [json_name = "url"]; + if (!this->_internal_url().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_url()); + } + // string description = 6 [json_name = "description"]; + if (!this->_internal_description().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_description()); + } -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ListModulesResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ListModulesResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.app.v1.Module modules = 1 [json_name = "modules"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ListModulesResponse, _impl_.modules_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.app.v1.Module modules = 1 [json_name = "modules"]; - {PROTOBUF_FIELD_OFFSET(ListModulesResponse, _impl_.modules_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::Module>()}, - }}, {{ - }}, -}; - -::uint8_t* ListModulesResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ListModulesResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + // string organization_id = 10 [json_name = "organizationId"]; + if (!this->_internal_organization_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_organization_id()); + } - // repeated .viam.app.v1.Module modules = 1 [json_name = "modules"]; - for (unsigned i = 0, - n = static_cast(this->_internal_modules_size()); i < n; i++) { - const auto& repfield = this->_internal_modules().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + // string entrypoint = 11 [json_name = "entrypoint"]; + if (!this->_internal_entrypoint().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_entrypoint()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + // string public_namespace = 12 [json_name = "publicNamespace"]; + if (!this->_internal_public_namespace().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_public_namespace()); } - // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.ListModulesResponse) - return target; -} -::size_t ListModulesResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ListModulesResponse) - ::size_t total_size = 0; + // optional string first_run = 13 [json_name = "firstRun"]; + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_first_run()); + } - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + // int64 total_robot_usage = 8 [json_name = "totalRobotUsage"]; + if (this->_internal_total_robot_usage() != 0) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_total_robot_usage()); + } - // repeated .viam.app.v1.Module modules = 1 [json_name = "modules"]; - total_size += 1UL * this->_internal_modules_size(); - for (const auto& msg : this->_internal_modules()) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + // int64 total_organization_usage = 9 [json_name = "totalOrganizationUsage"]; + if (this->_internal_total_organization_usage() != 0) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_total_organization_usage()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + // .viam.app.v1.Visibility visibility = 3 [json_name = "visibility"]; + if (this->_internal_visibility() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_visibility()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ListModulesResponse::_class_data_ = { - ListModulesResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Module::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Module::MergeImpl }; -const ::google::protobuf::Message::ClassData* ListModulesResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Module::GetClassData() const { return &_class_data_; } + +void Module::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ListModulesResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ListModulesResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Module::MergeFrom(const Module& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.Module) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_modules()->MergeFrom( - from._internal_modules()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + versions_.MergeFrom(from.versions_); + models_.MergeFrom(from.models_); + if (!from._internal_module_id().empty()) { + _internal_set_module_id(from._internal_module_id()); + } + if (!from._internal_name().empty()) { + _internal_set_name(from._internal_name()); + } + if (!from._internal_url().empty()) { + _internal_set_url(from._internal_url()); + } + if (!from._internal_description().empty()) { + _internal_set_description(from._internal_description()); + } + if (!from._internal_organization_id().empty()) { + _internal_set_organization_id(from._internal_organization_id()); + } + if (!from._internal_entrypoint().empty()) { + _internal_set_entrypoint(from._internal_entrypoint()); + } + if (!from._internal_public_namespace().empty()) { + _internal_set_public_namespace(from._internal_public_namespace()); + } + if (from._internal_has_first_run()) { + _internal_set_first_run(from._internal_first_run()); + } + if (from._internal_total_robot_usage() != 0) { + _internal_set_total_robot_usage(from._internal_total_robot_usage()); + } + if (from._internal_total_organization_usage() != 0) { + _internal_set_total_organization_usage(from._internal_total_organization_usage()); + } + if (from._internal_visibility() != 0) { + _internal_set_visibility(from._internal_visibility()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void ListModulesResponse::CopyFrom(const ListModulesResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.ListModulesResponse) +void Module::CopyFrom(const Module& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.Module) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool ListModulesResponse::IsInitialized() const { +bool Module::IsInitialized() const { return true; } -::_pbi::CachedSize* ListModulesResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ListModulesResponse::InternalSwap(ListModulesResponse* PROTOBUF_RESTRICT other) { +void Module::InternalSwap(Module* other) { using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.modules_.InternalSwap(&other->_impl_.modules_); -} - -::google::protobuf::Metadata ListModulesResponse::GetMetadata() const { + swap(_has_bits_[0], other->_has_bits_[0]); + versions_.InternalSwap(&other->versions_); + models_.InternalSwap(&other->models_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &module_id_, lhs_arena, + &other->module_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &url_, lhs_arena, + &other->url_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &description_, lhs_arena, + &other->description_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &organization_id_, lhs_arena, + &other->organization_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &entrypoint_, lhs_arena, + &other->entrypoint_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &public_namespace_, lhs_arena, + &other->public_namespace_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &first_run_, lhs_arena, + &other->first_run_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Module, visibility_) + + sizeof(Module::visibility_) + - PROTOBUF_FIELD_OFFSET(Module, total_robot_usage_)>( + reinterpret_cast(&total_robot_usage_), + reinterpret_cast(&other->total_robot_usage_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Module::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[174]); } + // =================================================================== -class GetUserIDByEmailRequest::_Internal { +class VersionHistory::_Internal { public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_first_run(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; -GetUserIDByEmailRequest::GetUserIDByEmailRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:viam.app.v1.GetUserIDByEmailRequest) +VersionHistory::VersionHistory(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + files_(arena), + models_(arena) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.VersionHistory) } -inline PROTOBUF_NDEBUG_INLINE GetUserIDByEmailRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : email_(arena, from.email_), - _cached_size_{0} {} - -GetUserIDByEmailRequest::GetUserIDByEmailRequest( - ::google::protobuf::Arena* arena, - const GetUserIDByEmailRequest& from) - : ::google::protobuf::Message(arena) { - GetUserIDByEmailRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetUserIDByEmailRequest) +VersionHistory::VersionHistory(const VersionHistory& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_), + files_(from.files_), + models_(from.models_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + version_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + version_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_version().empty()) { + version_.Set(from._internal_version(), + GetArenaForAllocation()); + } + entrypoint_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + entrypoint_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_entrypoint().empty()) { + entrypoint_.Set(from._internal_entrypoint(), + GetArenaForAllocation()); + } + first_run_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + first_run_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (from._internal_has_first_run()) { + first_run_.Set(from._internal_first_run(), + GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.VersionHistory) } -inline PROTOBUF_NDEBUG_INLINE GetUserIDByEmailRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : email_(arena), - _cached_size_{0} {} -inline void GetUserIDByEmailRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void VersionHistory::SharedCtor() { +version_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + version_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +entrypoint_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + entrypoint_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +first_run_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + first_run_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } -GetUserIDByEmailRequest::~GetUserIDByEmailRequest() { - // @@protoc_insertion_point(destructor:viam.app.v1.GetUserIDByEmailRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + +VersionHistory::~VersionHistory() { + // @@protoc_insertion_point(destructor:viam.app.v1.VersionHistory) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } -inline void GetUserIDByEmailRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.email_.Destroy(); - _impl_.~Impl_(); + +inline void VersionHistory::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + version_.Destroy(); + entrypoint_.Destroy(); + first_run_.Destroy(); } -PROTOBUF_NOINLINE void GetUserIDByEmailRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetUserIDByEmailRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; +void VersionHistory::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void VersionHistory::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.VersionHistory) + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.email_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetUserIDByEmailRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + files_.Clear(); + models_.Clear(); + version_.ClearToEmpty(); + entrypoint_.ClearToEmpty(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + first_run_.ClearNonDefaultToEmpty(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* VersionHistory::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string version = 1 [json_name = "version"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_version(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.VersionHistory.version")); + } else + goto handle_unusual; + continue; + // repeated .viam.app.v1.Uploads files = 2 [json_name = "files"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_files(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } else + goto handle_unusual; + continue; + // repeated .viam.app.v1.Model models = 3 [json_name = "models"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_models(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); + } else + goto handle_unusual; + continue; + // string entrypoint = 4 [json_name = "entrypoint"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_entrypoint(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.VersionHistory.entrypoint")); + } else + goto handle_unusual; + continue; + // optional string first_run = 5 [json_name = "firstRun"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + auto str = _internal_mutable_first_run(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.VersionHistory.first_run")); + } 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: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } +uint8_t* VersionHistory::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.VersionHistory) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 49, 2> GetUserIDByEmailRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetUserIDByEmailRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string email = 1 [json_name = "email"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetUserIDByEmailRequest, _impl_.email_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string email = 1 [json_name = "email"]; - {PROTOBUF_FIELD_OFFSET(GetUserIDByEmailRequest, _impl_.email_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\43\5\0\0\0\0\0\0" - "viam.app.v1.GetUserIDByEmailRequest" - "email" - }}, -}; - -::uint8_t* GetUserIDByEmailRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetUserIDByEmailRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + // string version = 1 [json_name = "version"]; + if (!this->_internal_version().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_version().data(), static_cast(this->_internal_version().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.VersionHistory.version"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_version(), target); + } - // string email = 1 [json_name = "email"]; - if (!this->_internal_email().empty()) { - const std::string& _s = this->_internal_email(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.GetUserIDByEmailRequest.email"); - target = stream->WriteStringMaybeAliased(1, _s, target); + // repeated .viam.app.v1.Uploads files = 2 [json_name = "files"]; + for (unsigned i = 0, + n = static_cast(this->_internal_files_size()); i < n; i++) { + const auto& repfield = this->_internal_files(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); + } + + // repeated .viam.app.v1.Model models = 3 [json_name = "models"]; + for (unsigned i = 0, + n = static_cast(this->_internal_models_size()); i < n; i++) { + const auto& repfield = this->_internal_models(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream); + } + + // string entrypoint = 4 [json_name = "entrypoint"]; + if (!this->_internal_entrypoint().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_entrypoint().data(), static_cast(this->_internal_entrypoint().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.VersionHistory.entrypoint"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_entrypoint(), target); + } + + // optional string first_run = 5 [json_name = "firstRun"]; + if (_internal_has_first_run()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_first_run().data(), static_cast(this->_internal_first_run().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.VersionHistory.first_run"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_first_run(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.GetUserIDByEmailRequest) + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.VersionHistory) return target; } -::size_t GetUserIDByEmailRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetUserIDByEmailRequest) - ::size_t total_size = 0; +size_t VersionHistory::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.VersionHistory) + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string email = 1 [json_name = "email"]; - if (!this->_internal_email().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_email()); + // repeated .viam.app.v1.Uploads files = 2 [json_name = "files"]; + total_size += 1UL * this->_internal_files_size(); + for (const auto& msg : this->files_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // repeated .viam.app.v1.Model models = 3 [json_name = "models"]; + total_size += 1UL * this->_internal_models_size(); + for (const auto& msg : this->models_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // string version = 1 [json_name = "version"]; + if (!this->_internal_version().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_version()); + } + + // string entrypoint = 4 [json_name = "entrypoint"]; + if (!this->_internal_entrypoint().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_entrypoint()); + } + + // optional string first_run = 5 [json_name = "firstRun"]; + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_first_run()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetUserIDByEmailRequest::_class_data_ = { - GetUserIDByEmailRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData VersionHistory::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + VersionHistory::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetUserIDByEmailRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*VersionHistory::GetClassData() const { return &_class_data_; } + +void VersionHistory::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetUserIDByEmailRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetUserIDByEmailRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void VersionHistory::MergeFrom(const VersionHistory& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.VersionHistory) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_email().empty()) { - _this->_internal_set_email(from._internal_email()); + files_.MergeFrom(from.files_); + models_.MergeFrom(from.models_); + if (!from._internal_version().empty()) { + _internal_set_version(from._internal_version()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + if (!from._internal_entrypoint().empty()) { + _internal_set_entrypoint(from._internal_entrypoint()); + } + if (from._internal_has_first_run()) { + _internal_set_first_run(from._internal_first_run()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void GetUserIDByEmailRequest::CopyFrom(const GetUserIDByEmailRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.GetUserIDByEmailRequest) +void VersionHistory::CopyFrom(const VersionHistory& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.VersionHistory) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool GetUserIDByEmailRequest::IsInitialized() const { +bool VersionHistory::IsInitialized() const { return true; } -::_pbi::CachedSize* GetUserIDByEmailRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetUserIDByEmailRequest::InternalSwap(GetUserIDByEmailRequest* PROTOBUF_RESTRICT other) { +void VersionHistory::InternalSwap(VersionHistory* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.email_, &other->_impl_.email_, arena); -} - -::google::protobuf::Metadata GetUserIDByEmailRequest::GetMetadata() const { + swap(_has_bits_[0], other->_has_bits_[0]); + files_.InternalSwap(&other->files_); + models_.InternalSwap(&other->models_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &version_, lhs_arena, + &other->version_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &entrypoint_, lhs_arena, + &other->entrypoint_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &first_run_, lhs_arena, + &other->first_run_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata VersionHistory::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[175]); } + // =================================================================== -class GetUserIDByEmailResponse::_Internal { +class Uploads::_Internal { public: + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& uploaded_at(const Uploads* msg); }; -GetUserIDByEmailResponse::GetUserIDByEmailResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:viam.app.v1.GetUserIDByEmailResponse) -} -inline PROTOBUF_NDEBUG_INLINE GetUserIDByEmailResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : user_id_(arena, from.user_id_), - _cached_size_{0} {} - -GetUserIDByEmailResponse::GetUserIDByEmailResponse( - ::google::protobuf::Arena* arena, - const GetUserIDByEmailResponse& from) - : ::google::protobuf::Message(arena) { - GetUserIDByEmailResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetUserIDByEmailResponse) +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +Uploads::_Internal::uploaded_at(const Uploads* msg) { + return *msg->uploaded_at_; } -inline PROTOBUF_NDEBUG_INLINE GetUserIDByEmailResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : user_id_(arena), - _cached_size_{0} {} - -inline void GetUserIDByEmailResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +void Uploads::clear_uploaded_at() { + if (GetArenaForAllocation() == nullptr && uploaded_at_ != nullptr) { + delete uploaded_at_; + } + uploaded_at_ = nullptr; } -GetUserIDByEmailResponse::~GetUserIDByEmailResponse() { - // @@protoc_insertion_point(destructor:viam.app.v1.GetUserIDByEmailResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); +Uploads::Uploads(::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.Uploads) } -inline void GetUserIDByEmailResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.user_id_.Destroy(); - _impl_.~Impl_(); +Uploads::Uploads(const Uploads& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + platform_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + platform_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_platform().empty()) { + platform_.Set(from._internal_platform(), + GetArenaForAllocation()); + } + if (from._internal_has_uploaded_at()) { + uploaded_at_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from.uploaded_at_); + } else { + uploaded_at_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.Uploads) } -PROTOBUF_NOINLINE void GetUserIDByEmailResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetUserIDByEmailResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; +inline void Uploads::SharedCtor() { +platform_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + platform_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +uploaded_at_ = nullptr; +} + +Uploads::~Uploads() { + // @@protoc_insertion_point(destructor:viam.app.v1.Uploads) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Uploads::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + platform_.Destroy(); + if (this != internal_default_instance()) delete uploaded_at_; +} - _impl_.user_id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void Uploads::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* GetUserIDByEmailResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void Uploads::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.Uploads) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + platform_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && uploaded_at_ != nullptr) { + delete uploaded_at_; + } + uploaded_at_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Uploads::_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 platform = 1 [json_name = "platform"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_platform(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.Uploads.platform")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp uploaded_at = 2 [json_name = "uploadedAt"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_uploaded_at(), 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* Uploads::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.Uploads) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 52, 2> GetUserIDByEmailResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetUserIDByEmailResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string user_id = 1 [json_name = "userId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetUserIDByEmailResponse, _impl_.user_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string user_id = 1 [json_name = "userId"]; - {PROTOBUF_FIELD_OFFSET(GetUserIDByEmailResponse, _impl_.user_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\44\7\0\0\0\0\0\0" - "viam.app.v1.GetUserIDByEmailResponse" - "user_id" - }}, -}; - -::uint8_t* GetUserIDByEmailResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetUserIDByEmailResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + // string platform = 1 [json_name = "platform"]; + if (!this->_internal_platform().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_platform().data(), static_cast(this->_internal_platform().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.Uploads.platform"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_platform(), target); + } - // string user_id = 1 [json_name = "userId"]; - if (!this->_internal_user_id().empty()) { - const std::string& _s = this->_internal_user_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.GetUserIDByEmailResponse.user_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + // .google.protobuf.Timestamp uploaded_at = 2 [json_name = "uploadedAt"]; + if (this->_internal_has_uploaded_at()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::uploaded_at(this), + _Internal::uploaded_at(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.GetUserIDByEmailResponse) + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.Uploads) return target; } -::size_t GetUserIDByEmailResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetUserIDByEmailResponse) - ::size_t total_size = 0; +size_t Uploads::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.Uploads) + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string user_id = 1 [json_name = "userId"]; - if (!this->_internal_user_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_user_id()); + // string platform = 1 [json_name = "platform"]; + if (!this->_internal_platform().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_platform()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + // .google.protobuf.Timestamp uploaded_at = 2 [json_name = "uploadedAt"]; + if (this->_internal_has_uploaded_at()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *uploaded_at_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetUserIDByEmailResponse::_class_data_ = { - GetUserIDByEmailResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Uploads::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Uploads::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetUserIDByEmailResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Uploads::GetClassData() const { return &_class_data_; } + +void Uploads::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetUserIDByEmailResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetUserIDByEmailResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Uploads::MergeFrom(const Uploads& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.Uploads) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_user_id().empty()) { - _this->_internal_set_user_id(from._internal_user_id()); + if (!from._internal_platform().empty()) { + _internal_set_platform(from._internal_platform()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_uploaded_at()) { + _internal_mutable_uploaded_at()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_uploaded_at()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void GetUserIDByEmailResponse::CopyFrom(const GetUserIDByEmailResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.GetUserIDByEmailResponse) +void Uploads::CopyFrom(const Uploads& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.Uploads) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool GetUserIDByEmailResponse::IsInitialized() const { +bool Uploads::IsInitialized() const { return true; } -::_pbi::CachedSize* GetUserIDByEmailResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetUserIDByEmailResponse::InternalSwap(GetUserIDByEmailResponse* PROTOBUF_RESTRICT other) { +void Uploads::InternalSwap(Uploads* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.user_id_, &other->_impl_.user_id_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &platform_, lhs_arena, + &other->platform_, rhs_arena + ); + swap(uploaded_at_, other->uploaded_at_); } -::google::protobuf::Metadata GetUserIDByEmailResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Uploads::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[176]); } + // =================================================================== -class ListOrganizationsByUserRequest::_Internal { +class ListModulesRequest::_Internal { public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_organization_id(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_include_markdown_documentation(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } }; -ListOrganizationsByUserRequest::ListOrganizationsByUserRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:viam.app.v1.ListOrganizationsByUserRequest) +ListModulesRequest::ListModulesRequest(::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.ListModulesRequest) } -inline PROTOBUF_NDEBUG_INLINE ListOrganizationsByUserRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : user_id_(arena, from.user_id_), - _cached_size_{0} {} - -ListOrganizationsByUserRequest::ListOrganizationsByUserRequest( - ::google::protobuf::Arena* arena, - const ListOrganizationsByUserRequest& from) - : ::google::protobuf::Message(arena) { - ListOrganizationsByUserRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:viam.app.v1.ListOrganizationsByUserRequest) +ListModulesRequest::ListModulesRequest(const ListModulesRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + organization_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (from._internal_has_organization_id()) { + organization_id_.Set(from._internal_organization_id(), + GetArenaForAllocation()); + } + include_markdown_documentation_ = from.include_markdown_documentation_; + // @@protoc_insertion_point(copy_constructor:viam.app.v1.ListModulesRequest) } -inline PROTOBUF_NDEBUG_INLINE ListOrganizationsByUserRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : user_id_(arena), - _cached_size_{0} {} -inline void ListOrganizationsByUserRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void ListModulesRequest::SharedCtor() { +organization_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + organization_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +include_markdown_documentation_ = false; } -ListOrganizationsByUserRequest::~ListOrganizationsByUserRequest() { - // @@protoc_insertion_point(destructor:viam.app.v1.ListOrganizationsByUserRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + +ListModulesRequest::~ListModulesRequest() { + // @@protoc_insertion_point(destructor:viam.app.v1.ListModulesRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } -inline void ListOrganizationsByUserRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.user_id_.Destroy(); - _impl_.~Impl_(); + +inline void ListModulesRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + organization_id_.Destroy(); } -PROTOBUF_NOINLINE void ListOrganizationsByUserRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.ListOrganizationsByUserRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; +void ListModulesRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ListModulesRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.ListModulesRequest) + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.user_id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ListOrganizationsByUserRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + organization_id_.ClearNonDefaultToEmpty(); + } + include_markdown_documentation_ = false; + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListModulesRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // optional string organization_id = 1 [json_name = "organizationId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_organization_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ListModulesRequest.organization_id")); + } else + goto handle_unusual; + continue; + // optional bool include_markdown_documentation = 2 [json_name = "includeMarkdownDocumentation"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _Internal::set_has_include_markdown_documentation(&has_bits); + include_markdown_documentation_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } +uint8_t* ListModulesRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ListModulesRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 58, 2> ListOrganizationsByUserRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_ListOrganizationsByUserRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string user_id = 1 [json_name = "userId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ListOrganizationsByUserRequest, _impl_.user_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string user_id = 1 [json_name = "userId"]; - {PROTOBUF_FIELD_OFFSET(ListOrganizationsByUserRequest, _impl_.user_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\52\7\0\0\0\0\0\0" - "viam.app.v1.ListOrganizationsByUserRequest" - "user_id" - }}, -}; - -::uint8_t* ListOrganizationsByUserRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ListOrganizationsByUserRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + // optional string organization_id = 1 [json_name = "organizationId"]; + if (_internal_has_organization_id()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_organization_id().data(), static_cast(this->_internal_organization_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ListModulesRequest.organization_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_organization_id(), target); + } - // string user_id = 1 [json_name = "userId"]; - if (!this->_internal_user_id().empty()) { - const std::string& _s = this->_internal_user_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ListOrganizationsByUserRequest.user_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + // optional bool include_markdown_documentation = 2 [json_name = "includeMarkdownDocumentation"]; + if (_internal_has_include_markdown_documentation()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_include_markdown_documentation(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.ListOrganizationsByUserRequest) + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.ListModulesRequest) return target; } -::size_t ListOrganizationsByUserRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ListOrganizationsByUserRequest) - ::size_t total_size = 0; +size_t ListModulesRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ListModulesRequest) + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string user_id = 1 [json_name = "userId"]; - if (!this->_internal_user_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_user_id()); - } + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + // optional string organization_id = 1 [json_name = "organizationId"]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_organization_id()); + } + + // optional bool include_markdown_documentation = 2 [json_name = "includeMarkdownDocumentation"]; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + 1; + } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + } + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ListOrganizationsByUserRequest::_class_data_ = { - ListOrganizationsByUserRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListModulesRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ListModulesRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* ListOrganizationsByUserRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListModulesRequest::GetClassData() const { return &_class_data_; } + +void ListModulesRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ListOrganizationsByUserRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ListOrganizationsByUserRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ListModulesRequest::MergeFrom(const ListModulesRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ListModulesRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_user_id().empty()) { - _this->_internal_set_user_id(from._internal_user_id()); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + _internal_set_organization_id(from._internal_organization_id()); + } + if (cached_has_bits & 0x00000002u) { + include_markdown_documentation_ = from.include_markdown_documentation_; + } + _has_bits_[0] |= cached_has_bits; } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void ListOrganizationsByUserRequest::CopyFrom(const ListOrganizationsByUserRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.ListOrganizationsByUserRequest) +void ListModulesRequest::CopyFrom(const ListModulesRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.ListModulesRequest) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool ListOrganizationsByUserRequest::IsInitialized() const { +bool ListModulesRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* ListOrganizationsByUserRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ListOrganizationsByUserRequest::InternalSwap(ListOrganizationsByUserRequest* PROTOBUF_RESTRICT other) { +void ListModulesRequest::InternalSwap(ListModulesRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.user_id_, &other->_impl_.user_id_, arena); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &organization_id_, lhs_arena, + &other->organization_id_, rhs_arena + ); + swap(include_markdown_documentation_, other->include_markdown_documentation_); } -::google::protobuf::Metadata ListOrganizationsByUserRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ListModulesRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[177]); } + // =================================================================== -class OrgDetails::_Internal { +class ListModulesResponse::_Internal { public: }; -OrgDetails::OrgDetails(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:viam.app.v1.OrgDetails) +ListModulesResponse::ListModulesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + modules_(arena) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.ListModulesResponse) } -inline PROTOBUF_NDEBUG_INLINE OrgDetails::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : org_id_(arena, from.org_id_), - org_name_(arena, from.org_name_), - _cached_size_{0} {} - -OrgDetails::OrgDetails( - ::google::protobuf::Arena* arena, - const OrgDetails& from) - : ::google::protobuf::Message(arena) { - OrgDetails* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:viam.app.v1.OrgDetails) +ListModulesResponse::ListModulesResponse(const ListModulesResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + modules_(from.modules_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.app.v1.ListModulesResponse) } -inline PROTOBUF_NDEBUG_INLINE OrgDetails::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : org_id_(arena), - org_name_(arena), - _cached_size_{0} {} -inline void OrgDetails::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void ListModulesResponse::SharedCtor() { } -OrgDetails::~OrgDetails() { - // @@protoc_insertion_point(destructor:viam.app.v1.OrgDetails) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + +ListModulesResponse::~ListModulesResponse() { + // @@protoc_insertion_point(destructor:viam.app.v1.ListModulesResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } -inline void OrgDetails::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.org_id_.Destroy(); - _impl_.org_name_.Destroy(); - _impl_.~Impl_(); -} -PROTOBUF_NOINLINE void OrgDetails::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.OrgDetails) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; +inline void ListModulesResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} - _impl_.org_id_.ClearToEmpty(); - _impl_.org_name_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void ListModulesResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* OrgDetails::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void ListModulesResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.ListModulesResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + modules_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListModulesResponse::_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) { + // repeated .viam.app.v1.Module modules = 1 [json_name = "modules"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_modules(), 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* ListModulesResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ListModulesResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 45, 2> OrgDetails::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_OrgDetails_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string org_name = 2 [json_name = "orgName"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(OrgDetails, _impl_.org_name_)}}, - // string org_id = 1 [json_name = "orgId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(OrgDetails, _impl_.org_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string org_id = 1 [json_name = "orgId"]; - {PROTOBUF_FIELD_OFFSET(OrgDetails, _impl_.org_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string org_name = 2 [json_name = "orgName"]; - {PROTOBUF_FIELD_OFFSET(OrgDetails, _impl_.org_name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\26\6\10\0\0\0\0\0" - "viam.app.v1.OrgDetails" - "org_id" - "org_name" - }}, -}; - -::uint8_t* OrgDetails::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.OrgDetails) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string org_id = 1 [json_name = "orgId"]; - if (!this->_internal_org_id().empty()) { - const std::string& _s = this->_internal_org_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.OrgDetails.org_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // string org_name = 2 [json_name = "orgName"]; - if (!this->_internal_org_name().empty()) { - const std::string& _s = this->_internal_org_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.OrgDetails.org_name"); - target = stream->WriteStringMaybeAliased(2, _s, target); + // repeated .viam.app.v1.Module modules = 1 [json_name = "modules"]; + for (unsigned i = 0, + n = static_cast(this->_internal_modules_size()); i < n; i++) { + const auto& repfield = this->_internal_modules(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.OrgDetails) + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.ListModulesResponse) return target; } -::size_t OrgDetails::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.OrgDetails) - ::size_t total_size = 0; +size_t ListModulesResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ListModulesResponse) + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string org_id = 1 [json_name = "orgId"]; - if (!this->_internal_org_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_org_id()); - } - - // string org_name = 2 [json_name = "orgName"]; - if (!this->_internal_org_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_org_name()); + // repeated .viam.app.v1.Module modules = 1 [json_name = "modules"]; + total_size += 1UL * this->_internal_modules_size(); + for (const auto& msg : this->modules_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData OrgDetails::_class_data_ = { - OrgDetails::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListModulesResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ListModulesResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* OrgDetails::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListModulesResponse::GetClassData() const { return &_class_data_; } + +void ListModulesResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void OrgDetails::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.OrgDetails) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ListModulesResponse::MergeFrom(const ListModulesResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ListModulesResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_org_id().empty()) { - _this->_internal_set_org_id(from._internal_org_id()); - } - if (!from._internal_org_name().empty()) { - _this->_internal_set_org_name(from._internal_org_name()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + modules_.MergeFrom(from.modules_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void OrgDetails::CopyFrom(const OrgDetails& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.OrgDetails) +void ListModulesResponse::CopyFrom(const ListModulesResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.ListModulesResponse) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool OrgDetails::IsInitialized() const { +bool ListModulesResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* OrgDetails::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void OrgDetails::InternalSwap(OrgDetails* PROTOBUF_RESTRICT other) { +void ListModulesResponse::InternalSwap(ListModulesResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.org_id_, &other->_impl_.org_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.org_name_, &other->_impl_.org_name_, arena); + modules_.InternalSwap(&other->modules_); } -::google::protobuf::Metadata OrgDetails::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ListModulesResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[178]); } + // =================================================================== -class ListOrganizationsByUserResponse::_Internal { +class GetUserIDByEmailRequest::_Internal { public: }; -ListOrganizationsByUserResponse::ListOrganizationsByUserResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:viam.app.v1.ListOrganizationsByUserResponse) +GetUserIDByEmailRequest::GetUserIDByEmailRequest(::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.GetUserIDByEmailRequest) } -inline PROTOBUF_NDEBUG_INLINE ListOrganizationsByUserResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : orgs_{visibility, arena, from.orgs_}, - _cached_size_{0} {} - -ListOrganizationsByUserResponse::ListOrganizationsByUserResponse( - ::google::protobuf::Arena* arena, - const ListOrganizationsByUserResponse& from) - : ::google::protobuf::Message(arena) { - ListOrganizationsByUserResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:viam.app.v1.ListOrganizationsByUserResponse) +GetUserIDByEmailRequest::GetUserIDByEmailRequest(const GetUserIDByEmailRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + email_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + email_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_email().empty()) { + email_.Set(from._internal_email(), + GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetUserIDByEmailRequest) } -inline PROTOBUF_NDEBUG_INLINE ListOrganizationsByUserResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : orgs_{visibility, arena}, - _cached_size_{0} {} -inline void ListOrganizationsByUserResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetUserIDByEmailRequest::SharedCtor() { +email_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + email_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } -ListOrganizationsByUserResponse::~ListOrganizationsByUserResponse() { - // @@protoc_insertion_point(destructor:viam.app.v1.ListOrganizationsByUserResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + +GetUserIDByEmailRequest::~GetUserIDByEmailRequest() { + // @@protoc_insertion_point(destructor:viam.app.v1.GetUserIDByEmailRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } -inline void ListOrganizationsByUserResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} -PROTOBUF_NOINLINE void ListOrganizationsByUserResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.ListOrganizationsByUserResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; +inline void GetUserIDByEmailRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + email_.Destroy(); +} - _impl_.orgs_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void GetUserIDByEmailRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* ListOrganizationsByUserResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void GetUserIDByEmailRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetUserIDByEmailRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + email_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetUserIDByEmailRequest::_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 email = 1 [json_name = "email"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_email(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.GetUserIDByEmailRequest.email")); + } 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* GetUserIDByEmailRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetUserIDByEmailRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ListOrganizationsByUserResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ListOrganizationsByUserResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.app.v1.OrgDetails orgs = 1 [json_name = "orgs"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ListOrganizationsByUserResponse, _impl_.orgs_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.app.v1.OrgDetails orgs = 1 [json_name = "orgs"]; - {PROTOBUF_FIELD_OFFSET(ListOrganizationsByUserResponse, _impl_.orgs_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::OrgDetails>()}, - }}, {{ - }}, -}; - -::uint8_t* ListOrganizationsByUserResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ListOrganizationsByUserResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // repeated .viam.app.v1.OrgDetails orgs = 1 [json_name = "orgs"]; - for (unsigned i = 0, - n = static_cast(this->_internal_orgs_size()); i < n; i++) { - const auto& repfield = this->_internal_orgs().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + // string email = 1 [json_name = "email"]; + if (!this->_internal_email().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_email().data(), static_cast(this->_internal_email().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.GetUserIDByEmailRequest.email"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_email(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.ListOrganizationsByUserResponse) + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.GetUserIDByEmailRequest) return target; } -::size_t ListOrganizationsByUserResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ListOrganizationsByUserResponse) - ::size_t total_size = 0; +size_t GetUserIDByEmailRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetUserIDByEmailRequest) + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated .viam.app.v1.OrgDetails orgs = 1 [json_name = "orgs"]; - total_size += 1UL * this->_internal_orgs_size(); - for (const auto& msg : this->_internal_orgs()) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + // string email = 1 [json_name = "email"]; + if (!this->_internal_email().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_email()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ListOrganizationsByUserResponse::_class_data_ = { - ListOrganizationsByUserResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetUserIDByEmailRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetUserIDByEmailRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* ListOrganizationsByUserResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetUserIDByEmailRequest::GetClassData() const { return &_class_data_; } + +void GetUserIDByEmailRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ListOrganizationsByUserResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ListOrganizationsByUserResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetUserIDByEmailRequest::MergeFrom(const GetUserIDByEmailRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetUserIDByEmailRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_orgs()->MergeFrom( - from._internal_orgs()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + if (!from._internal_email().empty()) { + _internal_set_email(from._internal_email()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void ListOrganizationsByUserResponse::CopyFrom(const ListOrganizationsByUserResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.ListOrganizationsByUserResponse) +void GetUserIDByEmailRequest::CopyFrom(const GetUserIDByEmailRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.GetUserIDByEmailRequest) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool ListOrganizationsByUserResponse::IsInitialized() const { +bool GetUserIDByEmailRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* ListOrganizationsByUserResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ListOrganizationsByUserResponse::InternalSwap(ListOrganizationsByUserResponse* PROTOBUF_RESTRICT other) { +void GetUserIDByEmailRequest::InternalSwap(GetUserIDByEmailRequest* other) { using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.orgs_.InternalSwap(&other->_impl_.orgs_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &email_, lhs_arena, + &other->email_, rhs_arena + ); } -::google::protobuf::Metadata ListOrganizationsByUserResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetUserIDByEmailRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[179]); } + // =================================================================== -class CreateKeyRequest::_Internal { +class GetUserIDByEmailResponse::_Internal { public: }; -CreateKeyRequest::CreateKeyRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:viam.app.v1.CreateKeyRequest) +GetUserIDByEmailResponse::GetUserIDByEmailResponse(::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.GetUserIDByEmailResponse) } -inline PROTOBUF_NDEBUG_INLINE CreateKeyRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : authorizations_{visibility, arena, from.authorizations_}, - name_(arena, from.name_), - _cached_size_{0} {} - -CreateKeyRequest::CreateKeyRequest( - ::google::protobuf::Arena* arena, - const CreateKeyRequest& from) - : ::google::protobuf::Message(arena) { - CreateKeyRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:viam.app.v1.CreateKeyRequest) +GetUserIDByEmailResponse::GetUserIDByEmailResponse(const GetUserIDByEmailResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + user_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + user_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_user_id().empty()) { + user_id_.Set(from._internal_user_id(), + GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetUserIDByEmailResponse) } -inline PROTOBUF_NDEBUG_INLINE CreateKeyRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : authorizations_{visibility, arena}, - name_(arena), - _cached_size_{0} {} -inline void CreateKeyRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetUserIDByEmailResponse::SharedCtor() { +user_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + user_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } -CreateKeyRequest::~CreateKeyRequest() { - // @@protoc_insertion_point(destructor:viam.app.v1.CreateKeyRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + +GetUserIDByEmailResponse::~GetUserIDByEmailResponse() { + // @@protoc_insertion_point(destructor:viam.app.v1.GetUserIDByEmailResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } -inline void CreateKeyRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.~Impl_(); -} -PROTOBUF_NOINLINE void CreateKeyRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.CreateKeyRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; +inline void GetUserIDByEmailResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + user_id_.Destroy(); +} - _impl_.authorizations_.Clear(); - _impl_.name_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void GetUserIDByEmailResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* CreateKeyRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void GetUserIDByEmailResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.GetUserIDByEmailResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + user_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetUserIDByEmailResponse::_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 user_id = 1 [json_name = "userId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_user_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.GetUserIDByEmailResponse.user_id")); + } 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* GetUserIDByEmailResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetUserIDByEmailResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 41, 2> CreateKeyRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_CreateKeyRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string name = 2 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(CreateKeyRequest, _impl_.name_)}}, - // repeated .viam.app.v1.Authorization authorizations = 1 [json_name = "authorizations"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(CreateKeyRequest, _impl_.authorizations_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.app.v1.Authorization authorizations = 1 [json_name = "authorizations"]; - {PROTOBUF_FIELD_OFFSET(CreateKeyRequest, _impl_.authorizations_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // string name = 2 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(CreateKeyRequest, _impl_.name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::Authorization>()}, - }}, {{ - "\34\0\4\0\0\0\0\0" - "viam.app.v1.CreateKeyRequest" - "name" - }}, -}; - -::uint8_t* CreateKeyRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.CreateKeyRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // repeated .viam.app.v1.Authorization authorizations = 1 [json_name = "authorizations"]; - for (unsigned i = 0, - n = static_cast(this->_internal_authorizations_size()); i < n; i++) { - const auto& repfield = this->_internal_authorizations().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); - } - - // string name = 2 [json_name = "name"]; - if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.CreateKeyRequest.name"); - target = stream->WriteStringMaybeAliased(2, _s, target); + // string user_id = 1 [json_name = "userId"]; + if (!this->_internal_user_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_user_id().data(), static_cast(this->_internal_user_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.GetUserIDByEmailResponse.user_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_user_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.CreateKeyRequest) + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.GetUserIDByEmailResponse) return target; } -::size_t CreateKeyRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.CreateKeyRequest) - ::size_t total_size = 0; +size_t GetUserIDByEmailResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetUserIDByEmailResponse) + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated .viam.app.v1.Authorization authorizations = 1 [json_name = "authorizations"]; - total_size += 1UL * this->_internal_authorizations_size(); - for (const auto& msg : this->_internal_authorizations()) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); - } - // string name = 2 [json_name = "name"]; - if (!this->_internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + // string user_id = 1 [json_name = "userId"]; + if (!this->_internal_user_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_user_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData CreateKeyRequest::_class_data_ = { - CreateKeyRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetUserIDByEmailResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetUserIDByEmailResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* CreateKeyRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetUserIDByEmailResponse::GetClassData() const { return &_class_data_; } + +void GetUserIDByEmailResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void CreateKeyRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.CreateKeyRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetUserIDByEmailResponse::MergeFrom(const GetUserIDByEmailResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetUserIDByEmailResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_authorizations()->MergeFrom( - from._internal_authorizations()); - if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + if (!from._internal_user_id().empty()) { + _internal_set_user_id(from._internal_user_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void CreateKeyRequest::CopyFrom(const CreateKeyRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.CreateKeyRequest) +void GetUserIDByEmailResponse::CopyFrom(const GetUserIDByEmailResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.GetUserIDByEmailResponse) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool CreateKeyRequest::IsInitialized() const { +bool GetUserIDByEmailResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* CreateKeyRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void CreateKeyRequest::InternalSwap(CreateKeyRequest* PROTOBUF_RESTRICT other) { +void GetUserIDByEmailResponse::InternalSwap(GetUserIDByEmailResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.authorizations_.InternalSwap(&other->_impl_.authorizations_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &user_id_, lhs_arena, + &other->user_id_, rhs_arena + ); } -::google::protobuf::Metadata CreateKeyRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetUserIDByEmailResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[180]); } + // =================================================================== -class CreateKeyResponse::_Internal { +class ListOrganizationsByUserRequest::_Internal { public: }; -CreateKeyResponse::CreateKeyResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:viam.app.v1.CreateKeyResponse) +ListOrganizationsByUserRequest::ListOrganizationsByUserRequest(::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.ListOrganizationsByUserRequest) } -inline PROTOBUF_NDEBUG_INLINE CreateKeyResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : key_(arena, from.key_), - id_(arena, from.id_), - _cached_size_{0} {} - -CreateKeyResponse::CreateKeyResponse( - ::google::protobuf::Arena* arena, - const CreateKeyResponse& from) - : ::google::protobuf::Message(arena) { - CreateKeyResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:viam.app.v1.CreateKeyResponse) +ListOrganizationsByUserRequest::ListOrganizationsByUserRequest(const ListOrganizationsByUserRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + user_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + user_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_user_id().empty()) { + user_id_.Set(from._internal_user_id(), + GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.ListOrganizationsByUserRequest) } -inline PROTOBUF_NDEBUG_INLINE CreateKeyResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : key_(arena), - id_(arena), - _cached_size_{0} {} -inline void CreateKeyResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void ListOrganizationsByUserRequest::SharedCtor() { +user_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + user_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } -CreateKeyResponse::~CreateKeyResponse() { - // @@protoc_insertion_point(destructor:viam.app.v1.CreateKeyResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + +ListOrganizationsByUserRequest::~ListOrganizationsByUserRequest() { + // @@protoc_insertion_point(destructor:viam.app.v1.ListOrganizationsByUserRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } -inline void CreateKeyResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.key_.Destroy(); - _impl_.id_.Destroy(); - _impl_.~Impl_(); -} -PROTOBUF_NOINLINE void CreateKeyResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.CreateKeyResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; +inline void ListOrganizationsByUserRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + user_id_.Destroy(); +} - _impl_.key_.ClearToEmpty(); - _impl_.id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void ListOrganizationsByUserRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* CreateKeyResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void ListOrganizationsByUserRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.ListOrganizationsByUserRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + user_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListOrganizationsByUserRequest::_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 user_id = 1 [json_name = "userId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_user_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ListOrganizationsByUserRequest.user_id")); + } 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* ListOrganizationsByUserRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ListOrganizationsByUserRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 43, 2> CreateKeyResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_CreateKeyResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string id = 2 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(CreateKeyResponse, _impl_.id_)}}, - // string key = 1 [json_name = "key"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(CreateKeyResponse, _impl_.key_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string key = 1 [json_name = "key"]; - {PROTOBUF_FIELD_OFFSET(CreateKeyResponse, _impl_.key_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string id = 2 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(CreateKeyResponse, _impl_.id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\35\3\2\0\0\0\0\0" - "viam.app.v1.CreateKeyResponse" - "key" - "id" - }}, -}; - -::uint8_t* CreateKeyResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.CreateKeyResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string key = 1 [json_name = "key"]; - if (!this->_internal_key().empty()) { - const std::string& _s = this->_internal_key(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.CreateKeyResponse.key"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // string id = 2 [json_name = "id"]; - if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.CreateKeyResponse.id"); - target = stream->WriteStringMaybeAliased(2, _s, target); + // string user_id = 1 [json_name = "userId"]; + if (!this->_internal_user_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_user_id().data(), static_cast(this->_internal_user_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ListOrganizationsByUserRequest.user_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_user_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.CreateKeyResponse) + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.ListOrganizationsByUserRequest) return target; } -::size_t CreateKeyResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.CreateKeyResponse) - ::size_t total_size = 0; +size_t ListOrganizationsByUserRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ListOrganizationsByUserRequest) + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string key = 1 [json_name = "key"]; - if (!this->_internal_key().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_key()); - } - - // string id = 2 [json_name = "id"]; - if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + // string user_id = 1 [json_name = "userId"]; + if (!this->_internal_user_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_user_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData CreateKeyResponse::_class_data_ = { - CreateKeyResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListOrganizationsByUserRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ListOrganizationsByUserRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* CreateKeyResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListOrganizationsByUserRequest::GetClassData() const { return &_class_data_; } + +void ListOrganizationsByUserRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void CreateKeyResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.CreateKeyResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ListOrganizationsByUserRequest::MergeFrom(const ListOrganizationsByUserRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ListOrganizationsByUserRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_key().empty()) { - _this->_internal_set_key(from._internal_key()); - } - if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + if (!from._internal_user_id().empty()) { + _internal_set_user_id(from._internal_user_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void CreateKeyResponse::CopyFrom(const CreateKeyResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.CreateKeyResponse) +void ListOrganizationsByUserRequest::CopyFrom(const ListOrganizationsByUserRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.ListOrganizationsByUserRequest) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool CreateKeyResponse::IsInitialized() const { +bool ListOrganizationsByUserRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* CreateKeyResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void CreateKeyResponse::InternalSwap(CreateKeyResponse* PROTOBUF_RESTRICT other) { +void ListOrganizationsByUserRequest::InternalSwap(ListOrganizationsByUserRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.key_, &other->_impl_.key_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &user_id_, lhs_arena, + &other->user_id_, rhs_arena + ); } -::google::protobuf::Metadata CreateKeyResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ListOrganizationsByUserRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[181]); } + // =================================================================== -class DeleteKeyRequest::_Internal { +class OrgDetails::_Internal { public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_org_cid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_public_namespace(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } }; -DeleteKeyRequest::DeleteKeyRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:viam.app.v1.DeleteKeyRequest) +OrgDetails::OrgDetails(::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.OrgDetails) } -inline PROTOBUF_NDEBUG_INLINE DeleteKeyRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : id_(arena, from.id_), - _cached_size_{0} {} - -DeleteKeyRequest::DeleteKeyRequest( - ::google::protobuf::Arena* arena, - const DeleteKeyRequest& from) - : ::google::protobuf::Message(arena) { - DeleteKeyRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:viam.app.v1.DeleteKeyRequest) +OrgDetails::OrgDetails(const OrgDetails& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + org_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_org_id().empty()) { + org_id_.Set(from._internal_org_id(), + GetArenaForAllocation()); + } + org_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_org_name().empty()) { + org_name_.Set(from._internal_org_name(), + GetArenaForAllocation()); + } + org_cid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_cid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (from._internal_has_org_cid()) { + org_cid_.Set(from._internal_org_cid(), + GetArenaForAllocation()); + } + public_namespace_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + public_namespace_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (from._internal_has_public_namespace()) { + public_namespace_.Set(from._internal_public_namespace(), + GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.OrgDetails) } -inline PROTOBUF_NDEBUG_INLINE DeleteKeyRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : id_(arena), - _cached_size_{0} {} -inline void DeleteKeyRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void OrgDetails::SharedCtor() { +org_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +org_name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +org_cid_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_cid_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +public_namespace_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + public_namespace_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } -DeleteKeyRequest::~DeleteKeyRequest() { - // @@protoc_insertion_point(destructor:viam.app.v1.DeleteKeyRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + +OrgDetails::~OrgDetails() { + // @@protoc_insertion_point(destructor:viam.app.v1.OrgDetails) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } -inline void DeleteKeyRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.~Impl_(); + +inline void OrgDetails::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + org_id_.Destroy(); + org_name_.Destroy(); + org_cid_.Destroy(); + public_namespace_.Destroy(); } -PROTOBUF_NOINLINE void DeleteKeyRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.DeleteKeyRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; +void OrgDetails::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void OrgDetails::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.OrgDetails) + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* DeleteKeyRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + org_id_.ClearToEmpty(); + org_name_.ClearToEmpty(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + org_cid_.ClearNonDefaultToEmpty(); + } + if (cached_has_bits & 0x00000002u) { + public_namespace_.ClearNonDefaultToEmpty(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* OrgDetails::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string org_id = 1 [json_name = "orgId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_org_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.OrgDetails.org_id")); + } else + goto handle_unusual; + continue; + // string org_name = 2 [json_name = "orgName"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_org_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.OrgDetails.org_name")); + } else + goto handle_unusual; + continue; + // optional string org_cid = 3 [json_name = "orgCid"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_org_cid(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.OrgDetails.org_cid")); + } else + goto handle_unusual; + continue; + // optional string public_namespace = 4 [json_name = "publicNamespace"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_public_namespace(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.OrgDetails.public_namespace")); + } 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: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } +uint8_t* OrgDetails::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.OrgDetails) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 39, 2> DeleteKeyRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_DeleteKeyRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string id = 1 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(DeleteKeyRequest, _impl_.id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(DeleteKeyRequest, _impl_.id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\34\2\0\0\0\0\0\0" - "viam.app.v1.DeleteKeyRequest" - "id" - }}, -}; - -::uint8_t* DeleteKeyRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.DeleteKeyRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + // string org_id = 1 [json_name = "orgId"]; + if (!this->_internal_org_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_org_id().data(), static_cast(this->_internal_org_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.OrgDetails.org_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_org_id(), target); + } - // string id = 1 [json_name = "id"]; - if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.DeleteKeyRequest.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + // string org_name = 2 [json_name = "orgName"]; + if (!this->_internal_org_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_org_name().data(), static_cast(this->_internal_org_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.OrgDetails.org_name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_org_name(), target); + } + + // optional string org_cid = 3 [json_name = "orgCid"]; + if (_internal_has_org_cid()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_org_cid().data(), static_cast(this->_internal_org_cid().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.OrgDetails.org_cid"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_org_cid(), target); + } + + // optional string public_namespace = 4 [json_name = "publicNamespace"]; + if (_internal_has_public_namespace()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_public_namespace().data(), static_cast(this->_internal_public_namespace().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.OrgDetails.public_namespace"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_public_namespace(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.DeleteKeyRequest) + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.OrgDetails) return target; } -::size_t DeleteKeyRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.DeleteKeyRequest) - ::size_t total_size = 0; +size_t OrgDetails::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.OrgDetails) + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string id = 1 [json_name = "id"]; - if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + // string org_id = 1 [json_name = "orgId"]; + if (!this->_internal_org_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_org_id()); + } + + // string org_name = 2 [json_name = "orgName"]; + if (!this->_internal_org_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_org_name()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + // optional string org_cid = 3 [json_name = "orgCid"]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_org_cid()); + } + + // optional string public_namespace = 4 [json_name = "publicNamespace"]; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_public_namespace()); + } + + } + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData DeleteKeyRequest::_class_data_ = { - DeleteKeyRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData OrgDetails::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + OrgDetails::MergeImpl }; -const ::google::protobuf::Message::ClassData* DeleteKeyRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*OrgDetails::GetClassData() const { return &_class_data_; } + +void OrgDetails::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void DeleteKeyRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.DeleteKeyRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void OrgDetails::MergeFrom(const OrgDetails& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.OrgDetails) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + if (!from._internal_org_id().empty()) { + _internal_set_org_id(from._internal_org_id()); + } + if (!from._internal_org_name().empty()) { + _internal_set_org_name(from._internal_org_name()); + } + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + _internal_set_org_cid(from._internal_org_cid()); + } + if (cached_has_bits & 0x00000002u) { + _internal_set_public_namespace(from._internal_public_namespace()); + } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void DeleteKeyRequest::CopyFrom(const DeleteKeyRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.DeleteKeyRequest) +void OrgDetails::CopyFrom(const OrgDetails& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.OrgDetails) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool DeleteKeyRequest::IsInitialized() const { +bool OrgDetails::IsInitialized() const { return true; } -::_pbi::CachedSize* DeleteKeyRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void DeleteKeyRequest::InternalSwap(DeleteKeyRequest* PROTOBUF_RESTRICT other) { +void OrgDetails::InternalSwap(OrgDetails* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); -} - -::google::protobuf::Metadata DeleteKeyRequest::GetMetadata() const { + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &org_id_, lhs_arena, + &other->org_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &org_name_, lhs_arena, + &other->org_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &org_cid_, lhs_arena, + &other->org_cid_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &public_namespace_, lhs_arena, + &other->public_namespace_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata OrgDetails::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[182]); } + // =================================================================== -class DeleteKeyResponse::_Internal { +class ListOrganizationsByUserResponse::_Internal { public: }; -DeleteKeyResponse::DeleteKeyResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:viam.app.v1.DeleteKeyResponse) +ListOrganizationsByUserResponse::ListOrganizationsByUserResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + orgs_(arena) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.ListOrganizationsByUserResponse) +} +ListOrganizationsByUserResponse::ListOrganizationsByUserResponse(const ListOrganizationsByUserResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + orgs_(from.orgs_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.app.v1.ListOrganizationsByUserResponse) } -DeleteKeyResponse::DeleteKeyResponse( - ::google::protobuf::Arena* arena, - const DeleteKeyResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - DeleteKeyResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:viam.app.v1.DeleteKeyResponse) +inline void ListOrganizationsByUserResponse::SharedCtor() { +} + +ListOrganizationsByUserResponse::~ListOrganizationsByUserResponse() { + // @@protoc_insertion_point(destructor:viam.app.v1.ListOrganizationsByUserResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ListOrganizationsByUserResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } +void ListOrganizationsByUserResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +void ListOrganizationsByUserResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.ListOrganizationsByUserResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + orgs_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListOrganizationsByUserResponse::_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) { + // repeated .viam.app.v1.OrgDetails orgs = 1 [json_name = "orgs"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_orgs(), 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* ListOrganizationsByUserResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ListOrganizationsByUserResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + // repeated .viam.app.v1.OrgDetails orgs = 1 [json_name = "orgs"]; + for (unsigned i = 0, + n = static_cast(this->_internal_orgs_size()); i < n; i++) { + const auto& repfield = this->_internal_orgs(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.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.app.v1.ListOrganizationsByUserResponse) + return target; +} +size_t ListOrganizationsByUserResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ListOrganizationsByUserResponse) + size_t total_size = 0; + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + // repeated .viam.app.v1.OrgDetails orgs = 1 [json_name = "orgs"]; + total_size += 1UL * this->_internal_orgs_size(); + for (const auto& msg : this->orgs_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } -::google::protobuf::Metadata DeleteKeyResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, - file_level_metadata_app_2fv1_2fapp_2eproto[183]); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -// =================================================================== -class RenameKeyRequest::_Internal { - public: +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListOrganizationsByUserResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ListOrganizationsByUserResponse::MergeImpl }; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListOrganizationsByUserResponse::GetClassData() const { return &_class_data_; } -RenameKeyRequest::RenameKeyRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:viam.app.v1.RenameKeyRequest) +void ListOrganizationsByUserResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -inline PROTOBUF_NDEBUG_INLINE RenameKeyRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : id_(arena, from.id_), - name_(arena, from.name_), - _cached_size_{0} {} - -RenameKeyRequest::RenameKeyRequest( - ::google::protobuf::Arena* arena, - const RenameKeyRequest& from) - : ::google::protobuf::Message(arena) { - RenameKeyRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - // @@protoc_insertion_point(copy_constructor:viam.app.v1.RenameKeyRequest) -} -inline PROTOBUF_NDEBUG_INLINE RenameKeyRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : id_(arena), - name_(arena), - _cached_size_{0} {} -inline void RenameKeyRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +void ListOrganizationsByUserResponse::MergeFrom(const ListOrganizationsByUserResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ListOrganizationsByUserResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + orgs_.MergeFrom(from.orgs_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -RenameKeyRequest::~RenameKeyRequest() { - // @@protoc_insertion_point(destructor:viam.app.v1.RenameKeyRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void RenameKeyRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.name_.Destroy(); - _impl_.~Impl_(); + +void ListOrganizationsByUserResponse::CopyFrom(const ListOrganizationsByUserResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.ListOrganizationsByUserResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); } -PROTOBUF_NOINLINE void RenameKeyRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.RenameKeyRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; +bool ListOrganizationsByUserResponse::IsInitialized() const { + return true; +} - _impl_.id_.ClearToEmpty(); - _impl_.name_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void ListOrganizationsByUserResponse::InternalSwap(ListOrganizationsByUserResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + orgs_.InternalSwap(&other->orgs_); } -const char* RenameKeyRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +::PROTOBUF_NAMESPACE_ID::Metadata ListOrganizationsByUserResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[183]); } +// =================================================================== -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 43, 2> RenameKeyRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_RenameKeyRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string name = 2 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(RenameKeyRequest, _impl_.name_)}}, - // string id = 1 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(RenameKeyRequest, _impl_.id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(RenameKeyRequest, _impl_.id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string name = 2 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(RenameKeyRequest, _impl_.name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\34\2\4\0\0\0\0\0" - "viam.app.v1.RenameKeyRequest" - "id" - "name" - }}, -}; - -::uint8_t* RenameKeyRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.RenameKeyRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; +class SearchOrganizationsRequest::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_org_id(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_org_name(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static void set_has_cid(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } + static void set_has_public_namespace(HasBits* has_bits) { + (*has_bits)[0] |= 8u; + } +}; - // string id = 1 [json_name = "id"]; - if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.RenameKeyRequest.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); +SearchOrganizationsRequest::SearchOrganizationsRequest(::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.SearchOrganizationsRequest) +} +SearchOrganizationsRequest::SearchOrganizationsRequest(const SearchOrganizationsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + org_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (from._internal_has_org_id()) { + org_id_.Set(from._internal_org_id(), + GetArenaForAllocation()); + } + org_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (from._internal_has_org_name()) { + org_name_.Set(from._internal_org_name(), + GetArenaForAllocation()); + } + cid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + cid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (from._internal_has_cid()) { + cid_.Set(from._internal_cid(), + GetArenaForAllocation()); + } + public_namespace_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + public_namespace_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (from._internal_has_public_namespace()) { + public_namespace_.Set(from._internal_public_namespace(), + GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.SearchOrganizationsRequest) +} + +inline void SearchOrganizationsRequest::SharedCtor() { +org_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +org_name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +cid_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + cid_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +public_namespace_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + public_namespace_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +SearchOrganizationsRequest::~SearchOrganizationsRequest() { + // @@protoc_insertion_point(destructor:viam.app.v1.SearchOrganizationsRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; } + SharedDtor(); +} - // string name = 2 [json_name = "name"]; - if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.RenameKeyRequest.name"); - target = stream->WriteStringMaybeAliased(2, _s, target); +inline void SearchOrganizationsRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + org_id_.Destroy(); + org_name_.Destroy(); + cid_.Destroy(); + public_namespace_.Destroy(); +} + +void SearchOrganizationsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void SearchOrganizationsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.SearchOrganizationsRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x0000000fu) { + if (cached_has_bits & 0x00000001u) { + org_id_.ClearNonDefaultToEmpty(); + } + if (cached_has_bits & 0x00000002u) { + org_name_.ClearNonDefaultToEmpty(); + } + if (cached_has_bits & 0x00000004u) { + cid_.ClearNonDefaultToEmpty(); + } + if (cached_has_bits & 0x00000008u) { + public_namespace_.ClearNonDefaultToEmpty(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SearchOrganizationsRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // optional string org_id = 1 [json_name = "orgId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_org_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.SearchOrganizationsRequest.org_id")); + } else + goto handle_unusual; + continue; + // optional string org_name = 2 [json_name = "orgName"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_org_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.SearchOrganizationsRequest.org_name")); + } else + goto handle_unusual; + continue; + // optional string cid = 3 [json_name = "cid"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_cid(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.SearchOrganizationsRequest.cid")); + } else + goto handle_unusual; + continue; + // optional string public_namespace = 4 [json_name = "publicNamespace"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_public_namespace(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.SearchOrganizationsRequest.public_namespace")); + } 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: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* SearchOrganizationsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.SearchOrganizationsRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // optional string org_id = 1 [json_name = "orgId"]; + if (_internal_has_org_id()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_org_id().data(), static_cast(this->_internal_org_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.SearchOrganizationsRequest.org_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_org_id(), target); + } + + // optional string org_name = 2 [json_name = "orgName"]; + if (_internal_has_org_name()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_org_name().data(), static_cast(this->_internal_org_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.SearchOrganizationsRequest.org_name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_org_name(), target); + } + + // optional string cid = 3 [json_name = "cid"]; + if (_internal_has_cid()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_cid().data(), static_cast(this->_internal_cid().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.SearchOrganizationsRequest.cid"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_cid(), target); + } + + // optional string public_namespace = 4 [json_name = "publicNamespace"]; + if (_internal_has_public_namespace()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_public_namespace().data(), static_cast(this->_internal_public_namespace().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.SearchOrganizationsRequest.public_namespace"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_public_namespace(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.RenameKeyRequest) + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.SearchOrganizationsRequest) return target; } -::size_t RenameKeyRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.RenameKeyRequest) - ::size_t total_size = 0; +size_t SearchOrganizationsRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.SearchOrganizationsRequest) + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string id = 1 [json_name = "id"]; - if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); - } + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x0000000fu) { + // optional string org_id = 1 [json_name = "orgId"]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_org_id()); + } - // string name = 2 [json_name = "name"]; - if (!this->_internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); - } + // optional string org_name = 2 [json_name = "orgName"]; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_org_name()); + } + + // optional string cid = 3 [json_name = "cid"]; + if (cached_has_bits & 0x00000004u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_cid()); + } + + // optional string public_namespace = 4 [json_name = "publicNamespace"]; + if (cached_has_bits & 0x00000008u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_public_namespace()); + } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + } + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData RenameKeyRequest::_class_data_ = { - RenameKeyRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SearchOrganizationsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + SearchOrganizationsRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* RenameKeyRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SearchOrganizationsRequest::GetClassData() const { return &_class_data_; } + +void SearchOrganizationsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void RenameKeyRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.RenameKeyRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void SearchOrganizationsRequest::MergeFrom(const SearchOrganizationsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.SearchOrganizationsRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); - } - if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x0000000fu) { + if (cached_has_bits & 0x00000001u) { + _internal_set_org_id(from._internal_org_id()); + } + if (cached_has_bits & 0x00000002u) { + _internal_set_org_name(from._internal_org_name()); + } + if (cached_has_bits & 0x00000004u) { + _internal_set_cid(from._internal_cid()); + } + if (cached_has_bits & 0x00000008u) { + _internal_set_public_namespace(from._internal_public_namespace()); + } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void RenameKeyRequest::CopyFrom(const RenameKeyRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.RenameKeyRequest) +void SearchOrganizationsRequest::CopyFrom(const SearchOrganizationsRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.SearchOrganizationsRequest) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool RenameKeyRequest::IsInitialized() const { +bool SearchOrganizationsRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* RenameKeyRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void RenameKeyRequest::InternalSwap(RenameKeyRequest* PROTOBUF_RESTRICT other) { +void SearchOrganizationsRequest::InternalSwap(SearchOrganizationsRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); -} - -::google::protobuf::Metadata RenameKeyRequest::GetMetadata() const { + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &org_id_, lhs_arena, + &other->org_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &org_name_, lhs_arena, + &other->org_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &cid_, lhs_arena, + &other->cid_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &public_namespace_, lhs_arena, + &other->public_namespace_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SearchOrganizationsRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[184]); } + // =================================================================== -class RenameKeyResponse::_Internal { +class SearchOrganizationsResponse::_Internal { public: }; -RenameKeyResponse::RenameKeyResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:viam.app.v1.RenameKeyResponse) +SearchOrganizationsResponse::SearchOrganizationsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + organizations_(arena) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.SearchOrganizationsResponse) } -inline PROTOBUF_NDEBUG_INLINE RenameKeyResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : id_(arena, from.id_), - name_(arena, from.name_), - _cached_size_{0} {} - -RenameKeyResponse::RenameKeyResponse( - ::google::protobuf::Arena* arena, - const RenameKeyResponse& from) - : ::google::protobuf::Message(arena) { - RenameKeyResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:viam.app.v1.RenameKeyResponse) +SearchOrganizationsResponse::SearchOrganizationsResponse(const SearchOrganizationsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + organizations_(from.organizations_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.app.v1.SearchOrganizationsResponse) } -inline PROTOBUF_NDEBUG_INLINE RenameKeyResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : id_(arena), - name_(arena), - _cached_size_{0} {} -inline void RenameKeyResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void SearchOrganizationsResponse::SharedCtor() { } -RenameKeyResponse::~RenameKeyResponse() { - // @@protoc_insertion_point(destructor:viam.app.v1.RenameKeyResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + +SearchOrganizationsResponse::~SearchOrganizationsResponse() { + // @@protoc_insertion_point(destructor:viam.app.v1.SearchOrganizationsResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } -inline void RenameKeyResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.name_.Destroy(); - _impl_.~Impl_(); + +inline void SearchOrganizationsResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void RenameKeyResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.RenameKeyResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; +void SearchOrganizationsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void SearchOrganizationsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.SearchOrganizationsResponse) + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.id_.ClearToEmpty(); - _impl_.name_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + organizations_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* RenameKeyResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +const char* SearchOrganizationsResponse::_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) { + // repeated .viam.app.v1.OrgDetails organizations = 1 [json_name = "organizations"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_organizations(), 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* SearchOrganizationsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.SearchOrganizationsResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 44, 2> RenameKeyResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_RenameKeyResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string name = 2 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(RenameKeyResponse, _impl_.name_)}}, - // string id = 1 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(RenameKeyResponse, _impl_.id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(RenameKeyResponse, _impl_.id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string name = 2 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(RenameKeyResponse, _impl_.name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\35\2\4\0\0\0\0\0" - "viam.app.v1.RenameKeyResponse" - "id" - "name" - }}, -}; - -::uint8_t* RenameKeyResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.RenameKeyResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string id = 1 [json_name = "id"]; - if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.RenameKeyResponse.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // string name = 2 [json_name = "name"]; - if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.RenameKeyResponse.name"); - target = stream->WriteStringMaybeAliased(2, _s, target); + // repeated .viam.app.v1.OrgDetails organizations = 1 [json_name = "organizations"]; + for (unsigned i = 0, + n = static_cast(this->_internal_organizations_size()); i < n; i++) { + const auto& repfield = this->_internal_organizations(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.RenameKeyResponse) + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.SearchOrganizationsResponse) return target; } -::size_t RenameKeyResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.RenameKeyResponse) - ::size_t total_size = 0; +size_t SearchOrganizationsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.SearchOrganizationsResponse) + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string id = 1 [json_name = "id"]; - if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); - } - - // string name = 2 [json_name = "name"]; - if (!this->_internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + // repeated .viam.app.v1.OrgDetails organizations = 1 [json_name = "organizations"]; + total_size += 1UL * this->_internal_organizations_size(); + for (const auto& msg : this->organizations_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData RenameKeyResponse::_class_data_ = { - RenameKeyResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SearchOrganizationsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + SearchOrganizationsResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* RenameKeyResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SearchOrganizationsResponse::GetClassData() const { return &_class_data_; } + +void SearchOrganizationsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void RenameKeyResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.RenameKeyResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void SearchOrganizationsResponse::MergeFrom(const SearchOrganizationsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.SearchOrganizationsResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); - } - if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + organizations_.MergeFrom(from.organizations_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void RenameKeyResponse::CopyFrom(const RenameKeyResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.RenameKeyResponse) +void SearchOrganizationsResponse::CopyFrom(const SearchOrganizationsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.SearchOrganizationsResponse) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool RenameKeyResponse::IsInitialized() const { +bool SearchOrganizationsResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* RenameKeyResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void RenameKeyResponse::InternalSwap(RenameKeyResponse* PROTOBUF_RESTRICT other) { +void SearchOrganizationsResponse::InternalSwap(SearchOrganizationsResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); + organizations_.InternalSwap(&other->organizations_); } -::google::protobuf::Metadata RenameKeyResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata SearchOrganizationsResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[185]); } + // =================================================================== -class AuthorizationDetails::_Internal { +class CreateKeyRequest::_Internal { public: }; -AuthorizationDetails::AuthorizationDetails(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:viam.app.v1.AuthorizationDetails) +CreateKeyRequest::CreateKeyRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + authorizations_(arena) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.CreateKeyRequest) } -inline PROTOBUF_NDEBUG_INLINE AuthorizationDetails::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : authorization_type_(arena, from.authorization_type_), - authorization_id_(arena, from.authorization_id_), - resource_type_(arena, from.resource_type_), - resource_id_(arena, from.resource_id_), - org_id_(arena, from.org_id_), - _cached_size_{0} {} - -AuthorizationDetails::AuthorizationDetails( - ::google::protobuf::Arena* arena, - const AuthorizationDetails& from) - : ::google::protobuf::Message(arena) { - AuthorizationDetails* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:viam.app.v1.AuthorizationDetails) +CreateKeyRequest::CreateKeyRequest(const CreateKeyRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + authorizations_(from.authorizations_) { + _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()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.CreateKeyRequest) } -inline PROTOBUF_NDEBUG_INLINE AuthorizationDetails::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : authorization_type_(arena), - authorization_id_(arena), - resource_type_(arena), - resource_id_(arena), - org_id_(arena), - _cached_size_{0} {} -inline void AuthorizationDetails::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void CreateKeyRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } -AuthorizationDetails::~AuthorizationDetails() { - // @@protoc_insertion_point(destructor:viam.app.v1.AuthorizationDetails) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + +CreateKeyRequest::~CreateKeyRequest() { + // @@protoc_insertion_point(destructor:viam.app.v1.CreateKeyRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } -inline void AuthorizationDetails::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.authorization_type_.Destroy(); - _impl_.authorization_id_.Destroy(); - _impl_.resource_type_.Destroy(); - _impl_.resource_id_.Destroy(); - _impl_.org_id_.Destroy(); - _impl_.~Impl_(); -} -PROTOBUF_NOINLINE void AuthorizationDetails::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.AuthorizationDetails) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; +inline void CreateKeyRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); +} - _impl_.authorization_type_.ClearToEmpty(); - _impl_.authorization_id_.ClearToEmpty(); - _impl_.resource_type_.ClearToEmpty(); - _impl_.resource_id_.ClearToEmpty(); - _impl_.org_id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void CreateKeyRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* AuthorizationDetails::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void CreateKeyRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.CreateKeyRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + authorizations_.Clear(); + name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CreateKeyRequest::_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) { + // repeated .viam.app.v1.Authorization authorizations = 1 [json_name = "authorizations"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_authorizations(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + // string name = 2 [json_name = "name"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.CreateKeyRequest.name")); + } 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* CreateKeyRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.CreateKeyRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 5, 0, 105, 2> AuthorizationDetails::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 5, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967264, // skipmap - offsetof(decltype(_table_), field_entries), - 5, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_AuthorizationDetails_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string authorization_type = 1 [json_name = "authorizationType"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(AuthorizationDetails, _impl_.authorization_type_)}}, - // string authorization_id = 2 [json_name = "authorizationId"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(AuthorizationDetails, _impl_.authorization_id_)}}, - // string resource_type = 3 [json_name = "resourceType"]; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(AuthorizationDetails, _impl_.resource_type_)}}, - // string resource_id = 4 [json_name = "resourceId"]; - {::_pbi::TcParser::FastUS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(AuthorizationDetails, _impl_.resource_id_)}}, - // string org_id = 5 [json_name = "orgId"]; - {::_pbi::TcParser::FastUS1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(AuthorizationDetails, _impl_.org_id_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string authorization_type = 1 [json_name = "authorizationType"]; - {PROTOBUF_FIELD_OFFSET(AuthorizationDetails, _impl_.authorization_type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string authorization_id = 2 [json_name = "authorizationId"]; - {PROTOBUF_FIELD_OFFSET(AuthorizationDetails, _impl_.authorization_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string resource_type = 3 [json_name = "resourceType"]; - {PROTOBUF_FIELD_OFFSET(AuthorizationDetails, _impl_.resource_type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string resource_id = 4 [json_name = "resourceId"]; - {PROTOBUF_FIELD_OFFSET(AuthorizationDetails, _impl_.resource_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string org_id = 5 [json_name = "orgId"]; - {PROTOBUF_FIELD_OFFSET(AuthorizationDetails, _impl_.org_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\40\22\20\15\13\6\0\0" - "viam.app.v1.AuthorizationDetails" - "authorization_type" - "authorization_id" - "resource_type" - "resource_id" - "org_id" - }}, -}; - -::uint8_t* AuthorizationDetails::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.AuthorizationDetails) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string authorization_type = 1 [json_name = "authorizationType"]; - if (!this->_internal_authorization_type().empty()) { - const std::string& _s = this->_internal_authorization_type(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.AuthorizationDetails.authorization_type"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // string authorization_id = 2 [json_name = "authorizationId"]; - if (!this->_internal_authorization_id().empty()) { - const std::string& _s = this->_internal_authorization_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.AuthorizationDetails.authorization_id"); - target = stream->WriteStringMaybeAliased(2, _s, target); - } - - // string resource_type = 3 [json_name = "resourceType"]; - if (!this->_internal_resource_type().empty()) { - const std::string& _s = this->_internal_resource_type(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.AuthorizationDetails.resource_type"); - target = stream->WriteStringMaybeAliased(3, _s, target); - } - - // string resource_id = 4 [json_name = "resourceId"]; - if (!this->_internal_resource_id().empty()) { - const std::string& _s = this->_internal_resource_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.AuthorizationDetails.resource_id"); - target = stream->WriteStringMaybeAliased(4, _s, target); + // repeated .viam.app.v1.Authorization authorizations = 1 [json_name = "authorizations"]; + for (unsigned i = 0, + n = static_cast(this->_internal_authorizations_size()); i < n; i++) { + const auto& repfield = this->_internal_authorizations(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } - // string org_id = 5 [json_name = "orgId"]; - if (!this->_internal_org_id().empty()) { - const std::string& _s = this->_internal_org_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.AuthorizationDetails.org_id"); - target = stream->WriteStringMaybeAliased(5, _s, target); + // string name = 2 [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.app.v1.CreateKeyRequest.name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_name(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.AuthorizationDetails) + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.CreateKeyRequest) return target; } -::size_t AuthorizationDetails::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.AuthorizationDetails) - ::size_t total_size = 0; +size_t CreateKeyRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.CreateKeyRequest) + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string authorization_type = 1 [json_name = "authorizationType"]; - if (!this->_internal_authorization_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_authorization_type()); - } - - // string authorization_id = 2 [json_name = "authorizationId"]; - if (!this->_internal_authorization_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_authorization_id()); - } - - // string resource_type = 3 [json_name = "resourceType"]; - if (!this->_internal_resource_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_resource_type()); - } - - // string resource_id = 4 [json_name = "resourceId"]; - if (!this->_internal_resource_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_resource_id()); + // repeated .viam.app.v1.Authorization authorizations = 1 [json_name = "authorizations"]; + total_size += 1UL * this->_internal_authorizations_size(); + for (const auto& msg : this->authorizations_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - // string org_id = 5 [json_name = "orgId"]; - if (!this->_internal_org_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_org_id()); + // string name = 2 [json_name = "name"]; + if (!this->_internal_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData AuthorizationDetails::_class_data_ = { - AuthorizationDetails::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CreateKeyRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CreateKeyRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* AuthorizationDetails::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CreateKeyRequest::GetClassData() const { return &_class_data_; } + +void CreateKeyRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void AuthorizationDetails::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.AuthorizationDetails) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void CreateKeyRequest::MergeFrom(const CreateKeyRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.CreateKeyRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_authorization_type().empty()) { - _this->_internal_set_authorization_type(from._internal_authorization_type()); - } - if (!from._internal_authorization_id().empty()) { - _this->_internal_set_authorization_id(from._internal_authorization_id()); - } - if (!from._internal_resource_type().empty()) { - _this->_internal_set_resource_type(from._internal_resource_type()); - } - if (!from._internal_resource_id().empty()) { - _this->_internal_set_resource_id(from._internal_resource_id()); - } - if (!from._internal_org_id().empty()) { - _this->_internal_set_org_id(from._internal_org_id()); + authorizations_.MergeFrom(from.authorizations_); + if (!from._internal_name().empty()) { + _internal_set_name(from._internal_name()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void AuthorizationDetails::CopyFrom(const AuthorizationDetails& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.AuthorizationDetails) +void CreateKeyRequest::CopyFrom(const CreateKeyRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.CreateKeyRequest) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool AuthorizationDetails::IsInitialized() const { +bool CreateKeyRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* AuthorizationDetails::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void AuthorizationDetails::InternalSwap(AuthorizationDetails* PROTOBUF_RESTRICT other) { +void CreateKeyRequest::InternalSwap(CreateKeyRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.authorization_type_, &other->_impl_.authorization_type_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.authorization_id_, &other->_impl_.authorization_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.resource_type_, &other->_impl_.resource_type_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.resource_id_, &other->_impl_.resource_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.org_id_, &other->_impl_.org_id_, arena); + authorizations_.InternalSwap(&other->authorizations_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); } -::google::protobuf::Metadata AuthorizationDetails::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata CreateKeyRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[186]); } + // =================================================================== -class APIKeyWithAuthorizations::_Internal { +class CreateKeyResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(APIKeyWithAuthorizations, _impl_._has_bits_); - static const ::viam::app::v1::APIKey& api_key(const APIKeyWithAuthorizations* msg); - static void set_has_api_key(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::app::v1::APIKey& APIKeyWithAuthorizations::_Internal::api_key(const APIKeyWithAuthorizations* msg) { - return *msg->_impl_.api_key_; -} -APIKeyWithAuthorizations::APIKeyWithAuthorizations(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:viam.app.v1.APIKeyWithAuthorizations) -} -inline PROTOBUF_NDEBUG_INLINE APIKeyWithAuthorizations::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - authorizations_{visibility, arena, from.authorizations_} {} - -APIKeyWithAuthorizations::APIKeyWithAuthorizations( - ::google::protobuf::Arena* arena, - const APIKeyWithAuthorizations& from) - : ::google::protobuf::Message(arena) { - APIKeyWithAuthorizations* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.api_key_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::app::v1::APIKey>(arena, *from._impl_.api_key_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:viam.app.v1.APIKeyWithAuthorizations) +CreateKeyResponse::CreateKeyResponse(::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.CreateKeyResponse) +} +CreateKeyResponse::CreateKeyResponse(const CreateKeyResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + key_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + key_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_key().empty()) { + key_.Set(from._internal_key(), + GetArenaForAllocation()); + } + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.CreateKeyResponse) } -inline PROTOBUF_NDEBUG_INLINE APIKeyWithAuthorizations::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - authorizations_{visibility, arena} {} -inline void APIKeyWithAuthorizations::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.api_key_ = {}; +inline void CreateKeyResponse::SharedCtor() { +key_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + key_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } -APIKeyWithAuthorizations::~APIKeyWithAuthorizations() { - // @@protoc_insertion_point(destructor:viam.app.v1.APIKeyWithAuthorizations) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + +CreateKeyResponse::~CreateKeyResponse() { + // @@protoc_insertion_point(destructor:viam.app.v1.CreateKeyResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } -inline void APIKeyWithAuthorizations::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.api_key_; - _impl_.~Impl_(); -} -PROTOBUF_NOINLINE void APIKeyWithAuthorizations::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.APIKeyWithAuthorizations) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; +inline void CreateKeyResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + key_.Destroy(); + id_.Destroy(); +} - _impl_.authorizations_.Clear(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.api_key_ != nullptr); - _impl_.api_key_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void CreateKeyResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* APIKeyWithAuthorizations::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void CreateKeyResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.CreateKeyResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + key_.ClearToEmpty(); + id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CreateKeyResponse::_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 key = 1 [json_name = "key"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_key(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.CreateKeyResponse.key")); + } else + goto handle_unusual; + continue; + // string id = 2 [json_name = "id"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.CreateKeyResponse.id")); + } 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* CreateKeyResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.CreateKeyResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 2, 0, 2> APIKeyWithAuthorizations::_table_ = { - { - PROTOBUF_FIELD_OFFSET(APIKeyWithAuthorizations, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_APIKeyWithAuthorizations_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.app.v1.AuthorizationDetails authorizations = 2 [json_name = "authorizations"]; - {::_pbi::TcParser::FastMtR1, - {18, 63, 1, PROTOBUF_FIELD_OFFSET(APIKeyWithAuthorizations, _impl_.authorizations_)}}, - // .viam.app.v1.APIKey api_key = 1 [json_name = "apiKey"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(APIKeyWithAuthorizations, _impl_.api_key_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.app.v1.APIKey api_key = 1 [json_name = "apiKey"]; - {PROTOBUF_FIELD_OFFSET(APIKeyWithAuthorizations, _impl_.api_key_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated .viam.app.v1.AuthorizationDetails authorizations = 2 [json_name = "authorizations"]; - {PROTOBUF_FIELD_OFFSET(APIKeyWithAuthorizations, _impl_.authorizations_), -1, 1, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::APIKey>()}, - {::_pbi::TcParser::GetTable<::viam::app::v1::AuthorizationDetails>()}, - }}, {{ - }}, -}; - -::uint8_t* APIKeyWithAuthorizations::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.APIKeyWithAuthorizations) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .viam.app.v1.APIKey api_key = 1 [json_name = "apiKey"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::api_key(this), - _Internal::api_key(this).GetCachedSize(), target, stream); + // string key = 1 [json_name = "key"]; + if (!this->_internal_key().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_key().data(), static_cast(this->_internal_key().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.CreateKeyResponse.key"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_key(), target); } - // repeated .viam.app.v1.AuthorizationDetails authorizations = 2 [json_name = "authorizations"]; - for (unsigned i = 0, - n = static_cast(this->_internal_authorizations_size()); i < n; i++) { - const auto& repfield = this->_internal_authorizations().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); + // string id = 2 [json_name = "id"]; + if (!this->_internal_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.CreateKeyResponse.id"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.APIKeyWithAuthorizations) + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.CreateKeyResponse) return target; } -::size_t APIKeyWithAuthorizations::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.APIKeyWithAuthorizations) - ::size_t total_size = 0; +size_t CreateKeyResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.CreateKeyResponse) + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated .viam.app.v1.AuthorizationDetails authorizations = 2 [json_name = "authorizations"]; - total_size += 1UL * this->_internal_authorizations_size(); - for (const auto& msg : this->_internal_authorizations()) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + // string key = 1 [json_name = "key"]; + if (!this->_internal_key().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_key()); } - // .viam.app.v1.APIKey api_key = 1 [json_name = "apiKey"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.api_key_); + + // string id = 2 [json_name = "id"]; + if (!this->_internal_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData APIKeyWithAuthorizations::_class_data_ = { - APIKeyWithAuthorizations::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CreateKeyResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CreateKeyResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* APIKeyWithAuthorizations::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CreateKeyResponse::GetClassData() const { return &_class_data_; } + +void CreateKeyResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void APIKeyWithAuthorizations::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.APIKeyWithAuthorizations) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void CreateKeyResponse::MergeFrom(const CreateKeyResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.CreateKeyResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_authorizations()->MergeFrom( - from._internal_authorizations()); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_api_key()->::viam::app::v1::APIKey::MergeFrom( - from._internal_api_key()); + if (!from._internal_key().empty()) { + _internal_set_key(from._internal_key()); + } + if (!from._internal_id().empty()) { + _internal_set_id(from._internal_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void APIKeyWithAuthorizations::CopyFrom(const APIKeyWithAuthorizations& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.APIKeyWithAuthorizations) +void CreateKeyResponse::CopyFrom(const CreateKeyResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.CreateKeyResponse) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool APIKeyWithAuthorizations::IsInitialized() const { +bool CreateKeyResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* APIKeyWithAuthorizations::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void APIKeyWithAuthorizations::InternalSwap(APIKeyWithAuthorizations* PROTOBUF_RESTRICT other) { +void CreateKeyResponse::InternalSwap(CreateKeyResponse* other) { using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.authorizations_.InternalSwap(&other->_impl_.authorizations_); - swap(_impl_.api_key_, other->_impl_.api_key_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &key_, lhs_arena, + &other->key_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); } -::google::protobuf::Metadata APIKeyWithAuthorizations::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata CreateKeyResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[187]); } + // =================================================================== -class ListKeysRequest::_Internal { +class DeleteKeyRequest::_Internal { public: }; -ListKeysRequest::ListKeysRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:viam.app.v1.ListKeysRequest) +DeleteKeyRequest::DeleteKeyRequest(::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.DeleteKeyRequest) } -inline PROTOBUF_NDEBUG_INLINE ListKeysRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : org_id_(arena, from.org_id_), - _cached_size_{0} {} - -ListKeysRequest::ListKeysRequest( - ::google::protobuf::Arena* arena, - const ListKeysRequest& from) - : ::google::protobuf::Message(arena) { - ListKeysRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:viam.app.v1.ListKeysRequest) +DeleteKeyRequest::DeleteKeyRequest(const DeleteKeyRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.DeleteKeyRequest) } -inline PROTOBUF_NDEBUG_INLINE ListKeysRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : org_id_(arena), - _cached_size_{0} {} -inline void ListKeysRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void DeleteKeyRequest::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } -ListKeysRequest::~ListKeysRequest() { - // @@protoc_insertion_point(destructor:viam.app.v1.ListKeysRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + +DeleteKeyRequest::~DeleteKeyRequest() { + // @@protoc_insertion_point(destructor:viam.app.v1.DeleteKeyRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } -inline void ListKeysRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.org_id_.Destroy(); - _impl_.~Impl_(); -} -PROTOBUF_NOINLINE void ListKeysRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.ListKeysRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; +inline void DeleteKeyRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); +} - _impl_.org_id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void DeleteKeyRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* ListKeysRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void DeleteKeyRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.DeleteKeyRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DeleteKeyRequest::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.DeleteKeyRequest.id")); + } 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* DeleteKeyRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.DeleteKeyRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 42, 2> ListKeysRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_ListKeysRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string org_id = 1 [json_name = "orgId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ListKeysRequest, _impl_.org_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string org_id = 1 [json_name = "orgId"]; - {PROTOBUF_FIELD_OFFSET(ListKeysRequest, _impl_.org_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\33\6\0\0\0\0\0\0" - "viam.app.v1.ListKeysRequest" - "org_id" - }}, -}; - -::uint8_t* ListKeysRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ListKeysRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string org_id = 1 [json_name = "orgId"]; - if (!this->_internal_org_id().empty()) { - const std::string& _s = this->_internal_org_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ListKeysRequest.org_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.DeleteKeyRequest.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.ListKeysRequest) + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.DeleteKeyRequest) return target; } -::size_t ListKeysRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ListKeysRequest) - ::size_t total_size = 0; +size_t DeleteKeyRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.DeleteKeyRequest) + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string org_id = 1 [json_name = "orgId"]; - if (!this->_internal_org_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_org_id()); + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ListKeysRequest::_class_data_ = { - ListKeysRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeleteKeyRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + DeleteKeyRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* ListKeysRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeleteKeyRequest::GetClassData() const { return &_class_data_; } + +void DeleteKeyRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ListKeysRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ListKeysRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void DeleteKeyRequest::MergeFrom(const DeleteKeyRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.DeleteKeyRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_org_id().empty()) { - _this->_internal_set_org_id(from._internal_org_id()); + if (!from._internal_id().empty()) { + _internal_set_id(from._internal_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void ListKeysRequest::CopyFrom(const ListKeysRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.ListKeysRequest) +void DeleteKeyRequest::CopyFrom(const DeleteKeyRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.DeleteKeyRequest) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool ListKeysRequest::IsInitialized() const { +bool DeleteKeyRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* ListKeysRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ListKeysRequest::InternalSwap(ListKeysRequest* PROTOBUF_RESTRICT other) { +void DeleteKeyRequest::InternalSwap(DeleteKeyRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.org_id_, &other->_impl_.org_id_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); } -::google::protobuf::Metadata ListKeysRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata DeleteKeyRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[188]); } + // =================================================================== -class ListKeysResponse::_Internal { +class DeleteKeyResponse::_Internal { public: }; -ListKeysResponse::ListKeysResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:viam.app.v1.ListKeysResponse) -} -inline PROTOBUF_NDEBUG_INLINE ListKeysResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : api_keys_{visibility, arena, from.api_keys_}, - _cached_size_{0} {} - -ListKeysResponse::ListKeysResponse( - ::google::protobuf::Arena* arena, - const ListKeysResponse& from) - : ::google::protobuf::Message(arena) { - ListKeysResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:viam.app.v1.ListKeysResponse) -} -inline PROTOBUF_NDEBUG_INLINE ListKeysResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : api_keys_{visibility, arena}, - _cached_size_{0} {} - -inline void ListKeysResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -ListKeysResponse::~ListKeysResponse() { - // @@protoc_insertion_point(destructor:viam.app.v1.ListKeysResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void ListKeysResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void ListKeysResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.ListKeysResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.api_keys_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +DeleteKeyResponse::DeleteKeyResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.app.v1.DeleteKeyResponse) } - -const char* ListKeysResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +DeleteKeyResponse::DeleteKeyResponse(const DeleteKeyResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.app.v1.DeleteKeyResponse) } -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ListKeysResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ListKeysResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.app.v1.APIKeyWithAuthorizations api_keys = 1 [json_name = "apiKeys"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ListKeysResponse, _impl_.api_keys_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.app.v1.APIKeyWithAuthorizations api_keys = 1 [json_name = "apiKeys"]; - {PROTOBUF_FIELD_OFFSET(ListKeysResponse, _impl_.api_keys_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::APIKeyWithAuthorizations>()}, - }}, {{ - }}, -}; - -::uint8_t* ListKeysResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ListKeysResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // repeated .viam.app.v1.APIKeyWithAuthorizations api_keys = 1 [json_name = "apiKeys"]; - for (unsigned i = 0, - n = static_cast(this->_internal_api_keys_size()); i < n; i++) { - const auto& repfield = this->_internal_api_keys().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.ListKeysResponse) - return target; -} - -::size_t ListKeysResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ListKeysResponse) - ::size_t total_size = 0; - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // repeated .viam.app.v1.APIKeyWithAuthorizations api_keys = 1 [json_name = "apiKeys"]; - total_size += 1UL * this->_internal_api_keys_size(); - for (const auto& msg : this->_internal_api_keys()) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} -const ::google::protobuf::Message::ClassData ListKeysResponse::_class_data_ = { - ListKeysResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeleteKeyResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, }; -const ::google::protobuf::Message::ClassData* ListKeysResponse::GetClassData() const { - return &_class_data_; -} +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeleteKeyResponse::GetClassData() const { return &_class_data_; } + -void ListKeysResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ListKeysResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - _this->_internal_mutable_api_keys()->MergeFrom( - from._internal_api_keys()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} -void ListKeysResponse::CopyFrom(const ListKeysResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.ListKeysResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} -PROTOBUF_NOINLINE bool ListKeysResponse::IsInitialized() const { - return true; -} -::_pbi::CachedSize* ListKeysResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ListKeysResponse::InternalSwap(ListKeysResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.api_keys_.InternalSwap(&other->_impl_.api_keys_); -} -::google::protobuf::Metadata ListKeysResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata DeleteKeyResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[189]); } + // =================================================================== -class RotateKeyRequest::_Internal { +class RenameKeyRequest::_Internal { public: }; -RotateKeyRequest::RotateKeyRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:viam.app.v1.RotateKeyRequest) +RenameKeyRequest::RenameKeyRequest(::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.RenameKeyRequest) } -inline PROTOBUF_NDEBUG_INLINE RotateKeyRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : id_(arena, from.id_), - _cached_size_{0} {} - -RotateKeyRequest::RotateKeyRequest( - ::google::protobuf::Arena* arena, - const RotateKeyRequest& from) - : ::google::protobuf::Message(arena) { - RotateKeyRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:viam.app.v1.RotateKeyRequest) +RenameKeyRequest::RenameKeyRequest(const RenameKeyRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } + 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()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.RenameKeyRequest) } -inline PROTOBUF_NDEBUG_INLINE RotateKeyRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : id_(arena), - _cached_size_{0} {} -inline void RotateKeyRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void RenameKeyRequest::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } -RotateKeyRequest::~RotateKeyRequest() { - // @@protoc_insertion_point(destructor:viam.app.v1.RotateKeyRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + +RenameKeyRequest::~RenameKeyRequest() { + // @@protoc_insertion_point(destructor:viam.app.v1.RenameKeyRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } -inline void RotateKeyRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.~Impl_(); -} -PROTOBUF_NOINLINE void RotateKeyRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.RotateKeyRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; +inline void RenameKeyRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); + name_.Destroy(); +} - _impl_.id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void RenameKeyRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* RotateKeyRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void RenameKeyRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.RenameKeyRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + id_.ClearToEmpty(); + name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RenameKeyRequest::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RenameKeyRequest.id")); + } else + goto handle_unusual; + continue; + // string name = 2 [json_name = "name"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RenameKeyRequest.name")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 39, 2> RotateKeyRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_RotateKeyRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string id = 1 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(RotateKeyRequest, _impl_.id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(RotateKeyRequest, _impl_.id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\34\2\0\0\0\0\0\0" - "viam.app.v1.RotateKeyRequest" - "id" - }}, -}; - -::uint8_t* RotateKeyRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.RotateKeyRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; +uint8_t* RenameKeyRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.RenameKeyRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.RotateKeyRequest.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RenameKeyRequest.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); + } + + // string name = 2 [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.app.v1.RenameKeyRequest.name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_name(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.RotateKeyRequest) + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.RenameKeyRequest) return target; } -::size_t RotateKeyRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.RotateKeyRequest) - ::size_t total_size = 0; +size_t RenameKeyRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.RenameKeyRequest) + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); + } + + // string name = 2 [json_name = "name"]; + if (!this->_internal_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData RotateKeyRequest::_class_data_ = { - RotateKeyRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RenameKeyRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + RenameKeyRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* RotateKeyRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RenameKeyRequest::GetClassData() const { return &_class_data_; } + +void RenameKeyRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void RotateKeyRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.RotateKeyRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void RenameKeyRequest::MergeFrom(const RenameKeyRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.RenameKeyRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); + } + if (!from._internal_name().empty()) { + _internal_set_name(from._internal_name()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void RotateKeyRequest::CopyFrom(const RotateKeyRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.RotateKeyRequest) +void RenameKeyRequest::CopyFrom(const RenameKeyRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.RenameKeyRequest) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool RotateKeyRequest::IsInitialized() const { +bool RenameKeyRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* RotateKeyRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void RotateKeyRequest::InternalSwap(RotateKeyRequest* PROTOBUF_RESTRICT other) { +void RenameKeyRequest::InternalSwap(RenameKeyRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); } -::google::protobuf::Metadata RotateKeyRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata RenameKeyRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[190]); } + // =================================================================== -class RotateKeyResponse::_Internal { +class RenameKeyResponse::_Internal { public: }; -RotateKeyResponse::RotateKeyResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:viam.app.v1.RotateKeyResponse) +RenameKeyResponse::RenameKeyResponse(::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.RenameKeyResponse) } -inline PROTOBUF_NDEBUG_INLINE RotateKeyResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : id_(arena, from.id_), - key_(arena, from.key_), - _cached_size_{0} {} - -RotateKeyResponse::RotateKeyResponse( - ::google::protobuf::Arena* arena, - const RotateKeyResponse& from) - : ::google::protobuf::Message(arena) { - RotateKeyResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:viam.app.v1.RotateKeyResponse) +RenameKeyResponse::RenameKeyResponse(const RenameKeyResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } + 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()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.RenameKeyResponse) } -inline PROTOBUF_NDEBUG_INLINE RotateKeyResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : id_(arena), - key_(arena), - _cached_size_{0} {} -inline void RotateKeyResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void RenameKeyResponse::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } -RotateKeyResponse::~RotateKeyResponse() { - // @@protoc_insertion_point(destructor:viam.app.v1.RotateKeyResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + +RenameKeyResponse::~RenameKeyResponse() { + // @@protoc_insertion_point(destructor:viam.app.v1.RenameKeyResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } -inline void RotateKeyResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.key_.Destroy(); - _impl_.~Impl_(); -} -PROTOBUF_NOINLINE void RotateKeyResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.RotateKeyResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; +inline void RenameKeyResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); + name_.Destroy(); +} - _impl_.id_.ClearToEmpty(); - _impl_.key_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void RenameKeyResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* RotateKeyResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void RenameKeyResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.RenameKeyResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + id_.ClearToEmpty(); + name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RenameKeyResponse::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RenameKeyResponse.id")); + } else + goto handle_unusual; + continue; + // string name = 2 [json_name = "name"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RenameKeyResponse.name")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 43, 2> RotateKeyResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_RotateKeyResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string key = 2 [json_name = "key"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(RotateKeyResponse, _impl_.key_)}}, - // string id = 1 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(RotateKeyResponse, _impl_.id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(RotateKeyResponse, _impl_.id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string key = 2 [json_name = "key"]; - {PROTOBUF_FIELD_OFFSET(RotateKeyResponse, _impl_.key_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\35\2\3\0\0\0\0\0" - "viam.app.v1.RotateKeyResponse" - "id" - "key" - }}, -}; - -::uint8_t* RotateKeyResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.RotateKeyResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; +uint8_t* RenameKeyResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.RenameKeyResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.RotateKeyResponse.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RenameKeyResponse.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); } - // string key = 2 [json_name = "key"]; - if (!this->_internal_key().empty()) { - const std::string& _s = this->_internal_key(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.RotateKeyResponse.key"); - target = stream->WriteStringMaybeAliased(2, _s, target); + // string name = 2 [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.app.v1.RenameKeyResponse.name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_name(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.RotateKeyResponse) + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.RenameKeyResponse) return target; } -::size_t RotateKeyResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.RotateKeyResponse) - ::size_t total_size = 0; +size_t RenameKeyResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.RenameKeyResponse) + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } - // string key = 2 [json_name = "key"]; - if (!this->_internal_key().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_key()); + // string name = 2 [json_name = "name"]; + if (!this->_internal_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData RotateKeyResponse::_class_data_ = { - RotateKeyResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RenameKeyResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + RenameKeyResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* RotateKeyResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RenameKeyResponse::GetClassData() const { return &_class_data_; } + +void RenameKeyResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void RotateKeyResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.RotateKeyResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void RenameKeyResponse::MergeFrom(const RenameKeyResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.RenameKeyResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } - if (!from._internal_key().empty()) { - _this->_internal_set_key(from._internal_key()); + if (!from._internal_name().empty()) { + _internal_set_name(from._internal_name()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void RotateKeyResponse::CopyFrom(const RotateKeyResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.RotateKeyResponse) +void RenameKeyResponse::CopyFrom(const RenameKeyResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.RenameKeyResponse) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool RotateKeyResponse::IsInitialized() const { +bool RenameKeyResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* RotateKeyResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void RotateKeyResponse::InternalSwap(RotateKeyResponse* PROTOBUF_RESTRICT other) { +void RenameKeyResponse::InternalSwap(RenameKeyResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.key_, &other->_impl_.key_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); } -::google::protobuf::Metadata RotateKeyResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata RenameKeyResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[191]); } + // =================================================================== -class CreateKeyFromExistingKeyAuthorizationsRequest::_Internal { +class AuthorizationDetails::_Internal { public: }; -CreateKeyFromExistingKeyAuthorizationsRequest::CreateKeyFromExistingKeyAuthorizationsRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsRequest) +AuthorizationDetails::AuthorizationDetails(::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.AuthorizationDetails) } -inline PROTOBUF_NDEBUG_INLINE CreateKeyFromExistingKeyAuthorizationsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : id_(arena, from.id_), - _cached_size_{0} {} - -CreateKeyFromExistingKeyAuthorizationsRequest::CreateKeyFromExistingKeyAuthorizationsRequest( - ::google::protobuf::Arena* arena, - const CreateKeyFromExistingKeyAuthorizationsRequest& from) - : ::google::protobuf::Message(arena) { - CreateKeyFromExistingKeyAuthorizationsRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsRequest) +AuthorizationDetails::AuthorizationDetails(const AuthorizationDetails& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + authorization_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + authorization_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_authorization_type().empty()) { + authorization_type_.Set(from._internal_authorization_type(), + GetArenaForAllocation()); + } + authorization_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + authorization_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_authorization_id().empty()) { + authorization_id_.Set(from._internal_authorization_id(), + GetArenaForAllocation()); + } + resource_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + resource_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_resource_type().empty()) { + resource_type_.Set(from._internal_resource_type(), + GetArenaForAllocation()); + } + resource_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + resource_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_resource_id().empty()) { + resource_id_.Set(from._internal_resource_id(), + GetArenaForAllocation()); + } + org_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_org_id().empty()) { + org_id_.Set(from._internal_org_id(), + GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.AuthorizationDetails) } -inline PROTOBUF_NDEBUG_INLINE CreateKeyFromExistingKeyAuthorizationsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : id_(arena), - _cached_size_{0} {} -inline void CreateKeyFromExistingKeyAuthorizationsRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void AuthorizationDetails::SharedCtor() { +authorization_type_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + authorization_type_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +authorization_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + authorization_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +resource_type_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + resource_type_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +resource_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + resource_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +org_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } -CreateKeyFromExistingKeyAuthorizationsRequest::~CreateKeyFromExistingKeyAuthorizationsRequest() { - // @@protoc_insertion_point(destructor:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + +AuthorizationDetails::~AuthorizationDetails() { + // @@protoc_insertion_point(destructor:viam.app.v1.AuthorizationDetails) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } -inline void CreateKeyFromExistingKeyAuthorizationsRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.~Impl_(); -} -PROTOBUF_NOINLINE void CreateKeyFromExistingKeyAuthorizationsRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; +inline void AuthorizationDetails::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + authorization_type_.Destroy(); + authorization_id_.Destroy(); + resource_type_.Destroy(); + resource_id_.Destroy(); + org_id_.Destroy(); +} - _impl_.id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void AuthorizationDetails::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* CreateKeyFromExistingKeyAuthorizationsRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void AuthorizationDetails::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.AuthorizationDetails) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + authorization_type_.ClearToEmpty(); + authorization_id_.ClearToEmpty(); + resource_type_.ClearToEmpty(); + resource_id_.ClearToEmpty(); + org_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* AuthorizationDetails::_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 authorization_type = 1 [json_name = "authorizationType"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_authorization_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.AuthorizationDetails.authorization_type")); + } else + goto handle_unusual; + continue; + // string authorization_id = 2 [json_name = "authorizationId"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_authorization_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.AuthorizationDetails.authorization_id")); + } else + goto handle_unusual; + continue; + // string resource_type = 3 [json_name = "resourceType"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_resource_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.AuthorizationDetails.resource_type")); + } else + goto handle_unusual; + continue; + // string resource_id = 4 [json_name = "resourceId"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_resource_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.AuthorizationDetails.resource_id")); + } else + goto handle_unusual; + continue; + // string org_id = 5 [json_name = "orgId"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + auto str = _internal_mutable_org_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.AuthorizationDetails.org_id")); + } 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* AuthorizationDetails::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.AuthorizationDetails) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 68, 2> CreateKeyFromExistingKeyAuthorizationsRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_CreateKeyFromExistingKeyAuthorizationsRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string id = 1 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(CreateKeyFromExistingKeyAuthorizationsRequest, _impl_.id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(CreateKeyFromExistingKeyAuthorizationsRequest, _impl_.id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\71\2\0\0\0\0\0\0" - "viam.app.v1.CreateKeyFromExistingKeyAuthorizationsRequest" - "id" - }}, -}; - -::uint8_t* CreateKeyFromExistingKeyAuthorizationsRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + // string authorization_type = 1 [json_name = "authorizationType"]; + if (!this->_internal_authorization_type().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_authorization_type().data(), static_cast(this->_internal_authorization_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.AuthorizationDetails.authorization_type"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_authorization_type(), target); + } - // string id = 1 [json_name = "id"]; - if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.CreateKeyFromExistingKeyAuthorizationsRequest.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + // string authorization_id = 2 [json_name = "authorizationId"]; + if (!this->_internal_authorization_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_authorization_id().data(), static_cast(this->_internal_authorization_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.AuthorizationDetails.authorization_id"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_authorization_id(), target); + } + + // string resource_type = 3 [json_name = "resourceType"]; + if (!this->_internal_resource_type().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_resource_type().data(), static_cast(this->_internal_resource_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.AuthorizationDetails.resource_type"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_resource_type(), target); + } + + // string resource_id = 4 [json_name = "resourceId"]; + if (!this->_internal_resource_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_resource_id().data(), static_cast(this->_internal_resource_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.AuthorizationDetails.resource_id"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_resource_id(), target); + } + + // string org_id = 5 [json_name = "orgId"]; + if (!this->_internal_org_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_org_id().data(), static_cast(this->_internal_org_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.AuthorizationDetails.org_id"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_org_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.CreateKeyFromExistingKeyAuthorizationsRequest) + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.AuthorizationDetails) return target; } -::size_t CreateKeyFromExistingKeyAuthorizationsRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsRequest) - ::size_t total_size = 0; +size_t AuthorizationDetails::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.AuthorizationDetails) + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string id = 1 [json_name = "id"]; - if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + // string authorization_type = 1 [json_name = "authorizationType"]; + if (!this->_internal_authorization_type().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_authorization_type()); + } + + // string authorization_id = 2 [json_name = "authorizationId"]; + if (!this->_internal_authorization_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_authorization_id()); + } + + // string resource_type = 3 [json_name = "resourceType"]; + if (!this->_internal_resource_type().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_resource_type()); + } + + // string resource_id = 4 [json_name = "resourceId"]; + if (!this->_internal_resource_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_resource_id()); + } + + // string org_id = 5 [json_name = "orgId"]; + if (!this->_internal_org_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_org_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData CreateKeyFromExistingKeyAuthorizationsRequest::_class_data_ = { - CreateKeyFromExistingKeyAuthorizationsRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AuthorizationDetails::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + AuthorizationDetails::MergeImpl }; -const ::google::protobuf::Message::ClassData* CreateKeyFromExistingKeyAuthorizationsRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AuthorizationDetails::GetClassData() const { return &_class_data_; } + +void AuthorizationDetails::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void CreateKeyFromExistingKeyAuthorizationsRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void AuthorizationDetails::MergeFrom(const AuthorizationDetails& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.AuthorizationDetails) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + if (!from._internal_authorization_type().empty()) { + _internal_set_authorization_type(from._internal_authorization_type()); + } + if (!from._internal_authorization_id().empty()) { + _internal_set_authorization_id(from._internal_authorization_id()); + } + if (!from._internal_resource_type().empty()) { + _internal_set_resource_type(from._internal_resource_type()); + } + if (!from._internal_resource_id().empty()) { + _internal_set_resource_id(from._internal_resource_id()); + } + if (!from._internal_org_id().empty()) { + _internal_set_org_id(from._internal_org_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void CreateKeyFromExistingKeyAuthorizationsRequest::CopyFrom(const CreateKeyFromExistingKeyAuthorizationsRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsRequest) +void AuthorizationDetails::CopyFrom(const AuthorizationDetails& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.AuthorizationDetails) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool CreateKeyFromExistingKeyAuthorizationsRequest::IsInitialized() const { +bool AuthorizationDetails::IsInitialized() const { return true; } -::_pbi::CachedSize* CreateKeyFromExistingKeyAuthorizationsRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void CreateKeyFromExistingKeyAuthorizationsRequest::InternalSwap(CreateKeyFromExistingKeyAuthorizationsRequest* PROTOBUF_RESTRICT other) { +void AuthorizationDetails::InternalSwap(AuthorizationDetails* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); -} - -::google::protobuf::Metadata CreateKeyFromExistingKeyAuthorizationsRequest::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &authorization_type_, lhs_arena, + &other->authorization_type_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &authorization_id_, lhs_arena, + &other->authorization_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &resource_type_, lhs_arena, + &other->resource_type_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &resource_id_, lhs_arena, + &other->resource_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &org_id_, lhs_arena, + &other->org_id_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata AuthorizationDetails::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[192]); } + // =================================================================== -class CreateKeyFromExistingKeyAuthorizationsResponse::_Internal { +class APIKeyWithAuthorizations::_Internal { public: + static const ::viam::app::v1::APIKey& api_key(const APIKeyWithAuthorizations* msg); }; -CreateKeyFromExistingKeyAuthorizationsResponse::CreateKeyFromExistingKeyAuthorizationsResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsResponse) +const ::viam::app::v1::APIKey& +APIKeyWithAuthorizations::_Internal::api_key(const APIKeyWithAuthorizations* msg) { + return *msg->api_key_; } -inline PROTOBUF_NDEBUG_INLINE CreateKeyFromExistingKeyAuthorizationsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : id_(arena, from.id_), - key_(arena, from.key_), - _cached_size_{0} {} - -CreateKeyFromExistingKeyAuthorizationsResponse::CreateKeyFromExistingKeyAuthorizationsResponse( - ::google::protobuf::Arena* arena, - const CreateKeyFromExistingKeyAuthorizationsResponse& from) - : ::google::protobuf::Message(arena) { - CreateKeyFromExistingKeyAuthorizationsResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsResponse) +APIKeyWithAuthorizations::APIKeyWithAuthorizations(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + authorizations_(arena) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.APIKeyWithAuthorizations) +} +APIKeyWithAuthorizations::APIKeyWithAuthorizations(const APIKeyWithAuthorizations& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + authorizations_(from.authorizations_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_api_key()) { + api_key_ = new ::viam::app::v1::APIKey(*from.api_key_); + } else { + api_key_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.APIKeyWithAuthorizations) } -inline PROTOBUF_NDEBUG_INLINE CreateKeyFromExistingKeyAuthorizationsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : id_(arena), - key_(arena), - _cached_size_{0} {} -inline void CreateKeyFromExistingKeyAuthorizationsResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void APIKeyWithAuthorizations::SharedCtor() { +api_key_ = nullptr; } -CreateKeyFromExistingKeyAuthorizationsResponse::~CreateKeyFromExistingKeyAuthorizationsResponse() { - // @@protoc_insertion_point(destructor:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + +APIKeyWithAuthorizations::~APIKeyWithAuthorizations() { + // @@protoc_insertion_point(destructor:viam.app.v1.APIKeyWithAuthorizations) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } -inline void CreateKeyFromExistingKeyAuthorizationsResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.key_.Destroy(); - _impl_.~Impl_(); -} -PROTOBUF_NOINLINE void CreateKeyFromExistingKeyAuthorizationsResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; +inline void APIKeyWithAuthorizations::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete api_key_; +} - _impl_.id_.ClearToEmpty(); - _impl_.key_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +void APIKeyWithAuthorizations::SetCachedSize(int size) const { + _cached_size_.Set(size); } -const char* CreateKeyFromExistingKeyAuthorizationsResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +void APIKeyWithAuthorizations::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.APIKeyWithAuthorizations) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + authorizations_.Clear(); + if (GetArenaForAllocation() == nullptr && api_key_ != nullptr) { + delete api_key_; + } + api_key_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* APIKeyWithAuthorizations::_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.app.v1.APIKey api_key = 1 [json_name = "apiKey"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_api_key(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // repeated .viam.app.v1.AuthorizationDetails authorizations = 2 [json_name = "authorizations"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_authorizations(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(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* APIKeyWithAuthorizations::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.APIKeyWithAuthorizations) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 72, 2> CreateKeyFromExistingKeyAuthorizationsResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_CreateKeyFromExistingKeyAuthorizationsResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string key = 2 [json_name = "key"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(CreateKeyFromExistingKeyAuthorizationsResponse, _impl_.key_)}}, - // string id = 1 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(CreateKeyFromExistingKeyAuthorizationsResponse, _impl_.id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(CreateKeyFromExistingKeyAuthorizationsResponse, _impl_.id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string key = 2 [json_name = "key"]; - {PROTOBUF_FIELD_OFFSET(CreateKeyFromExistingKeyAuthorizationsResponse, _impl_.key_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\72\2\3\0\0\0\0\0" - "viam.app.v1.CreateKeyFromExistingKeyAuthorizationsResponse" - "id" - "key" - }}, -}; - -::uint8_t* CreateKeyFromExistingKeyAuthorizationsResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string id = 1 [json_name = "id"]; - if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.CreateKeyFromExistingKeyAuthorizationsResponse.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + // .viam.app.v1.APIKey api_key = 1 [json_name = "apiKey"]; + if (this->_internal_has_api_key()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::api_key(this), + _Internal::api_key(this).GetCachedSize(), target, stream); } - // string key = 2 [json_name = "key"]; - if (!this->_internal_key().empty()) { - const std::string& _s = this->_internal_key(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.CreateKeyFromExistingKeyAuthorizationsResponse.key"); - target = stream->WriteStringMaybeAliased(2, _s, target); + // repeated .viam.app.v1.AuthorizationDetails authorizations = 2 [json_name = "authorizations"]; + for (unsigned i = 0, + n = static_cast(this->_internal_authorizations_size()); i < n; i++) { + const auto& repfield = this->_internal_authorizations(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.CreateKeyFromExistingKeyAuthorizationsResponse) + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.APIKeyWithAuthorizations) return target; } -::size_t CreateKeyFromExistingKeyAuthorizationsResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsResponse) - ::size_t total_size = 0; +size_t APIKeyWithAuthorizations::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.APIKeyWithAuthorizations) + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string id = 1 [json_name = "id"]; - if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + // repeated .viam.app.v1.AuthorizationDetails authorizations = 2 [json_name = "authorizations"]; + total_size += 1UL * this->_internal_authorizations_size(); + for (const auto& msg : this->authorizations_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - // string key = 2 [json_name = "key"]; - if (!this->_internal_key().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_key()); + // .viam.app.v1.APIKey api_key = 1 [json_name = "apiKey"]; + if (this->_internal_has_api_key()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *api_key_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData CreateKeyFromExistingKeyAuthorizationsResponse::_class_data_ = { - CreateKeyFromExistingKeyAuthorizationsResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData APIKeyWithAuthorizations::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + APIKeyWithAuthorizations::MergeImpl }; -const ::google::protobuf::Message::ClassData* CreateKeyFromExistingKeyAuthorizationsResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*APIKeyWithAuthorizations::GetClassData() const { return &_class_data_; } + +void APIKeyWithAuthorizations::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void CreateKeyFromExistingKeyAuthorizationsResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void APIKeyWithAuthorizations::MergeFrom(const APIKeyWithAuthorizations& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.APIKeyWithAuthorizations) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); - } - if (!from._internal_key().empty()) { - _this->_internal_set_key(from._internal_key()); + authorizations_.MergeFrom(from.authorizations_); + if (from._internal_has_api_key()) { + _internal_mutable_api_key()->::viam::app::v1::APIKey::MergeFrom(from._internal_api_key()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void CreateKeyFromExistingKeyAuthorizationsResponse::CopyFrom(const CreateKeyFromExistingKeyAuthorizationsResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsResponse) +void APIKeyWithAuthorizations::CopyFrom(const APIKeyWithAuthorizations& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.APIKeyWithAuthorizations) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool CreateKeyFromExistingKeyAuthorizationsResponse::IsInitialized() const { +bool APIKeyWithAuthorizations::IsInitialized() const { return true; } -::_pbi::CachedSize* CreateKeyFromExistingKeyAuthorizationsResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void CreateKeyFromExistingKeyAuthorizationsResponse::InternalSwap(CreateKeyFromExistingKeyAuthorizationsResponse* PROTOBUF_RESTRICT other) { +void APIKeyWithAuthorizations::InternalSwap(APIKeyWithAuthorizations* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.key_, &other->_impl_.key_, arena); + authorizations_.InternalSwap(&other->authorizations_); + swap(api_key_, other->api_key_); } -::google::protobuf::Metadata CreateKeyFromExistingKeyAuthorizationsResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata APIKeyWithAuthorizations::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, file_level_metadata_app_2fv1_2fapp_2eproto[193]); } -// @@protoc_insertion_point(namespace_scope) -} // namespace v1 -} // namespace app -} // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google + +// =================================================================== + +class ListKeysRequest::_Internal { + public: +}; + +ListKeysRequest::ListKeysRequest(::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.ListKeysRequest) +} +ListKeysRequest::ListKeysRequest(const ListKeysRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + org_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_org_id().empty()) { + org_id_.Set(from._internal_org_id(), + GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.ListKeysRequest) +} + +inline void ListKeysRequest::SharedCtor() { +org_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +ListKeysRequest::~ListKeysRequest() { + // @@protoc_insertion_point(destructor:viam.app.v1.ListKeysRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ListKeysRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + org_id_.Destroy(); +} + +void ListKeysRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ListKeysRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.ListKeysRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + org_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListKeysRequest::_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 org_id = 1 [json_name = "orgId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_org_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ListKeysRequest.org_id")); + } 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* ListKeysRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ListKeysRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string org_id = 1 [json_name = "orgId"]; + if (!this->_internal_org_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_org_id().data(), static_cast(this->_internal_org_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ListKeysRequest.org_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_org_id(), 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.ListKeysRequest) + return target; +} + +size_t ListKeysRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ListKeysRequest) + 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 org_id = 1 [json_name = "orgId"]; + if (!this->_internal_org_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_org_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListKeysRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ListKeysRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListKeysRequest::GetClassData() const { return &_class_data_; } + +void ListKeysRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void ListKeysRequest::MergeFrom(const ListKeysRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ListKeysRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_org_id().empty()) { + _internal_set_org_id(from._internal_org_id()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ListKeysRequest::CopyFrom(const ListKeysRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.ListKeysRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListKeysRequest::IsInitialized() const { + return true; +} + +void ListKeysRequest::InternalSwap(ListKeysRequest* 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( + &org_id_, lhs_arena, + &other->org_id_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ListKeysRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[194]); +} + +// =================================================================== + +class ListKeysResponse::_Internal { + public: +}; + +ListKeysResponse::ListKeysResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + api_keys_(arena) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.ListKeysResponse) +} +ListKeysResponse::ListKeysResponse(const ListKeysResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + api_keys_(from.api_keys_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.app.v1.ListKeysResponse) +} + +inline void ListKeysResponse::SharedCtor() { +} + +ListKeysResponse::~ListKeysResponse() { + // @@protoc_insertion_point(destructor:viam.app.v1.ListKeysResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ListKeysResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void ListKeysResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ListKeysResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.ListKeysResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + api_keys_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListKeysResponse::_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) { + // repeated .viam.app.v1.APIKeyWithAuthorizations api_keys = 1 [json_name = "apiKeys"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_api_keys(), 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* ListKeysResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ListKeysResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .viam.app.v1.APIKeyWithAuthorizations api_keys = 1 [json_name = "apiKeys"]; + for (unsigned i = 0, + n = static_cast(this->_internal_api_keys_size()); i < n; i++) { + const auto& repfield = this->_internal_api_keys(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.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.app.v1.ListKeysResponse) + return target; +} + +size_t ListKeysResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ListKeysResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .viam.app.v1.APIKeyWithAuthorizations api_keys = 1 [json_name = "apiKeys"]; + total_size += 1UL * this->_internal_api_keys_size(); + for (const auto& msg : this->api_keys_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListKeysResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ListKeysResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListKeysResponse::GetClassData() const { return &_class_data_; } + +void ListKeysResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void ListKeysResponse::MergeFrom(const ListKeysResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ListKeysResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + api_keys_.MergeFrom(from.api_keys_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ListKeysResponse::CopyFrom(const ListKeysResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.ListKeysResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListKeysResponse::IsInitialized() const { + return true; +} + +void ListKeysResponse::InternalSwap(ListKeysResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + api_keys_.InternalSwap(&other->api_keys_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ListKeysResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[195]); +} + +// =================================================================== + +class RotateKeyRequest::_Internal { + public: +}; + +RotateKeyRequest::RotateKeyRequest(::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.RotateKeyRequest) +} +RotateKeyRequest::RotateKeyRequest(const RotateKeyRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.RotateKeyRequest) +} + +inline void RotateKeyRequest::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +RotateKeyRequest::~RotateKeyRequest() { + // @@protoc_insertion_point(destructor:viam.app.v1.RotateKeyRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void RotateKeyRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); +} + +void RotateKeyRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void RotateKeyRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.RotateKeyRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RotateKeyRequest::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RotateKeyRequest.id")); + } 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* RotateKeyRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.RotateKeyRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RotateKeyRequest.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), 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.RotateKeyRequest) + return target; +} + +size_t RotateKeyRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.RotateKeyRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RotateKeyRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + RotateKeyRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RotateKeyRequest::GetClassData() const { return &_class_data_; } + +void RotateKeyRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void RotateKeyRequest::MergeFrom(const RotateKeyRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.RotateKeyRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_id().empty()) { + _internal_set_id(from._internal_id()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void RotateKeyRequest::CopyFrom(const RotateKeyRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.RotateKeyRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RotateKeyRequest::IsInitialized() const { + return true; +} + +void RotateKeyRequest::InternalSwap(RotateKeyRequest* 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( + &id_, lhs_arena, + &other->id_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata RotateKeyRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[196]); +} + +// =================================================================== + +class RotateKeyResponse::_Internal { + public: +}; + +RotateKeyResponse::RotateKeyResponse(::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.RotateKeyResponse) +} +RotateKeyResponse::RotateKeyResponse(const RotateKeyResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } + key_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + key_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_key().empty()) { + key_.Set(from._internal_key(), + GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.RotateKeyResponse) +} + +inline void RotateKeyResponse::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +key_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + key_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +RotateKeyResponse::~RotateKeyResponse() { + // @@protoc_insertion_point(destructor:viam.app.v1.RotateKeyResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void RotateKeyResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); + key_.Destroy(); +} + +void RotateKeyResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void RotateKeyResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.RotateKeyResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + id_.ClearToEmpty(); + key_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RotateKeyResponse::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RotateKeyResponse.id")); + } else + goto handle_unusual; + continue; + // string key = 2 [json_name = "key"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_key(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RotateKeyResponse.key")); + } 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* RotateKeyResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.RotateKeyResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RotateKeyResponse.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); + } + + // string key = 2 [json_name = "key"]; + if (!this->_internal_key().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_key().data(), static_cast(this->_internal_key().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RotateKeyResponse.key"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_key(), 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.RotateKeyResponse) + return target; +} + +size_t RotateKeyResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.RotateKeyResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); + } + + // string key = 2 [json_name = "key"]; + if (!this->_internal_key().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_key()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RotateKeyResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + RotateKeyResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RotateKeyResponse::GetClassData() const { return &_class_data_; } + +void RotateKeyResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void RotateKeyResponse::MergeFrom(const RotateKeyResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.RotateKeyResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_id().empty()) { + _internal_set_id(from._internal_id()); + } + if (!from._internal_key().empty()) { + _internal_set_key(from._internal_key()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void RotateKeyResponse::CopyFrom(const RotateKeyResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.RotateKeyResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RotateKeyResponse::IsInitialized() const { + return true; +} + +void RotateKeyResponse::InternalSwap(RotateKeyResponse* 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( + &id_, lhs_arena, + &other->id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &key_, lhs_arena, + &other->key_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata RotateKeyResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[197]); +} + +// =================================================================== + +class CreateKeyFromExistingKeyAuthorizationsRequest::_Internal { + public: +}; + +CreateKeyFromExistingKeyAuthorizationsRequest::CreateKeyFromExistingKeyAuthorizationsRequest(::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.CreateKeyFromExistingKeyAuthorizationsRequest) +} +CreateKeyFromExistingKeyAuthorizationsRequest::CreateKeyFromExistingKeyAuthorizationsRequest(const CreateKeyFromExistingKeyAuthorizationsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsRequest) +} + +inline void CreateKeyFromExistingKeyAuthorizationsRequest::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +CreateKeyFromExistingKeyAuthorizationsRequest::~CreateKeyFromExistingKeyAuthorizationsRequest() { + // @@protoc_insertion_point(destructor:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void CreateKeyFromExistingKeyAuthorizationsRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); +} + +void CreateKeyFromExistingKeyAuthorizationsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void CreateKeyFromExistingKeyAuthorizationsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CreateKeyFromExistingKeyAuthorizationsRequest::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.CreateKeyFromExistingKeyAuthorizationsRequest.id")); + } 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* CreateKeyFromExistingKeyAuthorizationsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.CreateKeyFromExistingKeyAuthorizationsRequest.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), 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.CreateKeyFromExistingKeyAuthorizationsRequest) + return target; +} + +size_t CreateKeyFromExistingKeyAuthorizationsRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CreateKeyFromExistingKeyAuthorizationsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CreateKeyFromExistingKeyAuthorizationsRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CreateKeyFromExistingKeyAuthorizationsRequest::GetClassData() const { return &_class_data_; } + +void CreateKeyFromExistingKeyAuthorizationsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void CreateKeyFromExistingKeyAuthorizationsRequest::MergeFrom(const CreateKeyFromExistingKeyAuthorizationsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_id().empty()) { + _internal_set_id(from._internal_id()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void CreateKeyFromExistingKeyAuthorizationsRequest::CopyFrom(const CreateKeyFromExistingKeyAuthorizationsRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CreateKeyFromExistingKeyAuthorizationsRequest::IsInitialized() const { + return true; +} + +void CreateKeyFromExistingKeyAuthorizationsRequest::InternalSwap(CreateKeyFromExistingKeyAuthorizationsRequest* 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( + &id_, lhs_arena, + &other->id_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata CreateKeyFromExistingKeyAuthorizationsRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[198]); +} + +// =================================================================== + +class CreateKeyFromExistingKeyAuthorizationsResponse::_Internal { + public: +}; + +CreateKeyFromExistingKeyAuthorizationsResponse::CreateKeyFromExistingKeyAuthorizationsResponse(::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.CreateKeyFromExistingKeyAuthorizationsResponse) +} +CreateKeyFromExistingKeyAuthorizationsResponse::CreateKeyFromExistingKeyAuthorizationsResponse(const CreateKeyFromExistingKeyAuthorizationsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } + key_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + key_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_key().empty()) { + key_.Set(from._internal_key(), + GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsResponse) +} + +inline void CreateKeyFromExistingKeyAuthorizationsResponse::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +key_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + key_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +CreateKeyFromExistingKeyAuthorizationsResponse::~CreateKeyFromExistingKeyAuthorizationsResponse() { + // @@protoc_insertion_point(destructor:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void CreateKeyFromExistingKeyAuthorizationsResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); + key_.Destroy(); +} + +void CreateKeyFromExistingKeyAuthorizationsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void CreateKeyFromExistingKeyAuthorizationsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + id_.ClearToEmpty(); + key_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CreateKeyFromExistingKeyAuthorizationsResponse::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.CreateKeyFromExistingKeyAuthorizationsResponse.id")); + } else + goto handle_unusual; + continue; + // string key = 2 [json_name = "key"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_key(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.CreateKeyFromExistingKeyAuthorizationsResponse.key")); + } 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* CreateKeyFromExistingKeyAuthorizationsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.CreateKeyFromExistingKeyAuthorizationsResponse.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); + } + + // string key = 2 [json_name = "key"]; + if (!this->_internal_key().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_key().data(), static_cast(this->_internal_key().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.CreateKeyFromExistingKeyAuthorizationsResponse.key"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_key(), 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.CreateKeyFromExistingKeyAuthorizationsResponse) + return target; +} + +size_t CreateKeyFromExistingKeyAuthorizationsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); + } + + // string key = 2 [json_name = "key"]; + if (!this->_internal_key().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_key()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CreateKeyFromExistingKeyAuthorizationsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CreateKeyFromExistingKeyAuthorizationsResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CreateKeyFromExistingKeyAuthorizationsResponse::GetClassData() const { return &_class_data_; } + +void CreateKeyFromExistingKeyAuthorizationsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void CreateKeyFromExistingKeyAuthorizationsResponse::MergeFrom(const CreateKeyFromExistingKeyAuthorizationsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_id().empty()) { + _internal_set_id(from._internal_id()); + } + if (!from._internal_key().empty()) { + _internal_set_key(from._internal_key()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void CreateKeyFromExistingKeyAuthorizationsResponse::CopyFrom(const CreateKeyFromExistingKeyAuthorizationsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CreateKeyFromExistingKeyAuthorizationsResponse::IsInitialized() const { + return true; +} + +void CreateKeyFromExistingKeyAuthorizationsResponse::InternalSwap(CreateKeyFromExistingKeyAuthorizationsResponse* 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( + &id_, lhs_arena, + &other->id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &key_, lhs_arena, + &other->key_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata CreateKeyFromExistingKeyAuthorizationsResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[199]); +} + +// =================================================================== + +class OrganizationSetLogoRequest::_Internal { + public: +}; + +OrganizationSetLogoRequest::OrganizationSetLogoRequest(::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.OrganizationSetLogoRequest) +} +OrganizationSetLogoRequest::OrganizationSetLogoRequest(const OrganizationSetLogoRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + org_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_org_id().empty()) { + org_id_.Set(from._internal_org_id(), + GetArenaForAllocation()); + } + logo_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + logo_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_logo().empty()) { + logo_.Set(from._internal_logo(), + GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.OrganizationSetLogoRequest) +} + +inline void OrganizationSetLogoRequest::SharedCtor() { +org_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +logo_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + logo_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +OrganizationSetLogoRequest::~OrganizationSetLogoRequest() { + // @@protoc_insertion_point(destructor:viam.app.v1.OrganizationSetLogoRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void OrganizationSetLogoRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + org_id_.Destroy(); + logo_.Destroy(); +} + +void OrganizationSetLogoRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void OrganizationSetLogoRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.OrganizationSetLogoRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + org_id_.ClearToEmpty(); + logo_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* OrganizationSetLogoRequest::_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 org_id = 1 [json_name = "orgId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_org_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.OrganizationSetLogoRequest.org_id")); + } else + goto handle_unusual; + continue; + // bytes logo = 2 [json_name = "logo"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_logo(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + 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* OrganizationSetLogoRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.OrganizationSetLogoRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string org_id = 1 [json_name = "orgId"]; + if (!this->_internal_org_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_org_id().data(), static_cast(this->_internal_org_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.OrganizationSetLogoRequest.org_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_org_id(), target); + } + + // bytes logo = 2 [json_name = "logo"]; + if (!this->_internal_logo().empty()) { + target = stream->WriteBytesMaybeAliased( + 2, this->_internal_logo(), 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.OrganizationSetLogoRequest) + return target; +} + +size_t OrganizationSetLogoRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.OrganizationSetLogoRequest) + 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 org_id = 1 [json_name = "orgId"]; + if (!this->_internal_org_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_org_id()); + } + + // bytes logo = 2 [json_name = "logo"]; + if (!this->_internal_logo().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_logo()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData OrganizationSetLogoRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + OrganizationSetLogoRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*OrganizationSetLogoRequest::GetClassData() const { return &_class_data_; } + +void OrganizationSetLogoRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void OrganizationSetLogoRequest::MergeFrom(const OrganizationSetLogoRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.OrganizationSetLogoRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_org_id().empty()) { + _internal_set_org_id(from._internal_org_id()); + } + if (!from._internal_logo().empty()) { + _internal_set_logo(from._internal_logo()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void OrganizationSetLogoRequest::CopyFrom(const OrganizationSetLogoRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.OrganizationSetLogoRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool OrganizationSetLogoRequest::IsInitialized() const { + return true; +} + +void OrganizationSetLogoRequest::InternalSwap(OrganizationSetLogoRequest* 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( + &org_id_, lhs_arena, + &other->org_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &logo_, lhs_arena, + &other->logo_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata OrganizationSetLogoRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[200]); +} + +// =================================================================== + +class OrganizationSetLogoResponse::_Internal { + public: +}; + +OrganizationSetLogoResponse::OrganizationSetLogoResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.app.v1.OrganizationSetLogoResponse) +} +OrganizationSetLogoResponse::OrganizationSetLogoResponse(const OrganizationSetLogoResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.app.v1.OrganizationSetLogoResponse) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData OrganizationSetLogoResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*OrganizationSetLogoResponse::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata OrganizationSetLogoResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[201]); +} + +// =================================================================== + +class OrganizationGetLogoRequest::_Internal { + public: +}; + +OrganizationGetLogoRequest::OrganizationGetLogoRequest(::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.OrganizationGetLogoRequest) +} +OrganizationGetLogoRequest::OrganizationGetLogoRequest(const OrganizationGetLogoRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + org_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_org_id().empty()) { + org_id_.Set(from._internal_org_id(), + GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.OrganizationGetLogoRequest) +} + +inline void OrganizationGetLogoRequest::SharedCtor() { +org_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +OrganizationGetLogoRequest::~OrganizationGetLogoRequest() { + // @@protoc_insertion_point(destructor:viam.app.v1.OrganizationGetLogoRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void OrganizationGetLogoRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + org_id_.Destroy(); +} + +void OrganizationGetLogoRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void OrganizationGetLogoRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.OrganizationGetLogoRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + org_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* OrganizationGetLogoRequest::_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 org_id = 1 [json_name = "orgId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_org_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.OrganizationGetLogoRequest.org_id")); + } 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* OrganizationGetLogoRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.OrganizationGetLogoRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string org_id = 1 [json_name = "orgId"]; + if (!this->_internal_org_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_org_id().data(), static_cast(this->_internal_org_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.OrganizationGetLogoRequest.org_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_org_id(), 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.OrganizationGetLogoRequest) + return target; +} + +size_t OrganizationGetLogoRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.OrganizationGetLogoRequest) + 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 org_id = 1 [json_name = "orgId"]; + if (!this->_internal_org_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_org_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData OrganizationGetLogoRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + OrganizationGetLogoRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*OrganizationGetLogoRequest::GetClassData() const { return &_class_data_; } + +void OrganizationGetLogoRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void OrganizationGetLogoRequest::MergeFrom(const OrganizationGetLogoRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.OrganizationGetLogoRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_org_id().empty()) { + _internal_set_org_id(from._internal_org_id()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void OrganizationGetLogoRequest::CopyFrom(const OrganizationGetLogoRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.OrganizationGetLogoRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool OrganizationGetLogoRequest::IsInitialized() const { + return true; +} + +void OrganizationGetLogoRequest::InternalSwap(OrganizationGetLogoRequest* 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( + &org_id_, lhs_arena, + &other->org_id_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata OrganizationGetLogoRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[202]); +} + +// =================================================================== + +class OrganizationGetLogoResponse::_Internal { + public: +}; + +OrganizationGetLogoResponse::OrganizationGetLogoResponse(::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.OrganizationGetLogoResponse) +} +OrganizationGetLogoResponse::OrganizationGetLogoResponse(const OrganizationGetLogoResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + url_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + url_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_url().empty()) { + url_.Set(from._internal_url(), + GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.OrganizationGetLogoResponse) +} + +inline void OrganizationGetLogoResponse::SharedCtor() { +url_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + url_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +OrganizationGetLogoResponse::~OrganizationGetLogoResponse() { + // @@protoc_insertion_point(destructor:viam.app.v1.OrganizationGetLogoResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void OrganizationGetLogoResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + url_.Destroy(); +} + +void OrganizationGetLogoResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void OrganizationGetLogoResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.OrganizationGetLogoResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + url_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* OrganizationGetLogoResponse::_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 url = 1 [json_name = "url"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_url(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.OrganizationGetLogoResponse.url")); + } 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* OrganizationGetLogoResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.OrganizationGetLogoResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string url = 1 [json_name = "url"]; + if (!this->_internal_url().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_url().data(), static_cast(this->_internal_url().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.OrganizationGetLogoResponse.url"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_url(), 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.OrganizationGetLogoResponse) + return target; +} + +size_t OrganizationGetLogoResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.OrganizationGetLogoResponse) + 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 url = 1 [json_name = "url"]; + if (!this->_internal_url().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_url()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData OrganizationGetLogoResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + OrganizationGetLogoResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*OrganizationGetLogoResponse::GetClassData() const { return &_class_data_; } + +void OrganizationGetLogoResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void OrganizationGetLogoResponse::MergeFrom(const OrganizationGetLogoResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.OrganizationGetLogoResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_url().empty()) { + _internal_set_url(from._internal_url()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void OrganizationGetLogoResponse::CopyFrom(const OrganizationGetLogoResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.OrganizationGetLogoResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool OrganizationGetLogoResponse::IsInitialized() const { + return true; +} + +void OrganizationGetLogoResponse::InternalSwap(OrganizationGetLogoResponse* 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( + &url_, lhs_arena, + &other->url_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata OrganizationGetLogoResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[203]); +} + +// =================================================================== + +class EnableAuthServiceRequest::_Internal { + public: +}; + +EnableAuthServiceRequest::EnableAuthServiceRequest(::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.EnableAuthServiceRequest) +} +EnableAuthServiceRequest::EnableAuthServiceRequest(const EnableAuthServiceRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + org_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_org_id().empty()) { + org_id_.Set(from._internal_org_id(), + GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.EnableAuthServiceRequest) +} + +inline void EnableAuthServiceRequest::SharedCtor() { +org_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +EnableAuthServiceRequest::~EnableAuthServiceRequest() { + // @@protoc_insertion_point(destructor:viam.app.v1.EnableAuthServiceRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void EnableAuthServiceRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + org_id_.Destroy(); +} + +void EnableAuthServiceRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void EnableAuthServiceRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.EnableAuthServiceRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + org_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* EnableAuthServiceRequest::_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 org_id = 1 [json_name = "orgId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_org_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.EnableAuthServiceRequest.org_id")); + } 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* EnableAuthServiceRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.EnableAuthServiceRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string org_id = 1 [json_name = "orgId"]; + if (!this->_internal_org_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_org_id().data(), static_cast(this->_internal_org_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.EnableAuthServiceRequest.org_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_org_id(), 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.EnableAuthServiceRequest) + return target; +} + +size_t EnableAuthServiceRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.EnableAuthServiceRequest) + 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 org_id = 1 [json_name = "orgId"]; + if (!this->_internal_org_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_org_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EnableAuthServiceRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + EnableAuthServiceRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EnableAuthServiceRequest::GetClassData() const { return &_class_data_; } + +void EnableAuthServiceRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void EnableAuthServiceRequest::MergeFrom(const EnableAuthServiceRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.EnableAuthServiceRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_org_id().empty()) { + _internal_set_org_id(from._internal_org_id()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void EnableAuthServiceRequest::CopyFrom(const EnableAuthServiceRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.EnableAuthServiceRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EnableAuthServiceRequest::IsInitialized() const { + return true; +} + +void EnableAuthServiceRequest::InternalSwap(EnableAuthServiceRequest* 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( + &org_id_, lhs_arena, + &other->org_id_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata EnableAuthServiceRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[204]); +} + +// =================================================================== + +class EnableAuthServiceResponse::_Internal { + public: +}; + +EnableAuthServiceResponse::EnableAuthServiceResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.app.v1.EnableAuthServiceResponse) +} +EnableAuthServiceResponse::EnableAuthServiceResponse(const EnableAuthServiceResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.app.v1.EnableAuthServiceResponse) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EnableAuthServiceResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EnableAuthServiceResponse::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata EnableAuthServiceResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[205]); +} + +// =================================================================== + +class DisableAuthServiceRequest::_Internal { + public: +}; + +DisableAuthServiceRequest::DisableAuthServiceRequest(::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.DisableAuthServiceRequest) +} +DisableAuthServiceRequest::DisableAuthServiceRequest(const DisableAuthServiceRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + org_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_org_id().empty()) { + org_id_.Set(from._internal_org_id(), + GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.DisableAuthServiceRequest) +} + +inline void DisableAuthServiceRequest::SharedCtor() { +org_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +DisableAuthServiceRequest::~DisableAuthServiceRequest() { + // @@protoc_insertion_point(destructor:viam.app.v1.DisableAuthServiceRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void DisableAuthServiceRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + org_id_.Destroy(); +} + +void DisableAuthServiceRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void DisableAuthServiceRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.DisableAuthServiceRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + org_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DisableAuthServiceRequest::_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 org_id = 1 [json_name = "orgId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_org_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.DisableAuthServiceRequest.org_id")); + } 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* DisableAuthServiceRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.DisableAuthServiceRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string org_id = 1 [json_name = "orgId"]; + if (!this->_internal_org_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_org_id().data(), static_cast(this->_internal_org_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.DisableAuthServiceRequest.org_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_org_id(), 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.DisableAuthServiceRequest) + return target; +} + +size_t DisableAuthServiceRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.DisableAuthServiceRequest) + 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 org_id = 1 [json_name = "orgId"]; + if (!this->_internal_org_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_org_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DisableAuthServiceRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + DisableAuthServiceRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DisableAuthServiceRequest::GetClassData() const { return &_class_data_; } + +void DisableAuthServiceRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void DisableAuthServiceRequest::MergeFrom(const DisableAuthServiceRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.DisableAuthServiceRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_org_id().empty()) { + _internal_set_org_id(from._internal_org_id()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void DisableAuthServiceRequest::CopyFrom(const DisableAuthServiceRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.DisableAuthServiceRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DisableAuthServiceRequest::IsInitialized() const { + return true; +} + +void DisableAuthServiceRequest::InternalSwap(DisableAuthServiceRequest* 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( + &org_id_, lhs_arena, + &other->org_id_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata DisableAuthServiceRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[206]); +} + +// =================================================================== + +class DisableAuthServiceResponse::_Internal { + public: +}; + +DisableAuthServiceResponse::DisableAuthServiceResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.app.v1.DisableAuthServiceResponse) +} +DisableAuthServiceResponse::DisableAuthServiceResponse(const DisableAuthServiceResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.app.v1.DisableAuthServiceResponse) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DisableAuthServiceResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DisableAuthServiceResponse::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata DisableAuthServiceResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[207]); +} + +// =================================================================== + +class CreateOAuthAppRequest::_Internal { + public: + static const ::viam::app::v1::OAuthConfig& oauth_config(const CreateOAuthAppRequest* msg); +}; + +const ::viam::app::v1::OAuthConfig& +CreateOAuthAppRequest::_Internal::oauth_config(const CreateOAuthAppRequest* msg) { + return *msg->oauth_config_; +} +CreateOAuthAppRequest::CreateOAuthAppRequest(::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.CreateOAuthAppRequest) +} +CreateOAuthAppRequest::CreateOAuthAppRequest(const CreateOAuthAppRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + org_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_org_id().empty()) { + org_id_.Set(from._internal_org_id(), + GetArenaForAllocation()); + } + client_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + client_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_client_name().empty()) { + client_name_.Set(from._internal_client_name(), + GetArenaForAllocation()); + } + if (from._internal_has_oauth_config()) { + oauth_config_ = new ::viam::app::v1::OAuthConfig(*from.oauth_config_); + } else { + oauth_config_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.CreateOAuthAppRequest) +} + +inline void CreateOAuthAppRequest::SharedCtor() { +org_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +client_name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + client_name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +oauth_config_ = nullptr; +} + +CreateOAuthAppRequest::~CreateOAuthAppRequest() { + // @@protoc_insertion_point(destructor:viam.app.v1.CreateOAuthAppRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void CreateOAuthAppRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + org_id_.Destroy(); + client_name_.Destroy(); + if (this != internal_default_instance()) delete oauth_config_; +} + +void CreateOAuthAppRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void CreateOAuthAppRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.CreateOAuthAppRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + org_id_.ClearToEmpty(); + client_name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && oauth_config_ != nullptr) { + delete oauth_config_; + } + oauth_config_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CreateOAuthAppRequest::_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 org_id = 1 [json_name = "orgId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_org_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.CreateOAuthAppRequest.org_id")); + } else + goto handle_unusual; + continue; + // string client_name = 2 [json_name = "clientName"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_client_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.CreateOAuthAppRequest.client_name")); + } else + goto handle_unusual; + continue; + // .viam.app.v1.OAuthConfig oauth_config = 3 [json_name = "oauthConfig"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_oauth_config(), 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* CreateOAuthAppRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.CreateOAuthAppRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string org_id = 1 [json_name = "orgId"]; + if (!this->_internal_org_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_org_id().data(), static_cast(this->_internal_org_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.CreateOAuthAppRequest.org_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_org_id(), target); + } + + // string client_name = 2 [json_name = "clientName"]; + if (!this->_internal_client_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_client_name().data(), static_cast(this->_internal_client_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.CreateOAuthAppRequest.client_name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_client_name(), target); + } + + // .viam.app.v1.OAuthConfig oauth_config = 3 [json_name = "oauthConfig"]; + if (this->_internal_has_oauth_config()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::oauth_config(this), + _Internal::oauth_config(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.app.v1.CreateOAuthAppRequest) + return target; +} + +size_t CreateOAuthAppRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.CreateOAuthAppRequest) + 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 org_id = 1 [json_name = "orgId"]; + if (!this->_internal_org_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_org_id()); + } + + // string client_name = 2 [json_name = "clientName"]; + if (!this->_internal_client_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_client_name()); + } + + // .viam.app.v1.OAuthConfig oauth_config = 3 [json_name = "oauthConfig"]; + if (this->_internal_has_oauth_config()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *oauth_config_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CreateOAuthAppRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CreateOAuthAppRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CreateOAuthAppRequest::GetClassData() const { return &_class_data_; } + +void CreateOAuthAppRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void CreateOAuthAppRequest::MergeFrom(const CreateOAuthAppRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.CreateOAuthAppRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_org_id().empty()) { + _internal_set_org_id(from._internal_org_id()); + } + if (!from._internal_client_name().empty()) { + _internal_set_client_name(from._internal_client_name()); + } + if (from._internal_has_oauth_config()) { + _internal_mutable_oauth_config()->::viam::app::v1::OAuthConfig::MergeFrom(from._internal_oauth_config()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void CreateOAuthAppRequest::CopyFrom(const CreateOAuthAppRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.CreateOAuthAppRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CreateOAuthAppRequest::IsInitialized() const { + return true; +} + +void CreateOAuthAppRequest::InternalSwap(CreateOAuthAppRequest* 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( + &org_id_, lhs_arena, + &other->org_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &client_name_, lhs_arena, + &other->client_name_, rhs_arena + ); + swap(oauth_config_, other->oauth_config_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata CreateOAuthAppRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[208]); +} + +// =================================================================== + +class CreateOAuthAppResponse::_Internal { + public: +}; + +CreateOAuthAppResponse::CreateOAuthAppResponse(::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.CreateOAuthAppResponse) +} +CreateOAuthAppResponse::CreateOAuthAppResponse(const CreateOAuthAppResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + client_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + client_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_client_id().empty()) { + client_id_.Set(from._internal_client_id(), + GetArenaForAllocation()); + } + client_secret_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + client_secret_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_client_secret().empty()) { + client_secret_.Set(from._internal_client_secret(), + GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.CreateOAuthAppResponse) +} + +inline void CreateOAuthAppResponse::SharedCtor() { +client_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + client_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +client_secret_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + client_secret_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +CreateOAuthAppResponse::~CreateOAuthAppResponse() { + // @@protoc_insertion_point(destructor:viam.app.v1.CreateOAuthAppResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void CreateOAuthAppResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + client_id_.Destroy(); + client_secret_.Destroy(); +} + +void CreateOAuthAppResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void CreateOAuthAppResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.CreateOAuthAppResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + client_id_.ClearToEmpty(); + client_secret_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CreateOAuthAppResponse::_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 client_id = 1 [json_name = "clientId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_client_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.CreateOAuthAppResponse.client_id")); + } else + goto handle_unusual; + continue; + // string client_secret = 2 [json_name = "clientSecret"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_client_secret(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.CreateOAuthAppResponse.client_secret")); + } 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* CreateOAuthAppResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.CreateOAuthAppResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string client_id = 1 [json_name = "clientId"]; + if (!this->_internal_client_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_client_id().data(), static_cast(this->_internal_client_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.CreateOAuthAppResponse.client_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_client_id(), target); + } + + // string client_secret = 2 [json_name = "clientSecret"]; + if (!this->_internal_client_secret().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_client_secret().data(), static_cast(this->_internal_client_secret().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.CreateOAuthAppResponse.client_secret"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_client_secret(), 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.CreateOAuthAppResponse) + return target; +} + +size_t CreateOAuthAppResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.CreateOAuthAppResponse) + 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 client_id = 1 [json_name = "clientId"]; + if (!this->_internal_client_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_client_id()); + } + + // string client_secret = 2 [json_name = "clientSecret"]; + if (!this->_internal_client_secret().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_client_secret()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CreateOAuthAppResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CreateOAuthAppResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CreateOAuthAppResponse::GetClassData() const { return &_class_data_; } + +void CreateOAuthAppResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void CreateOAuthAppResponse::MergeFrom(const CreateOAuthAppResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.CreateOAuthAppResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_client_id().empty()) { + _internal_set_client_id(from._internal_client_id()); + } + if (!from._internal_client_secret().empty()) { + _internal_set_client_secret(from._internal_client_secret()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void CreateOAuthAppResponse::CopyFrom(const CreateOAuthAppResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.CreateOAuthAppResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CreateOAuthAppResponse::IsInitialized() const { + return true; +} + +void CreateOAuthAppResponse::InternalSwap(CreateOAuthAppResponse* 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( + &client_id_, lhs_arena, + &other->client_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &client_secret_, lhs_arena, + &other->client_secret_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata CreateOAuthAppResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[209]); +} + +// =================================================================== + +class ReadOAuthAppRequest::_Internal { + public: +}; + +ReadOAuthAppRequest::ReadOAuthAppRequest(::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.ReadOAuthAppRequest) +} +ReadOAuthAppRequest::ReadOAuthAppRequest(const ReadOAuthAppRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + org_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_org_id().empty()) { + org_id_.Set(from._internal_org_id(), + GetArenaForAllocation()); + } + client_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + client_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_client_id().empty()) { + client_id_.Set(from._internal_client_id(), + GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.ReadOAuthAppRequest) +} + +inline void ReadOAuthAppRequest::SharedCtor() { +org_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +client_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + client_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +ReadOAuthAppRequest::~ReadOAuthAppRequest() { + // @@protoc_insertion_point(destructor:viam.app.v1.ReadOAuthAppRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ReadOAuthAppRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + org_id_.Destroy(); + client_id_.Destroy(); +} + +void ReadOAuthAppRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ReadOAuthAppRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.ReadOAuthAppRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + org_id_.ClearToEmpty(); + client_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ReadOAuthAppRequest::_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 org_id = 1 [json_name = "orgId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_org_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ReadOAuthAppRequest.org_id")); + } else + goto handle_unusual; + continue; + // string client_id = 2 [json_name = "clientId"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_client_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ReadOAuthAppRequest.client_id")); + } 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* ReadOAuthAppRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ReadOAuthAppRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string org_id = 1 [json_name = "orgId"]; + if (!this->_internal_org_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_org_id().data(), static_cast(this->_internal_org_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ReadOAuthAppRequest.org_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_org_id(), target); + } + + // string client_id = 2 [json_name = "clientId"]; + if (!this->_internal_client_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_client_id().data(), static_cast(this->_internal_client_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ReadOAuthAppRequest.client_id"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_client_id(), 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.ReadOAuthAppRequest) + return target; +} + +size_t ReadOAuthAppRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ReadOAuthAppRequest) + 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 org_id = 1 [json_name = "orgId"]; + if (!this->_internal_org_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_org_id()); + } + + // string client_id = 2 [json_name = "clientId"]; + if (!this->_internal_client_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_client_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ReadOAuthAppRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ReadOAuthAppRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ReadOAuthAppRequest::GetClassData() const { return &_class_data_; } + +void ReadOAuthAppRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void ReadOAuthAppRequest::MergeFrom(const ReadOAuthAppRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ReadOAuthAppRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_org_id().empty()) { + _internal_set_org_id(from._internal_org_id()); + } + if (!from._internal_client_id().empty()) { + _internal_set_client_id(from._internal_client_id()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ReadOAuthAppRequest::CopyFrom(const ReadOAuthAppRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.ReadOAuthAppRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ReadOAuthAppRequest::IsInitialized() const { + return true; +} + +void ReadOAuthAppRequest::InternalSwap(ReadOAuthAppRequest* 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( + &org_id_, lhs_arena, + &other->org_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &client_id_, lhs_arena, + &other->client_id_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ReadOAuthAppRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[210]); +} + +// =================================================================== + +class ReadOAuthAppResponse::_Internal { + public: + static const ::viam::app::v1::OAuthConfig& oauth_config(const ReadOAuthAppResponse* msg); +}; + +const ::viam::app::v1::OAuthConfig& +ReadOAuthAppResponse::_Internal::oauth_config(const ReadOAuthAppResponse* msg) { + return *msg->oauth_config_; +} +ReadOAuthAppResponse::ReadOAuthAppResponse(::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.ReadOAuthAppResponse) +} +ReadOAuthAppResponse::ReadOAuthAppResponse(const ReadOAuthAppResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + client_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + client_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_client_name().empty()) { + client_name_.Set(from._internal_client_name(), + GetArenaForAllocation()); + } + client_secret_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + client_secret_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_client_secret().empty()) { + client_secret_.Set(from._internal_client_secret(), + GetArenaForAllocation()); + } + if (from._internal_has_oauth_config()) { + oauth_config_ = new ::viam::app::v1::OAuthConfig(*from.oauth_config_); + } else { + oauth_config_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.ReadOAuthAppResponse) +} + +inline void ReadOAuthAppResponse::SharedCtor() { +client_name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + client_name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +client_secret_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + client_secret_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +oauth_config_ = nullptr; +} + +ReadOAuthAppResponse::~ReadOAuthAppResponse() { + // @@protoc_insertion_point(destructor:viam.app.v1.ReadOAuthAppResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ReadOAuthAppResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + client_name_.Destroy(); + client_secret_.Destroy(); + if (this != internal_default_instance()) delete oauth_config_; +} + +void ReadOAuthAppResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ReadOAuthAppResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.ReadOAuthAppResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + client_name_.ClearToEmpty(); + client_secret_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && oauth_config_ != nullptr) { + delete oauth_config_; + } + oauth_config_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ReadOAuthAppResponse::_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 client_name = 1 [json_name = "clientName"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_client_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ReadOAuthAppResponse.client_name")); + } else + goto handle_unusual; + continue; + // string client_secret = 2 [json_name = "clientSecret"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_client_secret(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ReadOAuthAppResponse.client_secret")); + } else + goto handle_unusual; + continue; + // .viam.app.v1.OAuthConfig oauth_config = 3 [json_name = "oauthConfig"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_oauth_config(), 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* ReadOAuthAppResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ReadOAuthAppResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string client_name = 1 [json_name = "clientName"]; + if (!this->_internal_client_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_client_name().data(), static_cast(this->_internal_client_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ReadOAuthAppResponse.client_name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_client_name(), target); + } + + // string client_secret = 2 [json_name = "clientSecret"]; + if (!this->_internal_client_secret().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_client_secret().data(), static_cast(this->_internal_client_secret().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ReadOAuthAppResponse.client_secret"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_client_secret(), target); + } + + // .viam.app.v1.OAuthConfig oauth_config = 3 [json_name = "oauthConfig"]; + if (this->_internal_has_oauth_config()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::oauth_config(this), + _Internal::oauth_config(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.app.v1.ReadOAuthAppResponse) + return target; +} + +size_t ReadOAuthAppResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ReadOAuthAppResponse) + 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 client_name = 1 [json_name = "clientName"]; + if (!this->_internal_client_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_client_name()); + } + + // string client_secret = 2 [json_name = "clientSecret"]; + if (!this->_internal_client_secret().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_client_secret()); + } + + // .viam.app.v1.OAuthConfig oauth_config = 3 [json_name = "oauthConfig"]; + if (this->_internal_has_oauth_config()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *oauth_config_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ReadOAuthAppResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ReadOAuthAppResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ReadOAuthAppResponse::GetClassData() const { return &_class_data_; } + +void ReadOAuthAppResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void ReadOAuthAppResponse::MergeFrom(const ReadOAuthAppResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ReadOAuthAppResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_client_name().empty()) { + _internal_set_client_name(from._internal_client_name()); + } + if (!from._internal_client_secret().empty()) { + _internal_set_client_secret(from._internal_client_secret()); + } + if (from._internal_has_oauth_config()) { + _internal_mutable_oauth_config()->::viam::app::v1::OAuthConfig::MergeFrom(from._internal_oauth_config()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ReadOAuthAppResponse::CopyFrom(const ReadOAuthAppResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.ReadOAuthAppResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ReadOAuthAppResponse::IsInitialized() const { + return true; +} + +void ReadOAuthAppResponse::InternalSwap(ReadOAuthAppResponse* 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( + &client_name_, lhs_arena, + &other->client_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &client_secret_, lhs_arena, + &other->client_secret_, rhs_arena + ); + swap(oauth_config_, other->oauth_config_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ReadOAuthAppResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[211]); +} + +// =================================================================== + +class UpdateOAuthAppRequest::_Internal { + public: + static const ::viam::app::v1::OAuthConfig& oauth_config(const UpdateOAuthAppRequest* msg); +}; + +const ::viam::app::v1::OAuthConfig& +UpdateOAuthAppRequest::_Internal::oauth_config(const UpdateOAuthAppRequest* msg) { + return *msg->oauth_config_; +} +UpdateOAuthAppRequest::UpdateOAuthAppRequest(::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.UpdateOAuthAppRequest) +} +UpdateOAuthAppRequest::UpdateOAuthAppRequest(const UpdateOAuthAppRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + org_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_org_id().empty()) { + org_id_.Set(from._internal_org_id(), + GetArenaForAllocation()); + } + client_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + client_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_client_id().empty()) { + client_id_.Set(from._internal_client_id(), + GetArenaForAllocation()); + } + client_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + client_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_client_name().empty()) { + client_name_.Set(from._internal_client_name(), + GetArenaForAllocation()); + } + if (from._internal_has_oauth_config()) { + oauth_config_ = new ::viam::app::v1::OAuthConfig(*from.oauth_config_); + } else { + oauth_config_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.UpdateOAuthAppRequest) +} + +inline void UpdateOAuthAppRequest::SharedCtor() { +org_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +client_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + client_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +client_name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + client_name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +oauth_config_ = nullptr; +} + +UpdateOAuthAppRequest::~UpdateOAuthAppRequest() { + // @@protoc_insertion_point(destructor:viam.app.v1.UpdateOAuthAppRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void UpdateOAuthAppRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + org_id_.Destroy(); + client_id_.Destroy(); + client_name_.Destroy(); + if (this != internal_default_instance()) delete oauth_config_; +} + +void UpdateOAuthAppRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void UpdateOAuthAppRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.UpdateOAuthAppRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + org_id_.ClearToEmpty(); + client_id_.ClearToEmpty(); + client_name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && oauth_config_ != nullptr) { + delete oauth_config_; + } + oauth_config_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* UpdateOAuthAppRequest::_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 org_id = 1 [json_name = "orgId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_org_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.UpdateOAuthAppRequest.org_id")); + } else + goto handle_unusual; + continue; + // string client_id = 2 [json_name = "clientId"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_client_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.UpdateOAuthAppRequest.client_id")); + } else + goto handle_unusual; + continue; + // string client_name = 3 [json_name = "clientName"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_client_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.UpdateOAuthAppRequest.client_name")); + } else + goto handle_unusual; + continue; + // .viam.app.v1.OAuthConfig oauth_config = 4 [json_name = "oauthConfig"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_oauth_config(), 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* UpdateOAuthAppRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.UpdateOAuthAppRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string org_id = 1 [json_name = "orgId"]; + if (!this->_internal_org_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_org_id().data(), static_cast(this->_internal_org_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.UpdateOAuthAppRequest.org_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_org_id(), target); + } + + // string client_id = 2 [json_name = "clientId"]; + if (!this->_internal_client_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_client_id().data(), static_cast(this->_internal_client_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.UpdateOAuthAppRequest.client_id"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_client_id(), target); + } + + // string client_name = 3 [json_name = "clientName"]; + if (!this->_internal_client_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_client_name().data(), static_cast(this->_internal_client_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.UpdateOAuthAppRequest.client_name"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_client_name(), target); + } + + // .viam.app.v1.OAuthConfig oauth_config = 4 [json_name = "oauthConfig"]; + if (this->_internal_has_oauth_config()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::oauth_config(this), + _Internal::oauth_config(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.app.v1.UpdateOAuthAppRequest) + return target; +} + +size_t UpdateOAuthAppRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.UpdateOAuthAppRequest) + 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 org_id = 1 [json_name = "orgId"]; + if (!this->_internal_org_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_org_id()); + } + + // string client_id = 2 [json_name = "clientId"]; + if (!this->_internal_client_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_client_id()); + } + + // string client_name = 3 [json_name = "clientName"]; + if (!this->_internal_client_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_client_name()); + } + + // .viam.app.v1.OAuthConfig oauth_config = 4 [json_name = "oauthConfig"]; + if (this->_internal_has_oauth_config()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *oauth_config_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UpdateOAuthAppRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + UpdateOAuthAppRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UpdateOAuthAppRequest::GetClassData() const { return &_class_data_; } + +void UpdateOAuthAppRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void UpdateOAuthAppRequest::MergeFrom(const UpdateOAuthAppRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.UpdateOAuthAppRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_org_id().empty()) { + _internal_set_org_id(from._internal_org_id()); + } + if (!from._internal_client_id().empty()) { + _internal_set_client_id(from._internal_client_id()); + } + if (!from._internal_client_name().empty()) { + _internal_set_client_name(from._internal_client_name()); + } + if (from._internal_has_oauth_config()) { + _internal_mutable_oauth_config()->::viam::app::v1::OAuthConfig::MergeFrom(from._internal_oauth_config()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void UpdateOAuthAppRequest::CopyFrom(const UpdateOAuthAppRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.UpdateOAuthAppRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool UpdateOAuthAppRequest::IsInitialized() const { + return true; +} + +void UpdateOAuthAppRequest::InternalSwap(UpdateOAuthAppRequest* 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( + &org_id_, lhs_arena, + &other->org_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &client_id_, lhs_arena, + &other->client_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &client_name_, lhs_arena, + &other->client_name_, rhs_arena + ); + swap(oauth_config_, other->oauth_config_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata UpdateOAuthAppRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[212]); +} + +// =================================================================== + +class UpdateOAuthAppResponse::_Internal { + public: +}; + +UpdateOAuthAppResponse::UpdateOAuthAppResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.app.v1.UpdateOAuthAppResponse) +} +UpdateOAuthAppResponse::UpdateOAuthAppResponse(const UpdateOAuthAppResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.app.v1.UpdateOAuthAppResponse) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UpdateOAuthAppResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UpdateOAuthAppResponse::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata UpdateOAuthAppResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[213]); +} + +// =================================================================== + +class DeleteOAuthAppRequest::_Internal { + public: +}; + +DeleteOAuthAppRequest::DeleteOAuthAppRequest(::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.DeleteOAuthAppRequest) +} +DeleteOAuthAppRequest::DeleteOAuthAppRequest(const DeleteOAuthAppRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + org_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_org_id().empty()) { + org_id_.Set(from._internal_org_id(), + GetArenaForAllocation()); + } + client_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + client_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_client_id().empty()) { + client_id_.Set(from._internal_client_id(), + GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.DeleteOAuthAppRequest) +} + +inline void DeleteOAuthAppRequest::SharedCtor() { +org_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +client_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + client_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +DeleteOAuthAppRequest::~DeleteOAuthAppRequest() { + // @@protoc_insertion_point(destructor:viam.app.v1.DeleteOAuthAppRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void DeleteOAuthAppRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + org_id_.Destroy(); + client_id_.Destroy(); +} + +void DeleteOAuthAppRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void DeleteOAuthAppRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.DeleteOAuthAppRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + org_id_.ClearToEmpty(); + client_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DeleteOAuthAppRequest::_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 org_id = 1 [json_name = "orgId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_org_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.DeleteOAuthAppRequest.org_id")); + } else + goto handle_unusual; + continue; + // string client_id = 2 [json_name = "clientId"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_client_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.DeleteOAuthAppRequest.client_id")); + } 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* DeleteOAuthAppRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.DeleteOAuthAppRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string org_id = 1 [json_name = "orgId"]; + if (!this->_internal_org_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_org_id().data(), static_cast(this->_internal_org_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.DeleteOAuthAppRequest.org_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_org_id(), target); + } + + // string client_id = 2 [json_name = "clientId"]; + if (!this->_internal_client_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_client_id().data(), static_cast(this->_internal_client_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.DeleteOAuthAppRequest.client_id"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_client_id(), 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.DeleteOAuthAppRequest) + return target; +} + +size_t DeleteOAuthAppRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.DeleteOAuthAppRequest) + 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 org_id = 1 [json_name = "orgId"]; + if (!this->_internal_org_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_org_id()); + } + + // string client_id = 2 [json_name = "clientId"]; + if (!this->_internal_client_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_client_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeleteOAuthAppRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + DeleteOAuthAppRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeleteOAuthAppRequest::GetClassData() const { return &_class_data_; } + +void DeleteOAuthAppRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void DeleteOAuthAppRequest::MergeFrom(const DeleteOAuthAppRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.DeleteOAuthAppRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_org_id().empty()) { + _internal_set_org_id(from._internal_org_id()); + } + if (!from._internal_client_id().empty()) { + _internal_set_client_id(from._internal_client_id()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void DeleteOAuthAppRequest::CopyFrom(const DeleteOAuthAppRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.DeleteOAuthAppRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DeleteOAuthAppRequest::IsInitialized() const { + return true; +} + +void DeleteOAuthAppRequest::InternalSwap(DeleteOAuthAppRequest* 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( + &org_id_, lhs_arena, + &other->org_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &client_id_, lhs_arena, + &other->client_id_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata DeleteOAuthAppRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[214]); +} + +// =================================================================== + +class DeleteOAuthAppResponse::_Internal { + public: +}; + +DeleteOAuthAppResponse::DeleteOAuthAppResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.app.v1.DeleteOAuthAppResponse) +} +DeleteOAuthAppResponse::DeleteOAuthAppResponse(const DeleteOAuthAppResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.app.v1.DeleteOAuthAppResponse) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeleteOAuthAppResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeleteOAuthAppResponse::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata DeleteOAuthAppResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[215]); +} + +// =================================================================== + +class ListOAuthAppsRequest::_Internal { + public: +}; + +ListOAuthAppsRequest::ListOAuthAppsRequest(::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.ListOAuthAppsRequest) +} +ListOAuthAppsRequest::ListOAuthAppsRequest(const ListOAuthAppsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + org_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_org_id().empty()) { + org_id_.Set(from._internal_org_id(), + GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.ListOAuthAppsRequest) +} + +inline void ListOAuthAppsRequest::SharedCtor() { +org_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +ListOAuthAppsRequest::~ListOAuthAppsRequest() { + // @@protoc_insertion_point(destructor:viam.app.v1.ListOAuthAppsRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ListOAuthAppsRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + org_id_.Destroy(); +} + +void ListOAuthAppsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ListOAuthAppsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.ListOAuthAppsRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + org_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListOAuthAppsRequest::_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 org_id = 1 [json_name = "orgId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_org_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ListOAuthAppsRequest.org_id")); + } 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* ListOAuthAppsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ListOAuthAppsRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string org_id = 1 [json_name = "orgId"]; + if (!this->_internal_org_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_org_id().data(), static_cast(this->_internal_org_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ListOAuthAppsRequest.org_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_org_id(), 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.ListOAuthAppsRequest) + return target; +} + +size_t ListOAuthAppsRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ListOAuthAppsRequest) + 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 org_id = 1 [json_name = "orgId"]; + if (!this->_internal_org_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_org_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListOAuthAppsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ListOAuthAppsRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListOAuthAppsRequest::GetClassData() const { return &_class_data_; } + +void ListOAuthAppsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void ListOAuthAppsRequest::MergeFrom(const ListOAuthAppsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ListOAuthAppsRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_org_id().empty()) { + _internal_set_org_id(from._internal_org_id()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ListOAuthAppsRequest::CopyFrom(const ListOAuthAppsRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.ListOAuthAppsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListOAuthAppsRequest::IsInitialized() const { + return true; +} + +void ListOAuthAppsRequest::InternalSwap(ListOAuthAppsRequest* 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( + &org_id_, lhs_arena, + &other->org_id_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ListOAuthAppsRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[216]); +} + +// =================================================================== + +class ListOAuthAppsResponse::_Internal { + public: +}; + +ListOAuthAppsResponse::ListOAuthAppsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + client_ids_(arena) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.ListOAuthAppsResponse) +} +ListOAuthAppsResponse::ListOAuthAppsResponse(const ListOAuthAppsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + client_ids_(from.client_ids_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.app.v1.ListOAuthAppsResponse) +} + +inline void ListOAuthAppsResponse::SharedCtor() { +} + +ListOAuthAppsResponse::~ListOAuthAppsResponse() { + // @@protoc_insertion_point(destructor:viam.app.v1.ListOAuthAppsResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ListOAuthAppsResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void ListOAuthAppsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ListOAuthAppsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.ListOAuthAppsResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + client_ids_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListOAuthAppsResponse::_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) { + // repeated string client_ids = 1 [json_name = "clientIds"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_client_ids(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ListOAuthAppsResponse.client_ids")); + 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* ListOAuthAppsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ListOAuthAppsResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string client_ids = 1 [json_name = "clientIds"]; + for (int i = 0, n = this->_internal_client_ids_size(); i < n; i++) { + const auto& s = this->_internal_client_ids(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ListOAuthAppsResponse.client_ids"); + target = stream->WriteString(1, s, 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.ListOAuthAppsResponse) + return target; +} + +size_t ListOAuthAppsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ListOAuthAppsResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string client_ids = 1 [json_name = "clientIds"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(client_ids_.size()); + for (int i = 0, n = client_ids_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + client_ids_.Get(i)); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListOAuthAppsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ListOAuthAppsResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListOAuthAppsResponse::GetClassData() const { return &_class_data_; } + +void ListOAuthAppsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void ListOAuthAppsResponse::MergeFrom(const ListOAuthAppsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ListOAuthAppsResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + client_ids_.MergeFrom(from.client_ids_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ListOAuthAppsResponse::CopyFrom(const ListOAuthAppsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.ListOAuthAppsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListOAuthAppsResponse::IsInitialized() const { + return true; +} + +void ListOAuthAppsResponse::InternalSwap(ListOAuthAppsResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + client_ids_.InternalSwap(&other->client_ids_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ListOAuthAppsResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[217]); +} + +// =================================================================== + +class OAuthConfig::_Internal { + public: +}; + +OAuthConfig::OAuthConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + origin_uris_(arena), + redirect_uris_(arena), + enabled_grants_(arena) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.OAuthConfig) +} +OAuthConfig::OAuthConfig(const OAuthConfig& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + origin_uris_(from.origin_uris_), + redirect_uris_(from.redirect_uris_), + enabled_grants_(from.enabled_grants_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + logout_uri_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + logout_uri_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_logout_uri().empty()) { + logout_uri_.Set(from._internal_logout_uri(), + GetArenaForAllocation()); + } + ::memcpy(&client_authentication_, &from.client_authentication_, + static_cast(reinterpret_cast(&url_validation_) - + reinterpret_cast(&client_authentication_)) + sizeof(url_validation_)); + // @@protoc_insertion_point(copy_constructor:viam.app.v1.OAuthConfig) +} + +inline void OAuthConfig::SharedCtor() { +logout_uri_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + logout_uri_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&client_authentication_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&url_validation_) - + reinterpret_cast(&client_authentication_)) + sizeof(url_validation_)); +} + +OAuthConfig::~OAuthConfig() { + // @@protoc_insertion_point(destructor:viam.app.v1.OAuthConfig) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void OAuthConfig::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + logout_uri_.Destroy(); +} + +void OAuthConfig::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void OAuthConfig::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.OAuthConfig) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + origin_uris_.Clear(); + redirect_uris_.Clear(); + enabled_grants_.Clear(); + logout_uri_.ClearToEmpty(); + ::memset(&client_authentication_, 0, static_cast( + reinterpret_cast(&url_validation_) - + reinterpret_cast(&client_authentication_)) + sizeof(url_validation_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* OAuthConfig::_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.app.v1.ClientAuthentication client_authentication = 1 [json_name = "clientAuthentication"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_client_authentication(static_cast<::viam::app::v1::ClientAuthentication>(val)); + } else + goto handle_unusual; + continue; + // .viam.app.v1.PKCE pkce = 2 [json_name = "pkce"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_pkce(static_cast<::viam::app::v1::PKCE>(val)); + } else + goto handle_unusual; + continue; + // .viam.app.v1.URLValidation url_validation = 3 [json_name = "urlValidation"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_url_validation(static_cast<::viam::app::v1::URLValidation>(val)); + } else + goto handle_unusual; + continue; + // repeated string origin_uris = 4 [json_name = "originUris"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_origin_uris(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.OAuthConfig.origin_uris")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr)); + } else + goto handle_unusual; + continue; + // repeated string redirect_uris = 5 [json_name = "redirectUris"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_redirect_uris(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.OAuthConfig.redirect_uris")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr)); + } else + goto handle_unusual; + continue; + // string logout_uri = 6 [json_name = "logoutUri"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + auto str = _internal_mutable_logout_uri(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.OAuthConfig.logout_uri")); + } else + goto handle_unusual; + continue; + // repeated .viam.app.v1.EnabledGrant enabled_grants = 7 [json_name = "enabledGrants"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_enabled_grants(), ptr, ctx); + CHK_(ptr); + } else if (static_cast(tag) == 56) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_add_enabled_grants(static_cast<::viam::app::v1::EnabledGrant>(val)); + } 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* OAuthConfig::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.OAuthConfig) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .viam.app.v1.ClientAuthentication client_authentication = 1 [json_name = "clientAuthentication"]; + if (this->_internal_client_authentication() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this->_internal_client_authentication(), target); + } + + // .viam.app.v1.PKCE pkce = 2 [json_name = "pkce"]; + if (this->_internal_pkce() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this->_internal_pkce(), target); + } + + // .viam.app.v1.URLValidation url_validation = 3 [json_name = "urlValidation"]; + if (this->_internal_url_validation() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 3, this->_internal_url_validation(), target); + } + + // repeated string origin_uris = 4 [json_name = "originUris"]; + for (int i = 0, n = this->_internal_origin_uris_size(); i < n; i++) { + const auto& s = this->_internal_origin_uris(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.OAuthConfig.origin_uris"); + target = stream->WriteString(4, s, target); + } + + // repeated string redirect_uris = 5 [json_name = "redirectUris"]; + for (int i = 0, n = this->_internal_redirect_uris_size(); i < n; i++) { + const auto& s = this->_internal_redirect_uris(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.OAuthConfig.redirect_uris"); + target = stream->WriteString(5, s, target); + } + + // string logout_uri = 6 [json_name = "logoutUri"]; + if (!this->_internal_logout_uri().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_logout_uri().data(), static_cast(this->_internal_logout_uri().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.OAuthConfig.logout_uri"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_logout_uri(), target); + } + + // repeated .viam.app.v1.EnabledGrant enabled_grants = 7 [json_name = "enabledGrants"]; + { + int byte_size = _enabled_grants_cached_byte_size_.load(std::memory_order_relaxed); + if (byte_size > 0) { + target = stream->WriteEnumPacked( + 7, enabled_grants_, byte_size, 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.OAuthConfig) + return target; +} + +size_t OAuthConfig::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.OAuthConfig) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string origin_uris = 4 [json_name = "originUris"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(origin_uris_.size()); + for (int i = 0, n = origin_uris_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + origin_uris_.Get(i)); + } + + // repeated string redirect_uris = 5 [json_name = "redirectUris"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(redirect_uris_.size()); + for (int i = 0, n = redirect_uris_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + redirect_uris_.Get(i)); + } + + // repeated .viam.app.v1.EnabledGrant enabled_grants = 7 [json_name = "enabledGrants"]; + { + size_t data_size = 0; + unsigned int count = static_cast(this->_internal_enabled_grants_size());for (unsigned int i = 0; i < count; i++) { + data_size += ::_pbi::WireFormatLite::EnumSize( + this->_internal_enabled_grants(static_cast(i))); + } + if (data_size > 0) { + total_size += 1 + + ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); + } + int cached_size = ::_pbi::ToCachedSize(data_size); + _enabled_grants_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); + total_size += data_size; + } + + // string logout_uri = 6 [json_name = "logoutUri"]; + if (!this->_internal_logout_uri().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_logout_uri()); + } + + // .viam.app.v1.ClientAuthentication client_authentication = 1 [json_name = "clientAuthentication"]; + if (this->_internal_client_authentication() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_client_authentication()); + } + + // .viam.app.v1.PKCE pkce = 2 [json_name = "pkce"]; + if (this->_internal_pkce() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_pkce()); + } + + // .viam.app.v1.URLValidation url_validation = 3 [json_name = "urlValidation"]; + if (this->_internal_url_validation() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_url_validation()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData OAuthConfig::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + OAuthConfig::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*OAuthConfig::GetClassData() const { return &_class_data_; } + +void OAuthConfig::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void OAuthConfig::MergeFrom(const OAuthConfig& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.OAuthConfig) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + origin_uris_.MergeFrom(from.origin_uris_); + redirect_uris_.MergeFrom(from.redirect_uris_); + enabled_grants_.MergeFrom(from.enabled_grants_); + if (!from._internal_logout_uri().empty()) { + _internal_set_logout_uri(from._internal_logout_uri()); + } + if (from._internal_client_authentication() != 0) { + _internal_set_client_authentication(from._internal_client_authentication()); + } + if (from._internal_pkce() != 0) { + _internal_set_pkce(from._internal_pkce()); + } + if (from._internal_url_validation() != 0) { + _internal_set_url_validation(from._internal_url_validation()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void OAuthConfig::CopyFrom(const OAuthConfig& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.OAuthConfig) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool OAuthConfig::IsInitialized() const { + return true; +} + +void OAuthConfig::InternalSwap(OAuthConfig* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + origin_uris_.InternalSwap(&other->origin_uris_); + redirect_uris_.InternalSwap(&other->redirect_uris_); + enabled_grants_.InternalSwap(&other->enabled_grants_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &logout_uri_, lhs_arena, + &other->logout_uri_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(OAuthConfig, url_validation_) + + sizeof(OAuthConfig::url_validation_) + - PROTOBUF_FIELD_OFFSET(OAuthConfig, client_authentication_)>( + reinterpret_cast(&client_authentication_), + reinterpret_cast(&other->client_authentication_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata OAuthConfig::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fapp_2eproto_getter, &descriptor_table_app_2fv1_2fapp_2eproto_once, + file_level_metadata_app_2fv1_2fapp_2eproto[218]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1 +} // namespace app +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::app::v1::Robot* +Arena::CreateMaybeMessage< ::viam::app::v1::Robot >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::Robot >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::RobotPart* +Arena::CreateMaybeMessage< ::viam::app::v1::RobotPart >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::RobotPart >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::RobotPartHistoryEntry* +Arena::CreateMaybeMessage< ::viam::app::v1::RobotPartHistoryEntry >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::RobotPartHistoryEntry >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::AuthenticatorInfo* +Arena::CreateMaybeMessage< ::viam::app::v1::AuthenticatorInfo >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::AuthenticatorInfo >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::ListOrganizationsRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::ListOrganizationsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::ListOrganizationsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::Organization* +Arena::CreateMaybeMessage< ::viam::app::v1::Organization >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::Organization >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::OrganizationMember* +Arena::CreateMaybeMessage< ::viam::app::v1::OrganizationMember >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::OrganizationMember >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::ListOrganizationsResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::ListOrganizationsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::ListOrganizationsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::OrganizationInvite* +Arena::CreateMaybeMessage< ::viam::app::v1::OrganizationInvite >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::OrganizationInvite >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::CreateOrganizationRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::CreateOrganizationRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::CreateOrganizationRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::CreateOrganizationResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::CreateOrganizationResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::CreateOrganizationResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::GetOrganizationRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::GetOrganizationRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::GetOrganizationRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::GetOrganizationResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::GetOrganizationResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::GetOrganizationResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::GetOrganizationNamespaceAvailabilityRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::GetOrganizationNamespaceAvailabilityRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::GetOrganizationNamespaceAvailabilityRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::UpdateOrganizationRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::UpdateOrganizationRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::UpdateOrganizationRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::UpdateOrganizationResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::UpdateOrganizationResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::UpdateOrganizationResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::DeleteOrganizationRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::DeleteOrganizationRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::DeleteOrganizationRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::DeleteOrganizationResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::DeleteOrganizationResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::DeleteOrganizationResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::ListOrganizationMembersRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::ListOrganizationMembersRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::ListOrganizationMembersRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::ListOrganizationMembersResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::ListOrganizationMembersResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::ListOrganizationMembersResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::CreateOrganizationInviteRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::CreateOrganizationInviteRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::CreateOrganizationInviteRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::CreateOrganizationInviteResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::CreateOrganizationInviteResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::CreateOrganizationInviteResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::DeleteOrganizationInviteRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::DeleteOrganizationInviteRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::DeleteOrganizationInviteRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::DeleteOrganizationInviteResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::DeleteOrganizationInviteResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::DeleteOrganizationInviteResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::ResendOrganizationInviteRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::ResendOrganizationInviteRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::ResendOrganizationInviteRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::ResendOrganizationInviteResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::ResendOrganizationInviteResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::ResendOrganizationInviteResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::DeleteOrganizationMemberRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::DeleteOrganizationMemberRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::DeleteOrganizationMemberRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::DeleteOrganizationMemberResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::DeleteOrganizationMemberResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::DeleteOrganizationMemberResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::BillingAddress* +Arena::CreateMaybeMessage< ::viam::app::v1::BillingAddress >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::BillingAddress >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::EnableBillingServiceRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::EnableBillingServiceRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::EnableBillingServiceRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::EnableBillingServiceResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::EnableBillingServiceResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::EnableBillingServiceResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::UpdateBillingServiceRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::UpdateBillingServiceRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::UpdateBillingServiceRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::UpdateBillingServiceResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::UpdateBillingServiceResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::UpdateBillingServiceResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::GetBillingServiceConfigRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::GetBillingServiceConfigRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::GetBillingServiceConfigRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::GetBillingServiceConfigResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::GetBillingServiceConfigResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::GetBillingServiceConfigResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::DisableBillingServiceRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::DisableBillingServiceRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::DisableBillingServiceRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::DisableBillingServiceResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::DisableBillingServiceResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::DisableBillingServiceResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::OrganizationSetSupportEmailRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::OrganizationSetSupportEmailRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::OrganizationSetSupportEmailRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::OrganizationSetSupportEmailResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::OrganizationSetSupportEmailResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::OrganizationSetSupportEmailResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::OrganizationGetSupportEmailRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::OrganizationGetSupportEmailRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::OrganizationGetSupportEmailRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::OrganizationGetSupportEmailResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::OrganizationGetSupportEmailResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::OrganizationGetSupportEmailResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::OrganizationIdentity* +Arena::CreateMaybeMessage< ::viam::app::v1::OrganizationIdentity >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::OrganizationIdentity >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::LocationOrganization* +Arena::CreateMaybeMessage< ::viam::app::v1::LocationOrganization >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::LocationOrganization >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::LocationAuth* +Arena::CreateMaybeMessage< ::viam::app::v1::LocationAuth >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::LocationAuth >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::StorageConfig* +Arena::CreateMaybeMessage< ::viam::app::v1::StorageConfig >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::StorageConfig >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::Location* +Arena::CreateMaybeMessage< ::viam::app::v1::Location >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::Location >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::SharedSecret* +Arena::CreateMaybeMessage< ::viam::app::v1::SharedSecret >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::SharedSecret >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::CreateLocationRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::CreateLocationRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::CreateLocationRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::CreateLocationResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::CreateLocationResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::CreateLocationResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::GetLocationRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::GetLocationRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::GetLocationRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::GetLocationResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::GetLocationResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::GetLocationResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::UpdateLocationRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::UpdateLocationRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::UpdateLocationRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::UpdateLocationResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::UpdateLocationResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::UpdateLocationResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::DeleteLocationRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::DeleteLocationRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::DeleteLocationRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::DeleteLocationResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::DeleteLocationResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::DeleteLocationResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::GetOrganizationsWithAccessToLocationRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::GetOrganizationsWithAccessToLocationRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::GetOrganizationsWithAccessToLocationRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::GetOrganizationsWithAccessToLocationResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::GetOrganizationsWithAccessToLocationResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::GetOrganizationsWithAccessToLocationResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::ListLocationsRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::ListLocationsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::ListLocationsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::ShareLocationRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::ShareLocationRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::ShareLocationRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::ShareLocationResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::ShareLocationResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::ShareLocationResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::UnshareLocationRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::UnshareLocationRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::UnshareLocationRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::UnshareLocationResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::UnshareLocationResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::UnshareLocationResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::ListLocationsResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::ListLocationsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::ListLocationsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::CreateLocationSecretRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::CreateLocationSecretRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::CreateLocationSecretRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::CreateLocationSecretResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::CreateLocationSecretResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::CreateLocationSecretResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::DeleteLocationSecretRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::DeleteLocationSecretRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::DeleteLocationSecretRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::DeleteLocationSecretResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::DeleteLocationSecretResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::DeleteLocationSecretResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::LocationAuthRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::LocationAuthRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::LocationAuthRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::LocationAuthResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::LocationAuthResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::LocationAuthResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::GetRobotRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::GetRobotRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::GetRobotRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::GetRoverRentalRobotsRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::GetRoverRentalRobotsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::GetRoverRentalRobotsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::RoverRentalRobot* +Arena::CreateMaybeMessage< ::viam::app::v1::RoverRentalRobot >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::RoverRentalRobot >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::GetRoverRentalRobotsResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::GetRoverRentalRobotsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::GetRoverRentalRobotsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::GetRobotResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::GetRobotResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::GetRobotResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::GetRobotPartsRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::GetRobotPartsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::GetRobotPartsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::GetRobotPartsResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::GetRobotPartsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::GetRobotPartsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::GetRobotPartRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::GetRobotPartRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::GetRobotPartRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::GetRobotPartResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::GetRobotPartResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::GetRobotPartResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::GetRobotPartLogsRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::GetRobotPartLogsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::GetRobotPartLogsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::GetRobotPartLogsResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::GetRobotPartLogsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::GetRobotPartLogsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::TailRobotPartLogsRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::TailRobotPartLogsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::TailRobotPartLogsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::TailRobotPartLogsResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::TailRobotPartLogsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::TailRobotPartLogsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::GetRobotPartHistoryRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::GetRobotPartHistoryRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::GetRobotPartHistoryRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::GetRobotPartHistoryResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::GetRobotPartHistoryResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::GetRobotPartHistoryResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::UpdateRobotPartRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::UpdateRobotPartRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::UpdateRobotPartRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::UpdateRobotPartResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::UpdateRobotPartResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::UpdateRobotPartResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::NewRobotPartRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::NewRobotPartRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::NewRobotPartRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::NewRobotPartResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::NewRobotPartResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::NewRobotPartResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::DeleteRobotPartRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::DeleteRobotPartRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::DeleteRobotPartRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::GetRobotAPIKeysRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::GetRobotAPIKeysRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::GetRobotAPIKeysRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::APIKey* +Arena::CreateMaybeMessage< ::viam::app::v1::APIKey >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::APIKey >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::GetRobotAPIKeysResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::GetRobotAPIKeysResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::GetRobotAPIKeysResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::DeleteRobotPartResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::DeleteRobotPartResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::DeleteRobotPartResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::Fragment* +Arena::CreateMaybeMessage< ::viam::app::v1::Fragment >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::Fragment >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::FragmentHistoryEntry* +Arena::CreateMaybeMessage< ::viam::app::v1::FragmentHistoryEntry >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::FragmentHistoryEntry >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::FragmentError* +Arena::CreateMaybeMessage< ::viam::app::v1::FragmentError >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::FragmentError >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::FragmentUsage* +Arena::CreateMaybeMessage< ::viam::app::v1::FragmentUsage >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::FragmentUsage >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::ResolvedFragment* +Arena::CreateMaybeMessage< ::viam::app::v1::ResolvedFragment >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::ResolvedFragment >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::ListFragmentsRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::ListFragmentsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::ListFragmentsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::ListFragmentsResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::ListFragmentsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::ListFragmentsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::GetFragmentRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::GetFragmentRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::GetFragmentRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::GetFragmentResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::GetFragmentResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::GetFragmentResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::CreateFragmentRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::CreateFragmentRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::CreateFragmentRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::CreateFragmentResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::CreateFragmentResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::CreateFragmentResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::UpdateFragmentRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::UpdateFragmentRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::UpdateFragmentRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::UpdateFragmentResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::UpdateFragmentResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::UpdateFragmentResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::DeleteFragmentRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::DeleteFragmentRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::DeleteFragmentRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::DeleteFragmentResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::DeleteFragmentResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::DeleteFragmentResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::GetFragmentHistoryRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::GetFragmentHistoryRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::GetFragmentHistoryRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::GetFragmentHistoryResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::GetFragmentHistoryResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::GetFragmentHistoryResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::ListRobotsRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::ListRobotsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::ListRobotsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::ListMachineFragmentsRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::ListMachineFragmentsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::ListMachineFragmentsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::ListMachineFragmentsResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::ListMachineFragmentsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::ListMachineFragmentsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::ListRobotsResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::ListRobotsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::ListRobotsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::NewRobotRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::NewRobotRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::NewRobotRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::NewRobotResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::NewRobotResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::NewRobotResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::UpdateRobotRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::UpdateRobotRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::UpdateRobotRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::UpdateRobotResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::UpdateRobotResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::UpdateRobotResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::DeleteRobotRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::DeleteRobotRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::DeleteRobotRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::DeleteRobotResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::DeleteRobotResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::DeleteRobotResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::MarkPartAsMainRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::MarkPartAsMainRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::MarkPartAsMainRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::MarkPartAsMainResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::MarkPartAsMainResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::MarkPartAsMainResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::MarkPartForRestartRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::MarkPartForRestartRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::MarkPartForRestartRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::MarkPartForRestartResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::MarkPartForRestartResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::MarkPartForRestartResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::CreateRobotPartSecretRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::CreateRobotPartSecretRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::CreateRobotPartSecretRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::CreateRobotPartSecretResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::CreateRobotPartSecretResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::CreateRobotPartSecretResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::DeleteRobotPartSecretRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::DeleteRobotPartSecretRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::DeleteRobotPartSecretRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::DeleteRobotPartSecretResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::DeleteRobotPartSecretResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::DeleteRobotPartSecretResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::Authorization* +Arena::CreateMaybeMessage< ::viam::app::v1::Authorization >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::Authorization >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::AddRoleRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::AddRoleRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::AddRoleRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::AddRoleResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::AddRoleResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::AddRoleResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::RemoveRoleRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::RemoveRoleRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::RemoveRoleRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::RemoveRoleResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::RemoveRoleResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::RemoveRoleResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::ChangeRoleRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::ChangeRoleRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::ChangeRoleRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::ChangeRoleResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::ChangeRoleResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::ChangeRoleResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::ListAuthorizationsRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::ListAuthorizationsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::ListAuthorizationsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::ListAuthorizationsResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::ListAuthorizationsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::ListAuthorizationsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::CheckPermissionsRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::CheckPermissionsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::CheckPermissionsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::AuthorizedPermissions* +Arena::CreateMaybeMessage< ::viam::app::v1::AuthorizedPermissions >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::AuthorizedPermissions >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::CheckPermissionsResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::CheckPermissionsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::CheckPermissionsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::ModuleVersion* +Arena::CreateMaybeMessage< ::viam::app::v1::ModuleVersion >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::ModuleVersion >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::ModuleMetadata* +Arena::CreateMaybeMessage< ::viam::app::v1::ModuleMetadata >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::ModuleMetadata >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::MLModelMetadata* +Arena::CreateMaybeMessage< ::viam::app::v1::MLModelMetadata >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::MLModelMetadata >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::MLTrainingVersion* +Arena::CreateMaybeMessage< ::viam::app::v1::MLTrainingVersion >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::MLTrainingVersion >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::MLTrainingMetadata* +Arena::CreateMaybeMessage< ::viam::app::v1::MLTrainingMetadata >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::MLTrainingMetadata >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::RegistryItem* +Arena::CreateMaybeMessage< ::viam::app::v1::RegistryItem >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::RegistryItem >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::GetRegistryItemRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::GetRegistryItemRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::GetRegistryItemRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::GetRegistryItemResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::GetRegistryItemResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::GetRegistryItemResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::CreateRegistryItemRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::CreateRegistryItemRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::CreateRegistryItemRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::CreateRegistryItemResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::CreateRegistryItemResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::CreateRegistryItemResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::UpdateRegistryItemRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::UpdateRegistryItemRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::UpdateRegistryItemRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::UpdateRegistryItemResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::UpdateRegistryItemResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::UpdateRegistryItemResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::ListRegistryItemsRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::ListRegistryItemsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::ListRegistryItemsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::ListRegistryItemsResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::ListRegistryItemsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::ListRegistryItemsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::DeleteRegistryItemRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::DeleteRegistryItemRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::DeleteRegistryItemRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::DeleteRegistryItemResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::DeleteRegistryItemResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::DeleteRegistryItemResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::TransferRegistryItemRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::TransferRegistryItemRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::TransferRegistryItemRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::TransferRegistryItemResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::TransferRegistryItemResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::TransferRegistryItemResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::CreateModuleRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::CreateModuleRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::CreateModuleRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::CreateModuleResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::CreateModuleResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::CreateModuleResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::UpdateModuleRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::UpdateModuleRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::UpdateModuleRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::UpdateModuleResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::UpdateModuleResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::UpdateModuleResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::UpdateModuleMetadata* +Arena::CreateMaybeMessage< ::viam::app::v1::UpdateModuleMetadata >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::UpdateModuleMetadata >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::UpdateMLModelMetadata* +Arena::CreateMaybeMessage< ::viam::app::v1::UpdateMLModelMetadata >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::UpdateMLModelMetadata >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::UpdateMLTrainingMetadata* +Arena::CreateMaybeMessage< ::viam::app::v1::UpdateMLTrainingMetadata >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::UpdateMLTrainingMetadata >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::Model* +Arena::CreateMaybeMessage< ::viam::app::v1::Model >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::Model >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::ModuleFileInfo* +Arena::CreateMaybeMessage< ::viam::app::v1::ModuleFileInfo >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::ModuleFileInfo >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::UploadModuleFileRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::UploadModuleFileRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::UploadModuleFileRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::UploadModuleFileResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::UploadModuleFileResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::UploadModuleFileResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::GetModuleRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::GetModuleRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::GetModuleRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::GetModuleResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::GetModuleResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::GetModuleResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::Module* +Arena::CreateMaybeMessage< ::viam::app::v1::Module >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::Module >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::VersionHistory* +Arena::CreateMaybeMessage< ::viam::app::v1::VersionHistory >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::VersionHistory >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::Uploads* +Arena::CreateMaybeMessage< ::viam::app::v1::Uploads >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::Uploads >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::ListModulesRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::ListModulesRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::ListModulesRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::ListModulesResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::ListModulesResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::ListModulesResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::GetUserIDByEmailRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::GetUserIDByEmailRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::GetUserIDByEmailRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::GetUserIDByEmailResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::GetUserIDByEmailResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::GetUserIDByEmailResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::ListOrganizationsByUserRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::ListOrganizationsByUserRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::ListOrganizationsByUserRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::OrgDetails* +Arena::CreateMaybeMessage< ::viam::app::v1::OrgDetails >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::OrgDetails >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::ListOrganizationsByUserResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::ListOrganizationsByUserResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::ListOrganizationsByUserResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::SearchOrganizationsRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::SearchOrganizationsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::SearchOrganizationsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::SearchOrganizationsResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::SearchOrganizationsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::SearchOrganizationsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::CreateKeyRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::CreateKeyRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::CreateKeyRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::CreateKeyResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::CreateKeyResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::CreateKeyResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::DeleteKeyRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::DeleteKeyRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::DeleteKeyRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::DeleteKeyResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::DeleteKeyResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::DeleteKeyResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::RenameKeyRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::RenameKeyRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::RenameKeyRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::RenameKeyResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::RenameKeyResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::RenameKeyResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::AuthorizationDetails* +Arena::CreateMaybeMessage< ::viam::app::v1::AuthorizationDetails >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::AuthorizationDetails >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::APIKeyWithAuthorizations* +Arena::CreateMaybeMessage< ::viam::app::v1::APIKeyWithAuthorizations >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::APIKeyWithAuthorizations >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::ListKeysRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::ListKeysRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::ListKeysRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::ListKeysResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::ListKeysResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::ListKeysResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::RotateKeyRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::RotateKeyRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::RotateKeyRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::RotateKeyResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::RotateKeyResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::RotateKeyResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::OrganizationSetLogoRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::OrganizationSetLogoRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::OrganizationSetLogoRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::OrganizationSetLogoResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::OrganizationSetLogoResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::OrganizationSetLogoResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::OrganizationGetLogoRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::OrganizationGetLogoRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::OrganizationGetLogoRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::OrganizationGetLogoResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::OrganizationGetLogoResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::OrganizationGetLogoResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::EnableAuthServiceRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::EnableAuthServiceRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::EnableAuthServiceRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::EnableAuthServiceResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::EnableAuthServiceResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::EnableAuthServiceResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::DisableAuthServiceRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::DisableAuthServiceRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::DisableAuthServiceRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::DisableAuthServiceResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::DisableAuthServiceResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::DisableAuthServiceResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::CreateOAuthAppRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::CreateOAuthAppRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::CreateOAuthAppRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::CreateOAuthAppResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::CreateOAuthAppResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::CreateOAuthAppResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::ReadOAuthAppRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::ReadOAuthAppRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::ReadOAuthAppRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::ReadOAuthAppResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::ReadOAuthAppResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::ReadOAuthAppResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::UpdateOAuthAppRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::UpdateOAuthAppRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::UpdateOAuthAppRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::UpdateOAuthAppResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::UpdateOAuthAppResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::UpdateOAuthAppResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::DeleteOAuthAppRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::DeleteOAuthAppRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::DeleteOAuthAppRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::DeleteOAuthAppResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::DeleteOAuthAppResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::DeleteOAuthAppResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::ListOAuthAppsRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::ListOAuthAppsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::ListOAuthAppsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::ListOAuthAppsResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::ListOAuthAppsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::ListOAuthAppsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::OAuthConfig* +Arena::CreateMaybeMessage< ::viam::app::v1::OAuthConfig >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::OAuthConfig >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/app/v1/app.pb.h b/src/viam/api/app/v1/app.pb.h index 0cb2911f7..37d39c009 100644 --- a/src/viam/api/app/v1/app.pb.h +++ b/src/viam/api/app/v1/app.pb.h @@ -1,68 +1,57 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: app/v1/app.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_app_2fv1_2fapp_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_app_2fv1_2fapp_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_app_2fv1_2fapp_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_app_2fv1_2fapp_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_bases.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/generated_enum_reflection.h" -#include "google/protobuf/unknown_field_set.h" + +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include #include "app/mltraining/v1/ml_training.pb.h" #include "app/packages/v1/packages.pb.h" #include "common/v1/common.pb.h" -#include "google/protobuf/struct.pb.h" -#include "google/protobuf/timestamp.pb.h" +#include +#include #include "tagger/v1/tagger.pb.h" // @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - +#include #define PROTOBUF_INTERNAL_EXPORT_app_2fv1_2fapp_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_app_2fv1_2fapp_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_app_2fv1_2fapp_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_app_2fv1_2fapp_2eproto; namespace viam { namespace app { namespace v1 { @@ -141,6 +130,12 @@ extern CreateModuleRequestDefaultTypeInternal _CreateModuleRequest_default_insta class CreateModuleResponse; struct CreateModuleResponseDefaultTypeInternal; extern CreateModuleResponseDefaultTypeInternal _CreateModuleResponse_default_instance_; +class CreateOAuthAppRequest; +struct CreateOAuthAppRequestDefaultTypeInternal; +extern CreateOAuthAppRequestDefaultTypeInternal _CreateOAuthAppRequest_default_instance_; +class CreateOAuthAppResponse; +struct CreateOAuthAppResponseDefaultTypeInternal; +extern CreateOAuthAppResponseDefaultTypeInternal _CreateOAuthAppResponse_default_instance_; class CreateOrganizationInviteRequest; struct CreateOrganizationInviteRequestDefaultTypeInternal; extern CreateOrganizationInviteRequestDefaultTypeInternal _CreateOrganizationInviteRequest_default_instance_; @@ -189,6 +184,12 @@ extern DeleteLocationSecretRequestDefaultTypeInternal _DeleteLocationSecretReque class DeleteLocationSecretResponse; struct DeleteLocationSecretResponseDefaultTypeInternal; extern DeleteLocationSecretResponseDefaultTypeInternal _DeleteLocationSecretResponse_default_instance_; +class DeleteOAuthAppRequest; +struct DeleteOAuthAppRequestDefaultTypeInternal; +extern DeleteOAuthAppRequestDefaultTypeInternal _DeleteOAuthAppRequest_default_instance_; +class DeleteOAuthAppResponse; +struct DeleteOAuthAppResponseDefaultTypeInternal; +extern DeleteOAuthAppResponseDefaultTypeInternal _DeleteOAuthAppResponse_default_instance_; class DeleteOrganizationInviteRequest; struct DeleteOrganizationInviteRequestDefaultTypeInternal; extern DeleteOrganizationInviteRequestDefaultTypeInternal _DeleteOrganizationInviteRequest_default_instance_; @@ -231,12 +232,24 @@ extern DeleteRobotRequestDefaultTypeInternal _DeleteRobotRequest_default_instanc class DeleteRobotResponse; struct DeleteRobotResponseDefaultTypeInternal; extern DeleteRobotResponseDefaultTypeInternal _DeleteRobotResponse_default_instance_; +class DisableAuthServiceRequest; +struct DisableAuthServiceRequestDefaultTypeInternal; +extern DisableAuthServiceRequestDefaultTypeInternal _DisableAuthServiceRequest_default_instance_; +class DisableAuthServiceResponse; +struct DisableAuthServiceResponseDefaultTypeInternal; +extern DisableAuthServiceResponseDefaultTypeInternal _DisableAuthServiceResponse_default_instance_; class DisableBillingServiceRequest; struct DisableBillingServiceRequestDefaultTypeInternal; extern DisableBillingServiceRequestDefaultTypeInternal _DisableBillingServiceRequest_default_instance_; class DisableBillingServiceResponse; struct DisableBillingServiceResponseDefaultTypeInternal; extern DisableBillingServiceResponseDefaultTypeInternal _DisableBillingServiceResponse_default_instance_; +class EnableAuthServiceRequest; +struct EnableAuthServiceRequestDefaultTypeInternal; +extern EnableAuthServiceRequestDefaultTypeInternal _EnableAuthServiceRequest_default_instance_; +class EnableAuthServiceResponse; +struct EnableAuthServiceResponseDefaultTypeInternal; +extern EnableAuthServiceResponseDefaultTypeInternal _EnableAuthServiceResponse_default_instance_; class EnableBillingServiceRequest; struct EnableBillingServiceRequestDefaultTypeInternal; extern EnableBillingServiceRequestDefaultTypeInternal _EnableBillingServiceRequest_default_instance_; @@ -252,6 +265,9 @@ extern FragmentErrorDefaultTypeInternal _FragmentError_default_instance_; class FragmentHistoryEntry; struct FragmentHistoryEntryDefaultTypeInternal; extern FragmentHistoryEntryDefaultTypeInternal _FragmentHistoryEntry_default_instance_; +class FragmentUsage; +struct FragmentUsageDefaultTypeInternal; +extern FragmentUsageDefaultTypeInternal _FragmentUsage_default_instance_; class GetBillingServiceConfigRequest; struct GetBillingServiceConfigRequestDefaultTypeInternal; extern GetBillingServiceConfigRequestDefaultTypeInternal _GetBillingServiceConfigRequest_default_instance_; @@ -390,6 +406,12 @@ extern ListModulesRequestDefaultTypeInternal _ListModulesRequest_default_instanc class ListModulesResponse; struct ListModulesResponseDefaultTypeInternal; extern ListModulesResponseDefaultTypeInternal _ListModulesResponse_default_instance_; +class ListOAuthAppsRequest; +struct ListOAuthAppsRequestDefaultTypeInternal; +extern ListOAuthAppsRequestDefaultTypeInternal _ListOAuthAppsRequest_default_instance_; +class ListOAuthAppsResponse; +struct ListOAuthAppsResponseDefaultTypeInternal; +extern ListOAuthAppsResponseDefaultTypeInternal _ListOAuthAppsResponse_default_instance_; class ListOrganizationMembersRequest; struct ListOrganizationMembersRequestDefaultTypeInternal; extern ListOrganizationMembersRequestDefaultTypeInternal _ListOrganizationMembersRequest_default_instance_; @@ -483,12 +505,21 @@ extern NewRobotRequestDefaultTypeInternal _NewRobotRequest_default_instance_; class NewRobotResponse; struct NewRobotResponseDefaultTypeInternal; extern NewRobotResponseDefaultTypeInternal _NewRobotResponse_default_instance_; +class OAuthConfig; +struct OAuthConfigDefaultTypeInternal; +extern OAuthConfigDefaultTypeInternal _OAuthConfig_default_instance_; class OrgDetails; struct OrgDetailsDefaultTypeInternal; extern OrgDetailsDefaultTypeInternal _OrgDetails_default_instance_; class Organization; struct OrganizationDefaultTypeInternal; extern OrganizationDefaultTypeInternal _Organization_default_instance_; +class OrganizationGetLogoRequest; +struct OrganizationGetLogoRequestDefaultTypeInternal; +extern OrganizationGetLogoRequestDefaultTypeInternal _OrganizationGetLogoRequest_default_instance_; +class OrganizationGetLogoResponse; +struct OrganizationGetLogoResponseDefaultTypeInternal; +extern OrganizationGetLogoResponseDefaultTypeInternal _OrganizationGetLogoResponse_default_instance_; class OrganizationGetSupportEmailRequest; struct OrganizationGetSupportEmailRequestDefaultTypeInternal; extern OrganizationGetSupportEmailRequestDefaultTypeInternal _OrganizationGetSupportEmailRequest_default_instance_; @@ -504,12 +535,24 @@ extern OrganizationInviteDefaultTypeInternal _OrganizationInvite_default_instanc class OrganizationMember; struct OrganizationMemberDefaultTypeInternal; extern OrganizationMemberDefaultTypeInternal _OrganizationMember_default_instance_; +class OrganizationSetLogoRequest; +struct OrganizationSetLogoRequestDefaultTypeInternal; +extern OrganizationSetLogoRequestDefaultTypeInternal _OrganizationSetLogoRequest_default_instance_; +class OrganizationSetLogoResponse; +struct OrganizationSetLogoResponseDefaultTypeInternal; +extern OrganizationSetLogoResponseDefaultTypeInternal _OrganizationSetLogoResponse_default_instance_; class OrganizationSetSupportEmailRequest; struct OrganizationSetSupportEmailRequestDefaultTypeInternal; extern OrganizationSetSupportEmailRequestDefaultTypeInternal _OrganizationSetSupportEmailRequest_default_instance_; class OrganizationSetSupportEmailResponse; struct OrganizationSetSupportEmailResponseDefaultTypeInternal; extern OrganizationSetSupportEmailResponseDefaultTypeInternal _OrganizationSetSupportEmailResponse_default_instance_; +class ReadOAuthAppRequest; +struct ReadOAuthAppRequestDefaultTypeInternal; +extern ReadOAuthAppRequestDefaultTypeInternal _ReadOAuthAppRequest_default_instance_; +class ReadOAuthAppResponse; +struct ReadOAuthAppResponseDefaultTypeInternal; +extern ReadOAuthAppResponseDefaultTypeInternal _ReadOAuthAppResponse_default_instance_; class RegistryItem; struct RegistryItemDefaultTypeInternal; extern RegistryItemDefaultTypeInternal _RegistryItem_default_instance_; @@ -552,6 +595,12 @@ extern RotateKeyResponseDefaultTypeInternal _RotateKeyResponse_default_instance_ class RoverRentalRobot; struct RoverRentalRobotDefaultTypeInternal; extern RoverRentalRobotDefaultTypeInternal _RoverRentalRobot_default_instance_; +class SearchOrganizationsRequest; +struct SearchOrganizationsRequestDefaultTypeInternal; +extern SearchOrganizationsRequestDefaultTypeInternal _SearchOrganizationsRequest_default_instance_; +class SearchOrganizationsResponse; +struct SearchOrganizationsResponseDefaultTypeInternal; +extern SearchOrganizationsResponseDefaultTypeInternal _SearchOrganizationsResponse_default_instance_; class ShareLocationRequest; struct ShareLocationRequestDefaultTypeInternal; extern ShareLocationRequestDefaultTypeInternal _ShareLocationRequest_default_instance_; @@ -600,12 +649,27 @@ extern UpdateLocationRequestDefaultTypeInternal _UpdateLocationRequest_default_i class UpdateLocationResponse; struct UpdateLocationResponseDefaultTypeInternal; extern UpdateLocationResponseDefaultTypeInternal _UpdateLocationResponse_default_instance_; +class UpdateMLModelMetadata; +struct UpdateMLModelMetadataDefaultTypeInternal; +extern UpdateMLModelMetadataDefaultTypeInternal _UpdateMLModelMetadata_default_instance_; +class UpdateMLTrainingMetadata; +struct UpdateMLTrainingMetadataDefaultTypeInternal; +extern UpdateMLTrainingMetadataDefaultTypeInternal _UpdateMLTrainingMetadata_default_instance_; +class UpdateModuleMetadata; +struct UpdateModuleMetadataDefaultTypeInternal; +extern UpdateModuleMetadataDefaultTypeInternal _UpdateModuleMetadata_default_instance_; class UpdateModuleRequest; struct UpdateModuleRequestDefaultTypeInternal; extern UpdateModuleRequestDefaultTypeInternal _UpdateModuleRequest_default_instance_; class UpdateModuleResponse; struct UpdateModuleResponseDefaultTypeInternal; extern UpdateModuleResponseDefaultTypeInternal _UpdateModuleResponse_default_instance_; +class UpdateOAuthAppRequest; +struct UpdateOAuthAppRequestDefaultTypeInternal; +extern UpdateOAuthAppRequestDefaultTypeInternal _UpdateOAuthAppRequest_default_instance_; +class UpdateOAuthAppResponse; +struct UpdateOAuthAppResponseDefaultTypeInternal; +extern UpdateOAuthAppResponseDefaultTypeInternal _UpdateOAuthAppResponse_default_instance_; class UpdateOrganizationInviteAuthorizationsRequest; struct UpdateOrganizationInviteAuthorizationsRequestDefaultTypeInternal; extern UpdateOrganizationInviteAuthorizationsRequestDefaultTypeInternal _UpdateOrganizationInviteAuthorizationsRequest_default_instance_; @@ -651,47 +715,256 @@ extern VersionHistoryDefaultTypeInternal _VersionHistory_default_instance_; } // namespace v1 } // namespace app } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::app::v1::APIKey* Arena::CreateMaybeMessage<::viam::app::v1::APIKey>(Arena*); +template<> ::viam::app::v1::APIKeyWithAuthorizations* Arena::CreateMaybeMessage<::viam::app::v1::APIKeyWithAuthorizations>(Arena*); +template<> ::viam::app::v1::AddRoleRequest* Arena::CreateMaybeMessage<::viam::app::v1::AddRoleRequest>(Arena*); +template<> ::viam::app::v1::AddRoleResponse* Arena::CreateMaybeMessage<::viam::app::v1::AddRoleResponse>(Arena*); +template<> ::viam::app::v1::AuthenticatorInfo* Arena::CreateMaybeMessage<::viam::app::v1::AuthenticatorInfo>(Arena*); +template<> ::viam::app::v1::Authorization* Arena::CreateMaybeMessage<::viam::app::v1::Authorization>(Arena*); +template<> ::viam::app::v1::AuthorizationDetails* Arena::CreateMaybeMessage<::viam::app::v1::AuthorizationDetails>(Arena*); +template<> ::viam::app::v1::AuthorizedPermissions* Arena::CreateMaybeMessage<::viam::app::v1::AuthorizedPermissions>(Arena*); +template<> ::viam::app::v1::BillingAddress* Arena::CreateMaybeMessage<::viam::app::v1::BillingAddress>(Arena*); +template<> ::viam::app::v1::ChangeRoleRequest* Arena::CreateMaybeMessage<::viam::app::v1::ChangeRoleRequest>(Arena*); +template<> ::viam::app::v1::ChangeRoleResponse* Arena::CreateMaybeMessage<::viam::app::v1::ChangeRoleResponse>(Arena*); +template<> ::viam::app::v1::CheckPermissionsRequest* Arena::CreateMaybeMessage<::viam::app::v1::CheckPermissionsRequest>(Arena*); +template<> ::viam::app::v1::CheckPermissionsResponse* Arena::CreateMaybeMessage<::viam::app::v1::CheckPermissionsResponse>(Arena*); +template<> ::viam::app::v1::CreateFragmentRequest* Arena::CreateMaybeMessage<::viam::app::v1::CreateFragmentRequest>(Arena*); +template<> ::viam::app::v1::CreateFragmentResponse* Arena::CreateMaybeMessage<::viam::app::v1::CreateFragmentResponse>(Arena*); +template<> ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsRequest* Arena::CreateMaybeMessage<::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsRequest>(Arena*); +template<> ::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse* Arena::CreateMaybeMessage<::viam::app::v1::CreateKeyFromExistingKeyAuthorizationsResponse>(Arena*); +template<> ::viam::app::v1::CreateKeyRequest* Arena::CreateMaybeMessage<::viam::app::v1::CreateKeyRequest>(Arena*); +template<> ::viam::app::v1::CreateKeyResponse* Arena::CreateMaybeMessage<::viam::app::v1::CreateKeyResponse>(Arena*); +template<> ::viam::app::v1::CreateLocationRequest* Arena::CreateMaybeMessage<::viam::app::v1::CreateLocationRequest>(Arena*); +template<> ::viam::app::v1::CreateLocationResponse* Arena::CreateMaybeMessage<::viam::app::v1::CreateLocationResponse>(Arena*); +template<> ::viam::app::v1::CreateLocationSecretRequest* Arena::CreateMaybeMessage<::viam::app::v1::CreateLocationSecretRequest>(Arena*); +template<> ::viam::app::v1::CreateLocationSecretResponse* Arena::CreateMaybeMessage<::viam::app::v1::CreateLocationSecretResponse>(Arena*); +template<> ::viam::app::v1::CreateModuleRequest* Arena::CreateMaybeMessage<::viam::app::v1::CreateModuleRequest>(Arena*); +template<> ::viam::app::v1::CreateModuleResponse* Arena::CreateMaybeMessage<::viam::app::v1::CreateModuleResponse>(Arena*); +template<> ::viam::app::v1::CreateOAuthAppRequest* Arena::CreateMaybeMessage<::viam::app::v1::CreateOAuthAppRequest>(Arena*); +template<> ::viam::app::v1::CreateOAuthAppResponse* Arena::CreateMaybeMessage<::viam::app::v1::CreateOAuthAppResponse>(Arena*); +template<> ::viam::app::v1::CreateOrganizationInviteRequest* Arena::CreateMaybeMessage<::viam::app::v1::CreateOrganizationInviteRequest>(Arena*); +template<> ::viam::app::v1::CreateOrganizationInviteResponse* Arena::CreateMaybeMessage<::viam::app::v1::CreateOrganizationInviteResponse>(Arena*); +template<> ::viam::app::v1::CreateOrganizationRequest* Arena::CreateMaybeMessage<::viam::app::v1::CreateOrganizationRequest>(Arena*); +template<> ::viam::app::v1::CreateOrganizationResponse* Arena::CreateMaybeMessage<::viam::app::v1::CreateOrganizationResponse>(Arena*); +template<> ::viam::app::v1::CreateRegistryItemRequest* Arena::CreateMaybeMessage<::viam::app::v1::CreateRegistryItemRequest>(Arena*); +template<> ::viam::app::v1::CreateRegistryItemResponse* Arena::CreateMaybeMessage<::viam::app::v1::CreateRegistryItemResponse>(Arena*); +template<> ::viam::app::v1::CreateRobotPartSecretRequest* Arena::CreateMaybeMessage<::viam::app::v1::CreateRobotPartSecretRequest>(Arena*); +template<> ::viam::app::v1::CreateRobotPartSecretResponse* Arena::CreateMaybeMessage<::viam::app::v1::CreateRobotPartSecretResponse>(Arena*); +template<> ::viam::app::v1::DeleteFragmentRequest* Arena::CreateMaybeMessage<::viam::app::v1::DeleteFragmentRequest>(Arena*); +template<> ::viam::app::v1::DeleteFragmentResponse* Arena::CreateMaybeMessage<::viam::app::v1::DeleteFragmentResponse>(Arena*); +template<> ::viam::app::v1::DeleteKeyRequest* Arena::CreateMaybeMessage<::viam::app::v1::DeleteKeyRequest>(Arena*); +template<> ::viam::app::v1::DeleteKeyResponse* Arena::CreateMaybeMessage<::viam::app::v1::DeleteKeyResponse>(Arena*); +template<> ::viam::app::v1::DeleteLocationRequest* Arena::CreateMaybeMessage<::viam::app::v1::DeleteLocationRequest>(Arena*); +template<> ::viam::app::v1::DeleteLocationResponse* Arena::CreateMaybeMessage<::viam::app::v1::DeleteLocationResponse>(Arena*); +template<> ::viam::app::v1::DeleteLocationSecretRequest* Arena::CreateMaybeMessage<::viam::app::v1::DeleteLocationSecretRequest>(Arena*); +template<> ::viam::app::v1::DeleteLocationSecretResponse* Arena::CreateMaybeMessage<::viam::app::v1::DeleteLocationSecretResponse>(Arena*); +template<> ::viam::app::v1::DeleteOAuthAppRequest* Arena::CreateMaybeMessage<::viam::app::v1::DeleteOAuthAppRequest>(Arena*); +template<> ::viam::app::v1::DeleteOAuthAppResponse* Arena::CreateMaybeMessage<::viam::app::v1::DeleteOAuthAppResponse>(Arena*); +template<> ::viam::app::v1::DeleteOrganizationInviteRequest* Arena::CreateMaybeMessage<::viam::app::v1::DeleteOrganizationInviteRequest>(Arena*); +template<> ::viam::app::v1::DeleteOrganizationInviteResponse* Arena::CreateMaybeMessage<::viam::app::v1::DeleteOrganizationInviteResponse>(Arena*); +template<> ::viam::app::v1::DeleteOrganizationMemberRequest* Arena::CreateMaybeMessage<::viam::app::v1::DeleteOrganizationMemberRequest>(Arena*); +template<> ::viam::app::v1::DeleteOrganizationMemberResponse* Arena::CreateMaybeMessage<::viam::app::v1::DeleteOrganizationMemberResponse>(Arena*); +template<> ::viam::app::v1::DeleteOrganizationRequest* Arena::CreateMaybeMessage<::viam::app::v1::DeleteOrganizationRequest>(Arena*); +template<> ::viam::app::v1::DeleteOrganizationResponse* Arena::CreateMaybeMessage<::viam::app::v1::DeleteOrganizationResponse>(Arena*); +template<> ::viam::app::v1::DeleteRegistryItemRequest* Arena::CreateMaybeMessage<::viam::app::v1::DeleteRegistryItemRequest>(Arena*); +template<> ::viam::app::v1::DeleteRegistryItemResponse* Arena::CreateMaybeMessage<::viam::app::v1::DeleteRegistryItemResponse>(Arena*); +template<> ::viam::app::v1::DeleteRobotPartRequest* Arena::CreateMaybeMessage<::viam::app::v1::DeleteRobotPartRequest>(Arena*); +template<> ::viam::app::v1::DeleteRobotPartResponse* Arena::CreateMaybeMessage<::viam::app::v1::DeleteRobotPartResponse>(Arena*); +template<> ::viam::app::v1::DeleteRobotPartSecretRequest* Arena::CreateMaybeMessage<::viam::app::v1::DeleteRobotPartSecretRequest>(Arena*); +template<> ::viam::app::v1::DeleteRobotPartSecretResponse* Arena::CreateMaybeMessage<::viam::app::v1::DeleteRobotPartSecretResponse>(Arena*); +template<> ::viam::app::v1::DeleteRobotRequest* Arena::CreateMaybeMessage<::viam::app::v1::DeleteRobotRequest>(Arena*); +template<> ::viam::app::v1::DeleteRobotResponse* Arena::CreateMaybeMessage<::viam::app::v1::DeleteRobotResponse>(Arena*); +template<> ::viam::app::v1::DisableAuthServiceRequest* Arena::CreateMaybeMessage<::viam::app::v1::DisableAuthServiceRequest>(Arena*); +template<> ::viam::app::v1::DisableAuthServiceResponse* Arena::CreateMaybeMessage<::viam::app::v1::DisableAuthServiceResponse>(Arena*); +template<> ::viam::app::v1::DisableBillingServiceRequest* Arena::CreateMaybeMessage<::viam::app::v1::DisableBillingServiceRequest>(Arena*); +template<> ::viam::app::v1::DisableBillingServiceResponse* Arena::CreateMaybeMessage<::viam::app::v1::DisableBillingServiceResponse>(Arena*); +template<> ::viam::app::v1::EnableAuthServiceRequest* Arena::CreateMaybeMessage<::viam::app::v1::EnableAuthServiceRequest>(Arena*); +template<> ::viam::app::v1::EnableAuthServiceResponse* Arena::CreateMaybeMessage<::viam::app::v1::EnableAuthServiceResponse>(Arena*); +template<> ::viam::app::v1::EnableBillingServiceRequest* Arena::CreateMaybeMessage<::viam::app::v1::EnableBillingServiceRequest>(Arena*); +template<> ::viam::app::v1::EnableBillingServiceResponse* Arena::CreateMaybeMessage<::viam::app::v1::EnableBillingServiceResponse>(Arena*); +template<> ::viam::app::v1::Fragment* Arena::CreateMaybeMessage<::viam::app::v1::Fragment>(Arena*); +template<> ::viam::app::v1::FragmentError* Arena::CreateMaybeMessage<::viam::app::v1::FragmentError>(Arena*); +template<> ::viam::app::v1::FragmentHistoryEntry* Arena::CreateMaybeMessage<::viam::app::v1::FragmentHistoryEntry>(Arena*); +template<> ::viam::app::v1::FragmentUsage* Arena::CreateMaybeMessage<::viam::app::v1::FragmentUsage>(Arena*); +template<> ::viam::app::v1::GetBillingServiceConfigRequest* Arena::CreateMaybeMessage<::viam::app::v1::GetBillingServiceConfigRequest>(Arena*); +template<> ::viam::app::v1::GetBillingServiceConfigResponse* Arena::CreateMaybeMessage<::viam::app::v1::GetBillingServiceConfigResponse>(Arena*); +template<> ::viam::app::v1::GetFragmentHistoryRequest* Arena::CreateMaybeMessage<::viam::app::v1::GetFragmentHistoryRequest>(Arena*); +template<> ::viam::app::v1::GetFragmentHistoryResponse* Arena::CreateMaybeMessage<::viam::app::v1::GetFragmentHistoryResponse>(Arena*); +template<> ::viam::app::v1::GetFragmentRequest* Arena::CreateMaybeMessage<::viam::app::v1::GetFragmentRequest>(Arena*); +template<> ::viam::app::v1::GetFragmentResponse* Arena::CreateMaybeMessage<::viam::app::v1::GetFragmentResponse>(Arena*); +template<> ::viam::app::v1::GetLocationRequest* Arena::CreateMaybeMessage<::viam::app::v1::GetLocationRequest>(Arena*); +template<> ::viam::app::v1::GetLocationResponse* Arena::CreateMaybeMessage<::viam::app::v1::GetLocationResponse>(Arena*); +template<> ::viam::app::v1::GetModuleRequest* Arena::CreateMaybeMessage<::viam::app::v1::GetModuleRequest>(Arena*); +template<> ::viam::app::v1::GetModuleResponse* Arena::CreateMaybeMessage<::viam::app::v1::GetModuleResponse>(Arena*); +template<> ::viam::app::v1::GetOrganizationNamespaceAvailabilityRequest* Arena::CreateMaybeMessage<::viam::app::v1::GetOrganizationNamespaceAvailabilityRequest>(Arena*); +template<> ::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse* Arena::CreateMaybeMessage<::viam::app::v1::GetOrganizationNamespaceAvailabilityResponse>(Arena*); +template<> ::viam::app::v1::GetOrganizationRequest* Arena::CreateMaybeMessage<::viam::app::v1::GetOrganizationRequest>(Arena*); +template<> ::viam::app::v1::GetOrganizationResponse* Arena::CreateMaybeMessage<::viam::app::v1::GetOrganizationResponse>(Arena*); +template<> ::viam::app::v1::GetOrganizationsWithAccessToLocationRequest* Arena::CreateMaybeMessage<::viam::app::v1::GetOrganizationsWithAccessToLocationRequest>(Arena*); +template<> ::viam::app::v1::GetOrganizationsWithAccessToLocationResponse* Arena::CreateMaybeMessage<::viam::app::v1::GetOrganizationsWithAccessToLocationResponse>(Arena*); +template<> ::viam::app::v1::GetRegistryItemRequest* Arena::CreateMaybeMessage<::viam::app::v1::GetRegistryItemRequest>(Arena*); +template<> ::viam::app::v1::GetRegistryItemResponse* Arena::CreateMaybeMessage<::viam::app::v1::GetRegistryItemResponse>(Arena*); +template<> ::viam::app::v1::GetRobotAPIKeysRequest* Arena::CreateMaybeMessage<::viam::app::v1::GetRobotAPIKeysRequest>(Arena*); +template<> ::viam::app::v1::GetRobotAPIKeysResponse* Arena::CreateMaybeMessage<::viam::app::v1::GetRobotAPIKeysResponse>(Arena*); +template<> ::viam::app::v1::GetRobotPartHistoryRequest* Arena::CreateMaybeMessage<::viam::app::v1::GetRobotPartHistoryRequest>(Arena*); +template<> ::viam::app::v1::GetRobotPartHistoryResponse* Arena::CreateMaybeMessage<::viam::app::v1::GetRobotPartHistoryResponse>(Arena*); +template<> ::viam::app::v1::GetRobotPartLogsRequest* Arena::CreateMaybeMessage<::viam::app::v1::GetRobotPartLogsRequest>(Arena*); +template<> ::viam::app::v1::GetRobotPartLogsResponse* Arena::CreateMaybeMessage<::viam::app::v1::GetRobotPartLogsResponse>(Arena*); +template<> ::viam::app::v1::GetRobotPartRequest* Arena::CreateMaybeMessage<::viam::app::v1::GetRobotPartRequest>(Arena*); +template<> ::viam::app::v1::GetRobotPartResponse* Arena::CreateMaybeMessage<::viam::app::v1::GetRobotPartResponse>(Arena*); +template<> ::viam::app::v1::GetRobotPartsRequest* Arena::CreateMaybeMessage<::viam::app::v1::GetRobotPartsRequest>(Arena*); +template<> ::viam::app::v1::GetRobotPartsResponse* Arena::CreateMaybeMessage<::viam::app::v1::GetRobotPartsResponse>(Arena*); +template<> ::viam::app::v1::GetRobotRequest* Arena::CreateMaybeMessage<::viam::app::v1::GetRobotRequest>(Arena*); +template<> ::viam::app::v1::GetRobotResponse* Arena::CreateMaybeMessage<::viam::app::v1::GetRobotResponse>(Arena*); +template<> ::viam::app::v1::GetRoverRentalRobotsRequest* Arena::CreateMaybeMessage<::viam::app::v1::GetRoverRentalRobotsRequest>(Arena*); +template<> ::viam::app::v1::GetRoverRentalRobotsResponse* Arena::CreateMaybeMessage<::viam::app::v1::GetRoverRentalRobotsResponse>(Arena*); +template<> ::viam::app::v1::GetUserIDByEmailRequest* Arena::CreateMaybeMessage<::viam::app::v1::GetUserIDByEmailRequest>(Arena*); +template<> ::viam::app::v1::GetUserIDByEmailResponse* Arena::CreateMaybeMessage<::viam::app::v1::GetUserIDByEmailResponse>(Arena*); +template<> ::viam::app::v1::ListAuthorizationsRequest* Arena::CreateMaybeMessage<::viam::app::v1::ListAuthorizationsRequest>(Arena*); +template<> ::viam::app::v1::ListAuthorizationsResponse* Arena::CreateMaybeMessage<::viam::app::v1::ListAuthorizationsResponse>(Arena*); +template<> ::viam::app::v1::ListFragmentsRequest* Arena::CreateMaybeMessage<::viam::app::v1::ListFragmentsRequest>(Arena*); +template<> ::viam::app::v1::ListFragmentsResponse* Arena::CreateMaybeMessage<::viam::app::v1::ListFragmentsResponse>(Arena*); +template<> ::viam::app::v1::ListKeysRequest* Arena::CreateMaybeMessage<::viam::app::v1::ListKeysRequest>(Arena*); +template<> ::viam::app::v1::ListKeysResponse* Arena::CreateMaybeMessage<::viam::app::v1::ListKeysResponse>(Arena*); +template<> ::viam::app::v1::ListLocationsRequest* Arena::CreateMaybeMessage<::viam::app::v1::ListLocationsRequest>(Arena*); +template<> ::viam::app::v1::ListLocationsResponse* Arena::CreateMaybeMessage<::viam::app::v1::ListLocationsResponse>(Arena*); +template<> ::viam::app::v1::ListMachineFragmentsRequest* Arena::CreateMaybeMessage<::viam::app::v1::ListMachineFragmentsRequest>(Arena*); +template<> ::viam::app::v1::ListMachineFragmentsResponse* Arena::CreateMaybeMessage<::viam::app::v1::ListMachineFragmentsResponse>(Arena*); +template<> ::viam::app::v1::ListModulesRequest* Arena::CreateMaybeMessage<::viam::app::v1::ListModulesRequest>(Arena*); +template<> ::viam::app::v1::ListModulesResponse* Arena::CreateMaybeMessage<::viam::app::v1::ListModulesResponse>(Arena*); +template<> ::viam::app::v1::ListOAuthAppsRequest* Arena::CreateMaybeMessage<::viam::app::v1::ListOAuthAppsRequest>(Arena*); +template<> ::viam::app::v1::ListOAuthAppsResponse* Arena::CreateMaybeMessage<::viam::app::v1::ListOAuthAppsResponse>(Arena*); +template<> ::viam::app::v1::ListOrganizationMembersRequest* Arena::CreateMaybeMessage<::viam::app::v1::ListOrganizationMembersRequest>(Arena*); +template<> ::viam::app::v1::ListOrganizationMembersResponse* Arena::CreateMaybeMessage<::viam::app::v1::ListOrganizationMembersResponse>(Arena*); +template<> ::viam::app::v1::ListOrganizationsByUserRequest* Arena::CreateMaybeMessage<::viam::app::v1::ListOrganizationsByUserRequest>(Arena*); +template<> ::viam::app::v1::ListOrganizationsByUserResponse* Arena::CreateMaybeMessage<::viam::app::v1::ListOrganizationsByUserResponse>(Arena*); +template<> ::viam::app::v1::ListOrganizationsRequest* Arena::CreateMaybeMessage<::viam::app::v1::ListOrganizationsRequest>(Arena*); +template<> ::viam::app::v1::ListOrganizationsResponse* Arena::CreateMaybeMessage<::viam::app::v1::ListOrganizationsResponse>(Arena*); +template<> ::viam::app::v1::ListRegistryItemsRequest* Arena::CreateMaybeMessage<::viam::app::v1::ListRegistryItemsRequest>(Arena*); +template<> ::viam::app::v1::ListRegistryItemsResponse* Arena::CreateMaybeMessage<::viam::app::v1::ListRegistryItemsResponse>(Arena*); +template<> ::viam::app::v1::ListRobotsRequest* Arena::CreateMaybeMessage<::viam::app::v1::ListRobotsRequest>(Arena*); +template<> ::viam::app::v1::ListRobotsResponse* Arena::CreateMaybeMessage<::viam::app::v1::ListRobotsResponse>(Arena*); +template<> ::viam::app::v1::Location* Arena::CreateMaybeMessage<::viam::app::v1::Location>(Arena*); +template<> ::viam::app::v1::LocationAuth* Arena::CreateMaybeMessage<::viam::app::v1::LocationAuth>(Arena*); +template<> ::viam::app::v1::LocationAuthRequest* Arena::CreateMaybeMessage<::viam::app::v1::LocationAuthRequest>(Arena*); +template<> ::viam::app::v1::LocationAuthResponse* Arena::CreateMaybeMessage<::viam::app::v1::LocationAuthResponse>(Arena*); +template<> ::viam::app::v1::LocationOrganization* Arena::CreateMaybeMessage<::viam::app::v1::LocationOrganization>(Arena*); +template<> ::viam::app::v1::MLModelMetadata* Arena::CreateMaybeMessage<::viam::app::v1::MLModelMetadata>(Arena*); +template<> ::viam::app::v1::MLTrainingMetadata* Arena::CreateMaybeMessage<::viam::app::v1::MLTrainingMetadata>(Arena*); +template<> ::viam::app::v1::MLTrainingVersion* Arena::CreateMaybeMessage<::viam::app::v1::MLTrainingVersion>(Arena*); +template<> ::viam::app::v1::MarkPartAsMainRequest* Arena::CreateMaybeMessage<::viam::app::v1::MarkPartAsMainRequest>(Arena*); +template<> ::viam::app::v1::MarkPartAsMainResponse* Arena::CreateMaybeMessage<::viam::app::v1::MarkPartAsMainResponse>(Arena*); +template<> ::viam::app::v1::MarkPartForRestartRequest* Arena::CreateMaybeMessage<::viam::app::v1::MarkPartForRestartRequest>(Arena*); +template<> ::viam::app::v1::MarkPartForRestartResponse* Arena::CreateMaybeMessage<::viam::app::v1::MarkPartForRestartResponse>(Arena*); +template<> ::viam::app::v1::Model* Arena::CreateMaybeMessage<::viam::app::v1::Model>(Arena*); +template<> ::viam::app::v1::Module* Arena::CreateMaybeMessage<::viam::app::v1::Module>(Arena*); +template<> ::viam::app::v1::ModuleFileInfo* Arena::CreateMaybeMessage<::viam::app::v1::ModuleFileInfo>(Arena*); +template<> ::viam::app::v1::ModuleMetadata* Arena::CreateMaybeMessage<::viam::app::v1::ModuleMetadata>(Arena*); +template<> ::viam::app::v1::ModuleVersion* Arena::CreateMaybeMessage<::viam::app::v1::ModuleVersion>(Arena*); +template<> ::viam::app::v1::NewRobotPartRequest* Arena::CreateMaybeMessage<::viam::app::v1::NewRobotPartRequest>(Arena*); +template<> ::viam::app::v1::NewRobotPartResponse* Arena::CreateMaybeMessage<::viam::app::v1::NewRobotPartResponse>(Arena*); +template<> ::viam::app::v1::NewRobotRequest* Arena::CreateMaybeMessage<::viam::app::v1::NewRobotRequest>(Arena*); +template<> ::viam::app::v1::NewRobotResponse* Arena::CreateMaybeMessage<::viam::app::v1::NewRobotResponse>(Arena*); +template<> ::viam::app::v1::OAuthConfig* Arena::CreateMaybeMessage<::viam::app::v1::OAuthConfig>(Arena*); +template<> ::viam::app::v1::OrgDetails* Arena::CreateMaybeMessage<::viam::app::v1::OrgDetails>(Arena*); +template<> ::viam::app::v1::Organization* Arena::CreateMaybeMessage<::viam::app::v1::Organization>(Arena*); +template<> ::viam::app::v1::OrganizationGetLogoRequest* Arena::CreateMaybeMessage<::viam::app::v1::OrganizationGetLogoRequest>(Arena*); +template<> ::viam::app::v1::OrganizationGetLogoResponse* Arena::CreateMaybeMessage<::viam::app::v1::OrganizationGetLogoResponse>(Arena*); +template<> ::viam::app::v1::OrganizationGetSupportEmailRequest* Arena::CreateMaybeMessage<::viam::app::v1::OrganizationGetSupportEmailRequest>(Arena*); +template<> ::viam::app::v1::OrganizationGetSupportEmailResponse* Arena::CreateMaybeMessage<::viam::app::v1::OrganizationGetSupportEmailResponse>(Arena*); +template<> ::viam::app::v1::OrganizationIdentity* Arena::CreateMaybeMessage<::viam::app::v1::OrganizationIdentity>(Arena*); +template<> ::viam::app::v1::OrganizationInvite* Arena::CreateMaybeMessage<::viam::app::v1::OrganizationInvite>(Arena*); +template<> ::viam::app::v1::OrganizationMember* Arena::CreateMaybeMessage<::viam::app::v1::OrganizationMember>(Arena*); +template<> ::viam::app::v1::OrganizationSetLogoRequest* Arena::CreateMaybeMessage<::viam::app::v1::OrganizationSetLogoRequest>(Arena*); +template<> ::viam::app::v1::OrganizationSetLogoResponse* Arena::CreateMaybeMessage<::viam::app::v1::OrganizationSetLogoResponse>(Arena*); +template<> ::viam::app::v1::OrganizationSetSupportEmailRequest* Arena::CreateMaybeMessage<::viam::app::v1::OrganizationSetSupportEmailRequest>(Arena*); +template<> ::viam::app::v1::OrganizationSetSupportEmailResponse* Arena::CreateMaybeMessage<::viam::app::v1::OrganizationSetSupportEmailResponse>(Arena*); +template<> ::viam::app::v1::ReadOAuthAppRequest* Arena::CreateMaybeMessage<::viam::app::v1::ReadOAuthAppRequest>(Arena*); +template<> ::viam::app::v1::ReadOAuthAppResponse* Arena::CreateMaybeMessage<::viam::app::v1::ReadOAuthAppResponse>(Arena*); +template<> ::viam::app::v1::RegistryItem* Arena::CreateMaybeMessage<::viam::app::v1::RegistryItem>(Arena*); +template<> ::viam::app::v1::RemoveRoleRequest* Arena::CreateMaybeMessage<::viam::app::v1::RemoveRoleRequest>(Arena*); +template<> ::viam::app::v1::RemoveRoleResponse* Arena::CreateMaybeMessage<::viam::app::v1::RemoveRoleResponse>(Arena*); +template<> ::viam::app::v1::RenameKeyRequest* Arena::CreateMaybeMessage<::viam::app::v1::RenameKeyRequest>(Arena*); +template<> ::viam::app::v1::RenameKeyResponse* Arena::CreateMaybeMessage<::viam::app::v1::RenameKeyResponse>(Arena*); +template<> ::viam::app::v1::ResendOrganizationInviteRequest* Arena::CreateMaybeMessage<::viam::app::v1::ResendOrganizationInviteRequest>(Arena*); +template<> ::viam::app::v1::ResendOrganizationInviteResponse* Arena::CreateMaybeMessage<::viam::app::v1::ResendOrganizationInviteResponse>(Arena*); +template<> ::viam::app::v1::ResolvedFragment* Arena::CreateMaybeMessage<::viam::app::v1::ResolvedFragment>(Arena*); +template<> ::viam::app::v1::Robot* Arena::CreateMaybeMessage<::viam::app::v1::Robot>(Arena*); +template<> ::viam::app::v1::RobotPart* Arena::CreateMaybeMessage<::viam::app::v1::RobotPart>(Arena*); +template<> ::viam::app::v1::RobotPartHistoryEntry* Arena::CreateMaybeMessage<::viam::app::v1::RobotPartHistoryEntry>(Arena*); +template<> ::viam::app::v1::RotateKeyRequest* Arena::CreateMaybeMessage<::viam::app::v1::RotateKeyRequest>(Arena*); +template<> ::viam::app::v1::RotateKeyResponse* Arena::CreateMaybeMessage<::viam::app::v1::RotateKeyResponse>(Arena*); +template<> ::viam::app::v1::RoverRentalRobot* Arena::CreateMaybeMessage<::viam::app::v1::RoverRentalRobot>(Arena*); +template<> ::viam::app::v1::SearchOrganizationsRequest* Arena::CreateMaybeMessage<::viam::app::v1::SearchOrganizationsRequest>(Arena*); +template<> ::viam::app::v1::SearchOrganizationsResponse* Arena::CreateMaybeMessage<::viam::app::v1::SearchOrganizationsResponse>(Arena*); +template<> ::viam::app::v1::ShareLocationRequest* Arena::CreateMaybeMessage<::viam::app::v1::ShareLocationRequest>(Arena*); +template<> ::viam::app::v1::ShareLocationResponse* Arena::CreateMaybeMessage<::viam::app::v1::ShareLocationResponse>(Arena*); +template<> ::viam::app::v1::SharedSecret* Arena::CreateMaybeMessage<::viam::app::v1::SharedSecret>(Arena*); +template<> ::viam::app::v1::StorageConfig* Arena::CreateMaybeMessage<::viam::app::v1::StorageConfig>(Arena*); +template<> ::viam::app::v1::TailRobotPartLogsRequest* Arena::CreateMaybeMessage<::viam::app::v1::TailRobotPartLogsRequest>(Arena*); +template<> ::viam::app::v1::TailRobotPartLogsResponse* Arena::CreateMaybeMessage<::viam::app::v1::TailRobotPartLogsResponse>(Arena*); +template<> ::viam::app::v1::TransferRegistryItemRequest* Arena::CreateMaybeMessage<::viam::app::v1::TransferRegistryItemRequest>(Arena*); +template<> ::viam::app::v1::TransferRegistryItemResponse* Arena::CreateMaybeMessage<::viam::app::v1::TransferRegistryItemResponse>(Arena*); +template<> ::viam::app::v1::UnshareLocationRequest* Arena::CreateMaybeMessage<::viam::app::v1::UnshareLocationRequest>(Arena*); +template<> ::viam::app::v1::UnshareLocationResponse* Arena::CreateMaybeMessage<::viam::app::v1::UnshareLocationResponse>(Arena*); +template<> ::viam::app::v1::UpdateBillingServiceRequest* Arena::CreateMaybeMessage<::viam::app::v1::UpdateBillingServiceRequest>(Arena*); +template<> ::viam::app::v1::UpdateBillingServiceResponse* Arena::CreateMaybeMessage<::viam::app::v1::UpdateBillingServiceResponse>(Arena*); +template<> ::viam::app::v1::UpdateFragmentRequest* Arena::CreateMaybeMessage<::viam::app::v1::UpdateFragmentRequest>(Arena*); +template<> ::viam::app::v1::UpdateFragmentResponse* Arena::CreateMaybeMessage<::viam::app::v1::UpdateFragmentResponse>(Arena*); +template<> ::viam::app::v1::UpdateLocationRequest* Arena::CreateMaybeMessage<::viam::app::v1::UpdateLocationRequest>(Arena*); +template<> ::viam::app::v1::UpdateLocationResponse* Arena::CreateMaybeMessage<::viam::app::v1::UpdateLocationResponse>(Arena*); +template<> ::viam::app::v1::UpdateMLModelMetadata* Arena::CreateMaybeMessage<::viam::app::v1::UpdateMLModelMetadata>(Arena*); +template<> ::viam::app::v1::UpdateMLTrainingMetadata* Arena::CreateMaybeMessage<::viam::app::v1::UpdateMLTrainingMetadata>(Arena*); +template<> ::viam::app::v1::UpdateModuleMetadata* Arena::CreateMaybeMessage<::viam::app::v1::UpdateModuleMetadata>(Arena*); +template<> ::viam::app::v1::UpdateModuleRequest* Arena::CreateMaybeMessage<::viam::app::v1::UpdateModuleRequest>(Arena*); +template<> ::viam::app::v1::UpdateModuleResponse* Arena::CreateMaybeMessage<::viam::app::v1::UpdateModuleResponse>(Arena*); +template<> ::viam::app::v1::UpdateOAuthAppRequest* Arena::CreateMaybeMessage<::viam::app::v1::UpdateOAuthAppRequest>(Arena*); +template<> ::viam::app::v1::UpdateOAuthAppResponse* Arena::CreateMaybeMessage<::viam::app::v1::UpdateOAuthAppResponse>(Arena*); +template<> ::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest* Arena::CreateMaybeMessage<::viam::app::v1::UpdateOrganizationInviteAuthorizationsRequest>(Arena*); +template<> ::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse* Arena::CreateMaybeMessage<::viam::app::v1::UpdateOrganizationInviteAuthorizationsResponse>(Arena*); +template<> ::viam::app::v1::UpdateOrganizationRequest* Arena::CreateMaybeMessage<::viam::app::v1::UpdateOrganizationRequest>(Arena*); +template<> ::viam::app::v1::UpdateOrganizationResponse* Arena::CreateMaybeMessage<::viam::app::v1::UpdateOrganizationResponse>(Arena*); +template<> ::viam::app::v1::UpdateRegistryItemRequest* Arena::CreateMaybeMessage<::viam::app::v1::UpdateRegistryItemRequest>(Arena*); +template<> ::viam::app::v1::UpdateRegistryItemResponse* Arena::CreateMaybeMessage<::viam::app::v1::UpdateRegistryItemResponse>(Arena*); +template<> ::viam::app::v1::UpdateRobotPartRequest* Arena::CreateMaybeMessage<::viam::app::v1::UpdateRobotPartRequest>(Arena*); +template<> ::viam::app::v1::UpdateRobotPartResponse* Arena::CreateMaybeMessage<::viam::app::v1::UpdateRobotPartResponse>(Arena*); +template<> ::viam::app::v1::UpdateRobotRequest* Arena::CreateMaybeMessage<::viam::app::v1::UpdateRobotRequest>(Arena*); +template<> ::viam::app::v1::UpdateRobotResponse* Arena::CreateMaybeMessage<::viam::app::v1::UpdateRobotResponse>(Arena*); +template<> ::viam::app::v1::UploadModuleFileRequest* Arena::CreateMaybeMessage<::viam::app::v1::UploadModuleFileRequest>(Arena*); +template<> ::viam::app::v1::UploadModuleFileResponse* Arena::CreateMaybeMessage<::viam::app::v1::UploadModuleFileResponse>(Arena*); +template<> ::viam::app::v1::Uploads* Arena::CreateMaybeMessage<::viam::app::v1::Uploads>(Arena*); +template<> ::viam::app::v1::VersionHistory* Arena::CreateMaybeMessage<::viam::app::v1::VersionHistory>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace viam { namespace app { namespace v1 { + enum SharedSecret_State : int { SharedSecret_State_STATE_UNSPECIFIED = 0, SharedSecret_State_STATE_ENABLED = 1, SharedSecret_State_STATE_DISABLED = 2, - SharedSecret_State_SharedSecret_State_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - SharedSecret_State_SharedSecret_State_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), + SharedSecret_State_SharedSecret_State_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + SharedSecret_State_SharedSecret_State_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() }; - bool SharedSecret_State_IsValid(int value); -extern const uint32_t SharedSecret_State_internal_data_[]; -constexpr SharedSecret_State SharedSecret_State_State_MIN = static_cast(0); -constexpr SharedSecret_State SharedSecret_State_State_MAX = static_cast(2); -constexpr int SharedSecret_State_State_ARRAYSIZE = 2 + 1; -const ::google::protobuf::EnumDescriptor* -SharedSecret_State_descriptor(); -template -const std::string& SharedSecret_State_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to State_Name()."); - return SharedSecret_State_Name(static_cast(value)); -} -template <> -inline const std::string& SharedSecret_State_Name(SharedSecret_State value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool SharedSecret_State_Parse(absl::string_view name, SharedSecret_State* value) { - return ::google::protobuf::internal::ParseNamedEnum( - SharedSecret_State_descriptor(), name, value); +constexpr SharedSecret_State SharedSecret_State_State_MIN = SharedSecret_State_STATE_UNSPECIFIED; +constexpr SharedSecret_State SharedSecret_State_State_MAX = SharedSecret_State_STATE_DISABLED; +constexpr int SharedSecret_State_State_ARRAYSIZE = SharedSecret_State_State_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SharedSecret_State_descriptor(); +template +inline const std::string& SharedSecret_State_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function SharedSecret_State_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + SharedSecret_State_descriptor(), enum_t_value); +} +inline bool SharedSecret_State_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SharedSecret_State* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + SharedSecret_State_descriptor(), name, value); } enum AuthenticationType : int { AUTHENTICATION_TYPE_UNSPECIFIED = 0, @@ -699,70 +972,54 @@ enum AuthenticationType : int { AUTHENTICATION_TYPE_API_KEY = 2, AUTHENTICATION_TYPE_ROBOT_PART_SECRET = 3, AUTHENTICATION_TYPE_LOCATION_SECRET = 4, - AuthenticationType_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - AuthenticationType_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), + AuthenticationType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + AuthenticationType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() }; - bool AuthenticationType_IsValid(int value); -extern const uint32_t AuthenticationType_internal_data_[]; -constexpr AuthenticationType AuthenticationType_MIN = static_cast(0); -constexpr AuthenticationType AuthenticationType_MAX = static_cast(4); -constexpr int AuthenticationType_ARRAYSIZE = 4 + 1; -const ::google::protobuf::EnumDescriptor* -AuthenticationType_descriptor(); -template -const std::string& AuthenticationType_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to AuthenticationType_Name()."); - return AuthenticationType_Name(static_cast(value)); -} -template <> -inline const std::string& AuthenticationType_Name(AuthenticationType value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool AuthenticationType_Parse(absl::string_view name, AuthenticationType* value) { - return ::google::protobuf::internal::ParseNamedEnum( - AuthenticationType_descriptor(), name, value); +constexpr AuthenticationType AuthenticationType_MIN = AUTHENTICATION_TYPE_UNSPECIFIED; +constexpr AuthenticationType AuthenticationType_MAX = AUTHENTICATION_TYPE_LOCATION_SECRET; +constexpr int AuthenticationType_ARRAYSIZE = AuthenticationType_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* AuthenticationType_descriptor(); +template +inline const std::string& AuthenticationType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function AuthenticationType_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + AuthenticationType_descriptor(), enum_t_value); +} +inline bool AuthenticationType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, AuthenticationType* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + AuthenticationType_descriptor(), name, value); } enum FragmentVisibility : int { FRAGMENT_VISIBILITY_UNSPECIFIED = 0, FRAGMENT_VISIBILITY_PRIVATE = 1, FRAGMENT_VISIBILITY_PUBLIC = 2, FRAGMENT_VISIBILITY_PUBLIC_UNLISTED = 3, - FragmentVisibility_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - FragmentVisibility_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), + FragmentVisibility_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + FragmentVisibility_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() }; - bool FragmentVisibility_IsValid(int value); -extern const uint32_t FragmentVisibility_internal_data_[]; -constexpr FragmentVisibility FragmentVisibility_MIN = static_cast(0); -constexpr FragmentVisibility FragmentVisibility_MAX = static_cast(3); -constexpr int FragmentVisibility_ARRAYSIZE = 3 + 1; -const ::google::protobuf::EnumDescriptor* -FragmentVisibility_descriptor(); -template -const std::string& FragmentVisibility_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to FragmentVisibility_Name()."); - return FragmentVisibility_Name(static_cast(value)); -} -template <> -inline const std::string& FragmentVisibility_Name(FragmentVisibility value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool FragmentVisibility_Parse(absl::string_view name, FragmentVisibility* value) { - return ::google::protobuf::internal::ParseNamedEnum( - FragmentVisibility_descriptor(), name, value); +constexpr FragmentVisibility FragmentVisibility_MIN = FRAGMENT_VISIBILITY_UNSPECIFIED; +constexpr FragmentVisibility FragmentVisibility_MAX = FRAGMENT_VISIBILITY_PUBLIC_UNLISTED; +constexpr int FragmentVisibility_ARRAYSIZE = FragmentVisibility_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FragmentVisibility_descriptor(); +template +inline const std::string& FragmentVisibility_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function FragmentVisibility_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + FragmentVisibility_descriptor(), enum_t_value); +} +inline bool FragmentVisibility_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FragmentVisibility* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + FragmentVisibility_descriptor(), name, value); } enum FragmentErrorType : int { FRAGMENT_ERROR_TYPE_UNSPECIFIED = 0, @@ -770,135 +1027,214 @@ enum FragmentErrorType : int { FRAGMENT_ERROR_TYPE_NESTING_LIMIT_EXCEEDED = 2, FRAGMENT_ERROR_TYPE_CHILD_ID_INVALID = 3, FRAGMENT_ERROR_TYPE_CYCLE_DETECTED = 4, - FragmentErrorType_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - FragmentErrorType_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), + FragmentErrorType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + FragmentErrorType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() }; - bool FragmentErrorType_IsValid(int value); -extern const uint32_t FragmentErrorType_internal_data_[]; -constexpr FragmentErrorType FragmentErrorType_MIN = static_cast(0); -constexpr FragmentErrorType FragmentErrorType_MAX = static_cast(4); -constexpr int FragmentErrorType_ARRAYSIZE = 4 + 1; -const ::google::protobuf::EnumDescriptor* -FragmentErrorType_descriptor(); -template -const std::string& FragmentErrorType_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to FragmentErrorType_Name()."); - return FragmentErrorType_Name(static_cast(value)); -} -template <> -inline const std::string& FragmentErrorType_Name(FragmentErrorType value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool FragmentErrorType_Parse(absl::string_view name, FragmentErrorType* value) { - return ::google::protobuf::internal::ParseNamedEnum( - FragmentErrorType_descriptor(), name, value); +constexpr FragmentErrorType FragmentErrorType_MIN = FRAGMENT_ERROR_TYPE_UNSPECIFIED; +constexpr FragmentErrorType FragmentErrorType_MAX = FRAGMENT_ERROR_TYPE_CYCLE_DETECTED; +constexpr int FragmentErrorType_ARRAYSIZE = FragmentErrorType_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FragmentErrorType_descriptor(); +template +inline const std::string& FragmentErrorType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function FragmentErrorType_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + FragmentErrorType_descriptor(), enum_t_value); +} +inline bool FragmentErrorType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FragmentErrorType* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + FragmentErrorType_descriptor(), name, value); } enum RegistryItemStatus : int { REGISTRY_ITEM_STATUS_UNSPECIFIED = 0, REGISTRY_ITEM_STATUS_PUBLISHED = 1, REGISTRY_ITEM_STATUS_IN_DEVELOPMENT = 2, - RegistryItemStatus_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - RegistryItemStatus_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), + RegistryItemStatus_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + RegistryItemStatus_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() }; - bool RegistryItemStatus_IsValid(int value); -extern const uint32_t RegistryItemStatus_internal_data_[]; -constexpr RegistryItemStatus RegistryItemStatus_MIN = static_cast(0); -constexpr RegistryItemStatus RegistryItemStatus_MAX = static_cast(2); -constexpr int RegistryItemStatus_ARRAYSIZE = 2 + 1; -const ::google::protobuf::EnumDescriptor* -RegistryItemStatus_descriptor(); -template -const std::string& RegistryItemStatus_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to RegistryItemStatus_Name()."); - return RegistryItemStatus_Name(static_cast(value)); -} -template <> -inline const std::string& RegistryItemStatus_Name(RegistryItemStatus value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool RegistryItemStatus_Parse(absl::string_view name, RegistryItemStatus* value) { - return ::google::protobuf::internal::ParseNamedEnum( - RegistryItemStatus_descriptor(), name, value); +constexpr RegistryItemStatus RegistryItemStatus_MIN = REGISTRY_ITEM_STATUS_UNSPECIFIED; +constexpr RegistryItemStatus RegistryItemStatus_MAX = REGISTRY_ITEM_STATUS_IN_DEVELOPMENT; +constexpr int RegistryItemStatus_ARRAYSIZE = RegistryItemStatus_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* RegistryItemStatus_descriptor(); +template +inline const std::string& RegistryItemStatus_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function RegistryItemStatus_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + RegistryItemStatus_descriptor(), enum_t_value); +} +inline bool RegistryItemStatus_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, RegistryItemStatus* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + RegistryItemStatus_descriptor(), name, value); } enum Visibility : int { VISIBILITY_UNSPECIFIED = 0, VISIBILITY_PRIVATE = 1, VISIBILITY_PUBLIC = 2, VISIBILITY_PUBLIC_UNLISTED = 3, - Visibility_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - Visibility_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), + Visibility_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + Visibility_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() }; - bool Visibility_IsValid(int value); -extern const uint32_t Visibility_internal_data_[]; -constexpr Visibility Visibility_MIN = static_cast(0); -constexpr Visibility Visibility_MAX = static_cast(3); -constexpr int Visibility_ARRAYSIZE = 3 + 1; -const ::google::protobuf::EnumDescriptor* -Visibility_descriptor(); -template -const std::string& Visibility_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to Visibility_Name()."); - return Visibility_Name(static_cast(value)); -} -template <> -inline const std::string& Visibility_Name(Visibility value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool Visibility_Parse(absl::string_view name, Visibility* value) { - return ::google::protobuf::internal::ParseNamedEnum( - Visibility_descriptor(), name, value); +constexpr Visibility Visibility_MIN = VISIBILITY_UNSPECIFIED; +constexpr Visibility Visibility_MAX = VISIBILITY_PUBLIC_UNLISTED; +constexpr int Visibility_ARRAYSIZE = Visibility_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Visibility_descriptor(); +template +inline const std::string& Visibility_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function Visibility_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + Visibility_descriptor(), enum_t_value); +} +inline bool Visibility_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Visibility* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + Visibility_descriptor(), name, value); +} +enum ClientAuthentication : int { + CLIENT_AUTHENTICATION_UNSPECIFIED = 0, + CLIENT_AUTHENTICATION_REQUIRED = 1, + CLIENT_AUTHENTICATION_NOT_REQUIRED = 2, + CLIENT_AUTHENTICATION_NOT_REQUIRED_WHEN_USING_PKCE = 3, + ClientAuthentication_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + ClientAuthentication_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() +}; +bool ClientAuthentication_IsValid(int value); +constexpr ClientAuthentication ClientAuthentication_MIN = CLIENT_AUTHENTICATION_UNSPECIFIED; +constexpr ClientAuthentication ClientAuthentication_MAX = CLIENT_AUTHENTICATION_NOT_REQUIRED_WHEN_USING_PKCE; +constexpr int ClientAuthentication_ARRAYSIZE = ClientAuthentication_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ClientAuthentication_descriptor(); +template +inline const std::string& ClientAuthentication_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function ClientAuthentication_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + ClientAuthentication_descriptor(), enum_t_value); +} +inline bool ClientAuthentication_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ClientAuthentication* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + ClientAuthentication_descriptor(), name, value); +} +enum PKCE : int { + PKCE_UNSPECIFIED = 0, + PKCE_REQUIRED = 1, + PKCE_NOT_REQUIRED = 2, + PKCE_NOT_REQUIRED_WHEN_USING_CLIENT_AUTHENTICATION = 3, + PKCE_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + PKCE_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() +}; +bool PKCE_IsValid(int value); +constexpr PKCE PKCE_MIN = PKCE_UNSPECIFIED; +constexpr PKCE PKCE_MAX = PKCE_NOT_REQUIRED_WHEN_USING_CLIENT_AUTHENTICATION; +constexpr int PKCE_ARRAYSIZE = PKCE_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PKCE_descriptor(); +template +inline const std::string& PKCE_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function PKCE_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + PKCE_descriptor(), enum_t_value); +} +inline bool PKCE_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PKCE* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + PKCE_descriptor(), name, value); +} +enum URLValidation : int { + URL_VALIDATION_UNSPECIFIED = 0, + URL_VALIDATION_EXACT_MATCH = 1, + URL_VALIDATION_ALLOW_WILDCARDS = 2, + URLValidation_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + URLValidation_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() +}; +bool URLValidation_IsValid(int value); +constexpr URLValidation URLValidation_MIN = URL_VALIDATION_UNSPECIFIED; +constexpr URLValidation URLValidation_MAX = URL_VALIDATION_ALLOW_WILDCARDS; +constexpr int URLValidation_ARRAYSIZE = URLValidation_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* URLValidation_descriptor(); +template +inline const std::string& URLValidation_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function URLValidation_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + URLValidation_descriptor(), enum_t_value); +} +inline bool URLValidation_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, URLValidation* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + URLValidation_descriptor(), name, value); +} +enum EnabledGrant : int { + ENABLED_GRANT_UNSPECIFIED = 0, + ENABLED_GRANT_AUTHORIZATION_CODE = 1, + ENABLED_GRANT_IMPLICIT = 2, + ENABLED_GRANT_PASSWORD = 3, + ENABLED_GRANT_REFRESH_TOKEN = 4, + ENABLED_GRANT_DEVICE_CODE = 5, + EnabledGrant_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + EnabledGrant_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() +}; +bool EnabledGrant_IsValid(int value); +constexpr EnabledGrant EnabledGrant_MIN = ENABLED_GRANT_UNSPECIFIED; +constexpr EnabledGrant EnabledGrant_MAX = ENABLED_GRANT_DEVICE_CODE; +constexpr int EnabledGrant_ARRAYSIZE = EnabledGrant_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* EnabledGrant_descriptor(); +template +inline const std::string& EnabledGrant_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function EnabledGrant_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + EnabledGrant_descriptor(), enum_t_value); +} +inline bool EnabledGrant_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, EnabledGrant* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + EnabledGrant_descriptor(), name, value); } - // =================================================================== - -// ------------------------------------------------------------------- - -class UploadModuleFileResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.UploadModuleFileResponse) */ { +class Robot final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.Robot) */ { public: - inline UploadModuleFileResponse() : UploadModuleFileResponse(nullptr) {} - ~UploadModuleFileResponse() override; - template - explicit PROTOBUF_CONSTEXPR UploadModuleFileResponse(::google::protobuf::internal::ConstantInitialized); + inline Robot() : Robot(nullptr) {} + ~Robot() override; + explicit PROTOBUF_CONSTEXPR Robot(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline UploadModuleFileResponse(const UploadModuleFileResponse& from) - : UploadModuleFileResponse(nullptr, from) {} - UploadModuleFileResponse(UploadModuleFileResponse&& from) noexcept - : UploadModuleFileResponse() { + Robot(const Robot& from); + Robot(Robot&& from) noexcept + : Robot() { *this = ::std::move(from); } - inline UploadModuleFileResponse& operator=(const UploadModuleFileResponse& from) { + inline Robot& operator=(const Robot& from) { CopyFrom(from); return *this; } - inline UploadModuleFileResponse& operator=(UploadModuleFileResponse&& from) noexcept { + inline Robot& operator=(Robot&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -908,178 +1244,217 @@ class UploadModuleFileResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const UploadModuleFileResponse& default_instance() { + static const Robot& default_instance() { return *internal_default_instance(); } - static inline const UploadModuleFileResponse* internal_default_instance() { - return reinterpret_cast( - &_UploadModuleFileResponse_default_instance_); + static inline const Robot* internal_default_instance() { + return reinterpret_cast( + &_Robot_default_instance_); } static constexpr int kIndexInFileMessages = - 167; + 0; - friend void swap(UploadModuleFileResponse& a, UploadModuleFileResponse& b) { + friend void swap(Robot& a, Robot& b) { a.Swap(&b); } - inline void Swap(UploadModuleFileResponse* other) { + inline void Swap(Robot* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(UploadModuleFileResponse* other) { + void UnsafeArenaSwap(Robot* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - UploadModuleFileResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const UploadModuleFileResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const UploadModuleFileResponse& from) { - UploadModuleFileResponse::MergeImpl(*this, from); + Robot* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Robot& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Robot& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(UploadModuleFileResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(Robot* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.UploadModuleFileResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.Robot"; } protected: - explicit UploadModuleFileResponse(::google::protobuf::Arena* arena); - UploadModuleFileResponse(::google::protobuf::Arena* arena, const UploadModuleFileResponse& from); + explicit Robot(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kUrlFieldNumber = 1, + kIdFieldNumber = 1, + kNameFieldNumber = 2, + kLocationFieldNumber = 3, + kLastAccessFieldNumber = 4, + kCreatedOnFieldNumber = 5, }; - // string url = 1 [json_name = "url"]; - void clear_url() ; - const std::string& url() const; - template - void set_url(Arg_&& arg, Args_... args); - std::string* mutable_url(); - PROTOBUF_NODISCARD std::string* release_url(); - void set_allocated_url(std::string* value); + // string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + // string name = 2 [json_name = "name", (.tagger.v1.tags) = "bson:\"name\" json:\"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_url() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_url( - const std::string& value); - std::string* _internal_mutable_url(); + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + + // string location = 3 [json_name = "location", (.tagger.v1.tags) = "bson:\"location\" json:\"location\""]; + void clear_location(); + const std::string& location() const; + template + void set_location(ArgT0&& arg0, ArgT... args); + std::string* mutable_location(); + PROTOBUF_NODISCARD std::string* release_location(); + void set_allocated_location(std::string* location); + private: + const std::string& _internal_location() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_location(const std::string& value); + std::string* _internal_mutable_location(); + public: + // .google.protobuf.Timestamp last_access = 4 [json_name = "lastAccess", (.tagger.v1.tags) = "bson:\"last_access\" json:\"last_access\""]; + bool has_last_access() const; + private: + bool _internal_has_last_access() const; public: - // @@protoc_insertion_point(class_scope:viam.app.v1.UploadModuleFileResponse) + void clear_last_access(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& last_access() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_last_access(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_last_access(); + void set_allocated_last_access(::PROTOBUF_NAMESPACE_ID::Timestamp* last_access); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_last_access() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_last_access(); + public: + void unsafe_arena_set_allocated_last_access( + ::PROTOBUF_NAMESPACE_ID::Timestamp* last_access); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_last_access(); + + // .google.protobuf.Timestamp created_on = 5 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\""]; + bool has_created_on() const; + private: + bool _internal_has_created_on() const; + public: + void clear_created_on(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& created_on() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_created_on(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_created_on(); + void set_allocated_created_on(::PROTOBUF_NAMESPACE_ID::Timestamp* created_on); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_created_on() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_created_on(); + public: + void unsafe_arena_set_allocated_created_on( + ::PROTOBUF_NAMESPACE_ID::Timestamp* created_on); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_created_on(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.Robot) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 48, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr url_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr location_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* last_access_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* created_on_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class UpdateRobotRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.UpdateRobotRequest) */ { +class RobotPart final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.RobotPart) */ { public: - inline UpdateRobotRequest() : UpdateRobotRequest(nullptr) {} - ~UpdateRobotRequest() override; - template - explicit PROTOBUF_CONSTEXPR UpdateRobotRequest(::google::protobuf::internal::ConstantInitialized); + inline RobotPart() : RobotPart(nullptr) {} + ~RobotPart() override; + explicit PROTOBUF_CONSTEXPR RobotPart(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline UpdateRobotRequest(const UpdateRobotRequest& from) - : UpdateRobotRequest(nullptr, from) {} - UpdateRobotRequest(UpdateRobotRequest&& from) noexcept - : UpdateRobotRequest() { + RobotPart(const RobotPart& from); + RobotPart(RobotPart&& from) noexcept + : RobotPart() { *this = ::std::move(from); } - inline UpdateRobotRequest& operator=(const UpdateRobotRequest& from) { + inline RobotPart& operator=(const RobotPart& from) { CopyFrom(from); return *this; } - inline UpdateRobotRequest& operator=(UpdateRobotRequest&& from) noexcept { + inline RobotPart& operator=(RobotPart&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1089,213 +1464,388 @@ class UpdateRobotRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const UpdateRobotRequest& default_instance() { + static const RobotPart& default_instance() { return *internal_default_instance(); } - static inline const UpdateRobotRequest* internal_default_instance() { - return reinterpret_cast( - &_UpdateRobotRequest_default_instance_); + static inline const RobotPart* internal_default_instance() { + return reinterpret_cast( + &_RobotPart_default_instance_); } static constexpr int kIndexInFileMessages = - 118; + 1; - friend void swap(UpdateRobotRequest& a, UpdateRobotRequest& b) { + friend void swap(RobotPart& a, RobotPart& b) { a.Swap(&b); } - inline void Swap(UpdateRobotRequest* other) { + inline void Swap(RobotPart* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(UpdateRobotRequest* other) { + void UnsafeArenaSwap(RobotPart* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - UpdateRobotRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const UpdateRobotRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const UpdateRobotRequest& from) { - UpdateRobotRequest::MergeImpl(*this, from); + RobotPart* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const RobotPart& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const RobotPart& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(UpdateRobotRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(RobotPart* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.UpdateRobotRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.RobotPart"; } protected: - explicit UpdateRobotRequest(::google::protobuf::Arena* arena); - UpdateRobotRequest(::google::protobuf::Arena* arena, const UpdateRobotRequest& from); + explicit RobotPart(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { + kSecretsFieldNumber = 14, kIdFieldNumber = 1, kNameFieldNumber = 2, - kLocationFieldNumber = 3, + kSecretFieldNumber = 3, + kRobotFieldNumber = 4, + kFqdnFieldNumber = 9, + kDnsNameFieldNumber = 10, + kLocalFqdnFieldNumber = 11, + kLocationIdFieldNumber = 12, + kRobotConfigFieldNumber = 5, + kLastAccessFieldNumber = 6, + kUserSuppliedInfoFieldNumber = 7, + kCreatedOnFieldNumber = 13, + kLastUpdatedFieldNumber = 15, + kMainPartFieldNumber = 8, }; - // string id = 1 [json_name = "id"]; - void clear_id() ; + // repeated .viam.app.v1.SharedSecret secrets = 14 [json_name = "secrets", (.tagger.v1.tags) = "bson:\"secrets\""]; + int secrets_size() const; + private: + int _internal_secrets_size() const; + public: + void clear_secrets(); + ::viam::app::v1::SharedSecret* mutable_secrets(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::SharedSecret >* + mutable_secrets(); + private: + const ::viam::app::v1::SharedSecret& _internal_secrets(int index) const; + ::viam::app::v1::SharedSecret* _internal_add_secrets(); + public: + const ::viam::app::v1::SharedSecret& secrets(int index) const; + ::viam::app::v1::SharedSecret* add_secrets(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::SharedSecret >& + secrets() const; + + // string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""]; + void clear_id(); const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); + template + void set_id(ArgT0&& arg0, ArgT... args); std::string* mutable_id(); PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - + void set_allocated_id(std::string* id); private: const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); std::string* _internal_mutable_id(); - public: - // string name = 2 [json_name = "name"]; - void clear_name() ; + + // string name = 2 [json_name = "name", (.tagger.v1.tags) = "bson:\"name\" json:\"name\""]; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); std::string* _internal_mutable_name(); + public: + // string secret = 3 [json_name = "secret", (.tagger.v1.tags) = "bson:\"secret\" json:\"secret,omitempty\""]; + void clear_secret(); + const std::string& secret() const; + template + void set_secret(ArgT0&& arg0, ArgT... args); + std::string* mutable_secret(); + PROTOBUF_NODISCARD std::string* release_secret(); + void set_allocated_secret(std::string* secret); + private: + const std::string& _internal_secret() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_secret(const std::string& value); + std::string* _internal_mutable_secret(); + public: + + // string robot = 4 [json_name = "robot", (.tagger.v1.tags) = "bson:\"robot\" json:\"robot\""]; + void clear_robot(); + const std::string& robot() const; + template + void set_robot(ArgT0&& arg0, ArgT... args); + std::string* mutable_robot(); + PROTOBUF_NODISCARD std::string* release_robot(); + void set_allocated_robot(std::string* robot); + private: + const std::string& _internal_robot() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_robot(const std::string& value); + std::string* _internal_mutable_robot(); public: - // string location = 3 [json_name = "location"]; - void clear_location() ; - const std::string& location() const; - template - void set_location(Arg_&& arg, Args_... args); - std::string* mutable_location(); - PROTOBUF_NODISCARD std::string* release_location(); - void set_allocated_location(std::string* value); + // string fqdn = 9 [json_name = "fqdn"]; + void clear_fqdn(); + const std::string& fqdn() const; + template + void set_fqdn(ArgT0&& arg0, ArgT... args); + std::string* mutable_fqdn(); + PROTOBUF_NODISCARD std::string* release_fqdn(); + void set_allocated_fqdn(std::string* fqdn); private: - const std::string& _internal_location() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_location( - const std::string& value); - std::string* _internal_mutable_location(); + const std::string& _internal_fqdn() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_fqdn(const std::string& value); + std::string* _internal_mutable_fqdn(); + public: + // string dns_name = 10 [json_name = "dnsName", (.tagger.v1.tags) = "bson:\"dns_name\" json:\"dns_name\""]; + void clear_dns_name(); + const std::string& dns_name() const; + template + void set_dns_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_dns_name(); + PROTOBUF_NODISCARD std::string* release_dns_name(); + void set_allocated_dns_name(std::string* dns_name); + private: + const std::string& _internal_dns_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_dns_name(const std::string& value); + std::string* _internal_mutable_dns_name(); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.UpdateRobotRequest) + + // string local_fqdn = 11 [json_name = "localFqdn"]; + void clear_local_fqdn(); + const std::string& local_fqdn() const; + template + void set_local_fqdn(ArgT0&& arg0, ArgT... args); + std::string* mutable_local_fqdn(); + PROTOBUF_NODISCARD std::string* release_local_fqdn(); + void set_allocated_local_fqdn(std::string* local_fqdn); + private: + const std::string& _internal_local_fqdn() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_local_fqdn(const std::string& value); + std::string* _internal_mutable_local_fqdn(); + public: + + // string location_id = 12 [json_name = "locationId", (.tagger.v1.tags) = "bson:\"location_id\" json:\"-\""]; + void clear_location_id(); + const std::string& location_id() const; + template + void set_location_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_location_id(); + PROTOBUF_NODISCARD std::string* release_location_id(); + void set_allocated_location_id(std::string* location_id); + private: + const std::string& _internal_location_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_location_id(const std::string& value); + std::string* _internal_mutable_location_id(); + public: + + // .google.protobuf.Struct robot_config = 5 [json_name = "robotConfig", (.tagger.v1.tags) = "bson:\"config\" json:\"robot_config\""]; + bool has_robot_config() const; + private: + bool _internal_has_robot_config() const; + public: + void clear_robot_config(); + const ::PROTOBUF_NAMESPACE_ID::Struct& robot_config() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_robot_config(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_robot_config(); + void set_allocated_robot_config(::PROTOBUF_NAMESPACE_ID::Struct* robot_config); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_robot_config() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_robot_config(); + public: + void unsafe_arena_set_allocated_robot_config( + ::PROTOBUF_NAMESPACE_ID::Struct* robot_config); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_robot_config(); + + // .google.protobuf.Timestamp last_access = 6 [json_name = "lastAccess", (.tagger.v1.tags) = "bson:\"last_access\" json:\"last_access\""]; + bool has_last_access() const; + private: + bool _internal_has_last_access() const; + public: + void clear_last_access(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& last_access() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_last_access(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_last_access(); + void set_allocated_last_access(::PROTOBUF_NAMESPACE_ID::Timestamp* last_access); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_last_access() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_last_access(); + public: + void unsafe_arena_set_allocated_last_access( + ::PROTOBUF_NAMESPACE_ID::Timestamp* last_access); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_last_access(); + + // .google.protobuf.Struct user_supplied_info = 7 [json_name = "userSuppliedInfo", (.tagger.v1.tags) = "bson:\"user_supplied_info\" json:\"user_supplied_info\""]; + bool has_user_supplied_info() const; + private: + bool _internal_has_user_supplied_info() const; + public: + void clear_user_supplied_info(); + const ::PROTOBUF_NAMESPACE_ID::Struct& user_supplied_info() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_user_supplied_info(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_user_supplied_info(); + void set_allocated_user_supplied_info(::PROTOBUF_NAMESPACE_ID::Struct* user_supplied_info); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_user_supplied_info() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_user_supplied_info(); + public: + void unsafe_arena_set_allocated_user_supplied_info( + ::PROTOBUF_NAMESPACE_ID::Struct* user_supplied_info); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_user_supplied_info(); + + // .google.protobuf.Timestamp created_on = 13 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\""]; + bool has_created_on() const; + private: + bool _internal_has_created_on() const; + public: + void clear_created_on(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& created_on() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_created_on(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_created_on(); + void set_allocated_created_on(::PROTOBUF_NAMESPACE_ID::Timestamp* created_on); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_created_on() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_created_on(); + public: + void unsafe_arena_set_allocated_created_on( + ::PROTOBUF_NAMESPACE_ID::Timestamp* created_on); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_created_on(); + + // .google.protobuf.Timestamp last_updated = 15 [json_name = "lastUpdated", (.tagger.v1.tags) = "bson:\"last_updated_at\""]; + bool has_last_updated() const; + private: + bool _internal_has_last_updated() const; + public: + void clear_last_updated(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& last_updated() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_last_updated(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_last_updated(); + void set_allocated_last_updated(::PROTOBUF_NAMESPACE_ID::Timestamp* last_updated); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_last_updated() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_last_updated(); + public: + void unsafe_arena_set_allocated_last_updated( + ::PROTOBUF_NAMESPACE_ID::Timestamp* last_updated); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_last_updated(); + + // bool main_part = 8 [json_name = "mainPart", (.tagger.v1.tags) = "bson:\"main_part\" json:\"main_part\""]; + void clear_main_part(); + bool main_part() const; + void set_main_part(bool value); + private: + bool _internal_main_part() const; + void _internal_set_main_part(bool value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.RobotPart) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 0, - 53, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr id_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr location_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::SharedSecret > secrets_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr secret_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr robot_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr fqdn_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr dns_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr local_fqdn_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr location_id_; + ::PROTOBUF_NAMESPACE_ID::Struct* robot_config_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* last_access_; + ::PROTOBUF_NAMESPACE_ID::Struct* user_supplied_info_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* created_on_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* last_updated_; + bool main_part_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class UpdateRegistryItemResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.UpdateRegistryItemResponse) */ { +class RobotPartHistoryEntry final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.RobotPartHistoryEntry) */ { public: - inline UpdateRegistryItemResponse() : UpdateRegistryItemResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR UpdateRegistryItemResponse(::google::protobuf::internal::ConstantInitialized); + inline RobotPartHistoryEntry() : RobotPartHistoryEntry(nullptr) {} + ~RobotPartHistoryEntry() override; + explicit PROTOBUF_CONSTEXPR RobotPartHistoryEntry(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline UpdateRegistryItemResponse(const UpdateRegistryItemResponse& from) - : UpdateRegistryItemResponse(nullptr, from) {} - UpdateRegistryItemResponse(UpdateRegistryItemResponse&& from) noexcept - : UpdateRegistryItemResponse() { + RobotPartHistoryEntry(const RobotPartHistoryEntry& from); + RobotPartHistoryEntry(RobotPartHistoryEntry&& from) noexcept + : RobotPartHistoryEntry() { *this = ::std::move(from); } - inline UpdateRegistryItemResponse& operator=(const UpdateRegistryItemResponse& from) { + inline RobotPartHistoryEntry& operator=(const RobotPartHistoryEntry& from) { CopyFrom(from); return *this; } - inline UpdateRegistryItemResponse& operator=(UpdateRegistryItemResponse&& from) noexcept { + inline RobotPartHistoryEntry& operator=(RobotPartHistoryEntry&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1305,134 +1855,221 @@ class UpdateRegistryItemResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const UpdateRegistryItemResponse& default_instance() { + static const RobotPartHistoryEntry& default_instance() { return *internal_default_instance(); } - static inline const UpdateRegistryItemResponse* internal_default_instance() { - return reinterpret_cast( - &_UpdateRegistryItemResponse_default_instance_); + static inline const RobotPartHistoryEntry* internal_default_instance() { + return reinterpret_cast( + &_RobotPartHistoryEntry_default_instance_); } static constexpr int kIndexInFileMessages = - 153; + 2; - friend void swap(UpdateRegistryItemResponse& a, UpdateRegistryItemResponse& b) { + friend void swap(RobotPartHistoryEntry& a, RobotPartHistoryEntry& b) { a.Swap(&b); } - inline void Swap(UpdateRegistryItemResponse* other) { + inline void Swap(RobotPartHistoryEntry* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(UpdateRegistryItemResponse* other) { + void UnsafeArenaSwap(RobotPartHistoryEntry* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - UpdateRegistryItemResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const UpdateRegistryItemResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const UpdateRegistryItemResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + RobotPartHistoryEntry* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const RobotPartHistoryEntry& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const RobotPartHistoryEntry& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.UpdateRegistryItemResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(RobotPartHistoryEntry* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.RobotPartHistoryEntry"; } protected: - explicit UpdateRegistryItemResponse(::google::protobuf::Arena* arena); - UpdateRegistryItemResponse(::google::protobuf::Arena* arena, const UpdateRegistryItemResponse& from); + explicit RobotPartHistoryEntry(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.app.v1.UpdateRegistryItemResponse) + enum : int { + kPartFieldNumber = 1, + kRobotFieldNumber = 2, + kWhenFieldNumber = 3, + kOldFieldNumber = 4, + kEditedByFieldNumber = 5, + }; + // string part = 1 [json_name = "part", (.tagger.v1.tags) = "bson:\"part\" json:\"part\""]; + void clear_part(); + const std::string& part() const; + template + void set_part(ArgT0&& arg0, ArgT... args); + std::string* mutable_part(); + PROTOBUF_NODISCARD std::string* release_part(); + void set_allocated_part(std::string* part); + private: + const std::string& _internal_part() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_part(const std::string& value); + std::string* _internal_mutable_part(); + public: + + // string robot = 2 [json_name = "robot", (.tagger.v1.tags) = "bson:\"robot\" json:\"robot\""]; + void clear_robot(); + const std::string& robot() const; + template + void set_robot(ArgT0&& arg0, ArgT... args); + std::string* mutable_robot(); + PROTOBUF_NODISCARD std::string* release_robot(); + void set_allocated_robot(std::string* robot); + private: + const std::string& _internal_robot() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_robot(const std::string& value); + std::string* _internal_mutable_robot(); + public: + + // .google.protobuf.Timestamp when = 3 [json_name = "when", (.tagger.v1.tags) = "bson:\"when\" json:\"when\""]; + bool has_when() const; + private: + bool _internal_has_when() const; + public: + void clear_when(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& when() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_when(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_when(); + void set_allocated_when(::PROTOBUF_NAMESPACE_ID::Timestamp* when); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_when() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_when(); + public: + void unsafe_arena_set_allocated_when( + ::PROTOBUF_NAMESPACE_ID::Timestamp* when); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_when(); + + // .viam.app.v1.RobotPart old = 4 [json_name = "old", (.tagger.v1.tags) = "bson:\"old\" json:\"old\""]; + bool has_old() const; + private: + bool _internal_has_old() const; + public: + void clear_old(); + const ::viam::app::v1::RobotPart& old() const; + PROTOBUF_NODISCARD ::viam::app::v1::RobotPart* release_old(); + ::viam::app::v1::RobotPart* mutable_old(); + void set_allocated_old(::viam::app::v1::RobotPart* old); + private: + const ::viam::app::v1::RobotPart& _internal_old() const; + ::viam::app::v1::RobotPart* _internal_mutable_old(); + public: + void unsafe_arena_set_allocated_old( + ::viam::app::v1::RobotPart* old); + ::viam::app::v1::RobotPart* unsafe_arena_release_old(); + + // .viam.app.v1.AuthenticatorInfo edited_by = 5 [json_name = "editedBy", (.tagger.v1.tags) = "bson:\"edited_by\" json:\"edited_by\""]; + bool has_edited_by() const; + private: + bool _internal_has_edited_by() const; + public: + void clear_edited_by(); + const ::viam::app::v1::AuthenticatorInfo& edited_by() const; + PROTOBUF_NODISCARD ::viam::app::v1::AuthenticatorInfo* release_edited_by(); + ::viam::app::v1::AuthenticatorInfo* mutable_edited_by(); + void set_allocated_edited_by(::viam::app::v1::AuthenticatorInfo* edited_by); + private: + const ::viam::app::v1::AuthenticatorInfo& _internal_edited_by() const; + ::viam::app::v1::AuthenticatorInfo* _internal_mutable_edited_by(); + public: + void unsafe_arena_set_allocated_edited_by( + ::viam::app::v1::AuthenticatorInfo* edited_by); + ::viam::app::v1::AuthenticatorInfo* unsafe_arena_release_edited_by(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.RobotPartHistoryEntry) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr part_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr robot_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* when_; + ::viam::app::v1::RobotPart* old_; + ::viam::app::v1::AuthenticatorInfo* edited_by_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class UpdateRegistryItemRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.UpdateRegistryItemRequest) */ { +class AuthenticatorInfo final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.AuthenticatorInfo) */ { public: - inline UpdateRegistryItemRequest() : UpdateRegistryItemRequest(nullptr) {} - ~UpdateRegistryItemRequest() override; - template - explicit PROTOBUF_CONSTEXPR UpdateRegistryItemRequest(::google::protobuf::internal::ConstantInitialized); + inline AuthenticatorInfo() : AuthenticatorInfo(nullptr) {} + ~AuthenticatorInfo() override; + explicit PROTOBUF_CONSTEXPR AuthenticatorInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline UpdateRegistryItemRequest(const UpdateRegistryItemRequest& from) - : UpdateRegistryItemRequest(nullptr, from) {} - UpdateRegistryItemRequest(UpdateRegistryItemRequest&& from) noexcept - : UpdateRegistryItemRequest() { + AuthenticatorInfo(const AuthenticatorInfo& from); + AuthenticatorInfo(AuthenticatorInfo&& from) noexcept + : AuthenticatorInfo() { *this = ::std::move(from); } - inline UpdateRegistryItemRequest& operator=(const UpdateRegistryItemRequest& from) { + inline AuthenticatorInfo& operator=(const AuthenticatorInfo& from) { CopyFrom(from); return *this; } - inline UpdateRegistryItemRequest& operator=(UpdateRegistryItemRequest&& from) noexcept { + inline AuthenticatorInfo& operator=(AuthenticatorInfo&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1442,240 +2079,166 @@ class UpdateRegistryItemRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const UpdateRegistryItemRequest& default_instance() { + static const AuthenticatorInfo& default_instance() { return *internal_default_instance(); } - static inline const UpdateRegistryItemRequest* internal_default_instance() { - return reinterpret_cast( - &_UpdateRegistryItemRequest_default_instance_); + static inline const AuthenticatorInfo* internal_default_instance() { + return reinterpret_cast( + &_AuthenticatorInfo_default_instance_); } static constexpr int kIndexInFileMessages = - 152; + 3; - friend void swap(UpdateRegistryItemRequest& a, UpdateRegistryItemRequest& b) { + friend void swap(AuthenticatorInfo& a, AuthenticatorInfo& b) { a.Swap(&b); } - inline void Swap(UpdateRegistryItemRequest* other) { + inline void Swap(AuthenticatorInfo* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(UpdateRegistryItemRequest* other) { + void UnsafeArenaSwap(AuthenticatorInfo* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - UpdateRegistryItemRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const UpdateRegistryItemRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const UpdateRegistryItemRequest& from) { - UpdateRegistryItemRequest::MergeImpl(*this, from); + AuthenticatorInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const AuthenticatorInfo& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const AuthenticatorInfo& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(UpdateRegistryItemRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(AuthenticatorInfo* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.UpdateRegistryItemRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.AuthenticatorInfo"; } protected: - explicit UpdateRegistryItemRequest(::google::protobuf::Arena* arena); - UpdateRegistryItemRequest(::google::protobuf::Arena* arena, const UpdateRegistryItemRequest& from); + explicit AuthenticatorInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kItemIdFieldNumber = 1, - kDescriptionFieldNumber = 3, - kUrlFieldNumber = 5, - kTypeFieldNumber = 2, - kVisibilityFieldNumber = 4, + kValueFieldNumber = 2, + kTypeFieldNumber = 1, + kIsDeactivatedFieldNumber = 3, }; - // string item_id = 1 [json_name = "itemId"]; - void clear_item_id() ; - const std::string& item_id() const; - template - void set_item_id(Arg_&& arg, Args_... args); - std::string* mutable_item_id(); - PROTOBUF_NODISCARD std::string* release_item_id(); - void set_allocated_item_id(std::string* value); - + // string value = 2 [json_name = "value"]; + void clear_value(); + const std::string& value() const; + template + void set_value(ArgT0&& arg0, ArgT... args); + std::string* mutable_value(); + PROTOBUF_NODISCARD std::string* release_value(); + void set_allocated_value(std::string* value); private: - const std::string& _internal_item_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_item_id( - const std::string& value); - std::string* _internal_mutable_item_id(); - + const std::string& _internal_value() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_value(const std::string& value); + std::string* _internal_mutable_value(); public: - // string description = 3 [json_name = "description"]; - void clear_description() ; - const std::string& description() const; - template - void set_description(Arg_&& arg, Args_... args); - std::string* mutable_description(); - PROTOBUF_NODISCARD std::string* release_description(); - void set_allocated_description(std::string* value); + // .viam.app.v1.AuthenticationType type = 1 [json_name = "type"]; + void clear_type(); + ::viam::app::v1::AuthenticationType type() const; + void set_type(::viam::app::v1::AuthenticationType value); private: - const std::string& _internal_description() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_description( - const std::string& value); - std::string* _internal_mutable_description(); - + ::viam::app::v1::AuthenticationType _internal_type() const; + void _internal_set_type(::viam::app::v1::AuthenticationType value); public: - // optional string url = 5 [json_name = "url"]; - bool has_url() const; - void clear_url() ; - const std::string& url() const; - template - void set_url(Arg_&& arg, Args_... args); - std::string* mutable_url(); - PROTOBUF_NODISCARD std::string* release_url(); - void set_allocated_url(std::string* value); - - private: - const std::string& _internal_url() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_url( - const std::string& value); - std::string* _internal_mutable_url(); - - public: - // .viam.app.packages.v1.PackageType type = 2 [json_name = "type"]; - void clear_type() ; - ::viam::app::packages::v1::PackageType type() const; - void set_type(::viam::app::packages::v1::PackageType value); + // bool is_deactivated = 3 [json_name = "isDeactivated"]; + void clear_is_deactivated(); + bool is_deactivated() const; + void set_is_deactivated(bool value); private: - ::viam::app::packages::v1::PackageType _internal_type() const; - void _internal_set_type(::viam::app::packages::v1::PackageType value); - + bool _internal_is_deactivated() const; + void _internal_set_is_deactivated(bool value); public: - // .viam.app.v1.Visibility visibility = 4 [json_name = "visibility"]; - void clear_visibility() ; - ::viam::app::v1::Visibility visibility() const; - void set_visibility(::viam::app::v1::Visibility value); - - private: - ::viam::app::v1::Visibility _internal_visibility() const; - void _internal_set_visibility(::viam::app::v1::Visibility value); - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.UpdateRegistryItemRequest) + // @@protoc_insertion_point(class_scope:viam.app.v1.AuthenticatorInfo) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 5, 0, - 67, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr item_id_; - ::google::protobuf::internal::ArenaStringPtr description_; - ::google::protobuf::internal::ArenaStringPtr url_; - int type_; - int visibility_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr value_; + int type_; + bool is_deactivated_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class UpdateOrganizationRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.UpdateOrganizationRequest) */ { +class ListOrganizationsRequest final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.ListOrganizationsRequest) */ { public: - inline UpdateOrganizationRequest() : UpdateOrganizationRequest(nullptr) {} - ~UpdateOrganizationRequest() override; - template - explicit PROTOBUF_CONSTEXPR UpdateOrganizationRequest(::google::protobuf::internal::ConstantInitialized); + inline ListOrganizationsRequest() : ListOrganizationsRequest(nullptr) {} + explicit PROTOBUF_CONSTEXPR ListOrganizationsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline UpdateOrganizationRequest(const UpdateOrganizationRequest& from) - : UpdateOrganizationRequest(nullptr, from) {} - UpdateOrganizationRequest(UpdateOrganizationRequest&& from) noexcept - : UpdateOrganizationRequest() { + ListOrganizationsRequest(const ListOrganizationsRequest& from); + ListOrganizationsRequest(ListOrganizationsRequest&& from) noexcept + : ListOrganizationsRequest() { *this = ::std::move(from); } - inline UpdateOrganizationRequest& operator=(const UpdateOrganizationRequest& from) { + inline ListOrganizationsRequest& operator=(const ListOrganizationsRequest& from) { CopyFrom(from); return *this; } - inline UpdateOrganizationRequest& operator=(UpdateOrganizationRequest&& from) noexcept { + inline ListOrganizationsRequest& operator=(ListOrganizationsRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1685,255 +2248,114 @@ class UpdateOrganizationRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const UpdateOrganizationRequest& default_instance() { + static const ListOrganizationsRequest& default_instance() { return *internal_default_instance(); } - static inline const UpdateOrganizationRequest* internal_default_instance() { - return reinterpret_cast( - &_UpdateOrganizationRequest_default_instance_); + static inline const ListOrganizationsRequest* internal_default_instance() { + return reinterpret_cast( + &_ListOrganizationsRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 15; + 4; - friend void swap(UpdateOrganizationRequest& a, UpdateOrganizationRequest& b) { + friend void swap(ListOrganizationsRequest& a, ListOrganizationsRequest& b) { a.Swap(&b); } - inline void Swap(UpdateOrganizationRequest* other) { + inline void Swap(ListOrganizationsRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(UpdateOrganizationRequest* other) { + void UnsafeArenaSwap(ListOrganizationsRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - UpdateOrganizationRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ListOrganizationsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const UpdateOrganizationRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const UpdateOrganizationRequest& from) { - UpdateOrganizationRequest::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const ListOrganizationsRequest& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const ListOrganizationsRequest& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(UpdateOrganizationRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.UpdateOrganizationRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.ListOrganizationsRequest"; } protected: - explicit UpdateOrganizationRequest(::google::protobuf::Arena* arena); - UpdateOrganizationRequest(::google::protobuf::Arena* arena, const UpdateOrganizationRequest& from); + explicit ListOrganizationsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kOrganizationIdFieldNumber = 1, - kNameFieldNumber = 2, - kPublicNamespaceFieldNumber = 3, - kRegionFieldNumber = 4, - kCidFieldNumber = 5, - }; - // string organization_id = 1 [json_name = "organizationId"]; - void clear_organization_id() ; - const std::string& organization_id() const; - template - void set_organization_id(Arg_&& arg, Args_... args); - std::string* mutable_organization_id(); - PROTOBUF_NODISCARD std::string* release_organization_id(); - void set_allocated_organization_id(std::string* value); - - private: - const std::string& _internal_organization_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id( - const std::string& value); - std::string* _internal_mutable_organization_id(); - - public: - // optional string name = 2 [json_name = "name"]; - bool has_name() const; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - - public: - // optional string public_namespace = 3 [json_name = "publicNamespace"]; - bool has_public_namespace() const; - void clear_public_namespace() ; - const std::string& public_namespace() const; - template - void set_public_namespace(Arg_&& arg, Args_... args); - std::string* mutable_public_namespace(); - PROTOBUF_NODISCARD std::string* release_public_namespace(); - void set_allocated_public_namespace(std::string* value); - - private: - const std::string& _internal_public_namespace() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_public_namespace( - const std::string& value); - std::string* _internal_mutable_public_namespace(); - - public: - // optional string region = 4 [json_name = "region"]; - bool has_region() const; - void clear_region() ; - const std::string& region() const; - template - void set_region(Arg_&& arg, Args_... args); - std::string* mutable_region(); - PROTOBUF_NODISCARD std::string* release_region(); - void set_allocated_region(std::string* value); - - private: - const std::string& _internal_region() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_region( - const std::string& value); - std::string* _internal_mutable_region(); - - public: - // optional string cid = 5 [json_name = "cid"]; - bool has_cid() const; - void clear_cid() ; - const std::string& cid() const; - template - void set_cid(Arg_&& arg, Args_... args); - std::string* mutable_cid(); - PROTOBUF_NODISCARD std::string* release_cid(); - void set_allocated_cid(std::string* value); - - private: - const std::string& _internal_cid() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_cid( - const std::string& value); - std::string* _internal_mutable_cid(); - - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.UpdateOrganizationRequest) + // @@protoc_insertion_point(class_scope:viam.app.v1.ListOrganizationsRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 5, 0, - 90, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr organization_id_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr public_namespace_; - ::google::protobuf::internal::ArenaStringPtr region_; - ::google::protobuf::internal::ArenaStringPtr cid_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class UpdateModuleResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.UpdateModuleResponse) */ { +class Organization final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.Organization) */ { public: - inline UpdateModuleResponse() : UpdateModuleResponse(nullptr) {} - ~UpdateModuleResponse() override; - template - explicit PROTOBUF_CONSTEXPR UpdateModuleResponse(::google::protobuf::internal::ConstantInitialized); + inline Organization() : Organization(nullptr) {} + ~Organization() override; + explicit PROTOBUF_CONSTEXPR Organization(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline UpdateModuleResponse(const UpdateModuleResponse& from) - : UpdateModuleResponse(nullptr, from) {} - UpdateModuleResponse(UpdateModuleResponse&& from) noexcept - : UpdateModuleResponse() { + Organization(const Organization& from); + Organization(Organization&& from) noexcept + : Organization() { *this = ::std::move(from); } - inline UpdateModuleResponse& operator=(const UpdateModuleResponse& from) { + inline Organization& operator=(const Organization& from) { CopyFrom(from); return *this; } - inline UpdateModuleResponse& operator=(UpdateModuleResponse&& from) noexcept { + inline Organization& operator=(Organization&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1943,178 +2365,234 @@ class UpdateModuleResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const UpdateModuleResponse& default_instance() { + static const Organization& default_instance() { return *internal_default_instance(); } - static inline const UpdateModuleResponse* internal_default_instance() { - return reinterpret_cast( - &_UpdateModuleResponse_default_instance_); + static inline const Organization* internal_default_instance() { + return reinterpret_cast( + &_Organization_default_instance_); } static constexpr int kIndexInFileMessages = - 163; + 5; - friend void swap(UpdateModuleResponse& a, UpdateModuleResponse& b) { + friend void swap(Organization& a, Organization& b) { a.Swap(&b); } - inline void Swap(UpdateModuleResponse* other) { + inline void Swap(Organization* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(UpdateModuleResponse* other) { + void UnsafeArenaSwap(Organization* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - UpdateModuleResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const UpdateModuleResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const UpdateModuleResponse& from) { - UpdateModuleResponse::MergeImpl(*this, from); + Organization* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Organization& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Organization& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(UpdateModuleResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(Organization* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.UpdateModuleResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.Organization"; } protected: - explicit UpdateModuleResponse(::google::protobuf::Arena* arena); - UpdateModuleResponse(::google::protobuf::Arena* arena, const UpdateModuleResponse& from); + explicit Organization(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kUrlFieldNumber = 1, + kIdFieldNumber = 1, + kNameFieldNumber = 2, + kPublicNamespaceFieldNumber = 4, + kDefaultRegionFieldNumber = 5, + kCidFieldNumber = 6, + kCreatedOnFieldNumber = 3, }; - // string url = 1 [json_name = "url"]; - void clear_url() ; - const std::string& url() const; - template - void set_url(Arg_&& arg, Args_... args); - std::string* mutable_url(); - PROTOBUF_NODISCARD std::string* release_url(); - void set_allocated_url(std::string* value); + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + // string name = 2 [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_url() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_url( - const std::string& value); - std::string* _internal_mutable_url(); + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + // string public_namespace = 4 [json_name = "publicNamespace"]; + void clear_public_namespace(); + const std::string& public_namespace() const; + template + void set_public_namespace(ArgT0&& arg0, ArgT... args); + std::string* mutable_public_namespace(); + PROTOBUF_NODISCARD std::string* release_public_namespace(); + void set_allocated_public_namespace(std::string* public_namespace); + private: + const std::string& _internal_public_namespace() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_public_namespace(const std::string& value); + std::string* _internal_mutable_public_namespace(); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.UpdateModuleResponse) + + // string default_region = 5 [json_name = "defaultRegion"]; + void clear_default_region(); + const std::string& default_region() const; + template + void set_default_region(ArgT0&& arg0, ArgT... args); + std::string* mutable_default_region(); + PROTOBUF_NODISCARD std::string* release_default_region(); + void set_allocated_default_region(std::string* default_region); + private: + const std::string& _internal_default_region() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_default_region(const std::string& value); + std::string* _internal_mutable_default_region(); + public: + + // optional string cid = 6 [json_name = "cid"]; + bool has_cid() const; + private: + bool _internal_has_cid() const; + public: + void clear_cid(); + const std::string& cid() const; + template + void set_cid(ArgT0&& arg0, ArgT... args); + std::string* mutable_cid(); + PROTOBUF_NODISCARD std::string* release_cid(); + void set_allocated_cid(std::string* cid); + private: + const std::string& _internal_cid() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_cid(const std::string& value); + std::string* _internal_mutable_cid(); + public: + + // .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn"]; + bool has_created_on() const; + private: + bool _internal_has_created_on() const; + public: + void clear_created_on(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& created_on() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_created_on(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_created_on(); + void set_allocated_created_on(::PROTOBUF_NAMESPACE_ID::Timestamp* created_on); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_created_on() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_created_on(); + public: + void unsafe_arena_set_allocated_created_on( + ::PROTOBUF_NAMESPACE_ID::Timestamp* created_on); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_created_on(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.Organization) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 44, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr url_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr public_namespace_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr default_region_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr cid_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* created_on_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class UpdateLocationRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.UpdateLocationRequest) */ { +class OrganizationMember final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.OrganizationMember) */ { public: - inline UpdateLocationRequest() : UpdateLocationRequest(nullptr) {} - ~UpdateLocationRequest() override; - template - explicit PROTOBUF_CONSTEXPR UpdateLocationRequest(::google::protobuf::internal::ConstantInitialized); + inline OrganizationMember() : OrganizationMember(nullptr) {} + ~OrganizationMember() override; + explicit PROTOBUF_CONSTEXPR OrganizationMember(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline UpdateLocationRequest(const UpdateLocationRequest& from) - : UpdateLocationRequest(nullptr, from) {} - UpdateLocationRequest(UpdateLocationRequest&& from) noexcept - : UpdateLocationRequest() { + OrganizationMember(const OrganizationMember& from); + OrganizationMember(OrganizationMember&& from) noexcept + : OrganizationMember() { *this = ::std::move(from); } - inline UpdateLocationRequest& operator=(const UpdateLocationRequest& from) { + inline OrganizationMember& operator=(const OrganizationMember& from) { CopyFrom(from); return *this; } - inline UpdateLocationRequest& operator=(UpdateLocationRequest&& from) noexcept { + inline OrganizationMember& operator=(OrganizationMember&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2124,235 +2602,212 @@ class UpdateLocationRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const UpdateLocationRequest& default_instance() { + static const OrganizationMember& default_instance() { return *internal_default_instance(); } - static inline const UpdateLocationRequest* internal_default_instance() { - return reinterpret_cast( - &_UpdateLocationRequest_default_instance_); + static inline const OrganizationMember* internal_default_instance() { + return reinterpret_cast( + &_OrganizationMember_default_instance_); } static constexpr int kIndexInFileMessages = - 54; + 6; - friend void swap(UpdateLocationRequest& a, UpdateLocationRequest& b) { + friend void swap(OrganizationMember& a, OrganizationMember& b) { a.Swap(&b); } - inline void Swap(UpdateLocationRequest* other) { + inline void Swap(OrganizationMember* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(UpdateLocationRequest* other) { + void UnsafeArenaSwap(OrganizationMember* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - UpdateLocationRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const UpdateLocationRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const UpdateLocationRequest& from) { - UpdateLocationRequest::MergeImpl(*this, from); + OrganizationMember* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const OrganizationMember& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const OrganizationMember& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(UpdateLocationRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(OrganizationMember* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.UpdateLocationRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.OrganizationMember"; } protected: - explicit UpdateLocationRequest(::google::protobuf::Arena* arena); - UpdateLocationRequest(::google::protobuf::Arena* arena, const UpdateLocationRequest& from); + explicit OrganizationMember(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kLocationIdFieldNumber = 1, - kNameFieldNumber = 2, - kParentLocationIdFieldNumber = 3, - kRegionFieldNumber = 4, + kEmailsFieldNumber = 2, + kUserIdFieldNumber = 1, + kDateAddedFieldNumber = 3, + kLastLoginFieldNumber = 4, }; - // string location_id = 1 [json_name = "locationId"]; - void clear_location_id() ; - const std::string& location_id() const; - template - void set_location_id(Arg_&& arg, Args_... args); - std::string* mutable_location_id(); - PROTOBUF_NODISCARD std::string* release_location_id(); - void set_allocated_location_id(std::string* value); - + // repeated string emails = 2 [json_name = "emails"]; + int emails_size() const; private: - const std::string& _internal_location_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_location_id( - const std::string& value); - std::string* _internal_mutable_location_id(); - + int _internal_emails_size() const; public: - // optional string name = 2 [json_name = "name"]; - bool has_name() const; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + void clear_emails(); + const std::string& emails(int index) const; + std::string* mutable_emails(int index); + void set_emails(int index, const std::string& value); + void set_emails(int index, std::string&& value); + void set_emails(int index, const char* value); + void set_emails(int index, const char* value, size_t size); + std::string* add_emails(); + void add_emails(const std::string& value); + void add_emails(std::string&& value); + void add_emails(const char* value); + void add_emails(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& emails() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_emails(); private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - + const std::string& _internal_emails(int index) const; + std::string* _internal_add_emails(); public: - // optional string parent_location_id = 3 [json_name = "parentLocationId"]; - bool has_parent_location_id() const; - void clear_parent_location_id() ; - const std::string& parent_location_id() const; - template - void set_parent_location_id(Arg_&& arg, Args_... args); - std::string* mutable_parent_location_id(); - PROTOBUF_NODISCARD std::string* release_parent_location_id(); - void set_allocated_parent_location_id(std::string* value); + // string user_id = 1 [json_name = "userId"]; + void clear_user_id(); + const std::string& user_id() const; + template + void set_user_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_user_id(); + PROTOBUF_NODISCARD std::string* release_user_id(); + void set_allocated_user_id(std::string* user_id); private: - const std::string& _internal_parent_location_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_parent_location_id( - const std::string& value); - std::string* _internal_mutable_parent_location_id(); - + const std::string& _internal_user_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_user_id(const std::string& value); + std::string* _internal_mutable_user_id(); public: - // optional string region = 4 [json_name = "region"]; - bool has_region() const; - void clear_region() ; - const std::string& region() const; - template - void set_region(Arg_&& arg, Args_... args); - std::string* mutable_region(); - PROTOBUF_NODISCARD std::string* release_region(); - void set_allocated_region(std::string* value); + // .google.protobuf.Timestamp date_added = 3 [json_name = "dateAdded"]; + bool has_date_added() const; private: - const std::string& _internal_region() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_region( - const std::string& value); - std::string* _internal_mutable_region(); + bool _internal_has_date_added() const; + public: + void clear_date_added(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& date_added() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_date_added(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_date_added(); + void set_allocated_date_added(::PROTOBUF_NAMESPACE_ID::Timestamp* date_added); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_date_added() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_date_added(); + public: + void unsafe_arena_set_allocated_date_added( + ::PROTOBUF_NAMESPACE_ID::Timestamp* date_added); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_date_added(); + // optional .google.protobuf.Timestamp last_login = 4 [json_name = "lastLogin"]; + bool has_last_login() const; + private: + bool _internal_has_last_login() const; public: - // @@protoc_insertion_point(class_scope:viam.app.v1.UpdateLocationRequest) + void clear_last_login(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& last_login() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_last_login(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_last_login(); + void set_allocated_last_login(::PROTOBUF_NAMESPACE_ID::Timestamp* last_login); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_last_login() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_last_login(); + public: + void unsafe_arena_set_allocated_last_login( + ::PROTOBUF_NAMESPACE_ID::Timestamp* last_login); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_last_login(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.OrganizationMember) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 0, - 81, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr location_id_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr parent_location_id_; - ::google::protobuf::internal::ArenaStringPtr region_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField emails_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr user_id_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* date_added_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* last_login_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class UpdateBillingServiceResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.UpdateBillingServiceResponse) */ { +class ListOrganizationsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ListOrganizationsResponse) */ { public: - inline UpdateBillingServiceResponse() : UpdateBillingServiceResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR UpdateBillingServiceResponse(::google::protobuf::internal::ConstantInitialized); + inline ListOrganizationsResponse() : ListOrganizationsResponse(nullptr) {} + ~ListOrganizationsResponse() override; + explicit PROTOBUF_CONSTEXPR ListOrganizationsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline UpdateBillingServiceResponse(const UpdateBillingServiceResponse& from) - : UpdateBillingServiceResponse(nullptr, from) {} - UpdateBillingServiceResponse(UpdateBillingServiceResponse&& from) noexcept - : UpdateBillingServiceResponse() { + ListOrganizationsResponse(const ListOrganizationsResponse& from); + ListOrganizationsResponse(ListOrganizationsResponse&& from) noexcept + : ListOrganizationsResponse() { *this = ::std::move(from); } - inline UpdateBillingServiceResponse& operator=(const UpdateBillingServiceResponse& from) { + inline ListOrganizationsResponse& operator=(const ListOrganizationsResponse& from) { CopyFrom(from); return *this; } - inline UpdateBillingServiceResponse& operator=(UpdateBillingServiceResponse&& from) noexcept { + inline ListOrganizationsResponse& operator=(ListOrganizationsResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2362,133 +2817,149 @@ class UpdateBillingServiceResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const UpdateBillingServiceResponse& default_instance() { + static const ListOrganizationsResponse& default_instance() { return *internal_default_instance(); } - static inline const UpdateBillingServiceResponse* internal_default_instance() { - return reinterpret_cast( - &_UpdateBillingServiceResponse_default_instance_); + static inline const ListOrganizationsResponse* internal_default_instance() { + return reinterpret_cast( + &_ListOrganizationsResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 35; + 7; - friend void swap(UpdateBillingServiceResponse& a, UpdateBillingServiceResponse& b) { + friend void swap(ListOrganizationsResponse& a, ListOrganizationsResponse& b) { a.Swap(&b); } - inline void Swap(UpdateBillingServiceResponse* other) { + inline void Swap(ListOrganizationsResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(UpdateBillingServiceResponse* other) { + void UnsafeArenaSwap(ListOrganizationsResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - UpdateBillingServiceResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const UpdateBillingServiceResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const UpdateBillingServiceResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + ListOrganizationsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ListOrganizationsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ListOrganizationsResponse& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.UpdateBillingServiceResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ListOrganizationsResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.ListOrganizationsResponse"; } protected: - explicit UpdateBillingServiceResponse(::google::protobuf::Arena* arena); - UpdateBillingServiceResponse(::google::protobuf::Arena* arena, const UpdateBillingServiceResponse& from); + explicit ListOrganizationsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.app.v1.UpdateBillingServiceResponse) + enum : int { + kOrganizationsFieldNumber = 1, + }; + // repeated .viam.app.v1.Organization organizations = 1 [json_name = "organizations"]; + int organizations_size() const; + private: + int _internal_organizations_size() const; + public: + void clear_organizations(); + ::viam::app::v1::Organization* mutable_organizations(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Organization >* + mutable_organizations(); + private: + const ::viam::app::v1::Organization& _internal_organizations(int index) const; + ::viam::app::v1::Organization* _internal_add_organizations(); + public: + const ::viam::app::v1::Organization& organizations(int index) const; + ::viam::app::v1::Organization* add_organizations(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Organization >& + organizations() const; + + // @@protoc_insertion_point(class_scope:viam.app.v1.ListOrganizationsResponse) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Organization > organizations_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class UnshareLocationResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.UnshareLocationResponse) */ { +class OrganizationInvite final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.OrganizationInvite) */ { public: - inline UnshareLocationResponse() : UnshareLocationResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR UnshareLocationResponse(::google::protobuf::internal::ConstantInitialized); + inline OrganizationInvite() : OrganizationInvite(nullptr) {} + ~OrganizationInvite() override; + explicit PROTOBUF_CONSTEXPR OrganizationInvite(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline UnshareLocationResponse(const UnshareLocationResponse& from) - : UnshareLocationResponse(nullptr, from) {} - UnshareLocationResponse(UnshareLocationResponse&& from) noexcept - : UnshareLocationResponse() { + OrganizationInvite(const OrganizationInvite& from); + OrganizationInvite(OrganizationInvite&& from) noexcept + : OrganizationInvite() { *this = ::std::move(from); } - inline UnshareLocationResponse& operator=(const UnshareLocationResponse& from) { + inline OrganizationInvite& operator=(const OrganizationInvite& from) { CopyFrom(from); return *this; } - inline UnshareLocationResponse& operator=(UnshareLocationResponse&& from) noexcept { + inline OrganizationInvite& operator=(OrganizationInvite&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2498,134 +2969,201 @@ class UnshareLocationResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const UnshareLocationResponse& default_instance() { + static const OrganizationInvite& default_instance() { return *internal_default_instance(); } - static inline const UnshareLocationResponse* internal_default_instance() { - return reinterpret_cast( - &_UnshareLocationResponse_default_instance_); + static inline const OrganizationInvite* internal_default_instance() { + return reinterpret_cast( + &_OrganizationInvite_default_instance_); } static constexpr int kIndexInFileMessages = - 64; + 8; - friend void swap(UnshareLocationResponse& a, UnshareLocationResponse& b) { + friend void swap(OrganizationInvite& a, OrganizationInvite& b) { a.Swap(&b); } - inline void Swap(UnshareLocationResponse* other) { + inline void Swap(OrganizationInvite* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(UnshareLocationResponse* other) { + void UnsafeArenaSwap(OrganizationInvite* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - UnshareLocationResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const UnshareLocationResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const UnshareLocationResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + OrganizationInvite* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const OrganizationInvite& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const OrganizationInvite& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.UnshareLocationResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(OrganizationInvite* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.OrganizationInvite"; } protected: - explicit UnshareLocationResponse(::google::protobuf::Arena* arena); - UnshareLocationResponse(::google::protobuf::Arena* arena, const UnshareLocationResponse& from); + explicit OrganizationInvite(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.app.v1.UnshareLocationResponse) - private: - class _Internal; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER + enum : int { + kAuthorizationsFieldNumber = 4, + kOrganizationIdFieldNumber = 1, + kEmailFieldNumber = 2, + kCreatedOnFieldNumber = 3, }; - friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- - -class UnshareLocationRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.UnshareLocationRequest) */ { - public: - inline UnshareLocationRequest() : UnshareLocationRequest(nullptr) {} - ~UnshareLocationRequest() override; - template - explicit PROTOBUF_CONSTEXPR UnshareLocationRequest(::google::protobuf::internal::ConstantInitialized); - - inline UnshareLocationRequest(const UnshareLocationRequest& from) - : UnshareLocationRequest(nullptr, from) {} - UnshareLocationRequest(UnshareLocationRequest&& from) noexcept - : UnshareLocationRequest() { - *this = ::std::move(from); + // repeated .viam.app.v1.Authorization authorizations = 4 [json_name = "authorizations"]; + int authorizations_size() const; + private: + int _internal_authorizations_size() const; + public: + void clear_authorizations(); + ::viam::app::v1::Authorization* mutable_authorizations(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Authorization >* + mutable_authorizations(); + private: + const ::viam::app::v1::Authorization& _internal_authorizations(int index) const; + ::viam::app::v1::Authorization* _internal_add_authorizations(); + public: + const ::viam::app::v1::Authorization& authorizations(int index) const; + ::viam::app::v1::Authorization* add_authorizations(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Authorization >& + authorizations() const; + + // string organization_id = 1 [json_name = "organizationId"]; + void clear_organization_id(); + const std::string& organization_id() const; + template + void set_organization_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_organization_id(); + PROTOBUF_NODISCARD std::string* release_organization_id(); + void set_allocated_organization_id(std::string* organization_id); + private: + const std::string& _internal_organization_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id(const std::string& value); + std::string* _internal_mutable_organization_id(); + public: + + // string email = 2 [json_name = "email"]; + void clear_email(); + const std::string& email() const; + template + void set_email(ArgT0&& arg0, ArgT... args); + std::string* mutable_email(); + PROTOBUF_NODISCARD std::string* release_email(); + void set_allocated_email(std::string* email); + private: + const std::string& _internal_email() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_email(const std::string& value); + std::string* _internal_mutable_email(); + public: + + // .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn"]; + bool has_created_on() const; + private: + bool _internal_has_created_on() const; + public: + void clear_created_on(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& created_on() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_created_on(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_created_on(); + void set_allocated_created_on(::PROTOBUF_NAMESPACE_ID::Timestamp* created_on); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_created_on() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_created_on(); + public: + void unsafe_arena_set_allocated_created_on( + ::PROTOBUF_NAMESPACE_ID::Timestamp* created_on); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_created_on(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.OrganizationInvite) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Authorization > authorizations_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr organization_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr email_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* created_on_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class CreateOrganizationRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.CreateOrganizationRequest) */ { + public: + inline CreateOrganizationRequest() : CreateOrganizationRequest(nullptr) {} + ~CreateOrganizationRequest() override; + explicit PROTOBUF_CONSTEXPR CreateOrganizationRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + CreateOrganizationRequest(const CreateOrganizationRequest& from); + CreateOrganizationRequest(CreateOrganizationRequest&& from) noexcept + : CreateOrganizationRequest() { + *this = ::std::move(from); } - inline UnshareLocationRequest& operator=(const UnshareLocationRequest& from) { + inline CreateOrganizationRequest& operator=(const CreateOrganizationRequest& from) { CopyFrom(from); return *this; } - inline UnshareLocationRequest& operator=(UnshareLocationRequest&& from) noexcept { + inline CreateOrganizationRequest& operator=(CreateOrganizationRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2635,195 +3173,145 @@ class UnshareLocationRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const UnshareLocationRequest& default_instance() { + static const CreateOrganizationRequest& default_instance() { return *internal_default_instance(); } - static inline const UnshareLocationRequest* internal_default_instance() { - return reinterpret_cast( - &_UnshareLocationRequest_default_instance_); + static inline const CreateOrganizationRequest* internal_default_instance() { + return reinterpret_cast( + &_CreateOrganizationRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 63; + 9; - friend void swap(UnshareLocationRequest& a, UnshareLocationRequest& b) { + friend void swap(CreateOrganizationRequest& a, CreateOrganizationRequest& b) { a.Swap(&b); } - inline void Swap(UnshareLocationRequest* other) { + inline void Swap(CreateOrganizationRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(UnshareLocationRequest* other) { + void UnsafeArenaSwap(CreateOrganizationRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - UnshareLocationRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const UnshareLocationRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const UnshareLocationRequest& from) { - UnshareLocationRequest::MergeImpl(*this, from); + CreateOrganizationRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CreateOrganizationRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CreateOrganizationRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(UnshareLocationRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(CreateOrganizationRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.UnshareLocationRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.CreateOrganizationRequest"; } protected: - explicit UnshareLocationRequest(::google::protobuf::Arena* arena); - UnshareLocationRequest(::google::protobuf::Arena* arena, const UnshareLocationRequest& from); + explicit CreateOrganizationRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kLocationIdFieldNumber = 1, - kOrganizationIdFieldNumber = 2, + kNameFieldNumber = 1, }; - // string location_id = 1 [json_name = "locationId"]; - void clear_location_id() ; - const std::string& location_id() const; - template - void set_location_id(Arg_&& arg, Args_... args); - std::string* mutable_location_id(); - PROTOBUF_NODISCARD std::string* release_location_id(); - void set_allocated_location_id(std::string* value); - + // 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_location_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_location_id( - const std::string& value); - std::string* _internal_mutable_location_id(); - + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); public: - // string organization_id = 2 [json_name = "organizationId"]; - void clear_organization_id() ; - const std::string& organization_id() const; - template - void set_organization_id(Arg_&& arg, Args_... args); - std::string* mutable_organization_id(); - PROTOBUF_NODISCARD std::string* release_organization_id(); - void set_allocated_organization_id(std::string* value); - - private: - const std::string& _internal_organization_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id( - const std::string& value); - std::string* _internal_mutable_organization_id(); - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.UnshareLocationRequest) + // @@protoc_insertion_point(class_scope:viam.app.v1.CreateOrganizationRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 69, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr location_id_; - ::google::protobuf::internal::ArenaStringPtr organization_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class TransferRegistryItemResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.TransferRegistryItemResponse) */ { +class CreateOrganizationResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.CreateOrganizationResponse) */ { public: - inline TransferRegistryItemResponse() : TransferRegistryItemResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR TransferRegistryItemResponse(::google::protobuf::internal::ConstantInitialized); + inline CreateOrganizationResponse() : CreateOrganizationResponse(nullptr) {} + ~CreateOrganizationResponse() override; + explicit PROTOBUF_CONSTEXPR CreateOrganizationResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline TransferRegistryItemResponse(const TransferRegistryItemResponse& from) - : TransferRegistryItemResponse(nullptr, from) {} - TransferRegistryItemResponse(TransferRegistryItemResponse&& from) noexcept - : TransferRegistryItemResponse() { + CreateOrganizationResponse(const CreateOrganizationResponse& from); + CreateOrganizationResponse(CreateOrganizationResponse&& from) noexcept + : CreateOrganizationResponse() { *this = ::std::move(from); } - inline TransferRegistryItemResponse& operator=(const TransferRegistryItemResponse& from) { + inline CreateOrganizationResponse& operator=(const CreateOrganizationResponse& from) { CopyFrom(from); return *this; } - inline TransferRegistryItemResponse& operator=(TransferRegistryItemResponse&& from) noexcept { + inline CreateOrganizationResponse& operator=(CreateOrganizationResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2833,134 +3321,149 @@ class TransferRegistryItemResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const TransferRegistryItemResponse& default_instance() { + static const CreateOrganizationResponse& default_instance() { return *internal_default_instance(); } - static inline const TransferRegistryItemResponse* internal_default_instance() { - return reinterpret_cast( - &_TransferRegistryItemResponse_default_instance_); + static inline const CreateOrganizationResponse* internal_default_instance() { + return reinterpret_cast( + &_CreateOrganizationResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 159; + 10; - friend void swap(TransferRegistryItemResponse& a, TransferRegistryItemResponse& b) { + friend void swap(CreateOrganizationResponse& a, CreateOrganizationResponse& b) { a.Swap(&b); } - inline void Swap(TransferRegistryItemResponse* other) { + inline void Swap(CreateOrganizationResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(TransferRegistryItemResponse* other) { + void UnsafeArenaSwap(CreateOrganizationResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - TransferRegistryItemResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const TransferRegistryItemResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const TransferRegistryItemResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + CreateOrganizationResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CreateOrganizationResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CreateOrganizationResponse& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.TransferRegistryItemResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CreateOrganizationResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.CreateOrganizationResponse"; } protected: - explicit TransferRegistryItemResponse(::google::protobuf::Arena* arena); - TransferRegistryItemResponse(::google::protobuf::Arena* arena, const TransferRegistryItemResponse& from); + explicit CreateOrganizationResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.app.v1.TransferRegistryItemResponse) + enum : int { + kOrganizationFieldNumber = 1, + }; + // .viam.app.v1.Organization organization = 1 [json_name = "organization"]; + bool has_organization() const; + private: + bool _internal_has_organization() const; + public: + void clear_organization(); + const ::viam::app::v1::Organization& organization() const; + PROTOBUF_NODISCARD ::viam::app::v1::Organization* release_organization(); + ::viam::app::v1::Organization* mutable_organization(); + void set_allocated_organization(::viam::app::v1::Organization* organization); + private: + const ::viam::app::v1::Organization& _internal_organization() const; + ::viam::app::v1::Organization* _internal_mutable_organization(); + public: + void unsafe_arena_set_allocated_organization( + ::viam::app::v1::Organization* organization); + ::viam::app::v1::Organization* unsafe_arena_release_organization(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.CreateOrganizationResponse) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::viam::app::v1::Organization* organization_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class TransferRegistryItemRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.TransferRegistryItemRequest) */ { +class GetOrganizationRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetOrganizationRequest) */ { public: - inline TransferRegistryItemRequest() : TransferRegistryItemRequest(nullptr) {} - ~TransferRegistryItemRequest() override; - template - explicit PROTOBUF_CONSTEXPR TransferRegistryItemRequest(::google::protobuf::internal::ConstantInitialized); + inline GetOrganizationRequest() : GetOrganizationRequest(nullptr) {} + ~GetOrganizationRequest() override; + explicit PROTOBUF_CONSTEXPR GetOrganizationRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline TransferRegistryItemRequest(const TransferRegistryItemRequest& from) - : TransferRegistryItemRequest(nullptr, from) {} - TransferRegistryItemRequest(TransferRegistryItemRequest&& from) noexcept - : TransferRegistryItemRequest() { + GetOrganizationRequest(const GetOrganizationRequest& from); + GetOrganizationRequest(GetOrganizationRequest&& from) noexcept + : GetOrganizationRequest() { *this = ::std::move(from); } - inline TransferRegistryItemRequest& operator=(const TransferRegistryItemRequest& from) { + inline GetOrganizationRequest& operator=(const GetOrganizationRequest& from) { CopyFrom(from); return *this; } - inline TransferRegistryItemRequest& operator=(TransferRegistryItemRequest&& from) noexcept { + inline GetOrganizationRequest& operator=(GetOrganizationRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2970,196 +3473,145 @@ class TransferRegistryItemRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const TransferRegistryItemRequest& default_instance() { + static const GetOrganizationRequest& default_instance() { return *internal_default_instance(); } - static inline const TransferRegistryItemRequest* internal_default_instance() { - return reinterpret_cast( - &_TransferRegistryItemRequest_default_instance_); + static inline const GetOrganizationRequest* internal_default_instance() { + return reinterpret_cast( + &_GetOrganizationRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 158; + 11; - friend void swap(TransferRegistryItemRequest& a, TransferRegistryItemRequest& b) { + friend void swap(GetOrganizationRequest& a, GetOrganizationRequest& b) { a.Swap(&b); } - inline void Swap(TransferRegistryItemRequest* other) { + inline void Swap(GetOrganizationRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(TransferRegistryItemRequest* other) { + void UnsafeArenaSwap(GetOrganizationRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - TransferRegistryItemRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const TransferRegistryItemRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const TransferRegistryItemRequest& from) { - TransferRegistryItemRequest::MergeImpl(*this, from); + GetOrganizationRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetOrganizationRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetOrganizationRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(TransferRegistryItemRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetOrganizationRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.TransferRegistryItemRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.GetOrganizationRequest"; } protected: - explicit TransferRegistryItemRequest(::google::protobuf::Arena* arena); - TransferRegistryItemRequest(::google::protobuf::Arena* arena, const TransferRegistryItemRequest& from); + explicit GetOrganizationRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kItemIdFieldNumber = 1, - kNewPublicNamespaceFieldNumber = 2, + kOrganizationIdFieldNumber = 1, }; - // string item_id = 1 [json_name = "itemId"]; - void clear_item_id() ; - const std::string& item_id() const; - template - void set_item_id(Arg_&& arg, Args_... args); - std::string* mutable_item_id(); - PROTOBUF_NODISCARD std::string* release_item_id(); - void set_allocated_item_id(std::string* value); - + // string organization_id = 1 [json_name = "organizationId"]; + void clear_organization_id(); + const std::string& organization_id() const; + template + void set_organization_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_organization_id(); + PROTOBUF_NODISCARD std::string* release_organization_id(); + void set_allocated_organization_id(std::string* organization_id); private: - const std::string& _internal_item_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_item_id( - const std::string& value); - std::string* _internal_mutable_item_id(); - + const std::string& _internal_organization_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id(const std::string& value); + std::string* _internal_mutable_organization_id(); public: - // string new_public_namespace = 2 [json_name = "newPublicNamespace"]; - void clear_new_public_namespace() ; - const std::string& new_public_namespace() const; - template - void set_new_public_namespace(Arg_&& arg, Args_... args); - std::string* mutable_new_public_namespace(); - PROTOBUF_NODISCARD std::string* release_new_public_namespace(); - void set_allocated_new_public_namespace(std::string* value); - - private: - const std::string& _internal_new_public_namespace() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_new_public_namespace( - const std::string& value); - std::string* _internal_mutable_new_public_namespace(); - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.TransferRegistryItemRequest) + // @@protoc_insertion_point(class_scope:viam.app.v1.GetOrganizationRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 75, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr item_id_; - ::google::protobuf::internal::ArenaStringPtr new_public_namespace_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr organization_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class TailRobotPartLogsRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.TailRobotPartLogsRequest) */ { +class GetOrganizationResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetOrganizationResponse) */ { public: - inline TailRobotPartLogsRequest() : TailRobotPartLogsRequest(nullptr) {} - ~TailRobotPartLogsRequest() override; - template - explicit PROTOBUF_CONSTEXPR TailRobotPartLogsRequest(::google::protobuf::internal::ConstantInitialized); + inline GetOrganizationResponse() : GetOrganizationResponse(nullptr) {} + ~GetOrganizationResponse() override; + explicit PROTOBUF_CONSTEXPR GetOrganizationResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline TailRobotPartLogsRequest(const TailRobotPartLogsRequest& from) - : TailRobotPartLogsRequest(nullptr, from) {} - TailRobotPartLogsRequest(TailRobotPartLogsRequest&& from) noexcept - : TailRobotPartLogsRequest() { + GetOrganizationResponse(const GetOrganizationResponse& from); + GetOrganizationResponse(GetOrganizationResponse&& from) noexcept + : GetOrganizationResponse() { *this = ::std::move(from); } - inline TailRobotPartLogsRequest& operator=(const TailRobotPartLogsRequest& from) { + inline GetOrganizationResponse& operator=(const GetOrganizationResponse& from) { CopyFrom(from); return *this; } - inline TailRobotPartLogsRequest& operator=(TailRobotPartLogsRequest&& from) noexcept { + inline GetOrganizationResponse& operator=(GetOrganizationResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3169,210 +3621,149 @@ class TailRobotPartLogsRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const TailRobotPartLogsRequest& default_instance() { + static const GetOrganizationResponse& default_instance() { return *internal_default_instance(); } - static inline const TailRobotPartLogsRequest* internal_default_instance() { - return reinterpret_cast( - &_TailRobotPartLogsRequest_default_instance_); + static inline const GetOrganizationResponse* internal_default_instance() { + return reinterpret_cast( + &_GetOrganizationResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 83; + 12; - friend void swap(TailRobotPartLogsRequest& a, TailRobotPartLogsRequest& b) { + friend void swap(GetOrganizationResponse& a, GetOrganizationResponse& b) { a.Swap(&b); } - inline void Swap(TailRobotPartLogsRequest* other) { + inline void Swap(GetOrganizationResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(TailRobotPartLogsRequest* other) { + void UnsafeArenaSwap(GetOrganizationResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - TailRobotPartLogsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const TailRobotPartLogsRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const TailRobotPartLogsRequest& from) { - TailRobotPartLogsRequest::MergeImpl(*this, from); + GetOrganizationResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetOrganizationResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetOrganizationResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(TailRobotPartLogsRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetOrganizationResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.TailRobotPartLogsRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.GetOrganizationResponse"; } protected: - explicit TailRobotPartLogsRequest(::google::protobuf::Arena* arena); - TailRobotPartLogsRequest(::google::protobuf::Arena* arena, const TailRobotPartLogsRequest& from); + explicit GetOrganizationResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kIdFieldNumber = 1, - kFilterFieldNumber = 3, - kErrorsOnlyFieldNumber = 2, + kOrganizationFieldNumber = 1, }; - // string id = 1 [json_name = "id"]; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - + // .viam.app.v1.Organization organization = 1 [json_name = "organization"]; + bool has_organization() const; private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); - + bool _internal_has_organization() const; public: - // optional string filter = 3 [json_name = "filter"]; - bool has_filter() const; - void clear_filter() ; - const std::string& filter() const; - template - void set_filter(Arg_&& arg, Args_... args); - std::string* mutable_filter(); - PROTOBUF_NODISCARD std::string* release_filter(); - void set_allocated_filter(std::string* value); - + void clear_organization(); + const ::viam::app::v1::Organization& organization() const; + PROTOBUF_NODISCARD ::viam::app::v1::Organization* release_organization(); + ::viam::app::v1::Organization* mutable_organization(); + void set_allocated_organization(::viam::app::v1::Organization* organization); private: - const std::string& _internal_filter() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_filter( - const std::string& value); - std::string* _internal_mutable_filter(); - + const ::viam::app::v1::Organization& _internal_organization() const; + ::viam::app::v1::Organization* _internal_mutable_organization(); public: - // bool errors_only = 2 [json_name = "errorsOnly"]; - void clear_errors_only() ; - bool errors_only() const; - void set_errors_only(bool value); - - private: - bool _internal_errors_only() const; - void _internal_set_errors_only(bool value); + void unsafe_arena_set_allocated_organization( + ::viam::app::v1::Organization* organization); + ::viam::app::v1::Organization* unsafe_arena_release_organization(); - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.TailRobotPartLogsRequest) + // @@protoc_insertion_point(class_scope:viam.app.v1.GetOrganizationResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 0, - 53, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr id_; - ::google::protobuf::internal::ArenaStringPtr filter_; - bool errors_only_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::viam::app::v1::Organization* organization_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class StorageConfig final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.StorageConfig) */ { +class GetOrganizationNamespaceAvailabilityRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetOrganizationNamespaceAvailabilityRequest) */ { public: - inline StorageConfig() : StorageConfig(nullptr) {} - ~StorageConfig() override; - template - explicit PROTOBUF_CONSTEXPR StorageConfig(::google::protobuf::internal::ConstantInitialized); + inline GetOrganizationNamespaceAvailabilityRequest() : GetOrganizationNamespaceAvailabilityRequest(nullptr) {} + ~GetOrganizationNamespaceAvailabilityRequest() override; + explicit PROTOBUF_CONSTEXPR GetOrganizationNamespaceAvailabilityRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline StorageConfig(const StorageConfig& from) - : StorageConfig(nullptr, from) {} - StorageConfig(StorageConfig&& from) noexcept - : StorageConfig() { + GetOrganizationNamespaceAvailabilityRequest(const GetOrganizationNamespaceAvailabilityRequest& from); + GetOrganizationNamespaceAvailabilityRequest(GetOrganizationNamespaceAvailabilityRequest&& from) noexcept + : GetOrganizationNamespaceAvailabilityRequest() { *this = ::std::move(from); } - inline StorageConfig& operator=(const StorageConfig& from) { + inline GetOrganizationNamespaceAvailabilityRequest& operator=(const GetOrganizationNamespaceAvailabilityRequest& from) { CopyFrom(from); return *this; } - inline StorageConfig& operator=(StorageConfig&& from) noexcept { + inline GetOrganizationNamespaceAvailabilityRequest& operator=(GetOrganizationNamespaceAvailabilityRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3382,177 +3773,145 @@ class StorageConfig final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const StorageConfig& default_instance() { + static const GetOrganizationNamespaceAvailabilityRequest& default_instance() { return *internal_default_instance(); } - static inline const StorageConfig* internal_default_instance() { - return reinterpret_cast( - &_StorageConfig_default_instance_); + static inline const GetOrganizationNamespaceAvailabilityRequest* internal_default_instance() { + return reinterpret_cast( + &_GetOrganizationNamespaceAvailabilityRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 47; + 13; - friend void swap(StorageConfig& a, StorageConfig& b) { + friend void swap(GetOrganizationNamespaceAvailabilityRequest& a, GetOrganizationNamespaceAvailabilityRequest& b) { a.Swap(&b); } - inline void Swap(StorageConfig* other) { + inline void Swap(GetOrganizationNamespaceAvailabilityRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(StorageConfig* other) { + void UnsafeArenaSwap(GetOrganizationNamespaceAvailabilityRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - StorageConfig* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const StorageConfig& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const StorageConfig& from) { - StorageConfig::MergeImpl(*this, from); + GetOrganizationNamespaceAvailabilityRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetOrganizationNamespaceAvailabilityRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetOrganizationNamespaceAvailabilityRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(StorageConfig* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetOrganizationNamespaceAvailabilityRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.StorageConfig"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.GetOrganizationNamespaceAvailabilityRequest"; } protected: - explicit StorageConfig(::google::protobuf::Arena* arena); - StorageConfig(::google::protobuf::Arena* arena, const StorageConfig& from); + explicit GetOrganizationNamespaceAvailabilityRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kRegionFieldNumber = 1, + kPublicNamespaceFieldNumber = 1, }; - // string region = 1 [json_name = "region"]; - void clear_region() ; - const std::string& region() const; - template - void set_region(Arg_&& arg, Args_... args); - std::string* mutable_region(); - PROTOBUF_NODISCARD std::string* release_region(); - void set_allocated_region(std::string* value); - + // string public_namespace = 1 [json_name = "publicNamespace"]; + void clear_public_namespace(); + const std::string& public_namespace() const; + template + void set_public_namespace(ArgT0&& arg0, ArgT... args); + std::string* mutable_public_namespace(); + PROTOBUF_NODISCARD std::string* release_public_namespace(); + void set_allocated_public_namespace(std::string* public_namespace); private: - const std::string& _internal_region() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_region( - const std::string& value); - std::string* _internal_mutable_region(); - + const std::string& _internal_public_namespace() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_public_namespace(const std::string& value); + std::string* _internal_mutable_public_namespace(); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.StorageConfig) + + // @@protoc_insertion_point(class_scope:viam.app.v1.GetOrganizationNamespaceAvailabilityRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 40, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr region_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr public_namespace_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ShareLocationResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.ShareLocationResponse) */ { +class GetOrganizationNamespaceAvailabilityResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetOrganizationNamespaceAvailabilityResponse) */ { public: - inline ShareLocationResponse() : ShareLocationResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR ShareLocationResponse(::google::protobuf::internal::ConstantInitialized); + inline GetOrganizationNamespaceAvailabilityResponse() : GetOrganizationNamespaceAvailabilityResponse(nullptr) {} + ~GetOrganizationNamespaceAvailabilityResponse() override; + explicit PROTOBUF_CONSTEXPR GetOrganizationNamespaceAvailabilityResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ShareLocationResponse(const ShareLocationResponse& from) - : ShareLocationResponse(nullptr, from) {} - ShareLocationResponse(ShareLocationResponse&& from) noexcept - : ShareLocationResponse() { + GetOrganizationNamespaceAvailabilityResponse(const GetOrganizationNamespaceAvailabilityResponse& from); + GetOrganizationNamespaceAvailabilityResponse(GetOrganizationNamespaceAvailabilityResponse&& from) noexcept + : GetOrganizationNamespaceAvailabilityResponse() { *this = ::std::move(from); } - inline ShareLocationResponse& operator=(const ShareLocationResponse& from) { + inline GetOrganizationNamespaceAvailabilityResponse& operator=(const GetOrganizationNamespaceAvailabilityResponse& from) { CopyFrom(from); return *this; } - inline ShareLocationResponse& operator=(ShareLocationResponse&& from) noexcept { + inline GetOrganizationNamespaceAvailabilityResponse& operator=(GetOrganizationNamespaceAvailabilityResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3562,134 +3921,140 @@ class ShareLocationResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ShareLocationResponse& default_instance() { + static const GetOrganizationNamespaceAvailabilityResponse& default_instance() { return *internal_default_instance(); } - static inline const ShareLocationResponse* internal_default_instance() { - return reinterpret_cast( - &_ShareLocationResponse_default_instance_); + static inline const GetOrganizationNamespaceAvailabilityResponse* internal_default_instance() { + return reinterpret_cast( + &_GetOrganizationNamespaceAvailabilityResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 62; + 14; - friend void swap(ShareLocationResponse& a, ShareLocationResponse& b) { + friend void swap(GetOrganizationNamespaceAvailabilityResponse& a, GetOrganizationNamespaceAvailabilityResponse& b) { a.Swap(&b); } - inline void Swap(ShareLocationResponse* other) { + inline void Swap(GetOrganizationNamespaceAvailabilityResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ShareLocationResponse* other) { + void UnsafeArenaSwap(GetOrganizationNamespaceAvailabilityResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ShareLocationResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const ShareLocationResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const ShareLocationResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + GetOrganizationNamespaceAvailabilityResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetOrganizationNamespaceAvailabilityResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetOrganizationNamespaceAvailabilityResponse& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.ShareLocationResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetOrganizationNamespaceAvailabilityResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.GetOrganizationNamespaceAvailabilityResponse"; } protected: - explicit ShareLocationResponse(::google::protobuf::Arena* arena); - ShareLocationResponse(::google::protobuf::Arena* arena, const ShareLocationResponse& from); + explicit GetOrganizationNamespaceAvailabilityResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.app.v1.ShareLocationResponse) + enum : int { + kAvailableFieldNumber = 1, + }; + // bool available = 1 [json_name = "available"]; + void clear_available(); + bool available() const; + void set_available(bool value); + private: + bool _internal_available() const; + void _internal_set_available(bool value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.GetOrganizationNamespaceAvailabilityResponse) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + bool available_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ShareLocationRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ShareLocationRequest) */ { +class UpdateOrganizationRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.UpdateOrganizationRequest) */ { public: - inline ShareLocationRequest() : ShareLocationRequest(nullptr) {} - ~ShareLocationRequest() override; - template - explicit PROTOBUF_CONSTEXPR ShareLocationRequest(::google::protobuf::internal::ConstantInitialized); + inline UpdateOrganizationRequest() : UpdateOrganizationRequest(nullptr) {} + ~UpdateOrganizationRequest() override; + explicit PROTOBUF_CONSTEXPR UpdateOrganizationRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ShareLocationRequest(const ShareLocationRequest& from) - : ShareLocationRequest(nullptr, from) {} - ShareLocationRequest(ShareLocationRequest&& from) noexcept - : ShareLocationRequest() { + UpdateOrganizationRequest(const UpdateOrganizationRequest& from); + UpdateOrganizationRequest(UpdateOrganizationRequest&& from) noexcept + : UpdateOrganizationRequest() { *this = ::std::move(from); } - inline ShareLocationRequest& operator=(const ShareLocationRequest& from) { + inline UpdateOrganizationRequest& operator=(const UpdateOrganizationRequest& from) { CopyFrom(from); return *this; } - inline ShareLocationRequest& operator=(ShareLocationRequest&& from) noexcept { + inline UpdateOrganizationRequest& operator=(UpdateOrganizationRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3699,196 +4064,226 @@ class ShareLocationRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ShareLocationRequest& default_instance() { + static const UpdateOrganizationRequest& default_instance() { return *internal_default_instance(); } - static inline const ShareLocationRequest* internal_default_instance() { - return reinterpret_cast( - &_ShareLocationRequest_default_instance_); + static inline const UpdateOrganizationRequest* internal_default_instance() { + return reinterpret_cast( + &_UpdateOrganizationRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 61; + 15; - friend void swap(ShareLocationRequest& a, ShareLocationRequest& b) { + friend void swap(UpdateOrganizationRequest& a, UpdateOrganizationRequest& b) { a.Swap(&b); } - inline void Swap(ShareLocationRequest* other) { + inline void Swap(UpdateOrganizationRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ShareLocationRequest* other) { + void UnsafeArenaSwap(UpdateOrganizationRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ShareLocationRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ShareLocationRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ShareLocationRequest& from) { - ShareLocationRequest::MergeImpl(*this, from); + UpdateOrganizationRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const UpdateOrganizationRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const UpdateOrganizationRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ShareLocationRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(UpdateOrganizationRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.ShareLocationRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.UpdateOrganizationRequest"; } protected: - explicit ShareLocationRequest(::google::protobuf::Arena* arena); - ShareLocationRequest(::google::protobuf::Arena* arena, const ShareLocationRequest& from); + explicit UpdateOrganizationRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kLocationIdFieldNumber = 1, - kOrganizationIdFieldNumber = 2, + kOrganizationIdFieldNumber = 1, + kNameFieldNumber = 2, + kPublicNamespaceFieldNumber = 3, + kRegionFieldNumber = 4, + kCidFieldNumber = 5, }; - // string location_id = 1 [json_name = "locationId"]; - void clear_location_id() ; - const std::string& location_id() const; - template - void set_location_id(Arg_&& arg, Args_... args); - std::string* mutable_location_id(); - PROTOBUF_NODISCARD std::string* release_location_id(); - void set_allocated_location_id(std::string* value); - - private: - const std::string& _internal_location_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_location_id( - const std::string& value); - std::string* _internal_mutable_location_id(); - - public: - // string organization_id = 2 [json_name = "organizationId"]; - void clear_organization_id() ; + // string organization_id = 1 [json_name = "organizationId"]; + void clear_organization_id(); const std::string& organization_id() const; - template - void set_organization_id(Arg_&& arg, Args_... args); + template + void set_organization_id(ArgT0&& arg0, ArgT... args); std::string* mutable_organization_id(); PROTOBUF_NODISCARD std::string* release_organization_id(); - void set_allocated_organization_id(std::string* value); - + void set_allocated_organization_id(std::string* organization_id); private: const std::string& _internal_organization_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id(const std::string& value); std::string* _internal_mutable_organization_id(); + public: + // optional string name = 2 [json_name = "name"]; + bool has_name() const; + private: + bool _internal_has_name() const; public: - // @@protoc_insertion_point(class_scope:viam.app.v1.ShareLocationRequest) + 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: + + // optional string public_namespace = 3 [json_name = "publicNamespace"]; + bool has_public_namespace() const; + private: + bool _internal_has_public_namespace() const; + public: + void clear_public_namespace(); + const std::string& public_namespace() const; + template + void set_public_namespace(ArgT0&& arg0, ArgT... args); + std::string* mutable_public_namespace(); + PROTOBUF_NODISCARD std::string* release_public_namespace(); + void set_allocated_public_namespace(std::string* public_namespace); + private: + const std::string& _internal_public_namespace() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_public_namespace(const std::string& value); + std::string* _internal_mutable_public_namespace(); + public: + + // optional string region = 4 [json_name = "region"]; + bool has_region() const; + private: + bool _internal_has_region() const; + public: + void clear_region(); + const std::string& region() const; + template + void set_region(ArgT0&& arg0, ArgT... args); + std::string* mutable_region(); + PROTOBUF_NODISCARD std::string* release_region(); + void set_allocated_region(std::string* region); + private: + const std::string& _internal_region() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_region(const std::string& value); + std::string* _internal_mutable_region(); + public: + + // optional string cid = 5 [json_name = "cid"]; + bool has_cid() const; + private: + bool _internal_has_cid() const; + public: + void clear_cid(); + const std::string& cid() const; + template + void set_cid(ArgT0&& arg0, ArgT... args); + std::string* mutable_cid(); + PROTOBUF_NODISCARD std::string* release_cid(); + void set_allocated_cid(std::string* cid); + private: + const std::string& _internal_cid() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_cid(const std::string& value); + std::string* _internal_mutable_cid(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.UpdateOrganizationRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 67, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr location_id_; - ::google::protobuf::internal::ArenaStringPtr organization_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr organization_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr public_namespace_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr region_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr cid_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class RoverRentalRobot final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.RoverRentalRobot) */ { +class UpdateOrganizationResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.UpdateOrganizationResponse) */ { public: - inline RoverRentalRobot() : RoverRentalRobot(nullptr) {} - ~RoverRentalRobot() override; - template - explicit PROTOBUF_CONSTEXPR RoverRentalRobot(::google::protobuf::internal::ConstantInitialized); + inline UpdateOrganizationResponse() : UpdateOrganizationResponse(nullptr) {} + ~UpdateOrganizationResponse() override; + explicit PROTOBUF_CONSTEXPR UpdateOrganizationResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline RoverRentalRobot(const RoverRentalRobot& from) - : RoverRentalRobot(nullptr, from) {} - RoverRentalRobot(RoverRentalRobot&& from) noexcept - : RoverRentalRobot() { + UpdateOrganizationResponse(const UpdateOrganizationResponse& from); + UpdateOrganizationResponse(UpdateOrganizationResponse&& from) noexcept + : UpdateOrganizationResponse() { *this = ::std::move(from); } - inline RoverRentalRobot& operator=(const RoverRentalRobot& from) { + inline UpdateOrganizationResponse& operator=(const UpdateOrganizationResponse& from) { CopyFrom(from); return *this; } - inline RoverRentalRobot& operator=(RoverRentalRobot&& from) noexcept { + inline UpdateOrganizationResponse& operator=(UpdateOrganizationResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3898,232 +4293,149 @@ class RoverRentalRobot final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const RoverRentalRobot& default_instance() { + static const UpdateOrganizationResponse& default_instance() { return *internal_default_instance(); } - static inline const RoverRentalRobot* internal_default_instance() { - return reinterpret_cast( - &_RoverRentalRobot_default_instance_); + static inline const UpdateOrganizationResponse* internal_default_instance() { + return reinterpret_cast( + &_UpdateOrganizationResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 74; + 16; - friend void swap(RoverRentalRobot& a, RoverRentalRobot& b) { + friend void swap(UpdateOrganizationResponse& a, UpdateOrganizationResponse& b) { a.Swap(&b); } - inline void Swap(RoverRentalRobot* other) { + inline void Swap(UpdateOrganizationResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RoverRentalRobot* other) { + void UnsafeArenaSwap(UpdateOrganizationResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - RoverRentalRobot* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const RoverRentalRobot& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const RoverRentalRobot& from) { - RoverRentalRobot::MergeImpl(*this, from); + UpdateOrganizationResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const UpdateOrganizationResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const UpdateOrganizationResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(RoverRentalRobot* other); + void SetCachedSize(int size) const final; + void InternalSwap(UpdateOrganizationResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.RoverRentalRobot"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.UpdateOrganizationResponse"; } protected: - explicit RoverRentalRobot(::google::protobuf::Arena* arena); - RoverRentalRobot(::google::protobuf::Arena* arena, const RoverRentalRobot& from); + explicit UpdateOrganizationResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kRobotIdFieldNumber = 1, - kLocationIdFieldNumber = 2, - kRobotNameFieldNumber = 3, - kRobotMainPartIdFieldNumber = 4, + kOrganizationFieldNumber = 1, }; - // string robot_id = 1 [json_name = "robotId"]; - void clear_robot_id() ; - const std::string& robot_id() const; - template - void set_robot_id(Arg_&& arg, Args_... args); - std::string* mutable_robot_id(); - PROTOBUF_NODISCARD std::string* release_robot_id(); - void set_allocated_robot_id(std::string* value); - - private: - const std::string& _internal_robot_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_robot_id( - const std::string& value); - std::string* _internal_mutable_robot_id(); - - public: - // string location_id = 2 [json_name = "locationId"]; - void clear_location_id() ; - const std::string& location_id() const; - template - void set_location_id(Arg_&& arg, Args_... args); - std::string* mutable_location_id(); - PROTOBUF_NODISCARD std::string* release_location_id(); - void set_allocated_location_id(std::string* value); - + // .viam.app.v1.Organization organization = 1 [json_name = "organization"]; + bool has_organization() const; private: - const std::string& _internal_location_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_location_id( - const std::string& value); - std::string* _internal_mutable_location_id(); - + bool _internal_has_organization() const; public: - // string robot_name = 3 [json_name = "robotName"]; - void clear_robot_name() ; - const std::string& robot_name() const; - template - void set_robot_name(Arg_&& arg, Args_... args); - std::string* mutable_robot_name(); - PROTOBUF_NODISCARD std::string* release_robot_name(); - void set_allocated_robot_name(std::string* value); - + void clear_organization(); + const ::viam::app::v1::Organization& organization() const; + PROTOBUF_NODISCARD ::viam::app::v1::Organization* release_organization(); + ::viam::app::v1::Organization* mutable_organization(); + void set_allocated_organization(::viam::app::v1::Organization* organization); private: - const std::string& _internal_robot_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_robot_name( - const std::string& value); - std::string* _internal_mutable_robot_name(); - + const ::viam::app::v1::Organization& _internal_organization() const; + ::viam::app::v1::Organization* _internal_mutable_organization(); public: - // string robot_main_part_id = 4 [json_name = "robotMainPartId"]; - void clear_robot_main_part_id() ; - const std::string& robot_main_part_id() const; - template - void set_robot_main_part_id(Arg_&& arg, Args_... args); - std::string* mutable_robot_main_part_id(); - PROTOBUF_NODISCARD std::string* release_robot_main_part_id(); - void set_allocated_robot_main_part_id(std::string* value); - - private: - const std::string& _internal_robot_main_part_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_robot_main_part_id( - const std::string& value); - std::string* _internal_mutable_robot_main_part_id(); + void unsafe_arena_set_allocated_organization( + ::viam::app::v1::Organization* organization); + ::viam::app::v1::Organization* unsafe_arena_release_organization(); - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.RoverRentalRobot) + // @@protoc_insertion_point(class_scope:viam.app.v1.UpdateOrganizationResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 0, - 84, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr robot_id_; - ::google::protobuf::internal::ArenaStringPtr location_id_; - ::google::protobuf::internal::ArenaStringPtr robot_name_; - ::google::protobuf::internal::ArenaStringPtr robot_main_part_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::viam::app::v1::Organization* organization_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class RotateKeyResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.RotateKeyResponse) */ { +class DeleteOrganizationRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.DeleteOrganizationRequest) */ { public: - inline RotateKeyResponse() : RotateKeyResponse(nullptr) {} - ~RotateKeyResponse() override; - template - explicit PROTOBUF_CONSTEXPR RotateKeyResponse(::google::protobuf::internal::ConstantInitialized); + inline DeleteOrganizationRequest() : DeleteOrganizationRequest(nullptr) {} + ~DeleteOrganizationRequest() override; + explicit PROTOBUF_CONSTEXPR DeleteOrganizationRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline RotateKeyResponse(const RotateKeyResponse& from) - : RotateKeyResponse(nullptr, from) {} - RotateKeyResponse(RotateKeyResponse&& from) noexcept - : RotateKeyResponse() { + DeleteOrganizationRequest(const DeleteOrganizationRequest& from); + DeleteOrganizationRequest(DeleteOrganizationRequest&& from) noexcept + : DeleteOrganizationRequest() { *this = ::std::move(from); } - inline RotateKeyResponse& operator=(const RotateKeyResponse& from) { + inline DeleteOrganizationRequest& operator=(const DeleteOrganizationRequest& from) { CopyFrom(from); return *this; } - inline RotateKeyResponse& operator=(RotateKeyResponse&& from) noexcept { + inline DeleteOrganizationRequest& operator=(DeleteOrganizationRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -4133,196 +4445,144 @@ class RotateKeyResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const RotateKeyResponse& default_instance() { + static const DeleteOrganizationRequest& default_instance() { return *internal_default_instance(); } - static inline const RotateKeyResponse* internal_default_instance() { - return reinterpret_cast( - &_RotateKeyResponse_default_instance_); + static inline const DeleteOrganizationRequest* internal_default_instance() { + return reinterpret_cast( + &_DeleteOrganizationRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 191; + 17; - friend void swap(RotateKeyResponse& a, RotateKeyResponse& b) { + friend void swap(DeleteOrganizationRequest& a, DeleteOrganizationRequest& b) { a.Swap(&b); } - inline void Swap(RotateKeyResponse* other) { + inline void Swap(DeleteOrganizationRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RotateKeyResponse* other) { + void UnsafeArenaSwap(DeleteOrganizationRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - RotateKeyResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const RotateKeyResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const RotateKeyResponse& from) { - RotateKeyResponse::MergeImpl(*this, from); + DeleteOrganizationRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DeleteOrganizationRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const DeleteOrganizationRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(RotateKeyResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(DeleteOrganizationRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.RotateKeyResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.DeleteOrganizationRequest"; } protected: - explicit RotateKeyResponse(::google::protobuf::Arena* arena); - RotateKeyResponse(::google::protobuf::Arena* arena, const RotateKeyResponse& from); + explicit DeleteOrganizationRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kIdFieldNumber = 1, - kKeyFieldNumber = 2, + kOrganizationIdFieldNumber = 1, }; - // string id = 1 [json_name = "id"]; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - + // string organization_id = 1 [json_name = "organizationId"]; + void clear_organization_id(); + const std::string& organization_id() const; + template + void set_organization_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_organization_id(); + PROTOBUF_NODISCARD std::string* release_organization_id(); + void set_allocated_organization_id(std::string* organization_id); private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); - + const std::string& _internal_organization_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id(const std::string& value); + std::string* _internal_mutable_organization_id(); public: - // string key = 2 [json_name = "key"]; - void clear_key() ; - const std::string& key() const; - template - void set_key(Arg_&& arg, Args_... args); - std::string* mutable_key(); - PROTOBUF_NODISCARD std::string* release_key(); - void set_allocated_key(std::string* value); - - private: - const std::string& _internal_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_key( - const std::string& value); - std::string* _internal_mutable_key(); - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.RotateKeyResponse) + // @@protoc_insertion_point(class_scope:viam.app.v1.DeleteOrganizationRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 43, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr id_; - ::google::protobuf::internal::ArenaStringPtr key_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr organization_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class RotateKeyRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.RotateKeyRequest) */ { +class DeleteOrganizationResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.DeleteOrganizationResponse) */ { public: - inline RotateKeyRequest() : RotateKeyRequest(nullptr) {} - ~RotateKeyRequest() override; - template - explicit PROTOBUF_CONSTEXPR RotateKeyRequest(::google::protobuf::internal::ConstantInitialized); + inline DeleteOrganizationResponse() : DeleteOrganizationResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR DeleteOrganizationResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline RotateKeyRequest(const RotateKeyRequest& from) - : RotateKeyRequest(nullptr, from) {} - RotateKeyRequest(RotateKeyRequest&& from) noexcept - : RotateKeyRequest() { + DeleteOrganizationResponse(const DeleteOrganizationResponse& from); + DeleteOrganizationResponse(DeleteOrganizationResponse&& from) noexcept + : DeleteOrganizationResponse() { *this = ::std::move(from); } - inline RotateKeyRequest& operator=(const RotateKeyRequest& from) { + inline DeleteOrganizationResponse& operator=(const DeleteOrganizationResponse& from) { CopyFrom(from); return *this; } - inline RotateKeyRequest& operator=(RotateKeyRequest&& from) noexcept { + inline DeleteOrganizationResponse& operator=(DeleteOrganizationResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -4332,178 +4592,114 @@ class RotateKeyRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const RotateKeyRequest& default_instance() { + static const DeleteOrganizationResponse& default_instance() { return *internal_default_instance(); } - static inline const RotateKeyRequest* internal_default_instance() { - return reinterpret_cast( - &_RotateKeyRequest_default_instance_); + static inline const DeleteOrganizationResponse* internal_default_instance() { + return reinterpret_cast( + &_DeleteOrganizationResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 190; + 18; - friend void swap(RotateKeyRequest& a, RotateKeyRequest& b) { + friend void swap(DeleteOrganizationResponse& a, DeleteOrganizationResponse& b) { a.Swap(&b); } - inline void Swap(RotateKeyRequest* other) { + inline void Swap(DeleteOrganizationResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RotateKeyRequest* other) { + void UnsafeArenaSwap(DeleteOrganizationResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - RotateKeyRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + DeleteOrganizationResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const RotateKeyRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const RotateKeyRequest& from) { - RotateKeyRequest::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const DeleteOrganizationResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const DeleteOrganizationResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(RotateKeyRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.RotateKeyRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.DeleteOrganizationResponse"; } protected: - explicit RotateKeyRequest(::google::protobuf::Arena* arena); - RotateKeyRequest(::google::protobuf::Arena* arena, const RotateKeyRequest& from); + explicit DeleteOrganizationResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kIdFieldNumber = 1, - }; - // string id = 1 [json_name = "id"]; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - - private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); - - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.RotateKeyRequest) + // @@protoc_insertion_point(class_scope:viam.app.v1.DeleteOrganizationResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 39, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ResendOrganizationInviteRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ResendOrganizationInviteRequest) */ { +class ListOrganizationMembersRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ListOrganizationMembersRequest) */ { public: - inline ResendOrganizationInviteRequest() : ResendOrganizationInviteRequest(nullptr) {} - ~ResendOrganizationInviteRequest() override; - template - explicit PROTOBUF_CONSTEXPR ResendOrganizationInviteRequest(::google::protobuf::internal::ConstantInitialized); + inline ListOrganizationMembersRequest() : ListOrganizationMembersRequest(nullptr) {} + ~ListOrganizationMembersRequest() override; + explicit PROTOBUF_CONSTEXPR ListOrganizationMembersRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ResendOrganizationInviteRequest(const ResendOrganizationInviteRequest& from) - : ResendOrganizationInviteRequest(nullptr, from) {} - ResendOrganizationInviteRequest(ResendOrganizationInviteRequest&& from) noexcept - : ResendOrganizationInviteRequest() { + ListOrganizationMembersRequest(const ListOrganizationMembersRequest& from); + ListOrganizationMembersRequest(ListOrganizationMembersRequest&& from) noexcept + : ListOrganizationMembersRequest() { *this = ::std::move(from); } - inline ResendOrganizationInviteRequest& operator=(const ResendOrganizationInviteRequest& from) { + inline ListOrganizationMembersRequest& operator=(const ListOrganizationMembersRequest& from) { CopyFrom(from); return *this; } - inline ResendOrganizationInviteRequest& operator=(ResendOrganizationInviteRequest&& from) noexcept { + inline ListOrganizationMembersRequest& operator=(ListOrganizationMembersRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -4513,99 +4709,88 @@ class ResendOrganizationInviteRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ResendOrganizationInviteRequest& default_instance() { + static const ListOrganizationMembersRequest& default_instance() { return *internal_default_instance(); } - static inline const ResendOrganizationInviteRequest* internal_default_instance() { - return reinterpret_cast( - &_ResendOrganizationInviteRequest_default_instance_); + static inline const ListOrganizationMembersRequest* internal_default_instance() { + return reinterpret_cast( + &_ListOrganizationMembersRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 27; + 19; - friend void swap(ResendOrganizationInviteRequest& a, ResendOrganizationInviteRequest& b) { + friend void swap(ListOrganizationMembersRequest& a, ListOrganizationMembersRequest& b) { a.Swap(&b); } - inline void Swap(ResendOrganizationInviteRequest* other) { + inline void Swap(ListOrganizationMembersRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ResendOrganizationInviteRequest* other) { + void UnsafeArenaSwap(ListOrganizationMembersRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ResendOrganizationInviteRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ResendOrganizationInviteRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ResendOrganizationInviteRequest& from) { - ResendOrganizationInviteRequest::MergeImpl(*this, from); + ListOrganizationMembersRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ListOrganizationMembersRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ListOrganizationMembersRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ResendOrganizationInviteRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(ListOrganizationMembersRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.ResendOrganizationInviteRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.ListOrganizationMembersRequest"; } protected: - explicit ResendOrganizationInviteRequest(::google::protobuf::Arena* arena); - ResendOrganizationInviteRequest(::google::protobuf::Arena* arena, const ResendOrganizationInviteRequest& from); + explicit ListOrganizationMembersRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -4613,96 +4798,56 @@ class ResendOrganizationInviteRequest final : enum : int { kOrganizationIdFieldNumber = 1, - kEmailFieldNumber = 2, }; // string organization_id = 1 [json_name = "organizationId"]; - void clear_organization_id() ; + void clear_organization_id(); const std::string& organization_id() const; - template - void set_organization_id(Arg_&& arg, Args_... args); + template + void set_organization_id(ArgT0&& arg0, ArgT... args); std::string* mutable_organization_id(); PROTOBUF_NODISCARD std::string* release_organization_id(); - void set_allocated_organization_id(std::string* value); - + void set_allocated_organization_id(std::string* organization_id); private: const std::string& _internal_organization_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id(const std::string& value); std::string* _internal_mutable_organization_id(); - public: - // string email = 2 [json_name = "email"]; - void clear_email() ; - const std::string& email() const; - template - void set_email(Arg_&& arg, Args_... args); - std::string* mutable_email(); - PROTOBUF_NODISCARD std::string* release_email(); - void set_allocated_email(std::string* value); - - private: - const std::string& _internal_email() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_email( - const std::string& value); - std::string* _internal_mutable_email(); - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.ResendOrganizationInviteRequest) + // @@protoc_insertion_point(class_scope:viam.app.v1.ListOrganizationMembersRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 72, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr organization_id_; - ::google::protobuf::internal::ArenaStringPtr email_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr organization_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class RenameKeyResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.RenameKeyResponse) */ { +class ListOrganizationMembersResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ListOrganizationMembersResponse) */ { public: - inline RenameKeyResponse() : RenameKeyResponse(nullptr) {} - ~RenameKeyResponse() override; - template - explicit PROTOBUF_CONSTEXPR RenameKeyResponse(::google::protobuf::internal::ConstantInitialized); + inline ListOrganizationMembersResponse() : ListOrganizationMembersResponse(nullptr) {} + ~ListOrganizationMembersResponse() override; + explicit PROTOBUF_CONSTEXPR ListOrganizationMembersResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline RenameKeyResponse(const RenameKeyResponse& from) - : RenameKeyResponse(nullptr, from) {} - RenameKeyResponse(RenameKeyResponse&& from) noexcept - : RenameKeyResponse() { + ListOrganizationMembersResponse(const ListOrganizationMembersResponse& from); + ListOrganizationMembersResponse(ListOrganizationMembersResponse&& from) noexcept + : ListOrganizationMembersResponse() { *this = ::std::move(from); } - inline RenameKeyResponse& operator=(const RenameKeyResponse& from) { + inline ListOrganizationMembersResponse& operator=(const ListOrganizationMembersResponse& from) { CopyFrom(from); return *this; } - inline RenameKeyResponse& operator=(RenameKeyResponse&& from) noexcept { + inline ListOrganizationMembersResponse& operator=(ListOrganizationMembersResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -4712,196 +4857,185 @@ class RenameKeyResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const RenameKeyResponse& default_instance() { + static const ListOrganizationMembersResponse& default_instance() { return *internal_default_instance(); } - static inline const RenameKeyResponse* internal_default_instance() { - return reinterpret_cast( - &_RenameKeyResponse_default_instance_); + static inline const ListOrganizationMembersResponse* internal_default_instance() { + return reinterpret_cast( + &_ListOrganizationMembersResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 185; + 20; - friend void swap(RenameKeyResponse& a, RenameKeyResponse& b) { + friend void swap(ListOrganizationMembersResponse& a, ListOrganizationMembersResponse& b) { a.Swap(&b); } - inline void Swap(RenameKeyResponse* other) { + inline void Swap(ListOrganizationMembersResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RenameKeyResponse* other) { + void UnsafeArenaSwap(ListOrganizationMembersResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - RenameKeyResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const RenameKeyResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const RenameKeyResponse& from) { - RenameKeyResponse::MergeImpl(*this, from); + ListOrganizationMembersResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ListOrganizationMembersResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ListOrganizationMembersResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(RenameKeyResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(ListOrganizationMembersResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.RenameKeyResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.ListOrganizationMembersResponse"; } protected: - explicit RenameKeyResponse(::google::protobuf::Arena* arena); - RenameKeyResponse(::google::protobuf::Arena* arena, const RenameKeyResponse& from); + explicit ListOrganizationMembersResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kIdFieldNumber = 1, - kNameFieldNumber = 2, + kMembersFieldNumber = 2, + kInvitesFieldNumber = 3, + kOrganizationIdFieldNumber = 1, }; - // string id = 1 [json_name = "id"]; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - + // repeated .viam.app.v1.OrganizationMember members = 2 [json_name = "members"]; + int members_size() const; private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); - + int _internal_members_size() const; public: - // string name = 2 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); + void clear_members(); + ::viam::app::v1::OrganizationMember* mutable_members(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::OrganizationMember >* + mutable_members(); + private: + const ::viam::app::v1::OrganizationMember& _internal_members(int index) const; + ::viam::app::v1::OrganizationMember* _internal_add_members(); + public: + const ::viam::app::v1::OrganizationMember& members(int index) const; + ::viam::app::v1::OrganizationMember* add_members(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::OrganizationMember >& + members() const; + // repeated .viam.app.v1.OrganizationInvite invites = 3 [json_name = "invites"]; + int invites_size() const; private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); + int _internal_invites_size() const; + public: + void clear_invites(); + ::viam::app::v1::OrganizationInvite* mutable_invites(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::OrganizationInvite >* + mutable_invites(); + private: + const ::viam::app::v1::OrganizationInvite& _internal_invites(int index) const; + ::viam::app::v1::OrganizationInvite* _internal_add_invites(); + public: + const ::viam::app::v1::OrganizationInvite& invites(int index) const; + ::viam::app::v1::OrganizationInvite* add_invites(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::OrganizationInvite >& + invites() const; + // string organization_id = 1 [json_name = "organizationId"]; + void clear_organization_id(); + const std::string& organization_id() const; + template + void set_organization_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_organization_id(); + PROTOBUF_NODISCARD std::string* release_organization_id(); + void set_allocated_organization_id(std::string* organization_id); + private: + const std::string& _internal_organization_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id(const std::string& value); + std::string* _internal_mutable_organization_id(); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.RenameKeyResponse) + + // @@protoc_insertion_point(class_scope:viam.app.v1.ListOrganizationMembersResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 44, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr id_; - ::google::protobuf::internal::ArenaStringPtr name_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::OrganizationMember > members_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::OrganizationInvite > invites_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr organization_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class RenameKeyRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.RenameKeyRequest) */ { +class CreateOrganizationInviteRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.CreateOrganizationInviteRequest) */ { public: - inline RenameKeyRequest() : RenameKeyRequest(nullptr) {} - ~RenameKeyRequest() override; - template - explicit PROTOBUF_CONSTEXPR RenameKeyRequest(::google::protobuf::internal::ConstantInitialized); + inline CreateOrganizationInviteRequest() : CreateOrganizationInviteRequest(nullptr) {} + ~CreateOrganizationInviteRequest() override; + explicit PROTOBUF_CONSTEXPR CreateOrganizationInviteRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline RenameKeyRequest(const RenameKeyRequest& from) - : RenameKeyRequest(nullptr, from) {} - RenameKeyRequest(RenameKeyRequest&& from) noexcept - : RenameKeyRequest() { + CreateOrganizationInviteRequest(const CreateOrganizationInviteRequest& from); + CreateOrganizationInviteRequest(CreateOrganizationInviteRequest&& from) noexcept + : CreateOrganizationInviteRequest() { *this = ::std::move(from); } - inline RenameKeyRequest& operator=(const RenameKeyRequest& from) { + inline CreateOrganizationInviteRequest& operator=(const CreateOrganizationInviteRequest& from) { CopyFrom(from); return *this; } - inline RenameKeyRequest& operator=(RenameKeyRequest&& from) noexcept { + inline CreateOrganizationInviteRequest& operator=(CreateOrganizationInviteRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -4911,195 +5045,197 @@ class RenameKeyRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const RenameKeyRequest& default_instance() { + static const CreateOrganizationInviteRequest& default_instance() { return *internal_default_instance(); } - static inline const RenameKeyRequest* internal_default_instance() { - return reinterpret_cast( - &_RenameKeyRequest_default_instance_); + static inline const CreateOrganizationInviteRequest* internal_default_instance() { + return reinterpret_cast( + &_CreateOrganizationInviteRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 184; + 21; - friend void swap(RenameKeyRequest& a, RenameKeyRequest& b) { + friend void swap(CreateOrganizationInviteRequest& a, CreateOrganizationInviteRequest& b) { a.Swap(&b); } - inline void Swap(RenameKeyRequest* other) { + inline void Swap(CreateOrganizationInviteRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RenameKeyRequest* other) { + void UnsafeArenaSwap(CreateOrganizationInviteRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - RenameKeyRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const RenameKeyRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const RenameKeyRequest& from) { - RenameKeyRequest::MergeImpl(*this, from); + CreateOrganizationInviteRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CreateOrganizationInviteRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CreateOrganizationInviteRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(RenameKeyRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(CreateOrganizationInviteRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.RenameKeyRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.CreateOrganizationInviteRequest"; } protected: - explicit RenameKeyRequest(::google::protobuf::Arena* arena); - RenameKeyRequest(::google::protobuf::Arena* arena, const RenameKeyRequest& from); + explicit CreateOrganizationInviteRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kIdFieldNumber = 1, - kNameFieldNumber = 2, + kAuthorizationsFieldNumber = 3, + kOrganizationIdFieldNumber = 1, + kEmailFieldNumber = 2, + kSendEmailInviteFieldNumber = 4, }; - // string id = 1 [json_name = "id"]; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - + // repeated .viam.app.v1.Authorization authorizations = 3 [json_name = "authorizations"]; + int authorizations_size() const; private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); + int _internal_authorizations_size() const; + public: + void clear_authorizations(); + ::viam::app::v1::Authorization* mutable_authorizations(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Authorization >* + mutable_authorizations(); + private: + const ::viam::app::v1::Authorization& _internal_authorizations(int index) const; + ::viam::app::v1::Authorization* _internal_add_authorizations(); + public: + const ::viam::app::v1::Authorization& authorizations(int index) const; + ::viam::app::v1::Authorization* add_authorizations(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Authorization >& + authorizations() const; + // string organization_id = 1 [json_name = "organizationId"]; + void clear_organization_id(); + const std::string& organization_id() const; + template + void set_organization_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_organization_id(); + PROTOBUF_NODISCARD std::string* release_organization_id(); + void set_allocated_organization_id(std::string* organization_id); + private: + const std::string& _internal_organization_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id(const std::string& value); + std::string* _internal_mutable_organization_id(); public: - // string name = 2 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); + // string email = 2 [json_name = "email"]; + void clear_email(); + const std::string& email() const; + template + void set_email(ArgT0&& arg0, ArgT... args); + std::string* mutable_email(); + PROTOBUF_NODISCARD std::string* release_email(); + void set_allocated_email(std::string* email); private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); + const std::string& _internal_email() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_email(const std::string& value); + std::string* _internal_mutable_email(); + public: + // optional bool send_email_invite = 4 [json_name = "sendEmailInvite"]; + bool has_send_email_invite() const; + private: + bool _internal_has_send_email_invite() const; public: - // @@protoc_insertion_point(class_scope:viam.app.v1.RenameKeyRequest) + void clear_send_email_invite(); + bool send_email_invite() const; + void set_send_email_invite(bool value); + private: + bool _internal_send_email_invite() const; + void _internal_set_send_email_invite(bool value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.CreateOrganizationInviteRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 43, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr id_; - ::google::protobuf::internal::ArenaStringPtr name_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Authorization > authorizations_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr organization_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr email_; + bool send_email_invite_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class RemoveRoleResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.RemoveRoleResponse) */ { +class CreateOrganizationInviteResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.CreateOrganizationInviteResponse) */ { public: - inline RemoveRoleResponse() : RemoveRoleResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR RemoveRoleResponse(::google::protobuf::internal::ConstantInitialized); + inline CreateOrganizationInviteResponse() : CreateOrganizationInviteResponse(nullptr) {} + ~CreateOrganizationInviteResponse() override; + explicit PROTOBUF_CONSTEXPR CreateOrganizationInviteResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline RemoveRoleResponse(const RemoveRoleResponse& from) - : RemoveRoleResponse(nullptr, from) {} - RemoveRoleResponse(RemoveRoleResponse&& from) noexcept - : RemoveRoleResponse() { + CreateOrganizationInviteResponse(const CreateOrganizationInviteResponse& from); + CreateOrganizationInviteResponse(CreateOrganizationInviteResponse&& from) noexcept + : CreateOrganizationInviteResponse() { *this = ::std::move(from); } - inline RemoveRoleResponse& operator=(const RemoveRoleResponse& from) { + inline CreateOrganizationInviteResponse& operator=(const CreateOrganizationInviteResponse& from) { CopyFrom(from); return *this; } - inline RemoveRoleResponse& operator=(RemoveRoleResponse&& from) noexcept { + inline CreateOrganizationInviteResponse& operator=(CreateOrganizationInviteResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -5109,133 +5245,149 @@ class RemoveRoleResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const RemoveRoleResponse& default_instance() { + static const CreateOrganizationInviteResponse& default_instance() { return *internal_default_instance(); } - static inline const RemoveRoleResponse* internal_default_instance() { - return reinterpret_cast( - &_RemoveRoleResponse_default_instance_); + static inline const CreateOrganizationInviteResponse* internal_default_instance() { + return reinterpret_cast( + &_CreateOrganizationInviteResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 134; + 22; - friend void swap(RemoveRoleResponse& a, RemoveRoleResponse& b) { + friend void swap(CreateOrganizationInviteResponse& a, CreateOrganizationInviteResponse& b) { a.Swap(&b); } - inline void Swap(RemoveRoleResponse* other) { + inline void Swap(CreateOrganizationInviteResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RemoveRoleResponse* other) { + void UnsafeArenaSwap(CreateOrganizationInviteResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - RemoveRoleResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const RemoveRoleResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const RemoveRoleResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + CreateOrganizationInviteResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CreateOrganizationInviteResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CreateOrganizationInviteResponse& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.RemoveRoleResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CreateOrganizationInviteResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.CreateOrganizationInviteResponse"; } protected: - explicit RemoveRoleResponse(::google::protobuf::Arena* arena); - RemoveRoleResponse(::google::protobuf::Arena* arena, const RemoveRoleResponse& from); + explicit CreateOrganizationInviteResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.app.v1.RemoveRoleResponse) + enum : int { + kInviteFieldNumber = 1, + }; + // .viam.app.v1.OrganizationInvite invite = 1 [json_name = "invite"]; + bool has_invite() const; + private: + bool _internal_has_invite() const; + public: + void clear_invite(); + const ::viam::app::v1::OrganizationInvite& invite() const; + PROTOBUF_NODISCARD ::viam::app::v1::OrganizationInvite* release_invite(); + ::viam::app::v1::OrganizationInvite* mutable_invite(); + void set_allocated_invite(::viam::app::v1::OrganizationInvite* invite); + private: + const ::viam::app::v1::OrganizationInvite& _internal_invite() const; + ::viam::app::v1::OrganizationInvite* _internal_mutable_invite(); + public: + void unsafe_arena_set_allocated_invite( + ::viam::app::v1::OrganizationInvite* invite); + ::viam::app::v1::OrganizationInvite* unsafe_arena_release_invite(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.CreateOrganizationInviteResponse) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::viam::app::v1::OrganizationInvite* invite_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class OrganizationSetSupportEmailResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.OrganizationSetSupportEmailResponse) */ { +class UpdateOrganizationInviteAuthorizationsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest) */ { public: - inline OrganizationSetSupportEmailResponse() : OrganizationSetSupportEmailResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR OrganizationSetSupportEmailResponse(::google::protobuf::internal::ConstantInitialized); + inline UpdateOrganizationInviteAuthorizationsRequest() : UpdateOrganizationInviteAuthorizationsRequest(nullptr) {} + ~UpdateOrganizationInviteAuthorizationsRequest() override; + explicit PROTOBUF_CONSTEXPR UpdateOrganizationInviteAuthorizationsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline OrganizationSetSupportEmailResponse(const OrganizationSetSupportEmailResponse& from) - : OrganizationSetSupportEmailResponse(nullptr, from) {} - OrganizationSetSupportEmailResponse(OrganizationSetSupportEmailResponse&& from) noexcept - : OrganizationSetSupportEmailResponse() { + UpdateOrganizationInviteAuthorizationsRequest(const UpdateOrganizationInviteAuthorizationsRequest& from); + UpdateOrganizationInviteAuthorizationsRequest(UpdateOrganizationInviteAuthorizationsRequest&& from) noexcept + : UpdateOrganizationInviteAuthorizationsRequest() { *this = ::std::move(from); } - inline OrganizationSetSupportEmailResponse& operator=(const OrganizationSetSupportEmailResponse& from) { + inline UpdateOrganizationInviteAuthorizationsRequest& operator=(const UpdateOrganizationInviteAuthorizationsRequest& from) { CopyFrom(from); return *this; } - inline OrganizationSetSupportEmailResponse& operator=(OrganizationSetSupportEmailResponse&& from) noexcept { + inline UpdateOrganizationInviteAuthorizationsRequest& operator=(UpdateOrganizationInviteAuthorizationsRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -5245,134 +5397,201 @@ class OrganizationSetSupportEmailResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const OrganizationSetSupportEmailResponse& default_instance() { + static const UpdateOrganizationInviteAuthorizationsRequest& default_instance() { return *internal_default_instance(); } - static inline const OrganizationSetSupportEmailResponse* internal_default_instance() { - return reinterpret_cast( - &_OrganizationSetSupportEmailResponse_default_instance_); + static inline const UpdateOrganizationInviteAuthorizationsRequest* internal_default_instance() { + return reinterpret_cast( + &_UpdateOrganizationInviteAuthorizationsRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 41; + 23; - friend void swap(OrganizationSetSupportEmailResponse& a, OrganizationSetSupportEmailResponse& b) { + friend void swap(UpdateOrganizationInviteAuthorizationsRequest& a, UpdateOrganizationInviteAuthorizationsRequest& b) { a.Swap(&b); } - inline void Swap(OrganizationSetSupportEmailResponse* other) { + inline void Swap(UpdateOrganizationInviteAuthorizationsRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(OrganizationSetSupportEmailResponse* other) { + void UnsafeArenaSwap(UpdateOrganizationInviteAuthorizationsRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - OrganizationSetSupportEmailResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const OrganizationSetSupportEmailResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const OrganizationSetSupportEmailResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + UpdateOrganizationInviteAuthorizationsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const UpdateOrganizationInviteAuthorizationsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const UpdateOrganizationInviteAuthorizationsRequest& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.OrganizationSetSupportEmailResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(UpdateOrganizationInviteAuthorizationsRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest"; } protected: - explicit OrganizationSetSupportEmailResponse(::google::protobuf::Arena* arena); - OrganizationSetSupportEmailResponse(::google::protobuf::Arena* arena, const OrganizationSetSupportEmailResponse& from); + explicit UpdateOrganizationInviteAuthorizationsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.app.v1.OrganizationSetSupportEmailResponse) + enum : int { + kAddAuthorizationsFieldNumber = 3, + kRemoveAuthorizationsFieldNumber = 4, + kOrganizationIdFieldNumber = 1, + kEmailFieldNumber = 2, + }; + // repeated .viam.app.v1.Authorization add_authorizations = 3 [json_name = "addAuthorizations"]; + int add_authorizations_size() const; + private: + int _internal_add_authorizations_size() const; + public: + void clear_add_authorizations(); + ::viam::app::v1::Authorization* mutable_add_authorizations(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Authorization >* + mutable_add_authorizations(); + private: + const ::viam::app::v1::Authorization& _internal_add_authorizations(int index) const; + ::viam::app::v1::Authorization* _internal_add_add_authorizations(); + public: + const ::viam::app::v1::Authorization& add_authorizations(int index) const; + ::viam::app::v1::Authorization* add_add_authorizations(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Authorization >& + add_authorizations() const; + + // repeated .viam.app.v1.Authorization remove_authorizations = 4 [json_name = "removeAuthorizations"]; + int remove_authorizations_size() const; + private: + int _internal_remove_authorizations_size() const; + public: + void clear_remove_authorizations(); + ::viam::app::v1::Authorization* mutable_remove_authorizations(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Authorization >* + mutable_remove_authorizations(); + private: + const ::viam::app::v1::Authorization& _internal_remove_authorizations(int index) const; + ::viam::app::v1::Authorization* _internal_add_remove_authorizations(); + public: + const ::viam::app::v1::Authorization& remove_authorizations(int index) const; + ::viam::app::v1::Authorization* add_remove_authorizations(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Authorization >& + remove_authorizations() const; + + // string organization_id = 1 [json_name = "organizationId"]; + void clear_organization_id(); + const std::string& organization_id() const; + template + void set_organization_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_organization_id(); + PROTOBUF_NODISCARD std::string* release_organization_id(); + void set_allocated_organization_id(std::string* organization_id); + private: + const std::string& _internal_organization_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id(const std::string& value); + std::string* _internal_mutable_organization_id(); + public: + + // string email = 2 [json_name = "email"]; + void clear_email(); + const std::string& email() const; + template + void set_email(ArgT0&& arg0, ArgT... args); + std::string* mutable_email(); + PROTOBUF_NODISCARD std::string* release_email(); + void set_allocated_email(std::string* email); + private: + const std::string& _internal_email() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_email(const std::string& value); + std::string* _internal_mutable_email(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Authorization > add_authorizations_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Authorization > remove_authorizations_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr organization_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr email_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class OrganizationSetSupportEmailRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.OrganizationSetSupportEmailRequest) */ { +class UpdateOrganizationInviteAuthorizationsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.UpdateOrganizationInviteAuthorizationsResponse) */ { public: - inline OrganizationSetSupportEmailRequest() : OrganizationSetSupportEmailRequest(nullptr) {} - ~OrganizationSetSupportEmailRequest() override; - template - explicit PROTOBUF_CONSTEXPR OrganizationSetSupportEmailRequest(::google::protobuf::internal::ConstantInitialized); + inline UpdateOrganizationInviteAuthorizationsResponse() : UpdateOrganizationInviteAuthorizationsResponse(nullptr) {} + ~UpdateOrganizationInviteAuthorizationsResponse() override; + explicit PROTOBUF_CONSTEXPR UpdateOrganizationInviteAuthorizationsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline OrganizationSetSupportEmailRequest(const OrganizationSetSupportEmailRequest& from) - : OrganizationSetSupportEmailRequest(nullptr, from) {} - OrganizationSetSupportEmailRequest(OrganizationSetSupportEmailRequest&& from) noexcept - : OrganizationSetSupportEmailRequest() { + UpdateOrganizationInviteAuthorizationsResponse(const UpdateOrganizationInviteAuthorizationsResponse& from); + UpdateOrganizationInviteAuthorizationsResponse(UpdateOrganizationInviteAuthorizationsResponse&& from) noexcept + : UpdateOrganizationInviteAuthorizationsResponse() { *this = ::std::move(from); } - inline OrganizationSetSupportEmailRequest& operator=(const OrganizationSetSupportEmailRequest& from) { + inline UpdateOrganizationInviteAuthorizationsResponse& operator=(const UpdateOrganizationInviteAuthorizationsResponse& from) { CopyFrom(from); return *this; } - inline OrganizationSetSupportEmailRequest& operator=(OrganizationSetSupportEmailRequest&& from) noexcept { + inline UpdateOrganizationInviteAuthorizationsResponse& operator=(UpdateOrganizationInviteAuthorizationsResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -5382,196 +5601,149 @@ class OrganizationSetSupportEmailRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const OrganizationSetSupportEmailRequest& default_instance() { + static const UpdateOrganizationInviteAuthorizationsResponse& default_instance() { return *internal_default_instance(); } - static inline const OrganizationSetSupportEmailRequest* internal_default_instance() { - return reinterpret_cast( - &_OrganizationSetSupportEmailRequest_default_instance_); + static inline const UpdateOrganizationInviteAuthorizationsResponse* internal_default_instance() { + return reinterpret_cast( + &_UpdateOrganizationInviteAuthorizationsResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 40; + 24; - friend void swap(OrganizationSetSupportEmailRequest& a, OrganizationSetSupportEmailRequest& b) { + friend void swap(UpdateOrganizationInviteAuthorizationsResponse& a, UpdateOrganizationInviteAuthorizationsResponse& b) { a.Swap(&b); } - inline void Swap(OrganizationSetSupportEmailRequest* other) { + inline void Swap(UpdateOrganizationInviteAuthorizationsResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(OrganizationSetSupportEmailRequest* other) { + void UnsafeArenaSwap(UpdateOrganizationInviteAuthorizationsResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - OrganizationSetSupportEmailRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const OrganizationSetSupportEmailRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const OrganizationSetSupportEmailRequest& from) { - OrganizationSetSupportEmailRequest::MergeImpl(*this, from); + UpdateOrganizationInviteAuthorizationsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const UpdateOrganizationInviteAuthorizationsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const UpdateOrganizationInviteAuthorizationsResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(OrganizationSetSupportEmailRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(UpdateOrganizationInviteAuthorizationsResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.OrganizationSetSupportEmailRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.UpdateOrganizationInviteAuthorizationsResponse"; } protected: - explicit OrganizationSetSupportEmailRequest(::google::protobuf::Arena* arena); - OrganizationSetSupportEmailRequest(::google::protobuf::Arena* arena, const OrganizationSetSupportEmailRequest& from); + explicit UpdateOrganizationInviteAuthorizationsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kOrgIdFieldNumber = 1, - kEmailFieldNumber = 2, + kInviteFieldNumber = 1, }; - // string org_id = 1 [json_name = "orgId"]; - void clear_org_id() ; - const std::string& org_id() const; - template - void set_org_id(Arg_&& arg, Args_... args); - std::string* mutable_org_id(); - PROTOBUF_NODISCARD std::string* release_org_id(); - void set_allocated_org_id(std::string* value); - + // .viam.app.v1.OrganizationInvite invite = 1 [json_name = "invite"]; + bool has_invite() const; private: - const std::string& _internal_org_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_org_id( - const std::string& value); - std::string* _internal_mutable_org_id(); - + bool _internal_has_invite() const; public: - // string email = 2 [json_name = "email"]; - void clear_email() ; - const std::string& email() const; - template - void set_email(Arg_&& arg, Args_... args); - std::string* mutable_email(); - PROTOBUF_NODISCARD std::string* release_email(); - void set_allocated_email(std::string* value); - + void clear_invite(); + const ::viam::app::v1::OrganizationInvite& invite() const; + PROTOBUF_NODISCARD ::viam::app::v1::OrganizationInvite* release_invite(); + ::viam::app::v1::OrganizationInvite* mutable_invite(); + void set_allocated_invite(::viam::app::v1::OrganizationInvite* invite); private: - const std::string& _internal_email() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_email( - const std::string& value); - std::string* _internal_mutable_email(); - + const ::viam::app::v1::OrganizationInvite& _internal_invite() const; + ::viam::app::v1::OrganizationInvite* _internal_mutable_invite(); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.OrganizationSetSupportEmailRequest) + void unsafe_arena_set_allocated_invite( + ::viam::app::v1::OrganizationInvite* invite); + ::viam::app::v1::OrganizationInvite* unsafe_arena_release_invite(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.UpdateOrganizationInviteAuthorizationsResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 66, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr org_id_; - ::google::protobuf::internal::ArenaStringPtr email_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::viam::app::v1::OrganizationInvite* invite_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class OrganizationIdentity final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.OrganizationIdentity) */ { +class DeleteOrganizationInviteRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.DeleteOrganizationInviteRequest) */ { public: - inline OrganizationIdentity() : OrganizationIdentity(nullptr) {} - ~OrganizationIdentity() override; - template - explicit PROTOBUF_CONSTEXPR OrganizationIdentity(::google::protobuf::internal::ConstantInitialized); + inline DeleteOrganizationInviteRequest() : DeleteOrganizationInviteRequest(nullptr) {} + ~DeleteOrganizationInviteRequest() override; + explicit PROTOBUF_CONSTEXPR DeleteOrganizationInviteRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline OrganizationIdentity(const OrganizationIdentity& from) - : OrganizationIdentity(nullptr, from) {} - OrganizationIdentity(OrganizationIdentity&& from) noexcept - : OrganizationIdentity() { + DeleteOrganizationInviteRequest(const DeleteOrganizationInviteRequest& from); + DeleteOrganizationInviteRequest(DeleteOrganizationInviteRequest&& from) noexcept + : DeleteOrganizationInviteRequest() { *this = ::std::move(from); } - inline OrganizationIdentity& operator=(const OrganizationIdentity& from) { + inline DeleteOrganizationInviteRequest& operator=(const DeleteOrganizationInviteRequest& from) { CopyFrom(from); return *this; } - inline OrganizationIdentity& operator=(OrganizationIdentity&& from) noexcept { + inline DeleteOrganizationInviteRequest& operator=(DeleteOrganizationInviteRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -5581,196 +5753,160 @@ class OrganizationIdentity final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const OrganizationIdentity& default_instance() { + static const DeleteOrganizationInviteRequest& default_instance() { return *internal_default_instance(); } - static inline const OrganizationIdentity* internal_default_instance() { - return reinterpret_cast( - &_OrganizationIdentity_default_instance_); + static inline const DeleteOrganizationInviteRequest* internal_default_instance() { + return reinterpret_cast( + &_DeleteOrganizationInviteRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 44; + 25; - friend void swap(OrganizationIdentity& a, OrganizationIdentity& b) { + friend void swap(DeleteOrganizationInviteRequest& a, DeleteOrganizationInviteRequest& b) { a.Swap(&b); } - inline void Swap(OrganizationIdentity* other) { + inline void Swap(DeleteOrganizationInviteRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(OrganizationIdentity* other) { + void UnsafeArenaSwap(DeleteOrganizationInviteRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - OrganizationIdentity* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const OrganizationIdentity& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const OrganizationIdentity& from) { - OrganizationIdentity::MergeImpl(*this, from); + DeleteOrganizationInviteRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DeleteOrganizationInviteRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const DeleteOrganizationInviteRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(OrganizationIdentity* other); + void SetCachedSize(int size) const final; + void InternalSwap(DeleteOrganizationInviteRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.OrganizationIdentity"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.DeleteOrganizationInviteRequest"; } protected: - explicit OrganizationIdentity(::google::protobuf::Arena* arena); - OrganizationIdentity(::google::protobuf::Arena* arena, const OrganizationIdentity& from); + explicit DeleteOrganizationInviteRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kIdFieldNumber = 1, - kNameFieldNumber = 2, + kOrganizationIdFieldNumber = 1, + kEmailFieldNumber = 2, }; - // string id = 1 [json_name = "id"]; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - + // string organization_id = 1 [json_name = "organizationId"]; + void clear_organization_id(); + const std::string& organization_id() const; + template + void set_organization_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_organization_id(); + PROTOBUF_NODISCARD std::string* release_organization_id(); + void set_allocated_organization_id(std::string* organization_id); private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); - + const std::string& _internal_organization_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id(const std::string& value); + std::string* _internal_mutable_organization_id(); public: - // string name = 2 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); + // string email = 2 [json_name = "email"]; + void clear_email(); + const std::string& email() const; + template + void set_email(ArgT0&& arg0, ArgT... args); + std::string* mutable_email(); + PROTOBUF_NODISCARD std::string* release_email(); + void set_allocated_email(std::string* email); private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - + const std::string& _internal_email() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_email(const std::string& value); + std::string* _internal_mutable_email(); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.OrganizationIdentity) + + // @@protoc_insertion_point(class_scope:viam.app.v1.DeleteOrganizationInviteRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 47, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr id_; - ::google::protobuf::internal::ArenaStringPtr name_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr organization_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr email_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class OrganizationGetSupportEmailResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.OrganizationGetSupportEmailResponse) */ { +class DeleteOrganizationInviteResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.DeleteOrganizationInviteResponse) */ { public: - inline OrganizationGetSupportEmailResponse() : OrganizationGetSupportEmailResponse(nullptr) {} - ~OrganizationGetSupportEmailResponse() override; - template - explicit PROTOBUF_CONSTEXPR OrganizationGetSupportEmailResponse(::google::protobuf::internal::ConstantInitialized); + inline DeleteOrganizationInviteResponse() : DeleteOrganizationInviteResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR DeleteOrganizationInviteResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline OrganizationGetSupportEmailResponse(const OrganizationGetSupportEmailResponse& from) - : OrganizationGetSupportEmailResponse(nullptr, from) {} - OrganizationGetSupportEmailResponse(OrganizationGetSupportEmailResponse&& from) noexcept - : OrganizationGetSupportEmailResponse() { + DeleteOrganizationInviteResponse(const DeleteOrganizationInviteResponse& from); + DeleteOrganizationInviteResponse(DeleteOrganizationInviteResponse&& from) noexcept + : DeleteOrganizationInviteResponse() { *this = ::std::move(from); } - inline OrganizationGetSupportEmailResponse& operator=(const OrganizationGetSupportEmailResponse& from) { + inline DeleteOrganizationInviteResponse& operator=(const DeleteOrganizationInviteResponse& from) { CopyFrom(from); return *this; } - inline OrganizationGetSupportEmailResponse& operator=(OrganizationGetSupportEmailResponse&& from) noexcept { + inline DeleteOrganizationInviteResponse& operator=(DeleteOrganizationInviteResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -5780,178 +5916,114 @@ class OrganizationGetSupportEmailResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const OrganizationGetSupportEmailResponse& default_instance() { + static const DeleteOrganizationInviteResponse& default_instance() { return *internal_default_instance(); } - static inline const OrganizationGetSupportEmailResponse* internal_default_instance() { - return reinterpret_cast( - &_OrganizationGetSupportEmailResponse_default_instance_); + static inline const DeleteOrganizationInviteResponse* internal_default_instance() { + return reinterpret_cast( + &_DeleteOrganizationInviteResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 43; + 26; - friend void swap(OrganizationGetSupportEmailResponse& a, OrganizationGetSupportEmailResponse& b) { + friend void swap(DeleteOrganizationInviteResponse& a, DeleteOrganizationInviteResponse& b) { a.Swap(&b); } - inline void Swap(OrganizationGetSupportEmailResponse* other) { + inline void Swap(DeleteOrganizationInviteResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(OrganizationGetSupportEmailResponse* other) { + void UnsafeArenaSwap(DeleteOrganizationInviteResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - OrganizationGetSupportEmailResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + DeleteOrganizationInviteResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const OrganizationGetSupportEmailResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const OrganizationGetSupportEmailResponse& from) { - OrganizationGetSupportEmailResponse::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const DeleteOrganizationInviteResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const DeleteOrganizationInviteResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(OrganizationGetSupportEmailResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.OrganizationGetSupportEmailResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.DeleteOrganizationInviteResponse"; } protected: - explicit OrganizationGetSupportEmailResponse(::google::protobuf::Arena* arena); - OrganizationGetSupportEmailResponse(::google::protobuf::Arena* arena, const OrganizationGetSupportEmailResponse& from); + explicit DeleteOrganizationInviteResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kEmailFieldNumber = 1, - }; - // string email = 1 [json_name = "email"]; - void clear_email() ; - const std::string& email() const; - template - void set_email(Arg_&& arg, Args_... args); - std::string* mutable_email(); - PROTOBUF_NODISCARD std::string* release_email(); - void set_allocated_email(std::string* value); - - private: - const std::string& _internal_email() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_email( - const std::string& value); - std::string* _internal_mutable_email(); - - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.OrganizationGetSupportEmailResponse) + // @@protoc_insertion_point(class_scope:viam.app.v1.DeleteOrganizationInviteResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 61, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr email_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class OrganizationGetSupportEmailRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.OrganizationGetSupportEmailRequest) */ { +class ResendOrganizationInviteRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ResendOrganizationInviteRequest) */ { public: - inline OrganizationGetSupportEmailRequest() : OrganizationGetSupportEmailRequest(nullptr) {} - ~OrganizationGetSupportEmailRequest() override; - template - explicit PROTOBUF_CONSTEXPR OrganizationGetSupportEmailRequest(::google::protobuf::internal::ConstantInitialized); + inline ResendOrganizationInviteRequest() : ResendOrganizationInviteRequest(nullptr) {} + ~ResendOrganizationInviteRequest() override; + explicit PROTOBUF_CONSTEXPR ResendOrganizationInviteRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline OrganizationGetSupportEmailRequest(const OrganizationGetSupportEmailRequest& from) - : OrganizationGetSupportEmailRequest(nullptr, from) {} - OrganizationGetSupportEmailRequest(OrganizationGetSupportEmailRequest&& from) noexcept - : OrganizationGetSupportEmailRequest() { + ResendOrganizationInviteRequest(const ResendOrganizationInviteRequest& from); + ResendOrganizationInviteRequest(ResendOrganizationInviteRequest&& from) noexcept + : ResendOrganizationInviteRequest() { *this = ::std::move(from); } - inline OrganizationGetSupportEmailRequest& operator=(const OrganizationGetSupportEmailRequest& from) { + inline ResendOrganizationInviteRequest& operator=(const ResendOrganizationInviteRequest& from) { CopyFrom(from); return *this; } - inline OrganizationGetSupportEmailRequest& operator=(OrganizationGetSupportEmailRequest&& from) noexcept { + inline ResendOrganizationInviteRequest& operator=(ResendOrganizationInviteRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -5961,178 +6033,161 @@ class OrganizationGetSupportEmailRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const OrganizationGetSupportEmailRequest& default_instance() { + static const ResendOrganizationInviteRequest& default_instance() { return *internal_default_instance(); } - static inline const OrganizationGetSupportEmailRequest* internal_default_instance() { - return reinterpret_cast( - &_OrganizationGetSupportEmailRequest_default_instance_); + static inline const ResendOrganizationInviteRequest* internal_default_instance() { + return reinterpret_cast( + &_ResendOrganizationInviteRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 42; + 27; - friend void swap(OrganizationGetSupportEmailRequest& a, OrganizationGetSupportEmailRequest& b) { + friend void swap(ResendOrganizationInviteRequest& a, ResendOrganizationInviteRequest& b) { a.Swap(&b); } - inline void Swap(OrganizationGetSupportEmailRequest* other) { + inline void Swap(ResendOrganizationInviteRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(OrganizationGetSupportEmailRequest* other) { + void UnsafeArenaSwap(ResendOrganizationInviteRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - OrganizationGetSupportEmailRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const OrganizationGetSupportEmailRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const OrganizationGetSupportEmailRequest& from) { - OrganizationGetSupportEmailRequest::MergeImpl(*this, from); + ResendOrganizationInviteRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ResendOrganizationInviteRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ResendOrganizationInviteRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(OrganizationGetSupportEmailRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(ResendOrganizationInviteRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.OrganizationGetSupportEmailRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.ResendOrganizationInviteRequest"; } protected: - explicit OrganizationGetSupportEmailRequest(::google::protobuf::Arena* arena); - OrganizationGetSupportEmailRequest(::google::protobuf::Arena* arena, const OrganizationGetSupportEmailRequest& from); + explicit ResendOrganizationInviteRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kOrgIdFieldNumber = 1, + kOrganizationIdFieldNumber = 1, + kEmailFieldNumber = 2, }; - // string org_id = 1 [json_name = "orgId"]; - void clear_org_id() ; - const std::string& org_id() const; - template - void set_org_id(Arg_&& arg, Args_... args); - std::string* mutable_org_id(); - PROTOBUF_NODISCARD std::string* release_org_id(); - void set_allocated_org_id(std::string* value); - + // string organization_id = 1 [json_name = "organizationId"]; + void clear_organization_id(); + const std::string& organization_id() const; + template + void set_organization_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_organization_id(); + PROTOBUF_NODISCARD std::string* release_organization_id(); + void set_allocated_organization_id(std::string* organization_id); private: - const std::string& _internal_org_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_org_id( - const std::string& value); - std::string* _internal_mutable_org_id(); - + const std::string& _internal_organization_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id(const std::string& value); + std::string* _internal_mutable_organization_id(); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.OrganizationGetSupportEmailRequest) + + // string email = 2 [json_name = "email"]; + void clear_email(); + const std::string& email() const; + template + void set_email(ArgT0&& arg0, ArgT... args); + std::string* mutable_email(); + PROTOBUF_NODISCARD std::string* release_email(); + void set_allocated_email(std::string* email); + private: + const std::string& _internal_email() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_email(const std::string& value); + std::string* _internal_mutable_email(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.ResendOrganizationInviteRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 61, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr org_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr organization_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr email_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class OrgDetails final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.OrgDetails) */ { +class ResendOrganizationInviteResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ResendOrganizationInviteResponse) */ { public: - inline OrgDetails() : OrgDetails(nullptr) {} - ~OrgDetails() override; - template - explicit PROTOBUF_CONSTEXPR OrgDetails(::google::protobuf::internal::ConstantInitialized); + inline ResendOrganizationInviteResponse() : ResendOrganizationInviteResponse(nullptr) {} + ~ResendOrganizationInviteResponse() override; + explicit PROTOBUF_CONSTEXPR ResendOrganizationInviteResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline OrgDetails(const OrgDetails& from) - : OrgDetails(nullptr, from) {} - OrgDetails(OrgDetails&& from) noexcept - : OrgDetails() { + ResendOrganizationInviteResponse(const ResendOrganizationInviteResponse& from); + ResendOrganizationInviteResponse(ResendOrganizationInviteResponse&& from) noexcept + : ResendOrganizationInviteResponse() { *this = ::std::move(from); } - inline OrgDetails& operator=(const OrgDetails& from) { + inline ResendOrganizationInviteResponse& operator=(const ResendOrganizationInviteResponse& from) { CopyFrom(from); return *this; } - inline OrgDetails& operator=(OrgDetails&& from) noexcept { + inline ResendOrganizationInviteResponse& operator=(ResendOrganizationInviteResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -6142,196 +6197,149 @@ class OrgDetails final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const OrgDetails& default_instance() { + static const ResendOrganizationInviteResponse& default_instance() { return *internal_default_instance(); } - static inline const OrgDetails* internal_default_instance() { - return reinterpret_cast( - &_OrgDetails_default_instance_); + static inline const ResendOrganizationInviteResponse* internal_default_instance() { + return reinterpret_cast( + &_ResendOrganizationInviteResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 178; + 28; - friend void swap(OrgDetails& a, OrgDetails& b) { + friend void swap(ResendOrganizationInviteResponse& a, ResendOrganizationInviteResponse& b) { a.Swap(&b); } - inline void Swap(OrgDetails* other) { + inline void Swap(ResendOrganizationInviteResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(OrgDetails* other) { + void UnsafeArenaSwap(ResendOrganizationInviteResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - OrgDetails* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const OrgDetails& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const OrgDetails& from) { - OrgDetails::MergeImpl(*this, from); + ResendOrganizationInviteResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ResendOrganizationInviteResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ResendOrganizationInviteResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(OrgDetails* other); + void SetCachedSize(int size) const final; + void InternalSwap(ResendOrganizationInviteResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.OrgDetails"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.ResendOrganizationInviteResponse"; } protected: - explicit OrgDetails(::google::protobuf::Arena* arena); - OrgDetails(::google::protobuf::Arena* arena, const OrgDetails& from); + explicit ResendOrganizationInviteResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kOrgIdFieldNumber = 1, - kOrgNameFieldNumber = 2, + kInviteFieldNumber = 1, }; - // string org_id = 1 [json_name = "orgId"]; - void clear_org_id() ; - const std::string& org_id() const; - template - void set_org_id(Arg_&& arg, Args_... args); - std::string* mutable_org_id(); - PROTOBUF_NODISCARD std::string* release_org_id(); - void set_allocated_org_id(std::string* value); - + // .viam.app.v1.OrganizationInvite invite = 1 [json_name = "invite"]; + bool has_invite() const; private: - const std::string& _internal_org_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_org_id( - const std::string& value); - std::string* _internal_mutable_org_id(); - + bool _internal_has_invite() const; public: - // string org_name = 2 [json_name = "orgName"]; - void clear_org_name() ; - const std::string& org_name() const; - template - void set_org_name(Arg_&& arg, Args_... args); - std::string* mutable_org_name(); - PROTOBUF_NODISCARD std::string* release_org_name(); - void set_allocated_org_name(std::string* value); - + void clear_invite(); + const ::viam::app::v1::OrganizationInvite& invite() const; + PROTOBUF_NODISCARD ::viam::app::v1::OrganizationInvite* release_invite(); + ::viam::app::v1::OrganizationInvite* mutable_invite(); + void set_allocated_invite(::viam::app::v1::OrganizationInvite* invite); private: - const std::string& _internal_org_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_org_name( - const std::string& value); - std::string* _internal_mutable_org_name(); - + const ::viam::app::v1::OrganizationInvite& _internal_invite() const; + ::viam::app::v1::OrganizationInvite* _internal_mutable_invite(); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.OrgDetails) + void unsafe_arena_set_allocated_invite( + ::viam::app::v1::OrganizationInvite* invite); + ::viam::app::v1::OrganizationInvite* unsafe_arena_release_invite(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.ResendOrganizationInviteResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 45, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr org_id_; - ::google::protobuf::internal::ArenaStringPtr org_name_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::viam::app::v1::OrganizationInvite* invite_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class NewRobotResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.NewRobotResponse) */ { +class DeleteOrganizationMemberRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.DeleteOrganizationMemberRequest) */ { public: - inline NewRobotResponse() : NewRobotResponse(nullptr) {} - ~NewRobotResponse() override; - template - explicit PROTOBUF_CONSTEXPR NewRobotResponse(::google::protobuf::internal::ConstantInitialized); + inline DeleteOrganizationMemberRequest() : DeleteOrganizationMemberRequest(nullptr) {} + ~DeleteOrganizationMemberRequest() override; + explicit PROTOBUF_CONSTEXPR DeleteOrganizationMemberRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline NewRobotResponse(const NewRobotResponse& from) - : NewRobotResponse(nullptr, from) {} - NewRobotResponse(NewRobotResponse&& from) noexcept - : NewRobotResponse() { + DeleteOrganizationMemberRequest(const DeleteOrganizationMemberRequest& from); + DeleteOrganizationMemberRequest(DeleteOrganizationMemberRequest&& from) noexcept + : DeleteOrganizationMemberRequest() { *this = ::std::move(from); } - inline NewRobotResponse& operator=(const NewRobotResponse& from) { + inline DeleteOrganizationMemberRequest& operator=(const DeleteOrganizationMemberRequest& from) { CopyFrom(from); return *this; } - inline NewRobotResponse& operator=(NewRobotResponse&& from) noexcept { + inline DeleteOrganizationMemberRequest& operator=(DeleteOrganizationMemberRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -6341,178 +6349,160 @@ class NewRobotResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const NewRobotResponse& default_instance() { + static const DeleteOrganizationMemberRequest& default_instance() { return *internal_default_instance(); } - static inline const NewRobotResponse* internal_default_instance() { - return reinterpret_cast( - &_NewRobotResponse_default_instance_); + static inline const DeleteOrganizationMemberRequest* internal_default_instance() { + return reinterpret_cast( + &_DeleteOrganizationMemberRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 117; + 29; - friend void swap(NewRobotResponse& a, NewRobotResponse& b) { + friend void swap(DeleteOrganizationMemberRequest& a, DeleteOrganizationMemberRequest& b) { a.Swap(&b); } - inline void Swap(NewRobotResponse* other) { + inline void Swap(DeleteOrganizationMemberRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(NewRobotResponse* other) { + void UnsafeArenaSwap(DeleteOrganizationMemberRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - NewRobotResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const NewRobotResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const NewRobotResponse& from) { - NewRobotResponse::MergeImpl(*this, from); + DeleteOrganizationMemberRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DeleteOrganizationMemberRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const DeleteOrganizationMemberRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(NewRobotResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(DeleteOrganizationMemberRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.NewRobotResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.DeleteOrganizationMemberRequest"; } protected: - explicit NewRobotResponse(::google::protobuf::Arena* arena); - NewRobotResponse(::google::protobuf::Arena* arena, const NewRobotResponse& from); + explicit DeleteOrganizationMemberRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kIdFieldNumber = 1, + kOrganizationIdFieldNumber = 1, + kUserIdFieldNumber = 2, }; - // string id = 1 [json_name = "id"]; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - + // string organization_id = 1 [json_name = "organizationId"]; + void clear_organization_id(); + const std::string& organization_id() const; + template + void set_organization_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_organization_id(); + PROTOBUF_NODISCARD std::string* release_organization_id(); + void set_allocated_organization_id(std::string* organization_id); private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); + const std::string& _internal_organization_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id(const std::string& value); + std::string* _internal_mutable_organization_id(); + public: + // string user_id = 2 [json_name = "userId"]; + void clear_user_id(); + const std::string& user_id() const; + template + void set_user_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_user_id(); + PROTOBUF_NODISCARD std::string* release_user_id(); + void set_allocated_user_id(std::string* user_id); + private: + const std::string& _internal_user_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_user_id(const std::string& value); + std::string* _internal_mutable_user_id(); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.NewRobotResponse) + + // @@protoc_insertion_point(class_scope:viam.app.v1.DeleteOrganizationMemberRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 39, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr organization_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr user_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class NewRobotRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.NewRobotRequest) */ { +class DeleteOrganizationMemberResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.DeleteOrganizationMemberResponse) */ { public: - inline NewRobotRequest() : NewRobotRequest(nullptr) {} - ~NewRobotRequest() override; - template - explicit PROTOBUF_CONSTEXPR NewRobotRequest(::google::protobuf::internal::ConstantInitialized); + inline DeleteOrganizationMemberResponse() : DeleteOrganizationMemberResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR DeleteOrganizationMemberResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline NewRobotRequest(const NewRobotRequest& from) - : NewRobotRequest(nullptr, from) {} - NewRobotRequest(NewRobotRequest&& from) noexcept - : NewRobotRequest() { + DeleteOrganizationMemberResponse(const DeleteOrganizationMemberResponse& from); + DeleteOrganizationMemberResponse(DeleteOrganizationMemberResponse&& from) noexcept + : DeleteOrganizationMemberResponse() { *this = ::std::move(from); } - inline NewRobotRequest& operator=(const NewRobotRequest& from) { + inline DeleteOrganizationMemberResponse& operator=(const DeleteOrganizationMemberResponse& from) { CopyFrom(from); return *this; } - inline NewRobotRequest& operator=(NewRobotRequest&& from) noexcept { + inline DeleteOrganizationMemberResponse& operator=(DeleteOrganizationMemberResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -6522,196 +6512,114 @@ class NewRobotRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const NewRobotRequest& default_instance() { + static const DeleteOrganizationMemberResponse& default_instance() { return *internal_default_instance(); } - static inline const NewRobotRequest* internal_default_instance() { - return reinterpret_cast( - &_NewRobotRequest_default_instance_); + static inline const DeleteOrganizationMemberResponse* internal_default_instance() { + return reinterpret_cast( + &_DeleteOrganizationMemberResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 116; + 30; - friend void swap(NewRobotRequest& a, NewRobotRequest& b) { + friend void swap(DeleteOrganizationMemberResponse& a, DeleteOrganizationMemberResponse& b) { a.Swap(&b); } - inline void Swap(NewRobotRequest* other) { + inline void Swap(DeleteOrganizationMemberResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(NewRobotRequest* other) { + void UnsafeArenaSwap(DeleteOrganizationMemberResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - NewRobotRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + DeleteOrganizationMemberResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const NewRobotRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const NewRobotRequest& from) { - NewRobotRequest::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const DeleteOrganizationMemberResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const DeleteOrganizationMemberResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(NewRobotRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.NewRobotRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.DeleteOrganizationMemberResponse"; } protected: - explicit NewRobotRequest(::google::protobuf::Arena* arena); - NewRobotRequest(::google::protobuf::Arena* arena, const NewRobotRequest& from); + explicit DeleteOrganizationMemberResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kNameFieldNumber = 1, - kLocationFieldNumber = 2, - }; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - - public: - // string location = 2 [json_name = "location"]; - void clear_location() ; - const std::string& location() const; - template - void set_location(Arg_&& arg, Args_... args); - std::string* mutable_location(); - PROTOBUF_NODISCARD std::string* release_location(); - void set_allocated_location(std::string* value); - - private: - const std::string& _internal_location() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_location( - const std::string& value); - std::string* _internal_mutable_location(); - - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.NewRobotRequest) + // @@protoc_insertion_point(class_scope:viam.app.v1.DeleteOrganizationMemberResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 48, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr location_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class NewRobotPartResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.NewRobotPartResponse) */ { +class BillingAddress final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.BillingAddress) */ { public: - inline NewRobotPartResponse() : NewRobotPartResponse(nullptr) {} - ~NewRobotPartResponse() override; - template - explicit PROTOBUF_CONSTEXPR NewRobotPartResponse(::google::protobuf::internal::ConstantInitialized); + inline BillingAddress() : BillingAddress(nullptr) {} + ~BillingAddress() override; + explicit PROTOBUF_CONSTEXPR BillingAddress(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline NewRobotPartResponse(const NewRobotPartResponse& from) - : NewRobotPartResponse(nullptr, from) {} - NewRobotPartResponse(NewRobotPartResponse&& from) noexcept - : NewRobotPartResponse() { + BillingAddress(const BillingAddress& from); + BillingAddress(BillingAddress&& from) noexcept + : BillingAddress() { *this = ::std::move(from); } - inline NewRobotPartResponse& operator=(const NewRobotPartResponse& from) { + inline BillingAddress& operator=(const BillingAddress& from) { CopyFrom(from); return *this; } - inline NewRobotPartResponse& operator=(NewRobotPartResponse&& from) noexcept { + inline BillingAddress& operator=(BillingAddress&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -6721,178 +6629,214 @@ class NewRobotPartResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const NewRobotPartResponse& default_instance() { + static const BillingAddress& default_instance() { return *internal_default_instance(); } - static inline const NewRobotPartResponse* internal_default_instance() { - return reinterpret_cast( - &_NewRobotPartResponse_default_instance_); + static inline const BillingAddress* internal_default_instance() { + return reinterpret_cast( + &_BillingAddress_default_instance_); } static constexpr int kIndexInFileMessages = - 90; + 31; - friend void swap(NewRobotPartResponse& a, NewRobotPartResponse& b) { + friend void swap(BillingAddress& a, BillingAddress& b) { a.Swap(&b); } - inline void Swap(NewRobotPartResponse* other) { + inline void Swap(BillingAddress* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(NewRobotPartResponse* other) { + void UnsafeArenaSwap(BillingAddress* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - NewRobotPartResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const NewRobotPartResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const NewRobotPartResponse& from) { - NewRobotPartResponse::MergeImpl(*this, from); + BillingAddress* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const BillingAddress& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const BillingAddress& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(NewRobotPartResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(BillingAddress* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.NewRobotPartResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.BillingAddress"; } protected: - explicit NewRobotPartResponse(::google::protobuf::Arena* arena); - NewRobotPartResponse(::google::protobuf::Arena* arena, const NewRobotPartResponse& from); + explicit BillingAddress(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kPartIdFieldNumber = 1, + kAddressLine1FieldNumber = 1, + kAddressLine2FieldNumber = 2, + kCityFieldNumber = 3, + kStateFieldNumber = 4, + kZipcodeFieldNumber = 5, }; - // string part_id = 1 [json_name = "partId"]; - void clear_part_id() ; - const std::string& part_id() const; - template - void set_part_id(Arg_&& arg, Args_... args); - std::string* mutable_part_id(); - PROTOBUF_NODISCARD std::string* release_part_id(); - void set_allocated_part_id(std::string* value); + // string address_line_1 = 1 [json_name = "addressLine1"]; + void clear_address_line_1(); + const std::string& address_line_1() const; + template + void set_address_line_1(ArgT0&& arg0, ArgT... args); + std::string* mutable_address_line_1(); + PROTOBUF_NODISCARD std::string* release_address_line_1(); + void set_allocated_address_line_1(std::string* address_line_1); + private: + const std::string& _internal_address_line_1() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_address_line_1(const std::string& value); + std::string* _internal_mutable_address_line_1(); + public: + // optional string address_line_2 = 2 [json_name = "addressLine2"]; + bool has_address_line_2() const; private: - const std::string& _internal_part_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_part_id( - const std::string& value); - std::string* _internal_mutable_part_id(); + bool _internal_has_address_line_2() const; + public: + void clear_address_line_2(); + const std::string& address_line_2() const; + template + void set_address_line_2(ArgT0&& arg0, ArgT... args); + std::string* mutable_address_line_2(); + PROTOBUF_NODISCARD std::string* release_address_line_2(); + void set_allocated_address_line_2(std::string* address_line_2); + private: + const std::string& _internal_address_line_2() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_address_line_2(const std::string& value); + std::string* _internal_mutable_address_line_2(); + public: + + // string city = 3 [json_name = "city"]; + void clear_city(); + const std::string& city() const; + template + void set_city(ArgT0&& arg0, ArgT... args); + std::string* mutable_city(); + PROTOBUF_NODISCARD std::string* release_city(); + void set_allocated_city(std::string* city); + private: + const std::string& _internal_city() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_city(const std::string& value); + std::string* _internal_mutable_city(); + public: + // string state = 4 [json_name = "state"]; + void clear_state(); + const std::string& state() const; + template + void set_state(ArgT0&& arg0, ArgT... args); + std::string* mutable_state(); + PROTOBUF_NODISCARD std::string* release_state(); + void set_allocated_state(std::string* state); + private: + const std::string& _internal_state() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_state(const std::string& value); + std::string* _internal_mutable_state(); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.NewRobotPartResponse) + + // string zipcode = 5 [json_name = "zipcode"]; + void clear_zipcode(); + const std::string& zipcode() const; + template + void set_zipcode(ArgT0&& arg0, ArgT... args); + std::string* mutable_zipcode(); + PROTOBUF_NODISCARD std::string* release_zipcode(); + void set_allocated_zipcode(std::string* zipcode); + private: + const std::string& _internal_zipcode() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_zipcode(const std::string& value); + std::string* _internal_mutable_zipcode(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.BillingAddress) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 48, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr part_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr address_line_1_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr address_line_2_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr city_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr state_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr zipcode_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class NewRobotPartRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.NewRobotPartRequest) */ { +class EnableBillingServiceRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.EnableBillingServiceRequest) */ { public: - inline NewRobotPartRequest() : NewRobotPartRequest(nullptr) {} - ~NewRobotPartRequest() override; - template - explicit PROTOBUF_CONSTEXPR NewRobotPartRequest(::google::protobuf::internal::ConstantInitialized); + inline EnableBillingServiceRequest() : EnableBillingServiceRequest(nullptr) {} + ~EnableBillingServiceRequest() override; + explicit PROTOBUF_CONSTEXPR EnableBillingServiceRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline NewRobotPartRequest(const NewRobotPartRequest& from) - : NewRobotPartRequest(nullptr, from) {} - NewRobotPartRequest(NewRobotPartRequest&& from) noexcept - : NewRobotPartRequest() { + EnableBillingServiceRequest(const EnableBillingServiceRequest& from); + EnableBillingServiceRequest(EnableBillingServiceRequest&& from) noexcept + : EnableBillingServiceRequest() { *this = ::std::move(from); } - inline NewRobotPartRequest& operator=(const NewRobotPartRequest& from) { + inline EnableBillingServiceRequest& operator=(const EnableBillingServiceRequest& from) { CopyFrom(from); return *this; } - inline NewRobotPartRequest& operator=(NewRobotPartRequest&& from) noexcept { + inline EnableBillingServiceRequest& operator=(EnableBillingServiceRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -6902,196 +6846,164 @@ class NewRobotPartRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const NewRobotPartRequest& default_instance() { + static const EnableBillingServiceRequest& default_instance() { return *internal_default_instance(); } - static inline const NewRobotPartRequest* internal_default_instance() { - return reinterpret_cast( - &_NewRobotPartRequest_default_instance_); + static inline const EnableBillingServiceRequest* internal_default_instance() { + return reinterpret_cast( + &_EnableBillingServiceRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 89; + 32; - friend void swap(NewRobotPartRequest& a, NewRobotPartRequest& b) { + friend void swap(EnableBillingServiceRequest& a, EnableBillingServiceRequest& b) { a.Swap(&b); } - inline void Swap(NewRobotPartRequest* other) { + inline void Swap(EnableBillingServiceRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(NewRobotPartRequest* other) { + void UnsafeArenaSwap(EnableBillingServiceRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - NewRobotPartRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const NewRobotPartRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const NewRobotPartRequest& from) { - NewRobotPartRequest::MergeImpl(*this, from); + EnableBillingServiceRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const EnableBillingServiceRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const EnableBillingServiceRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(NewRobotPartRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(EnableBillingServiceRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.NewRobotPartRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.EnableBillingServiceRequest"; } protected: - explicit NewRobotPartRequest(::google::protobuf::Arena* arena); - NewRobotPartRequest(::google::protobuf::Arena* arena, const NewRobotPartRequest& from); + explicit EnableBillingServiceRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kRobotIdFieldNumber = 1, - kPartNameFieldNumber = 2, + kOrgIdFieldNumber = 1, + kBillingAddressFieldNumber = 2, }; - // string robot_id = 1 [json_name = "robotId"]; - void clear_robot_id() ; - const std::string& robot_id() const; - template - void set_robot_id(Arg_&& arg, Args_... args); - std::string* mutable_robot_id(); - PROTOBUF_NODISCARD std::string* release_robot_id(); - void set_allocated_robot_id(std::string* value); - + // string org_id = 1 [json_name = "orgId"]; + void clear_org_id(); + const std::string& org_id() const; + template + void set_org_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_org_id(); + PROTOBUF_NODISCARD std::string* release_org_id(); + void set_allocated_org_id(std::string* org_id); private: - const std::string& _internal_robot_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_robot_id( - const std::string& value); - std::string* _internal_mutable_robot_id(); - + const std::string& _internal_org_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_org_id(const std::string& value); + std::string* _internal_mutable_org_id(); public: - // string part_name = 2 [json_name = "partName"]; - void clear_part_name() ; - const std::string& part_name() const; - template - void set_part_name(Arg_&& arg, Args_... args); - std::string* mutable_part_name(); - PROTOBUF_NODISCARD std::string* release_part_name(); - void set_allocated_part_name(std::string* value); + // .viam.app.v1.BillingAddress billing_address = 2 [json_name = "billingAddress"]; + bool has_billing_address() const; private: - const std::string& _internal_part_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_part_name( - const std::string& value); - std::string* _internal_mutable_part_name(); - + bool _internal_has_billing_address() const; public: - // @@protoc_insertion_point(class_scope:viam.app.v1.NewRobotPartRequest) + void clear_billing_address(); + const ::viam::app::v1::BillingAddress& billing_address() const; + PROTOBUF_NODISCARD ::viam::app::v1::BillingAddress* release_billing_address(); + ::viam::app::v1::BillingAddress* mutable_billing_address(); + void set_allocated_billing_address(::viam::app::v1::BillingAddress* billing_address); + private: + const ::viam::app::v1::BillingAddress& _internal_billing_address() const; + ::viam::app::v1::BillingAddress* _internal_mutable_billing_address(); + public: + void unsafe_arena_set_allocated_billing_address( + ::viam::app::v1::BillingAddress* billing_address); + ::viam::app::v1::BillingAddress* unsafe_arena_release_billing_address(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.EnableBillingServiceRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 57, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr robot_id_; - ::google::protobuf::internal::ArenaStringPtr part_name_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr org_id_; + ::viam::app::v1::BillingAddress* billing_address_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ModuleFileInfo final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ModuleFileInfo) */ { +class EnableBillingServiceResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.EnableBillingServiceResponse) */ { public: - inline ModuleFileInfo() : ModuleFileInfo(nullptr) {} - ~ModuleFileInfo() override; - template - explicit PROTOBUF_CONSTEXPR ModuleFileInfo(::google::protobuf::internal::ConstantInitialized); + inline EnableBillingServiceResponse() : EnableBillingServiceResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR EnableBillingServiceResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ModuleFileInfo(const ModuleFileInfo& from) - : ModuleFileInfo(nullptr, from) {} - ModuleFileInfo(ModuleFileInfo&& from) noexcept - : ModuleFileInfo() { + EnableBillingServiceResponse(const EnableBillingServiceResponse& from); + EnableBillingServiceResponse(EnableBillingServiceResponse&& from) noexcept + : EnableBillingServiceResponse() { *this = ::std::move(from); } - inline ModuleFileInfo& operator=(const ModuleFileInfo& from) { + inline EnableBillingServiceResponse& operator=(const EnableBillingServiceResponse& from) { CopyFrom(from); return *this; } - inline ModuleFileInfo& operator=(ModuleFileInfo&& from) noexcept { + inline EnableBillingServiceResponse& operator=(EnableBillingServiceResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -7101,244 +7013,114 @@ class ModuleFileInfo final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ModuleFileInfo& default_instance() { + static const EnableBillingServiceResponse& default_instance() { return *internal_default_instance(); } - static inline const ModuleFileInfo* internal_default_instance() { - return reinterpret_cast( - &_ModuleFileInfo_default_instance_); + static inline const EnableBillingServiceResponse* internal_default_instance() { + return reinterpret_cast( + &_EnableBillingServiceResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 165; + 33; - friend void swap(ModuleFileInfo& a, ModuleFileInfo& b) { + friend void swap(EnableBillingServiceResponse& a, EnableBillingServiceResponse& b) { a.Swap(&b); } - inline void Swap(ModuleFileInfo* other) { + inline void Swap(EnableBillingServiceResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ModuleFileInfo* other) { + void UnsafeArenaSwap(EnableBillingServiceResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ModuleFileInfo* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + EnableBillingServiceResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ModuleFileInfo& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ModuleFileInfo& from) { - ModuleFileInfo::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const EnableBillingServiceResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const EnableBillingServiceResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(ModuleFileInfo* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.ModuleFileInfo"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.EnableBillingServiceResponse"; } protected: - explicit ModuleFileInfo(::google::protobuf::Arena* arena); - ModuleFileInfo(::google::protobuf::Arena* arena, const ModuleFileInfo& from); + explicit EnableBillingServiceResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kPlatformTagsFieldNumber = 5, - kModuleIdFieldNumber = 1, - kVersionFieldNumber = 2, - kPlatformFieldNumber = 3, - }; - // repeated string platform_tags = 5 [json_name = "platformTags"]; - int platform_tags_size() const; - private: - int _internal_platform_tags_size() const; - - public: - void clear_platform_tags() ; - const std::string& platform_tags(int index) const; - std::string* mutable_platform_tags(int index); - void set_platform_tags(int index, const std::string& value); - void set_platform_tags(int index, std::string&& value); - void set_platform_tags(int index, const char* value); - void set_platform_tags(int index, const char* value, std::size_t size); - void set_platform_tags(int index, absl::string_view value); - std::string* add_platform_tags(); - void add_platform_tags(const std::string& value); - void add_platform_tags(std::string&& value); - void add_platform_tags(const char* value); - void add_platform_tags(const char* value, std::size_t size); - void add_platform_tags(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& platform_tags() const; - ::google::protobuf::RepeatedPtrField* mutable_platform_tags(); + // @@protoc_insertion_point(class_scope:viam.app.v1.EnableBillingServiceResponse) + private: + class _Internal; - private: - const ::google::protobuf::RepeatedPtrField& _internal_platform_tags() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_platform_tags(); + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- - public: - // string module_id = 1 [json_name = "moduleId"]; - void clear_module_id() ; - const std::string& module_id() const; - template - void set_module_id(Arg_&& arg, Args_... args); - std::string* mutable_module_id(); - PROTOBUF_NODISCARD std::string* release_module_id(); - void set_allocated_module_id(std::string* value); +class UpdateBillingServiceRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.UpdateBillingServiceRequest) */ { + public: + inline UpdateBillingServiceRequest() : UpdateBillingServiceRequest(nullptr) {} + ~UpdateBillingServiceRequest() override; + explicit PROTOBUF_CONSTEXPR UpdateBillingServiceRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - 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: - // string version = 2 [json_name = "version"]; - void clear_version() ; - const std::string& version() const; - template - void set_version(Arg_&& arg, Args_... args); - std::string* mutable_version(); - PROTOBUF_NODISCARD std::string* release_version(); - void set_allocated_version(std::string* value); - - private: - const std::string& _internal_version() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_version( - const std::string& value); - std::string* _internal_mutable_version(); - - public: - // string platform = 3 [json_name = "platform"]; - void clear_platform() ; - const std::string& platform() const; - template - void set_platform(Arg_&& arg, Args_... args); - std::string* mutable_platform(); - PROTOBUF_NODISCARD std::string* release_platform(); - void set_allocated_platform(std::string* value); - - private: - const std::string& _internal_platform() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_platform( - const std::string& value); - std::string* _internal_mutable_platform(); - - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.ModuleFileInfo) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 4, 0, - 72, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField platform_tags_; - ::google::protobuf::internal::ArenaStringPtr module_id_; - ::google::protobuf::internal::ArenaStringPtr version_; - ::google::protobuf::internal::ArenaStringPtr platform_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- - -class Model final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.Model) */ { - public: - inline Model() : Model(nullptr) {} - ~Model() override; - template - explicit PROTOBUF_CONSTEXPR Model(::google::protobuf::internal::ConstantInitialized); - - inline Model(const Model& from) - : Model(nullptr, from) {} - Model(Model&& from) noexcept - : Model() { + UpdateBillingServiceRequest(const UpdateBillingServiceRequest& from); + UpdateBillingServiceRequest(UpdateBillingServiceRequest&& from) noexcept + : UpdateBillingServiceRequest() { *this = ::std::move(from); } - inline Model& operator=(const Model& from) { + inline UpdateBillingServiceRequest& operator=(const UpdateBillingServiceRequest& from) { CopyFrom(from); return *this; } - inline Model& operator=(Model&& from) noexcept { + inline UpdateBillingServiceRequest& operator=(UpdateBillingServiceRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -7348,195 +7130,164 @@ class Model final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Model& default_instance() { + static const UpdateBillingServiceRequest& default_instance() { return *internal_default_instance(); } - static inline const Model* internal_default_instance() { - return reinterpret_cast( - &_Model_default_instance_); + static inline const UpdateBillingServiceRequest* internal_default_instance() { + return reinterpret_cast( + &_UpdateBillingServiceRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 164; + 34; - friend void swap(Model& a, Model& b) { + friend void swap(UpdateBillingServiceRequest& a, UpdateBillingServiceRequest& b) { a.Swap(&b); } - inline void Swap(Model* other) { + inline void Swap(UpdateBillingServiceRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Model* other) { + void UnsafeArenaSwap(UpdateBillingServiceRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Model* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Model& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Model& from) { - Model::MergeImpl(*this, from); + UpdateBillingServiceRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const UpdateBillingServiceRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const UpdateBillingServiceRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Model* other); + void SetCachedSize(int size) const final; + void InternalSwap(UpdateBillingServiceRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.Model"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.UpdateBillingServiceRequest"; } protected: - explicit Model(::google::protobuf::Arena* arena); - Model(::google::protobuf::Arena* arena, const Model& from); + explicit UpdateBillingServiceRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kApiFieldNumber = 1, - kModelFieldNumber = 2, + kOrgIdFieldNumber = 1, + kBillingAddressFieldNumber = 2, }; - // string api = 1 [json_name = "api"]; - void clear_api() ; - const std::string& api() const; - template - void set_api(Arg_&& arg, Args_... args); - std::string* mutable_api(); - PROTOBUF_NODISCARD std::string* release_api(); - void set_allocated_api(std::string* value); - + // string org_id = 1 [json_name = "orgId"]; + void clear_org_id(); + const std::string& org_id() const; + template + void set_org_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_org_id(); + PROTOBUF_NODISCARD std::string* release_org_id(); + void set_allocated_org_id(std::string* org_id); private: - const std::string& _internal_api() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_api( - const std::string& value); - std::string* _internal_mutable_api(); - + const std::string& _internal_org_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_org_id(const std::string& value); + std::string* _internal_mutable_org_id(); public: - // string model = 2 [json_name = "model"]; - void clear_model() ; - const std::string& model() const; - template - void set_model(Arg_&& arg, Args_... args); - std::string* mutable_model(); - PROTOBUF_NODISCARD std::string* release_model(); - void set_allocated_model(std::string* value); + // .viam.app.v1.BillingAddress billing_address = 2 [json_name = "billingAddress"]; + bool has_billing_address() const; private: - const std::string& _internal_model() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_model( - const std::string& value); - std::string* _internal_mutable_model(); - + bool _internal_has_billing_address() const; public: - // @@protoc_insertion_point(class_scope:viam.app.v1.Model) + void clear_billing_address(); + const ::viam::app::v1::BillingAddress& billing_address() const; + PROTOBUF_NODISCARD ::viam::app::v1::BillingAddress* release_billing_address(); + ::viam::app::v1::BillingAddress* mutable_billing_address(); + void set_allocated_billing_address(::viam::app::v1::BillingAddress* billing_address); + private: + const ::viam::app::v1::BillingAddress& _internal_billing_address() const; + ::viam::app::v1::BillingAddress* _internal_mutable_billing_address(); + public: + void unsafe_arena_set_allocated_billing_address( + ::viam::app::v1::BillingAddress* billing_address); + ::viam::app::v1::BillingAddress* unsafe_arena_release_billing_address(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.UpdateBillingServiceRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 34, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr api_; - ::google::protobuf::internal::ArenaStringPtr model_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr org_id_; + ::viam::app::v1::BillingAddress* billing_address_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class MarkPartForRestartResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.MarkPartForRestartResponse) */ { +class UpdateBillingServiceResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.UpdateBillingServiceResponse) */ { public: - inline MarkPartForRestartResponse() : MarkPartForRestartResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR MarkPartForRestartResponse(::google::protobuf::internal::ConstantInitialized); + inline UpdateBillingServiceResponse() : UpdateBillingServiceResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR UpdateBillingServiceResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline MarkPartForRestartResponse(const MarkPartForRestartResponse& from) - : MarkPartForRestartResponse(nullptr, from) {} - MarkPartForRestartResponse(MarkPartForRestartResponse&& from) noexcept - : MarkPartForRestartResponse() { + UpdateBillingServiceResponse(const UpdateBillingServiceResponse& from); + UpdateBillingServiceResponse(UpdateBillingServiceResponse&& from) noexcept + : UpdateBillingServiceResponse() { *this = ::std::move(from); } - inline MarkPartForRestartResponse& operator=(const MarkPartForRestartResponse& from) { + inline UpdateBillingServiceResponse& operator=(const UpdateBillingServiceResponse& from) { CopyFrom(from); return *this; } - inline MarkPartForRestartResponse& operator=(MarkPartForRestartResponse&& from) noexcept { + inline UpdateBillingServiceResponse& operator=(UpdateBillingServiceResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -7546,134 +7297,114 @@ class MarkPartForRestartResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MarkPartForRestartResponse& default_instance() { + static const UpdateBillingServiceResponse& default_instance() { return *internal_default_instance(); } - static inline const MarkPartForRestartResponse* internal_default_instance() { - return reinterpret_cast( - &_MarkPartForRestartResponse_default_instance_); + static inline const UpdateBillingServiceResponse* internal_default_instance() { + return reinterpret_cast( + &_UpdateBillingServiceResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 125; + 35; - friend void swap(MarkPartForRestartResponse& a, MarkPartForRestartResponse& b) { + friend void swap(UpdateBillingServiceResponse& a, UpdateBillingServiceResponse& b) { a.Swap(&b); } - inline void Swap(MarkPartForRestartResponse* other) { + inline void Swap(UpdateBillingServiceResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MarkPartForRestartResponse* other) { + void UnsafeArenaSwap(UpdateBillingServiceResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MarkPartForRestartResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + UpdateBillingServiceResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const MarkPartForRestartResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const UpdateBillingServiceResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const MarkPartForRestartResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const UpdateBillingServiceResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } public: private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.MarkPartForRestartResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.UpdateBillingServiceResponse"; } protected: - explicit MarkPartForRestartResponse(::google::protobuf::Arena* arena); - MarkPartForRestartResponse(::google::protobuf::Arena* arena, const MarkPartForRestartResponse& from); + explicit UpdateBillingServiceResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.app.v1.MarkPartForRestartResponse) + // @@protoc_insertion_point(class_scope:viam.app.v1.UpdateBillingServiceResponse) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class MarkPartForRestartRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.MarkPartForRestartRequest) */ { +class GetBillingServiceConfigRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetBillingServiceConfigRequest) */ { public: - inline MarkPartForRestartRequest() : MarkPartForRestartRequest(nullptr) {} - ~MarkPartForRestartRequest() override; - template - explicit PROTOBUF_CONSTEXPR MarkPartForRestartRequest(::google::protobuf::internal::ConstantInitialized); + inline GetBillingServiceConfigRequest() : GetBillingServiceConfigRequest(nullptr) {} + ~GetBillingServiceConfigRequest() override; + explicit PROTOBUF_CONSTEXPR GetBillingServiceConfigRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline MarkPartForRestartRequest(const MarkPartForRestartRequest& from) - : MarkPartForRestartRequest(nullptr, from) {} - MarkPartForRestartRequest(MarkPartForRestartRequest&& from) noexcept - : MarkPartForRestartRequest() { + GetBillingServiceConfigRequest(const GetBillingServiceConfigRequest& from); + GetBillingServiceConfigRequest(GetBillingServiceConfigRequest&& from) noexcept + : GetBillingServiceConfigRequest() { *this = ::std::move(from); } - inline MarkPartForRestartRequest& operator=(const MarkPartForRestartRequest& from) { + inline GetBillingServiceConfigRequest& operator=(const GetBillingServiceConfigRequest& from) { CopyFrom(from); return *this; } - inline MarkPartForRestartRequest& operator=(MarkPartForRestartRequest&& from) noexcept { + inline GetBillingServiceConfigRequest& operator=(GetBillingServiceConfigRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -7683,177 +7414,145 @@ class MarkPartForRestartRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MarkPartForRestartRequest& default_instance() { + static const GetBillingServiceConfigRequest& default_instance() { return *internal_default_instance(); } - static inline const MarkPartForRestartRequest* internal_default_instance() { - return reinterpret_cast( - &_MarkPartForRestartRequest_default_instance_); + static inline const GetBillingServiceConfigRequest* internal_default_instance() { + return reinterpret_cast( + &_GetBillingServiceConfigRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 124; + 36; - friend void swap(MarkPartForRestartRequest& a, MarkPartForRestartRequest& b) { + friend void swap(GetBillingServiceConfigRequest& a, GetBillingServiceConfigRequest& b) { a.Swap(&b); } - inline void Swap(MarkPartForRestartRequest* other) { + inline void Swap(GetBillingServiceConfigRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MarkPartForRestartRequest* other) { + void UnsafeArenaSwap(GetBillingServiceConfigRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MarkPartForRestartRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const MarkPartForRestartRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const MarkPartForRestartRequest& from) { - MarkPartForRestartRequest::MergeImpl(*this, from); + GetBillingServiceConfigRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetBillingServiceConfigRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetBillingServiceConfigRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(MarkPartForRestartRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetBillingServiceConfigRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.MarkPartForRestartRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.GetBillingServiceConfigRequest"; } protected: - explicit MarkPartForRestartRequest(::google::protobuf::Arena* arena); - MarkPartForRestartRequest(::google::protobuf::Arena* arena, const MarkPartForRestartRequest& from); + explicit GetBillingServiceConfigRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kPartIdFieldNumber = 1, + kOrgIdFieldNumber = 1, }; - // string part_id = 1 [json_name = "partId"]; - void clear_part_id() ; - const std::string& part_id() const; - template - void set_part_id(Arg_&& arg, Args_... args); - std::string* mutable_part_id(); - PROTOBUF_NODISCARD std::string* release_part_id(); - void set_allocated_part_id(std::string* value); - + // string org_id = 1 [json_name = "orgId"]; + void clear_org_id(); + const std::string& org_id() const; + template + void set_org_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_org_id(); + PROTOBUF_NODISCARD std::string* release_org_id(); + void set_allocated_org_id(std::string* org_id); private: - const std::string& _internal_part_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_part_id( - const std::string& value); - std::string* _internal_mutable_part_id(); - + const std::string& _internal_org_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_org_id(const std::string& value); + std::string* _internal_mutable_org_id(); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.MarkPartForRestartRequest) + + // @@protoc_insertion_point(class_scope:viam.app.v1.GetBillingServiceConfigRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 53, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr part_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr org_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class MarkPartAsMainResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.MarkPartAsMainResponse) */ { +class GetBillingServiceConfigResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetBillingServiceConfigResponse) */ { public: - inline MarkPartAsMainResponse() : MarkPartAsMainResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR MarkPartAsMainResponse(::google::protobuf::internal::ConstantInitialized); + inline GetBillingServiceConfigResponse() : GetBillingServiceConfigResponse(nullptr) {} + ~GetBillingServiceConfigResponse() override; + explicit PROTOBUF_CONSTEXPR GetBillingServiceConfigResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline MarkPartAsMainResponse(const MarkPartAsMainResponse& from) - : MarkPartAsMainResponse(nullptr, from) {} - MarkPartAsMainResponse(MarkPartAsMainResponse&& from) noexcept - : MarkPartAsMainResponse() { + GetBillingServiceConfigResponse(const GetBillingServiceConfigResponse& from); + GetBillingServiceConfigResponse(GetBillingServiceConfigResponse&& from) noexcept + : GetBillingServiceConfigResponse() { *this = ::std::move(from); } - inline MarkPartAsMainResponse& operator=(const MarkPartAsMainResponse& from) { + inline GetBillingServiceConfigResponse& operator=(const GetBillingServiceConfigResponse& from) { CopyFrom(from); return *this; } - inline MarkPartAsMainResponse& operator=(MarkPartAsMainResponse&& from) noexcept { + inline GetBillingServiceConfigResponse& operator=(GetBillingServiceConfigResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -7863,134 +7562,197 @@ class MarkPartAsMainResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MarkPartAsMainResponse& default_instance() { + static const GetBillingServiceConfigResponse& default_instance() { return *internal_default_instance(); } - static inline const MarkPartAsMainResponse* internal_default_instance() { - return reinterpret_cast( - &_MarkPartAsMainResponse_default_instance_); + static inline const GetBillingServiceConfigResponse* internal_default_instance() { + return reinterpret_cast( + &_GetBillingServiceConfigResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 123; + 37; - friend void swap(MarkPartAsMainResponse& a, MarkPartAsMainResponse& b) { + friend void swap(GetBillingServiceConfigResponse& a, GetBillingServiceConfigResponse& b) { a.Swap(&b); } - inline void Swap(MarkPartAsMainResponse* other) { + inline void Swap(GetBillingServiceConfigResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MarkPartAsMainResponse* other) { + void UnsafeArenaSwap(GetBillingServiceConfigResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MarkPartAsMainResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const MarkPartAsMainResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const MarkPartAsMainResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + GetBillingServiceConfigResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetBillingServiceConfigResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetBillingServiceConfigResponse& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.MarkPartAsMainResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetBillingServiceConfigResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.GetBillingServiceConfigResponse"; } protected: - explicit MarkPartAsMainResponse(::google::protobuf::Arena* arena); - MarkPartAsMainResponse(::google::protobuf::Arena* arena, const MarkPartAsMainResponse& from); + explicit GetBillingServiceConfigResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.app.v1.MarkPartAsMainResponse) + enum : int { + kSupportEmailFieldNumber = 2, + kLogoUrlFieldNumber = 3, + kBillingDashboardUrlFieldNumber = 4, + kBillingAddressFieldNumber = 1, + }; + // string support_email = 2 [json_name = "supportEmail"]; + void clear_support_email(); + const std::string& support_email() const; + template + void set_support_email(ArgT0&& arg0, ArgT... args); + std::string* mutable_support_email(); + PROTOBUF_NODISCARD std::string* release_support_email(); + void set_allocated_support_email(std::string* support_email); + private: + const std::string& _internal_support_email() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_support_email(const std::string& value); + std::string* _internal_mutable_support_email(); + public: + + // string logo_url = 3 [json_name = "logoUrl"]; + void clear_logo_url(); + const std::string& logo_url() const; + template + void set_logo_url(ArgT0&& arg0, ArgT... args); + std::string* mutable_logo_url(); + PROTOBUF_NODISCARD std::string* release_logo_url(); + void set_allocated_logo_url(std::string* logo_url); + private: + const std::string& _internal_logo_url() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_logo_url(const std::string& value); + std::string* _internal_mutable_logo_url(); + public: + + // string billing_dashboard_url = 4 [json_name = "billingDashboardUrl"]; + void clear_billing_dashboard_url(); + const std::string& billing_dashboard_url() const; + template + void set_billing_dashboard_url(ArgT0&& arg0, ArgT... args); + std::string* mutable_billing_dashboard_url(); + PROTOBUF_NODISCARD std::string* release_billing_dashboard_url(); + void set_allocated_billing_dashboard_url(std::string* billing_dashboard_url); + private: + const std::string& _internal_billing_dashboard_url() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_billing_dashboard_url(const std::string& value); + std::string* _internal_mutable_billing_dashboard_url(); + public: + + // .viam.app.v1.BillingAddress billing_address = 1 [json_name = "billingAddress"]; + bool has_billing_address() const; + private: + bool _internal_has_billing_address() const; + public: + void clear_billing_address(); + const ::viam::app::v1::BillingAddress& billing_address() const; + PROTOBUF_NODISCARD ::viam::app::v1::BillingAddress* release_billing_address(); + ::viam::app::v1::BillingAddress* mutable_billing_address(); + void set_allocated_billing_address(::viam::app::v1::BillingAddress* billing_address); + private: + const ::viam::app::v1::BillingAddress& _internal_billing_address() const; + ::viam::app::v1::BillingAddress* _internal_mutable_billing_address(); + public: + void unsafe_arena_set_allocated_billing_address( + ::viam::app::v1::BillingAddress* billing_address); + ::viam::app::v1::BillingAddress* unsafe_arena_release_billing_address(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.GetBillingServiceConfigResponse) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr support_email_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr logo_url_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr billing_dashboard_url_; + ::viam::app::v1::BillingAddress* billing_address_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class MarkPartAsMainRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.MarkPartAsMainRequest) */ { +class DisableBillingServiceRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.DisableBillingServiceRequest) */ { public: - inline MarkPartAsMainRequest() : MarkPartAsMainRequest(nullptr) {} - ~MarkPartAsMainRequest() override; - template - explicit PROTOBUF_CONSTEXPR MarkPartAsMainRequest(::google::protobuf::internal::ConstantInitialized); + inline DisableBillingServiceRequest() : DisableBillingServiceRequest(nullptr) {} + ~DisableBillingServiceRequest() override; + explicit PROTOBUF_CONSTEXPR DisableBillingServiceRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline MarkPartAsMainRequest(const MarkPartAsMainRequest& from) - : MarkPartAsMainRequest(nullptr, from) {} - MarkPartAsMainRequest(MarkPartAsMainRequest&& from) noexcept - : MarkPartAsMainRequest() { + DisableBillingServiceRequest(const DisableBillingServiceRequest& from); + DisableBillingServiceRequest(DisableBillingServiceRequest&& from) noexcept + : DisableBillingServiceRequest() { *this = ::std::move(from); } - inline MarkPartAsMainRequest& operator=(const MarkPartAsMainRequest& from) { + inline DisableBillingServiceRequest& operator=(const DisableBillingServiceRequest& from) { CopyFrom(from); return *this; } - inline MarkPartAsMainRequest& operator=(MarkPartAsMainRequest&& from) noexcept { + inline DisableBillingServiceRequest& operator=(DisableBillingServiceRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -8000,178 +7762,144 @@ class MarkPartAsMainRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MarkPartAsMainRequest& default_instance() { + static const DisableBillingServiceRequest& default_instance() { return *internal_default_instance(); } - static inline const MarkPartAsMainRequest* internal_default_instance() { - return reinterpret_cast( - &_MarkPartAsMainRequest_default_instance_); + static inline const DisableBillingServiceRequest* internal_default_instance() { + return reinterpret_cast( + &_DisableBillingServiceRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 122; + 38; - friend void swap(MarkPartAsMainRequest& a, MarkPartAsMainRequest& b) { + friend void swap(DisableBillingServiceRequest& a, DisableBillingServiceRequest& b) { a.Swap(&b); } - inline void Swap(MarkPartAsMainRequest* other) { + inline void Swap(DisableBillingServiceRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MarkPartAsMainRequest* other) { + void UnsafeArenaSwap(DisableBillingServiceRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MarkPartAsMainRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const MarkPartAsMainRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const MarkPartAsMainRequest& from) { - MarkPartAsMainRequest::MergeImpl(*this, from); + DisableBillingServiceRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DisableBillingServiceRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const DisableBillingServiceRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(MarkPartAsMainRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(DisableBillingServiceRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.MarkPartAsMainRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.DisableBillingServiceRequest"; } protected: - explicit MarkPartAsMainRequest(::google::protobuf::Arena* arena); - MarkPartAsMainRequest(::google::protobuf::Arena* arena, const MarkPartAsMainRequest& from); + explicit DisableBillingServiceRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kPartIdFieldNumber = 1, + kOrgIdFieldNumber = 1, }; - // string part_id = 1 [json_name = "partId"]; - void clear_part_id() ; - const std::string& part_id() const; - template - void set_part_id(Arg_&& arg, Args_... args); - std::string* mutable_part_id(); - PROTOBUF_NODISCARD std::string* release_part_id(); - void set_allocated_part_id(std::string* value); - + // string org_id = 1 [json_name = "orgId"]; + void clear_org_id(); + const std::string& org_id() const; + template + void set_org_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_org_id(); + PROTOBUF_NODISCARD std::string* release_org_id(); + void set_allocated_org_id(std::string* org_id); private: - const std::string& _internal_part_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_part_id( - const std::string& value); - std::string* _internal_mutable_part_id(); - + const std::string& _internal_org_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_org_id(const std::string& value); + std::string* _internal_mutable_org_id(); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.MarkPartAsMainRequest) + + // @@protoc_insertion_point(class_scope:viam.app.v1.DisableBillingServiceRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 49, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr part_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr org_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class MLModelMetadata final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.MLModelMetadata) */ { +class DisableBillingServiceResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.DisableBillingServiceResponse) */ { public: - inline MLModelMetadata() : MLModelMetadata(nullptr) {} - ~MLModelMetadata() override; - template - explicit PROTOBUF_CONSTEXPR MLModelMetadata(::google::protobuf::internal::ConstantInitialized); + inline DisableBillingServiceResponse() : DisableBillingServiceResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR DisableBillingServiceResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline MLModelMetadata(const MLModelMetadata& from) - : MLModelMetadata(nullptr, from) {} - MLModelMetadata(MLModelMetadata&& from) noexcept - : MLModelMetadata() { + DisableBillingServiceResponse(const DisableBillingServiceResponse& from); + DisableBillingServiceResponse(DisableBillingServiceResponse&& from) noexcept + : DisableBillingServiceResponse() { *this = ::std::move(from); } - inline MLModelMetadata& operator=(const MLModelMetadata& from) { + inline DisableBillingServiceResponse& operator=(const DisableBillingServiceResponse& from) { CopyFrom(from); return *this; } - inline MLModelMetadata& operator=(MLModelMetadata&& from) noexcept { + inline DisableBillingServiceResponse& operator=(DisableBillingServiceResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -8181,214 +7909,114 @@ class MLModelMetadata final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MLModelMetadata& default_instance() { + static const DisableBillingServiceResponse& default_instance() { return *internal_default_instance(); } - static inline const MLModelMetadata* internal_default_instance() { - return reinterpret_cast( - &_MLModelMetadata_default_instance_); + static inline const DisableBillingServiceResponse* internal_default_instance() { + return reinterpret_cast( + &_DisableBillingServiceResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 144; + 39; - friend void swap(MLModelMetadata& a, MLModelMetadata& b) { + friend void swap(DisableBillingServiceResponse& a, DisableBillingServiceResponse& b) { a.Swap(&b); } - inline void Swap(MLModelMetadata* other) { + inline void Swap(DisableBillingServiceResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MLModelMetadata* other) { + void UnsafeArenaSwap(DisableBillingServiceResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MLModelMetadata* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + DisableBillingServiceResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const MLModelMetadata& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const MLModelMetadata& from) { - MLModelMetadata::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const DisableBillingServiceResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const DisableBillingServiceResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(MLModelMetadata* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.MLModelMetadata"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.DisableBillingServiceResponse"; } protected: - explicit MLModelMetadata(::google::protobuf::Arena* arena); - MLModelMetadata(::google::protobuf::Arena* arena, const MLModelMetadata& from); + explicit DisableBillingServiceResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kVersionsFieldNumber = 1, - kModelTypeFieldNumber = 2, - kModelFrameworkFieldNumber = 3, - }; - // repeated string versions = 1 [json_name = "versions"]; - int versions_size() const; - private: - int _internal_versions_size() const; - - public: - void clear_versions() ; - const std::string& versions(int index) const; - std::string* mutable_versions(int index); - void set_versions(int index, const std::string& value); - void set_versions(int index, std::string&& value); - void set_versions(int index, const char* value); - void set_versions(int index, const char* value, std::size_t size); - void set_versions(int index, absl::string_view value); - std::string* add_versions(); - void add_versions(const std::string& value); - void add_versions(std::string&& value); - void add_versions(const char* value); - void add_versions(const char* value, std::size_t size); - void add_versions(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& versions() const; - ::google::protobuf::RepeatedPtrField* mutable_versions(); - - private: - const ::google::protobuf::RepeatedPtrField& _internal_versions() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_versions(); - - public: - // .viam.app.mltraining.v1.ModelType model_type = 2 [json_name = "modelType"]; - void clear_model_type() ; - ::viam::app::mltraining::v1::ModelType model_type() const; - void set_model_type(::viam::app::mltraining::v1::ModelType value); - - private: - ::viam::app::mltraining::v1::ModelType _internal_model_type() const; - void _internal_set_model_type(::viam::app::mltraining::v1::ModelType value); - - public: - // .viam.app.mltraining.v1.ModelFramework model_framework = 3 [json_name = "modelFramework"]; - void clear_model_framework() ; - ::viam::app::mltraining::v1::ModelFramework model_framework() const; - void set_model_framework(::viam::app::mltraining::v1::ModelFramework value); - - private: - ::viam::app::mltraining::v1::ModelFramework _internal_model_framework() const; - void _internal_set_model_framework(::viam::app::mltraining::v1::ModelFramework value); - - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.MLModelMetadata) + // @@protoc_insertion_point(class_scope:viam.app.v1.DisableBillingServiceResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 0, - 44, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField versions_; - int model_type_; - int model_framework_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class LocationOrganization final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.LocationOrganization) */ { +class OrganizationSetSupportEmailRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.OrganizationSetSupportEmailRequest) */ { public: - inline LocationOrganization() : LocationOrganization(nullptr) {} - ~LocationOrganization() override; - template - explicit PROTOBUF_CONSTEXPR LocationOrganization(::google::protobuf::internal::ConstantInitialized); + inline OrganizationSetSupportEmailRequest() : OrganizationSetSupportEmailRequest(nullptr) {} + ~OrganizationSetSupportEmailRequest() override; + explicit PROTOBUF_CONSTEXPR OrganizationSetSupportEmailRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline LocationOrganization(const LocationOrganization& from) - : LocationOrganization(nullptr, from) {} - LocationOrganization(LocationOrganization&& from) noexcept - : LocationOrganization() { + OrganizationSetSupportEmailRequest(const OrganizationSetSupportEmailRequest& from); + OrganizationSetSupportEmailRequest(OrganizationSetSupportEmailRequest&& from) noexcept + : OrganizationSetSupportEmailRequest() { *this = ::std::move(from); } - inline LocationOrganization& operator=(const LocationOrganization& from) { + inline OrganizationSetSupportEmailRequest& operator=(const OrganizationSetSupportEmailRequest& from) { CopyFrom(from); return *this; } - inline LocationOrganization& operator=(LocationOrganization&& from) noexcept { + inline OrganizationSetSupportEmailRequest& operator=(OrganizationSetSupportEmailRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -8398,190 +8026,160 @@ class LocationOrganization final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const LocationOrganization& default_instance() { + static const OrganizationSetSupportEmailRequest& default_instance() { return *internal_default_instance(); } - static inline const LocationOrganization* internal_default_instance() { - return reinterpret_cast( - &_LocationOrganization_default_instance_); + static inline const OrganizationSetSupportEmailRequest* internal_default_instance() { + return reinterpret_cast( + &_OrganizationSetSupportEmailRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 45; + 40; - friend void swap(LocationOrganization& a, LocationOrganization& b) { + friend void swap(OrganizationSetSupportEmailRequest& a, OrganizationSetSupportEmailRequest& b) { a.Swap(&b); } - inline void Swap(LocationOrganization* other) { + inline void Swap(OrganizationSetSupportEmailRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(LocationOrganization* other) { + void UnsafeArenaSwap(OrganizationSetSupportEmailRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - LocationOrganization* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const LocationOrganization& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const LocationOrganization& from) { - LocationOrganization::MergeImpl(*this, from); + OrganizationSetSupportEmailRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const OrganizationSetSupportEmailRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const OrganizationSetSupportEmailRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(LocationOrganization* other); + void SetCachedSize(int size) const final; + void InternalSwap(OrganizationSetSupportEmailRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.LocationOrganization"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.OrganizationSetSupportEmailRequest"; } protected: - explicit LocationOrganization(::google::protobuf::Arena* arena); - LocationOrganization(::google::protobuf::Arena* arena, const LocationOrganization& from); + explicit OrganizationSetSupportEmailRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kOrganizationIdFieldNumber = 1, - kPrimaryFieldNumber = 2, + kOrgIdFieldNumber = 1, + kEmailFieldNumber = 2, }; - // string organization_id = 1 [json_name = "organizationId"]; - void clear_organization_id() ; - const std::string& organization_id() const; - template - void set_organization_id(Arg_&& arg, Args_... args); - std::string* mutable_organization_id(); - PROTOBUF_NODISCARD std::string* release_organization_id(); - void set_allocated_organization_id(std::string* value); - + // string org_id = 1 [json_name = "orgId"]; + void clear_org_id(); + const std::string& org_id() const; + template + void set_org_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_org_id(); + PROTOBUF_NODISCARD std::string* release_org_id(); + void set_allocated_org_id(std::string* org_id); private: - const std::string& _internal_organization_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id( - const std::string& value); - std::string* _internal_mutable_organization_id(); - + const std::string& _internal_org_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_org_id(const std::string& value); + std::string* _internal_mutable_org_id(); public: - // bool primary = 2 [json_name = "primary"]; - void clear_primary() ; - bool primary() const; - void set_primary(bool value); + // string email = 2 [json_name = "email"]; + void clear_email(); + const std::string& email() const; + template + void set_email(ArgT0&& arg0, ArgT... args); + std::string* mutable_email(); + PROTOBUF_NODISCARD std::string* release_email(); + void set_allocated_email(std::string* email); private: - bool _internal_primary() const; - void _internal_set_primary(bool value); - + const std::string& _internal_email() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_email(const std::string& value); + std::string* _internal_mutable_email(); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.LocationOrganization) + + // @@protoc_insertion_point(class_scope:viam.app.v1.OrganizationSetSupportEmailRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 56, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr organization_id_; - bool primary_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr org_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr email_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class LocationAuthRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.LocationAuthRequest) */ { +class OrganizationSetSupportEmailResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.OrganizationSetSupportEmailResponse) */ { public: - inline LocationAuthRequest() : LocationAuthRequest(nullptr) {} - ~LocationAuthRequest() override; - template - explicit PROTOBUF_CONSTEXPR LocationAuthRequest(::google::protobuf::internal::ConstantInitialized); + inline OrganizationSetSupportEmailResponse() : OrganizationSetSupportEmailResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR OrganizationSetSupportEmailResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline LocationAuthRequest(const LocationAuthRequest& from) - : LocationAuthRequest(nullptr, from) {} - LocationAuthRequest(LocationAuthRequest&& from) noexcept - : LocationAuthRequest() { + OrganizationSetSupportEmailResponse(const OrganizationSetSupportEmailResponse& from); + OrganizationSetSupportEmailResponse(OrganizationSetSupportEmailResponse&& from) noexcept + : OrganizationSetSupportEmailResponse() { *this = ::std::move(from); } - inline LocationAuthRequest& operator=(const LocationAuthRequest& from) { + inline OrganizationSetSupportEmailResponse& operator=(const OrganizationSetSupportEmailResponse& from) { CopyFrom(from); return *this; } - inline LocationAuthRequest& operator=(LocationAuthRequest&& from) noexcept { + inline OrganizationSetSupportEmailResponse& operator=(OrganizationSetSupportEmailResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -8591,178 +8189,114 @@ class LocationAuthRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const LocationAuthRequest& default_instance() { + static const OrganizationSetSupportEmailResponse& default_instance() { return *internal_default_instance(); } - static inline const LocationAuthRequest* internal_default_instance() { - return reinterpret_cast( - &_LocationAuthRequest_default_instance_); + static inline const OrganizationSetSupportEmailResponse* internal_default_instance() { + return reinterpret_cast( + &_OrganizationSetSupportEmailResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 70; + 41; - friend void swap(LocationAuthRequest& a, LocationAuthRequest& b) { + friend void swap(OrganizationSetSupportEmailResponse& a, OrganizationSetSupportEmailResponse& b) { a.Swap(&b); } - inline void Swap(LocationAuthRequest* other) { + inline void Swap(OrganizationSetSupportEmailResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(LocationAuthRequest* other) { + void UnsafeArenaSwap(OrganizationSetSupportEmailResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - LocationAuthRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + OrganizationSetSupportEmailResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const LocationAuthRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const LocationAuthRequest& from) { - LocationAuthRequest::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const OrganizationSetSupportEmailResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const OrganizationSetSupportEmailResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(LocationAuthRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.LocationAuthRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.OrganizationSetSupportEmailResponse"; } protected: - explicit LocationAuthRequest(::google::protobuf::Arena* arena); - LocationAuthRequest(::google::protobuf::Arena* arena, const LocationAuthRequest& from); + explicit OrganizationSetSupportEmailResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kLocationIdFieldNumber = 1, - }; - // string location_id = 1 [json_name = "locationId"]; - void clear_location_id() ; - const std::string& location_id() const; - template - void set_location_id(Arg_&& arg, Args_... args); - std::string* mutable_location_id(); - PROTOBUF_NODISCARD std::string* release_location_id(); - void set_allocated_location_id(std::string* value); - - private: - const std::string& _internal_location_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_location_id( - const std::string& value); - std::string* _internal_mutable_location_id(); - - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.LocationAuthRequest) + // @@protoc_insertion_point(class_scope:viam.app.v1.OrganizationSetSupportEmailResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 51, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr location_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ListRobotsRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ListRobotsRequest) */ { +class OrganizationGetSupportEmailRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.OrganizationGetSupportEmailRequest) */ { public: - inline ListRobotsRequest() : ListRobotsRequest(nullptr) {} - ~ListRobotsRequest() override; - template - explicit PROTOBUF_CONSTEXPR ListRobotsRequest(::google::protobuf::internal::ConstantInitialized); + inline OrganizationGetSupportEmailRequest() : OrganizationGetSupportEmailRequest(nullptr) {} + ~OrganizationGetSupportEmailRequest() override; + explicit PROTOBUF_CONSTEXPR OrganizationGetSupportEmailRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ListRobotsRequest(const ListRobotsRequest& from) - : ListRobotsRequest(nullptr, from) {} - ListRobotsRequest(ListRobotsRequest&& from) noexcept - : ListRobotsRequest() { + OrganizationGetSupportEmailRequest(const OrganizationGetSupportEmailRequest& from); + OrganizationGetSupportEmailRequest(OrganizationGetSupportEmailRequest&& from) noexcept + : OrganizationGetSupportEmailRequest() { *this = ::std::move(from); } - inline ListRobotsRequest& operator=(const ListRobotsRequest& from) { + inline OrganizationGetSupportEmailRequest& operator=(const OrganizationGetSupportEmailRequest& from) { CopyFrom(from); return *this; } - inline ListRobotsRequest& operator=(ListRobotsRequest&& from) noexcept { + inline OrganizationGetSupportEmailRequest& operator=(OrganizationGetSupportEmailRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -8772,178 +8306,145 @@ class ListRobotsRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ListRobotsRequest& default_instance() { + static const OrganizationGetSupportEmailRequest& default_instance() { return *internal_default_instance(); } - static inline const ListRobotsRequest* internal_default_instance() { - return reinterpret_cast( - &_ListRobotsRequest_default_instance_); + static inline const OrganizationGetSupportEmailRequest* internal_default_instance() { + return reinterpret_cast( + &_OrganizationGetSupportEmailRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 112; + 42; - friend void swap(ListRobotsRequest& a, ListRobotsRequest& b) { + friend void swap(OrganizationGetSupportEmailRequest& a, OrganizationGetSupportEmailRequest& b) { a.Swap(&b); } - inline void Swap(ListRobotsRequest* other) { + inline void Swap(OrganizationGetSupportEmailRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ListRobotsRequest* other) { + void UnsafeArenaSwap(OrganizationGetSupportEmailRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ListRobotsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ListRobotsRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ListRobotsRequest& from) { - ListRobotsRequest::MergeImpl(*this, from); + OrganizationGetSupportEmailRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const OrganizationGetSupportEmailRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const OrganizationGetSupportEmailRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ListRobotsRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(OrganizationGetSupportEmailRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.ListRobotsRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.OrganizationGetSupportEmailRequest"; } protected: - explicit ListRobotsRequest(::google::protobuf::Arena* arena); - ListRobotsRequest(::google::protobuf::Arena* arena, const ListRobotsRequest& from); + explicit OrganizationGetSupportEmailRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kLocationIdFieldNumber = 1, + kOrgIdFieldNumber = 1, }; - // string location_id = 1 [json_name = "locationId"]; - void clear_location_id() ; - const std::string& location_id() const; - template - void set_location_id(Arg_&& arg, Args_... args); - std::string* mutable_location_id(); - PROTOBUF_NODISCARD std::string* release_location_id(); - void set_allocated_location_id(std::string* value); - + // string org_id = 1 [json_name = "orgId"]; + void clear_org_id(); + const std::string& org_id() const; + template + void set_org_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_org_id(); + PROTOBUF_NODISCARD std::string* release_org_id(); + void set_allocated_org_id(std::string* org_id); private: - const std::string& _internal_location_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_location_id( - const std::string& value); - std::string* _internal_mutable_location_id(); - + const std::string& _internal_org_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_org_id(const std::string& value); + std::string* _internal_mutable_org_id(); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.ListRobotsRequest) + + // @@protoc_insertion_point(class_scope:viam.app.v1.OrganizationGetSupportEmailRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 49, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr location_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr org_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ListRegistryItemsRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ListRegistryItemsRequest) */ { +class OrganizationGetSupportEmailResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.OrganizationGetSupportEmailResponse) */ { public: - inline ListRegistryItemsRequest() : ListRegistryItemsRequest(nullptr) {} - ~ListRegistryItemsRequest() override; - template - explicit PROTOBUF_CONSTEXPR ListRegistryItemsRequest(::google::protobuf::internal::ConstantInitialized); + inline OrganizationGetSupportEmailResponse() : OrganizationGetSupportEmailResponse(nullptr) {} + ~OrganizationGetSupportEmailResponse() override; + explicit PROTOBUF_CONSTEXPR OrganizationGetSupportEmailResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ListRegistryItemsRequest(const ListRegistryItemsRequest& from) - : ListRegistryItemsRequest(nullptr, from) {} - ListRegistryItemsRequest(ListRegistryItemsRequest&& from) noexcept - : ListRegistryItemsRequest() { + OrganizationGetSupportEmailResponse(const OrganizationGetSupportEmailResponse& from); + OrganizationGetSupportEmailResponse(OrganizationGetSupportEmailResponse&& from) noexcept + : OrganizationGetSupportEmailResponse() { *this = ::std::move(from); } - inline ListRegistryItemsRequest& operator=(const ListRegistryItemsRequest& from) { + inline OrganizationGetSupportEmailResponse& operator=(const OrganizationGetSupportEmailResponse& from) { CopyFrom(from); return *this; } - inline ListRegistryItemsRequest& operator=(ListRegistryItemsRequest&& from) noexcept { + inline OrganizationGetSupportEmailResponse& operator=(OrganizationGetSupportEmailResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -8953,343 +8454,145 @@ class ListRegistryItemsRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ListRegistryItemsRequest& default_instance() { + static const OrganizationGetSupportEmailResponse& default_instance() { return *internal_default_instance(); } - static inline const ListRegistryItemsRequest* internal_default_instance() { - return reinterpret_cast( - &_ListRegistryItemsRequest_default_instance_); + static inline const OrganizationGetSupportEmailResponse* internal_default_instance() { + return reinterpret_cast( + &_OrganizationGetSupportEmailResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 154; + 43; - friend void swap(ListRegistryItemsRequest& a, ListRegistryItemsRequest& b) { + friend void swap(OrganizationGetSupportEmailResponse& a, OrganizationGetSupportEmailResponse& b) { a.Swap(&b); } - inline void Swap(ListRegistryItemsRequest* other) { + inline void Swap(OrganizationGetSupportEmailResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ListRegistryItemsRequest* other) { + void UnsafeArenaSwap(OrganizationGetSupportEmailResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ListRegistryItemsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ListRegistryItemsRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ListRegistryItemsRequest& from) { - ListRegistryItemsRequest::MergeImpl(*this, from); + OrganizationGetSupportEmailResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const OrganizationGetSupportEmailResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const OrganizationGetSupportEmailResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ListRegistryItemsRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(OrganizationGetSupportEmailResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.ListRegistryItemsRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.OrganizationGetSupportEmailResponse"; } protected: - explicit ListRegistryItemsRequest(::google::protobuf::Arena* arena); - ListRegistryItemsRequest(::google::protobuf::Arena* arena, const ListRegistryItemsRequest& from); + explicit OrganizationGetSupportEmailResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kTypesFieldNumber = 2, - kVisibilitiesFieldNumber = 3, - kPlatformsFieldNumber = 4, - kStatusesFieldNumber = 5, - kPublicNamespacesFieldNumber = 8, - kOrganizationIdFieldNumber = 1, - kSearchTermFieldNumber = 6, - kPageTokenFieldNumber = 7, + kEmailFieldNumber = 1, }; - // repeated .viam.app.packages.v1.PackageType types = 2 [json_name = "types"]; - int types_size() const; - private: - int _internal_types_size() const; - - public: - void clear_types() ; - public: - ::viam::app::packages::v1::PackageType types(int index) const; - void set_types(int index, ::viam::app::packages::v1::PackageType value); - void add_types(::viam::app::packages::v1::PackageType value); - const ::google::protobuf::RepeatedField& types() const; - ::google::protobuf::RepeatedField* mutable_types(); - - private: - const ::google::protobuf::RepeatedField& _internal_types() const; - ::google::protobuf::RepeatedField* _internal_mutable_types(); - - public: - // repeated .viam.app.v1.Visibility visibilities = 3 [json_name = "visibilities"]; - int visibilities_size() const; - private: - int _internal_visibilities_size() const; - - public: - void clear_visibilities() ; - public: - ::viam::app::v1::Visibility visibilities(int index) const; - void set_visibilities(int index, ::viam::app::v1::Visibility value); - void add_visibilities(::viam::app::v1::Visibility value); - const ::google::protobuf::RepeatedField& visibilities() const; - ::google::protobuf::RepeatedField* mutable_visibilities(); - - private: - const ::google::protobuf::RepeatedField& _internal_visibilities() const; - ::google::protobuf::RepeatedField* _internal_mutable_visibilities(); - - public: - // repeated string platforms = 4 [json_name = "platforms"]; - int platforms_size() const; - private: - int _internal_platforms_size() const; - - public: - void clear_platforms() ; - const std::string& platforms(int index) const; - std::string* mutable_platforms(int index); - void set_platforms(int index, const std::string& value); - void set_platforms(int index, std::string&& value); - void set_platforms(int index, const char* value); - void set_platforms(int index, const char* value, std::size_t size); - void set_platforms(int index, absl::string_view value); - std::string* add_platforms(); - void add_platforms(const std::string& value); - void add_platforms(std::string&& value); - void add_platforms(const char* value); - void add_platforms(const char* value, std::size_t size); - void add_platforms(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& platforms() const; - ::google::protobuf::RepeatedPtrField* mutable_platforms(); - - private: - const ::google::protobuf::RepeatedPtrField& _internal_platforms() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_platforms(); - - public: - // repeated .viam.app.v1.RegistryItemStatus statuses = 5 [json_name = "statuses"]; - int statuses_size() const; - private: - int _internal_statuses_size() const; - - public: - void clear_statuses() ; - public: - ::viam::app::v1::RegistryItemStatus statuses(int index) const; - void set_statuses(int index, ::viam::app::v1::RegistryItemStatus value); - void add_statuses(::viam::app::v1::RegistryItemStatus value); - const ::google::protobuf::RepeatedField& statuses() const; - ::google::protobuf::RepeatedField* mutable_statuses(); - - private: - const ::google::protobuf::RepeatedField& _internal_statuses() const; - ::google::protobuf::RepeatedField* _internal_mutable_statuses(); - - public: - // repeated string public_namespaces = 8 [json_name = "publicNamespaces"]; - int public_namespaces_size() const; - private: - int _internal_public_namespaces_size() const; - - public: - void clear_public_namespaces() ; - const std::string& public_namespaces(int index) const; - std::string* mutable_public_namespaces(int index); - void set_public_namespaces(int index, const std::string& value); - void set_public_namespaces(int index, std::string&& value); - void set_public_namespaces(int index, const char* value); - void set_public_namespaces(int index, const char* value, std::size_t size); - void set_public_namespaces(int index, absl::string_view value); - std::string* add_public_namespaces(); - void add_public_namespaces(const std::string& value); - void add_public_namespaces(std::string&& value); - void add_public_namespaces(const char* value); - void add_public_namespaces(const char* value, std::size_t size); - void add_public_namespaces(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& public_namespaces() const; - ::google::protobuf::RepeatedPtrField* mutable_public_namespaces(); - - private: - const ::google::protobuf::RepeatedPtrField& _internal_public_namespaces() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_public_namespaces(); - - public: - // optional string organization_id = 1 [json_name = "organizationId"]; - bool has_organization_id() const; - void clear_organization_id() ; - const std::string& organization_id() const; - template - void set_organization_id(Arg_&& arg, Args_... args); - std::string* mutable_organization_id(); - PROTOBUF_NODISCARD std::string* release_organization_id(); - void set_allocated_organization_id(std::string* value); - - private: - const std::string& _internal_organization_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id( - const std::string& value); - std::string* _internal_mutable_organization_id(); - - public: - // optional string search_term = 6 [json_name = "searchTerm"]; - bool has_search_term() const; - void clear_search_term() ; - const std::string& search_term() const; - template - void set_search_term(Arg_&& arg, Args_... args); - std::string* mutable_search_term(); - PROTOBUF_NODISCARD std::string* release_search_term(); - void set_allocated_search_term(std::string* value); - + // string email = 1 [json_name = "email"]; + void clear_email(); + const std::string& email() const; + template + void set_email(ArgT0&& arg0, ArgT... args); + std::string* mutable_email(); + PROTOBUF_NODISCARD std::string* release_email(); + void set_allocated_email(std::string* email); private: - const std::string& _internal_search_term() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_search_term( - const std::string& value); - std::string* _internal_mutable_search_term(); - + const std::string& _internal_email() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_email(const std::string& value); + std::string* _internal_mutable_email(); public: - // optional string page_token = 7 [json_name = "pageToken"]; - bool has_page_token() const; - void clear_page_token() ; - const std::string& page_token() const; - template - void set_page_token(Arg_&& arg, Args_... args); - std::string* mutable_page_token(); - PROTOBUF_NODISCARD std::string* release_page_token(); - void set_allocated_page_token(std::string* value); - - private: - const std::string& _internal_page_token() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_page_token( - const std::string& value); - std::string* _internal_mutable_page_token(); - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.ListRegistryItemsRequest) + // @@protoc_insertion_point(class_scope:viam.app.v1.OrganizationGetSupportEmailResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 8, 0, - 115, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedField types_; - mutable ::google::protobuf::internal::CachedSize _types_cached_byte_size_; - ::google::protobuf::RepeatedField visibilities_; - mutable ::google::protobuf::internal::CachedSize _visibilities_cached_byte_size_; - ::google::protobuf::RepeatedPtrField platforms_; - ::google::protobuf::RepeatedField statuses_; - mutable ::google::protobuf::internal::CachedSize _statuses_cached_byte_size_; - ::google::protobuf::RepeatedPtrField public_namespaces_; - ::google::protobuf::internal::ArenaStringPtr organization_id_; - ::google::protobuf::internal::ArenaStringPtr search_term_; - ::google::protobuf::internal::ArenaStringPtr page_token_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr email_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ListOrganizationsRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.ListOrganizationsRequest) */ { +class OrganizationIdentity final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.OrganizationIdentity) */ { public: - inline ListOrganizationsRequest() : ListOrganizationsRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR ListOrganizationsRequest(::google::protobuf::internal::ConstantInitialized); + inline OrganizationIdentity() : OrganizationIdentity(nullptr) {} + ~OrganizationIdentity() override; + explicit PROTOBUF_CONSTEXPR OrganizationIdentity(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ListOrganizationsRequest(const ListOrganizationsRequest& from) - : ListOrganizationsRequest(nullptr, from) {} - ListOrganizationsRequest(ListOrganizationsRequest&& from) noexcept - : ListOrganizationsRequest() { + OrganizationIdentity(const OrganizationIdentity& from); + OrganizationIdentity(OrganizationIdentity&& from) noexcept + : OrganizationIdentity() { *this = ::std::move(from); } - inline ListOrganizationsRequest& operator=(const ListOrganizationsRequest& from) { + inline OrganizationIdentity& operator=(const OrganizationIdentity& from) { CopyFrom(from); return *this; } - inline ListOrganizationsRequest& operator=(ListOrganizationsRequest&& from) noexcept { + inline OrganizationIdentity& operator=(OrganizationIdentity&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -9299,134 +8602,161 @@ class ListOrganizationsRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ListOrganizationsRequest& default_instance() { + static const OrganizationIdentity& default_instance() { return *internal_default_instance(); } - static inline const ListOrganizationsRequest* internal_default_instance() { - return reinterpret_cast( - &_ListOrganizationsRequest_default_instance_); + static inline const OrganizationIdentity* internal_default_instance() { + return reinterpret_cast( + &_OrganizationIdentity_default_instance_); } static constexpr int kIndexInFileMessages = - 4; + 44; - friend void swap(ListOrganizationsRequest& a, ListOrganizationsRequest& b) { + friend void swap(OrganizationIdentity& a, OrganizationIdentity& b) { a.Swap(&b); } - inline void Swap(ListOrganizationsRequest* other) { + inline void Swap(OrganizationIdentity* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ListOrganizationsRequest* other) { + void UnsafeArenaSwap(OrganizationIdentity* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ListOrganizationsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const ListOrganizationsRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const ListOrganizationsRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + OrganizationIdentity* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const OrganizationIdentity& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const OrganizationIdentity& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.ListOrganizationsRequest"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(OrganizationIdentity* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.OrganizationIdentity"; } protected: - explicit ListOrganizationsRequest(::google::protobuf::Arena* arena); - ListOrganizationsRequest(::google::protobuf::Arena* arena, const ListOrganizationsRequest& from); + explicit OrganizationIdentity(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.app.v1.ListOrganizationsRequest) + enum : int { + kIdFieldNumber = 1, + kNameFieldNumber = 2, + }; + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + + // string name = 2 [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: + + // @@protoc_insertion_point(class_scope:viam.app.v1.OrganizationIdentity) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ListOrganizationsByUserRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ListOrganizationsByUserRequest) */ { +class LocationOrganization final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.LocationOrganization) */ { public: - inline ListOrganizationsByUserRequest() : ListOrganizationsByUserRequest(nullptr) {} - ~ListOrganizationsByUserRequest() override; - template - explicit PROTOBUF_CONSTEXPR ListOrganizationsByUserRequest(::google::protobuf::internal::ConstantInitialized); + inline LocationOrganization() : LocationOrganization(nullptr) {} + ~LocationOrganization() override; + explicit PROTOBUF_CONSTEXPR LocationOrganization(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ListOrganizationsByUserRequest(const ListOrganizationsByUserRequest& from) - : ListOrganizationsByUserRequest(nullptr, from) {} - ListOrganizationsByUserRequest(ListOrganizationsByUserRequest&& from) noexcept - : ListOrganizationsByUserRequest() { + LocationOrganization(const LocationOrganization& from); + LocationOrganization(LocationOrganization&& from) noexcept + : LocationOrganization() { *this = ::std::move(from); } - inline ListOrganizationsByUserRequest& operator=(const ListOrganizationsByUserRequest& from) { + inline LocationOrganization& operator=(const LocationOrganization& from) { CopyFrom(from); return *this; } - inline ListOrganizationsByUserRequest& operator=(ListOrganizationsByUserRequest&& from) noexcept { + inline LocationOrganization& operator=(LocationOrganization&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -9436,178 +8766,156 @@ class ListOrganizationsByUserRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ListOrganizationsByUserRequest& default_instance() { + static const LocationOrganization& default_instance() { return *internal_default_instance(); } - static inline const ListOrganizationsByUserRequest* internal_default_instance() { - return reinterpret_cast( - &_ListOrganizationsByUserRequest_default_instance_); + static inline const LocationOrganization* internal_default_instance() { + return reinterpret_cast( + &_LocationOrganization_default_instance_); } static constexpr int kIndexInFileMessages = - 177; + 45; - friend void swap(ListOrganizationsByUserRequest& a, ListOrganizationsByUserRequest& b) { + friend void swap(LocationOrganization& a, LocationOrganization& b) { a.Swap(&b); } - inline void Swap(ListOrganizationsByUserRequest* other) { + inline void Swap(LocationOrganization* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ListOrganizationsByUserRequest* other) { + void UnsafeArenaSwap(LocationOrganization* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ListOrganizationsByUserRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ListOrganizationsByUserRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ListOrganizationsByUserRequest& from) { - ListOrganizationsByUserRequest::MergeImpl(*this, from); + LocationOrganization* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const LocationOrganization& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const LocationOrganization& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ListOrganizationsByUserRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(LocationOrganization* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.ListOrganizationsByUserRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.LocationOrganization"; } protected: - explicit ListOrganizationsByUserRequest(::google::protobuf::Arena* arena); - ListOrganizationsByUserRequest(::google::protobuf::Arena* arena, const ListOrganizationsByUserRequest& from); + explicit LocationOrganization(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kUserIdFieldNumber = 1, + kOrganizationIdFieldNumber = 1, + kPrimaryFieldNumber = 2, }; - // string user_id = 1 [json_name = "userId"]; - void clear_user_id() ; - const std::string& user_id() const; - template - void set_user_id(Arg_&& arg, Args_... args); - std::string* mutable_user_id(); - PROTOBUF_NODISCARD std::string* release_user_id(); - void set_allocated_user_id(std::string* value); - + // string organization_id = 1 [json_name = "organizationId"]; + void clear_organization_id(); + const std::string& organization_id() const; + template + void set_organization_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_organization_id(); + PROTOBUF_NODISCARD std::string* release_organization_id(); + void set_allocated_organization_id(std::string* organization_id); private: - const std::string& _internal_user_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_user_id( - const std::string& value); - std::string* _internal_mutable_user_id(); + const std::string& _internal_organization_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id(const std::string& value); + std::string* _internal_mutable_organization_id(); + public: + // bool primary = 2 [json_name = "primary"]; + void clear_primary(); + bool primary() const; + void set_primary(bool value); + private: + bool _internal_primary() const; + void _internal_set_primary(bool value); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.ListOrganizationsByUserRequest) + + // @@protoc_insertion_point(class_scope:viam.app.v1.LocationOrganization) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 58, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr user_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr organization_id_; + bool primary_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ListOrganizationMembersRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ListOrganizationMembersRequest) */ { +class LocationAuth final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.LocationAuth) */ { public: - inline ListOrganizationMembersRequest() : ListOrganizationMembersRequest(nullptr) {} - ~ListOrganizationMembersRequest() override; - template - explicit PROTOBUF_CONSTEXPR ListOrganizationMembersRequest(::google::protobuf::internal::ConstantInitialized); + inline LocationAuth() : LocationAuth(nullptr) {} + ~LocationAuth() override; + explicit PROTOBUF_CONSTEXPR LocationAuth(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ListOrganizationMembersRequest(const ListOrganizationMembersRequest& from) - : ListOrganizationMembersRequest(nullptr, from) {} - ListOrganizationMembersRequest(ListOrganizationMembersRequest&& from) noexcept - : ListOrganizationMembersRequest() { + LocationAuth(const LocationAuth& from); + LocationAuth(LocationAuth&& from) noexcept + : LocationAuth() { *this = ::std::move(from); } - inline ListOrganizationMembersRequest& operator=(const ListOrganizationMembersRequest& from) { + inline LocationAuth& operator=(const LocationAuth& from) { CopyFrom(from); return *this; } - inline ListOrganizationMembersRequest& operator=(ListOrganizationMembersRequest&& from) noexcept { + inline LocationAuth& operator=(LocationAuth&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -9617,178 +8925,181 @@ class ListOrganizationMembersRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ListOrganizationMembersRequest& default_instance() { + static const LocationAuth& default_instance() { return *internal_default_instance(); } - static inline const ListOrganizationMembersRequest* internal_default_instance() { - return reinterpret_cast( - &_ListOrganizationMembersRequest_default_instance_); + static inline const LocationAuth* internal_default_instance() { + return reinterpret_cast( + &_LocationAuth_default_instance_); } static constexpr int kIndexInFileMessages = - 19; + 46; - friend void swap(ListOrganizationMembersRequest& a, ListOrganizationMembersRequest& b) { + friend void swap(LocationAuth& a, LocationAuth& b) { a.Swap(&b); } - inline void Swap(ListOrganizationMembersRequest* other) { + inline void Swap(LocationAuth* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ListOrganizationMembersRequest* other) { + void UnsafeArenaSwap(LocationAuth* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ListOrganizationMembersRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ListOrganizationMembersRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ListOrganizationMembersRequest& from) { - ListOrganizationMembersRequest::MergeImpl(*this, from); + LocationAuth* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const LocationAuth& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const LocationAuth& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ListOrganizationMembersRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(LocationAuth* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.ListOrganizationMembersRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.LocationAuth"; } protected: - explicit ListOrganizationMembersRequest(::google::protobuf::Arena* arena); - ListOrganizationMembersRequest(::google::protobuf::Arena* arena, const ListOrganizationMembersRequest& from); + explicit LocationAuth(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kOrganizationIdFieldNumber = 1, + kSecretsFieldNumber = 3, + kSecretFieldNumber = 1, + kLocationIdFieldNumber = 2, }; - // string organization_id = 1 [json_name = "organizationId"]; - void clear_organization_id() ; - const std::string& organization_id() const; - template - void set_organization_id(Arg_&& arg, Args_... args); - std::string* mutable_organization_id(); - PROTOBUF_NODISCARD std::string* release_organization_id(); - void set_allocated_organization_id(std::string* value); + // repeated .viam.app.v1.SharedSecret secrets = 3 [json_name = "secrets"]; + int secrets_size() const; + private: + int _internal_secrets_size() const; + public: + void clear_secrets(); + ::viam::app::v1::SharedSecret* mutable_secrets(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::SharedSecret >* + mutable_secrets(); + private: + const ::viam::app::v1::SharedSecret& _internal_secrets(int index) const; + ::viam::app::v1::SharedSecret* _internal_add_secrets(); + public: + const ::viam::app::v1::SharedSecret& secrets(int index) const; + ::viam::app::v1::SharedSecret* add_secrets(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::SharedSecret >& + secrets() const; + // string secret = 1 [json_name = "secret", deprecated = true]; + PROTOBUF_DEPRECATED void clear_secret(); + PROTOBUF_DEPRECATED const std::string& secret() const; + template + PROTOBUF_DEPRECATED void set_secret(ArgT0&& arg0, ArgT... args); + PROTOBUF_DEPRECATED std::string* mutable_secret(); + PROTOBUF_NODISCARD PROTOBUF_DEPRECATED std::string* release_secret(); + PROTOBUF_DEPRECATED void set_allocated_secret(std::string* secret); private: - const std::string& _internal_organization_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id( - const std::string& value); - std::string* _internal_mutable_organization_id(); + const std::string& _internal_secret() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_secret(const std::string& value); + std::string* _internal_mutable_secret(); + public: + // string location_id = 2 [json_name = "locationId"]; + void clear_location_id(); + const std::string& location_id() const; + template + void set_location_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_location_id(); + PROTOBUF_NODISCARD std::string* release_location_id(); + void set_allocated_location_id(std::string* location_id); + private: + const std::string& _internal_location_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_location_id(const std::string& value); + std::string* _internal_mutable_location_id(); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.ListOrganizationMembersRequest) + + // @@protoc_insertion_point(class_scope:viam.app.v1.LocationAuth) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 66, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr organization_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::SharedSecret > secrets_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr secret_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr location_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ListModulesRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ListModulesRequest) */ { +class StorageConfig final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.StorageConfig) */ { public: - inline ListModulesRequest() : ListModulesRequest(nullptr) {} - ~ListModulesRequest() override; - template - explicit PROTOBUF_CONSTEXPR ListModulesRequest(::google::protobuf::internal::ConstantInitialized); + inline StorageConfig() : StorageConfig(nullptr) {} + ~StorageConfig() override; + explicit PROTOBUF_CONSTEXPR StorageConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ListModulesRequest(const ListModulesRequest& from) - : ListModulesRequest(nullptr, from) {} - ListModulesRequest(ListModulesRequest&& from) noexcept - : ListModulesRequest() { + StorageConfig(const StorageConfig& from); + StorageConfig(StorageConfig&& from) noexcept + : StorageConfig() { *this = ::std::move(from); } - inline ListModulesRequest& operator=(const ListModulesRequest& from) { + inline StorageConfig& operator=(const StorageConfig& from) { CopyFrom(from); return *this; } - inline ListModulesRequest& operator=(ListModulesRequest&& from) noexcept { + inline StorageConfig& operator=(StorageConfig&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -9798,180 +9109,145 @@ class ListModulesRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ListModulesRequest& default_instance() { + static const StorageConfig& default_instance() { return *internal_default_instance(); } - static inline const ListModulesRequest* internal_default_instance() { - return reinterpret_cast( - &_ListModulesRequest_default_instance_); + static inline const StorageConfig* internal_default_instance() { + return reinterpret_cast( + &_StorageConfig_default_instance_); } static constexpr int kIndexInFileMessages = - 173; + 47; - friend void swap(ListModulesRequest& a, ListModulesRequest& b) { + friend void swap(StorageConfig& a, StorageConfig& b) { a.Swap(&b); } - inline void Swap(ListModulesRequest* other) { + inline void Swap(StorageConfig* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ListModulesRequest* other) { + void UnsafeArenaSwap(StorageConfig* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ListModulesRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ListModulesRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ListModulesRequest& from) { - ListModulesRequest::MergeImpl(*this, from); + StorageConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const StorageConfig& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const StorageConfig& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ListModulesRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(StorageConfig* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.ListModulesRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.StorageConfig"; } protected: - explicit ListModulesRequest(::google::protobuf::Arena* arena); - ListModulesRequest(::google::protobuf::Arena* arena, const ListModulesRequest& from); + explicit StorageConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kOrganizationIdFieldNumber = 1, + kRegionFieldNumber = 1, }; - // optional string organization_id = 1 [json_name = "organizationId"]; - bool has_organization_id() const; - void clear_organization_id() ; - const std::string& organization_id() const; - template - void set_organization_id(Arg_&& arg, Args_... args); - std::string* mutable_organization_id(); - PROTOBUF_NODISCARD std::string* release_organization_id(); - void set_allocated_organization_id(std::string* value); - + // string region = 1 [json_name = "region"]; + void clear_region(); + const std::string& region() const; + template + void set_region(ArgT0&& arg0, ArgT... args); + std::string* mutable_region(); + PROTOBUF_NODISCARD std::string* release_region(); + void set_allocated_region(std::string* region); private: - const std::string& _internal_organization_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id( - const std::string& value); - std::string* _internal_mutable_organization_id(); - + const std::string& _internal_region() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_region(const std::string& value); + std::string* _internal_mutable_region(); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.ListModulesRequest) + + // @@protoc_insertion_point(class_scope:viam.app.v1.StorageConfig) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 54, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr organization_id_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr region_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ListMachineFragmentsRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ListMachineFragmentsRequest) */ { +class Location final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.Location) */ { public: - inline ListMachineFragmentsRequest() : ListMachineFragmentsRequest(nullptr) {} - ~ListMachineFragmentsRequest() override; - template - explicit PROTOBUF_CONSTEXPR ListMachineFragmentsRequest(::google::protobuf::internal::ConstantInitialized); + inline Location() : Location(nullptr) {} + ~Location() override; + explicit PROTOBUF_CONSTEXPR Location(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ListMachineFragmentsRequest(const ListMachineFragmentsRequest& from) - : ListMachineFragmentsRequest(nullptr, from) {} - ListMachineFragmentsRequest(ListMachineFragmentsRequest&& from) noexcept - : ListMachineFragmentsRequest() { + Location(const Location& from); + Location(Location&& from) noexcept + : Location() { *this = ::std::move(from); } - inline ListMachineFragmentsRequest& operator=(const ListMachineFragmentsRequest& from) { + inline Location& operator=(const Location& from) { CopyFrom(from); return *this; } - inline ListMachineFragmentsRequest& operator=(ListMachineFragmentsRequest&& from) noexcept { + inline Location& operator=(Location&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -9981,208 +9257,268 @@ class ListMachineFragmentsRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ListMachineFragmentsRequest& default_instance() { + static const Location& default_instance() { return *internal_default_instance(); } - static inline const ListMachineFragmentsRequest* internal_default_instance() { - return reinterpret_cast( - &_ListMachineFragmentsRequest_default_instance_); + static inline const Location* internal_default_instance() { + return reinterpret_cast( + &_Location_default_instance_); } static constexpr int kIndexInFileMessages = - 113; + 48; - friend void swap(ListMachineFragmentsRequest& a, ListMachineFragmentsRequest& b) { + friend void swap(Location& a, Location& b) { a.Swap(&b); } - inline void Swap(ListMachineFragmentsRequest* other) { + inline void Swap(Location* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ListMachineFragmentsRequest* other) { + void UnsafeArenaSwap(Location* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ListMachineFragmentsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ListMachineFragmentsRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ListMachineFragmentsRequest& from) { - ListMachineFragmentsRequest::MergeImpl(*this, from); + Location* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Location& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Location& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ListMachineFragmentsRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(Location* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.ListMachineFragmentsRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.Location"; } protected: - explicit ListMachineFragmentsRequest(::google::protobuf::Arena* arena); - ListMachineFragmentsRequest(::google::protobuf::Arena* arena, const ListMachineFragmentsRequest& from); + explicit Location(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kAdditionalFragmentIdsFieldNumber = 2, - kMachineIdFieldNumber = 1, + kOrganizationsFieldNumber = 6, + kIdFieldNumber = 1, + kNameFieldNumber = 2, + kParentLocationIdFieldNumber = 4, + kCreatedOnFieldNumber = 3, + kAuthFieldNumber = 5, + kConfigFieldNumber = 8, + kRobotCountFieldNumber = 7, }; - // repeated string additional_fragment_ids = 2 [json_name = "additionalFragmentIds"]; - int additional_fragment_ids_size() const; + // repeated .viam.app.v1.LocationOrganization organizations = 6 [json_name = "organizations"]; + int organizations_size() const; private: - int _internal_additional_fragment_ids_size() const; + int _internal_organizations_size() const; + public: + void clear_organizations(); + ::viam::app::v1::LocationOrganization* mutable_organizations(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::LocationOrganization >* + mutable_organizations(); + private: + const ::viam::app::v1::LocationOrganization& _internal_organizations(int index) const; + ::viam::app::v1::LocationOrganization* _internal_add_organizations(); + public: + const ::viam::app::v1::LocationOrganization& organizations(int index) const; + ::viam::app::v1::LocationOrganization* add_organizations(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::LocationOrganization >& + organizations() const; + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); public: - void clear_additional_fragment_ids() ; - const std::string& additional_fragment_ids(int index) const; - std::string* mutable_additional_fragment_ids(int index); - void set_additional_fragment_ids(int index, const std::string& value); - void set_additional_fragment_ids(int index, std::string&& value); - void set_additional_fragment_ids(int index, const char* value); - void set_additional_fragment_ids(int index, const char* value, std::size_t size); - void set_additional_fragment_ids(int index, absl::string_view value); - std::string* add_additional_fragment_ids(); - void add_additional_fragment_ids(const std::string& value); - void add_additional_fragment_ids(std::string&& value); - void add_additional_fragment_ids(const char* value); - void add_additional_fragment_ids(const char* value, std::size_t size); - void add_additional_fragment_ids(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& additional_fragment_ids() const; - ::google::protobuf::RepeatedPtrField* mutable_additional_fragment_ids(); + // string name = 2 [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 ::google::protobuf::RepeatedPtrField& _internal_additional_fragment_ids() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_additional_fragment_ids(); + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + // string parent_location_id = 4 [json_name = "parentLocationId"]; + void clear_parent_location_id(); + const std::string& parent_location_id() const; + template + void set_parent_location_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_parent_location_id(); + PROTOBUF_NODISCARD std::string* release_parent_location_id(); + void set_allocated_parent_location_id(std::string* parent_location_id); + private: + const std::string& _internal_parent_location_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_parent_location_id(const std::string& value); + std::string* _internal_mutable_parent_location_id(); public: - // string machine_id = 1 [json_name = "machineId"]; - void clear_machine_id() ; - const std::string& machine_id() const; - template - void set_machine_id(Arg_&& arg, Args_... args); - std::string* mutable_machine_id(); - PROTOBUF_NODISCARD std::string* release_machine_id(); - void set_allocated_machine_id(std::string* value); + // .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn"]; + bool has_created_on() const; private: - const std::string& _internal_machine_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_machine_id( - const std::string& value); - std::string* _internal_mutable_machine_id(); + bool _internal_has_created_on() const; + public: + void clear_created_on(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& created_on() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_created_on(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_created_on(); + void set_allocated_created_on(::PROTOBUF_NAMESPACE_ID::Timestamp* created_on); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_created_on() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_created_on(); + public: + void unsafe_arena_set_allocated_created_on( + ::PROTOBUF_NAMESPACE_ID::Timestamp* created_on); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_created_on(); + // .viam.app.v1.LocationAuth auth = 5 [json_name = "auth"]; + bool has_auth() const; + private: + bool _internal_has_auth() const; public: - // @@protoc_insertion_point(class_scope:viam.app.v1.ListMachineFragmentsRequest) + void clear_auth(); + const ::viam::app::v1::LocationAuth& auth() const; + PROTOBUF_NODISCARD ::viam::app::v1::LocationAuth* release_auth(); + ::viam::app::v1::LocationAuth* mutable_auth(); + void set_allocated_auth(::viam::app::v1::LocationAuth* auth); + private: + const ::viam::app::v1::LocationAuth& _internal_auth() const; + ::viam::app::v1::LocationAuth* _internal_mutable_auth(); + public: + void unsafe_arena_set_allocated_auth( + ::viam::app::v1::LocationAuth* auth); + ::viam::app::v1::LocationAuth* unsafe_arena_release_auth(); + + // .viam.app.v1.StorageConfig config = 8 [json_name = "config"]; + bool has_config() const; + private: + bool _internal_has_config() const; + public: + void clear_config(); + const ::viam::app::v1::StorageConfig& config() const; + PROTOBUF_NODISCARD ::viam::app::v1::StorageConfig* release_config(); + ::viam::app::v1::StorageConfig* mutable_config(); + void set_allocated_config(::viam::app::v1::StorageConfig* config); + private: + const ::viam::app::v1::StorageConfig& _internal_config() const; + ::viam::app::v1::StorageConfig* _internal_mutable_config(); + public: + void unsafe_arena_set_allocated_config( + ::viam::app::v1::StorageConfig* config); + ::viam::app::v1::StorageConfig* unsafe_arena_release_config(); + + // int32 robot_count = 7 [json_name = "robotCount"]; + void clear_robot_count(); + int32_t robot_count() const; + void set_robot_count(int32_t value); + private: + int32_t _internal_robot_count() const; + void _internal_set_robot_count(int32_t value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.Location) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 81, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField additional_fragment_ids_; - ::google::protobuf::internal::ArenaStringPtr machine_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::LocationOrganization > organizations_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr parent_location_id_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* created_on_; + ::viam::app::v1::LocationAuth* auth_; + ::viam::app::v1::StorageConfig* config_; + int32_t robot_count_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ListLocationsRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ListLocationsRequest) */ { +class SharedSecret final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.SharedSecret) */ { public: - inline ListLocationsRequest() : ListLocationsRequest(nullptr) {} - ~ListLocationsRequest() override; - template - explicit PROTOBUF_CONSTEXPR ListLocationsRequest(::google::protobuf::internal::ConstantInitialized); + inline SharedSecret() : SharedSecret(nullptr) {} + ~SharedSecret() override; + explicit PROTOBUF_CONSTEXPR SharedSecret(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ListLocationsRequest(const ListLocationsRequest& from) - : ListLocationsRequest(nullptr, from) {} - ListLocationsRequest(ListLocationsRequest&& from) noexcept - : ListLocationsRequest() { + SharedSecret(const SharedSecret& from); + SharedSecret(SharedSecret&& from) noexcept + : SharedSecret() { *this = ::std::move(from); } - inline ListLocationsRequest& operator=(const ListLocationsRequest& from) { + inline SharedSecret& operator=(const SharedSecret& from) { CopyFrom(from); return *this; } - inline ListLocationsRequest& operator=(ListLocationsRequest&& from) noexcept { + inline SharedSecret& operator=(SharedSecret&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -10192,178 +9528,224 @@ class ListLocationsRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ListLocationsRequest& default_instance() { + static const SharedSecret& default_instance() { return *internal_default_instance(); } - static inline const ListLocationsRequest* internal_default_instance() { - return reinterpret_cast( - &_ListLocationsRequest_default_instance_); + static inline const SharedSecret* internal_default_instance() { + return reinterpret_cast( + &_SharedSecret_default_instance_); } static constexpr int kIndexInFileMessages = - 60; + 49; - friend void swap(ListLocationsRequest& a, ListLocationsRequest& b) { + friend void swap(SharedSecret& a, SharedSecret& b) { a.Swap(&b); } - inline void Swap(ListLocationsRequest* other) { + inline void Swap(SharedSecret* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ListLocationsRequest* other) { + void UnsafeArenaSwap(SharedSecret* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ListLocationsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ListLocationsRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ListLocationsRequest& from) { - ListLocationsRequest::MergeImpl(*this, from); + SharedSecret* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SharedSecret& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const SharedSecret& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ListLocationsRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(SharedSecret* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.ListLocationsRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.SharedSecret"; } protected: - explicit ListLocationsRequest(::google::protobuf::Arena* arena); - ListLocationsRequest(::google::protobuf::Arena* arena, const ListLocationsRequest& from); + explicit SharedSecret(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- + typedef SharedSecret_State State; + static constexpr State STATE_UNSPECIFIED = + SharedSecret_State_STATE_UNSPECIFIED; + static constexpr State STATE_ENABLED = + SharedSecret_State_STATE_ENABLED; + static constexpr State STATE_DISABLED = + SharedSecret_State_STATE_DISABLED; + static inline bool State_IsValid(int value) { + return SharedSecret_State_IsValid(value); + } + static constexpr State State_MIN = + SharedSecret_State_State_MIN; + static constexpr State State_MAX = + SharedSecret_State_State_MAX; + static constexpr int State_ARRAYSIZE = + SharedSecret_State_State_ARRAYSIZE; + static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* + State_descriptor() { + return SharedSecret_State_descriptor(); + } + template + static inline const std::string& State_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function State_Name."); + return SharedSecret_State_Name(enum_t_value); + } + static inline bool State_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, + State* value) { + return SharedSecret_State_Parse(name, value); + } + // accessors ------------------------------------------------------- enum : int { - kOrganizationIdFieldNumber = 1, + kIdFieldNumber = 1, + kSecretFieldNumber = 2, + kCreatedOnFieldNumber = 3, + kStateFieldNumber = 4, }; - // string organization_id = 1 [json_name = "organizationId"]; - void clear_organization_id() ; - const std::string& organization_id() const; - template - void set_organization_id(Arg_&& arg, Args_... args); - std::string* mutable_organization_id(); - PROTOBUF_NODISCARD std::string* release_organization_id(); - void set_allocated_organization_id(std::string* value); + // string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"id\""]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + // string secret = 2 [json_name = "secret", (.tagger.v1.tags) = "bson:\"secret\""]; + void clear_secret(); + const std::string& secret() const; + template + void set_secret(ArgT0&& arg0, ArgT... args); + std::string* mutable_secret(); + PROTOBUF_NODISCARD std::string* release_secret(); + void set_allocated_secret(std::string* secret); private: - const std::string& _internal_organization_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id( - const std::string& value); - std::string* _internal_mutable_organization_id(); + const std::string& _internal_secret() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_secret(const std::string& value); + std::string* _internal_mutable_secret(); + public: + // .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\" json:\"created_on\""]; + bool has_created_on() const; + private: + bool _internal_has_created_on() const; public: - // @@protoc_insertion_point(class_scope:viam.app.v1.ListLocationsRequest) + void clear_created_on(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& created_on() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_created_on(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_created_on(); + void set_allocated_created_on(::PROTOBUF_NAMESPACE_ID::Timestamp* created_on); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_created_on() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_created_on(); + public: + void unsafe_arena_set_allocated_created_on( + ::PROTOBUF_NAMESPACE_ID::Timestamp* created_on); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_created_on(); + + // .viam.app.v1.SharedSecret.State state = 4 [json_name = "state", (.tagger.v1.tags) = "bson:\"state\""]; + void clear_state(); + ::viam::app::v1::SharedSecret_State state() const; + void set_state(::viam::app::v1::SharedSecret_State value); + private: + ::viam::app::v1::SharedSecret_State _internal_state() const; + void _internal_set_state(::viam::app::v1::SharedSecret_State value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.SharedSecret) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 56, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr organization_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr secret_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* created_on_; + int state_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ListKeysRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ListKeysRequest) */ { +class CreateLocationRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.CreateLocationRequest) */ { public: - inline ListKeysRequest() : ListKeysRequest(nullptr) {} - ~ListKeysRequest() override; - template - explicit PROTOBUF_CONSTEXPR ListKeysRequest(::google::protobuf::internal::ConstantInitialized); + inline CreateLocationRequest() : CreateLocationRequest(nullptr) {} + ~CreateLocationRequest() override; + explicit PROTOBUF_CONSTEXPR CreateLocationRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ListKeysRequest(const ListKeysRequest& from) - : ListKeysRequest(nullptr, from) {} - ListKeysRequest(ListKeysRequest&& from) noexcept - : ListKeysRequest() { + CreateLocationRequest(const CreateLocationRequest& from); + CreateLocationRequest(CreateLocationRequest&& from) noexcept + : CreateLocationRequest() { *this = ::std::move(from); } - inline ListKeysRequest& operator=(const ListKeysRequest& from) { + inline CreateLocationRequest& operator=(const CreateLocationRequest& from) { CopyFrom(from); return *this; } - inline ListKeysRequest& operator=(ListKeysRequest&& from) noexcept { + inline CreateLocationRequest& operator=(CreateLocationRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -10373,178 +9755,182 @@ class ListKeysRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ListKeysRequest& default_instance() { + static const CreateLocationRequest& default_instance() { return *internal_default_instance(); } - static inline const ListKeysRequest* internal_default_instance() { - return reinterpret_cast( - &_ListKeysRequest_default_instance_); + static inline const CreateLocationRequest* internal_default_instance() { + return reinterpret_cast( + &_CreateLocationRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 188; + 50; - friend void swap(ListKeysRequest& a, ListKeysRequest& b) { + friend void swap(CreateLocationRequest& a, CreateLocationRequest& b) { a.Swap(&b); } - inline void Swap(ListKeysRequest* other) { + inline void Swap(CreateLocationRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ListKeysRequest* other) { + void UnsafeArenaSwap(CreateLocationRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ListKeysRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ListKeysRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ListKeysRequest& from) { - ListKeysRequest::MergeImpl(*this, from); + CreateLocationRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CreateLocationRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CreateLocationRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ListKeysRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(CreateLocationRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.ListKeysRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.CreateLocationRequest"; } protected: - explicit ListKeysRequest(::google::protobuf::Arena* arena); - ListKeysRequest(::google::protobuf::Arena* arena, const ListKeysRequest& from); + explicit CreateLocationRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kOrgIdFieldNumber = 1, + kOrganizationIdFieldNumber = 1, + kNameFieldNumber = 2, + kParentLocationIdFieldNumber = 3, }; - // string org_id = 1 [json_name = "orgId"]; - void clear_org_id() ; - const std::string& org_id() const; - template - void set_org_id(Arg_&& arg, Args_... args); - std::string* mutable_org_id(); - PROTOBUF_NODISCARD std::string* release_org_id(); - void set_allocated_org_id(std::string* value); + // string organization_id = 1 [json_name = "organizationId"]; + void clear_organization_id(); + const std::string& organization_id() const; + template + void set_organization_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_organization_id(); + PROTOBUF_NODISCARD std::string* release_organization_id(); + void set_allocated_organization_id(std::string* organization_id); + private: + const std::string& _internal_organization_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id(const std::string& value); + std::string* _internal_mutable_organization_id(); + public: + // string name = 2 [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_org_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_org_id( - const std::string& value); - std::string* _internal_mutable_org_id(); + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + // optional string parent_location_id = 3 [json_name = "parentLocationId"]; + bool has_parent_location_id() const; + private: + bool _internal_has_parent_location_id() const; public: - // @@protoc_insertion_point(class_scope:viam.app.v1.ListKeysRequest) + void clear_parent_location_id(); + const std::string& parent_location_id() const; + template + void set_parent_location_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_parent_location_id(); + PROTOBUF_NODISCARD std::string* release_parent_location_id(); + void set_allocated_parent_location_id(std::string* parent_location_id); + private: + const std::string& _internal_parent_location_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_parent_location_id(const std::string& value); + std::string* _internal_mutable_parent_location_id(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.CreateLocationRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 42, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr org_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr organization_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr parent_location_id_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ListFragmentsRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ListFragmentsRequest) */ { +class CreateLocationResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.CreateLocationResponse) */ { public: - inline ListFragmentsRequest() : ListFragmentsRequest(nullptr) {} - ~ListFragmentsRequest() override; - template - explicit PROTOBUF_CONSTEXPR ListFragmentsRequest(::google::protobuf::internal::ConstantInitialized); + inline CreateLocationResponse() : CreateLocationResponse(nullptr) {} + ~CreateLocationResponse() override; + explicit PROTOBUF_CONSTEXPR CreateLocationResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ListFragmentsRequest(const ListFragmentsRequest& from) - : ListFragmentsRequest(nullptr, from) {} - ListFragmentsRequest(ListFragmentsRequest&& from) noexcept - : ListFragmentsRequest() { + CreateLocationResponse(const CreateLocationResponse& from); + CreateLocationResponse(CreateLocationResponse&& from) noexcept + : CreateLocationResponse() { *this = ::std::move(from); } - inline ListFragmentsRequest& operator=(const ListFragmentsRequest& from) { + inline CreateLocationResponse& operator=(const CreateLocationResponse& from) { CopyFrom(from); return *this; } - inline ListFragmentsRequest& operator=(ListFragmentsRequest&& from) noexcept { + inline CreateLocationResponse& operator=(CreateLocationResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -10554,212 +9940,149 @@ class ListFragmentsRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ListFragmentsRequest& default_instance() { + static const CreateLocationResponse& default_instance() { return *internal_default_instance(); } - static inline const ListFragmentsRequest* internal_default_instance() { - return reinterpret_cast( - &_ListFragmentsRequest_default_instance_); + static inline const CreateLocationResponse* internal_default_instance() { + return reinterpret_cast( + &_CreateLocationResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 100; + 51; - friend void swap(ListFragmentsRequest& a, ListFragmentsRequest& b) { + friend void swap(CreateLocationResponse& a, CreateLocationResponse& b) { a.Swap(&b); } - inline void Swap(ListFragmentsRequest* other) { + inline void Swap(CreateLocationResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ListFragmentsRequest* other) { + void UnsafeArenaSwap(CreateLocationResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ListFragmentsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ListFragmentsRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ListFragmentsRequest& from) { - ListFragmentsRequest::MergeImpl(*this, from); + CreateLocationResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CreateLocationResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CreateLocationResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ListFragmentsRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(CreateLocationResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.ListFragmentsRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.CreateLocationResponse"; } protected: - explicit ListFragmentsRequest(::google::protobuf::Arena* arena); - ListFragmentsRequest(::google::protobuf::Arena* arena, const ListFragmentsRequest& from); + explicit CreateLocationResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kFragmentVisibilityFieldNumber = 3, - kOrganizationIdFieldNumber = 1, - kShowPublicFieldNumber = 2, + kLocationFieldNumber = 1, }; - // repeated .viam.app.v1.FragmentVisibility fragment_visibility = 3 [json_name = "fragmentVisibility"]; - int fragment_visibility_size() const; + // .viam.app.v1.Location location = 1 [json_name = "location"]; + bool has_location() const; private: - int _internal_fragment_visibility_size() const; - + bool _internal_has_location() const; public: - void clear_fragment_visibility() ; - public: - ::viam::app::v1::FragmentVisibility fragment_visibility(int index) const; - void set_fragment_visibility(int index, ::viam::app::v1::FragmentVisibility value); - void add_fragment_visibility(::viam::app::v1::FragmentVisibility value); - const ::google::protobuf::RepeatedField& fragment_visibility() const; - ::google::protobuf::RepeatedField* mutable_fragment_visibility(); - - private: - const ::google::protobuf::RepeatedField& _internal_fragment_visibility() const; - ::google::protobuf::RepeatedField* _internal_mutable_fragment_visibility(); - - public: - // string organization_id = 1 [json_name = "organizationId"]; - void clear_organization_id() ; - const std::string& organization_id() const; - template - void set_organization_id(Arg_&& arg, Args_... args); - std::string* mutable_organization_id(); - PROTOBUF_NODISCARD std::string* release_organization_id(); - void set_allocated_organization_id(std::string* value); - + void clear_location(); + const ::viam::app::v1::Location& location() const; + PROTOBUF_NODISCARD ::viam::app::v1::Location* release_location(); + ::viam::app::v1::Location* mutable_location(); + void set_allocated_location(::viam::app::v1::Location* location); private: - const std::string& _internal_organization_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id( - const std::string& value); - std::string* _internal_mutable_organization_id(); - + const ::viam::app::v1::Location& _internal_location() const; + ::viam::app::v1::Location* _internal_mutable_location(); public: - // bool show_public = 2 [json_name = "showPublic"]; - void clear_show_public() ; - bool show_public() const; - void set_show_public(bool value); - - private: - bool _internal_show_public() const; - void _internal_set_show_public(bool value); + void unsafe_arena_set_allocated_location( + ::viam::app::v1::Location* location); + ::viam::app::v1::Location* unsafe_arena_release_location(); - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.ListFragmentsRequest) + // @@protoc_insertion_point(class_scope:viam.app.v1.CreateLocationResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 0, - 56, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedField fragment_visibility_; - mutable ::google::protobuf::internal::CachedSize _fragment_visibility_cached_byte_size_; - ::google::protobuf::internal::ArenaStringPtr organization_id_; - bool show_public_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::viam::app::v1::Location* location_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ListAuthorizationsRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ListAuthorizationsRequest) */ { +class GetLocationRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetLocationRequest) */ { public: - inline ListAuthorizationsRequest() : ListAuthorizationsRequest(nullptr) {} - ~ListAuthorizationsRequest() override; - template - explicit PROTOBUF_CONSTEXPR ListAuthorizationsRequest(::google::protobuf::internal::ConstantInitialized); + inline GetLocationRequest() : GetLocationRequest(nullptr) {} + ~GetLocationRequest() override; + explicit PROTOBUF_CONSTEXPR GetLocationRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ListAuthorizationsRequest(const ListAuthorizationsRequest& from) - : ListAuthorizationsRequest(nullptr, from) {} - ListAuthorizationsRequest(ListAuthorizationsRequest&& from) noexcept - : ListAuthorizationsRequest() { + GetLocationRequest(const GetLocationRequest& from); + GetLocationRequest(GetLocationRequest&& from) noexcept + : GetLocationRequest() { *this = ::std::move(from); } - inline ListAuthorizationsRequest& operator=(const ListAuthorizationsRequest& from) { + inline GetLocationRequest& operator=(const GetLocationRequest& from) { CopyFrom(from); return *this; } - inline ListAuthorizationsRequest& operator=(ListAuthorizationsRequest&& from) noexcept { + inline GetLocationRequest& operator=(GetLocationRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -10769,208 +10092,145 @@ class ListAuthorizationsRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ListAuthorizationsRequest& default_instance() { + static const GetLocationRequest& default_instance() { return *internal_default_instance(); } - static inline const ListAuthorizationsRequest* internal_default_instance() { - return reinterpret_cast( - &_ListAuthorizationsRequest_default_instance_); + static inline const GetLocationRequest* internal_default_instance() { + return reinterpret_cast( + &_GetLocationRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 137; + 52; - friend void swap(ListAuthorizationsRequest& a, ListAuthorizationsRequest& b) { + friend void swap(GetLocationRequest& a, GetLocationRequest& b) { a.Swap(&b); } - inline void Swap(ListAuthorizationsRequest* other) { + inline void Swap(GetLocationRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ListAuthorizationsRequest* other) { + void UnsafeArenaSwap(GetLocationRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ListAuthorizationsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ListAuthorizationsRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ListAuthorizationsRequest& from) { - ListAuthorizationsRequest::MergeImpl(*this, from); + GetLocationRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetLocationRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetLocationRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ListAuthorizationsRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetLocationRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.ListAuthorizationsRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.GetLocationRequest"; } protected: - explicit ListAuthorizationsRequest(::google::protobuf::Arena* arena); - ListAuthorizationsRequest(::google::protobuf::Arena* arena, const ListAuthorizationsRequest& from); + explicit GetLocationRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kResourceIdsFieldNumber = 2, - kOrganizationIdFieldNumber = 1, + kLocationIdFieldNumber = 1, }; - // repeated string resource_ids = 2 [json_name = "resourceIds"]; - int resource_ids_size() const; - private: - int _internal_resource_ids_size() const; - - public: - void clear_resource_ids() ; - const std::string& resource_ids(int index) const; - std::string* mutable_resource_ids(int index); - void set_resource_ids(int index, const std::string& value); - void set_resource_ids(int index, std::string&& value); - void set_resource_ids(int index, const char* value); - void set_resource_ids(int index, const char* value, std::size_t size); - void set_resource_ids(int index, absl::string_view value); - std::string* add_resource_ids(); - void add_resource_ids(const std::string& value); - void add_resource_ids(std::string&& value); - void add_resource_ids(const char* value); - void add_resource_ids(const char* value, std::size_t size); - void add_resource_ids(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& resource_ids() const; - ::google::protobuf::RepeatedPtrField* mutable_resource_ids(); - + // string location_id = 1 [json_name = "locationId"]; + void clear_location_id(); + const std::string& location_id() const; + template + void set_location_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_location_id(); + PROTOBUF_NODISCARD std::string* release_location_id(); + void set_allocated_location_id(std::string* location_id); private: - const ::google::protobuf::RepeatedPtrField& _internal_resource_ids() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_resource_ids(); - + const std::string& _internal_location_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_location_id(const std::string& value); + std::string* _internal_mutable_location_id(); public: - // string organization_id = 1 [json_name = "organizationId"]; - void clear_organization_id() ; - const std::string& organization_id() const; - template - void set_organization_id(Arg_&& arg, Args_... args); - std::string* mutable_organization_id(); - PROTOBUF_NODISCARD std::string* release_organization_id(); - void set_allocated_organization_id(std::string* value); - - private: - const std::string& _internal_organization_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id( - const std::string& value); - std::string* _internal_mutable_organization_id(); - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.ListAuthorizationsRequest) + // @@protoc_insertion_point(class_scope:viam.app.v1.GetLocationRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 73, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField resource_ids_; - ::google::protobuf::internal::ArenaStringPtr organization_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr location_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetUserIDByEmailResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetUserIDByEmailResponse) */ { +class GetLocationResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetLocationResponse) */ { public: - inline GetUserIDByEmailResponse() : GetUserIDByEmailResponse(nullptr) {} - ~GetUserIDByEmailResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetUserIDByEmailResponse(::google::protobuf::internal::ConstantInitialized); + inline GetLocationResponse() : GetLocationResponse(nullptr) {} + ~GetLocationResponse() override; + explicit PROTOBUF_CONSTEXPR GetLocationResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetUserIDByEmailResponse(const GetUserIDByEmailResponse& from) - : GetUserIDByEmailResponse(nullptr, from) {} - GetUserIDByEmailResponse(GetUserIDByEmailResponse&& from) noexcept - : GetUserIDByEmailResponse() { + GetLocationResponse(const GetLocationResponse& from); + GetLocationResponse(GetLocationResponse&& from) noexcept + : GetLocationResponse() { *this = ::std::move(from); } - inline GetUserIDByEmailResponse& operator=(const GetUserIDByEmailResponse& from) { + inline GetLocationResponse& operator=(const GetLocationResponse& from) { CopyFrom(from); return *this; } - inline GetUserIDByEmailResponse& operator=(GetUserIDByEmailResponse&& from) noexcept { + inline GetLocationResponse& operator=(GetLocationResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -10980,178 +10240,149 @@ class GetUserIDByEmailResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetUserIDByEmailResponse& default_instance() { + static const GetLocationResponse& default_instance() { return *internal_default_instance(); } - static inline const GetUserIDByEmailResponse* internal_default_instance() { - return reinterpret_cast( - &_GetUserIDByEmailResponse_default_instance_); + static inline const GetLocationResponse* internal_default_instance() { + return reinterpret_cast( + &_GetLocationResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 176; + 53; - friend void swap(GetUserIDByEmailResponse& a, GetUserIDByEmailResponse& b) { + friend void swap(GetLocationResponse& a, GetLocationResponse& b) { a.Swap(&b); } - inline void Swap(GetUserIDByEmailResponse* other) { + inline void Swap(GetLocationResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetUserIDByEmailResponse* other) { + void UnsafeArenaSwap(GetLocationResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetUserIDByEmailResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetUserIDByEmailResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetUserIDByEmailResponse& from) { - GetUserIDByEmailResponse::MergeImpl(*this, from); + GetLocationResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetLocationResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetLocationResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetUserIDByEmailResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetLocationResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.GetUserIDByEmailResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.GetLocationResponse"; } protected: - explicit GetUserIDByEmailResponse(::google::protobuf::Arena* arena); - GetUserIDByEmailResponse(::google::protobuf::Arena* arena, const GetUserIDByEmailResponse& from); + explicit GetLocationResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kUserIdFieldNumber = 1, + kLocationFieldNumber = 1, }; - // string user_id = 1 [json_name = "userId"]; - void clear_user_id() ; - const std::string& user_id() const; - template - void set_user_id(Arg_&& arg, Args_... args); - std::string* mutable_user_id(); - PROTOBUF_NODISCARD std::string* release_user_id(); - void set_allocated_user_id(std::string* value); - + // .viam.app.v1.Location location = 1 [json_name = "location"]; + bool has_location() const; private: - const std::string& _internal_user_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_user_id( - const std::string& value); - std::string* _internal_mutable_user_id(); - + bool _internal_has_location() const; public: - // @@protoc_insertion_point(class_scope:viam.app.v1.GetUserIDByEmailResponse) + void clear_location(); + const ::viam::app::v1::Location& location() const; + PROTOBUF_NODISCARD ::viam::app::v1::Location* release_location(); + ::viam::app::v1::Location* mutable_location(); + void set_allocated_location(::viam::app::v1::Location* location); + private: + const ::viam::app::v1::Location& _internal_location() const; + ::viam::app::v1::Location* _internal_mutable_location(); + public: + void unsafe_arena_set_allocated_location( + ::viam::app::v1::Location* location); + ::viam::app::v1::Location* unsafe_arena_release_location(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.GetLocationResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 52, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr user_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::viam::app::v1::Location* location_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetUserIDByEmailRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetUserIDByEmailRequest) */ { +class UpdateLocationRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.UpdateLocationRequest) */ { public: - inline GetUserIDByEmailRequest() : GetUserIDByEmailRequest(nullptr) {} - ~GetUserIDByEmailRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetUserIDByEmailRequest(::google::protobuf::internal::ConstantInitialized); + inline UpdateLocationRequest() : UpdateLocationRequest(nullptr) {} + ~UpdateLocationRequest() override; + explicit PROTOBUF_CONSTEXPR UpdateLocationRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetUserIDByEmailRequest(const GetUserIDByEmailRequest& from) - : GetUserIDByEmailRequest(nullptr, from) {} - GetUserIDByEmailRequest(GetUserIDByEmailRequest&& from) noexcept - : GetUserIDByEmailRequest() { + UpdateLocationRequest(const UpdateLocationRequest& from); + UpdateLocationRequest(UpdateLocationRequest&& from) noexcept + : UpdateLocationRequest() { *this = ::std::move(from); } - inline GetUserIDByEmailRequest& operator=(const GetUserIDByEmailRequest& from) { + inline UpdateLocationRequest& operator=(const UpdateLocationRequest& from) { CopyFrom(from); return *this; } - inline GetUserIDByEmailRequest& operator=(GetUserIDByEmailRequest&& from) noexcept { + inline UpdateLocationRequest& operator=(UpdateLocationRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -11161,178 +10392,206 @@ class GetUserIDByEmailRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetUserIDByEmailRequest& default_instance() { + static const UpdateLocationRequest& default_instance() { return *internal_default_instance(); } - static inline const GetUserIDByEmailRequest* internal_default_instance() { - return reinterpret_cast( - &_GetUserIDByEmailRequest_default_instance_); + static inline const UpdateLocationRequest* internal_default_instance() { + return reinterpret_cast( + &_UpdateLocationRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 175; + 54; - friend void swap(GetUserIDByEmailRequest& a, GetUserIDByEmailRequest& b) { + friend void swap(UpdateLocationRequest& a, UpdateLocationRequest& b) { a.Swap(&b); } - inline void Swap(GetUserIDByEmailRequest* other) { + inline void Swap(UpdateLocationRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetUserIDByEmailRequest* other) { + void UnsafeArenaSwap(UpdateLocationRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetUserIDByEmailRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetUserIDByEmailRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetUserIDByEmailRequest& from) { - GetUserIDByEmailRequest::MergeImpl(*this, from); + UpdateLocationRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const UpdateLocationRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const UpdateLocationRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetUserIDByEmailRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(UpdateLocationRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.GetUserIDByEmailRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.UpdateLocationRequest"; } protected: - explicit GetUserIDByEmailRequest(::google::protobuf::Arena* arena); - GetUserIDByEmailRequest(::google::protobuf::Arena* arena, const GetUserIDByEmailRequest& from); + explicit UpdateLocationRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kEmailFieldNumber = 1, + kLocationIdFieldNumber = 1, + kNameFieldNumber = 2, + kParentLocationIdFieldNumber = 3, + kRegionFieldNumber = 4, }; - // string email = 1 [json_name = "email"]; - void clear_email() ; - const std::string& email() const; - template - void set_email(Arg_&& arg, Args_... args); - std::string* mutable_email(); - PROTOBUF_NODISCARD std::string* release_email(); - void set_allocated_email(std::string* value); + // string location_id = 1 [json_name = "locationId"]; + void clear_location_id(); + const std::string& location_id() const; + template + void set_location_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_location_id(); + PROTOBUF_NODISCARD std::string* release_location_id(); + void set_allocated_location_id(std::string* location_id); + private: + const std::string& _internal_location_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_location_id(const std::string& value); + std::string* _internal_mutable_location_id(); + public: + // optional string name = 2 [json_name = "name"]; + bool has_name() const; private: - const std::string& _internal_email() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_email( - const std::string& value); - std::string* _internal_mutable_email(); + bool _internal_has_name() const; + public: + 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: + // optional string parent_location_id = 3 [json_name = "parentLocationId"]; + bool has_parent_location_id() const; + private: + bool _internal_has_parent_location_id() const; public: - // @@protoc_insertion_point(class_scope:viam.app.v1.GetUserIDByEmailRequest) + void clear_parent_location_id(); + const std::string& parent_location_id() const; + template + void set_parent_location_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_parent_location_id(); + PROTOBUF_NODISCARD std::string* release_parent_location_id(); + void set_allocated_parent_location_id(std::string* parent_location_id); + private: + const std::string& _internal_parent_location_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_parent_location_id(const std::string& value); + std::string* _internal_mutable_parent_location_id(); + public: + + // optional string region = 4 [json_name = "region"]; + bool has_region() const; + private: + bool _internal_has_region() const; + public: + void clear_region(); + const std::string& region() const; + template + void set_region(ArgT0&& arg0, ArgT... args); + std::string* mutable_region(); + PROTOBUF_NODISCARD std::string* release_region(); + void set_allocated_region(std::string* region); + private: + const std::string& _internal_region() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_region(const std::string& value); + std::string* _internal_mutable_region(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.UpdateLocationRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 49, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr email_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr location_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr parent_location_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr region_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetRoverRentalRobotsRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetRoverRentalRobotsRequest) */ { +class UpdateLocationResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.UpdateLocationResponse) */ { public: - inline GetRoverRentalRobotsRequest() : GetRoverRentalRobotsRequest(nullptr) {} - ~GetRoverRentalRobotsRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetRoverRentalRobotsRequest(::google::protobuf::internal::ConstantInitialized); + inline UpdateLocationResponse() : UpdateLocationResponse(nullptr) {} + ~UpdateLocationResponse() override; + explicit PROTOBUF_CONSTEXPR UpdateLocationResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetRoverRentalRobotsRequest(const GetRoverRentalRobotsRequest& from) - : GetRoverRentalRobotsRequest(nullptr, from) {} - GetRoverRentalRobotsRequest(GetRoverRentalRobotsRequest&& from) noexcept - : GetRoverRentalRobotsRequest() { + UpdateLocationResponse(const UpdateLocationResponse& from); + UpdateLocationResponse(UpdateLocationResponse&& from) noexcept + : UpdateLocationResponse() { *this = ::std::move(from); } - inline GetRoverRentalRobotsRequest& operator=(const GetRoverRentalRobotsRequest& from) { + inline UpdateLocationResponse& operator=(const UpdateLocationResponse& from) { CopyFrom(from); return *this; } - inline GetRoverRentalRobotsRequest& operator=(GetRoverRentalRobotsRequest&& from) noexcept { + inline UpdateLocationResponse& operator=(UpdateLocationResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -11342,178 +10601,149 @@ class GetRoverRentalRobotsRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetRoverRentalRobotsRequest& default_instance() { + static const UpdateLocationResponse& default_instance() { return *internal_default_instance(); } - static inline const GetRoverRentalRobotsRequest* internal_default_instance() { - return reinterpret_cast( - &_GetRoverRentalRobotsRequest_default_instance_); + static inline const UpdateLocationResponse* internal_default_instance() { + return reinterpret_cast( + &_UpdateLocationResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 73; + 55; - friend void swap(GetRoverRentalRobotsRequest& a, GetRoverRentalRobotsRequest& b) { + friend void swap(UpdateLocationResponse& a, UpdateLocationResponse& b) { a.Swap(&b); } - inline void Swap(GetRoverRentalRobotsRequest* other) { + inline void Swap(UpdateLocationResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetRoverRentalRobotsRequest* other) { + void UnsafeArenaSwap(UpdateLocationResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetRoverRentalRobotsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetRoverRentalRobotsRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetRoverRentalRobotsRequest& from) { - GetRoverRentalRobotsRequest::MergeImpl(*this, from); + UpdateLocationResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const UpdateLocationResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const UpdateLocationResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetRoverRentalRobotsRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(UpdateLocationResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.GetRoverRentalRobotsRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.UpdateLocationResponse"; } protected: - explicit GetRoverRentalRobotsRequest(::google::protobuf::Arena* arena); - GetRoverRentalRobotsRequest(::google::protobuf::Arena* arena, const GetRoverRentalRobotsRequest& from); + explicit UpdateLocationResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kOrgIdFieldNumber = 1, + kLocationFieldNumber = 1, }; - // string org_id = 1 [json_name = "orgId"]; - void clear_org_id() ; - const std::string& org_id() const; - template - void set_org_id(Arg_&& arg, Args_... args); - std::string* mutable_org_id(); - PROTOBUF_NODISCARD std::string* release_org_id(); - void set_allocated_org_id(std::string* value); - + // .viam.app.v1.Location location = 1 [json_name = "location"]; + bool has_location() const; private: - const std::string& _internal_org_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_org_id( - const std::string& value); - std::string* _internal_mutable_org_id(); - + bool _internal_has_location() const; public: - // @@protoc_insertion_point(class_scope:viam.app.v1.GetRoverRentalRobotsRequest) + void clear_location(); + const ::viam::app::v1::Location& location() const; + PROTOBUF_NODISCARD ::viam::app::v1::Location* release_location(); + ::viam::app::v1::Location* mutable_location(); + void set_allocated_location(::viam::app::v1::Location* location); + private: + const ::viam::app::v1::Location& _internal_location() const; + ::viam::app::v1::Location* _internal_mutable_location(); + public: + void unsafe_arena_set_allocated_location( + ::viam::app::v1::Location* location); + ::viam::app::v1::Location* unsafe_arena_release_location(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.UpdateLocationResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 54, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr org_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::viam::app::v1::Location* location_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetRobotRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetRobotRequest) */ { +class DeleteLocationRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.DeleteLocationRequest) */ { public: - inline GetRobotRequest() : GetRobotRequest(nullptr) {} - ~GetRobotRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetRobotRequest(::google::protobuf::internal::ConstantInitialized); + inline DeleteLocationRequest() : DeleteLocationRequest(nullptr) {} + ~DeleteLocationRequest() override; + explicit PROTOBUF_CONSTEXPR DeleteLocationRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetRobotRequest(const GetRobotRequest& from) - : GetRobotRequest(nullptr, from) {} - GetRobotRequest(GetRobotRequest&& from) noexcept - : GetRobotRequest() { + DeleteLocationRequest(const DeleteLocationRequest& from); + DeleteLocationRequest(DeleteLocationRequest&& from) noexcept + : DeleteLocationRequest() { *this = ::std::move(from); } - inline GetRobotRequest& operator=(const GetRobotRequest& from) { + inline DeleteLocationRequest& operator=(const DeleteLocationRequest& from) { CopyFrom(from); return *this; } - inline GetRobotRequest& operator=(GetRobotRequest&& from) noexcept { + inline DeleteLocationRequest& operator=(DeleteLocationRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -11523,178 +10753,144 @@ class GetRobotRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetRobotRequest& default_instance() { + static const DeleteLocationRequest& default_instance() { return *internal_default_instance(); } - static inline const GetRobotRequest* internal_default_instance() { - return reinterpret_cast( - &_GetRobotRequest_default_instance_); + static inline const DeleteLocationRequest* internal_default_instance() { + return reinterpret_cast( + &_DeleteLocationRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 72; + 56; - friend void swap(GetRobotRequest& a, GetRobotRequest& b) { + friend void swap(DeleteLocationRequest& a, DeleteLocationRequest& b) { a.Swap(&b); } - inline void Swap(GetRobotRequest* other) { + inline void Swap(DeleteLocationRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetRobotRequest* other) { + void UnsafeArenaSwap(DeleteLocationRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetRobotRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetRobotRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetRobotRequest& from) { - GetRobotRequest::MergeImpl(*this, from); + DeleteLocationRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DeleteLocationRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const DeleteLocationRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetRobotRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(DeleteLocationRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.GetRobotRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.DeleteLocationRequest"; } protected: - explicit GetRobotRequest(::google::protobuf::Arena* arena); - GetRobotRequest(::google::protobuf::Arena* arena, const GetRobotRequest& from); + explicit DeleteLocationRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kIdFieldNumber = 1, + kLocationIdFieldNumber = 1, }; - // string id = 1 [json_name = "id"]; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - + // string location_id = 1 [json_name = "locationId"]; + void clear_location_id(); + const std::string& location_id() const; + template + void set_location_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_location_id(); + PROTOBUF_NODISCARD std::string* release_location_id(); + void set_allocated_location_id(std::string* location_id); private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); - + const std::string& _internal_location_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_location_id(const std::string& value); + std::string* _internal_mutable_location_id(); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.GetRobotRequest) + + // @@protoc_insertion_point(class_scope:viam.app.v1.DeleteLocationRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 38, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr location_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetRobotPartsRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetRobotPartsRequest) */ { +class DeleteLocationResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.DeleteLocationResponse) */ { public: - inline GetRobotPartsRequest() : GetRobotPartsRequest(nullptr) {} - ~GetRobotPartsRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetRobotPartsRequest(::google::protobuf::internal::ConstantInitialized); + inline DeleteLocationResponse() : DeleteLocationResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR DeleteLocationResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetRobotPartsRequest(const GetRobotPartsRequest& from) - : GetRobotPartsRequest(nullptr, from) {} - GetRobotPartsRequest(GetRobotPartsRequest&& from) noexcept - : GetRobotPartsRequest() { + DeleteLocationResponse(const DeleteLocationResponse& from); + DeleteLocationResponse(DeleteLocationResponse&& from) noexcept + : DeleteLocationResponse() { *this = ::std::move(from); } - inline GetRobotPartsRequest& operator=(const GetRobotPartsRequest& from) { + inline DeleteLocationResponse& operator=(const DeleteLocationResponse& from) { CopyFrom(from); return *this; } - inline GetRobotPartsRequest& operator=(GetRobotPartsRequest&& from) noexcept { + inline DeleteLocationResponse& operator=(DeleteLocationResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -11704,178 +10900,114 @@ class GetRobotPartsRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetRobotPartsRequest& default_instance() { + static const DeleteLocationResponse& default_instance() { return *internal_default_instance(); } - static inline const GetRobotPartsRequest* internal_default_instance() { - return reinterpret_cast( - &_GetRobotPartsRequest_default_instance_); + static inline const DeleteLocationResponse* internal_default_instance() { + return reinterpret_cast( + &_DeleteLocationResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 77; + 57; - friend void swap(GetRobotPartsRequest& a, GetRobotPartsRequest& b) { + friend void swap(DeleteLocationResponse& a, DeleteLocationResponse& b) { a.Swap(&b); } - inline void Swap(GetRobotPartsRequest* other) { + inline void Swap(DeleteLocationResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetRobotPartsRequest* other) { + void UnsafeArenaSwap(DeleteLocationResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetRobotPartsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + DeleteLocationResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetRobotPartsRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetRobotPartsRequest& from) { - GetRobotPartsRequest::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const DeleteLocationResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const DeleteLocationResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetRobotPartsRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.GetRobotPartsRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.DeleteLocationResponse"; } protected: - explicit GetRobotPartsRequest(::google::protobuf::Arena* arena); - GetRobotPartsRequest(::google::protobuf::Arena* arena, const GetRobotPartsRequest& from); + explicit DeleteLocationResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kRobotIdFieldNumber = 1, - }; - // string robot_id = 1 [json_name = "robotId"]; - void clear_robot_id() ; - const std::string& robot_id() const; - template - void set_robot_id(Arg_&& arg, Args_... args); - std::string* mutable_robot_id(); - PROTOBUF_NODISCARD std::string* release_robot_id(); - void set_allocated_robot_id(std::string* value); - - private: - const std::string& _internal_robot_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_robot_id( - const std::string& value); - std::string* _internal_mutable_robot_id(); - - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.GetRobotPartsRequest) + // @@protoc_insertion_point(class_scope:viam.app.v1.DeleteLocationResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 49, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr robot_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetRobotPartRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetRobotPartRequest) */ { +class GetOrganizationsWithAccessToLocationRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetOrganizationsWithAccessToLocationRequest) */ { public: - inline GetRobotPartRequest() : GetRobotPartRequest(nullptr) {} - ~GetRobotPartRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetRobotPartRequest(::google::protobuf::internal::ConstantInitialized); + inline GetOrganizationsWithAccessToLocationRequest() : GetOrganizationsWithAccessToLocationRequest(nullptr) {} + ~GetOrganizationsWithAccessToLocationRequest() override; + explicit PROTOBUF_CONSTEXPR GetOrganizationsWithAccessToLocationRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetRobotPartRequest(const GetRobotPartRequest& from) - : GetRobotPartRequest(nullptr, from) {} - GetRobotPartRequest(GetRobotPartRequest&& from) noexcept - : GetRobotPartRequest() { + GetOrganizationsWithAccessToLocationRequest(const GetOrganizationsWithAccessToLocationRequest& from); + GetOrganizationsWithAccessToLocationRequest(GetOrganizationsWithAccessToLocationRequest&& from) noexcept + : GetOrganizationsWithAccessToLocationRequest() { *this = ::std::move(from); } - inline GetRobotPartRequest& operator=(const GetRobotPartRequest& from) { + inline GetOrganizationsWithAccessToLocationRequest& operator=(const GetOrganizationsWithAccessToLocationRequest& from) { CopyFrom(from); return *this; } - inline GetRobotPartRequest& operator=(GetRobotPartRequest&& from) noexcept { + inline GetOrganizationsWithAccessToLocationRequest& operator=(GetOrganizationsWithAccessToLocationRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -11885,178 +11017,145 @@ class GetRobotPartRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetRobotPartRequest& default_instance() { + static const GetOrganizationsWithAccessToLocationRequest& default_instance() { return *internal_default_instance(); } - static inline const GetRobotPartRequest* internal_default_instance() { - return reinterpret_cast( - &_GetRobotPartRequest_default_instance_); + static inline const GetOrganizationsWithAccessToLocationRequest* internal_default_instance() { + return reinterpret_cast( + &_GetOrganizationsWithAccessToLocationRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 79; + 58; - friend void swap(GetRobotPartRequest& a, GetRobotPartRequest& b) { + friend void swap(GetOrganizationsWithAccessToLocationRequest& a, GetOrganizationsWithAccessToLocationRequest& b) { a.Swap(&b); } - inline void Swap(GetRobotPartRequest* other) { + inline void Swap(GetOrganizationsWithAccessToLocationRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetRobotPartRequest* other) { + void UnsafeArenaSwap(GetOrganizationsWithAccessToLocationRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetRobotPartRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetRobotPartRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetRobotPartRequest& from) { - GetRobotPartRequest::MergeImpl(*this, from); + GetOrganizationsWithAccessToLocationRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetOrganizationsWithAccessToLocationRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetOrganizationsWithAccessToLocationRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetRobotPartRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetOrganizationsWithAccessToLocationRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.GetRobotPartRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.GetOrganizationsWithAccessToLocationRequest"; } protected: - explicit GetRobotPartRequest(::google::protobuf::Arena* arena); - GetRobotPartRequest(::google::protobuf::Arena* arena, const GetRobotPartRequest& from); + explicit GetOrganizationsWithAccessToLocationRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kIdFieldNumber = 1, + kLocationIdFieldNumber = 1, }; - // string id = 1 [json_name = "id"]; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - + // string location_id = 1 [json_name = "locationId"]; + void clear_location_id(); + const std::string& location_id() const; + template + void set_location_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_location_id(); + PROTOBUF_NODISCARD std::string* release_location_id(); + void set_allocated_location_id(std::string* location_id); private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); - + const std::string& _internal_location_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_location_id(const std::string& value); + std::string* _internal_mutable_location_id(); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.GetRobotPartRequest) + + // @@protoc_insertion_point(class_scope:viam.app.v1.GetOrganizationsWithAccessToLocationRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 42, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr location_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetRobotPartHistoryRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetRobotPartHistoryRequest) */ { +class GetOrganizationsWithAccessToLocationResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetOrganizationsWithAccessToLocationResponse) */ { public: - inline GetRobotPartHistoryRequest() : GetRobotPartHistoryRequest(nullptr) {} - ~GetRobotPartHistoryRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetRobotPartHistoryRequest(::google::protobuf::internal::ConstantInitialized); + inline GetOrganizationsWithAccessToLocationResponse() : GetOrganizationsWithAccessToLocationResponse(nullptr) {} + ~GetOrganizationsWithAccessToLocationResponse() override; + explicit PROTOBUF_CONSTEXPR GetOrganizationsWithAccessToLocationResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetRobotPartHistoryRequest(const GetRobotPartHistoryRequest& from) - : GetRobotPartHistoryRequest(nullptr, from) {} - GetRobotPartHistoryRequest(GetRobotPartHistoryRequest&& from) noexcept - : GetRobotPartHistoryRequest() { + GetOrganizationsWithAccessToLocationResponse(const GetOrganizationsWithAccessToLocationResponse& from); + GetOrganizationsWithAccessToLocationResponse(GetOrganizationsWithAccessToLocationResponse&& from) noexcept + : GetOrganizationsWithAccessToLocationResponse() { *this = ::std::move(from); } - inline GetRobotPartHistoryRequest& operator=(const GetRobotPartHistoryRequest& from) { + inline GetOrganizationsWithAccessToLocationResponse& operator=(const GetOrganizationsWithAccessToLocationResponse& from) { CopyFrom(from); return *this; } - inline GetRobotPartHistoryRequest& operator=(GetRobotPartHistoryRequest&& from) noexcept { + inline GetOrganizationsWithAccessToLocationResponse& operator=(GetOrganizationsWithAccessToLocationResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -12066,178 +11165,149 @@ class GetRobotPartHistoryRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetRobotPartHistoryRequest& default_instance() { + static const GetOrganizationsWithAccessToLocationResponse& default_instance() { return *internal_default_instance(); } - static inline const GetRobotPartHistoryRequest* internal_default_instance() { - return reinterpret_cast( - &_GetRobotPartHistoryRequest_default_instance_); + static inline const GetOrganizationsWithAccessToLocationResponse* internal_default_instance() { + return reinterpret_cast( + &_GetOrganizationsWithAccessToLocationResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 85; + 59; - friend void swap(GetRobotPartHistoryRequest& a, GetRobotPartHistoryRequest& b) { + friend void swap(GetOrganizationsWithAccessToLocationResponse& a, GetOrganizationsWithAccessToLocationResponse& b) { a.Swap(&b); } - inline void Swap(GetRobotPartHistoryRequest* other) { + inline void Swap(GetOrganizationsWithAccessToLocationResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetRobotPartHistoryRequest* other) { + void UnsafeArenaSwap(GetOrganizationsWithAccessToLocationResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetRobotPartHistoryRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetRobotPartHistoryRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetRobotPartHistoryRequest& from) { - GetRobotPartHistoryRequest::MergeImpl(*this, from); + GetOrganizationsWithAccessToLocationResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetOrganizationsWithAccessToLocationResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetOrganizationsWithAccessToLocationResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetRobotPartHistoryRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetOrganizationsWithAccessToLocationResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.GetRobotPartHistoryRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.GetOrganizationsWithAccessToLocationResponse"; } protected: - explicit GetRobotPartHistoryRequest(::google::protobuf::Arena* arena); - GetRobotPartHistoryRequest(::google::protobuf::Arena* arena, const GetRobotPartHistoryRequest& from); + explicit GetOrganizationsWithAccessToLocationResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kIdFieldNumber = 1, + kOrganizationIdentitiesFieldNumber = 1, }; - // string id = 1 [json_name = "id"]; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - + // repeated .viam.app.v1.OrganizationIdentity organization_identities = 1 [json_name = "organizationIdentities"]; + int organization_identities_size() const; private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); - + int _internal_organization_identities_size() const; public: - // @@protoc_insertion_point(class_scope:viam.app.v1.GetRobotPartHistoryRequest) + void clear_organization_identities(); + ::viam::app::v1::OrganizationIdentity* mutable_organization_identities(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::OrganizationIdentity >* + mutable_organization_identities(); + private: + const ::viam::app::v1::OrganizationIdentity& _internal_organization_identities(int index) const; + ::viam::app::v1::OrganizationIdentity* _internal_add_organization_identities(); + public: + const ::viam::app::v1::OrganizationIdentity& organization_identities(int index) const; + ::viam::app::v1::OrganizationIdentity* add_organization_identities(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::OrganizationIdentity >& + organization_identities() const; + + // @@protoc_insertion_point(class_scope:viam.app.v1.GetOrganizationsWithAccessToLocationResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 49, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::OrganizationIdentity > organization_identities_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetRobotAPIKeysRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetRobotAPIKeysRequest) */ { +class ListLocationsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ListLocationsRequest) */ { public: - inline GetRobotAPIKeysRequest() : GetRobotAPIKeysRequest(nullptr) {} - ~GetRobotAPIKeysRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetRobotAPIKeysRequest(::google::protobuf::internal::ConstantInitialized); + inline ListLocationsRequest() : ListLocationsRequest(nullptr) {} + ~ListLocationsRequest() override; + explicit PROTOBUF_CONSTEXPR ListLocationsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetRobotAPIKeysRequest(const GetRobotAPIKeysRequest& from) - : GetRobotAPIKeysRequest(nullptr, from) {} - GetRobotAPIKeysRequest(GetRobotAPIKeysRequest&& from) noexcept - : GetRobotAPIKeysRequest() { + ListLocationsRequest(const ListLocationsRequest& from); + ListLocationsRequest(ListLocationsRequest&& from) noexcept + : ListLocationsRequest() { *this = ::std::move(from); } - inline GetRobotAPIKeysRequest& operator=(const GetRobotAPIKeysRequest& from) { + inline ListLocationsRequest& operator=(const ListLocationsRequest& from) { CopyFrom(from); return *this; } - inline GetRobotAPIKeysRequest& operator=(GetRobotAPIKeysRequest&& from) noexcept { + inline ListLocationsRequest& operator=(ListLocationsRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -12247,178 +11317,145 @@ class GetRobotAPIKeysRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetRobotAPIKeysRequest& default_instance() { + static const ListLocationsRequest& default_instance() { return *internal_default_instance(); } - static inline const GetRobotAPIKeysRequest* internal_default_instance() { - return reinterpret_cast( - &_GetRobotAPIKeysRequest_default_instance_); + static inline const ListLocationsRequest* internal_default_instance() { + return reinterpret_cast( + &_ListLocationsRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 92; + 60; - friend void swap(GetRobotAPIKeysRequest& a, GetRobotAPIKeysRequest& b) { + friend void swap(ListLocationsRequest& a, ListLocationsRequest& b) { a.Swap(&b); } - inline void Swap(GetRobotAPIKeysRequest* other) { + inline void Swap(ListLocationsRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetRobotAPIKeysRequest* other) { + void UnsafeArenaSwap(ListLocationsRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetRobotAPIKeysRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetRobotAPIKeysRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetRobotAPIKeysRequest& from) { - GetRobotAPIKeysRequest::MergeImpl(*this, from); + ListLocationsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ListLocationsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ListLocationsRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetRobotAPIKeysRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(ListLocationsRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.GetRobotAPIKeysRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.ListLocationsRequest"; } protected: - explicit GetRobotAPIKeysRequest(::google::protobuf::Arena* arena); - GetRobotAPIKeysRequest(::google::protobuf::Arena* arena, const GetRobotAPIKeysRequest& from); + explicit ListLocationsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kRobotIdFieldNumber = 1, + kOrganizationIdFieldNumber = 1, }; - // string robot_id = 1 [json_name = "robotId"]; - void clear_robot_id() ; - const std::string& robot_id() const; - template - void set_robot_id(Arg_&& arg, Args_... args); - std::string* mutable_robot_id(); - PROTOBUF_NODISCARD std::string* release_robot_id(); - void set_allocated_robot_id(std::string* value); - + // string organization_id = 1 [json_name = "organizationId"]; + void clear_organization_id(); + const std::string& organization_id() const; + template + void set_organization_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_organization_id(); + PROTOBUF_NODISCARD std::string* release_organization_id(); + void set_allocated_organization_id(std::string* organization_id); private: - const std::string& _internal_robot_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_robot_id( - const std::string& value); - std::string* _internal_mutable_robot_id(); - + const std::string& _internal_organization_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id(const std::string& value); + std::string* _internal_mutable_organization_id(); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.GetRobotAPIKeysRequest) + + // @@protoc_insertion_point(class_scope:viam.app.v1.ListLocationsRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 51, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr robot_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr organization_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetRegistryItemRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetRegistryItemRequest) */ { +class ShareLocationRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ShareLocationRequest) */ { public: - inline GetRegistryItemRequest() : GetRegistryItemRequest(nullptr) {} - ~GetRegistryItemRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetRegistryItemRequest(::google::protobuf::internal::ConstantInitialized); + inline ShareLocationRequest() : ShareLocationRequest(nullptr) {} + ~ShareLocationRequest() override; + explicit PROTOBUF_CONSTEXPR ShareLocationRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetRegistryItemRequest(const GetRegistryItemRequest& from) - : GetRegistryItemRequest(nullptr, from) {} - GetRegistryItemRequest(GetRegistryItemRequest&& from) noexcept - : GetRegistryItemRequest() { + ShareLocationRequest(const ShareLocationRequest& from); + ShareLocationRequest(ShareLocationRequest&& from) noexcept + : ShareLocationRequest() { *this = ::std::move(from); } - inline GetRegistryItemRequest& operator=(const GetRegistryItemRequest& from) { + inline ShareLocationRequest& operator=(const ShareLocationRequest& from) { CopyFrom(from); return *this; } - inline GetRegistryItemRequest& operator=(GetRegistryItemRequest&& from) noexcept { + inline ShareLocationRequest& operator=(ShareLocationRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -12428,178 +11465,160 @@ class GetRegistryItemRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetRegistryItemRequest& default_instance() { + static const ShareLocationRequest& default_instance() { return *internal_default_instance(); } - static inline const GetRegistryItemRequest* internal_default_instance() { - return reinterpret_cast( - &_GetRegistryItemRequest_default_instance_); + static inline const ShareLocationRequest* internal_default_instance() { + return reinterpret_cast( + &_ShareLocationRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 148; + 61; - friend void swap(GetRegistryItemRequest& a, GetRegistryItemRequest& b) { + friend void swap(ShareLocationRequest& a, ShareLocationRequest& b) { a.Swap(&b); } - inline void Swap(GetRegistryItemRequest* other) { + inline void Swap(ShareLocationRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetRegistryItemRequest* other) { + void UnsafeArenaSwap(ShareLocationRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetRegistryItemRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetRegistryItemRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetRegistryItemRequest& from) { - GetRegistryItemRequest::MergeImpl(*this, from); + ShareLocationRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ShareLocationRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ShareLocationRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetRegistryItemRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(ShareLocationRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.GetRegistryItemRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.ShareLocationRequest"; } protected: - explicit GetRegistryItemRequest(::google::protobuf::Arena* arena); - GetRegistryItemRequest(::google::protobuf::Arena* arena, const GetRegistryItemRequest& from); + explicit ShareLocationRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kItemIdFieldNumber = 1, + kLocationIdFieldNumber = 1, + kOrganizationIdFieldNumber = 2, }; - // string item_id = 1 [json_name = "itemId"]; - void clear_item_id() ; - const std::string& item_id() const; - template - void set_item_id(Arg_&& arg, Args_... args); - std::string* mutable_item_id(); - PROTOBUF_NODISCARD std::string* release_item_id(); - void set_allocated_item_id(std::string* value); - + // string location_id = 1 [json_name = "locationId"]; + void clear_location_id(); + const std::string& location_id() const; + template + void set_location_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_location_id(); + PROTOBUF_NODISCARD std::string* release_location_id(); + void set_allocated_location_id(std::string* location_id); private: - const std::string& _internal_item_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_item_id( - const std::string& value); - std::string* _internal_mutable_item_id(); + const std::string& _internal_location_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_location_id(const std::string& value); + std::string* _internal_mutable_location_id(); + public: + // string organization_id = 2 [json_name = "organizationId"]; + void clear_organization_id(); + const std::string& organization_id() const; + template + void set_organization_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_organization_id(); + PROTOBUF_NODISCARD std::string* release_organization_id(); + void set_allocated_organization_id(std::string* organization_id); + private: + const std::string& _internal_organization_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id(const std::string& value); + std::string* _internal_mutable_organization_id(); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.GetRegistryItemRequest) + + // @@protoc_insertion_point(class_scope:viam.app.v1.ShareLocationRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 50, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr item_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr location_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr organization_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetOrganizationsWithAccessToLocationRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetOrganizationsWithAccessToLocationRequest) */ { +class ShareLocationResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.ShareLocationResponse) */ { public: - inline GetOrganizationsWithAccessToLocationRequest() : GetOrganizationsWithAccessToLocationRequest(nullptr) {} - ~GetOrganizationsWithAccessToLocationRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetOrganizationsWithAccessToLocationRequest(::google::protobuf::internal::ConstantInitialized); + inline ShareLocationResponse() : ShareLocationResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR ShareLocationResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetOrganizationsWithAccessToLocationRequest(const GetOrganizationsWithAccessToLocationRequest& from) - : GetOrganizationsWithAccessToLocationRequest(nullptr, from) {} - GetOrganizationsWithAccessToLocationRequest(GetOrganizationsWithAccessToLocationRequest&& from) noexcept - : GetOrganizationsWithAccessToLocationRequest() { + ShareLocationResponse(const ShareLocationResponse& from); + ShareLocationResponse(ShareLocationResponse&& from) noexcept + : ShareLocationResponse() { *this = ::std::move(from); } - inline GetOrganizationsWithAccessToLocationRequest& operator=(const GetOrganizationsWithAccessToLocationRequest& from) { + inline ShareLocationResponse& operator=(const ShareLocationResponse& from) { CopyFrom(from); return *this; } - inline GetOrganizationsWithAccessToLocationRequest& operator=(GetOrganizationsWithAccessToLocationRequest&& from) noexcept { + inline ShareLocationResponse& operator=(ShareLocationResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -12609,178 +11628,114 @@ class GetOrganizationsWithAccessToLocationRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetOrganizationsWithAccessToLocationRequest& default_instance() { + static const ShareLocationResponse& default_instance() { return *internal_default_instance(); } - static inline const GetOrganizationsWithAccessToLocationRequest* internal_default_instance() { - return reinterpret_cast( - &_GetOrganizationsWithAccessToLocationRequest_default_instance_); + static inline const ShareLocationResponse* internal_default_instance() { + return reinterpret_cast( + &_ShareLocationResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 58; + 62; - friend void swap(GetOrganizationsWithAccessToLocationRequest& a, GetOrganizationsWithAccessToLocationRequest& b) { + friend void swap(ShareLocationResponse& a, ShareLocationResponse& b) { a.Swap(&b); } - inline void Swap(GetOrganizationsWithAccessToLocationRequest* other) { + inline void Swap(ShareLocationResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetOrganizationsWithAccessToLocationRequest* other) { + void UnsafeArenaSwap(ShareLocationResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetOrganizationsWithAccessToLocationRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ShareLocationResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetOrganizationsWithAccessToLocationRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetOrganizationsWithAccessToLocationRequest& from) { - GetOrganizationsWithAccessToLocationRequest::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const ShareLocationResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const ShareLocationResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetOrganizationsWithAccessToLocationRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.GetOrganizationsWithAccessToLocationRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.ShareLocationResponse"; } protected: - explicit GetOrganizationsWithAccessToLocationRequest(::google::protobuf::Arena* arena); - GetOrganizationsWithAccessToLocationRequest(::google::protobuf::Arena* arena, const GetOrganizationsWithAccessToLocationRequest& from); + explicit ShareLocationResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kLocationIdFieldNumber = 1, - }; - // string location_id = 1 [json_name = "locationId"]; - void clear_location_id() ; - const std::string& location_id() const; - template - void set_location_id(Arg_&& arg, Args_... args); - std::string* mutable_location_id(); - PROTOBUF_NODISCARD std::string* release_location_id(); - void set_allocated_location_id(std::string* value); - - private: - const std::string& _internal_location_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_location_id( - const std::string& value); - std::string* _internal_mutable_location_id(); - - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.GetOrganizationsWithAccessToLocationRequest) + // @@protoc_insertion_point(class_scope:viam.app.v1.ShareLocationResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 75, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr location_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetOrganizationRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetOrganizationRequest) */ { +class UnshareLocationRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.UnshareLocationRequest) */ { public: - inline GetOrganizationRequest() : GetOrganizationRequest(nullptr) {} - ~GetOrganizationRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetOrganizationRequest(::google::protobuf::internal::ConstantInitialized); + inline UnshareLocationRequest() : UnshareLocationRequest(nullptr) {} + ~UnshareLocationRequest() override; + explicit PROTOBUF_CONSTEXPR UnshareLocationRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetOrganizationRequest(const GetOrganizationRequest& from) - : GetOrganizationRequest(nullptr, from) {} - GetOrganizationRequest(GetOrganizationRequest&& from) noexcept - : GetOrganizationRequest() { + UnshareLocationRequest(const UnshareLocationRequest& from); + UnshareLocationRequest(UnshareLocationRequest&& from) noexcept + : UnshareLocationRequest() { *this = ::std::move(from); } - inline GetOrganizationRequest& operator=(const GetOrganizationRequest& from) { + inline UnshareLocationRequest& operator=(const UnshareLocationRequest& from) { CopyFrom(from); return *this; } - inline GetOrganizationRequest& operator=(GetOrganizationRequest&& from) noexcept { + inline UnshareLocationRequest& operator=(UnshareLocationRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -12790,178 +11745,160 @@ class GetOrganizationRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetOrganizationRequest& default_instance() { + static const UnshareLocationRequest& default_instance() { return *internal_default_instance(); } - static inline const GetOrganizationRequest* internal_default_instance() { - return reinterpret_cast( - &_GetOrganizationRequest_default_instance_); + static inline const UnshareLocationRequest* internal_default_instance() { + return reinterpret_cast( + &_UnshareLocationRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 11; + 63; - friend void swap(GetOrganizationRequest& a, GetOrganizationRequest& b) { + friend void swap(UnshareLocationRequest& a, UnshareLocationRequest& b) { a.Swap(&b); } - inline void Swap(GetOrganizationRequest* other) { + inline void Swap(UnshareLocationRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetOrganizationRequest* other) { + void UnsafeArenaSwap(UnshareLocationRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetOrganizationRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetOrganizationRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetOrganizationRequest& from) { - GetOrganizationRequest::MergeImpl(*this, from); + UnshareLocationRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const UnshareLocationRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const UnshareLocationRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetOrganizationRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(UnshareLocationRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.GetOrganizationRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.UnshareLocationRequest"; } protected: - explicit GetOrganizationRequest(::google::protobuf::Arena* arena); - GetOrganizationRequest(::google::protobuf::Arena* arena, const GetOrganizationRequest& from); + explicit UnshareLocationRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kOrganizationIdFieldNumber = 1, + kLocationIdFieldNumber = 1, + kOrganizationIdFieldNumber = 2, }; - // string organization_id = 1 [json_name = "organizationId"]; - void clear_organization_id() ; + // string location_id = 1 [json_name = "locationId"]; + void clear_location_id(); + const std::string& location_id() const; + template + void set_location_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_location_id(); + PROTOBUF_NODISCARD std::string* release_location_id(); + void set_allocated_location_id(std::string* location_id); + private: + const std::string& _internal_location_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_location_id(const std::string& value); + std::string* _internal_mutable_location_id(); + public: + + // string organization_id = 2 [json_name = "organizationId"]; + void clear_organization_id(); const std::string& organization_id() const; - template - void set_organization_id(Arg_&& arg, Args_... args); + template + void set_organization_id(ArgT0&& arg0, ArgT... args); std::string* mutable_organization_id(); PROTOBUF_NODISCARD std::string* release_organization_id(); - void set_allocated_organization_id(std::string* value); - + void set_allocated_organization_id(std::string* organization_id); private: const std::string& _internal_organization_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id(const std::string& value); std::string* _internal_mutable_organization_id(); - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.GetOrganizationRequest) + + // @@protoc_insertion_point(class_scope:viam.app.v1.UnshareLocationRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 58, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr organization_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr location_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr organization_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetOrganizationNamespaceAvailabilityResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetOrganizationNamespaceAvailabilityResponse) */ { +class UnshareLocationResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.UnshareLocationResponse) */ { public: - inline GetOrganizationNamespaceAvailabilityResponse() : GetOrganizationNamespaceAvailabilityResponse(nullptr) {} - ~GetOrganizationNamespaceAvailabilityResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetOrganizationNamespaceAvailabilityResponse(::google::protobuf::internal::ConstantInitialized); + inline UnshareLocationResponse() : UnshareLocationResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR UnshareLocationResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetOrganizationNamespaceAvailabilityResponse(const GetOrganizationNamespaceAvailabilityResponse& from) - : GetOrganizationNamespaceAvailabilityResponse(nullptr, from) {} - GetOrganizationNamespaceAvailabilityResponse(GetOrganizationNamespaceAvailabilityResponse&& from) noexcept - : GetOrganizationNamespaceAvailabilityResponse() { + UnshareLocationResponse(const UnshareLocationResponse& from); + UnshareLocationResponse(UnshareLocationResponse&& from) noexcept + : UnshareLocationResponse() { *this = ::std::move(from); } - inline GetOrganizationNamespaceAvailabilityResponse& operator=(const GetOrganizationNamespaceAvailabilityResponse& from) { + inline UnshareLocationResponse& operator=(const UnshareLocationResponse& from) { CopyFrom(from); return *this; } - inline GetOrganizationNamespaceAvailabilityResponse& operator=(GetOrganizationNamespaceAvailabilityResponse&& from) noexcept { + inline UnshareLocationResponse& operator=(UnshareLocationResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -12971,172 +11908,114 @@ class GetOrganizationNamespaceAvailabilityResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetOrganizationNamespaceAvailabilityResponse& default_instance() { + static const UnshareLocationResponse& default_instance() { return *internal_default_instance(); } - static inline const GetOrganizationNamespaceAvailabilityResponse* internal_default_instance() { - return reinterpret_cast( - &_GetOrganizationNamespaceAvailabilityResponse_default_instance_); + static inline const UnshareLocationResponse* internal_default_instance() { + return reinterpret_cast( + &_UnshareLocationResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 14; + 64; - friend void swap(GetOrganizationNamespaceAvailabilityResponse& a, GetOrganizationNamespaceAvailabilityResponse& b) { + friend void swap(UnshareLocationResponse& a, UnshareLocationResponse& b) { a.Swap(&b); } - inline void Swap(GetOrganizationNamespaceAvailabilityResponse* other) { + inline void Swap(UnshareLocationResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetOrganizationNamespaceAvailabilityResponse* other) { + void UnsafeArenaSwap(UnshareLocationResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetOrganizationNamespaceAvailabilityResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + UnshareLocationResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetOrganizationNamespaceAvailabilityResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetOrganizationNamespaceAvailabilityResponse& from) { - GetOrganizationNamespaceAvailabilityResponse::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const UnshareLocationResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const UnshareLocationResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetOrganizationNamespaceAvailabilityResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.GetOrganizationNamespaceAvailabilityResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.UnshareLocationResponse"; } protected: - explicit GetOrganizationNamespaceAvailabilityResponse(::google::protobuf::Arena* arena); - GetOrganizationNamespaceAvailabilityResponse(::google::protobuf::Arena* arena, const GetOrganizationNamespaceAvailabilityResponse& from); + explicit UnshareLocationResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kAvailableFieldNumber = 1, - }; - // bool available = 1 [json_name = "available"]; - void clear_available() ; - bool available() const; - void set_available(bool value); - - private: - bool _internal_available() const; - void _internal_set_available(bool value); - - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.GetOrganizationNamespaceAvailabilityResponse) + // @@protoc_insertion_point(class_scope:viam.app.v1.UnshareLocationResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - bool available_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetOrganizationNamespaceAvailabilityRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetOrganizationNamespaceAvailabilityRequest) */ { +class ListLocationsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ListLocationsResponse) */ { public: - inline GetOrganizationNamespaceAvailabilityRequest() : GetOrganizationNamespaceAvailabilityRequest(nullptr) {} - ~GetOrganizationNamespaceAvailabilityRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetOrganizationNamespaceAvailabilityRequest(::google::protobuf::internal::ConstantInitialized); + inline ListLocationsResponse() : ListLocationsResponse(nullptr) {} + ~ListLocationsResponse() override; + explicit PROTOBUF_CONSTEXPR ListLocationsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetOrganizationNamespaceAvailabilityRequest(const GetOrganizationNamespaceAvailabilityRequest& from) - : GetOrganizationNamespaceAvailabilityRequest(nullptr, from) {} - GetOrganizationNamespaceAvailabilityRequest(GetOrganizationNamespaceAvailabilityRequest&& from) noexcept - : GetOrganizationNamespaceAvailabilityRequest() { + ListLocationsResponse(const ListLocationsResponse& from); + ListLocationsResponse(ListLocationsResponse&& from) noexcept + : ListLocationsResponse() { *this = ::std::move(from); } - inline GetOrganizationNamespaceAvailabilityRequest& operator=(const GetOrganizationNamespaceAvailabilityRequest& from) { + inline ListLocationsResponse& operator=(const ListLocationsResponse& from) { CopyFrom(from); return *this; } - inline GetOrganizationNamespaceAvailabilityRequest& operator=(GetOrganizationNamespaceAvailabilityRequest&& from) noexcept { + inline ListLocationsResponse& operator=(ListLocationsResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -13146,178 +12025,149 @@ class GetOrganizationNamespaceAvailabilityRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetOrganizationNamespaceAvailabilityRequest& default_instance() { + static const ListLocationsResponse& default_instance() { return *internal_default_instance(); } - static inline const GetOrganizationNamespaceAvailabilityRequest* internal_default_instance() { - return reinterpret_cast( - &_GetOrganizationNamespaceAvailabilityRequest_default_instance_); + static inline const ListLocationsResponse* internal_default_instance() { + return reinterpret_cast( + &_ListLocationsResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 13; + 65; - friend void swap(GetOrganizationNamespaceAvailabilityRequest& a, GetOrganizationNamespaceAvailabilityRequest& b) { + friend void swap(ListLocationsResponse& a, ListLocationsResponse& b) { a.Swap(&b); } - inline void Swap(GetOrganizationNamespaceAvailabilityRequest* other) { + inline void Swap(ListLocationsResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetOrganizationNamespaceAvailabilityRequest* other) { + void UnsafeArenaSwap(ListLocationsResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetOrganizationNamespaceAvailabilityRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetOrganizationNamespaceAvailabilityRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetOrganizationNamespaceAvailabilityRequest& from) { - GetOrganizationNamespaceAvailabilityRequest::MergeImpl(*this, from); + ListLocationsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ListLocationsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ListLocationsResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetOrganizationNamespaceAvailabilityRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(ListLocationsResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.GetOrganizationNamespaceAvailabilityRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.ListLocationsResponse"; } protected: - explicit GetOrganizationNamespaceAvailabilityRequest(::google::protobuf::Arena* arena); - GetOrganizationNamespaceAvailabilityRequest(::google::protobuf::Arena* arena, const GetOrganizationNamespaceAvailabilityRequest& from); + explicit ListLocationsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kPublicNamespaceFieldNumber = 1, + kLocationsFieldNumber = 1, }; - // string public_namespace = 1 [json_name = "publicNamespace"]; - void clear_public_namespace() ; - const std::string& public_namespace() const; - template - void set_public_namespace(Arg_&& arg, Args_... args); - std::string* mutable_public_namespace(); - PROTOBUF_NODISCARD std::string* release_public_namespace(); - void set_allocated_public_namespace(std::string* value); - + // repeated .viam.app.v1.Location locations = 1 [json_name = "locations"]; + int locations_size() const; private: - const std::string& _internal_public_namespace() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_public_namespace( - const std::string& value); - std::string* _internal_mutable_public_namespace(); - + int _internal_locations_size() const; public: - // @@protoc_insertion_point(class_scope:viam.app.v1.GetOrganizationNamespaceAvailabilityRequest) + void clear_locations(); + ::viam::app::v1::Location* mutable_locations(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Location >* + mutable_locations(); + private: + const ::viam::app::v1::Location& _internal_locations(int index) const; + ::viam::app::v1::Location* _internal_add_locations(); + public: + const ::viam::app::v1::Location& locations(int index) const; + ::viam::app::v1::Location* add_locations(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Location >& + locations() const; + + // @@protoc_insertion_point(class_scope:viam.app.v1.ListLocationsResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 80, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr public_namespace_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Location > locations_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetModuleRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetModuleRequest) */ { +class CreateLocationSecretRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.CreateLocationSecretRequest) */ { public: - inline GetModuleRequest() : GetModuleRequest(nullptr) {} - ~GetModuleRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetModuleRequest(::google::protobuf::internal::ConstantInitialized); + inline CreateLocationSecretRequest() : CreateLocationSecretRequest(nullptr) {} + ~CreateLocationSecretRequest() override; + explicit PROTOBUF_CONSTEXPR CreateLocationSecretRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetModuleRequest(const GetModuleRequest& from) - : GetModuleRequest(nullptr, from) {} - GetModuleRequest(GetModuleRequest&& from) noexcept - : GetModuleRequest() { + CreateLocationSecretRequest(const CreateLocationSecretRequest& from); + CreateLocationSecretRequest(CreateLocationSecretRequest&& from) noexcept + : CreateLocationSecretRequest() { *this = ::std::move(from); } - inline GetModuleRequest& operator=(const GetModuleRequest& from) { + inline CreateLocationSecretRequest& operator=(const CreateLocationSecretRequest& from) { CopyFrom(from); return *this; } - inline GetModuleRequest& operator=(GetModuleRequest&& from) noexcept { + inline CreateLocationSecretRequest& operator=(CreateLocationSecretRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -13327,178 +12177,145 @@ class GetModuleRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetModuleRequest& default_instance() { + static const CreateLocationSecretRequest& default_instance() { return *internal_default_instance(); } - static inline const GetModuleRequest* internal_default_instance() { - return reinterpret_cast( - &_GetModuleRequest_default_instance_); + static inline const CreateLocationSecretRequest* internal_default_instance() { + return reinterpret_cast( + &_CreateLocationSecretRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 168; + 66; - friend void swap(GetModuleRequest& a, GetModuleRequest& b) { + friend void swap(CreateLocationSecretRequest& a, CreateLocationSecretRequest& b) { a.Swap(&b); } - inline void Swap(GetModuleRequest* other) { + inline void Swap(CreateLocationSecretRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetModuleRequest* other) { + void UnsafeArenaSwap(CreateLocationSecretRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetModuleRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetModuleRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetModuleRequest& from) { - GetModuleRequest::MergeImpl(*this, from); + CreateLocationSecretRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CreateLocationSecretRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CreateLocationSecretRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetModuleRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(CreateLocationSecretRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.GetModuleRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.CreateLocationSecretRequest"; } protected: - explicit GetModuleRequest(::google::protobuf::Arena* arena); - GetModuleRequest(::google::protobuf::Arena* arena, const GetModuleRequest& from); + explicit CreateLocationSecretRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kModuleIdFieldNumber = 1, + kLocationIdFieldNumber = 1, }; - // string module_id = 1 [json_name = "moduleId"]; - void clear_module_id() ; - const std::string& module_id() const; - template - void set_module_id(Arg_&& arg, Args_... args); - std::string* mutable_module_id(); - PROTOBUF_NODISCARD std::string* release_module_id(); - void set_allocated_module_id(std::string* value); - + // string location_id = 1 [json_name = "locationId"]; + void clear_location_id(); + const std::string& location_id() const; + template + void set_location_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_location_id(); + PROTOBUF_NODISCARD std::string* release_location_id(); + void set_allocated_location_id(std::string* location_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(); - + const std::string& _internal_location_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_location_id(const std::string& value); + std::string* _internal_mutable_location_id(); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.GetModuleRequest) + + // @@protoc_insertion_point(class_scope:viam.app.v1.CreateLocationSecretRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 46, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr module_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr location_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetLocationRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetLocationRequest) */ { +class CreateLocationSecretResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.CreateLocationSecretResponse) */ { public: - inline GetLocationRequest() : GetLocationRequest(nullptr) {} - ~GetLocationRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetLocationRequest(::google::protobuf::internal::ConstantInitialized); + inline CreateLocationSecretResponse() : CreateLocationSecretResponse(nullptr) {} + ~CreateLocationSecretResponse() override; + explicit PROTOBUF_CONSTEXPR CreateLocationSecretResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetLocationRequest(const GetLocationRequest& from) - : GetLocationRequest(nullptr, from) {} - GetLocationRequest(GetLocationRequest&& from) noexcept - : GetLocationRequest() { + CreateLocationSecretResponse(const CreateLocationSecretResponse& from); + CreateLocationSecretResponse(CreateLocationSecretResponse&& from) noexcept + : CreateLocationSecretResponse() { *this = ::std::move(from); } - inline GetLocationRequest& operator=(const GetLocationRequest& from) { + inline CreateLocationSecretResponse& operator=(const CreateLocationSecretResponse& from) { CopyFrom(from); return *this; } - inline GetLocationRequest& operator=(GetLocationRequest&& from) noexcept { + inline CreateLocationSecretResponse& operator=(CreateLocationSecretResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -13508,178 +12325,149 @@ class GetLocationRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetLocationRequest& default_instance() { + static const CreateLocationSecretResponse& default_instance() { return *internal_default_instance(); } - static inline const GetLocationRequest* internal_default_instance() { - return reinterpret_cast( - &_GetLocationRequest_default_instance_); + static inline const CreateLocationSecretResponse* internal_default_instance() { + return reinterpret_cast( + &_CreateLocationSecretResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 52; + 67; - friend void swap(GetLocationRequest& a, GetLocationRequest& b) { + friend void swap(CreateLocationSecretResponse& a, CreateLocationSecretResponse& b) { a.Swap(&b); } - inline void Swap(GetLocationRequest* other) { + inline void Swap(CreateLocationSecretResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetLocationRequest* other) { + void UnsafeArenaSwap(CreateLocationSecretResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetLocationRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetLocationRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetLocationRequest& from) { - GetLocationRequest::MergeImpl(*this, from); + CreateLocationSecretResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CreateLocationSecretResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CreateLocationSecretResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetLocationRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(CreateLocationSecretResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.GetLocationRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.CreateLocationSecretResponse"; } protected: - explicit GetLocationRequest(::google::protobuf::Arena* arena); - GetLocationRequest(::google::protobuf::Arena* arena, const GetLocationRequest& from); + explicit CreateLocationSecretResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kLocationIdFieldNumber = 1, + kAuthFieldNumber = 1, }; - // string location_id = 1 [json_name = "locationId"]; - void clear_location_id() ; - const std::string& location_id() const; - template - void set_location_id(Arg_&& arg, Args_... args); - std::string* mutable_location_id(); - PROTOBUF_NODISCARD std::string* release_location_id(); - void set_allocated_location_id(std::string* value); - + // .viam.app.v1.LocationAuth auth = 1 [json_name = "auth"]; + bool has_auth() const; private: - const std::string& _internal_location_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_location_id( - const std::string& value); - std::string* _internal_mutable_location_id(); - + bool _internal_has_auth() const; public: - // @@protoc_insertion_point(class_scope:viam.app.v1.GetLocationRequest) + void clear_auth(); + const ::viam::app::v1::LocationAuth& auth() const; + PROTOBUF_NODISCARD ::viam::app::v1::LocationAuth* release_auth(); + ::viam::app::v1::LocationAuth* mutable_auth(); + void set_allocated_auth(::viam::app::v1::LocationAuth* auth); + private: + const ::viam::app::v1::LocationAuth& _internal_auth() const; + ::viam::app::v1::LocationAuth* _internal_mutable_auth(); + public: + void unsafe_arena_set_allocated_auth( + ::viam::app::v1::LocationAuth* auth); + ::viam::app::v1::LocationAuth* unsafe_arena_release_auth(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.CreateLocationSecretResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 50, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr location_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::viam::app::v1::LocationAuth* auth_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetFragmentRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetFragmentRequest) */ { +class DeleteLocationSecretRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.DeleteLocationSecretRequest) */ { public: - inline GetFragmentRequest() : GetFragmentRequest(nullptr) {} - ~GetFragmentRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetFragmentRequest(::google::protobuf::internal::ConstantInitialized); + inline DeleteLocationSecretRequest() : DeleteLocationSecretRequest(nullptr) {} + ~DeleteLocationSecretRequest() override; + explicit PROTOBUF_CONSTEXPR DeleteLocationSecretRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetFragmentRequest(const GetFragmentRequest& from) - : GetFragmentRequest(nullptr, from) {} - GetFragmentRequest(GetFragmentRequest&& from) noexcept - : GetFragmentRequest() { + DeleteLocationSecretRequest(const DeleteLocationSecretRequest& from); + DeleteLocationSecretRequest(DeleteLocationSecretRequest&& from) noexcept + : DeleteLocationSecretRequest() { *this = ::std::move(from); } - inline GetFragmentRequest& operator=(const GetFragmentRequest& from) { + inline DeleteLocationSecretRequest& operator=(const DeleteLocationSecretRequest& from) { CopyFrom(from); return *this; } - inline GetFragmentRequest& operator=(GetFragmentRequest&& from) noexcept { + inline DeleteLocationSecretRequest& operator=(DeleteLocationSecretRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -13689,178 +12477,160 @@ class GetFragmentRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetFragmentRequest& default_instance() { + static const DeleteLocationSecretRequest& default_instance() { return *internal_default_instance(); } - static inline const GetFragmentRequest* internal_default_instance() { - return reinterpret_cast( - &_GetFragmentRequest_default_instance_); + static inline const DeleteLocationSecretRequest* internal_default_instance() { + return reinterpret_cast( + &_DeleteLocationSecretRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 102; + 68; - friend void swap(GetFragmentRequest& a, GetFragmentRequest& b) { + friend void swap(DeleteLocationSecretRequest& a, DeleteLocationSecretRequest& b) { a.Swap(&b); } - inline void Swap(GetFragmentRequest* other) { + inline void Swap(DeleteLocationSecretRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetFragmentRequest* other) { + void UnsafeArenaSwap(DeleteLocationSecretRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetFragmentRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetFragmentRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetFragmentRequest& from) { - GetFragmentRequest::MergeImpl(*this, from); + DeleteLocationSecretRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DeleteLocationSecretRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const DeleteLocationSecretRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetFragmentRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(DeleteLocationSecretRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.GetFragmentRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.DeleteLocationSecretRequest"; } protected: - explicit GetFragmentRequest(::google::protobuf::Arena* arena); - GetFragmentRequest(::google::protobuf::Arena* arena, const GetFragmentRequest& from); + explicit DeleteLocationSecretRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kIdFieldNumber = 1, + kLocationIdFieldNumber = 1, + kSecretIdFieldNumber = 2, }; - // string id = 1 [json_name = "id"]; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - + // string location_id = 1 [json_name = "locationId"]; + void clear_location_id(); + const std::string& location_id() const; + template + void set_location_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_location_id(); + PROTOBUF_NODISCARD std::string* release_location_id(); + void set_allocated_location_id(std::string* location_id); private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); + const std::string& _internal_location_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_location_id(const std::string& value); + std::string* _internal_mutable_location_id(); + public: + // string secret_id = 2 [json_name = "secretId"]; + void clear_secret_id(); + const std::string& secret_id() const; + template + void set_secret_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_secret_id(); + PROTOBUF_NODISCARD std::string* release_secret_id(); + void set_allocated_secret_id(std::string* secret_id); + private: + const std::string& _internal_secret_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_secret_id(const std::string& value); + std::string* _internal_mutable_secret_id(); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.GetFragmentRequest) + + // @@protoc_insertion_point(class_scope:viam.app.v1.DeleteLocationSecretRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 41, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr location_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr secret_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetFragmentHistoryRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetFragmentHistoryRequest) */ { +class DeleteLocationSecretResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.DeleteLocationSecretResponse) */ { public: - inline GetFragmentHistoryRequest() : GetFragmentHistoryRequest(nullptr) {} - ~GetFragmentHistoryRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetFragmentHistoryRequest(::google::protobuf::internal::ConstantInitialized); + inline DeleteLocationSecretResponse() : DeleteLocationSecretResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR DeleteLocationSecretResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetFragmentHistoryRequest(const GetFragmentHistoryRequest& from) - : GetFragmentHistoryRequest(nullptr, from) {} - GetFragmentHistoryRequest(GetFragmentHistoryRequest&& from) noexcept - : GetFragmentHistoryRequest() { + DeleteLocationSecretResponse(const DeleteLocationSecretResponse& from); + DeleteLocationSecretResponse(DeleteLocationSecretResponse&& from) noexcept + : DeleteLocationSecretResponse() { *this = ::std::move(from); } - inline GetFragmentHistoryRequest& operator=(const GetFragmentHistoryRequest& from) { + inline DeleteLocationSecretResponse& operator=(const DeleteLocationSecretResponse& from) { CopyFrom(from); return *this; } - inline GetFragmentHistoryRequest& operator=(GetFragmentHistoryRequest&& from) noexcept { + inline DeleteLocationSecretResponse& operator=(DeleteLocationSecretResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -13870,211 +12640,114 @@ class GetFragmentHistoryRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetFragmentHistoryRequest& default_instance() { + static const DeleteLocationSecretResponse& default_instance() { return *internal_default_instance(); } - static inline const GetFragmentHistoryRequest* internal_default_instance() { - return reinterpret_cast( - &_GetFragmentHistoryRequest_default_instance_); + static inline const DeleteLocationSecretResponse* internal_default_instance() { + return reinterpret_cast( + &_DeleteLocationSecretResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 110; + 69; - friend void swap(GetFragmentHistoryRequest& a, GetFragmentHistoryRequest& b) { + friend void swap(DeleteLocationSecretResponse& a, DeleteLocationSecretResponse& b) { a.Swap(&b); } - inline void Swap(GetFragmentHistoryRequest* other) { + inline void Swap(DeleteLocationSecretResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetFragmentHistoryRequest* other) { + void UnsafeArenaSwap(DeleteLocationSecretResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetFragmentHistoryRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + DeleteLocationSecretResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetFragmentHistoryRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetFragmentHistoryRequest& from) { - GetFragmentHistoryRequest::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const DeleteLocationSecretResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const DeleteLocationSecretResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetFragmentHistoryRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.GetFragmentHistoryRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.DeleteLocationSecretResponse"; } protected: - explicit GetFragmentHistoryRequest(::google::protobuf::Arena* arena); - GetFragmentHistoryRequest(::google::protobuf::Arena* arena, const GetFragmentHistoryRequest& from); + explicit DeleteLocationSecretResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kIdFieldNumber = 1, - kPageTokenFieldNumber = 2, - kPageLimitFieldNumber = 3, - }; - // string id = 1 [json_name = "id"]; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - - private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); - - public: - // optional string page_token = 2 [json_name = "pageToken"]; - bool has_page_token() const; - void clear_page_token() ; - const std::string& page_token() const; - template - void set_page_token(Arg_&& arg, Args_... args); - std::string* mutable_page_token(); - PROTOBUF_NODISCARD std::string* release_page_token(); - void set_allocated_page_token(std::string* value); - - private: - const std::string& _internal_page_token() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_page_token( - const std::string& value); - std::string* _internal_mutable_page_token(); - - public: - // optional int64 page_limit = 3 [json_name = "pageLimit"]; - bool has_page_limit() const; - void clear_page_limit() ; - ::int64_t page_limit() const; - void set_page_limit(::int64_t value); - - private: - ::int64_t _internal_page_limit() const; - void _internal_set_page_limit(::int64_t value); - - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.GetFragmentHistoryRequest) + // @@protoc_insertion_point(class_scope:viam.app.v1.DeleteLocationSecretResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 0, - 58, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr id_; - ::google::protobuf::internal::ArenaStringPtr page_token_; - ::int64_t page_limit_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetBillingServiceConfigRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetBillingServiceConfigRequest) */ { +class LocationAuthRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.LocationAuthRequest) */ { public: - inline GetBillingServiceConfigRequest() : GetBillingServiceConfigRequest(nullptr) {} - ~GetBillingServiceConfigRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetBillingServiceConfigRequest(::google::protobuf::internal::ConstantInitialized); + inline LocationAuthRequest() : LocationAuthRequest(nullptr) {} + ~LocationAuthRequest() override; + explicit PROTOBUF_CONSTEXPR LocationAuthRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetBillingServiceConfigRequest(const GetBillingServiceConfigRequest& from) - : GetBillingServiceConfigRequest(nullptr, from) {} - GetBillingServiceConfigRequest(GetBillingServiceConfigRequest&& from) noexcept - : GetBillingServiceConfigRequest() { + LocationAuthRequest(const LocationAuthRequest& from); + LocationAuthRequest(LocationAuthRequest&& from) noexcept + : LocationAuthRequest() { *this = ::std::move(from); } - inline GetBillingServiceConfigRequest& operator=(const GetBillingServiceConfigRequest& from) { + inline LocationAuthRequest& operator=(const LocationAuthRequest& from) { CopyFrom(from); return *this; } - inline GetBillingServiceConfigRequest& operator=(GetBillingServiceConfigRequest&& from) noexcept { + inline LocationAuthRequest& operator=(LocationAuthRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -14084,178 +12757,145 @@ class GetBillingServiceConfigRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetBillingServiceConfigRequest& default_instance() { + static const LocationAuthRequest& default_instance() { return *internal_default_instance(); } - static inline const GetBillingServiceConfigRequest* internal_default_instance() { - return reinterpret_cast( - &_GetBillingServiceConfigRequest_default_instance_); + static inline const LocationAuthRequest* internal_default_instance() { + return reinterpret_cast( + &_LocationAuthRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 36; + 70; - friend void swap(GetBillingServiceConfigRequest& a, GetBillingServiceConfigRequest& b) { + friend void swap(LocationAuthRequest& a, LocationAuthRequest& b) { a.Swap(&b); } - inline void Swap(GetBillingServiceConfigRequest* other) { + inline void Swap(LocationAuthRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetBillingServiceConfigRequest* other) { + void UnsafeArenaSwap(LocationAuthRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetBillingServiceConfigRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetBillingServiceConfigRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetBillingServiceConfigRequest& from) { - GetBillingServiceConfigRequest::MergeImpl(*this, from); + LocationAuthRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const LocationAuthRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const LocationAuthRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetBillingServiceConfigRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(LocationAuthRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.GetBillingServiceConfigRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.LocationAuthRequest"; } protected: - explicit GetBillingServiceConfigRequest(::google::protobuf::Arena* arena); - GetBillingServiceConfigRequest(::google::protobuf::Arena* arena, const GetBillingServiceConfigRequest& from); + explicit LocationAuthRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kOrgIdFieldNumber = 1, + kLocationIdFieldNumber = 1, }; - // string org_id = 1 [json_name = "orgId"]; - void clear_org_id() ; - const std::string& org_id() const; - template - void set_org_id(Arg_&& arg, Args_... args); - std::string* mutable_org_id(); - PROTOBUF_NODISCARD std::string* release_org_id(); - void set_allocated_org_id(std::string* value); - + // string location_id = 1 [json_name = "locationId"]; + void clear_location_id(); + const std::string& location_id() const; + template + void set_location_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_location_id(); + PROTOBUF_NODISCARD std::string* release_location_id(); + void set_allocated_location_id(std::string* location_id); private: - const std::string& _internal_org_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_org_id( - const std::string& value); - std::string* _internal_mutable_org_id(); - + const std::string& _internal_location_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_location_id(const std::string& value); + std::string* _internal_mutable_location_id(); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.GetBillingServiceConfigRequest) + + // @@protoc_insertion_point(class_scope:viam.app.v1.LocationAuthRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 57, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr org_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr location_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class FragmentError final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.FragmentError) */ { +class LocationAuthResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.LocationAuthResponse) */ { public: - inline FragmentError() : FragmentError(nullptr) {} - ~FragmentError() override; - template - explicit PROTOBUF_CONSTEXPR FragmentError(::google::protobuf::internal::ConstantInitialized); + inline LocationAuthResponse() : LocationAuthResponse(nullptr) {} + ~LocationAuthResponse() override; + explicit PROTOBUF_CONSTEXPR LocationAuthResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline FragmentError(const FragmentError& from) - : FragmentError(nullptr, from) {} - FragmentError(FragmentError&& from) noexcept - : FragmentError() { + LocationAuthResponse(const LocationAuthResponse& from); + LocationAuthResponse(LocationAuthResponse&& from) noexcept + : LocationAuthResponse() { *this = ::std::move(from); } - inline FragmentError& operator=(const FragmentError& from) { + inline LocationAuthResponse& operator=(const LocationAuthResponse& from) { CopyFrom(from); return *this; } - inline FragmentError& operator=(FragmentError&& from) noexcept { + inline LocationAuthResponse& operator=(LocationAuthResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -14265,207 +12905,149 @@ class FragmentError final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const FragmentError& default_instance() { + static const LocationAuthResponse& default_instance() { return *internal_default_instance(); } - static inline const FragmentError* internal_default_instance() { - return reinterpret_cast( - &_FragmentError_default_instance_); + static inline const LocationAuthResponse* internal_default_instance() { + return reinterpret_cast( + &_LocationAuthResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 98; + 71; - friend void swap(FragmentError& a, FragmentError& b) { + friend void swap(LocationAuthResponse& a, LocationAuthResponse& b) { a.Swap(&b); } - inline void Swap(FragmentError* other) { + inline void Swap(LocationAuthResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(FragmentError* other) { + void UnsafeArenaSwap(LocationAuthResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - FragmentError* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const FragmentError& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const FragmentError& from) { - FragmentError::MergeImpl(*this, from); + LocationAuthResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const LocationAuthResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const LocationAuthResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(FragmentError* other); + void SetCachedSize(int size) const final; + void InternalSwap(LocationAuthResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.FragmentError"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.LocationAuthResponse"; } protected: - explicit FragmentError(::google::protobuf::Arena* arena); - FragmentError(::google::protobuf::Arena* arena, const FragmentError& from); + explicit LocationAuthResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kFragmentIdFieldNumber = 2, - kDetailFieldNumber = 3, - kErrorTypeFieldNumber = 1, + kAuthFieldNumber = 1, }; - // string fragment_id = 2 [json_name = "fragmentId"]; - void clear_fragment_id() ; - const std::string& fragment_id() const; - template - void set_fragment_id(Arg_&& arg, Args_... args); - std::string* mutable_fragment_id(); - PROTOBUF_NODISCARD std::string* release_fragment_id(); - void set_allocated_fragment_id(std::string* value); - + // .viam.app.v1.LocationAuth auth = 1 [json_name = "auth"]; + bool has_auth() const; private: - const std::string& _internal_fragment_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_fragment_id( - const std::string& value); - std::string* _internal_mutable_fragment_id(); - + bool _internal_has_auth() const; public: - // string detail = 3 [json_name = "detail"]; - void clear_detail() ; - const std::string& detail() const; - template - void set_detail(Arg_&& arg, Args_... args); - std::string* mutable_detail(); - PROTOBUF_NODISCARD std::string* release_detail(); - void set_allocated_detail(std::string* value); - + void clear_auth(); + const ::viam::app::v1::LocationAuth& auth() const; + PROTOBUF_NODISCARD ::viam::app::v1::LocationAuth* release_auth(); + ::viam::app::v1::LocationAuth* mutable_auth(); + void set_allocated_auth(::viam::app::v1::LocationAuth* auth); private: - const std::string& _internal_detail() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_detail( - const std::string& value); - std::string* _internal_mutable_detail(); - + const ::viam::app::v1::LocationAuth& _internal_auth() const; + ::viam::app::v1::LocationAuth* _internal_mutable_auth(); public: - // .viam.app.v1.FragmentErrorType error_type = 1 [json_name = "errorType"]; - void clear_error_type() ; - ::viam::app::v1::FragmentErrorType error_type() const; - void set_error_type(::viam::app::v1::FragmentErrorType value); - - private: - ::viam::app::v1::FragmentErrorType _internal_error_type() const; - void _internal_set_error_type(::viam::app::v1::FragmentErrorType value); + void unsafe_arena_set_allocated_auth( + ::viam::app::v1::LocationAuth* auth); + ::viam::app::v1::LocationAuth* unsafe_arena_release_auth(); - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.FragmentError) + // @@protoc_insertion_point(class_scope:viam.app.v1.LocationAuthResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 0, - 51, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr fragment_id_; - ::google::protobuf::internal::ArenaStringPtr detail_; - int error_type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::viam::app::v1::LocationAuth* auth_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class EnableBillingServiceResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.EnableBillingServiceResponse) */ { +class GetRobotRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetRobotRequest) */ { public: - inline EnableBillingServiceResponse() : EnableBillingServiceResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR EnableBillingServiceResponse(::google::protobuf::internal::ConstantInitialized); + inline GetRobotRequest() : GetRobotRequest(nullptr) {} + ~GetRobotRequest() override; + explicit PROTOBUF_CONSTEXPR GetRobotRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline EnableBillingServiceResponse(const EnableBillingServiceResponse& from) - : EnableBillingServiceResponse(nullptr, from) {} - EnableBillingServiceResponse(EnableBillingServiceResponse&& from) noexcept - : EnableBillingServiceResponse() { + GetRobotRequest(const GetRobotRequest& from); + GetRobotRequest(GetRobotRequest&& from) noexcept + : GetRobotRequest() { *this = ::std::move(from); } - inline EnableBillingServiceResponse& operator=(const EnableBillingServiceResponse& from) { + inline GetRobotRequest& operator=(const GetRobotRequest& from) { CopyFrom(from); return *this; } - inline EnableBillingServiceResponse& operator=(EnableBillingServiceResponse&& from) noexcept { + inline GetRobotRequest& operator=(GetRobotRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -14475,133 +13057,145 @@ class EnableBillingServiceResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const EnableBillingServiceResponse& default_instance() { + static const GetRobotRequest& default_instance() { return *internal_default_instance(); } - static inline const EnableBillingServiceResponse* internal_default_instance() { - return reinterpret_cast( - &_EnableBillingServiceResponse_default_instance_); + static inline const GetRobotRequest* internal_default_instance() { + return reinterpret_cast( + &_GetRobotRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 33; + 72; - friend void swap(EnableBillingServiceResponse& a, EnableBillingServiceResponse& b) { + friend void swap(GetRobotRequest& a, GetRobotRequest& b) { a.Swap(&b); } - inline void Swap(EnableBillingServiceResponse* other) { + inline void Swap(GetRobotRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(EnableBillingServiceResponse* other) { + void UnsafeArenaSwap(GetRobotRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - EnableBillingServiceResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const EnableBillingServiceResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const EnableBillingServiceResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + GetRobotRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetRobotRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetRobotRequest& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.EnableBillingServiceResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetRobotRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.GetRobotRequest"; } protected: - explicit EnableBillingServiceResponse(::google::protobuf::Arena* arena); - EnableBillingServiceResponse(::google::protobuf::Arena* arena, const EnableBillingServiceResponse& from); + explicit GetRobotRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.app.v1.EnableBillingServiceResponse) + enum : int { + kIdFieldNumber = 1, + }; + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.GetRobotRequest) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class DisableBillingServiceResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.DisableBillingServiceResponse) */ { +class GetRoverRentalRobotsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetRoverRentalRobotsRequest) */ { public: - inline DisableBillingServiceResponse() : DisableBillingServiceResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR DisableBillingServiceResponse(::google::protobuf::internal::ConstantInitialized); + inline GetRoverRentalRobotsRequest() : GetRoverRentalRobotsRequest(nullptr) {} + ~GetRoverRentalRobotsRequest() override; + explicit PROTOBUF_CONSTEXPR GetRoverRentalRobotsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline DisableBillingServiceResponse(const DisableBillingServiceResponse& from) - : DisableBillingServiceResponse(nullptr, from) {} - DisableBillingServiceResponse(DisableBillingServiceResponse&& from) noexcept - : DisableBillingServiceResponse() { + GetRoverRentalRobotsRequest(const GetRoverRentalRobotsRequest& from); + GetRoverRentalRobotsRequest(GetRoverRentalRobotsRequest&& from) noexcept + : GetRoverRentalRobotsRequest() { *this = ::std::move(from); } - inline DisableBillingServiceResponse& operator=(const DisableBillingServiceResponse& from) { + inline GetRoverRentalRobotsRequest& operator=(const GetRoverRentalRobotsRequest& from) { CopyFrom(from); return *this; } - inline DisableBillingServiceResponse& operator=(DisableBillingServiceResponse&& from) noexcept { + inline GetRoverRentalRobotsRequest& operator=(GetRoverRentalRobotsRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -14611,134 +13205,145 @@ class DisableBillingServiceResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const DisableBillingServiceResponse& default_instance() { + static const GetRoverRentalRobotsRequest& default_instance() { return *internal_default_instance(); } - static inline const DisableBillingServiceResponse* internal_default_instance() { - return reinterpret_cast( - &_DisableBillingServiceResponse_default_instance_); + static inline const GetRoverRentalRobotsRequest* internal_default_instance() { + return reinterpret_cast( + &_GetRoverRentalRobotsRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 39; + 73; - friend void swap(DisableBillingServiceResponse& a, DisableBillingServiceResponse& b) { + friend void swap(GetRoverRentalRobotsRequest& a, GetRoverRentalRobotsRequest& b) { a.Swap(&b); } - inline void Swap(DisableBillingServiceResponse* other) { + inline void Swap(GetRoverRentalRobotsRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(DisableBillingServiceResponse* other) { + void UnsafeArenaSwap(GetRoverRentalRobotsRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - DisableBillingServiceResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const DisableBillingServiceResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const DisableBillingServiceResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + GetRoverRentalRobotsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetRoverRentalRobotsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetRoverRentalRobotsRequest& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.DisableBillingServiceResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetRoverRentalRobotsRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.GetRoverRentalRobotsRequest"; } protected: - explicit DisableBillingServiceResponse(::google::protobuf::Arena* arena); - DisableBillingServiceResponse(::google::protobuf::Arena* arena, const DisableBillingServiceResponse& from); + explicit GetRoverRentalRobotsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.app.v1.DisableBillingServiceResponse) + enum : int { + kOrgIdFieldNumber = 1, + }; + // string org_id = 1 [json_name = "orgId"]; + void clear_org_id(); + const std::string& org_id() const; + template + void set_org_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_org_id(); + PROTOBUF_NODISCARD std::string* release_org_id(); + void set_allocated_org_id(std::string* org_id); + private: + const std::string& _internal_org_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_org_id(const std::string& value); + std::string* _internal_mutable_org_id(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.GetRoverRentalRobotsRequest) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr org_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class DisableBillingServiceRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.DisableBillingServiceRequest) */ { +class RoverRentalRobot final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.RoverRentalRobot) */ { public: - inline DisableBillingServiceRequest() : DisableBillingServiceRequest(nullptr) {} - ~DisableBillingServiceRequest() override; - template - explicit PROTOBUF_CONSTEXPR DisableBillingServiceRequest(::google::protobuf::internal::ConstantInitialized); + inline RoverRentalRobot() : RoverRentalRobot(nullptr) {} + ~RoverRentalRobot() override; + explicit PROTOBUF_CONSTEXPR RoverRentalRobot(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline DisableBillingServiceRequest(const DisableBillingServiceRequest& from) - : DisableBillingServiceRequest(nullptr, from) {} - DisableBillingServiceRequest(DisableBillingServiceRequest&& from) noexcept - : DisableBillingServiceRequest() { + RoverRentalRobot(const RoverRentalRobot& from); + RoverRentalRobot(RoverRentalRobot&& from) noexcept + : RoverRentalRobot() { *this = ::std::move(from); } - inline DisableBillingServiceRequest& operator=(const DisableBillingServiceRequest& from) { + inline RoverRentalRobot& operator=(const RoverRentalRobot& from) { CopyFrom(from); return *this; } - inline DisableBillingServiceRequest& operator=(DisableBillingServiceRequest&& from) noexcept { + inline RoverRentalRobot& operator=(RoverRentalRobot&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -14748,177 +13353,193 @@ class DisableBillingServiceRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const DisableBillingServiceRequest& default_instance() { + static const RoverRentalRobot& default_instance() { return *internal_default_instance(); } - static inline const DisableBillingServiceRequest* internal_default_instance() { - return reinterpret_cast( - &_DisableBillingServiceRequest_default_instance_); + static inline const RoverRentalRobot* internal_default_instance() { + return reinterpret_cast( + &_RoverRentalRobot_default_instance_); } static constexpr int kIndexInFileMessages = - 38; + 74; - friend void swap(DisableBillingServiceRequest& a, DisableBillingServiceRequest& b) { + friend void swap(RoverRentalRobot& a, RoverRentalRobot& b) { a.Swap(&b); } - inline void Swap(DisableBillingServiceRequest* other) { + inline void Swap(RoverRentalRobot* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(DisableBillingServiceRequest* other) { + void UnsafeArenaSwap(RoverRentalRobot* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - DisableBillingServiceRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const DisableBillingServiceRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const DisableBillingServiceRequest& from) { - DisableBillingServiceRequest::MergeImpl(*this, from); + RoverRentalRobot* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const RoverRentalRobot& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const RoverRentalRobot& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(DisableBillingServiceRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(RoverRentalRobot* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.DisableBillingServiceRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.RoverRentalRobot"; } protected: - explicit DisableBillingServiceRequest(::google::protobuf::Arena* arena); - DisableBillingServiceRequest(::google::protobuf::Arena* arena, const DisableBillingServiceRequest& from); + explicit RoverRentalRobot(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kOrgIdFieldNumber = 1, + kRobotIdFieldNumber = 1, + kLocationIdFieldNumber = 2, + kRobotNameFieldNumber = 3, + kRobotMainPartIdFieldNumber = 4, }; - // string org_id = 1 [json_name = "orgId"]; - void clear_org_id() ; - const std::string& org_id() const; - template - void set_org_id(Arg_&& arg, Args_... args); - std::string* mutable_org_id(); - PROTOBUF_NODISCARD std::string* release_org_id(); - void set_allocated_org_id(std::string* value); + // string robot_id = 1 [json_name = "robotId"]; + void clear_robot_id(); + const std::string& robot_id() const; + template + void set_robot_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_robot_id(); + PROTOBUF_NODISCARD std::string* release_robot_id(); + void set_allocated_robot_id(std::string* robot_id); + private: + const std::string& _internal_robot_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_robot_id(const std::string& value); + std::string* _internal_mutable_robot_id(); + public: + // string location_id = 2 [json_name = "locationId"]; + void clear_location_id(); + const std::string& location_id() const; + template + void set_location_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_location_id(); + PROTOBUF_NODISCARD std::string* release_location_id(); + void set_allocated_location_id(std::string* location_id); private: - const std::string& _internal_org_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_org_id( - const std::string& value); - std::string* _internal_mutable_org_id(); + const std::string& _internal_location_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_location_id(const std::string& value); + std::string* _internal_mutable_location_id(); + public: + // string robot_name = 3 [json_name = "robotName"]; + void clear_robot_name(); + const std::string& robot_name() const; + template + void set_robot_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_robot_name(); + PROTOBUF_NODISCARD std::string* release_robot_name(); + void set_allocated_robot_name(std::string* robot_name); + private: + const std::string& _internal_robot_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_robot_name(const std::string& value); + std::string* _internal_mutable_robot_name(); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.DisableBillingServiceRequest) + + // string robot_main_part_id = 4 [json_name = "robotMainPartId"]; + void clear_robot_main_part_id(); + const std::string& robot_main_part_id() const; + template + void set_robot_main_part_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_robot_main_part_id(); + PROTOBUF_NODISCARD std::string* release_robot_main_part_id(); + void set_allocated_robot_main_part_id(std::string* robot_main_part_id); + private: + const std::string& _internal_robot_main_part_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_robot_main_part_id(const std::string& value); + std::string* _internal_mutable_robot_main_part_id(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.RoverRentalRobot) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 55, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr org_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr robot_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr location_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr robot_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr robot_main_part_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class DeleteRobotResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.DeleteRobotResponse) */ { +class GetRoverRentalRobotsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetRoverRentalRobotsResponse) */ { public: - inline DeleteRobotResponse() : DeleteRobotResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR DeleteRobotResponse(::google::protobuf::internal::ConstantInitialized); + inline GetRoverRentalRobotsResponse() : GetRoverRentalRobotsResponse(nullptr) {} + ~GetRoverRentalRobotsResponse() override; + explicit PROTOBUF_CONSTEXPR GetRoverRentalRobotsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline DeleteRobotResponse(const DeleteRobotResponse& from) - : DeleteRobotResponse(nullptr, from) {} - DeleteRobotResponse(DeleteRobotResponse&& from) noexcept - : DeleteRobotResponse() { + GetRoverRentalRobotsResponse(const GetRoverRentalRobotsResponse& from); + GetRoverRentalRobotsResponse(GetRoverRentalRobotsResponse&& from) noexcept + : GetRoverRentalRobotsResponse() { *this = ::std::move(from); } - inline DeleteRobotResponse& operator=(const DeleteRobotResponse& from) { + inline GetRoverRentalRobotsResponse& operator=(const GetRoverRentalRobotsResponse& from) { CopyFrom(from); return *this; } - inline DeleteRobotResponse& operator=(DeleteRobotResponse&& from) noexcept { + inline GetRoverRentalRobotsResponse& operator=(GetRoverRentalRobotsResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -14928,134 +13549,149 @@ class DeleteRobotResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const DeleteRobotResponse& default_instance() { + static const GetRoverRentalRobotsResponse& default_instance() { return *internal_default_instance(); } - static inline const DeleteRobotResponse* internal_default_instance() { - return reinterpret_cast( - &_DeleteRobotResponse_default_instance_); + static inline const GetRoverRentalRobotsResponse* internal_default_instance() { + return reinterpret_cast( + &_GetRoverRentalRobotsResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 121; + 75; - friend void swap(DeleteRobotResponse& a, DeleteRobotResponse& b) { + friend void swap(GetRoverRentalRobotsResponse& a, GetRoverRentalRobotsResponse& b) { a.Swap(&b); } - inline void Swap(DeleteRobotResponse* other) { + inline void Swap(GetRoverRentalRobotsResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(DeleteRobotResponse* other) { + void UnsafeArenaSwap(GetRoverRentalRobotsResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - DeleteRobotResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const DeleteRobotResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const DeleteRobotResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + GetRoverRentalRobotsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetRoverRentalRobotsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetRoverRentalRobotsResponse& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.DeleteRobotResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetRoverRentalRobotsResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.GetRoverRentalRobotsResponse"; } protected: - explicit DeleteRobotResponse(::google::protobuf::Arena* arena); - DeleteRobotResponse(::google::protobuf::Arena* arena, const DeleteRobotResponse& from); + explicit GetRoverRentalRobotsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.app.v1.DeleteRobotResponse) + enum : int { + kRobotsFieldNumber = 1, + }; + // repeated .viam.app.v1.RoverRentalRobot robots = 1 [json_name = "robots"]; + int robots_size() const; + private: + int _internal_robots_size() const; + public: + void clear_robots(); + ::viam::app::v1::RoverRentalRobot* mutable_robots(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::RoverRentalRobot >* + mutable_robots(); + private: + const ::viam::app::v1::RoverRentalRobot& _internal_robots(int index) const; + ::viam::app::v1::RoverRentalRobot* _internal_add_robots(); + public: + const ::viam::app::v1::RoverRentalRobot& robots(int index) const; + ::viam::app::v1::RoverRentalRobot* add_robots(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::RoverRentalRobot >& + robots() const; + + // @@protoc_insertion_point(class_scope:viam.app.v1.GetRoverRentalRobotsResponse) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::RoverRentalRobot > robots_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class DeleteRobotRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.DeleteRobotRequest) */ { +class GetRobotResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetRobotResponse) */ { public: - inline DeleteRobotRequest() : DeleteRobotRequest(nullptr) {} - ~DeleteRobotRequest() override; - template - explicit PROTOBUF_CONSTEXPR DeleteRobotRequest(::google::protobuf::internal::ConstantInitialized); + inline GetRobotResponse() : GetRobotResponse(nullptr) {} + ~GetRobotResponse() override; + explicit PROTOBUF_CONSTEXPR GetRobotResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline DeleteRobotRequest(const DeleteRobotRequest& from) - : DeleteRobotRequest(nullptr, from) {} - DeleteRobotRequest(DeleteRobotRequest&& from) noexcept - : DeleteRobotRequest() { + GetRobotResponse(const GetRobotResponse& from); + GetRobotResponse(GetRobotResponse&& from) noexcept + : GetRobotResponse() { *this = ::std::move(from); } - inline DeleteRobotRequest& operator=(const DeleteRobotRequest& from) { + inline GetRobotResponse& operator=(const GetRobotResponse& from) { CopyFrom(from); return *this; } - inline DeleteRobotRequest& operator=(DeleteRobotRequest&& from) noexcept { + inline GetRobotResponse& operator=(GetRobotResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -15065,177 +13701,149 @@ class DeleteRobotRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const DeleteRobotRequest& default_instance() { + static const GetRobotResponse& default_instance() { return *internal_default_instance(); } - static inline const DeleteRobotRequest* internal_default_instance() { - return reinterpret_cast( - &_DeleteRobotRequest_default_instance_); + static inline const GetRobotResponse* internal_default_instance() { + return reinterpret_cast( + &_GetRobotResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 120; + 76; - friend void swap(DeleteRobotRequest& a, DeleteRobotRequest& b) { + friend void swap(GetRobotResponse& a, GetRobotResponse& b) { a.Swap(&b); } - inline void Swap(DeleteRobotRequest* other) { + inline void Swap(GetRobotResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(DeleteRobotRequest* other) { + void UnsafeArenaSwap(GetRobotResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - DeleteRobotRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const DeleteRobotRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const DeleteRobotRequest& from) { - DeleteRobotRequest::MergeImpl(*this, from); + GetRobotResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetRobotResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetRobotResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(DeleteRobotRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetRobotResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.DeleteRobotRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.GetRobotResponse"; } protected: - explicit DeleteRobotRequest(::google::protobuf::Arena* arena); - DeleteRobotRequest(::google::protobuf::Arena* arena, const DeleteRobotRequest& from); + explicit GetRobotResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kIdFieldNumber = 1, + kRobotFieldNumber = 1, }; - // string id = 1 [json_name = "id"]; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - + // .viam.app.v1.Robot robot = 1 [json_name = "robot"]; + bool has_robot() const; private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); - + bool _internal_has_robot() const; public: - // @@protoc_insertion_point(class_scope:viam.app.v1.DeleteRobotRequest) + void clear_robot(); + const ::viam::app::v1::Robot& robot() const; + PROTOBUF_NODISCARD ::viam::app::v1::Robot* release_robot(); + ::viam::app::v1::Robot* mutable_robot(); + void set_allocated_robot(::viam::app::v1::Robot* robot); + private: + const ::viam::app::v1::Robot& _internal_robot() const; + ::viam::app::v1::Robot* _internal_mutable_robot(); + public: + void unsafe_arena_set_allocated_robot( + ::viam::app::v1::Robot* robot); + ::viam::app::v1::Robot* unsafe_arena_release_robot(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.GetRobotResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 41, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::viam::app::v1::Robot* robot_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class DeleteRobotPartSecretResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.DeleteRobotPartSecretResponse) */ { +class GetRobotPartsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetRobotPartsRequest) */ { public: - inline DeleteRobotPartSecretResponse() : DeleteRobotPartSecretResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR DeleteRobotPartSecretResponse(::google::protobuf::internal::ConstantInitialized); + inline GetRobotPartsRequest() : GetRobotPartsRequest(nullptr) {} + ~GetRobotPartsRequest() override; + explicit PROTOBUF_CONSTEXPR GetRobotPartsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline DeleteRobotPartSecretResponse(const DeleteRobotPartSecretResponse& from) - : DeleteRobotPartSecretResponse(nullptr, from) {} - DeleteRobotPartSecretResponse(DeleteRobotPartSecretResponse&& from) noexcept - : DeleteRobotPartSecretResponse() { + GetRobotPartsRequest(const GetRobotPartsRequest& from); + GetRobotPartsRequest(GetRobotPartsRequest&& from) noexcept + : GetRobotPartsRequest() { *this = ::std::move(from); } - inline DeleteRobotPartSecretResponse& operator=(const DeleteRobotPartSecretResponse& from) { + inline GetRobotPartsRequest& operator=(const GetRobotPartsRequest& from) { CopyFrom(from); return *this; } - inline DeleteRobotPartSecretResponse& operator=(DeleteRobotPartSecretResponse&& from) noexcept { + inline GetRobotPartsRequest& operator=(GetRobotPartsRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -15245,134 +13853,145 @@ class DeleteRobotPartSecretResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const DeleteRobotPartSecretResponse& default_instance() { + static const GetRobotPartsRequest& default_instance() { return *internal_default_instance(); } - static inline const DeleteRobotPartSecretResponse* internal_default_instance() { - return reinterpret_cast( - &_DeleteRobotPartSecretResponse_default_instance_); + static inline const GetRobotPartsRequest* internal_default_instance() { + return reinterpret_cast( + &_GetRobotPartsRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 129; + 77; - friend void swap(DeleteRobotPartSecretResponse& a, DeleteRobotPartSecretResponse& b) { + friend void swap(GetRobotPartsRequest& a, GetRobotPartsRequest& b) { a.Swap(&b); } - inline void Swap(DeleteRobotPartSecretResponse* other) { + inline void Swap(GetRobotPartsRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(DeleteRobotPartSecretResponse* other) { + void UnsafeArenaSwap(GetRobotPartsRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - DeleteRobotPartSecretResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const DeleteRobotPartSecretResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const DeleteRobotPartSecretResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + GetRobotPartsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetRobotPartsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetRobotPartsRequest& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.DeleteRobotPartSecretResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetRobotPartsRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.GetRobotPartsRequest"; } protected: - explicit DeleteRobotPartSecretResponse(::google::protobuf::Arena* arena); - DeleteRobotPartSecretResponse(::google::protobuf::Arena* arena, const DeleteRobotPartSecretResponse& from); + explicit GetRobotPartsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.app.v1.DeleteRobotPartSecretResponse) + enum : int { + kRobotIdFieldNumber = 1, + }; + // string robot_id = 1 [json_name = "robotId"]; + void clear_robot_id(); + const std::string& robot_id() const; + template + void set_robot_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_robot_id(); + PROTOBUF_NODISCARD std::string* release_robot_id(); + void set_allocated_robot_id(std::string* robot_id); + private: + const std::string& _internal_robot_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_robot_id(const std::string& value); + std::string* _internal_mutable_robot_id(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.GetRobotPartsRequest) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr robot_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class DeleteRobotPartSecretRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.DeleteRobotPartSecretRequest) */ { +class GetRobotPartsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetRobotPartsResponse) */ { public: - inline DeleteRobotPartSecretRequest() : DeleteRobotPartSecretRequest(nullptr) {} - ~DeleteRobotPartSecretRequest() override; - template - explicit PROTOBUF_CONSTEXPR DeleteRobotPartSecretRequest(::google::protobuf::internal::ConstantInitialized); + inline GetRobotPartsResponse() : GetRobotPartsResponse(nullptr) {} + ~GetRobotPartsResponse() override; + explicit PROTOBUF_CONSTEXPR GetRobotPartsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline DeleteRobotPartSecretRequest(const DeleteRobotPartSecretRequest& from) - : DeleteRobotPartSecretRequest(nullptr, from) {} - DeleteRobotPartSecretRequest(DeleteRobotPartSecretRequest&& from) noexcept - : DeleteRobotPartSecretRequest() { + GetRobotPartsResponse(const GetRobotPartsResponse& from); + GetRobotPartsResponse(GetRobotPartsResponse&& from) noexcept + : GetRobotPartsResponse() { *this = ::std::move(from); } - inline DeleteRobotPartSecretRequest& operator=(const DeleteRobotPartSecretRequest& from) { + inline GetRobotPartsResponse& operator=(const GetRobotPartsResponse& from) { CopyFrom(from); return *this; } - inline DeleteRobotPartSecretRequest& operator=(DeleteRobotPartSecretRequest&& from) noexcept { + inline GetRobotPartsResponse& operator=(GetRobotPartsResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -15382,195 +14001,149 @@ class DeleteRobotPartSecretRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const DeleteRobotPartSecretRequest& default_instance() { + static const GetRobotPartsResponse& default_instance() { return *internal_default_instance(); } - static inline const DeleteRobotPartSecretRequest* internal_default_instance() { - return reinterpret_cast( - &_DeleteRobotPartSecretRequest_default_instance_); + static inline const GetRobotPartsResponse* internal_default_instance() { + return reinterpret_cast( + &_GetRobotPartsResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 128; + 78; - friend void swap(DeleteRobotPartSecretRequest& a, DeleteRobotPartSecretRequest& b) { + friend void swap(GetRobotPartsResponse& a, GetRobotPartsResponse& b) { a.Swap(&b); } - inline void Swap(DeleteRobotPartSecretRequest* other) { + inline void Swap(GetRobotPartsResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(DeleteRobotPartSecretRequest* other) { + void UnsafeArenaSwap(GetRobotPartsResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - DeleteRobotPartSecretRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const DeleteRobotPartSecretRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const DeleteRobotPartSecretRequest& from) { - DeleteRobotPartSecretRequest::MergeImpl(*this, from); + GetRobotPartsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetRobotPartsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetRobotPartsResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(DeleteRobotPartSecretRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetRobotPartsResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.DeleteRobotPartSecretRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.GetRobotPartsResponse"; } protected: - explicit DeleteRobotPartSecretRequest(::google::protobuf::Arena* arena); - DeleteRobotPartSecretRequest(::google::protobuf::Arena* arena, const DeleteRobotPartSecretRequest& from); + explicit GetRobotPartsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kPartIdFieldNumber = 1, - kSecretIdFieldNumber = 2, + kPartsFieldNumber = 1, }; - // string part_id = 1 [json_name = "partId"]; - void clear_part_id() ; - const std::string& part_id() const; - template - void set_part_id(Arg_&& arg, Args_... args); - std::string* mutable_part_id(); - PROTOBUF_NODISCARD std::string* release_part_id(); - void set_allocated_part_id(std::string* value); - + // repeated .viam.app.v1.RobotPart parts = 1 [json_name = "parts"]; + int parts_size() const; private: - const std::string& _internal_part_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_part_id( - const std::string& value); - std::string* _internal_mutable_part_id(); - + int _internal_parts_size() const; public: - // string secret_id = 2 [json_name = "secretId"]; - void clear_secret_id() ; - const std::string& secret_id() const; - template - void set_secret_id(Arg_&& arg, Args_... args); - std::string* mutable_secret_id(); - PROTOBUF_NODISCARD std::string* release_secret_id(); - void set_allocated_secret_id(std::string* value); - + void clear_parts(); + ::viam::app::v1::RobotPart* mutable_parts(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::RobotPart >* + mutable_parts(); private: - const std::string& _internal_secret_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_secret_id( - const std::string& value); - std::string* _internal_mutable_secret_id(); - + const ::viam::app::v1::RobotPart& _internal_parts(int index) const; + ::viam::app::v1::RobotPart* _internal_add_parts(); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.DeleteRobotPartSecretRequest) + const ::viam::app::v1::RobotPart& parts(int index) const; + ::viam::app::v1::RobotPart* add_parts(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::RobotPart >& + parts() const; + + // @@protoc_insertion_point(class_scope:viam.app.v1.GetRobotPartsResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 65, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr part_id_; - ::google::protobuf::internal::ArenaStringPtr secret_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::RobotPart > parts_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class DeleteRobotPartResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.DeleteRobotPartResponse) */ { +class GetRobotPartRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetRobotPartRequest) */ { public: - inline DeleteRobotPartResponse() : DeleteRobotPartResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR DeleteRobotPartResponse(::google::protobuf::internal::ConstantInitialized); + inline GetRobotPartRequest() : GetRobotPartRequest(nullptr) {} + ~GetRobotPartRequest() override; + explicit PROTOBUF_CONSTEXPR GetRobotPartRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline DeleteRobotPartResponse(const DeleteRobotPartResponse& from) - : DeleteRobotPartResponse(nullptr, from) {} - DeleteRobotPartResponse(DeleteRobotPartResponse&& from) noexcept - : DeleteRobotPartResponse() { + GetRobotPartRequest(const GetRobotPartRequest& from); + GetRobotPartRequest(GetRobotPartRequest&& from) noexcept + : GetRobotPartRequest() { *this = ::std::move(from); } - inline DeleteRobotPartResponse& operator=(const DeleteRobotPartResponse& from) { + inline GetRobotPartRequest& operator=(const GetRobotPartRequest& from) { CopyFrom(from); return *this; } - inline DeleteRobotPartResponse& operator=(DeleteRobotPartResponse&& from) noexcept { + inline GetRobotPartRequest& operator=(GetRobotPartRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -15580,134 +14153,145 @@ class DeleteRobotPartResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const DeleteRobotPartResponse& default_instance() { + static const GetRobotPartRequest& default_instance() { return *internal_default_instance(); } - static inline const DeleteRobotPartResponse* internal_default_instance() { - return reinterpret_cast( - &_DeleteRobotPartResponse_default_instance_); + static inline const GetRobotPartRequest* internal_default_instance() { + return reinterpret_cast( + &_GetRobotPartRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 95; + 79; - friend void swap(DeleteRobotPartResponse& a, DeleteRobotPartResponse& b) { + friend void swap(GetRobotPartRequest& a, GetRobotPartRequest& b) { a.Swap(&b); } - inline void Swap(DeleteRobotPartResponse* other) { + inline void Swap(GetRobotPartRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(DeleteRobotPartResponse* other) { + void UnsafeArenaSwap(GetRobotPartRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - DeleteRobotPartResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const DeleteRobotPartResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const DeleteRobotPartResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + GetRobotPartRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetRobotPartRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetRobotPartRequest& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.DeleteRobotPartResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetRobotPartRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.GetRobotPartRequest"; } protected: - explicit DeleteRobotPartResponse(::google::protobuf::Arena* arena); - DeleteRobotPartResponse(::google::protobuf::Arena* arena, const DeleteRobotPartResponse& from); + explicit GetRobotPartRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.app.v1.DeleteRobotPartResponse) + enum : int { + kIdFieldNumber = 1, + }; + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.GetRobotPartRequest) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class DeleteRobotPartRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.DeleteRobotPartRequest) */ { +class GetRobotPartResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetRobotPartResponse) */ { public: - inline DeleteRobotPartRequest() : DeleteRobotPartRequest(nullptr) {} - ~DeleteRobotPartRequest() override; - template - explicit PROTOBUF_CONSTEXPR DeleteRobotPartRequest(::google::protobuf::internal::ConstantInitialized); + inline GetRobotPartResponse() : GetRobotPartResponse(nullptr) {} + ~GetRobotPartResponse() override; + explicit PROTOBUF_CONSTEXPR GetRobotPartResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline DeleteRobotPartRequest(const DeleteRobotPartRequest& from) - : DeleteRobotPartRequest(nullptr, from) {} - DeleteRobotPartRequest(DeleteRobotPartRequest&& from) noexcept - : DeleteRobotPartRequest() { + GetRobotPartResponse(const GetRobotPartResponse& from); + GetRobotPartResponse(GetRobotPartResponse&& from) noexcept + : GetRobotPartResponse() { *this = ::std::move(from); } - inline DeleteRobotPartRequest& operator=(const DeleteRobotPartRequest& from) { + inline GetRobotPartResponse& operator=(const GetRobotPartResponse& from) { CopyFrom(from); return *this; } - inline DeleteRobotPartRequest& operator=(DeleteRobotPartRequest&& from) noexcept { + inline GetRobotPartResponse& operator=(GetRobotPartResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -15717,177 +14301,165 @@ class DeleteRobotPartRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const DeleteRobotPartRequest& default_instance() { + static const GetRobotPartResponse& default_instance() { return *internal_default_instance(); } - static inline const DeleteRobotPartRequest* internal_default_instance() { - return reinterpret_cast( - &_DeleteRobotPartRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 91; + static inline const GetRobotPartResponse* internal_default_instance() { + return reinterpret_cast( + &_GetRobotPartResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 80; - friend void swap(DeleteRobotPartRequest& a, DeleteRobotPartRequest& b) { + friend void swap(GetRobotPartResponse& a, GetRobotPartResponse& b) { a.Swap(&b); } - inline void Swap(DeleteRobotPartRequest* other) { + inline void Swap(GetRobotPartResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(DeleteRobotPartRequest* other) { + void UnsafeArenaSwap(GetRobotPartResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - DeleteRobotPartRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const DeleteRobotPartRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const DeleteRobotPartRequest& from) { - DeleteRobotPartRequest::MergeImpl(*this, from); + GetRobotPartResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetRobotPartResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetRobotPartResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(DeleteRobotPartRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetRobotPartResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.DeleteRobotPartRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.GetRobotPartResponse"; } protected: - explicit DeleteRobotPartRequest(::google::protobuf::Arena* arena); - DeleteRobotPartRequest(::google::protobuf::Arena* arena, const DeleteRobotPartRequest& from); + explicit GetRobotPartResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kPartIdFieldNumber = 1, + kConfigJsonFieldNumber = 2, + kPartFieldNumber = 1, }; - // string part_id = 1 [json_name = "partId"]; - void clear_part_id() ; - const std::string& part_id() const; - template - void set_part_id(Arg_&& arg, Args_... args); - std::string* mutable_part_id(); - PROTOBUF_NODISCARD std::string* release_part_id(); - void set_allocated_part_id(std::string* value); - + // string config_json = 2 [json_name = "configJson"]; + void clear_config_json(); + const std::string& config_json() const; + template + void set_config_json(ArgT0&& arg0, ArgT... args); + std::string* mutable_config_json(); + PROTOBUF_NODISCARD std::string* release_config_json(); + void set_allocated_config_json(std::string* config_json); private: - const std::string& _internal_part_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_part_id( - const std::string& value); - std::string* _internal_mutable_part_id(); + const std::string& _internal_config_json() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_config_json(const std::string& value); + std::string* _internal_mutable_config_json(); + public: + // .viam.app.v1.RobotPart part = 1 [json_name = "part"]; + bool has_part() const; + private: + bool _internal_has_part() const; public: - // @@protoc_insertion_point(class_scope:viam.app.v1.DeleteRobotPartRequest) + void clear_part(); + const ::viam::app::v1::RobotPart& part() const; + PROTOBUF_NODISCARD ::viam::app::v1::RobotPart* release_part(); + ::viam::app::v1::RobotPart* mutable_part(); + void set_allocated_part(::viam::app::v1::RobotPart* part); + private: + const ::viam::app::v1::RobotPart& _internal_part() const; + ::viam::app::v1::RobotPart* _internal_mutable_part(); + public: + void unsafe_arena_set_allocated_part( + ::viam::app::v1::RobotPart* part); + ::viam::app::v1::RobotPart* unsafe_arena_release_part(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.GetRobotPartResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 50, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr part_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr config_json_; + ::viam::app::v1::RobotPart* part_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class DeleteRegistryItemResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.DeleteRegistryItemResponse) */ { +class GetRobotPartLogsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetRobotPartLogsRequest) */ { public: - inline DeleteRegistryItemResponse() : DeleteRegistryItemResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR DeleteRegistryItemResponse(::google::protobuf::internal::ConstantInitialized); + inline GetRobotPartLogsRequest() : GetRobotPartLogsRequest(nullptr) {} + ~GetRobotPartLogsRequest() override; + explicit PROTOBUF_CONSTEXPR GetRobotPartLogsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline DeleteRegistryItemResponse(const DeleteRegistryItemResponse& from) - : DeleteRegistryItemResponse(nullptr, from) {} - DeleteRegistryItemResponse(DeleteRegistryItemResponse&& from) noexcept - : DeleteRegistryItemResponse() { + GetRobotPartLogsRequest(const GetRobotPartLogsRequest& from); + GetRobotPartLogsRequest(GetRobotPartLogsRequest&& from) noexcept + : GetRobotPartLogsRequest() { *this = ::std::move(from); } - inline DeleteRegistryItemResponse& operator=(const DeleteRegistryItemResponse& from) { + inline GetRobotPartLogsRequest& operator=(const GetRobotPartLogsRequest& from) { CopyFrom(from); return *this; } - inline DeleteRegistryItemResponse& operator=(DeleteRegistryItemResponse&& from) noexcept { + inline GetRobotPartLogsRequest& operator=(GetRobotPartLogsRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -15897,134 +14469,298 @@ class DeleteRegistryItemResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const DeleteRegistryItemResponse& default_instance() { + static const GetRobotPartLogsRequest& default_instance() { return *internal_default_instance(); } - static inline const DeleteRegistryItemResponse* internal_default_instance() { - return reinterpret_cast( - &_DeleteRegistryItemResponse_default_instance_); + static inline const GetRobotPartLogsRequest* internal_default_instance() { + return reinterpret_cast( + &_GetRobotPartLogsRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 157; + 81; - friend void swap(DeleteRegistryItemResponse& a, DeleteRegistryItemResponse& b) { + friend void swap(GetRobotPartLogsRequest& a, GetRobotPartLogsRequest& b) { a.Swap(&b); } - inline void Swap(DeleteRegistryItemResponse* other) { + inline void Swap(GetRobotPartLogsRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(DeleteRegistryItemResponse* other) { + void UnsafeArenaSwap(GetRobotPartLogsRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - DeleteRegistryItemResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const DeleteRegistryItemResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const DeleteRegistryItemResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + GetRobotPartLogsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetRobotPartLogsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetRobotPartLogsRequest& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.DeleteRegistryItemResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetRobotPartLogsRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.GetRobotPartLogsRequest"; } protected: - explicit DeleteRegistryItemResponse(::google::protobuf::Arena* arena); - DeleteRegistryItemResponse(::google::protobuf::Arena* arena, const DeleteRegistryItemResponse& from); + explicit GetRobotPartLogsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.app.v1.DeleteRegistryItemResponse) + enum : int { + kLevelsFieldNumber = 5, + kIdFieldNumber = 1, + kFilterFieldNumber = 3, + kPageTokenFieldNumber = 4, + kSourceFieldNumber = 9, + kStartFieldNumber = 6, + kEndFieldNumber = 7, + kLimitFieldNumber = 8, + kErrorsOnlyFieldNumber = 2, + }; + // repeated string levels = 5 [json_name = "levels"]; + int levels_size() const; + private: + int _internal_levels_size() const; + public: + void clear_levels(); + const std::string& levels(int index) const; + std::string* mutable_levels(int index); + void set_levels(int index, const std::string& value); + void set_levels(int index, std::string&& value); + void set_levels(int index, const char* value); + void set_levels(int index, const char* value, size_t size); + std::string* add_levels(); + void add_levels(const std::string& value); + void add_levels(std::string&& value); + void add_levels(const char* value); + void add_levels(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& levels() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_levels(); + private: + const std::string& _internal_levels(int index) const; + std::string* _internal_add_levels(); + public: + + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + + // optional string filter = 3 [json_name = "filter"]; + bool has_filter() const; + private: + bool _internal_has_filter() const; + public: + void clear_filter(); + const std::string& filter() const; + template + void set_filter(ArgT0&& arg0, ArgT... args); + std::string* mutable_filter(); + PROTOBUF_NODISCARD std::string* release_filter(); + void set_allocated_filter(std::string* filter); + private: + const std::string& _internal_filter() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_filter(const std::string& value); + std::string* _internal_mutable_filter(); + public: + + // optional string page_token = 4 [json_name = "pageToken"]; + bool has_page_token() const; + private: + bool _internal_has_page_token() const; + public: + void clear_page_token(); + const std::string& page_token() const; + template + void set_page_token(ArgT0&& arg0, ArgT... args); + std::string* mutable_page_token(); + PROTOBUF_NODISCARD std::string* release_page_token(); + void set_allocated_page_token(std::string* page_token); + private: + const std::string& _internal_page_token() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_page_token(const std::string& value); + std::string* _internal_mutable_page_token(); + public: + + // optional string source = 9 [json_name = "source"]; + bool has_source() const; + private: + bool _internal_has_source() const; + public: + void clear_source(); + const std::string& source() const; + template + void set_source(ArgT0&& arg0, ArgT... args); + std::string* mutable_source(); + PROTOBUF_NODISCARD std::string* release_source(); + void set_allocated_source(std::string* source); + private: + const std::string& _internal_source() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_source(const std::string& value); + std::string* _internal_mutable_source(); + public: + + // optional .google.protobuf.Timestamp start = 6 [json_name = "start"]; + bool has_start() const; + private: + bool _internal_has_start() const; + public: + void clear_start(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& start() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_start(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_start(); + void set_allocated_start(::PROTOBUF_NAMESPACE_ID::Timestamp* start); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_start() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_start(); + public: + void unsafe_arena_set_allocated_start( + ::PROTOBUF_NAMESPACE_ID::Timestamp* start); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_start(); + + // optional .google.protobuf.Timestamp end = 7 [json_name = "end"]; + bool has_end() const; + private: + bool _internal_has_end() const; + public: + void clear_end(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& end() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_end(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_end(); + void set_allocated_end(::PROTOBUF_NAMESPACE_ID::Timestamp* end); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_end() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_end(); + public: + void unsafe_arena_set_allocated_end( + ::PROTOBUF_NAMESPACE_ID::Timestamp* end); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_end(); + + // optional int64 limit = 8 [json_name = "limit"]; + bool has_limit() const; + private: + bool _internal_has_limit() const; + public: + void clear_limit(); + int64_t limit() const; + void set_limit(int64_t value); + private: + int64_t _internal_limit() const; + void _internal_set_limit(int64_t value); + public: + + // bool errors_only = 2 [json_name = "errorsOnly", deprecated = true]; + PROTOBUF_DEPRECATED void clear_errors_only(); + PROTOBUF_DEPRECATED bool errors_only() const; + PROTOBUF_DEPRECATED void set_errors_only(bool value); + private: + bool _internal_errors_only() const; + void _internal_set_errors_only(bool value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.GetRobotPartLogsRequest) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField levels_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr filter_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr page_token_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr source_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* start_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* end_; + int64_t limit_; + bool errors_only_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class DeleteRegistryItemRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.DeleteRegistryItemRequest) */ { +class GetRobotPartLogsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetRobotPartLogsResponse) */ { public: - inline DeleteRegistryItemRequest() : DeleteRegistryItemRequest(nullptr) {} - ~DeleteRegistryItemRequest() override; - template - explicit PROTOBUF_CONSTEXPR DeleteRegistryItemRequest(::google::protobuf::internal::ConstantInitialized); + inline GetRobotPartLogsResponse() : GetRobotPartLogsResponse(nullptr) {} + ~GetRobotPartLogsResponse() override; + explicit PROTOBUF_CONSTEXPR GetRobotPartLogsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline DeleteRegistryItemRequest(const DeleteRegistryItemRequest& from) - : DeleteRegistryItemRequest(nullptr, from) {} - DeleteRegistryItemRequest(DeleteRegistryItemRequest&& from) noexcept - : DeleteRegistryItemRequest() { + GetRobotPartLogsResponse(const GetRobotPartLogsResponse& from); + GetRobotPartLogsResponse(GetRobotPartLogsResponse&& from) noexcept + : GetRobotPartLogsResponse() { *this = ::std::move(from); } - inline DeleteRegistryItemRequest& operator=(const DeleteRegistryItemRequest& from) { + inline GetRobotPartLogsResponse& operator=(const GetRobotPartLogsResponse& from) { CopyFrom(from); return *this; } - inline DeleteRegistryItemRequest& operator=(DeleteRegistryItemRequest&& from) noexcept { + inline GetRobotPartLogsResponse& operator=(GetRobotPartLogsResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -16034,177 +14770,165 @@ class DeleteRegistryItemRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const DeleteRegistryItemRequest& default_instance() { + static const GetRobotPartLogsResponse& default_instance() { return *internal_default_instance(); } - static inline const DeleteRegistryItemRequest* internal_default_instance() { - return reinterpret_cast( - &_DeleteRegistryItemRequest_default_instance_); + static inline const GetRobotPartLogsResponse* internal_default_instance() { + return reinterpret_cast( + &_GetRobotPartLogsResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 156; + 82; - friend void swap(DeleteRegistryItemRequest& a, DeleteRegistryItemRequest& b) { + friend void swap(GetRobotPartLogsResponse& a, GetRobotPartLogsResponse& b) { a.Swap(&b); } - inline void Swap(DeleteRegistryItemRequest* other) { + inline void Swap(GetRobotPartLogsResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(DeleteRegistryItemRequest* other) { + void UnsafeArenaSwap(GetRobotPartLogsResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - DeleteRegistryItemRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const DeleteRegistryItemRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const DeleteRegistryItemRequest& from) { - DeleteRegistryItemRequest::MergeImpl(*this, from); + GetRobotPartLogsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetRobotPartLogsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetRobotPartLogsResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(DeleteRegistryItemRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetRobotPartLogsResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.DeleteRegistryItemRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.GetRobotPartLogsResponse"; } protected: - explicit DeleteRegistryItemRequest(::google::protobuf::Arena* arena); - DeleteRegistryItemRequest(::google::protobuf::Arena* arena, const DeleteRegistryItemRequest& from); + explicit GetRobotPartLogsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kItemIdFieldNumber = 1, + kLogsFieldNumber = 1, + kNextPageTokenFieldNumber = 2, }; - // string item_id = 1 [json_name = "itemId"]; - void clear_item_id() ; - const std::string& item_id() const; - template - void set_item_id(Arg_&& arg, Args_... args); - std::string* mutable_item_id(); - PROTOBUF_NODISCARD std::string* release_item_id(); - void set_allocated_item_id(std::string* value); - + // repeated .viam.common.v1.LogEntry logs = 1 [json_name = "logs"]; + int logs_size() const; private: - const std::string& _internal_item_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_item_id( - const std::string& value); - std::string* _internal_mutable_item_id(); + int _internal_logs_size() const; + public: + void clear_logs(); + ::viam::common::v1::LogEntry* mutable_logs(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::LogEntry >* + mutable_logs(); + private: + const ::viam::common::v1::LogEntry& _internal_logs(int index) const; + ::viam::common::v1::LogEntry* _internal_add_logs(); + public: + const ::viam::common::v1::LogEntry& logs(int index) const; + ::viam::common::v1::LogEntry* add_logs(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::LogEntry >& + logs() const; + // string next_page_token = 2 [json_name = "nextPageToken"]; + void clear_next_page_token(); + const std::string& next_page_token() const; + template + void set_next_page_token(ArgT0&& arg0, ArgT... args); + std::string* mutable_next_page_token(); + PROTOBUF_NODISCARD std::string* release_next_page_token(); + void set_allocated_next_page_token(std::string* next_page_token); + private: + const std::string& _internal_next_page_token() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_next_page_token(const std::string& value); + std::string* _internal_mutable_next_page_token(); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.DeleteRegistryItemRequest) + + // @@protoc_insertion_point(class_scope:viam.app.v1.GetRobotPartLogsResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 53, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr item_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::LogEntry > logs_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr next_page_token_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class DeleteOrganizationResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.DeleteOrganizationResponse) */ { +class TailRobotPartLogsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.TailRobotPartLogsRequest) */ { public: - inline DeleteOrganizationResponse() : DeleteOrganizationResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR DeleteOrganizationResponse(::google::protobuf::internal::ConstantInitialized); + inline TailRobotPartLogsRequest() : TailRobotPartLogsRequest(nullptr) {} + ~TailRobotPartLogsRequest() override; + explicit PROTOBUF_CONSTEXPR TailRobotPartLogsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline DeleteOrganizationResponse(const DeleteOrganizationResponse& from) - : DeleteOrganizationResponse(nullptr, from) {} - DeleteOrganizationResponse(DeleteOrganizationResponse&& from) noexcept - : DeleteOrganizationResponse() { + TailRobotPartLogsRequest(const TailRobotPartLogsRequest& from); + TailRobotPartLogsRequest(TailRobotPartLogsRequest&& from) noexcept + : TailRobotPartLogsRequest() { *this = ::std::move(from); } - inline DeleteOrganizationResponse& operator=(const DeleteOrganizationResponse& from) { + inline TailRobotPartLogsRequest& operator=(const TailRobotPartLogsRequest& from) { CopyFrom(from); return *this; } - inline DeleteOrganizationResponse& operator=(DeleteOrganizationResponse&& from) noexcept { + inline TailRobotPartLogsRequest& operator=(TailRobotPartLogsRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -16214,134 +14938,177 @@ class DeleteOrganizationResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const DeleteOrganizationResponse& default_instance() { + static const TailRobotPartLogsRequest& default_instance() { return *internal_default_instance(); } - static inline const DeleteOrganizationResponse* internal_default_instance() { - return reinterpret_cast( - &_DeleteOrganizationResponse_default_instance_); + static inline const TailRobotPartLogsRequest* internal_default_instance() { + return reinterpret_cast( + &_TailRobotPartLogsRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 18; + 83; - friend void swap(DeleteOrganizationResponse& a, DeleteOrganizationResponse& b) { + friend void swap(TailRobotPartLogsRequest& a, TailRobotPartLogsRequest& b) { a.Swap(&b); } - inline void Swap(DeleteOrganizationResponse* other) { + inline void Swap(TailRobotPartLogsRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(DeleteOrganizationResponse* other) { + void UnsafeArenaSwap(TailRobotPartLogsRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - DeleteOrganizationResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const DeleteOrganizationResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const DeleteOrganizationResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + TailRobotPartLogsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const TailRobotPartLogsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const TailRobotPartLogsRequest& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.DeleteOrganizationResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TailRobotPartLogsRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.TailRobotPartLogsRequest"; } protected: - explicit DeleteOrganizationResponse(::google::protobuf::Arena* arena); - DeleteOrganizationResponse(::google::protobuf::Arena* arena, const DeleteOrganizationResponse& from); + explicit TailRobotPartLogsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.app.v1.DeleteOrganizationResponse) + enum : int { + kIdFieldNumber = 1, + kFilterFieldNumber = 3, + kErrorsOnlyFieldNumber = 2, + }; + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + + // optional string filter = 3 [json_name = "filter"]; + bool has_filter() const; + private: + bool _internal_has_filter() const; + public: + void clear_filter(); + const std::string& filter() const; + template + void set_filter(ArgT0&& arg0, ArgT... args); + std::string* mutable_filter(); + PROTOBUF_NODISCARD std::string* release_filter(); + void set_allocated_filter(std::string* filter); + private: + const std::string& _internal_filter() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_filter(const std::string& value); + std::string* _internal_mutable_filter(); + public: + + // bool errors_only = 2 [json_name = "errorsOnly"]; + void clear_errors_only(); + bool errors_only() const; + void set_errors_only(bool value); + private: + bool _internal_errors_only() const; + void _internal_set_errors_only(bool value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.TailRobotPartLogsRequest) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr filter_; + bool errors_only_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class DeleteOrganizationRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.DeleteOrganizationRequest) */ { +class TailRobotPartLogsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.TailRobotPartLogsResponse) */ { public: - inline DeleteOrganizationRequest() : DeleteOrganizationRequest(nullptr) {} - ~DeleteOrganizationRequest() override; - template - explicit PROTOBUF_CONSTEXPR DeleteOrganizationRequest(::google::protobuf::internal::ConstantInitialized); + inline TailRobotPartLogsResponse() : TailRobotPartLogsResponse(nullptr) {} + ~TailRobotPartLogsResponse() override; + explicit PROTOBUF_CONSTEXPR TailRobotPartLogsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline DeleteOrganizationRequest(const DeleteOrganizationRequest& from) - : DeleteOrganizationRequest(nullptr, from) {} - DeleteOrganizationRequest(DeleteOrganizationRequest&& from) noexcept - : DeleteOrganizationRequest() { + TailRobotPartLogsResponse(const TailRobotPartLogsResponse& from); + TailRobotPartLogsResponse(TailRobotPartLogsResponse&& from) noexcept + : TailRobotPartLogsResponse() { *this = ::std::move(from); } - inline DeleteOrganizationRequest& operator=(const DeleteOrganizationRequest& from) { + inline TailRobotPartLogsResponse& operator=(const TailRobotPartLogsResponse& from) { CopyFrom(from); return *this; } - inline DeleteOrganizationRequest& operator=(DeleteOrganizationRequest&& from) noexcept { + inline TailRobotPartLogsResponse& operator=(TailRobotPartLogsResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -16351,177 +15118,149 @@ class DeleteOrganizationRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const DeleteOrganizationRequest& default_instance() { + static const TailRobotPartLogsResponse& default_instance() { return *internal_default_instance(); } - static inline const DeleteOrganizationRequest* internal_default_instance() { - return reinterpret_cast( - &_DeleteOrganizationRequest_default_instance_); + static inline const TailRobotPartLogsResponse* internal_default_instance() { + return reinterpret_cast( + &_TailRobotPartLogsResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 17; + 84; - friend void swap(DeleteOrganizationRequest& a, DeleteOrganizationRequest& b) { + friend void swap(TailRobotPartLogsResponse& a, TailRobotPartLogsResponse& b) { a.Swap(&b); } - inline void Swap(DeleteOrganizationRequest* other) { + inline void Swap(TailRobotPartLogsResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(DeleteOrganizationRequest* other) { + void UnsafeArenaSwap(TailRobotPartLogsResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - DeleteOrganizationRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const DeleteOrganizationRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const DeleteOrganizationRequest& from) { - DeleteOrganizationRequest::MergeImpl(*this, from); + TailRobotPartLogsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const TailRobotPartLogsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const TailRobotPartLogsResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(DeleteOrganizationRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(TailRobotPartLogsResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.DeleteOrganizationRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.TailRobotPartLogsResponse"; } protected: - explicit DeleteOrganizationRequest(::google::protobuf::Arena* arena); - DeleteOrganizationRequest(::google::protobuf::Arena* arena, const DeleteOrganizationRequest& from); + explicit TailRobotPartLogsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kOrganizationIdFieldNumber = 1, + kLogsFieldNumber = 1, }; - // string organization_id = 1 [json_name = "organizationId"]; - void clear_organization_id() ; - const std::string& organization_id() const; - template - void set_organization_id(Arg_&& arg, Args_... args); - std::string* mutable_organization_id(); - PROTOBUF_NODISCARD std::string* release_organization_id(); - void set_allocated_organization_id(std::string* value); - + // repeated .viam.common.v1.LogEntry logs = 1 [json_name = "logs"]; + int logs_size() const; private: - const std::string& _internal_organization_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id( - const std::string& value); - std::string* _internal_mutable_organization_id(); - + int _internal_logs_size() const; public: - // @@protoc_insertion_point(class_scope:viam.app.v1.DeleteOrganizationRequest) + void clear_logs(); + ::viam::common::v1::LogEntry* mutable_logs(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::LogEntry >* + mutable_logs(); + private: + const ::viam::common::v1::LogEntry& _internal_logs(int index) const; + ::viam::common::v1::LogEntry* _internal_add_logs(); + public: + const ::viam::common::v1::LogEntry& logs(int index) const; + ::viam::common::v1::LogEntry* add_logs(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::LogEntry >& + logs() const; + + // @@protoc_insertion_point(class_scope:viam.app.v1.TailRobotPartLogsResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 61, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr organization_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::LogEntry > logs_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class DeleteOrganizationMemberResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.DeleteOrganizationMemberResponse) */ { +class GetRobotPartHistoryRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetRobotPartHistoryRequest) */ { public: - inline DeleteOrganizationMemberResponse() : DeleteOrganizationMemberResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR DeleteOrganizationMemberResponse(::google::protobuf::internal::ConstantInitialized); + inline GetRobotPartHistoryRequest() : GetRobotPartHistoryRequest(nullptr) {} + ~GetRobotPartHistoryRequest() override; + explicit PROTOBUF_CONSTEXPR GetRobotPartHistoryRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline DeleteOrganizationMemberResponse(const DeleteOrganizationMemberResponse& from) - : DeleteOrganizationMemberResponse(nullptr, from) {} - DeleteOrganizationMemberResponse(DeleteOrganizationMemberResponse&& from) noexcept - : DeleteOrganizationMemberResponse() { + GetRobotPartHistoryRequest(const GetRobotPartHistoryRequest& from); + GetRobotPartHistoryRequest(GetRobotPartHistoryRequest&& from) noexcept + : GetRobotPartHistoryRequest() { *this = ::std::move(from); } - inline DeleteOrganizationMemberResponse& operator=(const DeleteOrganizationMemberResponse& from) { + inline GetRobotPartHistoryRequest& operator=(const GetRobotPartHistoryRequest& from) { CopyFrom(from); return *this; } - inline DeleteOrganizationMemberResponse& operator=(DeleteOrganizationMemberResponse&& from) noexcept { + inline GetRobotPartHistoryRequest& operator=(GetRobotPartHistoryRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -16531,134 +15270,145 @@ class DeleteOrganizationMemberResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const DeleteOrganizationMemberResponse& default_instance() { + static const GetRobotPartHistoryRequest& default_instance() { return *internal_default_instance(); } - static inline const DeleteOrganizationMemberResponse* internal_default_instance() { - return reinterpret_cast( - &_DeleteOrganizationMemberResponse_default_instance_); + static inline const GetRobotPartHistoryRequest* internal_default_instance() { + return reinterpret_cast( + &_GetRobotPartHistoryRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 30; + 85; - friend void swap(DeleteOrganizationMemberResponse& a, DeleteOrganizationMemberResponse& b) { + friend void swap(GetRobotPartHistoryRequest& a, GetRobotPartHistoryRequest& b) { a.Swap(&b); } - inline void Swap(DeleteOrganizationMemberResponse* other) { + inline void Swap(GetRobotPartHistoryRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(DeleteOrganizationMemberResponse* other) { + void UnsafeArenaSwap(GetRobotPartHistoryRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - DeleteOrganizationMemberResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const DeleteOrganizationMemberResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const DeleteOrganizationMemberResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + GetRobotPartHistoryRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetRobotPartHistoryRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetRobotPartHistoryRequest& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.DeleteOrganizationMemberResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetRobotPartHistoryRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.GetRobotPartHistoryRequest"; } protected: - explicit DeleteOrganizationMemberResponse(::google::protobuf::Arena* arena); - DeleteOrganizationMemberResponse(::google::protobuf::Arena* arena, const DeleteOrganizationMemberResponse& from); + explicit GetRobotPartHistoryRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.app.v1.DeleteOrganizationMemberResponse) + enum : int { + kIdFieldNumber = 1, + }; + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.GetRobotPartHistoryRequest) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class DeleteOrganizationMemberRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.DeleteOrganizationMemberRequest) */ { +class GetRobotPartHistoryResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetRobotPartHistoryResponse) */ { public: - inline DeleteOrganizationMemberRequest() : DeleteOrganizationMemberRequest(nullptr) {} - ~DeleteOrganizationMemberRequest() override; - template - explicit PROTOBUF_CONSTEXPR DeleteOrganizationMemberRequest(::google::protobuf::internal::ConstantInitialized); + inline GetRobotPartHistoryResponse() : GetRobotPartHistoryResponse(nullptr) {} + ~GetRobotPartHistoryResponse() override; + explicit PROTOBUF_CONSTEXPR GetRobotPartHistoryResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline DeleteOrganizationMemberRequest(const DeleteOrganizationMemberRequest& from) - : DeleteOrganizationMemberRequest(nullptr, from) {} - DeleteOrganizationMemberRequest(DeleteOrganizationMemberRequest&& from) noexcept - : DeleteOrganizationMemberRequest() { + GetRobotPartHistoryResponse(const GetRobotPartHistoryResponse& from); + GetRobotPartHistoryResponse(GetRobotPartHistoryResponse&& from) noexcept + : GetRobotPartHistoryResponse() { *this = ::std::move(from); } - inline DeleteOrganizationMemberRequest& operator=(const DeleteOrganizationMemberRequest& from) { + inline GetRobotPartHistoryResponse& operator=(const GetRobotPartHistoryResponse& from) { CopyFrom(from); return *this; } - inline DeleteOrganizationMemberRequest& operator=(DeleteOrganizationMemberRequest&& from) noexcept { + inline GetRobotPartHistoryResponse& operator=(GetRobotPartHistoryResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -16668,195 +15418,149 @@ class DeleteOrganizationMemberRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const DeleteOrganizationMemberRequest& default_instance() { + static const GetRobotPartHistoryResponse& default_instance() { return *internal_default_instance(); } - static inline const DeleteOrganizationMemberRequest* internal_default_instance() { - return reinterpret_cast( - &_DeleteOrganizationMemberRequest_default_instance_); + static inline const GetRobotPartHistoryResponse* internal_default_instance() { + return reinterpret_cast( + &_GetRobotPartHistoryResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 29; + 86; - friend void swap(DeleteOrganizationMemberRequest& a, DeleteOrganizationMemberRequest& b) { + friend void swap(GetRobotPartHistoryResponse& a, GetRobotPartHistoryResponse& b) { a.Swap(&b); } - inline void Swap(DeleteOrganizationMemberRequest* other) { + inline void Swap(GetRobotPartHistoryResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(DeleteOrganizationMemberRequest* other) { + void UnsafeArenaSwap(GetRobotPartHistoryResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - DeleteOrganizationMemberRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const DeleteOrganizationMemberRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const DeleteOrganizationMemberRequest& from) { - DeleteOrganizationMemberRequest::MergeImpl(*this, from); + GetRobotPartHistoryResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetRobotPartHistoryResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetRobotPartHistoryResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(DeleteOrganizationMemberRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetRobotPartHistoryResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.DeleteOrganizationMemberRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.GetRobotPartHistoryResponse"; } protected: - explicit DeleteOrganizationMemberRequest(::google::protobuf::Arena* arena); - DeleteOrganizationMemberRequest(::google::protobuf::Arena* arena, const DeleteOrganizationMemberRequest& from); + explicit GetRobotPartHistoryResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kOrganizationIdFieldNumber = 1, - kUserIdFieldNumber = 2, + kHistoryFieldNumber = 1, }; - // string organization_id = 1 [json_name = "organizationId"]; - void clear_organization_id() ; - const std::string& organization_id() const; - template - void set_organization_id(Arg_&& arg, Args_... args); - std::string* mutable_organization_id(); - PROTOBUF_NODISCARD std::string* release_organization_id(); - void set_allocated_organization_id(std::string* value); - + // repeated .viam.app.v1.RobotPartHistoryEntry history = 1 [json_name = "history"]; + int history_size() const; private: - const std::string& _internal_organization_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id( - const std::string& value); - std::string* _internal_mutable_organization_id(); - + int _internal_history_size() const; public: - // string user_id = 2 [json_name = "userId"]; - void clear_user_id() ; - const std::string& user_id() const; - template - void set_user_id(Arg_&& arg, Args_... args); - std::string* mutable_user_id(); - PROTOBUF_NODISCARD std::string* release_user_id(); - void set_allocated_user_id(std::string* value); - + void clear_history(); + ::viam::app::v1::RobotPartHistoryEntry* mutable_history(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::RobotPartHistoryEntry >* + mutable_history(); private: - const std::string& _internal_user_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_user_id( - const std::string& value); - std::string* _internal_mutable_user_id(); - + const ::viam::app::v1::RobotPartHistoryEntry& _internal_history(int index) const; + ::viam::app::v1::RobotPartHistoryEntry* _internal_add_history(); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.DeleteOrganizationMemberRequest) + const ::viam::app::v1::RobotPartHistoryEntry& history(int index) const; + ::viam::app::v1::RobotPartHistoryEntry* add_history(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::RobotPartHistoryEntry >& + history() const; + + // @@protoc_insertion_point(class_scope:viam.app.v1.GetRobotPartHistoryResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 74, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr organization_id_; - ::google::protobuf::internal::ArenaStringPtr user_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::RobotPartHistoryEntry > history_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class DeleteOrganizationInviteResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.DeleteOrganizationInviteResponse) */ { +class UpdateRobotPartRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.UpdateRobotPartRequest) */ { public: - inline DeleteOrganizationInviteResponse() : DeleteOrganizationInviteResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR DeleteOrganizationInviteResponse(::google::protobuf::internal::ConstantInitialized); + inline UpdateRobotPartRequest() : UpdateRobotPartRequest(nullptr) {} + ~UpdateRobotPartRequest() override; + explicit PROTOBUF_CONSTEXPR UpdateRobotPartRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline DeleteOrganizationInviteResponse(const DeleteOrganizationInviteResponse& from) - : DeleteOrganizationInviteResponse(nullptr, from) {} - DeleteOrganizationInviteResponse(DeleteOrganizationInviteResponse&& from) noexcept - : DeleteOrganizationInviteResponse() { + UpdateRobotPartRequest(const UpdateRobotPartRequest& from); + UpdateRobotPartRequest(UpdateRobotPartRequest&& from) noexcept + : UpdateRobotPartRequest() { *this = ::std::move(from); } - inline DeleteOrganizationInviteResponse& operator=(const DeleteOrganizationInviteResponse& from) { + inline UpdateRobotPartRequest& operator=(const UpdateRobotPartRequest& from) { CopyFrom(from); return *this; } - inline DeleteOrganizationInviteResponse& operator=(DeleteOrganizationInviteResponse&& from) noexcept { + inline UpdateRobotPartRequest& operator=(UpdateRobotPartRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -16866,134 +15570,181 @@ class DeleteOrganizationInviteResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const DeleteOrganizationInviteResponse& default_instance() { + static const UpdateRobotPartRequest& default_instance() { return *internal_default_instance(); } - static inline const DeleteOrganizationInviteResponse* internal_default_instance() { - return reinterpret_cast( - &_DeleteOrganizationInviteResponse_default_instance_); + static inline const UpdateRobotPartRequest* internal_default_instance() { + return reinterpret_cast( + &_UpdateRobotPartRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 26; + 87; - friend void swap(DeleteOrganizationInviteResponse& a, DeleteOrganizationInviteResponse& b) { + friend void swap(UpdateRobotPartRequest& a, UpdateRobotPartRequest& b) { a.Swap(&b); } - inline void Swap(DeleteOrganizationInviteResponse* other) { + inline void Swap(UpdateRobotPartRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(DeleteOrganizationInviteResponse* other) { + void UnsafeArenaSwap(UpdateRobotPartRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - DeleteOrganizationInviteResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const DeleteOrganizationInviteResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const DeleteOrganizationInviteResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + UpdateRobotPartRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const UpdateRobotPartRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const UpdateRobotPartRequest& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.DeleteOrganizationInviteResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(UpdateRobotPartRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.UpdateRobotPartRequest"; } protected: - explicit DeleteOrganizationInviteResponse(::google::protobuf::Arena* arena); - DeleteOrganizationInviteResponse(::google::protobuf::Arena* arena, const DeleteOrganizationInviteResponse& from); + explicit UpdateRobotPartRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.app.v1.DeleteOrganizationInviteResponse) + enum : int { + kIdFieldNumber = 1, + kNameFieldNumber = 2, + kRobotConfigFieldNumber = 3, + }; + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + + // string name = 2 [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 robot_config = 3 [json_name = "robotConfig"]; + bool has_robot_config() const; + private: + bool _internal_has_robot_config() const; + public: + void clear_robot_config(); + const ::PROTOBUF_NAMESPACE_ID::Struct& robot_config() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_robot_config(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_robot_config(); + void set_allocated_robot_config(::PROTOBUF_NAMESPACE_ID::Struct* robot_config); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_robot_config() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_robot_config(); + public: + void unsafe_arena_set_allocated_robot_config( + ::PROTOBUF_NAMESPACE_ID::Struct* robot_config); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_robot_config(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.UpdateRobotPartRequest) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::Struct* robot_config_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class DeleteOrganizationInviteRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.DeleteOrganizationInviteRequest) */ { +class UpdateRobotPartResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.UpdateRobotPartResponse) */ { public: - inline DeleteOrganizationInviteRequest() : DeleteOrganizationInviteRequest(nullptr) {} - ~DeleteOrganizationInviteRequest() override; - template - explicit PROTOBUF_CONSTEXPR DeleteOrganizationInviteRequest(::google::protobuf::internal::ConstantInitialized); + inline UpdateRobotPartResponse() : UpdateRobotPartResponse(nullptr) {} + ~UpdateRobotPartResponse() override; + explicit PROTOBUF_CONSTEXPR UpdateRobotPartResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline DeleteOrganizationInviteRequest(const DeleteOrganizationInviteRequest& from) - : DeleteOrganizationInviteRequest(nullptr, from) {} - DeleteOrganizationInviteRequest(DeleteOrganizationInviteRequest&& from) noexcept - : DeleteOrganizationInviteRequest() { + UpdateRobotPartResponse(const UpdateRobotPartResponse& from); + UpdateRobotPartResponse(UpdateRobotPartResponse&& from) noexcept + : UpdateRobotPartResponse() { *this = ::std::move(from); } - inline DeleteOrganizationInviteRequest& operator=(const DeleteOrganizationInviteRequest& from) { + inline UpdateRobotPartResponse& operator=(const UpdateRobotPartResponse& from) { CopyFrom(from); return *this; } - inline DeleteOrganizationInviteRequest& operator=(DeleteOrganizationInviteRequest&& from) noexcept { + inline UpdateRobotPartResponse& operator=(UpdateRobotPartResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -17003,195 +15754,149 @@ class DeleteOrganizationInviteRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const DeleteOrganizationInviteRequest& default_instance() { + static const UpdateRobotPartResponse& default_instance() { return *internal_default_instance(); } - static inline const DeleteOrganizationInviteRequest* internal_default_instance() { - return reinterpret_cast( - &_DeleteOrganizationInviteRequest_default_instance_); + static inline const UpdateRobotPartResponse* internal_default_instance() { + return reinterpret_cast( + &_UpdateRobotPartResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 25; + 88; - friend void swap(DeleteOrganizationInviteRequest& a, DeleteOrganizationInviteRequest& b) { + friend void swap(UpdateRobotPartResponse& a, UpdateRobotPartResponse& b) { a.Swap(&b); } - inline void Swap(DeleteOrganizationInviteRequest* other) { + inline void Swap(UpdateRobotPartResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(DeleteOrganizationInviteRequest* other) { + void UnsafeArenaSwap(UpdateRobotPartResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - DeleteOrganizationInviteRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const DeleteOrganizationInviteRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const DeleteOrganizationInviteRequest& from) { - DeleteOrganizationInviteRequest::MergeImpl(*this, from); + UpdateRobotPartResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const UpdateRobotPartResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const UpdateRobotPartResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(DeleteOrganizationInviteRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(UpdateRobotPartResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.DeleteOrganizationInviteRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.UpdateRobotPartResponse"; } protected: - explicit DeleteOrganizationInviteRequest(::google::protobuf::Arena* arena); - DeleteOrganizationInviteRequest(::google::protobuf::Arena* arena, const DeleteOrganizationInviteRequest& from); + explicit UpdateRobotPartResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kOrganizationIdFieldNumber = 1, - kEmailFieldNumber = 2, + kPartFieldNumber = 1, }; - // string organization_id = 1 [json_name = "organizationId"]; - void clear_organization_id() ; - const std::string& organization_id() const; - template - void set_organization_id(Arg_&& arg, Args_... args); - std::string* mutable_organization_id(); - PROTOBUF_NODISCARD std::string* release_organization_id(); - void set_allocated_organization_id(std::string* value); - + // .viam.app.v1.RobotPart part = 1 [json_name = "part"]; + bool has_part() const; private: - const std::string& _internal_organization_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id( - const std::string& value); - std::string* _internal_mutable_organization_id(); - + bool _internal_has_part() const; public: - // string email = 2 [json_name = "email"]; - void clear_email() ; - const std::string& email() const; - template - void set_email(Arg_&& arg, Args_... args); - std::string* mutable_email(); - PROTOBUF_NODISCARD std::string* release_email(); - void set_allocated_email(std::string* value); - + void clear_part(); + const ::viam::app::v1::RobotPart& part() const; + PROTOBUF_NODISCARD ::viam::app::v1::RobotPart* release_part(); + ::viam::app::v1::RobotPart* mutable_part(); + void set_allocated_part(::viam::app::v1::RobotPart* part); private: - const std::string& _internal_email() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_email( - const std::string& value); - std::string* _internal_mutable_email(); - + const ::viam::app::v1::RobotPart& _internal_part() const; + ::viam::app::v1::RobotPart* _internal_mutable_part(); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.DeleteOrganizationInviteRequest) + void unsafe_arena_set_allocated_part( + ::viam::app::v1::RobotPart* part); + ::viam::app::v1::RobotPart* unsafe_arena_release_part(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.UpdateRobotPartResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 72, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr organization_id_; - ::google::protobuf::internal::ArenaStringPtr email_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::viam::app::v1::RobotPart* part_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class DeleteLocationSecretResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.DeleteLocationSecretResponse) */ { +class NewRobotPartRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.NewRobotPartRequest) */ { public: - inline DeleteLocationSecretResponse() : DeleteLocationSecretResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR DeleteLocationSecretResponse(::google::protobuf::internal::ConstantInitialized); + inline NewRobotPartRequest() : NewRobotPartRequest(nullptr) {} + ~NewRobotPartRequest() override; + explicit PROTOBUF_CONSTEXPR NewRobotPartRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline DeleteLocationSecretResponse(const DeleteLocationSecretResponse& from) - : DeleteLocationSecretResponse(nullptr, from) {} - DeleteLocationSecretResponse(DeleteLocationSecretResponse&& from) noexcept - : DeleteLocationSecretResponse() { + NewRobotPartRequest(const NewRobotPartRequest& from); + NewRobotPartRequest(NewRobotPartRequest&& from) noexcept + : NewRobotPartRequest() { *this = ::std::move(from); } - inline DeleteLocationSecretResponse& operator=(const DeleteLocationSecretResponse& from) { + inline NewRobotPartRequest& operator=(const NewRobotPartRequest& from) { CopyFrom(from); return *this; } - inline DeleteLocationSecretResponse& operator=(DeleteLocationSecretResponse&& from) noexcept { + inline NewRobotPartRequest& operator=(NewRobotPartRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -17201,134 +15906,161 @@ class DeleteLocationSecretResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const DeleteLocationSecretResponse& default_instance() { + static const NewRobotPartRequest& default_instance() { return *internal_default_instance(); } - static inline const DeleteLocationSecretResponse* internal_default_instance() { - return reinterpret_cast( - &_DeleteLocationSecretResponse_default_instance_); + static inline const NewRobotPartRequest* internal_default_instance() { + return reinterpret_cast( + &_NewRobotPartRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 69; + 89; - friend void swap(DeleteLocationSecretResponse& a, DeleteLocationSecretResponse& b) { + friend void swap(NewRobotPartRequest& a, NewRobotPartRequest& b) { a.Swap(&b); } - inline void Swap(DeleteLocationSecretResponse* other) { + inline void Swap(NewRobotPartRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(DeleteLocationSecretResponse* other) { + void UnsafeArenaSwap(NewRobotPartRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - DeleteLocationSecretResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const DeleteLocationSecretResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const DeleteLocationSecretResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + NewRobotPartRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const NewRobotPartRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const NewRobotPartRequest& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.DeleteLocationSecretResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(NewRobotPartRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.NewRobotPartRequest"; } protected: - explicit DeleteLocationSecretResponse(::google::protobuf::Arena* arena); - DeleteLocationSecretResponse(::google::protobuf::Arena* arena, const DeleteLocationSecretResponse& from); + explicit NewRobotPartRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.app.v1.DeleteLocationSecretResponse) + enum : int { + kRobotIdFieldNumber = 1, + kPartNameFieldNumber = 2, + }; + // string robot_id = 1 [json_name = "robotId"]; + void clear_robot_id(); + const std::string& robot_id() const; + template + void set_robot_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_robot_id(); + PROTOBUF_NODISCARD std::string* release_robot_id(); + void set_allocated_robot_id(std::string* robot_id); + private: + const std::string& _internal_robot_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_robot_id(const std::string& value); + std::string* _internal_mutable_robot_id(); + public: + + // string part_name = 2 [json_name = "partName"]; + void clear_part_name(); + const std::string& part_name() const; + template + void set_part_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_part_name(); + PROTOBUF_NODISCARD std::string* release_part_name(); + void set_allocated_part_name(std::string* part_name); + private: + const std::string& _internal_part_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_part_name(const std::string& value); + std::string* _internal_mutable_part_name(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.NewRobotPartRequest) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr robot_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr part_name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class DeleteLocationSecretRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.DeleteLocationSecretRequest) */ { +class NewRobotPartResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.NewRobotPartResponse) */ { public: - inline DeleteLocationSecretRequest() : DeleteLocationSecretRequest(nullptr) {} - ~DeleteLocationSecretRequest() override; - template - explicit PROTOBUF_CONSTEXPR DeleteLocationSecretRequest(::google::protobuf::internal::ConstantInitialized); + inline NewRobotPartResponse() : NewRobotPartResponse(nullptr) {} + ~NewRobotPartResponse() override; + explicit PROTOBUF_CONSTEXPR NewRobotPartResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline DeleteLocationSecretRequest(const DeleteLocationSecretRequest& from) - : DeleteLocationSecretRequest(nullptr, from) {} - DeleteLocationSecretRequest(DeleteLocationSecretRequest&& from) noexcept - : DeleteLocationSecretRequest() { + NewRobotPartResponse(const NewRobotPartResponse& from); + NewRobotPartResponse(NewRobotPartResponse&& from) noexcept + : NewRobotPartResponse() { *this = ::std::move(from); } - inline DeleteLocationSecretRequest& operator=(const DeleteLocationSecretRequest& from) { + inline NewRobotPartResponse& operator=(const NewRobotPartResponse& from) { CopyFrom(from); return *this; } - inline DeleteLocationSecretRequest& operator=(DeleteLocationSecretRequest&& from) noexcept { + inline NewRobotPartResponse& operator=(NewRobotPartResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -17338,195 +16070,145 @@ class DeleteLocationSecretRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const DeleteLocationSecretRequest& default_instance() { + static const NewRobotPartResponse& default_instance() { return *internal_default_instance(); } - static inline const DeleteLocationSecretRequest* internal_default_instance() { - return reinterpret_cast( - &_DeleteLocationSecretRequest_default_instance_); + static inline const NewRobotPartResponse* internal_default_instance() { + return reinterpret_cast( + &_NewRobotPartResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 68; + 90; - friend void swap(DeleteLocationSecretRequest& a, DeleteLocationSecretRequest& b) { + friend void swap(NewRobotPartResponse& a, NewRobotPartResponse& b) { a.Swap(&b); } - inline void Swap(DeleteLocationSecretRequest* other) { + inline void Swap(NewRobotPartResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(DeleteLocationSecretRequest* other) { + void UnsafeArenaSwap(NewRobotPartResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - DeleteLocationSecretRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const DeleteLocationSecretRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const DeleteLocationSecretRequest& from) { - DeleteLocationSecretRequest::MergeImpl(*this, from); + NewRobotPartResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const NewRobotPartResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const NewRobotPartResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(DeleteLocationSecretRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(NewRobotPartResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.DeleteLocationSecretRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.NewRobotPartResponse"; } protected: - explicit DeleteLocationSecretRequest(::google::protobuf::Arena* arena); - DeleteLocationSecretRequest(::google::protobuf::Arena* arena, const DeleteLocationSecretRequest& from); + explicit NewRobotPartResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kLocationIdFieldNumber = 1, - kSecretIdFieldNumber = 2, + kPartIdFieldNumber = 1, }; - // string location_id = 1 [json_name = "locationId"]; - void clear_location_id() ; - const std::string& location_id() const; - template - void set_location_id(Arg_&& arg, Args_... args); - std::string* mutable_location_id(); - PROTOBUF_NODISCARD std::string* release_location_id(); - void set_allocated_location_id(std::string* value); - + // string part_id = 1 [json_name = "partId"]; + void clear_part_id(); + const std::string& part_id() const; + template + void set_part_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_part_id(); + PROTOBUF_NODISCARD std::string* release_part_id(); + void set_allocated_part_id(std::string* part_id); private: - const std::string& _internal_location_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_location_id( - const std::string& value); - std::string* _internal_mutable_location_id(); - + const std::string& _internal_part_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_part_id(const std::string& value); + std::string* _internal_mutable_part_id(); public: - // string secret_id = 2 [json_name = "secretId"]; - void clear_secret_id() ; - const std::string& secret_id() const; - template - void set_secret_id(Arg_&& arg, Args_... args); - std::string* mutable_secret_id(); - PROTOBUF_NODISCARD std::string* release_secret_id(); - void set_allocated_secret_id(std::string* value); - - private: - const std::string& _internal_secret_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_secret_id( - const std::string& value); - std::string* _internal_mutable_secret_id(); - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.DeleteLocationSecretRequest) + // @@protoc_insertion_point(class_scope:viam.app.v1.NewRobotPartResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 68, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr location_id_; - ::google::protobuf::internal::ArenaStringPtr secret_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr part_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class DeleteLocationResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.DeleteLocationResponse) */ { +class DeleteRobotPartRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.DeleteRobotPartRequest) */ { public: - inline DeleteLocationResponse() : DeleteLocationResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR DeleteLocationResponse(::google::protobuf::internal::ConstantInitialized); + inline DeleteRobotPartRequest() : DeleteRobotPartRequest(nullptr) {} + ~DeleteRobotPartRequest() override; + explicit PROTOBUF_CONSTEXPR DeleteRobotPartRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline DeleteLocationResponse(const DeleteLocationResponse& from) - : DeleteLocationResponse(nullptr, from) {} - DeleteLocationResponse(DeleteLocationResponse&& from) noexcept - : DeleteLocationResponse() { + DeleteRobotPartRequest(const DeleteRobotPartRequest& from); + DeleteRobotPartRequest(DeleteRobotPartRequest&& from) noexcept + : DeleteRobotPartRequest() { *this = ::std::move(from); } - inline DeleteLocationResponse& operator=(const DeleteLocationResponse& from) { + inline DeleteRobotPartRequest& operator=(const DeleteRobotPartRequest& from) { CopyFrom(from); return *this; } - inline DeleteLocationResponse& operator=(DeleteLocationResponse&& from) noexcept { + inline DeleteRobotPartRequest& operator=(DeleteRobotPartRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -17536,134 +16218,145 @@ class DeleteLocationResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const DeleteLocationResponse& default_instance() { + static const DeleteRobotPartRequest& default_instance() { return *internal_default_instance(); } - static inline const DeleteLocationResponse* internal_default_instance() { - return reinterpret_cast( - &_DeleteLocationResponse_default_instance_); + static inline const DeleteRobotPartRequest* internal_default_instance() { + return reinterpret_cast( + &_DeleteRobotPartRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 57; + 91; - friend void swap(DeleteLocationResponse& a, DeleteLocationResponse& b) { + friend void swap(DeleteRobotPartRequest& a, DeleteRobotPartRequest& b) { a.Swap(&b); } - inline void Swap(DeleteLocationResponse* other) { + inline void Swap(DeleteRobotPartRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(DeleteLocationResponse* other) { + void UnsafeArenaSwap(DeleteRobotPartRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - DeleteLocationResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const DeleteLocationResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const DeleteLocationResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + DeleteRobotPartRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DeleteRobotPartRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const DeleteRobotPartRequest& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.DeleteLocationResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DeleteRobotPartRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.DeleteRobotPartRequest"; } protected: - explicit DeleteLocationResponse(::google::protobuf::Arena* arena); - DeleteLocationResponse(::google::protobuf::Arena* arena, const DeleteLocationResponse& from); + explicit DeleteRobotPartRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.app.v1.DeleteLocationResponse) + enum : int { + kPartIdFieldNumber = 1, + }; + // string part_id = 1 [json_name = "partId"]; + void clear_part_id(); + const std::string& part_id() const; + template + void set_part_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_part_id(); + PROTOBUF_NODISCARD std::string* release_part_id(); + void set_allocated_part_id(std::string* part_id); + private: + const std::string& _internal_part_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_part_id(const std::string& value); + std::string* _internal_mutable_part_id(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.DeleteRobotPartRequest) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr part_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class DeleteLocationRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.DeleteLocationRequest) */ { +class GetRobotAPIKeysRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetRobotAPIKeysRequest) */ { public: - inline DeleteLocationRequest() : DeleteLocationRequest(nullptr) {} - ~DeleteLocationRequest() override; - template - explicit PROTOBUF_CONSTEXPR DeleteLocationRequest(::google::protobuf::internal::ConstantInitialized); + inline GetRobotAPIKeysRequest() : GetRobotAPIKeysRequest(nullptr) {} + ~GetRobotAPIKeysRequest() override; + explicit PROTOBUF_CONSTEXPR GetRobotAPIKeysRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline DeleteLocationRequest(const DeleteLocationRequest& from) - : DeleteLocationRequest(nullptr, from) {} - DeleteLocationRequest(DeleteLocationRequest&& from) noexcept - : DeleteLocationRequest() { + GetRobotAPIKeysRequest(const GetRobotAPIKeysRequest& from); + GetRobotAPIKeysRequest(GetRobotAPIKeysRequest&& from) noexcept + : GetRobotAPIKeysRequest() { *this = ::std::move(from); } - inline DeleteLocationRequest& operator=(const DeleteLocationRequest& from) { + inline GetRobotAPIKeysRequest& operator=(const GetRobotAPIKeysRequest& from) { CopyFrom(from); return *this; } - inline DeleteLocationRequest& operator=(DeleteLocationRequest&& from) noexcept { + inline GetRobotAPIKeysRequest& operator=(GetRobotAPIKeysRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -17673,177 +16366,145 @@ class DeleteLocationRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const DeleteLocationRequest& default_instance() { + static const GetRobotAPIKeysRequest& default_instance() { return *internal_default_instance(); } - static inline const DeleteLocationRequest* internal_default_instance() { - return reinterpret_cast( - &_DeleteLocationRequest_default_instance_); + static inline const GetRobotAPIKeysRequest* internal_default_instance() { + return reinterpret_cast( + &_GetRobotAPIKeysRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 56; + 92; - friend void swap(DeleteLocationRequest& a, DeleteLocationRequest& b) { + friend void swap(GetRobotAPIKeysRequest& a, GetRobotAPIKeysRequest& b) { a.Swap(&b); } - inline void Swap(DeleteLocationRequest* other) { + inline void Swap(GetRobotAPIKeysRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(DeleteLocationRequest* other) { + void UnsafeArenaSwap(GetRobotAPIKeysRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - DeleteLocationRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const DeleteLocationRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const DeleteLocationRequest& from) { - DeleteLocationRequest::MergeImpl(*this, from); + GetRobotAPIKeysRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetRobotAPIKeysRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetRobotAPIKeysRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(DeleteLocationRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetRobotAPIKeysRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.DeleteLocationRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.GetRobotAPIKeysRequest"; } protected: - explicit DeleteLocationRequest(::google::protobuf::Arena* arena); - DeleteLocationRequest(::google::protobuf::Arena* arena, const DeleteLocationRequest& from); + explicit GetRobotAPIKeysRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kLocationIdFieldNumber = 1, + kRobotIdFieldNumber = 1, }; - // string location_id = 1 [json_name = "locationId"]; - void clear_location_id() ; - const std::string& location_id() const; - template - void set_location_id(Arg_&& arg, Args_... args); - std::string* mutable_location_id(); - PROTOBUF_NODISCARD std::string* release_location_id(); - void set_allocated_location_id(std::string* value); - + // string robot_id = 1 [json_name = "robotId"]; + void clear_robot_id(); + const std::string& robot_id() const; + template + void set_robot_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_robot_id(); + PROTOBUF_NODISCARD std::string* release_robot_id(); + void set_allocated_robot_id(std::string* robot_id); private: - const std::string& _internal_location_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_location_id( - const std::string& value); - std::string* _internal_mutable_location_id(); - + const std::string& _internal_robot_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_robot_id(const std::string& value); + std::string* _internal_mutable_robot_id(); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.DeleteLocationRequest) + + // @@protoc_insertion_point(class_scope:viam.app.v1.GetRobotAPIKeysRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 53, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr location_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr robot_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class DeleteKeyResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.DeleteKeyResponse) */ { +class APIKey final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.APIKey) */ { public: - inline DeleteKeyResponse() : DeleteKeyResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR DeleteKeyResponse(::google::protobuf::internal::ConstantInitialized); + inline APIKey() : APIKey(nullptr) {} + ~APIKey() override; + explicit PROTOBUF_CONSTEXPR APIKey(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline DeleteKeyResponse(const DeleteKeyResponse& from) - : DeleteKeyResponse(nullptr, from) {} - DeleteKeyResponse(DeleteKeyResponse&& from) noexcept - : DeleteKeyResponse() { + APIKey(const APIKey& from); + APIKey(APIKey&& from) noexcept + : APIKey() { *this = ::std::move(from); } - inline DeleteKeyResponse& operator=(const DeleteKeyResponse& from) { + inline APIKey& operator=(const APIKey& from) { CopyFrom(from); return *this; } - inline DeleteKeyResponse& operator=(DeleteKeyResponse&& from) noexcept { + inline APIKey& operator=(APIKey&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -17853,134 +16514,197 @@ class DeleteKeyResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const DeleteKeyResponse& default_instance() { + static const APIKey& default_instance() { return *internal_default_instance(); } - static inline const DeleteKeyResponse* internal_default_instance() { - return reinterpret_cast( - &_DeleteKeyResponse_default_instance_); + static inline const APIKey* internal_default_instance() { + return reinterpret_cast( + &_APIKey_default_instance_); } static constexpr int kIndexInFileMessages = - 183; + 93; - friend void swap(DeleteKeyResponse& a, DeleteKeyResponse& b) { + friend void swap(APIKey& a, APIKey& b) { a.Swap(&b); } - inline void Swap(DeleteKeyResponse* other) { + inline void Swap(APIKey* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(DeleteKeyResponse* other) { + void UnsafeArenaSwap(APIKey* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - DeleteKeyResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const DeleteKeyResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const DeleteKeyResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + APIKey* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const APIKey& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const APIKey& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.DeleteKeyResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(APIKey* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.APIKey"; } protected: - explicit DeleteKeyResponse(::google::protobuf::Arena* arena); - DeleteKeyResponse(::google::protobuf::Arena* arena, const DeleteKeyResponse& from); + explicit APIKey(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.app.v1.DeleteKeyResponse) + enum : int { + kIdFieldNumber = 1, + kKeyFieldNumber = 2, + kNameFieldNumber = 3, + kCreatedOnFieldNumber = 4, + }; + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + + // string key = 2 [json_name = "key"]; + void clear_key(); + const std::string& key() const; + template + void set_key(ArgT0&& arg0, ArgT... args); + std::string* mutable_key(); + PROTOBUF_NODISCARD std::string* release_key(); + void set_allocated_key(std::string* key); + private: + const std::string& _internal_key() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_key(const std::string& value); + std::string* _internal_mutable_key(); + public: + + // string name = 3 [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.Timestamp created_on = 4 [json_name = "createdOn"]; + bool has_created_on() const; + private: + bool _internal_has_created_on() const; + public: + void clear_created_on(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& created_on() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_created_on(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_created_on(); + void set_allocated_created_on(::PROTOBUF_NAMESPACE_ID::Timestamp* created_on); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_created_on() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_created_on(); + public: + void unsafe_arena_set_allocated_created_on( + ::PROTOBUF_NAMESPACE_ID::Timestamp* created_on); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_created_on(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.APIKey) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr key_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* created_on_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class DeleteKeyRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.DeleteKeyRequest) */ { +class GetRobotAPIKeysResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetRobotAPIKeysResponse) */ { public: - inline DeleteKeyRequest() : DeleteKeyRequest(nullptr) {} - ~DeleteKeyRequest() override; - template - explicit PROTOBUF_CONSTEXPR DeleteKeyRequest(::google::protobuf::internal::ConstantInitialized); + inline GetRobotAPIKeysResponse() : GetRobotAPIKeysResponse(nullptr) {} + ~GetRobotAPIKeysResponse() override; + explicit PROTOBUF_CONSTEXPR GetRobotAPIKeysResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline DeleteKeyRequest(const DeleteKeyRequest& from) - : DeleteKeyRequest(nullptr, from) {} - DeleteKeyRequest(DeleteKeyRequest&& from) noexcept - : DeleteKeyRequest() { + GetRobotAPIKeysResponse(const GetRobotAPIKeysResponse& from); + GetRobotAPIKeysResponse(GetRobotAPIKeysResponse&& from) noexcept + : GetRobotAPIKeysResponse() { *this = ::std::move(from); } - inline DeleteKeyRequest& operator=(const DeleteKeyRequest& from) { + inline GetRobotAPIKeysResponse& operator=(const GetRobotAPIKeysResponse& from) { CopyFrom(from); return *this; } - inline DeleteKeyRequest& operator=(DeleteKeyRequest&& from) noexcept { + inline GetRobotAPIKeysResponse& operator=(GetRobotAPIKeysResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -17990,177 +16714,148 @@ class DeleteKeyRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const DeleteKeyRequest& default_instance() { + static const GetRobotAPIKeysResponse& default_instance() { return *internal_default_instance(); } - static inline const DeleteKeyRequest* internal_default_instance() { - return reinterpret_cast( - &_DeleteKeyRequest_default_instance_); + static inline const GetRobotAPIKeysResponse* internal_default_instance() { + return reinterpret_cast( + &_GetRobotAPIKeysResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 182; + 94; - friend void swap(DeleteKeyRequest& a, DeleteKeyRequest& b) { + friend void swap(GetRobotAPIKeysResponse& a, GetRobotAPIKeysResponse& b) { a.Swap(&b); } - inline void Swap(DeleteKeyRequest* other) { + inline void Swap(GetRobotAPIKeysResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(DeleteKeyRequest* other) { + void UnsafeArenaSwap(GetRobotAPIKeysResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - DeleteKeyRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const DeleteKeyRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const DeleteKeyRequest& from) { - DeleteKeyRequest::MergeImpl(*this, from); + GetRobotAPIKeysResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetRobotAPIKeysResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetRobotAPIKeysResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(DeleteKeyRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetRobotAPIKeysResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.DeleteKeyRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.GetRobotAPIKeysResponse"; } protected: - explicit DeleteKeyRequest(::google::protobuf::Arena* arena); - DeleteKeyRequest(::google::protobuf::Arena* arena, const DeleteKeyRequest& from); + explicit GetRobotAPIKeysResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kIdFieldNumber = 1, + kApiKeysFieldNumber = 1, }; - // string id = 1 [json_name = "id"]; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - + // repeated .viam.app.v1.APIKeyWithAuthorizations api_keys = 1 [json_name = "apiKeys"]; + int api_keys_size() const; private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); - + int _internal_api_keys_size() const; public: - // @@protoc_insertion_point(class_scope:viam.app.v1.DeleteKeyRequest) + void clear_api_keys(); + ::viam::app::v1::APIKeyWithAuthorizations* mutable_api_keys(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::APIKeyWithAuthorizations >* + mutable_api_keys(); + private: + const ::viam::app::v1::APIKeyWithAuthorizations& _internal_api_keys(int index) const; + ::viam::app::v1::APIKeyWithAuthorizations* _internal_add_api_keys(); + public: + const ::viam::app::v1::APIKeyWithAuthorizations& api_keys(int index) const; + ::viam::app::v1::APIKeyWithAuthorizations* add_api_keys(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::APIKeyWithAuthorizations >& + api_keys() const; + + // @@protoc_insertion_point(class_scope:viam.app.v1.GetRobotAPIKeysResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 39, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::APIKeyWithAuthorizations > api_keys_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class DeleteFragmentResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.DeleteFragmentResponse) */ { +class DeleteRobotPartResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.DeleteRobotPartResponse) */ { public: - inline DeleteFragmentResponse() : DeleteFragmentResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR DeleteFragmentResponse(::google::protobuf::internal::ConstantInitialized); + inline DeleteRobotPartResponse() : DeleteRobotPartResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR DeleteRobotPartResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline DeleteFragmentResponse(const DeleteFragmentResponse& from) - : DeleteFragmentResponse(nullptr, from) {} - DeleteFragmentResponse(DeleteFragmentResponse&& from) noexcept - : DeleteFragmentResponse() { + DeleteRobotPartResponse(const DeleteRobotPartResponse& from); + DeleteRobotPartResponse(DeleteRobotPartResponse&& from) noexcept + : DeleteRobotPartResponse() { *this = ::std::move(from); } - inline DeleteFragmentResponse& operator=(const DeleteFragmentResponse& from) { + inline DeleteRobotPartResponse& operator=(const DeleteRobotPartResponse& from) { CopyFrom(from); return *this; } - inline DeleteFragmentResponse& operator=(DeleteFragmentResponse&& from) noexcept { + inline DeleteRobotPartResponse& operator=(DeleteRobotPartResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -18170,134 +16865,114 @@ class DeleteFragmentResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const DeleteFragmentResponse& default_instance() { + static const DeleteRobotPartResponse& default_instance() { return *internal_default_instance(); } - static inline const DeleteFragmentResponse* internal_default_instance() { - return reinterpret_cast( - &_DeleteFragmentResponse_default_instance_); + static inline const DeleteRobotPartResponse* internal_default_instance() { + return reinterpret_cast( + &_DeleteRobotPartResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 109; + 95; - friend void swap(DeleteFragmentResponse& a, DeleteFragmentResponse& b) { + friend void swap(DeleteRobotPartResponse& a, DeleteRobotPartResponse& b) { a.Swap(&b); } - inline void Swap(DeleteFragmentResponse* other) { + inline void Swap(DeleteRobotPartResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(DeleteFragmentResponse* other) { + void UnsafeArenaSwap(DeleteRobotPartResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - DeleteFragmentResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + DeleteRobotPartResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const DeleteFragmentResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const DeleteRobotPartResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const DeleteFragmentResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const DeleteRobotPartResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } public: private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.DeleteFragmentResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.DeleteRobotPartResponse"; } protected: - explicit DeleteFragmentResponse(::google::protobuf::Arena* arena); - DeleteFragmentResponse(::google::protobuf::Arena* arena, const DeleteFragmentResponse& from); + explicit DeleteRobotPartResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.app.v1.DeleteFragmentResponse) + // @@protoc_insertion_point(class_scope:viam.app.v1.DeleteRobotPartResponse) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class DeleteFragmentRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.DeleteFragmentRequest) */ { +class Fragment final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.Fragment) */ { public: - inline DeleteFragmentRequest() : DeleteFragmentRequest(nullptr) {} - ~DeleteFragmentRequest() override; - template - explicit PROTOBUF_CONSTEXPR DeleteFragmentRequest(::google::protobuf::internal::ConstantInitialized); + inline Fragment() : Fragment(nullptr) {} + ~Fragment() override; + explicit PROTOBUF_CONSTEXPR Fragment(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline DeleteFragmentRequest(const DeleteFragmentRequest& from) - : DeleteFragmentRequest(nullptr, from) {} - DeleteFragmentRequest(DeleteFragmentRequest&& from) noexcept - : DeleteFragmentRequest() { + Fragment(const Fragment& from); + Fragment(Fragment&& from) noexcept + : Fragment() { *this = ::std::move(from); } - inline DeleteFragmentRequest& operator=(const DeleteFragmentRequest& from) { + inline Fragment& operator=(const Fragment& from) { CopyFrom(from); return *this; } - inline DeleteFragmentRequest& operator=(DeleteFragmentRequest&& from) noexcept { + inline Fragment& operator=(Fragment&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -18307,99 +16982,88 @@ class DeleteFragmentRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const DeleteFragmentRequest& default_instance() { + static const Fragment& default_instance() { return *internal_default_instance(); } - static inline const DeleteFragmentRequest* internal_default_instance() { - return reinterpret_cast( - &_DeleteFragmentRequest_default_instance_); + static inline const Fragment* internal_default_instance() { + return reinterpret_cast( + &_Fragment_default_instance_); } static constexpr int kIndexInFileMessages = - 108; + 96; - friend void swap(DeleteFragmentRequest& a, DeleteFragmentRequest& b) { + friend void swap(Fragment& a, Fragment& b) { a.Swap(&b); } - inline void Swap(DeleteFragmentRequest* other) { + inline void Swap(Fragment* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(DeleteFragmentRequest* other) { + void UnsafeArenaSwap(Fragment* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - DeleteFragmentRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const DeleteFragmentRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const DeleteFragmentRequest& from) { - DeleteFragmentRequest::MergeImpl(*this, from); + Fragment* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Fragment& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Fragment& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(DeleteFragmentRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(Fragment* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.DeleteFragmentRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.Fragment"; } protected: - explicit DeleteFragmentRequest(::google::protobuf::Arena* arena); - DeleteFragmentRequest(::google::protobuf::Arena* arena, const DeleteFragmentRequest& from); + explicit Fragment(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -18407,78 +17071,219 @@ class DeleteFragmentRequest final : enum : int { kIdFieldNumber = 1, + kNameFieldNumber = 2, + kOrganizationOwnerFieldNumber = 4, + kOrganizationNameFieldNumber = 7, + kFragmentFieldNumber = 3, + kCreatedOnFieldNumber = 6, + kLastUpdatedFieldNumber = 13, + kPublicFieldNumber = 5, + kOnlyUsedByOwnerFieldNumber = 11, + kRobotPartCountFieldNumber = 9, + kOrganizationCountFieldNumber = 10, + kVisibilityFieldNumber = 12, }; - // string id = 1 [json_name = "id"]; - void clear_id() ; + // string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""]; + void clear_id(); const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); + template + void set_id(ArgT0&& arg0, ArgT... args); std::string* mutable_id(); PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - + void set_allocated_id(std::string* id); private: const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); std::string* _internal_mutable_id(); + public: + // string name = 2 [json_name = "name", (.tagger.v1.tags) = "bson:\"name\" json:\"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: - // @@protoc_insertion_point(class_scope:viam.app.v1.DeleteFragmentRequest) + + // string organization_owner = 4 [json_name = "organizationOwner", (.tagger.v1.tags) = "bson:\"organization_owner\" json:\"owner\""]; + void clear_organization_owner(); + const std::string& organization_owner() const; + template + void set_organization_owner(ArgT0&& arg0, ArgT... args); + std::string* mutable_organization_owner(); + PROTOBUF_NODISCARD std::string* release_organization_owner(); + void set_allocated_organization_owner(std::string* organization_owner); + private: + const std::string& _internal_organization_owner() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_owner(const std::string& value); + std::string* _internal_mutable_organization_owner(); + public: + + // string organization_name = 7 [json_name = "organizationName"]; + void clear_organization_name(); + const std::string& organization_name() const; + template + void set_organization_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_organization_name(); + PROTOBUF_NODISCARD std::string* release_organization_name(); + void set_allocated_organization_name(std::string* organization_name); + private: + const std::string& _internal_organization_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_name(const std::string& value); + std::string* _internal_mutable_organization_name(); + public: + + // .google.protobuf.Struct fragment = 3 [json_name = "fragment", (.tagger.v1.tags) = "bson:\"fragment\" json:\"fragment\""]; + bool has_fragment() const; + private: + bool _internal_has_fragment() const; + public: + void clear_fragment(); + const ::PROTOBUF_NAMESPACE_ID::Struct& fragment() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_fragment(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_fragment(); + void set_allocated_fragment(::PROTOBUF_NAMESPACE_ID::Struct* fragment); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_fragment() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_fragment(); + public: + void unsafe_arena_set_allocated_fragment( + ::PROTOBUF_NAMESPACE_ID::Struct* fragment); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_fragment(); + + // .google.protobuf.Timestamp created_on = 6 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\""]; + bool has_created_on() const; + private: + bool _internal_has_created_on() const; + public: + void clear_created_on(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& created_on() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_created_on(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_created_on(); + void set_allocated_created_on(::PROTOBUF_NAMESPACE_ID::Timestamp* created_on); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_created_on() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_created_on(); + public: + void unsafe_arena_set_allocated_created_on( + ::PROTOBUF_NAMESPACE_ID::Timestamp* created_on); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_created_on(); + + // .google.protobuf.Timestamp last_updated = 13 [json_name = "lastUpdated", (.tagger.v1.tags) = "bson:\"last_updated_at\""]; + bool has_last_updated() const; + private: + bool _internal_has_last_updated() const; + public: + void clear_last_updated(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& last_updated() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_last_updated(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_last_updated(); + void set_allocated_last_updated(::PROTOBUF_NAMESPACE_ID::Timestamp* last_updated); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_last_updated() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_last_updated(); + public: + void unsafe_arena_set_allocated_last_updated( + ::PROTOBUF_NAMESPACE_ID::Timestamp* last_updated); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_last_updated(); + + // bool public = 5 [json_name = "public", (.tagger.v1.tags) = "bson:\"public\" json:\"public\""]; + void clear_public_(); + bool public_() const; + void set_public_(bool value); + private: + bool _internal_public_() const; + void _internal_set_public_(bool value); + public: + + // bool only_used_by_owner = 11 [json_name = "onlyUsedByOwner"]; + void clear_only_used_by_owner(); + bool only_used_by_owner() const; + void set_only_used_by_owner(bool value); + private: + bool _internal_only_used_by_owner() const; + void _internal_set_only_used_by_owner(bool value); + public: + + // int32 robot_part_count = 9 [json_name = "robotPartCount"]; + void clear_robot_part_count(); + int32_t robot_part_count() const; + void set_robot_part_count(int32_t value); + private: + int32_t _internal_robot_part_count() const; + void _internal_set_robot_part_count(int32_t value); + public: + + // int32 organization_count = 10 [json_name = "organizationCount"]; + void clear_organization_count(); + int32_t organization_count() const; + void set_organization_count(int32_t value); + private: + int32_t _internal_organization_count() const; + void _internal_set_organization_count(int32_t value); + public: + + // .viam.app.v1.FragmentVisibility visibility = 12 [json_name = "visibility"]; + void clear_visibility(); + ::viam::app::v1::FragmentVisibility visibility() const; + void set_visibility(::viam::app::v1::FragmentVisibility value); + private: + ::viam::app::v1::FragmentVisibility _internal_visibility() const; + void _internal_set_visibility(::viam::app::v1::FragmentVisibility value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.Fragment) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 44, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr organization_owner_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr organization_name_; + ::PROTOBUF_NAMESPACE_ID::Struct* fragment_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* created_on_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* last_updated_; + bool public__; + bool only_used_by_owner_; + int32_t robot_part_count_; + int32_t organization_count_; + int visibility_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class CreateRobotPartSecretRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.CreateRobotPartSecretRequest) */ { +class FragmentHistoryEntry final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.FragmentHistoryEntry) */ { public: - inline CreateRobotPartSecretRequest() : CreateRobotPartSecretRequest(nullptr) {} - ~CreateRobotPartSecretRequest() override; - template - explicit PROTOBUF_CONSTEXPR CreateRobotPartSecretRequest(::google::protobuf::internal::ConstantInitialized); + inline FragmentHistoryEntry() : FragmentHistoryEntry(nullptr) {} + ~FragmentHistoryEntry() override; + explicit PROTOBUF_CONSTEXPR FragmentHistoryEntry(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline CreateRobotPartSecretRequest(const CreateRobotPartSecretRequest& from) - : CreateRobotPartSecretRequest(nullptr, from) {} - CreateRobotPartSecretRequest(CreateRobotPartSecretRequest&& from) noexcept - : CreateRobotPartSecretRequest() { + FragmentHistoryEntry(const FragmentHistoryEntry& from); + FragmentHistoryEntry(FragmentHistoryEntry&& from) noexcept + : FragmentHistoryEntry() { *this = ::std::move(from); } - inline CreateRobotPartSecretRequest& operator=(const CreateRobotPartSecretRequest& from) { + inline FragmentHistoryEntry& operator=(const FragmentHistoryEntry& from) { CopyFrom(from); return *this; } - inline CreateRobotPartSecretRequest& operator=(CreateRobotPartSecretRequest&& from) noexcept { + inline FragmentHistoryEntry& operator=(FragmentHistoryEntry&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -18488,177 +17293,241 @@ class CreateRobotPartSecretRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CreateRobotPartSecretRequest& default_instance() { + static const FragmentHistoryEntry& default_instance() { return *internal_default_instance(); } - static inline const CreateRobotPartSecretRequest* internal_default_instance() { - return reinterpret_cast( - &_CreateRobotPartSecretRequest_default_instance_); + static inline const FragmentHistoryEntry* internal_default_instance() { + return reinterpret_cast( + &_FragmentHistoryEntry_default_instance_); } static constexpr int kIndexInFileMessages = - 126; + 97; - friend void swap(CreateRobotPartSecretRequest& a, CreateRobotPartSecretRequest& b) { + friend void swap(FragmentHistoryEntry& a, FragmentHistoryEntry& b) { a.Swap(&b); } - inline void Swap(CreateRobotPartSecretRequest* other) { + inline void Swap(FragmentHistoryEntry* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CreateRobotPartSecretRequest* other) { + void UnsafeArenaSwap(FragmentHistoryEntry* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CreateRobotPartSecretRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const CreateRobotPartSecretRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CreateRobotPartSecretRequest& from) { - CreateRobotPartSecretRequest::MergeImpl(*this, from); + FragmentHistoryEntry* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const FragmentHistoryEntry& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const FragmentHistoryEntry& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(CreateRobotPartSecretRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(FragmentHistoryEntry* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.CreateRobotPartSecretRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.FragmentHistoryEntry"; } protected: - explicit CreateRobotPartSecretRequest(::google::protobuf::Arena* arena); - CreateRobotPartSecretRequest(::google::protobuf::Arena* arena, const CreateRobotPartSecretRequest& from); + explicit FragmentHistoryEntry(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kPartIdFieldNumber = 1, + kFragmentFieldNumber = 1, + kRevisionFieldNumber = 5, + kEditedOnFieldNumber = 2, + kOldFieldNumber = 3, + kEditedByFieldNumber = 4, + kConfigFieldNumber = 6, }; - // string part_id = 1 [json_name = "partId"]; - void clear_part_id() ; - const std::string& part_id() const; - template - void set_part_id(Arg_&& arg, Args_... args); - std::string* mutable_part_id(); - PROTOBUF_NODISCARD std::string* release_part_id(); - void set_allocated_part_id(std::string* value); + // string fragment = 1 [json_name = "fragment", (.tagger.v1.tags) = "bson:\"fragment\" json:\"fragment\""]; + void clear_fragment(); + const std::string& fragment() const; + template + void set_fragment(ArgT0&& arg0, ArgT... args); + std::string* mutable_fragment(); + PROTOBUF_NODISCARD std::string* release_fragment(); + void set_allocated_fragment(std::string* fragment); + private: + const std::string& _internal_fragment() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_fragment(const std::string& value); + std::string* _internal_mutable_fragment(); + public: + // string revision = 5 [json_name = "revision", (.tagger.v1.tags) = "bson:\"revision\" json:\"revision\""]; + void clear_revision(); + const std::string& revision() const; + template + void set_revision(ArgT0&& arg0, ArgT... args); + std::string* mutable_revision(); + PROTOBUF_NODISCARD std::string* release_revision(); + void set_allocated_revision(std::string* revision); private: - const std::string& _internal_part_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_part_id( - const std::string& value); - std::string* _internal_mutable_part_id(); + const std::string& _internal_revision() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_revision(const std::string& value); + std::string* _internal_mutable_revision(); + public: + // .google.protobuf.Timestamp edited_on = 2 [json_name = "editedOn", (.tagger.v1.tags) = "bson:\"edited_on\" json:\"edited_on\""]; + bool has_edited_on() const; + private: + bool _internal_has_edited_on() const; public: - // @@protoc_insertion_point(class_scope:viam.app.v1.CreateRobotPartSecretRequest) + void clear_edited_on(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& edited_on() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_edited_on(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_edited_on(); + void set_allocated_edited_on(::PROTOBUF_NAMESPACE_ID::Timestamp* edited_on); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_edited_on() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_edited_on(); + public: + void unsafe_arena_set_allocated_edited_on( + ::PROTOBUF_NAMESPACE_ID::Timestamp* edited_on); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_edited_on(); + + // .viam.app.v1.Fragment old = 3 [json_name = "old", (.tagger.v1.tags) = "bson:\"old\" json:\"old\""]; + bool has_old() const; + private: + bool _internal_has_old() const; + public: + void clear_old(); + const ::viam::app::v1::Fragment& old() const; + PROTOBUF_NODISCARD ::viam::app::v1::Fragment* release_old(); + ::viam::app::v1::Fragment* mutable_old(); + void set_allocated_old(::viam::app::v1::Fragment* old); + private: + const ::viam::app::v1::Fragment& _internal_old() const; + ::viam::app::v1::Fragment* _internal_mutable_old(); + public: + void unsafe_arena_set_allocated_old( + ::viam::app::v1::Fragment* old); + ::viam::app::v1::Fragment* unsafe_arena_release_old(); + + // .viam.app.v1.AuthenticatorInfo edited_by = 4 [json_name = "editedBy", (.tagger.v1.tags) = "bson:\"edited_by\" json:\"edited_by\""]; + bool has_edited_by() const; + private: + bool _internal_has_edited_by() const; + public: + void clear_edited_by(); + const ::viam::app::v1::AuthenticatorInfo& edited_by() const; + PROTOBUF_NODISCARD ::viam::app::v1::AuthenticatorInfo* release_edited_by(); + ::viam::app::v1::AuthenticatorInfo* mutable_edited_by(); + void set_allocated_edited_by(::viam::app::v1::AuthenticatorInfo* edited_by); + private: + const ::viam::app::v1::AuthenticatorInfo& _internal_edited_by() const; + ::viam::app::v1::AuthenticatorInfo* _internal_mutable_edited_by(); + public: + void unsafe_arena_set_allocated_edited_by( + ::viam::app::v1::AuthenticatorInfo* edited_by); + ::viam::app::v1::AuthenticatorInfo* unsafe_arena_release_edited_by(); + + // .google.protobuf.Struct config = 6 [json_name = "config", (.tagger.v1.tags) = "bson:\"config\" json:\"config\""]; + bool has_config() const; + private: + bool _internal_has_config() const; + public: + void clear_config(); + const ::PROTOBUF_NAMESPACE_ID::Struct& config() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_config(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_config(); + void set_allocated_config(::PROTOBUF_NAMESPACE_ID::Struct* config); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_config() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_config(); + public: + void unsafe_arena_set_allocated_config( + ::PROTOBUF_NAMESPACE_ID::Struct* config); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_config(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.FragmentHistoryEntry) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 56, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr part_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr fragment_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr revision_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* edited_on_; + ::viam::app::v1::Fragment* old_; + ::viam::app::v1::AuthenticatorInfo* edited_by_; + ::PROTOBUF_NAMESPACE_ID::Struct* config_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class CreateRegistryItemResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.CreateRegistryItemResponse) */ { +class FragmentError final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.FragmentError) */ { public: - inline CreateRegistryItemResponse() : CreateRegistryItemResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR CreateRegistryItemResponse(::google::protobuf::internal::ConstantInitialized); + inline FragmentError() : FragmentError(nullptr) {} + ~FragmentError() override; + explicit PROTOBUF_CONSTEXPR FragmentError(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline CreateRegistryItemResponse(const CreateRegistryItemResponse& from) - : CreateRegistryItemResponse(nullptr, from) {} - CreateRegistryItemResponse(CreateRegistryItemResponse&& from) noexcept - : CreateRegistryItemResponse() { + FragmentError(const FragmentError& from); + FragmentError(FragmentError&& from) noexcept + : FragmentError() { *this = ::std::move(from); } - inline CreateRegistryItemResponse& operator=(const CreateRegistryItemResponse& from) { + inline FragmentError& operator=(const FragmentError& from) { CopyFrom(from); return *this; } - inline CreateRegistryItemResponse& operator=(CreateRegistryItemResponse&& from) noexcept { + inline FragmentError& operator=(FragmentError&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -18668,134 +17537,172 @@ class CreateRegistryItemResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CreateRegistryItemResponse& default_instance() { + static const FragmentError& default_instance() { return *internal_default_instance(); } - static inline const CreateRegistryItemResponse* internal_default_instance() { - return reinterpret_cast( - &_CreateRegistryItemResponse_default_instance_); + static inline const FragmentError* internal_default_instance() { + return reinterpret_cast( + &_FragmentError_default_instance_); } static constexpr int kIndexInFileMessages = - 151; + 98; - friend void swap(CreateRegistryItemResponse& a, CreateRegistryItemResponse& b) { + friend void swap(FragmentError& a, FragmentError& b) { a.Swap(&b); } - inline void Swap(CreateRegistryItemResponse* other) { + inline void Swap(FragmentError* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CreateRegistryItemResponse* other) { + void UnsafeArenaSwap(FragmentError* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CreateRegistryItemResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const CreateRegistryItemResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const CreateRegistryItemResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + FragmentError* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - public: - + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const FragmentError& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const FragmentError& from); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.CreateRegistryItemResponse"; - } - protected: - explicit CreateRegistryItemResponse(::google::protobuf::Arena* arena); - CreateRegistryItemResponse(::google::protobuf::Arena* arena, const CreateRegistryItemResponse& from); + 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; - ::google::protobuf::Metadata GetMetadata() 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(); } - // nested types ---------------------------------------------------- + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(FragmentError* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.FragmentError"; + } + protected: + explicit FragmentError(::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 ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.app.v1.CreateRegistryItemResponse) + enum : int { + kFragmentIdFieldNumber = 2, + kDetailFieldNumber = 3, + kErrorTypeFieldNumber = 1, + }; + // string fragment_id = 2 [json_name = "fragmentId"]; + void clear_fragment_id(); + const std::string& fragment_id() const; + template + void set_fragment_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_fragment_id(); + PROTOBUF_NODISCARD std::string* release_fragment_id(); + void set_allocated_fragment_id(std::string* fragment_id); + private: + const std::string& _internal_fragment_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_fragment_id(const std::string& value); + std::string* _internal_mutable_fragment_id(); + public: + + // string detail = 3 [json_name = "detail"]; + void clear_detail(); + const std::string& detail() const; + template + void set_detail(ArgT0&& arg0, ArgT... args); + std::string* mutable_detail(); + PROTOBUF_NODISCARD std::string* release_detail(); + void set_allocated_detail(std::string* detail); + private: + const std::string& _internal_detail() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_detail(const std::string& value); + std::string* _internal_mutable_detail(); + public: + + // .viam.app.v1.FragmentErrorType error_type = 1 [json_name = "errorType"]; + void clear_error_type(); + ::viam::app::v1::FragmentErrorType error_type() const; + void set_error_type(::viam::app::v1::FragmentErrorType value); + private: + ::viam::app::v1::FragmentErrorType _internal_error_type() const; + void _internal_set_error_type(::viam::app::v1::FragmentErrorType value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.FragmentError) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr fragment_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr detail_; + int error_type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class CreateRegistryItemRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.CreateRegistryItemRequest) */ { +class FragmentUsage final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.FragmentUsage) */ { public: - inline CreateRegistryItemRequest() : CreateRegistryItemRequest(nullptr) {} - ~CreateRegistryItemRequest() override; - template - explicit PROTOBUF_CONSTEXPR CreateRegistryItemRequest(::google::protobuf::internal::ConstantInitialized); + inline FragmentUsage() : FragmentUsage(nullptr) {} + ~FragmentUsage() override; + explicit PROTOBUF_CONSTEXPR FragmentUsage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline CreateRegistryItemRequest(const CreateRegistryItemRequest& from) - : CreateRegistryItemRequest(nullptr, from) {} - CreateRegistryItemRequest(CreateRegistryItemRequest&& from) noexcept - : CreateRegistryItemRequest() { + FragmentUsage(const FragmentUsage& from); + FragmentUsage(FragmentUsage&& from) noexcept + : FragmentUsage() { *this = ::std::move(from); } - inline CreateRegistryItemRequest& operator=(const CreateRegistryItemRequest& from) { + inline FragmentUsage& operator=(const FragmentUsage& from) { CopyFrom(from); return *this; } - inline CreateRegistryItemRequest& operator=(CreateRegistryItemRequest&& from) noexcept { + inline FragmentUsage& operator=(FragmentUsage&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -18805,208 +17712,178 @@ class CreateRegistryItemRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CreateRegistryItemRequest& default_instance() { + static const FragmentUsage& default_instance() { return *internal_default_instance(); } - static inline const CreateRegistryItemRequest* internal_default_instance() { - return reinterpret_cast( - &_CreateRegistryItemRequest_default_instance_); + static inline const FragmentUsage* internal_default_instance() { + return reinterpret_cast( + &_FragmentUsage_default_instance_); } static constexpr int kIndexInFileMessages = - 150; + 99; - friend void swap(CreateRegistryItemRequest& a, CreateRegistryItemRequest& b) { + friend void swap(FragmentUsage& a, FragmentUsage& b) { a.Swap(&b); } - inline void Swap(CreateRegistryItemRequest* other) { + inline void Swap(FragmentUsage* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CreateRegistryItemRequest* other) { + void UnsafeArenaSwap(FragmentUsage* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CreateRegistryItemRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const CreateRegistryItemRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CreateRegistryItemRequest& from) { - CreateRegistryItemRequest::MergeImpl(*this, from); + FragmentUsage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const FragmentUsage& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const FragmentUsage& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(CreateRegistryItemRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(FragmentUsage* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.CreateRegistryItemRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.FragmentUsage"; } protected: - explicit CreateRegistryItemRequest(::google::protobuf::Arena* arena); - CreateRegistryItemRequest(::google::protobuf::Arena* arena, const CreateRegistryItemRequest& from); + explicit FragmentUsage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kOrganizationIdFieldNumber = 1, - kNameFieldNumber = 2, - kTypeFieldNumber = 3, + kFragmentIdFieldNumber = 1, + kOrganizationsFieldNumber = 2, + kMachinesFieldNumber = 3, + kMachinesInCurrentOrgFieldNumber = 4, }; - // string organization_id = 1 [json_name = "organizationId"]; - void clear_organization_id() ; - const std::string& organization_id() const; - template - void set_organization_id(Arg_&& arg, Args_... args); - std::string* mutable_organization_id(); - PROTOBUF_NODISCARD std::string* release_organization_id(); - void set_allocated_organization_id(std::string* value); - + // string fragment_id = 1 [json_name = "fragmentId"]; + void clear_fragment_id(); + const std::string& fragment_id() const; + template + void set_fragment_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_fragment_id(); + PROTOBUF_NODISCARD std::string* release_fragment_id(); + void set_allocated_fragment_id(std::string* fragment_id); private: - const std::string& _internal_organization_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id( - const std::string& value); - std::string* _internal_mutable_organization_id(); - + const std::string& _internal_fragment_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_fragment_id(const std::string& value); + std::string* _internal_mutable_fragment_id(); public: - // string name = 2 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); + // int32 organizations = 2 [json_name = "organizations"]; + void clear_organizations(); + int32_t organizations() const; + void set_organizations(int32_t value); private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - + int32_t _internal_organizations() const; + void _internal_set_organizations(int32_t value); public: - // .viam.app.packages.v1.PackageType type = 3 [json_name = "type"]; - void clear_type() ; - ::viam::app::packages::v1::PackageType type() const; - void set_type(::viam::app::packages::v1::PackageType value); + // int32 machines = 3 [json_name = "machines"]; + void clear_machines(); + int32_t machines() const; + void set_machines(int32_t value); private: - ::viam::app::packages::v1::PackageType _internal_type() const; - void _internal_set_type(::viam::app::packages::v1::PackageType value); + int32_t _internal_machines() const; + void _internal_set_machines(int32_t value); + public: + // int32 machines_in_current_org = 4 [json_name = "machinesInCurrentOrg"]; + void clear_machines_in_current_org(); + int32_t machines_in_current_org() const; + void set_machines_in_current_org(int32_t value); + private: + int32_t _internal_machines_in_current_org() const; + void _internal_set_machines_in_current_org(int32_t value); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.CreateRegistryItemRequest) + + // @@protoc_insertion_point(class_scope:viam.app.v1.FragmentUsage) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 0, - 65, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr organization_id_; - ::google::protobuf::internal::ArenaStringPtr name_; - int type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr fragment_id_; + int32_t organizations_; + int32_t machines_; + int32_t machines_in_current_org_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class CreateOrganizationRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.CreateOrganizationRequest) */ { +class ResolvedFragment final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ResolvedFragment) */ { public: - inline CreateOrganizationRequest() : CreateOrganizationRequest(nullptr) {} - ~CreateOrganizationRequest() override; - template - explicit PROTOBUF_CONSTEXPR CreateOrganizationRequest(::google::protobuf::internal::ConstantInitialized); + inline ResolvedFragment() : ResolvedFragment(nullptr) {} + ~ResolvedFragment() override; + explicit PROTOBUF_CONSTEXPR ResolvedFragment(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline CreateOrganizationRequest(const CreateOrganizationRequest& from) - : CreateOrganizationRequest(nullptr, from) {} - CreateOrganizationRequest(CreateOrganizationRequest&& from) noexcept - : CreateOrganizationRequest() { + ResolvedFragment(const ResolvedFragment& from); + ResolvedFragment(ResolvedFragment&& from) noexcept + : ResolvedFragment() { *this = ::std::move(from); } - inline CreateOrganizationRequest& operator=(const CreateOrganizationRequest& from) { + inline ResolvedFragment& operator=(const ResolvedFragment& from) { CopyFrom(from); return *this; } - inline CreateOrganizationRequest& operator=(CreateOrganizationRequest&& from) noexcept { + inline ResolvedFragment& operator=(ResolvedFragment&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -19016,178 +17893,185 @@ class CreateOrganizationRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CreateOrganizationRequest& default_instance() { + static const ResolvedFragment& default_instance() { return *internal_default_instance(); } - static inline const CreateOrganizationRequest* internal_default_instance() { - return reinterpret_cast( - &_CreateOrganizationRequest_default_instance_); + static inline const ResolvedFragment* internal_default_instance() { + return reinterpret_cast( + &_ResolvedFragment_default_instance_); } static constexpr int kIndexInFileMessages = - 9; + 100; - friend void swap(CreateOrganizationRequest& a, CreateOrganizationRequest& b) { + friend void swap(ResolvedFragment& a, ResolvedFragment& b) { a.Swap(&b); } - inline void Swap(CreateOrganizationRequest* other) { + inline void Swap(ResolvedFragment* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CreateOrganizationRequest* other) { + void UnsafeArenaSwap(ResolvedFragment* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CreateOrganizationRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const CreateOrganizationRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CreateOrganizationRequest& from) { - CreateOrganizationRequest::MergeImpl(*this, from); + ResolvedFragment* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ResolvedFragment& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ResolvedFragment& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(CreateOrganizationRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(ResolvedFragment* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.CreateOrganizationRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.ResolvedFragment"; } protected: - explicit CreateOrganizationRequest(::google::protobuf::Arena* arena); - CreateOrganizationRequest(::google::protobuf::Arena* arena, const CreateOrganizationRequest& from); + explicit ResolvedFragment(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kNameFieldNumber = 1, + kFragmentIdFieldNumber = 1, + kResolvedConfigFieldNumber = 2, + kErrorFieldNumber = 3, }; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); + // string fragment_id = 1 [json_name = "fragmentId"]; + void clear_fragment_id(); + const std::string& fragment_id() const; + template + void set_fragment_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_fragment_id(); + PROTOBUF_NODISCARD std::string* release_fragment_id(); + void set_allocated_fragment_id(std::string* fragment_id); + private: + const std::string& _internal_fragment_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_fragment_id(const std::string& value); + std::string* _internal_mutable_fragment_id(); + public: + // .google.protobuf.Struct resolved_config = 2 [json_name = "resolvedConfig"]; + bool has_resolved_config() const; private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); + bool _internal_has_resolved_config() const; + public: + void clear_resolved_config(); + const ::PROTOBUF_NAMESPACE_ID::Struct& resolved_config() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_resolved_config(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_resolved_config(); + void set_allocated_resolved_config(::PROTOBUF_NAMESPACE_ID::Struct* resolved_config); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_resolved_config() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_resolved_config(); + public: + void unsafe_arena_set_allocated_resolved_config( + ::PROTOBUF_NAMESPACE_ID::Struct* resolved_config); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_resolved_config(); + // .viam.app.v1.FragmentError error = 3 [json_name = "error"]; + bool has_error() const; + private: + bool _internal_has_error() const; public: - // @@protoc_insertion_point(class_scope:viam.app.v1.CreateOrganizationRequest) + void clear_error(); + const ::viam::app::v1::FragmentError& error() const; + PROTOBUF_NODISCARD ::viam::app::v1::FragmentError* release_error(); + ::viam::app::v1::FragmentError* mutable_error(); + void set_allocated_error(::viam::app::v1::FragmentError* error); + private: + const ::viam::app::v1::FragmentError& _internal_error() const; + ::viam::app::v1::FragmentError* _internal_mutable_error(); + public: + void unsafe_arena_set_allocated_error( + ::viam::app::v1::FragmentError* error); + ::viam::app::v1::FragmentError* unsafe_arena_release_error(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.ResolvedFragment) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 50, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr name_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr fragment_id_; + ::PROTOBUF_NAMESPACE_ID::Struct* resolved_config_; + ::viam::app::v1::FragmentError* error_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class CreateModuleResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.CreateModuleResponse) */ { +class ListFragmentsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ListFragmentsRequest) */ { public: - inline CreateModuleResponse() : CreateModuleResponse(nullptr) {} - ~CreateModuleResponse() override; - template - explicit PROTOBUF_CONSTEXPR CreateModuleResponse(::google::protobuf::internal::ConstantInitialized); + inline ListFragmentsRequest() : ListFragmentsRequest(nullptr) {} + ~ListFragmentsRequest() override; + explicit PROTOBUF_CONSTEXPR ListFragmentsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline CreateModuleResponse(const CreateModuleResponse& from) - : CreateModuleResponse(nullptr, from) {} - CreateModuleResponse(CreateModuleResponse&& from) noexcept - : CreateModuleResponse() { + ListFragmentsRequest(const ListFragmentsRequest& from); + ListFragmentsRequest(ListFragmentsRequest&& from) noexcept + : ListFragmentsRequest() { *this = ::std::move(from); } - inline CreateModuleResponse& operator=(const CreateModuleResponse& from) { + inline ListFragmentsRequest& operator=(const ListFragmentsRequest& from) { CopyFrom(from); return *this; } - inline CreateModuleResponse& operator=(CreateModuleResponse&& from) noexcept { + inline ListFragmentsRequest& operator=(ListFragmentsRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -19197,196 +18081,176 @@ class CreateModuleResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CreateModuleResponse& default_instance() { + static const ListFragmentsRequest& default_instance() { return *internal_default_instance(); } - static inline const CreateModuleResponse* internal_default_instance() { - return reinterpret_cast( - &_CreateModuleResponse_default_instance_); + static inline const ListFragmentsRequest* internal_default_instance() { + return reinterpret_cast( + &_ListFragmentsRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 161; + 101; - friend void swap(CreateModuleResponse& a, CreateModuleResponse& b) { + friend void swap(ListFragmentsRequest& a, ListFragmentsRequest& b) { a.Swap(&b); } - inline void Swap(CreateModuleResponse* other) { + inline void Swap(ListFragmentsRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CreateModuleResponse* other) { + void UnsafeArenaSwap(ListFragmentsRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CreateModuleResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const CreateModuleResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CreateModuleResponse& from) { - CreateModuleResponse::MergeImpl(*this, from); + ListFragmentsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ListFragmentsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ListFragmentsRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(CreateModuleResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(ListFragmentsRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.CreateModuleResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.ListFragmentsRequest"; } protected: - explicit CreateModuleResponse(::google::protobuf::Arena* arena); - CreateModuleResponse(::google::protobuf::Arena* arena, const CreateModuleResponse& from); + explicit ListFragmentsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kModuleIdFieldNumber = 1, - kUrlFieldNumber = 2, + kFragmentVisibilityFieldNumber = 3, + kOrganizationIdFieldNumber = 1, + kShowPublicFieldNumber = 2, }; - // string module_id = 1 [json_name = "moduleId"]; - void clear_module_id() ; - const std::string& module_id() const; - template - void set_module_id(Arg_&& arg, Args_... args); - std::string* mutable_module_id(); - PROTOBUF_NODISCARD std::string* release_module_id(); - void set_allocated_module_id(std::string* value); - + // repeated .viam.app.v1.FragmentVisibility fragment_visibility = 3 [json_name = "fragmentVisibility"]; + int fragment_visibility_size() const; 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(); - + int _internal_fragment_visibility_size() const; public: - // string url = 2 [json_name = "url"]; - void clear_url() ; - const std::string& url() const; - template - void set_url(Arg_&& arg, Args_... args); - std::string* mutable_url(); - PROTOBUF_NODISCARD std::string* release_url(); - void set_allocated_url(std::string* value); + void clear_fragment_visibility(); + private: + ::viam::app::v1::FragmentVisibility _internal_fragment_visibility(int index) const; + void _internal_add_fragment_visibility(::viam::app::v1::FragmentVisibility value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField* _internal_mutable_fragment_visibility(); + public: + ::viam::app::v1::FragmentVisibility fragment_visibility(int index) const; + void set_fragment_visibility(int index, ::viam::app::v1::FragmentVisibility value); + void add_fragment_visibility(::viam::app::v1::FragmentVisibility value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField& fragment_visibility() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField* mutable_fragment_visibility(); + // string organization_id = 1 [json_name = "organizationId"]; + void clear_organization_id(); + const std::string& organization_id() const; + template + void set_organization_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_organization_id(); + PROTOBUF_NODISCARD std::string* release_organization_id(); + void set_allocated_organization_id(std::string* organization_id); private: - const std::string& _internal_url() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_url( - const std::string& value); - std::string* _internal_mutable_url(); + const std::string& _internal_organization_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id(const std::string& value); + std::string* _internal_mutable_organization_id(); + public: + // bool show_public = 2 [json_name = "showPublic"]; + void clear_show_public(); + bool show_public() const; + void set_show_public(bool value); + private: + bool _internal_show_public() const; + void _internal_set_show_public(bool value); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.CreateModuleResponse) + + // @@protoc_insertion_point(class_scope:viam.app.v1.ListFragmentsRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 53, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr module_id_; - ::google::protobuf::internal::ArenaStringPtr url_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField fragment_visibility_; + mutable std::atomic _fragment_visibility_cached_byte_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr organization_id_; + bool show_public_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class CreateModuleRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.CreateModuleRequest) */ { +class ListFragmentsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ListFragmentsResponse) */ { public: - inline CreateModuleRequest() : CreateModuleRequest(nullptr) {} - ~CreateModuleRequest() override; - template - explicit PROTOBUF_CONSTEXPR CreateModuleRequest(::google::protobuf::internal::ConstantInitialized); + inline ListFragmentsResponse() : ListFragmentsResponse(nullptr) {} + ~ListFragmentsResponse() override; + explicit PROTOBUF_CONSTEXPR ListFragmentsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline CreateModuleRequest(const CreateModuleRequest& from) - : CreateModuleRequest(nullptr, from) {} - CreateModuleRequest(CreateModuleRequest&& from) noexcept - : CreateModuleRequest() { + ListFragmentsResponse(const ListFragmentsResponse& from); + ListFragmentsResponse(ListFragmentsResponse&& from) noexcept + : ListFragmentsResponse() { *this = ::std::move(from); } - inline CreateModuleRequest& operator=(const CreateModuleRequest& from) { + inline ListFragmentsResponse& operator=(const ListFragmentsResponse& from) { CopyFrom(from); return *this; } - inline CreateModuleRequest& operator=(CreateModuleRequest&& from) noexcept { + inline ListFragmentsResponse& operator=(ListFragmentsResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -19396,196 +18260,169 @@ class CreateModuleRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CreateModuleRequest& default_instance() { + static const ListFragmentsResponse& default_instance() { return *internal_default_instance(); } - static inline const CreateModuleRequest* internal_default_instance() { - return reinterpret_cast( - &_CreateModuleRequest_default_instance_); + static inline const ListFragmentsResponse* internal_default_instance() { + return reinterpret_cast( + &_ListFragmentsResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 160; + 102; - friend void swap(CreateModuleRequest& a, CreateModuleRequest& b) { + friend void swap(ListFragmentsResponse& a, ListFragmentsResponse& b) { a.Swap(&b); } - inline void Swap(CreateModuleRequest* other) { + inline void Swap(ListFragmentsResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CreateModuleRequest* other) { + void UnsafeArenaSwap(ListFragmentsResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CreateModuleRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const CreateModuleRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CreateModuleRequest& from) { - CreateModuleRequest::MergeImpl(*this, from); + ListFragmentsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ListFragmentsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ListFragmentsResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(CreateModuleRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(ListFragmentsResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.CreateModuleRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.ListFragmentsResponse"; } protected: - explicit CreateModuleRequest(::google::protobuf::Arena* arena); - CreateModuleRequest(::google::protobuf::Arena* arena, const CreateModuleRequest& from); + explicit ListFragmentsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kOrganizationIdFieldNumber = 1, - kNameFieldNumber = 2, + kFragmentsFieldNumber = 1, + kFragmentUsagesFieldNumber = 2, }; - // string organization_id = 1 [json_name = "organizationId"]; - void clear_organization_id() ; - const std::string& organization_id() const; - template - void set_organization_id(Arg_&& arg, Args_... args); - std::string* mutable_organization_id(); - PROTOBUF_NODISCARD std::string* release_organization_id(); - void set_allocated_organization_id(std::string* value); - + // repeated .viam.app.v1.Fragment fragments = 1 [json_name = "fragments"]; + int fragments_size() const; private: - const std::string& _internal_organization_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id( - const std::string& value); - std::string* _internal_mutable_organization_id(); - + int _internal_fragments_size() const; public: - // string name = 2 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + void clear_fragments(); + ::viam::app::v1::Fragment* mutable_fragments(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Fragment >* + mutable_fragments(); private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); + const ::viam::app::v1::Fragment& _internal_fragments(int index) const; + ::viam::app::v1::Fragment* _internal_add_fragments(); + public: + const ::viam::app::v1::Fragment& fragments(int index) const; + ::viam::app::v1::Fragment* add_fragments(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Fragment >& + fragments() const; + // repeated .viam.app.v1.FragmentUsage fragment_usages = 2 [json_name = "fragmentUsages"]; + int fragment_usages_size() const; + private: + int _internal_fragment_usages_size() const; public: - // @@protoc_insertion_point(class_scope:viam.app.v1.CreateModuleRequest) + void clear_fragment_usages(); + ::viam::app::v1::FragmentUsage* mutable_fragment_usages(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::FragmentUsage >* + mutable_fragment_usages(); + private: + const ::viam::app::v1::FragmentUsage& _internal_fragment_usages(int index) const; + ::viam::app::v1::FragmentUsage* _internal_add_fragment_usages(); + public: + const ::viam::app::v1::FragmentUsage& fragment_usages(int index) const; + ::viam::app::v1::FragmentUsage* add_fragment_usages(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::FragmentUsage >& + fragment_usages() const; + + // @@protoc_insertion_point(class_scope:viam.app.v1.ListFragmentsResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 59, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr organization_id_; - ::google::protobuf::internal::ArenaStringPtr name_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Fragment > fragments_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::FragmentUsage > fragment_usages_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class CreateLocationSecretRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.CreateLocationSecretRequest) */ { +class GetFragmentRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetFragmentRequest) */ { public: - inline CreateLocationSecretRequest() : CreateLocationSecretRequest(nullptr) {} - ~CreateLocationSecretRequest() override; - template - explicit PROTOBUF_CONSTEXPR CreateLocationSecretRequest(::google::protobuf::internal::ConstantInitialized); + inline GetFragmentRequest() : GetFragmentRequest(nullptr) {} + ~GetFragmentRequest() override; + explicit PROTOBUF_CONSTEXPR GetFragmentRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline CreateLocationSecretRequest(const CreateLocationSecretRequest& from) - : CreateLocationSecretRequest(nullptr, from) {} - CreateLocationSecretRequest(CreateLocationSecretRequest&& from) noexcept - : CreateLocationSecretRequest() { + GetFragmentRequest(const GetFragmentRequest& from); + GetFragmentRequest(GetFragmentRequest&& from) noexcept + : GetFragmentRequest() { *this = ::std::move(from); } - inline CreateLocationSecretRequest& operator=(const CreateLocationSecretRequest& from) { + inline GetFragmentRequest& operator=(const GetFragmentRequest& from) { CopyFrom(from); return *this; } - inline CreateLocationSecretRequest& operator=(CreateLocationSecretRequest&& from) noexcept { + inline GetFragmentRequest& operator=(GetFragmentRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -19595,178 +18432,161 @@ class CreateLocationSecretRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CreateLocationSecretRequest& default_instance() { + static const GetFragmentRequest& default_instance() { return *internal_default_instance(); } - static inline const CreateLocationSecretRequest* internal_default_instance() { - return reinterpret_cast( - &_CreateLocationSecretRequest_default_instance_); + static inline const GetFragmentRequest* internal_default_instance() { + return reinterpret_cast( + &_GetFragmentRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 66; + 103; - friend void swap(CreateLocationSecretRequest& a, CreateLocationSecretRequest& b) { + friend void swap(GetFragmentRequest& a, GetFragmentRequest& b) { a.Swap(&b); } - inline void Swap(CreateLocationSecretRequest* other) { + inline void Swap(GetFragmentRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CreateLocationSecretRequest* other) { + void UnsafeArenaSwap(GetFragmentRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CreateLocationSecretRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const CreateLocationSecretRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CreateLocationSecretRequest& from) { - CreateLocationSecretRequest::MergeImpl(*this, from); + GetFragmentRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetFragmentRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetFragmentRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(CreateLocationSecretRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetFragmentRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.CreateLocationSecretRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.GetFragmentRequest"; } protected: - explicit CreateLocationSecretRequest(::google::protobuf::Arena* arena); - CreateLocationSecretRequest(::google::protobuf::Arena* arena, const CreateLocationSecretRequest& from); + explicit GetFragmentRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kLocationIdFieldNumber = 1, + kIdFieldNumber = 1, + kCurrentOrganizationIdFieldNumber = 2, }; - // string location_id = 1 [json_name = "locationId"]; - void clear_location_id() ; - const std::string& location_id() const; - template - void set_location_id(Arg_&& arg, Args_... args); - std::string* mutable_location_id(); - PROTOBUF_NODISCARD std::string* release_location_id(); - void set_allocated_location_id(std::string* value); - + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); private: - const std::string& _internal_location_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_location_id( - const std::string& value); - std::string* _internal_mutable_location_id(); + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + // string current_organization_id = 2 [json_name = "currentOrganizationId"]; + void clear_current_organization_id(); + const std::string& current_organization_id() const; + template + void set_current_organization_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_current_organization_id(); + PROTOBUF_NODISCARD std::string* release_current_organization_id(); + void set_allocated_current_organization_id(std::string* current_organization_id); + private: + const std::string& _internal_current_organization_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_current_organization_id(const std::string& value); + std::string* _internal_mutable_current_organization_id(); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.CreateLocationSecretRequest) + + // @@protoc_insertion_point(class_scope:viam.app.v1.GetFragmentRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 59, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr location_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr current_organization_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class CreateLocationRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.CreateLocationRequest) */ { +class GetFragmentResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetFragmentResponse) */ { public: - inline CreateLocationRequest() : CreateLocationRequest(nullptr) {} - ~CreateLocationRequest() override; - template - explicit PROTOBUF_CONSTEXPR CreateLocationRequest(::google::protobuf::internal::ConstantInitialized); + inline GetFragmentResponse() : GetFragmentResponse(nullptr) {} + ~GetFragmentResponse() override; + explicit PROTOBUF_CONSTEXPR GetFragmentResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline CreateLocationRequest(const CreateLocationRequest& from) - : CreateLocationRequest(nullptr, from) {} - CreateLocationRequest(CreateLocationRequest&& from) noexcept - : CreateLocationRequest() { + GetFragmentResponse(const GetFragmentResponse& from); + GetFragmentResponse(GetFragmentResponse&& from) noexcept + : GetFragmentResponse() { *this = ::std::move(from); } - inline CreateLocationRequest& operator=(const CreateLocationRequest& from) { + inline GetFragmentResponse& operator=(const GetFragmentResponse& from) { CopyFrom(from); return *this; } - inline CreateLocationRequest& operator=(CreateLocationRequest&& from) noexcept { + inline GetFragmentResponse& operator=(GetFragmentResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -19776,216 +18596,169 @@ class CreateLocationRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CreateLocationRequest& default_instance() { + static const GetFragmentResponse& default_instance() { return *internal_default_instance(); } - static inline const CreateLocationRequest* internal_default_instance() { - return reinterpret_cast( - &_CreateLocationRequest_default_instance_); + static inline const GetFragmentResponse* internal_default_instance() { + return reinterpret_cast( + &_GetFragmentResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 50; + 104; - friend void swap(CreateLocationRequest& a, CreateLocationRequest& b) { + friend void swap(GetFragmentResponse& a, GetFragmentResponse& b) { a.Swap(&b); } - inline void Swap(CreateLocationRequest* other) { + inline void Swap(GetFragmentResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CreateLocationRequest* other) { + void UnsafeArenaSwap(GetFragmentResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CreateLocationRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const CreateLocationRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CreateLocationRequest& from) { - CreateLocationRequest::MergeImpl(*this, from); + GetFragmentResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetFragmentResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetFragmentResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(CreateLocationRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetFragmentResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.CreateLocationRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.GetFragmentResponse"; } protected: - explicit CreateLocationRequest(::google::protobuf::Arena* arena); - CreateLocationRequest(::google::protobuf::Arena* arena, const CreateLocationRequest& from); + explicit GetFragmentResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kOrganizationIdFieldNumber = 1, - kNameFieldNumber = 2, - kParentLocationIdFieldNumber = 3, + kFragmentFieldNumber = 1, + kFragmentUsageFieldNumber = 2, }; - // string organization_id = 1 [json_name = "organizationId"]; - void clear_organization_id() ; - const std::string& organization_id() const; - template - void set_organization_id(Arg_&& arg, Args_... args); - std::string* mutable_organization_id(); - PROTOBUF_NODISCARD std::string* release_organization_id(); - void set_allocated_organization_id(std::string* value); - + // .viam.app.v1.Fragment fragment = 1 [json_name = "fragment"]; + bool has_fragment() const; private: - const std::string& _internal_organization_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id( - const std::string& value); - std::string* _internal_mutable_organization_id(); - + bool _internal_has_fragment() const; public: - // string name = 2 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + void clear_fragment(); + const ::viam::app::v1::Fragment& fragment() const; + PROTOBUF_NODISCARD ::viam::app::v1::Fragment* release_fragment(); + ::viam::app::v1::Fragment* mutable_fragment(); + void set_allocated_fragment(::viam::app::v1::Fragment* fragment); private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - + const ::viam::app::v1::Fragment& _internal_fragment() const; + ::viam::app::v1::Fragment* _internal_mutable_fragment(); public: - // optional string parent_location_id = 3 [json_name = "parentLocationId"]; - bool has_parent_location_id() const; - void clear_parent_location_id() ; - const std::string& parent_location_id() const; - template - void set_parent_location_id(Arg_&& arg, Args_... args); - std::string* mutable_parent_location_id(); - PROTOBUF_NODISCARD std::string* release_parent_location_id(); - void set_allocated_parent_location_id(std::string* value); + void unsafe_arena_set_allocated_fragment( + ::viam::app::v1::Fragment* fragment); + ::viam::app::v1::Fragment* unsafe_arena_release_fragment(); + // .viam.app.v1.FragmentUsage fragment_usage = 2 [json_name = "fragmentUsage"]; + bool has_fragment_usage() const; private: - const std::string& _internal_parent_location_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_parent_location_id( - const std::string& value); - std::string* _internal_mutable_parent_location_id(); - + bool _internal_has_fragment_usage() const; public: - // @@protoc_insertion_point(class_scope:viam.app.v1.CreateLocationRequest) + void clear_fragment_usage(); + const ::viam::app::v1::FragmentUsage& fragment_usage() const; + PROTOBUF_NODISCARD ::viam::app::v1::FragmentUsage* release_fragment_usage(); + ::viam::app::v1::FragmentUsage* mutable_fragment_usage(); + void set_allocated_fragment_usage(::viam::app::v1::FragmentUsage* fragment_usage); + private: + const ::viam::app::v1::FragmentUsage& _internal_fragment_usage() const; + ::viam::app::v1::FragmentUsage* _internal_mutable_fragment_usage(); + public: + void unsafe_arena_set_allocated_fragment_usage( + ::viam::app::v1::FragmentUsage* fragment_usage); + ::viam::app::v1::FragmentUsage* unsafe_arena_release_fragment_usage(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.GetFragmentResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 0, - 79, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr organization_id_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr parent_location_id_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::viam::app::v1::Fragment* fragment_; + ::viam::app::v1::FragmentUsage* fragment_usage_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class CreateKeyResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.CreateKeyResponse) */ { +class CreateFragmentRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.CreateFragmentRequest) */ { public: - inline CreateKeyResponse() : CreateKeyResponse(nullptr) {} - ~CreateKeyResponse() override; - template - explicit PROTOBUF_CONSTEXPR CreateKeyResponse(::google::protobuf::internal::ConstantInitialized); + inline CreateFragmentRequest() : CreateFragmentRequest(nullptr) {} + ~CreateFragmentRequest() override; + explicit PROTOBUF_CONSTEXPR CreateFragmentRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline CreateKeyResponse(const CreateKeyResponse& from) - : CreateKeyResponse(nullptr, from) {} - CreateKeyResponse(CreateKeyResponse&& from) noexcept - : CreateKeyResponse() { + CreateFragmentRequest(const CreateFragmentRequest& from); + CreateFragmentRequest(CreateFragmentRequest&& from) noexcept + : CreateFragmentRequest() { *this = ::std::move(from); } - inline CreateKeyResponse& operator=(const CreateKeyResponse& from) { + inline CreateFragmentRequest& operator=(const CreateFragmentRequest& from) { CopyFrom(from); return *this; } - inline CreateKeyResponse& operator=(CreateKeyResponse&& from) noexcept { + inline CreateFragmentRequest& operator=(CreateFragmentRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -19995,196 +18768,197 @@ class CreateKeyResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CreateKeyResponse& default_instance() { + static const CreateFragmentRequest& default_instance() { return *internal_default_instance(); } - static inline const CreateKeyResponse* internal_default_instance() { - return reinterpret_cast( - &_CreateKeyResponse_default_instance_); + static inline const CreateFragmentRequest* internal_default_instance() { + return reinterpret_cast( + &_CreateFragmentRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 181; + 105; - friend void swap(CreateKeyResponse& a, CreateKeyResponse& b) { + friend void swap(CreateFragmentRequest& a, CreateFragmentRequest& b) { a.Swap(&b); } - inline void Swap(CreateKeyResponse* other) { + inline void Swap(CreateFragmentRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CreateKeyResponse* other) { + void UnsafeArenaSwap(CreateFragmentRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CreateKeyResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const CreateKeyResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CreateKeyResponse& from) { - CreateKeyResponse::MergeImpl(*this, from); + CreateFragmentRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CreateFragmentRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CreateFragmentRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(CreateKeyResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(CreateFragmentRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.CreateKeyResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.CreateFragmentRequest"; } protected: - explicit CreateKeyResponse(::google::protobuf::Arena* arena); - CreateKeyResponse(::google::protobuf::Arena* arena, const CreateKeyResponse& from); + explicit CreateFragmentRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kKeyFieldNumber = 1, - kIdFieldNumber = 2, + kNameFieldNumber = 1, + kOrganizationIdFieldNumber = 3, + kConfigFieldNumber = 2, + kVisibilityFieldNumber = 4, }; - // string key = 1 [json_name = "key"]; - void clear_key() ; - const std::string& key() const; - template - void set_key(Arg_&& arg, Args_... args); - std::string* mutable_key(); - PROTOBUF_NODISCARD std::string* release_key(); - void set_allocated_key(std::string* value); - + // 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_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_key( - const std::string& value); - std::string* _internal_mutable_key(); + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + // string organization_id = 3 [json_name = "organizationId"]; + void clear_organization_id(); + const std::string& organization_id() const; + template + void set_organization_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_organization_id(); + PROTOBUF_NODISCARD std::string* release_organization_id(); + void set_allocated_organization_id(std::string* organization_id); + private: + const std::string& _internal_organization_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id(const std::string& value); + std::string* _internal_mutable_organization_id(); public: - // string id = 2 [json_name = "id"]; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); + // .google.protobuf.Struct config = 2 [json_name = "config"]; + bool has_config() const; private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); + bool _internal_has_config() const; + public: + void clear_config(); + const ::PROTOBUF_NAMESPACE_ID::Struct& config() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_config(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_config(); + void set_allocated_config(::PROTOBUF_NAMESPACE_ID::Struct* config); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_config() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_config(); + public: + void unsafe_arena_set_allocated_config( + ::PROTOBUF_NAMESPACE_ID::Struct* config); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_config(); + // optional .viam.app.v1.FragmentVisibility visibility = 4 [json_name = "visibility"]; + bool has_visibility() const; + private: + bool _internal_has_visibility() const; public: - // @@protoc_insertion_point(class_scope:viam.app.v1.CreateKeyResponse) + void clear_visibility(); + ::viam::app::v1::FragmentVisibility visibility() const; + void set_visibility(::viam::app::v1::FragmentVisibility value); + private: + ::viam::app::v1::FragmentVisibility _internal_visibility() const; + void _internal_set_visibility(::viam::app::v1::FragmentVisibility value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.CreateFragmentRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 43, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr key_; - ::google::protobuf::internal::ArenaStringPtr id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr organization_id_; + ::PROTOBUF_NAMESPACE_ID::Struct* config_; + int visibility_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class CreateKeyFromExistingKeyAuthorizationsResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsResponse) */ { +class CreateFragmentResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.CreateFragmentResponse) */ { public: - inline CreateKeyFromExistingKeyAuthorizationsResponse() : CreateKeyFromExistingKeyAuthorizationsResponse(nullptr) {} - ~CreateKeyFromExistingKeyAuthorizationsResponse() override; - template - explicit PROTOBUF_CONSTEXPR CreateKeyFromExistingKeyAuthorizationsResponse(::google::protobuf::internal::ConstantInitialized); + inline CreateFragmentResponse() : CreateFragmentResponse(nullptr) {} + ~CreateFragmentResponse() override; + explicit PROTOBUF_CONSTEXPR CreateFragmentResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline CreateKeyFromExistingKeyAuthorizationsResponse(const CreateKeyFromExistingKeyAuthorizationsResponse& from) - : CreateKeyFromExistingKeyAuthorizationsResponse(nullptr, from) {} - CreateKeyFromExistingKeyAuthorizationsResponse(CreateKeyFromExistingKeyAuthorizationsResponse&& from) noexcept - : CreateKeyFromExistingKeyAuthorizationsResponse() { + CreateFragmentResponse(const CreateFragmentResponse& from); + CreateFragmentResponse(CreateFragmentResponse&& from) noexcept + : CreateFragmentResponse() { *this = ::std::move(from); } - inline CreateKeyFromExistingKeyAuthorizationsResponse& operator=(const CreateKeyFromExistingKeyAuthorizationsResponse& from) { + inline CreateFragmentResponse& operator=(const CreateFragmentResponse& from) { CopyFrom(from); return *this; } - inline CreateKeyFromExistingKeyAuthorizationsResponse& operator=(CreateKeyFromExistingKeyAuthorizationsResponse&& from) noexcept { + inline CreateFragmentResponse& operator=(CreateFragmentResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -20194,196 +18968,149 @@ class CreateKeyFromExistingKeyAuthorizationsResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CreateKeyFromExistingKeyAuthorizationsResponse& default_instance() { + static const CreateFragmentResponse& default_instance() { return *internal_default_instance(); } - static inline const CreateKeyFromExistingKeyAuthorizationsResponse* internal_default_instance() { - return reinterpret_cast( - &_CreateKeyFromExistingKeyAuthorizationsResponse_default_instance_); + static inline const CreateFragmentResponse* internal_default_instance() { + return reinterpret_cast( + &_CreateFragmentResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 193; + 106; - friend void swap(CreateKeyFromExistingKeyAuthorizationsResponse& a, CreateKeyFromExistingKeyAuthorizationsResponse& b) { + friend void swap(CreateFragmentResponse& a, CreateFragmentResponse& b) { a.Swap(&b); } - inline void Swap(CreateKeyFromExistingKeyAuthorizationsResponse* other) { + inline void Swap(CreateFragmentResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CreateKeyFromExistingKeyAuthorizationsResponse* other) { + void UnsafeArenaSwap(CreateFragmentResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CreateKeyFromExistingKeyAuthorizationsResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const CreateKeyFromExistingKeyAuthorizationsResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CreateKeyFromExistingKeyAuthorizationsResponse& from) { - CreateKeyFromExistingKeyAuthorizationsResponse::MergeImpl(*this, from); + CreateFragmentResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CreateFragmentResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CreateFragmentResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(CreateKeyFromExistingKeyAuthorizationsResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(CreateFragmentResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.CreateKeyFromExistingKeyAuthorizationsResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.CreateFragmentResponse"; } protected: - explicit CreateKeyFromExistingKeyAuthorizationsResponse(::google::protobuf::Arena* arena); - CreateKeyFromExistingKeyAuthorizationsResponse(::google::protobuf::Arena* arena, const CreateKeyFromExistingKeyAuthorizationsResponse& from); + explicit CreateFragmentResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kIdFieldNumber = 1, - kKeyFieldNumber = 2, + kFragmentFieldNumber = 1, }; - // string id = 1 [json_name = "id"]; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - + // .viam.app.v1.Fragment fragment = 1 [json_name = "fragment"]; + bool has_fragment() const; private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); - + bool _internal_has_fragment() const; public: - // string key = 2 [json_name = "key"]; - void clear_key() ; - const std::string& key() const; - template - void set_key(Arg_&& arg, Args_... args); - std::string* mutable_key(); - PROTOBUF_NODISCARD std::string* release_key(); - void set_allocated_key(std::string* value); - + void clear_fragment(); + const ::viam::app::v1::Fragment& fragment() const; + PROTOBUF_NODISCARD ::viam::app::v1::Fragment* release_fragment(); + ::viam::app::v1::Fragment* mutable_fragment(); + void set_allocated_fragment(::viam::app::v1::Fragment* fragment); private: - const std::string& _internal_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_key( - const std::string& value); - std::string* _internal_mutable_key(); - + const ::viam::app::v1::Fragment& _internal_fragment() const; + ::viam::app::v1::Fragment* _internal_mutable_fragment(); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsResponse) + void unsafe_arena_set_allocated_fragment( + ::viam::app::v1::Fragment* fragment); + ::viam::app::v1::Fragment* unsafe_arena_release_fragment(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.CreateFragmentResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 72, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr id_; - ::google::protobuf::internal::ArenaStringPtr key_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::viam::app::v1::Fragment* fragment_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class CreateKeyFromExistingKeyAuthorizationsRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsRequest) */ { +class UpdateFragmentRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.UpdateFragmentRequest) */ { public: - inline CreateKeyFromExistingKeyAuthorizationsRequest() : CreateKeyFromExistingKeyAuthorizationsRequest(nullptr) {} - ~CreateKeyFromExistingKeyAuthorizationsRequest() override; - template - explicit PROTOBUF_CONSTEXPR CreateKeyFromExistingKeyAuthorizationsRequest(::google::protobuf::internal::ConstantInitialized); + inline UpdateFragmentRequest() : UpdateFragmentRequest(nullptr) {} + ~UpdateFragmentRequest() override; + explicit PROTOBUF_CONSTEXPR UpdateFragmentRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline CreateKeyFromExistingKeyAuthorizationsRequest(const CreateKeyFromExistingKeyAuthorizationsRequest& from) - : CreateKeyFromExistingKeyAuthorizationsRequest(nullptr, from) {} - CreateKeyFromExistingKeyAuthorizationsRequest(CreateKeyFromExistingKeyAuthorizationsRequest&& from) noexcept - : CreateKeyFromExistingKeyAuthorizationsRequest() { + UpdateFragmentRequest(const UpdateFragmentRequest& from); + UpdateFragmentRequest(UpdateFragmentRequest&& from) noexcept + : UpdateFragmentRequest() { *this = ::std::move(from); } - inline CreateKeyFromExistingKeyAuthorizationsRequest& operator=(const CreateKeyFromExistingKeyAuthorizationsRequest& from) { + inline UpdateFragmentRequest& operator=(const UpdateFragmentRequest& from) { CopyFrom(from); return *this; } - inline CreateKeyFromExistingKeyAuthorizationsRequest& operator=(CreateKeyFromExistingKeyAuthorizationsRequest&& from) noexcept { + inline UpdateFragmentRequest& operator=(UpdateFragmentRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -20393,99 +19120,88 @@ class CreateKeyFromExistingKeyAuthorizationsRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CreateKeyFromExistingKeyAuthorizationsRequest& default_instance() { + static const UpdateFragmentRequest& default_instance() { return *internal_default_instance(); } - static inline const CreateKeyFromExistingKeyAuthorizationsRequest* internal_default_instance() { - return reinterpret_cast( - &_CreateKeyFromExistingKeyAuthorizationsRequest_default_instance_); + static inline const UpdateFragmentRequest* internal_default_instance() { + return reinterpret_cast( + &_UpdateFragmentRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 192; + 107; - friend void swap(CreateKeyFromExistingKeyAuthorizationsRequest& a, CreateKeyFromExistingKeyAuthorizationsRequest& b) { + friend void swap(UpdateFragmentRequest& a, UpdateFragmentRequest& b) { a.Swap(&b); } - inline void Swap(CreateKeyFromExistingKeyAuthorizationsRequest* other) { + inline void Swap(UpdateFragmentRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CreateKeyFromExistingKeyAuthorizationsRequest* other) { + void UnsafeArenaSwap(UpdateFragmentRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CreateKeyFromExistingKeyAuthorizationsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const CreateKeyFromExistingKeyAuthorizationsRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CreateKeyFromExistingKeyAuthorizationsRequest& from) { - CreateKeyFromExistingKeyAuthorizationsRequest::MergeImpl(*this, from); + UpdateFragmentRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const UpdateFragmentRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const UpdateFragmentRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(CreateKeyFromExistingKeyAuthorizationsRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(UpdateFragmentRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.CreateKeyFromExistingKeyAuthorizationsRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.UpdateFragmentRequest"; } protected: - explicit CreateKeyFromExistingKeyAuthorizationsRequest(::google::protobuf::Arena* arena); - CreateKeyFromExistingKeyAuthorizationsRequest(::google::protobuf::Arena* arena, const CreateKeyFromExistingKeyAuthorizationsRequest& from); + explicit UpdateFragmentRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -20493,77 +19209,123 @@ class CreateKeyFromExistingKeyAuthorizationsRequest final : enum : int { kIdFieldNumber = 1, + kNameFieldNumber = 2, + kConfigFieldNumber = 3, + kPublicFieldNumber = 4, + kVisibilityFieldNumber = 5, }; // string id = 1 [json_name = "id"]; - void clear_id() ; + void clear_id(); const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); + template + void set_id(ArgT0&& arg0, ArgT... args); std::string* mutable_id(); PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - + void set_allocated_id(std::string* id); private: const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); std::string* _internal_mutable_id(); + public: + // string name = 2 [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: - // @@protoc_insertion_point(class_scope:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsRequest) + + // .google.protobuf.Struct config = 3 [json_name = "config"]; + bool has_config() const; + private: + bool _internal_has_config() const; + public: + void clear_config(); + const ::PROTOBUF_NAMESPACE_ID::Struct& config() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_config(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_config(); + void set_allocated_config(::PROTOBUF_NAMESPACE_ID::Struct* config); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_config() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_config(); + public: + void unsafe_arena_set_allocated_config( + ::PROTOBUF_NAMESPACE_ID::Struct* config); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_config(); + + // optional bool public = 4 [json_name = "public"]; + bool has_public_() const; + private: + bool _internal_has_public_() const; + public: + void clear_public_(); + bool public_() const; + void set_public_(bool value); + private: + bool _internal_public_() const; + void _internal_set_public_(bool value); + public: + + // optional .viam.app.v1.FragmentVisibility visibility = 5 [json_name = "visibility"]; + bool has_visibility() const; + private: + bool _internal_has_visibility() const; + public: + void clear_visibility(); + ::viam::app::v1::FragmentVisibility visibility() const; + void set_visibility(::viam::app::v1::FragmentVisibility value); + private: + ::viam::app::v1::FragmentVisibility _internal_visibility() const; + void _internal_set_visibility(::viam::app::v1::FragmentVisibility value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.UpdateFragmentRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 68, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::Struct* config_; + bool public__; + int visibility_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ChangeRoleResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.ChangeRoleResponse) */ { +class UpdateFragmentResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.UpdateFragmentResponse) */ { public: - inline ChangeRoleResponse() : ChangeRoleResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR ChangeRoleResponse(::google::protobuf::internal::ConstantInitialized); + inline UpdateFragmentResponse() : UpdateFragmentResponse(nullptr) {} + ~UpdateFragmentResponse() override; + explicit PROTOBUF_CONSTEXPR UpdateFragmentResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ChangeRoleResponse(const ChangeRoleResponse& from) - : ChangeRoleResponse(nullptr, from) {} - ChangeRoleResponse(ChangeRoleResponse&& from) noexcept - : ChangeRoleResponse() { + UpdateFragmentResponse(const UpdateFragmentResponse& from); + UpdateFragmentResponse(UpdateFragmentResponse&& from) noexcept + : UpdateFragmentResponse() { *this = ::std::move(from); } - inline ChangeRoleResponse& operator=(const ChangeRoleResponse& from) { + inline UpdateFragmentResponse& operator=(const UpdateFragmentResponse& from) { CopyFrom(from); return *this; } - inline ChangeRoleResponse& operator=(ChangeRoleResponse&& from) noexcept { + inline UpdateFragmentResponse& operator=(UpdateFragmentResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -20573,134 +19335,149 @@ class ChangeRoleResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ChangeRoleResponse& default_instance() { + static const UpdateFragmentResponse& default_instance() { return *internal_default_instance(); } - static inline const ChangeRoleResponse* internal_default_instance() { - return reinterpret_cast( - &_ChangeRoleResponse_default_instance_); + static inline const UpdateFragmentResponse* internal_default_instance() { + return reinterpret_cast( + &_UpdateFragmentResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 136; + 108; - friend void swap(ChangeRoleResponse& a, ChangeRoleResponse& b) { + friend void swap(UpdateFragmentResponse& a, UpdateFragmentResponse& b) { a.Swap(&b); } - inline void Swap(ChangeRoleResponse* other) { + inline void Swap(UpdateFragmentResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ChangeRoleResponse* other) { + void UnsafeArenaSwap(UpdateFragmentResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ChangeRoleResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const ChangeRoleResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const ChangeRoleResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + UpdateFragmentResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const UpdateFragmentResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const UpdateFragmentResponse& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.ChangeRoleResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(UpdateFragmentResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.UpdateFragmentResponse"; } protected: - explicit ChangeRoleResponse(::google::protobuf::Arena* arena); - ChangeRoleResponse(::google::protobuf::Arena* arena, const ChangeRoleResponse& from); + explicit UpdateFragmentResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.app.v1.ChangeRoleResponse) + enum : int { + kFragmentFieldNumber = 1, + }; + // .viam.app.v1.Fragment fragment = 1 [json_name = "fragment"]; + bool has_fragment() const; + private: + bool _internal_has_fragment() const; + public: + void clear_fragment(); + const ::viam::app::v1::Fragment& fragment() const; + PROTOBUF_NODISCARD ::viam::app::v1::Fragment* release_fragment(); + ::viam::app::v1::Fragment* mutable_fragment(); + void set_allocated_fragment(::viam::app::v1::Fragment* fragment); + private: + const ::viam::app::v1::Fragment& _internal_fragment() const; + ::viam::app::v1::Fragment* _internal_mutable_fragment(); + public: + void unsafe_arena_set_allocated_fragment( + ::viam::app::v1::Fragment* fragment); + ::viam::app::v1::Fragment* unsafe_arena_release_fragment(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.UpdateFragmentResponse) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::viam::app::v1::Fragment* fragment_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class BillingAddress final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.BillingAddress) */ { +class DeleteFragmentRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.DeleteFragmentRequest) */ { public: - inline BillingAddress() : BillingAddress(nullptr) {} - ~BillingAddress() override; - template - explicit PROTOBUF_CONSTEXPR BillingAddress(::google::protobuf::internal::ConstantInitialized); + inline DeleteFragmentRequest() : DeleteFragmentRequest(nullptr) {} + ~DeleteFragmentRequest() override; + explicit PROTOBUF_CONSTEXPR DeleteFragmentRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline BillingAddress(const BillingAddress& from) - : BillingAddress(nullptr, from) {} - BillingAddress(BillingAddress&& from) noexcept - : BillingAddress() { + DeleteFragmentRequest(const DeleteFragmentRequest& from); + DeleteFragmentRequest(DeleteFragmentRequest&& from) noexcept + : DeleteFragmentRequest() { *this = ::std::move(from); } - inline BillingAddress& operator=(const BillingAddress& from) { + inline DeleteFragmentRequest& operator=(const DeleteFragmentRequest& from) { CopyFrom(from); return *this; } - inline BillingAddress& operator=(BillingAddress&& from) noexcept { + inline DeleteFragmentRequest& operator=(DeleteFragmentRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -20710,252 +19487,144 @@ class BillingAddress final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const BillingAddress& default_instance() { + static const DeleteFragmentRequest& default_instance() { return *internal_default_instance(); } - static inline const BillingAddress* internal_default_instance() { - return reinterpret_cast( - &_BillingAddress_default_instance_); + static inline const DeleteFragmentRequest* internal_default_instance() { + return reinterpret_cast( + &_DeleteFragmentRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 31; + 109; - friend void swap(BillingAddress& a, BillingAddress& b) { + friend void swap(DeleteFragmentRequest& a, DeleteFragmentRequest& b) { a.Swap(&b); } - inline void Swap(BillingAddress* other) { + inline void Swap(DeleteFragmentRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(BillingAddress* other) { + void UnsafeArenaSwap(DeleteFragmentRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - BillingAddress* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const BillingAddress& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const BillingAddress& from) { - BillingAddress::MergeImpl(*this, from); + DeleteFragmentRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DeleteFragmentRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const DeleteFragmentRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(BillingAddress* other); + void SetCachedSize(int size) const final; + void InternalSwap(DeleteFragmentRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.BillingAddress"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.DeleteFragmentRequest"; } protected: - explicit BillingAddress(::google::protobuf::Arena* arena); - BillingAddress(::google::protobuf::Arena* arena, const BillingAddress& from); + explicit DeleteFragmentRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kAddressLine1FieldNumber = 1, - kAddressLine2FieldNumber = 2, - kCityFieldNumber = 3, - kStateFieldNumber = 4, - kZipcodeFieldNumber = 5, + kIdFieldNumber = 1, }; - // string address_line_1 = 1 [json_name = "addressLine1"]; - void clear_address_line_1() ; - const std::string& address_line_1() const; - template - void set_address_line_1(Arg_&& arg, Args_... args); - std::string* mutable_address_line_1(); - PROTOBUF_NODISCARD std::string* release_address_line_1(); - void set_allocated_address_line_1(std::string* value); - - private: - const std::string& _internal_address_line_1() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_address_line_1( - const std::string& value); - std::string* _internal_mutable_address_line_1(); - - public: - // optional string address_line_2 = 2 [json_name = "addressLine2"]; - bool has_address_line_2() const; - void clear_address_line_2() ; - const std::string& address_line_2() const; - template - void set_address_line_2(Arg_&& arg, Args_... args); - std::string* mutable_address_line_2(); - PROTOBUF_NODISCARD std::string* release_address_line_2(); - void set_allocated_address_line_2(std::string* value); - - private: - const std::string& _internal_address_line_2() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_address_line_2( - const std::string& value); - std::string* _internal_mutable_address_line_2(); - - public: - // string city = 3 [json_name = "city"]; - void clear_city() ; - const std::string& city() const; - template - void set_city(Arg_&& arg, Args_... args); - std::string* mutable_city(); - PROTOBUF_NODISCARD std::string* release_city(); - void set_allocated_city(std::string* value); - - private: - const std::string& _internal_city() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_city( - const std::string& value); - std::string* _internal_mutable_city(); - - public: - // string state = 4 [json_name = "state"]; - void clear_state() ; - const std::string& state() const; - template - void set_state(Arg_&& arg, Args_... args); - std::string* mutable_state(); - PROTOBUF_NODISCARD std::string* release_state(); - void set_allocated_state(std::string* value); - + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); private: - const std::string& _internal_state() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_state( - const std::string& value); - std::string* _internal_mutable_state(); - + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); public: - // string zipcode = 5 [json_name = "zipcode"]; - void clear_zipcode() ; - const std::string& zipcode() const; - template - void set_zipcode(Arg_&& arg, Args_... args); - std::string* mutable_zipcode(); - PROTOBUF_NODISCARD std::string* release_zipcode(); - void set_allocated_zipcode(std::string* value); - - private: - const std::string& _internal_zipcode() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_zipcode( - const std::string& value); - std::string* _internal_mutable_zipcode(); - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.BillingAddress) + // @@protoc_insertion_point(class_scope:viam.app.v1.DeleteFragmentRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 5, 0, - 79, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr address_line_1_; - ::google::protobuf::internal::ArenaStringPtr address_line_2_; - ::google::protobuf::internal::ArenaStringPtr city_; - ::google::protobuf::internal::ArenaStringPtr state_; - ::google::protobuf::internal::ArenaStringPtr zipcode_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class AuthorizedPermissions final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.AuthorizedPermissions) */ { +class DeleteFragmentResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.DeleteFragmentResponse) */ { public: - inline AuthorizedPermissions() : AuthorizedPermissions(nullptr) {} - ~AuthorizedPermissions() override; - template - explicit PROTOBUF_CONSTEXPR AuthorizedPermissions(::google::protobuf::internal::ConstantInitialized); + inline DeleteFragmentResponse() : DeleteFragmentResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR DeleteFragmentResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline AuthorizedPermissions(const AuthorizedPermissions& from) - : AuthorizedPermissions(nullptr, from) {} - AuthorizedPermissions(AuthorizedPermissions&& from) noexcept - : AuthorizedPermissions() { + DeleteFragmentResponse(const DeleteFragmentResponse& from); + DeleteFragmentResponse(DeleteFragmentResponse&& from) noexcept + : DeleteFragmentResponse() { *this = ::std::move(from); } - inline AuthorizedPermissions& operator=(const AuthorizedPermissions& from) { + inline DeleteFragmentResponse& operator=(const DeleteFragmentResponse& from) { CopyFrom(from); return *this; } - inline AuthorizedPermissions& operator=(AuthorizedPermissions&& from) noexcept { + inline DeleteFragmentResponse& operator=(DeleteFragmentResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -20965,226 +19634,114 @@ class AuthorizedPermissions final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const AuthorizedPermissions& default_instance() { + static const DeleteFragmentResponse& default_instance() { return *internal_default_instance(); } - static inline const AuthorizedPermissions* internal_default_instance() { - return reinterpret_cast( - &_AuthorizedPermissions_default_instance_); + static inline const DeleteFragmentResponse* internal_default_instance() { + return reinterpret_cast( + &_DeleteFragmentResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 140; + 110; - friend void swap(AuthorizedPermissions& a, AuthorizedPermissions& b) { + friend void swap(DeleteFragmentResponse& a, DeleteFragmentResponse& b) { a.Swap(&b); } - inline void Swap(AuthorizedPermissions* other) { + inline void Swap(DeleteFragmentResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(AuthorizedPermissions* other) { + void UnsafeArenaSwap(DeleteFragmentResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - AuthorizedPermissions* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + DeleteFragmentResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const AuthorizedPermissions& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const AuthorizedPermissions& from) { - AuthorizedPermissions::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const DeleteFragmentResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const DeleteFragmentResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(AuthorizedPermissions* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.AuthorizedPermissions"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.DeleteFragmentResponse"; } protected: - explicit AuthorizedPermissions(::google::protobuf::Arena* arena); - AuthorizedPermissions(::google::protobuf::Arena* arena, const AuthorizedPermissions& from); + explicit DeleteFragmentResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kPermissionsFieldNumber = 3, - kResourceTypeFieldNumber = 1, - kResourceIdFieldNumber = 2, - }; - // repeated string permissions = 3 [json_name = "permissions"]; - int permissions_size() const; - private: - int _internal_permissions_size() const; - - public: - void clear_permissions() ; - const std::string& permissions(int index) const; - std::string* mutable_permissions(int index); - void set_permissions(int index, const std::string& value); - void set_permissions(int index, std::string&& value); - void set_permissions(int index, const char* value); - void set_permissions(int index, const char* value, std::size_t size); - void set_permissions(int index, absl::string_view value); - std::string* add_permissions(); - void add_permissions(const std::string& value); - void add_permissions(std::string&& value); - void add_permissions(const char* value); - void add_permissions(const char* value, std::size_t size); - void add_permissions(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& permissions() const; - ::google::protobuf::RepeatedPtrField* mutable_permissions(); + // @@protoc_insertion_point(class_scope:viam.app.v1.DeleteFragmentResponse) + private: + class _Internal; - private: - const ::google::protobuf::RepeatedPtrField& _internal_permissions() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_permissions(); + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- - public: - // string resource_type = 1 [json_name = "resourceType"]; - void clear_resource_type() ; - const std::string& resource_type() const; - template - void set_resource_type(Arg_&& arg, Args_... args); - std::string* mutable_resource_type(); - PROTOBUF_NODISCARD std::string* release_resource_type(); - void set_allocated_resource_type(std::string* value); - - private: - const std::string& _internal_resource_type() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_resource_type( - const std::string& value); - std::string* _internal_mutable_resource_type(); - - public: - // string resource_id = 2 [json_name = "resourceId"]; - void clear_resource_id() ; - const std::string& resource_id() const; - template - void set_resource_id(Arg_&& arg, Args_... args); - std::string* mutable_resource_id(); - PROTOBUF_NODISCARD std::string* release_resource_id(); - void set_allocated_resource_id(std::string* value); - - private: - const std::string& _internal_resource_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_resource_id( - const std::string& value); - std::string* _internal_mutable_resource_id(); - - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.AuthorizedPermissions) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 0, - 77, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField permissions_; - ::google::protobuf::internal::ArenaStringPtr resource_type_; - ::google::protobuf::internal::ArenaStringPtr resource_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- - -class AuthorizationDetails final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.AuthorizationDetails) */ { +class GetFragmentHistoryRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetFragmentHistoryRequest) */ { public: - inline AuthorizationDetails() : AuthorizationDetails(nullptr) {} - ~AuthorizationDetails() override; - template - explicit PROTOBUF_CONSTEXPR AuthorizationDetails(::google::protobuf::internal::ConstantInitialized); + inline GetFragmentHistoryRequest() : GetFragmentHistoryRequest(nullptr) {} + ~GetFragmentHistoryRequest() override; + explicit PROTOBUF_CONSTEXPR GetFragmentHistoryRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline AuthorizationDetails(const AuthorizationDetails& from) - : AuthorizationDetails(nullptr, from) {} - AuthorizationDetails(AuthorizationDetails&& from) noexcept - : AuthorizationDetails() { + GetFragmentHistoryRequest(const GetFragmentHistoryRequest& from); + GetFragmentHistoryRequest(GetFragmentHistoryRequest&& from) noexcept + : GetFragmentHistoryRequest() { *this = ::std::move(from); } - inline AuthorizationDetails& operator=(const AuthorizationDetails& from) { + inline GetFragmentHistoryRequest& operator=(const GetFragmentHistoryRequest& from) { CopyFrom(from); return *this; } - inline AuthorizationDetails& operator=(AuthorizationDetails&& from) noexcept { + inline GetFragmentHistoryRequest& operator=(GetFragmentHistoryRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -21194,250 +19751,181 @@ class AuthorizationDetails final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const AuthorizationDetails& default_instance() { + static const GetFragmentHistoryRequest& default_instance() { return *internal_default_instance(); } - static inline const AuthorizationDetails* internal_default_instance() { - return reinterpret_cast( - &_AuthorizationDetails_default_instance_); + static inline const GetFragmentHistoryRequest* internal_default_instance() { + return reinterpret_cast( + &_GetFragmentHistoryRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 186; + 111; - friend void swap(AuthorizationDetails& a, AuthorizationDetails& b) { + friend void swap(GetFragmentHistoryRequest& a, GetFragmentHistoryRequest& b) { a.Swap(&b); } - inline void Swap(AuthorizationDetails* other) { + inline void Swap(GetFragmentHistoryRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(AuthorizationDetails* other) { + void UnsafeArenaSwap(GetFragmentHistoryRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - AuthorizationDetails* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const AuthorizationDetails& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const AuthorizationDetails& from) { - AuthorizationDetails::MergeImpl(*this, from); + GetFragmentHistoryRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetFragmentHistoryRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetFragmentHistoryRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(AuthorizationDetails* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetFragmentHistoryRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.AuthorizationDetails"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.GetFragmentHistoryRequest"; } protected: - explicit AuthorizationDetails(::google::protobuf::Arena* arena); - AuthorizationDetails(::google::protobuf::Arena* arena, const AuthorizationDetails& from); + explicit GetFragmentHistoryRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kAuthorizationTypeFieldNumber = 1, - kAuthorizationIdFieldNumber = 2, - kResourceTypeFieldNumber = 3, - kResourceIdFieldNumber = 4, - kOrgIdFieldNumber = 5, + kIdFieldNumber = 1, + kPageTokenFieldNumber = 2, + kPageLimitFieldNumber = 3, }; - // string authorization_type = 1 [json_name = "authorizationType"]; - void clear_authorization_type() ; - const std::string& authorization_type() const; - template - void set_authorization_type(Arg_&& arg, Args_... args); - std::string* mutable_authorization_type(); - PROTOBUF_NODISCARD std::string* release_authorization_type(); - void set_allocated_authorization_type(std::string* value); - + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); private: - const std::string& _internal_authorization_type() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_authorization_type( - const std::string& value); - std::string* _internal_mutable_authorization_type(); - + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); public: - // string authorization_id = 2 [json_name = "authorizationId"]; - void clear_authorization_id() ; - const std::string& authorization_id() const; - template - void set_authorization_id(Arg_&& arg, Args_... args); - std::string* mutable_authorization_id(); - PROTOBUF_NODISCARD std::string* release_authorization_id(); - void set_allocated_authorization_id(std::string* value); + // optional string page_token = 2 [json_name = "pageToken"]; + bool has_page_token() const; private: - const std::string& _internal_authorization_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_authorization_id( - const std::string& value); - std::string* _internal_mutable_authorization_id(); - + bool _internal_has_page_token() const; public: - // string resource_type = 3 [json_name = "resourceType"]; - void clear_resource_type() ; - const std::string& resource_type() const; - template - void set_resource_type(Arg_&& arg, Args_... args); - std::string* mutable_resource_type(); - PROTOBUF_NODISCARD std::string* release_resource_type(); - void set_allocated_resource_type(std::string* value); - + void clear_page_token(); + const std::string& page_token() const; + template + void set_page_token(ArgT0&& arg0, ArgT... args); + std::string* mutable_page_token(); + PROTOBUF_NODISCARD std::string* release_page_token(); + void set_allocated_page_token(std::string* page_token); private: - const std::string& _internal_resource_type() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_resource_type( - const std::string& value); - std::string* _internal_mutable_resource_type(); - + const std::string& _internal_page_token() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_page_token(const std::string& value); + std::string* _internal_mutable_page_token(); public: - // string resource_id = 4 [json_name = "resourceId"]; - void clear_resource_id() ; - const std::string& resource_id() const; - template - void set_resource_id(Arg_&& arg, Args_... args); - std::string* mutable_resource_id(); - PROTOBUF_NODISCARD std::string* release_resource_id(); - void set_allocated_resource_id(std::string* value); + // optional int64 page_limit = 3 [json_name = "pageLimit"]; + bool has_page_limit() const; private: - const std::string& _internal_resource_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_resource_id( - const std::string& value); - std::string* _internal_mutable_resource_id(); - + bool _internal_has_page_limit() const; public: - // string org_id = 5 [json_name = "orgId"]; - void clear_org_id() ; - const std::string& org_id() const; - template - void set_org_id(Arg_&& arg, Args_... args); - std::string* mutable_org_id(); - PROTOBUF_NODISCARD std::string* release_org_id(); - void set_allocated_org_id(std::string* value); - + void clear_page_limit(); + int64_t page_limit() const; + void set_page_limit(int64_t value); private: - const std::string& _internal_org_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_org_id( - const std::string& value); - std::string* _internal_mutable_org_id(); - + int64_t _internal_page_limit() const; + void _internal_set_page_limit(int64_t value); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.AuthorizationDetails) + + // @@protoc_insertion_point(class_scope:viam.app.v1.GetFragmentHistoryRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 5, 0, - 105, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr authorization_type_; - ::google::protobuf::internal::ArenaStringPtr authorization_id_; - ::google::protobuf::internal::ArenaStringPtr resource_type_; - ::google::protobuf::internal::ArenaStringPtr resource_id_; - ::google::protobuf::internal::ArenaStringPtr org_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr page_token_; + int64_t page_limit_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Authorization final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.Authorization) */ { +class GetFragmentHistoryResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetFragmentHistoryResponse) */ { public: - inline Authorization() : Authorization(nullptr) {} - ~Authorization() override; - template - explicit PROTOBUF_CONSTEXPR Authorization(::google::protobuf::internal::ConstantInitialized); + inline GetFragmentHistoryResponse() : GetFragmentHistoryResponse(nullptr) {} + ~GetFragmentHistoryResponse() override; + explicit PROTOBUF_CONSTEXPR GetFragmentHistoryResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Authorization(const Authorization& from) - : Authorization(nullptr, from) {} - Authorization(Authorization&& from) noexcept - : Authorization() { + GetFragmentHistoryResponse(const GetFragmentHistoryResponse& from); + GetFragmentHistoryResponse(GetFragmentHistoryResponse&& from) noexcept + : GetFragmentHistoryResponse() { *this = ::std::move(from); } - inline Authorization& operator=(const Authorization& from) { + inline GetFragmentHistoryResponse& operator=(const GetFragmentHistoryResponse& from) { CopyFrom(from); return *this; } - inline Authorization& operator=(Authorization&& from) noexcept { + inline GetFragmentHistoryResponse& operator=(GetFragmentHistoryResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -21447,286 +19935,165 @@ class Authorization final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Authorization& default_instance() { + static const GetFragmentHistoryResponse& default_instance() { return *internal_default_instance(); } - static inline const Authorization* internal_default_instance() { - return reinterpret_cast( - &_Authorization_default_instance_); + static inline const GetFragmentHistoryResponse* internal_default_instance() { + return reinterpret_cast( + &_GetFragmentHistoryResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 130; + 112; - friend void swap(Authorization& a, Authorization& b) { + friend void swap(GetFragmentHistoryResponse& a, GetFragmentHistoryResponse& b) { a.Swap(&b); } - inline void Swap(Authorization* other) { + inline void Swap(GetFragmentHistoryResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Authorization* other) { + void UnsafeArenaSwap(GetFragmentHistoryResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Authorization* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Authorization& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Authorization& from) { - Authorization::MergeImpl(*this, from); + GetFragmentHistoryResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetFragmentHistoryResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetFragmentHistoryResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Authorization* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetFragmentHistoryResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.Authorization"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.GetFragmentHistoryResponse"; } protected: - explicit Authorization(::google::protobuf::Arena* arena); - Authorization(::google::protobuf::Arena* arena, const Authorization& from); + explicit GetFragmentHistoryResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kAuthorizationTypeFieldNumber = 1, - kAuthorizationIdFieldNumber = 2, - kResourceTypeFieldNumber = 3, - kResourceIdFieldNumber = 4, - kIdentityIdFieldNumber = 5, - kOrganizationIdFieldNumber = 6, - kIdentityTypeFieldNumber = 7, + kHistoryFieldNumber = 1, + kNextPageTokenFieldNumber = 2, }; - // string authorization_type = 1 [json_name = "authorizationType"]; - void clear_authorization_type() ; - const std::string& authorization_type() const; - template - void set_authorization_type(Arg_&& arg, Args_... args); - std::string* mutable_authorization_type(); - PROTOBUF_NODISCARD std::string* release_authorization_type(); - void set_allocated_authorization_type(std::string* value); - - private: - const std::string& _internal_authorization_type() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_authorization_type( - const std::string& value); - std::string* _internal_mutable_authorization_type(); - - public: - // string authorization_id = 2 [json_name = "authorizationId"]; - void clear_authorization_id() ; - const std::string& authorization_id() const; - template - void set_authorization_id(Arg_&& arg, Args_... args); - std::string* mutable_authorization_id(); - PROTOBUF_NODISCARD std::string* release_authorization_id(); - void set_allocated_authorization_id(std::string* value); - - private: - const std::string& _internal_authorization_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_authorization_id( - const std::string& value); - std::string* _internal_mutable_authorization_id(); - - public: - // string resource_type = 3 [json_name = "resourceType"]; - void clear_resource_type() ; - const std::string& resource_type() const; - template - void set_resource_type(Arg_&& arg, Args_... args); - std::string* mutable_resource_type(); - PROTOBUF_NODISCARD std::string* release_resource_type(); - void set_allocated_resource_type(std::string* value); - - private: - const std::string& _internal_resource_type() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_resource_type( - const std::string& value); - std::string* _internal_mutable_resource_type(); - - public: - // string resource_id = 4 [json_name = "resourceId"]; - void clear_resource_id() ; - const std::string& resource_id() const; - template - void set_resource_id(Arg_&& arg, Args_... args); - std::string* mutable_resource_id(); - PROTOBUF_NODISCARD std::string* release_resource_id(); - void set_allocated_resource_id(std::string* value); - + // repeated .viam.app.v1.FragmentHistoryEntry history = 1 [json_name = "history"]; + int history_size() const; private: - const std::string& _internal_resource_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_resource_id( - const std::string& value); - std::string* _internal_mutable_resource_id(); - + int _internal_history_size() const; public: - // string identity_id = 5 [json_name = "identityId"]; - void clear_identity_id() ; - const std::string& identity_id() const; - template - void set_identity_id(Arg_&& arg, Args_... args); - std::string* mutable_identity_id(); - PROTOBUF_NODISCARD std::string* release_identity_id(); - void set_allocated_identity_id(std::string* value); - + void clear_history(); + ::viam::app::v1::FragmentHistoryEntry* mutable_history(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::FragmentHistoryEntry >* + mutable_history(); private: - const std::string& _internal_identity_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_identity_id( - const std::string& value); - std::string* _internal_mutable_identity_id(); - + const ::viam::app::v1::FragmentHistoryEntry& _internal_history(int index) const; + ::viam::app::v1::FragmentHistoryEntry* _internal_add_history(); public: - // string organization_id = 6 [json_name = "organizationId"]; - void clear_organization_id() ; - const std::string& organization_id() const; - template - void set_organization_id(Arg_&& arg, Args_... args); - std::string* mutable_organization_id(); - PROTOBUF_NODISCARD std::string* release_organization_id(); - void set_allocated_organization_id(std::string* value); + const ::viam::app::v1::FragmentHistoryEntry& history(int index) const; + ::viam::app::v1::FragmentHistoryEntry* add_history(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::FragmentHistoryEntry >& + history() const; + // string next_page_token = 2 [json_name = "nextPageToken"]; + void clear_next_page_token(); + const std::string& next_page_token() const; + template + void set_next_page_token(ArgT0&& arg0, ArgT... args); + std::string* mutable_next_page_token(); + PROTOBUF_NODISCARD std::string* release_next_page_token(); + void set_allocated_next_page_token(std::string* next_page_token); private: - const std::string& _internal_organization_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id( - const std::string& value); - std::string* _internal_mutable_organization_id(); - + const std::string& _internal_next_page_token() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_next_page_token(const std::string& value); + std::string* _internal_mutable_next_page_token(); public: - // string identity_type = 7 [json_name = "identityType"]; - void clear_identity_type() ; - const std::string& identity_type() const; - template - void set_identity_type(Arg_&& arg, Args_... args); - std::string* mutable_identity_type(); - PROTOBUF_NODISCARD std::string* release_identity_type(); - void set_allocated_identity_type(std::string* value); - - private: - const std::string& _internal_identity_type() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_identity_type( - const std::string& value); - std::string* _internal_mutable_identity_type(); - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.Authorization) + // @@protoc_insertion_point(class_scope:viam.app.v1.GetFragmentHistoryResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 7, 0, - 131, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr authorization_type_; - ::google::protobuf::internal::ArenaStringPtr authorization_id_; - ::google::protobuf::internal::ArenaStringPtr resource_type_; - ::google::protobuf::internal::ArenaStringPtr resource_id_; - ::google::protobuf::internal::ArenaStringPtr identity_id_; - ::google::protobuf::internal::ArenaStringPtr organization_id_; - ::google::protobuf::internal::ArenaStringPtr identity_type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::FragmentHistoryEntry > history_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr next_page_token_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class AuthenticatorInfo final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.AuthenticatorInfo) */ { +class ListRobotsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ListRobotsRequest) */ { public: - inline AuthenticatorInfo() : AuthenticatorInfo(nullptr) {} - ~AuthenticatorInfo() override; - template - explicit PROTOBUF_CONSTEXPR AuthenticatorInfo(::google::protobuf::internal::ConstantInitialized); + inline ListRobotsRequest() : ListRobotsRequest(nullptr) {} + ~ListRobotsRequest() override; + explicit PROTOBUF_CONSTEXPR ListRobotsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline AuthenticatorInfo(const AuthenticatorInfo& from) - : AuthenticatorInfo(nullptr, from) {} - AuthenticatorInfo(AuthenticatorInfo&& from) noexcept - : AuthenticatorInfo() { + ListRobotsRequest(const ListRobotsRequest& from); + ListRobotsRequest(ListRobotsRequest&& from) noexcept + : ListRobotsRequest() { *this = ::std::move(from); } - inline AuthenticatorInfo& operator=(const AuthenticatorInfo& from) { + inline ListRobotsRequest& operator=(const ListRobotsRequest& from) { CopyFrom(from); return *this; } - inline AuthenticatorInfo& operator=(AuthenticatorInfo&& from) noexcept { + inline ListRobotsRequest& operator=(ListRobotsRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -21736,201 +20103,145 @@ class AuthenticatorInfo final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const AuthenticatorInfo& default_instance() { + static const ListRobotsRequest& default_instance() { return *internal_default_instance(); } - static inline const AuthenticatorInfo* internal_default_instance() { - return reinterpret_cast( - &_AuthenticatorInfo_default_instance_); + static inline const ListRobotsRequest* internal_default_instance() { + return reinterpret_cast( + &_ListRobotsRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 3; + 113; - friend void swap(AuthenticatorInfo& a, AuthenticatorInfo& b) { + friend void swap(ListRobotsRequest& a, ListRobotsRequest& b) { a.Swap(&b); } - inline void Swap(AuthenticatorInfo* other) { + inline void Swap(ListRobotsRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(AuthenticatorInfo* other) { + void UnsafeArenaSwap(ListRobotsRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - AuthenticatorInfo* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const AuthenticatorInfo& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const AuthenticatorInfo& from) { - AuthenticatorInfo::MergeImpl(*this, from); + ListRobotsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ListRobotsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ListRobotsRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(AuthenticatorInfo* other); + void SetCachedSize(int size) const final; + void InternalSwap(ListRobotsRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.AuthenticatorInfo"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.ListRobotsRequest"; } protected: - explicit AuthenticatorInfo(::google::protobuf::Arena* arena); - AuthenticatorInfo(::google::protobuf::Arena* arena, const AuthenticatorInfo& from); + explicit ListRobotsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kValueFieldNumber = 2, - kTypeFieldNumber = 1, - kIsDeactivatedFieldNumber = 3, + kLocationIdFieldNumber = 1, }; - // string value = 2 [json_name = "value"]; - void clear_value() ; - const std::string& value() const; - template - void set_value(Arg_&& arg, Args_... args); - std::string* mutable_value(); - PROTOBUF_NODISCARD std::string* release_value(); - void set_allocated_value(std::string* value); - - private: - const std::string& _internal_value() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_value( - const std::string& value); - std::string* _internal_mutable_value(); - - public: - // .viam.app.v1.AuthenticationType type = 1 [json_name = "type"]; - void clear_type() ; - ::viam::app::v1::AuthenticationType type() const; - void set_type(::viam::app::v1::AuthenticationType value); - + // string location_id = 1 [json_name = "locationId"]; + void clear_location_id(); + const std::string& location_id() const; + template + void set_location_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_location_id(); + PROTOBUF_NODISCARD std::string* release_location_id(); + void set_allocated_location_id(std::string* location_id); private: - ::viam::app::v1::AuthenticationType _internal_type() const; - void _internal_set_type(::viam::app::v1::AuthenticationType value); - + const std::string& _internal_location_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_location_id(const std::string& value); + std::string* _internal_mutable_location_id(); public: - // bool is_deactivated = 3 [json_name = "isDeactivated"]; - void clear_is_deactivated() ; - bool is_deactivated() const; - void set_is_deactivated(bool value); - - private: - bool _internal_is_deactivated() const; - void _internal_set_is_deactivated(bool value); - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.AuthenticatorInfo) + // @@protoc_insertion_point(class_scope:viam.app.v1.ListRobotsRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 0, - 43, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr value_; - int type_; - bool is_deactivated_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr location_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class AddRoleResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.AddRoleResponse) */ { +class ListMachineFragmentsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ListMachineFragmentsRequest) */ { public: - inline AddRoleResponse() : AddRoleResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR AddRoleResponse(::google::protobuf::internal::ConstantInitialized); + inline ListMachineFragmentsRequest() : ListMachineFragmentsRequest(nullptr) {} + ~ListMachineFragmentsRequest() override; + explicit PROTOBUF_CONSTEXPR ListMachineFragmentsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline AddRoleResponse(const AddRoleResponse& from) - : AddRoleResponse(nullptr, from) {} - AddRoleResponse(AddRoleResponse&& from) noexcept - : AddRoleResponse() { + ListMachineFragmentsRequest(const ListMachineFragmentsRequest& from); + ListMachineFragmentsRequest(ListMachineFragmentsRequest&& from) noexcept + : ListMachineFragmentsRequest() { *this = ::std::move(from); } - inline AddRoleResponse& operator=(const AddRoleResponse& from) { + inline ListMachineFragmentsRequest& operator=(const ListMachineFragmentsRequest& from) { CopyFrom(from); return *this; } - inline AddRoleResponse& operator=(AddRoleResponse&& from) noexcept { + inline ListMachineFragmentsRequest& operator=(ListMachineFragmentsRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -21940,134 +20251,171 @@ class AddRoleResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const AddRoleResponse& default_instance() { + static const ListMachineFragmentsRequest& default_instance() { return *internal_default_instance(); } - static inline const AddRoleResponse* internal_default_instance() { - return reinterpret_cast( - &_AddRoleResponse_default_instance_); + static inline const ListMachineFragmentsRequest* internal_default_instance() { + return reinterpret_cast( + &_ListMachineFragmentsRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 132; + 114; - friend void swap(AddRoleResponse& a, AddRoleResponse& b) { + friend void swap(ListMachineFragmentsRequest& a, ListMachineFragmentsRequest& b) { a.Swap(&b); } - inline void Swap(AddRoleResponse* other) { + inline void Swap(ListMachineFragmentsRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(AddRoleResponse* other) { + void UnsafeArenaSwap(ListMachineFragmentsRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - AddRoleResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const AddRoleResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const AddRoleResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + ListMachineFragmentsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ListMachineFragmentsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ListMachineFragmentsRequest& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.AddRoleResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ListMachineFragmentsRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.ListMachineFragmentsRequest"; } protected: - explicit AddRoleResponse(::google::protobuf::Arena* arena); - AddRoleResponse(::google::protobuf::Arena* arena, const AddRoleResponse& from); + explicit ListMachineFragmentsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.app.v1.AddRoleResponse) + enum : int { + kAdditionalFragmentIdsFieldNumber = 2, + kMachineIdFieldNumber = 1, + }; + // repeated string additional_fragment_ids = 2 [json_name = "additionalFragmentIds"]; + int additional_fragment_ids_size() const; + private: + int _internal_additional_fragment_ids_size() const; + public: + void clear_additional_fragment_ids(); + const std::string& additional_fragment_ids(int index) const; + std::string* mutable_additional_fragment_ids(int index); + void set_additional_fragment_ids(int index, const std::string& value); + void set_additional_fragment_ids(int index, std::string&& value); + void set_additional_fragment_ids(int index, const char* value); + void set_additional_fragment_ids(int index, const char* value, size_t size); + std::string* add_additional_fragment_ids(); + void add_additional_fragment_ids(const std::string& value); + void add_additional_fragment_ids(std::string&& value); + void add_additional_fragment_ids(const char* value); + void add_additional_fragment_ids(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& additional_fragment_ids() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_additional_fragment_ids(); + private: + const std::string& _internal_additional_fragment_ids(int index) const; + std::string* _internal_add_additional_fragment_ids(); + public: + + // string machine_id = 1 [json_name = "machineId"]; + void clear_machine_id(); + const std::string& machine_id() const; + template + void set_machine_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_machine_id(); + PROTOBUF_NODISCARD std::string* release_machine_id(); + void set_allocated_machine_id(std::string* machine_id); + private: + const std::string& _internal_machine_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_machine_id(const std::string& value); + std::string* _internal_mutable_machine_id(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.ListMachineFragmentsRequest) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField additional_fragment_ids_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr machine_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Uploads final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.Uploads) */ { +class ListMachineFragmentsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ListMachineFragmentsResponse) */ { public: - inline Uploads() : Uploads(nullptr) {} - ~Uploads() override; - template - explicit PROTOBUF_CONSTEXPR Uploads(::google::protobuf::internal::ConstantInitialized); + inline ListMachineFragmentsResponse() : ListMachineFragmentsResponse(nullptr) {} + ~ListMachineFragmentsResponse() override; + explicit PROTOBUF_CONSTEXPR ListMachineFragmentsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Uploads(const Uploads& from) - : Uploads(nullptr, from) {} - Uploads(Uploads&& from) noexcept - : Uploads() { + ListMachineFragmentsResponse(const ListMachineFragmentsResponse& from); + ListMachineFragmentsResponse(ListMachineFragmentsResponse&& from) noexcept + : ListMachineFragmentsResponse() { *this = ::std::move(from); } - inline Uploads& operator=(const Uploads& from) { + inline ListMachineFragmentsResponse& operator=(const ListMachineFragmentsResponse& from) { CopyFrom(from); return *this; } - inline Uploads& operator=(Uploads&& from) noexcept { + inline ListMachineFragmentsResponse& operator=(ListMachineFragmentsResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -22077,196 +20425,169 @@ class Uploads final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Uploads& default_instance() { + static const ListMachineFragmentsResponse& default_instance() { return *internal_default_instance(); } - static inline const Uploads* internal_default_instance() { - return reinterpret_cast( - &_Uploads_default_instance_); + static inline const ListMachineFragmentsResponse* internal_default_instance() { + return reinterpret_cast( + &_ListMachineFragmentsResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 172; + 115; - friend void swap(Uploads& a, Uploads& b) { + friend void swap(ListMachineFragmentsResponse& a, ListMachineFragmentsResponse& b) { a.Swap(&b); } - inline void Swap(Uploads* other) { + inline void Swap(ListMachineFragmentsResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Uploads* other) { + void UnsafeArenaSwap(ListMachineFragmentsResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Uploads* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Uploads& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Uploads& from) { - Uploads::MergeImpl(*this, from); + ListMachineFragmentsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ListMachineFragmentsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ListMachineFragmentsResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Uploads* other); + void SetCachedSize(int size) const final; + void InternalSwap(ListMachineFragmentsResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.Uploads"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.ListMachineFragmentsResponse"; } protected: - explicit Uploads(::google::protobuf::Arena* arena); - Uploads(::google::protobuf::Arena* arena, const Uploads& from); + explicit ListMachineFragmentsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kPlatformFieldNumber = 1, - kUploadedAtFieldNumber = 2, + kFragmentsFieldNumber = 1, + kResolvedFragmentsFieldNumber = 2, }; - // string platform = 1 [json_name = "platform"]; - void clear_platform() ; - const std::string& platform() const; - template - void set_platform(Arg_&& arg, Args_... args); - std::string* mutable_platform(); - PROTOBUF_NODISCARD std::string* release_platform(); - void set_allocated_platform(std::string* value); - + // repeated .viam.app.v1.Fragment fragments = 1 [json_name = "fragments"]; + int fragments_size() const; private: - const std::string& _internal_platform() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_platform( - const std::string& value); - std::string* _internal_mutable_platform(); - + int _internal_fragments_size() const; public: - // .google.protobuf.Timestamp uploaded_at = 2 [json_name = "uploadedAt"]; - bool has_uploaded_at() const; - void clear_uploaded_at() ; - const ::google::protobuf::Timestamp& uploaded_at() const; - PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_uploaded_at(); - ::google::protobuf::Timestamp* mutable_uploaded_at(); - void set_allocated_uploaded_at(::google::protobuf::Timestamp* value); - void unsafe_arena_set_allocated_uploaded_at(::google::protobuf::Timestamp* value); - ::google::protobuf::Timestamp* unsafe_arena_release_uploaded_at(); - + void clear_fragments(); + ::viam::app::v1::Fragment* mutable_fragments(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Fragment >* + mutable_fragments(); private: - const ::google::protobuf::Timestamp& _internal_uploaded_at() const; - ::google::protobuf::Timestamp* _internal_mutable_uploaded_at(); - + const ::viam::app::v1::Fragment& _internal_fragments(int index) const; + ::viam::app::v1::Fragment* _internal_add_fragments(); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.Uploads) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 36, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr platform_; - ::google::protobuf::Timestamp* uploaded_at_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- + const ::viam::app::v1::Fragment& fragments(int index) const; + ::viam::app::v1::Fragment* add_fragments(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Fragment >& + fragments() const; -class UploadModuleFileRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.UploadModuleFileRequest) */ { - public: - inline UploadModuleFileRequest() : UploadModuleFileRequest(nullptr) {} - ~UploadModuleFileRequest() override; - template - explicit PROTOBUF_CONSTEXPR UploadModuleFileRequest(::google::protobuf::internal::ConstantInitialized); + // repeated .viam.app.v1.ResolvedFragment resolved_fragments = 2 [json_name = "resolvedFragments"]; + int resolved_fragments_size() const; + private: + int _internal_resolved_fragments_size() const; + public: + void clear_resolved_fragments(); + ::viam::app::v1::ResolvedFragment* mutable_resolved_fragments(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ResolvedFragment >* + mutable_resolved_fragments(); + private: + const ::viam::app::v1::ResolvedFragment& _internal_resolved_fragments(int index) const; + ::viam::app::v1::ResolvedFragment* _internal_add_resolved_fragments(); + public: + const ::viam::app::v1::ResolvedFragment& resolved_fragments(int index) const; + ::viam::app::v1::ResolvedFragment* add_resolved_fragments(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ResolvedFragment >& + resolved_fragments() const; - inline UploadModuleFileRequest(const UploadModuleFileRequest& from) - : UploadModuleFileRequest(nullptr, from) {} - UploadModuleFileRequest(UploadModuleFileRequest&& from) noexcept - : UploadModuleFileRequest() { + // @@protoc_insertion_point(class_scope:viam.app.v1.ListMachineFragmentsResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Fragment > fragments_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ResolvedFragment > resolved_fragments_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class ListRobotsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ListRobotsResponse) */ { + public: + inline ListRobotsResponse() : ListRobotsResponse(nullptr) {} + ~ListRobotsResponse() override; + explicit PROTOBUF_CONSTEXPR ListRobotsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ListRobotsResponse(const ListRobotsResponse& from); + ListRobotsResponse(ListRobotsResponse&& from) noexcept + : ListRobotsResponse() { *this = ::std::move(from); } - inline UploadModuleFileRequest& operator=(const UploadModuleFileRequest& from) { + inline ListRobotsResponse& operator=(const ListRobotsResponse& from) { CopyFrom(from); return *this; } - inline UploadModuleFileRequest& operator=(UploadModuleFileRequest&& from) noexcept { + inline ListRobotsResponse& operator=(ListRobotsResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -22276,219 +20597,149 @@ class UploadModuleFileRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const UploadModuleFileRequest& default_instance() { + static const ListRobotsResponse& default_instance() { return *internal_default_instance(); } - enum ModuleFileCase { - kModuleFileInfo = 1, - kFile = 2, - MODULE_FILE_NOT_SET = 0, - }; - - static inline const UploadModuleFileRequest* internal_default_instance() { - return reinterpret_cast( - &_UploadModuleFileRequest_default_instance_); + static inline const ListRobotsResponse* internal_default_instance() { + return reinterpret_cast( + &_ListRobotsResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 166; + 116; - friend void swap(UploadModuleFileRequest& a, UploadModuleFileRequest& b) { + friend void swap(ListRobotsResponse& a, ListRobotsResponse& b) { a.Swap(&b); } - inline void Swap(UploadModuleFileRequest* other) { + inline void Swap(ListRobotsResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(UploadModuleFileRequest* other) { + void UnsafeArenaSwap(ListRobotsResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - UploadModuleFileRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const UploadModuleFileRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const UploadModuleFileRequest& from) { - UploadModuleFileRequest::MergeImpl(*this, from); + ListRobotsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ListRobotsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ListRobotsResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(UploadModuleFileRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(ListRobotsResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.UploadModuleFileRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.ListRobotsResponse"; } protected: - explicit UploadModuleFileRequest(::google::protobuf::Arena* arena); - UploadModuleFileRequest(::google::protobuf::Arena* arena, const UploadModuleFileRequest& from); + explicit ListRobotsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kModuleFileInfoFieldNumber = 1, - kFileFieldNumber = 2, + kRobotsFieldNumber = 1, }; - // .viam.app.v1.ModuleFileInfo module_file_info = 1 [json_name = "moduleFileInfo"]; - bool has_module_file_info() const; + // repeated .viam.app.v1.Robot robots = 1 [json_name = "robots"]; + int robots_size() const; private: - bool _internal_has_module_file_info() const; - + int _internal_robots_size() const; public: - void clear_module_file_info() ; - const ::viam::app::v1::ModuleFileInfo& module_file_info() const; - PROTOBUF_NODISCARD ::viam::app::v1::ModuleFileInfo* release_module_file_info(); - ::viam::app::v1::ModuleFileInfo* mutable_module_file_info(); - void set_allocated_module_file_info(::viam::app::v1::ModuleFileInfo* value); - void unsafe_arena_set_allocated_module_file_info(::viam::app::v1::ModuleFileInfo* value); - ::viam::app::v1::ModuleFileInfo* unsafe_arena_release_module_file_info(); - + void clear_robots(); + ::viam::app::v1::Robot* mutable_robots(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Robot >* + mutable_robots(); private: - const ::viam::app::v1::ModuleFileInfo& _internal_module_file_info() const; - ::viam::app::v1::ModuleFileInfo* _internal_mutable_module_file_info(); - + const ::viam::app::v1::Robot& _internal_robots(int index) const; + ::viam::app::v1::Robot* _internal_add_robots(); public: - // bytes file = 2 [json_name = "file"]; - bool has_file() const; - void clear_file() ; - const std::string& file() const; - template - void set_file(Arg_&& arg, Args_... args); - std::string* mutable_file(); - PROTOBUF_NODISCARD std::string* release_file(); - void set_allocated_file(std::string* value); - - private: - const std::string& _internal_file() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_file( - const std::string& value); - std::string* _internal_mutable_file(); + const ::viam::app::v1::Robot& robots(int index) const; + ::viam::app::v1::Robot* add_robots(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Robot >& + robots() const; - public: - void clear_module_file(); - ModuleFileCase module_file_case() const; - // @@protoc_insertion_point(class_scope:viam.app.v1.UploadModuleFileRequest) + // @@protoc_insertion_point(class_scope:viam.app.v1.ListRobotsResponse) private: class _Internal; - void set_has_module_file_info(); - void set_has_file(); - inline bool has_module_file() const; - inline void clear_has_module_file(); - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 2, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - union ModuleFileUnion { - constexpr ModuleFileUnion() : _constinit_{} {} - ::google::protobuf::internal::ConstantInitialized _constinit_; - ::viam::app::v1::ModuleFileInfo* module_file_info_; - ::google::protobuf::internal::ArenaStringPtr file_; - } module_file_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t _oneof_case_[1]; - - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Robot > robots_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class UpdateRobotPartRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.UpdateRobotPartRequest) */ { +class NewRobotRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.NewRobotRequest) */ { public: - inline UpdateRobotPartRequest() : UpdateRobotPartRequest(nullptr) {} - ~UpdateRobotPartRequest() override; - template - explicit PROTOBUF_CONSTEXPR UpdateRobotPartRequest(::google::protobuf::internal::ConstantInitialized); + inline NewRobotRequest() : NewRobotRequest(nullptr) {} + ~NewRobotRequest() override; + explicit PROTOBUF_CONSTEXPR NewRobotRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline UpdateRobotPartRequest(const UpdateRobotPartRequest& from) - : UpdateRobotPartRequest(nullptr, from) {} - UpdateRobotPartRequest(UpdateRobotPartRequest&& from) noexcept - : UpdateRobotPartRequest() { + NewRobotRequest(const NewRobotRequest& from); + NewRobotRequest(NewRobotRequest&& from) noexcept + : NewRobotRequest() { *this = ::std::move(from); } - inline UpdateRobotPartRequest& operator=(const UpdateRobotPartRequest& from) { + inline NewRobotRequest& operator=(const NewRobotRequest& from) { CopyFrom(from); return *this; } - inline UpdateRobotPartRequest& operator=(UpdateRobotPartRequest&& from) noexcept { + inline NewRobotRequest& operator=(NewRobotRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -22498,214 +20749,161 @@ class UpdateRobotPartRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const UpdateRobotPartRequest& default_instance() { + static const NewRobotRequest& default_instance() { return *internal_default_instance(); } - static inline const UpdateRobotPartRequest* internal_default_instance() { - return reinterpret_cast( - &_UpdateRobotPartRequest_default_instance_); + static inline const NewRobotRequest* internal_default_instance() { + return reinterpret_cast( + &_NewRobotRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 87; + 117; - friend void swap(UpdateRobotPartRequest& a, UpdateRobotPartRequest& b) { + friend void swap(NewRobotRequest& a, NewRobotRequest& b) { a.Swap(&b); } - inline void Swap(UpdateRobotPartRequest* other) { + inline void Swap(NewRobotRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(UpdateRobotPartRequest* other) { + void UnsafeArenaSwap(NewRobotRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - UpdateRobotPartRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const UpdateRobotPartRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const UpdateRobotPartRequest& from) { - UpdateRobotPartRequest::MergeImpl(*this, from); + NewRobotRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const NewRobotRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const NewRobotRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(UpdateRobotPartRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(NewRobotRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.UpdateRobotPartRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.NewRobotRequest"; } protected: - explicit UpdateRobotPartRequest(::google::protobuf::Arena* arena); - UpdateRobotPartRequest(::google::protobuf::Arena* arena, const UpdateRobotPartRequest& from); + explicit NewRobotRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kIdFieldNumber = 1, - kNameFieldNumber = 2, - kRobotConfigFieldNumber = 3, + kNameFieldNumber = 1, + kLocationFieldNumber = 2, }; - // string id = 1 [json_name = "id"]; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - - private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); - - public: - // string name = 2 [json_name = "name"]; - void clear_name() ; + // string name = 1 [json_name = "name"]; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); std::string* _internal_mutable_name(); - public: - // .google.protobuf.Struct robot_config = 3 [json_name = "robotConfig"]; - bool has_robot_config() const; - void clear_robot_config() ; - const ::google::protobuf::Struct& robot_config() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_robot_config(); - ::google::protobuf::Struct* mutable_robot_config(); - void set_allocated_robot_config(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_robot_config(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_robot_config(); + // string location = 2 [json_name = "location"]; + void clear_location(); + const std::string& location() const; + template + void set_location(ArgT0&& arg0, ArgT... args); + std::string* mutable_location(); + PROTOBUF_NODISCARD std::string* release_location(); + void set_allocated_location(std::string* location); private: - const ::google::protobuf::Struct& _internal_robot_config() const; - ::google::protobuf::Struct* _internal_mutable_robot_config(); - + const std::string& _internal_location() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_location(const std::string& value); + std::string* _internal_mutable_location(); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.UpdateRobotPartRequest) + + // @@protoc_insertion_point(class_scope:viam.app.v1.NewRobotRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 1, - 49, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr id_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* robot_config_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr location_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class UpdateOrganizationInviteAuthorizationsRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest) */ { +class NewRobotResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.NewRobotResponse) */ { public: - inline UpdateOrganizationInviteAuthorizationsRequest() : UpdateOrganizationInviteAuthorizationsRequest(nullptr) {} - ~UpdateOrganizationInviteAuthorizationsRequest() override; - template - explicit PROTOBUF_CONSTEXPR UpdateOrganizationInviteAuthorizationsRequest(::google::protobuf::internal::ConstantInitialized); + inline NewRobotResponse() : NewRobotResponse(nullptr) {} + ~NewRobotResponse() override; + explicit PROTOBUF_CONSTEXPR NewRobotResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline UpdateOrganizationInviteAuthorizationsRequest(const UpdateOrganizationInviteAuthorizationsRequest& from) - : UpdateOrganizationInviteAuthorizationsRequest(nullptr, from) {} - UpdateOrganizationInviteAuthorizationsRequest(UpdateOrganizationInviteAuthorizationsRequest&& from) noexcept - : UpdateOrganizationInviteAuthorizationsRequest() { + NewRobotResponse(const NewRobotResponse& from); + NewRobotResponse(NewRobotResponse&& from) noexcept + : NewRobotResponse() { *this = ::std::move(from); } - inline UpdateOrganizationInviteAuthorizationsRequest& operator=(const UpdateOrganizationInviteAuthorizationsRequest& from) { + inline NewRobotResponse& operator=(const NewRobotResponse& from) { CopyFrom(from); return *this; } - inline UpdateOrganizationInviteAuthorizationsRequest& operator=(UpdateOrganizationInviteAuthorizationsRequest&& from) noexcept { + inline NewRobotResponse& operator=(NewRobotResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -22715,236 +20913,145 @@ class UpdateOrganizationInviteAuthorizationsRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const UpdateOrganizationInviteAuthorizationsRequest& default_instance() { + static const NewRobotResponse& default_instance() { return *internal_default_instance(); } - static inline const UpdateOrganizationInviteAuthorizationsRequest* internal_default_instance() { - return reinterpret_cast( - &_UpdateOrganizationInviteAuthorizationsRequest_default_instance_); + static inline const NewRobotResponse* internal_default_instance() { + return reinterpret_cast( + &_NewRobotResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 23; + 118; - friend void swap(UpdateOrganizationInviteAuthorizationsRequest& a, UpdateOrganizationInviteAuthorizationsRequest& b) { + friend void swap(NewRobotResponse& a, NewRobotResponse& b) { a.Swap(&b); } - inline void Swap(UpdateOrganizationInviteAuthorizationsRequest* other) { + inline void Swap(NewRobotResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(UpdateOrganizationInviteAuthorizationsRequest* other) { + void UnsafeArenaSwap(NewRobotResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - UpdateOrganizationInviteAuthorizationsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const UpdateOrganizationInviteAuthorizationsRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const UpdateOrganizationInviteAuthorizationsRequest& from) { - UpdateOrganizationInviteAuthorizationsRequest::MergeImpl(*this, from); + NewRobotResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const NewRobotResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const NewRobotResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(UpdateOrganizationInviteAuthorizationsRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(NewRobotResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.NewRobotResponse"; } protected: - explicit UpdateOrganizationInviteAuthorizationsRequest(::google::protobuf::Arena* arena); - UpdateOrganizationInviteAuthorizationsRequest(::google::protobuf::Arena* arena, const UpdateOrganizationInviteAuthorizationsRequest& from); + explicit NewRobotResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kAddAuthorizationsFieldNumber = 3, - kRemoveAuthorizationsFieldNumber = 4, - kOrganizationIdFieldNumber = 1, - kEmailFieldNumber = 2, + kIdFieldNumber = 1, }; - // repeated .viam.app.v1.Authorization add_authorizations = 3 [json_name = "addAuthorizations"]; - int add_authorizations_size() const; - private: - int _internal_add_authorizations_size() const; - - public: - void clear_add_authorizations() ; - ::viam::app::v1::Authorization* mutable_add_authorizations(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Authorization >* - mutable_add_authorizations(); - private: - const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Authorization>& _internal_add_authorizations() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::Authorization>* _internal_mutable_add_authorizations(); - public: - const ::viam::app::v1::Authorization& add_authorizations(int index) const; - ::viam::app::v1::Authorization* add_add_authorizations(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Authorization >& - add_authorizations() const; - // repeated .viam.app.v1.Authorization remove_authorizations = 4 [json_name = "removeAuthorizations"]; - int remove_authorizations_size() const; - private: - int _internal_remove_authorizations_size() const; - - public: - void clear_remove_authorizations() ; - ::viam::app::v1::Authorization* mutable_remove_authorizations(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Authorization >* - mutable_remove_authorizations(); - private: - const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Authorization>& _internal_remove_authorizations() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::Authorization>* _internal_mutable_remove_authorizations(); - public: - const ::viam::app::v1::Authorization& remove_authorizations(int index) const; - ::viam::app::v1::Authorization* add_remove_authorizations(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Authorization >& - remove_authorizations() const; - // string organization_id = 1 [json_name = "organizationId"]; - void clear_organization_id() ; - const std::string& organization_id() const; - template - void set_organization_id(Arg_&& arg, Args_... args); - std::string* mutable_organization_id(); - PROTOBUF_NODISCARD std::string* release_organization_id(); - void set_allocated_organization_id(std::string* value); - + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); private: - const std::string& _internal_organization_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id( - const std::string& value); - std::string* _internal_mutable_organization_id(); - + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); public: - // string email = 2 [json_name = "email"]; - void clear_email() ; - const std::string& email() const; - template - void set_email(Arg_&& arg, Args_... args); - std::string* mutable_email(); - PROTOBUF_NODISCARD std::string* release_email(); - void set_allocated_email(std::string* value); - - private: - const std::string& _internal_email() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_email( - const std::string& value); - std::string* _internal_mutable_email(); - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest) + // @@protoc_insertion_point(class_scope:viam.app.v1.NewRobotResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 2, - 86, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Authorization > add_authorizations_; - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Authorization > remove_authorizations_; - ::google::protobuf::internal::ArenaStringPtr organization_id_; - ::google::protobuf::internal::ArenaStringPtr email_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class UpdateModuleRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.UpdateModuleRequest) */ { +class UpdateRobotRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.UpdateRobotRequest) */ { public: - inline UpdateModuleRequest() : UpdateModuleRequest(nullptr) {} - ~UpdateModuleRequest() override; - template - explicit PROTOBUF_CONSTEXPR UpdateModuleRequest(::google::protobuf::internal::ConstantInitialized); + inline UpdateRobotRequest() : UpdateRobotRequest(nullptr) {} + ~UpdateRobotRequest() override; + explicit PROTOBUF_CONSTEXPR UpdateRobotRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline UpdateModuleRequest(const UpdateModuleRequest& from) - : UpdateModuleRequest(nullptr, from) {} - UpdateModuleRequest(UpdateModuleRequest&& from) noexcept - : UpdateModuleRequest() { + UpdateRobotRequest(const UpdateRobotRequest& from); + UpdateRobotRequest(UpdateRobotRequest&& from) noexcept + : UpdateRobotRequest() { *this = ::std::move(from); } - inline UpdateModuleRequest& operator=(const UpdateModuleRequest& from) { + inline UpdateRobotRequest& operator=(const UpdateRobotRequest& from) { CopyFrom(from); return *this; } - inline UpdateModuleRequest& operator=(UpdateModuleRequest&& from) noexcept { + inline UpdateRobotRequest& operator=(UpdateRobotRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -22954,284 +21061,177 @@ class UpdateModuleRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const UpdateModuleRequest& default_instance() { + static const UpdateRobotRequest& default_instance() { return *internal_default_instance(); } - static inline const UpdateModuleRequest* internal_default_instance() { - return reinterpret_cast( - &_UpdateModuleRequest_default_instance_); + static inline const UpdateRobotRequest* internal_default_instance() { + return reinterpret_cast( + &_UpdateRobotRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 162; + 119; - friend void swap(UpdateModuleRequest& a, UpdateModuleRequest& b) { + friend void swap(UpdateRobotRequest& a, UpdateRobotRequest& b) { a.Swap(&b); } - inline void Swap(UpdateModuleRequest* other) { + inline void Swap(UpdateRobotRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(UpdateModuleRequest* other) { + void UnsafeArenaSwap(UpdateRobotRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - UpdateModuleRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const UpdateModuleRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const UpdateModuleRequest& from) { - UpdateModuleRequest::MergeImpl(*this, from); + UpdateRobotRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const UpdateRobotRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const UpdateRobotRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(UpdateModuleRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(UpdateRobotRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.UpdateModuleRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.UpdateRobotRequest"; } protected: - explicit UpdateModuleRequest(::google::protobuf::Arena* arena); - UpdateModuleRequest(::google::protobuf::Arena* arena, const UpdateModuleRequest& from); + explicit UpdateRobotRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kModelsFieldNumber = 5, - kModuleIdFieldNumber = 1, - kUrlFieldNumber = 3, - kDescriptionFieldNumber = 4, - kEntrypointFieldNumber = 6, - kFirstRunFieldNumber = 7, - kVisibilityFieldNumber = 2, + kIdFieldNumber = 1, + kNameFieldNumber = 2, + kLocationFieldNumber = 3, }; - // repeated .viam.app.v1.Model models = 5 [json_name = "models"]; - int models_size() const; - private: - int _internal_models_size() const; - - public: - void clear_models() ; - ::viam::app::v1::Model* mutable_models(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Model >* - mutable_models(); - private: - const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Model>& _internal_models() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::Model>* _internal_mutable_models(); - public: - const ::viam::app::v1::Model& models(int index) const; - ::viam::app::v1::Model* add_models(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Model >& - models() const; - // string module_id = 1 [json_name = "moduleId"]; - void clear_module_id() ; - const std::string& module_id() const; - template - void set_module_id(Arg_&& arg, Args_... args); - std::string* mutable_module_id(); - PROTOBUF_NODISCARD std::string* release_module_id(); - void set_allocated_module_id(std::string* value); - - 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: - // string url = 3 [json_name = "url"]; - void clear_url() ; - const std::string& url() const; - template - void set_url(Arg_&& arg, Args_... args); - std::string* mutable_url(); - PROTOBUF_NODISCARD std::string* release_url(); - void set_allocated_url(std::string* value); - - private: - const std::string& _internal_url() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_url( - const std::string& value); - std::string* _internal_mutable_url(); - - public: - // string description = 4 [json_name = "description"]; - void clear_description() ; - const std::string& description() const; - template - void set_description(Arg_&& arg, Args_... args); - std::string* mutable_description(); - PROTOBUF_NODISCARD std::string* release_description(); - void set_allocated_description(std::string* value); - + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); private: - const std::string& _internal_description() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_description( - const std::string& value); - std::string* _internal_mutable_description(); - + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); public: - // string entrypoint = 6 [json_name = "entrypoint"]; - void clear_entrypoint() ; - const std::string& entrypoint() const; - template - void set_entrypoint(Arg_&& arg, Args_... args); - std::string* mutable_entrypoint(); - PROTOBUF_NODISCARD std::string* release_entrypoint(); - void set_allocated_entrypoint(std::string* value); + // string name = 2 [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_entrypoint() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_entrypoint( - const std::string& value); - std::string* _internal_mutable_entrypoint(); - + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); public: - // optional string first_run = 7 [json_name = "firstRun"]; - bool has_first_run() const; - void clear_first_run() ; - const std::string& first_run() const; - template - void set_first_run(Arg_&& arg, Args_... args); - std::string* mutable_first_run(); - PROTOBUF_NODISCARD std::string* release_first_run(); - void set_allocated_first_run(std::string* value); + // string location = 3 [json_name = "location"]; + void clear_location(); + const std::string& location() const; + template + void set_location(ArgT0&& arg0, ArgT... args); + std::string* mutable_location(); + PROTOBUF_NODISCARD std::string* release_location(); + void set_allocated_location(std::string* location); private: - const std::string& _internal_first_run() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_first_run( - const std::string& value); - std::string* _internal_mutable_first_run(); - + const std::string& _internal_location() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_location(const std::string& value); + std::string* _internal_mutable_location(); public: - // .viam.app.v1.Visibility visibility = 2 [json_name = "visibility"]; - void clear_visibility() ; - ::viam::app::v1::Visibility visibility() const; - void set_visibility(::viam::app::v1::Visibility value); - - private: - ::viam::app::v1::Visibility _internal_visibility() const; - void _internal_set_visibility(::viam::app::v1::Visibility value); - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.UpdateModuleRequest) + // @@protoc_insertion_point(class_scope:viam.app.v1.UpdateRobotRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 7, 1, - 82, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Model > models_; - ::google::protobuf::internal::ArenaStringPtr module_id_; - ::google::protobuf::internal::ArenaStringPtr url_; - ::google::protobuf::internal::ArenaStringPtr description_; - ::google::protobuf::internal::ArenaStringPtr entrypoint_; - ::google::protobuf::internal::ArenaStringPtr first_run_; - int visibility_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr location_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class UpdateFragmentRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.UpdateFragmentRequest) */ { +class UpdateRobotResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.UpdateRobotResponse) */ { public: - inline UpdateFragmentRequest() : UpdateFragmentRequest(nullptr) {} - ~UpdateFragmentRequest() override; - template - explicit PROTOBUF_CONSTEXPR UpdateFragmentRequest(::google::protobuf::internal::ConstantInitialized); + inline UpdateRobotResponse() : UpdateRobotResponse(nullptr) {} + ~UpdateRobotResponse() override; + explicit PROTOBUF_CONSTEXPR UpdateRobotResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline UpdateFragmentRequest(const UpdateFragmentRequest& from) - : UpdateFragmentRequest(nullptr, from) {} - UpdateFragmentRequest(UpdateFragmentRequest&& from) noexcept - : UpdateFragmentRequest() { + UpdateRobotResponse(const UpdateRobotResponse& from); + UpdateRobotResponse(UpdateRobotResponse&& from) noexcept + : UpdateRobotResponse() { *this = ::std::move(from); } - inline UpdateFragmentRequest& operator=(const UpdateFragmentRequest& from) { + inline UpdateRobotResponse& operator=(const UpdateRobotResponse& from) { CopyFrom(from); return *this; } - inline UpdateFragmentRequest& operator=(UpdateFragmentRequest&& from) noexcept { + inline UpdateRobotResponse& operator=(UpdateRobotResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -23241,240 +21241,149 @@ class UpdateFragmentRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const UpdateFragmentRequest& default_instance() { + static const UpdateRobotResponse& default_instance() { return *internal_default_instance(); } - static inline const UpdateFragmentRequest* internal_default_instance() { - return reinterpret_cast( - &_UpdateFragmentRequest_default_instance_); + static inline const UpdateRobotResponse* internal_default_instance() { + return reinterpret_cast( + &_UpdateRobotResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 106; + 120; - friend void swap(UpdateFragmentRequest& a, UpdateFragmentRequest& b) { + friend void swap(UpdateRobotResponse& a, UpdateRobotResponse& b) { a.Swap(&b); } - inline void Swap(UpdateFragmentRequest* other) { + inline void Swap(UpdateRobotResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(UpdateFragmentRequest* other) { + void UnsafeArenaSwap(UpdateRobotResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - UpdateFragmentRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const UpdateFragmentRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const UpdateFragmentRequest& from) { - UpdateFragmentRequest::MergeImpl(*this, from); + UpdateRobotResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const UpdateRobotResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const UpdateRobotResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(UpdateFragmentRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(UpdateRobotResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.UpdateFragmentRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.UpdateRobotResponse"; } protected: - explicit UpdateFragmentRequest(::google::protobuf::Arena* arena); - UpdateFragmentRequest(::google::protobuf::Arena* arena, const UpdateFragmentRequest& from); + explicit UpdateRobotResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kIdFieldNumber = 1, - kNameFieldNumber = 2, - kConfigFieldNumber = 3, - kPublicFieldNumber = 4, - kVisibilityFieldNumber = 5, + kRobotFieldNumber = 1, }; - // string id = 1 [json_name = "id"]; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - + // .viam.app.v1.Robot robot = 1 [json_name = "robot"]; + bool has_robot() const; private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); - + bool _internal_has_robot() const; public: - // string name = 2 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + void clear_robot(); + const ::viam::app::v1::Robot& robot() const; + PROTOBUF_NODISCARD ::viam::app::v1::Robot* release_robot(); + ::viam::app::v1::Robot* mutable_robot(); + void set_allocated_robot(::viam::app::v1::Robot* robot); private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - + const ::viam::app::v1::Robot& _internal_robot() const; + ::viam::app::v1::Robot* _internal_mutable_robot(); public: - // .google.protobuf.Struct config = 3 [json_name = "config"]; - bool has_config() const; - void clear_config() ; - const ::google::protobuf::Struct& config() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_config(); - ::google::protobuf::Struct* mutable_config(); - void set_allocated_config(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_config(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_config(); + void unsafe_arena_set_allocated_robot( + ::viam::app::v1::Robot* robot); + ::viam::app::v1::Robot* unsafe_arena_release_robot(); - private: - const ::google::protobuf::Struct& _internal_config() const; - ::google::protobuf::Struct* _internal_mutable_config(); + // @@protoc_insertion_point(class_scope:viam.app.v1.UpdateRobotResponse) + private: + class _Internal; - public: - // optional bool public = 4 [json_name = "public"]; - bool has_public_() const; - void clear_public_() ; - bool public_() const; - void set_public_(bool value); - - private: - bool _internal_public_() const; - void _internal_set_public_(bool value); - - public: - // optional .viam.app.v1.FragmentVisibility visibility = 5 [json_name = "visibility"]; - bool has_visibility() const; - void clear_visibility() ; - ::viam::app::v1::FragmentVisibility visibility() const; - void set_visibility(::viam::app::v1::FragmentVisibility value); - - private: - ::viam::app::v1::FragmentVisibility _internal_visibility() const; - void _internal_set_visibility(::viam::app::v1::FragmentVisibility value); - - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.UpdateFragmentRequest) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 5, 1, - 48, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr id_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* config_; - bool public__; - int visibility_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::viam::app::v1::Robot* robot_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class UpdateBillingServiceRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.UpdateBillingServiceRequest) */ { +class DeleteRobotRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.DeleteRobotRequest) */ { public: - inline UpdateBillingServiceRequest() : UpdateBillingServiceRequest(nullptr) {} - ~UpdateBillingServiceRequest() override; - template - explicit PROTOBUF_CONSTEXPR UpdateBillingServiceRequest(::google::protobuf::internal::ConstantInitialized); + inline DeleteRobotRequest() : DeleteRobotRequest(nullptr) {} + ~DeleteRobotRequest() override; + explicit PROTOBUF_CONSTEXPR DeleteRobotRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline UpdateBillingServiceRequest(const UpdateBillingServiceRequest& from) - : UpdateBillingServiceRequest(nullptr, from) {} - UpdateBillingServiceRequest(UpdateBillingServiceRequest&& from) noexcept - : UpdateBillingServiceRequest() { + DeleteRobotRequest(const DeleteRobotRequest& from); + DeleteRobotRequest(DeleteRobotRequest&& from) noexcept + : DeleteRobotRequest() { *this = ::std::move(from); } - inline UpdateBillingServiceRequest& operator=(const UpdateBillingServiceRequest& from) { + inline DeleteRobotRequest& operator=(const DeleteRobotRequest& from) { CopyFrom(from); return *this; } - inline UpdateBillingServiceRequest& operator=(UpdateBillingServiceRequest&& from) noexcept { + inline DeleteRobotRequest& operator=(DeleteRobotRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -23484,196 +21393,144 @@ class UpdateBillingServiceRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const UpdateBillingServiceRequest& default_instance() { + static const DeleteRobotRequest& default_instance() { return *internal_default_instance(); } - static inline const UpdateBillingServiceRequest* internal_default_instance() { - return reinterpret_cast( - &_UpdateBillingServiceRequest_default_instance_); + static inline const DeleteRobotRequest* internal_default_instance() { + return reinterpret_cast( + &_DeleteRobotRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 34; + 121; - friend void swap(UpdateBillingServiceRequest& a, UpdateBillingServiceRequest& b) { + friend void swap(DeleteRobotRequest& a, DeleteRobotRequest& b) { a.Swap(&b); } - inline void Swap(UpdateBillingServiceRequest* other) { + inline void Swap(DeleteRobotRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(UpdateBillingServiceRequest* other) { + void UnsafeArenaSwap(DeleteRobotRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - UpdateBillingServiceRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const UpdateBillingServiceRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const UpdateBillingServiceRequest& from) { - UpdateBillingServiceRequest::MergeImpl(*this, from); + DeleteRobotRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DeleteRobotRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const DeleteRobotRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(UpdateBillingServiceRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(DeleteRobotRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.UpdateBillingServiceRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.DeleteRobotRequest"; } protected: - explicit UpdateBillingServiceRequest(::google::protobuf::Arena* arena); - UpdateBillingServiceRequest(::google::protobuf::Arena* arena, const UpdateBillingServiceRequest& from); + explicit DeleteRobotRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kOrgIdFieldNumber = 1, - kBillingAddressFieldNumber = 2, + kIdFieldNumber = 1, }; - // string org_id = 1 [json_name = "orgId"]; - void clear_org_id() ; - const std::string& org_id() const; - template - void set_org_id(Arg_&& arg, Args_... args); - std::string* mutable_org_id(); - PROTOBUF_NODISCARD std::string* release_org_id(); - void set_allocated_org_id(std::string* value); - + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); private: - const std::string& _internal_org_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_org_id( - const std::string& value); - std::string* _internal_mutable_org_id(); - + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); public: - // .viam.app.v1.BillingAddress billing_address = 2 [json_name = "billingAddress"]; - bool has_billing_address() const; - void clear_billing_address() ; - const ::viam::app::v1::BillingAddress& billing_address() const; - PROTOBUF_NODISCARD ::viam::app::v1::BillingAddress* release_billing_address(); - ::viam::app::v1::BillingAddress* mutable_billing_address(); - void set_allocated_billing_address(::viam::app::v1::BillingAddress* value); - void unsafe_arena_set_allocated_billing_address(::viam::app::v1::BillingAddress* value); - ::viam::app::v1::BillingAddress* unsafe_arena_release_billing_address(); - - private: - const ::viam::app::v1::BillingAddress& _internal_billing_address() const; - ::viam::app::v1::BillingAddress* _internal_mutable_billing_address(); - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.UpdateBillingServiceRequest) + // @@protoc_insertion_point(class_scope:viam.app.v1.DeleteRobotRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 54, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr org_id_; - ::viam::app::v1::BillingAddress* billing_address_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SharedSecret final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.SharedSecret) */ { +class DeleteRobotResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.DeleteRobotResponse) */ { public: - inline SharedSecret() : SharedSecret(nullptr) {} - ~SharedSecret() override; - template - explicit PROTOBUF_CONSTEXPR SharedSecret(::google::protobuf::internal::ConstantInitialized); + inline DeleteRobotResponse() : DeleteRobotResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR DeleteRobotResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline SharedSecret(const SharedSecret& from) - : SharedSecret(nullptr, from) {} - SharedSecret(SharedSecret&& from) noexcept - : SharedSecret() { + DeleteRobotResponse(const DeleteRobotResponse& from); + DeleteRobotResponse(DeleteRobotResponse&& from) noexcept + : DeleteRobotResponse() { *this = ::std::move(from); } - inline SharedSecret& operator=(const SharedSecret& from) { + inline DeleteRobotResponse& operator=(const DeleteRobotResponse& from) { CopyFrom(from); return *this; } - inline SharedSecret& operator=(SharedSecret&& from) noexcept { + inline DeleteRobotResponse& operator=(DeleteRobotResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -23683,247 +21540,114 @@ class SharedSecret final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SharedSecret& default_instance() { + static const DeleteRobotResponse& default_instance() { return *internal_default_instance(); } - static inline const SharedSecret* internal_default_instance() { - return reinterpret_cast( - &_SharedSecret_default_instance_); + static inline const DeleteRobotResponse* internal_default_instance() { + return reinterpret_cast( + &_DeleteRobotResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 49; + 122; - friend void swap(SharedSecret& a, SharedSecret& b) { + friend void swap(DeleteRobotResponse& a, DeleteRobotResponse& b) { a.Swap(&b); } - inline void Swap(SharedSecret* other) { + inline void Swap(DeleteRobotResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SharedSecret* other) { + void UnsafeArenaSwap(DeleteRobotResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SharedSecret* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + DeleteRobotResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SharedSecret& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SharedSecret& from) { - SharedSecret::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const DeleteRobotResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const DeleteRobotResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SharedSecret* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.SharedSecret"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.DeleteRobotResponse"; } protected: - explicit SharedSecret(::google::protobuf::Arena* arena); - SharedSecret(::google::protobuf::Arena* arena, const SharedSecret& from); + explicit DeleteRobotResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- - using State = SharedSecret_State; - static constexpr State STATE_UNSPECIFIED = SharedSecret_State_STATE_UNSPECIFIED; - static constexpr State STATE_ENABLED = SharedSecret_State_STATE_ENABLED; - static constexpr State STATE_DISABLED = SharedSecret_State_STATE_DISABLED; - static inline bool State_IsValid(int value) { - return SharedSecret_State_IsValid(value); - } - static constexpr State State_MIN = SharedSecret_State_State_MIN; - static constexpr State State_MAX = SharedSecret_State_State_MAX; - static constexpr int State_ARRAYSIZE = SharedSecret_State_State_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* State_descriptor() { - return SharedSecret_State_descriptor(); - } - template - static inline const std::string& State_Name(T value) { - return SharedSecret_State_Name(value); - } - static inline bool State_Parse(absl::string_view name, State* value) { - return SharedSecret_State_Parse(name, value); - } - // accessors ------------------------------------------------------- - enum : int { - kIdFieldNumber = 1, - kSecretFieldNumber = 2, - kCreatedOnFieldNumber = 3, - kStateFieldNumber = 4, - }; - // string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"id\""]; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - - private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); - - public: - // string secret = 2 [json_name = "secret", (.tagger.v1.tags) = "bson:\"secret\""]; - void clear_secret() ; - const std::string& secret() const; - template - void set_secret(Arg_&& arg, Args_... args); - std::string* mutable_secret(); - PROTOBUF_NODISCARD std::string* release_secret(); - void set_allocated_secret(std::string* value); - - private: - const std::string& _internal_secret() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_secret( - const std::string& value); - std::string* _internal_mutable_secret(); - - public: - // .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\" json:\"created_on\""]; - bool has_created_on() const; - void clear_created_on() ; - const ::google::protobuf::Timestamp& created_on() const; - PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_created_on(); - ::google::protobuf::Timestamp* mutable_created_on(); - void set_allocated_created_on(::google::protobuf::Timestamp* value); - void unsafe_arena_set_allocated_created_on(::google::protobuf::Timestamp* value); - ::google::protobuf::Timestamp* unsafe_arena_release_created_on(); - - private: - const ::google::protobuf::Timestamp& _internal_created_on() const; - ::google::protobuf::Timestamp* _internal_mutable_created_on(); - - public: - // .viam.app.v1.SharedSecret.State state = 4 [json_name = "state", (.tagger.v1.tags) = "bson:\"state\""]; - void clear_state() ; - ::viam::app::v1::SharedSecret_State state() const; - void set_state(::viam::app::v1::SharedSecret_State value); - - private: - ::viam::app::v1::SharedSecret_State _internal_state() const; - void _internal_set_state(::viam::app::v1::SharedSecret_State value); - - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.SharedSecret) + // @@protoc_insertion_point(class_scope:viam.app.v1.DeleteRobotResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 1, - 41, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr id_; - ::google::protobuf::internal::ArenaStringPtr secret_; - ::google::protobuf::Timestamp* created_on_; - int state_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Robot final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.Robot) */ { +class MarkPartAsMainRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.MarkPartAsMainRequest) */ { public: - inline Robot() : Robot(nullptr) {} - ~Robot() override; - template - explicit PROTOBUF_CONSTEXPR Robot(::google::protobuf::internal::ConstantInitialized); + inline MarkPartAsMainRequest() : MarkPartAsMainRequest(nullptr) {} + ~MarkPartAsMainRequest() override; + explicit PROTOBUF_CONSTEXPR MarkPartAsMainRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Robot(const Robot& from) - : Robot(nullptr, from) {} - Robot(Robot&& from) noexcept - : Robot() { + MarkPartAsMainRequest(const MarkPartAsMainRequest& from); + MarkPartAsMainRequest(MarkPartAsMainRequest&& from) noexcept + : MarkPartAsMainRequest() { *this = ::std::move(from); } - inline Robot& operator=(const Robot& from) { + inline MarkPartAsMainRequest& operator=(const MarkPartAsMainRequest& from) { CopyFrom(from); return *this; } - inline Robot& operator=(Robot&& from) noexcept { + inline MarkPartAsMainRequest& operator=(MarkPartAsMainRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -23933,249 +21657,144 @@ class Robot final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Robot& default_instance() { + static const MarkPartAsMainRequest& default_instance() { return *internal_default_instance(); } - static inline const Robot* internal_default_instance() { - return reinterpret_cast( - &_Robot_default_instance_); + static inline const MarkPartAsMainRequest* internal_default_instance() { + return reinterpret_cast( + &_MarkPartAsMainRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 0; + 123; - friend void swap(Robot& a, Robot& b) { + friend void swap(MarkPartAsMainRequest& a, MarkPartAsMainRequest& b) { a.Swap(&b); } - inline void Swap(Robot* other) { + inline void Swap(MarkPartAsMainRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Robot* other) { + void UnsafeArenaSwap(MarkPartAsMainRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Robot* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Robot& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Robot& from) { - Robot::MergeImpl(*this, from); + MarkPartAsMainRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MarkPartAsMainRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MarkPartAsMainRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Robot* other); + void SetCachedSize(int size) const final; + void InternalSwap(MarkPartAsMainRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.Robot"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.MarkPartAsMainRequest"; } protected: - explicit Robot(::google::protobuf::Arena* arena); - Robot(::google::protobuf::Arena* arena, const Robot& from); + explicit MarkPartAsMainRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kIdFieldNumber = 1, - kNameFieldNumber = 2, - kLocationFieldNumber = 3, - kLastAccessFieldNumber = 4, - kCreatedOnFieldNumber = 5, + kPartIdFieldNumber = 1, }; - // string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""]; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - - private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); - - public: - // string name = 2 [json_name = "name", (.tagger.v1.tags) = "bson:\"name\" json:\"name\""]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - - public: - // string location = 3 [json_name = "location", (.tagger.v1.tags) = "bson:\"location\" json:\"location\""]; - void clear_location() ; - const std::string& location() const; - template - void set_location(Arg_&& arg, Args_... args); - std::string* mutable_location(); - PROTOBUF_NODISCARD std::string* release_location(); - void set_allocated_location(std::string* value); - - private: - const std::string& _internal_location() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_location( - const std::string& value); - std::string* _internal_mutable_location(); - - public: - // .google.protobuf.Timestamp last_access = 4 [json_name = "lastAccess", (.tagger.v1.tags) = "bson:\"last_access\" json:\"last_access\""]; - bool has_last_access() const; - void clear_last_access() ; - const ::google::protobuf::Timestamp& last_access() const; - PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_last_access(); - ::google::protobuf::Timestamp* mutable_last_access(); - void set_allocated_last_access(::google::protobuf::Timestamp* value); - void unsafe_arena_set_allocated_last_access(::google::protobuf::Timestamp* value); - ::google::protobuf::Timestamp* unsafe_arena_release_last_access(); - + // string part_id = 1 [json_name = "partId"]; + void clear_part_id(); + const std::string& part_id() const; + template + void set_part_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_part_id(); + PROTOBUF_NODISCARD std::string* release_part_id(); + void set_allocated_part_id(std::string* part_id); private: - const ::google::protobuf::Timestamp& _internal_last_access() const; - ::google::protobuf::Timestamp* _internal_mutable_last_access(); - + const std::string& _internal_part_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_part_id(const std::string& value); + std::string* _internal_mutable_part_id(); public: - // .google.protobuf.Timestamp created_on = 5 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\""]; - bool has_created_on() const; - void clear_created_on() ; - const ::google::protobuf::Timestamp& created_on() const; - PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_created_on(); - ::google::protobuf::Timestamp* mutable_created_on(); - void set_allocated_created_on(::google::protobuf::Timestamp* value); - void unsafe_arena_set_allocated_created_on(::google::protobuf::Timestamp* value); - ::google::protobuf::Timestamp* unsafe_arena_release_created_on(); - private: - const ::google::protobuf::Timestamp& _internal_created_on() const; - ::google::protobuf::Timestamp* _internal_mutable_created_on(); - - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.Robot) + // @@protoc_insertion_point(class_scope:viam.app.v1.MarkPartAsMainRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 5, 2, - 40, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr id_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr location_; - ::google::protobuf::Timestamp* last_access_; - ::google::protobuf::Timestamp* created_on_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr part_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ResolvedFragment final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ResolvedFragment) */ { +class MarkPartAsMainResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.MarkPartAsMainResponse) */ { public: - inline ResolvedFragment() : ResolvedFragment(nullptr) {} - ~ResolvedFragment() override; - template - explicit PROTOBUF_CONSTEXPR ResolvedFragment(::google::protobuf::internal::ConstantInitialized); + inline MarkPartAsMainResponse() : MarkPartAsMainResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR MarkPartAsMainResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ResolvedFragment(const ResolvedFragment& from) - : ResolvedFragment(nullptr, from) {} - ResolvedFragment(ResolvedFragment&& from) noexcept - : ResolvedFragment() { + MarkPartAsMainResponse(const MarkPartAsMainResponse& from); + MarkPartAsMainResponse(MarkPartAsMainResponse&& from) noexcept + : MarkPartAsMainResponse() { *this = ::std::move(from); } - inline ResolvedFragment& operator=(const ResolvedFragment& from) { + inline MarkPartAsMainResponse& operator=(const MarkPartAsMainResponse& from) { CopyFrom(from); return *this; } - inline ResolvedFragment& operator=(ResolvedFragment&& from) noexcept { + inline MarkPartAsMainResponse& operator=(MarkPartAsMainResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -24185,213 +21804,114 @@ class ResolvedFragment final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ResolvedFragment& default_instance() { + static const MarkPartAsMainResponse& default_instance() { return *internal_default_instance(); } - static inline const ResolvedFragment* internal_default_instance() { - return reinterpret_cast( - &_ResolvedFragment_default_instance_); + static inline const MarkPartAsMainResponse* internal_default_instance() { + return reinterpret_cast( + &_MarkPartAsMainResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 99; + 124; - friend void swap(ResolvedFragment& a, ResolvedFragment& b) { + friend void swap(MarkPartAsMainResponse& a, MarkPartAsMainResponse& b) { a.Swap(&b); } - inline void Swap(ResolvedFragment* other) { + inline void Swap(MarkPartAsMainResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ResolvedFragment* other) { + void UnsafeArenaSwap(MarkPartAsMainResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ResolvedFragment* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + MarkPartAsMainResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ResolvedFragment& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ResolvedFragment& from) { - ResolvedFragment::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const MarkPartAsMainResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const MarkPartAsMainResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(ResolvedFragment* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.ResolvedFragment"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.MarkPartAsMainResponse"; } protected: - explicit ResolvedFragment(::google::protobuf::Arena* arena); - ResolvedFragment(::google::protobuf::Arena* arena, const ResolvedFragment& from); + explicit MarkPartAsMainResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kFragmentIdFieldNumber = 1, - kResolvedConfigFieldNumber = 2, - kErrorFieldNumber = 3, - }; - // string fragment_id = 1 [json_name = "fragmentId"]; - void clear_fragment_id() ; - const std::string& fragment_id() const; - template - void set_fragment_id(Arg_&& arg, Args_... args); - std::string* mutable_fragment_id(); - PROTOBUF_NODISCARD std::string* release_fragment_id(); - void set_allocated_fragment_id(std::string* value); - - private: - const std::string& _internal_fragment_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_fragment_id( - const std::string& value); - std::string* _internal_mutable_fragment_id(); - - public: - // .google.protobuf.Struct resolved_config = 2 [json_name = "resolvedConfig"]; - bool has_resolved_config() const; - void clear_resolved_config() ; - const ::google::protobuf::Struct& resolved_config() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_resolved_config(); - ::google::protobuf::Struct* mutable_resolved_config(); - void set_allocated_resolved_config(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_resolved_config(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_resolved_config(); - - private: - const ::google::protobuf::Struct& _internal_resolved_config() const; - ::google::protobuf::Struct* _internal_mutable_resolved_config(); - - public: - // .viam.app.v1.FragmentError error = 3 [json_name = "error"]; - bool has_error() const; - void clear_error() ; - const ::viam::app::v1::FragmentError& error() const; - PROTOBUF_NODISCARD ::viam::app::v1::FragmentError* release_error(); - ::viam::app::v1::FragmentError* mutable_error(); - void set_allocated_error(::viam::app::v1::FragmentError* value); - void unsafe_arena_set_allocated_error(::viam::app::v1::FragmentError* value); - ::viam::app::v1::FragmentError* unsafe_arena_release_error(); - - private: - const ::viam::app::v1::FragmentError& _internal_error() const; - ::viam::app::v1::FragmentError* _internal_mutable_error(); - - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.ResolvedFragment) + // @@protoc_insertion_point(class_scope:viam.app.v1.MarkPartAsMainResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 2, - 48, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr fragment_id_; - ::google::protobuf::Struct* resolved_config_; - ::viam::app::v1::FragmentError* error_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class RemoveRoleRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.RemoveRoleRequest) */ { +class MarkPartForRestartRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.MarkPartForRestartRequest) */ { public: - inline RemoveRoleRequest() : RemoveRoleRequest(nullptr) {} - ~RemoveRoleRequest() override; - template - explicit PROTOBUF_CONSTEXPR RemoveRoleRequest(::google::protobuf::internal::ConstantInitialized); + inline MarkPartForRestartRequest() : MarkPartForRestartRequest(nullptr) {} + ~MarkPartForRestartRequest() override; + explicit PROTOBUF_CONSTEXPR MarkPartForRestartRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline RemoveRoleRequest(const RemoveRoleRequest& from) - : RemoveRoleRequest(nullptr, from) {} - RemoveRoleRequest(RemoveRoleRequest&& from) noexcept - : RemoveRoleRequest() { + MarkPartForRestartRequest(const MarkPartForRestartRequest& from); + MarkPartForRestartRequest(MarkPartForRestartRequest&& from) noexcept + : MarkPartForRestartRequest() { *this = ::std::move(from); } - inline RemoveRoleRequest& operator=(const RemoveRoleRequest& from) { + inline MarkPartForRestartRequest& operator=(const MarkPartForRestartRequest& from) { CopyFrom(from); return *this; } - inline RemoveRoleRequest& operator=(RemoveRoleRequest&& from) noexcept { + inline MarkPartForRestartRequest& operator=(MarkPartForRestartRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -24401,178 +21921,144 @@ class RemoveRoleRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const RemoveRoleRequest& default_instance() { + static const MarkPartForRestartRequest& default_instance() { return *internal_default_instance(); } - static inline const RemoveRoleRequest* internal_default_instance() { - return reinterpret_cast( - &_RemoveRoleRequest_default_instance_); + static inline const MarkPartForRestartRequest* internal_default_instance() { + return reinterpret_cast( + &_MarkPartForRestartRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 133; + 125; - friend void swap(RemoveRoleRequest& a, RemoveRoleRequest& b) { + friend void swap(MarkPartForRestartRequest& a, MarkPartForRestartRequest& b) { a.Swap(&b); } - inline void Swap(RemoveRoleRequest* other) { + inline void Swap(MarkPartForRestartRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RemoveRoleRequest* other) { + void UnsafeArenaSwap(MarkPartForRestartRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - RemoveRoleRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const RemoveRoleRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const RemoveRoleRequest& from) { - RemoveRoleRequest::MergeImpl(*this, from); + MarkPartForRestartRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MarkPartForRestartRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MarkPartForRestartRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(RemoveRoleRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(MarkPartForRestartRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.RemoveRoleRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.MarkPartForRestartRequest"; } protected: - explicit RemoveRoleRequest(::google::protobuf::Arena* arena); - RemoveRoleRequest(::google::protobuf::Arena* arena, const RemoveRoleRequest& from); + explicit MarkPartForRestartRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kAuthorizationFieldNumber = 1, + kPartIdFieldNumber = 1, }; - // .viam.app.v1.Authorization authorization = 1 [json_name = "authorization"]; - bool has_authorization() const; - void clear_authorization() ; - const ::viam::app::v1::Authorization& authorization() const; - PROTOBUF_NODISCARD ::viam::app::v1::Authorization* release_authorization(); - ::viam::app::v1::Authorization* mutable_authorization(); - void set_allocated_authorization(::viam::app::v1::Authorization* value); - void unsafe_arena_set_allocated_authorization(::viam::app::v1::Authorization* value); - ::viam::app::v1::Authorization* unsafe_arena_release_authorization(); - + // string part_id = 1 [json_name = "partId"]; + void clear_part_id(); + const std::string& part_id() const; + template + void set_part_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_part_id(); + PROTOBUF_NODISCARD std::string* release_part_id(); + void set_allocated_part_id(std::string* part_id); private: - const ::viam::app::v1::Authorization& _internal_authorization() const; - ::viam::app::v1::Authorization* _internal_mutable_authorization(); - + const std::string& _internal_part_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_part_id(const std::string& value); + std::string* _internal_mutable_part_id(); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.RemoveRoleRequest) + + // @@protoc_insertion_point(class_scope:viam.app.v1.MarkPartForRestartRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::viam::app::v1::Authorization* authorization_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr part_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class OrganizationMember final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.OrganizationMember) */ { +class MarkPartForRestartResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.MarkPartForRestartResponse) */ { public: - inline OrganizationMember() : OrganizationMember(nullptr) {} - ~OrganizationMember() override; - template - explicit PROTOBUF_CONSTEXPR OrganizationMember(::google::protobuf::internal::ConstantInitialized); + inline MarkPartForRestartResponse() : MarkPartForRestartResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR MarkPartForRestartResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline OrganizationMember(const OrganizationMember& from) - : OrganizationMember(nullptr, from) {} - OrganizationMember(OrganizationMember&& from) noexcept - : OrganizationMember() { + MarkPartForRestartResponse(const MarkPartForRestartResponse& from); + MarkPartForRestartResponse(MarkPartForRestartResponse&& from) noexcept + : MarkPartForRestartResponse() { *this = ::std::move(from); } - inline OrganizationMember& operator=(const OrganizationMember& from) { + inline MarkPartForRestartResponse& operator=(const MarkPartForRestartResponse& from) { CopyFrom(from); return *this; } - inline OrganizationMember& operator=(OrganizationMember&& from) noexcept { + inline MarkPartForRestartResponse& operator=(MarkPartForRestartResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -24582,243 +22068,114 @@ class OrganizationMember final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const OrganizationMember& default_instance() { + static const MarkPartForRestartResponse& default_instance() { return *internal_default_instance(); } - static inline const OrganizationMember* internal_default_instance() { - return reinterpret_cast( - &_OrganizationMember_default_instance_); + static inline const MarkPartForRestartResponse* internal_default_instance() { + return reinterpret_cast( + &_MarkPartForRestartResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 6; + 126; - friend void swap(OrganizationMember& a, OrganizationMember& b) { + friend void swap(MarkPartForRestartResponse& a, MarkPartForRestartResponse& b) { a.Swap(&b); } - inline void Swap(OrganizationMember* other) { + inline void Swap(MarkPartForRestartResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(OrganizationMember* other) { + void UnsafeArenaSwap(MarkPartForRestartResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - OrganizationMember* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + MarkPartForRestartResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const OrganizationMember& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const OrganizationMember& from) { - OrganizationMember::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const MarkPartForRestartResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const MarkPartForRestartResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(OrganizationMember* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.OrganizationMember"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.MarkPartForRestartResponse"; } protected: - explicit OrganizationMember(::google::protobuf::Arena* arena); - OrganizationMember(::google::protobuf::Arena* arena, const OrganizationMember& from); + explicit MarkPartForRestartResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kEmailsFieldNumber = 2, - kUserIdFieldNumber = 1, - kDateAddedFieldNumber = 3, - kLastLoginFieldNumber = 4, - }; - // repeated string emails = 2 [json_name = "emails"]; - int emails_size() const; - private: - int _internal_emails_size() const; - - public: - void clear_emails() ; - const std::string& emails(int index) const; - std::string* mutable_emails(int index); - void set_emails(int index, const std::string& value); - void set_emails(int index, std::string&& value); - void set_emails(int index, const char* value); - void set_emails(int index, const char* value, std::size_t size); - void set_emails(int index, absl::string_view value); - std::string* add_emails(); - void add_emails(const std::string& value); - void add_emails(std::string&& value); - void add_emails(const char* value); - void add_emails(const char* value, std::size_t size); - void add_emails(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& emails() const; - ::google::protobuf::RepeatedPtrField* mutable_emails(); - - private: - const ::google::protobuf::RepeatedPtrField& _internal_emails() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_emails(); - - public: - // string user_id = 1 [json_name = "userId"]; - void clear_user_id() ; - const std::string& user_id() const; - template - void set_user_id(Arg_&& arg, Args_... args); - std::string* mutable_user_id(); - PROTOBUF_NODISCARD std::string* release_user_id(); - void set_allocated_user_id(std::string* value); - - private: - const std::string& _internal_user_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_user_id( - const std::string& value); - std::string* _internal_mutable_user_id(); - - public: - // .google.protobuf.Timestamp date_added = 3 [json_name = "dateAdded"]; - bool has_date_added() const; - void clear_date_added() ; - const ::google::protobuf::Timestamp& date_added() const; - PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_date_added(); - ::google::protobuf::Timestamp* mutable_date_added(); - void set_allocated_date_added(::google::protobuf::Timestamp* value); - void unsafe_arena_set_allocated_date_added(::google::protobuf::Timestamp* value); - ::google::protobuf::Timestamp* unsafe_arena_release_date_added(); - - private: - const ::google::protobuf::Timestamp& _internal_date_added() const; - ::google::protobuf::Timestamp* _internal_mutable_date_added(); - - public: - // optional .google.protobuf.Timestamp last_login = 4 [json_name = "lastLogin"]; - bool has_last_login() const; - void clear_last_login() ; - const ::google::protobuf::Timestamp& last_login() const; - PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_last_login(); - ::google::protobuf::Timestamp* mutable_last_login(); - void set_allocated_last_login(::google::protobuf::Timestamp* value); - void unsafe_arena_set_allocated_last_login(::google::protobuf::Timestamp* value); - ::google::protobuf::Timestamp* unsafe_arena_release_last_login(); - - private: - const ::google::protobuf::Timestamp& _internal_last_login() const; - ::google::protobuf::Timestamp* _internal_mutable_last_login(); - - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.OrganizationMember) + // @@protoc_insertion_point(class_scope:viam.app.v1.MarkPartForRestartResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 2, - 52, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField emails_; - ::google::protobuf::internal::ArenaStringPtr user_id_; - ::google::protobuf::Timestamp* date_added_; - ::google::protobuf::Timestamp* last_login_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class OrganizationInvite final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.OrganizationInvite) */ { +class CreateRobotPartSecretRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.CreateRobotPartSecretRequest) */ { public: - inline OrganizationInvite() : OrganizationInvite(nullptr) {} - ~OrganizationInvite() override; - template - explicit PROTOBUF_CONSTEXPR OrganizationInvite(::google::protobuf::internal::ConstantInitialized); + inline CreateRobotPartSecretRequest() : CreateRobotPartSecretRequest(nullptr) {} + ~CreateRobotPartSecretRequest() override; + explicit PROTOBUF_CONSTEXPR CreateRobotPartSecretRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline OrganizationInvite(const OrganizationInvite& from) - : OrganizationInvite(nullptr, from) {} - OrganizationInvite(OrganizationInvite&& from) noexcept - : OrganizationInvite() { + CreateRobotPartSecretRequest(const CreateRobotPartSecretRequest& from); + CreateRobotPartSecretRequest(CreateRobotPartSecretRequest&& from) noexcept + : CreateRobotPartSecretRequest() { *this = ::std::move(from); } - inline OrganizationInvite& operator=(const OrganizationInvite& from) { + inline CreateRobotPartSecretRequest& operator=(const CreateRobotPartSecretRequest& from) { CopyFrom(from); return *this; } - inline OrganizationInvite& operator=(OrganizationInvite&& from) noexcept { + inline CreateRobotPartSecretRequest& operator=(CreateRobotPartSecretRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -24828,234 +22185,145 @@ class OrganizationInvite final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const OrganizationInvite& default_instance() { + static const CreateRobotPartSecretRequest& default_instance() { return *internal_default_instance(); } - static inline const OrganizationInvite* internal_default_instance() { - return reinterpret_cast( - &_OrganizationInvite_default_instance_); + static inline const CreateRobotPartSecretRequest* internal_default_instance() { + return reinterpret_cast( + &_CreateRobotPartSecretRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 8; + 127; - friend void swap(OrganizationInvite& a, OrganizationInvite& b) { + friend void swap(CreateRobotPartSecretRequest& a, CreateRobotPartSecretRequest& b) { a.Swap(&b); } - inline void Swap(OrganizationInvite* other) { + inline void Swap(CreateRobotPartSecretRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(OrganizationInvite* other) { + void UnsafeArenaSwap(CreateRobotPartSecretRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - OrganizationInvite* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const OrganizationInvite& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const OrganizationInvite& from) { - OrganizationInvite::MergeImpl(*this, from); + CreateRobotPartSecretRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CreateRobotPartSecretRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CreateRobotPartSecretRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(OrganizationInvite* other); + void SetCachedSize(int size) const final; + void InternalSwap(CreateRobotPartSecretRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.OrganizationInvite"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.CreateRobotPartSecretRequest"; } protected: - explicit OrganizationInvite(::google::protobuf::Arena* arena); - OrganizationInvite(::google::protobuf::Arena* arena, const OrganizationInvite& from); + explicit CreateRobotPartSecretRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kAuthorizationsFieldNumber = 4, - kOrganizationIdFieldNumber = 1, - kEmailFieldNumber = 2, - kCreatedOnFieldNumber = 3, + kPartIdFieldNumber = 1, }; - // repeated .viam.app.v1.Authorization authorizations = 4 [json_name = "authorizations"]; - int authorizations_size() const; - private: - int _internal_authorizations_size() const; - - public: - void clear_authorizations() ; - ::viam::app::v1::Authorization* mutable_authorizations(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Authorization >* - mutable_authorizations(); - private: - const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Authorization>& _internal_authorizations() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::Authorization>* _internal_mutable_authorizations(); - public: - const ::viam::app::v1::Authorization& authorizations(int index) const; - ::viam::app::v1::Authorization* add_authorizations(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Authorization >& - authorizations() const; - // string organization_id = 1 [json_name = "organizationId"]; - void clear_organization_id() ; - const std::string& organization_id() const; - template - void set_organization_id(Arg_&& arg, Args_... args); - std::string* mutable_organization_id(); - PROTOBUF_NODISCARD std::string* release_organization_id(); - void set_allocated_organization_id(std::string* value); - - private: - const std::string& _internal_organization_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id( - const std::string& value); - std::string* _internal_mutable_organization_id(); - - public: - // string email = 2 [json_name = "email"]; - void clear_email() ; - const std::string& email() const; - template - void set_email(Arg_&& arg, Args_... args); - std::string* mutable_email(); - PROTOBUF_NODISCARD std::string* release_email(); - void set_allocated_email(std::string* value); - + // string part_id = 1 [json_name = "partId"]; + void clear_part_id(); + const std::string& part_id() const; + template + void set_part_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_part_id(); + PROTOBUF_NODISCARD std::string* release_part_id(); + void set_allocated_part_id(std::string* part_id); private: - const std::string& _internal_email() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_email( - const std::string& value); - std::string* _internal_mutable_email(); - + const std::string& _internal_part_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_part_id(const std::string& value); + std::string* _internal_mutable_part_id(); public: - // .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn"]; - bool has_created_on() const; - void clear_created_on() ; - const ::google::protobuf::Timestamp& created_on() const; - PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_created_on(); - ::google::protobuf::Timestamp* mutable_created_on(); - void set_allocated_created_on(::google::protobuf::Timestamp* value); - void unsafe_arena_set_allocated_created_on(::google::protobuf::Timestamp* value); - ::google::protobuf::Timestamp* unsafe_arena_release_created_on(); - - private: - const ::google::protobuf::Timestamp& _internal_created_on() const; - ::google::protobuf::Timestamp* _internal_mutable_created_on(); - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.OrganizationInvite) + // @@protoc_insertion_point(class_scope:viam.app.v1.CreateRobotPartSecretRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 2, - 59, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Authorization > authorizations_; - ::google::protobuf::internal::ArenaStringPtr organization_id_; - ::google::protobuf::internal::ArenaStringPtr email_; - ::google::protobuf::Timestamp* created_on_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr part_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Organization final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.Organization) */ { +class CreateRobotPartSecretResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.CreateRobotPartSecretResponse) */ { public: - inline Organization() : Organization(nullptr) {} - ~Organization() override; - template - explicit PROTOBUF_CONSTEXPR Organization(::google::protobuf::internal::ConstantInitialized); + inline CreateRobotPartSecretResponse() : CreateRobotPartSecretResponse(nullptr) {} + ~CreateRobotPartSecretResponse() override; + explicit PROTOBUF_CONSTEXPR CreateRobotPartSecretResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Organization(const Organization& from) - : Organization(nullptr, from) {} - Organization(Organization&& from) noexcept - : Organization() { + CreateRobotPartSecretResponse(const CreateRobotPartSecretResponse& from); + CreateRobotPartSecretResponse(CreateRobotPartSecretResponse&& from) noexcept + : CreateRobotPartSecretResponse() { *this = ::std::move(from); } - inline Organization& operator=(const Organization& from) { + inline CreateRobotPartSecretResponse& operator=(const CreateRobotPartSecretResponse& from) { CopyFrom(from); return *this; } - inline Organization& operator=(Organization&& from) noexcept { + inline CreateRobotPartSecretResponse& operator=(CreateRobotPartSecretResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -25065,269 +22333,149 @@ class Organization final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Organization& default_instance() { + static const CreateRobotPartSecretResponse& default_instance() { return *internal_default_instance(); } - static inline const Organization* internal_default_instance() { - return reinterpret_cast( - &_Organization_default_instance_); + static inline const CreateRobotPartSecretResponse* internal_default_instance() { + return reinterpret_cast( + &_CreateRobotPartSecretResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 5; + 128; - friend void swap(Organization& a, Organization& b) { + friend void swap(CreateRobotPartSecretResponse& a, CreateRobotPartSecretResponse& b) { a.Swap(&b); } - inline void Swap(Organization* other) { + inline void Swap(CreateRobotPartSecretResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Organization* other) { + void UnsafeArenaSwap(CreateRobotPartSecretResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Organization* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Organization& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Organization& from) { - Organization::MergeImpl(*this, from); + CreateRobotPartSecretResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CreateRobotPartSecretResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CreateRobotPartSecretResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Organization* other); + void SetCachedSize(int size) const final; + void InternalSwap(CreateRobotPartSecretResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.Organization"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.CreateRobotPartSecretResponse"; } protected: - explicit Organization(::google::protobuf::Arena* arena); - Organization(::google::protobuf::Arena* arena, const Organization& from); + explicit CreateRobotPartSecretResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kIdFieldNumber = 1, - kNameFieldNumber = 2, - kPublicNamespaceFieldNumber = 4, - kDefaultRegionFieldNumber = 5, - kCidFieldNumber = 6, - kCreatedOnFieldNumber = 3, + kPartFieldNumber = 1, }; - // string id = 1 [json_name = "id"]; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - - private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); - - public: - // string name = 2 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - - public: - // string public_namespace = 4 [json_name = "publicNamespace"]; - void clear_public_namespace() ; - const std::string& public_namespace() const; - template - void set_public_namespace(Arg_&& arg, Args_... args); - std::string* mutable_public_namespace(); - PROTOBUF_NODISCARD std::string* release_public_namespace(); - void set_allocated_public_namespace(std::string* value); - - private: - const std::string& _internal_public_namespace() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_public_namespace( - const std::string& value); - std::string* _internal_mutable_public_namespace(); - - public: - // string default_region = 5 [json_name = "defaultRegion"]; - void clear_default_region() ; - const std::string& default_region() const; - template - void set_default_region(Arg_&& arg, Args_... args); - std::string* mutable_default_region(); - PROTOBUF_NODISCARD std::string* release_default_region(); - void set_allocated_default_region(std::string* value); - + // .viam.app.v1.RobotPart part = 1 [json_name = "part"]; + bool has_part() const; private: - const std::string& _internal_default_region() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_default_region( - const std::string& value); - std::string* _internal_mutable_default_region(); - + bool _internal_has_part() const; public: - // optional string cid = 6 [json_name = "cid"]; - bool has_cid() const; - void clear_cid() ; - const std::string& cid() const; - template - void set_cid(Arg_&& arg, Args_... args); - std::string* mutable_cid(); - PROTOBUF_NODISCARD std::string* release_cid(); - void set_allocated_cid(std::string* value); - + void clear_part(); + const ::viam::app::v1::RobotPart& part() const; + PROTOBUF_NODISCARD ::viam::app::v1::RobotPart* release_part(); + ::viam::app::v1::RobotPart* mutable_part(); + void set_allocated_part(::viam::app::v1::RobotPart* part); private: - const std::string& _internal_cid() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_cid( - const std::string& value); - std::string* _internal_mutable_cid(); - + const ::viam::app::v1::RobotPart& _internal_part() const; + ::viam::app::v1::RobotPart* _internal_mutable_part(); public: - // .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn"]; - bool has_created_on() const; - void clear_created_on() ; - const ::google::protobuf::Timestamp& created_on() const; - PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_created_on(); - ::google::protobuf::Timestamp* mutable_created_on(); - void set_allocated_created_on(::google::protobuf::Timestamp* value); - void unsafe_arena_set_allocated_created_on(::google::protobuf::Timestamp* value); - ::google::protobuf::Timestamp* unsafe_arena_release_created_on(); - - private: - const ::google::protobuf::Timestamp& _internal_created_on() const; - ::google::protobuf::Timestamp* _internal_mutable_created_on(); + void unsafe_arena_set_allocated_part( + ::viam::app::v1::RobotPart* part); + ::viam::app::v1::RobotPart* unsafe_arena_release_part(); - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.Organization) + // @@protoc_insertion_point(class_scope:viam.app.v1.CreateRobotPartSecretResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 6, 1, - 72, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr id_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr public_namespace_; - ::google::protobuf::internal::ArenaStringPtr default_region_; - ::google::protobuf::internal::ArenaStringPtr cid_; - ::google::protobuf::Timestamp* created_on_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::viam::app::v1::RobotPart* part_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class MLTrainingVersion final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.MLTrainingVersion) */ { +class DeleteRobotPartSecretRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.DeleteRobotPartSecretRequest) */ { public: - inline MLTrainingVersion() : MLTrainingVersion(nullptr) {} - ~MLTrainingVersion() override; - template - explicit PROTOBUF_CONSTEXPR MLTrainingVersion(::google::protobuf::internal::ConstantInitialized); + inline DeleteRobotPartSecretRequest() : DeleteRobotPartSecretRequest(nullptr) {} + ~DeleteRobotPartSecretRequest() override; + explicit PROTOBUF_CONSTEXPR DeleteRobotPartSecretRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline MLTrainingVersion(const MLTrainingVersion& from) - : MLTrainingVersion(nullptr, from) {} - MLTrainingVersion(MLTrainingVersion&& from) noexcept - : MLTrainingVersion() { + DeleteRobotPartSecretRequest(const DeleteRobotPartSecretRequest& from); + DeleteRobotPartSecretRequest(DeleteRobotPartSecretRequest&& from) noexcept + : DeleteRobotPartSecretRequest() { *this = ::std::move(from); } - inline MLTrainingVersion& operator=(const MLTrainingVersion& from) { + inline DeleteRobotPartSecretRequest& operator=(const DeleteRobotPartSecretRequest& from) { CopyFrom(from); return *this; } - inline MLTrainingVersion& operator=(MLTrainingVersion&& from) noexcept { + inline DeleteRobotPartSecretRequest& operator=(DeleteRobotPartSecretRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -25337,196 +22485,160 @@ class MLTrainingVersion final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MLTrainingVersion& default_instance() { + static const DeleteRobotPartSecretRequest& default_instance() { return *internal_default_instance(); } - static inline const MLTrainingVersion* internal_default_instance() { - return reinterpret_cast( - &_MLTrainingVersion_default_instance_); + static inline const DeleteRobotPartSecretRequest* internal_default_instance() { + return reinterpret_cast( + &_DeleteRobotPartSecretRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 145; + 129; - friend void swap(MLTrainingVersion& a, MLTrainingVersion& b) { + friend void swap(DeleteRobotPartSecretRequest& a, DeleteRobotPartSecretRequest& b) { a.Swap(&b); } - inline void Swap(MLTrainingVersion* other) { + inline void Swap(DeleteRobotPartSecretRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MLTrainingVersion* other) { + void UnsafeArenaSwap(DeleteRobotPartSecretRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MLTrainingVersion* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const MLTrainingVersion& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const MLTrainingVersion& from) { - MLTrainingVersion::MergeImpl(*this, from); + DeleteRobotPartSecretRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DeleteRobotPartSecretRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const DeleteRobotPartSecretRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(MLTrainingVersion* other); + void SetCachedSize(int size) const final; + void InternalSwap(DeleteRobotPartSecretRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.MLTrainingVersion"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.DeleteRobotPartSecretRequest"; } protected: - explicit MLTrainingVersion(::google::protobuf::Arena* arena); - MLTrainingVersion(::google::protobuf::Arena* arena, const MLTrainingVersion& from); + explicit DeleteRobotPartSecretRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kVersionFieldNumber = 1, - kCreatedOnFieldNumber = 2, + kPartIdFieldNumber = 1, + kSecretIdFieldNumber = 2, }; - // string version = 1 [json_name = "version"]; - void clear_version() ; - const std::string& version() const; - template - void set_version(Arg_&& arg, Args_... args); - std::string* mutable_version(); - PROTOBUF_NODISCARD std::string* release_version(); - void set_allocated_version(std::string* value); - + // string part_id = 1 [json_name = "partId"]; + void clear_part_id(); + const std::string& part_id() const; + template + void set_part_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_part_id(); + PROTOBUF_NODISCARD std::string* release_part_id(); + void set_allocated_part_id(std::string* part_id); private: - const std::string& _internal_version() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_version( - const std::string& value); - std::string* _internal_mutable_version(); - + const std::string& _internal_part_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_part_id(const std::string& value); + std::string* _internal_mutable_part_id(); public: - // .google.protobuf.Timestamp created_on = 2 [json_name = "createdOn"]; - bool has_created_on() const; - void clear_created_on() ; - const ::google::protobuf::Timestamp& created_on() const; - PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_created_on(); - ::google::protobuf::Timestamp* mutable_created_on(); - void set_allocated_created_on(::google::protobuf::Timestamp* value); - void unsafe_arena_set_allocated_created_on(::google::protobuf::Timestamp* value); - ::google::protobuf::Timestamp* unsafe_arena_release_created_on(); + // string secret_id = 2 [json_name = "secretId"]; + void clear_secret_id(); + const std::string& secret_id() const; + template + void set_secret_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_secret_id(); + PROTOBUF_NODISCARD std::string* release_secret_id(); + void set_allocated_secret_id(std::string* secret_id); private: - const ::google::protobuf::Timestamp& _internal_created_on() const; - ::google::protobuf::Timestamp* _internal_mutable_created_on(); - + const std::string& _internal_secret_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_secret_id(const std::string& value); + std::string* _internal_mutable_secret_id(); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.MLTrainingVersion) + + // @@protoc_insertion_point(class_scope:viam.app.v1.DeleteRobotPartSecretRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 45, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr version_; - ::google::protobuf::Timestamp* created_on_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr part_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr secret_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ListOrganizationsByUserResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ListOrganizationsByUserResponse) */ { +class DeleteRobotPartSecretResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.DeleteRobotPartSecretResponse) */ { public: - inline ListOrganizationsByUserResponse() : ListOrganizationsByUserResponse(nullptr) {} - ~ListOrganizationsByUserResponse() override; - template - explicit PROTOBUF_CONSTEXPR ListOrganizationsByUserResponse(::google::protobuf::internal::ConstantInitialized); + inline DeleteRobotPartSecretResponse() : DeleteRobotPartSecretResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR DeleteRobotPartSecretResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ListOrganizationsByUserResponse(const ListOrganizationsByUserResponse& from) - : ListOrganizationsByUserResponse(nullptr, from) {} - ListOrganizationsByUserResponse(ListOrganizationsByUserResponse&& from) noexcept - : ListOrganizationsByUserResponse() { + DeleteRobotPartSecretResponse(const DeleteRobotPartSecretResponse& from); + DeleteRobotPartSecretResponse(DeleteRobotPartSecretResponse&& from) noexcept + : DeleteRobotPartSecretResponse() { *this = ::std::move(from); } - inline ListOrganizationsByUserResponse& operator=(const ListOrganizationsByUserResponse& from) { + inline DeleteRobotPartSecretResponse& operator=(const DeleteRobotPartSecretResponse& from) { CopyFrom(from); return *this; } - inline ListOrganizationsByUserResponse& operator=(ListOrganizationsByUserResponse&& from) noexcept { + inline DeleteRobotPartSecretResponse& operator=(DeleteRobotPartSecretResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -25536,180 +22648,114 @@ class ListOrganizationsByUserResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ListOrganizationsByUserResponse& default_instance() { + static const DeleteRobotPartSecretResponse& default_instance() { return *internal_default_instance(); } - static inline const ListOrganizationsByUserResponse* internal_default_instance() { - return reinterpret_cast( - &_ListOrganizationsByUserResponse_default_instance_); + static inline const DeleteRobotPartSecretResponse* internal_default_instance() { + return reinterpret_cast( + &_DeleteRobotPartSecretResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 179; + 130; - friend void swap(ListOrganizationsByUserResponse& a, ListOrganizationsByUserResponse& b) { + friend void swap(DeleteRobotPartSecretResponse& a, DeleteRobotPartSecretResponse& b) { a.Swap(&b); } - inline void Swap(ListOrganizationsByUserResponse* other) { + inline void Swap(DeleteRobotPartSecretResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ListOrganizationsByUserResponse* other) { + void UnsafeArenaSwap(DeleteRobotPartSecretResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ListOrganizationsByUserResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + DeleteRobotPartSecretResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ListOrganizationsByUserResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ListOrganizationsByUserResponse& from) { - ListOrganizationsByUserResponse::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const DeleteRobotPartSecretResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const DeleteRobotPartSecretResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(ListOrganizationsByUserResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.ListOrganizationsByUserResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.DeleteRobotPartSecretResponse"; } protected: - explicit ListOrganizationsByUserResponse(::google::protobuf::Arena* arena); - ListOrganizationsByUserResponse(::google::protobuf::Arena* arena, const ListOrganizationsByUserResponse& from); + explicit DeleteRobotPartSecretResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kOrgsFieldNumber = 1, - }; - // repeated .viam.app.v1.OrgDetails orgs = 1 [json_name = "orgs"]; - int orgs_size() const; - private: - int _internal_orgs_size() const; - - public: - void clear_orgs() ; - ::viam::app::v1::OrgDetails* mutable_orgs(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::OrgDetails >* - mutable_orgs(); - private: - const ::google::protobuf::RepeatedPtrField<::viam::app::v1::OrgDetails>& _internal_orgs() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::OrgDetails>* _internal_mutable_orgs(); - public: - const ::viam::app::v1::OrgDetails& orgs(int index) const; - ::viam::app::v1::OrgDetails* add_orgs(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::OrgDetails >& - orgs() const; - // @@protoc_insertion_point(class_scope:viam.app.v1.ListOrganizationsByUserResponse) + // @@protoc_insertion_point(class_scope:viam.app.v1.DeleteRobotPartSecretResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::OrgDetails > orgs_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ListAuthorizationsResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ListAuthorizationsResponse) */ { +class Authorization final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.Authorization) */ { public: - inline ListAuthorizationsResponse() : ListAuthorizationsResponse(nullptr) {} - ~ListAuthorizationsResponse() override; - template - explicit PROTOBUF_CONSTEXPR ListAuthorizationsResponse(::google::protobuf::internal::ConstantInitialized); + inline Authorization() : Authorization(nullptr) {} + ~Authorization() override; + explicit PROTOBUF_CONSTEXPR Authorization(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ListAuthorizationsResponse(const ListAuthorizationsResponse& from) - : ListAuthorizationsResponse(nullptr, from) {} - ListAuthorizationsResponse(ListAuthorizationsResponse&& from) noexcept - : ListAuthorizationsResponse() { + Authorization(const Authorization& from); + Authorization(Authorization&& from) noexcept + : Authorization() { *this = ::std::move(from); } - inline ListAuthorizationsResponse& operator=(const ListAuthorizationsResponse& from) { + inline Authorization& operator=(const Authorization& from) { CopyFrom(from); return *this; } - inline ListAuthorizationsResponse& operator=(ListAuthorizationsResponse&& from) noexcept { + inline Authorization& operator=(Authorization&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -25719,180 +22765,241 @@ class ListAuthorizationsResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ListAuthorizationsResponse& default_instance() { + static const Authorization& default_instance() { return *internal_default_instance(); } - static inline const ListAuthorizationsResponse* internal_default_instance() { - return reinterpret_cast( - &_ListAuthorizationsResponse_default_instance_); + static inline const Authorization* internal_default_instance() { + return reinterpret_cast( + &_Authorization_default_instance_); } static constexpr int kIndexInFileMessages = - 138; + 131; - friend void swap(ListAuthorizationsResponse& a, ListAuthorizationsResponse& b) { + friend void swap(Authorization& a, Authorization& b) { a.Swap(&b); } - inline void Swap(ListAuthorizationsResponse* other) { + inline void Swap(Authorization* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ListAuthorizationsResponse* other) { + void UnsafeArenaSwap(Authorization* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ListAuthorizationsResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ListAuthorizationsResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ListAuthorizationsResponse& from) { - ListAuthorizationsResponse::MergeImpl(*this, from); + Authorization* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Authorization& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Authorization& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ListAuthorizationsResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(Authorization* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.ListAuthorizationsResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.Authorization"; } protected: - explicit ListAuthorizationsResponse(::google::protobuf::Arena* arena); - ListAuthorizationsResponse(::google::protobuf::Arena* arena, const ListAuthorizationsResponse& from); + explicit Authorization(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kAuthorizationsFieldNumber = 1, + kAuthorizationTypeFieldNumber = 1, + kAuthorizationIdFieldNumber = 2, + kResourceTypeFieldNumber = 3, + kResourceIdFieldNumber = 4, + kIdentityIdFieldNumber = 5, + kOrganizationIdFieldNumber = 6, + kIdentityTypeFieldNumber = 7, }; - // repeated .viam.app.v1.Authorization authorizations = 1 [json_name = "authorizations"]; - int authorizations_size() const; + // string authorization_type = 1 [json_name = "authorizationType"]; + void clear_authorization_type(); + const std::string& authorization_type() const; + template + void set_authorization_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_authorization_type(); + PROTOBUF_NODISCARD std::string* release_authorization_type(); + void set_allocated_authorization_type(std::string* authorization_type); private: - int _internal_authorizations_size() const; + const std::string& _internal_authorization_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_authorization_type(const std::string& value); + std::string* _internal_mutable_authorization_type(); + public: + // string authorization_id = 2 [json_name = "authorizationId"]; + void clear_authorization_id(); + const std::string& authorization_id() const; + template + void set_authorization_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_authorization_id(); + PROTOBUF_NODISCARD std::string* release_authorization_id(); + void set_allocated_authorization_id(std::string* authorization_id); + private: + const std::string& _internal_authorization_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_authorization_id(const std::string& value); + std::string* _internal_mutable_authorization_id(); public: - void clear_authorizations() ; - ::viam::app::v1::Authorization* mutable_authorizations(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Authorization >* - mutable_authorizations(); + + // string resource_type = 3 [json_name = "resourceType"]; + void clear_resource_type(); + const std::string& resource_type() const; + template + void set_resource_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_resource_type(); + PROTOBUF_NODISCARD std::string* release_resource_type(); + void set_allocated_resource_type(std::string* resource_type); private: - const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Authorization>& _internal_authorizations() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::Authorization>* _internal_mutable_authorizations(); + const std::string& _internal_resource_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_resource_type(const std::string& value); + std::string* _internal_mutable_resource_type(); public: - const ::viam::app::v1::Authorization& authorizations(int index) const; - ::viam::app::v1::Authorization* add_authorizations(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Authorization >& - authorizations() const; - // @@protoc_insertion_point(class_scope:viam.app.v1.ListAuthorizationsResponse) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Authorization > authorizations_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- + // string resource_id = 4 [json_name = "resourceId"]; + void clear_resource_id(); + const std::string& resource_id() const; + template + void set_resource_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_resource_id(); + PROTOBUF_NODISCARD std::string* release_resource_id(); + void set_allocated_resource_id(std::string* resource_id); + private: + const std::string& _internal_resource_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_resource_id(const std::string& value); + std::string* _internal_mutable_resource_id(); + public: -class GetRoverRentalRobotsResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetRoverRentalRobotsResponse) */ { - public: - inline GetRoverRentalRobotsResponse() : GetRoverRentalRobotsResponse(nullptr) {} - ~GetRoverRentalRobotsResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetRoverRentalRobotsResponse(::google::protobuf::internal::ConstantInitialized); + // string identity_id = 5 [json_name = "identityId"]; + void clear_identity_id(); + const std::string& identity_id() const; + template + void set_identity_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_identity_id(); + PROTOBUF_NODISCARD std::string* release_identity_id(); + void set_allocated_identity_id(std::string* identity_id); + private: + const std::string& _internal_identity_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_identity_id(const std::string& value); + std::string* _internal_mutable_identity_id(); + public: - inline GetRoverRentalRobotsResponse(const GetRoverRentalRobotsResponse& from) - : GetRoverRentalRobotsResponse(nullptr, from) {} - GetRoverRentalRobotsResponse(GetRoverRentalRobotsResponse&& from) noexcept - : GetRoverRentalRobotsResponse() { - *this = ::std::move(from); - } + // string organization_id = 6 [json_name = "organizationId"]; + void clear_organization_id(); + const std::string& organization_id() const; + template + void set_organization_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_organization_id(); + PROTOBUF_NODISCARD std::string* release_organization_id(); + void set_allocated_organization_id(std::string* organization_id); + private: + const std::string& _internal_organization_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id(const std::string& value); + std::string* _internal_mutable_organization_id(); + public: - inline GetRoverRentalRobotsResponse& operator=(const GetRoverRentalRobotsResponse& from) { - CopyFrom(from); - return *this; - } - inline GetRoverRentalRobotsResponse& operator=(GetRoverRentalRobotsResponse&& from) noexcept { + // string identity_type = 7 [json_name = "identityType"]; + void clear_identity_type(); + const std::string& identity_type() const; + template + void set_identity_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_identity_type(); + PROTOBUF_NODISCARD std::string* release_identity_type(); + void set_allocated_identity_type(std::string* identity_type); + private: + const std::string& _internal_identity_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_identity_type(const std::string& value); + std::string* _internal_mutable_identity_type(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.Authorization) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr authorization_type_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr authorization_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr resource_type_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr resource_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr identity_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr organization_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr identity_type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class AddRoleRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.AddRoleRequest) */ { + public: + inline AddRoleRequest() : AddRoleRequest(nullptr) {} + ~AddRoleRequest() override; + explicit PROTOBUF_CONSTEXPR AddRoleRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + AddRoleRequest(const AddRoleRequest& from); + AddRoleRequest(AddRoleRequest&& from) noexcept + : AddRoleRequest() { + *this = ::std::move(from); + } + + inline AddRoleRequest& operator=(const AddRoleRequest& from) { + CopyFrom(from); + return *this; + } + inline AddRoleRequest& operator=(AddRoleRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -25902,180 +23009,148 @@ class GetRoverRentalRobotsResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetRoverRentalRobotsResponse& default_instance() { + static const AddRoleRequest& default_instance() { return *internal_default_instance(); } - static inline const GetRoverRentalRobotsResponse* internal_default_instance() { - return reinterpret_cast( - &_GetRoverRentalRobotsResponse_default_instance_); + static inline const AddRoleRequest* internal_default_instance() { + return reinterpret_cast( + &_AddRoleRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 75; + 132; - friend void swap(GetRoverRentalRobotsResponse& a, GetRoverRentalRobotsResponse& b) { + friend void swap(AddRoleRequest& a, AddRoleRequest& b) { a.Swap(&b); } - inline void Swap(GetRoverRentalRobotsResponse* other) { + inline void Swap(AddRoleRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetRoverRentalRobotsResponse* other) { + void UnsafeArenaSwap(AddRoleRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetRoverRentalRobotsResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetRoverRentalRobotsResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetRoverRentalRobotsResponse& from) { - GetRoverRentalRobotsResponse::MergeImpl(*this, from); + AddRoleRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const AddRoleRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const AddRoleRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetRoverRentalRobotsResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(AddRoleRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.GetRoverRentalRobotsResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.AddRoleRequest"; } protected: - explicit GetRoverRentalRobotsResponse(::google::protobuf::Arena* arena); - GetRoverRentalRobotsResponse(::google::protobuf::Arena* arena, const GetRoverRentalRobotsResponse& from); + explicit AddRoleRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kRobotsFieldNumber = 1, + kAuthorizationFieldNumber = 1, }; - // repeated .viam.app.v1.RoverRentalRobot robots = 1 [json_name = "robots"]; - int robots_size() const; + // .viam.app.v1.Authorization authorization = 1 [json_name = "authorization"]; + bool has_authorization() const; private: - int _internal_robots_size() const; - + bool _internal_has_authorization() const; public: - void clear_robots() ; - ::viam::app::v1::RoverRentalRobot* mutable_robots(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::RoverRentalRobot >* - mutable_robots(); + void clear_authorization(); + const ::viam::app::v1::Authorization& authorization() const; + PROTOBUF_NODISCARD ::viam::app::v1::Authorization* release_authorization(); + ::viam::app::v1::Authorization* mutable_authorization(); + void set_allocated_authorization(::viam::app::v1::Authorization* authorization); private: - const ::google::protobuf::RepeatedPtrField<::viam::app::v1::RoverRentalRobot>& _internal_robots() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::RoverRentalRobot>* _internal_mutable_robots(); + const ::viam::app::v1::Authorization& _internal_authorization() const; + ::viam::app::v1::Authorization* _internal_mutable_authorization(); public: - const ::viam::app::v1::RoverRentalRobot& robots(int index) const; - ::viam::app::v1::RoverRentalRobot* add_robots(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::RoverRentalRobot >& - robots() const; - // @@protoc_insertion_point(class_scope:viam.app.v1.GetRoverRentalRobotsResponse) + void unsafe_arena_set_allocated_authorization( + ::viam::app::v1::Authorization* authorization); + ::viam::app::v1::Authorization* unsafe_arena_release_authorization(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.AddRoleRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::RoverRentalRobot > robots_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::viam::app::v1::Authorization* authorization_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetRobotPartLogsRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetRobotPartLogsRequest) */ { +class AddRoleResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.AddRoleResponse) */ { public: - inline GetRobotPartLogsRequest() : GetRobotPartLogsRequest(nullptr) {} - ~GetRobotPartLogsRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetRobotPartLogsRequest(::google::protobuf::internal::ConstantInitialized); + inline AddRoleResponse() : AddRoleResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR AddRoleResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetRobotPartLogsRequest(const GetRobotPartLogsRequest& from) - : GetRobotPartLogsRequest(nullptr, from) {} - GetRobotPartLogsRequest(GetRobotPartLogsRequest&& from) noexcept - : GetRobotPartLogsRequest() { + AddRoleResponse(const AddRoleResponse& from); + AddRoleResponse(AddRoleResponse&& from) noexcept + : AddRoleResponse() { *this = ::std::move(from); } - inline GetRobotPartLogsRequest& operator=(const GetRobotPartLogsRequest& from) { + inline AddRoleResponse& operator=(const AddRoleResponse& from) { CopyFrom(from); return *this; } - inline GetRobotPartLogsRequest& operator=(GetRobotPartLogsRequest&& from) noexcept { + inline AddRoleResponse& operator=(AddRoleResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -26085,325 +23160,114 @@ class GetRobotPartLogsRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetRobotPartLogsRequest& default_instance() { + static const AddRoleResponse& default_instance() { return *internal_default_instance(); } - static inline const GetRobotPartLogsRequest* internal_default_instance() { - return reinterpret_cast( - &_GetRobotPartLogsRequest_default_instance_); + static inline const AddRoleResponse* internal_default_instance() { + return reinterpret_cast( + &_AddRoleResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 81; + 133; - friend void swap(GetRobotPartLogsRequest& a, GetRobotPartLogsRequest& b) { + friend void swap(AddRoleResponse& a, AddRoleResponse& b) { a.Swap(&b); } - inline void Swap(GetRobotPartLogsRequest* other) { + inline void Swap(AddRoleResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetRobotPartLogsRequest* other) { + void UnsafeArenaSwap(AddRoleResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetRobotPartLogsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + AddRoleResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetRobotPartLogsRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetRobotPartLogsRequest& from) { - GetRobotPartLogsRequest::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const AddRoleResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const AddRoleResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetRobotPartLogsRequest* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.GetRobotPartLogsRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.AddRoleResponse"; } protected: - explicit GetRobotPartLogsRequest(::google::protobuf::Arena* arena); - GetRobotPartLogsRequest(::google::protobuf::Arena* arena, const GetRobotPartLogsRequest& from); + explicit AddRoleResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kLevelsFieldNumber = 5, - kIdFieldNumber = 1, - kFilterFieldNumber = 3, - kPageTokenFieldNumber = 4, - kSourceFieldNumber = 9, - kStartFieldNumber = 6, - kEndFieldNumber = 7, - kLimitFieldNumber = 8, - kErrorsOnlyFieldNumber = 2, - }; - // repeated string levels = 5 [json_name = "levels"]; - int levels_size() const; - private: - int _internal_levels_size() const; - - public: - void clear_levels() ; - const std::string& levels(int index) const; - std::string* mutable_levels(int index); - void set_levels(int index, const std::string& value); - void set_levels(int index, std::string&& value); - void set_levels(int index, const char* value); - void set_levels(int index, const char* value, std::size_t size); - void set_levels(int index, absl::string_view value); - std::string* add_levels(); - void add_levels(const std::string& value); - void add_levels(std::string&& value); - void add_levels(const char* value); - void add_levels(const char* value, std::size_t size); - void add_levels(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& levels() const; - ::google::protobuf::RepeatedPtrField* mutable_levels(); - - private: - const ::google::protobuf::RepeatedPtrField& _internal_levels() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_levels(); - - public: - // string id = 1 [json_name = "id"]; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - - private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); - - public: - // optional string filter = 3 [json_name = "filter"]; - bool has_filter() const; - void clear_filter() ; - const std::string& filter() const; - template - void set_filter(Arg_&& arg, Args_... args); - std::string* mutable_filter(); - PROTOBUF_NODISCARD std::string* release_filter(); - void set_allocated_filter(std::string* value); - - private: - const std::string& _internal_filter() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_filter( - const std::string& value); - std::string* _internal_mutable_filter(); - - public: - // optional string page_token = 4 [json_name = "pageToken"]; - bool has_page_token() const; - void clear_page_token() ; - const std::string& page_token() const; - template - void set_page_token(Arg_&& arg, Args_... args); - std::string* mutable_page_token(); - PROTOBUF_NODISCARD std::string* release_page_token(); - void set_allocated_page_token(std::string* value); - - private: - const std::string& _internal_page_token() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_page_token( - const std::string& value); - std::string* _internal_mutable_page_token(); - - public: - // optional string source = 9 [json_name = "source"]; - bool has_source() const; - void clear_source() ; - const std::string& source() const; - template - void set_source(Arg_&& arg, Args_... args); - std::string* mutable_source(); - PROTOBUF_NODISCARD std::string* release_source(); - void set_allocated_source(std::string* value); - - private: - const std::string& _internal_source() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_source( - const std::string& value); - std::string* _internal_mutable_source(); - - public: - // optional .google.protobuf.Timestamp start = 6 [json_name = "start"]; - bool has_start() const; - void clear_start() ; - const ::google::protobuf::Timestamp& start() const; - PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_start(); - ::google::protobuf::Timestamp* mutable_start(); - void set_allocated_start(::google::protobuf::Timestamp* value); - void unsafe_arena_set_allocated_start(::google::protobuf::Timestamp* value); - ::google::protobuf::Timestamp* unsafe_arena_release_start(); - - private: - const ::google::protobuf::Timestamp& _internal_start() const; - ::google::protobuf::Timestamp* _internal_mutable_start(); - - public: - // optional .google.protobuf.Timestamp end = 7 [json_name = "end"]; - bool has_end() const; - void clear_end() ; - const ::google::protobuf::Timestamp& end() const; - PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_end(); - ::google::protobuf::Timestamp* mutable_end(); - void set_allocated_end(::google::protobuf::Timestamp* value); - void unsafe_arena_set_allocated_end(::google::protobuf::Timestamp* value); - ::google::protobuf::Timestamp* unsafe_arena_release_end(); - - private: - const ::google::protobuf::Timestamp& _internal_end() const; - ::google::protobuf::Timestamp* _internal_mutable_end(); - - public: - // optional int64 limit = 8 [json_name = "limit"]; - bool has_limit() const; - void clear_limit() ; - ::int64_t limit() const; - void set_limit(::int64_t value); - - private: - ::int64_t _internal_limit() const; - void _internal_set_limit(::int64_t value); - - public: - // bool errors_only = 2 [json_name = "errorsOnly", deprecated = true]; - [[deprecated]] void clear_errors_only() ; - [[deprecated]] bool errors_only() const; - [[deprecated]] void set_errors_only(bool value); - - private: - bool _internal_errors_only() const; - void _internal_set_errors_only(bool value); - - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.GetRobotPartLogsRequest) + // @@protoc_insertion_point(class_scope:viam.app.v1.AddRoleResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 4, 9, 2, - 82, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField levels_; - ::google::protobuf::internal::ArenaStringPtr id_; - ::google::protobuf::internal::ArenaStringPtr filter_; - ::google::protobuf::internal::ArenaStringPtr page_token_; - ::google::protobuf::internal::ArenaStringPtr source_; - ::google::protobuf::Timestamp* start_; - ::google::protobuf::Timestamp* end_; - ::int64_t limit_; - bool errors_only_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetOrganizationsWithAccessToLocationResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetOrganizationsWithAccessToLocationResponse) */ { +class RemoveRoleRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.RemoveRoleRequest) */ { public: - inline GetOrganizationsWithAccessToLocationResponse() : GetOrganizationsWithAccessToLocationResponse(nullptr) {} - ~GetOrganizationsWithAccessToLocationResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetOrganizationsWithAccessToLocationResponse(::google::protobuf::internal::ConstantInitialized); + inline RemoveRoleRequest() : RemoveRoleRequest(nullptr) {} + ~RemoveRoleRequest() override; + explicit PROTOBUF_CONSTEXPR RemoveRoleRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetOrganizationsWithAccessToLocationResponse(const GetOrganizationsWithAccessToLocationResponse& from) - : GetOrganizationsWithAccessToLocationResponse(nullptr, from) {} - GetOrganizationsWithAccessToLocationResponse(GetOrganizationsWithAccessToLocationResponse&& from) noexcept - : GetOrganizationsWithAccessToLocationResponse() { + RemoveRoleRequest(const RemoveRoleRequest& from); + RemoveRoleRequest(RemoveRoleRequest&& from) noexcept + : RemoveRoleRequest() { *this = ::std::move(from); } - inline GetOrganizationsWithAccessToLocationResponse& operator=(const GetOrganizationsWithAccessToLocationResponse& from) { + inline RemoveRoleRequest& operator=(const RemoveRoleRequest& from) { CopyFrom(from); return *this; } - inline GetOrganizationsWithAccessToLocationResponse& operator=(GetOrganizationsWithAccessToLocationResponse&& from) noexcept { + inline RemoveRoleRequest& operator=(RemoveRoleRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -26413,180 +23277,148 @@ class GetOrganizationsWithAccessToLocationResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetOrganizationsWithAccessToLocationResponse& default_instance() { + static const RemoveRoleRequest& default_instance() { return *internal_default_instance(); } - static inline const GetOrganizationsWithAccessToLocationResponse* internal_default_instance() { - return reinterpret_cast( - &_GetOrganizationsWithAccessToLocationResponse_default_instance_); + static inline const RemoveRoleRequest* internal_default_instance() { + return reinterpret_cast( + &_RemoveRoleRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 59; + 134; - friend void swap(GetOrganizationsWithAccessToLocationResponse& a, GetOrganizationsWithAccessToLocationResponse& b) { + friend void swap(RemoveRoleRequest& a, RemoveRoleRequest& b) { a.Swap(&b); } - inline void Swap(GetOrganizationsWithAccessToLocationResponse* other) { + inline void Swap(RemoveRoleRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetOrganizationsWithAccessToLocationResponse* other) { + void UnsafeArenaSwap(RemoveRoleRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetOrganizationsWithAccessToLocationResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetOrganizationsWithAccessToLocationResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetOrganizationsWithAccessToLocationResponse& from) { - GetOrganizationsWithAccessToLocationResponse::MergeImpl(*this, from); + RemoveRoleRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const RemoveRoleRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const RemoveRoleRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetOrganizationsWithAccessToLocationResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(RemoveRoleRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.GetOrganizationsWithAccessToLocationResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.RemoveRoleRequest"; } protected: - explicit GetOrganizationsWithAccessToLocationResponse(::google::protobuf::Arena* arena); - GetOrganizationsWithAccessToLocationResponse(::google::protobuf::Arena* arena, const GetOrganizationsWithAccessToLocationResponse& from); + explicit RemoveRoleRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kOrganizationIdentitiesFieldNumber = 1, + kAuthorizationFieldNumber = 1, }; - // repeated .viam.app.v1.OrganizationIdentity organization_identities = 1 [json_name = "organizationIdentities"]; - int organization_identities_size() const; + // .viam.app.v1.Authorization authorization = 1 [json_name = "authorization"]; + bool has_authorization() const; private: - int _internal_organization_identities_size() const; - + bool _internal_has_authorization() const; public: - void clear_organization_identities() ; - ::viam::app::v1::OrganizationIdentity* mutable_organization_identities(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::OrganizationIdentity >* - mutable_organization_identities(); + void clear_authorization(); + const ::viam::app::v1::Authorization& authorization() const; + PROTOBUF_NODISCARD ::viam::app::v1::Authorization* release_authorization(); + ::viam::app::v1::Authorization* mutable_authorization(); + void set_allocated_authorization(::viam::app::v1::Authorization* authorization); private: - const ::google::protobuf::RepeatedPtrField<::viam::app::v1::OrganizationIdentity>& _internal_organization_identities() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::OrganizationIdentity>* _internal_mutable_organization_identities(); + const ::viam::app::v1::Authorization& _internal_authorization() const; + ::viam::app::v1::Authorization* _internal_mutable_authorization(); public: - const ::viam::app::v1::OrganizationIdentity& organization_identities(int index) const; - ::viam::app::v1::OrganizationIdentity* add_organization_identities(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::OrganizationIdentity >& - organization_identities() const; - // @@protoc_insertion_point(class_scope:viam.app.v1.GetOrganizationsWithAccessToLocationResponse) + void unsafe_arena_set_allocated_authorization( + ::viam::app::v1::Authorization* authorization); + ::viam::app::v1::Authorization* unsafe_arena_release_authorization(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.RemoveRoleRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::OrganizationIdentity > organization_identities_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::viam::app::v1::Authorization* authorization_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetBillingServiceConfigResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetBillingServiceConfigResponse) */ { +class RemoveRoleResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.RemoveRoleResponse) */ { public: - inline GetBillingServiceConfigResponse() : GetBillingServiceConfigResponse(nullptr) {} - ~GetBillingServiceConfigResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetBillingServiceConfigResponse(::google::protobuf::internal::ConstantInitialized); + inline RemoveRoleResponse() : RemoveRoleResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR RemoveRoleResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetBillingServiceConfigResponse(const GetBillingServiceConfigResponse& from) - : GetBillingServiceConfigResponse(nullptr, from) {} - GetBillingServiceConfigResponse(GetBillingServiceConfigResponse&& from) noexcept - : GetBillingServiceConfigResponse() { + RemoveRoleResponse(const RemoveRoleResponse& from); + RemoveRoleResponse(RemoveRoleResponse&& from) noexcept + : RemoveRoleResponse() { *this = ::std::move(from); } - inline GetBillingServiceConfigResponse& operator=(const GetBillingServiceConfigResponse& from) { + inline RemoveRoleResponse& operator=(const RemoveRoleResponse& from) { CopyFrom(from); return *this; } - inline GetBillingServiceConfigResponse& operator=(GetBillingServiceConfigResponse&& from) noexcept { + inline RemoveRoleResponse& operator=(RemoveRoleResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -26596,232 +23428,114 @@ class GetBillingServiceConfigResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetBillingServiceConfigResponse& default_instance() { + static const RemoveRoleResponse& default_instance() { return *internal_default_instance(); } - static inline const GetBillingServiceConfigResponse* internal_default_instance() { - return reinterpret_cast( - &_GetBillingServiceConfigResponse_default_instance_); + static inline const RemoveRoleResponse* internal_default_instance() { + return reinterpret_cast( + &_RemoveRoleResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 37; + 135; - friend void swap(GetBillingServiceConfigResponse& a, GetBillingServiceConfigResponse& b) { + friend void swap(RemoveRoleResponse& a, RemoveRoleResponse& b) { a.Swap(&b); } - inline void Swap(GetBillingServiceConfigResponse* other) { + inline void Swap(RemoveRoleResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetBillingServiceConfigResponse* other) { + void UnsafeArenaSwap(RemoveRoleResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetBillingServiceConfigResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + RemoveRoleResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetBillingServiceConfigResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetBillingServiceConfigResponse& from) { - GetBillingServiceConfigResponse::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const RemoveRoleResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const RemoveRoleResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetBillingServiceConfigResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.GetBillingServiceConfigResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.RemoveRoleResponse"; } protected: - explicit GetBillingServiceConfigResponse(::google::protobuf::Arena* arena); - GetBillingServiceConfigResponse(::google::protobuf::Arena* arena, const GetBillingServiceConfigResponse& from); + explicit RemoveRoleResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kSupportEmailFieldNumber = 2, - kLogoUrlFieldNumber = 3, - kBillingDashboardUrlFieldNumber = 4, - kBillingAddressFieldNumber = 1, - }; - // string support_email = 2 [json_name = "supportEmail"]; - void clear_support_email() ; - const std::string& support_email() const; - template - void set_support_email(Arg_&& arg, Args_... args); - std::string* mutable_support_email(); - PROTOBUF_NODISCARD std::string* release_support_email(); - void set_allocated_support_email(std::string* value); - - private: - const std::string& _internal_support_email() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_support_email( - const std::string& value); - std::string* _internal_mutable_support_email(); - - public: - // string logo_url = 3 [json_name = "logoUrl"]; - void clear_logo_url() ; - const std::string& logo_url() const; - template - void set_logo_url(Arg_&& arg, Args_... args); - std::string* mutable_logo_url(); - PROTOBUF_NODISCARD std::string* release_logo_url(); - void set_allocated_logo_url(std::string* value); - - private: - const std::string& _internal_logo_url() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_logo_url( - const std::string& value); - std::string* _internal_mutable_logo_url(); - - public: - // string billing_dashboard_url = 4 [json_name = "billingDashboardUrl"]; - void clear_billing_dashboard_url() ; - const std::string& billing_dashboard_url() const; - template - void set_billing_dashboard_url(Arg_&& arg, Args_... args); - std::string* mutable_billing_dashboard_url(); - PROTOBUF_NODISCARD std::string* release_billing_dashboard_url(); - void set_allocated_billing_dashboard_url(std::string* value); - - private: - const std::string& _internal_billing_dashboard_url() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_billing_dashboard_url( - const std::string& value); - std::string* _internal_mutable_billing_dashboard_url(); - - public: - // .viam.app.v1.BillingAddress billing_address = 1 [json_name = "billingAddress"]; - bool has_billing_address() const; - void clear_billing_address() ; - const ::viam::app::v1::BillingAddress& billing_address() const; - PROTOBUF_NODISCARD ::viam::app::v1::BillingAddress* release_billing_address(); - ::viam::app::v1::BillingAddress* mutable_billing_address(); - void set_allocated_billing_address(::viam::app::v1::BillingAddress* value); - void unsafe_arena_set_allocated_billing_address(::viam::app::v1::BillingAddress* value); - ::viam::app::v1::BillingAddress* unsafe_arena_release_billing_address(); - - private: - const ::viam::app::v1::BillingAddress& _internal_billing_address() const; - ::viam::app::v1::BillingAddress* _internal_mutable_billing_address(); - - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.GetBillingServiceConfigResponse) + // @@protoc_insertion_point(class_scope:viam.app.v1.RemoveRoleResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 1, - 94, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr support_email_; - ::google::protobuf::internal::ArenaStringPtr logo_url_; - ::google::protobuf::internal::ArenaStringPtr billing_dashboard_url_; - ::viam::app::v1::BillingAddress* billing_address_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Fragment final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.Fragment) */ { +class ChangeRoleRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ChangeRoleRequest) */ { public: - inline Fragment() : Fragment(nullptr) {} - ~Fragment() override; - template - explicit PROTOBUF_CONSTEXPR Fragment(::google::protobuf::internal::ConstantInitialized); + inline ChangeRoleRequest() : ChangeRoleRequest(nullptr) {} + ~ChangeRoleRequest() override; + explicit PROTOBUF_CONSTEXPR ChangeRoleRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Fragment(const Fragment& from) - : Fragment(nullptr, from) {} - Fragment(Fragment&& from) noexcept - : Fragment() { + ChangeRoleRequest(const ChangeRoleRequest& from); + ChangeRoleRequest(ChangeRoleRequest&& from) noexcept + : ChangeRoleRequest() { *this = ::std::move(from); } - inline Fragment& operator=(const Fragment& from) { + inline ChangeRoleRequest& operator=(const ChangeRoleRequest& from) { CopyFrom(from); return *this; } - inline Fragment& operator=(Fragment&& from) noexcept { + inline ChangeRoleRequest& operator=(ChangeRoleRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -26831,344 +23545,285 @@ class Fragment final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Fragment& default_instance() { + static const ChangeRoleRequest& default_instance() { return *internal_default_instance(); } - static inline const Fragment* internal_default_instance() { - return reinterpret_cast( - &_Fragment_default_instance_); + static inline const ChangeRoleRequest* internal_default_instance() { + return reinterpret_cast( + &_ChangeRoleRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 96; + 136; - friend void swap(Fragment& a, Fragment& b) { + friend void swap(ChangeRoleRequest& a, ChangeRoleRequest& b) { a.Swap(&b); } - inline void Swap(Fragment* other) { + inline void Swap(ChangeRoleRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Fragment* other) { + void UnsafeArenaSwap(ChangeRoleRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Fragment* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Fragment& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Fragment& from) { - Fragment::MergeImpl(*this, from); + ChangeRoleRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ChangeRoleRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ChangeRoleRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Fragment* other); + void SetCachedSize(int size) const final; + void InternalSwap(ChangeRoleRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.Fragment"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.ChangeRoleRequest"; } protected: - explicit Fragment(::google::protobuf::Arena* arena); - Fragment(::google::protobuf::Arena* arena, const Fragment& from); + explicit ChangeRoleRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kIdFieldNumber = 1, - kNameFieldNumber = 2, - kOrganizationOwnerFieldNumber = 4, - kOrganizationNameFieldNumber = 7, - kFragmentFieldNumber = 3, - kCreatedOnFieldNumber = 6, - kLastUpdatedFieldNumber = 13, - kPublicFieldNumber = 5, - kOnlyUsedByOwnerFieldNumber = 11, - kRobotPartCountFieldNumber = 9, - kOrganizationCountFieldNumber = 10, - kVisibilityFieldNumber = 12, + kOldAuthorizationFieldNumber = 1, + kNewAuthorizationFieldNumber = 2, }; - // string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""]; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - + // .viam.app.v1.Authorization old_authorization = 1 [json_name = "oldAuthorization"]; + bool has_old_authorization() const; private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); - + bool _internal_has_old_authorization() const; public: - // string name = 2 [json_name = "name", (.tagger.v1.tags) = "bson:\"name\" json:\"name\""]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + void clear_old_authorization(); + const ::viam::app::v1::Authorization& old_authorization() const; + PROTOBUF_NODISCARD ::viam::app::v1::Authorization* release_old_authorization(); + ::viam::app::v1::Authorization* mutable_old_authorization(); + void set_allocated_old_authorization(::viam::app::v1::Authorization* old_authorization); private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - + const ::viam::app::v1::Authorization& _internal_old_authorization() const; + ::viam::app::v1::Authorization* _internal_mutable_old_authorization(); public: - // string organization_owner = 4 [json_name = "organizationOwner", (.tagger.v1.tags) = "bson:\"organization_owner\" json:\"owner\""]; - void clear_organization_owner() ; - const std::string& organization_owner() const; - template - void set_organization_owner(Arg_&& arg, Args_... args); - std::string* mutable_organization_owner(); - PROTOBUF_NODISCARD std::string* release_organization_owner(); - void set_allocated_organization_owner(std::string* value); + void unsafe_arena_set_allocated_old_authorization( + ::viam::app::v1::Authorization* old_authorization); + ::viam::app::v1::Authorization* unsafe_arena_release_old_authorization(); + // .viam.app.v1.Authorization new_authorization = 2 [json_name = "newAuthorization"]; + bool has_new_authorization() const; private: - const std::string& _internal_organization_owner() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_owner( - const std::string& value); - std::string* _internal_mutable_organization_owner(); - + bool _internal_has_new_authorization() const; public: - // string organization_name = 7 [json_name = "organizationName"]; - void clear_organization_name() ; - const std::string& organization_name() const; - template - void set_organization_name(Arg_&& arg, Args_... args); - std::string* mutable_organization_name(); - PROTOBUF_NODISCARD std::string* release_organization_name(); - void set_allocated_organization_name(std::string* value); - + void clear_new_authorization(); + const ::viam::app::v1::Authorization& new_authorization() const; + PROTOBUF_NODISCARD ::viam::app::v1::Authorization* release_new_authorization(); + ::viam::app::v1::Authorization* mutable_new_authorization(); + void set_allocated_new_authorization(::viam::app::v1::Authorization* new_authorization); private: - const std::string& _internal_organization_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_name( - const std::string& value); - std::string* _internal_mutable_organization_name(); - + const ::viam::app::v1::Authorization& _internal_new_authorization() const; + ::viam::app::v1::Authorization* _internal_mutable_new_authorization(); public: - // .google.protobuf.Struct fragment = 3 [json_name = "fragment", (.tagger.v1.tags) = "bson:\"fragment\" json:\"fragment\""]; - bool has_fragment() const; - void clear_fragment() ; - const ::google::protobuf::Struct& fragment() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_fragment(); - ::google::protobuf::Struct* mutable_fragment(); - void set_allocated_fragment(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_fragment(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_fragment(); - - private: - const ::google::protobuf::Struct& _internal_fragment() const; - ::google::protobuf::Struct* _internal_mutable_fragment(); + void unsafe_arena_set_allocated_new_authorization( + ::viam::app::v1::Authorization* new_authorization); + ::viam::app::v1::Authorization* unsafe_arena_release_new_authorization(); - public: - // .google.protobuf.Timestamp created_on = 6 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\""]; - bool has_created_on() const; - void clear_created_on() ; - const ::google::protobuf::Timestamp& created_on() const; - PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_created_on(); - ::google::protobuf::Timestamp* mutable_created_on(); - void set_allocated_created_on(::google::protobuf::Timestamp* value); - void unsafe_arena_set_allocated_created_on(::google::protobuf::Timestamp* value); - ::google::protobuf::Timestamp* unsafe_arena_release_created_on(); + // @@protoc_insertion_point(class_scope:viam.app.v1.ChangeRoleRequest) + private: + class _Internal; - private: - const ::google::protobuf::Timestamp& _internal_created_on() const; - ::google::protobuf::Timestamp* _internal_mutable_created_on(); + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::viam::app::v1::Authorization* old_authorization_; + ::viam::app::v1::Authorization* new_authorization_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- - public: - // .google.protobuf.Timestamp last_updated = 13 [json_name = "lastUpdated", (.tagger.v1.tags) = "bson:\"last_updated_at\""]; - bool has_last_updated() const; - void clear_last_updated() ; - const ::google::protobuf::Timestamp& last_updated() const; - PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_last_updated(); - ::google::protobuf::Timestamp* mutable_last_updated(); - void set_allocated_last_updated(::google::protobuf::Timestamp* value); - void unsafe_arena_set_allocated_last_updated(::google::protobuf::Timestamp* value); - ::google::protobuf::Timestamp* unsafe_arena_release_last_updated(); +class ChangeRoleResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.ChangeRoleResponse) */ { + public: + inline ChangeRoleResponse() : ChangeRoleResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR ChangeRoleResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - private: - const ::google::protobuf::Timestamp& _internal_last_updated() const; - ::google::protobuf::Timestamp* _internal_mutable_last_updated(); + ChangeRoleResponse(const ChangeRoleResponse& from); + ChangeRoleResponse(ChangeRoleResponse&& from) noexcept + : ChangeRoleResponse() { + *this = ::std::move(from); + } - public: - // bool public = 5 [json_name = "public", (.tagger.v1.tags) = "bson:\"public\" json:\"public\""]; - void clear_public_() ; - bool public_() const; - void set_public_(bool value); + inline ChangeRoleResponse& operator=(const ChangeRoleResponse& from) { + CopyFrom(from); + return *this; + } + inline ChangeRoleResponse& operator=(ChangeRoleResponse&& 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; + } - private: - bool _internal_public_() const; - void _internal_set_public_(bool value); + 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 ChangeRoleResponse& default_instance() { + return *internal_default_instance(); + } + static inline const ChangeRoleResponse* internal_default_instance() { + return reinterpret_cast( + &_ChangeRoleResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 137; - public: - // bool only_used_by_owner = 11 [json_name = "onlyUsedByOwner"]; - void clear_only_used_by_owner() ; - bool only_used_by_owner() const; - void set_only_used_by_owner(bool value); + friend void swap(ChangeRoleResponse& a, ChangeRoleResponse& b) { + a.Swap(&b); + } + inline void Swap(ChangeRoleResponse* 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(ChangeRoleResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } - private: - bool _internal_only_used_by_owner() const; - void _internal_set_only_used_by_owner(bool value); + // implements Message ---------------------------------------------- + ChangeRoleResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const ChangeRoleResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const ChangeRoleResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); + } public: - // int32 robot_part_count = 9 [json_name = "robotPartCount"]; - void clear_robot_part_count() ; - ::int32_t robot_part_count() const; - void set_robot_part_count(::int32_t value); private: - ::int32_t _internal_robot_part_count() const; - void _internal_set_robot_part_count(::int32_t value); - + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.ChangeRoleResponse"; + } + protected: + explicit ChangeRoleResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - // int32 organization_count = 10 [json_name = "organizationCount"]; - void clear_organization_count() ; - ::int32_t organization_count() const; - void set_organization_count(::int32_t value); - private: - ::int32_t _internal_organization_count() const; - void _internal_set_organization_count(::int32_t value); + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: - // .viam.app.v1.FragmentVisibility visibility = 12 [json_name = "visibility"]; - void clear_visibility() ; - ::viam::app::v1::FragmentVisibility visibility() const; - void set_visibility(::viam::app::v1::FragmentVisibility value); + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - ::viam::app::v1::FragmentVisibility _internal_visibility() const; - void _internal_set_visibility(::viam::app::v1::FragmentVisibility value); + // nested types ---------------------------------------------------- - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.Fragment) + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.app.v1.ChangeRoleResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 4, 12, 3, - 78, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr id_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr organization_owner_; - ::google::protobuf::internal::ArenaStringPtr organization_name_; - ::google::protobuf::Struct* fragment_; - ::google::protobuf::Timestamp* created_on_; - ::google::protobuf::Timestamp* last_updated_; - bool public__; - bool only_used_by_owner_; - ::int32_t robot_part_count_; - ::int32_t organization_count_; - int visibility_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class EnableBillingServiceRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.EnableBillingServiceRequest) */ { +class ListAuthorizationsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ListAuthorizationsRequest) */ { public: - inline EnableBillingServiceRequest() : EnableBillingServiceRequest(nullptr) {} - ~EnableBillingServiceRequest() override; - template - explicit PROTOBUF_CONSTEXPR EnableBillingServiceRequest(::google::protobuf::internal::ConstantInitialized); + inline ListAuthorizationsRequest() : ListAuthorizationsRequest(nullptr) {} + ~ListAuthorizationsRequest() override; + explicit PROTOBUF_CONSTEXPR ListAuthorizationsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline EnableBillingServiceRequest(const EnableBillingServiceRequest& from) - : EnableBillingServiceRequest(nullptr, from) {} - EnableBillingServiceRequest(EnableBillingServiceRequest&& from) noexcept - : EnableBillingServiceRequest() { + ListAuthorizationsRequest(const ListAuthorizationsRequest& from); + ListAuthorizationsRequest(ListAuthorizationsRequest&& from) noexcept + : ListAuthorizationsRequest() { *this = ::std::move(from); } - inline EnableBillingServiceRequest& operator=(const EnableBillingServiceRequest& from) { + inline ListAuthorizationsRequest& operator=(const ListAuthorizationsRequest& from) { CopyFrom(from); return *this; } - inline EnableBillingServiceRequest& operator=(EnableBillingServiceRequest&& from) noexcept { + inline ListAuthorizationsRequest& operator=(ListAuthorizationsRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -27178,196 +23833,171 @@ class EnableBillingServiceRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const EnableBillingServiceRequest& default_instance() { + static const ListAuthorizationsRequest& default_instance() { return *internal_default_instance(); } - static inline const EnableBillingServiceRequest* internal_default_instance() { - return reinterpret_cast( - &_EnableBillingServiceRequest_default_instance_); + static inline const ListAuthorizationsRequest* internal_default_instance() { + return reinterpret_cast( + &_ListAuthorizationsRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 32; + 138; - friend void swap(EnableBillingServiceRequest& a, EnableBillingServiceRequest& b) { + friend void swap(ListAuthorizationsRequest& a, ListAuthorizationsRequest& b) { a.Swap(&b); } - inline void Swap(EnableBillingServiceRequest* other) { + inline void Swap(ListAuthorizationsRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(EnableBillingServiceRequest* other) { + void UnsafeArenaSwap(ListAuthorizationsRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - EnableBillingServiceRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const EnableBillingServiceRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const EnableBillingServiceRequest& from) { - EnableBillingServiceRequest::MergeImpl(*this, from); + ListAuthorizationsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ListAuthorizationsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ListAuthorizationsRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(EnableBillingServiceRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(ListAuthorizationsRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.EnableBillingServiceRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.ListAuthorizationsRequest"; } protected: - explicit EnableBillingServiceRequest(::google::protobuf::Arena* arena); - EnableBillingServiceRequest(::google::protobuf::Arena* arena, const EnableBillingServiceRequest& from); + explicit ListAuthorizationsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kOrgIdFieldNumber = 1, - kBillingAddressFieldNumber = 2, + kResourceIdsFieldNumber = 2, + kOrganizationIdFieldNumber = 1, }; - // string org_id = 1 [json_name = "orgId"]; - void clear_org_id() ; - const std::string& org_id() const; - template - void set_org_id(Arg_&& arg, Args_... args); - std::string* mutable_org_id(); - PROTOBUF_NODISCARD std::string* release_org_id(); - void set_allocated_org_id(std::string* value); - + // repeated string resource_ids = 2 [json_name = "resourceIds"]; + int resource_ids_size() const; private: - const std::string& _internal_org_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_org_id( - const std::string& value); - std::string* _internal_mutable_org_id(); - + int _internal_resource_ids_size() const; public: - // .viam.app.v1.BillingAddress billing_address = 2 [json_name = "billingAddress"]; - bool has_billing_address() const; - void clear_billing_address() ; - const ::viam::app::v1::BillingAddress& billing_address() const; - PROTOBUF_NODISCARD ::viam::app::v1::BillingAddress* release_billing_address(); - ::viam::app::v1::BillingAddress* mutable_billing_address(); - void set_allocated_billing_address(::viam::app::v1::BillingAddress* value); - void unsafe_arena_set_allocated_billing_address(::viam::app::v1::BillingAddress* value); - ::viam::app::v1::BillingAddress* unsafe_arena_release_billing_address(); - + void clear_resource_ids(); + const std::string& resource_ids(int index) const; + std::string* mutable_resource_ids(int index); + void set_resource_ids(int index, const std::string& value); + void set_resource_ids(int index, std::string&& value); + void set_resource_ids(int index, const char* value); + void set_resource_ids(int index, const char* value, size_t size); + std::string* add_resource_ids(); + void add_resource_ids(const std::string& value); + void add_resource_ids(std::string&& value); + void add_resource_ids(const char* value); + void add_resource_ids(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& resource_ids() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_resource_ids(); private: - const ::viam::app::v1::BillingAddress& _internal_billing_address() const; - ::viam::app::v1::BillingAddress* _internal_mutable_billing_address(); + const std::string& _internal_resource_ids(int index) const; + std::string* _internal_add_resource_ids(); + public: + // string organization_id = 1 [json_name = "organizationId"]; + void clear_organization_id(); + const std::string& organization_id() const; + template + void set_organization_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_organization_id(); + PROTOBUF_NODISCARD std::string* release_organization_id(); + void set_allocated_organization_id(std::string* organization_id); + private: + const std::string& _internal_organization_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id(const std::string& value); + std::string* _internal_mutable_organization_id(); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.EnableBillingServiceRequest) + + // @@protoc_insertion_point(class_scope:viam.app.v1.ListAuthorizationsRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 54, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr org_id_; - ::viam::app::v1::BillingAddress* billing_address_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField resource_ids_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr organization_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class CreateOrganizationInviteRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.CreateOrganizationInviteRequest) */ { +class ListAuthorizationsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ListAuthorizationsResponse) */ { public: - inline CreateOrganizationInviteRequest() : CreateOrganizationInviteRequest(nullptr) {} - ~CreateOrganizationInviteRequest() override; - template - explicit PROTOBUF_CONSTEXPR CreateOrganizationInviteRequest(::google::protobuf::internal::ConstantInitialized); + inline ListAuthorizationsResponse() : ListAuthorizationsResponse(nullptr) {} + ~ListAuthorizationsResponse() override; + explicit PROTOBUF_CONSTEXPR ListAuthorizationsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline CreateOrganizationInviteRequest(const CreateOrganizationInviteRequest& from) - : CreateOrganizationInviteRequest(nullptr, from) {} - CreateOrganizationInviteRequest(CreateOrganizationInviteRequest&& from) noexcept - : CreateOrganizationInviteRequest() { + ListAuthorizationsResponse(const ListAuthorizationsResponse& from); + ListAuthorizationsResponse(ListAuthorizationsResponse&& from) noexcept + : ListAuthorizationsResponse() { *this = ::std::move(from); } - inline CreateOrganizationInviteRequest& operator=(const CreateOrganizationInviteRequest& from) { + inline ListAuthorizationsResponse& operator=(const ListAuthorizationsResponse& from) { CopyFrom(from); return *this; } - inline CreateOrganizationInviteRequest& operator=(CreateOrganizationInviteRequest&& from) noexcept { + inline ListAuthorizationsResponse& operator=(ListAuthorizationsResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -27377,230 +24007,149 @@ class CreateOrganizationInviteRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CreateOrganizationInviteRequest& default_instance() { + static const ListAuthorizationsResponse& default_instance() { return *internal_default_instance(); } - static inline const CreateOrganizationInviteRequest* internal_default_instance() { - return reinterpret_cast( - &_CreateOrganizationInviteRequest_default_instance_); + static inline const ListAuthorizationsResponse* internal_default_instance() { + return reinterpret_cast( + &_ListAuthorizationsResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 21; + 139; - friend void swap(CreateOrganizationInviteRequest& a, CreateOrganizationInviteRequest& b) { + friend void swap(ListAuthorizationsResponse& a, ListAuthorizationsResponse& b) { a.Swap(&b); } - inline void Swap(CreateOrganizationInviteRequest* other) { + inline void Swap(ListAuthorizationsResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CreateOrganizationInviteRequest* other) { + void UnsafeArenaSwap(ListAuthorizationsResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CreateOrganizationInviteRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const CreateOrganizationInviteRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CreateOrganizationInviteRequest& from) { - CreateOrganizationInviteRequest::MergeImpl(*this, from); + ListAuthorizationsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ListAuthorizationsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ListAuthorizationsResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(CreateOrganizationInviteRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(ListAuthorizationsResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.CreateOrganizationInviteRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.ListAuthorizationsResponse"; } protected: - explicit CreateOrganizationInviteRequest(::google::protobuf::Arena* arena); - CreateOrganizationInviteRequest(::google::protobuf::Arena* arena, const CreateOrganizationInviteRequest& from); + explicit ListAuthorizationsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kAuthorizationsFieldNumber = 3, - kOrganizationIdFieldNumber = 1, - kEmailFieldNumber = 2, - kSendEmailInviteFieldNumber = 4, + kAuthorizationsFieldNumber = 1, }; - // repeated .viam.app.v1.Authorization authorizations = 3 [json_name = "authorizations"]; + // repeated .viam.app.v1.Authorization authorizations = 1 [json_name = "authorizations"]; int authorizations_size() const; private: int _internal_authorizations_size() const; - public: - void clear_authorizations() ; + void clear_authorizations(); ::viam::app::v1::Authorization* mutable_authorizations(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Authorization >* + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Authorization >* mutable_authorizations(); private: - const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Authorization>& _internal_authorizations() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::Authorization>* _internal_mutable_authorizations(); + const ::viam::app::v1::Authorization& _internal_authorizations(int index) const; + ::viam::app::v1::Authorization* _internal_add_authorizations(); public: const ::viam::app::v1::Authorization& authorizations(int index) const; ::viam::app::v1::Authorization* add_authorizations(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Authorization >& + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Authorization >& authorizations() const; - // string organization_id = 1 [json_name = "organizationId"]; - void clear_organization_id() ; - const std::string& organization_id() const; - template - void set_organization_id(Arg_&& arg, Args_... args); - std::string* mutable_organization_id(); - PROTOBUF_NODISCARD std::string* release_organization_id(); - void set_allocated_organization_id(std::string* value); - - private: - const std::string& _internal_organization_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id( - const std::string& value); - std::string* _internal_mutable_organization_id(); - - public: - // string email = 2 [json_name = "email"]; - void clear_email() ; - const std::string& email() const; - template - void set_email(Arg_&& arg, Args_... args); - std::string* mutable_email(); - PROTOBUF_NODISCARD std::string* release_email(); - void set_allocated_email(std::string* value); - - private: - const std::string& _internal_email() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_email( - const std::string& value); - std::string* _internal_mutable_email(); - - public: - // optional bool send_email_invite = 4 [json_name = "sendEmailInvite"]; - bool has_send_email_invite() const; - void clear_send_email_invite() ; - bool send_email_invite() const; - void set_send_email_invite(bool value); - - private: - bool _internal_send_email_invite() const; - void _internal_set_send_email_invite(bool value); - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.CreateOrganizationInviteRequest) + // @@protoc_insertion_point(class_scope:viam.app.v1.ListAuthorizationsResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 1, - 72, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Authorization > authorizations_; - ::google::protobuf::internal::ArenaStringPtr organization_id_; - ::google::protobuf::internal::ArenaStringPtr email_; - bool send_email_invite_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Authorization > authorizations_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class CreateKeyRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.CreateKeyRequest) */ { +class CheckPermissionsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.CheckPermissionsRequest) */ { public: - inline CreateKeyRequest() : CreateKeyRequest(nullptr) {} - ~CreateKeyRequest() override; - template - explicit PROTOBUF_CONSTEXPR CreateKeyRequest(::google::protobuf::internal::ConstantInitialized); + inline CheckPermissionsRequest() : CheckPermissionsRequest(nullptr) {} + ~CheckPermissionsRequest() override; + explicit PROTOBUF_CONSTEXPR CheckPermissionsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline CreateKeyRequest(const CreateKeyRequest& from) - : CreateKeyRequest(nullptr, from) {} - CreateKeyRequest(CreateKeyRequest&& from) noexcept - : CreateKeyRequest() { + CheckPermissionsRequest(const CheckPermissionsRequest& from); + CheckPermissionsRequest(CheckPermissionsRequest&& from) noexcept + : CheckPermissionsRequest() { *this = ::std::move(from); } - inline CreateKeyRequest& operator=(const CreateKeyRequest& from) { + inline CheckPermissionsRequest& operator=(const CheckPermissionsRequest& from) { CopyFrom(from); return *this; } - inline CreateKeyRequest& operator=(CreateKeyRequest&& from) noexcept { + inline CheckPermissionsRequest& operator=(CheckPermissionsRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -27610,198 +24159,149 @@ class CreateKeyRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CreateKeyRequest& default_instance() { + static const CheckPermissionsRequest& default_instance() { return *internal_default_instance(); } - static inline const CreateKeyRequest* internal_default_instance() { - return reinterpret_cast( - &_CreateKeyRequest_default_instance_); + static inline const CheckPermissionsRequest* internal_default_instance() { + return reinterpret_cast( + &_CheckPermissionsRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 180; + 140; - friend void swap(CreateKeyRequest& a, CreateKeyRequest& b) { + friend void swap(CheckPermissionsRequest& a, CheckPermissionsRequest& b) { a.Swap(&b); } - inline void Swap(CreateKeyRequest* other) { + inline void Swap(CheckPermissionsRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CreateKeyRequest* other) { + void UnsafeArenaSwap(CheckPermissionsRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CreateKeyRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const CreateKeyRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CreateKeyRequest& from) { - CreateKeyRequest::MergeImpl(*this, from); + CheckPermissionsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CheckPermissionsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CheckPermissionsRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(CreateKeyRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(CheckPermissionsRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.CreateKeyRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.CheckPermissionsRequest"; } protected: - explicit CreateKeyRequest(::google::protobuf::Arena* arena); - CreateKeyRequest(::google::protobuf::Arena* arena, const CreateKeyRequest& from); + explicit CheckPermissionsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kAuthorizationsFieldNumber = 1, - kNameFieldNumber = 2, + kPermissionsFieldNumber = 1, }; - // repeated .viam.app.v1.Authorization authorizations = 1 [json_name = "authorizations"]; - int authorizations_size() const; + // repeated .viam.app.v1.AuthorizedPermissions permissions = 1 [json_name = "permissions"]; + int permissions_size() const; private: - int _internal_authorizations_size() const; - + int _internal_permissions_size() const; public: - void clear_authorizations() ; - ::viam::app::v1::Authorization* mutable_authorizations(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Authorization >* - mutable_authorizations(); + void clear_permissions(); + ::viam::app::v1::AuthorizedPermissions* mutable_permissions(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::AuthorizedPermissions >* + mutable_permissions(); private: - const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Authorization>& _internal_authorizations() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::Authorization>* _internal_mutable_authorizations(); + const ::viam::app::v1::AuthorizedPermissions& _internal_permissions(int index) const; + ::viam::app::v1::AuthorizedPermissions* _internal_add_permissions(); public: - const ::viam::app::v1::Authorization& authorizations(int index) const; - ::viam::app::v1::Authorization* add_authorizations(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Authorization >& - authorizations() const; - // string name = 2 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); + const ::viam::app::v1::AuthorizedPermissions& permissions(int index) const; + ::viam::app::v1::AuthorizedPermissions* add_permissions(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::AuthorizedPermissions >& + permissions() const; - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.CreateKeyRequest) + // @@protoc_insertion_point(class_scope:viam.app.v1.CheckPermissionsRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 41, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Authorization > authorizations_; - ::google::protobuf::internal::ArenaStringPtr name_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::AuthorizedPermissions > permissions_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class CreateFragmentRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.CreateFragmentRequest) */ { +class AuthorizedPermissions final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.AuthorizedPermissions) */ { public: - inline CreateFragmentRequest() : CreateFragmentRequest(nullptr) {} - ~CreateFragmentRequest() override; - template - explicit PROTOBUF_CONSTEXPR CreateFragmentRequest(::google::protobuf::internal::ConstantInitialized); + inline AuthorizedPermissions() : AuthorizedPermissions(nullptr) {} + ~AuthorizedPermissions() override; + explicit PROTOBUF_CONSTEXPR AuthorizedPermissions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline CreateFragmentRequest(const CreateFragmentRequest& from) - : CreateFragmentRequest(nullptr, from) {} - CreateFragmentRequest(CreateFragmentRequest&& from) noexcept - : CreateFragmentRequest() { + AuthorizedPermissions(const AuthorizedPermissions& from); + AuthorizedPermissions(AuthorizedPermissions&& from) noexcept + : AuthorizedPermissions() { *this = ::std::move(from); } - inline CreateFragmentRequest& operator=(const CreateFragmentRequest& from) { + inline AuthorizedPermissions& operator=(const AuthorizedPermissions& from) { CopyFrom(from); return *this; } - inline CreateFragmentRequest& operator=(CreateFragmentRequest&& from) noexcept { + inline AuthorizedPermissions& operator=(AuthorizedPermissions&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -27811,213 +24311,173 @@ class CreateFragmentRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CreateFragmentRequest& default_instance() { + static const AuthorizedPermissions& default_instance() { return *internal_default_instance(); } - static inline const CreateFragmentRequest* internal_default_instance() { - return reinterpret_cast( - &_CreateFragmentRequest_default_instance_); + static inline const AuthorizedPermissions* internal_default_instance() { + return reinterpret_cast( + &_AuthorizedPermissions_default_instance_); } static constexpr int kIndexInFileMessages = - 104; + 141; - friend void swap(CreateFragmentRequest& a, CreateFragmentRequest& b) { + friend void swap(AuthorizedPermissions& a, AuthorizedPermissions& b) { a.Swap(&b); } - inline void Swap(CreateFragmentRequest* other) { + inline void Swap(AuthorizedPermissions* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CreateFragmentRequest* other) { + void UnsafeArenaSwap(AuthorizedPermissions* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CreateFragmentRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const CreateFragmentRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CreateFragmentRequest& from) { - CreateFragmentRequest::MergeImpl(*this, from); + AuthorizedPermissions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const AuthorizedPermissions& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const AuthorizedPermissions& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(CreateFragmentRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(AuthorizedPermissions* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.CreateFragmentRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.AuthorizedPermissions"; } protected: - explicit CreateFragmentRequest(::google::protobuf::Arena* arena); - CreateFragmentRequest(::google::protobuf::Arena* arena, const CreateFragmentRequest& from); + explicit AuthorizedPermissions(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kNameFieldNumber = 1, - kOrganizationIdFieldNumber = 3, - kConfigFieldNumber = 2, - kVisibilityFieldNumber = 4, + kPermissionsFieldNumber = 3, + kResourceTypeFieldNumber = 1, + kResourceIdFieldNumber = 2, }; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + // repeated string permissions = 3 [json_name = "permissions"]; + int permissions_size() const; private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - + int _internal_permissions_size() const; public: - // string organization_id = 3 [json_name = "organizationId"]; - void clear_organization_id() ; - const std::string& organization_id() const; - template - void set_organization_id(Arg_&& arg, Args_... args); - std::string* mutable_organization_id(); - PROTOBUF_NODISCARD std::string* release_organization_id(); - void set_allocated_organization_id(std::string* value); - + void clear_permissions(); + const std::string& permissions(int index) const; + std::string* mutable_permissions(int index); + void set_permissions(int index, const std::string& value); + void set_permissions(int index, std::string&& value); + void set_permissions(int index, const char* value); + void set_permissions(int index, const char* value, size_t size); + std::string* add_permissions(); + void add_permissions(const std::string& value); + void add_permissions(std::string&& value); + void add_permissions(const char* value); + void add_permissions(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& permissions() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_permissions(); private: - const std::string& _internal_organization_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id( - const std::string& value); - std::string* _internal_mutable_organization_id(); - + const std::string& _internal_permissions(int index) const; + std::string* _internal_add_permissions(); public: - // .google.protobuf.Struct config = 2 [json_name = "config"]; - bool has_config() const; - void clear_config() ; - const ::google::protobuf::Struct& config() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_config(); - ::google::protobuf::Struct* mutable_config(); - void set_allocated_config(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_config(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_config(); + // string resource_type = 1 [json_name = "resourceType"]; + void clear_resource_type(); + const std::string& resource_type() const; + template + void set_resource_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_resource_type(); + PROTOBUF_NODISCARD std::string* release_resource_type(); + void set_allocated_resource_type(std::string* resource_type); private: - const ::google::protobuf::Struct& _internal_config() const; - ::google::protobuf::Struct* _internal_mutable_config(); - + const std::string& _internal_resource_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_resource_type(const std::string& value); + std::string* _internal_mutable_resource_type(); public: - // optional .viam.app.v1.FragmentVisibility visibility = 4 [json_name = "visibility"]; - bool has_visibility() const; - void clear_visibility() ; - ::viam::app::v1::FragmentVisibility visibility() const; - void set_visibility(::viam::app::v1::FragmentVisibility value); + // string resource_id = 2 [json_name = "resourceId"]; + void clear_resource_id(); + const std::string& resource_id() const; + template + void set_resource_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_resource_id(); + PROTOBUF_NODISCARD std::string* release_resource_id(); + void set_allocated_resource_id(std::string* resource_id); private: - ::viam::app::v1::FragmentVisibility _internal_visibility() const; - void _internal_set_visibility(::viam::app::v1::FragmentVisibility value); - + const std::string& _internal_resource_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_resource_id(const std::string& value); + std::string* _internal_mutable_resource_id(); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.CreateFragmentRequest) + + // @@protoc_insertion_point(class_scope:viam.app.v1.AuthorizedPermissions) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 1, - 61, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr organization_id_; - ::google::protobuf::Struct* config_; - int visibility_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField permissions_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr resource_type_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr resource_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class CheckPermissionsResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.CheckPermissionsResponse) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.CheckPermissionsResponse) */ { public: inline CheckPermissionsResponse() : CheckPermissionsResponse(nullptr) {} ~CheckPermissionsResponse() override; - template - explicit PROTOBUF_CONSTEXPR CheckPermissionsResponse(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR CheckPermissionsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline CheckPermissionsResponse(const CheckPermissionsResponse& from) - : CheckPermissionsResponse(nullptr, from) {} + CheckPermissionsResponse(const CheckPermissionsResponse& from); CheckPermissionsResponse(CheckPermissionsResponse&& from) noexcept : CheckPermissionsResponse() { *this = ::std::move(from); @@ -28029,9 +24489,9 @@ class CheckPermissionsResponse final : } inline CheckPermissionsResponse& operator=(CheckPermissionsResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -28041,22 +24501,13 @@ class CheckPermissionsResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const CheckPermissionsResponse& default_instance() { @@ -28067,7 +24518,7 @@ class CheckPermissionsResponse final : &_CheckPermissionsResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 141; + 142; friend void swap(CheckPermissionsResponse& a, CheckPermissionsResponse& b) { a.Swap(&b); @@ -28075,65 +24526,63 @@ class CheckPermissionsResponse final : inline void Swap(CheckPermissionsResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(CheckPermissionsResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CheckPermissionsResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + CheckPermissionsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const CheckPermissionsResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CheckPermissionsResponse& from) { - CheckPermissionsResponse::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CheckPermissionsResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(CheckPermissionsResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "viam.app.v1.CheckPermissionsResponse"; } protected: - explicit CheckPermissionsResponse(::google::protobuf::Arena* arena); - CheckPermissionsResponse(::google::protobuf::Arena* arena, const CheckPermissionsResponse& from); + explicit CheckPermissionsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -28146,75 +24595,55 @@ class CheckPermissionsResponse final : int authorized_permissions_size() const; private: int _internal_authorized_permissions_size() const; - public: - void clear_authorized_permissions() ; + void clear_authorized_permissions(); ::viam::app::v1::AuthorizedPermissions* mutable_authorized_permissions(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::AuthorizedPermissions >* + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::AuthorizedPermissions >* mutable_authorized_permissions(); private: - const ::google::protobuf::RepeatedPtrField<::viam::app::v1::AuthorizedPermissions>& _internal_authorized_permissions() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::AuthorizedPermissions>* _internal_mutable_authorized_permissions(); + const ::viam::app::v1::AuthorizedPermissions& _internal_authorized_permissions(int index) const; + ::viam::app::v1::AuthorizedPermissions* _internal_add_authorized_permissions(); public: const ::viam::app::v1::AuthorizedPermissions& authorized_permissions(int index) const; ::viam::app::v1::AuthorizedPermissions* add_authorized_permissions(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::AuthorizedPermissions >& + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::AuthorizedPermissions >& authorized_permissions() const; + // @@protoc_insertion_point(class_scope:viam.app.v1.CheckPermissionsResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::AuthorizedPermissions > authorized_permissions_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::AuthorizedPermissions > authorized_permissions_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class CheckPermissionsRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.CheckPermissionsRequest) */ { +class ModuleVersion final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ModuleVersion) */ { public: - inline CheckPermissionsRequest() : CheckPermissionsRequest(nullptr) {} - ~CheckPermissionsRequest() override; - template - explicit PROTOBUF_CONSTEXPR CheckPermissionsRequest(::google::protobuf::internal::ConstantInitialized); + inline ModuleVersion() : ModuleVersion(nullptr) {} + ~ModuleVersion() override; + explicit PROTOBUF_CONSTEXPR ModuleVersion(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline CheckPermissionsRequest(const CheckPermissionsRequest& from) - : CheckPermissionsRequest(nullptr, from) {} - CheckPermissionsRequest(CheckPermissionsRequest&& from) noexcept - : CheckPermissionsRequest() { + ModuleVersion(const ModuleVersion& from); + ModuleVersion(ModuleVersion&& from) noexcept + : ModuleVersion() { *this = ::std::move(from); } - inline CheckPermissionsRequest& operator=(const CheckPermissionsRequest& from) { + inline ModuleVersion& operator=(const ModuleVersion& from) { CopyFrom(from); return *this; } - inline CheckPermissionsRequest& operator=(CheckPermissionsRequest&& from) noexcept { + inline ModuleVersion& operator=(ModuleVersion&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -28224,180 +24653,222 @@ class CheckPermissionsRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CheckPermissionsRequest& default_instance() { + static const ModuleVersion& default_instance() { return *internal_default_instance(); } - static inline const CheckPermissionsRequest* internal_default_instance() { - return reinterpret_cast( - &_CheckPermissionsRequest_default_instance_); + static inline const ModuleVersion* internal_default_instance() { + return reinterpret_cast( + &_ModuleVersion_default_instance_); } static constexpr int kIndexInFileMessages = - 139; + 143; - friend void swap(CheckPermissionsRequest& a, CheckPermissionsRequest& b) { + friend void swap(ModuleVersion& a, ModuleVersion& b) { a.Swap(&b); } - inline void Swap(CheckPermissionsRequest* other) { + inline void Swap(ModuleVersion* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CheckPermissionsRequest* other) { + void UnsafeArenaSwap(ModuleVersion* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CheckPermissionsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const CheckPermissionsRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CheckPermissionsRequest& from) { - CheckPermissionsRequest::MergeImpl(*this, from); + ModuleVersion* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ModuleVersion& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ModuleVersion& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(CheckPermissionsRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(ModuleVersion* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.CheckPermissionsRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.ModuleVersion"; } protected: - explicit CheckPermissionsRequest(::google::protobuf::Arena* arena); - CheckPermissionsRequest(::google::protobuf::Arena* arena, const CheckPermissionsRequest& from); + explicit ModuleVersion(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kPermissionsFieldNumber = 1, + kFilesFieldNumber = 2, + kModelsFieldNumber = 3, + kVersionFieldNumber = 1, + kEntrypointFieldNumber = 4, + kFirstRunFieldNumber = 5, }; - // repeated .viam.app.v1.AuthorizedPermissions permissions = 1 [json_name = "permissions"]; - int permissions_size() const; + // repeated .viam.app.v1.Uploads files = 2 [json_name = "files"]; + int files_size() const; private: - int _internal_permissions_size() const; + int _internal_files_size() const; + public: + void clear_files(); + ::viam::app::v1::Uploads* mutable_files(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Uploads >* + mutable_files(); + private: + const ::viam::app::v1::Uploads& _internal_files(int index) const; + ::viam::app::v1::Uploads* _internal_add_files(); + public: + const ::viam::app::v1::Uploads& files(int index) const; + ::viam::app::v1::Uploads* add_files(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Uploads >& + files() const; + // repeated .viam.app.v1.Model models = 3 [json_name = "models"]; + int models_size() const; + private: + int _internal_models_size() const; public: - void clear_permissions() ; - ::viam::app::v1::AuthorizedPermissions* mutable_permissions(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::AuthorizedPermissions >* - mutable_permissions(); + void clear_models(); + ::viam::app::v1::Model* mutable_models(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Model >* + mutable_models(); private: - const ::google::protobuf::RepeatedPtrField<::viam::app::v1::AuthorizedPermissions>& _internal_permissions() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::AuthorizedPermissions>* _internal_mutable_permissions(); + const ::viam::app::v1::Model& _internal_models(int index) const; + ::viam::app::v1::Model* _internal_add_models(); public: - const ::viam::app::v1::AuthorizedPermissions& permissions(int index) const; - ::viam::app::v1::AuthorizedPermissions* add_permissions(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::AuthorizedPermissions >& - permissions() const; - // @@protoc_insertion_point(class_scope:viam.app.v1.CheckPermissionsRequest) + const ::viam::app::v1::Model& models(int index) const; + ::viam::app::v1::Model* add_models(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Model >& + models() const; + + // string version = 1 [json_name = "version"]; + void clear_version(); + const std::string& version() const; + template + void set_version(ArgT0&& arg0, ArgT... args); + std::string* mutable_version(); + PROTOBUF_NODISCARD std::string* release_version(); + void set_allocated_version(std::string* version); + private: + const std::string& _internal_version() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_version(const std::string& value); + std::string* _internal_mutable_version(); + public: + + // string entrypoint = 4 [json_name = "entrypoint"]; + void clear_entrypoint(); + const std::string& entrypoint() const; + template + void set_entrypoint(ArgT0&& arg0, ArgT... args); + std::string* mutable_entrypoint(); + PROTOBUF_NODISCARD std::string* release_entrypoint(); + void set_allocated_entrypoint(std::string* entrypoint); + private: + const std::string& _internal_entrypoint() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_entrypoint(const std::string& value); + std::string* _internal_mutable_entrypoint(); + public: + + // optional string first_run = 5 [json_name = "firstRun"]; + bool has_first_run() const; + private: + bool _internal_has_first_run() const; + public: + void clear_first_run(); + const std::string& first_run() const; + template + void set_first_run(ArgT0&& arg0, ArgT... args); + std::string* mutable_first_run(); + PROTOBUF_NODISCARD std::string* release_first_run(); + void set_allocated_first_run(std::string* first_run); + private: + const std::string& _internal_first_run() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_first_run(const std::string& value); + std::string* _internal_mutable_first_run(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.ModuleVersion) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::AuthorizedPermissions > permissions_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Uploads > files_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Model > models_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr version_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr entrypoint_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr first_run_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ChangeRoleRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ChangeRoleRequest) */ { +class ModuleMetadata final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ModuleMetadata) */ { public: - inline ChangeRoleRequest() : ChangeRoleRequest(nullptr) {} - ~ChangeRoleRequest() override; - template - explicit PROTOBUF_CONSTEXPR ChangeRoleRequest(::google::protobuf::internal::ConstantInitialized); + inline ModuleMetadata() : ModuleMetadata(nullptr) {} + ~ModuleMetadata() override; + explicit PROTOBUF_CONSTEXPR ModuleMetadata(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ChangeRoleRequest(const ChangeRoleRequest& from) - : ChangeRoleRequest(nullptr, from) {} - ChangeRoleRequest(ChangeRoleRequest&& from) noexcept - : ChangeRoleRequest() { + ModuleMetadata(const ModuleMetadata& from); + ModuleMetadata(ModuleMetadata&& from) noexcept + : ModuleMetadata() { *this = ::std::move(from); } - inline ChangeRoleRequest& operator=(const ChangeRoleRequest& from) { + inline ModuleMetadata& operator=(const ModuleMetadata& from) { CopyFrom(from); return *this; } - inline ChangeRoleRequest& operator=(ChangeRoleRequest&& from) noexcept { + inline ModuleMetadata& operator=(ModuleMetadata&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -28407,195 +24878,206 @@ class ChangeRoleRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ChangeRoleRequest& default_instance() { + static const ModuleMetadata& default_instance() { return *internal_default_instance(); } - static inline const ChangeRoleRequest* internal_default_instance() { - return reinterpret_cast( - &_ChangeRoleRequest_default_instance_); + static inline const ModuleMetadata* internal_default_instance() { + return reinterpret_cast( + &_ModuleMetadata_default_instance_); } static constexpr int kIndexInFileMessages = - 135; + 144; - friend void swap(ChangeRoleRequest& a, ChangeRoleRequest& b) { + friend void swap(ModuleMetadata& a, ModuleMetadata& b) { a.Swap(&b); } - inline void Swap(ChangeRoleRequest* other) { + inline void Swap(ModuleMetadata* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ChangeRoleRequest* other) { + void UnsafeArenaSwap(ModuleMetadata* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ChangeRoleRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ChangeRoleRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ChangeRoleRequest& from) { - ChangeRoleRequest::MergeImpl(*this, from); + ModuleMetadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ModuleMetadata& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ModuleMetadata& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ChangeRoleRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(ModuleMetadata* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.ChangeRoleRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.ModuleMetadata"; } protected: - explicit ChangeRoleRequest(::google::protobuf::Arena* arena); - ChangeRoleRequest(::google::protobuf::Arena* arena, const ChangeRoleRequest& from); + explicit ModuleMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kOldAuthorizationFieldNumber = 1, - kNewAuthorizationFieldNumber = 2, + kModelsFieldNumber = 1, + kVersionsFieldNumber = 2, + kEntrypointFieldNumber = 3, + kFirstRunFieldNumber = 4, }; - // .viam.app.v1.Authorization old_authorization = 1 [json_name = "oldAuthorization"]; - bool has_old_authorization() const; - void clear_old_authorization() ; - const ::viam::app::v1::Authorization& old_authorization() const; - PROTOBUF_NODISCARD ::viam::app::v1::Authorization* release_old_authorization(); - ::viam::app::v1::Authorization* mutable_old_authorization(); - void set_allocated_old_authorization(::viam::app::v1::Authorization* value); - void unsafe_arena_set_allocated_old_authorization(::viam::app::v1::Authorization* value); - ::viam::app::v1::Authorization* unsafe_arena_release_old_authorization(); - + // repeated .viam.app.v1.Model models = 1 [json_name = "models"]; + int models_size() const; private: - const ::viam::app::v1::Authorization& _internal_old_authorization() const; - ::viam::app::v1::Authorization* _internal_mutable_old_authorization(); + int _internal_models_size() const; + public: + void clear_models(); + ::viam::app::v1::Model* mutable_models(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Model >* + mutable_models(); + private: + const ::viam::app::v1::Model& _internal_models(int index) const; + ::viam::app::v1::Model* _internal_add_models(); + public: + const ::viam::app::v1::Model& models(int index) const; + ::viam::app::v1::Model* add_models(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Model >& + models() const; + // repeated .viam.app.v1.ModuleVersion versions = 2 [json_name = "versions"]; + int versions_size() const; + private: + int _internal_versions_size() const; public: - // .viam.app.v1.Authorization new_authorization = 2 [json_name = "newAuthorization"]; - bool has_new_authorization() const; - void clear_new_authorization() ; - const ::viam::app::v1::Authorization& new_authorization() const; - PROTOBUF_NODISCARD ::viam::app::v1::Authorization* release_new_authorization(); - ::viam::app::v1::Authorization* mutable_new_authorization(); - void set_allocated_new_authorization(::viam::app::v1::Authorization* value); - void unsafe_arena_set_allocated_new_authorization(::viam::app::v1::Authorization* value); - ::viam::app::v1::Authorization* unsafe_arena_release_new_authorization(); + void clear_versions(); + ::viam::app::v1::ModuleVersion* mutable_versions(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ModuleVersion >* + mutable_versions(); + private: + const ::viam::app::v1::ModuleVersion& _internal_versions(int index) const; + ::viam::app::v1::ModuleVersion* _internal_add_versions(); + public: + const ::viam::app::v1::ModuleVersion& versions(int index) const; + ::viam::app::v1::ModuleVersion* add_versions(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ModuleVersion >& + versions() const; + // string entrypoint = 3 [json_name = "entrypoint"]; + void clear_entrypoint(); + const std::string& entrypoint() const; + template + void set_entrypoint(ArgT0&& arg0, ArgT... args); + std::string* mutable_entrypoint(); + PROTOBUF_NODISCARD std::string* release_entrypoint(); + void set_allocated_entrypoint(std::string* entrypoint); private: - const ::viam::app::v1::Authorization& _internal_new_authorization() const; - ::viam::app::v1::Authorization* _internal_mutable_new_authorization(); + const std::string& _internal_entrypoint() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_entrypoint(const std::string& value); + std::string* _internal_mutable_entrypoint(); + public: + // optional string first_run = 4 [json_name = "firstRun"]; + bool has_first_run() const; + private: + bool _internal_has_first_run() const; public: - // @@protoc_insertion_point(class_scope:viam.app.v1.ChangeRoleRequest) + void clear_first_run(); + const std::string& first_run() const; + template + void set_first_run(ArgT0&& arg0, ArgT... args); + std::string* mutable_first_run(); + PROTOBUF_NODISCARD std::string* release_first_run(); + void set_allocated_first_run(std::string* first_run); + private: + const std::string& _internal_first_run() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_first_run(const std::string& value); + std::string* _internal_mutable_first_run(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.ModuleMetadata) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 2, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::viam::app::v1::Authorization* old_authorization_; - ::viam::app::v1::Authorization* new_authorization_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Model > models_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ModuleVersion > versions_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr entrypoint_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr first_run_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class AddRoleRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.AddRoleRequest) */ { +class MLModelMetadata final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.MLModelMetadata) */ { public: - inline AddRoleRequest() : AddRoleRequest(nullptr) {} - ~AddRoleRequest() override; - template - explicit PROTOBUF_CONSTEXPR AddRoleRequest(::google::protobuf::internal::ConstantInitialized); + inline MLModelMetadata() : MLModelMetadata(nullptr) {} + ~MLModelMetadata() override; + explicit PROTOBUF_CONSTEXPR MLModelMetadata(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline AddRoleRequest(const AddRoleRequest& from) - : AddRoleRequest(nullptr, from) {} - AddRoleRequest(AddRoleRequest&& from) noexcept - : AddRoleRequest() { + MLModelMetadata(const MLModelMetadata& from); + MLModelMetadata(MLModelMetadata&& from) noexcept + : MLModelMetadata() { *this = ::std::move(from); } - inline AddRoleRequest& operator=(const AddRoleRequest& from) { + inline MLModelMetadata& operator=(const MLModelMetadata& from) { CopyFrom(from); return *this; } - inline AddRoleRequest& operator=(AddRoleRequest&& from) noexcept { + inline MLModelMetadata& operator=(MLModelMetadata&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -28605,178 +25087,177 @@ class AddRoleRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const AddRoleRequest& default_instance() { + static const MLModelMetadata& default_instance() { return *internal_default_instance(); } - static inline const AddRoleRequest* internal_default_instance() { - return reinterpret_cast( - &_AddRoleRequest_default_instance_); + static inline const MLModelMetadata* internal_default_instance() { + return reinterpret_cast( + &_MLModelMetadata_default_instance_); } static constexpr int kIndexInFileMessages = - 131; + 145; - friend void swap(AddRoleRequest& a, AddRoleRequest& b) { + friend void swap(MLModelMetadata& a, MLModelMetadata& b) { a.Swap(&b); } - inline void Swap(AddRoleRequest* other) { + inline void Swap(MLModelMetadata* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(AddRoleRequest* other) { + void UnsafeArenaSwap(MLModelMetadata* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - AddRoleRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const AddRoleRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const AddRoleRequest& from) { - AddRoleRequest::MergeImpl(*this, from); + MLModelMetadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MLModelMetadata& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MLModelMetadata& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(AddRoleRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(MLModelMetadata* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.AddRoleRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.MLModelMetadata"; } protected: - explicit AddRoleRequest(::google::protobuf::Arena* arena); - AddRoleRequest(::google::protobuf::Arena* arena, const AddRoleRequest& from); + explicit MLModelMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kAuthorizationFieldNumber = 1, + kVersionsFieldNumber = 1, + kModelTypeFieldNumber = 2, + kModelFrameworkFieldNumber = 3, }; - // .viam.app.v1.Authorization authorization = 1 [json_name = "authorization"]; - bool has_authorization() const; - void clear_authorization() ; - const ::viam::app::v1::Authorization& authorization() const; - PROTOBUF_NODISCARD ::viam::app::v1::Authorization* release_authorization(); - ::viam::app::v1::Authorization* mutable_authorization(); - void set_allocated_authorization(::viam::app::v1::Authorization* value); - void unsafe_arena_set_allocated_authorization(::viam::app::v1::Authorization* value); - ::viam::app::v1::Authorization* unsafe_arena_release_authorization(); + // repeated string versions = 1 [json_name = "versions"]; + int versions_size() const; + private: + int _internal_versions_size() const; + public: + void clear_versions(); + const std::string& versions(int index) const; + std::string* mutable_versions(int index); + void set_versions(int index, const std::string& value); + void set_versions(int index, std::string&& value); + void set_versions(int index, const char* value); + void set_versions(int index, const char* value, size_t size); + std::string* add_versions(); + void add_versions(const std::string& value); + void add_versions(std::string&& value); + void add_versions(const char* value); + void add_versions(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& versions() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_versions(); + private: + const std::string& _internal_versions(int index) const; + std::string* _internal_add_versions(); + public: + // .viam.app.mltraining.v1.ModelType model_type = 2 [json_name = "modelType"]; + void clear_model_type(); + ::viam::app::mltraining::v1::ModelType model_type() const; + void set_model_type(::viam::app::mltraining::v1::ModelType value); private: - const ::viam::app::v1::Authorization& _internal_authorization() const; - ::viam::app::v1::Authorization* _internal_mutable_authorization(); + ::viam::app::mltraining::v1::ModelType _internal_model_type() const; + void _internal_set_model_type(::viam::app::mltraining::v1::ModelType value); + public: + // .viam.app.mltraining.v1.ModelFramework model_framework = 3 [json_name = "modelFramework"]; + void clear_model_framework(); + ::viam::app::mltraining::v1::ModelFramework model_framework() const; + void set_model_framework(::viam::app::mltraining::v1::ModelFramework value); + private: + ::viam::app::mltraining::v1::ModelFramework _internal_model_framework() const; + void _internal_set_model_framework(::viam::app::mltraining::v1::ModelFramework value); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.AddRoleRequest) + + // @@protoc_insertion_point(class_scope:viam.app.v1.MLModelMetadata) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::viam::app::v1::Authorization* authorization_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField versions_; + int model_type_; + int model_framework_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class APIKey final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.APIKey) */ { +class MLTrainingVersion final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.MLTrainingVersion) */ { public: - inline APIKey() : APIKey(nullptr) {} - ~APIKey() override; - template - explicit PROTOBUF_CONSTEXPR APIKey(::google::protobuf::internal::ConstantInitialized); + inline MLTrainingVersion() : MLTrainingVersion(nullptr) {} + ~MLTrainingVersion() override; + explicit PROTOBUF_CONSTEXPR MLTrainingVersion(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline APIKey(const APIKey& from) - : APIKey(nullptr, from) {} - APIKey(APIKey&& from) noexcept - : APIKey() { + MLTrainingVersion(const MLTrainingVersion& from); + MLTrainingVersion(MLTrainingVersion&& from) noexcept + : MLTrainingVersion() { *this = ::std::move(from); } - inline APIKey& operator=(const APIKey& from) { + inline MLTrainingVersion& operator=(const MLTrainingVersion& from) { CopyFrom(from); return *this; } - inline APIKey& operator=(APIKey&& from) noexcept { + inline MLTrainingVersion& operator=(MLTrainingVersion&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -28786,232 +25267,165 @@ class APIKey final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const APIKey& default_instance() { + static const MLTrainingVersion& default_instance() { return *internal_default_instance(); } - static inline const APIKey* internal_default_instance() { - return reinterpret_cast( - &_APIKey_default_instance_); + static inline const MLTrainingVersion* internal_default_instance() { + return reinterpret_cast( + &_MLTrainingVersion_default_instance_); } static constexpr int kIndexInFileMessages = - 93; + 146; - friend void swap(APIKey& a, APIKey& b) { + friend void swap(MLTrainingVersion& a, MLTrainingVersion& b) { a.Swap(&b); } - inline void Swap(APIKey* other) { + inline void Swap(MLTrainingVersion* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(APIKey* other) { + void UnsafeArenaSwap(MLTrainingVersion* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - APIKey* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const APIKey& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const APIKey& from) { - APIKey::MergeImpl(*this, from); + MLTrainingVersion* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MLTrainingVersion& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MLTrainingVersion& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(APIKey* other); + void SetCachedSize(int size) const final; + void InternalSwap(MLTrainingVersion* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.APIKey"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.MLTrainingVersion"; } protected: - explicit APIKey(::google::protobuf::Arena* arena); - APIKey(::google::protobuf::Arena* arena, const APIKey& from); + explicit MLTrainingVersion(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kIdFieldNumber = 1, - kKeyFieldNumber = 2, - kNameFieldNumber = 3, - kCreatedOnFieldNumber = 4, + kVersionFieldNumber = 1, + kCreatedOnFieldNumber = 2, }; - // string id = 1 [json_name = "id"]; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - + // string version = 1 [json_name = "version"]; + void clear_version(); + const std::string& version() const; + template + void set_version(ArgT0&& arg0, ArgT... args); + std::string* mutable_version(); + PROTOBUF_NODISCARD std::string* release_version(); + void set_allocated_version(std::string* version); private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); - + const std::string& _internal_version() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_version(const std::string& value); + std::string* _internal_mutable_version(); public: - // string key = 2 [json_name = "key"]; - void clear_key() ; - const std::string& key() const; - template - void set_key(Arg_&& arg, Args_... args); - std::string* mutable_key(); - PROTOBUF_NODISCARD std::string* release_key(); - void set_allocated_key(std::string* value); + // .google.protobuf.Timestamp created_on = 2 [json_name = "createdOn"]; + bool has_created_on() const; private: - const std::string& _internal_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_key( - const std::string& value); - std::string* _internal_mutable_key(); - + bool _internal_has_created_on() const; public: - // string name = 3 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + void clear_created_on(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& created_on() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_created_on(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_created_on(); + void set_allocated_created_on(::PROTOBUF_NAMESPACE_ID::Timestamp* created_on); private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_created_on() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_created_on(); public: - // .google.protobuf.Timestamp created_on = 4 [json_name = "createdOn"]; - bool has_created_on() const; - void clear_created_on() ; - const ::google::protobuf::Timestamp& created_on() const; - PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_created_on(); - ::google::protobuf::Timestamp* mutable_created_on(); - void set_allocated_created_on(::google::protobuf::Timestamp* value); - void unsafe_arena_set_allocated_created_on(::google::protobuf::Timestamp* value); - ::google::protobuf::Timestamp* unsafe_arena_release_created_on(); + void unsafe_arena_set_allocated_created_on( + ::PROTOBUF_NAMESPACE_ID::Timestamp* created_on); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_created_on(); - private: - const ::google::protobuf::Timestamp& _internal_created_on() const; - ::google::protobuf::Timestamp* _internal_mutable_created_on(); - - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.APIKey) + // @@protoc_insertion_point(class_scope:viam.app.v1.MLTrainingVersion) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 1, - 36, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr id_; - ::google::protobuf::internal::ArenaStringPtr key_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Timestamp* created_on_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr version_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* created_on_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class VersionHistory final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.VersionHistory) */ { +class MLTrainingMetadata final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.MLTrainingMetadata) */ { public: - inline VersionHistory() : VersionHistory(nullptr) {} - ~VersionHistory() override; - template - explicit PROTOBUF_CONSTEXPR VersionHistory(::google::protobuf::internal::ConstantInitialized); + inline MLTrainingMetadata() : MLTrainingMetadata(nullptr) {} + ~MLTrainingMetadata() override; + explicit PROTOBUF_CONSTEXPR MLTrainingMetadata(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline VersionHistory(const VersionHistory& from) - : VersionHistory(nullptr, from) {} - VersionHistory(VersionHistory&& from) noexcept - : VersionHistory() { + MLTrainingMetadata(const MLTrainingMetadata& from); + MLTrainingMetadata(MLTrainingMetadata&& from) noexcept + : MLTrainingMetadata() { *this = ::std::move(from); } - inline VersionHistory& operator=(const VersionHistory& from) { + inline MLTrainingMetadata& operator=(const MLTrainingMetadata& from) { CopyFrom(from); return *this; } - inline VersionHistory& operator=(VersionHistory&& from) noexcept { + inline MLTrainingMetadata& operator=(MLTrainingMetadata&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -29021,256 +25435,182 @@ class VersionHistory final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const VersionHistory& default_instance() { + static const MLTrainingMetadata& default_instance() { return *internal_default_instance(); } - static inline const VersionHistory* internal_default_instance() { - return reinterpret_cast( - &_VersionHistory_default_instance_); + static inline const MLTrainingMetadata* internal_default_instance() { + return reinterpret_cast( + &_MLTrainingMetadata_default_instance_); } static constexpr int kIndexInFileMessages = - 171; + 147; - friend void swap(VersionHistory& a, VersionHistory& b) { + friend void swap(MLTrainingMetadata& a, MLTrainingMetadata& b) { a.Swap(&b); } - inline void Swap(VersionHistory* other) { + inline void Swap(MLTrainingMetadata* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(VersionHistory* other) { + void UnsafeArenaSwap(MLTrainingMetadata* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - VersionHistory* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const VersionHistory& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const VersionHistory& from) { - VersionHistory::MergeImpl(*this, from); + MLTrainingMetadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MLTrainingMetadata& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MLTrainingMetadata& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(VersionHistory* other); + void SetCachedSize(int size) const final; + void InternalSwap(MLTrainingMetadata* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.VersionHistory"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.MLTrainingMetadata"; } protected: - explicit VersionHistory(::google::protobuf::Arena* arena); - VersionHistory(::google::protobuf::Arena* arena, const VersionHistory& from); + explicit MLTrainingMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kFilesFieldNumber = 2, - kModelsFieldNumber = 3, - kVersionFieldNumber = 1, - kEntrypointFieldNumber = 4, - kFirstRunFieldNumber = 5, + kVersionsFieldNumber = 5, + kModelTypeFieldNumber = 2, + kModelFrameworkFieldNumber = 3, + kDraftFieldNumber = 4, }; - // repeated .viam.app.v1.Uploads files = 2 [json_name = "files"]; - int files_size() const; + // repeated .viam.app.v1.MLTrainingVersion versions = 5 [json_name = "versions"]; + int versions_size() const; private: - int _internal_files_size() const; - + int _internal_versions_size() const; public: - void clear_files() ; - ::viam::app::v1::Uploads* mutable_files(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Uploads >* - mutable_files(); + void clear_versions(); + ::viam::app::v1::MLTrainingVersion* mutable_versions(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::MLTrainingVersion >* + mutable_versions(); private: - const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Uploads>& _internal_files() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::Uploads>* _internal_mutable_files(); + const ::viam::app::v1::MLTrainingVersion& _internal_versions(int index) const; + ::viam::app::v1::MLTrainingVersion* _internal_add_versions(); public: - const ::viam::app::v1::Uploads& files(int index) const; - ::viam::app::v1::Uploads* add_files(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Uploads >& - files() const; - // repeated .viam.app.v1.Model models = 3 [json_name = "models"]; - int models_size() const; - private: - int _internal_models_size() const; + const ::viam::app::v1::MLTrainingVersion& versions(int index) const; + ::viam::app::v1::MLTrainingVersion* add_versions(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::MLTrainingVersion >& + versions() const; - public: - void clear_models() ; - ::viam::app::v1::Model* mutable_models(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Model >* - mutable_models(); + // .viam.app.mltraining.v1.ModelType model_type = 2 [json_name = "modelType"]; + void clear_model_type(); + ::viam::app::mltraining::v1::ModelType model_type() const; + void set_model_type(::viam::app::mltraining::v1::ModelType value); private: - const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Model>& _internal_models() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::Model>* _internal_mutable_models(); + ::viam::app::mltraining::v1::ModelType _internal_model_type() const; + void _internal_set_model_type(::viam::app::mltraining::v1::ModelType value); public: - const ::viam::app::v1::Model& models(int index) const; - ::viam::app::v1::Model* add_models(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Model >& - models() const; - // string version = 1 [json_name = "version"]; - void clear_version() ; - const std::string& version() const; - template - void set_version(Arg_&& arg, Args_... args); - std::string* mutable_version(); - PROTOBUF_NODISCARD std::string* release_version(); - void set_allocated_version(std::string* value); + // .viam.app.mltraining.v1.ModelFramework model_framework = 3 [json_name = "modelFramework"]; + void clear_model_framework(); + ::viam::app::mltraining::v1::ModelFramework model_framework() const; + void set_model_framework(::viam::app::mltraining::v1::ModelFramework value); private: - const std::string& _internal_version() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_version( - const std::string& value); - std::string* _internal_mutable_version(); - + ::viam::app::mltraining::v1::ModelFramework _internal_model_framework() const; + void _internal_set_model_framework(::viam::app::mltraining::v1::ModelFramework value); public: - // string entrypoint = 4 [json_name = "entrypoint"]; - void clear_entrypoint() ; - const std::string& entrypoint() const; - template - void set_entrypoint(Arg_&& arg, Args_... args); - std::string* mutable_entrypoint(); - PROTOBUF_NODISCARD std::string* release_entrypoint(); - void set_allocated_entrypoint(std::string* value); + // bool draft = 4 [json_name = "draft"]; + void clear_draft(); + bool draft() const; + void set_draft(bool value); private: - const std::string& _internal_entrypoint() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_entrypoint( - const std::string& value); - std::string* _internal_mutable_entrypoint(); - + bool _internal_draft() const; + void _internal_set_draft(bool value); public: - // optional string first_run = 5 [json_name = "firstRun"]; - bool has_first_run() const; - void clear_first_run() ; - const std::string& first_run() const; - template - void set_first_run(Arg_&& arg, Args_... args); - std::string* mutable_first_run(); - PROTOBUF_NODISCARD std::string* release_first_run(); - void set_allocated_first_run(std::string* value); - - private: - const std::string& _internal_first_run() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_first_run( - const std::string& value); - std::string* _internal_mutable_first_run(); - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.VersionHistory) + // @@protoc_insertion_point(class_scope:viam.app.v1.MLTrainingMetadata) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 5, 2, - 61, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Uploads > files_; - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Model > models_; - ::google::protobuf::internal::ArenaStringPtr version_; - ::google::protobuf::internal::ArenaStringPtr entrypoint_; - ::google::protobuf::internal::ArenaStringPtr first_run_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::MLTrainingVersion > versions_; + int model_type_; + int model_framework_; + bool draft_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class UpdateRobotResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.UpdateRobotResponse) */ { +class RegistryItem final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.RegistryItem) */ { public: - inline UpdateRobotResponse() : UpdateRobotResponse(nullptr) {} - ~UpdateRobotResponse() override; - template - explicit PROTOBUF_CONSTEXPR UpdateRobotResponse(::google::protobuf::internal::ConstantInitialized); + inline RegistryItem() : RegistryItem(nullptr) {} + ~RegistryItem() override; + explicit PROTOBUF_CONSTEXPR RegistryItem(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline UpdateRobotResponse(const UpdateRobotResponse& from) - : UpdateRobotResponse(nullptr, from) {} - UpdateRobotResponse(UpdateRobotResponse&& from) noexcept - : UpdateRobotResponse() { + RegistryItem(const RegistryItem& from); + RegistryItem(RegistryItem&& from) noexcept + : RegistryItem() { *this = ::std::move(from); } - inline UpdateRobotResponse& operator=(const UpdateRobotResponse& from) { + inline RegistryItem& operator=(const RegistryItem& from) { CopyFrom(from); return *this; } - inline UpdateRobotResponse& operator=(UpdateRobotResponse&& from) noexcept { + inline RegistryItem& operator=(RegistryItem&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -29280,178 +25620,412 @@ class UpdateRobotResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const UpdateRobotResponse& default_instance() { + static const RegistryItem& default_instance() { return *internal_default_instance(); } - static inline const UpdateRobotResponse* internal_default_instance() { - return reinterpret_cast( - &_UpdateRobotResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 119; - - friend void swap(UpdateRobotResponse& a, UpdateRobotResponse& b) { + enum MetadataCase { + kModuleMetadata = 11, + kMlModelMetadata = 12, + kMlTrainingMetadata = 18, + METADATA_NOT_SET = 0, + }; + + static inline const RegistryItem* internal_default_instance() { + return reinterpret_cast( + &_RegistryItem_default_instance_); + } + static constexpr int kIndexInFileMessages = + 148; + + friend void swap(RegistryItem& a, RegistryItem& b) { a.Swap(&b); } - inline void Swap(UpdateRobotResponse* other) { + inline void Swap(RegistryItem* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(UpdateRobotResponse* other) { + void UnsafeArenaSwap(RegistryItem* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - UpdateRobotResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const UpdateRobotResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const UpdateRobotResponse& from) { - UpdateRobotResponse::MergeImpl(*this, from); + RegistryItem* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const RegistryItem& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const RegistryItem& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(UpdateRobotResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(RegistryItem* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.UpdateRobotResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.RegistryItem"; } protected: - explicit UpdateRobotResponse(::google::protobuf::Arena* arena); - UpdateRobotResponse(::google::protobuf::Arena* arena, const UpdateRobotResponse& from); + explicit RegistryItem(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kRobotFieldNumber = 1, + kItemIdFieldNumber = 1, + kOrganizationIdFieldNumber = 2, + kPublicNamespaceFieldNumber = 3, + kNameFieldNumber = 4, + kUrlFieldNumber = 7, + kDescriptionFieldNumber = 8, + kCreatedAtFieldNumber = 15, + kUpdatedAtFieldNumber = 16, + kTypeFieldNumber = 5, + kVisibilityFieldNumber = 6, + kTotalRobotUsageFieldNumber = 9, + kTotalOrganizationUsageFieldNumber = 10, + kTotalExternalRobotUsageFieldNumber = 13, + kTotalExternalOrganizationUsageFieldNumber = 14, + kModuleMetadataFieldNumber = 11, + kMlModelMetadataFieldNumber = 12, + kMlTrainingMetadataFieldNumber = 18, }; - // .viam.app.v1.Robot robot = 1 [json_name = "robot"]; - bool has_robot() const; - void clear_robot() ; - const ::viam::app::v1::Robot& robot() const; - PROTOBUF_NODISCARD ::viam::app::v1::Robot* release_robot(); - ::viam::app::v1::Robot* mutable_robot(); - void set_allocated_robot(::viam::app::v1::Robot* value); - void unsafe_arena_set_allocated_robot(::viam::app::v1::Robot* value); - ::viam::app::v1::Robot* unsafe_arena_release_robot(); + // string item_id = 1 [json_name = "itemId"]; + void clear_item_id(); + const std::string& item_id() const; + template + void set_item_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_item_id(); + PROTOBUF_NODISCARD std::string* release_item_id(); + void set_allocated_item_id(std::string* item_id); + private: + const std::string& _internal_item_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_item_id(const std::string& value); + std::string* _internal_mutable_item_id(); + public: + + // string organization_id = 2 [json_name = "organizationId"]; + void clear_organization_id(); + const std::string& organization_id() const; + template + void set_organization_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_organization_id(); + PROTOBUF_NODISCARD std::string* release_organization_id(); + void set_allocated_organization_id(std::string* organization_id); + private: + const std::string& _internal_organization_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id(const std::string& value); + std::string* _internal_mutable_organization_id(); + public: + // string public_namespace = 3 [json_name = "publicNamespace"]; + void clear_public_namespace(); + const std::string& public_namespace() const; + template + void set_public_namespace(ArgT0&& arg0, ArgT... args); + std::string* mutable_public_namespace(); + PROTOBUF_NODISCARD std::string* release_public_namespace(); + void set_allocated_public_namespace(std::string* public_namespace); private: - const ::viam::app::v1::Robot& _internal_robot() const; - ::viam::app::v1::Robot* _internal_mutable_robot(); + const std::string& _internal_public_namespace() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_public_namespace(const std::string& value); + std::string* _internal_mutable_public_namespace(); + public: + + // string name = 4 [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: + // string url = 7 [json_name = "url"]; + void clear_url(); + const std::string& url() const; + template + void set_url(ArgT0&& arg0, ArgT... args); + std::string* mutable_url(); + PROTOBUF_NODISCARD std::string* release_url(); + void set_allocated_url(std::string* url); + private: + const std::string& _internal_url() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_url(const std::string& value); + std::string* _internal_mutable_url(); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.UpdateRobotResponse) + + // string description = 8 [json_name = "description"]; + void clear_description(); + const std::string& description() const; + template + void set_description(ArgT0&& arg0, ArgT... args); + std::string* mutable_description(); + PROTOBUF_NODISCARD std::string* release_description(); + void set_allocated_description(std::string* description); + private: + const std::string& _internal_description() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_description(const std::string& value); + std::string* _internal_mutable_description(); + public: + + // .google.protobuf.Timestamp created_at = 15 [json_name = "createdAt"]; + bool has_created_at() const; + private: + bool _internal_has_created_at() const; + public: + void clear_created_at(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& created_at() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_created_at(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_created_at(); + void set_allocated_created_at(::PROTOBUF_NAMESPACE_ID::Timestamp* created_at); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_created_at() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_created_at(); + public: + void unsafe_arena_set_allocated_created_at( + ::PROTOBUF_NAMESPACE_ID::Timestamp* created_at); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_created_at(); + + // .google.protobuf.Timestamp updated_at = 16 [json_name = "updatedAt"]; + bool has_updated_at() const; + private: + bool _internal_has_updated_at() const; + public: + void clear_updated_at(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& updated_at() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_updated_at(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_updated_at(); + void set_allocated_updated_at(::PROTOBUF_NAMESPACE_ID::Timestamp* updated_at); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_updated_at() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_updated_at(); + public: + void unsafe_arena_set_allocated_updated_at( + ::PROTOBUF_NAMESPACE_ID::Timestamp* updated_at); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_updated_at(); + + // .viam.app.packages.v1.PackageType type = 5 [json_name = "type"]; + void clear_type(); + ::viam::app::packages::v1::PackageType type() const; + void set_type(::viam::app::packages::v1::PackageType value); + private: + ::viam::app::packages::v1::PackageType _internal_type() const; + void _internal_set_type(::viam::app::packages::v1::PackageType value); + public: + + // .viam.app.v1.Visibility visibility = 6 [json_name = "visibility"]; + void clear_visibility(); + ::viam::app::v1::Visibility visibility() const; + void set_visibility(::viam::app::v1::Visibility value); + private: + ::viam::app::v1::Visibility _internal_visibility() const; + void _internal_set_visibility(::viam::app::v1::Visibility value); + public: + + // int64 total_robot_usage = 9 [json_name = "totalRobotUsage"]; + void clear_total_robot_usage(); + int64_t total_robot_usage() const; + void set_total_robot_usage(int64_t value); + private: + int64_t _internal_total_robot_usage() const; + void _internal_set_total_robot_usage(int64_t value); + public: + + // int64 total_organization_usage = 10 [json_name = "totalOrganizationUsage"]; + void clear_total_organization_usage(); + int64_t total_organization_usage() const; + void set_total_organization_usage(int64_t value); + private: + int64_t _internal_total_organization_usage() const; + void _internal_set_total_organization_usage(int64_t value); + public: + + // int64 total_external_robot_usage = 13 [json_name = "totalExternalRobotUsage"]; + void clear_total_external_robot_usage(); + int64_t total_external_robot_usage() const; + void set_total_external_robot_usage(int64_t value); + private: + int64_t _internal_total_external_robot_usage() const; + void _internal_set_total_external_robot_usage(int64_t value); + public: + + // int64 total_external_organization_usage = 14 [json_name = "totalExternalOrganizationUsage"]; + void clear_total_external_organization_usage(); + int64_t total_external_organization_usage() const; + void set_total_external_organization_usage(int64_t value); + private: + int64_t _internal_total_external_organization_usage() const; + void _internal_set_total_external_organization_usage(int64_t value); + public: + + // .viam.app.v1.ModuleMetadata module_metadata = 11 [json_name = "moduleMetadata"]; + bool has_module_metadata() const; + private: + bool _internal_has_module_metadata() const; + public: + void clear_module_metadata(); + const ::viam::app::v1::ModuleMetadata& module_metadata() const; + PROTOBUF_NODISCARD ::viam::app::v1::ModuleMetadata* release_module_metadata(); + ::viam::app::v1::ModuleMetadata* mutable_module_metadata(); + void set_allocated_module_metadata(::viam::app::v1::ModuleMetadata* module_metadata); + private: + const ::viam::app::v1::ModuleMetadata& _internal_module_metadata() const; + ::viam::app::v1::ModuleMetadata* _internal_mutable_module_metadata(); + public: + void unsafe_arena_set_allocated_module_metadata( + ::viam::app::v1::ModuleMetadata* module_metadata); + ::viam::app::v1::ModuleMetadata* unsafe_arena_release_module_metadata(); + + // .viam.app.v1.MLModelMetadata ml_model_metadata = 12 [json_name = "mlModelMetadata"]; + bool has_ml_model_metadata() const; + private: + bool _internal_has_ml_model_metadata() const; + public: + void clear_ml_model_metadata(); + const ::viam::app::v1::MLModelMetadata& ml_model_metadata() const; + PROTOBUF_NODISCARD ::viam::app::v1::MLModelMetadata* release_ml_model_metadata(); + ::viam::app::v1::MLModelMetadata* mutable_ml_model_metadata(); + void set_allocated_ml_model_metadata(::viam::app::v1::MLModelMetadata* ml_model_metadata); + private: + const ::viam::app::v1::MLModelMetadata& _internal_ml_model_metadata() const; + ::viam::app::v1::MLModelMetadata* _internal_mutable_ml_model_metadata(); + public: + void unsafe_arena_set_allocated_ml_model_metadata( + ::viam::app::v1::MLModelMetadata* ml_model_metadata); + ::viam::app::v1::MLModelMetadata* unsafe_arena_release_ml_model_metadata(); + + // .viam.app.v1.MLTrainingMetadata ml_training_metadata = 18 [json_name = "mlTrainingMetadata"]; + bool has_ml_training_metadata() const; + private: + bool _internal_has_ml_training_metadata() const; + public: + void clear_ml_training_metadata(); + const ::viam::app::v1::MLTrainingMetadata& ml_training_metadata() const; + PROTOBUF_NODISCARD ::viam::app::v1::MLTrainingMetadata* release_ml_training_metadata(); + ::viam::app::v1::MLTrainingMetadata* mutable_ml_training_metadata(); + void set_allocated_ml_training_metadata(::viam::app::v1::MLTrainingMetadata* ml_training_metadata); + private: + const ::viam::app::v1::MLTrainingMetadata& _internal_ml_training_metadata() const; + ::viam::app::v1::MLTrainingMetadata* _internal_mutable_ml_training_metadata(); + public: + void unsafe_arena_set_allocated_ml_training_metadata( + ::viam::app::v1::MLTrainingMetadata* ml_training_metadata); + ::viam::app::v1::MLTrainingMetadata* unsafe_arena_release_ml_training_metadata(); + + void clear_metadata(); + MetadataCase metadata_case() const; + // @@protoc_insertion_point(class_scope:viam.app.v1.RegistryItem) private: class _Internal; + void set_has_module_metadata(); + void set_has_ml_model_metadata(); + void set_has_ml_training_metadata(); + + inline bool has_metadata() const; + inline void clear_has_metadata(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr item_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr organization_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr public_namespace_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr url_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr description_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* created_at_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* updated_at_; + int type_; + int visibility_; + int64_t total_robot_usage_; + int64_t total_organization_usage_; + int64_t total_external_robot_usage_; + int64_t total_external_organization_usage_; + union MetadataUnion { + constexpr MetadataUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::viam::app::v1::ModuleMetadata* module_metadata_; + ::viam::app::v1::MLModelMetadata* ml_model_metadata_; + ::viam::app::v1::MLTrainingMetadata* ml_training_metadata_; + } metadata_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::viam::app::v1::Robot* robot_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class UpdateOrganizationResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.UpdateOrganizationResponse) */ { +class GetRegistryItemRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetRegistryItemRequest) */ { public: - inline UpdateOrganizationResponse() : UpdateOrganizationResponse(nullptr) {} - ~UpdateOrganizationResponse() override; - template - explicit PROTOBUF_CONSTEXPR UpdateOrganizationResponse(::google::protobuf::internal::ConstantInitialized); + inline GetRegistryItemRequest() : GetRegistryItemRequest(nullptr) {} + ~GetRegistryItemRequest() override; + explicit PROTOBUF_CONSTEXPR GetRegistryItemRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline UpdateOrganizationResponse(const UpdateOrganizationResponse& from) - : UpdateOrganizationResponse(nullptr, from) {} - UpdateOrganizationResponse(UpdateOrganizationResponse&& from) noexcept - : UpdateOrganizationResponse() { + GetRegistryItemRequest(const GetRegistryItemRequest& from); + GetRegistryItemRequest(GetRegistryItemRequest&& from) noexcept + : GetRegistryItemRequest() { *this = ::std::move(from); } - inline UpdateOrganizationResponse& operator=(const UpdateOrganizationResponse& from) { + inline GetRegistryItemRequest& operator=(const GetRegistryItemRequest& from) { CopyFrom(from); return *this; } - inline UpdateOrganizationResponse& operator=(UpdateOrganizationResponse&& from) noexcept { + inline GetRegistryItemRequest& operator=(GetRegistryItemRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -29461,178 +26035,161 @@ class UpdateOrganizationResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const UpdateOrganizationResponse& default_instance() { + static const GetRegistryItemRequest& default_instance() { return *internal_default_instance(); } - static inline const UpdateOrganizationResponse* internal_default_instance() { - return reinterpret_cast( - &_UpdateOrganizationResponse_default_instance_); + static inline const GetRegistryItemRequest* internal_default_instance() { + return reinterpret_cast( + &_GetRegistryItemRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 16; + 149; - friend void swap(UpdateOrganizationResponse& a, UpdateOrganizationResponse& b) { + friend void swap(GetRegistryItemRequest& a, GetRegistryItemRequest& b) { a.Swap(&b); } - inline void Swap(UpdateOrganizationResponse* other) { + inline void Swap(GetRegistryItemRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(UpdateOrganizationResponse* other) { + void UnsafeArenaSwap(GetRegistryItemRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - UpdateOrganizationResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const UpdateOrganizationResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const UpdateOrganizationResponse& from) { - UpdateOrganizationResponse::MergeImpl(*this, from); + GetRegistryItemRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetRegistryItemRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetRegistryItemRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(UpdateOrganizationResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetRegistryItemRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.UpdateOrganizationResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.GetRegistryItemRequest"; } protected: - explicit UpdateOrganizationResponse(::google::protobuf::Arena* arena); - UpdateOrganizationResponse(::google::protobuf::Arena* arena, const UpdateOrganizationResponse& from); + explicit GetRegistryItemRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kOrganizationFieldNumber = 1, + kItemIdFieldNumber = 1, + kIncludeMarkdownDocumentationFieldNumber = 2, }; - // .viam.app.v1.Organization organization = 1 [json_name = "organization"]; - bool has_organization() const; - void clear_organization() ; - const ::viam::app::v1::Organization& organization() const; - PROTOBUF_NODISCARD ::viam::app::v1::Organization* release_organization(); - ::viam::app::v1::Organization* mutable_organization(); - void set_allocated_organization(::viam::app::v1::Organization* value); - void unsafe_arena_set_allocated_organization(::viam::app::v1::Organization* value); - ::viam::app::v1::Organization* unsafe_arena_release_organization(); - + // string item_id = 1 [json_name = "itemId"]; + void clear_item_id(); + const std::string& item_id() const; + template + void set_item_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_item_id(); + PROTOBUF_NODISCARD std::string* release_item_id(); + void set_allocated_item_id(std::string* item_id); private: - const ::viam::app::v1::Organization& _internal_organization() const; - ::viam::app::v1::Organization* _internal_mutable_organization(); + const std::string& _internal_item_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_item_id(const std::string& value); + std::string* _internal_mutable_item_id(); + public: + // optional bool include_markdown_documentation = 2 [json_name = "includeMarkdownDocumentation"]; + bool has_include_markdown_documentation() const; + private: + bool _internal_has_include_markdown_documentation() const; public: - // @@protoc_insertion_point(class_scope:viam.app.v1.UpdateOrganizationResponse) + void clear_include_markdown_documentation(); + bool include_markdown_documentation() const; + void set_include_markdown_documentation(bool value); + private: + bool _internal_include_markdown_documentation() const; + void _internal_set_include_markdown_documentation(bool value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.GetRegistryItemRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::viam::app::v1::Organization* organization_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr item_id_; + bool include_markdown_documentation_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class UpdateOrganizationInviteAuthorizationsResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.UpdateOrganizationInviteAuthorizationsResponse) */ { +class GetRegistryItemResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetRegistryItemResponse) */ { public: - inline UpdateOrganizationInviteAuthorizationsResponse() : UpdateOrganizationInviteAuthorizationsResponse(nullptr) {} - ~UpdateOrganizationInviteAuthorizationsResponse() override; - template - explicit PROTOBUF_CONSTEXPR UpdateOrganizationInviteAuthorizationsResponse(::google::protobuf::internal::ConstantInitialized); + inline GetRegistryItemResponse() : GetRegistryItemResponse(nullptr) {} + ~GetRegistryItemResponse() override; + explicit PROTOBUF_CONSTEXPR GetRegistryItemResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline UpdateOrganizationInviteAuthorizationsResponse(const UpdateOrganizationInviteAuthorizationsResponse& from) - : UpdateOrganizationInviteAuthorizationsResponse(nullptr, from) {} - UpdateOrganizationInviteAuthorizationsResponse(UpdateOrganizationInviteAuthorizationsResponse&& from) noexcept - : UpdateOrganizationInviteAuthorizationsResponse() { + GetRegistryItemResponse(const GetRegistryItemResponse& from); + GetRegistryItemResponse(GetRegistryItemResponse&& from) noexcept + : GetRegistryItemResponse() { *this = ::std::move(from); } - inline UpdateOrganizationInviteAuthorizationsResponse& operator=(const UpdateOrganizationInviteAuthorizationsResponse& from) { + inline GetRegistryItemResponse& operator=(const GetRegistryItemResponse& from) { CopyFrom(from); return *this; } - inline UpdateOrganizationInviteAuthorizationsResponse& operator=(UpdateOrganizationInviteAuthorizationsResponse&& from) noexcept { + inline GetRegistryItemResponse& operator=(GetRegistryItemResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -29642,178 +26199,149 @@ class UpdateOrganizationInviteAuthorizationsResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const UpdateOrganizationInviteAuthorizationsResponse& default_instance() { + static const GetRegistryItemResponse& default_instance() { return *internal_default_instance(); } - static inline const UpdateOrganizationInviteAuthorizationsResponse* internal_default_instance() { - return reinterpret_cast( - &_UpdateOrganizationInviteAuthorizationsResponse_default_instance_); + static inline const GetRegistryItemResponse* internal_default_instance() { + return reinterpret_cast( + &_GetRegistryItemResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 24; + 150; - friend void swap(UpdateOrganizationInviteAuthorizationsResponse& a, UpdateOrganizationInviteAuthorizationsResponse& b) { + friend void swap(GetRegistryItemResponse& a, GetRegistryItemResponse& b) { a.Swap(&b); } - inline void Swap(UpdateOrganizationInviteAuthorizationsResponse* other) { + inline void Swap(GetRegistryItemResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(UpdateOrganizationInviteAuthorizationsResponse* other) { + void UnsafeArenaSwap(GetRegistryItemResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - UpdateOrganizationInviteAuthorizationsResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const UpdateOrganizationInviteAuthorizationsResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const UpdateOrganizationInviteAuthorizationsResponse& from) { - UpdateOrganizationInviteAuthorizationsResponse::MergeImpl(*this, from); + GetRegistryItemResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetRegistryItemResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetRegistryItemResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(UpdateOrganizationInviteAuthorizationsResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetRegistryItemResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.UpdateOrganizationInviteAuthorizationsResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.GetRegistryItemResponse"; } protected: - explicit UpdateOrganizationInviteAuthorizationsResponse(::google::protobuf::Arena* arena); - UpdateOrganizationInviteAuthorizationsResponse(::google::protobuf::Arena* arena, const UpdateOrganizationInviteAuthorizationsResponse& from); + explicit GetRegistryItemResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kInviteFieldNumber = 1, + kItemFieldNumber = 1, }; - // .viam.app.v1.OrganizationInvite invite = 1 [json_name = "invite"]; - bool has_invite() const; - void clear_invite() ; - const ::viam::app::v1::OrganizationInvite& invite() const; - PROTOBUF_NODISCARD ::viam::app::v1::OrganizationInvite* release_invite(); - ::viam::app::v1::OrganizationInvite* mutable_invite(); - void set_allocated_invite(::viam::app::v1::OrganizationInvite* value); - void unsafe_arena_set_allocated_invite(::viam::app::v1::OrganizationInvite* value); - ::viam::app::v1::OrganizationInvite* unsafe_arena_release_invite(); - + // .viam.app.v1.RegistryItem item = 1 [json_name = "item"]; + bool has_item() const; private: - const ::viam::app::v1::OrganizationInvite& _internal_invite() const; - ::viam::app::v1::OrganizationInvite* _internal_mutable_invite(); - + bool _internal_has_item() const; public: - // @@protoc_insertion_point(class_scope:viam.app.v1.UpdateOrganizationInviteAuthorizationsResponse) + void clear_item(); + const ::viam::app::v1::RegistryItem& item() const; + PROTOBUF_NODISCARD ::viam::app::v1::RegistryItem* release_item(); + ::viam::app::v1::RegistryItem* mutable_item(); + void set_allocated_item(::viam::app::v1::RegistryItem* item); + private: + const ::viam::app::v1::RegistryItem& _internal_item() const; + ::viam::app::v1::RegistryItem* _internal_mutable_item(); + public: + void unsafe_arena_set_allocated_item( + ::viam::app::v1::RegistryItem* item); + ::viam::app::v1::RegistryItem* unsafe_arena_release_item(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.GetRegistryItemResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::viam::app::v1::OrganizationInvite* invite_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::viam::app::v1::RegistryItem* item_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class UpdateFragmentResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.UpdateFragmentResponse) */ { +class CreateRegistryItemRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.CreateRegistryItemRequest) */ { public: - inline UpdateFragmentResponse() : UpdateFragmentResponse(nullptr) {} - ~UpdateFragmentResponse() override; - template - explicit PROTOBUF_CONSTEXPR UpdateFragmentResponse(::google::protobuf::internal::ConstantInitialized); + inline CreateRegistryItemRequest() : CreateRegistryItemRequest(nullptr) {} + ~CreateRegistryItemRequest() override; + explicit PROTOBUF_CONSTEXPR CreateRegistryItemRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline UpdateFragmentResponse(const UpdateFragmentResponse& from) - : UpdateFragmentResponse(nullptr, from) {} - UpdateFragmentResponse(UpdateFragmentResponse&& from) noexcept - : UpdateFragmentResponse() { + CreateRegistryItemRequest(const CreateRegistryItemRequest& from); + CreateRegistryItemRequest(CreateRegistryItemRequest&& from) noexcept + : CreateRegistryItemRequest() { *this = ::std::move(from); } - inline UpdateFragmentResponse& operator=(const UpdateFragmentResponse& from) { + inline CreateRegistryItemRequest& operator=(const CreateRegistryItemRequest& from) { CopyFrom(from); return *this; } - inline UpdateFragmentResponse& operator=(UpdateFragmentResponse&& from) noexcept { + inline CreateRegistryItemRequest& operator=(CreateRegistryItemRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -29823,178 +26351,171 @@ class UpdateFragmentResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const UpdateFragmentResponse& default_instance() { + static const CreateRegistryItemRequest& default_instance() { return *internal_default_instance(); } - static inline const UpdateFragmentResponse* internal_default_instance() { - return reinterpret_cast( - &_UpdateFragmentResponse_default_instance_); + static inline const CreateRegistryItemRequest* internal_default_instance() { + return reinterpret_cast( + &_CreateRegistryItemRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 107; + 151; - friend void swap(UpdateFragmentResponse& a, UpdateFragmentResponse& b) { + friend void swap(CreateRegistryItemRequest& a, CreateRegistryItemRequest& b) { a.Swap(&b); } - inline void Swap(UpdateFragmentResponse* other) { + inline void Swap(CreateRegistryItemRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(UpdateFragmentResponse* other) { + void UnsafeArenaSwap(CreateRegistryItemRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - UpdateFragmentResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const UpdateFragmentResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const UpdateFragmentResponse& from) { - UpdateFragmentResponse::MergeImpl(*this, from); + CreateRegistryItemRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CreateRegistryItemRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CreateRegistryItemRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(UpdateFragmentResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(CreateRegistryItemRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.UpdateFragmentResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.CreateRegistryItemRequest"; } protected: - explicit UpdateFragmentResponse(::google::protobuf::Arena* arena); - UpdateFragmentResponse(::google::protobuf::Arena* arena, const UpdateFragmentResponse& from); + explicit CreateRegistryItemRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kFragmentFieldNumber = 1, + kOrganizationIdFieldNumber = 1, + kNameFieldNumber = 2, + kTypeFieldNumber = 3, }; - // .viam.app.v1.Fragment fragment = 1 [json_name = "fragment"]; - bool has_fragment() const; - void clear_fragment() ; - const ::viam::app::v1::Fragment& fragment() const; - PROTOBUF_NODISCARD ::viam::app::v1::Fragment* release_fragment(); - ::viam::app::v1::Fragment* mutable_fragment(); - void set_allocated_fragment(::viam::app::v1::Fragment* value); - void unsafe_arena_set_allocated_fragment(::viam::app::v1::Fragment* value); - ::viam::app::v1::Fragment* unsafe_arena_release_fragment(); + // string organization_id = 1 [json_name = "organizationId"]; + void clear_organization_id(); + const std::string& organization_id() const; + template + void set_organization_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_organization_id(); + PROTOBUF_NODISCARD std::string* release_organization_id(); + void set_allocated_organization_id(std::string* organization_id); + private: + const std::string& _internal_organization_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id(const std::string& value); + std::string* _internal_mutable_organization_id(); + public: + // string name = 2 [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 ::viam::app::v1::Fragment& _internal_fragment() const; - ::viam::app::v1::Fragment* _internal_mutable_fragment(); + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + // .viam.app.packages.v1.PackageType type = 3 [json_name = "type"]; + void clear_type(); + ::viam::app::packages::v1::PackageType type() const; + void set_type(::viam::app::packages::v1::PackageType value); + private: + ::viam::app::packages::v1::PackageType _internal_type() const; + void _internal_set_type(::viam::app::packages::v1::PackageType value); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.UpdateFragmentResponse) + + // @@protoc_insertion_point(class_scope:viam.app.v1.CreateRegistryItemRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::viam::app::v1::Fragment* fragment_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr organization_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + int type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class TailRobotPartLogsResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.TailRobotPartLogsResponse) */ { +class CreateRegistryItemResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.CreateRegistryItemResponse) */ { public: - inline TailRobotPartLogsResponse() : TailRobotPartLogsResponse(nullptr) {} - ~TailRobotPartLogsResponse() override; - template - explicit PROTOBUF_CONSTEXPR TailRobotPartLogsResponse(::google::protobuf::internal::ConstantInitialized); + inline CreateRegistryItemResponse() : CreateRegistryItemResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR CreateRegistryItemResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline TailRobotPartLogsResponse(const TailRobotPartLogsResponse& from) - : TailRobotPartLogsResponse(nullptr, from) {} - TailRobotPartLogsResponse(TailRobotPartLogsResponse&& from) noexcept - : TailRobotPartLogsResponse() { + CreateRegistryItemResponse(const CreateRegistryItemResponse& from); + CreateRegistryItemResponse(CreateRegistryItemResponse&& from) noexcept + : CreateRegistryItemResponse() { *this = ::std::move(from); } - inline TailRobotPartLogsResponse& operator=(const TailRobotPartLogsResponse& from) { + inline CreateRegistryItemResponse& operator=(const CreateRegistryItemResponse& from) { CopyFrom(from); return *this; } - inline TailRobotPartLogsResponse& operator=(TailRobotPartLogsResponse&& from) noexcept { + inline CreateRegistryItemResponse& operator=(CreateRegistryItemResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -30004,180 +26525,114 @@ class TailRobotPartLogsResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const TailRobotPartLogsResponse& default_instance() { + static const CreateRegistryItemResponse& default_instance() { return *internal_default_instance(); } - static inline const TailRobotPartLogsResponse* internal_default_instance() { - return reinterpret_cast( - &_TailRobotPartLogsResponse_default_instance_); + static inline const CreateRegistryItemResponse* internal_default_instance() { + return reinterpret_cast( + &_CreateRegistryItemResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 84; + 152; - friend void swap(TailRobotPartLogsResponse& a, TailRobotPartLogsResponse& b) { + friend void swap(CreateRegistryItemResponse& a, CreateRegistryItemResponse& b) { a.Swap(&b); } - inline void Swap(TailRobotPartLogsResponse* other) { + inline void Swap(CreateRegistryItemResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(TailRobotPartLogsResponse* other) { + void UnsafeArenaSwap(CreateRegistryItemResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - TailRobotPartLogsResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + CreateRegistryItemResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const TailRobotPartLogsResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const TailRobotPartLogsResponse& from) { - TailRobotPartLogsResponse::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const CreateRegistryItemResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const CreateRegistryItemResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(TailRobotPartLogsResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.TailRobotPartLogsResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.CreateRegistryItemResponse"; } protected: - explicit TailRobotPartLogsResponse(::google::protobuf::Arena* arena); - TailRobotPartLogsResponse(::google::protobuf::Arena* arena, const TailRobotPartLogsResponse& from); + explicit CreateRegistryItemResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kLogsFieldNumber = 1, - }; - // repeated .viam.common.v1.LogEntry logs = 1 [json_name = "logs"]; - int logs_size() const; - private: - int _internal_logs_size() const; - - public: - void clear_logs() ; - ::viam::common::v1::LogEntry* mutable_logs(int index); - ::google::protobuf::RepeatedPtrField< ::viam::common::v1::LogEntry >* - mutable_logs(); - private: - const ::google::protobuf::RepeatedPtrField<::viam::common::v1::LogEntry>& _internal_logs() const; - ::google::protobuf::RepeatedPtrField<::viam::common::v1::LogEntry>* _internal_mutable_logs(); - public: - const ::viam::common::v1::LogEntry& logs(int index) const; - ::viam::common::v1::LogEntry* add_logs(); - const ::google::protobuf::RepeatedPtrField< ::viam::common::v1::LogEntry >& - logs() const; - // @@protoc_insertion_point(class_scope:viam.app.v1.TailRobotPartLogsResponse) + // @@protoc_insertion_point(class_scope:viam.app.v1.CreateRegistryItemResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::common::v1::LogEntry > logs_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class RobotPart final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.RobotPart) */ { +class UpdateRegistryItemRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.UpdateRegistryItemRequest) */ { public: - inline RobotPart() : RobotPart(nullptr) {} - ~RobotPart() override; - template - explicit PROTOBUF_CONSTEXPR RobotPart(::google::protobuf::internal::ConstantInitialized); + inline UpdateRegistryItemRequest() : UpdateRegistryItemRequest(nullptr) {} + ~UpdateRegistryItemRequest() override; + explicit PROTOBUF_CONSTEXPR UpdateRegistryItemRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline RobotPart(const RobotPart& from) - : RobotPart(nullptr, from) {} - RobotPart(RobotPart&& from) noexcept - : RobotPart() { + UpdateRegistryItemRequest(const UpdateRegistryItemRequest& from); + UpdateRegistryItemRequest(UpdateRegistryItemRequest&& from) noexcept + : UpdateRegistryItemRequest() { *this = ::std::move(from); } - inline RobotPart& operator=(const RobotPart& from) { + inline UpdateRegistryItemRequest& operator=(const UpdateRegistryItemRequest& from) { CopyFrom(from); return *this; } - inline RobotPart& operator=(RobotPart&& from) noexcept { + inline UpdateRegistryItemRequest& operator=(UpdateRegistryItemRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -30187,422 +26642,284 @@ class RobotPart final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const RobotPart& default_instance() { + static const UpdateRegistryItemRequest& default_instance() { return *internal_default_instance(); } - static inline const RobotPart* internal_default_instance() { - return reinterpret_cast( - &_RobotPart_default_instance_); + enum MetadataCase { + kModuleUpdateMetadata = 6, + kMlModelUpdateMetadata = 7, + kMlTrainingUpdateMetadata = 8, + METADATA_NOT_SET = 0, + }; + + static inline const UpdateRegistryItemRequest* internal_default_instance() { + return reinterpret_cast( + &_UpdateRegistryItemRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 1; + 153; - friend void swap(RobotPart& a, RobotPart& b) { + friend void swap(UpdateRegistryItemRequest& a, UpdateRegistryItemRequest& b) { a.Swap(&b); } - inline void Swap(RobotPart* other) { + inline void Swap(UpdateRegistryItemRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RobotPart* other) { + void UnsafeArenaSwap(UpdateRegistryItemRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - RobotPart* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const RobotPart& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const RobotPart& from) { - RobotPart::MergeImpl(*this, from); + UpdateRegistryItemRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const UpdateRegistryItemRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const UpdateRegistryItemRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(RobotPart* other); + void SetCachedSize(int size) const final; + void InternalSwap(UpdateRegistryItemRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.RobotPart"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.UpdateRegistryItemRequest"; } protected: - explicit RobotPart(::google::protobuf::Arena* arena); - RobotPart(::google::protobuf::Arena* arena, const RobotPart& from); + explicit UpdateRegistryItemRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kSecretsFieldNumber = 14, - kIdFieldNumber = 1, - kNameFieldNumber = 2, - kSecretFieldNumber = 3, - kRobotFieldNumber = 4, - kFqdnFieldNumber = 9, - kDnsNameFieldNumber = 10, - kLocalFqdnFieldNumber = 11, - kLocationIdFieldNumber = 12, - kRobotConfigFieldNumber = 5, - kLastAccessFieldNumber = 6, - kUserSuppliedInfoFieldNumber = 7, - kCreatedOnFieldNumber = 13, - kLastUpdatedFieldNumber = 15, - kMainPartFieldNumber = 8, + kItemIdFieldNumber = 1, + kDescriptionFieldNumber = 3, + kUrlFieldNumber = 5, + kTypeFieldNumber = 2, + kVisibilityFieldNumber = 4, + kModuleUpdateMetadataFieldNumber = 6, + kMlModelUpdateMetadataFieldNumber = 7, + kMlTrainingUpdateMetadataFieldNumber = 8, }; - // repeated .viam.app.v1.SharedSecret secrets = 14 [json_name = "secrets", (.tagger.v1.tags) = "bson:\"secrets\""]; - int secrets_size() const; - private: - int _internal_secrets_size() const; - - public: - void clear_secrets() ; - ::viam::app::v1::SharedSecret* mutable_secrets(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::SharedSecret >* - mutable_secrets(); - private: - const ::google::protobuf::RepeatedPtrField<::viam::app::v1::SharedSecret>& _internal_secrets() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::SharedSecret>* _internal_mutable_secrets(); - public: - const ::viam::app::v1::SharedSecret& secrets(int index) const; - ::viam::app::v1::SharedSecret* add_secrets(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::SharedSecret >& - secrets() const; - // string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""]; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - - private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); - - public: - // string name = 2 [json_name = "name", (.tagger.v1.tags) = "bson:\"name\" json:\"name\""]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + // string item_id = 1 [json_name = "itemId"]; + void clear_item_id(); + const std::string& item_id() const; + template + void set_item_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_item_id(); + PROTOBUF_NODISCARD std::string* release_item_id(); + void set_allocated_item_id(std::string* item_id); private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - + const std::string& _internal_item_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_item_id(const std::string& value); + std::string* _internal_mutable_item_id(); public: - // string secret = 3 [json_name = "secret", (.tagger.v1.tags) = "bson:\"secret\" json:\"secret,omitempty\""]; - void clear_secret() ; - const std::string& secret() const; - template - void set_secret(Arg_&& arg, Args_... args); - std::string* mutable_secret(); - PROTOBUF_NODISCARD std::string* release_secret(); - void set_allocated_secret(std::string* value); + // string description = 3 [json_name = "description"]; + void clear_description(); + const std::string& description() const; + template + void set_description(ArgT0&& arg0, ArgT... args); + std::string* mutable_description(); + PROTOBUF_NODISCARD std::string* release_description(); + void set_allocated_description(std::string* description); private: - const std::string& _internal_secret() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_secret( - const std::string& value); - std::string* _internal_mutable_secret(); - + const std::string& _internal_description() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_description(const std::string& value); + std::string* _internal_mutable_description(); public: - // string robot = 4 [json_name = "robot", (.tagger.v1.tags) = "bson:\"robot\" json:\"robot\""]; - void clear_robot() ; - const std::string& robot() const; - template - void set_robot(Arg_&& arg, Args_... args); - std::string* mutable_robot(); - PROTOBUF_NODISCARD std::string* release_robot(); - void set_allocated_robot(std::string* value); + // optional string url = 5 [json_name = "url"]; + bool has_url() const; private: - const std::string& _internal_robot() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_robot( - const std::string& value); - std::string* _internal_mutable_robot(); - + bool _internal_has_url() const; public: - // string fqdn = 9 [json_name = "fqdn"]; - void clear_fqdn() ; - const std::string& fqdn() const; - template - void set_fqdn(Arg_&& arg, Args_... args); - std::string* mutable_fqdn(); - PROTOBUF_NODISCARD std::string* release_fqdn(); - void set_allocated_fqdn(std::string* value); - + void clear_url(); + const std::string& url() const; + template + void set_url(ArgT0&& arg0, ArgT... args); + std::string* mutable_url(); + PROTOBUF_NODISCARD std::string* release_url(); + void set_allocated_url(std::string* url); private: - const std::string& _internal_fqdn() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_fqdn( - const std::string& value); - std::string* _internal_mutable_fqdn(); - + const std::string& _internal_url() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_url(const std::string& value); + std::string* _internal_mutable_url(); public: - // string dns_name = 10 [json_name = "dnsName", (.tagger.v1.tags) = "bson:\"dns_name\" json:\"dns_name\""]; - void clear_dns_name() ; - const std::string& dns_name() const; - template - void set_dns_name(Arg_&& arg, Args_... args); - std::string* mutable_dns_name(); - PROTOBUF_NODISCARD std::string* release_dns_name(); - void set_allocated_dns_name(std::string* value); + // .viam.app.packages.v1.PackageType type = 2 [json_name = "type"]; + void clear_type(); + ::viam::app::packages::v1::PackageType type() const; + void set_type(::viam::app::packages::v1::PackageType value); private: - const std::string& _internal_dns_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_dns_name( - const std::string& value); - std::string* _internal_mutable_dns_name(); - + ::viam::app::packages::v1::PackageType _internal_type() const; + void _internal_set_type(::viam::app::packages::v1::PackageType value); public: - // string local_fqdn = 11 [json_name = "localFqdn"]; - void clear_local_fqdn() ; - const std::string& local_fqdn() const; - template - void set_local_fqdn(Arg_&& arg, Args_... args); - std::string* mutable_local_fqdn(); - PROTOBUF_NODISCARD std::string* release_local_fqdn(); - void set_allocated_local_fqdn(std::string* value); + // .viam.app.v1.Visibility visibility = 4 [json_name = "visibility"]; + void clear_visibility(); + ::viam::app::v1::Visibility visibility() const; + void set_visibility(::viam::app::v1::Visibility value); private: - const std::string& _internal_local_fqdn() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_local_fqdn( - const std::string& value); - std::string* _internal_mutable_local_fqdn(); - + ::viam::app::v1::Visibility _internal_visibility() const; + void _internal_set_visibility(::viam::app::v1::Visibility value); public: - // string location_id = 12 [json_name = "locationId", (.tagger.v1.tags) = "bson:\"location_id\" json:\"-\""]; - void clear_location_id() ; - const std::string& location_id() const; - template - void set_location_id(Arg_&& arg, Args_... args); - std::string* mutable_location_id(); - PROTOBUF_NODISCARD std::string* release_location_id(); - void set_allocated_location_id(std::string* value); + // .viam.app.v1.UpdateModuleMetadata module_update_metadata = 6 [json_name = "moduleUpdateMetadata"]; + bool has_module_update_metadata() const; private: - const std::string& _internal_location_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_location_id( - const std::string& value); - std::string* _internal_mutable_location_id(); - + bool _internal_has_module_update_metadata() const; public: - // .google.protobuf.Struct robot_config = 5 [json_name = "robotConfig", (.tagger.v1.tags) = "bson:\"config\" json:\"robot_config\""]; - bool has_robot_config() const; - void clear_robot_config() ; - const ::google::protobuf::Struct& robot_config() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_robot_config(); - ::google::protobuf::Struct* mutable_robot_config(); - void set_allocated_robot_config(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_robot_config(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_robot_config(); - + void clear_module_update_metadata(); + const ::viam::app::v1::UpdateModuleMetadata& module_update_metadata() const; + PROTOBUF_NODISCARD ::viam::app::v1::UpdateModuleMetadata* release_module_update_metadata(); + ::viam::app::v1::UpdateModuleMetadata* mutable_module_update_metadata(); + void set_allocated_module_update_metadata(::viam::app::v1::UpdateModuleMetadata* module_update_metadata); private: - const ::google::protobuf::Struct& _internal_robot_config() const; - ::google::protobuf::Struct* _internal_mutable_robot_config(); - + const ::viam::app::v1::UpdateModuleMetadata& _internal_module_update_metadata() const; + ::viam::app::v1::UpdateModuleMetadata* _internal_mutable_module_update_metadata(); public: - // .google.protobuf.Timestamp last_access = 6 [json_name = "lastAccess", (.tagger.v1.tags) = "bson:\"last_access\" json:\"last_access\""]; - bool has_last_access() const; - void clear_last_access() ; - const ::google::protobuf::Timestamp& last_access() const; - PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_last_access(); - ::google::protobuf::Timestamp* mutable_last_access(); - void set_allocated_last_access(::google::protobuf::Timestamp* value); - void unsafe_arena_set_allocated_last_access(::google::protobuf::Timestamp* value); - ::google::protobuf::Timestamp* unsafe_arena_release_last_access(); + void unsafe_arena_set_allocated_module_update_metadata( + ::viam::app::v1::UpdateModuleMetadata* module_update_metadata); + ::viam::app::v1::UpdateModuleMetadata* unsafe_arena_release_module_update_metadata(); + // .viam.app.v1.UpdateMLModelMetadata ml_model_update_metadata = 7 [json_name = "mlModelUpdateMetadata"]; + bool has_ml_model_update_metadata() const; private: - const ::google::protobuf::Timestamp& _internal_last_access() const; - ::google::protobuf::Timestamp* _internal_mutable_last_access(); - + bool _internal_has_ml_model_update_metadata() const; public: - // .google.protobuf.Struct user_supplied_info = 7 [json_name = "userSuppliedInfo", (.tagger.v1.tags) = "bson:\"user_supplied_info\" json:\"user_supplied_info\""]; - bool has_user_supplied_info() const; - void clear_user_supplied_info() ; - const ::google::protobuf::Struct& user_supplied_info() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_user_supplied_info(); - ::google::protobuf::Struct* mutable_user_supplied_info(); - void set_allocated_user_supplied_info(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_user_supplied_info(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_user_supplied_info(); - + void clear_ml_model_update_metadata(); + const ::viam::app::v1::UpdateMLModelMetadata& ml_model_update_metadata() const; + PROTOBUF_NODISCARD ::viam::app::v1::UpdateMLModelMetadata* release_ml_model_update_metadata(); + ::viam::app::v1::UpdateMLModelMetadata* mutable_ml_model_update_metadata(); + void set_allocated_ml_model_update_metadata(::viam::app::v1::UpdateMLModelMetadata* ml_model_update_metadata); private: - const ::google::protobuf::Struct& _internal_user_supplied_info() const; - ::google::protobuf::Struct* _internal_mutable_user_supplied_info(); - + const ::viam::app::v1::UpdateMLModelMetadata& _internal_ml_model_update_metadata() const; + ::viam::app::v1::UpdateMLModelMetadata* _internal_mutable_ml_model_update_metadata(); public: - // .google.protobuf.Timestamp created_on = 13 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\""]; - bool has_created_on() const; - void clear_created_on() ; - const ::google::protobuf::Timestamp& created_on() const; - PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_created_on(); - ::google::protobuf::Timestamp* mutable_created_on(); - void set_allocated_created_on(::google::protobuf::Timestamp* value); - void unsafe_arena_set_allocated_created_on(::google::protobuf::Timestamp* value); - ::google::protobuf::Timestamp* unsafe_arena_release_created_on(); + void unsafe_arena_set_allocated_ml_model_update_metadata( + ::viam::app::v1::UpdateMLModelMetadata* ml_model_update_metadata); + ::viam::app::v1::UpdateMLModelMetadata* unsafe_arena_release_ml_model_update_metadata(); + // .viam.app.v1.UpdateMLTrainingMetadata ml_training_update_metadata = 8 [json_name = "mlTrainingUpdateMetadata"]; + bool has_ml_training_update_metadata() const; private: - const ::google::protobuf::Timestamp& _internal_created_on() const; - ::google::protobuf::Timestamp* _internal_mutable_created_on(); - + bool _internal_has_ml_training_update_metadata() const; public: - // .google.protobuf.Timestamp last_updated = 15 [json_name = "lastUpdated", (.tagger.v1.tags) = "bson:\"last_updated_at\""]; - bool has_last_updated() const; - void clear_last_updated() ; - const ::google::protobuf::Timestamp& last_updated() const; - PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_last_updated(); - ::google::protobuf::Timestamp* mutable_last_updated(); - void set_allocated_last_updated(::google::protobuf::Timestamp* value); - void unsafe_arena_set_allocated_last_updated(::google::protobuf::Timestamp* value); - ::google::protobuf::Timestamp* unsafe_arena_release_last_updated(); - + void clear_ml_training_update_metadata(); + const ::viam::app::v1::UpdateMLTrainingMetadata& ml_training_update_metadata() const; + PROTOBUF_NODISCARD ::viam::app::v1::UpdateMLTrainingMetadata* release_ml_training_update_metadata(); + ::viam::app::v1::UpdateMLTrainingMetadata* mutable_ml_training_update_metadata(); + void set_allocated_ml_training_update_metadata(::viam::app::v1::UpdateMLTrainingMetadata* ml_training_update_metadata); private: - const ::google::protobuf::Timestamp& _internal_last_updated() const; - ::google::protobuf::Timestamp* _internal_mutable_last_updated(); - + const ::viam::app::v1::UpdateMLTrainingMetadata& _internal_ml_training_update_metadata() const; + ::viam::app::v1::UpdateMLTrainingMetadata* _internal_mutable_ml_training_update_metadata(); public: - // bool main_part = 8 [json_name = "mainPart", (.tagger.v1.tags) = "bson:\"main_part\" json:\"main_part\""]; - void clear_main_part() ; - bool main_part() const; - void set_main_part(bool value); - - private: - bool _internal_main_part() const; - void _internal_set_main_part(bool value); + void unsafe_arena_set_allocated_ml_training_update_metadata( + ::viam::app::v1::UpdateMLTrainingMetadata* ml_training_update_metadata); + ::viam::app::v1::UpdateMLTrainingMetadata* unsafe_arena_release_ml_training_update_metadata(); - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.RobotPart) + void clear_metadata(); + MetadataCase metadata_case() const; + // @@protoc_insertion_point(class_scope:viam.app.v1.UpdateRegistryItemRequest) private: class _Internal; + void set_has_module_update_metadata(); + void set_has_ml_model_update_metadata(); + void set_has_ml_training_update_metadata(); + + inline bool has_metadata() const; + inline void clear_has_metadata(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr item_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr description_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr url_; + int type_; + int visibility_; + union MetadataUnion { + constexpr MetadataUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::viam::app::v1::UpdateModuleMetadata* module_update_metadata_; + ::viam::app::v1::UpdateMLModelMetadata* ml_model_update_metadata_; + ::viam::app::v1::UpdateMLTrainingMetadata* ml_training_update_metadata_; + } metadata_; + uint32_t _oneof_case_[1]; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 4, 15, 6, - 88, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::SharedSecret > secrets_; - ::google::protobuf::internal::ArenaStringPtr id_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr secret_; - ::google::protobuf::internal::ArenaStringPtr robot_; - ::google::protobuf::internal::ArenaStringPtr fqdn_; - ::google::protobuf::internal::ArenaStringPtr dns_name_; - ::google::protobuf::internal::ArenaStringPtr local_fqdn_; - ::google::protobuf::internal::ArenaStringPtr location_id_; - ::google::protobuf::Struct* robot_config_; - ::google::protobuf::Timestamp* last_access_; - ::google::protobuf::Struct* user_supplied_info_; - ::google::protobuf::Timestamp* created_on_; - ::google::protobuf::Timestamp* last_updated_; - bool main_part_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ResendOrganizationInviteResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ResendOrganizationInviteResponse) */ { +class UpdateRegistryItemResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.UpdateRegistryItemResponse) */ { public: - inline ResendOrganizationInviteResponse() : ResendOrganizationInviteResponse(nullptr) {} - ~ResendOrganizationInviteResponse() override; - template - explicit PROTOBUF_CONSTEXPR ResendOrganizationInviteResponse(::google::protobuf::internal::ConstantInitialized); + inline UpdateRegistryItemResponse() : UpdateRegistryItemResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR UpdateRegistryItemResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ResendOrganizationInviteResponse(const ResendOrganizationInviteResponse& from) - : ResendOrganizationInviteResponse(nullptr, from) {} - ResendOrganizationInviteResponse(ResendOrganizationInviteResponse&& from) noexcept - : ResendOrganizationInviteResponse() { + UpdateRegistryItemResponse(const UpdateRegistryItemResponse& from); + UpdateRegistryItemResponse(UpdateRegistryItemResponse&& from) noexcept + : UpdateRegistryItemResponse() { *this = ::std::move(from); } - inline ResendOrganizationInviteResponse& operator=(const ResendOrganizationInviteResponse& from) { + inline UpdateRegistryItemResponse& operator=(const UpdateRegistryItemResponse& from) { CopyFrom(from); return *this; } - inline ResendOrganizationInviteResponse& operator=(ResendOrganizationInviteResponse&& from) noexcept { + inline UpdateRegistryItemResponse& operator=(UpdateRegistryItemResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -30612,178 +26929,114 @@ class ResendOrganizationInviteResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ResendOrganizationInviteResponse& default_instance() { + static const UpdateRegistryItemResponse& default_instance() { return *internal_default_instance(); } - static inline const ResendOrganizationInviteResponse* internal_default_instance() { - return reinterpret_cast( - &_ResendOrganizationInviteResponse_default_instance_); + static inline const UpdateRegistryItemResponse* internal_default_instance() { + return reinterpret_cast( + &_UpdateRegistryItemResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 28; + 154; - friend void swap(ResendOrganizationInviteResponse& a, ResendOrganizationInviteResponse& b) { + friend void swap(UpdateRegistryItemResponse& a, UpdateRegistryItemResponse& b) { a.Swap(&b); } - inline void Swap(ResendOrganizationInviteResponse* other) { + inline void Swap(UpdateRegistryItemResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ResendOrganizationInviteResponse* other) { + void UnsafeArenaSwap(UpdateRegistryItemResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ResendOrganizationInviteResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + UpdateRegistryItemResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ResendOrganizationInviteResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ResendOrganizationInviteResponse& from) { - ResendOrganizationInviteResponse::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const UpdateRegistryItemResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const UpdateRegistryItemResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(ResendOrganizationInviteResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.ResendOrganizationInviteResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.UpdateRegistryItemResponse"; } protected: - explicit ResendOrganizationInviteResponse(::google::protobuf::Arena* arena); - ResendOrganizationInviteResponse(::google::protobuf::Arena* arena, const ResendOrganizationInviteResponse& from); + explicit UpdateRegistryItemResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kInviteFieldNumber = 1, - }; - // .viam.app.v1.OrganizationInvite invite = 1 [json_name = "invite"]; - bool has_invite() const; - void clear_invite() ; - const ::viam::app::v1::OrganizationInvite& invite() const; - PROTOBUF_NODISCARD ::viam::app::v1::OrganizationInvite* release_invite(); - ::viam::app::v1::OrganizationInvite* mutable_invite(); - void set_allocated_invite(::viam::app::v1::OrganizationInvite* value); - void unsafe_arena_set_allocated_invite(::viam::app::v1::OrganizationInvite* value); - ::viam::app::v1::OrganizationInvite* unsafe_arena_release_invite(); - - private: - const ::viam::app::v1::OrganizationInvite& _internal_invite() const; - ::viam::app::v1::OrganizationInvite* _internal_mutable_invite(); - - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.ResendOrganizationInviteResponse) + // @@protoc_insertion_point(class_scope:viam.app.v1.UpdateRegistryItemResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::viam::app::v1::OrganizationInvite* invite_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ModuleVersion final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ModuleVersion) */ { +class ListRegistryItemsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ListRegistryItemsRequest) */ { public: - inline ModuleVersion() : ModuleVersion(nullptr) {} - ~ModuleVersion() override; - template - explicit PROTOBUF_CONSTEXPR ModuleVersion(::google::protobuf::internal::ConstantInitialized); + inline ListRegistryItemsRequest() : ListRegistryItemsRequest(nullptr) {} + ~ListRegistryItemsRequest() override; + explicit PROTOBUF_CONSTEXPR ListRegistryItemsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ModuleVersion(const ModuleVersion& from) - : ModuleVersion(nullptr, from) {} - ModuleVersion(ModuleVersion&& from) noexcept - : ModuleVersion() { + ListRegistryItemsRequest(const ListRegistryItemsRequest& from); + ListRegistryItemsRequest(ListRegistryItemsRequest&& from) noexcept + : ListRegistryItemsRequest() { *this = ::std::move(from); } - inline ModuleVersion& operator=(const ModuleVersion& from) { + inline ListRegistryItemsRequest& operator=(const ListRegistryItemsRequest& from) { CopyFrom(from); return *this; } - inline ModuleVersion& operator=(ModuleVersion&& from) noexcept { + inline ListRegistryItemsRequest& operator=(ListRegistryItemsRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -30793,256 +27046,317 @@ class ModuleVersion final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ModuleVersion& default_instance() { + static const ListRegistryItemsRequest& default_instance() { return *internal_default_instance(); } - static inline const ModuleVersion* internal_default_instance() { - return reinterpret_cast( - &_ModuleVersion_default_instance_); + static inline const ListRegistryItemsRequest* internal_default_instance() { + return reinterpret_cast( + &_ListRegistryItemsRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 142; + 155; - friend void swap(ModuleVersion& a, ModuleVersion& b) { + friend void swap(ListRegistryItemsRequest& a, ListRegistryItemsRequest& b) { a.Swap(&b); } - inline void Swap(ModuleVersion* other) { + inline void Swap(ListRegistryItemsRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ModuleVersion* other) { + void UnsafeArenaSwap(ListRegistryItemsRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ModuleVersion* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ModuleVersion& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ModuleVersion& from) { - ModuleVersion::MergeImpl(*this, from); + ListRegistryItemsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ListRegistryItemsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ListRegistryItemsRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ModuleVersion* other); + void SetCachedSize(int size) const final; + void InternalSwap(ListRegistryItemsRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.ModuleVersion"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.ListRegistryItemsRequest"; } protected: - explicit ModuleVersion(::google::protobuf::Arena* arena); - ModuleVersion(::google::protobuf::Arena* arena, const ModuleVersion& from); + explicit ListRegistryItemsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kFilesFieldNumber = 2, - kModelsFieldNumber = 3, - kVersionFieldNumber = 1, - kEntrypointFieldNumber = 4, - kFirstRunFieldNumber = 5, + kTypesFieldNumber = 2, + kVisibilitiesFieldNumber = 3, + kPlatformsFieldNumber = 4, + kStatusesFieldNumber = 5, + kPublicNamespacesFieldNumber = 8, + kOrganizationIdFieldNumber = 1, + kSearchTermFieldNumber = 6, + kPageTokenFieldNumber = 7, + kIncludeMarkdownDocumentationFieldNumber = 9, }; - // repeated .viam.app.v1.Uploads files = 2 [json_name = "files"]; - int files_size() const; + // repeated .viam.app.packages.v1.PackageType types = 2 [json_name = "types"]; + int types_size() const; private: - int _internal_files_size() const; - + int _internal_types_size() const; public: - void clear_files() ; - ::viam::app::v1::Uploads* mutable_files(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Uploads >* - mutable_files(); + void clear_types(); private: - const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Uploads>& _internal_files() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::Uploads>* _internal_mutable_files(); + ::viam::app::packages::v1::PackageType _internal_types(int index) const; + void _internal_add_types(::viam::app::packages::v1::PackageType value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField* _internal_mutable_types(); public: - const ::viam::app::v1::Uploads& files(int index) const; - ::viam::app::v1::Uploads* add_files(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Uploads >& - files() const; - // repeated .viam.app.v1.Model models = 3 [json_name = "models"]; - int models_size() const; + ::viam::app::packages::v1::PackageType types(int index) const; + void set_types(int index, ::viam::app::packages::v1::PackageType value); + void add_types(::viam::app::packages::v1::PackageType value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField& types() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField* mutable_types(); + + // repeated .viam.app.v1.Visibility visibilities = 3 [json_name = "visibilities"]; + int visibilities_size() const; private: - int _internal_models_size() const; + int _internal_visibilities_size() const; + public: + void clear_visibilities(); + private: + ::viam::app::v1::Visibility _internal_visibilities(int index) const; + void _internal_add_visibilities(::viam::app::v1::Visibility value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField* _internal_mutable_visibilities(); + public: + ::viam::app::v1::Visibility visibilities(int index) const; + void set_visibilities(int index, ::viam::app::v1::Visibility value); + void add_visibilities(::viam::app::v1::Visibility value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField& visibilities() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField* mutable_visibilities(); + // repeated string platforms = 4 [json_name = "platforms"]; + int platforms_size() const; + private: + int _internal_platforms_size() const; public: - void clear_models() ; - ::viam::app::v1::Model* mutable_models(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Model >* - mutable_models(); + void clear_platforms(); + const std::string& platforms(int index) const; + std::string* mutable_platforms(int index); + void set_platforms(int index, const std::string& value); + void set_platforms(int index, std::string&& value); + void set_platforms(int index, const char* value); + void set_platforms(int index, const char* value, size_t size); + std::string* add_platforms(); + void add_platforms(const std::string& value); + void add_platforms(std::string&& value); + void add_platforms(const char* value); + void add_platforms(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& platforms() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_platforms(); private: - const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Model>& _internal_models() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::Model>* _internal_mutable_models(); + const std::string& _internal_platforms(int index) const; + std::string* _internal_add_platforms(); public: - const ::viam::app::v1::Model& models(int index) const; - ::viam::app::v1::Model* add_models(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Model >& - models() const; - // string version = 1 [json_name = "version"]; - void clear_version() ; - const std::string& version() const; - template - void set_version(Arg_&& arg, Args_... args); - std::string* mutable_version(); - PROTOBUF_NODISCARD std::string* release_version(); - void set_allocated_version(std::string* value); + // repeated .viam.app.v1.RegistryItemStatus statuses = 5 [json_name = "statuses"]; + int statuses_size() const; private: - const std::string& _internal_version() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_version( - const std::string& value); - std::string* _internal_mutable_version(); + int _internal_statuses_size() const; + public: + void clear_statuses(); + private: + ::viam::app::v1::RegistryItemStatus _internal_statuses(int index) const; + void _internal_add_statuses(::viam::app::v1::RegistryItemStatus value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField* _internal_mutable_statuses(); + public: + ::viam::app::v1::RegistryItemStatus statuses(int index) const; + void set_statuses(int index, ::viam::app::v1::RegistryItemStatus value); + void add_statuses(::viam::app::v1::RegistryItemStatus value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField& statuses() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField* mutable_statuses(); + // repeated string public_namespaces = 8 [json_name = "publicNamespaces"]; + int public_namespaces_size() const; + private: + int _internal_public_namespaces_size() const; + public: + void clear_public_namespaces(); + const std::string& public_namespaces(int index) const; + std::string* mutable_public_namespaces(int index); + void set_public_namespaces(int index, const std::string& value); + void set_public_namespaces(int index, std::string&& value); + void set_public_namespaces(int index, const char* value); + void set_public_namespaces(int index, const char* value, size_t size); + std::string* add_public_namespaces(); + void add_public_namespaces(const std::string& value); + void add_public_namespaces(std::string&& value); + void add_public_namespaces(const char* value); + void add_public_namespaces(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& public_namespaces() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_public_namespaces(); + private: + const std::string& _internal_public_namespaces(int index) const; + std::string* _internal_add_public_namespaces(); public: - // string entrypoint = 4 [json_name = "entrypoint"]; - void clear_entrypoint() ; - const std::string& entrypoint() const; - template - void set_entrypoint(Arg_&& arg, Args_... args); - std::string* mutable_entrypoint(); - PROTOBUF_NODISCARD std::string* release_entrypoint(); - void set_allocated_entrypoint(std::string* value); + // optional string organization_id = 1 [json_name = "organizationId"]; + bool has_organization_id() const; private: - const std::string& _internal_entrypoint() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_entrypoint( - const std::string& value); - std::string* _internal_mutable_entrypoint(); + bool _internal_has_organization_id() const; + public: + void clear_organization_id(); + const std::string& organization_id() const; + template + void set_organization_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_organization_id(); + PROTOBUF_NODISCARD std::string* release_organization_id(); + void set_allocated_organization_id(std::string* organization_id); + private: + const std::string& _internal_organization_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id(const std::string& value); + std::string* _internal_mutable_organization_id(); + public: + // optional string search_term = 6 [json_name = "searchTerm"]; + bool has_search_term() const; + private: + bool _internal_has_search_term() const; + public: + void clear_search_term(); + const std::string& search_term() const; + template + void set_search_term(ArgT0&& arg0, ArgT... args); + std::string* mutable_search_term(); + PROTOBUF_NODISCARD std::string* release_search_term(); + void set_allocated_search_term(std::string* search_term); + private: + const std::string& _internal_search_term() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_search_term(const std::string& value); + std::string* _internal_mutable_search_term(); public: - // optional string first_run = 5 [json_name = "firstRun"]; - bool has_first_run() const; - void clear_first_run() ; - const std::string& first_run() const; - template - void set_first_run(Arg_&& arg, Args_... args); - std::string* mutable_first_run(); - PROTOBUF_NODISCARD std::string* release_first_run(); - void set_allocated_first_run(std::string* value); + // optional string page_token = 7 [json_name = "pageToken"]; + bool has_page_token() const; private: - const std::string& _internal_first_run() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_first_run( - const std::string& value); - std::string* _internal_mutable_first_run(); + bool _internal_has_page_token() const; + public: + void clear_page_token(); + const std::string& page_token() const; + template + void set_page_token(ArgT0&& arg0, ArgT... args); + std::string* mutable_page_token(); + PROTOBUF_NODISCARD std::string* release_page_token(); + void set_allocated_page_token(std::string* page_token); + private: + const std::string& _internal_page_token() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_page_token(const std::string& value); + std::string* _internal_mutable_page_token(); + public: + // optional bool include_markdown_documentation = 9 [json_name = "includeMarkdownDocumentation"]; + bool has_include_markdown_documentation() const; + private: + bool _internal_has_include_markdown_documentation() const; public: - // @@protoc_insertion_point(class_scope:viam.app.v1.ModuleVersion) + void clear_include_markdown_documentation(); + bool include_markdown_documentation() const; + void set_include_markdown_documentation(bool value); + private: + bool _internal_include_markdown_documentation() const; + void _internal_set_include_markdown_documentation(bool value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.ListRegistryItemsRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 5, 2, - 60, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Uploads > files_; - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Model > models_; - ::google::protobuf::internal::ArenaStringPtr version_; - ::google::protobuf::internal::ArenaStringPtr entrypoint_; - ::google::protobuf::internal::ArenaStringPtr first_run_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField types_; + mutable std::atomic _types_cached_byte_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField visibilities_; + mutable std::atomic _visibilities_cached_byte_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField platforms_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField statuses_; + mutable std::atomic _statuses_cached_byte_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField public_namespaces_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr organization_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr search_term_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr page_token_; + bool include_markdown_documentation_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class MLTrainingMetadata final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.MLTrainingMetadata) */ { +class ListRegistryItemsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ListRegistryItemsResponse) */ { public: - inline MLTrainingMetadata() : MLTrainingMetadata(nullptr) {} - ~MLTrainingMetadata() override; - template - explicit PROTOBUF_CONSTEXPR MLTrainingMetadata(::google::protobuf::internal::ConstantInitialized); + inline ListRegistryItemsResponse() : ListRegistryItemsResponse(nullptr) {} + ~ListRegistryItemsResponse() override; + explicit PROTOBUF_CONSTEXPR ListRegistryItemsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline MLTrainingMetadata(const MLTrainingMetadata& from) - : MLTrainingMetadata(nullptr, from) {} - MLTrainingMetadata(MLTrainingMetadata&& from) noexcept - : MLTrainingMetadata() { + ListRegistryItemsResponse(const ListRegistryItemsResponse& from); + ListRegistryItemsResponse(ListRegistryItemsResponse&& from) noexcept + : ListRegistryItemsResponse() { *this = ::std::move(from); } - inline MLTrainingMetadata& operator=(const MLTrainingMetadata& from) { + inline ListRegistryItemsResponse& operator=(const ListRegistryItemsResponse& from) { CopyFrom(from); return *this; } - inline MLTrainingMetadata& operator=(MLTrainingMetadata&& from) noexcept { + inline ListRegistryItemsResponse& operator=(ListRegistryItemsResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -31052,216 +27366,149 @@ class MLTrainingMetadata final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MLTrainingMetadata& default_instance() { + static const ListRegistryItemsResponse& default_instance() { return *internal_default_instance(); } - static inline const MLTrainingMetadata* internal_default_instance() { - return reinterpret_cast( - &_MLTrainingMetadata_default_instance_); + static inline const ListRegistryItemsResponse* internal_default_instance() { + return reinterpret_cast( + &_ListRegistryItemsResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 146; + 156; - friend void swap(MLTrainingMetadata& a, MLTrainingMetadata& b) { + friend void swap(ListRegistryItemsResponse& a, ListRegistryItemsResponse& b) { a.Swap(&b); } - inline void Swap(MLTrainingMetadata* other) { + inline void Swap(ListRegistryItemsResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MLTrainingMetadata* other) { + void UnsafeArenaSwap(ListRegistryItemsResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MLTrainingMetadata* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const MLTrainingMetadata& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const MLTrainingMetadata& from) { - MLTrainingMetadata::MergeImpl(*this, from); + ListRegistryItemsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ListRegistryItemsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ListRegistryItemsResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(MLTrainingMetadata* other); + void SetCachedSize(int size) const final; + void InternalSwap(ListRegistryItemsResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.MLTrainingMetadata"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.ListRegistryItemsResponse"; } protected: - explicit MLTrainingMetadata(::google::protobuf::Arena* arena); - MLTrainingMetadata(::google::protobuf::Arena* arena, const MLTrainingMetadata& from); + explicit ListRegistryItemsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kVersionsFieldNumber = 5, - kModelTypeFieldNumber = 2, - kModelFrameworkFieldNumber = 3, - kDraftFieldNumber = 4, + kItemsFieldNumber = 1, }; - // repeated .viam.app.v1.MLTrainingVersion versions = 5 [json_name = "versions"]; - int versions_size() const; + // repeated .viam.app.v1.RegistryItem items = 1 [json_name = "items"]; + int items_size() const; private: - int _internal_versions_size() const; - + int _internal_items_size() const; public: - void clear_versions() ; - ::viam::app::v1::MLTrainingVersion* mutable_versions(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::MLTrainingVersion >* - mutable_versions(); + void clear_items(); + ::viam::app::v1::RegistryItem* mutable_items(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::RegistryItem >* + mutable_items(); private: - const ::google::protobuf::RepeatedPtrField<::viam::app::v1::MLTrainingVersion>& _internal_versions() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::MLTrainingVersion>* _internal_mutable_versions(); + const ::viam::app::v1::RegistryItem& _internal_items(int index) const; + ::viam::app::v1::RegistryItem* _internal_add_items(); public: - const ::viam::app::v1::MLTrainingVersion& versions(int index) const; - ::viam::app::v1::MLTrainingVersion* add_versions(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::MLTrainingVersion >& - versions() const; - // .viam.app.mltraining.v1.ModelType model_type = 2 [json_name = "modelType"]; - void clear_model_type() ; - ::viam::app::mltraining::v1::ModelType model_type() const; - void set_model_type(::viam::app::mltraining::v1::ModelType value); + const ::viam::app::v1::RegistryItem& items(int index) const; + ::viam::app::v1::RegistryItem* add_items(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::RegistryItem >& + items() const; - private: - ::viam::app::mltraining::v1::ModelType _internal_model_type() const; - void _internal_set_model_type(::viam::app::mltraining::v1::ModelType value); - - public: - // .viam.app.mltraining.v1.ModelFramework model_framework = 3 [json_name = "modelFramework"]; - void clear_model_framework() ; - ::viam::app::mltraining::v1::ModelFramework model_framework() const; - void set_model_framework(::viam::app::mltraining::v1::ModelFramework value); - - private: - ::viam::app::mltraining::v1::ModelFramework _internal_model_framework() const; - void _internal_set_model_framework(::viam::app::mltraining::v1::ModelFramework value); - - public: - // bool draft = 4 [json_name = "draft"]; - void clear_draft() ; - bool draft() const; - void set_draft(bool value); - - private: - bool _internal_draft() const; - void _internal_set_draft(bool value); - - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.MLTrainingMetadata) + // @@protoc_insertion_point(class_scope:viam.app.v1.ListRegistryItemsResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::MLTrainingVersion > versions_; - int model_type_; - int model_framework_; - bool draft_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::RegistryItem > items_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class LocationAuth final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.LocationAuth) */ { +class DeleteRegistryItemRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.DeleteRegistryItemRequest) */ { public: - inline LocationAuth() : LocationAuth(nullptr) {} - ~LocationAuth() override; - template - explicit PROTOBUF_CONSTEXPR LocationAuth(::google::protobuf::internal::ConstantInitialized); + inline DeleteRegistryItemRequest() : DeleteRegistryItemRequest(nullptr) {} + ~DeleteRegistryItemRequest() override; + explicit PROTOBUF_CONSTEXPR DeleteRegistryItemRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline LocationAuth(const LocationAuth& from) - : LocationAuth(nullptr, from) {} - LocationAuth(LocationAuth&& from) noexcept - : LocationAuth() { + DeleteRegistryItemRequest(const DeleteRegistryItemRequest& from); + DeleteRegistryItemRequest(DeleteRegistryItemRequest&& from) noexcept + : DeleteRegistryItemRequest() { *this = ::std::move(from); } - inline LocationAuth& operator=(const LocationAuth& from) { + inline DeleteRegistryItemRequest& operator=(const DeleteRegistryItemRequest& from) { CopyFrom(from); return *this; } - inline LocationAuth& operator=(LocationAuth&& from) noexcept { + inline DeleteRegistryItemRequest& operator=(DeleteRegistryItemRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -31271,216 +27518,144 @@ class LocationAuth final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const LocationAuth& default_instance() { + static const DeleteRegistryItemRequest& default_instance() { return *internal_default_instance(); } - static inline const LocationAuth* internal_default_instance() { - return reinterpret_cast( - &_LocationAuth_default_instance_); + static inline const DeleteRegistryItemRequest* internal_default_instance() { + return reinterpret_cast( + &_DeleteRegistryItemRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 46; + 157; - friend void swap(LocationAuth& a, LocationAuth& b) { + friend void swap(DeleteRegistryItemRequest& a, DeleteRegistryItemRequest& b) { a.Swap(&b); } - inline void Swap(LocationAuth* other) { + inline void Swap(DeleteRegistryItemRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(LocationAuth* other) { + void UnsafeArenaSwap(DeleteRegistryItemRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - LocationAuth* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const LocationAuth& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const LocationAuth& from) { - LocationAuth::MergeImpl(*this, from); + DeleteRegistryItemRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DeleteRegistryItemRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const DeleteRegistryItemRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(LocationAuth* other); + void SetCachedSize(int size) const final; + void InternalSwap(DeleteRegistryItemRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.LocationAuth"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.DeleteRegistryItemRequest"; } protected: - explicit LocationAuth(::google::protobuf::Arena* arena); - LocationAuth(::google::protobuf::Arena* arena, const LocationAuth& from); + explicit DeleteRegistryItemRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kSecretsFieldNumber = 3, - kSecretFieldNumber = 1, - kLocationIdFieldNumber = 2, + kItemIdFieldNumber = 1, }; - // repeated .viam.app.v1.SharedSecret secrets = 3 [json_name = "secrets"]; - int secrets_size() const; - private: - int _internal_secrets_size() const; - - public: - void clear_secrets() ; - ::viam::app::v1::SharedSecret* mutable_secrets(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::SharedSecret >* - mutable_secrets(); - private: - const ::google::protobuf::RepeatedPtrField<::viam::app::v1::SharedSecret>& _internal_secrets() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::SharedSecret>* _internal_mutable_secrets(); - public: - const ::viam::app::v1::SharedSecret& secrets(int index) const; - ::viam::app::v1::SharedSecret* add_secrets(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::SharedSecret >& - secrets() const; - // string secret = 1 [json_name = "secret", deprecated = true]; - [[deprecated]] void clear_secret() ; - [[deprecated]] const std::string& secret() const; - template - [[deprecated]] void set_secret(Arg_&& arg, Args_... args); - [[deprecated]] std::string* mutable_secret(); - [[deprecated]] PROTOBUF_NODISCARD std::string* release_secret(); - [[deprecated]] void set_allocated_secret(std::string* value); - + // string item_id = 1 [json_name = "itemId"]; + void clear_item_id(); + const std::string& item_id() const; + template + void set_item_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_item_id(); + PROTOBUF_NODISCARD std::string* release_item_id(); + void set_allocated_item_id(std::string* item_id); private: - const std::string& _internal_secret() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_secret( - const std::string& value); - std::string* _internal_mutable_secret(); - + const std::string& _internal_item_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_item_id(const std::string& value); + std::string* _internal_mutable_item_id(); public: - // string location_id = 2 [json_name = "locationId"]; - void clear_location_id() ; - const std::string& location_id() const; - template - void set_location_id(Arg_&& arg, Args_... args); - std::string* mutable_location_id(); - PROTOBUF_NODISCARD std::string* release_location_id(); - void set_allocated_location_id(std::string* value); - - private: - const std::string& _internal_location_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_location_id( - const std::string& value); - std::string* _internal_mutable_location_id(); - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.LocationAuth) + // @@protoc_insertion_point(class_scope:viam.app.v1.DeleteRegistryItemRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 1, - 50, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::SharedSecret > secrets_; - ::google::protobuf::internal::ArenaStringPtr secret_; - ::google::protobuf::internal::ArenaStringPtr location_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr item_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ListRobotsResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ListRobotsResponse) */ { +class DeleteRegistryItemResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.DeleteRegistryItemResponse) */ { public: - inline ListRobotsResponse() : ListRobotsResponse(nullptr) {} - ~ListRobotsResponse() override; - template - explicit PROTOBUF_CONSTEXPR ListRobotsResponse(::google::protobuf::internal::ConstantInitialized); + inline DeleteRegistryItemResponse() : DeleteRegistryItemResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR DeleteRegistryItemResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ListRobotsResponse(const ListRobotsResponse& from) - : ListRobotsResponse(nullptr, from) {} - ListRobotsResponse(ListRobotsResponse&& from) noexcept - : ListRobotsResponse() { + DeleteRegistryItemResponse(const DeleteRegistryItemResponse& from); + DeleteRegistryItemResponse(DeleteRegistryItemResponse&& from) noexcept + : DeleteRegistryItemResponse() { *this = ::std::move(from); } - inline ListRobotsResponse& operator=(const ListRobotsResponse& from) { + inline DeleteRegistryItemResponse& operator=(const DeleteRegistryItemResponse& from) { CopyFrom(from); return *this; } - inline ListRobotsResponse& operator=(ListRobotsResponse&& from) noexcept { + inline DeleteRegistryItemResponse& operator=(DeleteRegistryItemResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -31490,180 +27665,114 @@ class ListRobotsResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ListRobotsResponse& default_instance() { + static const DeleteRegistryItemResponse& default_instance() { return *internal_default_instance(); } - static inline const ListRobotsResponse* internal_default_instance() { - return reinterpret_cast( - &_ListRobotsResponse_default_instance_); + static inline const DeleteRegistryItemResponse* internal_default_instance() { + return reinterpret_cast( + &_DeleteRegistryItemResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 115; + 158; - friend void swap(ListRobotsResponse& a, ListRobotsResponse& b) { + friend void swap(DeleteRegistryItemResponse& a, DeleteRegistryItemResponse& b) { a.Swap(&b); } - inline void Swap(ListRobotsResponse* other) { + inline void Swap(DeleteRegistryItemResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ListRobotsResponse* other) { + void UnsafeArenaSwap(DeleteRegistryItemResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ListRobotsResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + DeleteRegistryItemResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ListRobotsResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ListRobotsResponse& from) { - ListRobotsResponse::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const DeleteRegistryItemResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const DeleteRegistryItemResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(ListRobotsResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.ListRobotsResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.DeleteRegistryItemResponse"; } protected: - explicit ListRobotsResponse(::google::protobuf::Arena* arena); - ListRobotsResponse(::google::protobuf::Arena* arena, const ListRobotsResponse& from); + explicit DeleteRegistryItemResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kRobotsFieldNumber = 1, - }; - // repeated .viam.app.v1.Robot robots = 1 [json_name = "robots"]; - int robots_size() const; - private: - int _internal_robots_size() const; - - public: - void clear_robots() ; - ::viam::app::v1::Robot* mutable_robots(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Robot >* - mutable_robots(); - private: - const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Robot>& _internal_robots() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::Robot>* _internal_mutable_robots(); - public: - const ::viam::app::v1::Robot& robots(int index) const; - ::viam::app::v1::Robot* add_robots(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Robot >& - robots() const; - // @@protoc_insertion_point(class_scope:viam.app.v1.ListRobotsResponse) + // @@protoc_insertion_point(class_scope:viam.app.v1.DeleteRegistryItemResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Robot > robots_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ListOrganizationsResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ListOrganizationsResponse) */ { +class TransferRegistryItemRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.TransferRegistryItemRequest) */ { public: - inline ListOrganizationsResponse() : ListOrganizationsResponse(nullptr) {} - ~ListOrganizationsResponse() override; - template - explicit PROTOBUF_CONSTEXPR ListOrganizationsResponse(::google::protobuf::internal::ConstantInitialized); + inline TransferRegistryItemRequest() : TransferRegistryItemRequest(nullptr) {} + ~TransferRegistryItemRequest() override; + explicit PROTOBUF_CONSTEXPR TransferRegistryItemRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ListOrganizationsResponse(const ListOrganizationsResponse& from) - : ListOrganizationsResponse(nullptr, from) {} - ListOrganizationsResponse(ListOrganizationsResponse&& from) noexcept - : ListOrganizationsResponse() { + TransferRegistryItemRequest(const TransferRegistryItemRequest& from); + TransferRegistryItemRequest(TransferRegistryItemRequest&& from) noexcept + : TransferRegistryItemRequest() { *this = ::std::move(from); } - inline ListOrganizationsResponse& operator=(const ListOrganizationsResponse& from) { + inline TransferRegistryItemRequest& operator=(const TransferRegistryItemRequest& from) { CopyFrom(from); return *this; } - inline ListOrganizationsResponse& operator=(ListOrganizationsResponse&& from) noexcept { + inline TransferRegistryItemRequest& operator=(TransferRegistryItemRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -31673,180 +27782,160 @@ class ListOrganizationsResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ListOrganizationsResponse& default_instance() { + static const TransferRegistryItemRequest& default_instance() { return *internal_default_instance(); } - static inline const ListOrganizationsResponse* internal_default_instance() { - return reinterpret_cast( - &_ListOrganizationsResponse_default_instance_); + static inline const TransferRegistryItemRequest* internal_default_instance() { + return reinterpret_cast( + &_TransferRegistryItemRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 7; + 159; - friend void swap(ListOrganizationsResponse& a, ListOrganizationsResponse& b) { + friend void swap(TransferRegistryItemRequest& a, TransferRegistryItemRequest& b) { a.Swap(&b); } - inline void Swap(ListOrganizationsResponse* other) { + inline void Swap(TransferRegistryItemRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ListOrganizationsResponse* other) { + void UnsafeArenaSwap(TransferRegistryItemRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ListOrganizationsResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ListOrganizationsResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ListOrganizationsResponse& from) { - ListOrganizationsResponse::MergeImpl(*this, from); + TransferRegistryItemRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const TransferRegistryItemRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const TransferRegistryItemRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ListOrganizationsResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(TransferRegistryItemRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.ListOrganizationsResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.TransferRegistryItemRequest"; } protected: - explicit ListOrganizationsResponse(::google::protobuf::Arena* arena); - ListOrganizationsResponse(::google::protobuf::Arena* arena, const ListOrganizationsResponse& from); + explicit TransferRegistryItemRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kOrganizationsFieldNumber = 1, + kItemIdFieldNumber = 1, + kNewPublicNamespaceFieldNumber = 2, }; - // repeated .viam.app.v1.Organization organizations = 1 [json_name = "organizations"]; - int organizations_size() const; + // string item_id = 1 [json_name = "itemId"]; + void clear_item_id(); + const std::string& item_id() const; + template + void set_item_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_item_id(); + PROTOBUF_NODISCARD std::string* release_item_id(); + void set_allocated_item_id(std::string* item_id); private: - int _internal_organizations_size() const; - + const std::string& _internal_item_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_item_id(const std::string& value); + std::string* _internal_mutable_item_id(); public: - void clear_organizations() ; - ::viam::app::v1::Organization* mutable_organizations(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Organization >* - mutable_organizations(); + + // string new_public_namespace = 2 [json_name = "newPublicNamespace"]; + void clear_new_public_namespace(); + const std::string& new_public_namespace() const; + template + void set_new_public_namespace(ArgT0&& arg0, ArgT... args); + std::string* mutable_new_public_namespace(); + PROTOBUF_NODISCARD std::string* release_new_public_namespace(); + void set_allocated_new_public_namespace(std::string* new_public_namespace); private: - const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Organization>& _internal_organizations() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::Organization>* _internal_mutable_organizations(); + const std::string& _internal_new_public_namespace() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_new_public_namespace(const std::string& value); + std::string* _internal_mutable_new_public_namespace(); public: - const ::viam::app::v1::Organization& organizations(int index) const; - ::viam::app::v1::Organization* add_organizations(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Organization >& - organizations() const; - // @@protoc_insertion_point(class_scope:viam.app.v1.ListOrganizationsResponse) + + // @@protoc_insertion_point(class_scope:viam.app.v1.TransferRegistryItemRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Organization > organizations_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr item_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr new_public_namespace_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ListOrganizationMembersResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ListOrganizationMembersResponse) */ { +class TransferRegistryItemResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.TransferRegistryItemResponse) */ { public: - inline ListOrganizationMembersResponse() : ListOrganizationMembersResponse(nullptr) {} - ~ListOrganizationMembersResponse() override; - template - explicit PROTOBUF_CONSTEXPR ListOrganizationMembersResponse(::google::protobuf::internal::ConstantInitialized); + inline TransferRegistryItemResponse() : TransferRegistryItemResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR TransferRegistryItemResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ListOrganizationMembersResponse(const ListOrganizationMembersResponse& from) - : ListOrganizationMembersResponse(nullptr, from) {} - ListOrganizationMembersResponse(ListOrganizationMembersResponse&& from) noexcept - : ListOrganizationMembersResponse() { + TransferRegistryItemResponse(const TransferRegistryItemResponse& from); + TransferRegistryItemResponse(TransferRegistryItemResponse&& from) noexcept + : TransferRegistryItemResponse() { *this = ::std::move(from); } - inline ListOrganizationMembersResponse& operator=(const ListOrganizationMembersResponse& from) { + inline TransferRegistryItemResponse& operator=(const TransferRegistryItemResponse& from) { CopyFrom(from); return *this; } - inline ListOrganizationMembersResponse& operator=(ListOrganizationMembersResponse&& from) noexcept { + inline TransferRegistryItemResponse& operator=(TransferRegistryItemResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -31856,218 +27945,114 @@ class ListOrganizationMembersResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ListOrganizationMembersResponse& default_instance() { + static const TransferRegistryItemResponse& default_instance() { return *internal_default_instance(); } - static inline const ListOrganizationMembersResponse* internal_default_instance() { - return reinterpret_cast( - &_ListOrganizationMembersResponse_default_instance_); + static inline const TransferRegistryItemResponse* internal_default_instance() { + return reinterpret_cast( + &_TransferRegistryItemResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 20; + 160; - friend void swap(ListOrganizationMembersResponse& a, ListOrganizationMembersResponse& b) { + friend void swap(TransferRegistryItemResponse& a, TransferRegistryItemResponse& b) { a.Swap(&b); } - inline void Swap(ListOrganizationMembersResponse* other) { + inline void Swap(TransferRegistryItemResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ListOrganizationMembersResponse* other) { + void UnsafeArenaSwap(TransferRegistryItemResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ListOrganizationMembersResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + TransferRegistryItemResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ListOrganizationMembersResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ListOrganizationMembersResponse& from) { - ListOrganizationMembersResponse::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const TransferRegistryItemResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const TransferRegistryItemResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(ListOrganizationMembersResponse* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.ListOrganizationMembersResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.TransferRegistryItemResponse"; } protected: - explicit ListOrganizationMembersResponse(::google::protobuf::Arena* arena); - ListOrganizationMembersResponse(::google::protobuf::Arena* arena, const ListOrganizationMembersResponse& from); + explicit TransferRegistryItemResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kMembersFieldNumber = 2, - kInvitesFieldNumber = 3, - kOrganizationIdFieldNumber = 1, - }; - // repeated .viam.app.v1.OrganizationMember members = 2 [json_name = "members"]; - int members_size() const; - private: - int _internal_members_size() const; - - public: - void clear_members() ; - ::viam::app::v1::OrganizationMember* mutable_members(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::OrganizationMember >* - mutable_members(); - private: - const ::google::protobuf::RepeatedPtrField<::viam::app::v1::OrganizationMember>& _internal_members() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::OrganizationMember>* _internal_mutable_members(); - public: - const ::viam::app::v1::OrganizationMember& members(int index) const; - ::viam::app::v1::OrganizationMember* add_members(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::OrganizationMember >& - members() const; - // repeated .viam.app.v1.OrganizationInvite invites = 3 [json_name = "invites"]; - int invites_size() const; - private: - int _internal_invites_size() const; - - public: - void clear_invites() ; - ::viam::app::v1::OrganizationInvite* mutable_invites(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::OrganizationInvite >* - mutable_invites(); - private: - const ::google::protobuf::RepeatedPtrField<::viam::app::v1::OrganizationInvite>& _internal_invites() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::OrganizationInvite>* _internal_mutable_invites(); - public: - const ::viam::app::v1::OrganizationInvite& invites(int index) const; - ::viam::app::v1::OrganizationInvite* add_invites(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::OrganizationInvite >& - invites() const; - // string organization_id = 1 [json_name = "organizationId"]; - void clear_organization_id() ; - const std::string& organization_id() const; - template - void set_organization_id(Arg_&& arg, Args_... args); - std::string* mutable_organization_id(); - PROTOBUF_NODISCARD std::string* release_organization_id(); - void set_allocated_organization_id(std::string* value); - - private: - const std::string& _internal_organization_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id( - const std::string& value); - std::string* _internal_mutable_organization_id(); - - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.ListOrganizationMembersResponse) + // @@protoc_insertion_point(class_scope:viam.app.v1.TransferRegistryItemResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 2, - 67, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::OrganizationMember > members_; - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::OrganizationInvite > invites_; - ::google::protobuf::internal::ArenaStringPtr organization_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ListMachineFragmentsResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ListMachineFragmentsResponse) */ { +class CreateModuleRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.CreateModuleRequest) */ { public: - inline ListMachineFragmentsResponse() : ListMachineFragmentsResponse(nullptr) {} - ~ListMachineFragmentsResponse() override; - template - explicit PROTOBUF_CONSTEXPR ListMachineFragmentsResponse(::google::protobuf::internal::ConstantInitialized); + inline CreateModuleRequest() : CreateModuleRequest(nullptr) {} + ~CreateModuleRequest() override; + explicit PROTOBUF_CONSTEXPR CreateModuleRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ListMachineFragmentsResponse(const ListMachineFragmentsResponse& from) - : ListMachineFragmentsResponse(nullptr, from) {} - ListMachineFragmentsResponse(ListMachineFragmentsResponse&& from) noexcept - : ListMachineFragmentsResponse() { + CreateModuleRequest(const CreateModuleRequest& from); + CreateModuleRequest(CreateModuleRequest&& from) noexcept + : CreateModuleRequest() { *this = ::std::move(from); } - inline ListMachineFragmentsResponse& operator=(const ListMachineFragmentsResponse& from) { + inline CreateModuleRequest& operator=(const CreateModuleRequest& from) { CopyFrom(from); return *this; } - inline ListMachineFragmentsResponse& operator=(ListMachineFragmentsResponse&& from) noexcept { + inline CreateModuleRequest& operator=(CreateModuleRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -32077,200 +28062,161 @@ class ListMachineFragmentsResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ListMachineFragmentsResponse& default_instance() { + static const CreateModuleRequest& default_instance() { return *internal_default_instance(); } - static inline const ListMachineFragmentsResponse* internal_default_instance() { - return reinterpret_cast( - &_ListMachineFragmentsResponse_default_instance_); + static inline const CreateModuleRequest* internal_default_instance() { + return reinterpret_cast( + &_CreateModuleRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 114; + 161; - friend void swap(ListMachineFragmentsResponse& a, ListMachineFragmentsResponse& b) { + friend void swap(CreateModuleRequest& a, CreateModuleRequest& b) { a.Swap(&b); } - inline void Swap(ListMachineFragmentsResponse* other) { + inline void Swap(CreateModuleRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ListMachineFragmentsResponse* other) { + void UnsafeArenaSwap(CreateModuleRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ListMachineFragmentsResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ListMachineFragmentsResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ListMachineFragmentsResponse& from) { - ListMachineFragmentsResponse::MergeImpl(*this, from); + CreateModuleRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CreateModuleRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CreateModuleRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ListMachineFragmentsResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(CreateModuleRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.ListMachineFragmentsResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.CreateModuleRequest"; } protected: - explicit ListMachineFragmentsResponse(::google::protobuf::Arena* arena); - ListMachineFragmentsResponse(::google::protobuf::Arena* arena, const ListMachineFragmentsResponse& from); + explicit CreateModuleRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kFragmentsFieldNumber = 1, - kResolvedFragmentsFieldNumber = 2, + kOrganizationIdFieldNumber = 1, + kNameFieldNumber = 2, }; - // repeated .viam.app.v1.Fragment fragments = 1 [json_name = "fragments"]; - int fragments_size() const; - private: - int _internal_fragments_size() const; - - public: - void clear_fragments() ; - ::viam::app::v1::Fragment* mutable_fragments(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Fragment >* - mutable_fragments(); + // string organization_id = 1 [json_name = "organizationId"]; + void clear_organization_id(); + const std::string& organization_id() const; + template + void set_organization_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_organization_id(); + PROTOBUF_NODISCARD std::string* release_organization_id(); + void set_allocated_organization_id(std::string* organization_id); private: - const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Fragment>& _internal_fragments() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::Fragment>* _internal_mutable_fragments(); + const std::string& _internal_organization_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id(const std::string& value); + std::string* _internal_mutable_organization_id(); public: - const ::viam::app::v1::Fragment& fragments(int index) const; - ::viam::app::v1::Fragment* add_fragments(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Fragment >& - fragments() const; - // repeated .viam.app.v1.ResolvedFragment resolved_fragments = 2 [json_name = "resolvedFragments"]; - int resolved_fragments_size() const; - private: - int _internal_resolved_fragments_size() const; - public: - void clear_resolved_fragments() ; - ::viam::app::v1::ResolvedFragment* mutable_resolved_fragments(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::ResolvedFragment >* - mutable_resolved_fragments(); + // string name = 2 [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 ::google::protobuf::RepeatedPtrField<::viam::app::v1::ResolvedFragment>& _internal_resolved_fragments() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::ResolvedFragment>* _internal_mutable_resolved_fragments(); + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); public: - const ::viam::app::v1::ResolvedFragment& resolved_fragments(int index) const; - ::viam::app::v1::ResolvedFragment* add_resolved_fragments(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::ResolvedFragment >& - resolved_fragments() const; - // @@protoc_insertion_point(class_scope:viam.app.v1.ListMachineFragmentsResponse) + + // @@protoc_insertion_point(class_scope:viam.app.v1.CreateModuleRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 2, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Fragment > fragments_; - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::ResolvedFragment > resolved_fragments_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr organization_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ListFragmentsResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ListFragmentsResponse) */ { +class CreateModuleResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.CreateModuleResponse) */ { public: - inline ListFragmentsResponse() : ListFragmentsResponse(nullptr) {} - ~ListFragmentsResponse() override; - template - explicit PROTOBUF_CONSTEXPR ListFragmentsResponse(::google::protobuf::internal::ConstantInitialized); + inline CreateModuleResponse() : CreateModuleResponse(nullptr) {} + ~CreateModuleResponse() override; + explicit PROTOBUF_CONSTEXPR CreateModuleResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ListFragmentsResponse(const ListFragmentsResponse& from) - : ListFragmentsResponse(nullptr, from) {} - ListFragmentsResponse(ListFragmentsResponse&& from) noexcept - : ListFragmentsResponse() { + CreateModuleResponse(const CreateModuleResponse& from); + CreateModuleResponse(CreateModuleResponse&& from) noexcept + : CreateModuleResponse() { *this = ::std::move(from); } - inline ListFragmentsResponse& operator=(const ListFragmentsResponse& from) { + inline CreateModuleResponse& operator=(const CreateModuleResponse& from) { CopyFrom(from); return *this; } - inline ListFragmentsResponse& operator=(ListFragmentsResponse&& from) noexcept { + inline CreateModuleResponse& operator=(CreateModuleResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -32280,180 +28226,161 @@ class ListFragmentsResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ListFragmentsResponse& default_instance() { + static const CreateModuleResponse& default_instance() { return *internal_default_instance(); } - static inline const ListFragmentsResponse* internal_default_instance() { - return reinterpret_cast( - &_ListFragmentsResponse_default_instance_); + static inline const CreateModuleResponse* internal_default_instance() { + return reinterpret_cast( + &_CreateModuleResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 101; + 162; - friend void swap(ListFragmentsResponse& a, ListFragmentsResponse& b) { + friend void swap(CreateModuleResponse& a, CreateModuleResponse& b) { a.Swap(&b); } - inline void Swap(ListFragmentsResponse* other) { + inline void Swap(CreateModuleResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ListFragmentsResponse* other) { + void UnsafeArenaSwap(CreateModuleResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ListFragmentsResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ListFragmentsResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ListFragmentsResponse& from) { - ListFragmentsResponse::MergeImpl(*this, from); + CreateModuleResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CreateModuleResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CreateModuleResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ListFragmentsResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(CreateModuleResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.ListFragmentsResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.CreateModuleResponse"; } protected: - explicit ListFragmentsResponse(::google::protobuf::Arena* arena); - ListFragmentsResponse(::google::protobuf::Arena* arena, const ListFragmentsResponse& from); + explicit CreateModuleResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kFragmentsFieldNumber = 1, + kModuleIdFieldNumber = 1, + kUrlFieldNumber = 2, }; - // repeated .viam.app.v1.Fragment fragments = 1 [json_name = "fragments"]; - int fragments_size() const; + // string module_id = 1 [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: - int _internal_fragments_size() const; - + 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: - void clear_fragments() ; - ::viam::app::v1::Fragment* mutable_fragments(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Fragment >* - mutable_fragments(); + + // string url = 2 [json_name = "url"]; + void clear_url(); + const std::string& url() const; + template + void set_url(ArgT0&& arg0, ArgT... args); + std::string* mutable_url(); + PROTOBUF_NODISCARD std::string* release_url(); + void set_allocated_url(std::string* url); private: - const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Fragment>& _internal_fragments() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::Fragment>* _internal_mutable_fragments(); + const std::string& _internal_url() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_url(const std::string& value); + std::string* _internal_mutable_url(); public: - const ::viam::app::v1::Fragment& fragments(int index) const; - ::viam::app::v1::Fragment* add_fragments(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Fragment >& - fragments() const; - // @@protoc_insertion_point(class_scope:viam.app.v1.ListFragmentsResponse) + + // @@protoc_insertion_point(class_scope:viam.app.v1.CreateModuleResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Fragment > fragments_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr module_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr url_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetRobotResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetRobotResponse) */ { +class UpdateModuleRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.UpdateModuleRequest) */ { public: - inline GetRobotResponse() : GetRobotResponse(nullptr) {} - ~GetRobotResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetRobotResponse(::google::protobuf::internal::ConstantInitialized); + inline UpdateModuleRequest() : UpdateModuleRequest(nullptr) {} + ~UpdateModuleRequest() override; + explicit PROTOBUF_CONSTEXPR UpdateModuleRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetRobotResponse(const GetRobotResponse& from) - : GetRobotResponse(nullptr, from) {} - GetRobotResponse(GetRobotResponse&& from) noexcept - : GetRobotResponse() { + UpdateModuleRequest(const UpdateModuleRequest& from); + UpdateModuleRequest(UpdateModuleRequest&& from) noexcept + : UpdateModuleRequest() { *this = ::std::move(from); } - inline GetRobotResponse& operator=(const GetRobotResponse& from) { + inline UpdateModuleRequest& operator=(const UpdateModuleRequest& from) { CopyFrom(from); return *this; } - inline GetRobotResponse& operator=(GetRobotResponse&& from) noexcept { + inline UpdateModuleRequest& operator=(UpdateModuleRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -32463,178 +28390,245 @@ class GetRobotResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetRobotResponse& default_instance() { + static const UpdateModuleRequest& default_instance() { return *internal_default_instance(); } - static inline const GetRobotResponse* internal_default_instance() { - return reinterpret_cast( - &_GetRobotResponse_default_instance_); + static inline const UpdateModuleRequest* internal_default_instance() { + return reinterpret_cast( + &_UpdateModuleRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 76; + 163; - friend void swap(GetRobotResponse& a, GetRobotResponse& b) { + friend void swap(UpdateModuleRequest& a, UpdateModuleRequest& b) { a.Swap(&b); } - inline void Swap(GetRobotResponse* other) { + inline void Swap(UpdateModuleRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetRobotResponse* other) { + void UnsafeArenaSwap(UpdateModuleRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetRobotResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetRobotResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetRobotResponse& from) { - GetRobotResponse::MergeImpl(*this, from); + UpdateModuleRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const UpdateModuleRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const UpdateModuleRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetRobotResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(UpdateModuleRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.GetRobotResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.UpdateModuleRequest"; } protected: - explicit GetRobotResponse(::google::protobuf::Arena* arena); - GetRobotResponse(::google::protobuf::Arena* arena, const GetRobotResponse& from); + explicit UpdateModuleRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kRobotFieldNumber = 1, + kModelsFieldNumber = 5, + kModuleIdFieldNumber = 1, + kUrlFieldNumber = 3, + kDescriptionFieldNumber = 4, + kEntrypointFieldNumber = 6, + kFirstRunFieldNumber = 7, + kVisibilityFieldNumber = 2, }; - // .viam.app.v1.Robot robot = 1 [json_name = "robot"]; - bool has_robot() const; - void clear_robot() ; - const ::viam::app::v1::Robot& robot() const; - PROTOBUF_NODISCARD ::viam::app::v1::Robot* release_robot(); - ::viam::app::v1::Robot* mutable_robot(); - void set_allocated_robot(::viam::app::v1::Robot* value); - void unsafe_arena_set_allocated_robot(::viam::app::v1::Robot* value); - ::viam::app::v1::Robot* unsafe_arena_release_robot(); + // repeated .viam.app.v1.Model models = 5 [json_name = "models"]; + int models_size() const; + private: + int _internal_models_size() const; + public: + void clear_models(); + ::viam::app::v1::Model* mutable_models(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Model >* + mutable_models(); + private: + const ::viam::app::v1::Model& _internal_models(int index) const; + ::viam::app::v1::Model* _internal_add_models(); + public: + const ::viam::app::v1::Model& models(int index) const; + ::viam::app::v1::Model* add_models(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Model >& + models() const; + + // string module_id = 1 [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: + // string url = 3 [json_name = "url"]; + void clear_url(); + const std::string& url() const; + template + void set_url(ArgT0&& arg0, ArgT... args); + std::string* mutable_url(); + PROTOBUF_NODISCARD std::string* release_url(); + void set_allocated_url(std::string* url); private: - const ::viam::app::v1::Robot& _internal_robot() const; - ::viam::app::v1::Robot* _internal_mutable_robot(); + const std::string& _internal_url() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_url(const std::string& value); + std::string* _internal_mutable_url(); + public: + // string description = 4 [json_name = "description"]; + void clear_description(); + const std::string& description() const; + template + void set_description(ArgT0&& arg0, ArgT... args); + std::string* mutable_description(); + PROTOBUF_NODISCARD std::string* release_description(); + void set_allocated_description(std::string* description); + private: + const std::string& _internal_description() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_description(const std::string& value); + std::string* _internal_mutable_description(); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.GetRobotResponse) + + // string entrypoint = 6 [json_name = "entrypoint"]; + void clear_entrypoint(); + const std::string& entrypoint() const; + template + void set_entrypoint(ArgT0&& arg0, ArgT... args); + std::string* mutable_entrypoint(); + PROTOBUF_NODISCARD std::string* release_entrypoint(); + void set_allocated_entrypoint(std::string* entrypoint); + private: + const std::string& _internal_entrypoint() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_entrypoint(const std::string& value); + std::string* _internal_mutable_entrypoint(); + public: + + // optional string first_run = 7 [json_name = "firstRun"]; + bool has_first_run() const; + private: + bool _internal_has_first_run() const; + public: + void clear_first_run(); + const std::string& first_run() const; + template + void set_first_run(ArgT0&& arg0, ArgT... args); + std::string* mutable_first_run(); + PROTOBUF_NODISCARD std::string* release_first_run(); + void set_allocated_first_run(std::string* first_run); + private: + const std::string& _internal_first_run() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_first_run(const std::string& value); + std::string* _internal_mutable_first_run(); + public: + + // .viam.app.v1.Visibility visibility = 2 [json_name = "visibility"]; + void clear_visibility(); + ::viam::app::v1::Visibility visibility() const; + void set_visibility(::viam::app::v1::Visibility value); + private: + ::viam::app::v1::Visibility _internal_visibility() const; + void _internal_set_visibility(::viam::app::v1::Visibility value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.UpdateModuleRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::viam::app::v1::Robot* robot_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Model > models_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr module_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr url_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr description_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr entrypoint_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr first_run_; + int visibility_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetRobotPartLogsResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetRobotPartLogsResponse) */ { +class UpdateModuleResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.UpdateModuleResponse) */ { public: - inline GetRobotPartLogsResponse() : GetRobotPartLogsResponse(nullptr) {} - ~GetRobotPartLogsResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetRobotPartLogsResponse(::google::protobuf::internal::ConstantInitialized); + inline UpdateModuleResponse() : UpdateModuleResponse(nullptr) {} + ~UpdateModuleResponse() override; + explicit PROTOBUF_CONSTEXPR UpdateModuleResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetRobotPartLogsResponse(const GetRobotPartLogsResponse& from) - : GetRobotPartLogsResponse(nullptr, from) {} - GetRobotPartLogsResponse(GetRobotPartLogsResponse&& from) noexcept - : GetRobotPartLogsResponse() { + UpdateModuleResponse(const UpdateModuleResponse& from); + UpdateModuleResponse(UpdateModuleResponse&& from) noexcept + : UpdateModuleResponse() { *this = ::std::move(from); } - inline GetRobotPartLogsResponse& operator=(const GetRobotPartLogsResponse& from) { + inline UpdateModuleResponse& operator=(const UpdateModuleResponse& from) { CopyFrom(from); return *this; } - inline GetRobotPartLogsResponse& operator=(GetRobotPartLogsResponse&& from) noexcept { + inline UpdateModuleResponse& operator=(UpdateModuleResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -32644,198 +28638,145 @@ class GetRobotPartLogsResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetRobotPartLogsResponse& default_instance() { + static const UpdateModuleResponse& default_instance() { return *internal_default_instance(); } - static inline const GetRobotPartLogsResponse* internal_default_instance() { - return reinterpret_cast( - &_GetRobotPartLogsResponse_default_instance_); + static inline const UpdateModuleResponse* internal_default_instance() { + return reinterpret_cast( + &_UpdateModuleResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 82; + 164; - friend void swap(GetRobotPartLogsResponse& a, GetRobotPartLogsResponse& b) { + friend void swap(UpdateModuleResponse& a, UpdateModuleResponse& b) { a.Swap(&b); } - inline void Swap(GetRobotPartLogsResponse* other) { + inline void Swap(UpdateModuleResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetRobotPartLogsResponse* other) { + void UnsafeArenaSwap(UpdateModuleResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetRobotPartLogsResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetRobotPartLogsResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetRobotPartLogsResponse& from) { - GetRobotPartLogsResponse::MergeImpl(*this, from); + UpdateModuleResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const UpdateModuleResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const UpdateModuleResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetRobotPartLogsResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(UpdateModuleResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.GetRobotPartLogsResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.UpdateModuleResponse"; } protected: - explicit GetRobotPartLogsResponse(::google::protobuf::Arena* arena); - GetRobotPartLogsResponse(::google::protobuf::Arena* arena, const GetRobotPartLogsResponse& from); + explicit UpdateModuleResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kLogsFieldNumber = 1, - kNextPageTokenFieldNumber = 2, + kUrlFieldNumber = 1, }; - // repeated .viam.common.v1.LogEntry logs = 1 [json_name = "logs"]; - int logs_size() const; - private: - int _internal_logs_size() const; - - public: - void clear_logs() ; - ::viam::common::v1::LogEntry* mutable_logs(int index); - ::google::protobuf::RepeatedPtrField< ::viam::common::v1::LogEntry >* - mutable_logs(); + // string url = 1 [json_name = "url"]; + void clear_url(); + const std::string& url() const; + template + void set_url(ArgT0&& arg0, ArgT... args); + std::string* mutable_url(); + PROTOBUF_NODISCARD std::string* release_url(); + void set_allocated_url(std::string* url); private: - const ::google::protobuf::RepeatedPtrField<::viam::common::v1::LogEntry>& _internal_logs() const; - ::google::protobuf::RepeatedPtrField<::viam::common::v1::LogEntry>* _internal_mutable_logs(); + const std::string& _internal_url() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_url(const std::string& value); + std::string* _internal_mutable_url(); public: - const ::viam::common::v1::LogEntry& logs(int index) const; - ::viam::common::v1::LogEntry* add_logs(); - const ::google::protobuf::RepeatedPtrField< ::viam::common::v1::LogEntry >& - logs() const; - // string next_page_token = 2 [json_name = "nextPageToken"]; - void clear_next_page_token() ; - const std::string& next_page_token() const; - template - void set_next_page_token(Arg_&& arg, Args_... args); - std::string* mutable_next_page_token(); - PROTOBUF_NODISCARD std::string* release_next_page_token(); - void set_allocated_next_page_token(std::string* value); - - private: - const std::string& _internal_next_page_token() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_next_page_token( - const std::string& value); - std::string* _internal_mutable_next_page_token(); - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.GetRobotPartLogsResponse) + // @@protoc_insertion_point(class_scope:viam.app.v1.UpdateModuleResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 60, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::common::v1::LogEntry > logs_; - ::google::protobuf::internal::ArenaStringPtr next_page_token_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr url_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetOrganizationResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetOrganizationResponse) */ { +class UpdateModuleMetadata final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.UpdateModuleMetadata) */ { public: - inline GetOrganizationResponse() : GetOrganizationResponse(nullptr) {} - ~GetOrganizationResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetOrganizationResponse(::google::protobuf::internal::ConstantInitialized); + inline UpdateModuleMetadata() : UpdateModuleMetadata(nullptr) {} + ~UpdateModuleMetadata() override; + explicit PROTOBUF_CONSTEXPR UpdateModuleMetadata(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetOrganizationResponse(const GetOrganizationResponse& from) - : GetOrganizationResponse(nullptr, from) {} - GetOrganizationResponse(GetOrganizationResponse&& from) noexcept - : GetOrganizationResponse() { + UpdateModuleMetadata(const UpdateModuleMetadata& from); + UpdateModuleMetadata(UpdateModuleMetadata&& from) noexcept + : UpdateModuleMetadata() { *this = ::std::move(from); } - inline GetOrganizationResponse& operator=(const GetOrganizationResponse& from) { + inline UpdateModuleMetadata& operator=(const UpdateModuleMetadata& from) { CopyFrom(from); return *this; } - inline GetOrganizationResponse& operator=(GetOrganizationResponse&& from) noexcept { + inline UpdateModuleMetadata& operator=(UpdateModuleMetadata&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -32845,178 +28786,165 @@ class GetOrganizationResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetOrganizationResponse& default_instance() { + static const UpdateModuleMetadata& default_instance() { return *internal_default_instance(); } - static inline const GetOrganizationResponse* internal_default_instance() { - return reinterpret_cast( - &_GetOrganizationResponse_default_instance_); + static inline const UpdateModuleMetadata* internal_default_instance() { + return reinterpret_cast( + &_UpdateModuleMetadata_default_instance_); } static constexpr int kIndexInFileMessages = - 12; + 165; - friend void swap(GetOrganizationResponse& a, GetOrganizationResponse& b) { + friend void swap(UpdateModuleMetadata& a, UpdateModuleMetadata& b) { a.Swap(&b); } - inline void Swap(GetOrganizationResponse* other) { + inline void Swap(UpdateModuleMetadata* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetOrganizationResponse* other) { + void UnsafeArenaSwap(UpdateModuleMetadata* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetOrganizationResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetOrganizationResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetOrganizationResponse& from) { - GetOrganizationResponse::MergeImpl(*this, from); + UpdateModuleMetadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const UpdateModuleMetadata& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const UpdateModuleMetadata& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetOrganizationResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(UpdateModuleMetadata* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.GetOrganizationResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.UpdateModuleMetadata"; } protected: - explicit GetOrganizationResponse(::google::protobuf::Arena* arena); - GetOrganizationResponse(::google::protobuf::Arena* arena, const GetOrganizationResponse& from); + explicit UpdateModuleMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kOrganizationFieldNumber = 1, + kModelsFieldNumber = 1, + kEntrypointFieldNumber = 2, }; - // .viam.app.v1.Organization organization = 1 [json_name = "organization"]; - bool has_organization() const; - void clear_organization() ; - const ::viam::app::v1::Organization& organization() const; - PROTOBUF_NODISCARD ::viam::app::v1::Organization* release_organization(); - ::viam::app::v1::Organization* mutable_organization(); - void set_allocated_organization(::viam::app::v1::Organization* value); - void unsafe_arena_set_allocated_organization(::viam::app::v1::Organization* value); - ::viam::app::v1::Organization* unsafe_arena_release_organization(); - + // repeated .viam.app.v1.Model models = 1 [json_name = "models"]; + int models_size() const; private: - const ::viam::app::v1::Organization& _internal_organization() const; - ::viam::app::v1::Organization* _internal_mutable_organization(); + int _internal_models_size() const; + public: + void clear_models(); + ::viam::app::v1::Model* mutable_models(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Model >* + mutable_models(); + private: + const ::viam::app::v1::Model& _internal_models(int index) const; + ::viam::app::v1::Model* _internal_add_models(); + public: + const ::viam::app::v1::Model& models(int index) const; + ::viam::app::v1::Model* add_models(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Model >& + models() const; + // string entrypoint = 2 [json_name = "entrypoint"]; + void clear_entrypoint(); + const std::string& entrypoint() const; + template + void set_entrypoint(ArgT0&& arg0, ArgT... args); + std::string* mutable_entrypoint(); + PROTOBUF_NODISCARD std::string* release_entrypoint(); + void set_allocated_entrypoint(std::string* entrypoint); + private: + const std::string& _internal_entrypoint() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_entrypoint(const std::string& value); + std::string* _internal_mutable_entrypoint(); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.GetOrganizationResponse) + + // @@protoc_insertion_point(class_scope:viam.app.v1.UpdateModuleMetadata) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::viam::app::v1::Organization* organization_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Model > models_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr entrypoint_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetFragmentResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetFragmentResponse) */ { +class UpdateMLModelMetadata final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.UpdateMLModelMetadata) */ { public: - inline GetFragmentResponse() : GetFragmentResponse(nullptr) {} - ~GetFragmentResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetFragmentResponse(::google::protobuf::internal::ConstantInitialized); + inline UpdateMLModelMetadata() : UpdateMLModelMetadata(nullptr) {} + ~UpdateMLModelMetadata() override; + explicit PROTOBUF_CONSTEXPR UpdateMLModelMetadata(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetFragmentResponse(const GetFragmentResponse& from) - : GetFragmentResponse(nullptr, from) {} - GetFragmentResponse(GetFragmentResponse&& from) noexcept - : GetFragmentResponse() { + UpdateMLModelMetadata(const UpdateMLModelMetadata& from); + UpdateMLModelMetadata(UpdateMLModelMetadata&& from) noexcept + : UpdateMLModelMetadata() { *this = ::std::move(from); } - inline GetFragmentResponse& operator=(const GetFragmentResponse& from) { + inline UpdateMLModelMetadata& operator=(const UpdateMLModelMetadata& from) { CopyFrom(from); return *this; } - inline GetFragmentResponse& operator=(GetFragmentResponse&& from) noexcept { + inline UpdateMLModelMetadata& operator=(UpdateMLModelMetadata&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -33026,178 +28954,151 @@ class GetFragmentResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetFragmentResponse& default_instance() { + static const UpdateMLModelMetadata& default_instance() { return *internal_default_instance(); } - static inline const GetFragmentResponse* internal_default_instance() { - return reinterpret_cast( - &_GetFragmentResponse_default_instance_); + static inline const UpdateMLModelMetadata* internal_default_instance() { + return reinterpret_cast( + &_UpdateMLModelMetadata_default_instance_); } static constexpr int kIndexInFileMessages = - 103; + 166; - friend void swap(GetFragmentResponse& a, GetFragmentResponse& b) { + friend void swap(UpdateMLModelMetadata& a, UpdateMLModelMetadata& b) { a.Swap(&b); } - inline void Swap(GetFragmentResponse* other) { + inline void Swap(UpdateMLModelMetadata* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetFragmentResponse* other) { + void UnsafeArenaSwap(UpdateMLModelMetadata* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetFragmentResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetFragmentResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetFragmentResponse& from) { - GetFragmentResponse::MergeImpl(*this, from); + UpdateMLModelMetadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const UpdateMLModelMetadata& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const UpdateMLModelMetadata& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetFragmentResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(UpdateMLModelMetadata* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.GetFragmentResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.UpdateMLModelMetadata"; } protected: - explicit GetFragmentResponse(::google::protobuf::Arena* arena); - GetFragmentResponse(::google::protobuf::Arena* arena, const GetFragmentResponse& from); + explicit UpdateMLModelMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kFragmentFieldNumber = 1, + kModelTypeFieldNumber = 1, + kModelFrameworkFieldNumber = 2, }; - // .viam.app.v1.Fragment fragment = 1 [json_name = "fragment"]; - bool has_fragment() const; - void clear_fragment() ; - const ::viam::app::v1::Fragment& fragment() const; - PROTOBUF_NODISCARD ::viam::app::v1::Fragment* release_fragment(); - ::viam::app::v1::Fragment* mutable_fragment(); - void set_allocated_fragment(::viam::app::v1::Fragment* value); - void unsafe_arena_set_allocated_fragment(::viam::app::v1::Fragment* value); - ::viam::app::v1::Fragment* unsafe_arena_release_fragment(); - + // .viam.app.mltraining.v1.ModelType model_type = 1 [json_name = "modelType"]; + void clear_model_type(); + ::viam::app::mltraining::v1::ModelType model_type() const; + void set_model_type(::viam::app::mltraining::v1::ModelType value); private: - const ::viam::app::v1::Fragment& _internal_fragment() const; - ::viam::app::v1::Fragment* _internal_mutable_fragment(); + ::viam::app::mltraining::v1::ModelType _internal_model_type() const; + void _internal_set_model_type(::viam::app::mltraining::v1::ModelType value); + public: + // .viam.app.mltraining.v1.ModelFramework model_framework = 2 [json_name = "modelFramework"]; + void clear_model_framework(); + ::viam::app::mltraining::v1::ModelFramework model_framework() const; + void set_model_framework(::viam::app::mltraining::v1::ModelFramework value); + private: + ::viam::app::mltraining::v1::ModelFramework _internal_model_framework() const; + void _internal_set_model_framework(::viam::app::mltraining::v1::ModelFramework value); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.GetFragmentResponse) + + // @@protoc_insertion_point(class_scope:viam.app.v1.UpdateMLModelMetadata) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::viam::app::v1::Fragment* fragment_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + int model_type_; + int model_framework_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class FragmentHistoryEntry final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.FragmentHistoryEntry) */ { +class UpdateMLTrainingMetadata final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.UpdateMLTrainingMetadata) */ { public: - inline FragmentHistoryEntry() : FragmentHistoryEntry(nullptr) {} - ~FragmentHistoryEntry() override; - template - explicit PROTOBUF_CONSTEXPR FragmentHistoryEntry(::google::protobuf::internal::ConstantInitialized); + inline UpdateMLTrainingMetadata() : UpdateMLTrainingMetadata(nullptr) {} + ~UpdateMLTrainingMetadata() override; + explicit PROTOBUF_CONSTEXPR UpdateMLTrainingMetadata(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline FragmentHistoryEntry(const FragmentHistoryEntry& from) - : FragmentHistoryEntry(nullptr, from) {} - FragmentHistoryEntry(FragmentHistoryEntry&& from) noexcept - : FragmentHistoryEntry() { + UpdateMLTrainingMetadata(const UpdateMLTrainingMetadata& from); + UpdateMLTrainingMetadata(UpdateMLTrainingMetadata&& from) noexcept + : UpdateMLTrainingMetadata() { *this = ::std::move(from); } - inline FragmentHistoryEntry& operator=(const FragmentHistoryEntry& from) { + inline UpdateMLTrainingMetadata& operator=(const UpdateMLTrainingMetadata& from) { CopyFrom(from); return *this; } - inline FragmentHistoryEntry& operator=(FragmentHistoryEntry&& from) noexcept { + inline UpdateMLTrainingMetadata& operator=(UpdateMLTrainingMetadata&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -33207,230 +29108,162 @@ class FragmentHistoryEntry final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const FragmentHistoryEntry& default_instance() { + static const UpdateMLTrainingMetadata& default_instance() { return *internal_default_instance(); } - static inline const FragmentHistoryEntry* internal_default_instance() { - return reinterpret_cast( - &_FragmentHistoryEntry_default_instance_); + static inline const UpdateMLTrainingMetadata* internal_default_instance() { + return reinterpret_cast( + &_UpdateMLTrainingMetadata_default_instance_); } static constexpr int kIndexInFileMessages = - 97; + 167; - friend void swap(FragmentHistoryEntry& a, FragmentHistoryEntry& b) { + friend void swap(UpdateMLTrainingMetadata& a, UpdateMLTrainingMetadata& b) { a.Swap(&b); } - inline void Swap(FragmentHistoryEntry* other) { + inline void Swap(UpdateMLTrainingMetadata* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(FragmentHistoryEntry* other) { + void UnsafeArenaSwap(UpdateMLTrainingMetadata* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - FragmentHistoryEntry* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const FragmentHistoryEntry& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const FragmentHistoryEntry& from) { - FragmentHistoryEntry::MergeImpl(*this, from); + UpdateMLTrainingMetadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const UpdateMLTrainingMetadata& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const UpdateMLTrainingMetadata& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(FragmentHistoryEntry* other); + void SetCachedSize(int size) const final; + void InternalSwap(UpdateMLTrainingMetadata* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.FragmentHistoryEntry"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.UpdateMLTrainingMetadata"; } protected: - explicit FragmentHistoryEntry(::google::protobuf::Arena* arena); - FragmentHistoryEntry(::google::protobuf::Arena* arena, const FragmentHistoryEntry& from); + explicit UpdateMLTrainingMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kFragmentFieldNumber = 1, - kEditedOnFieldNumber = 2, - kOldFieldNumber = 3, - kEditedByFieldNumber = 4, + kModelTypeFieldNumber = 1, + kModelFrameworkFieldNumber = 2, + kDraftFieldNumber = 3, }; - // string fragment = 1 [json_name = "fragment", (.tagger.v1.tags) = "bson:\"fragment\" json:\"fragment\""]; - void clear_fragment() ; - const std::string& fragment() const; - template - void set_fragment(Arg_&& arg, Args_... args); - std::string* mutable_fragment(); - PROTOBUF_NODISCARD std::string* release_fragment(); - void set_allocated_fragment(std::string* value); - + // .viam.app.mltraining.v1.ModelType model_type = 1 [json_name = "modelType"]; + void clear_model_type(); + ::viam::app::mltraining::v1::ModelType model_type() const; + void set_model_type(::viam::app::mltraining::v1::ModelType value); private: - const std::string& _internal_fragment() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_fragment( - const std::string& value); - std::string* _internal_mutable_fragment(); - + ::viam::app::mltraining::v1::ModelType _internal_model_type() const; + void _internal_set_model_type(::viam::app::mltraining::v1::ModelType value); public: - // .google.protobuf.Timestamp edited_on = 2 [json_name = "editedOn", (.tagger.v1.tags) = "bson:\"edited_on\" json:\"edited_on\""]; - bool has_edited_on() const; - void clear_edited_on() ; - const ::google::protobuf::Timestamp& edited_on() const; - PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_edited_on(); - ::google::protobuf::Timestamp* mutable_edited_on(); - void set_allocated_edited_on(::google::protobuf::Timestamp* value); - void unsafe_arena_set_allocated_edited_on(::google::protobuf::Timestamp* value); - ::google::protobuf::Timestamp* unsafe_arena_release_edited_on(); + // .viam.app.mltraining.v1.ModelFramework model_framework = 2 [json_name = "modelFramework"]; + void clear_model_framework(); + ::viam::app::mltraining::v1::ModelFramework model_framework() const; + void set_model_framework(::viam::app::mltraining::v1::ModelFramework value); private: - const ::google::protobuf::Timestamp& _internal_edited_on() const; - ::google::protobuf::Timestamp* _internal_mutable_edited_on(); - + ::viam::app::mltraining::v1::ModelFramework _internal_model_framework() const; + void _internal_set_model_framework(::viam::app::mltraining::v1::ModelFramework value); public: - // .viam.app.v1.Fragment old = 3 [json_name = "old", (.tagger.v1.tags) = "bson:\"old\" json:\"old\""]; - bool has_old() const; - void clear_old() ; - const ::viam::app::v1::Fragment& old() const; - PROTOBUF_NODISCARD ::viam::app::v1::Fragment* release_old(); - ::viam::app::v1::Fragment* mutable_old(); - void set_allocated_old(::viam::app::v1::Fragment* value); - void unsafe_arena_set_allocated_old(::viam::app::v1::Fragment* value); - ::viam::app::v1::Fragment* unsafe_arena_release_old(); + // bool draft = 3 [json_name = "draft"]; + void clear_draft(); + bool draft() const; + void set_draft(bool value); private: - const ::viam::app::v1::Fragment& _internal_old() const; - ::viam::app::v1::Fragment* _internal_mutable_old(); - + bool _internal_draft() const; + void _internal_set_draft(bool value); public: - // .viam.app.v1.AuthenticatorInfo edited_by = 4 [json_name = "editedBy", (.tagger.v1.tags) = "bson:\"edited_by\" json:\"edited_by\""]; - bool has_edited_by() const; - void clear_edited_by() ; - const ::viam::app::v1::AuthenticatorInfo& edited_by() const; - PROTOBUF_NODISCARD ::viam::app::v1::AuthenticatorInfo* release_edited_by(); - ::viam::app::v1::AuthenticatorInfo* mutable_edited_by(); - void set_allocated_edited_by(::viam::app::v1::AuthenticatorInfo* value); - void unsafe_arena_set_allocated_edited_by(::viam::app::v1::AuthenticatorInfo* value); - ::viam::app::v1::AuthenticatorInfo* unsafe_arena_release_edited_by(); - - private: - const ::viam::app::v1::AuthenticatorInfo& _internal_edited_by() const; - ::viam::app::v1::AuthenticatorInfo* _internal_mutable_edited_by(); - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.FragmentHistoryEntry) + // @@protoc_insertion_point(class_scope:viam.app.v1.UpdateMLTrainingMetadata) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 3, - 49, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr fragment_; - ::google::protobuf::Timestamp* edited_on_; - ::viam::app::v1::Fragment* old_; - ::viam::app::v1::AuthenticatorInfo* edited_by_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + int model_type_; + int model_framework_; + bool draft_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class CreateOrganizationResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.CreateOrganizationResponse) */ { +class Model final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.Model) */ { public: - inline CreateOrganizationResponse() : CreateOrganizationResponse(nullptr) {} - ~CreateOrganizationResponse() override; - template - explicit PROTOBUF_CONSTEXPR CreateOrganizationResponse(::google::protobuf::internal::ConstantInitialized); + inline Model() : Model(nullptr) {} + ~Model() override; + explicit PROTOBUF_CONSTEXPR Model(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline CreateOrganizationResponse(const CreateOrganizationResponse& from) - : CreateOrganizationResponse(nullptr, from) {} - CreateOrganizationResponse(CreateOrganizationResponse&& from) noexcept - : CreateOrganizationResponse() { + Model(const Model& from); + Model(Model&& from) noexcept + : Model() { *this = ::std::move(from); } - inline CreateOrganizationResponse& operator=(const CreateOrganizationResponse& from) { + inline Model& operator=(const Model& from) { CopyFrom(from); return *this; } - inline CreateOrganizationResponse& operator=(CreateOrganizationResponse&& from) noexcept { + inline Model& operator=(Model&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -33440,178 +29273,202 @@ class CreateOrganizationResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CreateOrganizationResponse& default_instance() { + static const Model& default_instance() { return *internal_default_instance(); } - static inline const CreateOrganizationResponse* internal_default_instance() { - return reinterpret_cast( - &_CreateOrganizationResponse_default_instance_); + static inline const Model* internal_default_instance() { + return reinterpret_cast( + &_Model_default_instance_); } static constexpr int kIndexInFileMessages = - 10; + 168; - friend void swap(CreateOrganizationResponse& a, CreateOrganizationResponse& b) { + friend void swap(Model& a, Model& b) { a.Swap(&b); } - inline void Swap(CreateOrganizationResponse* other) { + inline void Swap(Model* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CreateOrganizationResponse* other) { + void UnsafeArenaSwap(Model* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CreateOrganizationResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const CreateOrganizationResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CreateOrganizationResponse& from) { - CreateOrganizationResponse::MergeImpl(*this, from); + Model* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Model& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Model& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(CreateOrganizationResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(Model* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.CreateOrganizationResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.Model"; } protected: - explicit CreateOrganizationResponse(::google::protobuf::Arena* arena); - CreateOrganizationResponse(::google::protobuf::Arena* arena, const CreateOrganizationResponse& from); + explicit Model(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kOrganizationFieldNumber = 1, + kApiFieldNumber = 1, + kModelFieldNumber = 2, + kMarkdownDocumentationFieldNumber = 3, + kDescriptionFieldNumber = 4, }; - // .viam.app.v1.Organization organization = 1 [json_name = "organization"]; - bool has_organization() const; - void clear_organization() ; - const ::viam::app::v1::Organization& organization() const; - PROTOBUF_NODISCARD ::viam::app::v1::Organization* release_organization(); - ::viam::app::v1::Organization* mutable_organization(); - void set_allocated_organization(::viam::app::v1::Organization* value); - void unsafe_arena_set_allocated_organization(::viam::app::v1::Organization* value); - ::viam::app::v1::Organization* unsafe_arena_release_organization(); + // string api = 1 [json_name = "api"]; + void clear_api(); + const std::string& api() const; + template + void set_api(ArgT0&& arg0, ArgT... args); + std::string* mutable_api(); + PROTOBUF_NODISCARD std::string* release_api(); + void set_allocated_api(std::string* api); + private: + const std::string& _internal_api() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_api(const std::string& value); + std::string* _internal_mutable_api(); + public: + // string model = 2 [json_name = "model"]; + void clear_model(); + const std::string& model() const; + template + void set_model(ArgT0&& arg0, ArgT... args); + std::string* mutable_model(); + PROTOBUF_NODISCARD std::string* release_model(); + void set_allocated_model(std::string* model); private: - const ::viam::app::v1::Organization& _internal_organization() const; - ::viam::app::v1::Organization* _internal_mutable_organization(); + const std::string& _internal_model() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_model(const std::string& value); + std::string* _internal_mutable_model(); + public: + // optional string markdown_documentation = 3 [json_name = "markdownDocumentation"]; + bool has_markdown_documentation() const; + private: + bool _internal_has_markdown_documentation() const; public: - // @@protoc_insertion_point(class_scope:viam.app.v1.CreateOrganizationResponse) + void clear_markdown_documentation(); + const std::string& markdown_documentation() const; + template + void set_markdown_documentation(ArgT0&& arg0, ArgT... args); + std::string* mutable_markdown_documentation(); + PROTOBUF_NODISCARD std::string* release_markdown_documentation(); + void set_allocated_markdown_documentation(std::string* markdown_documentation); + private: + const std::string& _internal_markdown_documentation() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_markdown_documentation(const std::string& value); + std::string* _internal_mutable_markdown_documentation(); + public: + + // optional string description = 4 [json_name = "description"]; + bool has_description() const; + private: + bool _internal_has_description() const; + public: + void clear_description(); + const std::string& description() const; + template + void set_description(ArgT0&& arg0, ArgT... args); + std::string* mutable_description(); + PROTOBUF_NODISCARD std::string* release_description(); + void set_allocated_description(std::string* description); + private: + const std::string& _internal_description() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_description(const std::string& value); + std::string* _internal_mutable_description(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.Model) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::viam::app::v1::Organization* organization_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr api_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr model_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr markdown_documentation_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr description_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class CreateOrganizationInviteResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.CreateOrganizationInviteResponse) */ { +class ModuleFileInfo final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ModuleFileInfo) */ { public: - inline CreateOrganizationInviteResponse() : CreateOrganizationInviteResponse(nullptr) {} - ~CreateOrganizationInviteResponse() override; - template - explicit PROTOBUF_CONSTEXPR CreateOrganizationInviteResponse(::google::protobuf::internal::ConstantInitialized); + inline ModuleFileInfo() : ModuleFileInfo(nullptr) {} + ~ModuleFileInfo() override; + explicit PROTOBUF_CONSTEXPR ModuleFileInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline CreateOrganizationInviteResponse(const CreateOrganizationInviteResponse& from) - : CreateOrganizationInviteResponse(nullptr, from) {} - CreateOrganizationInviteResponse(CreateOrganizationInviteResponse&& from) noexcept - : CreateOrganizationInviteResponse() { + ModuleFileInfo(const ModuleFileInfo& from); + ModuleFileInfo(ModuleFileInfo&& from) noexcept + : ModuleFileInfo() { *this = ::std::move(from); } - inline CreateOrganizationInviteResponse& operator=(const CreateOrganizationInviteResponse& from) { + inline ModuleFileInfo& operator=(const ModuleFileInfo& from) { CopyFrom(from); return *this; } - inline CreateOrganizationInviteResponse& operator=(CreateOrganizationInviteResponse&& from) noexcept { + inline ModuleFileInfo& operator=(ModuleFileInfo&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -33621,178 +29478,203 @@ class CreateOrganizationInviteResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CreateOrganizationInviteResponse& default_instance() { + static const ModuleFileInfo& default_instance() { return *internal_default_instance(); } - static inline const CreateOrganizationInviteResponse* internal_default_instance() { - return reinterpret_cast( - &_CreateOrganizationInviteResponse_default_instance_); + static inline const ModuleFileInfo* internal_default_instance() { + return reinterpret_cast( + &_ModuleFileInfo_default_instance_); } static constexpr int kIndexInFileMessages = - 22; + 169; - friend void swap(CreateOrganizationInviteResponse& a, CreateOrganizationInviteResponse& b) { + friend void swap(ModuleFileInfo& a, ModuleFileInfo& b) { a.Swap(&b); } - inline void Swap(CreateOrganizationInviteResponse* other) { + inline void Swap(ModuleFileInfo* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CreateOrganizationInviteResponse* other) { + void UnsafeArenaSwap(ModuleFileInfo* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CreateOrganizationInviteResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const CreateOrganizationInviteResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CreateOrganizationInviteResponse& from) { - CreateOrganizationInviteResponse::MergeImpl(*this, from); + ModuleFileInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ModuleFileInfo& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ModuleFileInfo& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(CreateOrganizationInviteResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(ModuleFileInfo* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.CreateOrganizationInviteResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.ModuleFileInfo"; } protected: - explicit CreateOrganizationInviteResponse(::google::protobuf::Arena* arena); - CreateOrganizationInviteResponse(::google::protobuf::Arena* arena, const CreateOrganizationInviteResponse& from); + explicit ModuleFileInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kInviteFieldNumber = 1, - }; - // .viam.app.v1.OrganizationInvite invite = 1 [json_name = "invite"]; - bool has_invite() const; - void clear_invite() ; - const ::viam::app::v1::OrganizationInvite& invite() const; - PROTOBUF_NODISCARD ::viam::app::v1::OrganizationInvite* release_invite(); - ::viam::app::v1::OrganizationInvite* mutable_invite(); - void set_allocated_invite(::viam::app::v1::OrganizationInvite* value); - void unsafe_arena_set_allocated_invite(::viam::app::v1::OrganizationInvite* value); - ::viam::app::v1::OrganizationInvite* unsafe_arena_release_invite(); + kPlatformTagsFieldNumber = 5, + kModuleIdFieldNumber = 1, + kVersionFieldNumber = 2, + kPlatformFieldNumber = 3, + }; + // repeated string platform_tags = 5 [json_name = "platformTags"]; + int platform_tags_size() const; + private: + int _internal_platform_tags_size() const; + public: + void clear_platform_tags(); + const std::string& platform_tags(int index) const; + std::string* mutable_platform_tags(int index); + void set_platform_tags(int index, const std::string& value); + void set_platform_tags(int index, std::string&& value); + void set_platform_tags(int index, const char* value); + void set_platform_tags(int index, const char* value, size_t size); + std::string* add_platform_tags(); + void add_platform_tags(const std::string& value); + void add_platform_tags(std::string&& value); + void add_platform_tags(const char* value); + void add_platform_tags(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& platform_tags() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_platform_tags(); + private: + const std::string& _internal_platform_tags(int index) const; + std::string* _internal_add_platform_tags(); + public: + // string module_id = 1 [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 ::viam::app::v1::OrganizationInvite& _internal_invite() const; - ::viam::app::v1::OrganizationInvite* _internal_mutable_invite(); + 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: + // string version = 2 [json_name = "version"]; + void clear_version(); + const std::string& version() const; + template + void set_version(ArgT0&& arg0, ArgT... args); + std::string* mutable_version(); + PROTOBUF_NODISCARD std::string* release_version(); + void set_allocated_version(std::string* version); + private: + const std::string& _internal_version() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_version(const std::string& value); + std::string* _internal_mutable_version(); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.CreateOrganizationInviteResponse) + + // string platform = 3 [json_name = "platform"]; + void clear_platform(); + const std::string& platform() const; + template + void set_platform(ArgT0&& arg0, ArgT... args); + std::string* mutable_platform(); + PROTOBUF_NODISCARD std::string* release_platform(); + void set_allocated_platform(std::string* platform); + private: + const std::string& _internal_platform() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_platform(const std::string& value); + std::string* _internal_mutable_platform(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.ModuleFileInfo) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::viam::app::v1::OrganizationInvite* invite_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField platform_tags_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr module_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr version_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr platform_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class CreateFragmentResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.CreateFragmentResponse) */ { +class UploadModuleFileRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.UploadModuleFileRequest) */ { public: - inline CreateFragmentResponse() : CreateFragmentResponse(nullptr) {} - ~CreateFragmentResponse() override; - template - explicit PROTOBUF_CONSTEXPR CreateFragmentResponse(::google::protobuf::internal::ConstantInitialized); + inline UploadModuleFileRequest() : UploadModuleFileRequest(nullptr) {} + ~UploadModuleFileRequest() override; + explicit PROTOBUF_CONSTEXPR UploadModuleFileRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline CreateFragmentResponse(const CreateFragmentResponse& from) - : CreateFragmentResponse(nullptr, from) {} - CreateFragmentResponse(CreateFragmentResponse&& from) noexcept - : CreateFragmentResponse() { + UploadModuleFileRequest(const UploadModuleFileRequest& from); + UploadModuleFileRequest(UploadModuleFileRequest&& from) noexcept + : UploadModuleFileRequest() { *this = ::std::move(from); } - inline CreateFragmentResponse& operator=(const CreateFragmentResponse& from) { + inline UploadModuleFileRequest& operator=(const UploadModuleFileRequest& from) { CopyFrom(from); return *this; } - inline CreateFragmentResponse& operator=(CreateFragmentResponse&& from) noexcept { + inline UploadModuleFileRequest& operator=(UploadModuleFileRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -33802,178 +29684,188 @@ class CreateFragmentResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CreateFragmentResponse& default_instance() { + static const UploadModuleFileRequest& default_instance() { return *internal_default_instance(); } - static inline const CreateFragmentResponse* internal_default_instance() { - return reinterpret_cast( - &_CreateFragmentResponse_default_instance_); + enum ModuleFileCase { + kModuleFileInfo = 1, + kFile = 2, + MODULE_FILE_NOT_SET = 0, + }; + + static inline const UploadModuleFileRequest* internal_default_instance() { + return reinterpret_cast( + &_UploadModuleFileRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 105; + 170; - friend void swap(CreateFragmentResponse& a, CreateFragmentResponse& b) { + friend void swap(UploadModuleFileRequest& a, UploadModuleFileRequest& b) { a.Swap(&b); } - inline void Swap(CreateFragmentResponse* other) { + inline void Swap(UploadModuleFileRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CreateFragmentResponse* other) { + void UnsafeArenaSwap(UploadModuleFileRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CreateFragmentResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const CreateFragmentResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CreateFragmentResponse& from) { - CreateFragmentResponse::MergeImpl(*this, from); + UploadModuleFileRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const UploadModuleFileRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const UploadModuleFileRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(CreateFragmentResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(UploadModuleFileRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.CreateFragmentResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.UploadModuleFileRequest"; } protected: - explicit CreateFragmentResponse(::google::protobuf::Arena* arena); - CreateFragmentResponse(::google::protobuf::Arena* arena, const CreateFragmentResponse& from); + explicit UploadModuleFileRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kFragmentFieldNumber = 1, + kModuleFileInfoFieldNumber = 1, + kFileFieldNumber = 2, }; - // .viam.app.v1.Fragment fragment = 1 [json_name = "fragment"]; - bool has_fragment() const; - void clear_fragment() ; - const ::viam::app::v1::Fragment& fragment() const; - PROTOBUF_NODISCARD ::viam::app::v1::Fragment* release_fragment(); - ::viam::app::v1::Fragment* mutable_fragment(); - void set_allocated_fragment(::viam::app::v1::Fragment* value); - void unsafe_arena_set_allocated_fragment(::viam::app::v1::Fragment* value); - ::viam::app::v1::Fragment* unsafe_arena_release_fragment(); - + // .viam.app.v1.ModuleFileInfo module_file_info = 1 [json_name = "moduleFileInfo"]; + bool has_module_file_info() const; private: - const ::viam::app::v1::Fragment& _internal_fragment() const; - ::viam::app::v1::Fragment* _internal_mutable_fragment(); + bool _internal_has_module_file_info() const; + public: + void clear_module_file_info(); + const ::viam::app::v1::ModuleFileInfo& module_file_info() const; + PROTOBUF_NODISCARD ::viam::app::v1::ModuleFileInfo* release_module_file_info(); + ::viam::app::v1::ModuleFileInfo* mutable_module_file_info(); + void set_allocated_module_file_info(::viam::app::v1::ModuleFileInfo* module_file_info); + private: + const ::viam::app::v1::ModuleFileInfo& _internal_module_file_info() const; + ::viam::app::v1::ModuleFileInfo* _internal_mutable_module_file_info(); + public: + void unsafe_arena_set_allocated_module_file_info( + ::viam::app::v1::ModuleFileInfo* module_file_info); + ::viam::app::v1::ModuleFileInfo* unsafe_arena_release_module_file_info(); + // bytes file = 2 [json_name = "file"]; + bool has_file() const; + private: + bool _internal_has_file() const; public: - // @@protoc_insertion_point(class_scope:viam.app.v1.CreateFragmentResponse) + void clear_file(); + const std::string& file() const; + template + void set_file(ArgT0&& arg0, ArgT... args); + std::string* mutable_file(); + PROTOBUF_NODISCARD std::string* release_file(); + void set_allocated_file(std::string* file); + private: + const std::string& _internal_file() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_file(const std::string& value); + std::string* _internal_mutable_file(); + public: + + void clear_module_file(); + ModuleFileCase module_file_case() const; + // @@protoc_insertion_point(class_scope:viam.app.v1.UploadModuleFileRequest) private: class _Internal; + void set_has_module_file_info(); + void set_has_file(); + + inline bool has_module_file() const; + inline void clear_has_module_file(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + union ModuleFileUnion { + constexpr ModuleFileUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::viam::app::v1::ModuleFileInfo* module_file_info_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr file_; + } module_file_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::viam::app::v1::Fragment* fragment_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class APIKeyWithAuthorizations final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.APIKeyWithAuthorizations) */ { +class UploadModuleFileResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.UploadModuleFileResponse) */ { public: - inline APIKeyWithAuthorizations() : APIKeyWithAuthorizations(nullptr) {} - ~APIKeyWithAuthorizations() override; - template - explicit PROTOBUF_CONSTEXPR APIKeyWithAuthorizations(::google::protobuf::internal::ConstantInitialized); + inline UploadModuleFileResponse() : UploadModuleFileResponse(nullptr) {} + ~UploadModuleFileResponse() override; + explicit PROTOBUF_CONSTEXPR UploadModuleFileResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline APIKeyWithAuthorizations(const APIKeyWithAuthorizations& from) - : APIKeyWithAuthorizations(nullptr, from) {} - APIKeyWithAuthorizations(APIKeyWithAuthorizations&& from) noexcept - : APIKeyWithAuthorizations() { + UploadModuleFileResponse(const UploadModuleFileResponse& from); + UploadModuleFileResponse(UploadModuleFileResponse&& from) noexcept + : UploadModuleFileResponse() { *this = ::std::move(from); } - inline APIKeyWithAuthorizations& operator=(const APIKeyWithAuthorizations& from) { + inline UploadModuleFileResponse& operator=(const UploadModuleFileResponse& from) { CopyFrom(from); return *this; } - inline APIKeyWithAuthorizations& operator=(APIKeyWithAuthorizations&& from) noexcept { + inline UploadModuleFileResponse& operator=(UploadModuleFileResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -33983,198 +29875,145 @@ class APIKeyWithAuthorizations final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const APIKeyWithAuthorizations& default_instance() { + static const UploadModuleFileResponse& default_instance() { return *internal_default_instance(); } - static inline const APIKeyWithAuthorizations* internal_default_instance() { - return reinterpret_cast( - &_APIKeyWithAuthorizations_default_instance_); + static inline const UploadModuleFileResponse* internal_default_instance() { + return reinterpret_cast( + &_UploadModuleFileResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 187; + 171; - friend void swap(APIKeyWithAuthorizations& a, APIKeyWithAuthorizations& b) { + friend void swap(UploadModuleFileResponse& a, UploadModuleFileResponse& b) { a.Swap(&b); } - inline void Swap(APIKeyWithAuthorizations* other) { + inline void Swap(UploadModuleFileResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(APIKeyWithAuthorizations* other) { + void UnsafeArenaSwap(UploadModuleFileResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - APIKeyWithAuthorizations* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const APIKeyWithAuthorizations& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const APIKeyWithAuthorizations& from) { - APIKeyWithAuthorizations::MergeImpl(*this, from); + UploadModuleFileResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const UploadModuleFileResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const UploadModuleFileResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(APIKeyWithAuthorizations* other); + void SetCachedSize(int size) const final; + void InternalSwap(UploadModuleFileResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.APIKeyWithAuthorizations"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.UploadModuleFileResponse"; } protected: - explicit APIKeyWithAuthorizations(::google::protobuf::Arena* arena); - APIKeyWithAuthorizations(::google::protobuf::Arena* arena, const APIKeyWithAuthorizations& from); + explicit UploadModuleFileResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kAuthorizationsFieldNumber = 2, - kApiKeyFieldNumber = 1, + kUrlFieldNumber = 1, }; - // repeated .viam.app.v1.AuthorizationDetails authorizations = 2 [json_name = "authorizations"]; - int authorizations_size() const; - private: - int _internal_authorizations_size() const; - - public: - void clear_authorizations() ; - ::viam::app::v1::AuthorizationDetails* mutable_authorizations(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::AuthorizationDetails >* - mutable_authorizations(); + // string url = 1 [json_name = "url"]; + void clear_url(); + const std::string& url() const; + template + void set_url(ArgT0&& arg0, ArgT... args); + std::string* mutable_url(); + PROTOBUF_NODISCARD std::string* release_url(); + void set_allocated_url(std::string* url); private: - const ::google::protobuf::RepeatedPtrField<::viam::app::v1::AuthorizationDetails>& _internal_authorizations() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::AuthorizationDetails>* _internal_mutable_authorizations(); + const std::string& _internal_url() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_url(const std::string& value); + std::string* _internal_mutable_url(); public: - const ::viam::app::v1::AuthorizationDetails& authorizations(int index) const; - ::viam::app::v1::AuthorizationDetails* add_authorizations(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::AuthorizationDetails >& - authorizations() const; - // .viam.app.v1.APIKey api_key = 1 [json_name = "apiKey"]; - bool has_api_key() const; - void clear_api_key() ; - const ::viam::app::v1::APIKey& api_key() const; - PROTOBUF_NODISCARD ::viam::app::v1::APIKey* release_api_key(); - ::viam::app::v1::APIKey* mutable_api_key(); - void set_allocated_api_key(::viam::app::v1::APIKey* value); - void unsafe_arena_set_allocated_api_key(::viam::app::v1::APIKey* value); - ::viam::app::v1::APIKey* unsafe_arena_release_api_key(); - - private: - const ::viam::app::v1::APIKey& _internal_api_key() const; - ::viam::app::v1::APIKey* _internal_mutable_api_key(); - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.APIKeyWithAuthorizations) + // @@protoc_insertion_point(class_scope:viam.app.v1.UploadModuleFileResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 2, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::AuthorizationDetails > authorizations_; - ::viam::app::v1::APIKey* api_key_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr url_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class UpdateRobotPartResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.UpdateRobotPartResponse) */ { +class GetModuleRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetModuleRequest) */ { public: - inline UpdateRobotPartResponse() : UpdateRobotPartResponse(nullptr) {} - ~UpdateRobotPartResponse() override; - template - explicit PROTOBUF_CONSTEXPR UpdateRobotPartResponse(::google::protobuf::internal::ConstantInitialized); + inline GetModuleRequest() : GetModuleRequest(nullptr) {} + ~GetModuleRequest() override; + explicit PROTOBUF_CONSTEXPR GetModuleRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline UpdateRobotPartResponse(const UpdateRobotPartResponse& from) - : UpdateRobotPartResponse(nullptr, from) {} - UpdateRobotPartResponse(UpdateRobotPartResponse&& from) noexcept - : UpdateRobotPartResponse() { + GetModuleRequest(const GetModuleRequest& from); + GetModuleRequest(GetModuleRequest&& from) noexcept + : GetModuleRequest() { *this = ::std::move(from); } - inline UpdateRobotPartResponse& operator=(const UpdateRobotPartResponse& from) { + inline GetModuleRequest& operator=(const GetModuleRequest& from) { CopyFrom(from); return *this; } - inline UpdateRobotPartResponse& operator=(UpdateRobotPartResponse&& from) noexcept { + inline GetModuleRequest& operator=(GetModuleRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -34184,178 +30023,161 @@ class UpdateRobotPartResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const UpdateRobotPartResponse& default_instance() { + static const GetModuleRequest& default_instance() { return *internal_default_instance(); } - static inline const UpdateRobotPartResponse* internal_default_instance() { - return reinterpret_cast( - &_UpdateRobotPartResponse_default_instance_); + static inline const GetModuleRequest* internal_default_instance() { + return reinterpret_cast( + &_GetModuleRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 88; + 172; - friend void swap(UpdateRobotPartResponse& a, UpdateRobotPartResponse& b) { + friend void swap(GetModuleRequest& a, GetModuleRequest& b) { a.Swap(&b); } - inline void Swap(UpdateRobotPartResponse* other) { + inline void Swap(GetModuleRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(UpdateRobotPartResponse* other) { + void UnsafeArenaSwap(GetModuleRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - UpdateRobotPartResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const UpdateRobotPartResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const UpdateRobotPartResponse& from) { - UpdateRobotPartResponse::MergeImpl(*this, from); + GetModuleRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetModuleRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetModuleRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(UpdateRobotPartResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetModuleRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.UpdateRobotPartResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.GetModuleRequest"; } protected: - explicit UpdateRobotPartResponse(::google::protobuf::Arena* arena); - UpdateRobotPartResponse(::google::protobuf::Arena* arena, const UpdateRobotPartResponse& from); + explicit GetModuleRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kPartFieldNumber = 1, + kModuleIdFieldNumber = 1, + kIncludeMarkdownDocumentationFieldNumber = 2, }; - // .viam.app.v1.RobotPart part = 1 [json_name = "part"]; - bool has_part() const; - void clear_part() ; - const ::viam::app::v1::RobotPart& part() const; - PROTOBUF_NODISCARD ::viam::app::v1::RobotPart* release_part(); - ::viam::app::v1::RobotPart* mutable_part(); - void set_allocated_part(::viam::app::v1::RobotPart* value); - void unsafe_arena_set_allocated_part(::viam::app::v1::RobotPart* value); - ::viam::app::v1::RobotPart* unsafe_arena_release_part(); - + // string module_id = 1 [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 ::viam::app::v1::RobotPart& _internal_part() const; - ::viam::app::v1::RobotPart* _internal_mutable_part(); + 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: + // optional bool include_markdown_documentation = 2 [json_name = "includeMarkdownDocumentation"]; + bool has_include_markdown_documentation() const; + private: + bool _internal_has_include_markdown_documentation() const; public: - // @@protoc_insertion_point(class_scope:viam.app.v1.UpdateRobotPartResponse) + void clear_include_markdown_documentation(); + bool include_markdown_documentation() const; + void set_include_markdown_documentation(bool value); + private: + bool _internal_include_markdown_documentation() const; + void _internal_set_include_markdown_documentation(bool value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.GetModuleRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::viam::app::v1::RobotPart* part_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr module_id_; + bool include_markdown_documentation_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class RobotPartHistoryEntry final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.RobotPartHistoryEntry) */ { +class GetModuleResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetModuleResponse) */ { public: - inline RobotPartHistoryEntry() : RobotPartHistoryEntry(nullptr) {} - ~RobotPartHistoryEntry() override; - template - explicit PROTOBUF_CONSTEXPR RobotPartHistoryEntry(::google::protobuf::internal::ConstantInitialized); + inline GetModuleResponse() : GetModuleResponse(nullptr) {} + ~GetModuleResponse() override; + explicit PROTOBUF_CONSTEXPR GetModuleResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline RobotPartHistoryEntry(const RobotPartHistoryEntry& from) - : RobotPartHistoryEntry(nullptr, from) {} - RobotPartHistoryEntry(RobotPartHistoryEntry&& from) noexcept - : RobotPartHistoryEntry() { + GetModuleResponse(const GetModuleResponse& from); + GetModuleResponse(GetModuleResponse&& from) noexcept + : GetModuleResponse() { *this = ::std::move(from); } - inline RobotPartHistoryEntry& operator=(const RobotPartHistoryEntry& from) { + inline GetModuleResponse& operator=(const GetModuleResponse& from) { CopyFrom(from); return *this; } - inline RobotPartHistoryEntry& operator=(RobotPartHistoryEntry&& from) noexcept { + inline GetModuleResponse& operator=(GetModuleResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -34365,248 +30187,149 @@ class RobotPartHistoryEntry final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const RobotPartHistoryEntry& default_instance() { + static const GetModuleResponse& default_instance() { return *internal_default_instance(); } - static inline const RobotPartHistoryEntry* internal_default_instance() { - return reinterpret_cast( - &_RobotPartHistoryEntry_default_instance_); + static inline const GetModuleResponse* internal_default_instance() { + return reinterpret_cast( + &_GetModuleResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 2; + 173; - friend void swap(RobotPartHistoryEntry& a, RobotPartHistoryEntry& b) { + friend void swap(GetModuleResponse& a, GetModuleResponse& b) { a.Swap(&b); } - inline void Swap(RobotPartHistoryEntry* other) { + inline void Swap(GetModuleResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RobotPartHistoryEntry* other) { + void UnsafeArenaSwap(GetModuleResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - RobotPartHistoryEntry* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const RobotPartHistoryEntry& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const RobotPartHistoryEntry& from) { - RobotPartHistoryEntry::MergeImpl(*this, from); + GetModuleResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetModuleResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetModuleResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(RobotPartHistoryEntry* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetModuleResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.RobotPartHistoryEntry"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.GetModuleResponse"; } protected: - explicit RobotPartHistoryEntry(::google::protobuf::Arena* arena); - RobotPartHistoryEntry(::google::protobuf::Arena* arena, const RobotPartHistoryEntry& from); + explicit GetModuleResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kPartFieldNumber = 1, - kRobotFieldNumber = 2, - kWhenFieldNumber = 3, - kOldFieldNumber = 4, - kEditedByFieldNumber = 5, + kModuleFieldNumber = 1, }; - // string part = 1 [json_name = "part", (.tagger.v1.tags) = "bson:\"part\" json:\"part\""]; - void clear_part() ; - const std::string& part() const; - template - void set_part(Arg_&& arg, Args_... args); - std::string* mutable_part(); - PROTOBUF_NODISCARD std::string* release_part(); - void set_allocated_part(std::string* value); - - private: - const std::string& _internal_part() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_part( - const std::string& value); - std::string* _internal_mutable_part(); - - public: - // string robot = 2 [json_name = "robot", (.tagger.v1.tags) = "bson:\"robot\" json:\"robot\""]; - void clear_robot() ; - const std::string& robot() const; - template - void set_robot(Arg_&& arg, Args_... args); - std::string* mutable_robot(); - PROTOBUF_NODISCARD std::string* release_robot(); - void set_allocated_robot(std::string* value); - - private: - const std::string& _internal_robot() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_robot( - const std::string& value); - std::string* _internal_mutable_robot(); - - public: - // .google.protobuf.Timestamp when = 3 [json_name = "when", (.tagger.v1.tags) = "bson:\"when\" json:\"when\""]; - bool has_when() const; - void clear_when() ; - const ::google::protobuf::Timestamp& when() const; - PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_when(); - ::google::protobuf::Timestamp* mutable_when(); - void set_allocated_when(::google::protobuf::Timestamp* value); - void unsafe_arena_set_allocated_when(::google::protobuf::Timestamp* value); - ::google::protobuf::Timestamp* unsafe_arena_release_when(); - + // .viam.app.v1.Module module = 1 [json_name = "module"]; + bool has_module() const; private: - const ::google::protobuf::Timestamp& _internal_when() const; - ::google::protobuf::Timestamp* _internal_mutable_when(); - + bool _internal_has_module() const; public: - // .viam.app.v1.RobotPart old = 4 [json_name = "old", (.tagger.v1.tags) = "bson:\"old\" json:\"old\""]; - bool has_old() const; - void clear_old() ; - const ::viam::app::v1::RobotPart& old() const; - PROTOBUF_NODISCARD ::viam::app::v1::RobotPart* release_old(); - ::viam::app::v1::RobotPart* mutable_old(); - void set_allocated_old(::viam::app::v1::RobotPart* value); - void unsafe_arena_set_allocated_old(::viam::app::v1::RobotPart* value); - ::viam::app::v1::RobotPart* unsafe_arena_release_old(); - + void clear_module(); + const ::viam::app::v1::Module& module() const; + PROTOBUF_NODISCARD ::viam::app::v1::Module* release_module(); + ::viam::app::v1::Module* mutable_module(); + void set_allocated_module(::viam::app::v1::Module* module); private: - const ::viam::app::v1::RobotPart& _internal_old() const; - ::viam::app::v1::RobotPart* _internal_mutable_old(); - + const ::viam::app::v1::Module& _internal_module() const; + ::viam::app::v1::Module* _internal_mutable_module(); public: - // .viam.app.v1.AuthenticatorInfo edited_by = 5 [json_name = "editedBy", (.tagger.v1.tags) = "bson:\"edited_by\" json:\"edited_by\""]; - bool has_edited_by() const; - void clear_edited_by() ; - const ::viam::app::v1::AuthenticatorInfo& edited_by() const; - PROTOBUF_NODISCARD ::viam::app::v1::AuthenticatorInfo* release_edited_by(); - ::viam::app::v1::AuthenticatorInfo* mutable_edited_by(); - void set_allocated_edited_by(::viam::app::v1::AuthenticatorInfo* value); - void unsafe_arena_set_allocated_edited_by(::viam::app::v1::AuthenticatorInfo* value); - ::viam::app::v1::AuthenticatorInfo* unsafe_arena_release_edited_by(); - - private: - const ::viam::app::v1::AuthenticatorInfo& _internal_edited_by() const; - ::viam::app::v1::AuthenticatorInfo* _internal_mutable_edited_by(); + void unsafe_arena_set_allocated_module( + ::viam::app::v1::Module* module); + ::viam::app::v1::Module* unsafe_arena_release_module(); - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.RobotPartHistoryEntry) + // @@protoc_insertion_point(class_scope:viam.app.v1.GetModuleResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 5, 3, - 51, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr part_; - ::google::protobuf::internal::ArenaStringPtr robot_; - ::google::protobuf::Timestamp* when_; - ::viam::app::v1::RobotPart* old_; - ::viam::app::v1::AuthenticatorInfo* edited_by_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::viam::app::v1::Module* module_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ModuleMetadata final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ModuleMetadata) */ { +class Module final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.Module) */ { public: - inline ModuleMetadata() : ModuleMetadata(nullptr) {} - ~ModuleMetadata() override; - template - explicit PROTOBUF_CONSTEXPR ModuleMetadata(::google::protobuf::internal::ConstantInitialized); + inline Module() : Module(nullptr) {} + ~Module() override; + explicit PROTOBUF_CONSTEXPR Module(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ModuleMetadata(const ModuleMetadata& from) - : ModuleMetadata(nullptr, from) {} - ModuleMetadata(ModuleMetadata&& from) noexcept - : ModuleMetadata() { + Module(const Module& from); + Module(Module&& from) noexcept + : Module() { *this = ::std::move(from); } - inline ModuleMetadata& operator=(const ModuleMetadata& from) { + inline Module& operator=(const Module& from) { CopyFrom(from); return *this; } - inline ModuleMetadata& operator=(ModuleMetadata&& from) noexcept { + inline Module& operator=(Module&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -34616,238 +30339,335 @@ class ModuleMetadata final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ModuleMetadata& default_instance() { + static const Module& default_instance() { return *internal_default_instance(); } - static inline const ModuleMetadata* internal_default_instance() { - return reinterpret_cast( - &_ModuleMetadata_default_instance_); + static inline const Module* internal_default_instance() { + return reinterpret_cast( + &_Module_default_instance_); } static constexpr int kIndexInFileMessages = - 143; + 174; - friend void swap(ModuleMetadata& a, ModuleMetadata& b) { + friend void swap(Module& a, Module& b) { a.Swap(&b); } - inline void Swap(ModuleMetadata* other) { + inline void Swap(Module* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ModuleMetadata* other) { + void UnsafeArenaSwap(Module* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ModuleMetadata* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ModuleMetadata& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ModuleMetadata& from) { - ModuleMetadata::MergeImpl(*this, from); + Module* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Module& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Module& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ModuleMetadata* other); + void SetCachedSize(int size) const final; + void InternalSwap(Module* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.ModuleMetadata"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.Module"; } protected: - explicit ModuleMetadata(::google::protobuf::Arena* arena); - ModuleMetadata(::google::protobuf::Arena* arena, const ModuleMetadata& from); + explicit Module(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kModelsFieldNumber = 1, - kVersionsFieldNumber = 2, - kEntrypointFieldNumber = 3, - kFirstRunFieldNumber = 4, + kVersionsFieldNumber = 4, + kModelsFieldNumber = 7, + kModuleIdFieldNumber = 1, + kNameFieldNumber = 2, + kUrlFieldNumber = 5, + kDescriptionFieldNumber = 6, + kOrganizationIdFieldNumber = 10, + kEntrypointFieldNumber = 11, + kPublicNamespaceFieldNumber = 12, + kFirstRunFieldNumber = 13, + kTotalRobotUsageFieldNumber = 8, + kTotalOrganizationUsageFieldNumber = 9, + kVisibilityFieldNumber = 3, }; - // repeated .viam.app.v1.Model models = 1 [json_name = "models"]; + // repeated .viam.app.v1.VersionHistory versions = 4 [json_name = "versions"]; + int versions_size() const; + private: + int _internal_versions_size() const; + public: + void clear_versions(); + ::viam::app::v1::VersionHistory* mutable_versions(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::VersionHistory >* + mutable_versions(); + private: + const ::viam::app::v1::VersionHistory& _internal_versions(int index) const; + ::viam::app::v1::VersionHistory* _internal_add_versions(); + public: + const ::viam::app::v1::VersionHistory& versions(int index) const; + ::viam::app::v1::VersionHistory* add_versions(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::VersionHistory >& + versions() const; + + // repeated .viam.app.v1.Model models = 7 [json_name = "models"]; int models_size() const; private: int _internal_models_size() const; - public: - void clear_models() ; + void clear_models(); ::viam::app::v1::Model* mutable_models(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Model >* + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Model >* mutable_models(); private: - const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Model>& _internal_models() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::Model>* _internal_mutable_models(); + const ::viam::app::v1::Model& _internal_models(int index) const; + ::viam::app::v1::Model* _internal_add_models(); public: const ::viam::app::v1::Model& models(int index) const; ::viam::app::v1::Model* add_models(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Model >& + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Model >& models() const; - // repeated .viam.app.v1.ModuleVersion versions = 2 [json_name = "versions"]; - int versions_size() const; - private: - int _internal_versions_size() const; - public: - void clear_versions() ; - ::viam::app::v1::ModuleVersion* mutable_versions(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::ModuleVersion >* - mutable_versions(); + // string module_id = 1 [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 ::google::protobuf::RepeatedPtrField<::viam::app::v1::ModuleVersion>& _internal_versions() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::ModuleVersion>* _internal_mutable_versions(); + 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: - const ::viam::app::v1::ModuleVersion& versions(int index) const; - ::viam::app::v1::ModuleVersion* add_versions(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::ModuleVersion >& - versions() const; - // string entrypoint = 3 [json_name = "entrypoint"]; - void clear_entrypoint() ; - const std::string& entrypoint() const; - template - void set_entrypoint(Arg_&& arg, Args_... args); - std::string* mutable_entrypoint(); - PROTOBUF_NODISCARD std::string* release_entrypoint(); - void set_allocated_entrypoint(std::string* value); + // string name = 2 [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_entrypoint() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_entrypoint( - const std::string& value); - std::string* _internal_mutable_entrypoint(); - + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); public: - // optional string first_run = 4 [json_name = "firstRun"]; - bool has_first_run() const; - void clear_first_run() ; + + // string url = 5 [json_name = "url"]; + void clear_url(); + const std::string& url() const; + template + void set_url(ArgT0&& arg0, ArgT... args); + std::string* mutable_url(); + PROTOBUF_NODISCARD std::string* release_url(); + void set_allocated_url(std::string* url); + private: + const std::string& _internal_url() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_url(const std::string& value); + std::string* _internal_mutable_url(); + public: + + // string description = 6 [json_name = "description"]; + void clear_description(); + const std::string& description() const; + template + void set_description(ArgT0&& arg0, ArgT... args); + std::string* mutable_description(); + PROTOBUF_NODISCARD std::string* release_description(); + void set_allocated_description(std::string* description); + private: + const std::string& _internal_description() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_description(const std::string& value); + std::string* _internal_mutable_description(); + public: + + // string organization_id = 10 [json_name = "organizationId"]; + void clear_organization_id(); + const std::string& organization_id() const; + template + void set_organization_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_organization_id(); + PROTOBUF_NODISCARD std::string* release_organization_id(); + void set_allocated_organization_id(std::string* organization_id); + private: + const std::string& _internal_organization_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id(const std::string& value); + std::string* _internal_mutable_organization_id(); + public: + + // string entrypoint = 11 [json_name = "entrypoint"]; + void clear_entrypoint(); + const std::string& entrypoint() const; + template + void set_entrypoint(ArgT0&& arg0, ArgT... args); + std::string* mutable_entrypoint(); + PROTOBUF_NODISCARD std::string* release_entrypoint(); + void set_allocated_entrypoint(std::string* entrypoint); + private: + const std::string& _internal_entrypoint() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_entrypoint(const std::string& value); + std::string* _internal_mutable_entrypoint(); + public: + + // string public_namespace = 12 [json_name = "publicNamespace"]; + void clear_public_namespace(); + const std::string& public_namespace() const; + template + void set_public_namespace(ArgT0&& arg0, ArgT... args); + std::string* mutable_public_namespace(); + PROTOBUF_NODISCARD std::string* release_public_namespace(); + void set_allocated_public_namespace(std::string* public_namespace); + private: + const std::string& _internal_public_namespace() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_public_namespace(const std::string& value); + std::string* _internal_mutable_public_namespace(); + public: + + // optional string first_run = 13 [json_name = "firstRun"]; + bool has_first_run() const; + private: + bool _internal_has_first_run() const; + public: + void clear_first_run(); const std::string& first_run() const; - template - void set_first_run(Arg_&& arg, Args_... args); + template + void set_first_run(ArgT0&& arg0, ArgT... args); std::string* mutable_first_run(); PROTOBUF_NODISCARD std::string* release_first_run(); - void set_allocated_first_run(std::string* value); - + void set_allocated_first_run(std::string* first_run); private: const std::string& _internal_first_run() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_first_run( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_first_run(const std::string& value); std::string* _internal_mutable_first_run(); + public: + // int64 total_robot_usage = 8 [json_name = "totalRobotUsage"]; + void clear_total_robot_usage(); + int64_t total_robot_usage() const; + void set_total_robot_usage(int64_t value); + private: + int64_t _internal_total_robot_usage() const; + void _internal_set_total_robot_usage(int64_t value); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.ModuleMetadata) + + // int64 total_organization_usage = 9 [json_name = "totalOrganizationUsage"]; + void clear_total_organization_usage(); + int64_t total_organization_usage() const; + void set_total_organization_usage(int64_t value); + private: + int64_t _internal_total_organization_usage() const; + void _internal_set_total_organization_usage(int64_t value); + public: + + // .viam.app.v1.Visibility visibility = 3 [json_name = "visibility"]; + void clear_visibility(); + ::viam::app::v1::Visibility visibility() const; + void set_visibility(::viam::app::v1::Visibility value); + private: + ::viam::app::v1::Visibility _internal_visibility() const; + void _internal_set_visibility(::viam::app::v1::Visibility value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.Module) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 2, - 54, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Model > models_; - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::ModuleVersion > versions_; - ::google::protobuf::internal::ArenaStringPtr entrypoint_; - ::google::protobuf::internal::ArenaStringPtr first_run_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::VersionHistory > versions_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Model > models_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr module_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr url_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr description_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr organization_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr entrypoint_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr public_namespace_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr first_run_; + int64_t total_robot_usage_; + int64_t total_organization_usage_; + int visibility_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Module final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.Module) */ { +class VersionHistory final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.VersionHistory) */ { public: - inline Module() : Module(nullptr) {} - ~Module() override; - template - explicit PROTOBUF_CONSTEXPR Module(::google::protobuf::internal::ConstantInitialized); + inline VersionHistory() : VersionHistory(nullptr) {} + ~VersionHistory() override; + explicit PROTOBUF_CONSTEXPR VersionHistory(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Module(const Module& from) - : Module(nullptr, from) {} - Module(Module&& from) noexcept - : Module() { + VersionHistory(const VersionHistory& from); + VersionHistory(VersionHistory&& from) noexcept + : VersionHistory() { *this = ::std::move(from); } - inline Module& operator=(const Module& from) { + inline VersionHistory& operator=(const VersionHistory& from) { CopyFrom(from); return *this; } - inline Module& operator=(Module&& from) noexcept { + inline VersionHistory& operator=(VersionHistory&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -34857,382 +30677,222 @@ class Module final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Module& default_instance() { + static const VersionHistory& default_instance() { return *internal_default_instance(); } - static inline const Module* internal_default_instance() { - return reinterpret_cast( - &_Module_default_instance_); + static inline const VersionHistory* internal_default_instance() { + return reinterpret_cast( + &_VersionHistory_default_instance_); } static constexpr int kIndexInFileMessages = - 170; + 175; - friend void swap(Module& a, Module& b) { + friend void swap(VersionHistory& a, VersionHistory& b) { a.Swap(&b); } - inline void Swap(Module* other) { + inline void Swap(VersionHistory* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Module* other) { + void UnsafeArenaSwap(VersionHistory* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Module* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Module& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Module& from) { - Module::MergeImpl(*this, from); + VersionHistory* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const VersionHistory& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const VersionHistory& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Module* other); + void SetCachedSize(int size) const final; + void InternalSwap(VersionHistory* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.Module"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.VersionHistory"; } protected: - explicit Module(::google::protobuf::Arena* arena); - Module(::google::protobuf::Arena* arena, const Module& from); + explicit VersionHistory(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kVersionsFieldNumber = 4, - kModelsFieldNumber = 7, - kModuleIdFieldNumber = 1, - kNameFieldNumber = 2, - kUrlFieldNumber = 5, - kDescriptionFieldNumber = 6, - kOrganizationIdFieldNumber = 10, - kEntrypointFieldNumber = 11, - kPublicNamespaceFieldNumber = 12, - kFirstRunFieldNumber = 13, - kTotalRobotUsageFieldNumber = 8, - kTotalOrganizationUsageFieldNumber = 9, - kVisibilityFieldNumber = 3, + kFilesFieldNumber = 2, + kModelsFieldNumber = 3, + kVersionFieldNumber = 1, + kEntrypointFieldNumber = 4, + kFirstRunFieldNumber = 5, }; - // repeated .viam.app.v1.VersionHistory versions = 4 [json_name = "versions"]; - int versions_size() const; + // repeated .viam.app.v1.Uploads files = 2 [json_name = "files"]; + int files_size() const; private: - int _internal_versions_size() const; - + int _internal_files_size() const; public: - void clear_versions() ; - ::viam::app::v1::VersionHistory* mutable_versions(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::VersionHistory >* - mutable_versions(); + void clear_files(); + ::viam::app::v1::Uploads* mutable_files(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Uploads >* + mutable_files(); private: - const ::google::protobuf::RepeatedPtrField<::viam::app::v1::VersionHistory>& _internal_versions() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::VersionHistory>* _internal_mutable_versions(); + const ::viam::app::v1::Uploads& _internal_files(int index) const; + ::viam::app::v1::Uploads* _internal_add_files(); public: - const ::viam::app::v1::VersionHistory& versions(int index) const; - ::viam::app::v1::VersionHistory* add_versions(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::VersionHistory >& - versions() const; - // repeated .viam.app.v1.Model models = 7 [json_name = "models"]; + const ::viam::app::v1::Uploads& files(int index) const; + ::viam::app::v1::Uploads* add_files(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Uploads >& + files() const; + + // repeated .viam.app.v1.Model models = 3 [json_name = "models"]; int models_size() const; private: int _internal_models_size() const; - public: - void clear_models() ; + void clear_models(); ::viam::app::v1::Model* mutable_models(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Model >* + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Model >* mutable_models(); private: - const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Model>& _internal_models() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::Model>* _internal_mutable_models(); + const ::viam::app::v1::Model& _internal_models(int index) const; + ::viam::app::v1::Model* _internal_add_models(); public: const ::viam::app::v1::Model& models(int index) const; ::viam::app::v1::Model* add_models(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Model >& + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Model >& models() const; - // string module_id = 1 [json_name = "moduleId"]; - void clear_module_id() ; - const std::string& module_id() const; - template - void set_module_id(Arg_&& arg, Args_... args); - std::string* mutable_module_id(); - PROTOBUF_NODISCARD std::string* release_module_id(); - void set_allocated_module_id(std::string* value); - - 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: - // string name = 2 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - - public: - // string url = 5 [json_name = "url"]; - void clear_url() ; - const std::string& url() const; - template - void set_url(Arg_&& arg, Args_... args); - std::string* mutable_url(); - PROTOBUF_NODISCARD std::string* release_url(); - void set_allocated_url(std::string* value); - - private: - const std::string& _internal_url() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_url( - const std::string& value); - std::string* _internal_mutable_url(); - - public: - // string description = 6 [json_name = "description"]; - void clear_description() ; - const std::string& description() const; - template - void set_description(Arg_&& arg, Args_... args); - std::string* mutable_description(); - PROTOBUF_NODISCARD std::string* release_description(); - void set_allocated_description(std::string* value); + // string version = 1 [json_name = "version"]; + void clear_version(); + const std::string& version() const; + template + void set_version(ArgT0&& arg0, ArgT... args); + std::string* mutable_version(); + PROTOBUF_NODISCARD std::string* release_version(); + void set_allocated_version(std::string* version); private: - const std::string& _internal_description() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_description( - const std::string& value); - std::string* _internal_mutable_description(); - + const std::string& _internal_version() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_version(const std::string& value); + std::string* _internal_mutable_version(); public: - // string organization_id = 10 [json_name = "organizationId"]; - void clear_organization_id() ; - const std::string& organization_id() const; - template - void set_organization_id(Arg_&& arg, Args_... args); - std::string* mutable_organization_id(); - PROTOBUF_NODISCARD std::string* release_organization_id(); - void set_allocated_organization_id(std::string* value); - private: - const std::string& _internal_organization_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id( - const std::string& value); - std::string* _internal_mutable_organization_id(); - - public: - // string entrypoint = 11 [json_name = "entrypoint"]; - void clear_entrypoint() ; + // string entrypoint = 4 [json_name = "entrypoint"]; + void clear_entrypoint(); const std::string& entrypoint() const; - template - void set_entrypoint(Arg_&& arg, Args_... args); + template + void set_entrypoint(ArgT0&& arg0, ArgT... args); std::string* mutable_entrypoint(); PROTOBUF_NODISCARD std::string* release_entrypoint(); - void set_allocated_entrypoint(std::string* value); - + void set_allocated_entrypoint(std::string* entrypoint); private: const std::string& _internal_entrypoint() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_entrypoint( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_entrypoint(const std::string& value); std::string* _internal_mutable_entrypoint(); - public: - // string public_namespace = 12 [json_name = "publicNamespace"]; - void clear_public_namespace() ; - const std::string& public_namespace() const; - template - void set_public_namespace(Arg_&& arg, Args_... args); - std::string* mutable_public_namespace(); - PROTOBUF_NODISCARD std::string* release_public_namespace(); - void set_allocated_public_namespace(std::string* value); + // optional string first_run = 5 [json_name = "firstRun"]; + bool has_first_run() const; private: - const std::string& _internal_public_namespace() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_public_namespace( - const std::string& value); - std::string* _internal_mutable_public_namespace(); - + bool _internal_has_first_run() const; public: - // optional string first_run = 13 [json_name = "firstRun"]; - bool has_first_run() const; - void clear_first_run() ; + void clear_first_run(); const std::string& first_run() const; - template - void set_first_run(Arg_&& arg, Args_... args); + template + void set_first_run(ArgT0&& arg0, ArgT... args); std::string* mutable_first_run(); PROTOBUF_NODISCARD std::string* release_first_run(); - void set_allocated_first_run(std::string* value); - + void set_allocated_first_run(std::string* first_run); private: const std::string& _internal_first_run() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_first_run( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_first_run(const std::string& value); std::string* _internal_mutable_first_run(); - - public: - // int64 total_robot_usage = 8 [json_name = "totalRobotUsage"]; - void clear_total_robot_usage() ; - ::int64_t total_robot_usage() const; - void set_total_robot_usage(::int64_t value); - - private: - ::int64_t _internal_total_robot_usage() const; - void _internal_set_total_robot_usage(::int64_t value); - - public: - // int64 total_organization_usage = 9 [json_name = "totalOrganizationUsage"]; - void clear_total_organization_usage() ; - ::int64_t total_organization_usage() const; - void set_total_organization_usage(::int64_t value); - - private: - ::int64_t _internal_total_organization_usage() const; - void _internal_set_total_organization_usage(::int64_t value); - public: - // .viam.app.v1.Visibility visibility = 3 [json_name = "visibility"]; - void clear_visibility() ; - ::viam::app::v1::Visibility visibility() const; - void set_visibility(::viam::app::v1::Visibility value); - - private: - ::viam::app::v1::Visibility _internal_visibility() const; - void _internal_set_visibility(::viam::app::v1::Visibility value); - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.Module) + // @@protoc_insertion_point(class_scope:viam.app.v1.VersionHistory) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 4, 13, 2, - 112, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::VersionHistory > versions_; - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Model > models_; - ::google::protobuf::internal::ArenaStringPtr module_id_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr url_; - ::google::protobuf::internal::ArenaStringPtr description_; - ::google::protobuf::internal::ArenaStringPtr organization_id_; - ::google::protobuf::internal::ArenaStringPtr entrypoint_; - ::google::protobuf::internal::ArenaStringPtr public_namespace_; - ::google::protobuf::internal::ArenaStringPtr first_run_; - ::int64_t total_robot_usage_; - ::int64_t total_organization_usage_; - int visibility_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Uploads > files_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Model > models_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr version_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr entrypoint_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr first_run_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class LocationAuthResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.LocationAuthResponse) */ { +class Uploads final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.Uploads) */ { public: - inline LocationAuthResponse() : LocationAuthResponse(nullptr) {} - ~LocationAuthResponse() override; - template - explicit PROTOBUF_CONSTEXPR LocationAuthResponse(::google::protobuf::internal::ConstantInitialized); + inline Uploads() : Uploads(nullptr) {} + ~Uploads() override; + explicit PROTOBUF_CONSTEXPR Uploads(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline LocationAuthResponse(const LocationAuthResponse& from) - : LocationAuthResponse(nullptr, from) {} - LocationAuthResponse(LocationAuthResponse&& from) noexcept - : LocationAuthResponse() { + Uploads(const Uploads& from); + Uploads(Uploads&& from) noexcept + : Uploads() { *this = ::std::move(from); } - inline LocationAuthResponse& operator=(const LocationAuthResponse& from) { + inline Uploads& operator=(const Uploads& from) { CopyFrom(from); return *this; } - inline LocationAuthResponse& operator=(LocationAuthResponse&& from) noexcept { + inline Uploads& operator=(Uploads&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -35242,178 +30902,165 @@ class LocationAuthResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const LocationAuthResponse& default_instance() { + static const Uploads& default_instance() { return *internal_default_instance(); } - static inline const LocationAuthResponse* internal_default_instance() { - return reinterpret_cast( - &_LocationAuthResponse_default_instance_); + static inline const Uploads* internal_default_instance() { + return reinterpret_cast( + &_Uploads_default_instance_); } static constexpr int kIndexInFileMessages = - 71; + 176; - friend void swap(LocationAuthResponse& a, LocationAuthResponse& b) { + friend void swap(Uploads& a, Uploads& b) { a.Swap(&b); } - inline void Swap(LocationAuthResponse* other) { + inline void Swap(Uploads* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(LocationAuthResponse* other) { + void UnsafeArenaSwap(Uploads* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - LocationAuthResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const LocationAuthResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const LocationAuthResponse& from) { - LocationAuthResponse::MergeImpl(*this, from); + Uploads* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Uploads& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Uploads& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(LocationAuthResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(Uploads* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.LocationAuthResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.Uploads"; } protected: - explicit LocationAuthResponse(::google::protobuf::Arena* arena); - LocationAuthResponse(::google::protobuf::Arena* arena, const LocationAuthResponse& from); + explicit Uploads(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kAuthFieldNumber = 1, + kPlatformFieldNumber = 1, + kUploadedAtFieldNumber = 2, }; - // .viam.app.v1.LocationAuth auth = 1 [json_name = "auth"]; - bool has_auth() const; - void clear_auth() ; - const ::viam::app::v1::LocationAuth& auth() const; - PROTOBUF_NODISCARD ::viam::app::v1::LocationAuth* release_auth(); - ::viam::app::v1::LocationAuth* mutable_auth(); - void set_allocated_auth(::viam::app::v1::LocationAuth* value); - void unsafe_arena_set_allocated_auth(::viam::app::v1::LocationAuth* value); - ::viam::app::v1::LocationAuth* unsafe_arena_release_auth(); - + // string platform = 1 [json_name = "platform"]; + void clear_platform(); + const std::string& platform() const; + template + void set_platform(ArgT0&& arg0, ArgT... args); + std::string* mutable_platform(); + PROTOBUF_NODISCARD std::string* release_platform(); + void set_allocated_platform(std::string* platform); private: - const ::viam::app::v1::LocationAuth& _internal_auth() const; - ::viam::app::v1::LocationAuth* _internal_mutable_auth(); + const std::string& _internal_platform() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_platform(const std::string& value); + std::string* _internal_mutable_platform(); + public: + // .google.protobuf.Timestamp uploaded_at = 2 [json_name = "uploadedAt"]; + bool has_uploaded_at() const; + private: + bool _internal_has_uploaded_at() const; public: - // @@protoc_insertion_point(class_scope:viam.app.v1.LocationAuthResponse) + void clear_uploaded_at(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& uploaded_at() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_uploaded_at(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_uploaded_at(); + void set_allocated_uploaded_at(::PROTOBUF_NAMESPACE_ID::Timestamp* uploaded_at); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_uploaded_at() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_uploaded_at(); + public: + void unsafe_arena_set_allocated_uploaded_at( + ::PROTOBUF_NAMESPACE_ID::Timestamp* uploaded_at); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_uploaded_at(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.Uploads) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::viam::app::v1::LocationAuth* auth_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr platform_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* uploaded_at_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Location final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.Location) */ { +class ListModulesRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ListModulesRequest) */ { public: - inline Location() : Location(nullptr) {} - ~Location() override; - template - explicit PROTOBUF_CONSTEXPR Location(::google::protobuf::internal::ConstantInitialized); + inline ListModulesRequest() : ListModulesRequest(nullptr) {} + ~ListModulesRequest() override; + explicit PROTOBUF_CONSTEXPR ListModulesRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Location(const Location& from) - : Location(nullptr, from) {} - Location(Location&& from) noexcept - : Location() { + ListModulesRequest(const ListModulesRequest& from); + ListModulesRequest(ListModulesRequest&& from) noexcept + : ListModulesRequest() { *this = ::std::move(from); } - inline Location& operator=(const Location& from) { + inline ListModulesRequest& operator=(const ListModulesRequest& from) { CopyFrom(from); return *this; } - inline Location& operator=(Location&& from) noexcept { + inline ListModulesRequest& operator=(ListModulesRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -35423,298 +31070,165 @@ class Location final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Location& default_instance() { + static const ListModulesRequest& default_instance() { return *internal_default_instance(); } - static inline const Location* internal_default_instance() { - return reinterpret_cast( - &_Location_default_instance_); + static inline const ListModulesRequest* internal_default_instance() { + return reinterpret_cast( + &_ListModulesRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 48; + 177; - friend void swap(Location& a, Location& b) { + friend void swap(ListModulesRequest& a, ListModulesRequest& b) { a.Swap(&b); } - inline void Swap(Location* other) { + inline void Swap(ListModulesRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Location* other) { + void UnsafeArenaSwap(ListModulesRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Location* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Location& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Location& from) { - Location::MergeImpl(*this, from); + ListModulesRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ListModulesRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ListModulesRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Location* other); + void SetCachedSize(int size) const final; + void InternalSwap(ListModulesRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.Location"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.ListModulesRequest"; } protected: - explicit Location(::google::protobuf::Arena* arena); - Location(::google::protobuf::Arena* arena, const Location& from); + explicit ListModulesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kOrganizationsFieldNumber = 6, - kIdFieldNumber = 1, - kNameFieldNumber = 2, - kParentLocationIdFieldNumber = 4, - kCreatedOnFieldNumber = 3, - kAuthFieldNumber = 5, - kConfigFieldNumber = 8, - kRobotCountFieldNumber = 7, + kOrganizationIdFieldNumber = 1, + kIncludeMarkdownDocumentationFieldNumber = 2, }; - // repeated .viam.app.v1.LocationOrganization organizations = 6 [json_name = "organizations"]; - int organizations_size() const; - private: - int _internal_organizations_size() const; - - public: - void clear_organizations() ; - ::viam::app::v1::LocationOrganization* mutable_organizations(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::LocationOrganization >* - mutable_organizations(); - private: - const ::google::protobuf::RepeatedPtrField<::viam::app::v1::LocationOrganization>& _internal_organizations() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::LocationOrganization>* _internal_mutable_organizations(); - public: - const ::viam::app::v1::LocationOrganization& organizations(int index) const; - ::viam::app::v1::LocationOrganization* add_organizations(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::LocationOrganization >& - organizations() const; - // string id = 1 [json_name = "id"]; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - - private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); - - public: - // string name = 2 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - - public: - // string parent_location_id = 4 [json_name = "parentLocationId"]; - void clear_parent_location_id() ; - const std::string& parent_location_id() const; - template - void set_parent_location_id(Arg_&& arg, Args_... args); - std::string* mutable_parent_location_id(); - PROTOBUF_NODISCARD std::string* release_parent_location_id(); - void set_allocated_parent_location_id(std::string* value); - + // optional string organization_id = 1 [json_name = "organizationId"]; + bool has_organization_id() const; private: - const std::string& _internal_parent_location_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_parent_location_id( - const std::string& value); - std::string* _internal_mutable_parent_location_id(); - + bool _internal_has_organization_id() const; public: - // .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn"]; - bool has_created_on() const; - void clear_created_on() ; - const ::google::protobuf::Timestamp& created_on() const; - PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_created_on(); - ::google::protobuf::Timestamp* mutable_created_on(); - void set_allocated_created_on(::google::protobuf::Timestamp* value); - void unsafe_arena_set_allocated_created_on(::google::protobuf::Timestamp* value); - ::google::protobuf::Timestamp* unsafe_arena_release_created_on(); - + void clear_organization_id(); + const std::string& organization_id() const; + template + void set_organization_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_organization_id(); + PROTOBUF_NODISCARD std::string* release_organization_id(); + void set_allocated_organization_id(std::string* organization_id); private: - const ::google::protobuf::Timestamp& _internal_created_on() const; - ::google::protobuf::Timestamp* _internal_mutable_created_on(); - + const std::string& _internal_organization_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id(const std::string& value); + std::string* _internal_mutable_organization_id(); public: - // .viam.app.v1.LocationAuth auth = 5 [json_name = "auth"]; - bool has_auth() const; - void clear_auth() ; - const ::viam::app::v1::LocationAuth& auth() const; - PROTOBUF_NODISCARD ::viam::app::v1::LocationAuth* release_auth(); - ::viam::app::v1::LocationAuth* mutable_auth(); - void set_allocated_auth(::viam::app::v1::LocationAuth* value); - void unsafe_arena_set_allocated_auth(::viam::app::v1::LocationAuth* value); - ::viam::app::v1::LocationAuth* unsafe_arena_release_auth(); + // optional bool include_markdown_documentation = 2 [json_name = "includeMarkdownDocumentation"]; + bool has_include_markdown_documentation() const; private: - const ::viam::app::v1::LocationAuth& _internal_auth() const; - ::viam::app::v1::LocationAuth* _internal_mutable_auth(); - + bool _internal_has_include_markdown_documentation() const; public: - // .viam.app.v1.StorageConfig config = 8 [json_name = "config"]; - bool has_config() const; - void clear_config() ; - const ::viam::app::v1::StorageConfig& config() const; - PROTOBUF_NODISCARD ::viam::app::v1::StorageConfig* release_config(); - ::viam::app::v1::StorageConfig* mutable_config(); - void set_allocated_config(::viam::app::v1::StorageConfig* value); - void unsafe_arena_set_allocated_config(::viam::app::v1::StorageConfig* value); - ::viam::app::v1::StorageConfig* unsafe_arena_release_config(); - + void clear_include_markdown_documentation(); + bool include_markdown_documentation() const; + void set_include_markdown_documentation(bool value); private: - const ::viam::app::v1::StorageConfig& _internal_config() const; - ::viam::app::v1::StorageConfig* _internal_mutable_config(); - + bool _internal_include_markdown_documentation() const; + void _internal_set_include_markdown_documentation(bool value); public: - // int32 robot_count = 7 [json_name = "robotCount"]; - void clear_robot_count() ; - ::int32_t robot_count() const; - void set_robot_count(::int32_t value); - private: - ::int32_t _internal_robot_count() const; - void _internal_set_robot_count(::int32_t value); - - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.Location) + // @@protoc_insertion_point(class_scope:viam.app.v1.ListModulesRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 8, 4, - 61, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::LocationOrganization > organizations_; - ::google::protobuf::internal::ArenaStringPtr id_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr parent_location_id_; - ::google::protobuf::Timestamp* created_on_; - ::viam::app::v1::LocationAuth* auth_; - ::viam::app::v1::StorageConfig* config_; - ::int32_t robot_count_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr organization_id_; + bool include_markdown_documentation_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ListKeysResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ListKeysResponse) */ { +class ListModulesResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ListModulesResponse) */ { public: - inline ListKeysResponse() : ListKeysResponse(nullptr) {} - ~ListKeysResponse() override; - template - explicit PROTOBUF_CONSTEXPR ListKeysResponse(::google::protobuf::internal::ConstantInitialized); + inline ListModulesResponse() : ListModulesResponse(nullptr) {} + ~ListModulesResponse() override; + explicit PROTOBUF_CONSTEXPR ListModulesResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ListKeysResponse(const ListKeysResponse& from) - : ListKeysResponse(nullptr, from) {} - ListKeysResponse(ListKeysResponse&& from) noexcept - : ListKeysResponse() { + ListModulesResponse(const ListModulesResponse& from); + ListModulesResponse(ListModulesResponse&& from) noexcept + : ListModulesResponse() { *this = ::std::move(from); } - inline ListKeysResponse& operator=(const ListKeysResponse& from) { + inline ListModulesResponse& operator=(const ListModulesResponse& from) { CopyFrom(from); return *this; } - inline ListKeysResponse& operator=(ListKeysResponse&& from) noexcept { + inline ListModulesResponse& operator=(ListModulesResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -35724,180 +31238,149 @@ class ListKeysResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ListKeysResponse& default_instance() { + static const ListModulesResponse& default_instance() { return *internal_default_instance(); } - static inline const ListKeysResponse* internal_default_instance() { - return reinterpret_cast( - &_ListKeysResponse_default_instance_); + static inline const ListModulesResponse* internal_default_instance() { + return reinterpret_cast( + &_ListModulesResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 189; + 178; - friend void swap(ListKeysResponse& a, ListKeysResponse& b) { + friend void swap(ListModulesResponse& a, ListModulesResponse& b) { a.Swap(&b); } - inline void Swap(ListKeysResponse* other) { + inline void Swap(ListModulesResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ListKeysResponse* other) { + void UnsafeArenaSwap(ListModulesResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ListKeysResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ListKeysResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ListKeysResponse& from) { - ListKeysResponse::MergeImpl(*this, from); + ListModulesResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ListModulesResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ListModulesResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ListKeysResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(ListModulesResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.ListKeysResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.ListModulesResponse"; } protected: - explicit ListKeysResponse(::google::protobuf::Arena* arena); - ListKeysResponse(::google::protobuf::Arena* arena, const ListKeysResponse& from); + explicit ListModulesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kApiKeysFieldNumber = 1, + kModulesFieldNumber = 1, }; - // repeated .viam.app.v1.APIKeyWithAuthorizations api_keys = 1 [json_name = "apiKeys"]; - int api_keys_size() const; + // repeated .viam.app.v1.Module modules = 1 [json_name = "modules"]; + int modules_size() const; private: - int _internal_api_keys_size() const; - + int _internal_modules_size() const; public: - void clear_api_keys() ; - ::viam::app::v1::APIKeyWithAuthorizations* mutable_api_keys(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::APIKeyWithAuthorizations >* - mutable_api_keys(); + void clear_modules(); + ::viam::app::v1::Module* mutable_modules(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Module >* + mutable_modules(); private: - const ::google::protobuf::RepeatedPtrField<::viam::app::v1::APIKeyWithAuthorizations>& _internal_api_keys() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::APIKeyWithAuthorizations>* _internal_mutable_api_keys(); + const ::viam::app::v1::Module& _internal_modules(int index) const; + ::viam::app::v1::Module* _internal_add_modules(); public: - const ::viam::app::v1::APIKeyWithAuthorizations& api_keys(int index) const; - ::viam::app::v1::APIKeyWithAuthorizations* add_api_keys(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::APIKeyWithAuthorizations >& - api_keys() const; - // @@protoc_insertion_point(class_scope:viam.app.v1.ListKeysResponse) + const ::viam::app::v1::Module& modules(int index) const; + ::viam::app::v1::Module* add_modules(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Module >& + modules() const; + + // @@protoc_insertion_point(class_scope:viam.app.v1.ListModulesResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::APIKeyWithAuthorizations > api_keys_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Module > modules_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetRobotPartsResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetRobotPartsResponse) */ { +class GetUserIDByEmailRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetUserIDByEmailRequest) */ { public: - inline GetRobotPartsResponse() : GetRobotPartsResponse(nullptr) {} - ~GetRobotPartsResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetRobotPartsResponse(::google::protobuf::internal::ConstantInitialized); + inline GetUserIDByEmailRequest() : GetUserIDByEmailRequest(nullptr) {} + ~GetUserIDByEmailRequest() override; + explicit PROTOBUF_CONSTEXPR GetUserIDByEmailRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetRobotPartsResponse(const GetRobotPartsResponse& from) - : GetRobotPartsResponse(nullptr, from) {} - GetRobotPartsResponse(GetRobotPartsResponse&& from) noexcept - : GetRobotPartsResponse() { + GetUserIDByEmailRequest(const GetUserIDByEmailRequest& from); + GetUserIDByEmailRequest(GetUserIDByEmailRequest&& from) noexcept + : GetUserIDByEmailRequest() { *this = ::std::move(from); } - inline GetRobotPartsResponse& operator=(const GetRobotPartsResponse& from) { + inline GetUserIDByEmailRequest& operator=(const GetUserIDByEmailRequest& from) { CopyFrom(from); return *this; } - inline GetRobotPartsResponse& operator=(GetRobotPartsResponse&& from) noexcept { + inline GetUserIDByEmailRequest& operator=(GetUserIDByEmailRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -35907,180 +31390,145 @@ class GetRobotPartsResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetRobotPartsResponse& default_instance() { + static const GetUserIDByEmailRequest& default_instance() { return *internal_default_instance(); } - static inline const GetRobotPartsResponse* internal_default_instance() { - return reinterpret_cast( - &_GetRobotPartsResponse_default_instance_); + static inline const GetUserIDByEmailRequest* internal_default_instance() { + return reinterpret_cast( + &_GetUserIDByEmailRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 78; + 179; - friend void swap(GetRobotPartsResponse& a, GetRobotPartsResponse& b) { + friend void swap(GetUserIDByEmailRequest& a, GetUserIDByEmailRequest& b) { a.Swap(&b); } - inline void Swap(GetRobotPartsResponse* other) { + inline void Swap(GetUserIDByEmailRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetRobotPartsResponse* other) { + void UnsafeArenaSwap(GetUserIDByEmailRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetRobotPartsResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetRobotPartsResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetRobotPartsResponse& from) { - GetRobotPartsResponse::MergeImpl(*this, from); + GetUserIDByEmailRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetUserIDByEmailRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetUserIDByEmailRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetRobotPartsResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetUserIDByEmailRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.GetRobotPartsResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.GetUserIDByEmailRequest"; } protected: - explicit GetRobotPartsResponse(::google::protobuf::Arena* arena); - GetRobotPartsResponse(::google::protobuf::Arena* arena, const GetRobotPartsResponse& from); + explicit GetUserIDByEmailRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kPartsFieldNumber = 1, + kEmailFieldNumber = 1, }; - // repeated .viam.app.v1.RobotPart parts = 1 [json_name = "parts"]; - int parts_size() const; - private: - int _internal_parts_size() const; - - public: - void clear_parts() ; - ::viam::app::v1::RobotPart* mutable_parts(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::RobotPart >* - mutable_parts(); + // string email = 1 [json_name = "email"]; + void clear_email(); + const std::string& email() const; + template + void set_email(ArgT0&& arg0, ArgT... args); + std::string* mutable_email(); + PROTOBUF_NODISCARD std::string* release_email(); + void set_allocated_email(std::string* email); private: - const ::google::protobuf::RepeatedPtrField<::viam::app::v1::RobotPart>& _internal_parts() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::RobotPart>* _internal_mutable_parts(); + const std::string& _internal_email() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_email(const std::string& value); + std::string* _internal_mutable_email(); public: - const ::viam::app::v1::RobotPart& parts(int index) const; - ::viam::app::v1::RobotPart* add_parts(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::RobotPart >& - parts() const; - // @@protoc_insertion_point(class_scope:viam.app.v1.GetRobotPartsResponse) + + // @@protoc_insertion_point(class_scope:viam.app.v1.GetUserIDByEmailRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::RobotPart > parts_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr email_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetRobotPartResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetRobotPartResponse) */ { +class GetUserIDByEmailResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetUserIDByEmailResponse) */ { public: - inline GetRobotPartResponse() : GetRobotPartResponse(nullptr) {} - ~GetRobotPartResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetRobotPartResponse(::google::protobuf::internal::ConstantInitialized); + inline GetUserIDByEmailResponse() : GetUserIDByEmailResponse(nullptr) {} + ~GetUserIDByEmailResponse() override; + explicit PROTOBUF_CONSTEXPR GetUserIDByEmailResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetRobotPartResponse(const GetRobotPartResponse& from) - : GetRobotPartResponse(nullptr, from) {} - GetRobotPartResponse(GetRobotPartResponse&& from) noexcept - : GetRobotPartResponse() { + GetUserIDByEmailResponse(const GetUserIDByEmailResponse& from); + GetUserIDByEmailResponse(GetUserIDByEmailResponse&& from) noexcept + : GetUserIDByEmailResponse() { *this = ::std::move(from); } - inline GetRobotPartResponse& operator=(const GetRobotPartResponse& from) { + inline GetUserIDByEmailResponse& operator=(const GetUserIDByEmailResponse& from) { CopyFrom(from); return *this; } - inline GetRobotPartResponse& operator=(GetRobotPartResponse&& from) noexcept { + inline GetUserIDByEmailResponse& operator=(GetUserIDByEmailResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -36090,196 +31538,145 @@ class GetRobotPartResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetRobotPartResponse& default_instance() { + static const GetUserIDByEmailResponse& default_instance() { return *internal_default_instance(); } - static inline const GetRobotPartResponse* internal_default_instance() { - return reinterpret_cast( - &_GetRobotPartResponse_default_instance_); + static inline const GetUserIDByEmailResponse* internal_default_instance() { + return reinterpret_cast( + &_GetUserIDByEmailResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 80; + 180; - friend void swap(GetRobotPartResponse& a, GetRobotPartResponse& b) { + friend void swap(GetUserIDByEmailResponse& a, GetUserIDByEmailResponse& b) { a.Swap(&b); } - inline void Swap(GetRobotPartResponse* other) { + inline void Swap(GetUserIDByEmailResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetRobotPartResponse* other) { + void UnsafeArenaSwap(GetUserIDByEmailResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetRobotPartResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetRobotPartResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetRobotPartResponse& from) { - GetRobotPartResponse::MergeImpl(*this, from); + GetUserIDByEmailResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetUserIDByEmailResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetUserIDByEmailResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetRobotPartResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetUserIDByEmailResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.GetRobotPartResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.GetUserIDByEmailResponse"; } protected: - explicit GetRobotPartResponse(::google::protobuf::Arena* arena); - GetRobotPartResponse(::google::protobuf::Arena* arena, const GetRobotPartResponse& from); + explicit GetUserIDByEmailResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kConfigJsonFieldNumber = 2, - kPartFieldNumber = 1, + kUserIdFieldNumber = 1, }; - // string config_json = 2 [json_name = "configJson"]; - void clear_config_json() ; - const std::string& config_json() const; - template - void set_config_json(Arg_&& arg, Args_... args); - std::string* mutable_config_json(); - PROTOBUF_NODISCARD std::string* release_config_json(); - void set_allocated_config_json(std::string* value); - + // string user_id = 1 [json_name = "userId"]; + void clear_user_id(); + const std::string& user_id() const; + template + void set_user_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_user_id(); + PROTOBUF_NODISCARD std::string* release_user_id(); + void set_allocated_user_id(std::string* user_id); private: - const std::string& _internal_config_json() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_config_json( - const std::string& value); - std::string* _internal_mutable_config_json(); - + const std::string& _internal_user_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_user_id(const std::string& value); + std::string* _internal_mutable_user_id(); public: - // .viam.app.v1.RobotPart part = 1 [json_name = "part"]; - bool has_part() const; - void clear_part() ; - const ::viam::app::v1::RobotPart& part() const; - PROTOBUF_NODISCARD ::viam::app::v1::RobotPart* release_part(); - ::viam::app::v1::RobotPart* mutable_part(); - void set_allocated_part(::viam::app::v1::RobotPart* value); - void unsafe_arena_set_allocated_part(::viam::app::v1::RobotPart* value); - ::viam::app::v1::RobotPart* unsafe_arena_release_part(); - - private: - const ::viam::app::v1::RobotPart& _internal_part() const; - ::viam::app::v1::RobotPart* _internal_mutable_part(); - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.GetRobotPartResponse) + // @@protoc_insertion_point(class_scope:viam.app.v1.GetUserIDByEmailResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 52, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr config_json_; - ::viam::app::v1::RobotPart* part_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr user_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetRobotAPIKeysResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetRobotAPIKeysResponse) */ { +class ListOrganizationsByUserRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ListOrganizationsByUserRequest) */ { public: - inline GetRobotAPIKeysResponse() : GetRobotAPIKeysResponse(nullptr) {} - ~GetRobotAPIKeysResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetRobotAPIKeysResponse(::google::protobuf::internal::ConstantInitialized); + inline ListOrganizationsByUserRequest() : ListOrganizationsByUserRequest(nullptr) {} + ~ListOrganizationsByUserRequest() override; + explicit PROTOBUF_CONSTEXPR ListOrganizationsByUserRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetRobotAPIKeysResponse(const GetRobotAPIKeysResponse& from) - : GetRobotAPIKeysResponse(nullptr, from) {} - GetRobotAPIKeysResponse(GetRobotAPIKeysResponse&& from) noexcept - : GetRobotAPIKeysResponse() { + ListOrganizationsByUserRequest(const ListOrganizationsByUserRequest& from); + ListOrganizationsByUserRequest(ListOrganizationsByUserRequest&& from) noexcept + : ListOrganizationsByUserRequest() { *this = ::std::move(from); } - inline GetRobotAPIKeysResponse& operator=(const GetRobotAPIKeysResponse& from) { + inline ListOrganizationsByUserRequest& operator=(const ListOrganizationsByUserRequest& from) { CopyFrom(from); return *this; } - inline GetRobotAPIKeysResponse& operator=(GetRobotAPIKeysResponse&& from) noexcept { + inline ListOrganizationsByUserRequest& operator=(ListOrganizationsByUserRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -36289,180 +31686,145 @@ class GetRobotAPIKeysResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetRobotAPIKeysResponse& default_instance() { + static const ListOrganizationsByUserRequest& default_instance() { return *internal_default_instance(); } - static inline const GetRobotAPIKeysResponse* internal_default_instance() { - return reinterpret_cast( - &_GetRobotAPIKeysResponse_default_instance_); + static inline const ListOrganizationsByUserRequest* internal_default_instance() { + return reinterpret_cast( + &_ListOrganizationsByUserRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 94; + 181; - friend void swap(GetRobotAPIKeysResponse& a, GetRobotAPIKeysResponse& b) { + friend void swap(ListOrganizationsByUserRequest& a, ListOrganizationsByUserRequest& b) { a.Swap(&b); } - inline void Swap(GetRobotAPIKeysResponse* other) { + inline void Swap(ListOrganizationsByUserRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetRobotAPIKeysResponse* other) { + void UnsafeArenaSwap(ListOrganizationsByUserRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetRobotAPIKeysResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetRobotAPIKeysResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetRobotAPIKeysResponse& from) { - GetRobotAPIKeysResponse::MergeImpl(*this, from); + ListOrganizationsByUserRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ListOrganizationsByUserRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ListOrganizationsByUserRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetRobotAPIKeysResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(ListOrganizationsByUserRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.GetRobotAPIKeysResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.ListOrganizationsByUserRequest"; } protected: - explicit GetRobotAPIKeysResponse(::google::protobuf::Arena* arena); - GetRobotAPIKeysResponse(::google::protobuf::Arena* arena, const GetRobotAPIKeysResponse& from); + explicit ListOrganizationsByUserRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kApiKeysFieldNumber = 1, + kUserIdFieldNumber = 1, }; - // repeated .viam.app.v1.APIKeyWithAuthorizations api_keys = 1 [json_name = "apiKeys"]; - int api_keys_size() const; - private: - int _internal_api_keys_size() const; - - public: - void clear_api_keys() ; - ::viam::app::v1::APIKeyWithAuthorizations* mutable_api_keys(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::APIKeyWithAuthorizations >* - mutable_api_keys(); + // string user_id = 1 [json_name = "userId"]; + void clear_user_id(); + const std::string& user_id() const; + template + void set_user_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_user_id(); + PROTOBUF_NODISCARD std::string* release_user_id(); + void set_allocated_user_id(std::string* user_id); private: - const ::google::protobuf::RepeatedPtrField<::viam::app::v1::APIKeyWithAuthorizations>& _internal_api_keys() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::APIKeyWithAuthorizations>* _internal_mutable_api_keys(); + const std::string& _internal_user_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_user_id(const std::string& value); + std::string* _internal_mutable_user_id(); public: - const ::viam::app::v1::APIKeyWithAuthorizations& api_keys(int index) const; - ::viam::app::v1::APIKeyWithAuthorizations* add_api_keys(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::APIKeyWithAuthorizations >& - api_keys() const; - // @@protoc_insertion_point(class_scope:viam.app.v1.GetRobotAPIKeysResponse) + + // @@protoc_insertion_point(class_scope:viam.app.v1.ListOrganizationsByUserRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::APIKeyWithAuthorizations > api_keys_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr user_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetFragmentHistoryResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetFragmentHistoryResponse) */ { +class OrgDetails final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.OrgDetails) */ { public: - inline GetFragmentHistoryResponse() : GetFragmentHistoryResponse(nullptr) {} - ~GetFragmentHistoryResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetFragmentHistoryResponse(::google::protobuf::internal::ConstantInitialized); + inline OrgDetails() : OrgDetails(nullptr) {} + ~OrgDetails() override; + explicit PROTOBUF_CONSTEXPR OrgDetails(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetFragmentHistoryResponse(const GetFragmentHistoryResponse& from) - : GetFragmentHistoryResponse(nullptr, from) {} - GetFragmentHistoryResponse(GetFragmentHistoryResponse&& from) noexcept - : GetFragmentHistoryResponse() { + OrgDetails(const OrgDetails& from); + OrgDetails(OrgDetails&& from) noexcept + : OrgDetails() { *this = ::std::move(from); } - inline GetFragmentHistoryResponse& operator=(const GetFragmentHistoryResponse& from) { + inline OrgDetails& operator=(const OrgDetails& from) { CopyFrom(from); return *this; } - inline GetFragmentHistoryResponse& operator=(GetFragmentHistoryResponse&& from) noexcept { + inline OrgDetails& operator=(OrgDetails&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -36472,198 +31834,202 @@ class GetFragmentHistoryResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetFragmentHistoryResponse& default_instance() { + static const OrgDetails& default_instance() { return *internal_default_instance(); } - static inline const GetFragmentHistoryResponse* internal_default_instance() { - return reinterpret_cast( - &_GetFragmentHistoryResponse_default_instance_); + static inline const OrgDetails* internal_default_instance() { + return reinterpret_cast( + &_OrgDetails_default_instance_); } static constexpr int kIndexInFileMessages = - 111; + 182; - friend void swap(GetFragmentHistoryResponse& a, GetFragmentHistoryResponse& b) { + friend void swap(OrgDetails& a, OrgDetails& b) { a.Swap(&b); } - inline void Swap(GetFragmentHistoryResponse* other) { + inline void Swap(OrgDetails* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetFragmentHistoryResponse* other) { + void UnsafeArenaSwap(OrgDetails* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetFragmentHistoryResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetFragmentHistoryResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetFragmentHistoryResponse& from) { - GetFragmentHistoryResponse::MergeImpl(*this, from); + OrgDetails* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const OrgDetails& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const OrgDetails& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetFragmentHistoryResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(OrgDetails* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.GetFragmentHistoryResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.OrgDetails"; } protected: - explicit GetFragmentHistoryResponse(::google::protobuf::Arena* arena); - GetFragmentHistoryResponse(::google::protobuf::Arena* arena, const GetFragmentHistoryResponse& from); + explicit OrgDetails(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kHistoryFieldNumber = 1, - kNextPageTokenFieldNumber = 2, + kOrgIdFieldNumber = 1, + kOrgNameFieldNumber = 2, + kOrgCidFieldNumber = 3, + kPublicNamespaceFieldNumber = 4, }; - // repeated .viam.app.v1.FragmentHistoryEntry history = 1 [json_name = "history"]; - int history_size() const; + // string org_id = 1 [json_name = "orgId"]; + void clear_org_id(); + const std::string& org_id() const; + template + void set_org_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_org_id(); + PROTOBUF_NODISCARD std::string* release_org_id(); + void set_allocated_org_id(std::string* org_id); private: - int _internal_history_size() const; - + const std::string& _internal_org_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_org_id(const std::string& value); + std::string* _internal_mutable_org_id(); public: - void clear_history() ; - ::viam::app::v1::FragmentHistoryEntry* mutable_history(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::FragmentHistoryEntry >* - mutable_history(); + + // string org_name = 2 [json_name = "orgName"]; + void clear_org_name(); + const std::string& org_name() const; + template + void set_org_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_org_name(); + PROTOBUF_NODISCARD std::string* release_org_name(); + void set_allocated_org_name(std::string* org_name); private: - const ::google::protobuf::RepeatedPtrField<::viam::app::v1::FragmentHistoryEntry>& _internal_history() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::FragmentHistoryEntry>* _internal_mutable_history(); + const std::string& _internal_org_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_org_name(const std::string& value); + std::string* _internal_mutable_org_name(); public: - const ::viam::app::v1::FragmentHistoryEntry& history(int index) const; - ::viam::app::v1::FragmentHistoryEntry* add_history(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::FragmentHistoryEntry >& - history() const; - // string next_page_token = 2 [json_name = "nextPageToken"]; - void clear_next_page_token() ; - const std::string& next_page_token() const; - template - void set_next_page_token(Arg_&& arg, Args_... args); - std::string* mutable_next_page_token(); - PROTOBUF_NODISCARD std::string* release_next_page_token(); - void set_allocated_next_page_token(std::string* value); + // optional string org_cid = 3 [json_name = "orgCid"]; + bool has_org_cid() const; private: - const std::string& _internal_next_page_token() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_next_page_token( - const std::string& value); - std::string* _internal_mutable_next_page_token(); + bool _internal_has_org_cid() const; + public: + void clear_org_cid(); + const std::string& org_cid() const; + template + void set_org_cid(ArgT0&& arg0, ArgT... args); + std::string* mutable_org_cid(); + PROTOBUF_NODISCARD std::string* release_org_cid(); + void set_allocated_org_cid(std::string* org_cid); + private: + const std::string& _internal_org_cid() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_org_cid(const std::string& value); + std::string* _internal_mutable_org_cid(); + public: + // optional string public_namespace = 4 [json_name = "publicNamespace"]; + bool has_public_namespace() const; + private: + bool _internal_has_public_namespace() const; public: - // @@protoc_insertion_point(class_scope:viam.app.v1.GetFragmentHistoryResponse) + void clear_public_namespace(); + const std::string& public_namespace() const; + template + void set_public_namespace(ArgT0&& arg0, ArgT... args); + std::string* mutable_public_namespace(); + PROTOBUF_NODISCARD std::string* release_public_namespace(); + void set_allocated_public_namespace(std::string* public_namespace); + private: + const std::string& _internal_public_namespace() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_public_namespace(const std::string& value); + std::string* _internal_mutable_public_namespace(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.OrgDetails) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 62, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::FragmentHistoryEntry > history_; - ::google::protobuf::internal::ArenaStringPtr next_page_token_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr org_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr org_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr org_cid_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr public_namespace_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class CreateRobotPartSecretResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.CreateRobotPartSecretResponse) */ { +class ListOrganizationsByUserResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ListOrganizationsByUserResponse) */ { public: - inline CreateRobotPartSecretResponse() : CreateRobotPartSecretResponse(nullptr) {} - ~CreateRobotPartSecretResponse() override; - template - explicit PROTOBUF_CONSTEXPR CreateRobotPartSecretResponse(::google::protobuf::internal::ConstantInitialized); + inline ListOrganizationsByUserResponse() : ListOrganizationsByUserResponse(nullptr) {} + ~ListOrganizationsByUserResponse() override; + explicit PROTOBUF_CONSTEXPR ListOrganizationsByUserResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline CreateRobotPartSecretResponse(const CreateRobotPartSecretResponse& from) - : CreateRobotPartSecretResponse(nullptr, from) {} - CreateRobotPartSecretResponse(CreateRobotPartSecretResponse&& from) noexcept - : CreateRobotPartSecretResponse() { + ListOrganizationsByUserResponse(const ListOrganizationsByUserResponse& from); + ListOrganizationsByUserResponse(ListOrganizationsByUserResponse&& from) noexcept + : ListOrganizationsByUserResponse() { *this = ::std::move(from); } - inline CreateRobotPartSecretResponse& operator=(const CreateRobotPartSecretResponse& from) { + inline ListOrganizationsByUserResponse& operator=(const ListOrganizationsByUserResponse& from) { CopyFrom(from); return *this; } - inline CreateRobotPartSecretResponse& operator=(CreateRobotPartSecretResponse&& from) noexcept { + inline ListOrganizationsByUserResponse& operator=(ListOrganizationsByUserResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -36673,178 +32039,149 @@ class CreateRobotPartSecretResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CreateRobotPartSecretResponse& default_instance() { + static const ListOrganizationsByUserResponse& default_instance() { return *internal_default_instance(); } - static inline const CreateRobotPartSecretResponse* internal_default_instance() { - return reinterpret_cast( - &_CreateRobotPartSecretResponse_default_instance_); + static inline const ListOrganizationsByUserResponse* internal_default_instance() { + return reinterpret_cast( + &_ListOrganizationsByUserResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 127; + 183; - friend void swap(CreateRobotPartSecretResponse& a, CreateRobotPartSecretResponse& b) { + friend void swap(ListOrganizationsByUserResponse& a, ListOrganizationsByUserResponse& b) { a.Swap(&b); } - inline void Swap(CreateRobotPartSecretResponse* other) { + inline void Swap(ListOrganizationsByUserResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CreateRobotPartSecretResponse* other) { + void UnsafeArenaSwap(ListOrganizationsByUserResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CreateRobotPartSecretResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const CreateRobotPartSecretResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CreateRobotPartSecretResponse& from) { - CreateRobotPartSecretResponse::MergeImpl(*this, from); + ListOrganizationsByUserResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ListOrganizationsByUserResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ListOrganizationsByUserResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(CreateRobotPartSecretResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(ListOrganizationsByUserResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.CreateRobotPartSecretResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.ListOrganizationsByUserResponse"; } protected: - explicit CreateRobotPartSecretResponse(::google::protobuf::Arena* arena); - CreateRobotPartSecretResponse(::google::protobuf::Arena* arena, const CreateRobotPartSecretResponse& from); + explicit ListOrganizationsByUserResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kPartFieldNumber = 1, + kOrgsFieldNumber = 1, }; - // .viam.app.v1.RobotPart part = 1 [json_name = "part"]; - bool has_part() const; - void clear_part() ; - const ::viam::app::v1::RobotPart& part() const; - PROTOBUF_NODISCARD ::viam::app::v1::RobotPart* release_part(); - ::viam::app::v1::RobotPart* mutable_part(); - void set_allocated_part(::viam::app::v1::RobotPart* value); - void unsafe_arena_set_allocated_part(::viam::app::v1::RobotPart* value); - ::viam::app::v1::RobotPart* unsafe_arena_release_part(); - + // repeated .viam.app.v1.OrgDetails orgs = 1 [json_name = "orgs"]; + int orgs_size() const; private: - const ::viam::app::v1::RobotPart& _internal_part() const; - ::viam::app::v1::RobotPart* _internal_mutable_part(); - + int _internal_orgs_size() const; public: - // @@protoc_insertion_point(class_scope:viam.app.v1.CreateRobotPartSecretResponse) + void clear_orgs(); + ::viam::app::v1::OrgDetails* mutable_orgs(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::OrgDetails >* + mutable_orgs(); + private: + const ::viam::app::v1::OrgDetails& _internal_orgs(int index) const; + ::viam::app::v1::OrgDetails* _internal_add_orgs(); + public: + const ::viam::app::v1::OrgDetails& orgs(int index) const; + ::viam::app::v1::OrgDetails* add_orgs(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::OrgDetails >& + orgs() const; + + // @@protoc_insertion_point(class_scope:viam.app.v1.ListOrganizationsByUserResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::viam::app::v1::RobotPart* part_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::OrgDetails > orgs_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class CreateLocationSecretResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.CreateLocationSecretResponse) */ { +class SearchOrganizationsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.SearchOrganizationsRequest) */ { public: - inline CreateLocationSecretResponse() : CreateLocationSecretResponse(nullptr) {} - ~CreateLocationSecretResponse() override; - template - explicit PROTOBUF_CONSTEXPR CreateLocationSecretResponse(::google::protobuf::internal::ConstantInitialized); + inline SearchOrganizationsRequest() : SearchOrganizationsRequest(nullptr) {} + ~SearchOrganizationsRequest() override; + explicit PROTOBUF_CONSTEXPR SearchOrganizationsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline CreateLocationSecretResponse(const CreateLocationSecretResponse& from) - : CreateLocationSecretResponse(nullptr, from) {} - CreateLocationSecretResponse(CreateLocationSecretResponse&& from) noexcept - : CreateLocationSecretResponse() { + SearchOrganizationsRequest(const SearchOrganizationsRequest& from); + SearchOrganizationsRequest(SearchOrganizationsRequest&& from) noexcept + : SearchOrganizationsRequest() { *this = ::std::move(from); } - inline CreateLocationSecretResponse& operator=(const CreateLocationSecretResponse& from) { + inline SearchOrganizationsRequest& operator=(const SearchOrganizationsRequest& from) { CopyFrom(from); return *this; } - inline CreateLocationSecretResponse& operator=(CreateLocationSecretResponse&& from) noexcept { + inline SearchOrganizationsRequest& operator=(SearchOrganizationsRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -36854,178 +32191,210 @@ class CreateLocationSecretResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CreateLocationSecretResponse& default_instance() { + static const SearchOrganizationsRequest& default_instance() { return *internal_default_instance(); } - static inline const CreateLocationSecretResponse* internal_default_instance() { - return reinterpret_cast( - &_CreateLocationSecretResponse_default_instance_); + static inline const SearchOrganizationsRequest* internal_default_instance() { + return reinterpret_cast( + &_SearchOrganizationsRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 67; + 184; - friend void swap(CreateLocationSecretResponse& a, CreateLocationSecretResponse& b) { + friend void swap(SearchOrganizationsRequest& a, SearchOrganizationsRequest& b) { a.Swap(&b); } - inline void Swap(CreateLocationSecretResponse* other) { + inline void Swap(SearchOrganizationsRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CreateLocationSecretResponse* other) { + void UnsafeArenaSwap(SearchOrganizationsRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CreateLocationSecretResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const CreateLocationSecretResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CreateLocationSecretResponse& from) { - CreateLocationSecretResponse::MergeImpl(*this, from); + SearchOrganizationsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SearchOrganizationsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const SearchOrganizationsRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(CreateLocationSecretResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(SearchOrganizationsRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.CreateLocationSecretResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.SearchOrganizationsRequest"; } protected: - explicit CreateLocationSecretResponse(::google::protobuf::Arena* arena); - CreateLocationSecretResponse(::google::protobuf::Arena* arena, const CreateLocationSecretResponse& from); + explicit SearchOrganizationsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kAuthFieldNumber = 1, + kOrgIdFieldNumber = 1, + kOrgNameFieldNumber = 2, + kCidFieldNumber = 3, + kPublicNamespaceFieldNumber = 4, }; - // .viam.app.v1.LocationAuth auth = 1 [json_name = "auth"]; - bool has_auth() const; - void clear_auth() ; - const ::viam::app::v1::LocationAuth& auth() const; - PROTOBUF_NODISCARD ::viam::app::v1::LocationAuth* release_auth(); - ::viam::app::v1::LocationAuth* mutable_auth(); - void set_allocated_auth(::viam::app::v1::LocationAuth* value); - void unsafe_arena_set_allocated_auth(::viam::app::v1::LocationAuth* value); - ::viam::app::v1::LocationAuth* unsafe_arena_release_auth(); + // optional string org_id = 1 [json_name = "orgId"]; + bool has_org_id() const; + private: + bool _internal_has_org_id() const; + public: + void clear_org_id(); + const std::string& org_id() const; + template + void set_org_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_org_id(); + PROTOBUF_NODISCARD std::string* release_org_id(); + void set_allocated_org_id(std::string* org_id); + private: + const std::string& _internal_org_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_org_id(const std::string& value); + std::string* _internal_mutable_org_id(); + public: + // optional string org_name = 2 [json_name = "orgName"]; + bool has_org_name() const; private: - const ::viam::app::v1::LocationAuth& _internal_auth() const; - ::viam::app::v1::LocationAuth* _internal_mutable_auth(); + bool _internal_has_org_name() const; + public: + void clear_org_name(); + const std::string& org_name() const; + template + void set_org_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_org_name(); + PROTOBUF_NODISCARD std::string* release_org_name(); + void set_allocated_org_name(std::string* org_name); + private: + const std::string& _internal_org_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_org_name(const std::string& value); + std::string* _internal_mutable_org_name(); + public: + // optional string cid = 3 [json_name = "cid"]; + bool has_cid() const; + private: + bool _internal_has_cid() const; public: - // @@protoc_insertion_point(class_scope:viam.app.v1.CreateLocationSecretResponse) + void clear_cid(); + const std::string& cid() const; + template + void set_cid(ArgT0&& arg0, ArgT... args); + std::string* mutable_cid(); + PROTOBUF_NODISCARD std::string* release_cid(); + void set_allocated_cid(std::string* cid); + private: + const std::string& _internal_cid() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_cid(const std::string& value); + std::string* _internal_mutable_cid(); + public: + + // optional string public_namespace = 4 [json_name = "publicNamespace"]; + bool has_public_namespace() const; + private: + bool _internal_has_public_namespace() const; + public: + void clear_public_namespace(); + const std::string& public_namespace() const; + template + void set_public_namespace(ArgT0&& arg0, ArgT... args); + std::string* mutable_public_namespace(); + PROTOBUF_NODISCARD std::string* release_public_namespace(); + void set_allocated_public_namespace(std::string* public_namespace); + private: + const std::string& _internal_public_namespace() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_public_namespace(const std::string& value); + std::string* _internal_mutable_public_namespace(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.SearchOrganizationsRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::viam::app::v1::LocationAuth* auth_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr org_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr org_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr cid_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr public_namespace_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class UpdateLocationResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.UpdateLocationResponse) */ { +class SearchOrganizationsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.SearchOrganizationsResponse) */ { public: - inline UpdateLocationResponse() : UpdateLocationResponse(nullptr) {} - ~UpdateLocationResponse() override; - template - explicit PROTOBUF_CONSTEXPR UpdateLocationResponse(::google::protobuf::internal::ConstantInitialized); + inline SearchOrganizationsResponse() : SearchOrganizationsResponse(nullptr) {} + ~SearchOrganizationsResponse() override; + explicit PROTOBUF_CONSTEXPR SearchOrganizationsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline UpdateLocationResponse(const UpdateLocationResponse& from) - : UpdateLocationResponse(nullptr, from) {} - UpdateLocationResponse(UpdateLocationResponse&& from) noexcept - : UpdateLocationResponse() { + SearchOrganizationsResponse(const SearchOrganizationsResponse& from); + SearchOrganizationsResponse(SearchOrganizationsResponse&& from) noexcept + : SearchOrganizationsResponse() { *this = ::std::move(from); } - inline UpdateLocationResponse& operator=(const UpdateLocationResponse& from) { + inline SearchOrganizationsResponse& operator=(const SearchOrganizationsResponse& from) { CopyFrom(from); return *this; } - inline UpdateLocationResponse& operator=(UpdateLocationResponse&& from) noexcept { + inline SearchOrganizationsResponse& operator=(SearchOrganizationsResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -37035,178 +32404,149 @@ class UpdateLocationResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const UpdateLocationResponse& default_instance() { + static const SearchOrganizationsResponse& default_instance() { return *internal_default_instance(); } - static inline const UpdateLocationResponse* internal_default_instance() { - return reinterpret_cast( - &_UpdateLocationResponse_default_instance_); + static inline const SearchOrganizationsResponse* internal_default_instance() { + return reinterpret_cast( + &_SearchOrganizationsResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 55; + 185; - friend void swap(UpdateLocationResponse& a, UpdateLocationResponse& b) { + friend void swap(SearchOrganizationsResponse& a, SearchOrganizationsResponse& b) { a.Swap(&b); } - inline void Swap(UpdateLocationResponse* other) { + inline void Swap(SearchOrganizationsResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(UpdateLocationResponse* other) { + void UnsafeArenaSwap(SearchOrganizationsResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - UpdateLocationResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const UpdateLocationResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const UpdateLocationResponse& from) { - UpdateLocationResponse::MergeImpl(*this, from); + SearchOrganizationsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SearchOrganizationsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const SearchOrganizationsResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(UpdateLocationResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(SearchOrganizationsResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.UpdateLocationResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.SearchOrganizationsResponse"; } protected: - explicit UpdateLocationResponse(::google::protobuf::Arena* arena); - UpdateLocationResponse(::google::protobuf::Arena* arena, const UpdateLocationResponse& from); + explicit SearchOrganizationsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kLocationFieldNumber = 1, + kOrganizationsFieldNumber = 1, }; - // .viam.app.v1.Location location = 1 [json_name = "location"]; - bool has_location() const; - void clear_location() ; - const ::viam::app::v1::Location& location() const; - PROTOBUF_NODISCARD ::viam::app::v1::Location* release_location(); - ::viam::app::v1::Location* mutable_location(); - void set_allocated_location(::viam::app::v1::Location* value); - void unsafe_arena_set_allocated_location(::viam::app::v1::Location* value); - ::viam::app::v1::Location* unsafe_arena_release_location(); - + // repeated .viam.app.v1.OrgDetails organizations = 1 [json_name = "organizations"]; + int organizations_size() const; private: - const ::viam::app::v1::Location& _internal_location() const; - ::viam::app::v1::Location* _internal_mutable_location(); - + int _internal_organizations_size() const; public: - // @@protoc_insertion_point(class_scope:viam.app.v1.UpdateLocationResponse) + void clear_organizations(); + ::viam::app::v1::OrgDetails* mutable_organizations(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::OrgDetails >* + mutable_organizations(); + private: + const ::viam::app::v1::OrgDetails& _internal_organizations(int index) const; + ::viam::app::v1::OrgDetails* _internal_add_organizations(); + public: + const ::viam::app::v1::OrgDetails& organizations(int index) const; + ::viam::app::v1::OrgDetails* add_organizations(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::OrgDetails >& + organizations() const; + + // @@protoc_insertion_point(class_scope:viam.app.v1.SearchOrganizationsResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::viam::app::v1::Location* location_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::OrgDetails > organizations_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class RegistryItem final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.RegistryItem) */ { +class CreateKeyRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.CreateKeyRequest) */ { public: - inline RegistryItem() : RegistryItem(nullptr) {} - ~RegistryItem() override; - template - explicit PROTOBUF_CONSTEXPR RegistryItem(::google::protobuf::internal::ConstantInitialized); + inline CreateKeyRequest() : CreateKeyRequest(nullptr) {} + ~CreateKeyRequest() override; + explicit PROTOBUF_CONSTEXPR CreateKeyRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline RegistryItem(const RegistryItem& from) - : RegistryItem(nullptr, from) {} - RegistryItem(RegistryItem&& from) noexcept - : RegistryItem() { + CreateKeyRequest(const CreateKeyRequest& from); + CreateKeyRequest(CreateKeyRequest&& from) noexcept + : CreateKeyRequest() { *this = ::std::move(from); } - inline RegistryItem& operator=(const RegistryItem& from) { + inline CreateKeyRequest& operator=(const CreateKeyRequest& from) { CopyFrom(from); return *this; } - inline RegistryItem& operator=(RegistryItem&& from) noexcept { + inline CreateKeyRequest& operator=(CreateKeyRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -37216,459 +32556,165 @@ class RegistryItem final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const RegistryItem& default_instance() { + static const CreateKeyRequest& default_instance() { return *internal_default_instance(); } - enum MetadataCase { - kModuleMetadata = 11, - kMlModelMetadata = 12, - kMlTrainingMetadata = 18, - METADATA_NOT_SET = 0, - }; - - static inline const RegistryItem* internal_default_instance() { - return reinterpret_cast( - &_RegistryItem_default_instance_); + static inline const CreateKeyRequest* internal_default_instance() { + return reinterpret_cast( + &_CreateKeyRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 147; + 186; - friend void swap(RegistryItem& a, RegistryItem& b) { + friend void swap(CreateKeyRequest& a, CreateKeyRequest& b) { a.Swap(&b); } - inline void Swap(RegistryItem* other) { + inline void Swap(CreateKeyRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RegistryItem* other) { + void UnsafeArenaSwap(CreateKeyRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - RegistryItem* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const RegistryItem& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const RegistryItem& from) { - RegistryItem::MergeImpl(*this, from); + CreateKeyRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CreateKeyRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CreateKeyRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(RegistryItem* other); + void SetCachedSize(int size) const final; + void InternalSwap(CreateKeyRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.RegistryItem"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.CreateKeyRequest"; } protected: - explicit RegistryItem(::google::protobuf::Arena* arena); - RegistryItem(::google::protobuf::Arena* arena, const RegistryItem& from); + explicit CreateKeyRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kItemIdFieldNumber = 1, - kOrganizationIdFieldNumber = 2, - kPublicNamespaceFieldNumber = 3, - kNameFieldNumber = 4, - kUrlFieldNumber = 7, - kDescriptionFieldNumber = 8, - kCreatedAtFieldNumber = 15, - kUpdatedAtFieldNumber = 16, - kTypeFieldNumber = 5, - kVisibilityFieldNumber = 6, - kTotalRobotUsageFieldNumber = 9, - kTotalOrganizationUsageFieldNumber = 10, - kTotalExternalRobotUsageFieldNumber = 13, - kTotalExternalOrganizationUsageFieldNumber = 14, - kModuleMetadataFieldNumber = 11, - kMlModelMetadataFieldNumber = 12, - kMlTrainingMetadataFieldNumber = 18, + kAuthorizationsFieldNumber = 1, + kNameFieldNumber = 2, }; - // string item_id = 1 [json_name = "itemId"]; - void clear_item_id() ; - const std::string& item_id() const; - template - void set_item_id(Arg_&& arg, Args_... args); - std::string* mutable_item_id(); - PROTOBUF_NODISCARD std::string* release_item_id(); - void set_allocated_item_id(std::string* value); - + // repeated .viam.app.v1.Authorization authorizations = 1 [json_name = "authorizations"]; + int authorizations_size() const; private: - const std::string& _internal_item_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_item_id( - const std::string& value); - std::string* _internal_mutable_item_id(); - + int _internal_authorizations_size() const; public: - // string organization_id = 2 [json_name = "organizationId"]; - void clear_organization_id() ; - const std::string& organization_id() const; - template - void set_organization_id(Arg_&& arg, Args_... args); - std::string* mutable_organization_id(); - PROTOBUF_NODISCARD std::string* release_organization_id(); - void set_allocated_organization_id(std::string* value); - + void clear_authorizations(); + ::viam::app::v1::Authorization* mutable_authorizations(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Authorization >* + mutable_authorizations(); private: - const std::string& _internal_organization_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id( - const std::string& value); - std::string* _internal_mutable_organization_id(); - + const ::viam::app::v1::Authorization& _internal_authorizations(int index) const; + ::viam::app::v1::Authorization* _internal_add_authorizations(); public: - // string public_namespace = 3 [json_name = "publicNamespace"]; - void clear_public_namespace() ; - const std::string& public_namespace() const; - template - void set_public_namespace(Arg_&& arg, Args_... args); - std::string* mutable_public_namespace(); - PROTOBUF_NODISCARD std::string* release_public_namespace(); - void set_allocated_public_namespace(std::string* value); - - private: - const std::string& _internal_public_namespace() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_public_namespace( - const std::string& value); - std::string* _internal_mutable_public_namespace(); + const ::viam::app::v1::Authorization& authorizations(int index) const; + ::viam::app::v1::Authorization* add_authorizations(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Authorization >& + authorizations() const; - public: - // string name = 4 [json_name = "name"]; - void clear_name() ; + // string name = 2 [json_name = "name"]; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); std::string* _internal_mutable_name(); - - public: - // string url = 7 [json_name = "url"]; - void clear_url() ; - const std::string& url() const; - template - void set_url(Arg_&& arg, Args_... args); - std::string* mutable_url(); - PROTOBUF_NODISCARD std::string* release_url(); - void set_allocated_url(std::string* value); - - private: - const std::string& _internal_url() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_url( - const std::string& value); - std::string* _internal_mutable_url(); - - public: - // string description = 8 [json_name = "description"]; - void clear_description() ; - const std::string& description() const; - template - void set_description(Arg_&& arg, Args_... args); - std::string* mutable_description(); - PROTOBUF_NODISCARD std::string* release_description(); - void set_allocated_description(std::string* value); - - private: - const std::string& _internal_description() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_description( - const std::string& value); - std::string* _internal_mutable_description(); - - public: - // .google.protobuf.Timestamp created_at = 15 [json_name = "createdAt"]; - bool has_created_at() const; - void clear_created_at() ; - const ::google::protobuf::Timestamp& created_at() const; - PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_created_at(); - ::google::protobuf::Timestamp* mutable_created_at(); - void set_allocated_created_at(::google::protobuf::Timestamp* value); - void unsafe_arena_set_allocated_created_at(::google::protobuf::Timestamp* value); - ::google::protobuf::Timestamp* unsafe_arena_release_created_at(); - - private: - const ::google::protobuf::Timestamp& _internal_created_at() const; - ::google::protobuf::Timestamp* _internal_mutable_created_at(); - - public: - // .google.protobuf.Timestamp updated_at = 16 [json_name = "updatedAt"]; - bool has_updated_at() const; - void clear_updated_at() ; - const ::google::protobuf::Timestamp& updated_at() const; - PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_updated_at(); - ::google::protobuf::Timestamp* mutable_updated_at(); - void set_allocated_updated_at(::google::protobuf::Timestamp* value); - void unsafe_arena_set_allocated_updated_at(::google::protobuf::Timestamp* value); - ::google::protobuf::Timestamp* unsafe_arena_release_updated_at(); - - private: - const ::google::protobuf::Timestamp& _internal_updated_at() const; - ::google::protobuf::Timestamp* _internal_mutable_updated_at(); - - public: - // .viam.app.packages.v1.PackageType type = 5 [json_name = "type"]; - void clear_type() ; - ::viam::app::packages::v1::PackageType type() const; - void set_type(::viam::app::packages::v1::PackageType value); - - private: - ::viam::app::packages::v1::PackageType _internal_type() const; - void _internal_set_type(::viam::app::packages::v1::PackageType value); - - public: - // .viam.app.v1.Visibility visibility = 6 [json_name = "visibility"]; - void clear_visibility() ; - ::viam::app::v1::Visibility visibility() const; - void set_visibility(::viam::app::v1::Visibility value); - - private: - ::viam::app::v1::Visibility _internal_visibility() const; - void _internal_set_visibility(::viam::app::v1::Visibility value); - - public: - // int64 total_robot_usage = 9 [json_name = "totalRobotUsage"]; - void clear_total_robot_usage() ; - ::int64_t total_robot_usage() const; - void set_total_robot_usage(::int64_t value); - - private: - ::int64_t _internal_total_robot_usage() const; - void _internal_set_total_robot_usage(::int64_t value); - - public: - // int64 total_organization_usage = 10 [json_name = "totalOrganizationUsage"]; - void clear_total_organization_usage() ; - ::int64_t total_organization_usage() const; - void set_total_organization_usage(::int64_t value); - - private: - ::int64_t _internal_total_organization_usage() const; - void _internal_set_total_organization_usage(::int64_t value); - - public: - // int64 total_external_robot_usage = 13 [json_name = "totalExternalRobotUsage"]; - void clear_total_external_robot_usage() ; - ::int64_t total_external_robot_usage() const; - void set_total_external_robot_usage(::int64_t value); - - private: - ::int64_t _internal_total_external_robot_usage() const; - void _internal_set_total_external_robot_usage(::int64_t value); - - public: - // int64 total_external_organization_usage = 14 [json_name = "totalExternalOrganizationUsage"]; - void clear_total_external_organization_usage() ; - ::int64_t total_external_organization_usage() const; - void set_total_external_organization_usage(::int64_t value); - - private: - ::int64_t _internal_total_external_organization_usage() const; - void _internal_set_total_external_organization_usage(::int64_t value); - - public: - // .viam.app.v1.ModuleMetadata module_metadata = 11 [json_name = "moduleMetadata"]; - bool has_module_metadata() const; - private: - bool _internal_has_module_metadata() const; - - public: - void clear_module_metadata() ; - const ::viam::app::v1::ModuleMetadata& module_metadata() const; - PROTOBUF_NODISCARD ::viam::app::v1::ModuleMetadata* release_module_metadata(); - ::viam::app::v1::ModuleMetadata* mutable_module_metadata(); - void set_allocated_module_metadata(::viam::app::v1::ModuleMetadata* value); - void unsafe_arena_set_allocated_module_metadata(::viam::app::v1::ModuleMetadata* value); - ::viam::app::v1::ModuleMetadata* unsafe_arena_release_module_metadata(); - - private: - const ::viam::app::v1::ModuleMetadata& _internal_module_metadata() const; - ::viam::app::v1::ModuleMetadata* _internal_mutable_module_metadata(); - - public: - // .viam.app.v1.MLModelMetadata ml_model_metadata = 12 [json_name = "mlModelMetadata"]; - bool has_ml_model_metadata() const; - private: - bool _internal_has_ml_model_metadata() const; - - public: - void clear_ml_model_metadata() ; - const ::viam::app::v1::MLModelMetadata& ml_model_metadata() const; - PROTOBUF_NODISCARD ::viam::app::v1::MLModelMetadata* release_ml_model_metadata(); - ::viam::app::v1::MLModelMetadata* mutable_ml_model_metadata(); - void set_allocated_ml_model_metadata(::viam::app::v1::MLModelMetadata* value); - void unsafe_arena_set_allocated_ml_model_metadata(::viam::app::v1::MLModelMetadata* value); - ::viam::app::v1::MLModelMetadata* unsafe_arena_release_ml_model_metadata(); - - private: - const ::viam::app::v1::MLModelMetadata& _internal_ml_model_metadata() const; - ::viam::app::v1::MLModelMetadata* _internal_mutable_ml_model_metadata(); - - public: - // .viam.app.v1.MLTrainingMetadata ml_training_metadata = 18 [json_name = "mlTrainingMetadata"]; - bool has_ml_training_metadata() const; - private: - bool _internal_has_ml_training_metadata() const; - public: - void clear_ml_training_metadata() ; - const ::viam::app::v1::MLTrainingMetadata& ml_training_metadata() const; - PROTOBUF_NODISCARD ::viam::app::v1::MLTrainingMetadata* release_ml_training_metadata(); - ::viam::app::v1::MLTrainingMetadata* mutable_ml_training_metadata(); - void set_allocated_ml_training_metadata(::viam::app::v1::MLTrainingMetadata* value); - void unsafe_arena_set_allocated_ml_training_metadata(::viam::app::v1::MLTrainingMetadata* value); - ::viam::app::v1::MLTrainingMetadata* unsafe_arena_release_ml_training_metadata(); - - private: - const ::viam::app::v1::MLTrainingMetadata& _internal_ml_training_metadata() const; - ::viam::app::v1::MLTrainingMetadata* _internal_mutable_ml_training_metadata(); - public: - void clear_metadata(); - MetadataCase metadata_case() const; - // @@protoc_insertion_point(class_scope:viam.app.v1.RegistryItem) + // @@protoc_insertion_point(class_scope:viam.app.v1.CreateKeyRequest) private: class _Internal; - void set_has_module_metadata(); - void set_has_ml_model_metadata(); - void set_has_ml_training_metadata(); - - inline bool has_metadata() const; - inline void clear_has_metadata(); - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 4, 17, 5, - 105, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr item_id_; - ::google::protobuf::internal::ArenaStringPtr organization_id_; - ::google::protobuf::internal::ArenaStringPtr public_namespace_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr url_; - ::google::protobuf::internal::ArenaStringPtr description_; - ::google::protobuf::Timestamp* created_at_; - ::google::protobuf::Timestamp* updated_at_; - int type_; - int visibility_; - ::int64_t total_robot_usage_; - ::int64_t total_organization_usage_; - ::int64_t total_external_robot_usage_; - ::int64_t total_external_organization_usage_; - union MetadataUnion { - constexpr MetadataUnion() : _constinit_{} {} - ::google::protobuf::internal::ConstantInitialized _constinit_; - ::viam::app::v1::ModuleMetadata* module_metadata_; - ::viam::app::v1::MLModelMetadata* ml_model_metadata_; - ::viam::app::v1::MLTrainingMetadata* ml_training_metadata_; - } metadata_; - ::uint32_t _oneof_case_[1]; - - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Authorization > authorizations_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ListModulesResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ListModulesResponse) */ { +class CreateKeyResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.CreateKeyResponse) */ { public: - inline ListModulesResponse() : ListModulesResponse(nullptr) {} - ~ListModulesResponse() override; - template - explicit PROTOBUF_CONSTEXPR ListModulesResponse(::google::protobuf::internal::ConstantInitialized); + inline CreateKeyResponse() : CreateKeyResponse(nullptr) {} + ~CreateKeyResponse() override; + explicit PROTOBUF_CONSTEXPR CreateKeyResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ListModulesResponse(const ListModulesResponse& from) - : ListModulesResponse(nullptr, from) {} - ListModulesResponse(ListModulesResponse&& from) noexcept - : ListModulesResponse() { + CreateKeyResponse(const CreateKeyResponse& from); + CreateKeyResponse(CreateKeyResponse&& from) noexcept + : CreateKeyResponse() { *this = ::std::move(from); } - inline ListModulesResponse& operator=(const ListModulesResponse& from) { + inline CreateKeyResponse& operator=(const CreateKeyResponse& from) { CopyFrom(from); return *this; } - inline ListModulesResponse& operator=(ListModulesResponse&& from) noexcept { + inline CreateKeyResponse& operator=(CreateKeyResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -37678,180 +32724,161 @@ class ListModulesResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ListModulesResponse& default_instance() { + static const CreateKeyResponse& default_instance() { return *internal_default_instance(); } - static inline const ListModulesResponse* internal_default_instance() { - return reinterpret_cast( - &_ListModulesResponse_default_instance_); + static inline const CreateKeyResponse* internal_default_instance() { + return reinterpret_cast( + &_CreateKeyResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 174; + 187; - friend void swap(ListModulesResponse& a, ListModulesResponse& b) { + friend void swap(CreateKeyResponse& a, CreateKeyResponse& b) { a.Swap(&b); } - inline void Swap(ListModulesResponse* other) { + inline void Swap(CreateKeyResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ListModulesResponse* other) { + void UnsafeArenaSwap(CreateKeyResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ListModulesResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ListModulesResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ListModulesResponse& from) { - ListModulesResponse::MergeImpl(*this, from); + CreateKeyResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CreateKeyResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CreateKeyResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ListModulesResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(CreateKeyResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.ListModulesResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.CreateKeyResponse"; } protected: - explicit ListModulesResponse(::google::protobuf::Arena* arena); - ListModulesResponse(::google::protobuf::Arena* arena, const ListModulesResponse& from); + explicit CreateKeyResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kModulesFieldNumber = 1, + kKeyFieldNumber = 1, + kIdFieldNumber = 2, }; - // repeated .viam.app.v1.Module modules = 1 [json_name = "modules"]; - int modules_size() const; + // string key = 1 [json_name = "key"]; + void clear_key(); + const std::string& key() const; + template + void set_key(ArgT0&& arg0, ArgT... args); + std::string* mutable_key(); + PROTOBUF_NODISCARD std::string* release_key(); + void set_allocated_key(std::string* key); private: - int _internal_modules_size() const; - + const std::string& _internal_key() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_key(const std::string& value); + std::string* _internal_mutable_key(); public: - void clear_modules() ; - ::viam::app::v1::Module* mutable_modules(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Module >* - mutable_modules(); + + // string id = 2 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); private: - const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Module>& _internal_modules() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::Module>* _internal_mutable_modules(); + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); public: - const ::viam::app::v1::Module& modules(int index) const; - ::viam::app::v1::Module* add_modules(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Module >& - modules() const; - // @@protoc_insertion_point(class_scope:viam.app.v1.ListModulesResponse) + + // @@protoc_insertion_point(class_scope:viam.app.v1.CreateKeyResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Module > modules_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr key_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ListLocationsResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ListLocationsResponse) */ { +class DeleteKeyRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.DeleteKeyRequest) */ { public: - inline ListLocationsResponse() : ListLocationsResponse(nullptr) {} - ~ListLocationsResponse() override; - template - explicit PROTOBUF_CONSTEXPR ListLocationsResponse(::google::protobuf::internal::ConstantInitialized); + inline DeleteKeyRequest() : DeleteKeyRequest(nullptr) {} + ~DeleteKeyRequest() override; + explicit PROTOBUF_CONSTEXPR DeleteKeyRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ListLocationsResponse(const ListLocationsResponse& from) - : ListLocationsResponse(nullptr, from) {} - ListLocationsResponse(ListLocationsResponse&& from) noexcept - : ListLocationsResponse() { + DeleteKeyRequest(const DeleteKeyRequest& from); + DeleteKeyRequest(DeleteKeyRequest&& from) noexcept + : DeleteKeyRequest() { *this = ::std::move(from); } - inline ListLocationsResponse& operator=(const ListLocationsResponse& from) { + inline DeleteKeyRequest& operator=(const DeleteKeyRequest& from) { CopyFrom(from); return *this; } - inline ListLocationsResponse& operator=(ListLocationsResponse&& from) noexcept { + inline DeleteKeyRequest& operator=(DeleteKeyRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -37861,180 +32888,144 @@ class ListLocationsResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ListLocationsResponse& default_instance() { + static const DeleteKeyRequest& default_instance() { return *internal_default_instance(); } - static inline const ListLocationsResponse* internal_default_instance() { - return reinterpret_cast( - &_ListLocationsResponse_default_instance_); + static inline const DeleteKeyRequest* internal_default_instance() { + return reinterpret_cast( + &_DeleteKeyRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 65; + 188; - friend void swap(ListLocationsResponse& a, ListLocationsResponse& b) { + friend void swap(DeleteKeyRequest& a, DeleteKeyRequest& b) { a.Swap(&b); } - inline void Swap(ListLocationsResponse* other) { + inline void Swap(DeleteKeyRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ListLocationsResponse* other) { + void UnsafeArenaSwap(DeleteKeyRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ListLocationsResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ListLocationsResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ListLocationsResponse& from) { - ListLocationsResponse::MergeImpl(*this, from); + DeleteKeyRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DeleteKeyRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const DeleteKeyRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ListLocationsResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(DeleteKeyRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.ListLocationsResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.DeleteKeyRequest"; } protected: - explicit ListLocationsResponse(::google::protobuf::Arena* arena); - ListLocationsResponse(::google::protobuf::Arena* arena, const ListLocationsResponse& from); + explicit DeleteKeyRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kLocationsFieldNumber = 1, + kIdFieldNumber = 1, }; - // repeated .viam.app.v1.Location locations = 1 [json_name = "locations"]; - int locations_size() const; - private: - int _internal_locations_size() const; - - public: - void clear_locations() ; - ::viam::app::v1::Location* mutable_locations(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Location >* - mutable_locations(); + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); private: - const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Location>& _internal_locations() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::Location>* _internal_mutable_locations(); + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); public: - const ::viam::app::v1::Location& locations(int index) const; - ::viam::app::v1::Location* add_locations(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Location >& - locations() const; - // @@protoc_insertion_point(class_scope:viam.app.v1.ListLocationsResponse) + + // @@protoc_insertion_point(class_scope:viam.app.v1.DeleteKeyRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::Location > locations_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetRobotPartHistoryResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetRobotPartHistoryResponse) */ { +class DeleteKeyResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.DeleteKeyResponse) */ { public: - inline GetRobotPartHistoryResponse() : GetRobotPartHistoryResponse(nullptr) {} - ~GetRobotPartHistoryResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetRobotPartHistoryResponse(::google::protobuf::internal::ConstantInitialized); + inline DeleteKeyResponse() : DeleteKeyResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR DeleteKeyResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetRobotPartHistoryResponse(const GetRobotPartHistoryResponse& from) - : GetRobotPartHistoryResponse(nullptr, from) {} - GetRobotPartHistoryResponse(GetRobotPartHistoryResponse&& from) noexcept - : GetRobotPartHistoryResponse() { + DeleteKeyResponse(const DeleteKeyResponse& from); + DeleteKeyResponse(DeleteKeyResponse&& from) noexcept + : DeleteKeyResponse() { *this = ::std::move(from); } - inline GetRobotPartHistoryResponse& operator=(const GetRobotPartHistoryResponse& from) { + inline DeleteKeyResponse& operator=(const DeleteKeyResponse& from) { CopyFrom(from); return *this; } - inline GetRobotPartHistoryResponse& operator=(GetRobotPartHistoryResponse&& from) noexcept { + inline DeleteKeyResponse& operator=(DeleteKeyResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -38044,180 +33035,114 @@ class GetRobotPartHistoryResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetRobotPartHistoryResponse& default_instance() { + static const DeleteKeyResponse& default_instance() { return *internal_default_instance(); } - static inline const GetRobotPartHistoryResponse* internal_default_instance() { - return reinterpret_cast( - &_GetRobotPartHistoryResponse_default_instance_); + static inline const DeleteKeyResponse* internal_default_instance() { + return reinterpret_cast( + &_DeleteKeyResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 86; + 189; - friend void swap(GetRobotPartHistoryResponse& a, GetRobotPartHistoryResponse& b) { + friend void swap(DeleteKeyResponse& a, DeleteKeyResponse& b) { a.Swap(&b); } - inline void Swap(GetRobotPartHistoryResponse* other) { + inline void Swap(DeleteKeyResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetRobotPartHistoryResponse* other) { + void UnsafeArenaSwap(DeleteKeyResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetRobotPartHistoryResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + DeleteKeyResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetRobotPartHistoryResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetRobotPartHistoryResponse& from) { - GetRobotPartHistoryResponse::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const DeleteKeyResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const DeleteKeyResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetRobotPartHistoryResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.GetRobotPartHistoryResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.DeleteKeyResponse"; } protected: - explicit GetRobotPartHistoryResponse(::google::protobuf::Arena* arena); - GetRobotPartHistoryResponse(::google::protobuf::Arena* arena, const GetRobotPartHistoryResponse& from); + explicit DeleteKeyResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kHistoryFieldNumber = 1, - }; - // repeated .viam.app.v1.RobotPartHistoryEntry history = 1 [json_name = "history"]; - int history_size() const; - private: - int _internal_history_size() const; - - public: - void clear_history() ; - ::viam::app::v1::RobotPartHistoryEntry* mutable_history(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::RobotPartHistoryEntry >* - mutable_history(); - private: - const ::google::protobuf::RepeatedPtrField<::viam::app::v1::RobotPartHistoryEntry>& _internal_history() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::RobotPartHistoryEntry>* _internal_mutable_history(); - public: - const ::viam::app::v1::RobotPartHistoryEntry& history(int index) const; - ::viam::app::v1::RobotPartHistoryEntry* add_history(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::RobotPartHistoryEntry >& - history() const; - // @@protoc_insertion_point(class_scope:viam.app.v1.GetRobotPartHistoryResponse) + // @@protoc_insertion_point(class_scope:viam.app.v1.DeleteKeyResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::RobotPartHistoryEntry > history_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetModuleResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetModuleResponse) */ { +class RenameKeyRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.RenameKeyRequest) */ { public: - inline GetModuleResponse() : GetModuleResponse(nullptr) {} - ~GetModuleResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetModuleResponse(::google::protobuf::internal::ConstantInitialized); + inline RenameKeyRequest() : RenameKeyRequest(nullptr) {} + ~RenameKeyRequest() override; + explicit PROTOBUF_CONSTEXPR RenameKeyRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetModuleResponse(const GetModuleResponse& from) - : GetModuleResponse(nullptr, from) {} - GetModuleResponse(GetModuleResponse&& from) noexcept - : GetModuleResponse() { + RenameKeyRequest(const RenameKeyRequest& from); + RenameKeyRequest(RenameKeyRequest&& from) noexcept + : RenameKeyRequest() { *this = ::std::move(from); } - inline GetModuleResponse& operator=(const GetModuleResponse& from) { + inline RenameKeyRequest& operator=(const RenameKeyRequest& from) { CopyFrom(from); return *this; } - inline GetModuleResponse& operator=(GetModuleResponse&& from) noexcept { + inline RenameKeyRequest& operator=(RenameKeyRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -38227,178 +33152,161 @@ class GetModuleResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetModuleResponse& default_instance() { + static const RenameKeyRequest& default_instance() { return *internal_default_instance(); } - static inline const GetModuleResponse* internal_default_instance() { - return reinterpret_cast( - &_GetModuleResponse_default_instance_); + static inline const RenameKeyRequest* internal_default_instance() { + return reinterpret_cast( + &_RenameKeyRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 169; + 190; - friend void swap(GetModuleResponse& a, GetModuleResponse& b) { + friend void swap(RenameKeyRequest& a, RenameKeyRequest& b) { a.Swap(&b); } - inline void Swap(GetModuleResponse* other) { + inline void Swap(RenameKeyRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetModuleResponse* other) { + void UnsafeArenaSwap(RenameKeyRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetModuleResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetModuleResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetModuleResponse& from) { - GetModuleResponse::MergeImpl(*this, from); + RenameKeyRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const RenameKeyRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const RenameKeyRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetModuleResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(RenameKeyRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.GetModuleResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.RenameKeyRequest"; } protected: - explicit GetModuleResponse(::google::protobuf::Arena* arena); - GetModuleResponse(::google::protobuf::Arena* arena, const GetModuleResponse& from); + explicit RenameKeyRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kModuleFieldNumber = 1, + kIdFieldNumber = 1, + kNameFieldNumber = 2, }; - // .viam.app.v1.Module module = 1 [json_name = "module"]; - bool has_module() const; - void clear_module() ; - const ::viam::app::v1::Module& module() const; - PROTOBUF_NODISCARD ::viam::app::v1::Module* release_module(); - ::viam::app::v1::Module* mutable_module(); - void set_allocated_module(::viam::app::v1::Module* value); - void unsafe_arena_set_allocated_module(::viam::app::v1::Module* value); - ::viam::app::v1::Module* unsafe_arena_release_module(); - + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); private: - const ::viam::app::v1::Module& _internal_module() const; - ::viam::app::v1::Module* _internal_mutable_module(); + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + // string name = 2 [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: - // @@protoc_insertion_point(class_scope:viam.app.v1.GetModuleResponse) + + // @@protoc_insertion_point(class_scope:viam.app.v1.RenameKeyRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::viam::app::v1::Module* module_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetLocationResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetLocationResponse) */ { +class RenameKeyResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.RenameKeyResponse) */ { public: - inline GetLocationResponse() : GetLocationResponse(nullptr) {} - ~GetLocationResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetLocationResponse(::google::protobuf::internal::ConstantInitialized); + inline RenameKeyResponse() : RenameKeyResponse(nullptr) {} + ~RenameKeyResponse() override; + explicit PROTOBUF_CONSTEXPR RenameKeyResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetLocationResponse(const GetLocationResponse& from) - : GetLocationResponse(nullptr, from) {} - GetLocationResponse(GetLocationResponse&& from) noexcept - : GetLocationResponse() { + RenameKeyResponse(const RenameKeyResponse& from); + RenameKeyResponse(RenameKeyResponse&& from) noexcept + : RenameKeyResponse() { *this = ::std::move(from); } - inline GetLocationResponse& operator=(const GetLocationResponse& from) { + inline RenameKeyResponse& operator=(const RenameKeyResponse& from) { CopyFrom(from); return *this; } - inline GetLocationResponse& operator=(GetLocationResponse&& from) noexcept { + inline RenameKeyResponse& operator=(RenameKeyResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -38408,178 +33316,161 @@ class GetLocationResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetLocationResponse& default_instance() { + static const RenameKeyResponse& default_instance() { return *internal_default_instance(); } - static inline const GetLocationResponse* internal_default_instance() { - return reinterpret_cast( - &_GetLocationResponse_default_instance_); + static inline const RenameKeyResponse* internal_default_instance() { + return reinterpret_cast( + &_RenameKeyResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 53; + 191; - friend void swap(GetLocationResponse& a, GetLocationResponse& b) { + friend void swap(RenameKeyResponse& a, RenameKeyResponse& b) { a.Swap(&b); } - inline void Swap(GetLocationResponse* other) { + inline void Swap(RenameKeyResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetLocationResponse* other) { + void UnsafeArenaSwap(RenameKeyResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetLocationResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetLocationResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetLocationResponse& from) { - GetLocationResponse::MergeImpl(*this, from); + RenameKeyResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const RenameKeyResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const RenameKeyResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetLocationResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(RenameKeyResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.GetLocationResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.RenameKeyResponse"; } protected: - explicit GetLocationResponse(::google::protobuf::Arena* arena); - GetLocationResponse(::google::protobuf::Arena* arena, const GetLocationResponse& from); + explicit RenameKeyResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kLocationFieldNumber = 1, + kIdFieldNumber = 1, + kNameFieldNumber = 2, }; - // .viam.app.v1.Location location = 1 [json_name = "location"]; - bool has_location() const; - void clear_location() ; - const ::viam::app::v1::Location& location() const; - PROTOBUF_NODISCARD ::viam::app::v1::Location* release_location(); - ::viam::app::v1::Location* mutable_location(); - void set_allocated_location(::viam::app::v1::Location* value); - void unsafe_arena_set_allocated_location(::viam::app::v1::Location* value); - ::viam::app::v1::Location* unsafe_arena_release_location(); - + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); private: - const ::viam::app::v1::Location& _internal_location() const; - ::viam::app::v1::Location* _internal_mutable_location(); + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + // string name = 2 [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: - // @@protoc_insertion_point(class_scope:viam.app.v1.GetLocationResponse) + + // @@protoc_insertion_point(class_scope:viam.app.v1.RenameKeyResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::viam::app::v1::Location* location_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class CreateLocationResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.CreateLocationResponse) */ { +class AuthorizationDetails final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.AuthorizationDetails) */ { public: - inline CreateLocationResponse() : CreateLocationResponse(nullptr) {} - ~CreateLocationResponse() override; - template - explicit PROTOBUF_CONSTEXPR CreateLocationResponse(::google::protobuf::internal::ConstantInitialized); + inline AuthorizationDetails() : AuthorizationDetails(nullptr) {} + ~AuthorizationDetails() override; + explicit PROTOBUF_CONSTEXPR AuthorizationDetails(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline CreateLocationResponse(const CreateLocationResponse& from) - : CreateLocationResponse(nullptr, from) {} - CreateLocationResponse(CreateLocationResponse&& from) noexcept - : CreateLocationResponse() { + AuthorizationDetails(const AuthorizationDetails& from); + AuthorizationDetails(AuthorizationDetails&& from) noexcept + : AuthorizationDetails() { *this = ::std::move(from); } - inline CreateLocationResponse& operator=(const CreateLocationResponse& from) { + inline AuthorizationDetails& operator=(const AuthorizationDetails& from) { CopyFrom(from); return *this; } - inline CreateLocationResponse& operator=(CreateLocationResponse&& from) noexcept { + inline AuthorizationDetails& operator=(AuthorizationDetails&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -38589,178 +33480,209 @@ class CreateLocationResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CreateLocationResponse& default_instance() { + static const AuthorizationDetails& default_instance() { return *internal_default_instance(); } - static inline const CreateLocationResponse* internal_default_instance() { - return reinterpret_cast( - &_CreateLocationResponse_default_instance_); + static inline const AuthorizationDetails* internal_default_instance() { + return reinterpret_cast( + &_AuthorizationDetails_default_instance_); } static constexpr int kIndexInFileMessages = - 51; + 192; - friend void swap(CreateLocationResponse& a, CreateLocationResponse& b) { + friend void swap(AuthorizationDetails& a, AuthorizationDetails& b) { a.Swap(&b); } - inline void Swap(CreateLocationResponse* other) { + inline void Swap(AuthorizationDetails* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CreateLocationResponse* other) { + void UnsafeArenaSwap(AuthorizationDetails* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CreateLocationResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const CreateLocationResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CreateLocationResponse& from) { - CreateLocationResponse::MergeImpl(*this, from); + AuthorizationDetails* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const AuthorizationDetails& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const AuthorizationDetails& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(CreateLocationResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(AuthorizationDetails* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.CreateLocationResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.AuthorizationDetails"; } protected: - explicit CreateLocationResponse(::google::protobuf::Arena* arena); - CreateLocationResponse(::google::protobuf::Arena* arena, const CreateLocationResponse& from); + explicit AuthorizationDetails(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kLocationFieldNumber = 1, + kAuthorizationTypeFieldNumber = 1, + kAuthorizationIdFieldNumber = 2, + kResourceTypeFieldNumber = 3, + kResourceIdFieldNumber = 4, + kOrgIdFieldNumber = 5, }; - // .viam.app.v1.Location location = 1 [json_name = "location"]; - bool has_location() const; - void clear_location() ; - const ::viam::app::v1::Location& location() const; - PROTOBUF_NODISCARD ::viam::app::v1::Location* release_location(); - ::viam::app::v1::Location* mutable_location(); - void set_allocated_location(::viam::app::v1::Location* value); - void unsafe_arena_set_allocated_location(::viam::app::v1::Location* value); - ::viam::app::v1::Location* unsafe_arena_release_location(); + // string authorization_type = 1 [json_name = "authorizationType"]; + void clear_authorization_type(); + const std::string& authorization_type() const; + template + void set_authorization_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_authorization_type(); + PROTOBUF_NODISCARD std::string* release_authorization_type(); + void set_allocated_authorization_type(std::string* authorization_type); + private: + const std::string& _internal_authorization_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_authorization_type(const std::string& value); + std::string* _internal_mutable_authorization_type(); + public: + // string authorization_id = 2 [json_name = "authorizationId"]; + void clear_authorization_id(); + const std::string& authorization_id() const; + template + void set_authorization_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_authorization_id(); + PROTOBUF_NODISCARD std::string* release_authorization_id(); + void set_allocated_authorization_id(std::string* authorization_id); private: - const ::viam::app::v1::Location& _internal_location() const; - ::viam::app::v1::Location* _internal_mutable_location(); + const std::string& _internal_authorization_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_authorization_id(const std::string& value); + std::string* _internal_mutable_authorization_id(); + public: + + // string resource_type = 3 [json_name = "resourceType"]; + void clear_resource_type(); + const std::string& resource_type() const; + template + void set_resource_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_resource_type(); + PROTOBUF_NODISCARD std::string* release_resource_type(); + void set_allocated_resource_type(std::string* resource_type); + private: + const std::string& _internal_resource_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_resource_type(const std::string& value); + std::string* _internal_mutable_resource_type(); + public: + // string resource_id = 4 [json_name = "resourceId"]; + void clear_resource_id(); + const std::string& resource_id() const; + template + void set_resource_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_resource_id(); + PROTOBUF_NODISCARD std::string* release_resource_id(); + void set_allocated_resource_id(std::string* resource_id); + private: + const std::string& _internal_resource_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_resource_id(const std::string& value); + std::string* _internal_mutable_resource_id(); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.CreateLocationResponse) + + // string org_id = 5 [json_name = "orgId"]; + void clear_org_id(); + const std::string& org_id() const; + template + void set_org_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_org_id(); + PROTOBUF_NODISCARD std::string* release_org_id(); + void set_allocated_org_id(std::string* org_id); + private: + const std::string& _internal_org_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_org_id(const std::string& value); + std::string* _internal_mutable_org_id(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.AuthorizationDetails) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::viam::app::v1::Location* location_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr authorization_type_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr authorization_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr resource_type_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr resource_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr org_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ListRegistryItemsResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ListRegistryItemsResponse) */ { +class APIKeyWithAuthorizations final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.APIKeyWithAuthorizations) */ { public: - inline ListRegistryItemsResponse() : ListRegistryItemsResponse(nullptr) {} - ~ListRegistryItemsResponse() override; - template - explicit PROTOBUF_CONSTEXPR ListRegistryItemsResponse(::google::protobuf::internal::ConstantInitialized); + inline APIKeyWithAuthorizations() : APIKeyWithAuthorizations(nullptr) {} + ~APIKeyWithAuthorizations() override; + explicit PROTOBUF_CONSTEXPR APIKeyWithAuthorizations(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ListRegistryItemsResponse(const ListRegistryItemsResponse& from) - : ListRegistryItemsResponse(nullptr, from) {} - ListRegistryItemsResponse(ListRegistryItemsResponse&& from) noexcept - : ListRegistryItemsResponse() { + APIKeyWithAuthorizations(const APIKeyWithAuthorizations& from); + APIKeyWithAuthorizations(APIKeyWithAuthorizations&& from) noexcept + : APIKeyWithAuthorizations() { *this = ::std::move(from); } - inline ListRegistryItemsResponse& operator=(const ListRegistryItemsResponse& from) { + inline APIKeyWithAuthorizations& operator=(const APIKeyWithAuthorizations& from) { CopyFrom(from); return *this; } - inline ListRegistryItemsResponse& operator=(ListRegistryItemsResponse&& from) noexcept { + inline APIKeyWithAuthorizations& operator=(APIKeyWithAuthorizations&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -38770,180 +33692,169 @@ class ListRegistryItemsResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ListRegistryItemsResponse& default_instance() { + static const APIKeyWithAuthorizations& default_instance() { return *internal_default_instance(); } - static inline const ListRegistryItemsResponse* internal_default_instance() { - return reinterpret_cast( - &_ListRegistryItemsResponse_default_instance_); + static inline const APIKeyWithAuthorizations* internal_default_instance() { + return reinterpret_cast( + &_APIKeyWithAuthorizations_default_instance_); } static constexpr int kIndexInFileMessages = - 155; + 193; - friend void swap(ListRegistryItemsResponse& a, ListRegistryItemsResponse& b) { + friend void swap(APIKeyWithAuthorizations& a, APIKeyWithAuthorizations& b) { a.Swap(&b); } - inline void Swap(ListRegistryItemsResponse* other) { + inline void Swap(APIKeyWithAuthorizations* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ListRegistryItemsResponse* other) { + void UnsafeArenaSwap(APIKeyWithAuthorizations* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ListRegistryItemsResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ListRegistryItemsResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ListRegistryItemsResponse& from) { - ListRegistryItemsResponse::MergeImpl(*this, from); + APIKeyWithAuthorizations* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const APIKeyWithAuthorizations& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const APIKeyWithAuthorizations& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ListRegistryItemsResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(APIKeyWithAuthorizations* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.ListRegistryItemsResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.APIKeyWithAuthorizations"; } protected: - explicit ListRegistryItemsResponse(::google::protobuf::Arena* arena); - ListRegistryItemsResponse(::google::protobuf::Arena* arena, const ListRegistryItemsResponse& from); + explicit APIKeyWithAuthorizations(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kItemsFieldNumber = 1, + kAuthorizationsFieldNumber = 2, + kApiKeyFieldNumber = 1, }; - // repeated .viam.app.v1.RegistryItem items = 1 [json_name = "items"]; - int items_size() const; + // repeated .viam.app.v1.AuthorizationDetails authorizations = 2 [json_name = "authorizations"]; + int authorizations_size() const; private: - int _internal_items_size() const; + int _internal_authorizations_size() const; + public: + void clear_authorizations(); + ::viam::app::v1::AuthorizationDetails* mutable_authorizations(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::AuthorizationDetails >* + mutable_authorizations(); + private: + const ::viam::app::v1::AuthorizationDetails& _internal_authorizations(int index) const; + ::viam::app::v1::AuthorizationDetails* _internal_add_authorizations(); + public: + const ::viam::app::v1::AuthorizationDetails& authorizations(int index) const; + ::viam::app::v1::AuthorizationDetails* add_authorizations(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::AuthorizationDetails >& + authorizations() const; + // .viam.app.v1.APIKey api_key = 1 [json_name = "apiKey"]; + bool has_api_key() const; + private: + bool _internal_has_api_key() const; public: - void clear_items() ; - ::viam::app::v1::RegistryItem* mutable_items(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::RegistryItem >* - mutable_items(); + void clear_api_key(); + const ::viam::app::v1::APIKey& api_key() const; + PROTOBUF_NODISCARD ::viam::app::v1::APIKey* release_api_key(); + ::viam::app::v1::APIKey* mutable_api_key(); + void set_allocated_api_key(::viam::app::v1::APIKey* api_key); private: - const ::google::protobuf::RepeatedPtrField<::viam::app::v1::RegistryItem>& _internal_items() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::RegistryItem>* _internal_mutable_items(); + const ::viam::app::v1::APIKey& _internal_api_key() const; + ::viam::app::v1::APIKey* _internal_mutable_api_key(); public: - const ::viam::app::v1::RegistryItem& items(int index) const; - ::viam::app::v1::RegistryItem* add_items(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::RegistryItem >& - items() const; - // @@protoc_insertion_point(class_scope:viam.app.v1.ListRegistryItemsResponse) + void unsafe_arena_set_allocated_api_key( + ::viam::app::v1::APIKey* api_key); + ::viam::app::v1::APIKey* unsafe_arena_release_api_key(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.APIKeyWithAuthorizations) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::RegistryItem > items_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::AuthorizationDetails > authorizations_; + ::viam::app::v1::APIKey* api_key_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetRegistryItemResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetRegistryItemResponse) */ { +class ListKeysRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ListKeysRequest) */ { public: - inline GetRegistryItemResponse() : GetRegistryItemResponse(nullptr) {} - ~GetRegistryItemResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetRegistryItemResponse(::google::protobuf::internal::ConstantInitialized); + inline ListKeysRequest() : ListKeysRequest(nullptr) {} + ~ListKeysRequest() override; + explicit PROTOBUF_CONSTEXPR ListKeysRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetRegistryItemResponse(const GetRegistryItemResponse& from) - : GetRegistryItemResponse(nullptr, from) {} - GetRegistryItemResponse(GetRegistryItemResponse&& from) noexcept - : GetRegistryItemResponse() { + ListKeysRequest(const ListKeysRequest& from); + ListKeysRequest(ListKeysRequest&& from) noexcept + : ListKeysRequest() { *this = ::std::move(from); } - inline GetRegistryItemResponse& operator=(const GetRegistryItemResponse& from) { + inline ListKeysRequest& operator=(const ListKeysRequest& from) { CopyFrom(from); return *this; } - inline GetRegistryItemResponse& operator=(GetRegistryItemResponse&& from) noexcept { + inline ListKeysRequest& operator=(ListKeysRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -38953,24595 +33864,30198 @@ class GetRegistryItemResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetRegistryItemResponse& default_instance() { + static const ListKeysRequest& default_instance() { return *internal_default_instance(); } - static inline const GetRegistryItemResponse* internal_default_instance() { - return reinterpret_cast( - &_GetRegistryItemResponse_default_instance_); + static inline const ListKeysRequest* internal_default_instance() { + return reinterpret_cast( + &_ListKeysRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 149; + 194; - friend void swap(GetRegistryItemResponse& a, GetRegistryItemResponse& b) { + friend void swap(ListKeysRequest& a, ListKeysRequest& b) { a.Swap(&b); } - inline void Swap(GetRegistryItemResponse* other) { + inline void Swap(ListKeysRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetRegistryItemResponse* other) { + void UnsafeArenaSwap(ListKeysRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetRegistryItemResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetRegistryItemResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetRegistryItemResponse& from) { - GetRegistryItemResponse::MergeImpl(*this, from); + ListKeysRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ListKeysRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ListKeysRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetRegistryItemResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(ListKeysRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.GetRegistryItemResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.ListKeysRequest"; } protected: - explicit GetRegistryItemResponse(::google::protobuf::Arena* arena); - GetRegistryItemResponse(::google::protobuf::Arena* arena, const GetRegistryItemResponse& from); + explicit ListKeysRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kItemFieldNumber = 1, + kOrgIdFieldNumber = 1, }; - // .viam.app.v1.RegistryItem item = 1 [json_name = "item"]; - bool has_item() const; - void clear_item() ; - const ::viam::app::v1::RegistryItem& item() const; - PROTOBUF_NODISCARD ::viam::app::v1::RegistryItem* release_item(); - ::viam::app::v1::RegistryItem* mutable_item(); - void set_allocated_item(::viam::app::v1::RegistryItem* value); - void unsafe_arena_set_allocated_item(::viam::app::v1::RegistryItem* value); - ::viam::app::v1::RegistryItem* unsafe_arena_release_item(); - + // string org_id = 1 [json_name = "orgId"]; + void clear_org_id(); + const std::string& org_id() const; + template + void set_org_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_org_id(); + PROTOBUF_NODISCARD std::string* release_org_id(); + void set_allocated_org_id(std::string* org_id); private: - const ::viam::app::v1::RegistryItem& _internal_item() const; - ::viam::app::v1::RegistryItem* _internal_mutable_item(); - + const std::string& _internal_org_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_org_id(const std::string& value); + std::string* _internal_mutable_org_id(); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.GetRegistryItemResponse) + + // @@protoc_insertion_point(class_scope:viam.app.v1.ListKeysRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::viam::app::v1::RegistryItem* item_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr org_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fapp_2eproto; }; - -// =================================================================== - - - - -// =================================================================== - - -#ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ // ------------------------------------------------------------------- -// Robot - -// string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""]; -inline void Robot::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); -} -inline const std::string& Robot::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.Robot.id) - return _internal_id(); -} -template -inline PROTOBUF_ALWAYS_INLINE void Robot::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.Robot.id) -} -inline std::string* Robot::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.Robot.id) - return _s; -} -inline const std::string& Robot::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); -} -inline void Robot::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); -} -inline std::string* Robot::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); -} -inline std::string* Robot::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.Robot.id) - return _impl_.id_.Release(); -} -inline void Robot::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Robot.id) -} - -// string name = 2 [json_name = "name", (.tagger.v1.tags) = "bson:\"name\" json:\"name\""]; -inline void Robot::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); -} -inline const std::string& Robot::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.Robot.name) - return _internal_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE void Robot::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.Robot.name) -} -inline std::string* Robot::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.Robot.name) - return _s; -} -inline const std::string& Robot::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); -} -inline void Robot::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); -} -inline std::string* Robot::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); -} -inline std::string* Robot::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.Robot.name) - return _impl_.name_.Release(); -} -inline void Robot::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Robot.name) -} - -// string location = 3 [json_name = "location", (.tagger.v1.tags) = "bson:\"location\" json:\"location\""]; -inline void Robot::clear_location() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.location_.ClearToEmpty(); -} -inline const std::string& Robot::location() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.Robot.location) - return _internal_location(); -} -template -inline PROTOBUF_ALWAYS_INLINE void Robot::set_location(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.location_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.Robot.location) -} -inline std::string* Robot::mutable_location() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_location(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.Robot.location) - return _s; -} -inline const std::string& Robot::_internal_location() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.location_.Get(); -} -inline void Robot::_internal_set_location(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.location_.Set(value, GetArena()); -} -inline std::string* Robot::_internal_mutable_location() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.location_.Mutable( GetArena()); -} -inline std::string* Robot::release_location() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.Robot.location) - return _impl_.location_.Release(); -} -inline void Robot::set_allocated_location(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.location_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.location_.IsDefault()) { - _impl_.location_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Robot.location) -} +class ListKeysResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ListKeysResponse) */ { + public: + inline ListKeysResponse() : ListKeysResponse(nullptr) {} + ~ListKeysResponse() override; + explicit PROTOBUF_CONSTEXPR ListKeysResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); -// .google.protobuf.Timestamp last_access = 4 [json_name = "lastAccess", (.tagger.v1.tags) = "bson:\"last_access\" json:\"last_access\""]; -inline bool Robot::has_last_access() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.last_access_ != nullptr); - return value; -} -inline const ::google::protobuf::Timestamp& Robot::_internal_last_access() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Timestamp* p = _impl_.last_access_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); -} -inline const ::google::protobuf::Timestamp& Robot::last_access() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.Robot.last_access) - return _internal_last_access(); -} -inline void Robot::unsafe_arena_set_allocated_last_access(::google::protobuf::Timestamp* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.last_access_); - } - _impl_.last_access_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; + ListKeysResponse(const ListKeysResponse& from); + ListKeysResponse(ListKeysResponse&& from) noexcept + : ListKeysResponse() { + *this = ::std::move(from); } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.Robot.last_access) -} -inline ::google::protobuf::Timestamp* Robot::release_last_access() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Timestamp* released = _impl_.last_access_; - _impl_.last_access_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; + inline ListKeysResponse& operator=(const ListKeysResponse& from) { + CopyFrom(from); + return *this; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + inline ListKeysResponse& operator=(ListKeysResponse&& 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; } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::google::protobuf::Timestamp* Robot::unsafe_arena_release_last_access() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.Robot.last_access) - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Timestamp* temp = _impl_.last_access_; - _impl_.last_access_ = nullptr; - return temp; -} -inline ::google::protobuf::Timestamp* Robot::_internal_mutable_last_access() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.last_access_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena()); - _impl_.last_access_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); } - return _impl_.last_access_; -} -inline ::google::protobuf::Timestamp* Robot::mutable_last_access() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Timestamp* _msg = _internal_mutable_last_access(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.Robot.last_access) - return _msg; -} -inline void Robot::set_allocated_last_access(::google::protobuf::Timestamp* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.last_access_); + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; } - - _impl_.last_access_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Robot.last_access) -} - -// .google.protobuf.Timestamp created_on = 5 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\""]; -inline bool Robot::has_created_on() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.created_on_ != nullptr); - return value; -} -inline const ::google::protobuf::Timestamp& Robot::_internal_created_on() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Timestamp* p = _impl_.created_on_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); -} -inline const ::google::protobuf::Timestamp& Robot::created_on() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.Robot.created_on) - return _internal_created_on(); -} -inline void Robot::unsafe_arena_set_allocated_created_on(::google::protobuf::Timestamp* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.created_on_); + static const ListKeysResponse& default_instance() { + return *internal_default_instance(); } - _impl_.created_on_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; - } else { - _impl_._has_bits_[0] &= ~0x00000002u; + static inline const ListKeysResponse* internal_default_instance() { + return reinterpret_cast( + &_ListKeysResponse_default_instance_); } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.Robot.created_on) -} -inline ::google::protobuf::Timestamp* Robot::release_created_on() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + static constexpr int kIndexInFileMessages = + 195; - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Timestamp* released = _impl_.created_on_; - _impl_.created_on_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + friend void swap(ListKeysResponse& a, ListKeysResponse& b) { + a.Swap(&b); } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::google::protobuf::Timestamp* Robot::unsafe_arena_release_created_on() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.Robot.created_on) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Timestamp* temp = _impl_.created_on_; - _impl_.created_on_ = nullptr; - return temp; -} -inline ::google::protobuf::Timestamp* Robot::_internal_mutable_created_on() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.created_on_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena()); - _impl_.created_on_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); + inline void Swap(ListKeysResponse* 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); + } } - return _impl_.created_on_; -} -inline ::google::protobuf::Timestamp* Robot::mutable_created_on() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Timestamp* _msg = _internal_mutable_created_on(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.Robot.created_on) - return _msg; -} -inline void Robot::set_allocated_created_on(::google::protobuf::Timestamp* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.created_on_); + void UnsafeArenaSwap(ListKeysResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); } - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000002u; - } else { - _impl_._has_bits_[0] &= ~0x00000002u; + // implements Message ---------------------------------------------- + + ListKeysResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ListKeysResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ListKeysResponse& 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; - _impl_.created_on_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Robot.created_on) -} + 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(ListKeysResponse* other); -// RobotPart + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.ListKeysResponse"; + } + protected: + explicit ListKeysResponse(::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 { + kApiKeysFieldNumber = 1, + }; + // repeated .viam.app.v1.APIKeyWithAuthorizations api_keys = 1 [json_name = "apiKeys"]; + int api_keys_size() const; + private: + int _internal_api_keys_size() const; + public: + void clear_api_keys(); + ::viam::app::v1::APIKeyWithAuthorizations* mutable_api_keys(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::APIKeyWithAuthorizations >* + mutable_api_keys(); + private: + const ::viam::app::v1::APIKeyWithAuthorizations& _internal_api_keys(int index) const; + ::viam::app::v1::APIKeyWithAuthorizations* _internal_add_api_keys(); + public: + const ::viam::app::v1::APIKeyWithAuthorizations& api_keys(int index) const; + ::viam::app::v1::APIKeyWithAuthorizations* add_api_keys(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::APIKeyWithAuthorizations >& + api_keys() const; + + // @@protoc_insertion_point(class_scope:viam.app.v1.ListKeysResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::APIKeyWithAuthorizations > api_keys_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class RotateKeyRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.RotateKeyRequest) */ { + public: + inline RotateKeyRequest() : RotateKeyRequest(nullptr) {} + ~RotateKeyRequest() override; + explicit PROTOBUF_CONSTEXPR RotateKeyRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + RotateKeyRequest(const RotateKeyRequest& from); + RotateKeyRequest(RotateKeyRequest&& from) noexcept + : RotateKeyRequest() { + *this = ::std::move(from); + } + + inline RotateKeyRequest& operator=(const RotateKeyRequest& from) { + CopyFrom(from); + return *this; + } + inline RotateKeyRequest& operator=(RotateKeyRequest&& 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 RotateKeyRequest& default_instance() { + return *internal_default_instance(); + } + static inline const RotateKeyRequest* internal_default_instance() { + return reinterpret_cast( + &_RotateKeyRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 196; + + friend void swap(RotateKeyRequest& a, RotateKeyRequest& b) { + a.Swap(&b); + } + inline void Swap(RotateKeyRequest* 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(RotateKeyRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + RotateKeyRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const RotateKeyRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const RotateKeyRequest& 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(RotateKeyRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.RotateKeyRequest"; + } + protected: + explicit RotateKeyRequest(::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 { + kIdFieldNumber = 1, + }; + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.RotateKeyRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class RotateKeyResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.RotateKeyResponse) */ { + public: + inline RotateKeyResponse() : RotateKeyResponse(nullptr) {} + ~RotateKeyResponse() override; + explicit PROTOBUF_CONSTEXPR RotateKeyResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + RotateKeyResponse(const RotateKeyResponse& from); + RotateKeyResponse(RotateKeyResponse&& from) noexcept + : RotateKeyResponse() { + *this = ::std::move(from); + } + + inline RotateKeyResponse& operator=(const RotateKeyResponse& from) { + CopyFrom(from); + return *this; + } + inline RotateKeyResponse& operator=(RotateKeyResponse&& 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 RotateKeyResponse& default_instance() { + return *internal_default_instance(); + } + static inline const RotateKeyResponse* internal_default_instance() { + return reinterpret_cast( + &_RotateKeyResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 197; + + friend void swap(RotateKeyResponse& a, RotateKeyResponse& b) { + a.Swap(&b); + } + inline void Swap(RotateKeyResponse* 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(RotateKeyResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + RotateKeyResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const RotateKeyResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const RotateKeyResponse& 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(RotateKeyResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.RotateKeyResponse"; + } + protected: + explicit RotateKeyResponse(::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 { + kIdFieldNumber = 1, + kKeyFieldNumber = 2, + }; + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + + // string key = 2 [json_name = "key"]; + void clear_key(); + const std::string& key() const; + template + void set_key(ArgT0&& arg0, ArgT... args); + std::string* mutable_key(); + PROTOBUF_NODISCARD std::string* release_key(); + void set_allocated_key(std::string* key); + private: + const std::string& _internal_key() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_key(const std::string& value); + std::string* _internal_mutable_key(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.RotateKeyResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr key_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class CreateKeyFromExistingKeyAuthorizationsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsRequest) */ { + public: + inline CreateKeyFromExistingKeyAuthorizationsRequest() : CreateKeyFromExistingKeyAuthorizationsRequest(nullptr) {} + ~CreateKeyFromExistingKeyAuthorizationsRequest() override; + explicit PROTOBUF_CONSTEXPR CreateKeyFromExistingKeyAuthorizationsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + CreateKeyFromExistingKeyAuthorizationsRequest(const CreateKeyFromExistingKeyAuthorizationsRequest& from); + CreateKeyFromExistingKeyAuthorizationsRequest(CreateKeyFromExistingKeyAuthorizationsRequest&& from) noexcept + : CreateKeyFromExistingKeyAuthorizationsRequest() { + *this = ::std::move(from); + } + + inline CreateKeyFromExistingKeyAuthorizationsRequest& operator=(const CreateKeyFromExistingKeyAuthorizationsRequest& from) { + CopyFrom(from); + return *this; + } + inline CreateKeyFromExistingKeyAuthorizationsRequest& operator=(CreateKeyFromExistingKeyAuthorizationsRequest&& 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 CreateKeyFromExistingKeyAuthorizationsRequest& default_instance() { + return *internal_default_instance(); + } + static inline const CreateKeyFromExistingKeyAuthorizationsRequest* internal_default_instance() { + return reinterpret_cast( + &_CreateKeyFromExistingKeyAuthorizationsRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 198; + + friend void swap(CreateKeyFromExistingKeyAuthorizationsRequest& a, CreateKeyFromExistingKeyAuthorizationsRequest& b) { + a.Swap(&b); + } + inline void Swap(CreateKeyFromExistingKeyAuthorizationsRequest* 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(CreateKeyFromExistingKeyAuthorizationsRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + CreateKeyFromExistingKeyAuthorizationsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CreateKeyFromExistingKeyAuthorizationsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CreateKeyFromExistingKeyAuthorizationsRequest& 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(CreateKeyFromExistingKeyAuthorizationsRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.CreateKeyFromExistingKeyAuthorizationsRequest"; + } + protected: + explicit CreateKeyFromExistingKeyAuthorizationsRequest(::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 { + kIdFieldNumber = 1, + }; + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class CreateKeyFromExistingKeyAuthorizationsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsResponse) */ { + public: + inline CreateKeyFromExistingKeyAuthorizationsResponse() : CreateKeyFromExistingKeyAuthorizationsResponse(nullptr) {} + ~CreateKeyFromExistingKeyAuthorizationsResponse() override; + explicit PROTOBUF_CONSTEXPR CreateKeyFromExistingKeyAuthorizationsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + CreateKeyFromExistingKeyAuthorizationsResponse(const CreateKeyFromExistingKeyAuthorizationsResponse& from); + CreateKeyFromExistingKeyAuthorizationsResponse(CreateKeyFromExistingKeyAuthorizationsResponse&& from) noexcept + : CreateKeyFromExistingKeyAuthorizationsResponse() { + *this = ::std::move(from); + } + + inline CreateKeyFromExistingKeyAuthorizationsResponse& operator=(const CreateKeyFromExistingKeyAuthorizationsResponse& from) { + CopyFrom(from); + return *this; + } + inline CreateKeyFromExistingKeyAuthorizationsResponse& operator=(CreateKeyFromExistingKeyAuthorizationsResponse&& 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 CreateKeyFromExistingKeyAuthorizationsResponse& default_instance() { + return *internal_default_instance(); + } + static inline const CreateKeyFromExistingKeyAuthorizationsResponse* internal_default_instance() { + return reinterpret_cast( + &_CreateKeyFromExistingKeyAuthorizationsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 199; + + friend void swap(CreateKeyFromExistingKeyAuthorizationsResponse& a, CreateKeyFromExistingKeyAuthorizationsResponse& b) { + a.Swap(&b); + } + inline void Swap(CreateKeyFromExistingKeyAuthorizationsResponse* 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(CreateKeyFromExistingKeyAuthorizationsResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + CreateKeyFromExistingKeyAuthorizationsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CreateKeyFromExistingKeyAuthorizationsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CreateKeyFromExistingKeyAuthorizationsResponse& 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(CreateKeyFromExistingKeyAuthorizationsResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.CreateKeyFromExistingKeyAuthorizationsResponse"; + } + protected: + explicit CreateKeyFromExistingKeyAuthorizationsResponse(::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 { + kIdFieldNumber = 1, + kKeyFieldNumber = 2, + }; + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + + // string key = 2 [json_name = "key"]; + void clear_key(); + const std::string& key() const; + template + void set_key(ArgT0&& arg0, ArgT... args); + std::string* mutable_key(); + PROTOBUF_NODISCARD std::string* release_key(); + void set_allocated_key(std::string* key); + private: + const std::string& _internal_key() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_key(const std::string& value); + std::string* _internal_mutable_key(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr key_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class OrganizationSetLogoRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.OrganizationSetLogoRequest) */ { + public: + inline OrganizationSetLogoRequest() : OrganizationSetLogoRequest(nullptr) {} + ~OrganizationSetLogoRequest() override; + explicit PROTOBUF_CONSTEXPR OrganizationSetLogoRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + OrganizationSetLogoRequest(const OrganizationSetLogoRequest& from); + OrganizationSetLogoRequest(OrganizationSetLogoRequest&& from) noexcept + : OrganizationSetLogoRequest() { + *this = ::std::move(from); + } + + inline OrganizationSetLogoRequest& operator=(const OrganizationSetLogoRequest& from) { + CopyFrom(from); + return *this; + } + inline OrganizationSetLogoRequest& operator=(OrganizationSetLogoRequest&& 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 OrganizationSetLogoRequest& default_instance() { + return *internal_default_instance(); + } + static inline const OrganizationSetLogoRequest* internal_default_instance() { + return reinterpret_cast( + &_OrganizationSetLogoRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 200; + + friend void swap(OrganizationSetLogoRequest& a, OrganizationSetLogoRequest& b) { + a.Swap(&b); + } + inline void Swap(OrganizationSetLogoRequest* 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(OrganizationSetLogoRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + OrganizationSetLogoRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const OrganizationSetLogoRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const OrganizationSetLogoRequest& 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(OrganizationSetLogoRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.OrganizationSetLogoRequest"; + } + protected: + explicit OrganizationSetLogoRequest(::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 { + kOrgIdFieldNumber = 1, + kLogoFieldNumber = 2, + }; + // string org_id = 1 [json_name = "orgId"]; + void clear_org_id(); + const std::string& org_id() const; + template + void set_org_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_org_id(); + PROTOBUF_NODISCARD std::string* release_org_id(); + void set_allocated_org_id(std::string* org_id); + private: + const std::string& _internal_org_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_org_id(const std::string& value); + std::string* _internal_mutable_org_id(); + public: + + // bytes logo = 2 [json_name = "logo"]; + void clear_logo(); + const std::string& logo() const; + template + void set_logo(ArgT0&& arg0, ArgT... args); + std::string* mutable_logo(); + PROTOBUF_NODISCARD std::string* release_logo(); + void set_allocated_logo(std::string* logo); + private: + const std::string& _internal_logo() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_logo(const std::string& value); + std::string* _internal_mutable_logo(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.OrganizationSetLogoRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr org_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr logo_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class OrganizationSetLogoResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.OrganizationSetLogoResponse) */ { + public: + inline OrganizationSetLogoResponse() : OrganizationSetLogoResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR OrganizationSetLogoResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + OrganizationSetLogoResponse(const OrganizationSetLogoResponse& from); + OrganizationSetLogoResponse(OrganizationSetLogoResponse&& from) noexcept + : OrganizationSetLogoResponse() { + *this = ::std::move(from); + } + + inline OrganizationSetLogoResponse& operator=(const OrganizationSetLogoResponse& from) { + CopyFrom(from); + return *this; + } + inline OrganizationSetLogoResponse& operator=(OrganizationSetLogoResponse&& 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 OrganizationSetLogoResponse& default_instance() { + return *internal_default_instance(); + } + static inline const OrganizationSetLogoResponse* internal_default_instance() { + return reinterpret_cast( + &_OrganizationSetLogoResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 201; + + friend void swap(OrganizationSetLogoResponse& a, OrganizationSetLogoResponse& b) { + a.Swap(&b); + } + inline void Swap(OrganizationSetLogoResponse* 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(OrganizationSetLogoResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + OrganizationSetLogoResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const OrganizationSetLogoResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const OrganizationSetLogoResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); + } + public: + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.OrganizationSetLogoResponse"; + } + protected: + explicit OrganizationSetLogoResponse(::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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.app.v1.OrganizationSetLogoResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class OrganizationGetLogoRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.OrganizationGetLogoRequest) */ { + public: + inline OrganizationGetLogoRequest() : OrganizationGetLogoRequest(nullptr) {} + ~OrganizationGetLogoRequest() override; + explicit PROTOBUF_CONSTEXPR OrganizationGetLogoRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + OrganizationGetLogoRequest(const OrganizationGetLogoRequest& from); + OrganizationGetLogoRequest(OrganizationGetLogoRequest&& from) noexcept + : OrganizationGetLogoRequest() { + *this = ::std::move(from); + } + + inline OrganizationGetLogoRequest& operator=(const OrganizationGetLogoRequest& from) { + CopyFrom(from); + return *this; + } + inline OrganizationGetLogoRequest& operator=(OrganizationGetLogoRequest&& 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 OrganizationGetLogoRequest& default_instance() { + return *internal_default_instance(); + } + static inline const OrganizationGetLogoRequest* internal_default_instance() { + return reinterpret_cast( + &_OrganizationGetLogoRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 202; + + friend void swap(OrganizationGetLogoRequest& a, OrganizationGetLogoRequest& b) { + a.Swap(&b); + } + inline void Swap(OrganizationGetLogoRequest* 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(OrganizationGetLogoRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + OrganizationGetLogoRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const OrganizationGetLogoRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const OrganizationGetLogoRequest& 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(OrganizationGetLogoRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.OrganizationGetLogoRequest"; + } + protected: + explicit OrganizationGetLogoRequest(::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 { + kOrgIdFieldNumber = 1, + }; + // string org_id = 1 [json_name = "orgId"]; + void clear_org_id(); + const std::string& org_id() const; + template + void set_org_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_org_id(); + PROTOBUF_NODISCARD std::string* release_org_id(); + void set_allocated_org_id(std::string* org_id); + private: + const std::string& _internal_org_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_org_id(const std::string& value); + std::string* _internal_mutable_org_id(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.OrganizationGetLogoRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr org_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class OrganizationGetLogoResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.OrganizationGetLogoResponse) */ { + public: + inline OrganizationGetLogoResponse() : OrganizationGetLogoResponse(nullptr) {} + ~OrganizationGetLogoResponse() override; + explicit PROTOBUF_CONSTEXPR OrganizationGetLogoResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + OrganizationGetLogoResponse(const OrganizationGetLogoResponse& from); + OrganizationGetLogoResponse(OrganizationGetLogoResponse&& from) noexcept + : OrganizationGetLogoResponse() { + *this = ::std::move(from); + } + + inline OrganizationGetLogoResponse& operator=(const OrganizationGetLogoResponse& from) { + CopyFrom(from); + return *this; + } + inline OrganizationGetLogoResponse& operator=(OrganizationGetLogoResponse&& 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 OrganizationGetLogoResponse& default_instance() { + return *internal_default_instance(); + } + static inline const OrganizationGetLogoResponse* internal_default_instance() { + return reinterpret_cast( + &_OrganizationGetLogoResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 203; + + friend void swap(OrganizationGetLogoResponse& a, OrganizationGetLogoResponse& b) { + a.Swap(&b); + } + inline void Swap(OrganizationGetLogoResponse* 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(OrganizationGetLogoResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + OrganizationGetLogoResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const OrganizationGetLogoResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const OrganizationGetLogoResponse& 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(OrganizationGetLogoResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.OrganizationGetLogoResponse"; + } + protected: + explicit OrganizationGetLogoResponse(::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 { + kUrlFieldNumber = 1, + }; + // string url = 1 [json_name = "url"]; + void clear_url(); + const std::string& url() const; + template + void set_url(ArgT0&& arg0, ArgT... args); + std::string* mutable_url(); + PROTOBUF_NODISCARD std::string* release_url(); + void set_allocated_url(std::string* url); + private: + const std::string& _internal_url() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_url(const std::string& value); + std::string* _internal_mutable_url(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.OrganizationGetLogoResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr url_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class EnableAuthServiceRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.EnableAuthServiceRequest) */ { + public: + inline EnableAuthServiceRequest() : EnableAuthServiceRequest(nullptr) {} + ~EnableAuthServiceRequest() override; + explicit PROTOBUF_CONSTEXPR EnableAuthServiceRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + EnableAuthServiceRequest(const EnableAuthServiceRequest& from); + EnableAuthServiceRequest(EnableAuthServiceRequest&& from) noexcept + : EnableAuthServiceRequest() { + *this = ::std::move(from); + } + + inline EnableAuthServiceRequest& operator=(const EnableAuthServiceRequest& from) { + CopyFrom(from); + return *this; + } + inline EnableAuthServiceRequest& operator=(EnableAuthServiceRequest&& 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 EnableAuthServiceRequest& default_instance() { + return *internal_default_instance(); + } + static inline const EnableAuthServiceRequest* internal_default_instance() { + return reinterpret_cast( + &_EnableAuthServiceRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 204; + + friend void swap(EnableAuthServiceRequest& a, EnableAuthServiceRequest& b) { + a.Swap(&b); + } + inline void Swap(EnableAuthServiceRequest* 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(EnableAuthServiceRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + EnableAuthServiceRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const EnableAuthServiceRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const EnableAuthServiceRequest& 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(EnableAuthServiceRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.EnableAuthServiceRequest"; + } + protected: + explicit EnableAuthServiceRequest(::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 { + kOrgIdFieldNumber = 1, + }; + // string org_id = 1 [json_name = "orgId"]; + void clear_org_id(); + const std::string& org_id() const; + template + void set_org_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_org_id(); + PROTOBUF_NODISCARD std::string* release_org_id(); + void set_allocated_org_id(std::string* org_id); + private: + const std::string& _internal_org_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_org_id(const std::string& value); + std::string* _internal_mutable_org_id(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.EnableAuthServiceRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr org_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class EnableAuthServiceResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.EnableAuthServiceResponse) */ { + public: + inline EnableAuthServiceResponse() : EnableAuthServiceResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR EnableAuthServiceResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + EnableAuthServiceResponse(const EnableAuthServiceResponse& from); + EnableAuthServiceResponse(EnableAuthServiceResponse&& from) noexcept + : EnableAuthServiceResponse() { + *this = ::std::move(from); + } + + inline EnableAuthServiceResponse& operator=(const EnableAuthServiceResponse& from) { + CopyFrom(from); + return *this; + } + inline EnableAuthServiceResponse& operator=(EnableAuthServiceResponse&& 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 EnableAuthServiceResponse& default_instance() { + return *internal_default_instance(); + } + static inline const EnableAuthServiceResponse* internal_default_instance() { + return reinterpret_cast( + &_EnableAuthServiceResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 205; + + friend void swap(EnableAuthServiceResponse& a, EnableAuthServiceResponse& b) { + a.Swap(&b); + } + inline void Swap(EnableAuthServiceResponse* 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(EnableAuthServiceResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + EnableAuthServiceResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const EnableAuthServiceResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const EnableAuthServiceResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); + } + public: + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.EnableAuthServiceResponse"; + } + protected: + explicit EnableAuthServiceResponse(::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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.app.v1.EnableAuthServiceResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class DisableAuthServiceRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.DisableAuthServiceRequest) */ { + public: + inline DisableAuthServiceRequest() : DisableAuthServiceRequest(nullptr) {} + ~DisableAuthServiceRequest() override; + explicit PROTOBUF_CONSTEXPR DisableAuthServiceRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + DisableAuthServiceRequest(const DisableAuthServiceRequest& from); + DisableAuthServiceRequest(DisableAuthServiceRequest&& from) noexcept + : DisableAuthServiceRequest() { + *this = ::std::move(from); + } + + inline DisableAuthServiceRequest& operator=(const DisableAuthServiceRequest& from) { + CopyFrom(from); + return *this; + } + inline DisableAuthServiceRequest& operator=(DisableAuthServiceRequest&& 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 DisableAuthServiceRequest& default_instance() { + return *internal_default_instance(); + } + static inline const DisableAuthServiceRequest* internal_default_instance() { + return reinterpret_cast( + &_DisableAuthServiceRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 206; + + friend void swap(DisableAuthServiceRequest& a, DisableAuthServiceRequest& b) { + a.Swap(&b); + } + inline void Swap(DisableAuthServiceRequest* 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(DisableAuthServiceRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DisableAuthServiceRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DisableAuthServiceRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const DisableAuthServiceRequest& 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(DisableAuthServiceRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.DisableAuthServiceRequest"; + } + protected: + explicit DisableAuthServiceRequest(::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 { + kOrgIdFieldNumber = 1, + }; + // string org_id = 1 [json_name = "orgId"]; + void clear_org_id(); + const std::string& org_id() const; + template + void set_org_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_org_id(); + PROTOBUF_NODISCARD std::string* release_org_id(); + void set_allocated_org_id(std::string* org_id); + private: + const std::string& _internal_org_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_org_id(const std::string& value); + std::string* _internal_mutable_org_id(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.DisableAuthServiceRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr org_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class DisableAuthServiceResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.DisableAuthServiceResponse) */ { + public: + inline DisableAuthServiceResponse() : DisableAuthServiceResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR DisableAuthServiceResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + DisableAuthServiceResponse(const DisableAuthServiceResponse& from); + DisableAuthServiceResponse(DisableAuthServiceResponse&& from) noexcept + : DisableAuthServiceResponse() { + *this = ::std::move(from); + } + + inline DisableAuthServiceResponse& operator=(const DisableAuthServiceResponse& from) { + CopyFrom(from); + return *this; + } + inline DisableAuthServiceResponse& operator=(DisableAuthServiceResponse&& 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 DisableAuthServiceResponse& default_instance() { + return *internal_default_instance(); + } + static inline const DisableAuthServiceResponse* internal_default_instance() { + return reinterpret_cast( + &_DisableAuthServiceResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 207; + + friend void swap(DisableAuthServiceResponse& a, DisableAuthServiceResponse& b) { + a.Swap(&b); + } + inline void Swap(DisableAuthServiceResponse* 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(DisableAuthServiceResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DisableAuthServiceResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const DisableAuthServiceResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const DisableAuthServiceResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); + } + public: + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.DisableAuthServiceResponse"; + } + protected: + explicit DisableAuthServiceResponse(::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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.app.v1.DisableAuthServiceResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class CreateOAuthAppRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.CreateOAuthAppRequest) */ { + public: + inline CreateOAuthAppRequest() : CreateOAuthAppRequest(nullptr) {} + ~CreateOAuthAppRequest() override; + explicit PROTOBUF_CONSTEXPR CreateOAuthAppRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + CreateOAuthAppRequest(const CreateOAuthAppRequest& from); + CreateOAuthAppRequest(CreateOAuthAppRequest&& from) noexcept + : CreateOAuthAppRequest() { + *this = ::std::move(from); + } + + inline CreateOAuthAppRequest& operator=(const CreateOAuthAppRequest& from) { + CopyFrom(from); + return *this; + } + inline CreateOAuthAppRequest& operator=(CreateOAuthAppRequest&& 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 CreateOAuthAppRequest& default_instance() { + return *internal_default_instance(); + } + static inline const CreateOAuthAppRequest* internal_default_instance() { + return reinterpret_cast( + &_CreateOAuthAppRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 208; + + friend void swap(CreateOAuthAppRequest& a, CreateOAuthAppRequest& b) { + a.Swap(&b); + } + inline void Swap(CreateOAuthAppRequest* 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(CreateOAuthAppRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + CreateOAuthAppRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CreateOAuthAppRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CreateOAuthAppRequest& 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(CreateOAuthAppRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.CreateOAuthAppRequest"; + } + protected: + explicit CreateOAuthAppRequest(::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 { + kOrgIdFieldNumber = 1, + kClientNameFieldNumber = 2, + kOauthConfigFieldNumber = 3, + }; + // string org_id = 1 [json_name = "orgId"]; + void clear_org_id(); + const std::string& org_id() const; + template + void set_org_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_org_id(); + PROTOBUF_NODISCARD std::string* release_org_id(); + void set_allocated_org_id(std::string* org_id); + private: + const std::string& _internal_org_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_org_id(const std::string& value); + std::string* _internal_mutable_org_id(); + public: + + // string client_name = 2 [json_name = "clientName"]; + void clear_client_name(); + const std::string& client_name() const; + template + void set_client_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_client_name(); + PROTOBUF_NODISCARD std::string* release_client_name(); + void set_allocated_client_name(std::string* client_name); + private: + const std::string& _internal_client_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_client_name(const std::string& value); + std::string* _internal_mutable_client_name(); + public: + + // .viam.app.v1.OAuthConfig oauth_config = 3 [json_name = "oauthConfig"]; + bool has_oauth_config() const; + private: + bool _internal_has_oauth_config() const; + public: + void clear_oauth_config(); + const ::viam::app::v1::OAuthConfig& oauth_config() const; + PROTOBUF_NODISCARD ::viam::app::v1::OAuthConfig* release_oauth_config(); + ::viam::app::v1::OAuthConfig* mutable_oauth_config(); + void set_allocated_oauth_config(::viam::app::v1::OAuthConfig* oauth_config); + private: + const ::viam::app::v1::OAuthConfig& _internal_oauth_config() const; + ::viam::app::v1::OAuthConfig* _internal_mutable_oauth_config(); + public: + void unsafe_arena_set_allocated_oauth_config( + ::viam::app::v1::OAuthConfig* oauth_config); + ::viam::app::v1::OAuthConfig* unsafe_arena_release_oauth_config(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.CreateOAuthAppRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr org_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr client_name_; + ::viam::app::v1::OAuthConfig* oauth_config_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class CreateOAuthAppResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.CreateOAuthAppResponse) */ { + public: + inline CreateOAuthAppResponse() : CreateOAuthAppResponse(nullptr) {} + ~CreateOAuthAppResponse() override; + explicit PROTOBUF_CONSTEXPR CreateOAuthAppResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + CreateOAuthAppResponse(const CreateOAuthAppResponse& from); + CreateOAuthAppResponse(CreateOAuthAppResponse&& from) noexcept + : CreateOAuthAppResponse() { + *this = ::std::move(from); + } + + inline CreateOAuthAppResponse& operator=(const CreateOAuthAppResponse& from) { + CopyFrom(from); + return *this; + } + inline CreateOAuthAppResponse& operator=(CreateOAuthAppResponse&& 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 CreateOAuthAppResponse& default_instance() { + return *internal_default_instance(); + } + static inline const CreateOAuthAppResponse* internal_default_instance() { + return reinterpret_cast( + &_CreateOAuthAppResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 209; + + friend void swap(CreateOAuthAppResponse& a, CreateOAuthAppResponse& b) { + a.Swap(&b); + } + inline void Swap(CreateOAuthAppResponse* 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(CreateOAuthAppResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + CreateOAuthAppResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CreateOAuthAppResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CreateOAuthAppResponse& 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(CreateOAuthAppResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.CreateOAuthAppResponse"; + } + protected: + explicit CreateOAuthAppResponse(::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 { + kClientIdFieldNumber = 1, + kClientSecretFieldNumber = 2, + }; + // string client_id = 1 [json_name = "clientId"]; + void clear_client_id(); + const std::string& client_id() const; + template + void set_client_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_client_id(); + PROTOBUF_NODISCARD std::string* release_client_id(); + void set_allocated_client_id(std::string* client_id); + private: + const std::string& _internal_client_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_client_id(const std::string& value); + std::string* _internal_mutable_client_id(); + public: + + // string client_secret = 2 [json_name = "clientSecret"]; + void clear_client_secret(); + const std::string& client_secret() const; + template + void set_client_secret(ArgT0&& arg0, ArgT... args); + std::string* mutable_client_secret(); + PROTOBUF_NODISCARD std::string* release_client_secret(); + void set_allocated_client_secret(std::string* client_secret); + private: + const std::string& _internal_client_secret() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_client_secret(const std::string& value); + std::string* _internal_mutable_client_secret(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.CreateOAuthAppResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr client_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr client_secret_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class ReadOAuthAppRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ReadOAuthAppRequest) */ { + public: + inline ReadOAuthAppRequest() : ReadOAuthAppRequest(nullptr) {} + ~ReadOAuthAppRequest() override; + explicit PROTOBUF_CONSTEXPR ReadOAuthAppRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ReadOAuthAppRequest(const ReadOAuthAppRequest& from); + ReadOAuthAppRequest(ReadOAuthAppRequest&& from) noexcept + : ReadOAuthAppRequest() { + *this = ::std::move(from); + } + + inline ReadOAuthAppRequest& operator=(const ReadOAuthAppRequest& from) { + CopyFrom(from); + return *this; + } + inline ReadOAuthAppRequest& operator=(ReadOAuthAppRequest&& 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 ReadOAuthAppRequest& default_instance() { + return *internal_default_instance(); + } + static inline const ReadOAuthAppRequest* internal_default_instance() { + return reinterpret_cast( + &_ReadOAuthAppRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 210; + + friend void swap(ReadOAuthAppRequest& a, ReadOAuthAppRequest& b) { + a.Swap(&b); + } + inline void Swap(ReadOAuthAppRequest* 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(ReadOAuthAppRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ReadOAuthAppRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ReadOAuthAppRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ReadOAuthAppRequest& 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(ReadOAuthAppRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.ReadOAuthAppRequest"; + } + protected: + explicit ReadOAuthAppRequest(::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 { + kOrgIdFieldNumber = 1, + kClientIdFieldNumber = 2, + }; + // string org_id = 1 [json_name = "orgId"]; + void clear_org_id(); + const std::string& org_id() const; + template + void set_org_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_org_id(); + PROTOBUF_NODISCARD std::string* release_org_id(); + void set_allocated_org_id(std::string* org_id); + private: + const std::string& _internal_org_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_org_id(const std::string& value); + std::string* _internal_mutable_org_id(); + public: + + // string client_id = 2 [json_name = "clientId"]; + void clear_client_id(); + const std::string& client_id() const; + template + void set_client_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_client_id(); + PROTOBUF_NODISCARD std::string* release_client_id(); + void set_allocated_client_id(std::string* client_id); + private: + const std::string& _internal_client_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_client_id(const std::string& value); + std::string* _internal_mutable_client_id(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.ReadOAuthAppRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr org_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr client_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class ReadOAuthAppResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ReadOAuthAppResponse) */ { + public: + inline ReadOAuthAppResponse() : ReadOAuthAppResponse(nullptr) {} + ~ReadOAuthAppResponse() override; + explicit PROTOBUF_CONSTEXPR ReadOAuthAppResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ReadOAuthAppResponse(const ReadOAuthAppResponse& from); + ReadOAuthAppResponse(ReadOAuthAppResponse&& from) noexcept + : ReadOAuthAppResponse() { + *this = ::std::move(from); + } + + inline ReadOAuthAppResponse& operator=(const ReadOAuthAppResponse& from) { + CopyFrom(from); + return *this; + } + inline ReadOAuthAppResponse& operator=(ReadOAuthAppResponse&& 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 ReadOAuthAppResponse& default_instance() { + return *internal_default_instance(); + } + static inline const ReadOAuthAppResponse* internal_default_instance() { + return reinterpret_cast( + &_ReadOAuthAppResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 211; + + friend void swap(ReadOAuthAppResponse& a, ReadOAuthAppResponse& b) { + a.Swap(&b); + } + inline void Swap(ReadOAuthAppResponse* 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(ReadOAuthAppResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ReadOAuthAppResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ReadOAuthAppResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ReadOAuthAppResponse& 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(ReadOAuthAppResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.ReadOAuthAppResponse"; + } + protected: + explicit ReadOAuthAppResponse(::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 { + kClientNameFieldNumber = 1, + kClientSecretFieldNumber = 2, + kOauthConfigFieldNumber = 3, + }; + // string client_name = 1 [json_name = "clientName"]; + void clear_client_name(); + const std::string& client_name() const; + template + void set_client_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_client_name(); + PROTOBUF_NODISCARD std::string* release_client_name(); + void set_allocated_client_name(std::string* client_name); + private: + const std::string& _internal_client_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_client_name(const std::string& value); + std::string* _internal_mutable_client_name(); + public: + + // string client_secret = 2 [json_name = "clientSecret"]; + void clear_client_secret(); + const std::string& client_secret() const; + template + void set_client_secret(ArgT0&& arg0, ArgT... args); + std::string* mutable_client_secret(); + PROTOBUF_NODISCARD std::string* release_client_secret(); + void set_allocated_client_secret(std::string* client_secret); + private: + const std::string& _internal_client_secret() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_client_secret(const std::string& value); + std::string* _internal_mutable_client_secret(); + public: + + // .viam.app.v1.OAuthConfig oauth_config = 3 [json_name = "oauthConfig"]; + bool has_oauth_config() const; + private: + bool _internal_has_oauth_config() const; + public: + void clear_oauth_config(); + const ::viam::app::v1::OAuthConfig& oauth_config() const; + PROTOBUF_NODISCARD ::viam::app::v1::OAuthConfig* release_oauth_config(); + ::viam::app::v1::OAuthConfig* mutable_oauth_config(); + void set_allocated_oauth_config(::viam::app::v1::OAuthConfig* oauth_config); + private: + const ::viam::app::v1::OAuthConfig& _internal_oauth_config() const; + ::viam::app::v1::OAuthConfig* _internal_mutable_oauth_config(); + public: + void unsafe_arena_set_allocated_oauth_config( + ::viam::app::v1::OAuthConfig* oauth_config); + ::viam::app::v1::OAuthConfig* unsafe_arena_release_oauth_config(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.ReadOAuthAppResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr client_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr client_secret_; + ::viam::app::v1::OAuthConfig* oauth_config_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class UpdateOAuthAppRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.UpdateOAuthAppRequest) */ { + public: + inline UpdateOAuthAppRequest() : UpdateOAuthAppRequest(nullptr) {} + ~UpdateOAuthAppRequest() override; + explicit PROTOBUF_CONSTEXPR UpdateOAuthAppRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + UpdateOAuthAppRequest(const UpdateOAuthAppRequest& from); + UpdateOAuthAppRequest(UpdateOAuthAppRequest&& from) noexcept + : UpdateOAuthAppRequest() { + *this = ::std::move(from); + } + + inline UpdateOAuthAppRequest& operator=(const UpdateOAuthAppRequest& from) { + CopyFrom(from); + return *this; + } + inline UpdateOAuthAppRequest& operator=(UpdateOAuthAppRequest&& 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 UpdateOAuthAppRequest& default_instance() { + return *internal_default_instance(); + } + static inline const UpdateOAuthAppRequest* internal_default_instance() { + return reinterpret_cast( + &_UpdateOAuthAppRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 212; + + friend void swap(UpdateOAuthAppRequest& a, UpdateOAuthAppRequest& b) { + a.Swap(&b); + } + inline void Swap(UpdateOAuthAppRequest* 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(UpdateOAuthAppRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + UpdateOAuthAppRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const UpdateOAuthAppRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const UpdateOAuthAppRequest& 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(UpdateOAuthAppRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.UpdateOAuthAppRequest"; + } + protected: + explicit UpdateOAuthAppRequest(::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 { + kOrgIdFieldNumber = 1, + kClientIdFieldNumber = 2, + kClientNameFieldNumber = 3, + kOauthConfigFieldNumber = 4, + }; + // string org_id = 1 [json_name = "orgId"]; + void clear_org_id(); + const std::string& org_id() const; + template + void set_org_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_org_id(); + PROTOBUF_NODISCARD std::string* release_org_id(); + void set_allocated_org_id(std::string* org_id); + private: + const std::string& _internal_org_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_org_id(const std::string& value); + std::string* _internal_mutable_org_id(); + public: + + // string client_id = 2 [json_name = "clientId"]; + void clear_client_id(); + const std::string& client_id() const; + template + void set_client_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_client_id(); + PROTOBUF_NODISCARD std::string* release_client_id(); + void set_allocated_client_id(std::string* client_id); + private: + const std::string& _internal_client_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_client_id(const std::string& value); + std::string* _internal_mutable_client_id(); + public: + + // string client_name = 3 [json_name = "clientName"]; + void clear_client_name(); + const std::string& client_name() const; + template + void set_client_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_client_name(); + PROTOBUF_NODISCARD std::string* release_client_name(); + void set_allocated_client_name(std::string* client_name); + private: + const std::string& _internal_client_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_client_name(const std::string& value); + std::string* _internal_mutable_client_name(); + public: + + // .viam.app.v1.OAuthConfig oauth_config = 4 [json_name = "oauthConfig"]; + bool has_oauth_config() const; + private: + bool _internal_has_oauth_config() const; + public: + void clear_oauth_config(); + const ::viam::app::v1::OAuthConfig& oauth_config() const; + PROTOBUF_NODISCARD ::viam::app::v1::OAuthConfig* release_oauth_config(); + ::viam::app::v1::OAuthConfig* mutable_oauth_config(); + void set_allocated_oauth_config(::viam::app::v1::OAuthConfig* oauth_config); + private: + const ::viam::app::v1::OAuthConfig& _internal_oauth_config() const; + ::viam::app::v1::OAuthConfig* _internal_mutable_oauth_config(); + public: + void unsafe_arena_set_allocated_oauth_config( + ::viam::app::v1::OAuthConfig* oauth_config); + ::viam::app::v1::OAuthConfig* unsafe_arena_release_oauth_config(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.UpdateOAuthAppRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr org_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr client_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr client_name_; + ::viam::app::v1::OAuthConfig* oauth_config_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class UpdateOAuthAppResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.UpdateOAuthAppResponse) */ { + public: + inline UpdateOAuthAppResponse() : UpdateOAuthAppResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR UpdateOAuthAppResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + UpdateOAuthAppResponse(const UpdateOAuthAppResponse& from); + UpdateOAuthAppResponse(UpdateOAuthAppResponse&& from) noexcept + : UpdateOAuthAppResponse() { + *this = ::std::move(from); + } + + inline UpdateOAuthAppResponse& operator=(const UpdateOAuthAppResponse& from) { + CopyFrom(from); + return *this; + } + inline UpdateOAuthAppResponse& operator=(UpdateOAuthAppResponse&& 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 UpdateOAuthAppResponse& default_instance() { + return *internal_default_instance(); + } + static inline const UpdateOAuthAppResponse* internal_default_instance() { + return reinterpret_cast( + &_UpdateOAuthAppResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 213; + + friend void swap(UpdateOAuthAppResponse& a, UpdateOAuthAppResponse& b) { + a.Swap(&b); + } + inline void Swap(UpdateOAuthAppResponse* 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(UpdateOAuthAppResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + UpdateOAuthAppResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const UpdateOAuthAppResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const UpdateOAuthAppResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); + } + public: + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.UpdateOAuthAppResponse"; + } + protected: + explicit UpdateOAuthAppResponse(::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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.app.v1.UpdateOAuthAppResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class DeleteOAuthAppRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.DeleteOAuthAppRequest) */ { + public: + inline DeleteOAuthAppRequest() : DeleteOAuthAppRequest(nullptr) {} + ~DeleteOAuthAppRequest() override; + explicit PROTOBUF_CONSTEXPR DeleteOAuthAppRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + DeleteOAuthAppRequest(const DeleteOAuthAppRequest& from); + DeleteOAuthAppRequest(DeleteOAuthAppRequest&& from) noexcept + : DeleteOAuthAppRequest() { + *this = ::std::move(from); + } + + inline DeleteOAuthAppRequest& operator=(const DeleteOAuthAppRequest& from) { + CopyFrom(from); + return *this; + } + inline DeleteOAuthAppRequest& operator=(DeleteOAuthAppRequest&& 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 DeleteOAuthAppRequest& default_instance() { + return *internal_default_instance(); + } + static inline const DeleteOAuthAppRequest* internal_default_instance() { + return reinterpret_cast( + &_DeleteOAuthAppRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 214; + + friend void swap(DeleteOAuthAppRequest& a, DeleteOAuthAppRequest& b) { + a.Swap(&b); + } + inline void Swap(DeleteOAuthAppRequest* 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(DeleteOAuthAppRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DeleteOAuthAppRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DeleteOAuthAppRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const DeleteOAuthAppRequest& 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(DeleteOAuthAppRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.DeleteOAuthAppRequest"; + } + protected: + explicit DeleteOAuthAppRequest(::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 { + kOrgIdFieldNumber = 1, + kClientIdFieldNumber = 2, + }; + // string org_id = 1 [json_name = "orgId"]; + void clear_org_id(); + const std::string& org_id() const; + template + void set_org_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_org_id(); + PROTOBUF_NODISCARD std::string* release_org_id(); + void set_allocated_org_id(std::string* org_id); + private: + const std::string& _internal_org_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_org_id(const std::string& value); + std::string* _internal_mutable_org_id(); + public: + + // string client_id = 2 [json_name = "clientId"]; + void clear_client_id(); + const std::string& client_id() const; + template + void set_client_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_client_id(); + PROTOBUF_NODISCARD std::string* release_client_id(); + void set_allocated_client_id(std::string* client_id); + private: + const std::string& _internal_client_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_client_id(const std::string& value); + std::string* _internal_mutable_client_id(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.DeleteOAuthAppRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr org_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr client_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class DeleteOAuthAppResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.DeleteOAuthAppResponse) */ { + public: + inline DeleteOAuthAppResponse() : DeleteOAuthAppResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR DeleteOAuthAppResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + DeleteOAuthAppResponse(const DeleteOAuthAppResponse& from); + DeleteOAuthAppResponse(DeleteOAuthAppResponse&& from) noexcept + : DeleteOAuthAppResponse() { + *this = ::std::move(from); + } + + inline DeleteOAuthAppResponse& operator=(const DeleteOAuthAppResponse& from) { + CopyFrom(from); + return *this; + } + inline DeleteOAuthAppResponse& operator=(DeleteOAuthAppResponse&& 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 DeleteOAuthAppResponse& default_instance() { + return *internal_default_instance(); + } + static inline const DeleteOAuthAppResponse* internal_default_instance() { + return reinterpret_cast( + &_DeleteOAuthAppResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 215; + + friend void swap(DeleteOAuthAppResponse& a, DeleteOAuthAppResponse& b) { + a.Swap(&b); + } + inline void Swap(DeleteOAuthAppResponse* 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(DeleteOAuthAppResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DeleteOAuthAppResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const DeleteOAuthAppResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const DeleteOAuthAppResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); + } + public: + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.DeleteOAuthAppResponse"; + } + protected: + explicit DeleteOAuthAppResponse(::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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.app.v1.DeleteOAuthAppResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class ListOAuthAppsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ListOAuthAppsRequest) */ { + public: + inline ListOAuthAppsRequest() : ListOAuthAppsRequest(nullptr) {} + ~ListOAuthAppsRequest() override; + explicit PROTOBUF_CONSTEXPR ListOAuthAppsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ListOAuthAppsRequest(const ListOAuthAppsRequest& from); + ListOAuthAppsRequest(ListOAuthAppsRequest&& from) noexcept + : ListOAuthAppsRequest() { + *this = ::std::move(from); + } + + inline ListOAuthAppsRequest& operator=(const ListOAuthAppsRequest& from) { + CopyFrom(from); + return *this; + } + inline ListOAuthAppsRequest& operator=(ListOAuthAppsRequest&& 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 ListOAuthAppsRequest& default_instance() { + return *internal_default_instance(); + } + static inline const ListOAuthAppsRequest* internal_default_instance() { + return reinterpret_cast( + &_ListOAuthAppsRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 216; + + friend void swap(ListOAuthAppsRequest& a, ListOAuthAppsRequest& b) { + a.Swap(&b); + } + inline void Swap(ListOAuthAppsRequest* 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(ListOAuthAppsRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ListOAuthAppsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ListOAuthAppsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ListOAuthAppsRequest& 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(ListOAuthAppsRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.ListOAuthAppsRequest"; + } + protected: + explicit ListOAuthAppsRequest(::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 { + kOrgIdFieldNumber = 1, + }; + // string org_id = 1 [json_name = "orgId"]; + void clear_org_id(); + const std::string& org_id() const; + template + void set_org_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_org_id(); + PROTOBUF_NODISCARD std::string* release_org_id(); + void set_allocated_org_id(std::string* org_id); + private: + const std::string& _internal_org_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_org_id(const std::string& value); + std::string* _internal_mutable_org_id(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.ListOAuthAppsRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr org_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class ListOAuthAppsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ListOAuthAppsResponse) */ { + public: + inline ListOAuthAppsResponse() : ListOAuthAppsResponse(nullptr) {} + ~ListOAuthAppsResponse() override; + explicit PROTOBUF_CONSTEXPR ListOAuthAppsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ListOAuthAppsResponse(const ListOAuthAppsResponse& from); + ListOAuthAppsResponse(ListOAuthAppsResponse&& from) noexcept + : ListOAuthAppsResponse() { + *this = ::std::move(from); + } + + inline ListOAuthAppsResponse& operator=(const ListOAuthAppsResponse& from) { + CopyFrom(from); + return *this; + } + inline ListOAuthAppsResponse& operator=(ListOAuthAppsResponse&& 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 ListOAuthAppsResponse& default_instance() { + return *internal_default_instance(); + } + static inline const ListOAuthAppsResponse* internal_default_instance() { + return reinterpret_cast( + &_ListOAuthAppsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 217; + + friend void swap(ListOAuthAppsResponse& a, ListOAuthAppsResponse& b) { + a.Swap(&b); + } + inline void Swap(ListOAuthAppsResponse* 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(ListOAuthAppsResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ListOAuthAppsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ListOAuthAppsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ListOAuthAppsResponse& 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(ListOAuthAppsResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.ListOAuthAppsResponse"; + } + protected: + explicit ListOAuthAppsResponse(::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 { + kClientIdsFieldNumber = 1, + }; + // repeated string client_ids = 1 [json_name = "clientIds"]; + int client_ids_size() const; + private: + int _internal_client_ids_size() const; + public: + void clear_client_ids(); + const std::string& client_ids(int index) const; + std::string* mutable_client_ids(int index); + void set_client_ids(int index, const std::string& value); + void set_client_ids(int index, std::string&& value); + void set_client_ids(int index, const char* value); + void set_client_ids(int index, const char* value, size_t size); + std::string* add_client_ids(); + void add_client_ids(const std::string& value); + void add_client_ids(std::string&& value); + void add_client_ids(const char* value); + void add_client_ids(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& client_ids() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_client_ids(); + private: + const std::string& _internal_client_ids(int index) const; + std::string* _internal_add_client_ids(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.ListOAuthAppsResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField client_ids_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// ------------------------------------------------------------------- + +class OAuthConfig final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.OAuthConfig) */ { + public: + inline OAuthConfig() : OAuthConfig(nullptr) {} + ~OAuthConfig() override; + explicit PROTOBUF_CONSTEXPR OAuthConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + OAuthConfig(const OAuthConfig& from); + OAuthConfig(OAuthConfig&& from) noexcept + : OAuthConfig() { + *this = ::std::move(from); + } + + inline OAuthConfig& operator=(const OAuthConfig& from) { + CopyFrom(from); + return *this; + } + inline OAuthConfig& operator=(OAuthConfig&& 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 OAuthConfig& default_instance() { + return *internal_default_instance(); + } + static inline const OAuthConfig* internal_default_instance() { + return reinterpret_cast( + &_OAuthConfig_default_instance_); + } + static constexpr int kIndexInFileMessages = + 218; + + friend void swap(OAuthConfig& a, OAuthConfig& b) { + a.Swap(&b); + } + inline void Swap(OAuthConfig* 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(OAuthConfig* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + OAuthConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const OAuthConfig& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const OAuthConfig& 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(OAuthConfig* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.OAuthConfig"; + } + protected: + explicit OAuthConfig(::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 { + kOriginUrisFieldNumber = 4, + kRedirectUrisFieldNumber = 5, + kEnabledGrantsFieldNumber = 7, + kLogoutUriFieldNumber = 6, + kClientAuthenticationFieldNumber = 1, + kPkceFieldNumber = 2, + kUrlValidationFieldNumber = 3, + }; + // repeated string origin_uris = 4 [json_name = "originUris"]; + int origin_uris_size() const; + private: + int _internal_origin_uris_size() const; + public: + void clear_origin_uris(); + const std::string& origin_uris(int index) const; + std::string* mutable_origin_uris(int index); + void set_origin_uris(int index, const std::string& value); + void set_origin_uris(int index, std::string&& value); + void set_origin_uris(int index, const char* value); + void set_origin_uris(int index, const char* value, size_t size); + std::string* add_origin_uris(); + void add_origin_uris(const std::string& value); + void add_origin_uris(std::string&& value); + void add_origin_uris(const char* value); + void add_origin_uris(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& origin_uris() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_origin_uris(); + private: + const std::string& _internal_origin_uris(int index) const; + std::string* _internal_add_origin_uris(); + public: + + // repeated string redirect_uris = 5 [json_name = "redirectUris"]; + int redirect_uris_size() const; + private: + int _internal_redirect_uris_size() const; + public: + void clear_redirect_uris(); + const std::string& redirect_uris(int index) const; + std::string* mutable_redirect_uris(int index); + void set_redirect_uris(int index, const std::string& value); + void set_redirect_uris(int index, std::string&& value); + void set_redirect_uris(int index, const char* value); + void set_redirect_uris(int index, const char* value, size_t size); + std::string* add_redirect_uris(); + void add_redirect_uris(const std::string& value); + void add_redirect_uris(std::string&& value); + void add_redirect_uris(const char* value); + void add_redirect_uris(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& redirect_uris() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_redirect_uris(); + private: + const std::string& _internal_redirect_uris(int index) const; + std::string* _internal_add_redirect_uris(); + public: + + // repeated .viam.app.v1.EnabledGrant enabled_grants = 7 [json_name = "enabledGrants"]; + int enabled_grants_size() const; + private: + int _internal_enabled_grants_size() const; + public: + void clear_enabled_grants(); + private: + ::viam::app::v1::EnabledGrant _internal_enabled_grants(int index) const; + void _internal_add_enabled_grants(::viam::app::v1::EnabledGrant value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField* _internal_mutable_enabled_grants(); + public: + ::viam::app::v1::EnabledGrant enabled_grants(int index) const; + void set_enabled_grants(int index, ::viam::app::v1::EnabledGrant value); + void add_enabled_grants(::viam::app::v1::EnabledGrant value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField& enabled_grants() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField* mutable_enabled_grants(); + + // string logout_uri = 6 [json_name = "logoutUri"]; + void clear_logout_uri(); + const std::string& logout_uri() const; + template + void set_logout_uri(ArgT0&& arg0, ArgT... args); + std::string* mutable_logout_uri(); + PROTOBUF_NODISCARD std::string* release_logout_uri(); + void set_allocated_logout_uri(std::string* logout_uri); + private: + const std::string& _internal_logout_uri() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_logout_uri(const std::string& value); + std::string* _internal_mutable_logout_uri(); + public: + + // .viam.app.v1.ClientAuthentication client_authentication = 1 [json_name = "clientAuthentication"]; + void clear_client_authentication(); + ::viam::app::v1::ClientAuthentication client_authentication() const; + void set_client_authentication(::viam::app::v1::ClientAuthentication value); + private: + ::viam::app::v1::ClientAuthentication _internal_client_authentication() const; + void _internal_set_client_authentication(::viam::app::v1::ClientAuthentication value); + public: + + // .viam.app.v1.PKCE pkce = 2 [json_name = "pkce"]; + void clear_pkce(); + ::viam::app::v1::PKCE pkce() const; + void set_pkce(::viam::app::v1::PKCE value); + private: + ::viam::app::v1::PKCE _internal_pkce() const; + void _internal_set_pkce(::viam::app::v1::PKCE value); + public: + + // .viam.app.v1.URLValidation url_validation = 3 [json_name = "urlValidation"]; + void clear_url_validation(); + ::viam::app::v1::URLValidation url_validation() const; + void set_url_validation(::viam::app::v1::URLValidation value); + private: + ::viam::app::v1::URLValidation _internal_url_validation() const; + void _internal_set_url_validation(::viam::app::v1::URLValidation value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.OAuthConfig) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField origin_uris_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField redirect_uris_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField enabled_grants_; + mutable std::atomic _enabled_grants_cached_byte_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr logout_uri_; + int client_authentication_; + int pkce_; + int url_validation_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_app_2fv1_2fapp_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// Robot + +// string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""]; +inline void Robot::clear_id() { + id_.ClearToEmpty(); +} +inline const std::string& Robot::id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Robot.id) + return _internal_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Robot::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.Robot.id) +} +inline std::string* Robot::mutable_id() { + std::string* _s = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Robot.id) + return _s; +} +inline const std::string& Robot::_internal_id() const { + return id_.Get(); +} +inline void Robot::_internal_set_id(const std::string& value) { + + id_.Set(value, GetArenaForAllocation()); +} +inline std::string* Robot::_internal_mutable_id() { + + return id_.Mutable(GetArenaForAllocation()); +} +inline std::string* Robot::release_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.Robot.id) + return id_.Release(); +} +inline void Robot::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Robot.id) +} + +// string name = 2 [json_name = "name", (.tagger.v1.tags) = "bson:\"name\" json:\"name\""]; +inline void Robot::clear_name() { + name_.ClearToEmpty(); +} +inline const std::string& Robot::name() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Robot.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Robot::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.Robot.name) +} +inline std::string* Robot::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Robot.name) + return _s; +} +inline const std::string& Robot::_internal_name() const { + return name_.Get(); +} +inline void Robot::_internal_set_name(const std::string& value) { + + name_.Set(value, GetArenaForAllocation()); +} +inline std::string* Robot::_internal_mutable_name() { + + return name_.Mutable(GetArenaForAllocation()); +} +inline std::string* Robot::release_name() { + // @@protoc_insertion_point(field_release:viam.app.v1.Robot.name) + return name_.Release(); +} +inline void Robot::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.app.v1.Robot.name) +} + +// string location = 3 [json_name = "location", (.tagger.v1.tags) = "bson:\"location\" json:\"location\""]; +inline void Robot::clear_location() { + location_.ClearToEmpty(); +} +inline const std::string& Robot::location() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Robot.location) + return _internal_location(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Robot::set_location(ArgT0&& arg0, ArgT... args) { + + location_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.Robot.location) +} +inline std::string* Robot::mutable_location() { + std::string* _s = _internal_mutable_location(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Robot.location) + return _s; +} +inline const std::string& Robot::_internal_location() const { + return location_.Get(); +} +inline void Robot::_internal_set_location(const std::string& value) { + + location_.Set(value, GetArenaForAllocation()); +} +inline std::string* Robot::_internal_mutable_location() { + + return location_.Mutable(GetArenaForAllocation()); +} +inline std::string* Robot::release_location() { + // @@protoc_insertion_point(field_release:viam.app.v1.Robot.location) + return location_.Release(); +} +inline void Robot::set_allocated_location(std::string* location) { + if (location != nullptr) { + + } else { + + } + location_.SetAllocated(location, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (location_.IsDefault()) { + location_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Robot.location) +} + +// .google.protobuf.Timestamp last_access = 4 [json_name = "lastAccess", (.tagger.v1.tags) = "bson:\"last_access\" json:\"last_access\""]; +inline bool Robot::_internal_has_last_access() const { + return this != internal_default_instance() && last_access_ != nullptr; +} +inline bool Robot::has_last_access() const { + return _internal_has_last_access(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& Robot::_internal_last_access() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = last_access_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& Robot::last_access() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Robot.last_access) + return _internal_last_access(); +} +inline void Robot::unsafe_arena_set_allocated_last_access( + ::PROTOBUF_NAMESPACE_ID::Timestamp* last_access) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_access_); + } + last_access_ = last_access; + if (last_access) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.Robot.last_access) +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Robot::release_last_access() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = last_access_; + last_access_ = 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* Robot::unsafe_arena_release_last_access() { + // @@protoc_insertion_point(field_release:viam.app.v1.Robot.last_access) + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = last_access_; + last_access_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Robot::_internal_mutable_last_access() { + + if (last_access_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + last_access_ = p; + } + return last_access_; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Robot::mutable_last_access() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_last_access(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Robot.last_access) + return _msg; +} +inline void Robot::set_allocated_last_access(::PROTOBUF_NAMESPACE_ID::Timestamp* last_access) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_access_); + } + if (last_access) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_access)); + if (message_arena != submessage_arena) { + last_access = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, last_access, submessage_arena); + } + + } else { + + } + last_access_ = last_access; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Robot.last_access) +} + +// .google.protobuf.Timestamp created_on = 5 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\""]; +inline bool Robot::_internal_has_created_on() const { + return this != internal_default_instance() && created_on_ != nullptr; +} +inline bool Robot::has_created_on() const { + return _internal_has_created_on(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& Robot::_internal_created_on() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = created_on_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& Robot::created_on() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Robot.created_on) + return _internal_created_on(); +} +inline void Robot::unsafe_arena_set_allocated_created_on( + ::PROTOBUF_NAMESPACE_ID::Timestamp* created_on) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(created_on_); + } + created_on_ = created_on; + if (created_on) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.Robot.created_on) +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Robot::release_created_on() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = created_on_; + created_on_ = 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* Robot::unsafe_arena_release_created_on() { + // @@protoc_insertion_point(field_release:viam.app.v1.Robot.created_on) + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = created_on_; + created_on_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Robot::_internal_mutable_created_on() { + + if (created_on_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + created_on_ = p; + } + return created_on_; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Robot::mutable_created_on() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_created_on(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Robot.created_on) + return _msg; +} +inline void Robot::set_allocated_created_on(::PROTOBUF_NAMESPACE_ID::Timestamp* created_on) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(created_on_); + } + if (created_on) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(created_on)); + if (message_arena != submessage_arena) { + created_on = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, created_on, submessage_arena); + } + + } else { + + } + created_on_ = created_on; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Robot.created_on) +} + +// ------------------------------------------------------------------- + +// RobotPart + +// string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""]; +inline void RobotPart::clear_id() { + id_.ClearToEmpty(); +} +inline const std::string& RobotPart::id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RobotPart.id) + return _internal_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RobotPart::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.RobotPart.id) +} +inline std::string* RobotPart::mutable_id() { + std::string* _s = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotPart.id) + return _s; +} +inline const std::string& RobotPart::_internal_id() const { + return id_.Get(); +} +inline void RobotPart::_internal_set_id(const std::string& value) { + + id_.Set(value, GetArenaForAllocation()); +} +inline std::string* RobotPart::_internal_mutable_id() { + + return id_.Mutable(GetArenaForAllocation()); +} +inline std::string* RobotPart::release_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.RobotPart.id) + return id_.Release(); +} +inline void RobotPart::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotPart.id) +} + +// string name = 2 [json_name = "name", (.tagger.v1.tags) = "bson:\"name\" json:\"name\""]; +inline void RobotPart::clear_name() { + name_.ClearToEmpty(); +} +inline const std::string& RobotPart::name() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RobotPart.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RobotPart::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.RobotPart.name) +} +inline std::string* RobotPart::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotPart.name) + return _s; +} +inline const std::string& RobotPart::_internal_name() const { + return name_.Get(); +} +inline void RobotPart::_internal_set_name(const std::string& value) { + + name_.Set(value, GetArenaForAllocation()); +} +inline std::string* RobotPart::_internal_mutable_name() { + + return name_.Mutable(GetArenaForAllocation()); +} +inline std::string* RobotPart::release_name() { + // @@protoc_insertion_point(field_release:viam.app.v1.RobotPart.name) + return name_.Release(); +} +inline void RobotPart::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.app.v1.RobotPart.name) +} + +// string dns_name = 10 [json_name = "dnsName", (.tagger.v1.tags) = "bson:\"dns_name\" json:\"dns_name\""]; +inline void RobotPart::clear_dns_name() { + dns_name_.ClearToEmpty(); +} +inline const std::string& RobotPart::dns_name() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RobotPart.dns_name) + return _internal_dns_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RobotPart::set_dns_name(ArgT0&& arg0, ArgT... args) { + + dns_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.RobotPart.dns_name) +} +inline std::string* RobotPart::mutable_dns_name() { + std::string* _s = _internal_mutable_dns_name(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotPart.dns_name) + return _s; +} +inline const std::string& RobotPart::_internal_dns_name() const { + return dns_name_.Get(); +} +inline void RobotPart::_internal_set_dns_name(const std::string& value) { + + dns_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* RobotPart::_internal_mutable_dns_name() { + + return dns_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* RobotPart::release_dns_name() { + // @@protoc_insertion_point(field_release:viam.app.v1.RobotPart.dns_name) + return dns_name_.Release(); +} +inline void RobotPart::set_allocated_dns_name(std::string* dns_name) { + if (dns_name != nullptr) { + + } else { + + } + dns_name_.SetAllocated(dns_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (dns_name_.IsDefault()) { + dns_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotPart.dns_name) +} + +// string secret = 3 [json_name = "secret", (.tagger.v1.tags) = "bson:\"secret\" json:\"secret,omitempty\""]; +inline void RobotPart::clear_secret() { + secret_.ClearToEmpty(); +} +inline const std::string& RobotPart::secret() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RobotPart.secret) + return _internal_secret(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RobotPart::set_secret(ArgT0&& arg0, ArgT... args) { + + secret_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.RobotPart.secret) +} +inline std::string* RobotPart::mutable_secret() { + std::string* _s = _internal_mutable_secret(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotPart.secret) + return _s; +} +inline const std::string& RobotPart::_internal_secret() const { + return secret_.Get(); +} +inline void RobotPart::_internal_set_secret(const std::string& value) { + + secret_.Set(value, GetArenaForAllocation()); +} +inline std::string* RobotPart::_internal_mutable_secret() { + + return secret_.Mutable(GetArenaForAllocation()); +} +inline std::string* RobotPart::release_secret() { + // @@protoc_insertion_point(field_release:viam.app.v1.RobotPart.secret) + return secret_.Release(); +} +inline void RobotPart::set_allocated_secret(std::string* secret) { + if (secret != nullptr) { + + } else { + + } + secret_.SetAllocated(secret, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (secret_.IsDefault()) { + secret_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotPart.secret) +} + +// string robot = 4 [json_name = "robot", (.tagger.v1.tags) = "bson:\"robot\" json:\"robot\""]; +inline void RobotPart::clear_robot() { + robot_.ClearToEmpty(); +} +inline const std::string& RobotPart::robot() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RobotPart.robot) + return _internal_robot(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RobotPart::set_robot(ArgT0&& arg0, ArgT... args) { + + robot_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.RobotPart.robot) +} +inline std::string* RobotPart::mutable_robot() { + std::string* _s = _internal_mutable_robot(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotPart.robot) + return _s; +} +inline const std::string& RobotPart::_internal_robot() const { + return robot_.Get(); +} +inline void RobotPart::_internal_set_robot(const std::string& value) { + + robot_.Set(value, GetArenaForAllocation()); +} +inline std::string* RobotPart::_internal_mutable_robot() { + + return robot_.Mutable(GetArenaForAllocation()); +} +inline std::string* RobotPart::release_robot() { + // @@protoc_insertion_point(field_release:viam.app.v1.RobotPart.robot) + return robot_.Release(); +} +inline void RobotPart::set_allocated_robot(std::string* robot) { + if (robot != nullptr) { + + } else { + + } + robot_.SetAllocated(robot, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (robot_.IsDefault()) { + robot_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotPart.robot) +} + +// string location_id = 12 [json_name = "locationId", (.tagger.v1.tags) = "bson:\"location_id\" json:\"-\""]; +inline void RobotPart::clear_location_id() { + location_id_.ClearToEmpty(); +} +inline const std::string& RobotPart::location_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RobotPart.location_id) + return _internal_location_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RobotPart::set_location_id(ArgT0&& arg0, ArgT... args) { + + location_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.RobotPart.location_id) +} +inline std::string* RobotPart::mutable_location_id() { + std::string* _s = _internal_mutable_location_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotPart.location_id) + return _s; +} +inline const std::string& RobotPart::_internal_location_id() const { + return location_id_.Get(); +} +inline void RobotPart::_internal_set_location_id(const std::string& value) { + + location_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* RobotPart::_internal_mutable_location_id() { + + return location_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* RobotPart::release_location_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.RobotPart.location_id) + return location_id_.Release(); +} +inline void RobotPart::set_allocated_location_id(std::string* location_id) { + if (location_id != nullptr) { + + } else { + + } + location_id_.SetAllocated(location_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (location_id_.IsDefault()) { + location_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotPart.location_id) +} + +// .google.protobuf.Struct robot_config = 5 [json_name = "robotConfig", (.tagger.v1.tags) = "bson:\"config\" json:\"robot_config\""]; +inline bool RobotPart::_internal_has_robot_config() const { + return this != internal_default_instance() && robot_config_ != nullptr; +} +inline bool RobotPart::has_robot_config() const { + return _internal_has_robot_config(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& RobotPart::_internal_robot_config() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = robot_config_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& RobotPart::robot_config() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RobotPart.robot_config) + return _internal_robot_config(); +} +inline void RobotPart::unsafe_arena_set_allocated_robot_config( + ::PROTOBUF_NAMESPACE_ID::Struct* robot_config) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(robot_config_); + } + robot_config_ = robot_config; + if (robot_config) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.RobotPart.robot_config) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* RobotPart::release_robot_config() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = robot_config_; + robot_config_ = 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* RobotPart::unsafe_arena_release_robot_config() { + // @@protoc_insertion_point(field_release:viam.app.v1.RobotPart.robot_config) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = robot_config_; + robot_config_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* RobotPart::_internal_mutable_robot_config() { + + if (robot_config_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + robot_config_ = p; + } + return robot_config_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* RobotPart::mutable_robot_config() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_robot_config(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotPart.robot_config) + return _msg; +} +inline void RobotPart::set_allocated_robot_config(::PROTOBUF_NAMESPACE_ID::Struct* robot_config) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(robot_config_); + } + if (robot_config) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(robot_config)); + if (message_arena != submessage_arena) { + robot_config = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, robot_config, submessage_arena); + } + + } else { + + } + robot_config_ = robot_config; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotPart.robot_config) +} + +// .google.protobuf.Timestamp last_access = 6 [json_name = "lastAccess", (.tagger.v1.tags) = "bson:\"last_access\" json:\"last_access\""]; +inline bool RobotPart::_internal_has_last_access() const { + return this != internal_default_instance() && last_access_ != nullptr; +} +inline bool RobotPart::has_last_access() const { + return _internal_has_last_access(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& RobotPart::_internal_last_access() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = last_access_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& RobotPart::last_access() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RobotPart.last_access) + return _internal_last_access(); +} +inline void RobotPart::unsafe_arena_set_allocated_last_access( + ::PROTOBUF_NAMESPACE_ID::Timestamp* last_access) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_access_); + } + last_access_ = last_access; + if (last_access) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.RobotPart.last_access) +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* RobotPart::release_last_access() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = last_access_; + last_access_ = 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* RobotPart::unsafe_arena_release_last_access() { + // @@protoc_insertion_point(field_release:viam.app.v1.RobotPart.last_access) + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = last_access_; + last_access_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* RobotPart::_internal_mutable_last_access() { + + if (last_access_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + last_access_ = p; + } + return last_access_; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* RobotPart::mutable_last_access() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_last_access(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotPart.last_access) + return _msg; +} +inline void RobotPart::set_allocated_last_access(::PROTOBUF_NAMESPACE_ID::Timestamp* last_access) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_access_); + } + if (last_access) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_access)); + if (message_arena != submessage_arena) { + last_access = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, last_access, submessage_arena); + } + + } else { + + } + last_access_ = last_access; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotPart.last_access) +} + +// .google.protobuf.Struct user_supplied_info = 7 [json_name = "userSuppliedInfo", (.tagger.v1.tags) = "bson:\"user_supplied_info\" json:\"user_supplied_info\""]; +inline bool RobotPart::_internal_has_user_supplied_info() const { + return this != internal_default_instance() && user_supplied_info_ != nullptr; +} +inline bool RobotPart::has_user_supplied_info() const { + return _internal_has_user_supplied_info(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& RobotPart::_internal_user_supplied_info() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = user_supplied_info_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& RobotPart::user_supplied_info() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RobotPart.user_supplied_info) + return _internal_user_supplied_info(); +} +inline void RobotPart::unsafe_arena_set_allocated_user_supplied_info( + ::PROTOBUF_NAMESPACE_ID::Struct* user_supplied_info) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(user_supplied_info_); + } + user_supplied_info_ = user_supplied_info; + if (user_supplied_info) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.RobotPart.user_supplied_info) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* RobotPart::release_user_supplied_info() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = user_supplied_info_; + user_supplied_info_ = 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* RobotPart::unsafe_arena_release_user_supplied_info() { + // @@protoc_insertion_point(field_release:viam.app.v1.RobotPart.user_supplied_info) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = user_supplied_info_; + user_supplied_info_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* RobotPart::_internal_mutable_user_supplied_info() { + + if (user_supplied_info_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + user_supplied_info_ = p; + } + return user_supplied_info_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* RobotPart::mutable_user_supplied_info() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_user_supplied_info(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotPart.user_supplied_info) + return _msg; +} +inline void RobotPart::set_allocated_user_supplied_info(::PROTOBUF_NAMESPACE_ID::Struct* user_supplied_info) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(user_supplied_info_); + } + if (user_supplied_info) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(user_supplied_info)); + if (message_arena != submessage_arena) { + user_supplied_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, user_supplied_info, submessage_arena); + } + + } else { + + } + user_supplied_info_ = user_supplied_info; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotPart.user_supplied_info) +} + +// bool main_part = 8 [json_name = "mainPart", (.tagger.v1.tags) = "bson:\"main_part\" json:\"main_part\""]; +inline void RobotPart::clear_main_part() { + main_part_ = false; +} +inline bool RobotPart::_internal_main_part() const { + return main_part_; +} +inline bool RobotPart::main_part() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RobotPart.main_part) + return _internal_main_part(); +} +inline void RobotPart::_internal_set_main_part(bool value) { + + main_part_ = value; +} +inline void RobotPart::set_main_part(bool value) { + _internal_set_main_part(value); + // @@protoc_insertion_point(field_set:viam.app.v1.RobotPart.main_part) +} + +// string fqdn = 9 [json_name = "fqdn"]; +inline void RobotPart::clear_fqdn() { + fqdn_.ClearToEmpty(); +} +inline const std::string& RobotPart::fqdn() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RobotPart.fqdn) + return _internal_fqdn(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RobotPart::set_fqdn(ArgT0&& arg0, ArgT... args) { + + fqdn_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.RobotPart.fqdn) +} +inline std::string* RobotPart::mutable_fqdn() { + std::string* _s = _internal_mutable_fqdn(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotPart.fqdn) + return _s; +} +inline const std::string& RobotPart::_internal_fqdn() const { + return fqdn_.Get(); +} +inline void RobotPart::_internal_set_fqdn(const std::string& value) { + + fqdn_.Set(value, GetArenaForAllocation()); +} +inline std::string* RobotPart::_internal_mutable_fqdn() { + + return fqdn_.Mutable(GetArenaForAllocation()); +} +inline std::string* RobotPart::release_fqdn() { + // @@protoc_insertion_point(field_release:viam.app.v1.RobotPart.fqdn) + return fqdn_.Release(); +} +inline void RobotPart::set_allocated_fqdn(std::string* fqdn) { + if (fqdn != nullptr) { + + } else { + + } + fqdn_.SetAllocated(fqdn, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (fqdn_.IsDefault()) { + fqdn_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotPart.fqdn) +} + +// string local_fqdn = 11 [json_name = "localFqdn"]; +inline void RobotPart::clear_local_fqdn() { + local_fqdn_.ClearToEmpty(); +} +inline const std::string& RobotPart::local_fqdn() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RobotPart.local_fqdn) + return _internal_local_fqdn(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RobotPart::set_local_fqdn(ArgT0&& arg0, ArgT... args) { + + local_fqdn_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.RobotPart.local_fqdn) +} +inline std::string* RobotPart::mutable_local_fqdn() { + std::string* _s = _internal_mutable_local_fqdn(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotPart.local_fqdn) + return _s; +} +inline const std::string& RobotPart::_internal_local_fqdn() const { + return local_fqdn_.Get(); +} +inline void RobotPart::_internal_set_local_fqdn(const std::string& value) { + + local_fqdn_.Set(value, GetArenaForAllocation()); +} +inline std::string* RobotPart::_internal_mutable_local_fqdn() { + + return local_fqdn_.Mutable(GetArenaForAllocation()); +} +inline std::string* RobotPart::release_local_fqdn() { + // @@protoc_insertion_point(field_release:viam.app.v1.RobotPart.local_fqdn) + return local_fqdn_.Release(); +} +inline void RobotPart::set_allocated_local_fqdn(std::string* local_fqdn) { + if (local_fqdn != nullptr) { + + } else { + + } + local_fqdn_.SetAllocated(local_fqdn, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (local_fqdn_.IsDefault()) { + local_fqdn_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotPart.local_fqdn) +} + +// .google.protobuf.Timestamp created_on = 13 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\""]; +inline bool RobotPart::_internal_has_created_on() const { + return this != internal_default_instance() && created_on_ != nullptr; +} +inline bool RobotPart::has_created_on() const { + return _internal_has_created_on(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& RobotPart::_internal_created_on() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = created_on_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& RobotPart::created_on() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RobotPart.created_on) + return _internal_created_on(); +} +inline void RobotPart::unsafe_arena_set_allocated_created_on( + ::PROTOBUF_NAMESPACE_ID::Timestamp* created_on) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(created_on_); + } + created_on_ = created_on; + if (created_on) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.RobotPart.created_on) +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* RobotPart::release_created_on() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = created_on_; + created_on_ = 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* RobotPart::unsafe_arena_release_created_on() { + // @@protoc_insertion_point(field_release:viam.app.v1.RobotPart.created_on) + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = created_on_; + created_on_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* RobotPart::_internal_mutable_created_on() { + + if (created_on_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + created_on_ = p; + } + return created_on_; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* RobotPart::mutable_created_on() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_created_on(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotPart.created_on) + return _msg; +} +inline void RobotPart::set_allocated_created_on(::PROTOBUF_NAMESPACE_ID::Timestamp* created_on) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(created_on_); + } + if (created_on) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(created_on)); + if (message_arena != submessage_arena) { + created_on = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, created_on, submessage_arena); + } + + } else { + + } + created_on_ = created_on; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotPart.created_on) +} + +// repeated .viam.app.v1.SharedSecret secrets = 14 [json_name = "secrets", (.tagger.v1.tags) = "bson:\"secrets\""]; +inline int RobotPart::_internal_secrets_size() const { + return secrets_.size(); +} +inline int RobotPart::secrets_size() const { + return _internal_secrets_size(); +} +inline void RobotPart::clear_secrets() { + secrets_.Clear(); +} +inline ::viam::app::v1::SharedSecret* RobotPart::mutable_secrets(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotPart.secrets) + return secrets_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::SharedSecret >* +RobotPart::mutable_secrets() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.RobotPart.secrets) + return &secrets_; +} +inline const ::viam::app::v1::SharedSecret& RobotPart::_internal_secrets(int index) const { + return secrets_.Get(index); +} +inline const ::viam::app::v1::SharedSecret& RobotPart::secrets(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.RobotPart.secrets) + return _internal_secrets(index); +} +inline ::viam::app::v1::SharedSecret* RobotPart::_internal_add_secrets() { + return secrets_.Add(); +} +inline ::viam::app::v1::SharedSecret* RobotPart::add_secrets() { + ::viam::app::v1::SharedSecret* _add = _internal_add_secrets(); + // @@protoc_insertion_point(field_add:viam.app.v1.RobotPart.secrets) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::SharedSecret >& +RobotPart::secrets() const { + // @@protoc_insertion_point(field_list:viam.app.v1.RobotPart.secrets) + return secrets_; +} + +// .google.protobuf.Timestamp last_updated = 15 [json_name = "lastUpdated", (.tagger.v1.tags) = "bson:\"last_updated_at\""]; +inline bool RobotPart::_internal_has_last_updated() const { + return this != internal_default_instance() && last_updated_ != nullptr; +} +inline bool RobotPart::has_last_updated() const { + return _internal_has_last_updated(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& RobotPart::_internal_last_updated() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = last_updated_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& RobotPart::last_updated() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RobotPart.last_updated) + return _internal_last_updated(); +} +inline void RobotPart::unsafe_arena_set_allocated_last_updated( + ::PROTOBUF_NAMESPACE_ID::Timestamp* last_updated) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_updated_); + } + last_updated_ = last_updated; + if (last_updated) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.RobotPart.last_updated) +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* RobotPart::release_last_updated() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = last_updated_; + last_updated_ = 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* RobotPart::unsafe_arena_release_last_updated() { + // @@protoc_insertion_point(field_release:viam.app.v1.RobotPart.last_updated) + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = last_updated_; + last_updated_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* RobotPart::_internal_mutable_last_updated() { + + if (last_updated_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + last_updated_ = p; + } + return last_updated_; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* RobotPart::mutable_last_updated() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_last_updated(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotPart.last_updated) + return _msg; +} +inline void RobotPart::set_allocated_last_updated(::PROTOBUF_NAMESPACE_ID::Timestamp* last_updated) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_updated_); + } + if (last_updated) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_updated)); + if (message_arena != submessage_arena) { + last_updated = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, last_updated, submessage_arena); + } + + } else { + + } + last_updated_ = last_updated; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotPart.last_updated) +} + +// ------------------------------------------------------------------- + +// RobotPartHistoryEntry + +// string part = 1 [json_name = "part", (.tagger.v1.tags) = "bson:\"part\" json:\"part\""]; +inline void RobotPartHistoryEntry::clear_part() { + part_.ClearToEmpty(); +} +inline const std::string& RobotPartHistoryEntry::part() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RobotPartHistoryEntry.part) + return _internal_part(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RobotPartHistoryEntry::set_part(ArgT0&& arg0, ArgT... args) { + + part_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.RobotPartHistoryEntry.part) +} +inline std::string* RobotPartHistoryEntry::mutable_part() { + std::string* _s = _internal_mutable_part(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotPartHistoryEntry.part) + return _s; +} +inline const std::string& RobotPartHistoryEntry::_internal_part() const { + return part_.Get(); +} +inline void RobotPartHistoryEntry::_internal_set_part(const std::string& value) { + + part_.Set(value, GetArenaForAllocation()); +} +inline std::string* RobotPartHistoryEntry::_internal_mutable_part() { + + return part_.Mutable(GetArenaForAllocation()); +} +inline std::string* RobotPartHistoryEntry::release_part() { + // @@protoc_insertion_point(field_release:viam.app.v1.RobotPartHistoryEntry.part) + return part_.Release(); +} +inline void RobotPartHistoryEntry::set_allocated_part(std::string* part) { + if (part != nullptr) { + + } else { + + } + part_.SetAllocated(part, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (part_.IsDefault()) { + part_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotPartHistoryEntry.part) +} + +// string robot = 2 [json_name = "robot", (.tagger.v1.tags) = "bson:\"robot\" json:\"robot\""]; +inline void RobotPartHistoryEntry::clear_robot() { + robot_.ClearToEmpty(); +} +inline const std::string& RobotPartHistoryEntry::robot() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RobotPartHistoryEntry.robot) + return _internal_robot(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RobotPartHistoryEntry::set_robot(ArgT0&& arg0, ArgT... args) { + + robot_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.RobotPartHistoryEntry.robot) +} +inline std::string* RobotPartHistoryEntry::mutable_robot() { + std::string* _s = _internal_mutable_robot(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotPartHistoryEntry.robot) + return _s; +} +inline const std::string& RobotPartHistoryEntry::_internal_robot() const { + return robot_.Get(); +} +inline void RobotPartHistoryEntry::_internal_set_robot(const std::string& value) { + + robot_.Set(value, GetArenaForAllocation()); +} +inline std::string* RobotPartHistoryEntry::_internal_mutable_robot() { + + return robot_.Mutable(GetArenaForAllocation()); +} +inline std::string* RobotPartHistoryEntry::release_robot() { + // @@protoc_insertion_point(field_release:viam.app.v1.RobotPartHistoryEntry.robot) + return robot_.Release(); +} +inline void RobotPartHistoryEntry::set_allocated_robot(std::string* robot) { + if (robot != nullptr) { + + } else { + + } + robot_.SetAllocated(robot, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (robot_.IsDefault()) { + robot_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotPartHistoryEntry.robot) +} + +// .google.protobuf.Timestamp when = 3 [json_name = "when", (.tagger.v1.tags) = "bson:\"when\" json:\"when\""]; +inline bool RobotPartHistoryEntry::_internal_has_when() const { + return this != internal_default_instance() && when_ != nullptr; +} +inline bool RobotPartHistoryEntry::has_when() const { + return _internal_has_when(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& RobotPartHistoryEntry::_internal_when() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = when_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& RobotPartHistoryEntry::when() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RobotPartHistoryEntry.when) + return _internal_when(); +} +inline void RobotPartHistoryEntry::unsafe_arena_set_allocated_when( + ::PROTOBUF_NAMESPACE_ID::Timestamp* when) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(when_); + } + when_ = when; + if (when) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.RobotPartHistoryEntry.when) +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* RobotPartHistoryEntry::release_when() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = when_; + when_ = 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* RobotPartHistoryEntry::unsafe_arena_release_when() { + // @@protoc_insertion_point(field_release:viam.app.v1.RobotPartHistoryEntry.when) + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = when_; + when_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* RobotPartHistoryEntry::_internal_mutable_when() { + + if (when_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + when_ = p; + } + return when_; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* RobotPartHistoryEntry::mutable_when() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_when(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotPartHistoryEntry.when) + return _msg; +} +inline void RobotPartHistoryEntry::set_allocated_when(::PROTOBUF_NAMESPACE_ID::Timestamp* when) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(when_); + } + if (when) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(when)); + if (message_arena != submessage_arena) { + when = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, when, submessage_arena); + } + + } else { + + } + when_ = when; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotPartHistoryEntry.when) +} + +// .viam.app.v1.RobotPart old = 4 [json_name = "old", (.tagger.v1.tags) = "bson:\"old\" json:\"old\""]; +inline bool RobotPartHistoryEntry::_internal_has_old() const { + return this != internal_default_instance() && old_ != nullptr; +} +inline bool RobotPartHistoryEntry::has_old() const { + return _internal_has_old(); +} +inline void RobotPartHistoryEntry::clear_old() { + if (GetArenaForAllocation() == nullptr && old_ != nullptr) { + delete old_; + } + old_ = nullptr; +} +inline const ::viam::app::v1::RobotPart& RobotPartHistoryEntry::_internal_old() const { + const ::viam::app::v1::RobotPart* p = old_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_RobotPart_default_instance_); +} +inline const ::viam::app::v1::RobotPart& RobotPartHistoryEntry::old() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RobotPartHistoryEntry.old) + return _internal_old(); +} +inline void RobotPartHistoryEntry::unsafe_arena_set_allocated_old( + ::viam::app::v1::RobotPart* old) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(old_); + } + old_ = old; + if (old) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.RobotPartHistoryEntry.old) +} +inline ::viam::app::v1::RobotPart* RobotPartHistoryEntry::release_old() { + + ::viam::app::v1::RobotPart* temp = old_; + old_ = 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::RobotPart* RobotPartHistoryEntry::unsafe_arena_release_old() { + // @@protoc_insertion_point(field_release:viam.app.v1.RobotPartHistoryEntry.old) + + ::viam::app::v1::RobotPart* temp = old_; + old_ = nullptr; + return temp; +} +inline ::viam::app::v1::RobotPart* RobotPartHistoryEntry::_internal_mutable_old() { + + if (old_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::RobotPart>(GetArenaForAllocation()); + old_ = p; + } + return old_; +} +inline ::viam::app::v1::RobotPart* RobotPartHistoryEntry::mutable_old() { + ::viam::app::v1::RobotPart* _msg = _internal_mutable_old(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotPartHistoryEntry.old) + return _msg; +} +inline void RobotPartHistoryEntry::set_allocated_old(::viam::app::v1::RobotPart* old) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete old_; + } + if (old) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(old); + if (message_arena != submessage_arena) { + old = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, old, submessage_arena); + } + + } else { + + } + old_ = old; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotPartHistoryEntry.old) +} + +// .viam.app.v1.AuthenticatorInfo edited_by = 5 [json_name = "editedBy", (.tagger.v1.tags) = "bson:\"edited_by\" json:\"edited_by\""]; +inline bool RobotPartHistoryEntry::_internal_has_edited_by() const { + return this != internal_default_instance() && edited_by_ != nullptr; +} +inline bool RobotPartHistoryEntry::has_edited_by() const { + return _internal_has_edited_by(); +} +inline void RobotPartHistoryEntry::clear_edited_by() { + if (GetArenaForAllocation() == nullptr && edited_by_ != nullptr) { + delete edited_by_; + } + edited_by_ = nullptr; +} +inline const ::viam::app::v1::AuthenticatorInfo& RobotPartHistoryEntry::_internal_edited_by() const { + const ::viam::app::v1::AuthenticatorInfo* p = edited_by_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_AuthenticatorInfo_default_instance_); +} +inline const ::viam::app::v1::AuthenticatorInfo& RobotPartHistoryEntry::edited_by() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RobotPartHistoryEntry.edited_by) + return _internal_edited_by(); +} +inline void RobotPartHistoryEntry::unsafe_arena_set_allocated_edited_by( + ::viam::app::v1::AuthenticatorInfo* edited_by) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(edited_by_); + } + edited_by_ = edited_by; + if (edited_by) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.RobotPartHistoryEntry.edited_by) +} +inline ::viam::app::v1::AuthenticatorInfo* RobotPartHistoryEntry::release_edited_by() { + + ::viam::app::v1::AuthenticatorInfo* temp = edited_by_; + edited_by_ = 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::AuthenticatorInfo* RobotPartHistoryEntry::unsafe_arena_release_edited_by() { + // @@protoc_insertion_point(field_release:viam.app.v1.RobotPartHistoryEntry.edited_by) + + ::viam::app::v1::AuthenticatorInfo* temp = edited_by_; + edited_by_ = nullptr; + return temp; +} +inline ::viam::app::v1::AuthenticatorInfo* RobotPartHistoryEntry::_internal_mutable_edited_by() { + + if (edited_by_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::AuthenticatorInfo>(GetArenaForAllocation()); + edited_by_ = p; + } + return edited_by_; +} +inline ::viam::app::v1::AuthenticatorInfo* RobotPartHistoryEntry::mutable_edited_by() { + ::viam::app::v1::AuthenticatorInfo* _msg = _internal_mutable_edited_by(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotPartHistoryEntry.edited_by) + return _msg; +} +inline void RobotPartHistoryEntry::set_allocated_edited_by(::viam::app::v1::AuthenticatorInfo* edited_by) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete edited_by_; + } + if (edited_by) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(edited_by); + if (message_arena != submessage_arena) { + edited_by = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, edited_by, submessage_arena); + } + + } else { + + } + edited_by_ = edited_by; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotPartHistoryEntry.edited_by) +} + +// ------------------------------------------------------------------- + +// AuthenticatorInfo + +// .viam.app.v1.AuthenticationType type = 1 [json_name = "type"]; +inline void AuthenticatorInfo::clear_type() { + type_ = 0; +} +inline ::viam::app::v1::AuthenticationType AuthenticatorInfo::_internal_type() const { + return static_cast< ::viam::app::v1::AuthenticationType >(type_); +} +inline ::viam::app::v1::AuthenticationType AuthenticatorInfo::type() const { + // @@protoc_insertion_point(field_get:viam.app.v1.AuthenticatorInfo.type) + return _internal_type(); +} +inline void AuthenticatorInfo::_internal_set_type(::viam::app::v1::AuthenticationType value) { + + type_ = value; +} +inline void AuthenticatorInfo::set_type(::viam::app::v1::AuthenticationType value) { + _internal_set_type(value); + // @@protoc_insertion_point(field_set:viam.app.v1.AuthenticatorInfo.type) +} + +// string value = 2 [json_name = "value"]; +inline void AuthenticatorInfo::clear_value() { + value_.ClearToEmpty(); +} +inline const std::string& AuthenticatorInfo::value() const { + // @@protoc_insertion_point(field_get:viam.app.v1.AuthenticatorInfo.value) + return _internal_value(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void AuthenticatorInfo::set_value(ArgT0&& arg0, ArgT... args) { + + value_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.AuthenticatorInfo.value) +} +inline std::string* AuthenticatorInfo::mutable_value() { + std::string* _s = _internal_mutable_value(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.AuthenticatorInfo.value) + return _s; +} +inline const std::string& AuthenticatorInfo::_internal_value() const { + return value_.Get(); +} +inline void AuthenticatorInfo::_internal_set_value(const std::string& value) { + + value_.Set(value, GetArenaForAllocation()); +} +inline std::string* AuthenticatorInfo::_internal_mutable_value() { + + return value_.Mutable(GetArenaForAllocation()); +} +inline std::string* AuthenticatorInfo::release_value() { + // @@protoc_insertion_point(field_release:viam.app.v1.AuthenticatorInfo.value) + return value_.Release(); +} +inline void AuthenticatorInfo::set_allocated_value(std::string* value) { + if (value != nullptr) { + + } else { + + } + value_.SetAllocated(value, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (value_.IsDefault()) { + value_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.AuthenticatorInfo.value) +} + +// bool is_deactivated = 3 [json_name = "isDeactivated"]; +inline void AuthenticatorInfo::clear_is_deactivated() { + is_deactivated_ = false; +} +inline bool AuthenticatorInfo::_internal_is_deactivated() const { + return is_deactivated_; +} +inline bool AuthenticatorInfo::is_deactivated() const { + // @@protoc_insertion_point(field_get:viam.app.v1.AuthenticatorInfo.is_deactivated) + return _internal_is_deactivated(); +} +inline void AuthenticatorInfo::_internal_set_is_deactivated(bool value) { + + is_deactivated_ = value; +} +inline void AuthenticatorInfo::set_is_deactivated(bool value) { + _internal_set_is_deactivated(value); + // @@protoc_insertion_point(field_set:viam.app.v1.AuthenticatorInfo.is_deactivated) +} + +// ------------------------------------------------------------------- + +// ListOrganizationsRequest + +// ------------------------------------------------------------------- + +// Organization + +// string id = 1 [json_name = "id"]; +inline void Organization::clear_id() { + id_.ClearToEmpty(); +} +inline const std::string& Organization::id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Organization.id) + return _internal_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Organization::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.Organization.id) +} +inline std::string* Organization::mutable_id() { + std::string* _s = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Organization.id) + return _s; +} +inline const std::string& Organization::_internal_id() const { + return id_.Get(); +} +inline void Organization::_internal_set_id(const std::string& value) { + + id_.Set(value, GetArenaForAllocation()); +} +inline std::string* Organization::_internal_mutable_id() { + + return id_.Mutable(GetArenaForAllocation()); +} +inline std::string* Organization::release_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.Organization.id) + return id_.Release(); +} +inline void Organization::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Organization.id) +} + +// string name = 2 [json_name = "name"]; +inline void Organization::clear_name() { + name_.ClearToEmpty(); +} +inline const std::string& Organization::name() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Organization.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Organization::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.Organization.name) +} +inline std::string* Organization::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Organization.name) + return _s; +} +inline const std::string& Organization::_internal_name() const { + return name_.Get(); +} +inline void Organization::_internal_set_name(const std::string& value) { + + name_.Set(value, GetArenaForAllocation()); +} +inline std::string* Organization::_internal_mutable_name() { + + return name_.Mutable(GetArenaForAllocation()); +} +inline std::string* Organization::release_name() { + // @@protoc_insertion_point(field_release:viam.app.v1.Organization.name) + return name_.Release(); +} +inline void Organization::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.app.v1.Organization.name) +} + +// .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn"]; +inline bool Organization::_internal_has_created_on() const { + return this != internal_default_instance() && created_on_ != nullptr; +} +inline bool Organization::has_created_on() const { + return _internal_has_created_on(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& Organization::_internal_created_on() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = created_on_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& Organization::created_on() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Organization.created_on) + return _internal_created_on(); +} +inline void Organization::unsafe_arena_set_allocated_created_on( + ::PROTOBUF_NAMESPACE_ID::Timestamp* created_on) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(created_on_); + } + created_on_ = created_on; + if (created_on) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.Organization.created_on) +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Organization::release_created_on() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = created_on_; + created_on_ = 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* Organization::unsafe_arena_release_created_on() { + // @@protoc_insertion_point(field_release:viam.app.v1.Organization.created_on) + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = created_on_; + created_on_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Organization::_internal_mutable_created_on() { + + if (created_on_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + created_on_ = p; + } + return created_on_; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Organization::mutable_created_on() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_created_on(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Organization.created_on) + return _msg; +} +inline void Organization::set_allocated_created_on(::PROTOBUF_NAMESPACE_ID::Timestamp* created_on) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(created_on_); + } + if (created_on) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(created_on)); + if (message_arena != submessage_arena) { + created_on = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, created_on, submessage_arena); + } + + } else { + + } + created_on_ = created_on; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Organization.created_on) +} + +// string public_namespace = 4 [json_name = "publicNamespace"]; +inline void Organization::clear_public_namespace() { + public_namespace_.ClearToEmpty(); +} +inline const std::string& Organization::public_namespace() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Organization.public_namespace) + return _internal_public_namespace(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Organization::set_public_namespace(ArgT0&& arg0, ArgT... args) { + + public_namespace_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.Organization.public_namespace) +} +inline std::string* Organization::mutable_public_namespace() { + std::string* _s = _internal_mutable_public_namespace(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Organization.public_namespace) + return _s; +} +inline const std::string& Organization::_internal_public_namespace() const { + return public_namespace_.Get(); +} +inline void Organization::_internal_set_public_namespace(const std::string& value) { + + public_namespace_.Set(value, GetArenaForAllocation()); +} +inline std::string* Organization::_internal_mutable_public_namespace() { + + return public_namespace_.Mutable(GetArenaForAllocation()); +} +inline std::string* Organization::release_public_namespace() { + // @@protoc_insertion_point(field_release:viam.app.v1.Organization.public_namespace) + return public_namespace_.Release(); +} +inline void Organization::set_allocated_public_namespace(std::string* public_namespace) { + if (public_namespace != nullptr) { + + } else { + + } + public_namespace_.SetAllocated(public_namespace, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (public_namespace_.IsDefault()) { + public_namespace_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Organization.public_namespace) +} + +// string default_region = 5 [json_name = "defaultRegion"]; +inline void Organization::clear_default_region() { + default_region_.ClearToEmpty(); +} +inline const std::string& Organization::default_region() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Organization.default_region) + return _internal_default_region(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Organization::set_default_region(ArgT0&& arg0, ArgT... args) { + + default_region_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.Organization.default_region) +} +inline std::string* Organization::mutable_default_region() { + std::string* _s = _internal_mutable_default_region(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Organization.default_region) + return _s; +} +inline const std::string& Organization::_internal_default_region() const { + return default_region_.Get(); +} +inline void Organization::_internal_set_default_region(const std::string& value) { + + default_region_.Set(value, GetArenaForAllocation()); +} +inline std::string* Organization::_internal_mutable_default_region() { + + return default_region_.Mutable(GetArenaForAllocation()); +} +inline std::string* Organization::release_default_region() { + // @@protoc_insertion_point(field_release:viam.app.v1.Organization.default_region) + return default_region_.Release(); +} +inline void Organization::set_allocated_default_region(std::string* default_region) { + if (default_region != nullptr) { + + } else { + + } + default_region_.SetAllocated(default_region, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (default_region_.IsDefault()) { + default_region_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Organization.default_region) +} + +// optional string cid = 6 [json_name = "cid"]; +inline bool Organization::_internal_has_cid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool Organization::has_cid() const { + return _internal_has_cid(); +} +inline void Organization::clear_cid() { + cid_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& Organization::cid() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Organization.cid) + return _internal_cid(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Organization::set_cid(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + cid_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.Organization.cid) +} +inline std::string* Organization::mutable_cid() { + std::string* _s = _internal_mutable_cid(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Organization.cid) + return _s; +} +inline const std::string& Organization::_internal_cid() const { + return cid_.Get(); +} +inline void Organization::_internal_set_cid(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + cid_.Set(value, GetArenaForAllocation()); +} +inline std::string* Organization::_internal_mutable_cid() { + _has_bits_[0] |= 0x00000001u; + return cid_.Mutable(GetArenaForAllocation()); +} +inline std::string* Organization::release_cid() { + // @@protoc_insertion_point(field_release:viam.app.v1.Organization.cid) + if (!_internal_has_cid()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + auto* p = cid_.Release(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (cid_.IsDefault()) { + cid_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; +} +inline void Organization::set_allocated_cid(std::string* cid) { + if (cid != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + cid_.SetAllocated(cid, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (cid_.IsDefault()) { + cid_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Organization.cid) +} + +// ------------------------------------------------------------------- + +// OrganizationMember + +// string user_id = 1 [json_name = "userId"]; +inline void OrganizationMember::clear_user_id() { + user_id_.ClearToEmpty(); +} +inline const std::string& OrganizationMember::user_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.OrganizationMember.user_id) + return _internal_user_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void OrganizationMember::set_user_id(ArgT0&& arg0, ArgT... args) { + + user_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.OrganizationMember.user_id) +} +inline std::string* OrganizationMember::mutable_user_id() { + std::string* _s = _internal_mutable_user_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.OrganizationMember.user_id) + return _s; +} +inline const std::string& OrganizationMember::_internal_user_id() const { + return user_id_.Get(); +} +inline void OrganizationMember::_internal_set_user_id(const std::string& value) { + + user_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* OrganizationMember::_internal_mutable_user_id() { + + return user_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* OrganizationMember::release_user_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.OrganizationMember.user_id) + return user_id_.Release(); +} +inline void OrganizationMember::set_allocated_user_id(std::string* user_id) { + if (user_id != nullptr) { + + } else { + + } + user_id_.SetAllocated(user_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (user_id_.IsDefault()) { + user_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.OrganizationMember.user_id) +} + +// repeated string emails = 2 [json_name = "emails"]; +inline int OrganizationMember::_internal_emails_size() const { + return emails_.size(); +} +inline int OrganizationMember::emails_size() const { + return _internal_emails_size(); +} +inline void OrganizationMember::clear_emails() { + emails_.Clear(); +} +inline std::string* OrganizationMember::add_emails() { + std::string* _s = _internal_add_emails(); + // @@protoc_insertion_point(field_add_mutable:viam.app.v1.OrganizationMember.emails) + return _s; +} +inline const std::string& OrganizationMember::_internal_emails(int index) const { + return emails_.Get(index); +} +inline const std::string& OrganizationMember::emails(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.OrganizationMember.emails) + return _internal_emails(index); +} +inline std::string* OrganizationMember::mutable_emails(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.OrganizationMember.emails) + return emails_.Mutable(index); +} +inline void OrganizationMember::set_emails(int index, const std::string& value) { + emails_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:viam.app.v1.OrganizationMember.emails) +} +inline void OrganizationMember::set_emails(int index, std::string&& value) { + emails_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:viam.app.v1.OrganizationMember.emails) +} +inline void OrganizationMember::set_emails(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + emails_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:viam.app.v1.OrganizationMember.emails) +} +inline void OrganizationMember::set_emails(int index, const char* value, size_t size) { + emails_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:viam.app.v1.OrganizationMember.emails) +} +inline std::string* OrganizationMember::_internal_add_emails() { + return emails_.Add(); +} +inline void OrganizationMember::add_emails(const std::string& value) { + emails_.Add()->assign(value); + // @@protoc_insertion_point(field_add:viam.app.v1.OrganizationMember.emails) +} +inline void OrganizationMember::add_emails(std::string&& value) { + emails_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:viam.app.v1.OrganizationMember.emails) +} +inline void OrganizationMember::add_emails(const char* value) { + GOOGLE_DCHECK(value != nullptr); + emails_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:viam.app.v1.OrganizationMember.emails) +} +inline void OrganizationMember::add_emails(const char* value, size_t size) { + emails_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:viam.app.v1.OrganizationMember.emails) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +OrganizationMember::emails() const { + // @@protoc_insertion_point(field_list:viam.app.v1.OrganizationMember.emails) + return emails_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +OrganizationMember::mutable_emails() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.OrganizationMember.emails) + return &emails_; +} + +// .google.protobuf.Timestamp date_added = 3 [json_name = "dateAdded"]; +inline bool OrganizationMember::_internal_has_date_added() const { + return this != internal_default_instance() && date_added_ != nullptr; +} +inline bool OrganizationMember::has_date_added() const { + return _internal_has_date_added(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& OrganizationMember::_internal_date_added() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = date_added_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& OrganizationMember::date_added() const { + // @@protoc_insertion_point(field_get:viam.app.v1.OrganizationMember.date_added) + return _internal_date_added(); +} +inline void OrganizationMember::unsafe_arena_set_allocated_date_added( + ::PROTOBUF_NAMESPACE_ID::Timestamp* date_added) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(date_added_); + } + date_added_ = date_added; + if (date_added) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.OrganizationMember.date_added) +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* OrganizationMember::release_date_added() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = date_added_; + date_added_ = 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* OrganizationMember::unsafe_arena_release_date_added() { + // @@protoc_insertion_point(field_release:viam.app.v1.OrganizationMember.date_added) + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = date_added_; + date_added_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* OrganizationMember::_internal_mutable_date_added() { + + if (date_added_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + date_added_ = p; + } + return date_added_; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* OrganizationMember::mutable_date_added() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_date_added(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.OrganizationMember.date_added) + return _msg; +} +inline void OrganizationMember::set_allocated_date_added(::PROTOBUF_NAMESPACE_ID::Timestamp* date_added) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(date_added_); + } + if (date_added) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(date_added)); + if (message_arena != submessage_arena) { + date_added = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, date_added, submessage_arena); + } + + } else { + + } + date_added_ = date_added; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.OrganizationMember.date_added) +} + +// optional .google.protobuf.Timestamp last_login = 4 [json_name = "lastLogin"]; +inline bool OrganizationMember::_internal_has_last_login() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || last_login_ != nullptr); + return value; +} +inline bool OrganizationMember::has_last_login() const { + return _internal_has_last_login(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& OrganizationMember::_internal_last_login() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = last_login_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& OrganizationMember::last_login() const { + // @@protoc_insertion_point(field_get:viam.app.v1.OrganizationMember.last_login) + return _internal_last_login(); +} +inline void OrganizationMember::unsafe_arena_set_allocated_last_login( + ::PROTOBUF_NAMESPACE_ID::Timestamp* last_login) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_login_); + } + last_login_ = last_login; + if (last_login) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.OrganizationMember.last_login) +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* OrganizationMember::release_last_login() { + _has_bits_[0] &= ~0x00000001u; + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = last_login_; + last_login_ = 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* OrganizationMember::unsafe_arena_release_last_login() { + // @@protoc_insertion_point(field_release:viam.app.v1.OrganizationMember.last_login) + _has_bits_[0] &= ~0x00000001u; + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = last_login_; + last_login_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* OrganizationMember::_internal_mutable_last_login() { + _has_bits_[0] |= 0x00000001u; + if (last_login_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + last_login_ = p; + } + return last_login_; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* OrganizationMember::mutable_last_login() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_last_login(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.OrganizationMember.last_login) + return _msg; +} +inline void OrganizationMember::set_allocated_last_login(::PROTOBUF_NAMESPACE_ID::Timestamp* last_login) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_login_); + } + if (last_login) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_login)); + if (message_arena != submessage_arena) { + last_login = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, last_login, submessage_arena); + } + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + last_login_ = last_login; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.OrganizationMember.last_login) +} + +// ------------------------------------------------------------------- + +// ListOrganizationsResponse + +// repeated .viam.app.v1.Organization organizations = 1 [json_name = "organizations"]; +inline int ListOrganizationsResponse::_internal_organizations_size() const { + return organizations_.size(); +} +inline int ListOrganizationsResponse::organizations_size() const { + return _internal_organizations_size(); +} +inline void ListOrganizationsResponse::clear_organizations() { + organizations_.Clear(); +} +inline ::viam::app::v1::Organization* ListOrganizationsResponse::mutable_organizations(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.ListOrganizationsResponse.organizations) + return organizations_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Organization >* +ListOrganizationsResponse::mutable_organizations() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ListOrganizationsResponse.organizations) + return &organizations_; +} +inline const ::viam::app::v1::Organization& ListOrganizationsResponse::_internal_organizations(int index) const { + return organizations_.Get(index); +} +inline const ::viam::app::v1::Organization& ListOrganizationsResponse::organizations(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.ListOrganizationsResponse.organizations) + return _internal_organizations(index); +} +inline ::viam::app::v1::Organization* ListOrganizationsResponse::_internal_add_organizations() { + return organizations_.Add(); +} +inline ::viam::app::v1::Organization* ListOrganizationsResponse::add_organizations() { + ::viam::app::v1::Organization* _add = _internal_add_organizations(); + // @@protoc_insertion_point(field_add:viam.app.v1.ListOrganizationsResponse.organizations) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Organization >& +ListOrganizationsResponse::organizations() const { + // @@protoc_insertion_point(field_list:viam.app.v1.ListOrganizationsResponse.organizations) + return organizations_; +} + +// ------------------------------------------------------------------- + +// OrganizationInvite + +// string organization_id = 1 [json_name = "organizationId"]; +inline void OrganizationInvite::clear_organization_id() { + organization_id_.ClearToEmpty(); +} +inline const std::string& OrganizationInvite::organization_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.OrganizationInvite.organization_id) + return _internal_organization_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void OrganizationInvite::set_organization_id(ArgT0&& arg0, ArgT... args) { + + organization_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.OrganizationInvite.organization_id) +} +inline std::string* OrganizationInvite::mutable_organization_id() { + std::string* _s = _internal_mutable_organization_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.OrganizationInvite.organization_id) + return _s; +} +inline const std::string& OrganizationInvite::_internal_organization_id() const { + return organization_id_.Get(); +} +inline void OrganizationInvite::_internal_set_organization_id(const std::string& value) { + + organization_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* OrganizationInvite::_internal_mutable_organization_id() { + + return organization_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* OrganizationInvite::release_organization_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.OrganizationInvite.organization_id) + return organization_id_.Release(); +} +inline void OrganizationInvite::set_allocated_organization_id(std::string* organization_id) { + if (organization_id != nullptr) { + + } else { + + } + organization_id_.SetAllocated(organization_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (organization_id_.IsDefault()) { + organization_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.OrganizationInvite.organization_id) +} + +// string email = 2 [json_name = "email"]; +inline void OrganizationInvite::clear_email() { + email_.ClearToEmpty(); +} +inline const std::string& OrganizationInvite::email() const { + // @@protoc_insertion_point(field_get:viam.app.v1.OrganizationInvite.email) + return _internal_email(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void OrganizationInvite::set_email(ArgT0&& arg0, ArgT... args) { + + email_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.OrganizationInvite.email) +} +inline std::string* OrganizationInvite::mutable_email() { + std::string* _s = _internal_mutable_email(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.OrganizationInvite.email) + return _s; +} +inline const std::string& OrganizationInvite::_internal_email() const { + return email_.Get(); +} +inline void OrganizationInvite::_internal_set_email(const std::string& value) { + + email_.Set(value, GetArenaForAllocation()); +} +inline std::string* OrganizationInvite::_internal_mutable_email() { + + return email_.Mutable(GetArenaForAllocation()); +} +inline std::string* OrganizationInvite::release_email() { + // @@protoc_insertion_point(field_release:viam.app.v1.OrganizationInvite.email) + return email_.Release(); +} +inline void OrganizationInvite::set_allocated_email(std::string* email) { + if (email != nullptr) { + + } else { + + } + email_.SetAllocated(email, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (email_.IsDefault()) { + email_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.OrganizationInvite.email) +} + +// .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn"]; +inline bool OrganizationInvite::_internal_has_created_on() const { + return this != internal_default_instance() && created_on_ != nullptr; +} +inline bool OrganizationInvite::has_created_on() const { + return _internal_has_created_on(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& OrganizationInvite::_internal_created_on() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = created_on_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& OrganizationInvite::created_on() const { + // @@protoc_insertion_point(field_get:viam.app.v1.OrganizationInvite.created_on) + return _internal_created_on(); +} +inline void OrganizationInvite::unsafe_arena_set_allocated_created_on( + ::PROTOBUF_NAMESPACE_ID::Timestamp* created_on) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(created_on_); + } + created_on_ = created_on; + if (created_on) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.OrganizationInvite.created_on) +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* OrganizationInvite::release_created_on() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = created_on_; + created_on_ = 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* OrganizationInvite::unsafe_arena_release_created_on() { + // @@protoc_insertion_point(field_release:viam.app.v1.OrganizationInvite.created_on) + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = created_on_; + created_on_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* OrganizationInvite::_internal_mutable_created_on() { + + if (created_on_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + created_on_ = p; + } + return created_on_; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* OrganizationInvite::mutable_created_on() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_created_on(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.OrganizationInvite.created_on) + return _msg; +} +inline void OrganizationInvite::set_allocated_created_on(::PROTOBUF_NAMESPACE_ID::Timestamp* created_on) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(created_on_); + } + if (created_on) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(created_on)); + if (message_arena != submessage_arena) { + created_on = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, created_on, submessage_arena); + } + + } else { + + } + created_on_ = created_on; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.OrganizationInvite.created_on) +} + +// repeated .viam.app.v1.Authorization authorizations = 4 [json_name = "authorizations"]; +inline int OrganizationInvite::_internal_authorizations_size() const { + return authorizations_.size(); +} +inline int OrganizationInvite::authorizations_size() const { + return _internal_authorizations_size(); +} +inline void OrganizationInvite::clear_authorizations() { + authorizations_.Clear(); +} +inline ::viam::app::v1::Authorization* OrganizationInvite::mutable_authorizations(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.OrganizationInvite.authorizations) + return authorizations_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Authorization >* +OrganizationInvite::mutable_authorizations() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.OrganizationInvite.authorizations) + return &authorizations_; +} +inline const ::viam::app::v1::Authorization& OrganizationInvite::_internal_authorizations(int index) const { + return authorizations_.Get(index); +} +inline const ::viam::app::v1::Authorization& OrganizationInvite::authorizations(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.OrganizationInvite.authorizations) + return _internal_authorizations(index); +} +inline ::viam::app::v1::Authorization* OrganizationInvite::_internal_add_authorizations() { + return authorizations_.Add(); +} +inline ::viam::app::v1::Authorization* OrganizationInvite::add_authorizations() { + ::viam::app::v1::Authorization* _add = _internal_add_authorizations(); + // @@protoc_insertion_point(field_add:viam.app.v1.OrganizationInvite.authorizations) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Authorization >& +OrganizationInvite::authorizations() const { + // @@protoc_insertion_point(field_list:viam.app.v1.OrganizationInvite.authorizations) + return authorizations_; +} + +// ------------------------------------------------------------------- + +// CreateOrganizationRequest + +// string name = 1 [json_name = "name"]; +inline void CreateOrganizationRequest::clear_name() { + name_.ClearToEmpty(); +} +inline const std::string& CreateOrganizationRequest::name() const { + // @@protoc_insertion_point(field_get:viam.app.v1.CreateOrganizationRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void CreateOrganizationRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.CreateOrganizationRequest.name) +} +inline std::string* CreateOrganizationRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateOrganizationRequest.name) + return _s; +} +inline const std::string& CreateOrganizationRequest::_internal_name() const { + return name_.Get(); +} +inline void CreateOrganizationRequest::_internal_set_name(const std::string& value) { + + name_.Set(value, GetArenaForAllocation()); +} +inline std::string* CreateOrganizationRequest::_internal_mutable_name() { + + return name_.Mutable(GetArenaForAllocation()); +} +inline std::string* CreateOrganizationRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.app.v1.CreateOrganizationRequest.name) + return name_.Release(); +} +inline void CreateOrganizationRequest::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.app.v1.CreateOrganizationRequest.name) +} + +// ------------------------------------------------------------------- + +// CreateOrganizationResponse + +// .viam.app.v1.Organization organization = 1 [json_name = "organization"]; +inline bool CreateOrganizationResponse::_internal_has_organization() const { + return this != internal_default_instance() && organization_ != nullptr; +} +inline bool CreateOrganizationResponse::has_organization() const { + return _internal_has_organization(); +} +inline void CreateOrganizationResponse::clear_organization() { + if (GetArenaForAllocation() == nullptr && organization_ != nullptr) { + delete organization_; + } + organization_ = nullptr; +} +inline const ::viam::app::v1::Organization& CreateOrganizationResponse::_internal_organization() const { + const ::viam::app::v1::Organization* p = organization_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_Organization_default_instance_); +} +inline const ::viam::app::v1::Organization& CreateOrganizationResponse::organization() const { + // @@protoc_insertion_point(field_get:viam.app.v1.CreateOrganizationResponse.organization) + return _internal_organization(); +} +inline void CreateOrganizationResponse::unsafe_arena_set_allocated_organization( + ::viam::app::v1::Organization* organization) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(organization_); + } + organization_ = organization; + if (organization) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.CreateOrganizationResponse.organization) +} +inline ::viam::app::v1::Organization* CreateOrganizationResponse::release_organization() { + + ::viam::app::v1::Organization* temp = organization_; + organization_ = 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::Organization* CreateOrganizationResponse::unsafe_arena_release_organization() { + // @@protoc_insertion_point(field_release:viam.app.v1.CreateOrganizationResponse.organization) + + ::viam::app::v1::Organization* temp = organization_; + organization_ = nullptr; + return temp; +} +inline ::viam::app::v1::Organization* CreateOrganizationResponse::_internal_mutable_organization() { + + if (organization_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::Organization>(GetArenaForAllocation()); + organization_ = p; + } + return organization_; +} +inline ::viam::app::v1::Organization* CreateOrganizationResponse::mutable_organization() { + ::viam::app::v1::Organization* _msg = _internal_mutable_organization(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateOrganizationResponse.organization) + return _msg; +} +inline void CreateOrganizationResponse::set_allocated_organization(::viam::app::v1::Organization* organization) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete organization_; + } + if (organization) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(organization); + if (message_arena != submessage_arena) { + organization = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, organization, submessage_arena); + } + + } else { + + } + organization_ = organization; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateOrganizationResponse.organization) +} + +// ------------------------------------------------------------------- + +// GetOrganizationRequest + +// string organization_id = 1 [json_name = "organizationId"]; +inline void GetOrganizationRequest::clear_organization_id() { + organization_id_.ClearToEmpty(); +} +inline const std::string& GetOrganizationRequest::organization_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetOrganizationRequest.organization_id) + return _internal_organization_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetOrganizationRequest::set_organization_id(ArgT0&& arg0, ArgT... args) { + + organization_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.GetOrganizationRequest.organization_id) +} +inline std::string* GetOrganizationRequest::mutable_organization_id() { + std::string* _s = _internal_mutable_organization_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetOrganizationRequest.organization_id) + return _s; +} +inline const std::string& GetOrganizationRequest::_internal_organization_id() const { + return organization_id_.Get(); +} +inline void GetOrganizationRequest::_internal_set_organization_id(const std::string& value) { + + organization_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetOrganizationRequest::_internal_mutable_organization_id() { + + return organization_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetOrganizationRequest::release_organization_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.GetOrganizationRequest.organization_id) + return organization_id_.Release(); +} +inline void GetOrganizationRequest::set_allocated_organization_id(std::string* organization_id) { + if (organization_id != nullptr) { + + } else { + + } + organization_id_.SetAllocated(organization_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (organization_id_.IsDefault()) { + organization_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetOrganizationRequest.organization_id) +} + +// ------------------------------------------------------------------- + +// GetOrganizationResponse + +// .viam.app.v1.Organization organization = 1 [json_name = "organization"]; +inline bool GetOrganizationResponse::_internal_has_organization() const { + return this != internal_default_instance() && organization_ != nullptr; +} +inline bool GetOrganizationResponse::has_organization() const { + return _internal_has_organization(); +} +inline void GetOrganizationResponse::clear_organization() { + if (GetArenaForAllocation() == nullptr && organization_ != nullptr) { + delete organization_; + } + organization_ = nullptr; +} +inline const ::viam::app::v1::Organization& GetOrganizationResponse::_internal_organization() const { + const ::viam::app::v1::Organization* p = organization_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_Organization_default_instance_); +} +inline const ::viam::app::v1::Organization& GetOrganizationResponse::organization() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetOrganizationResponse.organization) + return _internal_organization(); +} +inline void GetOrganizationResponse::unsafe_arena_set_allocated_organization( + ::viam::app::v1::Organization* organization) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(organization_); + } + organization_ = organization; + if (organization) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.GetOrganizationResponse.organization) +} +inline ::viam::app::v1::Organization* GetOrganizationResponse::release_organization() { + + ::viam::app::v1::Organization* temp = organization_; + organization_ = 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::Organization* GetOrganizationResponse::unsafe_arena_release_organization() { + // @@protoc_insertion_point(field_release:viam.app.v1.GetOrganizationResponse.organization) + + ::viam::app::v1::Organization* temp = organization_; + organization_ = nullptr; + return temp; +} +inline ::viam::app::v1::Organization* GetOrganizationResponse::_internal_mutable_organization() { + + if (organization_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::Organization>(GetArenaForAllocation()); + organization_ = p; + } + return organization_; +} +inline ::viam::app::v1::Organization* GetOrganizationResponse::mutable_organization() { + ::viam::app::v1::Organization* _msg = _internal_mutable_organization(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetOrganizationResponse.organization) + return _msg; +} +inline void GetOrganizationResponse::set_allocated_organization(::viam::app::v1::Organization* organization) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete organization_; + } + if (organization) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(organization); + if (message_arena != submessage_arena) { + organization = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, organization, submessage_arena); + } + + } else { + + } + organization_ = organization; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetOrganizationResponse.organization) +} + +// ------------------------------------------------------------------- + +// GetOrganizationNamespaceAvailabilityRequest + +// string public_namespace = 1 [json_name = "publicNamespace"]; +inline void GetOrganizationNamespaceAvailabilityRequest::clear_public_namespace() { + public_namespace_.ClearToEmpty(); +} +inline const std::string& GetOrganizationNamespaceAvailabilityRequest::public_namespace() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetOrganizationNamespaceAvailabilityRequest.public_namespace) + return _internal_public_namespace(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetOrganizationNamespaceAvailabilityRequest::set_public_namespace(ArgT0&& arg0, ArgT... args) { + + public_namespace_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.GetOrganizationNamespaceAvailabilityRequest.public_namespace) +} +inline std::string* GetOrganizationNamespaceAvailabilityRequest::mutable_public_namespace() { + std::string* _s = _internal_mutable_public_namespace(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetOrganizationNamespaceAvailabilityRequest.public_namespace) + return _s; +} +inline const std::string& GetOrganizationNamespaceAvailabilityRequest::_internal_public_namespace() const { + return public_namespace_.Get(); +} +inline void GetOrganizationNamespaceAvailabilityRequest::_internal_set_public_namespace(const std::string& value) { + + public_namespace_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetOrganizationNamespaceAvailabilityRequest::_internal_mutable_public_namespace() { + + return public_namespace_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetOrganizationNamespaceAvailabilityRequest::release_public_namespace() { + // @@protoc_insertion_point(field_release:viam.app.v1.GetOrganizationNamespaceAvailabilityRequest.public_namespace) + return public_namespace_.Release(); +} +inline void GetOrganizationNamespaceAvailabilityRequest::set_allocated_public_namespace(std::string* public_namespace) { + if (public_namespace != nullptr) { + + } else { + + } + public_namespace_.SetAllocated(public_namespace, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (public_namespace_.IsDefault()) { + public_namespace_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetOrganizationNamespaceAvailabilityRequest.public_namespace) +} + +// ------------------------------------------------------------------- + +// GetOrganizationNamespaceAvailabilityResponse + +// bool available = 1 [json_name = "available"]; +inline void GetOrganizationNamespaceAvailabilityResponse::clear_available() { + available_ = false; +} +inline bool GetOrganizationNamespaceAvailabilityResponse::_internal_available() const { + return available_; +} +inline bool GetOrganizationNamespaceAvailabilityResponse::available() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetOrganizationNamespaceAvailabilityResponse.available) + return _internal_available(); +} +inline void GetOrganizationNamespaceAvailabilityResponse::_internal_set_available(bool value) { + + available_ = value; +} +inline void GetOrganizationNamespaceAvailabilityResponse::set_available(bool value) { + _internal_set_available(value); + // @@protoc_insertion_point(field_set:viam.app.v1.GetOrganizationNamespaceAvailabilityResponse.available) +} + +// ------------------------------------------------------------------- + +// UpdateOrganizationRequest + +// string organization_id = 1 [json_name = "organizationId"]; +inline void UpdateOrganizationRequest::clear_organization_id() { + organization_id_.ClearToEmpty(); +} +inline const std::string& UpdateOrganizationRequest::organization_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateOrganizationRequest.organization_id) + return _internal_organization_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void UpdateOrganizationRequest::set_organization_id(ArgT0&& arg0, ArgT... args) { + + organization_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateOrganizationRequest.organization_id) +} +inline std::string* UpdateOrganizationRequest::mutable_organization_id() { + std::string* _s = _internal_mutable_organization_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateOrganizationRequest.organization_id) + return _s; +} +inline const std::string& UpdateOrganizationRequest::_internal_organization_id() const { + return organization_id_.Get(); +} +inline void UpdateOrganizationRequest::_internal_set_organization_id(const std::string& value) { + + organization_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* UpdateOrganizationRequest::_internal_mutable_organization_id() { + + return organization_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* UpdateOrganizationRequest::release_organization_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateOrganizationRequest.organization_id) + return organization_id_.Release(); +} +inline void UpdateOrganizationRequest::set_allocated_organization_id(std::string* organization_id) { + if (organization_id != nullptr) { + + } else { + + } + organization_id_.SetAllocated(organization_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (organization_id_.IsDefault()) { + organization_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateOrganizationRequest.organization_id) +} + +// optional string name = 2 [json_name = "name"]; +inline bool UpdateOrganizationRequest::_internal_has_name() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool UpdateOrganizationRequest::has_name() const { + return _internal_has_name(); +} +inline void UpdateOrganizationRequest::clear_name() { + name_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& UpdateOrganizationRequest::name() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateOrganizationRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void UpdateOrganizationRequest::set_name(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateOrganizationRequest.name) +} +inline std::string* UpdateOrganizationRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateOrganizationRequest.name) + return _s; +} +inline const std::string& UpdateOrganizationRequest::_internal_name() const { + return name_.Get(); +} +inline void UpdateOrganizationRequest::_internal_set_name(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + name_.Set(value, GetArenaForAllocation()); +} +inline std::string* UpdateOrganizationRequest::_internal_mutable_name() { + _has_bits_[0] |= 0x00000001u; + return name_.Mutable(GetArenaForAllocation()); +} +inline std::string* UpdateOrganizationRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateOrganizationRequest.name) + if (!_internal_has_name()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + auto* p = name_.Release(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (name_.IsDefault()) { + name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; +} +inline void UpdateOrganizationRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + 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.app.v1.UpdateOrganizationRequest.name) +} + +// optional string public_namespace = 3 [json_name = "publicNamespace"]; +inline bool UpdateOrganizationRequest::_internal_has_public_namespace() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool UpdateOrganizationRequest::has_public_namespace() const { + return _internal_has_public_namespace(); +} +inline void UpdateOrganizationRequest::clear_public_namespace() { + public_namespace_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000002u; +} +inline const std::string& UpdateOrganizationRequest::public_namespace() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateOrganizationRequest.public_namespace) + return _internal_public_namespace(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void UpdateOrganizationRequest::set_public_namespace(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000002u; + public_namespace_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateOrganizationRequest.public_namespace) +} +inline std::string* UpdateOrganizationRequest::mutable_public_namespace() { + std::string* _s = _internal_mutable_public_namespace(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateOrganizationRequest.public_namespace) + return _s; +} +inline const std::string& UpdateOrganizationRequest::_internal_public_namespace() const { + return public_namespace_.Get(); +} +inline void UpdateOrganizationRequest::_internal_set_public_namespace(const std::string& value) { + _has_bits_[0] |= 0x00000002u; + public_namespace_.Set(value, GetArenaForAllocation()); +} +inline std::string* UpdateOrganizationRequest::_internal_mutable_public_namespace() { + _has_bits_[0] |= 0x00000002u; + return public_namespace_.Mutable(GetArenaForAllocation()); +} +inline std::string* UpdateOrganizationRequest::release_public_namespace() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateOrganizationRequest.public_namespace) + if (!_internal_has_public_namespace()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000002u; + auto* p = public_namespace_.Release(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (public_namespace_.IsDefault()) { + public_namespace_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; +} +inline void UpdateOrganizationRequest::set_allocated_public_namespace(std::string* public_namespace) { + if (public_namespace != nullptr) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + public_namespace_.SetAllocated(public_namespace, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (public_namespace_.IsDefault()) { + public_namespace_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateOrganizationRequest.public_namespace) +} + +// optional string region = 4 [json_name = "region"]; +inline bool UpdateOrganizationRequest::_internal_has_region() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} +inline bool UpdateOrganizationRequest::has_region() const { + return _internal_has_region(); +} +inline void UpdateOrganizationRequest::clear_region() { + region_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000004u; +} +inline const std::string& UpdateOrganizationRequest::region() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateOrganizationRequest.region) + return _internal_region(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void UpdateOrganizationRequest::set_region(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000004u; + region_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateOrganizationRequest.region) +} +inline std::string* UpdateOrganizationRequest::mutable_region() { + std::string* _s = _internal_mutable_region(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateOrganizationRequest.region) + return _s; +} +inline const std::string& UpdateOrganizationRequest::_internal_region() const { + return region_.Get(); +} +inline void UpdateOrganizationRequest::_internal_set_region(const std::string& value) { + _has_bits_[0] |= 0x00000004u; + region_.Set(value, GetArenaForAllocation()); +} +inline std::string* UpdateOrganizationRequest::_internal_mutable_region() { + _has_bits_[0] |= 0x00000004u; + return region_.Mutable(GetArenaForAllocation()); +} +inline std::string* UpdateOrganizationRequest::release_region() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateOrganizationRequest.region) + if (!_internal_has_region()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000004u; + auto* p = region_.Release(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (region_.IsDefault()) { + region_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; +} +inline void UpdateOrganizationRequest::set_allocated_region(std::string* region) { + if (region != nullptr) { + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + region_.SetAllocated(region, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (region_.IsDefault()) { + region_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateOrganizationRequest.region) +} + +// optional string cid = 5 [json_name = "cid"]; +inline bool UpdateOrganizationRequest::_internal_has_cid() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; +} +inline bool UpdateOrganizationRequest::has_cid() const { + return _internal_has_cid(); +} +inline void UpdateOrganizationRequest::clear_cid() { + cid_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000008u; +} +inline const std::string& UpdateOrganizationRequest::cid() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateOrganizationRequest.cid) + return _internal_cid(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void UpdateOrganizationRequest::set_cid(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000008u; + cid_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateOrganizationRequest.cid) +} +inline std::string* UpdateOrganizationRequest::mutable_cid() { + std::string* _s = _internal_mutable_cid(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateOrganizationRequest.cid) + return _s; +} +inline const std::string& UpdateOrganizationRequest::_internal_cid() const { + return cid_.Get(); +} +inline void UpdateOrganizationRequest::_internal_set_cid(const std::string& value) { + _has_bits_[0] |= 0x00000008u; + cid_.Set(value, GetArenaForAllocation()); +} +inline std::string* UpdateOrganizationRequest::_internal_mutable_cid() { + _has_bits_[0] |= 0x00000008u; + return cid_.Mutable(GetArenaForAllocation()); +} +inline std::string* UpdateOrganizationRequest::release_cid() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateOrganizationRequest.cid) + if (!_internal_has_cid()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000008u; + auto* p = cid_.Release(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (cid_.IsDefault()) { + cid_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; +} +inline void UpdateOrganizationRequest::set_allocated_cid(std::string* cid) { + if (cid != nullptr) { + _has_bits_[0] |= 0x00000008u; + } else { + _has_bits_[0] &= ~0x00000008u; + } + cid_.SetAllocated(cid, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (cid_.IsDefault()) { + cid_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateOrganizationRequest.cid) +} + +// ------------------------------------------------------------------- + +// UpdateOrganizationResponse + +// .viam.app.v1.Organization organization = 1 [json_name = "organization"]; +inline bool UpdateOrganizationResponse::_internal_has_organization() const { + return this != internal_default_instance() && organization_ != nullptr; +} +inline bool UpdateOrganizationResponse::has_organization() const { + return _internal_has_organization(); +} +inline void UpdateOrganizationResponse::clear_organization() { + if (GetArenaForAllocation() == nullptr && organization_ != nullptr) { + delete organization_; + } + organization_ = nullptr; +} +inline const ::viam::app::v1::Organization& UpdateOrganizationResponse::_internal_organization() const { + const ::viam::app::v1::Organization* p = organization_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_Organization_default_instance_); +} +inline const ::viam::app::v1::Organization& UpdateOrganizationResponse::organization() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateOrganizationResponse.organization) + return _internal_organization(); +} +inline void UpdateOrganizationResponse::unsafe_arena_set_allocated_organization( + ::viam::app::v1::Organization* organization) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(organization_); + } + organization_ = organization; + if (organization) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.UpdateOrganizationResponse.organization) +} +inline ::viam::app::v1::Organization* UpdateOrganizationResponse::release_organization() { + + ::viam::app::v1::Organization* temp = organization_; + organization_ = 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::Organization* UpdateOrganizationResponse::unsafe_arena_release_organization() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateOrganizationResponse.organization) + + ::viam::app::v1::Organization* temp = organization_; + organization_ = nullptr; + return temp; +} +inline ::viam::app::v1::Organization* UpdateOrganizationResponse::_internal_mutable_organization() { + + if (organization_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::Organization>(GetArenaForAllocation()); + organization_ = p; + } + return organization_; +} +inline ::viam::app::v1::Organization* UpdateOrganizationResponse::mutable_organization() { + ::viam::app::v1::Organization* _msg = _internal_mutable_organization(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateOrganizationResponse.organization) + return _msg; +} +inline void UpdateOrganizationResponse::set_allocated_organization(::viam::app::v1::Organization* organization) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete organization_; + } + if (organization) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(organization); + if (message_arena != submessage_arena) { + organization = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, organization, submessage_arena); + } + + } else { + + } + organization_ = organization; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateOrganizationResponse.organization) +} + +// ------------------------------------------------------------------- + +// DeleteOrganizationRequest + +// string organization_id = 1 [json_name = "organizationId"]; +inline void DeleteOrganizationRequest::clear_organization_id() { + organization_id_.ClearToEmpty(); +} +inline const std::string& DeleteOrganizationRequest::organization_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.DeleteOrganizationRequest.organization_id) + return _internal_organization_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void DeleteOrganizationRequest::set_organization_id(ArgT0&& arg0, ArgT... args) { + + organization_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.DeleteOrganizationRequest.organization_id) +} +inline std::string* DeleteOrganizationRequest::mutable_organization_id() { + std::string* _s = _internal_mutable_organization_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.DeleteOrganizationRequest.organization_id) + return _s; +} +inline const std::string& DeleteOrganizationRequest::_internal_organization_id() const { + return organization_id_.Get(); +} +inline void DeleteOrganizationRequest::_internal_set_organization_id(const std::string& value) { + + organization_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* DeleteOrganizationRequest::_internal_mutable_organization_id() { + + return organization_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* DeleteOrganizationRequest::release_organization_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.DeleteOrganizationRequest.organization_id) + return organization_id_.Release(); +} +inline void DeleteOrganizationRequest::set_allocated_organization_id(std::string* organization_id) { + if (organization_id != nullptr) { + + } else { + + } + organization_id_.SetAllocated(organization_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (organization_id_.IsDefault()) { + organization_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.DeleteOrganizationRequest.organization_id) +} + +// ------------------------------------------------------------------- + +// DeleteOrganizationResponse + +// ------------------------------------------------------------------- + +// ListOrganizationMembersRequest + +// string organization_id = 1 [json_name = "organizationId"]; +inline void ListOrganizationMembersRequest::clear_organization_id() { + organization_id_.ClearToEmpty(); +} +inline const std::string& ListOrganizationMembersRequest::organization_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ListOrganizationMembersRequest.organization_id) + return _internal_organization_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ListOrganizationMembersRequest::set_organization_id(ArgT0&& arg0, ArgT... args) { + + organization_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.ListOrganizationMembersRequest.organization_id) +} +inline std::string* ListOrganizationMembersRequest::mutable_organization_id() { + std::string* _s = _internal_mutable_organization_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ListOrganizationMembersRequest.organization_id) + return _s; +} +inline const std::string& ListOrganizationMembersRequest::_internal_organization_id() const { + return organization_id_.Get(); +} +inline void ListOrganizationMembersRequest::_internal_set_organization_id(const std::string& value) { + + organization_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* ListOrganizationMembersRequest::_internal_mutable_organization_id() { + + return organization_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* ListOrganizationMembersRequest::release_organization_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.ListOrganizationMembersRequest.organization_id) + return organization_id_.Release(); +} +inline void ListOrganizationMembersRequest::set_allocated_organization_id(std::string* organization_id) { + if (organization_id != nullptr) { + + } else { + + } + organization_id_.SetAllocated(organization_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (organization_id_.IsDefault()) { + organization_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ListOrganizationMembersRequest.organization_id) +} + +// ------------------------------------------------------------------- + +// ListOrganizationMembersResponse + +// string organization_id = 1 [json_name = "organizationId"]; +inline void ListOrganizationMembersResponse::clear_organization_id() { + organization_id_.ClearToEmpty(); +} +inline const std::string& ListOrganizationMembersResponse::organization_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ListOrganizationMembersResponse.organization_id) + return _internal_organization_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ListOrganizationMembersResponse::set_organization_id(ArgT0&& arg0, ArgT... args) { + + organization_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.ListOrganizationMembersResponse.organization_id) +} +inline std::string* ListOrganizationMembersResponse::mutable_organization_id() { + std::string* _s = _internal_mutable_organization_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ListOrganizationMembersResponse.organization_id) + return _s; +} +inline const std::string& ListOrganizationMembersResponse::_internal_organization_id() const { + return organization_id_.Get(); +} +inline void ListOrganizationMembersResponse::_internal_set_organization_id(const std::string& value) { + + organization_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* ListOrganizationMembersResponse::_internal_mutable_organization_id() { + + return organization_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* ListOrganizationMembersResponse::release_organization_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.ListOrganizationMembersResponse.organization_id) + return organization_id_.Release(); +} +inline void ListOrganizationMembersResponse::set_allocated_organization_id(std::string* organization_id) { + if (organization_id != nullptr) { + + } else { + + } + organization_id_.SetAllocated(organization_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (organization_id_.IsDefault()) { + organization_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ListOrganizationMembersResponse.organization_id) +} + +// repeated .viam.app.v1.OrganizationMember members = 2 [json_name = "members"]; +inline int ListOrganizationMembersResponse::_internal_members_size() const { + return members_.size(); +} +inline int ListOrganizationMembersResponse::members_size() const { + return _internal_members_size(); +} +inline void ListOrganizationMembersResponse::clear_members() { + members_.Clear(); +} +inline ::viam::app::v1::OrganizationMember* ListOrganizationMembersResponse::mutable_members(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.ListOrganizationMembersResponse.members) + return members_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::OrganizationMember >* +ListOrganizationMembersResponse::mutable_members() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ListOrganizationMembersResponse.members) + return &members_; +} +inline const ::viam::app::v1::OrganizationMember& ListOrganizationMembersResponse::_internal_members(int index) const { + return members_.Get(index); +} +inline const ::viam::app::v1::OrganizationMember& ListOrganizationMembersResponse::members(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.ListOrganizationMembersResponse.members) + return _internal_members(index); +} +inline ::viam::app::v1::OrganizationMember* ListOrganizationMembersResponse::_internal_add_members() { + return members_.Add(); +} +inline ::viam::app::v1::OrganizationMember* ListOrganizationMembersResponse::add_members() { + ::viam::app::v1::OrganizationMember* _add = _internal_add_members(); + // @@protoc_insertion_point(field_add:viam.app.v1.ListOrganizationMembersResponse.members) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::OrganizationMember >& +ListOrganizationMembersResponse::members() const { + // @@protoc_insertion_point(field_list:viam.app.v1.ListOrganizationMembersResponse.members) + return members_; +} + +// repeated .viam.app.v1.OrganizationInvite invites = 3 [json_name = "invites"]; +inline int ListOrganizationMembersResponse::_internal_invites_size() const { + return invites_.size(); +} +inline int ListOrganizationMembersResponse::invites_size() const { + return _internal_invites_size(); +} +inline void ListOrganizationMembersResponse::clear_invites() { + invites_.Clear(); +} +inline ::viam::app::v1::OrganizationInvite* ListOrganizationMembersResponse::mutable_invites(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.ListOrganizationMembersResponse.invites) + return invites_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::OrganizationInvite >* +ListOrganizationMembersResponse::mutable_invites() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ListOrganizationMembersResponse.invites) + return &invites_; +} +inline const ::viam::app::v1::OrganizationInvite& ListOrganizationMembersResponse::_internal_invites(int index) const { + return invites_.Get(index); +} +inline const ::viam::app::v1::OrganizationInvite& ListOrganizationMembersResponse::invites(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.ListOrganizationMembersResponse.invites) + return _internal_invites(index); +} +inline ::viam::app::v1::OrganizationInvite* ListOrganizationMembersResponse::_internal_add_invites() { + return invites_.Add(); +} +inline ::viam::app::v1::OrganizationInvite* ListOrganizationMembersResponse::add_invites() { + ::viam::app::v1::OrganizationInvite* _add = _internal_add_invites(); + // @@protoc_insertion_point(field_add:viam.app.v1.ListOrganizationMembersResponse.invites) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::OrganizationInvite >& +ListOrganizationMembersResponse::invites() const { + // @@protoc_insertion_point(field_list:viam.app.v1.ListOrganizationMembersResponse.invites) + return invites_; +} + +// ------------------------------------------------------------------- + +// CreateOrganizationInviteRequest + +// string organization_id = 1 [json_name = "organizationId"]; +inline void CreateOrganizationInviteRequest::clear_organization_id() { + organization_id_.ClearToEmpty(); +} +inline const std::string& CreateOrganizationInviteRequest::organization_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.CreateOrganizationInviteRequest.organization_id) + return _internal_organization_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void CreateOrganizationInviteRequest::set_organization_id(ArgT0&& arg0, ArgT... args) { + + organization_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.CreateOrganizationInviteRequest.organization_id) +} +inline std::string* CreateOrganizationInviteRequest::mutable_organization_id() { + std::string* _s = _internal_mutable_organization_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateOrganizationInviteRequest.organization_id) + return _s; +} +inline const std::string& CreateOrganizationInviteRequest::_internal_organization_id() const { + return organization_id_.Get(); +} +inline void CreateOrganizationInviteRequest::_internal_set_organization_id(const std::string& value) { + + organization_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* CreateOrganizationInviteRequest::_internal_mutable_organization_id() { + + return organization_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* CreateOrganizationInviteRequest::release_organization_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.CreateOrganizationInviteRequest.organization_id) + return organization_id_.Release(); +} +inline void CreateOrganizationInviteRequest::set_allocated_organization_id(std::string* organization_id) { + if (organization_id != nullptr) { + + } else { + + } + organization_id_.SetAllocated(organization_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (organization_id_.IsDefault()) { + organization_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateOrganizationInviteRequest.organization_id) +} + +// string email = 2 [json_name = "email"]; +inline void CreateOrganizationInviteRequest::clear_email() { + email_.ClearToEmpty(); +} +inline const std::string& CreateOrganizationInviteRequest::email() const { + // @@protoc_insertion_point(field_get:viam.app.v1.CreateOrganizationInviteRequest.email) + return _internal_email(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void CreateOrganizationInviteRequest::set_email(ArgT0&& arg0, ArgT... args) { + + email_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.CreateOrganizationInviteRequest.email) +} +inline std::string* CreateOrganizationInviteRequest::mutable_email() { + std::string* _s = _internal_mutable_email(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateOrganizationInviteRequest.email) + return _s; +} +inline const std::string& CreateOrganizationInviteRequest::_internal_email() const { + return email_.Get(); +} +inline void CreateOrganizationInviteRequest::_internal_set_email(const std::string& value) { + + email_.Set(value, GetArenaForAllocation()); +} +inline std::string* CreateOrganizationInviteRequest::_internal_mutable_email() { + + return email_.Mutable(GetArenaForAllocation()); +} +inline std::string* CreateOrganizationInviteRequest::release_email() { + // @@protoc_insertion_point(field_release:viam.app.v1.CreateOrganizationInviteRequest.email) + return email_.Release(); +} +inline void CreateOrganizationInviteRequest::set_allocated_email(std::string* email) { + if (email != nullptr) { + + } else { + + } + email_.SetAllocated(email, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (email_.IsDefault()) { + email_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateOrganizationInviteRequest.email) +} + +// repeated .viam.app.v1.Authorization authorizations = 3 [json_name = "authorizations"]; +inline int CreateOrganizationInviteRequest::_internal_authorizations_size() const { + return authorizations_.size(); +} +inline int CreateOrganizationInviteRequest::authorizations_size() const { + return _internal_authorizations_size(); +} +inline void CreateOrganizationInviteRequest::clear_authorizations() { + authorizations_.Clear(); +} +inline ::viam::app::v1::Authorization* CreateOrganizationInviteRequest::mutable_authorizations(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateOrganizationInviteRequest.authorizations) + return authorizations_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Authorization >* +CreateOrganizationInviteRequest::mutable_authorizations() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.CreateOrganizationInviteRequest.authorizations) + return &authorizations_; +} +inline const ::viam::app::v1::Authorization& CreateOrganizationInviteRequest::_internal_authorizations(int index) const { + return authorizations_.Get(index); +} +inline const ::viam::app::v1::Authorization& CreateOrganizationInviteRequest::authorizations(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.CreateOrganizationInviteRequest.authorizations) + return _internal_authorizations(index); +} +inline ::viam::app::v1::Authorization* CreateOrganizationInviteRequest::_internal_add_authorizations() { + return authorizations_.Add(); +} +inline ::viam::app::v1::Authorization* CreateOrganizationInviteRequest::add_authorizations() { + ::viam::app::v1::Authorization* _add = _internal_add_authorizations(); + // @@protoc_insertion_point(field_add:viam.app.v1.CreateOrganizationInviteRequest.authorizations) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Authorization >& +CreateOrganizationInviteRequest::authorizations() const { + // @@protoc_insertion_point(field_list:viam.app.v1.CreateOrganizationInviteRequest.authorizations) + return authorizations_; +} + +// optional bool send_email_invite = 4 [json_name = "sendEmailInvite"]; +inline bool CreateOrganizationInviteRequest::_internal_has_send_email_invite() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool CreateOrganizationInviteRequest::has_send_email_invite() const { + return _internal_has_send_email_invite(); +} +inline void CreateOrganizationInviteRequest::clear_send_email_invite() { + send_email_invite_ = false; + _has_bits_[0] &= ~0x00000001u; +} +inline bool CreateOrganizationInviteRequest::_internal_send_email_invite() const { + return send_email_invite_; +} +inline bool CreateOrganizationInviteRequest::send_email_invite() const { + // @@protoc_insertion_point(field_get:viam.app.v1.CreateOrganizationInviteRequest.send_email_invite) + return _internal_send_email_invite(); +} +inline void CreateOrganizationInviteRequest::_internal_set_send_email_invite(bool value) { + _has_bits_[0] |= 0x00000001u; + send_email_invite_ = value; +} +inline void CreateOrganizationInviteRequest::set_send_email_invite(bool value) { + _internal_set_send_email_invite(value); + // @@protoc_insertion_point(field_set:viam.app.v1.CreateOrganizationInviteRequest.send_email_invite) +} + +// ------------------------------------------------------------------- + +// CreateOrganizationInviteResponse + +// .viam.app.v1.OrganizationInvite invite = 1 [json_name = "invite"]; +inline bool CreateOrganizationInviteResponse::_internal_has_invite() const { + return this != internal_default_instance() && invite_ != nullptr; +} +inline bool CreateOrganizationInviteResponse::has_invite() const { + return _internal_has_invite(); +} +inline void CreateOrganizationInviteResponse::clear_invite() { + if (GetArenaForAllocation() == nullptr && invite_ != nullptr) { + delete invite_; + } + invite_ = nullptr; +} +inline const ::viam::app::v1::OrganizationInvite& CreateOrganizationInviteResponse::_internal_invite() const { + const ::viam::app::v1::OrganizationInvite* p = invite_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_OrganizationInvite_default_instance_); +} +inline const ::viam::app::v1::OrganizationInvite& CreateOrganizationInviteResponse::invite() const { + // @@protoc_insertion_point(field_get:viam.app.v1.CreateOrganizationInviteResponse.invite) + return _internal_invite(); +} +inline void CreateOrganizationInviteResponse::unsafe_arena_set_allocated_invite( + ::viam::app::v1::OrganizationInvite* invite) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(invite_); + } + invite_ = invite; + if (invite) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.CreateOrganizationInviteResponse.invite) +} +inline ::viam::app::v1::OrganizationInvite* CreateOrganizationInviteResponse::release_invite() { + + ::viam::app::v1::OrganizationInvite* temp = invite_; + invite_ = 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::OrganizationInvite* CreateOrganizationInviteResponse::unsafe_arena_release_invite() { + // @@protoc_insertion_point(field_release:viam.app.v1.CreateOrganizationInviteResponse.invite) + + ::viam::app::v1::OrganizationInvite* temp = invite_; + invite_ = nullptr; + return temp; +} +inline ::viam::app::v1::OrganizationInvite* CreateOrganizationInviteResponse::_internal_mutable_invite() { + + if (invite_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::OrganizationInvite>(GetArenaForAllocation()); + invite_ = p; + } + return invite_; +} +inline ::viam::app::v1::OrganizationInvite* CreateOrganizationInviteResponse::mutable_invite() { + ::viam::app::v1::OrganizationInvite* _msg = _internal_mutable_invite(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateOrganizationInviteResponse.invite) + return _msg; +} +inline void CreateOrganizationInviteResponse::set_allocated_invite(::viam::app::v1::OrganizationInvite* invite) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete invite_; + } + if (invite) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(invite); + if (message_arena != submessage_arena) { + invite = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, invite, submessage_arena); + } + + } else { + + } + invite_ = invite; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateOrganizationInviteResponse.invite) +} + +// ------------------------------------------------------------------- + +// UpdateOrganizationInviteAuthorizationsRequest + +// string organization_id = 1 [json_name = "organizationId"]; +inline void UpdateOrganizationInviteAuthorizationsRequest::clear_organization_id() { + organization_id_.ClearToEmpty(); +} +inline const std::string& UpdateOrganizationInviteAuthorizationsRequest::organization_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest.organization_id) + return _internal_organization_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void UpdateOrganizationInviteAuthorizationsRequest::set_organization_id(ArgT0&& arg0, ArgT... args) { + + organization_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest.organization_id) +} +inline std::string* UpdateOrganizationInviteAuthorizationsRequest::mutable_organization_id() { + std::string* _s = _internal_mutable_organization_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest.organization_id) + return _s; +} +inline const std::string& UpdateOrganizationInviteAuthorizationsRequest::_internal_organization_id() const { + return organization_id_.Get(); +} +inline void UpdateOrganizationInviteAuthorizationsRequest::_internal_set_organization_id(const std::string& value) { + + organization_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* UpdateOrganizationInviteAuthorizationsRequest::_internal_mutable_organization_id() { + + return organization_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* UpdateOrganizationInviteAuthorizationsRequest::release_organization_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest.organization_id) + return organization_id_.Release(); +} +inline void UpdateOrganizationInviteAuthorizationsRequest::set_allocated_organization_id(std::string* organization_id) { + if (organization_id != nullptr) { + + } else { + + } + organization_id_.SetAllocated(organization_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (organization_id_.IsDefault()) { + organization_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest.organization_id) +} + +// string email = 2 [json_name = "email"]; +inline void UpdateOrganizationInviteAuthorizationsRequest::clear_email() { + email_.ClearToEmpty(); +} +inline const std::string& UpdateOrganizationInviteAuthorizationsRequest::email() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest.email) + return _internal_email(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void UpdateOrganizationInviteAuthorizationsRequest::set_email(ArgT0&& arg0, ArgT... args) { + + email_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest.email) +} +inline std::string* UpdateOrganizationInviteAuthorizationsRequest::mutable_email() { + std::string* _s = _internal_mutable_email(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest.email) + return _s; +} +inline const std::string& UpdateOrganizationInviteAuthorizationsRequest::_internal_email() const { + return email_.Get(); +} +inline void UpdateOrganizationInviteAuthorizationsRequest::_internal_set_email(const std::string& value) { + + email_.Set(value, GetArenaForAllocation()); +} +inline std::string* UpdateOrganizationInviteAuthorizationsRequest::_internal_mutable_email() { + + return email_.Mutable(GetArenaForAllocation()); +} +inline std::string* UpdateOrganizationInviteAuthorizationsRequest::release_email() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest.email) + return email_.Release(); +} +inline void UpdateOrganizationInviteAuthorizationsRequest::set_allocated_email(std::string* email) { + if (email != nullptr) { + + } else { + + } + email_.SetAllocated(email, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (email_.IsDefault()) { + email_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest.email) +} + +// repeated .viam.app.v1.Authorization add_authorizations = 3 [json_name = "addAuthorizations"]; +inline int UpdateOrganizationInviteAuthorizationsRequest::_internal_add_authorizations_size() const { + return add_authorizations_.size(); +} +inline int UpdateOrganizationInviteAuthorizationsRequest::add_authorizations_size() const { + return _internal_add_authorizations_size(); +} +inline void UpdateOrganizationInviteAuthorizationsRequest::clear_add_authorizations() { + add_authorizations_.Clear(); +} +inline ::viam::app::v1::Authorization* UpdateOrganizationInviteAuthorizationsRequest::mutable_add_authorizations(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest.add_authorizations) + return add_authorizations_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Authorization >* +UpdateOrganizationInviteAuthorizationsRequest::mutable_add_authorizations() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest.add_authorizations) + return &add_authorizations_; +} +inline const ::viam::app::v1::Authorization& UpdateOrganizationInviteAuthorizationsRequest::_internal_add_authorizations(int index) const { + return add_authorizations_.Get(index); +} +inline const ::viam::app::v1::Authorization& UpdateOrganizationInviteAuthorizationsRequest::add_authorizations(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest.add_authorizations) + return _internal_add_authorizations(index); +} +inline ::viam::app::v1::Authorization* UpdateOrganizationInviteAuthorizationsRequest::_internal_add_add_authorizations() { + return add_authorizations_.Add(); +} +inline ::viam::app::v1::Authorization* UpdateOrganizationInviteAuthorizationsRequest::add_add_authorizations() { + ::viam::app::v1::Authorization* _add = _internal_add_add_authorizations(); + // @@protoc_insertion_point(field_add:viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest.add_authorizations) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Authorization >& +UpdateOrganizationInviteAuthorizationsRequest::add_authorizations() const { + // @@protoc_insertion_point(field_list:viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest.add_authorizations) + return add_authorizations_; +} + +// repeated .viam.app.v1.Authorization remove_authorizations = 4 [json_name = "removeAuthorizations"]; +inline int UpdateOrganizationInviteAuthorizationsRequest::_internal_remove_authorizations_size() const { + return remove_authorizations_.size(); +} +inline int UpdateOrganizationInviteAuthorizationsRequest::remove_authorizations_size() const { + return _internal_remove_authorizations_size(); +} +inline void UpdateOrganizationInviteAuthorizationsRequest::clear_remove_authorizations() { + remove_authorizations_.Clear(); +} +inline ::viam::app::v1::Authorization* UpdateOrganizationInviteAuthorizationsRequest::mutable_remove_authorizations(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest.remove_authorizations) + return remove_authorizations_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Authorization >* +UpdateOrganizationInviteAuthorizationsRequest::mutable_remove_authorizations() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest.remove_authorizations) + return &remove_authorizations_; +} +inline const ::viam::app::v1::Authorization& UpdateOrganizationInviteAuthorizationsRequest::_internal_remove_authorizations(int index) const { + return remove_authorizations_.Get(index); +} +inline const ::viam::app::v1::Authorization& UpdateOrganizationInviteAuthorizationsRequest::remove_authorizations(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest.remove_authorizations) + return _internal_remove_authorizations(index); +} +inline ::viam::app::v1::Authorization* UpdateOrganizationInviteAuthorizationsRequest::_internal_add_remove_authorizations() { + return remove_authorizations_.Add(); +} +inline ::viam::app::v1::Authorization* UpdateOrganizationInviteAuthorizationsRequest::add_remove_authorizations() { + ::viam::app::v1::Authorization* _add = _internal_add_remove_authorizations(); + // @@protoc_insertion_point(field_add:viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest.remove_authorizations) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Authorization >& +UpdateOrganizationInviteAuthorizationsRequest::remove_authorizations() const { + // @@protoc_insertion_point(field_list:viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest.remove_authorizations) + return remove_authorizations_; +} + +// ------------------------------------------------------------------- + +// UpdateOrganizationInviteAuthorizationsResponse + +// .viam.app.v1.OrganizationInvite invite = 1 [json_name = "invite"]; +inline bool UpdateOrganizationInviteAuthorizationsResponse::_internal_has_invite() const { + return this != internal_default_instance() && invite_ != nullptr; +} +inline bool UpdateOrganizationInviteAuthorizationsResponse::has_invite() const { + return _internal_has_invite(); +} +inline void UpdateOrganizationInviteAuthorizationsResponse::clear_invite() { + if (GetArenaForAllocation() == nullptr && invite_ != nullptr) { + delete invite_; + } + invite_ = nullptr; +} +inline const ::viam::app::v1::OrganizationInvite& UpdateOrganizationInviteAuthorizationsResponse::_internal_invite() const { + const ::viam::app::v1::OrganizationInvite* p = invite_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_OrganizationInvite_default_instance_); +} +inline const ::viam::app::v1::OrganizationInvite& UpdateOrganizationInviteAuthorizationsResponse::invite() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateOrganizationInviteAuthorizationsResponse.invite) + return _internal_invite(); +} +inline void UpdateOrganizationInviteAuthorizationsResponse::unsafe_arena_set_allocated_invite( + ::viam::app::v1::OrganizationInvite* invite) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(invite_); + } + invite_ = invite; + if (invite) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.UpdateOrganizationInviteAuthorizationsResponse.invite) +} +inline ::viam::app::v1::OrganizationInvite* UpdateOrganizationInviteAuthorizationsResponse::release_invite() { + + ::viam::app::v1::OrganizationInvite* temp = invite_; + invite_ = 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::OrganizationInvite* UpdateOrganizationInviteAuthorizationsResponse::unsafe_arena_release_invite() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateOrganizationInviteAuthorizationsResponse.invite) + + ::viam::app::v1::OrganizationInvite* temp = invite_; + invite_ = nullptr; + return temp; +} +inline ::viam::app::v1::OrganizationInvite* UpdateOrganizationInviteAuthorizationsResponse::_internal_mutable_invite() { + + if (invite_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::OrganizationInvite>(GetArenaForAllocation()); + invite_ = p; + } + return invite_; +} +inline ::viam::app::v1::OrganizationInvite* UpdateOrganizationInviteAuthorizationsResponse::mutable_invite() { + ::viam::app::v1::OrganizationInvite* _msg = _internal_mutable_invite(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateOrganizationInviteAuthorizationsResponse.invite) + return _msg; +} +inline void UpdateOrganizationInviteAuthorizationsResponse::set_allocated_invite(::viam::app::v1::OrganizationInvite* invite) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete invite_; + } + if (invite) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(invite); + if (message_arena != submessage_arena) { + invite = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, invite, submessage_arena); + } + + } else { + + } + invite_ = invite; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateOrganizationInviteAuthorizationsResponse.invite) +} + +// ------------------------------------------------------------------- + +// DeleteOrganizationInviteRequest + +// string organization_id = 1 [json_name = "organizationId"]; +inline void DeleteOrganizationInviteRequest::clear_organization_id() { + organization_id_.ClearToEmpty(); +} +inline const std::string& DeleteOrganizationInviteRequest::organization_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.DeleteOrganizationInviteRequest.organization_id) + return _internal_organization_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void DeleteOrganizationInviteRequest::set_organization_id(ArgT0&& arg0, ArgT... args) { + + organization_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.DeleteOrganizationInviteRequest.organization_id) +} +inline std::string* DeleteOrganizationInviteRequest::mutable_organization_id() { + std::string* _s = _internal_mutable_organization_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.DeleteOrganizationInviteRequest.organization_id) + return _s; +} +inline const std::string& DeleteOrganizationInviteRequest::_internal_organization_id() const { + return organization_id_.Get(); +} +inline void DeleteOrganizationInviteRequest::_internal_set_organization_id(const std::string& value) { + + organization_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* DeleteOrganizationInviteRequest::_internal_mutable_organization_id() { + + return organization_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* DeleteOrganizationInviteRequest::release_organization_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.DeleteOrganizationInviteRequest.organization_id) + return organization_id_.Release(); +} +inline void DeleteOrganizationInviteRequest::set_allocated_organization_id(std::string* organization_id) { + if (organization_id != nullptr) { + + } else { + + } + organization_id_.SetAllocated(organization_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (organization_id_.IsDefault()) { + organization_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.DeleteOrganizationInviteRequest.organization_id) +} + +// string email = 2 [json_name = "email"]; +inline void DeleteOrganizationInviteRequest::clear_email() { + email_.ClearToEmpty(); +} +inline const std::string& DeleteOrganizationInviteRequest::email() const { + // @@protoc_insertion_point(field_get:viam.app.v1.DeleteOrganizationInviteRequest.email) + return _internal_email(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void DeleteOrganizationInviteRequest::set_email(ArgT0&& arg0, ArgT... args) { + + email_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.DeleteOrganizationInviteRequest.email) +} +inline std::string* DeleteOrganizationInviteRequest::mutable_email() { + std::string* _s = _internal_mutable_email(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.DeleteOrganizationInviteRequest.email) + return _s; +} +inline const std::string& DeleteOrganizationInviteRequest::_internal_email() const { + return email_.Get(); +} +inline void DeleteOrganizationInviteRequest::_internal_set_email(const std::string& value) { + + email_.Set(value, GetArenaForAllocation()); +} +inline std::string* DeleteOrganizationInviteRequest::_internal_mutable_email() { + + return email_.Mutable(GetArenaForAllocation()); +} +inline std::string* DeleteOrganizationInviteRequest::release_email() { + // @@protoc_insertion_point(field_release:viam.app.v1.DeleteOrganizationInviteRequest.email) + return email_.Release(); +} +inline void DeleteOrganizationInviteRequest::set_allocated_email(std::string* email) { + if (email != nullptr) { + + } else { + + } + email_.SetAllocated(email, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (email_.IsDefault()) { + email_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.DeleteOrganizationInviteRequest.email) +} + +// ------------------------------------------------------------------- + +// DeleteOrganizationInviteResponse + +// ------------------------------------------------------------------- + +// ResendOrganizationInviteRequest + +// string organization_id = 1 [json_name = "organizationId"]; +inline void ResendOrganizationInviteRequest::clear_organization_id() { + organization_id_.ClearToEmpty(); +} +inline const std::string& ResendOrganizationInviteRequest::organization_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ResendOrganizationInviteRequest.organization_id) + return _internal_organization_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ResendOrganizationInviteRequest::set_organization_id(ArgT0&& arg0, ArgT... args) { + + organization_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.ResendOrganizationInviteRequest.organization_id) +} +inline std::string* ResendOrganizationInviteRequest::mutable_organization_id() { + std::string* _s = _internal_mutable_organization_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ResendOrganizationInviteRequest.organization_id) + return _s; +} +inline const std::string& ResendOrganizationInviteRequest::_internal_organization_id() const { + return organization_id_.Get(); +} +inline void ResendOrganizationInviteRequest::_internal_set_organization_id(const std::string& value) { + + organization_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* ResendOrganizationInviteRequest::_internal_mutable_organization_id() { + + return organization_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* ResendOrganizationInviteRequest::release_organization_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.ResendOrganizationInviteRequest.organization_id) + return organization_id_.Release(); +} +inline void ResendOrganizationInviteRequest::set_allocated_organization_id(std::string* organization_id) { + if (organization_id != nullptr) { + + } else { + + } + organization_id_.SetAllocated(organization_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (organization_id_.IsDefault()) { + organization_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ResendOrganizationInviteRequest.organization_id) +} + +// string email = 2 [json_name = "email"]; +inline void ResendOrganizationInviteRequest::clear_email() { + email_.ClearToEmpty(); +} +inline const std::string& ResendOrganizationInviteRequest::email() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ResendOrganizationInviteRequest.email) + return _internal_email(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ResendOrganizationInviteRequest::set_email(ArgT0&& arg0, ArgT... args) { + + email_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.ResendOrganizationInviteRequest.email) +} +inline std::string* ResendOrganizationInviteRequest::mutable_email() { + std::string* _s = _internal_mutable_email(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ResendOrganizationInviteRequest.email) + return _s; +} +inline const std::string& ResendOrganizationInviteRequest::_internal_email() const { + return email_.Get(); +} +inline void ResendOrganizationInviteRequest::_internal_set_email(const std::string& value) { + + email_.Set(value, GetArenaForAllocation()); +} +inline std::string* ResendOrganizationInviteRequest::_internal_mutable_email() { + + return email_.Mutable(GetArenaForAllocation()); +} +inline std::string* ResendOrganizationInviteRequest::release_email() { + // @@protoc_insertion_point(field_release:viam.app.v1.ResendOrganizationInviteRequest.email) + return email_.Release(); +} +inline void ResendOrganizationInviteRequest::set_allocated_email(std::string* email) { + if (email != nullptr) { + + } else { + + } + email_.SetAllocated(email, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (email_.IsDefault()) { + email_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ResendOrganizationInviteRequest.email) +} + +// ------------------------------------------------------------------- + +// ResendOrganizationInviteResponse + +// .viam.app.v1.OrganizationInvite invite = 1 [json_name = "invite"]; +inline bool ResendOrganizationInviteResponse::_internal_has_invite() const { + return this != internal_default_instance() && invite_ != nullptr; +} +inline bool ResendOrganizationInviteResponse::has_invite() const { + return _internal_has_invite(); +} +inline void ResendOrganizationInviteResponse::clear_invite() { + if (GetArenaForAllocation() == nullptr && invite_ != nullptr) { + delete invite_; + } + invite_ = nullptr; +} +inline const ::viam::app::v1::OrganizationInvite& ResendOrganizationInviteResponse::_internal_invite() const { + const ::viam::app::v1::OrganizationInvite* p = invite_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_OrganizationInvite_default_instance_); +} +inline const ::viam::app::v1::OrganizationInvite& ResendOrganizationInviteResponse::invite() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ResendOrganizationInviteResponse.invite) + return _internal_invite(); +} +inline void ResendOrganizationInviteResponse::unsafe_arena_set_allocated_invite( + ::viam::app::v1::OrganizationInvite* invite) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(invite_); + } + invite_ = invite; + if (invite) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.ResendOrganizationInviteResponse.invite) +} +inline ::viam::app::v1::OrganizationInvite* ResendOrganizationInviteResponse::release_invite() { + + ::viam::app::v1::OrganizationInvite* temp = invite_; + invite_ = 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::OrganizationInvite* ResendOrganizationInviteResponse::unsafe_arena_release_invite() { + // @@protoc_insertion_point(field_release:viam.app.v1.ResendOrganizationInviteResponse.invite) + + ::viam::app::v1::OrganizationInvite* temp = invite_; + invite_ = nullptr; + return temp; +} +inline ::viam::app::v1::OrganizationInvite* ResendOrganizationInviteResponse::_internal_mutable_invite() { + + if (invite_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::OrganizationInvite>(GetArenaForAllocation()); + invite_ = p; + } + return invite_; +} +inline ::viam::app::v1::OrganizationInvite* ResendOrganizationInviteResponse::mutable_invite() { + ::viam::app::v1::OrganizationInvite* _msg = _internal_mutable_invite(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ResendOrganizationInviteResponse.invite) + return _msg; +} +inline void ResendOrganizationInviteResponse::set_allocated_invite(::viam::app::v1::OrganizationInvite* invite) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete invite_; + } + if (invite) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(invite); + if (message_arena != submessage_arena) { + invite = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, invite, submessage_arena); + } + + } else { + + } + invite_ = invite; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ResendOrganizationInviteResponse.invite) +} + +// ------------------------------------------------------------------- + +// DeleteOrganizationMemberRequest + +// string organization_id = 1 [json_name = "organizationId"]; +inline void DeleteOrganizationMemberRequest::clear_organization_id() { + organization_id_.ClearToEmpty(); +} +inline const std::string& DeleteOrganizationMemberRequest::organization_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.DeleteOrganizationMemberRequest.organization_id) + return _internal_organization_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void DeleteOrganizationMemberRequest::set_organization_id(ArgT0&& arg0, ArgT... args) { + + organization_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.DeleteOrganizationMemberRequest.organization_id) +} +inline std::string* DeleteOrganizationMemberRequest::mutable_organization_id() { + std::string* _s = _internal_mutable_organization_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.DeleteOrganizationMemberRequest.organization_id) + return _s; +} +inline const std::string& DeleteOrganizationMemberRequest::_internal_organization_id() const { + return organization_id_.Get(); +} +inline void DeleteOrganizationMemberRequest::_internal_set_organization_id(const std::string& value) { + + organization_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* DeleteOrganizationMemberRequest::_internal_mutable_organization_id() { + + return organization_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* DeleteOrganizationMemberRequest::release_organization_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.DeleteOrganizationMemberRequest.organization_id) + return organization_id_.Release(); +} +inline void DeleteOrganizationMemberRequest::set_allocated_organization_id(std::string* organization_id) { + if (organization_id != nullptr) { + + } else { + + } + organization_id_.SetAllocated(organization_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (organization_id_.IsDefault()) { + organization_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.DeleteOrganizationMemberRequest.organization_id) +} + +// string user_id = 2 [json_name = "userId"]; +inline void DeleteOrganizationMemberRequest::clear_user_id() { + user_id_.ClearToEmpty(); +} +inline const std::string& DeleteOrganizationMemberRequest::user_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.DeleteOrganizationMemberRequest.user_id) + return _internal_user_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void DeleteOrganizationMemberRequest::set_user_id(ArgT0&& arg0, ArgT... args) { + + user_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.DeleteOrganizationMemberRequest.user_id) +} +inline std::string* DeleteOrganizationMemberRequest::mutable_user_id() { + std::string* _s = _internal_mutable_user_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.DeleteOrganizationMemberRequest.user_id) + return _s; +} +inline const std::string& DeleteOrganizationMemberRequest::_internal_user_id() const { + return user_id_.Get(); +} +inline void DeleteOrganizationMemberRequest::_internal_set_user_id(const std::string& value) { + + user_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* DeleteOrganizationMemberRequest::_internal_mutable_user_id() { + + return user_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* DeleteOrganizationMemberRequest::release_user_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.DeleteOrganizationMemberRequest.user_id) + return user_id_.Release(); +} +inline void DeleteOrganizationMemberRequest::set_allocated_user_id(std::string* user_id) { + if (user_id != nullptr) { + + } else { + + } + user_id_.SetAllocated(user_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (user_id_.IsDefault()) { + user_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.DeleteOrganizationMemberRequest.user_id) +} + +// ------------------------------------------------------------------- + +// DeleteOrganizationMemberResponse + +// ------------------------------------------------------------------- + +// BillingAddress + +// string address_line_1 = 1 [json_name = "addressLine1"]; +inline void BillingAddress::clear_address_line_1() { + address_line_1_.ClearToEmpty(); +} +inline const std::string& BillingAddress::address_line_1() const { + // @@protoc_insertion_point(field_get:viam.app.v1.BillingAddress.address_line_1) + return _internal_address_line_1(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void BillingAddress::set_address_line_1(ArgT0&& arg0, ArgT... args) { + + address_line_1_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.BillingAddress.address_line_1) +} +inline std::string* BillingAddress::mutable_address_line_1() { + std::string* _s = _internal_mutable_address_line_1(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.BillingAddress.address_line_1) + return _s; +} +inline const std::string& BillingAddress::_internal_address_line_1() const { + return address_line_1_.Get(); +} +inline void BillingAddress::_internal_set_address_line_1(const std::string& value) { + + address_line_1_.Set(value, GetArenaForAllocation()); +} +inline std::string* BillingAddress::_internal_mutable_address_line_1() { + + return address_line_1_.Mutable(GetArenaForAllocation()); +} +inline std::string* BillingAddress::release_address_line_1() { + // @@protoc_insertion_point(field_release:viam.app.v1.BillingAddress.address_line_1) + return address_line_1_.Release(); +} +inline void BillingAddress::set_allocated_address_line_1(std::string* address_line_1) { + if (address_line_1 != nullptr) { + + } else { + + } + address_line_1_.SetAllocated(address_line_1, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (address_line_1_.IsDefault()) { + address_line_1_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.BillingAddress.address_line_1) +} + +// optional string address_line_2 = 2 [json_name = "addressLine2"]; +inline bool BillingAddress::_internal_has_address_line_2() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool BillingAddress::has_address_line_2() const { + return _internal_has_address_line_2(); +} +inline void BillingAddress::clear_address_line_2() { + address_line_2_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& BillingAddress::address_line_2() const { + // @@protoc_insertion_point(field_get:viam.app.v1.BillingAddress.address_line_2) + return _internal_address_line_2(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void BillingAddress::set_address_line_2(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + address_line_2_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.BillingAddress.address_line_2) +} +inline std::string* BillingAddress::mutable_address_line_2() { + std::string* _s = _internal_mutable_address_line_2(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.BillingAddress.address_line_2) + return _s; +} +inline const std::string& BillingAddress::_internal_address_line_2() const { + return address_line_2_.Get(); +} +inline void BillingAddress::_internal_set_address_line_2(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + address_line_2_.Set(value, GetArenaForAllocation()); +} +inline std::string* BillingAddress::_internal_mutable_address_line_2() { + _has_bits_[0] |= 0x00000001u; + return address_line_2_.Mutable(GetArenaForAllocation()); +} +inline std::string* BillingAddress::release_address_line_2() { + // @@protoc_insertion_point(field_release:viam.app.v1.BillingAddress.address_line_2) + if (!_internal_has_address_line_2()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + auto* p = address_line_2_.Release(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (address_line_2_.IsDefault()) { + address_line_2_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; +} +inline void BillingAddress::set_allocated_address_line_2(std::string* address_line_2) { + if (address_line_2 != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + address_line_2_.SetAllocated(address_line_2, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (address_line_2_.IsDefault()) { + address_line_2_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.BillingAddress.address_line_2) +} + +// string city = 3 [json_name = "city"]; +inline void BillingAddress::clear_city() { + city_.ClearToEmpty(); +} +inline const std::string& BillingAddress::city() const { + // @@protoc_insertion_point(field_get:viam.app.v1.BillingAddress.city) + return _internal_city(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void BillingAddress::set_city(ArgT0&& arg0, ArgT... args) { + + city_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.BillingAddress.city) +} +inline std::string* BillingAddress::mutable_city() { + std::string* _s = _internal_mutable_city(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.BillingAddress.city) + return _s; +} +inline const std::string& BillingAddress::_internal_city() const { + return city_.Get(); +} +inline void BillingAddress::_internal_set_city(const std::string& value) { + + city_.Set(value, GetArenaForAllocation()); +} +inline std::string* BillingAddress::_internal_mutable_city() { + + return city_.Mutable(GetArenaForAllocation()); +} +inline std::string* BillingAddress::release_city() { + // @@protoc_insertion_point(field_release:viam.app.v1.BillingAddress.city) + return city_.Release(); +} +inline void BillingAddress::set_allocated_city(std::string* city) { + if (city != nullptr) { + + } else { + + } + city_.SetAllocated(city, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (city_.IsDefault()) { + city_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.BillingAddress.city) +} + +// string state = 4 [json_name = "state"]; +inline void BillingAddress::clear_state() { + state_.ClearToEmpty(); +} +inline const std::string& BillingAddress::state() const { + // @@protoc_insertion_point(field_get:viam.app.v1.BillingAddress.state) + return _internal_state(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void BillingAddress::set_state(ArgT0&& arg0, ArgT... args) { + + state_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.BillingAddress.state) +} +inline std::string* BillingAddress::mutable_state() { + std::string* _s = _internal_mutable_state(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.BillingAddress.state) + return _s; +} +inline const std::string& BillingAddress::_internal_state() const { + return state_.Get(); +} +inline void BillingAddress::_internal_set_state(const std::string& value) { + + state_.Set(value, GetArenaForAllocation()); +} +inline std::string* BillingAddress::_internal_mutable_state() { + + return state_.Mutable(GetArenaForAllocation()); +} +inline std::string* BillingAddress::release_state() { + // @@protoc_insertion_point(field_release:viam.app.v1.BillingAddress.state) + return state_.Release(); +} +inline void BillingAddress::set_allocated_state(std::string* state) { + if (state != nullptr) { + + } else { + + } + state_.SetAllocated(state, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (state_.IsDefault()) { + state_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.BillingAddress.state) +} + +// string zipcode = 5 [json_name = "zipcode"]; +inline void BillingAddress::clear_zipcode() { + zipcode_.ClearToEmpty(); +} +inline const std::string& BillingAddress::zipcode() const { + // @@protoc_insertion_point(field_get:viam.app.v1.BillingAddress.zipcode) + return _internal_zipcode(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void BillingAddress::set_zipcode(ArgT0&& arg0, ArgT... args) { + + zipcode_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.BillingAddress.zipcode) +} +inline std::string* BillingAddress::mutable_zipcode() { + std::string* _s = _internal_mutable_zipcode(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.BillingAddress.zipcode) + return _s; +} +inline const std::string& BillingAddress::_internal_zipcode() const { + return zipcode_.Get(); +} +inline void BillingAddress::_internal_set_zipcode(const std::string& value) { + + zipcode_.Set(value, GetArenaForAllocation()); +} +inline std::string* BillingAddress::_internal_mutable_zipcode() { + + return zipcode_.Mutable(GetArenaForAllocation()); +} +inline std::string* BillingAddress::release_zipcode() { + // @@protoc_insertion_point(field_release:viam.app.v1.BillingAddress.zipcode) + return zipcode_.Release(); +} +inline void BillingAddress::set_allocated_zipcode(std::string* zipcode) { + if (zipcode != nullptr) { + + } else { + + } + zipcode_.SetAllocated(zipcode, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (zipcode_.IsDefault()) { + zipcode_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.BillingAddress.zipcode) +} + +// ------------------------------------------------------------------- + +// EnableBillingServiceRequest + +// string org_id = 1 [json_name = "orgId"]; +inline void EnableBillingServiceRequest::clear_org_id() { + org_id_.ClearToEmpty(); +} +inline const std::string& EnableBillingServiceRequest::org_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.EnableBillingServiceRequest.org_id) + return _internal_org_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void EnableBillingServiceRequest::set_org_id(ArgT0&& arg0, ArgT... args) { + + org_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.EnableBillingServiceRequest.org_id) +} +inline std::string* EnableBillingServiceRequest::mutable_org_id() { + std::string* _s = _internal_mutable_org_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.EnableBillingServiceRequest.org_id) + return _s; +} +inline const std::string& EnableBillingServiceRequest::_internal_org_id() const { + return org_id_.Get(); +} +inline void EnableBillingServiceRequest::_internal_set_org_id(const std::string& value) { + + org_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* EnableBillingServiceRequest::_internal_mutable_org_id() { + + return org_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* EnableBillingServiceRequest::release_org_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.EnableBillingServiceRequest.org_id) + return org_id_.Release(); +} +inline void EnableBillingServiceRequest::set_allocated_org_id(std::string* org_id) { + if (org_id != nullptr) { + + } else { + + } + org_id_.SetAllocated(org_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (org_id_.IsDefault()) { + org_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.EnableBillingServiceRequest.org_id) +} + +// .viam.app.v1.BillingAddress billing_address = 2 [json_name = "billingAddress"]; +inline bool EnableBillingServiceRequest::_internal_has_billing_address() const { + return this != internal_default_instance() && billing_address_ != nullptr; +} +inline bool EnableBillingServiceRequest::has_billing_address() const { + return _internal_has_billing_address(); +} +inline void EnableBillingServiceRequest::clear_billing_address() { + if (GetArenaForAllocation() == nullptr && billing_address_ != nullptr) { + delete billing_address_; + } + billing_address_ = nullptr; +} +inline const ::viam::app::v1::BillingAddress& EnableBillingServiceRequest::_internal_billing_address() const { + const ::viam::app::v1::BillingAddress* p = billing_address_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_BillingAddress_default_instance_); +} +inline const ::viam::app::v1::BillingAddress& EnableBillingServiceRequest::billing_address() const { + // @@protoc_insertion_point(field_get:viam.app.v1.EnableBillingServiceRequest.billing_address) + return _internal_billing_address(); +} +inline void EnableBillingServiceRequest::unsafe_arena_set_allocated_billing_address( + ::viam::app::v1::BillingAddress* billing_address) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(billing_address_); + } + billing_address_ = billing_address; + if (billing_address) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.EnableBillingServiceRequest.billing_address) +} +inline ::viam::app::v1::BillingAddress* EnableBillingServiceRequest::release_billing_address() { + + ::viam::app::v1::BillingAddress* temp = billing_address_; + billing_address_ = 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::BillingAddress* EnableBillingServiceRequest::unsafe_arena_release_billing_address() { + // @@protoc_insertion_point(field_release:viam.app.v1.EnableBillingServiceRequest.billing_address) + + ::viam::app::v1::BillingAddress* temp = billing_address_; + billing_address_ = nullptr; + return temp; +} +inline ::viam::app::v1::BillingAddress* EnableBillingServiceRequest::_internal_mutable_billing_address() { + + if (billing_address_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::BillingAddress>(GetArenaForAllocation()); + billing_address_ = p; + } + return billing_address_; +} +inline ::viam::app::v1::BillingAddress* EnableBillingServiceRequest::mutable_billing_address() { + ::viam::app::v1::BillingAddress* _msg = _internal_mutable_billing_address(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.EnableBillingServiceRequest.billing_address) + return _msg; +} +inline void EnableBillingServiceRequest::set_allocated_billing_address(::viam::app::v1::BillingAddress* billing_address) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete billing_address_; + } + if (billing_address) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(billing_address); + if (message_arena != submessage_arena) { + billing_address = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, billing_address, submessage_arena); + } + + } else { + + } + billing_address_ = billing_address; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.EnableBillingServiceRequest.billing_address) +} + +// ------------------------------------------------------------------- + +// EnableBillingServiceResponse + +// ------------------------------------------------------------------- + +// UpdateBillingServiceRequest + +// string org_id = 1 [json_name = "orgId"]; +inline void UpdateBillingServiceRequest::clear_org_id() { + org_id_.ClearToEmpty(); +} +inline const std::string& UpdateBillingServiceRequest::org_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateBillingServiceRequest.org_id) + return _internal_org_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void UpdateBillingServiceRequest::set_org_id(ArgT0&& arg0, ArgT... args) { + + org_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateBillingServiceRequest.org_id) +} +inline std::string* UpdateBillingServiceRequest::mutable_org_id() { + std::string* _s = _internal_mutable_org_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateBillingServiceRequest.org_id) + return _s; +} +inline const std::string& UpdateBillingServiceRequest::_internal_org_id() const { + return org_id_.Get(); +} +inline void UpdateBillingServiceRequest::_internal_set_org_id(const std::string& value) { + + org_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* UpdateBillingServiceRequest::_internal_mutable_org_id() { + + return org_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* UpdateBillingServiceRequest::release_org_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateBillingServiceRequest.org_id) + return org_id_.Release(); +} +inline void UpdateBillingServiceRequest::set_allocated_org_id(std::string* org_id) { + if (org_id != nullptr) { + + } else { + + } + org_id_.SetAllocated(org_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (org_id_.IsDefault()) { + org_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateBillingServiceRequest.org_id) +} + +// .viam.app.v1.BillingAddress billing_address = 2 [json_name = "billingAddress"]; +inline bool UpdateBillingServiceRequest::_internal_has_billing_address() const { + return this != internal_default_instance() && billing_address_ != nullptr; +} +inline bool UpdateBillingServiceRequest::has_billing_address() const { + return _internal_has_billing_address(); +} +inline void UpdateBillingServiceRequest::clear_billing_address() { + if (GetArenaForAllocation() == nullptr && billing_address_ != nullptr) { + delete billing_address_; + } + billing_address_ = nullptr; +} +inline const ::viam::app::v1::BillingAddress& UpdateBillingServiceRequest::_internal_billing_address() const { + const ::viam::app::v1::BillingAddress* p = billing_address_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_BillingAddress_default_instance_); +} +inline const ::viam::app::v1::BillingAddress& UpdateBillingServiceRequest::billing_address() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateBillingServiceRequest.billing_address) + return _internal_billing_address(); +} +inline void UpdateBillingServiceRequest::unsafe_arena_set_allocated_billing_address( + ::viam::app::v1::BillingAddress* billing_address) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(billing_address_); + } + billing_address_ = billing_address; + if (billing_address) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.UpdateBillingServiceRequest.billing_address) +} +inline ::viam::app::v1::BillingAddress* UpdateBillingServiceRequest::release_billing_address() { + + ::viam::app::v1::BillingAddress* temp = billing_address_; + billing_address_ = 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::BillingAddress* UpdateBillingServiceRequest::unsafe_arena_release_billing_address() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateBillingServiceRequest.billing_address) + + ::viam::app::v1::BillingAddress* temp = billing_address_; + billing_address_ = nullptr; + return temp; +} +inline ::viam::app::v1::BillingAddress* UpdateBillingServiceRequest::_internal_mutable_billing_address() { + + if (billing_address_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::BillingAddress>(GetArenaForAllocation()); + billing_address_ = p; + } + return billing_address_; +} +inline ::viam::app::v1::BillingAddress* UpdateBillingServiceRequest::mutable_billing_address() { + ::viam::app::v1::BillingAddress* _msg = _internal_mutable_billing_address(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateBillingServiceRequest.billing_address) + return _msg; +} +inline void UpdateBillingServiceRequest::set_allocated_billing_address(::viam::app::v1::BillingAddress* billing_address) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete billing_address_; + } + if (billing_address) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(billing_address); + if (message_arena != submessage_arena) { + billing_address = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, billing_address, submessage_arena); + } + + } else { + + } + billing_address_ = billing_address; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateBillingServiceRequest.billing_address) +} + +// ------------------------------------------------------------------- + +// UpdateBillingServiceResponse + +// ------------------------------------------------------------------- + +// GetBillingServiceConfigRequest + +// string org_id = 1 [json_name = "orgId"]; +inline void GetBillingServiceConfigRequest::clear_org_id() { + org_id_.ClearToEmpty(); +} +inline const std::string& GetBillingServiceConfigRequest::org_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetBillingServiceConfigRequest.org_id) + return _internal_org_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetBillingServiceConfigRequest::set_org_id(ArgT0&& arg0, ArgT... args) { + + org_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.GetBillingServiceConfigRequest.org_id) +} +inline std::string* GetBillingServiceConfigRequest::mutable_org_id() { + std::string* _s = _internal_mutable_org_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetBillingServiceConfigRequest.org_id) + return _s; +} +inline const std::string& GetBillingServiceConfigRequest::_internal_org_id() const { + return org_id_.Get(); +} +inline void GetBillingServiceConfigRequest::_internal_set_org_id(const std::string& value) { + + org_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetBillingServiceConfigRequest::_internal_mutable_org_id() { + + return org_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetBillingServiceConfigRequest::release_org_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.GetBillingServiceConfigRequest.org_id) + return org_id_.Release(); +} +inline void GetBillingServiceConfigRequest::set_allocated_org_id(std::string* org_id) { + if (org_id != nullptr) { + + } else { + + } + org_id_.SetAllocated(org_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (org_id_.IsDefault()) { + org_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetBillingServiceConfigRequest.org_id) +} + +// ------------------------------------------------------------------- + +// GetBillingServiceConfigResponse + +// .viam.app.v1.BillingAddress billing_address = 1 [json_name = "billingAddress"]; +inline bool GetBillingServiceConfigResponse::_internal_has_billing_address() const { + return this != internal_default_instance() && billing_address_ != nullptr; +} +inline bool GetBillingServiceConfigResponse::has_billing_address() const { + return _internal_has_billing_address(); +} +inline void GetBillingServiceConfigResponse::clear_billing_address() { + if (GetArenaForAllocation() == nullptr && billing_address_ != nullptr) { + delete billing_address_; + } + billing_address_ = nullptr; +} +inline const ::viam::app::v1::BillingAddress& GetBillingServiceConfigResponse::_internal_billing_address() const { + const ::viam::app::v1::BillingAddress* p = billing_address_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_BillingAddress_default_instance_); +} +inline const ::viam::app::v1::BillingAddress& GetBillingServiceConfigResponse::billing_address() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetBillingServiceConfigResponse.billing_address) + return _internal_billing_address(); +} +inline void GetBillingServiceConfigResponse::unsafe_arena_set_allocated_billing_address( + ::viam::app::v1::BillingAddress* billing_address) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(billing_address_); + } + billing_address_ = billing_address; + if (billing_address) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.GetBillingServiceConfigResponse.billing_address) +} +inline ::viam::app::v1::BillingAddress* GetBillingServiceConfigResponse::release_billing_address() { + + ::viam::app::v1::BillingAddress* temp = billing_address_; + billing_address_ = 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::BillingAddress* GetBillingServiceConfigResponse::unsafe_arena_release_billing_address() { + // @@protoc_insertion_point(field_release:viam.app.v1.GetBillingServiceConfigResponse.billing_address) + + ::viam::app::v1::BillingAddress* temp = billing_address_; + billing_address_ = nullptr; + return temp; +} +inline ::viam::app::v1::BillingAddress* GetBillingServiceConfigResponse::_internal_mutable_billing_address() { + + if (billing_address_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::BillingAddress>(GetArenaForAllocation()); + billing_address_ = p; + } + return billing_address_; +} +inline ::viam::app::v1::BillingAddress* GetBillingServiceConfigResponse::mutable_billing_address() { + ::viam::app::v1::BillingAddress* _msg = _internal_mutable_billing_address(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetBillingServiceConfigResponse.billing_address) + return _msg; +} +inline void GetBillingServiceConfigResponse::set_allocated_billing_address(::viam::app::v1::BillingAddress* billing_address) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete billing_address_; + } + if (billing_address) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(billing_address); + if (message_arena != submessage_arena) { + billing_address = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, billing_address, submessage_arena); + } + + } else { + + } + billing_address_ = billing_address; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetBillingServiceConfigResponse.billing_address) +} -// string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""]; -inline void RobotPart::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); +// string support_email = 2 [json_name = "supportEmail"]; +inline void GetBillingServiceConfigResponse::clear_support_email() { + support_email_.ClearToEmpty(); } -inline const std::string& RobotPart::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.RobotPart.id) - return _internal_id(); +inline const std::string& GetBillingServiceConfigResponse::support_email() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetBillingServiceConfigResponse.support_email) + return _internal_support_email(); } -template -inline PROTOBUF_ALWAYS_INLINE void RobotPart::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.RobotPart.id) +template +inline PROTOBUF_ALWAYS_INLINE +void GetBillingServiceConfigResponse::set_support_email(ArgT0&& arg0, ArgT... args) { + + support_email_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.GetBillingServiceConfigResponse.support_email) } -inline std::string* RobotPart::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotPart.id) +inline std::string* GetBillingServiceConfigResponse::mutable_support_email() { + std::string* _s = _internal_mutable_support_email(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetBillingServiceConfigResponse.support_email) return _s; } -inline const std::string& RobotPart::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); +inline const std::string& GetBillingServiceConfigResponse::_internal_support_email() const { + return support_email_.Get(); } -inline void RobotPart::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); +inline void GetBillingServiceConfigResponse::_internal_set_support_email(const std::string& value) { + + support_email_.Set(value, GetArenaForAllocation()); } -inline std::string* RobotPart::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); +inline std::string* GetBillingServiceConfigResponse::_internal_mutable_support_email() { + + return support_email_.Mutable(GetArenaForAllocation()); } -inline std::string* RobotPart::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.RobotPart.id) - return _impl_.id_.Release(); -} -inline void RobotPart::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotPart.id) +inline std::string* GetBillingServiceConfigResponse::release_support_email() { + // @@protoc_insertion_point(field_release:viam.app.v1.GetBillingServiceConfigResponse.support_email) + return support_email_.Release(); +} +inline void GetBillingServiceConfigResponse::set_allocated_support_email(std::string* support_email) { + if (support_email != nullptr) { + + } else { + + } + support_email_.SetAllocated(support_email, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (support_email_.IsDefault()) { + support_email_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetBillingServiceConfigResponse.support_email) } -// string name = 2 [json_name = "name", (.tagger.v1.tags) = "bson:\"name\" json:\"name\""]; -inline void RobotPart::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); +// string logo_url = 3 [json_name = "logoUrl"]; +inline void GetBillingServiceConfigResponse::clear_logo_url() { + logo_url_.ClearToEmpty(); } -inline const std::string& RobotPart::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.RobotPart.name) - return _internal_name(); +inline const std::string& GetBillingServiceConfigResponse::logo_url() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetBillingServiceConfigResponse.logo_url) + return _internal_logo_url(); } -template -inline PROTOBUF_ALWAYS_INLINE void RobotPart::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.RobotPart.name) +template +inline PROTOBUF_ALWAYS_INLINE +void GetBillingServiceConfigResponse::set_logo_url(ArgT0&& arg0, ArgT... args) { + + logo_url_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.GetBillingServiceConfigResponse.logo_url) } -inline std::string* RobotPart::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotPart.name) +inline std::string* GetBillingServiceConfigResponse::mutable_logo_url() { + std::string* _s = _internal_mutable_logo_url(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetBillingServiceConfigResponse.logo_url) return _s; } -inline const std::string& RobotPart::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); +inline const std::string& GetBillingServiceConfigResponse::_internal_logo_url() const { + return logo_url_.Get(); } -inline void RobotPart::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); +inline void GetBillingServiceConfigResponse::_internal_set_logo_url(const std::string& value) { + + logo_url_.Set(value, GetArenaForAllocation()); } -inline std::string* RobotPart::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); +inline std::string* GetBillingServiceConfigResponse::_internal_mutable_logo_url() { + + return logo_url_.Mutable(GetArenaForAllocation()); } -inline std::string* RobotPart::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.RobotPart.name) - return _impl_.name_.Release(); -} -inline void RobotPart::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotPart.name) +inline std::string* GetBillingServiceConfigResponse::release_logo_url() { + // @@protoc_insertion_point(field_release:viam.app.v1.GetBillingServiceConfigResponse.logo_url) + return logo_url_.Release(); +} +inline void GetBillingServiceConfigResponse::set_allocated_logo_url(std::string* logo_url) { + if (logo_url != nullptr) { + + } else { + + } + logo_url_.SetAllocated(logo_url, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (logo_url_.IsDefault()) { + logo_url_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetBillingServiceConfigResponse.logo_url) } -// string dns_name = 10 [json_name = "dnsName", (.tagger.v1.tags) = "bson:\"dns_name\" json:\"dns_name\""]; -inline void RobotPart::clear_dns_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.dns_name_.ClearToEmpty(); +// string billing_dashboard_url = 4 [json_name = "billingDashboardUrl"]; +inline void GetBillingServiceConfigResponse::clear_billing_dashboard_url() { + billing_dashboard_url_.ClearToEmpty(); } -inline const std::string& RobotPart::dns_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.RobotPart.dns_name) - return _internal_dns_name(); +inline const std::string& GetBillingServiceConfigResponse::billing_dashboard_url() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetBillingServiceConfigResponse.billing_dashboard_url) + return _internal_billing_dashboard_url(); } -template -inline PROTOBUF_ALWAYS_INLINE void RobotPart::set_dns_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.dns_name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.RobotPart.dns_name) +template +inline PROTOBUF_ALWAYS_INLINE +void GetBillingServiceConfigResponse::set_billing_dashboard_url(ArgT0&& arg0, ArgT... args) { + + billing_dashboard_url_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.GetBillingServiceConfigResponse.billing_dashboard_url) } -inline std::string* RobotPart::mutable_dns_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_dns_name(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotPart.dns_name) +inline std::string* GetBillingServiceConfigResponse::mutable_billing_dashboard_url() { + std::string* _s = _internal_mutable_billing_dashboard_url(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetBillingServiceConfigResponse.billing_dashboard_url) return _s; } -inline const std::string& RobotPart::_internal_dns_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.dns_name_.Get(); +inline const std::string& GetBillingServiceConfigResponse::_internal_billing_dashboard_url() const { + return billing_dashboard_url_.Get(); } -inline void RobotPart::_internal_set_dns_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.dns_name_.Set(value, GetArena()); +inline void GetBillingServiceConfigResponse::_internal_set_billing_dashboard_url(const std::string& value) { + + billing_dashboard_url_.Set(value, GetArenaForAllocation()); } -inline std::string* RobotPart::_internal_mutable_dns_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.dns_name_.Mutable( GetArena()); +inline std::string* GetBillingServiceConfigResponse::_internal_mutable_billing_dashboard_url() { + + return billing_dashboard_url_.Mutable(GetArenaForAllocation()); } -inline std::string* RobotPart::release_dns_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.RobotPart.dns_name) - return _impl_.dns_name_.Release(); -} -inline void RobotPart::set_allocated_dns_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.dns_name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.dns_name_.IsDefault()) { - _impl_.dns_name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotPart.dns_name) +inline std::string* GetBillingServiceConfigResponse::release_billing_dashboard_url() { + // @@protoc_insertion_point(field_release:viam.app.v1.GetBillingServiceConfigResponse.billing_dashboard_url) + return billing_dashboard_url_.Release(); +} +inline void GetBillingServiceConfigResponse::set_allocated_billing_dashboard_url(std::string* billing_dashboard_url) { + if (billing_dashboard_url != nullptr) { + + } else { + + } + billing_dashboard_url_.SetAllocated(billing_dashboard_url, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (billing_dashboard_url_.IsDefault()) { + billing_dashboard_url_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetBillingServiceConfigResponse.billing_dashboard_url) } -// string secret = 3 [json_name = "secret", (.tagger.v1.tags) = "bson:\"secret\" json:\"secret,omitempty\""]; -inline void RobotPart::clear_secret() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.secret_.ClearToEmpty(); +// ------------------------------------------------------------------- + +// DisableBillingServiceRequest + +// string org_id = 1 [json_name = "orgId"]; +inline void DisableBillingServiceRequest::clear_org_id() { + org_id_.ClearToEmpty(); } -inline const std::string& RobotPart::secret() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.RobotPart.secret) - return _internal_secret(); +inline const std::string& DisableBillingServiceRequest::org_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.DisableBillingServiceRequest.org_id) + return _internal_org_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void RobotPart::set_secret(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.secret_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.RobotPart.secret) +template +inline PROTOBUF_ALWAYS_INLINE +void DisableBillingServiceRequest::set_org_id(ArgT0&& arg0, ArgT... args) { + + org_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.DisableBillingServiceRequest.org_id) } -inline std::string* RobotPart::mutable_secret() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_secret(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotPart.secret) +inline std::string* DisableBillingServiceRequest::mutable_org_id() { + std::string* _s = _internal_mutable_org_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.DisableBillingServiceRequest.org_id) return _s; } -inline const std::string& RobotPart::_internal_secret() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.secret_.Get(); +inline const std::string& DisableBillingServiceRequest::_internal_org_id() const { + return org_id_.Get(); } -inline void RobotPart::_internal_set_secret(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.secret_.Set(value, GetArena()); +inline void DisableBillingServiceRequest::_internal_set_org_id(const std::string& value) { + + org_id_.Set(value, GetArenaForAllocation()); } -inline std::string* RobotPart::_internal_mutable_secret() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.secret_.Mutable( GetArena()); +inline std::string* DisableBillingServiceRequest::_internal_mutable_org_id() { + + return org_id_.Mutable(GetArenaForAllocation()); } -inline std::string* RobotPart::release_secret() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.RobotPart.secret) - return _impl_.secret_.Release(); -} -inline void RobotPart::set_allocated_secret(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.secret_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.secret_.IsDefault()) { - _impl_.secret_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotPart.secret) +inline std::string* DisableBillingServiceRequest::release_org_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.DisableBillingServiceRequest.org_id) + return org_id_.Release(); +} +inline void DisableBillingServiceRequest::set_allocated_org_id(std::string* org_id) { + if (org_id != nullptr) { + + } else { + + } + org_id_.SetAllocated(org_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (org_id_.IsDefault()) { + org_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.DisableBillingServiceRequest.org_id) } -// string robot = 4 [json_name = "robot", (.tagger.v1.tags) = "bson:\"robot\" json:\"robot\""]; -inline void RobotPart::clear_robot() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.robot_.ClearToEmpty(); +// ------------------------------------------------------------------- + +// DisableBillingServiceResponse + +// ------------------------------------------------------------------- + +// OrganizationSetSupportEmailRequest + +// string org_id = 1 [json_name = "orgId"]; +inline void OrganizationSetSupportEmailRequest::clear_org_id() { + org_id_.ClearToEmpty(); } -inline const std::string& RobotPart::robot() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.RobotPart.robot) - return _internal_robot(); +inline const std::string& OrganizationSetSupportEmailRequest::org_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.OrganizationSetSupportEmailRequest.org_id) + return _internal_org_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void RobotPart::set_robot(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.robot_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.RobotPart.robot) +template +inline PROTOBUF_ALWAYS_INLINE +void OrganizationSetSupportEmailRequest::set_org_id(ArgT0&& arg0, ArgT... args) { + + org_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.OrganizationSetSupportEmailRequest.org_id) } -inline std::string* RobotPart::mutable_robot() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_robot(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotPart.robot) +inline std::string* OrganizationSetSupportEmailRequest::mutable_org_id() { + std::string* _s = _internal_mutable_org_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.OrganizationSetSupportEmailRequest.org_id) return _s; } -inline const std::string& RobotPart::_internal_robot() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.robot_.Get(); +inline const std::string& OrganizationSetSupportEmailRequest::_internal_org_id() const { + return org_id_.Get(); } -inline void RobotPart::_internal_set_robot(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.robot_.Set(value, GetArena()); +inline void OrganizationSetSupportEmailRequest::_internal_set_org_id(const std::string& value) { + + org_id_.Set(value, GetArenaForAllocation()); } -inline std::string* RobotPart::_internal_mutable_robot() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.robot_.Mutable( GetArena()); +inline std::string* OrganizationSetSupportEmailRequest::_internal_mutable_org_id() { + + return org_id_.Mutable(GetArenaForAllocation()); } -inline std::string* RobotPart::release_robot() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.RobotPart.robot) - return _impl_.robot_.Release(); -} -inline void RobotPart::set_allocated_robot(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.robot_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.robot_.IsDefault()) { - _impl_.robot_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotPart.robot) +inline std::string* OrganizationSetSupportEmailRequest::release_org_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.OrganizationSetSupportEmailRequest.org_id) + return org_id_.Release(); +} +inline void OrganizationSetSupportEmailRequest::set_allocated_org_id(std::string* org_id) { + if (org_id != nullptr) { + + } else { + + } + org_id_.SetAllocated(org_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (org_id_.IsDefault()) { + org_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.OrganizationSetSupportEmailRequest.org_id) } -// string location_id = 12 [json_name = "locationId", (.tagger.v1.tags) = "bson:\"location_id\" json:\"-\""]; -inline void RobotPart::clear_location_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.location_id_.ClearToEmpty(); +// string email = 2 [json_name = "email"]; +inline void OrganizationSetSupportEmailRequest::clear_email() { + email_.ClearToEmpty(); } -inline const std::string& RobotPart::location_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.RobotPart.location_id) - return _internal_location_id(); +inline const std::string& OrganizationSetSupportEmailRequest::email() const { + // @@protoc_insertion_point(field_get:viam.app.v1.OrganizationSetSupportEmailRequest.email) + return _internal_email(); } -template -inline PROTOBUF_ALWAYS_INLINE void RobotPart::set_location_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.location_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.RobotPart.location_id) +template +inline PROTOBUF_ALWAYS_INLINE +void OrganizationSetSupportEmailRequest::set_email(ArgT0&& arg0, ArgT... args) { + + email_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.OrganizationSetSupportEmailRequest.email) } -inline std::string* RobotPart::mutable_location_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_location_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotPart.location_id) +inline std::string* OrganizationSetSupportEmailRequest::mutable_email() { + std::string* _s = _internal_mutable_email(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.OrganizationSetSupportEmailRequest.email) return _s; } -inline const std::string& RobotPart::_internal_location_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.location_id_.Get(); +inline const std::string& OrganizationSetSupportEmailRequest::_internal_email() const { + return email_.Get(); } -inline void RobotPart::_internal_set_location_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.location_id_.Set(value, GetArena()); +inline void OrganizationSetSupportEmailRequest::_internal_set_email(const std::string& value) { + + email_.Set(value, GetArenaForAllocation()); } -inline std::string* RobotPart::_internal_mutable_location_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.location_id_.Mutable( GetArena()); +inline std::string* OrganizationSetSupportEmailRequest::_internal_mutable_email() { + + return email_.Mutable(GetArenaForAllocation()); } -inline std::string* RobotPart::release_location_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.RobotPart.location_id) - return _impl_.location_id_.Release(); -} -inline void RobotPart::set_allocated_location_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.location_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.location_id_.IsDefault()) { - _impl_.location_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotPart.location_id) +inline std::string* OrganizationSetSupportEmailRequest::release_email() { + // @@protoc_insertion_point(field_release:viam.app.v1.OrganizationSetSupportEmailRequest.email) + return email_.Release(); +} +inline void OrganizationSetSupportEmailRequest::set_allocated_email(std::string* email) { + if (email != nullptr) { + + } else { + + } + email_.SetAllocated(email, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (email_.IsDefault()) { + email_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.OrganizationSetSupportEmailRequest.email) } -// .google.protobuf.Struct robot_config = 5 [json_name = "robotConfig", (.tagger.v1.tags) = "bson:\"config\" json:\"robot_config\""]; -inline bool RobotPart::has_robot_config() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.robot_config_ != nullptr); - return value; +// ------------------------------------------------------------------- + +// OrganizationSetSupportEmailResponse + +// ------------------------------------------------------------------- + +// OrganizationGetSupportEmailRequest + +// string org_id = 1 [json_name = "orgId"]; +inline void OrganizationGetSupportEmailRequest::clear_org_id() { + org_id_.ClearToEmpty(); } -inline const ::google::protobuf::Struct& RobotPart::_internal_robot_config() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.robot_config_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const std::string& OrganizationGetSupportEmailRequest::org_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.OrganizationGetSupportEmailRequest.org_id) + return _internal_org_id(); } -inline const ::google::protobuf::Struct& RobotPart::robot_config() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.RobotPart.robot_config) - return _internal_robot_config(); +template +inline PROTOBUF_ALWAYS_INLINE +void OrganizationGetSupportEmailRequest::set_org_id(ArgT0&& arg0, ArgT... args) { + + org_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.OrganizationGetSupportEmailRequest.org_id) } -inline void RobotPart::unsafe_arena_set_allocated_robot_config(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.robot_config_); - } - _impl_.robot_config_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; +inline std::string* OrganizationGetSupportEmailRequest::mutable_org_id() { + std::string* _s = _internal_mutable_org_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.OrganizationGetSupportEmailRequest.org_id) + return _s; +} +inline const std::string& OrganizationGetSupportEmailRequest::_internal_org_id() const { + return org_id_.Get(); +} +inline void OrganizationGetSupportEmailRequest::_internal_set_org_id(const std::string& value) { + + org_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* OrganizationGetSupportEmailRequest::_internal_mutable_org_id() { + + return org_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* OrganizationGetSupportEmailRequest::release_org_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.OrganizationGetSupportEmailRequest.org_id) + return org_id_.Release(); +} +inline void OrganizationGetSupportEmailRequest::set_allocated_org_id(std::string* org_id) { + if (org_id != nullptr) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.RobotPart.robot_config) + org_id_.SetAllocated(org_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (org_id_.IsDefault()) { + org_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.OrganizationGetSupportEmailRequest.org_id) } -inline ::google::protobuf::Struct* RobotPart::release_robot_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.robot_config_; - _impl_.robot_config_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; +// ------------------------------------------------------------------- + +// OrganizationGetSupportEmailResponse + +// string email = 1 [json_name = "email"]; +inline void OrganizationGetSupportEmailResponse::clear_email() { + email_.ClearToEmpty(); +} +inline const std::string& OrganizationGetSupportEmailResponse::email() const { + // @@protoc_insertion_point(field_get:viam.app.v1.OrganizationGetSupportEmailResponse.email) + return _internal_email(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void OrganizationGetSupportEmailResponse::set_email(ArgT0&& arg0, ArgT... args) { + + email_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.OrganizationGetSupportEmailResponse.email) +} +inline std::string* OrganizationGetSupportEmailResponse::mutable_email() { + std::string* _s = _internal_mutable_email(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.OrganizationGetSupportEmailResponse.email) + return _s; +} +inline const std::string& OrganizationGetSupportEmailResponse::_internal_email() const { + return email_.Get(); +} +inline void OrganizationGetSupportEmailResponse::_internal_set_email(const std::string& value) { + + email_.Set(value, GetArenaForAllocation()); +} +inline std::string* OrganizationGetSupportEmailResponse::_internal_mutable_email() { + + return email_.Mutable(GetArenaForAllocation()); +} +inline std::string* OrganizationGetSupportEmailResponse::release_email() { + // @@protoc_insertion_point(field_release:viam.app.v1.OrganizationGetSupportEmailResponse.email) + return email_.Release(); +} +inline void OrganizationGetSupportEmailResponse::set_allocated_email(std::string* email) { + if (email != nullptr) { + + } else { + } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + email_.SetAllocated(email, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (email_.IsDefault()) { + email_.Set("", GetArenaForAllocation()); } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.OrganizationGetSupportEmailResponse.email) } -inline ::google::protobuf::Struct* RobotPart::unsafe_arena_release_robot_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.RobotPart.robot_config) - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.robot_config_; - _impl_.robot_config_ = nullptr; - return temp; +// ------------------------------------------------------------------- + +// OrganizationIdentity + +// string id = 1 [json_name = "id"]; +inline void OrganizationIdentity::clear_id() { + id_.ClearToEmpty(); } -inline ::google::protobuf::Struct* RobotPart::_internal_mutable_robot_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.robot_config_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.robot_config_ = reinterpret_cast<::google::protobuf::Struct*>(p); - } - return _impl_.robot_config_; +inline const std::string& OrganizationIdentity::id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.OrganizationIdentity.id) + return _internal_id(); } -inline ::google::protobuf::Struct* RobotPart::mutable_robot_config() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_robot_config(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotPart.robot_config) - return _msg; +template +inline PROTOBUF_ALWAYS_INLINE +void OrganizationIdentity::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.OrganizationIdentity.id) } -inline void RobotPart::set_allocated_robot_config(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.robot_config_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; +inline std::string* OrganizationIdentity::mutable_id() { + std::string* _s = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.OrganizationIdentity.id) + return _s; +} +inline const std::string& OrganizationIdentity::_internal_id() const { + return id_.Get(); +} +inline void OrganizationIdentity::_internal_set_id(const std::string& value) { + + id_.Set(value, GetArenaForAllocation()); +} +inline std::string* OrganizationIdentity::_internal_mutable_id() { + + return id_.Mutable(GetArenaForAllocation()); +} +inline std::string* OrganizationIdentity::release_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.OrganizationIdentity.id) + return id_.Release(); +} +inline void OrganizationIdentity::set_allocated_id(std::string* id) { + if (id != nullptr) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.robot_config_ = reinterpret_cast<::google::protobuf::Struct*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotPart.robot_config) + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.OrganizationIdentity.id) } -// .google.protobuf.Timestamp last_access = 6 [json_name = "lastAccess", (.tagger.v1.tags) = "bson:\"last_access\" json:\"last_access\""]; -inline bool RobotPart::has_last_access() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.last_access_ != nullptr); - return value; +// string name = 2 [json_name = "name"]; +inline void OrganizationIdentity::clear_name() { + name_.ClearToEmpty(); } -inline const ::google::protobuf::Timestamp& RobotPart::_internal_last_access() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Timestamp* p = _impl_.last_access_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); +inline const std::string& OrganizationIdentity::name() const { + // @@protoc_insertion_point(field_get:viam.app.v1.OrganizationIdentity.name) + return _internal_name(); } -inline const ::google::protobuf::Timestamp& RobotPart::last_access() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.RobotPart.last_access) - return _internal_last_access(); +template +inline PROTOBUF_ALWAYS_INLINE +void OrganizationIdentity::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.OrganizationIdentity.name) } -inline void RobotPart::unsafe_arena_set_allocated_last_access(::google::protobuf::Timestamp* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.last_access_); - } - _impl_.last_access_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; +inline std::string* OrganizationIdentity::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.OrganizationIdentity.name) + return _s; +} +inline const std::string& OrganizationIdentity::_internal_name() const { + return name_.Get(); +} +inline void OrganizationIdentity::_internal_set_name(const std::string& value) { + + name_.Set(value, GetArenaForAllocation()); +} +inline std::string* OrganizationIdentity::_internal_mutable_name() { + + return name_.Mutable(GetArenaForAllocation()); +} +inline std::string* OrganizationIdentity::release_name() { + // @@protoc_insertion_point(field_release:viam.app.v1.OrganizationIdentity.name) + return name_.Release(); +} +inline void OrganizationIdentity::set_allocated_name(std::string* name) { + if (name != nullptr) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.RobotPart.last_access) + 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.app.v1.OrganizationIdentity.name) } -inline ::google::protobuf::Timestamp* RobotPart::release_last_access() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Timestamp* released = _impl_.last_access_; - _impl_.last_access_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; +// ------------------------------------------------------------------- + +// LocationOrganization + +// string organization_id = 1 [json_name = "organizationId"]; +inline void LocationOrganization::clear_organization_id() { + organization_id_.ClearToEmpty(); +} +inline const std::string& LocationOrganization::organization_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.LocationOrganization.organization_id) + return _internal_organization_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void LocationOrganization::set_organization_id(ArgT0&& arg0, ArgT... args) { + + organization_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.LocationOrganization.organization_id) +} +inline std::string* LocationOrganization::mutable_organization_id() { + std::string* _s = _internal_mutable_organization_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.LocationOrganization.organization_id) + return _s; +} +inline const std::string& LocationOrganization::_internal_organization_id() const { + return organization_id_.Get(); +} +inline void LocationOrganization::_internal_set_organization_id(const std::string& value) { + + organization_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* LocationOrganization::_internal_mutable_organization_id() { + + return organization_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* LocationOrganization::release_organization_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.LocationOrganization.organization_id) + return organization_id_.Release(); +} +inline void LocationOrganization::set_allocated_organization_id(std::string* organization_id) { + if (organization_id != nullptr) { + + } else { + } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + organization_id_.SetAllocated(organization_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (organization_id_.IsDefault()) { + organization_id_.Set("", GetArenaForAllocation()); } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.LocationOrganization.organization_id) } -inline ::google::protobuf::Timestamp* RobotPart::unsafe_arena_release_last_access() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.RobotPart.last_access) - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Timestamp* temp = _impl_.last_access_; - _impl_.last_access_ = nullptr; - return temp; +// bool primary = 2 [json_name = "primary"]; +inline void LocationOrganization::clear_primary() { + primary_ = false; } -inline ::google::protobuf::Timestamp* RobotPart::_internal_mutable_last_access() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.last_access_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena()); - _impl_.last_access_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); - } - return _impl_.last_access_; +inline bool LocationOrganization::_internal_primary() const { + return primary_; } -inline ::google::protobuf::Timestamp* RobotPart::mutable_last_access() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Timestamp* _msg = _internal_mutable_last_access(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotPart.last_access) - return _msg; +inline bool LocationOrganization::primary() const { + // @@protoc_insertion_point(field_get:viam.app.v1.LocationOrganization.primary) + return _internal_primary(); +} +inline void LocationOrganization::_internal_set_primary(bool value) { + + primary_ = value; +} +inline void LocationOrganization::set_primary(bool value) { + _internal_set_primary(value); + // @@protoc_insertion_point(field_set:viam.app.v1.LocationOrganization.primary) } -inline void RobotPart::set_allocated_last_access(::google::protobuf::Timestamp* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.last_access_); - } - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000002u; - } else { - _impl_._has_bits_[0] &= ~0x00000002u; - } +// ------------------------------------------------------------------- - _impl_.last_access_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotPart.last_access) -} +// LocationAuth -// .google.protobuf.Struct user_supplied_info = 7 [json_name = "userSuppliedInfo", (.tagger.v1.tags) = "bson:\"user_supplied_info\" json:\"user_supplied_info\""]; -inline bool RobotPart::has_user_supplied_info() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || _impl_.user_supplied_info_ != nullptr); - return value; +// string secret = 1 [json_name = "secret", deprecated = true]; +inline void LocationAuth::clear_secret() { + secret_.ClearToEmpty(); +} +inline const std::string& LocationAuth::secret() const { + // @@protoc_insertion_point(field_get:viam.app.v1.LocationAuth.secret) + return _internal_secret(); } -inline const ::google::protobuf::Struct& RobotPart::_internal_user_supplied_info() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.user_supplied_info_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +template +inline PROTOBUF_ALWAYS_INLINE +void LocationAuth::set_secret(ArgT0&& arg0, ArgT... args) { + + secret_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.LocationAuth.secret) } -inline const ::google::protobuf::Struct& RobotPart::user_supplied_info() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.RobotPart.user_supplied_info) - return _internal_user_supplied_info(); +inline std::string* LocationAuth::mutable_secret() { + std::string* _s = _internal_mutable_secret(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.LocationAuth.secret) + return _s; } -inline void RobotPart::unsafe_arena_set_allocated_user_supplied_info(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.user_supplied_info_); - } - _impl_.user_supplied_info_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000004u; +inline const std::string& LocationAuth::_internal_secret() const { + return secret_.Get(); +} +inline void LocationAuth::_internal_set_secret(const std::string& value) { + + secret_.Set(value, GetArenaForAllocation()); +} +inline std::string* LocationAuth::_internal_mutable_secret() { + + return secret_.Mutable(GetArenaForAllocation()); +} +inline std::string* LocationAuth::release_secret() { + // @@protoc_insertion_point(field_release:viam.app.v1.LocationAuth.secret) + return secret_.Release(); +} +inline void LocationAuth::set_allocated_secret(std::string* secret) { + if (secret != nullptr) { + } else { - _impl_._has_bits_[0] &= ~0x00000004u; + } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.RobotPart.user_supplied_info) + secret_.SetAllocated(secret, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (secret_.IsDefault()) { + secret_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.LocationAuth.secret) } -inline ::google::protobuf::Struct* RobotPart::release_user_supplied_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] &= ~0x00000004u; - ::google::protobuf::Struct* released = _impl_.user_supplied_info_; - _impl_.user_supplied_info_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; +// string location_id = 2 [json_name = "locationId"]; +inline void LocationAuth::clear_location_id() { + location_id_.ClearToEmpty(); +} +inline const std::string& LocationAuth::location_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.LocationAuth.location_id) + return _internal_location_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void LocationAuth::set_location_id(ArgT0&& arg0, ArgT... args) { + + location_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.LocationAuth.location_id) +} +inline std::string* LocationAuth::mutable_location_id() { + std::string* _s = _internal_mutable_location_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.LocationAuth.location_id) + return _s; +} +inline const std::string& LocationAuth::_internal_location_id() const { + return location_id_.Get(); +} +inline void LocationAuth::_internal_set_location_id(const std::string& value) { + + location_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* LocationAuth::_internal_mutable_location_id() { + + return location_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* LocationAuth::release_location_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.LocationAuth.location_id) + return location_id_.Release(); +} +inline void LocationAuth::set_allocated_location_id(std::string* location_id) { + if (location_id != nullptr) { + + } else { + } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + location_id_.SetAllocated(location_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (location_id_.IsDefault()) { + location_id_.Set("", GetArenaForAllocation()); } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.LocationAuth.location_id) } -inline ::google::protobuf::Struct* RobotPart::unsafe_arena_release_user_supplied_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.RobotPart.user_supplied_info) - _impl_._has_bits_[0] &= ~0x00000004u; - ::google::protobuf::Struct* temp = _impl_.user_supplied_info_; - _impl_.user_supplied_info_ = nullptr; - return temp; +// repeated .viam.app.v1.SharedSecret secrets = 3 [json_name = "secrets"]; +inline int LocationAuth::_internal_secrets_size() const { + return secrets_.size(); } -inline ::google::protobuf::Struct* RobotPart::_internal_mutable_user_supplied_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - if (_impl_.user_supplied_info_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.user_supplied_info_ = reinterpret_cast<::google::protobuf::Struct*>(p); - } - return _impl_.user_supplied_info_; +inline int LocationAuth::secrets_size() const { + return _internal_secrets_size(); } -inline ::google::protobuf::Struct* RobotPart::mutable_user_supplied_info() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_user_supplied_info(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotPart.user_supplied_info) - return _msg; +inline void LocationAuth::clear_secrets() { + secrets_.Clear(); +} +inline ::viam::app::v1::SharedSecret* LocationAuth::mutable_secrets(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.LocationAuth.secrets) + return secrets_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::SharedSecret >* +LocationAuth::mutable_secrets() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.LocationAuth.secrets) + return &secrets_; +} +inline const ::viam::app::v1::SharedSecret& LocationAuth::_internal_secrets(int index) const { + return secrets_.Get(index); +} +inline const ::viam::app::v1::SharedSecret& LocationAuth::secrets(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.LocationAuth.secrets) + return _internal_secrets(index); +} +inline ::viam::app::v1::SharedSecret* LocationAuth::_internal_add_secrets() { + return secrets_.Add(); +} +inline ::viam::app::v1::SharedSecret* LocationAuth::add_secrets() { + ::viam::app::v1::SharedSecret* _add = _internal_add_secrets(); + // @@protoc_insertion_point(field_add:viam.app.v1.LocationAuth.secrets) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::SharedSecret >& +LocationAuth::secrets() const { + // @@protoc_insertion_point(field_list:viam.app.v1.LocationAuth.secrets) + return secrets_; } -inline void RobotPart::set_allocated_user_supplied_info(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.user_supplied_info_); - } - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000004u; +// ------------------------------------------------------------------- + +// StorageConfig + +// string region = 1 [json_name = "region"]; +inline void StorageConfig::clear_region() { + region_.ClearToEmpty(); +} +inline const std::string& StorageConfig::region() const { + // @@protoc_insertion_point(field_get:viam.app.v1.StorageConfig.region) + return _internal_region(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void StorageConfig::set_region(ArgT0&& arg0, ArgT... args) { + + region_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.StorageConfig.region) +} +inline std::string* StorageConfig::mutable_region() { + std::string* _s = _internal_mutable_region(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.StorageConfig.region) + return _s; +} +inline const std::string& StorageConfig::_internal_region() const { + return region_.Get(); +} +inline void StorageConfig::_internal_set_region(const std::string& value) { + + region_.Set(value, GetArenaForAllocation()); +} +inline std::string* StorageConfig::_internal_mutable_region() { + + return region_.Mutable(GetArenaForAllocation()); +} +inline std::string* StorageConfig::release_region() { + // @@protoc_insertion_point(field_release:viam.app.v1.StorageConfig.region) + return region_.Release(); +} +inline void StorageConfig::set_allocated_region(std::string* region) { + if (region != nullptr) { + } else { - _impl_._has_bits_[0] &= ~0x00000004u; + + } + region_.SetAllocated(region, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (region_.IsDefault()) { + region_.Set("", GetArenaForAllocation()); } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.StorageConfig.region) +} - _impl_.user_supplied_info_ = reinterpret_cast<::google::protobuf::Struct*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotPart.user_supplied_info) +// ------------------------------------------------------------------- + +// Location + +// string id = 1 [json_name = "id"]; +inline void Location::clear_id() { + id_.ClearToEmpty(); +} +inline const std::string& Location::id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Location.id) + return _internal_id(); } - -// bool main_part = 8 [json_name = "mainPart", (.tagger.v1.tags) = "bson:\"main_part\" json:\"main_part\""]; -inline void RobotPart::clear_main_part() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.main_part_ = false; +template +inline PROTOBUF_ALWAYS_INLINE +void Location::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.Location.id) } -inline bool RobotPart::main_part() const { - // @@protoc_insertion_point(field_get:viam.app.v1.RobotPart.main_part) - return _internal_main_part(); +inline std::string* Location::mutable_id() { + std::string* _s = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Location.id) + return _s; } -inline void RobotPart::set_main_part(bool value) { - _internal_set_main_part(value); - // @@protoc_insertion_point(field_set:viam.app.v1.RobotPart.main_part) +inline const std::string& Location::_internal_id() const { + return id_.Get(); } -inline bool RobotPart::_internal_main_part() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.main_part_; +inline void Location::_internal_set_id(const std::string& value) { + + id_.Set(value, GetArenaForAllocation()); } -inline void RobotPart::_internal_set_main_part(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.main_part_ = value; +inline std::string* Location::_internal_mutable_id() { + + return id_.Mutable(GetArenaForAllocation()); +} +inline std::string* Location::release_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.Location.id) + return id_.Release(); +} +inline void Location::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Location.id) } -// string fqdn = 9 [json_name = "fqdn"]; -inline void RobotPart::clear_fqdn() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.fqdn_.ClearToEmpty(); +// string name = 2 [json_name = "name"]; +inline void Location::clear_name() { + name_.ClearToEmpty(); } -inline const std::string& RobotPart::fqdn() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.RobotPart.fqdn) - return _internal_fqdn(); +inline const std::string& Location::name() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Location.name) + return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void RobotPart::set_fqdn(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.fqdn_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.RobotPart.fqdn) +template +inline PROTOBUF_ALWAYS_INLINE +void Location::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.Location.name) } -inline std::string* RobotPart::mutable_fqdn() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_fqdn(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotPart.fqdn) +inline std::string* Location::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Location.name) return _s; } -inline const std::string& RobotPart::_internal_fqdn() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.fqdn_.Get(); +inline const std::string& Location::_internal_name() const { + return name_.Get(); } -inline void RobotPart::_internal_set_fqdn(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.fqdn_.Set(value, GetArena()); +inline void Location::_internal_set_name(const std::string& value) { + + name_.Set(value, GetArenaForAllocation()); } -inline std::string* RobotPart::_internal_mutable_fqdn() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.fqdn_.Mutable( GetArena()); +inline std::string* Location::_internal_mutable_name() { + + return name_.Mutable(GetArenaForAllocation()); } -inline std::string* RobotPart::release_fqdn() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.RobotPart.fqdn) - return _impl_.fqdn_.Release(); -} -inline void RobotPart::set_allocated_fqdn(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.fqdn_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.fqdn_.IsDefault()) { - _impl_.fqdn_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotPart.fqdn) +inline std::string* Location::release_name() { + // @@protoc_insertion_point(field_release:viam.app.v1.Location.name) + return name_.Release(); +} +inline void Location::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.app.v1.Location.name) } -// string local_fqdn = 11 [json_name = "localFqdn"]; -inline void RobotPart::clear_local_fqdn() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.local_fqdn_.ClearToEmpty(); +// string parent_location_id = 4 [json_name = "parentLocationId"]; +inline void Location::clear_parent_location_id() { + parent_location_id_.ClearToEmpty(); } -inline const std::string& RobotPart::local_fqdn() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.RobotPart.local_fqdn) - return _internal_local_fqdn(); +inline const std::string& Location::parent_location_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Location.parent_location_id) + return _internal_parent_location_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void RobotPart::set_local_fqdn(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.local_fqdn_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.RobotPart.local_fqdn) +template +inline PROTOBUF_ALWAYS_INLINE +void Location::set_parent_location_id(ArgT0&& arg0, ArgT... args) { + + parent_location_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.Location.parent_location_id) } -inline std::string* RobotPart::mutable_local_fqdn() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_local_fqdn(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotPart.local_fqdn) +inline std::string* Location::mutable_parent_location_id() { + std::string* _s = _internal_mutable_parent_location_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Location.parent_location_id) return _s; } -inline const std::string& RobotPart::_internal_local_fqdn() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.local_fqdn_.Get(); +inline const std::string& Location::_internal_parent_location_id() const { + return parent_location_id_.Get(); } -inline void RobotPart::_internal_set_local_fqdn(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.local_fqdn_.Set(value, GetArena()); +inline void Location::_internal_set_parent_location_id(const std::string& value) { + + parent_location_id_.Set(value, GetArenaForAllocation()); } -inline std::string* RobotPart::_internal_mutable_local_fqdn() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.local_fqdn_.Mutable( GetArena()); +inline std::string* Location::_internal_mutable_parent_location_id() { + + return parent_location_id_.Mutable(GetArenaForAllocation()); } -inline std::string* RobotPart::release_local_fqdn() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.RobotPart.local_fqdn) - return _impl_.local_fqdn_.Release(); -} -inline void RobotPart::set_allocated_local_fqdn(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.local_fqdn_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.local_fqdn_.IsDefault()) { - _impl_.local_fqdn_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotPart.local_fqdn) +inline std::string* Location::release_parent_location_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.Location.parent_location_id) + return parent_location_id_.Release(); +} +inline void Location::set_allocated_parent_location_id(std::string* parent_location_id) { + if (parent_location_id != nullptr) { + + } else { + + } + parent_location_id_.SetAllocated(parent_location_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (parent_location_id_.IsDefault()) { + parent_location_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Location.parent_location_id) } -// .google.protobuf.Timestamp created_on = 13 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\""]; -inline bool RobotPart::has_created_on() const { - bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; - PROTOBUF_ASSUME(!value || _impl_.created_on_ != nullptr); - return value; +// .viam.app.v1.LocationAuth auth = 5 [json_name = "auth"]; +inline bool Location::_internal_has_auth() const { + return this != internal_default_instance() && auth_ != nullptr; } -inline const ::google::protobuf::Timestamp& RobotPart::_internal_created_on() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Timestamp* p = _impl_.created_on_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); +inline bool Location::has_auth() const { + return _internal_has_auth(); } -inline const ::google::protobuf::Timestamp& RobotPart::created_on() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.RobotPart.created_on) - return _internal_created_on(); +inline void Location::clear_auth() { + if (GetArenaForAllocation() == nullptr && auth_ != nullptr) { + delete auth_; + } + auth_ = nullptr; +} +inline const ::viam::app::v1::LocationAuth& Location::_internal_auth() const { + const ::viam::app::v1::LocationAuth* p = auth_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_LocationAuth_default_instance_); +} +inline const ::viam::app::v1::LocationAuth& Location::auth() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Location.auth) + return _internal_auth(); } -inline void RobotPart::unsafe_arena_set_allocated_created_on(::google::protobuf::Timestamp* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.created_on_); +inline void Location::unsafe_arena_set_allocated_auth( + ::viam::app::v1::LocationAuth* auth) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(auth_); } - _impl_.created_on_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000008u; + auth_ = auth; + if (auth) { + } else { - _impl_._has_bits_[0] &= ~0x00000008u; + } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.RobotPart.created_on) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.Location.auth) } -inline ::google::protobuf::Timestamp* RobotPart::release_created_on() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000008u; - ::google::protobuf::Timestamp* released = _impl_.created_on_; - _impl_.created_on_ = nullptr; +inline ::viam::app::v1::LocationAuth* Location::release_auth() { + + ::viam::app::v1::LocationAuth* temp = auth_; + auth_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Timestamp* RobotPart::unsafe_arena_release_created_on() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.RobotPart.created_on) - - _impl_._has_bits_[0] &= ~0x00000008u; - ::google::protobuf::Timestamp* temp = _impl_.created_on_; - _impl_.created_on_ = nullptr; +inline ::viam::app::v1::LocationAuth* Location::unsafe_arena_release_auth() { + // @@protoc_insertion_point(field_release:viam.app.v1.Location.auth) + + ::viam::app::v1::LocationAuth* temp = auth_; + auth_ = nullptr; return temp; } -inline ::google::protobuf::Timestamp* RobotPart::_internal_mutable_created_on() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000008u; - if (_impl_.created_on_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena()); - _impl_.created_on_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); +inline ::viam::app::v1::LocationAuth* Location::_internal_mutable_auth() { + + if (auth_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::LocationAuth>(GetArenaForAllocation()); + auth_ = p; } - return _impl_.created_on_; + return auth_; } -inline ::google::protobuf::Timestamp* RobotPart::mutable_created_on() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Timestamp* _msg = _internal_mutable_created_on(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotPart.created_on) +inline ::viam::app::v1::LocationAuth* Location::mutable_auth() { + ::viam::app::v1::LocationAuth* _msg = _internal_mutable_auth(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Location.auth) return _msg; } -inline void RobotPart::set_allocated_created_on(::google::protobuf::Timestamp* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Location::set_allocated_auth(::viam::app::v1::LocationAuth* auth) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.created_on_); + delete auth_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (auth) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(auth); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + auth = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, auth, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000008u; + } else { - _impl_._has_bits_[0] &= ~0x00000008u; + } - - _impl_.created_on_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotPart.created_on) + auth_ = auth; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Location.auth) } -// repeated .viam.app.v1.SharedSecret secrets = 14 [json_name = "secrets", (.tagger.v1.tags) = "bson:\"secrets\""]; -inline int RobotPart::_internal_secrets_size() const { - return _internal_secrets().size(); +// repeated .viam.app.v1.LocationOrganization organizations = 6 [json_name = "organizations"]; +inline int Location::_internal_organizations_size() const { + return organizations_.size(); } -inline int RobotPart::secrets_size() const { - return _internal_secrets_size(); +inline int Location::organizations_size() const { + return _internal_organizations_size(); } -inline void RobotPart::clear_secrets() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.secrets_.Clear(); +inline void Location::clear_organizations() { + organizations_.Clear(); } -inline ::viam::app::v1::SharedSecret* RobotPart::mutable_secrets(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotPart.secrets) - return _internal_mutable_secrets()->Mutable(index); +inline ::viam::app::v1::LocationOrganization* Location::mutable_organizations(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.Location.organizations) + return organizations_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::SharedSecret>* RobotPart::mutable_secrets() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.RobotPart.secrets) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_secrets(); +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::LocationOrganization >* +Location::mutable_organizations() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.Location.organizations) + return &organizations_; } -inline const ::viam::app::v1::SharedSecret& RobotPart::secrets(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.RobotPart.secrets) - return _internal_secrets().Get(index); +inline const ::viam::app::v1::LocationOrganization& Location::_internal_organizations(int index) const { + return organizations_.Get(index); } -inline ::viam::app::v1::SharedSecret* RobotPart::add_secrets() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::SharedSecret* _add = _internal_mutable_secrets()->Add(); - // @@protoc_insertion_point(field_add:viam.app.v1.RobotPart.secrets) - return _add; +inline const ::viam::app::v1::LocationOrganization& Location::organizations(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.Location.organizations) + return _internal_organizations(index); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::SharedSecret>& RobotPart::secrets() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:viam.app.v1.RobotPart.secrets) - return _internal_secrets(); +inline ::viam::app::v1::LocationOrganization* Location::_internal_add_organizations() { + return organizations_.Add(); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::SharedSecret>& -RobotPart::_internal_secrets() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.secrets_; +inline ::viam::app::v1::LocationOrganization* Location::add_organizations() { + ::viam::app::v1::LocationOrganization* _add = _internal_add_organizations(); + // @@protoc_insertion_point(field_add:viam.app.v1.Location.organizations) + return _add; } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::SharedSecret>* -RobotPart::_internal_mutable_secrets() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.secrets_; +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::LocationOrganization >& +Location::organizations() const { + // @@protoc_insertion_point(field_list:viam.app.v1.Location.organizations) + return organizations_; } -// .google.protobuf.Timestamp last_updated = 15 [json_name = "lastUpdated", (.tagger.v1.tags) = "bson:\"last_updated_at\""]; -inline bool RobotPart::has_last_updated() const { - bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; - PROTOBUF_ASSUME(!value || _impl_.last_updated_ != nullptr); - return value; +// .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn"]; +inline bool Location::_internal_has_created_on() const { + return this != internal_default_instance() && created_on_ != nullptr; } -inline const ::google::protobuf::Timestamp& RobotPart::_internal_last_updated() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Timestamp* p = _impl_.last_updated_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); +inline bool Location::has_created_on() const { + return _internal_has_created_on(); } -inline const ::google::protobuf::Timestamp& RobotPart::last_updated() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.RobotPart.last_updated) - return _internal_last_updated(); +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& Location::_internal_created_on() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = created_on_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& Location::created_on() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Location.created_on) + return _internal_created_on(); } -inline void RobotPart::unsafe_arena_set_allocated_last_updated(::google::protobuf::Timestamp* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.last_updated_); +inline void Location::unsafe_arena_set_allocated_created_on( + ::PROTOBUF_NAMESPACE_ID::Timestamp* created_on) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(created_on_); } - _impl_.last_updated_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000010u; + created_on_ = created_on; + if (created_on) { + } else { - _impl_._has_bits_[0] &= ~0x00000010u; + } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.RobotPart.last_updated) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.Location.created_on) } -inline ::google::protobuf::Timestamp* RobotPart::release_last_updated() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000010u; - ::google::protobuf::Timestamp* released = _impl_.last_updated_; - _impl_.last_updated_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Location::release_created_on() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = created_on_; + created_on_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Timestamp* RobotPart::unsafe_arena_release_last_updated() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.RobotPart.last_updated) - - _impl_._has_bits_[0] &= ~0x00000010u; - ::google::protobuf::Timestamp* temp = _impl_.last_updated_; - _impl_.last_updated_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Location::unsafe_arena_release_created_on() { + // @@protoc_insertion_point(field_release:viam.app.v1.Location.created_on) + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = created_on_; + created_on_ = nullptr; return temp; } -inline ::google::protobuf::Timestamp* RobotPart::_internal_mutable_last_updated() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000010u; - if (_impl_.last_updated_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena()); - _impl_.last_updated_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Location::_internal_mutable_created_on() { + + if (created_on_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + created_on_ = p; } - return _impl_.last_updated_; + return created_on_; } -inline ::google::protobuf::Timestamp* RobotPart::mutable_last_updated() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Timestamp* _msg = _internal_mutable_last_updated(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotPart.last_updated) +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Location::mutable_created_on() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_created_on(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Location.created_on) return _msg; } -inline void RobotPart::set_allocated_last_updated(::google::protobuf::Timestamp* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Location::set_allocated_created_on(::PROTOBUF_NAMESPACE_ID::Timestamp* created_on) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.last_updated_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(created_on_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (created_on) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(created_on)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + created_on = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, created_on, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000010u; + } else { - _impl_._has_bits_[0] &= ~0x00000010u; + } - - _impl_.last_updated_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotPart.last_updated) + created_on_ = created_on; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Location.created_on) } -// ------------------------------------------------------------------- - -// RobotPartHistoryEntry - -// string part = 1 [json_name = "part", (.tagger.v1.tags) = "bson:\"part\" json:\"part\""]; -inline void RobotPartHistoryEntry::clear_part() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.part_.ClearToEmpty(); -} -inline const std::string& RobotPartHistoryEntry::part() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.RobotPartHistoryEntry.part) - return _internal_part(); -} -template -inline PROTOBUF_ALWAYS_INLINE void RobotPartHistoryEntry::set_part(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.part_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.RobotPartHistoryEntry.part) -} -inline std::string* RobotPartHistoryEntry::mutable_part() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_part(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotPartHistoryEntry.part) - return _s; +// int32 robot_count = 7 [json_name = "robotCount"]; +inline void Location::clear_robot_count() { + robot_count_ = 0; } -inline const std::string& RobotPartHistoryEntry::_internal_part() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.part_.Get(); +inline int32_t Location::_internal_robot_count() const { + return robot_count_; } -inline void RobotPartHistoryEntry::_internal_set_part(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.part_.Set(value, GetArena()); +inline int32_t Location::robot_count() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Location.robot_count) + return _internal_robot_count(); } -inline std::string* RobotPartHistoryEntry::_internal_mutable_part() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.part_.Mutable( GetArena()); +inline void Location::_internal_set_robot_count(int32_t value) { + + robot_count_ = value; } -inline std::string* RobotPartHistoryEntry::release_part() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.RobotPartHistoryEntry.part) - return _impl_.part_.Release(); -} -inline void RobotPartHistoryEntry::set_allocated_part(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.part_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.part_.IsDefault()) { - _impl_.part_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotPartHistoryEntry.part) +inline void Location::set_robot_count(int32_t value) { + _internal_set_robot_count(value); + // @@protoc_insertion_point(field_set:viam.app.v1.Location.robot_count) } -// string robot = 2 [json_name = "robot", (.tagger.v1.tags) = "bson:\"robot\" json:\"robot\""]; -inline void RobotPartHistoryEntry::clear_robot() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.robot_.ClearToEmpty(); -} -inline const std::string& RobotPartHistoryEntry::robot() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.RobotPartHistoryEntry.robot) - return _internal_robot(); -} -template -inline PROTOBUF_ALWAYS_INLINE void RobotPartHistoryEntry::set_robot(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.robot_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.RobotPartHistoryEntry.robot) -} -inline std::string* RobotPartHistoryEntry::mutable_robot() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_robot(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotPartHistoryEntry.robot) - return _s; -} -inline const std::string& RobotPartHistoryEntry::_internal_robot() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.robot_.Get(); -} -inline void RobotPartHistoryEntry::_internal_set_robot(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.robot_.Set(value, GetArena()); -} -inline std::string* RobotPartHistoryEntry::_internal_mutable_robot() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.robot_.Mutable( GetArena()); +// .viam.app.v1.StorageConfig config = 8 [json_name = "config"]; +inline bool Location::_internal_has_config() const { + return this != internal_default_instance() && config_ != nullptr; } -inline std::string* RobotPartHistoryEntry::release_robot() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.RobotPartHistoryEntry.robot) - return _impl_.robot_.Release(); -} -inline void RobotPartHistoryEntry::set_allocated_robot(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.robot_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.robot_.IsDefault()) { - _impl_.robot_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotPartHistoryEntry.robot) +inline bool Location::has_config() const { + return _internal_has_config(); } - -// .google.protobuf.Timestamp when = 3 [json_name = "when", (.tagger.v1.tags) = "bson:\"when\" json:\"when\""]; -inline bool RobotPartHistoryEntry::has_when() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.when_ != nullptr); - return value; +inline void Location::clear_config() { + if (GetArenaForAllocation() == nullptr && config_ != nullptr) { + delete config_; + } + config_ = nullptr; } -inline const ::google::protobuf::Timestamp& RobotPartHistoryEntry::_internal_when() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Timestamp* p = _impl_.when_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); +inline const ::viam::app::v1::StorageConfig& Location::_internal_config() const { + const ::viam::app::v1::StorageConfig* p = config_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_StorageConfig_default_instance_); } -inline const ::google::protobuf::Timestamp& RobotPartHistoryEntry::when() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.RobotPartHistoryEntry.when) - return _internal_when(); +inline const ::viam::app::v1::StorageConfig& Location::config() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Location.config) + return _internal_config(); } -inline void RobotPartHistoryEntry::unsafe_arena_set_allocated_when(::google::protobuf::Timestamp* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.when_); +inline void Location::unsafe_arena_set_allocated_config( + ::viam::app::v1::StorageConfig* config) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(config_); } - _impl_.when_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + config_ = config; + if (config) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.RobotPartHistoryEntry.when) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.Location.config) } -inline ::google::protobuf::Timestamp* RobotPartHistoryEntry::release_when() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Timestamp* released = _impl_.when_; - _impl_.when_ = nullptr; +inline ::viam::app::v1::StorageConfig* Location::release_config() { + + ::viam::app::v1::StorageConfig* temp = config_; + config_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Timestamp* RobotPartHistoryEntry::unsafe_arena_release_when() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.RobotPartHistoryEntry.when) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Timestamp* temp = _impl_.when_; - _impl_.when_ = nullptr; +inline ::viam::app::v1::StorageConfig* Location::unsafe_arena_release_config() { + // @@protoc_insertion_point(field_release:viam.app.v1.Location.config) + + ::viam::app::v1::StorageConfig* temp = config_; + config_ = nullptr; return temp; } -inline ::google::protobuf::Timestamp* RobotPartHistoryEntry::_internal_mutable_when() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.when_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena()); - _impl_.when_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); +inline ::viam::app::v1::StorageConfig* Location::_internal_mutable_config() { + + if (config_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::StorageConfig>(GetArenaForAllocation()); + config_ = p; } - return _impl_.when_; + return config_; } -inline ::google::protobuf::Timestamp* RobotPartHistoryEntry::mutable_when() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Timestamp* _msg = _internal_mutable_when(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotPartHistoryEntry.when) +inline ::viam::app::v1::StorageConfig* Location::mutable_config() { + ::viam::app::v1::StorageConfig* _msg = _internal_mutable_config(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Location.config) return _msg; } -inline void RobotPartHistoryEntry::set_allocated_when(::google::protobuf::Timestamp* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Location::set_allocated_config(::viam::app::v1::StorageConfig* config) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.when_); + delete config_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (config) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(config); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + config = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, config, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.when_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotPartHistoryEntry.when) + config_ = config; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Location.config) } -// .viam.app.v1.RobotPart old = 4 [json_name = "old", (.tagger.v1.tags) = "bson:\"old\" json:\"old\""]; -inline bool RobotPartHistoryEntry::has_old() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.old_ != nullptr); - return value; +// ------------------------------------------------------------------- + +// SharedSecret + +// string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"id\""]; +inline void SharedSecret::clear_id() { + id_.ClearToEmpty(); } -inline void RobotPartHistoryEntry::clear_old() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.old_ != nullptr) _impl_.old_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; +inline const std::string& SharedSecret::id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.SharedSecret.id) + return _internal_id(); } -inline const ::viam::app::v1::RobotPart& RobotPartHistoryEntry::_internal_old() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::RobotPart* p = _impl_.old_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_RobotPart_default_instance_); +template +inline PROTOBUF_ALWAYS_INLINE +void SharedSecret::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.SharedSecret.id) } -inline const ::viam::app::v1::RobotPart& RobotPartHistoryEntry::old() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.RobotPartHistoryEntry.old) - return _internal_old(); +inline std::string* SharedSecret::mutable_id() { + std::string* _s = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.SharedSecret.id) + return _s; } -inline void RobotPartHistoryEntry::unsafe_arena_set_allocated_old(::viam::app::v1::RobotPart* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.old_); - } - _impl_.old_ = reinterpret_cast<::viam::app::v1::RobotPart*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; - } else { - _impl_._has_bits_[0] &= ~0x00000002u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.RobotPartHistoryEntry.old) +inline const std::string& SharedSecret::_internal_id() const { + return id_.Get(); } -inline ::viam::app::v1::RobotPart* RobotPartHistoryEntry::release_old() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::viam::app::v1::RobotPart* released = _impl_.old_; - _impl_.old_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; +inline void SharedSecret::_internal_set_id(const std::string& value) { + + id_.Set(value, GetArenaForAllocation()); +} +inline std::string* SharedSecret::_internal_mutable_id() { + + return id_.Mutable(GetArenaForAllocation()); +} +inline std::string* SharedSecret::release_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.SharedSecret.id) + return id_.Release(); +} +inline void SharedSecret::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.SharedSecret.id) } -inline ::viam::app::v1::RobotPart* RobotPartHistoryEntry::unsafe_arena_release_old() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.RobotPartHistoryEntry.old) - _impl_._has_bits_[0] &= ~0x00000002u; - ::viam::app::v1::RobotPart* temp = _impl_.old_; - _impl_.old_ = nullptr; - return temp; +// string secret = 2 [json_name = "secret", (.tagger.v1.tags) = "bson:\"secret\""]; +inline void SharedSecret::clear_secret() { + secret_.ClearToEmpty(); } -inline ::viam::app::v1::RobotPart* RobotPartHistoryEntry::_internal_mutable_old() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.old_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::RobotPart>(GetArena()); - _impl_.old_ = reinterpret_cast<::viam::app::v1::RobotPart*>(p); - } - return _impl_.old_; +inline const std::string& SharedSecret::secret() const { + // @@protoc_insertion_point(field_get:viam.app.v1.SharedSecret.secret) + return _internal_secret(); } -inline ::viam::app::v1::RobotPart* RobotPartHistoryEntry::mutable_old() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::viam::app::v1::RobotPart* _msg = _internal_mutable_old(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotPartHistoryEntry.old) - return _msg; +template +inline PROTOBUF_ALWAYS_INLINE +void SharedSecret::set_secret(ArgT0&& arg0, ArgT... args) { + + secret_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.SharedSecret.secret) } -inline void RobotPartHistoryEntry::set_allocated_old(::viam::app::v1::RobotPart* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::RobotPart*>(_impl_.old_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::RobotPart*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000002u; +inline std::string* SharedSecret::mutable_secret() { + std::string* _s = _internal_mutable_secret(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.SharedSecret.secret) + return _s; +} +inline const std::string& SharedSecret::_internal_secret() const { + return secret_.Get(); +} +inline void SharedSecret::_internal_set_secret(const std::string& value) { + + secret_.Set(value, GetArenaForAllocation()); +} +inline std::string* SharedSecret::_internal_mutable_secret() { + + return secret_.Mutable(GetArenaForAllocation()); +} +inline std::string* SharedSecret::release_secret() { + // @@protoc_insertion_point(field_release:viam.app.v1.SharedSecret.secret) + return secret_.Release(); +} +inline void SharedSecret::set_allocated_secret(std::string* secret) { + if (secret != nullptr) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.old_ = reinterpret_cast<::viam::app::v1::RobotPart*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotPartHistoryEntry.old) + secret_.SetAllocated(secret, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (secret_.IsDefault()) { + secret_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.SharedSecret.secret) } -// .viam.app.v1.AuthenticatorInfo edited_by = 5 [json_name = "editedBy", (.tagger.v1.tags) = "bson:\"edited_by\" json:\"edited_by\""]; -inline bool RobotPartHistoryEntry::has_edited_by() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || _impl_.edited_by_ != nullptr); - return value; +// .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\" json:\"created_on\""]; +inline bool SharedSecret::_internal_has_created_on() const { + return this != internal_default_instance() && created_on_ != nullptr; } -inline void RobotPartHistoryEntry::clear_edited_by() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.edited_by_ != nullptr) _impl_.edited_by_->Clear(); - _impl_._has_bits_[0] &= ~0x00000004u; +inline bool SharedSecret::has_created_on() const { + return _internal_has_created_on(); } -inline const ::viam::app::v1::AuthenticatorInfo& RobotPartHistoryEntry::_internal_edited_by() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::AuthenticatorInfo* p = _impl_.edited_by_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_AuthenticatorInfo_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& SharedSecret::_internal_created_on() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = created_on_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); } -inline const ::viam::app::v1::AuthenticatorInfo& RobotPartHistoryEntry::edited_by() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.RobotPartHistoryEntry.edited_by) - return _internal_edited_by(); +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& SharedSecret::created_on() const { + // @@protoc_insertion_point(field_get:viam.app.v1.SharedSecret.created_on) + return _internal_created_on(); } -inline void RobotPartHistoryEntry::unsafe_arena_set_allocated_edited_by(::viam::app::v1::AuthenticatorInfo* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.edited_by_); +inline void SharedSecret::unsafe_arena_set_allocated_created_on( + ::PROTOBUF_NAMESPACE_ID::Timestamp* created_on) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(created_on_); } - _impl_.edited_by_ = reinterpret_cast<::viam::app::v1::AuthenticatorInfo*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000004u; + created_on_ = created_on; + if (created_on) { + } else { - _impl_._has_bits_[0] &= ~0x00000004u; + } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.RobotPartHistoryEntry.edited_by) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.SharedSecret.created_on) } -inline ::viam::app::v1::AuthenticatorInfo* RobotPartHistoryEntry::release_edited_by() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000004u; - ::viam::app::v1::AuthenticatorInfo* released = _impl_.edited_by_; - _impl_.edited_by_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* SharedSecret::release_created_on() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = created_on_; + created_on_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::viam::app::v1::AuthenticatorInfo* RobotPartHistoryEntry::unsafe_arena_release_edited_by() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.RobotPartHistoryEntry.edited_by) - - _impl_._has_bits_[0] &= ~0x00000004u; - ::viam::app::v1::AuthenticatorInfo* temp = _impl_.edited_by_; - _impl_.edited_by_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* SharedSecret::unsafe_arena_release_created_on() { + // @@protoc_insertion_point(field_release:viam.app.v1.SharedSecret.created_on) + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = created_on_; + created_on_ = nullptr; return temp; } -inline ::viam::app::v1::AuthenticatorInfo* RobotPartHistoryEntry::_internal_mutable_edited_by() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - if (_impl_.edited_by_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::AuthenticatorInfo>(GetArena()); - _impl_.edited_by_ = reinterpret_cast<::viam::app::v1::AuthenticatorInfo*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* SharedSecret::_internal_mutable_created_on() { + + if (created_on_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + created_on_ = p; } - return _impl_.edited_by_; + return created_on_; } -inline ::viam::app::v1::AuthenticatorInfo* RobotPartHistoryEntry::mutable_edited_by() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::viam::app::v1::AuthenticatorInfo* _msg = _internal_mutable_edited_by(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotPartHistoryEntry.edited_by) +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* SharedSecret::mutable_created_on() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_created_on(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.SharedSecret.created_on) return _msg; } -inline void RobotPartHistoryEntry::set_allocated_edited_by(::viam::app::v1::AuthenticatorInfo* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void SharedSecret::set_allocated_created_on(::PROTOBUF_NAMESPACE_ID::Timestamp* created_on) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::AuthenticatorInfo*>(_impl_.edited_by_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(created_on_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::AuthenticatorInfo*>(value)->GetArena(); + if (created_on) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(created_on)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + created_on = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, created_on, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000004u; + } else { - _impl_._has_bits_[0] &= ~0x00000004u; + } - - _impl_.edited_by_ = reinterpret_cast<::viam::app::v1::AuthenticatorInfo*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotPartHistoryEntry.edited_by) + created_on_ = created_on; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.SharedSecret.created_on) } -// ------------------------------------------------------------------- - -// AuthenticatorInfo - -// .viam.app.v1.AuthenticationType type = 1 [json_name = "type"]; -inline void AuthenticatorInfo::clear_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_ = 0; +// .viam.app.v1.SharedSecret.State state = 4 [json_name = "state", (.tagger.v1.tags) = "bson:\"state\""]; +inline void SharedSecret::clear_state() { + state_ = 0; } -inline ::viam::app::v1::AuthenticationType AuthenticatorInfo::type() const { - // @@protoc_insertion_point(field_get:viam.app.v1.AuthenticatorInfo.type) - return _internal_type(); +inline ::viam::app::v1::SharedSecret_State SharedSecret::_internal_state() const { + return static_cast< ::viam::app::v1::SharedSecret_State >(state_); } -inline void AuthenticatorInfo::set_type(::viam::app::v1::AuthenticationType value) { - _internal_set_type(value); - // @@protoc_insertion_point(field_set:viam.app.v1.AuthenticatorInfo.type) +inline ::viam::app::v1::SharedSecret_State SharedSecret::state() const { + // @@protoc_insertion_point(field_get:viam.app.v1.SharedSecret.state) + return _internal_state(); } -inline ::viam::app::v1::AuthenticationType AuthenticatorInfo::_internal_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::viam::app::v1::AuthenticationType>(_impl_.type_); +inline void SharedSecret::_internal_set_state(::viam::app::v1::SharedSecret_State value) { + + state_ = value; } -inline void AuthenticatorInfo::_internal_set_type(::viam::app::v1::AuthenticationType value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.type_ = value; +inline void SharedSecret::set_state(::viam::app::v1::SharedSecret_State value) { + _internal_set_state(value); + // @@protoc_insertion_point(field_set:viam.app.v1.SharedSecret.state) } -// string value = 2 [json_name = "value"]; -inline void AuthenticatorInfo::clear_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.value_.ClearToEmpty(); +// ------------------------------------------------------------------- + +// CreateLocationRequest + +// string organization_id = 1 [json_name = "organizationId"]; +inline void CreateLocationRequest::clear_organization_id() { + organization_id_.ClearToEmpty(); } -inline const std::string& AuthenticatorInfo::value() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.AuthenticatorInfo.value) - return _internal_value(); +inline const std::string& CreateLocationRequest::organization_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.CreateLocationRequest.organization_id) + return _internal_organization_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void AuthenticatorInfo::set_value(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.value_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.AuthenticatorInfo.value) +template +inline PROTOBUF_ALWAYS_INLINE +void CreateLocationRequest::set_organization_id(ArgT0&& arg0, ArgT... args) { + + organization_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.CreateLocationRequest.organization_id) } -inline std::string* AuthenticatorInfo::mutable_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_value(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.AuthenticatorInfo.value) +inline std::string* CreateLocationRequest::mutable_organization_id() { + std::string* _s = _internal_mutable_organization_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateLocationRequest.organization_id) return _s; } -inline const std::string& AuthenticatorInfo::_internal_value() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.value_.Get(); +inline const std::string& CreateLocationRequest::_internal_organization_id() const { + return organization_id_.Get(); } -inline void AuthenticatorInfo::_internal_set_value(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.value_.Set(value, GetArena()); +inline void CreateLocationRequest::_internal_set_organization_id(const std::string& value) { + + organization_id_.Set(value, GetArenaForAllocation()); } -inline std::string* AuthenticatorInfo::_internal_mutable_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.value_.Mutable( GetArena()); +inline std::string* CreateLocationRequest::_internal_mutable_organization_id() { + + return organization_id_.Mutable(GetArenaForAllocation()); } -inline std::string* AuthenticatorInfo::release_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.AuthenticatorInfo.value) - return _impl_.value_.Release(); +inline std::string* CreateLocationRequest::release_organization_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.CreateLocationRequest.organization_id) + return organization_id_.Release(); } -inline void AuthenticatorInfo::set_allocated_value(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.value_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.value_.IsDefault()) { - _impl_.value_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.AuthenticatorInfo.value) +inline void CreateLocationRequest::set_allocated_organization_id(std::string* organization_id) { + if (organization_id != nullptr) { + + } else { + + } + organization_id_.SetAllocated(organization_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (organization_id_.IsDefault()) { + organization_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateLocationRequest.organization_id) } -// bool is_deactivated = 3 [json_name = "isDeactivated"]; -inline void AuthenticatorInfo::clear_is_deactivated() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.is_deactivated_ = false; -} -inline bool AuthenticatorInfo::is_deactivated() const { - // @@protoc_insertion_point(field_get:viam.app.v1.AuthenticatorInfo.is_deactivated) - return _internal_is_deactivated(); -} -inline void AuthenticatorInfo::set_is_deactivated(bool value) { - _internal_set_is_deactivated(value); - // @@protoc_insertion_point(field_set:viam.app.v1.AuthenticatorInfo.is_deactivated) +// string name = 2 [json_name = "name"]; +inline void CreateLocationRequest::clear_name() { + name_.ClearToEmpty(); } -inline bool AuthenticatorInfo::_internal_is_deactivated() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.is_deactivated_; +inline const std::string& CreateLocationRequest::name() const { + // @@protoc_insertion_point(field_get:viam.app.v1.CreateLocationRequest.name) + return _internal_name(); } -inline void AuthenticatorInfo::_internal_set_is_deactivated(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.is_deactivated_ = value; +template +inline PROTOBUF_ALWAYS_INLINE +void CreateLocationRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.CreateLocationRequest.name) } - -// ------------------------------------------------------------------- - -// ListOrganizationsRequest - -// ------------------------------------------------------------------- - -// Organization - -// string id = 1 [json_name = "id"]; -inline void Organization::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); +inline std::string* CreateLocationRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateLocationRequest.name) + return _s; } -inline const std::string& Organization::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.Organization.id) - return _internal_id(); +inline const std::string& CreateLocationRequest::_internal_name() const { + return name_.Get(); } -template -inline PROTOBUF_ALWAYS_INLINE void Organization::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.Organization.id) +inline void CreateLocationRequest::_internal_set_name(const std::string& value) { + + name_.Set(value, GetArenaForAllocation()); } -inline std::string* Organization::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.Organization.id) - return _s; +inline std::string* CreateLocationRequest::_internal_mutable_name() { + + return name_.Mutable(GetArenaForAllocation()); } -inline const std::string& Organization::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); +inline std::string* CreateLocationRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.app.v1.CreateLocationRequest.name) + return name_.Release(); } -inline void Organization::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); +inline void CreateLocationRequest::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.app.v1.CreateLocationRequest.name) } -inline std::string* Organization::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); + +// optional string parent_location_id = 3 [json_name = "parentLocationId"]; +inline bool CreateLocationRequest::_internal_has_parent_location_id() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; } -inline std::string* Organization::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.Organization.id) - return _impl_.id_.Release(); -} -inline void Organization::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Organization.id) +inline bool CreateLocationRequest::has_parent_location_id() const { + return _internal_has_parent_location_id(); } - -// string name = 2 [json_name = "name"]; -inline void Organization::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); +inline void CreateLocationRequest::clear_parent_location_id() { + parent_location_id_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; } -inline const std::string& Organization::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.Organization.name) - return _internal_name(); +inline const std::string& CreateLocationRequest::parent_location_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.CreateLocationRequest.parent_location_id) + return _internal_parent_location_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void Organization::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.Organization.name) +template +inline PROTOBUF_ALWAYS_INLINE +void CreateLocationRequest::set_parent_location_id(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + parent_location_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.CreateLocationRequest.parent_location_id) } -inline std::string* Organization::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.Organization.name) +inline std::string* CreateLocationRequest::mutable_parent_location_id() { + std::string* _s = _internal_mutable_parent_location_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateLocationRequest.parent_location_id) return _s; } -inline const std::string& Organization::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); +inline const std::string& CreateLocationRequest::_internal_parent_location_id() const { + return parent_location_id_.Get(); } -inline void Organization::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); +inline void CreateLocationRequest::_internal_set_parent_location_id(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + parent_location_id_.Set(value, GetArenaForAllocation()); } -inline std::string* Organization::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); +inline std::string* CreateLocationRequest::_internal_mutable_parent_location_id() { + _has_bits_[0] |= 0x00000001u; + return parent_location_id_.Mutable(GetArenaForAllocation()); } -inline std::string* Organization::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.Organization.name) - return _impl_.name_.Release(); -} -inline void Organization::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Organization.name) +inline std::string* CreateLocationRequest::release_parent_location_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.CreateLocationRequest.parent_location_id) + if (!_internal_has_parent_location_id()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + auto* p = parent_location_id_.Release(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (parent_location_id_.IsDefault()) { + parent_location_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; +} +inline void CreateLocationRequest::set_allocated_parent_location_id(std::string* parent_location_id) { + if (parent_location_id != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + parent_location_id_.SetAllocated(parent_location_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (parent_location_id_.IsDefault()) { + parent_location_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateLocationRequest.parent_location_id) } -// .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn"]; -inline bool Organization::has_created_on() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.created_on_ != nullptr); - return value; +// ------------------------------------------------------------------- + +// CreateLocationResponse + +// .viam.app.v1.Location location = 1 [json_name = "location"]; +inline bool CreateLocationResponse::_internal_has_location() const { + return this != internal_default_instance() && location_ != nullptr; +} +inline bool CreateLocationResponse::has_location() const { + return _internal_has_location(); +} +inline void CreateLocationResponse::clear_location() { + if (GetArenaForAllocation() == nullptr && location_ != nullptr) { + delete location_; + } + location_ = nullptr; } -inline const ::google::protobuf::Timestamp& Organization::_internal_created_on() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Timestamp* p = _impl_.created_on_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); +inline const ::viam::app::v1::Location& CreateLocationResponse::_internal_location() const { + const ::viam::app::v1::Location* p = location_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_Location_default_instance_); } -inline const ::google::protobuf::Timestamp& Organization::created_on() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.Organization.created_on) - return _internal_created_on(); +inline const ::viam::app::v1::Location& CreateLocationResponse::location() const { + // @@protoc_insertion_point(field_get:viam.app.v1.CreateLocationResponse.location) + return _internal_location(); } -inline void Organization::unsafe_arena_set_allocated_created_on(::google::protobuf::Timestamp* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.created_on_); +inline void CreateLocationResponse::unsafe_arena_set_allocated_location( + ::viam::app::v1::Location* location) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(location_); } - _impl_.created_on_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + location_ = location; + if (location) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.Organization.created_on) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.CreateLocationResponse.location) } -inline ::google::protobuf::Timestamp* Organization::release_created_on() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Timestamp* released = _impl_.created_on_; - _impl_.created_on_ = nullptr; +inline ::viam::app::v1::Location* CreateLocationResponse::release_location() { + + ::viam::app::v1::Location* temp = location_; + location_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Timestamp* Organization::unsafe_arena_release_created_on() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.Organization.created_on) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Timestamp* temp = _impl_.created_on_; - _impl_.created_on_ = nullptr; +inline ::viam::app::v1::Location* CreateLocationResponse::unsafe_arena_release_location() { + // @@protoc_insertion_point(field_release:viam.app.v1.CreateLocationResponse.location) + + ::viam::app::v1::Location* temp = location_; + location_ = nullptr; return temp; } -inline ::google::protobuf::Timestamp* Organization::_internal_mutable_created_on() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.created_on_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena()); - _impl_.created_on_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); +inline ::viam::app::v1::Location* CreateLocationResponse::_internal_mutable_location() { + + if (location_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::Location>(GetArenaForAllocation()); + location_ = p; } - return _impl_.created_on_; + return location_; } -inline ::google::protobuf::Timestamp* Organization::mutable_created_on() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Timestamp* _msg = _internal_mutable_created_on(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.Organization.created_on) +inline ::viam::app::v1::Location* CreateLocationResponse::mutable_location() { + ::viam::app::v1::Location* _msg = _internal_mutable_location(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateLocationResponse.location) return _msg; } -inline void Organization::set_allocated_created_on(::google::protobuf::Timestamp* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void CreateLocationResponse::set_allocated_location(::viam::app::v1::Location* location) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.created_on_); + delete location_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (location) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(location); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + location = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, location, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.created_on_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Organization.created_on) + location_ = location; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateLocationResponse.location) } -// string public_namespace = 4 [json_name = "publicNamespace"]; -inline void Organization::clear_public_namespace() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.public_namespace_.ClearToEmpty(); +// ------------------------------------------------------------------- + +// GetLocationRequest + +// string location_id = 1 [json_name = "locationId"]; +inline void GetLocationRequest::clear_location_id() { + location_id_.ClearToEmpty(); } -inline const std::string& Organization::public_namespace() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.Organization.public_namespace) - return _internal_public_namespace(); +inline const std::string& GetLocationRequest::location_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetLocationRequest.location_id) + return _internal_location_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void Organization::set_public_namespace(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.public_namespace_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.Organization.public_namespace) +template +inline PROTOBUF_ALWAYS_INLINE +void GetLocationRequest::set_location_id(ArgT0&& arg0, ArgT... args) { + + location_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.GetLocationRequest.location_id) } -inline std::string* Organization::mutable_public_namespace() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_public_namespace(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.Organization.public_namespace) +inline std::string* GetLocationRequest::mutable_location_id() { + std::string* _s = _internal_mutable_location_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetLocationRequest.location_id) return _s; } -inline const std::string& Organization::_internal_public_namespace() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.public_namespace_.Get(); +inline const std::string& GetLocationRequest::_internal_location_id() const { + return location_id_.Get(); } -inline void Organization::_internal_set_public_namespace(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.public_namespace_.Set(value, GetArena()); +inline void GetLocationRequest::_internal_set_location_id(const std::string& value) { + + location_id_.Set(value, GetArenaForAllocation()); } -inline std::string* Organization::_internal_mutable_public_namespace() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.public_namespace_.Mutable( GetArena()); +inline std::string* GetLocationRequest::_internal_mutable_location_id() { + + return location_id_.Mutable(GetArenaForAllocation()); } -inline std::string* Organization::release_public_namespace() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.Organization.public_namespace) - return _impl_.public_namespace_.Release(); -} -inline void Organization::set_allocated_public_namespace(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.public_namespace_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.public_namespace_.IsDefault()) { - _impl_.public_namespace_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Organization.public_namespace) +inline std::string* GetLocationRequest::release_location_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.GetLocationRequest.location_id) + return location_id_.Release(); +} +inline void GetLocationRequest::set_allocated_location_id(std::string* location_id) { + if (location_id != nullptr) { + + } else { + + } + location_id_.SetAllocated(location_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (location_id_.IsDefault()) { + location_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetLocationRequest.location_id) } -// string default_region = 5 [json_name = "defaultRegion"]; -inline void Organization::clear_default_region() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.default_region_.ClearToEmpty(); +// ------------------------------------------------------------------- + +// GetLocationResponse + +// .viam.app.v1.Location location = 1 [json_name = "location"]; +inline bool GetLocationResponse::_internal_has_location() const { + return this != internal_default_instance() && location_ != nullptr; } -inline const std::string& Organization::default_region() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.Organization.default_region) - return _internal_default_region(); +inline bool GetLocationResponse::has_location() const { + return _internal_has_location(); } -template -inline PROTOBUF_ALWAYS_INLINE void Organization::set_default_region(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.default_region_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.Organization.default_region) +inline void GetLocationResponse::clear_location() { + if (GetArenaForAllocation() == nullptr && location_ != nullptr) { + delete location_; + } + location_ = nullptr; } -inline std::string* Organization::mutable_default_region() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_default_region(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.Organization.default_region) - return _s; +inline const ::viam::app::v1::Location& GetLocationResponse::_internal_location() const { + const ::viam::app::v1::Location* p = location_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_Location_default_instance_); } -inline const std::string& Organization::_internal_default_region() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.default_region_.Get(); +inline const ::viam::app::v1::Location& GetLocationResponse::location() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetLocationResponse.location) + return _internal_location(); } -inline void Organization::_internal_set_default_region(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.default_region_.Set(value, GetArena()); +inline void GetLocationResponse::unsafe_arena_set_allocated_location( + ::viam::app::v1::Location* location) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(location_); + } + location_ = location; + if (location) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.GetLocationResponse.location) } -inline std::string* Organization::_internal_mutable_default_region() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.default_region_.Mutable( GetArena()); +inline ::viam::app::v1::Location* GetLocationResponse::release_location() { + + ::viam::app::v1::Location* temp = location_; + location_ = 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 std::string* Organization::release_default_region() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.Organization.default_region) - return _impl_.default_region_.Release(); -} -inline void Organization::set_allocated_default_region(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.default_region_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.default_region_.IsDefault()) { - _impl_.default_region_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Organization.default_region) +inline ::viam::app::v1::Location* GetLocationResponse::unsafe_arena_release_location() { + // @@protoc_insertion_point(field_release:viam.app.v1.GetLocationResponse.location) + + ::viam::app::v1::Location* temp = location_; + location_ = nullptr; + return temp; } - -// optional string cid = 6 [json_name = "cid"]; -inline bool Organization::has_cid() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - return value; +inline ::viam::app::v1::Location* GetLocationResponse::_internal_mutable_location() { + + if (location_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::Location>(GetArenaForAllocation()); + location_ = p; + } + return location_; } -inline void Organization::clear_cid() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.cid_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000001u; +inline ::viam::app::v1::Location* GetLocationResponse::mutable_location() { + ::viam::app::v1::Location* _msg = _internal_mutable_location(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetLocationResponse.location) + return _msg; } -inline const std::string& Organization::cid() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.Organization.cid) - return _internal_cid(); +inline void GetLocationResponse::set_allocated_location(::viam::app::v1::Location* location) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete location_; + } + if (location) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(location); + if (message_arena != submessage_arena) { + location = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, location, submessage_arena); + } + + } else { + + } + location_ = location; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetLocationResponse.location) } -template -inline PROTOBUF_ALWAYS_INLINE void Organization::set_cid(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.cid_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.Organization.cid) + +// ------------------------------------------------------------------- + +// UpdateLocationRequest + +// string location_id = 1 [json_name = "locationId"]; +inline void UpdateLocationRequest::clear_location_id() { + location_id_.ClearToEmpty(); } -inline std::string* Organization::mutable_cid() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_cid(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.Organization.cid) +inline const std::string& UpdateLocationRequest::location_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateLocationRequest.location_id) + return _internal_location_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void UpdateLocationRequest::set_location_id(ArgT0&& arg0, ArgT... args) { + + location_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateLocationRequest.location_id) +} +inline std::string* UpdateLocationRequest::mutable_location_id() { + std::string* _s = _internal_mutable_location_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateLocationRequest.location_id) return _s; } -inline const std::string& Organization::_internal_cid() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.cid_.Get(); +inline const std::string& UpdateLocationRequest::_internal_location_id() const { + return location_id_.Get(); } -inline void Organization::_internal_set_cid(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.cid_.Set(value, GetArena()); +inline void UpdateLocationRequest::_internal_set_location_id(const std::string& value) { + + location_id_.Set(value, GetArenaForAllocation()); } -inline std::string* Organization::_internal_mutable_cid() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.cid_.Mutable( GetArena()); +inline std::string* UpdateLocationRequest::_internal_mutable_location_id() { + + return location_id_.Mutable(GetArenaForAllocation()); } -inline std::string* Organization::release_cid() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.Organization.cid) - if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { - return nullptr; - } - _impl_._has_bits_[0] &= ~0x00000001u; - auto* released = _impl_.cid_.Release(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.cid_.Set("", GetArena()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return released; +inline std::string* UpdateLocationRequest::release_location_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateLocationRequest.location_id) + return location_id_.Release(); } -inline void Organization::set_allocated_cid(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; +inline void UpdateLocationRequest::set_allocated_location_id(std::string* location_id) { + if (location_id != nullptr) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - _impl_.cid_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.cid_.IsDefault()) { - _impl_.cid_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Organization.cid) + location_id_.SetAllocated(location_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (location_id_.IsDefault()) { + location_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateLocationRequest.location_id) } -// ------------------------------------------------------------------- - -// OrganizationMember - -// string user_id = 1 [json_name = "userId"]; -inline void OrganizationMember::clear_user_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.user_id_.ClearToEmpty(); +// optional string name = 2 [json_name = "name"]; +inline bool UpdateLocationRequest::_internal_has_name() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; } -inline const std::string& OrganizationMember::user_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.OrganizationMember.user_id) - return _internal_user_id(); +inline bool UpdateLocationRequest::has_name() const { + return _internal_has_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void OrganizationMember::set_user_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.user_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.OrganizationMember.user_id) +inline void UpdateLocationRequest::clear_name() { + name_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; } -inline std::string* OrganizationMember::mutable_user_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_user_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.OrganizationMember.user_id) +inline const std::string& UpdateLocationRequest::name() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateLocationRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void UpdateLocationRequest::set_name(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateLocationRequest.name) +} +inline std::string* UpdateLocationRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateLocationRequest.name) return _s; } -inline const std::string& OrganizationMember::_internal_user_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.user_id_.Get(); +inline const std::string& UpdateLocationRequest::_internal_name() const { + return name_.Get(); } -inline void OrganizationMember::_internal_set_user_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.user_id_.Set(value, GetArena()); +inline void UpdateLocationRequest::_internal_set_name(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + name_.Set(value, GetArenaForAllocation()); } -inline std::string* OrganizationMember::_internal_mutable_user_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.user_id_.Mutable( GetArena()); +inline std::string* UpdateLocationRequest::_internal_mutable_name() { + _has_bits_[0] |= 0x00000001u; + return name_.Mutable(GetArenaForAllocation()); } -inline std::string* OrganizationMember::release_user_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.OrganizationMember.user_id) - return _impl_.user_id_.Release(); -} -inline void OrganizationMember::set_allocated_user_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.user_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.user_id_.IsDefault()) { - _impl_.user_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.OrganizationMember.user_id) +inline std::string* UpdateLocationRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateLocationRequest.name) + if (!_internal_has_name()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + auto* p = name_.Release(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (name_.IsDefault()) { + name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; +} +inline void UpdateLocationRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + 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.app.v1.UpdateLocationRequest.name) } -// repeated string emails = 2 [json_name = "emails"]; -inline int OrganizationMember::_internal_emails_size() const { - return _internal_emails().size(); +// optional string parent_location_id = 3 [json_name = "parentLocationId"]; +inline bool UpdateLocationRequest::_internal_has_parent_location_id() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; } -inline int OrganizationMember::emails_size() const { - return _internal_emails_size(); +inline bool UpdateLocationRequest::has_parent_location_id() const { + return _internal_has_parent_location_id(); } -inline void OrganizationMember::clear_emails() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.emails_.Clear(); +inline void UpdateLocationRequest::clear_parent_location_id() { + parent_location_id_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000002u; } -inline std::string* OrganizationMember::add_emails() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_emails()->Add(); - // @@protoc_insertion_point(field_add_mutable:viam.app.v1.OrganizationMember.emails) +inline const std::string& UpdateLocationRequest::parent_location_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateLocationRequest.parent_location_id) + return _internal_parent_location_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void UpdateLocationRequest::set_parent_location_id(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000002u; + parent_location_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateLocationRequest.parent_location_id) +} +inline std::string* UpdateLocationRequest::mutable_parent_location_id() { + std::string* _s = _internal_mutable_parent_location_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateLocationRequest.parent_location_id) return _s; } -inline const std::string& OrganizationMember::emails(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.OrganizationMember.emails) - return _internal_emails().Get(index); +inline const std::string& UpdateLocationRequest::_internal_parent_location_id() const { + return parent_location_id_.Get(); } -inline std::string* OrganizationMember::mutable_emails(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:viam.app.v1.OrganizationMember.emails) - return _internal_mutable_emails()->Mutable(index); +inline void UpdateLocationRequest::_internal_set_parent_location_id(const std::string& value) { + _has_bits_[0] |= 0x00000002u; + parent_location_id_.Set(value, GetArenaForAllocation()); } -inline void OrganizationMember::set_emails(int index, const std::string& value) { - _internal_mutable_emails()->Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set:viam.app.v1.OrganizationMember.emails) +inline std::string* UpdateLocationRequest::_internal_mutable_parent_location_id() { + _has_bits_[0] |= 0x00000002u; + return parent_location_id_.Mutable(GetArenaForAllocation()); } -inline void OrganizationMember::set_emails(int index, std::string&& value) { - _internal_mutable_emails()->Mutable(index)->assign(std::move(value)); - // @@protoc_insertion_point(field_set:viam.app.v1.OrganizationMember.emails) +inline std::string* UpdateLocationRequest::release_parent_location_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateLocationRequest.parent_location_id) + if (!_internal_has_parent_location_id()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000002u; + auto* p = parent_location_id_.Release(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (parent_location_id_.IsDefault()) { + parent_location_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; } -inline void OrganizationMember::set_emails(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_emails()->Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:viam.app.v1.OrganizationMember.emails) +inline void UpdateLocationRequest::set_allocated_parent_location_id(std::string* parent_location_id) { + if (parent_location_id != nullptr) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + parent_location_id_.SetAllocated(parent_location_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (parent_location_id_.IsDefault()) { + parent_location_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateLocationRequest.parent_location_id) } -inline void OrganizationMember::set_emails(int index, const char* value, - std::size_t size) { - _internal_mutable_emails()->Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:viam.app.v1.OrganizationMember.emails) + +// optional string region = 4 [json_name = "region"]; +inline bool UpdateLocationRequest::_internal_has_region() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; } -inline void OrganizationMember::set_emails(int index, absl::string_view value) { - _internal_mutable_emails()->Mutable(index)->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_set_string_piece:viam.app.v1.OrganizationMember.emails) +inline bool UpdateLocationRequest::has_region() const { + return _internal_has_region(); } -inline void OrganizationMember::add_emails(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_emails()->Add()->assign(value); - // @@protoc_insertion_point(field_add:viam.app.v1.OrganizationMember.emails) +inline void UpdateLocationRequest::clear_region() { + region_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000004u; } -inline void OrganizationMember::add_emails(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_emails()->Add(std::move(value)); - // @@protoc_insertion_point(field_add:viam.app.v1.OrganizationMember.emails) +inline const std::string& UpdateLocationRequest::region() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateLocationRequest.region) + return _internal_region(); } -inline void OrganizationMember::add_emails(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_emails()->Add()->assign(value); - // @@protoc_insertion_point(field_add_char:viam.app.v1.OrganizationMember.emails) +template +inline PROTOBUF_ALWAYS_INLINE +void UpdateLocationRequest::set_region(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000004u; + region_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateLocationRequest.region) } -inline void OrganizationMember::add_emails(const char* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_emails()->Add()->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:viam.app.v1.OrganizationMember.emails) +inline std::string* UpdateLocationRequest::mutable_region() { + std::string* _s = _internal_mutable_region(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateLocationRequest.region) + return _s; } -inline void OrganizationMember::add_emails(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_emails()->Add()->assign(value.data(), value.size()); - // @@protoc_insertion_point(field_add_string_piece:viam.app.v1.OrganizationMember.emails) +inline const std::string& UpdateLocationRequest::_internal_region() const { + return region_.Get(); } -inline const ::google::protobuf::RepeatedPtrField& -OrganizationMember::emails() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:viam.app.v1.OrganizationMember.emails) - return _internal_emails(); +inline void UpdateLocationRequest::_internal_set_region(const std::string& value) { + _has_bits_[0] |= 0x00000004u; + region_.Set(value, GetArenaForAllocation()); } -inline ::google::protobuf::RepeatedPtrField* -OrganizationMember::mutable_emails() ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.OrganizationMember.emails) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_emails(); +inline std::string* UpdateLocationRequest::_internal_mutable_region() { + _has_bits_[0] |= 0x00000004u; + return region_.Mutable(GetArenaForAllocation()); } -inline const ::google::protobuf::RepeatedPtrField& -OrganizationMember::_internal_emails() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.emails_; +inline std::string* UpdateLocationRequest::release_region() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateLocationRequest.region) + if (!_internal_has_region()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000004u; + auto* p = region_.Release(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (region_.IsDefault()) { + region_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; } -inline ::google::protobuf::RepeatedPtrField* -OrganizationMember::_internal_mutable_emails() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.emails_; +inline void UpdateLocationRequest::set_allocated_region(std::string* region) { + if (region != nullptr) { + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + region_.SetAllocated(region, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (region_.IsDefault()) { + region_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateLocationRequest.region) } -// .google.protobuf.Timestamp date_added = 3 [json_name = "dateAdded"]; -inline bool OrganizationMember::has_date_added() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.date_added_ != nullptr); - return value; +// ------------------------------------------------------------------- + +// UpdateLocationResponse + +// .viam.app.v1.Location location = 1 [json_name = "location"]; +inline bool UpdateLocationResponse::_internal_has_location() const { + return this != internal_default_instance() && location_ != nullptr; } -inline const ::google::protobuf::Timestamp& OrganizationMember::_internal_date_added() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Timestamp* p = _impl_.date_added_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); +inline bool UpdateLocationResponse::has_location() const { + return _internal_has_location(); } -inline const ::google::protobuf::Timestamp& OrganizationMember::date_added() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.OrganizationMember.date_added) - return _internal_date_added(); +inline void UpdateLocationResponse::clear_location() { + if (GetArenaForAllocation() == nullptr && location_ != nullptr) { + delete location_; + } + location_ = nullptr; +} +inline const ::viam::app::v1::Location& UpdateLocationResponse::_internal_location() const { + const ::viam::app::v1::Location* p = location_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_Location_default_instance_); +} +inline const ::viam::app::v1::Location& UpdateLocationResponse::location() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateLocationResponse.location) + return _internal_location(); } -inline void OrganizationMember::unsafe_arena_set_allocated_date_added(::google::protobuf::Timestamp* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.date_added_); +inline void UpdateLocationResponse::unsafe_arena_set_allocated_location( + ::viam::app::v1::Location* location) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(location_); } - _impl_.date_added_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + location_ = location; + if (location) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.OrganizationMember.date_added) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.UpdateLocationResponse.location) } -inline ::google::protobuf::Timestamp* OrganizationMember::release_date_added() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Timestamp* released = _impl_.date_added_; - _impl_.date_added_ = nullptr; +inline ::viam::app::v1::Location* UpdateLocationResponse::release_location() { + + ::viam::app::v1::Location* temp = location_; + location_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Timestamp* OrganizationMember::unsafe_arena_release_date_added() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.OrganizationMember.date_added) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Timestamp* temp = _impl_.date_added_; - _impl_.date_added_ = nullptr; +inline ::viam::app::v1::Location* UpdateLocationResponse::unsafe_arena_release_location() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateLocationResponse.location) + + ::viam::app::v1::Location* temp = location_; + location_ = nullptr; return temp; } -inline ::google::protobuf::Timestamp* OrganizationMember::_internal_mutable_date_added() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.date_added_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena()); - _impl_.date_added_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); +inline ::viam::app::v1::Location* UpdateLocationResponse::_internal_mutable_location() { + + if (location_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::Location>(GetArenaForAllocation()); + location_ = p; } - return _impl_.date_added_; + return location_; } -inline ::google::protobuf::Timestamp* OrganizationMember::mutable_date_added() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Timestamp* _msg = _internal_mutable_date_added(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.OrganizationMember.date_added) +inline ::viam::app::v1::Location* UpdateLocationResponse::mutable_location() { + ::viam::app::v1::Location* _msg = _internal_mutable_location(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateLocationResponse.location) return _msg; } -inline void OrganizationMember::set_allocated_date_added(::google::protobuf::Timestamp* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void UpdateLocationResponse::set_allocated_location(::viam::app::v1::Location* location) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.date_added_); + delete location_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (location) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(location); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + location = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, location, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.date_added_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.OrganizationMember.date_added) + location_ = location; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateLocationResponse.location) } -// optional .google.protobuf.Timestamp last_login = 4 [json_name = "lastLogin"]; -inline bool OrganizationMember::has_last_login() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.last_login_ != nullptr); - return value; +// ------------------------------------------------------------------- + +// DeleteLocationRequest + +// string location_id = 1 [json_name = "locationId"]; +inline void DeleteLocationRequest::clear_location_id() { + location_id_.ClearToEmpty(); } -inline const ::google::protobuf::Timestamp& OrganizationMember::_internal_last_login() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Timestamp* p = _impl_.last_login_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); +inline const std::string& DeleteLocationRequest::location_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.DeleteLocationRequest.location_id) + return _internal_location_id(); } -inline const ::google::protobuf::Timestamp& OrganizationMember::last_login() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.OrganizationMember.last_login) - return _internal_last_login(); +template +inline PROTOBUF_ALWAYS_INLINE +void DeleteLocationRequest::set_location_id(ArgT0&& arg0, ArgT... args) { + + location_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.DeleteLocationRequest.location_id) } -inline void OrganizationMember::unsafe_arena_set_allocated_last_login(::google::protobuf::Timestamp* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.last_login_); - } - _impl_.last_login_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; - } else { - _impl_._has_bits_[0] &= ~0x00000002u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.OrganizationMember.last_login) +inline std::string* DeleteLocationRequest::mutable_location_id() { + std::string* _s = _internal_mutable_location_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.DeleteLocationRequest.location_id) + return _s; } -inline ::google::protobuf::Timestamp* OrganizationMember::release_last_login() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Timestamp* released = _impl_.last_login_; - _impl_.last_login_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; +inline const std::string& DeleteLocationRequest::_internal_location_id() const { + return location_id_.Get(); +} +inline void DeleteLocationRequest::_internal_set_location_id(const std::string& value) { + + location_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* DeleteLocationRequest::_internal_mutable_location_id() { + + return location_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* DeleteLocationRequest::release_location_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.DeleteLocationRequest.location_id) + return location_id_.Release(); +} +inline void DeleteLocationRequest::set_allocated_location_id(std::string* location_id) { + if (location_id != nullptr) { + + } else { + } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + location_id_.SetAllocated(location_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (location_id_.IsDefault()) { + location_id_.Set("", GetArenaForAllocation()); } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.DeleteLocationRequest.location_id) } -inline ::google::protobuf::Timestamp* OrganizationMember::unsafe_arena_release_last_login() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.OrganizationMember.last_login) - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Timestamp* temp = _impl_.last_login_; - _impl_.last_login_ = nullptr; - return temp; +// ------------------------------------------------------------------- + +// DeleteLocationResponse + +// ------------------------------------------------------------------- + +// GetOrganizationsWithAccessToLocationRequest + +// string location_id = 1 [json_name = "locationId"]; +inline void GetOrganizationsWithAccessToLocationRequest::clear_location_id() { + location_id_.ClearToEmpty(); } -inline ::google::protobuf::Timestamp* OrganizationMember::_internal_mutable_last_login() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.last_login_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena()); - _impl_.last_login_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); - } - return _impl_.last_login_; +inline const std::string& GetOrganizationsWithAccessToLocationRequest::location_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetOrganizationsWithAccessToLocationRequest.location_id) + return _internal_location_id(); } -inline ::google::protobuf::Timestamp* OrganizationMember::mutable_last_login() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Timestamp* _msg = _internal_mutable_last_login(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.OrganizationMember.last_login) - return _msg; +template +inline PROTOBUF_ALWAYS_INLINE +void GetOrganizationsWithAccessToLocationRequest::set_location_id(ArgT0&& arg0, ArgT... args) { + + location_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.GetOrganizationsWithAccessToLocationRequest.location_id) } -inline void OrganizationMember::set_allocated_last_login(::google::protobuf::Timestamp* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.last_login_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000002u; +inline std::string* GetOrganizationsWithAccessToLocationRequest::mutable_location_id() { + std::string* _s = _internal_mutable_location_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetOrganizationsWithAccessToLocationRequest.location_id) + return _s; +} +inline const std::string& GetOrganizationsWithAccessToLocationRequest::_internal_location_id() const { + return location_id_.Get(); +} +inline void GetOrganizationsWithAccessToLocationRequest::_internal_set_location_id(const std::string& value) { + + location_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetOrganizationsWithAccessToLocationRequest::_internal_mutable_location_id() { + + return location_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetOrganizationsWithAccessToLocationRequest::release_location_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.GetOrganizationsWithAccessToLocationRequest.location_id) + return location_id_.Release(); +} +inline void GetOrganizationsWithAccessToLocationRequest::set_allocated_location_id(std::string* location_id) { + if (location_id != nullptr) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.last_login_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.OrganizationMember.last_login) + location_id_.SetAllocated(location_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (location_id_.IsDefault()) { + location_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetOrganizationsWithAccessToLocationRequest.location_id) } // ------------------------------------------------------------------- -// ListOrganizationsResponse +// GetOrganizationsWithAccessToLocationResponse -// repeated .viam.app.v1.Organization organizations = 1 [json_name = "organizations"]; -inline int ListOrganizationsResponse::_internal_organizations_size() const { - return _internal_organizations().size(); +// repeated .viam.app.v1.OrganizationIdentity organization_identities = 1 [json_name = "organizationIdentities"]; +inline int GetOrganizationsWithAccessToLocationResponse::_internal_organization_identities_size() const { + return organization_identities_.size(); } -inline int ListOrganizationsResponse::organizations_size() const { - return _internal_organizations_size(); +inline int GetOrganizationsWithAccessToLocationResponse::organization_identities_size() const { + return _internal_organization_identities_size(); } -inline void ListOrganizationsResponse::clear_organizations() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organizations_.Clear(); +inline void GetOrganizationsWithAccessToLocationResponse::clear_organization_identities() { + organization_identities_.Clear(); } -inline ::viam::app::v1::Organization* ListOrganizationsResponse::mutable_organizations(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:viam.app.v1.ListOrganizationsResponse.organizations) - return _internal_mutable_organizations()->Mutable(index); +inline ::viam::app::v1::OrganizationIdentity* GetOrganizationsWithAccessToLocationResponse::mutable_organization_identities(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetOrganizationsWithAccessToLocationResponse.organization_identities) + return organization_identities_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::Organization>* ListOrganizationsResponse::mutable_organizations() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ListOrganizationsResponse.organizations) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_organizations(); +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::OrganizationIdentity >* +GetOrganizationsWithAccessToLocationResponse::mutable_organization_identities() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.GetOrganizationsWithAccessToLocationResponse.organization_identities) + return &organization_identities_; } -inline const ::viam::app::v1::Organization& ListOrganizationsResponse::organizations(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.ListOrganizationsResponse.organizations) - return _internal_organizations().Get(index); +inline const ::viam::app::v1::OrganizationIdentity& GetOrganizationsWithAccessToLocationResponse::_internal_organization_identities(int index) const { + return organization_identities_.Get(index); } -inline ::viam::app::v1::Organization* ListOrganizationsResponse::add_organizations() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::Organization* _add = _internal_mutable_organizations()->Add(); - // @@protoc_insertion_point(field_add:viam.app.v1.ListOrganizationsResponse.organizations) - return _add; +inline const ::viam::app::v1::OrganizationIdentity& GetOrganizationsWithAccessToLocationResponse::organization_identities(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetOrganizationsWithAccessToLocationResponse.organization_identities) + return _internal_organization_identities(index); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Organization>& ListOrganizationsResponse::organizations() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:viam.app.v1.ListOrganizationsResponse.organizations) - return _internal_organizations(); +inline ::viam::app::v1::OrganizationIdentity* GetOrganizationsWithAccessToLocationResponse::_internal_add_organization_identities() { + return organization_identities_.Add(); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Organization>& -ListOrganizationsResponse::_internal_organizations() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.organizations_; +inline ::viam::app::v1::OrganizationIdentity* GetOrganizationsWithAccessToLocationResponse::add_organization_identities() { + ::viam::app::v1::OrganizationIdentity* _add = _internal_add_organization_identities(); + // @@protoc_insertion_point(field_add:viam.app.v1.GetOrganizationsWithAccessToLocationResponse.organization_identities) + return _add; } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::Organization>* -ListOrganizationsResponse::_internal_mutable_organizations() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.organizations_; +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::OrganizationIdentity >& +GetOrganizationsWithAccessToLocationResponse::organization_identities() const { + // @@protoc_insertion_point(field_list:viam.app.v1.GetOrganizationsWithAccessToLocationResponse.organization_identities) + return organization_identities_; } // ------------------------------------------------------------------- -// OrganizationInvite +// ListLocationsRequest // string organization_id = 1 [json_name = "organizationId"]; -inline void OrganizationInvite::clear_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.ClearToEmpty(); +inline void ListLocationsRequest::clear_organization_id() { + organization_id_.ClearToEmpty(); } -inline const std::string& OrganizationInvite::organization_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.OrganizationInvite.organization_id) +inline const std::string& ListLocationsRequest::organization_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ListLocationsRequest.organization_id) return _internal_organization_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void OrganizationInvite::set_organization_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.OrganizationInvite.organization_id) +template +inline PROTOBUF_ALWAYS_INLINE +void ListLocationsRequest::set_organization_id(ArgT0&& arg0, ArgT... args) { + + organization_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.ListLocationsRequest.organization_id) } -inline std::string* OrganizationInvite::mutable_organization_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ListLocationsRequest::mutable_organization_id() { std::string* _s = _internal_mutable_organization_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.OrganizationInvite.organization_id) + // @@protoc_insertion_point(field_mutable:viam.app.v1.ListLocationsRequest.organization_id) return _s; } -inline const std::string& OrganizationInvite::_internal_organization_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.organization_id_.Get(); +inline const std::string& ListLocationsRequest::_internal_organization_id() const { + return organization_id_.Get(); } -inline void OrganizationInvite::_internal_set_organization_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(value, GetArena()); +inline void ListLocationsRequest::_internal_set_organization_id(const std::string& value) { + + organization_id_.Set(value, GetArenaForAllocation()); } -inline std::string* OrganizationInvite::_internal_mutable_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.organization_id_.Mutable( GetArena()); +inline std::string* ListLocationsRequest::_internal_mutable_organization_id() { + + return organization_id_.Mutable(GetArenaForAllocation()); } -inline std::string* OrganizationInvite::release_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.OrganizationInvite.organization_id) - return _impl_.organization_id_.Release(); -} -inline void OrganizationInvite::set_allocated_organization_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.organization_id_.IsDefault()) { - _impl_.organization_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.OrganizationInvite.organization_id) +inline std::string* ListLocationsRequest::release_organization_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.ListLocationsRequest.organization_id) + return organization_id_.Release(); +} +inline void ListLocationsRequest::set_allocated_organization_id(std::string* organization_id) { + if (organization_id != nullptr) { + + } else { + + } + organization_id_.SetAllocated(organization_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (organization_id_.IsDefault()) { + organization_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ListLocationsRequest.organization_id) } -// string email = 2 [json_name = "email"]; -inline void OrganizationInvite::clear_email() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.email_.ClearToEmpty(); +// ------------------------------------------------------------------- + +// ShareLocationRequest + +// string location_id = 1 [json_name = "locationId"]; +inline void ShareLocationRequest::clear_location_id() { + location_id_.ClearToEmpty(); } -inline const std::string& OrganizationInvite::email() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.OrganizationInvite.email) - return _internal_email(); +inline const std::string& ShareLocationRequest::location_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ShareLocationRequest.location_id) + return _internal_location_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void OrganizationInvite::set_email(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.email_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.OrganizationInvite.email) +template +inline PROTOBUF_ALWAYS_INLINE +void ShareLocationRequest::set_location_id(ArgT0&& arg0, ArgT... args) { + + location_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.ShareLocationRequest.location_id) } -inline std::string* OrganizationInvite::mutable_email() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_email(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.OrganizationInvite.email) +inline std::string* ShareLocationRequest::mutable_location_id() { + std::string* _s = _internal_mutable_location_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ShareLocationRequest.location_id) return _s; } -inline const std::string& OrganizationInvite::_internal_email() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.email_.Get(); +inline const std::string& ShareLocationRequest::_internal_location_id() const { + return location_id_.Get(); } -inline void OrganizationInvite::_internal_set_email(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.email_.Set(value, GetArena()); +inline void ShareLocationRequest::_internal_set_location_id(const std::string& value) { + + location_id_.Set(value, GetArenaForAllocation()); } -inline std::string* OrganizationInvite::_internal_mutable_email() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.email_.Mutable( GetArena()); +inline std::string* ShareLocationRequest::_internal_mutable_location_id() { + + return location_id_.Mutable(GetArenaForAllocation()); } -inline std::string* OrganizationInvite::release_email() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.OrganizationInvite.email) - return _impl_.email_.Release(); -} -inline void OrganizationInvite::set_allocated_email(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.email_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.email_.IsDefault()) { - _impl_.email_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.OrganizationInvite.email) +inline std::string* ShareLocationRequest::release_location_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.ShareLocationRequest.location_id) + return location_id_.Release(); +} +inline void ShareLocationRequest::set_allocated_location_id(std::string* location_id) { + if (location_id != nullptr) { + + } else { + + } + location_id_.SetAllocated(location_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (location_id_.IsDefault()) { + location_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ShareLocationRequest.location_id) } -// .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn"]; -inline bool OrganizationInvite::has_created_on() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.created_on_ != nullptr); - return value; +// string organization_id = 2 [json_name = "organizationId"]; +inline void ShareLocationRequest::clear_organization_id() { + organization_id_.ClearToEmpty(); } -inline const ::google::protobuf::Timestamp& OrganizationInvite::_internal_created_on() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Timestamp* p = _impl_.created_on_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); +inline const std::string& ShareLocationRequest::organization_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ShareLocationRequest.organization_id) + return _internal_organization_id(); } -inline const ::google::protobuf::Timestamp& OrganizationInvite::created_on() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.OrganizationInvite.created_on) - return _internal_created_on(); +template +inline PROTOBUF_ALWAYS_INLINE +void ShareLocationRequest::set_organization_id(ArgT0&& arg0, ArgT... args) { + + organization_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.ShareLocationRequest.organization_id) } -inline void OrganizationInvite::unsafe_arena_set_allocated_created_on(::google::protobuf::Timestamp* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.created_on_); - } - _impl_.created_on_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.OrganizationInvite.created_on) +inline std::string* ShareLocationRequest::mutable_organization_id() { + std::string* _s = _internal_mutable_organization_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ShareLocationRequest.organization_id) + return _s; } -inline ::google::protobuf::Timestamp* OrganizationInvite::release_created_on() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Timestamp* released = _impl_.created_on_; - _impl_.created_on_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; +inline const std::string& ShareLocationRequest::_internal_organization_id() const { + return organization_id_.Get(); } -inline ::google::protobuf::Timestamp* OrganizationInvite::unsafe_arena_release_created_on() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.OrganizationInvite.created_on) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Timestamp* temp = _impl_.created_on_; - _impl_.created_on_ = nullptr; - return temp; +inline void ShareLocationRequest::_internal_set_organization_id(const std::string& value) { + + organization_id_.Set(value, GetArenaForAllocation()); } -inline ::google::protobuf::Timestamp* OrganizationInvite::_internal_mutable_created_on() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.created_on_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena()); - _impl_.created_on_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); - } - return _impl_.created_on_; +inline std::string* ShareLocationRequest::_internal_mutable_organization_id() { + + return organization_id_.Mutable(GetArenaForAllocation()); } -inline ::google::protobuf::Timestamp* OrganizationInvite::mutable_created_on() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Timestamp* _msg = _internal_mutable_created_on(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.OrganizationInvite.created_on) - return _msg; +inline std::string* ShareLocationRequest::release_organization_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.ShareLocationRequest.organization_id) + return organization_id_.Release(); } -inline void OrganizationInvite::set_allocated_created_on(::google::protobuf::Timestamp* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.created_on_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; +inline void ShareLocationRequest::set_allocated_organization_id(std::string* organization_id) { + if (organization_id != nullptr) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.created_on_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.OrganizationInvite.created_on) + organization_id_.SetAllocated(organization_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (organization_id_.IsDefault()) { + organization_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ShareLocationRequest.organization_id) } -// repeated .viam.app.v1.Authorization authorizations = 4 [json_name = "authorizations"]; -inline int OrganizationInvite::_internal_authorizations_size() const { - return _internal_authorizations().size(); -} -inline int OrganizationInvite::authorizations_size() const { - return _internal_authorizations_size(); +// ------------------------------------------------------------------- + +// ShareLocationResponse + +// ------------------------------------------------------------------- + +// UnshareLocationRequest + +// string location_id = 1 [json_name = "locationId"]; +inline void UnshareLocationRequest::clear_location_id() { + location_id_.ClearToEmpty(); } -inline void OrganizationInvite::clear_authorizations() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.authorizations_.Clear(); +inline const std::string& UnshareLocationRequest::location_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UnshareLocationRequest.location_id) + return _internal_location_id(); } -inline ::viam::app::v1::Authorization* OrganizationInvite::mutable_authorizations(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:viam.app.v1.OrganizationInvite.authorizations) - return _internal_mutable_authorizations()->Mutable(index); +template +inline PROTOBUF_ALWAYS_INLINE +void UnshareLocationRequest::set_location_id(ArgT0&& arg0, ArgT... args) { + + location_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.UnshareLocationRequest.location_id) } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::Authorization>* OrganizationInvite::mutable_authorizations() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.OrganizationInvite.authorizations) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_authorizations(); +inline std::string* UnshareLocationRequest::mutable_location_id() { + std::string* _s = _internal_mutable_location_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UnshareLocationRequest.location_id) + return _s; } -inline const ::viam::app::v1::Authorization& OrganizationInvite::authorizations(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.OrganizationInvite.authorizations) - return _internal_authorizations().Get(index); +inline const std::string& UnshareLocationRequest::_internal_location_id() const { + return location_id_.Get(); } -inline ::viam::app::v1::Authorization* OrganizationInvite::add_authorizations() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::Authorization* _add = _internal_mutable_authorizations()->Add(); - // @@protoc_insertion_point(field_add:viam.app.v1.OrganizationInvite.authorizations) - return _add; +inline void UnshareLocationRequest::_internal_set_location_id(const std::string& value) { + + location_id_.Set(value, GetArenaForAllocation()); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Authorization>& OrganizationInvite::authorizations() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:viam.app.v1.OrganizationInvite.authorizations) - return _internal_authorizations(); +inline std::string* UnshareLocationRequest::_internal_mutable_location_id() { + + return location_id_.Mutable(GetArenaForAllocation()); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Authorization>& -OrganizationInvite::_internal_authorizations() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.authorizations_; +inline std::string* UnshareLocationRequest::release_location_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.UnshareLocationRequest.location_id) + return location_id_.Release(); } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::Authorization>* -OrganizationInvite::_internal_mutable_authorizations() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.authorizations_; +inline void UnshareLocationRequest::set_allocated_location_id(std::string* location_id) { + if (location_id != nullptr) { + + } else { + + } + location_id_.SetAllocated(location_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (location_id_.IsDefault()) { + location_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UnshareLocationRequest.location_id) } -// ------------------------------------------------------------------- - -// CreateOrganizationRequest - -// string name = 1 [json_name = "name"]; -inline void CreateOrganizationRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); +// string organization_id = 2 [json_name = "organizationId"]; +inline void UnshareLocationRequest::clear_organization_id() { + organization_id_.ClearToEmpty(); } -inline const std::string& CreateOrganizationRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.CreateOrganizationRequest.name) - return _internal_name(); +inline const std::string& UnshareLocationRequest::organization_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UnshareLocationRequest.organization_id) + return _internal_organization_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void CreateOrganizationRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.CreateOrganizationRequest.name) +template +inline PROTOBUF_ALWAYS_INLINE +void UnshareLocationRequest::set_organization_id(ArgT0&& arg0, ArgT... args) { + + organization_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.UnshareLocationRequest.organization_id) } -inline std::string* CreateOrganizationRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateOrganizationRequest.name) +inline std::string* UnshareLocationRequest::mutable_organization_id() { + std::string* _s = _internal_mutable_organization_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UnshareLocationRequest.organization_id) return _s; } -inline const std::string& CreateOrganizationRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); +inline const std::string& UnshareLocationRequest::_internal_organization_id() const { + return organization_id_.Get(); } -inline void CreateOrganizationRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); +inline void UnshareLocationRequest::_internal_set_organization_id(const std::string& value) { + + organization_id_.Set(value, GetArenaForAllocation()); } -inline std::string* CreateOrganizationRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); +inline std::string* UnshareLocationRequest::_internal_mutable_organization_id() { + + return organization_id_.Mutable(GetArenaForAllocation()); } -inline std::string* CreateOrganizationRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.CreateOrganizationRequest.name) - return _impl_.name_.Release(); -} -inline void CreateOrganizationRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateOrganizationRequest.name) +inline std::string* UnshareLocationRequest::release_organization_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.UnshareLocationRequest.organization_id) + return organization_id_.Release(); +} +inline void UnshareLocationRequest::set_allocated_organization_id(std::string* organization_id) { + if (organization_id != nullptr) { + + } else { + + } + organization_id_.SetAllocated(organization_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (organization_id_.IsDefault()) { + organization_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UnshareLocationRequest.organization_id) } // ------------------------------------------------------------------- -// CreateOrganizationResponse +// UnshareLocationResponse -// .viam.app.v1.Organization organization = 1 [json_name = "organization"]; -inline bool CreateOrganizationResponse::has_organization() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.organization_ != nullptr); - return value; +// ------------------------------------------------------------------- + +// ListLocationsResponse + +// repeated .viam.app.v1.Location locations = 1 [json_name = "locations"]; +inline int ListLocationsResponse::_internal_locations_size() const { + return locations_.size(); } -inline void CreateOrganizationResponse::clear_organization() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.organization_ != nullptr) _impl_.organization_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; +inline int ListLocationsResponse::locations_size() const { + return _internal_locations_size(); } -inline const ::viam::app::v1::Organization& CreateOrganizationResponse::_internal_organization() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::Organization* p = _impl_.organization_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_Organization_default_instance_); +inline void ListLocationsResponse::clear_locations() { + locations_.Clear(); } -inline const ::viam::app::v1::Organization& CreateOrganizationResponse::organization() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.CreateOrganizationResponse.organization) - return _internal_organization(); +inline ::viam::app::v1::Location* ListLocationsResponse::mutable_locations(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.ListLocationsResponse.locations) + return locations_.Mutable(index); } -inline void CreateOrganizationResponse::unsafe_arena_set_allocated_organization(::viam::app::v1::Organization* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.organization_); - } - _impl_.organization_ = reinterpret_cast<::viam::app::v1::Organization*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.CreateOrganizationResponse.organization) +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Location >* +ListLocationsResponse::mutable_locations() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ListLocationsResponse.locations) + return &locations_; } -inline ::viam::app::v1::Organization* CreateOrganizationResponse::release_organization() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::Organization* released = _impl_.organization_; - _impl_.organization_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; +inline const ::viam::app::v1::Location& ListLocationsResponse::_internal_locations(int index) const { + return locations_.Get(index); } -inline ::viam::app::v1::Organization* CreateOrganizationResponse::unsafe_arena_release_organization() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.CreateOrganizationResponse.organization) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::Organization* temp = _impl_.organization_; - _impl_.organization_ = nullptr; - return temp; +inline const ::viam::app::v1::Location& ListLocationsResponse::locations(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.ListLocationsResponse.locations) + return _internal_locations(index); } -inline ::viam::app::v1::Organization* CreateOrganizationResponse::_internal_mutable_organization() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.organization_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::Organization>(GetArena()); - _impl_.organization_ = reinterpret_cast<::viam::app::v1::Organization*>(p); - } - return _impl_.organization_; +inline ::viam::app::v1::Location* ListLocationsResponse::_internal_add_locations() { + return locations_.Add(); } -inline ::viam::app::v1::Organization* CreateOrganizationResponse::mutable_organization() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::viam::app::v1::Organization* _msg = _internal_mutable_organization(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateOrganizationResponse.organization) - return _msg; +inline ::viam::app::v1::Location* ListLocationsResponse::add_locations() { + ::viam::app::v1::Location* _add = _internal_add_locations(); + // @@protoc_insertion_point(field_add:viam.app.v1.ListLocationsResponse.locations) + return _add; } -inline void CreateOrganizationResponse::set_allocated_organization(::viam::app::v1::Organization* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::Organization*>(_impl_.organization_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::Organization*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.organization_ = reinterpret_cast<::viam::app::v1::Organization*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateOrganizationResponse.organization) +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Location >& +ListLocationsResponse::locations() const { + // @@protoc_insertion_point(field_list:viam.app.v1.ListLocationsResponse.locations) + return locations_; } // ------------------------------------------------------------------- -// GetOrganizationRequest +// CreateLocationSecretRequest -// string organization_id = 1 [json_name = "organizationId"]; -inline void GetOrganizationRequest::clear_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.ClearToEmpty(); +// string location_id = 1 [json_name = "locationId"]; +inline void CreateLocationSecretRequest::clear_location_id() { + location_id_.ClearToEmpty(); } -inline const std::string& GetOrganizationRequest::organization_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.GetOrganizationRequest.organization_id) - return _internal_organization_id(); +inline const std::string& CreateLocationSecretRequest::location_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.CreateLocationSecretRequest.location_id) + return _internal_location_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetOrganizationRequest::set_organization_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.GetOrganizationRequest.organization_id) +template +inline PROTOBUF_ALWAYS_INLINE +void CreateLocationSecretRequest::set_location_id(ArgT0&& arg0, ArgT... args) { + + location_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.CreateLocationSecretRequest.location_id) } -inline std::string* GetOrganizationRequest::mutable_organization_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_organization_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.GetOrganizationRequest.organization_id) +inline std::string* CreateLocationSecretRequest::mutable_location_id() { + std::string* _s = _internal_mutable_location_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateLocationSecretRequest.location_id) return _s; } -inline const std::string& GetOrganizationRequest::_internal_organization_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.organization_id_.Get(); +inline const std::string& CreateLocationSecretRequest::_internal_location_id() const { + return location_id_.Get(); } -inline void GetOrganizationRequest::_internal_set_organization_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(value, GetArena()); +inline void CreateLocationSecretRequest::_internal_set_location_id(const std::string& value) { + + location_id_.Set(value, GetArenaForAllocation()); } -inline std::string* GetOrganizationRequest::_internal_mutable_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.organization_id_.Mutable( GetArena()); +inline std::string* CreateLocationSecretRequest::_internal_mutable_location_id() { + + return location_id_.Mutable(GetArenaForAllocation()); } -inline std::string* GetOrganizationRequest::release_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.GetOrganizationRequest.organization_id) - return _impl_.organization_id_.Release(); -} -inline void GetOrganizationRequest::set_allocated_organization_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.organization_id_.IsDefault()) { - _impl_.organization_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetOrganizationRequest.organization_id) +inline std::string* CreateLocationSecretRequest::release_location_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.CreateLocationSecretRequest.location_id) + return location_id_.Release(); +} +inline void CreateLocationSecretRequest::set_allocated_location_id(std::string* location_id) { + if (location_id != nullptr) { + + } else { + + } + location_id_.SetAllocated(location_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (location_id_.IsDefault()) { + location_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateLocationSecretRequest.location_id) } // ------------------------------------------------------------------- -// GetOrganizationResponse +// CreateLocationSecretResponse -// .viam.app.v1.Organization organization = 1 [json_name = "organization"]; -inline bool GetOrganizationResponse::has_organization() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.organization_ != nullptr); - return value; +// .viam.app.v1.LocationAuth auth = 1 [json_name = "auth"]; +inline bool CreateLocationSecretResponse::_internal_has_auth() const { + return this != internal_default_instance() && auth_ != nullptr; } -inline void GetOrganizationResponse::clear_organization() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.organization_ != nullptr) _impl_.organization_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; +inline bool CreateLocationSecretResponse::has_auth() const { + return _internal_has_auth(); } -inline const ::viam::app::v1::Organization& GetOrganizationResponse::_internal_organization() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::Organization* p = _impl_.organization_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_Organization_default_instance_); +inline void CreateLocationSecretResponse::clear_auth() { + if (GetArenaForAllocation() == nullptr && auth_ != nullptr) { + delete auth_; + } + auth_ = nullptr; } -inline const ::viam::app::v1::Organization& GetOrganizationResponse::organization() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.GetOrganizationResponse.organization) - return _internal_organization(); +inline const ::viam::app::v1::LocationAuth& CreateLocationSecretResponse::_internal_auth() const { + const ::viam::app::v1::LocationAuth* p = auth_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_LocationAuth_default_instance_); +} +inline const ::viam::app::v1::LocationAuth& CreateLocationSecretResponse::auth() const { + // @@protoc_insertion_point(field_get:viam.app.v1.CreateLocationSecretResponse.auth) + return _internal_auth(); } -inline void GetOrganizationResponse::unsafe_arena_set_allocated_organization(::viam::app::v1::Organization* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.organization_); +inline void CreateLocationSecretResponse::unsafe_arena_set_allocated_auth( + ::viam::app::v1::LocationAuth* auth) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(auth_); } - _impl_.organization_ = reinterpret_cast<::viam::app::v1::Organization*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + auth_ = auth; + if (auth) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.GetOrganizationResponse.organization) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.CreateLocationSecretResponse.auth) } -inline ::viam::app::v1::Organization* GetOrganizationResponse::release_organization() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::Organization* released = _impl_.organization_; - _impl_.organization_ = nullptr; +inline ::viam::app::v1::LocationAuth* CreateLocationSecretResponse::release_auth() { + + ::viam::app::v1::LocationAuth* temp = auth_; + auth_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::viam::app::v1::Organization* GetOrganizationResponse::unsafe_arena_release_organization() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.GetOrganizationResponse.organization) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::Organization* temp = _impl_.organization_; - _impl_.organization_ = nullptr; +inline ::viam::app::v1::LocationAuth* CreateLocationSecretResponse::unsafe_arena_release_auth() { + // @@protoc_insertion_point(field_release:viam.app.v1.CreateLocationSecretResponse.auth) + + ::viam::app::v1::LocationAuth* temp = auth_; + auth_ = nullptr; return temp; } -inline ::viam::app::v1::Organization* GetOrganizationResponse::_internal_mutable_organization() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.organization_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::Organization>(GetArena()); - _impl_.organization_ = reinterpret_cast<::viam::app::v1::Organization*>(p); +inline ::viam::app::v1::LocationAuth* CreateLocationSecretResponse::_internal_mutable_auth() { + + if (auth_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::LocationAuth>(GetArenaForAllocation()); + auth_ = p; } - return _impl_.organization_; + return auth_; } -inline ::viam::app::v1::Organization* GetOrganizationResponse::mutable_organization() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::viam::app::v1::Organization* _msg = _internal_mutable_organization(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.GetOrganizationResponse.organization) +inline ::viam::app::v1::LocationAuth* CreateLocationSecretResponse::mutable_auth() { + ::viam::app::v1::LocationAuth* _msg = _internal_mutable_auth(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateLocationSecretResponse.auth) return _msg; } -inline void GetOrganizationResponse::set_allocated_organization(::viam::app::v1::Organization* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void CreateLocationSecretResponse::set_allocated_auth(::viam::app::v1::LocationAuth* auth) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::Organization*>(_impl_.organization_); + delete auth_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::Organization*>(value)->GetArena(); + if (auth) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(auth); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + auth = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, auth, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.organization_ = reinterpret_cast<::viam::app::v1::Organization*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetOrganizationResponse.organization) + auth_ = auth; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateLocationSecretResponse.auth) } // ------------------------------------------------------------------- -// GetOrganizationNamespaceAvailabilityRequest +// DeleteLocationSecretRequest -// string public_namespace = 1 [json_name = "publicNamespace"]; -inline void GetOrganizationNamespaceAvailabilityRequest::clear_public_namespace() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.public_namespace_.ClearToEmpty(); +// string location_id = 1 [json_name = "locationId"]; +inline void DeleteLocationSecretRequest::clear_location_id() { + location_id_.ClearToEmpty(); } -inline const std::string& GetOrganizationNamespaceAvailabilityRequest::public_namespace() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.GetOrganizationNamespaceAvailabilityRequest.public_namespace) - return _internal_public_namespace(); +inline const std::string& DeleteLocationSecretRequest::location_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.DeleteLocationSecretRequest.location_id) + return _internal_location_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetOrganizationNamespaceAvailabilityRequest::set_public_namespace(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.public_namespace_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.GetOrganizationNamespaceAvailabilityRequest.public_namespace) +template +inline PROTOBUF_ALWAYS_INLINE +void DeleteLocationSecretRequest::set_location_id(ArgT0&& arg0, ArgT... args) { + + location_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.DeleteLocationSecretRequest.location_id) } -inline std::string* GetOrganizationNamespaceAvailabilityRequest::mutable_public_namespace() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_public_namespace(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.GetOrganizationNamespaceAvailabilityRequest.public_namespace) +inline std::string* DeleteLocationSecretRequest::mutable_location_id() { + std::string* _s = _internal_mutable_location_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.DeleteLocationSecretRequest.location_id) return _s; } -inline const std::string& GetOrganizationNamespaceAvailabilityRequest::_internal_public_namespace() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.public_namespace_.Get(); -} -inline void GetOrganizationNamespaceAvailabilityRequest::_internal_set_public_namespace(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.public_namespace_.Set(value, GetArena()); -} -inline std::string* GetOrganizationNamespaceAvailabilityRequest::_internal_mutable_public_namespace() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.public_namespace_.Mutable( GetArena()); -} -inline std::string* GetOrganizationNamespaceAvailabilityRequest::release_public_namespace() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.GetOrganizationNamespaceAvailabilityRequest.public_namespace) - return _impl_.public_namespace_.Release(); -} -inline void GetOrganizationNamespaceAvailabilityRequest::set_allocated_public_namespace(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.public_namespace_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.public_namespace_.IsDefault()) { - _impl_.public_namespace_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetOrganizationNamespaceAvailabilityRequest.public_namespace) -} - -// ------------------------------------------------------------------- - -// GetOrganizationNamespaceAvailabilityResponse - -// bool available = 1 [json_name = "available"]; -inline void GetOrganizationNamespaceAvailabilityResponse::clear_available() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.available_ = false; +inline const std::string& DeleteLocationSecretRequest::_internal_location_id() const { + return location_id_.Get(); } -inline bool GetOrganizationNamespaceAvailabilityResponse::available() const { - // @@protoc_insertion_point(field_get:viam.app.v1.GetOrganizationNamespaceAvailabilityResponse.available) - return _internal_available(); +inline void DeleteLocationSecretRequest::_internal_set_location_id(const std::string& value) { + + location_id_.Set(value, GetArenaForAllocation()); } -inline void GetOrganizationNamespaceAvailabilityResponse::set_available(bool value) { - _internal_set_available(value); - // @@protoc_insertion_point(field_set:viam.app.v1.GetOrganizationNamespaceAvailabilityResponse.available) +inline std::string* DeleteLocationSecretRequest::_internal_mutable_location_id() { + + return location_id_.Mutable(GetArenaForAllocation()); } -inline bool GetOrganizationNamespaceAvailabilityResponse::_internal_available() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.available_; +inline std::string* DeleteLocationSecretRequest::release_location_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.DeleteLocationSecretRequest.location_id) + return location_id_.Release(); } -inline void GetOrganizationNamespaceAvailabilityResponse::_internal_set_available(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.available_ = value; +inline void DeleteLocationSecretRequest::set_allocated_location_id(std::string* location_id) { + if (location_id != nullptr) { + + } else { + + } + location_id_.SetAllocated(location_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (location_id_.IsDefault()) { + location_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.DeleteLocationSecretRequest.location_id) } -// ------------------------------------------------------------------- - -// UpdateOrganizationRequest - -// string organization_id = 1 [json_name = "organizationId"]; -inline void UpdateOrganizationRequest::clear_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.ClearToEmpty(); +// string secret_id = 2 [json_name = "secretId"]; +inline void DeleteLocationSecretRequest::clear_secret_id() { + secret_id_.ClearToEmpty(); } -inline const std::string& UpdateOrganizationRequest::organization_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.UpdateOrganizationRequest.organization_id) - return _internal_organization_id(); +inline const std::string& DeleteLocationSecretRequest::secret_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.DeleteLocationSecretRequest.secret_id) + return _internal_secret_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void UpdateOrganizationRequest::set_organization_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.UpdateOrganizationRequest.organization_id) +template +inline PROTOBUF_ALWAYS_INLINE +void DeleteLocationSecretRequest::set_secret_id(ArgT0&& arg0, ArgT... args) { + + secret_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.DeleteLocationSecretRequest.secret_id) } -inline std::string* UpdateOrganizationRequest::mutable_organization_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_organization_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateOrganizationRequest.organization_id) +inline std::string* DeleteLocationSecretRequest::mutable_secret_id() { + std::string* _s = _internal_mutable_secret_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.DeleteLocationSecretRequest.secret_id) return _s; } -inline const std::string& UpdateOrganizationRequest::_internal_organization_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.organization_id_.Get(); +inline const std::string& DeleteLocationSecretRequest::_internal_secret_id() const { + return secret_id_.Get(); } -inline void UpdateOrganizationRequest::_internal_set_organization_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(value, GetArena()); +inline void DeleteLocationSecretRequest::_internal_set_secret_id(const std::string& value) { + + secret_id_.Set(value, GetArenaForAllocation()); } -inline std::string* UpdateOrganizationRequest::_internal_mutable_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.organization_id_.Mutable( GetArena()); +inline std::string* DeleteLocationSecretRequest::_internal_mutable_secret_id() { + + return secret_id_.Mutable(GetArenaForAllocation()); } -inline std::string* UpdateOrganizationRequest::release_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.UpdateOrganizationRequest.organization_id) - return _impl_.organization_id_.Release(); -} -inline void UpdateOrganizationRequest::set_allocated_organization_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.organization_id_.IsDefault()) { - _impl_.organization_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateOrganizationRequest.organization_id) +inline std::string* DeleteLocationSecretRequest::release_secret_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.DeleteLocationSecretRequest.secret_id) + return secret_id_.Release(); } - -// optional string name = 2 [json_name = "name"]; -inline bool UpdateOrganizationRequest::has_name() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - return value; +inline void DeleteLocationSecretRequest::set_allocated_secret_id(std::string* secret_id) { + if (secret_id != nullptr) { + + } else { + + } + secret_id_.SetAllocated(secret_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (secret_id_.IsDefault()) { + secret_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.DeleteLocationSecretRequest.secret_id) } -inline void UpdateOrganizationRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000001u; + +// ------------------------------------------------------------------- + +// DeleteLocationSecretResponse + +// ------------------------------------------------------------------- + +// LocationAuthRequest + +// string location_id = 1 [json_name = "locationId"]; +inline void LocationAuthRequest::clear_location_id() { + location_id_.ClearToEmpty(); } -inline const std::string& UpdateOrganizationRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.UpdateOrganizationRequest.name) - return _internal_name(); +inline const std::string& LocationAuthRequest::location_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.LocationAuthRequest.location_id) + return _internal_location_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void UpdateOrganizationRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.UpdateOrganizationRequest.name) +template +inline PROTOBUF_ALWAYS_INLINE +void LocationAuthRequest::set_location_id(ArgT0&& arg0, ArgT... args) { + + location_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.LocationAuthRequest.location_id) } -inline std::string* UpdateOrganizationRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateOrganizationRequest.name) +inline std::string* LocationAuthRequest::mutable_location_id() { + std::string* _s = _internal_mutable_location_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.LocationAuthRequest.location_id) return _s; } -inline const std::string& UpdateOrganizationRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); +inline const std::string& LocationAuthRequest::_internal_location_id() const { + return location_id_.Get(); } -inline void UpdateOrganizationRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.name_.Set(value, GetArena()); +inline void LocationAuthRequest::_internal_set_location_id(const std::string& value) { + + location_id_.Set(value, GetArenaForAllocation()); } -inline std::string* UpdateOrganizationRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.name_.Mutable( GetArena()); +inline std::string* LocationAuthRequest::_internal_mutable_location_id() { + + return location_id_.Mutable(GetArenaForAllocation()); } -inline std::string* UpdateOrganizationRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.UpdateOrganizationRequest.name) - if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { - return nullptr; - } - _impl_._has_bits_[0] &= ~0x00000001u; - auto* released = _impl_.name_.Release(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArena()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return released; +inline std::string* LocationAuthRequest::release_location_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.LocationAuthRequest.location_id) + return location_id_.Release(); } -inline void UpdateOrganizationRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; +inline void LocationAuthRequest::set_allocated_location_id(std::string* location_id) { + if (location_id != nullptr) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateOrganizationRequest.name) + location_id_.SetAllocated(location_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (location_id_.IsDefault()) { + location_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.LocationAuthRequest.location_id) } -// optional string public_namespace = 3 [json_name = "publicNamespace"]; -inline bool UpdateOrganizationRequest::has_public_namespace() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - return value; -} -inline void UpdateOrganizationRequest::clear_public_namespace() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.public_namespace_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000002u; -} -inline const std::string& UpdateOrganizationRequest::public_namespace() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.UpdateOrganizationRequest.public_namespace) - return _internal_public_namespace(); -} -template -inline PROTOBUF_ALWAYS_INLINE void UpdateOrganizationRequest::set_public_namespace(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.public_namespace_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.UpdateOrganizationRequest.public_namespace) +// ------------------------------------------------------------------- + +// LocationAuthResponse + +// .viam.app.v1.LocationAuth auth = 1 [json_name = "auth"]; +inline bool LocationAuthResponse::_internal_has_auth() const { + return this != internal_default_instance() && auth_ != nullptr; } -inline std::string* UpdateOrganizationRequest::mutable_public_namespace() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_public_namespace(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateOrganizationRequest.public_namespace) - return _s; +inline bool LocationAuthResponse::has_auth() const { + return _internal_has_auth(); } -inline const std::string& UpdateOrganizationRequest::_internal_public_namespace() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.public_namespace_.Get(); +inline void LocationAuthResponse::clear_auth() { + if (GetArenaForAllocation() == nullptr && auth_ != nullptr) { + delete auth_; + } + auth_ = nullptr; } -inline void UpdateOrganizationRequest::_internal_set_public_namespace(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.public_namespace_.Set(value, GetArena()); +inline const ::viam::app::v1::LocationAuth& LocationAuthResponse::_internal_auth() const { + const ::viam::app::v1::LocationAuth* p = auth_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_LocationAuth_default_instance_); } -inline std::string* UpdateOrganizationRequest::_internal_mutable_public_namespace() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - return _impl_.public_namespace_.Mutable( GetArena()); +inline const ::viam::app::v1::LocationAuth& LocationAuthResponse::auth() const { + // @@protoc_insertion_point(field_get:viam.app.v1.LocationAuthResponse.auth) + return _internal_auth(); } -inline std::string* UpdateOrganizationRequest::release_public_namespace() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.UpdateOrganizationRequest.public_namespace) - if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { - return nullptr; +inline void LocationAuthResponse::unsafe_arena_set_allocated_auth( + ::viam::app::v1::LocationAuth* auth) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(auth_); } - _impl_._has_bits_[0] &= ~0x00000002u; - auto* released = _impl_.public_namespace_.Release(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.public_namespace_.Set("", GetArena()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return released; -} -inline void UpdateOrganizationRequest::set_allocated_public_namespace(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + auth_ = auth; + if (auth) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - _impl_.public_namespace_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.public_namespace_.IsDefault()) { - _impl_.public_namespace_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateOrganizationRequest.public_namespace) -} - -// optional string region = 4 [json_name = "region"]; -inline bool UpdateOrganizationRequest::has_region() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; - return value; -} -inline void UpdateOrganizationRequest::clear_region() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.region_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000004u; -} -inline const std::string& UpdateOrganizationRequest::region() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.UpdateOrganizationRequest.region) - return _internal_region(); -} -template -inline PROTOBUF_ALWAYS_INLINE void UpdateOrganizationRequest::set_region(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - _impl_.region_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.UpdateOrganizationRequest.region) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.LocationAuthResponse.auth) } -inline std::string* UpdateOrganizationRequest::mutable_region() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_region(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateOrganizationRequest.region) - return _s; +inline ::viam::app::v1::LocationAuth* LocationAuthResponse::release_auth() { + + ::viam::app::v1::LocationAuth* temp = auth_; + auth_ = 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 const std::string& UpdateOrganizationRequest::_internal_region() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.region_.Get(); +inline ::viam::app::v1::LocationAuth* LocationAuthResponse::unsafe_arena_release_auth() { + // @@protoc_insertion_point(field_release:viam.app.v1.LocationAuthResponse.auth) + + ::viam::app::v1::LocationAuth* temp = auth_; + auth_ = nullptr; + return temp; } -inline void UpdateOrganizationRequest::_internal_set_region(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - _impl_.region_.Set(value, GetArena()); +inline ::viam::app::v1::LocationAuth* LocationAuthResponse::_internal_mutable_auth() { + + if (auth_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::LocationAuth>(GetArenaForAllocation()); + auth_ = p; + } + return auth_; } -inline std::string* UpdateOrganizationRequest::_internal_mutable_region() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - return _impl_.region_.Mutable( GetArena()); +inline ::viam::app::v1::LocationAuth* LocationAuthResponse::mutable_auth() { + ::viam::app::v1::LocationAuth* _msg = _internal_mutable_auth(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.LocationAuthResponse.auth) + return _msg; } -inline std::string* UpdateOrganizationRequest::release_region() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.UpdateOrganizationRequest.region) - if ((_impl_._has_bits_[0] & 0x00000004u) == 0) { - return nullptr; +inline void LocationAuthResponse::set_allocated_auth(::viam::app::v1::LocationAuth* auth) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete auth_; } - _impl_._has_bits_[0] &= ~0x00000004u; - auto* released = _impl_.region_.Release(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.region_.Set("", GetArena()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return released; -} -inline void UpdateOrganizationRequest::set_allocated_region(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000004u; + if (auth) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(auth); + if (message_arena != submessage_arena) { + auth = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, auth, submessage_arena); + } + } else { - _impl_._has_bits_[0] &= ~0x00000004u; + } - _impl_.region_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.region_.IsDefault()) { - _impl_.region_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateOrganizationRequest.region) + auth_ = auth; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.LocationAuthResponse.auth) } -// optional string cid = 5 [json_name = "cid"]; -inline bool UpdateOrganizationRequest::has_cid() const { - bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; - return value; -} -inline void UpdateOrganizationRequest::clear_cid() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.cid_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000008u; +// ------------------------------------------------------------------- + +// GetRobotRequest + +// string id = 1 [json_name = "id"]; +inline void GetRobotRequest::clear_id() { + id_.ClearToEmpty(); } -inline const std::string& UpdateOrganizationRequest::cid() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.UpdateOrganizationRequest.cid) - return _internal_cid(); +inline const std::string& GetRobotRequest::id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotRequest.id) + return _internal_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void UpdateOrganizationRequest::set_cid(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000008u; - _impl_.cid_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.UpdateOrganizationRequest.cid) +template +inline PROTOBUF_ALWAYS_INLINE +void GetRobotRequest::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.GetRobotRequest.id) } -inline std::string* UpdateOrganizationRequest::mutable_cid() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_cid(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateOrganizationRequest.cid) +inline std::string* GetRobotRequest::mutable_id() { + std::string* _s = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRobotRequest.id) return _s; } -inline const std::string& UpdateOrganizationRequest::_internal_cid() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.cid_.Get(); +inline const std::string& GetRobotRequest::_internal_id() const { + return id_.Get(); } -inline void UpdateOrganizationRequest::_internal_set_cid(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000008u; - _impl_.cid_.Set(value, GetArena()); +inline void GetRobotRequest::_internal_set_id(const std::string& value) { + + id_.Set(value, GetArenaForAllocation()); } -inline std::string* UpdateOrganizationRequest::_internal_mutable_cid() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000008u; - return _impl_.cid_.Mutable( GetArena()); +inline std::string* GetRobotRequest::_internal_mutable_id() { + + return id_.Mutable(GetArenaForAllocation()); } -inline std::string* UpdateOrganizationRequest::release_cid() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.UpdateOrganizationRequest.cid) - if ((_impl_._has_bits_[0] & 0x00000008u) == 0) { - return nullptr; - } - _impl_._has_bits_[0] &= ~0x00000008u; - auto* released = _impl_.cid_.Release(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.cid_.Set("", GetArena()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return released; +inline std::string* GetRobotRequest::release_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.GetRobotRequest.id) + return id_.Release(); } -inline void UpdateOrganizationRequest::set_allocated_cid(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000008u; +inline void GetRobotRequest::set_allocated_id(std::string* id) { + if (id != nullptr) { + } else { - _impl_._has_bits_[0] &= ~0x00000008u; + } - _impl_.cid_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.cid_.IsDefault()) { - _impl_.cid_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateOrganizationRequest.cid) + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetRobotRequest.id) } // ------------------------------------------------------------------- -// UpdateOrganizationResponse +// GetRoverRentalRobotsRequest -// .viam.app.v1.Organization organization = 1 [json_name = "organization"]; -inline bool UpdateOrganizationResponse::has_organization() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.organization_ != nullptr); - return value; -} -inline void UpdateOrganizationResponse::clear_organization() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.organization_ != nullptr) _impl_.organization_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; +// string org_id = 1 [json_name = "orgId"]; +inline void GetRoverRentalRobotsRequest::clear_org_id() { + org_id_.ClearToEmpty(); } -inline const ::viam::app::v1::Organization& UpdateOrganizationResponse::_internal_organization() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::Organization* p = _impl_.organization_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_Organization_default_instance_); +inline const std::string& GetRoverRentalRobotsRequest::org_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetRoverRentalRobotsRequest.org_id) + return _internal_org_id(); } -inline const ::viam::app::v1::Organization& UpdateOrganizationResponse::organization() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.UpdateOrganizationResponse.organization) - return _internal_organization(); +template +inline PROTOBUF_ALWAYS_INLINE +void GetRoverRentalRobotsRequest::set_org_id(ArgT0&& arg0, ArgT... args) { + + org_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.GetRoverRentalRobotsRequest.org_id) } -inline void UpdateOrganizationResponse::unsafe_arena_set_allocated_organization(::viam::app::v1::Organization* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.organization_); - } - _impl_.organization_ = reinterpret_cast<::viam::app::v1::Organization*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.UpdateOrganizationResponse.organization) +inline std::string* GetRoverRentalRobotsRequest::mutable_org_id() { + std::string* _s = _internal_mutable_org_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRoverRentalRobotsRequest.org_id) + return _s; } -inline ::viam::app::v1::Organization* UpdateOrganizationResponse::release_organization() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::Organization* released = _impl_.organization_; - _impl_.organization_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; +inline const std::string& GetRoverRentalRobotsRequest::_internal_org_id() const { + return org_id_.Get(); } -inline ::viam::app::v1::Organization* UpdateOrganizationResponse::unsafe_arena_release_organization() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.UpdateOrganizationResponse.organization) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::Organization* temp = _impl_.organization_; - _impl_.organization_ = nullptr; - return temp; +inline void GetRoverRentalRobotsRequest::_internal_set_org_id(const std::string& value) { + + org_id_.Set(value, GetArenaForAllocation()); } -inline ::viam::app::v1::Organization* UpdateOrganizationResponse::_internal_mutable_organization() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.organization_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::Organization>(GetArena()); - _impl_.organization_ = reinterpret_cast<::viam::app::v1::Organization*>(p); - } - return _impl_.organization_; +inline std::string* GetRoverRentalRobotsRequest::_internal_mutable_org_id() { + + return org_id_.Mutable(GetArenaForAllocation()); } -inline ::viam::app::v1::Organization* UpdateOrganizationResponse::mutable_organization() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::viam::app::v1::Organization* _msg = _internal_mutable_organization(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateOrganizationResponse.organization) - return _msg; +inline std::string* GetRoverRentalRobotsRequest::release_org_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.GetRoverRentalRobotsRequest.org_id) + return org_id_.Release(); } -inline void UpdateOrganizationResponse::set_allocated_organization(::viam::app::v1::Organization* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::Organization*>(_impl_.organization_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::Organization*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; +inline void GetRoverRentalRobotsRequest::set_allocated_org_id(std::string* org_id) { + if (org_id != nullptr) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.organization_ = reinterpret_cast<::viam::app::v1::Organization*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateOrganizationResponse.organization) + org_id_.SetAllocated(org_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (org_id_.IsDefault()) { + org_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetRoverRentalRobotsRequest.org_id) } // ------------------------------------------------------------------- -// DeleteOrganizationRequest +// RoverRentalRobot -// string organization_id = 1 [json_name = "organizationId"]; -inline void DeleteOrganizationRequest::clear_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.ClearToEmpty(); +// string robot_id = 1 [json_name = "robotId"]; +inline void RoverRentalRobot::clear_robot_id() { + robot_id_.ClearToEmpty(); } -inline const std::string& DeleteOrganizationRequest::organization_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.DeleteOrganizationRequest.organization_id) - return _internal_organization_id(); +inline const std::string& RoverRentalRobot::robot_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RoverRentalRobot.robot_id) + return _internal_robot_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void DeleteOrganizationRequest::set_organization_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.DeleteOrganizationRequest.organization_id) +template +inline PROTOBUF_ALWAYS_INLINE +void RoverRentalRobot::set_robot_id(ArgT0&& arg0, ArgT... args) { + + robot_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.RoverRentalRobot.robot_id) } -inline std::string* DeleteOrganizationRequest::mutable_organization_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_organization_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.DeleteOrganizationRequest.organization_id) +inline std::string* RoverRentalRobot::mutable_robot_id() { + std::string* _s = _internal_mutable_robot_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RoverRentalRobot.robot_id) return _s; } -inline const std::string& DeleteOrganizationRequest::_internal_organization_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.organization_id_.Get(); +inline const std::string& RoverRentalRobot::_internal_robot_id() const { + return robot_id_.Get(); } -inline void DeleteOrganizationRequest::_internal_set_organization_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(value, GetArena()); +inline void RoverRentalRobot::_internal_set_robot_id(const std::string& value) { + + robot_id_.Set(value, GetArenaForAllocation()); } -inline std::string* DeleteOrganizationRequest::_internal_mutable_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.organization_id_.Mutable( GetArena()); +inline std::string* RoverRentalRobot::_internal_mutable_robot_id() { + + return robot_id_.Mutable(GetArenaForAllocation()); } -inline std::string* DeleteOrganizationRequest::release_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.DeleteOrganizationRequest.organization_id) - return _impl_.organization_id_.Release(); -} -inline void DeleteOrganizationRequest::set_allocated_organization_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.organization_id_.IsDefault()) { - _impl_.organization_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.DeleteOrganizationRequest.organization_id) +inline std::string* RoverRentalRobot::release_robot_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.RoverRentalRobot.robot_id) + return robot_id_.Release(); +} +inline void RoverRentalRobot::set_allocated_robot_id(std::string* robot_id) { + if (robot_id != nullptr) { + + } else { + + } + robot_id_.SetAllocated(robot_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (robot_id_.IsDefault()) { + robot_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RoverRentalRobot.robot_id) } -// ------------------------------------------------------------------- - -// DeleteOrganizationResponse - -// ------------------------------------------------------------------- - -// ListOrganizationMembersRequest - -// string organization_id = 1 [json_name = "organizationId"]; -inline void ListOrganizationMembersRequest::clear_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.ClearToEmpty(); +// string location_id = 2 [json_name = "locationId"]; +inline void RoverRentalRobot::clear_location_id() { + location_id_.ClearToEmpty(); } -inline const std::string& ListOrganizationMembersRequest::organization_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.ListOrganizationMembersRequest.organization_id) - return _internal_organization_id(); +inline const std::string& RoverRentalRobot::location_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RoverRentalRobot.location_id) + return _internal_location_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void ListOrganizationMembersRequest::set_organization_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.ListOrganizationMembersRequest.organization_id) +template +inline PROTOBUF_ALWAYS_INLINE +void RoverRentalRobot::set_location_id(ArgT0&& arg0, ArgT... args) { + + location_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.RoverRentalRobot.location_id) } -inline std::string* ListOrganizationMembersRequest::mutable_organization_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_organization_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.ListOrganizationMembersRequest.organization_id) +inline std::string* RoverRentalRobot::mutable_location_id() { + std::string* _s = _internal_mutable_location_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RoverRentalRobot.location_id) return _s; } -inline const std::string& ListOrganizationMembersRequest::_internal_organization_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.organization_id_.Get(); +inline const std::string& RoverRentalRobot::_internal_location_id() const { + return location_id_.Get(); } -inline void ListOrganizationMembersRequest::_internal_set_organization_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(value, GetArena()); +inline void RoverRentalRobot::_internal_set_location_id(const std::string& value) { + + location_id_.Set(value, GetArenaForAllocation()); } -inline std::string* ListOrganizationMembersRequest::_internal_mutable_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.organization_id_.Mutable( GetArena()); +inline std::string* RoverRentalRobot::_internal_mutable_location_id() { + + return location_id_.Mutable(GetArenaForAllocation()); } -inline std::string* ListOrganizationMembersRequest::release_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.ListOrganizationMembersRequest.organization_id) - return _impl_.organization_id_.Release(); -} -inline void ListOrganizationMembersRequest::set_allocated_organization_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.organization_id_.IsDefault()) { - _impl_.organization_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ListOrganizationMembersRequest.organization_id) +inline std::string* RoverRentalRobot::release_location_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.RoverRentalRobot.location_id) + return location_id_.Release(); +} +inline void RoverRentalRobot::set_allocated_location_id(std::string* location_id) { + if (location_id != nullptr) { + + } else { + + } + location_id_.SetAllocated(location_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (location_id_.IsDefault()) { + location_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RoverRentalRobot.location_id) } -// ------------------------------------------------------------------- - -// ListOrganizationMembersResponse - -// string organization_id = 1 [json_name = "organizationId"]; -inline void ListOrganizationMembersResponse::clear_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.ClearToEmpty(); +// string robot_name = 3 [json_name = "robotName"]; +inline void RoverRentalRobot::clear_robot_name() { + robot_name_.ClearToEmpty(); } -inline const std::string& ListOrganizationMembersResponse::organization_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.ListOrganizationMembersResponse.organization_id) - return _internal_organization_id(); +inline const std::string& RoverRentalRobot::robot_name() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RoverRentalRobot.robot_name) + return _internal_robot_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void ListOrganizationMembersResponse::set_organization_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.ListOrganizationMembersResponse.organization_id) +template +inline PROTOBUF_ALWAYS_INLINE +void RoverRentalRobot::set_robot_name(ArgT0&& arg0, ArgT... args) { + + robot_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.RoverRentalRobot.robot_name) } -inline std::string* ListOrganizationMembersResponse::mutable_organization_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_organization_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.ListOrganizationMembersResponse.organization_id) +inline std::string* RoverRentalRobot::mutable_robot_name() { + std::string* _s = _internal_mutable_robot_name(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RoverRentalRobot.robot_name) return _s; } -inline const std::string& ListOrganizationMembersResponse::_internal_organization_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.organization_id_.Get(); +inline const std::string& RoverRentalRobot::_internal_robot_name() const { + return robot_name_.Get(); } -inline void ListOrganizationMembersResponse::_internal_set_organization_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(value, GetArena()); +inline void RoverRentalRobot::_internal_set_robot_name(const std::string& value) { + + robot_name_.Set(value, GetArenaForAllocation()); } -inline std::string* ListOrganizationMembersResponse::_internal_mutable_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.organization_id_.Mutable( GetArena()); +inline std::string* RoverRentalRobot::_internal_mutable_robot_name() { + + return robot_name_.Mutable(GetArenaForAllocation()); } -inline std::string* ListOrganizationMembersResponse::release_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.ListOrganizationMembersResponse.organization_id) - return _impl_.organization_id_.Release(); -} -inline void ListOrganizationMembersResponse::set_allocated_organization_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.organization_id_.IsDefault()) { - _impl_.organization_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ListOrganizationMembersResponse.organization_id) +inline std::string* RoverRentalRobot::release_robot_name() { + // @@protoc_insertion_point(field_release:viam.app.v1.RoverRentalRobot.robot_name) + return robot_name_.Release(); } - -// repeated .viam.app.v1.OrganizationMember members = 2 [json_name = "members"]; -inline int ListOrganizationMembersResponse::_internal_members_size() const { - return _internal_members().size(); +inline void RoverRentalRobot::set_allocated_robot_name(std::string* robot_name) { + if (robot_name != nullptr) { + + } else { + + } + robot_name_.SetAllocated(robot_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (robot_name_.IsDefault()) { + robot_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RoverRentalRobot.robot_name) } -inline int ListOrganizationMembersResponse::members_size() const { - return _internal_members_size(); + +// string robot_main_part_id = 4 [json_name = "robotMainPartId"]; +inline void RoverRentalRobot::clear_robot_main_part_id() { + robot_main_part_id_.ClearToEmpty(); } -inline void ListOrganizationMembersResponse::clear_members() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.members_.Clear(); +inline const std::string& RoverRentalRobot::robot_main_part_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RoverRentalRobot.robot_main_part_id) + return _internal_robot_main_part_id(); } -inline ::viam::app::v1::OrganizationMember* ListOrganizationMembersResponse::mutable_members(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:viam.app.v1.ListOrganizationMembersResponse.members) - return _internal_mutable_members()->Mutable(index); +template +inline PROTOBUF_ALWAYS_INLINE +void RoverRentalRobot::set_robot_main_part_id(ArgT0&& arg0, ArgT... args) { + + robot_main_part_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.RoverRentalRobot.robot_main_part_id) } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::OrganizationMember>* ListOrganizationMembersResponse::mutable_members() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ListOrganizationMembersResponse.members) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_members(); +inline std::string* RoverRentalRobot::mutable_robot_main_part_id() { + std::string* _s = _internal_mutable_robot_main_part_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RoverRentalRobot.robot_main_part_id) + return _s; } -inline const ::viam::app::v1::OrganizationMember& ListOrganizationMembersResponse::members(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.ListOrganizationMembersResponse.members) - return _internal_members().Get(index); +inline const std::string& RoverRentalRobot::_internal_robot_main_part_id() const { + return robot_main_part_id_.Get(); } -inline ::viam::app::v1::OrganizationMember* ListOrganizationMembersResponse::add_members() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::OrganizationMember* _add = _internal_mutable_members()->Add(); - // @@protoc_insertion_point(field_add:viam.app.v1.ListOrganizationMembersResponse.members) - return _add; +inline void RoverRentalRobot::_internal_set_robot_main_part_id(const std::string& value) { + + robot_main_part_id_.Set(value, GetArenaForAllocation()); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::OrganizationMember>& ListOrganizationMembersResponse::members() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:viam.app.v1.ListOrganizationMembersResponse.members) - return _internal_members(); +inline std::string* RoverRentalRobot::_internal_mutable_robot_main_part_id() { + + return robot_main_part_id_.Mutable(GetArenaForAllocation()); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::OrganizationMember>& -ListOrganizationMembersResponse::_internal_members() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.members_; +inline std::string* RoverRentalRobot::release_robot_main_part_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.RoverRentalRobot.robot_main_part_id) + return robot_main_part_id_.Release(); } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::OrganizationMember>* -ListOrganizationMembersResponse::_internal_mutable_members() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.members_; +inline void RoverRentalRobot::set_allocated_robot_main_part_id(std::string* robot_main_part_id) { + if (robot_main_part_id != nullptr) { + + } else { + + } + robot_main_part_id_.SetAllocated(robot_main_part_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (robot_main_part_id_.IsDefault()) { + robot_main_part_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RoverRentalRobot.robot_main_part_id) } -// repeated .viam.app.v1.OrganizationInvite invites = 3 [json_name = "invites"]; -inline int ListOrganizationMembersResponse::_internal_invites_size() const { - return _internal_invites().size(); +// ------------------------------------------------------------------- + +// GetRoverRentalRobotsResponse + +// repeated .viam.app.v1.RoverRentalRobot robots = 1 [json_name = "robots"]; +inline int GetRoverRentalRobotsResponse::_internal_robots_size() const { + return robots_.size(); } -inline int ListOrganizationMembersResponse::invites_size() const { - return _internal_invites_size(); +inline int GetRoverRentalRobotsResponse::robots_size() const { + return _internal_robots_size(); } -inline void ListOrganizationMembersResponse::clear_invites() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.invites_.Clear(); +inline void GetRoverRentalRobotsResponse::clear_robots() { + robots_.Clear(); } -inline ::viam::app::v1::OrganizationInvite* ListOrganizationMembersResponse::mutable_invites(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:viam.app.v1.ListOrganizationMembersResponse.invites) - return _internal_mutable_invites()->Mutable(index); +inline ::viam::app::v1::RoverRentalRobot* GetRoverRentalRobotsResponse::mutable_robots(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRoverRentalRobotsResponse.robots) + return robots_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::OrganizationInvite>* ListOrganizationMembersResponse::mutable_invites() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ListOrganizationMembersResponse.invites) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_invites(); +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::RoverRentalRobot >* +GetRoverRentalRobotsResponse::mutable_robots() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.GetRoverRentalRobotsResponse.robots) + return &robots_; } -inline const ::viam::app::v1::OrganizationInvite& ListOrganizationMembersResponse::invites(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.ListOrganizationMembersResponse.invites) - return _internal_invites().Get(index); +inline const ::viam::app::v1::RoverRentalRobot& GetRoverRentalRobotsResponse::_internal_robots(int index) const { + return robots_.Get(index); } -inline ::viam::app::v1::OrganizationInvite* ListOrganizationMembersResponse::add_invites() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::OrganizationInvite* _add = _internal_mutable_invites()->Add(); - // @@protoc_insertion_point(field_add:viam.app.v1.ListOrganizationMembersResponse.invites) - return _add; +inline const ::viam::app::v1::RoverRentalRobot& GetRoverRentalRobotsResponse::robots(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetRoverRentalRobotsResponse.robots) + return _internal_robots(index); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::OrganizationInvite>& ListOrganizationMembersResponse::invites() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:viam.app.v1.ListOrganizationMembersResponse.invites) - return _internal_invites(); +inline ::viam::app::v1::RoverRentalRobot* GetRoverRentalRobotsResponse::_internal_add_robots() { + return robots_.Add(); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::OrganizationInvite>& -ListOrganizationMembersResponse::_internal_invites() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.invites_; +inline ::viam::app::v1::RoverRentalRobot* GetRoverRentalRobotsResponse::add_robots() { + ::viam::app::v1::RoverRentalRobot* _add = _internal_add_robots(); + // @@protoc_insertion_point(field_add:viam.app.v1.GetRoverRentalRobotsResponse.robots) + return _add; } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::OrganizationInvite>* -ListOrganizationMembersResponse::_internal_mutable_invites() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.invites_; +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::RoverRentalRobot >& +GetRoverRentalRobotsResponse::robots() const { + // @@protoc_insertion_point(field_list:viam.app.v1.GetRoverRentalRobotsResponse.robots) + return robots_; } // ------------------------------------------------------------------- -// CreateOrganizationInviteRequest +// GetRobotResponse -// string organization_id = 1 [json_name = "organizationId"]; -inline void CreateOrganizationInviteRequest::clear_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.ClearToEmpty(); +// .viam.app.v1.Robot robot = 1 [json_name = "robot"]; +inline bool GetRobotResponse::_internal_has_robot() const { + return this != internal_default_instance() && robot_ != nullptr; } -inline const std::string& CreateOrganizationInviteRequest::organization_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.CreateOrganizationInviteRequest.organization_id) - return _internal_organization_id(); +inline bool GetRobotResponse::has_robot() const { + return _internal_has_robot(); } -template -inline PROTOBUF_ALWAYS_INLINE void CreateOrganizationInviteRequest::set_organization_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.CreateOrganizationInviteRequest.organization_id) +inline void GetRobotResponse::clear_robot() { + if (GetArenaForAllocation() == nullptr && robot_ != nullptr) { + delete robot_; + } + robot_ = nullptr; } -inline std::string* CreateOrganizationInviteRequest::mutable_organization_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_organization_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateOrganizationInviteRequest.organization_id) - return _s; +inline const ::viam::app::v1::Robot& GetRobotResponse::_internal_robot() const { + const ::viam::app::v1::Robot* p = robot_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_Robot_default_instance_); } -inline const std::string& CreateOrganizationInviteRequest::_internal_organization_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.organization_id_.Get(); +inline const ::viam::app::v1::Robot& GetRobotResponse::robot() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotResponse.robot) + return _internal_robot(); } -inline void CreateOrganizationInviteRequest::_internal_set_organization_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(value, GetArena()); +inline void GetRobotResponse::unsafe_arena_set_allocated_robot( + ::viam::app::v1::Robot* robot) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(robot_); + } + robot_ = robot; + if (robot) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.GetRobotResponse.robot) } -inline std::string* CreateOrganizationInviteRequest::_internal_mutable_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.organization_id_.Mutable( GetArena()); +inline ::viam::app::v1::Robot* GetRobotResponse::release_robot() { + + ::viam::app::v1::Robot* temp = robot_; + robot_ = 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 std::string* CreateOrganizationInviteRequest::release_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.CreateOrganizationInviteRequest.organization_id) - return _impl_.organization_id_.Release(); -} -inline void CreateOrganizationInviteRequest::set_allocated_organization_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.organization_id_.IsDefault()) { - _impl_.organization_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateOrganizationInviteRequest.organization_id) +inline ::viam::app::v1::Robot* GetRobotResponse::unsafe_arena_release_robot() { + // @@protoc_insertion_point(field_release:viam.app.v1.GetRobotResponse.robot) + + ::viam::app::v1::Robot* temp = robot_; + robot_ = nullptr; + return temp; +} +inline ::viam::app::v1::Robot* GetRobotResponse::_internal_mutable_robot() { + + if (robot_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::Robot>(GetArenaForAllocation()); + robot_ = p; + } + return robot_; +} +inline ::viam::app::v1::Robot* GetRobotResponse::mutable_robot() { + ::viam::app::v1::Robot* _msg = _internal_mutable_robot(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRobotResponse.robot) + return _msg; +} +inline void GetRobotResponse::set_allocated_robot(::viam::app::v1::Robot* robot) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete robot_; + } + if (robot) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(robot); + if (message_arena != submessage_arena) { + robot = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, robot, submessage_arena); + } + + } else { + + } + robot_ = robot; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetRobotResponse.robot) } -// string email = 2 [json_name = "email"]; -inline void CreateOrganizationInviteRequest::clear_email() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.email_.ClearToEmpty(); +// ------------------------------------------------------------------- + +// GetRobotPartsRequest + +// string robot_id = 1 [json_name = "robotId"]; +inline void GetRobotPartsRequest::clear_robot_id() { + robot_id_.ClearToEmpty(); } -inline const std::string& CreateOrganizationInviteRequest::email() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.CreateOrganizationInviteRequest.email) - return _internal_email(); +inline const std::string& GetRobotPartsRequest::robot_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotPartsRequest.robot_id) + return _internal_robot_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void CreateOrganizationInviteRequest::set_email(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.email_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.CreateOrganizationInviteRequest.email) +template +inline PROTOBUF_ALWAYS_INLINE +void GetRobotPartsRequest::set_robot_id(ArgT0&& arg0, ArgT... args) { + + robot_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.GetRobotPartsRequest.robot_id) } -inline std::string* CreateOrganizationInviteRequest::mutable_email() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_email(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateOrganizationInviteRequest.email) +inline std::string* GetRobotPartsRequest::mutable_robot_id() { + std::string* _s = _internal_mutable_robot_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRobotPartsRequest.robot_id) return _s; } -inline const std::string& CreateOrganizationInviteRequest::_internal_email() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.email_.Get(); +inline const std::string& GetRobotPartsRequest::_internal_robot_id() const { + return robot_id_.Get(); } -inline void CreateOrganizationInviteRequest::_internal_set_email(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.email_.Set(value, GetArena()); +inline void GetRobotPartsRequest::_internal_set_robot_id(const std::string& value) { + + robot_id_.Set(value, GetArenaForAllocation()); } -inline std::string* CreateOrganizationInviteRequest::_internal_mutable_email() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.email_.Mutable( GetArena()); +inline std::string* GetRobotPartsRequest::_internal_mutable_robot_id() { + + return robot_id_.Mutable(GetArenaForAllocation()); } -inline std::string* CreateOrganizationInviteRequest::release_email() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.CreateOrganizationInviteRequest.email) - return _impl_.email_.Release(); -} -inline void CreateOrganizationInviteRequest::set_allocated_email(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.email_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.email_.IsDefault()) { - _impl_.email_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateOrganizationInviteRequest.email) +inline std::string* GetRobotPartsRequest::release_robot_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.GetRobotPartsRequest.robot_id) + return robot_id_.Release(); +} +inline void GetRobotPartsRequest::set_allocated_robot_id(std::string* robot_id) { + if (robot_id != nullptr) { + + } else { + + } + robot_id_.SetAllocated(robot_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (robot_id_.IsDefault()) { + robot_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetRobotPartsRequest.robot_id) } -// repeated .viam.app.v1.Authorization authorizations = 3 [json_name = "authorizations"]; -inline int CreateOrganizationInviteRequest::_internal_authorizations_size() const { - return _internal_authorizations().size(); +// ------------------------------------------------------------------- + +// GetRobotPartsResponse + +// repeated .viam.app.v1.RobotPart parts = 1 [json_name = "parts"]; +inline int GetRobotPartsResponse::_internal_parts_size() const { + return parts_.size(); } -inline int CreateOrganizationInviteRequest::authorizations_size() const { - return _internal_authorizations_size(); +inline int GetRobotPartsResponse::parts_size() const { + return _internal_parts_size(); } -inline void CreateOrganizationInviteRequest::clear_authorizations() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.authorizations_.Clear(); +inline void GetRobotPartsResponse::clear_parts() { + parts_.Clear(); } -inline ::viam::app::v1::Authorization* CreateOrganizationInviteRequest::mutable_authorizations(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateOrganizationInviteRequest.authorizations) - return _internal_mutable_authorizations()->Mutable(index); +inline ::viam::app::v1::RobotPart* GetRobotPartsResponse::mutable_parts(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRobotPartsResponse.parts) + return parts_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::Authorization>* CreateOrganizationInviteRequest::mutable_authorizations() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.CreateOrganizationInviteRequest.authorizations) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_authorizations(); +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::RobotPart >* +GetRobotPartsResponse::mutable_parts() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.GetRobotPartsResponse.parts) + return &parts_; } -inline const ::viam::app::v1::Authorization& CreateOrganizationInviteRequest::authorizations(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.CreateOrganizationInviteRequest.authorizations) - return _internal_authorizations().Get(index); +inline const ::viam::app::v1::RobotPart& GetRobotPartsResponse::_internal_parts(int index) const { + return parts_.Get(index); } -inline ::viam::app::v1::Authorization* CreateOrganizationInviteRequest::add_authorizations() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::Authorization* _add = _internal_mutable_authorizations()->Add(); - // @@protoc_insertion_point(field_add:viam.app.v1.CreateOrganizationInviteRequest.authorizations) - return _add; +inline const ::viam::app::v1::RobotPart& GetRobotPartsResponse::parts(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotPartsResponse.parts) + return _internal_parts(index); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Authorization>& CreateOrganizationInviteRequest::authorizations() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:viam.app.v1.CreateOrganizationInviteRequest.authorizations) - return _internal_authorizations(); +inline ::viam::app::v1::RobotPart* GetRobotPartsResponse::_internal_add_parts() { + return parts_.Add(); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Authorization>& -CreateOrganizationInviteRequest::_internal_authorizations() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.authorizations_; +inline ::viam::app::v1::RobotPart* GetRobotPartsResponse::add_parts() { + ::viam::app::v1::RobotPart* _add = _internal_add_parts(); + // @@protoc_insertion_point(field_add:viam.app.v1.GetRobotPartsResponse.parts) + return _add; } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::Authorization>* -CreateOrganizationInviteRequest::_internal_mutable_authorizations() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.authorizations_; +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::RobotPart >& +GetRobotPartsResponse::parts() const { + // @@protoc_insertion_point(field_list:viam.app.v1.GetRobotPartsResponse.parts) + return parts_; } -// optional bool send_email_invite = 4 [json_name = "sendEmailInvite"]; -inline bool CreateOrganizationInviteRequest::has_send_email_invite() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - return value; +// ------------------------------------------------------------------- + +// GetRobotPartRequest + +// string id = 1 [json_name = "id"]; +inline void GetRobotPartRequest::clear_id() { + id_.ClearToEmpty(); } -inline void CreateOrganizationInviteRequest::clear_send_email_invite() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.send_email_invite_ = false; - _impl_._has_bits_[0] &= ~0x00000001u; +inline const std::string& GetRobotPartRequest::id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotPartRequest.id) + return _internal_id(); } -inline bool CreateOrganizationInviteRequest::send_email_invite() const { - // @@protoc_insertion_point(field_get:viam.app.v1.CreateOrganizationInviteRequest.send_email_invite) - return _internal_send_email_invite(); +template +inline PROTOBUF_ALWAYS_INLINE +void GetRobotPartRequest::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.GetRobotPartRequest.id) } -inline void CreateOrganizationInviteRequest::set_send_email_invite(bool value) { - _internal_set_send_email_invite(value); - // @@protoc_insertion_point(field_set:viam.app.v1.CreateOrganizationInviteRequest.send_email_invite) +inline std::string* GetRobotPartRequest::mutable_id() { + std::string* _s = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRobotPartRequest.id) + return _s; } -inline bool CreateOrganizationInviteRequest::_internal_send_email_invite() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.send_email_invite_; +inline const std::string& GetRobotPartRequest::_internal_id() const { + return id_.Get(); } -inline void CreateOrganizationInviteRequest::_internal_set_send_email_invite(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.send_email_invite_ = value; +inline void GetRobotPartRequest::_internal_set_id(const std::string& value) { + + id_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetRobotPartRequest::_internal_mutable_id() { + + return id_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetRobotPartRequest::release_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.GetRobotPartRequest.id) + return id_.Release(); +} +inline void GetRobotPartRequest::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetRobotPartRequest.id) } // ------------------------------------------------------------------- -// CreateOrganizationInviteResponse +// GetRobotPartResponse -// .viam.app.v1.OrganizationInvite invite = 1 [json_name = "invite"]; -inline bool CreateOrganizationInviteResponse::has_invite() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.invite_ != nullptr); - return value; +// .viam.app.v1.RobotPart part = 1 [json_name = "part"]; +inline bool GetRobotPartResponse::_internal_has_part() const { + return this != internal_default_instance() && part_ != nullptr; } -inline void CreateOrganizationInviteResponse::clear_invite() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.invite_ != nullptr) _impl_.invite_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; +inline bool GetRobotPartResponse::has_part() const { + return _internal_has_part(); } -inline const ::viam::app::v1::OrganizationInvite& CreateOrganizationInviteResponse::_internal_invite() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::OrganizationInvite* p = _impl_.invite_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_OrganizationInvite_default_instance_); +inline void GetRobotPartResponse::clear_part() { + if (GetArenaForAllocation() == nullptr && part_ != nullptr) { + delete part_; + } + part_ = nullptr; } -inline const ::viam::app::v1::OrganizationInvite& CreateOrganizationInviteResponse::invite() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.CreateOrganizationInviteResponse.invite) - return _internal_invite(); +inline const ::viam::app::v1::RobotPart& GetRobotPartResponse::_internal_part() const { + const ::viam::app::v1::RobotPart* p = part_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_RobotPart_default_instance_); +} +inline const ::viam::app::v1::RobotPart& GetRobotPartResponse::part() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotPartResponse.part) + return _internal_part(); } -inline void CreateOrganizationInviteResponse::unsafe_arena_set_allocated_invite(::viam::app::v1::OrganizationInvite* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.invite_); +inline void GetRobotPartResponse::unsafe_arena_set_allocated_part( + ::viam::app::v1::RobotPart* part) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(part_); } - _impl_.invite_ = reinterpret_cast<::viam::app::v1::OrganizationInvite*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + part_ = part; + if (part) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.CreateOrganizationInviteResponse.invite) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.GetRobotPartResponse.part) } -inline ::viam::app::v1::OrganizationInvite* CreateOrganizationInviteResponse::release_invite() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::OrganizationInvite* released = _impl_.invite_; - _impl_.invite_ = nullptr; +inline ::viam::app::v1::RobotPart* GetRobotPartResponse::release_part() { + + ::viam::app::v1::RobotPart* temp = part_; + part_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::viam::app::v1::OrganizationInvite* CreateOrganizationInviteResponse::unsafe_arena_release_invite() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.CreateOrganizationInviteResponse.invite) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::OrganizationInvite* temp = _impl_.invite_; - _impl_.invite_ = nullptr; +inline ::viam::app::v1::RobotPart* GetRobotPartResponse::unsafe_arena_release_part() { + // @@protoc_insertion_point(field_release:viam.app.v1.GetRobotPartResponse.part) + + ::viam::app::v1::RobotPart* temp = part_; + part_ = nullptr; return temp; } -inline ::viam::app::v1::OrganizationInvite* CreateOrganizationInviteResponse::_internal_mutable_invite() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.invite_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::OrganizationInvite>(GetArena()); - _impl_.invite_ = reinterpret_cast<::viam::app::v1::OrganizationInvite*>(p); +inline ::viam::app::v1::RobotPart* GetRobotPartResponse::_internal_mutable_part() { + + if (part_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::RobotPart>(GetArenaForAllocation()); + part_ = p; } - return _impl_.invite_; + return part_; } -inline ::viam::app::v1::OrganizationInvite* CreateOrganizationInviteResponse::mutable_invite() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::viam::app::v1::OrganizationInvite* _msg = _internal_mutable_invite(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateOrganizationInviteResponse.invite) +inline ::viam::app::v1::RobotPart* GetRobotPartResponse::mutable_part() { + ::viam::app::v1::RobotPart* _msg = _internal_mutable_part(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRobotPartResponse.part) return _msg; } -inline void CreateOrganizationInviteResponse::set_allocated_invite(::viam::app::v1::OrganizationInvite* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetRobotPartResponse::set_allocated_part(::viam::app::v1::RobotPart* part) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::OrganizationInvite*>(_impl_.invite_); + delete part_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::OrganizationInvite*>(value)->GetArena(); + if (part) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(part); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + part = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, part, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.invite_ = reinterpret_cast<::viam::app::v1::OrganizationInvite*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateOrganizationInviteResponse.invite) + part_ = part; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetRobotPartResponse.part) } -// ------------------------------------------------------------------- - -// UpdateOrganizationInviteAuthorizationsRequest - -// string organization_id = 1 [json_name = "organizationId"]; -inline void UpdateOrganizationInviteAuthorizationsRequest::clear_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.ClearToEmpty(); +// string config_json = 2 [json_name = "configJson"]; +inline void GetRobotPartResponse::clear_config_json() { + config_json_.ClearToEmpty(); } -inline const std::string& UpdateOrganizationInviteAuthorizationsRequest::organization_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest.organization_id) - return _internal_organization_id(); +inline const std::string& GetRobotPartResponse::config_json() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotPartResponse.config_json) + return _internal_config_json(); } -template -inline PROTOBUF_ALWAYS_INLINE void UpdateOrganizationInviteAuthorizationsRequest::set_organization_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest.organization_id) +template +inline PROTOBUF_ALWAYS_INLINE +void GetRobotPartResponse::set_config_json(ArgT0&& arg0, ArgT... args) { + + config_json_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.GetRobotPartResponse.config_json) } -inline std::string* UpdateOrganizationInviteAuthorizationsRequest::mutable_organization_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_organization_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest.organization_id) +inline std::string* GetRobotPartResponse::mutable_config_json() { + std::string* _s = _internal_mutable_config_json(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRobotPartResponse.config_json) return _s; } -inline const std::string& UpdateOrganizationInviteAuthorizationsRequest::_internal_organization_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.organization_id_.Get(); -} -inline void UpdateOrganizationInviteAuthorizationsRequest::_internal_set_organization_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(value, GetArena()); -} -inline std::string* UpdateOrganizationInviteAuthorizationsRequest::_internal_mutable_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.organization_id_.Mutable( GetArena()); -} -inline std::string* UpdateOrganizationInviteAuthorizationsRequest::release_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest.organization_id) - return _impl_.organization_id_.Release(); -} -inline void UpdateOrganizationInviteAuthorizationsRequest::set_allocated_organization_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.organization_id_.IsDefault()) { - _impl_.organization_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest.organization_id) -} - -// string email = 2 [json_name = "email"]; -inline void UpdateOrganizationInviteAuthorizationsRequest::clear_email() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.email_.ClearToEmpty(); -} -inline const std::string& UpdateOrganizationInviteAuthorizationsRequest::email() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest.email) - return _internal_email(); -} -template -inline PROTOBUF_ALWAYS_INLINE void UpdateOrganizationInviteAuthorizationsRequest::set_email(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.email_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest.email) -} -inline std::string* UpdateOrganizationInviteAuthorizationsRequest::mutable_email() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_email(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest.email) - return _s; +inline const std::string& GetRobotPartResponse::_internal_config_json() const { + return config_json_.Get(); } -inline const std::string& UpdateOrganizationInviteAuthorizationsRequest::_internal_email() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.email_.Get(); +inline void GetRobotPartResponse::_internal_set_config_json(const std::string& value) { + + config_json_.Set(value, GetArenaForAllocation()); } -inline void UpdateOrganizationInviteAuthorizationsRequest::_internal_set_email(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.email_.Set(value, GetArena()); +inline std::string* GetRobotPartResponse::_internal_mutable_config_json() { + + return config_json_.Mutable(GetArenaForAllocation()); } -inline std::string* UpdateOrganizationInviteAuthorizationsRequest::_internal_mutable_email() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.email_.Mutable( GetArena()); +inline std::string* GetRobotPartResponse::release_config_json() { + // @@protoc_insertion_point(field_release:viam.app.v1.GetRobotPartResponse.config_json) + return config_json_.Release(); } -inline std::string* UpdateOrganizationInviteAuthorizationsRequest::release_email() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest.email) - return _impl_.email_.Release(); -} -inline void UpdateOrganizationInviteAuthorizationsRequest::set_allocated_email(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.email_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.email_.IsDefault()) { - _impl_.email_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest.email) +inline void GetRobotPartResponse::set_allocated_config_json(std::string* config_json) { + if (config_json != nullptr) { + + } else { + + } + config_json_.SetAllocated(config_json, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (config_json_.IsDefault()) { + config_json_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetRobotPartResponse.config_json) } -// repeated .viam.app.v1.Authorization add_authorizations = 3 [json_name = "addAuthorizations"]; -inline int UpdateOrganizationInviteAuthorizationsRequest::_internal_add_authorizations_size() const { - return _internal_add_authorizations().size(); -} -inline int UpdateOrganizationInviteAuthorizationsRequest::add_authorizations_size() const { - return _internal_add_authorizations_size(); +// ------------------------------------------------------------------- + +// GetRobotPartLogsRequest + +// string id = 1 [json_name = "id"]; +inline void GetRobotPartLogsRequest::clear_id() { + id_.ClearToEmpty(); } -inline void UpdateOrganizationInviteAuthorizationsRequest::clear_add_authorizations() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.add_authorizations_.Clear(); +inline const std::string& GetRobotPartLogsRequest::id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotPartLogsRequest.id) + return _internal_id(); } -inline ::viam::app::v1::Authorization* UpdateOrganizationInviteAuthorizationsRequest::mutable_add_authorizations(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest.add_authorizations) - return _internal_mutable_add_authorizations()->Mutable(index); +template +inline PROTOBUF_ALWAYS_INLINE +void GetRobotPartLogsRequest::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.GetRobotPartLogsRequest.id) } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::Authorization>* UpdateOrganizationInviteAuthorizationsRequest::mutable_add_authorizations() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest.add_authorizations) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_add_authorizations(); +inline std::string* GetRobotPartLogsRequest::mutable_id() { + std::string* _s = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRobotPartLogsRequest.id) + return _s; } -inline const ::viam::app::v1::Authorization& UpdateOrganizationInviteAuthorizationsRequest::add_authorizations(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest.add_authorizations) - return _internal_add_authorizations().Get(index); +inline const std::string& GetRobotPartLogsRequest::_internal_id() const { + return id_.Get(); } -inline ::viam::app::v1::Authorization* UpdateOrganizationInviteAuthorizationsRequest::add_add_authorizations() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::Authorization* _add = _internal_mutable_add_authorizations()->Add(); - // @@protoc_insertion_point(field_add:viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest.add_authorizations) - return _add; +inline void GetRobotPartLogsRequest::_internal_set_id(const std::string& value) { + + id_.Set(value, GetArenaForAllocation()); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Authorization>& UpdateOrganizationInviteAuthorizationsRequest::add_authorizations() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest.add_authorizations) - return _internal_add_authorizations(); +inline std::string* GetRobotPartLogsRequest::_internal_mutable_id() { + + return id_.Mutable(GetArenaForAllocation()); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Authorization>& -UpdateOrganizationInviteAuthorizationsRequest::_internal_add_authorizations() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.add_authorizations_; +inline std::string* GetRobotPartLogsRequest::release_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.GetRobotPartLogsRequest.id) + return id_.Release(); } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::Authorization>* -UpdateOrganizationInviteAuthorizationsRequest::_internal_mutable_add_authorizations() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.add_authorizations_; +inline void GetRobotPartLogsRequest::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetRobotPartLogsRequest.id) } -// repeated .viam.app.v1.Authorization remove_authorizations = 4 [json_name = "removeAuthorizations"]; -inline int UpdateOrganizationInviteAuthorizationsRequest::_internal_remove_authorizations_size() const { - return _internal_remove_authorizations().size(); +// bool errors_only = 2 [json_name = "errorsOnly", deprecated = true]; +inline void GetRobotPartLogsRequest::clear_errors_only() { + errors_only_ = false; } -inline int UpdateOrganizationInviteAuthorizationsRequest::remove_authorizations_size() const { - return _internal_remove_authorizations_size(); +inline bool GetRobotPartLogsRequest::_internal_errors_only() const { + return errors_only_; } -inline void UpdateOrganizationInviteAuthorizationsRequest::clear_remove_authorizations() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.remove_authorizations_.Clear(); +inline bool GetRobotPartLogsRequest::errors_only() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotPartLogsRequest.errors_only) + return _internal_errors_only(); } -inline ::viam::app::v1::Authorization* UpdateOrganizationInviteAuthorizationsRequest::mutable_remove_authorizations(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest.remove_authorizations) - return _internal_mutable_remove_authorizations()->Mutable(index); +inline void GetRobotPartLogsRequest::_internal_set_errors_only(bool value) { + + errors_only_ = value; } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::Authorization>* UpdateOrganizationInviteAuthorizationsRequest::mutable_remove_authorizations() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest.remove_authorizations) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_remove_authorizations(); +inline void GetRobotPartLogsRequest::set_errors_only(bool value) { + _internal_set_errors_only(value); + // @@protoc_insertion_point(field_set:viam.app.v1.GetRobotPartLogsRequest.errors_only) } -inline const ::viam::app::v1::Authorization& UpdateOrganizationInviteAuthorizationsRequest::remove_authorizations(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest.remove_authorizations) - return _internal_remove_authorizations().Get(index); + +// optional string filter = 3 [json_name = "filter"]; +inline bool GetRobotPartLogsRequest::_internal_has_filter() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; } -inline ::viam::app::v1::Authorization* UpdateOrganizationInviteAuthorizationsRequest::add_remove_authorizations() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::Authorization* _add = _internal_mutable_remove_authorizations()->Add(); - // @@protoc_insertion_point(field_add:viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest.remove_authorizations) - return _add; +inline bool GetRobotPartLogsRequest::has_filter() const { + return _internal_has_filter(); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Authorization>& UpdateOrganizationInviteAuthorizationsRequest::remove_authorizations() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:viam.app.v1.UpdateOrganizationInviteAuthorizationsRequest.remove_authorizations) - return _internal_remove_authorizations(); +inline void GetRobotPartLogsRequest::clear_filter() { + filter_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Authorization>& -UpdateOrganizationInviteAuthorizationsRequest::_internal_remove_authorizations() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.remove_authorizations_; +inline const std::string& GetRobotPartLogsRequest::filter() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotPartLogsRequest.filter) + return _internal_filter(); } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::Authorization>* -UpdateOrganizationInviteAuthorizationsRequest::_internal_mutable_remove_authorizations() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.remove_authorizations_; +template +inline PROTOBUF_ALWAYS_INLINE +void GetRobotPartLogsRequest::set_filter(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + filter_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.GetRobotPartLogsRequest.filter) } - -// ------------------------------------------------------------------- - -// UpdateOrganizationInviteAuthorizationsResponse - -// .viam.app.v1.OrganizationInvite invite = 1 [json_name = "invite"]; -inline bool UpdateOrganizationInviteAuthorizationsResponse::has_invite() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.invite_ != nullptr); - return value; +inline std::string* GetRobotPartLogsRequest::mutable_filter() { + std::string* _s = _internal_mutable_filter(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRobotPartLogsRequest.filter) + return _s; } -inline void UpdateOrganizationInviteAuthorizationsResponse::clear_invite() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.invite_ != nullptr) _impl_.invite_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; +inline const std::string& GetRobotPartLogsRequest::_internal_filter() const { + return filter_.Get(); } -inline const ::viam::app::v1::OrganizationInvite& UpdateOrganizationInviteAuthorizationsResponse::_internal_invite() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::OrganizationInvite* p = _impl_.invite_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_OrganizationInvite_default_instance_); +inline void GetRobotPartLogsRequest::_internal_set_filter(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + filter_.Set(value, GetArenaForAllocation()); } -inline const ::viam::app::v1::OrganizationInvite& UpdateOrganizationInviteAuthorizationsResponse::invite() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.UpdateOrganizationInviteAuthorizationsResponse.invite) - return _internal_invite(); +inline std::string* GetRobotPartLogsRequest::_internal_mutable_filter() { + _has_bits_[0] |= 0x00000001u; + return filter_.Mutable(GetArenaForAllocation()); } -inline void UpdateOrganizationInviteAuthorizationsResponse::unsafe_arena_set_allocated_invite(::viam::app::v1::OrganizationInvite* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.invite_); +inline std::string* GetRobotPartLogsRequest::release_filter() { + // @@protoc_insertion_point(field_release:viam.app.v1.GetRobotPartLogsRequest.filter) + if (!_internal_has_filter()) { + return nullptr; } - _impl_.invite_ = reinterpret_cast<::viam::app::v1::OrganizationInvite*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; + _has_bits_[0] &= ~0x00000001u; + auto* p = filter_.Release(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (filter_.IsDefault()) { + filter_.Set("", GetArenaForAllocation()); } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.UpdateOrganizationInviteAuthorizationsResponse.invite) +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; } -inline ::viam::app::v1::OrganizationInvite* UpdateOrganizationInviteAuthorizationsResponse::release_invite() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::OrganizationInvite* released = _impl_.invite_; - _impl_.invite_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; +inline void GetRobotPartLogsRequest::set_allocated_filter(std::string* filter) { + if (filter != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + filter_.SetAllocated(filter, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (filter_.IsDefault()) { + filter_.Set("", GetArenaForAllocation()); } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetRobotPartLogsRequest.filter) } -inline ::viam::app::v1::OrganizationInvite* UpdateOrganizationInviteAuthorizationsResponse::unsafe_arena_release_invite() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.UpdateOrganizationInviteAuthorizationsResponse.invite) - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::OrganizationInvite* temp = _impl_.invite_; - _impl_.invite_ = nullptr; - return temp; -} -inline ::viam::app::v1::OrganizationInvite* UpdateOrganizationInviteAuthorizationsResponse::_internal_mutable_invite() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.invite_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::OrganizationInvite>(GetArena()); - _impl_.invite_ = reinterpret_cast<::viam::app::v1::OrganizationInvite*>(p); - } - return _impl_.invite_; -} -inline ::viam::app::v1::OrganizationInvite* UpdateOrganizationInviteAuthorizationsResponse::mutable_invite() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::viam::app::v1::OrganizationInvite* _msg = _internal_mutable_invite(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateOrganizationInviteAuthorizationsResponse.invite) - return _msg; +// optional string page_token = 4 [json_name = "pageToken"]; +inline bool GetRobotPartLogsRequest::_internal_has_page_token() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; } -inline void UpdateOrganizationInviteAuthorizationsResponse::set_allocated_invite(::viam::app::v1::OrganizationInvite* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::OrganizationInvite*>(_impl_.invite_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::OrganizationInvite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.invite_ = reinterpret_cast<::viam::app::v1::OrganizationInvite*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateOrganizationInviteAuthorizationsResponse.invite) +inline bool GetRobotPartLogsRequest::has_page_token() const { + return _internal_has_page_token(); } - -// ------------------------------------------------------------------- - -// DeleteOrganizationInviteRequest - -// string organization_id = 1 [json_name = "organizationId"]; -inline void DeleteOrganizationInviteRequest::clear_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.ClearToEmpty(); +inline void GetRobotPartLogsRequest::clear_page_token() { + page_token_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000002u; } -inline const std::string& DeleteOrganizationInviteRequest::organization_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.DeleteOrganizationInviteRequest.organization_id) - return _internal_organization_id(); +inline const std::string& GetRobotPartLogsRequest::page_token() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotPartLogsRequest.page_token) + return _internal_page_token(); } -template -inline PROTOBUF_ALWAYS_INLINE void DeleteOrganizationInviteRequest::set_organization_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.DeleteOrganizationInviteRequest.organization_id) +template +inline PROTOBUF_ALWAYS_INLINE +void GetRobotPartLogsRequest::set_page_token(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000002u; + page_token_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.GetRobotPartLogsRequest.page_token) } -inline std::string* DeleteOrganizationInviteRequest::mutable_organization_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_organization_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.DeleteOrganizationInviteRequest.organization_id) +inline std::string* GetRobotPartLogsRequest::mutable_page_token() { + std::string* _s = _internal_mutable_page_token(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRobotPartLogsRequest.page_token) return _s; } -inline const std::string& DeleteOrganizationInviteRequest::_internal_organization_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.organization_id_.Get(); +inline const std::string& GetRobotPartLogsRequest::_internal_page_token() const { + return page_token_.Get(); } -inline void DeleteOrganizationInviteRequest::_internal_set_organization_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(value, GetArena()); +inline void GetRobotPartLogsRequest::_internal_set_page_token(const std::string& value) { + _has_bits_[0] |= 0x00000002u; + page_token_.Set(value, GetArenaForAllocation()); } -inline std::string* DeleteOrganizationInviteRequest::_internal_mutable_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.organization_id_.Mutable( GetArena()); +inline std::string* GetRobotPartLogsRequest::_internal_mutable_page_token() { + _has_bits_[0] |= 0x00000002u; + return page_token_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetRobotPartLogsRequest::release_page_token() { + // @@protoc_insertion_point(field_release:viam.app.v1.GetRobotPartLogsRequest.page_token) + if (!_internal_has_page_token()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000002u; + auto* p = page_token_.Release(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (page_token_.IsDefault()) { + page_token_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; } -inline std::string* DeleteOrganizationInviteRequest::release_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.DeleteOrganizationInviteRequest.organization_id) - return _impl_.organization_id_.Release(); -} -inline void DeleteOrganizationInviteRequest::set_allocated_organization_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.organization_id_.IsDefault()) { - _impl_.organization_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.DeleteOrganizationInviteRequest.organization_id) +inline void GetRobotPartLogsRequest::set_allocated_page_token(std::string* page_token) { + if (page_token != nullptr) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + page_token_.SetAllocated(page_token, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (page_token_.IsDefault()) { + page_token_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetRobotPartLogsRequest.page_token) } -// string email = 2 [json_name = "email"]; -inline void DeleteOrganizationInviteRequest::clear_email() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.email_.ClearToEmpty(); +// repeated string levels = 5 [json_name = "levels"]; +inline int GetRobotPartLogsRequest::_internal_levels_size() const { + return levels_.size(); } -inline const std::string& DeleteOrganizationInviteRequest::email() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.DeleteOrganizationInviteRequest.email) - return _internal_email(); +inline int GetRobotPartLogsRequest::levels_size() const { + return _internal_levels_size(); } -template -inline PROTOBUF_ALWAYS_INLINE void DeleteOrganizationInviteRequest::set_email(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.email_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.DeleteOrganizationInviteRequest.email) +inline void GetRobotPartLogsRequest::clear_levels() { + levels_.Clear(); } -inline std::string* DeleteOrganizationInviteRequest::mutable_email() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_email(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.DeleteOrganizationInviteRequest.email) +inline std::string* GetRobotPartLogsRequest::add_levels() { + std::string* _s = _internal_add_levels(); + // @@protoc_insertion_point(field_add_mutable:viam.app.v1.GetRobotPartLogsRequest.levels) return _s; } -inline const std::string& DeleteOrganizationInviteRequest::_internal_email() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.email_.Get(); +inline const std::string& GetRobotPartLogsRequest::_internal_levels(int index) const { + return levels_.Get(index); } -inline void DeleteOrganizationInviteRequest::_internal_set_email(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.email_.Set(value, GetArena()); +inline const std::string& GetRobotPartLogsRequest::levels(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotPartLogsRequest.levels) + return _internal_levels(index); } -inline std::string* DeleteOrganizationInviteRequest::_internal_mutable_email() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.email_.Mutable( GetArena()); +inline std::string* GetRobotPartLogsRequest::mutable_levels(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRobotPartLogsRequest.levels) + return levels_.Mutable(index); } -inline std::string* DeleteOrganizationInviteRequest::release_email() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.DeleteOrganizationInviteRequest.email) - return _impl_.email_.Release(); -} -inline void DeleteOrganizationInviteRequest::set_allocated_email(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.email_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.email_.IsDefault()) { - _impl_.email_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.DeleteOrganizationInviteRequest.email) +inline void GetRobotPartLogsRequest::set_levels(int index, const std::string& value) { + levels_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:viam.app.v1.GetRobotPartLogsRequest.levels) } - -// ------------------------------------------------------------------- - -// DeleteOrganizationInviteResponse - -// ------------------------------------------------------------------- - -// ResendOrganizationInviteRequest - -// string organization_id = 1 [json_name = "organizationId"]; -inline void ResendOrganizationInviteRequest::clear_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.ClearToEmpty(); +inline void GetRobotPartLogsRequest::set_levels(int index, std::string&& value) { + levels_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:viam.app.v1.GetRobotPartLogsRequest.levels) } -inline const std::string& ResendOrganizationInviteRequest::organization_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.ResendOrganizationInviteRequest.organization_id) - return _internal_organization_id(); +inline void GetRobotPartLogsRequest::set_levels(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + levels_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:viam.app.v1.GetRobotPartLogsRequest.levels) } -template -inline PROTOBUF_ALWAYS_INLINE void ResendOrganizationInviteRequest::set_organization_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.ResendOrganizationInviteRequest.organization_id) +inline void GetRobotPartLogsRequest::set_levels(int index, const char* value, size_t size) { + levels_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:viam.app.v1.GetRobotPartLogsRequest.levels) } -inline std::string* ResendOrganizationInviteRequest::mutable_organization_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_organization_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.ResendOrganizationInviteRequest.organization_id) - return _s; +inline std::string* GetRobotPartLogsRequest::_internal_add_levels() { + return levels_.Add(); } -inline const std::string& ResendOrganizationInviteRequest::_internal_organization_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.organization_id_.Get(); +inline void GetRobotPartLogsRequest::add_levels(const std::string& value) { + levels_.Add()->assign(value); + // @@protoc_insertion_point(field_add:viam.app.v1.GetRobotPartLogsRequest.levels) } -inline void ResendOrganizationInviteRequest::_internal_set_organization_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(value, GetArena()); +inline void GetRobotPartLogsRequest::add_levels(std::string&& value) { + levels_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:viam.app.v1.GetRobotPartLogsRequest.levels) } -inline std::string* ResendOrganizationInviteRequest::_internal_mutable_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.organization_id_.Mutable( GetArena()); +inline void GetRobotPartLogsRequest::add_levels(const char* value) { + GOOGLE_DCHECK(value != nullptr); + levels_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:viam.app.v1.GetRobotPartLogsRequest.levels) } -inline std::string* ResendOrganizationInviteRequest::release_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.ResendOrganizationInviteRequest.organization_id) - return _impl_.organization_id_.Release(); -} -inline void ResendOrganizationInviteRequest::set_allocated_organization_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.organization_id_.IsDefault()) { - _impl_.organization_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ResendOrganizationInviteRequest.organization_id) +inline void GetRobotPartLogsRequest::add_levels(const char* value, size_t size) { + levels_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:viam.app.v1.GetRobotPartLogsRequest.levels) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +GetRobotPartLogsRequest::levels() const { + // @@protoc_insertion_point(field_list:viam.app.v1.GetRobotPartLogsRequest.levels) + return levels_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +GetRobotPartLogsRequest::mutable_levels() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.GetRobotPartLogsRequest.levels) + return &levels_; } -// string email = 2 [json_name = "email"]; -inline void ResendOrganizationInviteRequest::clear_email() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.email_.ClearToEmpty(); +// optional .google.protobuf.Timestamp start = 6 [json_name = "start"]; +inline bool GetRobotPartLogsRequest::_internal_has_start() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + PROTOBUF_ASSUME(!value || start_ != nullptr); + return value; } -inline const std::string& ResendOrganizationInviteRequest::email() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.ResendOrganizationInviteRequest.email) - return _internal_email(); +inline bool GetRobotPartLogsRequest::has_start() const { + return _internal_has_start(); } -template -inline PROTOBUF_ALWAYS_INLINE void ResendOrganizationInviteRequest::set_email(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.email_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.ResendOrganizationInviteRequest.email) +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& GetRobotPartLogsRequest::_internal_start() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = start_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); } -inline std::string* ResendOrganizationInviteRequest::mutable_email() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_email(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.ResendOrganizationInviteRequest.email) - return _s; +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& GetRobotPartLogsRequest::start() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotPartLogsRequest.start) + return _internal_start(); } -inline const std::string& ResendOrganizationInviteRequest::_internal_email() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.email_.Get(); +inline void GetRobotPartLogsRequest::unsafe_arena_set_allocated_start( + ::PROTOBUF_NAMESPACE_ID::Timestamp* start) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(start_); + } + start_ = start; + if (start) { + _has_bits_[0] |= 0x00000008u; + } else { + _has_bits_[0] &= ~0x00000008u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.GetRobotPartLogsRequest.start) } -inline void ResendOrganizationInviteRequest::_internal_set_email(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.email_.Set(value, GetArena()); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* GetRobotPartLogsRequest::release_start() { + _has_bits_[0] &= ~0x00000008u; + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = start_; + start_ = 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 std::string* ResendOrganizationInviteRequest::_internal_mutable_email() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.email_.Mutable( GetArena()); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* GetRobotPartLogsRequest::unsafe_arena_release_start() { + // @@protoc_insertion_point(field_release:viam.app.v1.GetRobotPartLogsRequest.start) + _has_bits_[0] &= ~0x00000008u; + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = start_; + start_ = nullptr; + return temp; } -inline std::string* ResendOrganizationInviteRequest::release_email() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.ResendOrganizationInviteRequest.email) - return _impl_.email_.Release(); -} -inline void ResendOrganizationInviteRequest::set_allocated_email(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.email_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.email_.IsDefault()) { - _impl_.email_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ResendOrganizationInviteRequest.email) +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* GetRobotPartLogsRequest::_internal_mutable_start() { + _has_bits_[0] |= 0x00000008u; + if (start_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + start_ = p; + } + return start_; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* GetRobotPartLogsRequest::mutable_start() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_start(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRobotPartLogsRequest.start) + return _msg; +} +inline void GetRobotPartLogsRequest::set_allocated_start(::PROTOBUF_NAMESPACE_ID::Timestamp* start) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(start_); + } + if (start) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(start)); + if (message_arena != submessage_arena) { + start = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, start, submessage_arena); + } + _has_bits_[0] |= 0x00000008u; + } else { + _has_bits_[0] &= ~0x00000008u; + } + start_ = start; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetRobotPartLogsRequest.start) } -// ------------------------------------------------------------------- - -// ResendOrganizationInviteResponse - -// .viam.app.v1.OrganizationInvite invite = 1 [json_name = "invite"]; -inline bool ResendOrganizationInviteResponse::has_invite() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.invite_ != nullptr); +// optional .google.protobuf.Timestamp end = 7 [json_name = "end"]; +inline bool GetRobotPartLogsRequest::_internal_has_end() const { + bool value = (_has_bits_[0] & 0x00000010u) != 0; + PROTOBUF_ASSUME(!value || end_ != nullptr); return value; } -inline void ResendOrganizationInviteResponse::clear_invite() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.invite_ != nullptr) _impl_.invite_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; +inline bool GetRobotPartLogsRequest::has_end() const { + return _internal_has_end(); } -inline const ::viam::app::v1::OrganizationInvite& ResendOrganizationInviteResponse::_internal_invite() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::OrganizationInvite* p = _impl_.invite_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_OrganizationInvite_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& GetRobotPartLogsRequest::_internal_end() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = end_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); } -inline const ::viam::app::v1::OrganizationInvite& ResendOrganizationInviteResponse::invite() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.ResendOrganizationInviteResponse.invite) - return _internal_invite(); +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& GetRobotPartLogsRequest::end() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotPartLogsRequest.end) + return _internal_end(); } -inline void ResendOrganizationInviteResponse::unsafe_arena_set_allocated_invite(::viam::app::v1::OrganizationInvite* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.invite_); +inline void GetRobotPartLogsRequest::unsafe_arena_set_allocated_end( + ::PROTOBUF_NAMESPACE_ID::Timestamp* end) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(end_); } - _impl_.invite_ = reinterpret_cast<::viam::app::v1::OrganizationInvite*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + end_ = end; + if (end) { + _has_bits_[0] |= 0x00000010u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; + _has_bits_[0] &= ~0x00000010u; } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.ResendOrganizationInviteResponse.invite) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.GetRobotPartLogsRequest.end) } -inline ::viam::app::v1::OrganizationInvite* ResendOrganizationInviteResponse::release_invite() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::OrganizationInvite* released = _impl_.invite_; - _impl_.invite_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* GetRobotPartLogsRequest::release_end() { + _has_bits_[0] &= ~0x00000010u; + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = end_; + end_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::viam::app::v1::OrganizationInvite* ResendOrganizationInviteResponse::unsafe_arena_release_invite() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.ResendOrganizationInviteResponse.invite) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::OrganizationInvite* temp = _impl_.invite_; - _impl_.invite_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* GetRobotPartLogsRequest::unsafe_arena_release_end() { + // @@protoc_insertion_point(field_release:viam.app.v1.GetRobotPartLogsRequest.end) + _has_bits_[0] &= ~0x00000010u; + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = end_; + end_ = nullptr; return temp; } -inline ::viam::app::v1::OrganizationInvite* ResendOrganizationInviteResponse::_internal_mutable_invite() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.invite_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::OrganizationInvite>(GetArena()); - _impl_.invite_ = reinterpret_cast<::viam::app::v1::OrganizationInvite*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* GetRobotPartLogsRequest::_internal_mutable_end() { + _has_bits_[0] |= 0x00000010u; + if (end_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + end_ = p; } - return _impl_.invite_; + return end_; } -inline ::viam::app::v1::OrganizationInvite* ResendOrganizationInviteResponse::mutable_invite() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::viam::app::v1::OrganizationInvite* _msg = _internal_mutable_invite(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.ResendOrganizationInviteResponse.invite) +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* GetRobotPartLogsRequest::mutable_end() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_end(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRobotPartLogsRequest.end) return _msg; } -inline void ResendOrganizationInviteResponse::set_allocated_invite(::viam::app::v1::OrganizationInvite* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetRobotPartLogsRequest::set_allocated_end(::PROTOBUF_NAMESPACE_ID::Timestamp* end) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::OrganizationInvite*>(_impl_.invite_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(end_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::OrganizationInvite*>(value)->GetArena(); + if (end) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(end)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + end = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, end, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + _has_bits_[0] |= 0x00000010u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; + _has_bits_[0] &= ~0x00000010u; } - - _impl_.invite_ = reinterpret_cast<::viam::app::v1::OrganizationInvite*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ResendOrganizationInviteResponse.invite) + end_ = end; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetRobotPartLogsRequest.end) } -// ------------------------------------------------------------------- - -// DeleteOrganizationMemberRequest - -// string organization_id = 1 [json_name = "organizationId"]; -inline void DeleteOrganizationMemberRequest::clear_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.ClearToEmpty(); -} -inline const std::string& DeleteOrganizationMemberRequest::organization_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.DeleteOrganizationMemberRequest.organization_id) - return _internal_organization_id(); +// optional int64 limit = 8 [json_name = "limit"]; +inline bool GetRobotPartLogsRequest::_internal_has_limit() const { + bool value = (_has_bits_[0] & 0x00000020u) != 0; + return value; } -template -inline PROTOBUF_ALWAYS_INLINE void DeleteOrganizationMemberRequest::set_organization_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.DeleteOrganizationMemberRequest.organization_id) +inline bool GetRobotPartLogsRequest::has_limit() const { + return _internal_has_limit(); } -inline std::string* DeleteOrganizationMemberRequest::mutable_organization_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_organization_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.DeleteOrganizationMemberRequest.organization_id) - return _s; +inline void GetRobotPartLogsRequest::clear_limit() { + limit_ = int64_t{0}; + _has_bits_[0] &= ~0x00000020u; } -inline const std::string& DeleteOrganizationMemberRequest::_internal_organization_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.organization_id_.Get(); +inline int64_t GetRobotPartLogsRequest::_internal_limit() const { + return limit_; } -inline void DeleteOrganizationMemberRequest::_internal_set_organization_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(value, GetArena()); +inline int64_t GetRobotPartLogsRequest::limit() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotPartLogsRequest.limit) + return _internal_limit(); } -inline std::string* DeleteOrganizationMemberRequest::_internal_mutable_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.organization_id_.Mutable( GetArena()); +inline void GetRobotPartLogsRequest::_internal_set_limit(int64_t value) { + _has_bits_[0] |= 0x00000020u; + limit_ = value; } -inline std::string* DeleteOrganizationMemberRequest::release_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.DeleteOrganizationMemberRequest.organization_id) - return _impl_.organization_id_.Release(); -} -inline void DeleteOrganizationMemberRequest::set_allocated_organization_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.organization_id_.IsDefault()) { - _impl_.organization_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.DeleteOrganizationMemberRequest.organization_id) +inline void GetRobotPartLogsRequest::set_limit(int64_t value) { + _internal_set_limit(value); + // @@protoc_insertion_point(field_set:viam.app.v1.GetRobotPartLogsRequest.limit) } -// string user_id = 2 [json_name = "userId"]; -inline void DeleteOrganizationMemberRequest::clear_user_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.user_id_.ClearToEmpty(); +// optional string source = 9 [json_name = "source"]; +inline bool GetRobotPartLogsRequest::_internal_has_source() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; } -inline const std::string& DeleteOrganizationMemberRequest::user_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.DeleteOrganizationMemberRequest.user_id) - return _internal_user_id(); +inline bool GetRobotPartLogsRequest::has_source() const { + return _internal_has_source(); } -template -inline PROTOBUF_ALWAYS_INLINE void DeleteOrganizationMemberRequest::set_user_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.user_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.DeleteOrganizationMemberRequest.user_id) +inline void GetRobotPartLogsRequest::clear_source() { + source_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000004u; } -inline std::string* DeleteOrganizationMemberRequest::mutable_user_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_user_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.DeleteOrganizationMemberRequest.user_id) +inline const std::string& GetRobotPartLogsRequest::source() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotPartLogsRequest.source) + return _internal_source(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetRobotPartLogsRequest::set_source(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000004u; + source_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.GetRobotPartLogsRequest.source) +} +inline std::string* GetRobotPartLogsRequest::mutable_source() { + std::string* _s = _internal_mutable_source(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRobotPartLogsRequest.source) return _s; } -inline const std::string& DeleteOrganizationMemberRequest::_internal_user_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.user_id_.Get(); +inline const std::string& GetRobotPartLogsRequest::_internal_source() const { + return source_.Get(); } -inline void DeleteOrganizationMemberRequest::_internal_set_user_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.user_id_.Set(value, GetArena()); +inline void GetRobotPartLogsRequest::_internal_set_source(const std::string& value) { + _has_bits_[0] |= 0x00000004u; + source_.Set(value, GetArenaForAllocation()); } -inline std::string* DeleteOrganizationMemberRequest::_internal_mutable_user_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.user_id_.Mutable( GetArena()); +inline std::string* GetRobotPartLogsRequest::_internal_mutable_source() { + _has_bits_[0] |= 0x00000004u; + return source_.Mutable(GetArenaForAllocation()); } -inline std::string* DeleteOrganizationMemberRequest::release_user_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.DeleteOrganizationMemberRequest.user_id) - return _impl_.user_id_.Release(); -} -inline void DeleteOrganizationMemberRequest::set_allocated_user_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.user_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.user_id_.IsDefault()) { - _impl_.user_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.DeleteOrganizationMemberRequest.user_id) +inline std::string* GetRobotPartLogsRequest::release_source() { + // @@protoc_insertion_point(field_release:viam.app.v1.GetRobotPartLogsRequest.source) + if (!_internal_has_source()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000004u; + auto* p = source_.Release(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (source_.IsDefault()) { + source_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; +} +inline void GetRobotPartLogsRequest::set_allocated_source(std::string* source) { + if (source != nullptr) { + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + source_.SetAllocated(source, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (source_.IsDefault()) { + source_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetRobotPartLogsRequest.source) } // ------------------------------------------------------------------- -// DeleteOrganizationMemberResponse - -// ------------------------------------------------------------------- - -// BillingAddress +// GetRobotPartLogsResponse -// string address_line_1 = 1 [json_name = "addressLine1"]; -inline void BillingAddress::clear_address_line_1() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.address_line_1_.ClearToEmpty(); +// repeated .viam.common.v1.LogEntry logs = 1 [json_name = "logs"]; +inline int GetRobotPartLogsResponse::_internal_logs_size() const { + return logs_.size(); } -inline const std::string& BillingAddress::address_line_1() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.BillingAddress.address_line_1) - return _internal_address_line_1(); +inline int GetRobotPartLogsResponse::logs_size() const { + return _internal_logs_size(); } -template -inline PROTOBUF_ALWAYS_INLINE void BillingAddress::set_address_line_1(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.address_line_1_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.BillingAddress.address_line_1) +inline ::viam::common::v1::LogEntry* GetRobotPartLogsResponse::mutable_logs(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRobotPartLogsResponse.logs) + return logs_.Mutable(index); } -inline std::string* BillingAddress::mutable_address_line_1() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_address_line_1(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.BillingAddress.address_line_1) - return _s; +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::LogEntry >* +GetRobotPartLogsResponse::mutable_logs() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.GetRobotPartLogsResponse.logs) + return &logs_; } -inline const std::string& BillingAddress::_internal_address_line_1() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.address_line_1_.Get(); +inline const ::viam::common::v1::LogEntry& GetRobotPartLogsResponse::_internal_logs(int index) const { + return logs_.Get(index); } -inline void BillingAddress::_internal_set_address_line_1(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.address_line_1_.Set(value, GetArena()); +inline const ::viam::common::v1::LogEntry& GetRobotPartLogsResponse::logs(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotPartLogsResponse.logs) + return _internal_logs(index); } -inline std::string* BillingAddress::_internal_mutable_address_line_1() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.address_line_1_.Mutable( GetArena()); +inline ::viam::common::v1::LogEntry* GetRobotPartLogsResponse::_internal_add_logs() { + return logs_.Add(); } -inline std::string* BillingAddress::release_address_line_1() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.BillingAddress.address_line_1) - return _impl_.address_line_1_.Release(); -} -inline void BillingAddress::set_allocated_address_line_1(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.address_line_1_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.address_line_1_.IsDefault()) { - _impl_.address_line_1_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.BillingAddress.address_line_1) +inline ::viam::common::v1::LogEntry* GetRobotPartLogsResponse::add_logs() { + ::viam::common::v1::LogEntry* _add = _internal_add_logs(); + // @@protoc_insertion_point(field_add:viam.app.v1.GetRobotPartLogsResponse.logs) + return _add; } - -// optional string address_line_2 = 2 [json_name = "addressLine2"]; -inline bool BillingAddress::has_address_line_2() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - return value; +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::LogEntry >& +GetRobotPartLogsResponse::logs() const { + // @@protoc_insertion_point(field_list:viam.app.v1.GetRobotPartLogsResponse.logs) + return logs_; } -inline void BillingAddress::clear_address_line_2() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.address_line_2_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000001u; + +// string next_page_token = 2 [json_name = "nextPageToken"]; +inline void GetRobotPartLogsResponse::clear_next_page_token() { + next_page_token_.ClearToEmpty(); } -inline const std::string& BillingAddress::address_line_2() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.BillingAddress.address_line_2) - return _internal_address_line_2(); +inline const std::string& GetRobotPartLogsResponse::next_page_token() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotPartLogsResponse.next_page_token) + return _internal_next_page_token(); } -template -inline PROTOBUF_ALWAYS_INLINE void BillingAddress::set_address_line_2(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.address_line_2_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.BillingAddress.address_line_2) +template +inline PROTOBUF_ALWAYS_INLINE +void GetRobotPartLogsResponse::set_next_page_token(ArgT0&& arg0, ArgT... args) { + + next_page_token_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.GetRobotPartLogsResponse.next_page_token) } -inline std::string* BillingAddress::mutable_address_line_2() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_address_line_2(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.BillingAddress.address_line_2) +inline std::string* GetRobotPartLogsResponse::mutable_next_page_token() { + std::string* _s = _internal_mutable_next_page_token(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRobotPartLogsResponse.next_page_token) return _s; } -inline const std::string& BillingAddress::_internal_address_line_2() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.address_line_2_.Get(); +inline const std::string& GetRobotPartLogsResponse::_internal_next_page_token() const { + return next_page_token_.Get(); } -inline void BillingAddress::_internal_set_address_line_2(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.address_line_2_.Set(value, GetArena()); +inline void GetRobotPartLogsResponse::_internal_set_next_page_token(const std::string& value) { + + next_page_token_.Set(value, GetArenaForAllocation()); } -inline std::string* BillingAddress::_internal_mutable_address_line_2() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.address_line_2_.Mutable( GetArena()); +inline std::string* GetRobotPartLogsResponse::_internal_mutable_next_page_token() { + + return next_page_token_.Mutable(GetArenaForAllocation()); } -inline std::string* BillingAddress::release_address_line_2() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.BillingAddress.address_line_2) - if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { - return nullptr; - } - _impl_._has_bits_[0] &= ~0x00000001u; - auto* released = _impl_.address_line_2_.Release(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.address_line_2_.Set("", GetArena()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return released; +inline std::string* GetRobotPartLogsResponse::release_next_page_token() { + // @@protoc_insertion_point(field_release:viam.app.v1.GetRobotPartLogsResponse.next_page_token) + return next_page_token_.Release(); } -inline void BillingAddress::set_allocated_address_line_2(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; +inline void GetRobotPartLogsResponse::set_allocated_next_page_token(std::string* next_page_token) { + if (next_page_token != nullptr) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - _impl_.address_line_2_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.address_line_2_.IsDefault()) { - _impl_.address_line_2_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.BillingAddress.address_line_2) + next_page_token_.SetAllocated(next_page_token, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (next_page_token_.IsDefault()) { + next_page_token_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetRobotPartLogsResponse.next_page_token) } -// string city = 3 [json_name = "city"]; -inline void BillingAddress::clear_city() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.city_.ClearToEmpty(); +// ------------------------------------------------------------------- + +// TailRobotPartLogsRequest + +// string id = 1 [json_name = "id"]; +inline void TailRobotPartLogsRequest::clear_id() { + id_.ClearToEmpty(); } -inline const std::string& BillingAddress::city() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.BillingAddress.city) - return _internal_city(); +inline const std::string& TailRobotPartLogsRequest::id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.TailRobotPartLogsRequest.id) + return _internal_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void BillingAddress::set_city(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.city_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.BillingAddress.city) +template +inline PROTOBUF_ALWAYS_INLINE +void TailRobotPartLogsRequest::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.TailRobotPartLogsRequest.id) } -inline std::string* BillingAddress::mutable_city() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_city(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.BillingAddress.city) +inline std::string* TailRobotPartLogsRequest::mutable_id() { + std::string* _s = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.TailRobotPartLogsRequest.id) return _s; } -inline const std::string& BillingAddress::_internal_city() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.city_.Get(); +inline const std::string& TailRobotPartLogsRequest::_internal_id() const { + return id_.Get(); } -inline void BillingAddress::_internal_set_city(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.city_.Set(value, GetArena()); +inline void TailRobotPartLogsRequest::_internal_set_id(const std::string& value) { + + id_.Set(value, GetArenaForAllocation()); } -inline std::string* BillingAddress::_internal_mutable_city() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.city_.Mutable( GetArena()); +inline std::string* TailRobotPartLogsRequest::_internal_mutable_id() { + + return id_.Mutable(GetArenaForAllocation()); } -inline std::string* BillingAddress::release_city() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.BillingAddress.city) - return _impl_.city_.Release(); -} -inline void BillingAddress::set_allocated_city(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.city_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.city_.IsDefault()) { - _impl_.city_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.BillingAddress.city) +inline std::string* TailRobotPartLogsRequest::release_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.TailRobotPartLogsRequest.id) + return id_.Release(); } - -// string state = 4 [json_name = "state"]; -inline void BillingAddress::clear_state() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.state_.ClearToEmpty(); +inline void TailRobotPartLogsRequest::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.TailRobotPartLogsRequest.id) } -inline const std::string& BillingAddress::state() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.BillingAddress.state) - return _internal_state(); + +// bool errors_only = 2 [json_name = "errorsOnly"]; +inline void TailRobotPartLogsRequest::clear_errors_only() { + errors_only_ = false; } -template -inline PROTOBUF_ALWAYS_INLINE void BillingAddress::set_state(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.state_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.BillingAddress.state) +inline bool TailRobotPartLogsRequest::_internal_errors_only() const { + return errors_only_; } -inline std::string* BillingAddress::mutable_state() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_state(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.BillingAddress.state) - return _s; +inline bool TailRobotPartLogsRequest::errors_only() const { + // @@protoc_insertion_point(field_get:viam.app.v1.TailRobotPartLogsRequest.errors_only) + return _internal_errors_only(); } -inline const std::string& BillingAddress::_internal_state() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.state_.Get(); +inline void TailRobotPartLogsRequest::_internal_set_errors_only(bool value) { + + errors_only_ = value; } -inline void BillingAddress::_internal_set_state(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.state_.Set(value, GetArena()); +inline void TailRobotPartLogsRequest::set_errors_only(bool value) { + _internal_set_errors_only(value); + // @@protoc_insertion_point(field_set:viam.app.v1.TailRobotPartLogsRequest.errors_only) } -inline std::string* BillingAddress::_internal_mutable_state() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.state_.Mutable( GetArena()); + +// optional string filter = 3 [json_name = "filter"]; +inline bool TailRobotPartLogsRequest::_internal_has_filter() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; } -inline std::string* BillingAddress::release_state() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.BillingAddress.state) - return _impl_.state_.Release(); -} -inline void BillingAddress::set_allocated_state(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.state_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.state_.IsDefault()) { - _impl_.state_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.BillingAddress.state) +inline bool TailRobotPartLogsRequest::has_filter() const { + return _internal_has_filter(); } - -// string zipcode = 5 [json_name = "zipcode"]; -inline void BillingAddress::clear_zipcode() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.zipcode_.ClearToEmpty(); +inline void TailRobotPartLogsRequest::clear_filter() { + filter_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; } -inline const std::string& BillingAddress::zipcode() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.BillingAddress.zipcode) - return _internal_zipcode(); +inline const std::string& TailRobotPartLogsRequest::filter() const { + // @@protoc_insertion_point(field_get:viam.app.v1.TailRobotPartLogsRequest.filter) + return _internal_filter(); } -template -inline PROTOBUF_ALWAYS_INLINE void BillingAddress::set_zipcode(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.zipcode_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.BillingAddress.zipcode) +template +inline PROTOBUF_ALWAYS_INLINE +void TailRobotPartLogsRequest::set_filter(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + filter_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.TailRobotPartLogsRequest.filter) } -inline std::string* BillingAddress::mutable_zipcode() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_zipcode(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.BillingAddress.zipcode) +inline std::string* TailRobotPartLogsRequest::mutable_filter() { + std::string* _s = _internal_mutable_filter(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.TailRobotPartLogsRequest.filter) return _s; } -inline const std::string& BillingAddress::_internal_zipcode() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.zipcode_.Get(); +inline const std::string& TailRobotPartLogsRequest::_internal_filter() const { + return filter_.Get(); } -inline void BillingAddress::_internal_set_zipcode(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.zipcode_.Set(value, GetArena()); +inline void TailRobotPartLogsRequest::_internal_set_filter(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + filter_.Set(value, GetArenaForAllocation()); } -inline std::string* BillingAddress::_internal_mutable_zipcode() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.zipcode_.Mutable( GetArena()); +inline std::string* TailRobotPartLogsRequest::_internal_mutable_filter() { + _has_bits_[0] |= 0x00000001u; + return filter_.Mutable(GetArenaForAllocation()); } -inline std::string* BillingAddress::release_zipcode() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.BillingAddress.zipcode) - return _impl_.zipcode_.Release(); -} -inline void BillingAddress::set_allocated_zipcode(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.zipcode_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.zipcode_.IsDefault()) { - _impl_.zipcode_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.BillingAddress.zipcode) +inline std::string* TailRobotPartLogsRequest::release_filter() { + // @@protoc_insertion_point(field_release:viam.app.v1.TailRobotPartLogsRequest.filter) + if (!_internal_has_filter()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + auto* p = filter_.Release(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (filter_.IsDefault()) { + filter_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; +} +inline void TailRobotPartLogsRequest::set_allocated_filter(std::string* filter) { + if (filter != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + filter_.SetAllocated(filter, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (filter_.IsDefault()) { + filter_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.TailRobotPartLogsRequest.filter) } // ------------------------------------------------------------------- -// EnableBillingServiceRequest +// TailRobotPartLogsResponse -// string org_id = 1 [json_name = "orgId"]; -inline void EnableBillingServiceRequest::clear_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.org_id_.ClearToEmpty(); +// repeated .viam.common.v1.LogEntry logs = 1 [json_name = "logs"]; +inline int TailRobotPartLogsResponse::_internal_logs_size() const { + return logs_.size(); } -inline const std::string& EnableBillingServiceRequest::org_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.EnableBillingServiceRequest.org_id) - return _internal_org_id(); +inline int TailRobotPartLogsResponse::logs_size() const { + return _internal_logs_size(); } -template -inline PROTOBUF_ALWAYS_INLINE void EnableBillingServiceRequest::set_org_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.org_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.EnableBillingServiceRequest.org_id) +inline ::viam::common::v1::LogEntry* TailRobotPartLogsResponse::mutable_logs(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.TailRobotPartLogsResponse.logs) + return logs_.Mutable(index); } -inline std::string* EnableBillingServiceRequest::mutable_org_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_org_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.EnableBillingServiceRequest.org_id) - return _s; +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::LogEntry >* +TailRobotPartLogsResponse::mutable_logs() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.TailRobotPartLogsResponse.logs) + return &logs_; } -inline const std::string& EnableBillingServiceRequest::_internal_org_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.org_id_.Get(); +inline const ::viam::common::v1::LogEntry& TailRobotPartLogsResponse::_internal_logs(int index) const { + return logs_.Get(index); } -inline void EnableBillingServiceRequest::_internal_set_org_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.org_id_.Set(value, GetArena()); +inline const ::viam::common::v1::LogEntry& TailRobotPartLogsResponse::logs(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.TailRobotPartLogsResponse.logs) + return _internal_logs(index); } -inline std::string* EnableBillingServiceRequest::_internal_mutable_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.org_id_.Mutable( GetArena()); +inline ::viam::common::v1::LogEntry* TailRobotPartLogsResponse::_internal_add_logs() { + return logs_.Add(); } -inline std::string* EnableBillingServiceRequest::release_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.EnableBillingServiceRequest.org_id) - return _impl_.org_id_.Release(); -} -inline void EnableBillingServiceRequest::set_allocated_org_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.org_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.org_id_.IsDefault()) { - _impl_.org_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.EnableBillingServiceRequest.org_id) +inline ::viam::common::v1::LogEntry* TailRobotPartLogsResponse::add_logs() { + ::viam::common::v1::LogEntry* _add = _internal_add_logs(); + // @@protoc_insertion_point(field_add:viam.app.v1.TailRobotPartLogsResponse.logs) + return _add; } - -// .viam.app.v1.BillingAddress billing_address = 2 [json_name = "billingAddress"]; -inline bool EnableBillingServiceRequest::has_billing_address() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.billing_address_ != nullptr); - return value; +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::LogEntry >& +TailRobotPartLogsResponse::logs() const { + // @@protoc_insertion_point(field_list:viam.app.v1.TailRobotPartLogsResponse.logs) + return logs_; } -inline void EnableBillingServiceRequest::clear_billing_address() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.billing_address_ != nullptr) _impl_.billing_address_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + +// ------------------------------------------------------------------- + +// GetRobotPartHistoryRequest + +// string id = 1 [json_name = "id"]; +inline void GetRobotPartHistoryRequest::clear_id() { + id_.ClearToEmpty(); } -inline const ::viam::app::v1::BillingAddress& EnableBillingServiceRequest::_internal_billing_address() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::BillingAddress* p = _impl_.billing_address_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_BillingAddress_default_instance_); +inline const std::string& GetRobotPartHistoryRequest::id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotPartHistoryRequest.id) + return _internal_id(); } -inline const ::viam::app::v1::BillingAddress& EnableBillingServiceRequest::billing_address() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.EnableBillingServiceRequest.billing_address) - return _internal_billing_address(); +template +inline PROTOBUF_ALWAYS_INLINE +void GetRobotPartHistoryRequest::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.GetRobotPartHistoryRequest.id) } -inline void EnableBillingServiceRequest::unsafe_arena_set_allocated_billing_address(::viam::app::v1::BillingAddress* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.billing_address_); - } - _impl_.billing_address_ = reinterpret_cast<::viam::app::v1::BillingAddress*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.EnableBillingServiceRequest.billing_address) +inline std::string* GetRobotPartHistoryRequest::mutable_id() { + std::string* _s = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRobotPartHistoryRequest.id) + return _s; } -inline ::viam::app::v1::BillingAddress* EnableBillingServiceRequest::release_billing_address() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::BillingAddress* released = _impl_.billing_address_; - _impl_.billing_address_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; +inline const std::string& GetRobotPartHistoryRequest::_internal_id() const { + return id_.Get(); } -inline ::viam::app::v1::BillingAddress* EnableBillingServiceRequest::unsafe_arena_release_billing_address() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.EnableBillingServiceRequest.billing_address) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::BillingAddress* temp = _impl_.billing_address_; - _impl_.billing_address_ = nullptr; - return temp; +inline void GetRobotPartHistoryRequest::_internal_set_id(const std::string& value) { + + id_.Set(value, GetArenaForAllocation()); } -inline ::viam::app::v1::BillingAddress* EnableBillingServiceRequest::_internal_mutable_billing_address() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.billing_address_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::BillingAddress>(GetArena()); - _impl_.billing_address_ = reinterpret_cast<::viam::app::v1::BillingAddress*>(p); - } - return _impl_.billing_address_; +inline std::string* GetRobotPartHistoryRequest::_internal_mutable_id() { + + return id_.Mutable(GetArenaForAllocation()); } -inline ::viam::app::v1::BillingAddress* EnableBillingServiceRequest::mutable_billing_address() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::viam::app::v1::BillingAddress* _msg = _internal_mutable_billing_address(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.EnableBillingServiceRequest.billing_address) - return _msg; +inline std::string* GetRobotPartHistoryRequest::release_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.GetRobotPartHistoryRequest.id) + return id_.Release(); } -inline void EnableBillingServiceRequest::set_allocated_billing_address(::viam::app::v1::BillingAddress* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::BillingAddress*>(_impl_.billing_address_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::BillingAddress*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; +inline void GetRobotPartHistoryRequest::set_allocated_id(std::string* id) { + if (id != nullptr) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.billing_address_ = reinterpret_cast<::viam::app::v1::BillingAddress*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.EnableBillingServiceRequest.billing_address) + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetRobotPartHistoryRequest.id) } // ------------------------------------------------------------------- -// EnableBillingServiceResponse +// GetRobotPartHistoryResponse + +// repeated .viam.app.v1.RobotPartHistoryEntry history = 1 [json_name = "history"]; +inline int GetRobotPartHistoryResponse::_internal_history_size() const { + return history_.size(); +} +inline int GetRobotPartHistoryResponse::history_size() const { + return _internal_history_size(); +} +inline void GetRobotPartHistoryResponse::clear_history() { + history_.Clear(); +} +inline ::viam::app::v1::RobotPartHistoryEntry* GetRobotPartHistoryResponse::mutable_history(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRobotPartHistoryResponse.history) + return history_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::RobotPartHistoryEntry >* +GetRobotPartHistoryResponse::mutable_history() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.GetRobotPartHistoryResponse.history) + return &history_; +} +inline const ::viam::app::v1::RobotPartHistoryEntry& GetRobotPartHistoryResponse::_internal_history(int index) const { + return history_.Get(index); +} +inline const ::viam::app::v1::RobotPartHistoryEntry& GetRobotPartHistoryResponse::history(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotPartHistoryResponse.history) + return _internal_history(index); +} +inline ::viam::app::v1::RobotPartHistoryEntry* GetRobotPartHistoryResponse::_internal_add_history() { + return history_.Add(); +} +inline ::viam::app::v1::RobotPartHistoryEntry* GetRobotPartHistoryResponse::add_history() { + ::viam::app::v1::RobotPartHistoryEntry* _add = _internal_add_history(); + // @@protoc_insertion_point(field_add:viam.app.v1.GetRobotPartHistoryResponse.history) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::RobotPartHistoryEntry >& +GetRobotPartHistoryResponse::history() const { + // @@protoc_insertion_point(field_list:viam.app.v1.GetRobotPartHistoryResponse.history) + return history_; +} // ------------------------------------------------------------------- -// UpdateBillingServiceRequest +// UpdateRobotPartRequest -// string org_id = 1 [json_name = "orgId"]; -inline void UpdateBillingServiceRequest::clear_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.org_id_.ClearToEmpty(); +// string id = 1 [json_name = "id"]; +inline void UpdateRobotPartRequest::clear_id() { + id_.ClearToEmpty(); } -inline const std::string& UpdateBillingServiceRequest::org_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.UpdateBillingServiceRequest.org_id) - return _internal_org_id(); +inline const std::string& UpdateRobotPartRequest::id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateRobotPartRequest.id) + return _internal_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void UpdateRobotPartRequest::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateRobotPartRequest.id) +} +inline std::string* UpdateRobotPartRequest::mutable_id() { + std::string* _s = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateRobotPartRequest.id) + return _s; +} +inline const std::string& UpdateRobotPartRequest::_internal_id() const { + return id_.Get(); +} +inline void UpdateRobotPartRequest::_internal_set_id(const std::string& value) { + + id_.Set(value, GetArenaForAllocation()); +} +inline std::string* UpdateRobotPartRequest::_internal_mutable_id() { + + return id_.Mutable(GetArenaForAllocation()); +} +inline std::string* UpdateRobotPartRequest::release_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateRobotPartRequest.id) + return id_.Release(); +} +inline void UpdateRobotPartRequest::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateRobotPartRequest.id) +} + +// string name = 2 [json_name = "name"]; +inline void UpdateRobotPartRequest::clear_name() { + name_.ClearToEmpty(); +} +inline const std::string& UpdateRobotPartRequest::name() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateRobotPartRequest.name) + return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void UpdateBillingServiceRequest::set_org_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.org_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.UpdateBillingServiceRequest.org_id) +template +inline PROTOBUF_ALWAYS_INLINE +void UpdateRobotPartRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateRobotPartRequest.name) } -inline std::string* UpdateBillingServiceRequest::mutable_org_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_org_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateBillingServiceRequest.org_id) +inline std::string* UpdateRobotPartRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateRobotPartRequest.name) return _s; } -inline const std::string& UpdateBillingServiceRequest::_internal_org_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.org_id_.Get(); +inline const std::string& UpdateRobotPartRequest::_internal_name() const { + return name_.Get(); } -inline void UpdateBillingServiceRequest::_internal_set_org_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.org_id_.Set(value, GetArena()); +inline void UpdateRobotPartRequest::_internal_set_name(const std::string& value) { + + name_.Set(value, GetArenaForAllocation()); } -inline std::string* UpdateBillingServiceRequest::_internal_mutable_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.org_id_.Mutable( GetArena()); +inline std::string* UpdateRobotPartRequest::_internal_mutable_name() { + + return name_.Mutable(GetArenaForAllocation()); } -inline std::string* UpdateBillingServiceRequest::release_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.UpdateBillingServiceRequest.org_id) - return _impl_.org_id_.Release(); -} -inline void UpdateBillingServiceRequest::set_allocated_org_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.org_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.org_id_.IsDefault()) { - _impl_.org_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateBillingServiceRequest.org_id) +inline std::string* UpdateRobotPartRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateRobotPartRequest.name) + return name_.Release(); +} +inline void UpdateRobotPartRequest::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.app.v1.UpdateRobotPartRequest.name) } -// .viam.app.v1.BillingAddress billing_address = 2 [json_name = "billingAddress"]; -inline bool UpdateBillingServiceRequest::has_billing_address() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.billing_address_ != nullptr); - return value; +// .google.protobuf.Struct robot_config = 3 [json_name = "robotConfig"]; +inline bool UpdateRobotPartRequest::_internal_has_robot_config() const { + return this != internal_default_instance() && robot_config_ != nullptr; } -inline void UpdateBillingServiceRequest::clear_billing_address() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.billing_address_ != nullptr) _impl_.billing_address_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; +inline bool UpdateRobotPartRequest::has_robot_config() const { + return _internal_has_robot_config(); } -inline const ::viam::app::v1::BillingAddress& UpdateBillingServiceRequest::_internal_billing_address() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::BillingAddress* p = _impl_.billing_address_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_BillingAddress_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& UpdateRobotPartRequest::_internal_robot_config() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = robot_config_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::viam::app::v1::BillingAddress& UpdateBillingServiceRequest::billing_address() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.UpdateBillingServiceRequest.billing_address) - return _internal_billing_address(); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& UpdateRobotPartRequest::robot_config() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateRobotPartRequest.robot_config) + return _internal_robot_config(); } -inline void UpdateBillingServiceRequest::unsafe_arena_set_allocated_billing_address(::viam::app::v1::BillingAddress* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.billing_address_); +inline void UpdateRobotPartRequest::unsafe_arena_set_allocated_robot_config( + ::PROTOBUF_NAMESPACE_ID::Struct* robot_config) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(robot_config_); } - _impl_.billing_address_ = reinterpret_cast<::viam::app::v1::BillingAddress*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + robot_config_ = robot_config; + if (robot_config) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.UpdateBillingServiceRequest.billing_address) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.UpdateRobotPartRequest.robot_config) } -inline ::viam::app::v1::BillingAddress* UpdateBillingServiceRequest::release_billing_address() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::BillingAddress* released = _impl_.billing_address_; - _impl_.billing_address_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* UpdateRobotPartRequest::release_robot_config() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = robot_config_; + robot_config_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::viam::app::v1::BillingAddress* UpdateBillingServiceRequest::unsafe_arena_release_billing_address() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.UpdateBillingServiceRequest.billing_address) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::BillingAddress* temp = _impl_.billing_address_; - _impl_.billing_address_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* UpdateRobotPartRequest::unsafe_arena_release_robot_config() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateRobotPartRequest.robot_config) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = robot_config_; + robot_config_ = nullptr; return temp; } -inline ::viam::app::v1::BillingAddress* UpdateBillingServiceRequest::_internal_mutable_billing_address() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.billing_address_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::BillingAddress>(GetArena()); - _impl_.billing_address_ = reinterpret_cast<::viam::app::v1::BillingAddress*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* UpdateRobotPartRequest::_internal_mutable_robot_config() { + + if (robot_config_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + robot_config_ = p; } - return _impl_.billing_address_; + return robot_config_; } -inline ::viam::app::v1::BillingAddress* UpdateBillingServiceRequest::mutable_billing_address() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::viam::app::v1::BillingAddress* _msg = _internal_mutable_billing_address(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateBillingServiceRequest.billing_address) +inline ::PROTOBUF_NAMESPACE_ID::Struct* UpdateRobotPartRequest::mutable_robot_config() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_robot_config(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateRobotPartRequest.robot_config) return _msg; } -inline void UpdateBillingServiceRequest::set_allocated_billing_address(::viam::app::v1::BillingAddress* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void UpdateRobotPartRequest::set_allocated_robot_config(::PROTOBUF_NAMESPACE_ID::Struct* robot_config) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::BillingAddress*>(_impl_.billing_address_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(robot_config_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::BillingAddress*>(value)->GetArena(); + if (robot_config) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(robot_config)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + robot_config = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, robot_config, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.billing_address_ = reinterpret_cast<::viam::app::v1::BillingAddress*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateBillingServiceRequest.billing_address) + robot_config_ = robot_config; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateRobotPartRequest.robot_config) } // ------------------------------------------------------------------- -// UpdateBillingServiceResponse - -// ------------------------------------------------------------------- - -// GetBillingServiceConfigRequest +// UpdateRobotPartResponse -// string org_id = 1 [json_name = "orgId"]; -inline void GetBillingServiceConfigRequest::clear_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.org_id_.ClearToEmpty(); -} -inline const std::string& GetBillingServiceConfigRequest::org_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.GetBillingServiceConfigRequest.org_id) - return _internal_org_id(); -} -template -inline PROTOBUF_ALWAYS_INLINE void GetBillingServiceConfigRequest::set_org_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.org_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.GetBillingServiceConfigRequest.org_id) -} -inline std::string* GetBillingServiceConfigRequest::mutable_org_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_org_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.GetBillingServiceConfigRequest.org_id) - return _s; -} -inline const std::string& GetBillingServiceConfigRequest::_internal_org_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.org_id_.Get(); -} -inline void GetBillingServiceConfigRequest::_internal_set_org_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.org_id_.Set(value, GetArena()); -} -inline std::string* GetBillingServiceConfigRequest::_internal_mutable_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.org_id_.Mutable( GetArena()); -} -inline std::string* GetBillingServiceConfigRequest::release_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.GetBillingServiceConfigRequest.org_id) - return _impl_.org_id_.Release(); -} -inline void GetBillingServiceConfigRequest::set_allocated_org_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.org_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.org_id_.IsDefault()) { - _impl_.org_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetBillingServiceConfigRequest.org_id) +// .viam.app.v1.RobotPart part = 1 [json_name = "part"]; +inline bool UpdateRobotPartResponse::_internal_has_part() const { + return this != internal_default_instance() && part_ != nullptr; } - -// ------------------------------------------------------------------- - -// GetBillingServiceConfigResponse - -// .viam.app.v1.BillingAddress billing_address = 1 [json_name = "billingAddress"]; -inline bool GetBillingServiceConfigResponse::has_billing_address() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.billing_address_ != nullptr); - return value; +inline bool UpdateRobotPartResponse::has_part() const { + return _internal_has_part(); } -inline void GetBillingServiceConfigResponse::clear_billing_address() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.billing_address_ != nullptr) _impl_.billing_address_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; +inline void UpdateRobotPartResponse::clear_part() { + if (GetArenaForAllocation() == nullptr && part_ != nullptr) { + delete part_; + } + part_ = nullptr; } -inline const ::viam::app::v1::BillingAddress& GetBillingServiceConfigResponse::_internal_billing_address() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::BillingAddress* p = _impl_.billing_address_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_BillingAddress_default_instance_); +inline const ::viam::app::v1::RobotPart& UpdateRobotPartResponse::_internal_part() const { + const ::viam::app::v1::RobotPart* p = part_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_RobotPart_default_instance_); } -inline const ::viam::app::v1::BillingAddress& GetBillingServiceConfigResponse::billing_address() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.GetBillingServiceConfigResponse.billing_address) - return _internal_billing_address(); +inline const ::viam::app::v1::RobotPart& UpdateRobotPartResponse::part() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateRobotPartResponse.part) + return _internal_part(); } -inline void GetBillingServiceConfigResponse::unsafe_arena_set_allocated_billing_address(::viam::app::v1::BillingAddress* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.billing_address_); +inline void UpdateRobotPartResponse::unsafe_arena_set_allocated_part( + ::viam::app::v1::RobotPart* part) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(part_); } - _impl_.billing_address_ = reinterpret_cast<::viam::app::v1::BillingAddress*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + part_ = part; + if (part) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.GetBillingServiceConfigResponse.billing_address) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.UpdateRobotPartResponse.part) } -inline ::viam::app::v1::BillingAddress* GetBillingServiceConfigResponse::release_billing_address() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::BillingAddress* released = _impl_.billing_address_; - _impl_.billing_address_ = nullptr; +inline ::viam::app::v1::RobotPart* UpdateRobotPartResponse::release_part() { + + ::viam::app::v1::RobotPart* temp = part_; + part_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::viam::app::v1::BillingAddress* GetBillingServiceConfigResponse::unsafe_arena_release_billing_address() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.GetBillingServiceConfigResponse.billing_address) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::BillingAddress* temp = _impl_.billing_address_; - _impl_.billing_address_ = nullptr; +inline ::viam::app::v1::RobotPart* UpdateRobotPartResponse::unsafe_arena_release_part() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateRobotPartResponse.part) + + ::viam::app::v1::RobotPart* temp = part_; + part_ = nullptr; return temp; } -inline ::viam::app::v1::BillingAddress* GetBillingServiceConfigResponse::_internal_mutable_billing_address() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.billing_address_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::BillingAddress>(GetArena()); - _impl_.billing_address_ = reinterpret_cast<::viam::app::v1::BillingAddress*>(p); +inline ::viam::app::v1::RobotPart* UpdateRobotPartResponse::_internal_mutable_part() { + + if (part_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::RobotPart>(GetArenaForAllocation()); + part_ = p; } - return _impl_.billing_address_; + return part_; } -inline ::viam::app::v1::BillingAddress* GetBillingServiceConfigResponse::mutable_billing_address() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::viam::app::v1::BillingAddress* _msg = _internal_mutable_billing_address(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.GetBillingServiceConfigResponse.billing_address) +inline ::viam::app::v1::RobotPart* UpdateRobotPartResponse::mutable_part() { + ::viam::app::v1::RobotPart* _msg = _internal_mutable_part(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateRobotPartResponse.part) return _msg; } -inline void GetBillingServiceConfigResponse::set_allocated_billing_address(::viam::app::v1::BillingAddress* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void UpdateRobotPartResponse::set_allocated_part(::viam::app::v1::RobotPart* part) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::BillingAddress*>(_impl_.billing_address_); + delete part_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::BillingAddress*>(value)->GetArena(); + if (part) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(part); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + part = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, part, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.billing_address_ = reinterpret_cast<::viam::app::v1::BillingAddress*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetBillingServiceConfigResponse.billing_address) + part_ = part; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateRobotPartResponse.part) } -// string support_email = 2 [json_name = "supportEmail"]; -inline void GetBillingServiceConfigResponse::clear_support_email() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.support_email_.ClearToEmpty(); -} -inline const std::string& GetBillingServiceConfigResponse::support_email() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.GetBillingServiceConfigResponse.support_email) - return _internal_support_email(); -} -template -inline PROTOBUF_ALWAYS_INLINE void GetBillingServiceConfigResponse::set_support_email(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.support_email_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.GetBillingServiceConfigResponse.support_email) -} -inline std::string* GetBillingServiceConfigResponse::mutable_support_email() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_support_email(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.GetBillingServiceConfigResponse.support_email) - return _s; -} -inline const std::string& GetBillingServiceConfigResponse::_internal_support_email() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.support_email_.Get(); -} -inline void GetBillingServiceConfigResponse::_internal_set_support_email(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.support_email_.Set(value, GetArena()); -} -inline std::string* GetBillingServiceConfigResponse::_internal_mutable_support_email() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.support_email_.Mutable( GetArena()); -} -inline std::string* GetBillingServiceConfigResponse::release_support_email() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.GetBillingServiceConfigResponse.support_email) - return _impl_.support_email_.Release(); -} -inline void GetBillingServiceConfigResponse::set_allocated_support_email(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.support_email_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.support_email_.IsDefault()) { - _impl_.support_email_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetBillingServiceConfigResponse.support_email) -} +// ------------------------------------------------------------------- -// string logo_url = 3 [json_name = "logoUrl"]; -inline void GetBillingServiceConfigResponse::clear_logo_url() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.logo_url_.ClearToEmpty(); -} -inline const std::string& GetBillingServiceConfigResponse::logo_url() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.GetBillingServiceConfigResponse.logo_url) - return _internal_logo_url(); -} -template -inline PROTOBUF_ALWAYS_INLINE void GetBillingServiceConfigResponse::set_logo_url(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.logo_url_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.GetBillingServiceConfigResponse.logo_url) -} -inline std::string* GetBillingServiceConfigResponse::mutable_logo_url() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_logo_url(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.GetBillingServiceConfigResponse.logo_url) - return _s; -} -inline const std::string& GetBillingServiceConfigResponse::_internal_logo_url() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.logo_url_.Get(); -} -inline void GetBillingServiceConfigResponse::_internal_set_logo_url(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.logo_url_.Set(value, GetArena()); -} -inline std::string* GetBillingServiceConfigResponse::_internal_mutable_logo_url() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.logo_url_.Mutable( GetArena()); -} -inline std::string* GetBillingServiceConfigResponse::release_logo_url() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.GetBillingServiceConfigResponse.logo_url) - return _impl_.logo_url_.Release(); -} -inline void GetBillingServiceConfigResponse::set_allocated_logo_url(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.logo_url_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.logo_url_.IsDefault()) { - _impl_.logo_url_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetBillingServiceConfigResponse.logo_url) -} +// NewRobotPartRequest -// string billing_dashboard_url = 4 [json_name = "billingDashboardUrl"]; -inline void GetBillingServiceConfigResponse::clear_billing_dashboard_url() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.billing_dashboard_url_.ClearToEmpty(); +// string robot_id = 1 [json_name = "robotId"]; +inline void NewRobotPartRequest::clear_robot_id() { + robot_id_.ClearToEmpty(); } -inline const std::string& GetBillingServiceConfigResponse::billing_dashboard_url() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.GetBillingServiceConfigResponse.billing_dashboard_url) - return _internal_billing_dashboard_url(); +inline const std::string& NewRobotPartRequest::robot_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.NewRobotPartRequest.robot_id) + return _internal_robot_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetBillingServiceConfigResponse::set_billing_dashboard_url(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.billing_dashboard_url_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.GetBillingServiceConfigResponse.billing_dashboard_url) +template +inline PROTOBUF_ALWAYS_INLINE +void NewRobotPartRequest::set_robot_id(ArgT0&& arg0, ArgT... args) { + + robot_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.NewRobotPartRequest.robot_id) } -inline std::string* GetBillingServiceConfigResponse::mutable_billing_dashboard_url() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_billing_dashboard_url(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.GetBillingServiceConfigResponse.billing_dashboard_url) +inline std::string* NewRobotPartRequest::mutable_robot_id() { + std::string* _s = _internal_mutable_robot_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.NewRobotPartRequest.robot_id) return _s; } -inline const std::string& GetBillingServiceConfigResponse::_internal_billing_dashboard_url() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.billing_dashboard_url_.Get(); +inline const std::string& NewRobotPartRequest::_internal_robot_id() const { + return robot_id_.Get(); } -inline void GetBillingServiceConfigResponse::_internal_set_billing_dashboard_url(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.billing_dashboard_url_.Set(value, GetArena()); +inline void NewRobotPartRequest::_internal_set_robot_id(const std::string& value) { + + robot_id_.Set(value, GetArenaForAllocation()); } -inline std::string* GetBillingServiceConfigResponse::_internal_mutable_billing_dashboard_url() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.billing_dashboard_url_.Mutable( GetArena()); +inline std::string* NewRobotPartRequest::_internal_mutable_robot_id() { + + return robot_id_.Mutable(GetArenaForAllocation()); } -inline std::string* GetBillingServiceConfigResponse::release_billing_dashboard_url() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.GetBillingServiceConfigResponse.billing_dashboard_url) - return _impl_.billing_dashboard_url_.Release(); -} -inline void GetBillingServiceConfigResponse::set_allocated_billing_dashboard_url(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.billing_dashboard_url_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.billing_dashboard_url_.IsDefault()) { - _impl_.billing_dashboard_url_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetBillingServiceConfigResponse.billing_dashboard_url) +inline std::string* NewRobotPartRequest::release_robot_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.NewRobotPartRequest.robot_id) + return robot_id_.Release(); +} +inline void NewRobotPartRequest::set_allocated_robot_id(std::string* robot_id) { + if (robot_id != nullptr) { + + } else { + + } + robot_id_.SetAllocated(robot_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (robot_id_.IsDefault()) { + robot_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.NewRobotPartRequest.robot_id) } -// ------------------------------------------------------------------- - -// DisableBillingServiceRequest - -// string org_id = 1 [json_name = "orgId"]; -inline void DisableBillingServiceRequest::clear_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.org_id_.ClearToEmpty(); +// string part_name = 2 [json_name = "partName"]; +inline void NewRobotPartRequest::clear_part_name() { + part_name_.ClearToEmpty(); } -inline const std::string& DisableBillingServiceRequest::org_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.DisableBillingServiceRequest.org_id) - return _internal_org_id(); +inline const std::string& NewRobotPartRequest::part_name() const { + // @@protoc_insertion_point(field_get:viam.app.v1.NewRobotPartRequest.part_name) + return _internal_part_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void DisableBillingServiceRequest::set_org_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.org_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.DisableBillingServiceRequest.org_id) +template +inline PROTOBUF_ALWAYS_INLINE +void NewRobotPartRequest::set_part_name(ArgT0&& arg0, ArgT... args) { + + part_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.NewRobotPartRequest.part_name) } -inline std::string* DisableBillingServiceRequest::mutable_org_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_org_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.DisableBillingServiceRequest.org_id) +inline std::string* NewRobotPartRequest::mutable_part_name() { + std::string* _s = _internal_mutable_part_name(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.NewRobotPartRequest.part_name) return _s; } -inline const std::string& DisableBillingServiceRequest::_internal_org_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.org_id_.Get(); +inline const std::string& NewRobotPartRequest::_internal_part_name() const { + return part_name_.Get(); } -inline void DisableBillingServiceRequest::_internal_set_org_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.org_id_.Set(value, GetArena()); +inline void NewRobotPartRequest::_internal_set_part_name(const std::string& value) { + + part_name_.Set(value, GetArenaForAllocation()); } -inline std::string* DisableBillingServiceRequest::_internal_mutable_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.org_id_.Mutable( GetArena()); +inline std::string* NewRobotPartRequest::_internal_mutable_part_name() { + + return part_name_.Mutable(GetArenaForAllocation()); } -inline std::string* DisableBillingServiceRequest::release_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.DisableBillingServiceRequest.org_id) - return _impl_.org_id_.Release(); -} -inline void DisableBillingServiceRequest::set_allocated_org_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.org_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.org_id_.IsDefault()) { - _impl_.org_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.DisableBillingServiceRequest.org_id) +inline std::string* NewRobotPartRequest::release_part_name() { + // @@protoc_insertion_point(field_release:viam.app.v1.NewRobotPartRequest.part_name) + return part_name_.Release(); +} +inline void NewRobotPartRequest::set_allocated_part_name(std::string* part_name) { + if (part_name != nullptr) { + + } else { + + } + part_name_.SetAllocated(part_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (part_name_.IsDefault()) { + part_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.NewRobotPartRequest.part_name) } // ------------------------------------------------------------------- -// DisableBillingServiceResponse - -// ------------------------------------------------------------------- - -// OrganizationSetSupportEmailRequest +// NewRobotPartResponse -// string org_id = 1 [json_name = "orgId"]; -inline void OrganizationSetSupportEmailRequest::clear_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.org_id_.ClearToEmpty(); +// string part_id = 1 [json_name = "partId"]; +inline void NewRobotPartResponse::clear_part_id() { + part_id_.ClearToEmpty(); } -inline const std::string& OrganizationSetSupportEmailRequest::org_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.OrganizationSetSupportEmailRequest.org_id) - return _internal_org_id(); +inline const std::string& NewRobotPartResponse::part_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.NewRobotPartResponse.part_id) + return _internal_part_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void OrganizationSetSupportEmailRequest::set_org_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.org_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.OrganizationSetSupportEmailRequest.org_id) +template +inline PROTOBUF_ALWAYS_INLINE +void NewRobotPartResponse::set_part_id(ArgT0&& arg0, ArgT... args) { + + part_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.NewRobotPartResponse.part_id) } -inline std::string* OrganizationSetSupportEmailRequest::mutable_org_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_org_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.OrganizationSetSupportEmailRequest.org_id) +inline std::string* NewRobotPartResponse::mutable_part_id() { + std::string* _s = _internal_mutable_part_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.NewRobotPartResponse.part_id) return _s; } -inline const std::string& OrganizationSetSupportEmailRequest::_internal_org_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.org_id_.Get(); -} -inline void OrganizationSetSupportEmailRequest::_internal_set_org_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.org_id_.Set(value, GetArena()); -} -inline std::string* OrganizationSetSupportEmailRequest::_internal_mutable_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.org_id_.Mutable( GetArena()); -} -inline std::string* OrganizationSetSupportEmailRequest::release_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.OrganizationSetSupportEmailRequest.org_id) - return _impl_.org_id_.Release(); -} -inline void OrganizationSetSupportEmailRequest::set_allocated_org_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.org_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.org_id_.IsDefault()) { - _impl_.org_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.OrganizationSetSupportEmailRequest.org_id) -} - -// string email = 2 [json_name = "email"]; -inline void OrganizationSetSupportEmailRequest::clear_email() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.email_.ClearToEmpty(); -} -inline const std::string& OrganizationSetSupportEmailRequest::email() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.OrganizationSetSupportEmailRequest.email) - return _internal_email(); -} -template -inline PROTOBUF_ALWAYS_INLINE void OrganizationSetSupportEmailRequest::set_email(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.email_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.OrganizationSetSupportEmailRequest.email) -} -inline std::string* OrganizationSetSupportEmailRequest::mutable_email() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_email(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.OrganizationSetSupportEmailRequest.email) - return _s; +inline const std::string& NewRobotPartResponse::_internal_part_id() const { + return part_id_.Get(); } -inline const std::string& OrganizationSetSupportEmailRequest::_internal_email() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.email_.Get(); +inline void NewRobotPartResponse::_internal_set_part_id(const std::string& value) { + + part_id_.Set(value, GetArenaForAllocation()); } -inline void OrganizationSetSupportEmailRequest::_internal_set_email(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.email_.Set(value, GetArena()); +inline std::string* NewRobotPartResponse::_internal_mutable_part_id() { + + return part_id_.Mutable(GetArenaForAllocation()); } -inline std::string* OrganizationSetSupportEmailRequest::_internal_mutable_email() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.email_.Mutable( GetArena()); +inline std::string* NewRobotPartResponse::release_part_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.NewRobotPartResponse.part_id) + return part_id_.Release(); } -inline std::string* OrganizationSetSupportEmailRequest::release_email() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.OrganizationSetSupportEmailRequest.email) - return _impl_.email_.Release(); -} -inline void OrganizationSetSupportEmailRequest::set_allocated_email(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.email_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.email_.IsDefault()) { - _impl_.email_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.OrganizationSetSupportEmailRequest.email) +inline void NewRobotPartResponse::set_allocated_part_id(std::string* part_id) { + if (part_id != nullptr) { + + } else { + + } + part_id_.SetAllocated(part_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (part_id_.IsDefault()) { + part_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.NewRobotPartResponse.part_id) } // ------------------------------------------------------------------- -// OrganizationSetSupportEmailResponse - -// ------------------------------------------------------------------- - -// OrganizationGetSupportEmailRequest +// DeleteRobotPartRequest -// string org_id = 1 [json_name = "orgId"]; -inline void OrganizationGetSupportEmailRequest::clear_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.org_id_.ClearToEmpty(); +// string part_id = 1 [json_name = "partId"]; +inline void DeleteRobotPartRequest::clear_part_id() { + part_id_.ClearToEmpty(); } -inline const std::string& OrganizationGetSupportEmailRequest::org_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.OrganizationGetSupportEmailRequest.org_id) - return _internal_org_id(); +inline const std::string& DeleteRobotPartRequest::part_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.DeleteRobotPartRequest.part_id) + return _internal_part_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void OrganizationGetSupportEmailRequest::set_org_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.org_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.OrganizationGetSupportEmailRequest.org_id) +template +inline PROTOBUF_ALWAYS_INLINE +void DeleteRobotPartRequest::set_part_id(ArgT0&& arg0, ArgT... args) { + + part_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.DeleteRobotPartRequest.part_id) } -inline std::string* OrganizationGetSupportEmailRequest::mutable_org_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_org_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.OrganizationGetSupportEmailRequest.org_id) +inline std::string* DeleteRobotPartRequest::mutable_part_id() { + std::string* _s = _internal_mutable_part_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.DeleteRobotPartRequest.part_id) return _s; } -inline const std::string& OrganizationGetSupportEmailRequest::_internal_org_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.org_id_.Get(); +inline const std::string& DeleteRobotPartRequest::_internal_part_id() const { + return part_id_.Get(); } -inline void OrganizationGetSupportEmailRequest::_internal_set_org_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.org_id_.Set(value, GetArena()); +inline void DeleteRobotPartRequest::_internal_set_part_id(const std::string& value) { + + part_id_.Set(value, GetArenaForAllocation()); } -inline std::string* OrganizationGetSupportEmailRequest::_internal_mutable_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.org_id_.Mutable( GetArena()); +inline std::string* DeleteRobotPartRequest::_internal_mutable_part_id() { + + return part_id_.Mutable(GetArenaForAllocation()); } -inline std::string* OrganizationGetSupportEmailRequest::release_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.OrganizationGetSupportEmailRequest.org_id) - return _impl_.org_id_.Release(); -} -inline void OrganizationGetSupportEmailRequest::set_allocated_org_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.org_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.org_id_.IsDefault()) { - _impl_.org_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.OrganizationGetSupportEmailRequest.org_id) +inline std::string* DeleteRobotPartRequest::release_part_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.DeleteRobotPartRequest.part_id) + return part_id_.Release(); +} +inline void DeleteRobotPartRequest::set_allocated_part_id(std::string* part_id) { + if (part_id != nullptr) { + + } else { + + } + part_id_.SetAllocated(part_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (part_id_.IsDefault()) { + part_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.DeleteRobotPartRequest.part_id) } // ------------------------------------------------------------------- -// OrganizationGetSupportEmailResponse +// GetRobotAPIKeysRequest -// string email = 1 [json_name = "email"]; -inline void OrganizationGetSupportEmailResponse::clear_email() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.email_.ClearToEmpty(); +// string robot_id = 1 [json_name = "robotId"]; +inline void GetRobotAPIKeysRequest::clear_robot_id() { + robot_id_.ClearToEmpty(); } -inline const std::string& OrganizationGetSupportEmailResponse::email() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.OrganizationGetSupportEmailResponse.email) - return _internal_email(); +inline const std::string& GetRobotAPIKeysRequest::robot_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotAPIKeysRequest.robot_id) + return _internal_robot_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void OrganizationGetSupportEmailResponse::set_email(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.email_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.OrganizationGetSupportEmailResponse.email) +template +inline PROTOBUF_ALWAYS_INLINE +void GetRobotAPIKeysRequest::set_robot_id(ArgT0&& arg0, ArgT... args) { + + robot_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.GetRobotAPIKeysRequest.robot_id) } -inline std::string* OrganizationGetSupportEmailResponse::mutable_email() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_email(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.OrganizationGetSupportEmailResponse.email) +inline std::string* GetRobotAPIKeysRequest::mutable_robot_id() { + std::string* _s = _internal_mutable_robot_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRobotAPIKeysRequest.robot_id) return _s; } -inline const std::string& OrganizationGetSupportEmailResponse::_internal_email() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.email_.Get(); +inline const std::string& GetRobotAPIKeysRequest::_internal_robot_id() const { + return robot_id_.Get(); } -inline void OrganizationGetSupportEmailResponse::_internal_set_email(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.email_.Set(value, GetArena()); +inline void GetRobotAPIKeysRequest::_internal_set_robot_id(const std::string& value) { + + robot_id_.Set(value, GetArenaForAllocation()); } -inline std::string* OrganizationGetSupportEmailResponse::_internal_mutable_email() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.email_.Mutable( GetArena()); +inline std::string* GetRobotAPIKeysRequest::_internal_mutable_robot_id() { + + return robot_id_.Mutable(GetArenaForAllocation()); } -inline std::string* OrganizationGetSupportEmailResponse::release_email() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.OrganizationGetSupportEmailResponse.email) - return _impl_.email_.Release(); -} -inline void OrganizationGetSupportEmailResponse::set_allocated_email(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.email_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.email_.IsDefault()) { - _impl_.email_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.OrganizationGetSupportEmailResponse.email) +inline std::string* GetRobotAPIKeysRequest::release_robot_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.GetRobotAPIKeysRequest.robot_id) + return robot_id_.Release(); +} +inline void GetRobotAPIKeysRequest::set_allocated_robot_id(std::string* robot_id) { + if (robot_id != nullptr) { + + } else { + + } + robot_id_.SetAllocated(robot_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (robot_id_.IsDefault()) { + robot_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetRobotAPIKeysRequest.robot_id) } // ------------------------------------------------------------------- -// OrganizationIdentity +// APIKey // string id = 1 [json_name = "id"]; -inline void OrganizationIdentity::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); +inline void APIKey::clear_id() { + id_.ClearToEmpty(); } -inline const std::string& OrganizationIdentity::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.OrganizationIdentity.id) +inline const std::string& APIKey::id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.APIKey.id) return _internal_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void OrganizationIdentity::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.OrganizationIdentity.id) +template +inline PROTOBUF_ALWAYS_INLINE +void APIKey::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.APIKey.id) } -inline std::string* OrganizationIdentity::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* APIKey::mutable_id() { std::string* _s = _internal_mutable_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.OrganizationIdentity.id) + // @@protoc_insertion_point(field_mutable:viam.app.v1.APIKey.id) return _s; } -inline const std::string& OrganizationIdentity::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); -} -inline void OrganizationIdentity::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); -} -inline std::string* OrganizationIdentity::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); -} -inline std::string* OrganizationIdentity::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.OrganizationIdentity.id) - return _impl_.id_.Release(); -} -inline void OrganizationIdentity::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.OrganizationIdentity.id) -} - -// string name = 2 [json_name = "name"]; -inline void OrganizationIdentity::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); -} -inline const std::string& OrganizationIdentity::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.OrganizationIdentity.name) - return _internal_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE void OrganizationIdentity::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.OrganizationIdentity.name) -} -inline std::string* OrganizationIdentity::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.OrganizationIdentity.name) - return _s; +inline const std::string& APIKey::_internal_id() const { + return id_.Get(); } -inline const std::string& OrganizationIdentity::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); +inline void APIKey::_internal_set_id(const std::string& value) { + + id_.Set(value, GetArenaForAllocation()); } -inline void OrganizationIdentity::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); +inline std::string* APIKey::_internal_mutable_id() { + + return id_.Mutable(GetArenaForAllocation()); } -inline std::string* OrganizationIdentity::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); +inline std::string* APIKey::release_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.APIKey.id) + return id_.Release(); } -inline std::string* OrganizationIdentity::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.OrganizationIdentity.name) - return _impl_.name_.Release(); -} -inline void OrganizationIdentity::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.OrganizationIdentity.name) +inline void APIKey::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.APIKey.id) } -// ------------------------------------------------------------------- - -// LocationOrganization - -// string organization_id = 1 [json_name = "organizationId"]; -inline void LocationOrganization::clear_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.ClearToEmpty(); +// string key = 2 [json_name = "key"]; +inline void APIKey::clear_key() { + key_.ClearToEmpty(); } -inline const std::string& LocationOrganization::organization_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.LocationOrganization.organization_id) - return _internal_organization_id(); +inline const std::string& APIKey::key() const { + // @@protoc_insertion_point(field_get:viam.app.v1.APIKey.key) + return _internal_key(); } -template -inline PROTOBUF_ALWAYS_INLINE void LocationOrganization::set_organization_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.LocationOrganization.organization_id) +template +inline PROTOBUF_ALWAYS_INLINE +void APIKey::set_key(ArgT0&& arg0, ArgT... args) { + + key_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.APIKey.key) } -inline std::string* LocationOrganization::mutable_organization_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_organization_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.LocationOrganization.organization_id) +inline std::string* APIKey::mutable_key() { + std::string* _s = _internal_mutable_key(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.APIKey.key) return _s; } -inline const std::string& LocationOrganization::_internal_organization_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.organization_id_.Get(); -} -inline void LocationOrganization::_internal_set_organization_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(value, GetArena()); -} -inline std::string* LocationOrganization::_internal_mutable_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.organization_id_.Mutable( GetArena()); -} -inline std::string* LocationOrganization::release_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.LocationOrganization.organization_id) - return _impl_.organization_id_.Release(); -} -inline void LocationOrganization::set_allocated_organization_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.organization_id_.IsDefault()) { - _impl_.organization_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.LocationOrganization.organization_id) -} - -// bool primary = 2 [json_name = "primary"]; -inline void LocationOrganization::clear_primary() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.primary_ = false; +inline const std::string& APIKey::_internal_key() const { + return key_.Get(); } -inline bool LocationOrganization::primary() const { - // @@protoc_insertion_point(field_get:viam.app.v1.LocationOrganization.primary) - return _internal_primary(); +inline void APIKey::_internal_set_key(const std::string& value) { + + key_.Set(value, GetArenaForAllocation()); } -inline void LocationOrganization::set_primary(bool value) { - _internal_set_primary(value); - // @@protoc_insertion_point(field_set:viam.app.v1.LocationOrganization.primary) +inline std::string* APIKey::_internal_mutable_key() { + + return key_.Mutable(GetArenaForAllocation()); } -inline bool LocationOrganization::_internal_primary() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.primary_; +inline std::string* APIKey::release_key() { + // @@protoc_insertion_point(field_release:viam.app.v1.APIKey.key) + return key_.Release(); } -inline void LocationOrganization::_internal_set_primary(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.primary_ = value; +inline void APIKey::set_allocated_key(std::string* key) { + if (key != nullptr) { + + } else { + + } + key_.SetAllocated(key, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (key_.IsDefault()) { + key_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.APIKey.key) } -// ------------------------------------------------------------------- - -// LocationAuth - -// string secret = 1 [json_name = "secret", deprecated = true]; -inline void LocationAuth::clear_secret() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.secret_.ClearToEmpty(); +// string name = 3 [json_name = "name"]; +inline void APIKey::clear_name() { + name_.ClearToEmpty(); } -inline const std::string& LocationAuth::secret() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.LocationAuth.secret) - return _internal_secret(); +inline const std::string& APIKey::name() const { + // @@protoc_insertion_point(field_get:viam.app.v1.APIKey.name) + return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void LocationAuth::set_secret(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.secret_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.LocationAuth.secret) +template +inline PROTOBUF_ALWAYS_INLINE +void APIKey::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.APIKey.name) } -inline std::string* LocationAuth::mutable_secret() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_secret(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.LocationAuth.secret) +inline std::string* APIKey::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.APIKey.name) return _s; } -inline const std::string& LocationAuth::_internal_secret() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.secret_.Get(); -} -inline void LocationAuth::_internal_set_secret(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.secret_.Set(value, GetArena()); -} -inline std::string* LocationAuth::_internal_mutable_secret() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.secret_.Mutable( GetArena()); -} -inline std::string* LocationAuth::release_secret() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.LocationAuth.secret) - return _impl_.secret_.Release(); -} -inline void LocationAuth::set_allocated_secret(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.secret_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.secret_.IsDefault()) { - _impl_.secret_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.LocationAuth.secret) -} - -// string location_id = 2 [json_name = "locationId"]; -inline void LocationAuth::clear_location_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.location_id_.ClearToEmpty(); -} -inline const std::string& LocationAuth::location_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.LocationAuth.location_id) - return _internal_location_id(); -} -template -inline PROTOBUF_ALWAYS_INLINE void LocationAuth::set_location_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.location_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.LocationAuth.location_id) -} -inline std::string* LocationAuth::mutable_location_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_location_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.LocationAuth.location_id) - return _s; +inline const std::string& APIKey::_internal_name() const { + return name_.Get(); } -inline const std::string& LocationAuth::_internal_location_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.location_id_.Get(); +inline void APIKey::_internal_set_name(const std::string& value) { + + name_.Set(value, GetArenaForAllocation()); } -inline void LocationAuth::_internal_set_location_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.location_id_.Set(value, GetArena()); +inline std::string* APIKey::_internal_mutable_name() { + + return name_.Mutable(GetArenaForAllocation()); } -inline std::string* LocationAuth::_internal_mutable_location_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.location_id_.Mutable( GetArena()); +inline std::string* APIKey::release_name() { + // @@protoc_insertion_point(field_release:viam.app.v1.APIKey.name) + return name_.Release(); } -inline std::string* LocationAuth::release_location_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.LocationAuth.location_id) - return _impl_.location_id_.Release(); -} -inline void LocationAuth::set_allocated_location_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.location_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.location_id_.IsDefault()) { - _impl_.location_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.LocationAuth.location_id) +inline void APIKey::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.app.v1.APIKey.name) } - -// repeated .viam.app.v1.SharedSecret secrets = 3 [json_name = "secrets"]; -inline int LocationAuth::_internal_secrets_size() const { - return _internal_secrets().size(); + +// .google.protobuf.Timestamp created_on = 4 [json_name = "createdOn"]; +inline bool APIKey::_internal_has_created_on() const { + return this != internal_default_instance() && created_on_ != nullptr; } -inline int LocationAuth::secrets_size() const { - return _internal_secrets_size(); +inline bool APIKey::has_created_on() const { + return _internal_has_created_on(); } -inline void LocationAuth::clear_secrets() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.secrets_.Clear(); +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& APIKey::_internal_created_on() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = created_on_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); } -inline ::viam::app::v1::SharedSecret* LocationAuth::mutable_secrets(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:viam.app.v1.LocationAuth.secrets) - return _internal_mutable_secrets()->Mutable(index); +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& APIKey::created_on() const { + // @@protoc_insertion_point(field_get:viam.app.v1.APIKey.created_on) + return _internal_created_on(); } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::SharedSecret>* LocationAuth::mutable_secrets() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.LocationAuth.secrets) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_secrets(); +inline void APIKey::unsafe_arena_set_allocated_created_on( + ::PROTOBUF_NAMESPACE_ID::Timestamp* created_on) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(created_on_); + } + created_on_ = created_on; + if (created_on) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.APIKey.created_on) } -inline const ::viam::app::v1::SharedSecret& LocationAuth::secrets(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.LocationAuth.secrets) - return _internal_secrets().Get(index); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* APIKey::release_created_on() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = created_on_; + created_on_ = 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::SharedSecret* LocationAuth::add_secrets() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::SharedSecret* _add = _internal_mutable_secrets()->Add(); - // @@protoc_insertion_point(field_add:viam.app.v1.LocationAuth.secrets) - return _add; +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* APIKey::unsafe_arena_release_created_on() { + // @@protoc_insertion_point(field_release:viam.app.v1.APIKey.created_on) + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = created_on_; + created_on_ = nullptr; + return temp; } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::SharedSecret>& LocationAuth::secrets() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:viam.app.v1.LocationAuth.secrets) - return _internal_secrets(); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* APIKey::_internal_mutable_created_on() { + + if (created_on_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + created_on_ = p; + } + return created_on_; } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::SharedSecret>& -LocationAuth::_internal_secrets() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.secrets_; +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* APIKey::mutable_created_on() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_created_on(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.APIKey.created_on) + return _msg; } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::SharedSecret>* -LocationAuth::_internal_mutable_secrets() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.secrets_; +inline void APIKey::set_allocated_created_on(::PROTOBUF_NAMESPACE_ID::Timestamp* created_on) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(created_on_); + } + if (created_on) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(created_on)); + if (message_arena != submessage_arena) { + created_on = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, created_on, submessage_arena); + } + + } else { + + } + created_on_ = created_on; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.APIKey.created_on) } // ------------------------------------------------------------------- -// StorageConfig +// GetRobotAPIKeysResponse -// string region = 1 [json_name = "region"]; -inline void StorageConfig::clear_region() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.region_.ClearToEmpty(); +// repeated .viam.app.v1.APIKeyWithAuthorizations api_keys = 1 [json_name = "apiKeys"]; +inline int GetRobotAPIKeysResponse::_internal_api_keys_size() const { + return api_keys_.size(); } -inline const std::string& StorageConfig::region() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.StorageConfig.region) - return _internal_region(); +inline int GetRobotAPIKeysResponse::api_keys_size() const { + return _internal_api_keys_size(); } -template -inline PROTOBUF_ALWAYS_INLINE void StorageConfig::set_region(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.region_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.StorageConfig.region) +inline void GetRobotAPIKeysResponse::clear_api_keys() { + api_keys_.Clear(); } -inline std::string* StorageConfig::mutable_region() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_region(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.StorageConfig.region) - return _s; +inline ::viam::app::v1::APIKeyWithAuthorizations* GetRobotAPIKeysResponse::mutable_api_keys(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRobotAPIKeysResponse.api_keys) + return api_keys_.Mutable(index); } -inline const std::string& StorageConfig::_internal_region() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.region_.Get(); +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::APIKeyWithAuthorizations >* +GetRobotAPIKeysResponse::mutable_api_keys() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.GetRobotAPIKeysResponse.api_keys) + return &api_keys_; } -inline void StorageConfig::_internal_set_region(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.region_.Set(value, GetArena()); +inline const ::viam::app::v1::APIKeyWithAuthorizations& GetRobotAPIKeysResponse::_internal_api_keys(int index) const { + return api_keys_.Get(index); } -inline std::string* StorageConfig::_internal_mutable_region() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.region_.Mutable( GetArena()); +inline const ::viam::app::v1::APIKeyWithAuthorizations& GetRobotAPIKeysResponse::api_keys(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotAPIKeysResponse.api_keys) + return _internal_api_keys(index); } -inline std::string* StorageConfig::release_region() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.StorageConfig.region) - return _impl_.region_.Release(); -} -inline void StorageConfig::set_allocated_region(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.region_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.region_.IsDefault()) { - _impl_.region_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.StorageConfig.region) +inline ::viam::app::v1::APIKeyWithAuthorizations* GetRobotAPIKeysResponse::_internal_add_api_keys() { + return api_keys_.Add(); +} +inline ::viam::app::v1::APIKeyWithAuthorizations* GetRobotAPIKeysResponse::add_api_keys() { + ::viam::app::v1::APIKeyWithAuthorizations* _add = _internal_add_api_keys(); + // @@protoc_insertion_point(field_add:viam.app.v1.GetRobotAPIKeysResponse.api_keys) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::APIKeyWithAuthorizations >& +GetRobotAPIKeysResponse::api_keys() const { + // @@protoc_insertion_point(field_list:viam.app.v1.GetRobotAPIKeysResponse.api_keys) + return api_keys_; } // ------------------------------------------------------------------- -// Location +// DeleteRobotPartResponse -// string id = 1 [json_name = "id"]; -inline void Location::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); +// ------------------------------------------------------------------- + +// Fragment + +// string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""]; +inline void Fragment::clear_id() { + id_.ClearToEmpty(); } -inline const std::string& Location::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.Location.id) +inline const std::string& Fragment::id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Fragment.id) return _internal_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void Location::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.Location.id) +template +inline PROTOBUF_ALWAYS_INLINE +void Fragment::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.Fragment.id) } -inline std::string* Location::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Fragment::mutable_id() { std::string* _s = _internal_mutable_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.Location.id) + // @@protoc_insertion_point(field_mutable:viam.app.v1.Fragment.id) return _s; } -inline const std::string& Location::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); +inline const std::string& Fragment::_internal_id() const { + return id_.Get(); } -inline void Location::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); +inline void Fragment::_internal_set_id(const std::string& value) { + + id_.Set(value, GetArenaForAllocation()); } -inline std::string* Location::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); +inline std::string* Fragment::_internal_mutable_id() { + + return id_.Mutable(GetArenaForAllocation()); } -inline std::string* Location::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.Location.id) - return _impl_.id_.Release(); -} -inline void Location::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Location.id) +inline std::string* Fragment::release_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.Fragment.id) + return id_.Release(); +} +inline void Fragment::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Fragment.id) } -// string name = 2 [json_name = "name"]; -inline void Location::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); +// string name = 2 [json_name = "name", (.tagger.v1.tags) = "bson:\"name\" json:\"name\""]; +inline void Fragment::clear_name() { + name_.ClearToEmpty(); } -inline const std::string& Location::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.Location.name) +inline const std::string& Fragment::name() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Fragment.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void Location::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.Location.name) +template +inline PROTOBUF_ALWAYS_INLINE +void Fragment::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.Fragment.name) } -inline std::string* Location::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Fragment::mutable_name() { std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.Location.name) + // @@protoc_insertion_point(field_mutable:viam.app.v1.Fragment.name) return _s; } -inline const std::string& Location::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); -} -inline void Location::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); -} -inline std::string* Location::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); -} -inline std::string* Location::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.Location.name) - return _impl_.name_.Release(); -} -inline void Location::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Location.name) -} - -// string parent_location_id = 4 [json_name = "parentLocationId"]; -inline void Location::clear_parent_location_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.parent_location_id_.ClearToEmpty(); -} -inline const std::string& Location::parent_location_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.Location.parent_location_id) - return _internal_parent_location_id(); -} -template -inline PROTOBUF_ALWAYS_INLINE void Location::set_parent_location_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.parent_location_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.Location.parent_location_id) -} -inline std::string* Location::mutable_parent_location_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_parent_location_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.Location.parent_location_id) - return _s; +inline const std::string& Fragment::_internal_name() const { + return name_.Get(); } -inline const std::string& Location::_internal_parent_location_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.parent_location_id_.Get(); +inline void Fragment::_internal_set_name(const std::string& value) { + + name_.Set(value, GetArenaForAllocation()); } -inline void Location::_internal_set_parent_location_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.parent_location_id_.Set(value, GetArena()); +inline std::string* Fragment::_internal_mutable_name() { + + return name_.Mutable(GetArenaForAllocation()); } -inline std::string* Location::_internal_mutable_parent_location_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.parent_location_id_.Mutable( GetArena()); +inline std::string* Fragment::release_name() { + // @@protoc_insertion_point(field_release:viam.app.v1.Fragment.name) + return name_.Release(); } -inline std::string* Location::release_parent_location_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.Location.parent_location_id) - return _impl_.parent_location_id_.Release(); -} -inline void Location::set_allocated_parent_location_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.parent_location_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.parent_location_id_.IsDefault()) { - _impl_.parent_location_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Location.parent_location_id) +inline void Fragment::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.app.v1.Fragment.name) } -// .viam.app.v1.LocationAuth auth = 5 [json_name = "auth"]; -inline bool Location::has_auth() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.auth_ != nullptr); - return value; +// .google.protobuf.Struct fragment = 3 [json_name = "fragment", (.tagger.v1.tags) = "bson:\"fragment\" json:\"fragment\""]; +inline bool Fragment::_internal_has_fragment() const { + return this != internal_default_instance() && fragment_ != nullptr; } -inline void Location::clear_auth() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.auth_ != nullptr) _impl_.auth_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; +inline bool Fragment::has_fragment() const { + return _internal_has_fragment(); } -inline const ::viam::app::v1::LocationAuth& Location::_internal_auth() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::LocationAuth* p = _impl_.auth_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_LocationAuth_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& Fragment::_internal_fragment() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = fragment_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::viam::app::v1::LocationAuth& Location::auth() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.Location.auth) - return _internal_auth(); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& Fragment::fragment() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Fragment.fragment) + return _internal_fragment(); } -inline void Location::unsafe_arena_set_allocated_auth(::viam::app::v1::LocationAuth* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.auth_); +inline void Fragment::unsafe_arena_set_allocated_fragment( + ::PROTOBUF_NAMESPACE_ID::Struct* fragment) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(fragment_); } - _impl_.auth_ = reinterpret_cast<::viam::app::v1::LocationAuth*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + fragment_ = fragment; + if (fragment) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.Location.auth) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.Fragment.fragment) } -inline ::viam::app::v1::LocationAuth* Location::release_auth() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::viam::app::v1::LocationAuth* released = _impl_.auth_; - _impl_.auth_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* Fragment::release_fragment() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = fragment_; + fragment_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::viam::app::v1::LocationAuth* Location::unsafe_arena_release_auth() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.Location.auth) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::viam::app::v1::LocationAuth* temp = _impl_.auth_; - _impl_.auth_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* Fragment::unsafe_arena_release_fragment() { + // @@protoc_insertion_point(field_release:viam.app.v1.Fragment.fragment) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = fragment_; + fragment_ = nullptr; return temp; } -inline ::viam::app::v1::LocationAuth* Location::_internal_mutable_auth() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.auth_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::LocationAuth>(GetArena()); - _impl_.auth_ = reinterpret_cast<::viam::app::v1::LocationAuth*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* Fragment::_internal_mutable_fragment() { + + if (fragment_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + fragment_ = p; } - return _impl_.auth_; + return fragment_; } -inline ::viam::app::v1::LocationAuth* Location::mutable_auth() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::viam::app::v1::LocationAuth* _msg = _internal_mutable_auth(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.Location.auth) +inline ::PROTOBUF_NAMESPACE_ID::Struct* Fragment::mutable_fragment() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_fragment(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Fragment.fragment) return _msg; } -inline void Location::set_allocated_auth(::viam::app::v1::LocationAuth* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Fragment::set_allocated_fragment(::PROTOBUF_NAMESPACE_ID::Struct* fragment) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::LocationAuth*>(_impl_.auth_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(fragment_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::LocationAuth*>(value)->GetArena(); + if (fragment) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(fragment)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + fragment = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, fragment, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.auth_ = reinterpret_cast<::viam::app::v1::LocationAuth*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Location.auth) + fragment_ = fragment; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Fragment.fragment) } -// repeated .viam.app.v1.LocationOrganization organizations = 6 [json_name = "organizations"]; -inline int Location::_internal_organizations_size() const { - return _internal_organizations().size(); +// string organization_owner = 4 [json_name = "organizationOwner", (.tagger.v1.tags) = "bson:\"organization_owner\" json:\"owner\""]; +inline void Fragment::clear_organization_owner() { + organization_owner_.ClearToEmpty(); } -inline int Location::organizations_size() const { - return _internal_organizations_size(); +inline const std::string& Fragment::organization_owner() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Fragment.organization_owner) + return _internal_organization_owner(); } -inline void Location::clear_organizations() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organizations_.Clear(); +template +inline PROTOBUF_ALWAYS_INLINE +void Fragment::set_organization_owner(ArgT0&& arg0, ArgT... args) { + + organization_owner_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.Fragment.organization_owner) } -inline ::viam::app::v1::LocationOrganization* Location::mutable_organizations(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:viam.app.v1.Location.organizations) - return _internal_mutable_organizations()->Mutable(index); +inline std::string* Fragment::mutable_organization_owner() { + std::string* _s = _internal_mutable_organization_owner(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Fragment.organization_owner) + return _s; } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::LocationOrganization>* Location::mutable_organizations() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.Location.organizations) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_organizations(); +inline const std::string& Fragment::_internal_organization_owner() const { + return organization_owner_.Get(); } -inline const ::viam::app::v1::LocationOrganization& Location::organizations(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.Location.organizations) - return _internal_organizations().Get(index); +inline void Fragment::_internal_set_organization_owner(const std::string& value) { + + organization_owner_.Set(value, GetArenaForAllocation()); } -inline ::viam::app::v1::LocationOrganization* Location::add_organizations() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::LocationOrganization* _add = _internal_mutable_organizations()->Add(); - // @@protoc_insertion_point(field_add:viam.app.v1.Location.organizations) - return _add; +inline std::string* Fragment::_internal_mutable_organization_owner() { + + return organization_owner_.Mutable(GetArenaForAllocation()); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::LocationOrganization>& Location::organizations() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:viam.app.v1.Location.organizations) - return _internal_organizations(); +inline std::string* Fragment::release_organization_owner() { + // @@protoc_insertion_point(field_release:viam.app.v1.Fragment.organization_owner) + return organization_owner_.Release(); +} +inline void Fragment::set_allocated_organization_owner(std::string* organization_owner) { + if (organization_owner != nullptr) { + + } else { + + } + organization_owner_.SetAllocated(organization_owner, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (organization_owner_.IsDefault()) { + organization_owner_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Fragment.organization_owner) +} + +// bool public = 5 [json_name = "public", (.tagger.v1.tags) = "bson:\"public\" json:\"public\""]; +inline void Fragment::clear_public_() { + public__ = false; +} +inline bool Fragment::_internal_public_() const { + return public__; +} +inline bool Fragment::public_() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Fragment.public) + return _internal_public_(); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::LocationOrganization>& -Location::_internal_organizations() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.organizations_; +inline void Fragment::_internal_set_public_(bool value) { + + public__ = value; } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::LocationOrganization>* -Location::_internal_mutable_organizations() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.organizations_; +inline void Fragment::set_public_(bool value) { + _internal_set_public_(value); + // @@protoc_insertion_point(field_set:viam.app.v1.Fragment.public) } -// .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn"]; -inline bool Location::has_created_on() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.created_on_ != nullptr); - return value; +// .google.protobuf.Timestamp created_on = 6 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\""]; +inline bool Fragment::_internal_has_created_on() const { + return this != internal_default_instance() && created_on_ != nullptr; +} +inline bool Fragment::has_created_on() const { + return _internal_has_created_on(); } -inline const ::google::protobuf::Timestamp& Location::_internal_created_on() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Timestamp* p = _impl_.created_on_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& Fragment::_internal_created_on() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = created_on_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); } -inline const ::google::protobuf::Timestamp& Location::created_on() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.Location.created_on) +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& Fragment::created_on() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Fragment.created_on) return _internal_created_on(); } -inline void Location::unsafe_arena_set_allocated_created_on(::google::protobuf::Timestamp* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.created_on_); +inline void Fragment::unsafe_arena_set_allocated_created_on( + ::PROTOBUF_NAMESPACE_ID::Timestamp* created_on) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(created_on_); } - _impl_.created_on_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + created_on_ = created_on; + if (created_on) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.Location.created_on) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.Fragment.created_on) } -inline ::google::protobuf::Timestamp* Location::release_created_on() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Timestamp* released = _impl_.created_on_; - _impl_.created_on_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Fragment::release_created_on() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = created_on_; + created_on_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Timestamp* Location::unsafe_arena_release_created_on() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.Location.created_on) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Timestamp* temp = _impl_.created_on_; - _impl_.created_on_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Fragment::unsafe_arena_release_created_on() { + // @@protoc_insertion_point(field_release:viam.app.v1.Fragment.created_on) + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = created_on_; + created_on_ = nullptr; return temp; } -inline ::google::protobuf::Timestamp* Location::_internal_mutable_created_on() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.created_on_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena()); - _impl_.created_on_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Fragment::_internal_mutable_created_on() { + + if (created_on_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + created_on_ = p; } - return _impl_.created_on_; + return created_on_; } -inline ::google::protobuf::Timestamp* Location::mutable_created_on() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Timestamp* _msg = _internal_mutable_created_on(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.Location.created_on) +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Fragment::mutable_created_on() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_created_on(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Fragment.created_on) return _msg; } -inline void Location::set_allocated_created_on(::google::protobuf::Timestamp* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Fragment::set_allocated_created_on(::PROTOBUF_NAMESPACE_ID::Timestamp* created_on) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.created_on_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(created_on_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (created_on) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(created_on)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + created_on = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, created_on, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.created_on_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Location.created_on) + created_on_ = created_on; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Fragment.created_on) } -// int32 robot_count = 7 [json_name = "robotCount"]; -inline void Location::clear_robot_count() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.robot_count_ = 0; -} -inline ::int32_t Location::robot_count() const { - // @@protoc_insertion_point(field_get:viam.app.v1.Location.robot_count) - return _internal_robot_count(); +// string organization_name = 7 [json_name = "organizationName"]; +inline void Fragment::clear_organization_name() { + organization_name_.ClearToEmpty(); } -inline void Location::set_robot_count(::int32_t value) { - _internal_set_robot_count(value); - // @@protoc_insertion_point(field_set:viam.app.v1.Location.robot_count) +inline const std::string& Fragment::organization_name() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Fragment.organization_name) + return _internal_organization_name(); } -inline ::int32_t Location::_internal_robot_count() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.robot_count_; +template +inline PROTOBUF_ALWAYS_INLINE +void Fragment::set_organization_name(ArgT0&& arg0, ArgT... args) { + + organization_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.Fragment.organization_name) } -inline void Location::_internal_set_robot_count(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.robot_count_ = value; +inline std::string* Fragment::mutable_organization_name() { + std::string* _s = _internal_mutable_organization_name(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Fragment.organization_name) + return _s; } - -// .viam.app.v1.StorageConfig config = 8 [json_name = "config"]; -inline bool Location::has_config() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || _impl_.config_ != nullptr); - return value; +inline const std::string& Fragment::_internal_organization_name() const { + return organization_name_.Get(); } -inline void Location::clear_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.config_ != nullptr) _impl_.config_->Clear(); - _impl_._has_bits_[0] &= ~0x00000004u; +inline void Fragment::_internal_set_organization_name(const std::string& value) { + + organization_name_.Set(value, GetArenaForAllocation()); } -inline const ::viam::app::v1::StorageConfig& Location::_internal_config() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::StorageConfig* p = _impl_.config_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_StorageConfig_default_instance_); +inline std::string* Fragment::_internal_mutable_organization_name() { + + return organization_name_.Mutable(GetArenaForAllocation()); } -inline const ::viam::app::v1::StorageConfig& Location::config() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.Location.config) - return _internal_config(); +inline std::string* Fragment::release_organization_name() { + // @@protoc_insertion_point(field_release:viam.app.v1.Fragment.organization_name) + return organization_name_.Release(); } -inline void Location::unsafe_arena_set_allocated_config(::viam::app::v1::StorageConfig* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.config_); - } - _impl_.config_ = reinterpret_cast<::viam::app::v1::StorageConfig*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000004u; +inline void Fragment::set_allocated_organization_name(std::string* organization_name) { + if (organization_name != nullptr) { + } else { - _impl_._has_bits_[0] &= ~0x00000004u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.Location.config) -} -inline ::viam::app::v1::StorageConfig* Location::release_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000004u; - ::viam::app::v1::StorageConfig* released = _impl_.config_; - _impl_.config_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; + } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + organization_name_.SetAllocated(organization_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (organization_name_.IsDefault()) { + organization_name_.Set("", GetArenaForAllocation()); } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Fragment.organization_name) } -inline ::viam::app::v1::StorageConfig* Location::unsafe_arena_release_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.Location.config) - _impl_._has_bits_[0] &= ~0x00000004u; - ::viam::app::v1::StorageConfig* temp = _impl_.config_; - _impl_.config_ = nullptr; - return temp; +// int32 robot_part_count = 9 [json_name = "robotPartCount"]; +inline void Fragment::clear_robot_part_count() { + robot_part_count_ = 0; } -inline ::viam::app::v1::StorageConfig* Location::_internal_mutable_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - if (_impl_.config_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::StorageConfig>(GetArena()); - _impl_.config_ = reinterpret_cast<::viam::app::v1::StorageConfig*>(p); - } - return _impl_.config_; +inline int32_t Fragment::_internal_robot_part_count() const { + return robot_part_count_; } -inline ::viam::app::v1::StorageConfig* Location::mutable_config() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::viam::app::v1::StorageConfig* _msg = _internal_mutable_config(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.Location.config) - return _msg; +inline int32_t Fragment::robot_part_count() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Fragment.robot_part_count) + return _internal_robot_part_count(); } -inline void Location::set_allocated_config(::viam::app::v1::StorageConfig* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::StorageConfig*>(_impl_.config_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::StorageConfig*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000004u; - } else { - _impl_._has_bits_[0] &= ~0x00000004u; - } - - _impl_.config_ = reinterpret_cast<::viam::app::v1::StorageConfig*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Location.config) +inline void Fragment::_internal_set_robot_part_count(int32_t value) { + + robot_part_count_ = value; } - -// ------------------------------------------------------------------- - -// SharedSecret - -// string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"id\""]; -inline void SharedSecret::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); +inline void Fragment::set_robot_part_count(int32_t value) { + _internal_set_robot_part_count(value); + // @@protoc_insertion_point(field_set:viam.app.v1.Fragment.robot_part_count) } -inline const std::string& SharedSecret::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.SharedSecret.id) - return _internal_id(); + +// int32 organization_count = 10 [json_name = "organizationCount"]; +inline void Fragment::clear_organization_count() { + organization_count_ = 0; } -template -inline PROTOBUF_ALWAYS_INLINE void SharedSecret::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.SharedSecret.id) +inline int32_t Fragment::_internal_organization_count() const { + return organization_count_; } -inline std::string* SharedSecret::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.SharedSecret.id) - return _s; +inline int32_t Fragment::organization_count() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Fragment.organization_count) + return _internal_organization_count(); } -inline const std::string& SharedSecret::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); +inline void Fragment::_internal_set_organization_count(int32_t value) { + + organization_count_ = value; } -inline void SharedSecret::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); +inline void Fragment::set_organization_count(int32_t value) { + _internal_set_organization_count(value); + // @@protoc_insertion_point(field_set:viam.app.v1.Fragment.organization_count) } -inline std::string* SharedSecret::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); + +// bool only_used_by_owner = 11 [json_name = "onlyUsedByOwner"]; +inline void Fragment::clear_only_used_by_owner() { + only_used_by_owner_ = false; } -inline std::string* SharedSecret::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.SharedSecret.id) - return _impl_.id_.Release(); -} -inline void SharedSecret::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.SharedSecret.id) +inline bool Fragment::_internal_only_used_by_owner() const { + return only_used_by_owner_; } - -// string secret = 2 [json_name = "secret", (.tagger.v1.tags) = "bson:\"secret\""]; -inline void SharedSecret::clear_secret() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.secret_.ClearToEmpty(); +inline bool Fragment::only_used_by_owner() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Fragment.only_used_by_owner) + return _internal_only_used_by_owner(); } -inline const std::string& SharedSecret::secret() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.SharedSecret.secret) - return _internal_secret(); +inline void Fragment::_internal_set_only_used_by_owner(bool value) { + + only_used_by_owner_ = value; } -template -inline PROTOBUF_ALWAYS_INLINE void SharedSecret::set_secret(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.secret_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.SharedSecret.secret) +inline void Fragment::set_only_used_by_owner(bool value) { + _internal_set_only_used_by_owner(value); + // @@protoc_insertion_point(field_set:viam.app.v1.Fragment.only_used_by_owner) } -inline std::string* SharedSecret::mutable_secret() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_secret(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.SharedSecret.secret) - return _s; + +// .viam.app.v1.FragmentVisibility visibility = 12 [json_name = "visibility"]; +inline void Fragment::clear_visibility() { + visibility_ = 0; } -inline const std::string& SharedSecret::_internal_secret() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.secret_.Get(); +inline ::viam::app::v1::FragmentVisibility Fragment::_internal_visibility() const { + return static_cast< ::viam::app::v1::FragmentVisibility >(visibility_); } -inline void SharedSecret::_internal_set_secret(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.secret_.Set(value, GetArena()); +inline ::viam::app::v1::FragmentVisibility Fragment::visibility() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Fragment.visibility) + return _internal_visibility(); } -inline std::string* SharedSecret::_internal_mutable_secret() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.secret_.Mutable( GetArena()); +inline void Fragment::_internal_set_visibility(::viam::app::v1::FragmentVisibility value) { + + visibility_ = value; } -inline std::string* SharedSecret::release_secret() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.SharedSecret.secret) - return _impl_.secret_.Release(); -} -inline void SharedSecret::set_allocated_secret(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.secret_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.secret_.IsDefault()) { - _impl_.secret_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.SharedSecret.secret) +inline void Fragment::set_visibility(::viam::app::v1::FragmentVisibility value) { + _internal_set_visibility(value); + // @@protoc_insertion_point(field_set:viam.app.v1.Fragment.visibility) } -// .google.protobuf.Timestamp created_on = 3 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\" json:\"created_on\""]; -inline bool SharedSecret::has_created_on() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.created_on_ != nullptr); - return value; +// .google.protobuf.Timestamp last_updated = 13 [json_name = "lastUpdated", (.tagger.v1.tags) = "bson:\"last_updated_at\""]; +inline bool Fragment::_internal_has_last_updated() const { + return this != internal_default_instance() && last_updated_ != nullptr; } -inline const ::google::protobuf::Timestamp& SharedSecret::_internal_created_on() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Timestamp* p = _impl_.created_on_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); +inline bool Fragment::has_last_updated() const { + return _internal_has_last_updated(); } -inline const ::google::protobuf::Timestamp& SharedSecret::created_on() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.SharedSecret.created_on) - return _internal_created_on(); +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& Fragment::_internal_last_updated() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = last_updated_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& Fragment::last_updated() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Fragment.last_updated) + return _internal_last_updated(); } -inline void SharedSecret::unsafe_arena_set_allocated_created_on(::google::protobuf::Timestamp* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.created_on_); +inline void Fragment::unsafe_arena_set_allocated_last_updated( + ::PROTOBUF_NAMESPACE_ID::Timestamp* last_updated) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_updated_); } - _impl_.created_on_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + last_updated_ = last_updated; + if (last_updated) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.SharedSecret.created_on) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.Fragment.last_updated) } -inline ::google::protobuf::Timestamp* SharedSecret::release_created_on() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Timestamp* released = _impl_.created_on_; - _impl_.created_on_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Fragment::release_last_updated() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = last_updated_; + last_updated_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Timestamp* SharedSecret::unsafe_arena_release_created_on() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.SharedSecret.created_on) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Timestamp* temp = _impl_.created_on_; - _impl_.created_on_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Fragment::unsafe_arena_release_last_updated() { + // @@protoc_insertion_point(field_release:viam.app.v1.Fragment.last_updated) + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = last_updated_; + last_updated_ = nullptr; return temp; } -inline ::google::protobuf::Timestamp* SharedSecret::_internal_mutable_created_on() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.created_on_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena()); - _impl_.created_on_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Fragment::_internal_mutable_last_updated() { + + if (last_updated_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + last_updated_ = p; } - return _impl_.created_on_; + return last_updated_; } -inline ::google::protobuf::Timestamp* SharedSecret::mutable_created_on() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Timestamp* _msg = _internal_mutable_created_on(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.SharedSecret.created_on) +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Fragment::mutable_last_updated() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_last_updated(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Fragment.last_updated) return _msg; } -inline void SharedSecret::set_allocated_created_on(::google::protobuf::Timestamp* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Fragment::set_allocated_last_updated(::PROTOBUF_NAMESPACE_ID::Timestamp* last_updated) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.created_on_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_updated_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (last_updated) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_updated)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + last_updated = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, last_updated, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.created_on_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.SharedSecret.created_on) -} - -// .viam.app.v1.SharedSecret.State state = 4 [json_name = "state", (.tagger.v1.tags) = "bson:\"state\""]; -inline void SharedSecret::clear_state() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.state_ = 0; -} -inline ::viam::app::v1::SharedSecret_State SharedSecret::state() const { - // @@protoc_insertion_point(field_get:viam.app.v1.SharedSecret.state) - return _internal_state(); -} -inline void SharedSecret::set_state(::viam::app::v1::SharedSecret_State value) { - _internal_set_state(value); - // @@protoc_insertion_point(field_set:viam.app.v1.SharedSecret.state) -} -inline ::viam::app::v1::SharedSecret_State SharedSecret::_internal_state() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::viam::app::v1::SharedSecret_State>(_impl_.state_); -} -inline void SharedSecret::_internal_set_state(::viam::app::v1::SharedSecret_State value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.state_ = value; + last_updated_ = last_updated; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Fragment.last_updated) } // ------------------------------------------------------------------- -// CreateLocationRequest +// FragmentHistoryEntry -// string organization_id = 1 [json_name = "organizationId"]; -inline void CreateLocationRequest::clear_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.ClearToEmpty(); +// string fragment = 1 [json_name = "fragment", (.tagger.v1.tags) = "bson:\"fragment\" json:\"fragment\""]; +inline void FragmentHistoryEntry::clear_fragment() { + fragment_.ClearToEmpty(); } -inline const std::string& CreateLocationRequest::organization_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.CreateLocationRequest.organization_id) - return _internal_organization_id(); +inline const std::string& FragmentHistoryEntry::fragment() const { + // @@protoc_insertion_point(field_get:viam.app.v1.FragmentHistoryEntry.fragment) + return _internal_fragment(); } -template -inline PROTOBUF_ALWAYS_INLINE void CreateLocationRequest::set_organization_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.CreateLocationRequest.organization_id) +template +inline PROTOBUF_ALWAYS_INLINE +void FragmentHistoryEntry::set_fragment(ArgT0&& arg0, ArgT... args) { + + fragment_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.FragmentHistoryEntry.fragment) } -inline std::string* CreateLocationRequest::mutable_organization_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_organization_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateLocationRequest.organization_id) +inline std::string* FragmentHistoryEntry::mutable_fragment() { + std::string* _s = _internal_mutable_fragment(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.FragmentHistoryEntry.fragment) return _s; } -inline const std::string& CreateLocationRequest::_internal_organization_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.organization_id_.Get(); +inline const std::string& FragmentHistoryEntry::_internal_fragment() const { + return fragment_.Get(); } -inline void CreateLocationRequest::_internal_set_organization_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(value, GetArena()); +inline void FragmentHistoryEntry::_internal_set_fragment(const std::string& value) { + + fragment_.Set(value, GetArenaForAllocation()); } -inline std::string* CreateLocationRequest::_internal_mutable_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.organization_id_.Mutable( GetArena()); +inline std::string* FragmentHistoryEntry::_internal_mutable_fragment() { + + return fragment_.Mutable(GetArenaForAllocation()); } -inline std::string* CreateLocationRequest::release_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.CreateLocationRequest.organization_id) - return _impl_.organization_id_.Release(); -} -inline void CreateLocationRequest::set_allocated_organization_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.organization_id_.IsDefault()) { - _impl_.organization_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateLocationRequest.organization_id) +inline std::string* FragmentHistoryEntry::release_fragment() { + // @@protoc_insertion_point(field_release:viam.app.v1.FragmentHistoryEntry.fragment) + return fragment_.Release(); +} +inline void FragmentHistoryEntry::set_allocated_fragment(std::string* fragment) { + if (fragment != nullptr) { + + } else { + + } + fragment_.SetAllocated(fragment, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (fragment_.IsDefault()) { + fragment_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.FragmentHistoryEntry.fragment) } -// string name = 2 [json_name = "name"]; -inline void CreateLocationRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); +// .google.protobuf.Timestamp edited_on = 2 [json_name = "editedOn", (.tagger.v1.tags) = "bson:\"edited_on\" json:\"edited_on\""]; +inline bool FragmentHistoryEntry::_internal_has_edited_on() const { + return this != internal_default_instance() && edited_on_ != nullptr; } -inline const std::string& CreateLocationRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.CreateLocationRequest.name) - return _internal_name(); +inline bool FragmentHistoryEntry::has_edited_on() const { + return _internal_has_edited_on(); } -template -inline PROTOBUF_ALWAYS_INLINE void CreateLocationRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.CreateLocationRequest.name) +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& FragmentHistoryEntry::_internal_edited_on() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = edited_on_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); } -inline std::string* CreateLocationRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateLocationRequest.name) - return _s; +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& FragmentHistoryEntry::edited_on() const { + // @@protoc_insertion_point(field_get:viam.app.v1.FragmentHistoryEntry.edited_on) + return _internal_edited_on(); } -inline const std::string& CreateLocationRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); +inline void FragmentHistoryEntry::unsafe_arena_set_allocated_edited_on( + ::PROTOBUF_NAMESPACE_ID::Timestamp* edited_on) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(edited_on_); + } + edited_on_ = edited_on; + if (edited_on) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.FragmentHistoryEntry.edited_on) } -inline void CreateLocationRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* FragmentHistoryEntry::release_edited_on() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = edited_on_; + edited_on_ = 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 std::string* CreateLocationRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* FragmentHistoryEntry::unsafe_arena_release_edited_on() { + // @@protoc_insertion_point(field_release:viam.app.v1.FragmentHistoryEntry.edited_on) + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = edited_on_; + edited_on_ = nullptr; + return temp; } -inline std::string* CreateLocationRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.CreateLocationRequest.name) - return _impl_.name_.Release(); -} -inline void CreateLocationRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateLocationRequest.name) +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* FragmentHistoryEntry::_internal_mutable_edited_on() { + + if (edited_on_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + edited_on_ = p; + } + return edited_on_; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* FragmentHistoryEntry::mutable_edited_on() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_edited_on(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.FragmentHistoryEntry.edited_on) + return _msg; +} +inline void FragmentHistoryEntry::set_allocated_edited_on(::PROTOBUF_NAMESPACE_ID::Timestamp* edited_on) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(edited_on_); + } + if (edited_on) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(edited_on)); + if (message_arena != submessage_arena) { + edited_on = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, edited_on, submessage_arena); + } + + } else { + + } + edited_on_ = edited_on; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.FragmentHistoryEntry.edited_on) } -// optional string parent_location_id = 3 [json_name = "parentLocationId"]; -inline bool CreateLocationRequest::has_parent_location_id() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - return value; +// .viam.app.v1.Fragment old = 3 [json_name = "old", (.tagger.v1.tags) = "bson:\"old\" json:\"old\""]; +inline bool FragmentHistoryEntry::_internal_has_old() const { + return this != internal_default_instance() && old_ != nullptr; } -inline void CreateLocationRequest::clear_parent_location_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.parent_location_id_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000001u; +inline bool FragmentHistoryEntry::has_old() const { + return _internal_has_old(); } -inline const std::string& CreateLocationRequest::parent_location_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.CreateLocationRequest.parent_location_id) - return _internal_parent_location_id(); +inline void FragmentHistoryEntry::clear_old() { + if (GetArenaForAllocation() == nullptr && old_ != nullptr) { + delete old_; + } + old_ = nullptr; } -template -inline PROTOBUF_ALWAYS_INLINE void CreateLocationRequest::set_parent_location_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.parent_location_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.CreateLocationRequest.parent_location_id) +inline const ::viam::app::v1::Fragment& FragmentHistoryEntry::_internal_old() const { + const ::viam::app::v1::Fragment* p = old_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_Fragment_default_instance_); } -inline std::string* CreateLocationRequest::mutable_parent_location_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_parent_location_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateLocationRequest.parent_location_id) - return _s; +inline const ::viam::app::v1::Fragment& FragmentHistoryEntry::old() const { + // @@protoc_insertion_point(field_get:viam.app.v1.FragmentHistoryEntry.old) + return _internal_old(); } -inline const std::string& CreateLocationRequest::_internal_parent_location_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.parent_location_id_.Get(); +inline void FragmentHistoryEntry::unsafe_arena_set_allocated_old( + ::viam::app::v1::Fragment* old) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(old_); + } + old_ = old; + if (old) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.FragmentHistoryEntry.old) +} +inline ::viam::app::v1::Fragment* FragmentHistoryEntry::release_old() { + + ::viam::app::v1::Fragment* temp = old_; + old_ = 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::Fragment* FragmentHistoryEntry::unsafe_arena_release_old() { + // @@protoc_insertion_point(field_release:viam.app.v1.FragmentHistoryEntry.old) + + ::viam::app::v1::Fragment* temp = old_; + old_ = nullptr; + return temp; } -inline void CreateLocationRequest::_internal_set_parent_location_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.parent_location_id_.Set(value, GetArena()); +inline ::viam::app::v1::Fragment* FragmentHistoryEntry::_internal_mutable_old() { + + if (old_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::Fragment>(GetArenaForAllocation()); + old_ = p; + } + return old_; } -inline std::string* CreateLocationRequest::_internal_mutable_parent_location_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.parent_location_id_.Mutable( GetArena()); +inline ::viam::app::v1::Fragment* FragmentHistoryEntry::mutable_old() { + ::viam::app::v1::Fragment* _msg = _internal_mutable_old(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.FragmentHistoryEntry.old) + return _msg; } -inline std::string* CreateLocationRequest::release_parent_location_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.CreateLocationRequest.parent_location_id) - if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { - return nullptr; +inline void FragmentHistoryEntry::set_allocated_old(::viam::app::v1::Fragment* old) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete old_; } - _impl_._has_bits_[0] &= ~0x00000001u; - auto* released = _impl_.parent_location_id_.Release(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.parent_location_id_.Set("", GetArena()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return released; -} -inline void CreateLocationRequest::set_allocated_parent_location_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + if (old) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(old); + if (message_arena != submessage_arena) { + old = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, old, submessage_arena); + } + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - _impl_.parent_location_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.parent_location_id_.IsDefault()) { - _impl_.parent_location_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateLocationRequest.parent_location_id) + old_ = old; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.FragmentHistoryEntry.old) } -// ------------------------------------------------------------------- - -// CreateLocationResponse - -// .viam.app.v1.Location location = 1 [json_name = "location"]; -inline bool CreateLocationResponse::has_location() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.location_ != nullptr); - return value; +// .viam.app.v1.AuthenticatorInfo edited_by = 4 [json_name = "editedBy", (.tagger.v1.tags) = "bson:\"edited_by\" json:\"edited_by\""]; +inline bool FragmentHistoryEntry::_internal_has_edited_by() const { + return this != internal_default_instance() && edited_by_ != nullptr; } -inline void CreateLocationResponse::clear_location() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.location_ != nullptr) _impl_.location_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; +inline bool FragmentHistoryEntry::has_edited_by() const { + return _internal_has_edited_by(); } -inline const ::viam::app::v1::Location& CreateLocationResponse::_internal_location() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::Location* p = _impl_.location_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_Location_default_instance_); +inline void FragmentHistoryEntry::clear_edited_by() { + if (GetArenaForAllocation() == nullptr && edited_by_ != nullptr) { + delete edited_by_; + } + edited_by_ = nullptr; } -inline const ::viam::app::v1::Location& CreateLocationResponse::location() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.CreateLocationResponse.location) - return _internal_location(); +inline const ::viam::app::v1::AuthenticatorInfo& FragmentHistoryEntry::_internal_edited_by() const { + const ::viam::app::v1::AuthenticatorInfo* p = edited_by_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_AuthenticatorInfo_default_instance_); +} +inline const ::viam::app::v1::AuthenticatorInfo& FragmentHistoryEntry::edited_by() const { + // @@protoc_insertion_point(field_get:viam.app.v1.FragmentHistoryEntry.edited_by) + return _internal_edited_by(); } -inline void CreateLocationResponse::unsafe_arena_set_allocated_location(::viam::app::v1::Location* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.location_); +inline void FragmentHistoryEntry::unsafe_arena_set_allocated_edited_by( + ::viam::app::v1::AuthenticatorInfo* edited_by) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(edited_by_); } - _impl_.location_ = reinterpret_cast<::viam::app::v1::Location*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + edited_by_ = edited_by; + if (edited_by) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.CreateLocationResponse.location) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.FragmentHistoryEntry.edited_by) } -inline ::viam::app::v1::Location* CreateLocationResponse::release_location() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::Location* released = _impl_.location_; - _impl_.location_ = nullptr; +inline ::viam::app::v1::AuthenticatorInfo* FragmentHistoryEntry::release_edited_by() { + + ::viam::app::v1::AuthenticatorInfo* temp = edited_by_; + edited_by_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::viam::app::v1::Location* CreateLocationResponse::unsafe_arena_release_location() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.CreateLocationResponse.location) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::Location* temp = _impl_.location_; - _impl_.location_ = nullptr; +inline ::viam::app::v1::AuthenticatorInfo* FragmentHistoryEntry::unsafe_arena_release_edited_by() { + // @@protoc_insertion_point(field_release:viam.app.v1.FragmentHistoryEntry.edited_by) + + ::viam::app::v1::AuthenticatorInfo* temp = edited_by_; + edited_by_ = nullptr; return temp; } -inline ::viam::app::v1::Location* CreateLocationResponse::_internal_mutable_location() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.location_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::Location>(GetArena()); - _impl_.location_ = reinterpret_cast<::viam::app::v1::Location*>(p); +inline ::viam::app::v1::AuthenticatorInfo* FragmentHistoryEntry::_internal_mutable_edited_by() { + + if (edited_by_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::AuthenticatorInfo>(GetArenaForAllocation()); + edited_by_ = p; } - return _impl_.location_; + return edited_by_; } -inline ::viam::app::v1::Location* CreateLocationResponse::mutable_location() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::viam::app::v1::Location* _msg = _internal_mutable_location(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateLocationResponse.location) +inline ::viam::app::v1::AuthenticatorInfo* FragmentHistoryEntry::mutable_edited_by() { + ::viam::app::v1::AuthenticatorInfo* _msg = _internal_mutable_edited_by(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.FragmentHistoryEntry.edited_by) return _msg; } -inline void CreateLocationResponse::set_allocated_location(::viam::app::v1::Location* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void FragmentHistoryEntry::set_allocated_edited_by(::viam::app::v1::AuthenticatorInfo* edited_by) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::Location*>(_impl_.location_); + delete edited_by_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::Location*>(value)->GetArena(); + if (edited_by) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(edited_by); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + edited_by = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, edited_by, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.location_ = reinterpret_cast<::viam::app::v1::Location*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateLocationResponse.location) + edited_by_ = edited_by; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.FragmentHistoryEntry.edited_by) } -// ------------------------------------------------------------------- - -// GetLocationRequest - -// string location_id = 1 [json_name = "locationId"]; -inline void GetLocationRequest::clear_location_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.location_id_.ClearToEmpty(); +// string revision = 5 [json_name = "revision", (.tagger.v1.tags) = "bson:\"revision\" json:\"revision\""]; +inline void FragmentHistoryEntry::clear_revision() { + revision_.ClearToEmpty(); } -inline const std::string& GetLocationRequest::location_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.GetLocationRequest.location_id) - return _internal_location_id(); +inline const std::string& FragmentHistoryEntry::revision() const { + // @@protoc_insertion_point(field_get:viam.app.v1.FragmentHistoryEntry.revision) + return _internal_revision(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetLocationRequest::set_location_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.location_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.GetLocationRequest.location_id) +template +inline PROTOBUF_ALWAYS_INLINE +void FragmentHistoryEntry::set_revision(ArgT0&& arg0, ArgT... args) { + + revision_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.FragmentHistoryEntry.revision) } -inline std::string* GetLocationRequest::mutable_location_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_location_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.GetLocationRequest.location_id) +inline std::string* FragmentHistoryEntry::mutable_revision() { + std::string* _s = _internal_mutable_revision(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.FragmentHistoryEntry.revision) return _s; } -inline const std::string& GetLocationRequest::_internal_location_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.location_id_.Get(); +inline const std::string& FragmentHistoryEntry::_internal_revision() const { + return revision_.Get(); } -inline void GetLocationRequest::_internal_set_location_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.location_id_.Set(value, GetArena()); +inline void FragmentHistoryEntry::_internal_set_revision(const std::string& value) { + + revision_.Set(value, GetArenaForAllocation()); } -inline std::string* GetLocationRequest::_internal_mutable_location_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.location_id_.Mutable( GetArena()); +inline std::string* FragmentHistoryEntry::_internal_mutable_revision() { + + return revision_.Mutable(GetArenaForAllocation()); } -inline std::string* GetLocationRequest::release_location_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.GetLocationRequest.location_id) - return _impl_.location_id_.Release(); -} -inline void GetLocationRequest::set_allocated_location_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.location_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.location_id_.IsDefault()) { - _impl_.location_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetLocationRequest.location_id) +inline std::string* FragmentHistoryEntry::release_revision() { + // @@protoc_insertion_point(field_release:viam.app.v1.FragmentHistoryEntry.revision) + return revision_.Release(); +} +inline void FragmentHistoryEntry::set_allocated_revision(std::string* revision) { + if (revision != nullptr) { + + } else { + + } + revision_.SetAllocated(revision, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (revision_.IsDefault()) { + revision_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.FragmentHistoryEntry.revision) } -// ------------------------------------------------------------------- - -// GetLocationResponse - -// .viam.app.v1.Location location = 1 [json_name = "location"]; -inline bool GetLocationResponse::has_location() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.location_ != nullptr); - return value; +// .google.protobuf.Struct config = 6 [json_name = "config", (.tagger.v1.tags) = "bson:\"config\" json:\"config\""]; +inline bool FragmentHistoryEntry::_internal_has_config() const { + return this != internal_default_instance() && config_ != nullptr; } -inline void GetLocationResponse::clear_location() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.location_ != nullptr) _impl_.location_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; +inline bool FragmentHistoryEntry::has_config() const { + return _internal_has_config(); } -inline const ::viam::app::v1::Location& GetLocationResponse::_internal_location() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::Location* p = _impl_.location_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_Location_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& FragmentHistoryEntry::_internal_config() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = config_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::viam::app::v1::Location& GetLocationResponse::location() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.GetLocationResponse.location) - return _internal_location(); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& FragmentHistoryEntry::config() const { + // @@protoc_insertion_point(field_get:viam.app.v1.FragmentHistoryEntry.config) + return _internal_config(); } -inline void GetLocationResponse::unsafe_arena_set_allocated_location(::viam::app::v1::Location* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.location_); +inline void FragmentHistoryEntry::unsafe_arena_set_allocated_config( + ::PROTOBUF_NAMESPACE_ID::Struct* config) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(config_); } - _impl_.location_ = reinterpret_cast<::viam::app::v1::Location*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + config_ = config; + if (config) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.GetLocationResponse.location) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.FragmentHistoryEntry.config) } -inline ::viam::app::v1::Location* GetLocationResponse::release_location() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::Location* released = _impl_.location_; - _impl_.location_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* FragmentHistoryEntry::release_config() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = config_; + config_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::viam::app::v1::Location* GetLocationResponse::unsafe_arena_release_location() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.GetLocationResponse.location) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::Location* temp = _impl_.location_; - _impl_.location_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* FragmentHistoryEntry::unsafe_arena_release_config() { + // @@protoc_insertion_point(field_release:viam.app.v1.FragmentHistoryEntry.config) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = config_; + config_ = nullptr; return temp; } -inline ::viam::app::v1::Location* GetLocationResponse::_internal_mutable_location() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.location_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::Location>(GetArena()); - _impl_.location_ = reinterpret_cast<::viam::app::v1::Location*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* FragmentHistoryEntry::_internal_mutable_config() { + + if (config_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + config_ = p; } - return _impl_.location_; + return config_; } -inline ::viam::app::v1::Location* GetLocationResponse::mutable_location() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::viam::app::v1::Location* _msg = _internal_mutable_location(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.GetLocationResponse.location) +inline ::PROTOBUF_NAMESPACE_ID::Struct* FragmentHistoryEntry::mutable_config() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_config(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.FragmentHistoryEntry.config) return _msg; } -inline void GetLocationResponse::set_allocated_location(::viam::app::v1::Location* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void FragmentHistoryEntry::set_allocated_config(::PROTOBUF_NAMESPACE_ID::Struct* config) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::Location*>(_impl_.location_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(config_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::Location*>(value)->GetArena(); + if (config) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(config)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + config = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, config, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.location_ = reinterpret_cast<::viam::app::v1::Location*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetLocationResponse.location) + config_ = config; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.FragmentHistoryEntry.config) } // ------------------------------------------------------------------- -// UpdateLocationRequest +// FragmentError -// string location_id = 1 [json_name = "locationId"]; -inline void UpdateLocationRequest::clear_location_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.location_id_.ClearToEmpty(); -} -inline const std::string& UpdateLocationRequest::location_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.UpdateLocationRequest.location_id) - return _internal_location_id(); -} -template -inline PROTOBUF_ALWAYS_INLINE void UpdateLocationRequest::set_location_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.location_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.UpdateLocationRequest.location_id) -} -inline std::string* UpdateLocationRequest::mutable_location_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_location_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateLocationRequest.location_id) - return _s; +// .viam.app.v1.FragmentErrorType error_type = 1 [json_name = "errorType"]; +inline void FragmentError::clear_error_type() { + error_type_ = 0; } -inline const std::string& UpdateLocationRequest::_internal_location_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.location_id_.Get(); +inline ::viam::app::v1::FragmentErrorType FragmentError::_internal_error_type() const { + return static_cast< ::viam::app::v1::FragmentErrorType >(error_type_); } -inline void UpdateLocationRequest::_internal_set_location_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.location_id_.Set(value, GetArena()); +inline ::viam::app::v1::FragmentErrorType FragmentError::error_type() const { + // @@protoc_insertion_point(field_get:viam.app.v1.FragmentError.error_type) + return _internal_error_type(); } -inline std::string* UpdateLocationRequest::_internal_mutable_location_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.location_id_.Mutable( GetArena()); +inline void FragmentError::_internal_set_error_type(::viam::app::v1::FragmentErrorType value) { + + error_type_ = value; } -inline std::string* UpdateLocationRequest::release_location_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.UpdateLocationRequest.location_id) - return _impl_.location_id_.Release(); -} -inline void UpdateLocationRequest::set_allocated_location_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.location_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.location_id_.IsDefault()) { - _impl_.location_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateLocationRequest.location_id) +inline void FragmentError::set_error_type(::viam::app::v1::FragmentErrorType value) { + _internal_set_error_type(value); + // @@protoc_insertion_point(field_set:viam.app.v1.FragmentError.error_type) } -// optional string name = 2 [json_name = "name"]; -inline bool UpdateLocationRequest::has_name() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline void UpdateLocationRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000001u; +// string fragment_id = 2 [json_name = "fragmentId"]; +inline void FragmentError::clear_fragment_id() { + fragment_id_.ClearToEmpty(); } -inline const std::string& UpdateLocationRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.UpdateLocationRequest.name) - return _internal_name(); +inline const std::string& FragmentError::fragment_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.FragmentError.fragment_id) + return _internal_fragment_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void UpdateLocationRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.UpdateLocationRequest.name) +template +inline PROTOBUF_ALWAYS_INLINE +void FragmentError::set_fragment_id(ArgT0&& arg0, ArgT... args) { + + fragment_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.FragmentError.fragment_id) } -inline std::string* UpdateLocationRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateLocationRequest.name) +inline std::string* FragmentError::mutable_fragment_id() { + std::string* _s = _internal_mutable_fragment_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.FragmentError.fragment_id) return _s; } -inline const std::string& UpdateLocationRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); +inline const std::string& FragmentError::_internal_fragment_id() const { + return fragment_id_.Get(); } -inline void UpdateLocationRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.name_.Set(value, GetArena()); +inline void FragmentError::_internal_set_fragment_id(const std::string& value) { + + fragment_id_.Set(value, GetArenaForAllocation()); } -inline std::string* UpdateLocationRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.name_.Mutable( GetArena()); +inline std::string* FragmentError::_internal_mutable_fragment_id() { + + return fragment_id_.Mutable(GetArenaForAllocation()); } -inline std::string* UpdateLocationRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.UpdateLocationRequest.name) - if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { - return nullptr; - } - _impl_._has_bits_[0] &= ~0x00000001u; - auto* released = _impl_.name_.Release(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArena()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return released; +inline std::string* FragmentError::release_fragment_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.FragmentError.fragment_id) + return fragment_id_.Release(); } -inline void UpdateLocationRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; +inline void FragmentError::set_allocated_fragment_id(std::string* fragment_id) { + if (fragment_id != nullptr) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateLocationRequest.name) + fragment_id_.SetAllocated(fragment_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (fragment_id_.IsDefault()) { + fragment_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.FragmentError.fragment_id) } -// optional string parent_location_id = 3 [json_name = "parentLocationId"]; -inline bool UpdateLocationRequest::has_parent_location_id() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - return value; -} -inline void UpdateLocationRequest::clear_parent_location_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.parent_location_id_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000002u; +// string detail = 3 [json_name = "detail"]; +inline void FragmentError::clear_detail() { + detail_.ClearToEmpty(); } -inline const std::string& UpdateLocationRequest::parent_location_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.UpdateLocationRequest.parent_location_id) - return _internal_parent_location_id(); +inline const std::string& FragmentError::detail() const { + // @@protoc_insertion_point(field_get:viam.app.v1.FragmentError.detail) + return _internal_detail(); } -template -inline PROTOBUF_ALWAYS_INLINE void UpdateLocationRequest::set_parent_location_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.parent_location_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.UpdateLocationRequest.parent_location_id) +template +inline PROTOBUF_ALWAYS_INLINE +void FragmentError::set_detail(ArgT0&& arg0, ArgT... args) { + + detail_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.FragmentError.detail) } -inline std::string* UpdateLocationRequest::mutable_parent_location_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_parent_location_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateLocationRequest.parent_location_id) +inline std::string* FragmentError::mutable_detail() { + std::string* _s = _internal_mutable_detail(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.FragmentError.detail) return _s; } -inline const std::string& UpdateLocationRequest::_internal_parent_location_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.parent_location_id_.Get(); +inline const std::string& FragmentError::_internal_detail() const { + return detail_.Get(); } -inline void UpdateLocationRequest::_internal_set_parent_location_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.parent_location_id_.Set(value, GetArena()); +inline void FragmentError::_internal_set_detail(const std::string& value) { + + detail_.Set(value, GetArenaForAllocation()); } -inline std::string* UpdateLocationRequest::_internal_mutable_parent_location_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - return _impl_.parent_location_id_.Mutable( GetArena()); +inline std::string* FragmentError::_internal_mutable_detail() { + + return detail_.Mutable(GetArenaForAllocation()); } -inline std::string* UpdateLocationRequest::release_parent_location_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.UpdateLocationRequest.parent_location_id) - if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { - return nullptr; - } - _impl_._has_bits_[0] &= ~0x00000002u; - auto* released = _impl_.parent_location_id_.Release(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.parent_location_id_.Set("", GetArena()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return released; +inline std::string* FragmentError::release_detail() { + // @@protoc_insertion_point(field_release:viam.app.v1.FragmentError.detail) + return detail_.Release(); } -inline void UpdateLocationRequest::set_allocated_parent_location_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; +inline void FragmentError::set_allocated_detail(std::string* detail) { + if (detail != nullptr) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - _impl_.parent_location_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.parent_location_id_.IsDefault()) { - _impl_.parent_location_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateLocationRequest.parent_location_id) + detail_.SetAllocated(detail, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (detail_.IsDefault()) { + detail_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.FragmentError.detail) } -// optional string region = 4 [json_name = "region"]; -inline bool UpdateLocationRequest::has_region() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; - return value; -} -inline void UpdateLocationRequest::clear_region() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.region_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000004u; +// ------------------------------------------------------------------- + +// FragmentUsage + +// string fragment_id = 1 [json_name = "fragmentId"]; +inline void FragmentUsage::clear_fragment_id() { + fragment_id_.ClearToEmpty(); } -inline const std::string& UpdateLocationRequest::region() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.UpdateLocationRequest.region) - return _internal_region(); +inline const std::string& FragmentUsage::fragment_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.FragmentUsage.fragment_id) + return _internal_fragment_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void UpdateLocationRequest::set_region(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - _impl_.region_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.UpdateLocationRequest.region) +template +inline PROTOBUF_ALWAYS_INLINE +void FragmentUsage::set_fragment_id(ArgT0&& arg0, ArgT... args) { + + fragment_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.FragmentUsage.fragment_id) } -inline std::string* UpdateLocationRequest::mutable_region() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_region(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateLocationRequest.region) +inline std::string* FragmentUsage::mutable_fragment_id() { + std::string* _s = _internal_mutable_fragment_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.FragmentUsage.fragment_id) return _s; } -inline const std::string& UpdateLocationRequest::_internal_region() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.region_.Get(); +inline const std::string& FragmentUsage::_internal_fragment_id() const { + return fragment_id_.Get(); } -inline void UpdateLocationRequest::_internal_set_region(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - _impl_.region_.Set(value, GetArena()); +inline void FragmentUsage::_internal_set_fragment_id(const std::string& value) { + + fragment_id_.Set(value, GetArenaForAllocation()); } -inline std::string* UpdateLocationRequest::_internal_mutable_region() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - return _impl_.region_.Mutable( GetArena()); +inline std::string* FragmentUsage::_internal_mutable_fragment_id() { + + return fragment_id_.Mutable(GetArenaForAllocation()); } -inline std::string* UpdateLocationRequest::release_region() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.UpdateLocationRequest.region) - if ((_impl_._has_bits_[0] & 0x00000004u) == 0) { - return nullptr; - } - _impl_._has_bits_[0] &= ~0x00000004u; - auto* released = _impl_.region_.Release(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.region_.Set("", GetArena()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return released; +inline std::string* FragmentUsage::release_fragment_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.FragmentUsage.fragment_id) + return fragment_id_.Release(); } -inline void UpdateLocationRequest::set_allocated_region(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000004u; +inline void FragmentUsage::set_allocated_fragment_id(std::string* fragment_id) { + if (fragment_id != nullptr) { + } else { - _impl_._has_bits_[0] &= ~0x00000004u; + } - _impl_.region_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.region_.IsDefault()) { - _impl_.region_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateLocationRequest.region) + fragment_id_.SetAllocated(fragment_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (fragment_id_.IsDefault()) { + fragment_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.FragmentUsage.fragment_id) } -// ------------------------------------------------------------------- - -// UpdateLocationResponse - -// .viam.app.v1.Location location = 1 [json_name = "location"]; -inline bool UpdateLocationResponse::has_location() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.location_ != nullptr); - return value; +// int32 organizations = 2 [json_name = "organizations"]; +inline void FragmentUsage::clear_organizations() { + organizations_ = 0; } -inline void UpdateLocationResponse::clear_location() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.location_ != nullptr) _impl_.location_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; +inline int32_t FragmentUsage::_internal_organizations() const { + return organizations_; } -inline const ::viam::app::v1::Location& UpdateLocationResponse::_internal_location() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::Location* p = _impl_.location_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_Location_default_instance_); +inline int32_t FragmentUsage::organizations() const { + // @@protoc_insertion_point(field_get:viam.app.v1.FragmentUsage.organizations) + return _internal_organizations(); } -inline const ::viam::app::v1::Location& UpdateLocationResponse::location() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.UpdateLocationResponse.location) - return _internal_location(); +inline void FragmentUsage::_internal_set_organizations(int32_t value) { + + organizations_ = value; } -inline void UpdateLocationResponse::unsafe_arena_set_allocated_location(::viam::app::v1::Location* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.location_); - } - _impl_.location_ = reinterpret_cast<::viam::app::v1::Location*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.UpdateLocationResponse.location) +inline void FragmentUsage::set_organizations(int32_t value) { + _internal_set_organizations(value); + // @@protoc_insertion_point(field_set:viam.app.v1.FragmentUsage.organizations) } -inline ::viam::app::v1::Location* UpdateLocationResponse::release_location() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::Location* released = _impl_.location_; - _impl_.location_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; +// int32 machines = 3 [json_name = "machines"]; +inline void FragmentUsage::clear_machines() { + machines_ = 0; } -inline ::viam::app::v1::Location* UpdateLocationResponse::unsafe_arena_release_location() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.UpdateLocationResponse.location) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::Location* temp = _impl_.location_; - _impl_.location_ = nullptr; - return temp; +inline int32_t FragmentUsage::_internal_machines() const { + return machines_; } -inline ::viam::app::v1::Location* UpdateLocationResponse::_internal_mutable_location() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.location_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::Location>(GetArena()); - _impl_.location_ = reinterpret_cast<::viam::app::v1::Location*>(p); - } - return _impl_.location_; +inline int32_t FragmentUsage::machines() const { + // @@protoc_insertion_point(field_get:viam.app.v1.FragmentUsage.machines) + return _internal_machines(); } -inline ::viam::app::v1::Location* UpdateLocationResponse::mutable_location() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::viam::app::v1::Location* _msg = _internal_mutable_location(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateLocationResponse.location) - return _msg; +inline void FragmentUsage::_internal_set_machines(int32_t value) { + + machines_ = value; +} +inline void FragmentUsage::set_machines(int32_t value) { + _internal_set_machines(value); + // @@protoc_insertion_point(field_set:viam.app.v1.FragmentUsage.machines) } -inline void UpdateLocationResponse::set_allocated_location(::viam::app::v1::Location* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::Location*>(_impl_.location_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::Location*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - _impl_.location_ = reinterpret_cast<::viam::app::v1::Location*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateLocationResponse.location) +// int32 machines_in_current_org = 4 [json_name = "machinesInCurrentOrg"]; +inline void FragmentUsage::clear_machines_in_current_org() { + machines_in_current_org_ = 0; +} +inline int32_t FragmentUsage::_internal_machines_in_current_org() const { + return machines_in_current_org_; +} +inline int32_t FragmentUsage::machines_in_current_org() const { + // @@protoc_insertion_point(field_get:viam.app.v1.FragmentUsage.machines_in_current_org) + return _internal_machines_in_current_org(); +} +inline void FragmentUsage::_internal_set_machines_in_current_org(int32_t value) { + + machines_in_current_org_ = value; +} +inline void FragmentUsage::set_machines_in_current_org(int32_t value) { + _internal_set_machines_in_current_org(value); + // @@protoc_insertion_point(field_set:viam.app.v1.FragmentUsage.machines_in_current_org) } // ------------------------------------------------------------------- -// DeleteLocationRequest +// ResolvedFragment -// string location_id = 1 [json_name = "locationId"]; -inline void DeleteLocationRequest::clear_location_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.location_id_.ClearToEmpty(); +// string fragment_id = 1 [json_name = "fragmentId"]; +inline void ResolvedFragment::clear_fragment_id() { + fragment_id_.ClearToEmpty(); } -inline const std::string& DeleteLocationRequest::location_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.DeleteLocationRequest.location_id) - return _internal_location_id(); +inline const std::string& ResolvedFragment::fragment_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ResolvedFragment.fragment_id) + return _internal_fragment_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void DeleteLocationRequest::set_location_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.location_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.DeleteLocationRequest.location_id) +template +inline PROTOBUF_ALWAYS_INLINE +void ResolvedFragment::set_fragment_id(ArgT0&& arg0, ArgT... args) { + + fragment_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.ResolvedFragment.fragment_id) } -inline std::string* DeleteLocationRequest::mutable_location_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_location_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.DeleteLocationRequest.location_id) +inline std::string* ResolvedFragment::mutable_fragment_id() { + std::string* _s = _internal_mutable_fragment_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ResolvedFragment.fragment_id) return _s; } -inline const std::string& DeleteLocationRequest::_internal_location_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.location_id_.Get(); +inline const std::string& ResolvedFragment::_internal_fragment_id() const { + return fragment_id_.Get(); } -inline void DeleteLocationRequest::_internal_set_location_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.location_id_.Set(value, GetArena()); +inline void ResolvedFragment::_internal_set_fragment_id(const std::string& value) { + + fragment_id_.Set(value, GetArenaForAllocation()); } -inline std::string* DeleteLocationRequest::_internal_mutable_location_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.location_id_.Mutable( GetArena()); +inline std::string* ResolvedFragment::_internal_mutable_fragment_id() { + + return fragment_id_.Mutable(GetArenaForAllocation()); } -inline std::string* DeleteLocationRequest::release_location_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.DeleteLocationRequest.location_id) - return _impl_.location_id_.Release(); -} -inline void DeleteLocationRequest::set_allocated_location_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.location_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.location_id_.IsDefault()) { - _impl_.location_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.DeleteLocationRequest.location_id) +inline std::string* ResolvedFragment::release_fragment_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.ResolvedFragment.fragment_id) + return fragment_id_.Release(); +} +inline void ResolvedFragment::set_allocated_fragment_id(std::string* fragment_id) { + if (fragment_id != nullptr) { + + } else { + + } + fragment_id_.SetAllocated(fragment_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (fragment_id_.IsDefault()) { + fragment_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ResolvedFragment.fragment_id) } -// ------------------------------------------------------------------- - -// DeleteLocationResponse - -// ------------------------------------------------------------------- - -// GetOrganizationsWithAccessToLocationRequest - -// string location_id = 1 [json_name = "locationId"]; -inline void GetOrganizationsWithAccessToLocationRequest::clear_location_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.location_id_.ClearToEmpty(); +// .google.protobuf.Struct resolved_config = 2 [json_name = "resolvedConfig"]; +inline bool ResolvedFragment::_internal_has_resolved_config() const { + return this != internal_default_instance() && resolved_config_ != nullptr; } -inline const std::string& GetOrganizationsWithAccessToLocationRequest::location_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.GetOrganizationsWithAccessToLocationRequest.location_id) - return _internal_location_id(); +inline bool ResolvedFragment::has_resolved_config() const { + return _internal_has_resolved_config(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetOrganizationsWithAccessToLocationRequest::set_location_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.location_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.GetOrganizationsWithAccessToLocationRequest.location_id) +inline const ::PROTOBUF_NAMESPACE_ID::Struct& ResolvedFragment::_internal_resolved_config() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = resolved_config_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline std::string* GetOrganizationsWithAccessToLocationRequest::mutable_location_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_location_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.GetOrganizationsWithAccessToLocationRequest.location_id) - return _s; +inline const ::PROTOBUF_NAMESPACE_ID::Struct& ResolvedFragment::resolved_config() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ResolvedFragment.resolved_config) + return _internal_resolved_config(); } -inline const std::string& GetOrganizationsWithAccessToLocationRequest::_internal_location_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.location_id_.Get(); +inline void ResolvedFragment::unsafe_arena_set_allocated_resolved_config( + ::PROTOBUF_NAMESPACE_ID::Struct* resolved_config) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(resolved_config_); + } + resolved_config_ = resolved_config; + if (resolved_config) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.ResolvedFragment.resolved_config) } -inline void GetOrganizationsWithAccessToLocationRequest::_internal_set_location_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.location_id_.Set(value, GetArena()); +inline ::PROTOBUF_NAMESPACE_ID::Struct* ResolvedFragment::release_resolved_config() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = resolved_config_; + resolved_config_ = 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 std::string* GetOrganizationsWithAccessToLocationRequest::_internal_mutable_location_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.location_id_.Mutable( GetArena()); +inline ::PROTOBUF_NAMESPACE_ID::Struct* ResolvedFragment::unsafe_arena_release_resolved_config() { + // @@protoc_insertion_point(field_release:viam.app.v1.ResolvedFragment.resolved_config) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = resolved_config_; + resolved_config_ = nullptr; + return temp; } -inline std::string* GetOrganizationsWithAccessToLocationRequest::release_location_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.GetOrganizationsWithAccessToLocationRequest.location_id) - return _impl_.location_id_.Release(); -} -inline void GetOrganizationsWithAccessToLocationRequest::set_allocated_location_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.location_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.location_id_.IsDefault()) { - _impl_.location_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetOrganizationsWithAccessToLocationRequest.location_id) +inline ::PROTOBUF_NAMESPACE_ID::Struct* ResolvedFragment::_internal_mutable_resolved_config() { + + if (resolved_config_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + resolved_config_ = p; + } + return resolved_config_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* ResolvedFragment::mutable_resolved_config() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_resolved_config(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ResolvedFragment.resolved_config) + return _msg; +} +inline void ResolvedFragment::set_allocated_resolved_config(::PROTOBUF_NAMESPACE_ID::Struct* resolved_config) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(resolved_config_); + } + if (resolved_config) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(resolved_config)); + if (message_arena != submessage_arena) { + resolved_config = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, resolved_config, submessage_arena); + } + + } else { + + } + resolved_config_ = resolved_config; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ResolvedFragment.resolved_config) } -// ------------------------------------------------------------------- - -// GetOrganizationsWithAccessToLocationResponse - -// repeated .viam.app.v1.OrganizationIdentity organization_identities = 1 [json_name = "organizationIdentities"]; -inline int GetOrganizationsWithAccessToLocationResponse::_internal_organization_identities_size() const { - return _internal_organization_identities().size(); +// .viam.app.v1.FragmentError error = 3 [json_name = "error"]; +inline bool ResolvedFragment::_internal_has_error() const { + return this != internal_default_instance() && error_ != nullptr; } -inline int GetOrganizationsWithAccessToLocationResponse::organization_identities_size() const { - return _internal_organization_identities_size(); +inline bool ResolvedFragment::has_error() const { + return _internal_has_error(); } -inline void GetOrganizationsWithAccessToLocationResponse::clear_organization_identities() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_identities_.Clear(); +inline void ResolvedFragment::clear_error() { + if (GetArenaForAllocation() == nullptr && error_ != nullptr) { + delete error_; + } + error_ = nullptr; } -inline ::viam::app::v1::OrganizationIdentity* GetOrganizationsWithAccessToLocationResponse::mutable_organization_identities(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:viam.app.v1.GetOrganizationsWithAccessToLocationResponse.organization_identities) - return _internal_mutable_organization_identities()->Mutable(index); +inline const ::viam::app::v1::FragmentError& ResolvedFragment::_internal_error() const { + const ::viam::app::v1::FragmentError* p = error_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_FragmentError_default_instance_); } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::OrganizationIdentity>* GetOrganizationsWithAccessToLocationResponse::mutable_organization_identities() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.GetOrganizationsWithAccessToLocationResponse.organization_identities) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_organization_identities(); +inline const ::viam::app::v1::FragmentError& ResolvedFragment::error() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ResolvedFragment.error) + return _internal_error(); } -inline const ::viam::app::v1::OrganizationIdentity& GetOrganizationsWithAccessToLocationResponse::organization_identities(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.GetOrganizationsWithAccessToLocationResponse.organization_identities) - return _internal_organization_identities().Get(index); +inline void ResolvedFragment::unsafe_arena_set_allocated_error( + ::viam::app::v1::FragmentError* error) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(error_); + } + error_ = error; + if (error) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.ResolvedFragment.error) } -inline ::viam::app::v1::OrganizationIdentity* GetOrganizationsWithAccessToLocationResponse::add_organization_identities() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::OrganizationIdentity* _add = _internal_mutable_organization_identities()->Add(); - // @@protoc_insertion_point(field_add:viam.app.v1.GetOrganizationsWithAccessToLocationResponse.organization_identities) - return _add; +inline ::viam::app::v1::FragmentError* ResolvedFragment::release_error() { + + ::viam::app::v1::FragmentError* temp = error_; + error_ = 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 const ::google::protobuf::RepeatedPtrField<::viam::app::v1::OrganizationIdentity>& GetOrganizationsWithAccessToLocationResponse::organization_identities() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:viam.app.v1.GetOrganizationsWithAccessToLocationResponse.organization_identities) - return _internal_organization_identities(); +inline ::viam::app::v1::FragmentError* ResolvedFragment::unsafe_arena_release_error() { + // @@protoc_insertion_point(field_release:viam.app.v1.ResolvedFragment.error) + + ::viam::app::v1::FragmentError* temp = error_; + error_ = nullptr; + return temp; +} +inline ::viam::app::v1::FragmentError* ResolvedFragment::_internal_mutable_error() { + + if (error_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::FragmentError>(GetArenaForAllocation()); + error_ = p; + } + return error_; } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::OrganizationIdentity>& -GetOrganizationsWithAccessToLocationResponse::_internal_organization_identities() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.organization_identities_; +inline ::viam::app::v1::FragmentError* ResolvedFragment::mutable_error() { + ::viam::app::v1::FragmentError* _msg = _internal_mutable_error(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ResolvedFragment.error) + return _msg; } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::OrganizationIdentity>* -GetOrganizationsWithAccessToLocationResponse::_internal_mutable_organization_identities() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.organization_identities_; +inline void ResolvedFragment::set_allocated_error(::viam::app::v1::FragmentError* error) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete error_; + } + if (error) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(error); + if (message_arena != submessage_arena) { + error = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, error, submessage_arena); + } + + } else { + + } + error_ = error; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ResolvedFragment.error) } // ------------------------------------------------------------------- -// ListLocationsRequest +// ListFragmentsRequest // string organization_id = 1 [json_name = "organizationId"]; -inline void ListLocationsRequest::clear_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.ClearToEmpty(); +inline void ListFragmentsRequest::clear_organization_id() { + organization_id_.ClearToEmpty(); } -inline const std::string& ListLocationsRequest::organization_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.ListLocationsRequest.organization_id) +inline const std::string& ListFragmentsRequest::organization_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ListFragmentsRequest.organization_id) return _internal_organization_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void ListLocationsRequest::set_organization_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.ListLocationsRequest.organization_id) +template +inline PROTOBUF_ALWAYS_INLINE +void ListFragmentsRequest::set_organization_id(ArgT0&& arg0, ArgT... args) { + + organization_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.ListFragmentsRequest.organization_id) } -inline std::string* ListLocationsRequest::mutable_organization_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ListFragmentsRequest::mutable_organization_id() { std::string* _s = _internal_mutable_organization_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.ListLocationsRequest.organization_id) + // @@protoc_insertion_point(field_mutable:viam.app.v1.ListFragmentsRequest.organization_id) return _s; } -inline const std::string& ListLocationsRequest::_internal_organization_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.organization_id_.Get(); +inline const std::string& ListFragmentsRequest::_internal_organization_id() const { + return organization_id_.Get(); } -inline void ListLocationsRequest::_internal_set_organization_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(value, GetArena()); +inline void ListFragmentsRequest::_internal_set_organization_id(const std::string& value) { + + organization_id_.Set(value, GetArenaForAllocation()); } -inline std::string* ListLocationsRequest::_internal_mutable_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.organization_id_.Mutable( GetArena()); +inline std::string* ListFragmentsRequest::_internal_mutable_organization_id() { + + return organization_id_.Mutable(GetArenaForAllocation()); } -inline std::string* ListLocationsRequest::release_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.ListLocationsRequest.organization_id) - return _impl_.organization_id_.Release(); -} -inline void ListLocationsRequest::set_allocated_organization_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.organization_id_.IsDefault()) { - _impl_.organization_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ListLocationsRequest.organization_id) +inline std::string* ListFragmentsRequest::release_organization_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.ListFragmentsRequest.organization_id) + return organization_id_.Release(); +} +inline void ListFragmentsRequest::set_allocated_organization_id(std::string* organization_id) { + if (organization_id != nullptr) { + + } else { + + } + organization_id_.SetAllocated(organization_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (organization_id_.IsDefault()) { + organization_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ListFragmentsRequest.organization_id) } -// ------------------------------------------------------------------- - -// ShareLocationRequest - -// string location_id = 1 [json_name = "locationId"]; -inline void ShareLocationRequest::clear_location_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.location_id_.ClearToEmpty(); +// bool show_public = 2 [json_name = "showPublic"]; +inline void ListFragmentsRequest::clear_show_public() { + show_public_ = false; } -inline const std::string& ShareLocationRequest::location_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.ShareLocationRequest.location_id) - return _internal_location_id(); +inline bool ListFragmentsRequest::_internal_show_public() const { + return show_public_; } -template -inline PROTOBUF_ALWAYS_INLINE void ShareLocationRequest::set_location_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.location_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.ShareLocationRequest.location_id) +inline bool ListFragmentsRequest::show_public() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ListFragmentsRequest.show_public) + return _internal_show_public(); } -inline std::string* ShareLocationRequest::mutable_location_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_location_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.ShareLocationRequest.location_id) - return _s; +inline void ListFragmentsRequest::_internal_set_show_public(bool value) { + + show_public_ = value; } -inline const std::string& ShareLocationRequest::_internal_location_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.location_id_.Get(); +inline void ListFragmentsRequest::set_show_public(bool value) { + _internal_set_show_public(value); + // @@protoc_insertion_point(field_set:viam.app.v1.ListFragmentsRequest.show_public) } -inline void ShareLocationRequest::_internal_set_location_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.location_id_.Set(value, GetArena()); + +// repeated .viam.app.v1.FragmentVisibility fragment_visibility = 3 [json_name = "fragmentVisibility"]; +inline int ListFragmentsRequest::_internal_fragment_visibility_size() const { + return fragment_visibility_.size(); } -inline std::string* ShareLocationRequest::_internal_mutable_location_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.location_id_.Mutable( GetArena()); +inline int ListFragmentsRequest::fragment_visibility_size() const { + return _internal_fragment_visibility_size(); } -inline std::string* ShareLocationRequest::release_location_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.ShareLocationRequest.location_id) - return _impl_.location_id_.Release(); -} -inline void ShareLocationRequest::set_allocated_location_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.location_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.location_id_.IsDefault()) { - _impl_.location_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ShareLocationRequest.location_id) +inline void ListFragmentsRequest::clear_fragment_visibility() { + fragment_visibility_.Clear(); } - -// string organization_id = 2 [json_name = "organizationId"]; -inline void ShareLocationRequest::clear_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.ClearToEmpty(); +inline ::viam::app::v1::FragmentVisibility ListFragmentsRequest::_internal_fragment_visibility(int index) const { + return static_cast< ::viam::app::v1::FragmentVisibility >(fragment_visibility_.Get(index)); } -inline const std::string& ShareLocationRequest::organization_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.ShareLocationRequest.organization_id) - return _internal_organization_id(); +inline ::viam::app::v1::FragmentVisibility ListFragmentsRequest::fragment_visibility(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.ListFragmentsRequest.fragment_visibility) + return _internal_fragment_visibility(index); } -template -inline PROTOBUF_ALWAYS_INLINE void ShareLocationRequest::set_organization_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.ShareLocationRequest.organization_id) +inline void ListFragmentsRequest::set_fragment_visibility(int index, ::viam::app::v1::FragmentVisibility value) { + fragment_visibility_.Set(index, value); + // @@protoc_insertion_point(field_set:viam.app.v1.ListFragmentsRequest.fragment_visibility) } -inline std::string* ShareLocationRequest::mutable_organization_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_organization_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.ShareLocationRequest.organization_id) - return _s; +inline void ListFragmentsRequest::_internal_add_fragment_visibility(::viam::app::v1::FragmentVisibility value) { + fragment_visibility_.Add(value); } -inline const std::string& ShareLocationRequest::_internal_organization_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.organization_id_.Get(); +inline void ListFragmentsRequest::add_fragment_visibility(::viam::app::v1::FragmentVisibility value) { + _internal_add_fragment_visibility(value); + // @@protoc_insertion_point(field_add:viam.app.v1.ListFragmentsRequest.fragment_visibility) } -inline void ShareLocationRequest::_internal_set_organization_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(value, GetArena()); +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField& +ListFragmentsRequest::fragment_visibility() const { + // @@protoc_insertion_point(field_list:viam.app.v1.ListFragmentsRequest.fragment_visibility) + return fragment_visibility_; } -inline std::string* ShareLocationRequest::_internal_mutable_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.organization_id_.Mutable( GetArena()); +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* +ListFragmentsRequest::_internal_mutable_fragment_visibility() { + return &fragment_visibility_; } -inline std::string* ShareLocationRequest::release_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.ShareLocationRequest.organization_id) - return _impl_.organization_id_.Release(); -} -inline void ShareLocationRequest::set_allocated_organization_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.organization_id_.IsDefault()) { - _impl_.organization_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ShareLocationRequest.organization_id) +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* +ListFragmentsRequest::mutable_fragment_visibility() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ListFragmentsRequest.fragment_visibility) + return _internal_mutable_fragment_visibility(); } // ------------------------------------------------------------------- -// ShareLocationResponse - -// ------------------------------------------------------------------- - -// UnshareLocationRequest +// ListFragmentsResponse -// string location_id = 1 [json_name = "locationId"]; -inline void UnshareLocationRequest::clear_location_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.location_id_.ClearToEmpty(); +// repeated .viam.app.v1.Fragment fragments = 1 [json_name = "fragments"]; +inline int ListFragmentsResponse::_internal_fragments_size() const { + return fragments_.size(); } -inline const std::string& UnshareLocationRequest::location_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.UnshareLocationRequest.location_id) - return _internal_location_id(); +inline int ListFragmentsResponse::fragments_size() const { + return _internal_fragments_size(); } -template -inline PROTOBUF_ALWAYS_INLINE void UnshareLocationRequest::set_location_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.location_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.UnshareLocationRequest.location_id) +inline void ListFragmentsResponse::clear_fragments() { + fragments_.Clear(); } -inline std::string* UnshareLocationRequest::mutable_location_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_location_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.UnshareLocationRequest.location_id) - return _s; +inline ::viam::app::v1::Fragment* ListFragmentsResponse::mutable_fragments(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.ListFragmentsResponse.fragments) + return fragments_.Mutable(index); } -inline const std::string& UnshareLocationRequest::_internal_location_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.location_id_.Get(); +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Fragment >* +ListFragmentsResponse::mutable_fragments() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ListFragmentsResponse.fragments) + return &fragments_; } -inline void UnshareLocationRequest::_internal_set_location_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.location_id_.Set(value, GetArena()); +inline const ::viam::app::v1::Fragment& ListFragmentsResponse::_internal_fragments(int index) const { + return fragments_.Get(index); +} +inline const ::viam::app::v1::Fragment& ListFragmentsResponse::fragments(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.ListFragmentsResponse.fragments) + return _internal_fragments(index); +} +inline ::viam::app::v1::Fragment* ListFragmentsResponse::_internal_add_fragments() { + return fragments_.Add(); } -inline std::string* UnshareLocationRequest::_internal_mutable_location_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.location_id_.Mutable( GetArena()); +inline ::viam::app::v1::Fragment* ListFragmentsResponse::add_fragments() { + ::viam::app::v1::Fragment* _add = _internal_add_fragments(); + // @@protoc_insertion_point(field_add:viam.app.v1.ListFragmentsResponse.fragments) + return _add; } -inline std::string* UnshareLocationRequest::release_location_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.UnshareLocationRequest.location_id) - return _impl_.location_id_.Release(); -} -inline void UnshareLocationRequest::set_allocated_location_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.location_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.location_id_.IsDefault()) { - _impl_.location_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UnshareLocationRequest.location_id) +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Fragment >& +ListFragmentsResponse::fragments() const { + // @@protoc_insertion_point(field_list:viam.app.v1.ListFragmentsResponse.fragments) + return fragments_; } -// string organization_id = 2 [json_name = "organizationId"]; -inline void UnshareLocationRequest::clear_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.ClearToEmpty(); +// repeated .viam.app.v1.FragmentUsage fragment_usages = 2 [json_name = "fragmentUsages"]; +inline int ListFragmentsResponse::_internal_fragment_usages_size() const { + return fragment_usages_.size(); } -inline const std::string& UnshareLocationRequest::organization_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.UnshareLocationRequest.organization_id) - return _internal_organization_id(); +inline int ListFragmentsResponse::fragment_usages_size() const { + return _internal_fragment_usages_size(); } -template -inline PROTOBUF_ALWAYS_INLINE void UnshareLocationRequest::set_organization_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.UnshareLocationRequest.organization_id) +inline void ListFragmentsResponse::clear_fragment_usages() { + fragment_usages_.Clear(); } -inline std::string* UnshareLocationRequest::mutable_organization_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_organization_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.UnshareLocationRequest.organization_id) - return _s; +inline ::viam::app::v1::FragmentUsage* ListFragmentsResponse::mutable_fragment_usages(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.ListFragmentsResponse.fragment_usages) + return fragment_usages_.Mutable(index); } -inline const std::string& UnshareLocationRequest::_internal_organization_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.organization_id_.Get(); +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::FragmentUsage >* +ListFragmentsResponse::mutable_fragment_usages() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ListFragmentsResponse.fragment_usages) + return &fragment_usages_; } -inline void UnshareLocationRequest::_internal_set_organization_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(value, GetArena()); +inline const ::viam::app::v1::FragmentUsage& ListFragmentsResponse::_internal_fragment_usages(int index) const { + return fragment_usages_.Get(index); } -inline std::string* UnshareLocationRequest::_internal_mutable_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.organization_id_.Mutable( GetArena()); +inline const ::viam::app::v1::FragmentUsage& ListFragmentsResponse::fragment_usages(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.ListFragmentsResponse.fragment_usages) + return _internal_fragment_usages(index); } -inline std::string* UnshareLocationRequest::release_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.UnshareLocationRequest.organization_id) - return _impl_.organization_id_.Release(); -} -inline void UnshareLocationRequest::set_allocated_organization_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.organization_id_.IsDefault()) { - _impl_.organization_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UnshareLocationRequest.organization_id) +inline ::viam::app::v1::FragmentUsage* ListFragmentsResponse::_internal_add_fragment_usages() { + return fragment_usages_.Add(); +} +inline ::viam::app::v1::FragmentUsage* ListFragmentsResponse::add_fragment_usages() { + ::viam::app::v1::FragmentUsage* _add = _internal_add_fragment_usages(); + // @@protoc_insertion_point(field_add:viam.app.v1.ListFragmentsResponse.fragment_usages) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::FragmentUsage >& +ListFragmentsResponse::fragment_usages() const { + // @@protoc_insertion_point(field_list:viam.app.v1.ListFragmentsResponse.fragment_usages) + return fragment_usages_; } // ------------------------------------------------------------------- -// UnshareLocationResponse - -// ------------------------------------------------------------------- - -// ListLocationsResponse +// GetFragmentRequest -// repeated .viam.app.v1.Location locations = 1 [json_name = "locations"]; -inline int ListLocationsResponse::_internal_locations_size() const { - return _internal_locations().size(); -} -inline int ListLocationsResponse::locations_size() const { - return _internal_locations_size(); +// string id = 1 [json_name = "id"]; +inline void GetFragmentRequest::clear_id() { + id_.ClearToEmpty(); } -inline void ListLocationsResponse::clear_locations() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.locations_.Clear(); +inline const std::string& GetFragmentRequest::id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetFragmentRequest.id) + return _internal_id(); } -inline ::viam::app::v1::Location* ListLocationsResponse::mutable_locations(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:viam.app.v1.ListLocationsResponse.locations) - return _internal_mutable_locations()->Mutable(index); +template +inline PROTOBUF_ALWAYS_INLINE +void GetFragmentRequest::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.GetFragmentRequest.id) } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::Location>* ListLocationsResponse::mutable_locations() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ListLocationsResponse.locations) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_locations(); +inline std::string* GetFragmentRequest::mutable_id() { + std::string* _s = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetFragmentRequest.id) + return _s; } -inline const ::viam::app::v1::Location& ListLocationsResponse::locations(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.ListLocationsResponse.locations) - return _internal_locations().Get(index); +inline const std::string& GetFragmentRequest::_internal_id() const { + return id_.Get(); } -inline ::viam::app::v1::Location* ListLocationsResponse::add_locations() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::Location* _add = _internal_mutable_locations()->Add(); - // @@protoc_insertion_point(field_add:viam.app.v1.ListLocationsResponse.locations) - return _add; +inline void GetFragmentRequest::_internal_set_id(const std::string& value) { + + id_.Set(value, GetArenaForAllocation()); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Location>& ListLocationsResponse::locations() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:viam.app.v1.ListLocationsResponse.locations) - return _internal_locations(); +inline std::string* GetFragmentRequest::_internal_mutable_id() { + + return id_.Mutable(GetArenaForAllocation()); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Location>& -ListLocationsResponse::_internal_locations() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.locations_; +inline std::string* GetFragmentRequest::release_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.GetFragmentRequest.id) + return id_.Release(); } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::Location>* -ListLocationsResponse::_internal_mutable_locations() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.locations_; +inline void GetFragmentRequest::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetFragmentRequest.id) } -// ------------------------------------------------------------------- - -// CreateLocationSecretRequest - -// string location_id = 1 [json_name = "locationId"]; -inline void CreateLocationSecretRequest::clear_location_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.location_id_.ClearToEmpty(); +// string current_organization_id = 2 [json_name = "currentOrganizationId"]; +inline void GetFragmentRequest::clear_current_organization_id() { + current_organization_id_.ClearToEmpty(); } -inline const std::string& CreateLocationSecretRequest::location_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.CreateLocationSecretRequest.location_id) - return _internal_location_id(); +inline const std::string& GetFragmentRequest::current_organization_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetFragmentRequest.current_organization_id) + return _internal_current_organization_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void CreateLocationSecretRequest::set_location_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.location_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.CreateLocationSecretRequest.location_id) +template +inline PROTOBUF_ALWAYS_INLINE +void GetFragmentRequest::set_current_organization_id(ArgT0&& arg0, ArgT... args) { + + current_organization_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.GetFragmentRequest.current_organization_id) } -inline std::string* CreateLocationSecretRequest::mutable_location_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_location_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateLocationSecretRequest.location_id) +inline std::string* GetFragmentRequest::mutable_current_organization_id() { + std::string* _s = _internal_mutable_current_organization_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetFragmentRequest.current_organization_id) return _s; } -inline const std::string& CreateLocationSecretRequest::_internal_location_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.location_id_.Get(); +inline const std::string& GetFragmentRequest::_internal_current_organization_id() const { + return current_organization_id_.Get(); } -inline void CreateLocationSecretRequest::_internal_set_location_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.location_id_.Set(value, GetArena()); +inline void GetFragmentRequest::_internal_set_current_organization_id(const std::string& value) { + + current_organization_id_.Set(value, GetArenaForAllocation()); } -inline std::string* CreateLocationSecretRequest::_internal_mutable_location_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.location_id_.Mutable( GetArena()); +inline std::string* GetFragmentRequest::_internal_mutable_current_organization_id() { + + return current_organization_id_.Mutable(GetArenaForAllocation()); } -inline std::string* CreateLocationSecretRequest::release_location_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.CreateLocationSecretRequest.location_id) - return _impl_.location_id_.Release(); -} -inline void CreateLocationSecretRequest::set_allocated_location_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.location_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.location_id_.IsDefault()) { - _impl_.location_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateLocationSecretRequest.location_id) +inline std::string* GetFragmentRequest::release_current_organization_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.GetFragmentRequest.current_organization_id) + return current_organization_id_.Release(); +} +inline void GetFragmentRequest::set_allocated_current_organization_id(std::string* current_organization_id) { + if (current_organization_id != nullptr) { + + } else { + + } + current_organization_id_.SetAllocated(current_organization_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (current_organization_id_.IsDefault()) { + current_organization_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetFragmentRequest.current_organization_id) } // ------------------------------------------------------------------- -// CreateLocationSecretResponse +// GetFragmentResponse -// .viam.app.v1.LocationAuth auth = 1 [json_name = "auth"]; -inline bool CreateLocationSecretResponse::has_auth() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.auth_ != nullptr); - return value; +// .viam.app.v1.Fragment fragment = 1 [json_name = "fragment"]; +inline bool GetFragmentResponse::_internal_has_fragment() const { + return this != internal_default_instance() && fragment_ != nullptr; } -inline void CreateLocationSecretResponse::clear_auth() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.auth_ != nullptr) _impl_.auth_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; +inline bool GetFragmentResponse::has_fragment() const { + return _internal_has_fragment(); } -inline const ::viam::app::v1::LocationAuth& CreateLocationSecretResponse::_internal_auth() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::LocationAuth* p = _impl_.auth_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_LocationAuth_default_instance_); +inline void GetFragmentResponse::clear_fragment() { + if (GetArenaForAllocation() == nullptr && fragment_ != nullptr) { + delete fragment_; + } + fragment_ = nullptr; } -inline const ::viam::app::v1::LocationAuth& CreateLocationSecretResponse::auth() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.CreateLocationSecretResponse.auth) - return _internal_auth(); +inline const ::viam::app::v1::Fragment& GetFragmentResponse::_internal_fragment() const { + const ::viam::app::v1::Fragment* p = fragment_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_Fragment_default_instance_); +} +inline const ::viam::app::v1::Fragment& GetFragmentResponse::fragment() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetFragmentResponse.fragment) + return _internal_fragment(); } -inline void CreateLocationSecretResponse::unsafe_arena_set_allocated_auth(::viam::app::v1::LocationAuth* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.auth_); +inline void GetFragmentResponse::unsafe_arena_set_allocated_fragment( + ::viam::app::v1::Fragment* fragment) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(fragment_); } - _impl_.auth_ = reinterpret_cast<::viam::app::v1::LocationAuth*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + fragment_ = fragment; + if (fragment) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.CreateLocationSecretResponse.auth) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.GetFragmentResponse.fragment) } -inline ::viam::app::v1::LocationAuth* CreateLocationSecretResponse::release_auth() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::LocationAuth* released = _impl_.auth_; - _impl_.auth_ = nullptr; +inline ::viam::app::v1::Fragment* GetFragmentResponse::release_fragment() { + + ::viam::app::v1::Fragment* temp = fragment_; + fragment_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::viam::app::v1::LocationAuth* CreateLocationSecretResponse::unsafe_arena_release_auth() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.CreateLocationSecretResponse.auth) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::LocationAuth* temp = _impl_.auth_; - _impl_.auth_ = nullptr; +inline ::viam::app::v1::Fragment* GetFragmentResponse::unsafe_arena_release_fragment() { + // @@protoc_insertion_point(field_release:viam.app.v1.GetFragmentResponse.fragment) + + ::viam::app::v1::Fragment* temp = fragment_; + fragment_ = nullptr; return temp; } -inline ::viam::app::v1::LocationAuth* CreateLocationSecretResponse::_internal_mutable_auth() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.auth_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::LocationAuth>(GetArena()); - _impl_.auth_ = reinterpret_cast<::viam::app::v1::LocationAuth*>(p); +inline ::viam::app::v1::Fragment* GetFragmentResponse::_internal_mutable_fragment() { + + if (fragment_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::Fragment>(GetArenaForAllocation()); + fragment_ = p; } - return _impl_.auth_; + return fragment_; } -inline ::viam::app::v1::LocationAuth* CreateLocationSecretResponse::mutable_auth() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::viam::app::v1::LocationAuth* _msg = _internal_mutable_auth(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateLocationSecretResponse.auth) +inline ::viam::app::v1::Fragment* GetFragmentResponse::mutable_fragment() { + ::viam::app::v1::Fragment* _msg = _internal_mutable_fragment(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetFragmentResponse.fragment) return _msg; } -inline void CreateLocationSecretResponse::set_allocated_auth(::viam::app::v1::LocationAuth* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetFragmentResponse::set_allocated_fragment(::viam::app::v1::Fragment* fragment) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::LocationAuth*>(_impl_.auth_); + delete fragment_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::LocationAuth*>(value)->GetArena(); + if (fragment) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(fragment); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + fragment = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, fragment, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.auth_ = reinterpret_cast<::viam::app::v1::LocationAuth*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateLocationSecretResponse.auth) + fragment_ = fragment; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetFragmentResponse.fragment) } -// ------------------------------------------------------------------- - -// DeleteLocationSecretRequest - -// string location_id = 1 [json_name = "locationId"]; -inline void DeleteLocationSecretRequest::clear_location_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.location_id_.ClearToEmpty(); -} -inline const std::string& DeleteLocationSecretRequest::location_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.DeleteLocationSecretRequest.location_id) - return _internal_location_id(); -} -template -inline PROTOBUF_ALWAYS_INLINE void DeleteLocationSecretRequest::set_location_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.location_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.DeleteLocationSecretRequest.location_id) -} -inline std::string* DeleteLocationSecretRequest::mutable_location_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_location_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.DeleteLocationSecretRequest.location_id) - return _s; +// .viam.app.v1.FragmentUsage fragment_usage = 2 [json_name = "fragmentUsage"]; +inline bool GetFragmentResponse::_internal_has_fragment_usage() const { + return this != internal_default_instance() && fragment_usage_ != nullptr; } -inline const std::string& DeleteLocationSecretRequest::_internal_location_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.location_id_.Get(); -} -inline void DeleteLocationSecretRequest::_internal_set_location_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.location_id_.Set(value, GetArena()); -} -inline std::string* DeleteLocationSecretRequest::_internal_mutable_location_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.location_id_.Mutable( GetArena()); +inline bool GetFragmentResponse::has_fragment_usage() const { + return _internal_has_fragment_usage(); } -inline std::string* DeleteLocationSecretRequest::release_location_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.DeleteLocationSecretRequest.location_id) - return _impl_.location_id_.Release(); -} -inline void DeleteLocationSecretRequest::set_allocated_location_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.location_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.location_id_.IsDefault()) { - _impl_.location_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.DeleteLocationSecretRequest.location_id) +inline void GetFragmentResponse::clear_fragment_usage() { + if (GetArenaForAllocation() == nullptr && fragment_usage_ != nullptr) { + delete fragment_usage_; + } + fragment_usage_ = nullptr; } - -// string secret_id = 2 [json_name = "secretId"]; -inline void DeleteLocationSecretRequest::clear_secret_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.secret_id_.ClearToEmpty(); +inline const ::viam::app::v1::FragmentUsage& GetFragmentResponse::_internal_fragment_usage() const { + const ::viam::app::v1::FragmentUsage* p = fragment_usage_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_FragmentUsage_default_instance_); } -inline const std::string& DeleteLocationSecretRequest::secret_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.DeleteLocationSecretRequest.secret_id) - return _internal_secret_id(); +inline const ::viam::app::v1::FragmentUsage& GetFragmentResponse::fragment_usage() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetFragmentResponse.fragment_usage) + return _internal_fragment_usage(); } -template -inline PROTOBUF_ALWAYS_INLINE void DeleteLocationSecretRequest::set_secret_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.secret_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.DeleteLocationSecretRequest.secret_id) +inline void GetFragmentResponse::unsafe_arena_set_allocated_fragment_usage( + ::viam::app::v1::FragmentUsage* fragment_usage) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(fragment_usage_); + } + fragment_usage_ = fragment_usage; + if (fragment_usage) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.GetFragmentResponse.fragment_usage) } -inline std::string* DeleteLocationSecretRequest::mutable_secret_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_secret_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.DeleteLocationSecretRequest.secret_id) - return _s; +inline ::viam::app::v1::FragmentUsage* GetFragmentResponse::release_fragment_usage() { + + ::viam::app::v1::FragmentUsage* temp = fragment_usage_; + fragment_usage_ = 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 const std::string& DeleteLocationSecretRequest::_internal_secret_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.secret_id_.Get(); +inline ::viam::app::v1::FragmentUsage* GetFragmentResponse::unsafe_arena_release_fragment_usage() { + // @@protoc_insertion_point(field_release:viam.app.v1.GetFragmentResponse.fragment_usage) + + ::viam::app::v1::FragmentUsage* temp = fragment_usage_; + fragment_usage_ = nullptr; + return temp; } -inline void DeleteLocationSecretRequest::_internal_set_secret_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.secret_id_.Set(value, GetArena()); +inline ::viam::app::v1::FragmentUsage* GetFragmentResponse::_internal_mutable_fragment_usage() { + + if (fragment_usage_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::FragmentUsage>(GetArenaForAllocation()); + fragment_usage_ = p; + } + return fragment_usage_; } -inline std::string* DeleteLocationSecretRequest::_internal_mutable_secret_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.secret_id_.Mutable( GetArena()); +inline ::viam::app::v1::FragmentUsage* GetFragmentResponse::mutable_fragment_usage() { + ::viam::app::v1::FragmentUsage* _msg = _internal_mutable_fragment_usage(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetFragmentResponse.fragment_usage) + return _msg; } -inline std::string* DeleteLocationSecretRequest::release_secret_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.DeleteLocationSecretRequest.secret_id) - return _impl_.secret_id_.Release(); -} -inline void DeleteLocationSecretRequest::set_allocated_secret_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.secret_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.secret_id_.IsDefault()) { - _impl_.secret_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.DeleteLocationSecretRequest.secret_id) +inline void GetFragmentResponse::set_allocated_fragment_usage(::viam::app::v1::FragmentUsage* fragment_usage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete fragment_usage_; + } + if (fragment_usage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(fragment_usage); + if (message_arena != submessage_arena) { + fragment_usage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, fragment_usage, submessage_arena); + } + + } else { + + } + fragment_usage_ = fragment_usage; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetFragmentResponse.fragment_usage) } // ------------------------------------------------------------------- -// DeleteLocationSecretResponse - -// ------------------------------------------------------------------- - -// LocationAuthRequest +// CreateFragmentRequest -// string location_id = 1 [json_name = "locationId"]; -inline void LocationAuthRequest::clear_location_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.location_id_.ClearToEmpty(); +// string name = 1 [json_name = "name"]; +inline void CreateFragmentRequest::clear_name() { + name_.ClearToEmpty(); } -inline const std::string& LocationAuthRequest::location_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.LocationAuthRequest.location_id) - return _internal_location_id(); +inline const std::string& CreateFragmentRequest::name() const { + // @@protoc_insertion_point(field_get:viam.app.v1.CreateFragmentRequest.name) + return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void LocationAuthRequest::set_location_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.location_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.LocationAuthRequest.location_id) +template +inline PROTOBUF_ALWAYS_INLINE +void CreateFragmentRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.CreateFragmentRequest.name) } -inline std::string* LocationAuthRequest::mutable_location_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_location_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.LocationAuthRequest.location_id) +inline std::string* CreateFragmentRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateFragmentRequest.name) return _s; } -inline const std::string& LocationAuthRequest::_internal_location_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.location_id_.Get(); +inline const std::string& CreateFragmentRequest::_internal_name() const { + return name_.Get(); } -inline void LocationAuthRequest::_internal_set_location_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.location_id_.Set(value, GetArena()); +inline void CreateFragmentRequest::_internal_set_name(const std::string& value) { + + name_.Set(value, GetArenaForAllocation()); } -inline std::string* LocationAuthRequest::_internal_mutable_location_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.location_id_.Mutable( GetArena()); +inline std::string* CreateFragmentRequest::_internal_mutable_name() { + + return name_.Mutable(GetArenaForAllocation()); } -inline std::string* LocationAuthRequest::release_location_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.LocationAuthRequest.location_id) - return _impl_.location_id_.Release(); -} -inline void LocationAuthRequest::set_allocated_location_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.location_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.location_id_.IsDefault()) { - _impl_.location_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.LocationAuthRequest.location_id) +inline std::string* CreateFragmentRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.app.v1.CreateFragmentRequest.name) + return name_.Release(); +} +inline void CreateFragmentRequest::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.app.v1.CreateFragmentRequest.name) } -// ------------------------------------------------------------------- - -// LocationAuthResponse - -// .viam.app.v1.LocationAuth auth = 1 [json_name = "auth"]; -inline bool LocationAuthResponse::has_auth() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.auth_ != nullptr); - return value; +// .google.protobuf.Struct config = 2 [json_name = "config"]; +inline bool CreateFragmentRequest::_internal_has_config() const { + return this != internal_default_instance() && config_ != nullptr; } -inline void LocationAuthResponse::clear_auth() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.auth_ != nullptr) _impl_.auth_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; +inline bool CreateFragmentRequest::has_config() const { + return _internal_has_config(); } -inline const ::viam::app::v1::LocationAuth& LocationAuthResponse::_internal_auth() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::LocationAuth* p = _impl_.auth_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_LocationAuth_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& CreateFragmentRequest::_internal_config() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = config_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::viam::app::v1::LocationAuth& LocationAuthResponse::auth() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.LocationAuthResponse.auth) - return _internal_auth(); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& CreateFragmentRequest::config() const { + // @@protoc_insertion_point(field_get:viam.app.v1.CreateFragmentRequest.config) + return _internal_config(); } -inline void LocationAuthResponse::unsafe_arena_set_allocated_auth(::viam::app::v1::LocationAuth* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.auth_); +inline void CreateFragmentRequest::unsafe_arena_set_allocated_config( + ::PROTOBUF_NAMESPACE_ID::Struct* config) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(config_); } - _impl_.auth_ = reinterpret_cast<::viam::app::v1::LocationAuth*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + config_ = config; + if (config) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.LocationAuthResponse.auth) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.CreateFragmentRequest.config) } -inline ::viam::app::v1::LocationAuth* LocationAuthResponse::release_auth() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::LocationAuth* released = _impl_.auth_; - _impl_.auth_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* CreateFragmentRequest::release_config() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = config_; + config_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::viam::app::v1::LocationAuth* LocationAuthResponse::unsafe_arena_release_auth() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.LocationAuthResponse.auth) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::LocationAuth* temp = _impl_.auth_; - _impl_.auth_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* CreateFragmentRequest::unsafe_arena_release_config() { + // @@protoc_insertion_point(field_release:viam.app.v1.CreateFragmentRequest.config) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = config_; + config_ = nullptr; return temp; } -inline ::viam::app::v1::LocationAuth* LocationAuthResponse::_internal_mutable_auth() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.auth_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::LocationAuth>(GetArena()); - _impl_.auth_ = reinterpret_cast<::viam::app::v1::LocationAuth*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* CreateFragmentRequest::_internal_mutable_config() { + + if (config_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + config_ = p; } - return _impl_.auth_; + return config_; } -inline ::viam::app::v1::LocationAuth* LocationAuthResponse::mutable_auth() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::viam::app::v1::LocationAuth* _msg = _internal_mutable_auth(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.LocationAuthResponse.auth) +inline ::PROTOBUF_NAMESPACE_ID::Struct* CreateFragmentRequest::mutable_config() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_config(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateFragmentRequest.config) return _msg; } -inline void LocationAuthResponse::set_allocated_auth(::viam::app::v1::LocationAuth* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void CreateFragmentRequest::set_allocated_config(::PROTOBUF_NAMESPACE_ID::Struct* config) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::LocationAuth*>(_impl_.auth_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(config_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::LocationAuth*>(value)->GetArena(); + if (config) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(config)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + config = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, config, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.auth_ = reinterpret_cast<::viam::app::v1::LocationAuth*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.LocationAuthResponse.auth) + config_ = config; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateFragmentRequest.config) } -// ------------------------------------------------------------------- - -// GetRobotRequest - -// string id = 1 [json_name = "id"]; -inline void GetRobotRequest::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); +// string organization_id = 3 [json_name = "organizationId"]; +inline void CreateFragmentRequest::clear_organization_id() { + organization_id_.ClearToEmpty(); } -inline const std::string& GetRobotRequest::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotRequest.id) - return _internal_id(); +inline const std::string& CreateFragmentRequest::organization_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.CreateFragmentRequest.organization_id) + return _internal_organization_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetRobotRequest::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.GetRobotRequest.id) +template +inline PROTOBUF_ALWAYS_INLINE +void CreateFragmentRequest::set_organization_id(ArgT0&& arg0, ArgT... args) { + + organization_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.CreateFragmentRequest.organization_id) } -inline std::string* GetRobotRequest::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRobotRequest.id) +inline std::string* CreateFragmentRequest::mutable_organization_id() { + std::string* _s = _internal_mutable_organization_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateFragmentRequest.organization_id) return _s; } -inline const std::string& GetRobotRequest::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); +inline const std::string& CreateFragmentRequest::_internal_organization_id() const { + return organization_id_.Get(); } -inline void GetRobotRequest::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); +inline void CreateFragmentRequest::_internal_set_organization_id(const std::string& value) { + + organization_id_.Set(value, GetArenaForAllocation()); } -inline std::string* GetRobotRequest::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); +inline std::string* CreateFragmentRequest::_internal_mutable_organization_id() { + + return organization_id_.Mutable(GetArenaForAllocation()); } -inline std::string* GetRobotRequest::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.GetRobotRequest.id) - return _impl_.id_.Release(); -} -inline void GetRobotRequest::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetRobotRequest.id) +inline std::string* CreateFragmentRequest::release_organization_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.CreateFragmentRequest.organization_id) + return organization_id_.Release(); } - -// ------------------------------------------------------------------- - -// GetRoverRentalRobotsRequest - -// string org_id = 1 [json_name = "orgId"]; -inline void GetRoverRentalRobotsRequest::clear_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.org_id_.ClearToEmpty(); +inline void CreateFragmentRequest::set_allocated_organization_id(std::string* organization_id) { + if (organization_id != nullptr) { + + } else { + + } + organization_id_.SetAllocated(organization_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (organization_id_.IsDefault()) { + organization_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateFragmentRequest.organization_id) } -inline const std::string& GetRoverRentalRobotsRequest::org_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.GetRoverRentalRobotsRequest.org_id) - return _internal_org_id(); + +// optional .viam.app.v1.FragmentVisibility visibility = 4 [json_name = "visibility"]; +inline bool CreateFragmentRequest::_internal_has_visibility() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; } -template -inline PROTOBUF_ALWAYS_INLINE void GetRoverRentalRobotsRequest::set_org_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.org_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.GetRoverRentalRobotsRequest.org_id) +inline bool CreateFragmentRequest::has_visibility() const { + return _internal_has_visibility(); } -inline std::string* GetRoverRentalRobotsRequest::mutable_org_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_org_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRoverRentalRobotsRequest.org_id) - return _s; +inline void CreateFragmentRequest::clear_visibility() { + visibility_ = 0; + _has_bits_[0] &= ~0x00000001u; } -inline const std::string& GetRoverRentalRobotsRequest::_internal_org_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.org_id_.Get(); +inline ::viam::app::v1::FragmentVisibility CreateFragmentRequest::_internal_visibility() const { + return static_cast< ::viam::app::v1::FragmentVisibility >(visibility_); } -inline void GetRoverRentalRobotsRequest::_internal_set_org_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.org_id_.Set(value, GetArena()); +inline ::viam::app::v1::FragmentVisibility CreateFragmentRequest::visibility() const { + // @@protoc_insertion_point(field_get:viam.app.v1.CreateFragmentRequest.visibility) + return _internal_visibility(); } -inline std::string* GetRoverRentalRobotsRequest::_internal_mutable_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.org_id_.Mutable( GetArena()); +inline void CreateFragmentRequest::_internal_set_visibility(::viam::app::v1::FragmentVisibility value) { + _has_bits_[0] |= 0x00000001u; + visibility_ = value; } -inline std::string* GetRoverRentalRobotsRequest::release_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.GetRoverRentalRobotsRequest.org_id) - return _impl_.org_id_.Release(); -} -inline void GetRoverRentalRobotsRequest::set_allocated_org_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.org_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.org_id_.IsDefault()) { - _impl_.org_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetRoverRentalRobotsRequest.org_id) +inline void CreateFragmentRequest::set_visibility(::viam::app::v1::FragmentVisibility value) { + _internal_set_visibility(value); + // @@protoc_insertion_point(field_set:viam.app.v1.CreateFragmentRequest.visibility) } // ------------------------------------------------------------------- -// RoverRentalRobot +// CreateFragmentResponse -// string robot_id = 1 [json_name = "robotId"]; -inline void RoverRentalRobot::clear_robot_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.robot_id_.ClearToEmpty(); +// .viam.app.v1.Fragment fragment = 1 [json_name = "fragment"]; +inline bool CreateFragmentResponse::_internal_has_fragment() const { + return this != internal_default_instance() && fragment_ != nullptr; } -inline const std::string& RoverRentalRobot::robot_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.RoverRentalRobot.robot_id) - return _internal_robot_id(); +inline bool CreateFragmentResponse::has_fragment() const { + return _internal_has_fragment(); } -template -inline PROTOBUF_ALWAYS_INLINE void RoverRentalRobot::set_robot_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.robot_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.RoverRentalRobot.robot_id) +inline void CreateFragmentResponse::clear_fragment() { + if (GetArenaForAllocation() == nullptr && fragment_ != nullptr) { + delete fragment_; + } + fragment_ = nullptr; } -inline std::string* RoverRentalRobot::mutable_robot_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_robot_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.RoverRentalRobot.robot_id) - return _s; +inline const ::viam::app::v1::Fragment& CreateFragmentResponse::_internal_fragment() const { + const ::viam::app::v1::Fragment* p = fragment_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_Fragment_default_instance_); } -inline const std::string& RoverRentalRobot::_internal_robot_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.robot_id_.Get(); +inline const ::viam::app::v1::Fragment& CreateFragmentResponse::fragment() const { + // @@protoc_insertion_point(field_get:viam.app.v1.CreateFragmentResponse.fragment) + return _internal_fragment(); } -inline void RoverRentalRobot::_internal_set_robot_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.robot_id_.Set(value, GetArena()); +inline void CreateFragmentResponse::unsafe_arena_set_allocated_fragment( + ::viam::app::v1::Fragment* fragment) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(fragment_); + } + fragment_ = fragment; + if (fragment) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.CreateFragmentResponse.fragment) } -inline std::string* RoverRentalRobot::_internal_mutable_robot_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.robot_id_.Mutable( GetArena()); +inline ::viam::app::v1::Fragment* CreateFragmentResponse::release_fragment() { + + ::viam::app::v1::Fragment* temp = fragment_; + fragment_ = 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 std::string* RoverRentalRobot::release_robot_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.RoverRentalRobot.robot_id) - return _impl_.robot_id_.Release(); -} -inline void RoverRentalRobot::set_allocated_robot_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.robot_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.robot_id_.IsDefault()) { - _impl_.robot_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RoverRentalRobot.robot_id) +inline ::viam::app::v1::Fragment* CreateFragmentResponse::unsafe_arena_release_fragment() { + // @@protoc_insertion_point(field_release:viam.app.v1.CreateFragmentResponse.fragment) + + ::viam::app::v1::Fragment* temp = fragment_; + fragment_ = nullptr; + return temp; +} +inline ::viam::app::v1::Fragment* CreateFragmentResponse::_internal_mutable_fragment() { + + if (fragment_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::Fragment>(GetArenaForAllocation()); + fragment_ = p; + } + return fragment_; +} +inline ::viam::app::v1::Fragment* CreateFragmentResponse::mutable_fragment() { + ::viam::app::v1::Fragment* _msg = _internal_mutable_fragment(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateFragmentResponse.fragment) + return _msg; +} +inline void CreateFragmentResponse::set_allocated_fragment(::viam::app::v1::Fragment* fragment) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete fragment_; + } + if (fragment) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(fragment); + if (message_arena != submessage_arena) { + fragment = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, fragment, submessage_arena); + } + + } else { + + } + fragment_ = fragment; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateFragmentResponse.fragment) } -// string location_id = 2 [json_name = "locationId"]; -inline void RoverRentalRobot::clear_location_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.location_id_.ClearToEmpty(); +// ------------------------------------------------------------------- + +// UpdateFragmentRequest + +// string id = 1 [json_name = "id"]; +inline void UpdateFragmentRequest::clear_id() { + id_.ClearToEmpty(); } -inline const std::string& RoverRentalRobot::location_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.RoverRentalRobot.location_id) - return _internal_location_id(); +inline const std::string& UpdateFragmentRequest::id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateFragmentRequest.id) + return _internal_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void RoverRentalRobot::set_location_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.location_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.RoverRentalRobot.location_id) +template +inline PROTOBUF_ALWAYS_INLINE +void UpdateFragmentRequest::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateFragmentRequest.id) } -inline std::string* RoverRentalRobot::mutable_location_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_location_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.RoverRentalRobot.location_id) +inline std::string* UpdateFragmentRequest::mutable_id() { + std::string* _s = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateFragmentRequest.id) return _s; } -inline const std::string& RoverRentalRobot::_internal_location_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.location_id_.Get(); +inline const std::string& UpdateFragmentRequest::_internal_id() const { + return id_.Get(); } -inline void RoverRentalRobot::_internal_set_location_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.location_id_.Set(value, GetArena()); +inline void UpdateFragmentRequest::_internal_set_id(const std::string& value) { + + id_.Set(value, GetArenaForAllocation()); } -inline std::string* RoverRentalRobot::_internal_mutable_location_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.location_id_.Mutable( GetArena()); +inline std::string* UpdateFragmentRequest::_internal_mutable_id() { + + return id_.Mutable(GetArenaForAllocation()); } -inline std::string* RoverRentalRobot::release_location_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.RoverRentalRobot.location_id) - return _impl_.location_id_.Release(); -} -inline void RoverRentalRobot::set_allocated_location_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.location_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.location_id_.IsDefault()) { - _impl_.location_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RoverRentalRobot.location_id) +inline std::string* UpdateFragmentRequest::release_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateFragmentRequest.id) + return id_.Release(); +} +inline void UpdateFragmentRequest::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateFragmentRequest.id) } -// string robot_name = 3 [json_name = "robotName"]; -inline void RoverRentalRobot::clear_robot_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.robot_name_.ClearToEmpty(); +// string name = 2 [json_name = "name"]; +inline void UpdateFragmentRequest::clear_name() { + name_.ClearToEmpty(); } -inline const std::string& RoverRentalRobot::robot_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.RoverRentalRobot.robot_name) - return _internal_robot_name(); +inline const std::string& UpdateFragmentRequest::name() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateFragmentRequest.name) + return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void RoverRentalRobot::set_robot_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.robot_name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.RoverRentalRobot.robot_name) +template +inline PROTOBUF_ALWAYS_INLINE +void UpdateFragmentRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateFragmentRequest.name) } -inline std::string* RoverRentalRobot::mutable_robot_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_robot_name(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.RoverRentalRobot.robot_name) +inline std::string* UpdateFragmentRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateFragmentRequest.name) return _s; } -inline const std::string& RoverRentalRobot::_internal_robot_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.robot_name_.Get(); +inline const std::string& UpdateFragmentRequest::_internal_name() const { + return name_.Get(); } -inline void RoverRentalRobot::_internal_set_robot_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.robot_name_.Set(value, GetArena()); +inline void UpdateFragmentRequest::_internal_set_name(const std::string& value) { + + name_.Set(value, GetArenaForAllocation()); } -inline std::string* RoverRentalRobot::_internal_mutable_robot_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.robot_name_.Mutable( GetArena()); +inline std::string* UpdateFragmentRequest::_internal_mutable_name() { + + return name_.Mutable(GetArenaForAllocation()); } -inline std::string* RoverRentalRobot::release_robot_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.RoverRentalRobot.robot_name) - return _impl_.robot_name_.Release(); -} -inline void RoverRentalRobot::set_allocated_robot_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.robot_name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.robot_name_.IsDefault()) { - _impl_.robot_name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RoverRentalRobot.robot_name) +inline std::string* UpdateFragmentRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateFragmentRequest.name) + return name_.Release(); +} +inline void UpdateFragmentRequest::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.app.v1.UpdateFragmentRequest.name) } -// string robot_main_part_id = 4 [json_name = "robotMainPartId"]; -inline void RoverRentalRobot::clear_robot_main_part_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.robot_main_part_id_.ClearToEmpty(); +// .google.protobuf.Struct config = 3 [json_name = "config"]; +inline bool UpdateFragmentRequest::_internal_has_config() const { + return this != internal_default_instance() && config_ != nullptr; } -inline const std::string& RoverRentalRobot::robot_main_part_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.RoverRentalRobot.robot_main_part_id) - return _internal_robot_main_part_id(); +inline bool UpdateFragmentRequest::has_config() const { + return _internal_has_config(); } -template -inline PROTOBUF_ALWAYS_INLINE void RoverRentalRobot::set_robot_main_part_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.robot_main_part_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.RoverRentalRobot.robot_main_part_id) +inline const ::PROTOBUF_NAMESPACE_ID::Struct& UpdateFragmentRequest::_internal_config() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = config_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline std::string* RoverRentalRobot::mutable_robot_main_part_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_robot_main_part_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.RoverRentalRobot.robot_main_part_id) - return _s; +inline const ::PROTOBUF_NAMESPACE_ID::Struct& UpdateFragmentRequest::config() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateFragmentRequest.config) + return _internal_config(); } -inline const std::string& RoverRentalRobot::_internal_robot_main_part_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.robot_main_part_id_.Get(); +inline void UpdateFragmentRequest::unsafe_arena_set_allocated_config( + ::PROTOBUF_NAMESPACE_ID::Struct* config) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(config_); + } + config_ = config; + if (config) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.UpdateFragmentRequest.config) } -inline void RoverRentalRobot::_internal_set_robot_main_part_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.robot_main_part_id_.Set(value, GetArena()); +inline ::PROTOBUF_NAMESPACE_ID::Struct* UpdateFragmentRequest::release_config() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = config_; + config_ = 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 std::string* RoverRentalRobot::_internal_mutable_robot_main_part_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.robot_main_part_id_.Mutable( GetArena()); +inline ::PROTOBUF_NAMESPACE_ID::Struct* UpdateFragmentRequest::unsafe_arena_release_config() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateFragmentRequest.config) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = config_; + config_ = nullptr; + return temp; } -inline std::string* RoverRentalRobot::release_robot_main_part_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.RoverRentalRobot.robot_main_part_id) - return _impl_.robot_main_part_id_.Release(); -} -inline void RoverRentalRobot::set_allocated_robot_main_part_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.robot_main_part_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.robot_main_part_id_.IsDefault()) { - _impl_.robot_main_part_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RoverRentalRobot.robot_main_part_id) +inline ::PROTOBUF_NAMESPACE_ID::Struct* UpdateFragmentRequest::_internal_mutable_config() { + + if (config_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + config_ = p; + } + return config_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* UpdateFragmentRequest::mutable_config() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_config(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateFragmentRequest.config) + return _msg; +} +inline void UpdateFragmentRequest::set_allocated_config(::PROTOBUF_NAMESPACE_ID::Struct* config) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(config_); + } + if (config) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(config)); + if (message_arena != submessage_arena) { + config = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, config, submessage_arena); + } + + } else { + + } + config_ = config; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateFragmentRequest.config) } -// ------------------------------------------------------------------- - -// GetRoverRentalRobotsResponse - -// repeated .viam.app.v1.RoverRentalRobot robots = 1 [json_name = "robots"]; -inline int GetRoverRentalRobotsResponse::_internal_robots_size() const { - return _internal_robots().size(); +// optional bool public = 4 [json_name = "public"]; +inline bool UpdateFragmentRequest::_internal_has_public_() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; } -inline int GetRoverRentalRobotsResponse::robots_size() const { - return _internal_robots_size(); +inline bool UpdateFragmentRequest::has_public_() const { + return _internal_has_public_(); } -inline void GetRoverRentalRobotsResponse::clear_robots() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.robots_.Clear(); +inline void UpdateFragmentRequest::clear_public_() { + public__ = false; + _has_bits_[0] &= ~0x00000001u; } -inline ::viam::app::v1::RoverRentalRobot* GetRoverRentalRobotsResponse::mutable_robots(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRoverRentalRobotsResponse.robots) - return _internal_mutable_robots()->Mutable(index); +inline bool UpdateFragmentRequest::_internal_public_() const { + return public__; } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::RoverRentalRobot>* GetRoverRentalRobotsResponse::mutable_robots() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.GetRoverRentalRobotsResponse.robots) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_robots(); +inline bool UpdateFragmentRequest::public_() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateFragmentRequest.public) + return _internal_public_(); } -inline const ::viam::app::v1::RoverRentalRobot& GetRoverRentalRobotsResponse::robots(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.GetRoverRentalRobotsResponse.robots) - return _internal_robots().Get(index); +inline void UpdateFragmentRequest::_internal_set_public_(bool value) { + _has_bits_[0] |= 0x00000001u; + public__ = value; } -inline ::viam::app::v1::RoverRentalRobot* GetRoverRentalRobotsResponse::add_robots() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::RoverRentalRobot* _add = _internal_mutable_robots()->Add(); - // @@protoc_insertion_point(field_add:viam.app.v1.GetRoverRentalRobotsResponse.robots) - return _add; +inline void UpdateFragmentRequest::set_public_(bool value) { + _internal_set_public_(value); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateFragmentRequest.public) } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::RoverRentalRobot>& GetRoverRentalRobotsResponse::robots() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:viam.app.v1.GetRoverRentalRobotsResponse.robots) - return _internal_robots(); + +// optional .viam.app.v1.FragmentVisibility visibility = 5 [json_name = "visibility"]; +inline bool UpdateFragmentRequest::_internal_has_visibility() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::RoverRentalRobot>& -GetRoverRentalRobotsResponse::_internal_robots() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.robots_; +inline bool UpdateFragmentRequest::has_visibility() const { + return _internal_has_visibility(); +} +inline void UpdateFragmentRequest::clear_visibility() { + visibility_ = 0; + _has_bits_[0] &= ~0x00000002u; +} +inline ::viam::app::v1::FragmentVisibility UpdateFragmentRequest::_internal_visibility() const { + return static_cast< ::viam::app::v1::FragmentVisibility >(visibility_); +} +inline ::viam::app::v1::FragmentVisibility UpdateFragmentRequest::visibility() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateFragmentRequest.visibility) + return _internal_visibility(); +} +inline void UpdateFragmentRequest::_internal_set_visibility(::viam::app::v1::FragmentVisibility value) { + _has_bits_[0] |= 0x00000002u; + visibility_ = value; } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::RoverRentalRobot>* -GetRoverRentalRobotsResponse::_internal_mutable_robots() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.robots_; +inline void UpdateFragmentRequest::set_visibility(::viam::app::v1::FragmentVisibility value) { + _internal_set_visibility(value); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateFragmentRequest.visibility) } // ------------------------------------------------------------------- -// GetRobotResponse +// UpdateFragmentResponse -// .viam.app.v1.Robot robot = 1 [json_name = "robot"]; -inline bool GetRobotResponse::has_robot() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.robot_ != nullptr); - return value; +// .viam.app.v1.Fragment fragment = 1 [json_name = "fragment"]; +inline bool UpdateFragmentResponse::_internal_has_fragment() const { + return this != internal_default_instance() && fragment_ != nullptr; } -inline void GetRobotResponse::clear_robot() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.robot_ != nullptr) _impl_.robot_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; +inline bool UpdateFragmentResponse::has_fragment() const { + return _internal_has_fragment(); } -inline const ::viam::app::v1::Robot& GetRobotResponse::_internal_robot() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::Robot* p = _impl_.robot_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_Robot_default_instance_); +inline void UpdateFragmentResponse::clear_fragment() { + if (GetArenaForAllocation() == nullptr && fragment_ != nullptr) { + delete fragment_; + } + fragment_ = nullptr; } -inline const ::viam::app::v1::Robot& GetRobotResponse::robot() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotResponse.robot) - return _internal_robot(); +inline const ::viam::app::v1::Fragment& UpdateFragmentResponse::_internal_fragment() const { + const ::viam::app::v1::Fragment* p = fragment_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_Fragment_default_instance_); } -inline void GetRobotResponse::unsafe_arena_set_allocated_robot(::viam::app::v1::Robot* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.robot_); +inline const ::viam::app::v1::Fragment& UpdateFragmentResponse::fragment() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateFragmentResponse.fragment) + return _internal_fragment(); +} +inline void UpdateFragmentResponse::unsafe_arena_set_allocated_fragment( + ::viam::app::v1::Fragment* fragment) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(fragment_); } - _impl_.robot_ = reinterpret_cast<::viam::app::v1::Robot*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + fragment_ = fragment; + if (fragment) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.GetRobotResponse.robot) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.UpdateFragmentResponse.fragment) } -inline ::viam::app::v1::Robot* GetRobotResponse::release_robot() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::Robot* released = _impl_.robot_; - _impl_.robot_ = nullptr; +inline ::viam::app::v1::Fragment* UpdateFragmentResponse::release_fragment() { + + ::viam::app::v1::Fragment* temp = fragment_; + fragment_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::viam::app::v1::Robot* GetRobotResponse::unsafe_arena_release_robot() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.GetRobotResponse.robot) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::Robot* temp = _impl_.robot_; - _impl_.robot_ = nullptr; +inline ::viam::app::v1::Fragment* UpdateFragmentResponse::unsafe_arena_release_fragment() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateFragmentResponse.fragment) + + ::viam::app::v1::Fragment* temp = fragment_; + fragment_ = nullptr; return temp; } -inline ::viam::app::v1::Robot* GetRobotResponse::_internal_mutable_robot() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.robot_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::Robot>(GetArena()); - _impl_.robot_ = reinterpret_cast<::viam::app::v1::Robot*>(p); +inline ::viam::app::v1::Fragment* UpdateFragmentResponse::_internal_mutable_fragment() { + + if (fragment_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::Fragment>(GetArenaForAllocation()); + fragment_ = p; } - return _impl_.robot_; + return fragment_; } -inline ::viam::app::v1::Robot* GetRobotResponse::mutable_robot() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::viam::app::v1::Robot* _msg = _internal_mutable_robot(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRobotResponse.robot) +inline ::viam::app::v1::Fragment* UpdateFragmentResponse::mutable_fragment() { + ::viam::app::v1::Fragment* _msg = _internal_mutable_fragment(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateFragmentResponse.fragment) return _msg; } -inline void GetRobotResponse::set_allocated_robot(::viam::app::v1::Robot* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void UpdateFragmentResponse::set_allocated_fragment(::viam::app::v1::Fragment* fragment) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::Robot*>(_impl_.robot_); + delete fragment_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::Robot*>(value)->GetArena(); + if (fragment) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(fragment); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + fragment = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, fragment, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.robot_ = reinterpret_cast<::viam::app::v1::Robot*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetRobotResponse.robot) + fragment_ = fragment; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateFragmentResponse.fragment) } // ------------------------------------------------------------------- -// GetRobotPartsRequest +// DeleteFragmentRequest -// string robot_id = 1 [json_name = "robotId"]; -inline void GetRobotPartsRequest::clear_robot_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.robot_id_.ClearToEmpty(); +// string id = 1 [json_name = "id"]; +inline void DeleteFragmentRequest::clear_id() { + id_.ClearToEmpty(); } -inline const std::string& GetRobotPartsRequest::robot_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotPartsRequest.robot_id) - return _internal_robot_id(); +inline const std::string& DeleteFragmentRequest::id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.DeleteFragmentRequest.id) + return _internal_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetRobotPartsRequest::set_robot_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.robot_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.GetRobotPartsRequest.robot_id) +template +inline PROTOBUF_ALWAYS_INLINE +void DeleteFragmentRequest::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.DeleteFragmentRequest.id) } -inline std::string* GetRobotPartsRequest::mutable_robot_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_robot_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRobotPartsRequest.robot_id) +inline std::string* DeleteFragmentRequest::mutable_id() { + std::string* _s = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.DeleteFragmentRequest.id) return _s; } -inline const std::string& GetRobotPartsRequest::_internal_robot_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.robot_id_.Get(); +inline const std::string& DeleteFragmentRequest::_internal_id() const { + return id_.Get(); } -inline void GetRobotPartsRequest::_internal_set_robot_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.robot_id_.Set(value, GetArena()); +inline void DeleteFragmentRequest::_internal_set_id(const std::string& value) { + + id_.Set(value, GetArenaForAllocation()); } -inline std::string* GetRobotPartsRequest::_internal_mutable_robot_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.robot_id_.Mutable( GetArena()); +inline std::string* DeleteFragmentRequest::_internal_mutable_id() { + + return id_.Mutable(GetArenaForAllocation()); } -inline std::string* GetRobotPartsRequest::release_robot_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.GetRobotPartsRequest.robot_id) - return _impl_.robot_id_.Release(); -} -inline void GetRobotPartsRequest::set_allocated_robot_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.robot_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.robot_id_.IsDefault()) { - _impl_.robot_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetRobotPartsRequest.robot_id) +inline std::string* DeleteFragmentRequest::release_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.DeleteFragmentRequest.id) + return id_.Release(); +} +inline void DeleteFragmentRequest::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.DeleteFragmentRequest.id) } // ------------------------------------------------------------------- -// GetRobotPartsResponse - -// repeated .viam.app.v1.RobotPart parts = 1 [json_name = "parts"]; -inline int GetRobotPartsResponse::_internal_parts_size() const { - return _internal_parts().size(); -} -inline int GetRobotPartsResponse::parts_size() const { - return _internal_parts_size(); -} -inline void GetRobotPartsResponse::clear_parts() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.parts_.Clear(); -} -inline ::viam::app::v1::RobotPart* GetRobotPartsResponse::mutable_parts(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRobotPartsResponse.parts) - return _internal_mutable_parts()->Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::RobotPart>* GetRobotPartsResponse::mutable_parts() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.GetRobotPartsResponse.parts) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_parts(); -} -inline const ::viam::app::v1::RobotPart& GetRobotPartsResponse::parts(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotPartsResponse.parts) - return _internal_parts().Get(index); -} -inline ::viam::app::v1::RobotPart* GetRobotPartsResponse::add_parts() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::RobotPart* _add = _internal_mutable_parts()->Add(); - // @@protoc_insertion_point(field_add:viam.app.v1.GetRobotPartsResponse.parts) - return _add; -} -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::RobotPart>& GetRobotPartsResponse::parts() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:viam.app.v1.GetRobotPartsResponse.parts) - return _internal_parts(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::RobotPart>& -GetRobotPartsResponse::_internal_parts() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.parts_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::RobotPart>* -GetRobotPartsResponse::_internal_mutable_parts() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.parts_; -} +// DeleteFragmentResponse // ------------------------------------------------------------------- -// GetRobotPartRequest +// GetFragmentHistoryRequest // string id = 1 [json_name = "id"]; -inline void GetRobotPartRequest::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); +inline void GetFragmentHistoryRequest::clear_id() { + id_.ClearToEmpty(); } -inline const std::string& GetRobotPartRequest::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotPartRequest.id) +inline const std::string& GetFragmentHistoryRequest::id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetFragmentHistoryRequest.id) return _internal_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetRobotPartRequest::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.GetRobotPartRequest.id) +template +inline PROTOBUF_ALWAYS_INLINE +void GetFragmentHistoryRequest::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.GetFragmentHistoryRequest.id) } -inline std::string* GetRobotPartRequest::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetFragmentHistoryRequest::mutable_id() { std::string* _s = _internal_mutable_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRobotPartRequest.id) + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetFragmentHistoryRequest.id) return _s; } -inline const std::string& GetRobotPartRequest::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); +inline const std::string& GetFragmentHistoryRequest::_internal_id() const { + return id_.Get(); } -inline void GetRobotPartRequest::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); +inline void GetFragmentHistoryRequest::_internal_set_id(const std::string& value) { + + id_.Set(value, GetArenaForAllocation()); } -inline std::string* GetRobotPartRequest::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); +inline std::string* GetFragmentHistoryRequest::_internal_mutable_id() { + + return id_.Mutable(GetArenaForAllocation()); } -inline std::string* GetRobotPartRequest::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.GetRobotPartRequest.id) - return _impl_.id_.Release(); -} -inline void GetRobotPartRequest::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetRobotPartRequest.id) +inline std::string* GetFragmentHistoryRequest::release_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.GetFragmentHistoryRequest.id) + return id_.Release(); +} +inline void GetFragmentHistoryRequest::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetFragmentHistoryRequest.id) } -// ------------------------------------------------------------------- - -// GetRobotPartResponse - -// .viam.app.v1.RobotPart part = 1 [json_name = "part"]; -inline bool GetRobotPartResponse::has_part() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.part_ != nullptr); +// optional string page_token = 2 [json_name = "pageToken"]; +inline bool GetFragmentHistoryRequest::_internal_has_page_token() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; return value; } -inline void GetRobotPartResponse::clear_part() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.part_ != nullptr) _impl_.part_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; +inline bool GetFragmentHistoryRequest::has_page_token() const { + return _internal_has_page_token(); } -inline const ::viam::app::v1::RobotPart& GetRobotPartResponse::_internal_part() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::RobotPart* p = _impl_.part_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_RobotPart_default_instance_); +inline void GetFragmentHistoryRequest::clear_page_token() { + page_token_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; } -inline const ::viam::app::v1::RobotPart& GetRobotPartResponse::part() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotPartResponse.part) - return _internal_part(); +inline const std::string& GetFragmentHistoryRequest::page_token() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetFragmentHistoryRequest.page_token) + return _internal_page_token(); } -inline void GetRobotPartResponse::unsafe_arena_set_allocated_part(::viam::app::v1::RobotPart* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.part_); - } - _impl_.part_ = reinterpret_cast<::viam::app::v1::RobotPart*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.GetRobotPartResponse.part) +template +inline PROTOBUF_ALWAYS_INLINE +void GetFragmentHistoryRequest::set_page_token(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + page_token_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.GetFragmentHistoryRequest.page_token) } -inline ::viam::app::v1::RobotPart* GetRobotPartResponse::release_part() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::RobotPart* released = _impl_.part_; - _impl_.part_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; +inline std::string* GetFragmentHistoryRequest::mutable_page_token() { + std::string* _s = _internal_mutable_page_token(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetFragmentHistoryRequest.page_token) + return _s; } -inline ::viam::app::v1::RobotPart* GetRobotPartResponse::unsafe_arena_release_part() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.GetRobotPartResponse.part) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::RobotPart* temp = _impl_.part_; - _impl_.part_ = nullptr; - return temp; +inline const std::string& GetFragmentHistoryRequest::_internal_page_token() const { + return page_token_.Get(); } -inline ::viam::app::v1::RobotPart* GetRobotPartResponse::_internal_mutable_part() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.part_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::RobotPart>(GetArena()); - _impl_.part_ = reinterpret_cast<::viam::app::v1::RobotPart*>(p); - } - return _impl_.part_; +inline void GetFragmentHistoryRequest::_internal_set_page_token(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + page_token_.Set(value, GetArenaForAllocation()); } -inline ::viam::app::v1::RobotPart* GetRobotPartResponse::mutable_part() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::viam::app::v1::RobotPart* _msg = _internal_mutable_part(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRobotPartResponse.part) - return _msg; +inline std::string* GetFragmentHistoryRequest::_internal_mutable_page_token() { + _has_bits_[0] |= 0x00000001u; + return page_token_.Mutable(GetArenaForAllocation()); } -inline void GetRobotPartResponse::set_allocated_part(::viam::app::v1::RobotPart* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::RobotPart*>(_impl_.part_); +inline std::string* GetFragmentHistoryRequest::release_page_token() { + // @@protoc_insertion_point(field_release:viam.app.v1.GetFragmentHistoryRequest.page_token) + if (!_internal_has_page_token()) { + return nullptr; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::RobotPart*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; + _has_bits_[0] &= ~0x00000001u; + auto* p = page_token_.Release(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (page_token_.IsDefault()) { + page_token_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; +} +inline void GetFragmentHistoryRequest::set_allocated_page_token(std::string* page_token) { + if (page_token != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; + _has_bits_[0] &= ~0x00000001u; } - - _impl_.part_ = reinterpret_cast<::viam::app::v1::RobotPart*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetRobotPartResponse.part) + page_token_.SetAllocated(page_token, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (page_token_.IsDefault()) { + page_token_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetFragmentHistoryRequest.page_token) } -// string config_json = 2 [json_name = "configJson"]; -inline void GetRobotPartResponse::clear_config_json() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.config_json_.ClearToEmpty(); -} -inline const std::string& GetRobotPartResponse::config_json() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotPartResponse.config_json) - return _internal_config_json(); +// optional int64 page_limit = 3 [json_name = "pageLimit"]; +inline bool GetFragmentHistoryRequest::_internal_has_page_limit() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; } -template -inline PROTOBUF_ALWAYS_INLINE void GetRobotPartResponse::set_config_json(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.config_json_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.GetRobotPartResponse.config_json) +inline bool GetFragmentHistoryRequest::has_page_limit() const { + return _internal_has_page_limit(); } -inline std::string* GetRobotPartResponse::mutable_config_json() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_config_json(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRobotPartResponse.config_json) - return _s; +inline void GetFragmentHistoryRequest::clear_page_limit() { + page_limit_ = int64_t{0}; + _has_bits_[0] &= ~0x00000002u; } -inline const std::string& GetRobotPartResponse::_internal_config_json() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.config_json_.Get(); +inline int64_t GetFragmentHistoryRequest::_internal_page_limit() const { + return page_limit_; } -inline void GetRobotPartResponse::_internal_set_config_json(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.config_json_.Set(value, GetArena()); +inline int64_t GetFragmentHistoryRequest::page_limit() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetFragmentHistoryRequest.page_limit) + return _internal_page_limit(); } -inline std::string* GetRobotPartResponse::_internal_mutable_config_json() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.config_json_.Mutable( GetArena()); +inline void GetFragmentHistoryRequest::_internal_set_page_limit(int64_t value) { + _has_bits_[0] |= 0x00000002u; + page_limit_ = value; } -inline std::string* GetRobotPartResponse::release_config_json() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.GetRobotPartResponse.config_json) - return _impl_.config_json_.Release(); -} -inline void GetRobotPartResponse::set_allocated_config_json(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.config_json_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.config_json_.IsDefault()) { - _impl_.config_json_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetRobotPartResponse.config_json) +inline void GetFragmentHistoryRequest::set_page_limit(int64_t value) { + _internal_set_page_limit(value); + // @@protoc_insertion_point(field_set:viam.app.v1.GetFragmentHistoryRequest.page_limit) } // ------------------------------------------------------------------- -// GetRobotPartLogsRequest +// GetFragmentHistoryResponse -// string id = 1 [json_name = "id"]; -inline void GetRobotPartLogsRequest::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); +// repeated .viam.app.v1.FragmentHistoryEntry history = 1 [json_name = "history"]; +inline int GetFragmentHistoryResponse::_internal_history_size() const { + return history_.size(); } -inline const std::string& GetRobotPartLogsRequest::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotPartLogsRequest.id) - return _internal_id(); +inline int GetFragmentHistoryResponse::history_size() const { + return _internal_history_size(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetRobotPartLogsRequest::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.GetRobotPartLogsRequest.id) +inline void GetFragmentHistoryResponse::clear_history() { + history_.Clear(); } -inline std::string* GetRobotPartLogsRequest::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRobotPartLogsRequest.id) - return _s; +inline ::viam::app::v1::FragmentHistoryEntry* GetFragmentHistoryResponse::mutable_history(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetFragmentHistoryResponse.history) + return history_.Mutable(index); } -inline const std::string& GetRobotPartLogsRequest::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::FragmentHistoryEntry >* +GetFragmentHistoryResponse::mutable_history() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.GetFragmentHistoryResponse.history) + return &history_; } -inline void GetRobotPartLogsRequest::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); +inline const ::viam::app::v1::FragmentHistoryEntry& GetFragmentHistoryResponse::_internal_history(int index) const { + return history_.Get(index); } -inline std::string* GetRobotPartLogsRequest::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); +inline const ::viam::app::v1::FragmentHistoryEntry& GetFragmentHistoryResponse::history(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetFragmentHistoryResponse.history) + return _internal_history(index); } -inline std::string* GetRobotPartLogsRequest::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.GetRobotPartLogsRequest.id) - return _impl_.id_.Release(); -} -inline void GetRobotPartLogsRequest::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetRobotPartLogsRequest.id) +inline ::viam::app::v1::FragmentHistoryEntry* GetFragmentHistoryResponse::_internal_add_history() { + return history_.Add(); +} +inline ::viam::app::v1::FragmentHistoryEntry* GetFragmentHistoryResponse::add_history() { + ::viam::app::v1::FragmentHistoryEntry* _add = _internal_add_history(); + // @@protoc_insertion_point(field_add:viam.app.v1.GetFragmentHistoryResponse.history) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::FragmentHistoryEntry >& +GetFragmentHistoryResponse::history() const { + // @@protoc_insertion_point(field_list:viam.app.v1.GetFragmentHistoryResponse.history) + return history_; } -// bool errors_only = 2 [json_name = "errorsOnly", deprecated = true]; -inline void GetRobotPartLogsRequest::clear_errors_only() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.errors_only_ = false; +// string next_page_token = 2 [json_name = "nextPageToken"]; +inline void GetFragmentHistoryResponse::clear_next_page_token() { + next_page_token_.ClearToEmpty(); } -inline bool GetRobotPartLogsRequest::errors_only() const { - // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotPartLogsRequest.errors_only) - return _internal_errors_only(); +inline const std::string& GetFragmentHistoryResponse::next_page_token() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetFragmentHistoryResponse.next_page_token) + return _internal_next_page_token(); } -inline void GetRobotPartLogsRequest::set_errors_only(bool value) { - _internal_set_errors_only(value); - // @@protoc_insertion_point(field_set:viam.app.v1.GetRobotPartLogsRequest.errors_only) +template +inline PROTOBUF_ALWAYS_INLINE +void GetFragmentHistoryResponse::set_next_page_token(ArgT0&& arg0, ArgT... args) { + + next_page_token_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.GetFragmentHistoryResponse.next_page_token) } -inline bool GetRobotPartLogsRequest::_internal_errors_only() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.errors_only_; +inline std::string* GetFragmentHistoryResponse::mutable_next_page_token() { + std::string* _s = _internal_mutable_next_page_token(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetFragmentHistoryResponse.next_page_token) + return _s; } -inline void GetRobotPartLogsRequest::_internal_set_errors_only(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.errors_only_ = value; +inline const std::string& GetFragmentHistoryResponse::_internal_next_page_token() const { + return next_page_token_.Get(); } - -// optional string filter = 3 [json_name = "filter"]; -inline bool GetRobotPartLogsRequest::has_filter() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - return value; +inline void GetFragmentHistoryResponse::_internal_set_next_page_token(const std::string& value) { + + next_page_token_.Set(value, GetArenaForAllocation()); } -inline void GetRobotPartLogsRequest::clear_filter() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.filter_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000001u; +inline std::string* GetFragmentHistoryResponse::_internal_mutable_next_page_token() { + + return next_page_token_.Mutable(GetArenaForAllocation()); } -inline const std::string& GetRobotPartLogsRequest::filter() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotPartLogsRequest.filter) - return _internal_filter(); +inline std::string* GetFragmentHistoryResponse::release_next_page_token() { + // @@protoc_insertion_point(field_release:viam.app.v1.GetFragmentHistoryResponse.next_page_token) + return next_page_token_.Release(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetRobotPartLogsRequest::set_filter(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.filter_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.GetRobotPartLogsRequest.filter) +inline void GetFragmentHistoryResponse::set_allocated_next_page_token(std::string* next_page_token) { + if (next_page_token != nullptr) { + + } else { + + } + next_page_token_.SetAllocated(next_page_token, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (next_page_token_.IsDefault()) { + next_page_token_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetFragmentHistoryResponse.next_page_token) } -inline std::string* GetRobotPartLogsRequest::mutable_filter() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_filter(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRobotPartLogsRequest.filter) + +// ------------------------------------------------------------------- + +// ListRobotsRequest + +// string location_id = 1 [json_name = "locationId"]; +inline void ListRobotsRequest::clear_location_id() { + location_id_.ClearToEmpty(); +} +inline const std::string& ListRobotsRequest::location_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ListRobotsRequest.location_id) + return _internal_location_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ListRobotsRequest::set_location_id(ArgT0&& arg0, ArgT... args) { + + location_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.ListRobotsRequest.location_id) +} +inline std::string* ListRobotsRequest::mutable_location_id() { + std::string* _s = _internal_mutable_location_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ListRobotsRequest.location_id) return _s; } -inline const std::string& GetRobotPartLogsRequest::_internal_filter() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.filter_.Get(); +inline const std::string& ListRobotsRequest::_internal_location_id() const { + return location_id_.Get(); } -inline void GetRobotPartLogsRequest::_internal_set_filter(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.filter_.Set(value, GetArena()); +inline void ListRobotsRequest::_internal_set_location_id(const std::string& value) { + + location_id_.Set(value, GetArenaForAllocation()); } -inline std::string* GetRobotPartLogsRequest::_internal_mutable_filter() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.filter_.Mutable( GetArena()); +inline std::string* ListRobotsRequest::_internal_mutable_location_id() { + + return location_id_.Mutable(GetArenaForAllocation()); } -inline std::string* GetRobotPartLogsRequest::release_filter() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.GetRobotPartLogsRequest.filter) - if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { - return nullptr; - } - _impl_._has_bits_[0] &= ~0x00000001u; - auto* released = _impl_.filter_.Release(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.filter_.Set("", GetArena()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return released; +inline std::string* ListRobotsRequest::release_location_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.ListRobotsRequest.location_id) + return location_id_.Release(); } -inline void GetRobotPartLogsRequest::set_allocated_filter(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; +inline void ListRobotsRequest::set_allocated_location_id(std::string* location_id) { + if (location_id != nullptr) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - _impl_.filter_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.filter_.IsDefault()) { - _impl_.filter_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetRobotPartLogsRequest.filter) + location_id_.SetAllocated(location_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (location_id_.IsDefault()) { + location_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ListRobotsRequest.location_id) } -// optional string page_token = 4 [json_name = "pageToken"]; -inline bool GetRobotPartLogsRequest::has_page_token() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - return value; -} -inline void GetRobotPartLogsRequest::clear_page_token() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.page_token_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000002u; +// ------------------------------------------------------------------- + +// ListMachineFragmentsRequest + +// string machine_id = 1 [json_name = "machineId"]; +inline void ListMachineFragmentsRequest::clear_machine_id() { + machine_id_.ClearToEmpty(); } -inline const std::string& GetRobotPartLogsRequest::page_token() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotPartLogsRequest.page_token) - return _internal_page_token(); +inline const std::string& ListMachineFragmentsRequest::machine_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ListMachineFragmentsRequest.machine_id) + return _internal_machine_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetRobotPartLogsRequest::set_page_token(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.page_token_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.GetRobotPartLogsRequest.page_token) +template +inline PROTOBUF_ALWAYS_INLINE +void ListMachineFragmentsRequest::set_machine_id(ArgT0&& arg0, ArgT... args) { + + machine_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.ListMachineFragmentsRequest.machine_id) } -inline std::string* GetRobotPartLogsRequest::mutable_page_token() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_page_token(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRobotPartLogsRequest.page_token) +inline std::string* ListMachineFragmentsRequest::mutable_machine_id() { + std::string* _s = _internal_mutable_machine_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ListMachineFragmentsRequest.machine_id) return _s; } -inline const std::string& GetRobotPartLogsRequest::_internal_page_token() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.page_token_.Get(); +inline const std::string& ListMachineFragmentsRequest::_internal_machine_id() const { + return machine_id_.Get(); } -inline void GetRobotPartLogsRequest::_internal_set_page_token(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.page_token_.Set(value, GetArena()); +inline void ListMachineFragmentsRequest::_internal_set_machine_id(const std::string& value) { + + machine_id_.Set(value, GetArenaForAllocation()); } -inline std::string* GetRobotPartLogsRequest::_internal_mutable_page_token() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - return _impl_.page_token_.Mutable( GetArena()); +inline std::string* ListMachineFragmentsRequest::_internal_mutable_machine_id() { + + return machine_id_.Mutable(GetArenaForAllocation()); } -inline std::string* GetRobotPartLogsRequest::release_page_token() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.GetRobotPartLogsRequest.page_token) - if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { - return nullptr; - } - _impl_._has_bits_[0] &= ~0x00000002u; - auto* released = _impl_.page_token_.Release(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.page_token_.Set("", GetArena()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return released; +inline std::string* ListMachineFragmentsRequest::release_machine_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.ListMachineFragmentsRequest.machine_id) + return machine_id_.Release(); } -inline void GetRobotPartLogsRequest::set_allocated_page_token(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; +inline void ListMachineFragmentsRequest::set_allocated_machine_id(std::string* machine_id) { + if (machine_id != nullptr) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - _impl_.page_token_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.page_token_.IsDefault()) { - _impl_.page_token_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetRobotPartLogsRequest.page_token) + machine_id_.SetAllocated(machine_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (machine_id_.IsDefault()) { + machine_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ListMachineFragmentsRequest.machine_id) } -// repeated string levels = 5 [json_name = "levels"]; -inline int GetRobotPartLogsRequest::_internal_levels_size() const { - return _internal_levels().size(); +// repeated string additional_fragment_ids = 2 [json_name = "additionalFragmentIds"]; +inline int ListMachineFragmentsRequest::_internal_additional_fragment_ids_size() const { + return additional_fragment_ids_.size(); } -inline int GetRobotPartLogsRequest::levels_size() const { - return _internal_levels_size(); +inline int ListMachineFragmentsRequest::additional_fragment_ids_size() const { + return _internal_additional_fragment_ids_size(); } -inline void GetRobotPartLogsRequest::clear_levels() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.levels_.Clear(); +inline void ListMachineFragmentsRequest::clear_additional_fragment_ids() { + additional_fragment_ids_.Clear(); } -inline std::string* GetRobotPartLogsRequest::add_levels() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_levels()->Add(); - // @@protoc_insertion_point(field_add_mutable:viam.app.v1.GetRobotPartLogsRequest.levels) +inline std::string* ListMachineFragmentsRequest::add_additional_fragment_ids() { + std::string* _s = _internal_add_additional_fragment_ids(); + // @@protoc_insertion_point(field_add_mutable:viam.app.v1.ListMachineFragmentsRequest.additional_fragment_ids) return _s; } -inline const std::string& GetRobotPartLogsRequest::levels(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotPartLogsRequest.levels) - return _internal_levels().Get(index); +inline const std::string& ListMachineFragmentsRequest::_internal_additional_fragment_ids(int index) const { + return additional_fragment_ids_.Get(index); } -inline std::string* GetRobotPartLogsRequest::mutable_levels(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRobotPartLogsRequest.levels) - return _internal_mutable_levels()->Mutable(index); +inline const std::string& ListMachineFragmentsRequest::additional_fragment_ids(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.ListMachineFragmentsRequest.additional_fragment_ids) + return _internal_additional_fragment_ids(index); } -inline void GetRobotPartLogsRequest::set_levels(int index, const std::string& value) { - _internal_mutable_levels()->Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set:viam.app.v1.GetRobotPartLogsRequest.levels) +inline std::string* ListMachineFragmentsRequest::mutable_additional_fragment_ids(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.ListMachineFragmentsRequest.additional_fragment_ids) + return additional_fragment_ids_.Mutable(index); } -inline void GetRobotPartLogsRequest::set_levels(int index, std::string&& value) { - _internal_mutable_levels()->Mutable(index)->assign(std::move(value)); - // @@protoc_insertion_point(field_set:viam.app.v1.GetRobotPartLogsRequest.levels) +inline void ListMachineFragmentsRequest::set_additional_fragment_ids(int index, const std::string& value) { + additional_fragment_ids_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:viam.app.v1.ListMachineFragmentsRequest.additional_fragment_ids) } -inline void GetRobotPartLogsRequest::set_levels(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_levels()->Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:viam.app.v1.GetRobotPartLogsRequest.levels) +inline void ListMachineFragmentsRequest::set_additional_fragment_ids(int index, std::string&& value) { + additional_fragment_ids_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:viam.app.v1.ListMachineFragmentsRequest.additional_fragment_ids) } -inline void GetRobotPartLogsRequest::set_levels(int index, const char* value, - std::size_t size) { - _internal_mutable_levels()->Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:viam.app.v1.GetRobotPartLogsRequest.levels) +inline void ListMachineFragmentsRequest::set_additional_fragment_ids(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + additional_fragment_ids_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:viam.app.v1.ListMachineFragmentsRequest.additional_fragment_ids) } -inline void GetRobotPartLogsRequest::set_levels(int index, absl::string_view value) { - _internal_mutable_levels()->Mutable(index)->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_set_string_piece:viam.app.v1.GetRobotPartLogsRequest.levels) +inline void ListMachineFragmentsRequest::set_additional_fragment_ids(int index, const char* value, size_t size) { + additional_fragment_ids_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:viam.app.v1.ListMachineFragmentsRequest.additional_fragment_ids) } -inline void GetRobotPartLogsRequest::add_levels(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_levels()->Add()->assign(value); - // @@protoc_insertion_point(field_add:viam.app.v1.GetRobotPartLogsRequest.levels) +inline std::string* ListMachineFragmentsRequest::_internal_add_additional_fragment_ids() { + return additional_fragment_ids_.Add(); } -inline void GetRobotPartLogsRequest::add_levels(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_levels()->Add(std::move(value)); - // @@protoc_insertion_point(field_add:viam.app.v1.GetRobotPartLogsRequest.levels) +inline void ListMachineFragmentsRequest::add_additional_fragment_ids(const std::string& value) { + additional_fragment_ids_.Add()->assign(value); + // @@protoc_insertion_point(field_add:viam.app.v1.ListMachineFragmentsRequest.additional_fragment_ids) } -inline void GetRobotPartLogsRequest::add_levels(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_levels()->Add()->assign(value); - // @@protoc_insertion_point(field_add_char:viam.app.v1.GetRobotPartLogsRequest.levels) +inline void ListMachineFragmentsRequest::add_additional_fragment_ids(std::string&& value) { + additional_fragment_ids_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:viam.app.v1.ListMachineFragmentsRequest.additional_fragment_ids) } -inline void GetRobotPartLogsRequest::add_levels(const char* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_levels()->Add()->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:viam.app.v1.GetRobotPartLogsRequest.levels) +inline void ListMachineFragmentsRequest::add_additional_fragment_ids(const char* value) { + GOOGLE_DCHECK(value != nullptr); + additional_fragment_ids_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:viam.app.v1.ListMachineFragmentsRequest.additional_fragment_ids) } -inline void GetRobotPartLogsRequest::add_levels(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_levels()->Add()->assign(value.data(), value.size()); - // @@protoc_insertion_point(field_add_string_piece:viam.app.v1.GetRobotPartLogsRequest.levels) +inline void ListMachineFragmentsRequest::add_additional_fragment_ids(const char* value, size_t size) { + additional_fragment_ids_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:viam.app.v1.ListMachineFragmentsRequest.additional_fragment_ids) } -inline const ::google::protobuf::RepeatedPtrField& -GetRobotPartLogsRequest::levels() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:viam.app.v1.GetRobotPartLogsRequest.levels) - return _internal_levels(); +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +ListMachineFragmentsRequest::additional_fragment_ids() const { + // @@protoc_insertion_point(field_list:viam.app.v1.ListMachineFragmentsRequest.additional_fragment_ids) + return additional_fragment_ids_; } -inline ::google::protobuf::RepeatedPtrField* -GetRobotPartLogsRequest::mutable_levels() ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.GetRobotPartLogsRequest.levels) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_levels(); +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +ListMachineFragmentsRequest::mutable_additional_fragment_ids() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ListMachineFragmentsRequest.additional_fragment_ids) + return &additional_fragment_ids_; } -inline const ::google::protobuf::RepeatedPtrField& -GetRobotPartLogsRequest::_internal_levels() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.levels_; + +// ------------------------------------------------------------------- + +// ListMachineFragmentsResponse + +// repeated .viam.app.v1.Fragment fragments = 1 [json_name = "fragments"]; +inline int ListMachineFragmentsResponse::_internal_fragments_size() const { + return fragments_.size(); } -inline ::google::protobuf::RepeatedPtrField* -GetRobotPartLogsRequest::_internal_mutable_levels() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.levels_; +inline int ListMachineFragmentsResponse::fragments_size() const { + return _internal_fragments_size(); } - -// optional .google.protobuf.Timestamp start = 6 [json_name = "start"]; -inline bool GetRobotPartLogsRequest::has_start() const { - bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; - PROTOBUF_ASSUME(!value || _impl_.start_ != nullptr); - return value; +inline void ListMachineFragmentsResponse::clear_fragments() { + fragments_.Clear(); } -inline const ::google::protobuf::Timestamp& GetRobotPartLogsRequest::_internal_start() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Timestamp* p = _impl_.start_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); +inline ::viam::app::v1::Fragment* ListMachineFragmentsResponse::mutable_fragments(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.ListMachineFragmentsResponse.fragments) + return fragments_.Mutable(index); } -inline const ::google::protobuf::Timestamp& GetRobotPartLogsRequest::start() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotPartLogsRequest.start) - return _internal_start(); +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Fragment >* +ListMachineFragmentsResponse::mutable_fragments() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ListMachineFragmentsResponse.fragments) + return &fragments_; } -inline void GetRobotPartLogsRequest::unsafe_arena_set_allocated_start(::google::protobuf::Timestamp* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.start_); - } - _impl_.start_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000008u; - } else { - _impl_._has_bits_[0] &= ~0x00000008u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.GetRobotPartLogsRequest.start) +inline const ::viam::app::v1::Fragment& ListMachineFragmentsResponse::_internal_fragments(int index) const { + return fragments_.Get(index); } -inline ::google::protobuf::Timestamp* GetRobotPartLogsRequest::release_start() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000008u; - ::google::protobuf::Timestamp* released = _impl_.start_; - _impl_.start_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; +inline const ::viam::app::v1::Fragment& ListMachineFragmentsResponse::fragments(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.ListMachineFragmentsResponse.fragments) + return _internal_fragments(index); } -inline ::google::protobuf::Timestamp* GetRobotPartLogsRequest::unsafe_arena_release_start() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.GetRobotPartLogsRequest.start) - - _impl_._has_bits_[0] &= ~0x00000008u; - ::google::protobuf::Timestamp* temp = _impl_.start_; - _impl_.start_ = nullptr; - return temp; +inline ::viam::app::v1::Fragment* ListMachineFragmentsResponse::_internal_add_fragments() { + return fragments_.Add(); } -inline ::google::protobuf::Timestamp* GetRobotPartLogsRequest::_internal_mutable_start() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000008u; - if (_impl_.start_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena()); - _impl_.start_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); - } - return _impl_.start_; +inline ::viam::app::v1::Fragment* ListMachineFragmentsResponse::add_fragments() { + ::viam::app::v1::Fragment* _add = _internal_add_fragments(); + // @@protoc_insertion_point(field_add:viam.app.v1.ListMachineFragmentsResponse.fragments) + return _add; } -inline ::google::protobuf::Timestamp* GetRobotPartLogsRequest::mutable_start() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Timestamp* _msg = _internal_mutable_start(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRobotPartLogsRequest.start) - return _msg; +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Fragment >& +ListMachineFragmentsResponse::fragments() const { + // @@protoc_insertion_point(field_list:viam.app.v1.ListMachineFragmentsResponse.fragments) + return fragments_; } -inline void GetRobotPartLogsRequest::set_allocated_start(::google::protobuf::Timestamp* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.start_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000008u; - } else { - _impl_._has_bits_[0] &= ~0x00000008u; - } - _impl_.start_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetRobotPartLogsRequest.start) +// repeated .viam.app.v1.ResolvedFragment resolved_fragments = 2 [json_name = "resolvedFragments"]; +inline int ListMachineFragmentsResponse::_internal_resolved_fragments_size() const { + return resolved_fragments_.size(); } - -// optional .google.protobuf.Timestamp end = 7 [json_name = "end"]; -inline bool GetRobotPartLogsRequest::has_end() const { - bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; - PROTOBUF_ASSUME(!value || _impl_.end_ != nullptr); - return value; +inline int ListMachineFragmentsResponse::resolved_fragments_size() const { + return _internal_resolved_fragments_size(); } -inline const ::google::protobuf::Timestamp& GetRobotPartLogsRequest::_internal_end() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Timestamp* p = _impl_.end_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); +inline void ListMachineFragmentsResponse::clear_resolved_fragments() { + resolved_fragments_.Clear(); } -inline const ::google::protobuf::Timestamp& GetRobotPartLogsRequest::end() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotPartLogsRequest.end) - return _internal_end(); +inline ::viam::app::v1::ResolvedFragment* ListMachineFragmentsResponse::mutable_resolved_fragments(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.ListMachineFragmentsResponse.resolved_fragments) + return resolved_fragments_.Mutable(index); } -inline void GetRobotPartLogsRequest::unsafe_arena_set_allocated_end(::google::protobuf::Timestamp* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.end_); - } - _impl_.end_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000010u; - } else { - _impl_._has_bits_[0] &= ~0x00000010u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.GetRobotPartLogsRequest.end) +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ResolvedFragment >* +ListMachineFragmentsResponse::mutable_resolved_fragments() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ListMachineFragmentsResponse.resolved_fragments) + return &resolved_fragments_; } -inline ::google::protobuf::Timestamp* GetRobotPartLogsRequest::release_end() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000010u; - ::google::protobuf::Timestamp* released = _impl_.end_; - _impl_.end_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; +inline const ::viam::app::v1::ResolvedFragment& ListMachineFragmentsResponse::_internal_resolved_fragments(int index) const { + return resolved_fragments_.Get(index); } -inline ::google::protobuf::Timestamp* GetRobotPartLogsRequest::unsafe_arena_release_end() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.GetRobotPartLogsRequest.end) - - _impl_._has_bits_[0] &= ~0x00000010u; - ::google::protobuf::Timestamp* temp = _impl_.end_; - _impl_.end_ = nullptr; - return temp; +inline const ::viam::app::v1::ResolvedFragment& ListMachineFragmentsResponse::resolved_fragments(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.ListMachineFragmentsResponse.resolved_fragments) + return _internal_resolved_fragments(index); } -inline ::google::protobuf::Timestamp* GetRobotPartLogsRequest::_internal_mutable_end() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000010u; - if (_impl_.end_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena()); - _impl_.end_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); - } - return _impl_.end_; +inline ::viam::app::v1::ResolvedFragment* ListMachineFragmentsResponse::_internal_add_resolved_fragments() { + return resolved_fragments_.Add(); } -inline ::google::protobuf::Timestamp* GetRobotPartLogsRequest::mutable_end() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Timestamp* _msg = _internal_mutable_end(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRobotPartLogsRequest.end) - return _msg; +inline ::viam::app::v1::ResolvedFragment* ListMachineFragmentsResponse::add_resolved_fragments() { + ::viam::app::v1::ResolvedFragment* _add = _internal_add_resolved_fragments(); + // @@protoc_insertion_point(field_add:viam.app.v1.ListMachineFragmentsResponse.resolved_fragments) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ResolvedFragment >& +ListMachineFragmentsResponse::resolved_fragments() const { + // @@protoc_insertion_point(field_list:viam.app.v1.ListMachineFragmentsResponse.resolved_fragments) + return resolved_fragments_; } -inline void GetRobotPartLogsRequest::set_allocated_end(::google::protobuf::Timestamp* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.end_); - } - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000010u; - } else { - _impl_._has_bits_[0] &= ~0x00000010u; - } +// ------------------------------------------------------------------- - _impl_.end_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetRobotPartLogsRequest.end) -} +// ListRobotsResponse -// optional int64 limit = 8 [json_name = "limit"]; -inline bool GetRobotPartLogsRequest::has_limit() const { - bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0; - return value; +// repeated .viam.app.v1.Robot robots = 1 [json_name = "robots"]; +inline int ListRobotsResponse::_internal_robots_size() const { + return robots_.size(); } -inline void GetRobotPartLogsRequest::clear_limit() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.limit_ = ::int64_t{0}; - _impl_._has_bits_[0] &= ~0x00000020u; +inline int ListRobotsResponse::robots_size() const { + return _internal_robots_size(); } -inline ::int64_t GetRobotPartLogsRequest::limit() const { - // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotPartLogsRequest.limit) - return _internal_limit(); +inline void ListRobotsResponse::clear_robots() { + robots_.Clear(); } -inline void GetRobotPartLogsRequest::set_limit(::int64_t value) { - _internal_set_limit(value); - // @@protoc_insertion_point(field_set:viam.app.v1.GetRobotPartLogsRequest.limit) +inline ::viam::app::v1::Robot* ListRobotsResponse::mutable_robots(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.ListRobotsResponse.robots) + return robots_.Mutable(index); } -inline ::int64_t GetRobotPartLogsRequest::_internal_limit() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.limit_; +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Robot >* +ListRobotsResponse::mutable_robots() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ListRobotsResponse.robots) + return &robots_; } -inline void GetRobotPartLogsRequest::_internal_set_limit(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000020u; - _impl_.limit_ = value; +inline const ::viam::app::v1::Robot& ListRobotsResponse::_internal_robots(int index) const { + return robots_.Get(index); } - -// optional string source = 9 [json_name = "source"]; -inline bool GetRobotPartLogsRequest::has_source() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; - return value; +inline const ::viam::app::v1::Robot& ListRobotsResponse::robots(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.ListRobotsResponse.robots) + return _internal_robots(index); } -inline void GetRobotPartLogsRequest::clear_source() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.source_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000004u; +inline ::viam::app::v1::Robot* ListRobotsResponse::_internal_add_robots() { + return robots_.Add(); } -inline const std::string& GetRobotPartLogsRequest::source() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotPartLogsRequest.source) - return _internal_source(); +inline ::viam::app::v1::Robot* ListRobotsResponse::add_robots() { + ::viam::app::v1::Robot* _add = _internal_add_robots(); + // @@protoc_insertion_point(field_add:viam.app.v1.ListRobotsResponse.robots) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Robot >& +ListRobotsResponse::robots() const { + // @@protoc_insertion_point(field_list:viam.app.v1.ListRobotsResponse.robots) + return robots_; +} + +// ------------------------------------------------------------------- + +// NewRobotRequest + +// string name = 1 [json_name = "name"]; +inline void NewRobotRequest::clear_name() { + name_.ClearToEmpty(); +} +inline const std::string& NewRobotRequest::name() const { + // @@protoc_insertion_point(field_get:viam.app.v1.NewRobotRequest.name) + return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetRobotPartLogsRequest::set_source(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - _impl_.source_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.GetRobotPartLogsRequest.source) +template +inline PROTOBUF_ALWAYS_INLINE +void NewRobotRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.NewRobotRequest.name) } -inline std::string* GetRobotPartLogsRequest::mutable_source() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_source(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRobotPartLogsRequest.source) +inline std::string* NewRobotRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.NewRobotRequest.name) return _s; } -inline const std::string& GetRobotPartLogsRequest::_internal_source() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.source_.Get(); +inline const std::string& NewRobotRequest::_internal_name() const { + return name_.Get(); } -inline void GetRobotPartLogsRequest::_internal_set_source(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - _impl_.source_.Set(value, GetArena()); +inline void NewRobotRequest::_internal_set_name(const std::string& value) { + + name_.Set(value, GetArenaForAllocation()); } -inline std::string* GetRobotPartLogsRequest::_internal_mutable_source() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - return _impl_.source_.Mutable( GetArena()); +inline std::string* NewRobotRequest::_internal_mutable_name() { + + return name_.Mutable(GetArenaForAllocation()); } -inline std::string* GetRobotPartLogsRequest::release_source() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.GetRobotPartLogsRequest.source) - if ((_impl_._has_bits_[0] & 0x00000004u) == 0) { - return nullptr; - } - _impl_._has_bits_[0] &= ~0x00000004u; - auto* released = _impl_.source_.Release(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.source_.Set("", GetArena()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return released; +inline std::string* NewRobotRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.app.v1.NewRobotRequest.name) + return name_.Release(); } -inline void GetRobotPartLogsRequest::set_allocated_source(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000004u; +inline void NewRobotRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + } else { - _impl_._has_bits_[0] &= ~0x00000004u; + } - _impl_.source_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.source_.IsDefault()) { - _impl_.source_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetRobotPartLogsRequest.source) + 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.app.v1.NewRobotRequest.name) } -// ------------------------------------------------------------------- - -// GetRobotPartLogsResponse - -// repeated .viam.common.v1.LogEntry logs = 1 [json_name = "logs"]; -inline int GetRobotPartLogsResponse::_internal_logs_size() const { - return _internal_logs().size(); +// string location = 2 [json_name = "location"]; +inline void NewRobotRequest::clear_location() { + location_.ClearToEmpty(); } -inline int GetRobotPartLogsResponse::logs_size() const { - return _internal_logs_size(); +inline const std::string& NewRobotRequest::location() const { + // @@protoc_insertion_point(field_get:viam.app.v1.NewRobotRequest.location) + return _internal_location(); } -inline ::viam::common::v1::LogEntry* GetRobotPartLogsResponse::mutable_logs(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRobotPartLogsResponse.logs) - return _internal_mutable_logs()->Mutable(index); +template +inline PROTOBUF_ALWAYS_INLINE +void NewRobotRequest::set_location(ArgT0&& arg0, ArgT... args) { + + location_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.NewRobotRequest.location) } -inline ::google::protobuf::RepeatedPtrField<::viam::common::v1::LogEntry>* GetRobotPartLogsResponse::mutable_logs() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.GetRobotPartLogsResponse.logs) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_logs(); +inline std::string* NewRobotRequest::mutable_location() { + std::string* _s = _internal_mutable_location(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.NewRobotRequest.location) + return _s; } -inline const ::viam::common::v1::LogEntry& GetRobotPartLogsResponse::logs(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotPartLogsResponse.logs) - return _internal_logs().Get(index); +inline const std::string& NewRobotRequest::_internal_location() const { + return location_.Get(); } -inline ::viam::common::v1::LogEntry* GetRobotPartLogsResponse::add_logs() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::common::v1::LogEntry* _add = _internal_mutable_logs()->Add(); - // @@protoc_insertion_point(field_add:viam.app.v1.GetRobotPartLogsResponse.logs) - return _add; +inline void NewRobotRequest::_internal_set_location(const std::string& value) { + + location_.Set(value, GetArenaForAllocation()); } -inline const ::google::protobuf::RepeatedPtrField<::viam::common::v1::LogEntry>& GetRobotPartLogsResponse::logs() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:viam.app.v1.GetRobotPartLogsResponse.logs) - return _internal_logs(); +inline std::string* NewRobotRequest::_internal_mutable_location() { + + return location_.Mutable(GetArenaForAllocation()); } -inline const ::google::protobuf::RepeatedPtrField<::viam::common::v1::LogEntry>& -GetRobotPartLogsResponse::_internal_logs() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.logs_; +inline std::string* NewRobotRequest::release_location() { + // @@protoc_insertion_point(field_release:viam.app.v1.NewRobotRequest.location) + return location_.Release(); } -inline ::google::protobuf::RepeatedPtrField<::viam::common::v1::LogEntry>* -GetRobotPartLogsResponse::_internal_mutable_logs() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.logs_; +inline void NewRobotRequest::set_allocated_location(std::string* location) { + if (location != nullptr) { + + } else { + + } + location_.SetAllocated(location, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (location_.IsDefault()) { + location_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.NewRobotRequest.location) } -// string next_page_token = 2 [json_name = "nextPageToken"]; -inline void GetRobotPartLogsResponse::clear_next_page_token() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.next_page_token_.ClearToEmpty(); +// ------------------------------------------------------------------- + +// NewRobotResponse + +// string id = 1 [json_name = "id"]; +inline void NewRobotResponse::clear_id() { + id_.ClearToEmpty(); } -inline const std::string& GetRobotPartLogsResponse::next_page_token() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotPartLogsResponse.next_page_token) - return _internal_next_page_token(); +inline const std::string& NewRobotResponse::id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.NewRobotResponse.id) + return _internal_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetRobotPartLogsResponse::set_next_page_token(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.next_page_token_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.GetRobotPartLogsResponse.next_page_token) +template +inline PROTOBUF_ALWAYS_INLINE +void NewRobotResponse::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.NewRobotResponse.id) } -inline std::string* GetRobotPartLogsResponse::mutable_next_page_token() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_next_page_token(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRobotPartLogsResponse.next_page_token) +inline std::string* NewRobotResponse::mutable_id() { + std::string* _s = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.NewRobotResponse.id) return _s; } -inline const std::string& GetRobotPartLogsResponse::_internal_next_page_token() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.next_page_token_.Get(); +inline const std::string& NewRobotResponse::_internal_id() const { + return id_.Get(); } -inline void GetRobotPartLogsResponse::_internal_set_next_page_token(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.next_page_token_.Set(value, GetArena()); +inline void NewRobotResponse::_internal_set_id(const std::string& value) { + + id_.Set(value, GetArenaForAllocation()); } -inline std::string* GetRobotPartLogsResponse::_internal_mutable_next_page_token() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.next_page_token_.Mutable( GetArena()); +inline std::string* NewRobotResponse::_internal_mutable_id() { + + return id_.Mutable(GetArenaForAllocation()); } -inline std::string* GetRobotPartLogsResponse::release_next_page_token() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.GetRobotPartLogsResponse.next_page_token) - return _impl_.next_page_token_.Release(); -} -inline void GetRobotPartLogsResponse::set_allocated_next_page_token(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.next_page_token_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.next_page_token_.IsDefault()) { - _impl_.next_page_token_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetRobotPartLogsResponse.next_page_token) +inline std::string* NewRobotResponse::release_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.NewRobotResponse.id) + return id_.Release(); +} +inline void NewRobotResponse::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.NewRobotResponse.id) } // ------------------------------------------------------------------- -// TailRobotPartLogsRequest +// UpdateRobotRequest // string id = 1 [json_name = "id"]; -inline void TailRobotPartLogsRequest::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); +inline void UpdateRobotRequest::clear_id() { + id_.ClearToEmpty(); } -inline const std::string& TailRobotPartLogsRequest::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.TailRobotPartLogsRequest.id) +inline const std::string& UpdateRobotRequest::id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateRobotRequest.id) return _internal_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void TailRobotPartLogsRequest::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.TailRobotPartLogsRequest.id) +template +inline PROTOBUF_ALWAYS_INLINE +void UpdateRobotRequest::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateRobotRequest.id) } -inline std::string* TailRobotPartLogsRequest::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* UpdateRobotRequest::mutable_id() { std::string* _s = _internal_mutable_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.TailRobotPartLogsRequest.id) + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateRobotRequest.id) return _s; } -inline const std::string& TailRobotPartLogsRequest::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); +inline const std::string& UpdateRobotRequest::_internal_id() const { + return id_.Get(); } -inline void TailRobotPartLogsRequest::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); +inline void UpdateRobotRequest::_internal_set_id(const std::string& value) { + + id_.Set(value, GetArenaForAllocation()); } -inline std::string* TailRobotPartLogsRequest::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); +inline std::string* UpdateRobotRequest::_internal_mutable_id() { + + return id_.Mutable(GetArenaForAllocation()); } -inline std::string* TailRobotPartLogsRequest::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.TailRobotPartLogsRequest.id) - return _impl_.id_.Release(); -} -inline void TailRobotPartLogsRequest::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.TailRobotPartLogsRequest.id) +inline std::string* UpdateRobotRequest::release_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateRobotRequest.id) + return id_.Release(); +} +inline void UpdateRobotRequest::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateRobotRequest.id) } -// bool errors_only = 2 [json_name = "errorsOnly"]; -inline void TailRobotPartLogsRequest::clear_errors_only() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.errors_only_ = false; +// string name = 2 [json_name = "name"]; +inline void UpdateRobotRequest::clear_name() { + name_.ClearToEmpty(); } -inline bool TailRobotPartLogsRequest::errors_only() const { - // @@protoc_insertion_point(field_get:viam.app.v1.TailRobotPartLogsRequest.errors_only) - return _internal_errors_only(); +inline const std::string& UpdateRobotRequest::name() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateRobotRequest.name) + return _internal_name(); } -inline void TailRobotPartLogsRequest::set_errors_only(bool value) { - _internal_set_errors_only(value); - // @@protoc_insertion_point(field_set:viam.app.v1.TailRobotPartLogsRequest.errors_only) +template +inline PROTOBUF_ALWAYS_INLINE +void UpdateRobotRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateRobotRequest.name) } -inline bool TailRobotPartLogsRequest::_internal_errors_only() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.errors_only_; +inline std::string* UpdateRobotRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateRobotRequest.name) + return _s; } -inline void TailRobotPartLogsRequest::_internal_set_errors_only(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.errors_only_ = value; +inline const std::string& UpdateRobotRequest::_internal_name() const { + return name_.Get(); } - -// optional string filter = 3 [json_name = "filter"]; -inline bool TailRobotPartLogsRequest::has_filter() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - return value; +inline void UpdateRobotRequest::_internal_set_name(const std::string& value) { + + name_.Set(value, GetArenaForAllocation()); } -inline void TailRobotPartLogsRequest::clear_filter() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.filter_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000001u; +inline std::string* UpdateRobotRequest::_internal_mutable_name() { + + return name_.Mutable(GetArenaForAllocation()); } -inline const std::string& TailRobotPartLogsRequest::filter() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.TailRobotPartLogsRequest.filter) - return _internal_filter(); +inline std::string* UpdateRobotRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateRobotRequest.name) + return name_.Release(); } -template -inline PROTOBUF_ALWAYS_INLINE void TailRobotPartLogsRequest::set_filter(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.filter_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.TailRobotPartLogsRequest.filter) +inline void UpdateRobotRequest::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.app.v1.UpdateRobotRequest.name) } -inline std::string* TailRobotPartLogsRequest::mutable_filter() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_filter(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.TailRobotPartLogsRequest.filter) + +// string location = 3 [json_name = "location"]; +inline void UpdateRobotRequest::clear_location() { + location_.ClearToEmpty(); +} +inline const std::string& UpdateRobotRequest::location() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateRobotRequest.location) + return _internal_location(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void UpdateRobotRequest::set_location(ArgT0&& arg0, ArgT... args) { + + location_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateRobotRequest.location) +} +inline std::string* UpdateRobotRequest::mutable_location() { + std::string* _s = _internal_mutable_location(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateRobotRequest.location) return _s; } -inline const std::string& TailRobotPartLogsRequest::_internal_filter() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.filter_.Get(); +inline const std::string& UpdateRobotRequest::_internal_location() const { + return location_.Get(); } -inline void TailRobotPartLogsRequest::_internal_set_filter(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.filter_.Set(value, GetArena()); +inline void UpdateRobotRequest::_internal_set_location(const std::string& value) { + + location_.Set(value, GetArenaForAllocation()); } -inline std::string* TailRobotPartLogsRequest::_internal_mutable_filter() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.filter_.Mutable( GetArena()); +inline std::string* UpdateRobotRequest::_internal_mutable_location() { + + return location_.Mutable(GetArenaForAllocation()); } -inline std::string* TailRobotPartLogsRequest::release_filter() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.TailRobotPartLogsRequest.filter) - if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { - return nullptr; - } - _impl_._has_bits_[0] &= ~0x00000001u; - auto* released = _impl_.filter_.Release(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.filter_.Set("", GetArena()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return released; +inline std::string* UpdateRobotRequest::release_location() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateRobotRequest.location) + return location_.Release(); } -inline void TailRobotPartLogsRequest::set_allocated_filter(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; +inline void UpdateRobotRequest::set_allocated_location(std::string* location) { + if (location != nullptr) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - _impl_.filter_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.filter_.IsDefault()) { - _impl_.filter_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.TailRobotPartLogsRequest.filter) + location_.SetAllocated(location, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (location_.IsDefault()) { + location_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateRobotRequest.location) } // ------------------------------------------------------------------- -// TailRobotPartLogsResponse +// UpdateRobotResponse -// repeated .viam.common.v1.LogEntry logs = 1 [json_name = "logs"]; -inline int TailRobotPartLogsResponse::_internal_logs_size() const { - return _internal_logs().size(); +// .viam.app.v1.Robot robot = 1 [json_name = "robot"]; +inline bool UpdateRobotResponse::_internal_has_robot() const { + return this != internal_default_instance() && robot_ != nullptr; } -inline int TailRobotPartLogsResponse::logs_size() const { - return _internal_logs_size(); +inline bool UpdateRobotResponse::has_robot() const { + return _internal_has_robot(); } -inline ::viam::common::v1::LogEntry* TailRobotPartLogsResponse::mutable_logs(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:viam.app.v1.TailRobotPartLogsResponse.logs) - return _internal_mutable_logs()->Mutable(index); +inline void UpdateRobotResponse::clear_robot() { + if (GetArenaForAllocation() == nullptr && robot_ != nullptr) { + delete robot_; + } + robot_ = nullptr; } -inline ::google::protobuf::RepeatedPtrField<::viam::common::v1::LogEntry>* TailRobotPartLogsResponse::mutable_logs() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.TailRobotPartLogsResponse.logs) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_logs(); +inline const ::viam::app::v1::Robot& UpdateRobotResponse::_internal_robot() const { + const ::viam::app::v1::Robot* p = robot_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_Robot_default_instance_); } -inline const ::viam::common::v1::LogEntry& TailRobotPartLogsResponse::logs(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.TailRobotPartLogsResponse.logs) - return _internal_logs().Get(index); +inline const ::viam::app::v1::Robot& UpdateRobotResponse::robot() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateRobotResponse.robot) + return _internal_robot(); } -inline ::viam::common::v1::LogEntry* TailRobotPartLogsResponse::add_logs() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::common::v1::LogEntry* _add = _internal_mutable_logs()->Add(); - // @@protoc_insertion_point(field_add:viam.app.v1.TailRobotPartLogsResponse.logs) - return _add; +inline void UpdateRobotResponse::unsafe_arena_set_allocated_robot( + ::viam::app::v1::Robot* robot) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(robot_); + } + robot_ = robot; + if (robot) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.UpdateRobotResponse.robot) } -inline const ::google::protobuf::RepeatedPtrField<::viam::common::v1::LogEntry>& TailRobotPartLogsResponse::logs() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:viam.app.v1.TailRobotPartLogsResponse.logs) - return _internal_logs(); +inline ::viam::app::v1::Robot* UpdateRobotResponse::release_robot() { + + ::viam::app::v1::Robot* temp = robot_; + robot_ = 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::Robot* UpdateRobotResponse::unsafe_arena_release_robot() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateRobotResponse.robot) + + ::viam::app::v1::Robot* temp = robot_; + robot_ = nullptr; + return temp; +} +inline ::viam::app::v1::Robot* UpdateRobotResponse::_internal_mutable_robot() { + + if (robot_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::Robot>(GetArenaForAllocation()); + robot_ = p; + } + return robot_; } -inline const ::google::protobuf::RepeatedPtrField<::viam::common::v1::LogEntry>& -TailRobotPartLogsResponse::_internal_logs() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.logs_; +inline ::viam::app::v1::Robot* UpdateRobotResponse::mutable_robot() { + ::viam::app::v1::Robot* _msg = _internal_mutable_robot(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateRobotResponse.robot) + return _msg; } -inline ::google::protobuf::RepeatedPtrField<::viam::common::v1::LogEntry>* -TailRobotPartLogsResponse::_internal_mutable_logs() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.logs_; +inline void UpdateRobotResponse::set_allocated_robot(::viam::app::v1::Robot* robot) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete robot_; + } + if (robot) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(robot); + if (message_arena != submessage_arena) { + robot = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, robot, submessage_arena); + } + + } else { + + } + robot_ = robot; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateRobotResponse.robot) } // ------------------------------------------------------------------- -// GetRobotPartHistoryRequest +// DeleteRobotRequest // string id = 1 [json_name = "id"]; -inline void GetRobotPartHistoryRequest::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); +inline void DeleteRobotRequest::clear_id() { + id_.ClearToEmpty(); } -inline const std::string& GetRobotPartHistoryRequest::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotPartHistoryRequest.id) +inline const std::string& DeleteRobotRequest::id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.DeleteRobotRequest.id) return _internal_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetRobotPartHistoryRequest::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.GetRobotPartHistoryRequest.id) +template +inline PROTOBUF_ALWAYS_INLINE +void DeleteRobotRequest::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.DeleteRobotRequest.id) } -inline std::string* GetRobotPartHistoryRequest::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* DeleteRobotRequest::mutable_id() { std::string* _s = _internal_mutable_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRobotPartHistoryRequest.id) + // @@protoc_insertion_point(field_mutable:viam.app.v1.DeleteRobotRequest.id) return _s; } -inline const std::string& GetRobotPartHistoryRequest::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); +inline const std::string& DeleteRobotRequest::_internal_id() const { + return id_.Get(); } -inline void GetRobotPartHistoryRequest::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); +inline void DeleteRobotRequest::_internal_set_id(const std::string& value) { + + id_.Set(value, GetArenaForAllocation()); } -inline std::string* GetRobotPartHistoryRequest::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); +inline std::string* DeleteRobotRequest::_internal_mutable_id() { + + return id_.Mutable(GetArenaForAllocation()); } -inline std::string* GetRobotPartHistoryRequest::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.GetRobotPartHistoryRequest.id) - return _impl_.id_.Release(); -} -inline void GetRobotPartHistoryRequest::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetRobotPartHistoryRequest.id) +inline std::string* DeleteRobotRequest::release_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.DeleteRobotRequest.id) + return id_.Release(); +} +inline void DeleteRobotRequest::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.DeleteRobotRequest.id) } // ------------------------------------------------------------------- -// GetRobotPartHistoryResponse +// DeleteRobotResponse -// repeated .viam.app.v1.RobotPartHistoryEntry history = 1 [json_name = "history"]; -inline int GetRobotPartHistoryResponse::_internal_history_size() const { - return _internal_history().size(); -} -inline int GetRobotPartHistoryResponse::history_size() const { - return _internal_history_size(); +// ------------------------------------------------------------------- + +// MarkPartAsMainRequest + +// string part_id = 1 [json_name = "partId"]; +inline void MarkPartAsMainRequest::clear_part_id() { + part_id_.ClearToEmpty(); } -inline void GetRobotPartHistoryResponse::clear_history() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.history_.Clear(); +inline const std::string& MarkPartAsMainRequest::part_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.MarkPartAsMainRequest.part_id) + return _internal_part_id(); } -inline ::viam::app::v1::RobotPartHistoryEntry* GetRobotPartHistoryResponse::mutable_history(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRobotPartHistoryResponse.history) - return _internal_mutable_history()->Mutable(index); +template +inline PROTOBUF_ALWAYS_INLINE +void MarkPartAsMainRequest::set_part_id(ArgT0&& arg0, ArgT... args) { + + part_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.MarkPartAsMainRequest.part_id) } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::RobotPartHistoryEntry>* GetRobotPartHistoryResponse::mutable_history() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.GetRobotPartHistoryResponse.history) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_history(); +inline std::string* MarkPartAsMainRequest::mutable_part_id() { + std::string* _s = _internal_mutable_part_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.MarkPartAsMainRequest.part_id) + return _s; } -inline const ::viam::app::v1::RobotPartHistoryEntry& GetRobotPartHistoryResponse::history(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotPartHistoryResponse.history) - return _internal_history().Get(index); +inline const std::string& MarkPartAsMainRequest::_internal_part_id() const { + return part_id_.Get(); } -inline ::viam::app::v1::RobotPartHistoryEntry* GetRobotPartHistoryResponse::add_history() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::RobotPartHistoryEntry* _add = _internal_mutable_history()->Add(); - // @@protoc_insertion_point(field_add:viam.app.v1.GetRobotPartHistoryResponse.history) - return _add; +inline void MarkPartAsMainRequest::_internal_set_part_id(const std::string& value) { + + part_id_.Set(value, GetArenaForAllocation()); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::RobotPartHistoryEntry>& GetRobotPartHistoryResponse::history() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:viam.app.v1.GetRobotPartHistoryResponse.history) - return _internal_history(); +inline std::string* MarkPartAsMainRequest::_internal_mutable_part_id() { + + return part_id_.Mutable(GetArenaForAllocation()); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::RobotPartHistoryEntry>& -GetRobotPartHistoryResponse::_internal_history() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.history_; +inline std::string* MarkPartAsMainRequest::release_part_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.MarkPartAsMainRequest.part_id) + return part_id_.Release(); } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::RobotPartHistoryEntry>* -GetRobotPartHistoryResponse::_internal_mutable_history() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.history_; +inline void MarkPartAsMainRequest::set_allocated_part_id(std::string* part_id) { + if (part_id != nullptr) { + + } else { + + } + part_id_.SetAllocated(part_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (part_id_.IsDefault()) { + part_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.MarkPartAsMainRequest.part_id) } // ------------------------------------------------------------------- -// UpdateRobotPartRequest +// MarkPartAsMainResponse -// string id = 1 [json_name = "id"]; -inline void UpdateRobotPartRequest::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); +// ------------------------------------------------------------------- + +// MarkPartForRestartRequest + +// string part_id = 1 [json_name = "partId"]; +inline void MarkPartForRestartRequest::clear_part_id() { + part_id_.ClearToEmpty(); } -inline const std::string& UpdateRobotPartRequest::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.UpdateRobotPartRequest.id) - return _internal_id(); +inline const std::string& MarkPartForRestartRequest::part_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.MarkPartForRestartRequest.part_id) + return _internal_part_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void UpdateRobotPartRequest::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.UpdateRobotPartRequest.id) +template +inline PROTOBUF_ALWAYS_INLINE +void MarkPartForRestartRequest::set_part_id(ArgT0&& arg0, ArgT... args) { + + part_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.MarkPartForRestartRequest.part_id) } -inline std::string* UpdateRobotPartRequest::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateRobotPartRequest.id) +inline std::string* MarkPartForRestartRequest::mutable_part_id() { + std::string* _s = _internal_mutable_part_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.MarkPartForRestartRequest.part_id) return _s; } -inline const std::string& UpdateRobotPartRequest::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); +inline const std::string& MarkPartForRestartRequest::_internal_part_id() const { + return part_id_.Get(); } -inline void UpdateRobotPartRequest::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); +inline void MarkPartForRestartRequest::_internal_set_part_id(const std::string& value) { + + part_id_.Set(value, GetArenaForAllocation()); } -inline std::string* UpdateRobotPartRequest::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); +inline std::string* MarkPartForRestartRequest::_internal_mutable_part_id() { + + return part_id_.Mutable(GetArenaForAllocation()); } -inline std::string* UpdateRobotPartRequest::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.UpdateRobotPartRequest.id) - return _impl_.id_.Release(); -} -inline void UpdateRobotPartRequest::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateRobotPartRequest.id) +inline std::string* MarkPartForRestartRequest::release_part_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.MarkPartForRestartRequest.part_id) + return part_id_.Release(); +} +inline void MarkPartForRestartRequest::set_allocated_part_id(std::string* part_id) { + if (part_id != nullptr) { + + } else { + + } + part_id_.SetAllocated(part_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (part_id_.IsDefault()) { + part_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.MarkPartForRestartRequest.part_id) } -// string name = 2 [json_name = "name"]; -inline void UpdateRobotPartRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); +// ------------------------------------------------------------------- + +// MarkPartForRestartResponse + +// ------------------------------------------------------------------- + +// CreateRobotPartSecretRequest + +// string part_id = 1 [json_name = "partId"]; +inline void CreateRobotPartSecretRequest::clear_part_id() { + part_id_.ClearToEmpty(); } -inline const std::string& UpdateRobotPartRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.UpdateRobotPartRequest.name) - return _internal_name(); +inline const std::string& CreateRobotPartSecretRequest::part_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.CreateRobotPartSecretRequest.part_id) + return _internal_part_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void UpdateRobotPartRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.UpdateRobotPartRequest.name) +template +inline PROTOBUF_ALWAYS_INLINE +void CreateRobotPartSecretRequest::set_part_id(ArgT0&& arg0, ArgT... args) { + + part_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.CreateRobotPartSecretRequest.part_id) } -inline std::string* UpdateRobotPartRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateRobotPartRequest.name) +inline std::string* CreateRobotPartSecretRequest::mutable_part_id() { + std::string* _s = _internal_mutable_part_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateRobotPartSecretRequest.part_id) return _s; } -inline const std::string& UpdateRobotPartRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); +inline const std::string& CreateRobotPartSecretRequest::_internal_part_id() const { + return part_id_.Get(); } -inline void UpdateRobotPartRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); +inline void CreateRobotPartSecretRequest::_internal_set_part_id(const std::string& value) { + + part_id_.Set(value, GetArenaForAllocation()); } -inline std::string* UpdateRobotPartRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); +inline std::string* CreateRobotPartSecretRequest::_internal_mutable_part_id() { + + return part_id_.Mutable(GetArenaForAllocation()); } -inline std::string* UpdateRobotPartRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.UpdateRobotPartRequest.name) - return _impl_.name_.Release(); -} -inline void UpdateRobotPartRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateRobotPartRequest.name) +inline std::string* CreateRobotPartSecretRequest::release_part_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.CreateRobotPartSecretRequest.part_id) + return part_id_.Release(); +} +inline void CreateRobotPartSecretRequest::set_allocated_part_id(std::string* part_id) { + if (part_id != nullptr) { + + } else { + + } + part_id_.SetAllocated(part_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (part_id_.IsDefault()) { + part_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateRobotPartSecretRequest.part_id) } -// .google.protobuf.Struct robot_config = 3 [json_name = "robotConfig"]; -inline bool UpdateRobotPartRequest::has_robot_config() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.robot_config_ != nullptr); - return value; +// ------------------------------------------------------------------- + +// CreateRobotPartSecretResponse + +// .viam.app.v1.RobotPart part = 1 [json_name = "part"]; +inline bool CreateRobotPartSecretResponse::_internal_has_part() const { + return this != internal_default_instance() && part_ != nullptr; } -inline const ::google::protobuf::Struct& UpdateRobotPartRequest::_internal_robot_config() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.robot_config_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline bool CreateRobotPartSecretResponse::has_part() const { + return _internal_has_part(); } -inline const ::google::protobuf::Struct& UpdateRobotPartRequest::robot_config() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.UpdateRobotPartRequest.robot_config) - return _internal_robot_config(); +inline void CreateRobotPartSecretResponse::clear_part() { + if (GetArenaForAllocation() == nullptr && part_ != nullptr) { + delete part_; + } + part_ = nullptr; +} +inline const ::viam::app::v1::RobotPart& CreateRobotPartSecretResponse::_internal_part() const { + const ::viam::app::v1::RobotPart* p = part_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_RobotPart_default_instance_); } -inline void UpdateRobotPartRequest::unsafe_arena_set_allocated_robot_config(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.robot_config_); +inline const ::viam::app::v1::RobotPart& CreateRobotPartSecretResponse::part() const { + // @@protoc_insertion_point(field_get:viam.app.v1.CreateRobotPartSecretResponse.part) + return _internal_part(); +} +inline void CreateRobotPartSecretResponse::unsafe_arena_set_allocated_part( + ::viam::app::v1::RobotPart* part) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(part_); } - _impl_.robot_config_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + part_ = part; + if (part) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.UpdateRobotPartRequest.robot_config) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.CreateRobotPartSecretResponse.part) } -inline ::google::protobuf::Struct* UpdateRobotPartRequest::release_robot_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.robot_config_; - _impl_.robot_config_ = nullptr; +inline ::viam::app::v1::RobotPart* CreateRobotPartSecretResponse::release_part() { + + ::viam::app::v1::RobotPart* temp = part_; + part_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* UpdateRobotPartRequest::unsafe_arena_release_robot_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.UpdateRobotPartRequest.robot_config) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.robot_config_; - _impl_.robot_config_ = nullptr; +inline ::viam::app::v1::RobotPart* CreateRobotPartSecretResponse::unsafe_arena_release_part() { + // @@protoc_insertion_point(field_release:viam.app.v1.CreateRobotPartSecretResponse.part) + + ::viam::app::v1::RobotPart* temp = part_; + part_ = nullptr; return temp; } -inline ::google::protobuf::Struct* UpdateRobotPartRequest::_internal_mutable_robot_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.robot_config_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.robot_config_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::viam::app::v1::RobotPart* CreateRobotPartSecretResponse::_internal_mutable_part() { + + if (part_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::RobotPart>(GetArenaForAllocation()); + part_ = p; } - return _impl_.robot_config_; + return part_; } -inline ::google::protobuf::Struct* UpdateRobotPartRequest::mutable_robot_config() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_robot_config(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateRobotPartRequest.robot_config) +inline ::viam::app::v1::RobotPart* CreateRobotPartSecretResponse::mutable_part() { + ::viam::app::v1::RobotPart* _msg = _internal_mutable_part(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateRobotPartSecretResponse.part) return _msg; } -inline void UpdateRobotPartRequest::set_allocated_robot_config(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void CreateRobotPartSecretResponse::set_allocated_part(::viam::app::v1::RobotPart* part) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.robot_config_); + delete part_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (part) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(part); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + part = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, part, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.robot_config_ = reinterpret_cast<::google::protobuf::Struct*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateRobotPartRequest.robot_config) + part_ = part; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateRobotPartSecretResponse.part) } // ------------------------------------------------------------------- -// UpdateRobotPartResponse +// DeleteRobotPartSecretRequest -// .viam.app.v1.RobotPart part = 1 [json_name = "part"]; -inline bool UpdateRobotPartResponse::has_part() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.part_ != nullptr); - return value; +// string part_id = 1 [json_name = "partId"]; +inline void DeleteRobotPartSecretRequest::clear_part_id() { + part_id_.ClearToEmpty(); } -inline void UpdateRobotPartResponse::clear_part() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.part_ != nullptr) _impl_.part_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; +inline const std::string& DeleteRobotPartSecretRequest::part_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.DeleteRobotPartSecretRequest.part_id) + return _internal_part_id(); } -inline const ::viam::app::v1::RobotPart& UpdateRobotPartResponse::_internal_part() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::RobotPart* p = _impl_.part_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_RobotPart_default_instance_); +template +inline PROTOBUF_ALWAYS_INLINE +void DeleteRobotPartSecretRequest::set_part_id(ArgT0&& arg0, ArgT... args) { + + part_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.DeleteRobotPartSecretRequest.part_id) } -inline const ::viam::app::v1::RobotPart& UpdateRobotPartResponse::part() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.UpdateRobotPartResponse.part) - return _internal_part(); +inline std::string* DeleteRobotPartSecretRequest::mutable_part_id() { + std::string* _s = _internal_mutable_part_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.DeleteRobotPartSecretRequest.part_id) + return _s; } -inline void UpdateRobotPartResponse::unsafe_arena_set_allocated_part(::viam::app::v1::RobotPart* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.part_); - } - _impl_.part_ = reinterpret_cast<::viam::app::v1::RobotPart*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; +inline const std::string& DeleteRobotPartSecretRequest::_internal_part_id() const { + return part_id_.Get(); +} +inline void DeleteRobotPartSecretRequest::_internal_set_part_id(const std::string& value) { + + part_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* DeleteRobotPartSecretRequest::_internal_mutable_part_id() { + + return part_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* DeleteRobotPartSecretRequest::release_part_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.DeleteRobotPartSecretRequest.part_id) + return part_id_.Release(); +} +inline void DeleteRobotPartSecretRequest::set_allocated_part_id(std::string* part_id) { + if (part_id != nullptr) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.UpdateRobotPartResponse.part) + part_id_.SetAllocated(part_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (part_id_.IsDefault()) { + part_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.DeleteRobotPartSecretRequest.part_id) } -inline ::viam::app::v1::RobotPart* UpdateRobotPartResponse::release_part() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::RobotPart* released = _impl_.part_; - _impl_.part_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; +// string secret_id = 2 [json_name = "secretId"]; +inline void DeleteRobotPartSecretRequest::clear_secret_id() { + secret_id_.ClearToEmpty(); +} +inline const std::string& DeleteRobotPartSecretRequest::secret_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.DeleteRobotPartSecretRequest.secret_id) + return _internal_secret_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void DeleteRobotPartSecretRequest::set_secret_id(ArgT0&& arg0, ArgT... args) { + + secret_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.DeleteRobotPartSecretRequest.secret_id) +} +inline std::string* DeleteRobotPartSecretRequest::mutable_secret_id() { + std::string* _s = _internal_mutable_secret_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.DeleteRobotPartSecretRequest.secret_id) + return _s; +} +inline const std::string& DeleteRobotPartSecretRequest::_internal_secret_id() const { + return secret_id_.Get(); +} +inline void DeleteRobotPartSecretRequest::_internal_set_secret_id(const std::string& value) { + + secret_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* DeleteRobotPartSecretRequest::_internal_mutable_secret_id() { + + return secret_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* DeleteRobotPartSecretRequest::release_secret_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.DeleteRobotPartSecretRequest.secret_id) + return secret_id_.Release(); +} +inline void DeleteRobotPartSecretRequest::set_allocated_secret_id(std::string* secret_id) { + if (secret_id != nullptr) { + + } else { + } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + secret_id_.SetAllocated(secret_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (secret_id_.IsDefault()) { + secret_id_.Set("", GetArenaForAllocation()); } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.DeleteRobotPartSecretRequest.secret_id) } -inline ::viam::app::v1::RobotPart* UpdateRobotPartResponse::unsafe_arena_release_part() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.UpdateRobotPartResponse.part) - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::RobotPart* temp = _impl_.part_; - _impl_.part_ = nullptr; - return temp; +// ------------------------------------------------------------------- + +// DeleteRobotPartSecretResponse + +// ------------------------------------------------------------------- + +// Authorization + +// string authorization_type = 1 [json_name = "authorizationType"]; +inline void Authorization::clear_authorization_type() { + authorization_type_.ClearToEmpty(); } -inline ::viam::app::v1::RobotPart* UpdateRobotPartResponse::_internal_mutable_part() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.part_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::RobotPart>(GetArena()); - _impl_.part_ = reinterpret_cast<::viam::app::v1::RobotPart*>(p); - } - return _impl_.part_; +inline const std::string& Authorization::authorization_type() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Authorization.authorization_type) + return _internal_authorization_type(); } -inline ::viam::app::v1::RobotPart* UpdateRobotPartResponse::mutable_part() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::viam::app::v1::RobotPart* _msg = _internal_mutable_part(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateRobotPartResponse.part) - return _msg; +template +inline PROTOBUF_ALWAYS_INLINE +void Authorization::set_authorization_type(ArgT0&& arg0, ArgT... args) { + + authorization_type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.Authorization.authorization_type) } -inline void UpdateRobotPartResponse::set_allocated_part(::viam::app::v1::RobotPart* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::RobotPart*>(_impl_.part_); +inline std::string* Authorization::mutable_authorization_type() { + std::string* _s = _internal_mutable_authorization_type(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Authorization.authorization_type) + return _s; +} +inline const std::string& Authorization::_internal_authorization_type() const { + return authorization_type_.Get(); +} +inline void Authorization::_internal_set_authorization_type(const std::string& value) { + + authorization_type_.Set(value, GetArenaForAllocation()); +} +inline std::string* Authorization::_internal_mutable_authorization_type() { + + return authorization_type_.Mutable(GetArenaForAllocation()); +} +inline std::string* Authorization::release_authorization_type() { + // @@protoc_insertion_point(field_release:viam.app.v1.Authorization.authorization_type) + return authorization_type_.Release(); +} +inline void Authorization::set_allocated_authorization_type(std::string* authorization_type) { + if (authorization_type != nullptr) { + + } else { + } + authorization_type_.SetAllocated(authorization_type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (authorization_type_.IsDefault()) { + authorization_type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Authorization.authorization_type) +} - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::RobotPart*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; +// string authorization_id = 2 [json_name = "authorizationId"]; +inline void Authorization::clear_authorization_id() { + authorization_id_.ClearToEmpty(); +} +inline const std::string& Authorization::authorization_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Authorization.authorization_id) + return _internal_authorization_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Authorization::set_authorization_id(ArgT0&& arg0, ArgT... args) { + + authorization_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.Authorization.authorization_id) +} +inline std::string* Authorization::mutable_authorization_id() { + std::string* _s = _internal_mutable_authorization_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Authorization.authorization_id) + return _s; +} +inline const std::string& Authorization::_internal_authorization_id() const { + return authorization_id_.Get(); +} +inline void Authorization::_internal_set_authorization_id(const std::string& value) { + + authorization_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* Authorization::_internal_mutable_authorization_id() { + + return authorization_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* Authorization::release_authorization_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.Authorization.authorization_id) + return authorization_id_.Release(); +} +inline void Authorization::set_allocated_authorization_id(std::string* authorization_id) { + if (authorization_id != nullptr) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.part_ = reinterpret_cast<::viam::app::v1::RobotPart*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateRobotPartResponse.part) + authorization_id_.SetAllocated(authorization_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (authorization_id_.IsDefault()) { + authorization_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Authorization.authorization_id) } -// ------------------------------------------------------------------- - -// NewRobotPartRequest - -// string robot_id = 1 [json_name = "robotId"]; -inline void NewRobotPartRequest::clear_robot_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.robot_id_.ClearToEmpty(); +// string resource_type = 3 [json_name = "resourceType"]; +inline void Authorization::clear_resource_type() { + resource_type_.ClearToEmpty(); } -inline const std::string& NewRobotPartRequest::robot_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.NewRobotPartRequest.robot_id) - return _internal_robot_id(); +inline const std::string& Authorization::resource_type() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Authorization.resource_type) + return _internal_resource_type(); } -template -inline PROTOBUF_ALWAYS_INLINE void NewRobotPartRequest::set_robot_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.robot_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.NewRobotPartRequest.robot_id) +template +inline PROTOBUF_ALWAYS_INLINE +void Authorization::set_resource_type(ArgT0&& arg0, ArgT... args) { + + resource_type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.Authorization.resource_type) } -inline std::string* NewRobotPartRequest::mutable_robot_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_robot_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.NewRobotPartRequest.robot_id) +inline std::string* Authorization::mutable_resource_type() { + std::string* _s = _internal_mutable_resource_type(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Authorization.resource_type) return _s; } -inline const std::string& NewRobotPartRequest::_internal_robot_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.robot_id_.Get(); +inline const std::string& Authorization::_internal_resource_type() const { + return resource_type_.Get(); } -inline void NewRobotPartRequest::_internal_set_robot_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.robot_id_.Set(value, GetArena()); +inline void Authorization::_internal_set_resource_type(const std::string& value) { + + resource_type_.Set(value, GetArenaForAllocation()); } -inline std::string* NewRobotPartRequest::_internal_mutable_robot_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.robot_id_.Mutable( GetArena()); +inline std::string* Authorization::_internal_mutable_resource_type() { + + return resource_type_.Mutable(GetArenaForAllocation()); } -inline std::string* NewRobotPartRequest::release_robot_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.NewRobotPartRequest.robot_id) - return _impl_.robot_id_.Release(); -} -inline void NewRobotPartRequest::set_allocated_robot_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.robot_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.robot_id_.IsDefault()) { - _impl_.robot_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.NewRobotPartRequest.robot_id) +inline std::string* Authorization::release_resource_type() { + // @@protoc_insertion_point(field_release:viam.app.v1.Authorization.resource_type) + return resource_type_.Release(); +} +inline void Authorization::set_allocated_resource_type(std::string* resource_type) { + if (resource_type != nullptr) { + + } else { + + } + resource_type_.SetAllocated(resource_type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (resource_type_.IsDefault()) { + resource_type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Authorization.resource_type) } -// string part_name = 2 [json_name = "partName"]; -inline void NewRobotPartRequest::clear_part_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.part_name_.ClearToEmpty(); +// string resource_id = 4 [json_name = "resourceId"]; +inline void Authorization::clear_resource_id() { + resource_id_.ClearToEmpty(); } -inline const std::string& NewRobotPartRequest::part_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.NewRobotPartRequest.part_name) - return _internal_part_name(); +inline const std::string& Authorization::resource_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Authorization.resource_id) + return _internal_resource_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void NewRobotPartRequest::set_part_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.part_name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.NewRobotPartRequest.part_name) +template +inline PROTOBUF_ALWAYS_INLINE +void Authorization::set_resource_id(ArgT0&& arg0, ArgT... args) { + + resource_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.Authorization.resource_id) } -inline std::string* NewRobotPartRequest::mutable_part_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_part_name(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.NewRobotPartRequest.part_name) +inline std::string* Authorization::mutable_resource_id() { + std::string* _s = _internal_mutable_resource_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Authorization.resource_id) return _s; } -inline const std::string& NewRobotPartRequest::_internal_part_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.part_name_.Get(); +inline const std::string& Authorization::_internal_resource_id() const { + return resource_id_.Get(); } -inline void NewRobotPartRequest::_internal_set_part_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.part_name_.Set(value, GetArena()); +inline void Authorization::_internal_set_resource_id(const std::string& value) { + + resource_id_.Set(value, GetArenaForAllocation()); } -inline std::string* NewRobotPartRequest::_internal_mutable_part_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.part_name_.Mutable( GetArena()); +inline std::string* Authorization::_internal_mutable_resource_id() { + + return resource_id_.Mutable(GetArenaForAllocation()); } -inline std::string* NewRobotPartRequest::release_part_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.NewRobotPartRequest.part_name) - return _impl_.part_name_.Release(); -} -inline void NewRobotPartRequest::set_allocated_part_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.part_name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.part_name_.IsDefault()) { - _impl_.part_name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.NewRobotPartRequest.part_name) +inline std::string* Authorization::release_resource_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.Authorization.resource_id) + return resource_id_.Release(); +} +inline void Authorization::set_allocated_resource_id(std::string* resource_id) { + if (resource_id != nullptr) { + + } else { + + } + resource_id_.SetAllocated(resource_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (resource_id_.IsDefault()) { + resource_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Authorization.resource_id) } -// ------------------------------------------------------------------- - -// NewRobotPartResponse - -// string part_id = 1 [json_name = "partId"]; -inline void NewRobotPartResponse::clear_part_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.part_id_.ClearToEmpty(); +// string identity_id = 5 [json_name = "identityId"]; +inline void Authorization::clear_identity_id() { + identity_id_.ClearToEmpty(); } -inline const std::string& NewRobotPartResponse::part_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.NewRobotPartResponse.part_id) - return _internal_part_id(); +inline const std::string& Authorization::identity_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Authorization.identity_id) + return _internal_identity_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void NewRobotPartResponse::set_part_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.part_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.NewRobotPartResponse.part_id) +template +inline PROTOBUF_ALWAYS_INLINE +void Authorization::set_identity_id(ArgT0&& arg0, ArgT... args) { + + identity_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.Authorization.identity_id) } -inline std::string* NewRobotPartResponse::mutable_part_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_part_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.NewRobotPartResponse.part_id) +inline std::string* Authorization::mutable_identity_id() { + std::string* _s = _internal_mutable_identity_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Authorization.identity_id) return _s; } -inline const std::string& NewRobotPartResponse::_internal_part_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.part_id_.Get(); +inline const std::string& Authorization::_internal_identity_id() const { + return identity_id_.Get(); } -inline void NewRobotPartResponse::_internal_set_part_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.part_id_.Set(value, GetArena()); +inline void Authorization::_internal_set_identity_id(const std::string& value) { + + identity_id_.Set(value, GetArenaForAllocation()); } -inline std::string* NewRobotPartResponse::_internal_mutable_part_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.part_id_.Mutable( GetArena()); +inline std::string* Authorization::_internal_mutable_identity_id() { + + return identity_id_.Mutable(GetArenaForAllocation()); } -inline std::string* NewRobotPartResponse::release_part_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.NewRobotPartResponse.part_id) - return _impl_.part_id_.Release(); -} -inline void NewRobotPartResponse::set_allocated_part_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.part_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.part_id_.IsDefault()) { - _impl_.part_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.NewRobotPartResponse.part_id) +inline std::string* Authorization::release_identity_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.Authorization.identity_id) + return identity_id_.Release(); +} +inline void Authorization::set_allocated_identity_id(std::string* identity_id) { + if (identity_id != nullptr) { + + } else { + + } + identity_id_.SetAllocated(identity_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (identity_id_.IsDefault()) { + identity_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Authorization.identity_id) } -// ------------------------------------------------------------------- - -// DeleteRobotPartRequest - -// string part_id = 1 [json_name = "partId"]; -inline void DeleteRobotPartRequest::clear_part_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.part_id_.ClearToEmpty(); +// string organization_id = 6 [json_name = "organizationId"]; +inline void Authorization::clear_organization_id() { + organization_id_.ClearToEmpty(); } -inline const std::string& DeleteRobotPartRequest::part_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.DeleteRobotPartRequest.part_id) - return _internal_part_id(); +inline const std::string& Authorization::organization_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Authorization.organization_id) + return _internal_organization_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void DeleteRobotPartRequest::set_part_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.part_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.DeleteRobotPartRequest.part_id) +template +inline PROTOBUF_ALWAYS_INLINE +void Authorization::set_organization_id(ArgT0&& arg0, ArgT... args) { + + organization_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.Authorization.organization_id) } -inline std::string* DeleteRobotPartRequest::mutable_part_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_part_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.DeleteRobotPartRequest.part_id) +inline std::string* Authorization::mutable_organization_id() { + std::string* _s = _internal_mutable_organization_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Authorization.organization_id) return _s; } -inline const std::string& DeleteRobotPartRequest::_internal_part_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.part_id_.Get(); +inline const std::string& Authorization::_internal_organization_id() const { + return organization_id_.Get(); } -inline void DeleteRobotPartRequest::_internal_set_part_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.part_id_.Set(value, GetArena()); +inline void Authorization::_internal_set_organization_id(const std::string& value) { + + organization_id_.Set(value, GetArenaForAllocation()); } -inline std::string* DeleteRobotPartRequest::_internal_mutable_part_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.part_id_.Mutable( GetArena()); +inline std::string* Authorization::_internal_mutable_organization_id() { + + return organization_id_.Mutable(GetArenaForAllocation()); } -inline std::string* DeleteRobotPartRequest::release_part_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.DeleteRobotPartRequest.part_id) - return _impl_.part_id_.Release(); -} -inline void DeleteRobotPartRequest::set_allocated_part_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.part_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.part_id_.IsDefault()) { - _impl_.part_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.DeleteRobotPartRequest.part_id) +inline std::string* Authorization::release_organization_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.Authorization.organization_id) + return organization_id_.Release(); +} +inline void Authorization::set_allocated_organization_id(std::string* organization_id) { + if (organization_id != nullptr) { + + } else { + + } + organization_id_.SetAllocated(organization_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (organization_id_.IsDefault()) { + organization_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Authorization.organization_id) } -// ------------------------------------------------------------------- - -// GetRobotAPIKeysRequest - -// string robot_id = 1 [json_name = "robotId"]; -inline void GetRobotAPIKeysRequest::clear_robot_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.robot_id_.ClearToEmpty(); +// string identity_type = 7 [json_name = "identityType"]; +inline void Authorization::clear_identity_type() { + identity_type_.ClearToEmpty(); } -inline const std::string& GetRobotAPIKeysRequest::robot_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotAPIKeysRequest.robot_id) - return _internal_robot_id(); +inline const std::string& Authorization::identity_type() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Authorization.identity_type) + return _internal_identity_type(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetRobotAPIKeysRequest::set_robot_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.robot_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.GetRobotAPIKeysRequest.robot_id) +template +inline PROTOBUF_ALWAYS_INLINE +void Authorization::set_identity_type(ArgT0&& arg0, ArgT... args) { + + identity_type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.Authorization.identity_type) } -inline std::string* GetRobotAPIKeysRequest::mutable_robot_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_robot_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRobotAPIKeysRequest.robot_id) +inline std::string* Authorization::mutable_identity_type() { + std::string* _s = _internal_mutable_identity_type(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Authorization.identity_type) return _s; } -inline const std::string& GetRobotAPIKeysRequest::_internal_robot_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.robot_id_.Get(); +inline const std::string& Authorization::_internal_identity_type() const { + return identity_type_.Get(); } -inline void GetRobotAPIKeysRequest::_internal_set_robot_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.robot_id_.Set(value, GetArena()); +inline void Authorization::_internal_set_identity_type(const std::string& value) { + + identity_type_.Set(value, GetArenaForAllocation()); } -inline std::string* GetRobotAPIKeysRequest::_internal_mutable_robot_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.robot_id_.Mutable( GetArena()); +inline std::string* Authorization::_internal_mutable_identity_type() { + + return identity_type_.Mutable(GetArenaForAllocation()); } -inline std::string* GetRobotAPIKeysRequest::release_robot_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.GetRobotAPIKeysRequest.robot_id) - return _impl_.robot_id_.Release(); -} -inline void GetRobotAPIKeysRequest::set_allocated_robot_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.robot_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.robot_id_.IsDefault()) { - _impl_.robot_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetRobotAPIKeysRequest.robot_id) +inline std::string* Authorization::release_identity_type() { + // @@protoc_insertion_point(field_release:viam.app.v1.Authorization.identity_type) + return identity_type_.Release(); +} +inline void Authorization::set_allocated_identity_type(std::string* identity_type) { + if (identity_type != nullptr) { + + } else { + + } + identity_type_.SetAllocated(identity_type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (identity_type_.IsDefault()) { + identity_type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Authorization.identity_type) } // ------------------------------------------------------------------- -// APIKey +// AddRoleRequest -// string id = 1 [json_name = "id"]; -inline void APIKey::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); +// .viam.app.v1.Authorization authorization = 1 [json_name = "authorization"]; +inline bool AddRoleRequest::_internal_has_authorization() const { + return this != internal_default_instance() && authorization_ != nullptr; } -inline const std::string& APIKey::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.APIKey.id) - return _internal_id(); +inline bool AddRoleRequest::has_authorization() const { + return _internal_has_authorization(); } -template -inline PROTOBUF_ALWAYS_INLINE void APIKey::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.APIKey.id) +inline void AddRoleRequest::clear_authorization() { + if (GetArenaForAllocation() == nullptr && authorization_ != nullptr) { + delete authorization_; + } + authorization_ = nullptr; } -inline std::string* APIKey::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.APIKey.id) - return _s; +inline const ::viam::app::v1::Authorization& AddRoleRequest::_internal_authorization() const { + const ::viam::app::v1::Authorization* p = authorization_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_Authorization_default_instance_); } -inline const std::string& APIKey::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); +inline const ::viam::app::v1::Authorization& AddRoleRequest::authorization() const { + // @@protoc_insertion_point(field_get:viam.app.v1.AddRoleRequest.authorization) + return _internal_authorization(); } -inline void APIKey::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); +inline void AddRoleRequest::unsafe_arena_set_allocated_authorization( + ::viam::app::v1::Authorization* authorization) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(authorization_); + } + authorization_ = authorization; + if (authorization) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.AddRoleRequest.authorization) } -inline std::string* APIKey::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); +inline ::viam::app::v1::Authorization* AddRoleRequest::release_authorization() { + + ::viam::app::v1::Authorization* temp = authorization_; + authorization_ = 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 std::string* APIKey::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.APIKey.id) - return _impl_.id_.Release(); -} -inline void APIKey::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.APIKey.id) +inline ::viam::app::v1::Authorization* AddRoleRequest::unsafe_arena_release_authorization() { + // @@protoc_insertion_point(field_release:viam.app.v1.AddRoleRequest.authorization) + + ::viam::app::v1::Authorization* temp = authorization_; + authorization_ = nullptr; + return temp; } - -// string key = 2 [json_name = "key"]; -inline void APIKey::clear_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.key_.ClearToEmpty(); +inline ::viam::app::v1::Authorization* AddRoleRequest::_internal_mutable_authorization() { + + if (authorization_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::Authorization>(GetArenaForAllocation()); + authorization_ = p; + } + return authorization_; } -inline const std::string& APIKey::key() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.APIKey.key) - return _internal_key(); +inline ::viam::app::v1::Authorization* AddRoleRequest::mutable_authorization() { + ::viam::app::v1::Authorization* _msg = _internal_mutable_authorization(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.AddRoleRequest.authorization) + return _msg; } -template -inline PROTOBUF_ALWAYS_INLINE void APIKey::set_key(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.key_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.APIKey.key) +inline void AddRoleRequest::set_allocated_authorization(::viam::app::v1::Authorization* authorization) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete authorization_; + } + if (authorization) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(authorization); + if (message_arena != submessage_arena) { + authorization = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, authorization, submessage_arena); + } + + } else { + + } + authorization_ = authorization; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.AddRoleRequest.authorization) } -inline std::string* APIKey::mutable_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_key(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.APIKey.key) - return _s; + +// ------------------------------------------------------------------- + +// AddRoleResponse + +// ------------------------------------------------------------------- + +// RemoveRoleRequest + +// .viam.app.v1.Authorization authorization = 1 [json_name = "authorization"]; +inline bool RemoveRoleRequest::_internal_has_authorization() const { + return this != internal_default_instance() && authorization_ != nullptr; } -inline const std::string& APIKey::_internal_key() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.key_.Get(); +inline bool RemoveRoleRequest::has_authorization() const { + return _internal_has_authorization(); } -inline void APIKey::_internal_set_key(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.key_.Set(value, GetArena()); +inline void RemoveRoleRequest::clear_authorization() { + if (GetArenaForAllocation() == nullptr && authorization_ != nullptr) { + delete authorization_; + } + authorization_ = nullptr; } -inline std::string* APIKey::_internal_mutable_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.key_.Mutable( GetArena()); +inline const ::viam::app::v1::Authorization& RemoveRoleRequest::_internal_authorization() const { + const ::viam::app::v1::Authorization* p = authorization_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_Authorization_default_instance_); } -inline std::string* APIKey::release_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.APIKey.key) - return _impl_.key_.Release(); -} -inline void APIKey::set_allocated_key(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.key_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.key_.IsDefault()) { - _impl_.key_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.APIKey.key) +inline const ::viam::app::v1::Authorization& RemoveRoleRequest::authorization() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RemoveRoleRequest.authorization) + return _internal_authorization(); } - -// string name = 3 [json_name = "name"]; -inline void APIKey::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); +inline void RemoveRoleRequest::unsafe_arena_set_allocated_authorization( + ::viam::app::v1::Authorization* authorization) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(authorization_); + } + authorization_ = authorization; + if (authorization) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.RemoveRoleRequest.authorization) } -inline const std::string& APIKey::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.APIKey.name) - return _internal_name(); +inline ::viam::app::v1::Authorization* RemoveRoleRequest::release_authorization() { + + ::viam::app::v1::Authorization* temp = authorization_; + authorization_ = 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; } -template -inline PROTOBUF_ALWAYS_INLINE void APIKey::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.APIKey.name) +inline ::viam::app::v1::Authorization* RemoveRoleRequest::unsafe_arena_release_authorization() { + // @@protoc_insertion_point(field_release:viam.app.v1.RemoveRoleRequest.authorization) + + ::viam::app::v1::Authorization* temp = authorization_; + authorization_ = nullptr; + return temp; } -inline std::string* APIKey::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.APIKey.name) - return _s; +inline ::viam::app::v1::Authorization* RemoveRoleRequest::_internal_mutable_authorization() { + + if (authorization_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::Authorization>(GetArenaForAllocation()); + authorization_ = p; + } + return authorization_; } -inline const std::string& APIKey::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); +inline ::viam::app::v1::Authorization* RemoveRoleRequest::mutable_authorization() { + ::viam::app::v1::Authorization* _msg = _internal_mutable_authorization(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RemoveRoleRequest.authorization) + return _msg; } -inline void APIKey::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); +inline void RemoveRoleRequest::set_allocated_authorization(::viam::app::v1::Authorization* authorization) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete authorization_; + } + if (authorization) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(authorization); + if (message_arena != submessage_arena) { + authorization = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, authorization, submessage_arena); + } + + } else { + + } + authorization_ = authorization; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RemoveRoleRequest.authorization) } -inline std::string* APIKey::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + +// ------------------------------------------------------------------- + +// RemoveRoleResponse + +// ------------------------------------------------------------------- + +// ChangeRoleRequest + +// .viam.app.v1.Authorization old_authorization = 1 [json_name = "oldAuthorization"]; +inline bool ChangeRoleRequest::_internal_has_old_authorization() const { + return this != internal_default_instance() && old_authorization_ != nullptr; } -inline std::string* APIKey::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.APIKey.name) - return _impl_.name_.Release(); -} -inline void APIKey::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.APIKey.name) +inline bool ChangeRoleRequest::has_old_authorization() const { + return _internal_has_old_authorization(); } - -// .google.protobuf.Timestamp created_on = 4 [json_name = "createdOn"]; -inline bool APIKey::has_created_on() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.created_on_ != nullptr); - return value; +inline void ChangeRoleRequest::clear_old_authorization() { + if (GetArenaForAllocation() == nullptr && old_authorization_ != nullptr) { + delete old_authorization_; + } + old_authorization_ = nullptr; } -inline const ::google::protobuf::Timestamp& APIKey::_internal_created_on() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Timestamp* p = _impl_.created_on_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); +inline const ::viam::app::v1::Authorization& ChangeRoleRequest::_internal_old_authorization() const { + const ::viam::app::v1::Authorization* p = old_authorization_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_Authorization_default_instance_); } -inline const ::google::protobuf::Timestamp& APIKey::created_on() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.APIKey.created_on) - return _internal_created_on(); +inline const ::viam::app::v1::Authorization& ChangeRoleRequest::old_authorization() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ChangeRoleRequest.old_authorization) + return _internal_old_authorization(); } -inline void APIKey::unsafe_arena_set_allocated_created_on(::google::protobuf::Timestamp* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.created_on_); +inline void ChangeRoleRequest::unsafe_arena_set_allocated_old_authorization( + ::viam::app::v1::Authorization* old_authorization) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(old_authorization_); } - _impl_.created_on_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + old_authorization_ = old_authorization; + if (old_authorization) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.APIKey.created_on) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.ChangeRoleRequest.old_authorization) } -inline ::google::protobuf::Timestamp* APIKey::release_created_on() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Timestamp* released = _impl_.created_on_; - _impl_.created_on_ = nullptr; +inline ::viam::app::v1::Authorization* ChangeRoleRequest::release_old_authorization() { + + ::viam::app::v1::Authorization* temp = old_authorization_; + old_authorization_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Timestamp* APIKey::unsafe_arena_release_created_on() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.APIKey.created_on) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Timestamp* temp = _impl_.created_on_; - _impl_.created_on_ = nullptr; +inline ::viam::app::v1::Authorization* ChangeRoleRequest::unsafe_arena_release_old_authorization() { + // @@protoc_insertion_point(field_release:viam.app.v1.ChangeRoleRequest.old_authorization) + + ::viam::app::v1::Authorization* temp = old_authorization_; + old_authorization_ = nullptr; return temp; } -inline ::google::protobuf::Timestamp* APIKey::_internal_mutable_created_on() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.created_on_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena()); - _impl_.created_on_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); +inline ::viam::app::v1::Authorization* ChangeRoleRequest::_internal_mutable_old_authorization() { + + if (old_authorization_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::Authorization>(GetArenaForAllocation()); + old_authorization_ = p; } - return _impl_.created_on_; + return old_authorization_; } -inline ::google::protobuf::Timestamp* APIKey::mutable_created_on() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Timestamp* _msg = _internal_mutable_created_on(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.APIKey.created_on) +inline ::viam::app::v1::Authorization* ChangeRoleRequest::mutable_old_authorization() { + ::viam::app::v1::Authorization* _msg = _internal_mutable_old_authorization(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ChangeRoleRequest.old_authorization) return _msg; } -inline void APIKey::set_allocated_created_on(::google::protobuf::Timestamp* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ChangeRoleRequest::set_allocated_old_authorization(::viam::app::v1::Authorization* old_authorization) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.created_on_); + delete old_authorization_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (old_authorization) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(old_authorization); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + old_authorization = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, old_authorization, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.created_on_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.APIKey.created_on) + old_authorization_ = old_authorization; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ChangeRoleRequest.old_authorization) } -// ------------------------------------------------------------------- - -// GetRobotAPIKeysResponse - -// repeated .viam.app.v1.APIKeyWithAuthorizations api_keys = 1 [json_name = "apiKeys"]; -inline int GetRobotAPIKeysResponse::_internal_api_keys_size() const { - return _internal_api_keys().size(); +// .viam.app.v1.Authorization new_authorization = 2 [json_name = "newAuthorization"]; +inline bool ChangeRoleRequest::_internal_has_new_authorization() const { + return this != internal_default_instance() && new_authorization_ != nullptr; } -inline int GetRobotAPIKeysResponse::api_keys_size() const { - return _internal_api_keys_size(); +inline bool ChangeRoleRequest::has_new_authorization() const { + return _internal_has_new_authorization(); } -inline void GetRobotAPIKeysResponse::clear_api_keys() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.api_keys_.Clear(); +inline void ChangeRoleRequest::clear_new_authorization() { + if (GetArenaForAllocation() == nullptr && new_authorization_ != nullptr) { + delete new_authorization_; + } + new_authorization_ = nullptr; } -inline ::viam::app::v1::APIKeyWithAuthorizations* GetRobotAPIKeysResponse::mutable_api_keys(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRobotAPIKeysResponse.api_keys) - return _internal_mutable_api_keys()->Mutable(index); +inline const ::viam::app::v1::Authorization& ChangeRoleRequest::_internal_new_authorization() const { + const ::viam::app::v1::Authorization* p = new_authorization_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_Authorization_default_instance_); } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::APIKeyWithAuthorizations>* GetRobotAPIKeysResponse::mutable_api_keys() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.GetRobotAPIKeysResponse.api_keys) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_api_keys(); +inline const ::viam::app::v1::Authorization& ChangeRoleRequest::new_authorization() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ChangeRoleRequest.new_authorization) + return _internal_new_authorization(); } -inline const ::viam::app::v1::APIKeyWithAuthorizations& GetRobotAPIKeysResponse::api_keys(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.GetRobotAPIKeysResponse.api_keys) - return _internal_api_keys().Get(index); +inline void ChangeRoleRequest::unsafe_arena_set_allocated_new_authorization( + ::viam::app::v1::Authorization* new_authorization) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(new_authorization_); + } + new_authorization_ = new_authorization; + if (new_authorization) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.ChangeRoleRequest.new_authorization) } -inline ::viam::app::v1::APIKeyWithAuthorizations* GetRobotAPIKeysResponse::add_api_keys() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::APIKeyWithAuthorizations* _add = _internal_mutable_api_keys()->Add(); - // @@protoc_insertion_point(field_add:viam.app.v1.GetRobotAPIKeysResponse.api_keys) - return _add; +inline ::viam::app::v1::Authorization* ChangeRoleRequest::release_new_authorization() { + + ::viam::app::v1::Authorization* temp = new_authorization_; + new_authorization_ = 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 const ::google::protobuf::RepeatedPtrField<::viam::app::v1::APIKeyWithAuthorizations>& GetRobotAPIKeysResponse::api_keys() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:viam.app.v1.GetRobotAPIKeysResponse.api_keys) - return _internal_api_keys(); +inline ::viam::app::v1::Authorization* ChangeRoleRequest::unsafe_arena_release_new_authorization() { + // @@protoc_insertion_point(field_release:viam.app.v1.ChangeRoleRequest.new_authorization) + + ::viam::app::v1::Authorization* temp = new_authorization_; + new_authorization_ = nullptr; + return temp; +} +inline ::viam::app::v1::Authorization* ChangeRoleRequest::_internal_mutable_new_authorization() { + + if (new_authorization_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::Authorization>(GetArenaForAllocation()); + new_authorization_ = p; + } + return new_authorization_; } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::APIKeyWithAuthorizations>& -GetRobotAPIKeysResponse::_internal_api_keys() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.api_keys_; +inline ::viam::app::v1::Authorization* ChangeRoleRequest::mutable_new_authorization() { + ::viam::app::v1::Authorization* _msg = _internal_mutable_new_authorization(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ChangeRoleRequest.new_authorization) + return _msg; } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::APIKeyWithAuthorizations>* -GetRobotAPIKeysResponse::_internal_mutable_api_keys() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.api_keys_; +inline void ChangeRoleRequest::set_allocated_new_authorization(::viam::app::v1::Authorization* new_authorization) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete new_authorization_; + } + if (new_authorization) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(new_authorization); + if (message_arena != submessage_arena) { + new_authorization = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, new_authorization, submessage_arena); + } + + } else { + + } + new_authorization_ = new_authorization; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ChangeRoleRequest.new_authorization) } // ------------------------------------------------------------------- -// DeleteRobotPartResponse +// ChangeRoleResponse // ------------------------------------------------------------------- -// Fragment +// ListAuthorizationsRequest -// string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""]; -inline void Fragment::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); +// string organization_id = 1 [json_name = "organizationId"]; +inline void ListAuthorizationsRequest::clear_organization_id() { + organization_id_.ClearToEmpty(); } -inline const std::string& Fragment::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.Fragment.id) - return _internal_id(); +inline const std::string& ListAuthorizationsRequest::organization_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ListAuthorizationsRequest.organization_id) + return _internal_organization_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void Fragment::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.Fragment.id) +template +inline PROTOBUF_ALWAYS_INLINE +void ListAuthorizationsRequest::set_organization_id(ArgT0&& arg0, ArgT... args) { + + organization_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.ListAuthorizationsRequest.organization_id) } -inline std::string* Fragment::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.Fragment.id) +inline std::string* ListAuthorizationsRequest::mutable_organization_id() { + std::string* _s = _internal_mutable_organization_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ListAuthorizationsRequest.organization_id) return _s; } -inline const std::string& Fragment::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); +inline const std::string& ListAuthorizationsRequest::_internal_organization_id() const { + return organization_id_.Get(); } -inline void Fragment::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); +inline void ListAuthorizationsRequest::_internal_set_organization_id(const std::string& value) { + + organization_id_.Set(value, GetArenaForAllocation()); } -inline std::string* Fragment::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); +inline std::string* ListAuthorizationsRequest::_internal_mutable_organization_id() { + + return organization_id_.Mutable(GetArenaForAllocation()); } -inline std::string* Fragment::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.Fragment.id) - return _impl_.id_.Release(); -} -inline void Fragment::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Fragment.id) +inline std::string* ListAuthorizationsRequest::release_organization_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.ListAuthorizationsRequest.organization_id) + return organization_id_.Release(); +} +inline void ListAuthorizationsRequest::set_allocated_organization_id(std::string* organization_id) { + if (organization_id != nullptr) { + + } else { + + } + organization_id_.SetAllocated(organization_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (organization_id_.IsDefault()) { + organization_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ListAuthorizationsRequest.organization_id) } -// string name = 2 [json_name = "name", (.tagger.v1.tags) = "bson:\"name\" json:\"name\""]; -inline void Fragment::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); +// repeated string resource_ids = 2 [json_name = "resourceIds"]; +inline int ListAuthorizationsRequest::_internal_resource_ids_size() const { + return resource_ids_.size(); } -inline const std::string& Fragment::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.Fragment.name) - return _internal_name(); +inline int ListAuthorizationsRequest::resource_ids_size() const { + return _internal_resource_ids_size(); } -template -inline PROTOBUF_ALWAYS_INLINE void Fragment::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.Fragment.name) +inline void ListAuthorizationsRequest::clear_resource_ids() { + resource_ids_.Clear(); } -inline std::string* Fragment::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.Fragment.name) +inline std::string* ListAuthorizationsRequest::add_resource_ids() { + std::string* _s = _internal_add_resource_ids(); + // @@protoc_insertion_point(field_add_mutable:viam.app.v1.ListAuthorizationsRequest.resource_ids) return _s; } -inline const std::string& Fragment::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); +inline const std::string& ListAuthorizationsRequest::_internal_resource_ids(int index) const { + return resource_ids_.Get(index); } -inline void Fragment::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); +inline const std::string& ListAuthorizationsRequest::resource_ids(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.ListAuthorizationsRequest.resource_ids) + return _internal_resource_ids(index); } -inline std::string* Fragment::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); +inline std::string* ListAuthorizationsRequest::mutable_resource_ids(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.ListAuthorizationsRequest.resource_ids) + return resource_ids_.Mutable(index); } -inline std::string* Fragment::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.Fragment.name) - return _impl_.name_.Release(); -} -inline void Fragment::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Fragment.name) +inline void ListAuthorizationsRequest::set_resource_ids(int index, const std::string& value) { + resource_ids_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:viam.app.v1.ListAuthorizationsRequest.resource_ids) } - -// .google.protobuf.Struct fragment = 3 [json_name = "fragment", (.tagger.v1.tags) = "bson:\"fragment\" json:\"fragment\""]; -inline bool Fragment::has_fragment() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.fragment_ != nullptr); - return value; +inline void ListAuthorizationsRequest::set_resource_ids(int index, std::string&& value) { + resource_ids_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:viam.app.v1.ListAuthorizationsRequest.resource_ids) } -inline const ::google::protobuf::Struct& Fragment::_internal_fragment() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.fragment_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline void ListAuthorizationsRequest::set_resource_ids(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + resource_ids_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:viam.app.v1.ListAuthorizationsRequest.resource_ids) } -inline const ::google::protobuf::Struct& Fragment::fragment() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.Fragment.fragment) - return _internal_fragment(); +inline void ListAuthorizationsRequest::set_resource_ids(int index, const char* value, size_t size) { + resource_ids_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:viam.app.v1.ListAuthorizationsRequest.resource_ids) } -inline void Fragment::unsafe_arena_set_allocated_fragment(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.fragment_); - } - _impl_.fragment_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.Fragment.fragment) +inline std::string* ListAuthorizationsRequest::_internal_add_resource_ids() { + return resource_ids_.Add(); } -inline ::google::protobuf::Struct* Fragment::release_fragment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.fragment_; - _impl_.fragment_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; +inline void ListAuthorizationsRequest::add_resource_ids(const std::string& value) { + resource_ids_.Add()->assign(value); + // @@protoc_insertion_point(field_add:viam.app.v1.ListAuthorizationsRequest.resource_ids) +} +inline void ListAuthorizationsRequest::add_resource_ids(std::string&& value) { + resource_ids_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:viam.app.v1.ListAuthorizationsRequest.resource_ids) +} +inline void ListAuthorizationsRequest::add_resource_ids(const char* value) { + GOOGLE_DCHECK(value != nullptr); + resource_ids_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:viam.app.v1.ListAuthorizationsRequest.resource_ids) +} +inline void ListAuthorizationsRequest::add_resource_ids(const char* value, size_t size) { + resource_ids_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:viam.app.v1.ListAuthorizationsRequest.resource_ids) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +ListAuthorizationsRequest::resource_ids() const { + // @@protoc_insertion_point(field_list:viam.app.v1.ListAuthorizationsRequest.resource_ids) + return resource_ids_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +ListAuthorizationsRequest::mutable_resource_ids() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ListAuthorizationsRequest.resource_ids) + return &resource_ids_; } -inline ::google::protobuf::Struct* Fragment::unsafe_arena_release_fragment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.Fragment.fragment) - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.fragment_; - _impl_.fragment_ = nullptr; - return temp; +// ------------------------------------------------------------------- + +// ListAuthorizationsResponse + +// repeated .viam.app.v1.Authorization authorizations = 1 [json_name = "authorizations"]; +inline int ListAuthorizationsResponse::_internal_authorizations_size() const { + return authorizations_.size(); } -inline ::google::protobuf::Struct* Fragment::_internal_mutable_fragment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.fragment_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.fragment_ = reinterpret_cast<::google::protobuf::Struct*>(p); - } - return _impl_.fragment_; +inline int ListAuthorizationsResponse::authorizations_size() const { + return _internal_authorizations_size(); } -inline ::google::protobuf::Struct* Fragment::mutable_fragment() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_fragment(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.Fragment.fragment) - return _msg; +inline void ListAuthorizationsResponse::clear_authorizations() { + authorizations_.Clear(); +} +inline ::viam::app::v1::Authorization* ListAuthorizationsResponse::mutable_authorizations(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.ListAuthorizationsResponse.authorizations) + return authorizations_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Authorization >* +ListAuthorizationsResponse::mutable_authorizations() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ListAuthorizationsResponse.authorizations) + return &authorizations_; +} +inline const ::viam::app::v1::Authorization& ListAuthorizationsResponse::_internal_authorizations(int index) const { + return authorizations_.Get(index); +} +inline const ::viam::app::v1::Authorization& ListAuthorizationsResponse::authorizations(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.ListAuthorizationsResponse.authorizations) + return _internal_authorizations(index); +} +inline ::viam::app::v1::Authorization* ListAuthorizationsResponse::_internal_add_authorizations() { + return authorizations_.Add(); +} +inline ::viam::app::v1::Authorization* ListAuthorizationsResponse::add_authorizations() { + ::viam::app::v1::Authorization* _add = _internal_add_authorizations(); + // @@protoc_insertion_point(field_add:viam.app.v1.ListAuthorizationsResponse.authorizations) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Authorization >& +ListAuthorizationsResponse::authorizations() const { + // @@protoc_insertion_point(field_list:viam.app.v1.ListAuthorizationsResponse.authorizations) + return authorizations_; } -inline void Fragment::set_allocated_fragment(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.fragment_); - } - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } +// ------------------------------------------------------------------- - _impl_.fragment_ = reinterpret_cast<::google::protobuf::Struct*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Fragment.fragment) +// CheckPermissionsRequest + +// repeated .viam.app.v1.AuthorizedPermissions permissions = 1 [json_name = "permissions"]; +inline int CheckPermissionsRequest::_internal_permissions_size() const { + return permissions_.size(); +} +inline int CheckPermissionsRequest::permissions_size() const { + return _internal_permissions_size(); } - -// string organization_owner = 4 [json_name = "organizationOwner", (.tagger.v1.tags) = "bson:\"organization_owner\" json:\"owner\""]; -inline void Fragment::clear_organization_owner() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_owner_.ClearToEmpty(); +inline void CheckPermissionsRequest::clear_permissions() { + permissions_.Clear(); } -inline const std::string& Fragment::organization_owner() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.Fragment.organization_owner) - return _internal_organization_owner(); +inline ::viam::app::v1::AuthorizedPermissions* CheckPermissionsRequest::mutable_permissions(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.CheckPermissionsRequest.permissions) + return permissions_.Mutable(index); } -template -inline PROTOBUF_ALWAYS_INLINE void Fragment::set_organization_owner(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_owner_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.Fragment.organization_owner) +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::AuthorizedPermissions >* +CheckPermissionsRequest::mutable_permissions() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.CheckPermissionsRequest.permissions) + return &permissions_; } -inline std::string* Fragment::mutable_organization_owner() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_organization_owner(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.Fragment.organization_owner) - return _s; +inline const ::viam::app::v1::AuthorizedPermissions& CheckPermissionsRequest::_internal_permissions(int index) const { + return permissions_.Get(index); } -inline const std::string& Fragment::_internal_organization_owner() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.organization_owner_.Get(); +inline const ::viam::app::v1::AuthorizedPermissions& CheckPermissionsRequest::permissions(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.CheckPermissionsRequest.permissions) + return _internal_permissions(index); } -inline void Fragment::_internal_set_organization_owner(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_owner_.Set(value, GetArena()); +inline ::viam::app::v1::AuthorizedPermissions* CheckPermissionsRequest::_internal_add_permissions() { + return permissions_.Add(); } -inline std::string* Fragment::_internal_mutable_organization_owner() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.organization_owner_.Mutable( GetArena()); +inline ::viam::app::v1::AuthorizedPermissions* CheckPermissionsRequest::add_permissions() { + ::viam::app::v1::AuthorizedPermissions* _add = _internal_add_permissions(); + // @@protoc_insertion_point(field_add:viam.app.v1.CheckPermissionsRequest.permissions) + return _add; } -inline std::string* Fragment::release_organization_owner() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.Fragment.organization_owner) - return _impl_.organization_owner_.Release(); -} -inline void Fragment::set_allocated_organization_owner(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_owner_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.organization_owner_.IsDefault()) { - _impl_.organization_owner_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Fragment.organization_owner) +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::AuthorizedPermissions >& +CheckPermissionsRequest::permissions() const { + // @@protoc_insertion_point(field_list:viam.app.v1.CheckPermissionsRequest.permissions) + return permissions_; } -// bool public = 5 [json_name = "public", (.tagger.v1.tags) = "bson:\"public\" json:\"public\""]; -inline void Fragment::clear_public_() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.public__ = false; +// ------------------------------------------------------------------- + +// AuthorizedPermissions + +// string resource_type = 1 [json_name = "resourceType"]; +inline void AuthorizedPermissions::clear_resource_type() { + resource_type_.ClearToEmpty(); } -inline bool Fragment::public_() const { - // @@protoc_insertion_point(field_get:viam.app.v1.Fragment.public) - return _internal_public_(); +inline const std::string& AuthorizedPermissions::resource_type() const { + // @@protoc_insertion_point(field_get:viam.app.v1.AuthorizedPermissions.resource_type) + return _internal_resource_type(); } -inline void Fragment::set_public_(bool value) { - _internal_set_public_(value); - // @@protoc_insertion_point(field_set:viam.app.v1.Fragment.public) +template +inline PROTOBUF_ALWAYS_INLINE +void AuthorizedPermissions::set_resource_type(ArgT0&& arg0, ArgT... args) { + + resource_type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.AuthorizedPermissions.resource_type) } -inline bool Fragment::_internal_public_() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.public__; +inline std::string* AuthorizedPermissions::mutable_resource_type() { + std::string* _s = _internal_mutable_resource_type(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.AuthorizedPermissions.resource_type) + return _s; } -inline void Fragment::_internal_set_public_(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.public__ = value; +inline const std::string& AuthorizedPermissions::_internal_resource_type() const { + return resource_type_.Get(); } - -// .google.protobuf.Timestamp created_on = 6 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\""]; -inline bool Fragment::has_created_on() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.created_on_ != nullptr); - return value; +inline void AuthorizedPermissions::_internal_set_resource_type(const std::string& value) { + + resource_type_.Set(value, GetArenaForAllocation()); } -inline const ::google::protobuf::Timestamp& Fragment::_internal_created_on() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Timestamp* p = _impl_.created_on_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); +inline std::string* AuthorizedPermissions::_internal_mutable_resource_type() { + + return resource_type_.Mutable(GetArenaForAllocation()); } -inline const ::google::protobuf::Timestamp& Fragment::created_on() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.Fragment.created_on) - return _internal_created_on(); +inline std::string* AuthorizedPermissions::release_resource_type() { + // @@protoc_insertion_point(field_release:viam.app.v1.AuthorizedPermissions.resource_type) + return resource_type_.Release(); } -inline void Fragment::unsafe_arena_set_allocated_created_on(::google::protobuf::Timestamp* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.created_on_); - } - _impl_.created_on_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; +inline void AuthorizedPermissions::set_allocated_resource_type(std::string* resource_type) { + if (resource_type != nullptr) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.Fragment.created_on) -} -inline ::google::protobuf::Timestamp* Fragment::release_created_on() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Timestamp* released = _impl_.created_on_; - _impl_.created_on_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; + } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + resource_type_.SetAllocated(resource_type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (resource_type_.IsDefault()) { + resource_type_.Set("", GetArenaForAllocation()); } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.AuthorizedPermissions.resource_type) } -inline ::google::protobuf::Timestamp* Fragment::unsafe_arena_release_created_on() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.Fragment.created_on) - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Timestamp* temp = _impl_.created_on_; - _impl_.created_on_ = nullptr; - return temp; +// string resource_id = 2 [json_name = "resourceId"]; +inline void AuthorizedPermissions::clear_resource_id() { + resource_id_.ClearToEmpty(); } -inline ::google::protobuf::Timestamp* Fragment::_internal_mutable_created_on() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.created_on_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena()); - _impl_.created_on_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); - } - return _impl_.created_on_; +inline const std::string& AuthorizedPermissions::resource_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.AuthorizedPermissions.resource_id) + return _internal_resource_id(); } -inline ::google::protobuf::Timestamp* Fragment::mutable_created_on() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Timestamp* _msg = _internal_mutable_created_on(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.Fragment.created_on) - return _msg; +template +inline PROTOBUF_ALWAYS_INLINE +void AuthorizedPermissions::set_resource_id(ArgT0&& arg0, ArgT... args) { + + resource_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.AuthorizedPermissions.resource_id) } -inline void Fragment::set_allocated_created_on(::google::protobuf::Timestamp* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.created_on_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000002u; +inline std::string* AuthorizedPermissions::mutable_resource_id() { + std::string* _s = _internal_mutable_resource_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.AuthorizedPermissions.resource_id) + return _s; +} +inline const std::string& AuthorizedPermissions::_internal_resource_id() const { + return resource_id_.Get(); +} +inline void AuthorizedPermissions::_internal_set_resource_id(const std::string& value) { + + resource_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* AuthorizedPermissions::_internal_mutable_resource_id() { + + return resource_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* AuthorizedPermissions::release_resource_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.AuthorizedPermissions.resource_id) + return resource_id_.Release(); +} +inline void AuthorizedPermissions::set_allocated_resource_id(std::string* resource_id) { + if (resource_id != nullptr) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.created_on_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Fragment.created_on) + resource_id_.SetAllocated(resource_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (resource_id_.IsDefault()) { + resource_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.AuthorizedPermissions.resource_id) } -// string organization_name = 7 [json_name = "organizationName"]; -inline void Fragment::clear_organization_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_name_.ClearToEmpty(); +// repeated string permissions = 3 [json_name = "permissions"]; +inline int AuthorizedPermissions::_internal_permissions_size() const { + return permissions_.size(); } -inline const std::string& Fragment::organization_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.Fragment.organization_name) - return _internal_organization_name(); +inline int AuthorizedPermissions::permissions_size() const { + return _internal_permissions_size(); } -template -inline PROTOBUF_ALWAYS_INLINE void Fragment::set_organization_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.Fragment.organization_name) +inline void AuthorizedPermissions::clear_permissions() { + permissions_.Clear(); } -inline std::string* Fragment::mutable_organization_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_organization_name(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.Fragment.organization_name) +inline std::string* AuthorizedPermissions::add_permissions() { + std::string* _s = _internal_add_permissions(); + // @@protoc_insertion_point(field_add_mutable:viam.app.v1.AuthorizedPermissions.permissions) return _s; } -inline const std::string& Fragment::_internal_organization_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.organization_name_.Get(); +inline const std::string& AuthorizedPermissions::_internal_permissions(int index) const { + return permissions_.Get(index); } -inline void Fragment::_internal_set_organization_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_name_.Set(value, GetArena()); +inline const std::string& AuthorizedPermissions::permissions(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.AuthorizedPermissions.permissions) + return _internal_permissions(index); } -inline std::string* Fragment::_internal_mutable_organization_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.organization_name_.Mutable( GetArena()); +inline std::string* AuthorizedPermissions::mutable_permissions(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.AuthorizedPermissions.permissions) + return permissions_.Mutable(index); } -inline std::string* Fragment::release_organization_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.Fragment.organization_name) - return _impl_.organization_name_.Release(); -} -inline void Fragment::set_allocated_organization_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.organization_name_.IsDefault()) { - _impl_.organization_name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Fragment.organization_name) +inline void AuthorizedPermissions::set_permissions(int index, const std::string& value) { + permissions_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:viam.app.v1.AuthorizedPermissions.permissions) } - -// int32 robot_part_count = 9 [json_name = "robotPartCount"]; -inline void Fragment::clear_robot_part_count() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.robot_part_count_ = 0; +inline void AuthorizedPermissions::set_permissions(int index, std::string&& value) { + permissions_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:viam.app.v1.AuthorizedPermissions.permissions) } -inline ::int32_t Fragment::robot_part_count() const { - // @@protoc_insertion_point(field_get:viam.app.v1.Fragment.robot_part_count) - return _internal_robot_part_count(); +inline void AuthorizedPermissions::set_permissions(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + permissions_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:viam.app.v1.AuthorizedPermissions.permissions) } -inline void Fragment::set_robot_part_count(::int32_t value) { - _internal_set_robot_part_count(value); - // @@protoc_insertion_point(field_set:viam.app.v1.Fragment.robot_part_count) +inline void AuthorizedPermissions::set_permissions(int index, const char* value, size_t size) { + permissions_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:viam.app.v1.AuthorizedPermissions.permissions) } -inline ::int32_t Fragment::_internal_robot_part_count() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.robot_part_count_; +inline std::string* AuthorizedPermissions::_internal_add_permissions() { + return permissions_.Add(); } -inline void Fragment::_internal_set_robot_part_count(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.robot_part_count_ = value; +inline void AuthorizedPermissions::add_permissions(const std::string& value) { + permissions_.Add()->assign(value); + // @@protoc_insertion_point(field_add:viam.app.v1.AuthorizedPermissions.permissions) } - -// int32 organization_count = 10 [json_name = "organizationCount"]; -inline void Fragment::clear_organization_count() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_count_ = 0; +inline void AuthorizedPermissions::add_permissions(std::string&& value) { + permissions_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:viam.app.v1.AuthorizedPermissions.permissions) } -inline ::int32_t Fragment::organization_count() const { - // @@protoc_insertion_point(field_get:viam.app.v1.Fragment.organization_count) - return _internal_organization_count(); +inline void AuthorizedPermissions::add_permissions(const char* value) { + GOOGLE_DCHECK(value != nullptr); + permissions_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:viam.app.v1.AuthorizedPermissions.permissions) } -inline void Fragment::set_organization_count(::int32_t value) { - _internal_set_organization_count(value); - // @@protoc_insertion_point(field_set:viam.app.v1.Fragment.organization_count) +inline void AuthorizedPermissions::add_permissions(const char* value, size_t size) { + permissions_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:viam.app.v1.AuthorizedPermissions.permissions) } -inline ::int32_t Fragment::_internal_organization_count() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.organization_count_; +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +AuthorizedPermissions::permissions() const { + // @@protoc_insertion_point(field_list:viam.app.v1.AuthorizedPermissions.permissions) + return permissions_; } -inline void Fragment::_internal_set_organization_count(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_count_ = value; +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +AuthorizedPermissions::mutable_permissions() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.AuthorizedPermissions.permissions) + return &permissions_; } -// bool only_used_by_owner = 11 [json_name = "onlyUsedByOwner"]; -inline void Fragment::clear_only_used_by_owner() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.only_used_by_owner_ = false; +// ------------------------------------------------------------------- + +// CheckPermissionsResponse + +// repeated .viam.app.v1.AuthorizedPermissions authorized_permissions = 1 [json_name = "authorizedPermissions"]; +inline int CheckPermissionsResponse::_internal_authorized_permissions_size() const { + return authorized_permissions_.size(); } -inline bool Fragment::only_used_by_owner() const { - // @@protoc_insertion_point(field_get:viam.app.v1.Fragment.only_used_by_owner) - return _internal_only_used_by_owner(); +inline int CheckPermissionsResponse::authorized_permissions_size() const { + return _internal_authorized_permissions_size(); } -inline void Fragment::set_only_used_by_owner(bool value) { - _internal_set_only_used_by_owner(value); - // @@protoc_insertion_point(field_set:viam.app.v1.Fragment.only_used_by_owner) +inline void CheckPermissionsResponse::clear_authorized_permissions() { + authorized_permissions_.Clear(); } -inline bool Fragment::_internal_only_used_by_owner() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.only_used_by_owner_; +inline ::viam::app::v1::AuthorizedPermissions* CheckPermissionsResponse::mutable_authorized_permissions(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.CheckPermissionsResponse.authorized_permissions) + return authorized_permissions_.Mutable(index); } -inline void Fragment::_internal_set_only_used_by_owner(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.only_used_by_owner_ = value; +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::AuthorizedPermissions >* +CheckPermissionsResponse::mutable_authorized_permissions() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.CheckPermissionsResponse.authorized_permissions) + return &authorized_permissions_; } - -// .viam.app.v1.FragmentVisibility visibility = 12 [json_name = "visibility"]; -inline void Fragment::clear_visibility() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.visibility_ = 0; +inline const ::viam::app::v1::AuthorizedPermissions& CheckPermissionsResponse::_internal_authorized_permissions(int index) const { + return authorized_permissions_.Get(index); } -inline ::viam::app::v1::FragmentVisibility Fragment::visibility() const { - // @@protoc_insertion_point(field_get:viam.app.v1.Fragment.visibility) - return _internal_visibility(); +inline const ::viam::app::v1::AuthorizedPermissions& CheckPermissionsResponse::authorized_permissions(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.CheckPermissionsResponse.authorized_permissions) + return _internal_authorized_permissions(index); } -inline void Fragment::set_visibility(::viam::app::v1::FragmentVisibility value) { - _internal_set_visibility(value); - // @@protoc_insertion_point(field_set:viam.app.v1.Fragment.visibility) +inline ::viam::app::v1::AuthorizedPermissions* CheckPermissionsResponse::_internal_add_authorized_permissions() { + return authorized_permissions_.Add(); } -inline ::viam::app::v1::FragmentVisibility Fragment::_internal_visibility() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::viam::app::v1::FragmentVisibility>(_impl_.visibility_); +inline ::viam::app::v1::AuthorizedPermissions* CheckPermissionsResponse::add_authorized_permissions() { + ::viam::app::v1::AuthorizedPermissions* _add = _internal_add_authorized_permissions(); + // @@protoc_insertion_point(field_add:viam.app.v1.CheckPermissionsResponse.authorized_permissions) + return _add; } -inline void Fragment::_internal_set_visibility(::viam::app::v1::FragmentVisibility value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.visibility_ = value; +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::AuthorizedPermissions >& +CheckPermissionsResponse::authorized_permissions() const { + // @@protoc_insertion_point(field_list:viam.app.v1.CheckPermissionsResponse.authorized_permissions) + return authorized_permissions_; } -// .google.protobuf.Timestamp last_updated = 13 [json_name = "lastUpdated", (.tagger.v1.tags) = "bson:\"last_updated_at\""]; -inline bool Fragment::has_last_updated() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || _impl_.last_updated_ != nullptr); - return value; +// ------------------------------------------------------------------- + +// ModuleVersion + +// string version = 1 [json_name = "version"]; +inline void ModuleVersion::clear_version() { + version_.ClearToEmpty(); } -inline const ::google::protobuf::Timestamp& Fragment::_internal_last_updated() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Timestamp* p = _impl_.last_updated_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); +inline const std::string& ModuleVersion::version() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ModuleVersion.version) + return _internal_version(); } -inline const ::google::protobuf::Timestamp& Fragment::last_updated() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.Fragment.last_updated) - return _internal_last_updated(); +template +inline PROTOBUF_ALWAYS_INLINE +void ModuleVersion::set_version(ArgT0&& arg0, ArgT... args) { + + version_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.ModuleVersion.version) } -inline void Fragment::unsafe_arena_set_allocated_last_updated(::google::protobuf::Timestamp* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.last_updated_); - } - _impl_.last_updated_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000004u; - } else { - _impl_._has_bits_[0] &= ~0x00000004u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.Fragment.last_updated) +inline std::string* ModuleVersion::mutable_version() { + std::string* _s = _internal_mutable_version(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ModuleVersion.version) + return _s; } -inline ::google::protobuf::Timestamp* Fragment::release_last_updated() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000004u; - ::google::protobuf::Timestamp* released = _impl_.last_updated_; - _impl_.last_updated_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; +inline const std::string& ModuleVersion::_internal_version() const { + return version_.Get(); } -inline ::google::protobuf::Timestamp* Fragment::unsafe_arena_release_last_updated() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.Fragment.last_updated) - - _impl_._has_bits_[0] &= ~0x00000004u; - ::google::protobuf::Timestamp* temp = _impl_.last_updated_; - _impl_.last_updated_ = nullptr; - return temp; +inline void ModuleVersion::_internal_set_version(const std::string& value) { + + version_.Set(value, GetArenaForAllocation()); } -inline ::google::protobuf::Timestamp* Fragment::_internal_mutable_last_updated() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - if (_impl_.last_updated_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena()); - _impl_.last_updated_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); - } - return _impl_.last_updated_; +inline std::string* ModuleVersion::_internal_mutable_version() { + + return version_.Mutable(GetArenaForAllocation()); } -inline ::google::protobuf::Timestamp* Fragment::mutable_last_updated() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Timestamp* _msg = _internal_mutable_last_updated(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.Fragment.last_updated) - return _msg; +inline std::string* ModuleVersion::release_version() { + // @@protoc_insertion_point(field_release:viam.app.v1.ModuleVersion.version) + return version_.Release(); } -inline void Fragment::set_allocated_last_updated(::google::protobuf::Timestamp* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.last_updated_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000004u; +inline void ModuleVersion::set_allocated_version(std::string* version) { + if (version != nullptr) { + } else { - _impl_._has_bits_[0] &= ~0x00000004u; + } - - _impl_.last_updated_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Fragment.last_updated) + version_.SetAllocated(version, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (version_.IsDefault()) { + version_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ModuleVersion.version) } -// ------------------------------------------------------------------- - -// FragmentHistoryEntry - -// string fragment = 1 [json_name = "fragment", (.tagger.v1.tags) = "bson:\"fragment\" json:\"fragment\""]; -inline void FragmentHistoryEntry::clear_fragment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.fragment_.ClearToEmpty(); +// repeated .viam.app.v1.Uploads files = 2 [json_name = "files"]; +inline int ModuleVersion::_internal_files_size() const { + return files_.size(); } -inline const std::string& FragmentHistoryEntry::fragment() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.FragmentHistoryEntry.fragment) - return _internal_fragment(); +inline int ModuleVersion::files_size() const { + return _internal_files_size(); } -template -inline PROTOBUF_ALWAYS_INLINE void FragmentHistoryEntry::set_fragment(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.fragment_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.FragmentHistoryEntry.fragment) +inline void ModuleVersion::clear_files() { + files_.Clear(); } -inline std::string* FragmentHistoryEntry::mutable_fragment() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_fragment(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.FragmentHistoryEntry.fragment) - return _s; +inline ::viam::app::v1::Uploads* ModuleVersion::mutable_files(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.ModuleVersion.files) + return files_.Mutable(index); } -inline const std::string& FragmentHistoryEntry::_internal_fragment() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.fragment_.Get(); +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Uploads >* +ModuleVersion::mutable_files() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ModuleVersion.files) + return &files_; } -inline void FragmentHistoryEntry::_internal_set_fragment(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.fragment_.Set(value, GetArena()); +inline const ::viam::app::v1::Uploads& ModuleVersion::_internal_files(int index) const { + return files_.Get(index); } -inline std::string* FragmentHistoryEntry::_internal_mutable_fragment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.fragment_.Mutable( GetArena()); +inline const ::viam::app::v1::Uploads& ModuleVersion::files(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.ModuleVersion.files) + return _internal_files(index); } -inline std::string* FragmentHistoryEntry::release_fragment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.FragmentHistoryEntry.fragment) - return _impl_.fragment_.Release(); -} -inline void FragmentHistoryEntry::set_allocated_fragment(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.fragment_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.fragment_.IsDefault()) { - _impl_.fragment_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.FragmentHistoryEntry.fragment) +inline ::viam::app::v1::Uploads* ModuleVersion::_internal_add_files() { + return files_.Add(); +} +inline ::viam::app::v1::Uploads* ModuleVersion::add_files() { + ::viam::app::v1::Uploads* _add = _internal_add_files(); + // @@protoc_insertion_point(field_add:viam.app.v1.ModuleVersion.files) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Uploads >& +ModuleVersion::files() const { + // @@protoc_insertion_point(field_list:viam.app.v1.ModuleVersion.files) + return files_; } -// .google.protobuf.Timestamp edited_on = 2 [json_name = "editedOn", (.tagger.v1.tags) = "bson:\"edited_on\" json:\"edited_on\""]; -inline bool FragmentHistoryEntry::has_edited_on() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.edited_on_ != nullptr); - return value; +// repeated .viam.app.v1.Model models = 3 [json_name = "models"]; +inline int ModuleVersion::_internal_models_size() const { + return models_.size(); } -inline const ::google::protobuf::Timestamp& FragmentHistoryEntry::_internal_edited_on() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Timestamp* p = _impl_.edited_on_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); +inline int ModuleVersion::models_size() const { + return _internal_models_size(); } -inline const ::google::protobuf::Timestamp& FragmentHistoryEntry::edited_on() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.FragmentHistoryEntry.edited_on) - return _internal_edited_on(); +inline void ModuleVersion::clear_models() { + models_.Clear(); } -inline void FragmentHistoryEntry::unsafe_arena_set_allocated_edited_on(::google::protobuf::Timestamp* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.edited_on_); - } - _impl_.edited_on_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.FragmentHistoryEntry.edited_on) +inline ::viam::app::v1::Model* ModuleVersion::mutable_models(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.ModuleVersion.models) + return models_.Mutable(index); } -inline ::google::protobuf::Timestamp* FragmentHistoryEntry::release_edited_on() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Timestamp* released = _impl_.edited_on_; - _impl_.edited_on_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Model >* +ModuleVersion::mutable_models() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ModuleVersion.models) + return &models_; } -inline ::google::protobuf::Timestamp* FragmentHistoryEntry::unsafe_arena_release_edited_on() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.FragmentHistoryEntry.edited_on) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Timestamp* temp = _impl_.edited_on_; - _impl_.edited_on_ = nullptr; - return temp; +inline const ::viam::app::v1::Model& ModuleVersion::_internal_models(int index) const { + return models_.Get(index); } -inline ::google::protobuf::Timestamp* FragmentHistoryEntry::_internal_mutable_edited_on() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.edited_on_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena()); - _impl_.edited_on_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); - } - return _impl_.edited_on_; +inline const ::viam::app::v1::Model& ModuleVersion::models(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.ModuleVersion.models) + return _internal_models(index); } -inline ::google::protobuf::Timestamp* FragmentHistoryEntry::mutable_edited_on() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Timestamp* _msg = _internal_mutable_edited_on(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.FragmentHistoryEntry.edited_on) - return _msg; +inline ::viam::app::v1::Model* ModuleVersion::_internal_add_models() { + return models_.Add(); } -inline void FragmentHistoryEntry::set_allocated_edited_on(::google::protobuf::Timestamp* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.edited_on_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.edited_on_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.FragmentHistoryEntry.edited_on) +inline ::viam::app::v1::Model* ModuleVersion::add_models() { + ::viam::app::v1::Model* _add = _internal_add_models(); + // @@protoc_insertion_point(field_add:viam.app.v1.ModuleVersion.models) + return _add; } - -// .viam.app.v1.Fragment old = 3 [json_name = "old", (.tagger.v1.tags) = "bson:\"old\" json:\"old\""]; -inline bool FragmentHistoryEntry::has_old() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.old_ != nullptr); - return value; +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Model >& +ModuleVersion::models() const { + // @@protoc_insertion_point(field_list:viam.app.v1.ModuleVersion.models) + return models_; } -inline void FragmentHistoryEntry::clear_old() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.old_ != nullptr) _impl_.old_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + +// string entrypoint = 4 [json_name = "entrypoint"]; +inline void ModuleVersion::clear_entrypoint() { + entrypoint_.ClearToEmpty(); } -inline const ::viam::app::v1::Fragment& FragmentHistoryEntry::_internal_old() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::Fragment* p = _impl_.old_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_Fragment_default_instance_); +inline const std::string& ModuleVersion::entrypoint() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ModuleVersion.entrypoint) + return _internal_entrypoint(); } -inline const ::viam::app::v1::Fragment& FragmentHistoryEntry::old() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.FragmentHistoryEntry.old) - return _internal_old(); +template +inline PROTOBUF_ALWAYS_INLINE +void ModuleVersion::set_entrypoint(ArgT0&& arg0, ArgT... args) { + + entrypoint_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.ModuleVersion.entrypoint) } -inline void FragmentHistoryEntry::unsafe_arena_set_allocated_old(::viam::app::v1::Fragment* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.old_); - } - _impl_.old_ = reinterpret_cast<::viam::app::v1::Fragment*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; - } else { - _impl_._has_bits_[0] &= ~0x00000002u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.FragmentHistoryEntry.old) +inline std::string* ModuleVersion::mutable_entrypoint() { + std::string* _s = _internal_mutable_entrypoint(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ModuleVersion.entrypoint) + return _s; } -inline ::viam::app::v1::Fragment* FragmentHistoryEntry::release_old() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::viam::app::v1::Fragment* released = _impl_.old_; - _impl_.old_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; +inline const std::string& ModuleVersion::_internal_entrypoint() const { + return entrypoint_.Get(); } -inline ::viam::app::v1::Fragment* FragmentHistoryEntry::unsafe_arena_release_old() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.FragmentHistoryEntry.old) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::viam::app::v1::Fragment* temp = _impl_.old_; - _impl_.old_ = nullptr; - return temp; +inline void ModuleVersion::_internal_set_entrypoint(const std::string& value) { + + entrypoint_.Set(value, GetArenaForAllocation()); } -inline ::viam::app::v1::Fragment* FragmentHistoryEntry::_internal_mutable_old() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.old_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::Fragment>(GetArena()); - _impl_.old_ = reinterpret_cast<::viam::app::v1::Fragment*>(p); - } - return _impl_.old_; +inline std::string* ModuleVersion::_internal_mutable_entrypoint() { + + return entrypoint_.Mutable(GetArenaForAllocation()); } -inline ::viam::app::v1::Fragment* FragmentHistoryEntry::mutable_old() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::viam::app::v1::Fragment* _msg = _internal_mutable_old(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.FragmentHistoryEntry.old) - return _msg; +inline std::string* ModuleVersion::release_entrypoint() { + // @@protoc_insertion_point(field_release:viam.app.v1.ModuleVersion.entrypoint) + return entrypoint_.Release(); } -inline void FragmentHistoryEntry::set_allocated_old(::viam::app::v1::Fragment* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::Fragment*>(_impl_.old_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::Fragment*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000002u; +inline void ModuleVersion::set_allocated_entrypoint(std::string* entrypoint) { + if (entrypoint != nullptr) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.old_ = reinterpret_cast<::viam::app::v1::Fragment*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.FragmentHistoryEntry.old) + entrypoint_.SetAllocated(entrypoint, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (entrypoint_.IsDefault()) { + entrypoint_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ModuleVersion.entrypoint) } -// .viam.app.v1.AuthenticatorInfo edited_by = 4 [json_name = "editedBy", (.tagger.v1.tags) = "bson:\"edited_by\" json:\"edited_by\""]; -inline bool FragmentHistoryEntry::has_edited_by() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || _impl_.edited_by_ != nullptr); +// optional string first_run = 5 [json_name = "firstRun"]; +inline bool ModuleVersion::_internal_has_first_run() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; return value; } -inline void FragmentHistoryEntry::clear_edited_by() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.edited_by_ != nullptr) _impl_.edited_by_->Clear(); - _impl_._has_bits_[0] &= ~0x00000004u; +inline bool ModuleVersion::has_first_run() const { + return _internal_has_first_run(); } -inline const ::viam::app::v1::AuthenticatorInfo& FragmentHistoryEntry::_internal_edited_by() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::AuthenticatorInfo* p = _impl_.edited_by_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_AuthenticatorInfo_default_instance_); +inline void ModuleVersion::clear_first_run() { + first_run_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; } -inline const ::viam::app::v1::AuthenticatorInfo& FragmentHistoryEntry::edited_by() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.FragmentHistoryEntry.edited_by) - return _internal_edited_by(); +inline const std::string& ModuleVersion::first_run() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ModuleVersion.first_run) + return _internal_first_run(); } -inline void FragmentHistoryEntry::unsafe_arena_set_allocated_edited_by(::viam::app::v1::AuthenticatorInfo* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.edited_by_); - } - _impl_.edited_by_ = reinterpret_cast<::viam::app::v1::AuthenticatorInfo*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000004u; - } else { - _impl_._has_bits_[0] &= ~0x00000004u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.FragmentHistoryEntry.edited_by) +template +inline PROTOBUF_ALWAYS_INLINE +void ModuleVersion::set_first_run(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + first_run_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.ModuleVersion.first_run) } -inline ::viam::app::v1::AuthenticatorInfo* FragmentHistoryEntry::release_edited_by() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000004u; - ::viam::app::v1::AuthenticatorInfo* released = _impl_.edited_by_; - _impl_.edited_by_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; +inline std::string* ModuleVersion::mutable_first_run() { + std::string* _s = _internal_mutable_first_run(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ModuleVersion.first_run) + return _s; } -inline ::viam::app::v1::AuthenticatorInfo* FragmentHistoryEntry::unsafe_arena_release_edited_by() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.FragmentHistoryEntry.edited_by) - - _impl_._has_bits_[0] &= ~0x00000004u; - ::viam::app::v1::AuthenticatorInfo* temp = _impl_.edited_by_; - _impl_.edited_by_ = nullptr; - return temp; +inline const std::string& ModuleVersion::_internal_first_run() const { + return first_run_.Get(); } -inline ::viam::app::v1::AuthenticatorInfo* FragmentHistoryEntry::_internal_mutable_edited_by() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - if (_impl_.edited_by_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::AuthenticatorInfo>(GetArena()); - _impl_.edited_by_ = reinterpret_cast<::viam::app::v1::AuthenticatorInfo*>(p); - } - return _impl_.edited_by_; +inline void ModuleVersion::_internal_set_first_run(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + first_run_.Set(value, GetArenaForAllocation()); } -inline ::viam::app::v1::AuthenticatorInfo* FragmentHistoryEntry::mutable_edited_by() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::viam::app::v1::AuthenticatorInfo* _msg = _internal_mutable_edited_by(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.FragmentHistoryEntry.edited_by) - return _msg; +inline std::string* ModuleVersion::_internal_mutable_first_run() { + _has_bits_[0] |= 0x00000001u; + return first_run_.Mutable(GetArenaForAllocation()); } -inline void FragmentHistoryEntry::set_allocated_edited_by(::viam::app::v1::AuthenticatorInfo* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::AuthenticatorInfo*>(_impl_.edited_by_); +inline std::string* ModuleVersion::release_first_run() { + // @@protoc_insertion_point(field_release:viam.app.v1.ModuleVersion.first_run) + if (!_internal_has_first_run()) { + return nullptr; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::AuthenticatorInfo*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000004u; + _has_bits_[0] &= ~0x00000001u; + auto* p = first_run_.Release(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (first_run_.IsDefault()) { + first_run_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; +} +inline void ModuleVersion::set_allocated_first_run(std::string* first_run) { + if (first_run != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - _impl_._has_bits_[0] &= ~0x00000004u; + _has_bits_[0] &= ~0x00000001u; } - - _impl_.edited_by_ = reinterpret_cast<::viam::app::v1::AuthenticatorInfo*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.FragmentHistoryEntry.edited_by) + first_run_.SetAllocated(first_run, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (first_run_.IsDefault()) { + first_run_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ModuleVersion.first_run) } // ------------------------------------------------------------------- -// FragmentError +// ModuleMetadata -// .viam.app.v1.FragmentErrorType error_type = 1 [json_name = "errorType"]; -inline void FragmentError::clear_error_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.error_type_ = 0; -} -inline ::viam::app::v1::FragmentErrorType FragmentError::error_type() const { - // @@protoc_insertion_point(field_get:viam.app.v1.FragmentError.error_type) - return _internal_error_type(); -} -inline void FragmentError::set_error_type(::viam::app::v1::FragmentErrorType value) { - _internal_set_error_type(value); - // @@protoc_insertion_point(field_set:viam.app.v1.FragmentError.error_type) -} -inline ::viam::app::v1::FragmentErrorType FragmentError::_internal_error_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::viam::app::v1::FragmentErrorType>(_impl_.error_type_); +// repeated .viam.app.v1.Model models = 1 [json_name = "models"]; +inline int ModuleMetadata::_internal_models_size() const { + return models_.size(); } -inline void FragmentError::_internal_set_error_type(::viam::app::v1::FragmentErrorType value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.error_type_ = value; +inline int ModuleMetadata::models_size() const { + return _internal_models_size(); } - -// string fragment_id = 2 [json_name = "fragmentId"]; -inline void FragmentError::clear_fragment_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.fragment_id_.ClearToEmpty(); +inline void ModuleMetadata::clear_models() { + models_.Clear(); } -inline const std::string& FragmentError::fragment_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.FragmentError.fragment_id) - return _internal_fragment_id(); +inline ::viam::app::v1::Model* ModuleMetadata::mutable_models(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.ModuleMetadata.models) + return models_.Mutable(index); } -template -inline PROTOBUF_ALWAYS_INLINE void FragmentError::set_fragment_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.fragment_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.FragmentError.fragment_id) +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Model >* +ModuleMetadata::mutable_models() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ModuleMetadata.models) + return &models_; } -inline std::string* FragmentError::mutable_fragment_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_fragment_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.FragmentError.fragment_id) - return _s; +inline const ::viam::app::v1::Model& ModuleMetadata::_internal_models(int index) const { + return models_.Get(index); } -inline const std::string& FragmentError::_internal_fragment_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.fragment_id_.Get(); +inline const ::viam::app::v1::Model& ModuleMetadata::models(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.ModuleMetadata.models) + return _internal_models(index); } -inline void FragmentError::_internal_set_fragment_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.fragment_id_.Set(value, GetArena()); +inline ::viam::app::v1::Model* ModuleMetadata::_internal_add_models() { + return models_.Add(); } -inline std::string* FragmentError::_internal_mutable_fragment_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.fragment_id_.Mutable( GetArena()); +inline ::viam::app::v1::Model* ModuleMetadata::add_models() { + ::viam::app::v1::Model* _add = _internal_add_models(); + // @@protoc_insertion_point(field_add:viam.app.v1.ModuleMetadata.models) + return _add; } -inline std::string* FragmentError::release_fragment_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.FragmentError.fragment_id) - return _impl_.fragment_id_.Release(); -} -inline void FragmentError::set_allocated_fragment_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.fragment_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.fragment_id_.IsDefault()) { - _impl_.fragment_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.FragmentError.fragment_id) +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Model >& +ModuleMetadata::models() const { + // @@protoc_insertion_point(field_list:viam.app.v1.ModuleMetadata.models) + return models_; } -// string detail = 3 [json_name = "detail"]; -inline void FragmentError::clear_detail() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.detail_.ClearToEmpty(); -} -inline const std::string& FragmentError::detail() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.FragmentError.detail) - return _internal_detail(); -} -template -inline PROTOBUF_ALWAYS_INLINE void FragmentError::set_detail(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.detail_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.FragmentError.detail) -} -inline std::string* FragmentError::mutable_detail() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_detail(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.FragmentError.detail) - return _s; -} -inline const std::string& FragmentError::_internal_detail() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.detail_.Get(); -} -inline void FragmentError::_internal_set_detail(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.detail_.Set(value, GetArena()); -} -inline std::string* FragmentError::_internal_mutable_detail() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.detail_.Mutable( GetArena()); +// repeated .viam.app.v1.ModuleVersion versions = 2 [json_name = "versions"]; +inline int ModuleMetadata::_internal_versions_size() const { + return versions_.size(); } -inline std::string* FragmentError::release_detail() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.FragmentError.detail) - return _impl_.detail_.Release(); -} -inline void FragmentError::set_allocated_detail(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.detail_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.detail_.IsDefault()) { - _impl_.detail_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.FragmentError.detail) +inline int ModuleMetadata::versions_size() const { + return _internal_versions_size(); } - -// ------------------------------------------------------------------- - -// ResolvedFragment - -// string fragment_id = 1 [json_name = "fragmentId"]; -inline void ResolvedFragment::clear_fragment_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.fragment_id_.ClearToEmpty(); +inline void ModuleMetadata::clear_versions() { + versions_.Clear(); } -inline const std::string& ResolvedFragment::fragment_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.ResolvedFragment.fragment_id) - return _internal_fragment_id(); +inline ::viam::app::v1::ModuleVersion* ModuleMetadata::mutable_versions(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.ModuleMetadata.versions) + return versions_.Mutable(index); } -template -inline PROTOBUF_ALWAYS_INLINE void ResolvedFragment::set_fragment_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.fragment_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.ResolvedFragment.fragment_id) +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ModuleVersion >* +ModuleMetadata::mutable_versions() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ModuleMetadata.versions) + return &versions_; } -inline std::string* ResolvedFragment::mutable_fragment_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_fragment_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.ResolvedFragment.fragment_id) - return _s; +inline const ::viam::app::v1::ModuleVersion& ModuleMetadata::_internal_versions(int index) const { + return versions_.Get(index); } -inline const std::string& ResolvedFragment::_internal_fragment_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.fragment_id_.Get(); +inline const ::viam::app::v1::ModuleVersion& ModuleMetadata::versions(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.ModuleMetadata.versions) + return _internal_versions(index); } -inline void ResolvedFragment::_internal_set_fragment_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.fragment_id_.Set(value, GetArena()); +inline ::viam::app::v1::ModuleVersion* ModuleMetadata::_internal_add_versions() { + return versions_.Add(); } -inline std::string* ResolvedFragment::_internal_mutable_fragment_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.fragment_id_.Mutable( GetArena()); +inline ::viam::app::v1::ModuleVersion* ModuleMetadata::add_versions() { + ::viam::app::v1::ModuleVersion* _add = _internal_add_versions(); + // @@protoc_insertion_point(field_add:viam.app.v1.ModuleMetadata.versions) + return _add; } -inline std::string* ResolvedFragment::release_fragment_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.ResolvedFragment.fragment_id) - return _impl_.fragment_id_.Release(); -} -inline void ResolvedFragment::set_allocated_fragment_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.fragment_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.fragment_id_.IsDefault()) { - _impl_.fragment_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ResolvedFragment.fragment_id) +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ModuleVersion >& +ModuleMetadata::versions() const { + // @@protoc_insertion_point(field_list:viam.app.v1.ModuleMetadata.versions) + return versions_; } -// .google.protobuf.Struct resolved_config = 2 [json_name = "resolvedConfig"]; -inline bool ResolvedFragment::has_resolved_config() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.resolved_config_ != nullptr); - return value; +// string entrypoint = 3 [json_name = "entrypoint"]; +inline void ModuleMetadata::clear_entrypoint() { + entrypoint_.ClearToEmpty(); } -inline const ::google::protobuf::Struct& ResolvedFragment::_internal_resolved_config() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.resolved_config_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const std::string& ModuleMetadata::entrypoint() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ModuleMetadata.entrypoint) + return _internal_entrypoint(); } -inline const ::google::protobuf::Struct& ResolvedFragment::resolved_config() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.ResolvedFragment.resolved_config) - return _internal_resolved_config(); +template +inline PROTOBUF_ALWAYS_INLINE +void ModuleMetadata::set_entrypoint(ArgT0&& arg0, ArgT... args) { + + entrypoint_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.ModuleMetadata.entrypoint) } -inline void ResolvedFragment::unsafe_arena_set_allocated_resolved_config(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.resolved_config_); - } - _impl_.resolved_config_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.ResolvedFragment.resolved_config) +inline std::string* ModuleMetadata::mutable_entrypoint() { + std::string* _s = _internal_mutable_entrypoint(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ModuleMetadata.entrypoint) + return _s; } -inline ::google::protobuf::Struct* ResolvedFragment::release_resolved_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.resolved_config_; - _impl_.resolved_config_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; +inline const std::string& ModuleMetadata::_internal_entrypoint() const { + return entrypoint_.Get(); } -inline ::google::protobuf::Struct* ResolvedFragment::unsafe_arena_release_resolved_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.ResolvedFragment.resolved_config) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.resolved_config_; - _impl_.resolved_config_ = nullptr; - return temp; +inline void ModuleMetadata::_internal_set_entrypoint(const std::string& value) { + + entrypoint_.Set(value, GetArenaForAllocation()); } -inline ::google::protobuf::Struct* ResolvedFragment::_internal_mutable_resolved_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.resolved_config_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.resolved_config_ = reinterpret_cast<::google::protobuf::Struct*>(p); - } - return _impl_.resolved_config_; +inline std::string* ModuleMetadata::_internal_mutable_entrypoint() { + + return entrypoint_.Mutable(GetArenaForAllocation()); } -inline ::google::protobuf::Struct* ResolvedFragment::mutable_resolved_config() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_resolved_config(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.ResolvedFragment.resolved_config) - return _msg; +inline std::string* ModuleMetadata::release_entrypoint() { + // @@protoc_insertion_point(field_release:viam.app.v1.ModuleMetadata.entrypoint) + return entrypoint_.Release(); } -inline void ResolvedFragment::set_allocated_resolved_config(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.resolved_config_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; +inline void ModuleMetadata::set_allocated_entrypoint(std::string* entrypoint) { + if (entrypoint != nullptr) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.resolved_config_ = reinterpret_cast<::google::protobuf::Struct*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ResolvedFragment.resolved_config) + entrypoint_.SetAllocated(entrypoint, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (entrypoint_.IsDefault()) { + entrypoint_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ModuleMetadata.entrypoint) } -// .viam.app.v1.FragmentError error = 3 [json_name = "error"]; -inline bool ResolvedFragment::has_error() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.error_ != nullptr); +// optional string first_run = 4 [json_name = "firstRun"]; +inline bool ModuleMetadata::_internal_has_first_run() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; return value; } -inline void ResolvedFragment::clear_error() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.error_ != nullptr) _impl_.error_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; +inline bool ModuleMetadata::has_first_run() const { + return _internal_has_first_run(); } -inline const ::viam::app::v1::FragmentError& ResolvedFragment::_internal_error() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::FragmentError* p = _impl_.error_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_FragmentError_default_instance_); +inline void ModuleMetadata::clear_first_run() { + first_run_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; } -inline const ::viam::app::v1::FragmentError& ResolvedFragment::error() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.ResolvedFragment.error) - return _internal_error(); +inline const std::string& ModuleMetadata::first_run() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ModuleMetadata.first_run) + return _internal_first_run(); } -inline void ResolvedFragment::unsafe_arena_set_allocated_error(::viam::app::v1::FragmentError* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.error_); - } - _impl_.error_ = reinterpret_cast<::viam::app::v1::FragmentError*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; - } else { - _impl_._has_bits_[0] &= ~0x00000002u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.ResolvedFragment.error) +template +inline PROTOBUF_ALWAYS_INLINE +void ModuleMetadata::set_first_run(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + first_run_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.ModuleMetadata.first_run) } -inline ::viam::app::v1::FragmentError* ResolvedFragment::release_error() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::viam::app::v1::FragmentError* released = _impl_.error_; - _impl_.error_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; +inline std::string* ModuleMetadata::mutable_first_run() { + std::string* _s = _internal_mutable_first_run(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ModuleMetadata.first_run) + return _s; } -inline ::viam::app::v1::FragmentError* ResolvedFragment::unsafe_arena_release_error() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.ResolvedFragment.error) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::viam::app::v1::FragmentError* temp = _impl_.error_; - _impl_.error_ = nullptr; - return temp; +inline const std::string& ModuleMetadata::_internal_first_run() const { + return first_run_.Get(); } -inline ::viam::app::v1::FragmentError* ResolvedFragment::_internal_mutable_error() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.error_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::FragmentError>(GetArena()); - _impl_.error_ = reinterpret_cast<::viam::app::v1::FragmentError*>(p); - } - return _impl_.error_; +inline void ModuleMetadata::_internal_set_first_run(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + first_run_.Set(value, GetArenaForAllocation()); } -inline ::viam::app::v1::FragmentError* ResolvedFragment::mutable_error() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::viam::app::v1::FragmentError* _msg = _internal_mutable_error(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.ResolvedFragment.error) - return _msg; +inline std::string* ModuleMetadata::_internal_mutable_first_run() { + _has_bits_[0] |= 0x00000001u; + return first_run_.Mutable(GetArenaForAllocation()); } -inline void ResolvedFragment::set_allocated_error(::viam::app::v1::FragmentError* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::FragmentError*>(_impl_.error_); +inline std::string* ModuleMetadata::release_first_run() { + // @@protoc_insertion_point(field_release:viam.app.v1.ModuleMetadata.first_run) + if (!_internal_has_first_run()) { + return nullptr; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::FragmentError*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000002u; + _has_bits_[0] &= ~0x00000001u; + auto* p = first_run_.Release(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (first_run_.IsDefault()) { + first_run_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; +} +inline void ModuleMetadata::set_allocated_first_run(std::string* first_run) { + if (first_run != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - _impl_._has_bits_[0] &= ~0x00000002u; + _has_bits_[0] &= ~0x00000001u; } - - _impl_.error_ = reinterpret_cast<::viam::app::v1::FragmentError*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ResolvedFragment.error) + first_run_.SetAllocated(first_run, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (first_run_.IsDefault()) { + first_run_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ModuleMetadata.first_run) } // ------------------------------------------------------------------- -// ListFragmentsRequest +// MLModelMetadata -// string organization_id = 1 [json_name = "organizationId"]; -inline void ListFragmentsRequest::clear_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.ClearToEmpty(); +// repeated string versions = 1 [json_name = "versions"]; +inline int MLModelMetadata::_internal_versions_size() const { + return versions_.size(); } -inline const std::string& ListFragmentsRequest::organization_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.ListFragmentsRequest.organization_id) - return _internal_organization_id(); +inline int MLModelMetadata::versions_size() const { + return _internal_versions_size(); } -template -inline PROTOBUF_ALWAYS_INLINE void ListFragmentsRequest::set_organization_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.ListFragmentsRequest.organization_id) +inline void MLModelMetadata::clear_versions() { + versions_.Clear(); } -inline std::string* ListFragmentsRequest::mutable_organization_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_organization_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.ListFragmentsRequest.organization_id) +inline std::string* MLModelMetadata::add_versions() { + std::string* _s = _internal_add_versions(); + // @@protoc_insertion_point(field_add_mutable:viam.app.v1.MLModelMetadata.versions) return _s; } -inline const std::string& ListFragmentsRequest::_internal_organization_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.organization_id_.Get(); -} -inline void ListFragmentsRequest::_internal_set_organization_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(value, GetArena()); -} -inline std::string* ListFragmentsRequest::_internal_mutable_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.organization_id_.Mutable( GetArena()); -} -inline std::string* ListFragmentsRequest::release_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.ListFragmentsRequest.organization_id) - return _impl_.organization_id_.Release(); -} -inline void ListFragmentsRequest::set_allocated_organization_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.organization_id_.IsDefault()) { - _impl_.organization_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ListFragmentsRequest.organization_id) -} - -// bool show_public = 2 [json_name = "showPublic"]; -inline void ListFragmentsRequest::clear_show_public() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.show_public_ = false; -} -inline bool ListFragmentsRequest::show_public() const { - // @@protoc_insertion_point(field_get:viam.app.v1.ListFragmentsRequest.show_public) - return _internal_show_public(); +inline const std::string& MLModelMetadata::_internal_versions(int index) const { + return versions_.Get(index); } -inline void ListFragmentsRequest::set_show_public(bool value) { - _internal_set_show_public(value); - // @@protoc_insertion_point(field_set:viam.app.v1.ListFragmentsRequest.show_public) +inline const std::string& MLModelMetadata::versions(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.MLModelMetadata.versions) + return _internal_versions(index); } -inline bool ListFragmentsRequest::_internal_show_public() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.show_public_; +inline std::string* MLModelMetadata::mutable_versions(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.MLModelMetadata.versions) + return versions_.Mutable(index); } -inline void ListFragmentsRequest::_internal_set_show_public(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.show_public_ = value; +inline void MLModelMetadata::set_versions(int index, const std::string& value) { + versions_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:viam.app.v1.MLModelMetadata.versions) } - -// repeated .viam.app.v1.FragmentVisibility fragment_visibility = 3 [json_name = "fragmentVisibility"]; -inline int ListFragmentsRequest::_internal_fragment_visibility_size() const { - return _internal_fragment_visibility().size(); +inline void MLModelMetadata::set_versions(int index, std::string&& value) { + versions_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:viam.app.v1.MLModelMetadata.versions) } -inline int ListFragmentsRequest::fragment_visibility_size() const { - return _internal_fragment_visibility_size(); +inline void MLModelMetadata::set_versions(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + versions_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:viam.app.v1.MLModelMetadata.versions) } -inline void ListFragmentsRequest::clear_fragment_visibility() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.fragment_visibility_.Clear(); +inline void MLModelMetadata::set_versions(int index, const char* value, size_t size) { + versions_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:viam.app.v1.MLModelMetadata.versions) } -inline ::viam::app::v1::FragmentVisibility ListFragmentsRequest::fragment_visibility(int index) const { - // @@protoc_insertion_point(field_get:viam.app.v1.ListFragmentsRequest.fragment_visibility) - return static_cast<::viam::app::v1::FragmentVisibility>(_internal_fragment_visibility().Get(index)); +inline std::string* MLModelMetadata::_internal_add_versions() { + return versions_.Add(); } -inline void ListFragmentsRequest::set_fragment_visibility(int index, ::viam::app::v1::FragmentVisibility value) { - _internal_mutable_fragment_visibility()->Set(index, value); - // @@protoc_insertion_point(field_set:viam.app.v1.ListFragmentsRequest.fragment_visibility) +inline void MLModelMetadata::add_versions(const std::string& value) { + versions_.Add()->assign(value); + // @@protoc_insertion_point(field_add:viam.app.v1.MLModelMetadata.versions) } -inline void ListFragmentsRequest::add_fragment_visibility(::viam::app::v1::FragmentVisibility value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_fragment_visibility()->Add(value); - // @@protoc_insertion_point(field_add:viam.app.v1.ListFragmentsRequest.fragment_visibility) +inline void MLModelMetadata::add_versions(std::string&& value) { + versions_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:viam.app.v1.MLModelMetadata.versions) } -inline const ::google::protobuf::RepeatedField& ListFragmentsRequest::fragment_visibility() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:viam.app.v1.ListFragmentsRequest.fragment_visibility) - return _internal_fragment_visibility(); +inline void MLModelMetadata::add_versions(const char* value) { + GOOGLE_DCHECK(value != nullptr); + versions_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:viam.app.v1.MLModelMetadata.versions) } -inline ::google::protobuf::RepeatedField* ListFragmentsRequest::mutable_fragment_visibility() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ListFragmentsRequest.fragment_visibility) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_fragment_visibility(); +inline void MLModelMetadata::add_versions(const char* value, size_t size) { + versions_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:viam.app.v1.MLModelMetadata.versions) } -inline const ::google::protobuf::RepeatedField& ListFragmentsRequest::_internal_fragment_visibility() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.fragment_visibility_; +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +MLModelMetadata::versions() const { + // @@protoc_insertion_point(field_list:viam.app.v1.MLModelMetadata.versions) + return versions_; } -inline ::google::protobuf::RepeatedField* ListFragmentsRequest::_internal_mutable_fragment_visibility() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.fragment_visibility_; +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +MLModelMetadata::mutable_versions() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.MLModelMetadata.versions) + return &versions_; } -// ------------------------------------------------------------------- - -// ListFragmentsResponse - -// repeated .viam.app.v1.Fragment fragments = 1 [json_name = "fragments"]; -inline int ListFragmentsResponse::_internal_fragments_size() const { - return _internal_fragments().size(); +// .viam.app.mltraining.v1.ModelType model_type = 2 [json_name = "modelType"]; +inline void MLModelMetadata::clear_model_type() { + model_type_ = 0; } -inline int ListFragmentsResponse::fragments_size() const { - return _internal_fragments_size(); +inline ::viam::app::mltraining::v1::ModelType MLModelMetadata::_internal_model_type() const { + return static_cast< ::viam::app::mltraining::v1::ModelType >(model_type_); } -inline void ListFragmentsResponse::clear_fragments() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.fragments_.Clear(); +inline ::viam::app::mltraining::v1::ModelType MLModelMetadata::model_type() const { + // @@protoc_insertion_point(field_get:viam.app.v1.MLModelMetadata.model_type) + return _internal_model_type(); } -inline ::viam::app::v1::Fragment* ListFragmentsResponse::mutable_fragments(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:viam.app.v1.ListFragmentsResponse.fragments) - return _internal_mutable_fragments()->Mutable(index); +inline void MLModelMetadata::_internal_set_model_type(::viam::app::mltraining::v1::ModelType value) { + + model_type_ = value; } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::Fragment>* ListFragmentsResponse::mutable_fragments() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ListFragmentsResponse.fragments) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_fragments(); +inline void MLModelMetadata::set_model_type(::viam::app::mltraining::v1::ModelType value) { + _internal_set_model_type(value); + // @@protoc_insertion_point(field_set:viam.app.v1.MLModelMetadata.model_type) } -inline const ::viam::app::v1::Fragment& ListFragmentsResponse::fragments(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.ListFragmentsResponse.fragments) - return _internal_fragments().Get(index); + +// .viam.app.mltraining.v1.ModelFramework model_framework = 3 [json_name = "modelFramework"]; +inline void MLModelMetadata::clear_model_framework() { + model_framework_ = 0; } -inline ::viam::app::v1::Fragment* ListFragmentsResponse::add_fragments() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::Fragment* _add = _internal_mutable_fragments()->Add(); - // @@protoc_insertion_point(field_add:viam.app.v1.ListFragmentsResponse.fragments) - return _add; +inline ::viam::app::mltraining::v1::ModelFramework MLModelMetadata::_internal_model_framework() const { + return static_cast< ::viam::app::mltraining::v1::ModelFramework >(model_framework_); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Fragment>& ListFragmentsResponse::fragments() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:viam.app.v1.ListFragmentsResponse.fragments) - return _internal_fragments(); +inline ::viam::app::mltraining::v1::ModelFramework MLModelMetadata::model_framework() const { + // @@protoc_insertion_point(field_get:viam.app.v1.MLModelMetadata.model_framework) + return _internal_model_framework(); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Fragment>& -ListFragmentsResponse::_internal_fragments() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.fragments_; +inline void MLModelMetadata::_internal_set_model_framework(::viam::app::mltraining::v1::ModelFramework value) { + + model_framework_ = value; } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::Fragment>* -ListFragmentsResponse::_internal_mutable_fragments() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.fragments_; +inline void MLModelMetadata::set_model_framework(::viam::app::mltraining::v1::ModelFramework value) { + _internal_set_model_framework(value); + // @@protoc_insertion_point(field_set:viam.app.v1.MLModelMetadata.model_framework) } // ------------------------------------------------------------------- -// GetFragmentRequest +// MLTrainingVersion -// string id = 1 [json_name = "id"]; -inline void GetFragmentRequest::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); +// string version = 1 [json_name = "version"]; +inline void MLTrainingVersion::clear_version() { + version_.ClearToEmpty(); } -inline const std::string& GetFragmentRequest::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.GetFragmentRequest.id) - return _internal_id(); +inline const std::string& MLTrainingVersion::version() const { + // @@protoc_insertion_point(field_get:viam.app.v1.MLTrainingVersion.version) + return _internal_version(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetFragmentRequest::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.GetFragmentRequest.id) +template +inline PROTOBUF_ALWAYS_INLINE +void MLTrainingVersion::set_version(ArgT0&& arg0, ArgT... args) { + + version_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.MLTrainingVersion.version) } -inline std::string* GetFragmentRequest::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.GetFragmentRequest.id) +inline std::string* MLTrainingVersion::mutable_version() { + std::string* _s = _internal_mutable_version(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.MLTrainingVersion.version) return _s; } -inline const std::string& GetFragmentRequest::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); +inline const std::string& MLTrainingVersion::_internal_version() const { + return version_.Get(); } -inline void GetFragmentRequest::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); +inline void MLTrainingVersion::_internal_set_version(const std::string& value) { + + version_.Set(value, GetArenaForAllocation()); } -inline std::string* GetFragmentRequest::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); +inline std::string* MLTrainingVersion::_internal_mutable_version() { + + return version_.Mutable(GetArenaForAllocation()); } -inline std::string* GetFragmentRequest::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.GetFragmentRequest.id) - return _impl_.id_.Release(); -} -inline void GetFragmentRequest::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetFragmentRequest.id) +inline std::string* MLTrainingVersion::release_version() { + // @@protoc_insertion_point(field_release:viam.app.v1.MLTrainingVersion.version) + return version_.Release(); +} +inline void MLTrainingVersion::set_allocated_version(std::string* version) { + if (version != nullptr) { + + } else { + + } + version_.SetAllocated(version, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (version_.IsDefault()) { + version_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.MLTrainingVersion.version) } -// ------------------------------------------------------------------- - -// GetFragmentResponse - -// .viam.app.v1.Fragment fragment = 1 [json_name = "fragment"]; -inline bool GetFragmentResponse::has_fragment() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.fragment_ != nullptr); - return value; +// .google.protobuf.Timestamp created_on = 2 [json_name = "createdOn"]; +inline bool MLTrainingVersion::_internal_has_created_on() const { + return this != internal_default_instance() && created_on_ != nullptr; } -inline void GetFragmentResponse::clear_fragment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.fragment_ != nullptr) _impl_.fragment_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; +inline bool MLTrainingVersion::has_created_on() const { + return _internal_has_created_on(); } -inline const ::viam::app::v1::Fragment& GetFragmentResponse::_internal_fragment() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::Fragment* p = _impl_.fragment_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_Fragment_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& MLTrainingVersion::_internal_created_on() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = created_on_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); } -inline const ::viam::app::v1::Fragment& GetFragmentResponse::fragment() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.GetFragmentResponse.fragment) - return _internal_fragment(); +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& MLTrainingVersion::created_on() const { + // @@protoc_insertion_point(field_get:viam.app.v1.MLTrainingVersion.created_on) + return _internal_created_on(); } -inline void GetFragmentResponse::unsafe_arena_set_allocated_fragment(::viam::app::v1::Fragment* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.fragment_); +inline void MLTrainingVersion::unsafe_arena_set_allocated_created_on( + ::PROTOBUF_NAMESPACE_ID::Timestamp* created_on) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(created_on_); } - _impl_.fragment_ = reinterpret_cast<::viam::app::v1::Fragment*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + created_on_ = created_on; + if (created_on) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.GetFragmentResponse.fragment) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.MLTrainingVersion.created_on) } -inline ::viam::app::v1::Fragment* GetFragmentResponse::release_fragment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::Fragment* released = _impl_.fragment_; - _impl_.fragment_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* MLTrainingVersion::release_created_on() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = created_on_; + created_on_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::viam::app::v1::Fragment* GetFragmentResponse::unsafe_arena_release_fragment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.GetFragmentResponse.fragment) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::Fragment* temp = _impl_.fragment_; - _impl_.fragment_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* MLTrainingVersion::unsafe_arena_release_created_on() { + // @@protoc_insertion_point(field_release:viam.app.v1.MLTrainingVersion.created_on) + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = created_on_; + created_on_ = nullptr; return temp; } -inline ::viam::app::v1::Fragment* GetFragmentResponse::_internal_mutable_fragment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.fragment_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::Fragment>(GetArena()); - _impl_.fragment_ = reinterpret_cast<::viam::app::v1::Fragment*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* MLTrainingVersion::_internal_mutable_created_on() { + + if (created_on_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + created_on_ = p; } - return _impl_.fragment_; + return created_on_; } -inline ::viam::app::v1::Fragment* GetFragmentResponse::mutable_fragment() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::viam::app::v1::Fragment* _msg = _internal_mutable_fragment(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.GetFragmentResponse.fragment) +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* MLTrainingVersion::mutable_created_on() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_created_on(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.MLTrainingVersion.created_on) return _msg; } -inline void GetFragmentResponse::set_allocated_fragment(::viam::app::v1::Fragment* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void MLTrainingVersion::set_allocated_created_on(::PROTOBUF_NAMESPACE_ID::Timestamp* created_on) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::Fragment*>(_impl_.fragment_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(created_on_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::Fragment*>(value)->GetArena(); + if (created_on) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(created_on)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + created_on = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, created_on, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.fragment_ = reinterpret_cast<::viam::app::v1::Fragment*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetFragmentResponse.fragment) + created_on_ = created_on; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.MLTrainingVersion.created_on) } // ------------------------------------------------------------------- -// CreateFragmentRequest +// MLTrainingMetadata -// string name = 1 [json_name = "name"]; -inline void CreateFragmentRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); -} -inline const std::string& CreateFragmentRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.CreateFragmentRequest.name) - return _internal_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE void CreateFragmentRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.CreateFragmentRequest.name) +// repeated .viam.app.v1.MLTrainingVersion versions = 5 [json_name = "versions"]; +inline int MLTrainingMetadata::_internal_versions_size() const { + return versions_.size(); } -inline std::string* CreateFragmentRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateFragmentRequest.name) - return _s; +inline int MLTrainingMetadata::versions_size() const { + return _internal_versions_size(); } -inline const std::string& CreateFragmentRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); +inline void MLTrainingMetadata::clear_versions() { + versions_.Clear(); } -inline void CreateFragmentRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); +inline ::viam::app::v1::MLTrainingVersion* MLTrainingMetadata::mutable_versions(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.MLTrainingMetadata.versions) + return versions_.Mutable(index); } -inline std::string* CreateFragmentRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::MLTrainingVersion >* +MLTrainingMetadata::mutable_versions() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.MLTrainingMetadata.versions) + return &versions_; } -inline std::string* CreateFragmentRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.CreateFragmentRequest.name) - return _impl_.name_.Release(); -} -inline void CreateFragmentRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateFragmentRequest.name) +inline const ::viam::app::v1::MLTrainingVersion& MLTrainingMetadata::_internal_versions(int index) const { + return versions_.Get(index); } - -// .google.protobuf.Struct config = 2 [json_name = "config"]; -inline bool CreateFragmentRequest::has_config() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.config_ != nullptr); - return value; +inline const ::viam::app::v1::MLTrainingVersion& MLTrainingMetadata::versions(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.MLTrainingMetadata.versions) + return _internal_versions(index); } -inline const ::google::protobuf::Struct& CreateFragmentRequest::_internal_config() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.config_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline ::viam::app::v1::MLTrainingVersion* MLTrainingMetadata::_internal_add_versions() { + return versions_.Add(); } -inline const ::google::protobuf::Struct& CreateFragmentRequest::config() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.CreateFragmentRequest.config) - return _internal_config(); +inline ::viam::app::v1::MLTrainingVersion* MLTrainingMetadata::add_versions() { + ::viam::app::v1::MLTrainingVersion* _add = _internal_add_versions(); + // @@protoc_insertion_point(field_add:viam.app.v1.MLTrainingMetadata.versions) + return _add; } -inline void CreateFragmentRequest::unsafe_arena_set_allocated_config(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.config_); - } - _impl_.config_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.CreateFragmentRequest.config) +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::MLTrainingVersion >& +MLTrainingMetadata::versions() const { + // @@protoc_insertion_point(field_list:viam.app.v1.MLTrainingMetadata.versions) + return versions_; } -inline ::google::protobuf::Struct* CreateFragmentRequest::release_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.config_; - _impl_.config_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; +// .viam.app.mltraining.v1.ModelType model_type = 2 [json_name = "modelType"]; +inline void MLTrainingMetadata::clear_model_type() { + model_type_ = 0; } -inline ::google::protobuf::Struct* CreateFragmentRequest::unsafe_arena_release_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.CreateFragmentRequest.config) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.config_; - _impl_.config_ = nullptr; - return temp; +inline ::viam::app::mltraining::v1::ModelType MLTrainingMetadata::_internal_model_type() const { + return static_cast< ::viam::app::mltraining::v1::ModelType >(model_type_); } -inline ::google::protobuf::Struct* CreateFragmentRequest::_internal_mutable_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.config_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.config_ = reinterpret_cast<::google::protobuf::Struct*>(p); - } - return _impl_.config_; +inline ::viam::app::mltraining::v1::ModelType MLTrainingMetadata::model_type() const { + // @@protoc_insertion_point(field_get:viam.app.v1.MLTrainingMetadata.model_type) + return _internal_model_type(); } -inline ::google::protobuf::Struct* CreateFragmentRequest::mutable_config() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_config(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateFragmentRequest.config) - return _msg; +inline void MLTrainingMetadata::_internal_set_model_type(::viam::app::mltraining::v1::ModelType value) { + + model_type_ = value; } -inline void CreateFragmentRequest::set_allocated_config(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.config_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.config_ = reinterpret_cast<::google::protobuf::Struct*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateFragmentRequest.config) +inline void MLTrainingMetadata::set_model_type(::viam::app::mltraining::v1::ModelType value) { + _internal_set_model_type(value); + // @@protoc_insertion_point(field_set:viam.app.v1.MLTrainingMetadata.model_type) } -// string organization_id = 3 [json_name = "organizationId"]; -inline void CreateFragmentRequest::clear_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.ClearToEmpty(); -} -inline const std::string& CreateFragmentRequest::organization_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.CreateFragmentRequest.organization_id) - return _internal_organization_id(); -} -template -inline PROTOBUF_ALWAYS_INLINE void CreateFragmentRequest::set_organization_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.CreateFragmentRequest.organization_id) -} -inline std::string* CreateFragmentRequest::mutable_organization_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_organization_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateFragmentRequest.organization_id) - return _s; +// .viam.app.mltraining.v1.ModelFramework model_framework = 3 [json_name = "modelFramework"]; +inline void MLTrainingMetadata::clear_model_framework() { + model_framework_ = 0; } -inline const std::string& CreateFragmentRequest::_internal_organization_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.organization_id_.Get(); +inline ::viam::app::mltraining::v1::ModelFramework MLTrainingMetadata::_internal_model_framework() const { + return static_cast< ::viam::app::mltraining::v1::ModelFramework >(model_framework_); } -inline void CreateFragmentRequest::_internal_set_organization_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(value, GetArena()); +inline ::viam::app::mltraining::v1::ModelFramework MLTrainingMetadata::model_framework() const { + // @@protoc_insertion_point(field_get:viam.app.v1.MLTrainingMetadata.model_framework) + return _internal_model_framework(); } -inline std::string* CreateFragmentRequest::_internal_mutable_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.organization_id_.Mutable( GetArena()); +inline void MLTrainingMetadata::_internal_set_model_framework(::viam::app::mltraining::v1::ModelFramework value) { + + model_framework_ = value; } -inline std::string* CreateFragmentRequest::release_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.CreateFragmentRequest.organization_id) - return _impl_.organization_id_.Release(); -} -inline void CreateFragmentRequest::set_allocated_organization_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.organization_id_.IsDefault()) { - _impl_.organization_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateFragmentRequest.organization_id) +inline void MLTrainingMetadata::set_model_framework(::viam::app::mltraining::v1::ModelFramework value) { + _internal_set_model_framework(value); + // @@protoc_insertion_point(field_set:viam.app.v1.MLTrainingMetadata.model_framework) } -// optional .viam.app.v1.FragmentVisibility visibility = 4 [json_name = "visibility"]; -inline bool CreateFragmentRequest::has_visibility() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - return value; -} -inline void CreateFragmentRequest::clear_visibility() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.visibility_ = 0; - _impl_._has_bits_[0] &= ~0x00000002u; +// bool draft = 4 [json_name = "draft"]; +inline void MLTrainingMetadata::clear_draft() { + draft_ = false; } -inline ::viam::app::v1::FragmentVisibility CreateFragmentRequest::visibility() const { - // @@protoc_insertion_point(field_get:viam.app.v1.CreateFragmentRequest.visibility) - return _internal_visibility(); +inline bool MLTrainingMetadata::_internal_draft() const { + return draft_; } -inline void CreateFragmentRequest::set_visibility(::viam::app::v1::FragmentVisibility value) { - _internal_set_visibility(value); - // @@protoc_insertion_point(field_set:viam.app.v1.CreateFragmentRequest.visibility) +inline bool MLTrainingMetadata::draft() const { + // @@protoc_insertion_point(field_get:viam.app.v1.MLTrainingMetadata.draft) + return _internal_draft(); } -inline ::viam::app::v1::FragmentVisibility CreateFragmentRequest::_internal_visibility() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::viam::app::v1::FragmentVisibility>(_impl_.visibility_); +inline void MLTrainingMetadata::_internal_set_draft(bool value) { + + draft_ = value; } -inline void CreateFragmentRequest::_internal_set_visibility(::viam::app::v1::FragmentVisibility value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.visibility_ = value; +inline void MLTrainingMetadata::set_draft(bool value) { + _internal_set_draft(value); + // @@protoc_insertion_point(field_set:viam.app.v1.MLTrainingMetadata.draft) } // ------------------------------------------------------------------- -// CreateFragmentResponse +// RegistryItem -// .viam.app.v1.Fragment fragment = 1 [json_name = "fragment"]; -inline bool CreateFragmentResponse::has_fragment() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.fragment_ != nullptr); - return value; -} -inline void CreateFragmentResponse::clear_fragment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.fragment_ != nullptr) _impl_.fragment_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; +// string item_id = 1 [json_name = "itemId"]; +inline void RegistryItem::clear_item_id() { + item_id_.ClearToEmpty(); } -inline const ::viam::app::v1::Fragment& CreateFragmentResponse::_internal_fragment() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::Fragment* p = _impl_.fragment_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_Fragment_default_instance_); +inline const std::string& RegistryItem::item_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RegistryItem.item_id) + return _internal_item_id(); } -inline const ::viam::app::v1::Fragment& CreateFragmentResponse::fragment() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.CreateFragmentResponse.fragment) - return _internal_fragment(); +template +inline PROTOBUF_ALWAYS_INLINE +void RegistryItem::set_item_id(ArgT0&& arg0, ArgT... args) { + + item_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.RegistryItem.item_id) } -inline void CreateFragmentResponse::unsafe_arena_set_allocated_fragment(::viam::app::v1::Fragment* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.fragment_); - } - _impl_.fragment_ = reinterpret_cast<::viam::app::v1::Fragment*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.CreateFragmentResponse.fragment) +inline std::string* RegistryItem::mutable_item_id() { + std::string* _s = _internal_mutable_item_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RegistryItem.item_id) + return _s; } -inline ::viam::app::v1::Fragment* CreateFragmentResponse::release_fragment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::Fragment* released = _impl_.fragment_; - _impl_.fragment_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; +inline const std::string& RegistryItem::_internal_item_id() const { + return item_id_.Get(); } -inline ::viam::app::v1::Fragment* CreateFragmentResponse::unsafe_arena_release_fragment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.CreateFragmentResponse.fragment) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::Fragment* temp = _impl_.fragment_; - _impl_.fragment_ = nullptr; - return temp; +inline void RegistryItem::_internal_set_item_id(const std::string& value) { + + item_id_.Set(value, GetArenaForAllocation()); } -inline ::viam::app::v1::Fragment* CreateFragmentResponse::_internal_mutable_fragment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.fragment_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::Fragment>(GetArena()); - _impl_.fragment_ = reinterpret_cast<::viam::app::v1::Fragment*>(p); - } - return _impl_.fragment_; +inline std::string* RegistryItem::_internal_mutable_item_id() { + + return item_id_.Mutable(GetArenaForAllocation()); } -inline ::viam::app::v1::Fragment* CreateFragmentResponse::mutable_fragment() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::viam::app::v1::Fragment* _msg = _internal_mutable_fragment(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateFragmentResponse.fragment) - return _msg; +inline std::string* RegistryItem::release_item_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.RegistryItem.item_id) + return item_id_.Release(); } -inline void CreateFragmentResponse::set_allocated_fragment(::viam::app::v1::Fragment* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::Fragment*>(_impl_.fragment_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::Fragment*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; +inline void RegistryItem::set_allocated_item_id(std::string* item_id) { + if (item_id != nullptr) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.fragment_ = reinterpret_cast<::viam::app::v1::Fragment*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateFragmentResponse.fragment) + item_id_.SetAllocated(item_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (item_id_.IsDefault()) { + item_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RegistryItem.item_id) } -// ------------------------------------------------------------------- - -// UpdateFragmentRequest - -// string id = 1 [json_name = "id"]; -inline void UpdateFragmentRequest::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); +// string organization_id = 2 [json_name = "organizationId"]; +inline void RegistryItem::clear_organization_id() { + organization_id_.ClearToEmpty(); } -inline const std::string& UpdateFragmentRequest::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.UpdateFragmentRequest.id) - return _internal_id(); +inline const std::string& RegistryItem::organization_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RegistryItem.organization_id) + return _internal_organization_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void UpdateFragmentRequest::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.UpdateFragmentRequest.id) +template +inline PROTOBUF_ALWAYS_INLINE +void RegistryItem::set_organization_id(ArgT0&& arg0, ArgT... args) { + + organization_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.RegistryItem.organization_id) } -inline std::string* UpdateFragmentRequest::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateFragmentRequest.id) +inline std::string* RegistryItem::mutable_organization_id() { + std::string* _s = _internal_mutable_organization_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RegistryItem.organization_id) return _s; } -inline const std::string& UpdateFragmentRequest::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); +inline const std::string& RegistryItem::_internal_organization_id() const { + return organization_id_.Get(); } -inline void UpdateFragmentRequest::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); +inline void RegistryItem::_internal_set_organization_id(const std::string& value) { + + organization_id_.Set(value, GetArenaForAllocation()); } -inline std::string* UpdateFragmentRequest::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); +inline std::string* RegistryItem::_internal_mutable_organization_id() { + + return organization_id_.Mutable(GetArenaForAllocation()); } -inline std::string* UpdateFragmentRequest::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.UpdateFragmentRequest.id) - return _impl_.id_.Release(); -} -inline void UpdateFragmentRequest::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateFragmentRequest.id) +inline std::string* RegistryItem::release_organization_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.RegistryItem.organization_id) + return organization_id_.Release(); +} +inline void RegistryItem::set_allocated_organization_id(std::string* organization_id) { + if (organization_id != nullptr) { + + } else { + + } + organization_id_.SetAllocated(organization_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (organization_id_.IsDefault()) { + organization_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RegistryItem.organization_id) } -// string name = 2 [json_name = "name"]; -inline void UpdateFragmentRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); +// string public_namespace = 3 [json_name = "publicNamespace"]; +inline void RegistryItem::clear_public_namespace() { + public_namespace_.ClearToEmpty(); } -inline const std::string& UpdateFragmentRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.UpdateFragmentRequest.name) - return _internal_name(); +inline const std::string& RegistryItem::public_namespace() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RegistryItem.public_namespace) + return _internal_public_namespace(); } -template -inline PROTOBUF_ALWAYS_INLINE void UpdateFragmentRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.UpdateFragmentRequest.name) +template +inline PROTOBUF_ALWAYS_INLINE +void RegistryItem::set_public_namespace(ArgT0&& arg0, ArgT... args) { + + public_namespace_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.RegistryItem.public_namespace) } -inline std::string* UpdateFragmentRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateFragmentRequest.name) +inline std::string* RegistryItem::mutable_public_namespace() { + std::string* _s = _internal_mutable_public_namespace(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RegistryItem.public_namespace) return _s; } -inline const std::string& UpdateFragmentRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); +inline const std::string& RegistryItem::_internal_public_namespace() const { + return public_namespace_.Get(); } -inline void UpdateFragmentRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); +inline void RegistryItem::_internal_set_public_namespace(const std::string& value) { + + public_namespace_.Set(value, GetArenaForAllocation()); } -inline std::string* UpdateFragmentRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); +inline std::string* RegistryItem::_internal_mutable_public_namespace() { + + return public_namespace_.Mutable(GetArenaForAllocation()); } -inline std::string* UpdateFragmentRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.UpdateFragmentRequest.name) - return _impl_.name_.Release(); -} -inline void UpdateFragmentRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateFragmentRequest.name) +inline std::string* RegistryItem::release_public_namespace() { + // @@protoc_insertion_point(field_release:viam.app.v1.RegistryItem.public_namespace) + return public_namespace_.Release(); } - -// .google.protobuf.Struct config = 3 [json_name = "config"]; -inline bool UpdateFragmentRequest::has_config() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.config_ != nullptr); - return value; +inline void RegistryItem::set_allocated_public_namespace(std::string* public_namespace) { + if (public_namespace != nullptr) { + + } else { + + } + public_namespace_.SetAllocated(public_namespace, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (public_namespace_.IsDefault()) { + public_namespace_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RegistryItem.public_namespace) } -inline const ::google::protobuf::Struct& UpdateFragmentRequest::_internal_config() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.config_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); + +// string name = 4 [json_name = "name"]; +inline void RegistryItem::clear_name() { + name_.ClearToEmpty(); } -inline const ::google::protobuf::Struct& UpdateFragmentRequest::config() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.UpdateFragmentRequest.config) - return _internal_config(); +inline const std::string& RegistryItem::name() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RegistryItem.name) + return _internal_name(); } -inline void UpdateFragmentRequest::unsafe_arena_set_allocated_config(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.config_); - } - _impl_.config_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.UpdateFragmentRequest.config) +template +inline PROTOBUF_ALWAYS_INLINE +void RegistryItem::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.RegistryItem.name) } -inline ::google::protobuf::Struct* UpdateFragmentRequest::release_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.config_; - _impl_.config_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; +inline std::string* RegistryItem::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RegistryItem.name) + return _s; } -inline ::google::protobuf::Struct* UpdateFragmentRequest::unsafe_arena_release_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.UpdateFragmentRequest.config) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.config_; - _impl_.config_ = nullptr; - return temp; +inline const std::string& RegistryItem::_internal_name() const { + return name_.Get(); } -inline ::google::protobuf::Struct* UpdateFragmentRequest::_internal_mutable_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.config_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.config_ = reinterpret_cast<::google::protobuf::Struct*>(p); - } - return _impl_.config_; +inline void RegistryItem::_internal_set_name(const std::string& value) { + + name_.Set(value, GetArenaForAllocation()); } -inline ::google::protobuf::Struct* UpdateFragmentRequest::mutable_config() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_config(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateFragmentRequest.config) - return _msg; +inline std::string* RegistryItem::_internal_mutable_name() { + + return name_.Mutable(GetArenaForAllocation()); } -inline void UpdateFragmentRequest::set_allocated_config(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.config_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; +inline std::string* RegistryItem::release_name() { + // @@protoc_insertion_point(field_release:viam.app.v1.RegistryItem.name) + return name_.Release(); +} +inline void RegistryItem::set_allocated_name(std::string* name) { + if (name != nullptr) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.config_ = reinterpret_cast<::google::protobuf::Struct*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateFragmentRequest.config) + 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.app.v1.RegistryItem.name) } -// optional bool public = 4 [json_name = "public"]; -inline bool UpdateFragmentRequest::has_public_() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - return value; -} -inline void UpdateFragmentRequest::clear_public_() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.public__ = false; - _impl_._has_bits_[0] &= ~0x00000002u; +// .viam.app.packages.v1.PackageType type = 5 [json_name = "type"]; +inline void RegistryItem::clear_type() { + type_ = 0; } -inline bool UpdateFragmentRequest::public_() const { - // @@protoc_insertion_point(field_get:viam.app.v1.UpdateFragmentRequest.public) - return _internal_public_(); +inline ::viam::app::packages::v1::PackageType RegistryItem::_internal_type() const { + return static_cast< ::viam::app::packages::v1::PackageType >(type_); } -inline void UpdateFragmentRequest::set_public_(bool value) { - _internal_set_public_(value); - // @@protoc_insertion_point(field_set:viam.app.v1.UpdateFragmentRequest.public) +inline ::viam::app::packages::v1::PackageType RegistryItem::type() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RegistryItem.type) + return _internal_type(); } -inline bool UpdateFragmentRequest::_internal_public_() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.public__; +inline void RegistryItem::_internal_set_type(::viam::app::packages::v1::PackageType value) { + + type_ = value; } -inline void UpdateFragmentRequest::_internal_set_public_(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.public__ = value; +inline void RegistryItem::set_type(::viam::app::packages::v1::PackageType value) { + _internal_set_type(value); + // @@protoc_insertion_point(field_set:viam.app.v1.RegistryItem.type) } -// optional .viam.app.v1.FragmentVisibility visibility = 5 [json_name = "visibility"]; -inline bool UpdateFragmentRequest::has_visibility() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; - return value; +// .viam.app.v1.Visibility visibility = 6 [json_name = "visibility"]; +inline void RegistryItem::clear_visibility() { + visibility_ = 0; } -inline void UpdateFragmentRequest::clear_visibility() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.visibility_ = 0; - _impl_._has_bits_[0] &= ~0x00000004u; +inline ::viam::app::v1::Visibility RegistryItem::_internal_visibility() const { + return static_cast< ::viam::app::v1::Visibility >(visibility_); } -inline ::viam::app::v1::FragmentVisibility UpdateFragmentRequest::visibility() const { - // @@protoc_insertion_point(field_get:viam.app.v1.UpdateFragmentRequest.visibility) +inline ::viam::app::v1::Visibility RegistryItem::visibility() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RegistryItem.visibility) return _internal_visibility(); } -inline void UpdateFragmentRequest::set_visibility(::viam::app::v1::FragmentVisibility value) { +inline void RegistryItem::_internal_set_visibility(::viam::app::v1::Visibility value) { + + visibility_ = value; +} +inline void RegistryItem::set_visibility(::viam::app::v1::Visibility value) { _internal_set_visibility(value); - // @@protoc_insertion_point(field_set:viam.app.v1.UpdateFragmentRequest.visibility) + // @@protoc_insertion_point(field_set:viam.app.v1.RegistryItem.visibility) } -inline ::viam::app::v1::FragmentVisibility UpdateFragmentRequest::_internal_visibility() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::viam::app::v1::FragmentVisibility>(_impl_.visibility_); + +// string url = 7 [json_name = "url"]; +inline void RegistryItem::clear_url() { + url_.ClearToEmpty(); } -inline void UpdateFragmentRequest::_internal_set_visibility(::viam::app::v1::FragmentVisibility value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - _impl_.visibility_ = value; +inline const std::string& RegistryItem::url() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RegistryItem.url) + return _internal_url(); } - -// ------------------------------------------------------------------- - -// UpdateFragmentResponse - -// .viam.app.v1.Fragment fragment = 1 [json_name = "fragment"]; -inline bool UpdateFragmentResponse::has_fragment() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.fragment_ != nullptr); - return value; +template +inline PROTOBUF_ALWAYS_INLINE +void RegistryItem::set_url(ArgT0&& arg0, ArgT... args) { + + url_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.RegistryItem.url) } -inline void UpdateFragmentResponse::clear_fragment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.fragment_ != nullptr) _impl_.fragment_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; +inline std::string* RegistryItem::mutable_url() { + std::string* _s = _internal_mutable_url(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RegistryItem.url) + return _s; } -inline const ::viam::app::v1::Fragment& UpdateFragmentResponse::_internal_fragment() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::Fragment* p = _impl_.fragment_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_Fragment_default_instance_); +inline const std::string& RegistryItem::_internal_url() const { + return url_.Get(); } -inline const ::viam::app::v1::Fragment& UpdateFragmentResponse::fragment() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.UpdateFragmentResponse.fragment) - return _internal_fragment(); +inline void RegistryItem::_internal_set_url(const std::string& value) { + + url_.Set(value, GetArenaForAllocation()); } -inline void UpdateFragmentResponse::unsafe_arena_set_allocated_fragment(::viam::app::v1::Fragment* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.fragment_); - } - _impl_.fragment_ = reinterpret_cast<::viam::app::v1::Fragment*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.UpdateFragmentResponse.fragment) +inline std::string* RegistryItem::_internal_mutable_url() { + + return url_.Mutable(GetArenaForAllocation()); } -inline ::viam::app::v1::Fragment* UpdateFragmentResponse::release_fragment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::Fragment* released = _impl_.fragment_; - _impl_.fragment_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; +inline std::string* RegistryItem::release_url() { + // @@protoc_insertion_point(field_release:viam.app.v1.RegistryItem.url) + return url_.Release(); +} +inline void RegistryItem::set_allocated_url(std::string* url) { + if (url != nullptr) { + + } else { + } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + url_.SetAllocated(url, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (url_.IsDefault()) { + url_.Set("", GetArenaForAllocation()); } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RegistryItem.url) } -inline ::viam::app::v1::Fragment* UpdateFragmentResponse::unsafe_arena_release_fragment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.UpdateFragmentResponse.fragment) - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::Fragment* temp = _impl_.fragment_; - _impl_.fragment_ = nullptr; - return temp; +// string description = 8 [json_name = "description"]; +inline void RegistryItem::clear_description() { + description_.ClearToEmpty(); } -inline ::viam::app::v1::Fragment* UpdateFragmentResponse::_internal_mutable_fragment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.fragment_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::Fragment>(GetArena()); - _impl_.fragment_ = reinterpret_cast<::viam::app::v1::Fragment*>(p); - } - return _impl_.fragment_; +inline const std::string& RegistryItem::description() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RegistryItem.description) + return _internal_description(); } -inline ::viam::app::v1::Fragment* UpdateFragmentResponse::mutable_fragment() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::viam::app::v1::Fragment* _msg = _internal_mutable_fragment(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateFragmentResponse.fragment) - return _msg; +template +inline PROTOBUF_ALWAYS_INLINE +void RegistryItem::set_description(ArgT0&& arg0, ArgT... args) { + + description_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.RegistryItem.description) } -inline void UpdateFragmentResponse::set_allocated_fragment(::viam::app::v1::Fragment* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::Fragment*>(_impl_.fragment_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::Fragment*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; +inline std::string* RegistryItem::mutable_description() { + std::string* _s = _internal_mutable_description(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RegistryItem.description) + return _s; +} +inline const std::string& RegistryItem::_internal_description() const { + return description_.Get(); +} +inline void RegistryItem::_internal_set_description(const std::string& value) { + + description_.Set(value, GetArenaForAllocation()); +} +inline std::string* RegistryItem::_internal_mutable_description() { + + return description_.Mutable(GetArenaForAllocation()); +} +inline std::string* RegistryItem::release_description() { + // @@protoc_insertion_point(field_release:viam.app.v1.RegistryItem.description) + return description_.Release(); +} +inline void RegistryItem::set_allocated_description(std::string* description) { + if (description != nullptr) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.fragment_ = reinterpret_cast<::viam::app::v1::Fragment*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateFragmentResponse.fragment) + description_.SetAllocated(description, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (description_.IsDefault()) { + description_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RegistryItem.description) } -// ------------------------------------------------------------------- - -// DeleteFragmentRequest - -// string id = 1 [json_name = "id"]; -inline void DeleteFragmentRequest::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); -} -inline const std::string& DeleteFragmentRequest::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.DeleteFragmentRequest.id) - return _internal_id(); +// int64 total_robot_usage = 9 [json_name = "totalRobotUsage"]; +inline void RegistryItem::clear_total_robot_usage() { + total_robot_usage_ = int64_t{0}; } -template -inline PROTOBUF_ALWAYS_INLINE void DeleteFragmentRequest::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.DeleteFragmentRequest.id) +inline int64_t RegistryItem::_internal_total_robot_usage() const { + return total_robot_usage_; } -inline std::string* DeleteFragmentRequest::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.DeleteFragmentRequest.id) - return _s; +inline int64_t RegistryItem::total_robot_usage() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RegistryItem.total_robot_usage) + return _internal_total_robot_usage(); } -inline const std::string& DeleteFragmentRequest::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); +inline void RegistryItem::_internal_set_total_robot_usage(int64_t value) { + + total_robot_usage_ = value; } -inline void DeleteFragmentRequest::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); +inline void RegistryItem::set_total_robot_usage(int64_t value) { + _internal_set_total_robot_usage(value); + // @@protoc_insertion_point(field_set:viam.app.v1.RegistryItem.total_robot_usage) } -inline std::string* DeleteFragmentRequest::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); + +// int64 total_external_robot_usage = 13 [json_name = "totalExternalRobotUsage"]; +inline void RegistryItem::clear_total_external_robot_usage() { + total_external_robot_usage_ = int64_t{0}; } -inline std::string* DeleteFragmentRequest::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.DeleteFragmentRequest.id) - return _impl_.id_.Release(); -} -inline void DeleteFragmentRequest::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.DeleteFragmentRequest.id) +inline int64_t RegistryItem::_internal_total_external_robot_usage() const { + return total_external_robot_usage_; } - -// ------------------------------------------------------------------- - -// DeleteFragmentResponse - -// ------------------------------------------------------------------- - -// GetFragmentHistoryRequest - -// string id = 1 [json_name = "id"]; -inline void GetFragmentHistoryRequest::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); +inline int64_t RegistryItem::total_external_robot_usage() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RegistryItem.total_external_robot_usage) + return _internal_total_external_robot_usage(); } -inline const std::string& GetFragmentHistoryRequest::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.GetFragmentHistoryRequest.id) - return _internal_id(); +inline void RegistryItem::_internal_set_total_external_robot_usage(int64_t value) { + + total_external_robot_usage_ = value; } -template -inline PROTOBUF_ALWAYS_INLINE void GetFragmentHistoryRequest::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.GetFragmentHistoryRequest.id) +inline void RegistryItem::set_total_external_robot_usage(int64_t value) { + _internal_set_total_external_robot_usage(value); + // @@protoc_insertion_point(field_set:viam.app.v1.RegistryItem.total_external_robot_usage) } -inline std::string* GetFragmentHistoryRequest::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.GetFragmentHistoryRequest.id) - return _s; + +// int64 total_organization_usage = 10 [json_name = "totalOrganizationUsage"]; +inline void RegistryItem::clear_total_organization_usage() { + total_organization_usage_ = int64_t{0}; } -inline const std::string& GetFragmentHistoryRequest::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); +inline int64_t RegistryItem::_internal_total_organization_usage() const { + return total_organization_usage_; } -inline void GetFragmentHistoryRequest::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); +inline int64_t RegistryItem::total_organization_usage() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RegistryItem.total_organization_usage) + return _internal_total_organization_usage(); } -inline std::string* GetFragmentHistoryRequest::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); +inline void RegistryItem::_internal_set_total_organization_usage(int64_t value) { + + total_organization_usage_ = value; } -inline std::string* GetFragmentHistoryRequest::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.GetFragmentHistoryRequest.id) - return _impl_.id_.Release(); -} -inline void GetFragmentHistoryRequest::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetFragmentHistoryRequest.id) +inline void RegistryItem::set_total_organization_usage(int64_t value) { + _internal_set_total_organization_usage(value); + // @@protoc_insertion_point(field_set:viam.app.v1.RegistryItem.total_organization_usage) } -// optional string page_token = 2 [json_name = "pageToken"]; -inline bool GetFragmentHistoryRequest::has_page_token() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - return value; +// int64 total_external_organization_usage = 14 [json_name = "totalExternalOrganizationUsage"]; +inline void RegistryItem::clear_total_external_organization_usage() { + total_external_organization_usage_ = int64_t{0}; } -inline void GetFragmentHistoryRequest::clear_page_token() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.page_token_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000001u; +inline int64_t RegistryItem::_internal_total_external_organization_usage() const { + return total_external_organization_usage_; } -inline const std::string& GetFragmentHistoryRequest::page_token() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.GetFragmentHistoryRequest.page_token) - return _internal_page_token(); +inline int64_t RegistryItem::total_external_organization_usage() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RegistryItem.total_external_organization_usage) + return _internal_total_external_organization_usage(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetFragmentHistoryRequest::set_page_token(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.page_token_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.GetFragmentHistoryRequest.page_token) +inline void RegistryItem::_internal_set_total_external_organization_usage(int64_t value) { + + total_external_organization_usage_ = value; } -inline std::string* GetFragmentHistoryRequest::mutable_page_token() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_page_token(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.GetFragmentHistoryRequest.page_token) - return _s; +inline void RegistryItem::set_total_external_organization_usage(int64_t value) { + _internal_set_total_external_organization_usage(value); + // @@protoc_insertion_point(field_set:viam.app.v1.RegistryItem.total_external_organization_usage) } -inline const std::string& GetFragmentHistoryRequest::_internal_page_token() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.page_token_.Get(); + +// .viam.app.v1.ModuleMetadata module_metadata = 11 [json_name = "moduleMetadata"]; +inline bool RegistryItem::_internal_has_module_metadata() const { + return metadata_case() == kModuleMetadata; } -inline void GetFragmentHistoryRequest::_internal_set_page_token(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.page_token_.Set(value, GetArena()); +inline bool RegistryItem::has_module_metadata() const { + return _internal_has_module_metadata(); } -inline std::string* GetFragmentHistoryRequest::_internal_mutable_page_token() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.page_token_.Mutable( GetArena()); +inline void RegistryItem::set_has_module_metadata() { + _oneof_case_[0] = kModuleMetadata; } -inline std::string* GetFragmentHistoryRequest::release_page_token() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.GetFragmentHistoryRequest.page_token) - if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { - return nullptr; +inline void RegistryItem::clear_module_metadata() { + if (_internal_has_module_metadata()) { + if (GetArenaForAllocation() == nullptr) { + delete metadata_.module_metadata_; + } + clear_has_metadata(); } - _impl_._has_bits_[0] &= ~0x00000001u; - auto* released = _impl_.page_token_.Release(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.page_token_.Set("", GetArena()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return released; } -inline void GetFragmentHistoryRequest::set_allocated_page_token(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; +inline ::viam::app::v1::ModuleMetadata* RegistryItem::release_module_metadata() { + // @@protoc_insertion_point(field_release:viam.app.v1.RegistryItem.module_metadata) + if (_internal_has_module_metadata()) { + clear_has_metadata(); + ::viam::app::v1::ModuleMetadata* temp = metadata_.module_metadata_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + metadata_.module_metadata_ = nullptr; + return temp; } else { - _impl_._has_bits_[0] &= ~0x00000001u; + return nullptr; } - _impl_.page_token_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.page_token_.IsDefault()) { - _impl_.page_token_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetFragmentHistoryRequest.page_token) } - -// optional int64 page_limit = 3 [json_name = "pageLimit"]; -inline bool GetFragmentHistoryRequest::has_page_limit() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - return value; +inline const ::viam::app::v1::ModuleMetadata& RegistryItem::_internal_module_metadata() const { + return _internal_has_module_metadata() + ? *metadata_.module_metadata_ + : reinterpret_cast< ::viam::app::v1::ModuleMetadata&>(::viam::app::v1::_ModuleMetadata_default_instance_); } -inline void GetFragmentHistoryRequest::clear_page_limit() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.page_limit_ = ::int64_t{0}; - _impl_._has_bits_[0] &= ~0x00000002u; +inline const ::viam::app::v1::ModuleMetadata& RegistryItem::module_metadata() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RegistryItem.module_metadata) + return _internal_module_metadata(); } -inline ::int64_t GetFragmentHistoryRequest::page_limit() const { - // @@protoc_insertion_point(field_get:viam.app.v1.GetFragmentHistoryRequest.page_limit) - return _internal_page_limit(); +inline ::viam::app::v1::ModuleMetadata* RegistryItem::unsafe_arena_release_module_metadata() { + // @@protoc_insertion_point(field_unsafe_arena_release:viam.app.v1.RegistryItem.module_metadata) + if (_internal_has_module_metadata()) { + clear_has_metadata(); + ::viam::app::v1::ModuleMetadata* temp = metadata_.module_metadata_; + metadata_.module_metadata_ = nullptr; + return temp; + } else { + return nullptr; + } } -inline void GetFragmentHistoryRequest::set_page_limit(::int64_t value) { - _internal_set_page_limit(value); - // @@protoc_insertion_point(field_set:viam.app.v1.GetFragmentHistoryRequest.page_limit) +inline void RegistryItem::unsafe_arena_set_allocated_module_metadata(::viam::app::v1::ModuleMetadata* module_metadata) { + clear_metadata(); + if (module_metadata) { + set_has_module_metadata(); + metadata_.module_metadata_ = module_metadata; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.RegistryItem.module_metadata) } -inline ::int64_t GetFragmentHistoryRequest::_internal_page_limit() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.page_limit_; +inline ::viam::app::v1::ModuleMetadata* RegistryItem::_internal_mutable_module_metadata() { + if (!_internal_has_module_metadata()) { + clear_metadata(); + set_has_module_metadata(); + metadata_.module_metadata_ = CreateMaybeMessage< ::viam::app::v1::ModuleMetadata >(GetArenaForAllocation()); + } + return metadata_.module_metadata_; } -inline void GetFragmentHistoryRequest::_internal_set_page_limit(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.page_limit_ = value; +inline ::viam::app::v1::ModuleMetadata* RegistryItem::mutable_module_metadata() { + ::viam::app::v1::ModuleMetadata* _msg = _internal_mutable_module_metadata(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RegistryItem.module_metadata) + return _msg; } -// ------------------------------------------------------------------- - -// GetFragmentHistoryResponse - -// repeated .viam.app.v1.FragmentHistoryEntry history = 1 [json_name = "history"]; -inline int GetFragmentHistoryResponse::_internal_history_size() const { - return _internal_history().size(); -} -inline int GetFragmentHistoryResponse::history_size() const { - return _internal_history_size(); -} -inline void GetFragmentHistoryResponse::clear_history() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.history_.Clear(); +// .viam.app.v1.MLModelMetadata ml_model_metadata = 12 [json_name = "mlModelMetadata"]; +inline bool RegistryItem::_internal_has_ml_model_metadata() const { + return metadata_case() == kMlModelMetadata; } -inline ::viam::app::v1::FragmentHistoryEntry* GetFragmentHistoryResponse::mutable_history(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:viam.app.v1.GetFragmentHistoryResponse.history) - return _internal_mutable_history()->Mutable(index); +inline bool RegistryItem::has_ml_model_metadata() const { + return _internal_has_ml_model_metadata(); } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::FragmentHistoryEntry>* GetFragmentHistoryResponse::mutable_history() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.GetFragmentHistoryResponse.history) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_history(); +inline void RegistryItem::set_has_ml_model_metadata() { + _oneof_case_[0] = kMlModelMetadata; } -inline const ::viam::app::v1::FragmentHistoryEntry& GetFragmentHistoryResponse::history(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.GetFragmentHistoryResponse.history) - return _internal_history().Get(index); +inline void RegistryItem::clear_ml_model_metadata() { + if (_internal_has_ml_model_metadata()) { + if (GetArenaForAllocation() == nullptr) { + delete metadata_.ml_model_metadata_; + } + clear_has_metadata(); + } } -inline ::viam::app::v1::FragmentHistoryEntry* GetFragmentHistoryResponse::add_history() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::FragmentHistoryEntry* _add = _internal_mutable_history()->Add(); - // @@protoc_insertion_point(field_add:viam.app.v1.GetFragmentHistoryResponse.history) - return _add; +inline ::viam::app::v1::MLModelMetadata* RegistryItem::release_ml_model_metadata() { + // @@protoc_insertion_point(field_release:viam.app.v1.RegistryItem.ml_model_metadata) + if (_internal_has_ml_model_metadata()) { + clear_has_metadata(); + ::viam::app::v1::MLModelMetadata* temp = metadata_.ml_model_metadata_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + metadata_.ml_model_metadata_ = nullptr; + return temp; + } else { + return nullptr; + } } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::FragmentHistoryEntry>& GetFragmentHistoryResponse::history() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:viam.app.v1.GetFragmentHistoryResponse.history) - return _internal_history(); +inline const ::viam::app::v1::MLModelMetadata& RegistryItem::_internal_ml_model_metadata() const { + return _internal_has_ml_model_metadata() + ? *metadata_.ml_model_metadata_ + : reinterpret_cast< ::viam::app::v1::MLModelMetadata&>(::viam::app::v1::_MLModelMetadata_default_instance_); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::FragmentHistoryEntry>& -GetFragmentHistoryResponse::_internal_history() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.history_; +inline const ::viam::app::v1::MLModelMetadata& RegistryItem::ml_model_metadata() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RegistryItem.ml_model_metadata) + return _internal_ml_model_metadata(); } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::FragmentHistoryEntry>* -GetFragmentHistoryResponse::_internal_mutable_history() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.history_; +inline ::viam::app::v1::MLModelMetadata* RegistryItem::unsafe_arena_release_ml_model_metadata() { + // @@protoc_insertion_point(field_unsafe_arena_release:viam.app.v1.RegistryItem.ml_model_metadata) + if (_internal_has_ml_model_metadata()) { + clear_has_metadata(); + ::viam::app::v1::MLModelMetadata* temp = metadata_.ml_model_metadata_; + metadata_.ml_model_metadata_ = nullptr; + return temp; + } else { + return nullptr; + } } - -// string next_page_token = 2 [json_name = "nextPageToken"]; -inline void GetFragmentHistoryResponse::clear_next_page_token() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.next_page_token_.ClearToEmpty(); +inline void RegistryItem::unsafe_arena_set_allocated_ml_model_metadata(::viam::app::v1::MLModelMetadata* ml_model_metadata) { + clear_metadata(); + if (ml_model_metadata) { + set_has_ml_model_metadata(); + metadata_.ml_model_metadata_ = ml_model_metadata; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.RegistryItem.ml_model_metadata) } -inline const std::string& GetFragmentHistoryResponse::next_page_token() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.GetFragmentHistoryResponse.next_page_token) - return _internal_next_page_token(); +inline ::viam::app::v1::MLModelMetadata* RegistryItem::_internal_mutable_ml_model_metadata() { + if (!_internal_has_ml_model_metadata()) { + clear_metadata(); + set_has_ml_model_metadata(); + metadata_.ml_model_metadata_ = CreateMaybeMessage< ::viam::app::v1::MLModelMetadata >(GetArenaForAllocation()); + } + return metadata_.ml_model_metadata_; } -template -inline PROTOBUF_ALWAYS_INLINE void GetFragmentHistoryResponse::set_next_page_token(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.next_page_token_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.GetFragmentHistoryResponse.next_page_token) +inline ::viam::app::v1::MLModelMetadata* RegistryItem::mutable_ml_model_metadata() { + ::viam::app::v1::MLModelMetadata* _msg = _internal_mutable_ml_model_metadata(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RegistryItem.ml_model_metadata) + return _msg; } -inline std::string* GetFragmentHistoryResponse::mutable_next_page_token() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_next_page_token(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.GetFragmentHistoryResponse.next_page_token) - return _s; + +// .viam.app.v1.MLTrainingMetadata ml_training_metadata = 18 [json_name = "mlTrainingMetadata"]; +inline bool RegistryItem::_internal_has_ml_training_metadata() const { + return metadata_case() == kMlTrainingMetadata; } -inline const std::string& GetFragmentHistoryResponse::_internal_next_page_token() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.next_page_token_.Get(); +inline bool RegistryItem::has_ml_training_metadata() const { + return _internal_has_ml_training_metadata(); } -inline void GetFragmentHistoryResponse::_internal_set_next_page_token(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.next_page_token_.Set(value, GetArena()); +inline void RegistryItem::set_has_ml_training_metadata() { + _oneof_case_[0] = kMlTrainingMetadata; } -inline std::string* GetFragmentHistoryResponse::_internal_mutable_next_page_token() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.next_page_token_.Mutable( GetArena()); +inline void RegistryItem::clear_ml_training_metadata() { + if (_internal_has_ml_training_metadata()) { + if (GetArenaForAllocation() == nullptr) { + delete metadata_.ml_training_metadata_; + } + clear_has_metadata(); + } } -inline std::string* GetFragmentHistoryResponse::release_next_page_token() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.GetFragmentHistoryResponse.next_page_token) - return _impl_.next_page_token_.Release(); -} -inline void GetFragmentHistoryResponse::set_allocated_next_page_token(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.next_page_token_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.next_page_token_.IsDefault()) { - _impl_.next_page_token_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetFragmentHistoryResponse.next_page_token) +inline ::viam::app::v1::MLTrainingMetadata* RegistryItem::release_ml_training_metadata() { + // @@protoc_insertion_point(field_release:viam.app.v1.RegistryItem.ml_training_metadata) + if (_internal_has_ml_training_metadata()) { + clear_has_metadata(); + ::viam::app::v1::MLTrainingMetadata* temp = metadata_.ml_training_metadata_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + metadata_.ml_training_metadata_ = nullptr; + return temp; + } else { + return nullptr; + } } - -// ------------------------------------------------------------------- - -// ListRobotsRequest - -// string location_id = 1 [json_name = "locationId"]; -inline void ListRobotsRequest::clear_location_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.location_id_.ClearToEmpty(); +inline const ::viam::app::v1::MLTrainingMetadata& RegistryItem::_internal_ml_training_metadata() const { + return _internal_has_ml_training_metadata() + ? *metadata_.ml_training_metadata_ + : reinterpret_cast< ::viam::app::v1::MLTrainingMetadata&>(::viam::app::v1::_MLTrainingMetadata_default_instance_); } -inline const std::string& ListRobotsRequest::location_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.ListRobotsRequest.location_id) - return _internal_location_id(); +inline const ::viam::app::v1::MLTrainingMetadata& RegistryItem::ml_training_metadata() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RegistryItem.ml_training_metadata) + return _internal_ml_training_metadata(); } -template -inline PROTOBUF_ALWAYS_INLINE void ListRobotsRequest::set_location_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.location_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.ListRobotsRequest.location_id) +inline ::viam::app::v1::MLTrainingMetadata* RegistryItem::unsafe_arena_release_ml_training_metadata() { + // @@protoc_insertion_point(field_unsafe_arena_release:viam.app.v1.RegistryItem.ml_training_metadata) + if (_internal_has_ml_training_metadata()) { + clear_has_metadata(); + ::viam::app::v1::MLTrainingMetadata* temp = metadata_.ml_training_metadata_; + metadata_.ml_training_metadata_ = nullptr; + return temp; + } else { + return nullptr; + } } -inline std::string* ListRobotsRequest::mutable_location_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_location_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.ListRobotsRequest.location_id) - return _s; +inline void RegistryItem::unsafe_arena_set_allocated_ml_training_metadata(::viam::app::v1::MLTrainingMetadata* ml_training_metadata) { + clear_metadata(); + if (ml_training_metadata) { + set_has_ml_training_metadata(); + metadata_.ml_training_metadata_ = ml_training_metadata; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.RegistryItem.ml_training_metadata) } -inline const std::string& ListRobotsRequest::_internal_location_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.location_id_.Get(); +inline ::viam::app::v1::MLTrainingMetadata* RegistryItem::_internal_mutable_ml_training_metadata() { + if (!_internal_has_ml_training_metadata()) { + clear_metadata(); + set_has_ml_training_metadata(); + metadata_.ml_training_metadata_ = CreateMaybeMessage< ::viam::app::v1::MLTrainingMetadata >(GetArenaForAllocation()); + } + return metadata_.ml_training_metadata_; } -inline void ListRobotsRequest::_internal_set_location_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.location_id_.Set(value, GetArena()); +inline ::viam::app::v1::MLTrainingMetadata* RegistryItem::mutable_ml_training_metadata() { + ::viam::app::v1::MLTrainingMetadata* _msg = _internal_mutable_ml_training_metadata(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RegistryItem.ml_training_metadata) + return _msg; } -inline std::string* ListRobotsRequest::_internal_mutable_location_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.location_id_.Mutable( GetArena()); + +// .google.protobuf.Timestamp created_at = 15 [json_name = "createdAt"]; +inline bool RegistryItem::_internal_has_created_at() const { + return this != internal_default_instance() && created_at_ != nullptr; } -inline std::string* ListRobotsRequest::release_location_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.ListRobotsRequest.location_id) - return _impl_.location_id_.Release(); -} -inline void ListRobotsRequest::set_allocated_location_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.location_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.location_id_.IsDefault()) { - _impl_.location_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ListRobotsRequest.location_id) +inline bool RegistryItem::has_created_at() const { + return _internal_has_created_at(); } - -// ------------------------------------------------------------------- - -// ListMachineFragmentsRequest - -// string machine_id = 1 [json_name = "machineId"]; -inline void ListMachineFragmentsRequest::clear_machine_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.machine_id_.ClearToEmpty(); +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& RegistryItem::_internal_created_at() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = created_at_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); } -inline const std::string& ListMachineFragmentsRequest::machine_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.ListMachineFragmentsRequest.machine_id) - return _internal_machine_id(); +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& RegistryItem::created_at() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RegistryItem.created_at) + return _internal_created_at(); } -template -inline PROTOBUF_ALWAYS_INLINE void ListMachineFragmentsRequest::set_machine_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.machine_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.ListMachineFragmentsRequest.machine_id) +inline void RegistryItem::unsafe_arena_set_allocated_created_at( + ::PROTOBUF_NAMESPACE_ID::Timestamp* created_at) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(created_at_); + } + created_at_ = created_at; + if (created_at) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.RegistryItem.created_at) } -inline std::string* ListMachineFragmentsRequest::mutable_machine_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_machine_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.ListMachineFragmentsRequest.machine_id) - return _s; +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* RegistryItem::release_created_at() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = created_at_; + created_at_ = 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 const std::string& ListMachineFragmentsRequest::_internal_machine_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.machine_id_.Get(); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* RegistryItem::unsafe_arena_release_created_at() { + // @@protoc_insertion_point(field_release:viam.app.v1.RegistryItem.created_at) + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = created_at_; + created_at_ = nullptr; + return temp; } -inline void ListMachineFragmentsRequest::_internal_set_machine_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.machine_id_.Set(value, GetArena()); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* RegistryItem::_internal_mutable_created_at() { + + if (created_at_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + created_at_ = p; + } + return created_at_; } -inline std::string* ListMachineFragmentsRequest::_internal_mutable_machine_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.machine_id_.Mutable( GetArena()); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* RegistryItem::mutable_created_at() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_created_at(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RegistryItem.created_at) + return _msg; } -inline std::string* ListMachineFragmentsRequest::release_machine_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.ListMachineFragmentsRequest.machine_id) - return _impl_.machine_id_.Release(); -} -inline void ListMachineFragmentsRequest::set_allocated_machine_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.machine_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.machine_id_.IsDefault()) { - _impl_.machine_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ListMachineFragmentsRequest.machine_id) +inline void RegistryItem::set_allocated_created_at(::PROTOBUF_NAMESPACE_ID::Timestamp* created_at) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(created_at_); + } + if (created_at) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(created_at)); + if (message_arena != submessage_arena) { + created_at = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, created_at, submessage_arena); + } + + } else { + + } + created_at_ = created_at; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RegistryItem.created_at) } -// repeated string additional_fragment_ids = 2 [json_name = "additionalFragmentIds"]; -inline int ListMachineFragmentsRequest::_internal_additional_fragment_ids_size() const { - return _internal_additional_fragment_ids().size(); -} -inline int ListMachineFragmentsRequest::additional_fragment_ids_size() const { - return _internal_additional_fragment_ids_size(); +// .google.protobuf.Timestamp updated_at = 16 [json_name = "updatedAt"]; +inline bool RegistryItem::_internal_has_updated_at() const { + return this != internal_default_instance() && updated_at_ != nullptr; } -inline void ListMachineFragmentsRequest::clear_additional_fragment_ids() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.additional_fragment_ids_.Clear(); +inline bool RegistryItem::has_updated_at() const { + return _internal_has_updated_at(); } -inline std::string* ListMachineFragmentsRequest::add_additional_fragment_ids() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_additional_fragment_ids()->Add(); - // @@protoc_insertion_point(field_add_mutable:viam.app.v1.ListMachineFragmentsRequest.additional_fragment_ids) - return _s; +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& RegistryItem::_internal_updated_at() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = updated_at_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); } -inline const std::string& ListMachineFragmentsRequest::additional_fragment_ids(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.ListMachineFragmentsRequest.additional_fragment_ids) - return _internal_additional_fragment_ids().Get(index); +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& RegistryItem::updated_at() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RegistryItem.updated_at) + return _internal_updated_at(); } -inline std::string* ListMachineFragmentsRequest::mutable_additional_fragment_ids(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:viam.app.v1.ListMachineFragmentsRequest.additional_fragment_ids) - return _internal_mutable_additional_fragment_ids()->Mutable(index); +inline void RegistryItem::unsafe_arena_set_allocated_updated_at( + ::PROTOBUF_NAMESPACE_ID::Timestamp* updated_at) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(updated_at_); + } + updated_at_ = updated_at; + if (updated_at) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.RegistryItem.updated_at) } -inline void ListMachineFragmentsRequest::set_additional_fragment_ids(int index, const std::string& value) { - _internal_mutable_additional_fragment_ids()->Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set:viam.app.v1.ListMachineFragmentsRequest.additional_fragment_ids) +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* RegistryItem::release_updated_at() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = updated_at_; + updated_at_ = 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 void ListMachineFragmentsRequest::set_additional_fragment_ids(int index, std::string&& value) { - _internal_mutable_additional_fragment_ids()->Mutable(index)->assign(std::move(value)); - // @@protoc_insertion_point(field_set:viam.app.v1.ListMachineFragmentsRequest.additional_fragment_ids) +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* RegistryItem::unsafe_arena_release_updated_at() { + // @@protoc_insertion_point(field_release:viam.app.v1.RegistryItem.updated_at) + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = updated_at_; + updated_at_ = nullptr; + return temp; } -inline void ListMachineFragmentsRequest::set_additional_fragment_ids(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_additional_fragment_ids()->Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:viam.app.v1.ListMachineFragmentsRequest.additional_fragment_ids) +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* RegistryItem::_internal_mutable_updated_at() { + + if (updated_at_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + updated_at_ = p; + } + return updated_at_; } -inline void ListMachineFragmentsRequest::set_additional_fragment_ids(int index, const char* value, - std::size_t size) { - _internal_mutable_additional_fragment_ids()->Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:viam.app.v1.ListMachineFragmentsRequest.additional_fragment_ids) +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* RegistryItem::mutable_updated_at() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_updated_at(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RegistryItem.updated_at) + return _msg; } -inline void ListMachineFragmentsRequest::set_additional_fragment_ids(int index, absl::string_view value) { - _internal_mutable_additional_fragment_ids()->Mutable(index)->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_set_string_piece:viam.app.v1.ListMachineFragmentsRequest.additional_fragment_ids) +inline void RegistryItem::set_allocated_updated_at(::PROTOBUF_NAMESPACE_ID::Timestamp* updated_at) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(updated_at_); + } + if (updated_at) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(updated_at)); + if (message_arena != submessage_arena) { + updated_at = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, updated_at, submessage_arena); + } + + } else { + + } + updated_at_ = updated_at; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RegistryItem.updated_at) } -inline void ListMachineFragmentsRequest::add_additional_fragment_ids(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_additional_fragment_ids()->Add()->assign(value); - // @@protoc_insertion_point(field_add:viam.app.v1.ListMachineFragmentsRequest.additional_fragment_ids) + +inline bool RegistryItem::has_metadata() const { + return metadata_case() != METADATA_NOT_SET; } -inline void ListMachineFragmentsRequest::add_additional_fragment_ids(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_additional_fragment_ids()->Add(std::move(value)); - // @@protoc_insertion_point(field_add:viam.app.v1.ListMachineFragmentsRequest.additional_fragment_ids) +inline void RegistryItem::clear_has_metadata() { + _oneof_case_[0] = METADATA_NOT_SET; } -inline void ListMachineFragmentsRequest::add_additional_fragment_ids(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_additional_fragment_ids()->Add()->assign(value); - // @@protoc_insertion_point(field_add_char:viam.app.v1.ListMachineFragmentsRequest.additional_fragment_ids) +inline RegistryItem::MetadataCase RegistryItem::metadata_case() const { + return RegistryItem::MetadataCase(_oneof_case_[0]); } -inline void ListMachineFragmentsRequest::add_additional_fragment_ids(const char* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_additional_fragment_ids()->Add()->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:viam.app.v1.ListMachineFragmentsRequest.additional_fragment_ids) +// ------------------------------------------------------------------- + +// GetRegistryItemRequest + +// string item_id = 1 [json_name = "itemId"]; +inline void GetRegistryItemRequest::clear_item_id() { + item_id_.ClearToEmpty(); } -inline void ListMachineFragmentsRequest::add_additional_fragment_ids(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_additional_fragment_ids()->Add()->assign(value.data(), value.size()); - // @@protoc_insertion_point(field_add_string_piece:viam.app.v1.ListMachineFragmentsRequest.additional_fragment_ids) +inline const std::string& GetRegistryItemRequest::item_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetRegistryItemRequest.item_id) + return _internal_item_id(); } -inline const ::google::protobuf::RepeatedPtrField& -ListMachineFragmentsRequest::additional_fragment_ids() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:viam.app.v1.ListMachineFragmentsRequest.additional_fragment_ids) - return _internal_additional_fragment_ids(); +template +inline PROTOBUF_ALWAYS_INLINE +void GetRegistryItemRequest::set_item_id(ArgT0&& arg0, ArgT... args) { + + item_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.GetRegistryItemRequest.item_id) } -inline ::google::protobuf::RepeatedPtrField* -ListMachineFragmentsRequest::mutable_additional_fragment_ids() ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ListMachineFragmentsRequest.additional_fragment_ids) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_additional_fragment_ids(); +inline std::string* GetRegistryItemRequest::mutable_item_id() { + std::string* _s = _internal_mutable_item_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRegistryItemRequest.item_id) + return _s; } -inline const ::google::protobuf::RepeatedPtrField& -ListMachineFragmentsRequest::_internal_additional_fragment_ids() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.additional_fragment_ids_; +inline const std::string& GetRegistryItemRequest::_internal_item_id() const { + return item_id_.Get(); } -inline ::google::protobuf::RepeatedPtrField* -ListMachineFragmentsRequest::_internal_mutable_additional_fragment_ids() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.additional_fragment_ids_; +inline void GetRegistryItemRequest::_internal_set_item_id(const std::string& value) { + + item_id_.Set(value, GetArenaForAllocation()); } - -// ------------------------------------------------------------------- - -// ListMachineFragmentsResponse - -// repeated .viam.app.v1.Fragment fragments = 1 [json_name = "fragments"]; -inline int ListMachineFragmentsResponse::_internal_fragments_size() const { - return _internal_fragments().size(); +inline std::string* GetRegistryItemRequest::_internal_mutable_item_id() { + + return item_id_.Mutable(GetArenaForAllocation()); } -inline int ListMachineFragmentsResponse::fragments_size() const { - return _internal_fragments_size(); +inline std::string* GetRegistryItemRequest::release_item_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.GetRegistryItemRequest.item_id) + return item_id_.Release(); } -inline void ListMachineFragmentsResponse::clear_fragments() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.fragments_.Clear(); +inline void GetRegistryItemRequest::set_allocated_item_id(std::string* item_id) { + if (item_id != nullptr) { + + } else { + + } + item_id_.SetAllocated(item_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (item_id_.IsDefault()) { + item_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetRegistryItemRequest.item_id) } -inline ::viam::app::v1::Fragment* ListMachineFragmentsResponse::mutable_fragments(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:viam.app.v1.ListMachineFragmentsResponse.fragments) - return _internal_mutable_fragments()->Mutable(index); + +// optional bool include_markdown_documentation = 2 [json_name = "includeMarkdownDocumentation"]; +inline bool GetRegistryItemRequest::_internal_has_include_markdown_documentation() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::Fragment>* ListMachineFragmentsResponse::mutable_fragments() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ListMachineFragmentsResponse.fragments) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_fragments(); +inline bool GetRegistryItemRequest::has_include_markdown_documentation() const { + return _internal_has_include_markdown_documentation(); } -inline const ::viam::app::v1::Fragment& ListMachineFragmentsResponse::fragments(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.ListMachineFragmentsResponse.fragments) - return _internal_fragments().Get(index); +inline void GetRegistryItemRequest::clear_include_markdown_documentation() { + include_markdown_documentation_ = false; + _has_bits_[0] &= ~0x00000001u; } -inline ::viam::app::v1::Fragment* ListMachineFragmentsResponse::add_fragments() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::Fragment* _add = _internal_mutable_fragments()->Add(); - // @@protoc_insertion_point(field_add:viam.app.v1.ListMachineFragmentsResponse.fragments) - return _add; +inline bool GetRegistryItemRequest::_internal_include_markdown_documentation() const { + return include_markdown_documentation_; } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Fragment>& ListMachineFragmentsResponse::fragments() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:viam.app.v1.ListMachineFragmentsResponse.fragments) - return _internal_fragments(); +inline bool GetRegistryItemRequest::include_markdown_documentation() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetRegistryItemRequest.include_markdown_documentation) + return _internal_include_markdown_documentation(); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Fragment>& -ListMachineFragmentsResponse::_internal_fragments() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.fragments_; +inline void GetRegistryItemRequest::_internal_set_include_markdown_documentation(bool value) { + _has_bits_[0] |= 0x00000001u; + include_markdown_documentation_ = value; } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::Fragment>* -ListMachineFragmentsResponse::_internal_mutable_fragments() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.fragments_; +inline void GetRegistryItemRequest::set_include_markdown_documentation(bool value) { + _internal_set_include_markdown_documentation(value); + // @@protoc_insertion_point(field_set:viam.app.v1.GetRegistryItemRequest.include_markdown_documentation) } -// repeated .viam.app.v1.ResolvedFragment resolved_fragments = 2 [json_name = "resolvedFragments"]; -inline int ListMachineFragmentsResponse::_internal_resolved_fragments_size() const { - return _internal_resolved_fragments().size(); +// ------------------------------------------------------------------- + +// GetRegistryItemResponse + +// .viam.app.v1.RegistryItem item = 1 [json_name = "item"]; +inline bool GetRegistryItemResponse::_internal_has_item() const { + return this != internal_default_instance() && item_ != nullptr; } -inline int ListMachineFragmentsResponse::resolved_fragments_size() const { - return _internal_resolved_fragments_size(); +inline bool GetRegistryItemResponse::has_item() const { + return _internal_has_item(); } -inline void ListMachineFragmentsResponse::clear_resolved_fragments() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.resolved_fragments_.Clear(); +inline void GetRegistryItemResponse::clear_item() { + if (GetArenaForAllocation() == nullptr && item_ != nullptr) { + delete item_; + } + item_ = nullptr; } -inline ::viam::app::v1::ResolvedFragment* ListMachineFragmentsResponse::mutable_resolved_fragments(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:viam.app.v1.ListMachineFragmentsResponse.resolved_fragments) - return _internal_mutable_resolved_fragments()->Mutable(index); +inline const ::viam::app::v1::RegistryItem& GetRegistryItemResponse::_internal_item() const { + const ::viam::app::v1::RegistryItem* p = item_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_RegistryItem_default_instance_); } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::ResolvedFragment>* ListMachineFragmentsResponse::mutable_resolved_fragments() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ListMachineFragmentsResponse.resolved_fragments) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_resolved_fragments(); +inline const ::viam::app::v1::RegistryItem& GetRegistryItemResponse::item() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetRegistryItemResponse.item) + return _internal_item(); } -inline const ::viam::app::v1::ResolvedFragment& ListMachineFragmentsResponse::resolved_fragments(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.ListMachineFragmentsResponse.resolved_fragments) - return _internal_resolved_fragments().Get(index); +inline void GetRegistryItemResponse::unsafe_arena_set_allocated_item( + ::viam::app::v1::RegistryItem* item) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(item_); + } + item_ = item; + if (item) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.GetRegistryItemResponse.item) } -inline ::viam::app::v1::ResolvedFragment* ListMachineFragmentsResponse::add_resolved_fragments() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::ResolvedFragment* _add = _internal_mutable_resolved_fragments()->Add(); - // @@protoc_insertion_point(field_add:viam.app.v1.ListMachineFragmentsResponse.resolved_fragments) - return _add; +inline ::viam::app::v1::RegistryItem* GetRegistryItemResponse::release_item() { + + ::viam::app::v1::RegistryItem* temp = item_; + item_ = 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 const ::google::protobuf::RepeatedPtrField<::viam::app::v1::ResolvedFragment>& ListMachineFragmentsResponse::resolved_fragments() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:viam.app.v1.ListMachineFragmentsResponse.resolved_fragments) - return _internal_resolved_fragments(); +inline ::viam::app::v1::RegistryItem* GetRegistryItemResponse::unsafe_arena_release_item() { + // @@protoc_insertion_point(field_release:viam.app.v1.GetRegistryItemResponse.item) + + ::viam::app::v1::RegistryItem* temp = item_; + item_ = nullptr; + return temp; +} +inline ::viam::app::v1::RegistryItem* GetRegistryItemResponse::_internal_mutable_item() { + + if (item_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::RegistryItem>(GetArenaForAllocation()); + item_ = p; + } + return item_; } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::ResolvedFragment>& -ListMachineFragmentsResponse::_internal_resolved_fragments() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.resolved_fragments_; +inline ::viam::app::v1::RegistryItem* GetRegistryItemResponse::mutable_item() { + ::viam::app::v1::RegistryItem* _msg = _internal_mutable_item(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRegistryItemResponse.item) + return _msg; } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::ResolvedFragment>* -ListMachineFragmentsResponse::_internal_mutable_resolved_fragments() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.resolved_fragments_; +inline void GetRegistryItemResponse::set_allocated_item(::viam::app::v1::RegistryItem* item) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete item_; + } + if (item) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(item); + if (message_arena != submessage_arena) { + item = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, item, submessage_arena); + } + + } else { + + } + item_ = item; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetRegistryItemResponse.item) } // ------------------------------------------------------------------- -// ListRobotsResponse +// CreateRegistryItemRequest -// repeated .viam.app.v1.Robot robots = 1 [json_name = "robots"]; -inline int ListRobotsResponse::_internal_robots_size() const { - return _internal_robots().size(); -} -inline int ListRobotsResponse::robots_size() const { - return _internal_robots_size(); +// string organization_id = 1 [json_name = "organizationId"]; +inline void CreateRegistryItemRequest::clear_organization_id() { + organization_id_.ClearToEmpty(); } -inline void ListRobotsResponse::clear_robots() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.robots_.Clear(); +inline const std::string& CreateRegistryItemRequest::organization_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.CreateRegistryItemRequest.organization_id) + return _internal_organization_id(); } -inline ::viam::app::v1::Robot* ListRobotsResponse::mutable_robots(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:viam.app.v1.ListRobotsResponse.robots) - return _internal_mutable_robots()->Mutable(index); +template +inline PROTOBUF_ALWAYS_INLINE +void CreateRegistryItemRequest::set_organization_id(ArgT0&& arg0, ArgT... args) { + + organization_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.CreateRegistryItemRequest.organization_id) } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::Robot>* ListRobotsResponse::mutable_robots() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ListRobotsResponse.robots) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_robots(); +inline std::string* CreateRegistryItemRequest::mutable_organization_id() { + std::string* _s = _internal_mutable_organization_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateRegistryItemRequest.organization_id) + return _s; } -inline const ::viam::app::v1::Robot& ListRobotsResponse::robots(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.ListRobotsResponse.robots) - return _internal_robots().Get(index); +inline const std::string& CreateRegistryItemRequest::_internal_organization_id() const { + return organization_id_.Get(); } -inline ::viam::app::v1::Robot* ListRobotsResponse::add_robots() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::Robot* _add = _internal_mutable_robots()->Add(); - // @@protoc_insertion_point(field_add:viam.app.v1.ListRobotsResponse.robots) - return _add; +inline void CreateRegistryItemRequest::_internal_set_organization_id(const std::string& value) { + + organization_id_.Set(value, GetArenaForAllocation()); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Robot>& ListRobotsResponse::robots() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:viam.app.v1.ListRobotsResponse.robots) - return _internal_robots(); +inline std::string* CreateRegistryItemRequest::_internal_mutable_organization_id() { + + return organization_id_.Mutable(GetArenaForAllocation()); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Robot>& -ListRobotsResponse::_internal_robots() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.robots_; +inline std::string* CreateRegistryItemRequest::release_organization_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.CreateRegistryItemRequest.organization_id) + return organization_id_.Release(); } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::Robot>* -ListRobotsResponse::_internal_mutable_robots() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.robots_; +inline void CreateRegistryItemRequest::set_allocated_organization_id(std::string* organization_id) { + if (organization_id != nullptr) { + + } else { + + } + organization_id_.SetAllocated(organization_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (organization_id_.IsDefault()) { + organization_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateRegistryItemRequest.organization_id) } -// ------------------------------------------------------------------- - -// NewRobotRequest - -// string name = 1 [json_name = "name"]; -inline void NewRobotRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); +// string name = 2 [json_name = "name"]; +inline void CreateRegistryItemRequest::clear_name() { + name_.ClearToEmpty(); } -inline const std::string& NewRobotRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.NewRobotRequest.name) +inline const std::string& CreateRegistryItemRequest::name() const { + // @@protoc_insertion_point(field_get:viam.app.v1.CreateRegistryItemRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void NewRobotRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.NewRobotRequest.name) +template +inline PROTOBUF_ALWAYS_INLINE +void CreateRegistryItemRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.CreateRegistryItemRequest.name) } -inline std::string* NewRobotRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* CreateRegistryItemRequest::mutable_name() { std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.NewRobotRequest.name) + // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateRegistryItemRequest.name) return _s; } -inline const std::string& NewRobotRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); -} -inline void NewRobotRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); -} -inline std::string* NewRobotRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); +inline const std::string& CreateRegistryItemRequest::_internal_name() const { + return name_.Get(); } -inline std::string* NewRobotRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.NewRobotRequest.name) - return _impl_.name_.Release(); -} -inline void NewRobotRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.NewRobotRequest.name) +inline void CreateRegistryItemRequest::_internal_set_name(const std::string& value) { + + name_.Set(value, GetArenaForAllocation()); } - -// string location = 2 [json_name = "location"]; -inline void NewRobotRequest::clear_location() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.location_.ClearToEmpty(); +inline std::string* CreateRegistryItemRequest::_internal_mutable_name() { + + return name_.Mutable(GetArenaForAllocation()); } -inline const std::string& NewRobotRequest::location() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.NewRobotRequest.location) - return _internal_location(); +inline std::string* CreateRegistryItemRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.app.v1.CreateRegistryItemRequest.name) + return name_.Release(); } -template -inline PROTOBUF_ALWAYS_INLINE void NewRobotRequest::set_location(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.location_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.NewRobotRequest.location) +inline void CreateRegistryItemRequest::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.app.v1.CreateRegistryItemRequest.name) } -inline std::string* NewRobotRequest::mutable_location() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_location(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.NewRobotRequest.location) - return _s; + +// .viam.app.packages.v1.PackageType type = 3 [json_name = "type"]; +inline void CreateRegistryItemRequest::clear_type() { + type_ = 0; } -inline const std::string& NewRobotRequest::_internal_location() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.location_.Get(); +inline ::viam::app::packages::v1::PackageType CreateRegistryItemRequest::_internal_type() const { + return static_cast< ::viam::app::packages::v1::PackageType >(type_); } -inline void NewRobotRequest::_internal_set_location(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.location_.Set(value, GetArena()); +inline ::viam::app::packages::v1::PackageType CreateRegistryItemRequest::type() const { + // @@protoc_insertion_point(field_get:viam.app.v1.CreateRegistryItemRequest.type) + return _internal_type(); } -inline std::string* NewRobotRequest::_internal_mutable_location() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.location_.Mutable( GetArena()); +inline void CreateRegistryItemRequest::_internal_set_type(::viam::app::packages::v1::PackageType value) { + + type_ = value; } -inline std::string* NewRobotRequest::release_location() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.NewRobotRequest.location) - return _impl_.location_.Release(); -} -inline void NewRobotRequest::set_allocated_location(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.location_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.location_.IsDefault()) { - _impl_.location_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.NewRobotRequest.location) +inline void CreateRegistryItemRequest::set_type(::viam::app::packages::v1::PackageType value) { + _internal_set_type(value); + // @@protoc_insertion_point(field_set:viam.app.v1.CreateRegistryItemRequest.type) } // ------------------------------------------------------------------- -// NewRobotResponse +// CreateRegistryItemResponse -// string id = 1 [json_name = "id"]; -inline void NewRobotResponse::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); +// ------------------------------------------------------------------- + +// UpdateRegistryItemRequest + +// string item_id = 1 [json_name = "itemId"]; +inline void UpdateRegistryItemRequest::clear_item_id() { + item_id_.ClearToEmpty(); } -inline const std::string& NewRobotResponse::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.NewRobotResponse.id) - return _internal_id(); +inline const std::string& UpdateRegistryItemRequest::item_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateRegistryItemRequest.item_id) + return _internal_item_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void NewRobotResponse::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.NewRobotResponse.id) +template +inline PROTOBUF_ALWAYS_INLINE +void UpdateRegistryItemRequest::set_item_id(ArgT0&& arg0, ArgT... args) { + + item_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateRegistryItemRequest.item_id) } -inline std::string* NewRobotResponse::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.NewRobotResponse.id) +inline std::string* UpdateRegistryItemRequest::mutable_item_id() { + std::string* _s = _internal_mutable_item_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateRegistryItemRequest.item_id) return _s; } -inline const std::string& NewRobotResponse::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); -} -inline void NewRobotResponse::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); -} -inline std::string* NewRobotResponse::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); +inline const std::string& UpdateRegistryItemRequest::_internal_item_id() const { + return item_id_.Get(); } -inline std::string* NewRobotResponse::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.NewRobotResponse.id) - return _impl_.id_.Release(); -} -inline void NewRobotResponse::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.NewRobotResponse.id) +inline void UpdateRegistryItemRequest::_internal_set_item_id(const std::string& value) { + + item_id_.Set(value, GetArenaForAllocation()); } - -// ------------------------------------------------------------------- - -// UpdateRobotRequest - -// string id = 1 [json_name = "id"]; -inline void UpdateRobotRequest::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); +inline std::string* UpdateRegistryItemRequest::_internal_mutable_item_id() { + + return item_id_.Mutable(GetArenaForAllocation()); } -inline const std::string& UpdateRobotRequest::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.UpdateRobotRequest.id) - return _internal_id(); +inline std::string* UpdateRegistryItemRequest::release_item_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateRegistryItemRequest.item_id) + return item_id_.Release(); } -template -inline PROTOBUF_ALWAYS_INLINE void UpdateRobotRequest::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.UpdateRobotRequest.id) +inline void UpdateRegistryItemRequest::set_allocated_item_id(std::string* item_id) { + if (item_id != nullptr) { + + } else { + + } + item_id_.SetAllocated(item_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (item_id_.IsDefault()) { + item_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateRegistryItemRequest.item_id) } -inline std::string* UpdateRobotRequest::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateRobotRequest.id) - return _s; + +// .viam.app.packages.v1.PackageType type = 2 [json_name = "type"]; +inline void UpdateRegistryItemRequest::clear_type() { + type_ = 0; } -inline const std::string& UpdateRobotRequest::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); +inline ::viam::app::packages::v1::PackageType UpdateRegistryItemRequest::_internal_type() const { + return static_cast< ::viam::app::packages::v1::PackageType >(type_); } -inline void UpdateRobotRequest::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); +inline ::viam::app::packages::v1::PackageType UpdateRegistryItemRequest::type() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateRegistryItemRequest.type) + return _internal_type(); } -inline std::string* UpdateRobotRequest::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); +inline void UpdateRegistryItemRequest::_internal_set_type(::viam::app::packages::v1::PackageType value) { + + type_ = value; } -inline std::string* UpdateRobotRequest::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.UpdateRobotRequest.id) - return _impl_.id_.Release(); -} -inline void UpdateRobotRequest::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateRobotRequest.id) +inline void UpdateRegistryItemRequest::set_type(::viam::app::packages::v1::PackageType value) { + _internal_set_type(value); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateRegistryItemRequest.type) } -// string name = 2 [json_name = "name"]; -inline void UpdateRobotRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); +// string description = 3 [json_name = "description"]; +inline void UpdateRegistryItemRequest::clear_description() { + description_.ClearToEmpty(); } -inline const std::string& UpdateRobotRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.UpdateRobotRequest.name) - return _internal_name(); +inline const std::string& UpdateRegistryItemRequest::description() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateRegistryItemRequest.description) + return _internal_description(); } -template -inline PROTOBUF_ALWAYS_INLINE void UpdateRobotRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.UpdateRobotRequest.name) +template +inline PROTOBUF_ALWAYS_INLINE +void UpdateRegistryItemRequest::set_description(ArgT0&& arg0, ArgT... args) { + + description_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateRegistryItemRequest.description) } -inline std::string* UpdateRobotRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateRobotRequest.name) +inline std::string* UpdateRegistryItemRequest::mutable_description() { + std::string* _s = _internal_mutable_description(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateRegistryItemRequest.description) return _s; } -inline const std::string& UpdateRobotRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); +inline const std::string& UpdateRegistryItemRequest::_internal_description() const { + return description_.Get(); } -inline void UpdateRobotRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); +inline void UpdateRegistryItemRequest::_internal_set_description(const std::string& value) { + + description_.Set(value, GetArenaForAllocation()); } -inline std::string* UpdateRobotRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); +inline std::string* UpdateRegistryItemRequest::_internal_mutable_description() { + + return description_.Mutable(GetArenaForAllocation()); } -inline std::string* UpdateRobotRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.UpdateRobotRequest.name) - return _impl_.name_.Release(); -} -inline void UpdateRobotRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateRobotRequest.name) +inline std::string* UpdateRegistryItemRequest::release_description() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateRegistryItemRequest.description) + return description_.Release(); +} +inline void UpdateRegistryItemRequest::set_allocated_description(std::string* description) { + if (description != nullptr) { + + } else { + + } + description_.SetAllocated(description, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (description_.IsDefault()) { + description_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateRegistryItemRequest.description) } -// string location = 3 [json_name = "location"]; -inline void UpdateRobotRequest::clear_location() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.location_.ClearToEmpty(); +// .viam.app.v1.Visibility visibility = 4 [json_name = "visibility"]; +inline void UpdateRegistryItemRequest::clear_visibility() { + visibility_ = 0; } -inline const std::string& UpdateRobotRequest::location() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.UpdateRobotRequest.location) - return _internal_location(); +inline ::viam::app::v1::Visibility UpdateRegistryItemRequest::_internal_visibility() const { + return static_cast< ::viam::app::v1::Visibility >(visibility_); } -template -inline PROTOBUF_ALWAYS_INLINE void UpdateRobotRequest::set_location(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.location_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.UpdateRobotRequest.location) +inline ::viam::app::v1::Visibility UpdateRegistryItemRequest::visibility() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateRegistryItemRequest.visibility) + return _internal_visibility(); } -inline std::string* UpdateRobotRequest::mutable_location() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_location(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateRobotRequest.location) - return _s; +inline void UpdateRegistryItemRequest::_internal_set_visibility(::viam::app::v1::Visibility value) { + + visibility_ = value; } -inline const std::string& UpdateRobotRequest::_internal_location() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.location_.Get(); +inline void UpdateRegistryItemRequest::set_visibility(::viam::app::v1::Visibility value) { + _internal_set_visibility(value); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateRegistryItemRequest.visibility) } -inline void UpdateRobotRequest::_internal_set_location(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.location_.Set(value, GetArena()); + +// optional string url = 5 [json_name = "url"]; +inline bool UpdateRegistryItemRequest::_internal_has_url() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; } -inline std::string* UpdateRobotRequest::_internal_mutable_location() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.location_.Mutable( GetArena()); +inline bool UpdateRegistryItemRequest::has_url() const { + return _internal_has_url(); } -inline std::string* UpdateRobotRequest::release_location() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.UpdateRobotRequest.location) - return _impl_.location_.Release(); -} -inline void UpdateRobotRequest::set_allocated_location(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.location_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.location_.IsDefault()) { - _impl_.location_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateRobotRequest.location) +inline void UpdateRegistryItemRequest::clear_url() { + url_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; } - -// ------------------------------------------------------------------- - -// UpdateRobotResponse - -// .viam.app.v1.Robot robot = 1 [json_name = "robot"]; -inline bool UpdateRobotResponse::has_robot() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.robot_ != nullptr); - return value; +inline const std::string& UpdateRegistryItemRequest::url() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateRegistryItemRequest.url) + return _internal_url(); } -inline void UpdateRobotResponse::clear_robot() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.robot_ != nullptr) _impl_.robot_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; +template +inline PROTOBUF_ALWAYS_INLINE +void UpdateRegistryItemRequest::set_url(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + url_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateRegistryItemRequest.url) } -inline const ::viam::app::v1::Robot& UpdateRobotResponse::_internal_robot() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::Robot* p = _impl_.robot_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_Robot_default_instance_); +inline std::string* UpdateRegistryItemRequest::mutable_url() { + std::string* _s = _internal_mutable_url(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateRegistryItemRequest.url) + return _s; } -inline const ::viam::app::v1::Robot& UpdateRobotResponse::robot() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.UpdateRobotResponse.robot) - return _internal_robot(); +inline const std::string& UpdateRegistryItemRequest::_internal_url() const { + return url_.Get(); +} +inline void UpdateRegistryItemRequest::_internal_set_url(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + url_.Set(value, GetArenaForAllocation()); +} +inline std::string* UpdateRegistryItemRequest::_internal_mutable_url() { + _has_bits_[0] |= 0x00000001u; + return url_.Mutable(GetArenaForAllocation()); } -inline void UpdateRobotResponse::unsafe_arena_set_allocated_robot(::viam::app::v1::Robot* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.robot_); +inline std::string* UpdateRegistryItemRequest::release_url() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateRegistryItemRequest.url) + if (!_internal_has_url()) { + return nullptr; } - _impl_.robot_ = reinterpret_cast<::viam::app::v1::Robot*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; + _has_bits_[0] &= ~0x00000001u; + auto* p = url_.Release(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (url_.IsDefault()) { + url_.Set("", GetArenaForAllocation()); } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.UpdateRobotResponse.robot) +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; } -inline ::viam::app::v1::Robot* UpdateRobotResponse::release_robot() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::Robot* released = _impl_.robot_; - _impl_.robot_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; +inline void UpdateRegistryItemRequest::set_allocated_url(std::string* url) { + if (url != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + url_.SetAllocated(url, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (url_.IsDefault()) { + url_.Set("", GetArenaForAllocation()); } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateRegistryItemRequest.url) } -inline ::viam::app::v1::Robot* UpdateRobotResponse::unsafe_arena_release_robot() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.UpdateRobotResponse.robot) - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::Robot* temp = _impl_.robot_; - _impl_.robot_ = nullptr; - return temp; +// .viam.app.v1.UpdateModuleMetadata module_update_metadata = 6 [json_name = "moduleUpdateMetadata"]; +inline bool UpdateRegistryItemRequest::_internal_has_module_update_metadata() const { + return metadata_case() == kModuleUpdateMetadata; } -inline ::viam::app::v1::Robot* UpdateRobotResponse::_internal_mutable_robot() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.robot_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::Robot>(GetArena()); - _impl_.robot_ = reinterpret_cast<::viam::app::v1::Robot*>(p); - } - return _impl_.robot_; +inline bool UpdateRegistryItemRequest::has_module_update_metadata() const { + return _internal_has_module_update_metadata(); } -inline ::viam::app::v1::Robot* UpdateRobotResponse::mutable_robot() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::viam::app::v1::Robot* _msg = _internal_mutable_robot(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateRobotResponse.robot) - return _msg; +inline void UpdateRegistryItemRequest::set_has_module_update_metadata() { + _oneof_case_[0] = kModuleUpdateMetadata; } -inline void UpdateRobotResponse::set_allocated_robot(::viam::app::v1::Robot* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::Robot*>(_impl_.robot_); +inline void UpdateRegistryItemRequest::clear_module_update_metadata() { + if (_internal_has_module_update_metadata()) { + if (GetArenaForAllocation() == nullptr) { + delete metadata_.module_update_metadata_; + } + clear_has_metadata(); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::Robot*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); +} +inline ::viam::app::v1::UpdateModuleMetadata* UpdateRegistryItemRequest::release_module_update_metadata() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateRegistryItemRequest.module_update_metadata) + if (_internal_has_module_update_metadata()) { + clear_has_metadata(); + ::viam::app::v1::UpdateModuleMetadata* temp = metadata_.module_update_metadata_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_._has_bits_[0] |= 0x00000001u; + metadata_.module_update_metadata_ = nullptr; + return temp; } else { - _impl_._has_bits_[0] &= ~0x00000001u; + return nullptr; } - - _impl_.robot_ = reinterpret_cast<::viam::app::v1::Robot*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateRobotResponse.robot) -} - -// ------------------------------------------------------------------- - -// DeleteRobotRequest - -// string id = 1 [json_name = "id"]; -inline void DeleteRobotRequest::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); -} -inline const std::string& DeleteRobotRequest::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.DeleteRobotRequest.id) - return _internal_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void DeleteRobotRequest::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.DeleteRobotRequest.id) +inline const ::viam::app::v1::UpdateModuleMetadata& UpdateRegistryItemRequest::_internal_module_update_metadata() const { + return _internal_has_module_update_metadata() + ? *metadata_.module_update_metadata_ + : reinterpret_cast< ::viam::app::v1::UpdateModuleMetadata&>(::viam::app::v1::_UpdateModuleMetadata_default_instance_); } -inline std::string* DeleteRobotRequest::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.DeleteRobotRequest.id) - return _s; +inline const ::viam::app::v1::UpdateModuleMetadata& UpdateRegistryItemRequest::module_update_metadata() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateRegistryItemRequest.module_update_metadata) + return _internal_module_update_metadata(); } -inline const std::string& DeleteRobotRequest::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); +inline ::viam::app::v1::UpdateModuleMetadata* UpdateRegistryItemRequest::unsafe_arena_release_module_update_metadata() { + // @@protoc_insertion_point(field_unsafe_arena_release:viam.app.v1.UpdateRegistryItemRequest.module_update_metadata) + if (_internal_has_module_update_metadata()) { + clear_has_metadata(); + ::viam::app::v1::UpdateModuleMetadata* temp = metadata_.module_update_metadata_; + metadata_.module_update_metadata_ = nullptr; + return temp; + } else { + return nullptr; + } } -inline void DeleteRobotRequest::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); +inline void UpdateRegistryItemRequest::unsafe_arena_set_allocated_module_update_metadata(::viam::app::v1::UpdateModuleMetadata* module_update_metadata) { + clear_metadata(); + if (module_update_metadata) { + set_has_module_update_metadata(); + metadata_.module_update_metadata_ = module_update_metadata; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.UpdateRegistryItemRequest.module_update_metadata) } -inline std::string* DeleteRobotRequest::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); +inline ::viam::app::v1::UpdateModuleMetadata* UpdateRegistryItemRequest::_internal_mutable_module_update_metadata() { + if (!_internal_has_module_update_metadata()) { + clear_metadata(); + set_has_module_update_metadata(); + metadata_.module_update_metadata_ = CreateMaybeMessage< ::viam::app::v1::UpdateModuleMetadata >(GetArenaForAllocation()); + } + return metadata_.module_update_metadata_; } -inline std::string* DeleteRobotRequest::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.DeleteRobotRequest.id) - return _impl_.id_.Release(); -} -inline void DeleteRobotRequest::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.DeleteRobotRequest.id) +inline ::viam::app::v1::UpdateModuleMetadata* UpdateRegistryItemRequest::mutable_module_update_metadata() { + ::viam::app::v1::UpdateModuleMetadata* _msg = _internal_mutable_module_update_metadata(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateRegistryItemRequest.module_update_metadata) + return _msg; } -// ------------------------------------------------------------------- - -// DeleteRobotResponse - -// ------------------------------------------------------------------- - -// MarkPartAsMainRequest - -// string part_id = 1 [json_name = "partId"]; -inline void MarkPartAsMainRequest::clear_part_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.part_id_.ClearToEmpty(); -} -inline const std::string& MarkPartAsMainRequest::part_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.MarkPartAsMainRequest.part_id) - return _internal_part_id(); -} -template -inline PROTOBUF_ALWAYS_INLINE void MarkPartAsMainRequest::set_part_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.part_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.MarkPartAsMainRequest.part_id) -} -inline std::string* MarkPartAsMainRequest::mutable_part_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_part_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.MarkPartAsMainRequest.part_id) - return _s; -} -inline const std::string& MarkPartAsMainRequest::_internal_part_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.part_id_.Get(); -} -inline void MarkPartAsMainRequest::_internal_set_part_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.part_id_.Set(value, GetArena()); +// .viam.app.v1.UpdateMLModelMetadata ml_model_update_metadata = 7 [json_name = "mlModelUpdateMetadata"]; +inline bool UpdateRegistryItemRequest::_internal_has_ml_model_update_metadata() const { + return metadata_case() == kMlModelUpdateMetadata; } -inline std::string* MarkPartAsMainRequest::_internal_mutable_part_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.part_id_.Mutable( GetArena()); +inline bool UpdateRegistryItemRequest::has_ml_model_update_metadata() const { + return _internal_has_ml_model_update_metadata(); } -inline std::string* MarkPartAsMainRequest::release_part_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.MarkPartAsMainRequest.part_id) - return _impl_.part_id_.Release(); -} -inline void MarkPartAsMainRequest::set_allocated_part_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.part_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.part_id_.IsDefault()) { - _impl_.part_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.MarkPartAsMainRequest.part_id) +inline void UpdateRegistryItemRequest::set_has_ml_model_update_metadata() { + _oneof_case_[0] = kMlModelUpdateMetadata; } - -// ------------------------------------------------------------------- - -// MarkPartAsMainResponse - -// ------------------------------------------------------------------- - -// MarkPartForRestartRequest - -// string part_id = 1 [json_name = "partId"]; -inline void MarkPartForRestartRequest::clear_part_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.part_id_.ClearToEmpty(); +inline void UpdateRegistryItemRequest::clear_ml_model_update_metadata() { + if (_internal_has_ml_model_update_metadata()) { + if (GetArenaForAllocation() == nullptr) { + delete metadata_.ml_model_update_metadata_; + } + clear_has_metadata(); + } } -inline const std::string& MarkPartForRestartRequest::part_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.MarkPartForRestartRequest.part_id) - return _internal_part_id(); +inline ::viam::app::v1::UpdateMLModelMetadata* UpdateRegistryItemRequest::release_ml_model_update_metadata() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateRegistryItemRequest.ml_model_update_metadata) + if (_internal_has_ml_model_update_metadata()) { + clear_has_metadata(); + ::viam::app::v1::UpdateMLModelMetadata* temp = metadata_.ml_model_update_metadata_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + metadata_.ml_model_update_metadata_ = nullptr; + return temp; + } else { + return nullptr; + } } -template -inline PROTOBUF_ALWAYS_INLINE void MarkPartForRestartRequest::set_part_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.part_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.MarkPartForRestartRequest.part_id) +inline const ::viam::app::v1::UpdateMLModelMetadata& UpdateRegistryItemRequest::_internal_ml_model_update_metadata() const { + return _internal_has_ml_model_update_metadata() + ? *metadata_.ml_model_update_metadata_ + : reinterpret_cast< ::viam::app::v1::UpdateMLModelMetadata&>(::viam::app::v1::_UpdateMLModelMetadata_default_instance_); } -inline std::string* MarkPartForRestartRequest::mutable_part_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_part_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.MarkPartForRestartRequest.part_id) - return _s; +inline const ::viam::app::v1::UpdateMLModelMetadata& UpdateRegistryItemRequest::ml_model_update_metadata() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateRegistryItemRequest.ml_model_update_metadata) + return _internal_ml_model_update_metadata(); } -inline const std::string& MarkPartForRestartRequest::_internal_part_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.part_id_.Get(); +inline ::viam::app::v1::UpdateMLModelMetadata* UpdateRegistryItemRequest::unsafe_arena_release_ml_model_update_metadata() { + // @@protoc_insertion_point(field_unsafe_arena_release:viam.app.v1.UpdateRegistryItemRequest.ml_model_update_metadata) + if (_internal_has_ml_model_update_metadata()) { + clear_has_metadata(); + ::viam::app::v1::UpdateMLModelMetadata* temp = metadata_.ml_model_update_metadata_; + metadata_.ml_model_update_metadata_ = nullptr; + return temp; + } else { + return nullptr; + } } -inline void MarkPartForRestartRequest::_internal_set_part_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.part_id_.Set(value, GetArena()); +inline void UpdateRegistryItemRequest::unsafe_arena_set_allocated_ml_model_update_metadata(::viam::app::v1::UpdateMLModelMetadata* ml_model_update_metadata) { + clear_metadata(); + if (ml_model_update_metadata) { + set_has_ml_model_update_metadata(); + metadata_.ml_model_update_metadata_ = ml_model_update_metadata; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.UpdateRegistryItemRequest.ml_model_update_metadata) } -inline std::string* MarkPartForRestartRequest::_internal_mutable_part_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.part_id_.Mutable( GetArena()); +inline ::viam::app::v1::UpdateMLModelMetadata* UpdateRegistryItemRequest::_internal_mutable_ml_model_update_metadata() { + if (!_internal_has_ml_model_update_metadata()) { + clear_metadata(); + set_has_ml_model_update_metadata(); + metadata_.ml_model_update_metadata_ = CreateMaybeMessage< ::viam::app::v1::UpdateMLModelMetadata >(GetArenaForAllocation()); + } + return metadata_.ml_model_update_metadata_; } -inline std::string* MarkPartForRestartRequest::release_part_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.MarkPartForRestartRequest.part_id) - return _impl_.part_id_.Release(); -} -inline void MarkPartForRestartRequest::set_allocated_part_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.part_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.part_id_.IsDefault()) { - _impl_.part_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.MarkPartForRestartRequest.part_id) +inline ::viam::app::v1::UpdateMLModelMetadata* UpdateRegistryItemRequest::mutable_ml_model_update_metadata() { + ::viam::app::v1::UpdateMLModelMetadata* _msg = _internal_mutable_ml_model_update_metadata(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateRegistryItemRequest.ml_model_update_metadata) + return _msg; } -// ------------------------------------------------------------------- - -// MarkPartForRestartResponse - -// ------------------------------------------------------------------- - -// CreateRobotPartSecretRequest - -// string part_id = 1 [json_name = "partId"]; -inline void CreateRobotPartSecretRequest::clear_part_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.part_id_.ClearToEmpty(); -} -inline const std::string& CreateRobotPartSecretRequest::part_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.CreateRobotPartSecretRequest.part_id) - return _internal_part_id(); -} -template -inline PROTOBUF_ALWAYS_INLINE void CreateRobotPartSecretRequest::set_part_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.part_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.CreateRobotPartSecretRequest.part_id) -} -inline std::string* CreateRobotPartSecretRequest::mutable_part_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_part_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateRobotPartSecretRequest.part_id) - return _s; -} -inline const std::string& CreateRobotPartSecretRequest::_internal_part_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.part_id_.Get(); +// .viam.app.v1.UpdateMLTrainingMetadata ml_training_update_metadata = 8 [json_name = "mlTrainingUpdateMetadata"]; +inline bool UpdateRegistryItemRequest::_internal_has_ml_training_update_metadata() const { + return metadata_case() == kMlTrainingUpdateMetadata; } -inline void CreateRobotPartSecretRequest::_internal_set_part_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.part_id_.Set(value, GetArena()); -} -inline std::string* CreateRobotPartSecretRequest::_internal_mutable_part_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.part_id_.Mutable( GetArena()); +inline bool UpdateRegistryItemRequest::has_ml_training_update_metadata() const { + return _internal_has_ml_training_update_metadata(); } -inline std::string* CreateRobotPartSecretRequest::release_part_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.CreateRobotPartSecretRequest.part_id) - return _impl_.part_id_.Release(); -} -inline void CreateRobotPartSecretRequest::set_allocated_part_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.part_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.part_id_.IsDefault()) { - _impl_.part_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateRobotPartSecretRequest.part_id) +inline void UpdateRegistryItemRequest::set_has_ml_training_update_metadata() { + _oneof_case_[0] = kMlTrainingUpdateMetadata; } - -// ------------------------------------------------------------------- - -// CreateRobotPartSecretResponse - -// .viam.app.v1.RobotPart part = 1 [json_name = "part"]; -inline bool CreateRobotPartSecretResponse::has_part() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.part_ != nullptr); - return value; +inline void UpdateRegistryItemRequest::clear_ml_training_update_metadata() { + if (_internal_has_ml_training_update_metadata()) { + if (GetArenaForAllocation() == nullptr) { + delete metadata_.ml_training_update_metadata_; + } + clear_has_metadata(); + } } -inline void CreateRobotPartSecretResponse::clear_part() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.part_ != nullptr) _impl_.part_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; +inline ::viam::app::v1::UpdateMLTrainingMetadata* UpdateRegistryItemRequest::release_ml_training_update_metadata() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateRegistryItemRequest.ml_training_update_metadata) + if (_internal_has_ml_training_update_metadata()) { + clear_has_metadata(); + ::viam::app::v1::UpdateMLTrainingMetadata* temp = metadata_.ml_training_update_metadata_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + metadata_.ml_training_update_metadata_ = nullptr; + return temp; + } else { + return nullptr; + } } -inline const ::viam::app::v1::RobotPart& CreateRobotPartSecretResponse::_internal_part() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::RobotPart* p = _impl_.part_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_RobotPart_default_instance_); +inline const ::viam::app::v1::UpdateMLTrainingMetadata& UpdateRegistryItemRequest::_internal_ml_training_update_metadata() const { + return _internal_has_ml_training_update_metadata() + ? *metadata_.ml_training_update_metadata_ + : reinterpret_cast< ::viam::app::v1::UpdateMLTrainingMetadata&>(::viam::app::v1::_UpdateMLTrainingMetadata_default_instance_); } -inline const ::viam::app::v1::RobotPart& CreateRobotPartSecretResponse::part() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.CreateRobotPartSecretResponse.part) - return _internal_part(); +inline const ::viam::app::v1::UpdateMLTrainingMetadata& UpdateRegistryItemRequest::ml_training_update_metadata() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateRegistryItemRequest.ml_training_update_metadata) + return _internal_ml_training_update_metadata(); } -inline void CreateRobotPartSecretResponse::unsafe_arena_set_allocated_part(::viam::app::v1::RobotPart* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.part_); - } - _impl_.part_ = reinterpret_cast<::viam::app::v1::RobotPart*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; +inline ::viam::app::v1::UpdateMLTrainingMetadata* UpdateRegistryItemRequest::unsafe_arena_release_ml_training_update_metadata() { + // @@protoc_insertion_point(field_unsafe_arena_release:viam.app.v1.UpdateRegistryItemRequest.ml_training_update_metadata) + if (_internal_has_ml_training_update_metadata()) { + clear_has_metadata(); + ::viam::app::v1::UpdateMLTrainingMetadata* temp = metadata_.ml_training_update_metadata_; + metadata_.ml_training_update_metadata_ = nullptr; + return temp; } else { - _impl_._has_bits_[0] &= ~0x00000001u; + return nullptr; } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.CreateRobotPartSecretResponse.part) } -inline ::viam::app::v1::RobotPart* CreateRobotPartSecretResponse::release_part() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::RobotPart* released = _impl_.part_; - _impl_.part_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); +inline void UpdateRegistryItemRequest::unsafe_arena_set_allocated_ml_training_update_metadata(::viam::app::v1::UpdateMLTrainingMetadata* ml_training_update_metadata) { + clear_metadata(); + if (ml_training_update_metadata) { + set_has_ml_training_update_metadata(); + metadata_.ml_training_update_metadata_ = ml_training_update_metadata; } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::viam::app::v1::RobotPart* CreateRobotPartSecretResponse::unsafe_arena_release_part() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.CreateRobotPartSecretResponse.part) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::RobotPart* temp = _impl_.part_; - _impl_.part_ = nullptr; - return temp; + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.UpdateRegistryItemRequest.ml_training_update_metadata) } -inline ::viam::app::v1::RobotPart* CreateRobotPartSecretResponse::_internal_mutable_part() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.part_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::RobotPart>(GetArena()); - _impl_.part_ = reinterpret_cast<::viam::app::v1::RobotPart*>(p); +inline ::viam::app::v1::UpdateMLTrainingMetadata* UpdateRegistryItemRequest::_internal_mutable_ml_training_update_metadata() { + if (!_internal_has_ml_training_update_metadata()) { + clear_metadata(); + set_has_ml_training_update_metadata(); + metadata_.ml_training_update_metadata_ = CreateMaybeMessage< ::viam::app::v1::UpdateMLTrainingMetadata >(GetArenaForAllocation()); } - return _impl_.part_; + return metadata_.ml_training_update_metadata_; } -inline ::viam::app::v1::RobotPart* CreateRobotPartSecretResponse::mutable_part() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::viam::app::v1::RobotPart* _msg = _internal_mutable_part(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateRobotPartSecretResponse.part) +inline ::viam::app::v1::UpdateMLTrainingMetadata* UpdateRegistryItemRequest::mutable_ml_training_update_metadata() { + ::viam::app::v1::UpdateMLTrainingMetadata* _msg = _internal_mutable_ml_training_update_metadata(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateRegistryItemRequest.ml_training_update_metadata) return _msg; } -inline void CreateRobotPartSecretResponse::set_allocated_part(::viam::app::v1::RobotPart* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::RobotPart*>(_impl_.part_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::RobotPart*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - _impl_.part_ = reinterpret_cast<::viam::app::v1::RobotPart*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateRobotPartSecretResponse.part) +inline bool UpdateRegistryItemRequest::has_metadata() const { + return metadata_case() != METADATA_NOT_SET; +} +inline void UpdateRegistryItemRequest::clear_has_metadata() { + _oneof_case_[0] = METADATA_NOT_SET; +} +inline UpdateRegistryItemRequest::MetadataCase UpdateRegistryItemRequest::metadata_case() const { + return UpdateRegistryItemRequest::MetadataCase(_oneof_case_[0]); } +// ------------------------------------------------------------------- + +// UpdateRegistryItemResponse // ------------------------------------------------------------------- -// DeleteRobotPartSecretRequest +// ListRegistryItemsRequest -// string part_id = 1 [json_name = "partId"]; -inline void DeleteRobotPartSecretRequest::clear_part_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.part_id_.ClearToEmpty(); +// optional string organization_id = 1 [json_name = "organizationId"]; +inline bool ListRegistryItemsRequest::_internal_has_organization_id() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; } -inline const std::string& DeleteRobotPartSecretRequest::part_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.DeleteRobotPartSecretRequest.part_id) - return _internal_part_id(); +inline bool ListRegistryItemsRequest::has_organization_id() const { + return _internal_has_organization_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void DeleteRobotPartSecretRequest::set_part_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.part_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.DeleteRobotPartSecretRequest.part_id) +inline void ListRegistryItemsRequest::clear_organization_id() { + organization_id_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; } -inline std::string* DeleteRobotPartSecretRequest::mutable_part_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_part_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.DeleteRobotPartSecretRequest.part_id) +inline const std::string& ListRegistryItemsRequest::organization_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ListRegistryItemsRequest.organization_id) + return _internal_organization_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ListRegistryItemsRequest::set_organization_id(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + organization_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.ListRegistryItemsRequest.organization_id) +} +inline std::string* ListRegistryItemsRequest::mutable_organization_id() { + std::string* _s = _internal_mutable_organization_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ListRegistryItemsRequest.organization_id) return _s; } -inline const std::string& DeleteRobotPartSecretRequest::_internal_part_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.part_id_.Get(); +inline const std::string& ListRegistryItemsRequest::_internal_organization_id() const { + return organization_id_.Get(); } -inline void DeleteRobotPartSecretRequest::_internal_set_part_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.part_id_.Set(value, GetArena()); +inline void ListRegistryItemsRequest::_internal_set_organization_id(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + organization_id_.Set(value, GetArenaForAllocation()); } -inline std::string* DeleteRobotPartSecretRequest::_internal_mutable_part_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.part_id_.Mutable( GetArena()); +inline std::string* ListRegistryItemsRequest::_internal_mutable_organization_id() { + _has_bits_[0] |= 0x00000001u; + return organization_id_.Mutable(GetArenaForAllocation()); } -inline std::string* DeleteRobotPartSecretRequest::release_part_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.DeleteRobotPartSecretRequest.part_id) - return _impl_.part_id_.Release(); -} -inline void DeleteRobotPartSecretRequest::set_allocated_part_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.part_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.part_id_.IsDefault()) { - _impl_.part_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.DeleteRobotPartSecretRequest.part_id) +inline std::string* ListRegistryItemsRequest::release_organization_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.ListRegistryItemsRequest.organization_id) + if (!_internal_has_organization_id()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + auto* p = organization_id_.Release(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (organization_id_.IsDefault()) { + organization_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; +} +inline void ListRegistryItemsRequest::set_allocated_organization_id(std::string* organization_id) { + if (organization_id != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + organization_id_.SetAllocated(organization_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (organization_id_.IsDefault()) { + organization_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ListRegistryItemsRequest.organization_id) } -// string secret_id = 2 [json_name = "secretId"]; -inline void DeleteRobotPartSecretRequest::clear_secret_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.secret_id_.ClearToEmpty(); +// repeated .viam.app.packages.v1.PackageType types = 2 [json_name = "types"]; +inline int ListRegistryItemsRequest::_internal_types_size() const { + return types_.size(); } -inline const std::string& DeleteRobotPartSecretRequest::secret_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.DeleteRobotPartSecretRequest.secret_id) - return _internal_secret_id(); +inline int ListRegistryItemsRequest::types_size() const { + return _internal_types_size(); } -template -inline PROTOBUF_ALWAYS_INLINE void DeleteRobotPartSecretRequest::set_secret_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.secret_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.DeleteRobotPartSecretRequest.secret_id) +inline void ListRegistryItemsRequest::clear_types() { + types_.Clear(); } -inline std::string* DeleteRobotPartSecretRequest::mutable_secret_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_secret_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.DeleteRobotPartSecretRequest.secret_id) - return _s; +inline ::viam::app::packages::v1::PackageType ListRegistryItemsRequest::_internal_types(int index) const { + return static_cast< ::viam::app::packages::v1::PackageType >(types_.Get(index)); } -inline const std::string& DeleteRobotPartSecretRequest::_internal_secret_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.secret_id_.Get(); +inline ::viam::app::packages::v1::PackageType ListRegistryItemsRequest::types(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.ListRegistryItemsRequest.types) + return _internal_types(index); } -inline void DeleteRobotPartSecretRequest::_internal_set_secret_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.secret_id_.Set(value, GetArena()); +inline void ListRegistryItemsRequest::set_types(int index, ::viam::app::packages::v1::PackageType value) { + types_.Set(index, value); + // @@protoc_insertion_point(field_set:viam.app.v1.ListRegistryItemsRequest.types) } -inline std::string* DeleteRobotPartSecretRequest::_internal_mutable_secret_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.secret_id_.Mutable( GetArena()); +inline void ListRegistryItemsRequest::_internal_add_types(::viam::app::packages::v1::PackageType value) { + types_.Add(value); } -inline std::string* DeleteRobotPartSecretRequest::release_secret_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.DeleteRobotPartSecretRequest.secret_id) - return _impl_.secret_id_.Release(); -} -inline void DeleteRobotPartSecretRequest::set_allocated_secret_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.secret_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.secret_id_.IsDefault()) { - _impl_.secret_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.DeleteRobotPartSecretRequest.secret_id) +inline void ListRegistryItemsRequest::add_types(::viam::app::packages::v1::PackageType value) { + _internal_add_types(value); + // @@protoc_insertion_point(field_add:viam.app.v1.ListRegistryItemsRequest.types) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField& +ListRegistryItemsRequest::types() const { + // @@protoc_insertion_point(field_list:viam.app.v1.ListRegistryItemsRequest.types) + return types_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* +ListRegistryItemsRequest::_internal_mutable_types() { + return &types_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* +ListRegistryItemsRequest::mutable_types() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ListRegistryItemsRequest.types) + return _internal_mutable_types(); } -// ------------------------------------------------------------------- - -// DeleteRobotPartSecretResponse - -// ------------------------------------------------------------------- - -// Authorization - -// string authorization_type = 1 [json_name = "authorizationType"]; -inline void Authorization::clear_authorization_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.authorization_type_.ClearToEmpty(); +// repeated .viam.app.v1.Visibility visibilities = 3 [json_name = "visibilities"]; +inline int ListRegistryItemsRequest::_internal_visibilities_size() const { + return visibilities_.size(); } -inline const std::string& Authorization::authorization_type() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.Authorization.authorization_type) - return _internal_authorization_type(); +inline int ListRegistryItemsRequest::visibilities_size() const { + return _internal_visibilities_size(); } -template -inline PROTOBUF_ALWAYS_INLINE void Authorization::set_authorization_type(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.authorization_type_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.Authorization.authorization_type) +inline void ListRegistryItemsRequest::clear_visibilities() { + visibilities_.Clear(); } -inline std::string* Authorization::mutable_authorization_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_authorization_type(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.Authorization.authorization_type) - return _s; +inline ::viam::app::v1::Visibility ListRegistryItemsRequest::_internal_visibilities(int index) const { + return static_cast< ::viam::app::v1::Visibility >(visibilities_.Get(index)); } -inline const std::string& Authorization::_internal_authorization_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.authorization_type_.Get(); +inline ::viam::app::v1::Visibility ListRegistryItemsRequest::visibilities(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.ListRegistryItemsRequest.visibilities) + return _internal_visibilities(index); } -inline void Authorization::_internal_set_authorization_type(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.authorization_type_.Set(value, GetArena()); +inline void ListRegistryItemsRequest::set_visibilities(int index, ::viam::app::v1::Visibility value) { + visibilities_.Set(index, value); + // @@protoc_insertion_point(field_set:viam.app.v1.ListRegistryItemsRequest.visibilities) } -inline std::string* Authorization::_internal_mutable_authorization_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.authorization_type_.Mutable( GetArena()); +inline void ListRegistryItemsRequest::_internal_add_visibilities(::viam::app::v1::Visibility value) { + visibilities_.Add(value); } -inline std::string* Authorization::release_authorization_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.Authorization.authorization_type) - return _impl_.authorization_type_.Release(); -} -inline void Authorization::set_allocated_authorization_type(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.authorization_type_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.authorization_type_.IsDefault()) { - _impl_.authorization_type_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Authorization.authorization_type) +inline void ListRegistryItemsRequest::add_visibilities(::viam::app::v1::Visibility value) { + _internal_add_visibilities(value); + // @@protoc_insertion_point(field_add:viam.app.v1.ListRegistryItemsRequest.visibilities) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField& +ListRegistryItemsRequest::visibilities() const { + // @@protoc_insertion_point(field_list:viam.app.v1.ListRegistryItemsRequest.visibilities) + return visibilities_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* +ListRegistryItemsRequest::_internal_mutable_visibilities() { + return &visibilities_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* +ListRegistryItemsRequest::mutable_visibilities() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ListRegistryItemsRequest.visibilities) + return _internal_mutable_visibilities(); } -// string authorization_id = 2 [json_name = "authorizationId"]; -inline void Authorization::clear_authorization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.authorization_id_.ClearToEmpty(); +// repeated string platforms = 4 [json_name = "platforms"]; +inline int ListRegistryItemsRequest::_internal_platforms_size() const { + return platforms_.size(); } -inline const std::string& Authorization::authorization_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.Authorization.authorization_id) - return _internal_authorization_id(); +inline int ListRegistryItemsRequest::platforms_size() const { + return _internal_platforms_size(); } -template -inline PROTOBUF_ALWAYS_INLINE void Authorization::set_authorization_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.authorization_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.Authorization.authorization_id) +inline void ListRegistryItemsRequest::clear_platforms() { + platforms_.Clear(); } -inline std::string* Authorization::mutable_authorization_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_authorization_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.Authorization.authorization_id) +inline std::string* ListRegistryItemsRequest::add_platforms() { + std::string* _s = _internal_add_platforms(); + // @@protoc_insertion_point(field_add_mutable:viam.app.v1.ListRegistryItemsRequest.platforms) return _s; } -inline const std::string& Authorization::_internal_authorization_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.authorization_id_.Get(); +inline const std::string& ListRegistryItemsRequest::_internal_platforms(int index) const { + return platforms_.Get(index); } -inline void Authorization::_internal_set_authorization_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.authorization_id_.Set(value, GetArena()); +inline const std::string& ListRegistryItemsRequest::platforms(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.ListRegistryItemsRequest.platforms) + return _internal_platforms(index); } -inline std::string* Authorization::_internal_mutable_authorization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.authorization_id_.Mutable( GetArena()); +inline std::string* ListRegistryItemsRequest::mutable_platforms(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.ListRegistryItemsRequest.platforms) + return platforms_.Mutable(index); } -inline std::string* Authorization::release_authorization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.Authorization.authorization_id) - return _impl_.authorization_id_.Release(); -} -inline void Authorization::set_allocated_authorization_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.authorization_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.authorization_id_.IsDefault()) { - _impl_.authorization_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Authorization.authorization_id) +inline void ListRegistryItemsRequest::set_platforms(int index, const std::string& value) { + platforms_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:viam.app.v1.ListRegistryItemsRequest.platforms) } - -// string resource_type = 3 [json_name = "resourceType"]; -inline void Authorization::clear_resource_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.resource_type_.ClearToEmpty(); +inline void ListRegistryItemsRequest::set_platforms(int index, std::string&& value) { + platforms_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:viam.app.v1.ListRegistryItemsRequest.platforms) } -inline const std::string& Authorization::resource_type() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.Authorization.resource_type) - return _internal_resource_type(); +inline void ListRegistryItemsRequest::set_platforms(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + platforms_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:viam.app.v1.ListRegistryItemsRequest.platforms) } -template -inline PROTOBUF_ALWAYS_INLINE void Authorization::set_resource_type(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.resource_type_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.Authorization.resource_type) +inline void ListRegistryItemsRequest::set_platforms(int index, const char* value, size_t size) { + platforms_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:viam.app.v1.ListRegistryItemsRequest.platforms) } -inline std::string* Authorization::mutable_resource_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_resource_type(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.Authorization.resource_type) - return _s; +inline std::string* ListRegistryItemsRequest::_internal_add_platforms() { + return platforms_.Add(); } -inline const std::string& Authorization::_internal_resource_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.resource_type_.Get(); +inline void ListRegistryItemsRequest::add_platforms(const std::string& value) { + platforms_.Add()->assign(value); + // @@protoc_insertion_point(field_add:viam.app.v1.ListRegistryItemsRequest.platforms) } -inline void Authorization::_internal_set_resource_type(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.resource_type_.Set(value, GetArena()); +inline void ListRegistryItemsRequest::add_platforms(std::string&& value) { + platforms_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:viam.app.v1.ListRegistryItemsRequest.platforms) } -inline std::string* Authorization::_internal_mutable_resource_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.resource_type_.Mutable( GetArena()); +inline void ListRegistryItemsRequest::add_platforms(const char* value) { + GOOGLE_DCHECK(value != nullptr); + platforms_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:viam.app.v1.ListRegistryItemsRequest.platforms) } -inline std::string* Authorization::release_resource_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.Authorization.resource_type) - return _impl_.resource_type_.Release(); -} -inline void Authorization::set_allocated_resource_type(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.resource_type_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.resource_type_.IsDefault()) { - _impl_.resource_type_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Authorization.resource_type) +inline void ListRegistryItemsRequest::add_platforms(const char* value, size_t size) { + platforms_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:viam.app.v1.ListRegistryItemsRequest.platforms) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +ListRegistryItemsRequest::platforms() const { + // @@protoc_insertion_point(field_list:viam.app.v1.ListRegistryItemsRequest.platforms) + return platforms_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +ListRegistryItemsRequest::mutable_platforms() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ListRegistryItemsRequest.platforms) + return &platforms_; } -// string resource_id = 4 [json_name = "resourceId"]; -inline void Authorization::clear_resource_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.resource_id_.ClearToEmpty(); +// repeated .viam.app.v1.RegistryItemStatus statuses = 5 [json_name = "statuses"]; +inline int ListRegistryItemsRequest::_internal_statuses_size() const { + return statuses_.size(); } -inline const std::string& Authorization::resource_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.Authorization.resource_id) - return _internal_resource_id(); +inline int ListRegistryItemsRequest::statuses_size() const { + return _internal_statuses_size(); } -template -inline PROTOBUF_ALWAYS_INLINE void Authorization::set_resource_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.resource_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.Authorization.resource_id) +inline void ListRegistryItemsRequest::clear_statuses() { + statuses_.Clear(); } -inline std::string* Authorization::mutable_resource_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_resource_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.Authorization.resource_id) - return _s; +inline ::viam::app::v1::RegistryItemStatus ListRegistryItemsRequest::_internal_statuses(int index) const { + return static_cast< ::viam::app::v1::RegistryItemStatus >(statuses_.Get(index)); } -inline const std::string& Authorization::_internal_resource_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.resource_id_.Get(); +inline ::viam::app::v1::RegistryItemStatus ListRegistryItemsRequest::statuses(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.ListRegistryItemsRequest.statuses) + return _internal_statuses(index); } -inline void Authorization::_internal_set_resource_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.resource_id_.Set(value, GetArena()); +inline void ListRegistryItemsRequest::set_statuses(int index, ::viam::app::v1::RegistryItemStatus value) { + statuses_.Set(index, value); + // @@protoc_insertion_point(field_set:viam.app.v1.ListRegistryItemsRequest.statuses) } -inline std::string* Authorization::_internal_mutable_resource_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.resource_id_.Mutable( GetArena()); +inline void ListRegistryItemsRequest::_internal_add_statuses(::viam::app::v1::RegistryItemStatus value) { + statuses_.Add(value); } -inline std::string* Authorization::release_resource_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.Authorization.resource_id) - return _impl_.resource_id_.Release(); -} -inline void Authorization::set_allocated_resource_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.resource_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.resource_id_.IsDefault()) { - _impl_.resource_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Authorization.resource_id) +inline void ListRegistryItemsRequest::add_statuses(::viam::app::v1::RegistryItemStatus value) { + _internal_add_statuses(value); + // @@protoc_insertion_point(field_add:viam.app.v1.ListRegistryItemsRequest.statuses) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField& +ListRegistryItemsRequest::statuses() const { + // @@protoc_insertion_point(field_list:viam.app.v1.ListRegistryItemsRequest.statuses) + return statuses_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* +ListRegistryItemsRequest::_internal_mutable_statuses() { + return &statuses_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* +ListRegistryItemsRequest::mutable_statuses() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ListRegistryItemsRequest.statuses) + return _internal_mutable_statuses(); } -// string identity_id = 5 [json_name = "identityId"]; -inline void Authorization::clear_identity_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.identity_id_.ClearToEmpty(); +// optional string search_term = 6 [json_name = "searchTerm"]; +inline bool ListRegistryItemsRequest::_internal_has_search_term() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; } -inline const std::string& Authorization::identity_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.Authorization.identity_id) - return _internal_identity_id(); +inline bool ListRegistryItemsRequest::has_search_term() const { + return _internal_has_search_term(); } -template -inline PROTOBUF_ALWAYS_INLINE void Authorization::set_identity_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.identity_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.Authorization.identity_id) +inline void ListRegistryItemsRequest::clear_search_term() { + search_term_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000002u; } -inline std::string* Authorization::mutable_identity_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_identity_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.Authorization.identity_id) +inline const std::string& ListRegistryItemsRequest::search_term() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ListRegistryItemsRequest.search_term) + return _internal_search_term(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ListRegistryItemsRequest::set_search_term(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000002u; + search_term_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.ListRegistryItemsRequest.search_term) +} +inline std::string* ListRegistryItemsRequest::mutable_search_term() { + std::string* _s = _internal_mutable_search_term(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ListRegistryItemsRequest.search_term) return _s; } -inline const std::string& Authorization::_internal_identity_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.identity_id_.Get(); +inline const std::string& ListRegistryItemsRequest::_internal_search_term() const { + return search_term_.Get(); } -inline void Authorization::_internal_set_identity_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.identity_id_.Set(value, GetArena()); +inline void ListRegistryItemsRequest::_internal_set_search_term(const std::string& value) { + _has_bits_[0] |= 0x00000002u; + search_term_.Set(value, GetArenaForAllocation()); } -inline std::string* Authorization::_internal_mutable_identity_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.identity_id_.Mutable( GetArena()); +inline std::string* ListRegistryItemsRequest::_internal_mutable_search_term() { + _has_bits_[0] |= 0x00000002u; + return search_term_.Mutable(GetArenaForAllocation()); } -inline std::string* Authorization::release_identity_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.Authorization.identity_id) - return _impl_.identity_id_.Release(); -} -inline void Authorization::set_allocated_identity_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.identity_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.identity_id_.IsDefault()) { - _impl_.identity_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Authorization.identity_id) +inline std::string* ListRegistryItemsRequest::release_search_term() { + // @@protoc_insertion_point(field_release:viam.app.v1.ListRegistryItemsRequest.search_term) + if (!_internal_has_search_term()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000002u; + auto* p = search_term_.Release(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (search_term_.IsDefault()) { + search_term_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; +} +inline void ListRegistryItemsRequest::set_allocated_search_term(std::string* search_term) { + if (search_term != nullptr) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + search_term_.SetAllocated(search_term, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (search_term_.IsDefault()) { + search_term_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ListRegistryItemsRequest.search_term) } -// string organization_id = 6 [json_name = "organizationId"]; -inline void Authorization::clear_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.ClearToEmpty(); +// optional string page_token = 7 [json_name = "pageToken"]; +inline bool ListRegistryItemsRequest::_internal_has_page_token() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; } -inline const std::string& Authorization::organization_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.Authorization.organization_id) - return _internal_organization_id(); +inline bool ListRegistryItemsRequest::has_page_token() const { + return _internal_has_page_token(); } -template -inline PROTOBUF_ALWAYS_INLINE void Authorization::set_organization_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.Authorization.organization_id) +inline void ListRegistryItemsRequest::clear_page_token() { + page_token_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000004u; } -inline std::string* Authorization::mutable_organization_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_organization_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.Authorization.organization_id) +inline const std::string& ListRegistryItemsRequest::page_token() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ListRegistryItemsRequest.page_token) + return _internal_page_token(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ListRegistryItemsRequest::set_page_token(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000004u; + page_token_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.ListRegistryItemsRequest.page_token) +} +inline std::string* ListRegistryItemsRequest::mutable_page_token() { + std::string* _s = _internal_mutable_page_token(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ListRegistryItemsRequest.page_token) return _s; } -inline const std::string& Authorization::_internal_organization_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.organization_id_.Get(); +inline const std::string& ListRegistryItemsRequest::_internal_page_token() const { + return page_token_.Get(); } -inline void Authorization::_internal_set_organization_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(value, GetArena()); +inline void ListRegistryItemsRequest::_internal_set_page_token(const std::string& value) { + _has_bits_[0] |= 0x00000004u; + page_token_.Set(value, GetArenaForAllocation()); } -inline std::string* Authorization::_internal_mutable_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.organization_id_.Mutable( GetArena()); +inline std::string* ListRegistryItemsRequest::_internal_mutable_page_token() { + _has_bits_[0] |= 0x00000004u; + return page_token_.Mutable(GetArenaForAllocation()); } -inline std::string* Authorization::release_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.Authorization.organization_id) - return _impl_.organization_id_.Release(); -} -inline void Authorization::set_allocated_organization_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.organization_id_.IsDefault()) { - _impl_.organization_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Authorization.organization_id) +inline std::string* ListRegistryItemsRequest::release_page_token() { + // @@protoc_insertion_point(field_release:viam.app.v1.ListRegistryItemsRequest.page_token) + if (!_internal_has_page_token()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000004u; + auto* p = page_token_.Release(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (page_token_.IsDefault()) { + page_token_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; +} +inline void ListRegistryItemsRequest::set_allocated_page_token(std::string* page_token) { + if (page_token != nullptr) { + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + page_token_.SetAllocated(page_token, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (page_token_.IsDefault()) { + page_token_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ListRegistryItemsRequest.page_token) } -// string identity_type = 7 [json_name = "identityType"]; -inline void Authorization::clear_identity_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.identity_type_.ClearToEmpty(); +// repeated string public_namespaces = 8 [json_name = "publicNamespaces"]; +inline int ListRegistryItemsRequest::_internal_public_namespaces_size() const { + return public_namespaces_.size(); } -inline const std::string& Authorization::identity_type() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.Authorization.identity_type) - return _internal_identity_type(); +inline int ListRegistryItemsRequest::public_namespaces_size() const { + return _internal_public_namespaces_size(); } -template -inline PROTOBUF_ALWAYS_INLINE void Authorization::set_identity_type(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.identity_type_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.Authorization.identity_type) +inline void ListRegistryItemsRequest::clear_public_namespaces() { + public_namespaces_.Clear(); } -inline std::string* Authorization::mutable_identity_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_identity_type(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.Authorization.identity_type) +inline std::string* ListRegistryItemsRequest::add_public_namespaces() { + std::string* _s = _internal_add_public_namespaces(); + // @@protoc_insertion_point(field_add_mutable:viam.app.v1.ListRegistryItemsRequest.public_namespaces) return _s; } -inline const std::string& Authorization::_internal_identity_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.identity_type_.Get(); +inline const std::string& ListRegistryItemsRequest::_internal_public_namespaces(int index) const { + return public_namespaces_.Get(index); } -inline void Authorization::_internal_set_identity_type(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.identity_type_.Set(value, GetArena()); +inline const std::string& ListRegistryItemsRequest::public_namespaces(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.ListRegistryItemsRequest.public_namespaces) + return _internal_public_namespaces(index); } -inline std::string* Authorization::_internal_mutable_identity_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.identity_type_.Mutable( GetArena()); +inline std::string* ListRegistryItemsRequest::mutable_public_namespaces(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.ListRegistryItemsRequest.public_namespaces) + return public_namespaces_.Mutable(index); } -inline std::string* Authorization::release_identity_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.Authorization.identity_type) - return _impl_.identity_type_.Release(); -} -inline void Authorization::set_allocated_identity_type(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.identity_type_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.identity_type_.IsDefault()) { - _impl_.identity_type_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Authorization.identity_type) +inline void ListRegistryItemsRequest::set_public_namespaces(int index, const std::string& value) { + public_namespaces_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:viam.app.v1.ListRegistryItemsRequest.public_namespaces) } - -// ------------------------------------------------------------------- - -// AddRoleRequest - -// .viam.app.v1.Authorization authorization = 1 [json_name = "authorization"]; -inline bool AddRoleRequest::has_authorization() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.authorization_ != nullptr); - return value; +inline void ListRegistryItemsRequest::set_public_namespaces(int index, std::string&& value) { + public_namespaces_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:viam.app.v1.ListRegistryItemsRequest.public_namespaces) } -inline void AddRoleRequest::clear_authorization() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.authorization_ != nullptr) _impl_.authorization_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; +inline void ListRegistryItemsRequest::set_public_namespaces(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + public_namespaces_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:viam.app.v1.ListRegistryItemsRequest.public_namespaces) } -inline const ::viam::app::v1::Authorization& AddRoleRequest::_internal_authorization() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::Authorization* p = _impl_.authorization_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_Authorization_default_instance_); +inline void ListRegistryItemsRequest::set_public_namespaces(int index, const char* value, size_t size) { + public_namespaces_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:viam.app.v1.ListRegistryItemsRequest.public_namespaces) } -inline const ::viam::app::v1::Authorization& AddRoleRequest::authorization() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.AddRoleRequest.authorization) - return _internal_authorization(); +inline std::string* ListRegistryItemsRequest::_internal_add_public_namespaces() { + return public_namespaces_.Add(); } -inline void AddRoleRequest::unsafe_arena_set_allocated_authorization(::viam::app::v1::Authorization* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.authorization_); - } - _impl_.authorization_ = reinterpret_cast<::viam::app::v1::Authorization*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.AddRoleRequest.authorization) +inline void ListRegistryItemsRequest::add_public_namespaces(const std::string& value) { + public_namespaces_.Add()->assign(value); + // @@protoc_insertion_point(field_add:viam.app.v1.ListRegistryItemsRequest.public_namespaces) } -inline ::viam::app::v1::Authorization* AddRoleRequest::release_authorization() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::Authorization* released = _impl_.authorization_; - _impl_.authorization_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; +inline void ListRegistryItemsRequest::add_public_namespaces(std::string&& value) { + public_namespaces_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:viam.app.v1.ListRegistryItemsRequest.public_namespaces) } -inline ::viam::app::v1::Authorization* AddRoleRequest::unsafe_arena_release_authorization() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.AddRoleRequest.authorization) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::Authorization* temp = _impl_.authorization_; - _impl_.authorization_ = nullptr; - return temp; +inline void ListRegistryItemsRequest::add_public_namespaces(const char* value) { + GOOGLE_DCHECK(value != nullptr); + public_namespaces_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:viam.app.v1.ListRegistryItemsRequest.public_namespaces) } -inline ::viam::app::v1::Authorization* AddRoleRequest::_internal_mutable_authorization() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.authorization_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::Authorization>(GetArena()); - _impl_.authorization_ = reinterpret_cast<::viam::app::v1::Authorization*>(p); - } - return _impl_.authorization_; +inline void ListRegistryItemsRequest::add_public_namespaces(const char* value, size_t size) { + public_namespaces_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:viam.app.v1.ListRegistryItemsRequest.public_namespaces) } -inline ::viam::app::v1::Authorization* AddRoleRequest::mutable_authorization() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::viam::app::v1::Authorization* _msg = _internal_mutable_authorization(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.AddRoleRequest.authorization) - return _msg; +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +ListRegistryItemsRequest::public_namespaces() const { + // @@protoc_insertion_point(field_list:viam.app.v1.ListRegistryItemsRequest.public_namespaces) + return public_namespaces_; } -inline void AddRoleRequest::set_allocated_authorization(::viam::app::v1::Authorization* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::Authorization*>(_impl_.authorization_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::Authorization*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.authorization_ = reinterpret_cast<::viam::app::v1::Authorization*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.AddRoleRequest.authorization) +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +ListRegistryItemsRequest::mutable_public_namespaces() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ListRegistryItemsRequest.public_namespaces) + return &public_namespaces_; } -// ------------------------------------------------------------------- - -// AddRoleResponse +// optional bool include_markdown_documentation = 9 [json_name = "includeMarkdownDocumentation"]; +inline bool ListRegistryItemsRequest::_internal_has_include_markdown_documentation() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; +} +inline bool ListRegistryItemsRequest::has_include_markdown_documentation() const { + return _internal_has_include_markdown_documentation(); +} +inline void ListRegistryItemsRequest::clear_include_markdown_documentation() { + include_markdown_documentation_ = false; + _has_bits_[0] &= ~0x00000008u; +} +inline bool ListRegistryItemsRequest::_internal_include_markdown_documentation() const { + return include_markdown_documentation_; +} +inline bool ListRegistryItemsRequest::include_markdown_documentation() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ListRegistryItemsRequest.include_markdown_documentation) + return _internal_include_markdown_documentation(); +} +inline void ListRegistryItemsRequest::_internal_set_include_markdown_documentation(bool value) { + _has_bits_[0] |= 0x00000008u; + include_markdown_documentation_ = value; +} +inline void ListRegistryItemsRequest::set_include_markdown_documentation(bool value) { + _internal_set_include_markdown_documentation(value); + // @@protoc_insertion_point(field_set:viam.app.v1.ListRegistryItemsRequest.include_markdown_documentation) +} // ------------------------------------------------------------------- -// RemoveRoleRequest +// ListRegistryItemsResponse -// .viam.app.v1.Authorization authorization = 1 [json_name = "authorization"]; -inline bool RemoveRoleRequest::has_authorization() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.authorization_ != nullptr); - return value; +// repeated .viam.app.v1.RegistryItem items = 1 [json_name = "items"]; +inline int ListRegistryItemsResponse::_internal_items_size() const { + return items_.size(); } -inline void RemoveRoleRequest::clear_authorization() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.authorization_ != nullptr) _impl_.authorization_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; +inline int ListRegistryItemsResponse::items_size() const { + return _internal_items_size(); } -inline const ::viam::app::v1::Authorization& RemoveRoleRequest::_internal_authorization() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::Authorization* p = _impl_.authorization_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_Authorization_default_instance_); +inline void ListRegistryItemsResponse::clear_items() { + items_.Clear(); } -inline const ::viam::app::v1::Authorization& RemoveRoleRequest::authorization() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.RemoveRoleRequest.authorization) - return _internal_authorization(); +inline ::viam::app::v1::RegistryItem* ListRegistryItemsResponse::mutable_items(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.ListRegistryItemsResponse.items) + return items_.Mutable(index); } -inline void RemoveRoleRequest::unsafe_arena_set_allocated_authorization(::viam::app::v1::Authorization* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.authorization_); - } - _impl_.authorization_ = reinterpret_cast<::viam::app::v1::Authorization*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.RemoveRoleRequest.authorization) +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::RegistryItem >* +ListRegistryItemsResponse::mutable_items() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ListRegistryItemsResponse.items) + return &items_; } -inline ::viam::app::v1::Authorization* RemoveRoleRequest::release_authorization() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::Authorization* released = _impl_.authorization_; - _impl_.authorization_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; +inline const ::viam::app::v1::RegistryItem& ListRegistryItemsResponse::_internal_items(int index) const { + return items_.Get(index); } -inline ::viam::app::v1::Authorization* RemoveRoleRequest::unsafe_arena_release_authorization() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.RemoveRoleRequest.authorization) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::Authorization* temp = _impl_.authorization_; - _impl_.authorization_ = nullptr; - return temp; +inline const ::viam::app::v1::RegistryItem& ListRegistryItemsResponse::items(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.ListRegistryItemsResponse.items) + return _internal_items(index); } -inline ::viam::app::v1::Authorization* RemoveRoleRequest::_internal_mutable_authorization() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.authorization_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::Authorization>(GetArena()); - _impl_.authorization_ = reinterpret_cast<::viam::app::v1::Authorization*>(p); - } - return _impl_.authorization_; +inline ::viam::app::v1::RegistryItem* ListRegistryItemsResponse::_internal_add_items() { + return items_.Add(); } -inline ::viam::app::v1::Authorization* RemoveRoleRequest::mutable_authorization() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::viam::app::v1::Authorization* _msg = _internal_mutable_authorization(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.RemoveRoleRequest.authorization) - return _msg; +inline ::viam::app::v1::RegistryItem* ListRegistryItemsResponse::add_items() { + ::viam::app::v1::RegistryItem* _add = _internal_add_items(); + // @@protoc_insertion_point(field_add:viam.app.v1.ListRegistryItemsResponse.items) + return _add; } -inline void RemoveRoleRequest::set_allocated_authorization(::viam::app::v1::Authorization* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::Authorization*>(_impl_.authorization_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::Authorization*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.authorization_ = reinterpret_cast<::viam::app::v1::Authorization*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RemoveRoleRequest.authorization) +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::RegistryItem >& +ListRegistryItemsResponse::items() const { + // @@protoc_insertion_point(field_list:viam.app.v1.ListRegistryItemsResponse.items) + return items_; } // ------------------------------------------------------------------- -// RemoveRoleResponse - -// ------------------------------------------------------------------- - -// ChangeRoleRequest +// DeleteRegistryItemRequest -// .viam.app.v1.Authorization old_authorization = 1 [json_name = "oldAuthorization"]; -inline bool ChangeRoleRequest::has_old_authorization() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.old_authorization_ != nullptr); - return value; +// string item_id = 1 [json_name = "itemId"]; +inline void DeleteRegistryItemRequest::clear_item_id() { + item_id_.ClearToEmpty(); } -inline void ChangeRoleRequest::clear_old_authorization() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.old_authorization_ != nullptr) _impl_.old_authorization_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; +inline const std::string& DeleteRegistryItemRequest::item_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.DeleteRegistryItemRequest.item_id) + return _internal_item_id(); } -inline const ::viam::app::v1::Authorization& ChangeRoleRequest::_internal_old_authorization() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::Authorization* p = _impl_.old_authorization_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_Authorization_default_instance_); +template +inline PROTOBUF_ALWAYS_INLINE +void DeleteRegistryItemRequest::set_item_id(ArgT0&& arg0, ArgT... args) { + + item_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.DeleteRegistryItemRequest.item_id) } -inline const ::viam::app::v1::Authorization& ChangeRoleRequest::old_authorization() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.ChangeRoleRequest.old_authorization) - return _internal_old_authorization(); +inline std::string* DeleteRegistryItemRequest::mutable_item_id() { + std::string* _s = _internal_mutable_item_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.DeleteRegistryItemRequest.item_id) + return _s; } -inline void ChangeRoleRequest::unsafe_arena_set_allocated_old_authorization(::viam::app::v1::Authorization* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.old_authorization_); - } - _impl_.old_authorization_ = reinterpret_cast<::viam::app::v1::Authorization*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.ChangeRoleRequest.old_authorization) +inline const std::string& DeleteRegistryItemRequest::_internal_item_id() const { + return item_id_.Get(); } -inline ::viam::app::v1::Authorization* ChangeRoleRequest::release_old_authorization() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::Authorization* released = _impl_.old_authorization_; - _impl_.old_authorization_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; +inline void DeleteRegistryItemRequest::_internal_set_item_id(const std::string& value) { + + item_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* DeleteRegistryItemRequest::_internal_mutable_item_id() { + + return item_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* DeleteRegistryItemRequest::release_item_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.DeleteRegistryItemRequest.item_id) + return item_id_.Release(); +} +inline void DeleteRegistryItemRequest::set_allocated_item_id(std::string* item_id) { + if (item_id != nullptr) { + + } else { + } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + item_id_.SetAllocated(item_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (item_id_.IsDefault()) { + item_id_.Set("", GetArenaForAllocation()); } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.DeleteRegistryItemRequest.item_id) } -inline ::viam::app::v1::Authorization* ChangeRoleRequest::unsafe_arena_release_old_authorization() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.ChangeRoleRequest.old_authorization) - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::Authorization* temp = _impl_.old_authorization_; - _impl_.old_authorization_ = nullptr; - return temp; +// ------------------------------------------------------------------- + +// DeleteRegistryItemResponse + +// ------------------------------------------------------------------- + +// TransferRegistryItemRequest + +// string item_id = 1 [json_name = "itemId"]; +inline void TransferRegistryItemRequest::clear_item_id() { + item_id_.ClearToEmpty(); } -inline ::viam::app::v1::Authorization* ChangeRoleRequest::_internal_mutable_old_authorization() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.old_authorization_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::Authorization>(GetArena()); - _impl_.old_authorization_ = reinterpret_cast<::viam::app::v1::Authorization*>(p); - } - return _impl_.old_authorization_; +inline const std::string& TransferRegistryItemRequest::item_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.TransferRegistryItemRequest.item_id) + return _internal_item_id(); } -inline ::viam::app::v1::Authorization* ChangeRoleRequest::mutable_old_authorization() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::viam::app::v1::Authorization* _msg = _internal_mutable_old_authorization(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.ChangeRoleRequest.old_authorization) - return _msg; +template +inline PROTOBUF_ALWAYS_INLINE +void TransferRegistryItemRequest::set_item_id(ArgT0&& arg0, ArgT... args) { + + item_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.TransferRegistryItemRequest.item_id) } -inline void ChangeRoleRequest::set_allocated_old_authorization(::viam::app::v1::Authorization* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::Authorization*>(_impl_.old_authorization_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::Authorization*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.old_authorization_ = reinterpret_cast<::viam::app::v1::Authorization*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ChangeRoleRequest.old_authorization) +inline std::string* TransferRegistryItemRequest::mutable_item_id() { + std::string* _s = _internal_mutable_item_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.TransferRegistryItemRequest.item_id) + return _s; } - -// .viam.app.v1.Authorization new_authorization = 2 [json_name = "newAuthorization"]; -inline bool ChangeRoleRequest::has_new_authorization() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.new_authorization_ != nullptr); - return value; +inline const std::string& TransferRegistryItemRequest::_internal_item_id() const { + return item_id_.Get(); } -inline void ChangeRoleRequest::clear_new_authorization() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.new_authorization_ != nullptr) _impl_.new_authorization_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; +inline void TransferRegistryItemRequest::_internal_set_item_id(const std::string& value) { + + item_id_.Set(value, GetArenaForAllocation()); } -inline const ::viam::app::v1::Authorization& ChangeRoleRequest::_internal_new_authorization() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::Authorization* p = _impl_.new_authorization_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_Authorization_default_instance_); +inline std::string* TransferRegistryItemRequest::_internal_mutable_item_id() { + + return item_id_.Mutable(GetArenaForAllocation()); } -inline const ::viam::app::v1::Authorization& ChangeRoleRequest::new_authorization() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.ChangeRoleRequest.new_authorization) - return _internal_new_authorization(); +inline std::string* TransferRegistryItemRequest::release_item_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.TransferRegistryItemRequest.item_id) + return item_id_.Release(); } -inline void ChangeRoleRequest::unsafe_arena_set_allocated_new_authorization(::viam::app::v1::Authorization* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.new_authorization_); - } - _impl_.new_authorization_ = reinterpret_cast<::viam::app::v1::Authorization*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; +inline void TransferRegistryItemRequest::set_allocated_item_id(std::string* item_id) { + if (item_id != nullptr) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.ChangeRoleRequest.new_authorization) -} -inline ::viam::app::v1::Authorization* ChangeRoleRequest::release_new_authorization() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::viam::app::v1::Authorization* released = _impl_.new_authorization_; - _impl_.new_authorization_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; + } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + item_id_.SetAllocated(item_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (item_id_.IsDefault()) { + item_id_.Set("", GetArenaForAllocation()); } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.TransferRegistryItemRequest.item_id) } -inline ::viam::app::v1::Authorization* ChangeRoleRequest::unsafe_arena_release_new_authorization() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.ChangeRoleRequest.new_authorization) - _impl_._has_bits_[0] &= ~0x00000002u; - ::viam::app::v1::Authorization* temp = _impl_.new_authorization_; - _impl_.new_authorization_ = nullptr; - return temp; +// string new_public_namespace = 2 [json_name = "newPublicNamespace"]; +inline void TransferRegistryItemRequest::clear_new_public_namespace() { + new_public_namespace_.ClearToEmpty(); } -inline ::viam::app::v1::Authorization* ChangeRoleRequest::_internal_mutable_new_authorization() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.new_authorization_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::Authorization>(GetArena()); - _impl_.new_authorization_ = reinterpret_cast<::viam::app::v1::Authorization*>(p); - } - return _impl_.new_authorization_; +inline const std::string& TransferRegistryItemRequest::new_public_namespace() const { + // @@protoc_insertion_point(field_get:viam.app.v1.TransferRegistryItemRequest.new_public_namespace) + return _internal_new_public_namespace(); } -inline ::viam::app::v1::Authorization* ChangeRoleRequest::mutable_new_authorization() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::viam::app::v1::Authorization* _msg = _internal_mutable_new_authorization(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.ChangeRoleRequest.new_authorization) - return _msg; +template +inline PROTOBUF_ALWAYS_INLINE +void TransferRegistryItemRequest::set_new_public_namespace(ArgT0&& arg0, ArgT... args) { + + new_public_namespace_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.TransferRegistryItemRequest.new_public_namespace) } -inline void ChangeRoleRequest::set_allocated_new_authorization(::viam::app::v1::Authorization* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::Authorization*>(_impl_.new_authorization_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::Authorization*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000002u; +inline std::string* TransferRegistryItemRequest::mutable_new_public_namespace() { + std::string* _s = _internal_mutable_new_public_namespace(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.TransferRegistryItemRequest.new_public_namespace) + return _s; +} +inline const std::string& TransferRegistryItemRequest::_internal_new_public_namespace() const { + return new_public_namespace_.Get(); +} +inline void TransferRegistryItemRequest::_internal_set_new_public_namespace(const std::string& value) { + + new_public_namespace_.Set(value, GetArenaForAllocation()); +} +inline std::string* TransferRegistryItemRequest::_internal_mutable_new_public_namespace() { + + return new_public_namespace_.Mutable(GetArenaForAllocation()); +} +inline std::string* TransferRegistryItemRequest::release_new_public_namespace() { + // @@protoc_insertion_point(field_release:viam.app.v1.TransferRegistryItemRequest.new_public_namespace) + return new_public_namespace_.Release(); +} +inline void TransferRegistryItemRequest::set_allocated_new_public_namespace(std::string* new_public_namespace) { + if (new_public_namespace != nullptr) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.new_authorization_ = reinterpret_cast<::viam::app::v1::Authorization*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ChangeRoleRequest.new_authorization) + new_public_namespace_.SetAllocated(new_public_namespace, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (new_public_namespace_.IsDefault()) { + new_public_namespace_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.TransferRegistryItemRequest.new_public_namespace) } // ------------------------------------------------------------------- -// ChangeRoleResponse +// TransferRegistryItemResponse // ------------------------------------------------------------------- -// ListAuthorizationsRequest +// CreateModuleRequest // string organization_id = 1 [json_name = "organizationId"]; -inline void ListAuthorizationsRequest::clear_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.ClearToEmpty(); +inline void CreateModuleRequest::clear_organization_id() { + organization_id_.ClearToEmpty(); } -inline const std::string& ListAuthorizationsRequest::organization_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.ListAuthorizationsRequest.organization_id) +inline const std::string& CreateModuleRequest::organization_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.CreateModuleRequest.organization_id) return _internal_organization_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void ListAuthorizationsRequest::set_organization_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.ListAuthorizationsRequest.organization_id) +template +inline PROTOBUF_ALWAYS_INLINE +void CreateModuleRequest::set_organization_id(ArgT0&& arg0, ArgT... args) { + + organization_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.CreateModuleRequest.organization_id) } -inline std::string* ListAuthorizationsRequest::mutable_organization_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* CreateModuleRequest::mutable_organization_id() { std::string* _s = _internal_mutable_organization_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.ListAuthorizationsRequest.organization_id) + // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateModuleRequest.organization_id) return _s; } -inline const std::string& ListAuthorizationsRequest::_internal_organization_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.organization_id_.Get(); +inline const std::string& CreateModuleRequest::_internal_organization_id() const { + return organization_id_.Get(); } -inline void ListAuthorizationsRequest::_internal_set_organization_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(value, GetArena()); +inline void CreateModuleRequest::_internal_set_organization_id(const std::string& value) { + + organization_id_.Set(value, GetArenaForAllocation()); } -inline std::string* ListAuthorizationsRequest::_internal_mutable_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.organization_id_.Mutable( GetArena()); +inline std::string* CreateModuleRequest::_internal_mutable_organization_id() { + + return organization_id_.Mutable(GetArenaForAllocation()); } -inline std::string* ListAuthorizationsRequest::release_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.ListAuthorizationsRequest.organization_id) - return _impl_.organization_id_.Release(); -} -inline void ListAuthorizationsRequest::set_allocated_organization_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.organization_id_.IsDefault()) { - _impl_.organization_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ListAuthorizationsRequest.organization_id) +inline std::string* CreateModuleRequest::release_organization_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.CreateModuleRequest.organization_id) + return organization_id_.Release(); +} +inline void CreateModuleRequest::set_allocated_organization_id(std::string* organization_id) { + if (organization_id != nullptr) { + + } else { + + } + organization_id_.SetAllocated(organization_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (organization_id_.IsDefault()) { + organization_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateModuleRequest.organization_id) } -// repeated string resource_ids = 2 [json_name = "resourceIds"]; -inline int ListAuthorizationsRequest::_internal_resource_ids_size() const { - return _internal_resource_ids().size(); +// string name = 2 [json_name = "name"]; +inline void CreateModuleRequest::clear_name() { + name_.ClearToEmpty(); } -inline int ListAuthorizationsRequest::resource_ids_size() const { - return _internal_resource_ids_size(); +inline const std::string& CreateModuleRequest::name() const { + // @@protoc_insertion_point(field_get:viam.app.v1.CreateModuleRequest.name) + return _internal_name(); } -inline void ListAuthorizationsRequest::clear_resource_ids() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.resource_ids_.Clear(); +template +inline PROTOBUF_ALWAYS_INLINE +void CreateModuleRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.CreateModuleRequest.name) } -inline std::string* ListAuthorizationsRequest::add_resource_ids() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_resource_ids()->Add(); - // @@protoc_insertion_point(field_add_mutable:viam.app.v1.ListAuthorizationsRequest.resource_ids) +inline std::string* CreateModuleRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateModuleRequest.name) return _s; } -inline const std::string& ListAuthorizationsRequest::resource_ids(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.ListAuthorizationsRequest.resource_ids) - return _internal_resource_ids().Get(index); -} -inline std::string* ListAuthorizationsRequest::mutable_resource_ids(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:viam.app.v1.ListAuthorizationsRequest.resource_ids) - return _internal_mutable_resource_ids()->Mutable(index); -} -inline void ListAuthorizationsRequest::set_resource_ids(int index, const std::string& value) { - _internal_mutable_resource_ids()->Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set:viam.app.v1.ListAuthorizationsRequest.resource_ids) +inline const std::string& CreateModuleRequest::_internal_name() const { + return name_.Get(); } -inline void ListAuthorizationsRequest::set_resource_ids(int index, std::string&& value) { - _internal_mutable_resource_ids()->Mutable(index)->assign(std::move(value)); - // @@protoc_insertion_point(field_set:viam.app.v1.ListAuthorizationsRequest.resource_ids) +inline void CreateModuleRequest::_internal_set_name(const std::string& value) { + + name_.Set(value, GetArenaForAllocation()); } -inline void ListAuthorizationsRequest::set_resource_ids(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_resource_ids()->Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:viam.app.v1.ListAuthorizationsRequest.resource_ids) +inline std::string* CreateModuleRequest::_internal_mutable_name() { + + return name_.Mutable(GetArenaForAllocation()); } -inline void ListAuthorizationsRequest::set_resource_ids(int index, const char* value, - std::size_t size) { - _internal_mutable_resource_ids()->Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:viam.app.v1.ListAuthorizationsRequest.resource_ids) +inline std::string* CreateModuleRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.app.v1.CreateModuleRequest.name) + return name_.Release(); } -inline void ListAuthorizationsRequest::set_resource_ids(int index, absl::string_view value) { - _internal_mutable_resource_ids()->Mutable(index)->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_set_string_piece:viam.app.v1.ListAuthorizationsRequest.resource_ids) +inline void CreateModuleRequest::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.app.v1.CreateModuleRequest.name) } -inline void ListAuthorizationsRequest::add_resource_ids(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_resource_ids()->Add()->assign(value); - // @@protoc_insertion_point(field_add:viam.app.v1.ListAuthorizationsRequest.resource_ids) + +// ------------------------------------------------------------------- + +// CreateModuleResponse + +// string module_id = 1 [json_name = "moduleId"]; +inline void CreateModuleResponse::clear_module_id() { + module_id_.ClearToEmpty(); } -inline void ListAuthorizationsRequest::add_resource_ids(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_resource_ids()->Add(std::move(value)); - // @@protoc_insertion_point(field_add:viam.app.v1.ListAuthorizationsRequest.resource_ids) +inline const std::string& CreateModuleResponse::module_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.CreateModuleResponse.module_id) + return _internal_module_id(); } -inline void ListAuthorizationsRequest::add_resource_ids(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_resource_ids()->Add()->assign(value); - // @@protoc_insertion_point(field_add_char:viam.app.v1.ListAuthorizationsRequest.resource_ids) +template +inline PROTOBUF_ALWAYS_INLINE +void CreateModuleResponse::set_module_id(ArgT0&& arg0, ArgT... args) { + + module_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.CreateModuleResponse.module_id) } -inline void ListAuthorizationsRequest::add_resource_ids(const char* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_resource_ids()->Add()->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:viam.app.v1.ListAuthorizationsRequest.resource_ids) +inline std::string* CreateModuleResponse::mutable_module_id() { + std::string* _s = _internal_mutable_module_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateModuleResponse.module_id) + return _s; } -inline void ListAuthorizationsRequest::add_resource_ids(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_resource_ids()->Add()->assign(value.data(), value.size()); - // @@protoc_insertion_point(field_add_string_piece:viam.app.v1.ListAuthorizationsRequest.resource_ids) +inline const std::string& CreateModuleResponse::_internal_module_id() const { + return module_id_.Get(); } -inline const ::google::protobuf::RepeatedPtrField& -ListAuthorizationsRequest::resource_ids() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:viam.app.v1.ListAuthorizationsRequest.resource_ids) - return _internal_resource_ids(); +inline void CreateModuleResponse::_internal_set_module_id(const std::string& value) { + + module_id_.Set(value, GetArenaForAllocation()); } -inline ::google::protobuf::RepeatedPtrField* -ListAuthorizationsRequest::mutable_resource_ids() ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ListAuthorizationsRequest.resource_ids) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_resource_ids(); +inline std::string* CreateModuleResponse::_internal_mutable_module_id() { + + return module_id_.Mutable(GetArenaForAllocation()); } -inline const ::google::protobuf::RepeatedPtrField& -ListAuthorizationsRequest::_internal_resource_ids() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.resource_ids_; +inline std::string* CreateModuleResponse::release_module_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.CreateModuleResponse.module_id) + return module_id_.Release(); } -inline ::google::protobuf::RepeatedPtrField* -ListAuthorizationsRequest::_internal_mutable_resource_ids() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.resource_ids_; +inline void CreateModuleResponse::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.CreateModuleResponse.module_id) } -// ------------------------------------------------------------------- - -// ListAuthorizationsResponse - -// repeated .viam.app.v1.Authorization authorizations = 1 [json_name = "authorizations"]; -inline int ListAuthorizationsResponse::_internal_authorizations_size() const { - return _internal_authorizations().size(); -} -inline int ListAuthorizationsResponse::authorizations_size() const { - return _internal_authorizations_size(); +// string url = 2 [json_name = "url"]; +inline void CreateModuleResponse::clear_url() { + url_.ClearToEmpty(); } -inline void ListAuthorizationsResponse::clear_authorizations() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.authorizations_.Clear(); +inline const std::string& CreateModuleResponse::url() const { + // @@protoc_insertion_point(field_get:viam.app.v1.CreateModuleResponse.url) + return _internal_url(); } -inline ::viam::app::v1::Authorization* ListAuthorizationsResponse::mutable_authorizations(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:viam.app.v1.ListAuthorizationsResponse.authorizations) - return _internal_mutable_authorizations()->Mutable(index); +template +inline PROTOBUF_ALWAYS_INLINE +void CreateModuleResponse::set_url(ArgT0&& arg0, ArgT... args) { + + url_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.CreateModuleResponse.url) } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::Authorization>* ListAuthorizationsResponse::mutable_authorizations() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ListAuthorizationsResponse.authorizations) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_authorizations(); +inline std::string* CreateModuleResponse::mutable_url() { + std::string* _s = _internal_mutable_url(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateModuleResponse.url) + return _s; } -inline const ::viam::app::v1::Authorization& ListAuthorizationsResponse::authorizations(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.ListAuthorizationsResponse.authorizations) - return _internal_authorizations().Get(index); +inline const std::string& CreateModuleResponse::_internal_url() const { + return url_.Get(); } -inline ::viam::app::v1::Authorization* ListAuthorizationsResponse::add_authorizations() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::Authorization* _add = _internal_mutable_authorizations()->Add(); - // @@protoc_insertion_point(field_add:viam.app.v1.ListAuthorizationsResponse.authorizations) - return _add; +inline void CreateModuleResponse::_internal_set_url(const std::string& value) { + + url_.Set(value, GetArenaForAllocation()); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Authorization>& ListAuthorizationsResponse::authorizations() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:viam.app.v1.ListAuthorizationsResponse.authorizations) - return _internal_authorizations(); +inline std::string* CreateModuleResponse::_internal_mutable_url() { + + return url_.Mutable(GetArenaForAllocation()); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Authorization>& -ListAuthorizationsResponse::_internal_authorizations() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.authorizations_; +inline std::string* CreateModuleResponse::release_url() { + // @@protoc_insertion_point(field_release:viam.app.v1.CreateModuleResponse.url) + return url_.Release(); } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::Authorization>* -ListAuthorizationsResponse::_internal_mutable_authorizations() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.authorizations_; +inline void CreateModuleResponse::set_allocated_url(std::string* url) { + if (url != nullptr) { + + } else { + + } + url_.SetAllocated(url, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (url_.IsDefault()) { + url_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateModuleResponse.url) } // ------------------------------------------------------------------- -// CheckPermissionsRequest +// UpdateModuleRequest -// repeated .viam.app.v1.AuthorizedPermissions permissions = 1 [json_name = "permissions"]; -inline int CheckPermissionsRequest::_internal_permissions_size() const { - return _internal_permissions().size(); -} -inline int CheckPermissionsRequest::permissions_size() const { - return _internal_permissions_size(); +// string module_id = 1 [json_name = "moduleId"]; +inline void UpdateModuleRequest::clear_module_id() { + module_id_.ClearToEmpty(); } -inline void CheckPermissionsRequest::clear_permissions() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.permissions_.Clear(); +inline const std::string& UpdateModuleRequest::module_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateModuleRequest.module_id) + return _internal_module_id(); } -inline ::viam::app::v1::AuthorizedPermissions* CheckPermissionsRequest::mutable_permissions(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:viam.app.v1.CheckPermissionsRequest.permissions) - return _internal_mutable_permissions()->Mutable(index); +template +inline PROTOBUF_ALWAYS_INLINE +void UpdateModuleRequest::set_module_id(ArgT0&& arg0, ArgT... args) { + + module_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateModuleRequest.module_id) } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::AuthorizedPermissions>* CheckPermissionsRequest::mutable_permissions() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.CheckPermissionsRequest.permissions) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_permissions(); +inline std::string* UpdateModuleRequest::mutable_module_id() { + std::string* _s = _internal_mutable_module_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateModuleRequest.module_id) + return _s; } -inline const ::viam::app::v1::AuthorizedPermissions& CheckPermissionsRequest::permissions(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.CheckPermissionsRequest.permissions) - return _internal_permissions().Get(index); +inline const std::string& UpdateModuleRequest::_internal_module_id() const { + return module_id_.Get(); } -inline ::viam::app::v1::AuthorizedPermissions* CheckPermissionsRequest::add_permissions() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::AuthorizedPermissions* _add = _internal_mutable_permissions()->Add(); - // @@protoc_insertion_point(field_add:viam.app.v1.CheckPermissionsRequest.permissions) - return _add; +inline void UpdateModuleRequest::_internal_set_module_id(const std::string& value) { + + module_id_.Set(value, GetArenaForAllocation()); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::AuthorizedPermissions>& CheckPermissionsRequest::permissions() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:viam.app.v1.CheckPermissionsRequest.permissions) - return _internal_permissions(); +inline std::string* UpdateModuleRequest::_internal_mutable_module_id() { + + return module_id_.Mutable(GetArenaForAllocation()); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::AuthorizedPermissions>& -CheckPermissionsRequest::_internal_permissions() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.permissions_; +inline std::string* UpdateModuleRequest::release_module_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateModuleRequest.module_id) + return module_id_.Release(); } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::AuthorizedPermissions>* -CheckPermissionsRequest::_internal_mutable_permissions() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.permissions_; +inline void UpdateModuleRequest::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.UpdateModuleRequest.module_id) } -// ------------------------------------------------------------------- - -// AuthorizedPermissions +// .viam.app.v1.Visibility visibility = 2 [json_name = "visibility"]; +inline void UpdateModuleRequest::clear_visibility() { + visibility_ = 0; +} +inline ::viam::app::v1::Visibility UpdateModuleRequest::_internal_visibility() const { + return static_cast< ::viam::app::v1::Visibility >(visibility_); +} +inline ::viam::app::v1::Visibility UpdateModuleRequest::visibility() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateModuleRequest.visibility) + return _internal_visibility(); +} +inline void UpdateModuleRequest::_internal_set_visibility(::viam::app::v1::Visibility value) { + + visibility_ = value; +} +inline void UpdateModuleRequest::set_visibility(::viam::app::v1::Visibility value) { + _internal_set_visibility(value); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateModuleRequest.visibility) +} -// string resource_type = 1 [json_name = "resourceType"]; -inline void AuthorizedPermissions::clear_resource_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.resource_type_.ClearToEmpty(); +// string url = 3 [json_name = "url"]; +inline void UpdateModuleRequest::clear_url() { + url_.ClearToEmpty(); } -inline const std::string& AuthorizedPermissions::resource_type() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.AuthorizedPermissions.resource_type) - return _internal_resource_type(); +inline const std::string& UpdateModuleRequest::url() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateModuleRequest.url) + return _internal_url(); } -template -inline PROTOBUF_ALWAYS_INLINE void AuthorizedPermissions::set_resource_type(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.resource_type_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.AuthorizedPermissions.resource_type) +template +inline PROTOBUF_ALWAYS_INLINE +void UpdateModuleRequest::set_url(ArgT0&& arg0, ArgT... args) { + + url_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateModuleRequest.url) } -inline std::string* AuthorizedPermissions::mutable_resource_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_resource_type(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.AuthorizedPermissions.resource_type) +inline std::string* UpdateModuleRequest::mutable_url() { + std::string* _s = _internal_mutable_url(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateModuleRequest.url) return _s; } -inline const std::string& AuthorizedPermissions::_internal_resource_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.resource_type_.Get(); +inline const std::string& UpdateModuleRequest::_internal_url() const { + return url_.Get(); } -inline void AuthorizedPermissions::_internal_set_resource_type(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.resource_type_.Set(value, GetArena()); +inline void UpdateModuleRequest::_internal_set_url(const std::string& value) { + + url_.Set(value, GetArenaForAllocation()); } -inline std::string* AuthorizedPermissions::_internal_mutable_resource_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.resource_type_.Mutable( GetArena()); +inline std::string* UpdateModuleRequest::_internal_mutable_url() { + + return url_.Mutable(GetArenaForAllocation()); } -inline std::string* AuthorizedPermissions::release_resource_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.AuthorizedPermissions.resource_type) - return _impl_.resource_type_.Release(); -} -inline void AuthorizedPermissions::set_allocated_resource_type(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.resource_type_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.resource_type_.IsDefault()) { - _impl_.resource_type_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.AuthorizedPermissions.resource_type) +inline std::string* UpdateModuleRequest::release_url() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateModuleRequest.url) + return url_.Release(); +} +inline void UpdateModuleRequest::set_allocated_url(std::string* url) { + if (url != nullptr) { + + } else { + + } + url_.SetAllocated(url, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (url_.IsDefault()) { + url_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateModuleRequest.url) } -// string resource_id = 2 [json_name = "resourceId"]; -inline void AuthorizedPermissions::clear_resource_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.resource_id_.ClearToEmpty(); +// string description = 4 [json_name = "description"]; +inline void UpdateModuleRequest::clear_description() { + description_.ClearToEmpty(); } -inline const std::string& AuthorizedPermissions::resource_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.AuthorizedPermissions.resource_id) - return _internal_resource_id(); +inline const std::string& UpdateModuleRequest::description() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateModuleRequest.description) + return _internal_description(); } -template -inline PROTOBUF_ALWAYS_INLINE void AuthorizedPermissions::set_resource_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.resource_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.AuthorizedPermissions.resource_id) +template +inline PROTOBUF_ALWAYS_INLINE +void UpdateModuleRequest::set_description(ArgT0&& arg0, ArgT... args) { + + description_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateModuleRequest.description) } -inline std::string* AuthorizedPermissions::mutable_resource_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_resource_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.AuthorizedPermissions.resource_id) +inline std::string* UpdateModuleRequest::mutable_description() { + std::string* _s = _internal_mutable_description(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateModuleRequest.description) return _s; } -inline const std::string& AuthorizedPermissions::_internal_resource_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.resource_id_.Get(); +inline const std::string& UpdateModuleRequest::_internal_description() const { + return description_.Get(); } -inline void AuthorizedPermissions::_internal_set_resource_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.resource_id_.Set(value, GetArena()); +inline void UpdateModuleRequest::_internal_set_description(const std::string& value) { + + description_.Set(value, GetArenaForAllocation()); } -inline std::string* AuthorizedPermissions::_internal_mutable_resource_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.resource_id_.Mutable( GetArena()); +inline std::string* UpdateModuleRequest::_internal_mutable_description() { + + return description_.Mutable(GetArenaForAllocation()); } -inline std::string* AuthorizedPermissions::release_resource_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.AuthorizedPermissions.resource_id) - return _impl_.resource_id_.Release(); -} -inline void AuthorizedPermissions::set_allocated_resource_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.resource_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.resource_id_.IsDefault()) { - _impl_.resource_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.AuthorizedPermissions.resource_id) +inline std::string* UpdateModuleRequest::release_description() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateModuleRequest.description) + return description_.Release(); } - -// repeated string permissions = 3 [json_name = "permissions"]; -inline int AuthorizedPermissions::_internal_permissions_size() const { - return _internal_permissions().size(); +inline void UpdateModuleRequest::set_allocated_description(std::string* description) { + if (description != nullptr) { + + } else { + + } + description_.SetAllocated(description, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (description_.IsDefault()) { + description_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateModuleRequest.description) } -inline int AuthorizedPermissions::permissions_size() const { - return _internal_permissions_size(); + +// repeated .viam.app.v1.Model models = 5 [json_name = "models"]; +inline int UpdateModuleRequest::_internal_models_size() const { + return models_.size(); } -inline void AuthorizedPermissions::clear_permissions() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.permissions_.Clear(); +inline int UpdateModuleRequest::models_size() const { + return _internal_models_size(); } -inline std::string* AuthorizedPermissions::add_permissions() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_permissions()->Add(); - // @@protoc_insertion_point(field_add_mutable:viam.app.v1.AuthorizedPermissions.permissions) - return _s; +inline void UpdateModuleRequest::clear_models() { + models_.Clear(); } -inline const std::string& AuthorizedPermissions::permissions(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.AuthorizedPermissions.permissions) - return _internal_permissions().Get(index); +inline ::viam::app::v1::Model* UpdateModuleRequest::mutable_models(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateModuleRequest.models) + return models_.Mutable(index); } -inline std::string* AuthorizedPermissions::mutable_permissions(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:viam.app.v1.AuthorizedPermissions.permissions) - return _internal_mutable_permissions()->Mutable(index); +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Model >* +UpdateModuleRequest::mutable_models() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.UpdateModuleRequest.models) + return &models_; } -inline void AuthorizedPermissions::set_permissions(int index, const std::string& value) { - _internal_mutable_permissions()->Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set:viam.app.v1.AuthorizedPermissions.permissions) +inline const ::viam::app::v1::Model& UpdateModuleRequest::_internal_models(int index) const { + return models_.Get(index); } -inline void AuthorizedPermissions::set_permissions(int index, std::string&& value) { - _internal_mutable_permissions()->Mutable(index)->assign(std::move(value)); - // @@protoc_insertion_point(field_set:viam.app.v1.AuthorizedPermissions.permissions) +inline const ::viam::app::v1::Model& UpdateModuleRequest::models(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateModuleRequest.models) + return _internal_models(index); } -inline void AuthorizedPermissions::set_permissions(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_permissions()->Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:viam.app.v1.AuthorizedPermissions.permissions) +inline ::viam::app::v1::Model* UpdateModuleRequest::_internal_add_models() { + return models_.Add(); } -inline void AuthorizedPermissions::set_permissions(int index, const char* value, - std::size_t size) { - _internal_mutable_permissions()->Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:viam.app.v1.AuthorizedPermissions.permissions) +inline ::viam::app::v1::Model* UpdateModuleRequest::add_models() { + ::viam::app::v1::Model* _add = _internal_add_models(); + // @@protoc_insertion_point(field_add:viam.app.v1.UpdateModuleRequest.models) + return _add; } -inline void AuthorizedPermissions::set_permissions(int index, absl::string_view value) { - _internal_mutable_permissions()->Mutable(index)->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_set_string_piece:viam.app.v1.AuthorizedPermissions.permissions) +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Model >& +UpdateModuleRequest::models() const { + // @@protoc_insertion_point(field_list:viam.app.v1.UpdateModuleRequest.models) + return models_; } -inline void AuthorizedPermissions::add_permissions(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_permissions()->Add()->assign(value); - // @@protoc_insertion_point(field_add:viam.app.v1.AuthorizedPermissions.permissions) + +// string entrypoint = 6 [json_name = "entrypoint"]; +inline void UpdateModuleRequest::clear_entrypoint() { + entrypoint_.ClearToEmpty(); } -inline void AuthorizedPermissions::add_permissions(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_permissions()->Add(std::move(value)); - // @@protoc_insertion_point(field_add:viam.app.v1.AuthorizedPermissions.permissions) +inline const std::string& UpdateModuleRequest::entrypoint() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateModuleRequest.entrypoint) + return _internal_entrypoint(); } -inline void AuthorizedPermissions::add_permissions(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_permissions()->Add()->assign(value); - // @@protoc_insertion_point(field_add_char:viam.app.v1.AuthorizedPermissions.permissions) +template +inline PROTOBUF_ALWAYS_INLINE +void UpdateModuleRequest::set_entrypoint(ArgT0&& arg0, ArgT... args) { + + entrypoint_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateModuleRequest.entrypoint) } -inline void AuthorizedPermissions::add_permissions(const char* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_permissions()->Add()->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:viam.app.v1.AuthorizedPermissions.permissions) +inline std::string* UpdateModuleRequest::mutable_entrypoint() { + std::string* _s = _internal_mutable_entrypoint(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateModuleRequest.entrypoint) + return _s; } -inline void AuthorizedPermissions::add_permissions(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_permissions()->Add()->assign(value.data(), value.size()); - // @@protoc_insertion_point(field_add_string_piece:viam.app.v1.AuthorizedPermissions.permissions) +inline const std::string& UpdateModuleRequest::_internal_entrypoint() const { + return entrypoint_.Get(); } -inline const ::google::protobuf::RepeatedPtrField& -AuthorizedPermissions::permissions() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:viam.app.v1.AuthorizedPermissions.permissions) - return _internal_permissions(); +inline void UpdateModuleRequest::_internal_set_entrypoint(const std::string& value) { + + entrypoint_.Set(value, GetArenaForAllocation()); } -inline ::google::protobuf::RepeatedPtrField* -AuthorizedPermissions::mutable_permissions() ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.AuthorizedPermissions.permissions) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_permissions(); +inline std::string* UpdateModuleRequest::_internal_mutable_entrypoint() { + + return entrypoint_.Mutable(GetArenaForAllocation()); } -inline const ::google::protobuf::RepeatedPtrField& -AuthorizedPermissions::_internal_permissions() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.permissions_; +inline std::string* UpdateModuleRequest::release_entrypoint() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateModuleRequest.entrypoint) + return entrypoint_.Release(); } -inline ::google::protobuf::RepeatedPtrField* -AuthorizedPermissions::_internal_mutable_permissions() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.permissions_; +inline void UpdateModuleRequest::set_allocated_entrypoint(std::string* entrypoint) { + if (entrypoint != nullptr) { + + } else { + + } + entrypoint_.SetAllocated(entrypoint, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (entrypoint_.IsDefault()) { + entrypoint_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateModuleRequest.entrypoint) } -// ------------------------------------------------------------------- - -// CheckPermissionsResponse - -// repeated .viam.app.v1.AuthorizedPermissions authorized_permissions = 1 [json_name = "authorizedPermissions"]; -inline int CheckPermissionsResponse::_internal_authorized_permissions_size() const { - return _internal_authorized_permissions().size(); +// optional string first_run = 7 [json_name = "firstRun"]; +inline bool UpdateModuleRequest::_internal_has_first_run() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; } -inline int CheckPermissionsResponse::authorized_permissions_size() const { - return _internal_authorized_permissions_size(); +inline bool UpdateModuleRequest::has_first_run() const { + return _internal_has_first_run(); } -inline void CheckPermissionsResponse::clear_authorized_permissions() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.authorized_permissions_.Clear(); +inline void UpdateModuleRequest::clear_first_run() { + first_run_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; } -inline ::viam::app::v1::AuthorizedPermissions* CheckPermissionsResponse::mutable_authorized_permissions(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:viam.app.v1.CheckPermissionsResponse.authorized_permissions) - return _internal_mutable_authorized_permissions()->Mutable(index); +inline const std::string& UpdateModuleRequest::first_run() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateModuleRequest.first_run) + return _internal_first_run(); } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::AuthorizedPermissions>* CheckPermissionsResponse::mutable_authorized_permissions() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.CheckPermissionsResponse.authorized_permissions) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_authorized_permissions(); +template +inline PROTOBUF_ALWAYS_INLINE +void UpdateModuleRequest::set_first_run(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + first_run_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateModuleRequest.first_run) } -inline const ::viam::app::v1::AuthorizedPermissions& CheckPermissionsResponse::authorized_permissions(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.CheckPermissionsResponse.authorized_permissions) - return _internal_authorized_permissions().Get(index); +inline std::string* UpdateModuleRequest::mutable_first_run() { + std::string* _s = _internal_mutable_first_run(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateModuleRequest.first_run) + return _s; } -inline ::viam::app::v1::AuthorizedPermissions* CheckPermissionsResponse::add_authorized_permissions() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::AuthorizedPermissions* _add = _internal_mutable_authorized_permissions()->Add(); - // @@protoc_insertion_point(field_add:viam.app.v1.CheckPermissionsResponse.authorized_permissions) - return _add; +inline const std::string& UpdateModuleRequest::_internal_first_run() const { + return first_run_.Get(); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::AuthorizedPermissions>& CheckPermissionsResponse::authorized_permissions() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:viam.app.v1.CheckPermissionsResponse.authorized_permissions) - return _internal_authorized_permissions(); +inline void UpdateModuleRequest::_internal_set_first_run(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + first_run_.Set(value, GetArenaForAllocation()); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::AuthorizedPermissions>& -CheckPermissionsResponse::_internal_authorized_permissions() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.authorized_permissions_; +inline std::string* UpdateModuleRequest::_internal_mutable_first_run() { + _has_bits_[0] |= 0x00000001u; + return first_run_.Mutable(GetArenaForAllocation()); +} +inline std::string* UpdateModuleRequest::release_first_run() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateModuleRequest.first_run) + if (!_internal_has_first_run()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + auto* p = first_run_.Release(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (first_run_.IsDefault()) { + first_run_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::AuthorizedPermissions>* -CheckPermissionsResponse::_internal_mutable_authorized_permissions() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.authorized_permissions_; +inline void UpdateModuleRequest::set_allocated_first_run(std::string* first_run) { + if (first_run != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + first_run_.SetAllocated(first_run, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (first_run_.IsDefault()) { + first_run_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateModuleRequest.first_run) } // ------------------------------------------------------------------- -// ModuleVersion +// UpdateModuleResponse -// string version = 1 [json_name = "version"]; -inline void ModuleVersion::clear_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.version_.ClearToEmpty(); +// string url = 1 [json_name = "url"]; +inline void UpdateModuleResponse::clear_url() { + url_.ClearToEmpty(); } -inline const std::string& ModuleVersion::version() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.ModuleVersion.version) - return _internal_version(); +inline const std::string& UpdateModuleResponse::url() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateModuleResponse.url) + return _internal_url(); } -template -inline PROTOBUF_ALWAYS_INLINE void ModuleVersion::set_version(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.version_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.ModuleVersion.version) +template +inline PROTOBUF_ALWAYS_INLINE +void UpdateModuleResponse::set_url(ArgT0&& arg0, ArgT... args) { + + url_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateModuleResponse.url) } -inline std::string* ModuleVersion::mutable_version() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_version(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.ModuleVersion.version) +inline std::string* UpdateModuleResponse::mutable_url() { + std::string* _s = _internal_mutable_url(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateModuleResponse.url) return _s; } -inline const std::string& ModuleVersion::_internal_version() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.version_.Get(); +inline const std::string& UpdateModuleResponse::_internal_url() const { + return url_.Get(); } -inline void ModuleVersion::_internal_set_version(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.version_.Set(value, GetArena()); +inline void UpdateModuleResponse::_internal_set_url(const std::string& value) { + + url_.Set(value, GetArenaForAllocation()); } -inline std::string* ModuleVersion::_internal_mutable_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.version_.Mutable( GetArena()); +inline std::string* UpdateModuleResponse::_internal_mutable_url() { + + return url_.Mutable(GetArenaForAllocation()); } -inline std::string* ModuleVersion::release_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.ModuleVersion.version) - return _impl_.version_.Release(); -} -inline void ModuleVersion::set_allocated_version(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.version_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.version_.IsDefault()) { - _impl_.version_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ModuleVersion.version) +inline std::string* UpdateModuleResponse::release_url() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateModuleResponse.url) + return url_.Release(); +} +inline void UpdateModuleResponse::set_allocated_url(std::string* url) { + if (url != nullptr) { + + } else { + + } + url_.SetAllocated(url, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (url_.IsDefault()) { + url_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateModuleResponse.url) } -// repeated .viam.app.v1.Uploads files = 2 [json_name = "files"]; -inline int ModuleVersion::_internal_files_size() const { - return _internal_files().size(); +// ------------------------------------------------------------------- + +// UpdateModuleMetadata + +// repeated .viam.app.v1.Model models = 1 [json_name = "models"]; +inline int UpdateModuleMetadata::_internal_models_size() const { + return models_.size(); } -inline int ModuleVersion::files_size() const { - return _internal_files_size(); +inline int UpdateModuleMetadata::models_size() const { + return _internal_models_size(); } -inline void ModuleVersion::clear_files() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.files_.Clear(); +inline void UpdateModuleMetadata::clear_models() { + models_.Clear(); } -inline ::viam::app::v1::Uploads* ModuleVersion::mutable_files(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:viam.app.v1.ModuleVersion.files) - return _internal_mutable_files()->Mutable(index); +inline ::viam::app::v1::Model* UpdateModuleMetadata::mutable_models(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateModuleMetadata.models) + return models_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::Uploads>* ModuleVersion::mutable_files() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ModuleVersion.files) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_files(); +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Model >* +UpdateModuleMetadata::mutable_models() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.UpdateModuleMetadata.models) + return &models_; } -inline const ::viam::app::v1::Uploads& ModuleVersion::files(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.ModuleVersion.files) - return _internal_files().Get(index); +inline const ::viam::app::v1::Model& UpdateModuleMetadata::_internal_models(int index) const { + return models_.Get(index); } -inline ::viam::app::v1::Uploads* ModuleVersion::add_files() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::Uploads* _add = _internal_mutable_files()->Add(); - // @@protoc_insertion_point(field_add:viam.app.v1.ModuleVersion.files) - return _add; +inline const ::viam::app::v1::Model& UpdateModuleMetadata::models(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateModuleMetadata.models) + return _internal_models(index); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Uploads>& ModuleVersion::files() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:viam.app.v1.ModuleVersion.files) - return _internal_files(); +inline ::viam::app::v1::Model* UpdateModuleMetadata::_internal_add_models() { + return models_.Add(); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Uploads>& -ModuleVersion::_internal_files() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.files_; +inline ::viam::app::v1::Model* UpdateModuleMetadata::add_models() { + ::viam::app::v1::Model* _add = _internal_add_models(); + // @@protoc_insertion_point(field_add:viam.app.v1.UpdateModuleMetadata.models) + return _add; } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::Uploads>* -ModuleVersion::_internal_mutable_files() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.files_; +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Model >& +UpdateModuleMetadata::models() const { + // @@protoc_insertion_point(field_list:viam.app.v1.UpdateModuleMetadata.models) + return models_; } -// repeated .viam.app.v1.Model models = 3 [json_name = "models"]; -inline int ModuleVersion::_internal_models_size() const { - return _internal_models().size(); +// string entrypoint = 2 [json_name = "entrypoint"]; +inline void UpdateModuleMetadata::clear_entrypoint() { + entrypoint_.ClearToEmpty(); } -inline int ModuleVersion::models_size() const { - return _internal_models_size(); +inline const std::string& UpdateModuleMetadata::entrypoint() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateModuleMetadata.entrypoint) + return _internal_entrypoint(); } -inline void ModuleVersion::clear_models() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.models_.Clear(); +template +inline PROTOBUF_ALWAYS_INLINE +void UpdateModuleMetadata::set_entrypoint(ArgT0&& arg0, ArgT... args) { + + entrypoint_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateModuleMetadata.entrypoint) } -inline ::viam::app::v1::Model* ModuleVersion::mutable_models(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:viam.app.v1.ModuleVersion.models) - return _internal_mutable_models()->Mutable(index); +inline std::string* UpdateModuleMetadata::mutable_entrypoint() { + std::string* _s = _internal_mutable_entrypoint(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateModuleMetadata.entrypoint) + return _s; } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::Model>* ModuleVersion::mutable_models() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ModuleVersion.models) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_models(); +inline const std::string& UpdateModuleMetadata::_internal_entrypoint() const { + return entrypoint_.Get(); } -inline const ::viam::app::v1::Model& ModuleVersion::models(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.ModuleVersion.models) - return _internal_models().Get(index); +inline void UpdateModuleMetadata::_internal_set_entrypoint(const std::string& value) { + + entrypoint_.Set(value, GetArenaForAllocation()); } -inline ::viam::app::v1::Model* ModuleVersion::add_models() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::Model* _add = _internal_mutable_models()->Add(); - // @@protoc_insertion_point(field_add:viam.app.v1.ModuleVersion.models) - return _add; +inline std::string* UpdateModuleMetadata::_internal_mutable_entrypoint() { + + return entrypoint_.Mutable(GetArenaForAllocation()); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Model>& ModuleVersion::models() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:viam.app.v1.ModuleVersion.models) - return _internal_models(); +inline std::string* UpdateModuleMetadata::release_entrypoint() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateModuleMetadata.entrypoint) + return entrypoint_.Release(); +} +inline void UpdateModuleMetadata::set_allocated_entrypoint(std::string* entrypoint) { + if (entrypoint != nullptr) { + + } else { + + } + entrypoint_.SetAllocated(entrypoint, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (entrypoint_.IsDefault()) { + entrypoint_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateModuleMetadata.entrypoint) +} + +// ------------------------------------------------------------------- + +// UpdateMLModelMetadata + +// .viam.app.mltraining.v1.ModelType model_type = 1 [json_name = "modelType"]; +inline void UpdateMLModelMetadata::clear_model_type() { + model_type_ = 0; +} +inline ::viam::app::mltraining::v1::ModelType UpdateMLModelMetadata::_internal_model_type() const { + return static_cast< ::viam::app::mltraining::v1::ModelType >(model_type_); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Model>& -ModuleVersion::_internal_models() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.models_; +inline ::viam::app::mltraining::v1::ModelType UpdateMLModelMetadata::model_type() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateMLModelMetadata.model_type) + return _internal_model_type(); +} +inline void UpdateMLModelMetadata::_internal_set_model_type(::viam::app::mltraining::v1::ModelType value) { + + model_type_ = value; } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::Model>* -ModuleVersion::_internal_mutable_models() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.models_; +inline void UpdateMLModelMetadata::set_model_type(::viam::app::mltraining::v1::ModelType value) { + _internal_set_model_type(value); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateMLModelMetadata.model_type) } -// string entrypoint = 4 [json_name = "entrypoint"]; -inline void ModuleVersion::clear_entrypoint() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.entrypoint_.ClearToEmpty(); +// .viam.app.mltraining.v1.ModelFramework model_framework = 2 [json_name = "modelFramework"]; +inline void UpdateMLModelMetadata::clear_model_framework() { + model_framework_ = 0; } -inline const std::string& ModuleVersion::entrypoint() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.ModuleVersion.entrypoint) - return _internal_entrypoint(); +inline ::viam::app::mltraining::v1::ModelFramework UpdateMLModelMetadata::_internal_model_framework() const { + return static_cast< ::viam::app::mltraining::v1::ModelFramework >(model_framework_); } -template -inline PROTOBUF_ALWAYS_INLINE void ModuleVersion::set_entrypoint(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.entrypoint_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.ModuleVersion.entrypoint) +inline ::viam::app::mltraining::v1::ModelFramework UpdateMLModelMetadata::model_framework() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateMLModelMetadata.model_framework) + return _internal_model_framework(); } -inline std::string* ModuleVersion::mutable_entrypoint() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_entrypoint(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.ModuleVersion.entrypoint) - return _s; +inline void UpdateMLModelMetadata::_internal_set_model_framework(::viam::app::mltraining::v1::ModelFramework value) { + + model_framework_ = value; } -inline const std::string& ModuleVersion::_internal_entrypoint() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.entrypoint_.Get(); +inline void UpdateMLModelMetadata::set_model_framework(::viam::app::mltraining::v1::ModelFramework value) { + _internal_set_model_framework(value); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateMLModelMetadata.model_framework) } -inline void ModuleVersion::_internal_set_entrypoint(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.entrypoint_.Set(value, GetArena()); + +// ------------------------------------------------------------------- + +// UpdateMLTrainingMetadata + +// .viam.app.mltraining.v1.ModelType model_type = 1 [json_name = "modelType"]; +inline void UpdateMLTrainingMetadata::clear_model_type() { + model_type_ = 0; } -inline std::string* ModuleVersion::_internal_mutable_entrypoint() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.entrypoint_.Mutable( GetArena()); +inline ::viam::app::mltraining::v1::ModelType UpdateMLTrainingMetadata::_internal_model_type() const { + return static_cast< ::viam::app::mltraining::v1::ModelType >(model_type_); } -inline std::string* ModuleVersion::release_entrypoint() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.ModuleVersion.entrypoint) - return _impl_.entrypoint_.Release(); -} -inline void ModuleVersion::set_allocated_entrypoint(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.entrypoint_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.entrypoint_.IsDefault()) { - _impl_.entrypoint_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ModuleVersion.entrypoint) +inline ::viam::app::mltraining::v1::ModelType UpdateMLTrainingMetadata::model_type() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateMLTrainingMetadata.model_type) + return _internal_model_type(); +} +inline void UpdateMLTrainingMetadata::_internal_set_model_type(::viam::app::mltraining::v1::ModelType value) { + + model_type_ = value; +} +inline void UpdateMLTrainingMetadata::set_model_type(::viam::app::mltraining::v1::ModelType value) { + _internal_set_model_type(value); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateMLTrainingMetadata.model_type) } -// optional string first_run = 5 [json_name = "firstRun"]; -inline bool ModuleVersion::has_first_run() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - return value; +// .viam.app.mltraining.v1.ModelFramework model_framework = 2 [json_name = "modelFramework"]; +inline void UpdateMLTrainingMetadata::clear_model_framework() { + model_framework_ = 0; } -inline void ModuleVersion::clear_first_run() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.first_run_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000001u; +inline ::viam::app::mltraining::v1::ModelFramework UpdateMLTrainingMetadata::_internal_model_framework() const { + return static_cast< ::viam::app::mltraining::v1::ModelFramework >(model_framework_); } -inline const std::string& ModuleVersion::first_run() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.ModuleVersion.first_run) - return _internal_first_run(); +inline ::viam::app::mltraining::v1::ModelFramework UpdateMLTrainingMetadata::model_framework() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateMLTrainingMetadata.model_framework) + return _internal_model_framework(); } -template -inline PROTOBUF_ALWAYS_INLINE void ModuleVersion::set_first_run(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.first_run_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.ModuleVersion.first_run) +inline void UpdateMLTrainingMetadata::_internal_set_model_framework(::viam::app::mltraining::v1::ModelFramework value) { + + model_framework_ = value; } -inline std::string* ModuleVersion::mutable_first_run() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_first_run(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.ModuleVersion.first_run) - return _s; +inline void UpdateMLTrainingMetadata::set_model_framework(::viam::app::mltraining::v1::ModelFramework value) { + _internal_set_model_framework(value); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateMLTrainingMetadata.model_framework) } -inline const std::string& ModuleVersion::_internal_first_run() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.first_run_.Get(); + +// bool draft = 3 [json_name = "draft"]; +inline void UpdateMLTrainingMetadata::clear_draft() { + draft_ = false; } -inline void ModuleVersion::_internal_set_first_run(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.first_run_.Set(value, GetArena()); +inline bool UpdateMLTrainingMetadata::_internal_draft() const { + return draft_; } -inline std::string* ModuleVersion::_internal_mutable_first_run() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.first_run_.Mutable( GetArena()); +inline bool UpdateMLTrainingMetadata::draft() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateMLTrainingMetadata.draft) + return _internal_draft(); } -inline std::string* ModuleVersion::release_first_run() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.ModuleVersion.first_run) - if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { - return nullptr; - } - _impl_._has_bits_[0] &= ~0x00000001u; - auto* released = _impl_.first_run_.Release(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.first_run_.Set("", GetArena()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return released; +inline void UpdateMLTrainingMetadata::_internal_set_draft(bool value) { + + draft_ = value; } -inline void ModuleVersion::set_allocated_first_run(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - _impl_.first_run_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.first_run_.IsDefault()) { - _impl_.first_run_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ModuleVersion.first_run) +inline void UpdateMLTrainingMetadata::set_draft(bool value) { + _internal_set_draft(value); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateMLTrainingMetadata.draft) } // ------------------------------------------------------------------- -// ModuleMetadata +// Model -// repeated .viam.app.v1.Model models = 1 [json_name = "models"]; -inline int ModuleMetadata::_internal_models_size() const { - return _internal_models().size(); -} -inline int ModuleMetadata::models_size() const { - return _internal_models_size(); +// string api = 1 [json_name = "api"]; +inline void Model::clear_api() { + api_.ClearToEmpty(); } -inline void ModuleMetadata::clear_models() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.models_.Clear(); +inline const std::string& Model::api() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Model.api) + return _internal_api(); } -inline ::viam::app::v1::Model* ModuleMetadata::mutable_models(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:viam.app.v1.ModuleMetadata.models) - return _internal_mutable_models()->Mutable(index); +template +inline PROTOBUF_ALWAYS_INLINE +void Model::set_api(ArgT0&& arg0, ArgT... args) { + + api_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.Model.api) } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::Model>* ModuleMetadata::mutable_models() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ModuleMetadata.models) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_models(); +inline std::string* Model::mutable_api() { + std::string* _s = _internal_mutable_api(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Model.api) + return _s; } -inline const ::viam::app::v1::Model& ModuleMetadata::models(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.ModuleMetadata.models) - return _internal_models().Get(index); +inline const std::string& Model::_internal_api() const { + return api_.Get(); } -inline ::viam::app::v1::Model* ModuleMetadata::add_models() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::Model* _add = _internal_mutable_models()->Add(); - // @@protoc_insertion_point(field_add:viam.app.v1.ModuleMetadata.models) - return _add; +inline void Model::_internal_set_api(const std::string& value) { + + api_.Set(value, GetArenaForAllocation()); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Model>& ModuleMetadata::models() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:viam.app.v1.ModuleMetadata.models) - return _internal_models(); +inline std::string* Model::_internal_mutable_api() { + + return api_.Mutable(GetArenaForAllocation()); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Model>& -ModuleMetadata::_internal_models() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.models_; +inline std::string* Model::release_api() { + // @@protoc_insertion_point(field_release:viam.app.v1.Model.api) + return api_.Release(); } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::Model>* -ModuleMetadata::_internal_mutable_models() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.models_; +inline void Model::set_allocated_api(std::string* api) { + if (api != nullptr) { + + } else { + + } + api_.SetAllocated(api, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (api_.IsDefault()) { + api_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Model.api) } -// repeated .viam.app.v1.ModuleVersion versions = 2 [json_name = "versions"]; -inline int ModuleMetadata::_internal_versions_size() const { - return _internal_versions().size(); -} -inline int ModuleMetadata::versions_size() const { - return _internal_versions_size(); +// string model = 2 [json_name = "model"]; +inline void Model::clear_model() { + model_.ClearToEmpty(); } -inline void ModuleMetadata::clear_versions() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.versions_.Clear(); +inline const std::string& Model::model() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Model.model) + return _internal_model(); } -inline ::viam::app::v1::ModuleVersion* ModuleMetadata::mutable_versions(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:viam.app.v1.ModuleMetadata.versions) - return _internal_mutable_versions()->Mutable(index); +template +inline PROTOBUF_ALWAYS_INLINE +void Model::set_model(ArgT0&& arg0, ArgT... args) { + + model_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.Model.model) } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::ModuleVersion>* ModuleMetadata::mutable_versions() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ModuleMetadata.versions) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_versions(); +inline std::string* Model::mutable_model() { + std::string* _s = _internal_mutable_model(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Model.model) + return _s; } -inline const ::viam::app::v1::ModuleVersion& ModuleMetadata::versions(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.ModuleMetadata.versions) - return _internal_versions().Get(index); +inline const std::string& Model::_internal_model() const { + return model_.Get(); } -inline ::viam::app::v1::ModuleVersion* ModuleMetadata::add_versions() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::ModuleVersion* _add = _internal_mutable_versions()->Add(); - // @@protoc_insertion_point(field_add:viam.app.v1.ModuleMetadata.versions) - return _add; +inline void Model::_internal_set_model(const std::string& value) { + + model_.Set(value, GetArenaForAllocation()); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::ModuleVersion>& ModuleMetadata::versions() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:viam.app.v1.ModuleMetadata.versions) - return _internal_versions(); +inline std::string* Model::_internal_mutable_model() { + + return model_.Mutable(GetArenaForAllocation()); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::ModuleVersion>& -ModuleMetadata::_internal_versions() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.versions_; +inline std::string* Model::release_model() { + // @@protoc_insertion_point(field_release:viam.app.v1.Model.model) + return model_.Release(); } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::ModuleVersion>* -ModuleMetadata::_internal_mutable_versions() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.versions_; +inline void Model::set_allocated_model(std::string* model) { + if (model != nullptr) { + + } else { + + } + model_.SetAllocated(model, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (model_.IsDefault()) { + model_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Model.model) } -// string entrypoint = 3 [json_name = "entrypoint"]; -inline void ModuleMetadata::clear_entrypoint() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.entrypoint_.ClearToEmpty(); +// optional string markdown_documentation = 3 [json_name = "markdownDocumentation"]; +inline bool Model::_internal_has_markdown_documentation() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; } -inline const std::string& ModuleMetadata::entrypoint() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.ModuleMetadata.entrypoint) - return _internal_entrypoint(); +inline bool Model::has_markdown_documentation() const { + return _internal_has_markdown_documentation(); } -template -inline PROTOBUF_ALWAYS_INLINE void ModuleMetadata::set_entrypoint(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.entrypoint_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.ModuleMetadata.entrypoint) +inline void Model::clear_markdown_documentation() { + markdown_documentation_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; } -inline std::string* ModuleMetadata::mutable_entrypoint() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_entrypoint(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.ModuleMetadata.entrypoint) +inline const std::string& Model::markdown_documentation() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Model.markdown_documentation) + return _internal_markdown_documentation(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Model::set_markdown_documentation(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + markdown_documentation_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.Model.markdown_documentation) +} +inline std::string* Model::mutable_markdown_documentation() { + std::string* _s = _internal_mutable_markdown_documentation(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Model.markdown_documentation) return _s; } -inline const std::string& ModuleMetadata::_internal_entrypoint() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.entrypoint_.Get(); +inline const std::string& Model::_internal_markdown_documentation() const { + return markdown_documentation_.Get(); } -inline void ModuleMetadata::_internal_set_entrypoint(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.entrypoint_.Set(value, GetArena()); +inline void Model::_internal_set_markdown_documentation(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + markdown_documentation_.Set(value, GetArenaForAllocation()); } -inline std::string* ModuleMetadata::_internal_mutable_entrypoint() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.entrypoint_.Mutable( GetArena()); +inline std::string* Model::_internal_mutable_markdown_documentation() { + _has_bits_[0] |= 0x00000001u; + return markdown_documentation_.Mutable(GetArenaForAllocation()); } -inline std::string* ModuleMetadata::release_entrypoint() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.ModuleMetadata.entrypoint) - return _impl_.entrypoint_.Release(); -} -inline void ModuleMetadata::set_allocated_entrypoint(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.entrypoint_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.entrypoint_.IsDefault()) { - _impl_.entrypoint_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ModuleMetadata.entrypoint) +inline std::string* Model::release_markdown_documentation() { + // @@protoc_insertion_point(field_release:viam.app.v1.Model.markdown_documentation) + if (!_internal_has_markdown_documentation()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + auto* p = markdown_documentation_.Release(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (markdown_documentation_.IsDefault()) { + markdown_documentation_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; +} +inline void Model::set_allocated_markdown_documentation(std::string* markdown_documentation) { + if (markdown_documentation != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + markdown_documentation_.SetAllocated(markdown_documentation, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (markdown_documentation_.IsDefault()) { + markdown_documentation_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Model.markdown_documentation) } -// optional string first_run = 4 [json_name = "firstRun"]; -inline bool ModuleMetadata::has_first_run() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; +// optional string description = 4 [json_name = "description"]; +inline bool Model::_internal_has_description() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; return value; } -inline void ModuleMetadata::clear_first_run() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.first_run_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000001u; +inline bool Model::has_description() const { + return _internal_has_description(); } -inline const std::string& ModuleMetadata::first_run() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.ModuleMetadata.first_run) - return _internal_first_run(); +inline void Model::clear_description() { + description_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000002u; } -template -inline PROTOBUF_ALWAYS_INLINE void ModuleMetadata::set_first_run(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.first_run_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.ModuleMetadata.first_run) +inline const std::string& Model::description() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Model.description) + return _internal_description(); } -inline std::string* ModuleMetadata::mutable_first_run() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_first_run(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.ModuleMetadata.first_run) +template +inline PROTOBUF_ALWAYS_INLINE +void Model::set_description(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000002u; + description_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.Model.description) +} +inline std::string* Model::mutable_description() { + std::string* _s = _internal_mutable_description(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Model.description) return _s; } -inline const std::string& ModuleMetadata::_internal_first_run() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.first_run_.Get(); +inline const std::string& Model::_internal_description() const { + return description_.Get(); } -inline void ModuleMetadata::_internal_set_first_run(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.first_run_.Set(value, GetArena()); +inline void Model::_internal_set_description(const std::string& value) { + _has_bits_[0] |= 0x00000002u; + description_.Set(value, GetArenaForAllocation()); } -inline std::string* ModuleMetadata::_internal_mutable_first_run() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.first_run_.Mutable( GetArena()); +inline std::string* Model::_internal_mutable_description() { + _has_bits_[0] |= 0x00000002u; + return description_.Mutable(GetArenaForAllocation()); } -inline std::string* ModuleMetadata::release_first_run() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.ModuleMetadata.first_run) - if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { +inline std::string* Model::release_description() { + // @@protoc_insertion_point(field_release:viam.app.v1.Model.description) + if (!_internal_has_description()) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000001u; - auto* released = _impl_.first_run_.Release(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.first_run_.Set("", GetArena()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return released; + _has_bits_[0] &= ~0x00000002u; + auto* p = description_.Release(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (description_.IsDefault()) { + description_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; } -inline void ModuleMetadata::set_allocated_first_run(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; +inline void Model::set_allocated_description(std::string* description) { + if (description != nullptr) { + _has_bits_[0] |= 0x00000002u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; + _has_bits_[0] &= ~0x00000002u; } - _impl_.first_run_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.first_run_.IsDefault()) { - _impl_.first_run_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ModuleMetadata.first_run) + description_.SetAllocated(description, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (description_.IsDefault()) { + description_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Model.description) } // ------------------------------------------------------------------- -// MLModelMetadata +// ModuleFileInfo -// repeated string versions = 1 [json_name = "versions"]; -inline int MLModelMetadata::_internal_versions_size() const { - return _internal_versions().size(); +// string module_id = 1 [json_name = "moduleId"]; +inline void ModuleFileInfo::clear_module_id() { + module_id_.ClearToEmpty(); } -inline int MLModelMetadata::versions_size() const { - return _internal_versions_size(); +inline const std::string& ModuleFileInfo::module_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ModuleFileInfo.module_id) + return _internal_module_id(); } -inline void MLModelMetadata::clear_versions() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.versions_.Clear(); +template +inline PROTOBUF_ALWAYS_INLINE +void ModuleFileInfo::set_module_id(ArgT0&& arg0, ArgT... args) { + + module_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.ModuleFileInfo.module_id) } -inline std::string* MLModelMetadata::add_versions() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_versions()->Add(); - // @@protoc_insertion_point(field_add_mutable:viam.app.v1.MLModelMetadata.versions) +inline std::string* ModuleFileInfo::mutable_module_id() { + std::string* _s = _internal_mutable_module_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ModuleFileInfo.module_id) return _s; } -inline const std::string& MLModelMetadata::versions(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.MLModelMetadata.versions) - return _internal_versions().Get(index); -} -inline std::string* MLModelMetadata::mutable_versions(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:viam.app.v1.MLModelMetadata.versions) - return _internal_mutable_versions()->Mutable(index); -} -inline void MLModelMetadata::set_versions(int index, const std::string& value) { - _internal_mutable_versions()->Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set:viam.app.v1.MLModelMetadata.versions) +inline const std::string& ModuleFileInfo::_internal_module_id() const { + return module_id_.Get(); } -inline void MLModelMetadata::set_versions(int index, std::string&& value) { - _internal_mutable_versions()->Mutable(index)->assign(std::move(value)); - // @@protoc_insertion_point(field_set:viam.app.v1.MLModelMetadata.versions) +inline void ModuleFileInfo::_internal_set_module_id(const std::string& value) { + + module_id_.Set(value, GetArenaForAllocation()); } -inline void MLModelMetadata::set_versions(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_versions()->Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:viam.app.v1.MLModelMetadata.versions) +inline std::string* ModuleFileInfo::_internal_mutable_module_id() { + + return module_id_.Mutable(GetArenaForAllocation()); } -inline void MLModelMetadata::set_versions(int index, const char* value, - std::size_t size) { - _internal_mutable_versions()->Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:viam.app.v1.MLModelMetadata.versions) +inline std::string* ModuleFileInfo::release_module_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.ModuleFileInfo.module_id) + return module_id_.Release(); } -inline void MLModelMetadata::set_versions(int index, absl::string_view value) { - _internal_mutable_versions()->Mutable(index)->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_set_string_piece:viam.app.v1.MLModelMetadata.versions) +inline void ModuleFileInfo::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.ModuleFileInfo.module_id) } -inline void MLModelMetadata::add_versions(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_versions()->Add()->assign(value); - // @@protoc_insertion_point(field_add:viam.app.v1.MLModelMetadata.versions) + +// string version = 2 [json_name = "version"]; +inline void ModuleFileInfo::clear_version() { + version_.ClearToEmpty(); } -inline void MLModelMetadata::add_versions(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_versions()->Add(std::move(value)); - // @@protoc_insertion_point(field_add:viam.app.v1.MLModelMetadata.versions) +inline const std::string& ModuleFileInfo::version() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ModuleFileInfo.version) + return _internal_version(); } -inline void MLModelMetadata::add_versions(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_versions()->Add()->assign(value); - // @@protoc_insertion_point(field_add_char:viam.app.v1.MLModelMetadata.versions) +template +inline PROTOBUF_ALWAYS_INLINE +void ModuleFileInfo::set_version(ArgT0&& arg0, ArgT... args) { + + version_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.ModuleFileInfo.version) } -inline void MLModelMetadata::add_versions(const char* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_versions()->Add()->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:viam.app.v1.MLModelMetadata.versions) +inline std::string* ModuleFileInfo::mutable_version() { + std::string* _s = _internal_mutable_version(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ModuleFileInfo.version) + return _s; } -inline void MLModelMetadata::add_versions(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_versions()->Add()->assign(value.data(), value.size()); - // @@protoc_insertion_point(field_add_string_piece:viam.app.v1.MLModelMetadata.versions) +inline const std::string& ModuleFileInfo::_internal_version() const { + return version_.Get(); } -inline const ::google::protobuf::RepeatedPtrField& -MLModelMetadata::versions() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:viam.app.v1.MLModelMetadata.versions) - return _internal_versions(); +inline void ModuleFileInfo::_internal_set_version(const std::string& value) { + + version_.Set(value, GetArenaForAllocation()); } -inline ::google::protobuf::RepeatedPtrField* -MLModelMetadata::mutable_versions() ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.MLModelMetadata.versions) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_versions(); +inline std::string* ModuleFileInfo::_internal_mutable_version() { + + return version_.Mutable(GetArenaForAllocation()); } -inline const ::google::protobuf::RepeatedPtrField& -MLModelMetadata::_internal_versions() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.versions_; +inline std::string* ModuleFileInfo::release_version() { + // @@protoc_insertion_point(field_release:viam.app.v1.ModuleFileInfo.version) + return version_.Release(); } -inline ::google::protobuf::RepeatedPtrField* -MLModelMetadata::_internal_mutable_versions() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.versions_; +inline void ModuleFileInfo::set_allocated_version(std::string* version) { + if (version != nullptr) { + + } else { + + } + version_.SetAllocated(version, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (version_.IsDefault()) { + version_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ModuleFileInfo.version) } -// .viam.app.mltraining.v1.ModelType model_type = 2 [json_name = "modelType"]; -inline void MLModelMetadata::clear_model_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.model_type_ = 0; -} -inline ::viam::app::mltraining::v1::ModelType MLModelMetadata::model_type() const { - // @@protoc_insertion_point(field_get:viam.app.v1.MLModelMetadata.model_type) - return _internal_model_type(); +// string platform = 3 [json_name = "platform"]; +inline void ModuleFileInfo::clear_platform() { + platform_.ClearToEmpty(); } -inline void MLModelMetadata::set_model_type(::viam::app::mltraining::v1::ModelType value) { - _internal_set_model_type(value); - // @@protoc_insertion_point(field_set:viam.app.v1.MLModelMetadata.model_type) +inline const std::string& ModuleFileInfo::platform() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ModuleFileInfo.platform) + return _internal_platform(); } -inline ::viam::app::mltraining::v1::ModelType MLModelMetadata::_internal_model_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::viam::app::mltraining::v1::ModelType>(_impl_.model_type_); +template +inline PROTOBUF_ALWAYS_INLINE +void ModuleFileInfo::set_platform(ArgT0&& arg0, ArgT... args) { + + platform_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.ModuleFileInfo.platform) } -inline void MLModelMetadata::_internal_set_model_type(::viam::app::mltraining::v1::ModelType value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.model_type_ = value; +inline std::string* ModuleFileInfo::mutable_platform() { + std::string* _s = _internal_mutable_platform(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ModuleFileInfo.platform) + return _s; } - -// .viam.app.mltraining.v1.ModelFramework model_framework = 3 [json_name = "modelFramework"]; -inline void MLModelMetadata::clear_model_framework() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.model_framework_ = 0; +inline const std::string& ModuleFileInfo::_internal_platform() const { + return platform_.Get(); } -inline ::viam::app::mltraining::v1::ModelFramework MLModelMetadata::model_framework() const { - // @@protoc_insertion_point(field_get:viam.app.v1.MLModelMetadata.model_framework) - return _internal_model_framework(); +inline void ModuleFileInfo::_internal_set_platform(const std::string& value) { + + platform_.Set(value, GetArenaForAllocation()); } -inline void MLModelMetadata::set_model_framework(::viam::app::mltraining::v1::ModelFramework value) { - _internal_set_model_framework(value); - // @@protoc_insertion_point(field_set:viam.app.v1.MLModelMetadata.model_framework) +inline std::string* ModuleFileInfo::_internal_mutable_platform() { + + return platform_.Mutable(GetArenaForAllocation()); } -inline ::viam::app::mltraining::v1::ModelFramework MLModelMetadata::_internal_model_framework() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::viam::app::mltraining::v1::ModelFramework>(_impl_.model_framework_); +inline std::string* ModuleFileInfo::release_platform() { + // @@protoc_insertion_point(field_release:viam.app.v1.ModuleFileInfo.platform) + return platform_.Release(); } -inline void MLModelMetadata::_internal_set_model_framework(::viam::app::mltraining::v1::ModelFramework value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.model_framework_ = value; +inline void ModuleFileInfo::set_allocated_platform(std::string* platform) { + if (platform != nullptr) { + + } else { + + } + platform_.SetAllocated(platform, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (platform_.IsDefault()) { + platform_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ModuleFileInfo.platform) } -// ------------------------------------------------------------------- - -// MLTrainingVersion - -// string version = 1 [json_name = "version"]; -inline void MLTrainingVersion::clear_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.version_.ClearToEmpty(); +// repeated string platform_tags = 5 [json_name = "platformTags"]; +inline int ModuleFileInfo::_internal_platform_tags_size() const { + return platform_tags_.size(); } -inline const std::string& MLTrainingVersion::version() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.MLTrainingVersion.version) - return _internal_version(); +inline int ModuleFileInfo::platform_tags_size() const { + return _internal_platform_tags_size(); } -template -inline PROTOBUF_ALWAYS_INLINE void MLTrainingVersion::set_version(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.version_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.MLTrainingVersion.version) +inline void ModuleFileInfo::clear_platform_tags() { + platform_tags_.Clear(); } -inline std::string* MLTrainingVersion::mutable_version() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_version(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.MLTrainingVersion.version) +inline std::string* ModuleFileInfo::add_platform_tags() { + std::string* _s = _internal_add_platform_tags(); + // @@protoc_insertion_point(field_add_mutable:viam.app.v1.ModuleFileInfo.platform_tags) return _s; } -inline const std::string& MLTrainingVersion::_internal_version() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.version_.Get(); +inline const std::string& ModuleFileInfo::_internal_platform_tags(int index) const { + return platform_tags_.Get(index); } -inline void MLTrainingVersion::_internal_set_version(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.version_.Set(value, GetArena()); +inline const std::string& ModuleFileInfo::platform_tags(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.ModuleFileInfo.platform_tags) + return _internal_platform_tags(index); } -inline std::string* MLTrainingVersion::_internal_mutable_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.version_.Mutable( GetArena()); +inline std::string* ModuleFileInfo::mutable_platform_tags(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.ModuleFileInfo.platform_tags) + return platform_tags_.Mutable(index); } -inline std::string* MLTrainingVersion::release_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.MLTrainingVersion.version) - return _impl_.version_.Release(); -} -inline void MLTrainingVersion::set_allocated_version(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.version_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.version_.IsDefault()) { - _impl_.version_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.MLTrainingVersion.version) +inline void ModuleFileInfo::set_platform_tags(int index, const std::string& value) { + platform_tags_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:viam.app.v1.ModuleFileInfo.platform_tags) } - -// .google.protobuf.Timestamp created_on = 2 [json_name = "createdOn"]; -inline bool MLTrainingVersion::has_created_on() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.created_on_ != nullptr); - return value; +inline void ModuleFileInfo::set_platform_tags(int index, std::string&& value) { + platform_tags_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:viam.app.v1.ModuleFileInfo.platform_tags) } -inline const ::google::protobuf::Timestamp& MLTrainingVersion::_internal_created_on() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Timestamp* p = _impl_.created_on_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); +inline void ModuleFileInfo::set_platform_tags(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + platform_tags_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:viam.app.v1.ModuleFileInfo.platform_tags) } -inline const ::google::protobuf::Timestamp& MLTrainingVersion::created_on() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.MLTrainingVersion.created_on) - return _internal_created_on(); +inline void ModuleFileInfo::set_platform_tags(int index, const char* value, size_t size) { + platform_tags_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:viam.app.v1.ModuleFileInfo.platform_tags) } -inline void MLTrainingVersion::unsafe_arena_set_allocated_created_on(::google::protobuf::Timestamp* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.created_on_); - } - _impl_.created_on_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.MLTrainingVersion.created_on) +inline std::string* ModuleFileInfo::_internal_add_platform_tags() { + return platform_tags_.Add(); } -inline ::google::protobuf::Timestamp* MLTrainingVersion::release_created_on() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Timestamp* released = _impl_.created_on_; - _impl_.created_on_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; +inline void ModuleFileInfo::add_platform_tags(const std::string& value) { + platform_tags_.Add()->assign(value); + // @@protoc_insertion_point(field_add:viam.app.v1.ModuleFileInfo.platform_tags) } -inline ::google::protobuf::Timestamp* MLTrainingVersion::unsafe_arena_release_created_on() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.MLTrainingVersion.created_on) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Timestamp* temp = _impl_.created_on_; - _impl_.created_on_ = nullptr; - return temp; +inline void ModuleFileInfo::add_platform_tags(std::string&& value) { + platform_tags_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:viam.app.v1.ModuleFileInfo.platform_tags) } -inline ::google::protobuf::Timestamp* MLTrainingVersion::_internal_mutable_created_on() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.created_on_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena()); - _impl_.created_on_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); - } - return _impl_.created_on_; +inline void ModuleFileInfo::add_platform_tags(const char* value) { + GOOGLE_DCHECK(value != nullptr); + platform_tags_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:viam.app.v1.ModuleFileInfo.platform_tags) } -inline ::google::protobuf::Timestamp* MLTrainingVersion::mutable_created_on() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Timestamp* _msg = _internal_mutable_created_on(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.MLTrainingVersion.created_on) - return _msg; +inline void ModuleFileInfo::add_platform_tags(const char* value, size_t size) { + platform_tags_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:viam.app.v1.ModuleFileInfo.platform_tags) } -inline void MLTrainingVersion::set_allocated_created_on(::google::protobuf::Timestamp* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.created_on_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.created_on_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.MLTrainingVersion.created_on) +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +ModuleFileInfo::platform_tags() const { + // @@protoc_insertion_point(field_list:viam.app.v1.ModuleFileInfo.platform_tags) + return platform_tags_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +ModuleFileInfo::mutable_platform_tags() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ModuleFileInfo.platform_tags) + return &platform_tags_; } // ------------------------------------------------------------------- -// MLTrainingMetadata +// UploadModuleFileRequest -// repeated .viam.app.v1.MLTrainingVersion versions = 5 [json_name = "versions"]; -inline int MLTrainingMetadata::_internal_versions_size() const { - return _internal_versions().size(); +// .viam.app.v1.ModuleFileInfo module_file_info = 1 [json_name = "moduleFileInfo"]; +inline bool UploadModuleFileRequest::_internal_has_module_file_info() const { + return module_file_case() == kModuleFileInfo; } -inline int MLTrainingMetadata::versions_size() const { - return _internal_versions_size(); +inline bool UploadModuleFileRequest::has_module_file_info() const { + return _internal_has_module_file_info(); } -inline void MLTrainingMetadata::clear_versions() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.versions_.Clear(); +inline void UploadModuleFileRequest::set_has_module_file_info() { + _oneof_case_[0] = kModuleFileInfo; } -inline ::viam::app::v1::MLTrainingVersion* MLTrainingMetadata::mutable_versions(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:viam.app.v1.MLTrainingMetadata.versions) - return _internal_mutable_versions()->Mutable(index); +inline void UploadModuleFileRequest::clear_module_file_info() { + if (_internal_has_module_file_info()) { + if (GetArenaForAllocation() == nullptr) { + delete module_file_.module_file_info_; + } + clear_has_module_file(); + } } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::MLTrainingVersion>* MLTrainingMetadata::mutable_versions() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.MLTrainingMetadata.versions) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_versions(); +inline ::viam::app::v1::ModuleFileInfo* UploadModuleFileRequest::release_module_file_info() { + // @@protoc_insertion_point(field_release:viam.app.v1.UploadModuleFileRequest.module_file_info) + if (_internal_has_module_file_info()) { + clear_has_module_file(); + ::viam::app::v1::ModuleFileInfo* temp = module_file_.module_file_info_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + module_file_.module_file_info_ = nullptr; + return temp; + } else { + return nullptr; + } } -inline const ::viam::app::v1::MLTrainingVersion& MLTrainingMetadata::versions(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.MLTrainingMetadata.versions) - return _internal_versions().Get(index); +inline const ::viam::app::v1::ModuleFileInfo& UploadModuleFileRequest::_internal_module_file_info() const { + return _internal_has_module_file_info() + ? *module_file_.module_file_info_ + : reinterpret_cast< ::viam::app::v1::ModuleFileInfo&>(::viam::app::v1::_ModuleFileInfo_default_instance_); } -inline ::viam::app::v1::MLTrainingVersion* MLTrainingMetadata::add_versions() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::MLTrainingVersion* _add = _internal_mutable_versions()->Add(); - // @@protoc_insertion_point(field_add:viam.app.v1.MLTrainingMetadata.versions) - return _add; +inline const ::viam::app::v1::ModuleFileInfo& UploadModuleFileRequest::module_file_info() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UploadModuleFileRequest.module_file_info) + return _internal_module_file_info(); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::MLTrainingVersion>& MLTrainingMetadata::versions() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:viam.app.v1.MLTrainingMetadata.versions) - return _internal_versions(); +inline ::viam::app::v1::ModuleFileInfo* UploadModuleFileRequest::unsafe_arena_release_module_file_info() { + // @@protoc_insertion_point(field_unsafe_arena_release:viam.app.v1.UploadModuleFileRequest.module_file_info) + if (_internal_has_module_file_info()) { + clear_has_module_file(); + ::viam::app::v1::ModuleFileInfo* temp = module_file_.module_file_info_; + module_file_.module_file_info_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void UploadModuleFileRequest::unsafe_arena_set_allocated_module_file_info(::viam::app::v1::ModuleFileInfo* module_file_info) { + clear_module_file(); + if (module_file_info) { + set_has_module_file_info(); + module_file_.module_file_info_ = module_file_info; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.UploadModuleFileRequest.module_file_info) } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::MLTrainingVersion>& -MLTrainingMetadata::_internal_versions() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.versions_; +inline ::viam::app::v1::ModuleFileInfo* UploadModuleFileRequest::_internal_mutable_module_file_info() { + if (!_internal_has_module_file_info()) { + clear_module_file(); + set_has_module_file_info(); + module_file_.module_file_info_ = CreateMaybeMessage< ::viam::app::v1::ModuleFileInfo >(GetArenaForAllocation()); + } + return module_file_.module_file_info_; } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::MLTrainingVersion>* -MLTrainingMetadata::_internal_mutable_versions() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.versions_; +inline ::viam::app::v1::ModuleFileInfo* UploadModuleFileRequest::mutable_module_file_info() { + ::viam::app::v1::ModuleFileInfo* _msg = _internal_mutable_module_file_info(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UploadModuleFileRequest.module_file_info) + return _msg; } -// .viam.app.mltraining.v1.ModelType model_type = 2 [json_name = "modelType"]; -inline void MLTrainingMetadata::clear_model_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.model_type_ = 0; +// bytes file = 2 [json_name = "file"]; +inline bool UploadModuleFileRequest::_internal_has_file() const { + return module_file_case() == kFile; } -inline ::viam::app::mltraining::v1::ModelType MLTrainingMetadata::model_type() const { - // @@protoc_insertion_point(field_get:viam.app.v1.MLTrainingMetadata.model_type) - return _internal_model_type(); +inline bool UploadModuleFileRequest::has_file() const { + return _internal_has_file(); } -inline void MLTrainingMetadata::set_model_type(::viam::app::mltraining::v1::ModelType value) { - _internal_set_model_type(value); - // @@protoc_insertion_point(field_set:viam.app.v1.MLTrainingMetadata.model_type) +inline void UploadModuleFileRequest::set_has_file() { + _oneof_case_[0] = kFile; } -inline ::viam::app::mltraining::v1::ModelType MLTrainingMetadata::_internal_model_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::viam::app::mltraining::v1::ModelType>(_impl_.model_type_); +inline void UploadModuleFileRequest::clear_file() { + if (_internal_has_file()) { + module_file_.file_.Destroy(); + clear_has_module_file(); + } } -inline void MLTrainingMetadata::_internal_set_model_type(::viam::app::mltraining::v1::ModelType value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.model_type_ = value; +inline const std::string& UploadModuleFileRequest::file() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UploadModuleFileRequest.file) + return _internal_file(); } - -// .viam.app.mltraining.v1.ModelFramework model_framework = 3 [json_name = "modelFramework"]; -inline void MLTrainingMetadata::clear_model_framework() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.model_framework_ = 0; +template +inline void UploadModuleFileRequest::set_file(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_file()) { + clear_module_file(); + set_has_file(); + module_file_.file_.InitDefault(); + } + module_file_.file_.SetBytes( static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.UploadModuleFileRequest.file) } -inline ::viam::app::mltraining::v1::ModelFramework MLTrainingMetadata::model_framework() const { - // @@protoc_insertion_point(field_get:viam.app.v1.MLTrainingMetadata.model_framework) - return _internal_model_framework(); +inline std::string* UploadModuleFileRequest::mutable_file() { + std::string* _s = _internal_mutable_file(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UploadModuleFileRequest.file) + return _s; } -inline void MLTrainingMetadata::set_model_framework(::viam::app::mltraining::v1::ModelFramework value) { - _internal_set_model_framework(value); - // @@protoc_insertion_point(field_set:viam.app.v1.MLTrainingMetadata.model_framework) +inline const std::string& UploadModuleFileRequest::_internal_file() const { + if (_internal_has_file()) { + return module_file_.file_.Get(); + } + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } -inline ::viam::app::mltraining::v1::ModelFramework MLTrainingMetadata::_internal_model_framework() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::viam::app::mltraining::v1::ModelFramework>(_impl_.model_framework_); +inline void UploadModuleFileRequest::_internal_set_file(const std::string& value) { + if (!_internal_has_file()) { + clear_module_file(); + set_has_file(); + module_file_.file_.InitDefault(); + } + module_file_.file_.Set(value, GetArenaForAllocation()); } -inline void MLTrainingMetadata::_internal_set_model_framework(::viam::app::mltraining::v1::ModelFramework value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.model_framework_ = value; +inline std::string* UploadModuleFileRequest::_internal_mutable_file() { + if (!_internal_has_file()) { + clear_module_file(); + set_has_file(); + module_file_.file_.InitDefault(); + } + return module_file_.file_.Mutable( GetArenaForAllocation()); } - -// bool draft = 4 [json_name = "draft"]; -inline void MLTrainingMetadata::clear_draft() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.draft_ = false; +inline std::string* UploadModuleFileRequest::release_file() { + // @@protoc_insertion_point(field_release:viam.app.v1.UploadModuleFileRequest.file) + if (_internal_has_file()) { + clear_has_module_file(); + return module_file_.file_.Release(); + } else { + return nullptr; + } } -inline bool MLTrainingMetadata::draft() const { - // @@protoc_insertion_point(field_get:viam.app.v1.MLTrainingMetadata.draft) - return _internal_draft(); +inline void UploadModuleFileRequest::set_allocated_file(std::string* file) { + if (has_module_file()) { + clear_module_file(); + } + if (file != nullptr) { + set_has_file(); + module_file_.file_.InitAllocated(file, GetArenaForAllocation()); + } + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UploadModuleFileRequest.file) } -inline void MLTrainingMetadata::set_draft(bool value) { - _internal_set_draft(value); - // @@protoc_insertion_point(field_set:viam.app.v1.MLTrainingMetadata.draft) + +inline bool UploadModuleFileRequest::has_module_file() const { + return module_file_case() != MODULE_FILE_NOT_SET; } -inline bool MLTrainingMetadata::_internal_draft() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.draft_; +inline void UploadModuleFileRequest::clear_has_module_file() { + _oneof_case_[0] = MODULE_FILE_NOT_SET; } -inline void MLTrainingMetadata::_internal_set_draft(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.draft_ = value; +inline UploadModuleFileRequest::ModuleFileCase UploadModuleFileRequest::module_file_case() const { + return UploadModuleFileRequest::ModuleFileCase(_oneof_case_[0]); } - // ------------------------------------------------------------------- -// RegistryItem +// UploadModuleFileResponse -// string item_id = 1 [json_name = "itemId"]; -inline void RegistryItem::clear_item_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.item_id_.ClearToEmpty(); +// string url = 1 [json_name = "url"]; +inline void UploadModuleFileResponse::clear_url() { + url_.ClearToEmpty(); } -inline const std::string& RegistryItem::item_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.RegistryItem.item_id) - return _internal_item_id(); +inline const std::string& UploadModuleFileResponse::url() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UploadModuleFileResponse.url) + return _internal_url(); } -template -inline PROTOBUF_ALWAYS_INLINE void RegistryItem::set_item_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.item_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.RegistryItem.item_id) +template +inline PROTOBUF_ALWAYS_INLINE +void UploadModuleFileResponse::set_url(ArgT0&& arg0, ArgT... args) { + + url_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.UploadModuleFileResponse.url) } -inline std::string* RegistryItem::mutable_item_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_item_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.RegistryItem.item_id) +inline std::string* UploadModuleFileResponse::mutable_url() { + std::string* _s = _internal_mutable_url(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UploadModuleFileResponse.url) return _s; } -inline const std::string& RegistryItem::_internal_item_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.item_id_.Get(); -} -inline void RegistryItem::_internal_set_item_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.item_id_.Set(value, GetArena()); -} -inline std::string* RegistryItem::_internal_mutable_item_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.item_id_.Mutable( GetArena()); -} -inline std::string* RegistryItem::release_item_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.RegistryItem.item_id) - return _impl_.item_id_.Release(); -} -inline void RegistryItem::set_allocated_item_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.item_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.item_id_.IsDefault()) { - _impl_.item_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RegistryItem.item_id) -} - -// string organization_id = 2 [json_name = "organizationId"]; -inline void RegistryItem::clear_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.ClearToEmpty(); -} -inline const std::string& RegistryItem::organization_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.RegistryItem.organization_id) - return _internal_organization_id(); -} -template -inline PROTOBUF_ALWAYS_INLINE void RegistryItem::set_organization_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.RegistryItem.organization_id) -} -inline std::string* RegistryItem::mutable_organization_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_organization_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.RegistryItem.organization_id) - return _s; +inline const std::string& UploadModuleFileResponse::_internal_url() const { + return url_.Get(); } -inline const std::string& RegistryItem::_internal_organization_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.organization_id_.Get(); +inline void UploadModuleFileResponse::_internal_set_url(const std::string& value) { + + url_.Set(value, GetArenaForAllocation()); } -inline void RegistryItem::_internal_set_organization_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(value, GetArena()); +inline std::string* UploadModuleFileResponse::_internal_mutable_url() { + + return url_.Mutable(GetArenaForAllocation()); } -inline std::string* RegistryItem::_internal_mutable_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.organization_id_.Mutable( GetArena()); +inline std::string* UploadModuleFileResponse::release_url() { + // @@protoc_insertion_point(field_release:viam.app.v1.UploadModuleFileResponse.url) + return url_.Release(); } -inline std::string* RegistryItem::release_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.RegistryItem.organization_id) - return _impl_.organization_id_.Release(); -} -inline void RegistryItem::set_allocated_organization_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.organization_id_.IsDefault()) { - _impl_.organization_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RegistryItem.organization_id) +inline void UploadModuleFileResponse::set_allocated_url(std::string* url) { + if (url != nullptr) { + + } else { + + } + url_.SetAllocated(url, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (url_.IsDefault()) { + url_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UploadModuleFileResponse.url) } -// string public_namespace = 3 [json_name = "publicNamespace"]; -inline void RegistryItem::clear_public_namespace() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.public_namespace_.ClearToEmpty(); +// ------------------------------------------------------------------- + +// GetModuleRequest + +// string module_id = 1 [json_name = "moduleId"]; +inline void GetModuleRequest::clear_module_id() { + module_id_.ClearToEmpty(); } -inline const std::string& RegistryItem::public_namespace() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.RegistryItem.public_namespace) - return _internal_public_namespace(); +inline const std::string& GetModuleRequest::module_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetModuleRequest.module_id) + return _internal_module_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void RegistryItem::set_public_namespace(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.public_namespace_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.RegistryItem.public_namespace) +template +inline PROTOBUF_ALWAYS_INLINE +void GetModuleRequest::set_module_id(ArgT0&& arg0, ArgT... args) { + + module_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.GetModuleRequest.module_id) } -inline std::string* RegistryItem::mutable_public_namespace() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_public_namespace(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.RegistryItem.public_namespace) +inline std::string* GetModuleRequest::mutable_module_id() { + std::string* _s = _internal_mutable_module_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetModuleRequest.module_id) return _s; } -inline const std::string& RegistryItem::_internal_public_namespace() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.public_namespace_.Get(); +inline const std::string& GetModuleRequest::_internal_module_id() const { + return module_id_.Get(); } -inline void RegistryItem::_internal_set_public_namespace(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.public_namespace_.Set(value, GetArena()); +inline void GetModuleRequest::_internal_set_module_id(const std::string& value) { + + module_id_.Set(value, GetArenaForAllocation()); } -inline std::string* RegistryItem::_internal_mutable_public_namespace() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.public_namespace_.Mutable( GetArena()); +inline std::string* GetModuleRequest::_internal_mutable_module_id() { + + return module_id_.Mutable(GetArenaForAllocation()); } -inline std::string* RegistryItem::release_public_namespace() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.RegistryItem.public_namespace) - return _impl_.public_namespace_.Release(); -} -inline void RegistryItem::set_allocated_public_namespace(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.public_namespace_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.public_namespace_.IsDefault()) { - _impl_.public_namespace_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RegistryItem.public_namespace) +inline std::string* GetModuleRequest::release_module_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.GetModuleRequest.module_id) + return module_id_.Release(); } - -// string name = 4 [json_name = "name"]; -inline void RegistryItem::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); +inline void GetModuleRequest::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.GetModuleRequest.module_id) } -inline const std::string& RegistryItem::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.RegistryItem.name) - return _internal_name(); + +// optional bool include_markdown_documentation = 2 [json_name = "includeMarkdownDocumentation"]; +inline bool GetModuleRequest::_internal_has_include_markdown_documentation() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; } -template -inline PROTOBUF_ALWAYS_INLINE void RegistryItem::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.RegistryItem.name) +inline bool GetModuleRequest::has_include_markdown_documentation() const { + return _internal_has_include_markdown_documentation(); } -inline std::string* RegistryItem::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.RegistryItem.name) - return _s; +inline void GetModuleRequest::clear_include_markdown_documentation() { + include_markdown_documentation_ = false; + _has_bits_[0] &= ~0x00000001u; } -inline const std::string& RegistryItem::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); +inline bool GetModuleRequest::_internal_include_markdown_documentation() const { + return include_markdown_documentation_; } -inline void RegistryItem::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); +inline bool GetModuleRequest::include_markdown_documentation() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetModuleRequest.include_markdown_documentation) + return _internal_include_markdown_documentation(); } -inline std::string* RegistryItem::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); +inline void GetModuleRequest::_internal_set_include_markdown_documentation(bool value) { + _has_bits_[0] |= 0x00000001u; + include_markdown_documentation_ = value; } -inline std::string* RegistryItem::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.RegistryItem.name) - return _impl_.name_.Release(); -} -inline void RegistryItem::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RegistryItem.name) +inline void GetModuleRequest::set_include_markdown_documentation(bool value) { + _internal_set_include_markdown_documentation(value); + // @@protoc_insertion_point(field_set:viam.app.v1.GetModuleRequest.include_markdown_documentation) } -// .viam.app.packages.v1.PackageType type = 5 [json_name = "type"]; -inline void RegistryItem::clear_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_ = 0; +// ------------------------------------------------------------------- + +// GetModuleResponse + +// .viam.app.v1.Module module = 1 [json_name = "module"]; +inline bool GetModuleResponse::_internal_has_module() const { + return this != internal_default_instance() && module_ != nullptr; } -inline ::viam::app::packages::v1::PackageType RegistryItem::type() const { - // @@protoc_insertion_point(field_get:viam.app.v1.RegistryItem.type) - return _internal_type(); +inline bool GetModuleResponse::has_module() const { + return _internal_has_module(); +} +inline void GetModuleResponse::clear_module() { + if (GetArenaForAllocation() == nullptr && module_ != nullptr) { + delete module_; + } + module_ = nullptr; } -inline void RegistryItem::set_type(::viam::app::packages::v1::PackageType value) { - _internal_set_type(value); - // @@protoc_insertion_point(field_set:viam.app.v1.RegistryItem.type) +inline const ::viam::app::v1::Module& GetModuleResponse::_internal_module() const { + const ::viam::app::v1::Module* p = module_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_Module_default_instance_); } -inline ::viam::app::packages::v1::PackageType RegistryItem::_internal_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::viam::app::packages::v1::PackageType>(_impl_.type_); +inline const ::viam::app::v1::Module& GetModuleResponse::module() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetModuleResponse.module) + return _internal_module(); } -inline void RegistryItem::_internal_set_type(::viam::app::packages::v1::PackageType value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.type_ = value; +inline void GetModuleResponse::unsafe_arena_set_allocated_module( + ::viam::app::v1::Module* module) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(module_); + } + module_ = module; + if (module) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.GetModuleResponse.module) } - -// .viam.app.v1.Visibility visibility = 6 [json_name = "visibility"]; -inline void RegistryItem::clear_visibility() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.visibility_ = 0; +inline ::viam::app::v1::Module* GetModuleResponse::release_module() { + + ::viam::app::v1::Module* temp = module_; + module_ = 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::Visibility RegistryItem::visibility() const { - // @@protoc_insertion_point(field_get:viam.app.v1.RegistryItem.visibility) - return _internal_visibility(); +inline ::viam::app::v1::Module* GetModuleResponse::unsafe_arena_release_module() { + // @@protoc_insertion_point(field_release:viam.app.v1.GetModuleResponse.module) + + ::viam::app::v1::Module* temp = module_; + module_ = nullptr; + return temp; } -inline void RegistryItem::set_visibility(::viam::app::v1::Visibility value) { - _internal_set_visibility(value); - // @@protoc_insertion_point(field_set:viam.app.v1.RegistryItem.visibility) +inline ::viam::app::v1::Module* GetModuleResponse::_internal_mutable_module() { + + if (module_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::Module>(GetArenaForAllocation()); + module_ = p; + } + return module_; } -inline ::viam::app::v1::Visibility RegistryItem::_internal_visibility() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::viam::app::v1::Visibility>(_impl_.visibility_); +inline ::viam::app::v1::Module* GetModuleResponse::mutable_module() { + ::viam::app::v1::Module* _msg = _internal_mutable_module(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetModuleResponse.module) + return _msg; } -inline void RegistryItem::_internal_set_visibility(::viam::app::v1::Visibility value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.visibility_ = value; +inline void GetModuleResponse::set_allocated_module(::viam::app::v1::Module* module) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete module_; + } + if (module) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(module); + if (message_arena != submessage_arena) { + module = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, module, submessage_arena); + } + + } else { + + } + module_ = module; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetModuleResponse.module) } -// string url = 7 [json_name = "url"]; -inline void RegistryItem::clear_url() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.url_.ClearToEmpty(); +// ------------------------------------------------------------------- + +// Module + +// string module_id = 1 [json_name = "moduleId"]; +inline void Module::clear_module_id() { + module_id_.ClearToEmpty(); } -inline const std::string& RegistryItem::url() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.RegistryItem.url) - return _internal_url(); +inline const std::string& Module::module_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Module.module_id) + return _internal_module_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void RegistryItem::set_url(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.url_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.RegistryItem.url) +template +inline PROTOBUF_ALWAYS_INLINE +void Module::set_module_id(ArgT0&& arg0, ArgT... args) { + + module_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.Module.module_id) } -inline std::string* RegistryItem::mutable_url() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_url(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.RegistryItem.url) +inline std::string* Module::mutable_module_id() { + std::string* _s = _internal_mutable_module_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Module.module_id) return _s; } -inline const std::string& RegistryItem::_internal_url() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.url_.Get(); +inline const std::string& Module::_internal_module_id() const { + return module_id_.Get(); } -inline void RegistryItem::_internal_set_url(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.url_.Set(value, GetArena()); +inline void Module::_internal_set_module_id(const std::string& value) { + + module_id_.Set(value, GetArenaForAllocation()); } -inline std::string* RegistryItem::_internal_mutable_url() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.url_.Mutable( GetArena()); +inline std::string* Module::_internal_mutable_module_id() { + + return module_id_.Mutable(GetArenaForAllocation()); } -inline std::string* RegistryItem::release_url() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.RegistryItem.url) - return _impl_.url_.Release(); -} -inline void RegistryItem::set_allocated_url(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.url_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.url_.IsDefault()) { - _impl_.url_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RegistryItem.url) +inline std::string* Module::release_module_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.Module.module_id) + return module_id_.Release(); +} +inline void Module::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.Module.module_id) } -// string description = 8 [json_name = "description"]; -inline void RegistryItem::clear_description() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.description_.ClearToEmpty(); +// string name = 2 [json_name = "name"]; +inline void Module::clear_name() { + name_.ClearToEmpty(); } -inline const std::string& RegistryItem::description() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.RegistryItem.description) - return _internal_description(); +inline const std::string& Module::name() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Module.name) + return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void RegistryItem::set_description(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.description_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.RegistryItem.description) +template +inline PROTOBUF_ALWAYS_INLINE +void Module::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.Module.name) } -inline std::string* RegistryItem::mutable_description() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_description(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.RegistryItem.description) +inline std::string* Module::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Module.name) return _s; } -inline const std::string& RegistryItem::_internal_description() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.description_.Get(); -} -inline void RegistryItem::_internal_set_description(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.description_.Set(value, GetArena()); -} -inline std::string* RegistryItem::_internal_mutable_description() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.description_.Mutable( GetArena()); -} -inline std::string* RegistryItem::release_description() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.RegistryItem.description) - return _impl_.description_.Release(); -} -inline void RegistryItem::set_allocated_description(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.description_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.description_.IsDefault()) { - _impl_.description_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RegistryItem.description) -} - -// int64 total_robot_usage = 9 [json_name = "totalRobotUsage"]; -inline void RegistryItem::clear_total_robot_usage() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.total_robot_usage_ = ::int64_t{0}; +inline const std::string& Module::_internal_name() const { + return name_.Get(); } -inline ::int64_t RegistryItem::total_robot_usage() const { - // @@protoc_insertion_point(field_get:viam.app.v1.RegistryItem.total_robot_usage) - return _internal_total_robot_usage(); +inline void Module::_internal_set_name(const std::string& value) { + + name_.Set(value, GetArenaForAllocation()); } -inline void RegistryItem::set_total_robot_usage(::int64_t value) { - _internal_set_total_robot_usage(value); - // @@protoc_insertion_point(field_set:viam.app.v1.RegistryItem.total_robot_usage) +inline std::string* Module::_internal_mutable_name() { + + return name_.Mutable(GetArenaForAllocation()); } -inline ::int64_t RegistryItem::_internal_total_robot_usage() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.total_robot_usage_; +inline std::string* Module::release_name() { + // @@protoc_insertion_point(field_release:viam.app.v1.Module.name) + return name_.Release(); } -inline void RegistryItem::_internal_set_total_robot_usage(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.total_robot_usage_ = value; +inline void Module::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.app.v1.Module.name) } -// int64 total_external_robot_usage = 13 [json_name = "totalExternalRobotUsage"]; -inline void RegistryItem::clear_total_external_robot_usage() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.total_external_robot_usage_ = ::int64_t{0}; +// .viam.app.v1.Visibility visibility = 3 [json_name = "visibility"]; +inline void Module::clear_visibility() { + visibility_ = 0; } -inline ::int64_t RegistryItem::total_external_robot_usage() const { - // @@protoc_insertion_point(field_get:viam.app.v1.RegistryItem.total_external_robot_usage) - return _internal_total_external_robot_usage(); +inline ::viam::app::v1::Visibility Module::_internal_visibility() const { + return static_cast< ::viam::app::v1::Visibility >(visibility_); } -inline void RegistryItem::set_total_external_robot_usage(::int64_t value) { - _internal_set_total_external_robot_usage(value); - // @@protoc_insertion_point(field_set:viam.app.v1.RegistryItem.total_external_robot_usage) +inline ::viam::app::v1::Visibility Module::visibility() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Module.visibility) + return _internal_visibility(); } -inline ::int64_t RegistryItem::_internal_total_external_robot_usage() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.total_external_robot_usage_; +inline void Module::_internal_set_visibility(::viam::app::v1::Visibility value) { + + visibility_ = value; } -inline void RegistryItem::_internal_set_total_external_robot_usage(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.total_external_robot_usage_ = value; +inline void Module::set_visibility(::viam::app::v1::Visibility value) { + _internal_set_visibility(value); + // @@protoc_insertion_point(field_set:viam.app.v1.Module.visibility) } -// int64 total_organization_usage = 10 [json_name = "totalOrganizationUsage"]; -inline void RegistryItem::clear_total_organization_usage() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.total_organization_usage_ = ::int64_t{0}; +// repeated .viam.app.v1.VersionHistory versions = 4 [json_name = "versions"]; +inline int Module::_internal_versions_size() const { + return versions_.size(); } -inline ::int64_t RegistryItem::total_organization_usage() const { - // @@protoc_insertion_point(field_get:viam.app.v1.RegistryItem.total_organization_usage) - return _internal_total_organization_usage(); +inline int Module::versions_size() const { + return _internal_versions_size(); } -inline void RegistryItem::set_total_organization_usage(::int64_t value) { - _internal_set_total_organization_usage(value); - // @@protoc_insertion_point(field_set:viam.app.v1.RegistryItem.total_organization_usage) +inline void Module::clear_versions() { + versions_.Clear(); } -inline ::int64_t RegistryItem::_internal_total_organization_usage() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.total_organization_usage_; +inline ::viam::app::v1::VersionHistory* Module::mutable_versions(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.Module.versions) + return versions_.Mutable(index); } -inline void RegistryItem::_internal_set_total_organization_usage(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.total_organization_usage_ = value; +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::VersionHistory >* +Module::mutable_versions() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.Module.versions) + return &versions_; } - -// int64 total_external_organization_usage = 14 [json_name = "totalExternalOrganizationUsage"]; -inline void RegistryItem::clear_total_external_organization_usage() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.total_external_organization_usage_ = ::int64_t{0}; +inline const ::viam::app::v1::VersionHistory& Module::_internal_versions(int index) const { + return versions_.Get(index); } -inline ::int64_t RegistryItem::total_external_organization_usage() const { - // @@protoc_insertion_point(field_get:viam.app.v1.RegistryItem.total_external_organization_usage) - return _internal_total_external_organization_usage(); +inline const ::viam::app::v1::VersionHistory& Module::versions(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.Module.versions) + return _internal_versions(index); } -inline void RegistryItem::set_total_external_organization_usage(::int64_t value) { - _internal_set_total_external_organization_usage(value); - // @@protoc_insertion_point(field_set:viam.app.v1.RegistryItem.total_external_organization_usage) +inline ::viam::app::v1::VersionHistory* Module::_internal_add_versions() { + return versions_.Add(); } -inline ::int64_t RegistryItem::_internal_total_external_organization_usage() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.total_external_organization_usage_; +inline ::viam::app::v1::VersionHistory* Module::add_versions() { + ::viam::app::v1::VersionHistory* _add = _internal_add_versions(); + // @@protoc_insertion_point(field_add:viam.app.v1.Module.versions) + return _add; } -inline void RegistryItem::_internal_set_total_external_organization_usage(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.total_external_organization_usage_ = value; +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::VersionHistory >& +Module::versions() const { + // @@protoc_insertion_point(field_list:viam.app.v1.Module.versions) + return versions_; } -// .viam.app.v1.ModuleMetadata module_metadata = 11 [json_name = "moduleMetadata"]; -inline bool RegistryItem::has_module_metadata() const { - return metadata_case() == kModuleMetadata; +// string url = 5 [json_name = "url"]; +inline void Module::clear_url() { + url_.ClearToEmpty(); } -inline bool RegistryItem::_internal_has_module_metadata() const { - return metadata_case() == kModuleMetadata; +inline const std::string& Module::url() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Module.url) + return _internal_url(); } -inline void RegistryItem::set_has_module_metadata() { - _impl_._oneof_case_[0] = kModuleMetadata; +template +inline PROTOBUF_ALWAYS_INLINE +void Module::set_url(ArgT0&& arg0, ArgT... args) { + + url_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.Module.url) } -inline void RegistryItem::clear_module_metadata() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (metadata_case() == kModuleMetadata) { - if (GetArena() == nullptr) { - delete _impl_.metadata_.module_metadata_; - } - clear_has_metadata(); - } +inline std::string* Module::mutable_url() { + std::string* _s = _internal_mutable_url(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Module.url) + return _s; } -inline ::viam::app::v1::ModuleMetadata* RegistryItem::release_module_metadata() { - // @@protoc_insertion_point(field_release:viam.app.v1.RegistryItem.module_metadata) - if (metadata_case() == kModuleMetadata) { - clear_has_metadata(); - auto* temp = _impl_.metadata_.module_metadata_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.metadata_.module_metadata_ = nullptr; - return temp; - } else { - return nullptr; - } +inline const std::string& Module::_internal_url() const { + return url_.Get(); } -inline const ::viam::app::v1::ModuleMetadata& RegistryItem::_internal_module_metadata() const { - return metadata_case() == kModuleMetadata ? *_impl_.metadata_.module_metadata_ : reinterpret_cast<::viam::app::v1::ModuleMetadata&>(::viam::app::v1::_ModuleMetadata_default_instance_); +inline void Module::_internal_set_url(const std::string& value) { + + url_.Set(value, GetArenaForAllocation()); } -inline const ::viam::app::v1::ModuleMetadata& RegistryItem::module_metadata() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.RegistryItem.module_metadata) - return _internal_module_metadata(); +inline std::string* Module::_internal_mutable_url() { + + return url_.Mutable(GetArenaForAllocation()); } -inline ::viam::app::v1::ModuleMetadata* RegistryItem::unsafe_arena_release_module_metadata() { - // @@protoc_insertion_point(field_unsafe_arena_release:viam.app.v1.RegistryItem.module_metadata) - if (metadata_case() == kModuleMetadata) { - clear_has_metadata(); - auto* temp = _impl_.metadata_.module_metadata_; - _impl_.metadata_.module_metadata_ = nullptr; - return temp; - } else { - return nullptr; - } +inline std::string* Module::release_url() { + // @@protoc_insertion_point(field_release:viam.app.v1.Module.url) + return url_.Release(); } -inline void RegistryItem::unsafe_arena_set_allocated_module_metadata(::viam::app::v1::ModuleMetadata* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_metadata(); - if (value) { - set_has_module_metadata(); - _impl_.metadata_.module_metadata_ = value; +inline void Module::set_allocated_url(std::string* url) { + if (url != nullptr) { + + } else { + } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.RegistryItem.module_metadata) -} -inline ::viam::app::v1::ModuleMetadata* RegistryItem::_internal_mutable_module_metadata() { - if (metadata_case() != kModuleMetadata) { - clear_metadata(); - set_has_module_metadata(); - _impl_.metadata_.module_metadata_ = CreateMaybeMessage<::viam::app::v1::ModuleMetadata>(GetArena()); + url_.SetAllocated(url, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (url_.IsDefault()) { + url_.Set("", GetArenaForAllocation()); } - return _impl_.metadata_.module_metadata_; -} -inline ::viam::app::v1::ModuleMetadata* RegistryItem::mutable_module_metadata() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::viam::app::v1::ModuleMetadata* _msg = _internal_mutable_module_metadata(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.RegistryItem.module_metadata) - return _msg; +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Module.url) } -// .viam.app.v1.MLModelMetadata ml_model_metadata = 12 [json_name = "mlModelMetadata"]; -inline bool RegistryItem::has_ml_model_metadata() const { - return metadata_case() == kMlModelMetadata; +// string description = 6 [json_name = "description"]; +inline void Module::clear_description() { + description_.ClearToEmpty(); } -inline bool RegistryItem::_internal_has_ml_model_metadata() const { - return metadata_case() == kMlModelMetadata; +inline const std::string& Module::description() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Module.description) + return _internal_description(); } -inline void RegistryItem::set_has_ml_model_metadata() { - _impl_._oneof_case_[0] = kMlModelMetadata; +template +inline PROTOBUF_ALWAYS_INLINE +void Module::set_description(ArgT0&& arg0, ArgT... args) { + + description_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.Module.description) } -inline void RegistryItem::clear_ml_model_metadata() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (metadata_case() == kMlModelMetadata) { - if (GetArena() == nullptr) { - delete _impl_.metadata_.ml_model_metadata_; - } - clear_has_metadata(); - } +inline std::string* Module::mutable_description() { + std::string* _s = _internal_mutable_description(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Module.description) + return _s; } -inline ::viam::app::v1::MLModelMetadata* RegistryItem::release_ml_model_metadata() { - // @@protoc_insertion_point(field_release:viam.app.v1.RegistryItem.ml_model_metadata) - if (metadata_case() == kMlModelMetadata) { - clear_has_metadata(); - auto* temp = _impl_.metadata_.ml_model_metadata_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.metadata_.ml_model_metadata_ = nullptr; - return temp; - } else { - return nullptr; - } +inline const std::string& Module::_internal_description() const { + return description_.Get(); } -inline const ::viam::app::v1::MLModelMetadata& RegistryItem::_internal_ml_model_metadata() const { - return metadata_case() == kMlModelMetadata ? *_impl_.metadata_.ml_model_metadata_ : reinterpret_cast<::viam::app::v1::MLModelMetadata&>(::viam::app::v1::_MLModelMetadata_default_instance_); +inline void Module::_internal_set_description(const std::string& value) { + + description_.Set(value, GetArenaForAllocation()); } -inline const ::viam::app::v1::MLModelMetadata& RegistryItem::ml_model_metadata() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.RegistryItem.ml_model_metadata) - return _internal_ml_model_metadata(); +inline std::string* Module::_internal_mutable_description() { + + return description_.Mutable(GetArenaForAllocation()); } -inline ::viam::app::v1::MLModelMetadata* RegistryItem::unsafe_arena_release_ml_model_metadata() { - // @@protoc_insertion_point(field_unsafe_arena_release:viam.app.v1.RegistryItem.ml_model_metadata) - if (metadata_case() == kMlModelMetadata) { - clear_has_metadata(); - auto* temp = _impl_.metadata_.ml_model_metadata_; - _impl_.metadata_.ml_model_metadata_ = nullptr; - return temp; +inline std::string* Module::release_description() { + // @@protoc_insertion_point(field_release:viam.app.v1.Module.description) + return description_.Release(); +} +inline void Module::set_allocated_description(std::string* description) { + if (description != nullptr) { + } else { - return nullptr; + } -} -inline void RegistryItem::unsafe_arena_set_allocated_ml_model_metadata(::viam::app::v1::MLModelMetadata* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_metadata(); - if (value) { - set_has_ml_model_metadata(); - _impl_.metadata_.ml_model_metadata_ = value; + description_.SetAllocated(description, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (description_.IsDefault()) { + description_.Set("", GetArenaForAllocation()); } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.RegistryItem.ml_model_metadata) +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Module.description) } -inline ::viam::app::v1::MLModelMetadata* RegistryItem::_internal_mutable_ml_model_metadata() { - if (metadata_case() != kMlModelMetadata) { - clear_metadata(); - set_has_ml_model_metadata(); - _impl_.metadata_.ml_model_metadata_ = CreateMaybeMessage<::viam::app::v1::MLModelMetadata>(GetArena()); - } - return _impl_.metadata_.ml_model_metadata_; + +// repeated .viam.app.v1.Model models = 7 [json_name = "models"]; +inline int Module::_internal_models_size() const { + return models_.size(); } -inline ::viam::app::v1::MLModelMetadata* RegistryItem::mutable_ml_model_metadata() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::viam::app::v1::MLModelMetadata* _msg = _internal_mutable_ml_model_metadata(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.RegistryItem.ml_model_metadata) - return _msg; +inline int Module::models_size() const { + return _internal_models_size(); } - -// .viam.app.v1.MLTrainingMetadata ml_training_metadata = 18 [json_name = "mlTrainingMetadata"]; -inline bool RegistryItem::has_ml_training_metadata() const { - return metadata_case() == kMlTrainingMetadata; +inline void Module::clear_models() { + models_.Clear(); } -inline bool RegistryItem::_internal_has_ml_training_metadata() const { - return metadata_case() == kMlTrainingMetadata; +inline ::viam::app::v1::Model* Module::mutable_models(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.Module.models) + return models_.Mutable(index); } -inline void RegistryItem::set_has_ml_training_metadata() { - _impl_._oneof_case_[0] = kMlTrainingMetadata; +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Model >* +Module::mutable_models() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.Module.models) + return &models_; } -inline void RegistryItem::clear_ml_training_metadata() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (metadata_case() == kMlTrainingMetadata) { - if (GetArena() == nullptr) { - delete _impl_.metadata_.ml_training_metadata_; - } - clear_has_metadata(); - } +inline const ::viam::app::v1::Model& Module::_internal_models(int index) const { + return models_.Get(index); } -inline ::viam::app::v1::MLTrainingMetadata* RegistryItem::release_ml_training_metadata() { - // @@protoc_insertion_point(field_release:viam.app.v1.RegistryItem.ml_training_metadata) - if (metadata_case() == kMlTrainingMetadata) { - clear_has_metadata(); - auto* temp = _impl_.metadata_.ml_training_metadata_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.metadata_.ml_training_metadata_ = nullptr; - return temp; - } else { - return nullptr; - } +inline const ::viam::app::v1::Model& Module::models(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.Module.models) + return _internal_models(index); } -inline const ::viam::app::v1::MLTrainingMetadata& RegistryItem::_internal_ml_training_metadata() const { - return metadata_case() == kMlTrainingMetadata ? *_impl_.metadata_.ml_training_metadata_ : reinterpret_cast<::viam::app::v1::MLTrainingMetadata&>(::viam::app::v1::_MLTrainingMetadata_default_instance_); +inline ::viam::app::v1::Model* Module::_internal_add_models() { + return models_.Add(); } -inline const ::viam::app::v1::MLTrainingMetadata& RegistryItem::ml_training_metadata() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.RegistryItem.ml_training_metadata) - return _internal_ml_training_metadata(); +inline ::viam::app::v1::Model* Module::add_models() { + ::viam::app::v1::Model* _add = _internal_add_models(); + // @@protoc_insertion_point(field_add:viam.app.v1.Module.models) + return _add; } -inline ::viam::app::v1::MLTrainingMetadata* RegistryItem::unsafe_arena_release_ml_training_metadata() { - // @@protoc_insertion_point(field_unsafe_arena_release:viam.app.v1.RegistryItem.ml_training_metadata) - if (metadata_case() == kMlTrainingMetadata) { - clear_has_metadata(); - auto* temp = _impl_.metadata_.ml_training_metadata_; - _impl_.metadata_.ml_training_metadata_ = nullptr; - return temp; - } else { - return nullptr; - } +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Model >& +Module::models() const { + // @@protoc_insertion_point(field_list:viam.app.v1.Module.models) + return models_; } -inline void RegistryItem::unsafe_arena_set_allocated_ml_training_metadata(::viam::app::v1::MLTrainingMetadata* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_metadata(); - if (value) { - set_has_ml_training_metadata(); - _impl_.metadata_.ml_training_metadata_ = value; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.RegistryItem.ml_training_metadata) + +// int64 total_robot_usage = 8 [json_name = "totalRobotUsage"]; +inline void Module::clear_total_robot_usage() { + total_robot_usage_ = int64_t{0}; } -inline ::viam::app::v1::MLTrainingMetadata* RegistryItem::_internal_mutable_ml_training_metadata() { - if (metadata_case() != kMlTrainingMetadata) { - clear_metadata(); - set_has_ml_training_metadata(); - _impl_.metadata_.ml_training_metadata_ = CreateMaybeMessage<::viam::app::v1::MLTrainingMetadata>(GetArena()); - } - return _impl_.metadata_.ml_training_metadata_; +inline int64_t Module::_internal_total_robot_usage() const { + return total_robot_usage_; } -inline ::viam::app::v1::MLTrainingMetadata* RegistryItem::mutable_ml_training_metadata() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::viam::app::v1::MLTrainingMetadata* _msg = _internal_mutable_ml_training_metadata(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.RegistryItem.ml_training_metadata) - return _msg; +inline int64_t Module::total_robot_usage() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Module.total_robot_usage) + return _internal_total_robot_usage(); +} +inline void Module::_internal_set_total_robot_usage(int64_t value) { + + total_robot_usage_ = value; +} +inline void Module::set_total_robot_usage(int64_t value) { + _internal_set_total_robot_usage(value); + // @@protoc_insertion_point(field_set:viam.app.v1.Module.total_robot_usage) } -// .google.protobuf.Timestamp created_at = 15 [json_name = "createdAt"]; -inline bool RegistryItem::has_created_at() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.created_at_ != nullptr); - return value; +// int64 total_organization_usage = 9 [json_name = "totalOrganizationUsage"]; +inline void Module::clear_total_organization_usage() { + total_organization_usage_ = int64_t{0}; } -inline const ::google::protobuf::Timestamp& RegistryItem::_internal_created_at() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Timestamp* p = _impl_.created_at_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); +inline int64_t Module::_internal_total_organization_usage() const { + return total_organization_usage_; } -inline const ::google::protobuf::Timestamp& RegistryItem::created_at() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.RegistryItem.created_at) - return _internal_created_at(); +inline int64_t Module::total_organization_usage() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Module.total_organization_usage) + return _internal_total_organization_usage(); } -inline void RegistryItem::unsafe_arena_set_allocated_created_at(::google::protobuf::Timestamp* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.created_at_); - } - _impl_.created_at_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.RegistryItem.created_at) +inline void Module::_internal_set_total_organization_usage(int64_t value) { + + total_organization_usage_ = value; } -inline ::google::protobuf::Timestamp* RegistryItem::release_created_at() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Timestamp* released = _impl_.created_at_; - _impl_.created_at_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; +inline void Module::set_total_organization_usage(int64_t value) { + _internal_set_total_organization_usage(value); + // @@protoc_insertion_point(field_set:viam.app.v1.Module.total_organization_usage) } -inline ::google::protobuf::Timestamp* RegistryItem::unsafe_arena_release_created_at() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.RegistryItem.created_at) - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Timestamp* temp = _impl_.created_at_; - _impl_.created_at_ = nullptr; - return temp; +// string organization_id = 10 [json_name = "organizationId"]; +inline void Module::clear_organization_id() { + organization_id_.ClearToEmpty(); } -inline ::google::protobuf::Timestamp* RegistryItem::_internal_mutable_created_at() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.created_at_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena()); - _impl_.created_at_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); - } - return _impl_.created_at_; +inline const std::string& Module::organization_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Module.organization_id) + return _internal_organization_id(); } -inline ::google::protobuf::Timestamp* RegistryItem::mutable_created_at() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Timestamp* _msg = _internal_mutable_created_at(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.RegistryItem.created_at) - return _msg; +template +inline PROTOBUF_ALWAYS_INLINE +void Module::set_organization_id(ArgT0&& arg0, ArgT... args) { + + organization_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.Module.organization_id) } -inline void RegistryItem::set_allocated_created_at(::google::protobuf::Timestamp* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.created_at_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.created_at_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RegistryItem.created_at) +inline std::string* Module::mutable_organization_id() { + std::string* _s = _internal_mutable_organization_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Module.organization_id) + return _s; } - -// .google.protobuf.Timestamp updated_at = 16 [json_name = "updatedAt"]; -inline bool RegistryItem::has_updated_at() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.updated_at_ != nullptr); - return value; +inline const std::string& Module::_internal_organization_id() const { + return organization_id_.Get(); } -inline const ::google::protobuf::Timestamp& RegistryItem::_internal_updated_at() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Timestamp* p = _impl_.updated_at_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); +inline void Module::_internal_set_organization_id(const std::string& value) { + + organization_id_.Set(value, GetArenaForAllocation()); } -inline const ::google::protobuf::Timestamp& RegistryItem::updated_at() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.RegistryItem.updated_at) - return _internal_updated_at(); +inline std::string* Module::_internal_mutable_organization_id() { + + return organization_id_.Mutable(GetArenaForAllocation()); } -inline void RegistryItem::unsafe_arena_set_allocated_updated_at(::google::protobuf::Timestamp* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.updated_at_); - } - _impl_.updated_at_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; - } else { - _impl_._has_bits_[0] &= ~0x00000002u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.RegistryItem.updated_at) +inline std::string* Module::release_organization_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.Module.organization_id) + return organization_id_.Release(); } -inline ::google::protobuf::Timestamp* RegistryItem::release_updated_at() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Timestamp* released = _impl_.updated_at_; - _impl_.updated_at_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; +inline void Module::set_allocated_organization_id(std::string* organization_id) { + if (organization_id != nullptr) { + + } else { + } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + organization_id_.SetAllocated(organization_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (organization_id_.IsDefault()) { + organization_id_.Set("", GetArenaForAllocation()); } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Module.organization_id) } -inline ::google::protobuf::Timestamp* RegistryItem::unsafe_arena_release_updated_at() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.RegistryItem.updated_at) - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Timestamp* temp = _impl_.updated_at_; - _impl_.updated_at_ = nullptr; - return temp; +// string entrypoint = 11 [json_name = "entrypoint"]; +inline void Module::clear_entrypoint() { + entrypoint_.ClearToEmpty(); } -inline ::google::protobuf::Timestamp* RegistryItem::_internal_mutable_updated_at() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.updated_at_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena()); - _impl_.updated_at_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); - } - return _impl_.updated_at_; +inline const std::string& Module::entrypoint() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Module.entrypoint) + return _internal_entrypoint(); } -inline ::google::protobuf::Timestamp* RegistryItem::mutable_updated_at() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Timestamp* _msg = _internal_mutable_updated_at(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.RegistryItem.updated_at) - return _msg; +template +inline PROTOBUF_ALWAYS_INLINE +void Module::set_entrypoint(ArgT0&& arg0, ArgT... args) { + + entrypoint_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.Module.entrypoint) } -inline void RegistryItem::set_allocated_updated_at(::google::protobuf::Timestamp* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.updated_at_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000002u; - } else { - _impl_._has_bits_[0] &= ~0x00000002u; - } - - _impl_.updated_at_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RegistryItem.updated_at) +inline std::string* Module::mutable_entrypoint() { + std::string* _s = _internal_mutable_entrypoint(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Module.entrypoint) + return _s; } - -inline bool RegistryItem::has_metadata() const { - return metadata_case() != METADATA_NOT_SET; +inline const std::string& Module::_internal_entrypoint() const { + return entrypoint_.Get(); } -inline void RegistryItem::clear_has_metadata() { - _impl_._oneof_case_[0] = METADATA_NOT_SET; +inline void Module::_internal_set_entrypoint(const std::string& value) { + + entrypoint_.Set(value, GetArenaForAllocation()); } -inline RegistryItem::MetadataCase RegistryItem::metadata_case() const { - return RegistryItem::MetadataCase(_impl_._oneof_case_[0]); +inline std::string* Module::_internal_mutable_entrypoint() { + + return entrypoint_.Mutable(GetArenaForAllocation()); +} +inline std::string* Module::release_entrypoint() { + // @@protoc_insertion_point(field_release:viam.app.v1.Module.entrypoint) + return entrypoint_.Release(); +} +inline void Module::set_allocated_entrypoint(std::string* entrypoint) { + if (entrypoint != nullptr) { + + } else { + + } + entrypoint_.SetAllocated(entrypoint, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (entrypoint_.IsDefault()) { + entrypoint_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Module.entrypoint) } -// ------------------------------------------------------------------- - -// GetRegistryItemRequest -// string item_id = 1 [json_name = "itemId"]; -inline void GetRegistryItemRequest::clear_item_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.item_id_.ClearToEmpty(); +// string public_namespace = 12 [json_name = "publicNamespace"]; +inline void Module::clear_public_namespace() { + public_namespace_.ClearToEmpty(); } -inline const std::string& GetRegistryItemRequest::item_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.GetRegistryItemRequest.item_id) - return _internal_item_id(); +inline const std::string& Module::public_namespace() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Module.public_namespace) + return _internal_public_namespace(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetRegistryItemRequest::set_item_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.item_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.GetRegistryItemRequest.item_id) +template +inline PROTOBUF_ALWAYS_INLINE +void Module::set_public_namespace(ArgT0&& arg0, ArgT... args) { + + public_namespace_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.Module.public_namespace) } -inline std::string* GetRegistryItemRequest::mutable_item_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_item_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRegistryItemRequest.item_id) +inline std::string* Module::mutable_public_namespace() { + std::string* _s = _internal_mutable_public_namespace(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Module.public_namespace) return _s; } -inline const std::string& GetRegistryItemRequest::_internal_item_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.item_id_.Get(); +inline const std::string& Module::_internal_public_namespace() const { + return public_namespace_.Get(); } -inline void GetRegistryItemRequest::_internal_set_item_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.item_id_.Set(value, GetArena()); +inline void Module::_internal_set_public_namespace(const std::string& value) { + + public_namespace_.Set(value, GetArenaForAllocation()); } -inline std::string* GetRegistryItemRequest::_internal_mutable_item_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.item_id_.Mutable( GetArena()); +inline std::string* Module::_internal_mutable_public_namespace() { + + return public_namespace_.Mutable(GetArenaForAllocation()); } -inline std::string* GetRegistryItemRequest::release_item_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.GetRegistryItemRequest.item_id) - return _impl_.item_id_.Release(); -} -inline void GetRegistryItemRequest::set_allocated_item_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.item_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.item_id_.IsDefault()) { - _impl_.item_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetRegistryItemRequest.item_id) +inline std::string* Module::release_public_namespace() { + // @@protoc_insertion_point(field_release:viam.app.v1.Module.public_namespace) + return public_namespace_.Release(); +} +inline void Module::set_allocated_public_namespace(std::string* public_namespace) { + if (public_namespace != nullptr) { + + } else { + + } + public_namespace_.SetAllocated(public_namespace, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (public_namespace_.IsDefault()) { + public_namespace_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Module.public_namespace) } -// ------------------------------------------------------------------- - -// GetRegistryItemResponse - -// .viam.app.v1.RegistryItem item = 1 [json_name = "item"]; -inline bool GetRegistryItemResponse::has_item() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.item_ != nullptr); +// optional string first_run = 13 [json_name = "firstRun"]; +inline bool Module::_internal_has_first_run() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; return value; } -inline void GetRegistryItemResponse::clear_item() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.item_ != nullptr) _impl_.item_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; +inline bool Module::has_first_run() const { + return _internal_has_first_run(); } -inline const ::viam::app::v1::RegistryItem& GetRegistryItemResponse::_internal_item() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::RegistryItem* p = _impl_.item_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_RegistryItem_default_instance_); +inline void Module::clear_first_run() { + first_run_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; } -inline const ::viam::app::v1::RegistryItem& GetRegistryItemResponse::item() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.GetRegistryItemResponse.item) - return _internal_item(); +inline const std::string& Module::first_run() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Module.first_run) + return _internal_first_run(); } -inline void GetRegistryItemResponse::unsafe_arena_set_allocated_item(::viam::app::v1::RegistryItem* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.item_); - } - _impl_.item_ = reinterpret_cast<::viam::app::v1::RegistryItem*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.GetRegistryItemResponse.item) +template +inline PROTOBUF_ALWAYS_INLINE +void Module::set_first_run(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + first_run_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.Module.first_run) } -inline ::viam::app::v1::RegistryItem* GetRegistryItemResponse::release_item() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::RegistryItem* released = _impl_.item_; - _impl_.item_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; +inline std::string* Module::mutable_first_run() { + std::string* _s = _internal_mutable_first_run(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Module.first_run) + return _s; } -inline ::viam::app::v1::RegistryItem* GetRegistryItemResponse::unsafe_arena_release_item() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.GetRegistryItemResponse.item) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::RegistryItem* temp = _impl_.item_; - _impl_.item_ = nullptr; - return temp; +inline const std::string& Module::_internal_first_run() const { + return first_run_.Get(); } -inline ::viam::app::v1::RegistryItem* GetRegistryItemResponse::_internal_mutable_item() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.item_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::RegistryItem>(GetArena()); - _impl_.item_ = reinterpret_cast<::viam::app::v1::RegistryItem*>(p); - } - return _impl_.item_; +inline void Module::_internal_set_first_run(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + first_run_.Set(value, GetArenaForAllocation()); } -inline ::viam::app::v1::RegistryItem* GetRegistryItemResponse::mutable_item() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::viam::app::v1::RegistryItem* _msg = _internal_mutable_item(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.GetRegistryItemResponse.item) - return _msg; +inline std::string* Module::_internal_mutable_first_run() { + _has_bits_[0] |= 0x00000001u; + return first_run_.Mutable(GetArenaForAllocation()); } -inline void GetRegistryItemResponse::set_allocated_item(::viam::app::v1::RegistryItem* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::RegistryItem*>(_impl_.item_); +inline std::string* Module::release_first_run() { + // @@protoc_insertion_point(field_release:viam.app.v1.Module.first_run) + if (!_internal_has_first_run()) { + return nullptr; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::RegistryItem*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; + _has_bits_[0] &= ~0x00000001u; + auto* p = first_run_.Release(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (first_run_.IsDefault()) { + first_run_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; +} +inline void Module::set_allocated_first_run(std::string* first_run) { + if (first_run != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; + _has_bits_[0] &= ~0x00000001u; } - - _impl_.item_ = reinterpret_cast<::viam::app::v1::RegistryItem*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetRegistryItemResponse.item) + first_run_.SetAllocated(first_run, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (first_run_.IsDefault()) { + first_run_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Module.first_run) } // ------------------------------------------------------------------- -// CreateRegistryItemRequest +// VersionHistory -// string organization_id = 1 [json_name = "organizationId"]; -inline void CreateRegistryItemRequest::clear_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.ClearToEmpty(); +// string version = 1 [json_name = "version"]; +inline void VersionHistory::clear_version() { + version_.ClearToEmpty(); } -inline const std::string& CreateRegistryItemRequest::organization_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.CreateRegistryItemRequest.organization_id) - return _internal_organization_id(); +inline const std::string& VersionHistory::version() const { + // @@protoc_insertion_point(field_get:viam.app.v1.VersionHistory.version) + return _internal_version(); } -template -inline PROTOBUF_ALWAYS_INLINE void CreateRegistryItemRequest::set_organization_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.CreateRegistryItemRequest.organization_id) +template +inline PROTOBUF_ALWAYS_INLINE +void VersionHistory::set_version(ArgT0&& arg0, ArgT... args) { + + version_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.VersionHistory.version) } -inline std::string* CreateRegistryItemRequest::mutable_organization_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_organization_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateRegistryItemRequest.organization_id) +inline std::string* VersionHistory::mutable_version() { + std::string* _s = _internal_mutable_version(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.VersionHistory.version) return _s; } -inline const std::string& CreateRegistryItemRequest::_internal_organization_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.organization_id_.Get(); +inline const std::string& VersionHistory::_internal_version() const { + return version_.Get(); } -inline void CreateRegistryItemRequest::_internal_set_organization_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(value, GetArena()); +inline void VersionHistory::_internal_set_version(const std::string& value) { + + version_.Set(value, GetArenaForAllocation()); } -inline std::string* CreateRegistryItemRequest::_internal_mutable_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.organization_id_.Mutable( GetArena()); +inline std::string* VersionHistory::_internal_mutable_version() { + + return version_.Mutable(GetArenaForAllocation()); } -inline std::string* CreateRegistryItemRequest::release_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.CreateRegistryItemRequest.organization_id) - return _impl_.organization_id_.Release(); -} -inline void CreateRegistryItemRequest::set_allocated_organization_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.organization_id_.IsDefault()) { - _impl_.organization_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateRegistryItemRequest.organization_id) +inline std::string* VersionHistory::release_version() { + // @@protoc_insertion_point(field_release:viam.app.v1.VersionHistory.version) + return version_.Release(); +} +inline void VersionHistory::set_allocated_version(std::string* version) { + if (version != nullptr) { + + } else { + + } + version_.SetAllocated(version, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (version_.IsDefault()) { + version_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.VersionHistory.version) } -// string name = 2 [json_name = "name"]; -inline void CreateRegistryItemRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); +// repeated .viam.app.v1.Uploads files = 2 [json_name = "files"]; +inline int VersionHistory::_internal_files_size() const { + return files_.size(); } -inline const std::string& CreateRegistryItemRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.CreateRegistryItemRequest.name) - return _internal_name(); +inline int VersionHistory::files_size() const { + return _internal_files_size(); } -template -inline PROTOBUF_ALWAYS_INLINE void CreateRegistryItemRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.CreateRegistryItemRequest.name) +inline void VersionHistory::clear_files() { + files_.Clear(); } -inline std::string* CreateRegistryItemRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateRegistryItemRequest.name) - return _s; +inline ::viam::app::v1::Uploads* VersionHistory::mutable_files(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.VersionHistory.files) + return files_.Mutable(index); } -inline const std::string& CreateRegistryItemRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Uploads >* +VersionHistory::mutable_files() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.VersionHistory.files) + return &files_; } -inline void CreateRegistryItemRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); +inline const ::viam::app::v1::Uploads& VersionHistory::_internal_files(int index) const { + return files_.Get(index); } -inline std::string* CreateRegistryItemRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); +inline const ::viam::app::v1::Uploads& VersionHistory::files(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.VersionHistory.files) + return _internal_files(index); } -inline std::string* CreateRegistryItemRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.CreateRegistryItemRequest.name) - return _impl_.name_.Release(); -} -inline void CreateRegistryItemRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateRegistryItemRequest.name) +inline ::viam::app::v1::Uploads* VersionHistory::_internal_add_files() { + return files_.Add(); +} +inline ::viam::app::v1::Uploads* VersionHistory::add_files() { + ::viam::app::v1::Uploads* _add = _internal_add_files(); + // @@protoc_insertion_point(field_add:viam.app.v1.VersionHistory.files) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Uploads >& +VersionHistory::files() const { + // @@protoc_insertion_point(field_list:viam.app.v1.VersionHistory.files) + return files_; } -// .viam.app.packages.v1.PackageType type = 3 [json_name = "type"]; -inline void CreateRegistryItemRequest::clear_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_ = 0; +// repeated .viam.app.v1.Model models = 3 [json_name = "models"]; +inline int VersionHistory::_internal_models_size() const { + return models_.size(); } -inline ::viam::app::packages::v1::PackageType CreateRegistryItemRequest::type() const { - // @@protoc_insertion_point(field_get:viam.app.v1.CreateRegistryItemRequest.type) - return _internal_type(); +inline int VersionHistory::models_size() const { + return _internal_models_size(); } -inline void CreateRegistryItemRequest::set_type(::viam::app::packages::v1::PackageType value) { - _internal_set_type(value); - // @@protoc_insertion_point(field_set:viam.app.v1.CreateRegistryItemRequest.type) +inline void VersionHistory::clear_models() { + models_.Clear(); } -inline ::viam::app::packages::v1::PackageType CreateRegistryItemRequest::_internal_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::viam::app::packages::v1::PackageType>(_impl_.type_); +inline ::viam::app::v1::Model* VersionHistory::mutable_models(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.VersionHistory.models) + return models_.Mutable(index); } -inline void CreateRegistryItemRequest::_internal_set_type(::viam::app::packages::v1::PackageType value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.type_ = value; +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Model >* +VersionHistory::mutable_models() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.VersionHistory.models) + return &models_; } - -// ------------------------------------------------------------------- - -// CreateRegistryItemResponse - -// ------------------------------------------------------------------- - -// UpdateRegistryItemRequest - -// string item_id = 1 [json_name = "itemId"]; -inline void UpdateRegistryItemRequest::clear_item_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.item_id_.ClearToEmpty(); +inline const ::viam::app::v1::Model& VersionHistory::_internal_models(int index) const { + return models_.Get(index); } -inline const std::string& UpdateRegistryItemRequest::item_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.UpdateRegistryItemRequest.item_id) - return _internal_item_id(); +inline const ::viam::app::v1::Model& VersionHistory::models(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.VersionHistory.models) + return _internal_models(index); } -template -inline PROTOBUF_ALWAYS_INLINE void UpdateRegistryItemRequest::set_item_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.item_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.UpdateRegistryItemRequest.item_id) +inline ::viam::app::v1::Model* VersionHistory::_internal_add_models() { + return models_.Add(); } -inline std::string* UpdateRegistryItemRequest::mutable_item_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_item_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateRegistryItemRequest.item_id) - return _s; +inline ::viam::app::v1::Model* VersionHistory::add_models() { + ::viam::app::v1::Model* _add = _internal_add_models(); + // @@protoc_insertion_point(field_add:viam.app.v1.VersionHistory.models) + return _add; } -inline const std::string& UpdateRegistryItemRequest::_internal_item_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.item_id_.Get(); +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Model >& +VersionHistory::models() const { + // @@protoc_insertion_point(field_list:viam.app.v1.VersionHistory.models) + return models_; } -inline void UpdateRegistryItemRequest::_internal_set_item_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.item_id_.Set(value, GetArena()); + +// string entrypoint = 4 [json_name = "entrypoint"]; +inline void VersionHistory::clear_entrypoint() { + entrypoint_.ClearToEmpty(); } -inline std::string* UpdateRegistryItemRequest::_internal_mutable_item_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.item_id_.Mutable( GetArena()); +inline const std::string& VersionHistory::entrypoint() const { + // @@protoc_insertion_point(field_get:viam.app.v1.VersionHistory.entrypoint) + return _internal_entrypoint(); } -inline std::string* UpdateRegistryItemRequest::release_item_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.UpdateRegistryItemRequest.item_id) - return _impl_.item_id_.Release(); -} -inline void UpdateRegistryItemRequest::set_allocated_item_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.item_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.item_id_.IsDefault()) { - _impl_.item_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateRegistryItemRequest.item_id) +template +inline PROTOBUF_ALWAYS_INLINE +void VersionHistory::set_entrypoint(ArgT0&& arg0, ArgT... args) { + + entrypoint_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.VersionHistory.entrypoint) } - -// .viam.app.packages.v1.PackageType type = 2 [json_name = "type"]; -inline void UpdateRegistryItemRequest::clear_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_ = 0; +inline std::string* VersionHistory::mutable_entrypoint() { + std::string* _s = _internal_mutable_entrypoint(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.VersionHistory.entrypoint) + return _s; } -inline ::viam::app::packages::v1::PackageType UpdateRegistryItemRequest::type() const { - // @@protoc_insertion_point(field_get:viam.app.v1.UpdateRegistryItemRequest.type) - return _internal_type(); +inline const std::string& VersionHistory::_internal_entrypoint() const { + return entrypoint_.Get(); } -inline void UpdateRegistryItemRequest::set_type(::viam::app::packages::v1::PackageType value) { - _internal_set_type(value); - // @@protoc_insertion_point(field_set:viam.app.v1.UpdateRegistryItemRequest.type) +inline void VersionHistory::_internal_set_entrypoint(const std::string& value) { + + entrypoint_.Set(value, GetArenaForAllocation()); } -inline ::viam::app::packages::v1::PackageType UpdateRegistryItemRequest::_internal_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::viam::app::packages::v1::PackageType>(_impl_.type_); +inline std::string* VersionHistory::_internal_mutable_entrypoint() { + + return entrypoint_.Mutable(GetArenaForAllocation()); } -inline void UpdateRegistryItemRequest::_internal_set_type(::viam::app::packages::v1::PackageType value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.type_ = value; +inline std::string* VersionHistory::release_entrypoint() { + // @@protoc_insertion_point(field_release:viam.app.v1.VersionHistory.entrypoint) + return entrypoint_.Release(); +} +inline void VersionHistory::set_allocated_entrypoint(std::string* entrypoint) { + if (entrypoint != nullptr) { + + } else { + + } + entrypoint_.SetAllocated(entrypoint, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (entrypoint_.IsDefault()) { + entrypoint_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.VersionHistory.entrypoint) } -// string description = 3 [json_name = "description"]; -inline void UpdateRegistryItemRequest::clear_description() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.description_.ClearToEmpty(); +// optional string first_run = 5 [json_name = "firstRun"]; +inline bool VersionHistory::_internal_has_first_run() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; } -inline const std::string& UpdateRegistryItemRequest::description() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.UpdateRegistryItemRequest.description) - return _internal_description(); +inline bool VersionHistory::has_first_run() const { + return _internal_has_first_run(); } -template -inline PROTOBUF_ALWAYS_INLINE void UpdateRegistryItemRequest::set_description(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.description_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.UpdateRegistryItemRequest.description) +inline void VersionHistory::clear_first_run() { + first_run_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; } -inline std::string* UpdateRegistryItemRequest::mutable_description() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_description(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateRegistryItemRequest.description) +inline const std::string& VersionHistory::first_run() const { + // @@protoc_insertion_point(field_get:viam.app.v1.VersionHistory.first_run) + return _internal_first_run(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void VersionHistory::set_first_run(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + first_run_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.VersionHistory.first_run) +} +inline std::string* VersionHistory::mutable_first_run() { + std::string* _s = _internal_mutable_first_run(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.VersionHistory.first_run) return _s; } -inline const std::string& UpdateRegistryItemRequest::_internal_description() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.description_.Get(); +inline const std::string& VersionHistory::_internal_first_run() const { + return first_run_.Get(); } -inline void UpdateRegistryItemRequest::_internal_set_description(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.description_.Set(value, GetArena()); +inline void VersionHistory::_internal_set_first_run(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + first_run_.Set(value, GetArenaForAllocation()); } -inline std::string* UpdateRegistryItemRequest::_internal_mutable_description() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.description_.Mutable( GetArena()); +inline std::string* VersionHistory::_internal_mutable_first_run() { + _has_bits_[0] |= 0x00000001u; + return first_run_.Mutable(GetArenaForAllocation()); } -inline std::string* UpdateRegistryItemRequest::release_description() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.UpdateRegistryItemRequest.description) - return _impl_.description_.Release(); -} -inline void UpdateRegistryItemRequest::set_allocated_description(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.description_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.description_.IsDefault()) { - _impl_.description_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateRegistryItemRequest.description) +inline std::string* VersionHistory::release_first_run() { + // @@protoc_insertion_point(field_release:viam.app.v1.VersionHistory.first_run) + if (!_internal_has_first_run()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + auto* p = first_run_.Release(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (first_run_.IsDefault()) { + first_run_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; +} +inline void VersionHistory::set_allocated_first_run(std::string* first_run) { + if (first_run != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + first_run_.SetAllocated(first_run, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (first_run_.IsDefault()) { + first_run_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.VersionHistory.first_run) } -// .viam.app.v1.Visibility visibility = 4 [json_name = "visibility"]; -inline void UpdateRegistryItemRequest::clear_visibility() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.visibility_ = 0; +// ------------------------------------------------------------------- + +// Uploads + +// string platform = 1 [json_name = "platform"]; +inline void Uploads::clear_platform() { + platform_.ClearToEmpty(); } -inline ::viam::app::v1::Visibility UpdateRegistryItemRequest::visibility() const { - // @@protoc_insertion_point(field_get:viam.app.v1.UpdateRegistryItemRequest.visibility) - return _internal_visibility(); +inline const std::string& Uploads::platform() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Uploads.platform) + return _internal_platform(); } -inline void UpdateRegistryItemRequest::set_visibility(::viam::app::v1::Visibility value) { - _internal_set_visibility(value); - // @@protoc_insertion_point(field_set:viam.app.v1.UpdateRegistryItemRequest.visibility) +template +inline PROTOBUF_ALWAYS_INLINE +void Uploads::set_platform(ArgT0&& arg0, ArgT... args) { + + platform_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.Uploads.platform) } -inline ::viam::app::v1::Visibility UpdateRegistryItemRequest::_internal_visibility() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::viam::app::v1::Visibility>(_impl_.visibility_); +inline std::string* Uploads::mutable_platform() { + std::string* _s = _internal_mutable_platform(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Uploads.platform) + return _s; } -inline void UpdateRegistryItemRequest::_internal_set_visibility(::viam::app::v1::Visibility value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.visibility_ = value; +inline const std::string& Uploads::_internal_platform() const { + return platform_.Get(); } - -// optional string url = 5 [json_name = "url"]; -inline bool UpdateRegistryItemRequest::has_url() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - return value; +inline void Uploads::_internal_set_platform(const std::string& value) { + + platform_.Set(value, GetArenaForAllocation()); } -inline void UpdateRegistryItemRequest::clear_url() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.url_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000001u; +inline std::string* Uploads::_internal_mutable_platform() { + + return platform_.Mutable(GetArenaForAllocation()); } -inline const std::string& UpdateRegistryItemRequest::url() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.UpdateRegistryItemRequest.url) - return _internal_url(); +inline std::string* Uploads::release_platform() { + // @@protoc_insertion_point(field_release:viam.app.v1.Uploads.platform) + return platform_.Release(); } -template -inline PROTOBUF_ALWAYS_INLINE void UpdateRegistryItemRequest::set_url(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.url_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.UpdateRegistryItemRequest.url) +inline void Uploads::set_allocated_platform(std::string* platform) { + if (platform != nullptr) { + + } else { + + } + platform_.SetAllocated(platform, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (platform_.IsDefault()) { + platform_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Uploads.platform) } -inline std::string* UpdateRegistryItemRequest::mutable_url() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_url(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateRegistryItemRequest.url) - return _s; + +// .google.protobuf.Timestamp uploaded_at = 2 [json_name = "uploadedAt"]; +inline bool Uploads::_internal_has_uploaded_at() const { + return this != internal_default_instance() && uploaded_at_ != nullptr; } -inline const std::string& UpdateRegistryItemRequest::_internal_url() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.url_.Get(); +inline bool Uploads::has_uploaded_at() const { + return _internal_has_uploaded_at(); } -inline void UpdateRegistryItemRequest::_internal_set_url(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.url_.Set(value, GetArena()); +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& Uploads::_internal_uploaded_at() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = uploaded_at_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); } -inline std::string* UpdateRegistryItemRequest::_internal_mutable_url() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.url_.Mutable( GetArena()); +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& Uploads::uploaded_at() const { + // @@protoc_insertion_point(field_get:viam.app.v1.Uploads.uploaded_at) + return _internal_uploaded_at(); } -inline std::string* UpdateRegistryItemRequest::release_url() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.UpdateRegistryItemRequest.url) - if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { - return nullptr; +inline void Uploads::unsafe_arena_set_allocated_uploaded_at( + ::PROTOBUF_NAMESPACE_ID::Timestamp* uploaded_at) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(uploaded_at_); } - _impl_._has_bits_[0] &= ~0x00000001u; - auto* released = _impl_.url_.Release(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.url_.Set("", GetArena()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return released; + uploaded_at_ = uploaded_at; + if (uploaded_at) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.Uploads.uploaded_at) } -inline void UpdateRegistryItemRequest::set_allocated_url(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Uploads::release_uploaded_at() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = uploaded_at_; + uploaded_at_ = 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* Uploads::unsafe_arena_release_uploaded_at() { + // @@protoc_insertion_point(field_release:viam.app.v1.Uploads.uploaded_at) + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = uploaded_at_; + uploaded_at_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Uploads::_internal_mutable_uploaded_at() { + + if (uploaded_at_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + uploaded_at_ = p; + } + return uploaded_at_; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Uploads::mutable_uploaded_at() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_uploaded_at(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.Uploads.uploaded_at) + return _msg; +} +inline void Uploads::set_allocated_uploaded_at(::PROTOBUF_NAMESPACE_ID::Timestamp* uploaded_at) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(uploaded_at_); + } + if (uploaded_at) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(uploaded_at)); + if (message_arena != submessage_arena) { + uploaded_at = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, uploaded_at, submessage_arena); + } + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - _impl_.url_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.url_.IsDefault()) { - _impl_.url_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateRegistryItemRequest.url) + uploaded_at_ = uploaded_at; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Uploads.uploaded_at) } // ------------------------------------------------------------------- -// UpdateRegistryItemResponse - -// ------------------------------------------------------------------- - -// ListRegistryItemsRequest +// ListModulesRequest // optional string organization_id = 1 [json_name = "organizationId"]; -inline bool ListRegistryItemsRequest::has_organization_id() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; +inline bool ListModulesRequest::_internal_has_organization_id() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; return value; } -inline void ListRegistryItemsRequest::clear_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000001u; +inline bool ListModulesRequest::has_organization_id() const { + return _internal_has_organization_id(); } -inline const std::string& ListRegistryItemsRequest::organization_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.ListRegistryItemsRequest.organization_id) +inline void ListModulesRequest::clear_organization_id() { + organization_id_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& ListModulesRequest::organization_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ListModulesRequest.organization_id) return _internal_organization_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void ListRegistryItemsRequest::set_organization_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.organization_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.ListRegistryItemsRequest.organization_id) +template +inline PROTOBUF_ALWAYS_INLINE +void ListModulesRequest::set_organization_id(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + organization_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.ListModulesRequest.organization_id) } -inline std::string* ListRegistryItemsRequest::mutable_organization_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ListModulesRequest::mutable_organization_id() { std::string* _s = _internal_mutable_organization_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.ListRegistryItemsRequest.organization_id) + // @@protoc_insertion_point(field_mutable:viam.app.v1.ListModulesRequest.organization_id) return _s; } -inline const std::string& ListRegistryItemsRequest::_internal_organization_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.organization_id_.Get(); +inline const std::string& ListModulesRequest::_internal_organization_id() const { + return organization_id_.Get(); } -inline void ListRegistryItemsRequest::_internal_set_organization_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.organization_id_.Set(value, GetArena()); +inline void ListModulesRequest::_internal_set_organization_id(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + organization_id_.Set(value, GetArenaForAllocation()); } -inline std::string* ListRegistryItemsRequest::_internal_mutable_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.organization_id_.Mutable( GetArena()); +inline std::string* ListModulesRequest::_internal_mutable_organization_id() { + _has_bits_[0] |= 0x00000001u; + return organization_id_.Mutable(GetArenaForAllocation()); } -inline std::string* ListRegistryItemsRequest::release_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.ListRegistryItemsRequest.organization_id) - if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { +inline std::string* ListModulesRequest::release_organization_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.ListModulesRequest.organization_id) + if (!_internal_has_organization_id()) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000001u; - auto* released = _impl_.organization_id_.Release(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.organization_id_.Set("", GetArena()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return released; + _has_bits_[0] &= ~0x00000001u; + auto* p = organization_id_.Release(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (organization_id_.IsDefault()) { + organization_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; } -inline void ListRegistryItemsRequest::set_allocated_organization_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; +inline void ListModulesRequest::set_allocated_organization_id(std::string* organization_id) { + if (organization_id != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; + _has_bits_[0] &= ~0x00000001u; } - _impl_.organization_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.organization_id_.IsDefault()) { - _impl_.organization_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ListRegistryItemsRequest.organization_id) + organization_id_.SetAllocated(organization_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (organization_id_.IsDefault()) { + organization_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ListModulesRequest.organization_id) } -// repeated .viam.app.packages.v1.PackageType types = 2 [json_name = "types"]; -inline int ListRegistryItemsRequest::_internal_types_size() const { - return _internal_types().size(); -} -inline int ListRegistryItemsRequest::types_size() const { - return _internal_types_size(); -} -inline void ListRegistryItemsRequest::clear_types() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.types_.Clear(); -} -inline ::viam::app::packages::v1::PackageType ListRegistryItemsRequest::types(int index) const { - // @@protoc_insertion_point(field_get:viam.app.v1.ListRegistryItemsRequest.types) - return static_cast<::viam::app::packages::v1::PackageType>(_internal_types().Get(index)); +// optional bool include_markdown_documentation = 2 [json_name = "includeMarkdownDocumentation"]; +inline bool ListModulesRequest::_internal_has_include_markdown_documentation() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; } -inline void ListRegistryItemsRequest::set_types(int index, ::viam::app::packages::v1::PackageType value) { - _internal_mutable_types()->Set(index, value); - // @@protoc_insertion_point(field_set:viam.app.v1.ListRegistryItemsRequest.types) +inline bool ListModulesRequest::has_include_markdown_documentation() const { + return _internal_has_include_markdown_documentation(); } -inline void ListRegistryItemsRequest::add_types(::viam::app::packages::v1::PackageType value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_types()->Add(value); - // @@protoc_insertion_point(field_add:viam.app.v1.ListRegistryItemsRequest.types) +inline void ListModulesRequest::clear_include_markdown_documentation() { + include_markdown_documentation_ = false; + _has_bits_[0] &= ~0x00000002u; } -inline const ::google::protobuf::RepeatedField& ListRegistryItemsRequest::types() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:viam.app.v1.ListRegistryItemsRequest.types) - return _internal_types(); +inline bool ListModulesRequest::_internal_include_markdown_documentation() const { + return include_markdown_documentation_; } -inline ::google::protobuf::RepeatedField* ListRegistryItemsRequest::mutable_types() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ListRegistryItemsRequest.types) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_types(); +inline bool ListModulesRequest::include_markdown_documentation() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ListModulesRequest.include_markdown_documentation) + return _internal_include_markdown_documentation(); } -inline const ::google::protobuf::RepeatedField& ListRegistryItemsRequest::_internal_types() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.types_; +inline void ListModulesRequest::_internal_set_include_markdown_documentation(bool value) { + _has_bits_[0] |= 0x00000002u; + include_markdown_documentation_ = value; } -inline ::google::protobuf::RepeatedField* ListRegistryItemsRequest::_internal_mutable_types() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.types_; +inline void ListModulesRequest::set_include_markdown_documentation(bool value) { + _internal_set_include_markdown_documentation(value); + // @@protoc_insertion_point(field_set:viam.app.v1.ListModulesRequest.include_markdown_documentation) } -// repeated .viam.app.v1.Visibility visibilities = 3 [json_name = "visibilities"]; -inline int ListRegistryItemsRequest::_internal_visibilities_size() const { - return _internal_visibilities().size(); +// ------------------------------------------------------------------- + +// ListModulesResponse + +// repeated .viam.app.v1.Module modules = 1 [json_name = "modules"]; +inline int ListModulesResponse::_internal_modules_size() const { + return modules_.size(); } -inline int ListRegistryItemsRequest::visibilities_size() const { - return _internal_visibilities_size(); +inline int ListModulesResponse::modules_size() const { + return _internal_modules_size(); } -inline void ListRegistryItemsRequest::clear_visibilities() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.visibilities_.Clear(); +inline void ListModulesResponse::clear_modules() { + modules_.Clear(); } -inline ::viam::app::v1::Visibility ListRegistryItemsRequest::visibilities(int index) const { - // @@protoc_insertion_point(field_get:viam.app.v1.ListRegistryItemsRequest.visibilities) - return static_cast<::viam::app::v1::Visibility>(_internal_visibilities().Get(index)); +inline ::viam::app::v1::Module* ListModulesResponse::mutable_modules(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.ListModulesResponse.modules) + return modules_.Mutable(index); } -inline void ListRegistryItemsRequest::set_visibilities(int index, ::viam::app::v1::Visibility value) { - _internal_mutable_visibilities()->Set(index, value); - // @@protoc_insertion_point(field_set:viam.app.v1.ListRegistryItemsRequest.visibilities) +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Module >* +ListModulesResponse::mutable_modules() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ListModulesResponse.modules) + return &modules_; } -inline void ListRegistryItemsRequest::add_visibilities(::viam::app::v1::Visibility value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_visibilities()->Add(value); - // @@protoc_insertion_point(field_add:viam.app.v1.ListRegistryItemsRequest.visibilities) +inline const ::viam::app::v1::Module& ListModulesResponse::_internal_modules(int index) const { + return modules_.Get(index); } -inline const ::google::protobuf::RepeatedField& ListRegistryItemsRequest::visibilities() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:viam.app.v1.ListRegistryItemsRequest.visibilities) - return _internal_visibilities(); +inline const ::viam::app::v1::Module& ListModulesResponse::modules(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.ListModulesResponse.modules) + return _internal_modules(index); } -inline ::google::protobuf::RepeatedField* ListRegistryItemsRequest::mutable_visibilities() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ListRegistryItemsRequest.visibilities) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_visibilities(); +inline ::viam::app::v1::Module* ListModulesResponse::_internal_add_modules() { + return modules_.Add(); } -inline const ::google::protobuf::RepeatedField& ListRegistryItemsRequest::_internal_visibilities() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.visibilities_; +inline ::viam::app::v1::Module* ListModulesResponse::add_modules() { + ::viam::app::v1::Module* _add = _internal_add_modules(); + // @@protoc_insertion_point(field_add:viam.app.v1.ListModulesResponse.modules) + return _add; } -inline ::google::protobuf::RepeatedField* ListRegistryItemsRequest::_internal_mutable_visibilities() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.visibilities_; +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Module >& +ListModulesResponse::modules() const { + // @@protoc_insertion_point(field_list:viam.app.v1.ListModulesResponse.modules) + return modules_; } -// repeated string platforms = 4 [json_name = "platforms"]; -inline int ListRegistryItemsRequest::_internal_platforms_size() const { - return _internal_platforms().size(); +// ------------------------------------------------------------------- + +// GetUserIDByEmailRequest + +// string email = 1 [json_name = "email"]; +inline void GetUserIDByEmailRequest::clear_email() { + email_.ClearToEmpty(); } -inline int ListRegistryItemsRequest::platforms_size() const { - return _internal_platforms_size(); +inline const std::string& GetUserIDByEmailRequest::email() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetUserIDByEmailRequest.email) + return _internal_email(); } -inline void ListRegistryItemsRequest::clear_platforms() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.platforms_.Clear(); +template +inline PROTOBUF_ALWAYS_INLINE +void GetUserIDByEmailRequest::set_email(ArgT0&& arg0, ArgT... args) { + + email_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.GetUserIDByEmailRequest.email) } -inline std::string* ListRegistryItemsRequest::add_platforms() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_platforms()->Add(); - // @@protoc_insertion_point(field_add_mutable:viam.app.v1.ListRegistryItemsRequest.platforms) +inline std::string* GetUserIDByEmailRequest::mutable_email() { + std::string* _s = _internal_mutable_email(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetUserIDByEmailRequest.email) return _s; } -inline const std::string& ListRegistryItemsRequest::platforms(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.ListRegistryItemsRequest.platforms) - return _internal_platforms().Get(index); -} -inline std::string* ListRegistryItemsRequest::mutable_platforms(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:viam.app.v1.ListRegistryItemsRequest.platforms) - return _internal_mutable_platforms()->Mutable(index); -} -inline void ListRegistryItemsRequest::set_platforms(int index, const std::string& value) { - _internal_mutable_platforms()->Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set:viam.app.v1.ListRegistryItemsRequest.platforms) +inline const std::string& GetUserIDByEmailRequest::_internal_email() const { + return email_.Get(); } -inline void ListRegistryItemsRequest::set_platforms(int index, std::string&& value) { - _internal_mutable_platforms()->Mutable(index)->assign(std::move(value)); - // @@protoc_insertion_point(field_set:viam.app.v1.ListRegistryItemsRequest.platforms) +inline void GetUserIDByEmailRequest::_internal_set_email(const std::string& value) { + + email_.Set(value, GetArenaForAllocation()); } -inline void ListRegistryItemsRequest::set_platforms(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_platforms()->Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:viam.app.v1.ListRegistryItemsRequest.platforms) +inline std::string* GetUserIDByEmailRequest::_internal_mutable_email() { + + return email_.Mutable(GetArenaForAllocation()); } -inline void ListRegistryItemsRequest::set_platforms(int index, const char* value, - std::size_t size) { - _internal_mutable_platforms()->Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:viam.app.v1.ListRegistryItemsRequest.platforms) +inline std::string* GetUserIDByEmailRequest::release_email() { + // @@protoc_insertion_point(field_release:viam.app.v1.GetUserIDByEmailRequest.email) + return email_.Release(); } -inline void ListRegistryItemsRequest::set_platforms(int index, absl::string_view value) { - _internal_mutable_platforms()->Mutable(index)->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_set_string_piece:viam.app.v1.ListRegistryItemsRequest.platforms) +inline void GetUserIDByEmailRequest::set_allocated_email(std::string* email) { + if (email != nullptr) { + + } else { + + } + email_.SetAllocated(email, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (email_.IsDefault()) { + email_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetUserIDByEmailRequest.email) } -inline void ListRegistryItemsRequest::add_platforms(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_platforms()->Add()->assign(value); - // @@protoc_insertion_point(field_add:viam.app.v1.ListRegistryItemsRequest.platforms) + +// ------------------------------------------------------------------- + +// GetUserIDByEmailResponse + +// string user_id = 1 [json_name = "userId"]; +inline void GetUserIDByEmailResponse::clear_user_id() { + user_id_.ClearToEmpty(); } -inline void ListRegistryItemsRequest::add_platforms(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_platforms()->Add(std::move(value)); - // @@protoc_insertion_point(field_add:viam.app.v1.ListRegistryItemsRequest.platforms) +inline const std::string& GetUserIDByEmailResponse::user_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.GetUserIDByEmailResponse.user_id) + return _internal_user_id(); } -inline void ListRegistryItemsRequest::add_platforms(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_platforms()->Add()->assign(value); - // @@protoc_insertion_point(field_add_char:viam.app.v1.ListRegistryItemsRequest.platforms) +template +inline PROTOBUF_ALWAYS_INLINE +void GetUserIDByEmailResponse::set_user_id(ArgT0&& arg0, ArgT... args) { + + user_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.GetUserIDByEmailResponse.user_id) } -inline void ListRegistryItemsRequest::add_platforms(const char* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_platforms()->Add()->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:viam.app.v1.ListRegistryItemsRequest.platforms) +inline std::string* GetUserIDByEmailResponse::mutable_user_id() { + std::string* _s = _internal_mutable_user_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.GetUserIDByEmailResponse.user_id) + return _s; } -inline void ListRegistryItemsRequest::add_platforms(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_platforms()->Add()->assign(value.data(), value.size()); - // @@protoc_insertion_point(field_add_string_piece:viam.app.v1.ListRegistryItemsRequest.platforms) +inline const std::string& GetUserIDByEmailResponse::_internal_user_id() const { + return user_id_.Get(); } -inline const ::google::protobuf::RepeatedPtrField& -ListRegistryItemsRequest::platforms() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:viam.app.v1.ListRegistryItemsRequest.platforms) - return _internal_platforms(); +inline void GetUserIDByEmailResponse::_internal_set_user_id(const std::string& value) { + + user_id_.Set(value, GetArenaForAllocation()); } -inline ::google::protobuf::RepeatedPtrField* -ListRegistryItemsRequest::mutable_platforms() ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ListRegistryItemsRequest.platforms) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_platforms(); +inline std::string* GetUserIDByEmailResponse::_internal_mutable_user_id() { + + return user_id_.Mutable(GetArenaForAllocation()); } -inline const ::google::protobuf::RepeatedPtrField& -ListRegistryItemsRequest::_internal_platforms() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.platforms_; +inline std::string* GetUserIDByEmailResponse::release_user_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.GetUserIDByEmailResponse.user_id) + return user_id_.Release(); } -inline ::google::protobuf::RepeatedPtrField* -ListRegistryItemsRequest::_internal_mutable_platforms() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.platforms_; +inline void GetUserIDByEmailResponse::set_allocated_user_id(std::string* user_id) { + if (user_id != nullptr) { + + } else { + + } + user_id_.SetAllocated(user_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (user_id_.IsDefault()) { + user_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetUserIDByEmailResponse.user_id) } -// repeated .viam.app.v1.RegistryItemStatus statuses = 5 [json_name = "statuses"]; -inline int ListRegistryItemsRequest::_internal_statuses_size() const { - return _internal_statuses().size(); -} -inline int ListRegistryItemsRequest::statuses_size() const { - return _internal_statuses_size(); +// ------------------------------------------------------------------- + +// ListOrganizationsByUserRequest + +// string user_id = 1 [json_name = "userId"]; +inline void ListOrganizationsByUserRequest::clear_user_id() { + user_id_.ClearToEmpty(); } -inline void ListRegistryItemsRequest::clear_statuses() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.statuses_.Clear(); +inline const std::string& ListOrganizationsByUserRequest::user_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ListOrganizationsByUserRequest.user_id) + return _internal_user_id(); } -inline ::viam::app::v1::RegistryItemStatus ListRegistryItemsRequest::statuses(int index) const { - // @@protoc_insertion_point(field_get:viam.app.v1.ListRegistryItemsRequest.statuses) - return static_cast<::viam::app::v1::RegistryItemStatus>(_internal_statuses().Get(index)); +template +inline PROTOBUF_ALWAYS_INLINE +void ListOrganizationsByUserRequest::set_user_id(ArgT0&& arg0, ArgT... args) { + + user_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.ListOrganizationsByUserRequest.user_id) } -inline void ListRegistryItemsRequest::set_statuses(int index, ::viam::app::v1::RegistryItemStatus value) { - _internal_mutable_statuses()->Set(index, value); - // @@protoc_insertion_point(field_set:viam.app.v1.ListRegistryItemsRequest.statuses) +inline std::string* ListOrganizationsByUserRequest::mutable_user_id() { + std::string* _s = _internal_mutable_user_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ListOrganizationsByUserRequest.user_id) + return _s; } -inline void ListRegistryItemsRequest::add_statuses(::viam::app::v1::RegistryItemStatus value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_statuses()->Add(value); - // @@protoc_insertion_point(field_add:viam.app.v1.ListRegistryItemsRequest.statuses) +inline const std::string& ListOrganizationsByUserRequest::_internal_user_id() const { + return user_id_.Get(); } -inline const ::google::protobuf::RepeatedField& ListRegistryItemsRequest::statuses() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:viam.app.v1.ListRegistryItemsRequest.statuses) - return _internal_statuses(); +inline void ListOrganizationsByUserRequest::_internal_set_user_id(const std::string& value) { + + user_id_.Set(value, GetArenaForAllocation()); } -inline ::google::protobuf::RepeatedField* ListRegistryItemsRequest::mutable_statuses() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ListRegistryItemsRequest.statuses) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_statuses(); +inline std::string* ListOrganizationsByUserRequest::_internal_mutable_user_id() { + + return user_id_.Mutable(GetArenaForAllocation()); } -inline const ::google::protobuf::RepeatedField& ListRegistryItemsRequest::_internal_statuses() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.statuses_; +inline std::string* ListOrganizationsByUserRequest::release_user_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.ListOrganizationsByUserRequest.user_id) + return user_id_.Release(); } -inline ::google::protobuf::RepeatedField* ListRegistryItemsRequest::_internal_mutable_statuses() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.statuses_; +inline void ListOrganizationsByUserRequest::set_allocated_user_id(std::string* user_id) { + if (user_id != nullptr) { + + } else { + + } + user_id_.SetAllocated(user_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (user_id_.IsDefault()) { + user_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ListOrganizationsByUserRequest.user_id) } -// optional string search_term = 6 [json_name = "searchTerm"]; -inline bool ListRegistryItemsRequest::has_search_term() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - return value; -} -inline void ListRegistryItemsRequest::clear_search_term() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.search_term_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000002u; +// ------------------------------------------------------------------- + +// OrgDetails + +// string org_id = 1 [json_name = "orgId"]; +inline void OrgDetails::clear_org_id() { + org_id_.ClearToEmpty(); } -inline const std::string& ListRegistryItemsRequest::search_term() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.ListRegistryItemsRequest.search_term) - return _internal_search_term(); +inline const std::string& OrgDetails::org_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.OrgDetails.org_id) + return _internal_org_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void ListRegistryItemsRequest::set_search_term(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.search_term_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.ListRegistryItemsRequest.search_term) +template +inline PROTOBUF_ALWAYS_INLINE +void OrgDetails::set_org_id(ArgT0&& arg0, ArgT... args) { + + org_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.OrgDetails.org_id) } -inline std::string* ListRegistryItemsRequest::mutable_search_term() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_search_term(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.ListRegistryItemsRequest.search_term) +inline std::string* OrgDetails::mutable_org_id() { + std::string* _s = _internal_mutable_org_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.OrgDetails.org_id) return _s; } -inline const std::string& ListRegistryItemsRequest::_internal_search_term() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.search_term_.Get(); +inline const std::string& OrgDetails::_internal_org_id() const { + return org_id_.Get(); } -inline void ListRegistryItemsRequest::_internal_set_search_term(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.search_term_.Set(value, GetArena()); +inline void OrgDetails::_internal_set_org_id(const std::string& value) { + + org_id_.Set(value, GetArenaForAllocation()); } -inline std::string* ListRegistryItemsRequest::_internal_mutable_search_term() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - return _impl_.search_term_.Mutable( GetArena()); +inline std::string* OrgDetails::_internal_mutable_org_id() { + + return org_id_.Mutable(GetArenaForAllocation()); } -inline std::string* ListRegistryItemsRequest::release_search_term() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.ListRegistryItemsRequest.search_term) - if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { - return nullptr; - } - _impl_._has_bits_[0] &= ~0x00000002u; - auto* released = _impl_.search_term_.Release(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.search_term_.Set("", GetArena()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return released; +inline std::string* OrgDetails::release_org_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.OrgDetails.org_id) + return org_id_.Release(); } -inline void ListRegistryItemsRequest::set_allocated_search_term(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; +inline void OrgDetails::set_allocated_org_id(std::string* org_id) { + if (org_id != nullptr) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - _impl_.search_term_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.search_term_.IsDefault()) { - _impl_.search_term_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ListRegistryItemsRequest.search_term) + org_id_.SetAllocated(org_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (org_id_.IsDefault()) { + org_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.OrgDetails.org_id) } -// optional string page_token = 7 [json_name = "pageToken"]; -inline bool ListRegistryItemsRequest::has_page_token() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; - return value; -} -inline void ListRegistryItemsRequest::clear_page_token() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.page_token_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000004u; +// string org_name = 2 [json_name = "orgName"]; +inline void OrgDetails::clear_org_name() { + org_name_.ClearToEmpty(); } -inline const std::string& ListRegistryItemsRequest::page_token() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.ListRegistryItemsRequest.page_token) - return _internal_page_token(); +inline const std::string& OrgDetails::org_name() const { + // @@protoc_insertion_point(field_get:viam.app.v1.OrgDetails.org_name) + return _internal_org_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void ListRegistryItemsRequest::set_page_token(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - _impl_.page_token_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.ListRegistryItemsRequest.page_token) +template +inline PROTOBUF_ALWAYS_INLINE +void OrgDetails::set_org_name(ArgT0&& arg0, ArgT... args) { + + org_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.OrgDetails.org_name) } -inline std::string* ListRegistryItemsRequest::mutable_page_token() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_page_token(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.ListRegistryItemsRequest.page_token) +inline std::string* OrgDetails::mutable_org_name() { + std::string* _s = _internal_mutable_org_name(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.OrgDetails.org_name) return _s; } -inline const std::string& ListRegistryItemsRequest::_internal_page_token() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.page_token_.Get(); +inline const std::string& OrgDetails::_internal_org_name() const { + return org_name_.Get(); } -inline void ListRegistryItemsRequest::_internal_set_page_token(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - _impl_.page_token_.Set(value, GetArena()); +inline void OrgDetails::_internal_set_org_name(const std::string& value) { + + org_name_.Set(value, GetArenaForAllocation()); } -inline std::string* ListRegistryItemsRequest::_internal_mutable_page_token() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - return _impl_.page_token_.Mutable( GetArena()); +inline std::string* OrgDetails::_internal_mutable_org_name() { + + return org_name_.Mutable(GetArenaForAllocation()); } -inline std::string* ListRegistryItemsRequest::release_page_token() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.ListRegistryItemsRequest.page_token) - if ((_impl_._has_bits_[0] & 0x00000004u) == 0) { - return nullptr; - } - _impl_._has_bits_[0] &= ~0x00000004u; - auto* released = _impl_.page_token_.Release(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.page_token_.Set("", GetArena()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return released; +inline std::string* OrgDetails::release_org_name() { + // @@protoc_insertion_point(field_release:viam.app.v1.OrgDetails.org_name) + return org_name_.Release(); } -inline void ListRegistryItemsRequest::set_allocated_page_token(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000004u; +inline void OrgDetails::set_allocated_org_name(std::string* org_name) { + if (org_name != nullptr) { + } else { - _impl_._has_bits_[0] &= ~0x00000004u; + } - _impl_.page_token_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.page_token_.IsDefault()) { - _impl_.page_token_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ListRegistryItemsRequest.page_token) + org_name_.SetAllocated(org_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (org_name_.IsDefault()) { + org_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.OrgDetails.org_name) } -// repeated string public_namespaces = 8 [json_name = "publicNamespaces"]; -inline int ListRegistryItemsRequest::_internal_public_namespaces_size() const { - return _internal_public_namespaces().size(); +// optional string org_cid = 3 [json_name = "orgCid"]; +inline bool OrgDetails::_internal_has_org_cid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; } -inline int ListRegistryItemsRequest::public_namespaces_size() const { - return _internal_public_namespaces_size(); +inline bool OrgDetails::has_org_cid() const { + return _internal_has_org_cid(); } -inline void ListRegistryItemsRequest::clear_public_namespaces() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.public_namespaces_.Clear(); +inline void OrgDetails::clear_org_cid() { + org_cid_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& OrgDetails::org_cid() const { + // @@protoc_insertion_point(field_get:viam.app.v1.OrgDetails.org_cid) + return _internal_org_cid(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void OrgDetails::set_org_cid(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + org_cid_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.OrgDetails.org_cid) } -inline std::string* ListRegistryItemsRequest::add_public_namespaces() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_public_namespaces()->Add(); - // @@protoc_insertion_point(field_add_mutable:viam.app.v1.ListRegistryItemsRequest.public_namespaces) +inline std::string* OrgDetails::mutable_org_cid() { + std::string* _s = _internal_mutable_org_cid(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.OrgDetails.org_cid) return _s; } -inline const std::string& ListRegistryItemsRequest::public_namespaces(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.ListRegistryItemsRequest.public_namespaces) - return _internal_public_namespaces().Get(index); +inline const std::string& OrgDetails::_internal_org_cid() const { + return org_cid_.Get(); } -inline std::string* ListRegistryItemsRequest::mutable_public_namespaces(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:viam.app.v1.ListRegistryItemsRequest.public_namespaces) - return _internal_mutable_public_namespaces()->Mutable(index); +inline void OrgDetails::_internal_set_org_cid(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + org_cid_.Set(value, GetArenaForAllocation()); } -inline void ListRegistryItemsRequest::set_public_namespaces(int index, const std::string& value) { - _internal_mutable_public_namespaces()->Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set:viam.app.v1.ListRegistryItemsRequest.public_namespaces) +inline std::string* OrgDetails::_internal_mutable_org_cid() { + _has_bits_[0] |= 0x00000001u; + return org_cid_.Mutable(GetArenaForAllocation()); } -inline void ListRegistryItemsRequest::set_public_namespaces(int index, std::string&& value) { - _internal_mutable_public_namespaces()->Mutable(index)->assign(std::move(value)); - // @@protoc_insertion_point(field_set:viam.app.v1.ListRegistryItemsRequest.public_namespaces) +inline std::string* OrgDetails::release_org_cid() { + // @@protoc_insertion_point(field_release:viam.app.v1.OrgDetails.org_cid) + if (!_internal_has_org_cid()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + auto* p = org_cid_.Release(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (org_cid_.IsDefault()) { + org_cid_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; } -inline void ListRegistryItemsRequest::set_public_namespaces(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_public_namespaces()->Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:viam.app.v1.ListRegistryItemsRequest.public_namespaces) +inline void OrgDetails::set_allocated_org_cid(std::string* org_cid) { + if (org_cid != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + org_cid_.SetAllocated(org_cid, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (org_cid_.IsDefault()) { + org_cid_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.OrgDetails.org_cid) } -inline void ListRegistryItemsRequest::set_public_namespaces(int index, const char* value, - std::size_t size) { - _internal_mutable_public_namespaces()->Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:viam.app.v1.ListRegistryItemsRequest.public_namespaces) + +// optional string public_namespace = 4 [json_name = "publicNamespace"]; +inline bool OrgDetails::_internal_has_public_namespace() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; } -inline void ListRegistryItemsRequest::set_public_namespaces(int index, absl::string_view value) { - _internal_mutable_public_namespaces()->Mutable(index)->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_set_string_piece:viam.app.v1.ListRegistryItemsRequest.public_namespaces) +inline bool OrgDetails::has_public_namespace() const { + return _internal_has_public_namespace(); } -inline void ListRegistryItemsRequest::add_public_namespaces(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_public_namespaces()->Add()->assign(value); - // @@protoc_insertion_point(field_add:viam.app.v1.ListRegistryItemsRequest.public_namespaces) +inline void OrgDetails::clear_public_namespace() { + public_namespace_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000002u; } -inline void ListRegistryItemsRequest::add_public_namespaces(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_public_namespaces()->Add(std::move(value)); - // @@protoc_insertion_point(field_add:viam.app.v1.ListRegistryItemsRequest.public_namespaces) +inline const std::string& OrgDetails::public_namespace() const { + // @@protoc_insertion_point(field_get:viam.app.v1.OrgDetails.public_namespace) + return _internal_public_namespace(); } -inline void ListRegistryItemsRequest::add_public_namespaces(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_public_namespaces()->Add()->assign(value); - // @@protoc_insertion_point(field_add_char:viam.app.v1.ListRegistryItemsRequest.public_namespaces) +template +inline PROTOBUF_ALWAYS_INLINE +void OrgDetails::set_public_namespace(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000002u; + public_namespace_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.OrgDetails.public_namespace) } -inline void ListRegistryItemsRequest::add_public_namespaces(const char* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_public_namespaces()->Add()->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:viam.app.v1.ListRegistryItemsRequest.public_namespaces) +inline std::string* OrgDetails::mutable_public_namespace() { + std::string* _s = _internal_mutable_public_namespace(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.OrgDetails.public_namespace) + return _s; } -inline void ListRegistryItemsRequest::add_public_namespaces(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_public_namespaces()->Add()->assign(value.data(), value.size()); - // @@protoc_insertion_point(field_add_string_piece:viam.app.v1.ListRegistryItemsRequest.public_namespaces) +inline const std::string& OrgDetails::_internal_public_namespace() const { + return public_namespace_.Get(); } -inline const ::google::protobuf::RepeatedPtrField& -ListRegistryItemsRequest::public_namespaces() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:viam.app.v1.ListRegistryItemsRequest.public_namespaces) - return _internal_public_namespaces(); +inline void OrgDetails::_internal_set_public_namespace(const std::string& value) { + _has_bits_[0] |= 0x00000002u; + public_namespace_.Set(value, GetArenaForAllocation()); } -inline ::google::protobuf::RepeatedPtrField* -ListRegistryItemsRequest::mutable_public_namespaces() ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ListRegistryItemsRequest.public_namespaces) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_public_namespaces(); +inline std::string* OrgDetails::_internal_mutable_public_namespace() { + _has_bits_[0] |= 0x00000002u; + return public_namespace_.Mutable(GetArenaForAllocation()); } -inline const ::google::protobuf::RepeatedPtrField& -ListRegistryItemsRequest::_internal_public_namespaces() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.public_namespaces_; +inline std::string* OrgDetails::release_public_namespace() { + // @@protoc_insertion_point(field_release:viam.app.v1.OrgDetails.public_namespace) + if (!_internal_has_public_namespace()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000002u; + auto* p = public_namespace_.Release(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (public_namespace_.IsDefault()) { + public_namespace_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; } -inline ::google::protobuf::RepeatedPtrField* -ListRegistryItemsRequest::_internal_mutable_public_namespaces() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.public_namespaces_; +inline void OrgDetails::set_allocated_public_namespace(std::string* public_namespace) { + if (public_namespace != nullptr) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + public_namespace_.SetAllocated(public_namespace, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (public_namespace_.IsDefault()) { + public_namespace_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.OrgDetails.public_namespace) } // ------------------------------------------------------------------- -// ListRegistryItemsResponse +// ListOrganizationsByUserResponse -// repeated .viam.app.v1.RegistryItem items = 1 [json_name = "items"]; -inline int ListRegistryItemsResponse::_internal_items_size() const { - return _internal_items().size(); +// repeated .viam.app.v1.OrgDetails orgs = 1 [json_name = "orgs"]; +inline int ListOrganizationsByUserResponse::_internal_orgs_size() const { + return orgs_.size(); } -inline int ListRegistryItemsResponse::items_size() const { - return _internal_items_size(); +inline int ListOrganizationsByUserResponse::orgs_size() const { + return _internal_orgs_size(); } -inline void ListRegistryItemsResponse::clear_items() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.items_.Clear(); +inline void ListOrganizationsByUserResponse::clear_orgs() { + orgs_.Clear(); } -inline ::viam::app::v1::RegistryItem* ListRegistryItemsResponse::mutable_items(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:viam.app.v1.ListRegistryItemsResponse.items) - return _internal_mutable_items()->Mutable(index); +inline ::viam::app::v1::OrgDetails* ListOrganizationsByUserResponse::mutable_orgs(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.ListOrganizationsByUserResponse.orgs) + return orgs_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::RegistryItem>* ListRegistryItemsResponse::mutable_items() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ListRegistryItemsResponse.items) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_items(); +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::OrgDetails >* +ListOrganizationsByUserResponse::mutable_orgs() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ListOrganizationsByUserResponse.orgs) + return &orgs_; } -inline const ::viam::app::v1::RegistryItem& ListRegistryItemsResponse::items(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.ListRegistryItemsResponse.items) - return _internal_items().Get(index); +inline const ::viam::app::v1::OrgDetails& ListOrganizationsByUserResponse::_internal_orgs(int index) const { + return orgs_.Get(index); } -inline ::viam::app::v1::RegistryItem* ListRegistryItemsResponse::add_items() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::RegistryItem* _add = _internal_mutable_items()->Add(); - // @@protoc_insertion_point(field_add:viam.app.v1.ListRegistryItemsResponse.items) - return _add; +inline const ::viam::app::v1::OrgDetails& ListOrganizationsByUserResponse::orgs(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.ListOrganizationsByUserResponse.orgs) + return _internal_orgs(index); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::RegistryItem>& ListRegistryItemsResponse::items() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:viam.app.v1.ListRegistryItemsResponse.items) - return _internal_items(); +inline ::viam::app::v1::OrgDetails* ListOrganizationsByUserResponse::_internal_add_orgs() { + return orgs_.Add(); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::RegistryItem>& -ListRegistryItemsResponse::_internal_items() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.items_; +inline ::viam::app::v1::OrgDetails* ListOrganizationsByUserResponse::add_orgs() { + ::viam::app::v1::OrgDetails* _add = _internal_add_orgs(); + // @@protoc_insertion_point(field_add:viam.app.v1.ListOrganizationsByUserResponse.orgs) + return _add; } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::RegistryItem>* -ListRegistryItemsResponse::_internal_mutable_items() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.items_; +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::OrgDetails >& +ListOrganizationsByUserResponse::orgs() const { + // @@protoc_insertion_point(field_list:viam.app.v1.ListOrganizationsByUserResponse.orgs) + return orgs_; } // ------------------------------------------------------------------- -// DeleteRegistryItemRequest +// SearchOrganizationsRequest -// string item_id = 1 [json_name = "itemId"]; -inline void DeleteRegistryItemRequest::clear_item_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.item_id_.ClearToEmpty(); +// optional string org_id = 1 [json_name = "orgId"]; +inline bool SearchOrganizationsRequest::_internal_has_org_id() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; } -inline const std::string& DeleteRegistryItemRequest::item_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.DeleteRegistryItemRequest.item_id) - return _internal_item_id(); +inline bool SearchOrganizationsRequest::has_org_id() const { + return _internal_has_org_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void DeleteRegistryItemRequest::set_item_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.item_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.DeleteRegistryItemRequest.item_id) +inline void SearchOrganizationsRequest::clear_org_id() { + org_id_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; } -inline std::string* DeleteRegistryItemRequest::mutable_item_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_item_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.DeleteRegistryItemRequest.item_id) - return _s; +inline const std::string& SearchOrganizationsRequest::org_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.SearchOrganizationsRequest.org_id) + return _internal_org_id(); } -inline const std::string& DeleteRegistryItemRequest::_internal_item_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.item_id_.Get(); +template +inline PROTOBUF_ALWAYS_INLINE +void SearchOrganizationsRequest::set_org_id(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + org_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.SearchOrganizationsRequest.org_id) } -inline void DeleteRegistryItemRequest::_internal_set_item_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.item_id_.Set(value, GetArena()); +inline std::string* SearchOrganizationsRequest::mutable_org_id() { + std::string* _s = _internal_mutable_org_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.SearchOrganizationsRequest.org_id) + return _s; } -inline std::string* DeleteRegistryItemRequest::_internal_mutable_item_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.item_id_.Mutable( GetArena()); +inline const std::string& SearchOrganizationsRequest::_internal_org_id() const { + return org_id_.Get(); } -inline std::string* DeleteRegistryItemRequest::release_item_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.DeleteRegistryItemRequest.item_id) - return _impl_.item_id_.Release(); -} -inline void DeleteRegistryItemRequest::set_allocated_item_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.item_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.item_id_.IsDefault()) { - _impl_.item_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.DeleteRegistryItemRequest.item_id) +inline void SearchOrganizationsRequest::_internal_set_org_id(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + org_id_.Set(value, GetArenaForAllocation()); } - -// ------------------------------------------------------------------- - -// DeleteRegistryItemResponse - -// ------------------------------------------------------------------- - -// TransferRegistryItemRequest - -// string item_id = 1 [json_name = "itemId"]; -inline void TransferRegistryItemRequest::clear_item_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.item_id_.ClearToEmpty(); +inline std::string* SearchOrganizationsRequest::_internal_mutable_org_id() { + _has_bits_[0] |= 0x00000001u; + return org_id_.Mutable(GetArenaForAllocation()); } -inline const std::string& TransferRegistryItemRequest::item_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.TransferRegistryItemRequest.item_id) - return _internal_item_id(); +inline std::string* SearchOrganizationsRequest::release_org_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.SearchOrganizationsRequest.org_id) + if (!_internal_has_org_id()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + auto* p = org_id_.Release(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (org_id_.IsDefault()) { + org_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; } -template -inline PROTOBUF_ALWAYS_INLINE void TransferRegistryItemRequest::set_item_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.item_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.TransferRegistryItemRequest.item_id) +inline void SearchOrganizationsRequest::set_allocated_org_id(std::string* org_id) { + if (org_id != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + org_id_.SetAllocated(org_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (org_id_.IsDefault()) { + org_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.SearchOrganizationsRequest.org_id) } -inline std::string* TransferRegistryItemRequest::mutable_item_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_item_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.TransferRegistryItemRequest.item_id) - return _s; + +// optional string org_name = 2 [json_name = "orgName"]; +inline bool SearchOrganizationsRequest::_internal_has_org_name() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; } -inline const std::string& TransferRegistryItemRequest::_internal_item_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.item_id_.Get(); +inline bool SearchOrganizationsRequest::has_org_name() const { + return _internal_has_org_name(); } -inline void TransferRegistryItemRequest::_internal_set_item_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.item_id_.Set(value, GetArena()); +inline void SearchOrganizationsRequest::clear_org_name() { + org_name_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000002u; } -inline std::string* TransferRegistryItemRequest::_internal_mutable_item_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.item_id_.Mutable( GetArena()); +inline const std::string& SearchOrganizationsRequest::org_name() const { + // @@protoc_insertion_point(field_get:viam.app.v1.SearchOrganizationsRequest.org_name) + return _internal_org_name(); } -inline std::string* TransferRegistryItemRequest::release_item_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.TransferRegistryItemRequest.item_id) - return _impl_.item_id_.Release(); -} -inline void TransferRegistryItemRequest::set_allocated_item_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.item_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.item_id_.IsDefault()) { - _impl_.item_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.TransferRegistryItemRequest.item_id) +template +inline PROTOBUF_ALWAYS_INLINE +void SearchOrganizationsRequest::set_org_name(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000002u; + org_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.SearchOrganizationsRequest.org_name) } - -// string new_public_namespace = 2 [json_name = "newPublicNamespace"]; -inline void TransferRegistryItemRequest::clear_new_public_namespace() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.new_public_namespace_.ClearToEmpty(); +inline std::string* SearchOrganizationsRequest::mutable_org_name() { + std::string* _s = _internal_mutable_org_name(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.SearchOrganizationsRequest.org_name) + return _s; } -inline const std::string& TransferRegistryItemRequest::new_public_namespace() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.TransferRegistryItemRequest.new_public_namespace) - return _internal_new_public_namespace(); +inline const std::string& SearchOrganizationsRequest::_internal_org_name() const { + return org_name_.Get(); } -template -inline PROTOBUF_ALWAYS_INLINE void TransferRegistryItemRequest::set_new_public_namespace(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.new_public_namespace_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.TransferRegistryItemRequest.new_public_namespace) +inline void SearchOrganizationsRequest::_internal_set_org_name(const std::string& value) { + _has_bits_[0] |= 0x00000002u; + org_name_.Set(value, GetArenaForAllocation()); } -inline std::string* TransferRegistryItemRequest::mutable_new_public_namespace() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_new_public_namespace(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.TransferRegistryItemRequest.new_public_namespace) - return _s; +inline std::string* SearchOrganizationsRequest::_internal_mutable_org_name() { + _has_bits_[0] |= 0x00000002u; + return org_name_.Mutable(GetArenaForAllocation()); } -inline const std::string& TransferRegistryItemRequest::_internal_new_public_namespace() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.new_public_namespace_.Get(); +inline std::string* SearchOrganizationsRequest::release_org_name() { + // @@protoc_insertion_point(field_release:viam.app.v1.SearchOrganizationsRequest.org_name) + if (!_internal_has_org_name()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000002u; + auto* p = org_name_.Release(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (org_name_.IsDefault()) { + org_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; } -inline void TransferRegistryItemRequest::_internal_set_new_public_namespace(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.new_public_namespace_.Set(value, GetArena()); +inline void SearchOrganizationsRequest::set_allocated_org_name(std::string* org_name) { + if (org_name != nullptr) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + org_name_.SetAllocated(org_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (org_name_.IsDefault()) { + org_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.SearchOrganizationsRequest.org_name) } -inline std::string* TransferRegistryItemRequest::_internal_mutable_new_public_namespace() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.new_public_namespace_.Mutable( GetArena()); + +// optional string cid = 3 [json_name = "cid"]; +inline bool SearchOrganizationsRequest::_internal_has_cid() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; } -inline std::string* TransferRegistryItemRequest::release_new_public_namespace() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.TransferRegistryItemRequest.new_public_namespace) - return _impl_.new_public_namespace_.Release(); -} -inline void TransferRegistryItemRequest::set_allocated_new_public_namespace(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.new_public_namespace_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.new_public_namespace_.IsDefault()) { - _impl_.new_public_namespace_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.TransferRegistryItemRequest.new_public_namespace) +inline bool SearchOrganizationsRequest::has_cid() const { + return _internal_has_cid(); } - -// ------------------------------------------------------------------- - -// TransferRegistryItemResponse - -// ------------------------------------------------------------------- - -// CreateModuleRequest - -// string organization_id = 1 [json_name = "organizationId"]; -inline void CreateModuleRequest::clear_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.ClearToEmpty(); +inline void SearchOrganizationsRequest::clear_cid() { + cid_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000004u; } -inline const std::string& CreateModuleRequest::organization_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.CreateModuleRequest.organization_id) - return _internal_organization_id(); +inline const std::string& SearchOrganizationsRequest::cid() const { + // @@protoc_insertion_point(field_get:viam.app.v1.SearchOrganizationsRequest.cid) + return _internal_cid(); } -template -inline PROTOBUF_ALWAYS_INLINE void CreateModuleRequest::set_organization_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.CreateModuleRequest.organization_id) +template +inline PROTOBUF_ALWAYS_INLINE +void SearchOrganizationsRequest::set_cid(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000004u; + cid_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.SearchOrganizationsRequest.cid) } -inline std::string* CreateModuleRequest::mutable_organization_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_organization_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateModuleRequest.organization_id) +inline std::string* SearchOrganizationsRequest::mutable_cid() { + std::string* _s = _internal_mutable_cid(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.SearchOrganizationsRequest.cid) return _s; } -inline const std::string& CreateModuleRequest::_internal_organization_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.organization_id_.Get(); +inline const std::string& SearchOrganizationsRequest::_internal_cid() const { + return cid_.Get(); } -inline void CreateModuleRequest::_internal_set_organization_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(value, GetArena()); +inline void SearchOrganizationsRequest::_internal_set_cid(const std::string& value) { + _has_bits_[0] |= 0x00000004u; + cid_.Set(value, GetArenaForAllocation()); } -inline std::string* CreateModuleRequest::_internal_mutable_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.organization_id_.Mutable( GetArena()); +inline std::string* SearchOrganizationsRequest::_internal_mutable_cid() { + _has_bits_[0] |= 0x00000004u; + return cid_.Mutable(GetArenaForAllocation()); } -inline std::string* CreateModuleRequest::release_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.CreateModuleRequest.organization_id) - return _impl_.organization_id_.Release(); -} -inline void CreateModuleRequest::set_allocated_organization_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.organization_id_.IsDefault()) { - _impl_.organization_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateModuleRequest.organization_id) +inline std::string* SearchOrganizationsRequest::release_cid() { + // @@protoc_insertion_point(field_release:viam.app.v1.SearchOrganizationsRequest.cid) + if (!_internal_has_cid()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000004u; + auto* p = cid_.Release(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (cid_.IsDefault()) { + cid_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; +} +inline void SearchOrganizationsRequest::set_allocated_cid(std::string* cid) { + if (cid != nullptr) { + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + cid_.SetAllocated(cid, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (cid_.IsDefault()) { + cid_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.SearchOrganizationsRequest.cid) } -// string name = 2 [json_name = "name"]; -inline void CreateModuleRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); +// optional string public_namespace = 4 [json_name = "publicNamespace"]; +inline bool SearchOrganizationsRequest::_internal_has_public_namespace() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; } -inline const std::string& CreateModuleRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.CreateModuleRequest.name) - return _internal_name(); +inline bool SearchOrganizationsRequest::has_public_namespace() const { + return _internal_has_public_namespace(); } -template -inline PROTOBUF_ALWAYS_INLINE void CreateModuleRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.CreateModuleRequest.name) +inline void SearchOrganizationsRequest::clear_public_namespace() { + public_namespace_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000008u; } -inline std::string* CreateModuleRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateModuleRequest.name) +inline const std::string& SearchOrganizationsRequest::public_namespace() const { + // @@protoc_insertion_point(field_get:viam.app.v1.SearchOrganizationsRequest.public_namespace) + return _internal_public_namespace(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void SearchOrganizationsRequest::set_public_namespace(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000008u; + public_namespace_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.SearchOrganizationsRequest.public_namespace) +} +inline std::string* SearchOrganizationsRequest::mutable_public_namespace() { + std::string* _s = _internal_mutable_public_namespace(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.SearchOrganizationsRequest.public_namespace) return _s; } -inline const std::string& CreateModuleRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); +inline const std::string& SearchOrganizationsRequest::_internal_public_namespace() const { + return public_namespace_.Get(); } -inline void CreateModuleRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); +inline void SearchOrganizationsRequest::_internal_set_public_namespace(const std::string& value) { + _has_bits_[0] |= 0x00000008u; + public_namespace_.Set(value, GetArenaForAllocation()); } -inline std::string* CreateModuleRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); +inline std::string* SearchOrganizationsRequest::_internal_mutable_public_namespace() { + _has_bits_[0] |= 0x00000008u; + return public_namespace_.Mutable(GetArenaForAllocation()); } -inline std::string* CreateModuleRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.CreateModuleRequest.name) - return _impl_.name_.Release(); -} -inline void CreateModuleRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateModuleRequest.name) +inline std::string* SearchOrganizationsRequest::release_public_namespace() { + // @@protoc_insertion_point(field_release:viam.app.v1.SearchOrganizationsRequest.public_namespace) + if (!_internal_has_public_namespace()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000008u; + auto* p = public_namespace_.Release(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (public_namespace_.IsDefault()) { + public_namespace_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; +} +inline void SearchOrganizationsRequest::set_allocated_public_namespace(std::string* public_namespace) { + if (public_namespace != nullptr) { + _has_bits_[0] |= 0x00000008u; + } else { + _has_bits_[0] &= ~0x00000008u; + } + public_namespace_.SetAllocated(public_namespace, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (public_namespace_.IsDefault()) { + public_namespace_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.SearchOrganizationsRequest.public_namespace) } // ------------------------------------------------------------------- -// CreateModuleResponse +// SearchOrganizationsResponse -// string module_id = 1 [json_name = "moduleId"]; -inline void CreateModuleResponse::clear_module_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.module_id_.ClearToEmpty(); -} -inline const std::string& CreateModuleResponse::module_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.CreateModuleResponse.module_id) - return _internal_module_id(); -} -template -inline PROTOBUF_ALWAYS_INLINE void CreateModuleResponse::set_module_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.module_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.CreateModuleResponse.module_id) -} -inline std::string* CreateModuleResponse::mutable_module_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_module_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateModuleResponse.module_id) - return _s; -} -inline const std::string& CreateModuleResponse::_internal_module_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.module_id_.Get(); -} -inline void CreateModuleResponse::_internal_set_module_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.module_id_.Set(value, GetArena()); +// repeated .viam.app.v1.OrgDetails organizations = 1 [json_name = "organizations"]; +inline int SearchOrganizationsResponse::_internal_organizations_size() const { + return organizations_.size(); } -inline std::string* CreateModuleResponse::_internal_mutable_module_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.module_id_.Mutable( GetArena()); -} -inline std::string* CreateModuleResponse::release_module_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.CreateModuleResponse.module_id) - return _impl_.module_id_.Release(); -} -inline void CreateModuleResponse::set_allocated_module_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.module_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.module_id_.IsDefault()) { - _impl_.module_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateModuleResponse.module_id) +inline int SearchOrganizationsResponse::organizations_size() const { + return _internal_organizations_size(); } - -// string url = 2 [json_name = "url"]; -inline void CreateModuleResponse::clear_url() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.url_.ClearToEmpty(); +inline void SearchOrganizationsResponse::clear_organizations() { + organizations_.Clear(); } -inline const std::string& CreateModuleResponse::url() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.CreateModuleResponse.url) - return _internal_url(); +inline ::viam::app::v1::OrgDetails* SearchOrganizationsResponse::mutable_organizations(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.SearchOrganizationsResponse.organizations) + return organizations_.Mutable(index); } -template -inline PROTOBUF_ALWAYS_INLINE void CreateModuleResponse::set_url(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.url_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.CreateModuleResponse.url) +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::OrgDetails >* +SearchOrganizationsResponse::mutable_organizations() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.SearchOrganizationsResponse.organizations) + return &organizations_; } -inline std::string* CreateModuleResponse::mutable_url() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_url(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateModuleResponse.url) - return _s; +inline const ::viam::app::v1::OrgDetails& SearchOrganizationsResponse::_internal_organizations(int index) const { + return organizations_.Get(index); } -inline const std::string& CreateModuleResponse::_internal_url() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.url_.Get(); +inline const ::viam::app::v1::OrgDetails& SearchOrganizationsResponse::organizations(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.SearchOrganizationsResponse.organizations) + return _internal_organizations(index); } -inline void CreateModuleResponse::_internal_set_url(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.url_.Set(value, GetArena()); +inline ::viam::app::v1::OrgDetails* SearchOrganizationsResponse::_internal_add_organizations() { + return organizations_.Add(); } -inline std::string* CreateModuleResponse::_internal_mutable_url() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.url_.Mutable( GetArena()); +inline ::viam::app::v1::OrgDetails* SearchOrganizationsResponse::add_organizations() { + ::viam::app::v1::OrgDetails* _add = _internal_add_organizations(); + // @@protoc_insertion_point(field_add:viam.app.v1.SearchOrganizationsResponse.organizations) + return _add; } -inline std::string* CreateModuleResponse::release_url() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.CreateModuleResponse.url) - return _impl_.url_.Release(); -} -inline void CreateModuleResponse::set_allocated_url(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.url_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.url_.IsDefault()) { - _impl_.url_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateModuleResponse.url) +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::OrgDetails >& +SearchOrganizationsResponse::organizations() const { + // @@protoc_insertion_point(field_list:viam.app.v1.SearchOrganizationsResponse.organizations) + return organizations_; } // ------------------------------------------------------------------- -// UpdateModuleRequest +// CreateKeyRequest -// string module_id = 1 [json_name = "moduleId"]; -inline void UpdateModuleRequest::clear_module_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.module_id_.ClearToEmpty(); -} -inline const std::string& UpdateModuleRequest::module_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.UpdateModuleRequest.module_id) - return _internal_module_id(); -} -template -inline PROTOBUF_ALWAYS_INLINE void UpdateModuleRequest::set_module_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.module_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.UpdateModuleRequest.module_id) -} -inline std::string* UpdateModuleRequest::mutable_module_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_module_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateModuleRequest.module_id) - return _s; +// repeated .viam.app.v1.Authorization authorizations = 1 [json_name = "authorizations"]; +inline int CreateKeyRequest::_internal_authorizations_size() const { + return authorizations_.size(); } -inline const std::string& UpdateModuleRequest::_internal_module_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.module_id_.Get(); +inline int CreateKeyRequest::authorizations_size() const { + return _internal_authorizations_size(); } -inline void UpdateModuleRequest::_internal_set_module_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.module_id_.Set(value, GetArena()); +inline void CreateKeyRequest::clear_authorizations() { + authorizations_.Clear(); } -inline std::string* UpdateModuleRequest::_internal_mutable_module_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.module_id_.Mutable( GetArena()); +inline ::viam::app::v1::Authorization* CreateKeyRequest::mutable_authorizations(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateKeyRequest.authorizations) + return authorizations_.Mutable(index); } -inline std::string* UpdateModuleRequest::release_module_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.UpdateModuleRequest.module_id) - return _impl_.module_id_.Release(); -} -inline void UpdateModuleRequest::set_allocated_module_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.module_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.module_id_.IsDefault()) { - _impl_.module_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateModuleRequest.module_id) +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Authorization >* +CreateKeyRequest::mutable_authorizations() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.CreateKeyRequest.authorizations) + return &authorizations_; } - -// .viam.app.v1.Visibility visibility = 2 [json_name = "visibility"]; -inline void UpdateModuleRequest::clear_visibility() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.visibility_ = 0; +inline const ::viam::app::v1::Authorization& CreateKeyRequest::_internal_authorizations(int index) const { + return authorizations_.Get(index); } -inline ::viam::app::v1::Visibility UpdateModuleRequest::visibility() const { - // @@protoc_insertion_point(field_get:viam.app.v1.UpdateModuleRequest.visibility) - return _internal_visibility(); +inline const ::viam::app::v1::Authorization& CreateKeyRequest::authorizations(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.CreateKeyRequest.authorizations) + return _internal_authorizations(index); } -inline void UpdateModuleRequest::set_visibility(::viam::app::v1::Visibility value) { - _internal_set_visibility(value); - // @@protoc_insertion_point(field_set:viam.app.v1.UpdateModuleRequest.visibility) +inline ::viam::app::v1::Authorization* CreateKeyRequest::_internal_add_authorizations() { + return authorizations_.Add(); } -inline ::viam::app::v1::Visibility UpdateModuleRequest::_internal_visibility() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::viam::app::v1::Visibility>(_impl_.visibility_); +inline ::viam::app::v1::Authorization* CreateKeyRequest::add_authorizations() { + ::viam::app::v1::Authorization* _add = _internal_add_authorizations(); + // @@protoc_insertion_point(field_add:viam.app.v1.CreateKeyRequest.authorizations) + return _add; } -inline void UpdateModuleRequest::_internal_set_visibility(::viam::app::v1::Visibility value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.visibility_ = value; +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::Authorization >& +CreateKeyRequest::authorizations() const { + // @@protoc_insertion_point(field_list:viam.app.v1.CreateKeyRequest.authorizations) + return authorizations_; } -// string url = 3 [json_name = "url"]; -inline void UpdateModuleRequest::clear_url() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.url_.ClearToEmpty(); +// string name = 2 [json_name = "name"]; +inline void CreateKeyRequest::clear_name() { + name_.ClearToEmpty(); } -inline const std::string& UpdateModuleRequest::url() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.UpdateModuleRequest.url) - return _internal_url(); +inline const std::string& CreateKeyRequest::name() const { + // @@protoc_insertion_point(field_get:viam.app.v1.CreateKeyRequest.name) + return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void UpdateModuleRequest::set_url(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.url_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.UpdateModuleRequest.url) +template +inline PROTOBUF_ALWAYS_INLINE +void CreateKeyRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.CreateKeyRequest.name) } -inline std::string* UpdateModuleRequest::mutable_url() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_url(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateModuleRequest.url) +inline std::string* CreateKeyRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateKeyRequest.name) return _s; } -inline const std::string& UpdateModuleRequest::_internal_url() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.url_.Get(); +inline const std::string& CreateKeyRequest::_internal_name() const { + return name_.Get(); } -inline void UpdateModuleRequest::_internal_set_url(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.url_.Set(value, GetArena()); +inline void CreateKeyRequest::_internal_set_name(const std::string& value) { + + name_.Set(value, GetArenaForAllocation()); } -inline std::string* UpdateModuleRequest::_internal_mutable_url() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.url_.Mutable( GetArena()); +inline std::string* CreateKeyRequest::_internal_mutable_name() { + + return name_.Mutable(GetArenaForAllocation()); } -inline std::string* UpdateModuleRequest::release_url() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.UpdateModuleRequest.url) - return _impl_.url_.Release(); -} -inline void UpdateModuleRequest::set_allocated_url(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.url_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.url_.IsDefault()) { - _impl_.url_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateModuleRequest.url) +inline std::string* CreateKeyRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.app.v1.CreateKeyRequest.name) + return name_.Release(); +} +inline void CreateKeyRequest::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.app.v1.CreateKeyRequest.name) } -// string description = 4 [json_name = "description"]; -inline void UpdateModuleRequest::clear_description() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.description_.ClearToEmpty(); +// ------------------------------------------------------------------- + +// CreateKeyResponse + +// string key = 1 [json_name = "key"]; +inline void CreateKeyResponse::clear_key() { + key_.ClearToEmpty(); } -inline const std::string& UpdateModuleRequest::description() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.UpdateModuleRequest.description) - return _internal_description(); +inline const std::string& CreateKeyResponse::key() const { + // @@protoc_insertion_point(field_get:viam.app.v1.CreateKeyResponse.key) + return _internal_key(); } -template -inline PROTOBUF_ALWAYS_INLINE void UpdateModuleRequest::set_description(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.description_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.UpdateModuleRequest.description) +template +inline PROTOBUF_ALWAYS_INLINE +void CreateKeyResponse::set_key(ArgT0&& arg0, ArgT... args) { + + key_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.CreateKeyResponse.key) } -inline std::string* UpdateModuleRequest::mutable_description() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_description(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateModuleRequest.description) +inline std::string* CreateKeyResponse::mutable_key() { + std::string* _s = _internal_mutable_key(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateKeyResponse.key) return _s; } -inline const std::string& UpdateModuleRequest::_internal_description() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.description_.Get(); +inline const std::string& CreateKeyResponse::_internal_key() const { + return key_.Get(); } -inline void UpdateModuleRequest::_internal_set_description(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.description_.Set(value, GetArena()); +inline void CreateKeyResponse::_internal_set_key(const std::string& value) { + + key_.Set(value, GetArenaForAllocation()); } -inline std::string* UpdateModuleRequest::_internal_mutable_description() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.description_.Mutable( GetArena()); +inline std::string* CreateKeyResponse::_internal_mutable_key() { + + return key_.Mutable(GetArenaForAllocation()); } -inline std::string* UpdateModuleRequest::release_description() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.UpdateModuleRequest.description) - return _impl_.description_.Release(); -} -inline void UpdateModuleRequest::set_allocated_description(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.description_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.description_.IsDefault()) { - _impl_.description_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateModuleRequest.description) +inline std::string* CreateKeyResponse::release_key() { + // @@protoc_insertion_point(field_release:viam.app.v1.CreateKeyResponse.key) + return key_.Release(); } - -// repeated .viam.app.v1.Model models = 5 [json_name = "models"]; -inline int UpdateModuleRequest::_internal_models_size() const { - return _internal_models().size(); +inline void CreateKeyResponse::set_allocated_key(std::string* key) { + if (key != nullptr) { + + } else { + + } + key_.SetAllocated(key, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (key_.IsDefault()) { + key_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateKeyResponse.key) } -inline int UpdateModuleRequest::models_size() const { - return _internal_models_size(); + +// string id = 2 [json_name = "id"]; +inline void CreateKeyResponse::clear_id() { + id_.ClearToEmpty(); } -inline void UpdateModuleRequest::clear_models() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.models_.Clear(); +inline const std::string& CreateKeyResponse::id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.CreateKeyResponse.id) + return _internal_id(); } -inline ::viam::app::v1::Model* UpdateModuleRequest::mutable_models(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateModuleRequest.models) - return _internal_mutable_models()->Mutable(index); +template +inline PROTOBUF_ALWAYS_INLINE +void CreateKeyResponse::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.CreateKeyResponse.id) } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::Model>* UpdateModuleRequest::mutable_models() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.UpdateModuleRequest.models) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_models(); +inline std::string* CreateKeyResponse::mutable_id() { + std::string* _s = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateKeyResponse.id) + return _s; } -inline const ::viam::app::v1::Model& UpdateModuleRequest::models(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.UpdateModuleRequest.models) - return _internal_models().Get(index); +inline const std::string& CreateKeyResponse::_internal_id() const { + return id_.Get(); } -inline ::viam::app::v1::Model* UpdateModuleRequest::add_models() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::Model* _add = _internal_mutable_models()->Add(); - // @@protoc_insertion_point(field_add:viam.app.v1.UpdateModuleRequest.models) - return _add; +inline void CreateKeyResponse::_internal_set_id(const std::string& value) { + + id_.Set(value, GetArenaForAllocation()); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Model>& UpdateModuleRequest::models() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:viam.app.v1.UpdateModuleRequest.models) - return _internal_models(); +inline std::string* CreateKeyResponse::_internal_mutable_id() { + + return id_.Mutable(GetArenaForAllocation()); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Model>& -UpdateModuleRequest::_internal_models() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.models_; +inline std::string* CreateKeyResponse::release_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.CreateKeyResponse.id) + return id_.Release(); } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::Model>* -UpdateModuleRequest::_internal_mutable_models() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.models_; +inline void CreateKeyResponse::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateKeyResponse.id) } -// string entrypoint = 6 [json_name = "entrypoint"]; -inline void UpdateModuleRequest::clear_entrypoint() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.entrypoint_.ClearToEmpty(); +// ------------------------------------------------------------------- + +// DeleteKeyRequest + +// string id = 1 [json_name = "id"]; +inline void DeleteKeyRequest::clear_id() { + id_.ClearToEmpty(); } -inline const std::string& UpdateModuleRequest::entrypoint() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.UpdateModuleRequest.entrypoint) - return _internal_entrypoint(); +inline const std::string& DeleteKeyRequest::id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.DeleteKeyRequest.id) + return _internal_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void UpdateModuleRequest::set_entrypoint(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.entrypoint_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.UpdateModuleRequest.entrypoint) +template +inline PROTOBUF_ALWAYS_INLINE +void DeleteKeyRequest::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.DeleteKeyRequest.id) } -inline std::string* UpdateModuleRequest::mutable_entrypoint() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_entrypoint(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateModuleRequest.entrypoint) +inline std::string* DeleteKeyRequest::mutable_id() { + std::string* _s = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.DeleteKeyRequest.id) return _s; } -inline const std::string& UpdateModuleRequest::_internal_entrypoint() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.entrypoint_.Get(); +inline const std::string& DeleteKeyRequest::_internal_id() const { + return id_.Get(); } -inline void UpdateModuleRequest::_internal_set_entrypoint(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.entrypoint_.Set(value, GetArena()); +inline void DeleteKeyRequest::_internal_set_id(const std::string& value) { + + id_.Set(value, GetArenaForAllocation()); } -inline std::string* UpdateModuleRequest::_internal_mutable_entrypoint() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.entrypoint_.Mutable( GetArena()); +inline std::string* DeleteKeyRequest::_internal_mutable_id() { + + return id_.Mutable(GetArenaForAllocation()); } -inline std::string* UpdateModuleRequest::release_entrypoint() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.UpdateModuleRequest.entrypoint) - return _impl_.entrypoint_.Release(); -} -inline void UpdateModuleRequest::set_allocated_entrypoint(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.entrypoint_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.entrypoint_.IsDefault()) { - _impl_.entrypoint_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateModuleRequest.entrypoint) +inline std::string* DeleteKeyRequest::release_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.DeleteKeyRequest.id) + return id_.Release(); } - -// optional string first_run = 7 [json_name = "firstRun"]; -inline bool UpdateModuleRequest::has_first_run() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - return value; +inline void DeleteKeyRequest::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.DeleteKeyRequest.id) } -inline void UpdateModuleRequest::clear_first_run() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.first_run_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000001u; + +// ------------------------------------------------------------------- + +// DeleteKeyResponse + +// ------------------------------------------------------------------- + +// RenameKeyRequest + +// string id = 1 [json_name = "id"]; +inline void RenameKeyRequest::clear_id() { + id_.ClearToEmpty(); } -inline const std::string& UpdateModuleRequest::first_run() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.UpdateModuleRequest.first_run) - return _internal_first_run(); +inline const std::string& RenameKeyRequest::id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RenameKeyRequest.id) + return _internal_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void UpdateModuleRequest::set_first_run(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.first_run_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.UpdateModuleRequest.first_run) +template +inline PROTOBUF_ALWAYS_INLINE +void RenameKeyRequest::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.RenameKeyRequest.id) } -inline std::string* UpdateModuleRequest::mutable_first_run() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_first_run(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateModuleRequest.first_run) +inline std::string* RenameKeyRequest::mutable_id() { + std::string* _s = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RenameKeyRequest.id) return _s; } -inline const std::string& UpdateModuleRequest::_internal_first_run() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.first_run_.Get(); +inline const std::string& RenameKeyRequest::_internal_id() const { + return id_.Get(); } -inline void UpdateModuleRequest::_internal_set_first_run(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.first_run_.Set(value, GetArena()); +inline void RenameKeyRequest::_internal_set_id(const std::string& value) { + + id_.Set(value, GetArenaForAllocation()); } -inline std::string* UpdateModuleRequest::_internal_mutable_first_run() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.first_run_.Mutable( GetArena()); +inline std::string* RenameKeyRequest::_internal_mutable_id() { + + return id_.Mutable(GetArenaForAllocation()); } -inline std::string* UpdateModuleRequest::release_first_run() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.UpdateModuleRequest.first_run) - if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { - return nullptr; - } - _impl_._has_bits_[0] &= ~0x00000001u; - auto* released = _impl_.first_run_.Release(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.first_run_.Set("", GetArena()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return released; +inline std::string* RenameKeyRequest::release_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.RenameKeyRequest.id) + return id_.Release(); } -inline void UpdateModuleRequest::set_allocated_first_run(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; +inline void RenameKeyRequest::set_allocated_id(std::string* id) { + if (id != nullptr) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - _impl_.first_run_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.first_run_.IsDefault()) { - _impl_.first_run_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateModuleRequest.first_run) + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RenameKeyRequest.id) } -// ------------------------------------------------------------------- - -// UpdateModuleResponse - -// string url = 1 [json_name = "url"]; -inline void UpdateModuleResponse::clear_url() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.url_.ClearToEmpty(); +// string name = 2 [json_name = "name"]; +inline void RenameKeyRequest::clear_name() { + name_.ClearToEmpty(); } -inline const std::string& UpdateModuleResponse::url() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.UpdateModuleResponse.url) - return _internal_url(); +inline const std::string& RenameKeyRequest::name() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RenameKeyRequest.name) + return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void UpdateModuleResponse::set_url(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.url_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.UpdateModuleResponse.url) +template +inline PROTOBUF_ALWAYS_INLINE +void RenameKeyRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.RenameKeyRequest.name) } -inline std::string* UpdateModuleResponse::mutable_url() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_url(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateModuleResponse.url) +inline std::string* RenameKeyRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RenameKeyRequest.name) return _s; } -inline const std::string& UpdateModuleResponse::_internal_url() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.url_.Get(); +inline const std::string& RenameKeyRequest::_internal_name() const { + return name_.Get(); } -inline void UpdateModuleResponse::_internal_set_url(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.url_.Set(value, GetArena()); +inline void RenameKeyRequest::_internal_set_name(const std::string& value) { + + name_.Set(value, GetArenaForAllocation()); } -inline std::string* UpdateModuleResponse::_internal_mutable_url() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.url_.Mutable( GetArena()); +inline std::string* RenameKeyRequest::_internal_mutable_name() { + + return name_.Mutable(GetArenaForAllocation()); } -inline std::string* UpdateModuleResponse::release_url() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.UpdateModuleResponse.url) - return _impl_.url_.Release(); -} -inline void UpdateModuleResponse::set_allocated_url(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.url_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.url_.IsDefault()) { - _impl_.url_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateModuleResponse.url) +inline std::string* RenameKeyRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.app.v1.RenameKeyRequest.name) + return name_.Release(); +} +inline void RenameKeyRequest::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.app.v1.RenameKeyRequest.name) } // ------------------------------------------------------------------- -// Model +// RenameKeyResponse -// string api = 1 [json_name = "api"]; -inline void Model::clear_api() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.api_.ClearToEmpty(); +// string id = 1 [json_name = "id"]; +inline void RenameKeyResponse::clear_id() { + id_.ClearToEmpty(); } -inline const std::string& Model::api() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.Model.api) - return _internal_api(); +inline const std::string& RenameKeyResponse::id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RenameKeyResponse.id) + return _internal_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void Model::set_api(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.api_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.Model.api) +template +inline PROTOBUF_ALWAYS_INLINE +void RenameKeyResponse::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.RenameKeyResponse.id) } -inline std::string* Model::mutable_api() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_api(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.Model.api) +inline std::string* RenameKeyResponse::mutable_id() { + std::string* _s = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RenameKeyResponse.id) return _s; } -inline const std::string& Model::_internal_api() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.api_.Get(); +inline const std::string& RenameKeyResponse::_internal_id() const { + return id_.Get(); } -inline void Model::_internal_set_api(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.api_.Set(value, GetArena()); +inline void RenameKeyResponse::_internal_set_id(const std::string& value) { + + id_.Set(value, GetArenaForAllocation()); } -inline std::string* Model::_internal_mutable_api() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.api_.Mutable( GetArena()); +inline std::string* RenameKeyResponse::_internal_mutable_id() { + + return id_.Mutable(GetArenaForAllocation()); } -inline std::string* Model::release_api() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.Model.api) - return _impl_.api_.Release(); -} -inline void Model::set_allocated_api(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.api_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.api_.IsDefault()) { - _impl_.api_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Model.api) +inline std::string* RenameKeyResponse::release_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.RenameKeyResponse.id) + return id_.Release(); } - -// string model = 2 [json_name = "model"]; -inline void Model::clear_model() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.model_.ClearToEmpty(); +inline void RenameKeyResponse::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RenameKeyResponse.id) } -inline const std::string& Model::model() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.Model.model) - return _internal_model(); + +// string name = 2 [json_name = "name"]; +inline void RenameKeyResponse::clear_name() { + name_.ClearToEmpty(); } -template -inline PROTOBUF_ALWAYS_INLINE void Model::set_model(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.model_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.Model.model) +inline const std::string& RenameKeyResponse::name() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RenameKeyResponse.name) + return _internal_name(); } -inline std::string* Model::mutable_model() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_model(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.Model.model) +template +inline PROTOBUF_ALWAYS_INLINE +void RenameKeyResponse::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.RenameKeyResponse.name) +} +inline std::string* RenameKeyResponse::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RenameKeyResponse.name) return _s; } -inline const std::string& Model::_internal_model() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.model_.Get(); +inline const std::string& RenameKeyResponse::_internal_name() const { + return name_.Get(); } -inline void Model::_internal_set_model(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.model_.Set(value, GetArena()); +inline void RenameKeyResponse::_internal_set_name(const std::string& value) { + + name_.Set(value, GetArenaForAllocation()); } -inline std::string* Model::_internal_mutable_model() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.model_.Mutable( GetArena()); +inline std::string* RenameKeyResponse::_internal_mutable_name() { + + return name_.Mutable(GetArenaForAllocation()); } -inline std::string* Model::release_model() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.Model.model) - return _impl_.model_.Release(); -} -inline void Model::set_allocated_model(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.model_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.model_.IsDefault()) { - _impl_.model_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Model.model) +inline std::string* RenameKeyResponse::release_name() { + // @@protoc_insertion_point(field_release:viam.app.v1.RenameKeyResponse.name) + return name_.Release(); +} +inline void RenameKeyResponse::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.app.v1.RenameKeyResponse.name) } // ------------------------------------------------------------------- -// ModuleFileInfo +// AuthorizationDetails -// string module_id = 1 [json_name = "moduleId"]; -inline void ModuleFileInfo::clear_module_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.module_id_.ClearToEmpty(); +// string authorization_type = 1 [json_name = "authorizationType"]; +inline void AuthorizationDetails::clear_authorization_type() { + authorization_type_.ClearToEmpty(); } -inline const std::string& ModuleFileInfo::module_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.ModuleFileInfo.module_id) - return _internal_module_id(); +inline const std::string& AuthorizationDetails::authorization_type() const { + // @@protoc_insertion_point(field_get:viam.app.v1.AuthorizationDetails.authorization_type) + return _internal_authorization_type(); } -template -inline PROTOBUF_ALWAYS_INLINE void ModuleFileInfo::set_module_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.module_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.ModuleFileInfo.module_id) +template +inline PROTOBUF_ALWAYS_INLINE +void AuthorizationDetails::set_authorization_type(ArgT0&& arg0, ArgT... args) { + + authorization_type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.AuthorizationDetails.authorization_type) } -inline std::string* ModuleFileInfo::mutable_module_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_module_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.ModuleFileInfo.module_id) +inline std::string* AuthorizationDetails::mutable_authorization_type() { + std::string* _s = _internal_mutable_authorization_type(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.AuthorizationDetails.authorization_type) return _s; } -inline const std::string& ModuleFileInfo::_internal_module_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.module_id_.Get(); +inline const std::string& AuthorizationDetails::_internal_authorization_type() const { + return authorization_type_.Get(); } -inline void ModuleFileInfo::_internal_set_module_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.module_id_.Set(value, GetArena()); +inline void AuthorizationDetails::_internal_set_authorization_type(const std::string& value) { + + authorization_type_.Set(value, GetArenaForAllocation()); } -inline std::string* ModuleFileInfo::_internal_mutable_module_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.module_id_.Mutable( GetArena()); +inline std::string* AuthorizationDetails::_internal_mutable_authorization_type() { + + return authorization_type_.Mutable(GetArenaForAllocation()); } -inline std::string* ModuleFileInfo::release_module_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.ModuleFileInfo.module_id) - return _impl_.module_id_.Release(); -} -inline void ModuleFileInfo::set_allocated_module_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.module_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.module_id_.IsDefault()) { - _impl_.module_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ModuleFileInfo.module_id) +inline std::string* AuthorizationDetails::release_authorization_type() { + // @@protoc_insertion_point(field_release:viam.app.v1.AuthorizationDetails.authorization_type) + return authorization_type_.Release(); +} +inline void AuthorizationDetails::set_allocated_authorization_type(std::string* authorization_type) { + if (authorization_type != nullptr) { + + } else { + + } + authorization_type_.SetAllocated(authorization_type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (authorization_type_.IsDefault()) { + authorization_type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.AuthorizationDetails.authorization_type) } -// string version = 2 [json_name = "version"]; -inline void ModuleFileInfo::clear_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.version_.ClearToEmpty(); +// string authorization_id = 2 [json_name = "authorizationId"]; +inline void AuthorizationDetails::clear_authorization_id() { + authorization_id_.ClearToEmpty(); } -inline const std::string& ModuleFileInfo::version() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.ModuleFileInfo.version) - return _internal_version(); +inline const std::string& AuthorizationDetails::authorization_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.AuthorizationDetails.authorization_id) + return _internal_authorization_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void ModuleFileInfo::set_version(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.version_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.ModuleFileInfo.version) +template +inline PROTOBUF_ALWAYS_INLINE +void AuthorizationDetails::set_authorization_id(ArgT0&& arg0, ArgT... args) { + + authorization_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.AuthorizationDetails.authorization_id) } -inline std::string* ModuleFileInfo::mutable_version() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_version(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.ModuleFileInfo.version) +inline std::string* AuthorizationDetails::mutable_authorization_id() { + std::string* _s = _internal_mutable_authorization_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.AuthorizationDetails.authorization_id) return _s; } -inline const std::string& ModuleFileInfo::_internal_version() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.version_.Get(); +inline const std::string& AuthorizationDetails::_internal_authorization_id() const { + return authorization_id_.Get(); } -inline void ModuleFileInfo::_internal_set_version(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.version_.Set(value, GetArena()); +inline void AuthorizationDetails::_internal_set_authorization_id(const std::string& value) { + + authorization_id_.Set(value, GetArenaForAllocation()); } -inline std::string* ModuleFileInfo::_internal_mutable_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.version_.Mutable( GetArena()); +inline std::string* AuthorizationDetails::_internal_mutable_authorization_id() { + + return authorization_id_.Mutable(GetArenaForAllocation()); } -inline std::string* ModuleFileInfo::release_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.ModuleFileInfo.version) - return _impl_.version_.Release(); -} -inline void ModuleFileInfo::set_allocated_version(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.version_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.version_.IsDefault()) { - _impl_.version_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ModuleFileInfo.version) +inline std::string* AuthorizationDetails::release_authorization_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.AuthorizationDetails.authorization_id) + return authorization_id_.Release(); +} +inline void AuthorizationDetails::set_allocated_authorization_id(std::string* authorization_id) { + if (authorization_id != nullptr) { + + } else { + + } + authorization_id_.SetAllocated(authorization_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (authorization_id_.IsDefault()) { + authorization_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.AuthorizationDetails.authorization_id) } -// string platform = 3 [json_name = "platform"]; -inline void ModuleFileInfo::clear_platform() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.platform_.ClearToEmpty(); +// string resource_type = 3 [json_name = "resourceType"]; +inline void AuthorizationDetails::clear_resource_type() { + resource_type_.ClearToEmpty(); } -inline const std::string& ModuleFileInfo::platform() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.ModuleFileInfo.platform) - return _internal_platform(); +inline const std::string& AuthorizationDetails::resource_type() const { + // @@protoc_insertion_point(field_get:viam.app.v1.AuthorizationDetails.resource_type) + return _internal_resource_type(); } -template -inline PROTOBUF_ALWAYS_INLINE void ModuleFileInfo::set_platform(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.platform_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.ModuleFileInfo.platform) +template +inline PROTOBUF_ALWAYS_INLINE +void AuthorizationDetails::set_resource_type(ArgT0&& arg0, ArgT... args) { + + resource_type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.AuthorizationDetails.resource_type) } -inline std::string* ModuleFileInfo::mutable_platform() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_platform(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.ModuleFileInfo.platform) +inline std::string* AuthorizationDetails::mutable_resource_type() { + std::string* _s = _internal_mutable_resource_type(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.AuthorizationDetails.resource_type) return _s; } -inline const std::string& ModuleFileInfo::_internal_platform() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.platform_.Get(); +inline const std::string& AuthorizationDetails::_internal_resource_type() const { + return resource_type_.Get(); } -inline void ModuleFileInfo::_internal_set_platform(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.platform_.Set(value, GetArena()); +inline void AuthorizationDetails::_internal_set_resource_type(const std::string& value) { + + resource_type_.Set(value, GetArenaForAllocation()); } -inline std::string* ModuleFileInfo::_internal_mutable_platform() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.platform_.Mutable( GetArena()); +inline std::string* AuthorizationDetails::_internal_mutable_resource_type() { + + return resource_type_.Mutable(GetArenaForAllocation()); } -inline std::string* ModuleFileInfo::release_platform() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.ModuleFileInfo.platform) - return _impl_.platform_.Release(); -} -inline void ModuleFileInfo::set_allocated_platform(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.platform_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.platform_.IsDefault()) { - _impl_.platform_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ModuleFileInfo.platform) +inline std::string* AuthorizationDetails::release_resource_type() { + // @@protoc_insertion_point(field_release:viam.app.v1.AuthorizationDetails.resource_type) + return resource_type_.Release(); +} +inline void AuthorizationDetails::set_allocated_resource_type(std::string* resource_type) { + if (resource_type != nullptr) { + + } else { + + } + resource_type_.SetAllocated(resource_type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (resource_type_.IsDefault()) { + resource_type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.AuthorizationDetails.resource_type) } -// repeated string platform_tags = 5 [json_name = "platformTags"]; -inline int ModuleFileInfo::_internal_platform_tags_size() const { - return _internal_platform_tags().size(); +// string resource_id = 4 [json_name = "resourceId"]; +inline void AuthorizationDetails::clear_resource_id() { + resource_id_.ClearToEmpty(); } -inline int ModuleFileInfo::platform_tags_size() const { - return _internal_platform_tags_size(); +inline const std::string& AuthorizationDetails::resource_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.AuthorizationDetails.resource_id) + return _internal_resource_id(); } -inline void ModuleFileInfo::clear_platform_tags() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.platform_tags_.Clear(); +template +inline PROTOBUF_ALWAYS_INLINE +void AuthorizationDetails::set_resource_id(ArgT0&& arg0, ArgT... args) { + + resource_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.AuthorizationDetails.resource_id) } -inline std::string* ModuleFileInfo::add_platform_tags() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_platform_tags()->Add(); - // @@protoc_insertion_point(field_add_mutable:viam.app.v1.ModuleFileInfo.platform_tags) +inline std::string* AuthorizationDetails::mutable_resource_id() { + std::string* _s = _internal_mutable_resource_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.AuthorizationDetails.resource_id) return _s; } -inline const std::string& ModuleFileInfo::platform_tags(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.ModuleFileInfo.platform_tags) - return _internal_platform_tags().Get(index); -} -inline std::string* ModuleFileInfo::mutable_platform_tags(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:viam.app.v1.ModuleFileInfo.platform_tags) - return _internal_mutable_platform_tags()->Mutable(index); -} -inline void ModuleFileInfo::set_platform_tags(int index, const std::string& value) { - _internal_mutable_platform_tags()->Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set:viam.app.v1.ModuleFileInfo.platform_tags) +inline const std::string& AuthorizationDetails::_internal_resource_id() const { + return resource_id_.Get(); } -inline void ModuleFileInfo::set_platform_tags(int index, std::string&& value) { - _internal_mutable_platform_tags()->Mutable(index)->assign(std::move(value)); - // @@protoc_insertion_point(field_set:viam.app.v1.ModuleFileInfo.platform_tags) +inline void AuthorizationDetails::_internal_set_resource_id(const std::string& value) { + + resource_id_.Set(value, GetArenaForAllocation()); } -inline void ModuleFileInfo::set_platform_tags(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_platform_tags()->Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:viam.app.v1.ModuleFileInfo.platform_tags) +inline std::string* AuthorizationDetails::_internal_mutable_resource_id() { + + return resource_id_.Mutable(GetArenaForAllocation()); } -inline void ModuleFileInfo::set_platform_tags(int index, const char* value, - std::size_t size) { - _internal_mutable_platform_tags()->Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:viam.app.v1.ModuleFileInfo.platform_tags) +inline std::string* AuthorizationDetails::release_resource_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.AuthorizationDetails.resource_id) + return resource_id_.Release(); } -inline void ModuleFileInfo::set_platform_tags(int index, absl::string_view value) { - _internal_mutable_platform_tags()->Mutable(index)->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_set_string_piece:viam.app.v1.ModuleFileInfo.platform_tags) +inline void AuthorizationDetails::set_allocated_resource_id(std::string* resource_id) { + if (resource_id != nullptr) { + + } else { + + } + resource_id_.SetAllocated(resource_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (resource_id_.IsDefault()) { + resource_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.AuthorizationDetails.resource_id) } -inline void ModuleFileInfo::add_platform_tags(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_platform_tags()->Add()->assign(value); - // @@protoc_insertion_point(field_add:viam.app.v1.ModuleFileInfo.platform_tags) + +// string org_id = 5 [json_name = "orgId"]; +inline void AuthorizationDetails::clear_org_id() { + org_id_.ClearToEmpty(); } -inline void ModuleFileInfo::add_platform_tags(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_platform_tags()->Add(std::move(value)); - // @@protoc_insertion_point(field_add:viam.app.v1.ModuleFileInfo.platform_tags) +inline const std::string& AuthorizationDetails::org_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.AuthorizationDetails.org_id) + return _internal_org_id(); } -inline void ModuleFileInfo::add_platform_tags(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_platform_tags()->Add()->assign(value); - // @@protoc_insertion_point(field_add_char:viam.app.v1.ModuleFileInfo.platform_tags) +template +inline PROTOBUF_ALWAYS_INLINE +void AuthorizationDetails::set_org_id(ArgT0&& arg0, ArgT... args) { + + org_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.AuthorizationDetails.org_id) } -inline void ModuleFileInfo::add_platform_tags(const char* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_platform_tags()->Add()->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:viam.app.v1.ModuleFileInfo.platform_tags) +inline std::string* AuthorizationDetails::mutable_org_id() { + std::string* _s = _internal_mutable_org_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.AuthorizationDetails.org_id) + return _s; } -inline void ModuleFileInfo::add_platform_tags(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_platform_tags()->Add()->assign(value.data(), value.size()); - // @@protoc_insertion_point(field_add_string_piece:viam.app.v1.ModuleFileInfo.platform_tags) +inline const std::string& AuthorizationDetails::_internal_org_id() const { + return org_id_.Get(); } -inline const ::google::protobuf::RepeatedPtrField& -ModuleFileInfo::platform_tags() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:viam.app.v1.ModuleFileInfo.platform_tags) - return _internal_platform_tags(); +inline void AuthorizationDetails::_internal_set_org_id(const std::string& value) { + + org_id_.Set(value, GetArenaForAllocation()); } -inline ::google::protobuf::RepeatedPtrField* -ModuleFileInfo::mutable_platform_tags() ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ModuleFileInfo.platform_tags) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_platform_tags(); +inline std::string* AuthorizationDetails::_internal_mutable_org_id() { + + return org_id_.Mutable(GetArenaForAllocation()); } -inline const ::google::protobuf::RepeatedPtrField& -ModuleFileInfo::_internal_platform_tags() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.platform_tags_; +inline std::string* AuthorizationDetails::release_org_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.AuthorizationDetails.org_id) + return org_id_.Release(); } -inline ::google::protobuf::RepeatedPtrField* -ModuleFileInfo::_internal_mutable_platform_tags() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.platform_tags_; +inline void AuthorizationDetails::set_allocated_org_id(std::string* org_id) { + if (org_id != nullptr) { + + } else { + + } + org_id_.SetAllocated(org_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (org_id_.IsDefault()) { + org_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.AuthorizationDetails.org_id) } // ------------------------------------------------------------------- -// UploadModuleFileRequest +// APIKeyWithAuthorizations -// .viam.app.v1.ModuleFileInfo module_file_info = 1 [json_name = "moduleFileInfo"]; -inline bool UploadModuleFileRequest::has_module_file_info() const { - return module_file_case() == kModuleFileInfo; -} -inline bool UploadModuleFileRequest::_internal_has_module_file_info() const { - return module_file_case() == kModuleFileInfo; -} -inline void UploadModuleFileRequest::set_has_module_file_info() { - _impl_._oneof_case_[0] = kModuleFileInfo; +// .viam.app.v1.APIKey api_key = 1 [json_name = "apiKey"]; +inline bool APIKeyWithAuthorizations::_internal_has_api_key() const { + return this != internal_default_instance() && api_key_ != nullptr; } -inline void UploadModuleFileRequest::clear_module_file_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (module_file_case() == kModuleFileInfo) { - if (GetArena() == nullptr) { - delete _impl_.module_file_.module_file_info_; - } - clear_has_module_file(); - } +inline bool APIKeyWithAuthorizations::has_api_key() const { + return _internal_has_api_key(); } -inline ::viam::app::v1::ModuleFileInfo* UploadModuleFileRequest::release_module_file_info() { - // @@protoc_insertion_point(field_release:viam.app.v1.UploadModuleFileRequest.module_file_info) - if (module_file_case() == kModuleFileInfo) { - clear_has_module_file(); - auto* temp = _impl_.module_file_.module_file_info_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.module_file_.module_file_info_ = nullptr; - return temp; - } else { - return nullptr; +inline void APIKeyWithAuthorizations::clear_api_key() { + if (GetArenaForAllocation() == nullptr && api_key_ != nullptr) { + delete api_key_; } + api_key_ = nullptr; } -inline const ::viam::app::v1::ModuleFileInfo& UploadModuleFileRequest::_internal_module_file_info() const { - return module_file_case() == kModuleFileInfo ? *_impl_.module_file_.module_file_info_ : reinterpret_cast<::viam::app::v1::ModuleFileInfo&>(::viam::app::v1::_ModuleFileInfo_default_instance_); +inline const ::viam::app::v1::APIKey& APIKeyWithAuthorizations::_internal_api_key() const { + const ::viam::app::v1::APIKey* p = api_key_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_APIKey_default_instance_); } -inline const ::viam::app::v1::ModuleFileInfo& UploadModuleFileRequest::module_file_info() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.UploadModuleFileRequest.module_file_info) - return _internal_module_file_info(); +inline const ::viam::app::v1::APIKey& APIKeyWithAuthorizations::api_key() const { + // @@protoc_insertion_point(field_get:viam.app.v1.APIKeyWithAuthorizations.api_key) + return _internal_api_key(); } -inline ::viam::app::v1::ModuleFileInfo* UploadModuleFileRequest::unsafe_arena_release_module_file_info() { - // @@protoc_insertion_point(field_unsafe_arena_release:viam.app.v1.UploadModuleFileRequest.module_file_info) - if (module_file_case() == kModuleFileInfo) { - clear_has_module_file(); - auto* temp = _impl_.module_file_.module_file_info_; - _impl_.module_file_.module_file_info_ = nullptr; - return temp; +inline void APIKeyWithAuthorizations::unsafe_arena_set_allocated_api_key( + ::viam::app::v1::APIKey* api_key) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(api_key_); + } + api_key_ = api_key; + if (api_key) { + } else { - return nullptr; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.APIKeyWithAuthorizations.api_key) } -inline void UploadModuleFileRequest::unsafe_arena_set_allocated_module_file_info(::viam::app::v1::ModuleFileInfo* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_module_file(); - if (value) { - set_has_module_file_info(); - _impl_.module_file_.module_file_info_ = value; +inline ::viam::app::v1::APIKey* APIKeyWithAuthorizations::release_api_key() { + + ::viam::app::v1::APIKey* temp = api_key_; + api_key_ = 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); } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.UploadModuleFileRequest.module_file_info) +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; } -inline ::viam::app::v1::ModuleFileInfo* UploadModuleFileRequest::_internal_mutable_module_file_info() { - if (module_file_case() != kModuleFileInfo) { - clear_module_file(); - set_has_module_file_info(); - _impl_.module_file_.module_file_info_ = CreateMaybeMessage<::viam::app::v1::ModuleFileInfo>(GetArena()); +inline ::viam::app::v1::APIKey* APIKeyWithAuthorizations::unsafe_arena_release_api_key() { + // @@protoc_insertion_point(field_release:viam.app.v1.APIKeyWithAuthorizations.api_key) + + ::viam::app::v1::APIKey* temp = api_key_; + api_key_ = nullptr; + return temp; +} +inline ::viam::app::v1::APIKey* APIKeyWithAuthorizations::_internal_mutable_api_key() { + + if (api_key_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::APIKey>(GetArenaForAllocation()); + api_key_ = p; } - return _impl_.module_file_.module_file_info_; + return api_key_; } -inline ::viam::app::v1::ModuleFileInfo* UploadModuleFileRequest::mutable_module_file_info() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::viam::app::v1::ModuleFileInfo* _msg = _internal_mutable_module_file_info(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.UploadModuleFileRequest.module_file_info) +inline ::viam::app::v1::APIKey* APIKeyWithAuthorizations::mutable_api_key() { + ::viam::app::v1::APIKey* _msg = _internal_mutable_api_key(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.APIKeyWithAuthorizations.api_key) return _msg; } +inline void APIKeyWithAuthorizations::set_allocated_api_key(::viam::app::v1::APIKey* api_key) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete api_key_; + } + if (api_key) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(api_key); + if (message_arena != submessage_arena) { + api_key = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, api_key, submessage_arena); + } + + } else { + + } + api_key_ = api_key; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.APIKeyWithAuthorizations.api_key) +} -// bytes file = 2 [json_name = "file"]; -inline bool UploadModuleFileRequest::has_file() const { - return module_file_case() == kFile; +// repeated .viam.app.v1.AuthorizationDetails authorizations = 2 [json_name = "authorizations"]; +inline int APIKeyWithAuthorizations::_internal_authorizations_size() const { + return authorizations_.size(); } -inline void UploadModuleFileRequest::set_has_file() { - _impl_._oneof_case_[0] = kFile; +inline int APIKeyWithAuthorizations::authorizations_size() const { + return _internal_authorizations_size(); } -inline void UploadModuleFileRequest::clear_file() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (module_file_case() == kFile) { - _impl_.module_file_.file_.Destroy(); - clear_has_module_file(); - } +inline void APIKeyWithAuthorizations::clear_authorizations() { + authorizations_.Clear(); } -inline const std::string& UploadModuleFileRequest::file() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.UploadModuleFileRequest.file) - return _internal_file(); +inline ::viam::app::v1::AuthorizationDetails* APIKeyWithAuthorizations::mutable_authorizations(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.APIKeyWithAuthorizations.authorizations) + return authorizations_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::AuthorizationDetails >* +APIKeyWithAuthorizations::mutable_authorizations() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.APIKeyWithAuthorizations.authorizations) + return &authorizations_; +} +inline const ::viam::app::v1::AuthorizationDetails& APIKeyWithAuthorizations::_internal_authorizations(int index) const { + return authorizations_.Get(index); +} +inline const ::viam::app::v1::AuthorizationDetails& APIKeyWithAuthorizations::authorizations(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.APIKeyWithAuthorizations.authorizations) + return _internal_authorizations(index); +} +inline ::viam::app::v1::AuthorizationDetails* APIKeyWithAuthorizations::_internal_add_authorizations() { + return authorizations_.Add(); +} +inline ::viam::app::v1::AuthorizationDetails* APIKeyWithAuthorizations::add_authorizations() { + ::viam::app::v1::AuthorizationDetails* _add = _internal_add_authorizations(); + // @@protoc_insertion_point(field_add:viam.app.v1.APIKeyWithAuthorizations.authorizations) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::AuthorizationDetails >& +APIKeyWithAuthorizations::authorizations() const { + // @@protoc_insertion_point(field_list:viam.app.v1.APIKeyWithAuthorizations.authorizations) + return authorizations_; } -template -inline PROTOBUF_ALWAYS_INLINE void UploadModuleFileRequest::set_file(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (module_file_case() != kFile) { - clear_module_file(); - set_has_file(); - _impl_.module_file_.file_.InitDefault(); - } - _impl_.module_file_.file_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.UploadModuleFileRequest.file) +// ------------------------------------------------------------------- + +// ListKeysRequest + +// string org_id = 1 [json_name = "orgId"]; +inline void ListKeysRequest::clear_org_id() { + org_id_.ClearToEmpty(); } -inline std::string* UploadModuleFileRequest::mutable_file() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_file(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.UploadModuleFileRequest.file) +inline const std::string& ListKeysRequest::org_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ListKeysRequest.org_id) + return _internal_org_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ListKeysRequest::set_org_id(ArgT0&& arg0, ArgT... args) { + + org_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.ListKeysRequest.org_id) +} +inline std::string* ListKeysRequest::mutable_org_id() { + std::string* _s = _internal_mutable_org_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ListKeysRequest.org_id) return _s; } -inline const std::string& UploadModuleFileRequest::_internal_file() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - if (module_file_case() != kFile) { - return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); - } - return _impl_.module_file_.file_.Get(); +inline const std::string& ListKeysRequest::_internal_org_id() const { + return org_id_.Get(); } -inline void UploadModuleFileRequest::_internal_set_file(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (module_file_case() != kFile) { - clear_module_file(); - - set_has_file(); - _impl_.module_file_.file_.InitDefault(); - } - _impl_.module_file_.file_.Set(value, GetArena()); +inline void ListKeysRequest::_internal_set_org_id(const std::string& value) { + + org_id_.Set(value, GetArenaForAllocation()); } -inline std::string* UploadModuleFileRequest::_internal_mutable_file() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (module_file_case() != kFile) { - clear_module_file(); - - set_has_file(); - _impl_.module_file_.file_.InitDefault(); - } - return _impl_.module_file_.file_.Mutable( GetArena()); +inline std::string* ListKeysRequest::_internal_mutable_org_id() { + + return org_id_.Mutable(GetArenaForAllocation()); } -inline std::string* UploadModuleFileRequest::release_file() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.UploadModuleFileRequest.file) - if (module_file_case() != kFile) { - return nullptr; - } - clear_has_module_file(); - return _impl_.module_file_.file_.Release(); +inline std::string* ListKeysRequest::release_org_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.ListKeysRequest.org_id) + return org_id_.Release(); } -inline void UploadModuleFileRequest::set_allocated_file(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (has_module_file()) { - clear_module_file(); +inline void ListKeysRequest::set_allocated_org_id(std::string* org_id) { + if (org_id != nullptr) { + + } else { + } - if (value != nullptr) { - set_has_file(); - _impl_.module_file_.file_.InitAllocated(value, GetArena()); + org_id_.SetAllocated(org_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (org_id_.IsDefault()) { + org_id_.Set("", GetArenaForAllocation()); } - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UploadModuleFileRequest.file) +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ListKeysRequest.org_id) } -inline bool UploadModuleFileRequest::has_module_file() const { - return module_file_case() != MODULE_FILE_NOT_SET; -} -inline void UploadModuleFileRequest::clear_has_module_file() { - _impl_._oneof_case_[0] = MODULE_FILE_NOT_SET; -} -inline UploadModuleFileRequest::ModuleFileCase UploadModuleFileRequest::module_file_case() const { - return UploadModuleFileRequest::ModuleFileCase(_impl_._oneof_case_[0]); -} // ------------------------------------------------------------------- -// UploadModuleFileResponse +// ListKeysResponse -// string url = 1 [json_name = "url"]; -inline void UploadModuleFileResponse::clear_url() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.url_.ClearToEmpty(); +// repeated .viam.app.v1.APIKeyWithAuthorizations api_keys = 1 [json_name = "apiKeys"]; +inline int ListKeysResponse::_internal_api_keys_size() const { + return api_keys_.size(); } -inline const std::string& UploadModuleFileResponse::url() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.UploadModuleFileResponse.url) - return _internal_url(); +inline int ListKeysResponse::api_keys_size() const { + return _internal_api_keys_size(); } -template -inline PROTOBUF_ALWAYS_INLINE void UploadModuleFileResponse::set_url(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.url_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.UploadModuleFileResponse.url) +inline void ListKeysResponse::clear_api_keys() { + api_keys_.Clear(); } -inline std::string* UploadModuleFileResponse::mutable_url() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_url(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.UploadModuleFileResponse.url) - return _s; +inline ::viam::app::v1::APIKeyWithAuthorizations* ListKeysResponse::mutable_api_keys(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.ListKeysResponse.api_keys) + return api_keys_.Mutable(index); } -inline const std::string& UploadModuleFileResponse::_internal_url() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.url_.Get(); +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::APIKeyWithAuthorizations >* +ListKeysResponse::mutable_api_keys() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ListKeysResponse.api_keys) + return &api_keys_; } -inline void UploadModuleFileResponse::_internal_set_url(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.url_.Set(value, GetArena()); +inline const ::viam::app::v1::APIKeyWithAuthorizations& ListKeysResponse::_internal_api_keys(int index) const { + return api_keys_.Get(index); } -inline std::string* UploadModuleFileResponse::_internal_mutable_url() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.url_.Mutable( GetArena()); +inline const ::viam::app::v1::APIKeyWithAuthorizations& ListKeysResponse::api_keys(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.ListKeysResponse.api_keys) + return _internal_api_keys(index); } -inline std::string* UploadModuleFileResponse::release_url() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.UploadModuleFileResponse.url) - return _impl_.url_.Release(); -} -inline void UploadModuleFileResponse::set_allocated_url(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.url_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.url_.IsDefault()) { - _impl_.url_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UploadModuleFileResponse.url) +inline ::viam::app::v1::APIKeyWithAuthorizations* ListKeysResponse::_internal_add_api_keys() { + return api_keys_.Add(); +} +inline ::viam::app::v1::APIKeyWithAuthorizations* ListKeysResponse::add_api_keys() { + ::viam::app::v1::APIKeyWithAuthorizations* _add = _internal_add_api_keys(); + // @@protoc_insertion_point(field_add:viam.app.v1.ListKeysResponse.api_keys) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::APIKeyWithAuthorizations >& +ListKeysResponse::api_keys() const { + // @@protoc_insertion_point(field_list:viam.app.v1.ListKeysResponse.api_keys) + return api_keys_; } // ------------------------------------------------------------------- -// GetModuleRequest +// RotateKeyRequest -// string module_id = 1 [json_name = "moduleId"]; -inline void GetModuleRequest::clear_module_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.module_id_.ClearToEmpty(); +// string id = 1 [json_name = "id"]; +inline void RotateKeyRequest::clear_id() { + id_.ClearToEmpty(); } -inline const std::string& GetModuleRequest::module_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.GetModuleRequest.module_id) - return _internal_module_id(); +inline const std::string& RotateKeyRequest::id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RotateKeyRequest.id) + return _internal_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetModuleRequest::set_module_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.module_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.GetModuleRequest.module_id) +template +inline PROTOBUF_ALWAYS_INLINE +void RotateKeyRequest::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.RotateKeyRequest.id) } -inline std::string* GetModuleRequest::mutable_module_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_module_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.GetModuleRequest.module_id) +inline std::string* RotateKeyRequest::mutable_id() { + std::string* _s = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RotateKeyRequest.id) return _s; } -inline const std::string& GetModuleRequest::_internal_module_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.module_id_.Get(); +inline const std::string& RotateKeyRequest::_internal_id() const { + return id_.Get(); } -inline void GetModuleRequest::_internal_set_module_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.module_id_.Set(value, GetArena()); +inline void RotateKeyRequest::_internal_set_id(const std::string& value) { + + id_.Set(value, GetArenaForAllocation()); } -inline std::string* GetModuleRequest::_internal_mutable_module_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.module_id_.Mutable( GetArena()); +inline std::string* RotateKeyRequest::_internal_mutable_id() { + + return id_.Mutable(GetArenaForAllocation()); } -inline std::string* GetModuleRequest::release_module_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.GetModuleRequest.module_id) - return _impl_.module_id_.Release(); -} -inline void GetModuleRequest::set_allocated_module_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.module_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.module_id_.IsDefault()) { - _impl_.module_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetModuleRequest.module_id) +inline std::string* RotateKeyRequest::release_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.RotateKeyRequest.id) + return id_.Release(); +} +inline void RotateKeyRequest::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RotateKeyRequest.id) } // ------------------------------------------------------------------- -// GetModuleResponse +// RotateKeyResponse -// .viam.app.v1.Module module = 1 [json_name = "module"]; -inline bool GetModuleResponse::has_module() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.module_ != nullptr); - return value; +// string id = 1 [json_name = "id"]; +inline void RotateKeyResponse::clear_id() { + id_.ClearToEmpty(); } -inline void GetModuleResponse::clear_module() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.module_ != nullptr) _impl_.module_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; +inline const std::string& RotateKeyResponse::id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RotateKeyResponse.id) + return _internal_id(); } -inline const ::viam::app::v1::Module& GetModuleResponse::_internal_module() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::Module* p = _impl_.module_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_Module_default_instance_); +template +inline PROTOBUF_ALWAYS_INLINE +void RotateKeyResponse::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.RotateKeyResponse.id) } -inline const ::viam::app::v1::Module& GetModuleResponse::module() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.GetModuleResponse.module) - return _internal_module(); +inline std::string* RotateKeyResponse::mutable_id() { + std::string* _s = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RotateKeyResponse.id) + return _s; } -inline void GetModuleResponse::unsafe_arena_set_allocated_module(::viam::app::v1::Module* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.module_); - } - _impl_.module_ = reinterpret_cast<::viam::app::v1::Module*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.GetModuleResponse.module) +inline const std::string& RotateKeyResponse::_internal_id() const { + return id_.Get(); } -inline ::viam::app::v1::Module* GetModuleResponse::release_module() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::Module* released = _impl_.module_; - _impl_.module_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; +inline void RotateKeyResponse::_internal_set_id(const std::string& value) { + + id_.Set(value, GetArenaForAllocation()); +} +inline std::string* RotateKeyResponse::_internal_mutable_id() { + + return id_.Mutable(GetArenaForAllocation()); +} +inline std::string* RotateKeyResponse::release_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.RotateKeyResponse.id) + return id_.Release(); +} +inline void RotateKeyResponse::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RotateKeyResponse.id) } -inline ::viam::app::v1::Module* GetModuleResponse::unsafe_arena_release_module() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.GetModuleResponse.module) - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::Module* temp = _impl_.module_; - _impl_.module_ = nullptr; - return temp; +// string key = 2 [json_name = "key"]; +inline void RotateKeyResponse::clear_key() { + key_.ClearToEmpty(); } -inline ::viam::app::v1::Module* GetModuleResponse::_internal_mutable_module() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.module_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::Module>(GetArena()); - _impl_.module_ = reinterpret_cast<::viam::app::v1::Module*>(p); - } - return _impl_.module_; +inline const std::string& RotateKeyResponse::key() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RotateKeyResponse.key) + return _internal_key(); } -inline ::viam::app::v1::Module* GetModuleResponse::mutable_module() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::viam::app::v1::Module* _msg = _internal_mutable_module(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.GetModuleResponse.module) - return _msg; +template +inline PROTOBUF_ALWAYS_INLINE +void RotateKeyResponse::set_key(ArgT0&& arg0, ArgT... args) { + + key_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.RotateKeyResponse.key) } -inline void GetModuleResponse::set_allocated_module(::viam::app::v1::Module* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::Module*>(_impl_.module_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::Module*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; +inline std::string* RotateKeyResponse::mutable_key() { + std::string* _s = _internal_mutable_key(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.RotateKeyResponse.key) + return _s; +} +inline const std::string& RotateKeyResponse::_internal_key() const { + return key_.Get(); +} +inline void RotateKeyResponse::_internal_set_key(const std::string& value) { + + key_.Set(value, GetArenaForAllocation()); +} +inline std::string* RotateKeyResponse::_internal_mutable_key() { + + return key_.Mutable(GetArenaForAllocation()); +} +inline std::string* RotateKeyResponse::release_key() { + // @@protoc_insertion_point(field_release:viam.app.v1.RotateKeyResponse.key) + return key_.Release(); +} +inline void RotateKeyResponse::set_allocated_key(std::string* key) { + if (key != nullptr) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.module_ = reinterpret_cast<::viam::app::v1::Module*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetModuleResponse.module) + key_.SetAllocated(key, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (key_.IsDefault()) { + key_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RotateKeyResponse.key) } // ------------------------------------------------------------------- -// Module +// CreateKeyFromExistingKeyAuthorizationsRequest -// string module_id = 1 [json_name = "moduleId"]; -inline void Module::clear_module_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.module_id_.ClearToEmpty(); +// string id = 1 [json_name = "id"]; +inline void CreateKeyFromExistingKeyAuthorizationsRequest::clear_id() { + id_.ClearToEmpty(); } -inline const std::string& Module::module_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.Module.module_id) - return _internal_module_id(); +inline const std::string& CreateKeyFromExistingKeyAuthorizationsRequest::id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsRequest.id) + return _internal_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void Module::set_module_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.module_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.Module.module_id) +template +inline PROTOBUF_ALWAYS_INLINE +void CreateKeyFromExistingKeyAuthorizationsRequest::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsRequest.id) } -inline std::string* Module::mutable_module_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_module_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.Module.module_id) +inline std::string* CreateKeyFromExistingKeyAuthorizationsRequest::mutable_id() { + std::string* _s = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsRequest.id) return _s; } -inline const std::string& Module::_internal_module_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.module_id_.Get(); +inline const std::string& CreateKeyFromExistingKeyAuthorizationsRequest::_internal_id() const { + return id_.Get(); } -inline void Module::_internal_set_module_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.module_id_.Set(value, GetArena()); +inline void CreateKeyFromExistingKeyAuthorizationsRequest::_internal_set_id(const std::string& value) { + + id_.Set(value, GetArenaForAllocation()); } -inline std::string* Module::_internal_mutable_module_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.module_id_.Mutable( GetArena()); +inline std::string* CreateKeyFromExistingKeyAuthorizationsRequest::_internal_mutable_id() { + + return id_.Mutable(GetArenaForAllocation()); } -inline std::string* Module::release_module_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.Module.module_id) - return _impl_.module_id_.Release(); -} -inline void Module::set_allocated_module_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.module_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.module_id_.IsDefault()) { - _impl_.module_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Module.module_id) +inline std::string* CreateKeyFromExistingKeyAuthorizationsRequest::release_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsRequest.id) + return id_.Release(); +} +inline void CreateKeyFromExistingKeyAuthorizationsRequest::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsRequest.id) } -// string name = 2 [json_name = "name"]; -inline void Module::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); +// ------------------------------------------------------------------- + +// CreateKeyFromExistingKeyAuthorizationsResponse + +// string id = 1 [json_name = "id"]; +inline void CreateKeyFromExistingKeyAuthorizationsResponse::clear_id() { + id_.ClearToEmpty(); } -inline const std::string& Module::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.Module.name) - return _internal_name(); +inline const std::string& CreateKeyFromExistingKeyAuthorizationsResponse::id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsResponse.id) + return _internal_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void Module::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.Module.name) +template +inline PROTOBUF_ALWAYS_INLINE +void CreateKeyFromExistingKeyAuthorizationsResponse::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsResponse.id) +} +inline std::string* CreateKeyFromExistingKeyAuthorizationsResponse::mutable_id() { + std::string* _s = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsResponse.id) + return _s; +} +inline const std::string& CreateKeyFromExistingKeyAuthorizationsResponse::_internal_id() const { + return id_.Get(); +} +inline void CreateKeyFromExistingKeyAuthorizationsResponse::_internal_set_id(const std::string& value) { + + id_.Set(value, GetArenaForAllocation()); +} +inline std::string* CreateKeyFromExistingKeyAuthorizationsResponse::_internal_mutable_id() { + + return id_.Mutable(GetArenaForAllocation()); +} +inline std::string* CreateKeyFromExistingKeyAuthorizationsResponse::release_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsResponse.id) + return id_.Release(); } -inline std::string* Module::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.Module.name) - return _s; +inline void CreateKeyFromExistingKeyAuthorizationsResponse::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsResponse.id) } -inline const std::string& Module::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + +// string key = 2 [json_name = "key"]; +inline void CreateKeyFromExistingKeyAuthorizationsResponse::clear_key() { + key_.ClearToEmpty(); } -inline void Module::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); +inline const std::string& CreateKeyFromExistingKeyAuthorizationsResponse::key() const { + // @@protoc_insertion_point(field_get:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsResponse.key) + return _internal_key(); } -inline std::string* Module::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void CreateKeyFromExistingKeyAuthorizationsResponse::set_key(ArgT0&& arg0, ArgT... args) { + + key_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsResponse.key) } -inline std::string* Module::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.Module.name) - return _impl_.name_.Release(); -} -inline void Module::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Module.name) +inline std::string* CreateKeyFromExistingKeyAuthorizationsResponse::mutable_key() { + std::string* _s = _internal_mutable_key(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsResponse.key) + return _s; } - -// .viam.app.v1.Visibility visibility = 3 [json_name = "visibility"]; -inline void Module::clear_visibility() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.visibility_ = 0; +inline const std::string& CreateKeyFromExistingKeyAuthorizationsResponse::_internal_key() const { + return key_.Get(); } -inline ::viam::app::v1::Visibility Module::visibility() const { - // @@protoc_insertion_point(field_get:viam.app.v1.Module.visibility) - return _internal_visibility(); +inline void CreateKeyFromExistingKeyAuthorizationsResponse::_internal_set_key(const std::string& value) { + + key_.Set(value, GetArenaForAllocation()); } -inline void Module::set_visibility(::viam::app::v1::Visibility value) { - _internal_set_visibility(value); - // @@protoc_insertion_point(field_set:viam.app.v1.Module.visibility) +inline std::string* CreateKeyFromExistingKeyAuthorizationsResponse::_internal_mutable_key() { + + return key_.Mutable(GetArenaForAllocation()); } -inline ::viam::app::v1::Visibility Module::_internal_visibility() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::viam::app::v1::Visibility>(_impl_.visibility_); +inline std::string* CreateKeyFromExistingKeyAuthorizationsResponse::release_key() { + // @@protoc_insertion_point(field_release:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsResponse.key) + return key_.Release(); } -inline void Module::_internal_set_visibility(::viam::app::v1::Visibility value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.visibility_ = value; +inline void CreateKeyFromExistingKeyAuthorizationsResponse::set_allocated_key(std::string* key) { + if (key != nullptr) { + + } else { + + } + key_.SetAllocated(key, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (key_.IsDefault()) { + key_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsResponse.key) } -// repeated .viam.app.v1.VersionHistory versions = 4 [json_name = "versions"]; -inline int Module::_internal_versions_size() const { - return _internal_versions().size(); -} -inline int Module::versions_size() const { - return _internal_versions_size(); +// ------------------------------------------------------------------- + +// OrganizationSetLogoRequest + +// string org_id = 1 [json_name = "orgId"]; +inline void OrganizationSetLogoRequest::clear_org_id() { + org_id_.ClearToEmpty(); } -inline void Module::clear_versions() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.versions_.Clear(); +inline const std::string& OrganizationSetLogoRequest::org_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.OrganizationSetLogoRequest.org_id) + return _internal_org_id(); } -inline ::viam::app::v1::VersionHistory* Module::mutable_versions(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:viam.app.v1.Module.versions) - return _internal_mutable_versions()->Mutable(index); +template +inline PROTOBUF_ALWAYS_INLINE +void OrganizationSetLogoRequest::set_org_id(ArgT0&& arg0, ArgT... args) { + + org_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.OrganizationSetLogoRequest.org_id) } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::VersionHistory>* Module::mutable_versions() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.Module.versions) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_versions(); +inline std::string* OrganizationSetLogoRequest::mutable_org_id() { + std::string* _s = _internal_mutable_org_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.OrganizationSetLogoRequest.org_id) + return _s; } -inline const ::viam::app::v1::VersionHistory& Module::versions(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.Module.versions) - return _internal_versions().Get(index); +inline const std::string& OrganizationSetLogoRequest::_internal_org_id() const { + return org_id_.Get(); } -inline ::viam::app::v1::VersionHistory* Module::add_versions() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::VersionHistory* _add = _internal_mutable_versions()->Add(); - // @@protoc_insertion_point(field_add:viam.app.v1.Module.versions) - return _add; +inline void OrganizationSetLogoRequest::_internal_set_org_id(const std::string& value) { + + org_id_.Set(value, GetArenaForAllocation()); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::VersionHistory>& Module::versions() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:viam.app.v1.Module.versions) - return _internal_versions(); +inline std::string* OrganizationSetLogoRequest::_internal_mutable_org_id() { + + return org_id_.Mutable(GetArenaForAllocation()); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::VersionHistory>& -Module::_internal_versions() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.versions_; +inline std::string* OrganizationSetLogoRequest::release_org_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.OrganizationSetLogoRequest.org_id) + return org_id_.Release(); } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::VersionHistory>* -Module::_internal_mutable_versions() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.versions_; +inline void OrganizationSetLogoRequest::set_allocated_org_id(std::string* org_id) { + if (org_id != nullptr) { + + } else { + + } + org_id_.SetAllocated(org_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (org_id_.IsDefault()) { + org_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.OrganizationSetLogoRequest.org_id) } -// string url = 5 [json_name = "url"]; -inline void Module::clear_url() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.url_.ClearToEmpty(); +// bytes logo = 2 [json_name = "logo"]; +inline void OrganizationSetLogoRequest::clear_logo() { + logo_.ClearToEmpty(); } -inline const std::string& Module::url() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.Module.url) - return _internal_url(); +inline const std::string& OrganizationSetLogoRequest::logo() const { + // @@protoc_insertion_point(field_get:viam.app.v1.OrganizationSetLogoRequest.logo) + return _internal_logo(); } -template -inline PROTOBUF_ALWAYS_INLINE void Module::set_url(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.url_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.Module.url) +template +inline PROTOBUF_ALWAYS_INLINE +void OrganizationSetLogoRequest::set_logo(ArgT0&& arg0, ArgT... args) { + + logo_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.OrganizationSetLogoRequest.logo) } -inline std::string* Module::mutable_url() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_url(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.Module.url) +inline std::string* OrganizationSetLogoRequest::mutable_logo() { + std::string* _s = _internal_mutable_logo(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.OrganizationSetLogoRequest.logo) return _s; } -inline const std::string& Module::_internal_url() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.url_.Get(); +inline const std::string& OrganizationSetLogoRequest::_internal_logo() const { + return logo_.Get(); } -inline void Module::_internal_set_url(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.url_.Set(value, GetArena()); +inline void OrganizationSetLogoRequest::_internal_set_logo(const std::string& value) { + + logo_.Set(value, GetArenaForAllocation()); } -inline std::string* Module::_internal_mutable_url() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.url_.Mutable( GetArena()); +inline std::string* OrganizationSetLogoRequest::_internal_mutable_logo() { + + return logo_.Mutable(GetArenaForAllocation()); } -inline std::string* Module::release_url() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.Module.url) - return _impl_.url_.Release(); -} -inline void Module::set_allocated_url(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.url_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.url_.IsDefault()) { - _impl_.url_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Module.url) +inline std::string* OrganizationSetLogoRequest::release_logo() { + // @@protoc_insertion_point(field_release:viam.app.v1.OrganizationSetLogoRequest.logo) + return logo_.Release(); +} +inline void OrganizationSetLogoRequest::set_allocated_logo(std::string* logo) { + if (logo != nullptr) { + + } else { + + } + logo_.SetAllocated(logo, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (logo_.IsDefault()) { + logo_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.OrganizationSetLogoRequest.logo) } -// string description = 6 [json_name = "description"]; -inline void Module::clear_description() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.description_.ClearToEmpty(); +// ------------------------------------------------------------------- + +// OrganizationSetLogoResponse + +// ------------------------------------------------------------------- + +// OrganizationGetLogoRequest + +// string org_id = 1 [json_name = "orgId"]; +inline void OrganizationGetLogoRequest::clear_org_id() { + org_id_.ClearToEmpty(); } -inline const std::string& Module::description() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.Module.description) - return _internal_description(); +inline const std::string& OrganizationGetLogoRequest::org_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.OrganizationGetLogoRequest.org_id) + return _internal_org_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void Module::set_description(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.description_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.Module.description) +template +inline PROTOBUF_ALWAYS_INLINE +void OrganizationGetLogoRequest::set_org_id(ArgT0&& arg0, ArgT... args) { + + org_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.OrganizationGetLogoRequest.org_id) } -inline std::string* Module::mutable_description() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_description(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.Module.description) +inline std::string* OrganizationGetLogoRequest::mutable_org_id() { + std::string* _s = _internal_mutable_org_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.OrganizationGetLogoRequest.org_id) return _s; } -inline const std::string& Module::_internal_description() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.description_.Get(); +inline const std::string& OrganizationGetLogoRequest::_internal_org_id() const { + return org_id_.Get(); } -inline void Module::_internal_set_description(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.description_.Set(value, GetArena()); +inline void OrganizationGetLogoRequest::_internal_set_org_id(const std::string& value) { + + org_id_.Set(value, GetArenaForAllocation()); } -inline std::string* Module::_internal_mutable_description() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.description_.Mutable( GetArena()); +inline std::string* OrganizationGetLogoRequest::_internal_mutable_org_id() { + + return org_id_.Mutable(GetArenaForAllocation()); } -inline std::string* Module::release_description() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.Module.description) - return _impl_.description_.Release(); -} -inline void Module::set_allocated_description(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.description_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.description_.IsDefault()) { - _impl_.description_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Module.description) +inline std::string* OrganizationGetLogoRequest::release_org_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.OrganizationGetLogoRequest.org_id) + return org_id_.Release(); } - -// repeated .viam.app.v1.Model models = 7 [json_name = "models"]; -inline int Module::_internal_models_size() const { - return _internal_models().size(); +inline void OrganizationGetLogoRequest::set_allocated_org_id(std::string* org_id) { + if (org_id != nullptr) { + + } else { + + } + org_id_.SetAllocated(org_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (org_id_.IsDefault()) { + org_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.OrganizationGetLogoRequest.org_id) } -inline int Module::models_size() const { - return _internal_models_size(); + +// ------------------------------------------------------------------- + +// OrganizationGetLogoResponse + +// string url = 1 [json_name = "url"]; +inline void OrganizationGetLogoResponse::clear_url() { + url_.ClearToEmpty(); } -inline void Module::clear_models() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.models_.Clear(); +inline const std::string& OrganizationGetLogoResponse::url() const { + // @@protoc_insertion_point(field_get:viam.app.v1.OrganizationGetLogoResponse.url) + return _internal_url(); } -inline ::viam::app::v1::Model* Module::mutable_models(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:viam.app.v1.Module.models) - return _internal_mutable_models()->Mutable(index); +template +inline PROTOBUF_ALWAYS_INLINE +void OrganizationGetLogoResponse::set_url(ArgT0&& arg0, ArgT... args) { + + url_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.OrganizationGetLogoResponse.url) } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::Model>* Module::mutable_models() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.Module.models) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_models(); +inline std::string* OrganizationGetLogoResponse::mutable_url() { + std::string* _s = _internal_mutable_url(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.OrganizationGetLogoResponse.url) + return _s; } -inline const ::viam::app::v1::Model& Module::models(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.Module.models) - return _internal_models().Get(index); +inline const std::string& OrganizationGetLogoResponse::_internal_url() const { + return url_.Get(); } -inline ::viam::app::v1::Model* Module::add_models() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::Model* _add = _internal_mutable_models()->Add(); - // @@protoc_insertion_point(field_add:viam.app.v1.Module.models) - return _add; +inline void OrganizationGetLogoResponse::_internal_set_url(const std::string& value) { + + url_.Set(value, GetArenaForAllocation()); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Model>& Module::models() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:viam.app.v1.Module.models) - return _internal_models(); +inline std::string* OrganizationGetLogoResponse::_internal_mutable_url() { + + return url_.Mutable(GetArenaForAllocation()); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Model>& -Module::_internal_models() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.models_; +inline std::string* OrganizationGetLogoResponse::release_url() { + // @@protoc_insertion_point(field_release:viam.app.v1.OrganizationGetLogoResponse.url) + return url_.Release(); } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::Model>* -Module::_internal_mutable_models() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.models_; +inline void OrganizationGetLogoResponse::set_allocated_url(std::string* url) { + if (url != nullptr) { + + } else { + + } + url_.SetAllocated(url, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (url_.IsDefault()) { + url_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.OrganizationGetLogoResponse.url) } -// int64 total_robot_usage = 8 [json_name = "totalRobotUsage"]; -inline void Module::clear_total_robot_usage() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.total_robot_usage_ = ::int64_t{0}; -} -inline ::int64_t Module::total_robot_usage() const { - // @@protoc_insertion_point(field_get:viam.app.v1.Module.total_robot_usage) - return _internal_total_robot_usage(); +// ------------------------------------------------------------------- + +// EnableAuthServiceRequest + +// string org_id = 1 [json_name = "orgId"]; +inline void EnableAuthServiceRequest::clear_org_id() { + org_id_.ClearToEmpty(); } -inline void Module::set_total_robot_usage(::int64_t value) { - _internal_set_total_robot_usage(value); - // @@protoc_insertion_point(field_set:viam.app.v1.Module.total_robot_usage) +inline const std::string& EnableAuthServiceRequest::org_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.EnableAuthServiceRequest.org_id) + return _internal_org_id(); } -inline ::int64_t Module::_internal_total_robot_usage() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.total_robot_usage_; +template +inline PROTOBUF_ALWAYS_INLINE +void EnableAuthServiceRequest::set_org_id(ArgT0&& arg0, ArgT... args) { + + org_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.EnableAuthServiceRequest.org_id) } -inline void Module::_internal_set_total_robot_usage(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.total_robot_usage_ = value; +inline std::string* EnableAuthServiceRequest::mutable_org_id() { + std::string* _s = _internal_mutable_org_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.EnableAuthServiceRequest.org_id) + return _s; } - -// int64 total_organization_usage = 9 [json_name = "totalOrganizationUsage"]; -inline void Module::clear_total_organization_usage() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.total_organization_usage_ = ::int64_t{0}; +inline const std::string& EnableAuthServiceRequest::_internal_org_id() const { + return org_id_.Get(); } -inline ::int64_t Module::total_organization_usage() const { - // @@protoc_insertion_point(field_get:viam.app.v1.Module.total_organization_usage) - return _internal_total_organization_usage(); +inline void EnableAuthServiceRequest::_internal_set_org_id(const std::string& value) { + + org_id_.Set(value, GetArenaForAllocation()); } -inline void Module::set_total_organization_usage(::int64_t value) { - _internal_set_total_organization_usage(value); - // @@protoc_insertion_point(field_set:viam.app.v1.Module.total_organization_usage) +inline std::string* EnableAuthServiceRequest::_internal_mutable_org_id() { + + return org_id_.Mutable(GetArenaForAllocation()); } -inline ::int64_t Module::_internal_total_organization_usage() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.total_organization_usage_; +inline std::string* EnableAuthServiceRequest::release_org_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.EnableAuthServiceRequest.org_id) + return org_id_.Release(); } -inline void Module::_internal_set_total_organization_usage(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.total_organization_usage_ = value; +inline void EnableAuthServiceRequest::set_allocated_org_id(std::string* org_id) { + if (org_id != nullptr) { + + } else { + + } + org_id_.SetAllocated(org_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (org_id_.IsDefault()) { + org_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.EnableAuthServiceRequest.org_id) } -// string organization_id = 10 [json_name = "organizationId"]; -inline void Module::clear_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.ClearToEmpty(); +// ------------------------------------------------------------------- + +// EnableAuthServiceResponse + +// ------------------------------------------------------------------- + +// DisableAuthServiceRequest + +// string org_id = 1 [json_name = "orgId"]; +inline void DisableAuthServiceRequest::clear_org_id() { + org_id_.ClearToEmpty(); } -inline const std::string& Module::organization_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.Module.organization_id) - return _internal_organization_id(); +inline const std::string& DisableAuthServiceRequest::org_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.DisableAuthServiceRequest.org_id) + return _internal_org_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void Module::set_organization_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.Module.organization_id) +template +inline PROTOBUF_ALWAYS_INLINE +void DisableAuthServiceRequest::set_org_id(ArgT0&& arg0, ArgT... args) { + + org_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.DisableAuthServiceRequest.org_id) } -inline std::string* Module::mutable_organization_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_organization_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.Module.organization_id) +inline std::string* DisableAuthServiceRequest::mutable_org_id() { + std::string* _s = _internal_mutable_org_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.DisableAuthServiceRequest.org_id) return _s; } -inline const std::string& Module::_internal_organization_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.organization_id_.Get(); +inline const std::string& DisableAuthServiceRequest::_internal_org_id() const { + return org_id_.Get(); } -inline void Module::_internal_set_organization_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_id_.Set(value, GetArena()); +inline void DisableAuthServiceRequest::_internal_set_org_id(const std::string& value) { + + org_id_.Set(value, GetArenaForAllocation()); } -inline std::string* Module::_internal_mutable_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.organization_id_.Mutable( GetArena()); +inline std::string* DisableAuthServiceRequest::_internal_mutable_org_id() { + + return org_id_.Mutable(GetArenaForAllocation()); } -inline std::string* Module::release_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.Module.organization_id) - return _impl_.organization_id_.Release(); -} -inline void Module::set_allocated_organization_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.organization_id_.IsDefault()) { - _impl_.organization_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Module.organization_id) +inline std::string* DisableAuthServiceRequest::release_org_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.DisableAuthServiceRequest.org_id) + return org_id_.Release(); +} +inline void DisableAuthServiceRequest::set_allocated_org_id(std::string* org_id) { + if (org_id != nullptr) { + + } else { + + } + org_id_.SetAllocated(org_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (org_id_.IsDefault()) { + org_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.DisableAuthServiceRequest.org_id) } -// string entrypoint = 11 [json_name = "entrypoint"]; -inline void Module::clear_entrypoint() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.entrypoint_.ClearToEmpty(); +// ------------------------------------------------------------------- + +// DisableAuthServiceResponse + +// ------------------------------------------------------------------- + +// CreateOAuthAppRequest + +// string org_id = 1 [json_name = "orgId"]; +inline void CreateOAuthAppRequest::clear_org_id() { + org_id_.ClearToEmpty(); } -inline const std::string& Module::entrypoint() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.Module.entrypoint) - return _internal_entrypoint(); +inline const std::string& CreateOAuthAppRequest::org_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.CreateOAuthAppRequest.org_id) + return _internal_org_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void Module::set_entrypoint(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.entrypoint_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.Module.entrypoint) +template +inline PROTOBUF_ALWAYS_INLINE +void CreateOAuthAppRequest::set_org_id(ArgT0&& arg0, ArgT... args) { + + org_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.CreateOAuthAppRequest.org_id) } -inline std::string* Module::mutable_entrypoint() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_entrypoint(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.Module.entrypoint) +inline std::string* CreateOAuthAppRequest::mutable_org_id() { + std::string* _s = _internal_mutable_org_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateOAuthAppRequest.org_id) return _s; } -inline const std::string& Module::_internal_entrypoint() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.entrypoint_.Get(); +inline const std::string& CreateOAuthAppRequest::_internal_org_id() const { + return org_id_.Get(); } -inline void Module::_internal_set_entrypoint(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.entrypoint_.Set(value, GetArena()); +inline void CreateOAuthAppRequest::_internal_set_org_id(const std::string& value) { + + org_id_.Set(value, GetArenaForAllocation()); } -inline std::string* Module::_internal_mutable_entrypoint() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.entrypoint_.Mutable( GetArena()); +inline std::string* CreateOAuthAppRequest::_internal_mutable_org_id() { + + return org_id_.Mutable(GetArenaForAllocation()); } -inline std::string* Module::release_entrypoint() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.Module.entrypoint) - return _impl_.entrypoint_.Release(); -} -inline void Module::set_allocated_entrypoint(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.entrypoint_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.entrypoint_.IsDefault()) { - _impl_.entrypoint_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Module.entrypoint) +inline std::string* CreateOAuthAppRequest::release_org_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.CreateOAuthAppRequest.org_id) + return org_id_.Release(); +} +inline void CreateOAuthAppRequest::set_allocated_org_id(std::string* org_id) { + if (org_id != nullptr) { + + } else { + + } + org_id_.SetAllocated(org_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (org_id_.IsDefault()) { + org_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateOAuthAppRequest.org_id) } -// string public_namespace = 12 [json_name = "publicNamespace"]; -inline void Module::clear_public_namespace() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.public_namespace_.ClearToEmpty(); +// string client_name = 2 [json_name = "clientName"]; +inline void CreateOAuthAppRequest::clear_client_name() { + client_name_.ClearToEmpty(); } -inline const std::string& Module::public_namespace() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.Module.public_namespace) - return _internal_public_namespace(); +inline const std::string& CreateOAuthAppRequest::client_name() const { + // @@protoc_insertion_point(field_get:viam.app.v1.CreateOAuthAppRequest.client_name) + return _internal_client_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void Module::set_public_namespace(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.public_namespace_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.Module.public_namespace) +template +inline PROTOBUF_ALWAYS_INLINE +void CreateOAuthAppRequest::set_client_name(ArgT0&& arg0, ArgT... args) { + + client_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.CreateOAuthAppRequest.client_name) } -inline std::string* Module::mutable_public_namespace() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_public_namespace(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.Module.public_namespace) +inline std::string* CreateOAuthAppRequest::mutable_client_name() { + std::string* _s = _internal_mutable_client_name(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateOAuthAppRequest.client_name) return _s; } -inline const std::string& Module::_internal_public_namespace() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.public_namespace_.Get(); +inline const std::string& CreateOAuthAppRequest::_internal_client_name() const { + return client_name_.Get(); } -inline void Module::_internal_set_public_namespace(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.public_namespace_.Set(value, GetArena()); +inline void CreateOAuthAppRequest::_internal_set_client_name(const std::string& value) { + + client_name_.Set(value, GetArenaForAllocation()); } -inline std::string* Module::_internal_mutable_public_namespace() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.public_namespace_.Mutable( GetArena()); +inline std::string* CreateOAuthAppRequest::_internal_mutable_client_name() { + + return client_name_.Mutable(GetArenaForAllocation()); } -inline std::string* Module::release_public_namespace() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.Module.public_namespace) - return _impl_.public_namespace_.Release(); -} -inline void Module::set_allocated_public_namespace(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.public_namespace_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.public_namespace_.IsDefault()) { - _impl_.public_namespace_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Module.public_namespace) +inline std::string* CreateOAuthAppRequest::release_client_name() { + // @@protoc_insertion_point(field_release:viam.app.v1.CreateOAuthAppRequest.client_name) + return client_name_.Release(); +} +inline void CreateOAuthAppRequest::set_allocated_client_name(std::string* client_name) { + if (client_name != nullptr) { + + } else { + + } + client_name_.SetAllocated(client_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (client_name_.IsDefault()) { + client_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateOAuthAppRequest.client_name) } -// optional string first_run = 13 [json_name = "firstRun"]; -inline bool Module::has_first_run() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - return value; +// .viam.app.v1.OAuthConfig oauth_config = 3 [json_name = "oauthConfig"]; +inline bool CreateOAuthAppRequest::_internal_has_oauth_config() const { + return this != internal_default_instance() && oauth_config_ != nullptr; } -inline void Module::clear_first_run() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.first_run_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000001u; +inline bool CreateOAuthAppRequest::has_oauth_config() const { + return _internal_has_oauth_config(); } -inline const std::string& Module::first_run() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.Module.first_run) - return _internal_first_run(); +inline void CreateOAuthAppRequest::clear_oauth_config() { + if (GetArenaForAllocation() == nullptr && oauth_config_ != nullptr) { + delete oauth_config_; + } + oauth_config_ = nullptr; } -template -inline PROTOBUF_ALWAYS_INLINE void Module::set_first_run(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.first_run_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.Module.first_run) +inline const ::viam::app::v1::OAuthConfig& CreateOAuthAppRequest::_internal_oauth_config() const { + const ::viam::app::v1::OAuthConfig* p = oauth_config_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_OAuthConfig_default_instance_); } -inline std::string* Module::mutable_first_run() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_first_run(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.Module.first_run) - return _s; +inline const ::viam::app::v1::OAuthConfig& CreateOAuthAppRequest::oauth_config() const { + // @@protoc_insertion_point(field_get:viam.app.v1.CreateOAuthAppRequest.oauth_config) + return _internal_oauth_config(); } -inline const std::string& Module::_internal_first_run() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.first_run_.Get(); +inline void CreateOAuthAppRequest::unsafe_arena_set_allocated_oauth_config( + ::viam::app::v1::OAuthConfig* oauth_config) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(oauth_config_); + } + oauth_config_ = oauth_config; + if (oauth_config) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.CreateOAuthAppRequest.oauth_config) } -inline void Module::_internal_set_first_run(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.first_run_.Set(value, GetArena()); +inline ::viam::app::v1::OAuthConfig* CreateOAuthAppRequest::release_oauth_config() { + + ::viam::app::v1::OAuthConfig* temp = oauth_config_; + oauth_config_ = 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 std::string* Module::_internal_mutable_first_run() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.first_run_.Mutable( GetArena()); +inline ::viam::app::v1::OAuthConfig* CreateOAuthAppRequest::unsafe_arena_release_oauth_config() { + // @@protoc_insertion_point(field_release:viam.app.v1.CreateOAuthAppRequest.oauth_config) + + ::viam::app::v1::OAuthConfig* temp = oauth_config_; + oauth_config_ = nullptr; + return temp; } -inline std::string* Module::release_first_run() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.Module.first_run) - if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { - return nullptr; +inline ::viam::app::v1::OAuthConfig* CreateOAuthAppRequest::_internal_mutable_oauth_config() { + + if (oauth_config_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::OAuthConfig>(GetArenaForAllocation()); + oauth_config_ = p; } - _impl_._has_bits_[0] &= ~0x00000001u; - auto* released = _impl_.first_run_.Release(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.first_run_.Set("", GetArena()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return released; + return oauth_config_; } -inline void Module::set_allocated_first_run(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; +inline ::viam::app::v1::OAuthConfig* CreateOAuthAppRequest::mutable_oauth_config() { + ::viam::app::v1::OAuthConfig* _msg = _internal_mutable_oauth_config(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateOAuthAppRequest.oauth_config) + return _msg; +} +inline void CreateOAuthAppRequest::set_allocated_oauth_config(::viam::app::v1::OAuthConfig* oauth_config) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete oauth_config_; + } + if (oauth_config) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(oauth_config); + if (message_arena != submessage_arena) { + oauth_config = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, oauth_config, submessage_arena); + } + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - _impl_.first_run_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.first_run_.IsDefault()) { - _impl_.first_run_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Module.first_run) + oauth_config_ = oauth_config; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateOAuthAppRequest.oauth_config) } // ------------------------------------------------------------------- -// VersionHistory +// CreateOAuthAppResponse -// string version = 1 [json_name = "version"]; -inline void VersionHistory::clear_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.version_.ClearToEmpty(); +// string client_id = 1 [json_name = "clientId"]; +inline void CreateOAuthAppResponse::clear_client_id() { + client_id_.ClearToEmpty(); } -inline const std::string& VersionHistory::version() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.VersionHistory.version) - return _internal_version(); +inline const std::string& CreateOAuthAppResponse::client_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.CreateOAuthAppResponse.client_id) + return _internal_client_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void VersionHistory::set_version(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.version_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.VersionHistory.version) +template +inline PROTOBUF_ALWAYS_INLINE +void CreateOAuthAppResponse::set_client_id(ArgT0&& arg0, ArgT... args) { + + client_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.CreateOAuthAppResponse.client_id) } -inline std::string* VersionHistory::mutable_version() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_version(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.VersionHistory.version) +inline std::string* CreateOAuthAppResponse::mutable_client_id() { + std::string* _s = _internal_mutable_client_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateOAuthAppResponse.client_id) return _s; } -inline const std::string& VersionHistory::_internal_version() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.version_.Get(); +inline const std::string& CreateOAuthAppResponse::_internal_client_id() const { + return client_id_.Get(); } -inline void VersionHistory::_internal_set_version(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.version_.Set(value, GetArena()); +inline void CreateOAuthAppResponse::_internal_set_client_id(const std::string& value) { + + client_id_.Set(value, GetArenaForAllocation()); } -inline std::string* VersionHistory::_internal_mutable_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.version_.Mutable( GetArena()); +inline std::string* CreateOAuthAppResponse::_internal_mutable_client_id() { + + return client_id_.Mutable(GetArenaForAllocation()); } -inline std::string* VersionHistory::release_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.VersionHistory.version) - return _impl_.version_.Release(); -} -inline void VersionHistory::set_allocated_version(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.version_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.version_.IsDefault()) { - _impl_.version_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.VersionHistory.version) +inline std::string* CreateOAuthAppResponse::release_client_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.CreateOAuthAppResponse.client_id) + return client_id_.Release(); } - -// repeated .viam.app.v1.Uploads files = 2 [json_name = "files"]; -inline int VersionHistory::_internal_files_size() const { - return _internal_files().size(); +inline void CreateOAuthAppResponse::set_allocated_client_id(std::string* client_id) { + if (client_id != nullptr) { + + } else { + + } + client_id_.SetAllocated(client_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (client_id_.IsDefault()) { + client_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateOAuthAppResponse.client_id) } -inline int VersionHistory::files_size() const { - return _internal_files_size(); + +// string client_secret = 2 [json_name = "clientSecret"]; +inline void CreateOAuthAppResponse::clear_client_secret() { + client_secret_.ClearToEmpty(); } -inline void VersionHistory::clear_files() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.files_.Clear(); +inline const std::string& CreateOAuthAppResponse::client_secret() const { + // @@protoc_insertion_point(field_get:viam.app.v1.CreateOAuthAppResponse.client_secret) + return _internal_client_secret(); } -inline ::viam::app::v1::Uploads* VersionHistory::mutable_files(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:viam.app.v1.VersionHistory.files) - return _internal_mutable_files()->Mutable(index); +template +inline PROTOBUF_ALWAYS_INLINE +void CreateOAuthAppResponse::set_client_secret(ArgT0&& arg0, ArgT... args) { + + client_secret_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.CreateOAuthAppResponse.client_secret) } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::Uploads>* VersionHistory::mutable_files() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.VersionHistory.files) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_files(); +inline std::string* CreateOAuthAppResponse::mutable_client_secret() { + std::string* _s = _internal_mutable_client_secret(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateOAuthAppResponse.client_secret) + return _s; } -inline const ::viam::app::v1::Uploads& VersionHistory::files(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.VersionHistory.files) - return _internal_files().Get(index); +inline const std::string& CreateOAuthAppResponse::_internal_client_secret() const { + return client_secret_.Get(); } -inline ::viam::app::v1::Uploads* VersionHistory::add_files() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::Uploads* _add = _internal_mutable_files()->Add(); - // @@protoc_insertion_point(field_add:viam.app.v1.VersionHistory.files) - return _add; +inline void CreateOAuthAppResponse::_internal_set_client_secret(const std::string& value) { + + client_secret_.Set(value, GetArenaForAllocation()); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Uploads>& VersionHistory::files() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:viam.app.v1.VersionHistory.files) - return _internal_files(); +inline std::string* CreateOAuthAppResponse::_internal_mutable_client_secret() { + + return client_secret_.Mutable(GetArenaForAllocation()); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Uploads>& -VersionHistory::_internal_files() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.files_; +inline std::string* CreateOAuthAppResponse::release_client_secret() { + // @@protoc_insertion_point(field_release:viam.app.v1.CreateOAuthAppResponse.client_secret) + return client_secret_.Release(); } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::Uploads>* -VersionHistory::_internal_mutable_files() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.files_; +inline void CreateOAuthAppResponse::set_allocated_client_secret(std::string* client_secret) { + if (client_secret != nullptr) { + + } else { + + } + client_secret_.SetAllocated(client_secret, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (client_secret_.IsDefault()) { + client_secret_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateOAuthAppResponse.client_secret) } -// repeated .viam.app.v1.Model models = 3 [json_name = "models"]; -inline int VersionHistory::_internal_models_size() const { - return _internal_models().size(); -} -inline int VersionHistory::models_size() const { - return _internal_models_size(); +// ------------------------------------------------------------------- + +// ReadOAuthAppRequest + +// string org_id = 1 [json_name = "orgId"]; +inline void ReadOAuthAppRequest::clear_org_id() { + org_id_.ClearToEmpty(); } -inline void VersionHistory::clear_models() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.models_.Clear(); +inline const std::string& ReadOAuthAppRequest::org_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ReadOAuthAppRequest.org_id) + return _internal_org_id(); } -inline ::viam::app::v1::Model* VersionHistory::mutable_models(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:viam.app.v1.VersionHistory.models) - return _internal_mutable_models()->Mutable(index); +template +inline PROTOBUF_ALWAYS_INLINE +void ReadOAuthAppRequest::set_org_id(ArgT0&& arg0, ArgT... args) { + + org_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.ReadOAuthAppRequest.org_id) } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::Model>* VersionHistory::mutable_models() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.VersionHistory.models) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_models(); +inline std::string* ReadOAuthAppRequest::mutable_org_id() { + std::string* _s = _internal_mutable_org_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ReadOAuthAppRequest.org_id) + return _s; } -inline const ::viam::app::v1::Model& VersionHistory::models(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.VersionHistory.models) - return _internal_models().Get(index); +inline const std::string& ReadOAuthAppRequest::_internal_org_id() const { + return org_id_.Get(); } -inline ::viam::app::v1::Model* VersionHistory::add_models() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::Model* _add = _internal_mutable_models()->Add(); - // @@protoc_insertion_point(field_add:viam.app.v1.VersionHistory.models) - return _add; +inline void ReadOAuthAppRequest::_internal_set_org_id(const std::string& value) { + + org_id_.Set(value, GetArenaForAllocation()); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Model>& VersionHistory::models() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:viam.app.v1.VersionHistory.models) - return _internal_models(); +inline std::string* ReadOAuthAppRequest::_internal_mutable_org_id() { + + return org_id_.Mutable(GetArenaForAllocation()); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Model>& -VersionHistory::_internal_models() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.models_; +inline std::string* ReadOAuthAppRequest::release_org_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.ReadOAuthAppRequest.org_id) + return org_id_.Release(); } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::Model>* -VersionHistory::_internal_mutable_models() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.models_; +inline void ReadOAuthAppRequest::set_allocated_org_id(std::string* org_id) { + if (org_id != nullptr) { + + } else { + + } + org_id_.SetAllocated(org_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (org_id_.IsDefault()) { + org_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ReadOAuthAppRequest.org_id) } -// string entrypoint = 4 [json_name = "entrypoint"]; -inline void VersionHistory::clear_entrypoint() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.entrypoint_.ClearToEmpty(); +// string client_id = 2 [json_name = "clientId"]; +inline void ReadOAuthAppRequest::clear_client_id() { + client_id_.ClearToEmpty(); } -inline const std::string& VersionHistory::entrypoint() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.VersionHistory.entrypoint) - return _internal_entrypoint(); +inline const std::string& ReadOAuthAppRequest::client_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ReadOAuthAppRequest.client_id) + return _internal_client_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void VersionHistory::set_entrypoint(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.entrypoint_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.VersionHistory.entrypoint) +template +inline PROTOBUF_ALWAYS_INLINE +void ReadOAuthAppRequest::set_client_id(ArgT0&& arg0, ArgT... args) { + + client_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.ReadOAuthAppRequest.client_id) } -inline std::string* VersionHistory::mutable_entrypoint() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_entrypoint(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.VersionHistory.entrypoint) +inline std::string* ReadOAuthAppRequest::mutable_client_id() { + std::string* _s = _internal_mutable_client_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ReadOAuthAppRequest.client_id) return _s; } -inline const std::string& VersionHistory::_internal_entrypoint() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.entrypoint_.Get(); +inline const std::string& ReadOAuthAppRequest::_internal_client_id() const { + return client_id_.Get(); } -inline void VersionHistory::_internal_set_entrypoint(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.entrypoint_.Set(value, GetArena()); +inline void ReadOAuthAppRequest::_internal_set_client_id(const std::string& value) { + + client_id_.Set(value, GetArenaForAllocation()); } -inline std::string* VersionHistory::_internal_mutable_entrypoint() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.entrypoint_.Mutable( GetArena()); +inline std::string* ReadOAuthAppRequest::_internal_mutable_client_id() { + + return client_id_.Mutable(GetArenaForAllocation()); } -inline std::string* VersionHistory::release_entrypoint() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.VersionHistory.entrypoint) - return _impl_.entrypoint_.Release(); -} -inline void VersionHistory::set_allocated_entrypoint(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.entrypoint_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.entrypoint_.IsDefault()) { - _impl_.entrypoint_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.VersionHistory.entrypoint) +inline std::string* ReadOAuthAppRequest::release_client_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.ReadOAuthAppRequest.client_id) + return client_id_.Release(); } - -// optional string first_run = 5 [json_name = "firstRun"]; -inline bool VersionHistory::has_first_run() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - return value; +inline void ReadOAuthAppRequest::set_allocated_client_id(std::string* client_id) { + if (client_id != nullptr) { + + } else { + + } + client_id_.SetAllocated(client_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (client_id_.IsDefault()) { + client_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ReadOAuthAppRequest.client_id) } -inline void VersionHistory::clear_first_run() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.first_run_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000001u; + +// ------------------------------------------------------------------- + +// ReadOAuthAppResponse + +// string client_name = 1 [json_name = "clientName"]; +inline void ReadOAuthAppResponse::clear_client_name() { + client_name_.ClearToEmpty(); } -inline const std::string& VersionHistory::first_run() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.VersionHistory.first_run) - return _internal_first_run(); +inline const std::string& ReadOAuthAppResponse::client_name() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ReadOAuthAppResponse.client_name) + return _internal_client_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void VersionHistory::set_first_run(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.first_run_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.VersionHistory.first_run) +template +inline PROTOBUF_ALWAYS_INLINE +void ReadOAuthAppResponse::set_client_name(ArgT0&& arg0, ArgT... args) { + + client_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.ReadOAuthAppResponse.client_name) } -inline std::string* VersionHistory::mutable_first_run() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_first_run(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.VersionHistory.first_run) +inline std::string* ReadOAuthAppResponse::mutable_client_name() { + std::string* _s = _internal_mutable_client_name(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ReadOAuthAppResponse.client_name) return _s; } -inline const std::string& VersionHistory::_internal_first_run() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.first_run_.Get(); +inline const std::string& ReadOAuthAppResponse::_internal_client_name() const { + return client_name_.Get(); } -inline void VersionHistory::_internal_set_first_run(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.first_run_.Set(value, GetArena()); +inline void ReadOAuthAppResponse::_internal_set_client_name(const std::string& value) { + + client_name_.Set(value, GetArenaForAllocation()); } -inline std::string* VersionHistory::_internal_mutable_first_run() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.first_run_.Mutable( GetArena()); +inline std::string* ReadOAuthAppResponse::_internal_mutable_client_name() { + + return client_name_.Mutable(GetArenaForAllocation()); } -inline std::string* VersionHistory::release_first_run() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.VersionHistory.first_run) - if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { - return nullptr; - } - _impl_._has_bits_[0] &= ~0x00000001u; - auto* released = _impl_.first_run_.Release(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.first_run_.Set("", GetArena()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return released; +inline std::string* ReadOAuthAppResponse::release_client_name() { + // @@protoc_insertion_point(field_release:viam.app.v1.ReadOAuthAppResponse.client_name) + return client_name_.Release(); } -inline void VersionHistory::set_allocated_first_run(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; +inline void ReadOAuthAppResponse::set_allocated_client_name(std::string* client_name) { + if (client_name != nullptr) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - _impl_.first_run_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.first_run_.IsDefault()) { - _impl_.first_run_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.VersionHistory.first_run) + client_name_.SetAllocated(client_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (client_name_.IsDefault()) { + client_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ReadOAuthAppResponse.client_name) } -// ------------------------------------------------------------------- - -// Uploads - -// string platform = 1 [json_name = "platform"]; -inline void Uploads::clear_platform() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.platform_.ClearToEmpty(); +// string client_secret = 2 [json_name = "clientSecret"]; +inline void ReadOAuthAppResponse::clear_client_secret() { + client_secret_.ClearToEmpty(); } -inline const std::string& Uploads::platform() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.Uploads.platform) - return _internal_platform(); +inline const std::string& ReadOAuthAppResponse::client_secret() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ReadOAuthAppResponse.client_secret) + return _internal_client_secret(); } -template -inline PROTOBUF_ALWAYS_INLINE void Uploads::set_platform(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.platform_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.Uploads.platform) +template +inline PROTOBUF_ALWAYS_INLINE +void ReadOAuthAppResponse::set_client_secret(ArgT0&& arg0, ArgT... args) { + + client_secret_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.ReadOAuthAppResponse.client_secret) } -inline std::string* Uploads::mutable_platform() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_platform(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.Uploads.platform) +inline std::string* ReadOAuthAppResponse::mutable_client_secret() { + std::string* _s = _internal_mutable_client_secret(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ReadOAuthAppResponse.client_secret) return _s; } -inline const std::string& Uploads::_internal_platform() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.platform_.Get(); +inline const std::string& ReadOAuthAppResponse::_internal_client_secret() const { + return client_secret_.Get(); } -inline void Uploads::_internal_set_platform(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.platform_.Set(value, GetArena()); +inline void ReadOAuthAppResponse::_internal_set_client_secret(const std::string& value) { + + client_secret_.Set(value, GetArenaForAllocation()); } -inline std::string* Uploads::_internal_mutable_platform() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.platform_.Mutable( GetArena()); +inline std::string* ReadOAuthAppResponse::_internal_mutable_client_secret() { + + return client_secret_.Mutable(GetArenaForAllocation()); } -inline std::string* Uploads::release_platform() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.Uploads.platform) - return _impl_.platform_.Release(); -} -inline void Uploads::set_allocated_platform(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.platform_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.platform_.IsDefault()) { - _impl_.platform_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Uploads.platform) +inline std::string* ReadOAuthAppResponse::release_client_secret() { + // @@protoc_insertion_point(field_release:viam.app.v1.ReadOAuthAppResponse.client_secret) + return client_secret_.Release(); +} +inline void ReadOAuthAppResponse::set_allocated_client_secret(std::string* client_secret) { + if (client_secret != nullptr) { + + } else { + + } + client_secret_.SetAllocated(client_secret, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (client_secret_.IsDefault()) { + client_secret_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ReadOAuthAppResponse.client_secret) } -// .google.protobuf.Timestamp uploaded_at = 2 [json_name = "uploadedAt"]; -inline bool Uploads::has_uploaded_at() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.uploaded_at_ != nullptr); - return value; +// .viam.app.v1.OAuthConfig oauth_config = 3 [json_name = "oauthConfig"]; +inline bool ReadOAuthAppResponse::_internal_has_oauth_config() const { + return this != internal_default_instance() && oauth_config_ != nullptr; } -inline const ::google::protobuf::Timestamp& Uploads::_internal_uploaded_at() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Timestamp* p = _impl_.uploaded_at_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); +inline bool ReadOAuthAppResponse::has_oauth_config() const { + return _internal_has_oauth_config(); } -inline const ::google::protobuf::Timestamp& Uploads::uploaded_at() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.Uploads.uploaded_at) - return _internal_uploaded_at(); +inline void ReadOAuthAppResponse::clear_oauth_config() { + if (GetArenaForAllocation() == nullptr && oauth_config_ != nullptr) { + delete oauth_config_; + } + oauth_config_ = nullptr; +} +inline const ::viam::app::v1::OAuthConfig& ReadOAuthAppResponse::_internal_oauth_config() const { + const ::viam::app::v1::OAuthConfig* p = oauth_config_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_OAuthConfig_default_instance_); } -inline void Uploads::unsafe_arena_set_allocated_uploaded_at(::google::protobuf::Timestamp* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.uploaded_at_); +inline const ::viam::app::v1::OAuthConfig& ReadOAuthAppResponse::oauth_config() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ReadOAuthAppResponse.oauth_config) + return _internal_oauth_config(); +} +inline void ReadOAuthAppResponse::unsafe_arena_set_allocated_oauth_config( + ::viam::app::v1::OAuthConfig* oauth_config) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(oauth_config_); } - _impl_.uploaded_at_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + oauth_config_ = oauth_config; + if (oauth_config) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.Uploads.uploaded_at) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.ReadOAuthAppResponse.oauth_config) } -inline ::google::protobuf::Timestamp* Uploads::release_uploaded_at() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Timestamp* released = _impl_.uploaded_at_; - _impl_.uploaded_at_ = nullptr; +inline ::viam::app::v1::OAuthConfig* ReadOAuthAppResponse::release_oauth_config() { + + ::viam::app::v1::OAuthConfig* temp = oauth_config_; + oauth_config_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Timestamp* Uploads::unsafe_arena_release_uploaded_at() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.Uploads.uploaded_at) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Timestamp* temp = _impl_.uploaded_at_; - _impl_.uploaded_at_ = nullptr; +inline ::viam::app::v1::OAuthConfig* ReadOAuthAppResponse::unsafe_arena_release_oauth_config() { + // @@protoc_insertion_point(field_release:viam.app.v1.ReadOAuthAppResponse.oauth_config) + + ::viam::app::v1::OAuthConfig* temp = oauth_config_; + oauth_config_ = nullptr; return temp; } -inline ::google::protobuf::Timestamp* Uploads::_internal_mutable_uploaded_at() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.uploaded_at_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena()); - _impl_.uploaded_at_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); +inline ::viam::app::v1::OAuthConfig* ReadOAuthAppResponse::_internal_mutable_oauth_config() { + + if (oauth_config_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::OAuthConfig>(GetArenaForAllocation()); + oauth_config_ = p; } - return _impl_.uploaded_at_; + return oauth_config_; } -inline ::google::protobuf::Timestamp* Uploads::mutable_uploaded_at() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Timestamp* _msg = _internal_mutable_uploaded_at(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.Uploads.uploaded_at) +inline ::viam::app::v1::OAuthConfig* ReadOAuthAppResponse::mutable_oauth_config() { + ::viam::app::v1::OAuthConfig* _msg = _internal_mutable_oauth_config(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ReadOAuthAppResponse.oauth_config) return _msg; } -inline void Uploads::set_allocated_uploaded_at(::google::protobuf::Timestamp* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ReadOAuthAppResponse::set_allocated_oauth_config(::viam::app::v1::OAuthConfig* oauth_config) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.uploaded_at_); + delete oauth_config_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (oauth_config) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(oauth_config); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + oauth_config = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, oauth_config, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.uploaded_at_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Uploads.uploaded_at) + oauth_config_ = oauth_config; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ReadOAuthAppResponse.oauth_config) } // ------------------------------------------------------------------- -// ListModulesRequest +// UpdateOAuthAppRequest -// optional string organization_id = 1 [json_name = "organizationId"]; -inline bool ListModulesRequest::has_organization_id() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline void ListModulesRequest::clear_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_id_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000001u; +// string org_id = 1 [json_name = "orgId"]; +inline void UpdateOAuthAppRequest::clear_org_id() { + org_id_.ClearToEmpty(); } -inline const std::string& ListModulesRequest::organization_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.ListModulesRequest.organization_id) - return _internal_organization_id(); +inline const std::string& UpdateOAuthAppRequest::org_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateOAuthAppRequest.org_id) + return _internal_org_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void ListModulesRequest::set_organization_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.organization_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.ListModulesRequest.organization_id) +template +inline PROTOBUF_ALWAYS_INLINE +void UpdateOAuthAppRequest::set_org_id(ArgT0&& arg0, ArgT... args) { + + org_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateOAuthAppRequest.org_id) } -inline std::string* ListModulesRequest::mutable_organization_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_organization_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.ListModulesRequest.organization_id) +inline std::string* UpdateOAuthAppRequest::mutable_org_id() { + std::string* _s = _internal_mutable_org_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateOAuthAppRequest.org_id) return _s; } -inline const std::string& ListModulesRequest::_internal_organization_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.organization_id_.Get(); +inline const std::string& UpdateOAuthAppRequest::_internal_org_id() const { + return org_id_.Get(); } -inline void ListModulesRequest::_internal_set_organization_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.organization_id_.Set(value, GetArena()); +inline void UpdateOAuthAppRequest::_internal_set_org_id(const std::string& value) { + + org_id_.Set(value, GetArenaForAllocation()); } -inline std::string* ListModulesRequest::_internal_mutable_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.organization_id_.Mutable( GetArena()); +inline std::string* UpdateOAuthAppRequest::_internal_mutable_org_id() { + + return org_id_.Mutable(GetArenaForAllocation()); } -inline std::string* ListModulesRequest::release_organization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.ListModulesRequest.organization_id) - if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { - return nullptr; - } - _impl_._has_bits_[0] &= ~0x00000001u; - auto* released = _impl_.organization_id_.Release(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.organization_id_.Set("", GetArena()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return released; +inline std::string* UpdateOAuthAppRequest::release_org_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateOAuthAppRequest.org_id) + return org_id_.Release(); } -inline void ListModulesRequest::set_allocated_organization_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; +inline void UpdateOAuthAppRequest::set_allocated_org_id(std::string* org_id) { + if (org_id != nullptr) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - _impl_.organization_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.organization_id_.IsDefault()) { - _impl_.organization_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ListModulesRequest.organization_id) + org_id_.SetAllocated(org_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (org_id_.IsDefault()) { + org_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateOAuthAppRequest.org_id) } -// ------------------------------------------------------------------- +// string client_id = 2 [json_name = "clientId"]; +inline void UpdateOAuthAppRequest::clear_client_id() { + client_id_.ClearToEmpty(); +} +inline const std::string& UpdateOAuthAppRequest::client_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateOAuthAppRequest.client_id) + return _internal_client_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void UpdateOAuthAppRequest::set_client_id(ArgT0&& arg0, ArgT... args) { + + client_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateOAuthAppRequest.client_id) +} +inline std::string* UpdateOAuthAppRequest::mutable_client_id() { + std::string* _s = _internal_mutable_client_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateOAuthAppRequest.client_id) + return _s; +} +inline const std::string& UpdateOAuthAppRequest::_internal_client_id() const { + return client_id_.Get(); +} +inline void UpdateOAuthAppRequest::_internal_set_client_id(const std::string& value) { + + client_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* UpdateOAuthAppRequest::_internal_mutable_client_id() { + + return client_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* UpdateOAuthAppRequest::release_client_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateOAuthAppRequest.client_id) + return client_id_.Release(); +} +inline void UpdateOAuthAppRequest::set_allocated_client_id(std::string* client_id) { + if (client_id != nullptr) { + + } else { + + } + client_id_.SetAllocated(client_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (client_id_.IsDefault()) { + client_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateOAuthAppRequest.client_id) +} -// ListModulesResponse +// string client_name = 3 [json_name = "clientName"]; +inline void UpdateOAuthAppRequest::clear_client_name() { + client_name_.ClearToEmpty(); +} +inline const std::string& UpdateOAuthAppRequest::client_name() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateOAuthAppRequest.client_name) + return _internal_client_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void UpdateOAuthAppRequest::set_client_name(ArgT0&& arg0, ArgT... args) { + + client_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.UpdateOAuthAppRequest.client_name) +} +inline std::string* UpdateOAuthAppRequest::mutable_client_name() { + std::string* _s = _internal_mutable_client_name(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateOAuthAppRequest.client_name) + return _s; +} +inline const std::string& UpdateOAuthAppRequest::_internal_client_name() const { + return client_name_.Get(); +} +inline void UpdateOAuthAppRequest::_internal_set_client_name(const std::string& value) { + + client_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* UpdateOAuthAppRequest::_internal_mutable_client_name() { + + return client_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* UpdateOAuthAppRequest::release_client_name() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateOAuthAppRequest.client_name) + return client_name_.Release(); +} +inline void UpdateOAuthAppRequest::set_allocated_client_name(std::string* client_name) { + if (client_name != nullptr) { + + } else { + + } + client_name_.SetAllocated(client_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (client_name_.IsDefault()) { + client_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateOAuthAppRequest.client_name) +} -// repeated .viam.app.v1.Module modules = 1 [json_name = "modules"]; -inline int ListModulesResponse::_internal_modules_size() const { - return _internal_modules().size(); +// .viam.app.v1.OAuthConfig oauth_config = 4 [json_name = "oauthConfig"]; +inline bool UpdateOAuthAppRequest::_internal_has_oauth_config() const { + return this != internal_default_instance() && oauth_config_ != nullptr; } -inline int ListModulesResponse::modules_size() const { - return _internal_modules_size(); +inline bool UpdateOAuthAppRequest::has_oauth_config() const { + return _internal_has_oauth_config(); } -inline void ListModulesResponse::clear_modules() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.modules_.Clear(); +inline void UpdateOAuthAppRequest::clear_oauth_config() { + if (GetArenaForAllocation() == nullptr && oauth_config_ != nullptr) { + delete oauth_config_; + } + oauth_config_ = nullptr; } -inline ::viam::app::v1::Module* ListModulesResponse::mutable_modules(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:viam.app.v1.ListModulesResponse.modules) - return _internal_mutable_modules()->Mutable(index); +inline const ::viam::app::v1::OAuthConfig& UpdateOAuthAppRequest::_internal_oauth_config() const { + const ::viam::app::v1::OAuthConfig* p = oauth_config_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_OAuthConfig_default_instance_); } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::Module>* ListModulesResponse::mutable_modules() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ListModulesResponse.modules) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_modules(); +inline const ::viam::app::v1::OAuthConfig& UpdateOAuthAppRequest::oauth_config() const { + // @@protoc_insertion_point(field_get:viam.app.v1.UpdateOAuthAppRequest.oauth_config) + return _internal_oauth_config(); } -inline const ::viam::app::v1::Module& ListModulesResponse::modules(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.ListModulesResponse.modules) - return _internal_modules().Get(index); +inline void UpdateOAuthAppRequest::unsafe_arena_set_allocated_oauth_config( + ::viam::app::v1::OAuthConfig* oauth_config) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(oauth_config_); + } + oauth_config_ = oauth_config; + if (oauth_config) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.UpdateOAuthAppRequest.oauth_config) } -inline ::viam::app::v1::Module* ListModulesResponse::add_modules() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::Module* _add = _internal_mutable_modules()->Add(); - // @@protoc_insertion_point(field_add:viam.app.v1.ListModulesResponse.modules) - return _add; +inline ::viam::app::v1::OAuthConfig* UpdateOAuthAppRequest::release_oauth_config() { + + ::viam::app::v1::OAuthConfig* temp = oauth_config_; + oauth_config_ = 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 const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Module>& ListModulesResponse::modules() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:viam.app.v1.ListModulesResponse.modules) - return _internal_modules(); +inline ::viam::app::v1::OAuthConfig* UpdateOAuthAppRequest::unsafe_arena_release_oauth_config() { + // @@protoc_insertion_point(field_release:viam.app.v1.UpdateOAuthAppRequest.oauth_config) + + ::viam::app::v1::OAuthConfig* temp = oauth_config_; + oauth_config_ = nullptr; + return temp; +} +inline ::viam::app::v1::OAuthConfig* UpdateOAuthAppRequest::_internal_mutable_oauth_config() { + + if (oauth_config_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::OAuthConfig>(GetArenaForAllocation()); + oauth_config_ = p; + } + return oauth_config_; } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Module>& -ListModulesResponse::_internal_modules() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.modules_; +inline ::viam::app::v1::OAuthConfig* UpdateOAuthAppRequest::mutable_oauth_config() { + ::viam::app::v1::OAuthConfig* _msg = _internal_mutable_oauth_config(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateOAuthAppRequest.oauth_config) + return _msg; } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::Module>* -ListModulesResponse::_internal_mutable_modules() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.modules_; +inline void UpdateOAuthAppRequest::set_allocated_oauth_config(::viam::app::v1::OAuthConfig* oauth_config) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete oauth_config_; + } + if (oauth_config) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(oauth_config); + if (message_arena != submessage_arena) { + oauth_config = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, oauth_config, submessage_arena); + } + + } else { + + } + oauth_config_ = oauth_config; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateOAuthAppRequest.oauth_config) } // ------------------------------------------------------------------- -// GetUserIDByEmailRequest +// UpdateOAuthAppResponse -// string email = 1 [json_name = "email"]; -inline void GetUserIDByEmailRequest::clear_email() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.email_.ClearToEmpty(); +// ------------------------------------------------------------------- + +// DeleteOAuthAppRequest + +// string org_id = 1 [json_name = "orgId"]; +inline void DeleteOAuthAppRequest::clear_org_id() { + org_id_.ClearToEmpty(); } -inline const std::string& GetUserIDByEmailRequest::email() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.GetUserIDByEmailRequest.email) - return _internal_email(); +inline const std::string& DeleteOAuthAppRequest::org_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.DeleteOAuthAppRequest.org_id) + return _internal_org_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetUserIDByEmailRequest::set_email(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.email_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.GetUserIDByEmailRequest.email) +template +inline PROTOBUF_ALWAYS_INLINE +void DeleteOAuthAppRequest::set_org_id(ArgT0&& arg0, ArgT... args) { + + org_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.DeleteOAuthAppRequest.org_id) } -inline std::string* GetUserIDByEmailRequest::mutable_email() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_email(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.GetUserIDByEmailRequest.email) +inline std::string* DeleteOAuthAppRequest::mutable_org_id() { + std::string* _s = _internal_mutable_org_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.DeleteOAuthAppRequest.org_id) return _s; } -inline const std::string& GetUserIDByEmailRequest::_internal_email() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.email_.Get(); +inline const std::string& DeleteOAuthAppRequest::_internal_org_id() const { + return org_id_.Get(); } -inline void GetUserIDByEmailRequest::_internal_set_email(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.email_.Set(value, GetArena()); +inline void DeleteOAuthAppRequest::_internal_set_org_id(const std::string& value) { + + org_id_.Set(value, GetArenaForAllocation()); } -inline std::string* GetUserIDByEmailRequest::_internal_mutable_email() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.email_.Mutable( GetArena()); +inline std::string* DeleteOAuthAppRequest::_internal_mutable_org_id() { + + return org_id_.Mutable(GetArenaForAllocation()); } -inline std::string* GetUserIDByEmailRequest::release_email() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.GetUserIDByEmailRequest.email) - return _impl_.email_.Release(); -} -inline void GetUserIDByEmailRequest::set_allocated_email(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.email_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.email_.IsDefault()) { - _impl_.email_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetUserIDByEmailRequest.email) +inline std::string* DeleteOAuthAppRequest::release_org_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.DeleteOAuthAppRequest.org_id) + return org_id_.Release(); +} +inline void DeleteOAuthAppRequest::set_allocated_org_id(std::string* org_id) { + if (org_id != nullptr) { + + } else { + + } + org_id_.SetAllocated(org_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (org_id_.IsDefault()) { + org_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.DeleteOAuthAppRequest.org_id) } -// ------------------------------------------------------------------- - -// GetUserIDByEmailResponse - -// string user_id = 1 [json_name = "userId"]; -inline void GetUserIDByEmailResponse::clear_user_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.user_id_.ClearToEmpty(); +// string client_id = 2 [json_name = "clientId"]; +inline void DeleteOAuthAppRequest::clear_client_id() { + client_id_.ClearToEmpty(); } -inline const std::string& GetUserIDByEmailResponse::user_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.GetUserIDByEmailResponse.user_id) - return _internal_user_id(); +inline const std::string& DeleteOAuthAppRequest::client_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.DeleteOAuthAppRequest.client_id) + return _internal_client_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetUserIDByEmailResponse::set_user_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.user_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.GetUserIDByEmailResponse.user_id) +template +inline PROTOBUF_ALWAYS_INLINE +void DeleteOAuthAppRequest::set_client_id(ArgT0&& arg0, ArgT... args) { + + client_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.DeleteOAuthAppRequest.client_id) } -inline std::string* GetUserIDByEmailResponse::mutable_user_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_user_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.GetUserIDByEmailResponse.user_id) +inline std::string* DeleteOAuthAppRequest::mutable_client_id() { + std::string* _s = _internal_mutable_client_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.DeleteOAuthAppRequest.client_id) return _s; } -inline const std::string& GetUserIDByEmailResponse::_internal_user_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.user_id_.Get(); +inline const std::string& DeleteOAuthAppRequest::_internal_client_id() const { + return client_id_.Get(); } -inline void GetUserIDByEmailResponse::_internal_set_user_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.user_id_.Set(value, GetArena()); +inline void DeleteOAuthAppRequest::_internal_set_client_id(const std::string& value) { + + client_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* DeleteOAuthAppRequest::_internal_mutable_client_id() { + + return client_id_.Mutable(GetArenaForAllocation()); } -inline std::string* GetUserIDByEmailResponse::_internal_mutable_user_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.user_id_.Mutable( GetArena()); +inline std::string* DeleteOAuthAppRequest::release_client_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.DeleteOAuthAppRequest.client_id) + return client_id_.Release(); } -inline std::string* GetUserIDByEmailResponse::release_user_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.GetUserIDByEmailResponse.user_id) - return _impl_.user_id_.Release(); -} -inline void GetUserIDByEmailResponse::set_allocated_user_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.user_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.user_id_.IsDefault()) { - _impl_.user_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetUserIDByEmailResponse.user_id) +inline void DeleteOAuthAppRequest::set_allocated_client_id(std::string* client_id) { + if (client_id != nullptr) { + + } else { + + } + client_id_.SetAllocated(client_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (client_id_.IsDefault()) { + client_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.DeleteOAuthAppRequest.client_id) } // ------------------------------------------------------------------- -// ListOrganizationsByUserRequest +// DeleteOAuthAppResponse -// string user_id = 1 [json_name = "userId"]; -inline void ListOrganizationsByUserRequest::clear_user_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.user_id_.ClearToEmpty(); +// ------------------------------------------------------------------- + +// ListOAuthAppsRequest + +// string org_id = 1 [json_name = "orgId"]; +inline void ListOAuthAppsRequest::clear_org_id() { + org_id_.ClearToEmpty(); } -inline const std::string& ListOrganizationsByUserRequest::user_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.ListOrganizationsByUserRequest.user_id) - return _internal_user_id(); +inline const std::string& ListOAuthAppsRequest::org_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ListOAuthAppsRequest.org_id) + return _internal_org_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void ListOrganizationsByUserRequest::set_user_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.user_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.ListOrganizationsByUserRequest.user_id) +template +inline PROTOBUF_ALWAYS_INLINE +void ListOAuthAppsRequest::set_org_id(ArgT0&& arg0, ArgT... args) { + + org_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.ListOAuthAppsRequest.org_id) } -inline std::string* ListOrganizationsByUserRequest::mutable_user_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_user_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.ListOrganizationsByUserRequest.user_id) +inline std::string* ListOAuthAppsRequest::mutable_org_id() { + std::string* _s = _internal_mutable_org_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ListOAuthAppsRequest.org_id) return _s; } -inline const std::string& ListOrganizationsByUserRequest::_internal_user_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.user_id_.Get(); +inline const std::string& ListOAuthAppsRequest::_internal_org_id() const { + return org_id_.Get(); } -inline void ListOrganizationsByUserRequest::_internal_set_user_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.user_id_.Set(value, GetArena()); +inline void ListOAuthAppsRequest::_internal_set_org_id(const std::string& value) { + + org_id_.Set(value, GetArenaForAllocation()); } -inline std::string* ListOrganizationsByUserRequest::_internal_mutable_user_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.user_id_.Mutable( GetArena()); +inline std::string* ListOAuthAppsRequest::_internal_mutable_org_id() { + + return org_id_.Mutable(GetArenaForAllocation()); } -inline std::string* ListOrganizationsByUserRequest::release_user_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.ListOrganizationsByUserRequest.user_id) - return _impl_.user_id_.Release(); -} -inline void ListOrganizationsByUserRequest::set_allocated_user_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.user_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.user_id_.IsDefault()) { - _impl_.user_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ListOrganizationsByUserRequest.user_id) +inline std::string* ListOAuthAppsRequest::release_org_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.ListOAuthAppsRequest.org_id) + return org_id_.Release(); +} +inline void ListOAuthAppsRequest::set_allocated_org_id(std::string* org_id) { + if (org_id != nullptr) { + + } else { + + } + org_id_.SetAllocated(org_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (org_id_.IsDefault()) { + org_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ListOAuthAppsRequest.org_id) } // ------------------------------------------------------------------- -// OrgDetails +// ListOAuthAppsResponse -// string org_id = 1 [json_name = "orgId"]; -inline void OrgDetails::clear_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.org_id_.ClearToEmpty(); +// repeated string client_ids = 1 [json_name = "clientIds"]; +inline int ListOAuthAppsResponse::_internal_client_ids_size() const { + return client_ids_.size(); } -inline const std::string& OrgDetails::org_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.OrgDetails.org_id) - return _internal_org_id(); +inline int ListOAuthAppsResponse::client_ids_size() const { + return _internal_client_ids_size(); } -template -inline PROTOBUF_ALWAYS_INLINE void OrgDetails::set_org_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.org_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.OrgDetails.org_id) +inline void ListOAuthAppsResponse::clear_client_ids() { + client_ids_.Clear(); } -inline std::string* OrgDetails::mutable_org_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_org_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.OrgDetails.org_id) +inline std::string* ListOAuthAppsResponse::add_client_ids() { + std::string* _s = _internal_add_client_ids(); + // @@protoc_insertion_point(field_add_mutable:viam.app.v1.ListOAuthAppsResponse.client_ids) return _s; } -inline const std::string& OrgDetails::_internal_org_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.org_id_.Get(); +inline const std::string& ListOAuthAppsResponse::_internal_client_ids(int index) const { + return client_ids_.Get(index); } -inline void OrgDetails::_internal_set_org_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.org_id_.Set(value, GetArena()); +inline const std::string& ListOAuthAppsResponse::client_ids(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.ListOAuthAppsResponse.client_ids) + return _internal_client_ids(index); } -inline std::string* OrgDetails::_internal_mutable_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.org_id_.Mutable( GetArena()); +inline std::string* ListOAuthAppsResponse::mutable_client_ids(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.ListOAuthAppsResponse.client_ids) + return client_ids_.Mutable(index); } -inline std::string* OrgDetails::release_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.OrgDetails.org_id) - return _impl_.org_id_.Release(); -} -inline void OrgDetails::set_allocated_org_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.org_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.org_id_.IsDefault()) { - _impl_.org_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.OrgDetails.org_id) +inline void ListOAuthAppsResponse::set_client_ids(int index, const std::string& value) { + client_ids_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:viam.app.v1.ListOAuthAppsResponse.client_ids) } - -// string org_name = 2 [json_name = "orgName"]; -inline void OrgDetails::clear_org_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.org_name_.ClearToEmpty(); +inline void ListOAuthAppsResponse::set_client_ids(int index, std::string&& value) { + client_ids_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:viam.app.v1.ListOAuthAppsResponse.client_ids) } -inline const std::string& OrgDetails::org_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.OrgDetails.org_name) - return _internal_org_name(); +inline void ListOAuthAppsResponse::set_client_ids(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + client_ids_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:viam.app.v1.ListOAuthAppsResponse.client_ids) } -template -inline PROTOBUF_ALWAYS_INLINE void OrgDetails::set_org_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.org_name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.OrgDetails.org_name) +inline void ListOAuthAppsResponse::set_client_ids(int index, const char* value, size_t size) { + client_ids_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:viam.app.v1.ListOAuthAppsResponse.client_ids) } -inline std::string* OrgDetails::mutable_org_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_org_name(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.OrgDetails.org_name) - return _s; +inline std::string* ListOAuthAppsResponse::_internal_add_client_ids() { + return client_ids_.Add(); } -inline const std::string& OrgDetails::_internal_org_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.org_name_.Get(); +inline void ListOAuthAppsResponse::add_client_ids(const std::string& value) { + client_ids_.Add()->assign(value); + // @@protoc_insertion_point(field_add:viam.app.v1.ListOAuthAppsResponse.client_ids) } -inline void OrgDetails::_internal_set_org_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.org_name_.Set(value, GetArena()); +inline void ListOAuthAppsResponse::add_client_ids(std::string&& value) { + client_ids_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:viam.app.v1.ListOAuthAppsResponse.client_ids) } -inline std::string* OrgDetails::_internal_mutable_org_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.org_name_.Mutable( GetArena()); +inline void ListOAuthAppsResponse::add_client_ids(const char* value) { + GOOGLE_DCHECK(value != nullptr); + client_ids_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:viam.app.v1.ListOAuthAppsResponse.client_ids) } -inline std::string* OrgDetails::release_org_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.OrgDetails.org_name) - return _impl_.org_name_.Release(); -} -inline void OrgDetails::set_allocated_org_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.org_name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.org_name_.IsDefault()) { - _impl_.org_name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.OrgDetails.org_name) +inline void ListOAuthAppsResponse::add_client_ids(const char* value, size_t size) { + client_ids_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:viam.app.v1.ListOAuthAppsResponse.client_ids) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +ListOAuthAppsResponse::client_ids() const { + // @@protoc_insertion_point(field_list:viam.app.v1.ListOAuthAppsResponse.client_ids) + return client_ids_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +ListOAuthAppsResponse::mutable_client_ids() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ListOAuthAppsResponse.client_ids) + return &client_ids_; } // ------------------------------------------------------------------- -// ListOrganizationsByUserResponse +// OAuthConfig -// repeated .viam.app.v1.OrgDetails orgs = 1 [json_name = "orgs"]; -inline int ListOrganizationsByUserResponse::_internal_orgs_size() const { - return _internal_orgs().size(); +// .viam.app.v1.ClientAuthentication client_authentication = 1 [json_name = "clientAuthentication"]; +inline void OAuthConfig::clear_client_authentication() { + client_authentication_ = 0; } -inline int ListOrganizationsByUserResponse::orgs_size() const { - return _internal_orgs_size(); +inline ::viam::app::v1::ClientAuthentication OAuthConfig::_internal_client_authentication() const { + return static_cast< ::viam::app::v1::ClientAuthentication >(client_authentication_); } -inline void ListOrganizationsByUserResponse::clear_orgs() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.orgs_.Clear(); +inline ::viam::app::v1::ClientAuthentication OAuthConfig::client_authentication() const { + // @@protoc_insertion_point(field_get:viam.app.v1.OAuthConfig.client_authentication) + return _internal_client_authentication(); } -inline ::viam::app::v1::OrgDetails* ListOrganizationsByUserResponse::mutable_orgs(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:viam.app.v1.ListOrganizationsByUserResponse.orgs) - return _internal_mutable_orgs()->Mutable(index); +inline void OAuthConfig::_internal_set_client_authentication(::viam::app::v1::ClientAuthentication value) { + + client_authentication_ = value; } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::OrgDetails>* ListOrganizationsByUserResponse::mutable_orgs() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ListOrganizationsByUserResponse.orgs) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_orgs(); +inline void OAuthConfig::set_client_authentication(::viam::app::v1::ClientAuthentication value) { + _internal_set_client_authentication(value); + // @@protoc_insertion_point(field_set:viam.app.v1.OAuthConfig.client_authentication) } -inline const ::viam::app::v1::OrgDetails& ListOrganizationsByUserResponse::orgs(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.ListOrganizationsByUserResponse.orgs) - return _internal_orgs().Get(index); + +// .viam.app.v1.PKCE pkce = 2 [json_name = "pkce"]; +inline void OAuthConfig::clear_pkce() { + pkce_ = 0; } -inline ::viam::app::v1::OrgDetails* ListOrganizationsByUserResponse::add_orgs() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::OrgDetails* _add = _internal_mutable_orgs()->Add(); - // @@protoc_insertion_point(field_add:viam.app.v1.ListOrganizationsByUserResponse.orgs) - return _add; +inline ::viam::app::v1::PKCE OAuthConfig::_internal_pkce() const { + return static_cast< ::viam::app::v1::PKCE >(pkce_); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::OrgDetails>& ListOrganizationsByUserResponse::orgs() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:viam.app.v1.ListOrganizationsByUserResponse.orgs) - return _internal_orgs(); +inline ::viam::app::v1::PKCE OAuthConfig::pkce() const { + // @@protoc_insertion_point(field_get:viam.app.v1.OAuthConfig.pkce) + return _internal_pkce(); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::OrgDetails>& -ListOrganizationsByUserResponse::_internal_orgs() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.orgs_; +inline void OAuthConfig::_internal_set_pkce(::viam::app::v1::PKCE value) { + + pkce_ = value; } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::OrgDetails>* -ListOrganizationsByUserResponse::_internal_mutable_orgs() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.orgs_; +inline void OAuthConfig::set_pkce(::viam::app::v1::PKCE value) { + _internal_set_pkce(value); + // @@protoc_insertion_point(field_set:viam.app.v1.OAuthConfig.pkce) } -// ------------------------------------------------------------------- - -// CreateKeyRequest +// .viam.app.v1.URLValidation url_validation = 3 [json_name = "urlValidation"]; +inline void OAuthConfig::clear_url_validation() { + url_validation_ = 0; +} +inline ::viam::app::v1::URLValidation OAuthConfig::_internal_url_validation() const { + return static_cast< ::viam::app::v1::URLValidation >(url_validation_); +} +inline ::viam::app::v1::URLValidation OAuthConfig::url_validation() const { + // @@protoc_insertion_point(field_get:viam.app.v1.OAuthConfig.url_validation) + return _internal_url_validation(); +} +inline void OAuthConfig::_internal_set_url_validation(::viam::app::v1::URLValidation value) { + + url_validation_ = value; +} +inline void OAuthConfig::set_url_validation(::viam::app::v1::URLValidation value) { + _internal_set_url_validation(value); + // @@protoc_insertion_point(field_set:viam.app.v1.OAuthConfig.url_validation) +} -// repeated .viam.app.v1.Authorization authorizations = 1 [json_name = "authorizations"]; -inline int CreateKeyRequest::_internal_authorizations_size() const { - return _internal_authorizations().size(); +// repeated string origin_uris = 4 [json_name = "originUris"]; +inline int OAuthConfig::_internal_origin_uris_size() const { + return origin_uris_.size(); } -inline int CreateKeyRequest::authorizations_size() const { - return _internal_authorizations_size(); +inline int OAuthConfig::origin_uris_size() const { + return _internal_origin_uris_size(); } -inline void CreateKeyRequest::clear_authorizations() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.authorizations_.Clear(); +inline void OAuthConfig::clear_origin_uris() { + origin_uris_.Clear(); } -inline ::viam::app::v1::Authorization* CreateKeyRequest::mutable_authorizations(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateKeyRequest.authorizations) - return _internal_mutable_authorizations()->Mutable(index); +inline std::string* OAuthConfig::add_origin_uris() { + std::string* _s = _internal_add_origin_uris(); + // @@protoc_insertion_point(field_add_mutable:viam.app.v1.OAuthConfig.origin_uris) + return _s; } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::Authorization>* CreateKeyRequest::mutable_authorizations() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.CreateKeyRequest.authorizations) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_authorizations(); +inline const std::string& OAuthConfig::_internal_origin_uris(int index) const { + return origin_uris_.Get(index); } -inline const ::viam::app::v1::Authorization& CreateKeyRequest::authorizations(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.CreateKeyRequest.authorizations) - return _internal_authorizations().Get(index); +inline const std::string& OAuthConfig::origin_uris(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.OAuthConfig.origin_uris) + return _internal_origin_uris(index); } -inline ::viam::app::v1::Authorization* CreateKeyRequest::add_authorizations() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::Authorization* _add = _internal_mutable_authorizations()->Add(); - // @@protoc_insertion_point(field_add:viam.app.v1.CreateKeyRequest.authorizations) - return _add; +inline std::string* OAuthConfig::mutable_origin_uris(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.OAuthConfig.origin_uris) + return origin_uris_.Mutable(index); } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Authorization>& CreateKeyRequest::authorizations() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:viam.app.v1.CreateKeyRequest.authorizations) - return _internal_authorizations(); +inline void OAuthConfig::set_origin_uris(int index, const std::string& value) { + origin_uris_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:viam.app.v1.OAuthConfig.origin_uris) } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::Authorization>& -CreateKeyRequest::_internal_authorizations() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.authorizations_; +inline void OAuthConfig::set_origin_uris(int index, std::string&& value) { + origin_uris_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:viam.app.v1.OAuthConfig.origin_uris) } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::Authorization>* -CreateKeyRequest::_internal_mutable_authorizations() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.authorizations_; +inline void OAuthConfig::set_origin_uris(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + origin_uris_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:viam.app.v1.OAuthConfig.origin_uris) } - -// string name = 2 [json_name = "name"]; -inline void CreateKeyRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); +inline void OAuthConfig::set_origin_uris(int index, const char* value, size_t size) { + origin_uris_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:viam.app.v1.OAuthConfig.origin_uris) } -inline const std::string& CreateKeyRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.CreateKeyRequest.name) - return _internal_name(); +inline std::string* OAuthConfig::_internal_add_origin_uris() { + return origin_uris_.Add(); } -template -inline PROTOBUF_ALWAYS_INLINE void CreateKeyRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.CreateKeyRequest.name) +inline void OAuthConfig::add_origin_uris(const std::string& value) { + origin_uris_.Add()->assign(value); + // @@protoc_insertion_point(field_add:viam.app.v1.OAuthConfig.origin_uris) } -inline std::string* CreateKeyRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateKeyRequest.name) - return _s; +inline void OAuthConfig::add_origin_uris(std::string&& value) { + origin_uris_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:viam.app.v1.OAuthConfig.origin_uris) } -inline const std::string& CreateKeyRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); +inline void OAuthConfig::add_origin_uris(const char* value) { + GOOGLE_DCHECK(value != nullptr); + origin_uris_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:viam.app.v1.OAuthConfig.origin_uris) } -inline void CreateKeyRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); +inline void OAuthConfig::add_origin_uris(const char* value, size_t size) { + origin_uris_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:viam.app.v1.OAuthConfig.origin_uris) } -inline std::string* CreateKeyRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +OAuthConfig::origin_uris() const { + // @@protoc_insertion_point(field_list:viam.app.v1.OAuthConfig.origin_uris) + return origin_uris_; } -inline std::string* CreateKeyRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.CreateKeyRequest.name) - return _impl_.name_.Release(); -} -inline void CreateKeyRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateKeyRequest.name) +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +OAuthConfig::mutable_origin_uris() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.OAuthConfig.origin_uris) + return &origin_uris_; } -// ------------------------------------------------------------------- - -// CreateKeyResponse - -// string key = 1 [json_name = "key"]; -inline void CreateKeyResponse::clear_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.key_.ClearToEmpty(); +// repeated string redirect_uris = 5 [json_name = "redirectUris"]; +inline int OAuthConfig::_internal_redirect_uris_size() const { + return redirect_uris_.size(); } -inline const std::string& CreateKeyResponse::key() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.CreateKeyResponse.key) - return _internal_key(); +inline int OAuthConfig::redirect_uris_size() const { + return _internal_redirect_uris_size(); } -template -inline PROTOBUF_ALWAYS_INLINE void CreateKeyResponse::set_key(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.key_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.CreateKeyResponse.key) +inline void OAuthConfig::clear_redirect_uris() { + redirect_uris_.Clear(); } -inline std::string* CreateKeyResponse::mutable_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_key(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateKeyResponse.key) +inline std::string* OAuthConfig::add_redirect_uris() { + std::string* _s = _internal_add_redirect_uris(); + // @@protoc_insertion_point(field_add_mutable:viam.app.v1.OAuthConfig.redirect_uris) return _s; } -inline const std::string& CreateKeyResponse::_internal_key() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.key_.Get(); +inline const std::string& OAuthConfig::_internal_redirect_uris(int index) const { + return redirect_uris_.Get(index); } -inline void CreateKeyResponse::_internal_set_key(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.key_.Set(value, GetArena()); +inline const std::string& OAuthConfig::redirect_uris(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.OAuthConfig.redirect_uris) + return _internal_redirect_uris(index); } -inline std::string* CreateKeyResponse::_internal_mutable_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.key_.Mutable( GetArena()); +inline std::string* OAuthConfig::mutable_redirect_uris(int index) { + // @@protoc_insertion_point(field_mutable:viam.app.v1.OAuthConfig.redirect_uris) + return redirect_uris_.Mutable(index); } -inline std::string* CreateKeyResponse::release_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.CreateKeyResponse.key) - return _impl_.key_.Release(); -} -inline void CreateKeyResponse::set_allocated_key(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.key_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.key_.IsDefault()) { - _impl_.key_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateKeyResponse.key) +inline void OAuthConfig::set_redirect_uris(int index, const std::string& value) { + redirect_uris_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:viam.app.v1.OAuthConfig.redirect_uris) +} +inline void OAuthConfig::set_redirect_uris(int index, std::string&& value) { + redirect_uris_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:viam.app.v1.OAuthConfig.redirect_uris) +} +inline void OAuthConfig::set_redirect_uris(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + redirect_uris_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:viam.app.v1.OAuthConfig.redirect_uris) +} +inline void OAuthConfig::set_redirect_uris(int index, const char* value, size_t size) { + redirect_uris_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:viam.app.v1.OAuthConfig.redirect_uris) +} +inline std::string* OAuthConfig::_internal_add_redirect_uris() { + return redirect_uris_.Add(); +} +inline void OAuthConfig::add_redirect_uris(const std::string& value) { + redirect_uris_.Add()->assign(value); + // @@protoc_insertion_point(field_add:viam.app.v1.OAuthConfig.redirect_uris) +} +inline void OAuthConfig::add_redirect_uris(std::string&& value) { + redirect_uris_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:viam.app.v1.OAuthConfig.redirect_uris) +} +inline void OAuthConfig::add_redirect_uris(const char* value) { + GOOGLE_DCHECK(value != nullptr); + redirect_uris_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:viam.app.v1.OAuthConfig.redirect_uris) +} +inline void OAuthConfig::add_redirect_uris(const char* value, size_t size) { + redirect_uris_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:viam.app.v1.OAuthConfig.redirect_uris) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +OAuthConfig::redirect_uris() const { + // @@protoc_insertion_point(field_list:viam.app.v1.OAuthConfig.redirect_uris) + return redirect_uris_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +OAuthConfig::mutable_redirect_uris() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.OAuthConfig.redirect_uris) + return &redirect_uris_; } -// string id = 2 [json_name = "id"]; -inline void CreateKeyResponse::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); +// string logout_uri = 6 [json_name = "logoutUri"]; +inline void OAuthConfig::clear_logout_uri() { + logout_uri_.ClearToEmpty(); } -inline const std::string& CreateKeyResponse::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.CreateKeyResponse.id) - return _internal_id(); +inline const std::string& OAuthConfig::logout_uri() const { + // @@protoc_insertion_point(field_get:viam.app.v1.OAuthConfig.logout_uri) + return _internal_logout_uri(); } -template -inline PROTOBUF_ALWAYS_INLINE void CreateKeyResponse::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.CreateKeyResponse.id) +template +inline PROTOBUF_ALWAYS_INLINE +void OAuthConfig::set_logout_uri(ArgT0&& arg0, ArgT... args) { + + logout_uri_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.OAuthConfig.logout_uri) } -inline std::string* CreateKeyResponse::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateKeyResponse.id) +inline std::string* OAuthConfig::mutable_logout_uri() { + std::string* _s = _internal_mutable_logout_uri(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.OAuthConfig.logout_uri) return _s; } -inline const std::string& CreateKeyResponse::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); +inline const std::string& OAuthConfig::_internal_logout_uri() const { + return logout_uri_.Get(); } -inline void CreateKeyResponse::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); +inline void OAuthConfig::_internal_set_logout_uri(const std::string& value) { + + logout_uri_.Set(value, GetArenaForAllocation()); } -inline std::string* CreateKeyResponse::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); +inline std::string* OAuthConfig::_internal_mutable_logout_uri() { + + return logout_uri_.Mutable(GetArenaForAllocation()); } -inline std::string* CreateKeyResponse::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.CreateKeyResponse.id) - return _impl_.id_.Release(); -} -inline void CreateKeyResponse::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateKeyResponse.id) +inline std::string* OAuthConfig::release_logout_uri() { + // @@protoc_insertion_point(field_release:viam.app.v1.OAuthConfig.logout_uri) + return logout_uri_.Release(); +} +inline void OAuthConfig::set_allocated_logout_uri(std::string* logout_uri) { + if (logout_uri != nullptr) { + + } else { + + } + logout_uri_.SetAllocated(logout_uri, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (logout_uri_.IsDefault()) { + logout_uri_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.OAuthConfig.logout_uri) } -// ------------------------------------------------------------------- - -// DeleteKeyRequest - -// string id = 1 [json_name = "id"]; -inline void DeleteKeyRequest::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); +// repeated .viam.app.v1.EnabledGrant enabled_grants = 7 [json_name = "enabledGrants"]; +inline int OAuthConfig::_internal_enabled_grants_size() const { + return enabled_grants_.size(); } -inline const std::string& DeleteKeyRequest::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.DeleteKeyRequest.id) - return _internal_id(); +inline int OAuthConfig::enabled_grants_size() const { + return _internal_enabled_grants_size(); } -template -inline PROTOBUF_ALWAYS_INLINE void DeleteKeyRequest::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.DeleteKeyRequest.id) +inline void OAuthConfig::clear_enabled_grants() { + enabled_grants_.Clear(); } -inline std::string* DeleteKeyRequest::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.DeleteKeyRequest.id) - return _s; +inline ::viam::app::v1::EnabledGrant OAuthConfig::_internal_enabled_grants(int index) const { + return static_cast< ::viam::app::v1::EnabledGrant >(enabled_grants_.Get(index)); } -inline const std::string& DeleteKeyRequest::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); +inline ::viam::app::v1::EnabledGrant OAuthConfig::enabled_grants(int index) const { + // @@protoc_insertion_point(field_get:viam.app.v1.OAuthConfig.enabled_grants) + return _internal_enabled_grants(index); } -inline void DeleteKeyRequest::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); +inline void OAuthConfig::set_enabled_grants(int index, ::viam::app::v1::EnabledGrant value) { + enabled_grants_.Set(index, value); + // @@protoc_insertion_point(field_set:viam.app.v1.OAuthConfig.enabled_grants) } -inline std::string* DeleteKeyRequest::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); +inline void OAuthConfig::_internal_add_enabled_grants(::viam::app::v1::EnabledGrant value) { + enabled_grants_.Add(value); } -inline std::string* DeleteKeyRequest::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.DeleteKeyRequest.id) - return _impl_.id_.Release(); -} -inline void DeleteKeyRequest::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.DeleteKeyRequest.id) +inline void OAuthConfig::add_enabled_grants(::viam::app::v1::EnabledGrant value) { + _internal_add_enabled_grants(value); + // @@protoc_insertion_point(field_add:viam.app.v1.OAuthConfig.enabled_grants) } +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField& +OAuthConfig::enabled_grants() const { + // @@protoc_insertion_point(field_list:viam.app.v1.OAuthConfig.enabled_grants) + return enabled_grants_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* +OAuthConfig::_internal_mutable_enabled_grants() { + return &enabled_grants_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* +OAuthConfig::mutable_enabled_grants() { + // @@protoc_insertion_point(field_mutable_list:viam.app.v1.OAuthConfig.enabled_grants) + return _internal_mutable_enabled_grants(); +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- // ------------------------------------------------------------------- -// DeleteKeyResponse +// ------------------------------------------------------------------- // ------------------------------------------------------------------- -// RenameKeyRequest +// ------------------------------------------------------------------- -// string id = 1 [json_name = "id"]; -inline void RenameKeyRequest::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); -} -inline const std::string& RenameKeyRequest::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.RenameKeyRequest.id) - return _internal_id(); -} -template -inline PROTOBUF_ALWAYS_INLINE void RenameKeyRequest::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.RenameKeyRequest.id) -} -inline std::string* RenameKeyRequest::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.RenameKeyRequest.id) - return _s; -} -inline const std::string& RenameKeyRequest::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); -} -inline void RenameKeyRequest::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); -} -inline std::string* RenameKeyRequest::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); -} -inline std::string* RenameKeyRequest::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.RenameKeyRequest.id) - return _impl_.id_.Release(); -} -inline void RenameKeyRequest::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RenameKeyRequest.id) -} +// ------------------------------------------------------------------- -// string name = 2 [json_name = "name"]; -inline void RenameKeyRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); -} -inline const std::string& RenameKeyRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.RenameKeyRequest.name) - return _internal_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE void RenameKeyRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.RenameKeyRequest.name) -} -inline std::string* RenameKeyRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.RenameKeyRequest.name) - return _s; -} -inline const std::string& RenameKeyRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); -} -inline void RenameKeyRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); -} -inline std::string* RenameKeyRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); -} -inline std::string* RenameKeyRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.RenameKeyRequest.name) - return _impl_.name_.Release(); -} -inline void RenameKeyRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RenameKeyRequest.name) -} +// ------------------------------------------------------------------- // ------------------------------------------------------------------- -// RenameKeyResponse +// ------------------------------------------------------------------- -// string id = 1 [json_name = "id"]; -inline void RenameKeyResponse::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); -} -inline const std::string& RenameKeyResponse::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.RenameKeyResponse.id) - return _internal_id(); -} -template -inline PROTOBUF_ALWAYS_INLINE void RenameKeyResponse::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.RenameKeyResponse.id) -} -inline std::string* RenameKeyResponse::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.RenameKeyResponse.id) - return _s; -} -inline const std::string& RenameKeyResponse::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); -} -inline void RenameKeyResponse::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); -} -inline std::string* RenameKeyResponse::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); -} -inline std::string* RenameKeyResponse::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.RenameKeyResponse.id) - return _impl_.id_.Release(); -} -inline void RenameKeyResponse::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RenameKeyResponse.id) -} +// ------------------------------------------------------------------- -// string name = 2 [json_name = "name"]; -inline void RenameKeyResponse::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); -} -inline const std::string& RenameKeyResponse::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.RenameKeyResponse.name) - return _internal_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE void RenameKeyResponse::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.RenameKeyResponse.name) -} -inline std::string* RenameKeyResponse::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.RenameKeyResponse.name) - return _s; -} -inline const std::string& RenameKeyResponse::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); -} -inline void RenameKeyResponse::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); -} -inline std::string* RenameKeyResponse::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); -} -inline std::string* RenameKeyResponse::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.RenameKeyResponse.name) - return _impl_.name_.Release(); -} -inline void RenameKeyResponse::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RenameKeyResponse.name) -} +// ------------------------------------------------------------------- // ------------------------------------------------------------------- -// AuthorizationDetails +// ------------------------------------------------------------------- -// string authorization_type = 1 [json_name = "authorizationType"]; -inline void AuthorizationDetails::clear_authorization_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.authorization_type_.ClearToEmpty(); -} -inline const std::string& AuthorizationDetails::authorization_type() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.AuthorizationDetails.authorization_type) - return _internal_authorization_type(); -} -template -inline PROTOBUF_ALWAYS_INLINE void AuthorizationDetails::set_authorization_type(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.authorization_type_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.AuthorizationDetails.authorization_type) -} -inline std::string* AuthorizationDetails::mutable_authorization_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_authorization_type(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.AuthorizationDetails.authorization_type) - return _s; -} -inline const std::string& AuthorizationDetails::_internal_authorization_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.authorization_type_.Get(); -} -inline void AuthorizationDetails::_internal_set_authorization_type(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.authorization_type_.Set(value, GetArena()); -} -inline std::string* AuthorizationDetails::_internal_mutable_authorization_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.authorization_type_.Mutable( GetArena()); -} -inline std::string* AuthorizationDetails::release_authorization_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.AuthorizationDetails.authorization_type) - return _impl_.authorization_type_.Release(); -} -inline void AuthorizationDetails::set_allocated_authorization_type(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.authorization_type_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.authorization_type_.IsDefault()) { - _impl_.authorization_type_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.AuthorizationDetails.authorization_type) -} +// ------------------------------------------------------------------- -// string authorization_id = 2 [json_name = "authorizationId"]; -inline void AuthorizationDetails::clear_authorization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.authorization_id_.ClearToEmpty(); -} -inline const std::string& AuthorizationDetails::authorization_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.AuthorizationDetails.authorization_id) - return _internal_authorization_id(); -} -template -inline PROTOBUF_ALWAYS_INLINE void AuthorizationDetails::set_authorization_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.authorization_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.AuthorizationDetails.authorization_id) -} -inline std::string* AuthorizationDetails::mutable_authorization_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_authorization_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.AuthorizationDetails.authorization_id) - return _s; -} -inline const std::string& AuthorizationDetails::_internal_authorization_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.authorization_id_.Get(); -} -inline void AuthorizationDetails::_internal_set_authorization_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.authorization_id_.Set(value, GetArena()); -} -inline std::string* AuthorizationDetails::_internal_mutable_authorization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.authorization_id_.Mutable( GetArena()); -} -inline std::string* AuthorizationDetails::release_authorization_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.AuthorizationDetails.authorization_id) - return _impl_.authorization_id_.Release(); -} -inline void AuthorizationDetails::set_allocated_authorization_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.authorization_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.authorization_id_.IsDefault()) { - _impl_.authorization_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.AuthorizationDetails.authorization_id) -} +// ------------------------------------------------------------------- -// string resource_type = 3 [json_name = "resourceType"]; -inline void AuthorizationDetails::clear_resource_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.resource_type_.ClearToEmpty(); -} -inline const std::string& AuthorizationDetails::resource_type() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.AuthorizationDetails.resource_type) - return _internal_resource_type(); -} -template -inline PROTOBUF_ALWAYS_INLINE void AuthorizationDetails::set_resource_type(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.resource_type_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.AuthorizationDetails.resource_type) -} -inline std::string* AuthorizationDetails::mutable_resource_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_resource_type(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.AuthorizationDetails.resource_type) - return _s; -} -inline const std::string& AuthorizationDetails::_internal_resource_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.resource_type_.Get(); -} -inline void AuthorizationDetails::_internal_set_resource_type(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.resource_type_.Set(value, GetArena()); -} -inline std::string* AuthorizationDetails::_internal_mutable_resource_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.resource_type_.Mutable( GetArena()); -} -inline std::string* AuthorizationDetails::release_resource_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.AuthorizationDetails.resource_type) - return _impl_.resource_type_.Release(); -} -inline void AuthorizationDetails::set_allocated_resource_type(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.resource_type_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.resource_type_.IsDefault()) { - _impl_.resource_type_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.AuthorizationDetails.resource_type) -} +// ------------------------------------------------------------------- -// string resource_id = 4 [json_name = "resourceId"]; -inline void AuthorizationDetails::clear_resource_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.resource_id_.ClearToEmpty(); -} -inline const std::string& AuthorizationDetails::resource_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.AuthorizationDetails.resource_id) - return _internal_resource_id(); -} -template -inline PROTOBUF_ALWAYS_INLINE void AuthorizationDetails::set_resource_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.resource_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.AuthorizationDetails.resource_id) -} -inline std::string* AuthorizationDetails::mutable_resource_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_resource_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.AuthorizationDetails.resource_id) - return _s; -} -inline const std::string& AuthorizationDetails::_internal_resource_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.resource_id_.Get(); -} -inline void AuthorizationDetails::_internal_set_resource_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.resource_id_.Set(value, GetArena()); -} -inline std::string* AuthorizationDetails::_internal_mutable_resource_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.resource_id_.Mutable( GetArena()); -} -inline std::string* AuthorizationDetails::release_resource_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.AuthorizationDetails.resource_id) - return _impl_.resource_id_.Release(); -} -inline void AuthorizationDetails::set_allocated_resource_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.resource_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.resource_id_.IsDefault()) { - _impl_.resource_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.AuthorizationDetails.resource_id) -} +// ------------------------------------------------------------------- -// string org_id = 5 [json_name = "orgId"]; -inline void AuthorizationDetails::clear_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.org_id_.ClearToEmpty(); -} -inline const std::string& AuthorizationDetails::org_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.AuthorizationDetails.org_id) - return _internal_org_id(); -} -template -inline PROTOBUF_ALWAYS_INLINE void AuthorizationDetails::set_org_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.org_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.AuthorizationDetails.org_id) -} -inline std::string* AuthorizationDetails::mutable_org_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_org_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.AuthorizationDetails.org_id) - return _s; -} -inline const std::string& AuthorizationDetails::_internal_org_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.org_id_.Get(); -} -inline void AuthorizationDetails::_internal_set_org_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.org_id_.Set(value, GetArena()); -} -inline std::string* AuthorizationDetails::_internal_mutable_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.org_id_.Mutable( GetArena()); -} -inline std::string* AuthorizationDetails::release_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.AuthorizationDetails.org_id) - return _impl_.org_id_.Release(); -} -inline void AuthorizationDetails::set_allocated_org_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.org_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.org_id_.IsDefault()) { - _impl_.org_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.AuthorizationDetails.org_id) -} +// ------------------------------------------------------------------- // ------------------------------------------------------------------- -// APIKeyWithAuthorizations +// ------------------------------------------------------------------- -// .viam.app.v1.APIKey api_key = 1 [json_name = "apiKey"]; -inline bool APIKeyWithAuthorizations::has_api_key() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.api_key_ != nullptr); - return value; -} -inline void APIKeyWithAuthorizations::clear_api_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.api_key_ != nullptr) _impl_.api_key_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::viam::app::v1::APIKey& APIKeyWithAuthorizations::_internal_api_key() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::APIKey* p = _impl_.api_key_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_APIKey_default_instance_); -} -inline const ::viam::app::v1::APIKey& APIKeyWithAuthorizations::api_key() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.APIKeyWithAuthorizations.api_key) - return _internal_api_key(); -} -inline void APIKeyWithAuthorizations::unsafe_arena_set_allocated_api_key(::viam::app::v1::APIKey* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.api_key_); - } - _impl_.api_key_ = reinterpret_cast<::viam::app::v1::APIKey*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.APIKeyWithAuthorizations.api_key) -} -inline ::viam::app::v1::APIKey* APIKeyWithAuthorizations::release_api_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +// ------------------------------------------------------------------- - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::APIKey* released = _impl_.api_key_; - _impl_.api_key_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::viam::app::v1::APIKey* APIKeyWithAuthorizations::unsafe_arena_release_api_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.APIKeyWithAuthorizations.api_key) +// ------------------------------------------------------------------- - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::APIKey* temp = _impl_.api_key_; - _impl_.api_key_ = nullptr; - return temp; -} -inline ::viam::app::v1::APIKey* APIKeyWithAuthorizations::_internal_mutable_api_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.api_key_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::APIKey>(GetArena()); - _impl_.api_key_ = reinterpret_cast<::viam::app::v1::APIKey*>(p); - } - return _impl_.api_key_; -} -inline ::viam::app::v1::APIKey* APIKeyWithAuthorizations::mutable_api_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::viam::app::v1::APIKey* _msg = _internal_mutable_api_key(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.APIKeyWithAuthorizations.api_key) - return _msg; -} -inline void APIKeyWithAuthorizations::set_allocated_api_key(::viam::app::v1::APIKey* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::APIKey*>(_impl_.api_key_); - } +// ------------------------------------------------------------------- - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::APIKey*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } +// ------------------------------------------------------------------- - _impl_.api_key_ = reinterpret_cast<::viam::app::v1::APIKey*>(value); - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.APIKeyWithAuthorizations.api_key) -} +// ------------------------------------------------------------------- -// repeated .viam.app.v1.AuthorizationDetails authorizations = 2 [json_name = "authorizations"]; -inline int APIKeyWithAuthorizations::_internal_authorizations_size() const { - return _internal_authorizations().size(); -} -inline int APIKeyWithAuthorizations::authorizations_size() const { - return _internal_authorizations_size(); -} -inline void APIKeyWithAuthorizations::clear_authorizations() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.authorizations_.Clear(); -} -inline ::viam::app::v1::AuthorizationDetails* APIKeyWithAuthorizations::mutable_authorizations(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:viam.app.v1.APIKeyWithAuthorizations.authorizations) - return _internal_mutable_authorizations()->Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::AuthorizationDetails>* APIKeyWithAuthorizations::mutable_authorizations() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.APIKeyWithAuthorizations.authorizations) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_authorizations(); -} -inline const ::viam::app::v1::AuthorizationDetails& APIKeyWithAuthorizations::authorizations(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.APIKeyWithAuthorizations.authorizations) - return _internal_authorizations().Get(index); -} -inline ::viam::app::v1::AuthorizationDetails* APIKeyWithAuthorizations::add_authorizations() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::AuthorizationDetails* _add = _internal_mutable_authorizations()->Add(); - // @@protoc_insertion_point(field_add:viam.app.v1.APIKeyWithAuthorizations.authorizations) - return _add; -} -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::AuthorizationDetails>& APIKeyWithAuthorizations::authorizations() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:viam.app.v1.APIKeyWithAuthorizations.authorizations) - return _internal_authorizations(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::AuthorizationDetails>& -APIKeyWithAuthorizations::_internal_authorizations() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.authorizations_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::AuthorizationDetails>* -APIKeyWithAuthorizations::_internal_mutable_authorizations() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.authorizations_; -} +// ------------------------------------------------------------------- // ------------------------------------------------------------------- -// ListKeysRequest +// ------------------------------------------------------------------- -// string org_id = 1 [json_name = "orgId"]; -inline void ListKeysRequest::clear_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.org_id_.ClearToEmpty(); -} -inline const std::string& ListKeysRequest::org_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.ListKeysRequest.org_id) - return _internal_org_id(); -} -template -inline PROTOBUF_ALWAYS_INLINE void ListKeysRequest::set_org_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.org_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.ListKeysRequest.org_id) -} -inline std::string* ListKeysRequest::mutable_org_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_org_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.ListKeysRequest.org_id) - return _s; -} -inline const std::string& ListKeysRequest::_internal_org_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.org_id_.Get(); -} -inline void ListKeysRequest::_internal_set_org_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.org_id_.Set(value, GetArena()); -} -inline std::string* ListKeysRequest::_internal_mutable_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.org_id_.Mutable( GetArena()); -} -inline std::string* ListKeysRequest::release_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.ListKeysRequest.org_id) - return _impl_.org_id_.Release(); -} -inline void ListKeysRequest::set_allocated_org_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.org_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.org_id_.IsDefault()) { - _impl_.org_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ListKeysRequest.org_id) -} +// ------------------------------------------------------------------- // ------------------------------------------------------------------- -// ListKeysResponse +// ------------------------------------------------------------------- -// repeated .viam.app.v1.APIKeyWithAuthorizations api_keys = 1 [json_name = "apiKeys"]; -inline int ListKeysResponse::_internal_api_keys_size() const { - return _internal_api_keys().size(); -} -inline int ListKeysResponse::api_keys_size() const { - return _internal_api_keys_size(); -} -inline void ListKeysResponse::clear_api_keys() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.api_keys_.Clear(); -} -inline ::viam::app::v1::APIKeyWithAuthorizations* ListKeysResponse::mutable_api_keys(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:viam.app.v1.ListKeysResponse.api_keys) - return _internal_mutable_api_keys()->Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::APIKeyWithAuthorizations>* ListKeysResponse::mutable_api_keys() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ListKeysResponse.api_keys) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_api_keys(); -} -inline const ::viam::app::v1::APIKeyWithAuthorizations& ListKeysResponse::api_keys(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.ListKeysResponse.api_keys) - return _internal_api_keys().Get(index); -} -inline ::viam::app::v1::APIKeyWithAuthorizations* ListKeysResponse::add_api_keys() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::APIKeyWithAuthorizations* _add = _internal_mutable_api_keys()->Add(); - // @@protoc_insertion_point(field_add:viam.app.v1.ListKeysResponse.api_keys) - return _add; -} -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::APIKeyWithAuthorizations>& ListKeysResponse::api_keys() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:viam.app.v1.ListKeysResponse.api_keys) - return _internal_api_keys(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::APIKeyWithAuthorizations>& -ListKeysResponse::_internal_api_keys() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.api_keys_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::APIKeyWithAuthorizations>* -ListKeysResponse::_internal_mutable_api_keys() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.api_keys_; -} +// ------------------------------------------------------------------- // ------------------------------------------------------------------- -// RotateKeyRequest +// ------------------------------------------------------------------- -// string id = 1 [json_name = "id"]; -inline void RotateKeyRequest::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); -} -inline const std::string& RotateKeyRequest::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.RotateKeyRequest.id) - return _internal_id(); -} -template -inline PROTOBUF_ALWAYS_INLINE void RotateKeyRequest::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.RotateKeyRequest.id) -} -inline std::string* RotateKeyRequest::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.RotateKeyRequest.id) - return _s; -} -inline const std::string& RotateKeyRequest::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); -} -inline void RotateKeyRequest::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); -} -inline std::string* RotateKeyRequest::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); -} -inline std::string* RotateKeyRequest::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.RotateKeyRequest.id) - return _impl_.id_.Release(); -} -inline void RotateKeyRequest::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RotateKeyRequest.id) -} +// ------------------------------------------------------------------- // ------------------------------------------------------------------- -// RotateKeyResponse +// ------------------------------------------------------------------- -// string id = 1 [json_name = "id"]; -inline void RotateKeyResponse::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); -} -inline const std::string& RotateKeyResponse::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.RotateKeyResponse.id) - return _internal_id(); -} -template -inline PROTOBUF_ALWAYS_INLINE void RotateKeyResponse::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.RotateKeyResponse.id) -} -inline std::string* RotateKeyResponse::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.RotateKeyResponse.id) - return _s; -} -inline const std::string& RotateKeyResponse::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); -} -inline void RotateKeyResponse::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); -} -inline std::string* RotateKeyResponse::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); -} -inline std::string* RotateKeyResponse::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.RotateKeyResponse.id) - return _impl_.id_.Release(); -} -inline void RotateKeyResponse::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RotateKeyResponse.id) -} +// ------------------------------------------------------------------- -// string key = 2 [json_name = "key"]; -inline void RotateKeyResponse::clear_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.key_.ClearToEmpty(); -} -inline const std::string& RotateKeyResponse::key() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.RotateKeyResponse.key) - return _internal_key(); -} -template -inline PROTOBUF_ALWAYS_INLINE void RotateKeyResponse::set_key(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.key_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.RotateKeyResponse.key) -} -inline std::string* RotateKeyResponse::mutable_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_key(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.RotateKeyResponse.key) - return _s; -} -inline const std::string& RotateKeyResponse::_internal_key() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.key_.Get(); -} -inline void RotateKeyResponse::_internal_set_key(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.key_.Set(value, GetArena()); -} -inline std::string* RotateKeyResponse::_internal_mutable_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.key_.Mutable( GetArena()); -} -inline std::string* RotateKeyResponse::release_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.RotateKeyResponse.key) - return _impl_.key_.Release(); -} -inline void RotateKeyResponse::set_allocated_key(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.key_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.key_.IsDefault()) { - _impl_.key_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RotateKeyResponse.key) -} +// ------------------------------------------------------------------- // ------------------------------------------------------------------- -// CreateKeyFromExistingKeyAuthorizationsRequest +// ------------------------------------------------------------------- -// string id = 1 [json_name = "id"]; -inline void CreateKeyFromExistingKeyAuthorizationsRequest::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); -} -inline const std::string& CreateKeyFromExistingKeyAuthorizationsRequest::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsRequest.id) - return _internal_id(); -} -template -inline PROTOBUF_ALWAYS_INLINE void CreateKeyFromExistingKeyAuthorizationsRequest::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsRequest.id) -} -inline std::string* CreateKeyFromExistingKeyAuthorizationsRequest::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsRequest.id) - return _s; -} -inline const std::string& CreateKeyFromExistingKeyAuthorizationsRequest::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); -} -inline void CreateKeyFromExistingKeyAuthorizationsRequest::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); -} -inline std::string* CreateKeyFromExistingKeyAuthorizationsRequest::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); -} -inline std::string* CreateKeyFromExistingKeyAuthorizationsRequest::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsRequest.id) - return _impl_.id_.Release(); -} -inline void CreateKeyFromExistingKeyAuthorizationsRequest::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsRequest.id) -} +// ------------------------------------------------------------------- // ------------------------------------------------------------------- -// CreateKeyFromExistingKeyAuthorizationsResponse +// ------------------------------------------------------------------- -// string id = 1 [json_name = "id"]; -inline void CreateKeyFromExistingKeyAuthorizationsResponse::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); -} -inline const std::string& CreateKeyFromExistingKeyAuthorizationsResponse::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsResponse.id) - return _internal_id(); -} -template -inline PROTOBUF_ALWAYS_INLINE void CreateKeyFromExistingKeyAuthorizationsResponse::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsResponse.id) -} -inline std::string* CreateKeyFromExistingKeyAuthorizationsResponse::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_id(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsResponse.id) - return _s; -} -inline const std::string& CreateKeyFromExistingKeyAuthorizationsResponse::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); -} -inline void CreateKeyFromExistingKeyAuthorizationsResponse::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); -} -inline std::string* CreateKeyFromExistingKeyAuthorizationsResponse::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); -} -inline std::string* CreateKeyFromExistingKeyAuthorizationsResponse::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsResponse.id) - return _impl_.id_.Release(); -} -inline void CreateKeyFromExistingKeyAuthorizationsResponse::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsResponse.id) -} +// ------------------------------------------------------------------- -// string key = 2 [json_name = "key"]; -inline void CreateKeyFromExistingKeyAuthorizationsResponse::clear_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.key_.ClearToEmpty(); -} -inline const std::string& CreateKeyFromExistingKeyAuthorizationsResponse::key() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsResponse.key) - return _internal_key(); -} -template -inline PROTOBUF_ALWAYS_INLINE void CreateKeyFromExistingKeyAuthorizationsResponse::set_key(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.key_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsResponse.key) -} -inline std::string* CreateKeyFromExistingKeyAuthorizationsResponse::mutable_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_key(); - // @@protoc_insertion_point(field_mutable:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsResponse.key) - return _s; -} -inline const std::string& CreateKeyFromExistingKeyAuthorizationsResponse::_internal_key() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.key_.Get(); -} -inline void CreateKeyFromExistingKeyAuthorizationsResponse::_internal_set_key(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.key_.Set(value, GetArena()); -} -inline std::string* CreateKeyFromExistingKeyAuthorizationsResponse::_internal_mutable_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.key_.Mutable( GetArena()); -} -inline std::string* CreateKeyFromExistingKeyAuthorizationsResponse::release_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsResponse.key) - return _impl_.key_.Release(); -} -inline void CreateKeyFromExistingKeyAuthorizationsResponse::set_allocated_key(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.key_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.key_.IsDefault()) { - _impl_.key_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CreateKeyFromExistingKeyAuthorizationsResponse.key) -} +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- -#ifdef __GNUC__ -#pragma GCC diagnostic pop -#endif // __GNUC__ // @@protoc_insertion_point(namespace_scope) + } // namespace v1 } // namespace app } // namespace viam +PROTOBUF_NAMESPACE_OPEN -namespace google { -namespace protobuf { - -template <> -struct is_proto_enum<::viam::app::v1::SharedSecret_State> : std::true_type {}; +template <> struct is_proto_enum< ::viam::app::v1::SharedSecret_State> : ::std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor<::viam::app::v1::SharedSecret_State>() { +inline const EnumDescriptor* GetEnumDescriptor< ::viam::app::v1::SharedSecret_State>() { return ::viam::app::v1::SharedSecret_State_descriptor(); } +template <> struct is_proto_enum< ::viam::app::v1::AuthenticationType> : ::std::true_type {}; template <> -struct is_proto_enum<::viam::app::v1::AuthenticationType> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::viam::app::v1::AuthenticationType>() { +inline const EnumDescriptor* GetEnumDescriptor< ::viam::app::v1::AuthenticationType>() { return ::viam::app::v1::AuthenticationType_descriptor(); } +template <> struct is_proto_enum< ::viam::app::v1::FragmentVisibility> : ::std::true_type {}; template <> -struct is_proto_enum<::viam::app::v1::FragmentVisibility> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::viam::app::v1::FragmentVisibility>() { +inline const EnumDescriptor* GetEnumDescriptor< ::viam::app::v1::FragmentVisibility>() { return ::viam::app::v1::FragmentVisibility_descriptor(); } +template <> struct is_proto_enum< ::viam::app::v1::FragmentErrorType> : ::std::true_type {}; template <> -struct is_proto_enum<::viam::app::v1::FragmentErrorType> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::viam::app::v1::FragmentErrorType>() { +inline const EnumDescriptor* GetEnumDescriptor< ::viam::app::v1::FragmentErrorType>() { return ::viam::app::v1::FragmentErrorType_descriptor(); } +template <> struct is_proto_enum< ::viam::app::v1::RegistryItemStatus> : ::std::true_type {}; template <> -struct is_proto_enum<::viam::app::v1::RegistryItemStatus> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::viam::app::v1::RegistryItemStatus>() { +inline const EnumDescriptor* GetEnumDescriptor< ::viam::app::v1::RegistryItemStatus>() { return ::viam::app::v1::RegistryItemStatus_descriptor(); } +template <> struct is_proto_enum< ::viam::app::v1::Visibility> : ::std::true_type {}; template <> -struct is_proto_enum<::viam::app::v1::Visibility> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::viam::app::v1::Visibility>() { +inline const EnumDescriptor* GetEnumDescriptor< ::viam::app::v1::Visibility>() { return ::viam::app::v1::Visibility_descriptor(); } +template <> struct is_proto_enum< ::viam::app::v1::ClientAuthentication> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::viam::app::v1::ClientAuthentication>() { + return ::viam::app::v1::ClientAuthentication_descriptor(); +} +template <> struct is_proto_enum< ::viam::app::v1::PKCE> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::viam::app::v1::PKCE>() { + return ::viam::app::v1::PKCE_descriptor(); +} +template <> struct is_proto_enum< ::viam::app::v1::URLValidation> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::viam::app::v1::URLValidation>() { + return ::viam::app::v1::URLValidation_descriptor(); +} +template <> struct is_proto_enum< ::viam::app::v1::EnabledGrant> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::viam::app::v1::EnabledGrant>() { + return ::viam::app::v1::EnabledGrant_descriptor(); +} -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_app_2fv1_2fapp_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_app_2fv1_2fapp_2eproto diff --git a/src/viam/api/app/v1/billing.grpc.pb.cc b/src/viam/api/app/v1/billing.grpc.pb.cc index 07f1d5c8a..49e591dd5 100644 --- a/src/viam/api/app/v1/billing.grpc.pb.cc +++ b/src/viam/api/app/v1/billing.grpc.pb.cc @@ -6,19 +6,19 @@ #include "app/v1/billing.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace app { namespace v1 { @@ -33,133 +33,153 @@ static const char* BillingService_method_names[] = { std::unique_ptr< BillingService::Stub> BillingService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { (void)options; - std::unique_ptr< BillingService::Stub> stub(new BillingService::Stub(channel, options)); + std::unique_ptr< BillingService::Stub> stub(new BillingService::Stub(channel)); return stub; } -BillingService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) - : channel_(channel), rpcmethod_GetCurrentMonthUsage_(BillingService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetOrgBillingInformation_(BillingService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetInvoicesSummary_(BillingService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetInvoicePdf_(BillingService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::SERVER_STREAMING, channel) - , rpcmethod_SendPaymentRequiredEmail_(BillingService_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) +BillingService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_GetCurrentMonthUsage_(BillingService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetOrgBillingInformation_(BillingService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetInvoicesSummary_(BillingService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetInvoicePdf_(BillingService_method_names[3], ::grpc::internal::RpcMethod::SERVER_STREAMING, channel) + , rpcmethod_SendPaymentRequiredEmail_(BillingService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status BillingService::Stub::GetCurrentMonthUsage(::grpc::ClientContext* context, const ::viam::app::v1::GetCurrentMonthUsageRequest& request, ::viam::app::v1::GetCurrentMonthUsageResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::GetCurrentMonthUsageRequest, ::viam::app::v1::GetCurrentMonthUsageResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetCurrentMonthUsage_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetCurrentMonthUsage_, context, request, response); } -void BillingService::Stub::async::GetCurrentMonthUsage(::grpc::ClientContext* context, const ::viam::app::v1::GetCurrentMonthUsageRequest* request, ::viam::app::v1::GetCurrentMonthUsageResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::GetCurrentMonthUsageRequest, ::viam::app::v1::GetCurrentMonthUsageResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetCurrentMonthUsage_, context, request, response, std::move(f)); +void BillingService::Stub::experimental_async::GetCurrentMonthUsage(::grpc::ClientContext* context, const ::viam::app::v1::GetCurrentMonthUsageRequest* request, ::viam::app::v1::GetCurrentMonthUsageResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetCurrentMonthUsage_, context, request, response, std::move(f)); } -void BillingService::Stub::async::GetCurrentMonthUsage(::grpc::ClientContext* context, const ::viam::app::v1::GetCurrentMonthUsageRequest* request, ::viam::app::v1::GetCurrentMonthUsageResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetCurrentMonthUsage_, context, request, response, reactor); +void BillingService::Stub::experimental_async::GetCurrentMonthUsage(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetCurrentMonthUsageResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetCurrentMonthUsage_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetCurrentMonthUsageResponse>* BillingService::Stub::PrepareAsyncGetCurrentMonthUsageRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetCurrentMonthUsageRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::GetCurrentMonthUsageResponse, ::viam::app::v1::GetCurrentMonthUsageRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetCurrentMonthUsage_, context, request); +void BillingService::Stub::experimental_async::GetCurrentMonthUsage(::grpc::ClientContext* context, const ::viam::app::v1::GetCurrentMonthUsageRequest* request, ::viam::app::v1::GetCurrentMonthUsageResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetCurrentMonthUsage_, context, request, response, reactor); +} + +void BillingService::Stub::experimental_async::GetCurrentMonthUsage(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetCurrentMonthUsageResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetCurrentMonthUsage_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetCurrentMonthUsageResponse>* BillingService::Stub::AsyncGetCurrentMonthUsageRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetCurrentMonthUsageRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetCurrentMonthUsageRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::GetCurrentMonthUsageResponse>::Create(channel_.get(), cq, rpcmethod_GetCurrentMonthUsage_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetCurrentMonthUsageResponse>* BillingService::Stub::PrepareAsyncGetCurrentMonthUsageRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetCurrentMonthUsageRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::GetCurrentMonthUsageResponse>::Create(channel_.get(), cq, rpcmethod_GetCurrentMonthUsage_, context, request, false); } ::grpc::Status BillingService::Stub::GetOrgBillingInformation(::grpc::ClientContext* context, const ::viam::app::v1::GetOrgBillingInformationRequest& request, ::viam::app::v1::GetOrgBillingInformationResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::GetOrgBillingInformationRequest, ::viam::app::v1::GetOrgBillingInformationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetOrgBillingInformation_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetOrgBillingInformation_, context, request, response); } -void BillingService::Stub::async::GetOrgBillingInformation(::grpc::ClientContext* context, const ::viam::app::v1::GetOrgBillingInformationRequest* request, ::viam::app::v1::GetOrgBillingInformationResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::GetOrgBillingInformationRequest, ::viam::app::v1::GetOrgBillingInformationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetOrgBillingInformation_, context, request, response, std::move(f)); +void BillingService::Stub::experimental_async::GetOrgBillingInformation(::grpc::ClientContext* context, const ::viam::app::v1::GetOrgBillingInformationRequest* request, ::viam::app::v1::GetOrgBillingInformationResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetOrgBillingInformation_, context, request, response, std::move(f)); } -void BillingService::Stub::async::GetOrgBillingInformation(::grpc::ClientContext* context, const ::viam::app::v1::GetOrgBillingInformationRequest* request, ::viam::app::v1::GetOrgBillingInformationResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetOrgBillingInformation_, context, request, response, reactor); +void BillingService::Stub::experimental_async::GetOrgBillingInformation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetOrgBillingInformationResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetOrgBillingInformation_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetOrgBillingInformationResponse>* BillingService::Stub::PrepareAsyncGetOrgBillingInformationRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetOrgBillingInformationRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::GetOrgBillingInformationResponse, ::viam::app::v1::GetOrgBillingInformationRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetOrgBillingInformation_, context, request); +void BillingService::Stub::experimental_async::GetOrgBillingInformation(::grpc::ClientContext* context, const ::viam::app::v1::GetOrgBillingInformationRequest* request, ::viam::app::v1::GetOrgBillingInformationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetOrgBillingInformation_, context, request, response, reactor); +} + +void BillingService::Stub::experimental_async::GetOrgBillingInformation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetOrgBillingInformationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetOrgBillingInformation_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetOrgBillingInformationResponse>* BillingService::Stub::AsyncGetOrgBillingInformationRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetOrgBillingInformationRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetOrgBillingInformationRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::GetOrgBillingInformationResponse>::Create(channel_.get(), cq, rpcmethod_GetOrgBillingInformation_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetOrgBillingInformationResponse>* BillingService::Stub::PrepareAsyncGetOrgBillingInformationRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetOrgBillingInformationRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::GetOrgBillingInformationResponse>::Create(channel_.get(), cq, rpcmethod_GetOrgBillingInformation_, context, request, false); } ::grpc::Status BillingService::Stub::GetInvoicesSummary(::grpc::ClientContext* context, const ::viam::app::v1::GetInvoicesSummaryRequest& request, ::viam::app::v1::GetInvoicesSummaryResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::GetInvoicesSummaryRequest, ::viam::app::v1::GetInvoicesSummaryResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetInvoicesSummary_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetInvoicesSummary_, context, request, response); } -void BillingService::Stub::async::GetInvoicesSummary(::grpc::ClientContext* context, const ::viam::app::v1::GetInvoicesSummaryRequest* request, ::viam::app::v1::GetInvoicesSummaryResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::GetInvoicesSummaryRequest, ::viam::app::v1::GetInvoicesSummaryResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetInvoicesSummary_, context, request, response, std::move(f)); +void BillingService::Stub::experimental_async::GetInvoicesSummary(::grpc::ClientContext* context, const ::viam::app::v1::GetInvoicesSummaryRequest* request, ::viam::app::v1::GetInvoicesSummaryResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetInvoicesSummary_, context, request, response, std::move(f)); } -void BillingService::Stub::async::GetInvoicesSummary(::grpc::ClientContext* context, const ::viam::app::v1::GetInvoicesSummaryRequest* request, ::viam::app::v1::GetInvoicesSummaryResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetInvoicesSummary_, context, request, response, reactor); +void BillingService::Stub::experimental_async::GetInvoicesSummary(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetInvoicesSummaryResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetInvoicesSummary_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetInvoicesSummaryResponse>* BillingService::Stub::PrepareAsyncGetInvoicesSummaryRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetInvoicesSummaryRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::GetInvoicesSummaryResponse, ::viam::app::v1::GetInvoicesSummaryRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetInvoicesSummary_, context, request); +void BillingService::Stub::experimental_async::GetInvoicesSummary(::grpc::ClientContext* context, const ::viam::app::v1::GetInvoicesSummaryRequest* request, ::viam::app::v1::GetInvoicesSummaryResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetInvoicesSummary_, context, request, response, reactor); +} + +void BillingService::Stub::experimental_async::GetInvoicesSummary(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetInvoicesSummaryResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetInvoicesSummary_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetInvoicesSummaryResponse>* BillingService::Stub::AsyncGetInvoicesSummaryRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetInvoicesSummaryRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetInvoicesSummaryRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::GetInvoicesSummaryResponse>::Create(channel_.get(), cq, rpcmethod_GetInvoicesSummary_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetInvoicesSummaryResponse>* BillingService::Stub::PrepareAsyncGetInvoicesSummaryRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetInvoicesSummaryRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::GetInvoicesSummaryResponse>::Create(channel_.get(), cq, rpcmethod_GetInvoicesSummary_, context, request, false); } ::grpc::ClientReader< ::viam::app::v1::GetInvoicePdfResponse>* BillingService::Stub::GetInvoicePdfRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetInvoicePdfRequest& request) { - return ::grpc::internal::ClientReaderFactory< ::viam::app::v1::GetInvoicePdfResponse>::Create(channel_.get(), rpcmethod_GetInvoicePdf_, context, request); + return ::grpc_impl::internal::ClientReaderFactory< ::viam::app::v1::GetInvoicePdfResponse>::Create(channel_.get(), rpcmethod_GetInvoicePdf_, context, request); } -void BillingService::Stub::async::GetInvoicePdf(::grpc::ClientContext* context, const ::viam::app::v1::GetInvoicePdfRequest* request, ::grpc::ClientReadReactor< ::viam::app::v1::GetInvoicePdfResponse>* reactor) { - ::grpc::internal::ClientCallbackReaderFactory< ::viam::app::v1::GetInvoicePdfResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_GetInvoicePdf_, context, request, reactor); +void BillingService::Stub::experimental_async::GetInvoicePdf(::grpc::ClientContext* context, ::viam::app::v1::GetInvoicePdfRequest* request, ::grpc::experimental::ClientReadReactor< ::viam::app::v1::GetInvoicePdfResponse>* reactor) { + ::grpc_impl::internal::ClientCallbackReaderFactory< ::viam::app::v1::GetInvoicePdfResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_GetInvoicePdf_, context, request, reactor); } ::grpc::ClientAsyncReader< ::viam::app::v1::GetInvoicePdfResponse>* BillingService::Stub::AsyncGetInvoicePdfRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetInvoicePdfRequest& request, ::grpc::CompletionQueue* cq, void* tag) { - return ::grpc::internal::ClientAsyncReaderFactory< ::viam::app::v1::GetInvoicePdfResponse>::Create(channel_.get(), cq, rpcmethod_GetInvoicePdf_, context, request, true, tag); + return ::grpc_impl::internal::ClientAsyncReaderFactory< ::viam::app::v1::GetInvoicePdfResponse>::Create(channel_.get(), cq, rpcmethod_GetInvoicePdf_, context, request, true, tag); } ::grpc::ClientAsyncReader< ::viam::app::v1::GetInvoicePdfResponse>* BillingService::Stub::PrepareAsyncGetInvoicePdfRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetInvoicePdfRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncReaderFactory< ::viam::app::v1::GetInvoicePdfResponse>::Create(channel_.get(), cq, rpcmethod_GetInvoicePdf_, context, request, false, nullptr); + return ::grpc_impl::internal::ClientAsyncReaderFactory< ::viam::app::v1::GetInvoicePdfResponse>::Create(channel_.get(), cq, rpcmethod_GetInvoicePdf_, context, request, false, nullptr); } ::grpc::Status BillingService::Stub::SendPaymentRequiredEmail(::grpc::ClientContext* context, const ::viam::app::v1::SendPaymentRequiredEmailRequest& request, ::viam::app::v1::SendPaymentRequiredEmailResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::SendPaymentRequiredEmailRequest, ::viam::app::v1::SendPaymentRequiredEmailResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_SendPaymentRequiredEmail_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_SendPaymentRequiredEmail_, context, request, response); } -void BillingService::Stub::async::SendPaymentRequiredEmail(::grpc::ClientContext* context, const ::viam::app::v1::SendPaymentRequiredEmailRequest* request, ::viam::app::v1::SendPaymentRequiredEmailResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::SendPaymentRequiredEmailRequest, ::viam::app::v1::SendPaymentRequiredEmailResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SendPaymentRequiredEmail_, context, request, response, std::move(f)); +void BillingService::Stub::experimental_async::SendPaymentRequiredEmail(::grpc::ClientContext* context, const ::viam::app::v1::SendPaymentRequiredEmailRequest* request, ::viam::app::v1::SendPaymentRequiredEmailResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SendPaymentRequiredEmail_, context, request, response, std::move(f)); } -void BillingService::Stub::async::SendPaymentRequiredEmail(::grpc::ClientContext* context, const ::viam::app::v1::SendPaymentRequiredEmailRequest* request, ::viam::app::v1::SendPaymentRequiredEmailResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SendPaymentRequiredEmail_, context, request, response, reactor); +void BillingService::Stub::experimental_async::SendPaymentRequiredEmail(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::SendPaymentRequiredEmailResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SendPaymentRequiredEmail_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::SendPaymentRequiredEmailResponse>* BillingService::Stub::PrepareAsyncSendPaymentRequiredEmailRaw(::grpc::ClientContext* context, const ::viam::app::v1::SendPaymentRequiredEmailRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::SendPaymentRequiredEmailResponse, ::viam::app::v1::SendPaymentRequiredEmailRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_SendPaymentRequiredEmail_, context, request); +void BillingService::Stub::experimental_async::SendPaymentRequiredEmail(::grpc::ClientContext* context, const ::viam::app::v1::SendPaymentRequiredEmailRequest* request, ::viam::app::v1::SendPaymentRequiredEmailResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SendPaymentRequiredEmail_, context, request, response, reactor); +} + +void BillingService::Stub::experimental_async::SendPaymentRequiredEmail(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::SendPaymentRequiredEmailResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SendPaymentRequiredEmail_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::app::v1::SendPaymentRequiredEmailResponse>* BillingService::Stub::AsyncSendPaymentRequiredEmailRaw(::grpc::ClientContext* context, const ::viam::app::v1::SendPaymentRequiredEmailRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncSendPaymentRequiredEmailRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::SendPaymentRequiredEmailResponse>::Create(channel_.get(), cq, rpcmethod_SendPaymentRequiredEmail_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::SendPaymentRequiredEmailResponse>* BillingService::Stub::PrepareAsyncSendPaymentRequiredEmailRaw(::grpc::ClientContext* context, const ::viam::app::v1::SendPaymentRequiredEmailRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::SendPaymentRequiredEmailResponse>::Create(channel_.get(), cq, rpcmethod_SendPaymentRequiredEmail_, context, request, false); } BillingService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( BillingService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< BillingService::Service, ::viam::app::v1::GetCurrentMonthUsageRequest, ::viam::app::v1::GetCurrentMonthUsageResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< BillingService::Service, ::viam::app::v1::GetCurrentMonthUsageRequest, ::viam::app::v1::GetCurrentMonthUsageResponse>( [](BillingService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::GetCurrentMonthUsageRequest* req, ::viam::app::v1::GetCurrentMonthUsageResponse* resp) { return service->GetCurrentMonthUsage(ctx, req, resp); @@ -167,9 +187,9 @@ BillingService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( BillingService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< BillingService::Service, ::viam::app::v1::GetOrgBillingInformationRequest, ::viam::app::v1::GetOrgBillingInformationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< BillingService::Service, ::viam::app::v1::GetOrgBillingInformationRequest, ::viam::app::v1::GetOrgBillingInformationResponse>( [](BillingService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::GetOrgBillingInformationRequest* req, ::viam::app::v1::GetOrgBillingInformationResponse* resp) { return service->GetOrgBillingInformation(ctx, req, resp); @@ -177,9 +197,9 @@ BillingService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( BillingService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< BillingService::Service, ::viam::app::v1::GetInvoicesSummaryRequest, ::viam::app::v1::GetInvoicesSummaryResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< BillingService::Service, ::viam::app::v1::GetInvoicesSummaryRequest, ::viam::app::v1::GetInvoicesSummaryResponse>( [](BillingService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::GetInvoicesSummaryRequest* req, ::viam::app::v1::GetInvoicesSummaryResponse* resp) { return service->GetInvoicesSummary(ctx, req, resp); @@ -189,17 +209,17 @@ BillingService::Service::Service() { ::grpc::internal::RpcMethod::SERVER_STREAMING, new ::grpc::internal::ServerStreamingHandler< BillingService::Service, ::viam::app::v1::GetInvoicePdfRequest, ::viam::app::v1::GetInvoicePdfResponse>( [](BillingService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::GetInvoicePdfRequest* req, - ::grpc::ServerWriter<::viam::app::v1::GetInvoicePdfResponse>* writer) { + ::grpc_impl::ServerWriter<::viam::app::v1::GetInvoicePdfResponse>* writer) { return service->GetInvoicePdf(ctx, req, writer); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( BillingService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< BillingService::Service, ::viam::app::v1::SendPaymentRequiredEmailRequest, ::viam::app::v1::SendPaymentRequiredEmailResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< BillingService::Service, ::viam::app::v1::SendPaymentRequiredEmailRequest, ::viam::app::v1::SendPaymentRequiredEmailResponse>( [](BillingService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::SendPaymentRequiredEmailRequest* req, ::viam::app::v1::SendPaymentRequiredEmailResponse* resp) { return service->SendPaymentRequiredEmail(ctx, req, resp); diff --git a/src/viam/api/app/v1/billing.grpc.pb.h b/src/viam/api/app/v1/billing.grpc.pb.h index 0242c394a..a7a713ff5 100644 --- a/src/viam/api/app/v1/billing.grpc.pb.h +++ b/src/viam/api/app/v1/billing.grpc.pb.h @@ -7,23 +7,24 @@ #include "app/v1/billing.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace app { @@ -79,28 +80,76 @@ class BillingService final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::SendPaymentRequiredEmailResponse>> PrepareAsyncSendPaymentRequiredEmail(::grpc::ClientContext* context, const ::viam::app::v1::SendPaymentRequiredEmailRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::SendPaymentRequiredEmailResponse>>(PrepareAsyncSendPaymentRequiredEmailRaw(context, request, cq)); } - class async_interface { + class experimental_async_interface { public: - virtual ~async_interface() {} + virtual ~experimental_async_interface() {} // Detailed breakdown of current month's costs virtual void GetCurrentMonthUsage(::grpc::ClientContext* context, const ::viam::app::v1::GetCurrentMonthUsageRequest* request, ::viam::app::v1::GetCurrentMonthUsageResponse* response, std::function) = 0; + virtual void GetCurrentMonthUsage(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetCurrentMonthUsageResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetCurrentMonthUsage(::grpc::ClientContext* context, const ::viam::app::v1::GetCurrentMonthUsageRequest* request, ::viam::app::v1::GetCurrentMonthUsageResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetCurrentMonthUsage(::grpc::ClientContext* context, const ::viam::app::v1::GetCurrentMonthUsageRequest* request, ::viam::app::v1::GetCurrentMonthUsageResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetCurrentMonthUsage(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetCurrentMonthUsageResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetCurrentMonthUsage(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetCurrentMonthUsageResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Org-level information (like billing email and payment details) virtual void GetOrgBillingInformation(::grpc::ClientContext* context, const ::viam::app::v1::GetOrgBillingInformationRequest* request, ::viam::app::v1::GetOrgBillingInformationResponse* response, std::function) = 0; + virtual void GetOrgBillingInformation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetOrgBillingInformationResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetOrgBillingInformation(::grpc::ClientContext* context, const ::viam::app::v1::GetOrgBillingInformationRequest* request, ::viam::app::v1::GetOrgBillingInformationResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetOrgBillingInformation(::grpc::ClientContext* context, const ::viam::app::v1::GetOrgBillingInformationRequest* request, ::viam::app::v1::GetOrgBillingInformationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetOrgBillingInformation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetOrgBillingInformationResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetOrgBillingInformation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetOrgBillingInformationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Total outstanding balance and previous invoices virtual void GetInvoicesSummary(::grpc::ClientContext* context, const ::viam::app::v1::GetInvoicesSummaryRequest* request, ::viam::app::v1::GetInvoicesSummaryResponse* response, std::function) = 0; + virtual void GetInvoicesSummary(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetInvoicesSummaryResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetInvoicesSummary(::grpc::ClientContext* context, const ::viam::app::v1::GetInvoicesSummaryRequest* request, ::viam::app::v1::GetInvoicesSummaryResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetInvoicesSummary(::grpc::ClientContext* context, const ::viam::app::v1::GetInvoicesSummaryRequest* request, ::viam::app::v1::GetInvoicesSummaryResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetInvoicesSummary(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetInvoicesSummaryResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetInvoicesSummary(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetInvoicesSummaryResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Download a PDF invoice - virtual void GetInvoicePdf(::grpc::ClientContext* context, const ::viam::app::v1::GetInvoicePdfRequest* request, ::grpc::ClientReadReactor< ::viam::app::v1::GetInvoicePdfResponse>* reactor) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetInvoicePdf(::grpc::ClientContext* context, ::viam::app::v1::GetInvoicePdfRequest* request, ::grpc::ClientReadReactor< ::viam::app::v1::GetInvoicePdfResponse>* reactor) = 0; + #else + virtual void GetInvoicePdf(::grpc::ClientContext* context, ::viam::app::v1::GetInvoicePdfRequest* request, ::grpc::experimental::ClientReadReactor< ::viam::app::v1::GetInvoicePdfResponse>* reactor) = 0; + #endif // Send an email with a prompt to the user's org's billing page. virtual void SendPaymentRequiredEmail(::grpc::ClientContext* context, const ::viam::app::v1::SendPaymentRequiredEmailRequest* request, ::viam::app::v1::SendPaymentRequiredEmailResponse* response, std::function) = 0; + virtual void SendPaymentRequiredEmail(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::SendPaymentRequiredEmailResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void SendPaymentRequiredEmail(::grpc::ClientContext* context, const ::viam::app::v1::SendPaymentRequiredEmailRequest* request, ::viam::app::v1::SendPaymentRequiredEmailResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void SendPaymentRequiredEmail(::grpc::ClientContext* context, const ::viam::app::v1::SendPaymentRequiredEmailRequest* request, ::viam::app::v1::SendPaymentRequiredEmailResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void SendPaymentRequiredEmail(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::SendPaymentRequiredEmailResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void SendPaymentRequiredEmail(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::SendPaymentRequiredEmailResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif }; - typedef class async_interface experimental_async_interface; - virtual class async_interface* async() { return nullptr; } - class async_interface* experimental_async() { return async(); } - private: + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef class experimental_async_interface async_interface; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + async_interface* async() { return experimental_async(); } + #endif + virtual class experimental_async_interface* experimental_async() { return nullptr; } + private: virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::GetCurrentMonthUsageResponse>* AsyncGetCurrentMonthUsageRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetCurrentMonthUsageRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::GetCurrentMonthUsageResponse>* PrepareAsyncGetCurrentMonthUsageRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetCurrentMonthUsageRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::GetOrgBillingInformationResponse>* AsyncGetOrgBillingInformationRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetOrgBillingInformationRequest& request, ::grpc::CompletionQueue* cq) = 0; @@ -115,7 +164,7 @@ class BillingService final { }; class Stub final : public StubInterface { public: - Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); ::grpc::Status GetCurrentMonthUsage(::grpc::ClientContext* context, const ::viam::app::v1::GetCurrentMonthUsageRequest& request, ::viam::app::v1::GetCurrentMonthUsageResponse* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetCurrentMonthUsageResponse>> AsyncGetCurrentMonthUsage(::grpc::ClientContext* context, const ::viam::app::v1::GetCurrentMonthUsageRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetCurrentMonthUsageResponse>>(AsyncGetCurrentMonthUsageRaw(context, request, cq)); @@ -153,29 +202,73 @@ class BillingService final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::SendPaymentRequiredEmailResponse>> PrepareAsyncSendPaymentRequiredEmail(::grpc::ClientContext* context, const ::viam::app::v1::SendPaymentRequiredEmailRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::SendPaymentRequiredEmailResponse>>(PrepareAsyncSendPaymentRequiredEmailRaw(context, request, cq)); } - class async final : - public StubInterface::async_interface { + class experimental_async final : + public StubInterface::experimental_async_interface { public: void GetCurrentMonthUsage(::grpc::ClientContext* context, const ::viam::app::v1::GetCurrentMonthUsageRequest* request, ::viam::app::v1::GetCurrentMonthUsageResponse* response, std::function) override; + void GetCurrentMonthUsage(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetCurrentMonthUsageResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetCurrentMonthUsage(::grpc::ClientContext* context, const ::viam::app::v1::GetCurrentMonthUsageRequest* request, ::viam::app::v1::GetCurrentMonthUsageResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetCurrentMonthUsage(::grpc::ClientContext* context, const ::viam::app::v1::GetCurrentMonthUsageRequest* request, ::viam::app::v1::GetCurrentMonthUsageResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetCurrentMonthUsage(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetCurrentMonthUsageResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetCurrentMonthUsage(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetCurrentMonthUsageResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetOrgBillingInformation(::grpc::ClientContext* context, const ::viam::app::v1::GetOrgBillingInformationRequest* request, ::viam::app::v1::GetOrgBillingInformationResponse* response, std::function) override; + void GetOrgBillingInformation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetOrgBillingInformationResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetOrgBillingInformation(::grpc::ClientContext* context, const ::viam::app::v1::GetOrgBillingInformationRequest* request, ::viam::app::v1::GetOrgBillingInformationResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetOrgBillingInformation(::grpc::ClientContext* context, const ::viam::app::v1::GetOrgBillingInformationRequest* request, ::viam::app::v1::GetOrgBillingInformationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetOrgBillingInformation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetOrgBillingInformationResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetOrgBillingInformation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetOrgBillingInformationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetInvoicesSummary(::grpc::ClientContext* context, const ::viam::app::v1::GetInvoicesSummaryRequest* request, ::viam::app::v1::GetInvoicesSummaryResponse* response, std::function) override; + void GetInvoicesSummary(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetInvoicesSummaryResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetInvoicesSummary(::grpc::ClientContext* context, const ::viam::app::v1::GetInvoicesSummaryRequest* request, ::viam::app::v1::GetInvoicesSummaryResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - void GetInvoicePdf(::grpc::ClientContext* context, const ::viam::app::v1::GetInvoicePdfRequest* request, ::grpc::ClientReadReactor< ::viam::app::v1::GetInvoicePdfResponse>* reactor) override; + #else + void GetInvoicesSummary(::grpc::ClientContext* context, const ::viam::app::v1::GetInvoicesSummaryRequest* request, ::viam::app::v1::GetInvoicesSummaryResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetInvoicesSummary(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetInvoicesSummaryResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetInvoicesSummary(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetInvoicesSummaryResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetInvoicePdf(::grpc::ClientContext* context, ::viam::app::v1::GetInvoicePdfRequest* request, ::grpc::ClientReadReactor< ::viam::app::v1::GetInvoicePdfResponse>* reactor) override; + #else + void GetInvoicePdf(::grpc::ClientContext* context, ::viam::app::v1::GetInvoicePdfRequest* request, ::grpc::experimental::ClientReadReactor< ::viam::app::v1::GetInvoicePdfResponse>* reactor) override; + #endif void SendPaymentRequiredEmail(::grpc::ClientContext* context, const ::viam::app::v1::SendPaymentRequiredEmailRequest* request, ::viam::app::v1::SendPaymentRequiredEmailResponse* response, std::function) override; + void SendPaymentRequiredEmail(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::SendPaymentRequiredEmailResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void SendPaymentRequiredEmail(::grpc::ClientContext* context, const ::viam::app::v1::SendPaymentRequiredEmailRequest* request, ::viam::app::v1::SendPaymentRequiredEmailResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void SendPaymentRequiredEmail(::grpc::ClientContext* context, const ::viam::app::v1::SendPaymentRequiredEmailRequest* request, ::viam::app::v1::SendPaymentRequiredEmailResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void SendPaymentRequiredEmail(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::SendPaymentRequiredEmailResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void SendPaymentRequiredEmail(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::SendPaymentRequiredEmailResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif private: friend class Stub; - explicit async(Stub* stub): stub_(stub) { } + explicit experimental_async(Stub* stub): stub_(stub) { } Stub* stub() { return stub_; } Stub* stub_; }; - class async* async() override { return &async_stub_; } + class experimental_async_interface* experimental_async() override { return &async_stub_; } private: std::shared_ptr< ::grpc::ChannelInterface> channel_; - class async async_stub_{this}; + class experimental_async async_stub_{this}; ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetCurrentMonthUsageResponse>* AsyncGetCurrentMonthUsageRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetCurrentMonthUsageRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetCurrentMonthUsageResponse>* PrepareAsyncGetCurrentMonthUsageRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetCurrentMonthUsageRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetOrgBillingInformationResponse>* AsyncGetOrgBillingInformationRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetOrgBillingInformationRequest& request, ::grpc::CompletionQueue* cq) override; @@ -312,22 +405,36 @@ class BillingService final { }; typedef WithAsyncMethod_GetCurrentMonthUsage > > > > AsyncService; template - class WithCallbackMethod_GetCurrentMonthUsage : public BaseClass { + class ExperimentalWithCallbackMethod_GetCurrentMonthUsage : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetCurrentMonthUsage() { - ::grpc::Service::MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::GetCurrentMonthUsageRequest, ::viam::app::v1::GetCurrentMonthUsageResponse>( + ExperimentalWithCallbackMethod_GetCurrentMonthUsage() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::GetCurrentMonthUsageRequest, ::viam::app::v1::GetCurrentMonthUsageResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::GetCurrentMonthUsageRequest* request, ::viam::app::v1::GetCurrentMonthUsageResponse* response) { return this->GetCurrentMonthUsage(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::GetCurrentMonthUsageRequest* request, ::viam::app::v1::GetCurrentMonthUsageResponse* response) { return this->GetCurrentMonthUsage(context, request, response); }));} void SetMessageAllocatorFor_GetCurrentMonthUsage( - ::grpc::MessageAllocator< ::viam::app::v1::GetCurrentMonthUsageRequest, ::viam::app::v1::GetCurrentMonthUsageResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::app::v1::GetCurrentMonthUsageRequest, ::viam::app::v1::GetCurrentMonthUsageResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::GetCurrentMonthUsageRequest, ::viam::app::v1::GetCurrentMonthUsageResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(0); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::GetCurrentMonthUsageRequest, ::viam::app::v1::GetCurrentMonthUsageResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetCurrentMonthUsage() override { + ~ExperimentalWithCallbackMethod_GetCurrentMonthUsage() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -335,26 +442,46 @@ class BillingService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetCurrentMonthUsage( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::GetCurrentMonthUsageRequest* /*request*/, ::viam::app::v1::GetCurrentMonthUsageResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::GetCurrentMonthUsageRequest* /*request*/, ::viam::app::v1::GetCurrentMonthUsageResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetCurrentMonthUsage( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::GetCurrentMonthUsageRequest* /*request*/, ::viam::app::v1::GetCurrentMonthUsageResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetOrgBillingInformation : public BaseClass { + class ExperimentalWithCallbackMethod_GetOrgBillingInformation : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetOrgBillingInformation() { - ::grpc::Service::MarkMethodCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::GetOrgBillingInformationRequest, ::viam::app::v1::GetOrgBillingInformationResponse>( + ExperimentalWithCallbackMethod_GetOrgBillingInformation() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::GetOrgBillingInformationRequest, ::viam::app::v1::GetOrgBillingInformationResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::GetOrgBillingInformationRequest* request, ::viam::app::v1::GetOrgBillingInformationResponse* response) { return this->GetOrgBillingInformation(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::GetOrgBillingInformationRequest* request, ::viam::app::v1::GetOrgBillingInformationResponse* response) { return this->GetOrgBillingInformation(context, request, response); }));} void SetMessageAllocatorFor_GetOrgBillingInformation( - ::grpc::MessageAllocator< ::viam::app::v1::GetOrgBillingInformationRequest, ::viam::app::v1::GetOrgBillingInformationResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::app::v1::GetOrgBillingInformationRequest, ::viam::app::v1::GetOrgBillingInformationResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::GetOrgBillingInformationRequest, ::viam::app::v1::GetOrgBillingInformationResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(1); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::GetOrgBillingInformationRequest, ::viam::app::v1::GetOrgBillingInformationResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetOrgBillingInformation() override { + ~ExperimentalWithCallbackMethod_GetOrgBillingInformation() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -362,26 +489,46 @@ class BillingService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetOrgBillingInformation( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::GetOrgBillingInformationRequest* /*request*/, ::viam::app::v1::GetOrgBillingInformationResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::GetOrgBillingInformationRequest* /*request*/, ::viam::app::v1::GetOrgBillingInformationResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetOrgBillingInformation( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::GetOrgBillingInformationRequest* /*request*/, ::viam::app::v1::GetOrgBillingInformationResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetInvoicesSummary : public BaseClass { + class ExperimentalWithCallbackMethod_GetInvoicesSummary : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetInvoicesSummary() { - ::grpc::Service::MarkMethodCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::GetInvoicesSummaryRequest, ::viam::app::v1::GetInvoicesSummaryResponse>( + ExperimentalWithCallbackMethod_GetInvoicesSummary() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(2, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::GetInvoicesSummaryRequest, ::viam::app::v1::GetInvoicesSummaryResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::GetInvoicesSummaryRequest* request, ::viam::app::v1::GetInvoicesSummaryResponse* response) { return this->GetInvoicesSummary(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::GetInvoicesSummaryRequest* request, ::viam::app::v1::GetInvoicesSummaryResponse* response) { return this->GetInvoicesSummary(context, request, response); }));} void SetMessageAllocatorFor_GetInvoicesSummary( - ::grpc::MessageAllocator< ::viam::app::v1::GetInvoicesSummaryRequest, ::viam::app::v1::GetInvoicesSummaryResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::app::v1::GetInvoicesSummaryRequest, ::viam::app::v1::GetInvoicesSummaryResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::GetInvoicesSummaryRequest, ::viam::app::v1::GetInvoicesSummaryResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(2); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::GetInvoicesSummaryRequest, ::viam::app::v1::GetInvoicesSummaryResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetInvoicesSummary() override { + ~ExperimentalWithCallbackMethod_GetInvoicesSummary() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -389,21 +536,37 @@ class BillingService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetInvoicesSummary( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::GetInvoicesSummaryRequest* /*request*/, ::viam::app::v1::GetInvoicesSummaryResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::GetInvoicesSummaryRequest* /*request*/, ::viam::app::v1::GetInvoicesSummaryResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetInvoicesSummary( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::GetInvoicesSummaryRequest* /*request*/, ::viam::app::v1::GetInvoicesSummaryResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetInvoicePdf : public BaseClass { + class ExperimentalWithCallbackMethod_GetInvoicePdf : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetInvoicePdf() { - ::grpc::Service::MarkMethodCallback(3, - new ::grpc::internal::CallbackServerStreamingHandler< ::viam::app::v1::GetInvoicePdfRequest, ::viam::app::v1::GetInvoicePdfResponse>( + ExperimentalWithCallbackMethod_GetInvoicePdf() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(3, + new ::grpc_impl::internal::CallbackServerStreamingHandler< ::viam::app::v1::GetInvoicePdfRequest, ::viam::app::v1::GetInvoicePdfResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::GetInvoicePdfRequest* request) { return this->GetInvoicePdf(context, request); })); - } - ~WithCallbackMethod_GetInvoicePdf() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::GetInvoicePdfRequest* request) { return this->GetInvoicePdf(context, request); })); + } + ~ExperimentalWithCallbackMethod_GetInvoicePdf() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -411,26 +574,46 @@ class BillingService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerWriteReactor< ::viam::app::v1::GetInvoicePdfResponse>* GetInvoicePdf( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::GetInvoicePdfRequest* /*request*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::GetInvoicePdfRequest* /*request*/) + #else + virtual ::grpc::experimental::ServerWriteReactor< ::viam::app::v1::GetInvoicePdfResponse>* GetInvoicePdf( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::GetInvoicePdfRequest* /*request*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_SendPaymentRequiredEmail : public BaseClass { + class ExperimentalWithCallbackMethod_SendPaymentRequiredEmail : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_SendPaymentRequiredEmail() { - ::grpc::Service::MarkMethodCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::SendPaymentRequiredEmailRequest, ::viam::app::v1::SendPaymentRequiredEmailResponse>( + ExperimentalWithCallbackMethod_SendPaymentRequiredEmail() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(4, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::SendPaymentRequiredEmailRequest, ::viam::app::v1::SendPaymentRequiredEmailResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::SendPaymentRequiredEmailRequest* request, ::viam::app::v1::SendPaymentRequiredEmailResponse* response) { return this->SendPaymentRequiredEmail(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::SendPaymentRequiredEmailRequest* request, ::viam::app::v1::SendPaymentRequiredEmailResponse* response) { return this->SendPaymentRequiredEmail(context, request, response); }));} void SetMessageAllocatorFor_SendPaymentRequiredEmail( - ::grpc::MessageAllocator< ::viam::app::v1::SendPaymentRequiredEmailRequest, ::viam::app::v1::SendPaymentRequiredEmailResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::app::v1::SendPaymentRequiredEmailRequest, ::viam::app::v1::SendPaymentRequiredEmailResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::SendPaymentRequiredEmailRequest, ::viam::app::v1::SendPaymentRequiredEmailResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(4); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::SendPaymentRequiredEmailRequest, ::viam::app::v1::SendPaymentRequiredEmailResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_SendPaymentRequiredEmail() override { + ~ExperimentalWithCallbackMethod_SendPaymentRequiredEmail() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -438,11 +621,20 @@ class BillingService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* SendPaymentRequiredEmail( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::SendPaymentRequiredEmailRequest* /*request*/, ::viam::app::v1::SendPaymentRequiredEmailResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::SendPaymentRequiredEmailRequest* /*request*/, ::viam::app::v1::SendPaymentRequiredEmailResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* SendPaymentRequiredEmail( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::SendPaymentRequiredEmailRequest* /*request*/, ::viam::app::v1::SendPaymentRequiredEmailResponse* /*response*/) + #endif + { return nullptr; } }; - typedef WithCallbackMethod_GetCurrentMonthUsage > > > > CallbackService; - typedef CallbackService ExperimentalCallbackService; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef ExperimentalWithCallbackMethod_GetCurrentMonthUsage > > > > CallbackService; + #endif + + typedef ExperimentalWithCallbackMethod_GetCurrentMonthUsage > > > > ExperimentalCallbackService; template class WithGenericMethod_GetCurrentMonthUsage : public BaseClass { private: @@ -629,17 +821,27 @@ class BillingService final { } }; template - class WithRawCallbackMethod_GetCurrentMonthUsage : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetCurrentMonthUsage : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetCurrentMonthUsage() { - ::grpc::Service::MarkMethodRawCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetCurrentMonthUsage() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetCurrentMonthUsage(context, request, response); })); - } - ~WithRawCallbackMethod_GetCurrentMonthUsage() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetCurrentMonthUsage(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetCurrentMonthUsage() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -647,21 +849,37 @@ class BillingService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetCurrentMonthUsage( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetCurrentMonthUsage( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetOrgBillingInformation : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetOrgBillingInformation : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetOrgBillingInformation() { - ::grpc::Service::MarkMethodRawCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetOrgBillingInformation() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetOrgBillingInformation(context, request, response); })); - } - ~WithRawCallbackMethod_GetOrgBillingInformation() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetOrgBillingInformation(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetOrgBillingInformation() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -669,21 +887,37 @@ class BillingService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetOrgBillingInformation( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetOrgBillingInformation( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetInvoicesSummary : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetInvoicesSummary : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetInvoicesSummary() { - ::grpc::Service::MarkMethodRawCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetInvoicesSummary() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(2, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetInvoicesSummary(context, request, response); })); - } - ~WithRawCallbackMethod_GetInvoicesSummary() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetInvoicesSummary(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetInvoicesSummary() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -691,21 +925,37 @@ class BillingService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetInvoicesSummary( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetInvoicesSummary( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetInvoicePdf : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetInvoicePdf : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetInvoicePdf() { - ::grpc::Service::MarkMethodRawCallback(3, - new ::grpc::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetInvoicePdf() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(3, + new ::grpc_impl::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const::grpc::ByteBuffer* request) { return this->GetInvoicePdf(context, request); })); - } - ~WithRawCallbackMethod_GetInvoicePdf() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const::grpc::ByteBuffer* request) { return this->GetInvoicePdf(context, request); })); + } + ~ExperimentalWithRawCallbackMethod_GetInvoicePdf() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -713,21 +963,37 @@ class BillingService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerWriteReactor< ::grpc::ByteBuffer>* GetInvoicePdf( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) + #else + virtual ::grpc::experimental::ServerWriteReactor< ::grpc::ByteBuffer>* GetInvoicePdf( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_SendPaymentRequiredEmail : public BaseClass { + class ExperimentalWithRawCallbackMethod_SendPaymentRequiredEmail : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_SendPaymentRequiredEmail() { - ::grpc::Service::MarkMethodRawCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_SendPaymentRequiredEmail() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(4, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SendPaymentRequiredEmail(context, request, response); })); - } - ~WithRawCallbackMethod_SendPaymentRequiredEmail() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SendPaymentRequiredEmail(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_SendPaymentRequiredEmail() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -735,8 +1001,14 @@ class BillingService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* SendPaymentRequiredEmail( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* SendPaymentRequiredEmail( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template class WithStreamedUnaryMethod_GetCurrentMonthUsage : public BaseClass { @@ -747,8 +1019,8 @@ class BillingService final { ::grpc::Service::MarkMethodStreamed(0, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::GetCurrentMonthUsageRequest, ::viam::app::v1::GetCurrentMonthUsageResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::GetCurrentMonthUsageRequest, ::viam::app::v1::GetCurrentMonthUsageResponse>* streamer) { return this->StreamedGetCurrentMonthUsage(context, streamer); @@ -774,8 +1046,8 @@ class BillingService final { ::grpc::Service::MarkMethodStreamed(1, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::GetOrgBillingInformationRequest, ::viam::app::v1::GetOrgBillingInformationResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::GetOrgBillingInformationRequest, ::viam::app::v1::GetOrgBillingInformationResponse>* streamer) { return this->StreamedGetOrgBillingInformation(context, streamer); @@ -801,8 +1073,8 @@ class BillingService final { ::grpc::Service::MarkMethodStreamed(2, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::GetInvoicesSummaryRequest, ::viam::app::v1::GetInvoicesSummaryResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::GetInvoicesSummaryRequest, ::viam::app::v1::GetInvoicesSummaryResponse>* streamer) { return this->StreamedGetInvoicesSummary(context, streamer); @@ -828,8 +1100,8 @@ class BillingService final { ::grpc::Service::MarkMethodStreamed(4, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::SendPaymentRequiredEmailRequest, ::viam::app::v1::SendPaymentRequiredEmailResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::SendPaymentRequiredEmailRequest, ::viam::app::v1::SendPaymentRequiredEmailResponse>* streamer) { return this->StreamedSendPaymentRequiredEmail(context, streamer); @@ -856,8 +1128,8 @@ class BillingService final { ::grpc::Service::MarkMethodStreamed(3, new ::grpc::internal::SplitServerStreamingHandler< ::viam::app::v1::GetInvoicePdfRequest, ::viam::app::v1::GetInvoicePdfResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerSplitStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerSplitStreamer< ::viam::app::v1::GetInvoicePdfRequest, ::viam::app::v1::GetInvoicePdfResponse>* streamer) { return this->StreamedGetInvoicePdf(context, streamer); diff --git a/src/viam/api/app/v1/billing.pb.cc b/src/viam/api/app/v1/billing.pb.cc index 1043425d4..975f92094 100644 --- a/src/viam/api/app/v1/billing.pb.cc +++ b/src/viam/api/app/v1/billing.pb.cc @@ -4,1160 +4,1009 @@ #include "app/v1/billing.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace viam { namespace app { namespace v1 { - -inline constexpr UsageCost::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : cost_{0}, - resource_type_{static_cast< ::viam::app::v1::UsageCostType >(0)}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR UsageCost::UsageCost(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct UsageCostDefaultTypeInternal { - PROTOBUF_CONSTEXPR UsageCostDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~UsageCostDefaultTypeInternal() {} - union { - UsageCost _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UsageCostDefaultTypeInternal _UsageCost_default_instance_; - template -PROTOBUF_CONSTEXPR SendPaymentRequiredEmailResponse::SendPaymentRequiredEmailResponse(::_pbi::ConstantInitialized) {} -struct SendPaymentRequiredEmailResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SendPaymentRequiredEmailResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SendPaymentRequiredEmailResponseDefaultTypeInternal() {} - union { - SendPaymentRequiredEmailResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SendPaymentRequiredEmailResponseDefaultTypeInternal _SendPaymentRequiredEmailResponse_default_instance_; - -inline constexpr SendPaymentRequiredEmailRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : customer_org_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - billing_owner_org_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR SendPaymentRequiredEmailRequest::SendPaymentRequiredEmailRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct SendPaymentRequiredEmailRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SendPaymentRequiredEmailRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SendPaymentRequiredEmailRequestDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR InvoiceSummary::InvoiceSummary( + ::_pbi::ConstantInitialized) + : id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , status_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , invoice_date_(nullptr) + , due_date_(nullptr) + , paid_date_(nullptr) + , invoice_amount_(0){} +struct InvoiceSummaryDefaultTypeInternal { + PROTOBUF_CONSTEXPR InvoiceSummaryDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~InvoiceSummaryDefaultTypeInternal() {} union { - SendPaymentRequiredEmailRequest _instance; + InvoiceSummary _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SendPaymentRequiredEmailRequestDefaultTypeInternal _SendPaymentRequiredEmailRequest_default_instance_; - -inline constexpr PaymentMethodCard::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : brand_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - last_four_digits_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR PaymentMethodCard::PaymentMethodCard(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 InvoiceSummaryDefaultTypeInternal _InvoiceSummary_default_instance_; +PROTOBUF_CONSTEXPR PaymentMethodCard::PaymentMethodCard( + ::_pbi::ConstantInitialized) + : brand_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , last_four_digits_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} struct PaymentMethodCardDefaultTypeInternal { - PROTOBUF_CONSTEXPR PaymentMethodCardDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR PaymentMethodCardDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~PaymentMethodCardDefaultTypeInternal() {} union { PaymentMethodCard _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PaymentMethodCardDefaultTypeInternal _PaymentMethodCard_default_instance_; - -inline constexpr GetOrgBillingInformationRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : org_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetOrgBillingInformationRequest::GetOrgBillingInformationRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetOrgBillingInformationRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetOrgBillingInformationRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetOrgBillingInformationRequestDefaultTypeInternal() {} - union { - GetOrgBillingInformationRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetOrgBillingInformationRequestDefaultTypeInternal _GetOrgBillingInformationRequest_default_instance_; - -inline constexpr GetInvoicesSummaryRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : org_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetInvoicesSummaryRequest::GetInvoicesSummaryRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetInvoicesSummaryRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetInvoicesSummaryRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetInvoicesSummaryRequestDefaultTypeInternal() {} - union { - GetInvoicesSummaryRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetInvoicesSummaryRequestDefaultTypeInternal _GetInvoicesSummaryRequest_default_instance_; - -inline constexpr GetInvoicePdfResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : chunk_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetInvoicePdfResponse::GetInvoicePdfResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetInvoicePdfResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetInvoicePdfResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetInvoicePdfResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PaymentMethodCardDefaultTypeInternal _PaymentMethodCard_default_instance_; +PROTOBUF_CONSTEXPR GetCurrentMonthUsageRequest::GetCurrentMonthUsageRequest( + ::_pbi::ConstantInitialized) + : org_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct GetCurrentMonthUsageRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetCurrentMonthUsageRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetCurrentMonthUsageRequestDefaultTypeInternal() {} union { - GetInvoicePdfResponse _instance; + GetCurrentMonthUsageRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetInvoicePdfResponseDefaultTypeInternal _GetInvoicePdfResponse_default_instance_; - -inline constexpr GetInvoicePdfRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - org_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetInvoicePdfRequest::GetInvoicePdfRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetInvoicePdfRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetInvoicePdfRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetInvoicePdfRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetCurrentMonthUsageRequestDefaultTypeInternal _GetCurrentMonthUsageRequest_default_instance_; +PROTOBUF_CONSTEXPR UsageCost::UsageCost( + ::_pbi::ConstantInitialized) + : cost_(0) + , resource_type_(0) +{} +struct UsageCostDefaultTypeInternal { + PROTOBUF_CONSTEXPR UsageCostDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~UsageCostDefaultTypeInternal() {} union { - GetInvoicePdfRequest _instance; + UsageCost _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetInvoicePdfRequestDefaultTypeInternal _GetInvoicePdfRequest_default_instance_; - -inline constexpr GetCurrentMonthUsageRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : org_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetCurrentMonthUsageRequest::GetCurrentMonthUsageRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetCurrentMonthUsageRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetCurrentMonthUsageRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetCurrentMonthUsageRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UsageCostDefaultTypeInternal _UsageCost_default_instance_; +PROTOBUF_CONSTEXPR ResourceUsageCostsBySource::ResourceUsageCostsBySource( + ::_pbi::ConstantInitialized) + : tier_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , resource_usage_costs_(nullptr) + , source_type_(0) +{} +struct ResourceUsageCostsBySourceDefaultTypeInternal { + PROTOBUF_CONSTEXPR ResourceUsageCostsBySourceDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ResourceUsageCostsBySourceDefaultTypeInternal() {} union { - GetCurrentMonthUsageRequest _instance; + ResourceUsageCostsBySource _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetCurrentMonthUsageRequestDefaultTypeInternal _GetCurrentMonthUsageRequest_default_instance_; - -inline constexpr ResourceUsageCosts::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : usage_costs_{}, - discount_{0}, - total_with_discount_{0}, - total_without_discount_{0}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR ResourceUsageCosts::ResourceUsageCosts(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResourceUsageCostsBySourceDefaultTypeInternal _ResourceUsageCostsBySource_default_instance_; +PROTOBUF_CONSTEXPR ResourceUsageCosts::ResourceUsageCosts( + ::_pbi::ConstantInitialized) + : usage_costs_() + , discount_(0) + , total_with_discount_(0) + , total_without_discount_(0){} struct ResourceUsageCostsDefaultTypeInternal { - PROTOBUF_CONSTEXPR ResourceUsageCostsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ResourceUsageCostsDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~ResourceUsageCostsDefaultTypeInternal() {} union { ResourceUsageCosts _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResourceUsageCostsDefaultTypeInternal _ResourceUsageCosts_default_instance_; - -inline constexpr InvoiceSummary::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - status_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - invoice_date_{nullptr}, - due_date_{nullptr}, - paid_date_{nullptr}, - invoice_amount_{0} {} - -template -PROTOBUF_CONSTEXPR InvoiceSummary::InvoiceSummary(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct InvoiceSummaryDefaultTypeInternal { - PROTOBUF_CONSTEXPR InvoiceSummaryDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~InvoiceSummaryDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResourceUsageCostsDefaultTypeInternal _ResourceUsageCosts_default_instance_; +PROTOBUF_CONSTEXPR GetCurrentMonthUsageResponse::GetCurrentMonthUsageResponse( + ::_pbi::ConstantInitialized) + : resource_usage_costs_by_source_() + , start_date_(nullptr) + , end_date_(nullptr) + , cloud_storage_usage_cost_(0) + , data_upload_usage_cost_(0) + , data_egres_usage_cost_(0) + , remote_control_usage_cost_(0) + , standard_compute_usage_cost_(0) + , discount_amount_(0) + , total_usage_with_discount_(0) + , total_usage_without_discount_(0) + , per_machine_usage_cost_(0) + , binary_data_cloud_storage_usage_cost_(0) + , other_cloud_storage_usage_cost_(0) + , subtotal_(0){} +struct GetCurrentMonthUsageResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetCurrentMonthUsageResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetCurrentMonthUsageResponseDefaultTypeInternal() {} union { - InvoiceSummary _instance; + GetCurrentMonthUsageResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 InvoiceSummaryDefaultTypeInternal _InvoiceSummary_default_instance_; - -inline constexpr GetOrgBillingInformationResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - billing_email_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - billing_tier_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - method_{nullptr}, - type_{static_cast< ::viam::app::v1::PaymentMethodType >(0)} {} - -template -PROTOBUF_CONSTEXPR GetOrgBillingInformationResponse::GetOrgBillingInformationResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetCurrentMonthUsageResponseDefaultTypeInternal _GetCurrentMonthUsageResponse_default_instance_; +PROTOBUF_CONSTEXPR GetOrgBillingInformationRequest::GetOrgBillingInformationRequest( + ::_pbi::ConstantInitialized) + : org_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct GetOrgBillingInformationRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetOrgBillingInformationRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetOrgBillingInformationRequestDefaultTypeInternal() {} + union { + GetOrgBillingInformationRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetOrgBillingInformationRequestDefaultTypeInternal _GetOrgBillingInformationRequest_default_instance_; +PROTOBUF_CONSTEXPR GetOrgBillingInformationResponse::GetOrgBillingInformationResponse( + ::_pbi::ConstantInitialized) + : billing_email_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , billing_tier_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , method_(nullptr) + , type_(0) +{} struct GetOrgBillingInformationResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetOrgBillingInformationResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GetOrgBillingInformationResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~GetOrgBillingInformationResponseDefaultTypeInternal() {} union { GetOrgBillingInformationResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetOrgBillingInformationResponseDefaultTypeInternal _GetOrgBillingInformationResponse_default_instance_; - -inline constexpr ResourceUsageCostsBySource::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - tier_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - resource_usage_costs_{nullptr}, - source_type_{static_cast< ::viam::app::v1::SourceType >(0)} {} - -template -PROTOBUF_CONSTEXPR ResourceUsageCostsBySource::ResourceUsageCostsBySource(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ResourceUsageCostsBySourceDefaultTypeInternal { - PROTOBUF_CONSTEXPR ResourceUsageCostsBySourceDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ResourceUsageCostsBySourceDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetOrgBillingInformationResponseDefaultTypeInternal _GetOrgBillingInformationResponse_default_instance_; +PROTOBUF_CONSTEXPR GetInvoicesSummaryRequest::GetInvoicesSummaryRequest( + ::_pbi::ConstantInitialized) + : org_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct GetInvoicesSummaryRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetInvoicesSummaryRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetInvoicesSummaryRequestDefaultTypeInternal() {} union { - ResourceUsageCostsBySource _instance; + GetInvoicesSummaryRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResourceUsageCostsBySourceDefaultTypeInternal _ResourceUsageCostsBySource_default_instance_; - -inline constexpr GetInvoicesSummaryResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : invoices_{}, - outstanding_balance_{0}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetInvoicesSummaryResponse::GetInvoicesSummaryResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetInvoicesSummaryRequestDefaultTypeInternal _GetInvoicesSummaryRequest_default_instance_; +PROTOBUF_CONSTEXPR GetInvoicesSummaryResponse::GetInvoicesSummaryResponse( + ::_pbi::ConstantInitialized) + : invoices_() + , outstanding_balance_(0){} struct GetInvoicesSummaryResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetInvoicesSummaryResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GetInvoicesSummaryResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~GetInvoicesSummaryResponseDefaultTypeInternal() {} union { GetInvoicesSummaryResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetInvoicesSummaryResponseDefaultTypeInternal _GetInvoicesSummaryResponse_default_instance_; - -inline constexpr GetCurrentMonthUsageResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - resource_usage_costs_by_source_{}, - start_date_{nullptr}, - end_date_{nullptr}, - cloud_storage_usage_cost_{0}, - data_upload_usage_cost_{0}, - data_egres_usage_cost_{0}, - remote_control_usage_cost_{0}, - standard_compute_usage_cost_{0}, - discount_amount_{0}, - total_usage_with_discount_{0}, - total_usage_without_discount_{0}, - per_machine_usage_cost_{0}, - binary_data_cloud_storage_usage_cost_{0}, - other_cloud_storage_usage_cost_{0}, - subtotal_{0} {} - -template -PROTOBUF_CONSTEXPR GetCurrentMonthUsageResponse::GetCurrentMonthUsageResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetCurrentMonthUsageResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetCurrentMonthUsageResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetCurrentMonthUsageResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetInvoicesSummaryResponseDefaultTypeInternal _GetInvoicesSummaryResponse_default_instance_; +PROTOBUF_CONSTEXPR GetInvoicePdfRequest::GetInvoicePdfRequest( + ::_pbi::ConstantInitialized) + : id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , org_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct GetInvoicePdfRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetInvoicePdfRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetInvoicePdfRequestDefaultTypeInternal() {} union { - GetCurrentMonthUsageResponse _instance; + GetInvoicePdfRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetCurrentMonthUsageResponseDefaultTypeInternal _GetCurrentMonthUsageResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetInvoicePdfRequestDefaultTypeInternal _GetInvoicePdfRequest_default_instance_; +PROTOBUF_CONSTEXPR GetInvoicePdfResponse::GetInvoicePdfResponse( + ::_pbi::ConstantInitialized) + : chunk_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct GetInvoicePdfResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetInvoicePdfResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetInvoicePdfResponseDefaultTypeInternal() {} + union { + GetInvoicePdfResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetInvoicePdfResponseDefaultTypeInternal _GetInvoicePdfResponse_default_instance_; +PROTOBUF_CONSTEXPR SendPaymentRequiredEmailRequest::SendPaymentRequiredEmailRequest( + ::_pbi::ConstantInitialized) + : customer_org_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , billing_owner_org_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct SendPaymentRequiredEmailRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SendPaymentRequiredEmailRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SendPaymentRequiredEmailRequestDefaultTypeInternal() {} + union { + SendPaymentRequiredEmailRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SendPaymentRequiredEmailRequestDefaultTypeInternal _SendPaymentRequiredEmailRequest_default_instance_; +PROTOBUF_CONSTEXPR SendPaymentRequiredEmailResponse::SendPaymentRequiredEmailResponse( + ::_pbi::ConstantInitialized){} +struct SendPaymentRequiredEmailResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR SendPaymentRequiredEmailResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SendPaymentRequiredEmailResponseDefaultTypeInternal() {} + union { + SendPaymentRequiredEmailResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SendPaymentRequiredEmailResponseDefaultTypeInternal _SendPaymentRequiredEmailResponse_default_instance_; } // namespace v1 } // namespace app } // namespace viam static ::_pb::Metadata file_level_metadata_app_2fv1_2fbilling_2eproto[15]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_app_2fv1_2fbilling_2eproto[3]; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_app_2fv1_2fbilling_2eproto = nullptr; -const ::uint32_t TableStruct_app_2fv1_2fbilling_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::viam::app::v1::InvoiceSummary, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::InvoiceSummary, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::InvoiceSummary, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::InvoiceSummary, _impl_.invoice_date_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::InvoiceSummary, _impl_.invoice_amount_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::InvoiceSummary, _impl_.status_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::InvoiceSummary, _impl_.due_date_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::InvoiceSummary, _impl_.paid_date_), - ~0u, - 0, - ~0u, - ~0u, - 1, - 2, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::PaymentMethodCard, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::PaymentMethodCard, _impl_.brand_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::PaymentMethodCard, _impl_.last_four_digits_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetCurrentMonthUsageRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetCurrentMonthUsageRequest, _impl_.org_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UsageCost, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UsageCost, _impl_.resource_type_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UsageCost, _impl_.cost_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ResourceUsageCostsBySource, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ResourceUsageCostsBySource, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ResourceUsageCostsBySource, _impl_.source_type_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ResourceUsageCostsBySource, _impl_.resource_usage_costs_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ResourceUsageCostsBySource, _impl_.tier_name_), - ~0u, - 0, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ResourceUsageCosts, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ResourceUsageCosts, _impl_.usage_costs_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ResourceUsageCosts, _impl_.discount_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ResourceUsageCosts, _impl_.total_with_discount_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ResourceUsageCosts, _impl_.total_without_discount_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetCurrentMonthUsageResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetCurrentMonthUsageResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetCurrentMonthUsageResponse, _impl_.start_date_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetCurrentMonthUsageResponse, _impl_.end_date_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetCurrentMonthUsageResponse, _impl_.resource_usage_costs_by_source_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetCurrentMonthUsageResponse, _impl_.subtotal_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetCurrentMonthUsageResponse, _impl_.cloud_storage_usage_cost_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetCurrentMonthUsageResponse, _impl_.data_upload_usage_cost_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetCurrentMonthUsageResponse, _impl_.data_egres_usage_cost_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetCurrentMonthUsageResponse, _impl_.remote_control_usage_cost_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetCurrentMonthUsageResponse, _impl_.standard_compute_usage_cost_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetCurrentMonthUsageResponse, _impl_.discount_amount_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetCurrentMonthUsageResponse, _impl_.total_usage_with_discount_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetCurrentMonthUsageResponse, _impl_.total_usage_without_discount_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetCurrentMonthUsageResponse, _impl_.per_machine_usage_cost_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetCurrentMonthUsageResponse, _impl_.binary_data_cloud_storage_usage_cost_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetCurrentMonthUsageResponse, _impl_.other_cloud_storage_usage_cost_), - 0, - 1, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetOrgBillingInformationRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetOrgBillingInformationRequest, _impl_.org_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetOrgBillingInformationResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetOrgBillingInformationResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetOrgBillingInformationResponse, _impl_.type_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetOrgBillingInformationResponse, _impl_.billing_email_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetOrgBillingInformationResponse, _impl_.method_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetOrgBillingInformationResponse, _impl_.billing_tier_), - ~0u, - ~0u, - 1, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetInvoicesSummaryRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetInvoicesSummaryRequest, _impl_.org_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetInvoicesSummaryResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetInvoicesSummaryResponse, _impl_.outstanding_balance_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetInvoicesSummaryResponse, _impl_.invoices_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetInvoicePdfRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetInvoicePdfRequest, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetInvoicePdfRequest, _impl_.org_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetInvoicePdfResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetInvoicePdfResponse, _impl_.chunk_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::SendPaymentRequiredEmailRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::SendPaymentRequiredEmailRequest, _impl_.customer_org_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::SendPaymentRequiredEmailRequest, _impl_.billing_owner_org_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::SendPaymentRequiredEmailResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_app_2fv1_2fbilling_2eproto = nullptr; + +const uint32_t TableStruct_app_2fv1_2fbilling_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::InvoiceSummary, _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::InvoiceSummary, id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::InvoiceSummary, invoice_date_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::InvoiceSummary, invoice_amount_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::InvoiceSummary, status_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::InvoiceSummary, due_date_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::InvoiceSummary, paid_date_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::PaymentMethodCard, _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::PaymentMethodCard, brand_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::PaymentMethodCard, last_four_digits_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetCurrentMonthUsageRequest, _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::GetCurrentMonthUsageRequest, org_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UsageCost, _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::UsageCost, resource_type_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UsageCost, cost_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ResourceUsageCostsBySource, _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::ResourceUsageCostsBySource, source_type_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ResourceUsageCostsBySource, resource_usage_costs_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ResourceUsageCostsBySource, tier_name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ResourceUsageCosts, _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::ResourceUsageCosts, usage_costs_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ResourceUsageCosts, discount_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ResourceUsageCosts, total_with_discount_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ResourceUsageCosts, total_without_discount_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetCurrentMonthUsageResponse, _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::GetCurrentMonthUsageResponse, start_date_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetCurrentMonthUsageResponse, end_date_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetCurrentMonthUsageResponse, resource_usage_costs_by_source_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetCurrentMonthUsageResponse, subtotal_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetCurrentMonthUsageResponse, cloud_storage_usage_cost_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetCurrentMonthUsageResponse, data_upload_usage_cost_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetCurrentMonthUsageResponse, data_egres_usage_cost_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetCurrentMonthUsageResponse, remote_control_usage_cost_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetCurrentMonthUsageResponse, standard_compute_usage_cost_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetCurrentMonthUsageResponse, discount_amount_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetCurrentMonthUsageResponse, total_usage_with_discount_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetCurrentMonthUsageResponse, total_usage_without_discount_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetCurrentMonthUsageResponse, per_machine_usage_cost_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetCurrentMonthUsageResponse, binary_data_cloud_storage_usage_cost_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetCurrentMonthUsageResponse, other_cloud_storage_usage_cost_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetOrgBillingInformationRequest, _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::GetOrgBillingInformationRequest, org_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetOrgBillingInformationResponse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetOrgBillingInformationResponse, _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::GetOrgBillingInformationResponse, type_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetOrgBillingInformationResponse, billing_email_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetOrgBillingInformationResponse, method_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetOrgBillingInformationResponse, billing_tier_), + ~0u, + ~0u, + 1, + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetInvoicesSummaryRequest, _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::GetInvoicesSummaryRequest, org_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetInvoicesSummaryResponse, _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::GetInvoicesSummaryResponse, outstanding_balance_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetInvoicesSummaryResponse, invoices_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetInvoicePdfRequest, _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::GetInvoicePdfRequest, id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetInvoicePdfRequest, org_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetInvoicePdfResponse, _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::GetInvoicePdfResponse, chunk_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::SendPaymentRequiredEmailRequest, _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::SendPaymentRequiredEmailRequest, customer_org_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::SendPaymentRequiredEmailRequest, billing_owner_org_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::SendPaymentRequiredEmailResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ }; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, 14, -1, sizeof(::viam::app::v1::InvoiceSummary)}, - {20, -1, -1, sizeof(::viam::app::v1::PaymentMethodCard)}, - {30, -1, -1, sizeof(::viam::app::v1::GetCurrentMonthUsageRequest)}, - {39, -1, -1, sizeof(::viam::app::v1::UsageCost)}, - {49, 60, -1, sizeof(::viam::app::v1::ResourceUsageCostsBySource)}, - {63, -1, -1, sizeof(::viam::app::v1::ResourceUsageCosts)}, - {75, 98, -1, sizeof(::viam::app::v1::GetCurrentMonthUsageResponse)}, - {113, -1, -1, sizeof(::viam::app::v1::GetOrgBillingInformationRequest)}, - {122, 134, -1, sizeof(::viam::app::v1::GetOrgBillingInformationResponse)}, - {138, -1, -1, sizeof(::viam::app::v1::GetInvoicesSummaryRequest)}, - {147, -1, -1, sizeof(::viam::app::v1::GetInvoicesSummaryResponse)}, - {157, -1, -1, sizeof(::viam::app::v1::GetInvoicePdfRequest)}, - {167, -1, -1, sizeof(::viam::app::v1::GetInvoicePdfResponse)}, - {176, -1, -1, sizeof(::viam::app::v1::SendPaymentRequiredEmailRequest)}, - {186, -1, -1, sizeof(::viam::app::v1::SendPaymentRequiredEmailResponse)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::app::v1::InvoiceSummary)}, + { 12, -1, -1, sizeof(::viam::app::v1::PaymentMethodCard)}, + { 20, -1, -1, sizeof(::viam::app::v1::GetCurrentMonthUsageRequest)}, + { 27, -1, -1, sizeof(::viam::app::v1::UsageCost)}, + { 35, -1, -1, sizeof(::viam::app::v1::ResourceUsageCostsBySource)}, + { 44, -1, -1, sizeof(::viam::app::v1::ResourceUsageCosts)}, + { 54, -1, -1, sizeof(::viam::app::v1::GetCurrentMonthUsageResponse)}, + { 75, -1, -1, sizeof(::viam::app::v1::GetOrgBillingInformationRequest)}, + { 82, 92, -1, sizeof(::viam::app::v1::GetOrgBillingInformationResponse)}, + { 96, -1, -1, sizeof(::viam::app::v1::GetInvoicesSummaryRequest)}, + { 103, -1, -1, sizeof(::viam::app::v1::GetInvoicesSummaryResponse)}, + { 111, -1, -1, sizeof(::viam::app::v1::GetInvoicePdfRequest)}, + { 119, -1, -1, sizeof(::viam::app::v1::GetInvoicePdfResponse)}, + { 126, -1, -1, sizeof(::viam::app::v1::SendPaymentRequiredEmailRequest)}, + { 134, -1, -1, sizeof(::viam::app::v1::SendPaymentRequiredEmailResponse)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::viam::app::v1::_InvoiceSummary_default_instance_._instance, - &::viam::app::v1::_PaymentMethodCard_default_instance_._instance, - &::viam::app::v1::_GetCurrentMonthUsageRequest_default_instance_._instance, - &::viam::app::v1::_UsageCost_default_instance_._instance, - &::viam::app::v1::_ResourceUsageCostsBySource_default_instance_._instance, - &::viam::app::v1::_ResourceUsageCosts_default_instance_._instance, - &::viam::app::v1::_GetCurrentMonthUsageResponse_default_instance_._instance, - &::viam::app::v1::_GetOrgBillingInformationRequest_default_instance_._instance, - &::viam::app::v1::_GetOrgBillingInformationResponse_default_instance_._instance, - &::viam::app::v1::_GetInvoicesSummaryRequest_default_instance_._instance, - &::viam::app::v1::_GetInvoicesSummaryResponse_default_instance_._instance, - &::viam::app::v1::_GetInvoicePdfRequest_default_instance_._instance, - &::viam::app::v1::_GetInvoicePdfResponse_default_instance_._instance, - &::viam::app::v1::_SendPaymentRequiredEmailRequest_default_instance_._instance, - &::viam::app::v1::_SendPaymentRequiredEmailResponse_default_instance_._instance, + &::viam::app::v1::_InvoiceSummary_default_instance_._instance, + &::viam::app::v1::_PaymentMethodCard_default_instance_._instance, + &::viam::app::v1::_GetCurrentMonthUsageRequest_default_instance_._instance, + &::viam::app::v1::_UsageCost_default_instance_._instance, + &::viam::app::v1::_ResourceUsageCostsBySource_default_instance_._instance, + &::viam::app::v1::_ResourceUsageCosts_default_instance_._instance, + &::viam::app::v1::_GetCurrentMonthUsageResponse_default_instance_._instance, + &::viam::app::v1::_GetOrgBillingInformationRequest_default_instance_._instance, + &::viam::app::v1::_GetOrgBillingInformationResponse_default_instance_._instance, + &::viam::app::v1::_GetInvoicesSummaryRequest_default_instance_._instance, + &::viam::app::v1::_GetInvoicesSummaryResponse_default_instance_._instance, + &::viam::app::v1::_GetInvoicePdfRequest_default_instance_._instance, + &::viam::app::v1::_GetInvoicePdfResponse_default_instance_._instance, + &::viam::app::v1::_SendPaymentRequiredEmailRequest_default_instance_._instance, + &::viam::app::v1::_SendPaymentRequiredEmailResponse_default_instance_._instance, }; -const char descriptor_table_protodef_app_2fv1_2fbilling_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n\024app/v1/billing.proto\022\013viam.app.v1\032\037goo" - "gle/protobuf/timestamp.proto\"\216\002\n\016Invoice" - "Summary\022\016\n\002id\030\001 \001(\tR\002id\022=\n\014invoice_date\030" - "\002 \001(\0132\032.google.protobuf.TimestampR\013invoi" - "ceDate\022%\n\016invoice_amount\030\003 \001(\001R\rinvoiceA" - "mount\022\026\n\006status\030\004 \001(\tR\006status\0225\n\010due_dat" - "e\030\005 \001(\0132\032.google.protobuf.TimestampR\007due" - "Date\0227\n\tpaid_date\030\006 \001(\0132\032.google.protobu" - "f.TimestampR\010paidDate\"S\n\021PaymentMethodCa" - "rd\022\024\n\005brand\030\001 \001(\tR\005brand\022(\n\020last_four_di" - "gits\030\002 \001(\tR\016lastFourDigits\"4\n\033GetCurrent" - "MonthUsageRequest\022\025\n\006org_id\030\001 \001(\tR\005orgId" - "\"`\n\tUsageCost\022\?\n\rresource_type\030\001 \001(\0162\032.v" - "iam.app.v1.UsageCostTypeR\014resourceType\022\022" - "\n\004cost\030\002 \001(\001R\004cost\"\306\001\n\032ResourceUsageCost" - "sBySource\0228\n\013source_type\030\001 \001(\0162\027.viam.ap" - "p.v1.SourceTypeR\nsourceType\022Q\n\024resource_" - "usage_costs\030\002 \001(\0132\037.viam.app.v1.Resource" - "UsageCostsR\022resourceUsageCosts\022\033\n\ttier_n" - "ame\030\003 \001(\tR\010tierName\"\317\001\n\022ResourceUsageCos" - "ts\0227\n\013usage_costs\030\001 \003(\0132\026.viam.app.v1.Us" - "ageCostR\nusageCosts\022\032\n\010discount\030\002 \001(\001R\010d" - "iscount\022.\n\023total_with_discount\030\003 \001(\001R\021to" - "talWithDiscount\0224\n\026total_without_discoun" - "t\030\004 \001(\001R\024totalWithoutDiscount\"\315\007\n\034GetCur" - "rentMonthUsageResponse\0229\n\nstart_date\030\001 \001" - "(\0132\032.google.protobuf.TimestampR\tstartDat" - "e\0225\n\010end_date\030\002 \001(\0132\032.google.protobuf.Ti" - "mestampR\007endDate\022k\n\036resource_usage_costs" - "_by_source\030\016 \003(\0132\'.viam.app.v1.ResourceU" - "sageCostsBySourceR\032resourceUsageCostsByS" - "ource\022\032\n\010subtotal\030\017 \001(\001R\010subtotal\022;\n\030clo" - "ud_storage_usage_cost\030\003 \001(\001B\002\030\001R\025cloudSt" - "orageUsageCost\0227\n\026data_upload_usage_cost" - "\030\004 \001(\001B\002\030\001R\023dataUploadUsageCost\0225\n\025data_" - "egres_usage_cost\030\005 \001(\001B\002\030\001R\022dataEgresUsa" - "geCost\022=\n\031remote_control_usage_cost\030\006 \001(" - "\001B\002\030\001R\026remoteControlUsageCost\022A\n\033standar" - "d_compute_usage_cost\030\007 \001(\001B\002\030\001R\030standard" - "ComputeUsageCost\022+\n\017discount_amount\030\010 \001(" - "\001B\002\030\001R\016discountAmount\022=\n\031total_usage_wit" - "h_discount\030\t \001(\001B\002\030\001R\026totalUsageWithDisc" - "ount\022C\n\034total_usage_without_discount\030\n \001" - "(\001B\002\030\001R\031totalUsageWithoutDiscount\0227\n\026per" - "_machine_usage_cost\030\013 \001(\001B\002\030\001R\023perMachin" - "eUsageCost\022Q\n$binary_data_cloud_storage_" - "usage_cost\030\014 \001(\001B\002\030\001R\037binaryDataCloudSto" - "rageUsageCost\022F\n\036other_cloud_storage_usa" - "ge_cost\030\r \001(\001B\002\030\001R\032otherCloudStorageUsag" - "eCost\"8\n\037GetOrgBillingInformationRequest" - "\022\025\n\006org_id\030\001 \001(\tR\005orgId\"\374\001\n GetOrgBillin" - "gInformationResponse\0222\n\004type\030\001 \001(\0162\036.via" - "m.app.v1.PaymentMethodTypeR\004type\022#\n\rbill" - "ing_email\030\002 \001(\tR\014billingEmail\022;\n\006method\030" - "\003 \001(\0132\036.viam.app.v1.PaymentMethodCardH\000R" - "\006method\210\001\001\022&\n\014billing_tier\030\004 \001(\tH\001R\013bill" - "ingTier\210\001\001B\t\n\007_methodB\017\n\r_billing_tier\"2" - "\n\031GetInvoicesSummaryRequest\022\025\n\006org_id\030\001 " - "\001(\tR\005orgId\"\206\001\n\032GetInvoicesSummaryRespons" - "e\022/\n\023outstanding_balance\030\001 \001(\001R\022outstand" - "ingBalance\0227\n\010invoices\030\002 \003(\0132\033.viam.app." - "v1.InvoiceSummaryR\010invoices\"=\n\024GetInvoic" - "ePdfRequest\022\016\n\002id\030\001 \001(\tR\002id\022\025\n\006org_id\030\002 " - "\001(\tR\005orgId\"-\n\025GetInvoicePdfResponse\022\024\n\005c" - "hunk\030\001 \001(\014R\005chunk\"z\n\037SendPaymentRequired" - "EmailRequest\022&\n\017customer_org_id\030\001 \001(\tR\rc" - "ustomerOrgId\022/\n\024billing_owner_org_id\030\002 \001" - "(\tR\021billingOwnerOrgId\"\"\n SendPaymentRequ" - "iredEmailResponse*V\n\021PaymentMethodType\022#" - "\n\037PAYMENT_METHOD_TYPE_UNSPECIFIED\020\000\022\034\n\030P" - "AYMENT_METHOD_TYPE_CARD\020\001*\330\002\n\rUsageCostT" - "ype\022\037\n\033USAGE_COST_TYPE_UNSPECIFIED\020\000\022\037\n\033" - "USAGE_COST_TYPE_DATA_UPLOAD\020\001\022\037\n\033USAGE_C" - "OST_TYPE_DATA_EGRESS\020\002\022\"\n\036USAGE_COST_TYP" - "E_REMOTE_CONTROL\020\003\022$\n USAGE_COST_TYPE_ST" - "ANDARD_COMPUTE\020\004\022!\n\035USAGE_COST_TYPE_CLOU" - "D_STORAGE\020\005\022-\n)USAGE_COST_TYPE_BINARY_DA" - "TA_CLOUD_STORAGE\020\006\022\'\n#USAGE_COST_TYPE_OT" - "HER_CLOUD_STORAGE\020\007\022\037\n\033USAGE_COST_TYPE_P" - "ER_MACHINE\020\010*X\n\nSourceType\022\033\n\027SOURCE_TYP" - "E_UNSPECIFIED\020\000\022\023\n\017SOURCE_TYPE_ORG\020\001\022\030\n\024" - "SOURCE_TYPE_FRAGMENT\020\0022\260\004\n\016BillingServic" - "e\022k\n\024GetCurrentMonthUsage\022(.viam.app.v1." - "GetCurrentMonthUsageRequest\032).viam.app.v" - "1.GetCurrentMonthUsageResponse\022w\n\030GetOrg" - "BillingInformation\022,.viam.app.v1.GetOrgB" - "illingInformationRequest\032-.viam.app.v1.G" - "etOrgBillingInformationResponse\022e\n\022GetIn" - "voicesSummary\022&.viam.app.v1.GetInvoicesS" - "ummaryRequest\032\'.viam.app.v1.GetInvoicesS" - "ummaryResponse\022X\n\rGetInvoicePdf\022!.viam.a" - "pp.v1.GetInvoicePdfRequest\032\".viam.app.v1" - ".GetInvoicePdfResponse0\001\022w\n\030SendPaymentR" - "equiredEmail\022,.viam.app.v1.SendPaymentRe" - "quiredEmailRequest\032-.viam.app.v1.SendPay" - "mentRequiredEmailResponseB\205\001\n\017com.viam.a" - "pp.v1B\014BillingProtoP\001Z\026go.viam.com/api/a" - "pp/v1\242\002\003VAX\252\002\013Viam.App.V1\312\002\013Viam\\App\\V1\342" - "\002\027Viam\\App\\V1\\GPBMetadata\352\002\rViam::App::V" - "1b\006proto3" -}; -static const ::_pbi::DescriptorTable* const descriptor_table_app_2fv1_2fbilling_2eproto_deps[1] = - { - &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto, + +const char descriptor_table_protodef_app_2fv1_2fbilling_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\024app/v1/billing.proto\022\013viam.app.v1\032\037goo" + "gle/protobuf/timestamp.proto\"\216\002\n\016Invoice" + "Summary\022\016\n\002id\030\001 \001(\tR\002id\022=\n\014invoice_date\030" + "\002 \001(\0132\032.google.protobuf.TimestampR\013invoi" + "ceDate\022%\n\016invoice_amount\030\003 \001(\001R\rinvoiceA" + "mount\022\026\n\006status\030\004 \001(\tR\006status\0225\n\010due_dat" + "e\030\005 \001(\0132\032.google.protobuf.TimestampR\007due" + "Date\0227\n\tpaid_date\030\006 \001(\0132\032.google.protobu" + "f.TimestampR\010paidDate\"S\n\021PaymentMethodCa" + "rd\022\024\n\005brand\030\001 \001(\tR\005brand\022(\n\020last_four_di" + "gits\030\002 \001(\tR\016lastFourDigits\"4\n\033GetCurrent" + "MonthUsageRequest\022\025\n\006org_id\030\001 \001(\tR\005orgId" + "\"`\n\tUsageCost\022\?\n\rresource_type\030\001 \001(\0162\032.v" + "iam.app.v1.UsageCostTypeR\014resourceType\022\022" + "\n\004cost\030\002 \001(\001R\004cost\"\306\001\n\032ResourceUsageCost" + "sBySource\0228\n\013source_type\030\001 \001(\0162\027.viam.ap" + "p.v1.SourceTypeR\nsourceType\022Q\n\024resource_" + "usage_costs\030\002 \001(\0132\037.viam.app.v1.Resource" + "UsageCostsR\022resourceUsageCosts\022\033\n\ttier_n" + "ame\030\003 \001(\tR\010tierName\"\317\001\n\022ResourceUsageCos" + "ts\0227\n\013usage_costs\030\001 \003(\0132\026.viam.app.v1.Us" + "ageCostR\nusageCosts\022\032\n\010discount\030\002 \001(\001R\010d" + "iscount\022.\n\023total_with_discount\030\003 \001(\001R\021to" + "talWithDiscount\0224\n\026total_without_discoun" + "t\030\004 \001(\001R\024totalWithoutDiscount\"\315\007\n\034GetCur" + "rentMonthUsageResponse\0229\n\nstart_date\030\001 \001" + "(\0132\032.google.protobuf.TimestampR\tstartDat" + "e\0225\n\010end_date\030\002 \001(\0132\032.google.protobuf.Ti" + "mestampR\007endDate\022k\n\036resource_usage_costs" + "_by_source\030\016 \003(\0132\'.viam.app.v1.ResourceU" + "sageCostsBySourceR\032resourceUsageCostsByS" + "ource\022\032\n\010subtotal\030\017 \001(\001R\010subtotal\022;\n\030clo" + "ud_storage_usage_cost\030\003 \001(\001B\002\030\001R\025cloudSt" + "orageUsageCost\0227\n\026data_upload_usage_cost" + "\030\004 \001(\001B\002\030\001R\023dataUploadUsageCost\0225\n\025data_" + "egres_usage_cost\030\005 \001(\001B\002\030\001R\022dataEgresUsa" + "geCost\022=\n\031remote_control_usage_cost\030\006 \001(" + "\001B\002\030\001R\026remoteControlUsageCost\022A\n\033standar" + "d_compute_usage_cost\030\007 \001(\001B\002\030\001R\030standard" + "ComputeUsageCost\022+\n\017discount_amount\030\010 \001(" + "\001B\002\030\001R\016discountAmount\022=\n\031total_usage_wit" + "h_discount\030\t \001(\001B\002\030\001R\026totalUsageWithDisc" + "ount\022C\n\034total_usage_without_discount\030\n \001" + "(\001B\002\030\001R\031totalUsageWithoutDiscount\0227\n\026per" + "_machine_usage_cost\030\013 \001(\001B\002\030\001R\023perMachin" + "eUsageCost\022Q\n$binary_data_cloud_storage_" + "usage_cost\030\014 \001(\001B\002\030\001R\037binaryDataCloudSto" + "rageUsageCost\022F\n\036other_cloud_storage_usa" + "ge_cost\030\r \001(\001B\002\030\001R\032otherCloudStorageUsag" + "eCost\"8\n\037GetOrgBillingInformationRequest" + "\022\025\n\006org_id\030\001 \001(\tR\005orgId\"\374\001\n GetOrgBillin" + "gInformationResponse\0222\n\004type\030\001 \001(\0162\036.via" + "m.app.v1.PaymentMethodTypeR\004type\022#\n\rbill" + "ing_email\030\002 \001(\tR\014billingEmail\022;\n\006method\030" + "\003 \001(\0132\036.viam.app.v1.PaymentMethodCardH\000R" + "\006method\210\001\001\022&\n\014billing_tier\030\004 \001(\tH\001R\013bill" + "ingTier\210\001\001B\t\n\007_methodB\017\n\r_billing_tier\"2" + "\n\031GetInvoicesSummaryRequest\022\025\n\006org_id\030\001 " + "\001(\tR\005orgId\"\206\001\n\032GetInvoicesSummaryRespons" + "e\022/\n\023outstanding_balance\030\001 \001(\001R\022outstand" + "ingBalance\0227\n\010invoices\030\002 \003(\0132\033.viam.app." + "v1.InvoiceSummaryR\010invoices\"=\n\024GetInvoic" + "ePdfRequest\022\016\n\002id\030\001 \001(\tR\002id\022\025\n\006org_id\030\002 " + "\001(\tR\005orgId\"-\n\025GetInvoicePdfResponse\022\024\n\005c" + "hunk\030\001 \001(\014R\005chunk\"z\n\037SendPaymentRequired" + "EmailRequest\022&\n\017customer_org_id\030\001 \001(\tR\rc" + "ustomerOrgId\022/\n\024billing_owner_org_id\030\002 \001" + "(\tR\021billingOwnerOrgId\"\"\n SendPaymentRequ" + "iredEmailResponse*V\n\021PaymentMethodType\022#" + "\n\037PAYMENT_METHOD_TYPE_UNSPECIFIED\020\000\022\034\n\030P" + "AYMENT_METHOD_TYPE_CARD\020\001*\207\007\n\rUsageCostT" + "ype\022\037\n\033USAGE_COST_TYPE_UNSPECIFIED\020\000\022#\n\033" + "USAGE_COST_TYPE_DATA_UPLOAD\020\001\032\002\010\001\022#\n\033USA" + "GE_COST_TYPE_DATA_EGRESS\020\002\032\002\010\001\022\"\n\036USAGE_" + "COST_TYPE_REMOTE_CONTROL\020\003\022$\n USAGE_COST" + "_TYPE_STANDARD_COMPUTE\020\004\022%\n\035USAGE_COST_T" + "YPE_CLOUD_STORAGE\020\005\032\002\010\001\022-\n)USAGE_COST_TY" + "PE_BINARY_DATA_CLOUD_STORAGE\020\006\022+\n#USAGE_" + "COST_TYPE_OTHER_CLOUD_STORAGE\020\007\032\002\010\001\022\037\n\033U" + "SAGE_COST_TYPE_PER_MACHINE\020\010\022(\n$USAGE_CO" + "ST_TYPE_TRIGGER_NOTIFICATION\020\t\022.\n*USAGE_" + "COST_TYPE_TABULAR_DATA_CLOUD_STORAGE\020\n\0220" + "\n,USAGE_COST_TYPE_CONFIG_HISTORY_CLOUD_S" + "TORAGE\020\013\022&\n\"USAGE_COST_TYPE_LOGS_CLOUD_S" + "TORAGE\020\014\022/\n+USAGE_COST_TYPE_TRAINING_LOG" + "S_CLOUD_STORAGE\020\r\022*\n&USAGE_COST_TYPE_PAC" + "KAGES_CLOUD_STORAGE\020\016\022&\n\"USAGE_COST_TYPE" + "_BINARY_DATA_UPLOAD\020\017\022\'\n#USAGE_COST_TYPE" + "_TABULAR_DATA_UPLOAD\020\020\022\037\n\033USAGE_COST_TYP" + "E_LOGS_UPLOAD\020\021\022&\n\"USAGE_COST_TYPE_BINAR" + "Y_DATA_EGRESS\020\022\022\'\n#USAGE_COST_TYPE_TABUL" + "AR_DATA_EGRESS\020\023\022\037\n\033USAGE_COST_TYPE_LOGS" + "_EGRESS\020\024\022(\n$USAGE_COST_TYPE_TRAINING_LO" + "GS_EGRESS\020\025*X\n\nSourceType\022\033\n\027SOURCE_TYPE" + "_UNSPECIFIED\020\000\022\023\n\017SOURCE_TYPE_ORG\020\001\022\030\n\024S" + "OURCE_TYPE_FRAGMENT\020\0022\260\004\n\016BillingService" + "\022k\n\024GetCurrentMonthUsage\022(.viam.app.v1.G" + "etCurrentMonthUsageRequest\032).viam.app.v1" + ".GetCurrentMonthUsageResponse\022w\n\030GetOrgB" + "illingInformation\022,.viam.app.v1.GetOrgBi" + "llingInformationRequest\032-.viam.app.v1.Ge" + "tOrgBillingInformationResponse\022e\n\022GetInv" + "oicesSummary\022&.viam.app.v1.GetInvoicesSu" + "mmaryRequest\032\'.viam.app.v1.GetInvoicesSu" + "mmaryResponse\022X\n\rGetInvoicePdf\022!.viam.ap" + "p.v1.GetInvoicePdfRequest\032\".viam.app.v1." + "GetInvoicePdfResponse0\001\022w\n\030SendPaymentRe" + "quiredEmail\022,.viam.app.v1.SendPaymentReq" + "uiredEmailRequest\032-.viam.app.v1.SendPaym" + "entRequiredEmailResponseB\030Z\026go.viam.com/" + "api/app/v1b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_app_2fv1_2fbilling_2eproto_deps[1] = { + &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto, }; -static ::absl::once_flag descriptor_table_app_2fv1_2fbilling_2eproto_once; +static ::_pbi::once_flag descriptor_table_app_2fv1_2fbilling_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_app_2fv1_2fbilling_2eproto = { - false, - false, - 3969, - descriptor_table_protodef_app_2fv1_2fbilling_2eproto, + false, false, 4418, descriptor_table_protodef_app_2fv1_2fbilling_2eproto, "app/v1/billing.proto", - &descriptor_table_app_2fv1_2fbilling_2eproto_once, - descriptor_table_app_2fv1_2fbilling_2eproto_deps, - 1, - 15, - schemas, - file_default_instances, - TableStruct_app_2fv1_2fbilling_2eproto::offsets, - file_level_metadata_app_2fv1_2fbilling_2eproto, - file_level_enum_descriptors_app_2fv1_2fbilling_2eproto, + &descriptor_table_app_2fv1_2fbilling_2eproto_once, descriptor_table_app_2fv1_2fbilling_2eproto_deps, 1, 15, + schemas, file_default_instances, TableStruct_app_2fv1_2fbilling_2eproto::offsets, + file_level_metadata_app_2fv1_2fbilling_2eproto, file_level_enum_descriptors_app_2fv1_2fbilling_2eproto, file_level_service_descriptors_app_2fv1_2fbilling_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_app_2fv1_2fbilling_2eproto_getter() { return &descriptor_table_app_2fv1_2fbilling_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_app_2fv1_2fbilling_2eproto(&descriptor_table_app_2fv1_2fbilling_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_app_2fv1_2fbilling_2eproto(&descriptor_table_app_2fv1_2fbilling_2eproto); namespace viam { namespace app { namespace v1 { -const ::google::protobuf::EnumDescriptor* PaymentMethodType_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_app_2fv1_2fbilling_2eproto); +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PaymentMethodType_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_app_2fv1_2fbilling_2eproto); return file_level_enum_descriptors_app_2fv1_2fbilling_2eproto[0]; } -PROTOBUF_CONSTINIT const uint32_t PaymentMethodType_internal_data_[] = { - 131072u, 0u, }; bool PaymentMethodType_IsValid(int value) { - return 0 <= value && value <= 1; + switch (value) { + case 0: + case 1: + return true; + default: + return false; + } } -const ::google::protobuf::EnumDescriptor* UsageCostType_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_app_2fv1_2fbilling_2eproto); + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* UsageCostType_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_app_2fv1_2fbilling_2eproto); return file_level_enum_descriptors_app_2fv1_2fbilling_2eproto[1]; } -PROTOBUF_CONSTINIT const uint32_t UsageCostType_internal_data_[] = { - 589824u, 0u, }; bool UsageCostType_IsValid(int value) { - return 0 <= value && value <= 8; -} -const ::google::protobuf::EnumDescriptor* SourceType_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_app_2fv1_2fbilling_2eproto); + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + case 17: + case 18: + case 19: + case 20: + case 21: + return true; + default: + return false; + } +} + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SourceType_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_app_2fv1_2fbilling_2eproto); return file_level_enum_descriptors_app_2fv1_2fbilling_2eproto[2]; } -PROTOBUF_CONSTINIT const uint32_t SourceType_internal_data_[] = { - 196608u, 0u, }; bool SourceType_IsValid(int value) { - return 0 <= value && value <= 2; + switch (value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } } + + // =================================================================== class InvoiceSummary::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(InvoiceSummary, _impl_._has_bits_); - static const ::google::protobuf::Timestamp& invoice_date(const InvoiceSummary* msg); - static void set_has_invoice_date(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::google::protobuf::Timestamp& due_date(const InvoiceSummary* msg); - static void set_has_due_date(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static const ::google::protobuf::Timestamp& paid_date(const InvoiceSummary* msg); - static void set_has_paid_date(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& invoice_date(const InvoiceSummary* msg); + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& due_date(const InvoiceSummary* msg); + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& paid_date(const InvoiceSummary* msg); }; -const ::google::protobuf::Timestamp& InvoiceSummary::_Internal::invoice_date(const InvoiceSummary* msg) { - return *msg->_impl_.invoice_date_; +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +InvoiceSummary::_Internal::invoice_date(const InvoiceSummary* msg) { + return *msg->invoice_date_; } -const ::google::protobuf::Timestamp& InvoiceSummary::_Internal::due_date(const InvoiceSummary* msg) { - return *msg->_impl_.due_date_; +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +InvoiceSummary::_Internal::due_date(const InvoiceSummary* msg) { + return *msg->due_date_; } -const ::google::protobuf::Timestamp& InvoiceSummary::_Internal::paid_date(const InvoiceSummary* msg) { - return *msg->_impl_.paid_date_; +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +InvoiceSummary::_Internal::paid_date(const InvoiceSummary* msg) { + return *msg->paid_date_; } void InvoiceSummary::clear_invoice_date() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.invoice_date_ != nullptr) _impl_.invoice_date_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && invoice_date_ != nullptr) { + delete invoice_date_; + } + invoice_date_ = nullptr; } void InvoiceSummary::clear_due_date() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.due_date_ != nullptr) _impl_.due_date_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && due_date_ != nullptr) { + delete due_date_; + } + due_date_ = nullptr; } void InvoiceSummary::clear_paid_date() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.paid_date_ != nullptr) _impl_.paid_date_->Clear(); - _impl_._has_bits_[0] &= ~0x00000004u; + if (GetArenaForAllocation() == nullptr && paid_date_ != nullptr) { + delete paid_date_; + } + paid_date_ = nullptr; } -InvoiceSummary::InvoiceSummary(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +InvoiceSummary::InvoiceSummary(::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.InvoiceSummary) } -inline PROTOBUF_NDEBUG_INLINE InvoiceSummary::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - id_(arena, from.id_), - status_(arena, from.status_) {} - -InvoiceSummary::InvoiceSummary( - ::google::protobuf::Arena* arena, - const InvoiceSummary& from) - : ::google::protobuf::Message(arena) { - InvoiceSummary* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.invoice_date_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.invoice_date_) - : nullptr; - _impl_.due_date_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.due_date_) - : nullptr; - _impl_.paid_date_ = (cached_has_bits & 0x00000004u) - ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.paid_date_) - : nullptr; - _impl_.invoice_amount_ = from._impl_.invoice_amount_; - +InvoiceSummary::InvoiceSummary(const InvoiceSummary& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } + status_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + status_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_status().empty()) { + status_.Set(from._internal_status(), + GetArenaForAllocation()); + } + if (from._internal_has_invoice_date()) { + invoice_date_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from.invoice_date_); + } else { + invoice_date_ = nullptr; + } + if (from._internal_has_due_date()) { + due_date_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from.due_date_); + } else { + due_date_ = nullptr; + } + if (from._internal_has_paid_date()) { + paid_date_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from.paid_date_); + } else { + paid_date_ = nullptr; + } + invoice_amount_ = from.invoice_amount_; // @@protoc_insertion_point(copy_constructor:viam.app.v1.InvoiceSummary) } -inline PROTOBUF_NDEBUG_INLINE InvoiceSummary::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - id_(arena), - status_(arena) {} - -inline void InvoiceSummary::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, invoice_date_), - 0, - offsetof(Impl_, invoice_amount_) - - offsetof(Impl_, invoice_date_) + - sizeof(Impl_::invoice_amount_)); + +inline void InvoiceSummary::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +status_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + status_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&invoice_date_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&invoice_amount_) - + reinterpret_cast(&invoice_date_)) + sizeof(invoice_amount_)); } + InvoiceSummary::~InvoiceSummary() { // @@protoc_insertion_point(destructor:viam.app.v1.InvoiceSummary) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void InvoiceSummary::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.status_.Destroy(); - delete _impl_.invoice_date_; - delete _impl_.due_date_; - delete _impl_.paid_date_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); + status_.Destroy(); + if (this != internal_default_instance()) delete invoice_date_; + if (this != internal_default_instance()) delete due_date_; + if (this != internal_default_instance()) delete paid_date_; +} + +void InvoiceSummary::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void InvoiceSummary::Clear() { +void InvoiceSummary::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.InvoiceSummary) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.id_.ClearToEmpty(); - _impl_.status_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.invoice_date_ != nullptr); - _impl_.invoice_date_->Clear(); + id_.ClearToEmpty(); + status_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && invoice_date_ != nullptr) { + delete invoice_date_; + } + invoice_date_ = nullptr; + if (GetArenaForAllocation() == nullptr && due_date_ != nullptr) { + delete due_date_; + } + due_date_ = nullptr; + if (GetArenaForAllocation() == nullptr && paid_date_ != nullptr) { + delete paid_date_; + } + paid_date_ = nullptr; + invoice_amount_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* InvoiceSummary::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.InvoiceSummary.id")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp invoice_date = 2 [json_name = "invoiceDate"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_invoice_date(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // double invoice_amount = 3 [json_name = "invoiceAmount"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 25)) { + invoice_amount_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // string status = 4 [json_name = "status"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_status(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.InvoiceSummary.status")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp due_date = 5 [json_name = "dueDate"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_due_date(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp paid_date = 6 [json_name = "paidDate"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr = ctx->ParseMessage(_internal_mutable_paid_date(), 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; } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.due_date_ != nullptr); - _impl_.due_date_->Clear(); - } - if (cached_has_bits & 0x00000004u) { - ABSL_DCHECK(_impl_.paid_date_ != nullptr); - _impl_.paid_date_->Clear(); - } - } - _impl_.invoice_amount_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* InvoiceSummary::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 6, 3, 43, 2> InvoiceSummary::_table_ = { - { - PROTOBUF_FIELD_OFFSET(InvoiceSummary, _impl_._has_bits_), - 0, // no _extensions_ - 6, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967232, // skipmap - offsetof(decltype(_table_), field_entries), - 6, // num_field_entries - 3, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_InvoiceSummary_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string id = 1 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(InvoiceSummary, _impl_.id_)}}, - // .google.protobuf.Timestamp invoice_date = 2 [json_name = "invoiceDate"]; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(InvoiceSummary, _impl_.invoice_date_)}}, - // double invoice_amount = 3 [json_name = "invoiceAmount"]; - {::_pbi::TcParser::FastF64S1, - {25, 63, 0, PROTOBUF_FIELD_OFFSET(InvoiceSummary, _impl_.invoice_amount_)}}, - // string status = 4 [json_name = "status"]; - {::_pbi::TcParser::FastUS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(InvoiceSummary, _impl_.status_)}}, - // .google.protobuf.Timestamp due_date = 5 [json_name = "dueDate"]; - {::_pbi::TcParser::FastMtS1, - {42, 1, 1, PROTOBUF_FIELD_OFFSET(InvoiceSummary, _impl_.due_date_)}}, - // .google.protobuf.Timestamp paid_date = 6 [json_name = "paidDate"]; - {::_pbi::TcParser::FastMtS1, - {50, 2, 2, PROTOBUF_FIELD_OFFSET(InvoiceSummary, _impl_.paid_date_)}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(InvoiceSummary, _impl_.id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Timestamp invoice_date = 2 [json_name = "invoiceDate"]; - {PROTOBUF_FIELD_OFFSET(InvoiceSummary, _impl_.invoice_date_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // double invoice_amount = 3 [json_name = "invoiceAmount"]; - {PROTOBUF_FIELD_OFFSET(InvoiceSummary, _impl_.invoice_amount_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // string status = 4 [json_name = "status"]; - {PROTOBUF_FIELD_OFFSET(InvoiceSummary, _impl_.status_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Timestamp due_date = 5 [json_name = "dueDate"]; - {PROTOBUF_FIELD_OFFSET(InvoiceSummary, _impl_.due_date_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.protobuf.Timestamp paid_date = 6 [json_name = "paidDate"]; - {PROTOBUF_FIELD_OFFSET(InvoiceSummary, _impl_.paid_date_), _Internal::kHasBitsOffset + 2, 2, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, - }}, {{ - "\32\2\0\0\6\0\0\0" - "viam.app.v1.InvoiceSummary" - "id" - "status" - }}, -}; - -::uint8_t* InvoiceSummary::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* InvoiceSummary::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.InvoiceSummary) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.InvoiceSummary.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.InvoiceSummary.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Timestamp invoice_date = 2 [json_name = "invoiceDate"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::invoice_date(this), + if (this->_internal_has_invoice_date()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::invoice_date(this), _Internal::invoice_date(this).GetCachedSize(), target, stream); } // double invoice_amount = 3 [json_name = "invoiceAmount"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_invoice_amount = this->_internal_invoice_amount(); - ::uint64_t raw_invoice_amount; + uint64_t raw_invoice_amount; memcpy(&raw_invoice_amount, &tmp_invoice_amount, sizeof(tmp_invoice_amount)); if (raw_invoice_amount != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 3, this->_internal_invoice_amount(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(3, this->_internal_invoice_amount(), target); } // string status = 4 [json_name = "status"]; if (!this->_internal_status().empty()) { - const std::string& _s = this->_internal_status(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.InvoiceSummary.status"); - target = stream->WriteStringMaybeAliased(4, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_status().data(), static_cast(this->_internal_status().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.InvoiceSummary.status"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_status(), target); } // .google.protobuf.Timestamp due_date = 5 [json_name = "dueDate"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 5, _Internal::due_date(this), + if (this->_internal_has_due_date()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(5, _Internal::due_date(this), _Internal::due_date(this).GetCachedSize(), target, stream); } // .google.protobuf.Timestamp paid_date = 6 [json_name = "paidDate"]; - if (cached_has_bits & 0x00000004u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 6, _Internal::paid_date(this), + if (this->_internal_has_paid_date()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(6, _Internal::paid_date(this), _Internal::paid_date(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.InvoiceSummary) return target; } -::size_t InvoiceSummary::ByteSizeLong() const { +size_t InvoiceSummary::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.InvoiceSummary) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } // string status = 4 [json_name = "status"]; if (!this->_internal_status().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_status()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_status()); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - // .google.protobuf.Timestamp invoice_date = 2 [json_name = "invoiceDate"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.invoice_date_); - } - - // .google.protobuf.Timestamp due_date = 5 [json_name = "dueDate"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.due_date_); - } + // .google.protobuf.Timestamp invoice_date = 2 [json_name = "invoiceDate"]; + if (this->_internal_has_invoice_date()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *invoice_date_); + } - // .google.protobuf.Timestamp paid_date = 6 [json_name = "paidDate"]; - if (cached_has_bits & 0x00000004u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.paid_date_); - } + // .google.protobuf.Timestamp due_date = 5 [json_name = "dueDate"]; + if (this->_internal_has_due_date()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *due_date_); + } + // .google.protobuf.Timestamp paid_date = 6 [json_name = "paidDate"]; + if (this->_internal_has_paid_date()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *paid_date_); } + // double invoice_amount = 3 [json_name = "invoiceAmount"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_invoice_amount = this->_internal_invoice_amount(); - ::uint64_t raw_invoice_amount; + uint64_t raw_invoice_amount; memcpy(&raw_invoice_amount, &tmp_invoice_amount, sizeof(tmp_invoice_amount)); if (raw_invoice_amount != 0) { - total_size += 9; + total_size += 1 + 8; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData InvoiceSummary::_class_data_ = { - InvoiceSummary::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData InvoiceSummary::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + InvoiceSummary::MergeImpl }; -const ::google::protobuf::Message::ClassData* InvoiceSummary::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*InvoiceSummary::GetClassData() const { return &_class_data_; } + +void InvoiceSummary::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void InvoiceSummary::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.InvoiceSummary) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void InvoiceSummary::MergeFrom(const InvoiceSummary& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.InvoiceSummary) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } if (!from._internal_status().empty()) { - _this->_internal_set_status(from._internal_status()); + _internal_set_status(from._internal_status()); } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_invoice_date()->::google::protobuf::Timestamp::MergeFrom( - from._internal_invoice_date()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_due_date()->::google::protobuf::Timestamp::MergeFrom( - from._internal_due_date()); - } - if (cached_has_bits & 0x00000004u) { - _this->_internal_mutable_paid_date()->::google::protobuf::Timestamp::MergeFrom( - from._internal_paid_date()); - } + if (from._internal_has_invoice_date()) { + _internal_mutable_invoice_date()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_invoice_date()); + } + if (from._internal_has_due_date()) { + _internal_mutable_due_date()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_due_date()); + } + if (from._internal_has_paid_date()) { + _internal_mutable_paid_date()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_paid_date()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_invoice_amount = from._internal_invoice_amount(); - ::uint64_t raw_invoice_amount; + uint64_t raw_invoice_amount; memcpy(&raw_invoice_amount, &tmp_invoice_amount, sizeof(tmp_invoice_amount)); if (raw_invoice_amount != 0) { - _this->_internal_set_invoice_amount(from._internal_invoice_amount()); + _internal_set_invoice_amount(from._internal_invoice_amount()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void InvoiceSummary::CopyFrom(const InvoiceSummary& from) { @@ -1167,223 +1016,246 @@ void InvoiceSummary::CopyFrom(const InvoiceSummary& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool InvoiceSummary::IsInitialized() const { +bool InvoiceSummary::IsInitialized() const { return true; } -::_pbi::CachedSize* InvoiceSummary::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void InvoiceSummary::InternalSwap(InvoiceSummary* PROTOBUF_RESTRICT other) { +void InvoiceSummary::InternalSwap(InvoiceSummary* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.status_, &other->_impl_.status_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(InvoiceSummary, _impl_.invoice_amount_) - + sizeof(InvoiceSummary::_impl_.invoice_amount_) - - PROTOBUF_FIELD_OFFSET(InvoiceSummary, _impl_.invoice_date_)>( - reinterpret_cast(&_impl_.invoice_date_), - reinterpret_cast(&other->_impl_.invoice_date_)); -} - -::google::protobuf::Metadata InvoiceSummary::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &status_, lhs_arena, + &other->status_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(InvoiceSummary, invoice_amount_) + + sizeof(InvoiceSummary::invoice_amount_) + - PROTOBUF_FIELD_OFFSET(InvoiceSummary, invoice_date_)>( + reinterpret_cast(&invoice_date_), + reinterpret_cast(&other->invoice_date_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata InvoiceSummary::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fbilling_2eproto_getter, &descriptor_table_app_2fv1_2fbilling_2eproto_once, file_level_metadata_app_2fv1_2fbilling_2eproto[0]); } + // =================================================================== class PaymentMethodCard::_Internal { public: }; -PaymentMethodCard::PaymentMethodCard(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +PaymentMethodCard::PaymentMethodCard(::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.PaymentMethodCard) } -inline PROTOBUF_NDEBUG_INLINE PaymentMethodCard::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : brand_(arena, from.brand_), - last_four_digits_(arena, from.last_four_digits_), - _cached_size_{0} {} - -PaymentMethodCard::PaymentMethodCard( - ::google::protobuf::Arena* arena, - const PaymentMethodCard& from) - : ::google::protobuf::Message(arena) { - PaymentMethodCard* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +PaymentMethodCard::PaymentMethodCard(const PaymentMethodCard& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + brand_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + brand_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_brand().empty()) { + brand_.Set(from._internal_brand(), + GetArenaForAllocation()); + } + last_four_digits_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + last_four_digits_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_last_four_digits().empty()) { + last_four_digits_.Set(from._internal_last_four_digits(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.PaymentMethodCard) } -inline PROTOBUF_NDEBUG_INLINE PaymentMethodCard::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : brand_(arena), - last_four_digits_(arena), - _cached_size_{0} {} -inline void PaymentMethodCard::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void PaymentMethodCard::SharedCtor() { +brand_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + brand_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +last_four_digits_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + last_four_digits_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + PaymentMethodCard::~PaymentMethodCard() { // @@protoc_insertion_point(destructor:viam.app.v1.PaymentMethodCard) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void PaymentMethodCard::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.brand_.Destroy(); - _impl_.last_four_digits_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + brand_.Destroy(); + last_four_digits_.Destroy(); +} + +void PaymentMethodCard::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void PaymentMethodCard::Clear() { +void PaymentMethodCard::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.PaymentMethodCard) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.brand_.ClearToEmpty(); - _impl_.last_four_digits_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* PaymentMethodCard::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + brand_.ClearToEmpty(); + last_four_digits_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* PaymentMethodCard::_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 brand = 1 [json_name = "brand"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_brand(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.PaymentMethodCard.brand")); + } else + goto handle_unusual; + continue; + // string last_four_digits = 2 [json_name = "lastFourDigits"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_last_four_digits(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.PaymentMethodCard.last_four_digits")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 59, 2> PaymentMethodCard::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_PaymentMethodCard_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string last_four_digits = 2 [json_name = "lastFourDigits"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(PaymentMethodCard, _impl_.last_four_digits_)}}, - // string brand = 1 [json_name = "brand"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(PaymentMethodCard, _impl_.brand_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string brand = 1 [json_name = "brand"]; - {PROTOBUF_FIELD_OFFSET(PaymentMethodCard, _impl_.brand_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string last_four_digits = 2 [json_name = "lastFourDigits"]; - {PROTOBUF_FIELD_OFFSET(PaymentMethodCard, _impl_.last_four_digits_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\35\5\20\0\0\0\0\0" - "viam.app.v1.PaymentMethodCard" - "brand" - "last_four_digits" - }}, -}; - -::uint8_t* PaymentMethodCard::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* PaymentMethodCard::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.PaymentMethodCard) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string brand = 1 [json_name = "brand"]; if (!this->_internal_brand().empty()) { - const std::string& _s = this->_internal_brand(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.PaymentMethodCard.brand"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_brand().data(), static_cast(this->_internal_brand().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.PaymentMethodCard.brand"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_brand(), target); } // string last_four_digits = 2 [json_name = "lastFourDigits"]; if (!this->_internal_last_four_digits().empty()) { - const std::string& _s = this->_internal_last_four_digits(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.PaymentMethodCard.last_four_digits"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_last_four_digits().data(), static_cast(this->_internal_last_four_digits().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.PaymentMethodCard.last_four_digits"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_last_four_digits(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.PaymentMethodCard) return target; } -::size_t PaymentMethodCard::ByteSizeLong() const { +size_t PaymentMethodCard::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.PaymentMethodCard) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string brand = 1 [json_name = "brand"]; if (!this->_internal_brand().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_brand()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_brand()); } // string last_four_digits = 2 [json_name = "lastFourDigits"]; if (!this->_internal_last_four_digits().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_last_four_digits()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_last_four_digits()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData PaymentMethodCard::_class_data_ = { - PaymentMethodCard::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PaymentMethodCard::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + PaymentMethodCard::MergeImpl }; -const ::google::protobuf::Message::ClassData* PaymentMethodCard::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PaymentMethodCard::GetClassData() const { return &_class_data_; } + +void PaymentMethodCard::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void PaymentMethodCard::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.PaymentMethodCard) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void PaymentMethodCard::MergeFrom(const PaymentMethodCard& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.PaymentMethodCard) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_brand().empty()) { - _this->_internal_set_brand(from._internal_brand()); + _internal_set_brand(from._internal_brand()); } if (!from._internal_last_four_digits().empty()) { - _this->_internal_set_last_four_digits(from._internal_last_four_digits()); + _internal_set_last_four_digits(from._internal_last_four_digits()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void PaymentMethodCard::CopyFrom(const PaymentMethodCard& from) { @@ -1393,188 +1265,196 @@ void PaymentMethodCard::CopyFrom(const PaymentMethodCard& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool PaymentMethodCard::IsInitialized() const { +bool PaymentMethodCard::IsInitialized() const { return true; } -::_pbi::CachedSize* PaymentMethodCard::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void PaymentMethodCard::InternalSwap(PaymentMethodCard* PROTOBUF_RESTRICT other) { +void PaymentMethodCard::InternalSwap(PaymentMethodCard* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.brand_, &other->_impl_.brand_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.last_four_digits_, &other->_impl_.last_four_digits_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &brand_, lhs_arena, + &other->brand_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &last_four_digits_, lhs_arena, + &other->last_four_digits_, rhs_arena + ); } -::google::protobuf::Metadata PaymentMethodCard::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata PaymentMethodCard::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fbilling_2eproto_getter, &descriptor_table_app_2fv1_2fbilling_2eproto_once, file_level_metadata_app_2fv1_2fbilling_2eproto[1]); } + // =================================================================== class GetCurrentMonthUsageRequest::_Internal { public: }; -GetCurrentMonthUsageRequest::GetCurrentMonthUsageRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetCurrentMonthUsageRequest::GetCurrentMonthUsageRequest(::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.GetCurrentMonthUsageRequest) } -inline PROTOBUF_NDEBUG_INLINE GetCurrentMonthUsageRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : org_id_(arena, from.org_id_), - _cached_size_{0} {} - -GetCurrentMonthUsageRequest::GetCurrentMonthUsageRequest( - ::google::protobuf::Arena* arena, - const GetCurrentMonthUsageRequest& from) - : ::google::protobuf::Message(arena) { - GetCurrentMonthUsageRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetCurrentMonthUsageRequest::GetCurrentMonthUsageRequest(const GetCurrentMonthUsageRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + org_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_org_id().empty()) { + org_id_.Set(from._internal_org_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetCurrentMonthUsageRequest) } -inline PROTOBUF_NDEBUG_INLINE GetCurrentMonthUsageRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : org_id_(arena), - _cached_size_{0} {} -inline void GetCurrentMonthUsageRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetCurrentMonthUsageRequest::SharedCtor() { +org_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + GetCurrentMonthUsageRequest::~GetCurrentMonthUsageRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.GetCurrentMonthUsageRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetCurrentMonthUsageRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.org_id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + org_id_.Destroy(); +} + +void GetCurrentMonthUsageRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetCurrentMonthUsageRequest::Clear() { +void GetCurrentMonthUsageRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.GetCurrentMonthUsageRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.org_id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetCurrentMonthUsageRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + org_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetCurrentMonthUsageRequest::_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 org_id = 1 [json_name = "orgId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_org_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.GetCurrentMonthUsageRequest.org_id")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 54, 2> GetCurrentMonthUsageRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetCurrentMonthUsageRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string org_id = 1 [json_name = "orgId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageRequest, _impl_.org_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string org_id = 1 [json_name = "orgId"]; - {PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageRequest, _impl_.org_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\47\6\0\0\0\0\0\0" - "viam.app.v1.GetCurrentMonthUsageRequest" - "org_id" - }}, -}; - -::uint8_t* GetCurrentMonthUsageRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetCurrentMonthUsageRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetCurrentMonthUsageRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string org_id = 1 [json_name = "orgId"]; if (!this->_internal_org_id().empty()) { - const std::string& _s = this->_internal_org_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.GetCurrentMonthUsageRequest.org_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_org_id().data(), static_cast(this->_internal_org_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.GetCurrentMonthUsageRequest.org_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_org_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.GetCurrentMonthUsageRequest) return target; } -::size_t GetCurrentMonthUsageRequest::ByteSizeLong() const { +size_t GetCurrentMonthUsageRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetCurrentMonthUsageRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string org_id = 1 [json_name = "orgId"]; if (!this->_internal_org_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_org_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_org_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetCurrentMonthUsageRequest::_class_data_ = { - GetCurrentMonthUsageRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetCurrentMonthUsageRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetCurrentMonthUsageRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetCurrentMonthUsageRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetCurrentMonthUsageRequest::GetClassData() const { return &_class_data_; } + +void GetCurrentMonthUsageRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetCurrentMonthUsageRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetCurrentMonthUsageRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetCurrentMonthUsageRequest::MergeFrom(const GetCurrentMonthUsageRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetCurrentMonthUsageRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_org_id().empty()) { - _this->_internal_set_org_id(from._internal_org_id()); + _internal_set_org_id(from._internal_org_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetCurrentMonthUsageRequest::CopyFrom(const GetCurrentMonthUsageRequest& from) { @@ -1584,212 +1464,217 @@ void GetCurrentMonthUsageRequest::CopyFrom(const GetCurrentMonthUsageRequest& fr MergeFrom(from); } -PROTOBUF_NOINLINE bool GetCurrentMonthUsageRequest::IsInitialized() const { +bool GetCurrentMonthUsageRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetCurrentMonthUsageRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetCurrentMonthUsageRequest::InternalSwap(GetCurrentMonthUsageRequest* PROTOBUF_RESTRICT other) { +void GetCurrentMonthUsageRequest::InternalSwap(GetCurrentMonthUsageRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.org_id_, &other->_impl_.org_id_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &org_id_, lhs_arena, + &other->org_id_, rhs_arena + ); } -::google::protobuf::Metadata GetCurrentMonthUsageRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetCurrentMonthUsageRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fbilling_2eproto_getter, &descriptor_table_app_2fv1_2fbilling_2eproto_once, file_level_metadata_app_2fv1_2fbilling_2eproto[2]); } + // =================================================================== class UsageCost::_Internal { public: }; -UsageCost::UsageCost(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +UsageCost::UsageCost(::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.UsageCost) } -UsageCost::UsageCost( - ::google::protobuf::Arena* arena, const UsageCost& from) - : UsageCost(arena) { - MergeFrom(from); +UsageCost::UsageCost(const UsageCost& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&cost_, &from.cost_, + static_cast(reinterpret_cast(&resource_type_) - + reinterpret_cast(&cost_)) + sizeof(resource_type_)); + // @@protoc_insertion_point(copy_constructor:viam.app.v1.UsageCost) } -inline PROTOBUF_NDEBUG_INLINE UsageCost::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void UsageCost::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, cost_), - 0, - offsetof(Impl_, resource_type_) - - offsetof(Impl_, cost_) + - sizeof(Impl_::resource_type_)); +inline void UsageCost::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&cost_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&resource_type_) - + reinterpret_cast(&cost_)) + sizeof(resource_type_)); } + UsageCost::~UsageCost() { // @@protoc_insertion_point(destructor:viam.app.v1.UsageCost) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void UsageCost::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void UsageCost::Clear() { +void UsageCost::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void UsageCost::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.UsageCost) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&_impl_.cost_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.resource_type_) - - reinterpret_cast(&_impl_.cost_)) + sizeof(_impl_.resource_type_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* UsageCost::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + ::memset(&cost_, 0, static_cast( + reinterpret_cast(&resource_type_) - + reinterpret_cast(&cost_)) + sizeof(resource_type_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* UsageCost::_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.app.v1.UsageCostType resource_type = 1 [json_name = "resourceType"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_resource_type(static_cast<::viam::app::v1::UsageCostType>(val)); + } else + goto handle_unusual; + continue; + // double cost = 2 [json_name = "cost"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 17)) { + cost_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> UsageCost::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_UsageCost_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // double cost = 2 [json_name = "cost"]; - {::_pbi::TcParser::FastF64S1, - {17, 63, 0, PROTOBUF_FIELD_OFFSET(UsageCost, _impl_.cost_)}}, - // .viam.app.v1.UsageCostType resource_type = 1 [json_name = "resourceType"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(UsageCost, _impl_.resource_type_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(UsageCost, _impl_.resource_type_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.app.v1.UsageCostType resource_type = 1 [json_name = "resourceType"]; - {PROTOBUF_FIELD_OFFSET(UsageCost, _impl_.resource_type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // double cost = 2 [json_name = "cost"]; - {PROTOBUF_FIELD_OFFSET(UsageCost, _impl_.cost_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* UsageCost::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* UsageCost::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.UsageCost) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // .viam.app.v1.UsageCostType resource_type = 1 [json_name = "resourceType"]; if (this->_internal_resource_type() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_resource_type(), target); + 1, this->_internal_resource_type(), target); } // double cost = 2 [json_name = "cost"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_cost = this->_internal_cost(); - ::uint64_t raw_cost; + uint64_t raw_cost; memcpy(&raw_cost, &tmp_cost, sizeof(tmp_cost)); if (raw_cost != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 2, this->_internal_cost(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_cost(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.UsageCost) return target; } -::size_t UsageCost::ByteSizeLong() const { +size_t UsageCost::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.UsageCost) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // double cost = 2 [json_name = "cost"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_cost = this->_internal_cost(); - ::uint64_t raw_cost; + uint64_t raw_cost; memcpy(&raw_cost, &tmp_cost, sizeof(tmp_cost)); if (raw_cost != 0) { - total_size += 9; + total_size += 1 + 8; } // .viam.app.v1.UsageCostType resource_type = 1 [json_name = "resourceType"]; if (this->_internal_resource_type() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_resource_type()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_resource_type()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData UsageCost::_class_data_ = { - UsageCost::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UsageCost::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + UsageCost::MergeImpl }; -const ::google::protobuf::Message::ClassData* UsageCost::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UsageCost::GetClassData() const { return &_class_data_; } + +void UsageCost::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void UsageCost::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.UsageCost) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void UsageCost::MergeFrom(const UsageCost& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.UsageCost) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_cost = from._internal_cost(); - ::uint64_t raw_cost; + uint64_t raw_cost; memcpy(&raw_cost, &tmp_cost, sizeof(tmp_cost)); if (raw_cost != 0) { - _this->_internal_set_cost(from._internal_cost()); + _internal_set_cost(from._internal_cost()); } if (from._internal_resource_type() != 0) { - _this->_internal_set_resource_type(from._internal_resource_type()); + _internal_set_resource_type(from._internal_resource_type()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void UsageCost::CopyFrom(const UsageCost& from) { @@ -1799,268 +1684,263 @@ void UsageCost::CopyFrom(const UsageCost& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool UsageCost::IsInitialized() const { +bool UsageCost::IsInitialized() const { return true; } -::_pbi::CachedSize* UsageCost::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void UsageCost::InternalSwap(UsageCost* PROTOBUF_RESTRICT other) { +void UsageCost::InternalSwap(UsageCost* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(UsageCost, _impl_.resource_type_) - + sizeof(UsageCost::_impl_.resource_type_) - - PROTOBUF_FIELD_OFFSET(UsageCost, _impl_.cost_)>( - reinterpret_cast(&_impl_.cost_), - reinterpret_cast(&other->_impl_.cost_)); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(UsageCost, resource_type_) + + sizeof(UsageCost::resource_type_) + - PROTOBUF_FIELD_OFFSET(UsageCost, cost_)>( + reinterpret_cast(&cost_), + reinterpret_cast(&other->cost_)); } -::google::protobuf::Metadata UsageCost::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata UsageCost::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fbilling_2eproto_getter, &descriptor_table_app_2fv1_2fbilling_2eproto_once, file_level_metadata_app_2fv1_2fbilling_2eproto[3]); } + // =================================================================== class ResourceUsageCostsBySource::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ResourceUsageCostsBySource, _impl_._has_bits_); static const ::viam::app::v1::ResourceUsageCosts& resource_usage_costs(const ResourceUsageCostsBySource* msg); - static void set_has_resource_usage_costs(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::app::v1::ResourceUsageCosts& ResourceUsageCostsBySource::_Internal::resource_usage_costs(const ResourceUsageCostsBySource* msg) { - return *msg->_impl_.resource_usage_costs_; +const ::viam::app::v1::ResourceUsageCosts& +ResourceUsageCostsBySource::_Internal::resource_usage_costs(const ResourceUsageCostsBySource* msg) { + return *msg->resource_usage_costs_; } -ResourceUsageCostsBySource::ResourceUsageCostsBySource(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ResourceUsageCostsBySource::ResourceUsageCostsBySource(::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.ResourceUsageCostsBySource) } -inline PROTOBUF_NDEBUG_INLINE ResourceUsageCostsBySource::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - tier_name_(arena, from.tier_name_) {} - -ResourceUsageCostsBySource::ResourceUsageCostsBySource( - ::google::protobuf::Arena* arena, - const ResourceUsageCostsBySource& from) - : ::google::protobuf::Message(arena) { - ResourceUsageCostsBySource* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.resource_usage_costs_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::app::v1::ResourceUsageCosts>(arena, *from._impl_.resource_usage_costs_) - : nullptr; - _impl_.source_type_ = from._impl_.source_type_; - +ResourceUsageCostsBySource::ResourceUsageCostsBySource(const ResourceUsageCostsBySource& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + tier_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + tier_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_tier_name().empty()) { + tier_name_.Set(from._internal_tier_name(), + GetArenaForAllocation()); + } + if (from._internal_has_resource_usage_costs()) { + resource_usage_costs_ = new ::viam::app::v1::ResourceUsageCosts(*from.resource_usage_costs_); + } else { + resource_usage_costs_ = nullptr; + } + source_type_ = from.source_type_; // @@protoc_insertion_point(copy_constructor:viam.app.v1.ResourceUsageCostsBySource) } -inline PROTOBUF_NDEBUG_INLINE ResourceUsageCostsBySource::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - tier_name_(arena) {} - -inline void ResourceUsageCostsBySource::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, resource_usage_costs_), - 0, - offsetof(Impl_, source_type_) - - offsetof(Impl_, resource_usage_costs_) + - sizeof(Impl_::source_type_)); + +inline void ResourceUsageCostsBySource::SharedCtor() { +tier_name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + tier_name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&resource_usage_costs_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&source_type_) - + reinterpret_cast(&resource_usage_costs_)) + sizeof(source_type_)); } + ResourceUsageCostsBySource::~ResourceUsageCostsBySource() { // @@protoc_insertion_point(destructor:viam.app.v1.ResourceUsageCostsBySource) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ResourceUsageCostsBySource::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.tier_name_.Destroy(); - delete _impl_.resource_usage_costs_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + tier_name_.Destroy(); + if (this != internal_default_instance()) delete resource_usage_costs_; +} + +void ResourceUsageCostsBySource::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void ResourceUsageCostsBySource::Clear() { +void ResourceUsageCostsBySource::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.ResourceUsageCostsBySource) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.tier_name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.resource_usage_costs_ != nullptr); - _impl_.resource_usage_costs_->Clear(); - } - _impl_.source_type_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ResourceUsageCostsBySource::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + tier_name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && resource_usage_costs_ != nullptr) { + delete resource_usage_costs_; + } + resource_usage_costs_ = nullptr; + source_type_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ResourceUsageCostsBySource::_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.app.v1.SourceType source_type = 1 [json_name = "sourceType"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_source_type(static_cast<::viam::app::v1::SourceType>(val)); + } else + goto handle_unusual; + continue; + // .viam.app.v1.ResourceUsageCosts resource_usage_costs = 2 [json_name = "resourceUsageCosts"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_resource_usage_costs(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string tier_name = 3 [json_name = "tierName"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_tier_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ResourceUsageCostsBySource.tier_name")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 1, 56, 2> ResourceUsageCostsBySource::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ResourceUsageCostsBySource, _impl_._has_bits_), - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ResourceUsageCostsBySource_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // .viam.app.v1.SourceType source_type = 1 [json_name = "sourceType"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ResourceUsageCostsBySource, _impl_.source_type_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(ResourceUsageCostsBySource, _impl_.source_type_)}}, - // .viam.app.v1.ResourceUsageCosts resource_usage_costs = 2 [json_name = "resourceUsageCosts"]; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(ResourceUsageCostsBySource, _impl_.resource_usage_costs_)}}, - // string tier_name = 3 [json_name = "tierName"]; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(ResourceUsageCostsBySource, _impl_.tier_name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.app.v1.SourceType source_type = 1 [json_name = "sourceType"]; - {PROTOBUF_FIELD_OFFSET(ResourceUsageCostsBySource, _impl_.source_type_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // .viam.app.v1.ResourceUsageCosts resource_usage_costs = 2 [json_name = "resourceUsageCosts"]; - {PROTOBUF_FIELD_OFFSET(ResourceUsageCostsBySource, _impl_.resource_usage_costs_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // string tier_name = 3 [json_name = "tierName"]; - {PROTOBUF_FIELD_OFFSET(ResourceUsageCostsBySource, _impl_.tier_name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::ResourceUsageCosts>()}, - }}, {{ - "\46\0\0\11\0\0\0\0" - "viam.app.v1.ResourceUsageCostsBySource" - "tier_name" - }}, -}; - -::uint8_t* ResourceUsageCostsBySource::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ResourceUsageCostsBySource::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ResourceUsageCostsBySource) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // .viam.app.v1.SourceType source_type = 1 [json_name = "sourceType"]; if (this->_internal_source_type() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_source_type(), target); + 1, this->_internal_source_type(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .viam.app.v1.ResourceUsageCosts resource_usage_costs = 2 [json_name = "resourceUsageCosts"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::resource_usage_costs(this), + if (this->_internal_has_resource_usage_costs()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::resource_usage_costs(this), _Internal::resource_usage_costs(this).GetCachedSize(), target, stream); } // string tier_name = 3 [json_name = "tierName"]; if (!this->_internal_tier_name().empty()) { - const std::string& _s = this->_internal_tier_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ResourceUsageCostsBySource.tier_name"); - target = stream->WriteStringMaybeAliased(3, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_tier_name().data(), static_cast(this->_internal_tier_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ResourceUsageCostsBySource.tier_name"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_tier_name(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.ResourceUsageCostsBySource) return target; } -::size_t ResourceUsageCostsBySource::ByteSizeLong() const { +size_t ResourceUsageCostsBySource::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ResourceUsageCostsBySource) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string tier_name = 3 [json_name = "tierName"]; if (!this->_internal_tier_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_tier_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_tier_name()); } // .viam.app.v1.ResourceUsageCosts resource_usage_costs = 2 [json_name = "resourceUsageCosts"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.resource_usage_costs_); + if (this->_internal_has_resource_usage_costs()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *resource_usage_costs_); } // .viam.app.v1.SourceType source_type = 1 [json_name = "sourceType"]; if (this->_internal_source_type() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_source_type()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_source_type()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ResourceUsageCostsBySource::_class_data_ = { - ResourceUsageCostsBySource::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ResourceUsageCostsBySource::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ResourceUsageCostsBySource::MergeImpl }; -const ::google::protobuf::Message::ClassData* ResourceUsageCostsBySource::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ResourceUsageCostsBySource::GetClassData() const { return &_class_data_; } + +void ResourceUsageCostsBySource::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ResourceUsageCostsBySource::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ResourceUsageCostsBySource) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ResourceUsageCostsBySource::MergeFrom(const ResourceUsageCostsBySource& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ResourceUsageCostsBySource) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_tier_name().empty()) { - _this->_internal_set_tier_name(from._internal_tier_name()); + _internal_set_tier_name(from._internal_tier_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_resource_usage_costs()->::viam::app::v1::ResourceUsageCosts::MergeFrom( - from._internal_resource_usage_costs()); + if (from._internal_has_resource_usage_costs()) { + _internal_mutable_resource_usage_costs()->::viam::app::v1::ResourceUsageCosts::MergeFrom(from._internal_resource_usage_costs()); } if (from._internal_source_type() != 0) { - _this->_internal_set_source_type(from._internal_source_type()); + _internal_set_source_type(from._internal_source_type()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ResourceUsageCostsBySource::CopyFrom(const ResourceUsageCostsBySource& from) { @@ -2070,313 +1950,298 @@ void ResourceUsageCostsBySource::CopyFrom(const ResourceUsageCostsBySource& from MergeFrom(from); } -PROTOBUF_NOINLINE bool ResourceUsageCostsBySource::IsInitialized() const { +bool ResourceUsageCostsBySource::IsInitialized() const { return true; } -::_pbi::CachedSize* ResourceUsageCostsBySource::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ResourceUsageCostsBySource::InternalSwap(ResourceUsageCostsBySource* PROTOBUF_RESTRICT other) { +void ResourceUsageCostsBySource::InternalSwap(ResourceUsageCostsBySource* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.tier_name_, &other->_impl_.tier_name_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(ResourceUsageCostsBySource, _impl_.source_type_) - + sizeof(ResourceUsageCostsBySource::_impl_.source_type_) - - PROTOBUF_FIELD_OFFSET(ResourceUsageCostsBySource, _impl_.resource_usage_costs_)>( - reinterpret_cast(&_impl_.resource_usage_costs_), - reinterpret_cast(&other->_impl_.resource_usage_costs_)); -} - -::google::protobuf::Metadata ResourceUsageCostsBySource::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &tier_name_, lhs_arena, + &other->tier_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(ResourceUsageCostsBySource, source_type_) + + sizeof(ResourceUsageCostsBySource::source_type_) + - PROTOBUF_FIELD_OFFSET(ResourceUsageCostsBySource, resource_usage_costs_)>( + reinterpret_cast(&resource_usage_costs_), + reinterpret_cast(&other->resource_usage_costs_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ResourceUsageCostsBySource::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fbilling_2eproto_getter, &descriptor_table_app_2fv1_2fbilling_2eproto_once, file_level_metadata_app_2fv1_2fbilling_2eproto[4]); } + // =================================================================== class ResourceUsageCosts::_Internal { public: }; -ResourceUsageCosts::ResourceUsageCosts(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ResourceUsageCosts::ResourceUsageCosts(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + usage_costs_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.v1.ResourceUsageCosts) } -inline PROTOBUF_NDEBUG_INLINE ResourceUsageCosts::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : usage_costs_{visibility, arena, from.usage_costs_}, - _cached_size_{0} {} - -ResourceUsageCosts::ResourceUsageCosts( - ::google::protobuf::Arena* arena, - const ResourceUsageCosts& from) - : ::google::protobuf::Message(arena) { - ResourceUsageCosts* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, discount_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, discount_), - offsetof(Impl_, total_without_discount_) - - offsetof(Impl_, discount_) + - sizeof(Impl_::total_without_discount_)); - +ResourceUsageCosts::ResourceUsageCosts(const ResourceUsageCosts& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + usage_costs_(from.usage_costs_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&discount_, &from.discount_, + static_cast(reinterpret_cast(&total_without_discount_) - + reinterpret_cast(&discount_)) + sizeof(total_without_discount_)); // @@protoc_insertion_point(copy_constructor:viam.app.v1.ResourceUsageCosts) } -inline PROTOBUF_NDEBUG_INLINE ResourceUsageCosts::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : usage_costs_{visibility, arena}, - _cached_size_{0} {} - -inline void ResourceUsageCosts::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, discount_), - 0, - offsetof(Impl_, total_without_discount_) - - offsetof(Impl_, discount_) + - sizeof(Impl_::total_without_discount_)); + +inline void ResourceUsageCosts::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&discount_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&total_without_discount_) - + reinterpret_cast(&discount_)) + sizeof(total_without_discount_)); } + ResourceUsageCosts::~ResourceUsageCosts() { // @@protoc_insertion_point(destructor:viam.app.v1.ResourceUsageCosts) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ResourceUsageCosts::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void ResourceUsageCosts::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void ResourceUsageCosts::Clear() { +void ResourceUsageCosts::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.ResourceUsageCosts) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.usage_costs_.Clear(); - ::memset(&_impl_.discount_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.total_without_discount_) - - reinterpret_cast(&_impl_.discount_)) + sizeof(_impl_.total_without_discount_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ResourceUsageCosts::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + usage_costs_.Clear(); + ::memset(&discount_, 0, static_cast( + reinterpret_cast(&total_without_discount_) - + reinterpret_cast(&discount_)) + sizeof(total_without_discount_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ResourceUsageCosts::_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) { + // repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_usage_costs(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + // double discount = 2 [json_name = "discount"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 17)) { + discount_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double total_with_discount = 3 [json_name = "totalWithDiscount"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 25)) { + total_with_discount_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double total_without_discount = 4 [json_name = "totalWithoutDiscount"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 33)) { + total_without_discount_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 1, 0, 2> ResourceUsageCosts::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ResourceUsageCosts_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // double total_without_discount = 4 [json_name = "totalWithoutDiscount"]; - {::_pbi::TcParser::FastF64S1, - {33, 63, 0, PROTOBUF_FIELD_OFFSET(ResourceUsageCosts, _impl_.total_without_discount_)}}, - // repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ResourceUsageCosts, _impl_.usage_costs_)}}, - // double discount = 2 [json_name = "discount"]; - {::_pbi::TcParser::FastF64S1, - {17, 63, 0, PROTOBUF_FIELD_OFFSET(ResourceUsageCosts, _impl_.discount_)}}, - // double total_with_discount = 3 [json_name = "totalWithDiscount"]; - {::_pbi::TcParser::FastF64S1, - {25, 63, 0, PROTOBUF_FIELD_OFFSET(ResourceUsageCosts, _impl_.total_with_discount_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"]; - {PROTOBUF_FIELD_OFFSET(ResourceUsageCosts, _impl_.usage_costs_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // double discount = 2 [json_name = "discount"]; - {PROTOBUF_FIELD_OFFSET(ResourceUsageCosts, _impl_.discount_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double total_with_discount = 3 [json_name = "totalWithDiscount"]; - {PROTOBUF_FIELD_OFFSET(ResourceUsageCosts, _impl_.total_with_discount_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double total_without_discount = 4 [json_name = "totalWithoutDiscount"]; - {PROTOBUF_FIELD_OFFSET(ResourceUsageCosts, _impl_.total_without_discount_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::UsageCost>()}, - }}, {{ - }}, -}; - -::uint8_t* ResourceUsageCosts::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ResourceUsageCosts::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ResourceUsageCosts) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"]; for (unsigned i = 0, n = static_cast(this->_internal_usage_costs_size()); i < n; i++) { - const auto& repfield = this->_internal_usage_costs().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_usage_costs(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } // double discount = 2 [json_name = "discount"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_discount = this->_internal_discount(); - ::uint64_t raw_discount; + uint64_t raw_discount; memcpy(&raw_discount, &tmp_discount, sizeof(tmp_discount)); if (raw_discount != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 2, this->_internal_discount(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_discount(), target); } // double total_with_discount = 3 [json_name = "totalWithDiscount"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_total_with_discount = this->_internal_total_with_discount(); - ::uint64_t raw_total_with_discount; + uint64_t raw_total_with_discount; memcpy(&raw_total_with_discount, &tmp_total_with_discount, sizeof(tmp_total_with_discount)); if (raw_total_with_discount != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 3, this->_internal_total_with_discount(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(3, this->_internal_total_with_discount(), target); } // double total_without_discount = 4 [json_name = "totalWithoutDiscount"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_total_without_discount = this->_internal_total_without_discount(); - ::uint64_t raw_total_without_discount; + uint64_t raw_total_without_discount; memcpy(&raw_total_without_discount, &tmp_total_without_discount, sizeof(tmp_total_without_discount)); if (raw_total_without_discount != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 4, this->_internal_total_without_discount(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(4, this->_internal_total_without_discount(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.ResourceUsageCosts) return target; } -::size_t ResourceUsageCosts::ByteSizeLong() const { +size_t ResourceUsageCosts::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ResourceUsageCosts) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"]; total_size += 1UL * this->_internal_usage_costs_size(); - for (const auto& msg : this->_internal_usage_costs()) { + for (const auto& msg : this->usage_costs_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // double discount = 2 [json_name = "discount"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_discount = this->_internal_discount(); - ::uint64_t raw_discount; + uint64_t raw_discount; memcpy(&raw_discount, &tmp_discount, sizeof(tmp_discount)); if (raw_discount != 0) { - total_size += 9; + total_size += 1 + 8; } // double total_with_discount = 3 [json_name = "totalWithDiscount"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_total_with_discount = this->_internal_total_with_discount(); - ::uint64_t raw_total_with_discount; + uint64_t raw_total_with_discount; memcpy(&raw_total_with_discount, &tmp_total_with_discount, sizeof(tmp_total_with_discount)); if (raw_total_with_discount != 0) { - total_size += 9; + total_size += 1 + 8; } // double total_without_discount = 4 [json_name = "totalWithoutDiscount"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_total_without_discount = this->_internal_total_without_discount(); - ::uint64_t raw_total_without_discount; + uint64_t raw_total_without_discount; memcpy(&raw_total_without_discount, &tmp_total_without_discount, sizeof(tmp_total_without_discount)); if (raw_total_without_discount != 0) { - total_size += 9; + total_size += 1 + 8; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ResourceUsageCosts::_class_data_ = { - ResourceUsageCosts::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ResourceUsageCosts::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ResourceUsageCosts::MergeImpl }; -const ::google::protobuf::Message::ClassData* ResourceUsageCosts::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ResourceUsageCosts::GetClassData() const { return &_class_data_; } + +void ResourceUsageCosts::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ResourceUsageCosts::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ResourceUsageCosts) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ResourceUsageCosts::MergeFrom(const ResourceUsageCosts& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ResourceUsageCosts) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_usage_costs()->MergeFrom( - from._internal_usage_costs()); - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + usage_costs_.MergeFrom(from.usage_costs_); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_discount = from._internal_discount(); - ::uint64_t raw_discount; + uint64_t raw_discount; memcpy(&raw_discount, &tmp_discount, sizeof(tmp_discount)); if (raw_discount != 0) { - _this->_internal_set_discount(from._internal_discount()); + _internal_set_discount(from._internal_discount()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_total_with_discount = from._internal_total_with_discount(); - ::uint64_t raw_total_with_discount; + uint64_t raw_total_with_discount; memcpy(&raw_total_with_discount, &tmp_total_with_discount, sizeof(tmp_total_with_discount)); if (raw_total_with_discount != 0) { - _this->_internal_set_total_with_discount(from._internal_total_with_discount()); + _internal_set_total_with_discount(from._internal_total_with_discount()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_total_without_discount = from._internal_total_without_discount(); - ::uint64_t raw_total_without_discount; + uint64_t raw_total_without_discount; memcpy(&raw_total_without_discount, &tmp_total_without_discount, sizeof(tmp_total_without_discount)); if (raw_total_without_discount != 0) { - _this->_internal_set_total_without_discount(from._internal_total_without_discount()); + _internal_set_total_without_discount(from._internal_total_without_discount()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ResourceUsageCosts::CopyFrom(const ResourceUsageCosts& from) { @@ -2386,739 +2251,691 @@ void ResourceUsageCosts::CopyFrom(const ResourceUsageCosts& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ResourceUsageCosts::IsInitialized() const { +bool ResourceUsageCosts::IsInitialized() const { return true; } -::_pbi::CachedSize* ResourceUsageCosts::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ResourceUsageCosts::InternalSwap(ResourceUsageCosts* PROTOBUF_RESTRICT other) { +void ResourceUsageCosts::InternalSwap(ResourceUsageCosts* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.usage_costs_.InternalSwap(&other->_impl_.usage_costs_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(ResourceUsageCosts, _impl_.total_without_discount_) - + sizeof(ResourceUsageCosts::_impl_.total_without_discount_) - - PROTOBUF_FIELD_OFFSET(ResourceUsageCosts, _impl_.discount_)>( - reinterpret_cast(&_impl_.discount_), - reinterpret_cast(&other->_impl_.discount_)); + usage_costs_.InternalSwap(&other->usage_costs_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(ResourceUsageCosts, total_without_discount_) + + sizeof(ResourceUsageCosts::total_without_discount_) + - PROTOBUF_FIELD_OFFSET(ResourceUsageCosts, discount_)>( + reinterpret_cast(&discount_), + reinterpret_cast(&other->discount_)); } -::google::protobuf::Metadata ResourceUsageCosts::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ResourceUsageCosts::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fbilling_2eproto_getter, &descriptor_table_app_2fv1_2fbilling_2eproto_once, file_level_metadata_app_2fv1_2fbilling_2eproto[5]); } + // =================================================================== class GetCurrentMonthUsageResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_._has_bits_); - static const ::google::protobuf::Timestamp& start_date(const GetCurrentMonthUsageResponse* msg); - static void set_has_start_date(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::google::protobuf::Timestamp& end_date(const GetCurrentMonthUsageResponse* msg); - static void set_has_end_date(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& start_date(const GetCurrentMonthUsageResponse* msg); + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& end_date(const GetCurrentMonthUsageResponse* msg); }; -const ::google::protobuf::Timestamp& GetCurrentMonthUsageResponse::_Internal::start_date(const GetCurrentMonthUsageResponse* msg) { - return *msg->_impl_.start_date_; +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +GetCurrentMonthUsageResponse::_Internal::start_date(const GetCurrentMonthUsageResponse* msg) { + return *msg->start_date_; } -const ::google::protobuf::Timestamp& GetCurrentMonthUsageResponse::_Internal::end_date(const GetCurrentMonthUsageResponse* msg) { - return *msg->_impl_.end_date_; +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +GetCurrentMonthUsageResponse::_Internal::end_date(const GetCurrentMonthUsageResponse* msg) { + return *msg->end_date_; } void GetCurrentMonthUsageResponse::clear_start_date() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.start_date_ != nullptr) _impl_.start_date_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && start_date_ != nullptr) { + delete start_date_; + } + start_date_ = nullptr; } void GetCurrentMonthUsageResponse::clear_end_date() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.end_date_ != nullptr) _impl_.end_date_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && end_date_ != nullptr) { + delete end_date_; + } + end_date_ = nullptr; } -GetCurrentMonthUsageResponse::GetCurrentMonthUsageResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetCurrentMonthUsageResponse::GetCurrentMonthUsageResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + resource_usage_costs_by_source_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.v1.GetCurrentMonthUsageResponse) } -inline PROTOBUF_NDEBUG_INLINE GetCurrentMonthUsageResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - resource_usage_costs_by_source_{visibility, arena, from.resource_usage_costs_by_source_} {} - -GetCurrentMonthUsageResponse::GetCurrentMonthUsageResponse( - ::google::protobuf::Arena* arena, - const GetCurrentMonthUsageResponse& from) - : ::google::protobuf::Message(arena) { - GetCurrentMonthUsageResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.start_date_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.start_date_) - : nullptr; - _impl_.end_date_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.end_date_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, cloud_storage_usage_cost_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, cloud_storage_usage_cost_), - offsetof(Impl_, subtotal_) - - offsetof(Impl_, cloud_storage_usage_cost_) + - sizeof(Impl_::subtotal_)); - +GetCurrentMonthUsageResponse::GetCurrentMonthUsageResponse(const GetCurrentMonthUsageResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + resource_usage_costs_by_source_(from.resource_usage_costs_by_source_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_start_date()) { + start_date_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from.start_date_); + } else { + start_date_ = nullptr; + } + if (from._internal_has_end_date()) { + end_date_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from.end_date_); + } else { + end_date_ = nullptr; + } + ::memcpy(&cloud_storage_usage_cost_, &from.cloud_storage_usage_cost_, + static_cast(reinterpret_cast(&subtotal_) - + reinterpret_cast(&cloud_storage_usage_cost_)) + sizeof(subtotal_)); // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetCurrentMonthUsageResponse) } -inline PROTOBUF_NDEBUG_INLINE GetCurrentMonthUsageResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - resource_usage_costs_by_source_{visibility, arena} {} - -inline void GetCurrentMonthUsageResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, start_date_), - 0, - offsetof(Impl_, subtotal_) - - offsetof(Impl_, start_date_) + - sizeof(Impl_::subtotal_)); + +inline void GetCurrentMonthUsageResponse::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&start_date_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&subtotal_) - + reinterpret_cast(&start_date_)) + sizeof(subtotal_)); } + GetCurrentMonthUsageResponse::~GetCurrentMonthUsageResponse() { // @@protoc_insertion_point(destructor:viam.app.v1.GetCurrentMonthUsageResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetCurrentMonthUsageResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.start_date_; - delete _impl_.end_date_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete start_date_; + if (this != internal_default_instance()) delete end_date_; } -PROTOBUF_NOINLINE void GetCurrentMonthUsageResponse::Clear() { +void GetCurrentMonthUsageResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetCurrentMonthUsageResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.GetCurrentMonthUsageResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.resource_usage_costs_by_source_.Clear(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.start_date_ != nullptr); - _impl_.start_date_->Clear(); + resource_usage_costs_by_source_.Clear(); + if (GetArenaForAllocation() == nullptr && start_date_ != nullptr) { + delete start_date_; + } + start_date_ = nullptr; + if (GetArenaForAllocation() == nullptr && end_date_ != nullptr) { + delete end_date_; + } + end_date_ = nullptr; + ::memset(&cloud_storage_usage_cost_, 0, static_cast( + reinterpret_cast(&subtotal_) - + reinterpret_cast(&cloud_storage_usage_cost_)) + sizeof(subtotal_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetCurrentMonthUsageResponse::_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) { + // .google.protobuf.Timestamp start_date = 1 [json_name = "startDate"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_start_date(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp end_date = 2 [json_name = "endDate"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_end_date(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // double cloud_storage_usage_cost = 3 [json_name = "cloudStorageUsageCost", deprecated = true]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 25)) { + cloud_storage_usage_cost_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double data_upload_usage_cost = 4 [json_name = "dataUploadUsageCost", deprecated = true]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 33)) { + data_upload_usage_cost_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double data_egres_usage_cost = 5 [json_name = "dataEgresUsageCost", deprecated = true]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 41)) { + data_egres_usage_cost_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double remote_control_usage_cost = 6 [json_name = "remoteControlUsageCost", deprecated = true]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 49)) { + remote_control_usage_cost_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double standard_compute_usage_cost = 7 [json_name = "standardComputeUsageCost", deprecated = true]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 57)) { + standard_compute_usage_cost_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double discount_amount = 8 [json_name = "discountAmount", deprecated = true]; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 65)) { + discount_amount_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double total_usage_with_discount = 9 [json_name = "totalUsageWithDiscount", deprecated = true]; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 73)) { + total_usage_with_discount_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double total_usage_without_discount = 10 [json_name = "totalUsageWithoutDiscount", deprecated = true]; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 81)) { + total_usage_without_discount_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double per_machine_usage_cost = 11 [json_name = "perMachineUsageCost", deprecated = true]; + case 11: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 89)) { + per_machine_usage_cost_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double binary_data_cloud_storage_usage_cost = 12 [json_name = "binaryDataCloudStorageUsageCost", deprecated = true]; + case 12: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 97)) { + binary_data_cloud_storage_usage_cost_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double other_cloud_storage_usage_cost = 13 [json_name = "otherCloudStorageUsageCost", deprecated = true]; + case 13: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 105)) { + other_cloud_storage_usage_cost_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // repeated .viam.app.v1.ResourceUsageCostsBySource resource_usage_costs_by_source = 14 [json_name = "resourceUsageCostsBySource"]; + case 14: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 114)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_resource_usage_costs_by_source(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<114>(ptr)); + } else + goto handle_unusual; + continue; + // double subtotal = 15 [json_name = "subtotal"]; + case 15: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 121)) { + subtotal_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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; } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.end_date_ != nullptr); - _impl_.end_date_->Clear(); - } - } - ::memset(&_impl_.cloud_storage_usage_cost_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.subtotal_) - - reinterpret_cast(&_impl_.cloud_storage_usage_cost_)) + sizeof(_impl_.subtotal_)); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetCurrentMonthUsageResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<4, 15, 3, 0, 2> GetCurrentMonthUsageResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_._has_bits_), - 0, // no _extensions_ - 15, 120, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294934528, // skipmap - offsetof(decltype(_table_), field_entries), - 15, // num_field_entries - 3, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetCurrentMonthUsageResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // .google.protobuf.Timestamp start_date = 1 [json_name = "startDate"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.start_date_)}}, - // .google.protobuf.Timestamp end_date = 2 [json_name = "endDate"]; - {::_pbi::TcParser::FastMtS1, - {18, 1, 1, PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.end_date_)}}, - // double cloud_storage_usage_cost = 3 [json_name = "cloudStorageUsageCost", deprecated = true]; - {::_pbi::TcParser::FastF64S1, - {25, 63, 0, PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.cloud_storage_usage_cost_)}}, - // double data_upload_usage_cost = 4 [json_name = "dataUploadUsageCost", deprecated = true]; - {::_pbi::TcParser::FastF64S1, - {33, 63, 0, PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.data_upload_usage_cost_)}}, - // double data_egres_usage_cost = 5 [json_name = "dataEgresUsageCost", deprecated = true]; - {::_pbi::TcParser::FastF64S1, - {41, 63, 0, PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.data_egres_usage_cost_)}}, - // double remote_control_usage_cost = 6 [json_name = "remoteControlUsageCost", deprecated = true]; - {::_pbi::TcParser::FastF64S1, - {49, 63, 0, PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.remote_control_usage_cost_)}}, - // double standard_compute_usage_cost = 7 [json_name = "standardComputeUsageCost", deprecated = true]; - {::_pbi::TcParser::FastF64S1, - {57, 63, 0, PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.standard_compute_usage_cost_)}}, - // double discount_amount = 8 [json_name = "discountAmount", deprecated = true]; - {::_pbi::TcParser::FastF64S1, - {65, 63, 0, PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.discount_amount_)}}, - // double total_usage_with_discount = 9 [json_name = "totalUsageWithDiscount", deprecated = true]; - {::_pbi::TcParser::FastF64S1, - {73, 63, 0, PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.total_usage_with_discount_)}}, - // double total_usage_without_discount = 10 [json_name = "totalUsageWithoutDiscount", deprecated = true]; - {::_pbi::TcParser::FastF64S1, - {81, 63, 0, PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.total_usage_without_discount_)}}, - // double per_machine_usage_cost = 11 [json_name = "perMachineUsageCost", deprecated = true]; - {::_pbi::TcParser::FastF64S1, - {89, 63, 0, PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.per_machine_usage_cost_)}}, - // double binary_data_cloud_storage_usage_cost = 12 [json_name = "binaryDataCloudStorageUsageCost", deprecated = true]; - {::_pbi::TcParser::FastF64S1, - {97, 63, 0, PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.binary_data_cloud_storage_usage_cost_)}}, - // double other_cloud_storage_usage_cost = 13 [json_name = "otherCloudStorageUsageCost", deprecated = true]; - {::_pbi::TcParser::FastF64S1, - {105, 63, 0, PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.other_cloud_storage_usage_cost_)}}, - // repeated .viam.app.v1.ResourceUsageCostsBySource resource_usage_costs_by_source = 14 [json_name = "resourceUsageCostsBySource"]; - {::_pbi::TcParser::FastMtR1, - {114, 63, 2, PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.resource_usage_costs_by_source_)}}, - // double subtotal = 15 [json_name = "subtotal"]; - {::_pbi::TcParser::FastF64S1, - {121, 63, 0, PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.subtotal_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .google.protobuf.Timestamp start_date = 1 [json_name = "startDate"]; - {PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.start_date_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.protobuf.Timestamp end_date = 2 [json_name = "endDate"]; - {PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.end_date_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // double cloud_storage_usage_cost = 3 [json_name = "cloudStorageUsageCost", deprecated = true]; - {PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.cloud_storage_usage_cost_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double data_upload_usage_cost = 4 [json_name = "dataUploadUsageCost", deprecated = true]; - {PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.data_upload_usage_cost_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double data_egres_usage_cost = 5 [json_name = "dataEgresUsageCost", deprecated = true]; - {PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.data_egres_usage_cost_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double remote_control_usage_cost = 6 [json_name = "remoteControlUsageCost", deprecated = true]; - {PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.remote_control_usage_cost_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double standard_compute_usage_cost = 7 [json_name = "standardComputeUsageCost", deprecated = true]; - {PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.standard_compute_usage_cost_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double discount_amount = 8 [json_name = "discountAmount", deprecated = true]; - {PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.discount_amount_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double total_usage_with_discount = 9 [json_name = "totalUsageWithDiscount", deprecated = true]; - {PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.total_usage_with_discount_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double total_usage_without_discount = 10 [json_name = "totalUsageWithoutDiscount", deprecated = true]; - {PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.total_usage_without_discount_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double per_machine_usage_cost = 11 [json_name = "perMachineUsageCost", deprecated = true]; - {PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.per_machine_usage_cost_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double binary_data_cloud_storage_usage_cost = 12 [json_name = "binaryDataCloudStorageUsageCost", deprecated = true]; - {PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.binary_data_cloud_storage_usage_cost_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double other_cloud_storage_usage_cost = 13 [json_name = "otherCloudStorageUsageCost", deprecated = true]; - {PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.other_cloud_storage_usage_cost_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // repeated .viam.app.v1.ResourceUsageCostsBySource resource_usage_costs_by_source = 14 [json_name = "resourceUsageCostsBySource"]; - {PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.resource_usage_costs_by_source_), -1, 2, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // double subtotal = 15 [json_name = "subtotal"]; - {PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.subtotal_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, - {::_pbi::TcParser::GetTable<::viam::app::v1::ResourceUsageCostsBySource>()}, - }}, {{ - }}, -}; - -::uint8_t* GetCurrentMonthUsageResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetCurrentMonthUsageResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetCurrentMonthUsageResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Timestamp start_date = 1 [json_name = "startDate"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::start_date(this), + if (this->_internal_has_start_date()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::start_date(this), _Internal::start_date(this).GetCachedSize(), target, stream); } // .google.protobuf.Timestamp end_date = 2 [json_name = "endDate"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::end_date(this), + if (this->_internal_has_end_date()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::end_date(this), _Internal::end_date(this).GetCachedSize(), target, stream); } // double cloud_storage_usage_cost = 3 [json_name = "cloudStorageUsageCost", deprecated = true]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_cloud_storage_usage_cost = this->_internal_cloud_storage_usage_cost(); - ::uint64_t raw_cloud_storage_usage_cost; + uint64_t raw_cloud_storage_usage_cost; memcpy(&raw_cloud_storage_usage_cost, &tmp_cloud_storage_usage_cost, sizeof(tmp_cloud_storage_usage_cost)); if (raw_cloud_storage_usage_cost != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 3, this->_internal_cloud_storage_usage_cost(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(3, this->_internal_cloud_storage_usage_cost(), target); } // double data_upload_usage_cost = 4 [json_name = "dataUploadUsageCost", deprecated = true]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_data_upload_usage_cost = this->_internal_data_upload_usage_cost(); - ::uint64_t raw_data_upload_usage_cost; + uint64_t raw_data_upload_usage_cost; memcpy(&raw_data_upload_usage_cost, &tmp_data_upload_usage_cost, sizeof(tmp_data_upload_usage_cost)); if (raw_data_upload_usage_cost != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 4, this->_internal_data_upload_usage_cost(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(4, this->_internal_data_upload_usage_cost(), target); } // double data_egres_usage_cost = 5 [json_name = "dataEgresUsageCost", deprecated = true]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_data_egres_usage_cost = this->_internal_data_egres_usage_cost(); - ::uint64_t raw_data_egres_usage_cost; + uint64_t raw_data_egres_usage_cost; memcpy(&raw_data_egres_usage_cost, &tmp_data_egres_usage_cost, sizeof(tmp_data_egres_usage_cost)); if (raw_data_egres_usage_cost != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 5, this->_internal_data_egres_usage_cost(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(5, this->_internal_data_egres_usage_cost(), target); } // double remote_control_usage_cost = 6 [json_name = "remoteControlUsageCost", deprecated = true]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_remote_control_usage_cost = this->_internal_remote_control_usage_cost(); - ::uint64_t raw_remote_control_usage_cost; + uint64_t raw_remote_control_usage_cost; memcpy(&raw_remote_control_usage_cost, &tmp_remote_control_usage_cost, sizeof(tmp_remote_control_usage_cost)); if (raw_remote_control_usage_cost != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 6, this->_internal_remote_control_usage_cost(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(6, this->_internal_remote_control_usage_cost(), target); } // double standard_compute_usage_cost = 7 [json_name = "standardComputeUsageCost", deprecated = true]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_standard_compute_usage_cost = this->_internal_standard_compute_usage_cost(); - ::uint64_t raw_standard_compute_usage_cost; + uint64_t raw_standard_compute_usage_cost; memcpy(&raw_standard_compute_usage_cost, &tmp_standard_compute_usage_cost, sizeof(tmp_standard_compute_usage_cost)); if (raw_standard_compute_usage_cost != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 7, this->_internal_standard_compute_usage_cost(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(7, this->_internal_standard_compute_usage_cost(), target); } // double discount_amount = 8 [json_name = "discountAmount", deprecated = true]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_discount_amount = this->_internal_discount_amount(); - ::uint64_t raw_discount_amount; + uint64_t raw_discount_amount; memcpy(&raw_discount_amount, &tmp_discount_amount, sizeof(tmp_discount_amount)); if (raw_discount_amount != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 8, this->_internal_discount_amount(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(8, this->_internal_discount_amount(), target); } // double total_usage_with_discount = 9 [json_name = "totalUsageWithDiscount", deprecated = true]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_total_usage_with_discount = this->_internal_total_usage_with_discount(); - ::uint64_t raw_total_usage_with_discount; + uint64_t raw_total_usage_with_discount; memcpy(&raw_total_usage_with_discount, &tmp_total_usage_with_discount, sizeof(tmp_total_usage_with_discount)); if (raw_total_usage_with_discount != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 9, this->_internal_total_usage_with_discount(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(9, this->_internal_total_usage_with_discount(), target); } // double total_usage_without_discount = 10 [json_name = "totalUsageWithoutDiscount", deprecated = true]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_total_usage_without_discount = this->_internal_total_usage_without_discount(); - ::uint64_t raw_total_usage_without_discount; + uint64_t raw_total_usage_without_discount; memcpy(&raw_total_usage_without_discount, &tmp_total_usage_without_discount, sizeof(tmp_total_usage_without_discount)); if (raw_total_usage_without_discount != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 10, this->_internal_total_usage_without_discount(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(10, this->_internal_total_usage_without_discount(), target); } // double per_machine_usage_cost = 11 [json_name = "perMachineUsageCost", deprecated = true]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_per_machine_usage_cost = this->_internal_per_machine_usage_cost(); - ::uint64_t raw_per_machine_usage_cost; + uint64_t raw_per_machine_usage_cost; memcpy(&raw_per_machine_usage_cost, &tmp_per_machine_usage_cost, sizeof(tmp_per_machine_usage_cost)); if (raw_per_machine_usage_cost != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 11, this->_internal_per_machine_usage_cost(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(11, this->_internal_per_machine_usage_cost(), target); } // double binary_data_cloud_storage_usage_cost = 12 [json_name = "binaryDataCloudStorageUsageCost", deprecated = true]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_binary_data_cloud_storage_usage_cost = this->_internal_binary_data_cloud_storage_usage_cost(); - ::uint64_t raw_binary_data_cloud_storage_usage_cost; + uint64_t raw_binary_data_cloud_storage_usage_cost; memcpy(&raw_binary_data_cloud_storage_usage_cost, &tmp_binary_data_cloud_storage_usage_cost, sizeof(tmp_binary_data_cloud_storage_usage_cost)); if (raw_binary_data_cloud_storage_usage_cost != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 12, this->_internal_binary_data_cloud_storage_usage_cost(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(12, this->_internal_binary_data_cloud_storage_usage_cost(), target); } // double other_cloud_storage_usage_cost = 13 [json_name = "otherCloudStorageUsageCost", deprecated = true]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_other_cloud_storage_usage_cost = this->_internal_other_cloud_storage_usage_cost(); - ::uint64_t raw_other_cloud_storage_usage_cost; + uint64_t raw_other_cloud_storage_usage_cost; memcpy(&raw_other_cloud_storage_usage_cost, &tmp_other_cloud_storage_usage_cost, sizeof(tmp_other_cloud_storage_usage_cost)); if (raw_other_cloud_storage_usage_cost != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 13, this->_internal_other_cloud_storage_usage_cost(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(13, this->_internal_other_cloud_storage_usage_cost(), target); } // repeated .viam.app.v1.ResourceUsageCostsBySource resource_usage_costs_by_source = 14 [json_name = "resourceUsageCostsBySource"]; for (unsigned i = 0, n = static_cast(this->_internal_resource_usage_costs_by_source_size()); i < n; i++) { - const auto& repfield = this->_internal_resource_usage_costs_by_source().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_resource_usage_costs_by_source(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(14, repfield, repfield.GetCachedSize(), target, stream); } // double subtotal = 15 [json_name = "subtotal"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_subtotal = this->_internal_subtotal(); - ::uint64_t raw_subtotal; + uint64_t raw_subtotal; memcpy(&raw_subtotal, &tmp_subtotal, sizeof(tmp_subtotal)); if (raw_subtotal != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 15, this->_internal_subtotal(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(15, this->_internal_subtotal(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.GetCurrentMonthUsageResponse) return target; } -::size_t GetCurrentMonthUsageResponse::ByteSizeLong() const { +size_t GetCurrentMonthUsageResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetCurrentMonthUsageResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.app.v1.ResourceUsageCostsBySource resource_usage_costs_by_source = 14 [json_name = "resourceUsageCostsBySource"]; total_size += 1UL * this->_internal_resource_usage_costs_by_source_size(); - for (const auto& msg : this->_internal_resource_usage_costs_by_source()) { + for (const auto& msg : this->resource_usage_costs_by_source_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // .google.protobuf.Timestamp start_date = 1 [json_name = "startDate"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.start_date_); - } - // .google.protobuf.Timestamp end_date = 2 [json_name = "endDate"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.end_date_); - } + // .google.protobuf.Timestamp start_date = 1 [json_name = "startDate"]; + if (this->_internal_has_start_date()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *start_date_); + } + // .google.protobuf.Timestamp end_date = 2 [json_name = "endDate"]; + if (this->_internal_has_end_date()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *end_date_); } + // double cloud_storage_usage_cost = 3 [json_name = "cloudStorageUsageCost", deprecated = true]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_cloud_storage_usage_cost = this->_internal_cloud_storage_usage_cost(); - ::uint64_t raw_cloud_storage_usage_cost; + uint64_t raw_cloud_storage_usage_cost; memcpy(&raw_cloud_storage_usage_cost, &tmp_cloud_storage_usage_cost, sizeof(tmp_cloud_storage_usage_cost)); if (raw_cloud_storage_usage_cost != 0) { - total_size += 9; + total_size += 1 + 8; } // double data_upload_usage_cost = 4 [json_name = "dataUploadUsageCost", deprecated = true]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_data_upload_usage_cost = this->_internal_data_upload_usage_cost(); - ::uint64_t raw_data_upload_usage_cost; + uint64_t raw_data_upload_usage_cost; memcpy(&raw_data_upload_usage_cost, &tmp_data_upload_usage_cost, sizeof(tmp_data_upload_usage_cost)); if (raw_data_upload_usage_cost != 0) { - total_size += 9; + total_size += 1 + 8; } // double data_egres_usage_cost = 5 [json_name = "dataEgresUsageCost", deprecated = true]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_data_egres_usage_cost = this->_internal_data_egres_usage_cost(); - ::uint64_t raw_data_egres_usage_cost; + uint64_t raw_data_egres_usage_cost; memcpy(&raw_data_egres_usage_cost, &tmp_data_egres_usage_cost, sizeof(tmp_data_egres_usage_cost)); if (raw_data_egres_usage_cost != 0) { - total_size += 9; + total_size += 1 + 8; } // double remote_control_usage_cost = 6 [json_name = "remoteControlUsageCost", deprecated = true]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_remote_control_usage_cost = this->_internal_remote_control_usage_cost(); - ::uint64_t raw_remote_control_usage_cost; + uint64_t raw_remote_control_usage_cost; memcpy(&raw_remote_control_usage_cost, &tmp_remote_control_usage_cost, sizeof(tmp_remote_control_usage_cost)); if (raw_remote_control_usage_cost != 0) { - total_size += 9; + total_size += 1 + 8; } // double standard_compute_usage_cost = 7 [json_name = "standardComputeUsageCost", deprecated = true]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_standard_compute_usage_cost = this->_internal_standard_compute_usage_cost(); - ::uint64_t raw_standard_compute_usage_cost; + uint64_t raw_standard_compute_usage_cost; memcpy(&raw_standard_compute_usage_cost, &tmp_standard_compute_usage_cost, sizeof(tmp_standard_compute_usage_cost)); if (raw_standard_compute_usage_cost != 0) { - total_size += 9; + total_size += 1 + 8; } // double discount_amount = 8 [json_name = "discountAmount", deprecated = true]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_discount_amount = this->_internal_discount_amount(); - ::uint64_t raw_discount_amount; + uint64_t raw_discount_amount; memcpy(&raw_discount_amount, &tmp_discount_amount, sizeof(tmp_discount_amount)); if (raw_discount_amount != 0) { - total_size += 9; + total_size += 1 + 8; } // double total_usage_with_discount = 9 [json_name = "totalUsageWithDiscount", deprecated = true]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_total_usage_with_discount = this->_internal_total_usage_with_discount(); - ::uint64_t raw_total_usage_with_discount; + uint64_t raw_total_usage_with_discount; memcpy(&raw_total_usage_with_discount, &tmp_total_usage_with_discount, sizeof(tmp_total_usage_with_discount)); if (raw_total_usage_with_discount != 0) { - total_size += 9; + total_size += 1 + 8; } // double total_usage_without_discount = 10 [json_name = "totalUsageWithoutDiscount", deprecated = true]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_total_usage_without_discount = this->_internal_total_usage_without_discount(); - ::uint64_t raw_total_usage_without_discount; + uint64_t raw_total_usage_without_discount; memcpy(&raw_total_usage_without_discount, &tmp_total_usage_without_discount, sizeof(tmp_total_usage_without_discount)); if (raw_total_usage_without_discount != 0) { - total_size += 9; + total_size += 1 + 8; } // double per_machine_usage_cost = 11 [json_name = "perMachineUsageCost", deprecated = true]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_per_machine_usage_cost = this->_internal_per_machine_usage_cost(); - ::uint64_t raw_per_machine_usage_cost; + uint64_t raw_per_machine_usage_cost; memcpy(&raw_per_machine_usage_cost, &tmp_per_machine_usage_cost, sizeof(tmp_per_machine_usage_cost)); if (raw_per_machine_usage_cost != 0) { - total_size += 9; + total_size += 1 + 8; } // double binary_data_cloud_storage_usage_cost = 12 [json_name = "binaryDataCloudStorageUsageCost", deprecated = true]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_binary_data_cloud_storage_usage_cost = this->_internal_binary_data_cloud_storage_usage_cost(); - ::uint64_t raw_binary_data_cloud_storage_usage_cost; + uint64_t raw_binary_data_cloud_storage_usage_cost; memcpy(&raw_binary_data_cloud_storage_usage_cost, &tmp_binary_data_cloud_storage_usage_cost, sizeof(tmp_binary_data_cloud_storage_usage_cost)); if (raw_binary_data_cloud_storage_usage_cost != 0) { - total_size += 9; + total_size += 1 + 8; } // double other_cloud_storage_usage_cost = 13 [json_name = "otherCloudStorageUsageCost", deprecated = true]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_other_cloud_storage_usage_cost = this->_internal_other_cloud_storage_usage_cost(); - ::uint64_t raw_other_cloud_storage_usage_cost; + uint64_t raw_other_cloud_storage_usage_cost; memcpy(&raw_other_cloud_storage_usage_cost, &tmp_other_cloud_storage_usage_cost, sizeof(tmp_other_cloud_storage_usage_cost)); if (raw_other_cloud_storage_usage_cost != 0) { - total_size += 9; + total_size += 1 + 8; } // double subtotal = 15 [json_name = "subtotal"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_subtotal = this->_internal_subtotal(); - ::uint64_t raw_subtotal; + uint64_t raw_subtotal; memcpy(&raw_subtotal, &tmp_subtotal, sizeof(tmp_subtotal)); if (raw_subtotal != 0) { - total_size += 9; + total_size += 1 + 8; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetCurrentMonthUsageResponse::_class_data_ = { - GetCurrentMonthUsageResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetCurrentMonthUsageResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetCurrentMonthUsageResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetCurrentMonthUsageResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetCurrentMonthUsageResponse::GetClassData() const { return &_class_data_; } + +void GetCurrentMonthUsageResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetCurrentMonthUsageResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetCurrentMonthUsageResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetCurrentMonthUsageResponse::MergeFrom(const GetCurrentMonthUsageResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetCurrentMonthUsageResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_resource_usage_costs_by_source()->MergeFrom( - from._internal_resource_usage_costs_by_source()); - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_start_date()->::google::protobuf::Timestamp::MergeFrom( - from._internal_start_date()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_end_date()->::google::protobuf::Timestamp::MergeFrom( - from._internal_end_date()); - } + resource_usage_costs_by_source_.MergeFrom(from.resource_usage_costs_by_source_); + if (from._internal_has_start_date()) { + _internal_mutable_start_date()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_start_date()); + } + if (from._internal_has_end_date()) { + _internal_mutable_end_date()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_end_date()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_cloud_storage_usage_cost = from._internal_cloud_storage_usage_cost(); - ::uint64_t raw_cloud_storage_usage_cost; + uint64_t raw_cloud_storage_usage_cost; memcpy(&raw_cloud_storage_usage_cost, &tmp_cloud_storage_usage_cost, sizeof(tmp_cloud_storage_usage_cost)); if (raw_cloud_storage_usage_cost != 0) { - _this->_internal_set_cloud_storage_usage_cost(from._internal_cloud_storage_usage_cost()); + _internal_set_cloud_storage_usage_cost(from._internal_cloud_storage_usage_cost()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_data_upload_usage_cost = from._internal_data_upload_usage_cost(); - ::uint64_t raw_data_upload_usage_cost; + uint64_t raw_data_upload_usage_cost; memcpy(&raw_data_upload_usage_cost, &tmp_data_upload_usage_cost, sizeof(tmp_data_upload_usage_cost)); if (raw_data_upload_usage_cost != 0) { - _this->_internal_set_data_upload_usage_cost(from._internal_data_upload_usage_cost()); + _internal_set_data_upload_usage_cost(from._internal_data_upload_usage_cost()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_data_egres_usage_cost = from._internal_data_egres_usage_cost(); - ::uint64_t raw_data_egres_usage_cost; + uint64_t raw_data_egres_usage_cost; memcpy(&raw_data_egres_usage_cost, &tmp_data_egres_usage_cost, sizeof(tmp_data_egres_usage_cost)); if (raw_data_egres_usage_cost != 0) { - _this->_internal_set_data_egres_usage_cost(from._internal_data_egres_usage_cost()); + _internal_set_data_egres_usage_cost(from._internal_data_egres_usage_cost()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_remote_control_usage_cost = from._internal_remote_control_usage_cost(); - ::uint64_t raw_remote_control_usage_cost; + uint64_t raw_remote_control_usage_cost; memcpy(&raw_remote_control_usage_cost, &tmp_remote_control_usage_cost, sizeof(tmp_remote_control_usage_cost)); if (raw_remote_control_usage_cost != 0) { - _this->_internal_set_remote_control_usage_cost(from._internal_remote_control_usage_cost()); + _internal_set_remote_control_usage_cost(from._internal_remote_control_usage_cost()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_standard_compute_usage_cost = from._internal_standard_compute_usage_cost(); - ::uint64_t raw_standard_compute_usage_cost; + uint64_t raw_standard_compute_usage_cost; memcpy(&raw_standard_compute_usage_cost, &tmp_standard_compute_usage_cost, sizeof(tmp_standard_compute_usage_cost)); if (raw_standard_compute_usage_cost != 0) { - _this->_internal_set_standard_compute_usage_cost(from._internal_standard_compute_usage_cost()); + _internal_set_standard_compute_usage_cost(from._internal_standard_compute_usage_cost()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_discount_amount = from._internal_discount_amount(); - ::uint64_t raw_discount_amount; + uint64_t raw_discount_amount; memcpy(&raw_discount_amount, &tmp_discount_amount, sizeof(tmp_discount_amount)); if (raw_discount_amount != 0) { - _this->_internal_set_discount_amount(from._internal_discount_amount()); + _internal_set_discount_amount(from._internal_discount_amount()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_total_usage_with_discount = from._internal_total_usage_with_discount(); - ::uint64_t raw_total_usage_with_discount; + uint64_t raw_total_usage_with_discount; memcpy(&raw_total_usage_with_discount, &tmp_total_usage_with_discount, sizeof(tmp_total_usage_with_discount)); if (raw_total_usage_with_discount != 0) { - _this->_internal_set_total_usage_with_discount(from._internal_total_usage_with_discount()); + _internal_set_total_usage_with_discount(from._internal_total_usage_with_discount()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_total_usage_without_discount = from._internal_total_usage_without_discount(); - ::uint64_t raw_total_usage_without_discount; + uint64_t raw_total_usage_without_discount; memcpy(&raw_total_usage_without_discount, &tmp_total_usage_without_discount, sizeof(tmp_total_usage_without_discount)); if (raw_total_usage_without_discount != 0) { - _this->_internal_set_total_usage_without_discount(from._internal_total_usage_without_discount()); + _internal_set_total_usage_without_discount(from._internal_total_usage_without_discount()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_per_machine_usage_cost = from._internal_per_machine_usage_cost(); - ::uint64_t raw_per_machine_usage_cost; + uint64_t raw_per_machine_usage_cost; memcpy(&raw_per_machine_usage_cost, &tmp_per_machine_usage_cost, sizeof(tmp_per_machine_usage_cost)); if (raw_per_machine_usage_cost != 0) { - _this->_internal_set_per_machine_usage_cost(from._internal_per_machine_usage_cost()); + _internal_set_per_machine_usage_cost(from._internal_per_machine_usage_cost()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_binary_data_cloud_storage_usage_cost = from._internal_binary_data_cloud_storage_usage_cost(); - ::uint64_t raw_binary_data_cloud_storage_usage_cost; + uint64_t raw_binary_data_cloud_storage_usage_cost; memcpy(&raw_binary_data_cloud_storage_usage_cost, &tmp_binary_data_cloud_storage_usage_cost, sizeof(tmp_binary_data_cloud_storage_usage_cost)); if (raw_binary_data_cloud_storage_usage_cost != 0) { - _this->_internal_set_binary_data_cloud_storage_usage_cost(from._internal_binary_data_cloud_storage_usage_cost()); + _internal_set_binary_data_cloud_storage_usage_cost(from._internal_binary_data_cloud_storage_usage_cost()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_other_cloud_storage_usage_cost = from._internal_other_cloud_storage_usage_cost(); - ::uint64_t raw_other_cloud_storage_usage_cost; + uint64_t raw_other_cloud_storage_usage_cost; memcpy(&raw_other_cloud_storage_usage_cost, &tmp_other_cloud_storage_usage_cost, sizeof(tmp_other_cloud_storage_usage_cost)); if (raw_other_cloud_storage_usage_cost != 0) { - _this->_internal_set_other_cloud_storage_usage_cost(from._internal_other_cloud_storage_usage_cost()); + _internal_set_other_cloud_storage_usage_cost(from._internal_other_cloud_storage_usage_cost()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_subtotal = from._internal_subtotal(); - ::uint64_t raw_subtotal; + uint64_t raw_subtotal; memcpy(&raw_subtotal, &tmp_subtotal, sizeof(tmp_subtotal)); if (raw_subtotal != 0) { - _this->_internal_set_subtotal(from._internal_subtotal()); + _internal_set_subtotal(from._internal_subtotal()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetCurrentMonthUsageResponse::CopyFrom(const GetCurrentMonthUsageResponse& from) { @@ -3128,192 +2945,193 @@ void GetCurrentMonthUsageResponse::CopyFrom(const GetCurrentMonthUsageResponse& MergeFrom(from); } -PROTOBUF_NOINLINE bool GetCurrentMonthUsageResponse::IsInitialized() const { +bool GetCurrentMonthUsageResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetCurrentMonthUsageResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetCurrentMonthUsageResponse::InternalSwap(GetCurrentMonthUsageResponse* PROTOBUF_RESTRICT other) { +void GetCurrentMonthUsageResponse::InternalSwap(GetCurrentMonthUsageResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.resource_usage_costs_by_source_.InternalSwap(&other->_impl_.resource_usage_costs_by_source_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.subtotal_) - + sizeof(GetCurrentMonthUsageResponse::_impl_.subtotal_) - - PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, _impl_.start_date_)>( - reinterpret_cast(&_impl_.start_date_), - reinterpret_cast(&other->_impl_.start_date_)); + resource_usage_costs_by_source_.InternalSwap(&other->resource_usage_costs_by_source_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, subtotal_) + + sizeof(GetCurrentMonthUsageResponse::subtotal_) + - PROTOBUF_FIELD_OFFSET(GetCurrentMonthUsageResponse, start_date_)>( + reinterpret_cast(&start_date_), + reinterpret_cast(&other->start_date_)); } -::google::protobuf::Metadata GetCurrentMonthUsageResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetCurrentMonthUsageResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fbilling_2eproto_getter, &descriptor_table_app_2fv1_2fbilling_2eproto_once, file_level_metadata_app_2fv1_2fbilling_2eproto[6]); } + // =================================================================== class GetOrgBillingInformationRequest::_Internal { public: }; -GetOrgBillingInformationRequest::GetOrgBillingInformationRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetOrgBillingInformationRequest::GetOrgBillingInformationRequest(::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.GetOrgBillingInformationRequest) } -inline PROTOBUF_NDEBUG_INLINE GetOrgBillingInformationRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : org_id_(arena, from.org_id_), - _cached_size_{0} {} - -GetOrgBillingInformationRequest::GetOrgBillingInformationRequest( - ::google::protobuf::Arena* arena, - const GetOrgBillingInformationRequest& from) - : ::google::protobuf::Message(arena) { - GetOrgBillingInformationRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetOrgBillingInformationRequest::GetOrgBillingInformationRequest(const GetOrgBillingInformationRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + org_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_org_id().empty()) { + org_id_.Set(from._internal_org_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetOrgBillingInformationRequest) } -inline PROTOBUF_NDEBUG_INLINE GetOrgBillingInformationRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : org_id_(arena), - _cached_size_{0} {} -inline void GetOrgBillingInformationRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetOrgBillingInformationRequest::SharedCtor() { +org_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + GetOrgBillingInformationRequest::~GetOrgBillingInformationRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.GetOrgBillingInformationRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetOrgBillingInformationRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.org_id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + org_id_.Destroy(); } -PROTOBUF_NOINLINE void GetOrgBillingInformationRequest::Clear() { +void GetOrgBillingInformationRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetOrgBillingInformationRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.GetOrgBillingInformationRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.org_id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetOrgBillingInformationRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + org_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetOrgBillingInformationRequest::_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 org_id = 1 [json_name = "orgId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_org_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.GetOrgBillingInformationRequest.org_id")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 58, 2> GetOrgBillingInformationRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetOrgBillingInformationRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string org_id = 1 [json_name = "orgId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetOrgBillingInformationRequest, _impl_.org_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string org_id = 1 [json_name = "orgId"]; - {PROTOBUF_FIELD_OFFSET(GetOrgBillingInformationRequest, _impl_.org_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\53\6\0\0\0\0\0\0" - "viam.app.v1.GetOrgBillingInformationRequest" - "org_id" - }}, -}; - -::uint8_t* GetOrgBillingInformationRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetOrgBillingInformationRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetOrgBillingInformationRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string org_id = 1 [json_name = "orgId"]; if (!this->_internal_org_id().empty()) { - const std::string& _s = this->_internal_org_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.GetOrgBillingInformationRequest.org_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_org_id().data(), static_cast(this->_internal_org_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.GetOrgBillingInformationRequest.org_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_org_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.GetOrgBillingInformationRequest) return target; } -::size_t GetOrgBillingInformationRequest::ByteSizeLong() const { +size_t GetOrgBillingInformationRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetOrgBillingInformationRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string org_id = 1 [json_name = "orgId"]; if (!this->_internal_org_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_org_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_org_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetOrgBillingInformationRequest::_class_data_ = { - GetOrgBillingInformationRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetOrgBillingInformationRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetOrgBillingInformationRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetOrgBillingInformationRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetOrgBillingInformationRequest::GetClassData() const { return &_class_data_; } + +void GetOrgBillingInformationRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetOrgBillingInformationRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetOrgBillingInformationRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetOrgBillingInformationRequest::MergeFrom(const GetOrgBillingInformationRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetOrgBillingInformationRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_org_id().empty()) { - _this->_internal_set_org_id(from._internal_org_id()); + _internal_set_org_id(from._internal_org_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetOrgBillingInformationRequest::CopyFrom(const GetOrgBillingInformationRequest& from) { @@ -3323,33 +3141,32 @@ void GetOrgBillingInformationRequest::CopyFrom(const GetOrgBillingInformationReq MergeFrom(from); } -PROTOBUF_NOINLINE bool GetOrgBillingInformationRequest::IsInitialized() const { +bool GetOrgBillingInformationRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetOrgBillingInformationRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetOrgBillingInformationRequest::InternalSwap(GetOrgBillingInformationRequest* PROTOBUF_RESTRICT other) { +void GetOrgBillingInformationRequest::InternalSwap(GetOrgBillingInformationRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.org_id_, &other->_impl_.org_id_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &org_id_, lhs_arena, + &other->org_id_, rhs_arena + ); } -::google::protobuf::Metadata GetOrgBillingInformationRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetOrgBillingInformationRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fbilling_2eproto_getter, &descriptor_table_app_2fv1_2fbilling_2eproto_once, file_level_metadata_app_2fv1_2fbilling_2eproto[7]); } + // =================================================================== class GetOrgBillingInformationResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetOrgBillingInformationResponse, _impl_._has_bits_); + using HasBits = decltype(std::declval()._has_bits_); static const ::viam::app::v1::PaymentMethodCard& method(const GetOrgBillingInformationResponse* msg); static void set_has_method(HasBits* has_bits) { (*has_bits)[0] |= 2u; @@ -3359,268 +3176,294 @@ class GetOrgBillingInformationResponse::_Internal { } }; -const ::viam::app::v1::PaymentMethodCard& GetOrgBillingInformationResponse::_Internal::method(const GetOrgBillingInformationResponse* msg) { - return *msg->_impl_.method_; +const ::viam::app::v1::PaymentMethodCard& +GetOrgBillingInformationResponse::_Internal::method(const GetOrgBillingInformationResponse* msg) { + return *msg->method_; } -GetOrgBillingInformationResponse::GetOrgBillingInformationResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetOrgBillingInformationResponse::GetOrgBillingInformationResponse(::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.GetOrgBillingInformationResponse) } -inline PROTOBUF_NDEBUG_INLINE GetOrgBillingInformationResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - billing_email_(arena, from.billing_email_), - billing_tier_(arena, from.billing_tier_) {} - -GetOrgBillingInformationResponse::GetOrgBillingInformationResponse( - ::google::protobuf::Arena* arena, - const GetOrgBillingInformationResponse& from) - : ::google::protobuf::Message(arena) { - GetOrgBillingInformationResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.method_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::viam::app::v1::PaymentMethodCard>(arena, *from._impl_.method_) - : nullptr; - _impl_.type_ = from._impl_.type_; - +GetOrgBillingInformationResponse::GetOrgBillingInformationResponse(const GetOrgBillingInformationResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + billing_email_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + billing_email_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_billing_email().empty()) { + billing_email_.Set(from._internal_billing_email(), + GetArenaForAllocation()); + } + billing_tier_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + billing_tier_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (from._internal_has_billing_tier()) { + billing_tier_.Set(from._internal_billing_tier(), + GetArenaForAllocation()); + } + if (from._internal_has_method()) { + method_ = new ::viam::app::v1::PaymentMethodCard(*from.method_); + } else { + method_ = nullptr; + } + type_ = from.type_; // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetOrgBillingInformationResponse) } -inline PROTOBUF_NDEBUG_INLINE GetOrgBillingInformationResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - billing_email_(arena), - billing_tier_(arena) {} - -inline void GetOrgBillingInformationResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, method_), - 0, - offsetof(Impl_, type_) - - offsetof(Impl_, method_) + - sizeof(Impl_::type_)); + +inline void GetOrgBillingInformationResponse::SharedCtor() { +billing_email_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + billing_email_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +billing_tier_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + billing_tier_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&method_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&type_) - + reinterpret_cast(&method_)) + sizeof(type_)); } + GetOrgBillingInformationResponse::~GetOrgBillingInformationResponse() { // @@protoc_insertion_point(destructor:viam.app.v1.GetOrgBillingInformationResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetOrgBillingInformationResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.billing_email_.Destroy(); - _impl_.billing_tier_.Destroy(); - delete _impl_.method_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + billing_email_.Destroy(); + billing_tier_.Destroy(); + if (this != internal_default_instance()) delete method_; } -PROTOBUF_NOINLINE void GetOrgBillingInformationResponse::Clear() { +void GetOrgBillingInformationResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetOrgBillingInformationResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.GetOrgBillingInformationResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.billing_email_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; + billing_email_.ClearToEmpty(); + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - _impl_.billing_tier_.ClearNonDefaultToEmpty(); + billing_tier_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.method_ != nullptr); - _impl_.method_->Clear(); + GOOGLE_DCHECK(method_ != nullptr); + method_->Clear(); } } - _impl_.type_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetOrgBillingInformationResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + type_ = 0; + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetOrgBillingInformationResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .viam.app.v1.PaymentMethodType type = 1 [json_name = "type"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_type(static_cast<::viam::app::v1::PaymentMethodType>(val)); + } else + goto handle_unusual; + continue; + // string billing_email = 2 [json_name = "billingEmail"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_billing_email(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.GetOrgBillingInformationResponse.billing_email")); + } else + goto handle_unusual; + continue; + // optional .viam.app.v1.PaymentMethodCard method = 3 [json_name = "method"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_method(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional string billing_tier = 4 [json_name = "billingTier"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_billing_tier(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.GetOrgBillingInformationResponse.billing_tier")); + } 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: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 1, 78, 2> GetOrgBillingInformationResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetOrgBillingInformationResponse, _impl_._has_bits_), - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetOrgBillingInformationResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // optional string billing_tier = 4 [json_name = "billingTier"]; - {::_pbi::TcParser::FastUS1, - {34, 0, 0, PROTOBUF_FIELD_OFFSET(GetOrgBillingInformationResponse, _impl_.billing_tier_)}}, - // .viam.app.v1.PaymentMethodType type = 1 [json_name = "type"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(GetOrgBillingInformationResponse, _impl_.type_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(GetOrgBillingInformationResponse, _impl_.type_)}}, - // string billing_email = 2 [json_name = "billingEmail"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(GetOrgBillingInformationResponse, _impl_.billing_email_)}}, - // optional .viam.app.v1.PaymentMethodCard method = 3 [json_name = "method"]; - {::_pbi::TcParser::FastMtS1, - {26, 1, 0, PROTOBUF_FIELD_OFFSET(GetOrgBillingInformationResponse, _impl_.method_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.app.v1.PaymentMethodType type = 1 [json_name = "type"]; - {PROTOBUF_FIELD_OFFSET(GetOrgBillingInformationResponse, _impl_.type_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // string billing_email = 2 [json_name = "billingEmail"]; - {PROTOBUF_FIELD_OFFSET(GetOrgBillingInformationResponse, _impl_.billing_email_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // optional .viam.app.v1.PaymentMethodCard method = 3 [json_name = "method"]; - {PROTOBUF_FIELD_OFFSET(GetOrgBillingInformationResponse, _impl_.method_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // optional string billing_tier = 4 [json_name = "billingTier"]; - {PROTOBUF_FIELD_OFFSET(GetOrgBillingInformationResponse, _impl_.billing_tier_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::PaymentMethodCard>()}, - }}, {{ - "\54\0\15\0\14\0\0\0" - "viam.app.v1.GetOrgBillingInformationResponse" - "billing_email" - "billing_tier" - }}, -}; - -::uint8_t* GetOrgBillingInformationResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetOrgBillingInformationResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetOrgBillingInformationResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // .viam.app.v1.PaymentMethodType type = 1 [json_name = "type"]; if (this->_internal_type() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_type(), target); + 1, this->_internal_type(), target); } // string billing_email = 2 [json_name = "billingEmail"]; if (!this->_internal_billing_email().empty()) { - const std::string& _s = this->_internal_billing_email(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.GetOrgBillingInformationResponse.billing_email"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_billing_email().data(), static_cast(this->_internal_billing_email().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.GetOrgBillingInformationResponse.billing_email"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_billing_email(), target); } - cached_has_bits = _impl_._has_bits_[0]; // optional .viam.app.v1.PaymentMethodCard method = 3 [json_name = "method"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::method(this), + if (_internal_has_method()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::method(this), _Internal::method(this).GetCachedSize(), target, stream); } // optional string billing_tier = 4 [json_name = "billingTier"]; - if (cached_has_bits & 0x00000001u) { - const std::string& _s = this->_internal_billing_tier(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.GetOrgBillingInformationResponse.billing_tier"); - target = stream->WriteStringMaybeAliased(4, _s, target); + if (_internal_has_billing_tier()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_billing_tier().data(), static_cast(this->_internal_billing_tier().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.GetOrgBillingInformationResponse.billing_tier"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_billing_tier(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.GetOrgBillingInformationResponse) return target; } -::size_t GetOrgBillingInformationResponse::ByteSizeLong() const { +size_t GetOrgBillingInformationResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetOrgBillingInformationResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string billing_email = 2 [json_name = "billingEmail"]; if (!this->_internal_billing_email().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_billing_email()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_billing_email()); } - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000003u) { // optional string billing_tier = 4 [json_name = "billingTier"]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_billing_tier()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_billing_tier()); } // optional .viam.app.v1.PaymentMethodCard method = 3 [json_name = "method"]; if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.method_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *method_); } } // .viam.app.v1.PaymentMethodType type = 1 [json_name = "type"]; if (this->_internal_type() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_type()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_type()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetOrgBillingInformationResponse::_class_data_ = { - GetOrgBillingInformationResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetOrgBillingInformationResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetOrgBillingInformationResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetOrgBillingInformationResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetOrgBillingInformationResponse::GetClassData() const { return &_class_data_; } + +void GetOrgBillingInformationResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetOrgBillingInformationResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetOrgBillingInformationResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetOrgBillingInformationResponse::MergeFrom(const GetOrgBillingInformationResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetOrgBillingInformationResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_billing_email().empty()) { - _this->_internal_set_billing_email(from._internal_billing_email()); + _internal_set_billing_email(from._internal_billing_email()); } - cached_has_bits = from._impl_._has_bits_[0]; + cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - _this->_internal_set_billing_tier(from._internal_billing_tier()); + _internal_set_billing_tier(from._internal_billing_tier()); } if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_method()->::viam::app::v1::PaymentMethodCard::MergeFrom( - from._internal_method()); + _internal_mutable_method()->::viam::app::v1::PaymentMethodCard::MergeFrom(from._internal_method()); } } if (from._internal_type() != 0) { - _this->_internal_set_type(from._internal_type()); + _internal_set_type(from._internal_type()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetOrgBillingInformationResponse::CopyFrom(const GetOrgBillingInformationResponse& from) { @@ -3630,195 +3473,203 @@ void GetOrgBillingInformationResponse::CopyFrom(const GetOrgBillingInformationRe MergeFrom(from); } -PROTOBUF_NOINLINE bool GetOrgBillingInformationResponse::IsInitialized() const { +bool GetOrgBillingInformationResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetOrgBillingInformationResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetOrgBillingInformationResponse::InternalSwap(GetOrgBillingInformationResponse* PROTOBUF_RESTRICT other) { +void GetOrgBillingInformationResponse::InternalSwap(GetOrgBillingInformationResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.billing_email_, &other->_impl_.billing_email_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.billing_tier_, &other->_impl_.billing_tier_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(GetOrgBillingInformationResponse, _impl_.type_) - + sizeof(GetOrgBillingInformationResponse::_impl_.type_) - - PROTOBUF_FIELD_OFFSET(GetOrgBillingInformationResponse, _impl_.method_)>( - reinterpret_cast(&_impl_.method_), - reinterpret_cast(&other->_impl_.method_)); -} - -::google::protobuf::Metadata GetOrgBillingInformationResponse::GetMetadata() const { + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &billing_email_, lhs_arena, + &other->billing_email_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &billing_tier_, lhs_arena, + &other->billing_tier_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GetOrgBillingInformationResponse, type_) + + sizeof(GetOrgBillingInformationResponse::type_) + - PROTOBUF_FIELD_OFFSET(GetOrgBillingInformationResponse, method_)>( + reinterpret_cast(&method_), + reinterpret_cast(&other->method_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetOrgBillingInformationResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fbilling_2eproto_getter, &descriptor_table_app_2fv1_2fbilling_2eproto_once, file_level_metadata_app_2fv1_2fbilling_2eproto[8]); } + // =================================================================== class GetInvoicesSummaryRequest::_Internal { public: }; -GetInvoicesSummaryRequest::GetInvoicesSummaryRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetInvoicesSummaryRequest::GetInvoicesSummaryRequest(::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.GetInvoicesSummaryRequest) } -inline PROTOBUF_NDEBUG_INLINE GetInvoicesSummaryRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : org_id_(arena, from.org_id_), - _cached_size_{0} {} - -GetInvoicesSummaryRequest::GetInvoicesSummaryRequest( - ::google::protobuf::Arena* arena, - const GetInvoicesSummaryRequest& from) - : ::google::protobuf::Message(arena) { - GetInvoicesSummaryRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetInvoicesSummaryRequest::GetInvoicesSummaryRequest(const GetInvoicesSummaryRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + org_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_org_id().empty()) { + org_id_.Set(from._internal_org_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetInvoicesSummaryRequest) } -inline PROTOBUF_NDEBUG_INLINE GetInvoicesSummaryRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : org_id_(arena), - _cached_size_{0} {} -inline void GetInvoicesSummaryRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetInvoicesSummaryRequest::SharedCtor() { +org_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + GetInvoicesSummaryRequest::~GetInvoicesSummaryRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.GetInvoicesSummaryRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetInvoicesSummaryRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.org_id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + org_id_.Destroy(); } -PROTOBUF_NOINLINE void GetInvoicesSummaryRequest::Clear() { +void GetInvoicesSummaryRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetInvoicesSummaryRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.GetInvoicesSummaryRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.org_id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetInvoicesSummaryRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + org_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetInvoicesSummaryRequest::_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 org_id = 1 [json_name = "orgId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_org_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.GetInvoicesSummaryRequest.org_id")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 52, 2> GetInvoicesSummaryRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetInvoicesSummaryRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string org_id = 1 [json_name = "orgId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetInvoicesSummaryRequest, _impl_.org_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string org_id = 1 [json_name = "orgId"]; - {PROTOBUF_FIELD_OFFSET(GetInvoicesSummaryRequest, _impl_.org_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\45\6\0\0\0\0\0\0" - "viam.app.v1.GetInvoicesSummaryRequest" - "org_id" - }}, -}; - -::uint8_t* GetInvoicesSummaryRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetInvoicesSummaryRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetInvoicesSummaryRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string org_id = 1 [json_name = "orgId"]; if (!this->_internal_org_id().empty()) { - const std::string& _s = this->_internal_org_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.GetInvoicesSummaryRequest.org_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_org_id().data(), static_cast(this->_internal_org_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.GetInvoicesSummaryRequest.org_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_org_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.GetInvoicesSummaryRequest) return target; } -::size_t GetInvoicesSummaryRequest::ByteSizeLong() const { +size_t GetInvoicesSummaryRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetInvoicesSummaryRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string org_id = 1 [json_name = "orgId"]; if (!this->_internal_org_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_org_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_org_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetInvoicesSummaryRequest::_class_data_ = { - GetInvoicesSummaryRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetInvoicesSummaryRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetInvoicesSummaryRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetInvoicesSummaryRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetInvoicesSummaryRequest::GetClassData() const { return &_class_data_; } + +void GetInvoicesSummaryRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetInvoicesSummaryRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetInvoicesSummaryRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetInvoicesSummaryRequest::MergeFrom(const GetInvoicesSummaryRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetInvoicesSummaryRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_org_id().empty()) { - _this->_internal_set_org_id(from._internal_org_id()); + _internal_set_org_id(from._internal_org_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetInvoicesSummaryRequest::CopyFrom(const GetInvoicesSummaryRequest& from) { @@ -3828,221 +3679,217 @@ void GetInvoicesSummaryRequest::CopyFrom(const GetInvoicesSummaryRequest& from) MergeFrom(from); } -PROTOBUF_NOINLINE bool GetInvoicesSummaryRequest::IsInitialized() const { +bool GetInvoicesSummaryRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetInvoicesSummaryRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetInvoicesSummaryRequest::InternalSwap(GetInvoicesSummaryRequest* PROTOBUF_RESTRICT other) { +void GetInvoicesSummaryRequest::InternalSwap(GetInvoicesSummaryRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.org_id_, &other->_impl_.org_id_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &org_id_, lhs_arena, + &other->org_id_, rhs_arena + ); } -::google::protobuf::Metadata GetInvoicesSummaryRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetInvoicesSummaryRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fbilling_2eproto_getter, &descriptor_table_app_2fv1_2fbilling_2eproto_once, file_level_metadata_app_2fv1_2fbilling_2eproto[9]); } + // =================================================================== class GetInvoicesSummaryResponse::_Internal { public: }; -GetInvoicesSummaryResponse::GetInvoicesSummaryResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetInvoicesSummaryResponse::GetInvoicesSummaryResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + invoices_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.v1.GetInvoicesSummaryResponse) } -inline PROTOBUF_NDEBUG_INLINE GetInvoicesSummaryResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : invoices_{visibility, arena, from.invoices_}, - _cached_size_{0} {} - -GetInvoicesSummaryResponse::GetInvoicesSummaryResponse( - ::google::protobuf::Arena* arena, - const GetInvoicesSummaryResponse& from) - : ::google::protobuf::Message(arena) { - GetInvoicesSummaryResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.outstanding_balance_ = from._impl_.outstanding_balance_; - +GetInvoicesSummaryResponse::GetInvoicesSummaryResponse(const GetInvoicesSummaryResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + invoices_(from.invoices_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + outstanding_balance_ = from.outstanding_balance_; // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetInvoicesSummaryResponse) } -inline PROTOBUF_NDEBUG_INLINE GetInvoicesSummaryResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : invoices_{visibility, arena}, - _cached_size_{0} {} -inline void GetInvoicesSummaryResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.outstanding_balance_ = {}; +inline void GetInvoicesSummaryResponse::SharedCtor() { +outstanding_balance_ = 0; } + GetInvoicesSummaryResponse::~GetInvoicesSummaryResponse() { // @@protoc_insertion_point(destructor:viam.app.v1.GetInvoicesSummaryResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetInvoicesSummaryResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void GetInvoicesSummaryResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetInvoicesSummaryResponse::Clear() { +void GetInvoicesSummaryResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.GetInvoicesSummaryResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.invoices_.Clear(); - _impl_.outstanding_balance_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetInvoicesSummaryResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + invoices_.Clear(); + outstanding_balance_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetInvoicesSummaryResponse::_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) { + // double outstanding_balance = 1 [json_name = "outstandingBalance"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 9)) { + outstanding_balance_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // repeated .viam.app.v1.InvoiceSummary invoices = 2 [json_name = "invoices"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_invoices(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 0, 2> GetInvoicesSummaryResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetInvoicesSummaryResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.app.v1.InvoiceSummary invoices = 2 [json_name = "invoices"]; - {::_pbi::TcParser::FastMtR1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(GetInvoicesSummaryResponse, _impl_.invoices_)}}, - // double outstanding_balance = 1 [json_name = "outstandingBalance"]; - {::_pbi::TcParser::FastF64S1, - {9, 63, 0, PROTOBUF_FIELD_OFFSET(GetInvoicesSummaryResponse, _impl_.outstanding_balance_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // double outstanding_balance = 1 [json_name = "outstandingBalance"]; - {PROTOBUF_FIELD_OFFSET(GetInvoicesSummaryResponse, _impl_.outstanding_balance_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // repeated .viam.app.v1.InvoiceSummary invoices = 2 [json_name = "invoices"]; - {PROTOBUF_FIELD_OFFSET(GetInvoicesSummaryResponse, _impl_.invoices_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::InvoiceSummary>()}, - }}, {{ - }}, -}; - -::uint8_t* GetInvoicesSummaryResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetInvoicesSummaryResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetInvoicesSummaryResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // double outstanding_balance = 1 [json_name = "outstandingBalance"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_outstanding_balance = this->_internal_outstanding_balance(); - ::uint64_t raw_outstanding_balance; + uint64_t raw_outstanding_balance; memcpy(&raw_outstanding_balance, &tmp_outstanding_balance, sizeof(tmp_outstanding_balance)); if (raw_outstanding_balance != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 1, this->_internal_outstanding_balance(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(1, this->_internal_outstanding_balance(), target); } // repeated .viam.app.v1.InvoiceSummary invoices = 2 [json_name = "invoices"]; for (unsigned i = 0, n = static_cast(this->_internal_invoices_size()); i < n; i++) { - const auto& repfield = this->_internal_invoices().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_invoices(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.GetInvoicesSummaryResponse) return target; } -::size_t GetInvoicesSummaryResponse::ByteSizeLong() const { +size_t GetInvoicesSummaryResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetInvoicesSummaryResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.app.v1.InvoiceSummary invoices = 2 [json_name = "invoices"]; total_size += 1UL * this->_internal_invoices_size(); - for (const auto& msg : this->_internal_invoices()) { + for (const auto& msg : this->invoices_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // double outstanding_balance = 1 [json_name = "outstandingBalance"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_outstanding_balance = this->_internal_outstanding_balance(); - ::uint64_t raw_outstanding_balance; + uint64_t raw_outstanding_balance; memcpy(&raw_outstanding_balance, &tmp_outstanding_balance, sizeof(tmp_outstanding_balance)); if (raw_outstanding_balance != 0) { - total_size += 9; + total_size += 1 + 8; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetInvoicesSummaryResponse::_class_data_ = { - GetInvoicesSummaryResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetInvoicesSummaryResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetInvoicesSummaryResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetInvoicesSummaryResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetInvoicesSummaryResponse::GetClassData() const { return &_class_data_; } + +void GetInvoicesSummaryResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetInvoicesSummaryResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetInvoicesSummaryResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetInvoicesSummaryResponse::MergeFrom(const GetInvoicesSummaryResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetInvoicesSummaryResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_invoices()->MergeFrom( - from._internal_invoices()); - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + invoices_.MergeFrom(from.invoices_); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_outstanding_balance = from._internal_outstanding_balance(); - ::uint64_t raw_outstanding_balance; + uint64_t raw_outstanding_balance; memcpy(&raw_outstanding_balance, &tmp_outstanding_balance, sizeof(tmp_outstanding_balance)); if (raw_outstanding_balance != 0) { - _this->_internal_set_outstanding_balance(from._internal_outstanding_balance()); + _internal_set_outstanding_balance(from._internal_outstanding_balance()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetInvoicesSummaryResponse::CopyFrom(const GetInvoicesSummaryResponse& from) { @@ -4052,214 +3899,232 @@ void GetInvoicesSummaryResponse::CopyFrom(const GetInvoicesSummaryResponse& from MergeFrom(from); } -PROTOBUF_NOINLINE bool GetInvoicesSummaryResponse::IsInitialized() const { +bool GetInvoicesSummaryResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetInvoicesSummaryResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetInvoicesSummaryResponse::InternalSwap(GetInvoicesSummaryResponse* PROTOBUF_RESTRICT other) { +void GetInvoicesSummaryResponse::InternalSwap(GetInvoicesSummaryResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.invoices_.InternalSwap(&other->_impl_.invoices_); - swap(_impl_.outstanding_balance_, other->_impl_.outstanding_balance_); + invoices_.InternalSwap(&other->invoices_); + swap(outstanding_balance_, other->outstanding_balance_); } -::google::protobuf::Metadata GetInvoicesSummaryResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetInvoicesSummaryResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fbilling_2eproto_getter, &descriptor_table_app_2fv1_2fbilling_2eproto_once, file_level_metadata_app_2fv1_2fbilling_2eproto[10]); } + // =================================================================== class GetInvoicePdfRequest::_Internal { public: }; -GetInvoicePdfRequest::GetInvoicePdfRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetInvoicePdfRequest::GetInvoicePdfRequest(::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.GetInvoicePdfRequest) } -inline PROTOBUF_NDEBUG_INLINE GetInvoicePdfRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : id_(arena, from.id_), - org_id_(arena, from.org_id_), - _cached_size_{0} {} - -GetInvoicePdfRequest::GetInvoicePdfRequest( - ::google::protobuf::Arena* arena, - const GetInvoicePdfRequest& from) - : ::google::protobuf::Message(arena) { - GetInvoicePdfRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetInvoicePdfRequest::GetInvoicePdfRequest(const GetInvoicePdfRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } + org_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_org_id().empty()) { + org_id_.Set(from._internal_org_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetInvoicePdfRequest) } -inline PROTOBUF_NDEBUG_INLINE GetInvoicePdfRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : id_(arena), - org_id_(arena), - _cached_size_{0} {} -inline void GetInvoicePdfRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetInvoicePdfRequest::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +org_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + GetInvoicePdfRequest::~GetInvoicePdfRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.GetInvoicePdfRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetInvoicePdfRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.org_id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); + org_id_.Destroy(); } -PROTOBUF_NOINLINE void GetInvoicePdfRequest::Clear() { +void GetInvoicePdfRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetInvoicePdfRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.GetInvoicePdfRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.id_.ClearToEmpty(); - _impl_.org_id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetInvoicePdfRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + id_.ClearToEmpty(); + org_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetInvoicePdfRequest::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.GetInvoicePdfRequest.id")); + } else + goto handle_unusual; + continue; + // string org_id = 2 [json_name = "orgId"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_org_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.GetInvoicePdfRequest.org_id")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 49, 2> GetInvoicePdfRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetInvoicePdfRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string org_id = 2 [json_name = "orgId"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(GetInvoicePdfRequest, _impl_.org_id_)}}, - // string id = 1 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetInvoicePdfRequest, _impl_.id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(GetInvoicePdfRequest, _impl_.id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string org_id = 2 [json_name = "orgId"]; - {PROTOBUF_FIELD_OFFSET(GetInvoicePdfRequest, _impl_.org_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\40\2\6\0\0\0\0\0" - "viam.app.v1.GetInvoicePdfRequest" - "id" - "org_id" - }}, -}; - -::uint8_t* GetInvoicePdfRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetInvoicePdfRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetInvoicePdfRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.GetInvoicePdfRequest.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.GetInvoicePdfRequest.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); } // string org_id = 2 [json_name = "orgId"]; if (!this->_internal_org_id().empty()) { - const std::string& _s = this->_internal_org_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.GetInvoicePdfRequest.org_id"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_org_id().data(), static_cast(this->_internal_org_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.GetInvoicePdfRequest.org_id"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_org_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.GetInvoicePdfRequest) return target; } -::size_t GetInvoicePdfRequest::ByteSizeLong() const { +size_t GetInvoicePdfRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetInvoicePdfRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } // string org_id = 2 [json_name = "orgId"]; if (!this->_internal_org_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_org_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_org_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetInvoicePdfRequest::_class_data_ = { - GetInvoicePdfRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetInvoicePdfRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetInvoicePdfRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetInvoicePdfRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetInvoicePdfRequest::GetClassData() const { return &_class_data_; } + +void GetInvoicePdfRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetInvoicePdfRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetInvoicePdfRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetInvoicePdfRequest::MergeFrom(const GetInvoicePdfRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetInvoicePdfRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } if (!from._internal_org_id().empty()) { - _this->_internal_set_org_id(from._internal_org_id()); + _internal_set_org_id(from._internal_org_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetInvoicePdfRequest::CopyFrom(const GetInvoicePdfRequest& from) { @@ -4269,183 +4134,191 @@ void GetInvoicePdfRequest::CopyFrom(const GetInvoicePdfRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetInvoicePdfRequest::IsInitialized() const { +bool GetInvoicePdfRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetInvoicePdfRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetInvoicePdfRequest::InternalSwap(GetInvoicePdfRequest* PROTOBUF_RESTRICT other) { +void GetInvoicePdfRequest::InternalSwap(GetInvoicePdfRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.org_id_, &other->_impl_.org_id_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &org_id_, lhs_arena, + &other->org_id_, rhs_arena + ); } -::google::protobuf::Metadata GetInvoicePdfRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetInvoicePdfRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fbilling_2eproto_getter, &descriptor_table_app_2fv1_2fbilling_2eproto_once, file_level_metadata_app_2fv1_2fbilling_2eproto[11]); } + // =================================================================== class GetInvoicePdfResponse::_Internal { public: }; -GetInvoicePdfResponse::GetInvoicePdfResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetInvoicePdfResponse::GetInvoicePdfResponse(::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.GetInvoicePdfResponse) } -inline PROTOBUF_NDEBUG_INLINE GetInvoicePdfResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : chunk_(arena, from.chunk_), - _cached_size_{0} {} - -GetInvoicePdfResponse::GetInvoicePdfResponse( - ::google::protobuf::Arena* arena, - const GetInvoicePdfResponse& from) - : ::google::protobuf::Message(arena) { - GetInvoicePdfResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetInvoicePdfResponse::GetInvoicePdfResponse(const GetInvoicePdfResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + chunk_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + chunk_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_chunk().empty()) { + chunk_.Set(from._internal_chunk(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetInvoicePdfResponse) } -inline PROTOBUF_NDEBUG_INLINE GetInvoicePdfResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : chunk_(arena), - _cached_size_{0} {} -inline void GetInvoicePdfResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetInvoicePdfResponse::SharedCtor() { +chunk_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + chunk_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + GetInvoicePdfResponse::~GetInvoicePdfResponse() { // @@protoc_insertion_point(destructor:viam.app.v1.GetInvoicePdfResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetInvoicePdfResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.chunk_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + chunk_.Destroy(); +} + +void GetInvoicePdfResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetInvoicePdfResponse::Clear() { +void GetInvoicePdfResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.GetInvoicePdfResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.chunk_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetInvoicePdfResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + chunk_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetInvoicePdfResponse::_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) { + // bytes chunk = 1 [json_name = "chunk"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_chunk(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> GetInvoicePdfResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetInvoicePdfResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // bytes chunk = 1 [json_name = "chunk"]; - {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetInvoicePdfResponse, _impl_.chunk_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bytes chunk = 1 [json_name = "chunk"]; - {PROTOBUF_FIELD_OFFSET(GetInvoicePdfResponse, _impl_.chunk_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* GetInvoicePdfResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetInvoicePdfResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetInvoicePdfResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // bytes chunk = 1 [json_name = "chunk"]; if (!this->_internal_chunk().empty()) { - const std::string& _s = this->_internal_chunk(); - target = stream->WriteBytesMaybeAliased(1, _s, target); + target = stream->WriteBytesMaybeAliased( + 1, this->_internal_chunk(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.GetInvoicePdfResponse) return target; } -::size_t GetInvoicePdfResponse::ByteSizeLong() const { +size_t GetInvoicePdfResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetInvoicePdfResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // bytes chunk = 1 [json_name = "chunk"]; if (!this->_internal_chunk().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_chunk()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_chunk()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetInvoicePdfResponse::_class_data_ = { - GetInvoicePdfResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetInvoicePdfResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetInvoicePdfResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetInvoicePdfResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetInvoicePdfResponse::GetClassData() const { return &_class_data_; } + +void GetInvoicePdfResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetInvoicePdfResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetInvoicePdfResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetInvoicePdfResponse::MergeFrom(const GetInvoicePdfResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetInvoicePdfResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_chunk().empty()) { - _this->_internal_set_chunk(from._internal_chunk()); + _internal_set_chunk(from._internal_chunk()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetInvoicePdfResponse::CopyFrom(const GetInvoicePdfResponse& from) { @@ -4455,215 +4328,236 @@ void GetInvoicePdfResponse::CopyFrom(const GetInvoicePdfResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetInvoicePdfResponse::IsInitialized() const { +bool GetInvoicePdfResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetInvoicePdfResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetInvoicePdfResponse::InternalSwap(GetInvoicePdfResponse* PROTOBUF_RESTRICT other) { +void GetInvoicePdfResponse::InternalSwap(GetInvoicePdfResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.chunk_, &other->_impl_.chunk_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &chunk_, lhs_arena, + &other->chunk_, rhs_arena + ); } -::google::protobuf::Metadata GetInvoicePdfResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetInvoicePdfResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fbilling_2eproto_getter, &descriptor_table_app_2fv1_2fbilling_2eproto_once, file_level_metadata_app_2fv1_2fbilling_2eproto[12]); } + // =================================================================== class SendPaymentRequiredEmailRequest::_Internal { public: }; -SendPaymentRequiredEmailRequest::SendPaymentRequiredEmailRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +SendPaymentRequiredEmailRequest::SendPaymentRequiredEmailRequest(::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.SendPaymentRequiredEmailRequest) } -inline PROTOBUF_NDEBUG_INLINE SendPaymentRequiredEmailRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : customer_org_id_(arena, from.customer_org_id_), - billing_owner_org_id_(arena, from.billing_owner_org_id_), - _cached_size_{0} {} - -SendPaymentRequiredEmailRequest::SendPaymentRequiredEmailRequest( - ::google::protobuf::Arena* arena, - const SendPaymentRequiredEmailRequest& from) - : ::google::protobuf::Message(arena) { - SendPaymentRequiredEmailRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +SendPaymentRequiredEmailRequest::SendPaymentRequiredEmailRequest(const SendPaymentRequiredEmailRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + customer_org_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + customer_org_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_customer_org_id().empty()) { + customer_org_id_.Set(from._internal_customer_org_id(), + GetArenaForAllocation()); + } + billing_owner_org_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + billing_owner_org_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_billing_owner_org_id().empty()) { + billing_owner_org_id_.Set(from._internal_billing_owner_org_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.SendPaymentRequiredEmailRequest) } -inline PROTOBUF_NDEBUG_INLINE SendPaymentRequiredEmailRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : customer_org_id_(arena), - billing_owner_org_id_(arena), - _cached_size_{0} {} -inline void SendPaymentRequiredEmailRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void SendPaymentRequiredEmailRequest::SharedCtor() { +customer_org_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + customer_org_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +billing_owner_org_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + billing_owner_org_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + SendPaymentRequiredEmailRequest::~SendPaymentRequiredEmailRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.SendPaymentRequiredEmailRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void SendPaymentRequiredEmailRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.customer_org_id_.Destroy(); - _impl_.billing_owner_org_id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + customer_org_id_.Destroy(); + billing_owner_org_id_.Destroy(); +} + +void SendPaymentRequiredEmailRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void SendPaymentRequiredEmailRequest::Clear() { +void SendPaymentRequiredEmailRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.SendPaymentRequiredEmailRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.customer_org_id_.ClearToEmpty(); - _impl_.billing_owner_org_id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SendPaymentRequiredEmailRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + customer_org_id_.ClearToEmpty(); + billing_owner_org_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SendPaymentRequiredEmailRequest::_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 customer_org_id = 1 [json_name = "customerOrgId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_customer_org_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.SendPaymentRequiredEmailRequest.customer_org_id")); + } else + goto handle_unusual; + continue; + // string billing_owner_org_id = 2 [json_name = "billingOwnerOrgId"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_billing_owner_org_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.SendPaymentRequiredEmailRequest.billing_owner_org_id")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 87, 2> SendPaymentRequiredEmailRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_SendPaymentRequiredEmailRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string billing_owner_org_id = 2 [json_name = "billingOwnerOrgId"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(SendPaymentRequiredEmailRequest, _impl_.billing_owner_org_id_)}}, - // string customer_org_id = 1 [json_name = "customerOrgId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(SendPaymentRequiredEmailRequest, _impl_.customer_org_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string customer_org_id = 1 [json_name = "customerOrgId"]; - {PROTOBUF_FIELD_OFFSET(SendPaymentRequiredEmailRequest, _impl_.customer_org_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string billing_owner_org_id = 2 [json_name = "billingOwnerOrgId"]; - {PROTOBUF_FIELD_OFFSET(SendPaymentRequiredEmailRequest, _impl_.billing_owner_org_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\53\17\24\0\0\0\0\0" - "viam.app.v1.SendPaymentRequiredEmailRequest" - "customer_org_id" - "billing_owner_org_id" - }}, -}; - -::uint8_t* SendPaymentRequiredEmailRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* SendPaymentRequiredEmailRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.SendPaymentRequiredEmailRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string customer_org_id = 1 [json_name = "customerOrgId"]; if (!this->_internal_customer_org_id().empty()) { - const std::string& _s = this->_internal_customer_org_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.SendPaymentRequiredEmailRequest.customer_org_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_customer_org_id().data(), static_cast(this->_internal_customer_org_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.SendPaymentRequiredEmailRequest.customer_org_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_customer_org_id(), target); } // string billing_owner_org_id = 2 [json_name = "billingOwnerOrgId"]; if (!this->_internal_billing_owner_org_id().empty()) { - const std::string& _s = this->_internal_billing_owner_org_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.SendPaymentRequiredEmailRequest.billing_owner_org_id"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_billing_owner_org_id().data(), static_cast(this->_internal_billing_owner_org_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.SendPaymentRequiredEmailRequest.billing_owner_org_id"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_billing_owner_org_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.SendPaymentRequiredEmailRequest) return target; } -::size_t SendPaymentRequiredEmailRequest::ByteSizeLong() const { +size_t SendPaymentRequiredEmailRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.SendPaymentRequiredEmailRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string customer_org_id = 1 [json_name = "customerOrgId"]; if (!this->_internal_customer_org_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_customer_org_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_customer_org_id()); } // string billing_owner_org_id = 2 [json_name = "billingOwnerOrgId"]; if (!this->_internal_billing_owner_org_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_billing_owner_org_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_billing_owner_org_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData SendPaymentRequiredEmailRequest::_class_data_ = { - SendPaymentRequiredEmailRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SendPaymentRequiredEmailRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + SendPaymentRequiredEmailRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* SendPaymentRequiredEmailRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SendPaymentRequiredEmailRequest::GetClassData() const { return &_class_data_; } + +void SendPaymentRequiredEmailRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void SendPaymentRequiredEmailRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.SendPaymentRequiredEmailRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void SendPaymentRequiredEmailRequest::MergeFrom(const SendPaymentRequiredEmailRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.SendPaymentRequiredEmailRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_customer_org_id().empty()) { - _this->_internal_set_customer_org_id(from._internal_customer_org_id()); + _internal_set_customer_org_id(from._internal_customer_org_id()); } if (!from._internal_billing_owner_org_id().empty()) { - _this->_internal_set_billing_owner_org_id(from._internal_billing_owner_org_id()); + _internal_set_billing_owner_org_id(from._internal_billing_owner_org_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SendPaymentRequiredEmailRequest::CopyFrom(const SendPaymentRequiredEmailRequest& from) { @@ -4673,46 +4567,45 @@ void SendPaymentRequiredEmailRequest::CopyFrom(const SendPaymentRequiredEmailReq MergeFrom(from); } -PROTOBUF_NOINLINE bool SendPaymentRequiredEmailRequest::IsInitialized() const { +bool SendPaymentRequiredEmailRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* SendPaymentRequiredEmailRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void SendPaymentRequiredEmailRequest::InternalSwap(SendPaymentRequiredEmailRequest* PROTOBUF_RESTRICT other) { +void SendPaymentRequiredEmailRequest::InternalSwap(SendPaymentRequiredEmailRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.customer_org_id_, &other->_impl_.customer_org_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.billing_owner_org_id_, &other->_impl_.billing_owner_org_id_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &customer_org_id_, lhs_arena, + &other->customer_org_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &billing_owner_org_id_, lhs_arena, + &other->billing_owner_org_id_, rhs_arena + ); } -::google::protobuf::Metadata SendPaymentRequiredEmailRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata SendPaymentRequiredEmailRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fbilling_2eproto_getter, &descriptor_table_app_2fv1_2fbilling_2eproto_once, file_level_metadata_app_2fv1_2fbilling_2eproto[13]); } + // =================================================================== class SendPaymentRequiredEmailResponse::_Internal { public: }; -SendPaymentRequiredEmailResponse::SendPaymentRequiredEmailResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +SendPaymentRequiredEmailResponse::SendPaymentRequiredEmailResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.app.v1.SendPaymentRequiredEmailResponse) } -SendPaymentRequiredEmailResponse::SendPaymentRequiredEmailResponse( - ::google::protobuf::Arena* arena, - const SendPaymentRequiredEmailResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - SendPaymentRequiredEmailResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +SendPaymentRequiredEmailResponse::SendPaymentRequiredEmailResponse(const SendPaymentRequiredEmailResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.app.v1.SendPaymentRequiredEmailResponse) } @@ -4720,22 +4613,90 @@ SendPaymentRequiredEmailResponse::SendPaymentRequiredEmailResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SendPaymentRequiredEmailResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SendPaymentRequiredEmailResponse::GetClassData() const { return &_class_data_; } + + -::google::protobuf::Metadata SendPaymentRequiredEmailResponse::GetMetadata() const { + +::PROTOBUF_NAMESPACE_ID::Metadata SendPaymentRequiredEmailResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fbilling_2eproto_getter, &descriptor_table_app_2fv1_2fbilling_2eproto_once, file_level_metadata_app_2fv1_2fbilling_2eproto[14]); } + // @@protoc_insertion_point(namespace_scope) } // namespace v1 } // namespace app } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::app::v1::InvoiceSummary* +Arena::CreateMaybeMessage< ::viam::app::v1::InvoiceSummary >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::InvoiceSummary >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::PaymentMethodCard* +Arena::CreateMaybeMessage< ::viam::app::v1::PaymentMethodCard >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::PaymentMethodCard >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::GetCurrentMonthUsageRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::GetCurrentMonthUsageRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::GetCurrentMonthUsageRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::UsageCost* +Arena::CreateMaybeMessage< ::viam::app::v1::UsageCost >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::UsageCost >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::ResourceUsageCostsBySource* +Arena::CreateMaybeMessage< ::viam::app::v1::ResourceUsageCostsBySource >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::ResourceUsageCostsBySource >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::ResourceUsageCosts* +Arena::CreateMaybeMessage< ::viam::app::v1::ResourceUsageCosts >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::ResourceUsageCosts >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::GetCurrentMonthUsageResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::GetCurrentMonthUsageResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::GetCurrentMonthUsageResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::GetOrgBillingInformationRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::GetOrgBillingInformationRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::GetOrgBillingInformationRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::GetOrgBillingInformationResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::GetOrgBillingInformationResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::GetOrgBillingInformationResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::GetInvoicesSummaryRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::GetInvoicesSummaryRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::GetInvoicesSummaryRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::GetInvoicesSummaryResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::GetInvoicesSummaryResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::GetInvoicesSummaryResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::GetInvoicePdfRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::GetInvoicePdfRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::GetInvoicePdfRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::GetInvoicePdfResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::GetInvoicePdfResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::GetInvoicePdfResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::SendPaymentRequiredEmailRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::SendPaymentRequiredEmailRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::SendPaymentRequiredEmailRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::SendPaymentRequiredEmailResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::SendPaymentRequiredEmailResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::SendPaymentRequiredEmailResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/app/v1/billing.pb.h b/src/viam/api/app/v1/billing.pb.h index 192c43ee5..38c8af92b 100644 --- a/src/viam/api/app/v1/billing.pb.h +++ b/src/viam/api/app/v1/billing.pb.h @@ -1,63 +1,52 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: app/v1/billing.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_app_2fv1_2fbilling_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_app_2fv1_2fbilling_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_app_2fv1_2fbilling_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_app_2fv1_2fbilling_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_bases.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/generated_enum_reflection.h" -#include "google/protobuf/unknown_field_set.h" -#include "google/protobuf/timestamp.pb.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include +// @@protoc_insertion_point(includes) +#include #define PROTOBUF_INTERNAL_EXPORT_app_2fv1_2fbilling_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_app_2fv1_2fbilling_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_app_2fv1_2fbilling_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_app_2fv1_2fbilling_2eproto; namespace viam { namespace app { namespace v1 { @@ -109,151 +98,147 @@ extern UsageCostDefaultTypeInternal _UsageCost_default_instance_; } // namespace v1 } // namespace app } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::app::v1::GetCurrentMonthUsageRequest* Arena::CreateMaybeMessage<::viam::app::v1::GetCurrentMonthUsageRequest>(Arena*); +template<> ::viam::app::v1::GetCurrentMonthUsageResponse* Arena::CreateMaybeMessage<::viam::app::v1::GetCurrentMonthUsageResponse>(Arena*); +template<> ::viam::app::v1::GetInvoicePdfRequest* Arena::CreateMaybeMessage<::viam::app::v1::GetInvoicePdfRequest>(Arena*); +template<> ::viam::app::v1::GetInvoicePdfResponse* Arena::CreateMaybeMessage<::viam::app::v1::GetInvoicePdfResponse>(Arena*); +template<> ::viam::app::v1::GetInvoicesSummaryRequest* Arena::CreateMaybeMessage<::viam::app::v1::GetInvoicesSummaryRequest>(Arena*); +template<> ::viam::app::v1::GetInvoicesSummaryResponse* Arena::CreateMaybeMessage<::viam::app::v1::GetInvoicesSummaryResponse>(Arena*); +template<> ::viam::app::v1::GetOrgBillingInformationRequest* Arena::CreateMaybeMessage<::viam::app::v1::GetOrgBillingInformationRequest>(Arena*); +template<> ::viam::app::v1::GetOrgBillingInformationResponse* Arena::CreateMaybeMessage<::viam::app::v1::GetOrgBillingInformationResponse>(Arena*); +template<> ::viam::app::v1::InvoiceSummary* Arena::CreateMaybeMessage<::viam::app::v1::InvoiceSummary>(Arena*); +template<> ::viam::app::v1::PaymentMethodCard* Arena::CreateMaybeMessage<::viam::app::v1::PaymentMethodCard>(Arena*); +template<> ::viam::app::v1::ResourceUsageCosts* Arena::CreateMaybeMessage<::viam::app::v1::ResourceUsageCosts>(Arena*); +template<> ::viam::app::v1::ResourceUsageCostsBySource* Arena::CreateMaybeMessage<::viam::app::v1::ResourceUsageCostsBySource>(Arena*); +template<> ::viam::app::v1::SendPaymentRequiredEmailRequest* Arena::CreateMaybeMessage<::viam::app::v1::SendPaymentRequiredEmailRequest>(Arena*); +template<> ::viam::app::v1::SendPaymentRequiredEmailResponse* Arena::CreateMaybeMessage<::viam::app::v1::SendPaymentRequiredEmailResponse>(Arena*); +template<> ::viam::app::v1::UsageCost* Arena::CreateMaybeMessage<::viam::app::v1::UsageCost>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace viam { namespace app { namespace v1 { + enum PaymentMethodType : int { PAYMENT_METHOD_TYPE_UNSPECIFIED = 0, PAYMENT_METHOD_TYPE_CARD = 1, - PaymentMethodType_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - PaymentMethodType_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), + PaymentMethodType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + PaymentMethodType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() }; - bool PaymentMethodType_IsValid(int value); -extern const uint32_t PaymentMethodType_internal_data_[]; -constexpr PaymentMethodType PaymentMethodType_MIN = static_cast(0); -constexpr PaymentMethodType PaymentMethodType_MAX = static_cast(1); -constexpr int PaymentMethodType_ARRAYSIZE = 1 + 1; -const ::google::protobuf::EnumDescriptor* -PaymentMethodType_descriptor(); -template -const std::string& PaymentMethodType_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to PaymentMethodType_Name()."); - return PaymentMethodType_Name(static_cast(value)); -} -template <> -inline const std::string& PaymentMethodType_Name(PaymentMethodType value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool PaymentMethodType_Parse(absl::string_view name, PaymentMethodType* value) { - return ::google::protobuf::internal::ParseNamedEnum( - PaymentMethodType_descriptor(), name, value); +constexpr PaymentMethodType PaymentMethodType_MIN = PAYMENT_METHOD_TYPE_UNSPECIFIED; +constexpr PaymentMethodType PaymentMethodType_MAX = PAYMENT_METHOD_TYPE_CARD; +constexpr int PaymentMethodType_ARRAYSIZE = PaymentMethodType_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PaymentMethodType_descriptor(); +template +inline const std::string& PaymentMethodType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function PaymentMethodType_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + PaymentMethodType_descriptor(), enum_t_value); +} +inline bool PaymentMethodType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PaymentMethodType* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + PaymentMethodType_descriptor(), name, value); } enum UsageCostType : int { USAGE_COST_TYPE_UNSPECIFIED = 0, - USAGE_COST_TYPE_DATA_UPLOAD = 1, - USAGE_COST_TYPE_DATA_EGRESS = 2, + USAGE_COST_TYPE_DATA_UPLOAD PROTOBUF_DEPRECATED_ENUM = 1, + USAGE_COST_TYPE_DATA_EGRESS PROTOBUF_DEPRECATED_ENUM = 2, USAGE_COST_TYPE_REMOTE_CONTROL = 3, USAGE_COST_TYPE_STANDARD_COMPUTE = 4, - USAGE_COST_TYPE_CLOUD_STORAGE = 5, + USAGE_COST_TYPE_CLOUD_STORAGE PROTOBUF_DEPRECATED_ENUM = 5, USAGE_COST_TYPE_BINARY_DATA_CLOUD_STORAGE = 6, - USAGE_COST_TYPE_OTHER_CLOUD_STORAGE = 7, + USAGE_COST_TYPE_OTHER_CLOUD_STORAGE PROTOBUF_DEPRECATED_ENUM = 7, USAGE_COST_TYPE_PER_MACHINE = 8, - UsageCostType_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - UsageCostType_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), + USAGE_COST_TYPE_TRIGGER_NOTIFICATION = 9, + USAGE_COST_TYPE_TABULAR_DATA_CLOUD_STORAGE = 10, + USAGE_COST_TYPE_CONFIG_HISTORY_CLOUD_STORAGE = 11, + USAGE_COST_TYPE_LOGS_CLOUD_STORAGE = 12, + USAGE_COST_TYPE_TRAINING_LOGS_CLOUD_STORAGE = 13, + USAGE_COST_TYPE_PACKAGES_CLOUD_STORAGE = 14, + USAGE_COST_TYPE_BINARY_DATA_UPLOAD = 15, + USAGE_COST_TYPE_TABULAR_DATA_UPLOAD = 16, + USAGE_COST_TYPE_LOGS_UPLOAD = 17, + USAGE_COST_TYPE_BINARY_DATA_EGRESS = 18, + USAGE_COST_TYPE_TABULAR_DATA_EGRESS = 19, + USAGE_COST_TYPE_LOGS_EGRESS = 20, + USAGE_COST_TYPE_TRAINING_LOGS_EGRESS = 21, + UsageCostType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + UsageCostType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() }; - bool UsageCostType_IsValid(int value); -extern const uint32_t UsageCostType_internal_data_[]; -constexpr UsageCostType UsageCostType_MIN = static_cast(0); -constexpr UsageCostType UsageCostType_MAX = static_cast(8); -constexpr int UsageCostType_ARRAYSIZE = 8 + 1; -const ::google::protobuf::EnumDescriptor* -UsageCostType_descriptor(); -template -const std::string& UsageCostType_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to UsageCostType_Name()."); - return UsageCostType_Name(static_cast(value)); -} -template <> -inline const std::string& UsageCostType_Name(UsageCostType value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool UsageCostType_Parse(absl::string_view name, UsageCostType* value) { - return ::google::protobuf::internal::ParseNamedEnum( - UsageCostType_descriptor(), name, value); +constexpr UsageCostType UsageCostType_MIN = USAGE_COST_TYPE_UNSPECIFIED; +constexpr UsageCostType UsageCostType_MAX = USAGE_COST_TYPE_TRAINING_LOGS_EGRESS; +constexpr int UsageCostType_ARRAYSIZE = UsageCostType_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* UsageCostType_descriptor(); +template +inline const std::string& UsageCostType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function UsageCostType_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + UsageCostType_descriptor(), enum_t_value); +} +inline bool UsageCostType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, UsageCostType* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + UsageCostType_descriptor(), name, value); } enum SourceType : int { SOURCE_TYPE_UNSPECIFIED = 0, SOURCE_TYPE_ORG = 1, SOURCE_TYPE_FRAGMENT = 2, - SourceType_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - SourceType_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), + SourceType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + SourceType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() }; - bool SourceType_IsValid(int value); -extern const uint32_t SourceType_internal_data_[]; -constexpr SourceType SourceType_MIN = static_cast(0); -constexpr SourceType SourceType_MAX = static_cast(2); -constexpr int SourceType_ARRAYSIZE = 2 + 1; -const ::google::protobuf::EnumDescriptor* -SourceType_descriptor(); -template -const std::string& SourceType_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to SourceType_Name()."); - return SourceType_Name(static_cast(value)); -} -template <> -inline const std::string& SourceType_Name(SourceType value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool SourceType_Parse(absl::string_view name, SourceType* value) { - return ::google::protobuf::internal::ParseNamedEnum( - SourceType_descriptor(), name, value); +constexpr SourceType SourceType_MIN = SOURCE_TYPE_UNSPECIFIED; +constexpr SourceType SourceType_MAX = SOURCE_TYPE_FRAGMENT; +constexpr int SourceType_ARRAYSIZE = SourceType_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SourceType_descriptor(); +template +inline const std::string& SourceType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function SourceType_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + SourceType_descriptor(), enum_t_value); +} +inline bool SourceType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SourceType* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + SourceType_descriptor(), name, value); } - // =================================================================== - -// ------------------------------------------------------------------- - -class UsageCost final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.UsageCost) */ { +class InvoiceSummary final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.InvoiceSummary) */ { public: - inline UsageCost() : UsageCost(nullptr) {} - ~UsageCost() override; - template - explicit PROTOBUF_CONSTEXPR UsageCost(::google::protobuf::internal::ConstantInitialized); + inline InvoiceSummary() : InvoiceSummary(nullptr) {} + ~InvoiceSummary() override; + explicit PROTOBUF_CONSTEXPR InvoiceSummary(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline UsageCost(const UsageCost& from) - : UsageCost(nullptr, from) {} - UsageCost(UsageCost&& from) noexcept - : UsageCost() { + InvoiceSummary(const InvoiceSummary& from); + InvoiceSummary(InvoiceSummary&& from) noexcept + : InvoiceSummary() { *this = ::std::move(from); } - inline UsageCost& operator=(const UsageCost& from) { + inline InvoiceSummary& operator=(const InvoiceSummary& from) { CopyFrom(from); return *this; } - inline UsageCost& operator=(UsageCost&& from) noexcept { + inline InvoiceSummary& operator=(InvoiceSummary&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -263,183 +248,232 @@ class UsageCost final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const UsageCost& default_instance() { + static const InvoiceSummary& default_instance() { return *internal_default_instance(); } - static inline const UsageCost* internal_default_instance() { - return reinterpret_cast( - &_UsageCost_default_instance_); + static inline const InvoiceSummary* internal_default_instance() { + return reinterpret_cast( + &_InvoiceSummary_default_instance_); } static constexpr int kIndexInFileMessages = - 3; + 0; - friend void swap(UsageCost& a, UsageCost& b) { + friend void swap(InvoiceSummary& a, InvoiceSummary& b) { a.Swap(&b); } - inline void Swap(UsageCost* other) { + inline void Swap(InvoiceSummary* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(UsageCost* other) { + void UnsafeArenaSwap(InvoiceSummary* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - UsageCost* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const UsageCost& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const UsageCost& from) { - UsageCost::MergeImpl(*this, from); + InvoiceSummary* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const InvoiceSummary& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const InvoiceSummary& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(UsageCost* other); + void SetCachedSize(int size) const final; + void InternalSwap(InvoiceSummary* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.UsageCost"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.InvoiceSummary"; } protected: - explicit UsageCost(::google::protobuf::Arena* arena); - UsageCost(::google::protobuf::Arena* arena, const UsageCost& from); + explicit InvoiceSummary(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kCostFieldNumber = 2, - kResourceTypeFieldNumber = 1, + kIdFieldNumber = 1, + kStatusFieldNumber = 4, + kInvoiceDateFieldNumber = 2, + kDueDateFieldNumber = 5, + kPaidDateFieldNumber = 6, + kInvoiceAmountFieldNumber = 3, }; - // double cost = 2 [json_name = "cost"]; - void clear_cost() ; - double cost() const; - void set_cost(double value); + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + // string status = 4 [json_name = "status"]; + void clear_status(); + const std::string& status() const; + template + void set_status(ArgT0&& arg0, ArgT... args); + std::string* mutable_status(); + PROTOBUF_NODISCARD std::string* release_status(); + void set_allocated_status(std::string* status); private: - double _internal_cost() const; - void _internal_set_cost(double value); + const std::string& _internal_status() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_status(const std::string& value); + std::string* _internal_mutable_status(); + public: + // .google.protobuf.Timestamp invoice_date = 2 [json_name = "invoiceDate"]; + bool has_invoice_date() const; + private: + bool _internal_has_invoice_date() const; public: - // .viam.app.v1.UsageCostType resource_type = 1 [json_name = "resourceType"]; - void clear_resource_type() ; - ::viam::app::v1::UsageCostType resource_type() const; - void set_resource_type(::viam::app::v1::UsageCostType value); + void clear_invoice_date(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& invoice_date() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_invoice_date(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_invoice_date(); + void set_allocated_invoice_date(::PROTOBUF_NAMESPACE_ID::Timestamp* invoice_date); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_invoice_date() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_invoice_date(); + public: + void unsafe_arena_set_allocated_invoice_date( + ::PROTOBUF_NAMESPACE_ID::Timestamp* invoice_date); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_invoice_date(); + // .google.protobuf.Timestamp due_date = 5 [json_name = "dueDate"]; + bool has_due_date() const; private: - ::viam::app::v1::UsageCostType _internal_resource_type() const; - void _internal_set_resource_type(::viam::app::v1::UsageCostType value); + bool _internal_has_due_date() const; + public: + void clear_due_date(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& due_date() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_due_date(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_due_date(); + void set_allocated_due_date(::PROTOBUF_NAMESPACE_ID::Timestamp* due_date); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_due_date() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_due_date(); + public: + void unsafe_arena_set_allocated_due_date( + ::PROTOBUF_NAMESPACE_ID::Timestamp* due_date); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_due_date(); + // .google.protobuf.Timestamp paid_date = 6 [json_name = "paidDate"]; + bool has_paid_date() const; + private: + bool _internal_has_paid_date() const; public: - // @@protoc_insertion_point(class_scope:viam.app.v1.UsageCost) + void clear_paid_date(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& paid_date() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_paid_date(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_paid_date(); + void set_allocated_paid_date(::PROTOBUF_NAMESPACE_ID::Timestamp* paid_date); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_paid_date() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_paid_date(); + public: + void unsafe_arena_set_allocated_paid_date( + ::PROTOBUF_NAMESPACE_ID::Timestamp* paid_date); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_paid_date(); + + // double invoice_amount = 3 [json_name = "invoiceAmount"]; + void clear_invoice_amount(); + double invoice_amount() const; + void set_invoice_amount(double value); + private: + double _internal_invoice_amount() const; + void _internal_set_invoice_amount(double value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.InvoiceSummary) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - double cost_; - int resource_type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr status_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* invoice_date_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* due_date_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* paid_date_; + double invoice_amount_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fbilling_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SendPaymentRequiredEmailResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.SendPaymentRequiredEmailResponse) */ { +class PaymentMethodCard final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.PaymentMethodCard) */ { public: - inline SendPaymentRequiredEmailResponse() : SendPaymentRequiredEmailResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR SendPaymentRequiredEmailResponse(::google::protobuf::internal::ConstantInitialized); + inline PaymentMethodCard() : PaymentMethodCard(nullptr) {} + ~PaymentMethodCard() override; + explicit PROTOBUF_CONSTEXPR PaymentMethodCard(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline SendPaymentRequiredEmailResponse(const SendPaymentRequiredEmailResponse& from) - : SendPaymentRequiredEmailResponse(nullptr, from) {} - SendPaymentRequiredEmailResponse(SendPaymentRequiredEmailResponse&& from) noexcept - : SendPaymentRequiredEmailResponse() { + PaymentMethodCard(const PaymentMethodCard& from); + PaymentMethodCard(PaymentMethodCard&& from) noexcept + : PaymentMethodCard() { *this = ::std::move(from); } - inline SendPaymentRequiredEmailResponse& operator=(const SendPaymentRequiredEmailResponse& from) { + inline PaymentMethodCard& operator=(const PaymentMethodCard& from) { CopyFrom(from); return *this; } - inline SendPaymentRequiredEmailResponse& operator=(SendPaymentRequiredEmailResponse&& from) noexcept { + inline PaymentMethodCard& operator=(PaymentMethodCard&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -449,134 +483,161 @@ class SendPaymentRequiredEmailResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SendPaymentRequiredEmailResponse& default_instance() { + static const PaymentMethodCard& default_instance() { return *internal_default_instance(); } - static inline const SendPaymentRequiredEmailResponse* internal_default_instance() { - return reinterpret_cast( - &_SendPaymentRequiredEmailResponse_default_instance_); + static inline const PaymentMethodCard* internal_default_instance() { + return reinterpret_cast( + &_PaymentMethodCard_default_instance_); } static constexpr int kIndexInFileMessages = - 14; + 1; - friend void swap(SendPaymentRequiredEmailResponse& a, SendPaymentRequiredEmailResponse& b) { + friend void swap(PaymentMethodCard& a, PaymentMethodCard& b) { a.Swap(&b); } - inline void Swap(SendPaymentRequiredEmailResponse* other) { + inline void Swap(PaymentMethodCard* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SendPaymentRequiredEmailResponse* other) { + void UnsafeArenaSwap(PaymentMethodCard* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SendPaymentRequiredEmailResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const SendPaymentRequiredEmailResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const SendPaymentRequiredEmailResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + PaymentMethodCard* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const PaymentMethodCard& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const PaymentMethodCard& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.SendPaymentRequiredEmailResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(PaymentMethodCard* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.PaymentMethodCard"; } protected: - explicit SendPaymentRequiredEmailResponse(::google::protobuf::Arena* arena); - SendPaymentRequiredEmailResponse(::google::protobuf::Arena* arena, const SendPaymentRequiredEmailResponse& from); + explicit PaymentMethodCard(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.app.v1.SendPaymentRequiredEmailResponse) + enum : int { + kBrandFieldNumber = 1, + kLastFourDigitsFieldNumber = 2, + }; + // string brand = 1 [json_name = "brand"]; + void clear_brand(); + const std::string& brand() const; + template + void set_brand(ArgT0&& arg0, ArgT... args); + std::string* mutable_brand(); + PROTOBUF_NODISCARD std::string* release_brand(); + void set_allocated_brand(std::string* brand); + private: + const std::string& _internal_brand() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_brand(const std::string& value); + std::string* _internal_mutable_brand(); + public: + + // string last_four_digits = 2 [json_name = "lastFourDigits"]; + void clear_last_four_digits(); + const std::string& last_four_digits() const; + template + void set_last_four_digits(ArgT0&& arg0, ArgT... args); + std::string* mutable_last_four_digits(); + PROTOBUF_NODISCARD std::string* release_last_four_digits(); + void set_allocated_last_four_digits(std::string* last_four_digits); + private: + const std::string& _internal_last_four_digits() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_last_four_digits(const std::string& value); + std::string* _internal_mutable_last_four_digits(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.PaymentMethodCard) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr brand_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr last_four_digits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fbilling_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SendPaymentRequiredEmailRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.SendPaymentRequiredEmailRequest) */ { +class GetCurrentMonthUsageRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetCurrentMonthUsageRequest) */ { public: - inline SendPaymentRequiredEmailRequest() : SendPaymentRequiredEmailRequest(nullptr) {} - ~SendPaymentRequiredEmailRequest() override; - template - explicit PROTOBUF_CONSTEXPR SendPaymentRequiredEmailRequest(::google::protobuf::internal::ConstantInitialized); + inline GetCurrentMonthUsageRequest() : GetCurrentMonthUsageRequest(nullptr) {} + ~GetCurrentMonthUsageRequest() override; + explicit PROTOBUF_CONSTEXPR GetCurrentMonthUsageRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline SendPaymentRequiredEmailRequest(const SendPaymentRequiredEmailRequest& from) - : SendPaymentRequiredEmailRequest(nullptr, from) {} - SendPaymentRequiredEmailRequest(SendPaymentRequiredEmailRequest&& from) noexcept - : SendPaymentRequiredEmailRequest() { + GetCurrentMonthUsageRequest(const GetCurrentMonthUsageRequest& from); + GetCurrentMonthUsageRequest(GetCurrentMonthUsageRequest&& from) noexcept + : GetCurrentMonthUsageRequest() { *this = ::std::move(from); } - inline SendPaymentRequiredEmailRequest& operator=(const SendPaymentRequiredEmailRequest& from) { + inline GetCurrentMonthUsageRequest& operator=(const GetCurrentMonthUsageRequest& from) { CopyFrom(from); return *this; } - inline SendPaymentRequiredEmailRequest& operator=(SendPaymentRequiredEmailRequest&& from) noexcept { + inline GetCurrentMonthUsageRequest& operator=(GetCurrentMonthUsageRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -586,196 +647,145 @@ class SendPaymentRequiredEmailRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SendPaymentRequiredEmailRequest& default_instance() { + static const GetCurrentMonthUsageRequest& default_instance() { return *internal_default_instance(); } - static inline const SendPaymentRequiredEmailRequest* internal_default_instance() { - return reinterpret_cast( - &_SendPaymentRequiredEmailRequest_default_instance_); + static inline const GetCurrentMonthUsageRequest* internal_default_instance() { + return reinterpret_cast( + &_GetCurrentMonthUsageRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 13; + 2; - friend void swap(SendPaymentRequiredEmailRequest& a, SendPaymentRequiredEmailRequest& b) { + friend void swap(GetCurrentMonthUsageRequest& a, GetCurrentMonthUsageRequest& b) { a.Swap(&b); } - inline void Swap(SendPaymentRequiredEmailRequest* other) { + inline void Swap(GetCurrentMonthUsageRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SendPaymentRequiredEmailRequest* other) { + void UnsafeArenaSwap(GetCurrentMonthUsageRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SendPaymentRequiredEmailRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SendPaymentRequiredEmailRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SendPaymentRequiredEmailRequest& from) { - SendPaymentRequiredEmailRequest::MergeImpl(*this, from); + GetCurrentMonthUsageRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetCurrentMonthUsageRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetCurrentMonthUsageRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(SendPaymentRequiredEmailRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetCurrentMonthUsageRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.SendPaymentRequiredEmailRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.GetCurrentMonthUsageRequest"; } protected: - explicit SendPaymentRequiredEmailRequest(::google::protobuf::Arena* arena); - SendPaymentRequiredEmailRequest(::google::protobuf::Arena* arena, const SendPaymentRequiredEmailRequest& from); + explicit GetCurrentMonthUsageRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kCustomerOrgIdFieldNumber = 1, - kBillingOwnerOrgIdFieldNumber = 2, + kOrgIdFieldNumber = 1, }; - // string customer_org_id = 1 [json_name = "customerOrgId"]; - void clear_customer_org_id() ; - const std::string& customer_org_id() const; - template - void set_customer_org_id(Arg_&& arg, Args_... args); - std::string* mutable_customer_org_id(); - PROTOBUF_NODISCARD std::string* release_customer_org_id(); - void set_allocated_customer_org_id(std::string* value); - - private: - const std::string& _internal_customer_org_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_customer_org_id( - const std::string& value); - std::string* _internal_mutable_customer_org_id(); - - public: - // string billing_owner_org_id = 2 [json_name = "billingOwnerOrgId"]; - void clear_billing_owner_org_id() ; - const std::string& billing_owner_org_id() const; - template - void set_billing_owner_org_id(Arg_&& arg, Args_... args); - std::string* mutable_billing_owner_org_id(); - PROTOBUF_NODISCARD std::string* release_billing_owner_org_id(); - void set_allocated_billing_owner_org_id(std::string* value); - + // string org_id = 1 [json_name = "orgId"]; + void clear_org_id(); + const std::string& org_id() const; + template + void set_org_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_org_id(); + PROTOBUF_NODISCARD std::string* release_org_id(); + void set_allocated_org_id(std::string* org_id); private: - const std::string& _internal_billing_owner_org_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_billing_owner_org_id( - const std::string& value); - std::string* _internal_mutable_billing_owner_org_id(); - + const std::string& _internal_org_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_org_id(const std::string& value); + std::string* _internal_mutable_org_id(); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.SendPaymentRequiredEmailRequest) + + // @@protoc_insertion_point(class_scope:viam.app.v1.GetCurrentMonthUsageRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 87, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr customer_org_id_; - ::google::protobuf::internal::ArenaStringPtr billing_owner_org_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr org_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fbilling_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class PaymentMethodCard final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.PaymentMethodCard) */ { +class UsageCost final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.UsageCost) */ { public: - inline PaymentMethodCard() : PaymentMethodCard(nullptr) {} - ~PaymentMethodCard() override; - template - explicit PROTOBUF_CONSTEXPR PaymentMethodCard(::google::protobuf::internal::ConstantInitialized); + inline UsageCost() : UsageCost(nullptr) {} + ~UsageCost() override; + explicit PROTOBUF_CONSTEXPR UsageCost(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline PaymentMethodCard(const PaymentMethodCard& from) - : PaymentMethodCard(nullptr, from) {} - PaymentMethodCard(PaymentMethodCard&& from) noexcept - : PaymentMethodCard() { + UsageCost(const UsageCost& from); + UsageCost(UsageCost&& from) noexcept + : UsageCost() { *this = ::std::move(from); } - inline PaymentMethodCard& operator=(const PaymentMethodCard& from) { + inline UsageCost& operator=(const UsageCost& from) { CopyFrom(from); return *this; } - inline PaymentMethodCard& operator=(PaymentMethodCard&& from) noexcept { + inline UsageCost& operator=(UsageCost&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -785,196 +795,151 @@ class PaymentMethodCard final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const PaymentMethodCard& default_instance() { + static const UsageCost& default_instance() { return *internal_default_instance(); } - static inline const PaymentMethodCard* internal_default_instance() { - return reinterpret_cast( - &_PaymentMethodCard_default_instance_); + static inline const UsageCost* internal_default_instance() { + return reinterpret_cast( + &_UsageCost_default_instance_); } static constexpr int kIndexInFileMessages = - 1; + 3; - friend void swap(PaymentMethodCard& a, PaymentMethodCard& b) { + friend void swap(UsageCost& a, UsageCost& b) { a.Swap(&b); } - inline void Swap(PaymentMethodCard* other) { + inline void Swap(UsageCost* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(PaymentMethodCard* other) { + void UnsafeArenaSwap(UsageCost* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - PaymentMethodCard* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const PaymentMethodCard& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const PaymentMethodCard& from) { - PaymentMethodCard::MergeImpl(*this, from); + UsageCost* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const UsageCost& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const UsageCost& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(PaymentMethodCard* other); + void SetCachedSize(int size) const final; + void InternalSwap(UsageCost* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.PaymentMethodCard"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.UsageCost"; } protected: - explicit PaymentMethodCard(::google::protobuf::Arena* arena); - PaymentMethodCard(::google::protobuf::Arena* arena, const PaymentMethodCard& from); + explicit UsageCost(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kBrandFieldNumber = 1, - kLastFourDigitsFieldNumber = 2, + kCostFieldNumber = 2, + kResourceTypeFieldNumber = 1, }; - // string brand = 1 [json_name = "brand"]; - void clear_brand() ; - const std::string& brand() const; - template - void set_brand(Arg_&& arg, Args_... args); - std::string* mutable_brand(); - PROTOBUF_NODISCARD std::string* release_brand(); - void set_allocated_brand(std::string* value); - + // double cost = 2 [json_name = "cost"]; + void clear_cost(); + double cost() const; + void set_cost(double value); private: - const std::string& _internal_brand() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_brand( - const std::string& value); - std::string* _internal_mutable_brand(); - + double _internal_cost() const; + void _internal_set_cost(double value); public: - // string last_four_digits = 2 [json_name = "lastFourDigits"]; - void clear_last_four_digits() ; - const std::string& last_four_digits() const; - template - void set_last_four_digits(Arg_&& arg, Args_... args); - std::string* mutable_last_four_digits(); - PROTOBUF_NODISCARD std::string* release_last_four_digits(); - void set_allocated_last_four_digits(std::string* value); + // .viam.app.v1.UsageCostType resource_type = 1 [json_name = "resourceType"]; + void clear_resource_type(); + ::viam::app::v1::UsageCostType resource_type() const; + void set_resource_type(::viam::app::v1::UsageCostType value); private: - const std::string& _internal_last_four_digits() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_last_four_digits( - const std::string& value); - std::string* _internal_mutable_last_four_digits(); - + ::viam::app::v1::UsageCostType _internal_resource_type() const; + void _internal_set_resource_type(::viam::app::v1::UsageCostType value); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.PaymentMethodCard) + + // @@protoc_insertion_point(class_scope:viam.app.v1.UsageCost) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 59, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr brand_; - ::google::protobuf::internal::ArenaStringPtr last_four_digits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + double cost_; + int resource_type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fbilling_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetOrgBillingInformationRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetOrgBillingInformationRequest) */ { +class ResourceUsageCostsBySource final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ResourceUsageCostsBySource) */ { public: - inline GetOrgBillingInformationRequest() : GetOrgBillingInformationRequest(nullptr) {} - ~GetOrgBillingInformationRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetOrgBillingInformationRequest(::google::protobuf::internal::ConstantInitialized); + inline ResourceUsageCostsBySource() : ResourceUsageCostsBySource(nullptr) {} + ~ResourceUsageCostsBySource() override; + explicit PROTOBUF_CONSTEXPR ResourceUsageCostsBySource(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetOrgBillingInformationRequest(const GetOrgBillingInformationRequest& from) - : GetOrgBillingInformationRequest(nullptr, from) {} - GetOrgBillingInformationRequest(GetOrgBillingInformationRequest&& from) noexcept - : GetOrgBillingInformationRequest() { + ResourceUsageCostsBySource(const ResourceUsageCostsBySource& from); + ResourceUsageCostsBySource(ResourceUsageCostsBySource&& from) noexcept + : ResourceUsageCostsBySource() { *this = ::std::move(from); } - inline GetOrgBillingInformationRequest& operator=(const GetOrgBillingInformationRequest& from) { + inline ResourceUsageCostsBySource& operator=(const ResourceUsageCostsBySource& from) { CopyFrom(from); return *this; } - inline GetOrgBillingInformationRequest& operator=(GetOrgBillingInformationRequest&& from) noexcept { + inline ResourceUsageCostsBySource& operator=(ResourceUsageCostsBySource&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -984,178 +949,176 @@ class GetOrgBillingInformationRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetOrgBillingInformationRequest& default_instance() { + static const ResourceUsageCostsBySource& default_instance() { return *internal_default_instance(); } - static inline const GetOrgBillingInformationRequest* internal_default_instance() { - return reinterpret_cast( - &_GetOrgBillingInformationRequest_default_instance_); + static inline const ResourceUsageCostsBySource* internal_default_instance() { + return reinterpret_cast( + &_ResourceUsageCostsBySource_default_instance_); } static constexpr int kIndexInFileMessages = - 7; + 4; - friend void swap(GetOrgBillingInformationRequest& a, GetOrgBillingInformationRequest& b) { + friend void swap(ResourceUsageCostsBySource& a, ResourceUsageCostsBySource& b) { a.Swap(&b); } - inline void Swap(GetOrgBillingInformationRequest* other) { + inline void Swap(ResourceUsageCostsBySource* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetOrgBillingInformationRequest* other) { + void UnsafeArenaSwap(ResourceUsageCostsBySource* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetOrgBillingInformationRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetOrgBillingInformationRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetOrgBillingInformationRequest& from) { - GetOrgBillingInformationRequest::MergeImpl(*this, from); + ResourceUsageCostsBySource* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ResourceUsageCostsBySource& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ResourceUsageCostsBySource& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetOrgBillingInformationRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(ResourceUsageCostsBySource* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.GetOrgBillingInformationRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.ResourceUsageCostsBySource"; } protected: - explicit GetOrgBillingInformationRequest(::google::protobuf::Arena* arena); - GetOrgBillingInformationRequest(::google::protobuf::Arena* arena, const GetOrgBillingInformationRequest& from); + explicit ResourceUsageCostsBySource(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kOrgIdFieldNumber = 1, + kTierNameFieldNumber = 3, + kResourceUsageCostsFieldNumber = 2, + kSourceTypeFieldNumber = 1, }; - // string org_id = 1 [json_name = "orgId"]; - void clear_org_id() ; - const std::string& org_id() const; - template - void set_org_id(Arg_&& arg, Args_... args); - std::string* mutable_org_id(); - PROTOBUF_NODISCARD std::string* release_org_id(); - void set_allocated_org_id(std::string* value); + // string tier_name = 3 [json_name = "tierName"]; + void clear_tier_name(); + const std::string& tier_name() const; + template + void set_tier_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_tier_name(); + PROTOBUF_NODISCARD std::string* release_tier_name(); + void set_allocated_tier_name(std::string* tier_name); + private: + const std::string& _internal_tier_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_tier_name(const std::string& value); + std::string* _internal_mutable_tier_name(); + public: + // .viam.app.v1.ResourceUsageCosts resource_usage_costs = 2 [json_name = "resourceUsageCosts"]; + bool has_resource_usage_costs() const; private: - const std::string& _internal_org_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_org_id( - const std::string& value); - std::string* _internal_mutable_org_id(); + bool _internal_has_resource_usage_costs() const; + public: + void clear_resource_usage_costs(); + const ::viam::app::v1::ResourceUsageCosts& resource_usage_costs() const; + PROTOBUF_NODISCARD ::viam::app::v1::ResourceUsageCosts* release_resource_usage_costs(); + ::viam::app::v1::ResourceUsageCosts* mutable_resource_usage_costs(); + void set_allocated_resource_usage_costs(::viam::app::v1::ResourceUsageCosts* resource_usage_costs); + private: + const ::viam::app::v1::ResourceUsageCosts& _internal_resource_usage_costs() const; + ::viam::app::v1::ResourceUsageCosts* _internal_mutable_resource_usage_costs(); + public: + void unsafe_arena_set_allocated_resource_usage_costs( + ::viam::app::v1::ResourceUsageCosts* resource_usage_costs); + ::viam::app::v1::ResourceUsageCosts* unsafe_arena_release_resource_usage_costs(); + // .viam.app.v1.SourceType source_type = 1 [json_name = "sourceType"]; + void clear_source_type(); + ::viam::app::v1::SourceType source_type() const; + void set_source_type(::viam::app::v1::SourceType value); + private: + ::viam::app::v1::SourceType _internal_source_type() const; + void _internal_set_source_type(::viam::app::v1::SourceType value); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.GetOrgBillingInformationRequest) + + // @@protoc_insertion_point(class_scope:viam.app.v1.ResourceUsageCostsBySource) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 58, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr org_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr tier_name_; + ::viam::app::v1::ResourceUsageCosts* resource_usage_costs_; + int source_type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fbilling_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetInvoicesSummaryRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetInvoicesSummaryRequest) */ { +class ResourceUsageCosts final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ResourceUsageCosts) */ { public: - inline GetInvoicesSummaryRequest() : GetInvoicesSummaryRequest(nullptr) {} - ~GetInvoicesSummaryRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetInvoicesSummaryRequest(::google::protobuf::internal::ConstantInitialized); + inline ResourceUsageCosts() : ResourceUsageCosts(nullptr) {} + ~ResourceUsageCosts() override; + explicit PROTOBUF_CONSTEXPR ResourceUsageCosts(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetInvoicesSummaryRequest(const GetInvoicesSummaryRequest& from) - : GetInvoicesSummaryRequest(nullptr, from) {} - GetInvoicesSummaryRequest(GetInvoicesSummaryRequest&& from) noexcept - : GetInvoicesSummaryRequest() { + ResourceUsageCosts(const ResourceUsageCosts& from); + ResourceUsageCosts(ResourceUsageCosts&& from) noexcept + : ResourceUsageCosts() { *this = ::std::move(from); } - inline GetInvoicesSummaryRequest& operator=(const GetInvoicesSummaryRequest& from) { + inline ResourceUsageCosts& operator=(const ResourceUsageCosts& from) { CopyFrom(from); return *this; } - inline GetInvoicesSummaryRequest& operator=(GetInvoicesSummaryRequest&& from) noexcept { + inline ResourceUsageCosts& operator=(ResourceUsageCosts&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1165,178 +1128,182 @@ class GetInvoicesSummaryRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetInvoicesSummaryRequest& default_instance() { + static const ResourceUsageCosts& default_instance() { return *internal_default_instance(); } - static inline const GetInvoicesSummaryRequest* internal_default_instance() { - return reinterpret_cast( - &_GetInvoicesSummaryRequest_default_instance_); + static inline const ResourceUsageCosts* internal_default_instance() { + return reinterpret_cast( + &_ResourceUsageCosts_default_instance_); } static constexpr int kIndexInFileMessages = - 9; + 5; - friend void swap(GetInvoicesSummaryRequest& a, GetInvoicesSummaryRequest& b) { + friend void swap(ResourceUsageCosts& a, ResourceUsageCosts& b) { a.Swap(&b); } - inline void Swap(GetInvoicesSummaryRequest* other) { + inline void Swap(ResourceUsageCosts* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetInvoicesSummaryRequest* other) { + void UnsafeArenaSwap(ResourceUsageCosts* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetInvoicesSummaryRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetInvoicesSummaryRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetInvoicesSummaryRequest& from) { - GetInvoicesSummaryRequest::MergeImpl(*this, from); + ResourceUsageCosts* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ResourceUsageCosts& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ResourceUsageCosts& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetInvoicesSummaryRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(ResourceUsageCosts* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.GetInvoicesSummaryRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.ResourceUsageCosts"; } protected: - explicit GetInvoicesSummaryRequest(::google::protobuf::Arena* arena); - GetInvoicesSummaryRequest(::google::protobuf::Arena* arena, const GetInvoicesSummaryRequest& from); + explicit ResourceUsageCosts(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kOrgIdFieldNumber = 1, + kUsageCostsFieldNumber = 1, + kDiscountFieldNumber = 2, + kTotalWithDiscountFieldNumber = 3, + kTotalWithoutDiscountFieldNumber = 4, }; - // string org_id = 1 [json_name = "orgId"]; - void clear_org_id() ; - const std::string& org_id() const; - template - void set_org_id(Arg_&& arg, Args_... args); - std::string* mutable_org_id(); - PROTOBUF_NODISCARD std::string* release_org_id(); - void set_allocated_org_id(std::string* value); - + // repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"]; + int usage_costs_size() const; private: - const std::string& _internal_org_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_org_id( - const std::string& value); - std::string* _internal_mutable_org_id(); - + int _internal_usage_costs_size() const; public: - // @@protoc_insertion_point(class_scope:viam.app.v1.GetInvoicesSummaryRequest) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 52, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr org_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_app_2fv1_2fbilling_2eproto; -};// ------------------------------------------------------------------- + void clear_usage_costs(); + ::viam::app::v1::UsageCost* mutable_usage_costs(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::UsageCost >* + mutable_usage_costs(); + private: + const ::viam::app::v1::UsageCost& _internal_usage_costs(int index) const; + ::viam::app::v1::UsageCost* _internal_add_usage_costs(); + public: + const ::viam::app::v1::UsageCost& usage_costs(int index) const; + ::viam::app::v1::UsageCost* add_usage_costs(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::UsageCost >& + usage_costs() const; -class GetInvoicePdfResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetInvoicePdfResponse) */ { - public: - inline GetInvoicePdfResponse() : GetInvoicePdfResponse(nullptr) {} - ~GetInvoicePdfResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetInvoicePdfResponse(::google::protobuf::internal::ConstantInitialized); + // double discount = 2 [json_name = "discount"]; + void clear_discount(); + double discount() const; + void set_discount(double value); + private: + double _internal_discount() const; + void _internal_set_discount(double value); + public: - inline GetInvoicePdfResponse(const GetInvoicePdfResponse& from) - : GetInvoicePdfResponse(nullptr, from) {} - GetInvoicePdfResponse(GetInvoicePdfResponse&& from) noexcept - : GetInvoicePdfResponse() { + // double total_with_discount = 3 [json_name = "totalWithDiscount"]; + void clear_total_with_discount(); + double total_with_discount() const; + void set_total_with_discount(double value); + private: + double _internal_total_with_discount() const; + void _internal_set_total_with_discount(double value); + public: + + // double total_without_discount = 4 [json_name = "totalWithoutDiscount"]; + void clear_total_without_discount(); + double total_without_discount() const; + void set_total_without_discount(double value); + private: + double _internal_total_without_discount() const; + void _internal_set_total_without_discount(double value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.ResourceUsageCosts) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::UsageCost > usage_costs_; + double discount_; + double total_with_discount_; + double total_without_discount_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_app_2fv1_2fbilling_2eproto; +}; +// ------------------------------------------------------------------- + +class GetCurrentMonthUsageResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetCurrentMonthUsageResponse) */ { + public: + inline GetCurrentMonthUsageResponse() : GetCurrentMonthUsageResponse(nullptr) {} + ~GetCurrentMonthUsageResponse() override; + explicit PROTOBUF_CONSTEXPR GetCurrentMonthUsageResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetCurrentMonthUsageResponse(const GetCurrentMonthUsageResponse& from); + GetCurrentMonthUsageResponse(GetCurrentMonthUsageResponse&& from) noexcept + : GetCurrentMonthUsageResponse() { *this = ::std::move(from); } - inline GetInvoicePdfResponse& operator=(const GetInvoicePdfResponse& from) { + inline GetCurrentMonthUsageResponse& operator=(const GetCurrentMonthUsageResponse& from) { CopyFrom(from); return *this; } - inline GetInvoicePdfResponse& operator=(GetInvoicePdfResponse&& from) noexcept { + inline GetCurrentMonthUsageResponse& operator=(GetCurrentMonthUsageResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1346,178 +1313,321 @@ class GetInvoicePdfResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetInvoicePdfResponse& default_instance() { + static const GetCurrentMonthUsageResponse& default_instance() { return *internal_default_instance(); } - static inline const GetInvoicePdfResponse* internal_default_instance() { - return reinterpret_cast( - &_GetInvoicePdfResponse_default_instance_); + static inline const GetCurrentMonthUsageResponse* internal_default_instance() { + return reinterpret_cast( + &_GetCurrentMonthUsageResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 12; + 6; - friend void swap(GetInvoicePdfResponse& a, GetInvoicePdfResponse& b) { + friend void swap(GetCurrentMonthUsageResponse& a, GetCurrentMonthUsageResponse& b) { a.Swap(&b); } - inline void Swap(GetInvoicePdfResponse* other) { + inline void Swap(GetCurrentMonthUsageResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetInvoicePdfResponse* other) { + void UnsafeArenaSwap(GetCurrentMonthUsageResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetInvoicePdfResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetInvoicePdfResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetInvoicePdfResponse& from) { - GetInvoicePdfResponse::MergeImpl(*this, from); + GetCurrentMonthUsageResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetCurrentMonthUsageResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetCurrentMonthUsageResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetInvoicePdfResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetCurrentMonthUsageResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.GetInvoicePdfResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.GetCurrentMonthUsageResponse"; } protected: - explicit GetInvoicePdfResponse(::google::protobuf::Arena* arena); - GetInvoicePdfResponse(::google::protobuf::Arena* arena, const GetInvoicePdfResponse& from); + explicit GetCurrentMonthUsageResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kChunkFieldNumber = 1, + kResourceUsageCostsBySourceFieldNumber = 14, + kStartDateFieldNumber = 1, + kEndDateFieldNumber = 2, + kCloudStorageUsageCostFieldNumber = 3, + kDataUploadUsageCostFieldNumber = 4, + kDataEgresUsageCostFieldNumber = 5, + kRemoteControlUsageCostFieldNumber = 6, + kStandardComputeUsageCostFieldNumber = 7, + kDiscountAmountFieldNumber = 8, + kTotalUsageWithDiscountFieldNumber = 9, + kTotalUsageWithoutDiscountFieldNumber = 10, + kPerMachineUsageCostFieldNumber = 11, + kBinaryDataCloudStorageUsageCostFieldNumber = 12, + kOtherCloudStorageUsageCostFieldNumber = 13, + kSubtotalFieldNumber = 15, }; - // bytes chunk = 1 [json_name = "chunk"]; - void clear_chunk() ; - const std::string& chunk() const; - template - void set_chunk(Arg_&& arg, Args_... args); - std::string* mutable_chunk(); - PROTOBUF_NODISCARD std::string* release_chunk(); - void set_allocated_chunk(std::string* value); + // repeated .viam.app.v1.ResourceUsageCostsBySource resource_usage_costs_by_source = 14 [json_name = "resourceUsageCostsBySource"]; + int resource_usage_costs_by_source_size() const; + private: + int _internal_resource_usage_costs_by_source_size() const; + public: + void clear_resource_usage_costs_by_source(); + ::viam::app::v1::ResourceUsageCostsBySource* mutable_resource_usage_costs_by_source(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ResourceUsageCostsBySource >* + mutable_resource_usage_costs_by_source(); + private: + const ::viam::app::v1::ResourceUsageCostsBySource& _internal_resource_usage_costs_by_source(int index) const; + ::viam::app::v1::ResourceUsageCostsBySource* _internal_add_resource_usage_costs_by_source(); + public: + const ::viam::app::v1::ResourceUsageCostsBySource& resource_usage_costs_by_source(int index) const; + ::viam::app::v1::ResourceUsageCostsBySource* add_resource_usage_costs_by_source(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ResourceUsageCostsBySource >& + resource_usage_costs_by_source() const; + // .google.protobuf.Timestamp start_date = 1 [json_name = "startDate"]; + bool has_start_date() const; private: - const std::string& _internal_chunk() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_chunk( - const std::string& value); - std::string* _internal_mutable_chunk(); + bool _internal_has_start_date() const; + public: + void clear_start_date(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& start_date() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_start_date(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_start_date(); + void set_allocated_start_date(::PROTOBUF_NAMESPACE_ID::Timestamp* start_date); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_start_date() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_start_date(); + public: + void unsafe_arena_set_allocated_start_date( + ::PROTOBUF_NAMESPACE_ID::Timestamp* start_date); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_start_date(); + // .google.protobuf.Timestamp end_date = 2 [json_name = "endDate"]; + bool has_end_date() const; + private: + bool _internal_has_end_date() const; public: - // @@protoc_insertion_point(class_scope:viam.app.v1.GetInvoicePdfResponse) + void clear_end_date(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& end_date() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_end_date(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_end_date(); + void set_allocated_end_date(::PROTOBUF_NAMESPACE_ID::Timestamp* end_date); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_end_date() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_end_date(); + public: + void unsafe_arena_set_allocated_end_date( + ::PROTOBUF_NAMESPACE_ID::Timestamp* end_date); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_end_date(); + + // double cloud_storage_usage_cost = 3 [json_name = "cloudStorageUsageCost", deprecated = true]; + PROTOBUF_DEPRECATED void clear_cloud_storage_usage_cost(); + PROTOBUF_DEPRECATED double cloud_storage_usage_cost() const; + PROTOBUF_DEPRECATED void set_cloud_storage_usage_cost(double value); + private: + double _internal_cloud_storage_usage_cost() const; + void _internal_set_cloud_storage_usage_cost(double value); + public: + + // double data_upload_usage_cost = 4 [json_name = "dataUploadUsageCost", deprecated = true]; + PROTOBUF_DEPRECATED void clear_data_upload_usage_cost(); + PROTOBUF_DEPRECATED double data_upload_usage_cost() const; + PROTOBUF_DEPRECATED void set_data_upload_usage_cost(double value); + private: + double _internal_data_upload_usage_cost() const; + void _internal_set_data_upload_usage_cost(double value); + public: + + // double data_egres_usage_cost = 5 [json_name = "dataEgresUsageCost", deprecated = true]; + PROTOBUF_DEPRECATED void clear_data_egres_usage_cost(); + PROTOBUF_DEPRECATED double data_egres_usage_cost() const; + PROTOBUF_DEPRECATED void set_data_egres_usage_cost(double value); + private: + double _internal_data_egres_usage_cost() const; + void _internal_set_data_egres_usage_cost(double value); + public: + + // double remote_control_usage_cost = 6 [json_name = "remoteControlUsageCost", deprecated = true]; + PROTOBUF_DEPRECATED void clear_remote_control_usage_cost(); + PROTOBUF_DEPRECATED double remote_control_usage_cost() const; + PROTOBUF_DEPRECATED void set_remote_control_usage_cost(double value); + private: + double _internal_remote_control_usage_cost() const; + void _internal_set_remote_control_usage_cost(double value); + public: + + // double standard_compute_usage_cost = 7 [json_name = "standardComputeUsageCost", deprecated = true]; + PROTOBUF_DEPRECATED void clear_standard_compute_usage_cost(); + PROTOBUF_DEPRECATED double standard_compute_usage_cost() const; + PROTOBUF_DEPRECATED void set_standard_compute_usage_cost(double value); + private: + double _internal_standard_compute_usage_cost() const; + void _internal_set_standard_compute_usage_cost(double value); + public: + + // double discount_amount = 8 [json_name = "discountAmount", deprecated = true]; + PROTOBUF_DEPRECATED void clear_discount_amount(); + PROTOBUF_DEPRECATED double discount_amount() const; + PROTOBUF_DEPRECATED void set_discount_amount(double value); + private: + double _internal_discount_amount() const; + void _internal_set_discount_amount(double value); + public: + + // double total_usage_with_discount = 9 [json_name = "totalUsageWithDiscount", deprecated = true]; + PROTOBUF_DEPRECATED void clear_total_usage_with_discount(); + PROTOBUF_DEPRECATED double total_usage_with_discount() const; + PROTOBUF_DEPRECATED void set_total_usage_with_discount(double value); + private: + double _internal_total_usage_with_discount() const; + void _internal_set_total_usage_with_discount(double value); + public: + + // double total_usage_without_discount = 10 [json_name = "totalUsageWithoutDiscount", deprecated = true]; + PROTOBUF_DEPRECATED void clear_total_usage_without_discount(); + PROTOBUF_DEPRECATED double total_usage_without_discount() const; + PROTOBUF_DEPRECATED void set_total_usage_without_discount(double value); + private: + double _internal_total_usage_without_discount() const; + void _internal_set_total_usage_without_discount(double value); + public: + + // double per_machine_usage_cost = 11 [json_name = "perMachineUsageCost", deprecated = true]; + PROTOBUF_DEPRECATED void clear_per_machine_usage_cost(); + PROTOBUF_DEPRECATED double per_machine_usage_cost() const; + PROTOBUF_DEPRECATED void set_per_machine_usage_cost(double value); + private: + double _internal_per_machine_usage_cost() const; + void _internal_set_per_machine_usage_cost(double value); + public: + + // double binary_data_cloud_storage_usage_cost = 12 [json_name = "binaryDataCloudStorageUsageCost", deprecated = true]; + PROTOBUF_DEPRECATED void clear_binary_data_cloud_storage_usage_cost(); + PROTOBUF_DEPRECATED double binary_data_cloud_storage_usage_cost() const; + PROTOBUF_DEPRECATED void set_binary_data_cloud_storage_usage_cost(double value); + private: + double _internal_binary_data_cloud_storage_usage_cost() const; + void _internal_set_binary_data_cloud_storage_usage_cost(double value); + public: + + // double other_cloud_storage_usage_cost = 13 [json_name = "otherCloudStorageUsageCost", deprecated = true]; + PROTOBUF_DEPRECATED void clear_other_cloud_storage_usage_cost(); + PROTOBUF_DEPRECATED double other_cloud_storage_usage_cost() const; + PROTOBUF_DEPRECATED void set_other_cloud_storage_usage_cost(double value); + private: + double _internal_other_cloud_storage_usage_cost() const; + void _internal_set_other_cloud_storage_usage_cost(double value); + public: + + // double subtotal = 15 [json_name = "subtotal"]; + void clear_subtotal(); + double subtotal() const; + void set_subtotal(double value); + private: + double _internal_subtotal() const; + void _internal_set_subtotal(double value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.GetCurrentMonthUsageResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr chunk_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ResourceUsageCostsBySource > resource_usage_costs_by_source_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* start_date_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* end_date_; + double cloud_storage_usage_cost_; + double data_upload_usage_cost_; + double data_egres_usage_cost_; + double remote_control_usage_cost_; + double standard_compute_usage_cost_; + double discount_amount_; + double total_usage_with_discount_; + double total_usage_without_discount_; + double per_machine_usage_cost_; + double binary_data_cloud_storage_usage_cost_; + double other_cloud_storage_usage_cost_; + double subtotal_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fbilling_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetInvoicePdfRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetInvoicePdfRequest) */ { +class GetOrgBillingInformationRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetOrgBillingInformationRequest) */ { public: - inline GetInvoicePdfRequest() : GetInvoicePdfRequest(nullptr) {} - ~GetInvoicePdfRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetInvoicePdfRequest(::google::protobuf::internal::ConstantInitialized); + inline GetOrgBillingInformationRequest() : GetOrgBillingInformationRequest(nullptr) {} + ~GetOrgBillingInformationRequest() override; + explicit PROTOBUF_CONSTEXPR GetOrgBillingInformationRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetInvoicePdfRequest(const GetInvoicePdfRequest& from) - : GetInvoicePdfRequest(nullptr, from) {} - GetInvoicePdfRequest(GetInvoicePdfRequest&& from) noexcept - : GetInvoicePdfRequest() { + GetOrgBillingInformationRequest(const GetOrgBillingInformationRequest& from); + GetOrgBillingInformationRequest(GetOrgBillingInformationRequest&& from) noexcept + : GetOrgBillingInformationRequest() { *this = ::std::move(from); } - inline GetInvoicePdfRequest& operator=(const GetInvoicePdfRequest& from) { + inline GetOrgBillingInformationRequest& operator=(const GetOrgBillingInformationRequest& from) { CopyFrom(from); return *this; } - inline GetInvoicePdfRequest& operator=(GetInvoicePdfRequest&& from) noexcept { + inline GetOrgBillingInformationRequest& operator=(GetOrgBillingInformationRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1527,196 +1637,145 @@ class GetInvoicePdfRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetInvoicePdfRequest& default_instance() { + static const GetOrgBillingInformationRequest& default_instance() { return *internal_default_instance(); } - static inline const GetInvoicePdfRequest* internal_default_instance() { - return reinterpret_cast( - &_GetInvoicePdfRequest_default_instance_); + static inline const GetOrgBillingInformationRequest* internal_default_instance() { + return reinterpret_cast( + &_GetOrgBillingInformationRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 11; + 7; - friend void swap(GetInvoicePdfRequest& a, GetInvoicePdfRequest& b) { + friend void swap(GetOrgBillingInformationRequest& a, GetOrgBillingInformationRequest& b) { a.Swap(&b); } - inline void Swap(GetInvoicePdfRequest* other) { + inline void Swap(GetOrgBillingInformationRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetInvoicePdfRequest* other) { + void UnsafeArenaSwap(GetOrgBillingInformationRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetInvoicePdfRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetInvoicePdfRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetInvoicePdfRequest& from) { - GetInvoicePdfRequest::MergeImpl(*this, from); + GetOrgBillingInformationRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetOrgBillingInformationRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetOrgBillingInformationRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetInvoicePdfRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetOrgBillingInformationRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.GetInvoicePdfRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.GetOrgBillingInformationRequest"; } protected: - explicit GetInvoicePdfRequest(::google::protobuf::Arena* arena); - GetInvoicePdfRequest(::google::protobuf::Arena* arena, const GetInvoicePdfRequest& from); + explicit GetOrgBillingInformationRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kIdFieldNumber = 1, - kOrgIdFieldNumber = 2, + kOrgIdFieldNumber = 1, }; - // string id = 1 [json_name = "id"]; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - - private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); - - public: - // string org_id = 2 [json_name = "orgId"]; - void clear_org_id() ; + // string org_id = 1 [json_name = "orgId"]; + void clear_org_id(); const std::string& org_id() const; - template - void set_org_id(Arg_&& arg, Args_... args); + template + void set_org_id(ArgT0&& arg0, ArgT... args); std::string* mutable_org_id(); PROTOBUF_NODISCARD std::string* release_org_id(); - void set_allocated_org_id(std::string* value); - + void set_allocated_org_id(std::string* org_id); private: const std::string& _internal_org_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_org_id( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_org_id(const std::string& value); std::string* _internal_mutable_org_id(); - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.GetInvoicePdfRequest) + + // @@protoc_insertion_point(class_scope:viam.app.v1.GetOrgBillingInformationRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 49, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr id_; - ::google::protobuf::internal::ArenaStringPtr org_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr org_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fbilling_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetCurrentMonthUsageRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetCurrentMonthUsageRequest) */ { +class GetOrgBillingInformationResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetOrgBillingInformationResponse) */ { public: - inline GetCurrentMonthUsageRequest() : GetCurrentMonthUsageRequest(nullptr) {} - ~GetCurrentMonthUsageRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetCurrentMonthUsageRequest(::google::protobuf::internal::ConstantInitialized); + inline GetOrgBillingInformationResponse() : GetOrgBillingInformationResponse(nullptr) {} + ~GetOrgBillingInformationResponse() override; + explicit PROTOBUF_CONSTEXPR GetOrgBillingInformationResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetCurrentMonthUsageRequest(const GetCurrentMonthUsageRequest& from) - : GetCurrentMonthUsageRequest(nullptr, from) {} - GetCurrentMonthUsageRequest(GetCurrentMonthUsageRequest&& from) noexcept - : GetCurrentMonthUsageRequest() { + GetOrgBillingInformationResponse(const GetOrgBillingInformationResponse& from); + GetOrgBillingInformationResponse(GetOrgBillingInformationResponse&& from) noexcept + : GetOrgBillingInformationResponse() { *this = ::std::move(from); } - inline GetCurrentMonthUsageRequest& operator=(const GetCurrentMonthUsageRequest& from) { + inline GetOrgBillingInformationResponse& operator=(const GetOrgBillingInformationResponse& from) { CopyFrom(from); return *this; } - inline GetCurrentMonthUsageRequest& operator=(GetCurrentMonthUsageRequest&& from) noexcept { + inline GetOrgBillingInformationResponse& operator=(GetOrgBillingInformationResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1726,178 +1785,197 @@ class GetCurrentMonthUsageRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetCurrentMonthUsageRequest& default_instance() { + static const GetOrgBillingInformationResponse& default_instance() { return *internal_default_instance(); } - static inline const GetCurrentMonthUsageRequest* internal_default_instance() { - return reinterpret_cast( - &_GetCurrentMonthUsageRequest_default_instance_); + static inline const GetOrgBillingInformationResponse* internal_default_instance() { + return reinterpret_cast( + &_GetOrgBillingInformationResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 2; + 8; - friend void swap(GetCurrentMonthUsageRequest& a, GetCurrentMonthUsageRequest& b) { + friend void swap(GetOrgBillingInformationResponse& a, GetOrgBillingInformationResponse& b) { a.Swap(&b); } - inline void Swap(GetCurrentMonthUsageRequest* other) { + inline void Swap(GetOrgBillingInformationResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetCurrentMonthUsageRequest* other) { + void UnsafeArenaSwap(GetOrgBillingInformationResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetCurrentMonthUsageRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetCurrentMonthUsageRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetCurrentMonthUsageRequest& from) { - GetCurrentMonthUsageRequest::MergeImpl(*this, from); + GetOrgBillingInformationResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetOrgBillingInformationResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetOrgBillingInformationResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetCurrentMonthUsageRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetOrgBillingInformationResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.GetCurrentMonthUsageRequest"; - } - protected: - explicit GetCurrentMonthUsageRequest(::google::protobuf::Arena* arena); - GetCurrentMonthUsageRequest(::google::protobuf::Arena* arena, const GetCurrentMonthUsageRequest& from); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.GetOrgBillingInformationResponse"; + } + protected: + explicit GetOrgBillingInformationResponse(::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 { + kBillingEmailFieldNumber = 2, + kBillingTierFieldNumber = 4, + kMethodFieldNumber = 3, + kTypeFieldNumber = 1, + }; + // string billing_email = 2 [json_name = "billingEmail"]; + void clear_billing_email(); + const std::string& billing_email() const; + template + void set_billing_email(ArgT0&& arg0, ArgT... args); + std::string* mutable_billing_email(); + PROTOBUF_NODISCARD std::string* release_billing_email(); + void set_allocated_billing_email(std::string* billing_email); + private: + const std::string& _internal_billing_email() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_billing_email(const std::string& value); + std::string* _internal_mutable_billing_email(); + public: + + // optional string billing_tier = 4 [json_name = "billingTier"]; + bool has_billing_tier() const; + private: + bool _internal_has_billing_tier() const; + public: + void clear_billing_tier(); + const std::string& billing_tier() const; + template + void set_billing_tier(ArgT0&& arg0, ArgT... args); + std::string* mutable_billing_tier(); + PROTOBUF_NODISCARD std::string* release_billing_tier(); + void set_allocated_billing_tier(std::string* billing_tier); + private: + const std::string& _internal_billing_tier() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_billing_tier(const std::string& value); + std::string* _internal_mutable_billing_tier(); + public: + + // optional .viam.app.v1.PaymentMethodCard method = 3 [json_name = "method"]; + bool has_method() const; + private: + bool _internal_has_method() const; + public: + void clear_method(); + const ::viam::app::v1::PaymentMethodCard& method() const; + PROTOBUF_NODISCARD ::viam::app::v1::PaymentMethodCard* release_method(); + ::viam::app::v1::PaymentMethodCard* mutable_method(); + void set_allocated_method(::viam::app::v1::PaymentMethodCard* method); + private: + const ::viam::app::v1::PaymentMethodCard& _internal_method() const; + ::viam::app::v1::PaymentMethodCard* _internal_mutable_method(); public: + void unsafe_arena_set_allocated_method( + ::viam::app::v1::PaymentMethodCard* method); + ::viam::app::v1::PaymentMethodCard* unsafe_arena_release_method(); - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kOrgIdFieldNumber = 1, - }; - // string org_id = 1 [json_name = "orgId"]; - void clear_org_id() ; - const std::string& org_id() const; - template - void set_org_id(Arg_&& arg, Args_... args); - std::string* mutable_org_id(); - PROTOBUF_NODISCARD std::string* release_org_id(); - void set_allocated_org_id(std::string* value); - + // .viam.app.v1.PaymentMethodType type = 1 [json_name = "type"]; + void clear_type(); + ::viam::app::v1::PaymentMethodType type() const; + void set_type(::viam::app::v1::PaymentMethodType value); private: - const std::string& _internal_org_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_org_id( - const std::string& value); - std::string* _internal_mutable_org_id(); - + ::viam::app::v1::PaymentMethodType _internal_type() const; + void _internal_set_type(::viam::app::v1::PaymentMethodType value); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.GetCurrentMonthUsageRequest) + + // @@protoc_insertion_point(class_scope:viam.app.v1.GetOrgBillingInformationResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 54, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr org_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr billing_email_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr billing_tier_; + ::viam::app::v1::PaymentMethodCard* method_; + int type_; friend struct ::TableStruct_app_2fv1_2fbilling_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ResourceUsageCosts final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ResourceUsageCosts) */ { +class GetInvoicesSummaryRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetInvoicesSummaryRequest) */ { public: - inline ResourceUsageCosts() : ResourceUsageCosts(nullptr) {} - ~ResourceUsageCosts() override; - template - explicit PROTOBUF_CONSTEXPR ResourceUsageCosts(::google::protobuf::internal::ConstantInitialized); + inline GetInvoicesSummaryRequest() : GetInvoicesSummaryRequest(nullptr) {} + ~GetInvoicesSummaryRequest() override; + explicit PROTOBUF_CONSTEXPR GetInvoicesSummaryRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ResourceUsageCosts(const ResourceUsageCosts& from) - : ResourceUsageCosts(nullptr, from) {} - ResourceUsageCosts(ResourceUsageCosts&& from) noexcept - : ResourceUsageCosts() { + GetInvoicesSummaryRequest(const GetInvoicesSummaryRequest& from); + GetInvoicesSummaryRequest(GetInvoicesSummaryRequest&& from) noexcept + : GetInvoicesSummaryRequest() { *this = ::std::move(from); } - inline ResourceUsageCosts& operator=(const ResourceUsageCosts& from) { + inline GetInvoicesSummaryRequest& operator=(const GetInvoicesSummaryRequest& from) { CopyFrom(from); return *this; } - inline ResourceUsageCosts& operator=(ResourceUsageCosts&& from) noexcept { + inline GetInvoicesSummaryRequest& operator=(GetInvoicesSummaryRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1907,216 +1985,145 @@ class ResourceUsageCosts final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ResourceUsageCosts& default_instance() { + static const GetInvoicesSummaryRequest& default_instance() { return *internal_default_instance(); } - static inline const ResourceUsageCosts* internal_default_instance() { - return reinterpret_cast( - &_ResourceUsageCosts_default_instance_); + static inline const GetInvoicesSummaryRequest* internal_default_instance() { + return reinterpret_cast( + &_GetInvoicesSummaryRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 5; + 9; - friend void swap(ResourceUsageCosts& a, ResourceUsageCosts& b) { + friend void swap(GetInvoicesSummaryRequest& a, GetInvoicesSummaryRequest& b) { a.Swap(&b); } - inline void Swap(ResourceUsageCosts* other) { + inline void Swap(GetInvoicesSummaryRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ResourceUsageCosts* other) { + void UnsafeArenaSwap(GetInvoicesSummaryRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ResourceUsageCosts* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ResourceUsageCosts& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ResourceUsageCosts& from) { - ResourceUsageCosts::MergeImpl(*this, from); + GetInvoicesSummaryRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetInvoicesSummaryRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetInvoicesSummaryRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ResourceUsageCosts* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetInvoicesSummaryRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.ResourceUsageCosts"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.GetInvoicesSummaryRequest"; } protected: - explicit ResourceUsageCosts(::google::protobuf::Arena* arena); - ResourceUsageCosts(::google::protobuf::Arena* arena, const ResourceUsageCosts& from); + explicit GetInvoicesSummaryRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kUsageCostsFieldNumber = 1, - kDiscountFieldNumber = 2, - kTotalWithDiscountFieldNumber = 3, - kTotalWithoutDiscountFieldNumber = 4, + kOrgIdFieldNumber = 1, }; - // repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"]; - int usage_costs_size() const; - private: - int _internal_usage_costs_size() const; - - public: - void clear_usage_costs() ; - ::viam::app::v1::UsageCost* mutable_usage_costs(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::UsageCost >* - mutable_usage_costs(); - private: - const ::google::protobuf::RepeatedPtrField<::viam::app::v1::UsageCost>& _internal_usage_costs() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::UsageCost>* _internal_mutable_usage_costs(); - public: - const ::viam::app::v1::UsageCost& usage_costs(int index) const; - ::viam::app::v1::UsageCost* add_usage_costs(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::UsageCost >& - usage_costs() const; - // double discount = 2 [json_name = "discount"]; - void clear_discount() ; - double discount() const; - void set_discount(double value); - - private: - double _internal_discount() const; - void _internal_set_discount(double value); - - public: - // double total_with_discount = 3 [json_name = "totalWithDiscount"]; - void clear_total_with_discount() ; - double total_with_discount() const; - void set_total_with_discount(double value); - + // string org_id = 1 [json_name = "orgId"]; + void clear_org_id(); + const std::string& org_id() const; + template + void set_org_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_org_id(); + PROTOBUF_NODISCARD std::string* release_org_id(); + void set_allocated_org_id(std::string* org_id); private: - double _internal_total_with_discount() const; - void _internal_set_total_with_discount(double value); - + const std::string& _internal_org_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_org_id(const std::string& value); + std::string* _internal_mutable_org_id(); public: - // double total_without_discount = 4 [json_name = "totalWithoutDiscount"]; - void clear_total_without_discount() ; - double total_without_discount() const; - void set_total_without_discount(double value); - private: - double _internal_total_without_discount() const; - void _internal_set_total_without_discount(double value); - - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.ResourceUsageCosts) + // @@protoc_insertion_point(class_scope:viam.app.v1.GetInvoicesSummaryRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::UsageCost > usage_costs_; - double discount_; - double total_with_discount_; - double total_without_discount_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr org_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fbilling_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class InvoiceSummary final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.InvoiceSummary) */ { +class GetInvoicesSummaryResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetInvoicesSummaryResponse) */ { public: - inline InvoiceSummary() : InvoiceSummary(nullptr) {} - ~InvoiceSummary() override; - template - explicit PROTOBUF_CONSTEXPR InvoiceSummary(::google::protobuf::internal::ConstantInitialized); + inline GetInvoicesSummaryResponse() : GetInvoicesSummaryResponse(nullptr) {} + ~GetInvoicesSummaryResponse() override; + explicit PROTOBUF_CONSTEXPR GetInvoicesSummaryResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline InvoiceSummary(const InvoiceSummary& from) - : InvoiceSummary(nullptr, from) {} - InvoiceSummary(InvoiceSummary&& from) noexcept - : InvoiceSummary() { + GetInvoicesSummaryResponse(const GetInvoicesSummaryResponse& from); + GetInvoicesSummaryResponse(GetInvoicesSummaryResponse&& from) noexcept + : GetInvoicesSummaryResponse() { *this = ::std::move(from); } - inline InvoiceSummary& operator=(const InvoiceSummary& from) { + inline GetInvoicesSummaryResponse& operator=(const GetInvoicesSummaryResponse& from) { CopyFrom(from); return *this; } - inline InvoiceSummary& operator=(InvoiceSummary&& from) noexcept { + inline GetInvoicesSummaryResponse& operator=(GetInvoicesSummaryResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2126,260 +2133,160 @@ class InvoiceSummary final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const InvoiceSummary& default_instance() { + static const GetInvoicesSummaryResponse& default_instance() { return *internal_default_instance(); } - static inline const InvoiceSummary* internal_default_instance() { - return reinterpret_cast( - &_InvoiceSummary_default_instance_); + static inline const GetInvoicesSummaryResponse* internal_default_instance() { + return reinterpret_cast( + &_GetInvoicesSummaryResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 0; + 10; - friend void swap(InvoiceSummary& a, InvoiceSummary& b) { + friend void swap(GetInvoicesSummaryResponse& a, GetInvoicesSummaryResponse& b) { a.Swap(&b); } - inline void Swap(InvoiceSummary* other) { + inline void Swap(GetInvoicesSummaryResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(InvoiceSummary* other) { + void UnsafeArenaSwap(GetInvoicesSummaryResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - InvoiceSummary* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const InvoiceSummary& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const InvoiceSummary& from) { - InvoiceSummary::MergeImpl(*this, from); + GetInvoicesSummaryResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetInvoicesSummaryResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetInvoicesSummaryResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(InvoiceSummary* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetInvoicesSummaryResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.InvoiceSummary"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.GetInvoicesSummaryResponse"; } protected: - explicit InvoiceSummary(::google::protobuf::Arena* arena); - InvoiceSummary(::google::protobuf::Arena* arena, const InvoiceSummary& from); + explicit GetInvoicesSummaryResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kIdFieldNumber = 1, - kStatusFieldNumber = 4, - kInvoiceDateFieldNumber = 2, - kDueDateFieldNumber = 5, - kPaidDateFieldNumber = 6, - kInvoiceAmountFieldNumber = 3, + kInvoicesFieldNumber = 2, + kOutstandingBalanceFieldNumber = 1, }; - // string id = 1 [json_name = "id"]; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - - private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); - - public: - // string status = 4 [json_name = "status"]; - void clear_status() ; - const std::string& status() const; - template - void set_status(Arg_&& arg, Args_... args); - std::string* mutable_status(); - PROTOBUF_NODISCARD std::string* release_status(); - void set_allocated_status(std::string* value); - - private: - const std::string& _internal_status() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_status( - const std::string& value); - std::string* _internal_mutable_status(); - - public: - // .google.protobuf.Timestamp invoice_date = 2 [json_name = "invoiceDate"]; - bool has_invoice_date() const; - void clear_invoice_date() ; - const ::google::protobuf::Timestamp& invoice_date() const; - PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_invoice_date(); - ::google::protobuf::Timestamp* mutable_invoice_date(); - void set_allocated_invoice_date(::google::protobuf::Timestamp* value); - void unsafe_arena_set_allocated_invoice_date(::google::protobuf::Timestamp* value); - ::google::protobuf::Timestamp* unsafe_arena_release_invoice_date(); - + // repeated .viam.app.v1.InvoiceSummary invoices = 2 [json_name = "invoices"]; + int invoices_size() const; private: - const ::google::protobuf::Timestamp& _internal_invoice_date() const; - ::google::protobuf::Timestamp* _internal_mutable_invoice_date(); - + int _internal_invoices_size() const; public: - // .google.protobuf.Timestamp due_date = 5 [json_name = "dueDate"]; - bool has_due_date() const; - void clear_due_date() ; - const ::google::protobuf::Timestamp& due_date() const; - PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_due_date(); - ::google::protobuf::Timestamp* mutable_due_date(); - void set_allocated_due_date(::google::protobuf::Timestamp* value); - void unsafe_arena_set_allocated_due_date(::google::protobuf::Timestamp* value); - ::google::protobuf::Timestamp* unsafe_arena_release_due_date(); - + void clear_invoices(); + ::viam::app::v1::InvoiceSummary* mutable_invoices(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::InvoiceSummary >* + mutable_invoices(); private: - const ::google::protobuf::Timestamp& _internal_due_date() const; - ::google::protobuf::Timestamp* _internal_mutable_due_date(); - + const ::viam::app::v1::InvoiceSummary& _internal_invoices(int index) const; + ::viam::app::v1::InvoiceSummary* _internal_add_invoices(); public: - // .google.protobuf.Timestamp paid_date = 6 [json_name = "paidDate"]; - bool has_paid_date() const; - void clear_paid_date() ; - const ::google::protobuf::Timestamp& paid_date() const; - PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_paid_date(); - ::google::protobuf::Timestamp* mutable_paid_date(); - void set_allocated_paid_date(::google::protobuf::Timestamp* value); - void unsafe_arena_set_allocated_paid_date(::google::protobuf::Timestamp* value); - ::google::protobuf::Timestamp* unsafe_arena_release_paid_date(); + const ::viam::app::v1::InvoiceSummary& invoices(int index) const; + ::viam::app::v1::InvoiceSummary* add_invoices(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::InvoiceSummary >& + invoices() const; + // double outstanding_balance = 1 [json_name = "outstandingBalance"]; + void clear_outstanding_balance(); + double outstanding_balance() const; + void set_outstanding_balance(double value); private: - const ::google::protobuf::Timestamp& _internal_paid_date() const; - ::google::protobuf::Timestamp* _internal_mutable_paid_date(); - + double _internal_outstanding_balance() const; + void _internal_set_outstanding_balance(double value); public: - // double invoice_amount = 3 [json_name = "invoiceAmount"]; - void clear_invoice_amount() ; - double invoice_amount() const; - void set_invoice_amount(double value); - - private: - double _internal_invoice_amount() const; - void _internal_set_invoice_amount(double value); - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.InvoiceSummary) + // @@protoc_insertion_point(class_scope:viam.app.v1.GetInvoicesSummaryResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 6, 3, - 43, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr id_; - ::google::protobuf::internal::ArenaStringPtr status_; - ::google::protobuf::Timestamp* invoice_date_; - ::google::protobuf::Timestamp* due_date_; - ::google::protobuf::Timestamp* paid_date_; - double invoice_amount_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::InvoiceSummary > invoices_; + double outstanding_balance_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fbilling_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetOrgBillingInformationResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetOrgBillingInformationResponse) */ { +class GetInvoicePdfRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetInvoicePdfRequest) */ { public: - inline GetOrgBillingInformationResponse() : GetOrgBillingInformationResponse(nullptr) {} - ~GetOrgBillingInformationResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetOrgBillingInformationResponse(::google::protobuf::internal::ConstantInitialized); + inline GetInvoicePdfRequest() : GetInvoicePdfRequest(nullptr) {} + ~GetInvoicePdfRequest() override; + explicit PROTOBUF_CONSTEXPR GetInvoicePdfRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetOrgBillingInformationResponse(const GetOrgBillingInformationResponse& from) - : GetOrgBillingInformationResponse(nullptr, from) {} - GetOrgBillingInformationResponse(GetOrgBillingInformationResponse&& from) noexcept - : GetOrgBillingInformationResponse() { + GetInvoicePdfRequest(const GetInvoicePdfRequest& from); + GetInvoicePdfRequest(GetInvoicePdfRequest&& from) noexcept + : GetInvoicePdfRequest() { *this = ::std::move(from); } - inline GetOrgBillingInformationResponse& operator=(const GetOrgBillingInformationResponse& from) { + inline GetInvoicePdfRequest& operator=(const GetInvoicePdfRequest& from) { CopyFrom(from); return *this; } - inline GetOrgBillingInformationResponse& operator=(GetOrgBillingInformationResponse&& from) noexcept { + inline GetInvoicePdfRequest& operator=(GetInvoicePdfRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2389,227 +2296,161 @@ class GetOrgBillingInformationResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetOrgBillingInformationResponse& default_instance() { + static const GetInvoicePdfRequest& default_instance() { return *internal_default_instance(); } - static inline const GetOrgBillingInformationResponse* internal_default_instance() { - return reinterpret_cast( - &_GetOrgBillingInformationResponse_default_instance_); + static inline const GetInvoicePdfRequest* internal_default_instance() { + return reinterpret_cast( + &_GetInvoicePdfRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 8; + 11; - friend void swap(GetOrgBillingInformationResponse& a, GetOrgBillingInformationResponse& b) { + friend void swap(GetInvoicePdfRequest& a, GetInvoicePdfRequest& b) { a.Swap(&b); } - inline void Swap(GetOrgBillingInformationResponse* other) { + inline void Swap(GetInvoicePdfRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetOrgBillingInformationResponse* other) { + void UnsafeArenaSwap(GetInvoicePdfRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetOrgBillingInformationResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetOrgBillingInformationResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetOrgBillingInformationResponse& from) { - GetOrgBillingInformationResponse::MergeImpl(*this, from); + GetInvoicePdfRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetInvoicePdfRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetInvoicePdfRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetOrgBillingInformationResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetInvoicePdfRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.GetOrgBillingInformationResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.GetInvoicePdfRequest"; } protected: - explicit GetOrgBillingInformationResponse(::google::protobuf::Arena* arena); - GetOrgBillingInformationResponse(::google::protobuf::Arena* arena, const GetOrgBillingInformationResponse& from); + explicit GetInvoicePdfRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kBillingEmailFieldNumber = 2, - kBillingTierFieldNumber = 4, - kMethodFieldNumber = 3, - kTypeFieldNumber = 1, + kIdFieldNumber = 1, + kOrgIdFieldNumber = 2, }; - // string billing_email = 2 [json_name = "billingEmail"]; - void clear_billing_email() ; - const std::string& billing_email() const; - template - void set_billing_email(Arg_&& arg, Args_... args); - std::string* mutable_billing_email(); - PROTOBUF_NODISCARD std::string* release_billing_email(); - void set_allocated_billing_email(std::string* value); - - private: - const std::string& _internal_billing_email() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_billing_email( - const std::string& value); - std::string* _internal_mutable_billing_email(); - - public: - // optional string billing_tier = 4 [json_name = "billingTier"]; - bool has_billing_tier() const; - void clear_billing_tier() ; - const std::string& billing_tier() const; - template - void set_billing_tier(Arg_&& arg, Args_... args); - std::string* mutable_billing_tier(); - PROTOBUF_NODISCARD std::string* release_billing_tier(); - void set_allocated_billing_tier(std::string* value); - + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); private: - const std::string& _internal_billing_tier() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_billing_tier( - const std::string& value); - std::string* _internal_mutable_billing_tier(); - + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); public: - // optional .viam.app.v1.PaymentMethodCard method = 3 [json_name = "method"]; - bool has_method() const; - void clear_method() ; - const ::viam::app::v1::PaymentMethodCard& method() const; - PROTOBUF_NODISCARD ::viam::app::v1::PaymentMethodCard* release_method(); - ::viam::app::v1::PaymentMethodCard* mutable_method(); - void set_allocated_method(::viam::app::v1::PaymentMethodCard* value); - void unsafe_arena_set_allocated_method(::viam::app::v1::PaymentMethodCard* value); - ::viam::app::v1::PaymentMethodCard* unsafe_arena_release_method(); + // string org_id = 2 [json_name = "orgId"]; + void clear_org_id(); + const std::string& org_id() const; + template + void set_org_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_org_id(); + PROTOBUF_NODISCARD std::string* release_org_id(); + void set_allocated_org_id(std::string* org_id); private: - const ::viam::app::v1::PaymentMethodCard& _internal_method() const; - ::viam::app::v1::PaymentMethodCard* _internal_mutable_method(); - + const std::string& _internal_org_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_org_id(const std::string& value); + std::string* _internal_mutable_org_id(); public: - // .viam.app.v1.PaymentMethodType type = 1 [json_name = "type"]; - void clear_type() ; - ::viam::app::v1::PaymentMethodType type() const; - void set_type(::viam::app::v1::PaymentMethodType value); - private: - ::viam::app::v1::PaymentMethodType _internal_type() const; - void _internal_set_type(::viam::app::v1::PaymentMethodType value); - - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.GetOrgBillingInformationResponse) + // @@protoc_insertion_point(class_scope:viam.app.v1.GetInvoicePdfRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 1, - 78, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr billing_email_; - ::google::protobuf::internal::ArenaStringPtr billing_tier_; - ::viam::app::v1::PaymentMethodCard* method_; - int type_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr org_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fbilling_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ResourceUsageCostsBySource final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ResourceUsageCostsBySource) */ { +class GetInvoicePdfResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetInvoicePdfResponse) */ { public: - inline ResourceUsageCostsBySource() : ResourceUsageCostsBySource(nullptr) {} - ~ResourceUsageCostsBySource() override; - template - explicit PROTOBUF_CONSTEXPR ResourceUsageCostsBySource(::google::protobuf::internal::ConstantInitialized); + inline GetInvoicePdfResponse() : GetInvoicePdfResponse(nullptr) {} + ~GetInvoicePdfResponse() override; + explicit PROTOBUF_CONSTEXPR GetInvoicePdfResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ResourceUsageCostsBySource(const ResourceUsageCostsBySource& from) - : ResourceUsageCostsBySource(nullptr, from) {} - ResourceUsageCostsBySource(ResourceUsageCostsBySource&& from) noexcept - : ResourceUsageCostsBySource() { + GetInvoicePdfResponse(const GetInvoicePdfResponse& from); + GetInvoicePdfResponse(GetInvoicePdfResponse&& from) noexcept + : GetInvoicePdfResponse() { *this = ::std::move(from); } - inline ResourceUsageCostsBySource& operator=(const ResourceUsageCostsBySource& from) { + inline GetInvoicePdfResponse& operator=(const GetInvoicePdfResponse& from) { CopyFrom(from); return *this; } - inline ResourceUsageCostsBySource& operator=(ResourceUsageCostsBySource&& from) noexcept { + inline GetInvoicePdfResponse& operator=(GetInvoicePdfResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2619,208 +2460,145 @@ class ResourceUsageCostsBySource final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ResourceUsageCostsBySource& default_instance() { + static const GetInvoicePdfResponse& default_instance() { return *internal_default_instance(); } - static inline const ResourceUsageCostsBySource* internal_default_instance() { - return reinterpret_cast( - &_ResourceUsageCostsBySource_default_instance_); + static inline const GetInvoicePdfResponse* internal_default_instance() { + return reinterpret_cast( + &_GetInvoicePdfResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 4; + 12; - friend void swap(ResourceUsageCostsBySource& a, ResourceUsageCostsBySource& b) { + friend void swap(GetInvoicePdfResponse& a, GetInvoicePdfResponse& b) { a.Swap(&b); } - inline void Swap(ResourceUsageCostsBySource* other) { + inline void Swap(GetInvoicePdfResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ResourceUsageCostsBySource* other) { + void UnsafeArenaSwap(GetInvoicePdfResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ResourceUsageCostsBySource* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ResourceUsageCostsBySource& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ResourceUsageCostsBySource& from) { - ResourceUsageCostsBySource::MergeImpl(*this, from); + GetInvoicePdfResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetInvoicePdfResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetInvoicePdfResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ResourceUsageCostsBySource* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetInvoicePdfResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.ResourceUsageCostsBySource"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.GetInvoicePdfResponse"; } protected: - explicit ResourceUsageCostsBySource(::google::protobuf::Arena* arena); - ResourceUsageCostsBySource(::google::protobuf::Arena* arena, const ResourceUsageCostsBySource& from); + explicit GetInvoicePdfResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kTierNameFieldNumber = 3, - kResourceUsageCostsFieldNumber = 2, - kSourceTypeFieldNumber = 1, + kChunkFieldNumber = 1, }; - // string tier_name = 3 [json_name = "tierName"]; - void clear_tier_name() ; - const std::string& tier_name() const; - template - void set_tier_name(Arg_&& arg, Args_... args); - std::string* mutable_tier_name(); - PROTOBUF_NODISCARD std::string* release_tier_name(); - void set_allocated_tier_name(std::string* value); - - private: - const std::string& _internal_tier_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_tier_name( - const std::string& value); - std::string* _internal_mutable_tier_name(); - - public: - // .viam.app.v1.ResourceUsageCosts resource_usage_costs = 2 [json_name = "resourceUsageCosts"]; - bool has_resource_usage_costs() const; - void clear_resource_usage_costs() ; - const ::viam::app::v1::ResourceUsageCosts& resource_usage_costs() const; - PROTOBUF_NODISCARD ::viam::app::v1::ResourceUsageCosts* release_resource_usage_costs(); - ::viam::app::v1::ResourceUsageCosts* mutable_resource_usage_costs(); - void set_allocated_resource_usage_costs(::viam::app::v1::ResourceUsageCosts* value); - void unsafe_arena_set_allocated_resource_usage_costs(::viam::app::v1::ResourceUsageCosts* value); - ::viam::app::v1::ResourceUsageCosts* unsafe_arena_release_resource_usage_costs(); - + // bytes chunk = 1 [json_name = "chunk"]; + void clear_chunk(); + const std::string& chunk() const; + template + void set_chunk(ArgT0&& arg0, ArgT... args); + std::string* mutable_chunk(); + PROTOBUF_NODISCARD std::string* release_chunk(); + void set_allocated_chunk(std::string* chunk); private: - const ::viam::app::v1::ResourceUsageCosts& _internal_resource_usage_costs() const; - ::viam::app::v1::ResourceUsageCosts* _internal_mutable_resource_usage_costs(); - + const std::string& _internal_chunk() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_chunk(const std::string& value); + std::string* _internal_mutable_chunk(); public: - // .viam.app.v1.SourceType source_type = 1 [json_name = "sourceType"]; - void clear_source_type() ; - ::viam::app::v1::SourceType source_type() const; - void set_source_type(::viam::app::v1::SourceType value); - - private: - ::viam::app::v1::SourceType _internal_source_type() const; - void _internal_set_source_type(::viam::app::v1::SourceType value); - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.ResourceUsageCostsBySource) + // @@protoc_insertion_point(class_scope:viam.app.v1.GetInvoicePdfResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 1, - 56, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr tier_name_; - ::viam::app::v1::ResourceUsageCosts* resource_usage_costs_; - int source_type_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr chunk_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fbilling_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetInvoicesSummaryResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetInvoicesSummaryResponse) */ { +class SendPaymentRequiredEmailRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.SendPaymentRequiredEmailRequest) */ { public: - inline GetInvoicesSummaryResponse() : GetInvoicesSummaryResponse(nullptr) {} - ~GetInvoicesSummaryResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetInvoicesSummaryResponse(::google::protobuf::internal::ConstantInitialized); + inline SendPaymentRequiredEmailRequest() : SendPaymentRequiredEmailRequest(nullptr) {} + ~SendPaymentRequiredEmailRequest() override; + explicit PROTOBUF_CONSTEXPR SendPaymentRequiredEmailRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetInvoicesSummaryResponse(const GetInvoicesSummaryResponse& from) - : GetInvoicesSummaryResponse(nullptr, from) {} - GetInvoicesSummaryResponse(GetInvoicesSummaryResponse&& from) noexcept - : GetInvoicesSummaryResponse() { + SendPaymentRequiredEmailRequest(const SendPaymentRequiredEmailRequest& from); + SendPaymentRequiredEmailRequest(SendPaymentRequiredEmailRequest&& from) noexcept + : SendPaymentRequiredEmailRequest() { *this = ::std::move(from); } - inline GetInvoicesSummaryResponse& operator=(const GetInvoicesSummaryResponse& from) { + inline SendPaymentRequiredEmailRequest& operator=(const SendPaymentRequiredEmailRequest& from) { CopyFrom(from); return *this; } - inline GetInvoicesSummaryResponse& operator=(GetInvoicesSummaryResponse&& from) noexcept { + inline SendPaymentRequiredEmailRequest& operator=(SendPaymentRequiredEmailRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2830,192 +2608,160 @@ class GetInvoicesSummaryResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetInvoicesSummaryResponse& default_instance() { + static const SendPaymentRequiredEmailRequest& default_instance() { return *internal_default_instance(); } - static inline const GetInvoicesSummaryResponse* internal_default_instance() { - return reinterpret_cast( - &_GetInvoicesSummaryResponse_default_instance_); + static inline const SendPaymentRequiredEmailRequest* internal_default_instance() { + return reinterpret_cast( + &_SendPaymentRequiredEmailRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 10; + 13; - friend void swap(GetInvoicesSummaryResponse& a, GetInvoicesSummaryResponse& b) { + friend void swap(SendPaymentRequiredEmailRequest& a, SendPaymentRequiredEmailRequest& b) { a.Swap(&b); } - inline void Swap(GetInvoicesSummaryResponse* other) { + inline void Swap(SendPaymentRequiredEmailRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetInvoicesSummaryResponse* other) { + void UnsafeArenaSwap(SendPaymentRequiredEmailRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetInvoicesSummaryResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetInvoicesSummaryResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetInvoicesSummaryResponse& from) { - GetInvoicesSummaryResponse::MergeImpl(*this, from); + SendPaymentRequiredEmailRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SendPaymentRequiredEmailRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const SendPaymentRequiredEmailRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetInvoicesSummaryResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(SendPaymentRequiredEmailRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.GetInvoicesSummaryResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.SendPaymentRequiredEmailRequest"; } protected: - explicit GetInvoicesSummaryResponse(::google::protobuf::Arena* arena); - GetInvoicesSummaryResponse(::google::protobuf::Arena* arena, const GetInvoicesSummaryResponse& from); + explicit SendPaymentRequiredEmailRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kInvoicesFieldNumber = 2, - kOutstandingBalanceFieldNumber = 1, + kCustomerOrgIdFieldNumber = 1, + kBillingOwnerOrgIdFieldNumber = 2, }; - // repeated .viam.app.v1.InvoiceSummary invoices = 2 [json_name = "invoices"]; - int invoices_size() const; - private: - int _internal_invoices_size() const; - - public: - void clear_invoices() ; - ::viam::app::v1::InvoiceSummary* mutable_invoices(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::InvoiceSummary >* - mutable_invoices(); + // string customer_org_id = 1 [json_name = "customerOrgId"]; + void clear_customer_org_id(); + const std::string& customer_org_id() const; + template + void set_customer_org_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_customer_org_id(); + PROTOBUF_NODISCARD std::string* release_customer_org_id(); + void set_allocated_customer_org_id(std::string* customer_org_id); private: - const ::google::protobuf::RepeatedPtrField<::viam::app::v1::InvoiceSummary>& _internal_invoices() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::InvoiceSummary>* _internal_mutable_invoices(); + const std::string& _internal_customer_org_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_customer_org_id(const std::string& value); + std::string* _internal_mutable_customer_org_id(); public: - const ::viam::app::v1::InvoiceSummary& invoices(int index) const; - ::viam::app::v1::InvoiceSummary* add_invoices(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::InvoiceSummary >& - invoices() const; - // double outstanding_balance = 1 [json_name = "outstandingBalance"]; - void clear_outstanding_balance() ; - double outstanding_balance() const; - void set_outstanding_balance(double value); + // string billing_owner_org_id = 2 [json_name = "billingOwnerOrgId"]; + void clear_billing_owner_org_id(); + const std::string& billing_owner_org_id() const; + template + void set_billing_owner_org_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_billing_owner_org_id(); + PROTOBUF_NODISCARD std::string* release_billing_owner_org_id(); + void set_allocated_billing_owner_org_id(std::string* billing_owner_org_id); private: - double _internal_outstanding_balance() const; - void _internal_set_outstanding_balance(double value); - + const std::string& _internal_billing_owner_org_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_billing_owner_org_id(const std::string& value); + std::string* _internal_mutable_billing_owner_org_id(); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.GetInvoicesSummaryResponse) + + // @@protoc_insertion_point(class_scope:viam.app.v1.SendPaymentRequiredEmailRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::InvoiceSummary > invoices_; - double outstanding_balance_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr customer_org_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr billing_owner_org_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fbilling_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetCurrentMonthUsageResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetCurrentMonthUsageResponse) */ { +class SendPaymentRequiredEmailResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.SendPaymentRequiredEmailResponse) */ { public: - inline GetCurrentMonthUsageResponse() : GetCurrentMonthUsageResponse(nullptr) {} - ~GetCurrentMonthUsageResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetCurrentMonthUsageResponse(::google::protobuf::internal::ConstantInitialized); + inline SendPaymentRequiredEmailResponse() : SendPaymentRequiredEmailResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR SendPaymentRequiredEmailResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetCurrentMonthUsageResponse(const GetCurrentMonthUsageResponse& from) - : GetCurrentMonthUsageResponse(nullptr, from) {} - GetCurrentMonthUsageResponse(GetCurrentMonthUsageResponse&& from) noexcept - : GetCurrentMonthUsageResponse() { + SendPaymentRequiredEmailResponse(const SendPaymentRequiredEmailResponse& from); + SendPaymentRequiredEmailResponse(SendPaymentRequiredEmailResponse&& from) noexcept + : SendPaymentRequiredEmailResponse() { *this = ::std::move(from); } - inline GetCurrentMonthUsageResponse& operator=(const GetCurrentMonthUsageResponse& from) { + inline SendPaymentRequiredEmailResponse& operator=(const SendPaymentRequiredEmailResponse& from) { CopyFrom(from); return *this; } - inline GetCurrentMonthUsageResponse& operator=(GetCurrentMonthUsageResponse&& from) noexcept { + inline SendPaymentRequiredEmailResponse& operator=(SendPaymentRequiredEmailResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3025,750 +2771,473 @@ class GetCurrentMonthUsageResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetCurrentMonthUsageResponse& default_instance() { + static const SendPaymentRequiredEmailResponse& default_instance() { return *internal_default_instance(); } - static inline const GetCurrentMonthUsageResponse* internal_default_instance() { - return reinterpret_cast( - &_GetCurrentMonthUsageResponse_default_instance_); + static inline const SendPaymentRequiredEmailResponse* internal_default_instance() { + return reinterpret_cast( + &_SendPaymentRequiredEmailResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 6; + 14; - friend void swap(GetCurrentMonthUsageResponse& a, GetCurrentMonthUsageResponse& b) { + friend void swap(SendPaymentRequiredEmailResponse& a, SendPaymentRequiredEmailResponse& b) { a.Swap(&b); } - inline void Swap(GetCurrentMonthUsageResponse* other) { + inline void Swap(SendPaymentRequiredEmailResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetCurrentMonthUsageResponse* other) { + void UnsafeArenaSwap(SendPaymentRequiredEmailResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetCurrentMonthUsageResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SendPaymentRequiredEmailResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetCurrentMonthUsageResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetCurrentMonthUsageResponse& from) { - GetCurrentMonthUsageResponse::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const SendPaymentRequiredEmailResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const SendPaymentRequiredEmailResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetCurrentMonthUsageResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.GetCurrentMonthUsageResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.SendPaymentRequiredEmailResponse"; } protected: - explicit GetCurrentMonthUsageResponse(::google::protobuf::Arena* arena); - GetCurrentMonthUsageResponse(::google::protobuf::Arena* arena, const GetCurrentMonthUsageResponse& from); + explicit SendPaymentRequiredEmailResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kResourceUsageCostsBySourceFieldNumber = 14, - kStartDateFieldNumber = 1, - kEndDateFieldNumber = 2, - kCloudStorageUsageCostFieldNumber = 3, - kDataUploadUsageCostFieldNumber = 4, - kDataEgresUsageCostFieldNumber = 5, - kRemoteControlUsageCostFieldNumber = 6, - kStandardComputeUsageCostFieldNumber = 7, - kDiscountAmountFieldNumber = 8, - kTotalUsageWithDiscountFieldNumber = 9, - kTotalUsageWithoutDiscountFieldNumber = 10, - kPerMachineUsageCostFieldNumber = 11, - kBinaryDataCloudStorageUsageCostFieldNumber = 12, - kOtherCloudStorageUsageCostFieldNumber = 13, - kSubtotalFieldNumber = 15, - }; - // repeated .viam.app.v1.ResourceUsageCostsBySource resource_usage_costs_by_source = 14 [json_name = "resourceUsageCostsBySource"]; - int resource_usage_costs_by_source_size() const; - private: - int _internal_resource_usage_costs_by_source_size() const; - - public: - void clear_resource_usage_costs_by_source() ; - ::viam::app::v1::ResourceUsageCostsBySource* mutable_resource_usage_costs_by_source(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::ResourceUsageCostsBySource >* - mutable_resource_usage_costs_by_source(); - private: - const ::google::protobuf::RepeatedPtrField<::viam::app::v1::ResourceUsageCostsBySource>& _internal_resource_usage_costs_by_source() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::ResourceUsageCostsBySource>* _internal_mutable_resource_usage_costs_by_source(); - public: - const ::viam::app::v1::ResourceUsageCostsBySource& resource_usage_costs_by_source(int index) const; - ::viam::app::v1::ResourceUsageCostsBySource* add_resource_usage_costs_by_source(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::ResourceUsageCostsBySource >& - resource_usage_costs_by_source() const; - // .google.protobuf.Timestamp start_date = 1 [json_name = "startDate"]; - bool has_start_date() const; - void clear_start_date() ; - const ::google::protobuf::Timestamp& start_date() const; - PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_start_date(); - ::google::protobuf::Timestamp* mutable_start_date(); - void set_allocated_start_date(::google::protobuf::Timestamp* value); - void unsafe_arena_set_allocated_start_date(::google::protobuf::Timestamp* value); - ::google::protobuf::Timestamp* unsafe_arena_release_start_date(); - - private: - const ::google::protobuf::Timestamp& _internal_start_date() const; - ::google::protobuf::Timestamp* _internal_mutable_start_date(); - - public: - // .google.protobuf.Timestamp end_date = 2 [json_name = "endDate"]; - bool has_end_date() const; - void clear_end_date() ; - const ::google::protobuf::Timestamp& end_date() const; - PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_end_date(); - ::google::protobuf::Timestamp* mutable_end_date(); - void set_allocated_end_date(::google::protobuf::Timestamp* value); - void unsafe_arena_set_allocated_end_date(::google::protobuf::Timestamp* value); - ::google::protobuf::Timestamp* unsafe_arena_release_end_date(); - - private: - const ::google::protobuf::Timestamp& _internal_end_date() const; - ::google::protobuf::Timestamp* _internal_mutable_end_date(); - - public: - // double cloud_storage_usage_cost = 3 [json_name = "cloudStorageUsageCost", deprecated = true]; - [[deprecated]] void clear_cloud_storage_usage_cost() ; - [[deprecated]] double cloud_storage_usage_cost() const; - [[deprecated]] void set_cloud_storage_usage_cost(double value); - - private: - double _internal_cloud_storage_usage_cost() const; - void _internal_set_cloud_storage_usage_cost(double value); - - public: - // double data_upload_usage_cost = 4 [json_name = "dataUploadUsageCost", deprecated = true]; - [[deprecated]] void clear_data_upload_usage_cost() ; - [[deprecated]] double data_upload_usage_cost() const; - [[deprecated]] void set_data_upload_usage_cost(double value); - - private: - double _internal_data_upload_usage_cost() const; - void _internal_set_data_upload_usage_cost(double value); - - public: - // double data_egres_usage_cost = 5 [json_name = "dataEgresUsageCost", deprecated = true]; - [[deprecated]] void clear_data_egres_usage_cost() ; - [[deprecated]] double data_egres_usage_cost() const; - [[deprecated]] void set_data_egres_usage_cost(double value); - - private: - double _internal_data_egres_usage_cost() const; - void _internal_set_data_egres_usage_cost(double value); - - public: - // double remote_control_usage_cost = 6 [json_name = "remoteControlUsageCost", deprecated = true]; - [[deprecated]] void clear_remote_control_usage_cost() ; - [[deprecated]] double remote_control_usage_cost() const; - [[deprecated]] void set_remote_control_usage_cost(double value); - - private: - double _internal_remote_control_usage_cost() const; - void _internal_set_remote_control_usage_cost(double value); - - public: - // double standard_compute_usage_cost = 7 [json_name = "standardComputeUsageCost", deprecated = true]; - [[deprecated]] void clear_standard_compute_usage_cost() ; - [[deprecated]] double standard_compute_usage_cost() const; - [[deprecated]] void set_standard_compute_usage_cost(double value); - - private: - double _internal_standard_compute_usage_cost() const; - void _internal_set_standard_compute_usage_cost(double value); - - public: - // double discount_amount = 8 [json_name = "discountAmount", deprecated = true]; - [[deprecated]] void clear_discount_amount() ; - [[deprecated]] double discount_amount() const; - [[deprecated]] void set_discount_amount(double value); - - private: - double _internal_discount_amount() const; - void _internal_set_discount_amount(double value); - - public: - // double total_usage_with_discount = 9 [json_name = "totalUsageWithDiscount", deprecated = true]; - [[deprecated]] void clear_total_usage_with_discount() ; - [[deprecated]] double total_usage_with_discount() const; - [[deprecated]] void set_total_usage_with_discount(double value); - - private: - double _internal_total_usage_with_discount() const; - void _internal_set_total_usage_with_discount(double value); - - public: - // double total_usage_without_discount = 10 [json_name = "totalUsageWithoutDiscount", deprecated = true]; - [[deprecated]] void clear_total_usage_without_discount() ; - [[deprecated]] double total_usage_without_discount() const; - [[deprecated]] void set_total_usage_without_discount(double value); - - private: - double _internal_total_usage_without_discount() const; - void _internal_set_total_usage_without_discount(double value); - - public: - // double per_machine_usage_cost = 11 [json_name = "perMachineUsageCost", deprecated = true]; - [[deprecated]] void clear_per_machine_usage_cost() ; - [[deprecated]] double per_machine_usage_cost() const; - [[deprecated]] void set_per_machine_usage_cost(double value); - - private: - double _internal_per_machine_usage_cost() const; - void _internal_set_per_machine_usage_cost(double value); - - public: - // double binary_data_cloud_storage_usage_cost = 12 [json_name = "binaryDataCloudStorageUsageCost", deprecated = true]; - [[deprecated]] void clear_binary_data_cloud_storage_usage_cost() ; - [[deprecated]] double binary_data_cloud_storage_usage_cost() const; - [[deprecated]] void set_binary_data_cloud_storage_usage_cost(double value); - - private: - double _internal_binary_data_cloud_storage_usage_cost() const; - void _internal_set_binary_data_cloud_storage_usage_cost(double value); - - public: - // double other_cloud_storage_usage_cost = 13 [json_name = "otherCloudStorageUsageCost", deprecated = true]; - [[deprecated]] void clear_other_cloud_storage_usage_cost() ; - [[deprecated]] double other_cloud_storage_usage_cost() const; - [[deprecated]] void set_other_cloud_storage_usage_cost(double value); - - private: - double _internal_other_cloud_storage_usage_cost() const; - void _internal_set_other_cloud_storage_usage_cost(double value); - - public: - // double subtotal = 15 [json_name = "subtotal"]; - void clear_subtotal() ; - double subtotal() const; - void set_subtotal(double value); - - private: - double _internal_subtotal() const; - void _internal_set_subtotal(double value); - - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.GetCurrentMonthUsageResponse) + // @@protoc_insertion_point(class_scope:viam.app.v1.SendPaymentRequiredEmailResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 4, 15, 3, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::ResourceUsageCostsBySource > resource_usage_costs_by_source_; - ::google::protobuf::Timestamp* start_date_; - ::google::protobuf::Timestamp* end_date_; - double cloud_storage_usage_cost_; - double data_upload_usage_cost_; - double data_egres_usage_cost_; - double remote_control_usage_cost_; - double standard_compute_usage_cost_; - double discount_amount_; - double total_usage_with_discount_; - double total_usage_without_discount_; - double per_machine_usage_cost_; - double binary_data_cloud_storage_usage_cost_; - double other_cloud_storage_usage_cost_; - double subtotal_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_app_2fv1_2fbilling_2eproto; }; - // =================================================================== - - // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ -// ------------------------------------------------------------------- - // InvoiceSummary // string id = 1 [json_name = "id"]; inline void InvoiceSummary::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); + id_.ClearToEmpty(); } -inline const std::string& InvoiceSummary::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& InvoiceSummary::id() const { // @@protoc_insertion_point(field_get:viam.app.v1.InvoiceSummary.id) return _internal_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void InvoiceSummary::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void InvoiceSummary::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.InvoiceSummary.id) } -inline std::string* InvoiceSummary::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* InvoiceSummary::mutable_id() { std::string* _s = _internal_mutable_id(); // @@protoc_insertion_point(field_mutable:viam.app.v1.InvoiceSummary.id) return _s; } inline const std::string& InvoiceSummary::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); + return id_.Get(); } inline void InvoiceSummary::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); + + id_.Set(value, GetArenaForAllocation()); } inline std::string* InvoiceSummary::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); + + return id_.Mutable(GetArenaForAllocation()); } inline std::string* InvoiceSummary::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.InvoiceSummary.id) - return _impl_.id_.Release(); -} -inline void InvoiceSummary::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return id_.Release(); +} +inline void InvoiceSummary::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.InvoiceSummary.id) } // .google.protobuf.Timestamp invoice_date = 2 [json_name = "invoiceDate"]; +inline bool InvoiceSummary::_internal_has_invoice_date() const { + return this != internal_default_instance() && invoice_date_ != nullptr; +} inline bool InvoiceSummary::has_invoice_date() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.invoice_date_ != nullptr); - return value; + return _internal_has_invoice_date(); } -inline const ::google::protobuf::Timestamp& InvoiceSummary::_internal_invoice_date() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Timestamp* p = _impl_.invoice_date_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& InvoiceSummary::_internal_invoice_date() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = invoice_date_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); } -inline const ::google::protobuf::Timestamp& InvoiceSummary::invoice_date() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& InvoiceSummary::invoice_date() const { // @@protoc_insertion_point(field_get:viam.app.v1.InvoiceSummary.invoice_date) return _internal_invoice_date(); } -inline void InvoiceSummary::unsafe_arena_set_allocated_invoice_date(::google::protobuf::Timestamp* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.invoice_date_); +inline void InvoiceSummary::unsafe_arena_set_allocated_invoice_date( + ::PROTOBUF_NAMESPACE_ID::Timestamp* invoice_date) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(invoice_date_); } - _impl_.invoice_date_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + invoice_date_ = invoice_date; + if (invoice_date) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.InvoiceSummary.invoice_date) } -inline ::google::protobuf::Timestamp* InvoiceSummary::release_invoice_date() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Timestamp* released = _impl_.invoice_date_; - _impl_.invoice_date_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* InvoiceSummary::release_invoice_date() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = invoice_date_; + invoice_date_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Timestamp* InvoiceSummary::unsafe_arena_release_invoice_date() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* InvoiceSummary::unsafe_arena_release_invoice_date() { // @@protoc_insertion_point(field_release:viam.app.v1.InvoiceSummary.invoice_date) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Timestamp* temp = _impl_.invoice_date_; - _impl_.invoice_date_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = invoice_date_; + invoice_date_ = nullptr; return temp; } -inline ::google::protobuf::Timestamp* InvoiceSummary::_internal_mutable_invoice_date() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.invoice_date_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena()); - _impl_.invoice_date_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* InvoiceSummary::_internal_mutable_invoice_date() { + + if (invoice_date_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + invoice_date_ = p; } - return _impl_.invoice_date_; + return invoice_date_; } -inline ::google::protobuf::Timestamp* InvoiceSummary::mutable_invoice_date() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Timestamp* _msg = _internal_mutable_invoice_date(); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* InvoiceSummary::mutable_invoice_date() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_invoice_date(); // @@protoc_insertion_point(field_mutable:viam.app.v1.InvoiceSummary.invoice_date) return _msg; } -inline void InvoiceSummary::set_allocated_invoice_date(::google::protobuf::Timestamp* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void InvoiceSummary::set_allocated_invoice_date(::PROTOBUF_NAMESPACE_ID::Timestamp* invoice_date) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.invoice_date_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(invoice_date_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (invoice_date) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(invoice_date)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + invoice_date = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, invoice_date, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.invoice_date_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); + invoice_date_ = invoice_date; // @@protoc_insertion_point(field_set_allocated:viam.app.v1.InvoiceSummary.invoice_date) } // double invoice_amount = 3 [json_name = "invoiceAmount"]; inline void InvoiceSummary::clear_invoice_amount() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.invoice_amount_ = 0; + invoice_amount_ = 0; +} +inline double InvoiceSummary::_internal_invoice_amount() const { + return invoice_amount_; } inline double InvoiceSummary::invoice_amount() const { // @@protoc_insertion_point(field_get:viam.app.v1.InvoiceSummary.invoice_amount) return _internal_invoice_amount(); } +inline void InvoiceSummary::_internal_set_invoice_amount(double value) { + + invoice_amount_ = value; +} inline void InvoiceSummary::set_invoice_amount(double value) { _internal_set_invoice_amount(value); // @@protoc_insertion_point(field_set:viam.app.v1.InvoiceSummary.invoice_amount) } -inline double InvoiceSummary::_internal_invoice_amount() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.invoice_amount_; -} -inline void InvoiceSummary::_internal_set_invoice_amount(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.invoice_amount_ = value; -} // string status = 4 [json_name = "status"]; inline void InvoiceSummary::clear_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.status_.ClearToEmpty(); + status_.ClearToEmpty(); } -inline const std::string& InvoiceSummary::status() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& InvoiceSummary::status() const { // @@protoc_insertion_point(field_get:viam.app.v1.InvoiceSummary.status) return _internal_status(); } -template -inline PROTOBUF_ALWAYS_INLINE void InvoiceSummary::set_status(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.status_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void InvoiceSummary::set_status(ArgT0&& arg0, ArgT... args) { + + status_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.InvoiceSummary.status) } -inline std::string* InvoiceSummary::mutable_status() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* InvoiceSummary::mutable_status() { std::string* _s = _internal_mutable_status(); // @@protoc_insertion_point(field_mutable:viam.app.v1.InvoiceSummary.status) return _s; } inline const std::string& InvoiceSummary::_internal_status() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.status_.Get(); + return status_.Get(); } inline void InvoiceSummary::_internal_set_status(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.status_.Set(value, GetArena()); + + status_.Set(value, GetArenaForAllocation()); } inline std::string* InvoiceSummary::_internal_mutable_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.status_.Mutable( GetArena()); + + return status_.Mutable(GetArenaForAllocation()); } inline std::string* InvoiceSummary::release_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.InvoiceSummary.status) - return _impl_.status_.Release(); -} -inline void InvoiceSummary::set_allocated_status(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.status_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.status_.IsDefault()) { - _impl_.status_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return status_.Release(); +} +inline void InvoiceSummary::set_allocated_status(std::string* status) { + if (status != nullptr) { + + } else { + + } + status_.SetAllocated(status, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (status_.IsDefault()) { + status_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.InvoiceSummary.status) } // .google.protobuf.Timestamp due_date = 5 [json_name = "dueDate"]; +inline bool InvoiceSummary::_internal_has_due_date() const { + return this != internal_default_instance() && due_date_ != nullptr; +} inline bool InvoiceSummary::has_due_date() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.due_date_ != nullptr); - return value; + return _internal_has_due_date(); } -inline const ::google::protobuf::Timestamp& InvoiceSummary::_internal_due_date() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Timestamp* p = _impl_.due_date_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& InvoiceSummary::_internal_due_date() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = due_date_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); } -inline const ::google::protobuf::Timestamp& InvoiceSummary::due_date() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& InvoiceSummary::due_date() const { // @@protoc_insertion_point(field_get:viam.app.v1.InvoiceSummary.due_date) return _internal_due_date(); } -inline void InvoiceSummary::unsafe_arena_set_allocated_due_date(::google::protobuf::Timestamp* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.due_date_); +inline void InvoiceSummary::unsafe_arena_set_allocated_due_date( + ::PROTOBUF_NAMESPACE_ID::Timestamp* due_date) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(due_date_); } - _impl_.due_date_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + due_date_ = due_date; + if (due_date) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.InvoiceSummary.due_date) } -inline ::google::protobuf::Timestamp* InvoiceSummary::release_due_date() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Timestamp* released = _impl_.due_date_; - _impl_.due_date_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* InvoiceSummary::release_due_date() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = due_date_; + due_date_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Timestamp* InvoiceSummary::unsafe_arena_release_due_date() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* InvoiceSummary::unsafe_arena_release_due_date() { // @@protoc_insertion_point(field_release:viam.app.v1.InvoiceSummary.due_date) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Timestamp* temp = _impl_.due_date_; - _impl_.due_date_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = due_date_; + due_date_ = nullptr; return temp; } -inline ::google::protobuf::Timestamp* InvoiceSummary::_internal_mutable_due_date() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.due_date_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena()); - _impl_.due_date_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* InvoiceSummary::_internal_mutable_due_date() { + + if (due_date_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + due_date_ = p; } - return _impl_.due_date_; + return due_date_; } -inline ::google::protobuf::Timestamp* InvoiceSummary::mutable_due_date() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Timestamp* _msg = _internal_mutable_due_date(); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* InvoiceSummary::mutable_due_date() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_due_date(); // @@protoc_insertion_point(field_mutable:viam.app.v1.InvoiceSummary.due_date) return _msg; } -inline void InvoiceSummary::set_allocated_due_date(::google::protobuf::Timestamp* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void InvoiceSummary::set_allocated_due_date(::PROTOBUF_NAMESPACE_ID::Timestamp* due_date) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.due_date_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(due_date_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (due_date) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(due_date)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + due_date = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, due_date, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.due_date_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); + due_date_ = due_date; // @@protoc_insertion_point(field_set_allocated:viam.app.v1.InvoiceSummary.due_date) } // .google.protobuf.Timestamp paid_date = 6 [json_name = "paidDate"]; +inline bool InvoiceSummary::_internal_has_paid_date() const { + return this != internal_default_instance() && paid_date_ != nullptr; +} inline bool InvoiceSummary::has_paid_date() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || _impl_.paid_date_ != nullptr); - return value; + return _internal_has_paid_date(); } -inline const ::google::protobuf::Timestamp& InvoiceSummary::_internal_paid_date() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Timestamp* p = _impl_.paid_date_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& InvoiceSummary::_internal_paid_date() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = paid_date_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); } -inline const ::google::protobuf::Timestamp& InvoiceSummary::paid_date() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& InvoiceSummary::paid_date() const { // @@protoc_insertion_point(field_get:viam.app.v1.InvoiceSummary.paid_date) return _internal_paid_date(); } -inline void InvoiceSummary::unsafe_arena_set_allocated_paid_date(::google::protobuf::Timestamp* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.paid_date_); +inline void InvoiceSummary::unsafe_arena_set_allocated_paid_date( + ::PROTOBUF_NAMESPACE_ID::Timestamp* paid_date) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(paid_date_); } - _impl_.paid_date_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000004u; + paid_date_ = paid_date; + if (paid_date) { + } else { - _impl_._has_bits_[0] &= ~0x00000004u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.InvoiceSummary.paid_date) } -inline ::google::protobuf::Timestamp* InvoiceSummary::release_paid_date() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000004u; - ::google::protobuf::Timestamp* released = _impl_.paid_date_; - _impl_.paid_date_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* InvoiceSummary::release_paid_date() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = paid_date_; + paid_date_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Timestamp* InvoiceSummary::unsafe_arena_release_paid_date() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* InvoiceSummary::unsafe_arena_release_paid_date() { // @@protoc_insertion_point(field_release:viam.app.v1.InvoiceSummary.paid_date) - - _impl_._has_bits_[0] &= ~0x00000004u; - ::google::protobuf::Timestamp* temp = _impl_.paid_date_; - _impl_.paid_date_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = paid_date_; + paid_date_ = nullptr; return temp; } -inline ::google::protobuf::Timestamp* InvoiceSummary::_internal_mutable_paid_date() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - if (_impl_.paid_date_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena()); - _impl_.paid_date_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* InvoiceSummary::_internal_mutable_paid_date() { + + if (paid_date_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + paid_date_ = p; } - return _impl_.paid_date_; + return paid_date_; } -inline ::google::protobuf::Timestamp* InvoiceSummary::mutable_paid_date() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Timestamp* _msg = _internal_mutable_paid_date(); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* InvoiceSummary::mutable_paid_date() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_paid_date(); // @@protoc_insertion_point(field_mutable:viam.app.v1.InvoiceSummary.paid_date) return _msg; } -inline void InvoiceSummary::set_allocated_paid_date(::google::protobuf::Timestamp* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void InvoiceSummary::set_allocated_paid_date(::PROTOBUF_NAMESPACE_ID::Timestamp* paid_date) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.paid_date_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(paid_date_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (paid_date) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(paid_date)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + paid_date = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, paid_date, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000004u; + } else { - _impl_._has_bits_[0] &= ~0x00000004u; + } - - _impl_.paid_date_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); + paid_date_ = paid_date; // @@protoc_insertion_point(field_set_allocated:viam.app.v1.InvoiceSummary.paid_date) } @@ -3778,107 +3247,101 @@ inline void InvoiceSummary::set_allocated_paid_date(::google::protobuf::Timestam // string brand = 1 [json_name = "brand"]; inline void PaymentMethodCard::clear_brand() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.brand_.ClearToEmpty(); + brand_.ClearToEmpty(); } -inline const std::string& PaymentMethodCard::brand() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& PaymentMethodCard::brand() const { // @@protoc_insertion_point(field_get:viam.app.v1.PaymentMethodCard.brand) return _internal_brand(); } -template -inline PROTOBUF_ALWAYS_INLINE void PaymentMethodCard::set_brand(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.brand_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void PaymentMethodCard::set_brand(ArgT0&& arg0, ArgT... args) { + + brand_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.PaymentMethodCard.brand) } -inline std::string* PaymentMethodCard::mutable_brand() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* PaymentMethodCard::mutable_brand() { std::string* _s = _internal_mutable_brand(); // @@protoc_insertion_point(field_mutable:viam.app.v1.PaymentMethodCard.brand) return _s; } inline const std::string& PaymentMethodCard::_internal_brand() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.brand_.Get(); + return brand_.Get(); } inline void PaymentMethodCard::_internal_set_brand(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.brand_.Set(value, GetArena()); + + brand_.Set(value, GetArenaForAllocation()); } inline std::string* PaymentMethodCard::_internal_mutable_brand() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.brand_.Mutable( GetArena()); + + return brand_.Mutable(GetArenaForAllocation()); } inline std::string* PaymentMethodCard::release_brand() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.PaymentMethodCard.brand) - return _impl_.brand_.Release(); -} -inline void PaymentMethodCard::set_allocated_brand(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.brand_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.brand_.IsDefault()) { - _impl_.brand_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return brand_.Release(); +} +inline void PaymentMethodCard::set_allocated_brand(std::string* brand) { + if (brand != nullptr) { + + } else { + + } + brand_.SetAllocated(brand, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (brand_.IsDefault()) { + brand_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.PaymentMethodCard.brand) } // string last_four_digits = 2 [json_name = "lastFourDigits"]; inline void PaymentMethodCard::clear_last_four_digits() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.last_four_digits_.ClearToEmpty(); + last_four_digits_.ClearToEmpty(); } -inline const std::string& PaymentMethodCard::last_four_digits() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& PaymentMethodCard::last_four_digits() const { // @@protoc_insertion_point(field_get:viam.app.v1.PaymentMethodCard.last_four_digits) return _internal_last_four_digits(); } -template -inline PROTOBUF_ALWAYS_INLINE void PaymentMethodCard::set_last_four_digits(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.last_four_digits_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void PaymentMethodCard::set_last_four_digits(ArgT0&& arg0, ArgT... args) { + + last_four_digits_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.PaymentMethodCard.last_four_digits) } -inline std::string* PaymentMethodCard::mutable_last_four_digits() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* PaymentMethodCard::mutable_last_four_digits() { std::string* _s = _internal_mutable_last_four_digits(); // @@protoc_insertion_point(field_mutable:viam.app.v1.PaymentMethodCard.last_four_digits) return _s; } inline const std::string& PaymentMethodCard::_internal_last_four_digits() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.last_four_digits_.Get(); + return last_four_digits_.Get(); } inline void PaymentMethodCard::_internal_set_last_four_digits(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.last_four_digits_.Set(value, GetArena()); + + last_four_digits_.Set(value, GetArenaForAllocation()); } inline std::string* PaymentMethodCard::_internal_mutable_last_four_digits() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.last_four_digits_.Mutable( GetArena()); + + return last_four_digits_.Mutable(GetArenaForAllocation()); } inline std::string* PaymentMethodCard::release_last_four_digits() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.PaymentMethodCard.last_four_digits) - return _impl_.last_four_digits_.Release(); -} -inline void PaymentMethodCard::set_allocated_last_four_digits(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.last_four_digits_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.last_four_digits_.IsDefault()) { - _impl_.last_four_digits_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return last_four_digits_.Release(); +} +inline void PaymentMethodCard::set_allocated_last_four_digits(std::string* last_four_digits) { + if (last_four_digits != nullptr) { + + } else { + + } + last_four_digits_.SetAllocated(last_four_digits, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (last_four_digits_.IsDefault()) { + last_four_digits_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.PaymentMethodCard.last_four_digits) } @@ -3888,54 +3351,51 @@ inline void PaymentMethodCard::set_allocated_last_four_digits(std::string* value // string org_id = 1 [json_name = "orgId"]; inline void GetCurrentMonthUsageRequest::clear_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.org_id_.ClearToEmpty(); + org_id_.ClearToEmpty(); } -inline const std::string& GetCurrentMonthUsageRequest::org_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetCurrentMonthUsageRequest::org_id() const { // @@protoc_insertion_point(field_get:viam.app.v1.GetCurrentMonthUsageRequest.org_id) return _internal_org_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetCurrentMonthUsageRequest::set_org_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.org_id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetCurrentMonthUsageRequest::set_org_id(ArgT0&& arg0, ArgT... args) { + + org_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.GetCurrentMonthUsageRequest.org_id) } -inline std::string* GetCurrentMonthUsageRequest::mutable_org_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetCurrentMonthUsageRequest::mutable_org_id() { std::string* _s = _internal_mutable_org_id(); // @@protoc_insertion_point(field_mutable:viam.app.v1.GetCurrentMonthUsageRequest.org_id) return _s; } inline const std::string& GetCurrentMonthUsageRequest::_internal_org_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.org_id_.Get(); + return org_id_.Get(); } inline void GetCurrentMonthUsageRequest::_internal_set_org_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.org_id_.Set(value, GetArena()); + + org_id_.Set(value, GetArenaForAllocation()); } inline std::string* GetCurrentMonthUsageRequest::_internal_mutable_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.org_id_.Mutable( GetArena()); + + return org_id_.Mutable(GetArenaForAllocation()); } inline std::string* GetCurrentMonthUsageRequest::release_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.GetCurrentMonthUsageRequest.org_id) - return _impl_.org_id_.Release(); -} -inline void GetCurrentMonthUsageRequest::set_allocated_org_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.org_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.org_id_.IsDefault()) { - _impl_.org_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return org_id_.Release(); +} +inline void GetCurrentMonthUsageRequest::set_allocated_org_id(std::string* org_id) { + if (org_id != nullptr) { + + } else { + + } + org_id_.SetAllocated(org_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (org_id_.IsDefault()) { + org_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetCurrentMonthUsageRequest.org_id) } @@ -3945,49 +3405,43 @@ inline void GetCurrentMonthUsageRequest::set_allocated_org_id(std::string* value // .viam.app.v1.UsageCostType resource_type = 1 [json_name = "resourceType"]; inline void UsageCost::clear_resource_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.resource_type_ = 0; + resource_type_ = 0; +} +inline ::viam::app::v1::UsageCostType UsageCost::_internal_resource_type() const { + return static_cast< ::viam::app::v1::UsageCostType >(resource_type_); } inline ::viam::app::v1::UsageCostType UsageCost::resource_type() const { // @@protoc_insertion_point(field_get:viam.app.v1.UsageCost.resource_type) return _internal_resource_type(); } +inline void UsageCost::_internal_set_resource_type(::viam::app::v1::UsageCostType value) { + + resource_type_ = value; +} inline void UsageCost::set_resource_type(::viam::app::v1::UsageCostType value) { _internal_set_resource_type(value); // @@protoc_insertion_point(field_set:viam.app.v1.UsageCost.resource_type) } -inline ::viam::app::v1::UsageCostType UsageCost::_internal_resource_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::viam::app::v1::UsageCostType>(_impl_.resource_type_); -} -inline void UsageCost::_internal_set_resource_type(::viam::app::v1::UsageCostType value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.resource_type_ = value; -} // double cost = 2 [json_name = "cost"]; inline void UsageCost::clear_cost() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.cost_ = 0; + cost_ = 0; +} +inline double UsageCost::_internal_cost() const { + return cost_; } inline double UsageCost::cost() const { // @@protoc_insertion_point(field_get:viam.app.v1.UsageCost.cost) return _internal_cost(); } +inline void UsageCost::_internal_set_cost(double value) { + + cost_ = value; +} inline void UsageCost::set_cost(double value) { _internal_set_cost(value); // @@protoc_insertion_point(field_set:viam.app.v1.UsageCost.cost) } -inline double UsageCost::_internal_cost() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.cost_; -} -inline void UsageCost::_internal_set_cost(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.cost_ = value; -} // ------------------------------------------------------------------- @@ -3995,173 +3449,161 @@ inline void UsageCost::_internal_set_cost(double value) { // .viam.app.v1.SourceType source_type = 1 [json_name = "sourceType"]; inline void ResourceUsageCostsBySource::clear_source_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.source_type_ = 0; + source_type_ = 0; +} +inline ::viam::app::v1::SourceType ResourceUsageCostsBySource::_internal_source_type() const { + return static_cast< ::viam::app::v1::SourceType >(source_type_); } inline ::viam::app::v1::SourceType ResourceUsageCostsBySource::source_type() const { // @@protoc_insertion_point(field_get:viam.app.v1.ResourceUsageCostsBySource.source_type) return _internal_source_type(); } +inline void ResourceUsageCostsBySource::_internal_set_source_type(::viam::app::v1::SourceType value) { + + source_type_ = value; +} inline void ResourceUsageCostsBySource::set_source_type(::viam::app::v1::SourceType value) { _internal_set_source_type(value); // @@protoc_insertion_point(field_set:viam.app.v1.ResourceUsageCostsBySource.source_type) } -inline ::viam::app::v1::SourceType ResourceUsageCostsBySource::_internal_source_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::viam::app::v1::SourceType>(_impl_.source_type_); -} -inline void ResourceUsageCostsBySource::_internal_set_source_type(::viam::app::v1::SourceType value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.source_type_ = value; -} // .viam.app.v1.ResourceUsageCosts resource_usage_costs = 2 [json_name = "resourceUsageCosts"]; +inline bool ResourceUsageCostsBySource::_internal_has_resource_usage_costs() const { + return this != internal_default_instance() && resource_usage_costs_ != nullptr; +} inline bool ResourceUsageCostsBySource::has_resource_usage_costs() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.resource_usage_costs_ != nullptr); - return value; + return _internal_has_resource_usage_costs(); } inline void ResourceUsageCostsBySource::clear_resource_usage_costs() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.resource_usage_costs_ != nullptr) _impl_.resource_usage_costs_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && resource_usage_costs_ != nullptr) { + delete resource_usage_costs_; + } + resource_usage_costs_ = nullptr; } inline const ::viam::app::v1::ResourceUsageCosts& ResourceUsageCostsBySource::_internal_resource_usage_costs() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::ResourceUsageCosts* p = _impl_.resource_usage_costs_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_ResourceUsageCosts_default_instance_); + const ::viam::app::v1::ResourceUsageCosts* p = resource_usage_costs_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_ResourceUsageCosts_default_instance_); } -inline const ::viam::app::v1::ResourceUsageCosts& ResourceUsageCostsBySource::resource_usage_costs() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::app::v1::ResourceUsageCosts& ResourceUsageCostsBySource::resource_usage_costs() const { // @@protoc_insertion_point(field_get:viam.app.v1.ResourceUsageCostsBySource.resource_usage_costs) return _internal_resource_usage_costs(); } -inline void ResourceUsageCostsBySource::unsafe_arena_set_allocated_resource_usage_costs(::viam::app::v1::ResourceUsageCosts* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.resource_usage_costs_); +inline void ResourceUsageCostsBySource::unsafe_arena_set_allocated_resource_usage_costs( + ::viam::app::v1::ResourceUsageCosts* resource_usage_costs) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(resource_usage_costs_); } - _impl_.resource_usage_costs_ = reinterpret_cast<::viam::app::v1::ResourceUsageCosts*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + resource_usage_costs_ = resource_usage_costs; + if (resource_usage_costs) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.ResourceUsageCostsBySource.resource_usage_costs) } inline ::viam::app::v1::ResourceUsageCosts* ResourceUsageCostsBySource::release_resource_usage_costs() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::ResourceUsageCosts* released = _impl_.resource_usage_costs_; - _impl_.resource_usage_costs_ = nullptr; + + ::viam::app::v1::ResourceUsageCosts* temp = resource_usage_costs_; + resource_usage_costs_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::app::v1::ResourceUsageCosts* ResourceUsageCostsBySource::unsafe_arena_release_resource_usage_costs() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.ResourceUsageCostsBySource.resource_usage_costs) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::ResourceUsageCosts* temp = _impl_.resource_usage_costs_; - _impl_.resource_usage_costs_ = nullptr; + + ::viam::app::v1::ResourceUsageCosts* temp = resource_usage_costs_; + resource_usage_costs_ = nullptr; return temp; } inline ::viam::app::v1::ResourceUsageCosts* ResourceUsageCostsBySource::_internal_mutable_resource_usage_costs() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.resource_usage_costs_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::ResourceUsageCosts>(GetArena()); - _impl_.resource_usage_costs_ = reinterpret_cast<::viam::app::v1::ResourceUsageCosts*>(p); + + if (resource_usage_costs_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::ResourceUsageCosts>(GetArenaForAllocation()); + resource_usage_costs_ = p; } - return _impl_.resource_usage_costs_; + return resource_usage_costs_; } -inline ::viam::app::v1::ResourceUsageCosts* ResourceUsageCostsBySource::mutable_resource_usage_costs() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::app::v1::ResourceUsageCosts* ResourceUsageCostsBySource::mutable_resource_usage_costs() { ::viam::app::v1::ResourceUsageCosts* _msg = _internal_mutable_resource_usage_costs(); // @@protoc_insertion_point(field_mutable:viam.app.v1.ResourceUsageCostsBySource.resource_usage_costs) return _msg; } -inline void ResourceUsageCostsBySource::set_allocated_resource_usage_costs(::viam::app::v1::ResourceUsageCosts* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ResourceUsageCostsBySource::set_allocated_resource_usage_costs(::viam::app::v1::ResourceUsageCosts* resource_usage_costs) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::ResourceUsageCosts*>(_impl_.resource_usage_costs_); + delete resource_usage_costs_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::ResourceUsageCosts*>(value)->GetArena(); + if (resource_usage_costs) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(resource_usage_costs); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + resource_usage_costs = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, resource_usage_costs, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.resource_usage_costs_ = reinterpret_cast<::viam::app::v1::ResourceUsageCosts*>(value); + resource_usage_costs_ = resource_usage_costs; // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ResourceUsageCostsBySource.resource_usage_costs) } // string tier_name = 3 [json_name = "tierName"]; inline void ResourceUsageCostsBySource::clear_tier_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.tier_name_.ClearToEmpty(); + tier_name_.ClearToEmpty(); } -inline const std::string& ResourceUsageCostsBySource::tier_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ResourceUsageCostsBySource::tier_name() const { // @@protoc_insertion_point(field_get:viam.app.v1.ResourceUsageCostsBySource.tier_name) return _internal_tier_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void ResourceUsageCostsBySource::set_tier_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.tier_name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ResourceUsageCostsBySource::set_tier_name(ArgT0&& arg0, ArgT... args) { + + tier_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.ResourceUsageCostsBySource.tier_name) } -inline std::string* ResourceUsageCostsBySource::mutable_tier_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ResourceUsageCostsBySource::mutable_tier_name() { std::string* _s = _internal_mutable_tier_name(); // @@protoc_insertion_point(field_mutable:viam.app.v1.ResourceUsageCostsBySource.tier_name) return _s; } inline const std::string& ResourceUsageCostsBySource::_internal_tier_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.tier_name_.Get(); + return tier_name_.Get(); } inline void ResourceUsageCostsBySource::_internal_set_tier_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.tier_name_.Set(value, GetArena()); + + tier_name_.Set(value, GetArenaForAllocation()); } inline std::string* ResourceUsageCostsBySource::_internal_mutable_tier_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.tier_name_.Mutable( GetArena()); + + return tier_name_.Mutable(GetArenaForAllocation()); } inline std::string* ResourceUsageCostsBySource::release_tier_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.ResourceUsageCostsBySource.tier_name) - return _impl_.tier_name_.Release(); -} -inline void ResourceUsageCostsBySource::set_allocated_tier_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.tier_name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.tier_name_.IsDefault()) { - _impl_.tier_name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return tier_name_.Release(); +} +inline void ResourceUsageCostsBySource::set_allocated_tier_name(std::string* tier_name) { + if (tier_name != nullptr) { + + } else { + + } + tier_name_.SetAllocated(tier_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (tier_name_.IsDefault()) { + tier_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ResourceUsageCostsBySource.tier_name) } @@ -4171,632 +3613,557 @@ inline void ResourceUsageCostsBySource::set_allocated_tier_name(std::string* val // repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"]; inline int ResourceUsageCosts::_internal_usage_costs_size() const { - return _internal_usage_costs().size(); + return usage_costs_.size(); } inline int ResourceUsageCosts::usage_costs_size() const { return _internal_usage_costs_size(); } inline void ResourceUsageCosts::clear_usage_costs() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.usage_costs_.Clear(); + usage_costs_.Clear(); } -inline ::viam::app::v1::UsageCost* ResourceUsageCosts::mutable_usage_costs(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::app::v1::UsageCost* ResourceUsageCosts::mutable_usage_costs(int index) { // @@protoc_insertion_point(field_mutable:viam.app.v1.ResourceUsageCosts.usage_costs) - return _internal_mutable_usage_costs()->Mutable(index); + return usage_costs_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::UsageCost>* ResourceUsageCosts::mutable_usage_costs() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::UsageCost >* +ResourceUsageCosts::mutable_usage_costs() { // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ResourceUsageCosts.usage_costs) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_usage_costs(); + return &usage_costs_; } -inline const ::viam::app::v1::UsageCost& ResourceUsageCosts::usage_costs(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::app::v1::UsageCost& ResourceUsageCosts::_internal_usage_costs(int index) const { + return usage_costs_.Get(index); +} +inline const ::viam::app::v1::UsageCost& ResourceUsageCosts::usage_costs(int index) const { // @@protoc_insertion_point(field_get:viam.app.v1.ResourceUsageCosts.usage_costs) - return _internal_usage_costs().Get(index); + return _internal_usage_costs(index); +} +inline ::viam::app::v1::UsageCost* ResourceUsageCosts::_internal_add_usage_costs() { + return usage_costs_.Add(); } -inline ::viam::app::v1::UsageCost* ResourceUsageCosts::add_usage_costs() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::UsageCost* _add = _internal_mutable_usage_costs()->Add(); +inline ::viam::app::v1::UsageCost* ResourceUsageCosts::add_usage_costs() { + ::viam::app::v1::UsageCost* _add = _internal_add_usage_costs(); // @@protoc_insertion_point(field_add:viam.app.v1.ResourceUsageCosts.usage_costs) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::UsageCost>& ResourceUsageCosts::usage_costs() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::UsageCost >& +ResourceUsageCosts::usage_costs() const { // @@protoc_insertion_point(field_list:viam.app.v1.ResourceUsageCosts.usage_costs) - return _internal_usage_costs(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::UsageCost>& -ResourceUsageCosts::_internal_usage_costs() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.usage_costs_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::UsageCost>* -ResourceUsageCosts::_internal_mutable_usage_costs() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.usage_costs_; + return usage_costs_; } // double discount = 2 [json_name = "discount"]; inline void ResourceUsageCosts::clear_discount() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.discount_ = 0; + discount_ = 0; +} +inline double ResourceUsageCosts::_internal_discount() const { + return discount_; } inline double ResourceUsageCosts::discount() const { // @@protoc_insertion_point(field_get:viam.app.v1.ResourceUsageCosts.discount) return _internal_discount(); } +inline void ResourceUsageCosts::_internal_set_discount(double value) { + + discount_ = value; +} inline void ResourceUsageCosts::set_discount(double value) { _internal_set_discount(value); // @@protoc_insertion_point(field_set:viam.app.v1.ResourceUsageCosts.discount) } -inline double ResourceUsageCosts::_internal_discount() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.discount_; -} -inline void ResourceUsageCosts::_internal_set_discount(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.discount_ = value; -} // double total_with_discount = 3 [json_name = "totalWithDiscount"]; inline void ResourceUsageCosts::clear_total_with_discount() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.total_with_discount_ = 0; + total_with_discount_ = 0; +} +inline double ResourceUsageCosts::_internal_total_with_discount() const { + return total_with_discount_; } inline double ResourceUsageCosts::total_with_discount() const { // @@protoc_insertion_point(field_get:viam.app.v1.ResourceUsageCosts.total_with_discount) return _internal_total_with_discount(); } +inline void ResourceUsageCosts::_internal_set_total_with_discount(double value) { + + total_with_discount_ = value; +} inline void ResourceUsageCosts::set_total_with_discount(double value) { _internal_set_total_with_discount(value); // @@protoc_insertion_point(field_set:viam.app.v1.ResourceUsageCosts.total_with_discount) } -inline double ResourceUsageCosts::_internal_total_with_discount() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.total_with_discount_; -} -inline void ResourceUsageCosts::_internal_set_total_with_discount(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.total_with_discount_ = value; -} // double total_without_discount = 4 [json_name = "totalWithoutDiscount"]; inline void ResourceUsageCosts::clear_total_without_discount() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.total_without_discount_ = 0; + total_without_discount_ = 0; +} +inline double ResourceUsageCosts::_internal_total_without_discount() const { + return total_without_discount_; } inline double ResourceUsageCosts::total_without_discount() const { // @@protoc_insertion_point(field_get:viam.app.v1.ResourceUsageCosts.total_without_discount) return _internal_total_without_discount(); } +inline void ResourceUsageCosts::_internal_set_total_without_discount(double value) { + + total_without_discount_ = value; +} inline void ResourceUsageCosts::set_total_without_discount(double value) { _internal_set_total_without_discount(value); // @@protoc_insertion_point(field_set:viam.app.v1.ResourceUsageCosts.total_without_discount) } -inline double ResourceUsageCosts::_internal_total_without_discount() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.total_without_discount_; -} -inline void ResourceUsageCosts::_internal_set_total_without_discount(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.total_without_discount_ = value; -} // ------------------------------------------------------------------- // GetCurrentMonthUsageResponse // .google.protobuf.Timestamp start_date = 1 [json_name = "startDate"]; +inline bool GetCurrentMonthUsageResponse::_internal_has_start_date() const { + return this != internal_default_instance() && start_date_ != nullptr; +} inline bool GetCurrentMonthUsageResponse::has_start_date() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.start_date_ != nullptr); - return value; + return _internal_has_start_date(); } -inline const ::google::protobuf::Timestamp& GetCurrentMonthUsageResponse::_internal_start_date() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Timestamp* p = _impl_.start_date_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& GetCurrentMonthUsageResponse::_internal_start_date() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = start_date_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); } -inline const ::google::protobuf::Timestamp& GetCurrentMonthUsageResponse::start_date() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& GetCurrentMonthUsageResponse::start_date() const { // @@protoc_insertion_point(field_get:viam.app.v1.GetCurrentMonthUsageResponse.start_date) return _internal_start_date(); } -inline void GetCurrentMonthUsageResponse::unsafe_arena_set_allocated_start_date(::google::protobuf::Timestamp* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.start_date_); +inline void GetCurrentMonthUsageResponse::unsafe_arena_set_allocated_start_date( + ::PROTOBUF_NAMESPACE_ID::Timestamp* start_date) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(start_date_); } - _impl_.start_date_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + start_date_ = start_date; + if (start_date) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.GetCurrentMonthUsageResponse.start_date) } -inline ::google::protobuf::Timestamp* GetCurrentMonthUsageResponse::release_start_date() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Timestamp* released = _impl_.start_date_; - _impl_.start_date_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* GetCurrentMonthUsageResponse::release_start_date() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = start_date_; + start_date_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Timestamp* GetCurrentMonthUsageResponse::unsafe_arena_release_start_date() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* GetCurrentMonthUsageResponse::unsafe_arena_release_start_date() { // @@protoc_insertion_point(field_release:viam.app.v1.GetCurrentMonthUsageResponse.start_date) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Timestamp* temp = _impl_.start_date_; - _impl_.start_date_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = start_date_; + start_date_ = nullptr; return temp; } -inline ::google::protobuf::Timestamp* GetCurrentMonthUsageResponse::_internal_mutable_start_date() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.start_date_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena()); - _impl_.start_date_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* GetCurrentMonthUsageResponse::_internal_mutable_start_date() { + + if (start_date_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + start_date_ = p; } - return _impl_.start_date_; + return start_date_; } -inline ::google::protobuf::Timestamp* GetCurrentMonthUsageResponse::mutable_start_date() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Timestamp* _msg = _internal_mutable_start_date(); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* GetCurrentMonthUsageResponse::mutable_start_date() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_start_date(); // @@protoc_insertion_point(field_mutable:viam.app.v1.GetCurrentMonthUsageResponse.start_date) return _msg; } -inline void GetCurrentMonthUsageResponse::set_allocated_start_date(::google::protobuf::Timestamp* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetCurrentMonthUsageResponse::set_allocated_start_date(::PROTOBUF_NAMESPACE_ID::Timestamp* start_date) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.start_date_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(start_date_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (start_date) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(start_date)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + start_date = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, start_date, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.start_date_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); + start_date_ = start_date; // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetCurrentMonthUsageResponse.start_date) } // .google.protobuf.Timestamp end_date = 2 [json_name = "endDate"]; +inline bool GetCurrentMonthUsageResponse::_internal_has_end_date() const { + return this != internal_default_instance() && end_date_ != nullptr; +} inline bool GetCurrentMonthUsageResponse::has_end_date() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.end_date_ != nullptr); - return value; + return _internal_has_end_date(); } -inline const ::google::protobuf::Timestamp& GetCurrentMonthUsageResponse::_internal_end_date() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Timestamp* p = _impl_.end_date_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& GetCurrentMonthUsageResponse::_internal_end_date() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = end_date_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); } -inline const ::google::protobuf::Timestamp& GetCurrentMonthUsageResponse::end_date() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& GetCurrentMonthUsageResponse::end_date() const { // @@protoc_insertion_point(field_get:viam.app.v1.GetCurrentMonthUsageResponse.end_date) return _internal_end_date(); } -inline void GetCurrentMonthUsageResponse::unsafe_arena_set_allocated_end_date(::google::protobuf::Timestamp* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.end_date_); +inline void GetCurrentMonthUsageResponse::unsafe_arena_set_allocated_end_date( + ::PROTOBUF_NAMESPACE_ID::Timestamp* end_date) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(end_date_); } - _impl_.end_date_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + end_date_ = end_date; + if (end_date) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.GetCurrentMonthUsageResponse.end_date) } -inline ::google::protobuf::Timestamp* GetCurrentMonthUsageResponse::release_end_date() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Timestamp* released = _impl_.end_date_; - _impl_.end_date_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* GetCurrentMonthUsageResponse::release_end_date() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = end_date_; + end_date_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Timestamp* GetCurrentMonthUsageResponse::unsafe_arena_release_end_date() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* GetCurrentMonthUsageResponse::unsafe_arena_release_end_date() { // @@protoc_insertion_point(field_release:viam.app.v1.GetCurrentMonthUsageResponse.end_date) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Timestamp* temp = _impl_.end_date_; - _impl_.end_date_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = end_date_; + end_date_ = nullptr; return temp; } -inline ::google::protobuf::Timestamp* GetCurrentMonthUsageResponse::_internal_mutable_end_date() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.end_date_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena()); - _impl_.end_date_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* GetCurrentMonthUsageResponse::_internal_mutable_end_date() { + + if (end_date_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + end_date_ = p; } - return _impl_.end_date_; + return end_date_; } -inline ::google::protobuf::Timestamp* GetCurrentMonthUsageResponse::mutable_end_date() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Timestamp* _msg = _internal_mutable_end_date(); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* GetCurrentMonthUsageResponse::mutable_end_date() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_end_date(); // @@protoc_insertion_point(field_mutable:viam.app.v1.GetCurrentMonthUsageResponse.end_date) return _msg; } -inline void GetCurrentMonthUsageResponse::set_allocated_end_date(::google::protobuf::Timestamp* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetCurrentMonthUsageResponse::set_allocated_end_date(::PROTOBUF_NAMESPACE_ID::Timestamp* end_date) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.end_date_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(end_date_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (end_date) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(end_date)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + end_date = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, end_date, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.end_date_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); + end_date_ = end_date; // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetCurrentMonthUsageResponse.end_date) } // repeated .viam.app.v1.ResourceUsageCostsBySource resource_usage_costs_by_source = 14 [json_name = "resourceUsageCostsBySource"]; inline int GetCurrentMonthUsageResponse::_internal_resource_usage_costs_by_source_size() const { - return _internal_resource_usage_costs_by_source().size(); + return resource_usage_costs_by_source_.size(); } inline int GetCurrentMonthUsageResponse::resource_usage_costs_by_source_size() const { return _internal_resource_usage_costs_by_source_size(); } inline void GetCurrentMonthUsageResponse::clear_resource_usage_costs_by_source() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.resource_usage_costs_by_source_.Clear(); + resource_usage_costs_by_source_.Clear(); } -inline ::viam::app::v1::ResourceUsageCostsBySource* GetCurrentMonthUsageResponse::mutable_resource_usage_costs_by_source(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::app::v1::ResourceUsageCostsBySource* GetCurrentMonthUsageResponse::mutable_resource_usage_costs_by_source(int index) { // @@protoc_insertion_point(field_mutable:viam.app.v1.GetCurrentMonthUsageResponse.resource_usage_costs_by_source) - return _internal_mutable_resource_usage_costs_by_source()->Mutable(index); + return resource_usage_costs_by_source_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::ResourceUsageCostsBySource>* GetCurrentMonthUsageResponse::mutable_resource_usage_costs_by_source() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ResourceUsageCostsBySource >* +GetCurrentMonthUsageResponse::mutable_resource_usage_costs_by_source() { // @@protoc_insertion_point(field_mutable_list:viam.app.v1.GetCurrentMonthUsageResponse.resource_usage_costs_by_source) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_resource_usage_costs_by_source(); + return &resource_usage_costs_by_source_; } -inline const ::viam::app::v1::ResourceUsageCostsBySource& GetCurrentMonthUsageResponse::resource_usage_costs_by_source(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::app::v1::ResourceUsageCostsBySource& GetCurrentMonthUsageResponse::_internal_resource_usage_costs_by_source(int index) const { + return resource_usage_costs_by_source_.Get(index); +} +inline const ::viam::app::v1::ResourceUsageCostsBySource& GetCurrentMonthUsageResponse::resource_usage_costs_by_source(int index) const { // @@protoc_insertion_point(field_get:viam.app.v1.GetCurrentMonthUsageResponse.resource_usage_costs_by_source) - return _internal_resource_usage_costs_by_source().Get(index); + return _internal_resource_usage_costs_by_source(index); +} +inline ::viam::app::v1::ResourceUsageCostsBySource* GetCurrentMonthUsageResponse::_internal_add_resource_usage_costs_by_source() { + return resource_usage_costs_by_source_.Add(); } -inline ::viam::app::v1::ResourceUsageCostsBySource* GetCurrentMonthUsageResponse::add_resource_usage_costs_by_source() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::ResourceUsageCostsBySource* _add = _internal_mutable_resource_usage_costs_by_source()->Add(); +inline ::viam::app::v1::ResourceUsageCostsBySource* GetCurrentMonthUsageResponse::add_resource_usage_costs_by_source() { + ::viam::app::v1::ResourceUsageCostsBySource* _add = _internal_add_resource_usage_costs_by_source(); // @@protoc_insertion_point(field_add:viam.app.v1.GetCurrentMonthUsageResponse.resource_usage_costs_by_source) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::ResourceUsageCostsBySource>& GetCurrentMonthUsageResponse::resource_usage_costs_by_source() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ResourceUsageCostsBySource >& +GetCurrentMonthUsageResponse::resource_usage_costs_by_source() const { // @@protoc_insertion_point(field_list:viam.app.v1.GetCurrentMonthUsageResponse.resource_usage_costs_by_source) - return _internal_resource_usage_costs_by_source(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::ResourceUsageCostsBySource>& -GetCurrentMonthUsageResponse::_internal_resource_usage_costs_by_source() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.resource_usage_costs_by_source_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::ResourceUsageCostsBySource>* -GetCurrentMonthUsageResponse::_internal_mutable_resource_usage_costs_by_source() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.resource_usage_costs_by_source_; + return resource_usage_costs_by_source_; } // double subtotal = 15 [json_name = "subtotal"]; inline void GetCurrentMonthUsageResponse::clear_subtotal() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.subtotal_ = 0; + subtotal_ = 0; +} +inline double GetCurrentMonthUsageResponse::_internal_subtotal() const { + return subtotal_; } inline double GetCurrentMonthUsageResponse::subtotal() const { // @@protoc_insertion_point(field_get:viam.app.v1.GetCurrentMonthUsageResponse.subtotal) return _internal_subtotal(); } +inline void GetCurrentMonthUsageResponse::_internal_set_subtotal(double value) { + + subtotal_ = value; +} inline void GetCurrentMonthUsageResponse::set_subtotal(double value) { _internal_set_subtotal(value); // @@protoc_insertion_point(field_set:viam.app.v1.GetCurrentMonthUsageResponse.subtotal) } -inline double GetCurrentMonthUsageResponse::_internal_subtotal() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.subtotal_; -} -inline void GetCurrentMonthUsageResponse::_internal_set_subtotal(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.subtotal_ = value; -} // double cloud_storage_usage_cost = 3 [json_name = "cloudStorageUsageCost", deprecated = true]; inline void GetCurrentMonthUsageResponse::clear_cloud_storage_usage_cost() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.cloud_storage_usage_cost_ = 0; + cloud_storage_usage_cost_ = 0; +} +inline double GetCurrentMonthUsageResponse::_internal_cloud_storage_usage_cost() const { + return cloud_storage_usage_cost_; } inline double GetCurrentMonthUsageResponse::cloud_storage_usage_cost() const { // @@protoc_insertion_point(field_get:viam.app.v1.GetCurrentMonthUsageResponse.cloud_storage_usage_cost) return _internal_cloud_storage_usage_cost(); } +inline void GetCurrentMonthUsageResponse::_internal_set_cloud_storage_usage_cost(double value) { + + cloud_storage_usage_cost_ = value; +} inline void GetCurrentMonthUsageResponse::set_cloud_storage_usage_cost(double value) { _internal_set_cloud_storage_usage_cost(value); // @@protoc_insertion_point(field_set:viam.app.v1.GetCurrentMonthUsageResponse.cloud_storage_usage_cost) } -inline double GetCurrentMonthUsageResponse::_internal_cloud_storage_usage_cost() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.cloud_storage_usage_cost_; -} -inline void GetCurrentMonthUsageResponse::_internal_set_cloud_storage_usage_cost(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.cloud_storage_usage_cost_ = value; -} // double data_upload_usage_cost = 4 [json_name = "dataUploadUsageCost", deprecated = true]; inline void GetCurrentMonthUsageResponse::clear_data_upload_usage_cost() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.data_upload_usage_cost_ = 0; + data_upload_usage_cost_ = 0; +} +inline double GetCurrentMonthUsageResponse::_internal_data_upload_usage_cost() const { + return data_upload_usage_cost_; } inline double GetCurrentMonthUsageResponse::data_upload_usage_cost() const { // @@protoc_insertion_point(field_get:viam.app.v1.GetCurrentMonthUsageResponse.data_upload_usage_cost) return _internal_data_upload_usage_cost(); } +inline void GetCurrentMonthUsageResponse::_internal_set_data_upload_usage_cost(double value) { + + data_upload_usage_cost_ = value; +} inline void GetCurrentMonthUsageResponse::set_data_upload_usage_cost(double value) { _internal_set_data_upload_usage_cost(value); // @@protoc_insertion_point(field_set:viam.app.v1.GetCurrentMonthUsageResponse.data_upload_usage_cost) } -inline double GetCurrentMonthUsageResponse::_internal_data_upload_usage_cost() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.data_upload_usage_cost_; -} -inline void GetCurrentMonthUsageResponse::_internal_set_data_upload_usage_cost(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.data_upload_usage_cost_ = value; -} // double data_egres_usage_cost = 5 [json_name = "dataEgresUsageCost", deprecated = true]; inline void GetCurrentMonthUsageResponse::clear_data_egres_usage_cost() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.data_egres_usage_cost_ = 0; + data_egres_usage_cost_ = 0; +} +inline double GetCurrentMonthUsageResponse::_internal_data_egres_usage_cost() const { + return data_egres_usage_cost_; } inline double GetCurrentMonthUsageResponse::data_egres_usage_cost() const { // @@protoc_insertion_point(field_get:viam.app.v1.GetCurrentMonthUsageResponse.data_egres_usage_cost) return _internal_data_egres_usage_cost(); } +inline void GetCurrentMonthUsageResponse::_internal_set_data_egres_usage_cost(double value) { + + data_egres_usage_cost_ = value; +} inline void GetCurrentMonthUsageResponse::set_data_egres_usage_cost(double value) { _internal_set_data_egres_usage_cost(value); // @@protoc_insertion_point(field_set:viam.app.v1.GetCurrentMonthUsageResponse.data_egres_usage_cost) } -inline double GetCurrentMonthUsageResponse::_internal_data_egres_usage_cost() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.data_egres_usage_cost_; -} -inline void GetCurrentMonthUsageResponse::_internal_set_data_egres_usage_cost(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.data_egres_usage_cost_ = value; -} // double remote_control_usage_cost = 6 [json_name = "remoteControlUsageCost", deprecated = true]; inline void GetCurrentMonthUsageResponse::clear_remote_control_usage_cost() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.remote_control_usage_cost_ = 0; + remote_control_usage_cost_ = 0; +} +inline double GetCurrentMonthUsageResponse::_internal_remote_control_usage_cost() const { + return remote_control_usage_cost_; } inline double GetCurrentMonthUsageResponse::remote_control_usage_cost() const { // @@protoc_insertion_point(field_get:viam.app.v1.GetCurrentMonthUsageResponse.remote_control_usage_cost) return _internal_remote_control_usage_cost(); } +inline void GetCurrentMonthUsageResponse::_internal_set_remote_control_usage_cost(double value) { + + remote_control_usage_cost_ = value; +} inline void GetCurrentMonthUsageResponse::set_remote_control_usage_cost(double value) { _internal_set_remote_control_usage_cost(value); // @@protoc_insertion_point(field_set:viam.app.v1.GetCurrentMonthUsageResponse.remote_control_usage_cost) } -inline double GetCurrentMonthUsageResponse::_internal_remote_control_usage_cost() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.remote_control_usage_cost_; -} -inline void GetCurrentMonthUsageResponse::_internal_set_remote_control_usage_cost(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.remote_control_usage_cost_ = value; -} // double standard_compute_usage_cost = 7 [json_name = "standardComputeUsageCost", deprecated = true]; inline void GetCurrentMonthUsageResponse::clear_standard_compute_usage_cost() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.standard_compute_usage_cost_ = 0; + standard_compute_usage_cost_ = 0; +} +inline double GetCurrentMonthUsageResponse::_internal_standard_compute_usage_cost() const { + return standard_compute_usage_cost_; } inline double GetCurrentMonthUsageResponse::standard_compute_usage_cost() const { // @@protoc_insertion_point(field_get:viam.app.v1.GetCurrentMonthUsageResponse.standard_compute_usage_cost) return _internal_standard_compute_usage_cost(); } +inline void GetCurrentMonthUsageResponse::_internal_set_standard_compute_usage_cost(double value) { + + standard_compute_usage_cost_ = value; +} inline void GetCurrentMonthUsageResponse::set_standard_compute_usage_cost(double value) { _internal_set_standard_compute_usage_cost(value); // @@protoc_insertion_point(field_set:viam.app.v1.GetCurrentMonthUsageResponse.standard_compute_usage_cost) } -inline double GetCurrentMonthUsageResponse::_internal_standard_compute_usage_cost() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.standard_compute_usage_cost_; -} -inline void GetCurrentMonthUsageResponse::_internal_set_standard_compute_usage_cost(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.standard_compute_usage_cost_ = value; -} // double discount_amount = 8 [json_name = "discountAmount", deprecated = true]; inline void GetCurrentMonthUsageResponse::clear_discount_amount() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.discount_amount_ = 0; + discount_amount_ = 0; +} +inline double GetCurrentMonthUsageResponse::_internal_discount_amount() const { + return discount_amount_; } inline double GetCurrentMonthUsageResponse::discount_amount() const { // @@protoc_insertion_point(field_get:viam.app.v1.GetCurrentMonthUsageResponse.discount_amount) return _internal_discount_amount(); } +inline void GetCurrentMonthUsageResponse::_internal_set_discount_amount(double value) { + + discount_amount_ = value; +} inline void GetCurrentMonthUsageResponse::set_discount_amount(double value) { _internal_set_discount_amount(value); // @@protoc_insertion_point(field_set:viam.app.v1.GetCurrentMonthUsageResponse.discount_amount) } -inline double GetCurrentMonthUsageResponse::_internal_discount_amount() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.discount_amount_; -} -inline void GetCurrentMonthUsageResponse::_internal_set_discount_amount(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.discount_amount_ = value; -} // double total_usage_with_discount = 9 [json_name = "totalUsageWithDiscount", deprecated = true]; inline void GetCurrentMonthUsageResponse::clear_total_usage_with_discount() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.total_usage_with_discount_ = 0; + total_usage_with_discount_ = 0; +} +inline double GetCurrentMonthUsageResponse::_internal_total_usage_with_discount() const { + return total_usage_with_discount_; } inline double GetCurrentMonthUsageResponse::total_usage_with_discount() const { // @@protoc_insertion_point(field_get:viam.app.v1.GetCurrentMonthUsageResponse.total_usage_with_discount) return _internal_total_usage_with_discount(); } +inline void GetCurrentMonthUsageResponse::_internal_set_total_usage_with_discount(double value) { + + total_usage_with_discount_ = value; +} inline void GetCurrentMonthUsageResponse::set_total_usage_with_discount(double value) { _internal_set_total_usage_with_discount(value); // @@protoc_insertion_point(field_set:viam.app.v1.GetCurrentMonthUsageResponse.total_usage_with_discount) } -inline double GetCurrentMonthUsageResponse::_internal_total_usage_with_discount() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.total_usage_with_discount_; -} -inline void GetCurrentMonthUsageResponse::_internal_set_total_usage_with_discount(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.total_usage_with_discount_ = value; -} // double total_usage_without_discount = 10 [json_name = "totalUsageWithoutDiscount", deprecated = true]; inline void GetCurrentMonthUsageResponse::clear_total_usage_without_discount() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.total_usage_without_discount_ = 0; + total_usage_without_discount_ = 0; +} +inline double GetCurrentMonthUsageResponse::_internal_total_usage_without_discount() const { + return total_usage_without_discount_; } inline double GetCurrentMonthUsageResponse::total_usage_without_discount() const { // @@protoc_insertion_point(field_get:viam.app.v1.GetCurrentMonthUsageResponse.total_usage_without_discount) return _internal_total_usage_without_discount(); } +inline void GetCurrentMonthUsageResponse::_internal_set_total_usage_without_discount(double value) { + + total_usage_without_discount_ = value; +} inline void GetCurrentMonthUsageResponse::set_total_usage_without_discount(double value) { _internal_set_total_usage_without_discount(value); // @@protoc_insertion_point(field_set:viam.app.v1.GetCurrentMonthUsageResponse.total_usage_without_discount) } -inline double GetCurrentMonthUsageResponse::_internal_total_usage_without_discount() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.total_usage_without_discount_; -} -inline void GetCurrentMonthUsageResponse::_internal_set_total_usage_without_discount(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.total_usage_without_discount_ = value; -} // double per_machine_usage_cost = 11 [json_name = "perMachineUsageCost", deprecated = true]; inline void GetCurrentMonthUsageResponse::clear_per_machine_usage_cost() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.per_machine_usage_cost_ = 0; + per_machine_usage_cost_ = 0; +} +inline double GetCurrentMonthUsageResponse::_internal_per_machine_usage_cost() const { + return per_machine_usage_cost_; } inline double GetCurrentMonthUsageResponse::per_machine_usage_cost() const { // @@protoc_insertion_point(field_get:viam.app.v1.GetCurrentMonthUsageResponse.per_machine_usage_cost) return _internal_per_machine_usage_cost(); } +inline void GetCurrentMonthUsageResponse::_internal_set_per_machine_usage_cost(double value) { + + per_machine_usage_cost_ = value; +} inline void GetCurrentMonthUsageResponse::set_per_machine_usage_cost(double value) { _internal_set_per_machine_usage_cost(value); // @@protoc_insertion_point(field_set:viam.app.v1.GetCurrentMonthUsageResponse.per_machine_usage_cost) } -inline double GetCurrentMonthUsageResponse::_internal_per_machine_usage_cost() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.per_machine_usage_cost_; -} -inline void GetCurrentMonthUsageResponse::_internal_set_per_machine_usage_cost(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.per_machine_usage_cost_ = value; -} // double binary_data_cloud_storage_usage_cost = 12 [json_name = "binaryDataCloudStorageUsageCost", deprecated = true]; inline void GetCurrentMonthUsageResponse::clear_binary_data_cloud_storage_usage_cost() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.binary_data_cloud_storage_usage_cost_ = 0; + binary_data_cloud_storage_usage_cost_ = 0; +} +inline double GetCurrentMonthUsageResponse::_internal_binary_data_cloud_storage_usage_cost() const { + return binary_data_cloud_storage_usage_cost_; } inline double GetCurrentMonthUsageResponse::binary_data_cloud_storage_usage_cost() const { // @@protoc_insertion_point(field_get:viam.app.v1.GetCurrentMonthUsageResponse.binary_data_cloud_storage_usage_cost) return _internal_binary_data_cloud_storage_usage_cost(); } +inline void GetCurrentMonthUsageResponse::_internal_set_binary_data_cloud_storage_usage_cost(double value) { + + binary_data_cloud_storage_usage_cost_ = value; +} inline void GetCurrentMonthUsageResponse::set_binary_data_cloud_storage_usage_cost(double value) { _internal_set_binary_data_cloud_storage_usage_cost(value); // @@protoc_insertion_point(field_set:viam.app.v1.GetCurrentMonthUsageResponse.binary_data_cloud_storage_usage_cost) } -inline double GetCurrentMonthUsageResponse::_internal_binary_data_cloud_storage_usage_cost() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.binary_data_cloud_storage_usage_cost_; -} -inline void GetCurrentMonthUsageResponse::_internal_set_binary_data_cloud_storage_usage_cost(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.binary_data_cloud_storage_usage_cost_ = value; -} // double other_cloud_storage_usage_cost = 13 [json_name = "otherCloudStorageUsageCost", deprecated = true]; inline void GetCurrentMonthUsageResponse::clear_other_cloud_storage_usage_cost() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.other_cloud_storage_usage_cost_ = 0; + other_cloud_storage_usage_cost_ = 0; +} +inline double GetCurrentMonthUsageResponse::_internal_other_cloud_storage_usage_cost() const { + return other_cloud_storage_usage_cost_; } inline double GetCurrentMonthUsageResponse::other_cloud_storage_usage_cost() const { // @@protoc_insertion_point(field_get:viam.app.v1.GetCurrentMonthUsageResponse.other_cloud_storage_usage_cost) return _internal_other_cloud_storage_usage_cost(); } +inline void GetCurrentMonthUsageResponse::_internal_set_other_cloud_storage_usage_cost(double value) { + + other_cloud_storage_usage_cost_ = value; +} inline void GetCurrentMonthUsageResponse::set_other_cloud_storage_usage_cost(double value) { _internal_set_other_cloud_storage_usage_cost(value); // @@protoc_insertion_point(field_set:viam.app.v1.GetCurrentMonthUsageResponse.other_cloud_storage_usage_cost) } -inline double GetCurrentMonthUsageResponse::_internal_other_cloud_storage_usage_cost() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.other_cloud_storage_usage_cost_; -} -inline void GetCurrentMonthUsageResponse::_internal_set_other_cloud_storage_usage_cost(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.other_cloud_storage_usage_cost_ = value; -} // ------------------------------------------------------------------- @@ -4804,54 +4171,51 @@ inline void GetCurrentMonthUsageResponse::_internal_set_other_cloud_storage_usag // string org_id = 1 [json_name = "orgId"]; inline void GetOrgBillingInformationRequest::clear_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.org_id_.ClearToEmpty(); + org_id_.ClearToEmpty(); } -inline const std::string& GetOrgBillingInformationRequest::org_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetOrgBillingInformationRequest::org_id() const { // @@protoc_insertion_point(field_get:viam.app.v1.GetOrgBillingInformationRequest.org_id) return _internal_org_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetOrgBillingInformationRequest::set_org_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.org_id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetOrgBillingInformationRequest::set_org_id(ArgT0&& arg0, ArgT... args) { + + org_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.GetOrgBillingInformationRequest.org_id) } -inline std::string* GetOrgBillingInformationRequest::mutable_org_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetOrgBillingInformationRequest::mutable_org_id() { std::string* _s = _internal_mutable_org_id(); // @@protoc_insertion_point(field_mutable:viam.app.v1.GetOrgBillingInformationRequest.org_id) return _s; } inline const std::string& GetOrgBillingInformationRequest::_internal_org_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.org_id_.Get(); + return org_id_.Get(); } inline void GetOrgBillingInformationRequest::_internal_set_org_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.org_id_.Set(value, GetArena()); + + org_id_.Set(value, GetArenaForAllocation()); } inline std::string* GetOrgBillingInformationRequest::_internal_mutable_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.org_id_.Mutable( GetArena()); + + return org_id_.Mutable(GetArenaForAllocation()); } inline std::string* GetOrgBillingInformationRequest::release_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.GetOrgBillingInformationRequest.org_id) - return _impl_.org_id_.Release(); -} -inline void GetOrgBillingInformationRequest::set_allocated_org_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.org_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.org_id_.IsDefault()) { - _impl_.org_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return org_id_.Release(); +} +inline void GetOrgBillingInformationRequest::set_allocated_org_id(std::string* org_id) { + if (org_id != nullptr) { + + } else { + + } + org_id_.SetAllocated(org_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (org_id_.IsDefault()) { + org_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetOrgBillingInformationRequest.org_id) } @@ -4861,244 +4225,229 @@ inline void GetOrgBillingInformationRequest::set_allocated_org_id(std::string* v // .viam.app.v1.PaymentMethodType type = 1 [json_name = "type"]; inline void GetOrgBillingInformationResponse::clear_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_ = 0; + type_ = 0; +} +inline ::viam::app::v1::PaymentMethodType GetOrgBillingInformationResponse::_internal_type() const { + return static_cast< ::viam::app::v1::PaymentMethodType >(type_); } inline ::viam::app::v1::PaymentMethodType GetOrgBillingInformationResponse::type() const { // @@protoc_insertion_point(field_get:viam.app.v1.GetOrgBillingInformationResponse.type) return _internal_type(); } +inline void GetOrgBillingInformationResponse::_internal_set_type(::viam::app::v1::PaymentMethodType value) { + + type_ = value; +} inline void GetOrgBillingInformationResponse::set_type(::viam::app::v1::PaymentMethodType value) { _internal_set_type(value); // @@protoc_insertion_point(field_set:viam.app.v1.GetOrgBillingInformationResponse.type) } -inline ::viam::app::v1::PaymentMethodType GetOrgBillingInformationResponse::_internal_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::viam::app::v1::PaymentMethodType>(_impl_.type_); -} -inline void GetOrgBillingInformationResponse::_internal_set_type(::viam::app::v1::PaymentMethodType value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.type_ = value; -} // string billing_email = 2 [json_name = "billingEmail"]; inline void GetOrgBillingInformationResponse::clear_billing_email() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.billing_email_.ClearToEmpty(); + billing_email_.ClearToEmpty(); } -inline const std::string& GetOrgBillingInformationResponse::billing_email() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetOrgBillingInformationResponse::billing_email() const { // @@protoc_insertion_point(field_get:viam.app.v1.GetOrgBillingInformationResponse.billing_email) return _internal_billing_email(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetOrgBillingInformationResponse::set_billing_email(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.billing_email_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetOrgBillingInformationResponse::set_billing_email(ArgT0&& arg0, ArgT... args) { + + billing_email_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.GetOrgBillingInformationResponse.billing_email) } -inline std::string* GetOrgBillingInformationResponse::mutable_billing_email() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetOrgBillingInformationResponse::mutable_billing_email() { std::string* _s = _internal_mutable_billing_email(); // @@protoc_insertion_point(field_mutable:viam.app.v1.GetOrgBillingInformationResponse.billing_email) return _s; } inline const std::string& GetOrgBillingInformationResponse::_internal_billing_email() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.billing_email_.Get(); + return billing_email_.Get(); } inline void GetOrgBillingInformationResponse::_internal_set_billing_email(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.billing_email_.Set(value, GetArena()); + + billing_email_.Set(value, GetArenaForAllocation()); } inline std::string* GetOrgBillingInformationResponse::_internal_mutable_billing_email() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.billing_email_.Mutable( GetArena()); + + return billing_email_.Mutable(GetArenaForAllocation()); } inline std::string* GetOrgBillingInformationResponse::release_billing_email() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.GetOrgBillingInformationResponse.billing_email) - return _impl_.billing_email_.Release(); -} -inline void GetOrgBillingInformationResponse::set_allocated_billing_email(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.billing_email_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.billing_email_.IsDefault()) { - _impl_.billing_email_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return billing_email_.Release(); +} +inline void GetOrgBillingInformationResponse::set_allocated_billing_email(std::string* billing_email) { + if (billing_email != nullptr) { + + } else { + + } + billing_email_.SetAllocated(billing_email, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (billing_email_.IsDefault()) { + billing_email_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetOrgBillingInformationResponse.billing_email) } // optional .viam.app.v1.PaymentMethodCard method = 3 [json_name = "method"]; -inline bool GetOrgBillingInformationResponse::has_method() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.method_ != nullptr); +inline bool GetOrgBillingInformationResponse::_internal_has_method() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + PROTOBUF_ASSUME(!value || method_ != nullptr); return value; } +inline bool GetOrgBillingInformationResponse::has_method() const { + return _internal_has_method(); +} inline void GetOrgBillingInformationResponse::clear_method() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.method_ != nullptr) _impl_.method_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (method_ != nullptr) method_->Clear(); + _has_bits_[0] &= ~0x00000002u; } inline const ::viam::app::v1::PaymentMethodCard& GetOrgBillingInformationResponse::_internal_method() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::PaymentMethodCard* p = _impl_.method_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_PaymentMethodCard_default_instance_); + const ::viam::app::v1::PaymentMethodCard* p = method_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_PaymentMethodCard_default_instance_); } -inline const ::viam::app::v1::PaymentMethodCard& GetOrgBillingInformationResponse::method() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::app::v1::PaymentMethodCard& GetOrgBillingInformationResponse::method() const { // @@protoc_insertion_point(field_get:viam.app.v1.GetOrgBillingInformationResponse.method) return _internal_method(); } -inline void GetOrgBillingInformationResponse::unsafe_arena_set_allocated_method(::viam::app::v1::PaymentMethodCard* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.method_); +inline void GetOrgBillingInformationResponse::unsafe_arena_set_allocated_method( + ::viam::app::v1::PaymentMethodCard* method) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(method_); } - _impl_.method_ = reinterpret_cast<::viam::app::v1::PaymentMethodCard*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + method_ = method; + if (method) { + _has_bits_[0] |= 0x00000002u; } else { - _impl_._has_bits_[0] &= ~0x00000002u; + _has_bits_[0] &= ~0x00000002u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.GetOrgBillingInformationResponse.method) } inline ::viam::app::v1::PaymentMethodCard* GetOrgBillingInformationResponse::release_method() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::viam::app::v1::PaymentMethodCard* released = _impl_.method_; - _impl_.method_ = nullptr; + _has_bits_[0] &= ~0x00000002u; + ::viam::app::v1::PaymentMethodCard* temp = method_; + method_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::app::v1::PaymentMethodCard* GetOrgBillingInformationResponse::unsafe_arena_release_method() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.GetOrgBillingInformationResponse.method) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::viam::app::v1::PaymentMethodCard* temp = _impl_.method_; - _impl_.method_ = nullptr; + _has_bits_[0] &= ~0x00000002u; + ::viam::app::v1::PaymentMethodCard* temp = method_; + method_ = nullptr; return temp; } inline ::viam::app::v1::PaymentMethodCard* GetOrgBillingInformationResponse::_internal_mutable_method() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.method_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::PaymentMethodCard>(GetArena()); - _impl_.method_ = reinterpret_cast<::viam::app::v1::PaymentMethodCard*>(p); + _has_bits_[0] |= 0x00000002u; + if (method_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::PaymentMethodCard>(GetArenaForAllocation()); + method_ = p; } - return _impl_.method_; + return method_; } -inline ::viam::app::v1::PaymentMethodCard* GetOrgBillingInformationResponse::mutable_method() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::app::v1::PaymentMethodCard* GetOrgBillingInformationResponse::mutable_method() { ::viam::app::v1::PaymentMethodCard* _msg = _internal_mutable_method(); // @@protoc_insertion_point(field_mutable:viam.app.v1.GetOrgBillingInformationResponse.method) return _msg; } -inline void GetOrgBillingInformationResponse::set_allocated_method(::viam::app::v1::PaymentMethodCard* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetOrgBillingInformationResponse::set_allocated_method(::viam::app::v1::PaymentMethodCard* method) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::PaymentMethodCard*>(_impl_.method_); + delete method_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::PaymentMethodCard*>(value)->GetArena(); + if (method) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(method); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + method = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, method, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + _has_bits_[0] |= 0x00000002u; } else { - _impl_._has_bits_[0] &= ~0x00000002u; + _has_bits_[0] &= ~0x00000002u; } - - _impl_.method_ = reinterpret_cast<::viam::app::v1::PaymentMethodCard*>(value); + method_ = method; // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetOrgBillingInformationResponse.method) } // optional string billing_tier = 4 [json_name = "billingTier"]; -inline bool GetOrgBillingInformationResponse::has_billing_tier() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; +inline bool GetOrgBillingInformationResponse::_internal_has_billing_tier() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; return value; } +inline bool GetOrgBillingInformationResponse::has_billing_tier() const { + return _internal_has_billing_tier(); +} inline void GetOrgBillingInformationResponse::clear_billing_tier() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.billing_tier_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000001u; + billing_tier_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; } -inline const std::string& GetOrgBillingInformationResponse::billing_tier() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetOrgBillingInformationResponse::billing_tier() const { // @@protoc_insertion_point(field_get:viam.app.v1.GetOrgBillingInformationResponse.billing_tier) return _internal_billing_tier(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetOrgBillingInformationResponse::set_billing_tier(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.billing_tier_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetOrgBillingInformationResponse::set_billing_tier(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + billing_tier_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.GetOrgBillingInformationResponse.billing_tier) } -inline std::string* GetOrgBillingInformationResponse::mutable_billing_tier() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetOrgBillingInformationResponse::mutable_billing_tier() { std::string* _s = _internal_mutable_billing_tier(); // @@protoc_insertion_point(field_mutable:viam.app.v1.GetOrgBillingInformationResponse.billing_tier) return _s; } inline const std::string& GetOrgBillingInformationResponse::_internal_billing_tier() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.billing_tier_.Get(); + return billing_tier_.Get(); } inline void GetOrgBillingInformationResponse::_internal_set_billing_tier(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.billing_tier_.Set(value, GetArena()); + _has_bits_[0] |= 0x00000001u; + billing_tier_.Set(value, GetArenaForAllocation()); } inline std::string* GetOrgBillingInformationResponse::_internal_mutable_billing_tier() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.billing_tier_.Mutable( GetArena()); + _has_bits_[0] |= 0x00000001u; + return billing_tier_.Mutable(GetArenaForAllocation()); } inline std::string* GetOrgBillingInformationResponse::release_billing_tier() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.GetOrgBillingInformationResponse.billing_tier) - if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + if (!_internal_has_billing_tier()) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000001u; - auto* released = _impl_.billing_tier_.Release(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.billing_tier_.Set("", GetArena()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return released; -} -inline void GetOrgBillingInformationResponse::set_allocated_billing_tier(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + _has_bits_[0] &= ~0x00000001u; + auto* p = billing_tier_.Release(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (billing_tier_.IsDefault()) { + billing_tier_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; +} +inline void GetOrgBillingInformationResponse::set_allocated_billing_tier(std::string* billing_tier) { + if (billing_tier != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - _impl_.billing_tier_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.billing_tier_.IsDefault()) { - _impl_.billing_tier_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _has_bits_[0] &= ~0x00000001u; + } + billing_tier_.SetAllocated(billing_tier, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (billing_tier_.IsDefault()) { + billing_tier_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetOrgBillingInformationResponse.billing_tier) } @@ -5108,54 +4457,51 @@ inline void GetOrgBillingInformationResponse::set_allocated_billing_tier(std::st // string org_id = 1 [json_name = "orgId"]; inline void GetInvoicesSummaryRequest::clear_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.org_id_.ClearToEmpty(); + org_id_.ClearToEmpty(); } -inline const std::string& GetInvoicesSummaryRequest::org_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetInvoicesSummaryRequest::org_id() const { // @@protoc_insertion_point(field_get:viam.app.v1.GetInvoicesSummaryRequest.org_id) return _internal_org_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetInvoicesSummaryRequest::set_org_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.org_id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetInvoicesSummaryRequest::set_org_id(ArgT0&& arg0, ArgT... args) { + + org_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.GetInvoicesSummaryRequest.org_id) } -inline std::string* GetInvoicesSummaryRequest::mutable_org_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetInvoicesSummaryRequest::mutable_org_id() { std::string* _s = _internal_mutable_org_id(); // @@protoc_insertion_point(field_mutable:viam.app.v1.GetInvoicesSummaryRequest.org_id) return _s; } inline const std::string& GetInvoicesSummaryRequest::_internal_org_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.org_id_.Get(); + return org_id_.Get(); } inline void GetInvoicesSummaryRequest::_internal_set_org_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.org_id_.Set(value, GetArena()); + + org_id_.Set(value, GetArenaForAllocation()); } inline std::string* GetInvoicesSummaryRequest::_internal_mutable_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.org_id_.Mutable( GetArena()); + + return org_id_.Mutable(GetArenaForAllocation()); } inline std::string* GetInvoicesSummaryRequest::release_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.GetInvoicesSummaryRequest.org_id) - return _impl_.org_id_.Release(); -} -inline void GetInvoicesSummaryRequest::set_allocated_org_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.org_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.org_id_.IsDefault()) { - _impl_.org_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return org_id_.Release(); +} +inline void GetInvoicesSummaryRequest::set_allocated_org_id(std::string* org_id) { + if (org_id != nullptr) { + + } else { + + } + org_id_.SetAllocated(org_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (org_id_.IsDefault()) { + org_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetInvoicesSummaryRequest.org_id) } @@ -5165,74 +4511,62 @@ inline void GetInvoicesSummaryRequest::set_allocated_org_id(std::string* value) // double outstanding_balance = 1 [json_name = "outstandingBalance"]; inline void GetInvoicesSummaryResponse::clear_outstanding_balance() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.outstanding_balance_ = 0; + outstanding_balance_ = 0; +} +inline double GetInvoicesSummaryResponse::_internal_outstanding_balance() const { + return outstanding_balance_; } inline double GetInvoicesSummaryResponse::outstanding_balance() const { // @@protoc_insertion_point(field_get:viam.app.v1.GetInvoicesSummaryResponse.outstanding_balance) return _internal_outstanding_balance(); } +inline void GetInvoicesSummaryResponse::_internal_set_outstanding_balance(double value) { + + outstanding_balance_ = value; +} inline void GetInvoicesSummaryResponse::set_outstanding_balance(double value) { _internal_set_outstanding_balance(value); // @@protoc_insertion_point(field_set:viam.app.v1.GetInvoicesSummaryResponse.outstanding_balance) } -inline double GetInvoicesSummaryResponse::_internal_outstanding_balance() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.outstanding_balance_; -} -inline void GetInvoicesSummaryResponse::_internal_set_outstanding_balance(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.outstanding_balance_ = value; -} // repeated .viam.app.v1.InvoiceSummary invoices = 2 [json_name = "invoices"]; inline int GetInvoicesSummaryResponse::_internal_invoices_size() const { - return _internal_invoices().size(); + return invoices_.size(); } inline int GetInvoicesSummaryResponse::invoices_size() const { return _internal_invoices_size(); } inline void GetInvoicesSummaryResponse::clear_invoices() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.invoices_.Clear(); + invoices_.Clear(); } -inline ::viam::app::v1::InvoiceSummary* GetInvoicesSummaryResponse::mutable_invoices(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::app::v1::InvoiceSummary* GetInvoicesSummaryResponse::mutable_invoices(int index) { // @@protoc_insertion_point(field_mutable:viam.app.v1.GetInvoicesSummaryResponse.invoices) - return _internal_mutable_invoices()->Mutable(index); + return invoices_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::InvoiceSummary>* GetInvoicesSummaryResponse::mutable_invoices() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::InvoiceSummary >* +GetInvoicesSummaryResponse::mutable_invoices() { // @@protoc_insertion_point(field_mutable_list:viam.app.v1.GetInvoicesSummaryResponse.invoices) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_invoices(); + return &invoices_; } -inline const ::viam::app::v1::InvoiceSummary& GetInvoicesSummaryResponse::invoices(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::app::v1::InvoiceSummary& GetInvoicesSummaryResponse::_internal_invoices(int index) const { + return invoices_.Get(index); +} +inline const ::viam::app::v1::InvoiceSummary& GetInvoicesSummaryResponse::invoices(int index) const { // @@protoc_insertion_point(field_get:viam.app.v1.GetInvoicesSummaryResponse.invoices) - return _internal_invoices().Get(index); + return _internal_invoices(index); +} +inline ::viam::app::v1::InvoiceSummary* GetInvoicesSummaryResponse::_internal_add_invoices() { + return invoices_.Add(); } -inline ::viam::app::v1::InvoiceSummary* GetInvoicesSummaryResponse::add_invoices() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::InvoiceSummary* _add = _internal_mutable_invoices()->Add(); +inline ::viam::app::v1::InvoiceSummary* GetInvoicesSummaryResponse::add_invoices() { + ::viam::app::v1::InvoiceSummary* _add = _internal_add_invoices(); // @@protoc_insertion_point(field_add:viam.app.v1.GetInvoicesSummaryResponse.invoices) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::InvoiceSummary>& GetInvoicesSummaryResponse::invoices() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::InvoiceSummary >& +GetInvoicesSummaryResponse::invoices() const { // @@protoc_insertion_point(field_list:viam.app.v1.GetInvoicesSummaryResponse.invoices) - return _internal_invoices(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::InvoiceSummary>& -GetInvoicesSummaryResponse::_internal_invoices() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.invoices_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::InvoiceSummary>* -GetInvoicesSummaryResponse::_internal_mutable_invoices() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.invoices_; + return invoices_; } // ------------------------------------------------------------------- @@ -5241,107 +4575,101 @@ GetInvoicesSummaryResponse::_internal_mutable_invoices() { // string id = 1 [json_name = "id"]; inline void GetInvoicePdfRequest::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); + id_.ClearToEmpty(); } -inline const std::string& GetInvoicePdfRequest::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetInvoicePdfRequest::id() const { // @@protoc_insertion_point(field_get:viam.app.v1.GetInvoicePdfRequest.id) return _internal_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetInvoicePdfRequest::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetInvoicePdfRequest::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.GetInvoicePdfRequest.id) } -inline std::string* GetInvoicePdfRequest::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetInvoicePdfRequest::mutable_id() { std::string* _s = _internal_mutable_id(); // @@protoc_insertion_point(field_mutable:viam.app.v1.GetInvoicePdfRequest.id) return _s; } inline const std::string& GetInvoicePdfRequest::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); + return id_.Get(); } inline void GetInvoicePdfRequest::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); + + id_.Set(value, GetArenaForAllocation()); } inline std::string* GetInvoicePdfRequest::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); + + return id_.Mutable(GetArenaForAllocation()); } inline std::string* GetInvoicePdfRequest::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.GetInvoicePdfRequest.id) - return _impl_.id_.Release(); -} -inline void GetInvoicePdfRequest::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return id_.Release(); +} +inline void GetInvoicePdfRequest::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetInvoicePdfRequest.id) } // string org_id = 2 [json_name = "orgId"]; inline void GetInvoicePdfRequest::clear_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.org_id_.ClearToEmpty(); + org_id_.ClearToEmpty(); } -inline const std::string& GetInvoicePdfRequest::org_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetInvoicePdfRequest::org_id() const { // @@protoc_insertion_point(field_get:viam.app.v1.GetInvoicePdfRequest.org_id) return _internal_org_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetInvoicePdfRequest::set_org_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.org_id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetInvoicePdfRequest::set_org_id(ArgT0&& arg0, ArgT... args) { + + org_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.GetInvoicePdfRequest.org_id) } -inline std::string* GetInvoicePdfRequest::mutable_org_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetInvoicePdfRequest::mutable_org_id() { std::string* _s = _internal_mutable_org_id(); // @@protoc_insertion_point(field_mutable:viam.app.v1.GetInvoicePdfRequest.org_id) return _s; } inline const std::string& GetInvoicePdfRequest::_internal_org_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.org_id_.Get(); + return org_id_.Get(); } inline void GetInvoicePdfRequest::_internal_set_org_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.org_id_.Set(value, GetArena()); + + org_id_.Set(value, GetArenaForAllocation()); } inline std::string* GetInvoicePdfRequest::_internal_mutable_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.org_id_.Mutable( GetArena()); + + return org_id_.Mutable(GetArenaForAllocation()); } inline std::string* GetInvoicePdfRequest::release_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.GetInvoicePdfRequest.org_id) - return _impl_.org_id_.Release(); -} -inline void GetInvoicePdfRequest::set_allocated_org_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.org_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.org_id_.IsDefault()) { - _impl_.org_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return org_id_.Release(); +} +inline void GetInvoicePdfRequest::set_allocated_org_id(std::string* org_id) { + if (org_id != nullptr) { + + } else { + + } + org_id_.SetAllocated(org_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (org_id_.IsDefault()) { + org_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetInvoicePdfRequest.org_id) } @@ -5351,54 +4679,51 @@ inline void GetInvoicePdfRequest::set_allocated_org_id(std::string* value) { // bytes chunk = 1 [json_name = "chunk"]; inline void GetInvoicePdfResponse::clear_chunk() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.chunk_.ClearToEmpty(); + chunk_.ClearToEmpty(); } -inline const std::string& GetInvoicePdfResponse::chunk() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetInvoicePdfResponse::chunk() const { // @@protoc_insertion_point(field_get:viam.app.v1.GetInvoicePdfResponse.chunk) return _internal_chunk(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetInvoicePdfResponse::set_chunk(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.chunk_.SetBytes(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetInvoicePdfResponse::set_chunk(ArgT0&& arg0, ArgT... args) { + + chunk_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.GetInvoicePdfResponse.chunk) } -inline std::string* GetInvoicePdfResponse::mutable_chunk() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetInvoicePdfResponse::mutable_chunk() { std::string* _s = _internal_mutable_chunk(); // @@protoc_insertion_point(field_mutable:viam.app.v1.GetInvoicePdfResponse.chunk) return _s; } inline const std::string& GetInvoicePdfResponse::_internal_chunk() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.chunk_.Get(); + return chunk_.Get(); } inline void GetInvoicePdfResponse::_internal_set_chunk(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.chunk_.Set(value, GetArena()); + + chunk_.Set(value, GetArenaForAllocation()); } inline std::string* GetInvoicePdfResponse::_internal_mutable_chunk() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.chunk_.Mutable( GetArena()); + + return chunk_.Mutable(GetArenaForAllocation()); } inline std::string* GetInvoicePdfResponse::release_chunk() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.GetInvoicePdfResponse.chunk) - return _impl_.chunk_.Release(); -} -inline void GetInvoicePdfResponse::set_allocated_chunk(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.chunk_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.chunk_.IsDefault()) { - _impl_.chunk_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return chunk_.Release(); +} +inline void GetInvoicePdfResponse::set_allocated_chunk(std::string* chunk) { + if (chunk != nullptr) { + + } else { + + } + chunk_.SetAllocated(chunk, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (chunk_.IsDefault()) { + chunk_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetInvoicePdfResponse.chunk) } @@ -5408,107 +4733,101 @@ inline void GetInvoicePdfResponse::set_allocated_chunk(std::string* value) { // string customer_org_id = 1 [json_name = "customerOrgId"]; inline void SendPaymentRequiredEmailRequest::clear_customer_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.customer_org_id_.ClearToEmpty(); + customer_org_id_.ClearToEmpty(); } -inline const std::string& SendPaymentRequiredEmailRequest::customer_org_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& SendPaymentRequiredEmailRequest::customer_org_id() const { // @@protoc_insertion_point(field_get:viam.app.v1.SendPaymentRequiredEmailRequest.customer_org_id) return _internal_customer_org_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void SendPaymentRequiredEmailRequest::set_customer_org_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.customer_org_id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void SendPaymentRequiredEmailRequest::set_customer_org_id(ArgT0&& arg0, ArgT... args) { + + customer_org_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.SendPaymentRequiredEmailRequest.customer_org_id) } -inline std::string* SendPaymentRequiredEmailRequest::mutable_customer_org_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* SendPaymentRequiredEmailRequest::mutable_customer_org_id() { std::string* _s = _internal_mutable_customer_org_id(); // @@protoc_insertion_point(field_mutable:viam.app.v1.SendPaymentRequiredEmailRequest.customer_org_id) return _s; } inline const std::string& SendPaymentRequiredEmailRequest::_internal_customer_org_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.customer_org_id_.Get(); + return customer_org_id_.Get(); } inline void SendPaymentRequiredEmailRequest::_internal_set_customer_org_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.customer_org_id_.Set(value, GetArena()); + + customer_org_id_.Set(value, GetArenaForAllocation()); } inline std::string* SendPaymentRequiredEmailRequest::_internal_mutable_customer_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.customer_org_id_.Mutable( GetArena()); + + return customer_org_id_.Mutable(GetArenaForAllocation()); } inline std::string* SendPaymentRequiredEmailRequest::release_customer_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.SendPaymentRequiredEmailRequest.customer_org_id) - return _impl_.customer_org_id_.Release(); -} -inline void SendPaymentRequiredEmailRequest::set_allocated_customer_org_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.customer_org_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.customer_org_id_.IsDefault()) { - _impl_.customer_org_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return customer_org_id_.Release(); +} +inline void SendPaymentRequiredEmailRequest::set_allocated_customer_org_id(std::string* customer_org_id) { + if (customer_org_id != nullptr) { + + } else { + + } + customer_org_id_.SetAllocated(customer_org_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (customer_org_id_.IsDefault()) { + customer_org_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.SendPaymentRequiredEmailRequest.customer_org_id) } // string billing_owner_org_id = 2 [json_name = "billingOwnerOrgId"]; inline void SendPaymentRequiredEmailRequest::clear_billing_owner_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.billing_owner_org_id_.ClearToEmpty(); + billing_owner_org_id_.ClearToEmpty(); } -inline const std::string& SendPaymentRequiredEmailRequest::billing_owner_org_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& SendPaymentRequiredEmailRequest::billing_owner_org_id() const { // @@protoc_insertion_point(field_get:viam.app.v1.SendPaymentRequiredEmailRequest.billing_owner_org_id) return _internal_billing_owner_org_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void SendPaymentRequiredEmailRequest::set_billing_owner_org_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.billing_owner_org_id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void SendPaymentRequiredEmailRequest::set_billing_owner_org_id(ArgT0&& arg0, ArgT... args) { + + billing_owner_org_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.SendPaymentRequiredEmailRequest.billing_owner_org_id) } -inline std::string* SendPaymentRequiredEmailRequest::mutable_billing_owner_org_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* SendPaymentRequiredEmailRequest::mutable_billing_owner_org_id() { std::string* _s = _internal_mutable_billing_owner_org_id(); // @@protoc_insertion_point(field_mutable:viam.app.v1.SendPaymentRequiredEmailRequest.billing_owner_org_id) return _s; } inline const std::string& SendPaymentRequiredEmailRequest::_internal_billing_owner_org_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.billing_owner_org_id_.Get(); + return billing_owner_org_id_.Get(); } inline void SendPaymentRequiredEmailRequest::_internal_set_billing_owner_org_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.billing_owner_org_id_.Set(value, GetArena()); + + billing_owner_org_id_.Set(value, GetArenaForAllocation()); } inline std::string* SendPaymentRequiredEmailRequest::_internal_mutable_billing_owner_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.billing_owner_org_id_.Mutable( GetArena()); + + return billing_owner_org_id_.Mutable(GetArenaForAllocation()); } inline std::string* SendPaymentRequiredEmailRequest::release_billing_owner_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.SendPaymentRequiredEmailRequest.billing_owner_org_id) - return _impl_.billing_owner_org_id_.Release(); -} -inline void SendPaymentRequiredEmailRequest::set_allocated_billing_owner_org_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.billing_owner_org_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.billing_owner_org_id_.IsDefault()) { - _impl_.billing_owner_org_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return billing_owner_org_id_.Release(); +} +inline void SendPaymentRequiredEmailRequest::set_allocated_billing_owner_org_id(std::string* billing_owner_org_id) { + if (billing_owner_org_id != nullptr) { + + } else { + + } + billing_owner_org_id_.SetAllocated(billing_owner_org_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (billing_owner_org_id_.IsDefault()) { + billing_owner_org_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.SendPaymentRequiredEmailRequest.billing_owner_org_id) } @@ -5517,42 +4836,64 @@ inline void SendPaymentRequiredEmailRequest::set_allocated_billing_owner_org_id( // SendPaymentRequiredEmailResponse #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) + } // namespace v1 } // namespace app } // namespace viam +PROTOBUF_NAMESPACE_OPEN -namespace google { -namespace protobuf { - +template <> struct is_proto_enum< ::viam::app::v1::PaymentMethodType> : ::std::true_type {}; template <> -struct is_proto_enum<::viam::app::v1::PaymentMethodType> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::viam::app::v1::PaymentMethodType>() { +inline const EnumDescriptor* GetEnumDescriptor< ::viam::app::v1::PaymentMethodType>() { return ::viam::app::v1::PaymentMethodType_descriptor(); } +template <> struct is_proto_enum< ::viam::app::v1::UsageCostType> : ::std::true_type {}; template <> -struct is_proto_enum<::viam::app::v1::UsageCostType> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::viam::app::v1::UsageCostType>() { +inline const EnumDescriptor* GetEnumDescriptor< ::viam::app::v1::UsageCostType>() { return ::viam::app::v1::UsageCostType_descriptor(); } +template <> struct is_proto_enum< ::viam::app::v1::SourceType> : ::std::true_type {}; template <> -struct is_proto_enum<::viam::app::v1::SourceType> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::viam::app::v1::SourceType>() { +inline const EnumDescriptor* GetEnumDescriptor< ::viam::app::v1::SourceType>() { return ::viam::app::v1::SourceType_descriptor(); } -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_app_2fv1_2fbilling_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_app_2fv1_2fbilling_2eproto diff --git a/src/viam/api/app/v1/end_user.grpc.pb.cc b/src/viam/api/app/v1/end_user.grpc.pb.cc index cdff180ea..707d9f4f8 100644 --- a/src/viam/api/app/v1/end_user.grpc.pb.cc +++ b/src/viam/api/app/v1/end_user.grpc.pb.cc @@ -6,19 +6,19 @@ #include "app/v1/end_user.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace app { namespace v1 { @@ -33,140 +33,165 @@ static const char* EndUserService_method_names[] = { std::unique_ptr< EndUserService::Stub> EndUserService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { (void)options; - std::unique_ptr< EndUserService::Stub> stub(new EndUserService::Stub(channel, options)); + std::unique_ptr< EndUserService::Stub> stub(new EndUserService::Stub(channel)); return stub; } -EndUserService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) - : channel_(channel), rpcmethod_IsLegalAccepted_(EndUserService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_AcceptLegal_(EndUserService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_RegisterAuthApplication_(EndUserService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_UpdateAuthApplication_(EndUserService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetAuthApplication_(EndUserService_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) +EndUserService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_IsLegalAccepted_(EndUserService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_AcceptLegal_(EndUserService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_RegisterAuthApplication_(EndUserService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_UpdateAuthApplication_(EndUserService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetAuthApplication_(EndUserService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status EndUserService::Stub::IsLegalAccepted(::grpc::ClientContext* context, const ::viam::app::v1::IsLegalAcceptedRequest& request, ::viam::app::v1::IsLegalAcceptedResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::IsLegalAcceptedRequest, ::viam::app::v1::IsLegalAcceptedResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_IsLegalAccepted_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_IsLegalAccepted_, context, request, response); } -void EndUserService::Stub::async::IsLegalAccepted(::grpc::ClientContext* context, const ::viam::app::v1::IsLegalAcceptedRequest* request, ::viam::app::v1::IsLegalAcceptedResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::IsLegalAcceptedRequest, ::viam::app::v1::IsLegalAcceptedResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_IsLegalAccepted_, context, request, response, std::move(f)); +void EndUserService::Stub::experimental_async::IsLegalAccepted(::grpc::ClientContext* context, const ::viam::app::v1::IsLegalAcceptedRequest* request, ::viam::app::v1::IsLegalAcceptedResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_IsLegalAccepted_, context, request, response, std::move(f)); } -void EndUserService::Stub::async::IsLegalAccepted(::grpc::ClientContext* context, const ::viam::app::v1::IsLegalAcceptedRequest* request, ::viam::app::v1::IsLegalAcceptedResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_IsLegalAccepted_, context, request, response, reactor); +void EndUserService::Stub::experimental_async::IsLegalAccepted(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::IsLegalAcceptedResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_IsLegalAccepted_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::IsLegalAcceptedResponse>* EndUserService::Stub::PrepareAsyncIsLegalAcceptedRaw(::grpc::ClientContext* context, const ::viam::app::v1::IsLegalAcceptedRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::IsLegalAcceptedResponse, ::viam::app::v1::IsLegalAcceptedRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_IsLegalAccepted_, context, request); +void EndUserService::Stub::experimental_async::IsLegalAccepted(::grpc::ClientContext* context, const ::viam::app::v1::IsLegalAcceptedRequest* request, ::viam::app::v1::IsLegalAcceptedResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_IsLegalAccepted_, context, request, response, reactor); +} + +void EndUserService::Stub::experimental_async::IsLegalAccepted(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::IsLegalAcceptedResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_IsLegalAccepted_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::app::v1::IsLegalAcceptedResponse>* EndUserService::Stub::AsyncIsLegalAcceptedRaw(::grpc::ClientContext* context, const ::viam::app::v1::IsLegalAcceptedRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncIsLegalAcceptedRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::IsLegalAcceptedResponse>::Create(channel_.get(), cq, rpcmethod_IsLegalAccepted_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::IsLegalAcceptedResponse>* EndUserService::Stub::PrepareAsyncIsLegalAcceptedRaw(::grpc::ClientContext* context, const ::viam::app::v1::IsLegalAcceptedRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::IsLegalAcceptedResponse>::Create(channel_.get(), cq, rpcmethod_IsLegalAccepted_, context, request, false); } ::grpc::Status EndUserService::Stub::AcceptLegal(::grpc::ClientContext* context, const ::viam::app::v1::AcceptLegalRequest& request, ::viam::app::v1::AcceptLegalResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::AcceptLegalRequest, ::viam::app::v1::AcceptLegalResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_AcceptLegal_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_AcceptLegal_, context, request, response); } -void EndUserService::Stub::async::AcceptLegal(::grpc::ClientContext* context, const ::viam::app::v1::AcceptLegalRequest* request, ::viam::app::v1::AcceptLegalResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::AcceptLegalRequest, ::viam::app::v1::AcceptLegalResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_AcceptLegal_, context, request, response, std::move(f)); +void EndUserService::Stub::experimental_async::AcceptLegal(::grpc::ClientContext* context, const ::viam::app::v1::AcceptLegalRequest* request, ::viam::app::v1::AcceptLegalResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_AcceptLegal_, context, request, response, std::move(f)); } -void EndUserService::Stub::async::AcceptLegal(::grpc::ClientContext* context, const ::viam::app::v1::AcceptLegalRequest* request, ::viam::app::v1::AcceptLegalResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_AcceptLegal_, context, request, response, reactor); +void EndUserService::Stub::experimental_async::AcceptLegal(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::AcceptLegalResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_AcceptLegal_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::AcceptLegalResponse>* EndUserService::Stub::PrepareAsyncAcceptLegalRaw(::grpc::ClientContext* context, const ::viam::app::v1::AcceptLegalRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::AcceptLegalResponse, ::viam::app::v1::AcceptLegalRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_AcceptLegal_, context, request); +void EndUserService::Stub::experimental_async::AcceptLegal(::grpc::ClientContext* context, const ::viam::app::v1::AcceptLegalRequest* request, ::viam::app::v1::AcceptLegalResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_AcceptLegal_, context, request, response, reactor); +} + +void EndUserService::Stub::experimental_async::AcceptLegal(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::AcceptLegalResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_AcceptLegal_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::app::v1::AcceptLegalResponse>* EndUserService::Stub::AsyncAcceptLegalRaw(::grpc::ClientContext* context, const ::viam::app::v1::AcceptLegalRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncAcceptLegalRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::AcceptLegalResponse>::Create(channel_.get(), cq, rpcmethod_AcceptLegal_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::AcceptLegalResponse>* EndUserService::Stub::PrepareAsyncAcceptLegalRaw(::grpc::ClientContext* context, const ::viam::app::v1::AcceptLegalRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::AcceptLegalResponse>::Create(channel_.get(), cq, rpcmethod_AcceptLegal_, context, request, false); } ::grpc::Status EndUserService::Stub::RegisterAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::RegisterAuthApplicationRequest& request, ::viam::app::v1::RegisterAuthApplicationResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::RegisterAuthApplicationRequest, ::viam::app::v1::RegisterAuthApplicationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_RegisterAuthApplication_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_RegisterAuthApplication_, context, request, response); } -void EndUserService::Stub::async::RegisterAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::RegisterAuthApplicationRequest* request, ::viam::app::v1::RegisterAuthApplicationResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::RegisterAuthApplicationRequest, ::viam::app::v1::RegisterAuthApplicationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_RegisterAuthApplication_, context, request, response, std::move(f)); +void EndUserService::Stub::experimental_async::RegisterAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::RegisterAuthApplicationRequest* request, ::viam::app::v1::RegisterAuthApplicationResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_RegisterAuthApplication_, context, request, response, std::move(f)); } -void EndUserService::Stub::async::RegisterAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::RegisterAuthApplicationRequest* request, ::viam::app::v1::RegisterAuthApplicationResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_RegisterAuthApplication_, context, request, response, reactor); +void EndUserService::Stub::experimental_async::RegisterAuthApplication(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::RegisterAuthApplicationResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_RegisterAuthApplication_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::RegisterAuthApplicationResponse>* EndUserService::Stub::PrepareAsyncRegisterAuthApplicationRaw(::grpc::ClientContext* context, const ::viam::app::v1::RegisterAuthApplicationRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::RegisterAuthApplicationResponse, ::viam::app::v1::RegisterAuthApplicationRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_RegisterAuthApplication_, context, request); +void EndUserService::Stub::experimental_async::RegisterAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::RegisterAuthApplicationRequest* request, ::viam::app::v1::RegisterAuthApplicationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_RegisterAuthApplication_, context, request, response, reactor); +} + +void EndUserService::Stub::experimental_async::RegisterAuthApplication(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::RegisterAuthApplicationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_RegisterAuthApplication_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::app::v1::RegisterAuthApplicationResponse>* EndUserService::Stub::AsyncRegisterAuthApplicationRaw(::grpc::ClientContext* context, const ::viam::app::v1::RegisterAuthApplicationRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncRegisterAuthApplicationRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::RegisterAuthApplicationResponse>::Create(channel_.get(), cq, rpcmethod_RegisterAuthApplication_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::RegisterAuthApplicationResponse>* EndUserService::Stub::PrepareAsyncRegisterAuthApplicationRaw(::grpc::ClientContext* context, const ::viam::app::v1::RegisterAuthApplicationRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::RegisterAuthApplicationResponse>::Create(channel_.get(), cq, rpcmethod_RegisterAuthApplication_, context, request, false); } ::grpc::Status EndUserService::Stub::UpdateAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::UpdateAuthApplicationRequest& request, ::viam::app::v1::UpdateAuthApplicationResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::UpdateAuthApplicationRequest, ::viam::app::v1::UpdateAuthApplicationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_UpdateAuthApplication_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_UpdateAuthApplication_, context, request, response); } -void EndUserService::Stub::async::UpdateAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::UpdateAuthApplicationRequest* request, ::viam::app::v1::UpdateAuthApplicationResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::UpdateAuthApplicationRequest, ::viam::app::v1::UpdateAuthApplicationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_UpdateAuthApplication_, context, request, response, std::move(f)); +void EndUserService::Stub::experimental_async::UpdateAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::UpdateAuthApplicationRequest* request, ::viam::app::v1::UpdateAuthApplicationResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateAuthApplication_, context, request, response, std::move(f)); } -void EndUserService::Stub::async::UpdateAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::UpdateAuthApplicationRequest* request, ::viam::app::v1::UpdateAuthApplicationResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_UpdateAuthApplication_, context, request, response, reactor); +void EndUserService::Stub::experimental_async::UpdateAuthApplication(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateAuthApplicationResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateAuthApplication_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateAuthApplicationResponse>* EndUserService::Stub::PrepareAsyncUpdateAuthApplicationRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateAuthApplicationRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::UpdateAuthApplicationResponse, ::viam::app::v1::UpdateAuthApplicationRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_UpdateAuthApplication_, context, request); +void EndUserService::Stub::experimental_async::UpdateAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::UpdateAuthApplicationRequest* request, ::viam::app::v1::UpdateAuthApplicationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateAuthApplication_, context, request, response, reactor); +} + +void EndUserService::Stub::experimental_async::UpdateAuthApplication(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateAuthApplicationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateAuthApplication_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateAuthApplicationResponse>* EndUserService::Stub::AsyncUpdateAuthApplicationRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateAuthApplicationRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncUpdateAuthApplicationRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::UpdateAuthApplicationResponse>::Create(channel_.get(), cq, rpcmethod_UpdateAuthApplication_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::UpdateAuthApplicationResponse>* EndUserService::Stub::PrepareAsyncUpdateAuthApplicationRaw(::grpc::ClientContext* context, const ::viam::app::v1::UpdateAuthApplicationRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::UpdateAuthApplicationResponse>::Create(channel_.get(), cq, rpcmethod_UpdateAuthApplication_, context, request, false); } ::grpc::Status EndUserService::Stub::GetAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::GetAuthApplicationRequest& request, ::viam::app::v1::GetAuthApplicationResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::GetAuthApplicationRequest, ::viam::app::v1::GetAuthApplicationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetAuthApplication_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetAuthApplication_, context, request, response); } -void EndUserService::Stub::async::GetAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::GetAuthApplicationRequest* request, ::viam::app::v1::GetAuthApplicationResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::GetAuthApplicationRequest, ::viam::app::v1::GetAuthApplicationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetAuthApplication_, context, request, response, std::move(f)); +void EndUserService::Stub::experimental_async::GetAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::GetAuthApplicationRequest* request, ::viam::app::v1::GetAuthApplicationResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetAuthApplication_, context, request, response, std::move(f)); } -void EndUserService::Stub::async::GetAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::GetAuthApplicationRequest* request, ::viam::app::v1::GetAuthApplicationResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetAuthApplication_, context, request, response, reactor); +void EndUserService::Stub::experimental_async::GetAuthApplication(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetAuthApplicationResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetAuthApplication_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetAuthApplicationResponse>* EndUserService::Stub::PrepareAsyncGetAuthApplicationRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetAuthApplicationRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::GetAuthApplicationResponse, ::viam::app::v1::GetAuthApplicationRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetAuthApplication_, context, request); +void EndUserService::Stub::experimental_async::GetAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::GetAuthApplicationRequest* request, ::viam::app::v1::GetAuthApplicationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetAuthApplication_, context, request, response, reactor); +} + +void EndUserService::Stub::experimental_async::GetAuthApplication(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetAuthApplicationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetAuthApplication_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetAuthApplicationResponse>* EndUserService::Stub::AsyncGetAuthApplicationRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetAuthApplicationRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetAuthApplicationRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::GetAuthApplicationResponse>::Create(channel_.get(), cq, rpcmethod_GetAuthApplication_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetAuthApplicationResponse>* EndUserService::Stub::PrepareAsyncGetAuthApplicationRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetAuthApplicationRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::GetAuthApplicationResponse>::Create(channel_.get(), cq, rpcmethod_GetAuthApplication_, context, request, false); } EndUserService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( EndUserService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< EndUserService::Service, ::viam::app::v1::IsLegalAcceptedRequest, ::viam::app::v1::IsLegalAcceptedResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< EndUserService::Service, ::viam::app::v1::IsLegalAcceptedRequest, ::viam::app::v1::IsLegalAcceptedResponse>( [](EndUserService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::IsLegalAcceptedRequest* req, ::viam::app::v1::IsLegalAcceptedResponse* resp) { return service->IsLegalAccepted(ctx, req, resp); @@ -174,9 +199,9 @@ EndUserService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( EndUserService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< EndUserService::Service, ::viam::app::v1::AcceptLegalRequest, ::viam::app::v1::AcceptLegalResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< EndUserService::Service, ::viam::app::v1::AcceptLegalRequest, ::viam::app::v1::AcceptLegalResponse>( [](EndUserService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::AcceptLegalRequest* req, ::viam::app::v1::AcceptLegalResponse* resp) { return service->AcceptLegal(ctx, req, resp); @@ -184,9 +209,9 @@ EndUserService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( EndUserService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< EndUserService::Service, ::viam::app::v1::RegisterAuthApplicationRequest, ::viam::app::v1::RegisterAuthApplicationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< EndUserService::Service, ::viam::app::v1::RegisterAuthApplicationRequest, ::viam::app::v1::RegisterAuthApplicationResponse>( [](EndUserService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::RegisterAuthApplicationRequest* req, ::viam::app::v1::RegisterAuthApplicationResponse* resp) { return service->RegisterAuthApplication(ctx, req, resp); @@ -194,9 +219,9 @@ EndUserService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( EndUserService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< EndUserService::Service, ::viam::app::v1::UpdateAuthApplicationRequest, ::viam::app::v1::UpdateAuthApplicationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< EndUserService::Service, ::viam::app::v1::UpdateAuthApplicationRequest, ::viam::app::v1::UpdateAuthApplicationResponse>( [](EndUserService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::UpdateAuthApplicationRequest* req, ::viam::app::v1::UpdateAuthApplicationResponse* resp) { return service->UpdateAuthApplication(ctx, req, resp); @@ -204,9 +229,9 @@ EndUserService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( EndUserService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< EndUserService::Service, ::viam::app::v1::GetAuthApplicationRequest, ::viam::app::v1::GetAuthApplicationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< EndUserService::Service, ::viam::app::v1::GetAuthApplicationRequest, ::viam::app::v1::GetAuthApplicationResponse>( [](EndUserService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::GetAuthApplicationRequest* req, ::viam::app::v1::GetAuthApplicationResponse* resp) { return service->GetAuthApplication(ctx, req, resp); diff --git a/src/viam/api/app/v1/end_user.grpc.pb.h b/src/viam/api/app/v1/end_user.grpc.pb.h index 6e58825fd..ab407fbd5 100644 --- a/src/viam/api/app/v1/end_user.grpc.pb.h +++ b/src/viam/api/app/v1/end_user.grpc.pb.h @@ -7,23 +7,24 @@ #include "app/v1/end_user.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace app { @@ -78,30 +79,84 @@ class EndUserService final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::GetAuthApplicationResponse>> PrepareAsyncGetAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::GetAuthApplicationRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::GetAuthApplicationResponse>>(PrepareAsyncGetAuthApplicationRaw(context, request, cq)); } - class async_interface { + class experimental_async_interface { public: - virtual ~async_interface() {} + virtual ~experimental_async_interface() {} // Returns whether the specified user has accepted end user license agreements. // If false, the user should not be able to use the application. virtual void IsLegalAccepted(::grpc::ClientContext* context, const ::viam::app::v1::IsLegalAcceptedRequest* request, ::viam::app::v1::IsLegalAcceptedResponse* response, std::function) = 0; + virtual void IsLegalAccepted(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::IsLegalAcceptedResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void IsLegalAccepted(::grpc::ClientContext* context, const ::viam::app::v1::IsLegalAcceptedRequest* request, ::viam::app::v1::IsLegalAcceptedResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void IsLegalAccepted(::grpc::ClientContext* context, const ::viam::app::v1::IsLegalAcceptedRequest* request, ::viam::app::v1::IsLegalAcceptedResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void IsLegalAccepted(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::IsLegalAcceptedResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void IsLegalAccepted(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::IsLegalAcceptedResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Marks that the specified user has accepted end user license agreements. virtual void AcceptLegal(::grpc::ClientContext* context, const ::viam::app::v1::AcceptLegalRequest* request, ::viam::app::v1::AcceptLegalResponse* response, std::function) = 0; + virtual void AcceptLegal(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::AcceptLegalResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void AcceptLegal(::grpc::ClientContext* context, const ::viam::app::v1::AcceptLegalRequest* request, ::viam::app::v1::AcceptLegalResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void AcceptLegal(::grpc::ClientContext* context, const ::viam::app::v1::AcceptLegalRequest* request, ::viam::app::v1::AcceptLegalResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void AcceptLegal(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::AcceptLegalResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void AcceptLegal(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::AcceptLegalResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Allows users to register third party auth applications using Viam linked to the indicated organization virtual void RegisterAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::RegisterAuthApplicationRequest* request, ::viam::app::v1::RegisterAuthApplicationResponse* response, std::function) = 0; + virtual void RegisterAuthApplication(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::RegisterAuthApplicationResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void RegisterAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::RegisterAuthApplicationRequest* request, ::viam::app::v1::RegisterAuthApplicationResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void RegisterAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::RegisterAuthApplicationRequest* request, ::viam::app::v1::RegisterAuthApplicationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void RegisterAuthApplication(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::RegisterAuthApplicationResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void RegisterAuthApplication(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::RegisterAuthApplicationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Allows users to update their third party auth applications virtual void UpdateAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::UpdateAuthApplicationRequest* request, ::viam::app::v1::UpdateAuthApplicationResponse* response, std::function) = 0; + virtual void UpdateAuthApplication(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateAuthApplicationResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void UpdateAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::UpdateAuthApplicationRequest* request, ::viam::app::v1::UpdateAuthApplicationResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void UpdateAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::UpdateAuthApplicationRequest* request, ::viam::app::v1::UpdateAuthApplicationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void UpdateAuthApplication(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateAuthApplicationResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void UpdateAuthApplication(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateAuthApplicationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Allows users to get the config for their third party auth applications virtual void GetAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::GetAuthApplicationRequest* request, ::viam::app::v1::GetAuthApplicationResponse* response, std::function) = 0; + virtual void GetAuthApplication(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetAuthApplicationResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::GetAuthApplicationRequest* request, ::viam::app::v1::GetAuthApplicationResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::GetAuthApplicationRequest* request, ::viam::app::v1::GetAuthApplicationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetAuthApplication(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetAuthApplicationResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetAuthApplication(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetAuthApplicationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif }; - typedef class async_interface experimental_async_interface; - virtual class async_interface* async() { return nullptr; } - class async_interface* experimental_async() { return async(); } - private: + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef class experimental_async_interface async_interface; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + async_interface* async() { return experimental_async(); } + #endif + virtual class experimental_async_interface* experimental_async() { return nullptr; } + private: virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::IsLegalAcceptedResponse>* AsyncIsLegalAcceptedRaw(::grpc::ClientContext* context, const ::viam::app::v1::IsLegalAcceptedRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::IsLegalAcceptedResponse>* PrepareAsyncIsLegalAcceptedRaw(::grpc::ClientContext* context, const ::viam::app::v1::IsLegalAcceptedRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::AcceptLegalResponse>* AsyncAcceptLegalRaw(::grpc::ClientContext* context, const ::viam::app::v1::AcceptLegalRequest& request, ::grpc::CompletionQueue* cq) = 0; @@ -115,7 +170,7 @@ class EndUserService final { }; class Stub final : public StubInterface { public: - Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); ::grpc::Status IsLegalAccepted(::grpc::ClientContext* context, const ::viam::app::v1::IsLegalAcceptedRequest& request, ::viam::app::v1::IsLegalAcceptedResponse* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::IsLegalAcceptedResponse>> AsyncIsLegalAccepted(::grpc::ClientContext* context, const ::viam::app::v1::IsLegalAcceptedRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::IsLegalAcceptedResponse>>(AsyncIsLegalAcceptedRaw(context, request, cq)); @@ -151,30 +206,80 @@ class EndUserService final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetAuthApplicationResponse>> PrepareAsyncGetAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::GetAuthApplicationRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::GetAuthApplicationResponse>>(PrepareAsyncGetAuthApplicationRaw(context, request, cq)); } - class async final : - public StubInterface::async_interface { + class experimental_async final : + public StubInterface::experimental_async_interface { public: void IsLegalAccepted(::grpc::ClientContext* context, const ::viam::app::v1::IsLegalAcceptedRequest* request, ::viam::app::v1::IsLegalAcceptedResponse* response, std::function) override; + void IsLegalAccepted(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::IsLegalAcceptedResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void IsLegalAccepted(::grpc::ClientContext* context, const ::viam::app::v1::IsLegalAcceptedRequest* request, ::viam::app::v1::IsLegalAcceptedResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void IsLegalAccepted(::grpc::ClientContext* context, const ::viam::app::v1::IsLegalAcceptedRequest* request, ::viam::app::v1::IsLegalAcceptedResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void IsLegalAccepted(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::IsLegalAcceptedResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void IsLegalAccepted(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::IsLegalAcceptedResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void AcceptLegal(::grpc::ClientContext* context, const ::viam::app::v1::AcceptLegalRequest* request, ::viam::app::v1::AcceptLegalResponse* response, std::function) override; + void AcceptLegal(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::AcceptLegalResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void AcceptLegal(::grpc::ClientContext* context, const ::viam::app::v1::AcceptLegalRequest* request, ::viam::app::v1::AcceptLegalResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void AcceptLegal(::grpc::ClientContext* context, const ::viam::app::v1::AcceptLegalRequest* request, ::viam::app::v1::AcceptLegalResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void AcceptLegal(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::AcceptLegalResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void AcceptLegal(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::AcceptLegalResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void RegisterAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::RegisterAuthApplicationRequest* request, ::viam::app::v1::RegisterAuthApplicationResponse* response, std::function) override; + void RegisterAuthApplication(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::RegisterAuthApplicationResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void RegisterAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::RegisterAuthApplicationRequest* request, ::viam::app::v1::RegisterAuthApplicationResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void RegisterAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::RegisterAuthApplicationRequest* request, ::viam::app::v1::RegisterAuthApplicationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void RegisterAuthApplication(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::RegisterAuthApplicationResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void RegisterAuthApplication(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::RegisterAuthApplicationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void UpdateAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::UpdateAuthApplicationRequest* request, ::viam::app::v1::UpdateAuthApplicationResponse* response, std::function) override; + void UpdateAuthApplication(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateAuthApplicationResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void UpdateAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::UpdateAuthApplicationRequest* request, ::viam::app::v1::UpdateAuthApplicationResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void UpdateAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::UpdateAuthApplicationRequest* request, ::viam::app::v1::UpdateAuthApplicationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void UpdateAuthApplication(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateAuthApplicationResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void UpdateAuthApplication(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::UpdateAuthApplicationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::GetAuthApplicationRequest* request, ::viam::app::v1::GetAuthApplicationResponse* response, std::function) override; + void GetAuthApplication(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetAuthApplicationResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::GetAuthApplicationRequest* request, ::viam::app::v1::GetAuthApplicationResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetAuthApplication(::grpc::ClientContext* context, const ::viam::app::v1::GetAuthApplicationRequest* request, ::viam::app::v1::GetAuthApplicationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetAuthApplication(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetAuthApplicationResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetAuthApplication(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::GetAuthApplicationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif private: friend class Stub; - explicit async(Stub* stub): stub_(stub) { } + explicit experimental_async(Stub* stub): stub_(stub) { } Stub* stub() { return stub_; } Stub* stub_; }; - class async* async() override { return &async_stub_; } + class experimental_async_interface* experimental_async() override { return &async_stub_; } private: std::shared_ptr< ::grpc::ChannelInterface> channel_; - class async async_stub_{this}; + class experimental_async async_stub_{this}; ::grpc::ClientAsyncResponseReader< ::viam::app::v1::IsLegalAcceptedResponse>* AsyncIsLegalAcceptedRaw(::grpc::ClientContext* context, const ::viam::app::v1::IsLegalAcceptedRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::app::v1::IsLegalAcceptedResponse>* PrepareAsyncIsLegalAcceptedRaw(::grpc::ClientContext* context, const ::viam::app::v1::IsLegalAcceptedRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::app::v1::AcceptLegalResponse>* AsyncAcceptLegalRaw(::grpc::ClientContext* context, const ::viam::app::v1::AcceptLegalRequest& request, ::grpc::CompletionQueue* cq) override; @@ -311,22 +416,36 @@ class EndUserService final { }; typedef WithAsyncMethod_IsLegalAccepted > > > > AsyncService; template - class WithCallbackMethod_IsLegalAccepted : public BaseClass { + class ExperimentalWithCallbackMethod_IsLegalAccepted : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_IsLegalAccepted() { - ::grpc::Service::MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::IsLegalAcceptedRequest, ::viam::app::v1::IsLegalAcceptedResponse>( + ExperimentalWithCallbackMethod_IsLegalAccepted() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::IsLegalAcceptedRequest, ::viam::app::v1::IsLegalAcceptedResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::IsLegalAcceptedRequest* request, ::viam::app::v1::IsLegalAcceptedResponse* response) { return this->IsLegalAccepted(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::IsLegalAcceptedRequest* request, ::viam::app::v1::IsLegalAcceptedResponse* response) { return this->IsLegalAccepted(context, request, response); }));} void SetMessageAllocatorFor_IsLegalAccepted( - ::grpc::MessageAllocator< ::viam::app::v1::IsLegalAcceptedRequest, ::viam::app::v1::IsLegalAcceptedResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::app::v1::IsLegalAcceptedRequest, ::viam::app::v1::IsLegalAcceptedResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::IsLegalAcceptedRequest, ::viam::app::v1::IsLegalAcceptedResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(0); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::IsLegalAcceptedRequest, ::viam::app::v1::IsLegalAcceptedResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_IsLegalAccepted() override { + ~ExperimentalWithCallbackMethod_IsLegalAccepted() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -334,26 +453,46 @@ class EndUserService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* IsLegalAccepted( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::IsLegalAcceptedRequest* /*request*/, ::viam::app::v1::IsLegalAcceptedResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::IsLegalAcceptedRequest* /*request*/, ::viam::app::v1::IsLegalAcceptedResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* IsLegalAccepted( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::IsLegalAcceptedRequest* /*request*/, ::viam::app::v1::IsLegalAcceptedResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_AcceptLegal : public BaseClass { + class ExperimentalWithCallbackMethod_AcceptLegal : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_AcceptLegal() { - ::grpc::Service::MarkMethodCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::AcceptLegalRequest, ::viam::app::v1::AcceptLegalResponse>( + ExperimentalWithCallbackMethod_AcceptLegal() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::AcceptLegalRequest, ::viam::app::v1::AcceptLegalResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::AcceptLegalRequest* request, ::viam::app::v1::AcceptLegalResponse* response) { return this->AcceptLegal(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::AcceptLegalRequest* request, ::viam::app::v1::AcceptLegalResponse* response) { return this->AcceptLegal(context, request, response); }));} void SetMessageAllocatorFor_AcceptLegal( - ::grpc::MessageAllocator< ::viam::app::v1::AcceptLegalRequest, ::viam::app::v1::AcceptLegalResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::app::v1::AcceptLegalRequest, ::viam::app::v1::AcceptLegalResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::AcceptLegalRequest, ::viam::app::v1::AcceptLegalResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(1); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::AcceptLegalRequest, ::viam::app::v1::AcceptLegalResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_AcceptLegal() override { + ~ExperimentalWithCallbackMethod_AcceptLegal() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -361,26 +500,46 @@ class EndUserService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* AcceptLegal( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::AcceptLegalRequest* /*request*/, ::viam::app::v1::AcceptLegalResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::AcceptLegalRequest* /*request*/, ::viam::app::v1::AcceptLegalResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* AcceptLegal( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::AcceptLegalRequest* /*request*/, ::viam::app::v1::AcceptLegalResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_RegisterAuthApplication : public BaseClass { + class ExperimentalWithCallbackMethod_RegisterAuthApplication : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_RegisterAuthApplication() { - ::grpc::Service::MarkMethodCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::RegisterAuthApplicationRequest, ::viam::app::v1::RegisterAuthApplicationResponse>( + ExperimentalWithCallbackMethod_RegisterAuthApplication() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(2, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::RegisterAuthApplicationRequest, ::viam::app::v1::RegisterAuthApplicationResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::RegisterAuthApplicationRequest* request, ::viam::app::v1::RegisterAuthApplicationResponse* response) { return this->RegisterAuthApplication(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::RegisterAuthApplicationRequest* request, ::viam::app::v1::RegisterAuthApplicationResponse* response) { return this->RegisterAuthApplication(context, request, response); }));} void SetMessageAllocatorFor_RegisterAuthApplication( - ::grpc::MessageAllocator< ::viam::app::v1::RegisterAuthApplicationRequest, ::viam::app::v1::RegisterAuthApplicationResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::app::v1::RegisterAuthApplicationRequest, ::viam::app::v1::RegisterAuthApplicationResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::RegisterAuthApplicationRequest, ::viam::app::v1::RegisterAuthApplicationResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(2); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::RegisterAuthApplicationRequest, ::viam::app::v1::RegisterAuthApplicationResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_RegisterAuthApplication() override { + ~ExperimentalWithCallbackMethod_RegisterAuthApplication() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -388,26 +547,46 @@ class EndUserService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* RegisterAuthApplication( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::RegisterAuthApplicationRequest* /*request*/, ::viam::app::v1::RegisterAuthApplicationResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::RegisterAuthApplicationRequest* /*request*/, ::viam::app::v1::RegisterAuthApplicationResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* RegisterAuthApplication( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::RegisterAuthApplicationRequest* /*request*/, ::viam::app::v1::RegisterAuthApplicationResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_UpdateAuthApplication : public BaseClass { + class ExperimentalWithCallbackMethod_UpdateAuthApplication : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_UpdateAuthApplication() { - ::grpc::Service::MarkMethodCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::UpdateAuthApplicationRequest, ::viam::app::v1::UpdateAuthApplicationResponse>( + ExperimentalWithCallbackMethod_UpdateAuthApplication() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(3, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::UpdateAuthApplicationRequest, ::viam::app::v1::UpdateAuthApplicationResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::UpdateAuthApplicationRequest* request, ::viam::app::v1::UpdateAuthApplicationResponse* response) { return this->UpdateAuthApplication(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::UpdateAuthApplicationRequest* request, ::viam::app::v1::UpdateAuthApplicationResponse* response) { return this->UpdateAuthApplication(context, request, response); }));} void SetMessageAllocatorFor_UpdateAuthApplication( - ::grpc::MessageAllocator< ::viam::app::v1::UpdateAuthApplicationRequest, ::viam::app::v1::UpdateAuthApplicationResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::app::v1::UpdateAuthApplicationRequest, ::viam::app::v1::UpdateAuthApplicationResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::UpdateAuthApplicationRequest, ::viam::app::v1::UpdateAuthApplicationResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(3); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::UpdateAuthApplicationRequest, ::viam::app::v1::UpdateAuthApplicationResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_UpdateAuthApplication() override { + ~ExperimentalWithCallbackMethod_UpdateAuthApplication() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -415,26 +594,46 @@ class EndUserService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* UpdateAuthApplication( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::UpdateAuthApplicationRequest* /*request*/, ::viam::app::v1::UpdateAuthApplicationResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::UpdateAuthApplicationRequest* /*request*/, ::viam::app::v1::UpdateAuthApplicationResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* UpdateAuthApplication( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::UpdateAuthApplicationRequest* /*request*/, ::viam::app::v1::UpdateAuthApplicationResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetAuthApplication : public BaseClass { + class ExperimentalWithCallbackMethod_GetAuthApplication : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetAuthApplication() { - ::grpc::Service::MarkMethodCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::GetAuthApplicationRequest, ::viam::app::v1::GetAuthApplicationResponse>( + ExperimentalWithCallbackMethod_GetAuthApplication() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(4, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::GetAuthApplicationRequest, ::viam::app::v1::GetAuthApplicationResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::GetAuthApplicationRequest* request, ::viam::app::v1::GetAuthApplicationResponse* response) { return this->GetAuthApplication(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::GetAuthApplicationRequest* request, ::viam::app::v1::GetAuthApplicationResponse* response) { return this->GetAuthApplication(context, request, response); }));} void SetMessageAllocatorFor_GetAuthApplication( - ::grpc::MessageAllocator< ::viam::app::v1::GetAuthApplicationRequest, ::viam::app::v1::GetAuthApplicationResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::app::v1::GetAuthApplicationRequest, ::viam::app::v1::GetAuthApplicationResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::GetAuthApplicationRequest, ::viam::app::v1::GetAuthApplicationResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(4); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::GetAuthApplicationRequest, ::viam::app::v1::GetAuthApplicationResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetAuthApplication() override { + ~ExperimentalWithCallbackMethod_GetAuthApplication() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -442,11 +641,20 @@ class EndUserService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetAuthApplication( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::GetAuthApplicationRequest* /*request*/, ::viam::app::v1::GetAuthApplicationResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::GetAuthApplicationRequest* /*request*/, ::viam::app::v1::GetAuthApplicationResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetAuthApplication( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::GetAuthApplicationRequest* /*request*/, ::viam::app::v1::GetAuthApplicationResponse* /*response*/) + #endif + { return nullptr; } }; - typedef WithCallbackMethod_IsLegalAccepted > > > > CallbackService; - typedef CallbackService ExperimentalCallbackService; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef ExperimentalWithCallbackMethod_IsLegalAccepted > > > > CallbackService; + #endif + + typedef ExperimentalWithCallbackMethod_IsLegalAccepted > > > > ExperimentalCallbackService; template class WithGenericMethod_IsLegalAccepted : public BaseClass { private: @@ -633,17 +841,27 @@ class EndUserService final { } }; template - class WithRawCallbackMethod_IsLegalAccepted : public BaseClass { + class ExperimentalWithRawCallbackMethod_IsLegalAccepted : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_IsLegalAccepted() { - ::grpc::Service::MarkMethodRawCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_IsLegalAccepted() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->IsLegalAccepted(context, request, response); })); - } - ~WithRawCallbackMethod_IsLegalAccepted() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->IsLegalAccepted(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_IsLegalAccepted() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -651,21 +869,37 @@ class EndUserService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* IsLegalAccepted( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* IsLegalAccepted( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_AcceptLegal : public BaseClass { + class ExperimentalWithRawCallbackMethod_AcceptLegal : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_AcceptLegal() { - ::grpc::Service::MarkMethodRawCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_AcceptLegal() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->AcceptLegal(context, request, response); })); - } - ~WithRawCallbackMethod_AcceptLegal() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->AcceptLegal(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_AcceptLegal() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -673,21 +907,37 @@ class EndUserService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* AcceptLegal( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* AcceptLegal( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_RegisterAuthApplication : public BaseClass { + class ExperimentalWithRawCallbackMethod_RegisterAuthApplication : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_RegisterAuthApplication() { - ::grpc::Service::MarkMethodRawCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_RegisterAuthApplication() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(2, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->RegisterAuthApplication(context, request, response); })); - } - ~WithRawCallbackMethod_RegisterAuthApplication() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->RegisterAuthApplication(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_RegisterAuthApplication() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -695,21 +945,37 @@ class EndUserService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* RegisterAuthApplication( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* RegisterAuthApplication( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_UpdateAuthApplication : public BaseClass { + class ExperimentalWithRawCallbackMethod_UpdateAuthApplication : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_UpdateAuthApplication() { - ::grpc::Service::MarkMethodRawCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_UpdateAuthApplication() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(3, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->UpdateAuthApplication(context, request, response); })); - } - ~WithRawCallbackMethod_UpdateAuthApplication() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->UpdateAuthApplication(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_UpdateAuthApplication() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -717,21 +983,37 @@ class EndUserService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* UpdateAuthApplication( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* UpdateAuthApplication( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetAuthApplication : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetAuthApplication : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetAuthApplication() { - ::grpc::Service::MarkMethodRawCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetAuthApplication() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(4, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetAuthApplication(context, request, response); })); - } - ~WithRawCallbackMethod_GetAuthApplication() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetAuthApplication(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetAuthApplication() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -739,8 +1021,14 @@ class EndUserService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetAuthApplication( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetAuthApplication( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template class WithStreamedUnaryMethod_IsLegalAccepted : public BaseClass { @@ -751,8 +1039,8 @@ class EndUserService final { ::grpc::Service::MarkMethodStreamed(0, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::IsLegalAcceptedRequest, ::viam::app::v1::IsLegalAcceptedResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::IsLegalAcceptedRequest, ::viam::app::v1::IsLegalAcceptedResponse>* streamer) { return this->StreamedIsLegalAccepted(context, streamer); @@ -778,8 +1066,8 @@ class EndUserService final { ::grpc::Service::MarkMethodStreamed(1, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::AcceptLegalRequest, ::viam::app::v1::AcceptLegalResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::AcceptLegalRequest, ::viam::app::v1::AcceptLegalResponse>* streamer) { return this->StreamedAcceptLegal(context, streamer); @@ -805,8 +1093,8 @@ class EndUserService final { ::grpc::Service::MarkMethodStreamed(2, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::RegisterAuthApplicationRequest, ::viam::app::v1::RegisterAuthApplicationResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::RegisterAuthApplicationRequest, ::viam::app::v1::RegisterAuthApplicationResponse>* streamer) { return this->StreamedRegisterAuthApplication(context, streamer); @@ -832,8 +1120,8 @@ class EndUserService final { ::grpc::Service::MarkMethodStreamed(3, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::UpdateAuthApplicationRequest, ::viam::app::v1::UpdateAuthApplicationResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::UpdateAuthApplicationRequest, ::viam::app::v1::UpdateAuthApplicationResponse>* streamer) { return this->StreamedUpdateAuthApplication(context, streamer); @@ -859,8 +1147,8 @@ class EndUserService final { ::grpc::Service::MarkMethodStreamed(4, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::GetAuthApplicationRequest, ::viam::app::v1::GetAuthApplicationResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::GetAuthApplicationRequest, ::viam::app::v1::GetAuthApplicationResponse>* streamer) { return this->StreamedGetAuthApplication(context, streamer); diff --git a/src/viam/api/app/v1/end_user.pb.cc b/src/viam/api/app/v1/end_user.pb.cc index 6c4ff8a87..15720f5d4 100644 --- a/src/viam/api/app/v1/end_user.pb.cc +++ b/src/viam/api/app/v1/end_user.pb.cc @@ -4,499 +4,361 @@ #include "app/v1/end_user.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace viam { namespace app { namespace v1 { - -inline constexpr UpdateAuthApplicationResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : application_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - application_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR UpdateAuthApplicationResponse::UpdateAuthApplicationResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct UpdateAuthApplicationResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR UpdateAuthApplicationResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~UpdateAuthApplicationResponseDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR IsLegalAcceptedRequest::IsLegalAcceptedRequest( + ::_pbi::ConstantInitialized){} +struct IsLegalAcceptedRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR IsLegalAcceptedRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~IsLegalAcceptedRequestDefaultTypeInternal() {} union { - UpdateAuthApplicationResponse _instance; + IsLegalAcceptedRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateAuthApplicationResponseDefaultTypeInternal _UpdateAuthApplicationResponse_default_instance_; - -inline constexpr UpdateAuthApplicationRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : origin_uris_{}, - redirect_uris_{}, - org_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - application_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - application_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - logout_uri_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR UpdateAuthApplicationRequest::UpdateAuthApplicationRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct UpdateAuthApplicationRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR UpdateAuthApplicationRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~UpdateAuthApplicationRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IsLegalAcceptedRequestDefaultTypeInternal _IsLegalAcceptedRequest_default_instance_; +PROTOBUF_CONSTEXPR IsLegalAcceptedResponse::IsLegalAcceptedResponse( + ::_pbi::ConstantInitialized) + : accepted_legal_(false){} +struct IsLegalAcceptedResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR IsLegalAcceptedResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~IsLegalAcceptedResponseDefaultTypeInternal() {} union { - UpdateAuthApplicationRequest _instance; + IsLegalAcceptedResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateAuthApplicationRequestDefaultTypeInternal _UpdateAuthApplicationRequest_default_instance_; - -inline constexpr RegisterAuthApplicationResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : application_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - application_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - client_secret_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR RegisterAuthApplicationResponse::RegisterAuthApplicationResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct RegisterAuthApplicationResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR RegisterAuthApplicationResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RegisterAuthApplicationResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IsLegalAcceptedResponseDefaultTypeInternal _IsLegalAcceptedResponse_default_instance_; +PROTOBUF_CONSTEXPR AcceptLegalRequest::AcceptLegalRequest( + ::_pbi::ConstantInitialized){} +struct AcceptLegalRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR AcceptLegalRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AcceptLegalRequestDefaultTypeInternal() {} union { - RegisterAuthApplicationResponse _instance; + AcceptLegalRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RegisterAuthApplicationResponseDefaultTypeInternal _RegisterAuthApplicationResponse_default_instance_; - -inline constexpr RegisterAuthApplicationRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : origin_uris_{}, - redirect_uris_{}, - application_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - org_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - logout_uri_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR RegisterAuthApplicationRequest::RegisterAuthApplicationRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AcceptLegalRequestDefaultTypeInternal _AcceptLegalRequest_default_instance_; +PROTOBUF_CONSTEXPR AcceptLegalResponse::AcceptLegalResponse( + ::_pbi::ConstantInitialized){} +struct AcceptLegalResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR AcceptLegalResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AcceptLegalResponseDefaultTypeInternal() {} + union { + AcceptLegalResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AcceptLegalResponseDefaultTypeInternal _AcceptLegalResponse_default_instance_; +PROTOBUF_CONSTEXPR RegisterAuthApplicationRequest::RegisterAuthApplicationRequest( + ::_pbi::ConstantInitialized) + : origin_uris_() + , redirect_uris_() + , application_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , org_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , logout_uri_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} struct RegisterAuthApplicationRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR RegisterAuthApplicationRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR RegisterAuthApplicationRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~RegisterAuthApplicationRequestDefaultTypeInternal() {} union { RegisterAuthApplicationRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RegisterAuthApplicationRequestDefaultTypeInternal _RegisterAuthApplicationRequest_default_instance_; - -inline constexpr IsLegalAcceptedResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : accepted_legal_{false}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR IsLegalAcceptedResponse::IsLegalAcceptedResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct IsLegalAcceptedResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR IsLegalAcceptedResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~IsLegalAcceptedResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RegisterAuthApplicationRequestDefaultTypeInternal _RegisterAuthApplicationRequest_default_instance_; +PROTOBUF_CONSTEXPR RegisterAuthApplicationResponse::RegisterAuthApplicationResponse( + ::_pbi::ConstantInitialized) + : application_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , application_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , client_secret_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct RegisterAuthApplicationResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR RegisterAuthApplicationResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RegisterAuthApplicationResponseDefaultTypeInternal() {} union { - IsLegalAcceptedResponse _instance; + RegisterAuthApplicationResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IsLegalAcceptedResponseDefaultTypeInternal _IsLegalAcceptedResponse_default_instance_; - template -PROTOBUF_CONSTEXPR IsLegalAcceptedRequest::IsLegalAcceptedRequest(::_pbi::ConstantInitialized) {} -struct IsLegalAcceptedRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR IsLegalAcceptedRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~IsLegalAcceptedRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RegisterAuthApplicationResponseDefaultTypeInternal _RegisterAuthApplicationResponse_default_instance_; +PROTOBUF_CONSTEXPR UpdateAuthApplicationRequest::UpdateAuthApplicationRequest( + ::_pbi::ConstantInitialized) + : origin_uris_() + , redirect_uris_() + , org_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , application_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , application_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , logout_uri_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct UpdateAuthApplicationRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR UpdateAuthApplicationRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~UpdateAuthApplicationRequestDefaultTypeInternal() {} union { - IsLegalAcceptedRequest _instance; + UpdateAuthApplicationRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IsLegalAcceptedRequestDefaultTypeInternal _IsLegalAcceptedRequest_default_instance_; - -inline constexpr GetAuthApplicationResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : origin_uris_{}, - redirect_uris_{}, - application_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - application_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - client_secret_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - logout_uri_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetAuthApplicationResponse::GetAuthApplicationResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetAuthApplicationResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetAuthApplicationResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetAuthApplicationResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateAuthApplicationRequestDefaultTypeInternal _UpdateAuthApplicationRequest_default_instance_; +PROTOBUF_CONSTEXPR UpdateAuthApplicationResponse::UpdateAuthApplicationResponse( + ::_pbi::ConstantInitialized) + : application_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , application_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct UpdateAuthApplicationResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR UpdateAuthApplicationResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~UpdateAuthApplicationResponseDefaultTypeInternal() {} union { - GetAuthApplicationResponse _instance; + UpdateAuthApplicationResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetAuthApplicationResponseDefaultTypeInternal _GetAuthApplicationResponse_default_instance_; - -inline constexpr GetAuthApplicationRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : org_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - application_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetAuthApplicationRequest::GetAuthApplicationRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateAuthApplicationResponseDefaultTypeInternal _UpdateAuthApplicationResponse_default_instance_; +PROTOBUF_CONSTEXPR GetAuthApplicationRequest::GetAuthApplicationRequest( + ::_pbi::ConstantInitialized) + : org_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , application_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} struct GetAuthApplicationRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetAuthApplicationRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GetAuthApplicationRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~GetAuthApplicationRequestDefaultTypeInternal() {} union { GetAuthApplicationRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetAuthApplicationRequestDefaultTypeInternal _GetAuthApplicationRequest_default_instance_; - template -PROTOBUF_CONSTEXPR AcceptLegalResponse::AcceptLegalResponse(::_pbi::ConstantInitialized) {} -struct AcceptLegalResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR AcceptLegalResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AcceptLegalResponseDefaultTypeInternal() {} - union { - AcceptLegalResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AcceptLegalResponseDefaultTypeInternal _AcceptLegalResponse_default_instance_; - template -PROTOBUF_CONSTEXPR AcceptLegalRequest::AcceptLegalRequest(::_pbi::ConstantInitialized) {} -struct AcceptLegalRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR AcceptLegalRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AcceptLegalRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetAuthApplicationRequestDefaultTypeInternal _GetAuthApplicationRequest_default_instance_; +PROTOBUF_CONSTEXPR GetAuthApplicationResponse::GetAuthApplicationResponse( + ::_pbi::ConstantInitialized) + : origin_uris_() + , redirect_uris_() + , application_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , application_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , client_secret_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , logout_uri_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct GetAuthApplicationResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetAuthApplicationResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetAuthApplicationResponseDefaultTypeInternal() {} union { - AcceptLegalRequest _instance; + GetAuthApplicationResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AcceptLegalRequestDefaultTypeInternal _AcceptLegalRequest_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetAuthApplicationResponseDefaultTypeInternal _GetAuthApplicationResponse_default_instance_; } // namespace v1 } // namespace app } // namespace viam static ::_pb::Metadata file_level_metadata_app_2fv1_2fend_5fuser_2eproto[10]; -static constexpr const ::_pb::EnumDescriptor** - file_level_enum_descriptors_app_2fv1_2fend_5fuser_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_app_2fv1_2fend_5fuser_2eproto = nullptr; -const ::uint32_t TableStruct_app_2fv1_2fend_5fuser_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::IsLegalAcceptedRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::IsLegalAcceptedResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::IsLegalAcceptedResponse, _impl_.accepted_legal_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::AcceptLegalRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::AcceptLegalResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegisterAuthApplicationRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegisterAuthApplicationRequest, _impl_.application_name_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegisterAuthApplicationRequest, _impl_.org_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegisterAuthApplicationRequest, _impl_.origin_uris_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegisterAuthApplicationRequest, _impl_.redirect_uris_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegisterAuthApplicationRequest, _impl_.logout_uri_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegisterAuthApplicationResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegisterAuthApplicationResponse, _impl_.application_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegisterAuthApplicationResponse, _impl_.application_name_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegisterAuthApplicationResponse, _impl_.client_secret_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateAuthApplicationRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateAuthApplicationRequest, _impl_.org_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateAuthApplicationRequest, _impl_.application_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateAuthApplicationRequest, _impl_.application_name_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateAuthApplicationRequest, _impl_.origin_uris_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateAuthApplicationRequest, _impl_.redirect_uris_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateAuthApplicationRequest, _impl_.logout_uri_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateAuthApplicationResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateAuthApplicationResponse, _impl_.application_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateAuthApplicationResponse, _impl_.application_name_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetAuthApplicationRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetAuthApplicationRequest, _impl_.org_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetAuthApplicationRequest, _impl_.application_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetAuthApplicationResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetAuthApplicationResponse, _impl_.application_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetAuthApplicationResponse, _impl_.application_name_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetAuthApplicationResponse, _impl_.client_secret_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetAuthApplicationResponse, _impl_.origin_uris_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetAuthApplicationResponse, _impl_.redirect_uris_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetAuthApplicationResponse, _impl_.logout_uri_), +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_app_2fv1_2fend_5fuser_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_app_2fv1_2fend_5fuser_2eproto = nullptr; + +const uint32_t TableStruct_app_2fv1_2fend_5fuser_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::IsLegalAcceptedRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::IsLegalAcceptedResponse, _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::IsLegalAcceptedResponse, accepted_legal_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::AcceptLegalRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::AcceptLegalResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegisterAuthApplicationRequest, _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::RegisterAuthApplicationRequest, application_name_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegisterAuthApplicationRequest, org_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegisterAuthApplicationRequest, origin_uris_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegisterAuthApplicationRequest, redirect_uris_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegisterAuthApplicationRequest, logout_uri_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegisterAuthApplicationResponse, _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::RegisterAuthApplicationResponse, application_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegisterAuthApplicationResponse, application_name_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RegisterAuthApplicationResponse, client_secret_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateAuthApplicationRequest, _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::UpdateAuthApplicationRequest, org_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateAuthApplicationRequest, application_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateAuthApplicationRequest, application_name_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateAuthApplicationRequest, origin_uris_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateAuthApplicationRequest, redirect_uris_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateAuthApplicationRequest, logout_uri_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateAuthApplicationResponse, _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::UpdateAuthApplicationResponse, application_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::UpdateAuthApplicationResponse, application_name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetAuthApplicationRequest, _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::GetAuthApplicationRequest, org_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetAuthApplicationRequest, application_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetAuthApplicationResponse, _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::GetAuthApplicationResponse, application_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetAuthApplicationResponse, application_name_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetAuthApplicationResponse, client_secret_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetAuthApplicationResponse, origin_uris_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetAuthApplicationResponse, redirect_uris_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetAuthApplicationResponse, logout_uri_), }; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, -1, -1, sizeof(::viam::app::v1::IsLegalAcceptedRequest)}, - {8, -1, -1, sizeof(::viam::app::v1::IsLegalAcceptedResponse)}, - {17, -1, -1, sizeof(::viam::app::v1::AcceptLegalRequest)}, - {25, -1, -1, sizeof(::viam::app::v1::AcceptLegalResponse)}, - {33, -1, -1, sizeof(::viam::app::v1::RegisterAuthApplicationRequest)}, - {46, -1, -1, sizeof(::viam::app::v1::RegisterAuthApplicationResponse)}, - {57, -1, -1, sizeof(::viam::app::v1::UpdateAuthApplicationRequest)}, - {71, -1, -1, sizeof(::viam::app::v1::UpdateAuthApplicationResponse)}, - {81, -1, -1, sizeof(::viam::app::v1::GetAuthApplicationRequest)}, - {91, -1, -1, sizeof(::viam::app::v1::GetAuthApplicationResponse)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::app::v1::IsLegalAcceptedRequest)}, + { 6, -1, -1, sizeof(::viam::app::v1::IsLegalAcceptedResponse)}, + { 13, -1, -1, sizeof(::viam::app::v1::AcceptLegalRequest)}, + { 19, -1, -1, sizeof(::viam::app::v1::AcceptLegalResponse)}, + { 25, -1, -1, sizeof(::viam::app::v1::RegisterAuthApplicationRequest)}, + { 36, -1, -1, sizeof(::viam::app::v1::RegisterAuthApplicationResponse)}, + { 45, -1, -1, sizeof(::viam::app::v1::UpdateAuthApplicationRequest)}, + { 57, -1, -1, sizeof(::viam::app::v1::UpdateAuthApplicationResponse)}, + { 65, -1, -1, sizeof(::viam::app::v1::GetAuthApplicationRequest)}, + { 73, -1, -1, sizeof(::viam::app::v1::GetAuthApplicationResponse)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::viam::app::v1::_IsLegalAcceptedRequest_default_instance_._instance, - &::viam::app::v1::_IsLegalAcceptedResponse_default_instance_._instance, - &::viam::app::v1::_AcceptLegalRequest_default_instance_._instance, - &::viam::app::v1::_AcceptLegalResponse_default_instance_._instance, - &::viam::app::v1::_RegisterAuthApplicationRequest_default_instance_._instance, - &::viam::app::v1::_RegisterAuthApplicationResponse_default_instance_._instance, - &::viam::app::v1::_UpdateAuthApplicationRequest_default_instance_._instance, - &::viam::app::v1::_UpdateAuthApplicationResponse_default_instance_._instance, - &::viam::app::v1::_GetAuthApplicationRequest_default_instance_._instance, - &::viam::app::v1::_GetAuthApplicationResponse_default_instance_._instance, -}; -const char descriptor_table_protodef_app_2fv1_2fend_5fuser_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n\025app/v1/end_user.proto\022\013viam.app.v1\"\030\n\026" - "IsLegalAcceptedRequest\"@\n\027IsLegalAccepte" - "dResponse\022%\n\016accepted_legal\030\001 \001(\010R\raccep" - "tedLegal\"\024\n\022AcceptLegalRequest\"\025\n\023Accept" - "LegalResponse\"\307\001\n\036RegisterAuthApplicatio" - "nRequest\022)\n\020application_name\030\001 \001(\tR\017appl" - "icationName\022\025\n\006org_id\030\002 \001(\tR\005orgId\022\037\n\013or" - "igin_uris\030\003 \003(\tR\noriginUris\022#\n\rredirect_" - "uris\030\004 \003(\tR\014redirectUris\022\035\n\nlogout_uri\030\005" - " \001(\tR\tlogoutUri\"\230\001\n\037RegisterAuthApplicat" - "ionResponse\022%\n\016application_id\030\001 \001(\tR\rapp" - "licationId\022)\n\020application_name\030\002 \001(\tR\017ap" - "plicationName\022#\n\rclient_secret\030\003 \001(\tR\014cl" - "ientSecret\"\354\001\n\034UpdateAuthApplicationRequ" - "est\022\025\n\006org_id\030\001 \001(\tR\005orgId\022%\n\016applicatio" - "n_id\030\002 \001(\tR\rapplicationId\022)\n\020application" - "_name\030\003 \001(\tR\017applicationName\022\037\n\013origin_u" - "ris\030\004 \003(\tR\noriginUris\022#\n\rredirect_uris\030\005" - " \003(\tR\014redirectUris\022\035\n\nlogout_uri\030\006 \001(\tR\t" - "logoutUri\"q\n\035UpdateAuthApplicationRespon" - "se\022%\n\016application_id\030\001 \001(\tR\rapplicationI" - "d\022)\n\020application_name\030\002 \001(\tR\017application" - "Name\"Y\n\031GetAuthApplicationRequest\022\025\n\006org" - "_id\030\001 \001(\tR\005orgId\022%\n\016application_id\030\002 \001(\t" - "R\rapplicationId\"\370\001\n\032GetAuthApplicationRe" - "sponse\022%\n\016application_id\030\001 \001(\tR\rapplicat" - "ionId\022)\n\020application_name\030\002 \001(\tR\017applica" - "tionName\022#\n\rclient_secret\030\003 \001(\tR\014clientS" - "ecret\022\037\n\013origin_uris\030\004 \003(\tR\noriginUris\022#" - "\n\rredirect_uris\030\005 \003(\tR\014redirectUris\022\035\n\nl" - "ogout_uri\030\006 \001(\tR\tlogoutUri2\215\004\n\016EndUserSe" - "rvice\022\\\n\017IsLegalAccepted\022#.viam.app.v1.I" - "sLegalAcceptedRequest\032$.viam.app.v1.IsLe" - "galAcceptedResponse\022P\n\013AcceptLegal\022\037.via" - "m.app.v1.AcceptLegalRequest\032 .viam.app.v" - "1.AcceptLegalResponse\022t\n\027RegisterAuthApp" - "lication\022+.viam.app.v1.RegisterAuthAppli" - "cationRequest\032,.viam.app.v1.RegisterAuth" - "ApplicationResponse\022n\n\025UpdateAuthApplica" - "tion\022).viam.app.v1.UpdateAuthApplication" - "Request\032*.viam.app.v1.UpdateAuthApplicat" - "ionResponse\022e\n\022GetAuthApplication\022&.viam" - ".app.v1.GetAuthApplicationRequest\032\'.viam" - ".app.v1.GetAuthApplicationResponseB\205\001\n\017c" - "om.viam.app.v1B\014EndUserProtoP\001Z\026go.viam." - "com/api/app/v1\242\002\003VAX\252\002\013Viam.App.V1\312\002\013Via" - "m\\App\\V1\342\002\027Viam\\App\\V1\\GPBMetadata\352\002\rVia" - "m::App::V1b\006proto3" + &::viam::app::v1::_IsLegalAcceptedRequest_default_instance_._instance, + &::viam::app::v1::_IsLegalAcceptedResponse_default_instance_._instance, + &::viam::app::v1::_AcceptLegalRequest_default_instance_._instance, + &::viam::app::v1::_AcceptLegalResponse_default_instance_._instance, + &::viam::app::v1::_RegisterAuthApplicationRequest_default_instance_._instance, + &::viam::app::v1::_RegisterAuthApplicationResponse_default_instance_._instance, + &::viam::app::v1::_UpdateAuthApplicationRequest_default_instance_._instance, + &::viam::app::v1::_UpdateAuthApplicationResponse_default_instance_._instance, + &::viam::app::v1::_GetAuthApplicationRequest_default_instance_._instance, + &::viam::app::v1::_GetAuthApplicationResponse_default_instance_._instance, }; -static ::absl::once_flag descriptor_table_app_2fv1_2fend_5fuser_2eproto_once; + +const char descriptor_table_protodef_app_2fv1_2fend_5fuser_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\025app/v1/end_user.proto\022\013viam.app.v1\"\030\n\026" + "IsLegalAcceptedRequest\"@\n\027IsLegalAccepte" + "dResponse\022%\n\016accepted_legal\030\001 \001(\010R\raccep" + "tedLegal\"\024\n\022AcceptLegalRequest\"\025\n\023Accept" + "LegalResponse\"\313\001\n\036RegisterAuthApplicatio" + "nRequest\022)\n\020application_name\030\001 \001(\tR\017appl" + "icationName\022\025\n\006org_id\030\002 \001(\tR\005orgId\022\037\n\013or" + "igin_uris\030\003 \003(\tR\noriginUris\022#\n\rredirect_" + "uris\030\004 \003(\tR\014redirectUris\022\035\n\nlogout_uri\030\005" + " \001(\tR\tlogoutUri:\002\030\001\"\234\001\n\037RegisterAuthAppl" + "icationResponse\022%\n\016application_id\030\001 \001(\tR" + "\rapplicationId\022)\n\020application_name\030\002 \001(\t" + "R\017applicationName\022#\n\rclient_secret\030\003 \001(\t" + "R\014clientSecret:\002\030\001\"\360\001\n\034UpdateAuthApplica" + "tionRequest\022\025\n\006org_id\030\001 \001(\tR\005orgId\022%\n\016ap" + "plication_id\030\002 \001(\tR\rapplicationId\022)\n\020app" + "lication_name\030\003 \001(\tR\017applicationName\022\037\n\013" + "origin_uris\030\004 \003(\tR\noriginUris\022#\n\rredirec" + "t_uris\030\005 \003(\tR\014redirectUris\022\035\n\nlogout_uri" + "\030\006 \001(\tR\tlogoutUri:\002\030\001\"u\n\035UpdateAuthAppli" + "cationResponse\022%\n\016application_id\030\001 \001(\tR\r" + "applicationId\022)\n\020application_name\030\002 \001(\tR" + "\017applicationName:\002\030\001\"]\n\031GetAuthApplicati" + "onRequest\022\025\n\006org_id\030\001 \001(\tR\005orgId\022%\n\016appl" + "ication_id\030\002 \001(\tR\rapplicationId:\002\030\001\"\374\001\n\032" + "GetAuthApplicationResponse\022%\n\016applicatio" + "n_id\030\001 \001(\tR\rapplicationId\022)\n\020application" + "_name\030\002 \001(\tR\017applicationName\022#\n\rclient_s" + "ecret\030\003 \001(\tR\014clientSecret\022\037\n\013origin_uris" + "\030\004 \003(\tR\noriginUris\022#\n\rredirect_uris\030\005 \003(" + "\tR\014redirectUris\022\035\n\nlogout_uri\030\006 \001(\tR\tlog" + "outUri:\002\030\0012\234\004\n\016EndUserService\022\\\n\017IsLegal" + "Accepted\022#.viam.app.v1.IsLegalAcceptedRe" + "quest\032$.viam.app.v1.IsLegalAcceptedRespo" + "nse\022P\n\013AcceptLegal\022\037.viam.app.v1.AcceptL" + "egalRequest\032 .viam.app.v1.AcceptLegalRes" + "ponse\022y\n\027RegisterAuthApplication\022+.viam." + "app.v1.RegisterAuthApplicationRequest\032,." + "viam.app.v1.RegisterAuthApplicationRespo" + "nse\"\003\210\002\001\022s\n\025UpdateAuthApplication\022).viam" + ".app.v1.UpdateAuthApplicationRequest\032*.v" + "iam.app.v1.UpdateAuthApplicationResponse" + "\"\003\210\002\001\022j\n\022GetAuthApplication\022&.viam.app.v" + "1.GetAuthApplicationRequest\032\'.viam.app.v" + "1.GetAuthApplicationResponse\"\003\210\002\001B\030Z\026go." + "viam.com/api/app/v1b\006proto3" + ; +static ::_pbi::once_flag descriptor_table_app_2fv1_2fend_5fuser_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_app_2fv1_2fend_5fuser_2eproto = { - false, - false, - 1898, - descriptor_table_protodef_app_2fv1_2fend_5fuser_2eproto, + false, false, 1827, descriptor_table_protodef_app_2fv1_2fend_5fuser_2eproto, "app/v1/end_user.proto", - &descriptor_table_app_2fv1_2fend_5fuser_2eproto_once, - nullptr, - 0, - 10, - schemas, - file_default_instances, - TableStruct_app_2fv1_2fend_5fuser_2eproto::offsets, - file_level_metadata_app_2fv1_2fend_5fuser_2eproto, - file_level_enum_descriptors_app_2fv1_2fend_5fuser_2eproto, + &descriptor_table_app_2fv1_2fend_5fuser_2eproto_once, nullptr, 0, 10, + schemas, file_default_instances, TableStruct_app_2fv1_2fend_5fuser_2eproto::offsets, + file_level_metadata_app_2fv1_2fend_5fuser_2eproto, file_level_enum_descriptors_app_2fv1_2fend_5fuser_2eproto, file_level_service_descriptors_app_2fv1_2fend_5fuser_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_app_2fv1_2fend_5fuser_2eproto_getter() { return &descriptor_table_app_2fv1_2fend_5fuser_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_app_2fv1_2fend_5fuser_2eproto(&descriptor_table_app_2fv1_2fend_5fuser_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_app_2fv1_2fend_5fuser_2eproto(&descriptor_table_app_2fv1_2fend_5fuser_2eproto); namespace viam { namespace app { namespace v1 { + // =================================================================== class IsLegalAcceptedRequest::_Internal { public: }; -IsLegalAcceptedRequest::IsLegalAcceptedRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +IsLegalAcceptedRequest::IsLegalAcceptedRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.app.v1.IsLegalAcceptedRequest) } -IsLegalAcceptedRequest::IsLegalAcceptedRequest( - ::google::protobuf::Arena* arena, - const IsLegalAcceptedRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - IsLegalAcceptedRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +IsLegalAcceptedRequest::IsLegalAcceptedRequest(const IsLegalAcceptedRequest& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.app.v1.IsLegalAcceptedRequest) } @@ -504,157 +366,170 @@ IsLegalAcceptedRequest::IsLegalAcceptedRequest( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData IsLegalAcceptedRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*IsLegalAcceptedRequest::GetClassData() const { return &_class_data_; } + + + -::google::protobuf::Metadata IsLegalAcceptedRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata IsLegalAcceptedRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fend_5fuser_2eproto_getter, &descriptor_table_app_2fv1_2fend_5fuser_2eproto_once, file_level_metadata_app_2fv1_2fend_5fuser_2eproto[0]); } + // =================================================================== class IsLegalAcceptedResponse::_Internal { public: }; -IsLegalAcceptedResponse::IsLegalAcceptedResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +IsLegalAcceptedResponse::IsLegalAcceptedResponse(::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.IsLegalAcceptedResponse) } -IsLegalAcceptedResponse::IsLegalAcceptedResponse( - ::google::protobuf::Arena* arena, const IsLegalAcceptedResponse& from) - : IsLegalAcceptedResponse(arena) { - MergeFrom(from); +IsLegalAcceptedResponse::IsLegalAcceptedResponse(const IsLegalAcceptedResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + accepted_legal_ = from.accepted_legal_; + // @@protoc_insertion_point(copy_constructor:viam.app.v1.IsLegalAcceptedResponse) } -inline PROTOBUF_NDEBUG_INLINE IsLegalAcceptedResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void IsLegalAcceptedResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.accepted_legal_ = {}; +inline void IsLegalAcceptedResponse::SharedCtor() { +accepted_legal_ = false; } + IsLegalAcceptedResponse::~IsLegalAcceptedResponse() { // @@protoc_insertion_point(destructor:viam.app.v1.IsLegalAcceptedResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void IsLegalAcceptedResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void IsLegalAcceptedResponse::Clear() { +void IsLegalAcceptedResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void IsLegalAcceptedResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.IsLegalAcceptedResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.accepted_legal_ = false; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* IsLegalAcceptedResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + accepted_legal_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* IsLegalAcceptedResponse::_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) { + // bool accepted_legal = 1 [json_name = "acceptedLegal"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + accepted_legal_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> IsLegalAcceptedResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_IsLegalAcceptedResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // bool accepted_legal = 1 [json_name = "acceptedLegal"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(IsLegalAcceptedResponse, _impl_.accepted_legal_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bool accepted_legal = 1 [json_name = "acceptedLegal"]; - {PROTOBUF_FIELD_OFFSET(IsLegalAcceptedResponse, _impl_.accepted_legal_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* IsLegalAcceptedResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* IsLegalAcceptedResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.IsLegalAcceptedResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // bool accepted_legal = 1 [json_name = "acceptedLegal"]; if (this->_internal_accepted_legal() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 1, this->_internal_accepted_legal(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_accepted_legal(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.IsLegalAcceptedResponse) return target; } -::size_t IsLegalAcceptedResponse::ByteSizeLong() const { +size_t IsLegalAcceptedResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.IsLegalAcceptedResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // bool accepted_legal = 1 [json_name = "acceptedLegal"]; if (this->_internal_accepted_legal() != 0) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData IsLegalAcceptedResponse::_class_data_ = { - IsLegalAcceptedResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData IsLegalAcceptedResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + IsLegalAcceptedResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* IsLegalAcceptedResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*IsLegalAcceptedResponse::GetClassData() const { return &_class_data_; } + +void IsLegalAcceptedResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void IsLegalAcceptedResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.IsLegalAcceptedResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void IsLegalAcceptedResponse::MergeFrom(const IsLegalAcceptedResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.IsLegalAcceptedResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_accepted_legal() != 0) { - _this->_internal_set_accepted_legal(from._internal_accepted_legal()); + _internal_set_accepted_legal(from._internal_accepted_legal()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void IsLegalAcceptedResponse::CopyFrom(const IsLegalAcceptedResponse& from) { @@ -664,43 +539,36 @@ void IsLegalAcceptedResponse::CopyFrom(const IsLegalAcceptedResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool IsLegalAcceptedResponse::IsInitialized() const { +bool IsLegalAcceptedResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* IsLegalAcceptedResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void IsLegalAcceptedResponse::InternalSwap(IsLegalAcceptedResponse* PROTOBUF_RESTRICT other) { +void IsLegalAcceptedResponse::InternalSwap(IsLegalAcceptedResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.accepted_legal_, other->_impl_.accepted_legal_); + swap(accepted_legal_, other->accepted_legal_); } -::google::protobuf::Metadata IsLegalAcceptedResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata IsLegalAcceptedResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fend_5fuser_2eproto_getter, &descriptor_table_app_2fv1_2fend_5fuser_2eproto_once, file_level_metadata_app_2fv1_2fend_5fuser_2eproto[1]); } + // =================================================================== class AcceptLegalRequest::_Internal { public: }; -AcceptLegalRequest::AcceptLegalRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +AcceptLegalRequest::AcceptLegalRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.app.v1.AcceptLegalRequest) } -AcceptLegalRequest::AcceptLegalRequest( - ::google::protobuf::Arena* arena, - const AcceptLegalRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - AcceptLegalRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +AcceptLegalRequest::AcceptLegalRequest(const AcceptLegalRequest& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.app.v1.AcceptLegalRequest) } @@ -708,34 +576,38 @@ AcceptLegalRequest::AcceptLegalRequest( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AcceptLegalRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AcceptLegalRequest::GetClassData() const { return &_class_data_; } + -::google::protobuf::Metadata AcceptLegalRequest::GetMetadata() const { + + +::PROTOBUF_NAMESPACE_ID::Metadata AcceptLegalRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fend_5fuser_2eproto_getter, &descriptor_table_app_2fv1_2fend_5fuser_2eproto_once, file_level_metadata_app_2fv1_2fend_5fuser_2eproto[2]); } + // =================================================================== class AcceptLegalResponse::_Internal { public: }; -AcceptLegalResponse::AcceptLegalResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +AcceptLegalResponse::AcceptLegalResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.app.v1.AcceptLegalResponse) } -AcceptLegalResponse::AcceptLegalResponse( - ::google::protobuf::Arena* arena, - const AcceptLegalResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - AcceptLegalResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +AcceptLegalResponse::AcceptLegalResponse(const AcceptLegalResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.app.v1.AcceptLegalResponse) } @@ -743,285 +615,351 @@ AcceptLegalResponse::AcceptLegalResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AcceptLegalResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AcceptLegalResponse::GetClassData() const { return &_class_data_; } -::google::protobuf::Metadata AcceptLegalResponse::GetMetadata() const { + + + +::PROTOBUF_NAMESPACE_ID::Metadata AcceptLegalResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fend_5fuser_2eproto_getter, &descriptor_table_app_2fv1_2fend_5fuser_2eproto_once, file_level_metadata_app_2fv1_2fend_5fuser_2eproto[3]); } + // =================================================================== class RegisterAuthApplicationRequest::_Internal { public: }; -RegisterAuthApplicationRequest::RegisterAuthApplicationRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +RegisterAuthApplicationRequest::RegisterAuthApplicationRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + origin_uris_(arena), + redirect_uris_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.v1.RegisterAuthApplicationRequest) } -inline PROTOBUF_NDEBUG_INLINE RegisterAuthApplicationRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : origin_uris_{visibility, arena, from.origin_uris_}, - redirect_uris_{visibility, arena, from.redirect_uris_}, - application_name_(arena, from.application_name_), - org_id_(arena, from.org_id_), - logout_uri_(arena, from.logout_uri_), - _cached_size_{0} {} - -RegisterAuthApplicationRequest::RegisterAuthApplicationRequest( - ::google::protobuf::Arena* arena, - const RegisterAuthApplicationRequest& from) - : ::google::protobuf::Message(arena) { - RegisterAuthApplicationRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +RegisterAuthApplicationRequest::RegisterAuthApplicationRequest(const RegisterAuthApplicationRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + origin_uris_(from.origin_uris_), + redirect_uris_(from.redirect_uris_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + application_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + application_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_application_name().empty()) { + application_name_.Set(from._internal_application_name(), + GetArenaForAllocation()); + } + org_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_org_id().empty()) { + org_id_.Set(from._internal_org_id(), + GetArenaForAllocation()); + } + logout_uri_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + logout_uri_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_logout_uri().empty()) { + logout_uri_.Set(from._internal_logout_uri(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.RegisterAuthApplicationRequest) } -inline PROTOBUF_NDEBUG_INLINE RegisterAuthApplicationRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : origin_uris_{visibility, arena}, - redirect_uris_{visibility, arena}, - application_name_(arena), - org_id_(arena), - logout_uri_(arena), - _cached_size_{0} {} -inline void RegisterAuthApplicationRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void RegisterAuthApplicationRequest::SharedCtor() { +application_name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + application_name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +org_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +logout_uri_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + logout_uri_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + RegisterAuthApplicationRequest::~RegisterAuthApplicationRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.RegisterAuthApplicationRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void RegisterAuthApplicationRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.application_name_.Destroy(); - _impl_.org_id_.Destroy(); - _impl_.logout_uri_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + application_name_.Destroy(); + org_id_.Destroy(); + logout_uri_.Destroy(); +} + +void RegisterAuthApplicationRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void RegisterAuthApplicationRequest::Clear() { +void RegisterAuthApplicationRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.RegisterAuthApplicationRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.origin_uris_.Clear(); - _impl_.redirect_uris_.Clear(); - _impl_.application_name_.ClearToEmpty(); - _impl_.org_id_.ClearToEmpty(); - _impl_.logout_uri_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* RegisterAuthApplicationRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + origin_uris_.Clear(); + redirect_uris_.Clear(); + application_name_.ClearToEmpty(); + org_id_.ClearToEmpty(); + logout_uri_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RegisterAuthApplicationRequest::_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 application_name = 1 [json_name = "applicationName"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_application_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RegisterAuthApplicationRequest.application_name")); + } else + goto handle_unusual; + continue; + // string org_id = 2 [json_name = "orgId"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_org_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RegisterAuthApplicationRequest.org_id")); + } else + goto handle_unusual; + continue; + // repeated string origin_uris = 3 [json_name = "originUris"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_origin_uris(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RegisterAuthApplicationRequest.origin_uris")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); + } else + goto handle_unusual; + continue; + // repeated string redirect_uris = 4 [json_name = "redirectUris"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_redirect_uris(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RegisterAuthApplicationRequest.redirect_uris")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr)); + } else + goto handle_unusual; + continue; + // string logout_uri = 5 [json_name = "logoutUri"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + auto str = _internal_mutable_logout_uri(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RegisterAuthApplicationRequest.logout_uri")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 5, 0, 107, 2> RegisterAuthApplicationRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 5, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967264, // skipmap - offsetof(decltype(_table_), field_entries), - 5, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_RegisterAuthApplicationRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string application_name = 1 [json_name = "applicationName"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(RegisterAuthApplicationRequest, _impl_.application_name_)}}, - // string org_id = 2 [json_name = "orgId"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(RegisterAuthApplicationRequest, _impl_.org_id_)}}, - // repeated string origin_uris = 3 [json_name = "originUris"]; - {::_pbi::TcParser::FastUR1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(RegisterAuthApplicationRequest, _impl_.origin_uris_)}}, - // repeated string redirect_uris = 4 [json_name = "redirectUris"]; - {::_pbi::TcParser::FastUR1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(RegisterAuthApplicationRequest, _impl_.redirect_uris_)}}, - // string logout_uri = 5 [json_name = "logoutUri"]; - {::_pbi::TcParser::FastUS1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(RegisterAuthApplicationRequest, _impl_.logout_uri_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string application_name = 1 [json_name = "applicationName"]; - {PROTOBUF_FIELD_OFFSET(RegisterAuthApplicationRequest, _impl_.application_name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string org_id = 2 [json_name = "orgId"]; - {PROTOBUF_FIELD_OFFSET(RegisterAuthApplicationRequest, _impl_.org_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated string origin_uris = 3 [json_name = "originUris"]; - {PROTOBUF_FIELD_OFFSET(RegisterAuthApplicationRequest, _impl_.origin_uris_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - // repeated string redirect_uris = 4 [json_name = "redirectUris"]; - {PROTOBUF_FIELD_OFFSET(RegisterAuthApplicationRequest, _impl_.redirect_uris_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - // string logout_uri = 5 [json_name = "logoutUri"]; - {PROTOBUF_FIELD_OFFSET(RegisterAuthApplicationRequest, _impl_.logout_uri_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\52\20\6\13\15\12\0\0" - "viam.app.v1.RegisterAuthApplicationRequest" - "application_name" - "org_id" - "origin_uris" - "redirect_uris" - "logout_uri" - }}, -}; - -::uint8_t* RegisterAuthApplicationRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* RegisterAuthApplicationRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.RegisterAuthApplicationRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string application_name = 1 [json_name = "applicationName"]; if (!this->_internal_application_name().empty()) { - const std::string& _s = this->_internal_application_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.RegisterAuthApplicationRequest.application_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_application_name().data(), static_cast(this->_internal_application_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RegisterAuthApplicationRequest.application_name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_application_name(), target); } // string org_id = 2 [json_name = "orgId"]; if (!this->_internal_org_id().empty()) { - const std::string& _s = this->_internal_org_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.RegisterAuthApplicationRequest.org_id"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_org_id().data(), static_cast(this->_internal_org_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RegisterAuthApplicationRequest.org_id"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_org_id(), target); } // repeated string origin_uris = 3 [json_name = "originUris"]; - for (int i = 0, n = this->_internal_origin_uris_size(); i < n; ++i) { - const auto& s = this->_internal_origin_uris().Get(i); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.RegisterAuthApplicationRequest.origin_uris"); + for (int i = 0, n = this->_internal_origin_uris_size(); i < n; i++) { + const auto& s = this->_internal_origin_uris(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RegisterAuthApplicationRequest.origin_uris"); target = stream->WriteString(3, s, target); } // repeated string redirect_uris = 4 [json_name = "redirectUris"]; - for (int i = 0, n = this->_internal_redirect_uris_size(); i < n; ++i) { - const auto& s = this->_internal_redirect_uris().Get(i); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.RegisterAuthApplicationRequest.redirect_uris"); + for (int i = 0, n = this->_internal_redirect_uris_size(); i < n; i++) { + const auto& s = this->_internal_redirect_uris(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RegisterAuthApplicationRequest.redirect_uris"); target = stream->WriteString(4, s, target); } // string logout_uri = 5 [json_name = "logoutUri"]; if (!this->_internal_logout_uri().empty()) { - const std::string& _s = this->_internal_logout_uri(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.RegisterAuthApplicationRequest.logout_uri"); - target = stream->WriteStringMaybeAliased(5, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_logout_uri().data(), static_cast(this->_internal_logout_uri().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RegisterAuthApplicationRequest.logout_uri"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_logout_uri(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.RegisterAuthApplicationRequest) return target; } -::size_t RegisterAuthApplicationRequest::ByteSizeLong() const { +size_t RegisterAuthApplicationRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.RegisterAuthApplicationRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated string origin_uris = 3 [json_name = "originUris"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_origin_uris().size()); - for (int i = 0, n = _internal_origin_uris().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - _internal_origin_uris().Get(i)); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(origin_uris_.size()); + for (int i = 0, n = origin_uris_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + origin_uris_.Get(i)); } + // repeated string redirect_uris = 4 [json_name = "redirectUris"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_redirect_uris().size()); - for (int i = 0, n = _internal_redirect_uris().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - _internal_redirect_uris().Get(i)); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(redirect_uris_.size()); + for (int i = 0, n = redirect_uris_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + redirect_uris_.Get(i)); } + // string application_name = 1 [json_name = "applicationName"]; if (!this->_internal_application_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_application_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_application_name()); } // string org_id = 2 [json_name = "orgId"]; if (!this->_internal_org_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_org_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_org_id()); } // string logout_uri = 5 [json_name = "logoutUri"]; if (!this->_internal_logout_uri().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_logout_uri()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_logout_uri()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData RegisterAuthApplicationRequest::_class_data_ = { - RegisterAuthApplicationRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RegisterAuthApplicationRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + RegisterAuthApplicationRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* RegisterAuthApplicationRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RegisterAuthApplicationRequest::GetClassData() const { return &_class_data_; } + +void RegisterAuthApplicationRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void RegisterAuthApplicationRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.RegisterAuthApplicationRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void RegisterAuthApplicationRequest::MergeFrom(const RegisterAuthApplicationRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.RegisterAuthApplicationRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_origin_uris()->MergeFrom(from._internal_origin_uris()); - _this->_internal_mutable_redirect_uris()->MergeFrom(from._internal_redirect_uris()); + origin_uris_.MergeFrom(from.origin_uris_); + redirect_uris_.MergeFrom(from.redirect_uris_); if (!from._internal_application_name().empty()) { - _this->_internal_set_application_name(from._internal_application_name()); + _internal_set_application_name(from._internal_application_name()); } if (!from._internal_org_id().empty()) { - _this->_internal_set_org_id(from._internal_org_id()); + _internal_set_org_id(from._internal_org_id()); } if (!from._internal_logout_uri().empty()) { - _this->_internal_set_logout_uri(from._internal_logout_uri()); + _internal_set_logout_uri(from._internal_logout_uri()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void RegisterAuthApplicationRequest::CopyFrom(const RegisterAuthApplicationRequest& from) { @@ -1031,248 +969,290 @@ void RegisterAuthApplicationRequest::CopyFrom(const RegisterAuthApplicationReque MergeFrom(from); } -PROTOBUF_NOINLINE bool RegisterAuthApplicationRequest::IsInitialized() const { +bool RegisterAuthApplicationRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* RegisterAuthApplicationRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void RegisterAuthApplicationRequest::InternalSwap(RegisterAuthApplicationRequest* PROTOBUF_RESTRICT other) { +void RegisterAuthApplicationRequest::InternalSwap(RegisterAuthApplicationRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.origin_uris_.InternalSwap(&other->_impl_.origin_uris_); - _impl_.redirect_uris_.InternalSwap(&other->_impl_.redirect_uris_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.application_name_, &other->_impl_.application_name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.org_id_, &other->_impl_.org_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.logout_uri_, &other->_impl_.logout_uri_, arena); -} - -::google::protobuf::Metadata RegisterAuthApplicationRequest::GetMetadata() const { + origin_uris_.InternalSwap(&other->origin_uris_); + redirect_uris_.InternalSwap(&other->redirect_uris_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &application_name_, lhs_arena, + &other->application_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &org_id_, lhs_arena, + &other->org_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &logout_uri_, lhs_arena, + &other->logout_uri_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata RegisterAuthApplicationRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fend_5fuser_2eproto_getter, &descriptor_table_app_2fv1_2fend_5fuser_2eproto_once, file_level_metadata_app_2fv1_2fend_5fuser_2eproto[4]); } + // =================================================================== class RegisterAuthApplicationResponse::_Internal { public: }; -RegisterAuthApplicationResponse::RegisterAuthApplicationResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +RegisterAuthApplicationResponse::RegisterAuthApplicationResponse(::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.RegisterAuthApplicationResponse) } -inline PROTOBUF_NDEBUG_INLINE RegisterAuthApplicationResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : application_id_(arena, from.application_id_), - application_name_(arena, from.application_name_), - client_secret_(arena, from.client_secret_), - _cached_size_{0} {} - -RegisterAuthApplicationResponse::RegisterAuthApplicationResponse( - ::google::protobuf::Arena* arena, - const RegisterAuthApplicationResponse& from) - : ::google::protobuf::Message(arena) { - RegisterAuthApplicationResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +RegisterAuthApplicationResponse::RegisterAuthApplicationResponse(const RegisterAuthApplicationResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + application_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + application_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_application_id().empty()) { + application_id_.Set(from._internal_application_id(), + GetArenaForAllocation()); + } + application_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + application_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_application_name().empty()) { + application_name_.Set(from._internal_application_name(), + GetArenaForAllocation()); + } + client_secret_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + client_secret_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_client_secret().empty()) { + client_secret_.Set(from._internal_client_secret(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.RegisterAuthApplicationResponse) } -inline PROTOBUF_NDEBUG_INLINE RegisterAuthApplicationResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : application_id_(arena), - application_name_(arena), - client_secret_(arena), - _cached_size_{0} {} -inline void RegisterAuthApplicationResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void RegisterAuthApplicationResponse::SharedCtor() { +application_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + application_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +application_name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + application_name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +client_secret_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + client_secret_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + RegisterAuthApplicationResponse::~RegisterAuthApplicationResponse() { // @@protoc_insertion_point(destructor:viam.app.v1.RegisterAuthApplicationResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void RegisterAuthApplicationResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.application_id_.Destroy(); - _impl_.application_name_.Destroy(); - _impl_.client_secret_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + application_id_.Destroy(); + application_name_.Destroy(); + client_secret_.Destroy(); +} + +void RegisterAuthApplicationResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void RegisterAuthApplicationResponse::Clear() { +void RegisterAuthApplicationResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.RegisterAuthApplicationResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.application_id_.ClearToEmpty(); - _impl_.application_name_.ClearToEmpty(); - _impl_.client_secret_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* RegisterAuthApplicationResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + application_id_.ClearToEmpty(); + application_name_.ClearToEmpty(); + client_secret_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RegisterAuthApplicationResponse::_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 application_id = 1 [json_name = "applicationId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_application_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RegisterAuthApplicationResponse.application_id")); + } else + goto handle_unusual; + continue; + // string application_name = 2 [json_name = "applicationName"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_application_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RegisterAuthApplicationResponse.application_name")); + } else + goto handle_unusual; + continue; + // string client_secret = 3 [json_name = "clientSecret"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_client_secret(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RegisterAuthApplicationResponse.client_secret")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 95, 2> RegisterAuthApplicationResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_RegisterAuthApplicationResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string application_id = 1 [json_name = "applicationId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(RegisterAuthApplicationResponse, _impl_.application_id_)}}, - // string application_name = 2 [json_name = "applicationName"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(RegisterAuthApplicationResponse, _impl_.application_name_)}}, - // string client_secret = 3 [json_name = "clientSecret"]; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(RegisterAuthApplicationResponse, _impl_.client_secret_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string application_id = 1 [json_name = "applicationId"]; - {PROTOBUF_FIELD_OFFSET(RegisterAuthApplicationResponse, _impl_.application_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string application_name = 2 [json_name = "applicationName"]; - {PROTOBUF_FIELD_OFFSET(RegisterAuthApplicationResponse, _impl_.application_name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string client_secret = 3 [json_name = "clientSecret"]; - {PROTOBUF_FIELD_OFFSET(RegisterAuthApplicationResponse, _impl_.client_secret_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\53\16\20\15\0\0\0\0" - "viam.app.v1.RegisterAuthApplicationResponse" - "application_id" - "application_name" - "client_secret" - }}, -}; - -::uint8_t* RegisterAuthApplicationResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* RegisterAuthApplicationResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.RegisterAuthApplicationResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string application_id = 1 [json_name = "applicationId"]; if (!this->_internal_application_id().empty()) { - const std::string& _s = this->_internal_application_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.RegisterAuthApplicationResponse.application_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_application_id().data(), static_cast(this->_internal_application_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RegisterAuthApplicationResponse.application_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_application_id(), target); } // string application_name = 2 [json_name = "applicationName"]; if (!this->_internal_application_name().empty()) { - const std::string& _s = this->_internal_application_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.RegisterAuthApplicationResponse.application_name"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_application_name().data(), static_cast(this->_internal_application_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RegisterAuthApplicationResponse.application_name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_application_name(), target); } // string client_secret = 3 [json_name = "clientSecret"]; if (!this->_internal_client_secret().empty()) { - const std::string& _s = this->_internal_client_secret(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.RegisterAuthApplicationResponse.client_secret"); - target = stream->WriteStringMaybeAliased(3, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_client_secret().data(), static_cast(this->_internal_client_secret().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RegisterAuthApplicationResponse.client_secret"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_client_secret(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.RegisterAuthApplicationResponse) return target; } -::size_t RegisterAuthApplicationResponse::ByteSizeLong() const { +size_t RegisterAuthApplicationResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.RegisterAuthApplicationResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string application_id = 1 [json_name = "applicationId"]; if (!this->_internal_application_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_application_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_application_id()); } // string application_name = 2 [json_name = "applicationName"]; if (!this->_internal_application_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_application_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_application_name()); } // string client_secret = 3 [json_name = "clientSecret"]; if (!this->_internal_client_secret().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_client_secret()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_client_secret()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData RegisterAuthApplicationResponse::_class_data_ = { - RegisterAuthApplicationResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RegisterAuthApplicationResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + RegisterAuthApplicationResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* RegisterAuthApplicationResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RegisterAuthApplicationResponse::GetClassData() const { return &_class_data_; } + +void RegisterAuthApplicationResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void RegisterAuthApplicationResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.RegisterAuthApplicationResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void RegisterAuthApplicationResponse::MergeFrom(const RegisterAuthApplicationResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.RegisterAuthApplicationResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_application_id().empty()) { - _this->_internal_set_application_id(from._internal_application_id()); + _internal_set_application_id(from._internal_application_id()); } if (!from._internal_application_name().empty()) { - _this->_internal_set_application_name(from._internal_application_name()); + _internal_set_application_name(from._internal_application_name()); } if (!from._internal_client_secret().empty()) { - _this->_internal_set_client_secret(from._internal_client_secret()); + _internal_set_client_secret(from._internal_client_secret()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void RegisterAuthApplicationResponse::CopyFrom(const RegisterAuthApplicationResponse& from) { @@ -1282,325 +1262,406 @@ void RegisterAuthApplicationResponse::CopyFrom(const RegisterAuthApplicationResp MergeFrom(from); } -PROTOBUF_NOINLINE bool RegisterAuthApplicationResponse::IsInitialized() const { +bool RegisterAuthApplicationResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* RegisterAuthApplicationResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void RegisterAuthApplicationResponse::InternalSwap(RegisterAuthApplicationResponse* PROTOBUF_RESTRICT other) { +void RegisterAuthApplicationResponse::InternalSwap(RegisterAuthApplicationResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.application_id_, &other->_impl_.application_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.application_name_, &other->_impl_.application_name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.client_secret_, &other->_impl_.client_secret_, arena); -} - -::google::protobuf::Metadata RegisterAuthApplicationResponse::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &application_id_, lhs_arena, + &other->application_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &application_name_, lhs_arena, + &other->application_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &client_secret_, lhs_arena, + &other->client_secret_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata RegisterAuthApplicationResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fend_5fuser_2eproto_getter, &descriptor_table_app_2fv1_2fend_5fuser_2eproto_once, file_level_metadata_app_2fv1_2fend_5fuser_2eproto[5]); } + // =================================================================== class UpdateAuthApplicationRequest::_Internal { public: }; -UpdateAuthApplicationRequest::UpdateAuthApplicationRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +UpdateAuthApplicationRequest::UpdateAuthApplicationRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + origin_uris_(arena), + redirect_uris_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.v1.UpdateAuthApplicationRequest) } -inline PROTOBUF_NDEBUG_INLINE UpdateAuthApplicationRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : origin_uris_{visibility, arena, from.origin_uris_}, - redirect_uris_{visibility, arena, from.redirect_uris_}, - org_id_(arena, from.org_id_), - application_id_(arena, from.application_id_), - application_name_(arena, from.application_name_), - logout_uri_(arena, from.logout_uri_), - _cached_size_{0} {} - -UpdateAuthApplicationRequest::UpdateAuthApplicationRequest( - ::google::protobuf::Arena* arena, - const UpdateAuthApplicationRequest& from) - : ::google::protobuf::Message(arena) { - UpdateAuthApplicationRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +UpdateAuthApplicationRequest::UpdateAuthApplicationRequest(const UpdateAuthApplicationRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + origin_uris_(from.origin_uris_), + redirect_uris_(from.redirect_uris_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + org_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_org_id().empty()) { + org_id_.Set(from._internal_org_id(), + GetArenaForAllocation()); + } + application_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + application_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_application_id().empty()) { + application_id_.Set(from._internal_application_id(), + GetArenaForAllocation()); + } + application_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + application_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_application_name().empty()) { + application_name_.Set(from._internal_application_name(), + GetArenaForAllocation()); + } + logout_uri_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + logout_uri_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_logout_uri().empty()) { + logout_uri_.Set(from._internal_logout_uri(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.UpdateAuthApplicationRequest) } -inline PROTOBUF_NDEBUG_INLINE UpdateAuthApplicationRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : origin_uris_{visibility, arena}, - redirect_uris_{visibility, arena}, - org_id_(arena), - application_id_(arena), - application_name_(arena), - logout_uri_(arena), - _cached_size_{0} {} -inline void UpdateAuthApplicationRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void UpdateAuthApplicationRequest::SharedCtor() { +org_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +application_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + application_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +application_name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + application_name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +logout_uri_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + logout_uri_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + UpdateAuthApplicationRequest::~UpdateAuthApplicationRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.UpdateAuthApplicationRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void UpdateAuthApplicationRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.org_id_.Destroy(); - _impl_.application_id_.Destroy(); - _impl_.application_name_.Destroy(); - _impl_.logout_uri_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + org_id_.Destroy(); + application_id_.Destroy(); + application_name_.Destroy(); + logout_uri_.Destroy(); } -PROTOBUF_NOINLINE void UpdateAuthApplicationRequest::Clear() { +void UpdateAuthApplicationRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void UpdateAuthApplicationRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.UpdateAuthApplicationRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.origin_uris_.Clear(); - _impl_.redirect_uris_.Clear(); - _impl_.org_id_.ClearToEmpty(); - _impl_.application_id_.ClearToEmpty(); - _impl_.application_name_.ClearToEmpty(); - _impl_.logout_uri_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* UpdateAuthApplicationRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + origin_uris_.Clear(); + redirect_uris_.Clear(); + org_id_.ClearToEmpty(); + application_id_.ClearToEmpty(); + application_name_.ClearToEmpty(); + logout_uri_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* UpdateAuthApplicationRequest::_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 org_id = 1 [json_name = "orgId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_org_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.UpdateAuthApplicationRequest.org_id")); + } else + goto handle_unusual; + continue; + // string application_id = 2 [json_name = "applicationId"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_application_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.UpdateAuthApplicationRequest.application_id")); + } else + goto handle_unusual; + continue; + // string application_name = 3 [json_name = "applicationName"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_application_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.UpdateAuthApplicationRequest.application_name")); + } else + goto handle_unusual; + continue; + // repeated string origin_uris = 4 [json_name = "originUris"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_origin_uris(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.UpdateAuthApplicationRequest.origin_uris")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr)); + } else + goto handle_unusual; + continue; + // repeated string redirect_uris = 5 [json_name = "redirectUris"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_redirect_uris(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.UpdateAuthApplicationRequest.redirect_uris")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr)); + } else + goto handle_unusual; + continue; + // string logout_uri = 6 [json_name = "logoutUri"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + auto str = _internal_mutable_logout_uri(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.UpdateAuthApplicationRequest.logout_uri")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 6, 0, 119, 2> UpdateAuthApplicationRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 6, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967232, // skipmap - offsetof(decltype(_table_), field_entries), - 6, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_UpdateAuthApplicationRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string org_id = 1 [json_name = "orgId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(UpdateAuthApplicationRequest, _impl_.org_id_)}}, - // string application_id = 2 [json_name = "applicationId"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(UpdateAuthApplicationRequest, _impl_.application_id_)}}, - // string application_name = 3 [json_name = "applicationName"]; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(UpdateAuthApplicationRequest, _impl_.application_name_)}}, - // repeated string origin_uris = 4 [json_name = "originUris"]; - {::_pbi::TcParser::FastUR1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(UpdateAuthApplicationRequest, _impl_.origin_uris_)}}, - // repeated string redirect_uris = 5 [json_name = "redirectUris"]; - {::_pbi::TcParser::FastUR1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(UpdateAuthApplicationRequest, _impl_.redirect_uris_)}}, - // string logout_uri = 6 [json_name = "logoutUri"]; - {::_pbi::TcParser::FastUS1, - {50, 63, 0, PROTOBUF_FIELD_OFFSET(UpdateAuthApplicationRequest, _impl_.logout_uri_)}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string org_id = 1 [json_name = "orgId"]; - {PROTOBUF_FIELD_OFFSET(UpdateAuthApplicationRequest, _impl_.org_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string application_id = 2 [json_name = "applicationId"]; - {PROTOBUF_FIELD_OFFSET(UpdateAuthApplicationRequest, _impl_.application_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string application_name = 3 [json_name = "applicationName"]; - {PROTOBUF_FIELD_OFFSET(UpdateAuthApplicationRequest, _impl_.application_name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated string origin_uris = 4 [json_name = "originUris"]; - {PROTOBUF_FIELD_OFFSET(UpdateAuthApplicationRequest, _impl_.origin_uris_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - // repeated string redirect_uris = 5 [json_name = "redirectUris"]; - {PROTOBUF_FIELD_OFFSET(UpdateAuthApplicationRequest, _impl_.redirect_uris_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - // string logout_uri = 6 [json_name = "logoutUri"]; - {PROTOBUF_FIELD_OFFSET(UpdateAuthApplicationRequest, _impl_.logout_uri_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\50\6\16\20\13\15\12\0" - "viam.app.v1.UpdateAuthApplicationRequest" - "org_id" - "application_id" - "application_name" - "origin_uris" - "redirect_uris" - "logout_uri" - }}, -}; - -::uint8_t* UpdateAuthApplicationRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* UpdateAuthApplicationRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.UpdateAuthApplicationRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string org_id = 1 [json_name = "orgId"]; if (!this->_internal_org_id().empty()) { - const std::string& _s = this->_internal_org_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.UpdateAuthApplicationRequest.org_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_org_id().data(), static_cast(this->_internal_org_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.UpdateAuthApplicationRequest.org_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_org_id(), target); } // string application_id = 2 [json_name = "applicationId"]; if (!this->_internal_application_id().empty()) { - const std::string& _s = this->_internal_application_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.UpdateAuthApplicationRequest.application_id"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_application_id().data(), static_cast(this->_internal_application_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.UpdateAuthApplicationRequest.application_id"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_application_id(), target); } // string application_name = 3 [json_name = "applicationName"]; if (!this->_internal_application_name().empty()) { - const std::string& _s = this->_internal_application_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.UpdateAuthApplicationRequest.application_name"); - target = stream->WriteStringMaybeAliased(3, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_application_name().data(), static_cast(this->_internal_application_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.UpdateAuthApplicationRequest.application_name"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_application_name(), target); } // repeated string origin_uris = 4 [json_name = "originUris"]; - for (int i = 0, n = this->_internal_origin_uris_size(); i < n; ++i) { - const auto& s = this->_internal_origin_uris().Get(i); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.UpdateAuthApplicationRequest.origin_uris"); + for (int i = 0, n = this->_internal_origin_uris_size(); i < n; i++) { + const auto& s = this->_internal_origin_uris(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.UpdateAuthApplicationRequest.origin_uris"); target = stream->WriteString(4, s, target); } // repeated string redirect_uris = 5 [json_name = "redirectUris"]; - for (int i = 0, n = this->_internal_redirect_uris_size(); i < n; ++i) { - const auto& s = this->_internal_redirect_uris().Get(i); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.UpdateAuthApplicationRequest.redirect_uris"); + for (int i = 0, n = this->_internal_redirect_uris_size(); i < n; i++) { + const auto& s = this->_internal_redirect_uris(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.UpdateAuthApplicationRequest.redirect_uris"); target = stream->WriteString(5, s, target); } // string logout_uri = 6 [json_name = "logoutUri"]; if (!this->_internal_logout_uri().empty()) { - const std::string& _s = this->_internal_logout_uri(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.UpdateAuthApplicationRequest.logout_uri"); - target = stream->WriteStringMaybeAliased(6, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_logout_uri().data(), static_cast(this->_internal_logout_uri().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.UpdateAuthApplicationRequest.logout_uri"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_logout_uri(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.UpdateAuthApplicationRequest) return target; } -::size_t UpdateAuthApplicationRequest::ByteSizeLong() const { +size_t UpdateAuthApplicationRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.UpdateAuthApplicationRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated string origin_uris = 4 [json_name = "originUris"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_origin_uris().size()); - for (int i = 0, n = _internal_origin_uris().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - _internal_origin_uris().Get(i)); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(origin_uris_.size()); + for (int i = 0, n = origin_uris_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + origin_uris_.Get(i)); } + // repeated string redirect_uris = 5 [json_name = "redirectUris"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_redirect_uris().size()); - for (int i = 0, n = _internal_redirect_uris().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - _internal_redirect_uris().Get(i)); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(redirect_uris_.size()); + for (int i = 0, n = redirect_uris_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + redirect_uris_.Get(i)); } + // string org_id = 1 [json_name = "orgId"]; if (!this->_internal_org_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_org_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_org_id()); } // string application_id = 2 [json_name = "applicationId"]; if (!this->_internal_application_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_application_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_application_id()); } // string application_name = 3 [json_name = "applicationName"]; if (!this->_internal_application_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_application_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_application_name()); } // string logout_uri = 6 [json_name = "logoutUri"]; if (!this->_internal_logout_uri().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_logout_uri()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_logout_uri()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData UpdateAuthApplicationRequest::_class_data_ = { - UpdateAuthApplicationRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UpdateAuthApplicationRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + UpdateAuthApplicationRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* UpdateAuthApplicationRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UpdateAuthApplicationRequest::GetClassData() const { return &_class_data_; } + +void UpdateAuthApplicationRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void UpdateAuthApplicationRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.UpdateAuthApplicationRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void UpdateAuthApplicationRequest::MergeFrom(const UpdateAuthApplicationRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.UpdateAuthApplicationRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_origin_uris()->MergeFrom(from._internal_origin_uris()); - _this->_internal_mutable_redirect_uris()->MergeFrom(from._internal_redirect_uris()); + origin_uris_.MergeFrom(from.origin_uris_); + redirect_uris_.MergeFrom(from.redirect_uris_); if (!from._internal_org_id().empty()) { - _this->_internal_set_org_id(from._internal_org_id()); + _internal_set_org_id(from._internal_org_id()); } if (!from._internal_application_id().empty()) { - _this->_internal_set_application_id(from._internal_application_id()); + _internal_set_application_id(from._internal_application_id()); } if (!from._internal_application_name().empty()) { - _this->_internal_set_application_name(from._internal_application_name()); + _internal_set_application_name(from._internal_application_name()); } if (!from._internal_logout_uri().empty()) { - _this->_internal_set_logout_uri(from._internal_logout_uri()); + _internal_set_logout_uri(from._internal_logout_uri()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void UpdateAuthApplicationRequest::CopyFrom(const UpdateAuthApplicationRequest& from) { @@ -1610,220 +1671,250 @@ void UpdateAuthApplicationRequest::CopyFrom(const UpdateAuthApplicationRequest& MergeFrom(from); } -PROTOBUF_NOINLINE bool UpdateAuthApplicationRequest::IsInitialized() const { +bool UpdateAuthApplicationRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* UpdateAuthApplicationRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void UpdateAuthApplicationRequest::InternalSwap(UpdateAuthApplicationRequest* PROTOBUF_RESTRICT other) { +void UpdateAuthApplicationRequest::InternalSwap(UpdateAuthApplicationRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.origin_uris_.InternalSwap(&other->_impl_.origin_uris_); - _impl_.redirect_uris_.InternalSwap(&other->_impl_.redirect_uris_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.org_id_, &other->_impl_.org_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.application_id_, &other->_impl_.application_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.application_name_, &other->_impl_.application_name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.logout_uri_, &other->_impl_.logout_uri_, arena); -} - -::google::protobuf::Metadata UpdateAuthApplicationRequest::GetMetadata() const { + origin_uris_.InternalSwap(&other->origin_uris_); + redirect_uris_.InternalSwap(&other->redirect_uris_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &org_id_, lhs_arena, + &other->org_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &application_id_, lhs_arena, + &other->application_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &application_name_, lhs_arena, + &other->application_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &logout_uri_, lhs_arena, + &other->logout_uri_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata UpdateAuthApplicationRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fend_5fuser_2eproto_getter, &descriptor_table_app_2fv1_2fend_5fuser_2eproto_once, file_level_metadata_app_2fv1_2fend_5fuser_2eproto[6]); } + // =================================================================== class UpdateAuthApplicationResponse::_Internal { public: }; -UpdateAuthApplicationResponse::UpdateAuthApplicationResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +UpdateAuthApplicationResponse::UpdateAuthApplicationResponse(::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.UpdateAuthApplicationResponse) } -inline PROTOBUF_NDEBUG_INLINE UpdateAuthApplicationResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : application_id_(arena, from.application_id_), - application_name_(arena, from.application_name_), - _cached_size_{0} {} - -UpdateAuthApplicationResponse::UpdateAuthApplicationResponse( - ::google::protobuf::Arena* arena, - const UpdateAuthApplicationResponse& from) - : ::google::protobuf::Message(arena) { - UpdateAuthApplicationResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +UpdateAuthApplicationResponse::UpdateAuthApplicationResponse(const UpdateAuthApplicationResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + application_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + application_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_application_id().empty()) { + application_id_.Set(from._internal_application_id(), + GetArenaForAllocation()); + } + application_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + application_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_application_name().empty()) { + application_name_.Set(from._internal_application_name(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.UpdateAuthApplicationResponse) } -inline PROTOBUF_NDEBUG_INLINE UpdateAuthApplicationResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : application_id_(arena), - application_name_(arena), - _cached_size_{0} {} -inline void UpdateAuthApplicationResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void UpdateAuthApplicationResponse::SharedCtor() { +application_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + application_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +application_name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + application_name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + UpdateAuthApplicationResponse::~UpdateAuthApplicationResponse() { // @@protoc_insertion_point(destructor:viam.app.v1.UpdateAuthApplicationResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void UpdateAuthApplicationResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.application_id_.Destroy(); - _impl_.application_name_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + application_id_.Destroy(); + application_name_.Destroy(); +} + +void UpdateAuthApplicationResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void UpdateAuthApplicationResponse::Clear() { +void UpdateAuthApplicationResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.UpdateAuthApplicationResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.application_id_.ClearToEmpty(); - _impl_.application_name_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* UpdateAuthApplicationResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + application_id_.ClearToEmpty(); + application_name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* UpdateAuthApplicationResponse::_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 application_id = 1 [json_name = "applicationId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_application_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.UpdateAuthApplicationResponse.application_id")); + } else + goto handle_unusual; + continue; + // string application_name = 2 [json_name = "applicationName"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_application_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.UpdateAuthApplicationResponse.application_name")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 80, 2> UpdateAuthApplicationResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_UpdateAuthApplicationResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string application_name = 2 [json_name = "applicationName"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(UpdateAuthApplicationResponse, _impl_.application_name_)}}, - // string application_id = 1 [json_name = "applicationId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(UpdateAuthApplicationResponse, _impl_.application_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string application_id = 1 [json_name = "applicationId"]; - {PROTOBUF_FIELD_OFFSET(UpdateAuthApplicationResponse, _impl_.application_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string application_name = 2 [json_name = "applicationName"]; - {PROTOBUF_FIELD_OFFSET(UpdateAuthApplicationResponse, _impl_.application_name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\51\16\20\0\0\0\0\0" - "viam.app.v1.UpdateAuthApplicationResponse" - "application_id" - "application_name" - }}, -}; - -::uint8_t* UpdateAuthApplicationResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* UpdateAuthApplicationResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.UpdateAuthApplicationResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string application_id = 1 [json_name = "applicationId"]; if (!this->_internal_application_id().empty()) { - const std::string& _s = this->_internal_application_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.UpdateAuthApplicationResponse.application_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_application_id().data(), static_cast(this->_internal_application_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.UpdateAuthApplicationResponse.application_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_application_id(), target); } // string application_name = 2 [json_name = "applicationName"]; if (!this->_internal_application_name().empty()) { - const std::string& _s = this->_internal_application_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.UpdateAuthApplicationResponse.application_name"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_application_name().data(), static_cast(this->_internal_application_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.UpdateAuthApplicationResponse.application_name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_application_name(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.UpdateAuthApplicationResponse) return target; } -::size_t UpdateAuthApplicationResponse::ByteSizeLong() const { +size_t UpdateAuthApplicationResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.UpdateAuthApplicationResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string application_id = 1 [json_name = "applicationId"]; if (!this->_internal_application_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_application_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_application_id()); } // string application_name = 2 [json_name = "applicationName"]; if (!this->_internal_application_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_application_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_application_name()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData UpdateAuthApplicationResponse::_class_data_ = { - UpdateAuthApplicationResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UpdateAuthApplicationResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + UpdateAuthApplicationResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* UpdateAuthApplicationResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UpdateAuthApplicationResponse::GetClassData() const { return &_class_data_; } + +void UpdateAuthApplicationResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void UpdateAuthApplicationResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.UpdateAuthApplicationResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void UpdateAuthApplicationResponse::MergeFrom(const UpdateAuthApplicationResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.UpdateAuthApplicationResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_application_id().empty()) { - _this->_internal_set_application_id(from._internal_application_id()); + _internal_set_application_id(from._internal_application_id()); } if (!from._internal_application_name().empty()) { - _this->_internal_set_application_name(from._internal_application_name()); + _internal_set_application_name(from._internal_application_name()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void UpdateAuthApplicationResponse::CopyFrom(const UpdateAuthApplicationResponse& from) { @@ -1833,216 +1924,240 @@ void UpdateAuthApplicationResponse::CopyFrom(const UpdateAuthApplicationResponse MergeFrom(from); } -PROTOBUF_NOINLINE bool UpdateAuthApplicationResponse::IsInitialized() const { +bool UpdateAuthApplicationResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* UpdateAuthApplicationResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void UpdateAuthApplicationResponse::InternalSwap(UpdateAuthApplicationResponse* PROTOBUF_RESTRICT other) { +void UpdateAuthApplicationResponse::InternalSwap(UpdateAuthApplicationResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.application_id_, &other->_impl_.application_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.application_name_, &other->_impl_.application_name_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &application_id_, lhs_arena, + &other->application_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &application_name_, lhs_arena, + &other->application_name_, rhs_arena + ); } -::google::protobuf::Metadata UpdateAuthApplicationResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata UpdateAuthApplicationResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fend_5fuser_2eproto_getter, &descriptor_table_app_2fv1_2fend_5fuser_2eproto_once, file_level_metadata_app_2fv1_2fend_5fuser_2eproto[7]); } + // =================================================================== class GetAuthApplicationRequest::_Internal { public: }; -GetAuthApplicationRequest::GetAuthApplicationRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetAuthApplicationRequest::GetAuthApplicationRequest(::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.GetAuthApplicationRequest) } -inline PROTOBUF_NDEBUG_INLINE GetAuthApplicationRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : org_id_(arena, from.org_id_), - application_id_(arena, from.application_id_), - _cached_size_{0} {} - -GetAuthApplicationRequest::GetAuthApplicationRequest( - ::google::protobuf::Arena* arena, - const GetAuthApplicationRequest& from) - : ::google::protobuf::Message(arena) { - GetAuthApplicationRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetAuthApplicationRequest::GetAuthApplicationRequest(const GetAuthApplicationRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + org_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_org_id().empty()) { + org_id_.Set(from._internal_org_id(), + GetArenaForAllocation()); + } + application_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + application_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_application_id().empty()) { + application_id_.Set(from._internal_application_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetAuthApplicationRequest) } -inline PROTOBUF_NDEBUG_INLINE GetAuthApplicationRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : org_id_(arena), - application_id_(arena), - _cached_size_{0} {} -inline void GetAuthApplicationRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetAuthApplicationRequest::SharedCtor() { +org_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + org_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +application_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + application_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + GetAuthApplicationRequest::~GetAuthApplicationRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.GetAuthApplicationRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetAuthApplicationRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.org_id_.Destroy(); - _impl_.application_id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + org_id_.Destroy(); + application_id_.Destroy(); +} + +void GetAuthApplicationRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetAuthApplicationRequest::Clear() { +void GetAuthApplicationRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.GetAuthApplicationRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.org_id_.ClearToEmpty(); - _impl_.application_id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetAuthApplicationRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + org_id_.ClearToEmpty(); + application_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetAuthApplicationRequest::_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 org_id = 1 [json_name = "orgId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_org_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.GetAuthApplicationRequest.org_id")); + } else + goto handle_unusual; + continue; + // string application_id = 2 [json_name = "applicationId"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_application_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.GetAuthApplicationRequest.application_id")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 66, 2> GetAuthApplicationRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetAuthApplicationRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string application_id = 2 [json_name = "applicationId"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(GetAuthApplicationRequest, _impl_.application_id_)}}, - // string org_id = 1 [json_name = "orgId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetAuthApplicationRequest, _impl_.org_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string org_id = 1 [json_name = "orgId"]; - {PROTOBUF_FIELD_OFFSET(GetAuthApplicationRequest, _impl_.org_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string application_id = 2 [json_name = "applicationId"]; - {PROTOBUF_FIELD_OFFSET(GetAuthApplicationRequest, _impl_.application_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\45\6\16\0\0\0\0\0" - "viam.app.v1.GetAuthApplicationRequest" - "org_id" - "application_id" - }}, -}; - -::uint8_t* GetAuthApplicationRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetAuthApplicationRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetAuthApplicationRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string org_id = 1 [json_name = "orgId"]; if (!this->_internal_org_id().empty()) { - const std::string& _s = this->_internal_org_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.GetAuthApplicationRequest.org_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_org_id().data(), static_cast(this->_internal_org_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.GetAuthApplicationRequest.org_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_org_id(), target); } // string application_id = 2 [json_name = "applicationId"]; if (!this->_internal_application_id().empty()) { - const std::string& _s = this->_internal_application_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.GetAuthApplicationRequest.application_id"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_application_id().data(), static_cast(this->_internal_application_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.GetAuthApplicationRequest.application_id"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_application_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.GetAuthApplicationRequest) return target; } -::size_t GetAuthApplicationRequest::ByteSizeLong() const { +size_t GetAuthApplicationRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetAuthApplicationRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string org_id = 1 [json_name = "orgId"]; if (!this->_internal_org_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_org_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_org_id()); } // string application_id = 2 [json_name = "applicationId"]; if (!this->_internal_application_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_application_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_application_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetAuthApplicationRequest::_class_data_ = { - GetAuthApplicationRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetAuthApplicationRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetAuthApplicationRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetAuthApplicationRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetAuthApplicationRequest::GetClassData() const { return &_class_data_; } + +void GetAuthApplicationRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetAuthApplicationRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetAuthApplicationRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetAuthApplicationRequest::MergeFrom(const GetAuthApplicationRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetAuthApplicationRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_org_id().empty()) { - _this->_internal_set_org_id(from._internal_org_id()); + _internal_set_org_id(from._internal_org_id()); } if (!from._internal_application_id().empty()) { - _this->_internal_set_application_id(from._internal_application_id()); + _internal_set_application_id(from._internal_application_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetAuthApplicationRequest::CopyFrom(const GetAuthApplicationRequest& from) { @@ -2052,324 +2167,402 @@ void GetAuthApplicationRequest::CopyFrom(const GetAuthApplicationRequest& from) MergeFrom(from); } -PROTOBUF_NOINLINE bool GetAuthApplicationRequest::IsInitialized() const { +bool GetAuthApplicationRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetAuthApplicationRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetAuthApplicationRequest::InternalSwap(GetAuthApplicationRequest* PROTOBUF_RESTRICT other) { +void GetAuthApplicationRequest::InternalSwap(GetAuthApplicationRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.org_id_, &other->_impl_.org_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.application_id_, &other->_impl_.application_id_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &org_id_, lhs_arena, + &other->org_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &application_id_, lhs_arena, + &other->application_id_, rhs_arena + ); } -::google::protobuf::Metadata GetAuthApplicationRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetAuthApplicationRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fend_5fuser_2eproto_getter, &descriptor_table_app_2fv1_2fend_5fuser_2eproto_once, file_level_metadata_app_2fv1_2fend_5fuser_2eproto[8]); } + // =================================================================== class GetAuthApplicationResponse::_Internal { public: }; -GetAuthApplicationResponse::GetAuthApplicationResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetAuthApplicationResponse::GetAuthApplicationResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + origin_uris_(arena), + redirect_uris_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.v1.GetAuthApplicationResponse) } -inline PROTOBUF_NDEBUG_INLINE GetAuthApplicationResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : origin_uris_{visibility, arena, from.origin_uris_}, - redirect_uris_{visibility, arena, from.redirect_uris_}, - application_id_(arena, from.application_id_), - application_name_(arena, from.application_name_), - client_secret_(arena, from.client_secret_), - logout_uri_(arena, from.logout_uri_), - _cached_size_{0} {} - -GetAuthApplicationResponse::GetAuthApplicationResponse( - ::google::protobuf::Arena* arena, - const GetAuthApplicationResponse& from) - : ::google::protobuf::Message(arena) { - GetAuthApplicationResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetAuthApplicationResponse::GetAuthApplicationResponse(const GetAuthApplicationResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + origin_uris_(from.origin_uris_), + redirect_uris_(from.redirect_uris_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + application_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + application_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_application_id().empty()) { + application_id_.Set(from._internal_application_id(), + GetArenaForAllocation()); + } + application_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + application_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_application_name().empty()) { + application_name_.Set(from._internal_application_name(), + GetArenaForAllocation()); + } + client_secret_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + client_secret_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_client_secret().empty()) { + client_secret_.Set(from._internal_client_secret(), + GetArenaForAllocation()); + } + logout_uri_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + logout_uri_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_logout_uri().empty()) { + logout_uri_.Set(from._internal_logout_uri(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.GetAuthApplicationResponse) } -inline PROTOBUF_NDEBUG_INLINE GetAuthApplicationResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : origin_uris_{visibility, arena}, - redirect_uris_{visibility, arena}, - application_id_(arena), - application_name_(arena), - client_secret_(arena), - logout_uri_(arena), - _cached_size_{0} {} -inline void GetAuthApplicationResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetAuthApplicationResponse::SharedCtor() { +application_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + application_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +application_name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + application_name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +client_secret_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + client_secret_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +logout_uri_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + logout_uri_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + GetAuthApplicationResponse::~GetAuthApplicationResponse() { // @@protoc_insertion_point(destructor:viam.app.v1.GetAuthApplicationResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetAuthApplicationResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.application_id_.Destroy(); - _impl_.application_name_.Destroy(); - _impl_.client_secret_.Destroy(); - _impl_.logout_uri_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + application_id_.Destroy(); + application_name_.Destroy(); + client_secret_.Destroy(); + logout_uri_.Destroy(); +} + +void GetAuthApplicationResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetAuthApplicationResponse::Clear() { +void GetAuthApplicationResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.GetAuthApplicationResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.origin_uris_.Clear(); - _impl_.redirect_uris_.Clear(); - _impl_.application_id_.ClearToEmpty(); - _impl_.application_name_.ClearToEmpty(); - _impl_.client_secret_.ClearToEmpty(); - _impl_.logout_uri_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetAuthApplicationResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + origin_uris_.Clear(); + redirect_uris_.Clear(); + application_id_.ClearToEmpty(); + application_name_.ClearToEmpty(); + client_secret_.ClearToEmpty(); + logout_uri_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetAuthApplicationResponse::_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 application_id = 1 [json_name = "applicationId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_application_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.GetAuthApplicationResponse.application_id")); + } else + goto handle_unusual; + continue; + // string application_name = 2 [json_name = "applicationName"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_application_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.GetAuthApplicationResponse.application_name")); + } else + goto handle_unusual; + continue; + // string client_secret = 3 [json_name = "clientSecret"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_client_secret(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.GetAuthApplicationResponse.client_secret")); + } else + goto handle_unusual; + continue; + // repeated string origin_uris = 4 [json_name = "originUris"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_origin_uris(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.GetAuthApplicationResponse.origin_uris")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr)); + } else + goto handle_unusual; + continue; + // repeated string redirect_uris = 5 [json_name = "redirectUris"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_redirect_uris(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.GetAuthApplicationResponse.redirect_uris")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr)); + } else + goto handle_unusual; + continue; + // string logout_uri = 6 [json_name = "logoutUri"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + auto str = _internal_mutable_logout_uri(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.GetAuthApplicationResponse.logout_uri")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 6, 0, 124, 2> GetAuthApplicationResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 6, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967232, // skipmap - offsetof(decltype(_table_), field_entries), - 6, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetAuthApplicationResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string application_id = 1 [json_name = "applicationId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetAuthApplicationResponse, _impl_.application_id_)}}, - // string application_name = 2 [json_name = "applicationName"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(GetAuthApplicationResponse, _impl_.application_name_)}}, - // string client_secret = 3 [json_name = "clientSecret"]; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(GetAuthApplicationResponse, _impl_.client_secret_)}}, - // repeated string origin_uris = 4 [json_name = "originUris"]; - {::_pbi::TcParser::FastUR1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(GetAuthApplicationResponse, _impl_.origin_uris_)}}, - // repeated string redirect_uris = 5 [json_name = "redirectUris"]; - {::_pbi::TcParser::FastUR1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(GetAuthApplicationResponse, _impl_.redirect_uris_)}}, - // string logout_uri = 6 [json_name = "logoutUri"]; - {::_pbi::TcParser::FastUS1, - {50, 63, 0, PROTOBUF_FIELD_OFFSET(GetAuthApplicationResponse, _impl_.logout_uri_)}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string application_id = 1 [json_name = "applicationId"]; - {PROTOBUF_FIELD_OFFSET(GetAuthApplicationResponse, _impl_.application_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string application_name = 2 [json_name = "applicationName"]; - {PROTOBUF_FIELD_OFFSET(GetAuthApplicationResponse, _impl_.application_name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string client_secret = 3 [json_name = "clientSecret"]; - {PROTOBUF_FIELD_OFFSET(GetAuthApplicationResponse, _impl_.client_secret_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated string origin_uris = 4 [json_name = "originUris"]; - {PROTOBUF_FIELD_OFFSET(GetAuthApplicationResponse, _impl_.origin_uris_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - // repeated string redirect_uris = 5 [json_name = "redirectUris"]; - {PROTOBUF_FIELD_OFFSET(GetAuthApplicationResponse, _impl_.redirect_uris_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - // string logout_uri = 6 [json_name = "logoutUri"]; - {PROTOBUF_FIELD_OFFSET(GetAuthApplicationResponse, _impl_.logout_uri_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\46\16\20\15\13\15\12\0" - "viam.app.v1.GetAuthApplicationResponse" - "application_id" - "application_name" - "client_secret" - "origin_uris" - "redirect_uris" - "logout_uri" - }}, -}; - -::uint8_t* GetAuthApplicationResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetAuthApplicationResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.GetAuthApplicationResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string application_id = 1 [json_name = "applicationId"]; if (!this->_internal_application_id().empty()) { - const std::string& _s = this->_internal_application_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.GetAuthApplicationResponse.application_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_application_id().data(), static_cast(this->_internal_application_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.GetAuthApplicationResponse.application_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_application_id(), target); } // string application_name = 2 [json_name = "applicationName"]; if (!this->_internal_application_name().empty()) { - const std::string& _s = this->_internal_application_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.GetAuthApplicationResponse.application_name"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_application_name().data(), static_cast(this->_internal_application_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.GetAuthApplicationResponse.application_name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_application_name(), target); } // string client_secret = 3 [json_name = "clientSecret"]; if (!this->_internal_client_secret().empty()) { - const std::string& _s = this->_internal_client_secret(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.GetAuthApplicationResponse.client_secret"); - target = stream->WriteStringMaybeAliased(3, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_client_secret().data(), static_cast(this->_internal_client_secret().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.GetAuthApplicationResponse.client_secret"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_client_secret(), target); } // repeated string origin_uris = 4 [json_name = "originUris"]; - for (int i = 0, n = this->_internal_origin_uris_size(); i < n; ++i) { - const auto& s = this->_internal_origin_uris().Get(i); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.GetAuthApplicationResponse.origin_uris"); + for (int i = 0, n = this->_internal_origin_uris_size(); i < n; i++) { + const auto& s = this->_internal_origin_uris(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.GetAuthApplicationResponse.origin_uris"); target = stream->WriteString(4, s, target); } // repeated string redirect_uris = 5 [json_name = "redirectUris"]; - for (int i = 0, n = this->_internal_redirect_uris_size(); i < n; ++i) { - const auto& s = this->_internal_redirect_uris().Get(i); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.GetAuthApplicationResponse.redirect_uris"); + for (int i = 0, n = this->_internal_redirect_uris_size(); i < n; i++) { + const auto& s = this->_internal_redirect_uris(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.GetAuthApplicationResponse.redirect_uris"); target = stream->WriteString(5, s, target); } // string logout_uri = 6 [json_name = "logoutUri"]; if (!this->_internal_logout_uri().empty()) { - const std::string& _s = this->_internal_logout_uri(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.GetAuthApplicationResponse.logout_uri"); - target = stream->WriteStringMaybeAliased(6, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_logout_uri().data(), static_cast(this->_internal_logout_uri().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.GetAuthApplicationResponse.logout_uri"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_logout_uri(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.GetAuthApplicationResponse) return target; } -::size_t GetAuthApplicationResponse::ByteSizeLong() const { +size_t GetAuthApplicationResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.GetAuthApplicationResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated string origin_uris = 4 [json_name = "originUris"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_origin_uris().size()); - for (int i = 0, n = _internal_origin_uris().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - _internal_origin_uris().Get(i)); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(origin_uris_.size()); + for (int i = 0, n = origin_uris_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + origin_uris_.Get(i)); } + // repeated string redirect_uris = 5 [json_name = "redirectUris"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_redirect_uris().size()); - for (int i = 0, n = _internal_redirect_uris().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - _internal_redirect_uris().Get(i)); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(redirect_uris_.size()); + for (int i = 0, n = redirect_uris_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + redirect_uris_.Get(i)); } + // string application_id = 1 [json_name = "applicationId"]; if (!this->_internal_application_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_application_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_application_id()); } // string application_name = 2 [json_name = "applicationName"]; if (!this->_internal_application_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_application_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_application_name()); } // string client_secret = 3 [json_name = "clientSecret"]; if (!this->_internal_client_secret().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_client_secret()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_client_secret()); } // string logout_uri = 6 [json_name = "logoutUri"]; if (!this->_internal_logout_uri().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_logout_uri()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_logout_uri()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetAuthApplicationResponse::_class_data_ = { - GetAuthApplicationResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetAuthApplicationResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetAuthApplicationResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetAuthApplicationResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetAuthApplicationResponse::GetClassData() const { return &_class_data_; } + +void GetAuthApplicationResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetAuthApplicationResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetAuthApplicationResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetAuthApplicationResponse::MergeFrom(const GetAuthApplicationResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.GetAuthApplicationResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_origin_uris()->MergeFrom(from._internal_origin_uris()); - _this->_internal_mutable_redirect_uris()->MergeFrom(from._internal_redirect_uris()); + origin_uris_.MergeFrom(from.origin_uris_); + redirect_uris_.MergeFrom(from.redirect_uris_); if (!from._internal_application_id().empty()) { - _this->_internal_set_application_id(from._internal_application_id()); + _internal_set_application_id(from._internal_application_id()); } if (!from._internal_application_name().empty()) { - _this->_internal_set_application_name(from._internal_application_name()); + _internal_set_application_name(from._internal_application_name()); } if (!from._internal_client_secret().empty()) { - _this->_internal_set_client_secret(from._internal_client_secret()); + _internal_set_client_secret(from._internal_client_secret()); } if (!from._internal_logout_uri().empty()) { - _this->_internal_set_logout_uri(from._internal_logout_uri()); + _internal_set_logout_uri(from._internal_logout_uri()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetAuthApplicationResponse::CopyFrom(const GetAuthApplicationResponse& from) { @@ -2379,38 +2572,87 @@ void GetAuthApplicationResponse::CopyFrom(const GetAuthApplicationResponse& from MergeFrom(from); } -PROTOBUF_NOINLINE bool GetAuthApplicationResponse::IsInitialized() const { +bool GetAuthApplicationResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetAuthApplicationResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetAuthApplicationResponse::InternalSwap(GetAuthApplicationResponse* PROTOBUF_RESTRICT other) { +void GetAuthApplicationResponse::InternalSwap(GetAuthApplicationResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.origin_uris_.InternalSwap(&other->_impl_.origin_uris_); - _impl_.redirect_uris_.InternalSwap(&other->_impl_.redirect_uris_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.application_id_, &other->_impl_.application_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.application_name_, &other->_impl_.application_name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.client_secret_, &other->_impl_.client_secret_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.logout_uri_, &other->_impl_.logout_uri_, arena); -} - -::google::protobuf::Metadata GetAuthApplicationResponse::GetMetadata() const { + origin_uris_.InternalSwap(&other->origin_uris_); + redirect_uris_.InternalSwap(&other->redirect_uris_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &application_id_, lhs_arena, + &other->application_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &application_name_, lhs_arena, + &other->application_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &client_secret_, lhs_arena, + &other->client_secret_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &logout_uri_, lhs_arena, + &other->logout_uri_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetAuthApplicationResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2fend_5fuser_2eproto_getter, &descriptor_table_app_2fv1_2fend_5fuser_2eproto_once, file_level_metadata_app_2fv1_2fend_5fuser_2eproto[9]); } + // @@protoc_insertion_point(namespace_scope) } // namespace v1 } // namespace app } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::app::v1::IsLegalAcceptedRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::IsLegalAcceptedRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::IsLegalAcceptedRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::IsLegalAcceptedResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::IsLegalAcceptedResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::IsLegalAcceptedResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::AcceptLegalRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::AcceptLegalRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::AcceptLegalRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::AcceptLegalResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::AcceptLegalResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::AcceptLegalResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::RegisterAuthApplicationRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::RegisterAuthApplicationRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::RegisterAuthApplicationRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::RegisterAuthApplicationResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::RegisterAuthApplicationResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::RegisterAuthApplicationResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::UpdateAuthApplicationRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::UpdateAuthApplicationRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::UpdateAuthApplicationRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::UpdateAuthApplicationResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::UpdateAuthApplicationResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::UpdateAuthApplicationResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::GetAuthApplicationRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::GetAuthApplicationRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::GetAuthApplicationRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::GetAuthApplicationResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::GetAuthApplicationResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::GetAuthApplicationResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/app/v1/end_user.pb.h b/src/viam/api/app/v1/end_user.pb.h index 31dfb098e..0edaa7413 100644 --- a/src/viam/api/app/v1/end_user.pb.h +++ b/src/viam/api/app/v1/end_user.pb.h @@ -1,61 +1,50 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: app/v1/end_user.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_app_2fv1_2fend_5fuser_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_app_2fv1_2fend_5fuser_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_app_2fv1_2fend_5fuser_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_app_2fv1_2fend_5fuser_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_bases.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/unknown_field_set.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +// @@protoc_insertion_point(includes) +#include #define PROTOBUF_INTERNAL_EXPORT_app_2fv1_2fend_5fuser_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_app_2fv1_2fend_5fuser_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_app_2fv1_2fend_5fuser_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_app_2fv1_2fend_5fuser_2eproto; namespace viam { namespace app { namespace v1 { @@ -92,44 +81,45 @@ extern UpdateAuthApplicationResponseDefaultTypeInternal _UpdateAuthApplicationRe } // namespace v1 } // namespace app } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::app::v1::AcceptLegalRequest* Arena::CreateMaybeMessage<::viam::app::v1::AcceptLegalRequest>(Arena*); +template<> ::viam::app::v1::AcceptLegalResponse* Arena::CreateMaybeMessage<::viam::app::v1::AcceptLegalResponse>(Arena*); +template<> ::viam::app::v1::GetAuthApplicationRequest* Arena::CreateMaybeMessage<::viam::app::v1::GetAuthApplicationRequest>(Arena*); +template<> ::viam::app::v1::GetAuthApplicationResponse* Arena::CreateMaybeMessage<::viam::app::v1::GetAuthApplicationResponse>(Arena*); +template<> ::viam::app::v1::IsLegalAcceptedRequest* Arena::CreateMaybeMessage<::viam::app::v1::IsLegalAcceptedRequest>(Arena*); +template<> ::viam::app::v1::IsLegalAcceptedResponse* Arena::CreateMaybeMessage<::viam::app::v1::IsLegalAcceptedResponse>(Arena*); +template<> ::viam::app::v1::RegisterAuthApplicationRequest* Arena::CreateMaybeMessage<::viam::app::v1::RegisterAuthApplicationRequest>(Arena*); +template<> ::viam::app::v1::RegisterAuthApplicationResponse* Arena::CreateMaybeMessage<::viam::app::v1::RegisterAuthApplicationResponse>(Arena*); +template<> ::viam::app::v1::UpdateAuthApplicationRequest* Arena::CreateMaybeMessage<::viam::app::v1::UpdateAuthApplicationRequest>(Arena*); +template<> ::viam::app::v1::UpdateAuthApplicationResponse* Arena::CreateMaybeMessage<::viam::app::v1::UpdateAuthApplicationResponse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace viam { namespace app { namespace v1 { // =================================================================== - -// ------------------------------------------------------------------- - -class UpdateAuthApplicationResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.UpdateAuthApplicationResponse) */ { +class IsLegalAcceptedRequest final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.IsLegalAcceptedRequest) */ { public: - inline UpdateAuthApplicationResponse() : UpdateAuthApplicationResponse(nullptr) {} - ~UpdateAuthApplicationResponse() override; - template - explicit PROTOBUF_CONSTEXPR UpdateAuthApplicationResponse(::google::protobuf::internal::ConstantInitialized); + inline IsLegalAcceptedRequest() : IsLegalAcceptedRequest(nullptr) {} + explicit PROTOBUF_CONSTEXPR IsLegalAcceptedRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline UpdateAuthApplicationResponse(const UpdateAuthApplicationResponse& from) - : UpdateAuthApplicationResponse(nullptr, from) {} - UpdateAuthApplicationResponse(UpdateAuthApplicationResponse&& from) noexcept - : UpdateAuthApplicationResponse() { + IsLegalAcceptedRequest(const IsLegalAcceptedRequest& from); + IsLegalAcceptedRequest(IsLegalAcceptedRequest&& from) noexcept + : IsLegalAcceptedRequest() { *this = ::std::move(from); } - inline UpdateAuthApplicationResponse& operator=(const UpdateAuthApplicationResponse& from) { + inline IsLegalAcceptedRequest& operator=(const IsLegalAcceptedRequest& from) { CopyFrom(from); return *this; } - inline UpdateAuthApplicationResponse& operator=(UpdateAuthApplicationResponse&& from) noexcept { + inline IsLegalAcceptedRequest& operator=(IsLegalAcceptedRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -139,196 +129,114 @@ class UpdateAuthApplicationResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const UpdateAuthApplicationResponse& default_instance() { + static const IsLegalAcceptedRequest& default_instance() { return *internal_default_instance(); } - static inline const UpdateAuthApplicationResponse* internal_default_instance() { - return reinterpret_cast( - &_UpdateAuthApplicationResponse_default_instance_); + static inline const IsLegalAcceptedRequest* internal_default_instance() { + return reinterpret_cast( + &_IsLegalAcceptedRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 7; + 0; - friend void swap(UpdateAuthApplicationResponse& a, UpdateAuthApplicationResponse& b) { + friend void swap(IsLegalAcceptedRequest& a, IsLegalAcceptedRequest& b) { a.Swap(&b); } - inline void Swap(UpdateAuthApplicationResponse* other) { + inline void Swap(IsLegalAcceptedRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(UpdateAuthApplicationResponse* other) { + void UnsafeArenaSwap(IsLegalAcceptedRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - UpdateAuthApplicationResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + IsLegalAcceptedRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const UpdateAuthApplicationResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const UpdateAuthApplicationResponse& from) { - UpdateAuthApplicationResponse::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const IsLegalAcceptedRequest& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const IsLegalAcceptedRequest& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(UpdateAuthApplicationResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.UpdateAuthApplicationResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.IsLegalAcceptedRequest"; } protected: - explicit UpdateAuthApplicationResponse(::google::protobuf::Arena* arena); - UpdateAuthApplicationResponse(::google::protobuf::Arena* arena, const UpdateAuthApplicationResponse& from); + explicit IsLegalAcceptedRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kApplicationIdFieldNumber = 1, - kApplicationNameFieldNumber = 2, - }; - // string application_id = 1 [json_name = "applicationId"]; - void clear_application_id() ; - const std::string& application_id() const; - template - void set_application_id(Arg_&& arg, Args_... args); - std::string* mutable_application_id(); - PROTOBUF_NODISCARD std::string* release_application_id(); - void set_allocated_application_id(std::string* value); - - private: - const std::string& _internal_application_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_application_id( - const std::string& value); - std::string* _internal_mutable_application_id(); - - public: - // string application_name = 2 [json_name = "applicationName"]; - void clear_application_name() ; - const std::string& application_name() const; - template - void set_application_name(Arg_&& arg, Args_... args); - std::string* mutable_application_name(); - PROTOBUF_NODISCARD std::string* release_application_name(); - void set_allocated_application_name(std::string* value); - - private: - const std::string& _internal_application_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_application_name( - const std::string& value); - std::string* _internal_mutable_application_name(); - - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.UpdateAuthApplicationResponse) + // @@protoc_insertion_point(class_scope:viam.app.v1.IsLegalAcceptedRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 80, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr application_id_; - ::google::protobuf::internal::ArenaStringPtr application_name_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_app_2fv1_2fend_5fuser_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class UpdateAuthApplicationRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.UpdateAuthApplicationRequest) */ { +class IsLegalAcceptedResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.IsLegalAcceptedResponse) */ { public: - inline UpdateAuthApplicationRequest() : UpdateAuthApplicationRequest(nullptr) {} - ~UpdateAuthApplicationRequest() override; - template - explicit PROTOBUF_CONSTEXPR UpdateAuthApplicationRequest(::google::protobuf::internal::ConstantInitialized); + inline IsLegalAcceptedResponse() : IsLegalAcceptedResponse(nullptr) {} + ~IsLegalAcceptedResponse() override; + explicit PROTOBUF_CONSTEXPR IsLegalAcceptedResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline UpdateAuthApplicationRequest(const UpdateAuthApplicationRequest& from) - : UpdateAuthApplicationRequest(nullptr, from) {} - UpdateAuthApplicationRequest(UpdateAuthApplicationRequest&& from) noexcept - : UpdateAuthApplicationRequest() { + IsLegalAcceptedResponse(const IsLegalAcceptedResponse& from); + IsLegalAcceptedResponse(IsLegalAcceptedResponse&& from) noexcept + : IsLegalAcceptedResponse() { *this = ::std::move(from); } - inline UpdateAuthApplicationRequest& operator=(const UpdateAuthApplicationRequest& from) { + inline IsLegalAcceptedResponse& operator=(const IsLegalAcceptedResponse& from) { CopyFrom(from); return *this; } - inline UpdateAuthApplicationRequest& operator=(UpdateAuthApplicationRequest&& from) noexcept { + inline IsLegalAcceptedResponse& operator=(IsLegalAcceptedResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -338,292 +246,255 @@ class UpdateAuthApplicationRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const UpdateAuthApplicationRequest& default_instance() { + static const IsLegalAcceptedResponse& default_instance() { return *internal_default_instance(); } - static inline const UpdateAuthApplicationRequest* internal_default_instance() { - return reinterpret_cast( - &_UpdateAuthApplicationRequest_default_instance_); + static inline const IsLegalAcceptedResponse* internal_default_instance() { + return reinterpret_cast( + &_IsLegalAcceptedResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 6; + 1; - friend void swap(UpdateAuthApplicationRequest& a, UpdateAuthApplicationRequest& b) { + friend void swap(IsLegalAcceptedResponse& a, IsLegalAcceptedResponse& b) { a.Swap(&b); } - inline void Swap(UpdateAuthApplicationRequest* other) { + inline void Swap(IsLegalAcceptedResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(UpdateAuthApplicationRequest* other) { + void UnsafeArenaSwap(IsLegalAcceptedResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - UpdateAuthApplicationRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const UpdateAuthApplicationRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const UpdateAuthApplicationRequest& from) { - UpdateAuthApplicationRequest::MergeImpl(*this, from); + IsLegalAcceptedResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const IsLegalAcceptedResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const IsLegalAcceptedResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(UpdateAuthApplicationRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(IsLegalAcceptedResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.UpdateAuthApplicationRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.IsLegalAcceptedResponse"; } protected: - explicit UpdateAuthApplicationRequest(::google::protobuf::Arena* arena); - UpdateAuthApplicationRequest(::google::protobuf::Arena* arena, const UpdateAuthApplicationRequest& from); + explicit IsLegalAcceptedResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kOriginUrisFieldNumber = 4, - kRedirectUrisFieldNumber = 5, - kOrgIdFieldNumber = 1, - kApplicationIdFieldNumber = 2, - kApplicationNameFieldNumber = 3, - kLogoutUriFieldNumber = 6, + kAcceptedLegalFieldNumber = 1, }; - // repeated string origin_uris = 4 [json_name = "originUris"]; - int origin_uris_size() const; + // bool accepted_legal = 1 [json_name = "acceptedLegal"]; + void clear_accepted_legal(); + bool accepted_legal() const; + void set_accepted_legal(bool value); private: - int _internal_origin_uris_size() const; - + bool _internal_accepted_legal() const; + void _internal_set_accepted_legal(bool value); public: - void clear_origin_uris() ; - const std::string& origin_uris(int index) const; - std::string* mutable_origin_uris(int index); - void set_origin_uris(int index, const std::string& value); - void set_origin_uris(int index, std::string&& value); - void set_origin_uris(int index, const char* value); - void set_origin_uris(int index, const char* value, std::size_t size); - void set_origin_uris(int index, absl::string_view value); - std::string* add_origin_uris(); - void add_origin_uris(const std::string& value); - void add_origin_uris(std::string&& value); - void add_origin_uris(const char* value); - void add_origin_uris(const char* value, std::size_t size); - void add_origin_uris(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& origin_uris() const; - ::google::protobuf::RepeatedPtrField* mutable_origin_uris(); - private: - const ::google::protobuf::RepeatedPtrField& _internal_origin_uris() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_origin_uris(); + // @@protoc_insertion_point(class_scope:viam.app.v1.IsLegalAcceptedResponse) + private: + class _Internal; - public: - // repeated string redirect_uris = 5 [json_name = "redirectUris"]; - int redirect_uris_size() const; - private: - int _internal_redirect_uris_size() const; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + bool accepted_legal_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_app_2fv1_2fend_5fuser_2eproto; +}; +// ------------------------------------------------------------------- - public: - void clear_redirect_uris() ; - const std::string& redirect_uris(int index) const; - std::string* mutable_redirect_uris(int index); - void set_redirect_uris(int index, const std::string& value); - void set_redirect_uris(int index, std::string&& value); - void set_redirect_uris(int index, const char* value); - void set_redirect_uris(int index, const char* value, std::size_t size); - void set_redirect_uris(int index, absl::string_view value); - std::string* add_redirect_uris(); - void add_redirect_uris(const std::string& value); - void add_redirect_uris(std::string&& value); - void add_redirect_uris(const char* value); - void add_redirect_uris(const char* value, std::size_t size); - void add_redirect_uris(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& redirect_uris() const; - ::google::protobuf::RepeatedPtrField* mutable_redirect_uris(); +class AcceptLegalRequest final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.AcceptLegalRequest) */ { + public: + inline AcceptLegalRequest() : AcceptLegalRequest(nullptr) {} + explicit PROTOBUF_CONSTEXPR AcceptLegalRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - private: - const ::google::protobuf::RepeatedPtrField& _internal_redirect_uris() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_redirect_uris(); + AcceptLegalRequest(const AcceptLegalRequest& from); + AcceptLegalRequest(AcceptLegalRequest&& from) noexcept + : AcceptLegalRequest() { + *this = ::std::move(from); + } - public: - // string org_id = 1 [json_name = "orgId"]; - void clear_org_id() ; - const std::string& org_id() const; - template - void set_org_id(Arg_&& arg, Args_... args); - std::string* mutable_org_id(); - PROTOBUF_NODISCARD std::string* release_org_id(); - void set_allocated_org_id(std::string* value); + inline AcceptLegalRequest& operator=(const AcceptLegalRequest& from) { + CopyFrom(from); + return *this; + } + inline AcceptLegalRequest& operator=(AcceptLegalRequest&& 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; + } - private: - const std::string& _internal_org_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_org_id( - const std::string& value); - std::string* _internal_mutable_org_id(); + 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 AcceptLegalRequest& default_instance() { + return *internal_default_instance(); + } + static inline const AcceptLegalRequest* internal_default_instance() { + return reinterpret_cast( + &_AcceptLegalRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; - public: - // string application_id = 2 [json_name = "applicationId"]; - void clear_application_id() ; - const std::string& application_id() const; - template - void set_application_id(Arg_&& arg, Args_... args); - std::string* mutable_application_id(); - PROTOBUF_NODISCARD std::string* release_application_id(); - void set_allocated_application_id(std::string* value); + friend void swap(AcceptLegalRequest& a, AcceptLegalRequest& b) { + a.Swap(&b); + } + inline void Swap(AcceptLegalRequest* 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(AcceptLegalRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } - private: - const std::string& _internal_application_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_application_id( - const std::string& value); - std::string* _internal_mutable_application_id(); + // implements Message ---------------------------------------------- + AcceptLegalRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const AcceptLegalRequest& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const AcceptLegalRequest& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); + } public: - // string application_name = 3 [json_name = "applicationName"]; - void clear_application_name() ; - const std::string& application_name() const; - template - void set_application_name(Arg_&& arg, Args_... args); - std::string* mutable_application_name(); - PROTOBUF_NODISCARD std::string* release_application_name(); - void set_allocated_application_name(std::string* value); private: - const std::string& _internal_application_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_application_name( - const std::string& value); - std::string* _internal_mutable_application_name(); - + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.AcceptLegalRequest"; + } + protected: + explicit AcceptLegalRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - // string logout_uri = 6 [json_name = "logoutUri"]; - void clear_logout_uri() ; - const std::string& logout_uri() const; - template - void set_logout_uri(Arg_&& arg, Args_... args); - std::string* mutable_logout_uri(); - PROTOBUF_NODISCARD std::string* release_logout_uri(); - void set_allocated_logout_uri(std::string* value); - private: - const std::string& _internal_logout_uri() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_logout_uri( - const std::string& value); - std::string* _internal_mutable_logout_uri(); + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.UpdateAuthApplicationRequest) + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.app.v1.AcceptLegalRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 6, 0, - 119, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField origin_uris_; - ::google::protobuf::RepeatedPtrField redirect_uris_; - ::google::protobuf::internal::ArenaStringPtr org_id_; - ::google::protobuf::internal::ArenaStringPtr application_id_; - ::google::protobuf::internal::ArenaStringPtr application_name_; - ::google::protobuf::internal::ArenaStringPtr logout_uri_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_app_2fv1_2fend_5fuser_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class RegisterAuthApplicationResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.RegisterAuthApplicationResponse) */ { +class AcceptLegalResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.AcceptLegalResponse) */ { public: - inline RegisterAuthApplicationResponse() : RegisterAuthApplicationResponse(nullptr) {} - ~RegisterAuthApplicationResponse() override; - template - explicit PROTOBUF_CONSTEXPR RegisterAuthApplicationResponse(::google::protobuf::internal::ConstantInitialized); + inline AcceptLegalResponse() : AcceptLegalResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR AcceptLegalResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline RegisterAuthApplicationResponse(const RegisterAuthApplicationResponse& from) - : RegisterAuthApplicationResponse(nullptr, from) {} - RegisterAuthApplicationResponse(RegisterAuthApplicationResponse&& from) noexcept - : RegisterAuthApplicationResponse() { + AcceptLegalResponse(const AcceptLegalResponse& from); + AcceptLegalResponse(AcceptLegalResponse&& from) noexcept + : AcceptLegalResponse() { *this = ::std::move(from); } - inline RegisterAuthApplicationResponse& operator=(const RegisterAuthApplicationResponse& from) { + inline AcceptLegalResponse& operator=(const AcceptLegalResponse& from) { CopyFrom(from); return *this; } - inline RegisterAuthApplicationResponse& operator=(RegisterAuthApplicationResponse&& from) noexcept { + inline AcceptLegalResponse& operator=(AcceptLegalResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -633,200 +504,100 @@ class RegisterAuthApplicationResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const RegisterAuthApplicationResponse& default_instance() { + static const AcceptLegalResponse& default_instance() { return *internal_default_instance(); } - static inline const RegisterAuthApplicationResponse* internal_default_instance() { - return reinterpret_cast( - &_RegisterAuthApplicationResponse_default_instance_); + static inline const AcceptLegalResponse* internal_default_instance() { + return reinterpret_cast( + &_AcceptLegalResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 5; + 3; - friend void swap(RegisterAuthApplicationResponse& a, RegisterAuthApplicationResponse& b) { + friend void swap(AcceptLegalResponse& a, AcceptLegalResponse& b) { a.Swap(&b); } - inline void Swap(RegisterAuthApplicationResponse* other) { + inline void Swap(AcceptLegalResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RegisterAuthApplicationResponse* other) { + void UnsafeArenaSwap(AcceptLegalResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - RegisterAuthApplicationResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + AcceptLegalResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const RegisterAuthApplicationResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const RegisterAuthApplicationResponse& from) { - RegisterAuthApplicationResponse::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const AcceptLegalResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const AcceptLegalResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(RegisterAuthApplicationResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.RegisterAuthApplicationResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.AcceptLegalResponse"; } protected: - explicit RegisterAuthApplicationResponse(::google::protobuf::Arena* arena); - RegisterAuthApplicationResponse(::google::protobuf::Arena* arena, const RegisterAuthApplicationResponse& from); + explicit AcceptLegalResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kApplicationIdFieldNumber = 1, - kApplicationNameFieldNumber = 2, - kClientSecretFieldNumber = 3, - }; - // string application_id = 1 [json_name = "applicationId"]; - void clear_application_id() ; - const std::string& application_id() const; - template - void set_application_id(Arg_&& arg, Args_... args); - std::string* mutable_application_id(); - PROTOBUF_NODISCARD std::string* release_application_id(); - void set_allocated_application_id(std::string* value); - - private: - const std::string& _internal_application_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_application_id( - const std::string& value); - std::string* _internal_mutable_application_id(); - - public: - // string application_name = 2 [json_name = "applicationName"]; - void clear_application_name() ; - const std::string& application_name() const; - template - void set_application_name(Arg_&& arg, Args_... args); - std::string* mutable_application_name(); - PROTOBUF_NODISCARD std::string* release_application_name(); - void set_allocated_application_name(std::string* value); - - private: - const std::string& _internal_application_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_application_name( - const std::string& value); - std::string* _internal_mutable_application_name(); - - public: - // string client_secret = 3 [json_name = "clientSecret"]; - void clear_client_secret() ; - const std::string& client_secret() const; - template - void set_client_secret(Arg_&& arg, Args_... args); - std::string* mutable_client_secret(); - PROTOBUF_NODISCARD std::string* release_client_secret(); - void set_allocated_client_secret(std::string* value); - - private: - const std::string& _internal_client_secret() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_client_secret( - const std::string& value); - std::string* _internal_mutable_client_secret(); - - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.RegisterAuthApplicationResponse) + // @@protoc_insertion_point(class_scope:viam.app.v1.AcceptLegalResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 0, - 95, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr application_id_; - ::google::protobuf::internal::ArenaStringPtr application_name_; - ::google::protobuf::internal::ArenaStringPtr client_secret_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_app_2fv1_2fend_5fuser_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class RegisterAuthApplicationRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.RegisterAuthApplicationRequest) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.RegisterAuthApplicationRequest) */ { public: inline RegisterAuthApplicationRequest() : RegisterAuthApplicationRequest(nullptr) {} ~RegisterAuthApplicationRequest() override; - template - explicit PROTOBUF_CONSTEXPR RegisterAuthApplicationRequest(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR RegisterAuthApplicationRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline RegisterAuthApplicationRequest(const RegisterAuthApplicationRequest& from) - : RegisterAuthApplicationRequest(nullptr, from) {} + RegisterAuthApplicationRequest(const RegisterAuthApplicationRequest& from); RegisterAuthApplicationRequest(RegisterAuthApplicationRequest&& from) noexcept : RegisterAuthApplicationRequest() { *this = ::std::move(from); @@ -838,9 +609,9 @@ class RegisterAuthApplicationRequest final : } inline RegisterAuthApplicationRequest& operator=(RegisterAuthApplicationRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -850,22 +621,13 @@ class RegisterAuthApplicationRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const RegisterAuthApplicationRequest& default_instance() { @@ -884,65 +646,63 @@ class RegisterAuthApplicationRequest final : inline void Swap(RegisterAuthApplicationRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(RegisterAuthApplicationRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - RegisterAuthApplicationRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + RegisterAuthApplicationRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const RegisterAuthApplicationRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const RegisterAuthApplicationRequest& from) { - RegisterAuthApplicationRequest::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const RegisterAuthApplicationRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(RegisterAuthApplicationRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "viam.app.v1.RegisterAuthApplicationRequest"; } protected: - explicit RegisterAuthApplicationRequest(::google::protobuf::Arena* arena); - RegisterAuthApplicationRequest(::google::protobuf::Arena* arena, const RegisterAuthApplicationRequest& from); + explicit RegisterAuthApplicationRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -959,165 +719,131 @@ class RegisterAuthApplicationRequest final : int origin_uris_size() const; private: int _internal_origin_uris_size() const; - public: - void clear_origin_uris() ; + void clear_origin_uris(); const std::string& origin_uris(int index) const; std::string* mutable_origin_uris(int index); void set_origin_uris(int index, const std::string& value); void set_origin_uris(int index, std::string&& value); void set_origin_uris(int index, const char* value); - void set_origin_uris(int index, const char* value, std::size_t size); - void set_origin_uris(int index, absl::string_view value); + void set_origin_uris(int index, const char* value, size_t size); std::string* add_origin_uris(); void add_origin_uris(const std::string& value); void add_origin_uris(std::string&& value); void add_origin_uris(const char* value); - void add_origin_uris(const char* value, std::size_t size); - void add_origin_uris(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& origin_uris() const; - ::google::protobuf::RepeatedPtrField* mutable_origin_uris(); - + void add_origin_uris(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& origin_uris() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_origin_uris(); private: - const ::google::protobuf::RepeatedPtrField& _internal_origin_uris() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_origin_uris(); - + const std::string& _internal_origin_uris(int index) const; + std::string* _internal_add_origin_uris(); public: + // repeated string redirect_uris = 4 [json_name = "redirectUris"]; int redirect_uris_size() const; private: int _internal_redirect_uris_size() const; - public: - void clear_redirect_uris() ; + void clear_redirect_uris(); const std::string& redirect_uris(int index) const; std::string* mutable_redirect_uris(int index); void set_redirect_uris(int index, const std::string& value); void set_redirect_uris(int index, std::string&& value); void set_redirect_uris(int index, const char* value); - void set_redirect_uris(int index, const char* value, std::size_t size); - void set_redirect_uris(int index, absl::string_view value); + void set_redirect_uris(int index, const char* value, size_t size); std::string* add_redirect_uris(); void add_redirect_uris(const std::string& value); void add_redirect_uris(std::string&& value); void add_redirect_uris(const char* value); - void add_redirect_uris(const char* value, std::size_t size); - void add_redirect_uris(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& redirect_uris() const; - ::google::protobuf::RepeatedPtrField* mutable_redirect_uris(); - + void add_redirect_uris(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& redirect_uris() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_redirect_uris(); private: - const ::google::protobuf::RepeatedPtrField& _internal_redirect_uris() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_redirect_uris(); - + const std::string& _internal_redirect_uris(int index) const; + std::string* _internal_add_redirect_uris(); public: + // string application_name = 1 [json_name = "applicationName"]; - void clear_application_name() ; + void clear_application_name(); const std::string& application_name() const; - template - void set_application_name(Arg_&& arg, Args_... args); + template + void set_application_name(ArgT0&& arg0, ArgT... args); std::string* mutable_application_name(); PROTOBUF_NODISCARD std::string* release_application_name(); - void set_allocated_application_name(std::string* value); - + void set_allocated_application_name(std::string* application_name); private: const std::string& _internal_application_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_application_name( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_application_name(const std::string& value); std::string* _internal_mutable_application_name(); - public: + // string org_id = 2 [json_name = "orgId"]; - void clear_org_id() ; + void clear_org_id(); const std::string& org_id() const; - template - void set_org_id(Arg_&& arg, Args_... args); + template + void set_org_id(ArgT0&& arg0, ArgT... args); std::string* mutable_org_id(); PROTOBUF_NODISCARD std::string* release_org_id(); - void set_allocated_org_id(std::string* value); - + void set_allocated_org_id(std::string* org_id); private: const std::string& _internal_org_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_org_id( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_org_id(const std::string& value); std::string* _internal_mutable_org_id(); - public: + // string logout_uri = 5 [json_name = "logoutUri"]; - void clear_logout_uri() ; + void clear_logout_uri(); const std::string& logout_uri() const; - template - void set_logout_uri(Arg_&& arg, Args_... args); + template + void set_logout_uri(ArgT0&& arg0, ArgT... args); std::string* mutable_logout_uri(); PROTOBUF_NODISCARD std::string* release_logout_uri(); - void set_allocated_logout_uri(std::string* value); - + void set_allocated_logout_uri(std::string* logout_uri); private: const std::string& _internal_logout_uri() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_logout_uri( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_logout_uri(const std::string& value); std::string* _internal_mutable_logout_uri(); - public: + // @@protoc_insertion_point(class_scope:viam.app.v1.RegisterAuthApplicationRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 5, 0, - 107, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField origin_uris_; - ::google::protobuf::RepeatedPtrField redirect_uris_; - ::google::protobuf::internal::ArenaStringPtr application_name_; - ::google::protobuf::internal::ArenaStringPtr org_id_; - ::google::protobuf::internal::ArenaStringPtr logout_uri_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField origin_uris_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField redirect_uris_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr application_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr org_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr logout_uri_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fend_5fuser_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class IsLegalAcceptedResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.IsLegalAcceptedResponse) */ { +class RegisterAuthApplicationResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.RegisterAuthApplicationResponse) */ { public: - inline IsLegalAcceptedResponse() : IsLegalAcceptedResponse(nullptr) {} - ~IsLegalAcceptedResponse() override; - template - explicit PROTOBUF_CONSTEXPR IsLegalAcceptedResponse(::google::protobuf::internal::ConstantInitialized); + inline RegisterAuthApplicationResponse() : RegisterAuthApplicationResponse(nullptr) {} + ~RegisterAuthApplicationResponse() override; + explicit PROTOBUF_CONSTEXPR RegisterAuthApplicationResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline IsLegalAcceptedResponse(const IsLegalAcceptedResponse& from) - : IsLegalAcceptedResponse(nullptr, from) {} - IsLegalAcceptedResponse(IsLegalAcceptedResponse&& from) noexcept - : IsLegalAcceptedResponse() { + RegisterAuthApplicationResponse(const RegisterAuthApplicationResponse& from); + RegisterAuthApplicationResponse(RegisterAuthApplicationResponse&& from) noexcept + : RegisterAuthApplicationResponse() { *this = ::std::move(from); } - inline IsLegalAcceptedResponse& operator=(const IsLegalAcceptedResponse& from) { + inline RegisterAuthApplicationResponse& operator=(const RegisterAuthApplicationResponse& from) { CopyFrom(from); return *this; } - inline IsLegalAcceptedResponse& operator=(IsLegalAcceptedResponse&& from) noexcept { + inline RegisterAuthApplicationResponse& operator=(RegisterAuthApplicationResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1127,308 +853,177 @@ class IsLegalAcceptedResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const IsLegalAcceptedResponse& default_instance() { + static const RegisterAuthApplicationResponse& default_instance() { return *internal_default_instance(); } - static inline const IsLegalAcceptedResponse* internal_default_instance() { - return reinterpret_cast( - &_IsLegalAcceptedResponse_default_instance_); + static inline const RegisterAuthApplicationResponse* internal_default_instance() { + return reinterpret_cast( + &_RegisterAuthApplicationResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 1; + 5; - friend void swap(IsLegalAcceptedResponse& a, IsLegalAcceptedResponse& b) { + friend void swap(RegisterAuthApplicationResponse& a, RegisterAuthApplicationResponse& b) { a.Swap(&b); } - inline void Swap(IsLegalAcceptedResponse* other) { + inline void Swap(RegisterAuthApplicationResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(IsLegalAcceptedResponse* other) { + void UnsafeArenaSwap(RegisterAuthApplicationResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - IsLegalAcceptedResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const IsLegalAcceptedResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const IsLegalAcceptedResponse& from) { - IsLegalAcceptedResponse::MergeImpl(*this, from); + RegisterAuthApplicationResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const RegisterAuthApplicationResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const RegisterAuthApplicationResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(IsLegalAcceptedResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(RegisterAuthApplicationResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.IsLegalAcceptedResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.RegisterAuthApplicationResponse"; } protected: - explicit IsLegalAcceptedResponse(::google::protobuf::Arena* arena); - IsLegalAcceptedResponse(::google::protobuf::Arena* arena, const IsLegalAcceptedResponse& from); + explicit RegisterAuthApplicationResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kAcceptedLegalFieldNumber = 1, + kApplicationIdFieldNumber = 1, + kApplicationNameFieldNumber = 2, + kClientSecretFieldNumber = 3, }; - // bool accepted_legal = 1 [json_name = "acceptedLegal"]; - void clear_accepted_legal() ; - bool accepted_legal() const; - void set_accepted_legal(bool value); - + // string application_id = 1 [json_name = "applicationId"]; + void clear_application_id(); + const std::string& application_id() const; + template + void set_application_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_application_id(); + PROTOBUF_NODISCARD std::string* release_application_id(); + void set_allocated_application_id(std::string* application_id); private: - bool _internal_accepted_legal() const; - void _internal_set_accepted_legal(bool value); - - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.IsLegalAcceptedResponse) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - bool accepted_legal_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_app_2fv1_2fend_5fuser_2eproto; -};// ------------------------------------------------------------------- - -class IsLegalAcceptedRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.IsLegalAcceptedRequest) */ { - public: - inline IsLegalAcceptedRequest() : IsLegalAcceptedRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR IsLegalAcceptedRequest(::google::protobuf::internal::ConstantInitialized); - - inline IsLegalAcceptedRequest(const IsLegalAcceptedRequest& from) - : IsLegalAcceptedRequest(nullptr, from) {} - IsLegalAcceptedRequest(IsLegalAcceptedRequest&& from) noexcept - : IsLegalAcceptedRequest() { - *this = ::std::move(from); - } - - inline IsLegalAcceptedRequest& operator=(const IsLegalAcceptedRequest& from) { - CopyFrom(from); - return *this; - } - inline IsLegalAcceptedRequest& operator=(IsLegalAcceptedRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const IsLegalAcceptedRequest& default_instance() { - return *internal_default_instance(); - } - static inline const IsLegalAcceptedRequest* internal_default_instance() { - return reinterpret_cast( - &_IsLegalAcceptedRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(IsLegalAcceptedRequest& a, IsLegalAcceptedRequest& b) { - a.Swap(&b); - } - inline void Swap(IsLegalAcceptedRequest* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(IsLegalAcceptedRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - IsLegalAcceptedRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const IsLegalAcceptedRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const IsLegalAcceptedRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); - } + const std::string& _internal_application_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_application_id(const std::string& value); + std::string* _internal_mutable_application_id(); public: + // string application_name = 2 [json_name = "applicationName"]; + void clear_application_name(); + const std::string& application_name() const; + template + void set_application_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_application_name(); + PROTOBUF_NODISCARD std::string* release_application_name(); + void set_allocated_application_name(std::string* application_name); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.IsLegalAcceptedRequest"; - } - protected: - explicit IsLegalAcceptedRequest(::google::protobuf::Arena* arena); - IsLegalAcceptedRequest(::google::protobuf::Arena* arena, const IsLegalAcceptedRequest& from); + const std::string& _internal_application_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_application_name(const std::string& value); + std::string* _internal_mutable_application_name(); public: - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- + // string client_secret = 3 [json_name = "clientSecret"]; + void clear_client_secret(); + const std::string& client_secret() const; + template + void set_client_secret(ArgT0&& arg0, ArgT... args); + std::string* mutable_client_secret(); + PROTOBUF_NODISCARD std::string* release_client_secret(); + void set_allocated_client_secret(std::string* client_secret); + private: + const std::string& _internal_client_secret() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_client_secret(const std::string& value); + std::string* _internal_mutable_client_secret(); + public: - // @@protoc_insertion_point(class_scope:viam.app.v1.IsLegalAcceptedRequest) + // @@protoc_insertion_point(class_scope:viam.app.v1.RegisterAuthApplicationResponse) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr application_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr application_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr client_secret_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fend_5fuser_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetAuthApplicationResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetAuthApplicationResponse) */ { +class UpdateAuthApplicationRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.UpdateAuthApplicationRequest) */ { public: - inline GetAuthApplicationResponse() : GetAuthApplicationResponse(nullptr) {} - ~GetAuthApplicationResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetAuthApplicationResponse(::google::protobuf::internal::ConstantInitialized); + inline UpdateAuthApplicationRequest() : UpdateAuthApplicationRequest(nullptr) {} + ~UpdateAuthApplicationRequest() override; + explicit PROTOBUF_CONSTEXPR UpdateAuthApplicationRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetAuthApplicationResponse(const GetAuthApplicationResponse& from) - : GetAuthApplicationResponse(nullptr, from) {} - GetAuthApplicationResponse(GetAuthApplicationResponse&& from) noexcept - : GetAuthApplicationResponse() { + UpdateAuthApplicationRequest(const UpdateAuthApplicationRequest& from); + UpdateAuthApplicationRequest(UpdateAuthApplicationRequest&& from) noexcept + : UpdateAuthApplicationRequest() { *this = ::std::move(from); } - inline GetAuthApplicationResponse& operator=(const GetAuthApplicationResponse& from) { + inline UpdateAuthApplicationRequest& operator=(const UpdateAuthApplicationRequest& from) { CopyFrom(from); return *this; } - inline GetAuthApplicationResponse& operator=(GetAuthApplicationResponse&& from) noexcept { + inline UpdateAuthApplicationRequest& operator=(UpdateAuthApplicationRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1438,99 +1033,88 @@ class GetAuthApplicationResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetAuthApplicationResponse& default_instance() { + static const UpdateAuthApplicationRequest& default_instance() { return *internal_default_instance(); } - static inline const GetAuthApplicationResponse* internal_default_instance() { - return reinterpret_cast( - &_GetAuthApplicationResponse_default_instance_); + static inline const UpdateAuthApplicationRequest* internal_default_instance() { + return reinterpret_cast( + &_UpdateAuthApplicationRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 9; + 6; - friend void swap(GetAuthApplicationResponse& a, GetAuthApplicationResponse& b) { + friend void swap(UpdateAuthApplicationRequest& a, UpdateAuthApplicationRequest& b) { a.Swap(&b); } - inline void Swap(GetAuthApplicationResponse* other) { + inline void Swap(UpdateAuthApplicationRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetAuthApplicationResponse* other) { + void UnsafeArenaSwap(UpdateAuthApplicationRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetAuthApplicationResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetAuthApplicationResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetAuthApplicationResponse& from) { - GetAuthApplicationResponse::MergeImpl(*this, from); + UpdateAuthApplicationRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const UpdateAuthApplicationRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const UpdateAuthApplicationRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetAuthApplicationResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(UpdateAuthApplicationRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.GetAuthApplicationResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.UpdateAuthApplicationRequest"; } protected: - explicit GetAuthApplicationResponse(::google::protobuf::Arena* arena); - GetAuthApplicationResponse(::google::protobuf::Arena* arena, const GetAuthApplicationResponse& from); + explicit UpdateAuthApplicationRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1539,191 +1123,155 @@ class GetAuthApplicationResponse final : enum : int { kOriginUrisFieldNumber = 4, kRedirectUrisFieldNumber = 5, - kApplicationIdFieldNumber = 1, - kApplicationNameFieldNumber = 2, - kClientSecretFieldNumber = 3, + kOrgIdFieldNumber = 1, + kApplicationIdFieldNumber = 2, + kApplicationNameFieldNumber = 3, kLogoutUriFieldNumber = 6, }; // repeated string origin_uris = 4 [json_name = "originUris"]; int origin_uris_size() const; private: int _internal_origin_uris_size() const; - public: - void clear_origin_uris() ; + void clear_origin_uris(); const std::string& origin_uris(int index) const; std::string* mutable_origin_uris(int index); void set_origin_uris(int index, const std::string& value); void set_origin_uris(int index, std::string&& value); void set_origin_uris(int index, const char* value); - void set_origin_uris(int index, const char* value, std::size_t size); - void set_origin_uris(int index, absl::string_view value); + void set_origin_uris(int index, const char* value, size_t size); std::string* add_origin_uris(); void add_origin_uris(const std::string& value); void add_origin_uris(std::string&& value); void add_origin_uris(const char* value); - void add_origin_uris(const char* value, std::size_t size); - void add_origin_uris(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& origin_uris() const; - ::google::protobuf::RepeatedPtrField* mutable_origin_uris(); - + void add_origin_uris(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& origin_uris() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_origin_uris(); private: - const ::google::protobuf::RepeatedPtrField& _internal_origin_uris() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_origin_uris(); - + const std::string& _internal_origin_uris(int index) const; + std::string* _internal_add_origin_uris(); public: + // repeated string redirect_uris = 5 [json_name = "redirectUris"]; int redirect_uris_size() const; private: int _internal_redirect_uris_size() const; - public: - void clear_redirect_uris() ; + void clear_redirect_uris(); const std::string& redirect_uris(int index) const; std::string* mutable_redirect_uris(int index); void set_redirect_uris(int index, const std::string& value); void set_redirect_uris(int index, std::string&& value); void set_redirect_uris(int index, const char* value); - void set_redirect_uris(int index, const char* value, std::size_t size); - void set_redirect_uris(int index, absl::string_view value); + void set_redirect_uris(int index, const char* value, size_t size); std::string* add_redirect_uris(); void add_redirect_uris(const std::string& value); void add_redirect_uris(std::string&& value); void add_redirect_uris(const char* value); - void add_redirect_uris(const char* value, std::size_t size); - void add_redirect_uris(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& redirect_uris() const; - ::google::protobuf::RepeatedPtrField* mutable_redirect_uris(); - + void add_redirect_uris(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& redirect_uris() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_redirect_uris(); private: - const ::google::protobuf::RepeatedPtrField& _internal_redirect_uris() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_redirect_uris(); + const std::string& _internal_redirect_uris(int index) const; + std::string* _internal_add_redirect_uris(); + public: + // string org_id = 1 [json_name = "orgId"]; + void clear_org_id(); + const std::string& org_id() const; + template + void set_org_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_org_id(); + PROTOBUF_NODISCARD std::string* release_org_id(); + void set_allocated_org_id(std::string* org_id); + private: + const std::string& _internal_org_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_org_id(const std::string& value); + std::string* _internal_mutable_org_id(); public: - // string application_id = 1 [json_name = "applicationId"]; - void clear_application_id() ; + + // string application_id = 2 [json_name = "applicationId"]; + void clear_application_id(); const std::string& application_id() const; - template - void set_application_id(Arg_&& arg, Args_... args); + template + void set_application_id(ArgT0&& arg0, ArgT... args); std::string* mutable_application_id(); PROTOBUF_NODISCARD std::string* release_application_id(); - void set_allocated_application_id(std::string* value); - + void set_allocated_application_id(std::string* application_id); private: const std::string& _internal_application_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_application_id( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_application_id(const std::string& value); std::string* _internal_mutable_application_id(); - public: - // string application_name = 2 [json_name = "applicationName"]; - void clear_application_name() ; + + // string application_name = 3 [json_name = "applicationName"]; + void clear_application_name(); const std::string& application_name() const; - template - void set_application_name(Arg_&& arg, Args_... args); + template + void set_application_name(ArgT0&& arg0, ArgT... args); std::string* mutable_application_name(); PROTOBUF_NODISCARD std::string* release_application_name(); - void set_allocated_application_name(std::string* value); - + void set_allocated_application_name(std::string* application_name); private: const std::string& _internal_application_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_application_name( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_application_name(const std::string& value); std::string* _internal_mutable_application_name(); - public: - // string client_secret = 3 [json_name = "clientSecret"]; - void clear_client_secret() ; - const std::string& client_secret() const; - template - void set_client_secret(Arg_&& arg, Args_... args); - std::string* mutable_client_secret(); - PROTOBUF_NODISCARD std::string* release_client_secret(); - void set_allocated_client_secret(std::string* value); - - private: - const std::string& _internal_client_secret() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_client_secret( - const std::string& value); - std::string* _internal_mutable_client_secret(); - public: // string logout_uri = 6 [json_name = "logoutUri"]; - void clear_logout_uri() ; + void clear_logout_uri(); const std::string& logout_uri() const; - template - void set_logout_uri(Arg_&& arg, Args_... args); + template + void set_logout_uri(ArgT0&& arg0, ArgT... args); std::string* mutable_logout_uri(); PROTOBUF_NODISCARD std::string* release_logout_uri(); - void set_allocated_logout_uri(std::string* value); - + void set_allocated_logout_uri(std::string* logout_uri); private: const std::string& _internal_logout_uri() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_logout_uri( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_logout_uri(const std::string& value); std::string* _internal_mutable_logout_uri(); - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.GetAuthApplicationResponse) + + // @@protoc_insertion_point(class_scope:viam.app.v1.UpdateAuthApplicationRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 6, 0, - 124, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField origin_uris_; - ::google::protobuf::RepeatedPtrField redirect_uris_; - ::google::protobuf::internal::ArenaStringPtr application_id_; - ::google::protobuf::internal::ArenaStringPtr application_name_; - ::google::protobuf::internal::ArenaStringPtr client_secret_; - ::google::protobuf::internal::ArenaStringPtr logout_uri_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField origin_uris_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField redirect_uris_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr org_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr application_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr application_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr logout_uri_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fend_5fuser_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetAuthApplicationRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetAuthApplicationRequest) */ { +class UpdateAuthApplicationResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.UpdateAuthApplicationResponse) */ { public: - inline GetAuthApplicationRequest() : GetAuthApplicationRequest(nullptr) {} - ~GetAuthApplicationRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetAuthApplicationRequest(::google::protobuf::internal::ConstantInitialized); + inline UpdateAuthApplicationResponse() : UpdateAuthApplicationResponse(nullptr) {} + ~UpdateAuthApplicationResponse() override; + explicit PROTOBUF_CONSTEXPR UpdateAuthApplicationResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetAuthApplicationRequest(const GetAuthApplicationRequest& from) - : GetAuthApplicationRequest(nullptr, from) {} - GetAuthApplicationRequest(GetAuthApplicationRequest&& from) noexcept - : GetAuthApplicationRequest() { + UpdateAuthApplicationResponse(const UpdateAuthApplicationResponse& from); + UpdateAuthApplicationResponse(UpdateAuthApplicationResponse&& from) noexcept + : UpdateAuthApplicationResponse() { *this = ::std::move(from); } - inline GetAuthApplicationRequest& operator=(const GetAuthApplicationRequest& from) { + inline UpdateAuthApplicationResponse& operator=(const UpdateAuthApplicationResponse& from) { CopyFrom(from); return *this; } - inline GetAuthApplicationRequest& operator=(GetAuthApplicationRequest&& from) noexcept { + inline UpdateAuthApplicationResponse& operator=(UpdateAuthApplicationResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1733,195 +1281,161 @@ class GetAuthApplicationRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetAuthApplicationRequest& default_instance() { + static const UpdateAuthApplicationResponse& default_instance() { return *internal_default_instance(); } - static inline const GetAuthApplicationRequest* internal_default_instance() { - return reinterpret_cast( - &_GetAuthApplicationRequest_default_instance_); + static inline const UpdateAuthApplicationResponse* internal_default_instance() { + return reinterpret_cast( + &_UpdateAuthApplicationResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 8; + 7; - friend void swap(GetAuthApplicationRequest& a, GetAuthApplicationRequest& b) { + friend void swap(UpdateAuthApplicationResponse& a, UpdateAuthApplicationResponse& b) { a.Swap(&b); } - inline void Swap(GetAuthApplicationRequest* other) { + inline void Swap(UpdateAuthApplicationResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetAuthApplicationRequest* other) { + void UnsafeArenaSwap(UpdateAuthApplicationResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetAuthApplicationRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetAuthApplicationRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetAuthApplicationRequest& from) { - GetAuthApplicationRequest::MergeImpl(*this, from); + UpdateAuthApplicationResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const UpdateAuthApplicationResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const UpdateAuthApplicationResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetAuthApplicationRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(UpdateAuthApplicationResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.GetAuthApplicationRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.UpdateAuthApplicationResponse"; } protected: - explicit GetAuthApplicationRequest(::google::protobuf::Arena* arena); - GetAuthApplicationRequest(::google::protobuf::Arena* arena, const GetAuthApplicationRequest& from); + explicit UpdateAuthApplicationResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kOrgIdFieldNumber = 1, - kApplicationIdFieldNumber = 2, + kApplicationIdFieldNumber = 1, + kApplicationNameFieldNumber = 2, }; - // string org_id = 1 [json_name = "orgId"]; - void clear_org_id() ; - const std::string& org_id() const; - template - void set_org_id(Arg_&& arg, Args_... args); - std::string* mutable_org_id(); - PROTOBUF_NODISCARD std::string* release_org_id(); - void set_allocated_org_id(std::string* value); - - private: - const std::string& _internal_org_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_org_id( - const std::string& value); - std::string* _internal_mutable_org_id(); - - public: - // string application_id = 2 [json_name = "applicationId"]; - void clear_application_id() ; + // string application_id = 1 [json_name = "applicationId"]; + void clear_application_id(); const std::string& application_id() const; - template - void set_application_id(Arg_&& arg, Args_... args); + template + void set_application_id(ArgT0&& arg0, ArgT... args); std::string* mutable_application_id(); PROTOBUF_NODISCARD std::string* release_application_id(); - void set_allocated_application_id(std::string* value); - + void set_allocated_application_id(std::string* application_id); private: const std::string& _internal_application_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_application_id( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_application_id(const std::string& value); std::string* _internal_mutable_application_id(); + public: + // string application_name = 2 [json_name = "applicationName"]; + void clear_application_name(); + const std::string& application_name() const; + template + void set_application_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_application_name(); + PROTOBUF_NODISCARD std::string* release_application_name(); + void set_allocated_application_name(std::string* application_name); + private: + const std::string& _internal_application_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_application_name(const std::string& value); + std::string* _internal_mutable_application_name(); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.GetAuthApplicationRequest) + + // @@protoc_insertion_point(class_scope:viam.app.v1.UpdateAuthApplicationResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 66, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr org_id_; - ::google::protobuf::internal::ArenaStringPtr application_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr application_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr application_name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fend_5fuser_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class AcceptLegalResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.AcceptLegalResponse) */ { +class GetAuthApplicationRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetAuthApplicationRequest) */ { public: - inline AcceptLegalResponse() : AcceptLegalResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR AcceptLegalResponse(::google::protobuf::internal::ConstantInitialized); + inline GetAuthApplicationRequest() : GetAuthApplicationRequest(nullptr) {} + ~GetAuthApplicationRequest() override; + explicit PROTOBUF_CONSTEXPR GetAuthApplicationRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline AcceptLegalResponse(const AcceptLegalResponse& from) - : AcceptLegalResponse(nullptr, from) {} - AcceptLegalResponse(AcceptLegalResponse&& from) noexcept - : AcceptLegalResponse() { + GetAuthApplicationRequest(const GetAuthApplicationRequest& from); + GetAuthApplicationRequest(GetAuthApplicationRequest&& from) noexcept + : GetAuthApplicationRequest() { *this = ::std::move(from); } - inline AcceptLegalResponse& operator=(const AcceptLegalResponse& from) { + inline GetAuthApplicationRequest& operator=(const GetAuthApplicationRequest& from) { CopyFrom(from); return *this; } - inline AcceptLegalResponse& operator=(AcceptLegalResponse&& from) noexcept { + inline GetAuthApplicationRequest& operator=(GetAuthApplicationRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1931,133 +1445,161 @@ class AcceptLegalResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const AcceptLegalResponse& default_instance() { + static const GetAuthApplicationRequest& default_instance() { return *internal_default_instance(); } - static inline const AcceptLegalResponse* internal_default_instance() { - return reinterpret_cast( - &_AcceptLegalResponse_default_instance_); + static inline const GetAuthApplicationRequest* internal_default_instance() { + return reinterpret_cast( + &_GetAuthApplicationRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 3; + 8; - friend void swap(AcceptLegalResponse& a, AcceptLegalResponse& b) { + friend void swap(GetAuthApplicationRequest& a, GetAuthApplicationRequest& b) { a.Swap(&b); } - inline void Swap(AcceptLegalResponse* other) { + inline void Swap(GetAuthApplicationRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(AcceptLegalResponse* other) { + void UnsafeArenaSwap(GetAuthApplicationRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - AcceptLegalResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const AcceptLegalResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const AcceptLegalResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + GetAuthApplicationRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetAuthApplicationRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetAuthApplicationRequest& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.AcceptLegalResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetAuthApplicationRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.GetAuthApplicationRequest"; } protected: - explicit AcceptLegalResponse(::google::protobuf::Arena* arena); - AcceptLegalResponse(::google::protobuf::Arena* arena, const AcceptLegalResponse& from); + explicit GetAuthApplicationRequest(::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 { + kOrgIdFieldNumber = 1, + kApplicationIdFieldNumber = 2, + }; + // string org_id = 1 [json_name = "orgId"]; + void clear_org_id(); + const std::string& org_id() const; + template + void set_org_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_org_id(); + PROTOBUF_NODISCARD std::string* release_org_id(); + void set_allocated_org_id(std::string* org_id); + private: + const std::string& _internal_org_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_org_id(const std::string& value); + std::string* _internal_mutable_org_id(); + public: + + // string application_id = 2 [json_name = "applicationId"]; + void clear_application_id(); + const std::string& application_id() const; + template + void set_application_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_application_id(); + PROTOBUF_NODISCARD std::string* release_application_id(); + void set_allocated_application_id(std::string* application_id); + private: + const std::string& _internal_application_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_application_id(const std::string& value); + std::string* _internal_mutable_application_id(); public: - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:viam.app.v1.AcceptLegalResponse) + // @@protoc_insertion_point(class_scope:viam.app.v1.GetAuthApplicationRequest) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr org_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr application_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fend_5fuser_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class AcceptLegalRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.AcceptLegalRequest) */ { +class GetAuthApplicationResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.GetAuthApplicationResponse) */ { public: - inline AcceptLegalRequest() : AcceptLegalRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR AcceptLegalRequest(::google::protobuf::internal::ConstantInitialized); + inline GetAuthApplicationResponse() : GetAuthApplicationResponse(nullptr) {} + ~GetAuthApplicationResponse() override; + explicit PROTOBUF_CONSTEXPR GetAuthApplicationResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline AcceptLegalRequest(const AcceptLegalRequest& from) - : AcceptLegalRequest(nullptr, from) {} - AcceptLegalRequest(AcceptLegalRequest&& from) noexcept - : AcceptLegalRequest() { + GetAuthApplicationResponse(const GetAuthApplicationResponse& from); + GetAuthApplicationResponse(GetAuthApplicationResponse&& from) noexcept + : GetAuthApplicationResponse() { *this = ::std::move(from); } - inline AcceptLegalRequest& operator=(const AcceptLegalRequest& from) { + inline GetAuthApplicationResponse& operator=(const GetAuthApplicationResponse& from) { CopyFrom(from); return *this; } - inline AcceptLegalRequest& operator=(AcceptLegalRequest&& from) noexcept { + inline GetAuthApplicationResponse& operator=(GetAuthApplicationResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2067,124 +1609,230 @@ class AcceptLegalRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const AcceptLegalRequest& default_instance() { + static const GetAuthApplicationResponse& default_instance() { return *internal_default_instance(); } - static inline const AcceptLegalRequest* internal_default_instance() { - return reinterpret_cast( - &_AcceptLegalRequest_default_instance_); + static inline const GetAuthApplicationResponse* internal_default_instance() { + return reinterpret_cast( + &_GetAuthApplicationResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 2; + 9; - friend void swap(AcceptLegalRequest& a, AcceptLegalRequest& b) { + friend void swap(GetAuthApplicationResponse& a, GetAuthApplicationResponse& b) { a.Swap(&b); } - inline void Swap(AcceptLegalRequest* other) { + inline void Swap(GetAuthApplicationResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(AcceptLegalRequest* other) { + void UnsafeArenaSwap(GetAuthApplicationResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - AcceptLegalRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const AcceptLegalRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const AcceptLegalRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + GetAuthApplicationResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetAuthApplicationResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetAuthApplicationResponse& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.AcceptLegalRequest"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetAuthApplicationResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.GetAuthApplicationResponse"; } protected: - explicit AcceptLegalRequest(::google::protobuf::Arena* arena); - AcceptLegalRequest(::google::protobuf::Arena* arena, const AcceptLegalRequest& from); + explicit GetAuthApplicationResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.app.v1.AcceptLegalRequest) + enum : int { + kOriginUrisFieldNumber = 4, + kRedirectUrisFieldNumber = 5, + kApplicationIdFieldNumber = 1, + kApplicationNameFieldNumber = 2, + kClientSecretFieldNumber = 3, + kLogoutUriFieldNumber = 6, + }; + // repeated string origin_uris = 4 [json_name = "originUris"]; + int origin_uris_size() const; + private: + int _internal_origin_uris_size() const; + public: + void clear_origin_uris(); + const std::string& origin_uris(int index) const; + std::string* mutable_origin_uris(int index); + void set_origin_uris(int index, const std::string& value); + void set_origin_uris(int index, std::string&& value); + void set_origin_uris(int index, const char* value); + void set_origin_uris(int index, const char* value, size_t size); + std::string* add_origin_uris(); + void add_origin_uris(const std::string& value); + void add_origin_uris(std::string&& value); + void add_origin_uris(const char* value); + void add_origin_uris(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& origin_uris() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_origin_uris(); + private: + const std::string& _internal_origin_uris(int index) const; + std::string* _internal_add_origin_uris(); + public: + + // repeated string redirect_uris = 5 [json_name = "redirectUris"]; + int redirect_uris_size() const; + private: + int _internal_redirect_uris_size() const; + public: + void clear_redirect_uris(); + const std::string& redirect_uris(int index) const; + std::string* mutable_redirect_uris(int index); + void set_redirect_uris(int index, const std::string& value); + void set_redirect_uris(int index, std::string&& value); + void set_redirect_uris(int index, const char* value); + void set_redirect_uris(int index, const char* value, size_t size); + std::string* add_redirect_uris(); + void add_redirect_uris(const std::string& value); + void add_redirect_uris(std::string&& value); + void add_redirect_uris(const char* value); + void add_redirect_uris(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& redirect_uris() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_redirect_uris(); + private: + const std::string& _internal_redirect_uris(int index) const; + std::string* _internal_add_redirect_uris(); + public: + + // string application_id = 1 [json_name = "applicationId"]; + void clear_application_id(); + const std::string& application_id() const; + template + void set_application_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_application_id(); + PROTOBUF_NODISCARD std::string* release_application_id(); + void set_allocated_application_id(std::string* application_id); + private: + const std::string& _internal_application_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_application_id(const std::string& value); + std::string* _internal_mutable_application_id(); + public: + + // string application_name = 2 [json_name = "applicationName"]; + void clear_application_name(); + const std::string& application_name() const; + template + void set_application_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_application_name(); + PROTOBUF_NODISCARD std::string* release_application_name(); + void set_allocated_application_name(std::string* application_name); + private: + const std::string& _internal_application_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_application_name(const std::string& value); + std::string* _internal_mutable_application_name(); + public: + + // string client_secret = 3 [json_name = "clientSecret"]; + void clear_client_secret(); + const std::string& client_secret() const; + template + void set_client_secret(ArgT0&& arg0, ArgT... args); + std::string* mutable_client_secret(); + PROTOBUF_NODISCARD std::string* release_client_secret(); + void set_allocated_client_secret(std::string* client_secret); + private: + const std::string& _internal_client_secret() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_client_secret(const std::string& value); + std::string* _internal_mutable_client_secret(); + public: + + // string logout_uri = 6 [json_name = "logoutUri"]; + void clear_logout_uri(); + const std::string& logout_uri() const; + template + void set_logout_uri(ArgT0&& arg0, ArgT... args); + std::string* mutable_logout_uri(); + PROTOBUF_NODISCARD std::string* release_logout_uri(); + void set_allocated_logout_uri(std::string* logout_uri); + private: + const std::string& _internal_logout_uri() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_logout_uri(const std::string& value); + std::string* _internal_mutable_logout_uri(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.GetAuthApplicationResponse) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField origin_uris_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField redirect_uris_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr application_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr application_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr client_secret_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr logout_uri_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2fend_5fuser_2eproto; }; - // =================================================================== - - // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ -// ------------------------------------------------------------------- - // IsLegalAcceptedRequest // ------------------------------------------------------------------- @@ -2193,26 +1841,23 @@ class AcceptLegalRequest final : // bool accepted_legal = 1 [json_name = "acceptedLegal"]; inline void IsLegalAcceptedResponse::clear_accepted_legal() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.accepted_legal_ = false; + accepted_legal_ = false; +} +inline bool IsLegalAcceptedResponse::_internal_accepted_legal() const { + return accepted_legal_; } inline bool IsLegalAcceptedResponse::accepted_legal() const { // @@protoc_insertion_point(field_get:viam.app.v1.IsLegalAcceptedResponse.accepted_legal) return _internal_accepted_legal(); } +inline void IsLegalAcceptedResponse::_internal_set_accepted_legal(bool value) { + + accepted_legal_ = value; +} inline void IsLegalAcceptedResponse::set_accepted_legal(bool value) { _internal_set_accepted_legal(value); // @@protoc_insertion_point(field_set:viam.app.v1.IsLegalAcceptedResponse.accepted_legal) } -inline bool IsLegalAcceptedResponse::_internal_accepted_legal() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.accepted_legal_; -} -inline void IsLegalAcceptedResponse::_internal_set_accepted_legal(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.accepted_legal_ = value; -} // ------------------------------------------------------------------- @@ -2228,362 +1873,301 @@ inline void IsLegalAcceptedResponse::_internal_set_accepted_legal(bool value) { // string application_name = 1 [json_name = "applicationName"]; inline void RegisterAuthApplicationRequest::clear_application_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.application_name_.ClearToEmpty(); + application_name_.ClearToEmpty(); } -inline const std::string& RegisterAuthApplicationRequest::application_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& RegisterAuthApplicationRequest::application_name() const { // @@protoc_insertion_point(field_get:viam.app.v1.RegisterAuthApplicationRequest.application_name) return _internal_application_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void RegisterAuthApplicationRequest::set_application_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.application_name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void RegisterAuthApplicationRequest::set_application_name(ArgT0&& arg0, ArgT... args) { + + application_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.RegisterAuthApplicationRequest.application_name) } -inline std::string* RegisterAuthApplicationRequest::mutable_application_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* RegisterAuthApplicationRequest::mutable_application_name() { std::string* _s = _internal_mutable_application_name(); // @@protoc_insertion_point(field_mutable:viam.app.v1.RegisterAuthApplicationRequest.application_name) return _s; } inline const std::string& RegisterAuthApplicationRequest::_internal_application_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.application_name_.Get(); + return application_name_.Get(); } inline void RegisterAuthApplicationRequest::_internal_set_application_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.application_name_.Set(value, GetArena()); + + application_name_.Set(value, GetArenaForAllocation()); } inline std::string* RegisterAuthApplicationRequest::_internal_mutable_application_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.application_name_.Mutable( GetArena()); + + return application_name_.Mutable(GetArenaForAllocation()); } inline std::string* RegisterAuthApplicationRequest::release_application_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.RegisterAuthApplicationRequest.application_name) - return _impl_.application_name_.Release(); -} -inline void RegisterAuthApplicationRequest::set_allocated_application_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.application_name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.application_name_.IsDefault()) { - _impl_.application_name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return application_name_.Release(); +} +inline void RegisterAuthApplicationRequest::set_allocated_application_name(std::string* application_name) { + if (application_name != nullptr) { + + } else { + + } + application_name_.SetAllocated(application_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (application_name_.IsDefault()) { + application_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RegisterAuthApplicationRequest.application_name) } // string org_id = 2 [json_name = "orgId"]; inline void RegisterAuthApplicationRequest::clear_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.org_id_.ClearToEmpty(); + org_id_.ClearToEmpty(); } -inline const std::string& RegisterAuthApplicationRequest::org_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& RegisterAuthApplicationRequest::org_id() const { // @@protoc_insertion_point(field_get:viam.app.v1.RegisterAuthApplicationRequest.org_id) return _internal_org_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void RegisterAuthApplicationRequest::set_org_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.org_id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void RegisterAuthApplicationRequest::set_org_id(ArgT0&& arg0, ArgT... args) { + + org_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.RegisterAuthApplicationRequest.org_id) } -inline std::string* RegisterAuthApplicationRequest::mutable_org_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* RegisterAuthApplicationRequest::mutable_org_id() { std::string* _s = _internal_mutable_org_id(); // @@protoc_insertion_point(field_mutable:viam.app.v1.RegisterAuthApplicationRequest.org_id) return _s; } inline const std::string& RegisterAuthApplicationRequest::_internal_org_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.org_id_.Get(); + return org_id_.Get(); } inline void RegisterAuthApplicationRequest::_internal_set_org_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.org_id_.Set(value, GetArena()); + + org_id_.Set(value, GetArenaForAllocation()); } inline std::string* RegisterAuthApplicationRequest::_internal_mutable_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.org_id_.Mutable( GetArena()); + + return org_id_.Mutable(GetArenaForAllocation()); } inline std::string* RegisterAuthApplicationRequest::release_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.RegisterAuthApplicationRequest.org_id) - return _impl_.org_id_.Release(); -} -inline void RegisterAuthApplicationRequest::set_allocated_org_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.org_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.org_id_.IsDefault()) { - _impl_.org_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return org_id_.Release(); +} +inline void RegisterAuthApplicationRequest::set_allocated_org_id(std::string* org_id) { + if (org_id != nullptr) { + + } else { + + } + org_id_.SetAllocated(org_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (org_id_.IsDefault()) { + org_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RegisterAuthApplicationRequest.org_id) } // repeated string origin_uris = 3 [json_name = "originUris"]; inline int RegisterAuthApplicationRequest::_internal_origin_uris_size() const { - return _internal_origin_uris().size(); + return origin_uris_.size(); } inline int RegisterAuthApplicationRequest::origin_uris_size() const { return _internal_origin_uris_size(); } inline void RegisterAuthApplicationRequest::clear_origin_uris() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.origin_uris_.Clear(); + origin_uris_.Clear(); } -inline std::string* RegisterAuthApplicationRequest::add_origin_uris() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_origin_uris()->Add(); +inline std::string* RegisterAuthApplicationRequest::add_origin_uris() { + std::string* _s = _internal_add_origin_uris(); // @@protoc_insertion_point(field_add_mutable:viam.app.v1.RegisterAuthApplicationRequest.origin_uris) return _s; } -inline const std::string& RegisterAuthApplicationRequest::origin_uris(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& RegisterAuthApplicationRequest::_internal_origin_uris(int index) const { + return origin_uris_.Get(index); +} +inline const std::string& RegisterAuthApplicationRequest::origin_uris(int index) const { // @@protoc_insertion_point(field_get:viam.app.v1.RegisterAuthApplicationRequest.origin_uris) - return _internal_origin_uris().Get(index); + return _internal_origin_uris(index); } -inline std::string* RegisterAuthApplicationRequest::mutable_origin_uris(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* RegisterAuthApplicationRequest::mutable_origin_uris(int index) { // @@protoc_insertion_point(field_mutable:viam.app.v1.RegisterAuthApplicationRequest.origin_uris) - return _internal_mutable_origin_uris()->Mutable(index); + return origin_uris_.Mutable(index); } inline void RegisterAuthApplicationRequest::set_origin_uris(int index, const std::string& value) { - _internal_mutable_origin_uris()->Mutable(index)->assign(value); + origin_uris_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set:viam.app.v1.RegisterAuthApplicationRequest.origin_uris) } inline void RegisterAuthApplicationRequest::set_origin_uris(int index, std::string&& value) { - _internal_mutable_origin_uris()->Mutable(index)->assign(std::move(value)); + origin_uris_.Mutable(index)->assign(std::move(value)); // @@protoc_insertion_point(field_set:viam.app.v1.RegisterAuthApplicationRequest.origin_uris) } inline void RegisterAuthApplicationRequest::set_origin_uris(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_origin_uris()->Mutable(index)->assign(value); + GOOGLE_DCHECK(value != nullptr); + origin_uris_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:viam.app.v1.RegisterAuthApplicationRequest.origin_uris) } -inline void RegisterAuthApplicationRequest::set_origin_uris(int index, const char* value, - std::size_t size) { - _internal_mutable_origin_uris()->Mutable(index)->assign( - reinterpret_cast(value), size); +inline void RegisterAuthApplicationRequest::set_origin_uris(int index, const char* value, size_t size) { + origin_uris_.Mutable(index)->assign( + reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:viam.app.v1.RegisterAuthApplicationRequest.origin_uris) } -inline void RegisterAuthApplicationRequest::set_origin_uris(int index, absl::string_view value) { - _internal_mutable_origin_uris()->Mutable(index)->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_set_string_piece:viam.app.v1.RegisterAuthApplicationRequest.origin_uris) +inline std::string* RegisterAuthApplicationRequest::_internal_add_origin_uris() { + return origin_uris_.Add(); } inline void RegisterAuthApplicationRequest::add_origin_uris(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_origin_uris()->Add()->assign(value); + origin_uris_.Add()->assign(value); // @@protoc_insertion_point(field_add:viam.app.v1.RegisterAuthApplicationRequest.origin_uris) } inline void RegisterAuthApplicationRequest::add_origin_uris(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_origin_uris()->Add(std::move(value)); + origin_uris_.Add(std::move(value)); // @@protoc_insertion_point(field_add:viam.app.v1.RegisterAuthApplicationRequest.origin_uris) } inline void RegisterAuthApplicationRequest::add_origin_uris(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_origin_uris()->Add()->assign(value); + GOOGLE_DCHECK(value != nullptr); + origin_uris_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:viam.app.v1.RegisterAuthApplicationRequest.origin_uris) } -inline void RegisterAuthApplicationRequest::add_origin_uris(const char* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_origin_uris()->Add()->assign( - reinterpret_cast(value), size); +inline void RegisterAuthApplicationRequest::add_origin_uris(const char* value, size_t size) { + origin_uris_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:viam.app.v1.RegisterAuthApplicationRequest.origin_uris) } -inline void RegisterAuthApplicationRequest::add_origin_uris(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_origin_uris()->Add()->assign(value.data(), value.size()); - // @@protoc_insertion_point(field_add_string_piece:viam.app.v1.RegisterAuthApplicationRequest.origin_uris) -} -inline const ::google::protobuf::RepeatedPtrField& -RegisterAuthApplicationRequest::origin_uris() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +RegisterAuthApplicationRequest::origin_uris() const { // @@protoc_insertion_point(field_list:viam.app.v1.RegisterAuthApplicationRequest.origin_uris) - return _internal_origin_uris(); + return origin_uris_; } -inline ::google::protobuf::RepeatedPtrField* -RegisterAuthApplicationRequest::mutable_origin_uris() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +RegisterAuthApplicationRequest::mutable_origin_uris() { // @@protoc_insertion_point(field_mutable_list:viam.app.v1.RegisterAuthApplicationRequest.origin_uris) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_origin_uris(); -} -inline const ::google::protobuf::RepeatedPtrField& -RegisterAuthApplicationRequest::_internal_origin_uris() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.origin_uris_; -} -inline ::google::protobuf::RepeatedPtrField* -RegisterAuthApplicationRequest::_internal_mutable_origin_uris() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.origin_uris_; + return &origin_uris_; } // repeated string redirect_uris = 4 [json_name = "redirectUris"]; inline int RegisterAuthApplicationRequest::_internal_redirect_uris_size() const { - return _internal_redirect_uris().size(); + return redirect_uris_.size(); } inline int RegisterAuthApplicationRequest::redirect_uris_size() const { return _internal_redirect_uris_size(); } inline void RegisterAuthApplicationRequest::clear_redirect_uris() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.redirect_uris_.Clear(); + redirect_uris_.Clear(); } -inline std::string* RegisterAuthApplicationRequest::add_redirect_uris() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_redirect_uris()->Add(); +inline std::string* RegisterAuthApplicationRequest::add_redirect_uris() { + std::string* _s = _internal_add_redirect_uris(); // @@protoc_insertion_point(field_add_mutable:viam.app.v1.RegisterAuthApplicationRequest.redirect_uris) return _s; } -inline const std::string& RegisterAuthApplicationRequest::redirect_uris(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& RegisterAuthApplicationRequest::_internal_redirect_uris(int index) const { + return redirect_uris_.Get(index); +} +inline const std::string& RegisterAuthApplicationRequest::redirect_uris(int index) const { // @@protoc_insertion_point(field_get:viam.app.v1.RegisterAuthApplicationRequest.redirect_uris) - return _internal_redirect_uris().Get(index); + return _internal_redirect_uris(index); } -inline std::string* RegisterAuthApplicationRequest::mutable_redirect_uris(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* RegisterAuthApplicationRequest::mutable_redirect_uris(int index) { // @@protoc_insertion_point(field_mutable:viam.app.v1.RegisterAuthApplicationRequest.redirect_uris) - return _internal_mutable_redirect_uris()->Mutable(index); + return redirect_uris_.Mutable(index); } inline void RegisterAuthApplicationRequest::set_redirect_uris(int index, const std::string& value) { - _internal_mutable_redirect_uris()->Mutable(index)->assign(value); + redirect_uris_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set:viam.app.v1.RegisterAuthApplicationRequest.redirect_uris) } inline void RegisterAuthApplicationRequest::set_redirect_uris(int index, std::string&& value) { - _internal_mutable_redirect_uris()->Mutable(index)->assign(std::move(value)); + redirect_uris_.Mutable(index)->assign(std::move(value)); // @@protoc_insertion_point(field_set:viam.app.v1.RegisterAuthApplicationRequest.redirect_uris) } inline void RegisterAuthApplicationRequest::set_redirect_uris(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_redirect_uris()->Mutable(index)->assign(value); + GOOGLE_DCHECK(value != nullptr); + redirect_uris_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:viam.app.v1.RegisterAuthApplicationRequest.redirect_uris) } -inline void RegisterAuthApplicationRequest::set_redirect_uris(int index, const char* value, - std::size_t size) { - _internal_mutable_redirect_uris()->Mutable(index)->assign( - reinterpret_cast(value), size); +inline void RegisterAuthApplicationRequest::set_redirect_uris(int index, const char* value, size_t size) { + redirect_uris_.Mutable(index)->assign( + reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:viam.app.v1.RegisterAuthApplicationRequest.redirect_uris) } -inline void RegisterAuthApplicationRequest::set_redirect_uris(int index, absl::string_view value) { - _internal_mutable_redirect_uris()->Mutable(index)->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_set_string_piece:viam.app.v1.RegisterAuthApplicationRequest.redirect_uris) +inline std::string* RegisterAuthApplicationRequest::_internal_add_redirect_uris() { + return redirect_uris_.Add(); } inline void RegisterAuthApplicationRequest::add_redirect_uris(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_redirect_uris()->Add()->assign(value); + redirect_uris_.Add()->assign(value); // @@protoc_insertion_point(field_add:viam.app.v1.RegisterAuthApplicationRequest.redirect_uris) } inline void RegisterAuthApplicationRequest::add_redirect_uris(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_redirect_uris()->Add(std::move(value)); + redirect_uris_.Add(std::move(value)); // @@protoc_insertion_point(field_add:viam.app.v1.RegisterAuthApplicationRequest.redirect_uris) } inline void RegisterAuthApplicationRequest::add_redirect_uris(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_redirect_uris()->Add()->assign(value); + GOOGLE_DCHECK(value != nullptr); + redirect_uris_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:viam.app.v1.RegisterAuthApplicationRequest.redirect_uris) } -inline void RegisterAuthApplicationRequest::add_redirect_uris(const char* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_redirect_uris()->Add()->assign( - reinterpret_cast(value), size); +inline void RegisterAuthApplicationRequest::add_redirect_uris(const char* value, size_t size) { + redirect_uris_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:viam.app.v1.RegisterAuthApplicationRequest.redirect_uris) } -inline void RegisterAuthApplicationRequest::add_redirect_uris(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_redirect_uris()->Add()->assign(value.data(), value.size()); - // @@protoc_insertion_point(field_add_string_piece:viam.app.v1.RegisterAuthApplicationRequest.redirect_uris) -} -inline const ::google::protobuf::RepeatedPtrField& -RegisterAuthApplicationRequest::redirect_uris() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +RegisterAuthApplicationRequest::redirect_uris() const { // @@protoc_insertion_point(field_list:viam.app.v1.RegisterAuthApplicationRequest.redirect_uris) - return _internal_redirect_uris(); + return redirect_uris_; } -inline ::google::protobuf::RepeatedPtrField* -RegisterAuthApplicationRequest::mutable_redirect_uris() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +RegisterAuthApplicationRequest::mutable_redirect_uris() { // @@protoc_insertion_point(field_mutable_list:viam.app.v1.RegisterAuthApplicationRequest.redirect_uris) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_redirect_uris(); -} -inline const ::google::protobuf::RepeatedPtrField& -RegisterAuthApplicationRequest::_internal_redirect_uris() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.redirect_uris_; -} -inline ::google::protobuf::RepeatedPtrField* -RegisterAuthApplicationRequest::_internal_mutable_redirect_uris() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.redirect_uris_; + return &redirect_uris_; } // string logout_uri = 5 [json_name = "logoutUri"]; inline void RegisterAuthApplicationRequest::clear_logout_uri() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.logout_uri_.ClearToEmpty(); + logout_uri_.ClearToEmpty(); } -inline const std::string& RegisterAuthApplicationRequest::logout_uri() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& RegisterAuthApplicationRequest::logout_uri() const { // @@protoc_insertion_point(field_get:viam.app.v1.RegisterAuthApplicationRequest.logout_uri) return _internal_logout_uri(); } -template -inline PROTOBUF_ALWAYS_INLINE void RegisterAuthApplicationRequest::set_logout_uri(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.logout_uri_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void RegisterAuthApplicationRequest::set_logout_uri(ArgT0&& arg0, ArgT... args) { + + logout_uri_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.RegisterAuthApplicationRequest.logout_uri) } -inline std::string* RegisterAuthApplicationRequest::mutable_logout_uri() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* RegisterAuthApplicationRequest::mutable_logout_uri() { std::string* _s = _internal_mutable_logout_uri(); // @@protoc_insertion_point(field_mutable:viam.app.v1.RegisterAuthApplicationRequest.logout_uri) return _s; } inline const std::string& RegisterAuthApplicationRequest::_internal_logout_uri() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.logout_uri_.Get(); + return logout_uri_.Get(); } inline void RegisterAuthApplicationRequest::_internal_set_logout_uri(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.logout_uri_.Set(value, GetArena()); + + logout_uri_.Set(value, GetArenaForAllocation()); } inline std::string* RegisterAuthApplicationRequest::_internal_mutable_logout_uri() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.logout_uri_.Mutable( GetArena()); + + return logout_uri_.Mutable(GetArenaForAllocation()); } inline std::string* RegisterAuthApplicationRequest::release_logout_uri() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.RegisterAuthApplicationRequest.logout_uri) - return _impl_.logout_uri_.Release(); -} -inline void RegisterAuthApplicationRequest::set_allocated_logout_uri(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.logout_uri_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.logout_uri_.IsDefault()) { - _impl_.logout_uri_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return logout_uri_.Release(); +} +inline void RegisterAuthApplicationRequest::set_allocated_logout_uri(std::string* logout_uri) { + if (logout_uri != nullptr) { + + } else { + + } + logout_uri_.SetAllocated(logout_uri, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (logout_uri_.IsDefault()) { + logout_uri_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RegisterAuthApplicationRequest.logout_uri) } @@ -2593,160 +2177,151 @@ inline void RegisterAuthApplicationRequest::set_allocated_logout_uri(std::string // string application_id = 1 [json_name = "applicationId"]; inline void RegisterAuthApplicationResponse::clear_application_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.application_id_.ClearToEmpty(); + application_id_.ClearToEmpty(); } -inline const std::string& RegisterAuthApplicationResponse::application_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& RegisterAuthApplicationResponse::application_id() const { // @@protoc_insertion_point(field_get:viam.app.v1.RegisterAuthApplicationResponse.application_id) return _internal_application_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void RegisterAuthApplicationResponse::set_application_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.application_id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void RegisterAuthApplicationResponse::set_application_id(ArgT0&& arg0, ArgT... args) { + + application_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.RegisterAuthApplicationResponse.application_id) } -inline std::string* RegisterAuthApplicationResponse::mutable_application_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* RegisterAuthApplicationResponse::mutable_application_id() { std::string* _s = _internal_mutable_application_id(); // @@protoc_insertion_point(field_mutable:viam.app.v1.RegisterAuthApplicationResponse.application_id) return _s; } inline const std::string& RegisterAuthApplicationResponse::_internal_application_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.application_id_.Get(); + return application_id_.Get(); } inline void RegisterAuthApplicationResponse::_internal_set_application_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.application_id_.Set(value, GetArena()); + + application_id_.Set(value, GetArenaForAllocation()); } inline std::string* RegisterAuthApplicationResponse::_internal_mutable_application_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.application_id_.Mutable( GetArena()); + + return application_id_.Mutable(GetArenaForAllocation()); } inline std::string* RegisterAuthApplicationResponse::release_application_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.RegisterAuthApplicationResponse.application_id) - return _impl_.application_id_.Release(); -} -inline void RegisterAuthApplicationResponse::set_allocated_application_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.application_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.application_id_.IsDefault()) { - _impl_.application_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return application_id_.Release(); +} +inline void RegisterAuthApplicationResponse::set_allocated_application_id(std::string* application_id) { + if (application_id != nullptr) { + + } else { + + } + application_id_.SetAllocated(application_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (application_id_.IsDefault()) { + application_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RegisterAuthApplicationResponse.application_id) } // string application_name = 2 [json_name = "applicationName"]; inline void RegisterAuthApplicationResponse::clear_application_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.application_name_.ClearToEmpty(); + application_name_.ClearToEmpty(); } -inline const std::string& RegisterAuthApplicationResponse::application_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& RegisterAuthApplicationResponse::application_name() const { // @@protoc_insertion_point(field_get:viam.app.v1.RegisterAuthApplicationResponse.application_name) return _internal_application_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void RegisterAuthApplicationResponse::set_application_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.application_name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void RegisterAuthApplicationResponse::set_application_name(ArgT0&& arg0, ArgT... args) { + + application_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.RegisterAuthApplicationResponse.application_name) } -inline std::string* RegisterAuthApplicationResponse::mutable_application_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* RegisterAuthApplicationResponse::mutable_application_name() { std::string* _s = _internal_mutable_application_name(); // @@protoc_insertion_point(field_mutable:viam.app.v1.RegisterAuthApplicationResponse.application_name) return _s; } inline const std::string& RegisterAuthApplicationResponse::_internal_application_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.application_name_.Get(); + return application_name_.Get(); } inline void RegisterAuthApplicationResponse::_internal_set_application_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.application_name_.Set(value, GetArena()); + + application_name_.Set(value, GetArenaForAllocation()); } inline std::string* RegisterAuthApplicationResponse::_internal_mutable_application_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.application_name_.Mutable( GetArena()); + + return application_name_.Mutable(GetArenaForAllocation()); } inline std::string* RegisterAuthApplicationResponse::release_application_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.RegisterAuthApplicationResponse.application_name) - return _impl_.application_name_.Release(); -} -inline void RegisterAuthApplicationResponse::set_allocated_application_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.application_name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.application_name_.IsDefault()) { - _impl_.application_name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return application_name_.Release(); +} +inline void RegisterAuthApplicationResponse::set_allocated_application_name(std::string* application_name) { + if (application_name != nullptr) { + + } else { + + } + application_name_.SetAllocated(application_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (application_name_.IsDefault()) { + application_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RegisterAuthApplicationResponse.application_name) } // string client_secret = 3 [json_name = "clientSecret"]; inline void RegisterAuthApplicationResponse::clear_client_secret() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.client_secret_.ClearToEmpty(); + client_secret_.ClearToEmpty(); } -inline const std::string& RegisterAuthApplicationResponse::client_secret() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& RegisterAuthApplicationResponse::client_secret() const { // @@protoc_insertion_point(field_get:viam.app.v1.RegisterAuthApplicationResponse.client_secret) return _internal_client_secret(); } -template -inline PROTOBUF_ALWAYS_INLINE void RegisterAuthApplicationResponse::set_client_secret(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.client_secret_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void RegisterAuthApplicationResponse::set_client_secret(ArgT0&& arg0, ArgT... args) { + + client_secret_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.RegisterAuthApplicationResponse.client_secret) } -inline std::string* RegisterAuthApplicationResponse::mutable_client_secret() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* RegisterAuthApplicationResponse::mutable_client_secret() { std::string* _s = _internal_mutable_client_secret(); // @@protoc_insertion_point(field_mutable:viam.app.v1.RegisterAuthApplicationResponse.client_secret) return _s; } inline const std::string& RegisterAuthApplicationResponse::_internal_client_secret() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.client_secret_.Get(); + return client_secret_.Get(); } inline void RegisterAuthApplicationResponse::_internal_set_client_secret(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.client_secret_.Set(value, GetArena()); + + client_secret_.Set(value, GetArenaForAllocation()); } inline std::string* RegisterAuthApplicationResponse::_internal_mutable_client_secret() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.client_secret_.Mutable( GetArena()); + + return client_secret_.Mutable(GetArenaForAllocation()); } inline std::string* RegisterAuthApplicationResponse::release_client_secret() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.RegisterAuthApplicationResponse.client_secret) - return _impl_.client_secret_.Release(); -} -inline void RegisterAuthApplicationResponse::set_allocated_client_secret(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.client_secret_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.client_secret_.IsDefault()) { - _impl_.client_secret_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return client_secret_.Release(); +} +inline void RegisterAuthApplicationResponse::set_allocated_client_secret(std::string* client_secret) { + if (client_secret != nullptr) { + + } else { + + } + client_secret_.SetAllocated(client_secret, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (client_secret_.IsDefault()) { + client_secret_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RegisterAuthApplicationResponse.client_secret) } @@ -2756,415 +2331,351 @@ inline void RegisterAuthApplicationResponse::set_allocated_client_secret(std::st // string org_id = 1 [json_name = "orgId"]; inline void UpdateAuthApplicationRequest::clear_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.org_id_.ClearToEmpty(); + org_id_.ClearToEmpty(); } -inline const std::string& UpdateAuthApplicationRequest::org_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& UpdateAuthApplicationRequest::org_id() const { // @@protoc_insertion_point(field_get:viam.app.v1.UpdateAuthApplicationRequest.org_id) return _internal_org_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void UpdateAuthApplicationRequest::set_org_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.org_id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void UpdateAuthApplicationRequest::set_org_id(ArgT0&& arg0, ArgT... args) { + + org_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.UpdateAuthApplicationRequest.org_id) } -inline std::string* UpdateAuthApplicationRequest::mutable_org_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* UpdateAuthApplicationRequest::mutable_org_id() { std::string* _s = _internal_mutable_org_id(); // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateAuthApplicationRequest.org_id) return _s; } inline const std::string& UpdateAuthApplicationRequest::_internal_org_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.org_id_.Get(); + return org_id_.Get(); } inline void UpdateAuthApplicationRequest::_internal_set_org_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.org_id_.Set(value, GetArena()); + + org_id_.Set(value, GetArenaForAllocation()); } inline std::string* UpdateAuthApplicationRequest::_internal_mutable_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.org_id_.Mutable( GetArena()); + + return org_id_.Mutable(GetArenaForAllocation()); } inline std::string* UpdateAuthApplicationRequest::release_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.UpdateAuthApplicationRequest.org_id) - return _impl_.org_id_.Release(); -} -inline void UpdateAuthApplicationRequest::set_allocated_org_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.org_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.org_id_.IsDefault()) { - _impl_.org_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return org_id_.Release(); +} +inline void UpdateAuthApplicationRequest::set_allocated_org_id(std::string* org_id) { + if (org_id != nullptr) { + + } else { + + } + org_id_.SetAllocated(org_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (org_id_.IsDefault()) { + org_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateAuthApplicationRequest.org_id) } // string application_id = 2 [json_name = "applicationId"]; inline void UpdateAuthApplicationRequest::clear_application_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.application_id_.ClearToEmpty(); + application_id_.ClearToEmpty(); } -inline const std::string& UpdateAuthApplicationRequest::application_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& UpdateAuthApplicationRequest::application_id() const { // @@protoc_insertion_point(field_get:viam.app.v1.UpdateAuthApplicationRequest.application_id) return _internal_application_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void UpdateAuthApplicationRequest::set_application_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.application_id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void UpdateAuthApplicationRequest::set_application_id(ArgT0&& arg0, ArgT... args) { + + application_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.UpdateAuthApplicationRequest.application_id) } -inline std::string* UpdateAuthApplicationRequest::mutable_application_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* UpdateAuthApplicationRequest::mutable_application_id() { std::string* _s = _internal_mutable_application_id(); // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateAuthApplicationRequest.application_id) return _s; } inline const std::string& UpdateAuthApplicationRequest::_internal_application_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.application_id_.Get(); + return application_id_.Get(); } inline void UpdateAuthApplicationRequest::_internal_set_application_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.application_id_.Set(value, GetArena()); + + application_id_.Set(value, GetArenaForAllocation()); } inline std::string* UpdateAuthApplicationRequest::_internal_mutable_application_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.application_id_.Mutable( GetArena()); + + return application_id_.Mutable(GetArenaForAllocation()); } inline std::string* UpdateAuthApplicationRequest::release_application_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.UpdateAuthApplicationRequest.application_id) - return _impl_.application_id_.Release(); -} -inline void UpdateAuthApplicationRequest::set_allocated_application_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.application_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.application_id_.IsDefault()) { - _impl_.application_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return application_id_.Release(); +} +inline void UpdateAuthApplicationRequest::set_allocated_application_id(std::string* application_id) { + if (application_id != nullptr) { + + } else { + + } + application_id_.SetAllocated(application_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (application_id_.IsDefault()) { + application_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateAuthApplicationRequest.application_id) } // string application_name = 3 [json_name = "applicationName"]; inline void UpdateAuthApplicationRequest::clear_application_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.application_name_.ClearToEmpty(); + application_name_.ClearToEmpty(); } -inline const std::string& UpdateAuthApplicationRequest::application_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& UpdateAuthApplicationRequest::application_name() const { // @@protoc_insertion_point(field_get:viam.app.v1.UpdateAuthApplicationRequest.application_name) return _internal_application_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void UpdateAuthApplicationRequest::set_application_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.application_name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void UpdateAuthApplicationRequest::set_application_name(ArgT0&& arg0, ArgT... args) { + + application_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.UpdateAuthApplicationRequest.application_name) } -inline std::string* UpdateAuthApplicationRequest::mutable_application_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* UpdateAuthApplicationRequest::mutable_application_name() { std::string* _s = _internal_mutable_application_name(); // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateAuthApplicationRequest.application_name) return _s; } inline const std::string& UpdateAuthApplicationRequest::_internal_application_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.application_name_.Get(); + return application_name_.Get(); } inline void UpdateAuthApplicationRequest::_internal_set_application_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.application_name_.Set(value, GetArena()); + + application_name_.Set(value, GetArenaForAllocation()); } inline std::string* UpdateAuthApplicationRequest::_internal_mutable_application_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.application_name_.Mutable( GetArena()); + + return application_name_.Mutable(GetArenaForAllocation()); } inline std::string* UpdateAuthApplicationRequest::release_application_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.UpdateAuthApplicationRequest.application_name) - return _impl_.application_name_.Release(); -} -inline void UpdateAuthApplicationRequest::set_allocated_application_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.application_name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.application_name_.IsDefault()) { - _impl_.application_name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return application_name_.Release(); +} +inline void UpdateAuthApplicationRequest::set_allocated_application_name(std::string* application_name) { + if (application_name != nullptr) { + + } else { + + } + application_name_.SetAllocated(application_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (application_name_.IsDefault()) { + application_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateAuthApplicationRequest.application_name) } // repeated string origin_uris = 4 [json_name = "originUris"]; inline int UpdateAuthApplicationRequest::_internal_origin_uris_size() const { - return _internal_origin_uris().size(); + return origin_uris_.size(); } inline int UpdateAuthApplicationRequest::origin_uris_size() const { return _internal_origin_uris_size(); } inline void UpdateAuthApplicationRequest::clear_origin_uris() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.origin_uris_.Clear(); + origin_uris_.Clear(); } -inline std::string* UpdateAuthApplicationRequest::add_origin_uris() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_origin_uris()->Add(); +inline std::string* UpdateAuthApplicationRequest::add_origin_uris() { + std::string* _s = _internal_add_origin_uris(); // @@protoc_insertion_point(field_add_mutable:viam.app.v1.UpdateAuthApplicationRequest.origin_uris) return _s; } -inline const std::string& UpdateAuthApplicationRequest::origin_uris(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& UpdateAuthApplicationRequest::_internal_origin_uris(int index) const { + return origin_uris_.Get(index); +} +inline const std::string& UpdateAuthApplicationRequest::origin_uris(int index) const { // @@protoc_insertion_point(field_get:viam.app.v1.UpdateAuthApplicationRequest.origin_uris) - return _internal_origin_uris().Get(index); + return _internal_origin_uris(index); } -inline std::string* UpdateAuthApplicationRequest::mutable_origin_uris(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* UpdateAuthApplicationRequest::mutable_origin_uris(int index) { // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateAuthApplicationRequest.origin_uris) - return _internal_mutable_origin_uris()->Mutable(index); + return origin_uris_.Mutable(index); } inline void UpdateAuthApplicationRequest::set_origin_uris(int index, const std::string& value) { - _internal_mutable_origin_uris()->Mutable(index)->assign(value); + origin_uris_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set:viam.app.v1.UpdateAuthApplicationRequest.origin_uris) } inline void UpdateAuthApplicationRequest::set_origin_uris(int index, std::string&& value) { - _internal_mutable_origin_uris()->Mutable(index)->assign(std::move(value)); + origin_uris_.Mutable(index)->assign(std::move(value)); // @@protoc_insertion_point(field_set:viam.app.v1.UpdateAuthApplicationRequest.origin_uris) } inline void UpdateAuthApplicationRequest::set_origin_uris(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_origin_uris()->Mutable(index)->assign(value); + GOOGLE_DCHECK(value != nullptr); + origin_uris_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:viam.app.v1.UpdateAuthApplicationRequest.origin_uris) } -inline void UpdateAuthApplicationRequest::set_origin_uris(int index, const char* value, - std::size_t size) { - _internal_mutable_origin_uris()->Mutable(index)->assign( - reinterpret_cast(value), size); +inline void UpdateAuthApplicationRequest::set_origin_uris(int index, const char* value, size_t size) { + origin_uris_.Mutable(index)->assign( + reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:viam.app.v1.UpdateAuthApplicationRequest.origin_uris) } -inline void UpdateAuthApplicationRequest::set_origin_uris(int index, absl::string_view value) { - _internal_mutable_origin_uris()->Mutable(index)->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_set_string_piece:viam.app.v1.UpdateAuthApplicationRequest.origin_uris) +inline std::string* UpdateAuthApplicationRequest::_internal_add_origin_uris() { + return origin_uris_.Add(); } inline void UpdateAuthApplicationRequest::add_origin_uris(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_origin_uris()->Add()->assign(value); + origin_uris_.Add()->assign(value); // @@protoc_insertion_point(field_add:viam.app.v1.UpdateAuthApplicationRequest.origin_uris) } inline void UpdateAuthApplicationRequest::add_origin_uris(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_origin_uris()->Add(std::move(value)); + origin_uris_.Add(std::move(value)); // @@protoc_insertion_point(field_add:viam.app.v1.UpdateAuthApplicationRequest.origin_uris) } inline void UpdateAuthApplicationRequest::add_origin_uris(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_origin_uris()->Add()->assign(value); + GOOGLE_DCHECK(value != nullptr); + origin_uris_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:viam.app.v1.UpdateAuthApplicationRequest.origin_uris) } -inline void UpdateAuthApplicationRequest::add_origin_uris(const char* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_origin_uris()->Add()->assign( - reinterpret_cast(value), size); +inline void UpdateAuthApplicationRequest::add_origin_uris(const char* value, size_t size) { + origin_uris_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:viam.app.v1.UpdateAuthApplicationRequest.origin_uris) } -inline void UpdateAuthApplicationRequest::add_origin_uris(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_origin_uris()->Add()->assign(value.data(), value.size()); - // @@protoc_insertion_point(field_add_string_piece:viam.app.v1.UpdateAuthApplicationRequest.origin_uris) -} -inline const ::google::protobuf::RepeatedPtrField& -UpdateAuthApplicationRequest::origin_uris() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +UpdateAuthApplicationRequest::origin_uris() const { // @@protoc_insertion_point(field_list:viam.app.v1.UpdateAuthApplicationRequest.origin_uris) - return _internal_origin_uris(); + return origin_uris_; } -inline ::google::protobuf::RepeatedPtrField* -UpdateAuthApplicationRequest::mutable_origin_uris() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +UpdateAuthApplicationRequest::mutable_origin_uris() { // @@protoc_insertion_point(field_mutable_list:viam.app.v1.UpdateAuthApplicationRequest.origin_uris) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_origin_uris(); -} -inline const ::google::protobuf::RepeatedPtrField& -UpdateAuthApplicationRequest::_internal_origin_uris() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.origin_uris_; -} -inline ::google::protobuf::RepeatedPtrField* -UpdateAuthApplicationRequest::_internal_mutable_origin_uris() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.origin_uris_; + return &origin_uris_; } // repeated string redirect_uris = 5 [json_name = "redirectUris"]; inline int UpdateAuthApplicationRequest::_internal_redirect_uris_size() const { - return _internal_redirect_uris().size(); + return redirect_uris_.size(); } inline int UpdateAuthApplicationRequest::redirect_uris_size() const { return _internal_redirect_uris_size(); } inline void UpdateAuthApplicationRequest::clear_redirect_uris() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.redirect_uris_.Clear(); + redirect_uris_.Clear(); } -inline std::string* UpdateAuthApplicationRequest::add_redirect_uris() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_redirect_uris()->Add(); +inline std::string* UpdateAuthApplicationRequest::add_redirect_uris() { + std::string* _s = _internal_add_redirect_uris(); // @@protoc_insertion_point(field_add_mutable:viam.app.v1.UpdateAuthApplicationRequest.redirect_uris) return _s; } -inline const std::string& UpdateAuthApplicationRequest::redirect_uris(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& UpdateAuthApplicationRequest::_internal_redirect_uris(int index) const { + return redirect_uris_.Get(index); +} +inline const std::string& UpdateAuthApplicationRequest::redirect_uris(int index) const { // @@protoc_insertion_point(field_get:viam.app.v1.UpdateAuthApplicationRequest.redirect_uris) - return _internal_redirect_uris().Get(index); + return _internal_redirect_uris(index); } -inline std::string* UpdateAuthApplicationRequest::mutable_redirect_uris(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* UpdateAuthApplicationRequest::mutable_redirect_uris(int index) { // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateAuthApplicationRequest.redirect_uris) - return _internal_mutable_redirect_uris()->Mutable(index); + return redirect_uris_.Mutable(index); } inline void UpdateAuthApplicationRequest::set_redirect_uris(int index, const std::string& value) { - _internal_mutable_redirect_uris()->Mutable(index)->assign(value); + redirect_uris_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set:viam.app.v1.UpdateAuthApplicationRequest.redirect_uris) } inline void UpdateAuthApplicationRequest::set_redirect_uris(int index, std::string&& value) { - _internal_mutable_redirect_uris()->Mutable(index)->assign(std::move(value)); + redirect_uris_.Mutable(index)->assign(std::move(value)); // @@protoc_insertion_point(field_set:viam.app.v1.UpdateAuthApplicationRequest.redirect_uris) } inline void UpdateAuthApplicationRequest::set_redirect_uris(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_redirect_uris()->Mutable(index)->assign(value); + GOOGLE_DCHECK(value != nullptr); + redirect_uris_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:viam.app.v1.UpdateAuthApplicationRequest.redirect_uris) } -inline void UpdateAuthApplicationRequest::set_redirect_uris(int index, const char* value, - std::size_t size) { - _internal_mutable_redirect_uris()->Mutable(index)->assign( - reinterpret_cast(value), size); +inline void UpdateAuthApplicationRequest::set_redirect_uris(int index, const char* value, size_t size) { + redirect_uris_.Mutable(index)->assign( + reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:viam.app.v1.UpdateAuthApplicationRequest.redirect_uris) } -inline void UpdateAuthApplicationRequest::set_redirect_uris(int index, absl::string_view value) { - _internal_mutable_redirect_uris()->Mutable(index)->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_set_string_piece:viam.app.v1.UpdateAuthApplicationRequest.redirect_uris) +inline std::string* UpdateAuthApplicationRequest::_internal_add_redirect_uris() { + return redirect_uris_.Add(); } inline void UpdateAuthApplicationRequest::add_redirect_uris(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_redirect_uris()->Add()->assign(value); + redirect_uris_.Add()->assign(value); // @@protoc_insertion_point(field_add:viam.app.v1.UpdateAuthApplicationRequest.redirect_uris) } inline void UpdateAuthApplicationRequest::add_redirect_uris(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_redirect_uris()->Add(std::move(value)); + redirect_uris_.Add(std::move(value)); // @@protoc_insertion_point(field_add:viam.app.v1.UpdateAuthApplicationRequest.redirect_uris) } inline void UpdateAuthApplicationRequest::add_redirect_uris(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_redirect_uris()->Add()->assign(value); + GOOGLE_DCHECK(value != nullptr); + redirect_uris_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:viam.app.v1.UpdateAuthApplicationRequest.redirect_uris) } -inline void UpdateAuthApplicationRequest::add_redirect_uris(const char* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_redirect_uris()->Add()->assign( - reinterpret_cast(value), size); +inline void UpdateAuthApplicationRequest::add_redirect_uris(const char* value, size_t size) { + redirect_uris_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:viam.app.v1.UpdateAuthApplicationRequest.redirect_uris) } -inline void UpdateAuthApplicationRequest::add_redirect_uris(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_redirect_uris()->Add()->assign(value.data(), value.size()); - // @@protoc_insertion_point(field_add_string_piece:viam.app.v1.UpdateAuthApplicationRequest.redirect_uris) -} -inline const ::google::protobuf::RepeatedPtrField& -UpdateAuthApplicationRequest::redirect_uris() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +UpdateAuthApplicationRequest::redirect_uris() const { // @@protoc_insertion_point(field_list:viam.app.v1.UpdateAuthApplicationRequest.redirect_uris) - return _internal_redirect_uris(); + return redirect_uris_; } -inline ::google::protobuf::RepeatedPtrField* -UpdateAuthApplicationRequest::mutable_redirect_uris() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +UpdateAuthApplicationRequest::mutable_redirect_uris() { // @@protoc_insertion_point(field_mutable_list:viam.app.v1.UpdateAuthApplicationRequest.redirect_uris) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_redirect_uris(); -} -inline const ::google::protobuf::RepeatedPtrField& -UpdateAuthApplicationRequest::_internal_redirect_uris() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.redirect_uris_; -} -inline ::google::protobuf::RepeatedPtrField* -UpdateAuthApplicationRequest::_internal_mutable_redirect_uris() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.redirect_uris_; + return &redirect_uris_; } // string logout_uri = 6 [json_name = "logoutUri"]; inline void UpdateAuthApplicationRequest::clear_logout_uri() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.logout_uri_.ClearToEmpty(); + logout_uri_.ClearToEmpty(); } -inline const std::string& UpdateAuthApplicationRequest::logout_uri() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& UpdateAuthApplicationRequest::logout_uri() const { // @@protoc_insertion_point(field_get:viam.app.v1.UpdateAuthApplicationRequest.logout_uri) return _internal_logout_uri(); } -template -inline PROTOBUF_ALWAYS_INLINE void UpdateAuthApplicationRequest::set_logout_uri(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.logout_uri_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void UpdateAuthApplicationRequest::set_logout_uri(ArgT0&& arg0, ArgT... args) { + + logout_uri_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.UpdateAuthApplicationRequest.logout_uri) } -inline std::string* UpdateAuthApplicationRequest::mutable_logout_uri() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* UpdateAuthApplicationRequest::mutable_logout_uri() { std::string* _s = _internal_mutable_logout_uri(); // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateAuthApplicationRequest.logout_uri) return _s; } inline const std::string& UpdateAuthApplicationRequest::_internal_logout_uri() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.logout_uri_.Get(); + return logout_uri_.Get(); } inline void UpdateAuthApplicationRequest::_internal_set_logout_uri(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.logout_uri_.Set(value, GetArena()); + + logout_uri_.Set(value, GetArenaForAllocation()); } inline std::string* UpdateAuthApplicationRequest::_internal_mutable_logout_uri() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.logout_uri_.Mutable( GetArena()); + + return logout_uri_.Mutable(GetArenaForAllocation()); } inline std::string* UpdateAuthApplicationRequest::release_logout_uri() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.UpdateAuthApplicationRequest.logout_uri) - return _impl_.logout_uri_.Release(); -} -inline void UpdateAuthApplicationRequest::set_allocated_logout_uri(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.logout_uri_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.logout_uri_.IsDefault()) { - _impl_.logout_uri_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return logout_uri_.Release(); +} +inline void UpdateAuthApplicationRequest::set_allocated_logout_uri(std::string* logout_uri) { + if (logout_uri != nullptr) { + + } else { + + } + logout_uri_.SetAllocated(logout_uri, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (logout_uri_.IsDefault()) { + logout_uri_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateAuthApplicationRequest.logout_uri) } @@ -3174,107 +2685,101 @@ inline void UpdateAuthApplicationRequest::set_allocated_logout_uri(std::string* // string application_id = 1 [json_name = "applicationId"]; inline void UpdateAuthApplicationResponse::clear_application_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.application_id_.ClearToEmpty(); + application_id_.ClearToEmpty(); } -inline const std::string& UpdateAuthApplicationResponse::application_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& UpdateAuthApplicationResponse::application_id() const { // @@protoc_insertion_point(field_get:viam.app.v1.UpdateAuthApplicationResponse.application_id) return _internal_application_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void UpdateAuthApplicationResponse::set_application_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.application_id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void UpdateAuthApplicationResponse::set_application_id(ArgT0&& arg0, ArgT... args) { + + application_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.UpdateAuthApplicationResponse.application_id) } -inline std::string* UpdateAuthApplicationResponse::mutable_application_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* UpdateAuthApplicationResponse::mutable_application_id() { std::string* _s = _internal_mutable_application_id(); // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateAuthApplicationResponse.application_id) return _s; } inline const std::string& UpdateAuthApplicationResponse::_internal_application_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.application_id_.Get(); + return application_id_.Get(); } inline void UpdateAuthApplicationResponse::_internal_set_application_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.application_id_.Set(value, GetArena()); + + application_id_.Set(value, GetArenaForAllocation()); } inline std::string* UpdateAuthApplicationResponse::_internal_mutable_application_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.application_id_.Mutable( GetArena()); + + return application_id_.Mutable(GetArenaForAllocation()); } inline std::string* UpdateAuthApplicationResponse::release_application_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.UpdateAuthApplicationResponse.application_id) - return _impl_.application_id_.Release(); -} -inline void UpdateAuthApplicationResponse::set_allocated_application_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.application_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.application_id_.IsDefault()) { - _impl_.application_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return application_id_.Release(); +} +inline void UpdateAuthApplicationResponse::set_allocated_application_id(std::string* application_id) { + if (application_id != nullptr) { + + } else { + + } + application_id_.SetAllocated(application_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (application_id_.IsDefault()) { + application_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateAuthApplicationResponse.application_id) } // string application_name = 2 [json_name = "applicationName"]; inline void UpdateAuthApplicationResponse::clear_application_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.application_name_.ClearToEmpty(); + application_name_.ClearToEmpty(); } -inline const std::string& UpdateAuthApplicationResponse::application_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& UpdateAuthApplicationResponse::application_name() const { // @@protoc_insertion_point(field_get:viam.app.v1.UpdateAuthApplicationResponse.application_name) return _internal_application_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void UpdateAuthApplicationResponse::set_application_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.application_name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void UpdateAuthApplicationResponse::set_application_name(ArgT0&& arg0, ArgT... args) { + + application_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.UpdateAuthApplicationResponse.application_name) } -inline std::string* UpdateAuthApplicationResponse::mutable_application_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* UpdateAuthApplicationResponse::mutable_application_name() { std::string* _s = _internal_mutable_application_name(); // @@protoc_insertion_point(field_mutable:viam.app.v1.UpdateAuthApplicationResponse.application_name) return _s; } inline const std::string& UpdateAuthApplicationResponse::_internal_application_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.application_name_.Get(); + return application_name_.Get(); } inline void UpdateAuthApplicationResponse::_internal_set_application_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.application_name_.Set(value, GetArena()); + + application_name_.Set(value, GetArenaForAllocation()); } inline std::string* UpdateAuthApplicationResponse::_internal_mutable_application_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.application_name_.Mutable( GetArena()); + + return application_name_.Mutable(GetArenaForAllocation()); } inline std::string* UpdateAuthApplicationResponse::release_application_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.UpdateAuthApplicationResponse.application_name) - return _impl_.application_name_.Release(); -} -inline void UpdateAuthApplicationResponse::set_allocated_application_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.application_name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.application_name_.IsDefault()) { - _impl_.application_name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return application_name_.Release(); +} +inline void UpdateAuthApplicationResponse::set_allocated_application_name(std::string* application_name) { + if (application_name != nullptr) { + + } else { + + } + application_name_.SetAllocated(application_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (application_name_.IsDefault()) { + application_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.UpdateAuthApplicationResponse.application_name) } @@ -3284,107 +2789,101 @@ inline void UpdateAuthApplicationResponse::set_allocated_application_name(std::s // string org_id = 1 [json_name = "orgId"]; inline void GetAuthApplicationRequest::clear_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.org_id_.ClearToEmpty(); + org_id_.ClearToEmpty(); } -inline const std::string& GetAuthApplicationRequest::org_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetAuthApplicationRequest::org_id() const { // @@protoc_insertion_point(field_get:viam.app.v1.GetAuthApplicationRequest.org_id) return _internal_org_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetAuthApplicationRequest::set_org_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.org_id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetAuthApplicationRequest::set_org_id(ArgT0&& arg0, ArgT... args) { + + org_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.GetAuthApplicationRequest.org_id) } -inline std::string* GetAuthApplicationRequest::mutable_org_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetAuthApplicationRequest::mutable_org_id() { std::string* _s = _internal_mutable_org_id(); // @@protoc_insertion_point(field_mutable:viam.app.v1.GetAuthApplicationRequest.org_id) return _s; } inline const std::string& GetAuthApplicationRequest::_internal_org_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.org_id_.Get(); + return org_id_.Get(); } inline void GetAuthApplicationRequest::_internal_set_org_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.org_id_.Set(value, GetArena()); + + org_id_.Set(value, GetArenaForAllocation()); } inline std::string* GetAuthApplicationRequest::_internal_mutable_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.org_id_.Mutable( GetArena()); + + return org_id_.Mutable(GetArenaForAllocation()); } inline std::string* GetAuthApplicationRequest::release_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.GetAuthApplicationRequest.org_id) - return _impl_.org_id_.Release(); -} -inline void GetAuthApplicationRequest::set_allocated_org_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.org_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.org_id_.IsDefault()) { - _impl_.org_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return org_id_.Release(); +} +inline void GetAuthApplicationRequest::set_allocated_org_id(std::string* org_id) { + if (org_id != nullptr) { + + } else { + + } + org_id_.SetAllocated(org_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (org_id_.IsDefault()) { + org_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetAuthApplicationRequest.org_id) } // string application_id = 2 [json_name = "applicationId"]; inline void GetAuthApplicationRequest::clear_application_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.application_id_.ClearToEmpty(); + application_id_.ClearToEmpty(); } -inline const std::string& GetAuthApplicationRequest::application_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetAuthApplicationRequest::application_id() const { // @@protoc_insertion_point(field_get:viam.app.v1.GetAuthApplicationRequest.application_id) return _internal_application_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetAuthApplicationRequest::set_application_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.application_id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetAuthApplicationRequest::set_application_id(ArgT0&& arg0, ArgT... args) { + + application_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.GetAuthApplicationRequest.application_id) } -inline std::string* GetAuthApplicationRequest::mutable_application_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetAuthApplicationRequest::mutable_application_id() { std::string* _s = _internal_mutable_application_id(); // @@protoc_insertion_point(field_mutable:viam.app.v1.GetAuthApplicationRequest.application_id) return _s; } inline const std::string& GetAuthApplicationRequest::_internal_application_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.application_id_.Get(); + return application_id_.Get(); } inline void GetAuthApplicationRequest::_internal_set_application_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.application_id_.Set(value, GetArena()); + + application_id_.Set(value, GetArenaForAllocation()); } inline std::string* GetAuthApplicationRequest::_internal_mutable_application_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.application_id_.Mutable( GetArena()); + + return application_id_.Mutable(GetArenaForAllocation()); } inline std::string* GetAuthApplicationRequest::release_application_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.GetAuthApplicationRequest.application_id) - return _impl_.application_id_.Release(); -} -inline void GetAuthApplicationRequest::set_allocated_application_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.application_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.application_id_.IsDefault()) { - _impl_.application_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return application_id_.Release(); +} +inline void GetAuthApplicationRequest::set_allocated_application_id(std::string* application_id) { + if (application_id != nullptr) { + + } else { + + } + application_id_.SetAllocated(application_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (application_id_.IsDefault()) { + application_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetAuthApplicationRequest.application_id) } @@ -3394,430 +2893,383 @@ inline void GetAuthApplicationRequest::set_allocated_application_id(std::string* // string application_id = 1 [json_name = "applicationId"]; inline void GetAuthApplicationResponse::clear_application_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.application_id_.ClearToEmpty(); + application_id_.ClearToEmpty(); } -inline const std::string& GetAuthApplicationResponse::application_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetAuthApplicationResponse::application_id() const { // @@protoc_insertion_point(field_get:viam.app.v1.GetAuthApplicationResponse.application_id) return _internal_application_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetAuthApplicationResponse::set_application_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.application_id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetAuthApplicationResponse::set_application_id(ArgT0&& arg0, ArgT... args) { + + application_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.GetAuthApplicationResponse.application_id) } -inline std::string* GetAuthApplicationResponse::mutable_application_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetAuthApplicationResponse::mutable_application_id() { std::string* _s = _internal_mutable_application_id(); // @@protoc_insertion_point(field_mutable:viam.app.v1.GetAuthApplicationResponse.application_id) return _s; } inline const std::string& GetAuthApplicationResponse::_internal_application_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.application_id_.Get(); + return application_id_.Get(); } inline void GetAuthApplicationResponse::_internal_set_application_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.application_id_.Set(value, GetArena()); + + application_id_.Set(value, GetArenaForAllocation()); } inline std::string* GetAuthApplicationResponse::_internal_mutable_application_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.application_id_.Mutable( GetArena()); + + return application_id_.Mutable(GetArenaForAllocation()); } inline std::string* GetAuthApplicationResponse::release_application_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.GetAuthApplicationResponse.application_id) - return _impl_.application_id_.Release(); -} -inline void GetAuthApplicationResponse::set_allocated_application_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.application_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.application_id_.IsDefault()) { - _impl_.application_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return application_id_.Release(); +} +inline void GetAuthApplicationResponse::set_allocated_application_id(std::string* application_id) { + if (application_id != nullptr) { + + } else { + + } + application_id_.SetAllocated(application_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (application_id_.IsDefault()) { + application_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetAuthApplicationResponse.application_id) } // string application_name = 2 [json_name = "applicationName"]; inline void GetAuthApplicationResponse::clear_application_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.application_name_.ClearToEmpty(); + application_name_.ClearToEmpty(); } -inline const std::string& GetAuthApplicationResponse::application_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetAuthApplicationResponse::application_name() const { // @@protoc_insertion_point(field_get:viam.app.v1.GetAuthApplicationResponse.application_name) return _internal_application_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetAuthApplicationResponse::set_application_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.application_name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetAuthApplicationResponse::set_application_name(ArgT0&& arg0, ArgT... args) { + + application_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.GetAuthApplicationResponse.application_name) } -inline std::string* GetAuthApplicationResponse::mutable_application_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetAuthApplicationResponse::mutable_application_name() { std::string* _s = _internal_mutable_application_name(); // @@protoc_insertion_point(field_mutable:viam.app.v1.GetAuthApplicationResponse.application_name) return _s; } inline const std::string& GetAuthApplicationResponse::_internal_application_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.application_name_.Get(); + return application_name_.Get(); } inline void GetAuthApplicationResponse::_internal_set_application_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.application_name_.Set(value, GetArena()); + + application_name_.Set(value, GetArenaForAllocation()); } inline std::string* GetAuthApplicationResponse::_internal_mutable_application_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.application_name_.Mutable( GetArena()); + + return application_name_.Mutable(GetArenaForAllocation()); } inline std::string* GetAuthApplicationResponse::release_application_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.GetAuthApplicationResponse.application_name) - return _impl_.application_name_.Release(); -} -inline void GetAuthApplicationResponse::set_allocated_application_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.application_name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.application_name_.IsDefault()) { - _impl_.application_name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return application_name_.Release(); +} +inline void GetAuthApplicationResponse::set_allocated_application_name(std::string* application_name) { + if (application_name != nullptr) { + + } else { + + } + application_name_.SetAllocated(application_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (application_name_.IsDefault()) { + application_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetAuthApplicationResponse.application_name) } // string client_secret = 3 [json_name = "clientSecret"]; inline void GetAuthApplicationResponse::clear_client_secret() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.client_secret_.ClearToEmpty(); + client_secret_.ClearToEmpty(); } -inline const std::string& GetAuthApplicationResponse::client_secret() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetAuthApplicationResponse::client_secret() const { // @@protoc_insertion_point(field_get:viam.app.v1.GetAuthApplicationResponse.client_secret) return _internal_client_secret(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetAuthApplicationResponse::set_client_secret(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.client_secret_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetAuthApplicationResponse::set_client_secret(ArgT0&& arg0, ArgT... args) { + + client_secret_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.GetAuthApplicationResponse.client_secret) } -inline std::string* GetAuthApplicationResponse::mutable_client_secret() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetAuthApplicationResponse::mutable_client_secret() { std::string* _s = _internal_mutable_client_secret(); // @@protoc_insertion_point(field_mutable:viam.app.v1.GetAuthApplicationResponse.client_secret) return _s; } inline const std::string& GetAuthApplicationResponse::_internal_client_secret() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.client_secret_.Get(); + return client_secret_.Get(); } inline void GetAuthApplicationResponse::_internal_set_client_secret(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.client_secret_.Set(value, GetArena()); + + client_secret_.Set(value, GetArenaForAllocation()); } inline std::string* GetAuthApplicationResponse::_internal_mutable_client_secret() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.client_secret_.Mutable( GetArena()); + + return client_secret_.Mutable(GetArenaForAllocation()); } inline std::string* GetAuthApplicationResponse::release_client_secret() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.GetAuthApplicationResponse.client_secret) - return _impl_.client_secret_.Release(); -} -inline void GetAuthApplicationResponse::set_allocated_client_secret(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.client_secret_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.client_secret_.IsDefault()) { - _impl_.client_secret_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return client_secret_.Release(); +} +inline void GetAuthApplicationResponse::set_allocated_client_secret(std::string* client_secret) { + if (client_secret != nullptr) { + + } else { + + } + client_secret_.SetAllocated(client_secret, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (client_secret_.IsDefault()) { + client_secret_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetAuthApplicationResponse.client_secret) } // repeated string origin_uris = 4 [json_name = "originUris"]; inline int GetAuthApplicationResponse::_internal_origin_uris_size() const { - return _internal_origin_uris().size(); + return origin_uris_.size(); } inline int GetAuthApplicationResponse::origin_uris_size() const { return _internal_origin_uris_size(); } inline void GetAuthApplicationResponse::clear_origin_uris() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.origin_uris_.Clear(); + origin_uris_.Clear(); } -inline std::string* GetAuthApplicationResponse::add_origin_uris() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_origin_uris()->Add(); +inline std::string* GetAuthApplicationResponse::add_origin_uris() { + std::string* _s = _internal_add_origin_uris(); // @@protoc_insertion_point(field_add_mutable:viam.app.v1.GetAuthApplicationResponse.origin_uris) return _s; } -inline const std::string& GetAuthApplicationResponse::origin_uris(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetAuthApplicationResponse::_internal_origin_uris(int index) const { + return origin_uris_.Get(index); +} +inline const std::string& GetAuthApplicationResponse::origin_uris(int index) const { // @@protoc_insertion_point(field_get:viam.app.v1.GetAuthApplicationResponse.origin_uris) - return _internal_origin_uris().Get(index); + return _internal_origin_uris(index); } -inline std::string* GetAuthApplicationResponse::mutable_origin_uris(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetAuthApplicationResponse::mutable_origin_uris(int index) { // @@protoc_insertion_point(field_mutable:viam.app.v1.GetAuthApplicationResponse.origin_uris) - return _internal_mutable_origin_uris()->Mutable(index); + return origin_uris_.Mutable(index); } inline void GetAuthApplicationResponse::set_origin_uris(int index, const std::string& value) { - _internal_mutable_origin_uris()->Mutable(index)->assign(value); + origin_uris_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set:viam.app.v1.GetAuthApplicationResponse.origin_uris) } inline void GetAuthApplicationResponse::set_origin_uris(int index, std::string&& value) { - _internal_mutable_origin_uris()->Mutable(index)->assign(std::move(value)); + origin_uris_.Mutable(index)->assign(std::move(value)); // @@protoc_insertion_point(field_set:viam.app.v1.GetAuthApplicationResponse.origin_uris) } inline void GetAuthApplicationResponse::set_origin_uris(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_origin_uris()->Mutable(index)->assign(value); + GOOGLE_DCHECK(value != nullptr); + origin_uris_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:viam.app.v1.GetAuthApplicationResponse.origin_uris) } -inline void GetAuthApplicationResponse::set_origin_uris(int index, const char* value, - std::size_t size) { - _internal_mutable_origin_uris()->Mutable(index)->assign( - reinterpret_cast(value), size); +inline void GetAuthApplicationResponse::set_origin_uris(int index, const char* value, size_t size) { + origin_uris_.Mutable(index)->assign( + reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:viam.app.v1.GetAuthApplicationResponse.origin_uris) } -inline void GetAuthApplicationResponse::set_origin_uris(int index, absl::string_view value) { - _internal_mutable_origin_uris()->Mutable(index)->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_set_string_piece:viam.app.v1.GetAuthApplicationResponse.origin_uris) +inline std::string* GetAuthApplicationResponse::_internal_add_origin_uris() { + return origin_uris_.Add(); } inline void GetAuthApplicationResponse::add_origin_uris(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_origin_uris()->Add()->assign(value); + origin_uris_.Add()->assign(value); // @@protoc_insertion_point(field_add:viam.app.v1.GetAuthApplicationResponse.origin_uris) } inline void GetAuthApplicationResponse::add_origin_uris(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_origin_uris()->Add(std::move(value)); + origin_uris_.Add(std::move(value)); // @@protoc_insertion_point(field_add:viam.app.v1.GetAuthApplicationResponse.origin_uris) } inline void GetAuthApplicationResponse::add_origin_uris(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_origin_uris()->Add()->assign(value); + GOOGLE_DCHECK(value != nullptr); + origin_uris_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:viam.app.v1.GetAuthApplicationResponse.origin_uris) } -inline void GetAuthApplicationResponse::add_origin_uris(const char* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_origin_uris()->Add()->assign( - reinterpret_cast(value), size); +inline void GetAuthApplicationResponse::add_origin_uris(const char* value, size_t size) { + origin_uris_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:viam.app.v1.GetAuthApplicationResponse.origin_uris) } -inline void GetAuthApplicationResponse::add_origin_uris(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_origin_uris()->Add()->assign(value.data(), value.size()); - // @@protoc_insertion_point(field_add_string_piece:viam.app.v1.GetAuthApplicationResponse.origin_uris) -} -inline const ::google::protobuf::RepeatedPtrField& -GetAuthApplicationResponse::origin_uris() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +GetAuthApplicationResponse::origin_uris() const { // @@protoc_insertion_point(field_list:viam.app.v1.GetAuthApplicationResponse.origin_uris) - return _internal_origin_uris(); + return origin_uris_; } -inline ::google::protobuf::RepeatedPtrField* -GetAuthApplicationResponse::mutable_origin_uris() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +GetAuthApplicationResponse::mutable_origin_uris() { // @@protoc_insertion_point(field_mutable_list:viam.app.v1.GetAuthApplicationResponse.origin_uris) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_origin_uris(); -} -inline const ::google::protobuf::RepeatedPtrField& -GetAuthApplicationResponse::_internal_origin_uris() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.origin_uris_; -} -inline ::google::protobuf::RepeatedPtrField* -GetAuthApplicationResponse::_internal_mutable_origin_uris() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.origin_uris_; + return &origin_uris_; } // repeated string redirect_uris = 5 [json_name = "redirectUris"]; inline int GetAuthApplicationResponse::_internal_redirect_uris_size() const { - return _internal_redirect_uris().size(); + return redirect_uris_.size(); } inline int GetAuthApplicationResponse::redirect_uris_size() const { return _internal_redirect_uris_size(); } inline void GetAuthApplicationResponse::clear_redirect_uris() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.redirect_uris_.Clear(); + redirect_uris_.Clear(); } -inline std::string* GetAuthApplicationResponse::add_redirect_uris() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_redirect_uris()->Add(); +inline std::string* GetAuthApplicationResponse::add_redirect_uris() { + std::string* _s = _internal_add_redirect_uris(); // @@protoc_insertion_point(field_add_mutable:viam.app.v1.GetAuthApplicationResponse.redirect_uris) return _s; } -inline const std::string& GetAuthApplicationResponse::redirect_uris(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetAuthApplicationResponse::_internal_redirect_uris(int index) const { + return redirect_uris_.Get(index); +} +inline const std::string& GetAuthApplicationResponse::redirect_uris(int index) const { // @@protoc_insertion_point(field_get:viam.app.v1.GetAuthApplicationResponse.redirect_uris) - return _internal_redirect_uris().Get(index); + return _internal_redirect_uris(index); } -inline std::string* GetAuthApplicationResponse::mutable_redirect_uris(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetAuthApplicationResponse::mutable_redirect_uris(int index) { // @@protoc_insertion_point(field_mutable:viam.app.v1.GetAuthApplicationResponse.redirect_uris) - return _internal_mutable_redirect_uris()->Mutable(index); + return redirect_uris_.Mutable(index); } inline void GetAuthApplicationResponse::set_redirect_uris(int index, const std::string& value) { - _internal_mutable_redirect_uris()->Mutable(index)->assign(value); + redirect_uris_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set:viam.app.v1.GetAuthApplicationResponse.redirect_uris) } inline void GetAuthApplicationResponse::set_redirect_uris(int index, std::string&& value) { - _internal_mutable_redirect_uris()->Mutable(index)->assign(std::move(value)); + redirect_uris_.Mutable(index)->assign(std::move(value)); // @@protoc_insertion_point(field_set:viam.app.v1.GetAuthApplicationResponse.redirect_uris) } inline void GetAuthApplicationResponse::set_redirect_uris(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_redirect_uris()->Mutable(index)->assign(value); + GOOGLE_DCHECK(value != nullptr); + redirect_uris_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:viam.app.v1.GetAuthApplicationResponse.redirect_uris) } -inline void GetAuthApplicationResponse::set_redirect_uris(int index, const char* value, - std::size_t size) { - _internal_mutable_redirect_uris()->Mutable(index)->assign( - reinterpret_cast(value), size); +inline void GetAuthApplicationResponse::set_redirect_uris(int index, const char* value, size_t size) { + redirect_uris_.Mutable(index)->assign( + reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:viam.app.v1.GetAuthApplicationResponse.redirect_uris) } -inline void GetAuthApplicationResponse::set_redirect_uris(int index, absl::string_view value) { - _internal_mutable_redirect_uris()->Mutable(index)->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_set_string_piece:viam.app.v1.GetAuthApplicationResponse.redirect_uris) +inline std::string* GetAuthApplicationResponse::_internal_add_redirect_uris() { + return redirect_uris_.Add(); } inline void GetAuthApplicationResponse::add_redirect_uris(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_redirect_uris()->Add()->assign(value); + redirect_uris_.Add()->assign(value); // @@protoc_insertion_point(field_add:viam.app.v1.GetAuthApplicationResponse.redirect_uris) } inline void GetAuthApplicationResponse::add_redirect_uris(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_redirect_uris()->Add(std::move(value)); + redirect_uris_.Add(std::move(value)); // @@protoc_insertion_point(field_add:viam.app.v1.GetAuthApplicationResponse.redirect_uris) } inline void GetAuthApplicationResponse::add_redirect_uris(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_redirect_uris()->Add()->assign(value); + GOOGLE_DCHECK(value != nullptr); + redirect_uris_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:viam.app.v1.GetAuthApplicationResponse.redirect_uris) } -inline void GetAuthApplicationResponse::add_redirect_uris(const char* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_redirect_uris()->Add()->assign( - reinterpret_cast(value), size); +inline void GetAuthApplicationResponse::add_redirect_uris(const char* value, size_t size) { + redirect_uris_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:viam.app.v1.GetAuthApplicationResponse.redirect_uris) } -inline void GetAuthApplicationResponse::add_redirect_uris(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_redirect_uris()->Add()->assign(value.data(), value.size()); - // @@protoc_insertion_point(field_add_string_piece:viam.app.v1.GetAuthApplicationResponse.redirect_uris) -} -inline const ::google::protobuf::RepeatedPtrField& -GetAuthApplicationResponse::redirect_uris() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +GetAuthApplicationResponse::redirect_uris() const { // @@protoc_insertion_point(field_list:viam.app.v1.GetAuthApplicationResponse.redirect_uris) - return _internal_redirect_uris(); + return redirect_uris_; } -inline ::google::protobuf::RepeatedPtrField* -GetAuthApplicationResponse::mutable_redirect_uris() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +GetAuthApplicationResponse::mutable_redirect_uris() { // @@protoc_insertion_point(field_mutable_list:viam.app.v1.GetAuthApplicationResponse.redirect_uris) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_redirect_uris(); -} -inline const ::google::protobuf::RepeatedPtrField& -GetAuthApplicationResponse::_internal_redirect_uris() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.redirect_uris_; -} -inline ::google::protobuf::RepeatedPtrField* -GetAuthApplicationResponse::_internal_mutable_redirect_uris() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.redirect_uris_; + return &redirect_uris_; } // string logout_uri = 6 [json_name = "logoutUri"]; inline void GetAuthApplicationResponse::clear_logout_uri() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.logout_uri_.ClearToEmpty(); + logout_uri_.ClearToEmpty(); } -inline const std::string& GetAuthApplicationResponse::logout_uri() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetAuthApplicationResponse::logout_uri() const { // @@protoc_insertion_point(field_get:viam.app.v1.GetAuthApplicationResponse.logout_uri) return _internal_logout_uri(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetAuthApplicationResponse::set_logout_uri(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.logout_uri_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetAuthApplicationResponse::set_logout_uri(ArgT0&& arg0, ArgT... args) { + + logout_uri_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.GetAuthApplicationResponse.logout_uri) } -inline std::string* GetAuthApplicationResponse::mutable_logout_uri() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetAuthApplicationResponse::mutable_logout_uri() { std::string* _s = _internal_mutable_logout_uri(); // @@protoc_insertion_point(field_mutable:viam.app.v1.GetAuthApplicationResponse.logout_uri) return _s; } inline const std::string& GetAuthApplicationResponse::_internal_logout_uri() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.logout_uri_.Get(); + return logout_uri_.Get(); } inline void GetAuthApplicationResponse::_internal_set_logout_uri(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.logout_uri_.Set(value, GetArena()); + + logout_uri_.Set(value, GetArenaForAllocation()); } inline std::string* GetAuthApplicationResponse::_internal_mutable_logout_uri() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.logout_uri_.Mutable( GetArena()); + + return logout_uri_.Mutable(GetArenaForAllocation()); } inline std::string* GetAuthApplicationResponse::release_logout_uri() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.GetAuthApplicationResponse.logout_uri) - return _impl_.logout_uri_.Release(); -} -inline void GetAuthApplicationResponse::set_allocated_logout_uri(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.logout_uri_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.logout_uri_.IsDefault()) { - _impl_.logout_uri_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return logout_uri_.Release(); +} +inline void GetAuthApplicationResponse::set_allocated_logout_uri(std::string* logout_uri) { + if (logout_uri != nullptr) { + + } else { + + } + logout_uri_.SetAllocated(logout_uri, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (logout_uri_.IsDefault()) { + logout_uri_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetAuthApplicationResponse.logout_uri) } #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) + } // namespace v1 } // namespace app } // namespace viam - // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_app_2fv1_2fend_5fuser_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_app_2fv1_2fend_5fuser_2eproto diff --git a/src/viam/api/app/v1/robot.grpc.pb.cc b/src/viam/api/app/v1/robot.grpc.pb.cc index fd34b09a7..f4aa1b49a 100644 --- a/src/viam/api/app/v1/robot.grpc.pb.cc +++ b/src/viam/api/app/v1/robot.grpc.pb.cc @@ -6,19 +6,19 @@ #include "app/v1/robot.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace app { namespace v1 { @@ -32,116 +32,136 @@ static const char* RobotService_method_names[] = { std::unique_ptr< RobotService::Stub> RobotService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { (void)options; - std::unique_ptr< RobotService::Stub> stub(new RobotService::Stub(channel, options)); + std::unique_ptr< RobotService::Stub> stub(new RobotService::Stub(channel)); return stub; } -RobotService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) - : channel_(channel), rpcmethod_Config_(RobotService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_Certificate_(RobotService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_Log_(RobotService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_NeedsRestart_(RobotService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) +RobotService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_Config_(RobotService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_Certificate_(RobotService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_Log_(RobotService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_NeedsRestart_(RobotService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status RobotService::Stub::Config(::grpc::ClientContext* context, const ::viam::app::v1::ConfigRequest& request, ::viam::app::v1::ConfigResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::ConfigRequest, ::viam::app::v1::ConfigResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Config_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_Config_, context, request, response); } -void RobotService::Stub::async::Config(::grpc::ClientContext* context, const ::viam::app::v1::ConfigRequest* request, ::viam::app::v1::ConfigResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::ConfigRequest, ::viam::app::v1::ConfigResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Config_, context, request, response, std::move(f)); +void RobotService::Stub::experimental_async::Config(::grpc::ClientContext* context, const ::viam::app::v1::ConfigRequest* request, ::viam::app::v1::ConfigResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Config_, context, request, response, std::move(f)); } -void RobotService::Stub::async::Config(::grpc::ClientContext* context, const ::viam::app::v1::ConfigRequest* request, ::viam::app::v1::ConfigResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Config_, context, request, response, reactor); +void RobotService::Stub::experimental_async::Config(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ConfigResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Config_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::ConfigResponse>* RobotService::Stub::PrepareAsyncConfigRaw(::grpc::ClientContext* context, const ::viam::app::v1::ConfigRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::ConfigResponse, ::viam::app::v1::ConfigRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Config_, context, request); +void RobotService::Stub::experimental_async::Config(::grpc::ClientContext* context, const ::viam::app::v1::ConfigRequest* request, ::viam::app::v1::ConfigResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Config_, context, request, response, reactor); +} + +void RobotService::Stub::experimental_async::Config(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ConfigResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Config_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::app::v1::ConfigResponse>* RobotService::Stub::AsyncConfigRaw(::grpc::ClientContext* context, const ::viam::app::v1::ConfigRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncConfigRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::ConfigResponse>::Create(channel_.get(), cq, rpcmethod_Config_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::ConfigResponse>* RobotService::Stub::PrepareAsyncConfigRaw(::grpc::ClientContext* context, const ::viam::app::v1::ConfigRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::ConfigResponse>::Create(channel_.get(), cq, rpcmethod_Config_, context, request, false); } ::grpc::Status RobotService::Stub::Certificate(::grpc::ClientContext* context, const ::viam::app::v1::CertificateRequest& request, ::viam::app::v1::CertificateResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::CertificateRequest, ::viam::app::v1::CertificateResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Certificate_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_Certificate_, context, request, response); } -void RobotService::Stub::async::Certificate(::grpc::ClientContext* context, const ::viam::app::v1::CertificateRequest* request, ::viam::app::v1::CertificateResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::CertificateRequest, ::viam::app::v1::CertificateResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Certificate_, context, request, response, std::move(f)); +void RobotService::Stub::experimental_async::Certificate(::grpc::ClientContext* context, const ::viam::app::v1::CertificateRequest* request, ::viam::app::v1::CertificateResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Certificate_, context, request, response, std::move(f)); } -void RobotService::Stub::async::Certificate(::grpc::ClientContext* context, const ::viam::app::v1::CertificateRequest* request, ::viam::app::v1::CertificateResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Certificate_, context, request, response, reactor); +void RobotService::Stub::experimental_async::Certificate(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CertificateResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Certificate_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::CertificateResponse>* RobotService::Stub::PrepareAsyncCertificateRaw(::grpc::ClientContext* context, const ::viam::app::v1::CertificateRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::CertificateResponse, ::viam::app::v1::CertificateRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Certificate_, context, request); +void RobotService::Stub::experimental_async::Certificate(::grpc::ClientContext* context, const ::viam::app::v1::CertificateRequest* request, ::viam::app::v1::CertificateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Certificate_, context, request, response, reactor); +} + +void RobotService::Stub::experimental_async::Certificate(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CertificateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Certificate_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::app::v1::CertificateResponse>* RobotService::Stub::AsyncCertificateRaw(::grpc::ClientContext* context, const ::viam::app::v1::CertificateRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncCertificateRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::CertificateResponse>::Create(channel_.get(), cq, rpcmethod_Certificate_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::CertificateResponse>* RobotService::Stub::PrepareAsyncCertificateRaw(::grpc::ClientContext* context, const ::viam::app::v1::CertificateRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::CertificateResponse>::Create(channel_.get(), cq, rpcmethod_Certificate_, context, request, false); } ::grpc::Status RobotService::Stub::Log(::grpc::ClientContext* context, const ::viam::app::v1::LogRequest& request, ::viam::app::v1::LogResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::LogRequest, ::viam::app::v1::LogResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Log_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_Log_, context, request, response); } -void RobotService::Stub::async::Log(::grpc::ClientContext* context, const ::viam::app::v1::LogRequest* request, ::viam::app::v1::LogResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::LogRequest, ::viam::app::v1::LogResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Log_, context, request, response, std::move(f)); +void RobotService::Stub::experimental_async::Log(::grpc::ClientContext* context, const ::viam::app::v1::LogRequest* request, ::viam::app::v1::LogResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Log_, context, request, response, std::move(f)); } -void RobotService::Stub::async::Log(::grpc::ClientContext* context, const ::viam::app::v1::LogRequest* request, ::viam::app::v1::LogResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Log_, context, request, response, reactor); +void RobotService::Stub::experimental_async::Log(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::LogResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Log_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::LogResponse>* RobotService::Stub::PrepareAsyncLogRaw(::grpc::ClientContext* context, const ::viam::app::v1::LogRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::LogResponse, ::viam::app::v1::LogRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Log_, context, request); +void RobotService::Stub::experimental_async::Log(::grpc::ClientContext* context, const ::viam::app::v1::LogRequest* request, ::viam::app::v1::LogResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Log_, context, request, response, reactor); +} + +void RobotService::Stub::experimental_async::Log(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::LogResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Log_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::app::v1::LogResponse>* RobotService::Stub::AsyncLogRaw(::grpc::ClientContext* context, const ::viam::app::v1::LogRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncLogRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::LogResponse>::Create(channel_.get(), cq, rpcmethod_Log_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::LogResponse>* RobotService::Stub::PrepareAsyncLogRaw(::grpc::ClientContext* context, const ::viam::app::v1::LogRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::LogResponse>::Create(channel_.get(), cq, rpcmethod_Log_, context, request, false); } ::grpc::Status RobotService::Stub::NeedsRestart(::grpc::ClientContext* context, const ::viam::app::v1::NeedsRestartRequest& request, ::viam::app::v1::NeedsRestartResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::NeedsRestartRequest, ::viam::app::v1::NeedsRestartResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_NeedsRestart_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_NeedsRestart_, context, request, response); } -void RobotService::Stub::async::NeedsRestart(::grpc::ClientContext* context, const ::viam::app::v1::NeedsRestartRequest* request, ::viam::app::v1::NeedsRestartResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::NeedsRestartRequest, ::viam::app::v1::NeedsRestartResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_NeedsRestart_, context, request, response, std::move(f)); +void RobotService::Stub::experimental_async::NeedsRestart(::grpc::ClientContext* context, const ::viam::app::v1::NeedsRestartRequest* request, ::viam::app::v1::NeedsRestartResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_NeedsRestart_, context, request, response, std::move(f)); } -void RobotService::Stub::async::NeedsRestart(::grpc::ClientContext* context, const ::viam::app::v1::NeedsRestartRequest* request, ::viam::app::v1::NeedsRestartResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_NeedsRestart_, context, request, response, reactor); +void RobotService::Stub::experimental_async::NeedsRestart(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::NeedsRestartResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_NeedsRestart_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::app::v1::NeedsRestartResponse>* RobotService::Stub::PrepareAsyncNeedsRestartRaw(::grpc::ClientContext* context, const ::viam::app::v1::NeedsRestartRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::NeedsRestartResponse, ::viam::app::v1::NeedsRestartRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_NeedsRestart_, context, request); +void RobotService::Stub::experimental_async::NeedsRestart(::grpc::ClientContext* context, const ::viam::app::v1::NeedsRestartRequest* request, ::viam::app::v1::NeedsRestartResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_NeedsRestart_, context, request, response, reactor); +} + +void RobotService::Stub::experimental_async::NeedsRestart(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::NeedsRestartResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_NeedsRestart_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::app::v1::NeedsRestartResponse>* RobotService::Stub::AsyncNeedsRestartRaw(::grpc::ClientContext* context, const ::viam::app::v1::NeedsRestartRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncNeedsRestartRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::NeedsRestartResponse>::Create(channel_.get(), cq, rpcmethod_NeedsRestart_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::NeedsRestartResponse>* RobotService::Stub::PrepareAsyncNeedsRestartRaw(::grpc::ClientContext* context, const ::viam::app::v1::NeedsRestartRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::app::v1::NeedsRestartResponse>::Create(channel_.get(), cq, rpcmethod_NeedsRestart_, context, request, false); } RobotService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( RobotService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::app::v1::ConfigRequest, ::viam::app::v1::ConfigResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::app::v1::ConfigRequest, ::viam::app::v1::ConfigResponse>( [](RobotService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::ConfigRequest* req, ::viam::app::v1::ConfigResponse* resp) { return service->Config(ctx, req, resp); @@ -149,9 +169,9 @@ RobotService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( RobotService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::app::v1::CertificateRequest, ::viam::app::v1::CertificateResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::app::v1::CertificateRequest, ::viam::app::v1::CertificateResponse>( [](RobotService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::CertificateRequest* req, ::viam::app::v1::CertificateResponse* resp) { return service->Certificate(ctx, req, resp); @@ -159,9 +179,9 @@ RobotService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( RobotService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::app::v1::LogRequest, ::viam::app::v1::LogResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::app::v1::LogRequest, ::viam::app::v1::LogResponse>( [](RobotService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::LogRequest* req, ::viam::app::v1::LogResponse* resp) { return service->Log(ctx, req, resp); @@ -169,9 +189,9 @@ RobotService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( RobotService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::app::v1::NeedsRestartRequest, ::viam::app::v1::NeedsRestartResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::app::v1::NeedsRestartRequest, ::viam::app::v1::NeedsRestartResponse>( [](RobotService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::app::v1::NeedsRestartRequest* req, ::viam::app::v1::NeedsRestartResponse* resp) { return service->NeedsRestart(ctx, req, resp); diff --git a/src/viam/api/app/v1/robot.grpc.pb.h b/src/viam/api/app/v1/robot.grpc.pb.h index ec0808982..e745aaa8e 100644 --- a/src/viam/api/app/v1/robot.grpc.pb.h +++ b/src/viam/api/app/v1/robot.grpc.pb.h @@ -7,23 +7,24 @@ #include "app/v1/robot.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace app { @@ -70,26 +71,70 @@ class RobotService final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::NeedsRestartResponse>> PrepareAsyncNeedsRestart(::grpc::ClientContext* context, const ::viam::app::v1::NeedsRestartRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::NeedsRestartResponse>>(PrepareAsyncNeedsRestartRaw(context, request, cq)); } - class async_interface { + class experimental_async_interface { public: - virtual ~async_interface() {} + virtual ~experimental_async_interface() {} // Config requests the current robot config virtual void Config(::grpc::ClientContext* context, const ::viam::app::v1::ConfigRequest* request, ::viam::app::v1::ConfigResponse* response, std::function) = 0; + virtual void Config(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ConfigResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void Config(::grpc::ClientContext* context, const ::viam::app::v1::ConfigRequest* request, ::viam::app::v1::ConfigResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void Config(::grpc::ClientContext* context, const ::viam::app::v1::ConfigRequest* request, ::viam::app::v1::ConfigResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void Config(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ConfigResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void Config(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ConfigResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Certificate requests the current robot certificate virtual void Certificate(::grpc::ClientContext* context, const ::viam::app::v1::CertificateRequest* request, ::viam::app::v1::CertificateResponse* response, std::function) = 0; + virtual void Certificate(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CertificateResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void Certificate(::grpc::ClientContext* context, const ::viam::app::v1::CertificateRequest* request, ::viam::app::v1::CertificateResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void Certificate(::grpc::ClientContext* context, const ::viam::app::v1::CertificateRequest* request, ::viam::app::v1::CertificateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void Certificate(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CertificateResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void Certificate(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CertificateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Log insert log entries associated with the robot. Allows up to 1000 entries to be added in one request. virtual void Log(::grpc::ClientContext* context, const ::viam::app::v1::LogRequest* request, ::viam::app::v1::LogResponse* response, std::function) = 0; + virtual void Log(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::LogResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void Log(::grpc::ClientContext* context, const ::viam::app::v1::LogRequest* request, ::viam::app::v1::LogResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void Log(::grpc::ClientContext* context, const ::viam::app::v1::LogRequest* request, ::viam::app::v1::LogResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void Log(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::LogResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void Log(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::LogResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // NeedsRestart returns if the robot should restart and the interval it should check to restart. virtual void NeedsRestart(::grpc::ClientContext* context, const ::viam::app::v1::NeedsRestartRequest* request, ::viam::app::v1::NeedsRestartResponse* response, std::function) = 0; + virtual void NeedsRestart(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::NeedsRestartResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void NeedsRestart(::grpc::ClientContext* context, const ::viam::app::v1::NeedsRestartRequest* request, ::viam::app::v1::NeedsRestartResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void NeedsRestart(::grpc::ClientContext* context, const ::viam::app::v1::NeedsRestartRequest* request, ::viam::app::v1::NeedsRestartResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void NeedsRestart(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::NeedsRestartResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void NeedsRestart(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::NeedsRestartResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif }; - typedef class async_interface experimental_async_interface; - virtual class async_interface* async() { return nullptr; } - class async_interface* experimental_async() { return async(); } - private: + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef class experimental_async_interface async_interface; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + async_interface* async() { return experimental_async(); } + #endif + virtual class experimental_async_interface* experimental_async() { return nullptr; } + private: virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::ConfigResponse>* AsyncConfigRaw(::grpc::ClientContext* context, const ::viam::app::v1::ConfigRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::ConfigResponse>* PrepareAsyncConfigRaw(::grpc::ClientContext* context, const ::viam::app::v1::ConfigRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::CertificateResponse>* AsyncCertificateRaw(::grpc::ClientContext* context, const ::viam::app::v1::CertificateRequest& request, ::grpc::CompletionQueue* cq) = 0; @@ -101,7 +146,7 @@ class RobotService final { }; class Stub final : public StubInterface { public: - Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); ::grpc::Status Config(::grpc::ClientContext* context, const ::viam::app::v1::ConfigRequest& request, ::viam::app::v1::ConfigResponse* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::ConfigResponse>> AsyncConfig(::grpc::ClientContext* context, const ::viam::app::v1::ConfigRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::ConfigResponse>>(AsyncConfigRaw(context, request, cq)); @@ -130,28 +175,68 @@ class RobotService final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::NeedsRestartResponse>> PrepareAsyncNeedsRestart(::grpc::ClientContext* context, const ::viam::app::v1::NeedsRestartRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::NeedsRestartResponse>>(PrepareAsyncNeedsRestartRaw(context, request, cq)); } - class async final : - public StubInterface::async_interface { + class experimental_async final : + public StubInterface::experimental_async_interface { public: void Config(::grpc::ClientContext* context, const ::viam::app::v1::ConfigRequest* request, ::viam::app::v1::ConfigResponse* response, std::function) override; + void Config(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ConfigResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void Config(::grpc::ClientContext* context, const ::viam::app::v1::ConfigRequest* request, ::viam::app::v1::ConfigResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void Config(::grpc::ClientContext* context, const ::viam::app::v1::ConfigRequest* request, ::viam::app::v1::ConfigResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void Config(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ConfigResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void Config(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::ConfigResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void Certificate(::grpc::ClientContext* context, const ::viam::app::v1::CertificateRequest* request, ::viam::app::v1::CertificateResponse* response, std::function) override; + void Certificate(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CertificateResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void Certificate(::grpc::ClientContext* context, const ::viam::app::v1::CertificateRequest* request, ::viam::app::v1::CertificateResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void Certificate(::grpc::ClientContext* context, const ::viam::app::v1::CertificateRequest* request, ::viam::app::v1::CertificateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void Certificate(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CertificateResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void Certificate(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::CertificateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void Log(::grpc::ClientContext* context, const ::viam::app::v1::LogRequest* request, ::viam::app::v1::LogResponse* response, std::function) override; + void Log(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::LogResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void Log(::grpc::ClientContext* context, const ::viam::app::v1::LogRequest* request, ::viam::app::v1::LogResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void Log(::grpc::ClientContext* context, const ::viam::app::v1::LogRequest* request, ::viam::app::v1::LogResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void Log(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::LogResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void Log(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::LogResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void NeedsRestart(::grpc::ClientContext* context, const ::viam::app::v1::NeedsRestartRequest* request, ::viam::app::v1::NeedsRestartResponse* response, std::function) override; + void NeedsRestart(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::NeedsRestartResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void NeedsRestart(::grpc::ClientContext* context, const ::viam::app::v1::NeedsRestartRequest* request, ::viam::app::v1::NeedsRestartResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void NeedsRestart(::grpc::ClientContext* context, const ::viam::app::v1::NeedsRestartRequest* request, ::viam::app::v1::NeedsRestartResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void NeedsRestart(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::NeedsRestartResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void NeedsRestart(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::app::v1::NeedsRestartResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif private: friend class Stub; - explicit async(Stub* stub): stub_(stub) { } + explicit experimental_async(Stub* stub): stub_(stub) { } Stub* stub() { return stub_; } Stub* stub_; }; - class async* async() override { return &async_stub_; } + class experimental_async_interface* experimental_async() override { return &async_stub_; } private: std::shared_ptr< ::grpc::ChannelInterface> channel_; - class async async_stub_{this}; + class experimental_async async_stub_{this}; ::grpc::ClientAsyncResponseReader< ::viam::app::v1::ConfigResponse>* AsyncConfigRaw(::grpc::ClientContext* context, const ::viam::app::v1::ConfigRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::app::v1::ConfigResponse>* PrepareAsyncConfigRaw(::grpc::ClientContext* context, const ::viam::app::v1::ConfigRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::app::v1::CertificateResponse>* AsyncCertificateRaw(::grpc::ClientContext* context, const ::viam::app::v1::CertificateRequest& request, ::grpc::CompletionQueue* cq) override; @@ -262,22 +347,36 @@ class RobotService final { }; typedef WithAsyncMethod_Config > > > AsyncService; template - class WithCallbackMethod_Config : public BaseClass { + class ExperimentalWithCallbackMethod_Config : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_Config() { - ::grpc::Service::MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::ConfigRequest, ::viam::app::v1::ConfigResponse>( + ExperimentalWithCallbackMethod_Config() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::ConfigRequest, ::viam::app::v1::ConfigResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::ConfigRequest* request, ::viam::app::v1::ConfigResponse* response) { return this->Config(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::ConfigRequest* request, ::viam::app::v1::ConfigResponse* response) { return this->Config(context, request, response); }));} void SetMessageAllocatorFor_Config( - ::grpc::MessageAllocator< ::viam::app::v1::ConfigRequest, ::viam::app::v1::ConfigResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::app::v1::ConfigRequest, ::viam::app::v1::ConfigResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::ConfigRequest, ::viam::app::v1::ConfigResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(0); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::ConfigRequest, ::viam::app::v1::ConfigResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_Config() override { + ~ExperimentalWithCallbackMethod_Config() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -285,26 +384,46 @@ class RobotService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* Config( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::ConfigRequest* /*request*/, ::viam::app::v1::ConfigResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::ConfigRequest* /*request*/, ::viam::app::v1::ConfigResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* Config( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::ConfigRequest* /*request*/, ::viam::app::v1::ConfigResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_Certificate : public BaseClass { + class ExperimentalWithCallbackMethod_Certificate : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_Certificate() { - ::grpc::Service::MarkMethodCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::CertificateRequest, ::viam::app::v1::CertificateResponse>( + ExperimentalWithCallbackMethod_Certificate() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::CertificateRequest, ::viam::app::v1::CertificateResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::CertificateRequest* request, ::viam::app::v1::CertificateResponse* response) { return this->Certificate(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::CertificateRequest* request, ::viam::app::v1::CertificateResponse* response) { return this->Certificate(context, request, response); }));} void SetMessageAllocatorFor_Certificate( - ::grpc::MessageAllocator< ::viam::app::v1::CertificateRequest, ::viam::app::v1::CertificateResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::app::v1::CertificateRequest, ::viam::app::v1::CertificateResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::CertificateRequest, ::viam::app::v1::CertificateResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(1); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::CertificateRequest, ::viam::app::v1::CertificateResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_Certificate() override { + ~ExperimentalWithCallbackMethod_Certificate() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -312,26 +431,46 @@ class RobotService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* Certificate( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::CertificateRequest* /*request*/, ::viam::app::v1::CertificateResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::CertificateRequest* /*request*/, ::viam::app::v1::CertificateResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* Certificate( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::CertificateRequest* /*request*/, ::viam::app::v1::CertificateResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_Log : public BaseClass { + class ExperimentalWithCallbackMethod_Log : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_Log() { - ::grpc::Service::MarkMethodCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::LogRequest, ::viam::app::v1::LogResponse>( + ExperimentalWithCallbackMethod_Log() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(2, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::LogRequest, ::viam::app::v1::LogResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::LogRequest* request, ::viam::app::v1::LogResponse* response) { return this->Log(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::LogRequest* request, ::viam::app::v1::LogResponse* response) { return this->Log(context, request, response); }));} void SetMessageAllocatorFor_Log( - ::grpc::MessageAllocator< ::viam::app::v1::LogRequest, ::viam::app::v1::LogResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::app::v1::LogRequest, ::viam::app::v1::LogResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::LogRequest, ::viam::app::v1::LogResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(2); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::LogRequest, ::viam::app::v1::LogResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_Log() override { + ~ExperimentalWithCallbackMethod_Log() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -339,26 +478,46 @@ class RobotService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* Log( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::LogRequest* /*request*/, ::viam::app::v1::LogResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::LogRequest* /*request*/, ::viam::app::v1::LogResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* Log( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::LogRequest* /*request*/, ::viam::app::v1::LogResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_NeedsRestart : public BaseClass { + class ExperimentalWithCallbackMethod_NeedsRestart : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_NeedsRestart() { - ::grpc::Service::MarkMethodCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::NeedsRestartRequest, ::viam::app::v1::NeedsRestartResponse>( + ExperimentalWithCallbackMethod_NeedsRestart() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(3, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::NeedsRestartRequest, ::viam::app::v1::NeedsRestartResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::app::v1::NeedsRestartRequest* request, ::viam::app::v1::NeedsRestartResponse* response) { return this->NeedsRestart(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::app::v1::NeedsRestartRequest* request, ::viam::app::v1::NeedsRestartResponse* response) { return this->NeedsRestart(context, request, response); }));} void SetMessageAllocatorFor_NeedsRestart( - ::grpc::MessageAllocator< ::viam::app::v1::NeedsRestartRequest, ::viam::app::v1::NeedsRestartResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::app::v1::NeedsRestartRequest, ::viam::app::v1::NeedsRestartResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::NeedsRestartRequest, ::viam::app::v1::NeedsRestartResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(3); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::app::v1::NeedsRestartRequest, ::viam::app::v1::NeedsRestartResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_NeedsRestart() override { + ~ExperimentalWithCallbackMethod_NeedsRestart() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -366,11 +525,20 @@ class RobotService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* NeedsRestart( - ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::NeedsRestartRequest* /*request*/, ::viam::app::v1::NeedsRestartResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::NeedsRestartRequest* /*request*/, ::viam::app::v1::NeedsRestartResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* NeedsRestart( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::app::v1::NeedsRestartRequest* /*request*/, ::viam::app::v1::NeedsRestartResponse* /*response*/) + #endif + { return nullptr; } }; - typedef WithCallbackMethod_Config > > > CallbackService; - typedef CallbackService ExperimentalCallbackService; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef ExperimentalWithCallbackMethod_Config > > > CallbackService; + #endif + + typedef ExperimentalWithCallbackMethod_Config > > > ExperimentalCallbackService; template class WithGenericMethod_Config : public BaseClass { private: @@ -520,17 +688,27 @@ class RobotService final { } }; template - class WithRawCallbackMethod_Config : public BaseClass { + class ExperimentalWithRawCallbackMethod_Config : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_Config() { - ::grpc::Service::MarkMethodRawCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_Config() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Config(context, request, response); })); - } - ~WithRawCallbackMethod_Config() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Config(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_Config() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -538,21 +716,37 @@ class RobotService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* Config( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* Config( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_Certificate : public BaseClass { + class ExperimentalWithRawCallbackMethod_Certificate : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_Certificate() { - ::grpc::Service::MarkMethodRawCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_Certificate() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Certificate(context, request, response); })); - } - ~WithRawCallbackMethod_Certificate() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Certificate(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_Certificate() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -560,21 +754,37 @@ class RobotService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* Certificate( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* Certificate( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_Log : public BaseClass { + class ExperimentalWithRawCallbackMethod_Log : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_Log() { - ::grpc::Service::MarkMethodRawCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_Log() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(2, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Log(context, request, response); })); - } - ~WithRawCallbackMethod_Log() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Log(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_Log() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -582,21 +792,37 @@ class RobotService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* Log( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* Log( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_NeedsRestart : public BaseClass { + class ExperimentalWithRawCallbackMethod_NeedsRestart : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_NeedsRestart() { - ::grpc::Service::MarkMethodRawCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_NeedsRestart() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(3, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->NeedsRestart(context, request, response); })); - } - ~WithRawCallbackMethod_NeedsRestart() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->NeedsRestart(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_NeedsRestart() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -604,8 +830,14 @@ class RobotService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* NeedsRestart( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* NeedsRestart( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template class WithStreamedUnaryMethod_Config : public BaseClass { @@ -616,8 +848,8 @@ class RobotService final { ::grpc::Service::MarkMethodStreamed(0, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::ConfigRequest, ::viam::app::v1::ConfigResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::ConfigRequest, ::viam::app::v1::ConfigResponse>* streamer) { return this->StreamedConfig(context, streamer); @@ -643,8 +875,8 @@ class RobotService final { ::grpc::Service::MarkMethodStreamed(1, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::CertificateRequest, ::viam::app::v1::CertificateResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::CertificateRequest, ::viam::app::v1::CertificateResponse>* streamer) { return this->StreamedCertificate(context, streamer); @@ -670,8 +902,8 @@ class RobotService final { ::grpc::Service::MarkMethodStreamed(2, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::LogRequest, ::viam::app::v1::LogResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::LogRequest, ::viam::app::v1::LogResponse>* streamer) { return this->StreamedLog(context, streamer); @@ -697,8 +929,8 @@ class RobotService final { ::grpc::Service::MarkMethodStreamed(3, new ::grpc::internal::StreamedUnaryHandler< ::viam::app::v1::NeedsRestartRequest, ::viam::app::v1::NeedsRestartResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::app::v1::NeedsRestartRequest, ::viam::app::v1::NeedsRestartResponse>* streamer) { return this->StreamedNeedsRestart(context, streamer); diff --git a/src/viam/api/app/v1/robot.pb.cc b/src/viam/api/app/v1/robot.pb.cc index e9aac630d..f315a9e29 100644 --- a/src/viam/api/app/v1/robot.pb.cc +++ b/src/viam/api/app/v1/robot.pb.cc @@ -4,2636 +4,2149 @@ #include "app/v1/robot.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace viam { namespace app { namespace v1 { - -inline constexpr Translation::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : x_{0}, - y_{0}, - z_{0}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR Translation::Translation(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct TranslationDefaultTypeInternal { - PROTOBUF_CONSTEXPR TranslationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TranslationDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR RobotConfig::RobotConfig( + ::_pbi::ConstantInitialized) + : remotes_() + , components_() + , processes_() + , services_() + , modules_() + , packages_() + , overwrite_fragment_status_() + , log_() + , revision_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , cloud_(nullptr) + , network_(nullptr) + , auth_(nullptr) + , maintenance_(nullptr) + , debug_(false) + , disable_partial_start_(false) + , enable_web_profile_(false) + , disable_log_deduplication_(false){} +struct RobotConfigDefaultTypeInternal { + PROTOBUF_CONSTEXPR RobotConfigDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RobotConfigDefaultTypeInternal() {} union { - Translation _instance; + RobotConfig _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TranslationDefaultTypeInternal _Translation_default_instance_; - -inline constexpr RemoteAuth_Credentials::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : payload_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - type_{static_cast< ::viam::app::v1::CredentialsType >(0)}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR RemoteAuth_Credentials::RemoteAuth_Credentials(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct RemoteAuth_CredentialsDefaultTypeInternal { - PROTOBUF_CONSTEXPR RemoteAuth_CredentialsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RemoteAuth_CredentialsDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RobotConfigDefaultTypeInternal _RobotConfig_default_instance_; +PROTOBUF_CONSTEXPR LogPatternConfig::LogPatternConfig( + ::_pbi::ConstantInitialized) + : pattern_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , level_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct LogPatternConfigDefaultTypeInternal { + PROTOBUF_CONSTEXPR LogPatternConfigDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~LogPatternConfigDefaultTypeInternal() {} union { - RemoteAuth_Credentials _instance; + LogPatternConfig _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RemoteAuth_CredentialsDefaultTypeInternal _RemoteAuth_Credentials_default_instance_; - template -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() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LogPatternConfigDefaultTypeInternal _LogPatternConfig_default_instance_; +PROTOBUF_CONSTEXPR LocationSecret::LocationSecret( + ::_pbi::ConstantInitialized) + : id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , secret_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct LocationSecretDefaultTypeInternal { + PROTOBUF_CONSTEXPR LocationSecretDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~LocationSecretDefaultTypeInternal() {} union { - ProcessConfig_EnvEntry_DoNotUse _instance; + LocationSecret _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ProcessConfig_EnvEntry_DoNotUseDefaultTypeInternal _ProcessConfig_EnvEntry_DoNotUse_default_instance_; - -inline constexpr Orientation_Quaternion::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : w_{0}, - x_{0}, - y_{0}, - z_{0}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR Orientation_Quaternion::Orientation_Quaternion(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct Orientation_QuaternionDefaultTypeInternal { - PROTOBUF_CONSTEXPR Orientation_QuaternionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~Orientation_QuaternionDefaultTypeInternal() {} +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 { - Orientation_Quaternion _instance; + AppValidationStatus _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Orientation_QuaternionDefaultTypeInternal _Orientation_Quaternion_default_instance_; - -inline constexpr Orientation_OrientationVectorRadians::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : theta_{0}, - x_{0}, - y_{0}, - z_{0}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR Orientation_OrientationVectorRadians::Orientation_OrientationVectorRadians(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct Orientation_OrientationVectorRadiansDefaultTypeInternal { - PROTOBUF_CONSTEXPR Orientation_OrientationVectorRadiansDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~Orientation_OrientationVectorRadiansDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AppValidationStatusDefaultTypeInternal _AppValidationStatus_default_instance_; +PROTOBUF_CONSTEXPR CloudConfig::CloudConfig( + ::_pbi::ConstantInitialized) + : location_secrets_() + , id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , fqdn_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , local_fqdn_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , managed_by_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , signaling_address_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , location_secret_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , secret_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , primary_org_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , location_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , machine_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , signaling_insecure_(false){} +struct CloudConfigDefaultTypeInternal { + PROTOBUF_CONSTEXPR CloudConfigDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CloudConfigDefaultTypeInternal() {} union { - Orientation_OrientationVectorRadians _instance; + CloudConfig _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Orientation_OrientationVectorRadiansDefaultTypeInternal _Orientation_OrientationVectorRadians_default_instance_; - -inline constexpr Orientation_OrientationVectorDegrees::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : theta_{0}, - x_{0}, - y_{0}, - z_{0}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR Orientation_OrientationVectorDegrees::Orientation_OrientationVectorDegrees(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct Orientation_OrientationVectorDegreesDefaultTypeInternal { - PROTOBUF_CONSTEXPR Orientation_OrientationVectorDegreesDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~Orientation_OrientationVectorDegreesDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CloudConfigDefaultTypeInternal _CloudConfig_default_instance_; +PROTOBUF_CONSTEXPR ComponentConfig::ComponentConfig( + ::_pbi::ConstantInitialized) + : depends_on_() + , service_configs_() + , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , namespace__(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , type_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , model_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , api_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , frame_(nullptr) + , attributes_(nullptr) + , log_configuration_(nullptr){} +struct ComponentConfigDefaultTypeInternal { + PROTOBUF_CONSTEXPR ComponentConfigDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ComponentConfigDefaultTypeInternal() {} union { - Orientation_OrientationVectorDegrees _instance; + ComponentConfig _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Orientation_OrientationVectorDegreesDefaultTypeInternal _Orientation_OrientationVectorDegrees_default_instance_; - template -PROTOBUF_CONSTEXPR Orientation_NoOrientation::Orientation_NoOrientation(::_pbi::ConstantInitialized) {} -struct Orientation_NoOrientationDefaultTypeInternal { - PROTOBUF_CONSTEXPR Orientation_NoOrientationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~Orientation_NoOrientationDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ComponentConfigDefaultTypeInternal _ComponentConfig_default_instance_; +PROTOBUF_CONSTEXPR ResourceLevelServiceConfig::ResourceLevelServiceConfig( + ::_pbi::ConstantInitialized) + : type_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , attributes_(nullptr){} +struct ResourceLevelServiceConfigDefaultTypeInternal { + PROTOBUF_CONSTEXPR ResourceLevelServiceConfigDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ResourceLevelServiceConfigDefaultTypeInternal() {} union { - Orientation_NoOrientation _instance; + ResourceLevelServiceConfig _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Orientation_NoOrientationDefaultTypeInternal _Orientation_NoOrientation_default_instance_; - -inline constexpr Orientation_EulerAngles::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : roll_{0}, - pitch_{0}, - yaw_{0}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR Orientation_EulerAngles::Orientation_EulerAngles(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct Orientation_EulerAnglesDefaultTypeInternal { - PROTOBUF_CONSTEXPR Orientation_EulerAnglesDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~Orientation_EulerAnglesDefaultTypeInternal() {} +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 { - Orientation_EulerAngles _instance; + ProcessConfig_EnvEntry_DoNotUse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Orientation_EulerAnglesDefaultTypeInternal _Orientation_EulerAngles_default_instance_; - -inline constexpr Orientation_AxisAngles::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : theta_{0}, - x_{0}, - y_{0}, - z_{0}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR Orientation_AxisAngles::Orientation_AxisAngles(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct Orientation_AxisAnglesDefaultTypeInternal { - PROTOBUF_CONSTEXPR Orientation_AxisAnglesDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~Orientation_AxisAnglesDefaultTypeInternal() {} +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{}) + , username_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , stop_timeout_(nullptr) + , one_shot_(false) + , log_(false) + , stop_signal_(0){} +struct ProcessConfigDefaultTypeInternal { + PROTOBUF_CONSTEXPR ProcessConfigDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ProcessConfigDefaultTypeInternal() {} union { - Orientation_AxisAngles _instance; + ProcessConfig _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Orientation_AxisAnglesDefaultTypeInternal _Orientation_AxisAngles_default_instance_; - -inline constexpr NeedsRestartRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR NeedsRestartRequest::NeedsRestartRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct NeedsRestartRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR NeedsRestartRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~NeedsRestartRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ProcessConfigDefaultTypeInternal _ProcessConfig_default_instance_; +PROTOBUF_CONSTEXPR ServiceConfig::ServiceConfig( + ::_pbi::ConstantInitialized) + : depends_on_() + , service_configs_() + , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , namespace__(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , type_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , model_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , api_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , attributes_(nullptr) + , log_configuration_(nullptr){} +struct ServiceConfigDefaultTypeInternal { + PROTOBUF_CONSTEXPR ServiceConfigDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ServiceConfigDefaultTypeInternal() {} union { - NeedsRestartRequest _instance; + ServiceConfig _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NeedsRestartRequestDefaultTypeInternal _NeedsRestartRequest_default_instance_; - template -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() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ServiceConfigDefaultTypeInternal _ServiceConfig_default_instance_; +PROTOBUF_CONSTEXPR NetworkConfig::NetworkConfig( + ::_pbi::ConstantInitialized) + : fqdn_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , bind_address_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , tls_cert_file_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , tls_key_file_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , sessions_(nullptr){} +struct NetworkConfigDefaultTypeInternal { + PROTOBUF_CONSTEXPR NetworkConfigDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~NetworkConfigDefaultTypeInternal() {} union { - ModuleConfig_EnvEntry_DoNotUse _instance; + NetworkConfig _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ModuleConfig_EnvEntry_DoNotUseDefaultTypeInternal _ModuleConfig_EnvEntry_DoNotUse_default_instance_; - template -PROTOBUF_CONSTEXPR LogResponse::LogResponse(::_pbi::ConstantInitialized) {} -struct LogResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR LogResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~LogResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NetworkConfigDefaultTypeInternal _NetworkConfig_default_instance_; +PROTOBUF_CONSTEXPR SessionsConfig::SessionsConfig( + ::_pbi::ConstantInitialized) + : heartbeat_window_(nullptr){} +struct SessionsConfigDefaultTypeInternal { + PROTOBUF_CONSTEXPR SessionsConfigDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SessionsConfigDefaultTypeInternal() {} union { - LogResponse _instance; + SessionsConfig _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LogResponseDefaultTypeInternal _LogResponse_default_instance_; - -inline constexpr LogPatternConfig::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : pattern_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - level_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR LogPatternConfig::LogPatternConfig(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct LogPatternConfigDefaultTypeInternal { - PROTOBUF_CONSTEXPR LogPatternConfigDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~LogPatternConfigDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SessionsConfigDefaultTypeInternal _SessionsConfig_default_instance_; +PROTOBUF_CONSTEXPR AuthConfig::AuthConfig( + ::_pbi::ConstantInitialized) + : handlers_() + , tls_auth_entities_() + , external_auth_config_(nullptr){} +struct AuthConfigDefaultTypeInternal { + PROTOBUF_CONSTEXPR AuthConfigDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AuthConfigDefaultTypeInternal() {} union { - LogPatternConfig _instance; + AuthConfig _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LogPatternConfigDefaultTypeInternal _LogPatternConfig_default_instance_; - -inline constexpr LogConfiguration::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : level_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR LogConfiguration::LogConfiguration(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct LogConfigurationDefaultTypeInternal { - PROTOBUF_CONSTEXPR LogConfigurationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~LogConfigurationDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AuthConfigDefaultTypeInternal _AuthConfig_default_instance_; +PROTOBUF_CONSTEXPR JWKSFile::JWKSFile( + ::_pbi::ConstantInitialized) + : json_(nullptr){} +struct JWKSFileDefaultTypeInternal { + PROTOBUF_CONSTEXPR JWKSFileDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~JWKSFileDefaultTypeInternal() {} union { - LogConfiguration _instance; + JWKSFile _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LogConfigurationDefaultTypeInternal _LogConfiguration_default_instance_; - -inline constexpr LocationSecret::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - secret_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR LocationSecret::LocationSecret(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct LocationSecretDefaultTypeInternal { - PROTOBUF_CONSTEXPR LocationSecretDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~LocationSecretDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 JWKSFileDefaultTypeInternal _JWKSFile_default_instance_; +PROTOBUF_CONSTEXPR ExternalAuthConfig::ExternalAuthConfig( + ::_pbi::ConstantInitialized) + : jwks_(nullptr){} +struct ExternalAuthConfigDefaultTypeInternal { + PROTOBUF_CONSTEXPR ExternalAuthConfigDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ExternalAuthConfigDefaultTypeInternal() {} union { - LocationSecret _instance; + ExternalAuthConfig _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LocationSecretDefaultTypeInternal _LocationSecret_default_instance_; - -inline constexpr CertificateResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - tls_certificate_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - tls_private_key_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR CertificateResponse::CertificateResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct CertificateResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR CertificateResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CertificateResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ExternalAuthConfigDefaultTypeInternal _ExternalAuthConfig_default_instance_; +PROTOBUF_CONSTEXPR AuthHandlerConfig::AuthHandlerConfig( + ::_pbi::ConstantInitialized) + : config_(nullptr) + , type_(0) +{} +struct AuthHandlerConfigDefaultTypeInternal { + PROTOBUF_CONSTEXPR AuthHandlerConfigDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AuthHandlerConfigDefaultTypeInternal() {} union { - CertificateResponse _instance; + AuthHandlerConfig _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CertificateResponseDefaultTypeInternal _CertificateResponse_default_instance_; - -inline constexpr CertificateRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR CertificateRequest::CertificateRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct CertificateRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR CertificateRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CertificateRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AuthHandlerConfigDefaultTypeInternal _AuthHandlerConfig_default_instance_; +PROTOBUF_CONSTEXPR Frame::Frame( + ::_pbi::ConstantInitialized) + : parent_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , translation_(nullptr) + , orientation_(nullptr) + , geometry_(nullptr){} +struct FrameDefaultTypeInternal { + PROTOBUF_CONSTEXPR FrameDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~FrameDefaultTypeInternal() {} union { - CertificateRequest _instance; + Frame _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CertificateRequestDefaultTypeInternal _CertificateRequest_default_instance_; - -inline constexpr AppValidationStatus::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : error_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR AppValidationStatus::AppValidationStatus(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct AppValidationStatusDefaultTypeInternal { - PROTOBUF_CONSTEXPR AppValidationStatusDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AppValidationStatusDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FrameDefaultTypeInternal _Frame_default_instance_; +PROTOBUF_CONSTEXPR LogConfiguration::LogConfiguration( + ::_pbi::ConstantInitialized) + : level_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct LogConfigurationDefaultTypeInternal { + PROTOBUF_CONSTEXPR LogConfigurationDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~LogConfigurationDefaultTypeInternal() {} union { - AppValidationStatus _instance; + LogConfiguration _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AppValidationStatusDefaultTypeInternal _AppValidationStatus_default_instance_; - -inline constexpr AgentInfo::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - ips_{}, - platform_tags_{}, - host_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - os_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - version_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - git_revision_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - platform_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()) {} - -template -PROTOBUF_CONSTEXPR AgentInfo::AgentInfo(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct AgentInfoDefaultTypeInternal { - PROTOBUF_CONSTEXPR AgentInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AgentInfoDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LogConfigurationDefaultTypeInternal _LogConfiguration_default_instance_; +PROTOBUF_CONSTEXPR Translation::Translation( + ::_pbi::ConstantInitialized) + : x_(0) + , y_(0) + , z_(0){} +struct TranslationDefaultTypeInternal { + PROTOBUF_CONSTEXPR TranslationDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~TranslationDefaultTypeInternal() {} union { - AgentInfo _instance; + Translation _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AgentInfoDefaultTypeInternal _AgentInfo_default_instance_; - -inline constexpr SessionsConfig::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - heartbeat_window_{nullptr} {} - -template -PROTOBUF_CONSTEXPR SessionsConfig::SessionsConfig(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct SessionsConfigDefaultTypeInternal { - PROTOBUF_CONSTEXPR SessionsConfigDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SessionsConfigDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TranslationDefaultTypeInternal _Translation_default_instance_; +PROTOBUF_CONSTEXPR Orientation_NoOrientation::Orientation_NoOrientation( + ::_pbi::ConstantInitialized){} +struct Orientation_NoOrientationDefaultTypeInternal { + PROTOBUF_CONSTEXPR Orientation_NoOrientationDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Orientation_NoOrientationDefaultTypeInternal() {} union { - SessionsConfig _instance; + Orientation_NoOrientation _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SessionsConfigDefaultTypeInternal _SessionsConfig_default_instance_; - -inline constexpr ResourceLevelServiceConfig::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - type_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - attributes_{nullptr} {} - -template -PROTOBUF_CONSTEXPR ResourceLevelServiceConfig::ResourceLevelServiceConfig(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ResourceLevelServiceConfigDefaultTypeInternal { - PROTOBUF_CONSTEXPR ResourceLevelServiceConfigDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ResourceLevelServiceConfigDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Orientation_NoOrientationDefaultTypeInternal _Orientation_NoOrientation_default_instance_; +PROTOBUF_CONSTEXPR Orientation_OrientationVectorRadians::Orientation_OrientationVectorRadians( + ::_pbi::ConstantInitialized) + : theta_(0) + , x_(0) + , y_(0) + , z_(0){} +struct Orientation_OrientationVectorRadiansDefaultTypeInternal { + PROTOBUF_CONSTEXPR Orientation_OrientationVectorRadiansDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Orientation_OrientationVectorRadiansDefaultTypeInternal() {} union { - ResourceLevelServiceConfig _instance; + Orientation_OrientationVectorRadians _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResourceLevelServiceConfigDefaultTypeInternal _ResourceLevelServiceConfig_default_instance_; - -inline constexpr RemoteAuth::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - entity_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - credentials_{nullptr} {} - -template -PROTOBUF_CONSTEXPR RemoteAuth::RemoteAuth(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct RemoteAuthDefaultTypeInternal { - PROTOBUF_CONSTEXPR RemoteAuthDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RemoteAuthDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Orientation_OrientationVectorRadiansDefaultTypeInternal _Orientation_OrientationVectorRadians_default_instance_; +PROTOBUF_CONSTEXPR Orientation_OrientationVectorDegrees::Orientation_OrientationVectorDegrees( + ::_pbi::ConstantInitialized) + : theta_(0) + , x_(0) + , y_(0) + , z_(0){} +struct Orientation_OrientationVectorDegreesDefaultTypeInternal { + PROTOBUF_CONSTEXPR Orientation_OrientationVectorDegreesDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Orientation_OrientationVectorDegreesDefaultTypeInternal() {} union { - RemoteAuth _instance; + Orientation_OrientationVectorDegrees _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RemoteAuthDefaultTypeInternal _RemoteAuth_default_instance_; - -inline constexpr ProcessConfig::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - args_{}, - env_{}, - id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - cwd_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - username_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - stop_timeout_{nullptr}, - one_shot_{false}, - log_{false}, - stop_signal_{0} {} - -template -PROTOBUF_CONSTEXPR ProcessConfig::ProcessConfig(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ProcessConfigDefaultTypeInternal { - PROTOBUF_CONSTEXPR ProcessConfigDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ProcessConfigDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Orientation_OrientationVectorDegreesDefaultTypeInternal _Orientation_OrientationVectorDegrees_default_instance_; +PROTOBUF_CONSTEXPR Orientation_EulerAngles::Orientation_EulerAngles( + ::_pbi::ConstantInitialized) + : roll_(0) + , pitch_(0) + , yaw_(0){} +struct Orientation_EulerAnglesDefaultTypeInternal { + PROTOBUF_CONSTEXPR Orientation_EulerAnglesDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Orientation_EulerAnglesDefaultTypeInternal() {} union { - ProcessConfig _instance; + Orientation_EulerAngles _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ProcessConfigDefaultTypeInternal _ProcessConfig_default_instance_; - -inline constexpr PackageConfig::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - package_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - version_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - type_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - status_{nullptr} {} - -template -PROTOBUF_CONSTEXPR PackageConfig::PackageConfig(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct PackageConfigDefaultTypeInternal { - PROTOBUF_CONSTEXPR PackageConfigDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~PackageConfigDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Orientation_EulerAnglesDefaultTypeInternal _Orientation_EulerAngles_default_instance_; +PROTOBUF_CONSTEXPR Orientation_AxisAngles::Orientation_AxisAngles( + ::_pbi::ConstantInitialized) + : theta_(0) + , x_(0) + , y_(0) + , z_(0){} +struct Orientation_AxisAnglesDefaultTypeInternal { + PROTOBUF_CONSTEXPR Orientation_AxisAnglesDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Orientation_AxisAnglesDefaultTypeInternal() {} union { - PackageConfig _instance; + Orientation_AxisAngles _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PackageConfigDefaultTypeInternal _PackageConfig_default_instance_; - -inline constexpr Orientation::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : type_{}, - _cached_size_{0}, - _oneof_case_{} {} - -template -PROTOBUF_CONSTEXPR Orientation::Orientation(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Orientation_AxisAnglesDefaultTypeInternal _Orientation_AxisAngles_default_instance_; +PROTOBUF_CONSTEXPR Orientation_Quaternion::Orientation_Quaternion( + ::_pbi::ConstantInitialized) + : w_(0) + , x_(0) + , y_(0) + , z_(0){} +struct Orientation_QuaternionDefaultTypeInternal { + PROTOBUF_CONSTEXPR Orientation_QuaternionDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Orientation_QuaternionDefaultTypeInternal() {} + union { + Orientation_Quaternion _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Orientation_QuaternionDefaultTypeInternal _Orientation_Quaternion_default_instance_; +PROTOBUF_CONSTEXPR Orientation::Orientation( + ::_pbi::ConstantInitialized) + : _oneof_case_{}{} struct OrientationDefaultTypeInternal { - PROTOBUF_CONSTEXPR OrientationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR OrientationDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~OrientationDefaultTypeInternal() {} union { Orientation _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OrientationDefaultTypeInternal _Orientation_default_instance_; - -inline constexpr NeedsRestartResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - restart_check_interval_{nullptr}, - must_restart_{false} {} - -template -PROTOBUF_CONSTEXPR NeedsRestartResponse::NeedsRestartResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct NeedsRestartResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR NeedsRestartResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~NeedsRestartResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OrientationDefaultTypeInternal _Orientation_default_instance_; +PROTOBUF_CONSTEXPR RemoteConfig::RemoteConfig( + ::_pbi::ConstantInitialized) + : service_configs_() + , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , address_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , managed_by_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , secret_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , frame_(nullptr) + , auth_(nullptr) + , connection_check_interval_(nullptr) + , reconnect_interval_(nullptr) + , insecure_(false){} +struct RemoteConfigDefaultTypeInternal { + PROTOBUF_CONSTEXPR RemoteConfigDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RemoteConfigDefaultTypeInternal() {} union { - NeedsRestartResponse _instance; + RemoteConfig _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NeedsRestartResponseDefaultTypeInternal _NeedsRestartResponse_default_instance_; - -inline constexpr ModuleConfig::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - env_{}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - path_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - log_level_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - type_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - module_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - status_{nullptr}, - first_run_timeout_{nullptr} {} - -template -PROTOBUF_CONSTEXPR ModuleConfig::ModuleConfig(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ModuleConfigDefaultTypeInternal { - PROTOBUF_CONSTEXPR ModuleConfigDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ModuleConfigDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RemoteConfigDefaultTypeInternal _RemoteConfig_default_instance_; +PROTOBUF_CONSTEXPR RemoteAuth_Credentials::RemoteAuth_Credentials( + ::_pbi::ConstantInitialized) + : payload_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , type_(0) +{} +struct RemoteAuth_CredentialsDefaultTypeInternal { + PROTOBUF_CONSTEXPR RemoteAuth_CredentialsDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RemoteAuth_CredentialsDefaultTypeInternal() {} union { - ModuleConfig _instance; + RemoteAuth_Credentials _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ModuleConfigDefaultTypeInternal _ModuleConfig_default_instance_; - -inline constexpr MaintenanceConfig::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - maintenance_allowed_key_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - sensor_name_{nullptr} {} - -template -PROTOBUF_CONSTEXPR MaintenanceConfig::MaintenanceConfig(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct MaintenanceConfigDefaultTypeInternal { - PROTOBUF_CONSTEXPR MaintenanceConfigDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~MaintenanceConfigDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RemoteAuth_CredentialsDefaultTypeInternal _RemoteAuth_Credentials_default_instance_; +PROTOBUF_CONSTEXPR RemoteAuth::RemoteAuth( + ::_pbi::ConstantInitialized) + : entity_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , credentials_(nullptr){} +struct RemoteAuthDefaultTypeInternal { + PROTOBUF_CONSTEXPR RemoteAuthDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RemoteAuthDefaultTypeInternal() {} union { - MaintenanceConfig _instance; + RemoteAuth _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MaintenanceConfigDefaultTypeInternal _MaintenanceConfig_default_instance_; - -inline constexpr JWKSFile::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - json_{nullptr} {} - -template -PROTOBUF_CONSTEXPR JWKSFile::JWKSFile(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct JWKSFileDefaultTypeInternal { - PROTOBUF_CONSTEXPR JWKSFileDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~JWKSFileDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RemoteAuthDefaultTypeInternal _RemoteAuth_default_instance_; +PROTOBUF_CONSTEXPR AgentInfo::AgentInfo( + ::_pbi::ConstantInitialized) + : ips_() + , platform_tags_() + , host_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , os_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , version_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , git_revision_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , platform_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct AgentInfoDefaultTypeInternal { + PROTOBUF_CONSTEXPR AgentInfoDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AgentInfoDefaultTypeInternal() {} union { - JWKSFile _instance; + AgentInfo _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 JWKSFileDefaultTypeInternal _JWKSFile_default_instance_; - -inline constexpr ConfigRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - agent_info_{nullptr} {} - -template -PROTOBUF_CONSTEXPR ConfigRequest::ConfigRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AgentInfoDefaultTypeInternal _AgentInfo_default_instance_; +PROTOBUF_CONSTEXPR ConfigRequest::ConfigRequest( + ::_pbi::ConstantInitialized) + : id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , agent_info_(nullptr){} struct ConfigRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR ConfigRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ConfigRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~ConfigRequestDefaultTypeInternal() {} union { ConfigRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConfigRequestDefaultTypeInternal _ConfigRequest_default_instance_; - -inline constexpr CloudConfig::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : location_secrets_{}, - id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - fqdn_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - local_fqdn_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - managed_by_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - signaling_address_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - location_secret_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - secret_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - primary_org_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - location_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - machine_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - signaling_insecure_{false}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR CloudConfig::CloudConfig(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct CloudConfigDefaultTypeInternal { - PROTOBUF_CONSTEXPR CloudConfigDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CloudConfigDefaultTypeInternal() {} - union { - CloudConfig _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CloudConfigDefaultTypeInternal _CloudConfig_default_instance_; - -inline constexpr AuthHandlerConfig::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - config_{nullptr}, - type_{static_cast< ::viam::app::v1::CredentialsType >(0)} {} - -template -PROTOBUF_CONSTEXPR AuthHandlerConfig::AuthHandlerConfig(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct AuthHandlerConfigDefaultTypeInternal { - PROTOBUF_CONSTEXPR AuthHandlerConfigDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AuthHandlerConfigDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConfigRequestDefaultTypeInternal _ConfigRequest_default_instance_; +PROTOBUF_CONSTEXPR ConfigResponse::ConfigResponse( + ::_pbi::ConstantInitialized) + : config_(nullptr){} +struct ConfigResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ConfigResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ConfigResponseDefaultTypeInternal() {} union { - AuthHandlerConfig _instance; + ConfigResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AuthHandlerConfigDefaultTypeInternal _AuthHandlerConfig_default_instance_; - -inline constexpr ServiceConfig::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - depends_on_{}, - service_configs_{}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - namespace__( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - type_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - model_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - api_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - attributes_{nullptr}, - log_configuration_{nullptr} {} - -template -PROTOBUF_CONSTEXPR ServiceConfig::ServiceConfig(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ServiceConfigDefaultTypeInternal { - PROTOBUF_CONSTEXPR ServiceConfigDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ServiceConfigDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConfigResponseDefaultTypeInternal _ConfigResponse_default_instance_; +PROTOBUF_CONSTEXPR CertificateRequest::CertificateRequest( + ::_pbi::ConstantInitialized) + : id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct CertificateRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR CertificateRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CertificateRequestDefaultTypeInternal() {} union { - ServiceConfig _instance; + CertificateRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ServiceConfigDefaultTypeInternal _ServiceConfig_default_instance_; - -inline constexpr NetworkConfig::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - fqdn_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - bind_address_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - tls_cert_file_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - tls_key_file_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - sessions_{nullptr} {} - -template -PROTOBUF_CONSTEXPR NetworkConfig::NetworkConfig(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct NetworkConfigDefaultTypeInternal { - PROTOBUF_CONSTEXPR NetworkConfigDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~NetworkConfigDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CertificateRequestDefaultTypeInternal _CertificateRequest_default_instance_; +PROTOBUF_CONSTEXPR CertificateResponse::CertificateResponse( + ::_pbi::ConstantInitialized) + : id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , tls_certificate_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , tls_private_key_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct CertificateResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR CertificateResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CertificateResponseDefaultTypeInternal() {} union { - NetworkConfig _instance; + CertificateResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NetworkConfigDefaultTypeInternal _NetworkConfig_default_instance_; - -inline constexpr LogRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : logs_{}, - id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR LogRequest::LogRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CertificateResponseDefaultTypeInternal _CertificateResponse_default_instance_; +PROTOBUF_CONSTEXPR LogRequest::LogRequest( + ::_pbi::ConstantInitialized) + : logs_() + , id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} struct LogRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR LogRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR LogRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~LogRequestDefaultTypeInternal() {} union { LogRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LogRequestDefaultTypeInternal _LogRequest_default_instance_; - -inline constexpr ExternalAuthConfig::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - jwks_{nullptr} {} - -template -PROTOBUF_CONSTEXPR ExternalAuthConfig::ExternalAuthConfig(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ExternalAuthConfigDefaultTypeInternal { - PROTOBUF_CONSTEXPR ExternalAuthConfigDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ExternalAuthConfigDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LogRequestDefaultTypeInternal _LogRequest_default_instance_; +PROTOBUF_CONSTEXPR LogResponse::LogResponse( + ::_pbi::ConstantInitialized){} +struct LogResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR LogResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~LogResponseDefaultTypeInternal() {} union { - ExternalAuthConfig _instance; + LogResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ExternalAuthConfigDefaultTypeInternal _ExternalAuthConfig_default_instance_; - -inline constexpr Frame::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - parent_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - translation_{nullptr}, - orientation_{nullptr}, - geometry_{nullptr} {} - -template -PROTOBUF_CONSTEXPR Frame::Frame(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct FrameDefaultTypeInternal { - PROTOBUF_CONSTEXPR FrameDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~FrameDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LogResponseDefaultTypeInternal _LogResponse_default_instance_; +PROTOBUF_CONSTEXPR NeedsRestartRequest::NeedsRestartRequest( + ::_pbi::ConstantInitialized) + : id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct NeedsRestartRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR NeedsRestartRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~NeedsRestartRequestDefaultTypeInternal() {} union { - Frame _instance; + NeedsRestartRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FrameDefaultTypeInternal _Frame_default_instance_; - -inline constexpr AuthConfig::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - handlers_{}, - tls_auth_entities_{}, - external_auth_config_{nullptr} {} - -template -PROTOBUF_CONSTEXPR AuthConfig::AuthConfig(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct AuthConfigDefaultTypeInternal { - PROTOBUF_CONSTEXPR AuthConfigDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AuthConfigDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NeedsRestartRequestDefaultTypeInternal _NeedsRestartRequest_default_instance_; +PROTOBUF_CONSTEXPR NeedsRestartResponse::NeedsRestartResponse( + ::_pbi::ConstantInitialized) + : id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , restart_check_interval_(nullptr) + , must_restart_(false){} +struct NeedsRestartResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR NeedsRestartResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~NeedsRestartResponseDefaultTypeInternal() {} union { - AuthConfig _instance; + NeedsRestartResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AuthConfigDefaultTypeInternal _AuthConfig_default_instance_; - -inline constexpr RemoteConfig::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - service_configs_{}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - address_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - managed_by_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - secret_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - frame_{nullptr}, - auth_{nullptr}, - connection_check_interval_{nullptr}, - reconnect_interval_{nullptr}, - insecure_{false} {} - -template -PROTOBUF_CONSTEXPR RemoteConfig::RemoteConfig(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct RemoteConfigDefaultTypeInternal { - PROTOBUF_CONSTEXPR RemoteConfigDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RemoteConfigDefaultTypeInternal() {} +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 { - RemoteConfig _instance; + ModuleConfig_EnvEntry_DoNotUse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RemoteConfigDefaultTypeInternal _RemoteConfig_default_instance_; - -inline constexpr ComponentConfig::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - depends_on_{}, - service_configs_{}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - namespace__( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - type_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - model_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - api_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - frame_{nullptr}, - attributes_{nullptr}, - log_configuration_{nullptr} {} - -template -PROTOBUF_CONSTEXPR ComponentConfig::ComponentConfig(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ComponentConfigDefaultTypeInternal { - PROTOBUF_CONSTEXPR ComponentConfigDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ComponentConfigDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ModuleConfig_EnvEntry_DoNotUseDefaultTypeInternal _ModuleConfig_EnvEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR ModuleConfig::ModuleConfig( + ::_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{}) + , type_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , module_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , status_(nullptr) + , first_run_timeout_(nullptr){} +struct ModuleConfigDefaultTypeInternal { + PROTOBUF_CONSTEXPR ModuleConfigDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ModuleConfigDefaultTypeInternal() {} union { - ComponentConfig _instance; + ModuleConfig _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ComponentConfigDefaultTypeInternal _ComponentConfig_default_instance_; - -inline constexpr RobotConfig::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - remotes_{}, - components_{}, - processes_{}, - services_{}, - modules_{}, - packages_{}, - overwrite_fragment_status_{}, - log_{}, - revision_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - cloud_{nullptr}, - network_{nullptr}, - auth_{nullptr}, - maintenance_{nullptr}, - debug_{false}, - disable_partial_start_{false}, - enable_web_profile_{false} {} - -template -PROTOBUF_CONSTEXPR RobotConfig::RobotConfig(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct RobotConfigDefaultTypeInternal { - PROTOBUF_CONSTEXPR RobotConfigDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RobotConfigDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ModuleConfigDefaultTypeInternal _ModuleConfig_default_instance_; +PROTOBUF_CONSTEXPR PackageConfig::PackageConfig( + ::_pbi::ConstantInitialized) + : 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{}) + , status_(nullptr){} +struct PackageConfigDefaultTypeInternal { + PROTOBUF_CONSTEXPR PackageConfigDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~PackageConfigDefaultTypeInternal() {} union { - RobotConfig _instance; + PackageConfig _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RobotConfigDefaultTypeInternal _RobotConfig_default_instance_; - -inline constexpr ConfigResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - config_{nullptr} {} - -template -PROTOBUF_CONSTEXPR ConfigResponse::ConfigResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ConfigResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ConfigResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ConfigResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PackageConfigDefaultTypeInternal _PackageConfig_default_instance_; +PROTOBUF_CONSTEXPR MaintenanceConfig::MaintenanceConfig( + ::_pbi::ConstantInitialized) + : maintenance_allowed_key_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , sensor_name_(nullptr){} +struct MaintenanceConfigDefaultTypeInternal { + PROTOBUF_CONSTEXPR MaintenanceConfigDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~MaintenanceConfigDefaultTypeInternal() {} union { - ConfigResponse _instance; + MaintenanceConfig _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConfigResponseDefaultTypeInternal _ConfigResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MaintenanceConfigDefaultTypeInternal _MaintenanceConfig_default_instance_; } // namespace v1 } // namespace app } // namespace viam static ::_pb::Metadata file_level_metadata_app_2fv1_2frobot_2eproto[42]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_app_2fv1_2frobot_2eproto[1]; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_app_2fv1_2frobot_2eproto = nullptr; -const ::uint32_t TableStruct_app_2fv1_2frobot_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotConfig, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotConfig, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotConfig, _impl_.cloud_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotConfig, _impl_.remotes_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotConfig, _impl_.components_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotConfig, _impl_.processes_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotConfig, _impl_.services_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotConfig, _impl_.network_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotConfig, _impl_.auth_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotConfig, _impl_.debug_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotConfig, _impl_.modules_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotConfig, _impl_.disable_partial_start_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotConfig, _impl_.packages_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotConfig, _impl_.overwrite_fragment_status_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotConfig, _impl_.enable_web_profile_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotConfig, _impl_.log_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotConfig, _impl_.revision_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotConfig, _impl_.maintenance_), - 0, - ~0u, - ~0u, - ~0u, - ~0u, - 1, - 2, - 4, - ~0u, - 5, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - 3, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::LogPatternConfig, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::LogPatternConfig, _impl_.pattern_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::LogPatternConfig, _impl_.level_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::LocationSecret, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::LocationSecret, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::LocationSecret, _impl_.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_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::AppValidationStatus, _impl_.error_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CloudConfig, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CloudConfig, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CloudConfig, _impl_.fqdn_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CloudConfig, _impl_.local_fqdn_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CloudConfig, _impl_.managed_by_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CloudConfig, _impl_.signaling_address_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CloudConfig, _impl_.signaling_insecure_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CloudConfig, _impl_.location_secret_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CloudConfig, _impl_.secret_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CloudConfig, _impl_.location_secrets_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CloudConfig, _impl_.primary_org_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CloudConfig, _impl_.location_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CloudConfig, _impl_.machine_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ComponentConfig, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ComponentConfig, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ComponentConfig, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ComponentConfig, _impl_.namespace__), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ComponentConfig, _impl_.type_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ComponentConfig, _impl_.model_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ComponentConfig, _impl_.frame_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ComponentConfig, _impl_.depends_on_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ComponentConfig, _impl_.service_configs_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ComponentConfig, _impl_.attributes_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ComponentConfig, _impl_.api_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ComponentConfig, _impl_.log_configuration_), - ~0u, - ~0u, - ~0u, - ~0u, - 0, - ~0u, - ~0u, - 1, - ~0u, - 2, - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ResourceLevelServiceConfig, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ResourceLevelServiceConfig, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ResourceLevelServiceConfig, _impl_.type_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ResourceLevelServiceConfig, _impl_.attributes_), - ~0u, - 0, - 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_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ProcessConfig_EnvEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ProcessConfig_EnvEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ProcessConfig, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ProcessConfig, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ProcessConfig, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ProcessConfig, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ProcessConfig, _impl_.args_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ProcessConfig, _impl_.cwd_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ProcessConfig, _impl_.one_shot_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ProcessConfig, _impl_.log_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ProcessConfig, _impl_.stop_signal_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ProcessConfig, _impl_.stop_timeout_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ProcessConfig, _impl_.env_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ProcessConfig, _impl_.username_), - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - 0, - ~0u, - ~0u, - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ServiceConfig, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ServiceConfig, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ServiceConfig, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ServiceConfig, _impl_.namespace__), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ServiceConfig, _impl_.type_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ServiceConfig, _impl_.attributes_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ServiceConfig, _impl_.depends_on_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ServiceConfig, _impl_.model_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ServiceConfig, _impl_.api_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ServiceConfig, _impl_.service_configs_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ServiceConfig, _impl_.log_configuration_), - ~0u, - ~0u, - ~0u, - 0, - ~0u, - ~0u, - ~0u, - ~0u, - 1, - PROTOBUF_FIELD_OFFSET(::viam::app::v1::NetworkConfig, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::NetworkConfig, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::NetworkConfig, _impl_.fqdn_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::NetworkConfig, _impl_.bind_address_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::NetworkConfig, _impl_.tls_cert_file_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::NetworkConfig, _impl_.tls_key_file_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::NetworkConfig, _impl_.sessions_), - ~0u, - ~0u, - ~0u, - ~0u, - 0, - PROTOBUF_FIELD_OFFSET(::viam::app::v1::SessionsConfig, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::SessionsConfig, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::SessionsConfig, _impl_.heartbeat_window_), - 0, - PROTOBUF_FIELD_OFFSET(::viam::app::v1::AuthConfig, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::AuthConfig, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::AuthConfig, _impl_.handlers_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::AuthConfig, _impl_.tls_auth_entities_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::AuthConfig, _impl_.external_auth_config_), - ~0u, - ~0u, - 0, - PROTOBUF_FIELD_OFFSET(::viam::app::v1::JWKSFile, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::JWKSFile, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::JWKSFile, _impl_.json_), - 0, - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ExternalAuthConfig, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ExternalAuthConfig, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ExternalAuthConfig, _impl_.jwks_), - 0, - PROTOBUF_FIELD_OFFSET(::viam::app::v1::AuthHandlerConfig, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::AuthHandlerConfig, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::AuthHandlerConfig, _impl_.type_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::AuthHandlerConfig, _impl_.config_), - ~0u, - 0, - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Frame, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Frame, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Frame, _impl_.parent_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Frame, _impl_.translation_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Frame, _impl_.orientation_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Frame, _impl_.geometry_), - ~0u, - 0, - 1, - 2, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::LogConfiguration, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::LogConfiguration, _impl_.level_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Translation, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Translation, _impl_.x_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Translation, _impl_.y_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Translation, _impl_.z_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_NoOrientation, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_OrientationVectorRadians, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_OrientationVectorRadians, _impl_.theta_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_OrientationVectorRadians, _impl_.x_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_OrientationVectorRadians, _impl_.y_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_OrientationVectorRadians, _impl_.z_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_OrientationVectorDegrees, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_OrientationVectorDegrees, _impl_.theta_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_OrientationVectorDegrees, _impl_.x_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_OrientationVectorDegrees, _impl_.y_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_OrientationVectorDegrees, _impl_.z_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_EulerAngles, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_EulerAngles, _impl_.roll_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_EulerAngles, _impl_.pitch_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_EulerAngles, _impl_.yaw_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_AxisAngles, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_AxisAngles, _impl_.theta_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_AxisAngles, _impl_.x_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_AxisAngles, _impl_.y_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_AxisAngles, _impl_.z_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_Quaternion, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_Quaternion, _impl_.w_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_Quaternion, _impl_.x_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_Quaternion, _impl_.y_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_Quaternion, _impl_.z_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation, _impl_._oneof_case_[0]), - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation, _impl_.type_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RemoteConfig, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RemoteConfig, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RemoteConfig, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RemoteConfig, _impl_.address_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RemoteConfig, _impl_.frame_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RemoteConfig, _impl_.auth_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RemoteConfig, _impl_.managed_by_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RemoteConfig, _impl_.insecure_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RemoteConfig, _impl_.connection_check_interval_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RemoteConfig, _impl_.reconnect_interval_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RemoteConfig, _impl_.service_configs_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RemoteConfig, _impl_.secret_), - ~0u, - ~0u, - 0, - 1, - ~0u, - ~0u, - 2, - 3, - ~0u, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RemoteAuth_Credentials, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RemoteAuth_Credentials, _impl_.type_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RemoteAuth_Credentials, _impl_.payload_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RemoteAuth, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RemoteAuth, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RemoteAuth, _impl_.credentials_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::RemoteAuth, _impl_.entity_), - 0, - ~0u, - PROTOBUF_FIELD_OFFSET(::viam::app::v1::AgentInfo, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::AgentInfo, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::AgentInfo, _impl_.host_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::AgentInfo, _impl_.os_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::AgentInfo, _impl_.ips_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::AgentInfo, _impl_.version_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::AgentInfo, _impl_.git_revision_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::AgentInfo, _impl_.platform_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::AgentInfo, _impl_.platform_tags_), - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - 0, - ~0u, - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ConfigRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ConfigRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ConfigRequest, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ConfigRequest, _impl_.agent_info_), - ~0u, - 0, - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ConfigResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ConfigResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ConfigResponse, _impl_.config_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CertificateRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CertificateRequest, _impl_.id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CertificateResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CertificateResponse, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CertificateResponse, _impl_.tls_certificate_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::CertificateResponse, _impl_.tls_private_key_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::LogRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::LogRequest, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::LogRequest, _impl_.logs_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::LogResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::app::v1::NeedsRestartRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::NeedsRestartRequest, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::NeedsRestartResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::NeedsRestartResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::NeedsRestartResponse, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::NeedsRestartResponse, _impl_.must_restart_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::NeedsRestartResponse, _impl_.restart_check_interval_), - ~0u, - ~0u, - 0, - 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_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleConfig_EnvEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleConfig_EnvEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleConfig, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleConfig, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleConfig, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleConfig, _impl_.path_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleConfig, _impl_.log_level_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleConfig, _impl_.type_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleConfig, _impl_.module_id_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleConfig, _impl_.env_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleConfig, _impl_.status_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleConfig, _impl_.first_run_timeout_), - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - 0, - 1, - PROTOBUF_FIELD_OFFSET(::viam::app::v1::PackageConfig, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::PackageConfig, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::PackageConfig, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::PackageConfig, _impl_.package_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::PackageConfig, _impl_.version_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::PackageConfig, _impl_.type_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::PackageConfig, _impl_.status_), - ~0u, - ~0u, - ~0u, - ~0u, - 0, - PROTOBUF_FIELD_OFFSET(::viam::app::v1::MaintenanceConfig, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::MaintenanceConfig, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::app::v1::MaintenanceConfig, _impl_.sensor_name_), - PROTOBUF_FIELD_OFFSET(::viam::app::v1::MaintenanceConfig, _impl_.maintenance_allowed_key_), - 0, - ~0u, -}; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, 24, -1, sizeof(::viam::app::v1::RobotConfig)}, - {40, -1, -1, sizeof(::viam::app::v1::LogPatternConfig)}, - {50, -1, -1, sizeof(::viam::app::v1::LocationSecret)}, - {60, -1, -1, sizeof(::viam::app::v1::AppValidationStatus)}, - {69, -1, -1, sizeof(::viam::app::v1::CloudConfig)}, - {89, 107, -1, sizeof(::viam::app::v1::ComponentConfig)}, - {117, 127, -1, sizeof(::viam::app::v1::ResourceLevelServiceConfig)}, - {129, 139, -1, sizeof(::viam::app::v1::ProcessConfig_EnvEntry_DoNotUse)}, - {141, 159, -1, sizeof(::viam::app::v1::ProcessConfig)}, - {169, 186, -1, sizeof(::viam::app::v1::ServiceConfig)}, - {195, 208, -1, sizeof(::viam::app::v1::NetworkConfig)}, - {213, 222, -1, sizeof(::viam::app::v1::SessionsConfig)}, - {223, 234, -1, sizeof(::viam::app::v1::AuthConfig)}, - {237, 246, -1, sizeof(::viam::app::v1::JWKSFile)}, - {247, 256, -1, sizeof(::viam::app::v1::ExternalAuthConfig)}, - {257, 267, -1, sizeof(::viam::app::v1::AuthHandlerConfig)}, - {269, 281, -1, sizeof(::viam::app::v1::Frame)}, - {285, -1, -1, sizeof(::viam::app::v1::LogConfiguration)}, - {294, -1, -1, sizeof(::viam::app::v1::Translation)}, - {305, -1, -1, sizeof(::viam::app::v1::Orientation_NoOrientation)}, - {313, -1, -1, sizeof(::viam::app::v1::Orientation_OrientationVectorRadians)}, - {325, -1, -1, sizeof(::viam::app::v1::Orientation_OrientationVectorDegrees)}, - {337, -1, -1, sizeof(::viam::app::v1::Orientation_EulerAngles)}, - {348, -1, -1, sizeof(::viam::app::v1::Orientation_AxisAngles)}, - {360, -1, -1, sizeof(::viam::app::v1::Orientation_Quaternion)}, - {372, -1, -1, sizeof(::viam::app::v1::Orientation)}, - {387, 405, -1, sizeof(::viam::app::v1::RemoteConfig)}, - {415, -1, -1, sizeof(::viam::app::v1::RemoteAuth_Credentials)}, - {425, 435, -1, sizeof(::viam::app::v1::RemoteAuth)}, - {437, 452, -1, sizeof(::viam::app::v1::AgentInfo)}, - {459, 469, -1, sizeof(::viam::app::v1::ConfigRequest)}, - {471, 480, -1, sizeof(::viam::app::v1::ConfigResponse)}, - {481, -1, -1, sizeof(::viam::app::v1::CertificateRequest)}, - {490, -1, -1, sizeof(::viam::app::v1::CertificateResponse)}, - {501, -1, -1, sizeof(::viam::app::v1::LogRequest)}, - {511, -1, -1, sizeof(::viam::app::v1::LogResponse)}, - {519, -1, -1, sizeof(::viam::app::v1::NeedsRestartRequest)}, - {528, 539, -1, sizeof(::viam::app::v1::NeedsRestartResponse)}, - {542, 552, -1, sizeof(::viam::app::v1::ModuleConfig_EnvEntry_DoNotUse)}, - {554, 570, -1, sizeof(::viam::app::v1::ModuleConfig)}, - {578, 591, -1, sizeof(::viam::app::v1::PackageConfig)}, - {596, 606, -1, sizeof(::viam::app::v1::MaintenanceConfig)}, +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_app_2fv1_2frobot_2eproto = nullptr; + +const uint32_t TableStruct_app_2fv1_2frobot_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotConfig, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotConfig, _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::RobotConfig, cloud_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotConfig, remotes_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotConfig, components_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotConfig, processes_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotConfig, services_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotConfig, network_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotConfig, auth_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotConfig, debug_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotConfig, modules_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotConfig, disable_partial_start_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotConfig, packages_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotConfig, overwrite_fragment_status_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotConfig, enable_web_profile_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotConfig, log_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotConfig, revision_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotConfig, maintenance_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RobotConfig, disable_log_deduplication_), + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + 0, + 1, + 3, + ~0u, + 4, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + 2, + ~0u, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::LogPatternConfig, _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::LogPatternConfig, pattern_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::LogPatternConfig, level_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::LocationSecret, _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::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_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CloudConfig, id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CloudConfig, fqdn_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CloudConfig, local_fqdn_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CloudConfig, managed_by_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CloudConfig, signaling_address_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CloudConfig, signaling_insecure_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CloudConfig, location_secret_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CloudConfig, secret_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CloudConfig, location_secrets_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CloudConfig, primary_org_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CloudConfig, location_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CloudConfig, machine_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ComponentConfig, _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::ComponentConfig, name_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ComponentConfig, namespace__), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ComponentConfig, type_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ComponentConfig, model_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ComponentConfig, frame_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ComponentConfig, depends_on_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ComponentConfig, service_configs_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ComponentConfig, attributes_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ComponentConfig, api_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ComponentConfig, log_configuration_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ResourceLevelServiceConfig, _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::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_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ProcessConfig, id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ProcessConfig, name_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ProcessConfig, args_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ProcessConfig, cwd_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ProcessConfig, one_shot_), + 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_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ProcessConfig, username_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ServiceConfig, _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::ServiceConfig, name_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ServiceConfig, namespace__), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ServiceConfig, type_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ServiceConfig, attributes_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ServiceConfig, depends_on_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ServiceConfig, model_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ServiceConfig, api_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ServiceConfig, service_configs_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ServiceConfig, log_configuration_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::NetworkConfig, _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::NetworkConfig, fqdn_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::NetworkConfig, bind_address_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::NetworkConfig, tls_cert_file_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::NetworkConfig, tls_key_file_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::NetworkConfig, sessions_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::SessionsConfig, _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::SessionsConfig, heartbeat_window_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::AuthConfig, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::AuthConfig, _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::AuthConfig, handlers_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::AuthConfig, tls_auth_entities_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::AuthConfig, external_auth_config_), + ~0u, + ~0u, + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::JWKSFile, _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::JWKSFile, json_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ExternalAuthConfig, _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::ExternalAuthConfig, jwks_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::AuthHandlerConfig, _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::AuthHandlerConfig, type_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::AuthHandlerConfig, config_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Frame, _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::Frame, parent_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Frame, translation_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Frame, orientation_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Frame, geometry_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::LogConfiguration, _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::LogConfiguration, level_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Translation, _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::Translation, x_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Translation, y_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Translation, z_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_NoOrientation, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_OrientationVectorRadians, _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::Orientation_OrientationVectorRadians, theta_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_OrientationVectorRadians, x_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_OrientationVectorRadians, y_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_OrientationVectorRadians, z_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_OrientationVectorDegrees, _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::Orientation_OrientationVectorDegrees, theta_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_OrientationVectorDegrees, x_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_OrientationVectorDegrees, y_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_OrientationVectorDegrees, z_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_EulerAngles, _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::Orientation_EulerAngles, roll_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_EulerAngles, pitch_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_EulerAngles, yaw_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_AxisAngles, _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::Orientation_AxisAngles, theta_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_AxisAngles, x_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_AxisAngles, y_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_AxisAngles, z_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_Quaternion, _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::Orientation_Quaternion, w_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_Quaternion, x_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_Quaternion, y_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation_Quaternion, z_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation, type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RemoteConfig, _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::RemoteConfig, name_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RemoteConfig, address_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RemoteConfig, frame_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RemoteConfig, auth_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RemoteConfig, managed_by_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RemoteConfig, insecure_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RemoteConfig, connection_check_interval_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RemoteConfig, reconnect_interval_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RemoteConfig, service_configs_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RemoteConfig, secret_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RemoteAuth_Credentials, _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::RemoteAuth_Credentials, type_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RemoteAuth_Credentials, payload_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RemoteAuth, _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::RemoteAuth, credentials_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::RemoteAuth, entity_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::AgentInfo, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::AgentInfo, _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::AgentInfo, host_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::AgentInfo, os_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::AgentInfo, ips_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::AgentInfo, version_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::AgentInfo, git_revision_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::AgentInfo, platform_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::AgentInfo, platform_tags_), + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + 0, + ~0u, + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ConfigRequest, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ConfigRequest, _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::ConfigRequest, id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ConfigRequest, agent_info_), + ~0u, + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ConfigResponse, _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::ConfigResponse, config_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CertificateRequest, _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::CertificateRequest, id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CertificateResponse, _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::CertificateResponse, id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CertificateResponse, tls_certificate_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::CertificateResponse, tls_private_key_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::LogRequest, _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::LogRequest, id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::LogRequest, logs_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::LogResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::NeedsRestartRequest, _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::NeedsRestartRequest, id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::NeedsRestartResponse, _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::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_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + 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_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleConfig, first_run_timeout_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::PackageConfig, _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::PackageConfig, name_), + 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_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::MaintenanceConfig, _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::MaintenanceConfig, sensor_name_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::MaintenanceConfig, maintenance_allowed_key_), +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, 23, -1, sizeof(::viam::app::v1::RobotConfig)}, + { 40, -1, -1, sizeof(::viam::app::v1::LogPatternConfig)}, + { 48, -1, -1, sizeof(::viam::app::v1::LocationSecret)}, + { 56, -1, -1, sizeof(::viam::app::v1::AppValidationStatus)}, + { 63, -1, -1, sizeof(::viam::app::v1::CloudConfig)}, + { 81, -1, -1, sizeof(::viam::app::v1::ComponentConfig)}, + { 97, -1, -1, sizeof(::viam::app::v1::ResourceLevelServiceConfig)}, + { 105, 113, -1, sizeof(::viam::app::v1::ProcessConfig_EnvEntry_DoNotUse)}, + { 115, -1, -1, sizeof(::viam::app::v1::ProcessConfig)}, + { 131, -1, -1, sizeof(::viam::app::v1::ServiceConfig)}, + { 146, -1, -1, sizeof(::viam::app::v1::NetworkConfig)}, + { 157, -1, -1, sizeof(::viam::app::v1::SessionsConfig)}, + { 164, 173, -1, sizeof(::viam::app::v1::AuthConfig)}, + { 176, -1, -1, sizeof(::viam::app::v1::JWKSFile)}, + { 183, -1, -1, sizeof(::viam::app::v1::ExternalAuthConfig)}, + { 190, -1, -1, sizeof(::viam::app::v1::AuthHandlerConfig)}, + { 198, -1, -1, sizeof(::viam::app::v1::Frame)}, + { 208, -1, -1, sizeof(::viam::app::v1::LogConfiguration)}, + { 215, -1, -1, sizeof(::viam::app::v1::Translation)}, + { 224, -1, -1, sizeof(::viam::app::v1::Orientation_NoOrientation)}, + { 230, -1, -1, sizeof(::viam::app::v1::Orientation_OrientationVectorRadians)}, + { 240, -1, -1, sizeof(::viam::app::v1::Orientation_OrientationVectorDegrees)}, + { 250, -1, -1, sizeof(::viam::app::v1::Orientation_EulerAngles)}, + { 259, -1, -1, sizeof(::viam::app::v1::Orientation_AxisAngles)}, + { 269, -1, -1, sizeof(::viam::app::v1::Orientation_Quaternion)}, + { 279, -1, -1, sizeof(::viam::app::v1::Orientation)}, + { 292, -1, -1, sizeof(::viam::app::v1::RemoteConfig)}, + { 308, -1, -1, sizeof(::viam::app::v1::RemoteAuth_Credentials)}, + { 316, -1, -1, sizeof(::viam::app::v1::RemoteAuth)}, + { 324, 337, -1, sizeof(::viam::app::v1::AgentInfo)}, + { 344, 352, -1, sizeof(::viam::app::v1::ConfigRequest)}, + { 354, -1, -1, sizeof(::viam::app::v1::ConfigResponse)}, + { 361, -1, -1, sizeof(::viam::app::v1::CertificateRequest)}, + { 368, -1, -1, sizeof(::viam::app::v1::CertificateResponse)}, + { 377, -1, -1, sizeof(::viam::app::v1::LogRequest)}, + { 385, -1, -1, sizeof(::viam::app::v1::LogResponse)}, + { 391, -1, -1, sizeof(::viam::app::v1::NeedsRestartRequest)}, + { 398, -1, -1, sizeof(::viam::app::v1::NeedsRestartResponse)}, + { 407, 415, -1, sizeof(::viam::app::v1::ModuleConfig_EnvEntry_DoNotUse)}, + { 417, -1, -1, sizeof(::viam::app::v1::ModuleConfig)}, + { 431, -1, -1, sizeof(::viam::app::v1::PackageConfig)}, + { 442, -1, -1, sizeof(::viam::app::v1::MaintenanceConfig)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::viam::app::v1::_RobotConfig_default_instance_._instance, - &::viam::app::v1::_LogPatternConfig_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, - &::viam::app::v1::_SessionsConfig_default_instance_._instance, - &::viam::app::v1::_AuthConfig_default_instance_._instance, - &::viam::app::v1::_JWKSFile_default_instance_._instance, - &::viam::app::v1::_ExternalAuthConfig_default_instance_._instance, - &::viam::app::v1::_AuthHandlerConfig_default_instance_._instance, - &::viam::app::v1::_Frame_default_instance_._instance, - &::viam::app::v1::_LogConfiguration_default_instance_._instance, - &::viam::app::v1::_Translation_default_instance_._instance, - &::viam::app::v1::_Orientation_NoOrientation_default_instance_._instance, - &::viam::app::v1::_Orientation_OrientationVectorRadians_default_instance_._instance, - &::viam::app::v1::_Orientation_OrientationVectorDegrees_default_instance_._instance, - &::viam::app::v1::_Orientation_EulerAngles_default_instance_._instance, - &::viam::app::v1::_Orientation_AxisAngles_default_instance_._instance, - &::viam::app::v1::_Orientation_Quaternion_default_instance_._instance, - &::viam::app::v1::_Orientation_default_instance_._instance, - &::viam::app::v1::_RemoteConfig_default_instance_._instance, - &::viam::app::v1::_RemoteAuth_Credentials_default_instance_._instance, - &::viam::app::v1::_RemoteAuth_default_instance_._instance, - &::viam::app::v1::_AgentInfo_default_instance_._instance, - &::viam::app::v1::_ConfigRequest_default_instance_._instance, - &::viam::app::v1::_ConfigResponse_default_instance_._instance, - &::viam::app::v1::_CertificateRequest_default_instance_._instance, - &::viam::app::v1::_CertificateResponse_default_instance_._instance, - &::viam::app::v1::_LogRequest_default_instance_._instance, - &::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, - &::viam::app::v1::_MaintenanceConfig_default_instance_._instance, -}; -const char descriptor_table_protodef_app_2fv1_2frobot_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n\022app/v1/robot.proto\022\013viam.app.v1\032\026commo" - "n/v1/common.proto\032\036google/protobuf/durat" - "ion.proto\032\034google/protobuf/struct.proto\032" - "\026tagger/v1/tagger.proto\"\271\007\n\013RobotConfig\022" - ".\n\005cloud\030\001 \001(\0132\030.viam.app.v1.CloudConfig" - "R\005cloud\0223\n\007remotes\030\002 \003(\0132\031.viam.app.v1.R" - "emoteConfigR\007remotes\022<\n\ncomponents\030\003 \003(\013" - "2\034.viam.app.v1.ComponentConfigR\ncomponen" - "ts\0228\n\tprocesses\030\004 \003(\0132\032.viam.app.v1.Proc" - "essConfigR\tprocesses\0226\n\010services\030\005 \003(\0132\032" - ".viam.app.v1.ServiceConfigR\010services\0229\n\007" - "network\030\006 \001(\0132\032.viam.app.v1.NetworkConfi" - "gH\000R\007network\210\001\001\0220\n\004auth\030\007 \001(\0132\027.viam.app" - ".v1.AuthConfigH\001R\004auth\210\001\001\022\031\n\005debug\030\010 \001(\010" - "H\002R\005debug\210\001\001\0223\n\007modules\030\t \003(\0132\031.viam.app" - ".v1.ModuleConfigR\007modules\0227\n\025disable_par" - "tial_start\030\n \001(\010H\003R\023disablePartialStart\210" - "\001\001\0226\n\010packages\030\013 \003(\0132\032.viam.app.v1.Packa" - "geConfigR\010packages\022\\\n\031overwrite_fragment" - "_status\030\014 \003(\0132 .viam.app.v1.AppValidatio" - "nStatusR\027overwriteFragmentStatus\022,\n\022enab" - "le_web_profile\030\r \001(\010R\020enableWebProfile\022/" - "\n\003log\030\016 \003(\0132\035.viam.app.v1.LogPatternConf" - "igR\003log\022\032\n\010revision\030\017 \001(\tR\010revision\022E\n\013m" - "aintenance\030\020 \001(\0132\036.viam.app.v1.Maintenan" - "ceConfigH\004R\013maintenance\210\001\001B\n\n\010_networkB\007" - "\n\005_authB\010\n\006_debugB\030\n\026_disable_partial_st" - "artB\016\n\014_maintenance\"B\n\020LogPatternConfig\022" - "\030\n\007pattern\030\001 \001(\tR\007pattern\022\024\n\005level\030\002 \001(\t" - "R\005level\"8\n\016LocationSecret\022\016\n\002id\030\001 \001(\tR\002i" - "d\022\026\n\006secret\030\002 \001(\tR\006secret\"+\n\023AppValidati" - "onStatus\022\024\n\005error\030\001 \001(\tR\005error\"\276\003\n\013Cloud" - "Config\022\016\n\002id\030\001 \001(\tR\002id\022\022\n\004fqdn\030\002 \001(\tR\004fq" - "dn\022\035\n\nlocal_fqdn\030\003 \001(\tR\tlocalFqdn\022\035\n\nman" - "aged_by\030\004 \001(\tR\tmanagedBy\022+\n\021signaling_ad" - "dress\030\005 \001(\tR\020signalingAddress\022-\n\022signali" - "ng_insecure\030\006 \001(\010R\021signalingInsecure\022+\n\017" - "location_secret\030\007 \001(\tB\002\030\001R\016locationSecre" - "t\022\026\n\006secret\030\010 \001(\tR\006secret\022F\n\020location_se" - "crets\030\t \003(\0132\033.viam.app.v1.LocationSecret" - "R\017locationSecrets\022$\n\016primary_org_id\030\n \001(" - "\tR\014primaryOrgId\022\037\n\013location_id\030\013 \001(\tR\nlo" - "cationId\022\035\n\nmachine_id\030\014 \001(\tR\tmachineId\"" - "\273\003\n\017ComponentConfig\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\005model\030\004 \001(\tR\005model\022(\n\005frame" - "\030\005 \001(\0132\022.viam.app.v1.FrameR\005frame\022\035\n\ndep" - "ends_on\030\006 \003(\tR\tdependsOn\022l\n\017service_conf" - "igs\030\007 \003(\0132\'.viam.app.v1.ResourceLevelSer" - "viceConfigB\032\232\204\236\003\025json:\"service_config\"R\016" - "serviceConfigs\0227\n\nattributes\030\010 \001(\0132\027.goo" - "gle.protobuf.StructR\nattributes\022\020\n\003api\030\t" - " \001(\tR\003api\022J\n\021log_configuration\030\n \001(\0132\035.v" - "iam.app.v1.LogConfigurationR\020logConfigur" - "ation\"i\n\032ResourceLevelServiceConfig\022\022\n\004t" - "ype\030\001 \001(\tR\004type\0227\n\nattributes\030\002 \001(\0132\027.go" - "ogle.protobuf.StructR\nattributes\"\360\002\n\rPro" - "cessConfig\022\016\n\002id\030\001 \001(\tR\002id\022\022\n\004name\030\002 \001(\t" - "R\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\nstopSign" - "al\022<\n\014stop_timeout\030\010 \001(\0132\031.google.protob" - "uf.DurationR\013stopTimeout\0225\n\003env\030\t \003(\0132#." - "viam.app.v1.ProcessConfig.EnvEntryR\003env\022" - "\032\n\010username\030\n \001(\tR\010username\0326\n\010EnvEntry\022" - "\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\tR\005value:" - "\0028\001\"\217\003\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\022J\n\021log_configuration\030\013 \001(\0132\035.v" - "iam.app.v1.LogConfigurationR\020logConfigur" - "ation\"\305\001\n\rNetworkConfig\022\022\n\004fqdn\030\001 \001(\tR\004f" - "qdn\022!\n\014bind_address\030\002 \001(\tR\013bindAddress\022\"" - "\n\rtls_cert_file\030\003 \001(\tR\013tlsCertFile\022 \n\014tl" - "s_key_file\030\004 \001(\tR\ntlsKeyFile\0227\n\010sessions" - "\030\005 \001(\0132\033.viam.app.v1.SessionsConfigR\010ses" - "sions\"V\n\016SessionsConfig\022D\n\020heartbeat_win" - "dow\030\001 \001(\0132\031.google.protobuf.DurationR\017he" - "artbeatWindow\"\345\001\n\nAuthConfig\022:\n\010handlers" - "\030\001 \003(\0132\036.viam.app.v1.AuthHandlerConfigR\010" - "handlers\022*\n\021tls_auth_entities\030\002 \003(\tR\017tls" - "AuthEntities\022V\n\024external_auth_config\030\003 \001" - "(\0132\037.viam.app.v1.ExternalAuthConfigH\000R\022e" - "xternalAuthConfig\210\001\001B\027\n\025_external_auth_c" - "onfig\"7\n\010JWKSFile\022+\n\004json\030\001 \001(\0132\027.google" - ".protobuf.StructR\004json\"\?\n\022ExternalAuthCo" - "nfig\022)\n\004jwks\030\001 \001(\0132\025.viam.app.v1.JWKSFil" - "eR\004jwks\"v\n\021AuthHandlerConfig\0220\n\004type\030\001 \001" - "(\0162\034.viam.app.v1.CredentialsTypeR\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\006paren" - "t\022:\n\013translation\030\002 \001(\0132\030.viam.app.v1.Tra" - "nslationR\013translation\022:\n\013orientation\030\003 \001" - "(\0132\030.viam.app.v1.OrientationR\013orientatio" - "n\0224\n\010geometry\030\004 \001(\0132\030.viam.common.v1.Geo" - "metryR\010geometry\"(\n\020LogConfiguration\022\024\n\005l" - "evel\030\001 \001(\tR\005level\"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\013O" - "rientation\022O\n\016no_orientation\030\001 \001(\0132&.via" - "m.app.v1.Orientation.NoOrientationH\000R\rno" - "Orientation\022Z\n\016vector_radians\030\002 \001(\01321.vi" - "am.app.v1.Orientation.OrientationVectorR" - "adiansH\000R\rvectorRadians\022Z\n\016vector_degree" - "s\030\003 \001(\01321.viam.app.v1.Orientation.Orient" - "ationVectorDegreesH\000R\rvectorDegrees\022I\n\014e" - "uler_angles\030\004 \001(\0132$.viam.app.v1.Orientat" - "ion.EulerAnglesH\000R\013eulerAngles\022F\n\013axis_a" - "ngles\030\005 \001(\0132#.viam.app.v1.Orientation.Ax" - "isAnglesH\000R\naxisAngles\022E\n\nquaternion\030\006 \001" - "(\0132#.viam.app.v1.Orientation.QuaternionH" - "\000R\nquaternion\032\017\n\rNoOrientation\032j\n\030Orient" - "ationVectorRadians\022$\n\005theta\030\001 \001(\001B\016\232\204\236\003\t" - "json:\"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\030OrientationVectorD" - "egrees\022$\n\005theta\030\001 \001(\001B\016\232\204\236\003\tjson:\"th\"R\005t" - "heta\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\004rol" - "l\022\024\n\005pitch\030\002 \001(\001R\005pitch\022\020\n\003yaw\030\003 \001(\001R\003ya" - "w\032\\\n\nAxisAngles\022$\n\005theta\030\001 \001(\001B\016\232\204\236\003\tjso" - "n:\"th\"R\005theta\022\014\n\001x\030\002 \001(\001R\001x\022\014\n\001y\030\003 \001(\001R\001" - "y\022\014\n\001z\030\004 \001(\001R\001z\032D\n\nQuaternion\022\014\n\001w\030\001 \001(\001" - "R\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\005" - "frame\030\003 \001(\0132\022.viam.app.v1.FrameR\005frame\022+" - "\n\004auth\030\004 \001(\0132\027.viam.app.v1.RemoteAuthR\004a" - "uth\022\035\n\nmanaged_by\030\005 \001(\tR\tmanagedBy\022\032\n\010in" - "secure\030\006 \001(\010R\010insecure\022U\n\031connection_che" - "ck_interval\030\007 \001(\0132\031.google.protobuf.Dura" - "tionR\027connectionCheckInterval\022H\n\022reconne" - "ct_interval\030\010 \001(\0132\031.google.protobuf.Dura" - "tionR\021reconnectInterval\022l\n\017service_confi" - "gs\030\t \003(\0132\'.viam.app.v1.ResourceLevelServ" - "iceConfigB\032\232\204\236\003\025json:\"service_config\"R\016s" - "erviceConfigs\022\026\n\006secret\030\n \001(\tR\006secret\"\306\001" - "\n\nRemoteAuth\022E\n\013credentials\030\001 \001(\0132#.viam" - ".app.v1.RemoteAuth.CredentialsR\013credenti" - "als\022\026\n\006entity\030\002 \001(\tR\006entity\032Y\n\013Credentia" - "ls\0220\n\004type\030\001 \001(\0162\034.viam.app.v1.Credentia" - "lsTypeR\004type\022\030\n\007payload\030\002 \001(\tR\007payload\"\321" - "\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\013gitR" - "evision\022\037\n\010platform\030\006 \001(\tH\000R\010platform\210\001\001" - "\022#\n\rplatform_tags\030\007 \003(\tR\014platformTagsB\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.Ag" - "entInfoH\000R\tagentInfo\210\001\001B\r\n\013_agent_info\"B" - "\n\016ConfigResponse\0220\n\006config\030\001 \001(\0132\030.viam." - "app.v1.RobotConfigR\006config\"$\n\022Certificat" - "eRequest\022\016\n\002id\030\001 \001(\tR\002id\"v\n\023CertificateR" - "esponse\022\016\n\002id\030\001 \001(\tR\002id\022\'\n\017tls_certifica" - "te\030\002 \001(\tR\016tlsCertificate\022&\n\017tls_private_" - "key\030\003 \001(\tR\rtlsPrivateKey\"J\n\nLogRequest\022\016" - "\n\002id\030\001 \001(\tR\002id\022,\n\004logs\030\002 \003(\0132\030.viam.comm" - "on.v1.LogEntryR\004logs\"\r\n\013LogResponse\"%\n\023N" - "eedsRestartRequest\022\016\n\002id\030\001 \001(\tR\002id\"\232\001\n\024N" - "eedsRestartResponse\022\016\n\002id\030\001 \001(\tR\002id\022!\n\014m" - "ust_restart\030\002 \001(\010R\013mustRestart\022O\n\026restar" - "t_check_interval\030\003 \001(\0132\031.google.protobuf" - ".DurationR\024restartCheckInterval\"\363\002\n\014Modu" - "leConfig\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\010mo" - "duleId\0224\n\003env\030\006 \003(\0132\".viam.app.v1.Module" - "Config.EnvEntryR\003env\0228\n\006status\030\007 \001(\0132 .v" - "iam.app.v1.AppValidationStatusR\006status\022E" - "\n\021first_run_timeout\030\010 \001(\0132\031.google.proto" - "buf.DurationR\017firstRunTimeout\0326\n\010EnvEntr" - "y\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\tR\005valu" - "e:\0028\001\"\245\001\n\rPackageConfig\022\022\n\004name\030\001 \001(\tR\004n" - "ame\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\0228\n\006s" - "tatus\030\005 \001(\0132 .viam.app.v1.AppValidationS" - "tatusR\006status\"\212\001\n\021MaintenanceConfig\022=\n\013s" - "ensor_name\030\001 \001(\0132\034.viam.common.v1.Resour" - "ceNameR\nsensorName\0226\n\027maintenance_allowe" - "d_key\030\002 \001(\tR\025maintenanceAllowedKey*\277\001\n\017C" - "redentialsType\022 \n\034CREDENTIALS_TYPE_UNSPE" - "CIFIED\020\000\022\035\n\031CREDENTIALS_TYPE_INTERNAL\020\001\022" - "\034\n\030CREDENTIALS_TYPE_API_KEY\020\002\022!\n\035CREDENT" - "IALS_TYPE_ROBOT_SECRET\020\003\022*\n&CREDENTIALS_" - "TYPE_ROBOT_LOCATION_SECRET\020\0042\262\002\n\014RobotSe" - "rvice\022A\n\006Config\022\032.viam.app.v1.ConfigRequ" - "est\032\033.viam.app.v1.ConfigResponse\022P\n\013Cert" - "ificate\022\037.viam.app.v1.CertificateRequest" - "\032 .viam.app.v1.CertificateResponse\0228\n\003Lo" - "g\022\027.viam.app.v1.LogRequest\032\030.viam.app.v1" - ".LogResponse\022S\n\014NeedsRestart\022 .viam.app." - "v1.NeedsRestartRequest\032!.viam.app.v1.Nee" - "dsRestartResponseB\203\001\n\017com.viam.app.v1B\nR" - "obotProtoP\001Z\026go.viam.com/api/app/v1\242\002\003VA" - "X\252\002\013Viam.App.V1\312\002\013Viam\\App\\V1\342\002\027Viam\\App" - "\\V1\\GPBMetadata\352\002\rViam::App::V1b\006proto3" -}; -static const ::_pbi::DescriptorTable* const descriptor_table_app_2fv1_2frobot_2eproto_deps[4] = - { - &::descriptor_table_common_2fv1_2fcommon_2eproto, - &::descriptor_table_google_2fprotobuf_2fduration_2eproto, - &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, - &::descriptor_table_tagger_2fv1_2ftagger_2eproto, -}; -static ::absl::once_flag descriptor_table_app_2fv1_2frobot_2eproto_once; + &::viam::app::v1::_RobotConfig_default_instance_._instance, + &::viam::app::v1::_LogPatternConfig_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, + &::viam::app::v1::_SessionsConfig_default_instance_._instance, + &::viam::app::v1::_AuthConfig_default_instance_._instance, + &::viam::app::v1::_JWKSFile_default_instance_._instance, + &::viam::app::v1::_ExternalAuthConfig_default_instance_._instance, + &::viam::app::v1::_AuthHandlerConfig_default_instance_._instance, + &::viam::app::v1::_Frame_default_instance_._instance, + &::viam::app::v1::_LogConfiguration_default_instance_._instance, + &::viam::app::v1::_Translation_default_instance_._instance, + &::viam::app::v1::_Orientation_NoOrientation_default_instance_._instance, + &::viam::app::v1::_Orientation_OrientationVectorRadians_default_instance_._instance, + &::viam::app::v1::_Orientation_OrientationVectorDegrees_default_instance_._instance, + &::viam::app::v1::_Orientation_EulerAngles_default_instance_._instance, + &::viam::app::v1::_Orientation_AxisAngles_default_instance_._instance, + &::viam::app::v1::_Orientation_Quaternion_default_instance_._instance, + &::viam::app::v1::_Orientation_default_instance_._instance, + &::viam::app::v1::_RemoteConfig_default_instance_._instance, + &::viam::app::v1::_RemoteAuth_Credentials_default_instance_._instance, + &::viam::app::v1::_RemoteAuth_default_instance_._instance, + &::viam::app::v1::_AgentInfo_default_instance_._instance, + &::viam::app::v1::_ConfigRequest_default_instance_._instance, + &::viam::app::v1::_ConfigResponse_default_instance_._instance, + &::viam::app::v1::_CertificateRequest_default_instance_._instance, + &::viam::app::v1::_CertificateResponse_default_instance_._instance, + &::viam::app::v1::_LogRequest_default_instance_._instance, + &::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, + &::viam::app::v1::_MaintenanceConfig_default_instance_._instance, +}; + +const char descriptor_table_protodef_app_2fv1_2frobot_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\022app/v1/robot.proto\022\013viam.app.v1\032\026commo" + "n/v1/common.proto\032\036google/protobuf/durat" + "ion.proto\032\034google/protobuf/struct.proto\032" + "\026tagger/v1/tagger.proto\"\365\007\n\013RobotConfig\022" + ".\n\005cloud\030\001 \001(\0132\030.viam.app.v1.CloudConfig" + "R\005cloud\0223\n\007remotes\030\002 \003(\0132\031.viam.app.v1.R" + "emoteConfigR\007remotes\022<\n\ncomponents\030\003 \003(\013" + "2\034.viam.app.v1.ComponentConfigR\ncomponen" + "ts\0228\n\tprocesses\030\004 \003(\0132\032.viam.app.v1.Proc" + "essConfigR\tprocesses\0226\n\010services\030\005 \003(\0132\032" + ".viam.app.v1.ServiceConfigR\010services\0229\n\007" + "network\030\006 \001(\0132\032.viam.app.v1.NetworkConfi" + "gH\000R\007network\210\001\001\0220\n\004auth\030\007 \001(\0132\027.viam.app" + ".v1.AuthConfigH\001R\004auth\210\001\001\022\031\n\005debug\030\010 \001(\010" + "H\002R\005debug\210\001\001\0223\n\007modules\030\t \003(\0132\031.viam.app" + ".v1.ModuleConfigR\007modules\0227\n\025disable_par" + "tial_start\030\n \001(\010H\003R\023disablePartialStart\210" + "\001\001\0226\n\010packages\030\013 \003(\0132\032.viam.app.v1.Packa" + "geConfigR\010packages\022\\\n\031overwrite_fragment" + "_status\030\014 \003(\0132 .viam.app.v1.AppValidatio" + "nStatusR\027overwriteFragmentStatus\022,\n\022enab" + "le_web_profile\030\r \001(\010R\020enableWebProfile\022/" + "\n\003log\030\016 \003(\0132\035.viam.app.v1.LogPatternConf" + "igR\003log\022\032\n\010revision\030\017 \001(\tR\010revision\022E\n\013m" + "aintenance\030\020 \001(\0132\036.viam.app.v1.Maintenan" + "ceConfigH\004R\013maintenance\210\001\001\022:\n\031disable_lo" + "g_deduplication\030\021 \001(\010R\027disableLogDedupli" + "cationB\n\n\010_networkB\007\n\005_authB\010\n\006_debugB\030\n" + "\026_disable_partial_startB\016\n\014_maintenance\"" + "B\n\020LogPatternConfig\022\030\n\007pattern\030\001 \001(\tR\007pa" + "ttern\022\024\n\005level\030\002 \001(\tR\005level\"8\n\016LocationS" + "ecret\022\016\n\002id\030\001 \001(\tR\002id\022\026\n\006secret\030\002 \001(\tR\006s" + "ecret\"+\n\023AppValidationStatus\022\024\n\005error\030\001 " + "\001(\tR\005error\"\276\003\n\013CloudConfig\022\016\n\002id\030\001 \001(\tR\002" + "id\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\tmanag" + "edBy\022+\n\021signaling_address\030\005 \001(\tR\020signali" + "ngAddress\022-\n\022signaling_insecure\030\006 \001(\010R\021s" + "ignalingInsecure\022+\n\017location_secret\030\007 \001(" + "\tB\002\030\001R\016locationSecret\022\026\n\006secret\030\010 \001(\tR\006s" + "ecret\022F\n\020location_secrets\030\t \003(\0132\033.viam.a" + "pp.v1.LocationSecretR\017locationSecrets\022$\n" + "\016primary_org_id\030\n \001(\tR\014primaryOrgId\022\037\n\013l" + "ocation_id\030\013 \001(\tR\nlocationId\022\035\n\nmachine_" + "id\030\014 \001(\tR\tmachineId\"\273\003\n\017ComponentConfig\022" + "\022\n\004name\030\001 \001(\tR\004name\022\034\n\tnamespace\030\002 \001(\tR\t" + "namespace\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\tdepen" + "dsOn\022l\n\017service_configs\030\007 \003(\0132\'.viam.app" + ".v1.ResourceLevelServiceConfigB\032\232\204\236\003\025jso" + "n:\"service_config\"R\016serviceConfigs\0227\n\nat" + "tributes\030\010 \001(\0132\027.google.protobuf.StructR" + "\nattributes\022\020\n\003api\030\t \001(\tR\003api\022J\n\021log_con" + "figuration\030\n \001(\0132\035.viam.app.v1.LogConfig" + "urationR\020logConfiguration\"i\n\032ResourceLev" + "elServiceConfig\022\022\n\004type\030\001 \001(\tR\004type\0227\n\na" + "ttributes\030\002 \001(\0132\027.google.protobuf.Struct" + "R\nattributes\"\360\002\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(\t" + "R\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_si" + "gnal\030\007 \001(\005R\nstopSignal\022<\n\014stop_timeout\030\010" + " \001(\0132\031.google.protobuf.DurationR\013stopTim" + "eout\0225\n\003env\030\t \003(\0132#.viam.app.v1.ProcessC" + "onfig.EnvEntryR\003env\022\032\n\010username\030\n \001(\tR\010u" + "sername\0326\n\010EnvEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n" + "\005value\030\002 \001(\tR\005value:\0028\001\"\217\003\n\rServiceConfi" + "g\022\022\n\004name\030\001 \001(\tR\004name\022\034\n\tnamespace\030\002 \001(\t" + "R\tnamespace\022\022\n\004type\030\003 \001(\tR\004type\0227\n\nattri" + "butes\030\004 \001(\0132\027.google.protobuf.StructR\nat" + "tributes\022\035\n\ndepends_on\030\005 \003(\tR\tdependsOn\022" + "\024\n\005model\030\006 \001(\tR\005model\022\020\n\003api\030\t \001(\tR\003api\022" + "l\n\017service_configs\030\n \003(\0132\'.viam.app.v1.R" + "esourceLevelServiceConfigB\032\232\204\236\003\025json:\"se" + "rvice_config\"R\016serviceConfigs\022J\n\021log_con" + "figuration\030\013 \001(\0132\035.viam.app.v1.LogConfig" + "urationR\020logConfiguration\"\305\001\n\rNetworkCon" + "fig\022\022\n\004fqdn\030\001 \001(\tR\004fqdn\022!\n\014bind_address\030" + "\002 \001(\tR\013bindAddress\022\"\n\rtls_cert_file\030\003 \001(" + "\tR\013tlsCertFile\022 \n\014tls_key_file\030\004 \001(\tR\ntl" + "sKeyFile\0227\n\010sessions\030\005 \001(\0132\033.viam.app.v1" + ".SessionsConfigR\010sessions\"V\n\016SessionsCon" + "fig\022D\n\020heartbeat_window\030\001 \001(\0132\031.google.p" + "rotobuf.DurationR\017heartbeatWindow\"\345\001\n\nAu" + "thConfig\022:\n\010handlers\030\001 \003(\0132\036.viam.app.v1" + ".AuthHandlerConfigR\010handlers\022*\n\021tls_auth" + "_entities\030\002 \003(\tR\017tlsAuthEntities\022V\n\024exte" + "rnal_auth_config\030\003 \001(\0132\037.viam.app.v1.Ext" + "ernalAuthConfigH\000R\022externalAuthConfig\210\001\001" + "B\027\n\025_external_auth_config\"7\n\010JWKSFile\022+\n" + "\004json\030\001 \001(\0132\027.google.protobuf.StructR\004js" + "on\"\?\n\022ExternalAuthConfig\022)\n\004jwks\030\001 \001(\0132\025" + ".viam.app.v1.JWKSFileR\004jwks\"v\n\021AuthHandl" + "erConfig\0220\n\004type\030\001 \001(\0162\034.viam.app.v1.Cre" + "dentialsTypeR\004type\022/\n\006config\030\005 \001(\0132\027.goo" + "gle.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.app.v1.TranslationR\013translatio" + "n\022:\n\013orientation\030\003 \001(\0132\030.viam.app.v1.Ori" + "entationR\013orientation\0224\n\010geometry\030\004 \001(\0132" + "\030.viam.common.v1.GeometryR\010geometry\"(\n\020L" + "ogConfiguration\022\024\n\005level\030\001 \001(\tR\005level\"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_ori" + "entation\030\001 \001(\0132&.viam.app.v1.Orientation" + ".NoOrientationH\000R\rnoOrientation\022Z\n\016vecto" + "r_radians\030\002 \001(\01321.viam.app.v1.Orientatio" + "n.OrientationVectorRadiansH\000R\rvectorRadi" + "ans\022Z\n\016vector_degrees\030\003 \001(\01321.viam.app.v" + "1.Orientation.OrientationVectorDegreesH\000" + "R\rvectorDegrees\022I\n\014euler_angles\030\004 \001(\0132$." + "viam.app.v1.Orientation.EulerAnglesH\000R\013e" + "ulerAngles\022F\n\013axis_angles\030\005 \001(\0132#.viam.a" + "pp.v1.Orientation.AxisAnglesH\000R\naxisAngl" + "es\022E\n\nquaternion\030\006 \001(\0132#.viam.app.v1.Ori" + "entation.QuaternionH\000R\nquaternion\032\017\n\rNoO" + "rientation\032j\n\030OrientationVectorRadians\022$" + "\n\005theta\030\001 \001(\001B\016\232\204\236\003\tjson:\"th\"R\005theta\022\014\n\001" + "x\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\030OrientationVectorDegrees\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\013EulerAngle" + "s\022\022\n\004roll\030\001 \001(\001R\004roll\022\024\n\005pitch\030\002 \001(\001R\005pi" + "tch\022\020\n\003yaw\030\003 \001(\001R\003yaw\032\\\n\nAxisAngles\022$\n\005t" + "heta\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\nQ" + "uaternion\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\014Re" + "moteConfig\022\022\n\004name\030\001 \001(\tR\004name\022\030\n\007addres" + "s\030\002 \001(\tR\007address\022(\n\005frame\030\003 \001(\0132\022.viam.a" + "pp.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\010insecure\030\006 \001(\010R\010insecu" + "re\022U\n\031connection_check_interval\030\007 \001(\0132\031." + "google.protobuf.DurationR\027connectionChec" + "kInterval\022H\n\022reconnect_interval\030\010 \001(\0132\031." + "google.protobuf.DurationR\021reconnectInter" + "val\022l\n\017service_configs\030\t \003(\0132\'.viam.app." + "v1.ResourceLevelServiceConfigB\032\232\204\236\003\025json" + ":\"service_config\"R\016serviceConfigs\022\026\n\006sec" + "ret\030\n \001(\tR\006secret\"\306\001\n\nRemoteAuth\022E\n\013cred" + "entials\030\001 \001(\0132#.viam.app.v1.RemoteAuth.C" + "redentialsR\013credentials\022\026\n\006entity\030\002 \001(\tR" + "\006entity\032Y\n\013Credentials\0220\n\004type\030\001 \001(\0162\034.v" + "iam.app.v1.CredentialsTypeR\004type\022\030\n\007payl" + "oad\030\002 \001(\tR\007payload\"\321\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\013gitRevision\022\037\n\010platform\030" + "\006 \001(\tH\000R\010platform\210\001\001\022#\n\rplatform_tags\030\007 " + "\003(\tR\014platformTagsB\013\n\t_platform\"j\n\rConfig" + "Request\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_info\"B\n\016ConfigResponse\0220\n\006" + "config\030\001 \001(\0132\030.viam.app.v1.RobotConfigR\006" + "config\"$\n\022CertificateRequest\022\016\n\002id\030\001 \001(\t" + "R\002id\"v\n\023CertificateResponse\022\016\n\002id\030\001 \001(\tR" + "\002id\022\'\n\017tls_certificate\030\002 \001(\tR\016tlsCertifi" + "cate\022&\n\017tls_private_key\030\003 \001(\tR\rtlsPrivat" + "eKey\"J\n\nLogRequest\022\016\n\002id\030\001 \001(\tR\002id\022,\n\004lo" + "gs\030\002 \003(\0132\030.viam.common.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\013m" + "ustRestart\022O\n\026restart_check_interval\030\003 \001" + "(\0132\031.google.protobuf.DurationR\024restartCh" + "eckInterval\"\363\002\n\014ModuleConfig\022\022\n\004name\030\001 \001" + "(\tR\004name\022\022\n\004path\030\002 \001(\tR\004path\022\033\n\tlog_leve" + "l\030\003 \001(\tR\010logLevel\022\022\n\004type\030\004 \001(\tR\004type\022\033\n" + "\tmodule_id\030\005 \001(\tR\010moduleId\0224\n\003env\030\006 \003(\0132" + "\".viam.app.v1.ModuleConfig.EnvEntryR\003env" + "\0228\n\006status\030\007 \001(\0132 .viam.app.v1.AppValida" + "tionStatusR\006status\022E\n\021first_run_timeout\030" + "\010 \001(\0132\031.google.protobuf.DurationR\017firstR" + "unTimeout\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\rPackageCon" + "fig\022\022\n\004name\030\001 \001(\tR\004name\022\030\n\007package\030\002 \001(\t" + "R\007package\022\030\n\007version\030\003 \001(\tR\007version\022\022\n\004t" + "ype\030\004 \001(\tR\004type\0228\n\006status\030\005 \001(\0132 .viam.a" + "pp.v1.AppValidationStatusR\006status\"\212\001\n\021Ma" + "intenanceConfig\022=\n\013sensor_name\030\001 \001(\0132\034.v" + "iam.common.v1.ResourceNameR\nsensorName\0226" + "\n\027maintenance_allowed_key\030\002 \001(\tR\025mainten" + "anceAllowedKey*\277\001\n\017CredentialsType\022 \n\034CR" + "EDENTIALS_TYPE_UNSPECIFIED\020\000\022\035\n\031CREDENTI" + "ALS_TYPE_INTERNAL\020\001\022\034\n\030CREDENTIALS_TYPE_" + "API_KEY\020\002\022!\n\035CREDENTIALS_TYPE_ROBOT_SECR" + "ET\020\003\022*\n&CREDENTIALS_TYPE_ROBOT_LOCATION_" + "SECRET\020\0042\262\002\n\014RobotService\022A\n\006Config\022\032.vi" + "am.app.v1.ConfigRequest\032\033.viam.app.v1.Co" + "nfigResponse\022P\n\013Certificate\022\037.viam.app.v" + "1.CertificateRequest\032 .viam.app.v1.Certi" + "ficateResponse\0228\n\003Log\022\027.viam.app.v1.LogR" + "equest\032\030.viam.app.v1.LogResponse\022S\n\014Need" + "sRestart\022 .viam.app.v1.NeedsRestartReque" + "st\032!.viam.app.v1.NeedsRestartResponseB\030Z" + "\026go.viam.com/api/app/v1b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_app_2fv1_2frobot_2eproto_deps[4] = { + &::descriptor_table_common_2fv1_2fcommon_2eproto, + &::descriptor_table_google_2fprotobuf_2fduration_2eproto, + &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, + &::descriptor_table_tagger_2fv1_2ftagger_2eproto, +}; +static ::_pbi::once_flag descriptor_table_app_2fv1_2frobot_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_app_2fv1_2frobot_2eproto = { - false, - false, - 7959, - descriptor_table_protodef_app_2fv1_2frobot_2eproto, + false, false, 7911, 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, - 4, - 42, - 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, + &descriptor_table_app_2fv1_2frobot_2eproto_once, descriptor_table_app_2fv1_2frobot_2eproto_deps, 4, 42, + 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, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_app_2fv1_2frobot_2eproto_getter() { return &descriptor_table_app_2fv1_2frobot_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_app_2fv1_2frobot_2eproto(&descriptor_table_app_2fv1_2frobot_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_app_2fv1_2frobot_2eproto(&descriptor_table_app_2fv1_2frobot_2eproto); namespace viam { namespace app { namespace v1 { -const ::google::protobuf::EnumDescriptor* CredentialsType_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_app_2fv1_2frobot_2eproto); +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* CredentialsType_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_app_2fv1_2frobot_2eproto); return file_level_enum_descriptors_app_2fv1_2frobot_2eproto[0]; } -PROTOBUF_CONSTINIT const uint32_t CredentialsType_internal_data_[] = { - 327680u, 0u, }; bool CredentialsType_IsValid(int value) { - return 0 <= value && value <= 4; + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + return true; + default: + return false; + } } + + // =================================================================== class RobotConfig::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(RobotConfig, _impl_._has_bits_); + using HasBits = decltype(std::declval()._has_bits_); static const ::viam::app::v1::CloudConfig& cloud(const RobotConfig* msg); - static void set_has_cloud(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } static const ::viam::app::v1::NetworkConfig& network(const RobotConfig* msg); static void set_has_network(HasBits* has_bits) { - (*has_bits)[0] |= 2u; + (*has_bits)[0] |= 1u; } static const ::viam::app::v1::AuthConfig& auth(const RobotConfig* msg); static void set_has_auth(HasBits* has_bits) { - (*has_bits)[0] |= 4u; + (*has_bits)[0] |= 2u; } static void set_has_debug(HasBits* has_bits) { - (*has_bits)[0] |= 16u; + (*has_bits)[0] |= 8u; } static void set_has_disable_partial_start(HasBits* has_bits) { - (*has_bits)[0] |= 32u; + (*has_bits)[0] |= 16u; } static const ::viam::app::v1::MaintenanceConfig& maintenance(const RobotConfig* msg); static void set_has_maintenance(HasBits* has_bits) { - (*has_bits)[0] |= 8u; + (*has_bits)[0] |= 4u; } }; -const ::viam::app::v1::CloudConfig& RobotConfig::_Internal::cloud(const RobotConfig* msg) { - return *msg->_impl_.cloud_; +const ::viam::app::v1::CloudConfig& +RobotConfig::_Internal::cloud(const RobotConfig* msg) { + return *msg->cloud_; } -const ::viam::app::v1::NetworkConfig& RobotConfig::_Internal::network(const RobotConfig* msg) { - return *msg->_impl_.network_; +const ::viam::app::v1::NetworkConfig& +RobotConfig::_Internal::network(const RobotConfig* msg) { + return *msg->network_; } -const ::viam::app::v1::AuthConfig& RobotConfig::_Internal::auth(const RobotConfig* msg) { - return *msg->_impl_.auth_; +const ::viam::app::v1::AuthConfig& +RobotConfig::_Internal::auth(const RobotConfig* msg) { + return *msg->auth_; } -const ::viam::app::v1::MaintenanceConfig& RobotConfig::_Internal::maintenance(const RobotConfig* msg) { - return *msg->_impl_.maintenance_; +const ::viam::app::v1::MaintenanceConfig& +RobotConfig::_Internal::maintenance(const RobotConfig* msg) { + return *msg->maintenance_; } -RobotConfig::RobotConfig(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +RobotConfig::RobotConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + remotes_(arena), + components_(arena), + processes_(arena), + services_(arena), + modules_(arena), + packages_(arena), + overwrite_fragment_status_(arena), + log_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.v1.RobotConfig) } -inline PROTOBUF_NDEBUG_INLINE RobotConfig::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - remotes_{visibility, arena, from.remotes_}, - components_{visibility, arena, from.components_}, - processes_{visibility, arena, from.processes_}, - services_{visibility, arena, from.services_}, - modules_{visibility, arena, from.modules_}, - packages_{visibility, arena, from.packages_}, - overwrite_fragment_status_{visibility, arena, from.overwrite_fragment_status_}, - log_{visibility, arena, from.log_}, - revision_(arena, from.revision_) {} - -RobotConfig::RobotConfig( - ::google::protobuf::Arena* arena, - const RobotConfig& from) - : ::google::protobuf::Message(arena) { - RobotConfig* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.cloud_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::app::v1::CloudConfig>(arena, *from._impl_.cloud_) - : nullptr; - _impl_.network_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::viam::app::v1::NetworkConfig>(arena, *from._impl_.network_) - : nullptr; - _impl_.auth_ = (cached_has_bits & 0x00000004u) - ? CreateMaybeMessage<::viam::app::v1::AuthConfig>(arena, *from._impl_.auth_) - : nullptr; - _impl_.maintenance_ = (cached_has_bits & 0x00000008u) - ? CreateMaybeMessage<::viam::app::v1::MaintenanceConfig>(arena, *from._impl_.maintenance_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, debug_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, debug_), - offsetof(Impl_, enable_web_profile_) - - offsetof(Impl_, debug_) + - sizeof(Impl_::enable_web_profile_)); - +RobotConfig::RobotConfig(const RobotConfig& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_), + remotes_(from.remotes_), + components_(from.components_), + processes_(from.processes_), + services_(from.services_), + modules_(from.modules_), + packages_(from.packages_), + overwrite_fragment_status_(from.overwrite_fragment_status_), + log_(from.log_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + revision_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + revision_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_revision().empty()) { + revision_.Set(from._internal_revision(), + GetArenaForAllocation()); + } + if (from._internal_has_cloud()) { + cloud_ = new ::viam::app::v1::CloudConfig(*from.cloud_); + } else { + cloud_ = nullptr; + } + if (from._internal_has_network()) { + network_ = new ::viam::app::v1::NetworkConfig(*from.network_); + } else { + network_ = nullptr; + } + if (from._internal_has_auth()) { + auth_ = new ::viam::app::v1::AuthConfig(*from.auth_); + } else { + auth_ = nullptr; + } + if (from._internal_has_maintenance()) { + maintenance_ = new ::viam::app::v1::MaintenanceConfig(*from.maintenance_); + } else { + maintenance_ = nullptr; + } + ::memcpy(&debug_, &from.debug_, + static_cast(reinterpret_cast(&disable_log_deduplication_) - + reinterpret_cast(&debug_)) + sizeof(disable_log_deduplication_)); // @@protoc_insertion_point(copy_constructor:viam.app.v1.RobotConfig) } -inline PROTOBUF_NDEBUG_INLINE RobotConfig::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - remotes_{visibility, arena}, - components_{visibility, arena}, - processes_{visibility, arena}, - services_{visibility, arena}, - modules_{visibility, arena}, - packages_{visibility, arena}, - overwrite_fragment_status_{visibility, arena}, - log_{visibility, arena}, - revision_(arena) {} - -inline void RobotConfig::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, cloud_), - 0, - offsetof(Impl_, enable_web_profile_) - - offsetof(Impl_, cloud_) + - sizeof(Impl_::enable_web_profile_)); + +inline void RobotConfig::SharedCtor() { +revision_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + revision_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&cloud_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&disable_log_deduplication_) - + reinterpret_cast(&cloud_)) + sizeof(disable_log_deduplication_)); } + RobotConfig::~RobotConfig() { // @@protoc_insertion_point(destructor:viam.app.v1.RobotConfig) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void RobotConfig::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.revision_.Destroy(); - delete _impl_.cloud_; - delete _impl_.network_; - delete _impl_.auth_; - delete _impl_.maintenance_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + revision_.Destroy(); + if (this != internal_default_instance()) delete cloud_; + if (this != internal_default_instance()) delete network_; + if (this != internal_default_instance()) delete auth_; + if (this != internal_default_instance()) delete maintenance_; +} + +void RobotConfig::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void RobotConfig::Clear() { +void RobotConfig::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.RobotConfig) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.remotes_.Clear(); - _impl_.components_.Clear(); - _impl_.processes_.Clear(); - _impl_.services_.Clear(); - _impl_.modules_.Clear(); - _impl_.packages_.Clear(); - _impl_.overwrite_fragment_status_.Clear(); - _impl_.log_.Clear(); - _impl_.revision_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { + remotes_.Clear(); + components_.Clear(); + processes_.Clear(); + services_.Clear(); + modules_.Clear(); + packages_.Clear(); + overwrite_fragment_status_.Clear(); + log_.Clear(); + revision_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && cloud_ != nullptr) { + delete cloud_; + } + cloud_ = nullptr; + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.cloud_ != nullptr); - _impl_.cloud_->Clear(); + GOOGLE_DCHECK(network_ != nullptr); + network_->Clear(); } if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.network_ != nullptr); - _impl_.network_->Clear(); + GOOGLE_DCHECK(auth_ != nullptr); + auth_->Clear(); } if (cached_has_bits & 0x00000004u) { - ABSL_DCHECK(_impl_.auth_ != nullptr); - _impl_.auth_->Clear(); - } - if (cached_has_bits & 0x00000008u) { - ABSL_DCHECK(_impl_.maintenance_ != nullptr); - _impl_.maintenance_->Clear(); + GOOGLE_DCHECK(maintenance_ != nullptr); + maintenance_->Clear(); } } - ::memset(&_impl_.debug_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.disable_partial_start_) - - reinterpret_cast(&_impl_.debug_)) + sizeof(_impl_.disable_partial_start_)); - _impl_.enable_web_profile_ = false; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* RobotConfig::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + ::memset(&debug_, 0, static_cast( + reinterpret_cast(&disable_partial_start_) - + reinterpret_cast(&debug_)) + sizeof(disable_partial_start_)); + ::memset(&enable_web_profile_, 0, static_cast( + reinterpret_cast(&disable_log_deduplication_) - + reinterpret_cast(&enable_web_profile_)) + sizeof(disable_log_deduplication_)); + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RobotConfig::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .viam.app.v1.CloudConfig cloud = 1 [json_name = "cloud"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_cloud(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // repeated .viam.app.v1.RemoteConfig remotes = 2 [json_name = "remotes"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_remotes(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } else + goto handle_unusual; + continue; + // repeated .viam.app.v1.ComponentConfig components = 3 [json_name = "components"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_components(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); + } else + goto handle_unusual; + continue; + // repeated .viam.app.v1.ProcessConfig processes = 4 [json_name = "processes"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_processes(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr)); + } else + goto handle_unusual; + continue; + // repeated .viam.app.v1.ServiceConfig services = 5 [json_name = "services"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_services(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr)); + } else + goto handle_unusual; + continue; + // optional .viam.app.v1.NetworkConfig network = 6 [json_name = "network"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr = ctx->ParseMessage(_internal_mutable_network(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional .viam.app.v1.AuthConfig auth = 7 [json_name = "auth"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + ptr = ctx->ParseMessage(_internal_mutable_auth(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional bool debug = 8 [json_name = "debug"]; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 64)) { + _Internal::set_has_debug(&has_bits); + debug_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // repeated .viam.app.v1.ModuleConfig modules = 9 [json_name = "modules"]; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_modules(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<74>(ptr)); + } else + goto handle_unusual; + continue; + // optional bool disable_partial_start = 10 [json_name = "disablePartialStart"]; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 80)) { + _Internal::set_has_disable_partial_start(&has_bits); + disable_partial_start_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // repeated .viam.app.v1.PackageConfig packages = 11 [json_name = "packages"]; + case 11: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 90)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_packages(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<90>(ptr)); + } else + goto handle_unusual; + continue; + // repeated .viam.app.v1.AppValidationStatus overwrite_fragment_status = 12 [json_name = "overwriteFragmentStatus"]; + case 12: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 98)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_overwrite_fragment_status(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<98>(ptr)); + } else + goto handle_unusual; + continue; + // bool enable_web_profile = 13 [json_name = "enableWebProfile"]; + case 13: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 104)) { + enable_web_profile_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // repeated .viam.app.v1.LogPatternConfig log = 14 [json_name = "log"]; + case 14: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 114)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_log(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<114>(ptr)); + } else + goto handle_unusual; + continue; + // string revision = 15 [json_name = "revision"]; + case 15: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 122)) { + auto str = _internal_mutable_revision(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RobotConfig.revision")); + } else + goto handle_unusual; + continue; + // optional .viam.app.v1.MaintenanceConfig maintenance = 16 [json_name = "maintenance"]; + case 16: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 130)) { + ptr = ctx->ParseMessage(_internal_mutable_maintenance(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool disable_log_deduplication = 17 [json_name = "disableLogDeduplication"]; + case 17: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 136)) { + disable_log_deduplication_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<4, 16, 12, 56, 2> RobotConfig::_table_ = { - { - PROTOBUF_FIELD_OFFSET(RobotConfig, _impl_._has_bits_), - 0, // no _extensions_ - 16, 120, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294901760, // skipmap - offsetof(decltype(_table_), field_entries), - 16, // num_field_entries - 12, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_RobotConfig_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // optional .viam.app.v1.MaintenanceConfig maintenance = 16 [json_name = "maintenance"]; - {::_pbi::TcParser::FastMtS2, - {386, 3, 11, PROTOBUF_FIELD_OFFSET(RobotConfig, _impl_.maintenance_)}}, - // .viam.app.v1.CloudConfig cloud = 1 [json_name = "cloud"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(RobotConfig, _impl_.cloud_)}}, - // repeated .viam.app.v1.RemoteConfig remotes = 2 [json_name = "remotes"]; - {::_pbi::TcParser::FastMtR1, - {18, 63, 1, PROTOBUF_FIELD_OFFSET(RobotConfig, _impl_.remotes_)}}, - // repeated .viam.app.v1.ComponentConfig components = 3 [json_name = "components"]; - {::_pbi::TcParser::FastMtR1, - {26, 63, 2, PROTOBUF_FIELD_OFFSET(RobotConfig, _impl_.components_)}}, - // repeated .viam.app.v1.ProcessConfig processes = 4 [json_name = "processes"]; - {::_pbi::TcParser::FastMtR1, - {34, 63, 3, PROTOBUF_FIELD_OFFSET(RobotConfig, _impl_.processes_)}}, - // repeated .viam.app.v1.ServiceConfig services = 5 [json_name = "services"]; - {::_pbi::TcParser::FastMtR1, - {42, 63, 4, PROTOBUF_FIELD_OFFSET(RobotConfig, _impl_.services_)}}, - // optional .viam.app.v1.NetworkConfig network = 6 [json_name = "network"]; - {::_pbi::TcParser::FastMtS1, - {50, 1, 5, PROTOBUF_FIELD_OFFSET(RobotConfig, _impl_.network_)}}, - // optional .viam.app.v1.AuthConfig auth = 7 [json_name = "auth"]; - {::_pbi::TcParser::FastMtS1, - {58, 2, 6, PROTOBUF_FIELD_OFFSET(RobotConfig, _impl_.auth_)}}, - // optional bool debug = 8 [json_name = "debug"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {64, 4, 0, PROTOBUF_FIELD_OFFSET(RobotConfig, _impl_.debug_)}}, - // repeated .viam.app.v1.ModuleConfig modules = 9 [json_name = "modules"]; - {::_pbi::TcParser::FastMtR1, - {74, 63, 7, PROTOBUF_FIELD_OFFSET(RobotConfig, _impl_.modules_)}}, - // optional bool disable_partial_start = 10 [json_name = "disablePartialStart"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {80, 5, 0, PROTOBUF_FIELD_OFFSET(RobotConfig, _impl_.disable_partial_start_)}}, - // repeated .viam.app.v1.PackageConfig packages = 11 [json_name = "packages"]; - {::_pbi::TcParser::FastMtR1, - {90, 63, 8, PROTOBUF_FIELD_OFFSET(RobotConfig, _impl_.packages_)}}, - // repeated .viam.app.v1.AppValidationStatus overwrite_fragment_status = 12 [json_name = "overwriteFragmentStatus"]; - {::_pbi::TcParser::FastMtR1, - {98, 63, 9, PROTOBUF_FIELD_OFFSET(RobotConfig, _impl_.overwrite_fragment_status_)}}, - // bool enable_web_profile = 13 [json_name = "enableWebProfile"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {104, 63, 0, PROTOBUF_FIELD_OFFSET(RobotConfig, _impl_.enable_web_profile_)}}, - // repeated .viam.app.v1.LogPatternConfig log = 14 [json_name = "log"]; - {::_pbi::TcParser::FastMtR1, - {114, 63, 10, PROTOBUF_FIELD_OFFSET(RobotConfig, _impl_.log_)}}, - // string revision = 15 [json_name = "revision"]; - {::_pbi::TcParser::FastUS1, - {122, 63, 0, PROTOBUF_FIELD_OFFSET(RobotConfig, _impl_.revision_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.app.v1.CloudConfig cloud = 1 [json_name = "cloud"]; - {PROTOBUF_FIELD_OFFSET(RobotConfig, _impl_.cloud_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated .viam.app.v1.RemoteConfig remotes = 2 [json_name = "remotes"]; - {PROTOBUF_FIELD_OFFSET(RobotConfig, _impl_.remotes_), -1, 1, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated .viam.app.v1.ComponentConfig components = 3 [json_name = "components"]; - {PROTOBUF_FIELD_OFFSET(RobotConfig, _impl_.components_), -1, 2, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated .viam.app.v1.ProcessConfig processes = 4 [json_name = "processes"]; - {PROTOBUF_FIELD_OFFSET(RobotConfig, _impl_.processes_), -1, 3, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated .viam.app.v1.ServiceConfig services = 5 [json_name = "services"]; - {PROTOBUF_FIELD_OFFSET(RobotConfig, _impl_.services_), -1, 4, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // optional .viam.app.v1.NetworkConfig network = 6 [json_name = "network"]; - {PROTOBUF_FIELD_OFFSET(RobotConfig, _impl_.network_), _Internal::kHasBitsOffset + 1, 5, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // optional .viam.app.v1.AuthConfig auth = 7 [json_name = "auth"]; - {PROTOBUF_FIELD_OFFSET(RobotConfig, _impl_.auth_), _Internal::kHasBitsOffset + 2, 6, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // optional bool debug = 8 [json_name = "debug"]; - {PROTOBUF_FIELD_OFFSET(RobotConfig, _impl_.debug_), _Internal::kHasBitsOffset + 4, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // repeated .viam.app.v1.ModuleConfig modules = 9 [json_name = "modules"]; - {PROTOBUF_FIELD_OFFSET(RobotConfig, _impl_.modules_), -1, 7, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // optional bool disable_partial_start = 10 [json_name = "disablePartialStart"]; - {PROTOBUF_FIELD_OFFSET(RobotConfig, _impl_.disable_partial_start_), _Internal::kHasBitsOffset + 5, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // repeated .viam.app.v1.PackageConfig packages = 11 [json_name = "packages"]; - {PROTOBUF_FIELD_OFFSET(RobotConfig, _impl_.packages_), -1, 8, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated .viam.app.v1.AppValidationStatus overwrite_fragment_status = 12 [json_name = "overwriteFragmentStatus"]; - {PROTOBUF_FIELD_OFFSET(RobotConfig, _impl_.overwrite_fragment_status_), -1, 9, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // bool enable_web_profile = 13 [json_name = "enableWebProfile"]; - {PROTOBUF_FIELD_OFFSET(RobotConfig, _impl_.enable_web_profile_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // repeated .viam.app.v1.LogPatternConfig log = 14 [json_name = "log"]; - {PROTOBUF_FIELD_OFFSET(RobotConfig, _impl_.log_), -1, 10, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // string revision = 15 [json_name = "revision"]; - {PROTOBUF_FIELD_OFFSET(RobotConfig, _impl_.revision_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // optional .viam.app.v1.MaintenanceConfig maintenance = 16 [json_name = "maintenance"]; - {PROTOBUF_FIELD_OFFSET(RobotConfig, _impl_.maintenance_), _Internal::kHasBitsOffset + 3, 11, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::CloudConfig>()}, - {::_pbi::TcParser::GetTable<::viam::app::v1::RemoteConfig>()}, - {::_pbi::TcParser::GetTable<::viam::app::v1::ComponentConfig>()}, - {::_pbi::TcParser::GetTable<::viam::app::v1::ProcessConfig>()}, - {::_pbi::TcParser::GetTable<::viam::app::v1::ServiceConfig>()}, - {::_pbi::TcParser::GetTable<::viam::app::v1::NetworkConfig>()}, - {::_pbi::TcParser::GetTable<::viam::app::v1::AuthConfig>()}, - {::_pbi::TcParser::GetTable<::viam::app::v1::ModuleConfig>()}, - {::_pbi::TcParser::GetTable<::viam::app::v1::PackageConfig>()}, - {::_pbi::TcParser::GetTable<::viam::app::v1::AppValidationStatus>()}, - {::_pbi::TcParser::GetTable<::viam::app::v1::LogPatternConfig>()}, - {::_pbi::TcParser::GetTable<::viam::app::v1::MaintenanceConfig>()}, - }}, {{ - "\27\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10\0\0\0\0\0\0\0\0" - "viam.app.v1.RobotConfig" - "revision" - }}, -}; - -::uint8_t* RobotConfig::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* RobotConfig::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.RobotConfig) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.app.v1.CloudConfig cloud = 1 [json_name = "cloud"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::cloud(this), + if (this->_internal_has_cloud()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::cloud(this), _Internal::cloud(this).GetCachedSize(), target, stream); } // repeated .viam.app.v1.RemoteConfig remotes = 2 [json_name = "remotes"]; for (unsigned i = 0, n = static_cast(this->_internal_remotes_size()); i < n; i++) { - const auto& repfield = this->_internal_remotes().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_remotes(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); } // repeated .viam.app.v1.ComponentConfig components = 3 [json_name = "components"]; for (unsigned i = 0, n = static_cast(this->_internal_components_size()); i < n; i++) { - const auto& repfield = this->_internal_components().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_components(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream); } // repeated .viam.app.v1.ProcessConfig processes = 4 [json_name = "processes"]; for (unsigned i = 0, n = static_cast(this->_internal_processes_size()); i < n; i++) { - const auto& repfield = this->_internal_processes().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_processes(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(4, repfield, repfield.GetCachedSize(), target, stream); } // repeated .viam.app.v1.ServiceConfig services = 5 [json_name = "services"]; for (unsigned i = 0, n = static_cast(this->_internal_services_size()); i < n; i++) { - const auto& repfield = this->_internal_services().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_services(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(5, repfield, repfield.GetCachedSize(), target, stream); } // optional .viam.app.v1.NetworkConfig network = 6 [json_name = "network"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 6, _Internal::network(this), + if (_internal_has_network()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(6, _Internal::network(this), _Internal::network(this).GetCachedSize(), target, stream); } // optional .viam.app.v1.AuthConfig auth = 7 [json_name = "auth"]; - if (cached_has_bits & 0x00000004u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 7, _Internal::auth(this), + if (_internal_has_auth()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(7, _Internal::auth(this), _Internal::auth(this).GetCachedSize(), target, stream); } // optional bool debug = 8 [json_name = "debug"]; - if (cached_has_bits & 0x00000010u) { + if (_internal_has_debug()) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 8, this->_internal_debug(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(8, this->_internal_debug(), target); } // repeated .viam.app.v1.ModuleConfig modules = 9 [json_name = "modules"]; for (unsigned i = 0, n = static_cast(this->_internal_modules_size()); i < n; i++) { - const auto& repfield = this->_internal_modules().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_modules(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(9, repfield, repfield.GetCachedSize(), target, stream); } // optional bool disable_partial_start = 10 [json_name = "disablePartialStart"]; - if (cached_has_bits & 0x00000020u) { + if (_internal_has_disable_partial_start()) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 10, this->_internal_disable_partial_start(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(10, this->_internal_disable_partial_start(), target); } // repeated .viam.app.v1.PackageConfig packages = 11 [json_name = "packages"]; for (unsigned i = 0, n = static_cast(this->_internal_packages_size()); i < n; i++) { - const auto& repfield = this->_internal_packages().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_packages(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(11, repfield, repfield.GetCachedSize(), target, stream); } // repeated .viam.app.v1.AppValidationStatus overwrite_fragment_status = 12 [json_name = "overwriteFragmentStatus"]; for (unsigned i = 0, n = static_cast(this->_internal_overwrite_fragment_status_size()); i < n; i++) { - const auto& repfield = this->_internal_overwrite_fragment_status().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_overwrite_fragment_status(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(12, repfield, repfield.GetCachedSize(), target, stream); } // bool enable_web_profile = 13 [json_name = "enableWebProfile"]; if (this->_internal_enable_web_profile() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 13, this->_internal_enable_web_profile(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(13, this->_internal_enable_web_profile(), target); } // repeated .viam.app.v1.LogPatternConfig log = 14 [json_name = "log"]; for (unsigned i = 0, n = static_cast(this->_internal_log_size()); i < n; i++) { - const auto& repfield = this->_internal_log().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_log(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(14, repfield, repfield.GetCachedSize(), target, stream); } // string revision = 15 [json_name = "revision"]; if (!this->_internal_revision().empty()) { - const std::string& _s = this->_internal_revision(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.RobotConfig.revision"); - target = stream->WriteStringMaybeAliased(15, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_revision().data(), static_cast(this->_internal_revision().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RobotConfig.revision"); + target = stream->WriteStringMaybeAliased( + 15, this->_internal_revision(), target); } // optional .viam.app.v1.MaintenanceConfig maintenance = 16 [json_name = "maintenance"]; - if (cached_has_bits & 0x00000008u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 16, _Internal::maintenance(this), + if (_internal_has_maintenance()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(16, _Internal::maintenance(this), _Internal::maintenance(this).GetCachedSize(), target, stream); } + // bool disable_log_deduplication = 17 [json_name = "disableLogDeduplication"]; + if (this->_internal_disable_log_deduplication() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(17, this->_internal_disable_log_deduplication(), target); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.RobotConfig) return target; } -::size_t RobotConfig::ByteSizeLong() const { +size_t RobotConfig::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.RobotConfig) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.app.v1.RemoteConfig remotes = 2 [json_name = "remotes"]; total_size += 1UL * this->_internal_remotes_size(); - for (const auto& msg : this->_internal_remotes()) { + for (const auto& msg : this->remotes_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // repeated .viam.app.v1.ComponentConfig components = 3 [json_name = "components"]; total_size += 1UL * this->_internal_components_size(); - for (const auto& msg : this->_internal_components()) { + for (const auto& msg : this->components_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // repeated .viam.app.v1.ProcessConfig processes = 4 [json_name = "processes"]; total_size += 1UL * this->_internal_processes_size(); - for (const auto& msg : this->_internal_processes()) { + for (const auto& msg : this->processes_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // repeated .viam.app.v1.ServiceConfig services = 5 [json_name = "services"]; total_size += 1UL * this->_internal_services_size(); - for (const auto& msg : this->_internal_services()) { + for (const auto& msg : this->services_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // repeated .viam.app.v1.ModuleConfig modules = 9 [json_name = "modules"]; total_size += 1UL * this->_internal_modules_size(); - for (const auto& msg : this->_internal_modules()) { + for (const auto& msg : this->modules_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // repeated .viam.app.v1.PackageConfig packages = 11 [json_name = "packages"]; total_size += 1UL * this->_internal_packages_size(); - for (const auto& msg : this->_internal_packages()) { + for (const auto& msg : this->packages_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // repeated .viam.app.v1.AppValidationStatus overwrite_fragment_status = 12 [json_name = "overwriteFragmentStatus"]; total_size += 1UL * this->_internal_overwrite_fragment_status_size(); - for (const auto& msg : this->_internal_overwrite_fragment_status()) { + for (const auto& msg : this->overwrite_fragment_status_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // repeated .viam.app.v1.LogPatternConfig log = 14 [json_name = "log"]; total_size += 1UL * this->_internal_log_size(); - for (const auto& msg : this->_internal_log()) { + for (const auto& msg : this->log_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // string revision = 15 [json_name = "revision"]; if (!this->_internal_revision().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_revision()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_revision()); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x0000003fu) { - // .viam.app.v1.CloudConfig cloud = 1 [json_name = "cloud"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.cloud_); - } + // .viam.app.v1.CloudConfig cloud = 1 [json_name = "cloud"]; + if (this->_internal_has_cloud()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *cloud_); + } + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x0000001fu) { // optional .viam.app.v1.NetworkConfig network = 6 [json_name = "network"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.network_); + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *network_); } // optional .viam.app.v1.AuthConfig auth = 7 [json_name = "auth"]; - if (cached_has_bits & 0x00000004u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.auth_); + if (cached_has_bits & 0x00000002u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *auth_); } // optional .viam.app.v1.MaintenanceConfig maintenance = 16 [json_name = "maintenance"]; - if (cached_has_bits & 0x00000008u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.maintenance_); + if (cached_has_bits & 0x00000004u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *maintenance_); } // optional bool debug = 8 [json_name = "debug"]; - if (cached_has_bits & 0x00000010u) { - total_size += 2; + if (cached_has_bits & 0x00000008u) { + total_size += 1 + 1; } // optional bool disable_partial_start = 10 [json_name = "disablePartialStart"]; - if (cached_has_bits & 0x00000020u) { - total_size += 2; + if (cached_has_bits & 0x00000010u) { + total_size += 1 + 1; } } // bool enable_web_profile = 13 [json_name = "enableWebProfile"]; if (this->_internal_enable_web_profile() != 0) { - total_size += 2; + total_size += 1 + 1; + } + + // bool disable_log_deduplication = 17 [json_name = "disableLogDeduplication"]; + if (this->_internal_disable_log_deduplication() != 0) { + total_size += 2 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData RobotConfig::_class_data_ = { - RobotConfig::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RobotConfig::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + RobotConfig::MergeImpl }; -const ::google::protobuf::Message::ClassData* RobotConfig::GetClassData() const { - return &_class_data_; -} - -void RobotConfig::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.RobotConfig) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _this->_internal_mutable_remotes()->MergeFrom( - from._internal_remotes()); - _this->_internal_mutable_components()->MergeFrom( - from._internal_components()); - _this->_internal_mutable_processes()->MergeFrom( - from._internal_processes()); - _this->_internal_mutable_services()->MergeFrom( - from._internal_services()); - _this->_internal_mutable_modules()->MergeFrom( - from._internal_modules()); - _this->_internal_mutable_packages()->MergeFrom( - from._internal_packages()); - _this->_internal_mutable_overwrite_fragment_status()->MergeFrom( - from._internal_overwrite_fragment_status()); - _this->_internal_mutable_log()->MergeFrom( - from._internal_log()); +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RobotConfig::GetClassData() const { return &_class_data_; } + +void RobotConfig::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void RobotConfig::MergeFrom(const RobotConfig& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.RobotConfig) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + remotes_.MergeFrom(from.remotes_); + components_.MergeFrom(from.components_); + processes_.MergeFrom(from.processes_); + services_.MergeFrom(from.services_); + modules_.MergeFrom(from.modules_); + packages_.MergeFrom(from.packages_); + overwrite_fragment_status_.MergeFrom(from.overwrite_fragment_status_); + log_.MergeFrom(from.log_); if (!from._internal_revision().empty()) { - _this->_internal_set_revision(from._internal_revision()); + _internal_set_revision(from._internal_revision()); } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x0000003fu) { + if (from._internal_has_cloud()) { + _internal_mutable_cloud()->::viam::app::v1::CloudConfig::MergeFrom(from._internal_cloud()); + } + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x0000001fu) { if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_cloud()->::viam::app::v1::CloudConfig::MergeFrom( - from._internal_cloud()); + _internal_mutable_network()->::viam::app::v1::NetworkConfig::MergeFrom(from._internal_network()); } if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_network()->::viam::app::v1::NetworkConfig::MergeFrom( - from._internal_network()); + _internal_mutable_auth()->::viam::app::v1::AuthConfig::MergeFrom(from._internal_auth()); } if (cached_has_bits & 0x00000004u) { - _this->_internal_mutable_auth()->::viam::app::v1::AuthConfig::MergeFrom( - from._internal_auth()); + _internal_mutable_maintenance()->::viam::app::v1::MaintenanceConfig::MergeFrom(from._internal_maintenance()); } if (cached_has_bits & 0x00000008u) { - _this->_internal_mutable_maintenance()->::viam::app::v1::MaintenanceConfig::MergeFrom( - from._internal_maintenance()); + debug_ = from.debug_; } if (cached_has_bits & 0x00000010u) { - _this->_impl_.debug_ = from._impl_.debug_; - } - if (cached_has_bits & 0x00000020u) { - _this->_impl_.disable_partial_start_ = from._impl_.disable_partial_start_; + disable_partial_start_ = from.disable_partial_start_; } - _this->_impl_._has_bits_[0] |= cached_has_bits; + _has_bits_[0] |= cached_has_bits; } if (from._internal_enable_web_profile() != 0) { - _this->_internal_set_enable_web_profile(from._internal_enable_web_profile()); + _internal_set_enable_web_profile(from._internal_enable_web_profile()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_disable_log_deduplication() != 0) { + _internal_set_disable_log_deduplication(from._internal_disable_log_deduplication()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void RobotConfig::CopyFrom(const RobotConfig& from) { @@ -2643,230 +2156,251 @@ void RobotConfig::CopyFrom(const RobotConfig& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool RobotConfig::IsInitialized() const { +bool RobotConfig::IsInitialized() const { return true; } -::_pbi::CachedSize* RobotConfig::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void RobotConfig::InternalSwap(RobotConfig* PROTOBUF_RESTRICT other) { +void RobotConfig::InternalSwap(RobotConfig* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.remotes_.InternalSwap(&other->_impl_.remotes_); - _impl_.components_.InternalSwap(&other->_impl_.components_); - _impl_.processes_.InternalSwap(&other->_impl_.processes_); - _impl_.services_.InternalSwap(&other->_impl_.services_); - _impl_.modules_.InternalSwap(&other->_impl_.modules_); - _impl_.packages_.InternalSwap(&other->_impl_.packages_); - _impl_.overwrite_fragment_status_.InternalSwap(&other->_impl_.overwrite_fragment_status_); - _impl_.log_.InternalSwap(&other->_impl_.log_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.revision_, &other->_impl_.revision_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(RobotConfig, _impl_.enable_web_profile_) - + sizeof(RobotConfig::_impl_.enable_web_profile_) - - PROTOBUF_FIELD_OFFSET(RobotConfig, _impl_.cloud_)>( - reinterpret_cast(&_impl_.cloud_), - reinterpret_cast(&other->_impl_.cloud_)); -} - -::google::protobuf::Metadata RobotConfig::GetMetadata() const { + swap(_has_bits_[0], other->_has_bits_[0]); + remotes_.InternalSwap(&other->remotes_); + components_.InternalSwap(&other->components_); + processes_.InternalSwap(&other->processes_); + services_.InternalSwap(&other->services_); + modules_.InternalSwap(&other->modules_); + packages_.InternalSwap(&other->packages_); + overwrite_fragment_status_.InternalSwap(&other->overwrite_fragment_status_); + log_.InternalSwap(&other->log_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &revision_, lhs_arena, + &other->revision_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(RobotConfig, disable_log_deduplication_) + + sizeof(RobotConfig::disable_log_deduplication_) + - PROTOBUF_FIELD_OFFSET(RobotConfig, cloud_)>( + reinterpret_cast(&cloud_), + reinterpret_cast(&other->cloud_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata RobotConfig::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[0]); } + // =================================================================== class LogPatternConfig::_Internal { public: }; -LogPatternConfig::LogPatternConfig(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +LogPatternConfig::LogPatternConfig(::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.LogPatternConfig) } -inline PROTOBUF_NDEBUG_INLINE LogPatternConfig::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : pattern_(arena, from.pattern_), - level_(arena, from.level_), - _cached_size_{0} {} - -LogPatternConfig::LogPatternConfig( - ::google::protobuf::Arena* arena, - const LogPatternConfig& from) - : ::google::protobuf::Message(arena) { - LogPatternConfig* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +LogPatternConfig::LogPatternConfig(const LogPatternConfig& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + pattern_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + pattern_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_pattern().empty()) { + pattern_.Set(from._internal_pattern(), + GetArenaForAllocation()); + } + level_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + level_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_level().empty()) { + level_.Set(from._internal_level(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.LogPatternConfig) } -inline PROTOBUF_NDEBUG_INLINE LogPatternConfig::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : pattern_(arena), - level_(arena), - _cached_size_{0} {} -inline void LogPatternConfig::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void LogPatternConfig::SharedCtor() { +pattern_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + pattern_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +level_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + level_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + LogPatternConfig::~LogPatternConfig() { // @@protoc_insertion_point(destructor:viam.app.v1.LogPatternConfig) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void LogPatternConfig::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.pattern_.Destroy(); - _impl_.level_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + pattern_.Destroy(); + level_.Destroy(); +} + +void LogPatternConfig::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void LogPatternConfig::Clear() { +void LogPatternConfig::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.LogPatternConfig) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.pattern_.ClearToEmpty(); - _impl_.level_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* LogPatternConfig::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + pattern_.ClearToEmpty(); + level_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* LogPatternConfig::_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 pattern = 1 [json_name = "pattern"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_pattern(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.LogPatternConfig.pattern")); + } else + goto handle_unusual; + continue; + // string level = 2 [json_name = "level"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_level(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.LogPatternConfig.level")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 49, 2> LogPatternConfig::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_LogPatternConfig_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string level = 2 [json_name = "level"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(LogPatternConfig, _impl_.level_)}}, - // string pattern = 1 [json_name = "pattern"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(LogPatternConfig, _impl_.pattern_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string pattern = 1 [json_name = "pattern"]; - {PROTOBUF_FIELD_OFFSET(LogPatternConfig, _impl_.pattern_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string level = 2 [json_name = "level"]; - {PROTOBUF_FIELD_OFFSET(LogPatternConfig, _impl_.level_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\34\7\5\0\0\0\0\0" - "viam.app.v1.LogPatternConfig" - "pattern" - "level" - }}, -}; - -::uint8_t* LogPatternConfig::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* LogPatternConfig::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.LogPatternConfig) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string pattern = 1 [json_name = "pattern"]; if (!this->_internal_pattern().empty()) { - const std::string& _s = this->_internal_pattern(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.LogPatternConfig.pattern"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_pattern().data(), static_cast(this->_internal_pattern().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.LogPatternConfig.pattern"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_pattern(), target); } // string level = 2 [json_name = "level"]; if (!this->_internal_level().empty()) { - const std::string& _s = this->_internal_level(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.LogPatternConfig.level"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_level().data(), static_cast(this->_internal_level().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.LogPatternConfig.level"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_level(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.LogPatternConfig) return target; } -::size_t LogPatternConfig::ByteSizeLong() const { +size_t LogPatternConfig::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.LogPatternConfig) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string pattern = 1 [json_name = "pattern"]; if (!this->_internal_pattern().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_pattern()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_pattern()); } // string level = 2 [json_name = "level"]; if (!this->_internal_level().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_level()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_level()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData LogPatternConfig::_class_data_ = { - LogPatternConfig::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LogPatternConfig::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + LogPatternConfig::MergeImpl }; -const ::google::protobuf::Message::ClassData* LogPatternConfig::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LogPatternConfig::GetClassData() const { return &_class_data_; } + +void LogPatternConfig::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void LogPatternConfig::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.LogPatternConfig) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void LogPatternConfig::MergeFrom(const LogPatternConfig& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.LogPatternConfig) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_pattern().empty()) { - _this->_internal_set_pattern(from._internal_pattern()); + _internal_set_pattern(from._internal_pattern()); } if (!from._internal_level().empty()) { - _this->_internal_set_level(from._internal_level()); + _internal_set_level(from._internal_level()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void LogPatternConfig::CopyFrom(const LogPatternConfig& from) { @@ -2876,216 +2410,240 @@ void LogPatternConfig::CopyFrom(const LogPatternConfig& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool LogPatternConfig::IsInitialized() const { +bool LogPatternConfig::IsInitialized() const { return true; } -::_pbi::CachedSize* LogPatternConfig::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void LogPatternConfig::InternalSwap(LogPatternConfig* PROTOBUF_RESTRICT other) { +void LogPatternConfig::InternalSwap(LogPatternConfig* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.pattern_, &other->_impl_.pattern_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.level_, &other->_impl_.level_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &pattern_, lhs_arena, + &other->pattern_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &level_, lhs_arena, + &other->level_, rhs_arena + ); } -::google::protobuf::Metadata LogPatternConfig::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata LogPatternConfig::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[1]); } + // =================================================================== class LocationSecret::_Internal { public: }; -LocationSecret::LocationSecret(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +LocationSecret::LocationSecret(::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.LocationSecret) } -inline PROTOBUF_NDEBUG_INLINE LocationSecret::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : id_(arena, from.id_), - secret_(arena, from.secret_), - _cached_size_{0} {} - -LocationSecret::LocationSecret( - ::google::protobuf::Arena* arena, - const LocationSecret& from) - : ::google::protobuf::Message(arena) { - LocationSecret* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +LocationSecret::LocationSecret(const LocationSecret& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } + secret_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + secret_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_secret().empty()) { + secret_.Set(from._internal_secret(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.LocationSecret) } -inline PROTOBUF_NDEBUG_INLINE LocationSecret::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : id_(arena), - secret_(arena), - _cached_size_{0} {} -inline void LocationSecret::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void LocationSecret::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +secret_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + secret_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + LocationSecret::~LocationSecret() { // @@protoc_insertion_point(destructor:viam.app.v1.LocationSecret) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void LocationSecret::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.secret_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); + secret_.Destroy(); +} + +void LocationSecret::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void LocationSecret::Clear() { +void LocationSecret::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.LocationSecret) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.id_.ClearToEmpty(); - _impl_.secret_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* LocationSecret::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + id_.ClearToEmpty(); + secret_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* LocationSecret::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.LocationSecret.id")); + } else + goto handle_unusual; + continue; + // string secret = 2 [json_name = "secret"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_secret(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.LocationSecret.secret")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 43, 2> LocationSecret::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_LocationSecret_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string secret = 2 [json_name = "secret"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(LocationSecret, _impl_.secret_)}}, - // string id = 1 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(LocationSecret, _impl_.id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(LocationSecret, _impl_.id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string secret = 2 [json_name = "secret"]; - {PROTOBUF_FIELD_OFFSET(LocationSecret, _impl_.secret_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\32\2\6\0\0\0\0\0" - "viam.app.v1.LocationSecret" - "id" - "secret" - }}, -}; - -::uint8_t* LocationSecret::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* LocationSecret::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.LocationSecret) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.LocationSecret.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.LocationSecret.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); } // string secret = 2 [json_name = "secret"]; if (!this->_internal_secret().empty()) { - const std::string& _s = this->_internal_secret(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.LocationSecret.secret"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_secret().data(), static_cast(this->_internal_secret().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.LocationSecret.secret"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_secret(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.LocationSecret) return target; } -::size_t LocationSecret::ByteSizeLong() const { +size_t LocationSecret::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.LocationSecret) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } // string secret = 2 [json_name = "secret"]; if (!this->_internal_secret().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_secret()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_secret()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData LocationSecret::_class_data_ = { - LocationSecret::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LocationSecret::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + LocationSecret::MergeImpl }; -const ::google::protobuf::Message::ClassData* LocationSecret::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LocationSecret::GetClassData() const { return &_class_data_; } + +void LocationSecret::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void LocationSecret::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.LocationSecret) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void LocationSecret::MergeFrom(const LocationSecret& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.LocationSecret) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } if (!from._internal_secret().empty()) { - _this->_internal_set_secret(from._internal_secret()); + _internal_set_secret(from._internal_secret()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void LocationSecret::CopyFrom(const LocationSecret& from) { @@ -3095,188 +2653,196 @@ void LocationSecret::CopyFrom(const LocationSecret& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool LocationSecret::IsInitialized() const { +bool LocationSecret::IsInitialized() const { return true; } -::_pbi::CachedSize* LocationSecret::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void LocationSecret::InternalSwap(LocationSecret* PROTOBUF_RESTRICT other) { +void LocationSecret::InternalSwap(LocationSecret* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.secret_, &other->_impl_.secret_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &secret_, lhs_arena, + &other->secret_, rhs_arena + ); } -::google::protobuf::Metadata LocationSecret::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata LocationSecret::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 AppValidationStatus::_Internal { public: }; -AppValidationStatus::AppValidationStatus(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +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) } -inline PROTOBUF_NDEBUG_INLINE AppValidationStatus::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : error_(arena, from.error_), - _cached_size_{0} {} - -AppValidationStatus::AppValidationStatus( - ::google::protobuf::Arena* arena, - const AppValidationStatus& from) - : ::google::protobuf::Message(arena) { - AppValidationStatus* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +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 PROTOBUF_NDEBUG_INLINE AppValidationStatus::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : error_(arena), - _cached_size_{0} {} -inline void AppValidationStatus::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +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) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void AppValidationStatus::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.error_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + error_.Destroy(); } -PROTOBUF_NOINLINE void AppValidationStatus::Clear() { +void AppValidationStatus::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void AppValidationStatus::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.AppValidationStatus) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.error_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* AppValidationStatus::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 45, 2> AppValidationStatus::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_AppValidationStatus_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string error = 1 [json_name = "error"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(AppValidationStatus, _impl_.error_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string error = 1 [json_name = "error"]; - {PROTOBUF_FIELD_OFFSET(AppValidationStatus, _impl_.error_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\37\5\0\0\0\0\0\0" - "viam.app.v1.AppValidationStatus" - "error" - }}, -}; - -::uint8_t* AppValidationStatus::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +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; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string error = 1 [json_name = "error"]; if (!this->_internal_error().empty()) { - const std::string& _s = this->_internal_error(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.AppValidationStatus.error"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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 { +size_t AppValidationStatus::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.AppValidationStatus) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_error()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_error()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData AppValidationStatus::_class_data_ = { - AppValidationStatus::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AppValidationStatus::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + AppValidationStatus::MergeImpl }; -const ::google::protobuf::Message::ClassData* AppValidationStatus::GetClassData() const { - return &_class_data_; +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::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.AppValidationStatus) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +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()) { - _this->_internal_set_error(from._internal_error()); + _internal_set_error(from._internal_error()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void AppValidationStatus::CopyFrom(const AppValidationStatus& from) { @@ -3286,492 +2852,645 @@ void AppValidationStatus::CopyFrom(const AppValidationStatus& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool AppValidationStatus::IsInitialized() const { +bool AppValidationStatus::IsInitialized() const { return true; } -::_pbi::CachedSize* AppValidationStatus::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void AppValidationStatus::InternalSwap(AppValidationStatus* PROTOBUF_RESTRICT other) { +void AppValidationStatus::InternalSwap(AppValidationStatus* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.error_, &other->_impl_.error_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &error_, lhs_arena, + &other->error_, rhs_arena + ); } -::google::protobuf::Metadata AppValidationStatus::GetMetadata() const { +::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[3]); } + // =================================================================== class CloudConfig::_Internal { public: }; -CloudConfig::CloudConfig(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +CloudConfig::CloudConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + location_secrets_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.v1.CloudConfig) } -inline PROTOBUF_NDEBUG_INLINE CloudConfig::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : location_secrets_{visibility, arena, from.location_secrets_}, - id_(arena, from.id_), - fqdn_(arena, from.fqdn_), - local_fqdn_(arena, from.local_fqdn_), - managed_by_(arena, from.managed_by_), - signaling_address_(arena, from.signaling_address_), - location_secret_(arena, from.location_secret_), - secret_(arena, from.secret_), - primary_org_id_(arena, from.primary_org_id_), - location_id_(arena, from.location_id_), - machine_id_(arena, from.machine_id_), - _cached_size_{0} {} - -CloudConfig::CloudConfig( - ::google::protobuf::Arena* arena, - const CloudConfig& from) - : ::google::protobuf::Message(arena) { - CloudConfig* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.signaling_insecure_ = from._impl_.signaling_insecure_; - +CloudConfig::CloudConfig(const CloudConfig& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + location_secrets_(from.location_secrets_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } + fqdn_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + fqdn_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_fqdn().empty()) { + fqdn_.Set(from._internal_fqdn(), + GetArenaForAllocation()); + } + local_fqdn_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + local_fqdn_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_local_fqdn().empty()) { + local_fqdn_.Set(from._internal_local_fqdn(), + GetArenaForAllocation()); + } + managed_by_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + managed_by_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_managed_by().empty()) { + managed_by_.Set(from._internal_managed_by(), + GetArenaForAllocation()); + } + signaling_address_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + signaling_address_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_signaling_address().empty()) { + signaling_address_.Set(from._internal_signaling_address(), + GetArenaForAllocation()); + } + location_secret_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + location_secret_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_location_secret().empty()) { + location_secret_.Set(from._internal_location_secret(), + GetArenaForAllocation()); + } + secret_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + secret_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_secret().empty()) { + secret_.Set(from._internal_secret(), + GetArenaForAllocation()); + } + primary_org_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + primary_org_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_primary_org_id().empty()) { + primary_org_id_.Set(from._internal_primary_org_id(), + GetArenaForAllocation()); + } + location_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + location_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_location_id().empty()) { + location_id_.Set(from._internal_location_id(), + GetArenaForAllocation()); + } + machine_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + machine_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_machine_id().empty()) { + machine_id_.Set(from._internal_machine_id(), + GetArenaForAllocation()); + } + signaling_insecure_ = from.signaling_insecure_; // @@protoc_insertion_point(copy_constructor:viam.app.v1.CloudConfig) } -inline PROTOBUF_NDEBUG_INLINE CloudConfig::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : location_secrets_{visibility, arena}, - id_(arena), - fqdn_(arena), - local_fqdn_(arena), - managed_by_(arena), - signaling_address_(arena), - location_secret_(arena), - secret_(arena), - primary_org_id_(arena), - location_id_(arena), - machine_id_(arena), - _cached_size_{0} {} - -inline void CloudConfig::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.signaling_insecure_ = {}; + +inline void CloudConfig::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +fqdn_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + fqdn_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +local_fqdn_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + local_fqdn_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +managed_by_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + managed_by_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +signaling_address_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + signaling_address_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +location_secret_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + location_secret_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +secret_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + secret_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +primary_org_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + primary_org_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +location_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + location_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +machine_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + machine_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +signaling_insecure_ = false; } + CloudConfig::~CloudConfig() { // @@protoc_insertion_point(destructor:viam.app.v1.CloudConfig) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void CloudConfig::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.fqdn_.Destroy(); - _impl_.local_fqdn_.Destroy(); - _impl_.managed_by_.Destroy(); - _impl_.signaling_address_.Destroy(); - _impl_.location_secret_.Destroy(); - _impl_.secret_.Destroy(); - _impl_.primary_org_id_.Destroy(); - _impl_.location_id_.Destroy(); - _impl_.machine_id_.Destroy(); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void CloudConfig::Clear() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); + fqdn_.Destroy(); + local_fqdn_.Destroy(); + managed_by_.Destroy(); + signaling_address_.Destroy(); + location_secret_.Destroy(); + secret_.Destroy(); + primary_org_id_.Destroy(); + location_id_.Destroy(); + machine_id_.Destroy(); +} + +void CloudConfig::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void CloudConfig::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.CloudConfig) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.location_secrets_.Clear(); - _impl_.id_.ClearToEmpty(); - _impl_.fqdn_.ClearToEmpty(); - _impl_.local_fqdn_.ClearToEmpty(); - _impl_.managed_by_.ClearToEmpty(); - _impl_.signaling_address_.ClearToEmpty(); - _impl_.location_secret_.ClearToEmpty(); - _impl_.secret_.ClearToEmpty(); - _impl_.primary_org_id_.ClearToEmpty(); - _impl_.location_id_.ClearToEmpty(); - _impl_.machine_id_.ClearToEmpty(); - _impl_.signaling_insecure_ = false; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* CloudConfig::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + location_secrets_.Clear(); + id_.ClearToEmpty(); + fqdn_.ClearToEmpty(); + local_fqdn_.ClearToEmpty(); + managed_by_.ClearToEmpty(); + signaling_address_.ClearToEmpty(); + location_secret_.ClearToEmpty(); + secret_.ClearToEmpty(); + primary_org_id_.ClearToEmpty(); + location_id_.ClearToEmpty(); + machine_id_.ClearToEmpty(); + signaling_insecure_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CloudConfig::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.CloudConfig.id")); + } else + goto handle_unusual; + continue; + // string fqdn = 2 [json_name = "fqdn"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_fqdn(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.CloudConfig.fqdn")); + } else + goto handle_unusual; + continue; + // string local_fqdn = 3 [json_name = "localFqdn"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_local_fqdn(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.CloudConfig.local_fqdn")); + } else + goto handle_unusual; + continue; + // string managed_by = 4 [json_name = "managedBy"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_managed_by(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.CloudConfig.managed_by")); + } else + goto handle_unusual; + continue; + // string signaling_address = 5 [json_name = "signalingAddress"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + auto str = _internal_mutable_signaling_address(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.CloudConfig.signaling_address")); + } else + goto handle_unusual; + continue; + // bool signaling_insecure = 6 [json_name = "signalingInsecure"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { + signaling_insecure_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string location_secret = 7 [json_name = "locationSecret", deprecated = true]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + auto str = _internal_mutable_location_secret(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.CloudConfig.location_secret")); + } else + goto handle_unusual; + continue; + // string secret = 8 [json_name = "secret"]; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { + auto str = _internal_mutable_secret(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.CloudConfig.secret")); + } else + goto handle_unusual; + continue; + // repeated .viam.app.v1.LocationSecret location_secrets = 9 [json_name = "locationSecrets"]; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_location_secrets(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<74>(ptr)); + } else + goto handle_unusual; + continue; + // string primary_org_id = 10 [json_name = "primaryOrgId"]; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { + auto str = _internal_mutable_primary_org_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.CloudConfig.primary_org_id")); + } else + goto handle_unusual; + continue; + // string location_id = 11 [json_name = "locationId"]; + case 11: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 90)) { + auto str = _internal_mutable_location_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.CloudConfig.location_id")); + } else + goto handle_unusual; + continue; + // string machine_id = 12 [json_name = "machineId"]; + case 12: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 98)) { + auto str = _internal_mutable_machine_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.CloudConfig.machine_id")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<4, 12, 1, 139, 2> CloudConfig::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 12, 120, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294963200, // skipmap - offsetof(decltype(_table_), field_entries), - 12, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_CloudConfig_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string id = 1 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(CloudConfig, _impl_.id_)}}, - // string fqdn = 2 [json_name = "fqdn"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(CloudConfig, _impl_.fqdn_)}}, - // string local_fqdn = 3 [json_name = "localFqdn"]; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(CloudConfig, _impl_.local_fqdn_)}}, - // string managed_by = 4 [json_name = "managedBy"]; - {::_pbi::TcParser::FastUS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(CloudConfig, _impl_.managed_by_)}}, - // string signaling_address = 5 [json_name = "signalingAddress"]; - {::_pbi::TcParser::FastUS1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(CloudConfig, _impl_.signaling_address_)}}, - // bool signaling_insecure = 6 [json_name = "signalingInsecure"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {48, 63, 0, PROTOBUF_FIELD_OFFSET(CloudConfig, _impl_.signaling_insecure_)}}, - // string location_secret = 7 [json_name = "locationSecret", deprecated = true]; - {::_pbi::TcParser::FastUS1, - {58, 63, 0, PROTOBUF_FIELD_OFFSET(CloudConfig, _impl_.location_secret_)}}, - // string secret = 8 [json_name = "secret"]; - {::_pbi::TcParser::FastUS1, - {66, 63, 0, PROTOBUF_FIELD_OFFSET(CloudConfig, _impl_.secret_)}}, - // repeated .viam.app.v1.LocationSecret location_secrets = 9 [json_name = "locationSecrets"]; - {::_pbi::TcParser::FastMtR1, - {74, 63, 0, PROTOBUF_FIELD_OFFSET(CloudConfig, _impl_.location_secrets_)}}, - // string primary_org_id = 10 [json_name = "primaryOrgId"]; - {::_pbi::TcParser::FastUS1, - {82, 63, 0, PROTOBUF_FIELD_OFFSET(CloudConfig, _impl_.primary_org_id_)}}, - // string location_id = 11 [json_name = "locationId"]; - {::_pbi::TcParser::FastUS1, - {90, 63, 0, PROTOBUF_FIELD_OFFSET(CloudConfig, _impl_.location_id_)}}, - // string machine_id = 12 [json_name = "machineId"]; - {::_pbi::TcParser::FastUS1, - {98, 63, 0, PROTOBUF_FIELD_OFFSET(CloudConfig, _impl_.machine_id_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(CloudConfig, _impl_.id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string fqdn = 2 [json_name = "fqdn"]; - {PROTOBUF_FIELD_OFFSET(CloudConfig, _impl_.fqdn_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string local_fqdn = 3 [json_name = "localFqdn"]; - {PROTOBUF_FIELD_OFFSET(CloudConfig, _impl_.local_fqdn_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string managed_by = 4 [json_name = "managedBy"]; - {PROTOBUF_FIELD_OFFSET(CloudConfig, _impl_.managed_by_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string signaling_address = 5 [json_name = "signalingAddress"]; - {PROTOBUF_FIELD_OFFSET(CloudConfig, _impl_.signaling_address_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // bool signaling_insecure = 6 [json_name = "signalingInsecure"]; - {PROTOBUF_FIELD_OFFSET(CloudConfig, _impl_.signaling_insecure_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // string location_secret = 7 [json_name = "locationSecret", deprecated = true]; - {PROTOBUF_FIELD_OFFSET(CloudConfig, _impl_.location_secret_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string secret = 8 [json_name = "secret"]; - {PROTOBUF_FIELD_OFFSET(CloudConfig, _impl_.secret_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated .viam.app.v1.LocationSecret location_secrets = 9 [json_name = "locationSecrets"]; - {PROTOBUF_FIELD_OFFSET(CloudConfig, _impl_.location_secrets_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // string primary_org_id = 10 [json_name = "primaryOrgId"]; - {PROTOBUF_FIELD_OFFSET(CloudConfig, _impl_.primary_org_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string location_id = 11 [json_name = "locationId"]; - {PROTOBUF_FIELD_OFFSET(CloudConfig, _impl_.location_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string machine_id = 12 [json_name = "machineId"]; - {PROTOBUF_FIELD_OFFSET(CloudConfig, _impl_.machine_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::LocationSecret>()}, - }}, {{ - "\27\2\4\12\12\21\0\17\6\0\16\13\12\0\0\0" - "viam.app.v1.CloudConfig" - "id" - "fqdn" - "local_fqdn" - "managed_by" - "signaling_address" - "location_secret" - "secret" - "primary_org_id" - "location_id" - "machine_id" - }}, -}; - -::uint8_t* CloudConfig::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* CloudConfig::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.CloudConfig) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.CloudConfig.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.CloudConfig.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); } // string fqdn = 2 [json_name = "fqdn"]; if (!this->_internal_fqdn().empty()) { - const std::string& _s = this->_internal_fqdn(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.CloudConfig.fqdn"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_fqdn().data(), static_cast(this->_internal_fqdn().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.CloudConfig.fqdn"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_fqdn(), target); } // string local_fqdn = 3 [json_name = "localFqdn"]; if (!this->_internal_local_fqdn().empty()) { - const std::string& _s = this->_internal_local_fqdn(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.CloudConfig.local_fqdn"); - target = stream->WriteStringMaybeAliased(3, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_local_fqdn().data(), static_cast(this->_internal_local_fqdn().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.CloudConfig.local_fqdn"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_local_fqdn(), target); } // string managed_by = 4 [json_name = "managedBy"]; if (!this->_internal_managed_by().empty()) { - const std::string& _s = this->_internal_managed_by(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.CloudConfig.managed_by"); - target = stream->WriteStringMaybeAliased(4, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_managed_by().data(), static_cast(this->_internal_managed_by().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.CloudConfig.managed_by"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_managed_by(), target); } // string signaling_address = 5 [json_name = "signalingAddress"]; if (!this->_internal_signaling_address().empty()) { - const std::string& _s = this->_internal_signaling_address(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.CloudConfig.signaling_address"); - target = stream->WriteStringMaybeAliased(5, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_signaling_address().data(), static_cast(this->_internal_signaling_address().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.CloudConfig.signaling_address"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_signaling_address(), target); } // bool signaling_insecure = 6 [json_name = "signalingInsecure"]; if (this->_internal_signaling_insecure() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 6, this->_internal_signaling_insecure(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(6, this->_internal_signaling_insecure(), target); } // string location_secret = 7 [json_name = "locationSecret", deprecated = true]; if (!this->_internal_location_secret().empty()) { - const std::string& _s = this->_internal_location_secret(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.CloudConfig.location_secret"); - target = stream->WriteStringMaybeAliased(7, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_location_secret().data(), static_cast(this->_internal_location_secret().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.CloudConfig.location_secret"); + target = stream->WriteStringMaybeAliased( + 7, this->_internal_location_secret(), target); } // string secret = 8 [json_name = "secret"]; if (!this->_internal_secret().empty()) { - const std::string& _s = this->_internal_secret(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.CloudConfig.secret"); - target = stream->WriteStringMaybeAliased(8, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_secret().data(), static_cast(this->_internal_secret().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.CloudConfig.secret"); + target = stream->WriteStringMaybeAliased( + 8, this->_internal_secret(), target); } // repeated .viam.app.v1.LocationSecret location_secrets = 9 [json_name = "locationSecrets"]; for (unsigned i = 0, n = static_cast(this->_internal_location_secrets_size()); i < n; i++) { - const auto& repfield = this->_internal_location_secrets().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_location_secrets(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(9, repfield, repfield.GetCachedSize(), target, stream); } // string primary_org_id = 10 [json_name = "primaryOrgId"]; if (!this->_internal_primary_org_id().empty()) { - const std::string& _s = this->_internal_primary_org_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.CloudConfig.primary_org_id"); - target = stream->WriteStringMaybeAliased(10, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_primary_org_id().data(), static_cast(this->_internal_primary_org_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.CloudConfig.primary_org_id"); + target = stream->WriteStringMaybeAliased( + 10, this->_internal_primary_org_id(), target); } // string location_id = 11 [json_name = "locationId"]; if (!this->_internal_location_id().empty()) { - const std::string& _s = this->_internal_location_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.CloudConfig.location_id"); - target = stream->WriteStringMaybeAliased(11, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_location_id().data(), static_cast(this->_internal_location_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.CloudConfig.location_id"); + target = stream->WriteStringMaybeAliased( + 11, this->_internal_location_id(), target); } // string machine_id = 12 [json_name = "machineId"]; if (!this->_internal_machine_id().empty()) { - const std::string& _s = this->_internal_machine_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.CloudConfig.machine_id"); - target = stream->WriteStringMaybeAliased(12, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_machine_id().data(), static_cast(this->_internal_machine_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.CloudConfig.machine_id"); + target = stream->WriteStringMaybeAliased( + 12, this->_internal_machine_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.CloudConfig) return target; } -::size_t CloudConfig::ByteSizeLong() const { +size_t CloudConfig::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.CloudConfig) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.app.v1.LocationSecret location_secrets = 9 [json_name = "locationSecrets"]; total_size += 1UL * this->_internal_location_secrets_size(); - for (const auto& msg : this->_internal_location_secrets()) { + for (const auto& msg : this->location_secrets_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } // string fqdn = 2 [json_name = "fqdn"]; if (!this->_internal_fqdn().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_fqdn()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_fqdn()); } // string local_fqdn = 3 [json_name = "localFqdn"]; if (!this->_internal_local_fqdn().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_local_fqdn()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_local_fqdn()); } // string managed_by = 4 [json_name = "managedBy"]; if (!this->_internal_managed_by().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_managed_by()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_managed_by()); } // string signaling_address = 5 [json_name = "signalingAddress"]; if (!this->_internal_signaling_address().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_signaling_address()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_signaling_address()); } // string location_secret = 7 [json_name = "locationSecret", deprecated = true]; if (!this->_internal_location_secret().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_location_secret()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_location_secret()); } // string secret = 8 [json_name = "secret"]; if (!this->_internal_secret().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_secret()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_secret()); } // string primary_org_id = 10 [json_name = "primaryOrgId"]; if (!this->_internal_primary_org_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_primary_org_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_primary_org_id()); } // string location_id = 11 [json_name = "locationId"]; if (!this->_internal_location_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_location_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_location_id()); } // string machine_id = 12 [json_name = "machineId"]; if (!this->_internal_machine_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_machine_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_machine_id()); } // bool signaling_insecure = 6 [json_name = "signalingInsecure"]; if (this->_internal_signaling_insecure() != 0) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData CloudConfig::_class_data_ = { - CloudConfig::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CloudConfig::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CloudConfig::MergeImpl }; -const ::google::protobuf::Message::ClassData* CloudConfig::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CloudConfig::GetClassData() const { return &_class_data_; } + +void CloudConfig::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void CloudConfig::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.CloudConfig) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void CloudConfig::MergeFrom(const CloudConfig& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.CloudConfig) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_location_secrets()->MergeFrom( - from._internal_location_secrets()); + location_secrets_.MergeFrom(from.location_secrets_); if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } if (!from._internal_fqdn().empty()) { - _this->_internal_set_fqdn(from._internal_fqdn()); + _internal_set_fqdn(from._internal_fqdn()); } if (!from._internal_local_fqdn().empty()) { - _this->_internal_set_local_fqdn(from._internal_local_fqdn()); + _internal_set_local_fqdn(from._internal_local_fqdn()); } if (!from._internal_managed_by().empty()) { - _this->_internal_set_managed_by(from._internal_managed_by()); + _internal_set_managed_by(from._internal_managed_by()); } if (!from._internal_signaling_address().empty()) { - _this->_internal_set_signaling_address(from._internal_signaling_address()); + _internal_set_signaling_address(from._internal_signaling_address()); } if (!from._internal_location_secret().empty()) { - _this->_internal_set_location_secret(from._internal_location_secret()); + _internal_set_location_secret(from._internal_location_secret()); } if (!from._internal_secret().empty()) { - _this->_internal_set_secret(from._internal_secret()); + _internal_set_secret(from._internal_secret()); } if (!from._internal_primary_org_id().empty()) { - _this->_internal_set_primary_org_id(from._internal_primary_org_id()); + _internal_set_primary_org_id(from._internal_primary_org_id()); } if (!from._internal_location_id().empty()) { - _this->_internal_set_location_id(from._internal_location_id()); + _internal_set_location_id(from._internal_location_id()); } if (!from._internal_machine_id().empty()) { - _this->_internal_set_machine_id(from._internal_machine_id()); + _internal_set_machine_id(from._internal_machine_id()); } if (from._internal_signaling_insecure() != 0) { - _this->_internal_set_signaling_insecure(from._internal_signaling_insecure()); + _internal_set_signaling_insecure(from._internal_signaling_insecure()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CloudConfig::CopyFrom(const CloudConfig& from) { @@ -3781,510 +3500,605 @@ void CloudConfig::CopyFrom(const CloudConfig& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool CloudConfig::IsInitialized() const { +bool CloudConfig::IsInitialized() const { return true; } -::_pbi::CachedSize* CloudConfig::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void CloudConfig::InternalSwap(CloudConfig* PROTOBUF_RESTRICT other) { +void CloudConfig::InternalSwap(CloudConfig* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.location_secrets_.InternalSwap(&other->_impl_.location_secrets_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.fqdn_, &other->_impl_.fqdn_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.local_fqdn_, &other->_impl_.local_fqdn_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.managed_by_, &other->_impl_.managed_by_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.signaling_address_, &other->_impl_.signaling_address_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.location_secret_, &other->_impl_.location_secret_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.secret_, &other->_impl_.secret_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.primary_org_id_, &other->_impl_.primary_org_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.location_id_, &other->_impl_.location_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.machine_id_, &other->_impl_.machine_id_, arena); - swap(_impl_.signaling_insecure_, other->_impl_.signaling_insecure_); -} - -::google::protobuf::Metadata CloudConfig::GetMetadata() const { + location_secrets_.InternalSwap(&other->location_secrets_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &fqdn_, lhs_arena, + &other->fqdn_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &local_fqdn_, lhs_arena, + &other->local_fqdn_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &managed_by_, lhs_arena, + &other->managed_by_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &signaling_address_, lhs_arena, + &other->signaling_address_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &location_secret_, lhs_arena, + &other->location_secret_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &secret_, lhs_arena, + &other->secret_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &primary_org_id_, lhs_arena, + &other->primary_org_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &location_id_, lhs_arena, + &other->location_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &machine_id_, lhs_arena, + &other->machine_id_, rhs_arena + ); + swap(signaling_insecure_, other->signaling_insecure_); +} + +::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[4]); } + // =================================================================== class ComponentConfig::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ComponentConfig, _impl_._has_bits_); static const ::viam::app::v1::Frame& frame(const ComponentConfig* msg); - static void set_has_frame(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::google::protobuf::Struct& attributes(const ComponentConfig* msg); - static void set_has_attributes(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& attributes(const ComponentConfig* msg); static const ::viam::app::v1::LogConfiguration& log_configuration(const ComponentConfig* msg); - static void set_has_log_configuration(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } }; -const ::viam::app::v1::Frame& ComponentConfig::_Internal::frame(const ComponentConfig* msg) { - return *msg->_impl_.frame_; +const ::viam::app::v1::Frame& +ComponentConfig::_Internal::frame(const ComponentConfig* msg) { + return *msg->frame_; } -const ::google::protobuf::Struct& ComponentConfig::_Internal::attributes(const ComponentConfig* msg) { - return *msg->_impl_.attributes_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +ComponentConfig::_Internal::attributes(const ComponentConfig* msg) { + return *msg->attributes_; } -const ::viam::app::v1::LogConfiguration& ComponentConfig::_Internal::log_configuration(const ComponentConfig* msg) { - return *msg->_impl_.log_configuration_; +const ::viam::app::v1::LogConfiguration& +ComponentConfig::_Internal::log_configuration(const ComponentConfig* msg) { + return *msg->log_configuration_; } void ComponentConfig::clear_attributes() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.attributes_ != nullptr) _impl_.attributes_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && attributes_ != nullptr) { + delete attributes_; + } + attributes_ = nullptr; } -ComponentConfig::ComponentConfig(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ComponentConfig::ComponentConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + depends_on_(arena), + service_configs_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.v1.ComponentConfig) } -inline PROTOBUF_NDEBUG_INLINE ComponentConfig::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - depends_on_{visibility, arena, from.depends_on_}, - service_configs_{visibility, arena, from.service_configs_}, - name_(arena, from.name_), - namespace__(arena, from.namespace__), - type_(arena, from.type_), - model_(arena, from.model_), - api_(arena, from.api_) {} - -ComponentConfig::ComponentConfig( - ::google::protobuf::Arena* arena, - const ComponentConfig& from) - : ::google::protobuf::Message(arena) { - ComponentConfig* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.frame_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::app::v1::Frame>(arena, *from._impl_.frame_) - : nullptr; - _impl_.attributes_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.attributes_) - : nullptr; - _impl_.log_configuration_ = (cached_has_bits & 0x00000004u) - ? CreateMaybeMessage<::viam::app::v1::LogConfiguration>(arena, *from._impl_.log_configuration_) - : nullptr; - +ComponentConfig::ComponentConfig(const ComponentConfig& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + depends_on_(from.depends_on_), + service_configs_(from.service_configs_) { + _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()); + } + namespace__.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + namespace__.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_namespace_().empty()) { + namespace__.Set(from._internal_namespace_(), + 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()); + } + model_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + model_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_model().empty()) { + model_.Set(from._internal_model(), + GetArenaForAllocation()); + } + api_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + api_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_api().empty()) { + api_.Set(from._internal_api(), + GetArenaForAllocation()); + } + if (from._internal_has_frame()) { + frame_ = new ::viam::app::v1::Frame(*from.frame_); + } else { + frame_ = nullptr; + } + if (from._internal_has_attributes()) { + attributes_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.attributes_); + } else { + attributes_ = nullptr; + } + if (from._internal_has_log_configuration()) { + log_configuration_ = new ::viam::app::v1::LogConfiguration(*from.log_configuration_); + } else { + log_configuration_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.ComponentConfig) } -inline PROTOBUF_NDEBUG_INLINE ComponentConfig::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - depends_on_{visibility, arena}, - service_configs_{visibility, arena}, - name_(arena), - namespace__(arena), - type_(arena), - model_(arena), - api_(arena) {} - -inline void ComponentConfig::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, frame_), - 0, - offsetof(Impl_, log_configuration_) - - offsetof(Impl_, frame_) + - sizeof(Impl_::log_configuration_)); + +inline void ComponentConfig::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +namespace__.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + namespace__.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 +model_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + model_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +api_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + api_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&frame_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&log_configuration_) - + reinterpret_cast(&frame_)) + sizeof(log_configuration_)); } + ComponentConfig::~ComponentConfig() { // @@protoc_insertion_point(destructor:viam.app.v1.ComponentConfig) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ComponentConfig::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.namespace__.Destroy(); - _impl_.type_.Destroy(); - _impl_.model_.Destroy(); - _impl_.api_.Destroy(); - delete _impl_.frame_; - delete _impl_.attributes_; - delete _impl_.log_configuration_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void ComponentConfig::Clear() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + namespace__.Destroy(); + type_.Destroy(); + model_.Destroy(); + api_.Destroy(); + if (this != internal_default_instance()) delete frame_; + if (this != internal_default_instance()) delete attributes_; + if (this != internal_default_instance()) delete log_configuration_; +} + +void ComponentConfig::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ComponentConfig::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.ComponentConfig) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.depends_on_.Clear(); - _impl_.service_configs_.Clear(); - _impl_.name_.ClearToEmpty(); - _impl_.namespace__.ClearToEmpty(); - _impl_.type_.ClearToEmpty(); - _impl_.model_.ClearToEmpty(); - _impl_.api_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.frame_ != nullptr); - _impl_.frame_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.attributes_ != nullptr); - _impl_.attributes_->Clear(); + depends_on_.Clear(); + service_configs_.Clear(); + name_.ClearToEmpty(); + namespace__.ClearToEmpty(); + type_.ClearToEmpty(); + model_.ClearToEmpty(); + api_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && frame_ != nullptr) { + delete frame_; + } + frame_ = nullptr; + if (GetArenaForAllocation() == nullptr && attributes_ != nullptr) { + delete attributes_; + } + attributes_ = nullptr; + if (GetArenaForAllocation() == nullptr && log_configuration_ != nullptr) { + delete log_configuration_; + } + log_configuration_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ComponentConfig::_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.app.v1.ComponentConfig.name")); + } else + goto handle_unusual; + continue; + // string namespace = 2 [json_name = "namespace"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_namespace_(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ComponentConfig.namespace")); + } else + goto handle_unusual; + continue; + // string type = 3 [json_name = "type"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ComponentConfig.type")); + } else + goto handle_unusual; + continue; + // string model = 4 [json_name = "model"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_model(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ComponentConfig.model")); + } else + goto handle_unusual; + continue; + // .viam.app.v1.Frame frame = 5 [json_name = "frame"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_frame(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // repeated string depends_on = 6 [json_name = "dependsOn"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_depends_on(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ComponentConfig.depends_on")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(ptr)); + } else + goto handle_unusual; + continue; + // repeated .viam.app.v1.ResourceLevelServiceConfig service_configs = 7 [json_name = "serviceConfigs", (.tagger.v1.tags) = "json:\"service_config\""]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_service_configs(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<58>(ptr)); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct attributes = 8 [json_name = "attributes"]; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { + ptr = ctx->ParseMessage(_internal_mutable_attributes(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string api = 9 [json_name = "api"]; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { + auto str = _internal_mutable_api(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ComponentConfig.api")); + } else + goto handle_unusual; + continue; + // .viam.app.v1.LogConfiguration log_configuration = 10 [json_name = "logConfiguration"]; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { + ptr = ctx->ParseMessage(_internal_mutable_log_configuration(), 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; } - if (cached_has_bits & 0x00000004u) { - ABSL_DCHECK(_impl_.log_configuration_ != nullptr); - _impl_.log_configuration_->Clear(); - } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ComponentConfig::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<4, 10, 4, 79, 2> ComponentConfig::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ComponentConfig, _impl_._has_bits_), - 0, // no _extensions_ - 10, 120, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294966272, // skipmap - offsetof(decltype(_table_), field_entries), - 10, // num_field_entries - 4, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ComponentConfig_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ComponentConfig, _impl_.name_)}}, - // string namespace = 2 [json_name = "namespace"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(ComponentConfig, _impl_.namespace__)}}, - // string type = 3 [json_name = "type"]; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(ComponentConfig, _impl_.type_)}}, - // string model = 4 [json_name = "model"]; - {::_pbi::TcParser::FastUS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(ComponentConfig, _impl_.model_)}}, - // .viam.app.v1.Frame frame = 5 [json_name = "frame"]; - {::_pbi::TcParser::FastMtS1, - {42, 0, 0, PROTOBUF_FIELD_OFFSET(ComponentConfig, _impl_.frame_)}}, - // repeated string depends_on = 6 [json_name = "dependsOn"]; - {::_pbi::TcParser::FastUR1, - {50, 63, 0, PROTOBUF_FIELD_OFFSET(ComponentConfig, _impl_.depends_on_)}}, - // repeated .viam.app.v1.ResourceLevelServiceConfig service_configs = 7 [json_name = "serviceConfigs", (.tagger.v1.tags) = "json:\"service_config\""]; - {::_pbi::TcParser::FastMtR1, - {58, 63, 1, PROTOBUF_FIELD_OFFSET(ComponentConfig, _impl_.service_configs_)}}, - // .google.protobuf.Struct attributes = 8 [json_name = "attributes"]; - {::_pbi::TcParser::FastMtS1, - {66, 1, 2, PROTOBUF_FIELD_OFFSET(ComponentConfig, _impl_.attributes_)}}, - // string api = 9 [json_name = "api"]; - {::_pbi::TcParser::FastUS1, - {74, 63, 0, PROTOBUF_FIELD_OFFSET(ComponentConfig, _impl_.api_)}}, - // .viam.app.v1.LogConfiguration log_configuration = 10 [json_name = "logConfiguration"]; - {::_pbi::TcParser::FastMtS1, - {82, 2, 3, PROTOBUF_FIELD_OFFSET(ComponentConfig, _impl_.log_configuration_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(ComponentConfig, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string namespace = 2 [json_name = "namespace"]; - {PROTOBUF_FIELD_OFFSET(ComponentConfig, _impl_.namespace__), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string type = 3 [json_name = "type"]; - {PROTOBUF_FIELD_OFFSET(ComponentConfig, _impl_.type_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string model = 4 [json_name = "model"]; - {PROTOBUF_FIELD_OFFSET(ComponentConfig, _impl_.model_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .viam.app.v1.Frame frame = 5 [json_name = "frame"]; - {PROTOBUF_FIELD_OFFSET(ComponentConfig, _impl_.frame_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated string depends_on = 6 [json_name = "dependsOn"]; - {PROTOBUF_FIELD_OFFSET(ComponentConfig, _impl_.depends_on_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - // repeated .viam.app.v1.ResourceLevelServiceConfig service_configs = 7 [json_name = "serviceConfigs", (.tagger.v1.tags) = "json:\"service_config\""]; - {PROTOBUF_FIELD_OFFSET(ComponentConfig, _impl_.service_configs_), -1, 1, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.protobuf.Struct attributes = 8 [json_name = "attributes"]; - {PROTOBUF_FIELD_OFFSET(ComponentConfig, _impl_.attributes_), _Internal::kHasBitsOffset + 1, 2, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // string api = 9 [json_name = "api"]; - {PROTOBUF_FIELD_OFFSET(ComponentConfig, _impl_.api_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .viam.app.v1.LogConfiguration log_configuration = 10 [json_name = "logConfiguration"]; - {PROTOBUF_FIELD_OFFSET(ComponentConfig, _impl_.log_configuration_), _Internal::kHasBitsOffset + 2, 3, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::Frame>()}, - {::_pbi::TcParser::GetTable<::viam::app::v1::ResourceLevelServiceConfig>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - {::_pbi::TcParser::GetTable<::viam::app::v1::LogConfiguration>()}, - }}, {{ - "\33\4\11\4\5\0\12\0\0\3\0\0\0\0\0\0" - "viam.app.v1.ComponentConfig" - "name" - "namespace" - "type" - "model" - "depends_on" - "api" - }}, -}; - -::uint8_t* ComponentConfig::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ComponentConfig::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ComponentConfig) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ComponentConfig.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ComponentConfig.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // string namespace = 2 [json_name = "namespace"]; if (!this->_internal_namespace_().empty()) { - const std::string& _s = this->_internal_namespace_(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ComponentConfig.namespace"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_namespace_().data(), static_cast(this->_internal_namespace_().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ComponentConfig.namespace"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_namespace_(), target); } // string type = 3 [json_name = "type"]; if (!this->_internal_type().empty()) { - const std::string& _s = this->_internal_type(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ComponentConfig.type"); - target = stream->WriteStringMaybeAliased(3, _s, target); + ::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.ComponentConfig.type"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_type(), target); } // string model = 4 [json_name = "model"]; if (!this->_internal_model().empty()) { - const std::string& _s = this->_internal_model(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ComponentConfig.model"); - target = stream->WriteStringMaybeAliased(4, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_model().data(), static_cast(this->_internal_model().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ComponentConfig.model"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_model(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .viam.app.v1.Frame frame = 5 [json_name = "frame"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 5, _Internal::frame(this), + if (this->_internal_has_frame()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(5, _Internal::frame(this), _Internal::frame(this).GetCachedSize(), target, stream); } // repeated string depends_on = 6 [json_name = "dependsOn"]; - for (int i = 0, n = this->_internal_depends_on_size(); i < n; ++i) { - const auto& s = this->_internal_depends_on().Get(i); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ComponentConfig.depends_on"); + for (int i = 0, n = this->_internal_depends_on_size(); i < n; i++) { + const auto& s = this->_internal_depends_on(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ComponentConfig.depends_on"); target = stream->WriteString(6, s, target); } // repeated .viam.app.v1.ResourceLevelServiceConfig service_configs = 7 [json_name = "serviceConfigs", (.tagger.v1.tags) = "json:\"service_config\""]; for (unsigned i = 0, n = static_cast(this->_internal_service_configs_size()); i < n; i++) { - const auto& repfield = this->_internal_service_configs().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_service_configs(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(7, repfield, repfield.GetCachedSize(), target, stream); } // .google.protobuf.Struct attributes = 8 [json_name = "attributes"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 8, _Internal::attributes(this), + if (this->_internal_has_attributes()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(8, _Internal::attributes(this), _Internal::attributes(this).GetCachedSize(), target, stream); } // string api = 9 [json_name = "api"]; if (!this->_internal_api().empty()) { - const std::string& _s = this->_internal_api(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ComponentConfig.api"); - target = stream->WriteStringMaybeAliased(9, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_api().data(), static_cast(this->_internal_api().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ComponentConfig.api"); + target = stream->WriteStringMaybeAliased( + 9, this->_internal_api(), target); } // .viam.app.v1.LogConfiguration log_configuration = 10 [json_name = "logConfiguration"]; - if (cached_has_bits & 0x00000004u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 10, _Internal::log_configuration(this), + if (this->_internal_has_log_configuration()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(10, _Internal::log_configuration(this), _Internal::log_configuration(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.ComponentConfig) return target; } -::size_t ComponentConfig::ByteSizeLong() const { +size_t ComponentConfig::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ComponentConfig) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated string depends_on = 6 [json_name = "dependsOn"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_depends_on().size()); - for (int i = 0, n = _internal_depends_on().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - _internal_depends_on().Get(i)); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(depends_on_.size()); + for (int i = 0, n = depends_on_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + depends_on_.Get(i)); } + // repeated .viam.app.v1.ResourceLevelServiceConfig service_configs = 7 [json_name = "serviceConfigs", (.tagger.v1.tags) = "json:\"service_config\""]; total_size += 1UL * this->_internal_service_configs_size(); - for (const auto& msg : this->_internal_service_configs()) { + for (const auto& msg : this->service_configs_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // string namespace = 2 [json_name = "namespace"]; if (!this->_internal_namespace_().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_namespace_()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_namespace_()); } // string type = 3 [json_name = "type"]; if (!this->_internal_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_type()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_type()); } // string model = 4 [json_name = "model"]; if (!this->_internal_model().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_model()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_model()); } // string api = 9 [json_name = "api"]; if (!this->_internal_api().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_api()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_api()); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - // .viam.app.v1.Frame frame = 5 [json_name = "frame"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.frame_); - } - - // .google.protobuf.Struct attributes = 8 [json_name = "attributes"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.attributes_); - } + // .viam.app.v1.Frame frame = 5 [json_name = "frame"]; + if (this->_internal_has_frame()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *frame_); + } - // .viam.app.v1.LogConfiguration log_configuration = 10 [json_name = "logConfiguration"]; - if (cached_has_bits & 0x00000004u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.log_configuration_); - } + // .google.protobuf.Struct attributes = 8 [json_name = "attributes"]; + if (this->_internal_has_attributes()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *attributes_); + } + // .viam.app.v1.LogConfiguration log_configuration = 10 [json_name = "logConfiguration"]; + if (this->_internal_has_log_configuration()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *log_configuration_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ComponentConfig::_class_data_ = { - ComponentConfig::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ComponentConfig::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ComponentConfig::MergeImpl }; -const ::google::protobuf::Message::ClassData* ComponentConfig::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ComponentConfig::GetClassData() const { return &_class_data_; } + +void ComponentConfig::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ComponentConfig::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ComponentConfig) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ComponentConfig::MergeFrom(const ComponentConfig& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ComponentConfig) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_depends_on()->MergeFrom(from._internal_depends_on()); - _this->_internal_mutable_service_configs()->MergeFrom( - from._internal_service_configs()); + depends_on_.MergeFrom(from.depends_on_); + service_configs_.MergeFrom(from.service_configs_); if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (!from._internal_namespace_().empty()) { - _this->_internal_set_namespace_(from._internal_namespace_()); + _internal_set_namespace_(from._internal_namespace_()); } if (!from._internal_type().empty()) { - _this->_internal_set_type(from._internal_type()); + _internal_set_type(from._internal_type()); } if (!from._internal_model().empty()) { - _this->_internal_set_model(from._internal_model()); + _internal_set_model(from._internal_model()); } if (!from._internal_api().empty()) { - _this->_internal_set_api(from._internal_api()); + _internal_set_api(from._internal_api()); } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_frame()->::viam::app::v1::Frame::MergeFrom( - from._internal_frame()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_attributes()->::google::protobuf::Struct::MergeFrom( - from._internal_attributes()); - } - if (cached_has_bits & 0x00000004u) { - _this->_internal_mutable_log_configuration()->::viam::app::v1::LogConfiguration::MergeFrom( - from._internal_log_configuration()); - } + if (from._internal_has_frame()) { + _internal_mutable_frame()->::viam::app::v1::Frame::MergeFrom(from._internal_frame()); + } + if (from._internal_has_attributes()) { + _internal_mutable_attributes()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_attributes()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_log_configuration()) { + _internal_mutable_log_configuration()->::viam::app::v1::LogConfiguration::MergeFrom(from._internal_log_configuration()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ComponentConfig::CopyFrom(const ComponentConfig& from) { @@ -4294,253 +4108,263 @@ void ComponentConfig::CopyFrom(const ComponentConfig& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ComponentConfig::IsInitialized() const { +bool ComponentConfig::IsInitialized() const { return true; } -::_pbi::CachedSize* ComponentConfig::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ComponentConfig::InternalSwap(ComponentConfig* PROTOBUF_RESTRICT other) { +void ComponentConfig::InternalSwap(ComponentConfig* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.depends_on_.InternalSwap(&other->_impl_.depends_on_); - _impl_.service_configs_.InternalSwap(&other->_impl_.service_configs_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.namespace__, &other->_impl_.namespace__, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.type_, &other->_impl_.type_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.model_, &other->_impl_.model_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.api_, &other->_impl_.api_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(ComponentConfig, _impl_.log_configuration_) - + sizeof(ComponentConfig::_impl_.log_configuration_) - - PROTOBUF_FIELD_OFFSET(ComponentConfig, _impl_.frame_)>( - reinterpret_cast(&_impl_.frame_), - reinterpret_cast(&other->_impl_.frame_)); -} - -::google::protobuf::Metadata ComponentConfig::GetMetadata() const { + depends_on_.InternalSwap(&other->depends_on_); + service_configs_.InternalSwap(&other->service_configs_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &namespace__, lhs_arena, + &other->namespace__, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &type_, lhs_arena, + &other->type_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &model_, lhs_arena, + &other->model_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &api_, lhs_arena, + &other->api_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(ComponentConfig, log_configuration_) + + sizeof(ComponentConfig::log_configuration_) + - PROTOBUF_FIELD_OFFSET(ComponentConfig, frame_)>( + reinterpret_cast(&frame_), + reinterpret_cast(&other->frame_)); +} + +::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[5]); } + // =================================================================== class ResourceLevelServiceConfig::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ResourceLevelServiceConfig, _impl_._has_bits_); - static const ::google::protobuf::Struct& attributes(const ResourceLevelServiceConfig* msg); - static void set_has_attributes(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& attributes(const ResourceLevelServiceConfig* msg); }; -const ::google::protobuf::Struct& ResourceLevelServiceConfig::_Internal::attributes(const ResourceLevelServiceConfig* msg) { - return *msg->_impl_.attributes_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +ResourceLevelServiceConfig::_Internal::attributes(const ResourceLevelServiceConfig* msg) { + return *msg->attributes_; } void ResourceLevelServiceConfig::clear_attributes() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.attributes_ != nullptr) _impl_.attributes_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && attributes_ != nullptr) { + delete attributes_; + } + attributes_ = nullptr; } -ResourceLevelServiceConfig::ResourceLevelServiceConfig(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ResourceLevelServiceConfig::ResourceLevelServiceConfig(::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.ResourceLevelServiceConfig) } -inline PROTOBUF_NDEBUG_INLINE ResourceLevelServiceConfig::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - type_(arena, from.type_) {} - -ResourceLevelServiceConfig::ResourceLevelServiceConfig( - ::google::protobuf::Arena* arena, - const ResourceLevelServiceConfig& from) - : ::google::protobuf::Message(arena) { - ResourceLevelServiceConfig* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.attributes_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.attributes_) - : nullptr; - +ResourceLevelServiceConfig::ResourceLevelServiceConfig(const ResourceLevelServiceConfig& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + 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()); + } + if (from._internal_has_attributes()) { + attributes_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.attributes_); + } else { + attributes_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.ResourceLevelServiceConfig) } -inline PROTOBUF_NDEBUG_INLINE ResourceLevelServiceConfig::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - type_(arena) {} -inline void ResourceLevelServiceConfig::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.attributes_ = {}; +inline void ResourceLevelServiceConfig::SharedCtor() { +type_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + type_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +attributes_ = nullptr; } + ResourceLevelServiceConfig::~ResourceLevelServiceConfig() { // @@protoc_insertion_point(destructor:viam.app.v1.ResourceLevelServiceConfig) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ResourceLevelServiceConfig::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.type_.Destroy(); - delete _impl_.attributes_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + type_.Destroy(); + if (this != internal_default_instance()) delete attributes_; +} + +void ResourceLevelServiceConfig::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void ResourceLevelServiceConfig::Clear() { +void ResourceLevelServiceConfig::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.ResourceLevelServiceConfig) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.type_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.attributes_ != nullptr); - _impl_.attributes_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ResourceLevelServiceConfig::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + type_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && attributes_ != nullptr) { + delete attributes_; + } + attributes_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ResourceLevelServiceConfig::_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 type = 1 [json_name = "type"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ResourceLevelServiceConfig.type")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct attributes = 2 [json_name = "attributes"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_attributes(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 51, 2> ResourceLevelServiceConfig::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ResourceLevelServiceConfig, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ResourceLevelServiceConfig_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .google.protobuf.Struct attributes = 2 [json_name = "attributes"]; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(ResourceLevelServiceConfig, _impl_.attributes_)}}, - // string type = 1 [json_name = "type"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ResourceLevelServiceConfig, _impl_.type_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string type = 1 [json_name = "type"]; - {PROTOBUF_FIELD_OFFSET(ResourceLevelServiceConfig, _impl_.type_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct attributes = 2 [json_name = "attributes"]; - {PROTOBUF_FIELD_OFFSET(ResourceLevelServiceConfig, _impl_.attributes_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\46\4\0\0\0\0\0\0" - "viam.app.v1.ResourceLevelServiceConfig" - "type" - }}, -}; - -::uint8_t* ResourceLevelServiceConfig::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ResourceLevelServiceConfig::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ResourceLevelServiceConfig) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string type = 1 [json_name = "type"]; if (!this->_internal_type().empty()) { - const std::string& _s = this->_internal_type(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ResourceLevelServiceConfig.type"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::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.ResourceLevelServiceConfig.type"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_type(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct attributes = 2 [json_name = "attributes"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::attributes(this), + if (this->_internal_has_attributes()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::attributes(this), _Internal::attributes(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.ResourceLevelServiceConfig) return target; } -::size_t ResourceLevelServiceConfig::ByteSizeLong() const { +size_t ResourceLevelServiceConfig::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ResourceLevelServiceConfig) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string type = 1 [json_name = "type"]; if (!this->_internal_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_type()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_type()); } // .google.protobuf.Struct attributes = 2 [json_name = "attributes"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.attributes_); + if (this->_internal_has_attributes()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *attributes_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ResourceLevelServiceConfig::_class_data_ = { - ResourceLevelServiceConfig::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ResourceLevelServiceConfig::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ResourceLevelServiceConfig::MergeImpl }; -const ::google::protobuf::Message::ClassData* ResourceLevelServiceConfig::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ResourceLevelServiceConfig::GetClassData() const { return &_class_data_; } + +void ResourceLevelServiceConfig::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ResourceLevelServiceConfig::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ResourceLevelServiceConfig) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ResourceLevelServiceConfig::MergeFrom(const ResourceLevelServiceConfig& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ResourceLevelServiceConfig) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_type().empty()) { - _this->_internal_set_type(from._internal_type()); + _internal_set_type(from._internal_type()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_attributes()->::google::protobuf::Struct::MergeFrom( - from._internal_attributes()); + if (from._internal_has_attributes()) { + _internal_mutable_attributes()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_attributes()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ResourceLevelServiceConfig::CopyFrom(const ResourceLevelServiceConfig& from) { @@ -4550,499 +4374,563 @@ void ResourceLevelServiceConfig::CopyFrom(const ResourceLevelServiceConfig& from MergeFrom(from); } -PROTOBUF_NOINLINE bool ResourceLevelServiceConfig::IsInitialized() const { +bool ResourceLevelServiceConfig::IsInitialized() const { return true; } -::_pbi::CachedSize* ResourceLevelServiceConfig::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ResourceLevelServiceConfig::InternalSwap(ResourceLevelServiceConfig* PROTOBUF_RESTRICT other) { +void ResourceLevelServiceConfig::InternalSwap(ResourceLevelServiceConfig* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.type_, &other->_impl_.type_, arena); - swap(_impl_.attributes_, other->_impl_.attributes_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &type_, lhs_arena, + &other->type_, rhs_arena + ); + swap(attributes_, other->attributes_); } -::google::protobuf::Metadata ResourceLevelServiceConfig::GetMetadata() const { +::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[6]); } + // =================================================================== ProcessConfig_EnvEntry_DoNotUse::ProcessConfig_EnvEntry_DoNotUse() {} -ProcessConfig_EnvEntry_DoNotUse::ProcessConfig_EnvEntry_DoNotUse(::google::protobuf::Arena* arena) +ProcessConfig_EnvEntry_DoNotUse::ProcessConfig_EnvEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) : SuperType(arena) {} -::google::protobuf::Metadata ProcessConfig_EnvEntry_DoNotUse::GetMetadata() const { +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[7]); } + // =================================================================== class ProcessConfig::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ProcessConfig, _impl_._has_bits_); - static const ::google::protobuf::Duration& stop_timeout(const ProcessConfig* msg); - static void set_has_stop_timeout(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Duration& stop_timeout(const ProcessConfig* msg); }; -const ::google::protobuf::Duration& ProcessConfig::_Internal::stop_timeout(const ProcessConfig* msg) { - return *msg->_impl_.stop_timeout_; +const ::PROTOBUF_NAMESPACE_ID::Duration& +ProcessConfig::_Internal::stop_timeout(const ProcessConfig* msg) { + return *msg->stop_timeout_; } void ProcessConfig::clear_stop_timeout() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.stop_timeout_ != nullptr) _impl_.stop_timeout_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && stop_timeout_ != nullptr) { + delete stop_timeout_; + } + stop_timeout_ = nullptr; } -ProcessConfig::ProcessConfig(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ProcessConfig::ProcessConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + 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) } -inline PROTOBUF_NDEBUG_INLINE ProcessConfig::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - args_{visibility, arena, from.args_}, - env_{visibility, arena, from.env_}, - id_(arena, from.id_), - name_(arena, from.name_), - cwd_(arena, from.cwd_), - username_(arena, from.username_) {} - -ProcessConfig::ProcessConfig( - ::google::protobuf::Arena* arena, - const ProcessConfig& from) - : ::google::protobuf::Message(arena) { - ProcessConfig* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.stop_timeout_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Duration>(arena, *from._impl_.stop_timeout_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, one_shot_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, one_shot_), - offsetof(Impl_, stop_signal_) - - offsetof(Impl_, one_shot_) + - sizeof(Impl_::stop_signal_)); - +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()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } + 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()); + } + cwd_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + cwd_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_cwd().empty()) { + cwd_.Set(from._internal_cwd(), + GetArenaForAllocation()); + } + username_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + username_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_username().empty()) { + username_.Set(from._internal_username(), + GetArenaForAllocation()); + } + if (from._internal_has_stop_timeout()) { + stop_timeout_ = new ::PROTOBUF_NAMESPACE_ID::Duration(*from.stop_timeout_); + } else { + stop_timeout_ = nullptr; + } + ::memcpy(&one_shot_, &from.one_shot_, + static_cast(reinterpret_cast(&stop_signal_) - + reinterpret_cast(&one_shot_)) + sizeof(stop_signal_)); // @@protoc_insertion_point(copy_constructor:viam.app.v1.ProcessConfig) } -inline PROTOBUF_NDEBUG_INLINE ProcessConfig::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - args_{visibility, arena}, - env_{visibility, arena}, - id_(arena), - name_(arena), - cwd_(arena), - username_(arena) {} - -inline void ProcessConfig::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, stop_timeout_), - 0, - offsetof(Impl_, stop_signal_) - - offsetof(Impl_, stop_timeout_) + - sizeof(Impl_::stop_signal_)); + +inline void ProcessConfig::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +cwd_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + cwd_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +username_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + username_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&stop_timeout_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&stop_signal_) - + reinterpret_cast(&stop_timeout_)) + sizeof(stop_signal_)); } + ProcessConfig::~ProcessConfig() { // @@protoc_insertion_point(destructor:viam.app.v1.ProcessConfig) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + ArenaDtor(this); + return; + } SharedDtor(); } + inline void ProcessConfig::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.name_.Destroy(); - _impl_.cwd_.Destroy(); - _impl_.username_.Destroy(); - delete _impl_.stop_timeout_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + env_.Destruct(); + id_.Destroy(); + name_.Destroy(); + cwd_.Destroy(); + username_.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); } -PROTOBUF_NOINLINE void ProcessConfig::Clear() { +void ProcessConfig::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.ProcessConfig) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.args_.Clear(); - _impl_.env_.Clear(); - _impl_.id_.ClearToEmpty(); - _impl_.name_.ClearToEmpty(); - _impl_.cwd_.ClearToEmpty(); - _impl_.username_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.stop_timeout_ != nullptr); - _impl_.stop_timeout_->Clear(); - } - ::memset(&_impl_.one_shot_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.stop_signal_) - - reinterpret_cast(&_impl_.one_shot_)) + sizeof(_impl_.stop_signal_)); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ProcessConfig::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + args_.Clear(); + env_.Clear(); + id_.ClearToEmpty(); + name_.ClearToEmpty(); + cwd_.ClearToEmpty(); + username_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && stop_timeout_ != nullptr) { + delete stop_timeout_; + } + stop_timeout_ = nullptr; + ::memset(&one_shot_, 0, static_cast( + reinterpret_cast(&stop_signal_) - + reinterpret_cast(&one_shot_)) + sizeof(stop_signal_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ProcessConfig::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ProcessConfig.id")); + } else + goto handle_unusual; + continue; + // string name = 2 [json_name = "name"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ProcessConfig.name")); + } else + goto handle_unusual; + continue; + // repeated string args = 3 [json_name = "args"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_args(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ProcessConfig.args")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); + } else + goto handle_unusual; + continue; + // string cwd = 4 [json_name = "cwd"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_cwd(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ProcessConfig.cwd")); + } else + goto handle_unusual; + continue; + // bool one_shot = 5 [json_name = "oneShot"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { + one_shot_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool log = 6 [json_name = "log"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { + log_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int32 stop_signal = 7 [json_name = "stopSignal"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 56)) { + stop_signal_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Duration stop_timeout = 8 [json_name = "stopTimeout"]; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { + ptr = ctx->ParseMessage(_internal_mutable_stop_timeout(), ptr); + CHK_(ptr); + } 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; + // string username = 10 [json_name = "username"]; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { + auto str = _internal_mutable_username(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ProcessConfig.username")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<4, 10, 2, 66, 2> ProcessConfig::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ProcessConfig, _impl_._has_bits_), - 0, // no _extensions_ - 10, 120, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294966272, // skipmap - offsetof(decltype(_table_), field_entries), - 10, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ProcessConfig_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string id = 1 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ProcessConfig, _impl_.id_)}}, - // string name = 2 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(ProcessConfig, _impl_.name_)}}, - // repeated string args = 3 [json_name = "args"]; - {::_pbi::TcParser::FastUR1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(ProcessConfig, _impl_.args_)}}, - // string cwd = 4 [json_name = "cwd"]; - {::_pbi::TcParser::FastUS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(ProcessConfig, _impl_.cwd_)}}, - // bool one_shot = 5 [json_name = "oneShot"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {40, 63, 0, PROTOBUF_FIELD_OFFSET(ProcessConfig, _impl_.one_shot_)}}, - // bool log = 6 [json_name = "log"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {48, 63, 0, PROTOBUF_FIELD_OFFSET(ProcessConfig, _impl_.log_)}}, - // int32 stop_signal = 7 [json_name = "stopSignal"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ProcessConfig, _impl_.stop_signal_), 63>(), - {56, 63, 0, PROTOBUF_FIELD_OFFSET(ProcessConfig, _impl_.stop_signal_)}}, - // .google.protobuf.Duration stop_timeout = 8 [json_name = "stopTimeout"]; - {::_pbi::TcParser::FastMtS1, - {66, 0, 0, PROTOBUF_FIELD_OFFSET(ProcessConfig, _impl_.stop_timeout_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // string username = 10 [json_name = "username"]; - {::_pbi::TcParser::FastUS1, - {82, 63, 0, PROTOBUF_FIELD_OFFSET(ProcessConfig, _impl_.username_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(ProcessConfig, _impl_.id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string name = 2 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(ProcessConfig, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated string args = 3 [json_name = "args"]; - {PROTOBUF_FIELD_OFFSET(ProcessConfig, _impl_.args_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - // string cwd = 4 [json_name = "cwd"]; - {PROTOBUF_FIELD_OFFSET(ProcessConfig, _impl_.cwd_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // bool one_shot = 5 [json_name = "oneShot"]; - {PROTOBUF_FIELD_OFFSET(ProcessConfig, _impl_.one_shot_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // bool log = 6 [json_name = "log"]; - {PROTOBUF_FIELD_OFFSET(ProcessConfig, _impl_.log_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // int32 stop_signal = 7 [json_name = "stopSignal"]; - {PROTOBUF_FIELD_OFFSET(ProcessConfig, _impl_.stop_signal_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // .google.protobuf.Duration stop_timeout = 8 [json_name = "stopTimeout"]; - {PROTOBUF_FIELD_OFFSET(ProcessConfig, _impl_.stop_timeout_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // map env = 9 [json_name = "env"]; - {PROTOBUF_FIELD_OFFSET(ProcessConfig, _impl_.env_), -1, 1, - (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, - // string username = 10 [json_name = "username"]; - {PROTOBUF_FIELD_OFFSET(ProcessConfig, _impl_.username_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Duration>()}, - {::_pbi::TcParser::GetMapAuxInfo< - decltype(ProcessConfig()._impl_.env_)>( - 1, 0, 0, 9, - 9)}, - }}, {{ - "\31\2\4\4\3\0\0\0\0\3\10\0\0\0\0\0" - "viam.app.v1.ProcessConfig" - "id" - "name" - "args" - "cwd" - "env" - "username" - }}, -}; - -::uint8_t* ProcessConfig::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ProcessConfig::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ProcessConfig) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ProcessConfig.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ProcessConfig.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); } // string name = 2 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ProcessConfig.name"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ProcessConfig.name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_name(), target); } // repeated string args = 3 [json_name = "args"]; - for (int i = 0, n = this->_internal_args_size(); i < n; ++i) { - const auto& s = this->_internal_args().Get(i); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ProcessConfig.args"); + for (int i = 0, n = this->_internal_args_size(); i < n; i++) { + const auto& s = this->_internal_args(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ProcessConfig.args"); target = stream->WriteString(3, s, target); } // string cwd = 4 [json_name = "cwd"]; if (!this->_internal_cwd().empty()) { - const std::string& _s = this->_internal_cwd(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ProcessConfig.cwd"); - target = stream->WriteStringMaybeAliased(4, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_cwd().data(), static_cast(this->_internal_cwd().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ProcessConfig.cwd"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_cwd(), target); } // bool one_shot = 5 [json_name = "oneShot"]; if (this->_internal_one_shot() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 5, this->_internal_one_shot(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(5, this->_internal_one_shot(), target); } // bool log = 6 [json_name = "log"]; if (this->_internal_log() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 6, this->_internal_log(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(6, this->_internal_log(), target); } // int32 stop_signal = 7 [json_name = "stopSignal"]; if (this->_internal_stop_signal() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<7>( - stream, this->_internal_stop_signal(), target); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(7, this->_internal_stop_signal(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Duration stop_timeout = 8 [json_name = "stopTimeout"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 8, _Internal::stop_timeout(this), + if (this->_internal_has_stop_timeout()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(8, _Internal::stop_timeout(this), _Internal::stop_timeout(this).GetCachedSize(), target, stream); } // map env = 9 [json_name = "env"]; - if (!_internal_env().empty()) { - using MapType = ::google::protobuf::Map; - using WireHelper = _pbi::MapEntryFuncs; - const auto& field = _internal_env(); - - if (stream->IsSerializationDeterministic() && field.size() > 1) { - for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { - target = WireHelper::InternalSerialize( - 9, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ProcessConfig.env"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.second.data(), static_cast(entry.second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ProcessConfig.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 : field) { - target = WireHelper::InternalSerialize( - 9, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ProcessConfig.env"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.second.data(), static_cast(entry.second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ProcessConfig.env"); + for (const auto& entry : map_field) { + target = WireHelper::InternalSerialize(9, entry.first, entry.second, target, stream); + check_utf8(entry); } } } // string username = 10 [json_name = "username"]; if (!this->_internal_username().empty()) { - const std::string& _s = this->_internal_username(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ProcessConfig.username"); - target = stream->WriteStringMaybeAliased(10, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_username().data(), static_cast(this->_internal_username().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ProcessConfig.username"); + target = stream->WriteStringMaybeAliased( + 10, this->_internal_username(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.ProcessConfig) return target; } -::size_t ProcessConfig::ByteSizeLong() const { +size_t ProcessConfig::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ProcessConfig) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated string args = 3 [json_name = "args"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_args().size()); - for (int i = 0, n = _internal_args().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - _internal_args().Get(i)); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(args_.size()); + for (int i = 0, n = args_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + args_.Get(i)); } + // map env = 9 [json_name = "env"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_env_size()); - for (const auto& entry : _internal_env()) { - total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); + 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } // string name = 2 [json_name = "name"]; if (!this->_internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // string cwd = 4 [json_name = "cwd"]; if (!this->_internal_cwd().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_cwd()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_cwd()); } // string username = 10 [json_name = "username"]; if (!this->_internal_username().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_username()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_username()); } // .google.protobuf.Duration stop_timeout = 8 [json_name = "stopTimeout"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.stop_timeout_); + if (this->_internal_has_stop_timeout()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *stop_timeout_); } // bool one_shot = 5 [json_name = "oneShot"]; if (this->_internal_one_shot() != 0) { - total_size += 2; + total_size += 1 + 1; } // bool log = 6 [json_name = "log"]; if (this->_internal_log() != 0) { - total_size += 2; + total_size += 1 + 1; } // int32 stop_signal = 7 [json_name = "stopSignal"]; if (this->_internal_stop_signal() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_stop_signal()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_stop_signal()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ProcessConfig::_class_data_ = { - ProcessConfig::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ProcessConfig::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ProcessConfig::MergeImpl }; -const ::google::protobuf::Message::ClassData* ProcessConfig::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ProcessConfig::GetClassData() const { return &_class_data_; } + +void ProcessConfig::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ProcessConfig::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ProcessConfig) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ProcessConfig::MergeFrom(const ProcessConfig& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ProcessConfig) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_args()->MergeFrom(from._internal_args()); - _this->_impl_.env_.MergeFrom(from._impl_.env_); + args_.MergeFrom(from.args_); + env_.MergeFrom(from.env_); if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (!from._internal_cwd().empty()) { - _this->_internal_set_cwd(from._internal_cwd()); + _internal_set_cwd(from._internal_cwd()); } if (!from._internal_username().empty()) { - _this->_internal_set_username(from._internal_username()); + _internal_set_username(from._internal_username()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_stop_timeout()->::google::protobuf::Duration::MergeFrom( - from._internal_stop_timeout()); + if (from._internal_has_stop_timeout()) { + _internal_mutable_stop_timeout()->::PROTOBUF_NAMESPACE_ID::Duration::MergeFrom(from._internal_stop_timeout()); } if (from._internal_one_shot() != 0) { - _this->_internal_set_one_shot(from._internal_one_shot()); + _internal_set_one_shot(from._internal_one_shot()); } if (from._internal_log() != 0) { - _this->_internal_set_log(from._internal_log()); + _internal_set_log(from._internal_log()); } if (from._internal_stop_signal() != 0) { - _this->_internal_set_stop_signal(from._internal_stop_signal()); + _internal_set_stop_signal(from._internal_stop_signal()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ProcessConfig::CopyFrom(const ProcessConfig& from) { @@ -5052,473 +4940,547 @@ void ProcessConfig::CopyFrom(const ProcessConfig& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ProcessConfig::IsInitialized() const { +bool ProcessConfig::IsInitialized() const { return true; } -::_pbi::CachedSize* ProcessConfig::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ProcessConfig::InternalSwap(ProcessConfig* PROTOBUF_RESTRICT other) { +void ProcessConfig::InternalSwap(ProcessConfig* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.args_.InternalSwap(&other->_impl_.args_); - _impl_.env_.InternalSwap(&other->_impl_.env_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.cwd_, &other->_impl_.cwd_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.username_, &other->_impl_.username_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(ProcessConfig, _impl_.stop_signal_) - + sizeof(ProcessConfig::_impl_.stop_signal_) - - PROTOBUF_FIELD_OFFSET(ProcessConfig, _impl_.stop_timeout_)>( - reinterpret_cast(&_impl_.stop_timeout_), - reinterpret_cast(&other->_impl_.stop_timeout_)); -} - -::google::protobuf::Metadata ProcessConfig::GetMetadata() const { + args_.InternalSwap(&other->args_); + env_.InternalSwap(&other->env_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &cwd_, lhs_arena, + &other->cwd_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &username_, lhs_arena, + &other->username_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(ProcessConfig, stop_signal_) + + sizeof(ProcessConfig::stop_signal_) + - PROTOBUF_FIELD_OFFSET(ProcessConfig, stop_timeout_)>( + reinterpret_cast(&stop_timeout_), + reinterpret_cast(&other->stop_timeout_)); +} + +::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[8]); } + // =================================================================== class ServiceConfig::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ServiceConfig, _impl_._has_bits_); - static const ::google::protobuf::Struct& attributes(const ServiceConfig* msg); - static void set_has_attributes(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& attributes(const ServiceConfig* msg); static const ::viam::app::v1::LogConfiguration& log_configuration(const ServiceConfig* msg); - static void set_has_log_configuration(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } }; -const ::google::protobuf::Struct& ServiceConfig::_Internal::attributes(const ServiceConfig* msg) { - return *msg->_impl_.attributes_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +ServiceConfig::_Internal::attributes(const ServiceConfig* msg) { + return *msg->attributes_; } -const ::viam::app::v1::LogConfiguration& ServiceConfig::_Internal::log_configuration(const ServiceConfig* msg) { - return *msg->_impl_.log_configuration_; +const ::viam::app::v1::LogConfiguration& +ServiceConfig::_Internal::log_configuration(const ServiceConfig* msg) { + return *msg->log_configuration_; } void ServiceConfig::clear_attributes() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.attributes_ != nullptr) _impl_.attributes_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && attributes_ != nullptr) { + delete attributes_; + } + attributes_ = nullptr; } -ServiceConfig::ServiceConfig(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ServiceConfig::ServiceConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + depends_on_(arena), + service_configs_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.v1.ServiceConfig) } -inline PROTOBUF_NDEBUG_INLINE ServiceConfig::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - depends_on_{visibility, arena, from.depends_on_}, - service_configs_{visibility, arena, from.service_configs_}, - name_(arena, from.name_), - namespace__(arena, from.namespace__), - type_(arena, from.type_), - model_(arena, from.model_), - api_(arena, from.api_) {} - -ServiceConfig::ServiceConfig( - ::google::protobuf::Arena* arena, - const ServiceConfig& from) - : ::google::protobuf::Message(arena) { - ServiceConfig* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.attributes_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.attributes_) - : nullptr; - _impl_.log_configuration_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::viam::app::v1::LogConfiguration>(arena, *from._impl_.log_configuration_) - : nullptr; - +ServiceConfig::ServiceConfig(const ServiceConfig& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + depends_on_(from.depends_on_), + service_configs_(from.service_configs_) { + _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()); + } + namespace__.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + namespace__.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_namespace_().empty()) { + namespace__.Set(from._internal_namespace_(), + 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()); + } + model_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + model_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_model().empty()) { + model_.Set(from._internal_model(), + GetArenaForAllocation()); + } + api_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + api_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_api().empty()) { + api_.Set(from._internal_api(), + GetArenaForAllocation()); + } + if (from._internal_has_attributes()) { + attributes_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.attributes_); + } else { + attributes_ = nullptr; + } + if (from._internal_has_log_configuration()) { + log_configuration_ = new ::viam::app::v1::LogConfiguration(*from.log_configuration_); + } else { + log_configuration_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.ServiceConfig) } -inline PROTOBUF_NDEBUG_INLINE ServiceConfig::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - depends_on_{visibility, arena}, - service_configs_{visibility, arena}, - name_(arena), - namespace__(arena), - type_(arena), - model_(arena), - api_(arena) {} - -inline void ServiceConfig::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, attributes_), - 0, - offsetof(Impl_, log_configuration_) - - offsetof(Impl_, attributes_) + - sizeof(Impl_::log_configuration_)); + +inline void ServiceConfig::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +namespace__.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + namespace__.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 +model_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + model_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +api_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + api_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&attributes_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&log_configuration_) - + reinterpret_cast(&attributes_)) + sizeof(log_configuration_)); } + ServiceConfig::~ServiceConfig() { // @@protoc_insertion_point(destructor:viam.app.v1.ServiceConfig) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ServiceConfig::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.namespace__.Destroy(); - _impl_.type_.Destroy(); - _impl_.model_.Destroy(); - _impl_.api_.Destroy(); - delete _impl_.attributes_; - delete _impl_.log_configuration_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void ServiceConfig::Clear() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + namespace__.Destroy(); + type_.Destroy(); + model_.Destroy(); + api_.Destroy(); + if (this != internal_default_instance()) delete attributes_; + if (this != internal_default_instance()) delete log_configuration_; +} + +void ServiceConfig::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ServiceConfig::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.ServiceConfig) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.depends_on_.Clear(); - _impl_.service_configs_.Clear(); - _impl_.name_.ClearToEmpty(); - _impl_.namespace__.ClearToEmpty(); - _impl_.type_.ClearToEmpty(); - _impl_.model_.ClearToEmpty(); - _impl_.api_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.attributes_ != nullptr); - _impl_.attributes_->Clear(); + depends_on_.Clear(); + service_configs_.Clear(); + name_.ClearToEmpty(); + namespace__.ClearToEmpty(); + type_.ClearToEmpty(); + model_.ClearToEmpty(); + api_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && attributes_ != nullptr) { + delete attributes_; + } + attributes_ = nullptr; + if (GetArenaForAllocation() == nullptr && log_configuration_ != nullptr) { + delete log_configuration_; + } + log_configuration_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ServiceConfig::_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.app.v1.ServiceConfig.name")); + } else + goto handle_unusual; + continue; + // string namespace = 2 [json_name = "namespace"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_namespace_(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ServiceConfig.namespace")); + } else + goto handle_unusual; + continue; + // string type = 3 [json_name = "type"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ServiceConfig.type")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct attributes = 4 [json_name = "attributes"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_attributes(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // repeated string depends_on = 5 [json_name = "dependsOn"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_depends_on(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ServiceConfig.depends_on")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr)); + } else + goto handle_unusual; + continue; + // string model = 6 [json_name = "model"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + auto str = _internal_mutable_model(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ServiceConfig.model")); + } else + goto handle_unusual; + continue; + // string api = 9 [json_name = "api"]; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { + auto str = _internal_mutable_api(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ServiceConfig.api")); + } else + goto handle_unusual; + continue; + // repeated .viam.app.v1.ResourceLevelServiceConfig service_configs = 10 [json_name = "serviceConfigs", (.tagger.v1.tags) = "json:\"service_config\""]; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_service_configs(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<82>(ptr)); + } else + goto handle_unusual; + continue; + // .viam.app.v1.LogConfiguration log_configuration = 11 [json_name = "logConfiguration"]; + case 11: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 90)) { + ptr = ctx->ParseMessage(_internal_mutable_log_configuration(), 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; } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.log_configuration_ != nullptr); - _impl_.log_configuration_->Clear(); - } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ServiceConfig::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<4, 9, 3, 77, 2> ServiceConfig::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ServiceConfig, _impl_._has_bits_), - 0, // no _extensions_ - 11, 120, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294965440, // skipmap - offsetof(decltype(_table_), field_entries), - 9, // num_field_entries - 3, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ServiceConfig_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ServiceConfig, _impl_.name_)}}, - // string namespace = 2 [json_name = "namespace"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(ServiceConfig, _impl_.namespace__)}}, - // string type = 3 [json_name = "type"]; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(ServiceConfig, _impl_.type_)}}, - // .google.protobuf.Struct attributes = 4 [json_name = "attributes"]; - {::_pbi::TcParser::FastMtS1, - {34, 0, 0, PROTOBUF_FIELD_OFFSET(ServiceConfig, _impl_.attributes_)}}, - // repeated string depends_on = 5 [json_name = "dependsOn"]; - {::_pbi::TcParser::FastUR1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(ServiceConfig, _impl_.depends_on_)}}, - // string model = 6 [json_name = "model"]; - {::_pbi::TcParser::FastUS1, - {50, 63, 0, PROTOBUF_FIELD_OFFSET(ServiceConfig, _impl_.model_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - // string api = 9 [json_name = "api"]; - {::_pbi::TcParser::FastUS1, - {74, 63, 0, PROTOBUF_FIELD_OFFSET(ServiceConfig, _impl_.api_)}}, - // repeated .viam.app.v1.ResourceLevelServiceConfig service_configs = 10 [json_name = "serviceConfigs", (.tagger.v1.tags) = "json:\"service_config\""]; - {::_pbi::TcParser::FastMtR1, - {82, 63, 1, PROTOBUF_FIELD_OFFSET(ServiceConfig, _impl_.service_configs_)}}, - // .viam.app.v1.LogConfiguration log_configuration = 11 [json_name = "logConfiguration"]; - {::_pbi::TcParser::FastMtS1, - {90, 1, 2, PROTOBUF_FIELD_OFFSET(ServiceConfig, _impl_.log_configuration_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(ServiceConfig, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string namespace = 2 [json_name = "namespace"]; - {PROTOBUF_FIELD_OFFSET(ServiceConfig, _impl_.namespace__), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string type = 3 [json_name = "type"]; - {PROTOBUF_FIELD_OFFSET(ServiceConfig, _impl_.type_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct attributes = 4 [json_name = "attributes"]; - {PROTOBUF_FIELD_OFFSET(ServiceConfig, _impl_.attributes_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated string depends_on = 5 [json_name = "dependsOn"]; - {PROTOBUF_FIELD_OFFSET(ServiceConfig, _impl_.depends_on_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - // string model = 6 [json_name = "model"]; - {PROTOBUF_FIELD_OFFSET(ServiceConfig, _impl_.model_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string api = 9 [json_name = "api"]; - {PROTOBUF_FIELD_OFFSET(ServiceConfig, _impl_.api_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated .viam.app.v1.ResourceLevelServiceConfig service_configs = 10 [json_name = "serviceConfigs", (.tagger.v1.tags) = "json:\"service_config\""]; - {PROTOBUF_FIELD_OFFSET(ServiceConfig, _impl_.service_configs_), -1, 1, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // .viam.app.v1.LogConfiguration log_configuration = 11 [json_name = "logConfiguration"]; - {PROTOBUF_FIELD_OFFSET(ServiceConfig, _impl_.log_configuration_), _Internal::kHasBitsOffset + 1, 2, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - {::_pbi::TcParser::GetTable<::viam::app::v1::ResourceLevelServiceConfig>()}, - {::_pbi::TcParser::GetTable<::viam::app::v1::LogConfiguration>()}, - }}, {{ - "\31\4\11\4\0\12\5\3\0\0\0\0\0\0\0\0" - "viam.app.v1.ServiceConfig" - "name" - "namespace" - "type" - "depends_on" - "model" - "api" - }}, -}; - -::uint8_t* ServiceConfig::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ServiceConfig::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ServiceConfig) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ServiceConfig.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ServiceConfig.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // string namespace = 2 [json_name = "namespace"]; if (!this->_internal_namespace_().empty()) { - const std::string& _s = this->_internal_namespace_(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ServiceConfig.namespace"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_namespace_().data(), static_cast(this->_internal_namespace_().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ServiceConfig.namespace"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_namespace_(), target); } // string type = 3 [json_name = "type"]; if (!this->_internal_type().empty()) { - const std::string& _s = this->_internal_type(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ServiceConfig.type"); - target = stream->WriteStringMaybeAliased(3, _s, target); + ::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.ServiceConfig.type"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_type(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct attributes = 4 [json_name = "attributes"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, _Internal::attributes(this), + if (this->_internal_has_attributes()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::attributes(this), _Internal::attributes(this).GetCachedSize(), target, stream); } // repeated string depends_on = 5 [json_name = "dependsOn"]; - for (int i = 0, n = this->_internal_depends_on_size(); i < n; ++i) { - const auto& s = this->_internal_depends_on().Get(i); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ServiceConfig.depends_on"); + for (int i = 0, n = this->_internal_depends_on_size(); i < n; i++) { + const auto& s = this->_internal_depends_on(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ServiceConfig.depends_on"); target = stream->WriteString(5, s, target); } // string model = 6 [json_name = "model"]; if (!this->_internal_model().empty()) { - const std::string& _s = this->_internal_model(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ServiceConfig.model"); - target = stream->WriteStringMaybeAliased(6, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_model().data(), static_cast(this->_internal_model().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ServiceConfig.model"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_model(), target); } // string api = 9 [json_name = "api"]; if (!this->_internal_api().empty()) { - const std::string& _s = this->_internal_api(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ServiceConfig.api"); - target = stream->WriteStringMaybeAliased(9, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_api().data(), static_cast(this->_internal_api().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ServiceConfig.api"); + target = stream->WriteStringMaybeAliased( + 9, this->_internal_api(), target); } // repeated .viam.app.v1.ResourceLevelServiceConfig service_configs = 10 [json_name = "serviceConfigs", (.tagger.v1.tags) = "json:\"service_config\""]; for (unsigned i = 0, n = static_cast(this->_internal_service_configs_size()); i < n; i++) { - const auto& repfield = this->_internal_service_configs().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_service_configs(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(10, repfield, repfield.GetCachedSize(), target, stream); } // .viam.app.v1.LogConfiguration log_configuration = 11 [json_name = "logConfiguration"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 11, _Internal::log_configuration(this), + if (this->_internal_has_log_configuration()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(11, _Internal::log_configuration(this), _Internal::log_configuration(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.ServiceConfig) return target; } -::size_t ServiceConfig::ByteSizeLong() const { +size_t ServiceConfig::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ServiceConfig) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated string depends_on = 5 [json_name = "dependsOn"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_depends_on().size()); - for (int i = 0, n = _internal_depends_on().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - _internal_depends_on().Get(i)); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(depends_on_.size()); + for (int i = 0, n = depends_on_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + depends_on_.Get(i)); } + // repeated .viam.app.v1.ResourceLevelServiceConfig service_configs = 10 [json_name = "serviceConfigs", (.tagger.v1.tags) = "json:\"service_config\""]; total_size += 1UL * this->_internal_service_configs_size(); - for (const auto& msg : this->_internal_service_configs()) { + for (const auto& msg : this->service_configs_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // string namespace = 2 [json_name = "namespace"]; if (!this->_internal_namespace_().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_namespace_()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_namespace_()); } // string type = 3 [json_name = "type"]; if (!this->_internal_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_type()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_type()); } // string model = 6 [json_name = "model"]; if (!this->_internal_model().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_model()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_model()); } // string api = 9 [json_name = "api"]; if (!this->_internal_api().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_api()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_api()); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // .google.protobuf.Struct attributes = 4 [json_name = "attributes"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.attributes_); - } - - // .viam.app.v1.LogConfiguration log_configuration = 11 [json_name = "logConfiguration"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.log_configuration_); - } + // .google.protobuf.Struct attributes = 4 [json_name = "attributes"]; + if (this->_internal_has_attributes()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *attributes_); + } + // .viam.app.v1.LogConfiguration log_configuration = 11 [json_name = "logConfiguration"]; + if (this->_internal_has_log_configuration()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *log_configuration_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ServiceConfig::_class_data_ = { - ServiceConfig::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ServiceConfig::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ServiceConfig::MergeImpl }; -const ::google::protobuf::Message::ClassData* ServiceConfig::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ServiceConfig::GetClassData() const { return &_class_data_; } + +void ServiceConfig::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ServiceConfig::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ServiceConfig) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ServiceConfig::MergeFrom(const ServiceConfig& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ServiceConfig) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_depends_on()->MergeFrom(from._internal_depends_on()); - _this->_internal_mutable_service_configs()->MergeFrom( - from._internal_service_configs()); + depends_on_.MergeFrom(from.depends_on_); + service_configs_.MergeFrom(from.service_configs_); if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (!from._internal_namespace_().empty()) { - _this->_internal_set_namespace_(from._internal_namespace_()); + _internal_set_namespace_(from._internal_namespace_()); } if (!from._internal_type().empty()) { - _this->_internal_set_type(from._internal_type()); + _internal_set_type(from._internal_type()); } if (!from._internal_model().empty()) { - _this->_internal_set_model(from._internal_model()); + _internal_set_model(from._internal_model()); } if (!from._internal_api().empty()) { - _this->_internal_set_api(from._internal_api()); + _internal_set_api(from._internal_api()); } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_attributes()->::google::protobuf::Struct::MergeFrom( - from._internal_attributes()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_log_configuration()->::viam::app::v1::LogConfiguration::MergeFrom( - from._internal_log_configuration()); - } + if (from._internal_has_attributes()) { + _internal_mutable_attributes()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_attributes()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_log_configuration()) { + _internal_mutable_log_configuration()->::viam::app::v1::LogConfiguration::MergeFrom(from._internal_log_configuration()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ServiceConfig::CopyFrom(const ServiceConfig& from) { @@ -5528,335 +5490,389 @@ void ServiceConfig::CopyFrom(const ServiceConfig& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ServiceConfig::IsInitialized() const { +bool ServiceConfig::IsInitialized() const { return true; } -::_pbi::CachedSize* ServiceConfig::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ServiceConfig::InternalSwap(ServiceConfig* PROTOBUF_RESTRICT other) { +void ServiceConfig::InternalSwap(ServiceConfig* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.depends_on_.InternalSwap(&other->_impl_.depends_on_); - _impl_.service_configs_.InternalSwap(&other->_impl_.service_configs_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.namespace__, &other->_impl_.namespace__, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.type_, &other->_impl_.type_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.model_, &other->_impl_.model_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.api_, &other->_impl_.api_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(ServiceConfig, _impl_.log_configuration_) - + sizeof(ServiceConfig::_impl_.log_configuration_) - - PROTOBUF_FIELD_OFFSET(ServiceConfig, _impl_.attributes_)>( - reinterpret_cast(&_impl_.attributes_), - reinterpret_cast(&other->_impl_.attributes_)); -} - -::google::protobuf::Metadata ServiceConfig::GetMetadata() const { + depends_on_.InternalSwap(&other->depends_on_); + service_configs_.InternalSwap(&other->service_configs_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &namespace__, lhs_arena, + &other->namespace__, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &type_, lhs_arena, + &other->type_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &model_, lhs_arena, + &other->model_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &api_, lhs_arena, + &other->api_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(ServiceConfig, log_configuration_) + + sizeof(ServiceConfig::log_configuration_) + - PROTOBUF_FIELD_OFFSET(ServiceConfig, attributes_)>( + reinterpret_cast(&attributes_), + reinterpret_cast(&other->attributes_)); +} + +::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[9]); } + // =================================================================== class NetworkConfig::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(NetworkConfig, _impl_._has_bits_); static const ::viam::app::v1::SessionsConfig& sessions(const NetworkConfig* msg); - static void set_has_sessions(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::app::v1::SessionsConfig& NetworkConfig::_Internal::sessions(const NetworkConfig* msg) { - return *msg->_impl_.sessions_; +const ::viam::app::v1::SessionsConfig& +NetworkConfig::_Internal::sessions(const NetworkConfig* msg) { + return *msg->sessions_; } -NetworkConfig::NetworkConfig(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +NetworkConfig::NetworkConfig(::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.NetworkConfig) } -inline PROTOBUF_NDEBUG_INLINE NetworkConfig::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - fqdn_(arena, from.fqdn_), - bind_address_(arena, from.bind_address_), - tls_cert_file_(arena, from.tls_cert_file_), - tls_key_file_(arena, from.tls_key_file_) {} - -NetworkConfig::NetworkConfig( - ::google::protobuf::Arena* arena, - const NetworkConfig& from) - : ::google::protobuf::Message(arena) { - NetworkConfig* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.sessions_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::app::v1::SessionsConfig>(arena, *from._impl_.sessions_) - : nullptr; - +NetworkConfig::NetworkConfig(const NetworkConfig& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + fqdn_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + fqdn_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_fqdn().empty()) { + fqdn_.Set(from._internal_fqdn(), + GetArenaForAllocation()); + } + bind_address_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + bind_address_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_bind_address().empty()) { + bind_address_.Set(from._internal_bind_address(), + GetArenaForAllocation()); + } + tls_cert_file_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + tls_cert_file_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_tls_cert_file().empty()) { + tls_cert_file_.Set(from._internal_tls_cert_file(), + GetArenaForAllocation()); + } + tls_key_file_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + tls_key_file_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_tls_key_file().empty()) { + tls_key_file_.Set(from._internal_tls_key_file(), + GetArenaForAllocation()); + } + if (from._internal_has_sessions()) { + sessions_ = new ::viam::app::v1::SessionsConfig(*from.sessions_); + } else { + sessions_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.NetworkConfig) } -inline PROTOBUF_NDEBUG_INLINE NetworkConfig::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - fqdn_(arena), - bind_address_(arena), - tls_cert_file_(arena), - tls_key_file_(arena) {} -inline void NetworkConfig::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.sessions_ = {}; +inline void NetworkConfig::SharedCtor() { +fqdn_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + fqdn_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +bind_address_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + bind_address_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +tls_cert_file_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + tls_cert_file_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +tls_key_file_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + tls_key_file_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +sessions_ = nullptr; } + NetworkConfig::~NetworkConfig() { // @@protoc_insertion_point(destructor:viam.app.v1.NetworkConfig) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void NetworkConfig::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.fqdn_.Destroy(); - _impl_.bind_address_.Destroy(); - _impl_.tls_cert_file_.Destroy(); - _impl_.tls_key_file_.Destroy(); - delete _impl_.sessions_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + fqdn_.Destroy(); + bind_address_.Destroy(); + tls_cert_file_.Destroy(); + tls_key_file_.Destroy(); + if (this != internal_default_instance()) delete sessions_; } -PROTOBUF_NOINLINE void NetworkConfig::Clear() { +void NetworkConfig::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void NetworkConfig::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.NetworkConfig) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.fqdn_.ClearToEmpty(); - _impl_.bind_address_.ClearToEmpty(); - _impl_.tls_cert_file_.ClearToEmpty(); - _impl_.tls_key_file_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.sessions_ != nullptr); - _impl_.sessions_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* NetworkConfig::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + fqdn_.ClearToEmpty(); + bind_address_.ClearToEmpty(); + tls_cert_file_.ClearToEmpty(); + tls_key_file_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && sessions_ != nullptr) { + delete sessions_; + } + sessions_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* NetworkConfig::_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 fqdn = 1 [json_name = "fqdn"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_fqdn(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.NetworkConfig.fqdn")); + } else + goto handle_unusual; + continue; + // string bind_address = 2 [json_name = "bindAddress"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_bind_address(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.NetworkConfig.bind_address")); + } else + goto handle_unusual; + continue; + // string tls_cert_file = 3 [json_name = "tlsCertFile"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_tls_cert_file(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.NetworkConfig.tls_cert_file")); + } else + goto handle_unusual; + continue; + // string tls_key_file = 4 [json_name = "tlsKeyFile"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_tls_key_file(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.NetworkConfig.tls_key_file")); + } else + goto handle_unusual; + continue; + // .viam.app.v1.SessionsConfig sessions = 5 [json_name = "sessions"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_sessions(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 5, 1, 75, 2> NetworkConfig::_table_ = { - { - PROTOBUF_FIELD_OFFSET(NetworkConfig, _impl_._has_bits_), - 0, // no _extensions_ - 5, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967264, // skipmap - offsetof(decltype(_table_), field_entries), - 5, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_NetworkConfig_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string fqdn = 1 [json_name = "fqdn"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(NetworkConfig, _impl_.fqdn_)}}, - // string bind_address = 2 [json_name = "bindAddress"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(NetworkConfig, _impl_.bind_address_)}}, - // string tls_cert_file = 3 [json_name = "tlsCertFile"]; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(NetworkConfig, _impl_.tls_cert_file_)}}, - // string tls_key_file = 4 [json_name = "tlsKeyFile"]; - {::_pbi::TcParser::FastUS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(NetworkConfig, _impl_.tls_key_file_)}}, - // .viam.app.v1.SessionsConfig sessions = 5 [json_name = "sessions"]; - {::_pbi::TcParser::FastMtS1, - {42, 0, 0, PROTOBUF_FIELD_OFFSET(NetworkConfig, _impl_.sessions_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string fqdn = 1 [json_name = "fqdn"]; - {PROTOBUF_FIELD_OFFSET(NetworkConfig, _impl_.fqdn_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string bind_address = 2 [json_name = "bindAddress"]; - {PROTOBUF_FIELD_OFFSET(NetworkConfig, _impl_.bind_address_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string tls_cert_file = 3 [json_name = "tlsCertFile"]; - {PROTOBUF_FIELD_OFFSET(NetworkConfig, _impl_.tls_cert_file_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string tls_key_file = 4 [json_name = "tlsKeyFile"]; - {PROTOBUF_FIELD_OFFSET(NetworkConfig, _impl_.tls_key_file_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .viam.app.v1.SessionsConfig sessions = 5 [json_name = "sessions"]; - {PROTOBUF_FIELD_OFFSET(NetworkConfig, _impl_.sessions_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::SessionsConfig>()}, - }}, {{ - "\31\4\14\15\14\0\0\0" - "viam.app.v1.NetworkConfig" - "fqdn" - "bind_address" - "tls_cert_file" - "tls_key_file" - }}, -}; - -::uint8_t* NetworkConfig::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* NetworkConfig::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.NetworkConfig) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string fqdn = 1 [json_name = "fqdn"]; if (!this->_internal_fqdn().empty()) { - const std::string& _s = this->_internal_fqdn(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.NetworkConfig.fqdn"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_fqdn().data(), static_cast(this->_internal_fqdn().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.NetworkConfig.fqdn"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_fqdn(), target); } // string bind_address = 2 [json_name = "bindAddress"]; if (!this->_internal_bind_address().empty()) { - const std::string& _s = this->_internal_bind_address(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.NetworkConfig.bind_address"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_bind_address().data(), static_cast(this->_internal_bind_address().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.NetworkConfig.bind_address"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_bind_address(), target); } // string tls_cert_file = 3 [json_name = "tlsCertFile"]; if (!this->_internal_tls_cert_file().empty()) { - const std::string& _s = this->_internal_tls_cert_file(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.NetworkConfig.tls_cert_file"); - target = stream->WriteStringMaybeAliased(3, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_tls_cert_file().data(), static_cast(this->_internal_tls_cert_file().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.NetworkConfig.tls_cert_file"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_tls_cert_file(), target); } // string tls_key_file = 4 [json_name = "tlsKeyFile"]; if (!this->_internal_tls_key_file().empty()) { - const std::string& _s = this->_internal_tls_key_file(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.NetworkConfig.tls_key_file"); - target = stream->WriteStringMaybeAliased(4, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_tls_key_file().data(), static_cast(this->_internal_tls_key_file().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.NetworkConfig.tls_key_file"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_tls_key_file(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .viam.app.v1.SessionsConfig sessions = 5 [json_name = "sessions"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 5, _Internal::sessions(this), + if (this->_internal_has_sessions()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(5, _Internal::sessions(this), _Internal::sessions(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.NetworkConfig) return target; } -::size_t NetworkConfig::ByteSizeLong() const { +size_t NetworkConfig::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.NetworkConfig) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string fqdn = 1 [json_name = "fqdn"]; if (!this->_internal_fqdn().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_fqdn()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_fqdn()); } // string bind_address = 2 [json_name = "bindAddress"]; if (!this->_internal_bind_address().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_bind_address()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_bind_address()); } // string tls_cert_file = 3 [json_name = "tlsCertFile"]; if (!this->_internal_tls_cert_file().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_tls_cert_file()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_tls_cert_file()); } // string tls_key_file = 4 [json_name = "tlsKeyFile"]; if (!this->_internal_tls_key_file().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_tls_key_file()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_tls_key_file()); } // .viam.app.v1.SessionsConfig sessions = 5 [json_name = "sessions"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.sessions_); + if (this->_internal_has_sessions()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *sessions_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData NetworkConfig::_class_data_ = { - NetworkConfig::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NetworkConfig::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + NetworkConfig::MergeImpl }; -const ::google::protobuf::Message::ClassData* NetworkConfig::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NetworkConfig::GetClassData() const { return &_class_data_; } + +void NetworkConfig::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void NetworkConfig::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.NetworkConfig) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void NetworkConfig::MergeFrom(const NetworkConfig& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.NetworkConfig) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_fqdn().empty()) { - _this->_internal_set_fqdn(from._internal_fqdn()); + _internal_set_fqdn(from._internal_fqdn()); } if (!from._internal_bind_address().empty()) { - _this->_internal_set_bind_address(from._internal_bind_address()); + _internal_set_bind_address(from._internal_bind_address()); } if (!from._internal_tls_cert_file().empty()) { - _this->_internal_set_tls_cert_file(from._internal_tls_cert_file()); + _internal_set_tls_cert_file(from._internal_tls_cert_file()); } if (!from._internal_tls_key_file().empty()) { - _this->_internal_set_tls_key_file(from._internal_tls_key_file()); + _internal_set_tls_key_file(from._internal_tls_key_file()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_sessions()->::viam::app::v1::SessionsConfig::MergeFrom( - from._internal_sessions()); + if (from._internal_has_sessions()) { + _internal_mutable_sessions()->::viam::app::v1::SessionsConfig::MergeFrom(from._internal_sessions()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void NetworkConfig::CopyFrom(const NetworkConfig& from) { @@ -5866,215 +5882,208 @@ void NetworkConfig::CopyFrom(const NetworkConfig& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool NetworkConfig::IsInitialized() const { +bool NetworkConfig::IsInitialized() const { return true; } -::_pbi::CachedSize* NetworkConfig::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void NetworkConfig::InternalSwap(NetworkConfig* PROTOBUF_RESTRICT other) { +void NetworkConfig::InternalSwap(NetworkConfig* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.fqdn_, &other->_impl_.fqdn_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.bind_address_, &other->_impl_.bind_address_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.tls_cert_file_, &other->_impl_.tls_cert_file_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.tls_key_file_, &other->_impl_.tls_key_file_, arena); - swap(_impl_.sessions_, other->_impl_.sessions_); -} - -::google::protobuf::Metadata NetworkConfig::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &fqdn_, lhs_arena, + &other->fqdn_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &bind_address_, lhs_arena, + &other->bind_address_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &tls_cert_file_, lhs_arena, + &other->tls_cert_file_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &tls_key_file_, lhs_arena, + &other->tls_key_file_, rhs_arena + ); + swap(sessions_, other->sessions_); +} + +::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[10]); } + // =================================================================== class SessionsConfig::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SessionsConfig, _impl_._has_bits_); - static const ::google::protobuf::Duration& heartbeat_window(const SessionsConfig* msg); - static void set_has_heartbeat_window(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Duration& heartbeat_window(const SessionsConfig* msg); }; -const ::google::protobuf::Duration& SessionsConfig::_Internal::heartbeat_window(const SessionsConfig* msg) { - return *msg->_impl_.heartbeat_window_; +const ::PROTOBUF_NAMESPACE_ID::Duration& +SessionsConfig::_Internal::heartbeat_window(const SessionsConfig* msg) { + return *msg->heartbeat_window_; } void SessionsConfig::clear_heartbeat_window() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.heartbeat_window_ != nullptr) _impl_.heartbeat_window_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && heartbeat_window_ != nullptr) { + delete heartbeat_window_; + } + heartbeat_window_ = nullptr; } -SessionsConfig::SessionsConfig(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +SessionsConfig::SessionsConfig(::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.SessionsConfig) } -inline PROTOBUF_NDEBUG_INLINE SessionsConfig::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -SessionsConfig::SessionsConfig( - ::google::protobuf::Arena* arena, - const SessionsConfig& from) - : ::google::protobuf::Message(arena) { - SessionsConfig* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.heartbeat_window_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Duration>(arena, *from._impl_.heartbeat_window_) - : nullptr; - +SessionsConfig::SessionsConfig(const SessionsConfig& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_heartbeat_window()) { + heartbeat_window_ = new ::PROTOBUF_NAMESPACE_ID::Duration(*from.heartbeat_window_); + } else { + heartbeat_window_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.SessionsConfig) } -inline PROTOBUF_NDEBUG_INLINE SessionsConfig::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void SessionsConfig::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.heartbeat_window_ = {}; +inline void SessionsConfig::SharedCtor() { +heartbeat_window_ = nullptr; } + SessionsConfig::~SessionsConfig() { // @@protoc_insertion_point(destructor:viam.app.v1.SessionsConfig) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void SessionsConfig::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.heartbeat_window_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete heartbeat_window_; +} + +void SessionsConfig::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void SessionsConfig::Clear() { +void SessionsConfig::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.SessionsConfig) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.heartbeat_window_ != nullptr); - _impl_.heartbeat_window_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SessionsConfig::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + if (GetArenaForAllocation() == nullptr && heartbeat_window_ != nullptr) { + delete heartbeat_window_; + } + heartbeat_window_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SessionsConfig::_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) { + // .google.protobuf.Duration heartbeat_window = 1 [json_name = "heartbeatWindow"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_heartbeat_window(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SessionsConfig::_table_ = { - { - PROTOBUF_FIELD_OFFSET(SessionsConfig, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_SessionsConfig_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .google.protobuf.Duration heartbeat_window = 1 [json_name = "heartbeatWindow"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(SessionsConfig, _impl_.heartbeat_window_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .google.protobuf.Duration heartbeat_window = 1 [json_name = "heartbeatWindow"]; - {PROTOBUF_FIELD_OFFSET(SessionsConfig, _impl_.heartbeat_window_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Duration>()}, - }}, {{ - }}, -}; - -::uint8_t* SessionsConfig::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* SessionsConfig::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.SessionsConfig) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Duration heartbeat_window = 1 [json_name = "heartbeatWindow"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::heartbeat_window(this), + if (this->_internal_has_heartbeat_window()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::heartbeat_window(this), _Internal::heartbeat_window(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.SessionsConfig) return target; } -::size_t SessionsConfig::ByteSizeLong() const { +size_t SessionsConfig::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.SessionsConfig) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .google.protobuf.Duration heartbeat_window = 1 [json_name = "heartbeatWindow"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.heartbeat_window_); + if (this->_internal_has_heartbeat_window()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *heartbeat_window_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData SessionsConfig::_class_data_ = { - SessionsConfig::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SessionsConfig::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + SessionsConfig::MergeImpl }; -const ::google::protobuf::Message::ClassData* SessionsConfig::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SessionsConfig::GetClassData() const { return &_class_data_; } + +void SessionsConfig::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void SessionsConfig::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.SessionsConfig) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void SessionsConfig::MergeFrom(const SessionsConfig& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.SessionsConfig) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_heartbeat_window()->::google::protobuf::Duration::MergeFrom( - from._internal_heartbeat_window()); + if (from._internal_has_heartbeat_window()) { + _internal_mutable_heartbeat_window()->::PROTOBUF_NAMESPACE_ID::Duration::MergeFrom(from._internal_heartbeat_window()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SessionsConfig::CopyFrom(const SessionsConfig& from) { @@ -6084,258 +6093,263 @@ void SessionsConfig::CopyFrom(const SessionsConfig& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool SessionsConfig::IsInitialized() const { +bool SessionsConfig::IsInitialized() const { return true; } -::_pbi::CachedSize* SessionsConfig::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void SessionsConfig::InternalSwap(SessionsConfig* PROTOBUF_RESTRICT other) { +void SessionsConfig::InternalSwap(SessionsConfig* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.heartbeat_window_, other->_impl_.heartbeat_window_); + swap(heartbeat_window_, other->heartbeat_window_); } -::google::protobuf::Metadata SessionsConfig::GetMetadata() const { +::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[11]); } + // =================================================================== class AuthConfig::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(AuthConfig, _impl_._has_bits_); + using HasBits = decltype(std::declval()._has_bits_); static const ::viam::app::v1::ExternalAuthConfig& external_auth_config(const AuthConfig* msg); static void set_has_external_auth_config(HasBits* has_bits) { (*has_bits)[0] |= 1u; } }; -const ::viam::app::v1::ExternalAuthConfig& AuthConfig::_Internal::external_auth_config(const AuthConfig* msg) { - return *msg->_impl_.external_auth_config_; +const ::viam::app::v1::ExternalAuthConfig& +AuthConfig::_Internal::external_auth_config(const AuthConfig* msg) { + return *msg->external_auth_config_; } -AuthConfig::AuthConfig(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +AuthConfig::AuthConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + handlers_(arena), + tls_auth_entities_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.v1.AuthConfig) } -inline PROTOBUF_NDEBUG_INLINE AuthConfig::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - handlers_{visibility, arena, from.handlers_}, - tls_auth_entities_{visibility, arena, from.tls_auth_entities_} {} - -AuthConfig::AuthConfig( - ::google::protobuf::Arena* arena, - const AuthConfig& from) - : ::google::protobuf::Message(arena) { - AuthConfig* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.external_auth_config_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::app::v1::ExternalAuthConfig>(arena, *from._impl_.external_auth_config_) - : nullptr; - +AuthConfig::AuthConfig(const AuthConfig& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_), + handlers_(from.handlers_), + tls_auth_entities_(from.tls_auth_entities_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_external_auth_config()) { + external_auth_config_ = new ::viam::app::v1::ExternalAuthConfig(*from.external_auth_config_); + } else { + external_auth_config_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.AuthConfig) } -inline PROTOBUF_NDEBUG_INLINE AuthConfig::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - handlers_{visibility, arena}, - tls_auth_entities_{visibility, arena} {} -inline void AuthConfig::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.external_auth_config_ = {}; +inline void AuthConfig::SharedCtor() { +external_auth_config_ = nullptr; } + AuthConfig::~AuthConfig() { // @@protoc_insertion_point(destructor:viam.app.v1.AuthConfig) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void AuthConfig::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.external_auth_config_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete external_auth_config_; +} + +void AuthConfig::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void AuthConfig::Clear() { +void AuthConfig::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.AuthConfig) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.handlers_.Clear(); - _impl_.tls_auth_entities_.Clear(); - cached_has_bits = _impl_._has_bits_[0]; + handlers_.Clear(); + tls_auth_entities_.Clear(); + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.external_auth_config_ != nullptr); - _impl_.external_auth_config_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* AuthConfig::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + GOOGLE_DCHECK(external_auth_config_ != nullptr); + external_auth_config_->Clear(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* AuthConfig::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // repeated .viam.app.v1.AuthHandlerConfig handlers = 1 [json_name = "handlers"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_handlers(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + // repeated string tls_auth_entities = 2 [json_name = "tlsAuthEntities"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_tls_auth_entities(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.AuthConfig.tls_auth_entities")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } else + goto handle_unusual; + continue; + // optional .viam.app.v1.ExternalAuthConfig external_auth_config = 3 [json_name = "externalAuthConfig"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_external_auth_config(), 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: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 2, 48, 2> AuthConfig::_table_ = { - { - PROTOBUF_FIELD_OFFSET(AuthConfig, _impl_._has_bits_), - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_AuthConfig_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // repeated .viam.app.v1.AuthHandlerConfig handlers = 1 [json_name = "handlers"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(AuthConfig, _impl_.handlers_)}}, - // repeated string tls_auth_entities = 2 [json_name = "tlsAuthEntities"]; - {::_pbi::TcParser::FastUR1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(AuthConfig, _impl_.tls_auth_entities_)}}, - // optional .viam.app.v1.ExternalAuthConfig external_auth_config = 3 [json_name = "externalAuthConfig"]; - {::_pbi::TcParser::FastMtS1, - {26, 0, 1, PROTOBUF_FIELD_OFFSET(AuthConfig, _impl_.external_auth_config_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.app.v1.AuthHandlerConfig handlers = 1 [json_name = "handlers"]; - {PROTOBUF_FIELD_OFFSET(AuthConfig, _impl_.handlers_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated string tls_auth_entities = 2 [json_name = "tlsAuthEntities"]; - {PROTOBUF_FIELD_OFFSET(AuthConfig, _impl_.tls_auth_entities_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - // optional .viam.app.v1.ExternalAuthConfig external_auth_config = 3 [json_name = "externalAuthConfig"]; - {PROTOBUF_FIELD_OFFSET(AuthConfig, _impl_.external_auth_config_), _Internal::kHasBitsOffset + 0, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::AuthHandlerConfig>()}, - {::_pbi::TcParser::GetTable<::viam::app::v1::ExternalAuthConfig>()}, - }}, {{ - "\26\0\21\0\0\0\0\0" - "viam.app.v1.AuthConfig" - "tls_auth_entities" - }}, -}; - -::uint8_t* AuthConfig::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* AuthConfig::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.AuthConfig) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .viam.app.v1.AuthHandlerConfig handlers = 1 [json_name = "handlers"]; for (unsigned i = 0, n = static_cast(this->_internal_handlers_size()); i < n; i++) { - const auto& repfield = this->_internal_handlers().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_handlers(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } // repeated string tls_auth_entities = 2 [json_name = "tlsAuthEntities"]; - for (int i = 0, n = this->_internal_tls_auth_entities_size(); i < n; ++i) { - const auto& s = this->_internal_tls_auth_entities().Get(i); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.AuthConfig.tls_auth_entities"); + for (int i = 0, n = this->_internal_tls_auth_entities_size(); i < n; i++) { + const auto& s = this->_internal_tls_auth_entities(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.AuthConfig.tls_auth_entities"); target = stream->WriteString(2, s, target); } - cached_has_bits = _impl_._has_bits_[0]; // optional .viam.app.v1.ExternalAuthConfig external_auth_config = 3 [json_name = "externalAuthConfig"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::external_auth_config(this), + if (_internal_has_external_auth_config()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::external_auth_config(this), _Internal::external_auth_config(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.AuthConfig) return target; } -::size_t AuthConfig::ByteSizeLong() const { +size_t AuthConfig::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.AuthConfig) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.app.v1.AuthHandlerConfig handlers = 1 [json_name = "handlers"]; total_size += 1UL * this->_internal_handlers_size(); - for (const auto& msg : this->_internal_handlers()) { + for (const auto& msg : this->handlers_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // repeated string tls_auth_entities = 2 [json_name = "tlsAuthEntities"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_tls_auth_entities().size()); - for (int i = 0, n = _internal_tls_auth_entities().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - _internal_tls_auth_entities().Get(i)); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(tls_auth_entities_.size()); + for (int i = 0, n = tls_auth_entities_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + tls_auth_entities_.Get(i)); } + // optional .viam.app.v1.ExternalAuthConfig external_auth_config = 3 [json_name = "externalAuthConfig"]; - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.external_auth_config_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *external_auth_config_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData AuthConfig::_class_data_ = { - AuthConfig::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AuthConfig::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + AuthConfig::MergeImpl }; -const ::google::protobuf::Message::ClassData* AuthConfig::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AuthConfig::GetClassData() const { return &_class_data_; } + +void AuthConfig::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void AuthConfig::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.AuthConfig) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void AuthConfig::MergeFrom(const AuthConfig& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.AuthConfig) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_handlers()->MergeFrom( - from._internal_handlers()); - _this->_internal_mutable_tls_auth_entities()->MergeFrom(from._internal_tls_auth_entities()); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_external_auth_config()->::viam::app::v1::ExternalAuthConfig::MergeFrom( - from._internal_external_auth_config()); + handlers_.MergeFrom(from.handlers_); + tls_auth_entities_.MergeFrom(from.tls_auth_entities_); + if (from._internal_has_external_auth_config()) { + _internal_mutable_external_auth_config()->::viam::app::v1::ExternalAuthConfig::MergeFrom(from._internal_external_auth_config()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void AuthConfig::CopyFrom(const AuthConfig& from) { @@ -6345,211 +6359,193 @@ void AuthConfig::CopyFrom(const AuthConfig& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool AuthConfig::IsInitialized() const { +bool AuthConfig::IsInitialized() const { return true; } -::_pbi::CachedSize* AuthConfig::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void AuthConfig::InternalSwap(AuthConfig* PROTOBUF_RESTRICT other) { +void AuthConfig::InternalSwap(AuthConfig* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.handlers_.InternalSwap(&other->_impl_.handlers_); - _impl_.tls_auth_entities_.InternalSwap(&other->_impl_.tls_auth_entities_); - swap(_impl_.external_auth_config_, other->_impl_.external_auth_config_); + swap(_has_bits_[0], other->_has_bits_[0]); + handlers_.InternalSwap(&other->handlers_); + tls_auth_entities_.InternalSwap(&other->tls_auth_entities_); + swap(external_auth_config_, other->external_auth_config_); } -::google::protobuf::Metadata AuthConfig::GetMetadata() const { +::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[12]); } + // =================================================================== class JWKSFile::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(JWKSFile, _impl_._has_bits_); - static const ::google::protobuf::Struct& json(const JWKSFile* msg); - static void set_has_json(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& json(const JWKSFile* msg); }; -const ::google::protobuf::Struct& JWKSFile::_Internal::json(const JWKSFile* msg) { - return *msg->_impl_.json_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +JWKSFile::_Internal::json(const JWKSFile* msg) { + return *msg->json_; } void JWKSFile::clear_json() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.json_ != nullptr) _impl_.json_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && json_ != nullptr) { + delete json_; + } + json_ = nullptr; } -JWKSFile::JWKSFile(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +JWKSFile::JWKSFile(::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.JWKSFile) } -inline PROTOBUF_NDEBUG_INLINE JWKSFile::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -JWKSFile::JWKSFile( - ::google::protobuf::Arena* arena, - const JWKSFile& from) - : ::google::protobuf::Message(arena) { - JWKSFile* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.json_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.json_) - : nullptr; - +JWKSFile::JWKSFile(const JWKSFile& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_json()) { + json_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.json_); + } else { + json_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.JWKSFile) } -inline PROTOBUF_NDEBUG_INLINE JWKSFile::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void JWKSFile::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.json_ = {}; +inline void JWKSFile::SharedCtor() { +json_ = nullptr; } + JWKSFile::~JWKSFile() { // @@protoc_insertion_point(destructor:viam.app.v1.JWKSFile) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void JWKSFile::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.json_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete json_; } -PROTOBUF_NOINLINE void JWKSFile::Clear() { +void JWKSFile::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void JWKSFile::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.JWKSFile) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.json_ != nullptr); - _impl_.json_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* JWKSFile::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + if (GetArenaForAllocation() == nullptr && json_ != nullptr) { + delete json_; + } + json_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* JWKSFile::_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) { + // .google.protobuf.Struct json = 1 [json_name = "json"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_json(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> JWKSFile::_table_ = { - { - PROTOBUF_FIELD_OFFSET(JWKSFile, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_JWKSFile_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .google.protobuf.Struct json = 1 [json_name = "json"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(JWKSFile, _impl_.json_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .google.protobuf.Struct json = 1 [json_name = "json"]; - {PROTOBUF_FIELD_OFFSET(JWKSFile, _impl_.json_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - }}, -}; - -::uint8_t* JWKSFile::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* JWKSFile::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.JWKSFile) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct json = 1 [json_name = "json"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::json(this), + if (this->_internal_has_json()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::json(this), _Internal::json(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.JWKSFile) return target; } -::size_t JWKSFile::ByteSizeLong() const { +size_t JWKSFile::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.JWKSFile) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .google.protobuf.Struct json = 1 [json_name = "json"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.json_); + if (this->_internal_has_json()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *json_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData JWKSFile::_class_data_ = { - JWKSFile::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData JWKSFile::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + JWKSFile::MergeImpl }; -const ::google::protobuf::Message::ClassData* JWKSFile::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*JWKSFile::GetClassData() const { return &_class_data_; } + +void JWKSFile::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void JWKSFile::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.JWKSFile) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void JWKSFile::MergeFrom(const JWKSFile& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.JWKSFile) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_json()->::google::protobuf::Struct::MergeFrom( - from._internal_json()); + if (from._internal_has_json()) { + _internal_mutable_json()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_json()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void JWKSFile::CopyFrom(const JWKSFile& from) { @@ -6559,204 +6555,184 @@ void JWKSFile::CopyFrom(const JWKSFile& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool JWKSFile::IsInitialized() const { +bool JWKSFile::IsInitialized() const { return true; } -::_pbi::CachedSize* JWKSFile::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void JWKSFile::InternalSwap(JWKSFile* PROTOBUF_RESTRICT other) { +void JWKSFile::InternalSwap(JWKSFile* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.json_, other->_impl_.json_); + swap(json_, other->json_); } -::google::protobuf::Metadata JWKSFile::GetMetadata() const { +::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[13]); } + // =================================================================== class ExternalAuthConfig::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ExternalAuthConfig, _impl_._has_bits_); static const ::viam::app::v1::JWKSFile& jwks(const ExternalAuthConfig* msg); - static void set_has_jwks(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::app::v1::JWKSFile& ExternalAuthConfig::_Internal::jwks(const ExternalAuthConfig* msg) { - return *msg->_impl_.jwks_; +const ::viam::app::v1::JWKSFile& +ExternalAuthConfig::_Internal::jwks(const ExternalAuthConfig* msg) { + return *msg->jwks_; } -ExternalAuthConfig::ExternalAuthConfig(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ExternalAuthConfig::ExternalAuthConfig(::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.ExternalAuthConfig) } -inline PROTOBUF_NDEBUG_INLINE ExternalAuthConfig::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -ExternalAuthConfig::ExternalAuthConfig( - ::google::protobuf::Arena* arena, - const ExternalAuthConfig& from) - : ::google::protobuf::Message(arena) { - ExternalAuthConfig* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.jwks_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::app::v1::JWKSFile>(arena, *from._impl_.jwks_) - : nullptr; - +ExternalAuthConfig::ExternalAuthConfig(const ExternalAuthConfig& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_jwks()) { + jwks_ = new ::viam::app::v1::JWKSFile(*from.jwks_); + } else { + jwks_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.ExternalAuthConfig) } -inline PROTOBUF_NDEBUG_INLINE ExternalAuthConfig::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void ExternalAuthConfig::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.jwks_ = {}; +inline void ExternalAuthConfig::SharedCtor() { +jwks_ = nullptr; } + ExternalAuthConfig::~ExternalAuthConfig() { // @@protoc_insertion_point(destructor:viam.app.v1.ExternalAuthConfig) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ExternalAuthConfig::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.jwks_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete jwks_; +} + +void ExternalAuthConfig::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void ExternalAuthConfig::Clear() { +void ExternalAuthConfig::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.ExternalAuthConfig) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.jwks_ != nullptr); - _impl_.jwks_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ExternalAuthConfig::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + if (GetArenaForAllocation() == nullptr && jwks_ != nullptr) { + delete jwks_; + } + jwks_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ExternalAuthConfig::_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.app.v1.JWKSFile jwks = 1 [json_name = "jwks"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_jwks(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ExternalAuthConfig::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ExternalAuthConfig, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ExternalAuthConfig_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.app.v1.JWKSFile jwks = 1 [json_name = "jwks"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(ExternalAuthConfig, _impl_.jwks_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.app.v1.JWKSFile jwks = 1 [json_name = "jwks"]; - {PROTOBUF_FIELD_OFFSET(ExternalAuthConfig, _impl_.jwks_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::JWKSFile>()}, - }}, {{ - }}, -}; - -::uint8_t* ExternalAuthConfig::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ExternalAuthConfig::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ExternalAuthConfig) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.app.v1.JWKSFile jwks = 1 [json_name = "jwks"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::jwks(this), + if (this->_internal_has_jwks()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::jwks(this), _Internal::jwks(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.ExternalAuthConfig) return target; } -::size_t ExternalAuthConfig::ByteSizeLong() const { +size_t ExternalAuthConfig::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ExternalAuthConfig) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .viam.app.v1.JWKSFile jwks = 1 [json_name = "jwks"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.jwks_); + if (this->_internal_has_jwks()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *jwks_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ExternalAuthConfig::_class_data_ = { - ExternalAuthConfig::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ExternalAuthConfig::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ExternalAuthConfig::MergeImpl }; -const ::google::protobuf::Message::ClassData* ExternalAuthConfig::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ExternalAuthConfig::GetClassData() const { return &_class_data_; } + +void ExternalAuthConfig::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ExternalAuthConfig::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ExternalAuthConfig) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ExternalAuthConfig::MergeFrom(const ExternalAuthConfig& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ExternalAuthConfig) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_jwks()->::viam::app::v1::JWKSFile::MergeFrom( - from._internal_jwks()); + if (from._internal_has_jwks()) { + _internal_mutable_jwks()->::viam::app::v1::JWKSFile::MergeFrom(from._internal_jwks()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ExternalAuthConfig::CopyFrom(const ExternalAuthConfig& from) { @@ -6766,235 +6742,220 @@ void ExternalAuthConfig::CopyFrom(const ExternalAuthConfig& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ExternalAuthConfig::IsInitialized() const { +bool ExternalAuthConfig::IsInitialized() const { return true; } -::_pbi::CachedSize* ExternalAuthConfig::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ExternalAuthConfig::InternalSwap(ExternalAuthConfig* PROTOBUF_RESTRICT other) { +void ExternalAuthConfig::InternalSwap(ExternalAuthConfig* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.jwks_, other->_impl_.jwks_); + swap(jwks_, other->jwks_); } -::google::protobuf::Metadata ExternalAuthConfig::GetMetadata() const { +::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[14]); } + // =================================================================== class AuthHandlerConfig::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(AuthHandlerConfig, _impl_._has_bits_); - static const ::google::protobuf::Struct& config(const AuthHandlerConfig* msg); - static void set_has_config(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& config(const AuthHandlerConfig* msg); }; -const ::google::protobuf::Struct& AuthHandlerConfig::_Internal::config(const AuthHandlerConfig* msg) { - return *msg->_impl_.config_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +AuthHandlerConfig::_Internal::config(const AuthHandlerConfig* msg) { + return *msg->config_; } void AuthHandlerConfig::clear_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.config_ != nullptr) _impl_.config_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && config_ != nullptr) { + delete config_; + } + config_ = nullptr; } -AuthHandlerConfig::AuthHandlerConfig(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +AuthHandlerConfig::AuthHandlerConfig(::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.AuthHandlerConfig) } -inline PROTOBUF_NDEBUG_INLINE AuthHandlerConfig::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -AuthHandlerConfig::AuthHandlerConfig( - ::google::protobuf::Arena* arena, - const AuthHandlerConfig& from) - : ::google::protobuf::Message(arena) { - AuthHandlerConfig* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.config_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.config_) - : nullptr; - _impl_.type_ = from._impl_.type_; - +AuthHandlerConfig::AuthHandlerConfig(const AuthHandlerConfig& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_config()) { + config_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.config_); + } else { + config_ = nullptr; + } + type_ = from.type_; // @@protoc_insertion_point(copy_constructor:viam.app.v1.AuthHandlerConfig) } -inline PROTOBUF_NDEBUG_INLINE AuthHandlerConfig::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void AuthHandlerConfig::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, config_), - 0, - offsetof(Impl_, type_) - - offsetof(Impl_, config_) + - sizeof(Impl_::type_)); +inline void AuthHandlerConfig::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&config_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&type_) - + reinterpret_cast(&config_)) + sizeof(type_)); } + AuthHandlerConfig::~AuthHandlerConfig() { // @@protoc_insertion_point(destructor:viam.app.v1.AuthHandlerConfig) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void AuthHandlerConfig::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.config_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete config_; +} + +void AuthHandlerConfig::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void AuthHandlerConfig::Clear() { +void AuthHandlerConfig::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.AuthHandlerConfig) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.config_ != nullptr); - _impl_.config_->Clear(); - } - _impl_.type_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* AuthHandlerConfig::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + if (GetArenaForAllocation() == nullptr && config_ != nullptr) { + delete config_; + } + config_ = nullptr; + type_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* AuthHandlerConfig::_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.app.v1.CredentialsType type = 1 [json_name = "type"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_type(static_cast<::viam::app::v1::CredentialsType>(val)); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct config = 5 [json_name = "config"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_config(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 2, 1, 0, 2> AuthHandlerConfig::_table_ = { - { - PROTOBUF_FIELD_OFFSET(AuthHandlerConfig, _impl_._has_bits_), - 0, // no _extensions_ - 5, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967278, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_AuthHandlerConfig_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.app.v1.CredentialsType type = 1 [json_name = "type"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(AuthHandlerConfig, _impl_.type_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(AuthHandlerConfig, _impl_.type_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.app.v1.CredentialsType type = 1 [json_name = "type"]; - {PROTOBUF_FIELD_OFFSET(AuthHandlerConfig, _impl_.type_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // .google.protobuf.Struct config = 5 [json_name = "config"]; - {PROTOBUF_FIELD_OFFSET(AuthHandlerConfig, _impl_.config_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - }}, -}; - -::uint8_t* AuthHandlerConfig::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* AuthHandlerConfig::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.AuthHandlerConfig) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // .viam.app.v1.CredentialsType type = 1 [json_name = "type"]; if (this->_internal_type() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_type(), target); + 1, this->_internal_type(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct config = 5 [json_name = "config"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 5, _Internal::config(this), + if (this->_internal_has_config()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(5, _Internal::config(this), _Internal::config(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.AuthHandlerConfig) return target; } -::size_t AuthHandlerConfig::ByteSizeLong() const { +size_t AuthHandlerConfig::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.AuthHandlerConfig) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .google.protobuf.Struct config = 5 [json_name = "config"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.config_); + if (this->_internal_has_config()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *config_); } // .viam.app.v1.CredentialsType type = 1 [json_name = "type"]; if (this->_internal_type() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_type()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_type()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData AuthHandlerConfig::_class_data_ = { - AuthHandlerConfig::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AuthHandlerConfig::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + AuthHandlerConfig::MergeImpl }; -const ::google::protobuf::Message::ClassData* AuthHandlerConfig::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AuthHandlerConfig::GetClassData() const { return &_class_data_; } + +void AuthHandlerConfig::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void AuthHandlerConfig::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.AuthHandlerConfig) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void AuthHandlerConfig::MergeFrom(const AuthHandlerConfig& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.AuthHandlerConfig) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_config()->::google::protobuf::Struct::MergeFrom( - from._internal_config()); + if (from._internal_has_config()) { + _internal_mutable_config()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_config()); } if (from._internal_type() != 0) { - _this->_internal_set_type(from._internal_type()); + _internal_set_type(from._internal_type()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void AuthHandlerConfig::CopyFrom(const AuthHandlerConfig& from) { @@ -7004,334 +6965,322 @@ void AuthHandlerConfig::CopyFrom(const AuthHandlerConfig& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool AuthHandlerConfig::IsInitialized() const { +bool AuthHandlerConfig::IsInitialized() const { return true; } -::_pbi::CachedSize* AuthHandlerConfig::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void AuthHandlerConfig::InternalSwap(AuthHandlerConfig* PROTOBUF_RESTRICT other) { +void AuthHandlerConfig::InternalSwap(AuthHandlerConfig* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(AuthHandlerConfig, _impl_.type_) - + sizeof(AuthHandlerConfig::_impl_.type_) - - PROTOBUF_FIELD_OFFSET(AuthHandlerConfig, _impl_.config_)>( - reinterpret_cast(&_impl_.config_), - reinterpret_cast(&other->_impl_.config_)); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(AuthHandlerConfig, type_) + + sizeof(AuthHandlerConfig::type_) + - PROTOBUF_FIELD_OFFSET(AuthHandlerConfig, config_)>( + reinterpret_cast(&config_), + reinterpret_cast(&other->config_)); } -::google::protobuf::Metadata AuthHandlerConfig::GetMetadata() const { +::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[15]); } + // =================================================================== class Frame::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Frame, _impl_._has_bits_); static const ::viam::app::v1::Translation& translation(const Frame* msg); - static void set_has_translation(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } static const ::viam::app::v1::Orientation& orientation(const Frame* msg); - static void set_has_orientation(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } static const ::viam::common::v1::Geometry& geometry(const Frame* msg); - static void set_has_geometry(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } }; -const ::viam::app::v1::Translation& Frame::_Internal::translation(const Frame* msg) { - return *msg->_impl_.translation_; +const ::viam::app::v1::Translation& +Frame::_Internal::translation(const Frame* msg) { + return *msg->translation_; } -const ::viam::app::v1::Orientation& Frame::_Internal::orientation(const Frame* msg) { - return *msg->_impl_.orientation_; +const ::viam::app::v1::Orientation& +Frame::_Internal::orientation(const Frame* msg) { + return *msg->orientation_; } -const ::viam::common::v1::Geometry& Frame::_Internal::geometry(const Frame* msg) { - return *msg->_impl_.geometry_; +const ::viam::common::v1::Geometry& +Frame::_Internal::geometry(const Frame* msg) { + return *msg->geometry_; } void Frame::clear_geometry() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.geometry_ != nullptr) _impl_.geometry_->Clear(); - _impl_._has_bits_[0] &= ~0x00000004u; + if (GetArenaForAllocation() == nullptr && geometry_ != nullptr) { + delete geometry_; + } + geometry_ = nullptr; } -Frame::Frame(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Frame::Frame(::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.Frame) } -inline PROTOBUF_NDEBUG_INLINE Frame::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - parent_(arena, from.parent_) {} - -Frame::Frame( - ::google::protobuf::Arena* arena, - const Frame& from) - : ::google::protobuf::Message(arena) { - Frame* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.translation_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::app::v1::Translation>(arena, *from._impl_.translation_) - : nullptr; - _impl_.orientation_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::viam::app::v1::Orientation>(arena, *from._impl_.orientation_) - : nullptr; - _impl_.geometry_ = (cached_has_bits & 0x00000004u) - ? CreateMaybeMessage<::viam::common::v1::Geometry>(arena, *from._impl_.geometry_) - : nullptr; - +Frame::Frame(const Frame& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + parent_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + parent_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_parent().empty()) { + parent_.Set(from._internal_parent(), + GetArenaForAllocation()); + } + if (from._internal_has_translation()) { + translation_ = new ::viam::app::v1::Translation(*from.translation_); + } else { + translation_ = nullptr; + } + if (from._internal_has_orientation()) { + orientation_ = new ::viam::app::v1::Orientation(*from.orientation_); + } else { + orientation_ = nullptr; + } + if (from._internal_has_geometry()) { + geometry_ = new ::viam::common::v1::Geometry(*from.geometry_); + } else { + geometry_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.Frame) } -inline PROTOBUF_NDEBUG_INLINE Frame::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - parent_(arena) {} - -inline void Frame::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, translation_), - 0, - offsetof(Impl_, geometry_) - - offsetof(Impl_, translation_) + - sizeof(Impl_::geometry_)); + +inline void Frame::SharedCtor() { +parent_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + parent_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&translation_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&geometry_) - + reinterpret_cast(&translation_)) + sizeof(geometry_)); } + Frame::~Frame() { // @@protoc_insertion_point(destructor:viam.app.v1.Frame) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Frame::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.parent_.Destroy(); - delete _impl_.translation_; - delete _impl_.orientation_; - delete _impl_.geometry_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + parent_.Destroy(); + if (this != internal_default_instance()) delete translation_; + if (this != internal_default_instance()) delete orientation_; + if (this != internal_default_instance()) delete geometry_; +} + +void Frame::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void Frame::Clear() { +void Frame::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.Frame) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.parent_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.translation_ != nullptr); - _impl_.translation_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.orientation_ != nullptr); - _impl_.orientation_->Clear(); + parent_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && translation_ != nullptr) { + delete translation_; + } + translation_ = nullptr; + if (GetArenaForAllocation() == nullptr && orientation_ != nullptr) { + delete orientation_; + } + orientation_ = nullptr; + if (GetArenaForAllocation() == nullptr && geometry_ != nullptr) { + delete geometry_; + } + geometry_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Frame::_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 parent = 1 [json_name = "parent"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_parent(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.Frame.parent")); + } else + goto handle_unusual; + continue; + // .viam.app.v1.Translation translation = 2 [json_name = "translation"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_translation(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.app.v1.Orientation orientation = 3 [json_name = "orientation"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_orientation(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.common.v1.Geometry geometry = 4 [json_name = "geometry"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_geometry(), 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; } - if (cached_has_bits & 0x00000004u) { - ABSL_DCHECK(_impl_.geometry_ != nullptr); - _impl_.geometry_->Clear(); - } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Frame::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 3, 32, 2> Frame::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Frame, _impl_._has_bits_), - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 3, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Frame_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.common.v1.Geometry geometry = 4 [json_name = "geometry"]; - {::_pbi::TcParser::FastMtS1, - {34, 2, 2, PROTOBUF_FIELD_OFFSET(Frame, _impl_.geometry_)}}, - // string parent = 1 [json_name = "parent"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Frame, _impl_.parent_)}}, - // .viam.app.v1.Translation translation = 2 [json_name = "translation"]; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(Frame, _impl_.translation_)}}, - // .viam.app.v1.Orientation orientation = 3 [json_name = "orientation"]; - {::_pbi::TcParser::FastMtS1, - {26, 1, 1, PROTOBUF_FIELD_OFFSET(Frame, _impl_.orientation_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string parent = 1 [json_name = "parent"]; - {PROTOBUF_FIELD_OFFSET(Frame, _impl_.parent_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .viam.app.v1.Translation translation = 2 [json_name = "translation"]; - {PROTOBUF_FIELD_OFFSET(Frame, _impl_.translation_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .viam.app.v1.Orientation orientation = 3 [json_name = "orientation"]; - {PROTOBUF_FIELD_OFFSET(Frame, _impl_.orientation_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .viam.common.v1.Geometry geometry = 4 [json_name = "geometry"]; - {PROTOBUF_FIELD_OFFSET(Frame, _impl_.geometry_), _Internal::kHasBitsOffset + 2, 2, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::Translation>()}, - {::_pbi::TcParser::GetTable<::viam::app::v1::Orientation>()}, - {::_pbi::TcParser::GetTable<::viam::common::v1::Geometry>()}, - }}, {{ - "\21\6\0\0\0\0\0\0" - "viam.app.v1.Frame" - "parent" - }}, -}; - -::uint8_t* Frame::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Frame::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.Frame) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string parent = 1 [json_name = "parent"]; if (!this->_internal_parent().empty()) { - const std::string& _s = this->_internal_parent(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.Frame.parent"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_parent().data(), static_cast(this->_internal_parent().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.Frame.parent"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_parent(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .viam.app.v1.Translation translation = 2 [json_name = "translation"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::translation(this), + if (this->_internal_has_translation()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::translation(this), _Internal::translation(this).GetCachedSize(), target, stream); } // .viam.app.v1.Orientation orientation = 3 [json_name = "orientation"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::orientation(this), + if (this->_internal_has_orientation()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::orientation(this), _Internal::orientation(this).GetCachedSize(), target, stream); } // .viam.common.v1.Geometry geometry = 4 [json_name = "geometry"]; - if (cached_has_bits & 0x00000004u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, _Internal::geometry(this), + if (this->_internal_has_geometry()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::geometry(this), _Internal::geometry(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.Frame) return target; } -::size_t Frame::ByteSizeLong() const { +size_t Frame::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.Frame) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string parent = 1 [json_name = "parent"]; if (!this->_internal_parent().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_parent()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_parent()); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - // .viam.app.v1.Translation translation = 2 [json_name = "translation"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.translation_); - } - - // .viam.app.v1.Orientation orientation = 3 [json_name = "orientation"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.orientation_); - } + // .viam.app.v1.Translation translation = 2 [json_name = "translation"]; + if (this->_internal_has_translation()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *translation_); + } - // .viam.common.v1.Geometry geometry = 4 [json_name = "geometry"]; - if (cached_has_bits & 0x00000004u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.geometry_); - } + // .viam.app.v1.Orientation orientation = 3 [json_name = "orientation"]; + if (this->_internal_has_orientation()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *orientation_); + } + // .viam.common.v1.Geometry geometry = 4 [json_name = "geometry"]; + if (this->_internal_has_geometry()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *geometry_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Frame::_class_data_ = { - Frame::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Frame::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Frame::MergeImpl }; -const ::google::protobuf::Message::ClassData* Frame::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Frame::GetClassData() const { return &_class_data_; } + +void Frame::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Frame::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.Frame) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Frame::MergeFrom(const Frame& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.Frame) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_parent().empty()) { - _this->_internal_set_parent(from._internal_parent()); + _internal_set_parent(from._internal_parent()); } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_translation()->::viam::app::v1::Translation::MergeFrom( - from._internal_translation()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_orientation()->::viam::app::v1::Orientation::MergeFrom( - from._internal_orientation()); - } - if (cached_has_bits & 0x00000004u) { - _this->_internal_mutable_geometry()->::viam::common::v1::Geometry::MergeFrom( - from._internal_geometry()); - } + if (from._internal_has_translation()) { + _internal_mutable_translation()->::viam::app::v1::Translation::MergeFrom(from._internal_translation()); + } + if (from._internal_has_orientation()) { + _internal_mutable_orientation()->::viam::app::v1::Orientation::MergeFrom(from._internal_orientation()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_geometry()) { + _internal_mutable_geometry()->::viam::common::v1::Geometry::MergeFrom(from._internal_geometry()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Frame::CopyFrom(const Frame& from) { @@ -7341,194 +7290,198 @@ void Frame::CopyFrom(const Frame& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Frame::IsInitialized() const { +bool Frame::IsInitialized() const { return true; } -::_pbi::CachedSize* Frame::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Frame::InternalSwap(Frame* PROTOBUF_RESTRICT other) { +void Frame::InternalSwap(Frame* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.parent_, &other->_impl_.parent_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(Frame, _impl_.geometry_) - + sizeof(Frame::_impl_.geometry_) - - PROTOBUF_FIELD_OFFSET(Frame, _impl_.translation_)>( - reinterpret_cast(&_impl_.translation_), - reinterpret_cast(&other->_impl_.translation_)); -} - -::google::protobuf::Metadata Frame::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &parent_, lhs_arena, + &other->parent_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Frame, geometry_) + + sizeof(Frame::geometry_) + - PROTOBUF_FIELD_OFFSET(Frame, translation_)>( + reinterpret_cast(&translation_), + reinterpret_cast(&other->translation_)); +} + +::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[16]); } + // =================================================================== class LogConfiguration::_Internal { public: }; -LogConfiguration::LogConfiguration(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +LogConfiguration::LogConfiguration(::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.LogConfiguration) } -inline PROTOBUF_NDEBUG_INLINE LogConfiguration::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : level_(arena, from.level_), - _cached_size_{0} {} - -LogConfiguration::LogConfiguration( - ::google::protobuf::Arena* arena, - const LogConfiguration& from) - : ::google::protobuf::Message(arena) { - LogConfiguration* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +LogConfiguration::LogConfiguration(const LogConfiguration& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + level_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + level_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_level().empty()) { + level_.Set(from._internal_level(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.LogConfiguration) } -inline PROTOBUF_NDEBUG_INLINE LogConfiguration::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : level_(arena), - _cached_size_{0} {} -inline void LogConfiguration::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void LogConfiguration::SharedCtor() { +level_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + level_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + LogConfiguration::~LogConfiguration() { // @@protoc_insertion_point(destructor:viam.app.v1.LogConfiguration) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void LogConfiguration::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.level_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + level_.Destroy(); +} + +void LogConfiguration::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void LogConfiguration::Clear() { +void LogConfiguration::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.LogConfiguration) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.level_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* LogConfiguration::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + level_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* LogConfiguration::_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 level = 1 [json_name = "level"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_level(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.LogConfiguration.level")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 42, 2> LogConfiguration::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_LogConfiguration_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string level = 1 [json_name = "level"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(LogConfiguration, _impl_.level_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string level = 1 [json_name = "level"]; - {PROTOBUF_FIELD_OFFSET(LogConfiguration, _impl_.level_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\34\5\0\0\0\0\0\0" - "viam.app.v1.LogConfiguration" - "level" - }}, -}; - -::uint8_t* LogConfiguration::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* LogConfiguration::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.LogConfiguration) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string level = 1 [json_name = "level"]; if (!this->_internal_level().empty()) { - const std::string& _s = this->_internal_level(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.LogConfiguration.level"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_level().data(), static_cast(this->_internal_level().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.LogConfiguration.level"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_level(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.LogConfiguration) return target; } -::size_t LogConfiguration::ByteSizeLong() const { +size_t LogConfiguration::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.LogConfiguration) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string level = 1 [json_name = "level"]; if (!this->_internal_level().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_level()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_level()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData LogConfiguration::_class_data_ = { - LogConfiguration::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LogConfiguration::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + LogConfiguration::MergeImpl }; -const ::google::protobuf::Message::ClassData* LogConfiguration::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LogConfiguration::GetClassData() const { return &_class_data_; } + +void LogConfiguration::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void LogConfiguration::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.LogConfiguration) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void LogConfiguration::MergeFrom(const LogConfiguration& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.LogConfiguration) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_level().empty()) { - _this->_internal_set_level(from._internal_level()); + _internal_set_level(from._internal_level()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void LogConfiguration::CopyFrom(const LogConfiguration& from) { @@ -7538,263 +7491,260 @@ void LogConfiguration::CopyFrom(const LogConfiguration& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool LogConfiguration::IsInitialized() const { +bool LogConfiguration::IsInitialized() const { return true; } -::_pbi::CachedSize* LogConfiguration::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void LogConfiguration::InternalSwap(LogConfiguration* PROTOBUF_RESTRICT other) { +void LogConfiguration::InternalSwap(LogConfiguration* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.level_, &other->_impl_.level_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &level_, lhs_arena, + &other->level_, rhs_arena + ); } -::google::protobuf::Metadata LogConfiguration::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata LogConfiguration::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]); } + // =================================================================== class Translation::_Internal { public: }; -Translation::Translation(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Translation::Translation(::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.Translation) } -Translation::Translation( - ::google::protobuf::Arena* arena, const Translation& from) - : Translation(arena) { - MergeFrom(from); +Translation::Translation(const Translation& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&x_, &from.x_, + static_cast(reinterpret_cast(&z_) - + reinterpret_cast(&x_)) + sizeof(z_)); + // @@protoc_insertion_point(copy_constructor:viam.app.v1.Translation) } -inline PROTOBUF_NDEBUG_INLINE Translation::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void Translation::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, x_), - 0, - offsetof(Impl_, z_) - - offsetof(Impl_, x_) + - sizeof(Impl_::z_)); +inline void Translation::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&x_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&z_) - + reinterpret_cast(&x_)) + sizeof(z_)); } + Translation::~Translation() { // @@protoc_insertion_point(destructor:viam.app.v1.Translation) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Translation::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void Translation::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void Translation::Clear() { +void Translation::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.Translation) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&_impl_.x_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.z_) - - reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.z_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Translation::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + ::memset(&x_, 0, static_cast( + reinterpret_cast(&z_) - + reinterpret_cast(&x_)) + sizeof(z_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Translation::_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) { + // double x = 1 [json_name = "x"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 9)) { + x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double y = 2 [json_name = "y"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 17)) { + y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double z = 3 [json_name = "z"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 25)) { + z_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 0, 2> Translation::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_Translation_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // double x = 1 [json_name = "x"]; - {::_pbi::TcParser::FastF64S1, - {9, 63, 0, PROTOBUF_FIELD_OFFSET(Translation, _impl_.x_)}}, - // double y = 2 [json_name = "y"]; - {::_pbi::TcParser::FastF64S1, - {17, 63, 0, PROTOBUF_FIELD_OFFSET(Translation, _impl_.y_)}}, - // double z = 3 [json_name = "z"]; - {::_pbi::TcParser::FastF64S1, - {25, 63, 0, PROTOBUF_FIELD_OFFSET(Translation, _impl_.z_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // double x = 1 [json_name = "x"]; - {PROTOBUF_FIELD_OFFSET(Translation, _impl_.x_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double y = 2 [json_name = "y"]; - {PROTOBUF_FIELD_OFFSET(Translation, _impl_.y_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double z = 3 [json_name = "z"]; - {PROTOBUF_FIELD_OFFSET(Translation, _impl_.z_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* Translation::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Translation::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.Translation) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // double x = 1 [json_name = "x"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_x = this->_internal_x(); - ::uint64_t raw_x; + uint64_t raw_x; memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); if (raw_x != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 1, this->_internal_x(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(1, this->_internal_x(), target); } // double y = 2 [json_name = "y"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_y = this->_internal_y(); - ::uint64_t raw_y; + uint64_t raw_y; memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); if (raw_y != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 2, this->_internal_y(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_y(), target); } // double z = 3 [json_name = "z"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_z = this->_internal_z(); - ::uint64_t raw_z; + uint64_t raw_z; memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); if (raw_z != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 3, this->_internal_z(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(3, this->_internal_z(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.Translation) return target; } -::size_t Translation::ByteSizeLong() const { +size_t Translation::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.Translation) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // double x = 1 [json_name = "x"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_x = this->_internal_x(); - ::uint64_t raw_x; + uint64_t raw_x; memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); if (raw_x != 0) { - total_size += 9; + total_size += 1 + 8; } // double y = 2 [json_name = "y"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_y = this->_internal_y(); - ::uint64_t raw_y; + uint64_t raw_y; memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); if (raw_y != 0) { - total_size += 9; + total_size += 1 + 8; } // double z = 3 [json_name = "z"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_z = this->_internal_z(); - ::uint64_t raw_z; + uint64_t raw_z; memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); if (raw_z != 0) { - total_size += 9; + total_size += 1 + 8; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Translation::_class_data_ = { - Translation::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Translation::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Translation::MergeImpl }; -const ::google::protobuf::Message::ClassData* Translation::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Translation::GetClassData() const { return &_class_data_; } + +void Translation::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Translation::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.Translation) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Translation::MergeFrom(const Translation& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.Translation) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_x = from._internal_x(); - ::uint64_t raw_x; + uint64_t raw_x; memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); if (raw_x != 0) { - _this->_internal_set_x(from._internal_x()); + _internal_set_x(from._internal_x()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_y = from._internal_y(); - ::uint64_t raw_y; + uint64_t raw_y; memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); if (raw_y != 0) { - _this->_internal_set_y(from._internal_y()); + _internal_set_y(from._internal_y()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_z = from._internal_z(); - ::uint64_t raw_z; + uint64_t raw_z; memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); if (raw_z != 0) { - _this->_internal_set_z(from._internal_z()); + _internal_set_z(from._internal_z()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Translation::CopyFrom(const Translation& from) { @@ -7804,48 +7754,41 @@ void Translation::CopyFrom(const Translation& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Translation::IsInitialized() const { +bool Translation::IsInitialized() const { return true; } -::_pbi::CachedSize* Translation::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Translation::InternalSwap(Translation* PROTOBUF_RESTRICT other) { +void Translation::InternalSwap(Translation* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(Translation, _impl_.z_) - + sizeof(Translation::_impl_.z_) - - PROTOBUF_FIELD_OFFSET(Translation, _impl_.x_)>( - reinterpret_cast(&_impl_.x_), - reinterpret_cast(&other->_impl_.x_)); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Translation, z_) + + sizeof(Translation::z_) + - PROTOBUF_FIELD_OFFSET(Translation, x_)>( + reinterpret_cast(&x_), + reinterpret_cast(&other->x_)); } -::google::protobuf::Metadata Translation::GetMetadata() const { +::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[18]); } + // =================================================================== class Orientation_NoOrientation::_Internal { public: }; -Orientation_NoOrientation::Orientation_NoOrientation(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +Orientation_NoOrientation::Orientation_NoOrientation(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.app.v1.Orientation.NoOrientation) } -Orientation_NoOrientation::Orientation_NoOrientation( - ::google::protobuf::Arena* arena, - const Orientation_NoOrientation& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - Orientation_NoOrientation* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +Orientation_NoOrientation::Orientation_NoOrientation(const Orientation_NoOrientation& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.app.v1.Orientation.NoOrientation) } @@ -7853,287 +7796,291 @@ Orientation_NoOrientation::Orientation_NoOrientation( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Orientation_NoOrientation::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Orientation_NoOrientation::GetClassData() const { return &_class_data_; } + + + -::google::protobuf::Metadata Orientation_NoOrientation::GetMetadata() const { +::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[19]); } + // =================================================================== class Orientation_OrientationVectorRadians::_Internal { public: }; -Orientation_OrientationVectorRadians::Orientation_OrientationVectorRadians(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Orientation_OrientationVectorRadians::Orientation_OrientationVectorRadians(::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.Orientation.OrientationVectorRadians) } -Orientation_OrientationVectorRadians::Orientation_OrientationVectorRadians( - ::google::protobuf::Arena* arena, const Orientation_OrientationVectorRadians& from) - : Orientation_OrientationVectorRadians(arena) { - MergeFrom(from); +Orientation_OrientationVectorRadians::Orientation_OrientationVectorRadians(const Orientation_OrientationVectorRadians& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&theta_, &from.theta_, + static_cast(reinterpret_cast(&z_) - + reinterpret_cast(&theta_)) + sizeof(z_)); + // @@protoc_insertion_point(copy_constructor:viam.app.v1.Orientation.OrientationVectorRadians) } -inline PROTOBUF_NDEBUG_INLINE Orientation_OrientationVectorRadians::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void Orientation_OrientationVectorRadians::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, theta_), - 0, - offsetof(Impl_, z_) - - offsetof(Impl_, theta_) + - sizeof(Impl_::z_)); +inline void Orientation_OrientationVectorRadians::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&theta_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&z_) - + reinterpret_cast(&theta_)) + sizeof(z_)); } + Orientation_OrientationVectorRadians::~Orientation_OrientationVectorRadians() { // @@protoc_insertion_point(destructor:viam.app.v1.Orientation.OrientationVectorRadians) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Orientation_OrientationVectorRadians::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void Orientation_OrientationVectorRadians::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void Orientation_OrientationVectorRadians::Clear() { +void Orientation_OrientationVectorRadians::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.Orientation.OrientationVectorRadians) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&_impl_.theta_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.z_) - - reinterpret_cast(&_impl_.theta_)) + sizeof(_impl_.z_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Orientation_OrientationVectorRadians::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + ::memset(&theta_, 0, static_cast( + reinterpret_cast(&z_) - + reinterpret_cast(&theta_)) + sizeof(z_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Orientation_OrientationVectorRadians::_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) { + // double theta = 1 [json_name = "theta", (.tagger.v1.tags) = "json:\"th\""]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 9)) { + theta_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double x = 2 [json_name = "x"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 17)) { + x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double y = 3 [json_name = "y"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 25)) { + y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double z = 4 [json_name = "z"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 33)) { + z_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 0, 0, 2> Orientation_OrientationVectorRadians::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_Orientation_OrientationVectorRadians_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // double z = 4 [json_name = "z"]; - {::_pbi::TcParser::FastF64S1, - {33, 63, 0, PROTOBUF_FIELD_OFFSET(Orientation_OrientationVectorRadians, _impl_.z_)}}, - // double theta = 1 [json_name = "theta", (.tagger.v1.tags) = "json:\"th\""]; - {::_pbi::TcParser::FastF64S1, - {9, 63, 0, PROTOBUF_FIELD_OFFSET(Orientation_OrientationVectorRadians, _impl_.theta_)}}, - // double x = 2 [json_name = "x"]; - {::_pbi::TcParser::FastF64S1, - {17, 63, 0, PROTOBUF_FIELD_OFFSET(Orientation_OrientationVectorRadians, _impl_.x_)}}, - // double y = 3 [json_name = "y"]; - {::_pbi::TcParser::FastF64S1, - {25, 63, 0, PROTOBUF_FIELD_OFFSET(Orientation_OrientationVectorRadians, _impl_.y_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // double theta = 1 [json_name = "theta", (.tagger.v1.tags) = "json:\"th\""]; - {PROTOBUF_FIELD_OFFSET(Orientation_OrientationVectorRadians, _impl_.theta_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double x = 2 [json_name = "x"]; - {PROTOBUF_FIELD_OFFSET(Orientation_OrientationVectorRadians, _impl_.x_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double y = 3 [json_name = "y"]; - {PROTOBUF_FIELD_OFFSET(Orientation_OrientationVectorRadians, _impl_.y_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double z = 4 [json_name = "z"]; - {PROTOBUF_FIELD_OFFSET(Orientation_OrientationVectorRadians, _impl_.z_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* Orientation_OrientationVectorRadians::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Orientation_OrientationVectorRadians::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.Orientation.OrientationVectorRadians) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // double theta = 1 [json_name = "theta", (.tagger.v1.tags) = "json:\"th\""]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_theta = this->_internal_theta(); - ::uint64_t raw_theta; + uint64_t raw_theta; memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta)); if (raw_theta != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 1, this->_internal_theta(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(1, this->_internal_theta(), target); } // double x = 2 [json_name = "x"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_x = this->_internal_x(); - ::uint64_t raw_x; + uint64_t raw_x; memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); if (raw_x != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 2, this->_internal_x(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_x(), target); } // double y = 3 [json_name = "y"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_y = this->_internal_y(); - ::uint64_t raw_y; + uint64_t raw_y; memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); if (raw_y != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 3, this->_internal_y(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(3, this->_internal_y(), target); } // double z = 4 [json_name = "z"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_z = this->_internal_z(); - ::uint64_t raw_z; + uint64_t raw_z; memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); if (raw_z != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 4, this->_internal_z(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(4, this->_internal_z(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.Orientation.OrientationVectorRadians) return target; } -::size_t Orientation_OrientationVectorRadians::ByteSizeLong() const { +size_t Orientation_OrientationVectorRadians::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.Orientation.OrientationVectorRadians) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // double theta = 1 [json_name = "theta", (.tagger.v1.tags) = "json:\"th\""]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_theta = this->_internal_theta(); - ::uint64_t raw_theta; + uint64_t raw_theta; memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta)); if (raw_theta != 0) { - total_size += 9; + total_size += 1 + 8; } // double x = 2 [json_name = "x"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_x = this->_internal_x(); - ::uint64_t raw_x; + uint64_t raw_x; memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); if (raw_x != 0) { - total_size += 9; + total_size += 1 + 8; } // double y = 3 [json_name = "y"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_y = this->_internal_y(); - ::uint64_t raw_y; + uint64_t raw_y; memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); if (raw_y != 0) { - total_size += 9; + total_size += 1 + 8; } // double z = 4 [json_name = "z"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_z = this->_internal_z(); - ::uint64_t raw_z; + uint64_t raw_z; memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); if (raw_z != 0) { - total_size += 9; + total_size += 1 + 8; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Orientation_OrientationVectorRadians::_class_data_ = { - Orientation_OrientationVectorRadians::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Orientation_OrientationVectorRadians::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Orientation_OrientationVectorRadians::MergeImpl }; -const ::google::protobuf::Message::ClassData* Orientation_OrientationVectorRadians::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Orientation_OrientationVectorRadians::GetClassData() const { return &_class_data_; } + +void Orientation_OrientationVectorRadians::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Orientation_OrientationVectorRadians::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.Orientation.OrientationVectorRadians) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Orientation_OrientationVectorRadians::MergeFrom(const Orientation_OrientationVectorRadians& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.Orientation.OrientationVectorRadians) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_theta = from._internal_theta(); - ::uint64_t raw_theta; + uint64_t raw_theta; memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta)); if (raw_theta != 0) { - _this->_internal_set_theta(from._internal_theta()); + _internal_set_theta(from._internal_theta()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_x = from._internal_x(); - ::uint64_t raw_x; + uint64_t raw_x; memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); if (raw_x != 0) { - _this->_internal_set_x(from._internal_x()); + _internal_set_x(from._internal_x()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_y = from._internal_y(); - ::uint64_t raw_y; + uint64_t raw_y; memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); if (raw_y != 0) { - _this->_internal_set_y(from._internal_y()); + _internal_set_y(from._internal_y()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_z = from._internal_z(); - ::uint64_t raw_z; + uint64_t raw_z; memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); if (raw_z != 0) { - _this->_internal_set_z(from._internal_z()); + _internal_set_z(from._internal_z()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Orientation_OrientationVectorRadians::CopyFrom(const Orientation_OrientationVectorRadians& from) { @@ -8143,301 +8090,294 @@ void Orientation_OrientationVectorRadians::CopyFrom(const Orientation_Orientatio MergeFrom(from); } -PROTOBUF_NOINLINE bool Orientation_OrientationVectorRadians::IsInitialized() const { +bool Orientation_OrientationVectorRadians::IsInitialized() const { return true; } -::_pbi::CachedSize* Orientation_OrientationVectorRadians::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Orientation_OrientationVectorRadians::InternalSwap(Orientation_OrientationVectorRadians* PROTOBUF_RESTRICT other) { +void Orientation_OrientationVectorRadians::InternalSwap(Orientation_OrientationVectorRadians* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(Orientation_OrientationVectorRadians, _impl_.z_) - + sizeof(Orientation_OrientationVectorRadians::_impl_.z_) - - PROTOBUF_FIELD_OFFSET(Orientation_OrientationVectorRadians, _impl_.theta_)>( - reinterpret_cast(&_impl_.theta_), - reinterpret_cast(&other->_impl_.theta_)); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Orientation_OrientationVectorRadians, z_) + + sizeof(Orientation_OrientationVectorRadians::z_) + - PROTOBUF_FIELD_OFFSET(Orientation_OrientationVectorRadians, theta_)>( + reinterpret_cast(&theta_), + reinterpret_cast(&other->theta_)); } -::google::protobuf::Metadata Orientation_OrientationVectorRadians::GetMetadata() const { +::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[20]); } + // =================================================================== class Orientation_OrientationVectorDegrees::_Internal { public: }; -Orientation_OrientationVectorDegrees::Orientation_OrientationVectorDegrees(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Orientation_OrientationVectorDegrees::Orientation_OrientationVectorDegrees(::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.Orientation.OrientationVectorDegrees) } -Orientation_OrientationVectorDegrees::Orientation_OrientationVectorDegrees( - ::google::protobuf::Arena* arena, const Orientation_OrientationVectorDegrees& from) - : Orientation_OrientationVectorDegrees(arena) { - MergeFrom(from); +Orientation_OrientationVectorDegrees::Orientation_OrientationVectorDegrees(const Orientation_OrientationVectorDegrees& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&theta_, &from.theta_, + static_cast(reinterpret_cast(&z_) - + reinterpret_cast(&theta_)) + sizeof(z_)); + // @@protoc_insertion_point(copy_constructor:viam.app.v1.Orientation.OrientationVectorDegrees) } -inline PROTOBUF_NDEBUG_INLINE Orientation_OrientationVectorDegrees::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void Orientation_OrientationVectorDegrees::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, theta_), - 0, - offsetof(Impl_, z_) - - offsetof(Impl_, theta_) + - sizeof(Impl_::z_)); +inline void Orientation_OrientationVectorDegrees::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&theta_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&z_) - + reinterpret_cast(&theta_)) + sizeof(z_)); } + Orientation_OrientationVectorDegrees::~Orientation_OrientationVectorDegrees() { // @@protoc_insertion_point(destructor:viam.app.v1.Orientation.OrientationVectorDegrees) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Orientation_OrientationVectorDegrees::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void Orientation_OrientationVectorDegrees::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void Orientation_OrientationVectorDegrees::Clear() { +void Orientation_OrientationVectorDegrees::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.Orientation.OrientationVectorDegrees) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&_impl_.theta_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.z_) - - reinterpret_cast(&_impl_.theta_)) + sizeof(_impl_.z_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Orientation_OrientationVectorDegrees::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + ::memset(&theta_, 0, static_cast( + reinterpret_cast(&z_) - + reinterpret_cast(&theta_)) + sizeof(z_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Orientation_OrientationVectorDegrees::_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) { + // double theta = 1 [json_name = "theta", (.tagger.v1.tags) = "json:\"th\""]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 9)) { + theta_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double x = 2 [json_name = "x"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 17)) { + x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double y = 3 [json_name = "y"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 25)) { + y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double z = 4 [json_name = "z"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 33)) { + z_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 0, 0, 2> Orientation_OrientationVectorDegrees::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_Orientation_OrientationVectorDegrees_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // double z = 4 [json_name = "z"]; - {::_pbi::TcParser::FastF64S1, - {33, 63, 0, PROTOBUF_FIELD_OFFSET(Orientation_OrientationVectorDegrees, _impl_.z_)}}, - // double theta = 1 [json_name = "theta", (.tagger.v1.tags) = "json:\"th\""]; - {::_pbi::TcParser::FastF64S1, - {9, 63, 0, PROTOBUF_FIELD_OFFSET(Orientation_OrientationVectorDegrees, _impl_.theta_)}}, - // double x = 2 [json_name = "x"]; - {::_pbi::TcParser::FastF64S1, - {17, 63, 0, PROTOBUF_FIELD_OFFSET(Orientation_OrientationVectorDegrees, _impl_.x_)}}, - // double y = 3 [json_name = "y"]; - {::_pbi::TcParser::FastF64S1, - {25, 63, 0, PROTOBUF_FIELD_OFFSET(Orientation_OrientationVectorDegrees, _impl_.y_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // double theta = 1 [json_name = "theta", (.tagger.v1.tags) = "json:\"th\""]; - {PROTOBUF_FIELD_OFFSET(Orientation_OrientationVectorDegrees, _impl_.theta_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double x = 2 [json_name = "x"]; - {PROTOBUF_FIELD_OFFSET(Orientation_OrientationVectorDegrees, _impl_.x_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double y = 3 [json_name = "y"]; - {PROTOBUF_FIELD_OFFSET(Orientation_OrientationVectorDegrees, _impl_.y_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double z = 4 [json_name = "z"]; - {PROTOBUF_FIELD_OFFSET(Orientation_OrientationVectorDegrees, _impl_.z_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* Orientation_OrientationVectorDegrees::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Orientation_OrientationVectorDegrees::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.Orientation.OrientationVectorDegrees) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // double theta = 1 [json_name = "theta", (.tagger.v1.tags) = "json:\"th\""]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_theta = this->_internal_theta(); - ::uint64_t raw_theta; + uint64_t raw_theta; memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta)); if (raw_theta != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 1, this->_internal_theta(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(1, this->_internal_theta(), target); } // double x = 2 [json_name = "x"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_x = this->_internal_x(); - ::uint64_t raw_x; + uint64_t raw_x; memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); if (raw_x != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 2, this->_internal_x(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_x(), target); } // double y = 3 [json_name = "y"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_y = this->_internal_y(); - ::uint64_t raw_y; + uint64_t raw_y; memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); if (raw_y != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 3, this->_internal_y(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(3, this->_internal_y(), target); } // double z = 4 [json_name = "z"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_z = this->_internal_z(); - ::uint64_t raw_z; + uint64_t raw_z; memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); if (raw_z != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 4, this->_internal_z(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(4, this->_internal_z(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.Orientation.OrientationVectorDegrees) return target; } -::size_t Orientation_OrientationVectorDegrees::ByteSizeLong() const { +size_t Orientation_OrientationVectorDegrees::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.Orientation.OrientationVectorDegrees) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // double theta = 1 [json_name = "theta", (.tagger.v1.tags) = "json:\"th\""]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_theta = this->_internal_theta(); - ::uint64_t raw_theta; + uint64_t raw_theta; memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta)); if (raw_theta != 0) { - total_size += 9; + total_size += 1 + 8; } // double x = 2 [json_name = "x"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_x = this->_internal_x(); - ::uint64_t raw_x; + uint64_t raw_x; memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); if (raw_x != 0) { - total_size += 9; + total_size += 1 + 8; } // double y = 3 [json_name = "y"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_y = this->_internal_y(); - ::uint64_t raw_y; + uint64_t raw_y; memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); if (raw_y != 0) { - total_size += 9; + total_size += 1 + 8; } // double z = 4 [json_name = "z"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_z = this->_internal_z(); - ::uint64_t raw_z; + uint64_t raw_z; memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); if (raw_z != 0) { - total_size += 9; + total_size += 1 + 8; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Orientation_OrientationVectorDegrees::_class_data_ = { - Orientation_OrientationVectorDegrees::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Orientation_OrientationVectorDegrees::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Orientation_OrientationVectorDegrees::MergeImpl }; -const ::google::protobuf::Message::ClassData* Orientation_OrientationVectorDegrees::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Orientation_OrientationVectorDegrees::GetClassData() const { return &_class_data_; } + +void Orientation_OrientationVectorDegrees::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Orientation_OrientationVectorDegrees::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.Orientation.OrientationVectorDegrees) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Orientation_OrientationVectorDegrees::MergeFrom(const Orientation_OrientationVectorDegrees& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.Orientation.OrientationVectorDegrees) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_theta = from._internal_theta(); - ::uint64_t raw_theta; + uint64_t raw_theta; memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta)); if (raw_theta != 0) { - _this->_internal_set_theta(from._internal_theta()); + _internal_set_theta(from._internal_theta()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_x = from._internal_x(); - ::uint64_t raw_x; + uint64_t raw_x; memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); if (raw_x != 0) { - _this->_internal_set_x(from._internal_x()); + _internal_set_x(from._internal_x()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_y = from._internal_y(); - ::uint64_t raw_y; + uint64_t raw_y; memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); if (raw_y != 0) { - _this->_internal_set_y(from._internal_y()); + _internal_set_y(from._internal_y()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_z = from._internal_z(); - ::uint64_t raw_z; + uint64_t raw_z; memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); if (raw_z != 0) { - _this->_internal_set_z(from._internal_z()); + _internal_set_z(from._internal_z()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Orientation_OrientationVectorDegrees::CopyFrom(const Orientation_OrientationVectorDegrees& from) { @@ -8447,266 +8387,260 @@ void Orientation_OrientationVectorDegrees::CopyFrom(const Orientation_Orientatio MergeFrom(from); } -PROTOBUF_NOINLINE bool Orientation_OrientationVectorDegrees::IsInitialized() const { +bool Orientation_OrientationVectorDegrees::IsInitialized() const { return true; } -::_pbi::CachedSize* Orientation_OrientationVectorDegrees::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Orientation_OrientationVectorDegrees::InternalSwap(Orientation_OrientationVectorDegrees* PROTOBUF_RESTRICT other) { +void Orientation_OrientationVectorDegrees::InternalSwap(Orientation_OrientationVectorDegrees* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(Orientation_OrientationVectorDegrees, _impl_.z_) - + sizeof(Orientation_OrientationVectorDegrees::_impl_.z_) - - PROTOBUF_FIELD_OFFSET(Orientation_OrientationVectorDegrees, _impl_.theta_)>( - reinterpret_cast(&_impl_.theta_), - reinterpret_cast(&other->_impl_.theta_)); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Orientation_OrientationVectorDegrees, z_) + + sizeof(Orientation_OrientationVectorDegrees::z_) + - PROTOBUF_FIELD_OFFSET(Orientation_OrientationVectorDegrees, theta_)>( + reinterpret_cast(&theta_), + reinterpret_cast(&other->theta_)); } -::google::protobuf::Metadata Orientation_OrientationVectorDegrees::GetMetadata() const { +::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[21]); } + // =================================================================== class Orientation_EulerAngles::_Internal { public: }; -Orientation_EulerAngles::Orientation_EulerAngles(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Orientation_EulerAngles::Orientation_EulerAngles(::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.Orientation.EulerAngles) } -Orientation_EulerAngles::Orientation_EulerAngles( - ::google::protobuf::Arena* arena, const Orientation_EulerAngles& from) - : Orientation_EulerAngles(arena) { - MergeFrom(from); +Orientation_EulerAngles::Orientation_EulerAngles(const Orientation_EulerAngles& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&roll_, &from.roll_, + static_cast(reinterpret_cast(&yaw_) - + reinterpret_cast(&roll_)) + sizeof(yaw_)); + // @@protoc_insertion_point(copy_constructor:viam.app.v1.Orientation.EulerAngles) } -inline PROTOBUF_NDEBUG_INLINE Orientation_EulerAngles::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void Orientation_EulerAngles::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, roll_), - 0, - offsetof(Impl_, yaw_) - - offsetof(Impl_, roll_) + - sizeof(Impl_::yaw_)); +inline void Orientation_EulerAngles::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&roll_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&yaw_) - + reinterpret_cast(&roll_)) + sizeof(yaw_)); } + Orientation_EulerAngles::~Orientation_EulerAngles() { // @@protoc_insertion_point(destructor:viam.app.v1.Orientation.EulerAngles) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Orientation_EulerAngles::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void Orientation_EulerAngles::Clear() { +void Orientation_EulerAngles::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void Orientation_EulerAngles::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.Orientation.EulerAngles) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&_impl_.roll_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.yaw_) - - reinterpret_cast(&_impl_.roll_)) + sizeof(_impl_.yaw_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Orientation_EulerAngles::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + ::memset(&roll_, 0, static_cast( + reinterpret_cast(&yaw_) - + reinterpret_cast(&roll_)) + sizeof(yaw_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Orientation_EulerAngles::_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) { + // double roll = 1 [json_name = "roll"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 9)) { + roll_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double pitch = 2 [json_name = "pitch"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 17)) { + pitch_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double yaw = 3 [json_name = "yaw"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 25)) { + yaw_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 0, 2> Orientation_EulerAngles::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_Orientation_EulerAngles_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // double roll = 1 [json_name = "roll"]; - {::_pbi::TcParser::FastF64S1, - {9, 63, 0, PROTOBUF_FIELD_OFFSET(Orientation_EulerAngles, _impl_.roll_)}}, - // double pitch = 2 [json_name = "pitch"]; - {::_pbi::TcParser::FastF64S1, - {17, 63, 0, PROTOBUF_FIELD_OFFSET(Orientation_EulerAngles, _impl_.pitch_)}}, - // double yaw = 3 [json_name = "yaw"]; - {::_pbi::TcParser::FastF64S1, - {25, 63, 0, PROTOBUF_FIELD_OFFSET(Orientation_EulerAngles, _impl_.yaw_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // double roll = 1 [json_name = "roll"]; - {PROTOBUF_FIELD_OFFSET(Orientation_EulerAngles, _impl_.roll_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double pitch = 2 [json_name = "pitch"]; - {PROTOBUF_FIELD_OFFSET(Orientation_EulerAngles, _impl_.pitch_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double yaw = 3 [json_name = "yaw"]; - {PROTOBUF_FIELD_OFFSET(Orientation_EulerAngles, _impl_.yaw_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* Orientation_EulerAngles::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Orientation_EulerAngles::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.Orientation.EulerAngles) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // double roll = 1 [json_name = "roll"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_roll = this->_internal_roll(); - ::uint64_t raw_roll; + uint64_t raw_roll; memcpy(&raw_roll, &tmp_roll, sizeof(tmp_roll)); if (raw_roll != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 1, this->_internal_roll(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(1, this->_internal_roll(), target); } // double pitch = 2 [json_name = "pitch"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_pitch = this->_internal_pitch(); - ::uint64_t raw_pitch; + uint64_t raw_pitch; memcpy(&raw_pitch, &tmp_pitch, sizeof(tmp_pitch)); if (raw_pitch != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 2, this->_internal_pitch(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_pitch(), target); } // double yaw = 3 [json_name = "yaw"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_yaw = this->_internal_yaw(); - ::uint64_t raw_yaw; + uint64_t raw_yaw; memcpy(&raw_yaw, &tmp_yaw, sizeof(tmp_yaw)); if (raw_yaw != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 3, this->_internal_yaw(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(3, this->_internal_yaw(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.Orientation.EulerAngles) return target; } -::size_t Orientation_EulerAngles::ByteSizeLong() const { +size_t Orientation_EulerAngles::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.Orientation.EulerAngles) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // double roll = 1 [json_name = "roll"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_roll = this->_internal_roll(); - ::uint64_t raw_roll; + uint64_t raw_roll; memcpy(&raw_roll, &tmp_roll, sizeof(tmp_roll)); if (raw_roll != 0) { - total_size += 9; + total_size += 1 + 8; } // double pitch = 2 [json_name = "pitch"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_pitch = this->_internal_pitch(); - ::uint64_t raw_pitch; + uint64_t raw_pitch; memcpy(&raw_pitch, &tmp_pitch, sizeof(tmp_pitch)); if (raw_pitch != 0) { - total_size += 9; + total_size += 1 + 8; } // double yaw = 3 [json_name = "yaw"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_yaw = this->_internal_yaw(); - ::uint64_t raw_yaw; + uint64_t raw_yaw; memcpy(&raw_yaw, &tmp_yaw, sizeof(tmp_yaw)); if (raw_yaw != 0) { - total_size += 9; + total_size += 1 + 8; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Orientation_EulerAngles::_class_data_ = { - Orientation_EulerAngles::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Orientation_EulerAngles::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Orientation_EulerAngles::MergeImpl }; -const ::google::protobuf::Message::ClassData* Orientation_EulerAngles::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Orientation_EulerAngles::GetClassData() const { return &_class_data_; } + +void Orientation_EulerAngles::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Orientation_EulerAngles::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.Orientation.EulerAngles) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Orientation_EulerAngles::MergeFrom(const Orientation_EulerAngles& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.Orientation.EulerAngles) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_roll = from._internal_roll(); - ::uint64_t raw_roll; + uint64_t raw_roll; memcpy(&raw_roll, &tmp_roll, sizeof(tmp_roll)); if (raw_roll != 0) { - _this->_internal_set_roll(from._internal_roll()); + _internal_set_roll(from._internal_roll()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_pitch = from._internal_pitch(); - ::uint64_t raw_pitch; + uint64_t raw_pitch; memcpy(&raw_pitch, &tmp_pitch, sizeof(tmp_pitch)); if (raw_pitch != 0) { - _this->_internal_set_pitch(from._internal_pitch()); + _internal_set_pitch(from._internal_pitch()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_yaw = from._internal_yaw(); - ::uint64_t raw_yaw; + uint64_t raw_yaw; memcpy(&raw_yaw, &tmp_yaw, sizeof(tmp_yaw)); if (raw_yaw != 0) { - _this->_internal_set_yaw(from._internal_yaw()); + _internal_set_yaw(from._internal_yaw()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Orientation_EulerAngles::CopyFrom(const Orientation_EulerAngles& from) { @@ -8716,301 +8650,294 @@ void Orientation_EulerAngles::CopyFrom(const Orientation_EulerAngles& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Orientation_EulerAngles::IsInitialized() const { +bool Orientation_EulerAngles::IsInitialized() const { return true; } -::_pbi::CachedSize* Orientation_EulerAngles::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Orientation_EulerAngles::InternalSwap(Orientation_EulerAngles* PROTOBUF_RESTRICT other) { +void Orientation_EulerAngles::InternalSwap(Orientation_EulerAngles* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(Orientation_EulerAngles, _impl_.yaw_) - + sizeof(Orientation_EulerAngles::_impl_.yaw_) - - PROTOBUF_FIELD_OFFSET(Orientation_EulerAngles, _impl_.roll_)>( - reinterpret_cast(&_impl_.roll_), - reinterpret_cast(&other->_impl_.roll_)); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Orientation_EulerAngles, yaw_) + + sizeof(Orientation_EulerAngles::yaw_) + - PROTOBUF_FIELD_OFFSET(Orientation_EulerAngles, roll_)>( + reinterpret_cast(&roll_), + reinterpret_cast(&other->roll_)); } -::google::protobuf::Metadata Orientation_EulerAngles::GetMetadata() const { +::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[22]); } + // =================================================================== class Orientation_AxisAngles::_Internal { public: }; -Orientation_AxisAngles::Orientation_AxisAngles(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Orientation_AxisAngles::Orientation_AxisAngles(::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.Orientation.AxisAngles) } -Orientation_AxisAngles::Orientation_AxisAngles( - ::google::protobuf::Arena* arena, const Orientation_AxisAngles& from) - : Orientation_AxisAngles(arena) { - MergeFrom(from); +Orientation_AxisAngles::Orientation_AxisAngles(const Orientation_AxisAngles& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&theta_, &from.theta_, + static_cast(reinterpret_cast(&z_) - + reinterpret_cast(&theta_)) + sizeof(z_)); + // @@protoc_insertion_point(copy_constructor:viam.app.v1.Orientation.AxisAngles) } -inline PROTOBUF_NDEBUG_INLINE Orientation_AxisAngles::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void Orientation_AxisAngles::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, theta_), - 0, - offsetof(Impl_, z_) - - offsetof(Impl_, theta_) + - sizeof(Impl_::z_)); +inline void Orientation_AxisAngles::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&theta_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&z_) - + reinterpret_cast(&theta_)) + sizeof(z_)); } + Orientation_AxisAngles::~Orientation_AxisAngles() { // @@protoc_insertion_point(destructor:viam.app.v1.Orientation.AxisAngles) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Orientation_AxisAngles::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void Orientation_AxisAngles::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void Orientation_AxisAngles::Clear() { +void Orientation_AxisAngles::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.Orientation.AxisAngles) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&_impl_.theta_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.z_) - - reinterpret_cast(&_impl_.theta_)) + sizeof(_impl_.z_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Orientation_AxisAngles::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + ::memset(&theta_, 0, static_cast( + reinterpret_cast(&z_) - + reinterpret_cast(&theta_)) + sizeof(z_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Orientation_AxisAngles::_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) { + // double theta = 1 [json_name = "theta", (.tagger.v1.tags) = "json:\"th\""]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 9)) { + theta_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double x = 2 [json_name = "x"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 17)) { + x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double y = 3 [json_name = "y"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 25)) { + y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double z = 4 [json_name = "z"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 33)) { + z_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 0, 0, 2> Orientation_AxisAngles::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_Orientation_AxisAngles_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // double z = 4 [json_name = "z"]; - {::_pbi::TcParser::FastF64S1, - {33, 63, 0, PROTOBUF_FIELD_OFFSET(Orientation_AxisAngles, _impl_.z_)}}, - // double theta = 1 [json_name = "theta", (.tagger.v1.tags) = "json:\"th\""]; - {::_pbi::TcParser::FastF64S1, - {9, 63, 0, PROTOBUF_FIELD_OFFSET(Orientation_AxisAngles, _impl_.theta_)}}, - // double x = 2 [json_name = "x"]; - {::_pbi::TcParser::FastF64S1, - {17, 63, 0, PROTOBUF_FIELD_OFFSET(Orientation_AxisAngles, _impl_.x_)}}, - // double y = 3 [json_name = "y"]; - {::_pbi::TcParser::FastF64S1, - {25, 63, 0, PROTOBUF_FIELD_OFFSET(Orientation_AxisAngles, _impl_.y_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // double theta = 1 [json_name = "theta", (.tagger.v1.tags) = "json:\"th\""]; - {PROTOBUF_FIELD_OFFSET(Orientation_AxisAngles, _impl_.theta_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double x = 2 [json_name = "x"]; - {PROTOBUF_FIELD_OFFSET(Orientation_AxisAngles, _impl_.x_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double y = 3 [json_name = "y"]; - {PROTOBUF_FIELD_OFFSET(Orientation_AxisAngles, _impl_.y_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double z = 4 [json_name = "z"]; - {PROTOBUF_FIELD_OFFSET(Orientation_AxisAngles, _impl_.z_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* Orientation_AxisAngles::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Orientation_AxisAngles::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.Orientation.AxisAngles) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // double theta = 1 [json_name = "theta", (.tagger.v1.tags) = "json:\"th\""]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_theta = this->_internal_theta(); - ::uint64_t raw_theta; + uint64_t raw_theta; memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta)); if (raw_theta != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 1, this->_internal_theta(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(1, this->_internal_theta(), target); } // double x = 2 [json_name = "x"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_x = this->_internal_x(); - ::uint64_t raw_x; + uint64_t raw_x; memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); if (raw_x != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 2, this->_internal_x(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_x(), target); } // double y = 3 [json_name = "y"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_y = this->_internal_y(); - ::uint64_t raw_y; + uint64_t raw_y; memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); if (raw_y != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 3, this->_internal_y(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(3, this->_internal_y(), target); } // double z = 4 [json_name = "z"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_z = this->_internal_z(); - ::uint64_t raw_z; + uint64_t raw_z; memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); if (raw_z != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 4, this->_internal_z(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(4, this->_internal_z(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.Orientation.AxisAngles) return target; } -::size_t Orientation_AxisAngles::ByteSizeLong() const { +size_t Orientation_AxisAngles::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.Orientation.AxisAngles) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // double theta = 1 [json_name = "theta", (.tagger.v1.tags) = "json:\"th\""]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_theta = this->_internal_theta(); - ::uint64_t raw_theta; + uint64_t raw_theta; memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta)); if (raw_theta != 0) { - total_size += 9; + total_size += 1 + 8; } // double x = 2 [json_name = "x"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_x = this->_internal_x(); - ::uint64_t raw_x; + uint64_t raw_x; memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); if (raw_x != 0) { - total_size += 9; + total_size += 1 + 8; } // double y = 3 [json_name = "y"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_y = this->_internal_y(); - ::uint64_t raw_y; + uint64_t raw_y; memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); if (raw_y != 0) { - total_size += 9; + total_size += 1 + 8; } // double z = 4 [json_name = "z"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_z = this->_internal_z(); - ::uint64_t raw_z; + uint64_t raw_z; memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); if (raw_z != 0) { - total_size += 9; + total_size += 1 + 8; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Orientation_AxisAngles::_class_data_ = { - Orientation_AxisAngles::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Orientation_AxisAngles::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Orientation_AxisAngles::MergeImpl }; -const ::google::protobuf::Message::ClassData* Orientation_AxisAngles::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Orientation_AxisAngles::GetClassData() const { return &_class_data_; } + +void Orientation_AxisAngles::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Orientation_AxisAngles::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.Orientation.AxisAngles) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Orientation_AxisAngles::MergeFrom(const Orientation_AxisAngles& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.Orientation.AxisAngles) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_theta = from._internal_theta(); - ::uint64_t raw_theta; + uint64_t raw_theta; memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta)); if (raw_theta != 0) { - _this->_internal_set_theta(from._internal_theta()); + _internal_set_theta(from._internal_theta()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_x = from._internal_x(); - ::uint64_t raw_x; + uint64_t raw_x; memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); if (raw_x != 0) { - _this->_internal_set_x(from._internal_x()); + _internal_set_x(from._internal_x()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_y = from._internal_y(); - ::uint64_t raw_y; + uint64_t raw_y; memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); if (raw_y != 0) { - _this->_internal_set_y(from._internal_y()); + _internal_set_y(from._internal_y()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_z = from._internal_z(); - ::uint64_t raw_z; + uint64_t raw_z; memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); if (raw_z != 0) { - _this->_internal_set_z(from._internal_z()); + _internal_set_z(from._internal_z()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Orientation_AxisAngles::CopyFrom(const Orientation_AxisAngles& from) { @@ -9020,301 +8947,294 @@ void Orientation_AxisAngles::CopyFrom(const Orientation_AxisAngles& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Orientation_AxisAngles::IsInitialized() const { +bool Orientation_AxisAngles::IsInitialized() const { return true; } -::_pbi::CachedSize* Orientation_AxisAngles::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Orientation_AxisAngles::InternalSwap(Orientation_AxisAngles* PROTOBUF_RESTRICT other) { +void Orientation_AxisAngles::InternalSwap(Orientation_AxisAngles* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(Orientation_AxisAngles, _impl_.z_) - + sizeof(Orientation_AxisAngles::_impl_.z_) - - PROTOBUF_FIELD_OFFSET(Orientation_AxisAngles, _impl_.theta_)>( - reinterpret_cast(&_impl_.theta_), - reinterpret_cast(&other->_impl_.theta_)); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Orientation_AxisAngles, z_) + + sizeof(Orientation_AxisAngles::z_) + - PROTOBUF_FIELD_OFFSET(Orientation_AxisAngles, theta_)>( + reinterpret_cast(&theta_), + reinterpret_cast(&other->theta_)); } -::google::protobuf::Metadata Orientation_AxisAngles::GetMetadata() const { +::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[23]); } + // =================================================================== class Orientation_Quaternion::_Internal { public: }; -Orientation_Quaternion::Orientation_Quaternion(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Orientation_Quaternion::Orientation_Quaternion(::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.Orientation.Quaternion) } -Orientation_Quaternion::Orientation_Quaternion( - ::google::protobuf::Arena* arena, const Orientation_Quaternion& from) - : Orientation_Quaternion(arena) { - MergeFrom(from); +Orientation_Quaternion::Orientation_Quaternion(const Orientation_Quaternion& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&w_, &from.w_, + static_cast(reinterpret_cast(&z_) - + reinterpret_cast(&w_)) + sizeof(z_)); + // @@protoc_insertion_point(copy_constructor:viam.app.v1.Orientation.Quaternion) } -inline PROTOBUF_NDEBUG_INLINE Orientation_Quaternion::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void Orientation_Quaternion::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, w_), - 0, - offsetof(Impl_, z_) - - offsetof(Impl_, w_) + - sizeof(Impl_::z_)); +inline void Orientation_Quaternion::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&w_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&z_) - + reinterpret_cast(&w_)) + sizeof(z_)); } + Orientation_Quaternion::~Orientation_Quaternion() { // @@protoc_insertion_point(destructor:viam.app.v1.Orientation.Quaternion) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Orientation_Quaternion::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void Orientation_Quaternion::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void Orientation_Quaternion::Clear() { +void Orientation_Quaternion::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.Orientation.Quaternion) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&_impl_.w_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.z_) - - reinterpret_cast(&_impl_.w_)) + sizeof(_impl_.z_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Orientation_Quaternion::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + ::memset(&w_, 0, static_cast( + reinterpret_cast(&z_) - + reinterpret_cast(&w_)) + sizeof(z_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Orientation_Quaternion::_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) { + // double w = 1 [json_name = "w"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 9)) { + w_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double x = 2 [json_name = "x"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 17)) { + x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double y = 3 [json_name = "y"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 25)) { + y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double z = 4 [json_name = "z"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 33)) { + z_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 0, 0, 2> Orientation_Quaternion::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_Orientation_Quaternion_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // double z = 4 [json_name = "z"]; - {::_pbi::TcParser::FastF64S1, - {33, 63, 0, PROTOBUF_FIELD_OFFSET(Orientation_Quaternion, _impl_.z_)}}, - // double w = 1 [json_name = "w"]; - {::_pbi::TcParser::FastF64S1, - {9, 63, 0, PROTOBUF_FIELD_OFFSET(Orientation_Quaternion, _impl_.w_)}}, - // double x = 2 [json_name = "x"]; - {::_pbi::TcParser::FastF64S1, - {17, 63, 0, PROTOBUF_FIELD_OFFSET(Orientation_Quaternion, _impl_.x_)}}, - // double y = 3 [json_name = "y"]; - {::_pbi::TcParser::FastF64S1, - {25, 63, 0, PROTOBUF_FIELD_OFFSET(Orientation_Quaternion, _impl_.y_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // double w = 1 [json_name = "w"]; - {PROTOBUF_FIELD_OFFSET(Orientation_Quaternion, _impl_.w_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double x = 2 [json_name = "x"]; - {PROTOBUF_FIELD_OFFSET(Orientation_Quaternion, _impl_.x_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double y = 3 [json_name = "y"]; - {PROTOBUF_FIELD_OFFSET(Orientation_Quaternion, _impl_.y_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double z = 4 [json_name = "z"]; - {PROTOBUF_FIELD_OFFSET(Orientation_Quaternion, _impl_.z_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* Orientation_Quaternion::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Orientation_Quaternion::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.Orientation.Quaternion) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // double w = 1 [json_name = "w"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_w = this->_internal_w(); - ::uint64_t raw_w; + uint64_t raw_w; memcpy(&raw_w, &tmp_w, sizeof(tmp_w)); if (raw_w != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 1, this->_internal_w(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(1, this->_internal_w(), target); } // double x = 2 [json_name = "x"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_x = this->_internal_x(); - ::uint64_t raw_x; + uint64_t raw_x; memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); if (raw_x != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 2, this->_internal_x(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_x(), target); } // double y = 3 [json_name = "y"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_y = this->_internal_y(); - ::uint64_t raw_y; + uint64_t raw_y; memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); if (raw_y != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 3, this->_internal_y(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(3, this->_internal_y(), target); } // double z = 4 [json_name = "z"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_z = this->_internal_z(); - ::uint64_t raw_z; + uint64_t raw_z; memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); if (raw_z != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 4, this->_internal_z(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(4, this->_internal_z(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.Orientation.Quaternion) return target; } -::size_t Orientation_Quaternion::ByteSizeLong() const { +size_t Orientation_Quaternion::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.Orientation.Quaternion) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // double w = 1 [json_name = "w"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_w = this->_internal_w(); - ::uint64_t raw_w; + uint64_t raw_w; memcpy(&raw_w, &tmp_w, sizeof(tmp_w)); if (raw_w != 0) { - total_size += 9; + total_size += 1 + 8; } // double x = 2 [json_name = "x"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_x = this->_internal_x(); - ::uint64_t raw_x; + uint64_t raw_x; memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); if (raw_x != 0) { - total_size += 9; + total_size += 1 + 8; } // double y = 3 [json_name = "y"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_y = this->_internal_y(); - ::uint64_t raw_y; + uint64_t raw_y; memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); if (raw_y != 0) { - total_size += 9; + total_size += 1 + 8; } // double z = 4 [json_name = "z"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_z = this->_internal_z(); - ::uint64_t raw_z; + uint64_t raw_z; memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); if (raw_z != 0) { - total_size += 9; + total_size += 1 + 8; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Orientation_Quaternion::_class_data_ = { - Orientation_Quaternion::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Orientation_Quaternion::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Orientation_Quaternion::MergeImpl }; -const ::google::protobuf::Message::ClassData* Orientation_Quaternion::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Orientation_Quaternion::GetClassData() const { return &_class_data_; } + +void Orientation_Quaternion::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Orientation_Quaternion::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.Orientation.Quaternion) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Orientation_Quaternion::MergeFrom(const Orientation_Quaternion& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.Orientation.Quaternion) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_w = from._internal_w(); - ::uint64_t raw_w; + uint64_t raw_w; memcpy(&raw_w, &tmp_w, sizeof(tmp_w)); if (raw_w != 0) { - _this->_internal_set_w(from._internal_w()); + _internal_set_w(from._internal_w()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_x = from._internal_x(); - ::uint64_t raw_x; + uint64_t raw_x; memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); if (raw_x != 0) { - _this->_internal_set_x(from._internal_x()); + _internal_set_x(from._internal_x()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_y = from._internal_y(); - ::uint64_t raw_y; + uint64_t raw_y; memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); if (raw_y != 0) { - _this->_internal_set_y(from._internal_y()); + _internal_set_y(from._internal_y()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_z = from._internal_z(); - ::uint64_t raw_z; + uint64_t raw_z; memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); if (raw_z != 0) { - _this->_internal_set_z(from._internal_z()); + _internal_set_z(from._internal_z()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Orientation_Quaternion::CopyFrom(const Orientation_Quaternion& from) { @@ -9324,35 +9244,31 @@ void Orientation_Quaternion::CopyFrom(const Orientation_Quaternion& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Orientation_Quaternion::IsInitialized() const { +bool Orientation_Quaternion::IsInitialized() const { return true; } -::_pbi::CachedSize* Orientation_Quaternion::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Orientation_Quaternion::InternalSwap(Orientation_Quaternion* PROTOBUF_RESTRICT other) { +void Orientation_Quaternion::InternalSwap(Orientation_Quaternion* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(Orientation_Quaternion, _impl_.z_) - + sizeof(Orientation_Quaternion::_impl_.z_) - - PROTOBUF_FIELD_OFFSET(Orientation_Quaternion, _impl_.w_)>( - reinterpret_cast(&_impl_.w_), - reinterpret_cast(&other->_impl_.w_)); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Orientation_Quaternion, z_) + + sizeof(Orientation_Quaternion::z_) + - PROTOBUF_FIELD_OFFSET(Orientation_Quaternion, w_)>( + reinterpret_cast(&w_), + reinterpret_cast(&other->w_)); } -::google::protobuf::Metadata Orientation_Quaternion::GetMetadata() const { +::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[24]); } + // =================================================================== class Orientation::_Internal { public: - static constexpr ::int32_t kOneofCaseOffset = - PROTOBUF_FIELD_OFFSET(::viam::app::v1::Orientation, _impl_._oneof_case_); static const ::viam::app::v1::Orientation_NoOrientation& no_orientation(const Orientation* msg); static const ::viam::app::v1::Orientation_OrientationVectorRadians& vector_radians(const Orientation* msg); static const ::viam::app::v1::Orientation_OrientationVectorDegrees& vector_degrees(const Orientation* msg); @@ -9361,208 +9277,222 @@ class Orientation::_Internal { static const ::viam::app::v1::Orientation_Quaternion& quaternion(const Orientation* msg); }; -const ::viam::app::v1::Orientation_NoOrientation& Orientation::_Internal::no_orientation(const Orientation* msg) { - return *msg->_impl_.type_.no_orientation_; +const ::viam::app::v1::Orientation_NoOrientation& +Orientation::_Internal::no_orientation(const Orientation* msg) { + return *msg->type_.no_orientation_; } -const ::viam::app::v1::Orientation_OrientationVectorRadians& Orientation::_Internal::vector_radians(const Orientation* msg) { - return *msg->_impl_.type_.vector_radians_; +const ::viam::app::v1::Orientation_OrientationVectorRadians& +Orientation::_Internal::vector_radians(const Orientation* msg) { + return *msg->type_.vector_radians_; } -const ::viam::app::v1::Orientation_OrientationVectorDegrees& Orientation::_Internal::vector_degrees(const Orientation* msg) { - return *msg->_impl_.type_.vector_degrees_; +const ::viam::app::v1::Orientation_OrientationVectorDegrees& +Orientation::_Internal::vector_degrees(const Orientation* msg) { + return *msg->type_.vector_degrees_; } -const ::viam::app::v1::Orientation_EulerAngles& Orientation::_Internal::euler_angles(const Orientation* msg) { - return *msg->_impl_.type_.euler_angles_; +const ::viam::app::v1::Orientation_EulerAngles& +Orientation::_Internal::euler_angles(const Orientation* msg) { + return *msg->type_.euler_angles_; } -const ::viam::app::v1::Orientation_AxisAngles& Orientation::_Internal::axis_angles(const Orientation* msg) { - return *msg->_impl_.type_.axis_angles_; +const ::viam::app::v1::Orientation_AxisAngles& +Orientation::_Internal::axis_angles(const Orientation* msg) { + return *msg->type_.axis_angles_; } -const ::viam::app::v1::Orientation_Quaternion& Orientation::_Internal::quaternion(const Orientation* msg) { - return *msg->_impl_.type_.quaternion_; +const ::viam::app::v1::Orientation_Quaternion& +Orientation::_Internal::quaternion(const Orientation* msg) { + return *msg->type_.quaternion_; } void Orientation::set_allocated_no_orientation(::viam::app::v1::Orientation_NoOrientation* no_orientation) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_type(); if (no_orientation) { - ::google::protobuf::Arena* submessage_arena = no_orientation->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(no_orientation); if (message_arena != submessage_arena) { - no_orientation = ::google::protobuf::internal::GetOwnedMessage(message_arena, no_orientation, submessage_arena); + no_orientation = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, no_orientation, submessage_arena); } set_has_no_orientation(); - _impl_.type_.no_orientation_ = no_orientation; + type_.no_orientation_ = no_orientation; } // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Orientation.no_orientation) } void Orientation::set_allocated_vector_radians(::viam::app::v1::Orientation_OrientationVectorRadians* vector_radians) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_type(); if (vector_radians) { - ::google::protobuf::Arena* submessage_arena = vector_radians->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(vector_radians); if (message_arena != submessage_arena) { - vector_radians = ::google::protobuf::internal::GetOwnedMessage(message_arena, vector_radians, submessage_arena); + vector_radians = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, vector_radians, submessage_arena); } set_has_vector_radians(); - _impl_.type_.vector_radians_ = vector_radians; + type_.vector_radians_ = vector_radians; } // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Orientation.vector_radians) } void Orientation::set_allocated_vector_degrees(::viam::app::v1::Orientation_OrientationVectorDegrees* vector_degrees) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_type(); if (vector_degrees) { - ::google::protobuf::Arena* submessage_arena = vector_degrees->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(vector_degrees); if (message_arena != submessage_arena) { - vector_degrees = ::google::protobuf::internal::GetOwnedMessage(message_arena, vector_degrees, submessage_arena); + vector_degrees = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, vector_degrees, submessage_arena); } set_has_vector_degrees(); - _impl_.type_.vector_degrees_ = vector_degrees; + type_.vector_degrees_ = vector_degrees; } // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Orientation.vector_degrees) } void Orientation::set_allocated_euler_angles(::viam::app::v1::Orientation_EulerAngles* euler_angles) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_type(); if (euler_angles) { - ::google::protobuf::Arena* submessage_arena = euler_angles->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(euler_angles); if (message_arena != submessage_arena) { - euler_angles = ::google::protobuf::internal::GetOwnedMessage(message_arena, euler_angles, submessage_arena); + euler_angles = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, euler_angles, submessage_arena); } set_has_euler_angles(); - _impl_.type_.euler_angles_ = euler_angles; + type_.euler_angles_ = euler_angles; } // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Orientation.euler_angles) } void Orientation::set_allocated_axis_angles(::viam::app::v1::Orientation_AxisAngles* axis_angles) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_type(); if (axis_angles) { - ::google::protobuf::Arena* submessage_arena = axis_angles->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(axis_angles); if (message_arena != submessage_arena) { - axis_angles = ::google::protobuf::internal::GetOwnedMessage(message_arena, axis_angles, submessage_arena); + axis_angles = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, axis_angles, submessage_arena); } set_has_axis_angles(); - _impl_.type_.axis_angles_ = axis_angles; + type_.axis_angles_ = axis_angles; } // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Orientation.axis_angles) } void Orientation::set_allocated_quaternion(::viam::app::v1::Orientation_Quaternion* quaternion) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_type(); if (quaternion) { - ::google::protobuf::Arena* submessage_arena = quaternion->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(quaternion); if (message_arena != submessage_arena) { - quaternion = ::google::protobuf::internal::GetOwnedMessage(message_arena, quaternion, submessage_arena); + quaternion = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, quaternion, submessage_arena); } set_has_quaternion(); - _impl_.type_.quaternion_ = quaternion; + type_.quaternion_ = quaternion; } // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Orientation.quaternion) } -Orientation::Orientation(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Orientation::Orientation(::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.Orientation) } -inline PROTOBUF_NDEBUG_INLINE Orientation::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : type_{}, - _cached_size_{0}, - _oneof_case_{from._oneof_case_[0]} {} - -Orientation::Orientation( - ::google::protobuf::Arena* arena, - const Orientation& from) - : ::google::protobuf::Message(arena) { - Orientation* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - switch (type_case()) { - case TYPE_NOT_SET: +Orientation::Orientation(const Orientation& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + clear_has_type(); + switch (from.type_case()) { + case kNoOrientation: { + _internal_mutable_no_orientation()->::viam::app::v1::Orientation_NoOrientation::MergeFrom(from._internal_no_orientation()); + break; + } + case kVectorRadians: { + _internal_mutable_vector_radians()->::viam::app::v1::Orientation_OrientationVectorRadians::MergeFrom(from._internal_vector_radians()); + break; + } + case kVectorDegrees: { + _internal_mutable_vector_degrees()->::viam::app::v1::Orientation_OrientationVectorDegrees::MergeFrom(from._internal_vector_degrees()); + break; + } + case kEulerAngles: { + _internal_mutable_euler_angles()->::viam::app::v1::Orientation_EulerAngles::MergeFrom(from._internal_euler_angles()); + break; + } + case kAxisAngles: { + _internal_mutable_axis_angles()->::viam::app::v1::Orientation_AxisAngles::MergeFrom(from._internal_axis_angles()); + break; + } + case kQuaternion: { + _internal_mutable_quaternion()->::viam::app::v1::Orientation_Quaternion::MergeFrom(from._internal_quaternion()); + break; + } + case TYPE_NOT_SET: { break; - case kNoOrientation: - _impl_.type_.no_orientation_ = CreateMaybeMessage<::viam::app::v1::Orientation_NoOrientation>(arena, *from._impl_.type_.no_orientation_); - break; - case kVectorRadians: - _impl_.type_.vector_radians_ = CreateMaybeMessage<::viam::app::v1::Orientation_OrientationVectorRadians>(arena, *from._impl_.type_.vector_radians_); - break; - case kVectorDegrees: - _impl_.type_.vector_degrees_ = CreateMaybeMessage<::viam::app::v1::Orientation_OrientationVectorDegrees>(arena, *from._impl_.type_.vector_degrees_); - break; - case kEulerAngles: - _impl_.type_.euler_angles_ = CreateMaybeMessage<::viam::app::v1::Orientation_EulerAngles>(arena, *from._impl_.type_.euler_angles_); - break; - case kAxisAngles: - _impl_.type_.axis_angles_ = CreateMaybeMessage<::viam::app::v1::Orientation_AxisAngles>(arena, *from._impl_.type_.axis_angles_); - break; - case kQuaternion: - _impl_.type_.quaternion_ = CreateMaybeMessage<::viam::app::v1::Orientation_Quaternion>(arena, *from._impl_.type_.quaternion_); - break; + } } - // @@protoc_insertion_point(copy_constructor:viam.app.v1.Orientation) } -inline PROTOBUF_NDEBUG_INLINE Orientation::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : type_{}, - _cached_size_{0}, - _oneof_case_{} {} -inline void Orientation::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void Orientation::SharedCtor() { +clear_has_type(); } + Orientation::~Orientation() { // @@protoc_insertion_point(destructor:viam.app.v1.Orientation) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Orientation::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); if (has_type()) { clear_type(); } - _impl_.~Impl_(); +} + +void Orientation::SetCachedSize(int size) const { + _cached_size_.Set(size); } void Orientation::clear_type() { // @@protoc_insertion_point(one_of_clear_start:viam.app.v1.Orientation) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); switch (type_case()) { case kNoOrientation: { - if (GetArena() == nullptr) { - delete _impl_.type_.no_orientation_; + if (GetArenaForAllocation() == nullptr) { + delete type_.no_orientation_; } break; } case kVectorRadians: { - if (GetArena() == nullptr) { - delete _impl_.type_.vector_radians_; + if (GetArenaForAllocation() == nullptr) { + delete type_.vector_radians_; } break; } case kVectorDegrees: { - if (GetArena() == nullptr) { - delete _impl_.type_.vector_degrees_; + if (GetArenaForAllocation() == nullptr) { + delete type_.vector_degrees_; } break; } case kEulerAngles: { - if (GetArena() == nullptr) { - delete _impl_.type_.euler_angles_; + if (GetArenaForAllocation() == nullptr) { + delete type_.euler_angles_; } break; } case kAxisAngles: { - if (GetArena() == nullptr) { - delete _impl_.type_.axis_angles_; + if (GetArenaForAllocation() == nullptr) { + delete type_.axis_angles_; } break; } case kQuaternion: { - if (GetArena() == nullptr) { - delete _impl_.type_.quaternion_; + if (GetArenaForAllocation() == nullptr) { + delete type_.quaternion_; } break; } @@ -9570,236 +9500,260 @@ void Orientation::clear_type() { break; } } - _impl_._oneof_case_[0] = TYPE_NOT_SET; + _oneof_case_[0] = TYPE_NOT_SET; } -PROTOBUF_NOINLINE void Orientation::Clear() { +void Orientation::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.Orientation) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; clear_type(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Orientation::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Orientation::_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.app.v1.Orientation.NoOrientation no_orientation = 1 [json_name = "noOrientation"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_no_orientation(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.app.v1.Orientation.OrientationVectorRadians vector_radians = 2 [json_name = "vectorRadians"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_vector_radians(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.app.v1.Orientation.OrientationVectorDegrees vector_degrees = 3 [json_name = "vectorDegrees"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_vector_degrees(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.app.v1.Orientation.EulerAngles euler_angles = 4 [json_name = "eulerAngles"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_euler_angles(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.app.v1.Orientation.AxisAngles axis_angles = 5 [json_name = "axisAngles"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_axis_angles(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.app.v1.Orientation.Quaternion quaternion = 6 [json_name = "quaternion"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr = ctx->ParseMessage(_internal_mutable_quaternion(), 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* Orientation::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.Orientation) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 6, 6, 0, 2> Orientation::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 6, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967232, // skipmap - offsetof(decltype(_table_), field_entries), - 6, // num_field_entries - 6, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Orientation_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.app.v1.Orientation.NoOrientation no_orientation = 1 [json_name = "noOrientation"]; - {PROTOBUF_FIELD_OFFSET(Orientation, _impl_.type_.no_orientation_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvDefault)}, - // .viam.app.v1.Orientation.OrientationVectorRadians vector_radians = 2 [json_name = "vectorRadians"]; - {PROTOBUF_FIELD_OFFSET(Orientation, _impl_.type_.vector_radians_), _Internal::kOneofCaseOffset + 0, 1, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .viam.app.v1.Orientation.OrientationVectorDegrees vector_degrees = 3 [json_name = "vectorDegrees"]; - {PROTOBUF_FIELD_OFFSET(Orientation, _impl_.type_.vector_degrees_), _Internal::kOneofCaseOffset + 0, 2, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .viam.app.v1.Orientation.EulerAngles euler_angles = 4 [json_name = "eulerAngles"]; - {PROTOBUF_FIELD_OFFSET(Orientation, _impl_.type_.euler_angles_), _Internal::kOneofCaseOffset + 0, 3, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .viam.app.v1.Orientation.AxisAngles axis_angles = 5 [json_name = "axisAngles"]; - {PROTOBUF_FIELD_OFFSET(Orientation, _impl_.type_.axis_angles_), _Internal::kOneofCaseOffset + 0, 4, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .viam.app.v1.Orientation.Quaternion quaternion = 6 [json_name = "quaternion"]; - {PROTOBUF_FIELD_OFFSET(Orientation, _impl_.type_.quaternion_), _Internal::kOneofCaseOffset + 0, 5, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::FieldAuxDefaultMessage{}, &::viam::app::v1::_Orientation_NoOrientation_default_instance_}, - {::_pbi::TcParser::GetTable<::viam::app::v1::Orientation_OrientationVectorRadians>()}, - {::_pbi::TcParser::GetTable<::viam::app::v1::Orientation_OrientationVectorDegrees>()}, - {::_pbi::TcParser::GetTable<::viam::app::v1::Orientation_EulerAngles>()}, - {::_pbi::TcParser::GetTable<::viam::app::v1::Orientation_AxisAngles>()}, - {::_pbi::TcParser::GetTable<::viam::app::v1::Orientation_Quaternion>()}, - }}, {{ - }}, -}; + // .viam.app.v1.Orientation.NoOrientation no_orientation = 1 [json_name = "noOrientation"]; + if (_internal_has_no_orientation()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::no_orientation(this), + _Internal::no_orientation(this).GetCachedSize(), target, stream); + } -::uint8_t* Orientation::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.Orientation) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + // .viam.app.v1.Orientation.OrientationVectorRadians vector_radians = 2 [json_name = "vectorRadians"]; + if (_internal_has_vector_radians()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::vector_radians(this), + _Internal::vector_radians(this).GetCachedSize(), target, stream); + } - switch (type_case()) { - case kNoOrientation: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::no_orientation(this), - _Internal::no_orientation(this).GetCachedSize(), target, stream); - break; - } - case kVectorRadians: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::vector_radians(this), - _Internal::vector_radians(this).GetCachedSize(), target, stream); - break; - } - case kVectorDegrees: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::vector_degrees(this), - _Internal::vector_degrees(this).GetCachedSize(), target, stream); - break; - } - case kEulerAngles: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, _Internal::euler_angles(this), - _Internal::euler_angles(this).GetCachedSize(), target, stream); - break; - } - case kAxisAngles: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 5, _Internal::axis_angles(this), - _Internal::axis_angles(this).GetCachedSize(), target, stream); - break; - } - case kQuaternion: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 6, _Internal::quaternion(this), - _Internal::quaternion(this).GetCachedSize(), target, stream); - break; - } - default: - break; + // .viam.app.v1.Orientation.OrientationVectorDegrees vector_degrees = 3 [json_name = "vectorDegrees"]; + if (_internal_has_vector_degrees()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::vector_degrees(this), + _Internal::vector_degrees(this).GetCachedSize(), target, stream); + } + + // .viam.app.v1.Orientation.EulerAngles euler_angles = 4 [json_name = "eulerAngles"]; + if (_internal_has_euler_angles()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::euler_angles(this), + _Internal::euler_angles(this).GetCachedSize(), target, stream); + } + + // .viam.app.v1.Orientation.AxisAngles axis_angles = 5 [json_name = "axisAngles"]; + if (_internal_has_axis_angles()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(5, _Internal::axis_angles(this), + _Internal::axis_angles(this).GetCachedSize(), target, stream); + } + + // .viam.app.v1.Orientation.Quaternion quaternion = 6 [json_name = "quaternion"]; + if (_internal_has_quaternion()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(6, _Internal::quaternion(this), + _Internal::quaternion(this).GetCachedSize(), target, stream); } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.Orientation) return target; } -::size_t Orientation::ByteSizeLong() const { +size_t Orientation::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.Orientation) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; switch (type_case()) { // .viam.app.v1.Orientation.NoOrientation no_orientation = 1 [json_name = "noOrientation"]; case kNoOrientation: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.type_.no_orientation_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *type_.no_orientation_); break; } // .viam.app.v1.Orientation.OrientationVectorRadians vector_radians = 2 [json_name = "vectorRadians"]; case kVectorRadians: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.type_.vector_radians_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *type_.vector_radians_); break; } // .viam.app.v1.Orientation.OrientationVectorDegrees vector_degrees = 3 [json_name = "vectorDegrees"]; case kVectorDegrees: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.type_.vector_degrees_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *type_.vector_degrees_); break; } // .viam.app.v1.Orientation.EulerAngles euler_angles = 4 [json_name = "eulerAngles"]; case kEulerAngles: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.type_.euler_angles_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *type_.euler_angles_); break; } // .viam.app.v1.Orientation.AxisAngles axis_angles = 5 [json_name = "axisAngles"]; case kAxisAngles: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.type_.axis_angles_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *type_.axis_angles_); break; } // .viam.app.v1.Orientation.Quaternion quaternion = 6 [json_name = "quaternion"]; case kQuaternion: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.type_.quaternion_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *type_.quaternion_); break; } case TYPE_NOT_SET: { break; } } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Orientation::_class_data_ = { - Orientation::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Orientation::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Orientation::MergeImpl }; -const ::google::protobuf::Message::ClassData* Orientation::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Orientation::GetClassData() const { return &_class_data_; } + +void Orientation::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Orientation::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.Orientation) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Orientation::MergeFrom(const Orientation& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.Orientation) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; switch (from.type_case()) { case kNoOrientation: { - _this->_internal_mutable_no_orientation()->::viam::app::v1::Orientation_NoOrientation::MergeFrom( - from._internal_no_orientation()); + _internal_mutable_no_orientation()->::viam::app::v1::Orientation_NoOrientation::MergeFrom(from._internal_no_orientation()); break; } case kVectorRadians: { - _this->_internal_mutable_vector_radians()->::viam::app::v1::Orientation_OrientationVectorRadians::MergeFrom( - from._internal_vector_radians()); + _internal_mutable_vector_radians()->::viam::app::v1::Orientation_OrientationVectorRadians::MergeFrom(from._internal_vector_radians()); break; } case kVectorDegrees: { - _this->_internal_mutable_vector_degrees()->::viam::app::v1::Orientation_OrientationVectorDegrees::MergeFrom( - from._internal_vector_degrees()); + _internal_mutable_vector_degrees()->::viam::app::v1::Orientation_OrientationVectorDegrees::MergeFrom(from._internal_vector_degrees()); break; } case kEulerAngles: { - _this->_internal_mutable_euler_angles()->::viam::app::v1::Orientation_EulerAngles::MergeFrom( - from._internal_euler_angles()); + _internal_mutable_euler_angles()->::viam::app::v1::Orientation_EulerAngles::MergeFrom(from._internal_euler_angles()); break; } case kAxisAngles: { - _this->_internal_mutable_axis_angles()->::viam::app::v1::Orientation_AxisAngles::MergeFrom( - from._internal_axis_angles()); + _internal_mutable_axis_angles()->::viam::app::v1::Orientation_AxisAngles::MergeFrom(from._internal_axis_angles()); break; } case kQuaternion: { - _this->_internal_mutable_quaternion()->::viam::app::v1::Orientation_Quaternion::MergeFrom( - from._internal_quaternion()); + _internal_mutable_quaternion()->::viam::app::v1::Orientation_Quaternion::MergeFrom(from._internal_quaternion()); break; } case TYPE_NOT_SET: { break; } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Orientation::CopyFrom(const Orientation& from) { @@ -9809,512 +9763,552 @@ void Orientation::CopyFrom(const Orientation& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Orientation::IsInitialized() const { +bool Orientation::IsInitialized() const { return true; } -::_pbi::CachedSize* Orientation::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Orientation::InternalSwap(Orientation* PROTOBUF_RESTRICT other) { +void Orientation::InternalSwap(Orientation* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.type_, other->_impl_.type_); - swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); + swap(type_, other->type_); + swap(_oneof_case_[0], other->_oneof_case_[0]); } -::google::protobuf::Metadata Orientation::GetMetadata() const { +::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[25]); } + // =================================================================== class RemoteConfig::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(RemoteConfig, _impl_._has_bits_); static const ::viam::app::v1::Frame& frame(const RemoteConfig* msg); - static void set_has_frame(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } static const ::viam::app::v1::RemoteAuth& auth(const RemoteConfig* msg); - static void set_has_auth(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static const ::google::protobuf::Duration& connection_check_interval(const RemoteConfig* msg); - static void set_has_connection_check_interval(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static const ::google::protobuf::Duration& reconnect_interval(const RemoteConfig* msg); - static void set_has_reconnect_interval(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } + static const ::PROTOBUF_NAMESPACE_ID::Duration& connection_check_interval(const RemoteConfig* msg); + static const ::PROTOBUF_NAMESPACE_ID::Duration& reconnect_interval(const RemoteConfig* msg); }; -const ::viam::app::v1::Frame& RemoteConfig::_Internal::frame(const RemoteConfig* msg) { - return *msg->_impl_.frame_; +const ::viam::app::v1::Frame& +RemoteConfig::_Internal::frame(const RemoteConfig* msg) { + return *msg->frame_; } -const ::viam::app::v1::RemoteAuth& RemoteConfig::_Internal::auth(const RemoteConfig* msg) { - return *msg->_impl_.auth_; +const ::viam::app::v1::RemoteAuth& +RemoteConfig::_Internal::auth(const RemoteConfig* msg) { + return *msg->auth_; } -const ::google::protobuf::Duration& RemoteConfig::_Internal::connection_check_interval(const RemoteConfig* msg) { - return *msg->_impl_.connection_check_interval_; +const ::PROTOBUF_NAMESPACE_ID::Duration& +RemoteConfig::_Internal::connection_check_interval(const RemoteConfig* msg) { + return *msg->connection_check_interval_; } -const ::google::protobuf::Duration& RemoteConfig::_Internal::reconnect_interval(const RemoteConfig* msg) { - return *msg->_impl_.reconnect_interval_; +const ::PROTOBUF_NAMESPACE_ID::Duration& +RemoteConfig::_Internal::reconnect_interval(const RemoteConfig* msg) { + return *msg->reconnect_interval_; } void RemoteConfig::clear_connection_check_interval() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.connection_check_interval_ != nullptr) _impl_.connection_check_interval_->Clear(); - _impl_._has_bits_[0] &= ~0x00000004u; + if (GetArenaForAllocation() == nullptr && connection_check_interval_ != nullptr) { + delete connection_check_interval_; + } + connection_check_interval_ = nullptr; } void RemoteConfig::clear_reconnect_interval() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.reconnect_interval_ != nullptr) _impl_.reconnect_interval_->Clear(); - _impl_._has_bits_[0] &= ~0x00000008u; + if (GetArenaForAllocation() == nullptr && reconnect_interval_ != nullptr) { + delete reconnect_interval_; + } + reconnect_interval_ = nullptr; } -RemoteConfig::RemoteConfig(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +RemoteConfig::RemoteConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + service_configs_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.v1.RemoteConfig) } -inline PROTOBUF_NDEBUG_INLINE RemoteConfig::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - service_configs_{visibility, arena, from.service_configs_}, - name_(arena, from.name_), - address_(arena, from.address_), - managed_by_(arena, from.managed_by_), - secret_(arena, from.secret_) {} - -RemoteConfig::RemoteConfig( - ::google::protobuf::Arena* arena, - const RemoteConfig& from) - : ::google::protobuf::Message(arena) { - RemoteConfig* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.frame_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::app::v1::Frame>(arena, *from._impl_.frame_) - : nullptr; - _impl_.auth_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::viam::app::v1::RemoteAuth>(arena, *from._impl_.auth_) - : nullptr; - _impl_.connection_check_interval_ = (cached_has_bits & 0x00000004u) - ? CreateMaybeMessage<::google::protobuf::Duration>(arena, *from._impl_.connection_check_interval_) - : nullptr; - _impl_.reconnect_interval_ = (cached_has_bits & 0x00000008u) - ? CreateMaybeMessage<::google::protobuf::Duration>(arena, *from._impl_.reconnect_interval_) - : nullptr; - _impl_.insecure_ = from._impl_.insecure_; - +RemoteConfig::RemoteConfig(const RemoteConfig& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + service_configs_(from.service_configs_) { + _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()); + } + address_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + address_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_address().empty()) { + address_.Set(from._internal_address(), + GetArenaForAllocation()); + } + managed_by_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + managed_by_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_managed_by().empty()) { + managed_by_.Set(from._internal_managed_by(), + GetArenaForAllocation()); + } + secret_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + secret_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_secret().empty()) { + secret_.Set(from._internal_secret(), + GetArenaForAllocation()); + } + if (from._internal_has_frame()) { + frame_ = new ::viam::app::v1::Frame(*from.frame_); + } else { + frame_ = nullptr; + } + if (from._internal_has_auth()) { + auth_ = new ::viam::app::v1::RemoteAuth(*from.auth_); + } else { + auth_ = nullptr; + } + if (from._internal_has_connection_check_interval()) { + connection_check_interval_ = new ::PROTOBUF_NAMESPACE_ID::Duration(*from.connection_check_interval_); + } else { + connection_check_interval_ = nullptr; + } + if (from._internal_has_reconnect_interval()) { + reconnect_interval_ = new ::PROTOBUF_NAMESPACE_ID::Duration(*from.reconnect_interval_); + } else { + reconnect_interval_ = nullptr; + } + insecure_ = from.insecure_; // @@protoc_insertion_point(copy_constructor:viam.app.v1.RemoteConfig) } -inline PROTOBUF_NDEBUG_INLINE RemoteConfig::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - service_configs_{visibility, arena}, - name_(arena), - address_(arena), - managed_by_(arena), - secret_(arena) {} - -inline void RemoteConfig::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, frame_), - 0, - offsetof(Impl_, insecure_) - - offsetof(Impl_, frame_) + - sizeof(Impl_::insecure_)); + +inline void RemoteConfig::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +address_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + address_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +managed_by_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + managed_by_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +secret_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + secret_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&frame_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&insecure_) - + reinterpret_cast(&frame_)) + sizeof(insecure_)); } + RemoteConfig::~RemoteConfig() { // @@protoc_insertion_point(destructor:viam.app.v1.RemoteConfig) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void RemoteConfig::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.address_.Destroy(); - _impl_.managed_by_.Destroy(); - _impl_.secret_.Destroy(); - delete _impl_.frame_; - delete _impl_.auth_; - delete _impl_.connection_check_interval_; - delete _impl_.reconnect_interval_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void RemoteConfig::Clear() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + address_.Destroy(); + managed_by_.Destroy(); + secret_.Destroy(); + if (this != internal_default_instance()) delete frame_; + if (this != internal_default_instance()) delete auth_; + if (this != internal_default_instance()) delete connection_check_interval_; + if (this != internal_default_instance()) delete reconnect_interval_; +} + +void RemoteConfig::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void RemoteConfig::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.RemoteConfig) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.service_configs_.Clear(); - _impl_.name_.ClearToEmpty(); - _impl_.address_.ClearToEmpty(); - _impl_.managed_by_.ClearToEmpty(); - _impl_.secret_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.frame_ != nullptr); - _impl_.frame_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.auth_ != nullptr); - _impl_.auth_->Clear(); - } - if (cached_has_bits & 0x00000004u) { - ABSL_DCHECK(_impl_.connection_check_interval_ != nullptr); - _impl_.connection_check_interval_->Clear(); - } - if (cached_has_bits & 0x00000008u) { - ABSL_DCHECK(_impl_.reconnect_interval_ != nullptr); - _impl_.reconnect_interval_->Clear(); + service_configs_.Clear(); + name_.ClearToEmpty(); + address_.ClearToEmpty(); + managed_by_.ClearToEmpty(); + secret_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && frame_ != nullptr) { + delete frame_; + } + frame_ = nullptr; + if (GetArenaForAllocation() == nullptr && auth_ != nullptr) { + delete auth_; + } + auth_ = nullptr; + if (GetArenaForAllocation() == nullptr && connection_check_interval_ != nullptr) { + delete connection_check_interval_; + } + connection_check_interval_ = nullptr; + if (GetArenaForAllocation() == nullptr && reconnect_interval_ != nullptr) { + delete reconnect_interval_; + } + reconnect_interval_ = nullptr; + insecure_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RemoteConfig::_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.app.v1.RemoteConfig.name")); + } else + goto handle_unusual; + continue; + // string address = 2 [json_name = "address"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_address(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RemoteConfig.address")); + } else + goto handle_unusual; + continue; + // .viam.app.v1.Frame frame = 3 [json_name = "frame"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_frame(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.app.v1.RemoteAuth auth = 4 [json_name = "auth"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_auth(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string managed_by = 5 [json_name = "managedBy"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + auto str = _internal_mutable_managed_by(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RemoteConfig.managed_by")); + } else + goto handle_unusual; + continue; + // bool insecure = 6 [json_name = "insecure"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { + insecure_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Duration connection_check_interval = 7 [json_name = "connectionCheckInterval"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + ptr = ctx->ParseMessage(_internal_mutable_connection_check_interval(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Duration reconnect_interval = 8 [json_name = "reconnectInterval"]; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { + ptr = ctx->ParseMessage(_internal_mutable_reconnect_interval(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // repeated .viam.app.v1.ResourceLevelServiceConfig service_configs = 9 [json_name = "serviceConfigs", (.tagger.v1.tags) = "json:\"service_config\""]; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_service_configs(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<74>(ptr)); + } else + goto handle_unusual; + continue; + // string secret = 10 [json_name = "secret"]; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { + auto str = _internal_mutable_secret(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RemoteConfig.secret")); + } 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; } - } - _impl_.insecure_ = false; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* RemoteConfig::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<4, 10, 5, 68, 2> RemoteConfig::_table_ = { - { - PROTOBUF_FIELD_OFFSET(RemoteConfig, _impl_._has_bits_), - 0, // no _extensions_ - 10, 120, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294966272, // skipmap - offsetof(decltype(_table_), field_entries), - 10, // num_field_entries - 5, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_RemoteConfig_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(RemoteConfig, _impl_.name_)}}, - // string address = 2 [json_name = "address"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(RemoteConfig, _impl_.address_)}}, - // .viam.app.v1.Frame frame = 3 [json_name = "frame"]; - {::_pbi::TcParser::FastMtS1, - {26, 0, 0, PROTOBUF_FIELD_OFFSET(RemoteConfig, _impl_.frame_)}}, - // .viam.app.v1.RemoteAuth auth = 4 [json_name = "auth"]; - {::_pbi::TcParser::FastMtS1, - {34, 1, 1, PROTOBUF_FIELD_OFFSET(RemoteConfig, _impl_.auth_)}}, - // string managed_by = 5 [json_name = "managedBy"]; - {::_pbi::TcParser::FastUS1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(RemoteConfig, _impl_.managed_by_)}}, - // bool insecure = 6 [json_name = "insecure"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {48, 63, 0, PROTOBUF_FIELD_OFFSET(RemoteConfig, _impl_.insecure_)}}, - // .google.protobuf.Duration connection_check_interval = 7 [json_name = "connectionCheckInterval"]; - {::_pbi::TcParser::FastMtS1, - {58, 2, 2, PROTOBUF_FIELD_OFFSET(RemoteConfig, _impl_.connection_check_interval_)}}, - // .google.protobuf.Duration reconnect_interval = 8 [json_name = "reconnectInterval"]; - {::_pbi::TcParser::FastMtS1, - {66, 3, 3, PROTOBUF_FIELD_OFFSET(RemoteConfig, _impl_.reconnect_interval_)}}, - // repeated .viam.app.v1.ResourceLevelServiceConfig service_configs = 9 [json_name = "serviceConfigs", (.tagger.v1.tags) = "json:\"service_config\""]; - {::_pbi::TcParser::FastMtR1, - {74, 63, 4, PROTOBUF_FIELD_OFFSET(RemoteConfig, _impl_.service_configs_)}}, - // string secret = 10 [json_name = "secret"]; - {::_pbi::TcParser::FastUS1, - {82, 63, 0, PROTOBUF_FIELD_OFFSET(RemoteConfig, _impl_.secret_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(RemoteConfig, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string address = 2 [json_name = "address"]; - {PROTOBUF_FIELD_OFFSET(RemoteConfig, _impl_.address_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .viam.app.v1.Frame frame = 3 [json_name = "frame"]; - {PROTOBUF_FIELD_OFFSET(RemoteConfig, _impl_.frame_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .viam.app.v1.RemoteAuth auth = 4 [json_name = "auth"]; - {PROTOBUF_FIELD_OFFSET(RemoteConfig, _impl_.auth_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // string managed_by = 5 [json_name = "managedBy"]; - {PROTOBUF_FIELD_OFFSET(RemoteConfig, _impl_.managed_by_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // bool insecure = 6 [json_name = "insecure"]; - {PROTOBUF_FIELD_OFFSET(RemoteConfig, _impl_.insecure_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // .google.protobuf.Duration connection_check_interval = 7 [json_name = "connectionCheckInterval"]; - {PROTOBUF_FIELD_OFFSET(RemoteConfig, _impl_.connection_check_interval_), _Internal::kHasBitsOffset + 2, 2, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.protobuf.Duration reconnect_interval = 8 [json_name = "reconnectInterval"]; - {PROTOBUF_FIELD_OFFSET(RemoteConfig, _impl_.reconnect_interval_), _Internal::kHasBitsOffset + 3, 3, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated .viam.app.v1.ResourceLevelServiceConfig service_configs = 9 [json_name = "serviceConfigs", (.tagger.v1.tags) = "json:\"service_config\""]; - {PROTOBUF_FIELD_OFFSET(RemoteConfig, _impl_.service_configs_), -1, 4, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // string secret = 10 [json_name = "secret"]; - {PROTOBUF_FIELD_OFFSET(RemoteConfig, _impl_.secret_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::Frame>()}, - {::_pbi::TcParser::GetTable<::viam::app::v1::RemoteAuth>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Duration>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Duration>()}, - {::_pbi::TcParser::GetTable<::viam::app::v1::ResourceLevelServiceConfig>()}, - }}, {{ - "\30\4\7\0\0\12\0\0\0\0\6\0\0\0\0\0" - "viam.app.v1.RemoteConfig" - "name" - "address" - "managed_by" - "secret" - }}, -}; - -::uint8_t* RemoteConfig::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* RemoteConfig::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.RemoteConfig) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.RemoteConfig.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RemoteConfig.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // string address = 2 [json_name = "address"]; if (!this->_internal_address().empty()) { - const std::string& _s = this->_internal_address(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.RemoteConfig.address"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_address().data(), static_cast(this->_internal_address().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RemoteConfig.address"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_address(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .viam.app.v1.Frame frame = 3 [json_name = "frame"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::frame(this), + if (this->_internal_has_frame()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::frame(this), _Internal::frame(this).GetCachedSize(), target, stream); } // .viam.app.v1.RemoteAuth auth = 4 [json_name = "auth"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, _Internal::auth(this), + if (this->_internal_has_auth()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::auth(this), _Internal::auth(this).GetCachedSize(), target, stream); } // string managed_by = 5 [json_name = "managedBy"]; if (!this->_internal_managed_by().empty()) { - const std::string& _s = this->_internal_managed_by(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.RemoteConfig.managed_by"); - target = stream->WriteStringMaybeAliased(5, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_managed_by().data(), static_cast(this->_internal_managed_by().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RemoteConfig.managed_by"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_managed_by(), target); } // bool insecure = 6 [json_name = "insecure"]; if (this->_internal_insecure() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 6, this->_internal_insecure(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(6, this->_internal_insecure(), target); } // .google.protobuf.Duration connection_check_interval = 7 [json_name = "connectionCheckInterval"]; - if (cached_has_bits & 0x00000004u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 7, _Internal::connection_check_interval(this), + if (this->_internal_has_connection_check_interval()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(7, _Internal::connection_check_interval(this), _Internal::connection_check_interval(this).GetCachedSize(), target, stream); } // .google.protobuf.Duration reconnect_interval = 8 [json_name = "reconnectInterval"]; - if (cached_has_bits & 0x00000008u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 8, _Internal::reconnect_interval(this), + if (this->_internal_has_reconnect_interval()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(8, _Internal::reconnect_interval(this), _Internal::reconnect_interval(this).GetCachedSize(), target, stream); } // repeated .viam.app.v1.ResourceLevelServiceConfig service_configs = 9 [json_name = "serviceConfigs", (.tagger.v1.tags) = "json:\"service_config\""]; for (unsigned i = 0, n = static_cast(this->_internal_service_configs_size()); i < n; i++) { - const auto& repfield = this->_internal_service_configs().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_service_configs(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(9, repfield, repfield.GetCachedSize(), target, stream); } // string secret = 10 [json_name = "secret"]; if (!this->_internal_secret().empty()) { - const std::string& _s = this->_internal_secret(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.RemoteConfig.secret"); - target = stream->WriteStringMaybeAliased(10, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_secret().data(), static_cast(this->_internal_secret().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RemoteConfig.secret"); + target = stream->WriteStringMaybeAliased( + 10, this->_internal_secret(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.RemoteConfig) return target; } -::size_t RemoteConfig::ByteSizeLong() const { +size_t RemoteConfig::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.RemoteConfig) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.app.v1.ResourceLevelServiceConfig service_configs = 9 [json_name = "serviceConfigs", (.tagger.v1.tags) = "json:\"service_config\""]; total_size += 1UL * this->_internal_service_configs_size(); - for (const auto& msg : this->_internal_service_configs()) { + for (const auto& msg : this->service_configs_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // string address = 2 [json_name = "address"]; if (!this->_internal_address().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_address()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_address()); } // string managed_by = 5 [json_name = "managedBy"]; if (!this->_internal_managed_by().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_managed_by()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_managed_by()); } // string secret = 10 [json_name = "secret"]; if (!this->_internal_secret().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_secret()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_secret()); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - // .viam.app.v1.Frame frame = 3 [json_name = "frame"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.frame_); - } - - // .viam.app.v1.RemoteAuth auth = 4 [json_name = "auth"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.auth_); - } + // .viam.app.v1.Frame frame = 3 [json_name = "frame"]; + if (this->_internal_has_frame()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *frame_); + } - // .google.protobuf.Duration connection_check_interval = 7 [json_name = "connectionCheckInterval"]; - if (cached_has_bits & 0x00000004u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.connection_check_interval_); - } + // .viam.app.v1.RemoteAuth auth = 4 [json_name = "auth"]; + if (this->_internal_has_auth()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *auth_); + } - // .google.protobuf.Duration reconnect_interval = 8 [json_name = "reconnectInterval"]; - if (cached_has_bits & 0x00000008u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.reconnect_interval_); - } + // .google.protobuf.Duration connection_check_interval = 7 [json_name = "connectionCheckInterval"]; + if (this->_internal_has_connection_check_interval()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *connection_check_interval_); + } + // .google.protobuf.Duration reconnect_interval = 8 [json_name = "reconnectInterval"]; + if (this->_internal_has_reconnect_interval()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *reconnect_interval_); } + // bool insecure = 6 [json_name = "insecure"]; if (this->_internal_insecure() != 0) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData RemoteConfig::_class_data_ = { - RemoteConfig::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RemoteConfig::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + RemoteConfig::MergeImpl }; -const ::google::protobuf::Message::ClassData* RemoteConfig::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RemoteConfig::GetClassData() const { return &_class_data_; } + +void RemoteConfig::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void RemoteConfig::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.RemoteConfig) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void RemoteConfig::MergeFrom(const RemoteConfig& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.RemoteConfig) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_service_configs()->MergeFrom( - from._internal_service_configs()); + service_configs_.MergeFrom(from.service_configs_); if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (!from._internal_address().empty()) { - _this->_internal_set_address(from._internal_address()); + _internal_set_address(from._internal_address()); } if (!from._internal_managed_by().empty()) { - _this->_internal_set_managed_by(from._internal_managed_by()); + _internal_set_managed_by(from._internal_managed_by()); } if (!from._internal_secret().empty()) { - _this->_internal_set_secret(from._internal_secret()); + _internal_set_secret(from._internal_secret()); } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_frame()->::viam::app::v1::Frame::MergeFrom( - from._internal_frame()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_auth()->::viam::app::v1::RemoteAuth::MergeFrom( - from._internal_auth()); - } - if (cached_has_bits & 0x00000004u) { - _this->_internal_mutable_connection_check_interval()->::google::protobuf::Duration::MergeFrom( - from._internal_connection_check_interval()); - } - if (cached_has_bits & 0x00000008u) { - _this->_internal_mutable_reconnect_interval()->::google::protobuf::Duration::MergeFrom( - from._internal_reconnect_interval()); - } + if (from._internal_has_frame()) { + _internal_mutable_frame()->::viam::app::v1::Frame::MergeFrom(from._internal_frame()); + } + if (from._internal_has_auth()) { + _internal_mutable_auth()->::viam::app::v1::RemoteAuth::MergeFrom(from._internal_auth()); + } + if (from._internal_has_connection_check_interval()) { + _internal_mutable_connection_check_interval()->::PROTOBUF_NAMESPACE_ID::Duration::MergeFrom(from._internal_connection_check_interval()); + } + if (from._internal_has_reconnect_interval()) { + _internal_mutable_reconnect_interval()->::PROTOBUF_NAMESPACE_ID::Duration::MergeFrom(from._internal_reconnect_interval()); } if (from._internal_insecure() != 0) { - _this->_internal_set_insecure(from._internal_insecure()); + _internal_set_insecure(from._internal_insecure()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void RemoteConfig::CopyFrom(const RemoteConfig& from) { @@ -10324,223 +10318,239 @@ void RemoteConfig::CopyFrom(const RemoteConfig& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool RemoteConfig::IsInitialized() const { +bool RemoteConfig::IsInitialized() const { return true; } -::_pbi::CachedSize* RemoteConfig::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void RemoteConfig::InternalSwap(RemoteConfig* PROTOBUF_RESTRICT other) { +void RemoteConfig::InternalSwap(RemoteConfig* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.service_configs_.InternalSwap(&other->_impl_.service_configs_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.address_, &other->_impl_.address_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.managed_by_, &other->_impl_.managed_by_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.secret_, &other->_impl_.secret_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(RemoteConfig, _impl_.insecure_) - + sizeof(RemoteConfig::_impl_.insecure_) - - PROTOBUF_FIELD_OFFSET(RemoteConfig, _impl_.frame_)>( - reinterpret_cast(&_impl_.frame_), - reinterpret_cast(&other->_impl_.frame_)); -} - -::google::protobuf::Metadata RemoteConfig::GetMetadata() const { + service_configs_.InternalSwap(&other->service_configs_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &address_, lhs_arena, + &other->address_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &managed_by_, lhs_arena, + &other->managed_by_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &secret_, lhs_arena, + &other->secret_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(RemoteConfig, insecure_) + + sizeof(RemoteConfig::insecure_) + - PROTOBUF_FIELD_OFFSET(RemoteConfig, frame_)>( + reinterpret_cast(&frame_), + reinterpret_cast(&other->frame_)); +} + +::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[26]); } + // =================================================================== class RemoteAuth_Credentials::_Internal { public: }; -RemoteAuth_Credentials::RemoteAuth_Credentials(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +RemoteAuth_Credentials::RemoteAuth_Credentials(::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.RemoteAuth.Credentials) } -inline PROTOBUF_NDEBUG_INLINE RemoteAuth_Credentials::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : payload_(arena, from.payload_), - _cached_size_{0} {} - -RemoteAuth_Credentials::RemoteAuth_Credentials( - ::google::protobuf::Arena* arena, - const RemoteAuth_Credentials& from) - : ::google::protobuf::Message(arena) { - RemoteAuth_Credentials* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.type_ = from._impl_.type_; - +RemoteAuth_Credentials::RemoteAuth_Credentials(const RemoteAuth_Credentials& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + payload_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + payload_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_payload().empty()) { + payload_.Set(from._internal_payload(), + GetArenaForAllocation()); + } + type_ = from.type_; // @@protoc_insertion_point(copy_constructor:viam.app.v1.RemoteAuth.Credentials) } -inline PROTOBUF_NDEBUG_INLINE RemoteAuth_Credentials::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : payload_(arena), - _cached_size_{0} {} -inline void RemoteAuth_Credentials::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.type_ = {}; +inline void RemoteAuth_Credentials::SharedCtor() { +payload_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + payload_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +type_ = 0; } + RemoteAuth_Credentials::~RemoteAuth_Credentials() { // @@protoc_insertion_point(destructor:viam.app.v1.RemoteAuth.Credentials) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void RemoteAuth_Credentials::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.payload_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + payload_.Destroy(); +} + +void RemoteAuth_Credentials::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void RemoteAuth_Credentials::Clear() { +void RemoteAuth_Credentials::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.RemoteAuth.Credentials) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.payload_.ClearToEmpty(); - _impl_.type_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* RemoteAuth_Credentials::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + payload_.ClearToEmpty(); + type_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RemoteAuth_Credentials::_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.app.v1.CredentialsType type = 1 [json_name = "type"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_type(static_cast<::viam::app::v1::CredentialsType>(val)); + } else + goto handle_unusual; + continue; + // string payload = 2 [json_name = "payload"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_payload(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RemoteAuth.Credentials.payload")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 50, 2> RemoteAuth_Credentials::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_RemoteAuth_Credentials_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string payload = 2 [json_name = "payload"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(RemoteAuth_Credentials, _impl_.payload_)}}, - // .viam.app.v1.CredentialsType type = 1 [json_name = "type"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RemoteAuth_Credentials, _impl_.type_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(RemoteAuth_Credentials, _impl_.type_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.app.v1.CredentialsType type = 1 [json_name = "type"]; - {PROTOBUF_FIELD_OFFSET(RemoteAuth_Credentials, _impl_.type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // string payload = 2 [json_name = "payload"]; - {PROTOBUF_FIELD_OFFSET(RemoteAuth_Credentials, _impl_.payload_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\42\0\7\0\0\0\0\0" - "viam.app.v1.RemoteAuth.Credentials" - "payload" - }}, -}; - -::uint8_t* RemoteAuth_Credentials::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* RemoteAuth_Credentials::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.RemoteAuth.Credentials) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // .viam.app.v1.CredentialsType type = 1 [json_name = "type"]; if (this->_internal_type() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_type(), target); + 1, this->_internal_type(), target); } // string payload = 2 [json_name = "payload"]; if (!this->_internal_payload().empty()) { - const std::string& _s = this->_internal_payload(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.RemoteAuth.Credentials.payload"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_payload().data(), static_cast(this->_internal_payload().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RemoteAuth.Credentials.payload"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_payload(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.RemoteAuth.Credentials) return target; } -::size_t RemoteAuth_Credentials::ByteSizeLong() const { +size_t RemoteAuth_Credentials::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.RemoteAuth.Credentials) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string payload = 2 [json_name = "payload"]; if (!this->_internal_payload().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_payload()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_payload()); } // .viam.app.v1.CredentialsType type = 1 [json_name = "type"]; if (this->_internal_type() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_type()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_type()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData RemoteAuth_Credentials::_class_data_ = { - RemoteAuth_Credentials::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RemoteAuth_Credentials::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + RemoteAuth_Credentials::MergeImpl }; -const ::google::protobuf::Message::ClassData* RemoteAuth_Credentials::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RemoteAuth_Credentials::GetClassData() const { return &_class_data_; } + +void RemoteAuth_Credentials::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void RemoteAuth_Credentials::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.RemoteAuth.Credentials) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void RemoteAuth_Credentials::MergeFrom(const RemoteAuth_Credentials& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.RemoteAuth.Credentials) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_payload().empty()) { - _this->_internal_set_payload(from._internal_payload()); + _internal_set_payload(from._internal_payload()); } if (from._internal_type() != 0) { - _this->_internal_set_type(from._internal_type()); + _internal_set_type(from._internal_type()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void RemoteAuth_Credentials::CopyFrom(const RemoteAuth_Credentials& from) { @@ -10550,236 +10560,234 @@ void RemoteAuth_Credentials::CopyFrom(const RemoteAuth_Credentials& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool RemoteAuth_Credentials::IsInitialized() const { +bool RemoteAuth_Credentials::IsInitialized() const { return true; } -::_pbi::CachedSize* RemoteAuth_Credentials::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void RemoteAuth_Credentials::InternalSwap(RemoteAuth_Credentials* PROTOBUF_RESTRICT other) { +void RemoteAuth_Credentials::InternalSwap(RemoteAuth_Credentials* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.payload_, &other->_impl_.payload_, arena); - swap(_impl_.type_, other->_impl_.type_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &payload_, lhs_arena, + &other->payload_, rhs_arena + ); + swap(type_, other->type_); } -::google::protobuf::Metadata RemoteAuth_Credentials::GetMetadata() const { +::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[27]); } + // =================================================================== class RemoteAuth::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(RemoteAuth, _impl_._has_bits_); static const ::viam::app::v1::RemoteAuth_Credentials& credentials(const RemoteAuth* msg); - static void set_has_credentials(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::app::v1::RemoteAuth_Credentials& RemoteAuth::_Internal::credentials(const RemoteAuth* msg) { - return *msg->_impl_.credentials_; +const ::viam::app::v1::RemoteAuth_Credentials& +RemoteAuth::_Internal::credentials(const RemoteAuth* msg) { + return *msg->credentials_; } -RemoteAuth::RemoteAuth(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +RemoteAuth::RemoteAuth(::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.RemoteAuth) } -inline PROTOBUF_NDEBUG_INLINE RemoteAuth::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - entity_(arena, from.entity_) {} - -RemoteAuth::RemoteAuth( - ::google::protobuf::Arena* arena, - const RemoteAuth& from) - : ::google::protobuf::Message(arena) { - RemoteAuth* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.credentials_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::app::v1::RemoteAuth_Credentials>(arena, *from._impl_.credentials_) - : nullptr; - +RemoteAuth::RemoteAuth(const RemoteAuth& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + entity_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + entity_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_entity().empty()) { + entity_.Set(from._internal_entity(), + GetArenaForAllocation()); + } + if (from._internal_has_credentials()) { + credentials_ = new ::viam::app::v1::RemoteAuth_Credentials(*from.credentials_); + } else { + credentials_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.RemoteAuth) } -inline PROTOBUF_NDEBUG_INLINE RemoteAuth::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - entity_(arena) {} -inline void RemoteAuth::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.credentials_ = {}; +inline void RemoteAuth::SharedCtor() { +entity_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + entity_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +credentials_ = nullptr; } + RemoteAuth::~RemoteAuth() { // @@protoc_insertion_point(destructor:viam.app.v1.RemoteAuth) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void RemoteAuth::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.entity_.Destroy(); - delete _impl_.credentials_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + entity_.Destroy(); + if (this != internal_default_instance()) delete credentials_; +} + +void RemoteAuth::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void RemoteAuth::Clear() { +void RemoteAuth::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.RemoteAuth) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.entity_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.credentials_ != nullptr); - _impl_.credentials_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* RemoteAuth::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + entity_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && credentials_ != nullptr) { + delete credentials_; + } + credentials_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RemoteAuth::_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.app.v1.RemoteAuth.Credentials credentials = 1 [json_name = "credentials"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_credentials(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string entity = 2 [json_name = "entity"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_entity(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.RemoteAuth.entity")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 37, 2> RemoteAuth::_table_ = { - { - PROTOBUF_FIELD_OFFSET(RemoteAuth, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_RemoteAuth_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string entity = 2 [json_name = "entity"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(RemoteAuth, _impl_.entity_)}}, - // .viam.app.v1.RemoteAuth.Credentials credentials = 1 [json_name = "credentials"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(RemoteAuth, _impl_.credentials_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.app.v1.RemoteAuth.Credentials credentials = 1 [json_name = "credentials"]; - {PROTOBUF_FIELD_OFFSET(RemoteAuth, _impl_.credentials_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // string entity = 2 [json_name = "entity"]; - {PROTOBUF_FIELD_OFFSET(RemoteAuth, _impl_.entity_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::RemoteAuth_Credentials>()}, - }}, {{ - "\26\0\6\0\0\0\0\0" - "viam.app.v1.RemoteAuth" - "entity" - }}, -}; - -::uint8_t* RemoteAuth::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* RemoteAuth::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.RemoteAuth) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.app.v1.RemoteAuth.Credentials credentials = 1 [json_name = "credentials"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::credentials(this), + if (this->_internal_has_credentials()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::credentials(this), _Internal::credentials(this).GetCachedSize(), target, stream); } // string entity = 2 [json_name = "entity"]; if (!this->_internal_entity().empty()) { - const std::string& _s = this->_internal_entity(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.RemoteAuth.entity"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_entity().data(), static_cast(this->_internal_entity().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.RemoteAuth.entity"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_entity(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.RemoteAuth) return target; } -::size_t RemoteAuth::ByteSizeLong() const { +size_t RemoteAuth::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.RemoteAuth) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string entity = 2 [json_name = "entity"]; if (!this->_internal_entity().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_entity()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_entity()); } // .viam.app.v1.RemoteAuth.Credentials credentials = 1 [json_name = "credentials"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.credentials_); + if (this->_internal_has_credentials()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *credentials_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData RemoteAuth::_class_data_ = { - RemoteAuth::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RemoteAuth::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + RemoteAuth::MergeImpl }; -const ::google::protobuf::Message::ClassData* RemoteAuth::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RemoteAuth::GetClassData() const { return &_class_data_; } + +void RemoteAuth::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void RemoteAuth::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.RemoteAuth) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void RemoteAuth::MergeFrom(const RemoteAuth& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.RemoteAuth) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_entity().empty()) { - _this->_internal_set_entity(from._internal_entity()); + _internal_set_entity(from._internal_entity()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_credentials()->::viam::app::v1::RemoteAuth_Credentials::MergeFrom( - from._internal_credentials()); + if (from._internal_has_credentials()) { + _internal_mutable_credentials()->::viam::app::v1::RemoteAuth_Credentials::MergeFrom(from._internal_credentials()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void RemoteAuth::CopyFrom(const RemoteAuth& from) { @@ -10789,365 +10797,455 @@ void RemoteAuth::CopyFrom(const RemoteAuth& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool RemoteAuth::IsInitialized() const { +bool RemoteAuth::IsInitialized() const { return true; } -::_pbi::CachedSize* RemoteAuth::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void RemoteAuth::InternalSwap(RemoteAuth* PROTOBUF_RESTRICT other) { +void RemoteAuth::InternalSwap(RemoteAuth* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.entity_, &other->_impl_.entity_, arena); - swap(_impl_.credentials_, other->_impl_.credentials_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &entity_, lhs_arena, + &other->entity_, rhs_arena + ); + swap(credentials_, other->credentials_); } -::google::protobuf::Metadata RemoteAuth::GetMetadata() const { +::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[28]); } + // =================================================================== class AgentInfo::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(AgentInfo, _impl_._has_bits_); + using HasBits = decltype(std::declval()._has_bits_); static void set_has_platform(HasBits* has_bits) { (*has_bits)[0] |= 1u; } }; -AgentInfo::AgentInfo(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +AgentInfo::AgentInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + ips_(arena), + platform_tags_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.v1.AgentInfo) } -inline PROTOBUF_NDEBUG_INLINE AgentInfo::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - ips_{visibility, arena, from.ips_}, - platform_tags_{visibility, arena, from.platform_tags_}, - host_(arena, from.host_), - os_(arena, from.os_), - version_(arena, from.version_), - git_revision_(arena, from.git_revision_), - platform_(arena, from.platform_) {} - -AgentInfo::AgentInfo( - ::google::protobuf::Arena* arena, - const AgentInfo& from) - : ::google::protobuf::Message(arena) { - AgentInfo* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +AgentInfo::AgentInfo(const AgentInfo& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_), + ips_(from.ips_), + platform_tags_(from.platform_tags_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + host_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + host_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_host().empty()) { + host_.Set(from._internal_host(), + GetArenaForAllocation()); + } + os_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + os_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_os().empty()) { + os_.Set(from._internal_os(), + GetArenaForAllocation()); + } + version_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + version_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_version().empty()) { + version_.Set(from._internal_version(), + GetArenaForAllocation()); + } + git_revision_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + git_revision_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_git_revision().empty()) { + git_revision_.Set(from._internal_git_revision(), + GetArenaForAllocation()); + } + platform_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + platform_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (from._internal_has_platform()) { + platform_.Set(from._internal_platform(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.AgentInfo) } -inline PROTOBUF_NDEBUG_INLINE AgentInfo::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - ips_{visibility, arena}, - platform_tags_{visibility, arena}, - host_(arena), - os_(arena), - version_(arena), - git_revision_(arena), - platform_(arena) {} - -inline void AgentInfo::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); + +inline void AgentInfo::SharedCtor() { +host_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + host_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +os_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + os_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +version_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + version_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +git_revision_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + git_revision_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +platform_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + platform_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + AgentInfo::~AgentInfo() { // @@protoc_insertion_point(destructor:viam.app.v1.AgentInfo) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void AgentInfo::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.host_.Destroy(); - _impl_.os_.Destroy(); - _impl_.version_.Destroy(); - _impl_.git_revision_.Destroy(); - _impl_.platform_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + host_.Destroy(); + os_.Destroy(); + version_.Destroy(); + git_revision_.Destroy(); + platform_.Destroy(); +} + +void AgentInfo::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void AgentInfo::Clear() { +void AgentInfo::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.AgentInfo) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.ips_.Clear(); - _impl_.platform_tags_.Clear(); - _impl_.host_.ClearToEmpty(); - _impl_.os_.ClearToEmpty(); - _impl_.version_.ClearToEmpty(); - _impl_.git_revision_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; + ips_.Clear(); + platform_tags_.Clear(); + host_.ClearToEmpty(); + os_.ClearToEmpty(); + version_.ClearToEmpty(); + git_revision_.ClearToEmpty(); + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { - _impl_.platform_.ClearNonDefaultToEmpty(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* AgentInfo::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + platform_.ClearNonDefaultToEmpty(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* AgentInfo::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string host = 1 [json_name = "host"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_host(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.AgentInfo.host")); + } else + goto handle_unusual; + continue; + // string os = 2 [json_name = "os"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_os(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.AgentInfo.os")); + } else + goto handle_unusual; + continue; + // repeated string ips = 3 [json_name = "ips"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_ips(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.AgentInfo.ips")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); + } else + goto handle_unusual; + continue; + // string version = 4 [json_name = "version"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_version(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.AgentInfo.version")); + } else + goto handle_unusual; + continue; + // string git_revision = 5 [json_name = "gitRevision"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + auto str = _internal_mutable_git_revision(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.AgentInfo.git_revision")); + } else + goto handle_unusual; + continue; + // optional string platform = 6 [json_name = "platform"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + auto str = _internal_mutable_platform(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.AgentInfo.platform")); + } else + goto handle_unusual; + continue; + // repeated string platform_tags = 7 [json_name = "platformTags"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_platform_tags(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.AgentInfo.platform_tags")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<58>(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: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 7, 0, 79, 2> AgentInfo::_table_ = { - { - PROTOBUF_FIELD_OFFSET(AgentInfo, _impl_._has_bits_), - 0, // no _extensions_ - 7, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967168, // skipmap - offsetof(decltype(_table_), field_entries), - 7, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_AgentInfo_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string host = 1 [json_name = "host"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(AgentInfo, _impl_.host_)}}, - // string os = 2 [json_name = "os"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(AgentInfo, _impl_.os_)}}, - // repeated string ips = 3 [json_name = "ips"]; - {::_pbi::TcParser::FastUR1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(AgentInfo, _impl_.ips_)}}, - // string version = 4 [json_name = "version"]; - {::_pbi::TcParser::FastUS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(AgentInfo, _impl_.version_)}}, - // string git_revision = 5 [json_name = "gitRevision"]; - {::_pbi::TcParser::FastUS1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(AgentInfo, _impl_.git_revision_)}}, - // optional string platform = 6 [json_name = "platform"]; - {::_pbi::TcParser::FastUS1, - {50, 0, 0, PROTOBUF_FIELD_OFFSET(AgentInfo, _impl_.platform_)}}, - // repeated string platform_tags = 7 [json_name = "platformTags"]; - {::_pbi::TcParser::FastUR1, - {58, 63, 0, PROTOBUF_FIELD_OFFSET(AgentInfo, _impl_.platform_tags_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string host = 1 [json_name = "host"]; - {PROTOBUF_FIELD_OFFSET(AgentInfo, _impl_.host_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string os = 2 [json_name = "os"]; - {PROTOBUF_FIELD_OFFSET(AgentInfo, _impl_.os_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated string ips = 3 [json_name = "ips"]; - {PROTOBUF_FIELD_OFFSET(AgentInfo, _impl_.ips_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - // string version = 4 [json_name = "version"]; - {PROTOBUF_FIELD_OFFSET(AgentInfo, _impl_.version_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string git_revision = 5 [json_name = "gitRevision"]; - {PROTOBUF_FIELD_OFFSET(AgentInfo, _impl_.git_revision_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // optional string platform = 6 [json_name = "platform"]; - {PROTOBUF_FIELD_OFFSET(AgentInfo, _impl_.platform_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated string platform_tags = 7 [json_name = "platformTags"]; - {PROTOBUF_FIELD_OFFSET(AgentInfo, _impl_.platform_tags_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - }}, - // no aux_entries - {{ - "\25\4\2\3\7\14\10\15" - "viam.app.v1.AgentInfo" - "host" - "os" - "ips" - "version" - "git_revision" - "platform" - "platform_tags" - }}, -}; - -::uint8_t* AgentInfo::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* AgentInfo::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.AgentInfo) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string host = 1 [json_name = "host"]; if (!this->_internal_host().empty()) { - const std::string& _s = this->_internal_host(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.AgentInfo.host"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_host().data(), static_cast(this->_internal_host().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.AgentInfo.host"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_host(), target); } // string os = 2 [json_name = "os"]; if (!this->_internal_os().empty()) { - const std::string& _s = this->_internal_os(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.AgentInfo.os"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_os().data(), static_cast(this->_internal_os().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.AgentInfo.os"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_os(), target); } // repeated string ips = 3 [json_name = "ips"]; - for (int i = 0, n = this->_internal_ips_size(); i < n; ++i) { - const auto& s = this->_internal_ips().Get(i); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.AgentInfo.ips"); + for (int i = 0, n = this->_internal_ips_size(); i < n; i++) { + const auto& s = this->_internal_ips(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.AgentInfo.ips"); target = stream->WriteString(3, s, target); } // string version = 4 [json_name = "version"]; if (!this->_internal_version().empty()) { - const std::string& _s = this->_internal_version(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.AgentInfo.version"); - target = stream->WriteStringMaybeAliased(4, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_version().data(), static_cast(this->_internal_version().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.AgentInfo.version"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_version(), target); } // string git_revision = 5 [json_name = "gitRevision"]; if (!this->_internal_git_revision().empty()) { - const std::string& _s = this->_internal_git_revision(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.AgentInfo.git_revision"); - target = stream->WriteStringMaybeAliased(5, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_git_revision().data(), static_cast(this->_internal_git_revision().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.AgentInfo.git_revision"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_git_revision(), target); } - cached_has_bits = _impl_._has_bits_[0]; // optional string platform = 6 [json_name = "platform"]; - if (cached_has_bits & 0x00000001u) { - const std::string& _s = this->_internal_platform(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.AgentInfo.platform"); - target = stream->WriteStringMaybeAliased(6, _s, target); + if (_internal_has_platform()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_platform().data(), static_cast(this->_internal_platform().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.AgentInfo.platform"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_platform(), target); } // repeated string platform_tags = 7 [json_name = "platformTags"]; - for (int i = 0, n = this->_internal_platform_tags_size(); i < n; ++i) { - const auto& s = this->_internal_platform_tags().Get(i); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.AgentInfo.platform_tags"); + for (int i = 0, n = this->_internal_platform_tags_size(); i < n; i++) { + const auto& s = this->_internal_platform_tags(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.AgentInfo.platform_tags"); target = stream->WriteString(7, s, target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.AgentInfo) return target; } -::size_t AgentInfo::ByteSizeLong() const { +size_t AgentInfo::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.AgentInfo) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated string ips = 3 [json_name = "ips"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_ips().size()); - for (int i = 0, n = _internal_ips().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - _internal_ips().Get(i)); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(ips_.size()); + for (int i = 0, n = ips_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + ips_.Get(i)); } + // repeated string platform_tags = 7 [json_name = "platformTags"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_platform_tags().size()); - for (int i = 0, n = _internal_platform_tags().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - _internal_platform_tags().Get(i)); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(platform_tags_.size()); + for (int i = 0, n = platform_tags_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + platform_tags_.Get(i)); } + // string host = 1 [json_name = "host"]; if (!this->_internal_host().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_host()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_host()); } // string os = 2 [json_name = "os"]; if (!this->_internal_os().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_os()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_os()); } // string version = 4 [json_name = "version"]; if (!this->_internal_version().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_version()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_version()); } // string git_revision = 5 [json_name = "gitRevision"]; if (!this->_internal_git_revision().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_git_revision()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_git_revision()); } // optional string platform = 6 [json_name = "platform"]; - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_platform()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_platform()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData AgentInfo::_class_data_ = { - AgentInfo::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AgentInfo::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + AgentInfo::MergeImpl }; -const ::google::protobuf::Message::ClassData* AgentInfo::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AgentInfo::GetClassData() const { return &_class_data_; } + +void AgentInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void AgentInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.AgentInfo) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void AgentInfo::MergeFrom(const AgentInfo& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.AgentInfo) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_ips()->MergeFrom(from._internal_ips()); - _this->_internal_mutable_platform_tags()->MergeFrom(from._internal_platform_tags()); + ips_.MergeFrom(from.ips_); + platform_tags_.MergeFrom(from.platform_tags_); if (!from._internal_host().empty()) { - _this->_internal_set_host(from._internal_host()); + _internal_set_host(from._internal_host()); } if (!from._internal_os().empty()) { - _this->_internal_set_os(from._internal_os()); + _internal_set_os(from._internal_os()); } if (!from._internal_version().empty()) { - _this->_internal_set_version(from._internal_version()); + _internal_set_version(from._internal_version()); } if (!from._internal_git_revision().empty()) { - _this->_internal_set_git_revision(from._internal_git_revision()); + _internal_set_git_revision(from._internal_git_revision()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_set_platform(from._internal_platform()); + if (from._internal_has_platform()) { + _internal_set_platform(from._internal_platform()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void AgentInfo::CopyFrom(const AgentInfo& from) { @@ -11157,242 +11255,262 @@ void AgentInfo::CopyFrom(const AgentInfo& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool AgentInfo::IsInitialized() const { +bool AgentInfo::IsInitialized() const { return true; } -::_pbi::CachedSize* AgentInfo::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void AgentInfo::InternalSwap(AgentInfo* PROTOBUF_RESTRICT other) { +void AgentInfo::InternalSwap(AgentInfo* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.ips_.InternalSwap(&other->_impl_.ips_); - _impl_.platform_tags_.InternalSwap(&other->_impl_.platform_tags_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.host_, &other->_impl_.host_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.os_, &other->_impl_.os_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.version_, &other->_impl_.version_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.git_revision_, &other->_impl_.git_revision_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.platform_, &other->_impl_.platform_, arena); -} - -::google::protobuf::Metadata AgentInfo::GetMetadata() const { + swap(_has_bits_[0], other->_has_bits_[0]); + ips_.InternalSwap(&other->ips_); + platform_tags_.InternalSwap(&other->platform_tags_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &host_, lhs_arena, + &other->host_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &os_, lhs_arena, + &other->os_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &version_, lhs_arena, + &other->version_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &git_revision_, lhs_arena, + &other->git_revision_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &platform_, lhs_arena, + &other->platform_, rhs_arena + ); +} + +::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[29]); } + // =================================================================== class ConfigRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ConfigRequest, _impl_._has_bits_); + using HasBits = decltype(std::declval()._has_bits_); static const ::viam::app::v1::AgentInfo& agent_info(const ConfigRequest* msg); static void set_has_agent_info(HasBits* has_bits) { (*has_bits)[0] |= 1u; } }; -const ::viam::app::v1::AgentInfo& ConfigRequest::_Internal::agent_info(const ConfigRequest* msg) { - return *msg->_impl_.agent_info_; +const ::viam::app::v1::AgentInfo& +ConfigRequest::_Internal::agent_info(const ConfigRequest* msg) { + return *msg->agent_info_; } -ConfigRequest::ConfigRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ConfigRequest::ConfigRequest(::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.ConfigRequest) } -inline PROTOBUF_NDEBUG_INLINE ConfigRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - id_(arena, from.id_) {} - -ConfigRequest::ConfigRequest( - ::google::protobuf::Arena* arena, - const ConfigRequest& from) - : ::google::protobuf::Message(arena) { - ConfigRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.agent_info_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::app::v1::AgentInfo>(arena, *from._impl_.agent_info_) - : nullptr; - +ConfigRequest::ConfigRequest(const ConfigRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } + if (from._internal_has_agent_info()) { + agent_info_ = new ::viam::app::v1::AgentInfo(*from.agent_info_); + } else { + agent_info_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.ConfigRequest) } -inline PROTOBUF_NDEBUG_INLINE ConfigRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - id_(arena) {} -inline void ConfigRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.agent_info_ = {}; +inline void ConfigRequest::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +agent_info_ = nullptr; } + ConfigRequest::~ConfigRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.ConfigRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ConfigRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - delete _impl_.agent_info_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); + if (this != internal_default_instance()) delete agent_info_; } -PROTOBUF_NOINLINE void ConfigRequest::Clear() { +void ConfigRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ConfigRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.ConfigRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.id_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; + id_.ClearToEmpty(); + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.agent_info_ != nullptr); - _impl_.agent_info_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ConfigRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + GOOGLE_DCHECK(agent_info_ != nullptr); + agent_info_->Clear(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ConfigRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ConfigRequest.id")); + } else + goto handle_unusual; + continue; + // optional .viam.app.v1.AgentInfo agent_info = 2 [json_name = "agentInfo"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_agent_info(), 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: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 36, 2> ConfigRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ConfigRequest, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ConfigRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // optional .viam.app.v1.AgentInfo agent_info = 2 [json_name = "agentInfo"]; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(ConfigRequest, _impl_.agent_info_)}}, - // string id = 1 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ConfigRequest, _impl_.id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(ConfigRequest, _impl_.id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // optional .viam.app.v1.AgentInfo agent_info = 2 [json_name = "agentInfo"]; - {PROTOBUF_FIELD_OFFSET(ConfigRequest, _impl_.agent_info_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::AgentInfo>()}, - }}, {{ - "\31\2\0\0\0\0\0\0" - "viam.app.v1.ConfigRequest" - "id" - }}, -}; - -::uint8_t* ConfigRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ConfigRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ConfigRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ConfigRequest.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ConfigRequest.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); } - cached_has_bits = _impl_._has_bits_[0]; // optional .viam.app.v1.AgentInfo agent_info = 2 [json_name = "agentInfo"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::agent_info(this), + if (_internal_has_agent_info()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::agent_info(this), _Internal::agent_info(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.ConfigRequest) return target; } -::size_t ConfigRequest::ByteSizeLong() const { +size_t ConfigRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ConfigRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } // optional .viam.app.v1.AgentInfo agent_info = 2 [json_name = "agentInfo"]; - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.agent_info_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *agent_info_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ConfigRequest::_class_data_ = { - ConfigRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ConfigRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ConfigRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* ConfigRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ConfigRequest::GetClassData() const { return &_class_data_; } + +void ConfigRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ConfigRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ConfigRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ConfigRequest::MergeFrom(const ConfigRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ConfigRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_agent_info()->::viam::app::v1::AgentInfo::MergeFrom( - from._internal_agent_info()); + if (from._internal_has_agent_info()) { + _internal_mutable_agent_info()->::viam::app::v1::AgentInfo::MergeFrom(from._internal_agent_info()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ConfigRequest::CopyFrom(const ConfigRequest& from) { @@ -11402,207 +11520,191 @@ void ConfigRequest::CopyFrom(const ConfigRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ConfigRequest::IsInitialized() const { +bool ConfigRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* ConfigRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ConfigRequest::InternalSwap(ConfigRequest* PROTOBUF_RESTRICT other) { +void ConfigRequest::InternalSwap(ConfigRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); - swap(_impl_.agent_info_, other->_impl_.agent_info_); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); + swap(agent_info_, other->agent_info_); } -::google::protobuf::Metadata ConfigRequest::GetMetadata() const { +::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[30]); } + // =================================================================== class ConfigResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ConfigResponse, _impl_._has_bits_); static const ::viam::app::v1::RobotConfig& config(const ConfigResponse* msg); - static void set_has_config(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::app::v1::RobotConfig& ConfigResponse::_Internal::config(const ConfigResponse* msg) { - return *msg->_impl_.config_; +const ::viam::app::v1::RobotConfig& +ConfigResponse::_Internal::config(const ConfigResponse* msg) { + return *msg->config_; } -ConfigResponse::ConfigResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ConfigResponse::ConfigResponse(::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.ConfigResponse) } -inline PROTOBUF_NDEBUG_INLINE ConfigResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -ConfigResponse::ConfigResponse( - ::google::protobuf::Arena* arena, - const ConfigResponse& from) - : ::google::protobuf::Message(arena) { - ConfigResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.config_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::app::v1::RobotConfig>(arena, *from._impl_.config_) - : nullptr; - +ConfigResponse::ConfigResponse(const ConfigResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_config()) { + config_ = new ::viam::app::v1::RobotConfig(*from.config_); + } else { + config_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.ConfigResponse) } -inline PROTOBUF_NDEBUG_INLINE ConfigResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void ConfigResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.config_ = {}; +inline void ConfigResponse::SharedCtor() { +config_ = nullptr; } + ConfigResponse::~ConfigResponse() { // @@protoc_insertion_point(destructor:viam.app.v1.ConfigResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ConfigResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.config_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete config_; +} + +void ConfigResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void ConfigResponse::Clear() { +void ConfigResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.ConfigResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.config_ != nullptr); - _impl_.config_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ConfigResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + if (GetArenaForAllocation() == nullptr && config_ != nullptr) { + delete config_; + } + config_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ConfigResponse::_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.app.v1.RobotConfig config = 1 [json_name = "config"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_config(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ConfigResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ConfigResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ConfigResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.app.v1.RobotConfig config = 1 [json_name = "config"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(ConfigResponse, _impl_.config_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.app.v1.RobotConfig config = 1 [json_name = "config"]; - {PROTOBUF_FIELD_OFFSET(ConfigResponse, _impl_.config_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::RobotConfig>()}, - }}, {{ - }}, -}; - -::uint8_t* ConfigResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ConfigResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ConfigResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.app.v1.RobotConfig config = 1 [json_name = "config"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::config(this), + if (this->_internal_has_config()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::config(this), _Internal::config(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.ConfigResponse) return target; } -::size_t ConfigResponse::ByteSizeLong() const { +size_t ConfigResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ConfigResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .viam.app.v1.RobotConfig config = 1 [json_name = "config"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.config_); + if (this->_internal_has_config()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *config_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ConfigResponse::_class_data_ = { - ConfigResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ConfigResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ConfigResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* ConfigResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ConfigResponse::GetClassData() const { return &_class_data_; } + +void ConfigResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ConfigResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ConfigResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ConfigResponse::MergeFrom(const ConfigResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ConfigResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_config()->::viam::app::v1::RobotConfig::MergeFrom( - from._internal_config()); + if (from._internal_has_config()) { + _internal_mutable_config()->::viam::app::v1::RobotConfig::MergeFrom(from._internal_config()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ConfigResponse::CopyFrom(const ConfigResponse& from) { @@ -11612,186 +11714,187 @@ void ConfigResponse::CopyFrom(const ConfigResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ConfigResponse::IsInitialized() const { +bool ConfigResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* ConfigResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ConfigResponse::InternalSwap(ConfigResponse* PROTOBUF_RESTRICT other) { +void ConfigResponse::InternalSwap(ConfigResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.config_, other->_impl_.config_); + swap(config_, other->config_); } -::google::protobuf::Metadata ConfigResponse::GetMetadata() const { +::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[31]); } + // =================================================================== class CertificateRequest::_Internal { public: }; -CertificateRequest::CertificateRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +CertificateRequest::CertificateRequest(::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.CertificateRequest) } -inline PROTOBUF_NDEBUG_INLINE CertificateRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : id_(arena, from.id_), - _cached_size_{0} {} - -CertificateRequest::CertificateRequest( - ::google::protobuf::Arena* arena, - const CertificateRequest& from) - : ::google::protobuf::Message(arena) { - CertificateRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +CertificateRequest::CertificateRequest(const CertificateRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.CertificateRequest) } -inline PROTOBUF_NDEBUG_INLINE CertificateRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : id_(arena), - _cached_size_{0} {} -inline void CertificateRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void CertificateRequest::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + CertificateRequest::~CertificateRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.CertificateRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void CertificateRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); +} + +void CertificateRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void CertificateRequest::Clear() { +void CertificateRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.CertificateRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* CertificateRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CertificateRequest::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.CertificateRequest.id")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 41, 2> CertificateRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_CertificateRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string id = 1 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(CertificateRequest, _impl_.id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(CertificateRequest, _impl_.id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\36\2\0\0\0\0\0\0" - "viam.app.v1.CertificateRequest" - "id" - }}, -}; - -::uint8_t* CertificateRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* CertificateRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.CertificateRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.CertificateRequest.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.CertificateRequest.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.CertificateRequest) return target; } -::size_t CertificateRequest::ByteSizeLong() const { +size_t CertificateRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.CertificateRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData CertificateRequest::_class_data_ = { - CertificateRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CertificateRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CertificateRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* CertificateRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CertificateRequest::GetClassData() const { return &_class_data_; } + +void CertificateRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void CertificateRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.CertificateRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void CertificateRequest::MergeFrom(const CertificateRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.CertificateRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CertificateRequest::CopyFrom(const CertificateRequest& from) { @@ -11801,244 +11904,280 @@ void CertificateRequest::CopyFrom(const CertificateRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool CertificateRequest::IsInitialized() const { +bool CertificateRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* CertificateRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void CertificateRequest::InternalSwap(CertificateRequest* PROTOBUF_RESTRICT other) { +void CertificateRequest::InternalSwap(CertificateRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); } -::google::protobuf::Metadata CertificateRequest::GetMetadata() const { +::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[32]); } + // =================================================================== class CertificateResponse::_Internal { public: }; -CertificateResponse::CertificateResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +CertificateResponse::CertificateResponse(::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.CertificateResponse) } -inline PROTOBUF_NDEBUG_INLINE CertificateResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : id_(arena, from.id_), - tls_certificate_(arena, from.tls_certificate_), - tls_private_key_(arena, from.tls_private_key_), - _cached_size_{0} {} - -CertificateResponse::CertificateResponse( - ::google::protobuf::Arena* arena, - const CertificateResponse& from) - : ::google::protobuf::Message(arena) { - CertificateResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +CertificateResponse::CertificateResponse(const CertificateResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } + tls_certificate_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + tls_certificate_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_tls_certificate().empty()) { + tls_certificate_.Set(from._internal_tls_certificate(), + GetArenaForAllocation()); + } + tls_private_key_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + tls_private_key_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_tls_private_key().empty()) { + tls_private_key_.Set(from._internal_tls_private_key(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.CertificateResponse) } -inline PROTOBUF_NDEBUG_INLINE CertificateResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : id_(arena), - tls_certificate_(arena), - tls_private_key_(arena), - _cached_size_{0} {} -inline void CertificateResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void CertificateResponse::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +tls_certificate_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + tls_certificate_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +tls_private_key_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + tls_private_key_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + CertificateResponse::~CertificateResponse() { // @@protoc_insertion_point(destructor:viam.app.v1.CertificateResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void CertificateResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.tls_certificate_.Destroy(); - _impl_.tls_private_key_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); + tls_certificate_.Destroy(); + tls_private_key_.Destroy(); +} + +void CertificateResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void CertificateResponse::Clear() { +void CertificateResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.CertificateResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.id_.ClearToEmpty(); - _impl_.tls_certificate_.ClearToEmpty(); - _impl_.tls_private_key_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* CertificateResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + id_.ClearToEmpty(); + tls_certificate_.ClearToEmpty(); + tls_private_key_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CertificateResponse::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.CertificateResponse.id")); + } else + goto handle_unusual; + continue; + // string tls_certificate = 2 [json_name = "tlsCertificate"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_tls_certificate(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.CertificateResponse.tls_certificate")); + } else + goto handle_unusual; + continue; + // string tls_private_key = 3 [json_name = "tlsPrivateKey"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_tls_private_key(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.CertificateResponse.tls_private_key")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 72, 2> CertificateResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_CertificateResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string id = 1 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(CertificateResponse, _impl_.id_)}}, - // string tls_certificate = 2 [json_name = "tlsCertificate"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(CertificateResponse, _impl_.tls_certificate_)}}, - // string tls_private_key = 3 [json_name = "tlsPrivateKey"]; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(CertificateResponse, _impl_.tls_private_key_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(CertificateResponse, _impl_.id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string tls_certificate = 2 [json_name = "tlsCertificate"]; - {PROTOBUF_FIELD_OFFSET(CertificateResponse, _impl_.tls_certificate_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string tls_private_key = 3 [json_name = "tlsPrivateKey"]; - {PROTOBUF_FIELD_OFFSET(CertificateResponse, _impl_.tls_private_key_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\37\2\17\17\0\0\0\0" - "viam.app.v1.CertificateResponse" - "id" - "tls_certificate" - "tls_private_key" - }}, -}; - -::uint8_t* CertificateResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* CertificateResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.CertificateResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.CertificateResponse.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.CertificateResponse.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); } // string tls_certificate = 2 [json_name = "tlsCertificate"]; if (!this->_internal_tls_certificate().empty()) { - const std::string& _s = this->_internal_tls_certificate(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.CertificateResponse.tls_certificate"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_tls_certificate().data(), static_cast(this->_internal_tls_certificate().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.CertificateResponse.tls_certificate"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_tls_certificate(), target); } // string tls_private_key = 3 [json_name = "tlsPrivateKey"]; if (!this->_internal_tls_private_key().empty()) { - const std::string& _s = this->_internal_tls_private_key(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.CertificateResponse.tls_private_key"); - target = stream->WriteStringMaybeAliased(3, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_tls_private_key().data(), static_cast(this->_internal_tls_private_key().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.CertificateResponse.tls_private_key"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_tls_private_key(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.CertificateResponse) return target; } -::size_t CertificateResponse::ByteSizeLong() const { +size_t CertificateResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.CertificateResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } // string tls_certificate = 2 [json_name = "tlsCertificate"]; if (!this->_internal_tls_certificate().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_tls_certificate()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_tls_certificate()); } // string tls_private_key = 3 [json_name = "tlsPrivateKey"]; if (!this->_internal_tls_private_key().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_tls_private_key()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_tls_private_key()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData CertificateResponse::_class_data_ = { - CertificateResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CertificateResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CertificateResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* CertificateResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CertificateResponse::GetClassData() const { return &_class_data_; } + +void CertificateResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void CertificateResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.CertificateResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void CertificateResponse::MergeFrom(const CertificateResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.CertificateResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } if (!from._internal_tls_certificate().empty()) { - _this->_internal_set_tls_certificate(from._internal_tls_certificate()); + _internal_set_tls_certificate(from._internal_tls_certificate()); } if (!from._internal_tls_private_key().empty()) { - _this->_internal_set_tls_private_key(from._internal_tls_private_key()); + _internal_set_tls_private_key(from._internal_tls_private_key()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CertificateResponse::CopyFrom(const CertificateResponse& from) { @@ -12048,28 +12187,35 @@ void CertificateResponse::CopyFrom(const CertificateResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool CertificateResponse::IsInitialized() const { +bool CertificateResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* CertificateResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void CertificateResponse::InternalSwap(CertificateResponse* PROTOBUF_RESTRICT other) { +void CertificateResponse::InternalSwap(CertificateResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.tls_certificate_, &other->_impl_.tls_certificate_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.tls_private_key_, &other->_impl_.tls_private_key_, arena); -} - -::google::protobuf::Metadata CertificateResponse::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &tls_certificate_, lhs_arena, + &other->tls_certificate_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &tls_private_key_, lhs_arena, + &other->tls_private_key_, rhs_arena + ); +} + +::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[33]); } + // =================================================================== class LogRequest::_Internal { @@ -12077,189 +12223,199 @@ class LogRequest::_Internal { }; void LogRequest::clear_logs() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.logs_.Clear(); + logs_.Clear(); } -LogRequest::LogRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +LogRequest::LogRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + logs_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.app.v1.LogRequest) } -inline PROTOBUF_NDEBUG_INLINE LogRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : logs_{visibility, arena, from.logs_}, - id_(arena, from.id_), - _cached_size_{0} {} - -LogRequest::LogRequest( - ::google::protobuf::Arena* arena, - const LogRequest& from) - : ::google::protobuf::Message(arena) { - LogRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +LogRequest::LogRequest(const LogRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + logs_(from.logs_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.LogRequest) } -inline PROTOBUF_NDEBUG_INLINE LogRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : logs_{visibility, arena}, - id_(arena), - _cached_size_{0} {} -inline void LogRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void LogRequest::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + LogRequest::~LogRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.LogRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void LogRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); +} + +void LogRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void LogRequest::Clear() { +void LogRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.LogRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.logs_.Clear(); - _impl_.id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* LogRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + logs_.Clear(); + id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* LogRequest::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.LogRequest.id")); + } else + goto handle_unusual; + continue; + // repeated .viam.common.v1.LogEntry logs = 2 [json_name = "logs"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_logs(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 33, 2> LogRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_LogRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.common.v1.LogEntry logs = 2 [json_name = "logs"]; - {::_pbi::TcParser::FastMtR1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(LogRequest, _impl_.logs_)}}, - // string id = 1 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(LogRequest, _impl_.id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(LogRequest, _impl_.id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated .viam.common.v1.LogEntry logs = 2 [json_name = "logs"]; - {PROTOBUF_FIELD_OFFSET(LogRequest, _impl_.logs_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::common::v1::LogEntry>()}, - }}, {{ - "\26\2\0\0\0\0\0\0" - "viam.app.v1.LogRequest" - "id" - }}, -}; - -::uint8_t* LogRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* LogRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.LogRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.LogRequest.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.LogRequest.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); } // repeated .viam.common.v1.LogEntry logs = 2 [json_name = "logs"]; for (unsigned i = 0, n = static_cast(this->_internal_logs_size()); i < n; i++) { - const auto& repfield = this->_internal_logs().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_logs(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.LogRequest) return target; } -::size_t LogRequest::ByteSizeLong() const { +size_t LogRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.LogRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.common.v1.LogEntry logs = 2 [json_name = "logs"]; total_size += 1UL * this->_internal_logs_size(); - for (const auto& msg : this->_internal_logs()) { + for (const auto& msg : this->logs_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData LogRequest::_class_data_ = { - LogRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LogRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + LogRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* LogRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LogRequest::GetClassData() const { return &_class_data_; } + +void LogRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void LogRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.LogRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void LogRequest::MergeFrom(const LogRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.LogRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_logs()->MergeFrom( - from._internal_logs()); + logs_.MergeFrom(from.logs_); if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void LogRequest::CopyFrom(const LogRequest& from) { @@ -12269,46 +12425,42 @@ void LogRequest::CopyFrom(const LogRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool LogRequest::IsInitialized() const { +bool LogRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* LogRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void LogRequest::InternalSwap(LogRequest* PROTOBUF_RESTRICT other) { +void LogRequest::InternalSwap(LogRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.logs_.InternalSwap(&other->_impl_.logs_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); + logs_.InternalSwap(&other->logs_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); } -::google::protobuf::Metadata LogRequest::GetMetadata() const { +::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[34]); } + // =================================================================== class LogResponse::_Internal { public: }; -LogResponse::LogResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +LogResponse::LogResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.app.v1.LogResponse) } -LogResponse::LogResponse( - ::google::protobuf::Arena* arena, - const LogResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - LogResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +LogResponse::LogResponse(const LogResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.app.v1.LogResponse) } @@ -12316,176 +12468,189 @@ LogResponse::LogResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LogResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LogResponse::GetClassData() const { return &_class_data_; } + + + -::google::protobuf::Metadata LogResponse::GetMetadata() const { +::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[35]); } + // =================================================================== class NeedsRestartRequest::_Internal { public: }; -NeedsRestartRequest::NeedsRestartRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +NeedsRestartRequest::NeedsRestartRequest(::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.NeedsRestartRequest) } -inline PROTOBUF_NDEBUG_INLINE NeedsRestartRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : id_(arena, from.id_), - _cached_size_{0} {} - -NeedsRestartRequest::NeedsRestartRequest( - ::google::protobuf::Arena* arena, - const NeedsRestartRequest& from) - : ::google::protobuf::Message(arena) { - NeedsRestartRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +NeedsRestartRequest::NeedsRestartRequest(const NeedsRestartRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.NeedsRestartRequest) } -inline PROTOBUF_NDEBUG_INLINE NeedsRestartRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : id_(arena), - _cached_size_{0} {} -inline void NeedsRestartRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void NeedsRestartRequest::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + NeedsRestartRequest::~NeedsRestartRequest() { // @@protoc_insertion_point(destructor:viam.app.v1.NeedsRestartRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void NeedsRestartRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); +} + +void NeedsRestartRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void NeedsRestartRequest::Clear() { +void NeedsRestartRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.NeedsRestartRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* NeedsRestartRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* NeedsRestartRequest::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.NeedsRestartRequest.id")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 42, 2> NeedsRestartRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_NeedsRestartRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string id = 1 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(NeedsRestartRequest, _impl_.id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(NeedsRestartRequest, _impl_.id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\37\2\0\0\0\0\0\0" - "viam.app.v1.NeedsRestartRequest" - "id" - }}, -}; - -::uint8_t* NeedsRestartRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* NeedsRestartRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.NeedsRestartRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.NeedsRestartRequest.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.NeedsRestartRequest.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.NeedsRestartRequest) return target; } -::size_t NeedsRestartRequest::ByteSizeLong() const { +size_t NeedsRestartRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.NeedsRestartRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData NeedsRestartRequest::_class_data_ = { - NeedsRestartRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NeedsRestartRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + NeedsRestartRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* NeedsRestartRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NeedsRestartRequest::GetClassData() const { return &_class_data_; } + +void NeedsRestartRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void NeedsRestartRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.NeedsRestartRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void NeedsRestartRequest::MergeFrom(const NeedsRestartRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.NeedsRestartRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void NeedsRestartRequest::CopyFrom(const NeedsRestartRequest& from) { @@ -12495,269 +12660,266 @@ void NeedsRestartRequest::CopyFrom(const NeedsRestartRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool NeedsRestartRequest::IsInitialized() const { +bool NeedsRestartRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* NeedsRestartRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void NeedsRestartRequest::InternalSwap(NeedsRestartRequest* PROTOBUF_RESTRICT other) { +void NeedsRestartRequest::InternalSwap(NeedsRestartRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); } -::google::protobuf::Metadata NeedsRestartRequest::GetMetadata() const { +::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[36]); } + // =================================================================== class NeedsRestartResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(NeedsRestartResponse, _impl_._has_bits_); - static const ::google::protobuf::Duration& restart_check_interval(const NeedsRestartResponse* msg); - static void set_has_restart_check_interval(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Duration& restart_check_interval(const NeedsRestartResponse* msg); }; -const ::google::protobuf::Duration& NeedsRestartResponse::_Internal::restart_check_interval(const NeedsRestartResponse* msg) { - return *msg->_impl_.restart_check_interval_; +const ::PROTOBUF_NAMESPACE_ID::Duration& +NeedsRestartResponse::_Internal::restart_check_interval(const NeedsRestartResponse* msg) { + return *msg->restart_check_interval_; } void NeedsRestartResponse::clear_restart_check_interval() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.restart_check_interval_ != nullptr) _impl_.restart_check_interval_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && restart_check_interval_ != nullptr) { + delete restart_check_interval_; + } + restart_check_interval_ = nullptr; } -NeedsRestartResponse::NeedsRestartResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +NeedsRestartResponse::NeedsRestartResponse(::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.NeedsRestartResponse) } -inline PROTOBUF_NDEBUG_INLINE NeedsRestartResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - id_(arena, from.id_) {} - -NeedsRestartResponse::NeedsRestartResponse( - ::google::protobuf::Arena* arena, - const NeedsRestartResponse& from) - : ::google::protobuf::Message(arena) { - NeedsRestartResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.restart_check_interval_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Duration>(arena, *from._impl_.restart_check_interval_) - : nullptr; - _impl_.must_restart_ = from._impl_.must_restart_; - +NeedsRestartResponse::NeedsRestartResponse(const NeedsRestartResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } + if (from._internal_has_restart_check_interval()) { + restart_check_interval_ = new ::PROTOBUF_NAMESPACE_ID::Duration(*from.restart_check_interval_); + } else { + restart_check_interval_ = nullptr; + } + must_restart_ = from.must_restart_; // @@protoc_insertion_point(copy_constructor:viam.app.v1.NeedsRestartResponse) } -inline PROTOBUF_NDEBUG_INLINE NeedsRestartResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - id_(arena) {} - -inline void NeedsRestartResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, restart_check_interval_), - 0, - offsetof(Impl_, must_restart_) - - offsetof(Impl_, restart_check_interval_) + - sizeof(Impl_::must_restart_)); + +inline void NeedsRestartResponse::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&restart_check_interval_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&must_restart_) - + reinterpret_cast(&restart_check_interval_)) + sizeof(must_restart_)); } + NeedsRestartResponse::~NeedsRestartResponse() { // @@protoc_insertion_point(destructor:viam.app.v1.NeedsRestartResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void NeedsRestartResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - delete _impl_.restart_check_interval_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); + if (this != internal_default_instance()) delete restart_check_interval_; +} + +void NeedsRestartResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void NeedsRestartResponse::Clear() { +void NeedsRestartResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.NeedsRestartResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.id_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.restart_check_interval_ != nullptr); - _impl_.restart_check_interval_->Clear(); - } - _impl_.must_restart_ = false; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* NeedsRestartResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + id_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && restart_check_interval_ != nullptr) { + delete restart_check_interval_; + } + restart_check_interval_ = nullptr; + must_restart_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* NeedsRestartResponse::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.NeedsRestartResponse.id")); + } else + goto handle_unusual; + continue; + // bool must_restart = 2 [json_name = "mustRestart"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + must_restart_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Duration restart_check_interval = 3 [json_name = "restartCheckInterval"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_restart_check_interval(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 1, 43, 2> NeedsRestartResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(NeedsRestartResponse, _impl_._has_bits_), - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_NeedsRestartResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string id = 1 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(NeedsRestartResponse, _impl_.id_)}}, - // bool must_restart = 2 [json_name = "mustRestart"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(NeedsRestartResponse, _impl_.must_restart_)}}, - // .google.protobuf.Duration restart_check_interval = 3 [json_name = "restartCheckInterval"]; - {::_pbi::TcParser::FastMtS1, - {26, 0, 0, PROTOBUF_FIELD_OFFSET(NeedsRestartResponse, _impl_.restart_check_interval_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(NeedsRestartResponse, _impl_.id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // bool must_restart = 2 [json_name = "mustRestart"]; - {PROTOBUF_FIELD_OFFSET(NeedsRestartResponse, _impl_.must_restart_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // .google.protobuf.Duration restart_check_interval = 3 [json_name = "restartCheckInterval"]; - {PROTOBUF_FIELD_OFFSET(NeedsRestartResponse, _impl_.restart_check_interval_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Duration>()}, - }}, {{ - "\40\2\0\0\0\0\0\0" - "viam.app.v1.NeedsRestartResponse" - "id" - }}, -}; - -::uint8_t* NeedsRestartResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* NeedsRestartResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.NeedsRestartResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.NeedsRestartResponse.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.NeedsRestartResponse.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); } // bool must_restart = 2 [json_name = "mustRestart"]; if (this->_internal_must_restart() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 2, this->_internal_must_restart(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_must_restart(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Duration restart_check_interval = 3 [json_name = "restartCheckInterval"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::restart_check_interval(this), + if (this->_internal_has_restart_check_interval()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::restart_check_interval(this), _Internal::restart_check_interval(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.NeedsRestartResponse) return target; } -::size_t NeedsRestartResponse::ByteSizeLong() const { +size_t NeedsRestartResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.NeedsRestartResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } // .google.protobuf.Duration restart_check_interval = 3 [json_name = "restartCheckInterval"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.restart_check_interval_); + if (this->_internal_has_restart_check_interval()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *restart_check_interval_); } // bool must_restart = 2 [json_name = "mustRestart"]; if (this->_internal_must_restart() != 0) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData NeedsRestartResponse::_class_data_ = { - NeedsRestartResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NeedsRestartResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + NeedsRestartResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* NeedsRestartResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NeedsRestartResponse::GetClassData() const { return &_class_data_; } + +void NeedsRestartResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void NeedsRestartResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.NeedsRestartResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void NeedsRestartResponse::MergeFrom(const NeedsRestartResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.NeedsRestartResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_restart_check_interval()->::google::protobuf::Duration::MergeFrom( - from._internal_restart_check_interval()); + if (from._internal_has_restart_check_interval()) { + _internal_mutable_restart_check_interval()->::PROTOBUF_NAMESPACE_ID::Duration::MergeFrom(from._internal_restart_check_interval()); } if (from._internal_must_restart() != 0) { - _this->_internal_set_must_restart(from._internal_must_restart()); + _internal_set_must_restart(from._internal_must_restart()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void NeedsRestartResponse::CopyFrom(const NeedsRestartResponse& from) { @@ -12767,473 +12929,543 @@ void NeedsRestartResponse::CopyFrom(const NeedsRestartResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool NeedsRestartResponse::IsInitialized() const { +bool NeedsRestartResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* NeedsRestartResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void NeedsRestartResponse::InternalSwap(NeedsRestartResponse* PROTOBUF_RESTRICT other) { +void NeedsRestartResponse::InternalSwap(NeedsRestartResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(NeedsRestartResponse, _impl_.must_restart_) - + sizeof(NeedsRestartResponse::_impl_.must_restart_) - - PROTOBUF_FIELD_OFFSET(NeedsRestartResponse, _impl_.restart_check_interval_)>( - reinterpret_cast(&_impl_.restart_check_interval_), - reinterpret_cast(&other->_impl_.restart_check_interval_)); -} - -::google::protobuf::Metadata NeedsRestartResponse::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(NeedsRestartResponse, must_restart_) + + sizeof(NeedsRestartResponse::must_restart_) + - PROTOBUF_FIELD_OFFSET(NeedsRestartResponse, restart_check_interval_)>( + reinterpret_cast(&restart_check_interval_), + reinterpret_cast(&other->restart_check_interval_)); +} + +::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[37]); } + // =================================================================== ModuleConfig_EnvEntry_DoNotUse::ModuleConfig_EnvEntry_DoNotUse() {} -ModuleConfig_EnvEntry_DoNotUse::ModuleConfig_EnvEntry_DoNotUse(::google::protobuf::Arena* arena) +ModuleConfig_EnvEntry_DoNotUse::ModuleConfig_EnvEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) : SuperType(arena) {} -::google::protobuf::Metadata ModuleConfig_EnvEntry_DoNotUse::GetMetadata() const { +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[38]); } + // =================================================================== class ModuleConfig::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ModuleConfig, _impl_._has_bits_); static const ::viam::app::v1::AppValidationStatus& status(const ModuleConfig* msg); - static void set_has_status(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::google::protobuf::Duration& first_run_timeout(const ModuleConfig* msg); - static void set_has_first_run_timeout(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + static const ::PROTOBUF_NAMESPACE_ID::Duration& first_run_timeout(const ModuleConfig* msg); }; -const ::viam::app::v1::AppValidationStatus& ModuleConfig::_Internal::status(const ModuleConfig* msg) { - return *msg->_impl_.status_; +const ::viam::app::v1::AppValidationStatus& +ModuleConfig::_Internal::status(const ModuleConfig* msg) { + return *msg->status_; } -const ::google::protobuf::Duration& ModuleConfig::_Internal::first_run_timeout(const ModuleConfig* msg) { - return *msg->_impl_.first_run_timeout_; +const ::PROTOBUF_NAMESPACE_ID::Duration& +ModuleConfig::_Internal::first_run_timeout(const ModuleConfig* msg) { + return *msg->first_run_timeout_; } void ModuleConfig::clear_first_run_timeout() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.first_run_timeout_ != nullptr) _impl_.first_run_timeout_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && first_run_timeout_ != nullptr) { + delete first_run_timeout_; + } + first_run_timeout_ = nullptr; } -ModuleConfig::ModuleConfig(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ModuleConfig::ModuleConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool 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) } -inline PROTOBUF_NDEBUG_INLINE ModuleConfig::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - env_{visibility, arena, from.env_}, - name_(arena, from.name_), - path_(arena, from.path_), - log_level_(arena, from.log_level_), - type_(arena, from.type_), - module_id_(arena, from.module_id_) {} - -ModuleConfig::ModuleConfig( - ::google::protobuf::Arena* arena, - const ModuleConfig& from) - : ::google::protobuf::Message(arena) { - ModuleConfig* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.status_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::app::v1::AppValidationStatus>(arena, *from._impl_.status_) - : nullptr; - _impl_.first_run_timeout_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::google::protobuf::Duration>(arena, *from._impl_.first_run_timeout_) - : nullptr; - +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()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + name_.Set(from._internal_name(), + GetArenaForAllocation()); + } + path_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + path_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_path().empty()) { + path_.Set(from._internal_path(), + GetArenaForAllocation()); + } + log_level_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + log_level_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_log_level().empty()) { + 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; + } + if (from._internal_has_first_run_timeout()) { + first_run_timeout_ = new ::PROTOBUF_NAMESPACE_ID::Duration(*from.first_run_timeout_); + } else { + first_run_timeout_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.ModuleConfig) } -inline PROTOBUF_NDEBUG_INLINE ModuleConfig::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - env_{visibility, arena}, - name_(arena), - path_(arena), - log_level_(arena), - type_(arena), - module_id_(arena) {} - -inline void ModuleConfig::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, status_), - 0, - offsetof(Impl_, first_run_timeout_) - - offsetof(Impl_, status_) + - sizeof(Impl_::first_run_timeout_)); + +inline void ModuleConfig::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +path_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + path_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +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 +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&status_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&first_run_timeout_) - + reinterpret_cast(&status_)) + sizeof(first_run_timeout_)); } + ModuleConfig::~ModuleConfig() { // @@protoc_insertion_point(destructor:viam.app.v1.ModuleConfig) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + ArenaDtor(this); + return; + } SharedDtor(); } + inline void ModuleConfig::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.path_.Destroy(); - _impl_.log_level_.Destroy(); - _impl_.type_.Destroy(); - _impl_.module_id_.Destroy(); - delete _impl_.status_; - delete _impl_.first_run_timeout_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void ModuleConfig::Clear() { + 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_; + if (this != internal_default_instance()) delete first_run_timeout_; +} + +void ModuleConfig::ArenaDtor(void* object) { + ModuleConfig* _this = reinterpret_cast< ModuleConfig* >(object); + _this->env_.Destruct(); +} +void ModuleConfig::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ModuleConfig::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.ModuleConfig) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.env_.Clear(); - _impl_.name_.ClearToEmpty(); - _impl_.path_.ClearToEmpty(); - _impl_.log_level_.ClearToEmpty(); - _impl_.type_.ClearToEmpty(); - _impl_.module_id_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.status_ != nullptr); - _impl_.status_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.first_run_timeout_ != nullptr); - _impl_.first_run_timeout_->Clear(); + env_.Clear(); + name_.ClearToEmpty(); + path_.ClearToEmpty(); + log_level_.ClearToEmpty(); + type_.ClearToEmpty(); + module_id_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; + if (GetArenaForAllocation() == nullptr && first_run_timeout_ != nullptr) { + delete first_run_timeout_; + } + first_run_timeout_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ModuleConfig::_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.app.v1.ModuleConfig.name")); + } else + goto handle_unusual; + continue; + // string path = 2 [json_name = "path"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_path(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ModuleConfig.path")); + } else + goto handle_unusual; + continue; + // string log_level = 3 [json_name = "logLevel"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_log_level(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ModuleConfig.log_level")); + } 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; + // .google.protobuf.Duration first_run_timeout = 8 [json_name = "firstRunTimeout"]; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { + ptr = ctx->ParseMessage(_internal_mutable_first_run_timeout(), 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; } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ModuleConfig::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 8, 3, 74, 2> ModuleConfig::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ModuleConfig, _impl_._has_bits_), - 0, // no _extensions_ - 8, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967040, // skipmap - offsetof(decltype(_table_), field_entries), - 8, // num_field_entries - 3, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ModuleConfig_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .google.protobuf.Duration first_run_timeout = 8 [json_name = "firstRunTimeout"]; - {::_pbi::TcParser::FastMtS1, - {66, 1, 2, PROTOBUF_FIELD_OFFSET(ModuleConfig, _impl_.first_run_timeout_)}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ModuleConfig, _impl_.name_)}}, - // string path = 2 [json_name = "path"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(ModuleConfig, _impl_.path_)}}, - // string log_level = 3 [json_name = "logLevel"]; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(ModuleConfig, _impl_.log_level_)}}, - // string type = 4 [json_name = "type"]; - {::_pbi::TcParser::FastUS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(ModuleConfig, _impl_.type_)}}, - // string module_id = 5 [json_name = "moduleId"]; - {::_pbi::TcParser::FastUS1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(ModuleConfig, _impl_.module_id_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .viam.app.v1.AppValidationStatus status = 7 [json_name = "status"]; - {::_pbi::TcParser::FastMtS1, - {58, 0, 1, PROTOBUF_FIELD_OFFSET(ModuleConfig, _impl_.status_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(ModuleConfig, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string path = 2 [json_name = "path"]; - {PROTOBUF_FIELD_OFFSET(ModuleConfig, _impl_.path_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string log_level = 3 [json_name = "logLevel"]; - {PROTOBUF_FIELD_OFFSET(ModuleConfig, _impl_.log_level_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string type = 4 [json_name = "type"]; - {PROTOBUF_FIELD_OFFSET(ModuleConfig, _impl_.type_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string module_id = 5 [json_name = "moduleId"]; - {PROTOBUF_FIELD_OFFSET(ModuleConfig, _impl_.module_id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // map env = 6 [json_name = "env"]; - {PROTOBUF_FIELD_OFFSET(ModuleConfig, _impl_.env_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, - // .viam.app.v1.AppValidationStatus status = 7 [json_name = "status"]; - {PROTOBUF_FIELD_OFFSET(ModuleConfig, _impl_.status_), _Internal::kHasBitsOffset + 0, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.protobuf.Duration first_run_timeout = 8 [json_name = "firstRunTimeout"]; - {PROTOBUF_FIELD_OFFSET(ModuleConfig, _impl_.first_run_timeout_), _Internal::kHasBitsOffset + 1, 2, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetMapAuxInfo< - decltype(ModuleConfig()._impl_.env_)>( - 1, 0, 0, 9, - 9)}, - {::_pbi::TcParser::GetTable<::viam::app::v1::AppValidationStatus>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Duration>()}, - }}, {{ - "\30\4\4\11\4\11\3\0\0\0\0\0\0\0\0\0" - "viam.app.v1.ModuleConfig" - "name" - "path" - "log_level" - "type" - "module_id" - "env" - }}, -}; - -::uint8_t* ModuleConfig::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ModuleConfig::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.ModuleConfig) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ModuleConfig.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ModuleConfig.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // string path = 2 [json_name = "path"]; if (!this->_internal_path().empty()) { - const std::string& _s = this->_internal_path(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ModuleConfig.path"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_path().data(), static_cast(this->_internal_path().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ModuleConfig.path"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_path(), target); } // string log_level = 3 [json_name = "logLevel"]; if (!this->_internal_log_level().empty()) { - const std::string& _s = this->_internal_log_level(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ModuleConfig.log_level"); - target = stream->WriteStringMaybeAliased(3, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_log_level().data(), static_cast(this->_internal_log_level().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ModuleConfig.log_level"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_log_level(), target); } // string type = 4 [json_name = "type"]; if (!this->_internal_type().empty()) { - const std::string& _s = this->_internal_type(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ModuleConfig.type"); - target = stream->WriteStringMaybeAliased(4, _s, target); + ::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()) { - const std::string& _s = this->_internal_module_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ModuleConfig.module_id"); - target = stream->WriteStringMaybeAliased(5, _s, target); + ::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 (!_internal_env().empty()) { - using MapType = ::google::protobuf::Map; - using WireHelper = _pbi::MapEntryFuncs; - const auto& field = _internal_env(); - - if (stream->IsSerializationDeterministic() && field.size() > 1) { - for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { - target = WireHelper::InternalSerialize( - 6, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ModuleConfig.env"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.second.data(), static_cast(entry.second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ModuleConfig.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 : field) { - target = WireHelper::InternalSerialize( - 6, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ModuleConfig.env"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.second.data(), static_cast(entry.second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.ModuleConfig.env"); + for (const auto& entry : map_field) { + target = WireHelper::InternalSerialize(6, entry.first, entry.second, target, stream); + check_utf8(entry); } } } - cached_has_bits = _impl_._has_bits_[0]; // .viam.app.v1.AppValidationStatus status = 7 [json_name = "status"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 7, _Internal::status(this), + if (this->_internal_has_status()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(7, _Internal::status(this), _Internal::status(this).GetCachedSize(), target, stream); } // .google.protobuf.Duration first_run_timeout = 8 [json_name = "firstRunTimeout"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 8, _Internal::first_run_timeout(this), + if (this->_internal_has_first_run_timeout()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(8, _Internal::first_run_timeout(this), _Internal::first_run_timeout(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.ModuleConfig) return target; } -::size_t ModuleConfig::ByteSizeLong() const { +size_t ModuleConfig::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.ModuleConfig) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // map env = 6 [json_name = "env"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_env_size()); - for (const auto& entry : _internal_env()) { - total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); + 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // string path = 2 [json_name = "path"]; if (!this->_internal_path().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_path()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_path()); } // string log_level = 3 [json_name = "logLevel"]; if (!this->_internal_log_level().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_log_level()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_log_level()); } // string type = 4 [json_name = "type"]; if (!this->_internal_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_type()); + 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_module_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_module_id()); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // .viam.app.v1.AppValidationStatus status = 7 [json_name = "status"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.status_); - } - - // .google.protobuf.Duration first_run_timeout = 8 [json_name = "firstRunTimeout"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.first_run_timeout_); - } + // .viam.app.v1.AppValidationStatus status = 7 [json_name = "status"]; + if (this->_internal_has_status()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *status_); + } + // .google.protobuf.Duration first_run_timeout = 8 [json_name = "firstRunTimeout"]; + if (this->_internal_has_first_run_timeout()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *first_run_timeout_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ModuleConfig::_class_data_ = { - ModuleConfig::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ModuleConfig::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ModuleConfig::MergeImpl }; -const ::google::protobuf::Message::ClassData* ModuleConfig::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ModuleConfig::GetClassData() const { return &_class_data_; } + +void ModuleConfig::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ModuleConfig::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ModuleConfig) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ModuleConfig::MergeFrom(const ModuleConfig& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.ModuleConfig) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.env_.MergeFrom(from._impl_.env_); + env_.MergeFrom(from.env_); if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (!from._internal_path().empty()) { - _this->_internal_set_path(from._internal_path()); + _internal_set_path(from._internal_path()); } if (!from._internal_log_level().empty()) { - _this->_internal_set_log_level(from._internal_log_level()); + _internal_set_log_level(from._internal_log_level()); } if (!from._internal_type().empty()) { - _this->_internal_set_type(from._internal_type()); + _internal_set_type(from._internal_type()); } if (!from._internal_module_id().empty()) { - _this->_internal_set_module_id(from._internal_module_id()); + _internal_set_module_id(from._internal_module_id()); } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_status()->::viam::app::v1::AppValidationStatus::MergeFrom( - from._internal_status()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_first_run_timeout()->::google::protobuf::Duration::MergeFrom( - from._internal_first_run_timeout()); - } + if (from._internal_has_status()) { + _internal_mutable_status()->::viam::app::v1::AppValidationStatus::MergeFrom(from._internal_status()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_first_run_timeout()) { + _internal_mutable_first_run_timeout()->::PROTOBUF_NAMESPACE_ID::Duration::MergeFrom(from._internal_first_run_timeout()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ModuleConfig::CopyFrom(const ModuleConfig& from) { @@ -13243,334 +13475,388 @@ void ModuleConfig::CopyFrom(const ModuleConfig& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ModuleConfig::IsInitialized() const { +bool ModuleConfig::IsInitialized() const { return true; } -::_pbi::CachedSize* ModuleConfig::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ModuleConfig::InternalSwap(ModuleConfig* PROTOBUF_RESTRICT other) { +void ModuleConfig::InternalSwap(ModuleConfig* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.env_.InternalSwap(&other->_impl_.env_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.path_, &other->_impl_.path_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.log_level_, &other->_impl_.log_level_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.type_, &other->_impl_.type_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.module_id_, &other->_impl_.module_id_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(ModuleConfig, _impl_.first_run_timeout_) - + sizeof(ModuleConfig::_impl_.first_run_timeout_) - - PROTOBUF_FIELD_OFFSET(ModuleConfig, _impl_.status_)>( - reinterpret_cast(&_impl_.status_), - reinterpret_cast(&other->_impl_.status_)); -} - -::google::protobuf::Metadata ModuleConfig::GetMetadata() const { + env_.InternalSwap(&other->env_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &path_, lhs_arena, + &other->path_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &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 + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(ModuleConfig, first_run_timeout_) + + sizeof(ModuleConfig::first_run_timeout_) + - PROTOBUF_FIELD_OFFSET(ModuleConfig, status_)>( + reinterpret_cast(&status_), + reinterpret_cast(&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[39]); } + // =================================================================== class PackageConfig::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(PackageConfig, _impl_._has_bits_); static const ::viam::app::v1::AppValidationStatus& status(const PackageConfig* msg); - static void set_has_status(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::app::v1::AppValidationStatus& PackageConfig::_Internal::status(const PackageConfig* msg) { - return *msg->_impl_.status_; +const ::viam::app::v1::AppValidationStatus& +PackageConfig::_Internal::status(const PackageConfig* msg) { + return *msg->status_; } -PackageConfig::PackageConfig(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +PackageConfig::PackageConfig(::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.PackageConfig) } -inline PROTOBUF_NDEBUG_INLINE PackageConfig::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_), - package_(arena, from.package_), - version_(arena, from.version_), - type_(arena, from.type_) {} - -PackageConfig::PackageConfig( - ::google::protobuf::Arena* arena, - const PackageConfig& from) - : ::google::protobuf::Message(arena) { - PackageConfig* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.status_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::app::v1::AppValidationStatus>(arena, *from._impl_.status_) - : nullptr; - +PackageConfig::PackageConfig(const PackageConfig& 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()); + } + package_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + package_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_package().empty()) { + package_.Set(from._internal_package(), + GetArenaForAllocation()); + } + version_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + version_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_version().empty()) { + version_.Set(from._internal_version(), + 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()); + } + 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) } -inline PROTOBUF_NDEBUG_INLINE PackageConfig::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena), - package_(arena), - version_(arena), - type_(arena) {} -inline void PackageConfig::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.status_ = {}; +inline void PackageConfig::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +package_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + package_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +version_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + version_.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 +status_ = nullptr; } + PackageConfig::~PackageConfig() { // @@protoc_insertion_point(destructor:viam.app.v1.PackageConfig) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void PackageConfig::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.package_.Destroy(); - _impl_.version_.Destroy(); - _impl_.type_.Destroy(); - delete _impl_.status_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + package_.Destroy(); + version_.Destroy(); + type_.Destroy(); + if (this != internal_default_instance()) delete status_; +} + +void PackageConfig::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void PackageConfig::Clear() { +void PackageConfig::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.PackageConfig) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _impl_.package_.ClearToEmpty(); - _impl_.version_.ClearToEmpty(); - _impl_.type_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.status_ != nullptr); - _impl_.status_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* PackageConfig::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + package_.ClearToEmpty(); + version_.ClearToEmpty(); + type_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* PackageConfig::_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.app.v1.PackageConfig.name")); + } else + goto handle_unusual; + continue; + // string package = 2 [json_name = "package"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_package(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.PackageConfig.package")); + } else + goto handle_unusual; + continue; + // string version = 3 [json_name = "version"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_version(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.PackageConfig.version")); + } 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.PackageConfig.type")); + } 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 + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 5, 1, 56, 2> PackageConfig::_table_ = { - { - PROTOBUF_FIELD_OFFSET(PackageConfig, _impl_._has_bits_), - 0, // no _extensions_ - 5, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967264, // skipmap - offsetof(decltype(_table_), field_entries), - 5, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_PackageConfig_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(PackageConfig, _impl_.name_)}}, - // string package = 2 [json_name = "package"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(PackageConfig, _impl_.package_)}}, - // string version = 3 [json_name = "version"]; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(PackageConfig, _impl_.version_)}}, - // string type = 4 [json_name = "type"]; - {::_pbi::TcParser::FastUS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(PackageConfig, _impl_.type_)}}, - // .viam.app.v1.AppValidationStatus status = 5 [json_name = "status"]; - {::_pbi::TcParser::FastMtS1, - {42, 0, 0, PROTOBUF_FIELD_OFFSET(PackageConfig, _impl_.status_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(PackageConfig, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string package = 2 [json_name = "package"]; - {PROTOBUF_FIELD_OFFSET(PackageConfig, _impl_.package_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string version = 3 [json_name = "version"]; - {PROTOBUF_FIELD_OFFSET(PackageConfig, _impl_.version_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string type = 4 [json_name = "type"]; - {PROTOBUF_FIELD_OFFSET(PackageConfig, _impl_.type_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .viam.app.v1.AppValidationStatus status = 5 [json_name = "status"]; - {PROTOBUF_FIELD_OFFSET(PackageConfig, _impl_.status_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::AppValidationStatus>()}, - }}, {{ - "\31\4\7\7\4\0\0\0" - "viam.app.v1.PackageConfig" - "name" - "package" - "version" - "type" - }}, -}; - -::uint8_t* PackageConfig::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* PackageConfig::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.PackageConfig) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.PackageConfig.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.PackageConfig.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // string package = 2 [json_name = "package"]; if (!this->_internal_package().empty()) { - const std::string& _s = this->_internal_package(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.PackageConfig.package"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_package().data(), static_cast(this->_internal_package().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.PackageConfig.package"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_package(), target); } // string version = 3 [json_name = "version"]; if (!this->_internal_version().empty()) { - const std::string& _s = this->_internal_version(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.PackageConfig.version"); - target = stream->WriteStringMaybeAliased(3, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_version().data(), static_cast(this->_internal_version().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.PackageConfig.version"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_version(), target); } // string type = 4 [json_name = "type"]; if (!this->_internal_type().empty()) { - const std::string& _s = this->_internal_type(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.PackageConfig.type"); - target = stream->WriteStringMaybeAliased(4, _s, target); + ::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.PackageConfig.type"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_type(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .viam.app.v1.AppValidationStatus status = 5 [json_name = "status"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 5, _Internal::status(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.PackageConfig) return target; } -::size_t PackageConfig::ByteSizeLong() const { +size_t PackageConfig::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.PackageConfig) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // string package = 2 [json_name = "package"]; if (!this->_internal_package().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_package()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_package()); } // string version = 3 [json_name = "version"]; if (!this->_internal_version().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_version()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_version()); } // string type = 4 [json_name = "type"]; if (!this->_internal_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_type()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_type()); } // .viam.app.v1.AppValidationStatus status = 5 [json_name = "status"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.status_); + if (this->_internal_has_status()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *status_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData PackageConfig::_class_data_ = { - PackageConfig::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PackageConfig::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + PackageConfig::MergeImpl }; -const ::google::protobuf::Message::ClassData* PackageConfig::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PackageConfig::GetClassData() const { return &_class_data_; } + +void PackageConfig::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void PackageConfig::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.PackageConfig) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void PackageConfig::MergeFrom(const PackageConfig& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.PackageConfig) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (!from._internal_package().empty()) { - _this->_internal_set_package(from._internal_package()); + _internal_set_package(from._internal_package()); } if (!from._internal_version().empty()) { - _this->_internal_set_version(from._internal_version()); + _internal_set_version(from._internal_version()); } if (!from._internal_type().empty()) { - _this->_internal_set_type(from._internal_type()); + _internal_set_type(from._internal_type()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_status()->::viam::app::v1::AppValidationStatus::MergeFrom( - from._internal_status()); + if (from._internal_has_status()) { + _internal_mutable_status()->::viam::app::v1::AppValidationStatus::MergeFrom(from._internal_status()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void PackageConfig::CopyFrom(const PackageConfig& from) { @@ -13580,245 +13866,252 @@ void PackageConfig::CopyFrom(const PackageConfig& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool PackageConfig::IsInitialized() const { +bool PackageConfig::IsInitialized() const { return true; } -::_pbi::CachedSize* PackageConfig::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void PackageConfig::InternalSwap(PackageConfig* PROTOBUF_RESTRICT other) { +void PackageConfig::InternalSwap(PackageConfig* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.package_, &other->_impl_.package_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.version_, &other->_impl_.version_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.type_, &other->_impl_.type_, arena); - swap(_impl_.status_, other->_impl_.status_); -} - -::google::protobuf::Metadata PackageConfig::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &package_, lhs_arena, + &other->package_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &version_, lhs_arena, + &other->version_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &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[40]); } + // =================================================================== class MaintenanceConfig::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(MaintenanceConfig, _impl_._has_bits_); static const ::viam::common::v1::ResourceName& sensor_name(const MaintenanceConfig* msg); - static void set_has_sensor_name(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::common::v1::ResourceName& MaintenanceConfig::_Internal::sensor_name(const MaintenanceConfig* msg) { - return *msg->_impl_.sensor_name_; +const ::viam::common::v1::ResourceName& +MaintenanceConfig::_Internal::sensor_name(const MaintenanceConfig* msg) { + return *msg->sensor_name_; } void MaintenanceConfig::clear_sensor_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.sensor_name_ != nullptr) _impl_.sensor_name_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && sensor_name_ != nullptr) { + delete sensor_name_; + } + sensor_name_ = nullptr; } -MaintenanceConfig::MaintenanceConfig(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +MaintenanceConfig::MaintenanceConfig(::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.MaintenanceConfig) } -inline PROTOBUF_NDEBUG_INLINE MaintenanceConfig::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - maintenance_allowed_key_(arena, from.maintenance_allowed_key_) {} - -MaintenanceConfig::MaintenanceConfig( - ::google::protobuf::Arena* arena, - const MaintenanceConfig& from) - : ::google::protobuf::Message(arena) { - MaintenanceConfig* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.sensor_name_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::common::v1::ResourceName>(arena, *from._impl_.sensor_name_) - : nullptr; - +MaintenanceConfig::MaintenanceConfig(const MaintenanceConfig& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + maintenance_allowed_key_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + maintenance_allowed_key_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_maintenance_allowed_key().empty()) { + maintenance_allowed_key_.Set(from._internal_maintenance_allowed_key(), + GetArenaForAllocation()); + } + if (from._internal_has_sensor_name()) { + sensor_name_ = new ::viam::common::v1::ResourceName(*from.sensor_name_); + } else { + sensor_name_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.MaintenanceConfig) } -inline PROTOBUF_NDEBUG_INLINE MaintenanceConfig::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - maintenance_allowed_key_(arena) {} -inline void MaintenanceConfig::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.sensor_name_ = {}; +inline void MaintenanceConfig::SharedCtor() { +maintenance_allowed_key_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + maintenance_allowed_key_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +sensor_name_ = nullptr; } + MaintenanceConfig::~MaintenanceConfig() { // @@protoc_insertion_point(destructor:viam.app.v1.MaintenanceConfig) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void MaintenanceConfig::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.maintenance_allowed_key_.Destroy(); - delete _impl_.sensor_name_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + maintenance_allowed_key_.Destroy(); + if (this != internal_default_instance()) delete sensor_name_; +} + +void MaintenanceConfig::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void MaintenanceConfig::Clear() { +void MaintenanceConfig::Clear() { // @@protoc_insertion_point(message_clear_start:viam.app.v1.MaintenanceConfig) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.maintenance_allowed_key_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.sensor_name_ != nullptr); - _impl_.sensor_name_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* MaintenanceConfig::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + maintenance_allowed_key_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && sensor_name_ != nullptr) { + delete sensor_name_; + } + sensor_name_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* MaintenanceConfig::_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 sensor_name = 1 [json_name = "sensorName"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_sensor_name(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string maintenance_allowed_key = 2 [json_name = "maintenanceAllowedKey"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_maintenance_allowed_key(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.MaintenanceConfig.maintenance_allowed_key")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 61, 2> MaintenanceConfig::_table_ = { - { - PROTOBUF_FIELD_OFFSET(MaintenanceConfig, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_MaintenanceConfig_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string maintenance_allowed_key = 2 [json_name = "maintenanceAllowedKey"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(MaintenanceConfig, _impl_.maintenance_allowed_key_)}}, - // .viam.common.v1.ResourceName sensor_name = 1 [json_name = "sensorName"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(MaintenanceConfig, _impl_.sensor_name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.common.v1.ResourceName sensor_name = 1 [json_name = "sensorName"]; - {PROTOBUF_FIELD_OFFSET(MaintenanceConfig, _impl_.sensor_name_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // string maintenance_allowed_key = 2 [json_name = "maintenanceAllowedKey"]; - {PROTOBUF_FIELD_OFFSET(MaintenanceConfig, _impl_.maintenance_allowed_key_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::common::v1::ResourceName>()}, - }}, {{ - "\35\0\27\0\0\0\0\0" - "viam.app.v1.MaintenanceConfig" - "maintenance_allowed_key" - }}, -}; - -::uint8_t* MaintenanceConfig::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* MaintenanceConfig::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.MaintenanceConfig) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.common.v1.ResourceName sensor_name = 1 [json_name = "sensorName"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::sensor_name(this), + if (this->_internal_has_sensor_name()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::sensor_name(this), _Internal::sensor_name(this).GetCachedSize(), target, stream); } // string maintenance_allowed_key = 2 [json_name = "maintenanceAllowedKey"]; if (!this->_internal_maintenance_allowed_key().empty()) { - const std::string& _s = this->_internal_maintenance_allowed_key(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.MaintenanceConfig.maintenance_allowed_key"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_maintenance_allowed_key().data(), static_cast(this->_internal_maintenance_allowed_key().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.MaintenanceConfig.maintenance_allowed_key"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_maintenance_allowed_key(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.MaintenanceConfig) return target; } -::size_t MaintenanceConfig::ByteSizeLong() const { +size_t MaintenanceConfig::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.app.v1.MaintenanceConfig) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string maintenance_allowed_key = 2 [json_name = "maintenanceAllowedKey"]; if (!this->_internal_maintenance_allowed_key().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_maintenance_allowed_key()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_maintenance_allowed_key()); } // .viam.common.v1.ResourceName sensor_name = 1 [json_name = "sensorName"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.sensor_name_); + if (this->_internal_has_sensor_name()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *sensor_name_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData MaintenanceConfig::_class_data_ = { - MaintenanceConfig::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MaintenanceConfig::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + MaintenanceConfig::MergeImpl }; -const ::google::protobuf::Message::ClassData* MaintenanceConfig::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MaintenanceConfig::GetClassData() const { return &_class_data_; } + +void MaintenanceConfig::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void MaintenanceConfig::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.MaintenanceConfig) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void MaintenanceConfig::MergeFrom(const MaintenanceConfig& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.MaintenanceConfig) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_maintenance_allowed_key().empty()) { - _this->_internal_set_maintenance_allowed_key(from._internal_maintenance_allowed_key()); + _internal_set_maintenance_allowed_key(from._internal_maintenance_allowed_key()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_sensor_name()->::viam::common::v1::ResourceName::MergeFrom( - from._internal_sensor_name()); + if (from._internal_has_sensor_name()) { + _internal_mutable_sensor_name()->::viam::common::v1::ResourceName::MergeFrom(from._internal_sensor_name()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MaintenanceConfig::CopyFrom(const MaintenanceConfig& from) { @@ -13828,35 +14121,202 @@ void MaintenanceConfig::CopyFrom(const MaintenanceConfig& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool MaintenanceConfig::IsInitialized() const { +bool MaintenanceConfig::IsInitialized() const { return true; } -::_pbi::CachedSize* MaintenanceConfig::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void MaintenanceConfig::InternalSwap(MaintenanceConfig* PROTOBUF_RESTRICT other) { +void MaintenanceConfig::InternalSwap(MaintenanceConfig* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.maintenance_allowed_key_, &other->_impl_.maintenance_allowed_key_, arena); - swap(_impl_.sensor_name_, other->_impl_.sensor_name_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &maintenance_allowed_key_, lhs_arena, + &other->maintenance_allowed_key_, rhs_arena + ); + swap(sensor_name_, other->sensor_name_); } -::google::protobuf::Metadata MaintenanceConfig::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata MaintenanceConfig::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[41]); } + // @@protoc_insertion_point(namespace_scope) } // namespace v1 } // namespace app } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::app::v1::RobotConfig* +Arena::CreateMaybeMessage< ::viam::app::v1::RobotConfig >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::RobotConfig >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::LogPatternConfig* +Arena::CreateMaybeMessage< ::viam::app::v1::LogPatternConfig >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::LogPatternConfig >(arena); +} +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); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::ComponentConfig* +Arena::CreateMaybeMessage< ::viam::app::v1::ComponentConfig >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::ComponentConfig >(arena); +} +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); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::ServiceConfig* +Arena::CreateMaybeMessage< ::viam::app::v1::ServiceConfig >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::ServiceConfig >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::NetworkConfig* +Arena::CreateMaybeMessage< ::viam::app::v1::NetworkConfig >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::NetworkConfig >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::SessionsConfig* +Arena::CreateMaybeMessage< ::viam::app::v1::SessionsConfig >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::SessionsConfig >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::AuthConfig* +Arena::CreateMaybeMessage< ::viam::app::v1::AuthConfig >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::AuthConfig >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::JWKSFile* +Arena::CreateMaybeMessage< ::viam::app::v1::JWKSFile >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::JWKSFile >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::ExternalAuthConfig* +Arena::CreateMaybeMessage< ::viam::app::v1::ExternalAuthConfig >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::ExternalAuthConfig >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::AuthHandlerConfig* +Arena::CreateMaybeMessage< ::viam::app::v1::AuthHandlerConfig >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::AuthHandlerConfig >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::Frame* +Arena::CreateMaybeMessage< ::viam::app::v1::Frame >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::Frame >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::LogConfiguration* +Arena::CreateMaybeMessage< ::viam::app::v1::LogConfiguration >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::LogConfiguration >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::Translation* +Arena::CreateMaybeMessage< ::viam::app::v1::Translation >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::Translation >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::Orientation_NoOrientation* +Arena::CreateMaybeMessage< ::viam::app::v1::Orientation_NoOrientation >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::Orientation_NoOrientation >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::Orientation_OrientationVectorRadians* +Arena::CreateMaybeMessage< ::viam::app::v1::Orientation_OrientationVectorRadians >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::Orientation_OrientationVectorRadians >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::Orientation_OrientationVectorDegrees* +Arena::CreateMaybeMessage< ::viam::app::v1::Orientation_OrientationVectorDegrees >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::Orientation_OrientationVectorDegrees >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::Orientation_EulerAngles* +Arena::CreateMaybeMessage< ::viam::app::v1::Orientation_EulerAngles >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::Orientation_EulerAngles >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::Orientation_AxisAngles* +Arena::CreateMaybeMessage< ::viam::app::v1::Orientation_AxisAngles >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::Orientation_AxisAngles >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::Orientation_Quaternion* +Arena::CreateMaybeMessage< ::viam::app::v1::Orientation_Quaternion >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::Orientation_Quaternion >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::Orientation* +Arena::CreateMaybeMessage< ::viam::app::v1::Orientation >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::Orientation >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::RemoteConfig* +Arena::CreateMaybeMessage< ::viam::app::v1::RemoteConfig >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::RemoteConfig >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::RemoteAuth_Credentials* +Arena::CreateMaybeMessage< ::viam::app::v1::RemoteAuth_Credentials >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::RemoteAuth_Credentials >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::RemoteAuth* +Arena::CreateMaybeMessage< ::viam::app::v1::RemoteAuth >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::RemoteAuth >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::AgentInfo* +Arena::CreateMaybeMessage< ::viam::app::v1::AgentInfo >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::AgentInfo >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::ConfigRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::ConfigRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::ConfigRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::ConfigResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::ConfigResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::ConfigResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::CertificateRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::CertificateRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::CertificateRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::CertificateResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::CertificateResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::CertificateResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::LogRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::LogRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::LogRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::LogResponse* +Arena::CreateMaybeMessage< ::viam::app::v1::LogResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::LogResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::NeedsRestartRequest* +Arena::CreateMaybeMessage< ::viam::app::v1::NeedsRestartRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::NeedsRestartRequest >(arena); +} +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); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::PackageConfig* +Arena::CreateMaybeMessage< ::viam::app::v1::PackageConfig >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::PackageConfig >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::app::v1::MaintenanceConfig* +Arena::CreateMaybeMessage< ::viam::app::v1::MaintenanceConfig >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::MaintenanceConfig >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/app/v1/robot.pb.h b/src/viam/api/app/v1/robot.pb.h index a90e1f0a3..e253972bf 100644 --- a/src/viam/api/app/v1/robot.pb.h +++ b/src/viam/api/app/v1/robot.pb.h @@ -1,69 +1,58 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: app/v1/robot.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_app_2fv1_2frobot_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_app_2fv1_2frobot_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_app_2fv1_2frobot_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_app_2fv1_2frobot_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_bases.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/map.h" // IWYU pragma: export -#include "google/protobuf/map_entry.h" -#include "google/protobuf/map_field_inl.h" -#include "google/protobuf/generated_enum_reflection.h" -#include "google/protobuf/unknown_field_set.h" + +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include +#include #include "common/v1/common.pb.h" -#include "google/protobuf/duration.pb.h" -#include "google/protobuf/struct.pb.h" +#include +#include #include "tagger/v1/tagger.pb.h" // @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - +#include #define PROTOBUF_INTERNAL_EXPORT_app_2fv1_2frobot_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_app_2fv1_2frobot_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_app_2fv1_2frobot_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_app_2fv1_2frobot_2eproto; namespace viam { namespace app { namespace v1 { @@ -196,80 +185,106 @@ extern TranslationDefaultTypeInternal _Translation_default_instance_; } // namespace v1 } // namespace app } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - +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*); +template<> ::viam::app::v1::CertificateResponse* Arena::CreateMaybeMessage<::viam::app::v1::CertificateResponse>(Arena*); +template<> ::viam::app::v1::CloudConfig* Arena::CreateMaybeMessage<::viam::app::v1::CloudConfig>(Arena*); +template<> ::viam::app::v1::ComponentConfig* Arena::CreateMaybeMessage<::viam::app::v1::ComponentConfig>(Arena*); +template<> ::viam::app::v1::ConfigRequest* Arena::CreateMaybeMessage<::viam::app::v1::ConfigRequest>(Arena*); +template<> ::viam::app::v1::ConfigResponse* Arena::CreateMaybeMessage<::viam::app::v1::ConfigResponse>(Arena*); +template<> ::viam::app::v1::ExternalAuthConfig* Arena::CreateMaybeMessage<::viam::app::v1::ExternalAuthConfig>(Arena*); +template<> ::viam::app::v1::Frame* Arena::CreateMaybeMessage<::viam::app::v1::Frame>(Arena*); +template<> ::viam::app::v1::JWKSFile* Arena::CreateMaybeMessage<::viam::app::v1::JWKSFile>(Arena*); +template<> ::viam::app::v1::LocationSecret* Arena::CreateMaybeMessage<::viam::app::v1::LocationSecret>(Arena*); +template<> ::viam::app::v1::LogConfiguration* Arena::CreateMaybeMessage<::viam::app::v1::LogConfiguration>(Arena*); +template<> ::viam::app::v1::LogPatternConfig* Arena::CreateMaybeMessage<::viam::app::v1::LogPatternConfig>(Arena*); +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::MaintenanceConfig* Arena::CreateMaybeMessage<::viam::app::v1::MaintenanceConfig>(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*); +template<> ::viam::app::v1::Orientation* Arena::CreateMaybeMessage<::viam::app::v1::Orientation>(Arena*); +template<> ::viam::app::v1::Orientation_AxisAngles* Arena::CreateMaybeMessage<::viam::app::v1::Orientation_AxisAngles>(Arena*); +template<> ::viam::app::v1::Orientation_EulerAngles* Arena::CreateMaybeMessage<::viam::app::v1::Orientation_EulerAngles>(Arena*); +template<> ::viam::app::v1::Orientation_NoOrientation* Arena::CreateMaybeMessage<::viam::app::v1::Orientation_NoOrientation>(Arena*); +template<> ::viam::app::v1::Orientation_OrientationVectorDegrees* Arena::CreateMaybeMessage<::viam::app::v1::Orientation_OrientationVectorDegrees>(Arena*); +template<> ::viam::app::v1::Orientation_OrientationVectorRadians* Arena::CreateMaybeMessage<::viam::app::v1::Orientation_OrientationVectorRadians>(Arena*); +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*); +template<> ::viam::app::v1::ResourceLevelServiceConfig* Arena::CreateMaybeMessage<::viam::app::v1::ResourceLevelServiceConfig>(Arena*); +template<> ::viam::app::v1::RobotConfig* Arena::CreateMaybeMessage<::viam::app::v1::RobotConfig>(Arena*); +template<> ::viam::app::v1::ServiceConfig* Arena::CreateMaybeMessage<::viam::app::v1::ServiceConfig>(Arena*); +template<> ::viam::app::v1::SessionsConfig* Arena::CreateMaybeMessage<::viam::app::v1::SessionsConfig>(Arena*); +template<> ::viam::app::v1::Translation* Arena::CreateMaybeMessage<::viam::app::v1::Translation>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace viam { namespace app { namespace v1 { + enum CredentialsType : int { CREDENTIALS_TYPE_UNSPECIFIED = 0, CREDENTIALS_TYPE_INTERNAL = 1, CREDENTIALS_TYPE_API_KEY = 2, CREDENTIALS_TYPE_ROBOT_SECRET = 3, CREDENTIALS_TYPE_ROBOT_LOCATION_SECRET = 4, - CredentialsType_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - CredentialsType_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), + CredentialsType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + CredentialsType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() }; - bool CredentialsType_IsValid(int value); -extern const uint32_t CredentialsType_internal_data_[]; -constexpr CredentialsType CredentialsType_MIN = static_cast(0); -constexpr CredentialsType CredentialsType_MAX = static_cast(4); -constexpr int CredentialsType_ARRAYSIZE = 4 + 1; -const ::google::protobuf::EnumDescriptor* -CredentialsType_descriptor(); -template -const std::string& CredentialsType_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to CredentialsType_Name()."); - return CredentialsType_Name(static_cast(value)); -} -template <> -inline const std::string& CredentialsType_Name(CredentialsType value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool CredentialsType_Parse(absl::string_view name, CredentialsType* value) { - return ::google::protobuf::internal::ParseNamedEnum( - CredentialsType_descriptor(), name, value); +constexpr CredentialsType CredentialsType_MIN = CREDENTIALS_TYPE_UNSPECIFIED; +constexpr CredentialsType CredentialsType_MAX = CREDENTIALS_TYPE_ROBOT_LOCATION_SECRET; +constexpr int CredentialsType_ARRAYSIZE = CredentialsType_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* CredentialsType_descriptor(); +template +inline const std::string& CredentialsType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function CredentialsType_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + CredentialsType_descriptor(), enum_t_value); +} +inline bool CredentialsType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, CredentialsType* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + CredentialsType_descriptor(), name, value); } - // =================================================================== - -// ------------------------------------------------------------------- - -class Translation final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.Translation) */ { +class RobotConfig final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.RobotConfig) */ { public: - inline Translation() : Translation(nullptr) {} - ~Translation() override; - template - explicit PROTOBUF_CONSTEXPR Translation(::google::protobuf::internal::ConstantInitialized); + inline RobotConfig() : RobotConfig(nullptr) {} + ~RobotConfig() override; + explicit PROTOBUF_CONSTEXPR RobotConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Translation(const Translation& from) - : Translation(nullptr, from) {} - Translation(Translation&& from) noexcept - : Translation() { + RobotConfig(const RobotConfig& from); + RobotConfig(RobotConfig&& from) noexcept + : RobotConfig() { *this = ::std::move(from); } - inline Translation& operator=(const Translation& from) { + inline RobotConfig& operator=(const RobotConfig& from) { CopyFrom(from); return *this; } - inline Translation& operator=(Translation&& from) noexcept { + inline RobotConfig& operator=(RobotConfig&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -279,419 +294,438 @@ class Translation final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Translation& default_instance() { + static const RobotConfig& default_instance() { return *internal_default_instance(); } - static inline const Translation* internal_default_instance() { - return reinterpret_cast( - &_Translation_default_instance_); + static inline const RobotConfig* internal_default_instance() { + return reinterpret_cast( + &_RobotConfig_default_instance_); } static constexpr int kIndexInFileMessages = - 18; + 0; - friend void swap(Translation& a, Translation& b) { + friend void swap(RobotConfig& a, RobotConfig& b) { a.Swap(&b); } - inline void Swap(Translation* other) { + inline void Swap(RobotConfig* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Translation* other) { + void UnsafeArenaSwap(RobotConfig* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Translation* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Translation& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Translation& from) { - Translation::MergeImpl(*this, from); + RobotConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const RobotConfig& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const RobotConfig& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Translation* other); + void SetCachedSize(int size) const final; + void InternalSwap(RobotConfig* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.Translation"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.RobotConfig"; } protected: - explicit Translation(::google::protobuf::Arena* arena); - Translation(::google::protobuf::Arena* arena, const Translation& from); + explicit RobotConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kXFieldNumber = 1, - kYFieldNumber = 2, - kZFieldNumber = 3, + kRemotesFieldNumber = 2, + kComponentsFieldNumber = 3, + kProcessesFieldNumber = 4, + kServicesFieldNumber = 5, + kModulesFieldNumber = 9, + kPackagesFieldNumber = 11, + kOverwriteFragmentStatusFieldNumber = 12, + kLogFieldNumber = 14, + kRevisionFieldNumber = 15, + kCloudFieldNumber = 1, + kNetworkFieldNumber = 6, + kAuthFieldNumber = 7, + kMaintenanceFieldNumber = 16, + kDebugFieldNumber = 8, + kDisablePartialStartFieldNumber = 10, + kEnableWebProfileFieldNumber = 13, + kDisableLogDeduplicationFieldNumber = 17, }; - // double x = 1 [json_name = "x"]; - void clear_x() ; - double x() const; - void set_x(double value); - + // repeated .viam.app.v1.RemoteConfig remotes = 2 [json_name = "remotes"]; + int remotes_size() const; private: - double _internal_x() const; - void _internal_set_x(double value); - + int _internal_remotes_size() const; public: - // double y = 2 [json_name = "y"]; - void clear_y() ; - double y() const; - void set_y(double value); - + void clear_remotes(); + ::viam::app::v1::RemoteConfig* mutable_remotes(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::RemoteConfig >* + mutable_remotes(); private: - double _internal_y() const; - void _internal_set_y(double value); - + const ::viam::app::v1::RemoteConfig& _internal_remotes(int index) const; + ::viam::app::v1::RemoteConfig* _internal_add_remotes(); public: - // double z = 3 [json_name = "z"]; - void clear_z() ; - double z() const; - void set_z(double value); + const ::viam::app::v1::RemoteConfig& remotes(int index) const; + ::viam::app::v1::RemoteConfig* add_remotes(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::RemoteConfig >& + remotes() const; + // repeated .viam.app.v1.ComponentConfig components = 3 [json_name = "components"]; + int components_size() const; private: - double _internal_z() const; - void _internal_set_z(double value); - + int _internal_components_size() const; public: - // @@protoc_insertion_point(class_scope:viam.app.v1.Translation) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - double x_; - double y_; - double z_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_app_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- - -class RemoteAuth_Credentials final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.RemoteAuth.Credentials) */ { - public: - inline RemoteAuth_Credentials() : RemoteAuth_Credentials(nullptr) {} - ~RemoteAuth_Credentials() override; - template - explicit PROTOBUF_CONSTEXPR RemoteAuth_Credentials(::google::protobuf::internal::ConstantInitialized); - - inline RemoteAuth_Credentials(const RemoteAuth_Credentials& from) - : RemoteAuth_Credentials(nullptr, from) {} - RemoteAuth_Credentials(RemoteAuth_Credentials&& from) noexcept - : RemoteAuth_Credentials() { - *this = ::std::move(from); - } - - inline RemoteAuth_Credentials& operator=(const RemoteAuth_Credentials& from) { - CopyFrom(from); - return *this; - } - inline RemoteAuth_Credentials& operator=(RemoteAuth_Credentials&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const RemoteAuth_Credentials& default_instance() { - return *internal_default_instance(); - } - static inline const RemoteAuth_Credentials* internal_default_instance() { - return reinterpret_cast( - &_RemoteAuth_Credentials_default_instance_); - } - static constexpr int kIndexInFileMessages = - 27; - - friend void swap(RemoteAuth_Credentials& a, RemoteAuth_Credentials& b) { - a.Swap(&b); - } - inline void Swap(RemoteAuth_Credentials* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(RemoteAuth_Credentials* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - RemoteAuth_Credentials* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const RemoteAuth_Credentials& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const RemoteAuth_Credentials& from) { - RemoteAuth_Credentials::MergeImpl(*this, from); - } + void clear_components(); + ::viam::app::v1::ComponentConfig* mutable_components(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ComponentConfig >* + mutable_components(); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + const ::viam::app::v1::ComponentConfig& _internal_components(int index) const; + ::viam::app::v1::ComponentConfig* _internal_add_components(); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + const ::viam::app::v1::ComponentConfig& components(int index) const; + ::viam::app::v1::ComponentConfig* add_components(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ComponentConfig >& + components() const; + // repeated .viam.app.v1.ProcessConfig processes = 4 [json_name = "processes"]; + int processes_size() const; private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(RemoteAuth_Credentials* other); - + int _internal_processes_size() const; + public: + void clear_processes(); + ::viam::app::v1::ProcessConfig* mutable_processes(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ProcessConfig >* + mutable_processes(); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.RemoteAuth.Credentials"; - } - protected: - explicit RemoteAuth_Credentials(::google::protobuf::Arena* arena); - RemoteAuth_Credentials(::google::protobuf::Arena* arena, const RemoteAuth_Credentials& from); + const ::viam::app::v1::ProcessConfig& _internal_processes(int index) const; + ::viam::app::v1::ProcessConfig* _internal_add_processes(); public: + const ::viam::app::v1::ProcessConfig& processes(int index) const; + ::viam::app::v1::ProcessConfig* add_processes(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ProcessConfig >& + processes() const; - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPayloadFieldNumber = 2, - kTypeFieldNumber = 1, - }; - // string payload = 2 [json_name = "payload"]; - void clear_payload() ; - const std::string& payload() const; - template - void set_payload(Arg_&& arg, Args_... args); - std::string* mutable_payload(); - PROTOBUF_NODISCARD std::string* release_payload(); - void set_allocated_payload(std::string* value); - + // repeated .viam.app.v1.ServiceConfig services = 5 [json_name = "services"]; + int services_size() const; private: - const std::string& _internal_payload() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_payload( - const std::string& value); - std::string* _internal_mutable_payload(); - + int _internal_services_size() const; public: - // .viam.app.v1.CredentialsType type = 1 [json_name = "type"]; - void clear_type() ; - ::viam::app::v1::CredentialsType type() const; - void set_type(::viam::app::v1::CredentialsType value); - + void clear_services(); + ::viam::app::v1::ServiceConfig* mutable_services(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ServiceConfig >* + mutable_services(); private: - ::viam::app::v1::CredentialsType _internal_type() const; - void _internal_set_type(::viam::app::v1::CredentialsType value); - + const ::viam::app::v1::ServiceConfig& _internal_services(int index) const; + ::viam::app::v1::ServiceConfig* _internal_add_services(); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.RemoteAuth.Credentials) - private: - class _Internal; + const ::viam::app::v1::ServiceConfig& services(int index) const; + ::viam::app::v1::ServiceConfig* add_services(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ServiceConfig >& + services() const; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 50, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr payload_; - int type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_app_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- + // repeated .viam.app.v1.ModuleConfig modules = 9 [json_name = "modules"]; + int modules_size() const; + private: + int _internal_modules_size() const; + public: + void clear_modules(); + ::viam::app::v1::ModuleConfig* mutable_modules(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ModuleConfig >* + mutable_modules(); + private: + const ::viam::app::v1::ModuleConfig& _internal_modules(int index) const; + ::viam::app::v1::ModuleConfig* _internal_add_modules(); + public: + const ::viam::app::v1::ModuleConfig& modules(int index) const; + ::viam::app::v1::ModuleConfig* add_modules(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ModuleConfig >& + modules() const; -class ProcessConfig_EnvEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry< - ProcessConfig_EnvEntry_DoNotUse, std::string, std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING> { - public: - using SuperType = ::google::protobuf::internal::MapEntry< - ProcessConfig_EnvEntry_DoNotUse, std::string, std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING>; - ProcessConfig_EnvEntry_DoNotUse(); - template - explicit PROTOBUF_CONSTEXPR ProcessConfig_EnvEntry_DoNotUse( - ::google::protobuf::internal::ConstantInitialized); - explicit ProcessConfig_EnvEntry_DoNotUse(::google::protobuf::Arena* arena); - static const ProcessConfig_EnvEntry_DoNotUse* internal_default_instance() { - return reinterpret_cast( - &_ProcessConfig_EnvEntry_DoNotUse_default_instance_); - } - static bool ValidateKey(std::string* s) { - return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "viam.app.v1.ProcessConfig.EnvEntry.key"); - } - static bool ValidateValue(std::string* s) { - return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "viam.app.v1.ProcessConfig.EnvEntry.value"); - } - ::google::protobuf::Metadata GetMetadata() const final; + // repeated .viam.app.v1.PackageConfig packages = 11 [json_name = "packages"]; + int packages_size() const; + private: + int _internal_packages_size() const; + public: + void clear_packages(); + ::viam::app::v1::PackageConfig* mutable_packages(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::PackageConfig >* + mutable_packages(); + private: + const ::viam::app::v1::PackageConfig& _internal_packages(int index) const; + ::viam::app::v1::PackageConfig* _internal_add_packages(); + public: + const ::viam::app::v1::PackageConfig& packages(int index) const; + ::viam::app::v1::PackageConfig* add_packages(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::PackageConfig >& + packages() const; + + // repeated .viam.app.v1.AppValidationStatus overwrite_fragment_status = 12 [json_name = "overwriteFragmentStatus"]; + int overwrite_fragment_status_size() const; + private: + int _internal_overwrite_fragment_status_size() const; + public: + void clear_overwrite_fragment_status(); + ::viam::app::v1::AppValidationStatus* mutable_overwrite_fragment_status(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::AppValidationStatus >* + mutable_overwrite_fragment_status(); + private: + const ::viam::app::v1::AppValidationStatus& _internal_overwrite_fragment_status(int index) const; + ::viam::app::v1::AppValidationStatus* _internal_add_overwrite_fragment_status(); + public: + const ::viam::app::v1::AppValidationStatus& overwrite_fragment_status(int index) const; + ::viam::app::v1::AppValidationStatus* add_overwrite_fragment_status(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::AppValidationStatus >& + overwrite_fragment_status() const; + + // repeated .viam.app.v1.LogPatternConfig log = 14 [json_name = "log"]; + int log_size() const; + private: + int _internal_log_size() const; + public: + void clear_log(); + ::viam::app::v1::LogPatternConfig* mutable_log(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::LogPatternConfig >* + mutable_log(); + private: + const ::viam::app::v1::LogPatternConfig& _internal_log(int index) const; + ::viam::app::v1::LogPatternConfig* _internal_add_log(); + public: + const ::viam::app::v1::LogPatternConfig& log(int index) const; + ::viam::app::v1::LogPatternConfig* add_log(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::LogPatternConfig >& + log() const; + + // string revision = 15 [json_name = "revision"]; + void clear_revision(); + const std::string& revision() const; + template + void set_revision(ArgT0&& arg0, ArgT... args); + std::string* mutable_revision(); + PROTOBUF_NODISCARD std::string* release_revision(); + void set_allocated_revision(std::string* revision); + private: + const std::string& _internal_revision() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_revision(const std::string& value); + std::string* _internal_mutable_revision(); + public: + + // .viam.app.v1.CloudConfig cloud = 1 [json_name = "cloud"]; + bool has_cloud() const; + private: + bool _internal_has_cloud() const; + public: + void clear_cloud(); + const ::viam::app::v1::CloudConfig& cloud() const; + PROTOBUF_NODISCARD ::viam::app::v1::CloudConfig* release_cloud(); + ::viam::app::v1::CloudConfig* mutable_cloud(); + void set_allocated_cloud(::viam::app::v1::CloudConfig* cloud); + private: + const ::viam::app::v1::CloudConfig& _internal_cloud() const; + ::viam::app::v1::CloudConfig* _internal_mutable_cloud(); + public: + void unsafe_arena_set_allocated_cloud( + ::viam::app::v1::CloudConfig* cloud); + ::viam::app::v1::CloudConfig* unsafe_arena_release_cloud(); + + // optional .viam.app.v1.NetworkConfig network = 6 [json_name = "network"]; + bool has_network() const; + private: + bool _internal_has_network() const; + public: + void clear_network(); + const ::viam::app::v1::NetworkConfig& network() const; + PROTOBUF_NODISCARD ::viam::app::v1::NetworkConfig* release_network(); + ::viam::app::v1::NetworkConfig* mutable_network(); + void set_allocated_network(::viam::app::v1::NetworkConfig* network); + private: + const ::viam::app::v1::NetworkConfig& _internal_network() const; + ::viam::app::v1::NetworkConfig* _internal_mutable_network(); + public: + void unsafe_arena_set_allocated_network( + ::viam::app::v1::NetworkConfig* network); + ::viam::app::v1::NetworkConfig* unsafe_arena_release_network(); + + // optional .viam.app.v1.AuthConfig auth = 7 [json_name = "auth"]; + bool has_auth() const; + private: + bool _internal_has_auth() const; + public: + void clear_auth(); + const ::viam::app::v1::AuthConfig& auth() const; + PROTOBUF_NODISCARD ::viam::app::v1::AuthConfig* release_auth(); + ::viam::app::v1::AuthConfig* mutable_auth(); + void set_allocated_auth(::viam::app::v1::AuthConfig* auth); + private: + const ::viam::app::v1::AuthConfig& _internal_auth() const; + ::viam::app::v1::AuthConfig* _internal_mutable_auth(); + public: + void unsafe_arena_set_allocated_auth( + ::viam::app::v1::AuthConfig* auth); + ::viam::app::v1::AuthConfig* unsafe_arena_release_auth(); + + // optional .viam.app.v1.MaintenanceConfig maintenance = 16 [json_name = "maintenance"]; + bool has_maintenance() const; + private: + bool _internal_has_maintenance() const; + public: + void clear_maintenance(); + const ::viam::app::v1::MaintenanceConfig& maintenance() const; + PROTOBUF_NODISCARD ::viam::app::v1::MaintenanceConfig* release_maintenance(); + ::viam::app::v1::MaintenanceConfig* mutable_maintenance(); + void set_allocated_maintenance(::viam::app::v1::MaintenanceConfig* maintenance); + private: + const ::viam::app::v1::MaintenanceConfig& _internal_maintenance() const; + ::viam::app::v1::MaintenanceConfig* _internal_mutable_maintenance(); + public: + void unsafe_arena_set_allocated_maintenance( + ::viam::app::v1::MaintenanceConfig* maintenance); + ::viam::app::v1::MaintenanceConfig* unsafe_arena_release_maintenance(); + + // optional bool debug = 8 [json_name = "debug"]; + bool has_debug() const; + private: + bool _internal_has_debug() const; + public: + void clear_debug(); + bool debug() const; + void set_debug(bool value); + private: + bool _internal_debug() const; + void _internal_set_debug(bool value); + public: + + // optional bool disable_partial_start = 10 [json_name = "disablePartialStart"]; + bool has_disable_partial_start() const; + private: + bool _internal_has_disable_partial_start() const; + public: + void clear_disable_partial_start(); + bool disable_partial_start() const; + void set_disable_partial_start(bool value); + private: + bool _internal_disable_partial_start() const; + void _internal_set_disable_partial_start(bool value); + public: + + // bool enable_web_profile = 13 [json_name = "enableWebProfile"]; + void clear_enable_web_profile(); + bool enable_web_profile() const; + void set_enable_web_profile(bool value); + private: + bool _internal_enable_web_profile() const; + void _internal_set_enable_web_profile(bool value); + public: + + // bool disable_log_deduplication = 17 [json_name = "disableLogDeduplication"]; + void clear_disable_log_deduplication(); + bool disable_log_deduplication() const; + void set_disable_log_deduplication(bool value); + private: + bool _internal_disable_log_deduplication() const; + void _internal_set_disable_log_deduplication(bool value); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.RobotConfig) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::RemoteConfig > remotes_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ComponentConfig > components_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ProcessConfig > processes_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ServiceConfig > services_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ModuleConfig > modules_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::PackageConfig > packages_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::AppValidationStatus > overwrite_fragment_status_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::LogPatternConfig > log_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr revision_; + ::viam::app::v1::CloudConfig* cloud_; + ::viam::app::v1::NetworkConfig* network_; + ::viam::app::v1::AuthConfig* auth_; + ::viam::app::v1::MaintenanceConfig* maintenance_; + bool debug_; + bool disable_partial_start_; + bool enable_web_profile_; + bool disable_log_deduplication_; friend struct ::TableStruct_app_2fv1_2frobot_2eproto; }; // ------------------------------------------------------------------- -class Orientation_Quaternion final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.Orientation.Quaternion) */ { +class LogPatternConfig final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.LogPatternConfig) */ { public: - inline Orientation_Quaternion() : Orientation_Quaternion(nullptr) {} - ~Orientation_Quaternion() override; - template - explicit PROTOBUF_CONSTEXPR Orientation_Quaternion(::google::protobuf::internal::ConstantInitialized); + inline LogPatternConfig() : LogPatternConfig(nullptr) {} + ~LogPatternConfig() override; + explicit PROTOBUF_CONSTEXPR LogPatternConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Orientation_Quaternion(const Orientation_Quaternion& from) - : Orientation_Quaternion(nullptr, from) {} - Orientation_Quaternion(Orientation_Quaternion&& from) noexcept - : Orientation_Quaternion() { + LogPatternConfig(const LogPatternConfig& from); + LogPatternConfig(LogPatternConfig&& from) noexcept + : LogPatternConfig() { *this = ::std::move(from); } - inline Orientation_Quaternion& operator=(const Orientation_Quaternion& from) { + inline LogPatternConfig& operator=(const LogPatternConfig& from) { CopyFrom(from); return *this; } - inline Orientation_Quaternion& operator=(Orientation_Quaternion&& from) noexcept { + inline LogPatternConfig& operator=(LogPatternConfig&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -701,208 +735,161 @@ class Orientation_Quaternion final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Orientation_Quaternion& default_instance() { + static const LogPatternConfig& default_instance() { return *internal_default_instance(); } - static inline const Orientation_Quaternion* internal_default_instance() { - return reinterpret_cast( - &_Orientation_Quaternion_default_instance_); + static inline const LogPatternConfig* internal_default_instance() { + return reinterpret_cast( + &_LogPatternConfig_default_instance_); } static constexpr int kIndexInFileMessages = - 24; + 1; - friend void swap(Orientation_Quaternion& a, Orientation_Quaternion& b) { + friend void swap(LogPatternConfig& a, LogPatternConfig& b) { a.Swap(&b); } - inline void Swap(Orientation_Quaternion* other) { + inline void Swap(LogPatternConfig* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Orientation_Quaternion* other) { + void UnsafeArenaSwap(LogPatternConfig* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Orientation_Quaternion* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Orientation_Quaternion& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Orientation_Quaternion& from) { - Orientation_Quaternion::MergeImpl(*this, from); + LogPatternConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const LogPatternConfig& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const LogPatternConfig& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Orientation_Quaternion* other); + void SetCachedSize(int size) const final; + void InternalSwap(LogPatternConfig* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.Orientation.Quaternion"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.LogPatternConfig"; } protected: - explicit Orientation_Quaternion(::google::protobuf::Arena* arena); - Orientation_Quaternion(::google::protobuf::Arena* arena, const Orientation_Quaternion& from); + explicit LogPatternConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kWFieldNumber = 1, - kXFieldNumber = 2, - kYFieldNumber = 3, - kZFieldNumber = 4, + kPatternFieldNumber = 1, + kLevelFieldNumber = 2, }; - // double w = 1 [json_name = "w"]; - void clear_w() ; - double w() const; - void set_w(double value); - - private: - double _internal_w() const; - void _internal_set_w(double value); - - public: - // double x = 2 [json_name = "x"]; - void clear_x() ; - double x() const; - void set_x(double value); - + // string pattern = 1 [json_name = "pattern"]; + void clear_pattern(); + const std::string& pattern() const; + template + void set_pattern(ArgT0&& arg0, ArgT... args); + std::string* mutable_pattern(); + PROTOBUF_NODISCARD std::string* release_pattern(); + void set_allocated_pattern(std::string* pattern); private: - double _internal_x() const; - void _internal_set_x(double value); - + const std::string& _internal_pattern() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_pattern(const std::string& value); + std::string* _internal_mutable_pattern(); public: - // double y = 3 [json_name = "y"]; - void clear_y() ; - double y() const; - void set_y(double value); + // string level = 2 [json_name = "level"]; + void clear_level(); + const std::string& level() const; + template + void set_level(ArgT0&& arg0, ArgT... args); + std::string* mutable_level(); + PROTOBUF_NODISCARD std::string* release_level(); + void set_allocated_level(std::string* level); private: - double _internal_y() const; - void _internal_set_y(double value); - + const std::string& _internal_level() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_level(const std::string& value); + std::string* _internal_mutable_level(); public: - // double z = 4 [json_name = "z"]; - void clear_z() ; - double z() const; - void set_z(double value); - - private: - double _internal_z() const; - void _internal_set_z(double value); - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.Orientation.Quaternion) + // @@protoc_insertion_point(class_scope:viam.app.v1.LogPatternConfig) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - double w_; - double x_; - double y_; - double z_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr pattern_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr level_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Orientation_OrientationVectorRadians final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.Orientation.OrientationVectorRadians) */ { +class LocationSecret final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.LocationSecret) */ { public: - inline Orientation_OrientationVectorRadians() : Orientation_OrientationVectorRadians(nullptr) {} - ~Orientation_OrientationVectorRadians() override; - template - explicit PROTOBUF_CONSTEXPR Orientation_OrientationVectorRadians(::google::protobuf::internal::ConstantInitialized); + inline LocationSecret() : LocationSecret(nullptr) {} + ~LocationSecret() override; + explicit PROTOBUF_CONSTEXPR LocationSecret(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Orientation_OrientationVectorRadians(const Orientation_OrientationVectorRadians& from) - : Orientation_OrientationVectorRadians(nullptr, from) {} - Orientation_OrientationVectorRadians(Orientation_OrientationVectorRadians&& from) noexcept - : Orientation_OrientationVectorRadians() { + LocationSecret(const LocationSecret& from); + LocationSecret(LocationSecret&& from) noexcept + : LocationSecret() { *this = ::std::move(from); } - inline Orientation_OrientationVectorRadians& operator=(const Orientation_OrientationVectorRadians& from) { + inline LocationSecret& operator=(const LocationSecret& from) { CopyFrom(from); return *this; } - inline Orientation_OrientationVectorRadians& operator=(Orientation_OrientationVectorRadians&& from) noexcept { + inline LocationSecret& operator=(LocationSecret&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -912,208 +899,161 @@ class Orientation_OrientationVectorRadians final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Orientation_OrientationVectorRadians& default_instance() { + static const LocationSecret& default_instance() { return *internal_default_instance(); } - static inline const Orientation_OrientationVectorRadians* internal_default_instance() { - return reinterpret_cast( - &_Orientation_OrientationVectorRadians_default_instance_); + static inline const LocationSecret* internal_default_instance() { + return reinterpret_cast( + &_LocationSecret_default_instance_); } static constexpr int kIndexInFileMessages = - 20; + 2; - friend void swap(Orientation_OrientationVectorRadians& a, Orientation_OrientationVectorRadians& b) { + friend void swap(LocationSecret& a, LocationSecret& b) { a.Swap(&b); } - inline void Swap(Orientation_OrientationVectorRadians* other) { + inline void Swap(LocationSecret* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Orientation_OrientationVectorRadians* other) { + void UnsafeArenaSwap(LocationSecret* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Orientation_OrientationVectorRadians* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Orientation_OrientationVectorRadians& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Orientation_OrientationVectorRadians& from) { - Orientation_OrientationVectorRadians::MergeImpl(*this, from); + LocationSecret* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const LocationSecret& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const LocationSecret& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Orientation_OrientationVectorRadians* other); + void SetCachedSize(int size) const final; + void InternalSwap(LocationSecret* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.Orientation.OrientationVectorRadians"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.LocationSecret"; } protected: - explicit Orientation_OrientationVectorRadians(::google::protobuf::Arena* arena); - Orientation_OrientationVectorRadians(::google::protobuf::Arena* arena, const Orientation_OrientationVectorRadians& from); + explicit LocationSecret(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kThetaFieldNumber = 1, - kXFieldNumber = 2, - kYFieldNumber = 3, - kZFieldNumber = 4, + kIdFieldNumber = 1, + kSecretFieldNumber = 2, }; - // double theta = 1 [json_name = "theta", (.tagger.v1.tags) = "json:\"th\""]; - void clear_theta() ; - double theta() const; - void set_theta(double value); - - private: - double _internal_theta() const; - void _internal_set_theta(double value); - - public: - // double x = 2 [json_name = "x"]; - void clear_x() ; - double x() const; - void set_x(double value); - + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); private: - double _internal_x() const; - void _internal_set_x(double value); - + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); public: - // double y = 3 [json_name = "y"]; - void clear_y() ; - double y() const; - void set_y(double value); + // string secret = 2 [json_name = "secret"]; + void clear_secret(); + const std::string& secret() const; + template + void set_secret(ArgT0&& arg0, ArgT... args); + std::string* mutable_secret(); + PROTOBUF_NODISCARD std::string* release_secret(); + void set_allocated_secret(std::string* secret); private: - double _internal_y() const; - void _internal_set_y(double value); - + const std::string& _internal_secret() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_secret(const std::string& value); + std::string* _internal_mutable_secret(); public: - // double z = 4 [json_name = "z"]; - void clear_z() ; - double z() const; - void set_z(double value); - - private: - double _internal_z() const; - void _internal_set_z(double value); - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.Orientation.OrientationVectorRadians) + // @@protoc_insertion_point(class_scope:viam.app.v1.LocationSecret) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - double theta_; - double x_; - double y_; - double z_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr secret_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Orientation_OrientationVectorDegrees final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.Orientation.OrientationVectorDegrees) */ { +class AppValidationStatus final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.AppValidationStatus) */ { public: - inline Orientation_OrientationVectorDegrees() : Orientation_OrientationVectorDegrees(nullptr) {} - ~Orientation_OrientationVectorDegrees() override; - template - explicit PROTOBUF_CONSTEXPR Orientation_OrientationVectorDegrees(::google::protobuf::internal::ConstantInitialized); + inline AppValidationStatus() : AppValidationStatus(nullptr) {} + ~AppValidationStatus() override; + explicit PROTOBUF_CONSTEXPR AppValidationStatus(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Orientation_OrientationVectorDegrees(const Orientation_OrientationVectorDegrees& from) - : Orientation_OrientationVectorDegrees(nullptr, from) {} - Orientation_OrientationVectorDegrees(Orientation_OrientationVectorDegrees&& from) noexcept - : Orientation_OrientationVectorDegrees() { + AppValidationStatus(const AppValidationStatus& from); + AppValidationStatus(AppValidationStatus&& from) noexcept + : AppValidationStatus() { *this = ::std::move(from); } - inline Orientation_OrientationVectorDegrees& operator=(const Orientation_OrientationVectorDegrees& from) { + inline AppValidationStatus& operator=(const AppValidationStatus& from) { CopyFrom(from); return *this; } - inline Orientation_OrientationVectorDegrees& operator=(Orientation_OrientationVectorDegrees&& from) noexcept { + inline AppValidationStatus& operator=(AppValidationStatus&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1123,207 +1063,145 @@ class Orientation_OrientationVectorDegrees final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Orientation_OrientationVectorDegrees& default_instance() { + static const AppValidationStatus& default_instance() { return *internal_default_instance(); } - static inline const Orientation_OrientationVectorDegrees* internal_default_instance() { - return reinterpret_cast( - &_Orientation_OrientationVectorDegrees_default_instance_); + static inline const AppValidationStatus* internal_default_instance() { + return reinterpret_cast( + &_AppValidationStatus_default_instance_); } static constexpr int kIndexInFileMessages = - 21; + 3; - friend void swap(Orientation_OrientationVectorDegrees& a, Orientation_OrientationVectorDegrees& b) { + friend void swap(AppValidationStatus& a, AppValidationStatus& b) { a.Swap(&b); } - inline void Swap(Orientation_OrientationVectorDegrees* other) { + inline void Swap(AppValidationStatus* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Orientation_OrientationVectorDegrees* other) { + void UnsafeArenaSwap(AppValidationStatus* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Orientation_OrientationVectorDegrees* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Orientation_OrientationVectorDegrees& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Orientation_OrientationVectorDegrees& from) { - Orientation_OrientationVectorDegrees::MergeImpl(*this, from); + 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(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Orientation_OrientationVectorDegrees* other); + void SetCachedSize(int size) const final; + void InternalSwap(AppValidationStatus* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.Orientation.OrientationVectorDegrees"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.AppValidationStatus"; } protected: - explicit Orientation_OrientationVectorDegrees(::google::protobuf::Arena* arena); - Orientation_OrientationVectorDegrees(::google::protobuf::Arena* arena, const Orientation_OrientationVectorDegrees& from); + explicit AppValidationStatus(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kThetaFieldNumber = 1, - kXFieldNumber = 2, - kYFieldNumber = 3, - kZFieldNumber = 4, + kErrorFieldNumber = 1, }; - // double theta = 1 [json_name = "theta", (.tagger.v1.tags) = "json:\"th\""]; - void clear_theta() ; - double theta() const; - void set_theta(double value); - - private: - double _internal_theta() const; - void _internal_set_theta(double value); - - public: - // double x = 2 [json_name = "x"]; - void clear_x() ; - double x() const; - void set_x(double value); - - private: - double _internal_x() const; - void _internal_set_x(double value); - - public: - // double y = 3 [json_name = "y"]; - void clear_y() ; - double y() const; - void set_y(double value); - + // 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: - double _internal_y() const; - void _internal_set_y(double value); - + const std::string& _internal_error() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_error(const std::string& value); + std::string* _internal_mutable_error(); public: - // double z = 4 [json_name = "z"]; - void clear_z() ; - double z() const; - void set_z(double value); - - private: - double _internal_z() const; - void _internal_set_z(double value); - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.Orientation.OrientationVectorDegrees) + // @@protoc_insertion_point(class_scope:viam.app.v1.AppValidationStatus) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - double theta_; - double x_; - double y_; - double z_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + 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 Orientation_NoOrientation final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.Orientation.NoOrientation) */ { +class CloudConfig final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.CloudConfig) */ { public: - inline Orientation_NoOrientation() : Orientation_NoOrientation(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR Orientation_NoOrientation(::google::protobuf::internal::ConstantInitialized); + inline CloudConfig() : CloudConfig(nullptr) {} + ~CloudConfig() override; + explicit PROTOBUF_CONSTEXPR CloudConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Orientation_NoOrientation(const Orientation_NoOrientation& from) - : Orientation_NoOrientation(nullptr, from) {} - Orientation_NoOrientation(Orientation_NoOrientation&& from) noexcept - : Orientation_NoOrientation() { + CloudConfig(const CloudConfig& from); + CloudConfig(CloudConfig&& from) noexcept + : CloudConfig() { *this = ::std::move(from); } - inline Orientation_NoOrientation& operator=(const Orientation_NoOrientation& from) { + inline CloudConfig& operator=(const CloudConfig& from) { CopyFrom(from); return *this; } - inline Orientation_NoOrientation& operator=(Orientation_NoOrientation&& from) noexcept { + inline CloudConfig& operator=(CloudConfig&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1333,333 +1211,320 @@ class Orientation_NoOrientation final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Orientation_NoOrientation& default_instance() { + static const CloudConfig& default_instance() { return *internal_default_instance(); } - static inline const Orientation_NoOrientation* internal_default_instance() { - return reinterpret_cast( - &_Orientation_NoOrientation_default_instance_); + static inline const CloudConfig* internal_default_instance() { + return reinterpret_cast( + &_CloudConfig_default_instance_); } static constexpr int kIndexInFileMessages = - 19; + 4; - friend void swap(Orientation_NoOrientation& a, Orientation_NoOrientation& b) { + friend void swap(CloudConfig& a, CloudConfig& b) { a.Swap(&b); } - inline void Swap(Orientation_NoOrientation* other) { + inline void Swap(CloudConfig* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Orientation_NoOrientation* other) { + void UnsafeArenaSwap(CloudConfig* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Orientation_NoOrientation* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const Orientation_NoOrientation& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const Orientation_NoOrientation& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + CloudConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CloudConfig& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CloudConfig& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.Orientation.NoOrientation"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CloudConfig* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.CloudConfig"; } protected: - explicit Orientation_NoOrientation(::google::protobuf::Arena* arena); - Orientation_NoOrientation(::google::protobuf::Arena* arena, const Orientation_NoOrientation& from); + explicit CloudConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.app.v1.Orientation.NoOrientation) - private: - class _Internal; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER + enum : int { + kLocationSecretsFieldNumber = 9, + kIdFieldNumber = 1, + kFqdnFieldNumber = 2, + kLocalFqdnFieldNumber = 3, + kManagedByFieldNumber = 4, + kSignalingAddressFieldNumber = 5, + kLocationSecretFieldNumber = 7, + kSecretFieldNumber = 8, + kPrimaryOrgIdFieldNumber = 10, + kLocationIdFieldNumber = 11, + kMachineIdFieldNumber = 12, + kSignalingInsecureFieldNumber = 6, }; - friend struct ::TableStruct_app_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- - -class Orientation_EulerAngles final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.Orientation.EulerAngles) */ { - public: - inline Orientation_EulerAngles() : Orientation_EulerAngles(nullptr) {} - ~Orientation_EulerAngles() override; - template - explicit PROTOBUF_CONSTEXPR Orientation_EulerAngles(::google::protobuf::internal::ConstantInitialized); + // repeated .viam.app.v1.LocationSecret location_secrets = 9 [json_name = "locationSecrets"]; + int location_secrets_size() const; + private: + int _internal_location_secrets_size() const; + public: + void clear_location_secrets(); + ::viam::app::v1::LocationSecret* mutable_location_secrets(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::LocationSecret >* + mutable_location_secrets(); + private: + const ::viam::app::v1::LocationSecret& _internal_location_secrets(int index) const; + ::viam::app::v1::LocationSecret* _internal_add_location_secrets(); + public: + const ::viam::app::v1::LocationSecret& location_secrets(int index) const; + ::viam::app::v1::LocationSecret* add_location_secrets(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::LocationSecret >& + location_secrets() const; - inline Orientation_EulerAngles(const Orientation_EulerAngles& from) - : Orientation_EulerAngles(nullptr, from) {} - Orientation_EulerAngles(Orientation_EulerAngles&& from) noexcept - : Orientation_EulerAngles() { - *this = ::std::move(from); - } - - inline Orientation_EulerAngles& operator=(const Orientation_EulerAngles& from) { - CopyFrom(from); - return *this; - } - inline Orientation_EulerAngles& operator=(Orientation_EulerAngles&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const Orientation_EulerAngles& default_instance() { - return *internal_default_instance(); - } - static inline const Orientation_EulerAngles* internal_default_instance() { - return reinterpret_cast( - &_Orientation_EulerAngles_default_instance_); - } - static constexpr int kIndexInFileMessages = - 22; - - friend void swap(Orientation_EulerAngles& a, Orientation_EulerAngles& b) { - a.Swap(&b); - } - inline void Swap(Orientation_EulerAngles* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Orientation_EulerAngles* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Orientation_EulerAngles* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Orientation_EulerAngles& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Orientation_EulerAngles& from) { - Orientation_EulerAngles::MergeImpl(*this, from); - } + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + // string fqdn = 2 [json_name = "fqdn"]; + void clear_fqdn(); + const std::string& fqdn() const; + template + void set_fqdn(ArgT0&& arg0, ArgT... args); + std::string* mutable_fqdn(); + PROTOBUF_NODISCARD std::string* release_fqdn(); + void set_allocated_fqdn(std::string* fqdn); private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(Orientation_EulerAngles* other); + const std::string& _internal_fqdn() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_fqdn(const std::string& value); + std::string* _internal_mutable_fqdn(); + public: + // string local_fqdn = 3 [json_name = "localFqdn"]; + void clear_local_fqdn(); + const std::string& local_fqdn() const; + template + void set_local_fqdn(ArgT0&& arg0, ArgT... args); + std::string* mutable_local_fqdn(); + PROTOBUF_NODISCARD std::string* release_local_fqdn(); + void set_allocated_local_fqdn(std::string* local_fqdn); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.Orientation.EulerAngles"; - } - protected: - explicit Orientation_EulerAngles(::google::protobuf::Arena* arena); - Orientation_EulerAngles(::google::protobuf::Arena* arena, const Orientation_EulerAngles& from); + const std::string& _internal_local_fqdn() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_local_fqdn(const std::string& value); + std::string* _internal_mutable_local_fqdn(); public: - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- + // string managed_by = 4 [json_name = "managedBy"]; + void clear_managed_by(); + const std::string& managed_by() const; + template + void set_managed_by(ArgT0&& arg0, ArgT... args); + std::string* mutable_managed_by(); + PROTOBUF_NODISCARD std::string* release_managed_by(); + void set_allocated_managed_by(std::string* managed_by); + private: + const std::string& _internal_managed_by() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_managed_by(const std::string& value); + std::string* _internal_mutable_managed_by(); + public: - enum : int { - kRollFieldNumber = 1, - kPitchFieldNumber = 2, - kYawFieldNumber = 3, - }; - // double roll = 1 [json_name = "roll"]; - void clear_roll() ; - double roll() const; - void set_roll(double value); + // string signaling_address = 5 [json_name = "signalingAddress"]; + void clear_signaling_address(); + const std::string& signaling_address() const; + template + void set_signaling_address(ArgT0&& arg0, ArgT... args); + std::string* mutable_signaling_address(); + PROTOBUF_NODISCARD std::string* release_signaling_address(); + void set_allocated_signaling_address(std::string* signaling_address); + private: + const std::string& _internal_signaling_address() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_signaling_address(const std::string& value); + std::string* _internal_mutable_signaling_address(); + public: + // string location_secret = 7 [json_name = "locationSecret", deprecated = true]; + PROTOBUF_DEPRECATED void clear_location_secret(); + PROTOBUF_DEPRECATED const std::string& location_secret() const; + template + PROTOBUF_DEPRECATED void set_location_secret(ArgT0&& arg0, ArgT... args); + PROTOBUF_DEPRECATED std::string* mutable_location_secret(); + PROTOBUF_NODISCARD PROTOBUF_DEPRECATED std::string* release_location_secret(); + PROTOBUF_DEPRECATED void set_allocated_location_secret(std::string* location_secret); private: - double _internal_roll() const; - void _internal_set_roll(double value); + const std::string& _internal_location_secret() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_location_secret(const std::string& value); + std::string* _internal_mutable_location_secret(); + public: + // string secret = 8 [json_name = "secret"]; + void clear_secret(); + const std::string& secret() const; + template + void set_secret(ArgT0&& arg0, ArgT... args); + std::string* mutable_secret(); + PROTOBUF_NODISCARD std::string* release_secret(); + void set_allocated_secret(std::string* secret); + private: + const std::string& _internal_secret() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_secret(const std::string& value); + std::string* _internal_mutable_secret(); public: - // double pitch = 2 [json_name = "pitch"]; - void clear_pitch() ; - double pitch() const; - void set_pitch(double value); + // string primary_org_id = 10 [json_name = "primaryOrgId"]; + void clear_primary_org_id(); + const std::string& primary_org_id() const; + template + void set_primary_org_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_primary_org_id(); + PROTOBUF_NODISCARD std::string* release_primary_org_id(); + void set_allocated_primary_org_id(std::string* primary_org_id); private: - double _internal_pitch() const; - void _internal_set_pitch(double value); + const std::string& _internal_primary_org_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_primary_org_id(const std::string& value); + std::string* _internal_mutable_primary_org_id(); + public: + // string location_id = 11 [json_name = "locationId"]; + void clear_location_id(); + const std::string& location_id() const; + template + void set_location_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_location_id(); + PROTOBUF_NODISCARD std::string* release_location_id(); + void set_allocated_location_id(std::string* location_id); + private: + const std::string& _internal_location_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_location_id(const std::string& value); + std::string* _internal_mutable_location_id(); public: - // double yaw = 3 [json_name = "yaw"]; - void clear_yaw() ; - double yaw() const; - void set_yaw(double value); + // string machine_id = 12 [json_name = "machineId"]; + void clear_machine_id(); + const std::string& machine_id() const; + template + void set_machine_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_machine_id(); + PROTOBUF_NODISCARD std::string* release_machine_id(); + void set_allocated_machine_id(std::string* machine_id); private: - double _internal_yaw() const; - void _internal_set_yaw(double value); + const std::string& _internal_machine_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_machine_id(const std::string& value); + std::string* _internal_mutable_machine_id(); + public: + // bool signaling_insecure = 6 [json_name = "signalingInsecure"]; + void clear_signaling_insecure(); + bool signaling_insecure() const; + void set_signaling_insecure(bool value); + private: + bool _internal_signaling_insecure() const; + void _internal_set_signaling_insecure(bool value); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.Orientation.EulerAngles) + + // @@protoc_insertion_point(class_scope:viam.app.v1.CloudConfig) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - double roll_; - double pitch_; - double yaw_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::LocationSecret > location_secrets_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr fqdn_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr local_fqdn_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr managed_by_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr signaling_address_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr location_secret_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr secret_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr primary_org_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr location_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr machine_id_; + bool signaling_insecure_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Orientation_AxisAngles final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.Orientation.AxisAngles) */ { +class ComponentConfig final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ComponentConfig) */ { public: - inline Orientation_AxisAngles() : Orientation_AxisAngles(nullptr) {} - ~Orientation_AxisAngles() override; - template - explicit PROTOBUF_CONSTEXPR Orientation_AxisAngles(::google::protobuf::internal::ConstantInitialized); + inline ComponentConfig() : ComponentConfig(nullptr) {} + ~ComponentConfig() override; + explicit PROTOBUF_CONSTEXPR ComponentConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Orientation_AxisAngles(const Orientation_AxisAngles& from) - : Orientation_AxisAngles(nullptr, from) {} - Orientation_AxisAngles(Orientation_AxisAngles&& from) noexcept - : Orientation_AxisAngles() { + ComponentConfig(const ComponentConfig& from); + ComponentConfig(ComponentConfig&& from) noexcept + : ComponentConfig() { *this = ::std::move(from); } - inline Orientation_AxisAngles& operator=(const Orientation_AxisAngles& from) { + inline ComponentConfig& operator=(const ComponentConfig& from) { CopyFrom(from); return *this; } - inline Orientation_AxisAngles& operator=(Orientation_AxisAngles&& from) noexcept { + inline ComponentConfig& operator=(ComponentConfig&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1669,208 +1534,315 @@ class Orientation_AxisAngles final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Orientation_AxisAngles& default_instance() { + static const ComponentConfig& default_instance() { return *internal_default_instance(); } - static inline const Orientation_AxisAngles* internal_default_instance() { - return reinterpret_cast( - &_Orientation_AxisAngles_default_instance_); + static inline const ComponentConfig* internal_default_instance() { + return reinterpret_cast( + &_ComponentConfig_default_instance_); } static constexpr int kIndexInFileMessages = - 23; + 5; - friend void swap(Orientation_AxisAngles& a, Orientation_AxisAngles& b) { + friend void swap(ComponentConfig& a, ComponentConfig& b) { a.Swap(&b); } - inline void Swap(Orientation_AxisAngles* other) { + inline void Swap(ComponentConfig* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Orientation_AxisAngles* other) { + void UnsafeArenaSwap(ComponentConfig* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Orientation_AxisAngles* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Orientation_AxisAngles& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Orientation_AxisAngles& from) { - Orientation_AxisAngles::MergeImpl(*this, from); + ComponentConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ComponentConfig& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ComponentConfig& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Orientation_AxisAngles* other); + void SetCachedSize(int size) const final; + void InternalSwap(ComponentConfig* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.Orientation.AxisAngles"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.ComponentConfig"; } protected: - explicit Orientation_AxisAngles(::google::protobuf::Arena* arena); - Orientation_AxisAngles(::google::protobuf::Arena* arena, const Orientation_AxisAngles& from); + explicit ComponentConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kThetaFieldNumber = 1, - kXFieldNumber = 2, - kYFieldNumber = 3, - kZFieldNumber = 4, + kDependsOnFieldNumber = 6, + kServiceConfigsFieldNumber = 7, + kNameFieldNumber = 1, + kNamespaceFieldNumber = 2, + kTypeFieldNumber = 3, + kModelFieldNumber = 4, + kApiFieldNumber = 9, + kFrameFieldNumber = 5, + kAttributesFieldNumber = 8, + kLogConfigurationFieldNumber = 10, }; - // double theta = 1 [json_name = "theta", (.tagger.v1.tags) = "json:\"th\""]; - void clear_theta() ; - double theta() const; - void set_theta(double value); - + // repeated string depends_on = 6 [json_name = "dependsOn"]; + int depends_on_size() const; private: - double _internal_theta() const; - void _internal_set_theta(double value); - + int _internal_depends_on_size() const; public: - // double x = 2 [json_name = "x"]; - void clear_x() ; - double x() const; - void set_x(double value); - + void clear_depends_on(); + const std::string& depends_on(int index) const; + std::string* mutable_depends_on(int index); + void set_depends_on(int index, const std::string& value); + void set_depends_on(int index, std::string&& value); + void set_depends_on(int index, const char* value); + void set_depends_on(int index, const char* value, size_t size); + std::string* add_depends_on(); + void add_depends_on(const std::string& value); + void add_depends_on(std::string&& value); + void add_depends_on(const char* value); + void add_depends_on(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& depends_on() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_depends_on(); private: - double _internal_x() const; - void _internal_set_x(double value); + const std::string& _internal_depends_on(int index) const; + std::string* _internal_add_depends_on(); + public: + // repeated .viam.app.v1.ResourceLevelServiceConfig service_configs = 7 [json_name = "serviceConfigs", (.tagger.v1.tags) = "json:\"service_config\""]; + int service_configs_size() const; + private: + int _internal_service_configs_size() const; public: - // double y = 3 [json_name = "y"]; - void clear_y() ; - double y() const; - void set_y(double value); + void clear_service_configs(); + ::viam::app::v1::ResourceLevelServiceConfig* mutable_service_configs(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ResourceLevelServiceConfig >* + mutable_service_configs(); + private: + const ::viam::app::v1::ResourceLevelServiceConfig& _internal_service_configs(int index) const; + ::viam::app::v1::ResourceLevelServiceConfig* _internal_add_service_configs(); + public: + const ::viam::app::v1::ResourceLevelServiceConfig& service_configs(int index) const; + ::viam::app::v1::ResourceLevelServiceConfig* add_service_configs(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ResourceLevelServiceConfig >& + service_configs() const; + // 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: - double _internal_y() const; - void _internal_set_y(double value); + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + // string namespace = 2 [json_name = "namespace"]; + void clear_namespace_(); + const std::string& namespace_() const; + template + void set_namespace_(ArgT0&& arg0, ArgT... args); + std::string* mutable_namespace_(); + PROTOBUF_NODISCARD std::string* release_namespace_(); + void set_allocated_namespace_(std::string* namespace_); + private: + const std::string& _internal_namespace_() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_namespace_(const std::string& value); + std::string* _internal_mutable_namespace_(); public: - // double z = 4 [json_name = "z"]; - void clear_z() ; - double z() const; - void set_z(double value); + // string type = 3 [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: - double _internal_z() const; - void _internal_set_z(double value); + 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 model = 4 [json_name = "model"]; + void clear_model(); + const std::string& model() const; + template + void set_model(ArgT0&& arg0, ArgT... args); + std::string* mutable_model(); + PROTOBUF_NODISCARD std::string* release_model(); + void set_allocated_model(std::string* model); + private: + const std::string& _internal_model() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_model(const std::string& value); + std::string* _internal_mutable_model(); + public: + // string api = 9 [json_name = "api"]; + void clear_api(); + const std::string& api() const; + template + void set_api(ArgT0&& arg0, ArgT... args); + std::string* mutable_api(); + PROTOBUF_NODISCARD std::string* release_api(); + void set_allocated_api(std::string* api); + private: + const std::string& _internal_api() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_api(const std::string& value); + std::string* _internal_mutable_api(); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.Orientation.AxisAngles) + + // .viam.app.v1.Frame frame = 5 [json_name = "frame"]; + bool has_frame() const; + private: + bool _internal_has_frame() const; + public: + void clear_frame(); + const ::viam::app::v1::Frame& frame() const; + PROTOBUF_NODISCARD ::viam::app::v1::Frame* release_frame(); + ::viam::app::v1::Frame* mutable_frame(); + void set_allocated_frame(::viam::app::v1::Frame* frame); + private: + const ::viam::app::v1::Frame& _internal_frame() const; + ::viam::app::v1::Frame* _internal_mutable_frame(); + public: + void unsafe_arena_set_allocated_frame( + ::viam::app::v1::Frame* frame); + ::viam::app::v1::Frame* unsafe_arena_release_frame(); + + // .google.protobuf.Struct attributes = 8 [json_name = "attributes"]; + bool has_attributes() const; + private: + bool _internal_has_attributes() const; + public: + void clear_attributes(); + const ::PROTOBUF_NAMESPACE_ID::Struct& attributes() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_attributes(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_attributes(); + void set_allocated_attributes(::PROTOBUF_NAMESPACE_ID::Struct* attributes); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_attributes() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_attributes(); + public: + void unsafe_arena_set_allocated_attributes( + ::PROTOBUF_NAMESPACE_ID::Struct* attributes); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_attributes(); + + // .viam.app.v1.LogConfiguration log_configuration = 10 [json_name = "logConfiguration"]; + bool has_log_configuration() const; + private: + bool _internal_has_log_configuration() const; + public: + void clear_log_configuration(); + const ::viam::app::v1::LogConfiguration& log_configuration() const; + PROTOBUF_NODISCARD ::viam::app::v1::LogConfiguration* release_log_configuration(); + ::viam::app::v1::LogConfiguration* mutable_log_configuration(); + void set_allocated_log_configuration(::viam::app::v1::LogConfiguration* log_configuration); + private: + const ::viam::app::v1::LogConfiguration& _internal_log_configuration() const; + ::viam::app::v1::LogConfiguration* _internal_mutable_log_configuration(); + public: + void unsafe_arena_set_allocated_log_configuration( + ::viam::app::v1::LogConfiguration* log_configuration); + ::viam::app::v1::LogConfiguration* unsafe_arena_release_log_configuration(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.ComponentConfig) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - double theta_; - double x_; - double y_; - double z_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField depends_on_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ResourceLevelServiceConfig > service_configs_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr namespace__; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr model_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr api_; + ::viam::app::v1::Frame* frame_; + ::PROTOBUF_NAMESPACE_ID::Struct* attributes_; + ::viam::app::v1::LogConfiguration* log_configuration_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class NeedsRestartRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.NeedsRestartRequest) */ { +class ResourceLevelServiceConfig final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ResourceLevelServiceConfig) */ { public: - inline NeedsRestartRequest() : NeedsRestartRequest(nullptr) {} - ~NeedsRestartRequest() override; - template - explicit PROTOBUF_CONSTEXPR NeedsRestartRequest(::google::protobuf::internal::ConstantInitialized); + inline ResourceLevelServiceConfig() : ResourceLevelServiceConfig(nullptr) {} + ~ResourceLevelServiceConfig() override; + explicit PROTOBUF_CONSTEXPR ResourceLevelServiceConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline NeedsRestartRequest(const NeedsRestartRequest& from) - : NeedsRestartRequest(nullptr, from) {} - NeedsRestartRequest(NeedsRestartRequest&& from) noexcept - : NeedsRestartRequest() { + ResourceLevelServiceConfig(const ResourceLevelServiceConfig& from); + ResourceLevelServiceConfig(ResourceLevelServiceConfig&& from) noexcept + : ResourceLevelServiceConfig() { *this = ::std::move(from); } - inline NeedsRestartRequest& operator=(const NeedsRestartRequest& from) { + inline ResourceLevelServiceConfig& operator=(const ResourceLevelServiceConfig& from) { CopyFrom(from); return *this; } - inline NeedsRestartRequest& operator=(NeedsRestartRequest&& from) noexcept { + inline ResourceLevelServiceConfig& operator=(ResourceLevelServiceConfig&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1880,207 +1852,193 @@ class NeedsRestartRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const NeedsRestartRequest& default_instance() { + static const ResourceLevelServiceConfig& default_instance() { return *internal_default_instance(); } - static inline const NeedsRestartRequest* internal_default_instance() { - return reinterpret_cast( - &_NeedsRestartRequest_default_instance_); + static inline const ResourceLevelServiceConfig* internal_default_instance() { + return reinterpret_cast( + &_ResourceLevelServiceConfig_default_instance_); } static constexpr int kIndexInFileMessages = - 36; + 6; - friend void swap(NeedsRestartRequest& a, NeedsRestartRequest& b) { + friend void swap(ResourceLevelServiceConfig& a, ResourceLevelServiceConfig& b) { a.Swap(&b); } - inline void Swap(NeedsRestartRequest* other) { + inline void Swap(ResourceLevelServiceConfig* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(NeedsRestartRequest* other) { + void UnsafeArenaSwap(ResourceLevelServiceConfig* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - NeedsRestartRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const NeedsRestartRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const NeedsRestartRequest& from) { - NeedsRestartRequest::MergeImpl(*this, from); + ResourceLevelServiceConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ResourceLevelServiceConfig& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ResourceLevelServiceConfig& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(NeedsRestartRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(ResourceLevelServiceConfig* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.NeedsRestartRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.ResourceLevelServiceConfig"; } protected: - explicit NeedsRestartRequest(::google::protobuf::Arena* arena); - NeedsRestartRequest(::google::protobuf::Arena* arena, const NeedsRestartRequest& from); + explicit ResourceLevelServiceConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kIdFieldNumber = 1, + kTypeFieldNumber = 1, + kAttributesFieldNumber = 2, }; - // string id = 1 [json_name = "id"]; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - + // string type = 1 [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_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); + const std::string& _internal_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_type(const std::string& value); + std::string* _internal_mutable_type(); + public: + // .google.protobuf.Struct attributes = 2 [json_name = "attributes"]; + bool has_attributes() const; + private: + bool _internal_has_attributes() const; public: - // @@protoc_insertion_point(class_scope:viam.app.v1.NeedsRestartRequest) + void clear_attributes(); + const ::PROTOBUF_NAMESPACE_ID::Struct& attributes() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_attributes(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_attributes(); + void set_allocated_attributes(::PROTOBUF_NAMESPACE_ID::Struct* attributes); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_attributes() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_attributes(); + public: + void unsafe_arena_set_allocated_attributes( + ::PROTOBUF_NAMESPACE_ID::Struct* attributes); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_attributes(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.ResourceLevelServiceConfig) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 42, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_; + ::PROTOBUF_NAMESPACE_ID::Struct* attributes_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ModuleConfig_EnvEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry< - ModuleConfig_EnvEntry_DoNotUse, std::string, std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING> { - public: - using SuperType = ::google::protobuf::internal::MapEntry< - ModuleConfig_EnvEntry_DoNotUse, std::string, std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING>; - ModuleConfig_EnvEntry_DoNotUse(); - template - explicit PROTOBUF_CONSTEXPR ModuleConfig_EnvEntry_DoNotUse( - ::google::protobuf::internal::ConstantInitialized); - explicit ModuleConfig_EnvEntry_DoNotUse(::google::protobuf::Arena* arena); - static const ModuleConfig_EnvEntry_DoNotUse* internal_default_instance() { - return reinterpret_cast( - &_ModuleConfig_EnvEntry_DoNotUse_default_instance_); - } +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 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "viam.app.v1.ModuleConfig.EnvEntry.key"); + 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 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "viam.app.v1.ModuleConfig.EnvEntry.value"); + 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"); } - ::google::protobuf::Metadata GetMetadata() const final; + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; friend struct ::TableStruct_app_2fv1_2frobot_2eproto; }; + // ------------------------------------------------------------------- -class LogResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.LogResponse) */ { +class ProcessConfig final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ProcessConfig) */ { public: - inline LogResponse() : LogResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR LogResponse(::google::protobuf::internal::ConstantInitialized); + inline ProcessConfig() : ProcessConfig(nullptr) {} + ~ProcessConfig() override; + explicit PROTOBUF_CONSTEXPR ProcessConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline LogResponse(const LogResponse& from) - : LogResponse(nullptr, from) {} - LogResponse(LogResponse&& from) noexcept - : LogResponse() { + ProcessConfig(const ProcessConfig& from); + ProcessConfig(ProcessConfig&& from) noexcept + : ProcessConfig() { *this = ::std::move(from); } - inline LogResponse& operator=(const LogResponse& from) { + inline ProcessConfig& operator=(const ProcessConfig& from) { CopyFrom(from); return *this; } - inline LogResponse& operator=(LogResponse&& from) noexcept { + inline ProcessConfig& operator=(ProcessConfig&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2090,514 +2048,298 @@ class LogResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const LogResponse& default_instance() { + static const ProcessConfig& default_instance() { return *internal_default_instance(); } - static inline const LogResponse* internal_default_instance() { - return reinterpret_cast( - &_LogResponse_default_instance_); + static inline const ProcessConfig* internal_default_instance() { + return reinterpret_cast( + &_ProcessConfig_default_instance_); } static constexpr int kIndexInFileMessages = - 35; + 8; - friend void swap(LogResponse& a, LogResponse& b) { + friend void swap(ProcessConfig& a, ProcessConfig& b) { a.Swap(&b); } - inline void Swap(LogResponse* other) { + inline void Swap(ProcessConfig* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(LogResponse* other) { + void UnsafeArenaSwap(ProcessConfig* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - LogResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const LogResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const LogResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + ProcessConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ProcessConfig& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ProcessConfig& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.LogResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ProcessConfig* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.ProcessConfig"; } protected: - explicit LogResponse(::google::protobuf::Arena* arena); - LogResponse(::google::protobuf::Arena* arena, const LogResponse& from); + explicit ProcessConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- - // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.app.v1.LogResponse) - private: - class _Internal; + // accessors ------------------------------------------------------- - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER + enum : int { + kArgsFieldNumber = 3, + kEnvFieldNumber = 9, + kIdFieldNumber = 1, + kNameFieldNumber = 2, + kCwdFieldNumber = 4, + kUsernameFieldNumber = 10, + kStopTimeoutFieldNumber = 8, + kOneShotFieldNumber = 5, + kLogFieldNumber = 6, + kStopSignalFieldNumber = 7, }; - friend struct ::TableStruct_app_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- - -class LogPatternConfig final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.LogPatternConfig) */ { - public: - inline LogPatternConfig() : LogPatternConfig(nullptr) {} - ~LogPatternConfig() override; - template - explicit PROTOBUF_CONSTEXPR LogPatternConfig(::google::protobuf::internal::ConstantInitialized); - - inline LogPatternConfig(const LogPatternConfig& from) - : LogPatternConfig(nullptr, from) {} - LogPatternConfig(LogPatternConfig&& from) noexcept - : LogPatternConfig() { - *this = ::std::move(from); - } - - inline LogPatternConfig& operator=(const LogPatternConfig& from) { - CopyFrom(from); - return *this; - } - inline LogPatternConfig& operator=(LogPatternConfig&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const LogPatternConfig& default_instance() { - return *internal_default_instance(); - } - static inline const LogPatternConfig* internal_default_instance() { - return reinterpret_cast( - &_LogPatternConfig_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(LogPatternConfig& a, LogPatternConfig& b) { - a.Swap(&b); - } - inline void Swap(LogPatternConfig* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(LogPatternConfig* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - LogPatternConfig* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const LogPatternConfig& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const LogPatternConfig& from) { - LogPatternConfig::MergeImpl(*this, from); - } + // repeated string args = 3 [json_name = "args"]; + int args_size() const; private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + int _internal_args_size() const; public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - + void clear_args(); + const std::string& args(int index) const; + std::string* mutable_args(int index); + void set_args(int index, const std::string& value); + void set_args(int index, std::string&& value); + void set_args(int index, const char* value); + void set_args(int index, const char* value, size_t size); + std::string* add_args(); + void add_args(const std::string& value); + void add_args(std::string&& value); + void add_args(const char* value); + void add_args(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& args() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_args(); private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(LogPatternConfig* other); + const std::string& _internal_args(int index) const; + std::string* _internal_add_args(); + public: + // map env = 9 [json_name = "env"]; + int env_size() const; private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.LogPatternConfig"; - } - protected: - explicit LogPatternConfig(::google::protobuf::Arena* arena); - LogPatternConfig(::google::protobuf::Arena* arena, const LogPatternConfig& from); + int _internal_env_size() const; public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPatternFieldNumber = 1, - kLevelFieldNumber = 2, - }; - // string pattern = 1 [json_name = "pattern"]; - void clear_pattern() ; - const std::string& pattern() const; - template - void set_pattern(Arg_&& arg, Args_... args); - std::string* mutable_pattern(); - PROTOBUF_NODISCARD std::string* release_pattern(); - void set_allocated_pattern(std::string* value); - + void clear_env(); private: - const std::string& _internal_pattern() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_pattern( - const std::string& value); - std::string* _internal_mutable_pattern(); - + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + _internal_env() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + _internal_mutable_env(); public: - // string level = 2 [json_name = "level"]; - void clear_level() ; - const std::string& level() const; - template - void set_level(Arg_&& arg, Args_... args); - std::string* mutable_level(); - PROTOBUF_NODISCARD std::string* release_level(); - void set_allocated_level(std::string* value); + 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; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); private: - const std::string& _internal_level() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_level( - const std::string& value); - std::string* _internal_mutable_level(); - + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.LogPatternConfig) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 49, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr pattern_; - ::google::protobuf::internal::ArenaStringPtr level_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_app_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- - -class LogConfiguration final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.LogConfiguration) */ { - public: - inline LogConfiguration() : LogConfiguration(nullptr) {} - ~LogConfiguration() override; - template - explicit PROTOBUF_CONSTEXPR LogConfiguration(::google::protobuf::internal::ConstantInitialized); - - inline LogConfiguration(const LogConfiguration& from) - : LogConfiguration(nullptr, from) {} - LogConfiguration(LogConfiguration&& from) noexcept - : LogConfiguration() { - *this = ::std::move(from); - } - - inline LogConfiguration& operator=(const LogConfiguration& from) { - CopyFrom(from); - return *this; - } - inline LogConfiguration& operator=(LogConfiguration&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const LogConfiguration& default_instance() { - return *internal_default_instance(); - } - static inline const LogConfiguration* internal_default_instance() { - return reinterpret_cast( - &_LogConfiguration_default_instance_); - } - static constexpr int kIndexInFileMessages = - 17; - - friend void swap(LogConfiguration& a, LogConfiguration& b) { - a.Swap(&b); - } - inline void Swap(LogConfiguration* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(LogConfiguration* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - LogConfiguration* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const LogConfiguration& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const LogConfiguration& from) { - LogConfiguration::MergeImpl(*this, from); - } + // string name = 2 [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: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + // string cwd = 4 [json_name = "cwd"]; + void clear_cwd(); + const std::string& cwd() const; + template + void set_cwd(ArgT0&& arg0, ArgT... args); + std::string* mutable_cwd(); + PROTOBUF_NODISCARD std::string* release_cwd(); + void set_allocated_cwd(std::string* cwd); private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(LogConfiguration* other); + const std::string& _internal_cwd() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_cwd(const std::string& value); + std::string* _internal_mutable_cwd(); + public: + // string username = 10 [json_name = "username"]; + void clear_username(); + const std::string& username() const; + template + void set_username(ArgT0&& arg0, ArgT... args); + std::string* mutable_username(); + PROTOBUF_NODISCARD std::string* release_username(); + void set_allocated_username(std::string* username); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.LogConfiguration"; - } - protected: - explicit LogConfiguration(::google::protobuf::Arena* arena); - LogConfiguration(::google::protobuf::Arena* arena, const LogConfiguration& from); + const std::string& _internal_username() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_username(const std::string& value); + std::string* _internal_mutable_username(); public: - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- + // .google.protobuf.Duration stop_timeout = 8 [json_name = "stopTimeout"]; + bool has_stop_timeout() const; + private: + bool _internal_has_stop_timeout() const; + public: + void clear_stop_timeout(); + const ::PROTOBUF_NAMESPACE_ID::Duration& stop_timeout() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Duration* release_stop_timeout(); + ::PROTOBUF_NAMESPACE_ID::Duration* mutable_stop_timeout(); + void set_allocated_stop_timeout(::PROTOBUF_NAMESPACE_ID::Duration* stop_timeout); + private: + const ::PROTOBUF_NAMESPACE_ID::Duration& _internal_stop_timeout() const; + ::PROTOBUF_NAMESPACE_ID::Duration* _internal_mutable_stop_timeout(); + public: + void unsafe_arena_set_allocated_stop_timeout( + ::PROTOBUF_NAMESPACE_ID::Duration* stop_timeout); + ::PROTOBUF_NAMESPACE_ID::Duration* unsafe_arena_release_stop_timeout(); - enum : int { - kLevelFieldNumber = 1, - }; - // string level = 1 [json_name = "level"]; - void clear_level() ; - const std::string& level() const; - template - void set_level(Arg_&& arg, Args_... args); - std::string* mutable_level(); - PROTOBUF_NODISCARD std::string* release_level(); - void set_allocated_level(std::string* value); + // bool one_shot = 5 [json_name = "oneShot"]; + void clear_one_shot(); + bool one_shot() const; + void set_one_shot(bool value); + private: + bool _internal_one_shot() const; + void _internal_set_one_shot(bool value); + public: + // bool log = 6 [json_name = "log"]; + void clear_log(); + bool log() const; + void set_log(bool value); private: - const std::string& _internal_level() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_level( - const std::string& value); - std::string* _internal_mutable_level(); + bool _internal_log() const; + void _internal_set_log(bool value); + public: + // int32 stop_signal = 7 [json_name = "stopSignal"]; + void clear_stop_signal(); + int32_t stop_signal() const; + void set_stop_signal(int32_t value); + private: + int32_t _internal_stop_signal() const; + void _internal_set_stop_signal(int32_t value); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.LogConfiguration) + + // @@protoc_insertion_point(class_scope:viam.app.v1.ProcessConfig) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 42, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr level_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + 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_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr username_; + ::PROTOBUF_NAMESPACE_ID::Duration* stop_timeout_; + bool one_shot_; + bool log_; + int32_t stop_signal_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class LocationSecret final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.LocationSecret) */ { +class ServiceConfig final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ServiceConfig) */ { public: - inline LocationSecret() : LocationSecret(nullptr) {} - ~LocationSecret() override; - template - explicit PROTOBUF_CONSTEXPR LocationSecret(::google::protobuf::internal::ConstantInitialized); + inline ServiceConfig() : ServiceConfig(nullptr) {} + ~ServiceConfig() override; + explicit PROTOBUF_CONSTEXPR ServiceConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline LocationSecret(const LocationSecret& from) - : LocationSecret(nullptr, from) {} - LocationSecret(LocationSecret&& from) noexcept - : LocationSecret() { + ServiceConfig(const ServiceConfig& from); + ServiceConfig(ServiceConfig&& from) noexcept + : ServiceConfig() { *this = ::std::move(from); } - inline LocationSecret& operator=(const LocationSecret& from) { + inline ServiceConfig& operator=(const ServiceConfig& from) { CopyFrom(from); return *this; } - inline LocationSecret& operator=(LocationSecret&& from) noexcept { + inline ServiceConfig& operator=(ServiceConfig&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2607,196 +2349,295 @@ class LocationSecret final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const LocationSecret& default_instance() { + static const ServiceConfig& default_instance() { return *internal_default_instance(); } - static inline const LocationSecret* internal_default_instance() { - return reinterpret_cast( - &_LocationSecret_default_instance_); + static inline const ServiceConfig* internal_default_instance() { + return reinterpret_cast( + &_ServiceConfig_default_instance_); } static constexpr int kIndexInFileMessages = - 2; + 9; - friend void swap(LocationSecret& a, LocationSecret& b) { + friend void swap(ServiceConfig& a, ServiceConfig& b) { a.Swap(&b); } - inline void Swap(LocationSecret* other) { + inline void Swap(ServiceConfig* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(LocationSecret* other) { + void UnsafeArenaSwap(ServiceConfig* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - - LocationSecret* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const LocationSecret& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const LocationSecret& from) { - LocationSecret::MergeImpl(*this, from); + + ServiceConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ServiceConfig& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ServiceConfig& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(LocationSecret* other); + void SetCachedSize(int size) const final; + void InternalSwap(ServiceConfig* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.LocationSecret"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.ServiceConfig"; } protected: - explicit LocationSecret(::google::protobuf::Arena* arena); - LocationSecret(::google::protobuf::Arena* arena, const LocationSecret& from); + explicit ServiceConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kIdFieldNumber = 1, - kSecretFieldNumber = 2, + kDependsOnFieldNumber = 5, + kServiceConfigsFieldNumber = 10, + kNameFieldNumber = 1, + kNamespaceFieldNumber = 2, + kTypeFieldNumber = 3, + kModelFieldNumber = 6, + kApiFieldNumber = 9, + kAttributesFieldNumber = 4, + kLogConfigurationFieldNumber = 11, }; - // string id = 1 [json_name = "id"]; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); + // repeated string depends_on = 5 [json_name = "dependsOn"]; + int depends_on_size() const; + private: + int _internal_depends_on_size() const; + public: + void clear_depends_on(); + const std::string& depends_on(int index) const; + std::string* mutable_depends_on(int index); + void set_depends_on(int index, const std::string& value); + void set_depends_on(int index, std::string&& value); + void set_depends_on(int index, const char* value); + void set_depends_on(int index, const char* value, size_t size); + std::string* add_depends_on(); + void add_depends_on(const std::string& value); + void add_depends_on(std::string&& value); + void add_depends_on(const char* value); + void add_depends_on(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& depends_on() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_depends_on(); + private: + const std::string& _internal_depends_on(int index) const; + std::string* _internal_add_depends_on(); + public: + // repeated .viam.app.v1.ResourceLevelServiceConfig service_configs = 10 [json_name = "serviceConfigs", (.tagger.v1.tags) = "json:\"service_config\""]; + int service_configs_size() const; private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); + int _internal_service_configs_size() const; + public: + void clear_service_configs(); + ::viam::app::v1::ResourceLevelServiceConfig* mutable_service_configs(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ResourceLevelServiceConfig >* + mutable_service_configs(); + private: + const ::viam::app::v1::ResourceLevelServiceConfig& _internal_service_configs(int index) const; + ::viam::app::v1::ResourceLevelServiceConfig* _internal_add_service_configs(); + public: + const ::viam::app::v1::ResourceLevelServiceConfig& service_configs(int index) const; + ::viam::app::v1::ResourceLevelServiceConfig* add_service_configs(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ResourceLevelServiceConfig >& + service_configs() const; + // 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: + + // string namespace = 2 [json_name = "namespace"]; + void clear_namespace_(); + const std::string& namespace_() const; + template + void set_namespace_(ArgT0&& arg0, ArgT... args); + std::string* mutable_namespace_(); + PROTOBUF_NODISCARD std::string* release_namespace_(); + void set_allocated_namespace_(std::string* namespace_); + private: + const std::string& _internal_namespace_() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_namespace_(const std::string& value); + std::string* _internal_mutable_namespace_(); public: - // string secret = 2 [json_name = "secret"]; - void clear_secret() ; - const std::string& secret() const; - template - void set_secret(Arg_&& arg, Args_... args); - std::string* mutable_secret(); - PROTOBUF_NODISCARD std::string* release_secret(); - void set_allocated_secret(std::string* value); + // string type = 3 [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_secret() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_secret( - const std::string& value); - std::string* _internal_mutable_secret(); + 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 model = 6 [json_name = "model"]; + void clear_model(); + const std::string& model() const; + template + void set_model(ArgT0&& arg0, ArgT... args); + std::string* mutable_model(); + PROTOBUF_NODISCARD std::string* release_model(); + void set_allocated_model(std::string* model); + private: + const std::string& _internal_model() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_model(const std::string& value); + std::string* _internal_mutable_model(); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.LocationSecret) + + // string api = 9 [json_name = "api"]; + void clear_api(); + const std::string& api() const; + template + void set_api(ArgT0&& arg0, ArgT... args); + std::string* mutable_api(); + PROTOBUF_NODISCARD std::string* release_api(); + void set_allocated_api(std::string* api); + private: + const std::string& _internal_api() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_api(const std::string& value); + std::string* _internal_mutable_api(); + public: + + // .google.protobuf.Struct attributes = 4 [json_name = "attributes"]; + bool has_attributes() const; + private: + bool _internal_has_attributes() const; + public: + void clear_attributes(); + const ::PROTOBUF_NAMESPACE_ID::Struct& attributes() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_attributes(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_attributes(); + void set_allocated_attributes(::PROTOBUF_NAMESPACE_ID::Struct* attributes); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_attributes() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_attributes(); + public: + void unsafe_arena_set_allocated_attributes( + ::PROTOBUF_NAMESPACE_ID::Struct* attributes); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_attributes(); + + // .viam.app.v1.LogConfiguration log_configuration = 11 [json_name = "logConfiguration"]; + bool has_log_configuration() const; + private: + bool _internal_has_log_configuration() const; + public: + void clear_log_configuration(); + const ::viam::app::v1::LogConfiguration& log_configuration() const; + PROTOBUF_NODISCARD ::viam::app::v1::LogConfiguration* release_log_configuration(); + ::viam::app::v1::LogConfiguration* mutable_log_configuration(); + void set_allocated_log_configuration(::viam::app::v1::LogConfiguration* log_configuration); + private: + const ::viam::app::v1::LogConfiguration& _internal_log_configuration() const; + ::viam::app::v1::LogConfiguration* _internal_mutable_log_configuration(); + public: + void unsafe_arena_set_allocated_log_configuration( + ::viam::app::v1::LogConfiguration* log_configuration); + ::viam::app::v1::LogConfiguration* unsafe_arena_release_log_configuration(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.ServiceConfig) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 43, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr id_; - ::google::protobuf::internal::ArenaStringPtr secret_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField depends_on_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ResourceLevelServiceConfig > service_configs_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr namespace__; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr model_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr api_; + ::PROTOBUF_NAMESPACE_ID::Struct* attributes_; + ::viam::app::v1::LogConfiguration* log_configuration_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class CertificateResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.CertificateResponse) */ { +class NetworkConfig final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.NetworkConfig) */ { public: - inline CertificateResponse() : CertificateResponse(nullptr) {} - ~CertificateResponse() override; - template - explicit PROTOBUF_CONSTEXPR CertificateResponse(::google::protobuf::internal::ConstantInitialized); + inline NetworkConfig() : NetworkConfig(nullptr) {} + ~NetworkConfig() override; + explicit PROTOBUF_CONSTEXPR NetworkConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline CertificateResponse(const CertificateResponse& from) - : CertificateResponse(nullptr, from) {} - CertificateResponse(CertificateResponse&& from) noexcept - : CertificateResponse() { + NetworkConfig(const NetworkConfig& from); + NetworkConfig(NetworkConfig&& from) noexcept + : NetworkConfig() { *this = ::std::move(from); } - inline CertificateResponse& operator=(const CertificateResponse& from) { + inline NetworkConfig& operator=(const NetworkConfig& from) { CopyFrom(from); return *this; } - inline CertificateResponse& operator=(CertificateResponse&& from) noexcept { + inline NetworkConfig& operator=(NetworkConfig&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2806,214 +2647,213 @@ class CertificateResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CertificateResponse& default_instance() { + static const NetworkConfig& default_instance() { return *internal_default_instance(); } - static inline const CertificateResponse* internal_default_instance() { - return reinterpret_cast( - &_CertificateResponse_default_instance_); + static inline const NetworkConfig* internal_default_instance() { + return reinterpret_cast( + &_NetworkConfig_default_instance_); } static constexpr int kIndexInFileMessages = - 33; + 10; - friend void swap(CertificateResponse& a, CertificateResponse& b) { + friend void swap(NetworkConfig& a, NetworkConfig& b) { a.Swap(&b); } - inline void Swap(CertificateResponse* other) { + inline void Swap(NetworkConfig* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CertificateResponse* other) { + void UnsafeArenaSwap(NetworkConfig* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CertificateResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const CertificateResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CertificateResponse& from) { - CertificateResponse::MergeImpl(*this, from); + NetworkConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const NetworkConfig& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const NetworkConfig& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(CertificateResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(NetworkConfig* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.CertificateResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.NetworkConfig"; } protected: - explicit CertificateResponse(::google::protobuf::Arena* arena); - CertificateResponse(::google::protobuf::Arena* arena, const CertificateResponse& from); + explicit NetworkConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kIdFieldNumber = 1, - kTlsCertificateFieldNumber = 2, - kTlsPrivateKeyFieldNumber = 3, + kFqdnFieldNumber = 1, + kBindAddressFieldNumber = 2, + kTlsCertFileFieldNumber = 3, + kTlsKeyFileFieldNumber = 4, + kSessionsFieldNumber = 5, }; - // string id = 1 [json_name = "id"]; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - + // string fqdn = 1 [json_name = "fqdn"]; + void clear_fqdn(); + const std::string& fqdn() const; + template + void set_fqdn(ArgT0&& arg0, ArgT... args); + std::string* mutable_fqdn(); + PROTOBUF_NODISCARD std::string* release_fqdn(); + void set_allocated_fqdn(std::string* fqdn); private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); - + const std::string& _internal_fqdn() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_fqdn(const std::string& value); + std::string* _internal_mutable_fqdn(); public: - // string tls_certificate = 2 [json_name = "tlsCertificate"]; - void clear_tls_certificate() ; - const std::string& tls_certificate() const; - template - void set_tls_certificate(Arg_&& arg, Args_... args); - std::string* mutable_tls_certificate(); - PROTOBUF_NODISCARD std::string* release_tls_certificate(); - void set_allocated_tls_certificate(std::string* value); + // string bind_address = 2 [json_name = "bindAddress"]; + void clear_bind_address(); + const std::string& bind_address() const; + template + void set_bind_address(ArgT0&& arg0, ArgT... args); + std::string* mutable_bind_address(); + PROTOBUF_NODISCARD std::string* release_bind_address(); + void set_allocated_bind_address(std::string* bind_address); private: - const std::string& _internal_tls_certificate() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_tls_certificate( - const std::string& value); - std::string* _internal_mutable_tls_certificate(); + const std::string& _internal_bind_address() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_bind_address(const std::string& value); + std::string* _internal_mutable_bind_address(); + public: + // string tls_cert_file = 3 [json_name = "tlsCertFile"]; + void clear_tls_cert_file(); + const std::string& tls_cert_file() const; + template + void set_tls_cert_file(ArgT0&& arg0, ArgT... args); + std::string* mutable_tls_cert_file(); + PROTOBUF_NODISCARD std::string* release_tls_cert_file(); + void set_allocated_tls_cert_file(std::string* tls_cert_file); + private: + const std::string& _internal_tls_cert_file() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_tls_cert_file(const std::string& value); + std::string* _internal_mutable_tls_cert_file(); public: - // string tls_private_key = 3 [json_name = "tlsPrivateKey"]; - void clear_tls_private_key() ; - const std::string& tls_private_key() const; - template - void set_tls_private_key(Arg_&& arg, Args_... args); - std::string* mutable_tls_private_key(); - PROTOBUF_NODISCARD std::string* release_tls_private_key(); - void set_allocated_tls_private_key(std::string* value); + // string tls_key_file = 4 [json_name = "tlsKeyFile"]; + void clear_tls_key_file(); + const std::string& tls_key_file() const; + template + void set_tls_key_file(ArgT0&& arg0, ArgT... args); + std::string* mutable_tls_key_file(); + PROTOBUF_NODISCARD std::string* release_tls_key_file(); + void set_allocated_tls_key_file(std::string* tls_key_file); private: - const std::string& _internal_tls_private_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_tls_private_key( - const std::string& value); - std::string* _internal_mutable_tls_private_key(); + const std::string& _internal_tls_key_file() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_tls_key_file(const std::string& value); + std::string* _internal_mutable_tls_key_file(); + public: + // .viam.app.v1.SessionsConfig sessions = 5 [json_name = "sessions"]; + bool has_sessions() const; + private: + bool _internal_has_sessions() const; public: - // @@protoc_insertion_point(class_scope:viam.app.v1.CertificateResponse) + void clear_sessions(); + const ::viam::app::v1::SessionsConfig& sessions() const; + PROTOBUF_NODISCARD ::viam::app::v1::SessionsConfig* release_sessions(); + ::viam::app::v1::SessionsConfig* mutable_sessions(); + void set_allocated_sessions(::viam::app::v1::SessionsConfig* sessions); + private: + const ::viam::app::v1::SessionsConfig& _internal_sessions() const; + ::viam::app::v1::SessionsConfig* _internal_mutable_sessions(); + public: + void unsafe_arena_set_allocated_sessions( + ::viam::app::v1::SessionsConfig* sessions); + ::viam::app::v1::SessionsConfig* unsafe_arena_release_sessions(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.NetworkConfig) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 0, - 72, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr id_; - ::google::protobuf::internal::ArenaStringPtr tls_certificate_; - ::google::protobuf::internal::ArenaStringPtr tls_private_key_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr fqdn_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr bind_address_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr tls_cert_file_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr tls_key_file_; + ::viam::app::v1::SessionsConfig* sessions_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class CertificateRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.CertificateRequest) */ { +class SessionsConfig final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.SessionsConfig) */ { public: - inline CertificateRequest() : CertificateRequest(nullptr) {} - ~CertificateRequest() override; - template - explicit PROTOBUF_CONSTEXPR CertificateRequest(::google::protobuf::internal::ConstantInitialized); + inline SessionsConfig() : SessionsConfig(nullptr) {} + ~SessionsConfig() override; + explicit PROTOBUF_CONSTEXPR SessionsConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline CertificateRequest(const CertificateRequest& from) - : CertificateRequest(nullptr, from) {} - CertificateRequest(CertificateRequest&& from) noexcept - : CertificateRequest() { + SessionsConfig(const SessionsConfig& from); + SessionsConfig(SessionsConfig&& from) noexcept + : SessionsConfig() { *this = ::std::move(from); } - inline CertificateRequest& operator=(const CertificateRequest& from) { + inline SessionsConfig& operator=(const SessionsConfig& from) { CopyFrom(from); return *this; } - inline CertificateRequest& operator=(CertificateRequest&& from) noexcept { + inline SessionsConfig& operator=(SessionsConfig&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3023,178 +2863,149 @@ class CertificateRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CertificateRequest& default_instance() { + static const SessionsConfig& default_instance() { return *internal_default_instance(); } - static inline const CertificateRequest* internal_default_instance() { - return reinterpret_cast( - &_CertificateRequest_default_instance_); + static inline const SessionsConfig* internal_default_instance() { + return reinterpret_cast( + &_SessionsConfig_default_instance_); } static constexpr int kIndexInFileMessages = - 32; + 11; - friend void swap(CertificateRequest& a, CertificateRequest& b) { + friend void swap(SessionsConfig& a, SessionsConfig& b) { a.Swap(&b); } - inline void Swap(CertificateRequest* other) { + inline void Swap(SessionsConfig* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CertificateRequest* other) { + void UnsafeArenaSwap(SessionsConfig* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CertificateRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const CertificateRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CertificateRequest& from) { - CertificateRequest::MergeImpl(*this, from); + SessionsConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SessionsConfig& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const SessionsConfig& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(CertificateRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(SessionsConfig* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.CertificateRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.SessionsConfig"; } protected: - explicit CertificateRequest(::google::protobuf::Arena* arena); - CertificateRequest(::google::protobuf::Arena* arena, const CertificateRequest& from); + explicit SessionsConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kIdFieldNumber = 1, + kHeartbeatWindowFieldNumber = 1, }; - // string id = 1 [json_name = "id"]; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - + // .google.protobuf.Duration heartbeat_window = 1 [json_name = "heartbeatWindow"]; + bool has_heartbeat_window() const; private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); - + bool _internal_has_heartbeat_window() const; public: - // @@protoc_insertion_point(class_scope:viam.app.v1.CertificateRequest) + void clear_heartbeat_window(); + const ::PROTOBUF_NAMESPACE_ID::Duration& heartbeat_window() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Duration* release_heartbeat_window(); + ::PROTOBUF_NAMESPACE_ID::Duration* mutable_heartbeat_window(); + void set_allocated_heartbeat_window(::PROTOBUF_NAMESPACE_ID::Duration* heartbeat_window); + private: + const ::PROTOBUF_NAMESPACE_ID::Duration& _internal_heartbeat_window() const; + ::PROTOBUF_NAMESPACE_ID::Duration* _internal_mutable_heartbeat_window(); + public: + void unsafe_arena_set_allocated_heartbeat_window( + ::PROTOBUF_NAMESPACE_ID::Duration* heartbeat_window); + ::PROTOBUF_NAMESPACE_ID::Duration* unsafe_arena_release_heartbeat_window(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.SessionsConfig) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 41, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::Duration* heartbeat_window_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class AppValidationStatus final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.AppValidationStatus) */ { +class AuthConfig final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.AuthConfig) */ { public: - inline AppValidationStatus() : AppValidationStatus(nullptr) {} - ~AppValidationStatus() override; - template - explicit PROTOBUF_CONSTEXPR AppValidationStatus(::google::protobuf::internal::ConstantInitialized); + inline AuthConfig() : AuthConfig(nullptr) {} + ~AuthConfig() override; + explicit PROTOBUF_CONSTEXPR AuthConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline AppValidationStatus(const AppValidationStatus& from) - : AppValidationStatus(nullptr, from) {} - AppValidationStatus(AppValidationStatus&& from) noexcept - : AppValidationStatus() { + AuthConfig(const AuthConfig& from); + AuthConfig(AuthConfig&& from) noexcept + : AuthConfig() { *this = ::std::move(from); } - inline AppValidationStatus& operator=(const AppValidationStatus& from) { + inline AuthConfig& operator=(const AuthConfig& from) { CopyFrom(from); return *this; } - inline AppValidationStatus& operator=(AppValidationStatus&& from) noexcept { + inline AuthConfig& operator=(AuthConfig&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3204,178 +3015,196 @@ class AppValidationStatus final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const AppValidationStatus& default_instance() { + static const AuthConfig& default_instance() { return *internal_default_instance(); } - static inline const AppValidationStatus* internal_default_instance() { - return reinterpret_cast( - &_AppValidationStatus_default_instance_); + static inline const AuthConfig* internal_default_instance() { + return reinterpret_cast( + &_AuthConfig_default_instance_); } static constexpr int kIndexInFileMessages = - 3; + 12; - friend void swap(AppValidationStatus& a, AppValidationStatus& b) { + friend void swap(AuthConfig& a, AuthConfig& b) { a.Swap(&b); } - inline void Swap(AppValidationStatus* other) { + inline void Swap(AuthConfig* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(AppValidationStatus* other) { + void UnsafeArenaSwap(AuthConfig* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - AppValidationStatus* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const AppValidationStatus& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const AppValidationStatus& from) { - AppValidationStatus::MergeImpl(*this, from); + AuthConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const AuthConfig& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const AuthConfig& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(AppValidationStatus* other); + void SetCachedSize(int size) const final; + void InternalSwap(AuthConfig* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.AppValidationStatus"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.AuthConfig"; } protected: - explicit AppValidationStatus(::google::protobuf::Arena* arena); - AppValidationStatus(::google::protobuf::Arena* arena, const AppValidationStatus& from); + explicit AuthConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kErrorFieldNumber = 1, + kHandlersFieldNumber = 1, + kTlsAuthEntitiesFieldNumber = 2, + kExternalAuthConfigFieldNumber = 3, }; - // string error = 1 [json_name = "error"]; - void clear_error() ; - const std::string& error() const; - template - void set_error(Arg_&& arg, Args_... args); - std::string* mutable_error(); - PROTOBUF_NODISCARD std::string* release_error(); - void set_allocated_error(std::string* value); + // repeated .viam.app.v1.AuthHandlerConfig handlers = 1 [json_name = "handlers"]; + int handlers_size() const; + private: + int _internal_handlers_size() const; + public: + void clear_handlers(); + ::viam::app::v1::AuthHandlerConfig* mutable_handlers(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::AuthHandlerConfig >* + mutable_handlers(); + private: + const ::viam::app::v1::AuthHandlerConfig& _internal_handlers(int index) const; + ::viam::app::v1::AuthHandlerConfig* _internal_add_handlers(); + public: + const ::viam::app::v1::AuthHandlerConfig& handlers(int index) const; + ::viam::app::v1::AuthHandlerConfig* add_handlers(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::AuthHandlerConfig >& + handlers() const; + // repeated string tls_auth_entities = 2 [json_name = "tlsAuthEntities"]; + int tls_auth_entities_size() const; private: - const std::string& _internal_error() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_error( - const std::string& value); - std::string* _internal_mutable_error(); + int _internal_tls_auth_entities_size() const; + public: + void clear_tls_auth_entities(); + const std::string& tls_auth_entities(int index) const; + std::string* mutable_tls_auth_entities(int index); + void set_tls_auth_entities(int index, const std::string& value); + void set_tls_auth_entities(int index, std::string&& value); + void set_tls_auth_entities(int index, const char* value); + void set_tls_auth_entities(int index, const char* value, size_t size); + std::string* add_tls_auth_entities(); + void add_tls_auth_entities(const std::string& value); + void add_tls_auth_entities(std::string&& value); + void add_tls_auth_entities(const char* value); + void add_tls_auth_entities(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& tls_auth_entities() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_tls_auth_entities(); + private: + const std::string& _internal_tls_auth_entities(int index) const; + std::string* _internal_add_tls_auth_entities(); + public: + // optional .viam.app.v1.ExternalAuthConfig external_auth_config = 3 [json_name = "externalAuthConfig"]; + bool has_external_auth_config() const; + private: + bool _internal_has_external_auth_config() const; public: - // @@protoc_insertion_point(class_scope:viam.app.v1.AppValidationStatus) + void clear_external_auth_config(); + const ::viam::app::v1::ExternalAuthConfig& external_auth_config() const; + PROTOBUF_NODISCARD ::viam::app::v1::ExternalAuthConfig* release_external_auth_config(); + ::viam::app::v1::ExternalAuthConfig* mutable_external_auth_config(); + void set_allocated_external_auth_config(::viam::app::v1::ExternalAuthConfig* external_auth_config); + private: + const ::viam::app::v1::ExternalAuthConfig& _internal_external_auth_config() const; + ::viam::app::v1::ExternalAuthConfig* _internal_mutable_external_auth_config(); + public: + void unsafe_arena_set_allocated_external_auth_config( + ::viam::app::v1::ExternalAuthConfig* external_auth_config); + ::viam::app::v1::ExternalAuthConfig* unsafe_arena_release_external_auth_config(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.AuthConfig) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 45, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr error_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::AuthHandlerConfig > handlers_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField tls_auth_entities_; + ::viam::app::v1::ExternalAuthConfig* external_auth_config_; friend struct ::TableStruct_app_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class AgentInfo final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.AgentInfo) */ { +class JWKSFile final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.JWKSFile) */ { public: - inline AgentInfo() : AgentInfo(nullptr) {} - ~AgentInfo() override; - template - explicit PROTOBUF_CONSTEXPR AgentInfo(::google::protobuf::internal::ConstantInitialized); + inline JWKSFile() : JWKSFile(nullptr) {} + ~JWKSFile() override; + explicit PROTOBUF_CONSTEXPR JWKSFile(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline AgentInfo(const AgentInfo& from) - : AgentInfo(nullptr, from) {} - AgentInfo(AgentInfo&& from) noexcept - : AgentInfo() { + JWKSFile(const JWKSFile& from); + JWKSFile(JWKSFile&& from) noexcept + : JWKSFile() { *this = ::std::move(from); } - inline AgentInfo& operator=(const AgentInfo& from) { + inline JWKSFile& operator=(const JWKSFile& from) { CopyFrom(from); return *this; } - inline AgentInfo& operator=(AgentInfo&& from) noexcept { + inline JWKSFile& operator=(JWKSFile&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3385,312 +3214,301 @@ class AgentInfo final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const AgentInfo& default_instance() { + static const JWKSFile& default_instance() { return *internal_default_instance(); } - static inline const AgentInfo* internal_default_instance() { - return reinterpret_cast( - &_AgentInfo_default_instance_); + static inline const JWKSFile* internal_default_instance() { + return reinterpret_cast( + &_JWKSFile_default_instance_); } static constexpr int kIndexInFileMessages = - 29; + 13; - friend void swap(AgentInfo& a, AgentInfo& b) { + friend void swap(JWKSFile& a, JWKSFile& b) { a.Swap(&b); } - inline void Swap(AgentInfo* other) { + inline void Swap(JWKSFile* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(AgentInfo* other) { + void UnsafeArenaSwap(JWKSFile* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - AgentInfo* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const AgentInfo& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const AgentInfo& from) { - AgentInfo::MergeImpl(*this, from); + JWKSFile* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const JWKSFile& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const JWKSFile& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(AgentInfo* other); + void SetCachedSize(int size) const final; + void InternalSwap(JWKSFile* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.AgentInfo"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.JWKSFile"; } protected: - explicit AgentInfo(::google::protobuf::Arena* arena); - AgentInfo(::google::protobuf::Arena* arena, const AgentInfo& from); + explicit JWKSFile(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kIpsFieldNumber = 3, - kPlatformTagsFieldNumber = 7, - kHostFieldNumber = 1, - kOsFieldNumber = 2, - kVersionFieldNumber = 4, - kGitRevisionFieldNumber = 5, - kPlatformFieldNumber = 6, + kJsonFieldNumber = 1, }; - // repeated string ips = 3 [json_name = "ips"]; - int ips_size() const; + // .google.protobuf.Struct json = 1 [json_name = "json"]; + bool has_json() const; private: - int _internal_ips_size() const; + bool _internal_has_json() const; + public: + void clear_json(); + const ::PROTOBUF_NAMESPACE_ID::Struct& json() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_json(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_json(); + void set_allocated_json(::PROTOBUF_NAMESPACE_ID::Struct* json); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_json() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_json(); + public: + void unsafe_arena_set_allocated_json( + ::PROTOBUF_NAMESPACE_ID::Struct* json); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_json(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.JWKSFile) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::Struct* json_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_app_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class ExternalAuthConfig final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ExternalAuthConfig) */ { + public: + inline ExternalAuthConfig() : ExternalAuthConfig(nullptr) {} + ~ExternalAuthConfig() override; + explicit PROTOBUF_CONSTEXPR ExternalAuthConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ExternalAuthConfig(const ExternalAuthConfig& from); + ExternalAuthConfig(ExternalAuthConfig&& from) noexcept + : ExternalAuthConfig() { + *this = ::std::move(from); + } + + inline ExternalAuthConfig& operator=(const ExternalAuthConfig& from) { + CopyFrom(from); + return *this; + } + inline ExternalAuthConfig& operator=(ExternalAuthConfig&& 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 ExternalAuthConfig& default_instance() { + return *internal_default_instance(); + } + static inline const ExternalAuthConfig* internal_default_instance() { + return reinterpret_cast( + &_ExternalAuthConfig_default_instance_); + } + static constexpr int kIndexInFileMessages = + 14; + + friend void swap(ExternalAuthConfig& a, ExternalAuthConfig& b) { + a.Swap(&b); + } + inline void Swap(ExternalAuthConfig* 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(ExternalAuthConfig* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } - public: - void clear_ips() ; - const std::string& ips(int index) const; - std::string* mutable_ips(int index); - void set_ips(int index, const std::string& value); - void set_ips(int index, std::string&& value); - void set_ips(int index, const char* value); - void set_ips(int index, const char* value, std::size_t size); - void set_ips(int index, absl::string_view value); - std::string* add_ips(); - void add_ips(const std::string& value); - void add_ips(std::string&& value); - void add_ips(const char* value); - void add_ips(const char* value, std::size_t size); - void add_ips(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& ips() const; - ::google::protobuf::RepeatedPtrField* mutable_ips(); + // implements Message ---------------------------------------------- + ExternalAuthConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ExternalAuthConfig& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ExternalAuthConfig& from); private: - const ::google::protobuf::RepeatedPtrField& _internal_ips() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_ips(); - + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: - // repeated string platform_tags = 7 [json_name = "platformTags"]; - int platform_tags_size() const; - private: - int _internal_platform_tags_size() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - public: - void clear_platform_tags() ; - const std::string& platform_tags(int index) const; - std::string* mutable_platform_tags(int index); - void set_platform_tags(int index, const std::string& value); - void set_platform_tags(int index, std::string&& value); - void set_platform_tags(int index, const char* value); - void set_platform_tags(int index, const char* value, std::size_t size); - void set_platform_tags(int index, absl::string_view value); - std::string* add_platform_tags(); - void add_platform_tags(const std::string& value); - void add_platform_tags(std::string&& value); - void add_platform_tags(const char* value); - void add_platform_tags(const char* value, std::size_t size); - void add_platform_tags(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& platform_tags() const; - ::google::protobuf::RepeatedPtrField* mutable_platform_tags(); + 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: - const ::google::protobuf::RepeatedPtrField& _internal_platform_tags() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_platform_tags(); - - public: - // string host = 1 [json_name = "host"]; - void clear_host() ; - const std::string& host() const; - template - void set_host(Arg_&& arg, Args_... args); - std::string* mutable_host(); - PROTOBUF_NODISCARD std::string* release_host(); - void set_allocated_host(std::string* value); + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ExternalAuthConfig* other); private: - const std::string& _internal_host() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_host( - const std::string& value); - std::string* _internal_mutable_host(); - + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.ExternalAuthConfig"; + } + protected: + explicit ExternalAuthConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - // string os = 2 [json_name = "os"]; - void clear_os() ; - const std::string& os() const; - template - void set_os(Arg_&& arg, Args_... args); - std::string* mutable_os(); - PROTOBUF_NODISCARD std::string* release_os(); - void set_allocated_os(std::string* value); - private: - const std::string& _internal_os() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_os( - const std::string& value); - std::string* _internal_mutable_os(); + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: - // string version = 4 [json_name = "version"]; - void clear_version() ; - const std::string& version() const; - template - void set_version(Arg_&& arg, Args_... args); - std::string* mutable_version(); - PROTOBUF_NODISCARD std::string* release_version(); - void set_allocated_version(std::string* value); + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - const std::string& _internal_version() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_version( - const std::string& value); - std::string* _internal_mutable_version(); + // nested types ---------------------------------------------------- - public: - // string git_revision = 5 [json_name = "gitRevision"]; - void clear_git_revision() ; - const std::string& git_revision() const; - template - void set_git_revision(Arg_&& arg, Args_... args); - std::string* mutable_git_revision(); - PROTOBUF_NODISCARD std::string* release_git_revision(); - void set_allocated_git_revision(std::string* value); + // accessors ------------------------------------------------------- + enum : int { + kJwksFieldNumber = 1, + }; + // .viam.app.v1.JWKSFile jwks = 1 [json_name = "jwks"]; + bool has_jwks() const; private: - const std::string& _internal_git_revision() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_git_revision( - const std::string& value); - std::string* _internal_mutable_git_revision(); - + bool _internal_has_jwks() const; public: - // optional string platform = 6 [json_name = "platform"]; - bool has_platform() const; - void clear_platform() ; - const std::string& platform() const; - template - void set_platform(Arg_&& arg, Args_... args); - std::string* mutable_platform(); - PROTOBUF_NODISCARD std::string* release_platform(); - void set_allocated_platform(std::string* value); - + void clear_jwks(); + const ::viam::app::v1::JWKSFile& jwks() const; + PROTOBUF_NODISCARD ::viam::app::v1::JWKSFile* release_jwks(); + ::viam::app::v1::JWKSFile* mutable_jwks(); + void set_allocated_jwks(::viam::app::v1::JWKSFile* jwks); private: - const std::string& _internal_platform() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_platform( - const std::string& value); - std::string* _internal_mutable_platform(); - + const ::viam::app::v1::JWKSFile& _internal_jwks() const; + ::viam::app::v1::JWKSFile* _internal_mutable_jwks(); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.AgentInfo) + void unsafe_arena_set_allocated_jwks( + ::viam::app::v1::JWKSFile* jwks); + ::viam::app::v1::JWKSFile* unsafe_arena_release_jwks(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.ExternalAuthConfig) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 7, 0, - 79, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField ips_; - ::google::protobuf::RepeatedPtrField platform_tags_; - ::google::protobuf::internal::ArenaStringPtr host_; - ::google::protobuf::internal::ArenaStringPtr os_; - ::google::protobuf::internal::ArenaStringPtr version_; - ::google::protobuf::internal::ArenaStringPtr git_revision_; - ::google::protobuf::internal::ArenaStringPtr platform_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::viam::app::v1::JWKSFile* jwks_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SessionsConfig final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.SessionsConfig) */ { +class AuthHandlerConfig final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.AuthHandlerConfig) */ { public: - inline SessionsConfig() : SessionsConfig(nullptr) {} - ~SessionsConfig() override; - template - explicit PROTOBUF_CONSTEXPR SessionsConfig(::google::protobuf::internal::ConstantInitialized); + inline AuthHandlerConfig() : AuthHandlerConfig(nullptr) {} + ~AuthHandlerConfig() override; + explicit PROTOBUF_CONSTEXPR AuthHandlerConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline SessionsConfig(const SessionsConfig& from) - : SessionsConfig(nullptr, from) {} - SessionsConfig(SessionsConfig&& from) noexcept - : SessionsConfig() { + AuthHandlerConfig(const AuthHandlerConfig& from); + AuthHandlerConfig(AuthHandlerConfig&& from) noexcept + : AuthHandlerConfig() { *this = ::std::move(from); } - inline SessionsConfig& operator=(const SessionsConfig& from) { + inline AuthHandlerConfig& operator=(const AuthHandlerConfig& from) { CopyFrom(from); return *this; } - inline SessionsConfig& operator=(SessionsConfig&& from) noexcept { + inline AuthHandlerConfig& operator=(AuthHandlerConfig&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3700,178 +3518,160 @@ class SessionsConfig final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SessionsConfig& default_instance() { + static const AuthHandlerConfig& default_instance() { return *internal_default_instance(); } - static inline const SessionsConfig* internal_default_instance() { - return reinterpret_cast( - &_SessionsConfig_default_instance_); + static inline const AuthHandlerConfig* internal_default_instance() { + return reinterpret_cast( + &_AuthHandlerConfig_default_instance_); } static constexpr int kIndexInFileMessages = - 11; + 15; - friend void swap(SessionsConfig& a, SessionsConfig& b) { + friend void swap(AuthHandlerConfig& a, AuthHandlerConfig& b) { a.Swap(&b); } - inline void Swap(SessionsConfig* other) { + inline void Swap(AuthHandlerConfig* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SessionsConfig* other) { + void UnsafeArenaSwap(AuthHandlerConfig* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SessionsConfig* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SessionsConfig& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SessionsConfig& from) { - SessionsConfig::MergeImpl(*this, from); + AuthHandlerConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const AuthHandlerConfig& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const AuthHandlerConfig& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(SessionsConfig* other); + void SetCachedSize(int size) const final; + void InternalSwap(AuthHandlerConfig* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.SessionsConfig"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.AuthHandlerConfig"; } protected: - explicit SessionsConfig(::google::protobuf::Arena* arena); - SessionsConfig(::google::protobuf::Arena* arena, const SessionsConfig& from); + explicit AuthHandlerConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kHeartbeatWindowFieldNumber = 1, + kConfigFieldNumber = 5, + kTypeFieldNumber = 1, }; - // .google.protobuf.Duration heartbeat_window = 1 [json_name = "heartbeatWindow"]; - bool has_heartbeat_window() const; - void clear_heartbeat_window() ; - const ::google::protobuf::Duration& heartbeat_window() const; - PROTOBUF_NODISCARD ::google::protobuf::Duration* release_heartbeat_window(); - ::google::protobuf::Duration* mutable_heartbeat_window(); - void set_allocated_heartbeat_window(::google::protobuf::Duration* value); - void unsafe_arena_set_allocated_heartbeat_window(::google::protobuf::Duration* value); - ::google::protobuf::Duration* unsafe_arena_release_heartbeat_window(); - + // .google.protobuf.Struct config = 5 [json_name = "config"]; + bool has_config() const; + private: + bool _internal_has_config() const; + public: + void clear_config(); + const ::PROTOBUF_NAMESPACE_ID::Struct& config() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_config(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_config(); + void set_allocated_config(::PROTOBUF_NAMESPACE_ID::Struct* config); private: - const ::google::protobuf::Duration& _internal_heartbeat_window() const; - ::google::protobuf::Duration* _internal_mutable_heartbeat_window(); + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_config() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_config(); + public: + void unsafe_arena_set_allocated_config( + ::PROTOBUF_NAMESPACE_ID::Struct* config); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_config(); + // .viam.app.v1.CredentialsType type = 1 [json_name = "type"]; + void clear_type(); + ::viam::app::v1::CredentialsType type() const; + void set_type(::viam::app::v1::CredentialsType value); + private: + ::viam::app::v1::CredentialsType _internal_type() const; + void _internal_set_type(::viam::app::v1::CredentialsType value); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.SessionsConfig) + + // @@protoc_insertion_point(class_scope:viam.app.v1.AuthHandlerConfig) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::Duration* heartbeat_window_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::Struct* config_; + int type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ResourceLevelServiceConfig final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ResourceLevelServiceConfig) */ { +class Frame final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.Frame) */ { public: - inline ResourceLevelServiceConfig() : ResourceLevelServiceConfig(nullptr) {} - ~ResourceLevelServiceConfig() override; - template - explicit PROTOBUF_CONSTEXPR ResourceLevelServiceConfig(::google::protobuf::internal::ConstantInitialized); + inline Frame() : Frame(nullptr) {} + ~Frame() override; + explicit PROTOBUF_CONSTEXPR Frame(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ResourceLevelServiceConfig(const ResourceLevelServiceConfig& from) - : ResourceLevelServiceConfig(nullptr, from) {} - ResourceLevelServiceConfig(ResourceLevelServiceConfig&& from) noexcept - : ResourceLevelServiceConfig() { + Frame(const Frame& from); + Frame(Frame&& from) noexcept + : Frame() { *this = ::std::move(from); } - inline ResourceLevelServiceConfig& operator=(const ResourceLevelServiceConfig& from) { + inline Frame& operator=(const Frame& from) { CopyFrom(from); return *this; } - inline ResourceLevelServiceConfig& operator=(ResourceLevelServiceConfig&& from) noexcept { + inline Frame& operator=(Frame&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3881,196 +3681,205 @@ class ResourceLevelServiceConfig final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ResourceLevelServiceConfig& default_instance() { + static const Frame& default_instance() { return *internal_default_instance(); } - static inline const ResourceLevelServiceConfig* internal_default_instance() { - return reinterpret_cast( - &_ResourceLevelServiceConfig_default_instance_); + static inline const Frame* internal_default_instance() { + return reinterpret_cast( + &_Frame_default_instance_); } static constexpr int kIndexInFileMessages = - 6; + 16; - friend void swap(ResourceLevelServiceConfig& a, ResourceLevelServiceConfig& b) { + friend void swap(Frame& a, Frame& b) { a.Swap(&b); } - inline void Swap(ResourceLevelServiceConfig* other) { + inline void Swap(Frame* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ResourceLevelServiceConfig* other) { + void UnsafeArenaSwap(Frame* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ResourceLevelServiceConfig* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ResourceLevelServiceConfig& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ResourceLevelServiceConfig& from) { - ResourceLevelServiceConfig::MergeImpl(*this, from); + Frame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Frame& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Frame& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ResourceLevelServiceConfig* other); + void SetCachedSize(int size) const final; + void InternalSwap(Frame* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.ResourceLevelServiceConfig"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.Frame"; } protected: - explicit ResourceLevelServiceConfig(::google::protobuf::Arena* arena); - ResourceLevelServiceConfig(::google::protobuf::Arena* arena, const ResourceLevelServiceConfig& from); + explicit Frame(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kTypeFieldNumber = 1, - kAttributesFieldNumber = 2, + kParentFieldNumber = 1, + kTranslationFieldNumber = 2, + kOrientationFieldNumber = 3, + kGeometryFieldNumber = 4, }; - // string type = 1 [json_name = "type"]; - void clear_type() ; - const std::string& type() const; - template - void set_type(Arg_&& arg, Args_... args); - std::string* mutable_type(); - PROTOBUF_NODISCARD std::string* release_type(); - void set_allocated_type(std::string* value); + // string parent = 1 [json_name = "parent"]; + void clear_parent(); + const std::string& parent() const; + template + void set_parent(ArgT0&& arg0, ArgT... args); + std::string* mutable_parent(); + PROTOBUF_NODISCARD std::string* release_parent(); + void set_allocated_parent(std::string* parent); + private: + const std::string& _internal_parent() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_parent(const std::string& value); + std::string* _internal_mutable_parent(); + public: + // .viam.app.v1.Translation translation = 2 [json_name = "translation"]; + bool has_translation() const; private: - const std::string& _internal_type() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_type( - const std::string& value); - std::string* _internal_mutable_type(); + bool _internal_has_translation() const; + public: + void clear_translation(); + const ::viam::app::v1::Translation& translation() const; + PROTOBUF_NODISCARD ::viam::app::v1::Translation* release_translation(); + ::viam::app::v1::Translation* mutable_translation(); + void set_allocated_translation(::viam::app::v1::Translation* translation); + private: + const ::viam::app::v1::Translation& _internal_translation() const; + ::viam::app::v1::Translation* _internal_mutable_translation(); + public: + void unsafe_arena_set_allocated_translation( + ::viam::app::v1::Translation* translation); + ::viam::app::v1::Translation* unsafe_arena_release_translation(); + // .viam.app.v1.Orientation orientation = 3 [json_name = "orientation"]; + bool has_orientation() const; + private: + bool _internal_has_orientation() const; public: - // .google.protobuf.Struct attributes = 2 [json_name = "attributes"]; - bool has_attributes() const; - void clear_attributes() ; - const ::google::protobuf::Struct& attributes() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_attributes(); - ::google::protobuf::Struct* mutable_attributes(); - void set_allocated_attributes(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_attributes(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_attributes(); + void clear_orientation(); + const ::viam::app::v1::Orientation& orientation() const; + PROTOBUF_NODISCARD ::viam::app::v1::Orientation* release_orientation(); + ::viam::app::v1::Orientation* mutable_orientation(); + void set_allocated_orientation(::viam::app::v1::Orientation* orientation); + private: + const ::viam::app::v1::Orientation& _internal_orientation() const; + ::viam::app::v1::Orientation* _internal_mutable_orientation(); + public: + void unsafe_arena_set_allocated_orientation( + ::viam::app::v1::Orientation* orientation); + ::viam::app::v1::Orientation* unsafe_arena_release_orientation(); + // .viam.common.v1.Geometry geometry = 4 [json_name = "geometry"]; + bool has_geometry() const; private: - const ::google::protobuf::Struct& _internal_attributes() const; - ::google::protobuf::Struct* _internal_mutable_attributes(); - + bool _internal_has_geometry() const; public: - // @@protoc_insertion_point(class_scope:viam.app.v1.ResourceLevelServiceConfig) + void clear_geometry(); + const ::viam::common::v1::Geometry& geometry() const; + PROTOBUF_NODISCARD ::viam::common::v1::Geometry* release_geometry(); + ::viam::common::v1::Geometry* mutable_geometry(); + void set_allocated_geometry(::viam::common::v1::Geometry* geometry); + private: + const ::viam::common::v1::Geometry& _internal_geometry() const; + ::viam::common::v1::Geometry* _internal_mutable_geometry(); + public: + void unsafe_arena_set_allocated_geometry( + ::viam::common::v1::Geometry* geometry); + ::viam::common::v1::Geometry* unsafe_arena_release_geometry(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.Frame) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 51, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr type_; - ::google::protobuf::Struct* attributes_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr parent_; + ::viam::app::v1::Translation* translation_; + ::viam::app::v1::Orientation* orientation_; + ::viam::common::v1::Geometry* geometry_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class RemoteAuth final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.RemoteAuth) */ { +class LogConfiguration final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.LogConfiguration) */ { public: - inline RemoteAuth() : RemoteAuth(nullptr) {} - ~RemoteAuth() override; - template - explicit PROTOBUF_CONSTEXPR RemoteAuth(::google::protobuf::internal::ConstantInitialized); + inline LogConfiguration() : LogConfiguration(nullptr) {} + ~LogConfiguration() override; + explicit PROTOBUF_CONSTEXPR LogConfiguration(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline RemoteAuth(const RemoteAuth& from) - : RemoteAuth(nullptr, from) {} - RemoteAuth(RemoteAuth&& from) noexcept - : RemoteAuth() { + LogConfiguration(const LogConfiguration& from); + LogConfiguration(LogConfiguration&& from) noexcept + : LogConfiguration() { *this = ::std::move(from); } - inline RemoteAuth& operator=(const RemoteAuth& from) { + inline LogConfiguration& operator=(const LogConfiguration& from) { CopyFrom(from); return *this; } - inline RemoteAuth& operator=(RemoteAuth&& from) noexcept { + inline LogConfiguration& operator=(LogConfiguration&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -4080,198 +3889,145 @@ class RemoteAuth final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const RemoteAuth& default_instance() { + static const LogConfiguration& default_instance() { return *internal_default_instance(); } - static inline const RemoteAuth* internal_default_instance() { - return reinterpret_cast( - &_RemoteAuth_default_instance_); + static inline const LogConfiguration* internal_default_instance() { + return reinterpret_cast( + &_LogConfiguration_default_instance_); } static constexpr int kIndexInFileMessages = - 28; + 17; - friend void swap(RemoteAuth& a, RemoteAuth& b) { + friend void swap(LogConfiguration& a, LogConfiguration& b) { a.Swap(&b); } - inline void Swap(RemoteAuth* other) { + inline void Swap(LogConfiguration* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RemoteAuth* other) { + void UnsafeArenaSwap(LogConfiguration* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - RemoteAuth* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const RemoteAuth& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const RemoteAuth& from) { - RemoteAuth::MergeImpl(*this, from); + LogConfiguration* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const LogConfiguration& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const LogConfiguration& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(RemoteAuth* other); + void SetCachedSize(int size) const final; + void InternalSwap(LogConfiguration* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.RemoteAuth"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.LogConfiguration"; } protected: - explicit RemoteAuth(::google::protobuf::Arena* arena); - RemoteAuth(::google::protobuf::Arena* arena, const RemoteAuth& from); + explicit LogConfiguration(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- - using Credentials = RemoteAuth_Credentials; - // accessors ------------------------------------------------------- enum : int { - kEntityFieldNumber = 2, - kCredentialsFieldNumber = 1, + kLevelFieldNumber = 1, }; - // string entity = 2 [json_name = "entity"]; - void clear_entity() ; - const std::string& entity() const; - template - void set_entity(Arg_&& arg, Args_... args); - std::string* mutable_entity(); - PROTOBUF_NODISCARD std::string* release_entity(); - void set_allocated_entity(std::string* value); - + // string level = 1 [json_name = "level"]; + void clear_level(); + const std::string& level() const; + template + void set_level(ArgT0&& arg0, ArgT... args); + std::string* mutable_level(); + PROTOBUF_NODISCARD std::string* release_level(); + void set_allocated_level(std::string* level); private: - const std::string& _internal_entity() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_entity( - const std::string& value); - std::string* _internal_mutable_entity(); - + const std::string& _internal_level() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_level(const std::string& value); + std::string* _internal_mutable_level(); public: - // .viam.app.v1.RemoteAuth.Credentials credentials = 1 [json_name = "credentials"]; - bool has_credentials() const; - void clear_credentials() ; - const ::viam::app::v1::RemoteAuth_Credentials& credentials() const; - PROTOBUF_NODISCARD ::viam::app::v1::RemoteAuth_Credentials* release_credentials(); - ::viam::app::v1::RemoteAuth_Credentials* mutable_credentials(); - void set_allocated_credentials(::viam::app::v1::RemoteAuth_Credentials* value); - void unsafe_arena_set_allocated_credentials(::viam::app::v1::RemoteAuth_Credentials* value); - ::viam::app::v1::RemoteAuth_Credentials* unsafe_arena_release_credentials(); - - private: - const ::viam::app::v1::RemoteAuth_Credentials& _internal_credentials() const; - ::viam::app::v1::RemoteAuth_Credentials* _internal_mutable_credentials(); - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.RemoteAuth) + // @@protoc_insertion_point(class_scope:viam.app.v1.LogConfiguration) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 37, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr entity_; - ::viam::app::v1::RemoteAuth_Credentials* credentials_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr level_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ProcessConfig final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ProcessConfig) */ { +class Translation final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.Translation) */ { public: - inline ProcessConfig() : ProcessConfig(nullptr) {} - ~ProcessConfig() override; - template - explicit PROTOBUF_CONSTEXPR ProcessConfig(::google::protobuf::internal::ConstantInitialized); + inline Translation() : Translation(nullptr) {} + ~Translation() override; + explicit PROTOBUF_CONSTEXPR Translation(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ProcessConfig(const ProcessConfig& from) - : ProcessConfig(nullptr, from) {} - ProcessConfig(ProcessConfig&& from) noexcept - : ProcessConfig() { + Translation(const Translation& from); + Translation(Translation&& from) noexcept + : Translation() { *this = ::std::move(from); } - inline ProcessConfig& operator=(const ProcessConfig& from) { + inline Translation& operator=(const Translation& from) { CopyFrom(from); return *this; } - inline ProcessConfig& operator=(ProcessConfig&& from) noexcept { + inline Translation& operator=(Translation&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -4281,337 +4037,161 @@ class ProcessConfig final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ProcessConfig& default_instance() { + static const Translation& default_instance() { return *internal_default_instance(); } - static inline const ProcessConfig* internal_default_instance() { - return reinterpret_cast( - &_ProcessConfig_default_instance_); + static inline const Translation* internal_default_instance() { + return reinterpret_cast( + &_Translation_default_instance_); } static constexpr int kIndexInFileMessages = - 8; + 18; - friend void swap(ProcessConfig& a, ProcessConfig& b) { + friend void swap(Translation& a, Translation& b) { a.Swap(&b); } - inline void Swap(ProcessConfig* other) { + inline void Swap(Translation* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ProcessConfig* other) { + void UnsafeArenaSwap(Translation* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ProcessConfig* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ProcessConfig& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ProcessConfig& from) { - ProcessConfig::MergeImpl(*this, from); + Translation* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Translation& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Translation& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ProcessConfig* other); + void SetCachedSize(int size) const final; + void InternalSwap(Translation* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.ProcessConfig"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.Translation"; } protected: - explicit ProcessConfig(::google::protobuf::Arena* arena); - ProcessConfig(::google::protobuf::Arena* arena, const ProcessConfig& from); + explicit Translation(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- - // accessors ------------------------------------------------------- enum : int { - kArgsFieldNumber = 3, - kEnvFieldNumber = 9, - kIdFieldNumber = 1, - kNameFieldNumber = 2, - kCwdFieldNumber = 4, - kUsernameFieldNumber = 10, - kStopTimeoutFieldNumber = 8, - kOneShotFieldNumber = 5, - kLogFieldNumber = 6, - kStopSignalFieldNumber = 7, + kXFieldNumber = 1, + kYFieldNumber = 2, + kZFieldNumber = 3, }; - // repeated string args = 3 [json_name = "args"]; - int args_size() const; - private: - int _internal_args_size() const; - - public: - void clear_args() ; - const std::string& args(int index) const; - std::string* mutable_args(int index); - void set_args(int index, const std::string& value); - void set_args(int index, std::string&& value); - void set_args(int index, const char* value); - void set_args(int index, const char* value, std::size_t size); - void set_args(int index, absl::string_view value); - std::string* add_args(); - void add_args(const std::string& value); - void add_args(std::string&& value); - void add_args(const char* value); - void add_args(const char* value, std::size_t size); - void add_args(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& args() const; - ::google::protobuf::RepeatedPtrField* mutable_args(); - - private: - const ::google::protobuf::RepeatedPtrField& _internal_args() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_args(); - - public: - // map env = 9 [json_name = "env"]; - int env_size() const; - private: - int _internal_env_size() const; - - public: - void clear_env() ; - const ::google::protobuf::Map& env() const; - ::google::protobuf::Map* mutable_env(); - - private: - const ::google::protobuf::Map& _internal_env() const; - ::google::protobuf::Map* _internal_mutable_env(); - - public: - // string id = 1 [json_name = "id"]; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - - private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); - - public: - // string name = 2 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - - public: - // string cwd = 4 [json_name = "cwd"]; - void clear_cwd() ; - const std::string& cwd() const; - template - void set_cwd(Arg_&& arg, Args_... args); - std::string* mutable_cwd(); - PROTOBUF_NODISCARD std::string* release_cwd(); - void set_allocated_cwd(std::string* value); - - private: - const std::string& _internal_cwd() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_cwd( - const std::string& value); - std::string* _internal_mutable_cwd(); - - public: - // string username = 10 [json_name = "username"]; - void clear_username() ; - const std::string& username() const; - template - void set_username(Arg_&& arg, Args_... args); - std::string* mutable_username(); - PROTOBUF_NODISCARD std::string* release_username(); - void set_allocated_username(std::string* value); - - private: - const std::string& _internal_username() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_username( - const std::string& value); - std::string* _internal_mutable_username(); - - public: - // .google.protobuf.Duration stop_timeout = 8 [json_name = "stopTimeout"]; - bool has_stop_timeout() const; - void clear_stop_timeout() ; - const ::google::protobuf::Duration& stop_timeout() const; - PROTOBUF_NODISCARD ::google::protobuf::Duration* release_stop_timeout(); - ::google::protobuf::Duration* mutable_stop_timeout(); - void set_allocated_stop_timeout(::google::protobuf::Duration* value); - void unsafe_arena_set_allocated_stop_timeout(::google::protobuf::Duration* value); - ::google::protobuf::Duration* unsafe_arena_release_stop_timeout(); - + // double x = 1 [json_name = "x"]; + void clear_x(); + double x() const; + void set_x(double value); private: - const ::google::protobuf::Duration& _internal_stop_timeout() const; - ::google::protobuf::Duration* _internal_mutable_stop_timeout(); - + double _internal_x() const; + void _internal_set_x(double value); public: - // bool one_shot = 5 [json_name = "oneShot"]; - void clear_one_shot() ; - bool one_shot() const; - void set_one_shot(bool value); + // double y = 2 [json_name = "y"]; + void clear_y(); + double y() const; + void set_y(double value); private: - bool _internal_one_shot() const; - void _internal_set_one_shot(bool value); - + double _internal_y() const; + void _internal_set_y(double value); public: - // bool log = 6 [json_name = "log"]; - void clear_log() ; - bool log() const; - void set_log(bool value); + // double z = 3 [json_name = "z"]; + void clear_z(); + double z() const; + void set_z(double value); private: - bool _internal_log() const; - void _internal_set_log(bool value); - + double _internal_z() const; + void _internal_set_z(double value); public: - // int32 stop_signal = 7 [json_name = "stopSignal"]; - void clear_stop_signal() ; - ::int32_t stop_signal() const; - void set_stop_signal(::int32_t value); - - private: - ::int32_t _internal_stop_signal() const; - void _internal_set_stop_signal(::int32_t value); - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.ProcessConfig) + // @@protoc_insertion_point(class_scope:viam.app.v1.Translation) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 4, 10, 2, - 66, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField args_; - ::google::protobuf::internal::MapField - env_; - ::google::protobuf::internal::ArenaStringPtr id_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr cwd_; - ::google::protobuf::internal::ArenaStringPtr username_; - ::google::protobuf::Duration* stop_timeout_; - bool one_shot_; - bool log_; - ::int32_t stop_signal_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + double x_; + double y_; + double z_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class PackageConfig final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.PackageConfig) */ { +class Orientation_NoOrientation final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.Orientation.NoOrientation) */ { public: - inline PackageConfig() : PackageConfig(nullptr) {} - ~PackageConfig() override; - template - explicit PROTOBUF_CONSTEXPR PackageConfig(::google::protobuf::internal::ConstantInitialized); + inline Orientation_NoOrientation() : Orientation_NoOrientation(nullptr) {} + explicit PROTOBUF_CONSTEXPR Orientation_NoOrientation(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline PackageConfig(const PackageConfig& from) - : PackageConfig(nullptr, from) {} - PackageConfig(PackageConfig&& from) noexcept - : PackageConfig() { + Orientation_NoOrientation(const Orientation_NoOrientation& from); + Orientation_NoOrientation(Orientation_NoOrientation&& from) noexcept + : Orientation_NoOrientation() { *this = ::std::move(from); } - inline PackageConfig& operator=(const PackageConfig& from) { + inline Orientation_NoOrientation& operator=(const Orientation_NoOrientation& from) { CopyFrom(from); return *this; } - inline PackageConfig& operator=(PackageConfig&& from) noexcept { + inline Orientation_NoOrientation& operator=(Orientation_NoOrientation&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -4621,250 +4201,114 @@ class PackageConfig final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const PackageConfig& default_instance() { + static const Orientation_NoOrientation& default_instance() { return *internal_default_instance(); } - static inline const PackageConfig* internal_default_instance() { - return reinterpret_cast( - &_PackageConfig_default_instance_); + static inline const Orientation_NoOrientation* internal_default_instance() { + return reinterpret_cast( + &_Orientation_NoOrientation_default_instance_); } static constexpr int kIndexInFileMessages = - 40; + 19; - friend void swap(PackageConfig& a, PackageConfig& b) { + friend void swap(Orientation_NoOrientation& a, Orientation_NoOrientation& b) { a.Swap(&b); } - inline void Swap(PackageConfig* other) { + inline void Swap(Orientation_NoOrientation* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(PackageConfig* other) { + void UnsafeArenaSwap(Orientation_NoOrientation* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - PackageConfig* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + Orientation_NoOrientation* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const PackageConfig& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const PackageConfig& from) { - PackageConfig::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const Orientation_NoOrientation& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const Orientation_NoOrientation& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(PackageConfig* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.PackageConfig"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.Orientation.NoOrientation"; } protected: - explicit PackageConfig(::google::protobuf::Arena* arena); - PackageConfig(::google::protobuf::Arena* arena, const PackageConfig& from); + explicit Orientation_NoOrientation(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kNameFieldNumber = 1, - kPackageFieldNumber = 2, - kVersionFieldNumber = 3, - kTypeFieldNumber = 4, - kStatusFieldNumber = 5, - }; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - - public: - // string package = 2 [json_name = "package"]; - void clear_package() ; - const std::string& package() const; - template - void set_package(Arg_&& arg, Args_... args); - std::string* mutable_package(); - PROTOBUF_NODISCARD std::string* release_package(); - void set_allocated_package(std::string* value); - - private: - const std::string& _internal_package() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_package( - const std::string& value); - std::string* _internal_mutable_package(); - - public: - // string version = 3 [json_name = "version"]; - void clear_version() ; - const std::string& version() const; - template - void set_version(Arg_&& arg, Args_... args); - std::string* mutable_version(); - PROTOBUF_NODISCARD std::string* release_version(); - void set_allocated_version(std::string* value); - - private: - const std::string& _internal_version() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_version( - const std::string& value); - std::string* _internal_mutable_version(); - - public: - // string type = 4 [json_name = "type"]; - void clear_type() ; - const std::string& type() const; - template - void set_type(Arg_&& arg, Args_... args); - std::string* mutable_type(); - PROTOBUF_NODISCARD std::string* release_type(); - void set_allocated_type(std::string* value); - - 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: - // .viam.app.v1.AppValidationStatus status = 5 [json_name = "status"]; - bool has_status() const; - 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* value); - void unsafe_arena_set_allocated_status(::viam::app::v1::AppValidationStatus* value); - ::viam::app::v1::AppValidationStatus* unsafe_arena_release_status(); - - private: - const ::viam::app::v1::AppValidationStatus& _internal_status() const; - ::viam::app::v1::AppValidationStatus* _internal_mutable_status(); - - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.PackageConfig) + // @@protoc_insertion_point(class_scope:viam.app.v1.Orientation.NoOrientation) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 5, 1, - 56, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr package_; - ::google::protobuf::internal::ArenaStringPtr version_; - ::google::protobuf::internal::ArenaStringPtr type_; - ::viam::app::v1::AppValidationStatus* status_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_app_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Orientation final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.Orientation) */ { +class Orientation_OrientationVectorRadians final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.Orientation.OrientationVectorRadians) */ { public: - inline Orientation() : Orientation(nullptr) {} - ~Orientation() override; - template - explicit PROTOBUF_CONSTEXPR Orientation(::google::protobuf::internal::ConstantInitialized); + inline Orientation_OrientationVectorRadians() : Orientation_OrientationVectorRadians(nullptr) {} + ~Orientation_OrientationVectorRadians() override; + explicit PROTOBUF_CONSTEXPR Orientation_OrientationVectorRadians(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Orientation(const Orientation& from) - : Orientation(nullptr, from) {} - Orientation(Orientation&& from) noexcept - : Orientation() { + Orientation_OrientationVectorRadians(const Orientation_OrientationVectorRadians& from); + Orientation_OrientationVectorRadians(Orientation_OrientationVectorRadians&& from) noexcept + : Orientation_OrientationVectorRadians() { *this = ::std::move(from); } - inline Orientation& operator=(const Orientation& from) { + inline Orientation_OrientationVectorRadians& operator=(const Orientation_OrientationVectorRadians& from) { CopyFrom(from); return *this; } - inline Orientation& operator=(Orientation&& from) noexcept { + inline Orientation_OrientationVectorRadians& operator=(Orientation_OrientationVectorRadians&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -4874,320 +4318,173 @@ class Orientation final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Orientation& default_instance() { + static const Orientation_OrientationVectorRadians& default_instance() { return *internal_default_instance(); } - enum TypeCase { - kNoOrientation = 1, - kVectorRadians = 2, - kVectorDegrees = 3, - kEulerAngles = 4, - kAxisAngles = 5, - kQuaternion = 6, - TYPE_NOT_SET = 0, - }; - - static inline const Orientation* internal_default_instance() { - return reinterpret_cast( - &_Orientation_default_instance_); + static inline const Orientation_OrientationVectorRadians* internal_default_instance() { + return reinterpret_cast( + &_Orientation_OrientationVectorRadians_default_instance_); } static constexpr int kIndexInFileMessages = - 25; + 20; - friend void swap(Orientation& a, Orientation& b) { + friend void swap(Orientation_OrientationVectorRadians& a, Orientation_OrientationVectorRadians& b) { a.Swap(&b); } - inline void Swap(Orientation* other) { + inline void Swap(Orientation_OrientationVectorRadians* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Orientation* other) { + void UnsafeArenaSwap(Orientation_OrientationVectorRadians* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Orientation* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Orientation& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Orientation& from) { - Orientation::MergeImpl(*this, from); + Orientation_OrientationVectorRadians* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Orientation_OrientationVectorRadians& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Orientation_OrientationVectorRadians& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Orientation* other); + void SetCachedSize(int size) const final; + void InternalSwap(Orientation_OrientationVectorRadians* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.Orientation"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.Orientation.OrientationVectorRadians"; } protected: - explicit Orientation(::google::protobuf::Arena* arena); - Orientation(::google::protobuf::Arena* arena, const Orientation& from); + explicit Orientation_OrientationVectorRadians(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- - using NoOrientation = Orientation_NoOrientation; - using OrientationVectorRadians = Orientation_OrientationVectorRadians; - using OrientationVectorDegrees = Orientation_OrientationVectorDegrees; - using EulerAngles = Orientation_EulerAngles; - using AxisAngles = Orientation_AxisAngles; - using Quaternion = Orientation_Quaternion; - // accessors ------------------------------------------------------- enum : int { - kNoOrientationFieldNumber = 1, - kVectorRadiansFieldNumber = 2, - kVectorDegreesFieldNumber = 3, - kEulerAnglesFieldNumber = 4, - kAxisAnglesFieldNumber = 5, - kQuaternionFieldNumber = 6, + kThetaFieldNumber = 1, + kXFieldNumber = 2, + kYFieldNumber = 3, + kZFieldNumber = 4, }; - // .viam.app.v1.Orientation.NoOrientation no_orientation = 1 [json_name = "noOrientation"]; - bool has_no_orientation() const; - private: - bool _internal_has_no_orientation() const; - - public: - void clear_no_orientation() ; - const ::viam::app::v1::Orientation_NoOrientation& no_orientation() const; - PROTOBUF_NODISCARD ::viam::app::v1::Orientation_NoOrientation* release_no_orientation(); - ::viam::app::v1::Orientation_NoOrientation* mutable_no_orientation(); - void set_allocated_no_orientation(::viam::app::v1::Orientation_NoOrientation* value); - void unsafe_arena_set_allocated_no_orientation(::viam::app::v1::Orientation_NoOrientation* value); - ::viam::app::v1::Orientation_NoOrientation* unsafe_arena_release_no_orientation(); - - private: - const ::viam::app::v1::Orientation_NoOrientation& _internal_no_orientation() const; - ::viam::app::v1::Orientation_NoOrientation* _internal_mutable_no_orientation(); - - public: - // .viam.app.v1.Orientation.OrientationVectorRadians vector_radians = 2 [json_name = "vectorRadians"]; - bool has_vector_radians() const; - private: - bool _internal_has_vector_radians() const; - - public: - void clear_vector_radians() ; - const ::viam::app::v1::Orientation_OrientationVectorRadians& vector_radians() const; - PROTOBUF_NODISCARD ::viam::app::v1::Orientation_OrientationVectorRadians* release_vector_radians(); - ::viam::app::v1::Orientation_OrientationVectorRadians* mutable_vector_radians(); - void set_allocated_vector_radians(::viam::app::v1::Orientation_OrientationVectorRadians* value); - void unsafe_arena_set_allocated_vector_radians(::viam::app::v1::Orientation_OrientationVectorRadians* value); - ::viam::app::v1::Orientation_OrientationVectorRadians* unsafe_arena_release_vector_radians(); - - private: - const ::viam::app::v1::Orientation_OrientationVectorRadians& _internal_vector_radians() const; - ::viam::app::v1::Orientation_OrientationVectorRadians* _internal_mutable_vector_radians(); - - public: - // .viam.app.v1.Orientation.OrientationVectorDegrees vector_degrees = 3 [json_name = "vectorDegrees"]; - bool has_vector_degrees() const; - private: - bool _internal_has_vector_degrees() const; - - public: - void clear_vector_degrees() ; - const ::viam::app::v1::Orientation_OrientationVectorDegrees& vector_degrees() const; - PROTOBUF_NODISCARD ::viam::app::v1::Orientation_OrientationVectorDegrees* release_vector_degrees(); - ::viam::app::v1::Orientation_OrientationVectorDegrees* mutable_vector_degrees(); - void set_allocated_vector_degrees(::viam::app::v1::Orientation_OrientationVectorDegrees* value); - void unsafe_arena_set_allocated_vector_degrees(::viam::app::v1::Orientation_OrientationVectorDegrees* value); - ::viam::app::v1::Orientation_OrientationVectorDegrees* unsafe_arena_release_vector_degrees(); - - private: - const ::viam::app::v1::Orientation_OrientationVectorDegrees& _internal_vector_degrees() const; - ::viam::app::v1::Orientation_OrientationVectorDegrees* _internal_mutable_vector_degrees(); - - public: - // .viam.app.v1.Orientation.EulerAngles euler_angles = 4 [json_name = "eulerAngles"]; - bool has_euler_angles() const; - private: - bool _internal_has_euler_angles() const; - - public: - void clear_euler_angles() ; - const ::viam::app::v1::Orientation_EulerAngles& euler_angles() const; - PROTOBUF_NODISCARD ::viam::app::v1::Orientation_EulerAngles* release_euler_angles(); - ::viam::app::v1::Orientation_EulerAngles* mutable_euler_angles(); - void set_allocated_euler_angles(::viam::app::v1::Orientation_EulerAngles* value); - void unsafe_arena_set_allocated_euler_angles(::viam::app::v1::Orientation_EulerAngles* value); - ::viam::app::v1::Orientation_EulerAngles* unsafe_arena_release_euler_angles(); - - private: - const ::viam::app::v1::Orientation_EulerAngles& _internal_euler_angles() const; - ::viam::app::v1::Orientation_EulerAngles* _internal_mutable_euler_angles(); - - public: - // .viam.app.v1.Orientation.AxisAngles axis_angles = 5 [json_name = "axisAngles"]; - bool has_axis_angles() const; + // double theta = 1 [json_name = "theta", (.tagger.v1.tags) = "json:\"th\""]; + void clear_theta(); + double theta() const; + void set_theta(double value); private: - bool _internal_has_axis_angles() const; - - public: - void clear_axis_angles() ; - const ::viam::app::v1::Orientation_AxisAngles& axis_angles() const; - PROTOBUF_NODISCARD ::viam::app::v1::Orientation_AxisAngles* release_axis_angles(); - ::viam::app::v1::Orientation_AxisAngles* mutable_axis_angles(); - void set_allocated_axis_angles(::viam::app::v1::Orientation_AxisAngles* value); - void unsafe_arena_set_allocated_axis_angles(::viam::app::v1::Orientation_AxisAngles* value); - ::viam::app::v1::Orientation_AxisAngles* unsafe_arena_release_axis_angles(); + double _internal_theta() const; + void _internal_set_theta(double value); + public: + // double x = 2 [json_name = "x"]; + void clear_x(); + double x() const; + void set_x(double value); private: - const ::viam::app::v1::Orientation_AxisAngles& _internal_axis_angles() const; - ::viam::app::v1::Orientation_AxisAngles* _internal_mutable_axis_angles(); - + double _internal_x() const; + void _internal_set_x(double value); public: - // .viam.app.v1.Orientation.Quaternion quaternion = 6 [json_name = "quaternion"]; - bool has_quaternion() const; - private: - bool _internal_has_quaternion() const; + // double y = 3 [json_name = "y"]; + void clear_y(); + double y() const; + void set_y(double value); + private: + double _internal_y() const; + void _internal_set_y(double value); public: - void clear_quaternion() ; - const ::viam::app::v1::Orientation_Quaternion& quaternion() const; - PROTOBUF_NODISCARD ::viam::app::v1::Orientation_Quaternion* release_quaternion(); - ::viam::app::v1::Orientation_Quaternion* mutable_quaternion(); - void set_allocated_quaternion(::viam::app::v1::Orientation_Quaternion* value); - void unsafe_arena_set_allocated_quaternion(::viam::app::v1::Orientation_Quaternion* value); - ::viam::app::v1::Orientation_Quaternion* unsafe_arena_release_quaternion(); + // double z = 4 [json_name = "z"]; + void clear_z(); + double z() const; + void set_z(double value); private: - const ::viam::app::v1::Orientation_Quaternion& _internal_quaternion() const; - ::viam::app::v1::Orientation_Quaternion* _internal_mutable_quaternion(); - + double _internal_z() const; + void _internal_set_z(double value); public: - void clear_type(); - TypeCase type_case() const; - // @@protoc_insertion_point(class_scope:viam.app.v1.Orientation) + + // @@protoc_insertion_point(class_scope:viam.app.v1.Orientation.OrientationVectorRadians) private: class _Internal; - void set_has_no_orientation(); - void set_has_vector_radians(); - void set_has_vector_degrees(); - void set_has_euler_angles(); - void set_has_axis_angles(); - void set_has_quaternion(); - - inline bool has_type() const; - inline void clear_has_type(); - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 6, 6, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - union TypeUnion { - constexpr TypeUnion() : _constinit_{} {} - ::google::protobuf::internal::ConstantInitialized _constinit_; - ::viam::app::v1::Orientation_NoOrientation* no_orientation_; - ::viam::app::v1::Orientation_OrientationVectorRadians* vector_radians_; - ::viam::app::v1::Orientation_OrientationVectorDegrees* vector_degrees_; - ::viam::app::v1::Orientation_EulerAngles* euler_angles_; - ::viam::app::v1::Orientation_AxisAngles* axis_angles_; - ::viam::app::v1::Orientation_Quaternion* quaternion_; - } type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t _oneof_case_[1]; - - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + double theta_; + double x_; + double y_; + double z_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class NeedsRestartResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.NeedsRestartResponse) */ { +class Orientation_OrientationVectorDegrees final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.Orientation.OrientationVectorDegrees) */ { public: - inline NeedsRestartResponse() : NeedsRestartResponse(nullptr) {} - ~NeedsRestartResponse() override; - template - explicit PROTOBUF_CONSTEXPR NeedsRestartResponse(::google::protobuf::internal::ConstantInitialized); + inline Orientation_OrientationVectorDegrees() : Orientation_OrientationVectorDegrees(nullptr) {} + ~Orientation_OrientationVectorDegrees() override; + explicit PROTOBUF_CONSTEXPR Orientation_OrientationVectorDegrees(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline NeedsRestartResponse(const NeedsRestartResponse& from) - : NeedsRestartResponse(nullptr, from) {} - NeedsRestartResponse(NeedsRestartResponse&& from) noexcept - : NeedsRestartResponse() { + Orientation_OrientationVectorDegrees(const Orientation_OrientationVectorDegrees& from); + Orientation_OrientationVectorDegrees(Orientation_OrientationVectorDegrees&& from) noexcept + : Orientation_OrientationVectorDegrees() { *this = ::std::move(from); } - inline NeedsRestartResponse& operator=(const NeedsRestartResponse& from) { + inline Orientation_OrientationVectorDegrees& operator=(const Orientation_OrientationVectorDegrees& from) { CopyFrom(from); return *this; } - inline NeedsRestartResponse& operator=(NeedsRestartResponse&& from) noexcept { + inline Orientation_OrientationVectorDegrees& operator=(Orientation_OrientationVectorDegrees&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -5197,208 +4494,173 @@ class NeedsRestartResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const NeedsRestartResponse& default_instance() { + static const Orientation_OrientationVectorDegrees& default_instance() { return *internal_default_instance(); } - static inline const NeedsRestartResponse* internal_default_instance() { - return reinterpret_cast( - &_NeedsRestartResponse_default_instance_); + static inline const Orientation_OrientationVectorDegrees* internal_default_instance() { + return reinterpret_cast( + &_Orientation_OrientationVectorDegrees_default_instance_); } static constexpr int kIndexInFileMessages = - 37; + 21; - friend void swap(NeedsRestartResponse& a, NeedsRestartResponse& b) { + friend void swap(Orientation_OrientationVectorDegrees& a, Orientation_OrientationVectorDegrees& b) { a.Swap(&b); } - inline void Swap(NeedsRestartResponse* other) { + inline void Swap(Orientation_OrientationVectorDegrees* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(NeedsRestartResponse* other) { + void UnsafeArenaSwap(Orientation_OrientationVectorDegrees* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - NeedsRestartResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const NeedsRestartResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const NeedsRestartResponse& from) { - NeedsRestartResponse::MergeImpl(*this, from); + Orientation_OrientationVectorDegrees* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Orientation_OrientationVectorDegrees& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Orientation_OrientationVectorDegrees& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(NeedsRestartResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(Orientation_OrientationVectorDegrees* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.NeedsRestartResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.Orientation.OrientationVectorDegrees"; } protected: - explicit NeedsRestartResponse(::google::protobuf::Arena* arena); - NeedsRestartResponse(::google::protobuf::Arena* arena, const NeedsRestartResponse& from); + explicit Orientation_OrientationVectorDegrees(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kIdFieldNumber = 1, - kRestartCheckIntervalFieldNumber = 3, - kMustRestartFieldNumber = 2, + kThetaFieldNumber = 1, + kXFieldNumber = 2, + kYFieldNumber = 3, + kZFieldNumber = 4, }; - // string id = 1 [json_name = "id"]; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - + // double theta = 1 [json_name = "theta", (.tagger.v1.tags) = "json:\"th\""]; + void clear_theta(); + double theta() const; + void set_theta(double value); private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); - + double _internal_theta() const; + void _internal_set_theta(double value); public: - // .google.protobuf.Duration restart_check_interval = 3 [json_name = "restartCheckInterval"]; - bool has_restart_check_interval() const; - void clear_restart_check_interval() ; - const ::google::protobuf::Duration& restart_check_interval() const; - PROTOBUF_NODISCARD ::google::protobuf::Duration* release_restart_check_interval(); - ::google::protobuf::Duration* mutable_restart_check_interval(); - void set_allocated_restart_check_interval(::google::protobuf::Duration* value); - void unsafe_arena_set_allocated_restart_check_interval(::google::protobuf::Duration* value); - ::google::protobuf::Duration* unsafe_arena_release_restart_check_interval(); + // double x = 2 [json_name = "x"]; + void clear_x(); + double x() const; + void set_x(double value); private: - const ::google::protobuf::Duration& _internal_restart_check_interval() const; - ::google::protobuf::Duration* _internal_mutable_restart_check_interval(); - + double _internal_x() const; + void _internal_set_x(double value); public: - // bool must_restart = 2 [json_name = "mustRestart"]; - void clear_must_restart() ; - bool must_restart() const; - void set_must_restart(bool value); + // double y = 3 [json_name = "y"]; + void clear_y(); + double y() const; + void set_y(double value); private: - bool _internal_must_restart() const; - void _internal_set_must_restart(bool value); + double _internal_y() const; + void _internal_set_y(double value); + public: + // double z = 4 [json_name = "z"]; + void clear_z(); + double z() const; + void set_z(double value); + private: + double _internal_z() const; + void _internal_set_z(double value); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.NeedsRestartResponse) + + // @@protoc_insertion_point(class_scope:viam.app.v1.Orientation.OrientationVectorDegrees) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 1, - 43, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr id_; - ::google::protobuf::Duration* restart_check_interval_; - bool must_restart_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + double theta_; + double x_; + double y_; + double z_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ModuleConfig final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ModuleConfig) */ { +class Orientation_EulerAngles final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.Orientation.EulerAngles) */ { public: - inline ModuleConfig() : ModuleConfig(nullptr) {} - ~ModuleConfig() override; - template - explicit PROTOBUF_CONSTEXPR ModuleConfig(::google::protobuf::internal::ConstantInitialized); + inline Orientation_EulerAngles() : Orientation_EulerAngles(nullptr) {} + ~Orientation_EulerAngles() override; + explicit PROTOBUF_CONSTEXPR Orientation_EulerAngles(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ModuleConfig(const ModuleConfig& from) - : ModuleConfig(nullptr, from) {} - ModuleConfig(ModuleConfig&& from) noexcept - : ModuleConfig() { + Orientation_EulerAngles(const Orientation_EulerAngles& from); + Orientation_EulerAngles(Orientation_EulerAngles&& from) noexcept + : Orientation_EulerAngles() { *this = ::std::move(from); } - inline ModuleConfig& operator=(const ModuleConfig& from) { + inline Orientation_EulerAngles& operator=(const Orientation_EulerAngles& from) { CopyFrom(from); return *this; } - inline ModuleConfig& operator=(ModuleConfig&& from) noexcept { + inline Orientation_EulerAngles& operator=(Orientation_EulerAngles&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -5408,306 +4670,162 @@ class ModuleConfig final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ModuleConfig& default_instance() { + static const Orientation_EulerAngles& default_instance() { return *internal_default_instance(); } - static inline const ModuleConfig* internal_default_instance() { - return reinterpret_cast( - &_ModuleConfig_default_instance_); + static inline const Orientation_EulerAngles* internal_default_instance() { + return reinterpret_cast( + &_Orientation_EulerAngles_default_instance_); } static constexpr int kIndexInFileMessages = - 39; + 22; - friend void swap(ModuleConfig& a, ModuleConfig& b) { + friend void swap(Orientation_EulerAngles& a, Orientation_EulerAngles& b) { a.Swap(&b); } - inline void Swap(ModuleConfig* other) { + inline void Swap(Orientation_EulerAngles* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ModuleConfig* other) { + void UnsafeArenaSwap(Orientation_EulerAngles* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ModuleConfig* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ModuleConfig& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ModuleConfig& from) { - ModuleConfig::MergeImpl(*this, from); + Orientation_EulerAngles* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Orientation_EulerAngles& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Orientation_EulerAngles& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ModuleConfig* other); + void SetCachedSize(int size) const final; + void InternalSwap(Orientation_EulerAngles* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.ModuleConfig"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.Orientation.EulerAngles"; } protected: - explicit ModuleConfig(::google::protobuf::Arena* arena); - ModuleConfig(::google::protobuf::Arena* arena, const ModuleConfig& from); + explicit Orientation_EulerAngles(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- - // accessors ------------------------------------------------------- enum : int { - kEnvFieldNumber = 6, - kNameFieldNumber = 1, - kPathFieldNumber = 2, - kLogLevelFieldNumber = 3, - kTypeFieldNumber = 4, - kModuleIdFieldNumber = 5, - kStatusFieldNumber = 7, - kFirstRunTimeoutFieldNumber = 8, + kRollFieldNumber = 1, + kPitchFieldNumber = 2, + kYawFieldNumber = 3, }; - // map env = 6 [json_name = "env"]; - int env_size() const; - private: - int _internal_env_size() const; - - public: - void clear_env() ; - const ::google::protobuf::Map& env() const; - ::google::protobuf::Map* mutable_env(); - - private: - const ::google::protobuf::Map& _internal_env() const; - ::google::protobuf::Map* _internal_mutable_env(); - - public: - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - - public: - // string path = 2 [json_name = "path"]; - void clear_path() ; - const std::string& path() const; - template - void set_path(Arg_&& arg, Args_... args); - std::string* mutable_path(); - PROTOBUF_NODISCARD std::string* release_path(); - void set_allocated_path(std::string* value); - - private: - const std::string& _internal_path() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_path( - const std::string& value); - std::string* _internal_mutable_path(); - - public: - // string log_level = 3 [json_name = "logLevel"]; - void clear_log_level() ; - const std::string& log_level() const; - template - void set_log_level(Arg_&& arg, Args_... args); - std::string* mutable_log_level(); - PROTOBUF_NODISCARD std::string* release_log_level(); - void set_allocated_log_level(std::string* value); - - private: - const std::string& _internal_log_level() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_log_level( - const std::string& value); - 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(Arg_&& arg, Args_... args); - std::string* mutable_type(); - PROTOBUF_NODISCARD std::string* release_type(); - void set_allocated_type(std::string* value); - - 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(Arg_&& arg, Args_... args); - std::string* mutable_module_id(); - PROTOBUF_NODISCARD std::string* release_module_id(); - void set_allocated_module_id(std::string* value); - - 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(); - + // double roll = 1 [json_name = "roll"]; + void clear_roll(); + double roll() const; + void set_roll(double value); + private: + double _internal_roll() const; + void _internal_set_roll(double value); public: - // .viam.app.v1.AppValidationStatus status = 7 [json_name = "status"]; - bool has_status() const; - 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* value); - void unsafe_arena_set_allocated_status(::viam::app::v1::AppValidationStatus* value); - ::viam::app::v1::AppValidationStatus* unsafe_arena_release_status(); + // double pitch = 2 [json_name = "pitch"]; + void clear_pitch(); + double pitch() const; + void set_pitch(double value); private: - const ::viam::app::v1::AppValidationStatus& _internal_status() const; - ::viam::app::v1::AppValidationStatus* _internal_mutable_status(); - + double _internal_pitch() const; + void _internal_set_pitch(double value); public: - // .google.protobuf.Duration first_run_timeout = 8 [json_name = "firstRunTimeout"]; - bool has_first_run_timeout() const; - void clear_first_run_timeout() ; - const ::google::protobuf::Duration& first_run_timeout() const; - PROTOBUF_NODISCARD ::google::protobuf::Duration* release_first_run_timeout(); - ::google::protobuf::Duration* mutable_first_run_timeout(); - void set_allocated_first_run_timeout(::google::protobuf::Duration* value); - void unsafe_arena_set_allocated_first_run_timeout(::google::protobuf::Duration* value); - ::google::protobuf::Duration* unsafe_arena_release_first_run_timeout(); + // double yaw = 3 [json_name = "yaw"]; + void clear_yaw(); + double yaw() const; + void set_yaw(double value); private: - const ::google::protobuf::Duration& _internal_first_run_timeout() const; - ::google::protobuf::Duration* _internal_mutable_first_run_timeout(); - + double _internal_yaw() const; + void _internal_set_yaw(double value); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.ModuleConfig) + + // @@protoc_insertion_point(class_scope:viam.app.v1.Orientation.EulerAngles) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 8, 3, - 74, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::MapField - env_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr path_; - ::google::protobuf::internal::ArenaStringPtr log_level_; - ::google::protobuf::internal::ArenaStringPtr type_; - ::google::protobuf::internal::ArenaStringPtr module_id_; - ::viam::app::v1::AppValidationStatus* status_; - ::google::protobuf::Duration* first_run_timeout_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + double roll_; + double pitch_; + double yaw_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class MaintenanceConfig final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.MaintenanceConfig) */ { +class Orientation_AxisAngles final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.Orientation.AxisAngles) */ { public: - inline MaintenanceConfig() : MaintenanceConfig(nullptr) {} - ~MaintenanceConfig() override; - template - explicit PROTOBUF_CONSTEXPR MaintenanceConfig(::google::protobuf::internal::ConstantInitialized); + inline Orientation_AxisAngles() : Orientation_AxisAngles(nullptr) {} + ~Orientation_AxisAngles() override; + explicit PROTOBUF_CONSTEXPR Orientation_AxisAngles(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline MaintenanceConfig(const MaintenanceConfig& from) - : MaintenanceConfig(nullptr, from) {} - MaintenanceConfig(MaintenanceConfig&& from) noexcept - : MaintenanceConfig() { + Orientation_AxisAngles(const Orientation_AxisAngles& from); + Orientation_AxisAngles(Orientation_AxisAngles&& from) noexcept + : Orientation_AxisAngles() { *this = ::std::move(from); } - inline MaintenanceConfig& operator=(const MaintenanceConfig& from) { + inline Orientation_AxisAngles& operator=(const Orientation_AxisAngles& from) { CopyFrom(from); return *this; } - inline MaintenanceConfig& operator=(MaintenanceConfig&& from) noexcept { + inline Orientation_AxisAngles& operator=(Orientation_AxisAngles&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -5717,196 +4835,173 @@ class MaintenanceConfig final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MaintenanceConfig& default_instance() { + static const Orientation_AxisAngles& default_instance() { return *internal_default_instance(); } - static inline const MaintenanceConfig* internal_default_instance() { - return reinterpret_cast( - &_MaintenanceConfig_default_instance_); + static inline const Orientation_AxisAngles* internal_default_instance() { + return reinterpret_cast( + &_Orientation_AxisAngles_default_instance_); } static constexpr int kIndexInFileMessages = - 41; + 23; - friend void swap(MaintenanceConfig& a, MaintenanceConfig& b) { + friend void swap(Orientation_AxisAngles& a, Orientation_AxisAngles& b) { a.Swap(&b); } - inline void Swap(MaintenanceConfig* other) { + inline void Swap(Orientation_AxisAngles* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MaintenanceConfig* other) { + void UnsafeArenaSwap(Orientation_AxisAngles* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MaintenanceConfig* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const MaintenanceConfig& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const MaintenanceConfig& from) { - MaintenanceConfig::MergeImpl(*this, from); + Orientation_AxisAngles* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Orientation_AxisAngles& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Orientation_AxisAngles& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(MaintenanceConfig* other); + void SetCachedSize(int size) const final; + void InternalSwap(Orientation_AxisAngles* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.MaintenanceConfig"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.Orientation.AxisAngles"; } protected: - explicit MaintenanceConfig(::google::protobuf::Arena* arena); - MaintenanceConfig(::google::protobuf::Arena* arena, const MaintenanceConfig& from); + explicit Orientation_AxisAngles(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kMaintenanceAllowedKeyFieldNumber = 2, - kSensorNameFieldNumber = 1, + kThetaFieldNumber = 1, + kXFieldNumber = 2, + kYFieldNumber = 3, + kZFieldNumber = 4, }; - // string maintenance_allowed_key = 2 [json_name = "maintenanceAllowedKey"]; - void clear_maintenance_allowed_key() ; - const std::string& maintenance_allowed_key() const; - template - void set_maintenance_allowed_key(Arg_&& arg, Args_... args); - std::string* mutable_maintenance_allowed_key(); - PROTOBUF_NODISCARD std::string* release_maintenance_allowed_key(); - void set_allocated_maintenance_allowed_key(std::string* value); - + // double theta = 1 [json_name = "theta", (.tagger.v1.tags) = "json:\"th\""]; + void clear_theta(); + double theta() const; + void set_theta(double value); private: - const std::string& _internal_maintenance_allowed_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_maintenance_allowed_key( - const std::string& value); - std::string* _internal_mutable_maintenance_allowed_key(); + double _internal_theta() const; + void _internal_set_theta(double value); + public: + // double x = 2 [json_name = "x"]; + void clear_x(); + double x() const; + void set_x(double value); + private: + double _internal_x() const; + void _internal_set_x(double value); public: - // .viam.common.v1.ResourceName sensor_name = 1 [json_name = "sensorName"]; - bool has_sensor_name() const; - void clear_sensor_name() ; - const ::viam::common::v1::ResourceName& sensor_name() const; - PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_sensor_name(); - ::viam::common::v1::ResourceName* mutable_sensor_name(); - void set_allocated_sensor_name(::viam::common::v1::ResourceName* value); - void unsafe_arena_set_allocated_sensor_name(::viam::common::v1::ResourceName* value); - ::viam::common::v1::ResourceName* unsafe_arena_release_sensor_name(); + // double y = 3 [json_name = "y"]; + void clear_y(); + double y() const; + void set_y(double value); private: - const ::viam::common::v1::ResourceName& _internal_sensor_name() const; - ::viam::common::v1::ResourceName* _internal_mutable_sensor_name(); + double _internal_y() const; + void _internal_set_y(double value); + public: + // double z = 4 [json_name = "z"]; + void clear_z(); + double z() const; + void set_z(double value); + private: + double _internal_z() const; + void _internal_set_z(double value); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.MaintenanceConfig) + + // @@protoc_insertion_point(class_scope:viam.app.v1.Orientation.AxisAngles) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 61, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr maintenance_allowed_key_; - ::viam::common::v1::ResourceName* sensor_name_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + double theta_; + double x_; + double y_; + double z_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class JWKSFile final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.JWKSFile) */ { +class Orientation_Quaternion final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.Orientation.Quaternion) */ { public: - inline JWKSFile() : JWKSFile(nullptr) {} - ~JWKSFile() override; - template - explicit PROTOBUF_CONSTEXPR JWKSFile(::google::protobuf::internal::ConstantInitialized); + inline Orientation_Quaternion() : Orientation_Quaternion(nullptr) {} + ~Orientation_Quaternion() override; + explicit PROTOBUF_CONSTEXPR Orientation_Quaternion(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline JWKSFile(const JWKSFile& from) - : JWKSFile(nullptr, from) {} - JWKSFile(JWKSFile&& from) noexcept - : JWKSFile() { + Orientation_Quaternion(const Orientation_Quaternion& from); + Orientation_Quaternion(Orientation_Quaternion&& from) noexcept + : Orientation_Quaternion() { *this = ::std::move(from); } - inline JWKSFile& operator=(const JWKSFile& from) { + inline Orientation_Quaternion& operator=(const Orientation_Quaternion& from) { CopyFrom(from); return *this; } - inline JWKSFile& operator=(JWKSFile&& from) noexcept { + inline Orientation_Quaternion& operator=(Orientation_Quaternion&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -5916,178 +5011,173 @@ class JWKSFile final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const JWKSFile& default_instance() { + static const Orientation_Quaternion& default_instance() { return *internal_default_instance(); } - static inline const JWKSFile* internal_default_instance() { - return reinterpret_cast( - &_JWKSFile_default_instance_); + static inline const Orientation_Quaternion* internal_default_instance() { + return reinterpret_cast( + &_Orientation_Quaternion_default_instance_); } static constexpr int kIndexInFileMessages = - 13; + 24; - friend void swap(JWKSFile& a, JWKSFile& b) { + friend void swap(Orientation_Quaternion& a, Orientation_Quaternion& b) { a.Swap(&b); } - inline void Swap(JWKSFile* other) { + inline void Swap(Orientation_Quaternion* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(JWKSFile* other) { + void UnsafeArenaSwap(Orientation_Quaternion* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - JWKSFile* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const JWKSFile& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const JWKSFile& from) { - JWKSFile::MergeImpl(*this, from); + Orientation_Quaternion* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Orientation_Quaternion& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Orientation_Quaternion& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(JWKSFile* other); + void SetCachedSize(int size) const final; + void InternalSwap(Orientation_Quaternion* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.JWKSFile"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.Orientation.Quaternion"; } protected: - explicit JWKSFile(::google::protobuf::Arena* arena); - JWKSFile(::google::protobuf::Arena* arena, const JWKSFile& from); + explicit Orientation_Quaternion(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kJsonFieldNumber = 1, + kWFieldNumber = 1, + kXFieldNumber = 2, + kYFieldNumber = 3, + kZFieldNumber = 4, }; - // .google.protobuf.Struct json = 1 [json_name = "json"]; - bool has_json() const; - void clear_json() ; - const ::google::protobuf::Struct& json() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_json(); - ::google::protobuf::Struct* mutable_json(); - void set_allocated_json(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_json(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_json(); + // double w = 1 [json_name = "w"]; + void clear_w(); + double w() const; + void set_w(double value); + private: + double _internal_w() const; + void _internal_set_w(double value); + public: + + // double x = 2 [json_name = "x"]; + void clear_x(); + double x() const; + void set_x(double value); + private: + double _internal_x() const; + void _internal_set_x(double value); + public: + // double y = 3 [json_name = "y"]; + void clear_y(); + double y() const; + void set_y(double value); private: - const ::google::protobuf::Struct& _internal_json() const; - ::google::protobuf::Struct* _internal_mutable_json(); + double _internal_y() const; + void _internal_set_y(double value); + public: + // double z = 4 [json_name = "z"]; + void clear_z(); + double z() const; + void set_z(double value); + private: + double _internal_z() const; + void _internal_set_z(double value); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.JWKSFile) + + // @@protoc_insertion_point(class_scope:viam.app.v1.Orientation.Quaternion) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::Struct* json_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + double w_; + double x_; + double y_; + double z_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ConfigRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ConfigRequest) */ { +class Orientation final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.Orientation) */ { public: - inline ConfigRequest() : ConfigRequest(nullptr) {} - ~ConfigRequest() override; - template - explicit PROTOBUF_CONSTEXPR ConfigRequest(::google::protobuf::internal::ConstantInitialized); + inline Orientation() : Orientation(nullptr) {} + ~Orientation() override; + explicit PROTOBUF_CONSTEXPR Orientation(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ConfigRequest(const ConfigRequest& from) - : ConfigRequest(nullptr, from) {} - ConfigRequest(ConfigRequest&& from) noexcept - : ConfigRequest() { + Orientation(const Orientation& from); + Orientation(Orientation&& from) noexcept + : Orientation() { *this = ::std::move(from); } - inline ConfigRequest& operator=(const ConfigRequest& from) { + inline Orientation& operator=(const Orientation& from) { CopyFrom(from); return *this; } - inline ConfigRequest& operator=(ConfigRequest&& from) noexcept { + inline Orientation& operator=(Orientation&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -6097,196 +5187,283 @@ class ConfigRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ConfigRequest& default_instance() { + static const Orientation& default_instance() { return *internal_default_instance(); } - static inline const ConfigRequest* internal_default_instance() { - return reinterpret_cast( - &_ConfigRequest_default_instance_); + enum TypeCase { + kNoOrientation = 1, + kVectorRadians = 2, + kVectorDegrees = 3, + kEulerAngles = 4, + kAxisAngles = 5, + kQuaternion = 6, + TYPE_NOT_SET = 0, + }; + + static inline const Orientation* internal_default_instance() { + return reinterpret_cast( + &_Orientation_default_instance_); } static constexpr int kIndexInFileMessages = - 30; + 25; - friend void swap(ConfigRequest& a, ConfigRequest& b) { + friend void swap(Orientation& a, Orientation& b) { a.Swap(&b); } - inline void Swap(ConfigRequest* other) { + inline void Swap(Orientation* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ConfigRequest* other) { + void UnsafeArenaSwap(Orientation* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ConfigRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ConfigRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ConfigRequest& from) { - ConfigRequest::MergeImpl(*this, from); + Orientation* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Orientation& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Orientation& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ConfigRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(Orientation* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.ConfigRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.Orientation"; } protected: - explicit ConfigRequest(::google::protobuf::Arena* arena); - ConfigRequest(::google::protobuf::Arena* arena, const ConfigRequest& from); + explicit Orientation(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- + typedef Orientation_NoOrientation NoOrientation; + typedef Orientation_OrientationVectorRadians OrientationVectorRadians; + typedef Orientation_OrientationVectorDegrees OrientationVectorDegrees; + typedef Orientation_EulerAngles EulerAngles; + typedef Orientation_AxisAngles AxisAngles; + typedef Orientation_Quaternion Quaternion; + // accessors ------------------------------------------------------- enum : int { - kIdFieldNumber = 1, - kAgentInfoFieldNumber = 2, + kNoOrientationFieldNumber = 1, + kVectorRadiansFieldNumber = 2, + kVectorDegreesFieldNumber = 3, + kEulerAnglesFieldNumber = 4, + kAxisAnglesFieldNumber = 5, + kQuaternionFieldNumber = 6, }; - // string id = 1 [json_name = "id"]; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); + // .viam.app.v1.Orientation.NoOrientation no_orientation = 1 [json_name = "noOrientation"]; + bool has_no_orientation() const; + private: + bool _internal_has_no_orientation() const; + public: + void clear_no_orientation(); + const ::viam::app::v1::Orientation_NoOrientation& no_orientation() const; + PROTOBUF_NODISCARD ::viam::app::v1::Orientation_NoOrientation* release_no_orientation(); + ::viam::app::v1::Orientation_NoOrientation* mutable_no_orientation(); + void set_allocated_no_orientation(::viam::app::v1::Orientation_NoOrientation* no_orientation); + private: + const ::viam::app::v1::Orientation_NoOrientation& _internal_no_orientation() const; + ::viam::app::v1::Orientation_NoOrientation* _internal_mutable_no_orientation(); + public: + void unsafe_arena_set_allocated_no_orientation( + ::viam::app::v1::Orientation_NoOrientation* no_orientation); + ::viam::app::v1::Orientation_NoOrientation* unsafe_arena_release_no_orientation(); + // .viam.app.v1.Orientation.OrientationVectorRadians vector_radians = 2 [json_name = "vectorRadians"]; + bool has_vector_radians() const; private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); + bool _internal_has_vector_radians() const; + public: + void clear_vector_radians(); + const ::viam::app::v1::Orientation_OrientationVectorRadians& vector_radians() const; + PROTOBUF_NODISCARD ::viam::app::v1::Orientation_OrientationVectorRadians* release_vector_radians(); + ::viam::app::v1::Orientation_OrientationVectorRadians* mutable_vector_radians(); + void set_allocated_vector_radians(::viam::app::v1::Orientation_OrientationVectorRadians* vector_radians); + private: + const ::viam::app::v1::Orientation_OrientationVectorRadians& _internal_vector_radians() const; + ::viam::app::v1::Orientation_OrientationVectorRadians* _internal_mutable_vector_radians(); + public: + void unsafe_arena_set_allocated_vector_radians( + ::viam::app::v1::Orientation_OrientationVectorRadians* vector_radians); + ::viam::app::v1::Orientation_OrientationVectorRadians* unsafe_arena_release_vector_radians(); + // .viam.app.v1.Orientation.OrientationVectorDegrees vector_degrees = 3 [json_name = "vectorDegrees"]; + bool has_vector_degrees() const; + private: + bool _internal_has_vector_degrees() const; public: - // optional .viam.app.v1.AgentInfo agent_info = 2 [json_name = "agentInfo"]; - bool has_agent_info() const; - void clear_agent_info() ; - const ::viam::app::v1::AgentInfo& agent_info() const; - PROTOBUF_NODISCARD ::viam::app::v1::AgentInfo* release_agent_info(); - ::viam::app::v1::AgentInfo* mutable_agent_info(); - void set_allocated_agent_info(::viam::app::v1::AgentInfo* value); - void unsafe_arena_set_allocated_agent_info(::viam::app::v1::AgentInfo* value); - ::viam::app::v1::AgentInfo* unsafe_arena_release_agent_info(); + void clear_vector_degrees(); + const ::viam::app::v1::Orientation_OrientationVectorDegrees& vector_degrees() const; + PROTOBUF_NODISCARD ::viam::app::v1::Orientation_OrientationVectorDegrees* release_vector_degrees(); + ::viam::app::v1::Orientation_OrientationVectorDegrees* mutable_vector_degrees(); + void set_allocated_vector_degrees(::viam::app::v1::Orientation_OrientationVectorDegrees* vector_degrees); + private: + const ::viam::app::v1::Orientation_OrientationVectorDegrees& _internal_vector_degrees() const; + ::viam::app::v1::Orientation_OrientationVectorDegrees* _internal_mutable_vector_degrees(); + public: + void unsafe_arena_set_allocated_vector_degrees( + ::viam::app::v1::Orientation_OrientationVectorDegrees* vector_degrees); + ::viam::app::v1::Orientation_OrientationVectorDegrees* unsafe_arena_release_vector_degrees(); + // .viam.app.v1.Orientation.EulerAngles euler_angles = 4 [json_name = "eulerAngles"]; + bool has_euler_angles() const; private: - const ::viam::app::v1::AgentInfo& _internal_agent_info() const; - ::viam::app::v1::AgentInfo* _internal_mutable_agent_info(); + bool _internal_has_euler_angles() const; + public: + void clear_euler_angles(); + const ::viam::app::v1::Orientation_EulerAngles& euler_angles() const; + PROTOBUF_NODISCARD ::viam::app::v1::Orientation_EulerAngles* release_euler_angles(); + ::viam::app::v1::Orientation_EulerAngles* mutable_euler_angles(); + void set_allocated_euler_angles(::viam::app::v1::Orientation_EulerAngles* euler_angles); + private: + const ::viam::app::v1::Orientation_EulerAngles& _internal_euler_angles() const; + ::viam::app::v1::Orientation_EulerAngles* _internal_mutable_euler_angles(); + public: + void unsafe_arena_set_allocated_euler_angles( + ::viam::app::v1::Orientation_EulerAngles* euler_angles); + ::viam::app::v1::Orientation_EulerAngles* unsafe_arena_release_euler_angles(); + // .viam.app.v1.Orientation.AxisAngles axis_angles = 5 [json_name = "axisAngles"]; + bool has_axis_angles() const; + private: + bool _internal_has_axis_angles() const; public: - // @@protoc_insertion_point(class_scope:viam.app.v1.ConfigRequest) + void clear_axis_angles(); + const ::viam::app::v1::Orientation_AxisAngles& axis_angles() const; + PROTOBUF_NODISCARD ::viam::app::v1::Orientation_AxisAngles* release_axis_angles(); + ::viam::app::v1::Orientation_AxisAngles* mutable_axis_angles(); + void set_allocated_axis_angles(::viam::app::v1::Orientation_AxisAngles* axis_angles); + private: + const ::viam::app::v1::Orientation_AxisAngles& _internal_axis_angles() const; + ::viam::app::v1::Orientation_AxisAngles* _internal_mutable_axis_angles(); + public: + void unsafe_arena_set_allocated_axis_angles( + ::viam::app::v1::Orientation_AxisAngles* axis_angles); + ::viam::app::v1::Orientation_AxisAngles* unsafe_arena_release_axis_angles(); + + // .viam.app.v1.Orientation.Quaternion quaternion = 6 [json_name = "quaternion"]; + bool has_quaternion() const; + private: + bool _internal_has_quaternion() const; + public: + void clear_quaternion(); + const ::viam::app::v1::Orientation_Quaternion& quaternion() const; + PROTOBUF_NODISCARD ::viam::app::v1::Orientation_Quaternion* release_quaternion(); + ::viam::app::v1::Orientation_Quaternion* mutable_quaternion(); + void set_allocated_quaternion(::viam::app::v1::Orientation_Quaternion* quaternion); + private: + const ::viam::app::v1::Orientation_Quaternion& _internal_quaternion() const; + ::viam::app::v1::Orientation_Quaternion* _internal_mutable_quaternion(); + public: + void unsafe_arena_set_allocated_quaternion( + ::viam::app::v1::Orientation_Quaternion* quaternion); + ::viam::app::v1::Orientation_Quaternion* unsafe_arena_release_quaternion(); + + void clear_type(); + TypeCase type_case() const; + // @@protoc_insertion_point(class_scope:viam.app.v1.Orientation) private: class _Internal; + void set_has_no_orientation(); + void set_has_vector_radians(); + void set_has_vector_degrees(); + void set_has_euler_angles(); + void set_has_axis_angles(); + void set_has_quaternion(); + + inline bool has_type() const; + inline void clear_has_type(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + union TypeUnion { + constexpr TypeUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::viam::app::v1::Orientation_NoOrientation* no_orientation_; + ::viam::app::v1::Orientation_OrientationVectorRadians* vector_radians_; + ::viam::app::v1::Orientation_OrientationVectorDegrees* vector_degrees_; + ::viam::app::v1::Orientation_EulerAngles* euler_angles_; + ::viam::app::v1::Orientation_AxisAngles* axis_angles_; + ::viam::app::v1::Orientation_Quaternion* quaternion_; + } type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 36, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr id_; - ::viam::app::v1::AgentInfo* agent_info_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; friend struct ::TableStruct_app_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class CloudConfig final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.CloudConfig) */ { +class RemoteConfig final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.RemoteConfig) */ { public: - inline CloudConfig() : CloudConfig(nullptr) {} - ~CloudConfig() override; - template - explicit PROTOBUF_CONSTEXPR CloudConfig(::google::protobuf::internal::ConstantInitialized); + inline RemoteConfig() : RemoteConfig(nullptr) {} + ~RemoteConfig() override; + explicit PROTOBUF_CONSTEXPR RemoteConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline CloudConfig(const CloudConfig& from) - : CloudConfig(nullptr, from) {} - CloudConfig(CloudConfig&& from) noexcept - : CloudConfig() { + RemoteConfig(const RemoteConfig& from); + RemoteConfig(RemoteConfig&& from) noexcept + : RemoteConfig() { *this = ::std::move(from); } - inline CloudConfig& operator=(const CloudConfig& from) { + inline RemoteConfig& operator=(const RemoteConfig& from) { CopyFrom(from); return *this; } - inline CloudConfig& operator=(CloudConfig&& from) noexcept { + inline RemoteConfig& operator=(RemoteConfig&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -6296,372 +5473,304 @@ class CloudConfig final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CloudConfig& default_instance() { + static const RemoteConfig& default_instance() { return *internal_default_instance(); } - static inline const CloudConfig* internal_default_instance() { - return reinterpret_cast( - &_CloudConfig_default_instance_); + static inline const RemoteConfig* internal_default_instance() { + return reinterpret_cast( + &_RemoteConfig_default_instance_); } static constexpr int kIndexInFileMessages = - 4; + 26; - friend void swap(CloudConfig& a, CloudConfig& b) { + friend void swap(RemoteConfig& a, RemoteConfig& b) { a.Swap(&b); } - inline void Swap(CloudConfig* other) { + inline void Swap(RemoteConfig* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CloudConfig* other) { + void UnsafeArenaSwap(RemoteConfig* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CloudConfig* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const CloudConfig& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CloudConfig& from) { - CloudConfig::MergeImpl(*this, from); + RemoteConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const RemoteConfig& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const RemoteConfig& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(CloudConfig* other); + void SetCachedSize(int size) const final; + void InternalSwap(RemoteConfig* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.CloudConfig"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.RemoteConfig"; } protected: - explicit CloudConfig(::google::protobuf::Arena* arena); - CloudConfig(::google::protobuf::Arena* arena, const CloudConfig& from); + explicit RemoteConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kLocationSecretsFieldNumber = 9, - kIdFieldNumber = 1, - kFqdnFieldNumber = 2, - kLocalFqdnFieldNumber = 3, - kManagedByFieldNumber = 4, - kSignalingAddressFieldNumber = 5, - kLocationSecretFieldNumber = 7, - kSecretFieldNumber = 8, - kPrimaryOrgIdFieldNumber = 10, - kLocationIdFieldNumber = 11, - kMachineIdFieldNumber = 12, - kSignalingInsecureFieldNumber = 6, + kServiceConfigsFieldNumber = 9, + kNameFieldNumber = 1, + kAddressFieldNumber = 2, + kManagedByFieldNumber = 5, + kSecretFieldNumber = 10, + kFrameFieldNumber = 3, + kAuthFieldNumber = 4, + kConnectionCheckIntervalFieldNumber = 7, + kReconnectIntervalFieldNumber = 8, + kInsecureFieldNumber = 6, }; - // repeated .viam.app.v1.LocationSecret location_secrets = 9 [json_name = "locationSecrets"]; - int location_secrets_size() const; + // repeated .viam.app.v1.ResourceLevelServiceConfig service_configs = 9 [json_name = "serviceConfigs", (.tagger.v1.tags) = "json:\"service_config\""]; + int service_configs_size() const; private: - int _internal_location_secrets_size() const; - + int _internal_service_configs_size() const; public: - void clear_location_secrets() ; - ::viam::app::v1::LocationSecret* mutable_location_secrets(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::LocationSecret >* - mutable_location_secrets(); + void clear_service_configs(); + ::viam::app::v1::ResourceLevelServiceConfig* mutable_service_configs(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ResourceLevelServiceConfig >* + mutable_service_configs(); private: - const ::google::protobuf::RepeatedPtrField<::viam::app::v1::LocationSecret>& _internal_location_secrets() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::LocationSecret>* _internal_mutable_location_secrets(); + const ::viam::app::v1::ResourceLevelServiceConfig& _internal_service_configs(int index) const; + ::viam::app::v1::ResourceLevelServiceConfig* _internal_add_service_configs(); public: - const ::viam::app::v1::LocationSecret& location_secrets(int index) const; - ::viam::app::v1::LocationSecret* add_location_secrets(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::LocationSecret >& - location_secrets() const; - // string id = 1 [json_name = "id"]; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); + const ::viam::app::v1::ResourceLevelServiceConfig& service_configs(int index) const; + ::viam::app::v1::ResourceLevelServiceConfig* add_service_configs(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ResourceLevelServiceConfig >& + service_configs() const; + // 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_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); - + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); public: - // string fqdn = 2 [json_name = "fqdn"]; - void clear_fqdn() ; - const std::string& fqdn() const; - template - void set_fqdn(Arg_&& arg, Args_... args); - std::string* mutable_fqdn(); - PROTOBUF_NODISCARD std::string* release_fqdn(); - void set_allocated_fqdn(std::string* value); + // string address = 2 [json_name = "address"]; + void clear_address(); + const std::string& address() const; + template + void set_address(ArgT0&& arg0, ArgT... args); + std::string* mutable_address(); + PROTOBUF_NODISCARD std::string* release_address(); + void set_allocated_address(std::string* address); private: - const std::string& _internal_fqdn() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_fqdn( - const std::string& value); - std::string* _internal_mutable_fqdn(); - + const std::string& _internal_address() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_address(const std::string& value); + std::string* _internal_mutable_address(); public: - // string local_fqdn = 3 [json_name = "localFqdn"]; - void clear_local_fqdn() ; - const std::string& local_fqdn() const; - template - void set_local_fqdn(Arg_&& arg, Args_... args); - std::string* mutable_local_fqdn(); - PROTOBUF_NODISCARD std::string* release_local_fqdn(); - void set_allocated_local_fqdn(std::string* value); - - private: - const std::string& _internal_local_fqdn() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_local_fqdn( - const std::string& value); - std::string* _internal_mutable_local_fqdn(); - public: - // string managed_by = 4 [json_name = "managedBy"]; - void clear_managed_by() ; + // string managed_by = 5 [json_name = "managedBy"]; + void clear_managed_by(); const std::string& managed_by() const; - template - void set_managed_by(Arg_&& arg, Args_... args); + template + void set_managed_by(ArgT0&& arg0, ArgT... args); std::string* mutable_managed_by(); - PROTOBUF_NODISCARD std::string* release_managed_by(); - void set_allocated_managed_by(std::string* value); - - private: - const std::string& _internal_managed_by() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_managed_by( - const std::string& value); - std::string* _internal_mutable_managed_by(); - - public: - // string signaling_address = 5 [json_name = "signalingAddress"]; - void clear_signaling_address() ; - const std::string& signaling_address() const; - template - void set_signaling_address(Arg_&& arg, Args_... args); - std::string* mutable_signaling_address(); - PROTOBUF_NODISCARD std::string* release_signaling_address(); - void set_allocated_signaling_address(std::string* value); - - private: - const std::string& _internal_signaling_address() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_signaling_address( - const std::string& value); - std::string* _internal_mutable_signaling_address(); - - public: - // string location_secret = 7 [json_name = "locationSecret", deprecated = true]; - [[deprecated]] void clear_location_secret() ; - [[deprecated]] const std::string& location_secret() const; - template - [[deprecated]] void set_location_secret(Arg_&& arg, Args_... args); - [[deprecated]] std::string* mutable_location_secret(); - [[deprecated]] PROTOBUF_NODISCARD std::string* release_location_secret(); - [[deprecated]] void set_allocated_location_secret(std::string* value); - + PROTOBUF_NODISCARD std::string* release_managed_by(); + void set_allocated_managed_by(std::string* managed_by); private: - const std::string& _internal_location_secret() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_location_secret( - const std::string& value); - std::string* _internal_mutable_location_secret(); - + const std::string& _internal_managed_by() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_managed_by(const std::string& value); + std::string* _internal_mutable_managed_by(); public: - // string secret = 8 [json_name = "secret"]; - void clear_secret() ; + + // string secret = 10 [json_name = "secret"]; + void clear_secret(); const std::string& secret() const; - template - void set_secret(Arg_&& arg, Args_... args); + template + void set_secret(ArgT0&& arg0, ArgT... args); std::string* mutable_secret(); PROTOBUF_NODISCARD std::string* release_secret(); - void set_allocated_secret(std::string* value); - + void set_allocated_secret(std::string* secret); private: const std::string& _internal_secret() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_secret( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_secret(const std::string& value); std::string* _internal_mutable_secret(); - public: - // string primary_org_id = 10 [json_name = "primaryOrgId"]; - void clear_primary_org_id() ; - const std::string& primary_org_id() const; - template - void set_primary_org_id(Arg_&& arg, Args_... args); - std::string* mutable_primary_org_id(); - PROTOBUF_NODISCARD std::string* release_primary_org_id(); - void set_allocated_primary_org_id(std::string* value); + // .viam.app.v1.Frame frame = 3 [json_name = "frame"]; + bool has_frame() const; private: - const std::string& _internal_primary_org_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_primary_org_id( - const std::string& value); - std::string* _internal_mutable_primary_org_id(); - + bool _internal_has_frame() const; public: - // string location_id = 11 [json_name = "locationId"]; - void clear_location_id() ; - const std::string& location_id() const; - template - void set_location_id(Arg_&& arg, Args_... args); - std::string* mutable_location_id(); - PROTOBUF_NODISCARD std::string* release_location_id(); - void set_allocated_location_id(std::string* value); - + void clear_frame(); + const ::viam::app::v1::Frame& frame() const; + PROTOBUF_NODISCARD ::viam::app::v1::Frame* release_frame(); + ::viam::app::v1::Frame* mutable_frame(); + void set_allocated_frame(::viam::app::v1::Frame* frame); private: - const std::string& _internal_location_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_location_id( - const std::string& value); - std::string* _internal_mutable_location_id(); - + const ::viam::app::v1::Frame& _internal_frame() const; + ::viam::app::v1::Frame* _internal_mutable_frame(); public: - // string machine_id = 12 [json_name = "machineId"]; - void clear_machine_id() ; - const std::string& machine_id() const; - template - void set_machine_id(Arg_&& arg, Args_... args); - std::string* mutable_machine_id(); - PROTOBUF_NODISCARD std::string* release_machine_id(); - void set_allocated_machine_id(std::string* value); + void unsafe_arena_set_allocated_frame( + ::viam::app::v1::Frame* frame); + ::viam::app::v1::Frame* unsafe_arena_release_frame(); + // .viam.app.v1.RemoteAuth auth = 4 [json_name = "auth"]; + bool has_auth() const; private: - const std::string& _internal_machine_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_machine_id( - const std::string& value); - std::string* _internal_mutable_machine_id(); + bool _internal_has_auth() const; + public: + void clear_auth(); + const ::viam::app::v1::RemoteAuth& auth() const; + PROTOBUF_NODISCARD ::viam::app::v1::RemoteAuth* release_auth(); + ::viam::app::v1::RemoteAuth* mutable_auth(); + void set_allocated_auth(::viam::app::v1::RemoteAuth* auth); + private: + const ::viam::app::v1::RemoteAuth& _internal_auth() const; + ::viam::app::v1::RemoteAuth* _internal_mutable_auth(); + public: + void unsafe_arena_set_allocated_auth( + ::viam::app::v1::RemoteAuth* auth); + ::viam::app::v1::RemoteAuth* unsafe_arena_release_auth(); + // .google.protobuf.Duration connection_check_interval = 7 [json_name = "connectionCheckInterval"]; + bool has_connection_check_interval() const; + private: + bool _internal_has_connection_check_interval() const; public: - // bool signaling_insecure = 6 [json_name = "signalingInsecure"]; - void clear_signaling_insecure() ; - bool signaling_insecure() const; - void set_signaling_insecure(bool value); + void clear_connection_check_interval(); + const ::PROTOBUF_NAMESPACE_ID::Duration& connection_check_interval() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Duration* release_connection_check_interval(); + ::PROTOBUF_NAMESPACE_ID::Duration* mutable_connection_check_interval(); + void set_allocated_connection_check_interval(::PROTOBUF_NAMESPACE_ID::Duration* connection_check_interval); + private: + const ::PROTOBUF_NAMESPACE_ID::Duration& _internal_connection_check_interval() const; + ::PROTOBUF_NAMESPACE_ID::Duration* _internal_mutable_connection_check_interval(); + public: + void unsafe_arena_set_allocated_connection_check_interval( + ::PROTOBUF_NAMESPACE_ID::Duration* connection_check_interval); + ::PROTOBUF_NAMESPACE_ID::Duration* unsafe_arena_release_connection_check_interval(); + // .google.protobuf.Duration reconnect_interval = 8 [json_name = "reconnectInterval"]; + bool has_reconnect_interval() const; private: - bool _internal_signaling_insecure() const; - void _internal_set_signaling_insecure(bool value); + bool _internal_has_reconnect_interval() const; + public: + void clear_reconnect_interval(); + const ::PROTOBUF_NAMESPACE_ID::Duration& reconnect_interval() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Duration* release_reconnect_interval(); + ::PROTOBUF_NAMESPACE_ID::Duration* mutable_reconnect_interval(); + void set_allocated_reconnect_interval(::PROTOBUF_NAMESPACE_ID::Duration* reconnect_interval); + private: + const ::PROTOBUF_NAMESPACE_ID::Duration& _internal_reconnect_interval() const; + ::PROTOBUF_NAMESPACE_ID::Duration* _internal_mutable_reconnect_interval(); + public: + void unsafe_arena_set_allocated_reconnect_interval( + ::PROTOBUF_NAMESPACE_ID::Duration* reconnect_interval); + ::PROTOBUF_NAMESPACE_ID::Duration* unsafe_arena_release_reconnect_interval(); + // bool insecure = 6 [json_name = "insecure"]; + void clear_insecure(); + bool insecure() const; + void set_insecure(bool value); + private: + bool _internal_insecure() const; + void _internal_set_insecure(bool value); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.CloudConfig) + + // @@protoc_insertion_point(class_scope:viam.app.v1.RemoteConfig) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 4, 12, 1, - 139, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::LocationSecret > location_secrets_; - ::google::protobuf::internal::ArenaStringPtr id_; - ::google::protobuf::internal::ArenaStringPtr fqdn_; - ::google::protobuf::internal::ArenaStringPtr local_fqdn_; - ::google::protobuf::internal::ArenaStringPtr managed_by_; - ::google::protobuf::internal::ArenaStringPtr signaling_address_; - ::google::protobuf::internal::ArenaStringPtr location_secret_; - ::google::protobuf::internal::ArenaStringPtr secret_; - ::google::protobuf::internal::ArenaStringPtr primary_org_id_; - ::google::protobuf::internal::ArenaStringPtr location_id_; - ::google::protobuf::internal::ArenaStringPtr machine_id_; - bool signaling_insecure_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ResourceLevelServiceConfig > service_configs_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr address_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr managed_by_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr secret_; + ::viam::app::v1::Frame* frame_; + ::viam::app::v1::RemoteAuth* auth_; + ::PROTOBUF_NAMESPACE_ID::Duration* connection_check_interval_; + ::PROTOBUF_NAMESPACE_ID::Duration* reconnect_interval_; + bool insecure_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class AuthHandlerConfig final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.AuthHandlerConfig) */ { +class RemoteAuth_Credentials final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.RemoteAuth.Credentials) */ { public: - inline AuthHandlerConfig() : AuthHandlerConfig(nullptr) {} - ~AuthHandlerConfig() override; - template - explicit PROTOBUF_CONSTEXPR AuthHandlerConfig(::google::protobuf::internal::ConstantInitialized); + inline RemoteAuth_Credentials() : RemoteAuth_Credentials(nullptr) {} + ~RemoteAuth_Credentials() override; + explicit PROTOBUF_CONSTEXPR RemoteAuth_Credentials(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline AuthHandlerConfig(const AuthHandlerConfig& from) - : AuthHandlerConfig(nullptr, from) {} - AuthHandlerConfig(AuthHandlerConfig&& from) noexcept - : AuthHandlerConfig() { + RemoteAuth_Credentials(const RemoteAuth_Credentials& from); + RemoteAuth_Credentials(RemoteAuth_Credentials&& from) noexcept + : RemoteAuth_Credentials() { *this = ::std::move(from); } - inline AuthHandlerConfig& operator=(const AuthHandlerConfig& from) { + inline RemoteAuth_Credentials& operator=(const RemoteAuth_Credentials& from) { CopyFrom(from); return *this; } - inline AuthHandlerConfig& operator=(AuthHandlerConfig&& from) noexcept { + inline RemoteAuth_Credentials& operator=(RemoteAuth_Credentials&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -6671,190 +5780,156 @@ class AuthHandlerConfig final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const AuthHandlerConfig& default_instance() { + static const RemoteAuth_Credentials& default_instance() { return *internal_default_instance(); } - static inline const AuthHandlerConfig* internal_default_instance() { - return reinterpret_cast( - &_AuthHandlerConfig_default_instance_); + static inline const RemoteAuth_Credentials* internal_default_instance() { + return reinterpret_cast( + &_RemoteAuth_Credentials_default_instance_); } static constexpr int kIndexInFileMessages = - 15; + 27; - friend void swap(AuthHandlerConfig& a, AuthHandlerConfig& b) { + friend void swap(RemoteAuth_Credentials& a, RemoteAuth_Credentials& b) { a.Swap(&b); } - inline void Swap(AuthHandlerConfig* other) { + inline void Swap(RemoteAuth_Credentials* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(AuthHandlerConfig* other) { + void UnsafeArenaSwap(RemoteAuth_Credentials* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - AuthHandlerConfig* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const AuthHandlerConfig& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const AuthHandlerConfig& from) { - AuthHandlerConfig::MergeImpl(*this, from); + RemoteAuth_Credentials* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const RemoteAuth_Credentials& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const RemoteAuth_Credentials& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(AuthHandlerConfig* other); + void SetCachedSize(int size) const final; + void InternalSwap(RemoteAuth_Credentials* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.AuthHandlerConfig"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.RemoteAuth.Credentials"; } protected: - explicit AuthHandlerConfig(::google::protobuf::Arena* arena); - AuthHandlerConfig(::google::protobuf::Arena* arena, const AuthHandlerConfig& from); + explicit RemoteAuth_Credentials(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kConfigFieldNumber = 5, + kPayloadFieldNumber = 2, kTypeFieldNumber = 1, }; - // .google.protobuf.Struct config = 5 [json_name = "config"]; - bool has_config() const; - void clear_config() ; - const ::google::protobuf::Struct& config() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_config(); - ::google::protobuf::Struct* mutable_config(); - void set_allocated_config(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_config(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_config(); - + // string payload = 2 [json_name = "payload"]; + void clear_payload(); + const std::string& payload() const; + template + void set_payload(ArgT0&& arg0, ArgT... args); + std::string* mutable_payload(); + PROTOBUF_NODISCARD std::string* release_payload(); + void set_allocated_payload(std::string* payload); private: - const ::google::protobuf::Struct& _internal_config() const; - ::google::protobuf::Struct* _internal_mutable_config(); - + const std::string& _internal_payload() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_payload(const std::string& value); + std::string* _internal_mutable_payload(); public: + // .viam.app.v1.CredentialsType type = 1 [json_name = "type"]; - void clear_type() ; + void clear_type(); ::viam::app::v1::CredentialsType type() const; void set_type(::viam::app::v1::CredentialsType value); - private: ::viam::app::v1::CredentialsType _internal_type() const; void _internal_set_type(::viam::app::v1::CredentialsType value); - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.AuthHandlerConfig) + + // @@protoc_insertion_point(class_scope:viam.app.v1.RemoteAuth.Credentials) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 2, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::Struct* config_; - int type_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr payload_; + int type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ServiceConfig final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ServiceConfig) */ { +class RemoteAuth final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.RemoteAuth) */ { public: - inline ServiceConfig() : ServiceConfig(nullptr) {} - ~ServiceConfig() override; - template - explicit PROTOBUF_CONSTEXPR ServiceConfig(::google::protobuf::internal::ConstantInitialized); + inline RemoteAuth() : RemoteAuth(nullptr) {} + ~RemoteAuth() override; + explicit PROTOBUF_CONSTEXPR RemoteAuth(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ServiceConfig(const ServiceConfig& from) - : ServiceConfig(nullptr, from) {} - ServiceConfig(ServiceConfig&& from) noexcept - : ServiceConfig() { + RemoteAuth(const RemoteAuth& from); + RemoteAuth(RemoteAuth&& from) noexcept + : RemoteAuth() { *this = ::std::move(from); } - inline ServiceConfig& operator=(const ServiceConfig& from) { + inline RemoteAuth& operator=(const RemoteAuth& from) { CopyFrom(from); return *this; } - inline ServiceConfig& operator=(ServiceConfig&& from) noexcept { + inline RemoteAuth& operator=(RemoteAuth&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -6864,335 +5939,167 @@ class ServiceConfig final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ServiceConfig& default_instance() { + static const RemoteAuth& default_instance() { return *internal_default_instance(); } - static inline const ServiceConfig* internal_default_instance() { - return reinterpret_cast( - &_ServiceConfig_default_instance_); + static inline const RemoteAuth* internal_default_instance() { + return reinterpret_cast( + &_RemoteAuth_default_instance_); } static constexpr int kIndexInFileMessages = - 9; + 28; - friend void swap(ServiceConfig& a, ServiceConfig& b) { + friend void swap(RemoteAuth& a, RemoteAuth& b) { a.Swap(&b); } - inline void Swap(ServiceConfig* other) { + inline void Swap(RemoteAuth* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ServiceConfig* other) { + void UnsafeArenaSwap(RemoteAuth* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ServiceConfig* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ServiceConfig& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ServiceConfig& from) { - ServiceConfig::MergeImpl(*this, from); + RemoteAuth* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const RemoteAuth& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const RemoteAuth& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(ServiceConfig* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.ServiceConfig"; - } - protected: - explicit ServiceConfig(::google::protobuf::Arena* arena); - ServiceConfig(::google::protobuf::Arena* arena, const ServiceConfig& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kDependsOnFieldNumber = 5, - kServiceConfigsFieldNumber = 10, - kNameFieldNumber = 1, - kNamespaceFieldNumber = 2, - kTypeFieldNumber = 3, - kModelFieldNumber = 6, - kApiFieldNumber = 9, - kAttributesFieldNumber = 4, - kLogConfigurationFieldNumber = 11, - }; - // repeated string depends_on = 5 [json_name = "dependsOn"]; - int depends_on_size() const; - private: - int _internal_depends_on_size() const; - - public: - void clear_depends_on() ; - const std::string& depends_on(int index) const; - std::string* mutable_depends_on(int index); - void set_depends_on(int index, const std::string& value); - void set_depends_on(int index, std::string&& value); - void set_depends_on(int index, const char* value); - void set_depends_on(int index, const char* value, std::size_t size); - void set_depends_on(int index, absl::string_view value); - std::string* add_depends_on(); - void add_depends_on(const std::string& value); - void add_depends_on(std::string&& value); - void add_depends_on(const char* value); - void add_depends_on(const char* value, std::size_t size); - void add_depends_on(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& depends_on() const; - ::google::protobuf::RepeatedPtrField* mutable_depends_on(); - - private: - const ::google::protobuf::RepeatedPtrField& _internal_depends_on() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_depends_on(); - - public: - // repeated .viam.app.v1.ResourceLevelServiceConfig service_configs = 10 [json_name = "serviceConfigs", (.tagger.v1.tags) = "json:\"service_config\""]; - int service_configs_size() const; - private: - int _internal_service_configs_size() const; - - public: - void clear_service_configs() ; - ::viam::app::v1::ResourceLevelServiceConfig* mutable_service_configs(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::ResourceLevelServiceConfig >* - mutable_service_configs(); - private: - const ::google::protobuf::RepeatedPtrField<::viam::app::v1::ResourceLevelServiceConfig>& _internal_service_configs() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::ResourceLevelServiceConfig>* _internal_mutable_service_configs(); - public: - const ::viam::app::v1::ResourceLevelServiceConfig& service_configs(int index) const; - ::viam::app::v1::ResourceLevelServiceConfig* add_service_configs(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::ResourceLevelServiceConfig >& - service_configs() const; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - - public: - // string namespace = 2 [json_name = "namespace"]; - void clear_namespace_() ; - const std::string& namespace_() const; - template - void set_namespace_(Arg_&& arg, Args_... args); - std::string* mutable_namespace_(); - PROTOBUF_NODISCARD std::string* release_namespace_(); - void set_allocated_namespace_(std::string* value); - + 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: - const std::string& _internal_namespace_() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_namespace_( - const std::string& value); - std::string* _internal_mutable_namespace_(); + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(RemoteAuth* other); + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.RemoteAuth"; + } + protected: + explicit RemoteAuth(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - // string type = 3 [json_name = "type"]; - void clear_type() ; - const std::string& type() const; - template - void set_type(Arg_&& arg, Args_... args); - std::string* mutable_type(); - PROTOBUF_NODISCARD std::string* release_type(); - void set_allocated_type(std::string* value); - private: - const std::string& _internal_type() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_type( - const std::string& value); - std::string* _internal_mutable_type(); + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: - // string model = 6 [json_name = "model"]; - void clear_model() ; - const std::string& model() const; - template - void set_model(Arg_&& arg, Args_... args); - std::string* mutable_model(); - PROTOBUF_NODISCARD std::string* release_model(); - void set_allocated_model(std::string* value); + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - const std::string& _internal_model() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_model( - const std::string& value); - std::string* _internal_mutable_model(); + // nested types ---------------------------------------------------- - public: - // string api = 9 [json_name = "api"]; - void clear_api() ; - const std::string& api() const; - template - void set_api(Arg_&& arg, Args_... args); - std::string* mutable_api(); - PROTOBUF_NODISCARD std::string* release_api(); - void set_allocated_api(std::string* value); + typedef RemoteAuth_Credentials Credentials; - private: - const std::string& _internal_api() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_api( - const std::string& value); - std::string* _internal_mutable_api(); + // accessors ------------------------------------------------------- + enum : int { + kEntityFieldNumber = 2, + kCredentialsFieldNumber = 1, + }; + // string entity = 2 [json_name = "entity"]; + void clear_entity(); + const std::string& entity() const; + template + void set_entity(ArgT0&& arg0, ArgT... args); + std::string* mutable_entity(); + PROTOBUF_NODISCARD std::string* release_entity(); + void set_allocated_entity(std::string* entity); + private: + const std::string& _internal_entity() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_entity(const std::string& value); + std::string* _internal_mutable_entity(); public: - // .google.protobuf.Struct attributes = 4 [json_name = "attributes"]; - bool has_attributes() const; - void clear_attributes() ; - const ::google::protobuf::Struct& attributes() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_attributes(); - ::google::protobuf::Struct* mutable_attributes(); - void set_allocated_attributes(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_attributes(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_attributes(); + // .viam.app.v1.RemoteAuth.Credentials credentials = 1 [json_name = "credentials"]; + bool has_credentials() const; private: - const ::google::protobuf::Struct& _internal_attributes() const; - ::google::protobuf::Struct* _internal_mutable_attributes(); - + bool _internal_has_credentials() const; public: - // .viam.app.v1.LogConfiguration log_configuration = 11 [json_name = "logConfiguration"]; - bool has_log_configuration() const; - void clear_log_configuration() ; - const ::viam::app::v1::LogConfiguration& log_configuration() const; - PROTOBUF_NODISCARD ::viam::app::v1::LogConfiguration* release_log_configuration(); - ::viam::app::v1::LogConfiguration* mutable_log_configuration(); - void set_allocated_log_configuration(::viam::app::v1::LogConfiguration* value); - void unsafe_arena_set_allocated_log_configuration(::viam::app::v1::LogConfiguration* value); - ::viam::app::v1::LogConfiguration* unsafe_arena_release_log_configuration(); - + void clear_credentials(); + const ::viam::app::v1::RemoteAuth_Credentials& credentials() const; + PROTOBUF_NODISCARD ::viam::app::v1::RemoteAuth_Credentials* release_credentials(); + ::viam::app::v1::RemoteAuth_Credentials* mutable_credentials(); + void set_allocated_credentials(::viam::app::v1::RemoteAuth_Credentials* credentials); private: - const ::viam::app::v1::LogConfiguration& _internal_log_configuration() const; - ::viam::app::v1::LogConfiguration* _internal_mutable_log_configuration(); - + const ::viam::app::v1::RemoteAuth_Credentials& _internal_credentials() const; + ::viam::app::v1::RemoteAuth_Credentials* _internal_mutable_credentials(); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.ServiceConfig) + void unsafe_arena_set_allocated_credentials( + ::viam::app::v1::RemoteAuth_Credentials* credentials); + ::viam::app::v1::RemoteAuth_Credentials* unsafe_arena_release_credentials(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.RemoteAuth) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 4, 9, 3, - 77, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField depends_on_; - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::ResourceLevelServiceConfig > service_configs_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr namespace__; - ::google::protobuf::internal::ArenaStringPtr type_; - ::google::protobuf::internal::ArenaStringPtr model_; - ::google::protobuf::internal::ArenaStringPtr api_; - ::google::protobuf::Struct* attributes_; - ::viam::app::v1::LogConfiguration* log_configuration_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr entity_; + ::viam::app::v1::RemoteAuth_Credentials* credentials_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class NetworkConfig final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.NetworkConfig) */ { +class AgentInfo final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.AgentInfo) */ { public: - inline NetworkConfig() : NetworkConfig(nullptr) {} - ~NetworkConfig() override; - template - explicit PROTOBUF_CONSTEXPR NetworkConfig(::google::protobuf::internal::ConstantInitialized); + inline AgentInfo() : AgentInfo(nullptr) {} + ~AgentInfo() override; + explicit PROTOBUF_CONSTEXPR AgentInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline NetworkConfig(const NetworkConfig& from) - : NetworkConfig(nullptr, from) {} - NetworkConfig(NetworkConfig&& from) noexcept - : NetworkConfig() { + AgentInfo(const AgentInfo& from); + AgentInfo(AgentInfo&& from) noexcept + : AgentInfo() { *this = ::std::move(from); } - inline NetworkConfig& operator=(const NetworkConfig& from) { + inline AgentInfo& operator=(const AgentInfo& from) { CopyFrom(from); return *this; } - inline NetworkConfig& operator=(NetworkConfig&& from) noexcept { + inline AgentInfo& operator=(AgentInfo&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -7202,250 +6109,266 @@ class NetworkConfig final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const NetworkConfig& default_instance() { + static const AgentInfo& default_instance() { return *internal_default_instance(); } - static inline const NetworkConfig* internal_default_instance() { - return reinterpret_cast( - &_NetworkConfig_default_instance_); + static inline const AgentInfo* internal_default_instance() { + return reinterpret_cast( + &_AgentInfo_default_instance_); } static constexpr int kIndexInFileMessages = - 10; + 29; - friend void swap(NetworkConfig& a, NetworkConfig& b) { + friend void swap(AgentInfo& a, AgentInfo& b) { a.Swap(&b); } - inline void Swap(NetworkConfig* other) { + inline void Swap(AgentInfo* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(NetworkConfig* other) { + void UnsafeArenaSwap(AgentInfo* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - NetworkConfig* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const NetworkConfig& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const NetworkConfig& from) { - NetworkConfig::MergeImpl(*this, from); + AgentInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const AgentInfo& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const AgentInfo& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(NetworkConfig* other); + void SetCachedSize(int size) const final; + void InternalSwap(AgentInfo* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.NetworkConfig"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.AgentInfo"; } protected: - explicit NetworkConfig(::google::protobuf::Arena* arena); - NetworkConfig(::google::protobuf::Arena* arena, const NetworkConfig& from); + explicit AgentInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kFqdnFieldNumber = 1, - kBindAddressFieldNumber = 2, - kTlsCertFileFieldNumber = 3, - kTlsKeyFileFieldNumber = 4, - kSessionsFieldNumber = 5, + kIpsFieldNumber = 3, + kPlatformTagsFieldNumber = 7, + kHostFieldNumber = 1, + kOsFieldNumber = 2, + kVersionFieldNumber = 4, + kGitRevisionFieldNumber = 5, + kPlatformFieldNumber = 6, }; - // string fqdn = 1 [json_name = "fqdn"]; - void clear_fqdn() ; - const std::string& fqdn() const; - template - void set_fqdn(Arg_&& arg, Args_... args); - std::string* mutable_fqdn(); - PROTOBUF_NODISCARD std::string* release_fqdn(); - void set_allocated_fqdn(std::string* value); - + // repeated string ips = 3 [json_name = "ips"]; + int ips_size() const; private: - const std::string& _internal_fqdn() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_fqdn( - const std::string& value); - std::string* _internal_mutable_fqdn(); - + int _internal_ips_size() const; public: - // string bind_address = 2 [json_name = "bindAddress"]; - void clear_bind_address() ; - const std::string& bind_address() const; - template - void set_bind_address(Arg_&& arg, Args_... args); - std::string* mutable_bind_address(); - PROTOBUF_NODISCARD std::string* release_bind_address(); - void set_allocated_bind_address(std::string* value); - + void clear_ips(); + const std::string& ips(int index) const; + std::string* mutable_ips(int index); + void set_ips(int index, const std::string& value); + void set_ips(int index, std::string&& value); + void set_ips(int index, const char* value); + void set_ips(int index, const char* value, size_t size); + std::string* add_ips(); + void add_ips(const std::string& value); + void add_ips(std::string&& value); + void add_ips(const char* value); + void add_ips(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& ips() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_ips(); private: - const std::string& _internal_bind_address() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_bind_address( - const std::string& value); - std::string* _internal_mutable_bind_address(); - + const std::string& _internal_ips(int index) const; + std::string* _internal_add_ips(); public: - // string tls_cert_file = 3 [json_name = "tlsCertFile"]; - void clear_tls_cert_file() ; - const std::string& tls_cert_file() const; - template - void set_tls_cert_file(Arg_&& arg, Args_... args); - std::string* mutable_tls_cert_file(); - PROTOBUF_NODISCARD std::string* release_tls_cert_file(); - void set_allocated_tls_cert_file(std::string* value); + // repeated string platform_tags = 7 [json_name = "platformTags"]; + int platform_tags_size() const; private: - const std::string& _internal_tls_cert_file() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_tls_cert_file( - const std::string& value); - std::string* _internal_mutable_tls_cert_file(); + int _internal_platform_tags_size() const; + public: + void clear_platform_tags(); + const std::string& platform_tags(int index) const; + std::string* mutable_platform_tags(int index); + void set_platform_tags(int index, const std::string& value); + void set_platform_tags(int index, std::string&& value); + void set_platform_tags(int index, const char* value); + void set_platform_tags(int index, const char* value, size_t size); + std::string* add_platform_tags(); + void add_platform_tags(const std::string& value); + void add_platform_tags(std::string&& value); + void add_platform_tags(const char* value); + void add_platform_tags(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& platform_tags() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_platform_tags(); + private: + const std::string& _internal_platform_tags(int index) const; + std::string* _internal_add_platform_tags(); + public: + // string host = 1 [json_name = "host"]; + void clear_host(); + const std::string& host() const; + template + void set_host(ArgT0&& arg0, ArgT... args); + std::string* mutable_host(); + PROTOBUF_NODISCARD std::string* release_host(); + void set_allocated_host(std::string* host); + private: + const std::string& _internal_host() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_host(const std::string& value); + std::string* _internal_mutable_host(); public: - // string tls_key_file = 4 [json_name = "tlsKeyFile"]; - void clear_tls_key_file() ; - const std::string& tls_key_file() const; - template - void set_tls_key_file(Arg_&& arg, Args_... args); - std::string* mutable_tls_key_file(); - PROTOBUF_NODISCARD std::string* release_tls_key_file(); - void set_allocated_tls_key_file(std::string* value); + // string os = 2 [json_name = "os"]; + void clear_os(); + const std::string& os() const; + template + void set_os(ArgT0&& arg0, ArgT... args); + std::string* mutable_os(); + PROTOBUF_NODISCARD std::string* release_os(); + void set_allocated_os(std::string* os); private: - const std::string& _internal_tls_key_file() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_tls_key_file( - const std::string& value); - std::string* _internal_mutable_tls_key_file(); + const std::string& _internal_os() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_os(const std::string& value); + std::string* _internal_mutable_os(); + public: + // string version = 4 [json_name = "version"]; + void clear_version(); + const std::string& version() const; + template + void set_version(ArgT0&& arg0, ArgT... args); + std::string* mutable_version(); + PROTOBUF_NODISCARD std::string* release_version(); + void set_allocated_version(std::string* version); + private: + const std::string& _internal_version() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_version(const std::string& value); + std::string* _internal_mutable_version(); public: - // .viam.app.v1.SessionsConfig sessions = 5 [json_name = "sessions"]; - bool has_sessions() const; - void clear_sessions() ; - const ::viam::app::v1::SessionsConfig& sessions() const; - PROTOBUF_NODISCARD ::viam::app::v1::SessionsConfig* release_sessions(); - ::viam::app::v1::SessionsConfig* mutable_sessions(); - void set_allocated_sessions(::viam::app::v1::SessionsConfig* value); - void unsafe_arena_set_allocated_sessions(::viam::app::v1::SessionsConfig* value); - ::viam::app::v1::SessionsConfig* unsafe_arena_release_sessions(); + // string git_revision = 5 [json_name = "gitRevision"]; + void clear_git_revision(); + const std::string& git_revision() const; + template + void set_git_revision(ArgT0&& arg0, ArgT... args); + std::string* mutable_git_revision(); + PROTOBUF_NODISCARD std::string* release_git_revision(); + void set_allocated_git_revision(std::string* git_revision); private: - const ::viam::app::v1::SessionsConfig& _internal_sessions() const; - ::viam::app::v1::SessionsConfig* _internal_mutable_sessions(); + const std::string& _internal_git_revision() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_git_revision(const std::string& value); + std::string* _internal_mutable_git_revision(); + public: + // optional string platform = 6 [json_name = "platform"]; + bool has_platform() const; + private: + bool _internal_has_platform() const; public: - // @@protoc_insertion_point(class_scope:viam.app.v1.NetworkConfig) + void clear_platform(); + const std::string& platform() const; + template + void set_platform(ArgT0&& arg0, ArgT... args); + std::string* mutable_platform(); + PROTOBUF_NODISCARD std::string* release_platform(); + void set_allocated_platform(std::string* platform); + private: + const std::string& _internal_platform() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_platform(const std::string& value); + std::string* _internal_mutable_platform(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.AgentInfo) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 5, 1, - 75, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr fqdn_; - ::google::protobuf::internal::ArenaStringPtr bind_address_; - ::google::protobuf::internal::ArenaStringPtr tls_cert_file_; - ::google::protobuf::internal::ArenaStringPtr tls_key_file_; - ::viam::app::v1::SessionsConfig* sessions_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField ips_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField platform_tags_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr host_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr os_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr version_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr git_revision_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr platform_; friend struct ::TableStruct_app_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class LogRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.LogRequest) */ { +class ConfigRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ConfigRequest) */ { public: - inline LogRequest() : LogRequest(nullptr) {} - ~LogRequest() override; - template - explicit PROTOBUF_CONSTEXPR LogRequest(::google::protobuf::internal::ConstantInitialized); + inline ConfigRequest() : ConfigRequest(nullptr) {} + ~ConfigRequest() override; + explicit PROTOBUF_CONSTEXPR ConfigRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline LogRequest(const LogRequest& from) - : LogRequest(nullptr, from) {} - LogRequest(LogRequest&& from) noexcept - : LogRequest() { + ConfigRequest(const ConfigRequest& from); + ConfigRequest(ConfigRequest&& from) noexcept + : ConfigRequest() { *this = ::std::move(from); } - inline LogRequest& operator=(const LogRequest& from) { + inline ConfigRequest& operator=(const ConfigRequest& from) { CopyFrom(from); return *this; } - inline LogRequest& operator=(LogRequest&& from) noexcept { + inline ConfigRequest& operator=(ConfigRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -7455,198 +6378,166 @@ class LogRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const LogRequest& default_instance() { + static const ConfigRequest& default_instance() { return *internal_default_instance(); } - static inline const LogRequest* internal_default_instance() { - return reinterpret_cast( - &_LogRequest_default_instance_); + static inline const ConfigRequest* internal_default_instance() { + return reinterpret_cast( + &_ConfigRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 34; + 30; - friend void swap(LogRequest& a, LogRequest& b) { + friend void swap(ConfigRequest& a, ConfigRequest& b) { a.Swap(&b); } - inline void Swap(LogRequest* other) { + inline void Swap(ConfigRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(LogRequest* other) { + void UnsafeArenaSwap(ConfigRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - LogRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const LogRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const LogRequest& from) { - LogRequest::MergeImpl(*this, from); + ConfigRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ConfigRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ConfigRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(LogRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(ConfigRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.LogRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.ConfigRequest"; } protected: - explicit LogRequest(::google::protobuf::Arena* arena); - LogRequest(::google::protobuf::Arena* arena, const LogRequest& from); + explicit ConfigRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kLogsFieldNumber = 2, kIdFieldNumber = 1, + kAgentInfoFieldNumber = 2, }; - // repeated .viam.common.v1.LogEntry logs = 2 [json_name = "logs"]; - int logs_size() const; - private: - int _internal_logs_size() const; - - public: - void clear_logs() ; - ::viam::common::v1::LogEntry* mutable_logs(int index); - ::google::protobuf::RepeatedPtrField< ::viam::common::v1::LogEntry >* - mutable_logs(); - private: - const ::google::protobuf::RepeatedPtrField<::viam::common::v1::LogEntry>& _internal_logs() const; - ::google::protobuf::RepeatedPtrField<::viam::common::v1::LogEntry>* _internal_mutable_logs(); - public: - const ::viam::common::v1::LogEntry& logs(int index) const; - ::viam::common::v1::LogEntry* add_logs(); - const ::google::protobuf::RepeatedPtrField< ::viam::common::v1::LogEntry >& - logs() const; // string id = 1 [json_name = "id"]; - void clear_id() ; + void clear_id(); const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); + template + void set_id(ArgT0&& arg0, ArgT... args); std::string* mutable_id(); PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - + void set_allocated_id(std::string* id); private: const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); std::string* _internal_mutable_id(); + public: + // optional .viam.app.v1.AgentInfo agent_info = 2 [json_name = "agentInfo"]; + bool has_agent_info() const; + private: + bool _internal_has_agent_info() const; public: - // @@protoc_insertion_point(class_scope:viam.app.v1.LogRequest) + void clear_agent_info(); + const ::viam::app::v1::AgentInfo& agent_info() const; + PROTOBUF_NODISCARD ::viam::app::v1::AgentInfo* release_agent_info(); + ::viam::app::v1::AgentInfo* mutable_agent_info(); + void set_allocated_agent_info(::viam::app::v1::AgentInfo* agent_info); + private: + const ::viam::app::v1::AgentInfo& _internal_agent_info() const; + ::viam::app::v1::AgentInfo* _internal_mutable_agent_info(); + public: + void unsafe_arena_set_allocated_agent_info( + ::viam::app::v1::AgentInfo* agent_info); + ::viam::app::v1::AgentInfo* unsafe_arena_release_agent_info(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.ConfigRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 33, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::common::v1::LogEntry > logs_; - ::google::protobuf::internal::ArenaStringPtr id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::viam::app::v1::AgentInfo* agent_info_; friend struct ::TableStruct_app_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ExternalAuthConfig final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ExternalAuthConfig) */ { +class ConfigResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ConfigResponse) */ { public: - inline ExternalAuthConfig() : ExternalAuthConfig(nullptr) {} - ~ExternalAuthConfig() override; - template - explicit PROTOBUF_CONSTEXPR ExternalAuthConfig(::google::protobuf::internal::ConstantInitialized); + inline ConfigResponse() : ConfigResponse(nullptr) {} + ~ConfigResponse() override; + explicit PROTOBUF_CONSTEXPR ConfigResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ExternalAuthConfig(const ExternalAuthConfig& from) - : ExternalAuthConfig(nullptr, from) {} - ExternalAuthConfig(ExternalAuthConfig&& from) noexcept - : ExternalAuthConfig() { + ConfigResponse(const ConfigResponse& from); + ConfigResponse(ConfigResponse&& from) noexcept + : ConfigResponse() { *this = ::std::move(from); } - inline ExternalAuthConfig& operator=(const ExternalAuthConfig& from) { + inline ConfigResponse& operator=(const ConfigResponse& from) { CopyFrom(from); return *this; } - inline ExternalAuthConfig& operator=(ExternalAuthConfig&& from) noexcept { + inline ConfigResponse& operator=(ConfigResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -7656,178 +6547,149 @@ class ExternalAuthConfig final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ExternalAuthConfig& default_instance() { + static const ConfigResponse& default_instance() { return *internal_default_instance(); } - static inline const ExternalAuthConfig* internal_default_instance() { - return reinterpret_cast( - &_ExternalAuthConfig_default_instance_); + static inline const ConfigResponse* internal_default_instance() { + return reinterpret_cast( + &_ConfigResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 14; + 31; - friend void swap(ExternalAuthConfig& a, ExternalAuthConfig& b) { + friend void swap(ConfigResponse& a, ConfigResponse& b) { a.Swap(&b); } - inline void Swap(ExternalAuthConfig* other) { + inline void Swap(ConfigResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ExternalAuthConfig* other) { + void UnsafeArenaSwap(ConfigResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ExternalAuthConfig* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ExternalAuthConfig& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ExternalAuthConfig& from) { - ExternalAuthConfig::MergeImpl(*this, from); + ConfigResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ConfigResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ConfigResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ExternalAuthConfig* other); + void SetCachedSize(int size) const final; + void InternalSwap(ConfigResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.ExternalAuthConfig"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.ConfigResponse"; } protected: - explicit ExternalAuthConfig(::google::protobuf::Arena* arena); - ExternalAuthConfig(::google::protobuf::Arena* arena, const ExternalAuthConfig& from); + explicit ConfigResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kJwksFieldNumber = 1, + kConfigFieldNumber = 1, }; - // .viam.app.v1.JWKSFile jwks = 1 [json_name = "jwks"]; - bool has_jwks() const; - void clear_jwks() ; - const ::viam::app::v1::JWKSFile& jwks() const; - PROTOBUF_NODISCARD ::viam::app::v1::JWKSFile* release_jwks(); - ::viam::app::v1::JWKSFile* mutable_jwks(); - void set_allocated_jwks(::viam::app::v1::JWKSFile* value); - void unsafe_arena_set_allocated_jwks(::viam::app::v1::JWKSFile* value); - ::viam::app::v1::JWKSFile* unsafe_arena_release_jwks(); - + // .viam.app.v1.RobotConfig config = 1 [json_name = "config"]; + bool has_config() const; private: - const ::viam::app::v1::JWKSFile& _internal_jwks() const; - ::viam::app::v1::JWKSFile* _internal_mutable_jwks(); - + bool _internal_has_config() const; public: - // @@protoc_insertion_point(class_scope:viam.app.v1.ExternalAuthConfig) + void clear_config(); + const ::viam::app::v1::RobotConfig& config() const; + PROTOBUF_NODISCARD ::viam::app::v1::RobotConfig* release_config(); + ::viam::app::v1::RobotConfig* mutable_config(); + void set_allocated_config(::viam::app::v1::RobotConfig* config); + private: + const ::viam::app::v1::RobotConfig& _internal_config() const; + ::viam::app::v1::RobotConfig* _internal_mutable_config(); + public: + void unsafe_arena_set_allocated_config( + ::viam::app::v1::RobotConfig* config); + ::viam::app::v1::RobotConfig* unsafe_arena_release_config(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.ConfigResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::viam::app::v1::JWKSFile* jwks_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::viam::app::v1::RobotConfig* config_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Frame final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.Frame) */ { +class CertificateRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.CertificateRequest) */ { public: - inline Frame() : Frame(nullptr) {} - ~Frame() override; - template - explicit PROTOBUF_CONSTEXPR Frame(::google::protobuf::internal::ConstantInitialized); + inline CertificateRequest() : CertificateRequest(nullptr) {} + ~CertificateRequest() override; + explicit PROTOBUF_CONSTEXPR CertificateRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Frame(const Frame& from) - : Frame(nullptr, from) {} - Frame(Frame&& from) noexcept - : Frame() { + CertificateRequest(const CertificateRequest& from); + CertificateRequest(CertificateRequest&& from) noexcept + : CertificateRequest() { *this = ::std::move(from); } - inline Frame& operator=(const Frame& from) { + inline CertificateRequest& operator=(const CertificateRequest& from) { CopyFrom(from); return *this; } - inline Frame& operator=(Frame&& from) noexcept { + inline CertificateRequest& operator=(CertificateRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -7837,230 +6699,145 @@ class Frame final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Frame& default_instance() { + static const CertificateRequest& default_instance() { return *internal_default_instance(); } - static inline const Frame* internal_default_instance() { - return reinterpret_cast( - &_Frame_default_instance_); + static inline const CertificateRequest* internal_default_instance() { + return reinterpret_cast( + &_CertificateRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 16; + 32; - friend void swap(Frame& a, Frame& b) { + friend void swap(CertificateRequest& a, CertificateRequest& b) { a.Swap(&b); } - inline void Swap(Frame* other) { + inline void Swap(CertificateRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Frame* other) { + void UnsafeArenaSwap(CertificateRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Frame* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Frame& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Frame& from) { - Frame::MergeImpl(*this, from); + CertificateRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CertificateRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CertificateRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Frame* other); + void SetCachedSize(int size) const final; + void InternalSwap(CertificateRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.Frame"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.CertificateRequest"; } protected: - explicit Frame(::google::protobuf::Arena* arena); - Frame(::google::protobuf::Arena* arena, const Frame& from); + explicit CertificateRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kParentFieldNumber = 1, - kTranslationFieldNumber = 2, - kOrientationFieldNumber = 3, - kGeometryFieldNumber = 4, + kIdFieldNumber = 1, }; - // string parent = 1 [json_name = "parent"]; - void clear_parent() ; - const std::string& parent() const; - template - void set_parent(Arg_&& arg, Args_... args); - std::string* mutable_parent(); - PROTOBUF_NODISCARD std::string* release_parent(); - void set_allocated_parent(std::string* value); - - private: - const std::string& _internal_parent() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_parent( - const std::string& value); - std::string* _internal_mutable_parent(); - - public: - // .viam.app.v1.Translation translation = 2 [json_name = "translation"]; - bool has_translation() const; - void clear_translation() ; - const ::viam::app::v1::Translation& translation() const; - PROTOBUF_NODISCARD ::viam::app::v1::Translation* release_translation(); - ::viam::app::v1::Translation* mutable_translation(); - void set_allocated_translation(::viam::app::v1::Translation* value); - void unsafe_arena_set_allocated_translation(::viam::app::v1::Translation* value); - ::viam::app::v1::Translation* unsafe_arena_release_translation(); - - private: - const ::viam::app::v1::Translation& _internal_translation() const; - ::viam::app::v1::Translation* _internal_mutable_translation(); - - public: - // .viam.app.v1.Orientation orientation = 3 [json_name = "orientation"]; - bool has_orientation() const; - void clear_orientation() ; - const ::viam::app::v1::Orientation& orientation() const; - PROTOBUF_NODISCARD ::viam::app::v1::Orientation* release_orientation(); - ::viam::app::v1::Orientation* mutable_orientation(); - void set_allocated_orientation(::viam::app::v1::Orientation* value); - void unsafe_arena_set_allocated_orientation(::viam::app::v1::Orientation* value); - ::viam::app::v1::Orientation* unsafe_arena_release_orientation(); - + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); private: - const ::viam::app::v1::Orientation& _internal_orientation() const; - ::viam::app::v1::Orientation* _internal_mutable_orientation(); - + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); public: - // .viam.common.v1.Geometry geometry = 4 [json_name = "geometry"]; - bool has_geometry() const; - void clear_geometry() ; - const ::viam::common::v1::Geometry& geometry() const; - PROTOBUF_NODISCARD ::viam::common::v1::Geometry* release_geometry(); - ::viam::common::v1::Geometry* mutable_geometry(); - void set_allocated_geometry(::viam::common::v1::Geometry* value); - void unsafe_arena_set_allocated_geometry(::viam::common::v1::Geometry* value); - ::viam::common::v1::Geometry* unsafe_arena_release_geometry(); - - private: - const ::viam::common::v1::Geometry& _internal_geometry() const; - ::viam::common::v1::Geometry* _internal_mutable_geometry(); - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.Frame) + // @@protoc_insertion_point(class_scope:viam.app.v1.CertificateRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 3, - 32, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr parent_; - ::viam::app::v1::Translation* translation_; - ::viam::app::v1::Orientation* orientation_; - ::viam::common::v1::Geometry* geometry_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class AuthConfig final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.AuthConfig) */ { +class CertificateResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.CertificateResponse) */ { public: - inline AuthConfig() : AuthConfig(nullptr) {} - ~AuthConfig() override; - template - explicit PROTOBUF_CONSTEXPR AuthConfig(::google::protobuf::internal::ConstantInitialized); + inline CertificateResponse() : CertificateResponse(nullptr) {} + ~CertificateResponse() override; + explicit PROTOBUF_CONSTEXPR CertificateResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline AuthConfig(const AuthConfig& from) - : AuthConfig(nullptr, from) {} - AuthConfig(AuthConfig&& from) noexcept - : AuthConfig() { + CertificateResponse(const CertificateResponse& from); + CertificateResponse(CertificateResponse&& from) noexcept + : CertificateResponse() { *this = ::std::move(from); } - inline AuthConfig& operator=(const AuthConfig& from) { + inline CertificateResponse& operator=(const CertificateResponse& from) { CopyFrom(from); return *this; } - inline AuthConfig& operator=(AuthConfig&& from) noexcept { + inline CertificateResponse& operator=(CertificateResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -8070,228 +6847,177 @@ class AuthConfig final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const AuthConfig& default_instance() { + static const CertificateResponse& default_instance() { return *internal_default_instance(); } - static inline const AuthConfig* internal_default_instance() { - return reinterpret_cast( - &_AuthConfig_default_instance_); + static inline const CertificateResponse* internal_default_instance() { + return reinterpret_cast( + &_CertificateResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 12; + 33; - friend void swap(AuthConfig& a, AuthConfig& b) { + friend void swap(CertificateResponse& a, CertificateResponse& b) { a.Swap(&b); } - inline void Swap(AuthConfig* other) { + inline void Swap(CertificateResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(AuthConfig* other) { + void UnsafeArenaSwap(CertificateResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - AuthConfig* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const AuthConfig& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const AuthConfig& from) { - AuthConfig::MergeImpl(*this, from); + CertificateResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CertificateResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CertificateResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(AuthConfig* other); + void SetCachedSize(int size) const final; + void InternalSwap(CertificateResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.AuthConfig"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.CertificateResponse"; } protected: - explicit AuthConfig(::google::protobuf::Arena* arena); - AuthConfig(::google::protobuf::Arena* arena, const AuthConfig& from); + explicit CertificateResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kHandlersFieldNumber = 1, - kTlsAuthEntitiesFieldNumber = 2, - kExternalAuthConfigFieldNumber = 3, + kIdFieldNumber = 1, + kTlsCertificateFieldNumber = 2, + kTlsPrivateKeyFieldNumber = 3, }; - // repeated .viam.app.v1.AuthHandlerConfig handlers = 1 [json_name = "handlers"]; - int handlers_size() const; - private: - int _internal_handlers_size() const; - - public: - void clear_handlers() ; - ::viam::app::v1::AuthHandlerConfig* mutable_handlers(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::AuthHandlerConfig >* - mutable_handlers(); - private: - const ::google::protobuf::RepeatedPtrField<::viam::app::v1::AuthHandlerConfig>& _internal_handlers() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::AuthHandlerConfig>* _internal_mutable_handlers(); - public: - const ::viam::app::v1::AuthHandlerConfig& handlers(int index) const; - ::viam::app::v1::AuthHandlerConfig* add_handlers(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::AuthHandlerConfig >& - handlers() const; - // repeated string tls_auth_entities = 2 [json_name = "tlsAuthEntities"]; - int tls_auth_entities_size() const; + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); private: - int _internal_tls_auth_entities_size() const; - + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); public: - void clear_tls_auth_entities() ; - const std::string& tls_auth_entities(int index) const; - std::string* mutable_tls_auth_entities(int index); - void set_tls_auth_entities(int index, const std::string& value); - void set_tls_auth_entities(int index, std::string&& value); - void set_tls_auth_entities(int index, const char* value); - void set_tls_auth_entities(int index, const char* value, std::size_t size); - void set_tls_auth_entities(int index, absl::string_view value); - std::string* add_tls_auth_entities(); - void add_tls_auth_entities(const std::string& value); - void add_tls_auth_entities(std::string&& value); - void add_tls_auth_entities(const char* value); - void add_tls_auth_entities(const char* value, std::size_t size); - void add_tls_auth_entities(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& tls_auth_entities() const; - ::google::protobuf::RepeatedPtrField* mutable_tls_auth_entities(); + // string tls_certificate = 2 [json_name = "tlsCertificate"]; + void clear_tls_certificate(); + const std::string& tls_certificate() const; + template + void set_tls_certificate(ArgT0&& arg0, ArgT... args); + std::string* mutable_tls_certificate(); + PROTOBUF_NODISCARD std::string* release_tls_certificate(); + void set_allocated_tls_certificate(std::string* tls_certificate); private: - const ::google::protobuf::RepeatedPtrField& _internal_tls_auth_entities() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_tls_auth_entities(); - + const std::string& _internal_tls_certificate() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_tls_certificate(const std::string& value); + std::string* _internal_mutable_tls_certificate(); public: - // optional .viam.app.v1.ExternalAuthConfig external_auth_config = 3 [json_name = "externalAuthConfig"]; - bool has_external_auth_config() const; - void clear_external_auth_config() ; - const ::viam::app::v1::ExternalAuthConfig& external_auth_config() const; - PROTOBUF_NODISCARD ::viam::app::v1::ExternalAuthConfig* release_external_auth_config(); - ::viam::app::v1::ExternalAuthConfig* mutable_external_auth_config(); - void set_allocated_external_auth_config(::viam::app::v1::ExternalAuthConfig* value); - void unsafe_arena_set_allocated_external_auth_config(::viam::app::v1::ExternalAuthConfig* value); - ::viam::app::v1::ExternalAuthConfig* unsafe_arena_release_external_auth_config(); + // string tls_private_key = 3 [json_name = "tlsPrivateKey"]; + void clear_tls_private_key(); + const std::string& tls_private_key() const; + template + void set_tls_private_key(ArgT0&& arg0, ArgT... args); + std::string* mutable_tls_private_key(); + PROTOBUF_NODISCARD std::string* release_tls_private_key(); + void set_allocated_tls_private_key(std::string* tls_private_key); private: - const ::viam::app::v1::ExternalAuthConfig& _internal_external_auth_config() const; - ::viam::app::v1::ExternalAuthConfig* _internal_mutable_external_auth_config(); - + const std::string& _internal_tls_private_key() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_tls_private_key(const std::string& value); + std::string* _internal_mutable_tls_private_key(); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.AuthConfig) + + // @@protoc_insertion_point(class_scope:viam.app.v1.CertificateResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 2, - 48, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::AuthHandlerConfig > handlers_; - ::google::protobuf::RepeatedPtrField tls_auth_entities_; - ::viam::app::v1::ExternalAuthConfig* external_auth_config_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr tls_certificate_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr tls_private_key_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class RemoteConfig final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.RemoteConfig) */ { +class LogRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.LogRequest) */ { public: - inline RemoteConfig() : RemoteConfig(nullptr) {} - ~RemoteConfig() override; - template - explicit PROTOBUF_CONSTEXPR RemoteConfig(::google::protobuf::internal::ConstantInitialized); + inline LogRequest() : LogRequest(nullptr) {} + ~LogRequest() override; + explicit PROTOBUF_CONSTEXPR LogRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline RemoteConfig(const RemoteConfig& from) - : RemoteConfig(nullptr, from) {} - RemoteConfig(RemoteConfig&& from) noexcept - : RemoteConfig() { + LogRequest(const LogRequest& from); + LogRequest(LogRequest&& from) noexcept + : LogRequest() { *this = ::std::move(from); } - inline RemoteConfig& operator=(const RemoteConfig& from) { + inline LogRequest& operator=(const LogRequest& from) { CopyFrom(from); return *this; } - inline RemoteConfig& operator=(RemoteConfig&& from) noexcept { + inline LogRequest& operator=(LogRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -8301,333 +7027,281 @@ class RemoteConfig final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const RemoteConfig& default_instance() { + static const LogRequest& default_instance() { return *internal_default_instance(); } - static inline const RemoteConfig* internal_default_instance() { - return reinterpret_cast( - &_RemoteConfig_default_instance_); + static inline const LogRequest* internal_default_instance() { + return reinterpret_cast( + &_LogRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 26; + 34; - friend void swap(RemoteConfig& a, RemoteConfig& b) { + friend void swap(LogRequest& a, LogRequest& b) { a.Swap(&b); } - inline void Swap(RemoteConfig* other) { + inline void Swap(LogRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RemoteConfig* other) { + void UnsafeArenaSwap(LogRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - RemoteConfig* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const RemoteConfig& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const RemoteConfig& from) { - RemoteConfig::MergeImpl(*this, from); + LogRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const LogRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const LogRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(RemoteConfig* other); + void SetCachedSize(int size) const final; + void InternalSwap(LogRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.RemoteConfig"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.LogRequest"; } protected: - explicit RemoteConfig(::google::protobuf::Arena* arena); - RemoteConfig(::google::protobuf::Arena* arena, const RemoteConfig& from); + explicit LogRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kServiceConfigsFieldNumber = 9, - kNameFieldNumber = 1, - kAddressFieldNumber = 2, - kManagedByFieldNumber = 5, - kSecretFieldNumber = 10, - kFrameFieldNumber = 3, - kAuthFieldNumber = 4, - kConnectionCheckIntervalFieldNumber = 7, - kReconnectIntervalFieldNumber = 8, - kInsecureFieldNumber = 6, + kLogsFieldNumber = 2, + kIdFieldNumber = 1, }; - // repeated .viam.app.v1.ResourceLevelServiceConfig service_configs = 9 [json_name = "serviceConfigs", (.tagger.v1.tags) = "json:\"service_config\""]; - int service_configs_size() const; + // repeated .viam.common.v1.LogEntry logs = 2 [json_name = "logs"]; + int logs_size() const; private: - int _internal_service_configs_size() const; - + int _internal_logs_size() const; public: - void clear_service_configs() ; - ::viam::app::v1::ResourceLevelServiceConfig* mutable_service_configs(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::ResourceLevelServiceConfig >* - mutable_service_configs(); + void clear_logs(); + ::viam::common::v1::LogEntry* mutable_logs(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::LogEntry >* + mutable_logs(); private: - const ::google::protobuf::RepeatedPtrField<::viam::app::v1::ResourceLevelServiceConfig>& _internal_service_configs() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::ResourceLevelServiceConfig>* _internal_mutable_service_configs(); + const ::viam::common::v1::LogEntry& _internal_logs(int index) const; + ::viam::common::v1::LogEntry* _internal_add_logs(); public: - const ::viam::app::v1::ResourceLevelServiceConfig& service_configs(int index) const; - ::viam::app::v1::ResourceLevelServiceConfig* add_service_configs(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::ResourceLevelServiceConfig >& - service_configs() const; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); + const ::viam::common::v1::LogEntry& logs(int index) const; + ::viam::common::v1::LogEntry* add_logs(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::LogEntry >& + logs() const; + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); public: - // string address = 2 [json_name = "address"]; - void clear_address() ; - const std::string& address() const; - template - void set_address(Arg_&& arg, Args_... args); - std::string* mutable_address(); - PROTOBUF_NODISCARD std::string* release_address(); - void set_allocated_address(std::string* value); - - private: - const std::string& _internal_address() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_address( - const std::string& value); - std::string* _internal_mutable_address(); - public: - // string managed_by = 5 [json_name = "managedBy"]; - void clear_managed_by() ; - const std::string& managed_by() const; - template - void set_managed_by(Arg_&& arg, Args_... args); - std::string* mutable_managed_by(); - PROTOBUF_NODISCARD std::string* release_managed_by(); - void set_allocated_managed_by(std::string* value); + // @@protoc_insertion_point(class_scope:viam.app.v1.LogRequest) + private: + class _Internal; - private: - const std::string& _internal_managed_by() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_managed_by( - const std::string& value); - std::string* _internal_mutable_managed_by(); + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::LogEntry > logs_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_app_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- - public: - // string secret = 10 [json_name = "secret"]; - void clear_secret() ; - const std::string& secret() const; - template - void set_secret(Arg_&& arg, Args_... args); - std::string* mutable_secret(); - PROTOBUF_NODISCARD std::string* release_secret(); - void set_allocated_secret(std::string* value); +class LogResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.LogResponse) */ { + public: + inline LogResponse() : LogResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR LogResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - private: - const std::string& _internal_secret() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_secret( - const std::string& value); - std::string* _internal_mutable_secret(); + LogResponse(const LogResponse& from); + LogResponse(LogResponse&& from) noexcept + : LogResponse() { + *this = ::std::move(from); + } - public: - // .viam.app.v1.Frame frame = 3 [json_name = "frame"]; - bool has_frame() const; - void clear_frame() ; - const ::viam::app::v1::Frame& frame() const; - PROTOBUF_NODISCARD ::viam::app::v1::Frame* release_frame(); - ::viam::app::v1::Frame* mutable_frame(); - void set_allocated_frame(::viam::app::v1::Frame* value); - void unsafe_arena_set_allocated_frame(::viam::app::v1::Frame* value); - ::viam::app::v1::Frame* unsafe_arena_release_frame(); + inline LogResponse& operator=(const LogResponse& from) { + CopyFrom(from); + return *this; + } + inline LogResponse& operator=(LogResponse&& 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; + } - private: - const ::viam::app::v1::Frame& _internal_frame() const; - ::viam::app::v1::Frame* _internal_mutable_frame(); + 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 LogResponse& default_instance() { + return *internal_default_instance(); + } + static inline const LogResponse* internal_default_instance() { + return reinterpret_cast( + &_LogResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 35; - public: - // .viam.app.v1.RemoteAuth auth = 4 [json_name = "auth"]; - bool has_auth() const; - void clear_auth() ; - const ::viam::app::v1::RemoteAuth& auth() const; - PROTOBUF_NODISCARD ::viam::app::v1::RemoteAuth* release_auth(); - ::viam::app::v1::RemoteAuth* mutable_auth(); - void set_allocated_auth(::viam::app::v1::RemoteAuth* value); - void unsafe_arena_set_allocated_auth(::viam::app::v1::RemoteAuth* value); - ::viam::app::v1::RemoteAuth* unsafe_arena_release_auth(); + friend void swap(LogResponse& a, LogResponse& b) { + a.Swap(&b); + } + inline void Swap(LogResponse* 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(LogResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } - private: - const ::viam::app::v1::RemoteAuth& _internal_auth() const; - ::viam::app::v1::RemoteAuth* _internal_mutable_auth(); + // implements Message ---------------------------------------------- + LogResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const LogResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const LogResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); + } public: - // .google.protobuf.Duration connection_check_interval = 7 [json_name = "connectionCheckInterval"]; - bool has_connection_check_interval() const; - void clear_connection_check_interval() ; - const ::google::protobuf::Duration& connection_check_interval() const; - PROTOBUF_NODISCARD ::google::protobuf::Duration* release_connection_check_interval(); - ::google::protobuf::Duration* mutable_connection_check_interval(); - void set_allocated_connection_check_interval(::google::protobuf::Duration* value); - void unsafe_arena_set_allocated_connection_check_interval(::google::protobuf::Duration* value); - ::google::protobuf::Duration* unsafe_arena_release_connection_check_interval(); private: - const ::google::protobuf::Duration& _internal_connection_check_interval() const; - ::google::protobuf::Duration* _internal_mutable_connection_check_interval(); - + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.LogResponse"; + } + protected: + explicit LogResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - // .google.protobuf.Duration reconnect_interval = 8 [json_name = "reconnectInterval"]; - bool has_reconnect_interval() const; - void clear_reconnect_interval() ; - const ::google::protobuf::Duration& reconnect_interval() const; - PROTOBUF_NODISCARD ::google::protobuf::Duration* release_reconnect_interval(); - ::google::protobuf::Duration* mutable_reconnect_interval(); - void set_allocated_reconnect_interval(::google::protobuf::Duration* value); - void unsafe_arena_set_allocated_reconnect_interval(::google::protobuf::Duration* value); - ::google::protobuf::Duration* unsafe_arena_release_reconnect_interval(); - private: - const ::google::protobuf::Duration& _internal_reconnect_interval() const; - ::google::protobuf::Duration* _internal_mutable_reconnect_interval(); + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: - // bool insecure = 6 [json_name = "insecure"]; - void clear_insecure() ; - bool insecure() const; - void set_insecure(bool value); + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - bool _internal_insecure() const; - void _internal_set_insecure(bool value); + // nested types ---------------------------------------------------- - public: - // @@protoc_insertion_point(class_scope:viam.app.v1.RemoteConfig) + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.app.v1.LogResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 4, 10, 5, - 68, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::ResourceLevelServiceConfig > service_configs_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr address_; - ::google::protobuf::internal::ArenaStringPtr managed_by_; - ::google::protobuf::internal::ArenaStringPtr secret_; - ::viam::app::v1::Frame* frame_; - ::viam::app::v1::RemoteAuth* auth_; - ::google::protobuf::Duration* connection_check_interval_; - ::google::protobuf::Duration* reconnect_interval_; - bool insecure_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_app_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ComponentConfig final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ComponentConfig) */ { +class NeedsRestartRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.NeedsRestartRequest) */ { public: - inline ComponentConfig() : ComponentConfig(nullptr) {} - ~ComponentConfig() override; - template - explicit PROTOBUF_CONSTEXPR ComponentConfig(::google::protobuf::internal::ConstantInitialized); + inline NeedsRestartRequest() : NeedsRestartRequest(nullptr) {} + ~NeedsRestartRequest() override; + explicit PROTOBUF_CONSTEXPR NeedsRestartRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ComponentConfig(const ComponentConfig& from) - : ComponentConfig(nullptr, from) {} - ComponentConfig(ComponentConfig&& from) noexcept - : ComponentConfig() { + NeedsRestartRequest(const NeedsRestartRequest& from); + NeedsRestartRequest(NeedsRestartRequest&& from) noexcept + : NeedsRestartRequest() { *this = ::std::move(from); } - inline ComponentConfig& operator=(const ComponentConfig& from) { + inline NeedsRestartRequest& operator=(const NeedsRestartRequest& from) { CopyFrom(from); return *this; } - inline ComponentConfig& operator=(ComponentConfig&& from) noexcept { + inline NeedsRestartRequest& operator=(NeedsRestartRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -8637,352 +7311,352 @@ class ComponentConfig final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ComponentConfig& default_instance() { + static const NeedsRestartRequest& default_instance() { return *internal_default_instance(); } - static inline const ComponentConfig* internal_default_instance() { - return reinterpret_cast( - &_ComponentConfig_default_instance_); + static inline const NeedsRestartRequest* internal_default_instance() { + return reinterpret_cast( + &_NeedsRestartRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 5; + 36; - friend void swap(ComponentConfig& a, ComponentConfig& b) { + friend void swap(NeedsRestartRequest& a, NeedsRestartRequest& b) { a.Swap(&b); } - inline void Swap(ComponentConfig* other) { + inline void Swap(NeedsRestartRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ComponentConfig* other) { + void UnsafeArenaSwap(NeedsRestartRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ComponentConfig* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ComponentConfig& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ComponentConfig& from) { - ComponentConfig::MergeImpl(*this, from); + NeedsRestartRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const NeedsRestartRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const NeedsRestartRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ComponentConfig* other); + void SetCachedSize(int size) const final; + void InternalSwap(NeedsRestartRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.ComponentConfig"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.NeedsRestartRequest"; } protected: - explicit ComponentConfig(::google::protobuf::Arena* arena); - ComponentConfig(::google::protobuf::Arena* arena, const ComponentConfig& from); + explicit NeedsRestartRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kDependsOnFieldNumber = 6, - kServiceConfigsFieldNumber = 7, - kNameFieldNumber = 1, - kNamespaceFieldNumber = 2, - kTypeFieldNumber = 3, - kModelFieldNumber = 4, - kApiFieldNumber = 9, - kFrameFieldNumber = 5, - kAttributesFieldNumber = 8, - kLogConfigurationFieldNumber = 10, + kIdFieldNumber = 1, }; - // repeated string depends_on = 6 [json_name = "dependsOn"]; - int depends_on_size() const; + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); private: - int _internal_depends_on_size() const; - + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); public: - void clear_depends_on() ; - const std::string& depends_on(int index) const; - std::string* mutable_depends_on(int index); - void set_depends_on(int index, const std::string& value); - void set_depends_on(int index, std::string&& value); - void set_depends_on(int index, const char* value); - void set_depends_on(int index, const char* value, std::size_t size); - void set_depends_on(int index, absl::string_view value); - std::string* add_depends_on(); - void add_depends_on(const std::string& value); - void add_depends_on(std::string&& value); - void add_depends_on(const char* value); - void add_depends_on(const char* value, std::size_t size); - void add_depends_on(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& depends_on() const; - ::google::protobuf::RepeatedPtrField* mutable_depends_on(); - private: - const ::google::protobuf::RepeatedPtrField& _internal_depends_on() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_depends_on(); + // @@protoc_insertion_point(class_scope:viam.app.v1.NeedsRestartRequest) + private: + class _Internal; - public: - // repeated .viam.app.v1.ResourceLevelServiceConfig service_configs = 7 [json_name = "serviceConfigs", (.tagger.v1.tags) = "json:\"service_config\""]; - int service_configs_size() const; - private: - int _internal_service_configs_size() const; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_app_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- - public: - void clear_service_configs() ; - ::viam::app::v1::ResourceLevelServiceConfig* mutable_service_configs(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::ResourceLevelServiceConfig >* - mutable_service_configs(); - private: - const ::google::protobuf::RepeatedPtrField<::viam::app::v1::ResourceLevelServiceConfig>& _internal_service_configs() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::ResourceLevelServiceConfig>* _internal_mutable_service_configs(); - public: - const ::viam::app::v1::ResourceLevelServiceConfig& service_configs(int index) const; - ::viam::app::v1::ResourceLevelServiceConfig* add_service_configs(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::ResourceLevelServiceConfig >& - service_configs() const; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); +class NeedsRestartResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.NeedsRestartResponse) */ { + public: + inline NeedsRestartResponse() : NeedsRestartResponse(nullptr) {} + ~NeedsRestartResponse() override; + explicit PROTOBUF_CONSTEXPR NeedsRestartResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); + NeedsRestartResponse(const NeedsRestartResponse& from); + NeedsRestartResponse(NeedsRestartResponse&& from) noexcept + : NeedsRestartResponse() { + *this = ::std::move(from); + } - public: - // string namespace = 2 [json_name = "namespace"]; - void clear_namespace_() ; - const std::string& namespace_() const; - template - void set_namespace_(Arg_&& arg, Args_... args); - std::string* mutable_namespace_(); - PROTOBUF_NODISCARD std::string* release_namespace_(); - void set_allocated_namespace_(std::string* value); + inline NeedsRestartResponse& operator=(const NeedsRestartResponse& from) { + CopyFrom(from); + return *this; + } + inline NeedsRestartResponse& operator=(NeedsRestartResponse&& 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; + } - private: - const std::string& _internal_namespace_() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_namespace_( - const std::string& value); - std::string* _internal_mutable_namespace_(); + 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 NeedsRestartResponse& default_instance() { + return *internal_default_instance(); + } + static inline const NeedsRestartResponse* internal_default_instance() { + return reinterpret_cast( + &_NeedsRestartResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 37; - public: - // string type = 3 [json_name = "type"]; - void clear_type() ; - const std::string& type() const; - template - void set_type(Arg_&& arg, Args_... args); - std::string* mutable_type(); - PROTOBUF_NODISCARD std::string* release_type(); - void set_allocated_type(std::string* value); + friend void swap(NeedsRestartResponse& a, NeedsRestartResponse& b) { + a.Swap(&b); + } + inline void Swap(NeedsRestartResponse* 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(NeedsRestartResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } - private: - const std::string& _internal_type() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_type( - const std::string& value); - std::string* _internal_mutable_type(); + // implements Message ---------------------------------------------- + NeedsRestartResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const NeedsRestartResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const NeedsRestartResponse& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: - // string model = 4 [json_name = "model"]; - void clear_model() ; - const std::string& model() const; - template - void set_model(Arg_&& arg, Args_... args); - std::string* mutable_model(); - PROTOBUF_NODISCARD std::string* release_model(); - void set_allocated_model(std::string* value); + 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: - const std::string& _internal_model() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_model( - const std::string& value); - std::string* _internal_mutable_model(); + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(NeedsRestartResponse* other); + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.NeedsRestartResponse"; + } + protected: + explicit NeedsRestartResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - // string api = 9 [json_name = "api"]; - void clear_api() ; - const std::string& api() const; - template - void set_api(Arg_&& arg, Args_... args); - std::string* mutable_api(); - PROTOBUF_NODISCARD std::string* release_api(); - void set_allocated_api(std::string* value); - private: - const std::string& _internal_api() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_api( - const std::string& value); - std::string* _internal_mutable_api(); + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: - // .viam.app.v1.Frame frame = 5 [json_name = "frame"]; - bool has_frame() const; - void clear_frame() ; - const ::viam::app::v1::Frame& frame() const; - PROTOBUF_NODISCARD ::viam::app::v1::Frame* release_frame(); - ::viam::app::v1::Frame* mutable_frame(); - void set_allocated_frame(::viam::app::v1::Frame* value); - void unsafe_arena_set_allocated_frame(::viam::app::v1::Frame* value); - ::viam::app::v1::Frame* unsafe_arena_release_frame(); + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kIdFieldNumber = 1, + kRestartCheckIntervalFieldNumber = 3, + kMustRestartFieldNumber = 2, + }; + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); private: - const ::viam::app::v1::Frame& _internal_frame() const; - ::viam::app::v1::Frame* _internal_mutable_frame(); - + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); public: - // .google.protobuf.Struct attributes = 8 [json_name = "attributes"]; - bool has_attributes() const; - void clear_attributes() ; - const ::google::protobuf::Struct& attributes() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_attributes(); - ::google::protobuf::Struct* mutable_attributes(); - void set_allocated_attributes(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_attributes(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_attributes(); + // .google.protobuf.Duration restart_check_interval = 3 [json_name = "restartCheckInterval"]; + bool has_restart_check_interval() const; private: - const ::google::protobuf::Struct& _internal_attributes() const; - ::google::protobuf::Struct* _internal_mutable_attributes(); - + bool _internal_has_restart_check_interval() const; public: - // .viam.app.v1.LogConfiguration log_configuration = 10 [json_name = "logConfiguration"]; - bool has_log_configuration() const; - void clear_log_configuration() ; - const ::viam::app::v1::LogConfiguration& log_configuration() const; - PROTOBUF_NODISCARD ::viam::app::v1::LogConfiguration* release_log_configuration(); - ::viam::app::v1::LogConfiguration* mutable_log_configuration(); - void set_allocated_log_configuration(::viam::app::v1::LogConfiguration* value); - void unsafe_arena_set_allocated_log_configuration(::viam::app::v1::LogConfiguration* value); - ::viam::app::v1::LogConfiguration* unsafe_arena_release_log_configuration(); - + void clear_restart_check_interval(); + const ::PROTOBUF_NAMESPACE_ID::Duration& restart_check_interval() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Duration* release_restart_check_interval(); + ::PROTOBUF_NAMESPACE_ID::Duration* mutable_restart_check_interval(); + void set_allocated_restart_check_interval(::PROTOBUF_NAMESPACE_ID::Duration* restart_check_interval); private: - const ::viam::app::v1::LogConfiguration& _internal_log_configuration() const; - ::viam::app::v1::LogConfiguration* _internal_mutable_log_configuration(); + const ::PROTOBUF_NAMESPACE_ID::Duration& _internal_restart_check_interval() const; + ::PROTOBUF_NAMESPACE_ID::Duration* _internal_mutable_restart_check_interval(); + public: + void unsafe_arena_set_allocated_restart_check_interval( + ::PROTOBUF_NAMESPACE_ID::Duration* restart_check_interval); + ::PROTOBUF_NAMESPACE_ID::Duration* unsafe_arena_release_restart_check_interval(); + // bool must_restart = 2 [json_name = "mustRestart"]; + void clear_must_restart(); + bool must_restart() const; + void set_must_restart(bool value); + private: + bool _internal_must_restart() const; + void _internal_set_must_restart(bool value); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.ComponentConfig) + + // @@protoc_insertion_point(class_scope:viam.app.v1.NeedsRestartResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 4, 10, 4, - 79, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField depends_on_; - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::ResourceLevelServiceConfig > service_configs_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr namespace__; - ::google::protobuf::internal::ArenaStringPtr type_; - ::google::protobuf::internal::ArenaStringPtr model_; - ::google::protobuf::internal::ArenaStringPtr api_; - ::viam::app::v1::Frame* frame_; - ::google::protobuf::Struct* attributes_; - ::viam::app::v1::LogConfiguration* log_configuration_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::Duration* restart_check_interval_; + bool must_restart_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class RobotConfig final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.RobotConfig) */ { +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: - inline RobotConfig() : RobotConfig(nullptr) {} - ~RobotConfig() override; - template - explicit PROTOBUF_CONSTEXPR RobotConfig(::google::protobuf::internal::ConstantInitialized); + inline ModuleConfig() : ModuleConfig(nullptr) {} + ~ModuleConfig() override; + explicit PROTOBUF_CONSTEXPR ModuleConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline RobotConfig(const RobotConfig& from) - : RobotConfig(nullptr, from) {} - RobotConfig(RobotConfig&& from) noexcept - : RobotConfig() { + ModuleConfig(const ModuleConfig& from); + ModuleConfig(ModuleConfig&& from) noexcept + : ModuleConfig() { *this = ::std::move(from); } - inline RobotConfig& operator=(const RobotConfig& from) { + inline ModuleConfig& operator=(const ModuleConfig& from) { CopyFrom(from); return *this; } - inline RobotConfig& operator=(RobotConfig&& from) noexcept { + inline ModuleConfig& operator=(ModuleConfig&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -8992,445 +7666,491 @@ class RobotConfig final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const RobotConfig& default_instance() { + static const ModuleConfig& default_instance() { return *internal_default_instance(); } - static inline const RobotConfig* internal_default_instance() { - return reinterpret_cast( - &_RobotConfig_default_instance_); + static inline const ModuleConfig* internal_default_instance() { + return reinterpret_cast( + &_ModuleConfig_default_instance_); } static constexpr int kIndexInFileMessages = - 0; + 39; - friend void swap(RobotConfig& a, RobotConfig& b) { + friend void swap(ModuleConfig& a, ModuleConfig& b) { a.Swap(&b); } - inline void Swap(RobotConfig* other) { + inline void Swap(ModuleConfig* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RobotConfig* other) { + void UnsafeArenaSwap(ModuleConfig* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - RobotConfig* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const RobotConfig& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const RobotConfig& from) { - RobotConfig::MergeImpl(*this, from); + ModuleConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ModuleConfig& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ModuleConfig& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(RobotConfig* other); + void SetCachedSize(int size) const final; + void InternalSwap(ModuleConfig* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.RobotConfig"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.ModuleConfig"; } protected: - explicit RobotConfig(::google::protobuf::Arena* arena); - RobotConfig(::google::protobuf::Arena* arena, const RobotConfig& from); + explicit ModuleConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- + // accessors ------------------------------------------------------- enum : int { - kRemotesFieldNumber = 2, - kComponentsFieldNumber = 3, - kProcessesFieldNumber = 4, - kServicesFieldNumber = 5, - kModulesFieldNumber = 9, - kPackagesFieldNumber = 11, - kOverwriteFragmentStatusFieldNumber = 12, - kLogFieldNumber = 14, - kRevisionFieldNumber = 15, - kCloudFieldNumber = 1, - kNetworkFieldNumber = 6, - kAuthFieldNumber = 7, - kMaintenanceFieldNumber = 16, - kDebugFieldNumber = 8, - kDisablePartialStartFieldNumber = 10, - kEnableWebProfileFieldNumber = 13, + kEnvFieldNumber = 6, + kNameFieldNumber = 1, + kPathFieldNumber = 2, + kLogLevelFieldNumber = 3, + kTypeFieldNumber = 4, + kModuleIdFieldNumber = 5, + kStatusFieldNumber = 7, + kFirstRunTimeoutFieldNumber = 8, }; - // repeated .viam.app.v1.RemoteConfig remotes = 2 [json_name = "remotes"]; - int remotes_size() const; + // map env = 6 [json_name = "env"]; + int env_size() const; private: - int _internal_remotes_size() const; - + int _internal_env_size() const; public: - void clear_remotes() ; - ::viam::app::v1::RemoteConfig* mutable_remotes(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::RemoteConfig >* - mutable_remotes(); + void clear_env(); private: - const ::google::protobuf::RepeatedPtrField<::viam::app::v1::RemoteConfig>& _internal_remotes() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::RemoteConfig>* _internal_mutable_remotes(); + 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 ::viam::app::v1::RemoteConfig& remotes(int index) const; - ::viam::app::v1::RemoteConfig* add_remotes(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::RemoteConfig >& - remotes() const; - // repeated .viam.app.v1.ComponentConfig components = 3 [json_name = "components"]; - int components_size() const; + 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; + 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: - int _internal_components_size() const; + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + // string path = 2 [json_name = "path"]; + void clear_path(); + const std::string& path() const; + template + void set_path(ArgT0&& arg0, ArgT... args); + std::string* mutable_path(); + PROTOBUF_NODISCARD std::string* release_path(); + void set_allocated_path(std::string* path); + private: + const std::string& _internal_path() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_path(const std::string& value); + std::string* _internal_mutable_path(); public: - void clear_components() ; - ::viam::app::v1::ComponentConfig* mutable_components(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::ComponentConfig >* - mutable_components(); + + // string log_level = 3 [json_name = "logLevel"]; + void clear_log_level(); + const std::string& log_level() const; + template + void set_log_level(ArgT0&& arg0, ArgT... args); + std::string* mutable_log_level(); + PROTOBUF_NODISCARD std::string* release_log_level(); + void set_allocated_log_level(std::string* log_level); private: - const ::google::protobuf::RepeatedPtrField<::viam::app::v1::ComponentConfig>& _internal_components() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::ComponentConfig>* _internal_mutable_components(); + const std::string& _internal_log_level() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_log_level(const std::string& value); + std::string* _internal_mutable_log_level(); public: - const ::viam::app::v1::ComponentConfig& components(int index) const; - ::viam::app::v1::ComponentConfig* add_components(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::ComponentConfig >& - components() const; - // repeated .viam.app.v1.ProcessConfig processes = 4 [json_name = "processes"]; - int processes_size() const; + + // 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: - int _internal_processes_size() const; + 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: - void clear_processes() ; - ::viam::app::v1::ProcessConfig* mutable_processes(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::ProcessConfig >* - mutable_processes(); + + // .viam.app.v1.AppValidationStatus status = 7 [json_name = "status"]; + bool has_status() const; private: - const ::google::protobuf::RepeatedPtrField<::viam::app::v1::ProcessConfig>& _internal_processes() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::ProcessConfig>* _internal_mutable_processes(); + bool _internal_has_status() const; public: - const ::viam::app::v1::ProcessConfig& processes(int index) const; - ::viam::app::v1::ProcessConfig* add_processes(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::ProcessConfig >& - processes() const; - // repeated .viam.app.v1.ServiceConfig services = 5 [json_name = "services"]; - int services_size() const; + 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: - int _internal_services_size() const; + 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(); + + // .google.protobuf.Duration first_run_timeout = 8 [json_name = "firstRunTimeout"]; + bool has_first_run_timeout() const; + private: + bool _internal_has_first_run_timeout() const; + public: + void clear_first_run_timeout(); + const ::PROTOBUF_NAMESPACE_ID::Duration& first_run_timeout() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Duration* release_first_run_timeout(); + ::PROTOBUF_NAMESPACE_ID::Duration* mutable_first_run_timeout(); + void set_allocated_first_run_timeout(::PROTOBUF_NAMESPACE_ID::Duration* first_run_timeout); + private: + const ::PROTOBUF_NAMESPACE_ID::Duration& _internal_first_run_timeout() const; + ::PROTOBUF_NAMESPACE_ID::Duration* _internal_mutable_first_run_timeout(); + public: + void unsafe_arena_set_allocated_first_run_timeout( + ::PROTOBUF_NAMESPACE_ID::Duration* first_run_timeout); + ::PROTOBUF_NAMESPACE_ID::Duration* unsafe_arena_release_first_run_timeout(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.ModuleConfig) + private: + class _Internal; + + 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_; + ::PROTOBUF_NAMESPACE_ID::Duration* first_run_timeout_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_app_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class PackageConfig final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.PackageConfig) */ { + public: + inline PackageConfig() : PackageConfig(nullptr) {} + ~PackageConfig() override; + explicit PROTOBUF_CONSTEXPR PackageConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + PackageConfig(const PackageConfig& from); + PackageConfig(PackageConfig&& from) noexcept + : PackageConfig() { + *this = ::std::move(from); + } + + inline PackageConfig& operator=(const PackageConfig& from) { + CopyFrom(from); + return *this; + } + inline PackageConfig& operator=(PackageConfig&& 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 PackageConfig& default_instance() { + return *internal_default_instance(); + } + static inline const PackageConfig* internal_default_instance() { + return reinterpret_cast( + &_PackageConfig_default_instance_); + } + static constexpr int kIndexInFileMessages = + 40; + + friend void swap(PackageConfig& a, PackageConfig& b) { + a.Swap(&b); + } + inline void Swap(PackageConfig* 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(PackageConfig* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } - public: - void clear_services() ; - ::viam::app::v1::ServiceConfig* mutable_services(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::ServiceConfig >* - mutable_services(); - private: - const ::google::protobuf::RepeatedPtrField<::viam::app::v1::ServiceConfig>& _internal_services() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::ServiceConfig>* _internal_mutable_services(); - public: - const ::viam::app::v1::ServiceConfig& services(int index) const; - ::viam::app::v1::ServiceConfig* add_services(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::ServiceConfig >& - services() const; - // repeated .viam.app.v1.ModuleConfig modules = 9 [json_name = "modules"]; - int modules_size() const; - private: - int _internal_modules_size() const; + // implements Message ---------------------------------------------- - public: - void clear_modules() ; - ::viam::app::v1::ModuleConfig* mutable_modules(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::ModuleConfig >* - mutable_modules(); + PackageConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const PackageConfig& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const PackageConfig& from); private: - const ::google::protobuf::RepeatedPtrField<::viam::app::v1::ModuleConfig>& _internal_modules() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::ModuleConfig>* _internal_mutable_modules(); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: - const ::viam::app::v1::ModuleConfig& modules(int index) const; - ::viam::app::v1::ModuleConfig* add_modules(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::ModuleConfig >& - modules() const; - // repeated .viam.app.v1.PackageConfig packages = 11 [json_name = "packages"]; - int packages_size() const; - private: - int _internal_packages_size() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - public: - void clear_packages() ; - ::viam::app::v1::PackageConfig* mutable_packages(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::PackageConfig >* - mutable_packages(); - private: - const ::google::protobuf::RepeatedPtrField<::viam::app::v1::PackageConfig>& _internal_packages() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::PackageConfig>* _internal_mutable_packages(); - public: - const ::viam::app::v1::PackageConfig& packages(int index) const; - ::viam::app::v1::PackageConfig* add_packages(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::PackageConfig >& - packages() const; - // repeated .viam.app.v1.AppValidationStatus overwrite_fragment_status = 12 [json_name = "overwriteFragmentStatus"]; - int overwrite_fragment_status_size() const; - private: - int _internal_overwrite_fragment_status_size() const; + 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(); } - public: - void clear_overwrite_fragment_status() ; - ::viam::app::v1::AppValidationStatus* mutable_overwrite_fragment_status(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::AppValidationStatus >* - mutable_overwrite_fragment_status(); - private: - const ::google::protobuf::RepeatedPtrField<::viam::app::v1::AppValidationStatus>& _internal_overwrite_fragment_status() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::AppValidationStatus>* _internal_mutable_overwrite_fragment_status(); - public: - const ::viam::app::v1::AppValidationStatus& overwrite_fragment_status(int index) const; - ::viam::app::v1::AppValidationStatus* add_overwrite_fragment_status(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::AppValidationStatus >& - overwrite_fragment_status() const; - // repeated .viam.app.v1.LogPatternConfig log = 14 [json_name = "log"]; - int log_size() const; private: - int _internal_log_size() const; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(PackageConfig* other); - public: - void clear_log() ; - ::viam::app::v1::LogPatternConfig* mutable_log(int index); - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::LogPatternConfig >* - mutable_log(); private: - const ::google::protobuf::RepeatedPtrField<::viam::app::v1::LogPatternConfig>& _internal_log() const; - ::google::protobuf::RepeatedPtrField<::viam::app::v1::LogPatternConfig>* _internal_mutable_log(); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.PackageConfig"; + } + protected: + explicit PackageConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - const ::viam::app::v1::LogPatternConfig& log(int index) const; - ::viam::app::v1::LogPatternConfig* add_log(); - const ::google::protobuf::RepeatedPtrField< ::viam::app::v1::LogPatternConfig >& - log() const; - // string revision = 15 [json_name = "revision"]; - void clear_revision() ; - const std::string& revision() const; - template - void set_revision(Arg_&& arg, Args_... args); - std::string* mutable_revision(); - PROTOBUF_NODISCARD std::string* release_revision(); - void set_allocated_revision(std::string* value); - private: - const std::string& _internal_revision() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_revision( - const std::string& value); - std::string* _internal_mutable_revision(); + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: - // .viam.app.v1.CloudConfig cloud = 1 [json_name = "cloud"]; - bool has_cloud() const; - void clear_cloud() ; - const ::viam::app::v1::CloudConfig& cloud() const; - PROTOBUF_NODISCARD ::viam::app::v1::CloudConfig* release_cloud(); - ::viam::app::v1::CloudConfig* mutable_cloud(); - void set_allocated_cloud(::viam::app::v1::CloudConfig* value); - void unsafe_arena_set_allocated_cloud(::viam::app::v1::CloudConfig* value); - ::viam::app::v1::CloudConfig* unsafe_arena_release_cloud(); + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - const ::viam::app::v1::CloudConfig& _internal_cloud() const; - ::viam::app::v1::CloudConfig* _internal_mutable_cloud(); + // nested types ---------------------------------------------------- - public: - // optional .viam.app.v1.NetworkConfig network = 6 [json_name = "network"]; - bool has_network() const; - void clear_network() ; - const ::viam::app::v1::NetworkConfig& network() const; - PROTOBUF_NODISCARD ::viam::app::v1::NetworkConfig* release_network(); - ::viam::app::v1::NetworkConfig* mutable_network(); - void set_allocated_network(::viam::app::v1::NetworkConfig* value); - void unsafe_arena_set_allocated_network(::viam::app::v1::NetworkConfig* value); - ::viam::app::v1::NetworkConfig* unsafe_arena_release_network(); + // accessors ------------------------------------------------------- + enum : int { + kNameFieldNumber = 1, + kPackageFieldNumber = 2, + kVersionFieldNumber = 3, + kTypeFieldNumber = 4, + kStatusFieldNumber = 5, + }; + // 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 ::viam::app::v1::NetworkConfig& _internal_network() const; - ::viam::app::v1::NetworkConfig* _internal_mutable_network(); - + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); public: - // optional .viam.app.v1.AuthConfig auth = 7 [json_name = "auth"]; - bool has_auth() const; - void clear_auth() ; - const ::viam::app::v1::AuthConfig& auth() const; - PROTOBUF_NODISCARD ::viam::app::v1::AuthConfig* release_auth(); - ::viam::app::v1::AuthConfig* mutable_auth(); - void set_allocated_auth(::viam::app::v1::AuthConfig* value); - void unsafe_arena_set_allocated_auth(::viam::app::v1::AuthConfig* value); - ::viam::app::v1::AuthConfig* unsafe_arena_release_auth(); + // string package = 2 [json_name = "package"]; + void clear_package(); + const std::string& package() const; + template + void set_package(ArgT0&& arg0, ArgT... args); + std::string* mutable_package(); + PROTOBUF_NODISCARD std::string* release_package(); + void set_allocated_package(std::string* package); private: - const ::viam::app::v1::AuthConfig& _internal_auth() const; - ::viam::app::v1::AuthConfig* _internal_mutable_auth(); - + const std::string& _internal_package() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_package(const std::string& value); + std::string* _internal_mutable_package(); public: - // optional .viam.app.v1.MaintenanceConfig maintenance = 16 [json_name = "maintenance"]; - bool has_maintenance() const; - void clear_maintenance() ; - const ::viam::app::v1::MaintenanceConfig& maintenance() const; - PROTOBUF_NODISCARD ::viam::app::v1::MaintenanceConfig* release_maintenance(); - ::viam::app::v1::MaintenanceConfig* mutable_maintenance(); - void set_allocated_maintenance(::viam::app::v1::MaintenanceConfig* value); - void unsafe_arena_set_allocated_maintenance(::viam::app::v1::MaintenanceConfig* value); - ::viam::app::v1::MaintenanceConfig* unsafe_arena_release_maintenance(); + // string version = 3 [json_name = "version"]; + void clear_version(); + const std::string& version() const; + template + void set_version(ArgT0&& arg0, ArgT... args); + std::string* mutable_version(); + PROTOBUF_NODISCARD std::string* release_version(); + void set_allocated_version(std::string* version); private: - const ::viam::app::v1::MaintenanceConfig& _internal_maintenance() const; - ::viam::app::v1::MaintenanceConfig* _internal_mutable_maintenance(); - + const std::string& _internal_version() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_version(const std::string& value); + std::string* _internal_mutable_version(); public: - // optional bool debug = 8 [json_name = "debug"]; - bool has_debug() const; - void clear_debug() ; - bool debug() const; - void set_debug(bool value); + // 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: - bool _internal_debug() const; - void _internal_set_debug(bool value); - + const std::string& _internal_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_type(const std::string& value); + std::string* _internal_mutable_type(); public: - // optional bool disable_partial_start = 10 [json_name = "disablePartialStart"]; - bool has_disable_partial_start() const; - void clear_disable_partial_start() ; - bool disable_partial_start() const; - void set_disable_partial_start(bool value); + // .viam.app.v1.AppValidationStatus status = 5 [json_name = "status"]; + bool has_status() const; private: - bool _internal_disable_partial_start() const; - void _internal_set_disable_partial_start(bool value); - + bool _internal_has_status() const; public: - // bool enable_web_profile = 13 [json_name = "enableWebProfile"]; - void clear_enable_web_profile() ; - bool enable_web_profile() const; - void set_enable_web_profile(bool value); - + 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: - bool _internal_enable_web_profile() const; - void _internal_set_enable_web_profile(bool value); - + const ::viam::app::v1::AppValidationStatus& _internal_status() const; + ::viam::app::v1::AppValidationStatus* _internal_mutable_status(); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.RobotConfig) + 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; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 4, 16, 12, - 56, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::RemoteConfig > remotes_; - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::ComponentConfig > components_; - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::ProcessConfig > processes_; - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::ServiceConfig > services_; - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::ModuleConfig > modules_; - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::PackageConfig > packages_; - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::AppValidationStatus > overwrite_fragment_status_; - ::google::protobuf::RepeatedPtrField< ::viam::app::v1::LogPatternConfig > log_; - ::google::protobuf::internal::ArenaStringPtr revision_; - ::viam::app::v1::CloudConfig* cloud_; - ::viam::app::v1::NetworkConfig* network_; - ::viam::app::v1::AuthConfig* auth_; - ::viam::app::v1::MaintenanceConfig* maintenance_; - bool debug_; - bool disable_partial_start_; - bool enable_web_profile_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::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; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ConfigResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ConfigResponse) */ { +class MaintenanceConfig final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.MaintenanceConfig) */ { public: - inline ConfigResponse() : ConfigResponse(nullptr) {} - ~ConfigResponse() override; - template - explicit PROTOBUF_CONSTEXPR ConfigResponse(::google::protobuf::internal::ConstantInitialized); + inline MaintenanceConfig() : MaintenanceConfig(nullptr) {} + ~MaintenanceConfig() override; + explicit PROTOBUF_CONSTEXPR MaintenanceConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ConfigResponse(const ConfigResponse& from) - : ConfigResponse(nullptr, from) {} - ConfigResponse(ConfigResponse&& from) noexcept - : ConfigResponse() { + MaintenanceConfig(const MaintenanceConfig& from); + MaintenanceConfig(MaintenanceConfig&& from) noexcept + : MaintenanceConfig() { *this = ::std::move(from); } - inline ConfigResponse& operator=(const ConfigResponse& from) { + inline MaintenanceConfig& operator=(const MaintenanceConfig& from) { CopyFrom(from); return *this; } - inline ConfigResponse& operator=(ConfigResponse&& from) noexcept { + inline MaintenanceConfig& operator=(MaintenanceConfig&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -9440,1185 +8160,1079 @@ class ConfigResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ConfigResponse& default_instance() { + static const MaintenanceConfig& default_instance() { return *internal_default_instance(); } - static inline const ConfigResponse* internal_default_instance() { - return reinterpret_cast( - &_ConfigResponse_default_instance_); + static inline const MaintenanceConfig* internal_default_instance() { + return reinterpret_cast( + &_MaintenanceConfig_default_instance_); } static constexpr int kIndexInFileMessages = - 31; + 41; - friend void swap(ConfigResponse& a, ConfigResponse& b) { + friend void swap(MaintenanceConfig& a, MaintenanceConfig& b) { a.Swap(&b); } - inline void Swap(ConfigResponse* other) { + inline void Swap(MaintenanceConfig* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ConfigResponse* other) { + void UnsafeArenaSwap(MaintenanceConfig* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ConfigResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ConfigResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ConfigResponse& from) { - ConfigResponse::MergeImpl(*this, from); + MaintenanceConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MaintenanceConfig& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MaintenanceConfig& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ConfigResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(MaintenanceConfig* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.v1.ConfigResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.MaintenanceConfig"; } protected: - explicit ConfigResponse(::google::protobuf::Arena* arena); - ConfigResponse(::google::protobuf::Arena* arena, const ConfigResponse& from); + explicit MaintenanceConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kConfigFieldNumber = 1, + kMaintenanceAllowedKeyFieldNumber = 2, + kSensorNameFieldNumber = 1, }; - // .viam.app.v1.RobotConfig config = 1 [json_name = "config"]; - bool has_config() const; - void clear_config() ; - const ::viam::app::v1::RobotConfig& config() const; - PROTOBUF_NODISCARD ::viam::app::v1::RobotConfig* release_config(); - ::viam::app::v1::RobotConfig* mutable_config(); - void set_allocated_config(::viam::app::v1::RobotConfig* value); - void unsafe_arena_set_allocated_config(::viam::app::v1::RobotConfig* value); - ::viam::app::v1::RobotConfig* unsafe_arena_release_config(); - + // string maintenance_allowed_key = 2 [json_name = "maintenanceAllowedKey"]; + void clear_maintenance_allowed_key(); + const std::string& maintenance_allowed_key() const; + template + void set_maintenance_allowed_key(ArgT0&& arg0, ArgT... args); + std::string* mutable_maintenance_allowed_key(); + PROTOBUF_NODISCARD std::string* release_maintenance_allowed_key(); + void set_allocated_maintenance_allowed_key(std::string* maintenance_allowed_key); private: - const ::viam::app::v1::RobotConfig& _internal_config() const; - ::viam::app::v1::RobotConfig* _internal_mutable_config(); + const std::string& _internal_maintenance_allowed_key() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_maintenance_allowed_key(const std::string& value); + std::string* _internal_mutable_maintenance_allowed_key(); + public: + // .viam.common.v1.ResourceName sensor_name = 1 [json_name = "sensorName"]; + bool has_sensor_name() const; + private: + bool _internal_has_sensor_name() const; + public: + void clear_sensor_name(); + const ::viam::common::v1::ResourceName& sensor_name() const; + PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_sensor_name(); + ::viam::common::v1::ResourceName* mutable_sensor_name(); + void set_allocated_sensor_name(::viam::common::v1::ResourceName* sensor_name); + private: + const ::viam::common::v1::ResourceName& _internal_sensor_name() const; + ::viam::common::v1::ResourceName* _internal_mutable_sensor_name(); public: - // @@protoc_insertion_point(class_scope:viam.app.v1.ConfigResponse) + void unsafe_arena_set_allocated_sensor_name( + ::viam::common::v1::ResourceName* sensor_name); + ::viam::common::v1::ResourceName* unsafe_arena_release_sensor_name(); + + // @@protoc_insertion_point(class_scope:viam.app.v1.MaintenanceConfig) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::viam::app::v1::RobotConfig* config_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr maintenance_allowed_key_; + ::viam::common::v1::ResourceName* sensor_name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2frobot_2eproto; }; - // =================================================================== - - // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ -// ------------------------------------------------------------------- - // RobotConfig // .viam.app.v1.CloudConfig cloud = 1 [json_name = "cloud"]; +inline bool RobotConfig::_internal_has_cloud() const { + return this != internal_default_instance() && cloud_ != nullptr; +} inline bool RobotConfig::has_cloud() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.cloud_ != nullptr); - return value; + return _internal_has_cloud(); } inline void RobotConfig::clear_cloud() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.cloud_ != nullptr) _impl_.cloud_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && cloud_ != nullptr) { + delete cloud_; + } + cloud_ = nullptr; } inline const ::viam::app::v1::CloudConfig& RobotConfig::_internal_cloud() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::CloudConfig* p = _impl_.cloud_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_CloudConfig_default_instance_); + const ::viam::app::v1::CloudConfig* p = cloud_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_CloudConfig_default_instance_); } -inline const ::viam::app::v1::CloudConfig& RobotConfig::cloud() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::app::v1::CloudConfig& RobotConfig::cloud() const { // @@protoc_insertion_point(field_get:viam.app.v1.RobotConfig.cloud) return _internal_cloud(); } -inline void RobotConfig::unsafe_arena_set_allocated_cloud(::viam::app::v1::CloudConfig* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.cloud_); +inline void RobotConfig::unsafe_arena_set_allocated_cloud( + ::viam::app::v1::CloudConfig* cloud) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(cloud_); } - _impl_.cloud_ = reinterpret_cast<::viam::app::v1::CloudConfig*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + cloud_ = cloud; + if (cloud) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.RobotConfig.cloud) } inline ::viam::app::v1::CloudConfig* RobotConfig::release_cloud() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::CloudConfig* released = _impl_.cloud_; - _impl_.cloud_ = nullptr; + + ::viam::app::v1::CloudConfig* temp = cloud_; + cloud_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::app::v1::CloudConfig* RobotConfig::unsafe_arena_release_cloud() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.RobotConfig.cloud) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::CloudConfig* temp = _impl_.cloud_; - _impl_.cloud_ = nullptr; + + ::viam::app::v1::CloudConfig* temp = cloud_; + cloud_ = nullptr; return temp; } inline ::viam::app::v1::CloudConfig* RobotConfig::_internal_mutable_cloud() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.cloud_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::CloudConfig>(GetArena()); - _impl_.cloud_ = reinterpret_cast<::viam::app::v1::CloudConfig*>(p); + + if (cloud_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::CloudConfig>(GetArenaForAllocation()); + cloud_ = p; } - return _impl_.cloud_; + return cloud_; } -inline ::viam::app::v1::CloudConfig* RobotConfig::mutable_cloud() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::app::v1::CloudConfig* RobotConfig::mutable_cloud() { ::viam::app::v1::CloudConfig* _msg = _internal_mutable_cloud(); // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotConfig.cloud) return _msg; } -inline void RobotConfig::set_allocated_cloud(::viam::app::v1::CloudConfig* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void RobotConfig::set_allocated_cloud(::viam::app::v1::CloudConfig* cloud) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::CloudConfig*>(_impl_.cloud_); + delete cloud_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::CloudConfig*>(value)->GetArena(); + if (cloud) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(cloud); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + cloud = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, cloud, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.cloud_ = reinterpret_cast<::viam::app::v1::CloudConfig*>(value); + cloud_ = cloud; // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotConfig.cloud) } // repeated .viam.app.v1.RemoteConfig remotes = 2 [json_name = "remotes"]; inline int RobotConfig::_internal_remotes_size() const { - return _internal_remotes().size(); + return remotes_.size(); } inline int RobotConfig::remotes_size() const { return _internal_remotes_size(); } inline void RobotConfig::clear_remotes() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.remotes_.Clear(); + remotes_.Clear(); } -inline ::viam::app::v1::RemoteConfig* RobotConfig::mutable_remotes(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::app::v1::RemoteConfig* RobotConfig::mutable_remotes(int index) { // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotConfig.remotes) - return _internal_mutable_remotes()->Mutable(index); + return remotes_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::RemoteConfig>* RobotConfig::mutable_remotes() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::RemoteConfig >* +RobotConfig::mutable_remotes() { // @@protoc_insertion_point(field_mutable_list:viam.app.v1.RobotConfig.remotes) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_remotes(); + return &remotes_; } -inline const ::viam::app::v1::RemoteConfig& RobotConfig::remotes(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::app::v1::RemoteConfig& RobotConfig::_internal_remotes(int index) const { + return remotes_.Get(index); +} +inline const ::viam::app::v1::RemoteConfig& RobotConfig::remotes(int index) const { // @@protoc_insertion_point(field_get:viam.app.v1.RobotConfig.remotes) - return _internal_remotes().Get(index); + return _internal_remotes(index); +} +inline ::viam::app::v1::RemoteConfig* RobotConfig::_internal_add_remotes() { + return remotes_.Add(); } -inline ::viam::app::v1::RemoteConfig* RobotConfig::add_remotes() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::RemoteConfig* _add = _internal_mutable_remotes()->Add(); +inline ::viam::app::v1::RemoteConfig* RobotConfig::add_remotes() { + ::viam::app::v1::RemoteConfig* _add = _internal_add_remotes(); // @@protoc_insertion_point(field_add:viam.app.v1.RobotConfig.remotes) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::RemoteConfig>& RobotConfig::remotes() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::RemoteConfig >& +RobotConfig::remotes() const { // @@protoc_insertion_point(field_list:viam.app.v1.RobotConfig.remotes) - return _internal_remotes(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::RemoteConfig>& -RobotConfig::_internal_remotes() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.remotes_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::RemoteConfig>* -RobotConfig::_internal_mutable_remotes() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.remotes_; + return remotes_; } // repeated .viam.app.v1.ComponentConfig components = 3 [json_name = "components"]; inline int RobotConfig::_internal_components_size() const { - return _internal_components().size(); + return components_.size(); } inline int RobotConfig::components_size() const { return _internal_components_size(); } inline void RobotConfig::clear_components() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.components_.Clear(); + components_.Clear(); } -inline ::viam::app::v1::ComponentConfig* RobotConfig::mutable_components(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::app::v1::ComponentConfig* RobotConfig::mutable_components(int index) { // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotConfig.components) - return _internal_mutable_components()->Mutable(index); + return components_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::ComponentConfig>* RobotConfig::mutable_components() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ComponentConfig >* +RobotConfig::mutable_components() { // @@protoc_insertion_point(field_mutable_list:viam.app.v1.RobotConfig.components) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_components(); + return &components_; } -inline const ::viam::app::v1::ComponentConfig& RobotConfig::components(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::app::v1::ComponentConfig& RobotConfig::_internal_components(int index) const { + return components_.Get(index); +} +inline const ::viam::app::v1::ComponentConfig& RobotConfig::components(int index) const { // @@protoc_insertion_point(field_get:viam.app.v1.RobotConfig.components) - return _internal_components().Get(index); + return _internal_components(index); +} +inline ::viam::app::v1::ComponentConfig* RobotConfig::_internal_add_components() { + return components_.Add(); } -inline ::viam::app::v1::ComponentConfig* RobotConfig::add_components() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::ComponentConfig* _add = _internal_mutable_components()->Add(); +inline ::viam::app::v1::ComponentConfig* RobotConfig::add_components() { + ::viam::app::v1::ComponentConfig* _add = _internal_add_components(); // @@protoc_insertion_point(field_add:viam.app.v1.RobotConfig.components) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::ComponentConfig>& RobotConfig::components() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ComponentConfig >& +RobotConfig::components() const { // @@protoc_insertion_point(field_list:viam.app.v1.RobotConfig.components) - return _internal_components(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::ComponentConfig>& -RobotConfig::_internal_components() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.components_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::ComponentConfig>* -RobotConfig::_internal_mutable_components() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.components_; + return components_; } // repeated .viam.app.v1.ProcessConfig processes = 4 [json_name = "processes"]; inline int RobotConfig::_internal_processes_size() const { - return _internal_processes().size(); + return processes_.size(); } inline int RobotConfig::processes_size() const { return _internal_processes_size(); } inline void RobotConfig::clear_processes() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.processes_.Clear(); + processes_.Clear(); } -inline ::viam::app::v1::ProcessConfig* RobotConfig::mutable_processes(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::app::v1::ProcessConfig* RobotConfig::mutable_processes(int index) { // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotConfig.processes) - return _internal_mutable_processes()->Mutable(index); + return processes_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::ProcessConfig>* RobotConfig::mutable_processes() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ProcessConfig >* +RobotConfig::mutable_processes() { // @@protoc_insertion_point(field_mutable_list:viam.app.v1.RobotConfig.processes) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_processes(); + return &processes_; } -inline const ::viam::app::v1::ProcessConfig& RobotConfig::processes(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::app::v1::ProcessConfig& RobotConfig::_internal_processes(int index) const { + return processes_.Get(index); +} +inline const ::viam::app::v1::ProcessConfig& RobotConfig::processes(int index) const { // @@protoc_insertion_point(field_get:viam.app.v1.RobotConfig.processes) - return _internal_processes().Get(index); + return _internal_processes(index); +} +inline ::viam::app::v1::ProcessConfig* RobotConfig::_internal_add_processes() { + return processes_.Add(); } -inline ::viam::app::v1::ProcessConfig* RobotConfig::add_processes() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::ProcessConfig* _add = _internal_mutable_processes()->Add(); +inline ::viam::app::v1::ProcessConfig* RobotConfig::add_processes() { + ::viam::app::v1::ProcessConfig* _add = _internal_add_processes(); // @@protoc_insertion_point(field_add:viam.app.v1.RobotConfig.processes) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::ProcessConfig>& RobotConfig::processes() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ProcessConfig >& +RobotConfig::processes() const { // @@protoc_insertion_point(field_list:viam.app.v1.RobotConfig.processes) - return _internal_processes(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::ProcessConfig>& -RobotConfig::_internal_processes() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.processes_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::ProcessConfig>* -RobotConfig::_internal_mutable_processes() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.processes_; + return processes_; } // repeated .viam.app.v1.ServiceConfig services = 5 [json_name = "services"]; inline int RobotConfig::_internal_services_size() const { - return _internal_services().size(); + return services_.size(); } inline int RobotConfig::services_size() const { return _internal_services_size(); } inline void RobotConfig::clear_services() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.services_.Clear(); + services_.Clear(); } -inline ::viam::app::v1::ServiceConfig* RobotConfig::mutable_services(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::app::v1::ServiceConfig* RobotConfig::mutable_services(int index) { // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotConfig.services) - return _internal_mutable_services()->Mutable(index); + return services_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::ServiceConfig>* RobotConfig::mutable_services() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ServiceConfig >* +RobotConfig::mutable_services() { // @@protoc_insertion_point(field_mutable_list:viam.app.v1.RobotConfig.services) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_services(); + return &services_; } -inline const ::viam::app::v1::ServiceConfig& RobotConfig::services(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::app::v1::ServiceConfig& RobotConfig::_internal_services(int index) const { + return services_.Get(index); +} +inline const ::viam::app::v1::ServiceConfig& RobotConfig::services(int index) const { // @@protoc_insertion_point(field_get:viam.app.v1.RobotConfig.services) - return _internal_services().Get(index); + return _internal_services(index); +} +inline ::viam::app::v1::ServiceConfig* RobotConfig::_internal_add_services() { + return services_.Add(); } -inline ::viam::app::v1::ServiceConfig* RobotConfig::add_services() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::ServiceConfig* _add = _internal_mutable_services()->Add(); +inline ::viam::app::v1::ServiceConfig* RobotConfig::add_services() { + ::viam::app::v1::ServiceConfig* _add = _internal_add_services(); // @@protoc_insertion_point(field_add:viam.app.v1.RobotConfig.services) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::ServiceConfig>& RobotConfig::services() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ServiceConfig >& +RobotConfig::services() const { // @@protoc_insertion_point(field_list:viam.app.v1.RobotConfig.services) - return _internal_services(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::ServiceConfig>& -RobotConfig::_internal_services() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.services_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::ServiceConfig>* -RobotConfig::_internal_mutable_services() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.services_; + return services_; } // optional .viam.app.v1.NetworkConfig network = 6 [json_name = "network"]; -inline bool RobotConfig::has_network() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.network_ != nullptr); +inline bool RobotConfig::_internal_has_network() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || network_ != nullptr); return value; } +inline bool RobotConfig::has_network() const { + return _internal_has_network(); +} inline void RobotConfig::clear_network() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.network_ != nullptr) _impl_.network_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (network_ != nullptr) network_->Clear(); + _has_bits_[0] &= ~0x00000001u; } inline const ::viam::app::v1::NetworkConfig& RobotConfig::_internal_network() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::NetworkConfig* p = _impl_.network_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_NetworkConfig_default_instance_); + const ::viam::app::v1::NetworkConfig* p = network_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_NetworkConfig_default_instance_); } -inline const ::viam::app::v1::NetworkConfig& RobotConfig::network() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::app::v1::NetworkConfig& RobotConfig::network() const { // @@protoc_insertion_point(field_get:viam.app.v1.RobotConfig.network) return _internal_network(); } -inline void RobotConfig::unsafe_arena_set_allocated_network(::viam::app::v1::NetworkConfig* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.network_); +inline void RobotConfig::unsafe_arena_set_allocated_network( + ::viam::app::v1::NetworkConfig* network) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(network_); } - _impl_.network_ = reinterpret_cast<::viam::app::v1::NetworkConfig*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + network_ = network; + if (network) { + _has_bits_[0] |= 0x00000001u; } else { - _impl_._has_bits_[0] &= ~0x00000002u; + _has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.RobotConfig.network) } inline ::viam::app::v1::NetworkConfig* RobotConfig::release_network() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::viam::app::v1::NetworkConfig* released = _impl_.network_; - _impl_.network_ = nullptr; + _has_bits_[0] &= ~0x00000001u; + ::viam::app::v1::NetworkConfig* temp = network_; + network_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::app::v1::NetworkConfig* RobotConfig::unsafe_arena_release_network() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.RobotConfig.network) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::viam::app::v1::NetworkConfig* temp = _impl_.network_; - _impl_.network_ = nullptr; + _has_bits_[0] &= ~0x00000001u; + ::viam::app::v1::NetworkConfig* temp = network_; + network_ = nullptr; return temp; } inline ::viam::app::v1::NetworkConfig* RobotConfig::_internal_mutable_network() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.network_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::NetworkConfig>(GetArena()); - _impl_.network_ = reinterpret_cast<::viam::app::v1::NetworkConfig*>(p); + _has_bits_[0] |= 0x00000001u; + if (network_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::NetworkConfig>(GetArenaForAllocation()); + network_ = p; } - return _impl_.network_; + return network_; } -inline ::viam::app::v1::NetworkConfig* RobotConfig::mutable_network() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::app::v1::NetworkConfig* RobotConfig::mutable_network() { ::viam::app::v1::NetworkConfig* _msg = _internal_mutable_network(); // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotConfig.network) return _msg; } -inline void RobotConfig::set_allocated_network(::viam::app::v1::NetworkConfig* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void RobotConfig::set_allocated_network(::viam::app::v1::NetworkConfig* network) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::NetworkConfig*>(_impl_.network_); + delete network_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::NetworkConfig*>(value)->GetArena(); + if (network) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(network); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + network = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, network, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + _has_bits_[0] |= 0x00000001u; } else { - _impl_._has_bits_[0] &= ~0x00000002u; + _has_bits_[0] &= ~0x00000001u; } - - _impl_.network_ = reinterpret_cast<::viam::app::v1::NetworkConfig*>(value); + network_ = network; // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotConfig.network) } // optional .viam.app.v1.AuthConfig auth = 7 [json_name = "auth"]; -inline bool RobotConfig::has_auth() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || _impl_.auth_ != nullptr); +inline bool RobotConfig::_internal_has_auth() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + PROTOBUF_ASSUME(!value || auth_ != nullptr); return value; } +inline bool RobotConfig::has_auth() const { + return _internal_has_auth(); +} inline void RobotConfig::clear_auth() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.auth_ != nullptr) _impl_.auth_->Clear(); - _impl_._has_bits_[0] &= ~0x00000004u; + if (auth_ != nullptr) auth_->Clear(); + _has_bits_[0] &= ~0x00000002u; } inline const ::viam::app::v1::AuthConfig& RobotConfig::_internal_auth() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::AuthConfig* p = _impl_.auth_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_AuthConfig_default_instance_); + const ::viam::app::v1::AuthConfig* p = auth_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_AuthConfig_default_instance_); } -inline const ::viam::app::v1::AuthConfig& RobotConfig::auth() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::app::v1::AuthConfig& RobotConfig::auth() const { // @@protoc_insertion_point(field_get:viam.app.v1.RobotConfig.auth) return _internal_auth(); } -inline void RobotConfig::unsafe_arena_set_allocated_auth(::viam::app::v1::AuthConfig* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.auth_); +inline void RobotConfig::unsafe_arena_set_allocated_auth( + ::viam::app::v1::AuthConfig* auth) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(auth_); } - _impl_.auth_ = reinterpret_cast<::viam::app::v1::AuthConfig*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000004u; + auth_ = auth; + if (auth) { + _has_bits_[0] |= 0x00000002u; } else { - _impl_._has_bits_[0] &= ~0x00000004u; + _has_bits_[0] &= ~0x00000002u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.RobotConfig.auth) } inline ::viam::app::v1::AuthConfig* RobotConfig::release_auth() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000004u; - ::viam::app::v1::AuthConfig* released = _impl_.auth_; - _impl_.auth_ = nullptr; + _has_bits_[0] &= ~0x00000002u; + ::viam::app::v1::AuthConfig* temp = auth_; + auth_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::app::v1::AuthConfig* RobotConfig::unsafe_arena_release_auth() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.RobotConfig.auth) - - _impl_._has_bits_[0] &= ~0x00000004u; - ::viam::app::v1::AuthConfig* temp = _impl_.auth_; - _impl_.auth_ = nullptr; + _has_bits_[0] &= ~0x00000002u; + ::viam::app::v1::AuthConfig* temp = auth_; + auth_ = nullptr; return temp; } inline ::viam::app::v1::AuthConfig* RobotConfig::_internal_mutable_auth() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - if (_impl_.auth_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::AuthConfig>(GetArena()); - _impl_.auth_ = reinterpret_cast<::viam::app::v1::AuthConfig*>(p); + _has_bits_[0] |= 0x00000002u; + if (auth_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::AuthConfig>(GetArenaForAllocation()); + auth_ = p; } - return _impl_.auth_; + return auth_; } -inline ::viam::app::v1::AuthConfig* RobotConfig::mutable_auth() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::app::v1::AuthConfig* RobotConfig::mutable_auth() { ::viam::app::v1::AuthConfig* _msg = _internal_mutable_auth(); // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotConfig.auth) return _msg; } -inline void RobotConfig::set_allocated_auth(::viam::app::v1::AuthConfig* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void RobotConfig::set_allocated_auth(::viam::app::v1::AuthConfig* auth) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::AuthConfig*>(_impl_.auth_); + delete auth_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::AuthConfig*>(value)->GetArena(); + if (auth) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(auth); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + auth = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, auth, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000004u; + _has_bits_[0] |= 0x00000002u; } else { - _impl_._has_bits_[0] &= ~0x00000004u; + _has_bits_[0] &= ~0x00000002u; } - - _impl_.auth_ = reinterpret_cast<::viam::app::v1::AuthConfig*>(value); + auth_ = auth; // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotConfig.auth) } // optional bool debug = 8 [json_name = "debug"]; -inline bool RobotConfig::has_debug() const { - bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; +inline bool RobotConfig::_internal_has_debug() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; return value; } +inline bool RobotConfig::has_debug() const { + return _internal_has_debug(); +} inline void RobotConfig::clear_debug() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.debug_ = false; - _impl_._has_bits_[0] &= ~0x00000010u; + debug_ = false; + _has_bits_[0] &= ~0x00000008u; +} +inline bool RobotConfig::_internal_debug() const { + return debug_; } inline bool RobotConfig::debug() const { // @@protoc_insertion_point(field_get:viam.app.v1.RobotConfig.debug) return _internal_debug(); } +inline void RobotConfig::_internal_set_debug(bool value) { + _has_bits_[0] |= 0x00000008u; + debug_ = value; +} inline void RobotConfig::set_debug(bool value) { _internal_set_debug(value); // @@protoc_insertion_point(field_set:viam.app.v1.RobotConfig.debug) } -inline bool RobotConfig::_internal_debug() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.debug_; -} -inline void RobotConfig::_internal_set_debug(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000010u; - _impl_.debug_ = value; -} // repeated .viam.app.v1.ModuleConfig modules = 9 [json_name = "modules"]; inline int RobotConfig::_internal_modules_size() const { - return _internal_modules().size(); + return modules_.size(); } inline int RobotConfig::modules_size() const { return _internal_modules_size(); } inline void RobotConfig::clear_modules() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.modules_.Clear(); + modules_.Clear(); } -inline ::viam::app::v1::ModuleConfig* RobotConfig::mutable_modules(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::app::v1::ModuleConfig* RobotConfig::mutable_modules(int index) { // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotConfig.modules) - return _internal_mutable_modules()->Mutable(index); + return modules_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::ModuleConfig>* RobotConfig::mutable_modules() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ModuleConfig >* +RobotConfig::mutable_modules() { // @@protoc_insertion_point(field_mutable_list:viam.app.v1.RobotConfig.modules) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_modules(); + return &modules_; +} +inline const ::viam::app::v1::ModuleConfig& RobotConfig::_internal_modules(int index) const { + return modules_.Get(index); } -inline const ::viam::app::v1::ModuleConfig& RobotConfig::modules(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::app::v1::ModuleConfig& RobotConfig::modules(int index) const { // @@protoc_insertion_point(field_get:viam.app.v1.RobotConfig.modules) - return _internal_modules().Get(index); + return _internal_modules(index); } -inline ::viam::app::v1::ModuleConfig* RobotConfig::add_modules() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::ModuleConfig* _add = _internal_mutable_modules()->Add(); +inline ::viam::app::v1::ModuleConfig* RobotConfig::_internal_add_modules() { + return modules_.Add(); +} +inline ::viam::app::v1::ModuleConfig* RobotConfig::add_modules() { + ::viam::app::v1::ModuleConfig* _add = _internal_add_modules(); // @@protoc_insertion_point(field_add:viam.app.v1.RobotConfig.modules) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::ModuleConfig>& RobotConfig::modules() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ModuleConfig >& +RobotConfig::modules() const { // @@protoc_insertion_point(field_list:viam.app.v1.RobotConfig.modules) - return _internal_modules(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::ModuleConfig>& -RobotConfig::_internal_modules() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.modules_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::ModuleConfig>* -RobotConfig::_internal_mutable_modules() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.modules_; + return modules_; } // optional bool disable_partial_start = 10 [json_name = "disablePartialStart"]; -inline bool RobotConfig::has_disable_partial_start() const { - bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0; +inline bool RobotConfig::_internal_has_disable_partial_start() const { + bool value = (_has_bits_[0] & 0x00000010u) != 0; return value; } +inline bool RobotConfig::has_disable_partial_start() const { + return _internal_has_disable_partial_start(); +} inline void RobotConfig::clear_disable_partial_start() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.disable_partial_start_ = false; - _impl_._has_bits_[0] &= ~0x00000020u; + disable_partial_start_ = false; + _has_bits_[0] &= ~0x00000010u; +} +inline bool RobotConfig::_internal_disable_partial_start() const { + return disable_partial_start_; } inline bool RobotConfig::disable_partial_start() const { // @@protoc_insertion_point(field_get:viam.app.v1.RobotConfig.disable_partial_start) return _internal_disable_partial_start(); } +inline void RobotConfig::_internal_set_disable_partial_start(bool value) { + _has_bits_[0] |= 0x00000010u; + disable_partial_start_ = value; +} inline void RobotConfig::set_disable_partial_start(bool value) { _internal_set_disable_partial_start(value); // @@protoc_insertion_point(field_set:viam.app.v1.RobotConfig.disable_partial_start) } -inline bool RobotConfig::_internal_disable_partial_start() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.disable_partial_start_; -} -inline void RobotConfig::_internal_set_disable_partial_start(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000020u; - _impl_.disable_partial_start_ = value; -} // repeated .viam.app.v1.PackageConfig packages = 11 [json_name = "packages"]; inline int RobotConfig::_internal_packages_size() const { - return _internal_packages().size(); + return packages_.size(); } inline int RobotConfig::packages_size() const { return _internal_packages_size(); } inline void RobotConfig::clear_packages() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.packages_.Clear(); + packages_.Clear(); } -inline ::viam::app::v1::PackageConfig* RobotConfig::mutable_packages(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::app::v1::PackageConfig* RobotConfig::mutable_packages(int index) { // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotConfig.packages) - return _internal_mutable_packages()->Mutable(index); + return packages_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::PackageConfig>* RobotConfig::mutable_packages() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::PackageConfig >* +RobotConfig::mutable_packages() { // @@protoc_insertion_point(field_mutable_list:viam.app.v1.RobotConfig.packages) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_packages(); + return &packages_; } -inline const ::viam::app::v1::PackageConfig& RobotConfig::packages(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::app::v1::PackageConfig& RobotConfig::_internal_packages(int index) const { + return packages_.Get(index); +} +inline const ::viam::app::v1::PackageConfig& RobotConfig::packages(int index) const { // @@protoc_insertion_point(field_get:viam.app.v1.RobotConfig.packages) - return _internal_packages().Get(index); + return _internal_packages(index); +} +inline ::viam::app::v1::PackageConfig* RobotConfig::_internal_add_packages() { + return packages_.Add(); } -inline ::viam::app::v1::PackageConfig* RobotConfig::add_packages() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::PackageConfig* _add = _internal_mutable_packages()->Add(); +inline ::viam::app::v1::PackageConfig* RobotConfig::add_packages() { + ::viam::app::v1::PackageConfig* _add = _internal_add_packages(); // @@protoc_insertion_point(field_add:viam.app.v1.RobotConfig.packages) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::PackageConfig>& RobotConfig::packages() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::PackageConfig >& +RobotConfig::packages() const { // @@protoc_insertion_point(field_list:viam.app.v1.RobotConfig.packages) - return _internal_packages(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::PackageConfig>& -RobotConfig::_internal_packages() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.packages_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::PackageConfig>* -RobotConfig::_internal_mutable_packages() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.packages_; + return packages_; } // repeated .viam.app.v1.AppValidationStatus overwrite_fragment_status = 12 [json_name = "overwriteFragmentStatus"]; inline int RobotConfig::_internal_overwrite_fragment_status_size() const { - return _internal_overwrite_fragment_status().size(); + return overwrite_fragment_status_.size(); } inline int RobotConfig::overwrite_fragment_status_size() const { return _internal_overwrite_fragment_status_size(); } inline void RobotConfig::clear_overwrite_fragment_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.overwrite_fragment_status_.Clear(); + overwrite_fragment_status_.Clear(); } -inline ::viam::app::v1::AppValidationStatus* RobotConfig::mutable_overwrite_fragment_status(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::app::v1::AppValidationStatus* RobotConfig::mutable_overwrite_fragment_status(int index) { // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotConfig.overwrite_fragment_status) - return _internal_mutable_overwrite_fragment_status()->Mutable(index); + return overwrite_fragment_status_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::AppValidationStatus>* RobotConfig::mutable_overwrite_fragment_status() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::AppValidationStatus >* +RobotConfig::mutable_overwrite_fragment_status() { // @@protoc_insertion_point(field_mutable_list:viam.app.v1.RobotConfig.overwrite_fragment_status) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_overwrite_fragment_status(); + return &overwrite_fragment_status_; } -inline const ::viam::app::v1::AppValidationStatus& RobotConfig::overwrite_fragment_status(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::app::v1::AppValidationStatus& RobotConfig::_internal_overwrite_fragment_status(int index) const { + return overwrite_fragment_status_.Get(index); +} +inline const ::viam::app::v1::AppValidationStatus& RobotConfig::overwrite_fragment_status(int index) const { // @@protoc_insertion_point(field_get:viam.app.v1.RobotConfig.overwrite_fragment_status) - return _internal_overwrite_fragment_status().Get(index); + return _internal_overwrite_fragment_status(index); +} +inline ::viam::app::v1::AppValidationStatus* RobotConfig::_internal_add_overwrite_fragment_status() { + return overwrite_fragment_status_.Add(); } -inline ::viam::app::v1::AppValidationStatus* RobotConfig::add_overwrite_fragment_status() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::AppValidationStatus* _add = _internal_mutable_overwrite_fragment_status()->Add(); +inline ::viam::app::v1::AppValidationStatus* RobotConfig::add_overwrite_fragment_status() { + ::viam::app::v1::AppValidationStatus* _add = _internal_add_overwrite_fragment_status(); // @@protoc_insertion_point(field_add:viam.app.v1.RobotConfig.overwrite_fragment_status) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::AppValidationStatus>& RobotConfig::overwrite_fragment_status() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::AppValidationStatus >& +RobotConfig::overwrite_fragment_status() const { // @@protoc_insertion_point(field_list:viam.app.v1.RobotConfig.overwrite_fragment_status) - return _internal_overwrite_fragment_status(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::AppValidationStatus>& -RobotConfig::_internal_overwrite_fragment_status() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.overwrite_fragment_status_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::AppValidationStatus>* -RobotConfig::_internal_mutable_overwrite_fragment_status() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.overwrite_fragment_status_; + return overwrite_fragment_status_; } // bool enable_web_profile = 13 [json_name = "enableWebProfile"]; inline void RobotConfig::clear_enable_web_profile() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.enable_web_profile_ = false; + enable_web_profile_ = false; +} +inline bool RobotConfig::_internal_enable_web_profile() const { + return enable_web_profile_; } inline bool RobotConfig::enable_web_profile() const { // @@protoc_insertion_point(field_get:viam.app.v1.RobotConfig.enable_web_profile) return _internal_enable_web_profile(); } +inline void RobotConfig::_internal_set_enable_web_profile(bool value) { + + enable_web_profile_ = value; +} inline void RobotConfig::set_enable_web_profile(bool value) { _internal_set_enable_web_profile(value); // @@protoc_insertion_point(field_set:viam.app.v1.RobotConfig.enable_web_profile) } -inline bool RobotConfig::_internal_enable_web_profile() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.enable_web_profile_; -} -inline void RobotConfig::_internal_set_enable_web_profile(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.enable_web_profile_ = value; -} // repeated .viam.app.v1.LogPatternConfig log = 14 [json_name = "log"]; inline int RobotConfig::_internal_log_size() const { - return _internal_log().size(); + return log_.size(); } inline int RobotConfig::log_size() const { return _internal_log_size(); } inline void RobotConfig::clear_log() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.log_.Clear(); + log_.Clear(); } -inline ::viam::app::v1::LogPatternConfig* RobotConfig::mutable_log(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::app::v1::LogPatternConfig* RobotConfig::mutable_log(int index) { // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotConfig.log) - return _internal_mutable_log()->Mutable(index); + return log_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::LogPatternConfig>* RobotConfig::mutable_log() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::LogPatternConfig >* +RobotConfig::mutable_log() { // @@protoc_insertion_point(field_mutable_list:viam.app.v1.RobotConfig.log) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_log(); + return &log_; } -inline const ::viam::app::v1::LogPatternConfig& RobotConfig::log(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::app::v1::LogPatternConfig& RobotConfig::_internal_log(int index) const { + return log_.Get(index); +} +inline const ::viam::app::v1::LogPatternConfig& RobotConfig::log(int index) const { // @@protoc_insertion_point(field_get:viam.app.v1.RobotConfig.log) - return _internal_log().Get(index); + return _internal_log(index); +} +inline ::viam::app::v1::LogPatternConfig* RobotConfig::_internal_add_log() { + return log_.Add(); } -inline ::viam::app::v1::LogPatternConfig* RobotConfig::add_log() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::LogPatternConfig* _add = _internal_mutable_log()->Add(); +inline ::viam::app::v1::LogPatternConfig* RobotConfig::add_log() { + ::viam::app::v1::LogPatternConfig* _add = _internal_add_log(); // @@protoc_insertion_point(field_add:viam.app.v1.RobotConfig.log) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::LogPatternConfig>& RobotConfig::log() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::LogPatternConfig >& +RobotConfig::log() const { // @@protoc_insertion_point(field_list:viam.app.v1.RobotConfig.log) - return _internal_log(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::LogPatternConfig>& -RobotConfig::_internal_log() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.log_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::LogPatternConfig>* -RobotConfig::_internal_mutable_log() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.log_; + return log_; } // string revision = 15 [json_name = "revision"]; inline void RobotConfig::clear_revision() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.revision_.ClearToEmpty(); + revision_.ClearToEmpty(); } -inline const std::string& RobotConfig::revision() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& RobotConfig::revision() const { // @@protoc_insertion_point(field_get:viam.app.v1.RobotConfig.revision) return _internal_revision(); } -template -inline PROTOBUF_ALWAYS_INLINE void RobotConfig::set_revision(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.revision_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void RobotConfig::set_revision(ArgT0&& arg0, ArgT... args) { + + revision_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.RobotConfig.revision) } -inline std::string* RobotConfig::mutable_revision() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* RobotConfig::mutable_revision() { std::string* _s = _internal_mutable_revision(); // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotConfig.revision) return _s; } inline const std::string& RobotConfig::_internal_revision() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.revision_.Get(); + return revision_.Get(); } inline void RobotConfig::_internal_set_revision(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.revision_.Set(value, GetArena()); + + revision_.Set(value, GetArenaForAllocation()); } inline std::string* RobotConfig::_internal_mutable_revision() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.revision_.Mutable( GetArena()); + + return revision_.Mutable(GetArenaForAllocation()); } inline std::string* RobotConfig::release_revision() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.RobotConfig.revision) - return _impl_.revision_.Release(); -} -inline void RobotConfig::set_allocated_revision(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.revision_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.revision_.IsDefault()) { - _impl_.revision_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return revision_.Release(); +} +inline void RobotConfig::set_allocated_revision(std::string* revision) { + if (revision != nullptr) { + + } else { + + } + revision_.SetAllocated(revision, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (revision_.IsDefault()) { + revision_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotConfig.revision) } // optional .viam.app.v1.MaintenanceConfig maintenance = 16 [json_name = "maintenance"]; -inline bool RobotConfig::has_maintenance() const { - bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; - PROTOBUF_ASSUME(!value || _impl_.maintenance_ != nullptr); +inline bool RobotConfig::_internal_has_maintenance() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + PROTOBUF_ASSUME(!value || maintenance_ != nullptr); return value; } +inline bool RobotConfig::has_maintenance() const { + return _internal_has_maintenance(); +} inline void RobotConfig::clear_maintenance() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.maintenance_ != nullptr) _impl_.maintenance_->Clear(); - _impl_._has_bits_[0] &= ~0x00000008u; + if (maintenance_ != nullptr) maintenance_->Clear(); + _has_bits_[0] &= ~0x00000004u; } inline const ::viam::app::v1::MaintenanceConfig& RobotConfig::_internal_maintenance() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::MaintenanceConfig* p = _impl_.maintenance_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_MaintenanceConfig_default_instance_); + const ::viam::app::v1::MaintenanceConfig* p = maintenance_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_MaintenanceConfig_default_instance_); } -inline const ::viam::app::v1::MaintenanceConfig& RobotConfig::maintenance() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::app::v1::MaintenanceConfig& RobotConfig::maintenance() const { // @@protoc_insertion_point(field_get:viam.app.v1.RobotConfig.maintenance) return _internal_maintenance(); } -inline void RobotConfig::unsafe_arena_set_allocated_maintenance(::viam::app::v1::MaintenanceConfig* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.maintenance_); +inline void RobotConfig::unsafe_arena_set_allocated_maintenance( + ::viam::app::v1::MaintenanceConfig* maintenance) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(maintenance_); } - _impl_.maintenance_ = reinterpret_cast<::viam::app::v1::MaintenanceConfig*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000008u; + maintenance_ = maintenance; + if (maintenance) { + _has_bits_[0] |= 0x00000004u; } else { - _impl_._has_bits_[0] &= ~0x00000008u; + _has_bits_[0] &= ~0x00000004u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.RobotConfig.maintenance) } inline ::viam::app::v1::MaintenanceConfig* RobotConfig::release_maintenance() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000008u; - ::viam::app::v1::MaintenanceConfig* released = _impl_.maintenance_; - _impl_.maintenance_ = nullptr; + _has_bits_[0] &= ~0x00000004u; + ::viam::app::v1::MaintenanceConfig* temp = maintenance_; + maintenance_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::app::v1::MaintenanceConfig* RobotConfig::unsafe_arena_release_maintenance() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.RobotConfig.maintenance) - - _impl_._has_bits_[0] &= ~0x00000008u; - ::viam::app::v1::MaintenanceConfig* temp = _impl_.maintenance_; - _impl_.maintenance_ = nullptr; + _has_bits_[0] &= ~0x00000004u; + ::viam::app::v1::MaintenanceConfig* temp = maintenance_; + maintenance_ = nullptr; return temp; } inline ::viam::app::v1::MaintenanceConfig* RobotConfig::_internal_mutable_maintenance() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000008u; - if (_impl_.maintenance_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::MaintenanceConfig>(GetArena()); - _impl_.maintenance_ = reinterpret_cast<::viam::app::v1::MaintenanceConfig*>(p); + _has_bits_[0] |= 0x00000004u; + if (maintenance_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::MaintenanceConfig>(GetArenaForAllocation()); + maintenance_ = p; } - return _impl_.maintenance_; + return maintenance_; } -inline ::viam::app::v1::MaintenanceConfig* RobotConfig::mutable_maintenance() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::app::v1::MaintenanceConfig* RobotConfig::mutable_maintenance() { ::viam::app::v1::MaintenanceConfig* _msg = _internal_mutable_maintenance(); // @@protoc_insertion_point(field_mutable:viam.app.v1.RobotConfig.maintenance) return _msg; } -inline void RobotConfig::set_allocated_maintenance(::viam::app::v1::MaintenanceConfig* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void RobotConfig::set_allocated_maintenance(::viam::app::v1::MaintenanceConfig* maintenance) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::MaintenanceConfig*>(_impl_.maintenance_); + delete maintenance_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::MaintenanceConfig*>(value)->GetArena(); + if (maintenance) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(maintenance); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + maintenance = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, maintenance, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000008u; + _has_bits_[0] |= 0x00000004u; } else { - _impl_._has_bits_[0] &= ~0x00000008u; + _has_bits_[0] &= ~0x00000004u; } - - _impl_.maintenance_ = reinterpret_cast<::viam::app::v1::MaintenanceConfig*>(value); + maintenance_ = maintenance; // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RobotConfig.maintenance) } +// bool disable_log_deduplication = 17 [json_name = "disableLogDeduplication"]; +inline void RobotConfig::clear_disable_log_deduplication() { + disable_log_deduplication_ = false; +} +inline bool RobotConfig::_internal_disable_log_deduplication() const { + return disable_log_deduplication_; +} +inline bool RobotConfig::disable_log_deduplication() const { + // @@protoc_insertion_point(field_get:viam.app.v1.RobotConfig.disable_log_deduplication) + return _internal_disable_log_deduplication(); +} +inline void RobotConfig::_internal_set_disable_log_deduplication(bool value) { + + disable_log_deduplication_ = value; +} +inline void RobotConfig::set_disable_log_deduplication(bool value) { + _internal_set_disable_log_deduplication(value); + // @@protoc_insertion_point(field_set:viam.app.v1.RobotConfig.disable_log_deduplication) +} + // ------------------------------------------------------------------- // LogPatternConfig // string pattern = 1 [json_name = "pattern"]; inline void LogPatternConfig::clear_pattern() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.pattern_.ClearToEmpty(); + pattern_.ClearToEmpty(); } -inline const std::string& LogPatternConfig::pattern() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& LogPatternConfig::pattern() const { // @@protoc_insertion_point(field_get:viam.app.v1.LogPatternConfig.pattern) return _internal_pattern(); } -template -inline PROTOBUF_ALWAYS_INLINE void LogPatternConfig::set_pattern(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.pattern_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void LogPatternConfig::set_pattern(ArgT0&& arg0, ArgT... args) { + + pattern_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.LogPatternConfig.pattern) } -inline std::string* LogPatternConfig::mutable_pattern() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* LogPatternConfig::mutable_pattern() { std::string* _s = _internal_mutable_pattern(); // @@protoc_insertion_point(field_mutable:viam.app.v1.LogPatternConfig.pattern) return _s; } inline const std::string& LogPatternConfig::_internal_pattern() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.pattern_.Get(); + return pattern_.Get(); } inline void LogPatternConfig::_internal_set_pattern(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.pattern_.Set(value, GetArena()); + + pattern_.Set(value, GetArenaForAllocation()); } inline std::string* LogPatternConfig::_internal_mutable_pattern() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.pattern_.Mutable( GetArena()); + + return pattern_.Mutable(GetArenaForAllocation()); } inline std::string* LogPatternConfig::release_pattern() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.LogPatternConfig.pattern) - return _impl_.pattern_.Release(); -} -inline void LogPatternConfig::set_allocated_pattern(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.pattern_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.pattern_.IsDefault()) { - _impl_.pattern_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return pattern_.Release(); +} +inline void LogPatternConfig::set_allocated_pattern(std::string* pattern) { + if (pattern != nullptr) { + + } else { + + } + pattern_.SetAllocated(pattern, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (pattern_.IsDefault()) { + pattern_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.LogPatternConfig.pattern) } // string level = 2 [json_name = "level"]; inline void LogPatternConfig::clear_level() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.level_.ClearToEmpty(); + level_.ClearToEmpty(); } -inline const std::string& LogPatternConfig::level() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& LogPatternConfig::level() const { // @@protoc_insertion_point(field_get:viam.app.v1.LogPatternConfig.level) return _internal_level(); } -template -inline PROTOBUF_ALWAYS_INLINE void LogPatternConfig::set_level(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.level_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void LogPatternConfig::set_level(ArgT0&& arg0, ArgT... args) { + + level_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.LogPatternConfig.level) } -inline std::string* LogPatternConfig::mutable_level() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* LogPatternConfig::mutable_level() { std::string* _s = _internal_mutable_level(); // @@protoc_insertion_point(field_mutable:viam.app.v1.LogPatternConfig.level) return _s; } inline const std::string& LogPatternConfig::_internal_level() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.level_.Get(); + return level_.Get(); } inline void LogPatternConfig::_internal_set_level(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.level_.Set(value, GetArena()); + + level_.Set(value, GetArenaForAllocation()); } inline std::string* LogPatternConfig::_internal_mutable_level() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.level_.Mutable( GetArena()); + + return level_.Mutable(GetArenaForAllocation()); } inline std::string* LogPatternConfig::release_level() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.LogPatternConfig.level) - return _impl_.level_.Release(); -} -inline void LogPatternConfig::set_allocated_level(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.level_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.level_.IsDefault()) { - _impl_.level_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return level_.Release(); +} +inline void LogPatternConfig::set_allocated_level(std::string* level) { + if (level != nullptr) { + + } else { + + } + level_.SetAllocated(level, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (level_.IsDefault()) { + level_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.LogPatternConfig.level) } @@ -10628,107 +9242,101 @@ inline void LogPatternConfig::set_allocated_level(std::string* value) { // string id = 1 [json_name = "id"]; inline void LocationSecret::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); + id_.ClearToEmpty(); } -inline const std::string& LocationSecret::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& LocationSecret::id() const { // @@protoc_insertion_point(field_get:viam.app.v1.LocationSecret.id) return _internal_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void LocationSecret::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void LocationSecret::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.LocationSecret.id) } -inline std::string* LocationSecret::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* LocationSecret::mutable_id() { std::string* _s = _internal_mutable_id(); // @@protoc_insertion_point(field_mutable:viam.app.v1.LocationSecret.id) return _s; } inline const std::string& LocationSecret::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); + return id_.Get(); } inline void LocationSecret::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); + + id_.Set(value, GetArenaForAllocation()); } inline std::string* LocationSecret::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); + + return id_.Mutable(GetArenaForAllocation()); } inline std::string* LocationSecret::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.LocationSecret.id) - return _impl_.id_.Release(); -} -inline void LocationSecret::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return id_.Release(); +} +inline void LocationSecret::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.LocationSecret.id) } // string secret = 2 [json_name = "secret"]; inline void LocationSecret::clear_secret() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.secret_.ClearToEmpty(); + secret_.ClearToEmpty(); } -inline const std::string& LocationSecret::secret() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& LocationSecret::secret() const { // @@protoc_insertion_point(field_get:viam.app.v1.LocationSecret.secret) return _internal_secret(); } -template -inline PROTOBUF_ALWAYS_INLINE void LocationSecret::set_secret(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.secret_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void LocationSecret::set_secret(ArgT0&& arg0, ArgT... args) { + + secret_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.LocationSecret.secret) } -inline std::string* LocationSecret::mutable_secret() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* LocationSecret::mutable_secret() { std::string* _s = _internal_mutable_secret(); // @@protoc_insertion_point(field_mutable:viam.app.v1.LocationSecret.secret) return _s; } inline const std::string& LocationSecret::_internal_secret() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.secret_.Get(); + return secret_.Get(); } inline void LocationSecret::_internal_set_secret(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.secret_.Set(value, GetArena()); + + secret_.Set(value, GetArenaForAllocation()); } inline std::string* LocationSecret::_internal_mutable_secret() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.secret_.Mutable( GetArena()); + + return secret_.Mutable(GetArenaForAllocation()); } inline std::string* LocationSecret::release_secret() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.LocationSecret.secret) - return _impl_.secret_.Release(); -} -inline void LocationSecret::set_allocated_secret(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.secret_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.secret_.IsDefault()) { - _impl_.secret_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return secret_.Release(); +} +inline void LocationSecret::set_allocated_secret(std::string* secret) { + if (secret != nullptr) { + + } else { + + } + secret_.SetAllocated(secret, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (secret_.IsDefault()) { + secret_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.LocationSecret.secret) } @@ -10738,54 +9346,51 @@ inline void LocationSecret::set_allocated_secret(std::string* value) { // string error = 1 [json_name = "error"]; inline void AppValidationStatus::clear_error() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.error_.ClearToEmpty(); + error_.ClearToEmpty(); } -inline const std::string& AppValidationStatus::error() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +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(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.error_.Set(static_cast(arg), args..., GetArena()); +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() ABSL_ATTRIBUTE_LIFETIME_BOUND { +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 { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.error_.Get(); + return error_.Get(); } inline void AppValidationStatus::_internal_set_error(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.error_.Set(value, GetArena()); + + error_.Set(value, GetArenaForAllocation()); } inline std::string* AppValidationStatus::_internal_mutable_error() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.error_.Mutable( GetArena()); + + return error_.Mutable(GetArenaForAllocation()); } inline std::string* AppValidationStatus::release_error() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.AppValidationStatus.error) - return _impl_.error_.Release(); -} -inline void AppValidationStatus::set_allocated_error(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.error_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.error_.IsDefault()) { - _impl_.error_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + 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) } @@ -10795,603 +9400,561 @@ inline void AppValidationStatus::set_allocated_error(std::string* value) { // string id = 1 [json_name = "id"]; inline void CloudConfig::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); + id_.ClearToEmpty(); } -inline const std::string& CloudConfig::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& CloudConfig::id() const { // @@protoc_insertion_point(field_get:viam.app.v1.CloudConfig.id) return _internal_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void CloudConfig::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void CloudConfig::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.CloudConfig.id) } -inline std::string* CloudConfig::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* CloudConfig::mutable_id() { std::string* _s = _internal_mutable_id(); // @@protoc_insertion_point(field_mutable:viam.app.v1.CloudConfig.id) return _s; } inline const std::string& CloudConfig::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); + return id_.Get(); } inline void CloudConfig::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); + + id_.Set(value, GetArenaForAllocation()); } inline std::string* CloudConfig::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); + + return id_.Mutable(GetArenaForAllocation()); } inline std::string* CloudConfig::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.CloudConfig.id) - return _impl_.id_.Release(); -} -inline void CloudConfig::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return id_.Release(); +} +inline void CloudConfig::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CloudConfig.id) } // string fqdn = 2 [json_name = "fqdn"]; inline void CloudConfig::clear_fqdn() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.fqdn_.ClearToEmpty(); + fqdn_.ClearToEmpty(); } -inline const std::string& CloudConfig::fqdn() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& CloudConfig::fqdn() const { // @@protoc_insertion_point(field_get:viam.app.v1.CloudConfig.fqdn) return _internal_fqdn(); } -template -inline PROTOBUF_ALWAYS_INLINE void CloudConfig::set_fqdn(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.fqdn_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void CloudConfig::set_fqdn(ArgT0&& arg0, ArgT... args) { + + fqdn_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.CloudConfig.fqdn) } -inline std::string* CloudConfig::mutable_fqdn() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* CloudConfig::mutable_fqdn() { std::string* _s = _internal_mutable_fqdn(); // @@protoc_insertion_point(field_mutable:viam.app.v1.CloudConfig.fqdn) return _s; } inline const std::string& CloudConfig::_internal_fqdn() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.fqdn_.Get(); + return fqdn_.Get(); } inline void CloudConfig::_internal_set_fqdn(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.fqdn_.Set(value, GetArena()); + + fqdn_.Set(value, GetArenaForAllocation()); } inline std::string* CloudConfig::_internal_mutable_fqdn() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.fqdn_.Mutable( GetArena()); + + return fqdn_.Mutable(GetArenaForAllocation()); } inline std::string* CloudConfig::release_fqdn() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.CloudConfig.fqdn) - return _impl_.fqdn_.Release(); -} -inline void CloudConfig::set_allocated_fqdn(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.fqdn_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.fqdn_.IsDefault()) { - _impl_.fqdn_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return fqdn_.Release(); +} +inline void CloudConfig::set_allocated_fqdn(std::string* fqdn) { + if (fqdn != nullptr) { + + } else { + + } + fqdn_.SetAllocated(fqdn, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (fqdn_.IsDefault()) { + fqdn_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CloudConfig.fqdn) } // string local_fqdn = 3 [json_name = "localFqdn"]; inline void CloudConfig::clear_local_fqdn() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.local_fqdn_.ClearToEmpty(); + local_fqdn_.ClearToEmpty(); } -inline const std::string& CloudConfig::local_fqdn() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& CloudConfig::local_fqdn() const { // @@protoc_insertion_point(field_get:viam.app.v1.CloudConfig.local_fqdn) return _internal_local_fqdn(); } -template -inline PROTOBUF_ALWAYS_INLINE void CloudConfig::set_local_fqdn(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.local_fqdn_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void CloudConfig::set_local_fqdn(ArgT0&& arg0, ArgT... args) { + + local_fqdn_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.CloudConfig.local_fqdn) } -inline std::string* CloudConfig::mutable_local_fqdn() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* CloudConfig::mutable_local_fqdn() { std::string* _s = _internal_mutable_local_fqdn(); // @@protoc_insertion_point(field_mutable:viam.app.v1.CloudConfig.local_fqdn) return _s; } inline const std::string& CloudConfig::_internal_local_fqdn() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.local_fqdn_.Get(); + return local_fqdn_.Get(); } inline void CloudConfig::_internal_set_local_fqdn(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.local_fqdn_.Set(value, GetArena()); + + local_fqdn_.Set(value, GetArenaForAllocation()); } inline std::string* CloudConfig::_internal_mutable_local_fqdn() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.local_fqdn_.Mutable( GetArena()); + + return local_fqdn_.Mutable(GetArenaForAllocation()); } inline std::string* CloudConfig::release_local_fqdn() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.CloudConfig.local_fqdn) - return _impl_.local_fqdn_.Release(); -} -inline void CloudConfig::set_allocated_local_fqdn(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.local_fqdn_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.local_fqdn_.IsDefault()) { - _impl_.local_fqdn_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return local_fqdn_.Release(); +} +inline void CloudConfig::set_allocated_local_fqdn(std::string* local_fqdn) { + if (local_fqdn != nullptr) { + + } else { + + } + local_fqdn_.SetAllocated(local_fqdn, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (local_fqdn_.IsDefault()) { + local_fqdn_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CloudConfig.local_fqdn) } // string managed_by = 4 [json_name = "managedBy"]; inline void CloudConfig::clear_managed_by() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.managed_by_.ClearToEmpty(); + managed_by_.ClearToEmpty(); } -inline const std::string& CloudConfig::managed_by() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& CloudConfig::managed_by() const { // @@protoc_insertion_point(field_get:viam.app.v1.CloudConfig.managed_by) return _internal_managed_by(); } -template -inline PROTOBUF_ALWAYS_INLINE void CloudConfig::set_managed_by(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.managed_by_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void CloudConfig::set_managed_by(ArgT0&& arg0, ArgT... args) { + + managed_by_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.CloudConfig.managed_by) } -inline std::string* CloudConfig::mutable_managed_by() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* CloudConfig::mutable_managed_by() { std::string* _s = _internal_mutable_managed_by(); // @@protoc_insertion_point(field_mutable:viam.app.v1.CloudConfig.managed_by) return _s; } inline const std::string& CloudConfig::_internal_managed_by() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.managed_by_.Get(); + return managed_by_.Get(); } inline void CloudConfig::_internal_set_managed_by(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.managed_by_.Set(value, GetArena()); + + managed_by_.Set(value, GetArenaForAllocation()); } inline std::string* CloudConfig::_internal_mutable_managed_by() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.managed_by_.Mutable( GetArena()); + + return managed_by_.Mutable(GetArenaForAllocation()); } inline std::string* CloudConfig::release_managed_by() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.CloudConfig.managed_by) - return _impl_.managed_by_.Release(); -} -inline void CloudConfig::set_allocated_managed_by(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.managed_by_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.managed_by_.IsDefault()) { - _impl_.managed_by_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return managed_by_.Release(); +} +inline void CloudConfig::set_allocated_managed_by(std::string* managed_by) { + if (managed_by != nullptr) { + + } else { + + } + managed_by_.SetAllocated(managed_by, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (managed_by_.IsDefault()) { + managed_by_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CloudConfig.managed_by) } // string signaling_address = 5 [json_name = "signalingAddress"]; inline void CloudConfig::clear_signaling_address() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.signaling_address_.ClearToEmpty(); + signaling_address_.ClearToEmpty(); } -inline const std::string& CloudConfig::signaling_address() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& CloudConfig::signaling_address() const { // @@protoc_insertion_point(field_get:viam.app.v1.CloudConfig.signaling_address) return _internal_signaling_address(); } -template -inline PROTOBUF_ALWAYS_INLINE void CloudConfig::set_signaling_address(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.signaling_address_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void CloudConfig::set_signaling_address(ArgT0&& arg0, ArgT... args) { + + signaling_address_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.CloudConfig.signaling_address) } -inline std::string* CloudConfig::mutable_signaling_address() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* CloudConfig::mutable_signaling_address() { std::string* _s = _internal_mutable_signaling_address(); // @@protoc_insertion_point(field_mutable:viam.app.v1.CloudConfig.signaling_address) return _s; } inline const std::string& CloudConfig::_internal_signaling_address() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.signaling_address_.Get(); + return signaling_address_.Get(); } inline void CloudConfig::_internal_set_signaling_address(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.signaling_address_.Set(value, GetArena()); + + signaling_address_.Set(value, GetArenaForAllocation()); } inline std::string* CloudConfig::_internal_mutable_signaling_address() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.signaling_address_.Mutable( GetArena()); + + return signaling_address_.Mutable(GetArenaForAllocation()); } inline std::string* CloudConfig::release_signaling_address() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.CloudConfig.signaling_address) - return _impl_.signaling_address_.Release(); -} -inline void CloudConfig::set_allocated_signaling_address(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.signaling_address_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.signaling_address_.IsDefault()) { - _impl_.signaling_address_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return signaling_address_.Release(); +} +inline void CloudConfig::set_allocated_signaling_address(std::string* signaling_address) { + if (signaling_address != nullptr) { + + } else { + + } + signaling_address_.SetAllocated(signaling_address, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (signaling_address_.IsDefault()) { + signaling_address_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CloudConfig.signaling_address) } // bool signaling_insecure = 6 [json_name = "signalingInsecure"]; inline void CloudConfig::clear_signaling_insecure() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.signaling_insecure_ = false; + signaling_insecure_ = false; +} +inline bool CloudConfig::_internal_signaling_insecure() const { + return signaling_insecure_; } inline bool CloudConfig::signaling_insecure() const { // @@protoc_insertion_point(field_get:viam.app.v1.CloudConfig.signaling_insecure) return _internal_signaling_insecure(); } +inline void CloudConfig::_internal_set_signaling_insecure(bool value) { + + signaling_insecure_ = value; +} inline void CloudConfig::set_signaling_insecure(bool value) { _internal_set_signaling_insecure(value); // @@protoc_insertion_point(field_set:viam.app.v1.CloudConfig.signaling_insecure) } -inline bool CloudConfig::_internal_signaling_insecure() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.signaling_insecure_; -} -inline void CloudConfig::_internal_set_signaling_insecure(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.signaling_insecure_ = value; -} // string location_secret = 7 [json_name = "locationSecret", deprecated = true]; inline void CloudConfig::clear_location_secret() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.location_secret_.ClearToEmpty(); + location_secret_.ClearToEmpty(); } -inline const std::string& CloudConfig::location_secret() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& CloudConfig::location_secret() const { // @@protoc_insertion_point(field_get:viam.app.v1.CloudConfig.location_secret) return _internal_location_secret(); } -template -inline PROTOBUF_ALWAYS_INLINE void CloudConfig::set_location_secret(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.location_secret_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void CloudConfig::set_location_secret(ArgT0&& arg0, ArgT... args) { + + location_secret_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.CloudConfig.location_secret) } -inline std::string* CloudConfig::mutable_location_secret() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* CloudConfig::mutable_location_secret() { std::string* _s = _internal_mutable_location_secret(); // @@protoc_insertion_point(field_mutable:viam.app.v1.CloudConfig.location_secret) return _s; } inline const std::string& CloudConfig::_internal_location_secret() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.location_secret_.Get(); + return location_secret_.Get(); } inline void CloudConfig::_internal_set_location_secret(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.location_secret_.Set(value, GetArena()); + + location_secret_.Set(value, GetArenaForAllocation()); } inline std::string* CloudConfig::_internal_mutable_location_secret() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.location_secret_.Mutable( GetArena()); + + return location_secret_.Mutable(GetArenaForAllocation()); } inline std::string* CloudConfig::release_location_secret() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.CloudConfig.location_secret) - return _impl_.location_secret_.Release(); -} -inline void CloudConfig::set_allocated_location_secret(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.location_secret_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.location_secret_.IsDefault()) { - _impl_.location_secret_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return location_secret_.Release(); +} +inline void CloudConfig::set_allocated_location_secret(std::string* location_secret) { + if (location_secret != nullptr) { + + } else { + + } + location_secret_.SetAllocated(location_secret, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (location_secret_.IsDefault()) { + location_secret_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CloudConfig.location_secret) } // string secret = 8 [json_name = "secret"]; inline void CloudConfig::clear_secret() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.secret_.ClearToEmpty(); + secret_.ClearToEmpty(); } -inline const std::string& CloudConfig::secret() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& CloudConfig::secret() const { // @@protoc_insertion_point(field_get:viam.app.v1.CloudConfig.secret) return _internal_secret(); } -template -inline PROTOBUF_ALWAYS_INLINE void CloudConfig::set_secret(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.secret_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void CloudConfig::set_secret(ArgT0&& arg0, ArgT... args) { + + secret_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.CloudConfig.secret) } -inline std::string* CloudConfig::mutable_secret() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* CloudConfig::mutable_secret() { std::string* _s = _internal_mutable_secret(); // @@protoc_insertion_point(field_mutable:viam.app.v1.CloudConfig.secret) return _s; } inline const std::string& CloudConfig::_internal_secret() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.secret_.Get(); + return secret_.Get(); } inline void CloudConfig::_internal_set_secret(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.secret_.Set(value, GetArena()); + + secret_.Set(value, GetArenaForAllocation()); } inline std::string* CloudConfig::_internal_mutable_secret() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.secret_.Mutable( GetArena()); + + return secret_.Mutable(GetArenaForAllocation()); } inline std::string* CloudConfig::release_secret() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.CloudConfig.secret) - return _impl_.secret_.Release(); -} -inline void CloudConfig::set_allocated_secret(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.secret_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.secret_.IsDefault()) { - _impl_.secret_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return secret_.Release(); +} +inline void CloudConfig::set_allocated_secret(std::string* secret) { + if (secret != nullptr) { + + } else { + + } + secret_.SetAllocated(secret, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (secret_.IsDefault()) { + secret_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CloudConfig.secret) } // repeated .viam.app.v1.LocationSecret location_secrets = 9 [json_name = "locationSecrets"]; inline int CloudConfig::_internal_location_secrets_size() const { - return _internal_location_secrets().size(); + return location_secrets_.size(); } inline int CloudConfig::location_secrets_size() const { return _internal_location_secrets_size(); } inline void CloudConfig::clear_location_secrets() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.location_secrets_.Clear(); + location_secrets_.Clear(); } -inline ::viam::app::v1::LocationSecret* CloudConfig::mutable_location_secrets(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::app::v1::LocationSecret* CloudConfig::mutable_location_secrets(int index) { // @@protoc_insertion_point(field_mutable:viam.app.v1.CloudConfig.location_secrets) - return _internal_mutable_location_secrets()->Mutable(index); + return location_secrets_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::LocationSecret>* CloudConfig::mutable_location_secrets() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::LocationSecret >* +CloudConfig::mutable_location_secrets() { // @@protoc_insertion_point(field_mutable_list:viam.app.v1.CloudConfig.location_secrets) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_location_secrets(); + return &location_secrets_; } -inline const ::viam::app::v1::LocationSecret& CloudConfig::location_secrets(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::app::v1::LocationSecret& CloudConfig::_internal_location_secrets(int index) const { + return location_secrets_.Get(index); +} +inline const ::viam::app::v1::LocationSecret& CloudConfig::location_secrets(int index) const { // @@protoc_insertion_point(field_get:viam.app.v1.CloudConfig.location_secrets) - return _internal_location_secrets().Get(index); + return _internal_location_secrets(index); +} +inline ::viam::app::v1::LocationSecret* CloudConfig::_internal_add_location_secrets() { + return location_secrets_.Add(); } -inline ::viam::app::v1::LocationSecret* CloudConfig::add_location_secrets() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::LocationSecret* _add = _internal_mutable_location_secrets()->Add(); +inline ::viam::app::v1::LocationSecret* CloudConfig::add_location_secrets() { + ::viam::app::v1::LocationSecret* _add = _internal_add_location_secrets(); // @@protoc_insertion_point(field_add:viam.app.v1.CloudConfig.location_secrets) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::LocationSecret>& CloudConfig::location_secrets() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::LocationSecret >& +CloudConfig::location_secrets() const { // @@protoc_insertion_point(field_list:viam.app.v1.CloudConfig.location_secrets) - return _internal_location_secrets(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::LocationSecret>& -CloudConfig::_internal_location_secrets() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.location_secrets_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::LocationSecret>* -CloudConfig::_internal_mutable_location_secrets() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.location_secrets_; + return location_secrets_; } // string primary_org_id = 10 [json_name = "primaryOrgId"]; inline void CloudConfig::clear_primary_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.primary_org_id_.ClearToEmpty(); + primary_org_id_.ClearToEmpty(); } -inline const std::string& CloudConfig::primary_org_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& CloudConfig::primary_org_id() const { // @@protoc_insertion_point(field_get:viam.app.v1.CloudConfig.primary_org_id) return _internal_primary_org_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void CloudConfig::set_primary_org_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.primary_org_id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void CloudConfig::set_primary_org_id(ArgT0&& arg0, ArgT... args) { + + primary_org_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.CloudConfig.primary_org_id) } -inline std::string* CloudConfig::mutable_primary_org_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* CloudConfig::mutable_primary_org_id() { std::string* _s = _internal_mutable_primary_org_id(); // @@protoc_insertion_point(field_mutable:viam.app.v1.CloudConfig.primary_org_id) return _s; } inline const std::string& CloudConfig::_internal_primary_org_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.primary_org_id_.Get(); + return primary_org_id_.Get(); } inline void CloudConfig::_internal_set_primary_org_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.primary_org_id_.Set(value, GetArena()); + + primary_org_id_.Set(value, GetArenaForAllocation()); } inline std::string* CloudConfig::_internal_mutable_primary_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.primary_org_id_.Mutable( GetArena()); + + return primary_org_id_.Mutable(GetArenaForAllocation()); } inline std::string* CloudConfig::release_primary_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.CloudConfig.primary_org_id) - return _impl_.primary_org_id_.Release(); -} -inline void CloudConfig::set_allocated_primary_org_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.primary_org_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.primary_org_id_.IsDefault()) { - _impl_.primary_org_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return primary_org_id_.Release(); +} +inline void CloudConfig::set_allocated_primary_org_id(std::string* primary_org_id) { + if (primary_org_id != nullptr) { + + } else { + + } + primary_org_id_.SetAllocated(primary_org_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (primary_org_id_.IsDefault()) { + primary_org_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CloudConfig.primary_org_id) } // string location_id = 11 [json_name = "locationId"]; inline void CloudConfig::clear_location_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.location_id_.ClearToEmpty(); + location_id_.ClearToEmpty(); } -inline const std::string& CloudConfig::location_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& CloudConfig::location_id() const { // @@protoc_insertion_point(field_get:viam.app.v1.CloudConfig.location_id) return _internal_location_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void CloudConfig::set_location_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.location_id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void CloudConfig::set_location_id(ArgT0&& arg0, ArgT... args) { + + location_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.CloudConfig.location_id) } -inline std::string* CloudConfig::mutable_location_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* CloudConfig::mutable_location_id() { std::string* _s = _internal_mutable_location_id(); // @@protoc_insertion_point(field_mutable:viam.app.v1.CloudConfig.location_id) return _s; } inline const std::string& CloudConfig::_internal_location_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.location_id_.Get(); + return location_id_.Get(); } inline void CloudConfig::_internal_set_location_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.location_id_.Set(value, GetArena()); + + location_id_.Set(value, GetArenaForAllocation()); } inline std::string* CloudConfig::_internal_mutable_location_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.location_id_.Mutable( GetArena()); + + return location_id_.Mutable(GetArenaForAllocation()); } inline std::string* CloudConfig::release_location_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.CloudConfig.location_id) - return _impl_.location_id_.Release(); -} -inline void CloudConfig::set_allocated_location_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.location_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.location_id_.IsDefault()) { - _impl_.location_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return location_id_.Release(); +} +inline void CloudConfig::set_allocated_location_id(std::string* location_id) { + if (location_id != nullptr) { + + } else { + + } + location_id_.SetAllocated(location_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (location_id_.IsDefault()) { + location_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CloudConfig.location_id) } // string machine_id = 12 [json_name = "machineId"]; inline void CloudConfig::clear_machine_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.machine_id_.ClearToEmpty(); + machine_id_.ClearToEmpty(); } -inline const std::string& CloudConfig::machine_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& CloudConfig::machine_id() const { // @@protoc_insertion_point(field_get:viam.app.v1.CloudConfig.machine_id) return _internal_machine_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void CloudConfig::set_machine_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.machine_id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void CloudConfig::set_machine_id(ArgT0&& arg0, ArgT... args) { + + machine_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.CloudConfig.machine_id) } -inline std::string* CloudConfig::mutable_machine_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* CloudConfig::mutable_machine_id() { std::string* _s = _internal_mutable_machine_id(); // @@protoc_insertion_point(field_mutable:viam.app.v1.CloudConfig.machine_id) return _s; } inline const std::string& CloudConfig::_internal_machine_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.machine_id_.Get(); + return machine_id_.Get(); } inline void CloudConfig::_internal_set_machine_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.machine_id_.Set(value, GetArena()); + + machine_id_.Set(value, GetArenaForAllocation()); } inline std::string* CloudConfig::_internal_mutable_machine_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.machine_id_.Mutable( GetArena()); + + return machine_id_.Mutable(GetArenaForAllocation()); } inline std::string* CloudConfig::release_machine_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.CloudConfig.machine_id) - return _impl_.machine_id_.Release(); -} -inline void CloudConfig::set_allocated_machine_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.machine_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.machine_id_.IsDefault()) { - _impl_.machine_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return machine_id_.Release(); +} +inline void CloudConfig::set_allocated_machine_id(std::string* machine_id) { + if (machine_id != nullptr) { + + } else { + + } + machine_id_.SetAllocated(machine_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (machine_id_.IsDefault()) { + machine_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CloudConfig.machine_id) } @@ -11401,699 +9964,631 @@ inline void CloudConfig::set_allocated_machine_id(std::string* value) { // string name = 1 [json_name = "name"]; inline void ComponentConfig::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& ComponentConfig::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ComponentConfig::name() const { // @@protoc_insertion_point(field_get:viam.app.v1.ComponentConfig.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void ComponentConfig::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ComponentConfig::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.ComponentConfig.name) } -inline std::string* ComponentConfig::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ComponentConfig::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.app.v1.ComponentConfig.name) return _s; } inline const std::string& ComponentConfig::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void ComponentConfig::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* ComponentConfig::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* ComponentConfig::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.ComponentConfig.name) - return _impl_.name_.Release(); -} -inline void ComponentConfig::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void ComponentConfig::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.app.v1.ComponentConfig.name) } // string namespace = 2 [json_name = "namespace"]; inline void ComponentConfig::clear_namespace_() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.namespace__.ClearToEmpty(); + namespace__.ClearToEmpty(); } -inline const std::string& ComponentConfig::namespace_() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ComponentConfig::namespace_() const { // @@protoc_insertion_point(field_get:viam.app.v1.ComponentConfig.namespace) return _internal_namespace_(); } -template -inline PROTOBUF_ALWAYS_INLINE void ComponentConfig::set_namespace_(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.namespace__.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ComponentConfig::set_namespace_(ArgT0&& arg0, ArgT... args) { + + namespace__.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.ComponentConfig.namespace) } -inline std::string* ComponentConfig::mutable_namespace_() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ComponentConfig::mutable_namespace_() { std::string* _s = _internal_mutable_namespace_(); // @@protoc_insertion_point(field_mutable:viam.app.v1.ComponentConfig.namespace) return _s; } inline const std::string& ComponentConfig::_internal_namespace_() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.namespace__.Get(); + return namespace__.Get(); } inline void ComponentConfig::_internal_set_namespace_(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.namespace__.Set(value, GetArena()); + + namespace__.Set(value, GetArenaForAllocation()); } inline std::string* ComponentConfig::_internal_mutable_namespace_() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.namespace__.Mutable( GetArena()); + + return namespace__.Mutable(GetArenaForAllocation()); } inline std::string* ComponentConfig::release_namespace_() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.ComponentConfig.namespace) - return _impl_.namespace__.Release(); -} -inline void ComponentConfig::set_allocated_namespace_(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.namespace__.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.namespace__.IsDefault()) { - _impl_.namespace__.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return namespace__.Release(); +} +inline void ComponentConfig::set_allocated_namespace_(std::string* namespace_) { + if (namespace_ != nullptr) { + + } else { + + } + namespace__.SetAllocated(namespace_, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (namespace__.IsDefault()) { + namespace__.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ComponentConfig.namespace) } // string type = 3 [json_name = "type"]; inline void ComponentConfig::clear_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_.ClearToEmpty(); + type_.ClearToEmpty(); } -inline const std::string& ComponentConfig::type() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ComponentConfig::type() const { // @@protoc_insertion_point(field_get:viam.app.v1.ComponentConfig.type) return _internal_type(); } -template -inline PROTOBUF_ALWAYS_INLINE void ComponentConfig::set_type(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.type_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ComponentConfig::set_type(ArgT0&& arg0, ArgT... args) { + + type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.ComponentConfig.type) } -inline std::string* ComponentConfig::mutable_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ComponentConfig::mutable_type() { std::string* _s = _internal_mutable_type(); // @@protoc_insertion_point(field_mutable:viam.app.v1.ComponentConfig.type) return _s; } inline const std::string& ComponentConfig::_internal_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.type_.Get(); + return type_.Get(); } inline void ComponentConfig::_internal_set_type(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.type_.Set(value, GetArena()); + + type_.Set(value, GetArenaForAllocation()); } inline std::string* ComponentConfig::_internal_mutable_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.type_.Mutable( GetArena()); + + return type_.Mutable(GetArenaForAllocation()); } inline std::string* ComponentConfig::release_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.ComponentConfig.type) - return _impl_.type_.Release(); -} -inline void ComponentConfig::set_allocated_type(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.type_.IsDefault()) { - _impl_.type_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return type_.Release(); +} +inline void ComponentConfig::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.ComponentConfig.type) } // string model = 4 [json_name = "model"]; inline void ComponentConfig::clear_model() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.model_.ClearToEmpty(); + model_.ClearToEmpty(); } -inline const std::string& ComponentConfig::model() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ComponentConfig::model() const { // @@protoc_insertion_point(field_get:viam.app.v1.ComponentConfig.model) return _internal_model(); } -template -inline PROTOBUF_ALWAYS_INLINE void ComponentConfig::set_model(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.model_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ComponentConfig::set_model(ArgT0&& arg0, ArgT... args) { + + model_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.ComponentConfig.model) } -inline std::string* ComponentConfig::mutable_model() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ComponentConfig::mutable_model() { std::string* _s = _internal_mutable_model(); // @@protoc_insertion_point(field_mutable:viam.app.v1.ComponentConfig.model) return _s; } inline const std::string& ComponentConfig::_internal_model() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.model_.Get(); + return model_.Get(); } inline void ComponentConfig::_internal_set_model(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.model_.Set(value, GetArena()); + + model_.Set(value, GetArenaForAllocation()); } inline std::string* ComponentConfig::_internal_mutable_model() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.model_.Mutable( GetArena()); + + return model_.Mutable(GetArenaForAllocation()); } inline std::string* ComponentConfig::release_model() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.ComponentConfig.model) - return _impl_.model_.Release(); -} -inline void ComponentConfig::set_allocated_model(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.model_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.model_.IsDefault()) { - _impl_.model_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return model_.Release(); +} +inline void ComponentConfig::set_allocated_model(std::string* model) { + if (model != nullptr) { + + } else { + + } + model_.SetAllocated(model, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (model_.IsDefault()) { + model_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ComponentConfig.model) } // .viam.app.v1.Frame frame = 5 [json_name = "frame"]; +inline bool ComponentConfig::_internal_has_frame() const { + return this != internal_default_instance() && frame_ != nullptr; +} inline bool ComponentConfig::has_frame() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.frame_ != nullptr); - return value; + return _internal_has_frame(); } inline void ComponentConfig::clear_frame() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.frame_ != nullptr) _impl_.frame_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && frame_ != nullptr) { + delete frame_; + } + frame_ = nullptr; } inline const ::viam::app::v1::Frame& ComponentConfig::_internal_frame() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::Frame* p = _impl_.frame_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_Frame_default_instance_); + const ::viam::app::v1::Frame* p = frame_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_Frame_default_instance_); } -inline const ::viam::app::v1::Frame& ComponentConfig::frame() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::app::v1::Frame& ComponentConfig::frame() const { // @@protoc_insertion_point(field_get:viam.app.v1.ComponentConfig.frame) return _internal_frame(); } -inline void ComponentConfig::unsafe_arena_set_allocated_frame(::viam::app::v1::Frame* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.frame_); +inline void ComponentConfig::unsafe_arena_set_allocated_frame( + ::viam::app::v1::Frame* frame) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(frame_); } - _impl_.frame_ = reinterpret_cast<::viam::app::v1::Frame*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + frame_ = frame; + if (frame) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.ComponentConfig.frame) } inline ::viam::app::v1::Frame* ComponentConfig::release_frame() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::Frame* released = _impl_.frame_; - _impl_.frame_ = nullptr; + + ::viam::app::v1::Frame* temp = frame_; + frame_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::app::v1::Frame* ComponentConfig::unsafe_arena_release_frame() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.ComponentConfig.frame) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::Frame* temp = _impl_.frame_; - _impl_.frame_ = nullptr; + + ::viam::app::v1::Frame* temp = frame_; + frame_ = nullptr; return temp; } inline ::viam::app::v1::Frame* ComponentConfig::_internal_mutable_frame() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.frame_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::Frame>(GetArena()); - _impl_.frame_ = reinterpret_cast<::viam::app::v1::Frame*>(p); + + if (frame_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::Frame>(GetArenaForAllocation()); + frame_ = p; } - return _impl_.frame_; + return frame_; } -inline ::viam::app::v1::Frame* ComponentConfig::mutable_frame() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::app::v1::Frame* ComponentConfig::mutable_frame() { ::viam::app::v1::Frame* _msg = _internal_mutable_frame(); // @@protoc_insertion_point(field_mutable:viam.app.v1.ComponentConfig.frame) return _msg; } -inline void ComponentConfig::set_allocated_frame(::viam::app::v1::Frame* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ComponentConfig::set_allocated_frame(::viam::app::v1::Frame* frame) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::Frame*>(_impl_.frame_); + delete frame_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::Frame*>(value)->GetArena(); + if (frame) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(frame); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + frame = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, frame, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.frame_ = reinterpret_cast<::viam::app::v1::Frame*>(value); + frame_ = frame; // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ComponentConfig.frame) } // repeated string depends_on = 6 [json_name = "dependsOn"]; inline int ComponentConfig::_internal_depends_on_size() const { - return _internal_depends_on().size(); + return depends_on_.size(); } inline int ComponentConfig::depends_on_size() const { return _internal_depends_on_size(); } inline void ComponentConfig::clear_depends_on() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.depends_on_.Clear(); + depends_on_.Clear(); } -inline std::string* ComponentConfig::add_depends_on() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_depends_on()->Add(); +inline std::string* ComponentConfig::add_depends_on() { + std::string* _s = _internal_add_depends_on(); // @@protoc_insertion_point(field_add_mutable:viam.app.v1.ComponentConfig.depends_on) return _s; } -inline const std::string& ComponentConfig::depends_on(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ComponentConfig::_internal_depends_on(int index) const { + return depends_on_.Get(index); +} +inline const std::string& ComponentConfig::depends_on(int index) const { // @@protoc_insertion_point(field_get:viam.app.v1.ComponentConfig.depends_on) - return _internal_depends_on().Get(index); + return _internal_depends_on(index); } -inline std::string* ComponentConfig::mutable_depends_on(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ComponentConfig::mutable_depends_on(int index) { // @@protoc_insertion_point(field_mutable:viam.app.v1.ComponentConfig.depends_on) - return _internal_mutable_depends_on()->Mutable(index); + return depends_on_.Mutable(index); } inline void ComponentConfig::set_depends_on(int index, const std::string& value) { - _internal_mutable_depends_on()->Mutable(index)->assign(value); + depends_on_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set:viam.app.v1.ComponentConfig.depends_on) } inline void ComponentConfig::set_depends_on(int index, std::string&& value) { - _internal_mutable_depends_on()->Mutable(index)->assign(std::move(value)); + depends_on_.Mutable(index)->assign(std::move(value)); // @@protoc_insertion_point(field_set:viam.app.v1.ComponentConfig.depends_on) } inline void ComponentConfig::set_depends_on(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_depends_on()->Mutable(index)->assign(value); + GOOGLE_DCHECK(value != nullptr); + depends_on_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:viam.app.v1.ComponentConfig.depends_on) } -inline void ComponentConfig::set_depends_on(int index, const char* value, - std::size_t size) { - _internal_mutable_depends_on()->Mutable(index)->assign( - reinterpret_cast(value), size); +inline void ComponentConfig::set_depends_on(int index, const char* value, size_t size) { + depends_on_.Mutable(index)->assign( + reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:viam.app.v1.ComponentConfig.depends_on) } -inline void ComponentConfig::set_depends_on(int index, absl::string_view value) { - _internal_mutable_depends_on()->Mutable(index)->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_set_string_piece:viam.app.v1.ComponentConfig.depends_on) +inline std::string* ComponentConfig::_internal_add_depends_on() { + return depends_on_.Add(); } inline void ComponentConfig::add_depends_on(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_depends_on()->Add()->assign(value); + depends_on_.Add()->assign(value); // @@protoc_insertion_point(field_add:viam.app.v1.ComponentConfig.depends_on) } inline void ComponentConfig::add_depends_on(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_depends_on()->Add(std::move(value)); + depends_on_.Add(std::move(value)); // @@protoc_insertion_point(field_add:viam.app.v1.ComponentConfig.depends_on) } inline void ComponentConfig::add_depends_on(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_depends_on()->Add()->assign(value); + GOOGLE_DCHECK(value != nullptr); + depends_on_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:viam.app.v1.ComponentConfig.depends_on) } -inline void ComponentConfig::add_depends_on(const char* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_depends_on()->Add()->assign( - reinterpret_cast(value), size); +inline void ComponentConfig::add_depends_on(const char* value, size_t size) { + depends_on_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:viam.app.v1.ComponentConfig.depends_on) } -inline void ComponentConfig::add_depends_on(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_depends_on()->Add()->assign(value.data(), value.size()); - // @@protoc_insertion_point(field_add_string_piece:viam.app.v1.ComponentConfig.depends_on) -} -inline const ::google::protobuf::RepeatedPtrField& -ComponentConfig::depends_on() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +ComponentConfig::depends_on() const { // @@protoc_insertion_point(field_list:viam.app.v1.ComponentConfig.depends_on) - return _internal_depends_on(); + return depends_on_; } -inline ::google::protobuf::RepeatedPtrField* -ComponentConfig::mutable_depends_on() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +ComponentConfig::mutable_depends_on() { // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ComponentConfig.depends_on) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_depends_on(); -} -inline const ::google::protobuf::RepeatedPtrField& -ComponentConfig::_internal_depends_on() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.depends_on_; -} -inline ::google::protobuf::RepeatedPtrField* -ComponentConfig::_internal_mutable_depends_on() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.depends_on_; + return &depends_on_; } // repeated .viam.app.v1.ResourceLevelServiceConfig service_configs = 7 [json_name = "serviceConfigs", (.tagger.v1.tags) = "json:\"service_config\""]; inline int ComponentConfig::_internal_service_configs_size() const { - return _internal_service_configs().size(); + return service_configs_.size(); } inline int ComponentConfig::service_configs_size() const { return _internal_service_configs_size(); } inline void ComponentConfig::clear_service_configs() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.service_configs_.Clear(); + service_configs_.Clear(); } -inline ::viam::app::v1::ResourceLevelServiceConfig* ComponentConfig::mutable_service_configs(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::app::v1::ResourceLevelServiceConfig* ComponentConfig::mutable_service_configs(int index) { // @@protoc_insertion_point(field_mutable:viam.app.v1.ComponentConfig.service_configs) - return _internal_mutable_service_configs()->Mutable(index); + return service_configs_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::ResourceLevelServiceConfig>* ComponentConfig::mutable_service_configs() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ResourceLevelServiceConfig >* +ComponentConfig::mutable_service_configs() { // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ComponentConfig.service_configs) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_service_configs(); + return &service_configs_; +} +inline const ::viam::app::v1::ResourceLevelServiceConfig& ComponentConfig::_internal_service_configs(int index) const { + return service_configs_.Get(index); } -inline const ::viam::app::v1::ResourceLevelServiceConfig& ComponentConfig::service_configs(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::app::v1::ResourceLevelServiceConfig& ComponentConfig::service_configs(int index) const { // @@protoc_insertion_point(field_get:viam.app.v1.ComponentConfig.service_configs) - return _internal_service_configs().Get(index); + return _internal_service_configs(index); } -inline ::viam::app::v1::ResourceLevelServiceConfig* ComponentConfig::add_service_configs() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::ResourceLevelServiceConfig* _add = _internal_mutable_service_configs()->Add(); +inline ::viam::app::v1::ResourceLevelServiceConfig* ComponentConfig::_internal_add_service_configs() { + return service_configs_.Add(); +} +inline ::viam::app::v1::ResourceLevelServiceConfig* ComponentConfig::add_service_configs() { + ::viam::app::v1::ResourceLevelServiceConfig* _add = _internal_add_service_configs(); // @@protoc_insertion_point(field_add:viam.app.v1.ComponentConfig.service_configs) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::ResourceLevelServiceConfig>& ComponentConfig::service_configs() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ResourceLevelServiceConfig >& +ComponentConfig::service_configs() const { // @@protoc_insertion_point(field_list:viam.app.v1.ComponentConfig.service_configs) - return _internal_service_configs(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::ResourceLevelServiceConfig>& -ComponentConfig::_internal_service_configs() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.service_configs_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::ResourceLevelServiceConfig>* -ComponentConfig::_internal_mutable_service_configs() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.service_configs_; + return service_configs_; } // .google.protobuf.Struct attributes = 8 [json_name = "attributes"]; +inline bool ComponentConfig::_internal_has_attributes() const { + return this != internal_default_instance() && attributes_ != nullptr; +} inline bool ComponentConfig::has_attributes() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.attributes_ != nullptr); - return value; + return _internal_has_attributes(); } -inline const ::google::protobuf::Struct& ComponentConfig::_internal_attributes() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.attributes_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& ComponentConfig::_internal_attributes() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = attributes_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& ComponentConfig::attributes() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& ComponentConfig::attributes() const { // @@protoc_insertion_point(field_get:viam.app.v1.ComponentConfig.attributes) return _internal_attributes(); } -inline void ComponentConfig::unsafe_arena_set_allocated_attributes(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.attributes_); +inline void ComponentConfig::unsafe_arena_set_allocated_attributes( + ::PROTOBUF_NAMESPACE_ID::Struct* attributes) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(attributes_); } - _impl_.attributes_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + attributes_ = attributes; + if (attributes) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.ComponentConfig.attributes) } -inline ::google::protobuf::Struct* ComponentConfig::release_attributes() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Struct* released = _impl_.attributes_; - _impl_.attributes_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* ComponentConfig::release_attributes() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = attributes_; + attributes_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* ComponentConfig::unsafe_arena_release_attributes() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* ComponentConfig::unsafe_arena_release_attributes() { // @@protoc_insertion_point(field_release:viam.app.v1.ComponentConfig.attributes) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Struct* temp = _impl_.attributes_; - _impl_.attributes_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = attributes_; + attributes_ = nullptr; return temp; } -inline ::google::protobuf::Struct* ComponentConfig::_internal_mutable_attributes() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.attributes_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.attributes_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* ComponentConfig::_internal_mutable_attributes() { + + if (attributes_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + attributes_ = p; } - return _impl_.attributes_; + return attributes_; } -inline ::google::protobuf::Struct* ComponentConfig::mutable_attributes() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_attributes(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* ComponentConfig::mutable_attributes() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_attributes(); // @@protoc_insertion_point(field_mutable:viam.app.v1.ComponentConfig.attributes) return _msg; } -inline void ComponentConfig::set_allocated_attributes(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ComponentConfig::set_allocated_attributes(::PROTOBUF_NAMESPACE_ID::Struct* attributes) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.attributes_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(attributes_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (attributes) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(attributes)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + attributes = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, attributes, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.attributes_ = reinterpret_cast<::google::protobuf::Struct*>(value); + attributes_ = attributes; // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ComponentConfig.attributes) } // string api = 9 [json_name = "api"]; inline void ComponentConfig::clear_api() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.api_.ClearToEmpty(); + api_.ClearToEmpty(); } -inline const std::string& ComponentConfig::api() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ComponentConfig::api() const { // @@protoc_insertion_point(field_get:viam.app.v1.ComponentConfig.api) return _internal_api(); } -template -inline PROTOBUF_ALWAYS_INLINE void ComponentConfig::set_api(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.api_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ComponentConfig::set_api(ArgT0&& arg0, ArgT... args) { + + api_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.ComponentConfig.api) } -inline std::string* ComponentConfig::mutable_api() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ComponentConfig::mutable_api() { std::string* _s = _internal_mutable_api(); // @@protoc_insertion_point(field_mutable:viam.app.v1.ComponentConfig.api) return _s; } inline const std::string& ComponentConfig::_internal_api() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.api_.Get(); + return api_.Get(); } inline void ComponentConfig::_internal_set_api(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.api_.Set(value, GetArena()); + + api_.Set(value, GetArenaForAllocation()); } inline std::string* ComponentConfig::_internal_mutable_api() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.api_.Mutable( GetArena()); + + return api_.Mutable(GetArenaForAllocation()); } inline std::string* ComponentConfig::release_api() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.ComponentConfig.api) - return _impl_.api_.Release(); -} -inline void ComponentConfig::set_allocated_api(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.api_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.api_.IsDefault()) { - _impl_.api_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return api_.Release(); +} +inline void ComponentConfig::set_allocated_api(std::string* api) { + if (api != nullptr) { + + } else { + + } + api_.SetAllocated(api, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (api_.IsDefault()) { + api_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ComponentConfig.api) } // .viam.app.v1.LogConfiguration log_configuration = 10 [json_name = "logConfiguration"]; +inline bool ComponentConfig::_internal_has_log_configuration() const { + return this != internal_default_instance() && log_configuration_ != nullptr; +} inline bool ComponentConfig::has_log_configuration() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || _impl_.log_configuration_ != nullptr); - return value; + return _internal_has_log_configuration(); } inline void ComponentConfig::clear_log_configuration() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.log_configuration_ != nullptr) _impl_.log_configuration_->Clear(); - _impl_._has_bits_[0] &= ~0x00000004u; + if (GetArenaForAllocation() == nullptr && log_configuration_ != nullptr) { + delete log_configuration_; + } + log_configuration_ = nullptr; } inline const ::viam::app::v1::LogConfiguration& ComponentConfig::_internal_log_configuration() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::LogConfiguration* p = _impl_.log_configuration_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_LogConfiguration_default_instance_); + const ::viam::app::v1::LogConfiguration* p = log_configuration_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_LogConfiguration_default_instance_); } -inline const ::viam::app::v1::LogConfiguration& ComponentConfig::log_configuration() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::app::v1::LogConfiguration& ComponentConfig::log_configuration() const { // @@protoc_insertion_point(field_get:viam.app.v1.ComponentConfig.log_configuration) return _internal_log_configuration(); } -inline void ComponentConfig::unsafe_arena_set_allocated_log_configuration(::viam::app::v1::LogConfiguration* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.log_configuration_); +inline void ComponentConfig::unsafe_arena_set_allocated_log_configuration( + ::viam::app::v1::LogConfiguration* log_configuration) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(log_configuration_); } - _impl_.log_configuration_ = reinterpret_cast<::viam::app::v1::LogConfiguration*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000004u; + log_configuration_ = log_configuration; + if (log_configuration) { + } else { - _impl_._has_bits_[0] &= ~0x00000004u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.ComponentConfig.log_configuration) } inline ::viam::app::v1::LogConfiguration* ComponentConfig::release_log_configuration() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000004u; - ::viam::app::v1::LogConfiguration* released = _impl_.log_configuration_; - _impl_.log_configuration_ = nullptr; + + ::viam::app::v1::LogConfiguration* temp = log_configuration_; + log_configuration_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::app::v1::LogConfiguration* ComponentConfig::unsafe_arena_release_log_configuration() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.ComponentConfig.log_configuration) - - _impl_._has_bits_[0] &= ~0x00000004u; - ::viam::app::v1::LogConfiguration* temp = _impl_.log_configuration_; - _impl_.log_configuration_ = nullptr; + + ::viam::app::v1::LogConfiguration* temp = log_configuration_; + log_configuration_ = nullptr; return temp; } inline ::viam::app::v1::LogConfiguration* ComponentConfig::_internal_mutable_log_configuration() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - if (_impl_.log_configuration_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::LogConfiguration>(GetArena()); - _impl_.log_configuration_ = reinterpret_cast<::viam::app::v1::LogConfiguration*>(p); + + if (log_configuration_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::LogConfiguration>(GetArenaForAllocation()); + log_configuration_ = p; } - return _impl_.log_configuration_; + return log_configuration_; } -inline ::viam::app::v1::LogConfiguration* ComponentConfig::mutable_log_configuration() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::app::v1::LogConfiguration* ComponentConfig::mutable_log_configuration() { ::viam::app::v1::LogConfiguration* _msg = _internal_mutable_log_configuration(); // @@protoc_insertion_point(field_mutable:viam.app.v1.ComponentConfig.log_configuration) return _msg; } -inline void ComponentConfig::set_allocated_log_configuration(::viam::app::v1::LogConfiguration* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ComponentConfig::set_allocated_log_configuration(::viam::app::v1::LogConfiguration* log_configuration) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::LogConfiguration*>(_impl_.log_configuration_); + delete log_configuration_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::LogConfiguration*>(value)->GetArena(); + if (log_configuration) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(log_configuration); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + log_configuration = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, log_configuration, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000004u; + } else { - _impl_._has_bits_[0] &= ~0x00000004u; + } - - _impl_.log_configuration_ = reinterpret_cast<::viam::app::v1::LogConfiguration*>(value); + log_configuration_ = log_configuration; // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ComponentConfig.log_configuration) } @@ -12103,145 +10598,136 @@ inline void ComponentConfig::set_allocated_log_configuration(::viam::app::v1::Lo // string type = 1 [json_name = "type"]; inline void ResourceLevelServiceConfig::clear_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_.ClearToEmpty(); + type_.ClearToEmpty(); } -inline const std::string& ResourceLevelServiceConfig::type() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ResourceLevelServiceConfig::type() const { // @@protoc_insertion_point(field_get:viam.app.v1.ResourceLevelServiceConfig.type) return _internal_type(); } -template -inline PROTOBUF_ALWAYS_INLINE void ResourceLevelServiceConfig::set_type(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.type_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ResourceLevelServiceConfig::set_type(ArgT0&& arg0, ArgT... args) { + + type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.ResourceLevelServiceConfig.type) } -inline std::string* ResourceLevelServiceConfig::mutable_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ResourceLevelServiceConfig::mutable_type() { std::string* _s = _internal_mutable_type(); // @@protoc_insertion_point(field_mutable:viam.app.v1.ResourceLevelServiceConfig.type) return _s; } inline const std::string& ResourceLevelServiceConfig::_internal_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.type_.Get(); + return type_.Get(); } inline void ResourceLevelServiceConfig::_internal_set_type(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.type_.Set(value, GetArena()); + + type_.Set(value, GetArenaForAllocation()); } inline std::string* ResourceLevelServiceConfig::_internal_mutable_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.type_.Mutable( GetArena()); + + return type_.Mutable(GetArenaForAllocation()); } inline std::string* ResourceLevelServiceConfig::release_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.ResourceLevelServiceConfig.type) - return _impl_.type_.Release(); -} -inline void ResourceLevelServiceConfig::set_allocated_type(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.type_.IsDefault()) { - _impl_.type_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return type_.Release(); +} +inline void ResourceLevelServiceConfig::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.ResourceLevelServiceConfig.type) } // .google.protobuf.Struct attributes = 2 [json_name = "attributes"]; +inline bool ResourceLevelServiceConfig::_internal_has_attributes() const { + return this != internal_default_instance() && attributes_ != nullptr; +} inline bool ResourceLevelServiceConfig::has_attributes() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.attributes_ != nullptr); - return value; + return _internal_has_attributes(); } -inline const ::google::protobuf::Struct& ResourceLevelServiceConfig::_internal_attributes() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.attributes_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& ResourceLevelServiceConfig::_internal_attributes() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = attributes_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& ResourceLevelServiceConfig::attributes() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& ResourceLevelServiceConfig::attributes() const { // @@protoc_insertion_point(field_get:viam.app.v1.ResourceLevelServiceConfig.attributes) return _internal_attributes(); } -inline void ResourceLevelServiceConfig::unsafe_arena_set_allocated_attributes(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.attributes_); +inline void ResourceLevelServiceConfig::unsafe_arena_set_allocated_attributes( + ::PROTOBUF_NAMESPACE_ID::Struct* attributes) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(attributes_); } - _impl_.attributes_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + attributes_ = attributes; + if (attributes) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.ResourceLevelServiceConfig.attributes) } -inline ::google::protobuf::Struct* ResourceLevelServiceConfig::release_attributes() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.attributes_; - _impl_.attributes_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* ResourceLevelServiceConfig::release_attributes() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = attributes_; + attributes_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* ResourceLevelServiceConfig::unsafe_arena_release_attributes() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* ResourceLevelServiceConfig::unsafe_arena_release_attributes() { // @@protoc_insertion_point(field_release:viam.app.v1.ResourceLevelServiceConfig.attributes) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.attributes_; - _impl_.attributes_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = attributes_; + attributes_ = nullptr; return temp; } -inline ::google::protobuf::Struct* ResourceLevelServiceConfig::_internal_mutable_attributes() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.attributes_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.attributes_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* ResourceLevelServiceConfig::_internal_mutable_attributes() { + + if (attributes_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + attributes_ = p; } - return _impl_.attributes_; + return attributes_; } -inline ::google::protobuf::Struct* ResourceLevelServiceConfig::mutable_attributes() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_attributes(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* ResourceLevelServiceConfig::mutable_attributes() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_attributes(); // @@protoc_insertion_point(field_mutable:viam.app.v1.ResourceLevelServiceConfig.attributes) return _msg; } -inline void ResourceLevelServiceConfig::set_allocated_attributes(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ResourceLevelServiceConfig::set_allocated_attributes(::PROTOBUF_NAMESPACE_ID::Struct* attributes) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.attributes_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(attributes_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (attributes) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(attributes)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + attributes = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, attributes, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.attributes_ = reinterpret_cast<::google::protobuf::Struct*>(value); + attributes_ = attributes; // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ResourceLevelServiceConfig.attributes) } @@ -12253,502 +10739,450 @@ inline void ResourceLevelServiceConfig::set_allocated_attributes(::google::proto // string id = 1 [json_name = "id"]; inline void ProcessConfig::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); + id_.ClearToEmpty(); } -inline const std::string& ProcessConfig::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ProcessConfig::id() const { // @@protoc_insertion_point(field_get:viam.app.v1.ProcessConfig.id) return _internal_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void ProcessConfig::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ProcessConfig::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.ProcessConfig.id) } -inline std::string* ProcessConfig::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ProcessConfig::mutable_id() { std::string* _s = _internal_mutable_id(); // @@protoc_insertion_point(field_mutable:viam.app.v1.ProcessConfig.id) return _s; } inline const std::string& ProcessConfig::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); + return id_.Get(); } inline void ProcessConfig::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); + + id_.Set(value, GetArenaForAllocation()); } inline std::string* ProcessConfig::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); + + return id_.Mutable(GetArenaForAllocation()); } inline std::string* ProcessConfig::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.ProcessConfig.id) - return _impl_.id_.Release(); -} -inline void ProcessConfig::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return id_.Release(); +} +inline void ProcessConfig::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ProcessConfig.id) } // string name = 2 [json_name = "name"]; inline void ProcessConfig::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& ProcessConfig::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ProcessConfig::name() const { // @@protoc_insertion_point(field_get:viam.app.v1.ProcessConfig.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void ProcessConfig::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ProcessConfig::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.ProcessConfig.name) } -inline std::string* ProcessConfig::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ProcessConfig::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.app.v1.ProcessConfig.name) return _s; } inline const std::string& ProcessConfig::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void ProcessConfig::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* ProcessConfig::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* ProcessConfig::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.ProcessConfig.name) - return _impl_.name_.Release(); -} -inline void ProcessConfig::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void ProcessConfig::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.app.v1.ProcessConfig.name) } // repeated string args = 3 [json_name = "args"]; inline int ProcessConfig::_internal_args_size() const { - return _internal_args().size(); + return args_.size(); } inline int ProcessConfig::args_size() const { return _internal_args_size(); } inline void ProcessConfig::clear_args() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.args_.Clear(); + args_.Clear(); } -inline std::string* ProcessConfig::add_args() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_args()->Add(); +inline std::string* ProcessConfig::add_args() { + std::string* _s = _internal_add_args(); // @@protoc_insertion_point(field_add_mutable:viam.app.v1.ProcessConfig.args) return _s; } -inline const std::string& ProcessConfig::args(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ProcessConfig::_internal_args(int index) const { + return args_.Get(index); +} +inline const std::string& ProcessConfig::args(int index) const { // @@protoc_insertion_point(field_get:viam.app.v1.ProcessConfig.args) - return _internal_args().Get(index); + return _internal_args(index); } -inline std::string* ProcessConfig::mutable_args(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ProcessConfig::mutable_args(int index) { // @@protoc_insertion_point(field_mutable:viam.app.v1.ProcessConfig.args) - return _internal_mutable_args()->Mutable(index); + return args_.Mutable(index); } inline void ProcessConfig::set_args(int index, const std::string& value) { - _internal_mutable_args()->Mutable(index)->assign(value); + args_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set:viam.app.v1.ProcessConfig.args) } inline void ProcessConfig::set_args(int index, std::string&& value) { - _internal_mutable_args()->Mutable(index)->assign(std::move(value)); + args_.Mutable(index)->assign(std::move(value)); // @@protoc_insertion_point(field_set:viam.app.v1.ProcessConfig.args) } inline void ProcessConfig::set_args(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_args()->Mutable(index)->assign(value); + GOOGLE_DCHECK(value != nullptr); + args_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:viam.app.v1.ProcessConfig.args) } -inline void ProcessConfig::set_args(int index, const char* value, - std::size_t size) { - _internal_mutable_args()->Mutable(index)->assign( - reinterpret_cast(value), size); +inline void ProcessConfig::set_args(int index, const char* value, size_t size) { + args_.Mutable(index)->assign( + reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:viam.app.v1.ProcessConfig.args) } -inline void ProcessConfig::set_args(int index, absl::string_view value) { - _internal_mutable_args()->Mutable(index)->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_set_string_piece:viam.app.v1.ProcessConfig.args) +inline std::string* ProcessConfig::_internal_add_args() { + return args_.Add(); } inline void ProcessConfig::add_args(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_args()->Add()->assign(value); + args_.Add()->assign(value); // @@protoc_insertion_point(field_add:viam.app.v1.ProcessConfig.args) } inline void ProcessConfig::add_args(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_args()->Add(std::move(value)); + args_.Add(std::move(value)); // @@protoc_insertion_point(field_add:viam.app.v1.ProcessConfig.args) } inline void ProcessConfig::add_args(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_args()->Add()->assign(value); + GOOGLE_DCHECK(value != nullptr); + args_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:viam.app.v1.ProcessConfig.args) } -inline void ProcessConfig::add_args(const char* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_args()->Add()->assign( - reinterpret_cast(value), size); +inline void ProcessConfig::add_args(const char* value, size_t size) { + args_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:viam.app.v1.ProcessConfig.args) } -inline void ProcessConfig::add_args(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_args()->Add()->assign(value.data(), value.size()); - // @@protoc_insertion_point(field_add_string_piece:viam.app.v1.ProcessConfig.args) -} -inline const ::google::protobuf::RepeatedPtrField& -ProcessConfig::args() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +ProcessConfig::args() const { // @@protoc_insertion_point(field_list:viam.app.v1.ProcessConfig.args) - return _internal_args(); + return args_; } -inline ::google::protobuf::RepeatedPtrField* -ProcessConfig::mutable_args() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +ProcessConfig::mutable_args() { // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ProcessConfig.args) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_args(); -} -inline const ::google::protobuf::RepeatedPtrField& -ProcessConfig::_internal_args() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.args_; -} -inline ::google::protobuf::RepeatedPtrField* -ProcessConfig::_internal_mutable_args() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.args_; + return &args_; } // string cwd = 4 [json_name = "cwd"]; inline void ProcessConfig::clear_cwd() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.cwd_.ClearToEmpty(); + cwd_.ClearToEmpty(); } -inline const std::string& ProcessConfig::cwd() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ProcessConfig::cwd() const { // @@protoc_insertion_point(field_get:viam.app.v1.ProcessConfig.cwd) return _internal_cwd(); } -template -inline PROTOBUF_ALWAYS_INLINE void ProcessConfig::set_cwd(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.cwd_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ProcessConfig::set_cwd(ArgT0&& arg0, ArgT... args) { + + cwd_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.ProcessConfig.cwd) } -inline std::string* ProcessConfig::mutable_cwd() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ProcessConfig::mutable_cwd() { std::string* _s = _internal_mutable_cwd(); // @@protoc_insertion_point(field_mutable:viam.app.v1.ProcessConfig.cwd) return _s; } inline const std::string& ProcessConfig::_internal_cwd() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.cwd_.Get(); + return cwd_.Get(); } inline void ProcessConfig::_internal_set_cwd(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.cwd_.Set(value, GetArena()); + + cwd_.Set(value, GetArenaForAllocation()); } inline std::string* ProcessConfig::_internal_mutable_cwd() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.cwd_.Mutable( GetArena()); + + return cwd_.Mutable(GetArenaForAllocation()); } inline std::string* ProcessConfig::release_cwd() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.ProcessConfig.cwd) - return _impl_.cwd_.Release(); -} -inline void ProcessConfig::set_allocated_cwd(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.cwd_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.cwd_.IsDefault()) { - _impl_.cwd_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return cwd_.Release(); +} +inline void ProcessConfig::set_allocated_cwd(std::string* cwd) { + if (cwd != nullptr) { + + } else { + + } + cwd_.SetAllocated(cwd, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (cwd_.IsDefault()) { + cwd_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ProcessConfig.cwd) } // bool one_shot = 5 [json_name = "oneShot"]; inline void ProcessConfig::clear_one_shot() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.one_shot_ = false; + one_shot_ = false; +} +inline bool ProcessConfig::_internal_one_shot() const { + return one_shot_; } inline bool ProcessConfig::one_shot() const { // @@protoc_insertion_point(field_get:viam.app.v1.ProcessConfig.one_shot) return _internal_one_shot(); } +inline void ProcessConfig::_internal_set_one_shot(bool value) { + + one_shot_ = value; +} inline void ProcessConfig::set_one_shot(bool value) { _internal_set_one_shot(value); // @@protoc_insertion_point(field_set:viam.app.v1.ProcessConfig.one_shot) } -inline bool ProcessConfig::_internal_one_shot() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.one_shot_; -} -inline void ProcessConfig::_internal_set_one_shot(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.one_shot_ = value; -} // bool log = 6 [json_name = "log"]; inline void ProcessConfig::clear_log() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.log_ = false; + log_ = false; +} +inline bool ProcessConfig::_internal_log() const { + return log_; } inline bool ProcessConfig::log() const { // @@protoc_insertion_point(field_get:viam.app.v1.ProcessConfig.log) return _internal_log(); } +inline void ProcessConfig::_internal_set_log(bool value) { + + log_ = value; +} inline void ProcessConfig::set_log(bool value) { _internal_set_log(value); // @@protoc_insertion_point(field_set:viam.app.v1.ProcessConfig.log) } -inline bool ProcessConfig::_internal_log() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.log_; -} -inline void ProcessConfig::_internal_set_log(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.log_ = value; -} // int32 stop_signal = 7 [json_name = "stopSignal"]; inline void ProcessConfig::clear_stop_signal() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.stop_signal_ = 0; + stop_signal_ = 0; } -inline ::int32_t ProcessConfig::stop_signal() const { +inline int32_t ProcessConfig::_internal_stop_signal() const { + return stop_signal_; +} +inline int32_t ProcessConfig::stop_signal() const { // @@protoc_insertion_point(field_get:viam.app.v1.ProcessConfig.stop_signal) return _internal_stop_signal(); } -inline void ProcessConfig::set_stop_signal(::int32_t value) { +inline void ProcessConfig::_internal_set_stop_signal(int32_t value) { + + stop_signal_ = value; +} +inline void ProcessConfig::set_stop_signal(int32_t value) { _internal_set_stop_signal(value); // @@protoc_insertion_point(field_set:viam.app.v1.ProcessConfig.stop_signal) } -inline ::int32_t ProcessConfig::_internal_stop_signal() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.stop_signal_; -} -inline void ProcessConfig::_internal_set_stop_signal(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.stop_signal_ = value; -} // .google.protobuf.Duration stop_timeout = 8 [json_name = "stopTimeout"]; +inline bool ProcessConfig::_internal_has_stop_timeout() const { + return this != internal_default_instance() && stop_timeout_ != nullptr; +} inline bool ProcessConfig::has_stop_timeout() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.stop_timeout_ != nullptr); - return value; + return _internal_has_stop_timeout(); } -inline const ::google::protobuf::Duration& ProcessConfig::_internal_stop_timeout() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Duration* p = _impl_.stop_timeout_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Duration_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Duration& ProcessConfig::_internal_stop_timeout() const { + const ::PROTOBUF_NAMESPACE_ID::Duration* p = stop_timeout_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Duration_default_instance_); } -inline const ::google::protobuf::Duration& ProcessConfig::stop_timeout() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Duration& ProcessConfig::stop_timeout() const { // @@protoc_insertion_point(field_get:viam.app.v1.ProcessConfig.stop_timeout) return _internal_stop_timeout(); } -inline void ProcessConfig::unsafe_arena_set_allocated_stop_timeout(::google::protobuf::Duration* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.stop_timeout_); +inline void ProcessConfig::unsafe_arena_set_allocated_stop_timeout( + ::PROTOBUF_NAMESPACE_ID::Duration* stop_timeout) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(stop_timeout_); } - _impl_.stop_timeout_ = reinterpret_cast<::google::protobuf::Duration*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + stop_timeout_ = stop_timeout; + if (stop_timeout) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.ProcessConfig.stop_timeout) } -inline ::google::protobuf::Duration* ProcessConfig::release_stop_timeout() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Duration* released = _impl_.stop_timeout_; - _impl_.stop_timeout_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Duration* ProcessConfig::release_stop_timeout() { + + ::PROTOBUF_NAMESPACE_ID::Duration* temp = stop_timeout_; + stop_timeout_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Duration* ProcessConfig::unsafe_arena_release_stop_timeout() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Duration* ProcessConfig::unsafe_arena_release_stop_timeout() { // @@protoc_insertion_point(field_release:viam.app.v1.ProcessConfig.stop_timeout) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Duration* temp = _impl_.stop_timeout_; - _impl_.stop_timeout_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Duration* temp = stop_timeout_; + stop_timeout_ = nullptr; return temp; } -inline ::google::protobuf::Duration* ProcessConfig::_internal_mutable_stop_timeout() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.stop_timeout_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArena()); - _impl_.stop_timeout_ = reinterpret_cast<::google::protobuf::Duration*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Duration* ProcessConfig::_internal_mutable_stop_timeout() { + + if (stop_timeout_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Duration>(GetArenaForAllocation()); + stop_timeout_ = p; } - return _impl_.stop_timeout_; + return stop_timeout_; } -inline ::google::protobuf::Duration* ProcessConfig::mutable_stop_timeout() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Duration* _msg = _internal_mutable_stop_timeout(); +inline ::PROTOBUF_NAMESPACE_ID::Duration* ProcessConfig::mutable_stop_timeout() { + ::PROTOBUF_NAMESPACE_ID::Duration* _msg = _internal_mutable_stop_timeout(); // @@protoc_insertion_point(field_mutable:viam.app.v1.ProcessConfig.stop_timeout) return _msg; } -inline void ProcessConfig::set_allocated_stop_timeout(::google::protobuf::Duration* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ProcessConfig::set_allocated_stop_timeout(::PROTOBUF_NAMESPACE_ID::Duration* stop_timeout) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.stop_timeout_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(stop_timeout_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (stop_timeout) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(stop_timeout)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + stop_timeout = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, stop_timeout, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.stop_timeout_ = reinterpret_cast<::google::protobuf::Duration*>(value); + stop_timeout_ = stop_timeout; // @@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 _internal_env().size(); + return env_.size(); } inline int ProcessConfig::env_size() const { return _internal_env_size(); } inline void ProcessConfig::clear_env() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.env_.Clear(); + env_.Clear(); } -inline const ::google::protobuf::Map& ProcessConfig::_internal_env() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.env_.GetMap(); +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +ProcessConfig::_internal_env() const { + return env_.GetMap(); } -inline const ::google::protobuf::Map& ProcessConfig::env() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +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 ::google::protobuf::Map* ProcessConfig::_internal_mutable_env() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.env_.MutableMap(); +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +ProcessConfig::_internal_mutable_env() { + return env_.MutableMap(); } -inline ::google::protobuf::Map* ProcessConfig::mutable_env() ABSL_ATTRIBUTE_LIFETIME_BOUND { +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(); } // string username = 10 [json_name = "username"]; inline void ProcessConfig::clear_username() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.username_.ClearToEmpty(); + username_.ClearToEmpty(); } -inline const std::string& ProcessConfig::username() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ProcessConfig::username() const { // @@protoc_insertion_point(field_get:viam.app.v1.ProcessConfig.username) return _internal_username(); } -template -inline PROTOBUF_ALWAYS_INLINE void ProcessConfig::set_username(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.username_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ProcessConfig::set_username(ArgT0&& arg0, ArgT... args) { + + username_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.ProcessConfig.username) } -inline std::string* ProcessConfig::mutable_username() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ProcessConfig::mutable_username() { std::string* _s = _internal_mutable_username(); // @@protoc_insertion_point(field_mutable:viam.app.v1.ProcessConfig.username) return _s; } inline const std::string& ProcessConfig::_internal_username() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.username_.Get(); + return username_.Get(); } inline void ProcessConfig::_internal_set_username(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.username_.Set(value, GetArena()); + + username_.Set(value, GetArenaForAllocation()); } inline std::string* ProcessConfig::_internal_mutable_username() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.username_.Mutable( GetArena()); + + return username_.Mutable(GetArenaForAllocation()); } inline std::string* ProcessConfig::release_username() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.ProcessConfig.username) - return _impl_.username_.Release(); -} -inline void ProcessConfig::set_allocated_username(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.username_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.username_.IsDefault()) { - _impl_.username_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return username_.Release(); +} +inline void ProcessConfig::set_allocated_username(std::string* username) { + if (username != nullptr) { + + } else { + + } + username_.SetAllocated(username, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (username_.IsDefault()) { + username_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ProcessConfig.username) } @@ -12758,603 +11192,541 @@ inline void ProcessConfig::set_allocated_username(std::string* value) { // string name = 1 [json_name = "name"]; inline void ServiceConfig::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& ServiceConfig::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ServiceConfig::name() const { // @@protoc_insertion_point(field_get:viam.app.v1.ServiceConfig.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void ServiceConfig::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ServiceConfig::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.ServiceConfig.name) } -inline std::string* ServiceConfig::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ServiceConfig::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.app.v1.ServiceConfig.name) return _s; } inline const std::string& ServiceConfig::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void ServiceConfig::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* ServiceConfig::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* ServiceConfig::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.ServiceConfig.name) - return _impl_.name_.Release(); -} -inline void ServiceConfig::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void ServiceConfig::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.app.v1.ServiceConfig.name) } // string namespace = 2 [json_name = "namespace"]; inline void ServiceConfig::clear_namespace_() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.namespace__.ClearToEmpty(); + namespace__.ClearToEmpty(); } -inline const std::string& ServiceConfig::namespace_() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ServiceConfig::namespace_() const { // @@protoc_insertion_point(field_get:viam.app.v1.ServiceConfig.namespace) return _internal_namespace_(); } -template -inline PROTOBUF_ALWAYS_INLINE void ServiceConfig::set_namespace_(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.namespace__.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ServiceConfig::set_namespace_(ArgT0&& arg0, ArgT... args) { + + namespace__.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.ServiceConfig.namespace) } -inline std::string* ServiceConfig::mutable_namespace_() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ServiceConfig::mutable_namespace_() { std::string* _s = _internal_mutable_namespace_(); // @@protoc_insertion_point(field_mutable:viam.app.v1.ServiceConfig.namespace) return _s; } inline const std::string& ServiceConfig::_internal_namespace_() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.namespace__.Get(); + return namespace__.Get(); } inline void ServiceConfig::_internal_set_namespace_(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.namespace__.Set(value, GetArena()); + + namespace__.Set(value, GetArenaForAllocation()); } inline std::string* ServiceConfig::_internal_mutable_namespace_() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.namespace__.Mutable( GetArena()); + + return namespace__.Mutable(GetArenaForAllocation()); } inline std::string* ServiceConfig::release_namespace_() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.ServiceConfig.namespace) - return _impl_.namespace__.Release(); -} -inline void ServiceConfig::set_allocated_namespace_(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.namespace__.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.namespace__.IsDefault()) { - _impl_.namespace__.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return namespace__.Release(); +} +inline void ServiceConfig::set_allocated_namespace_(std::string* namespace_) { + if (namespace_ != nullptr) { + + } else { + + } + namespace__.SetAllocated(namespace_, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (namespace__.IsDefault()) { + namespace__.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ServiceConfig.namespace) } // string type = 3 [json_name = "type"]; inline void ServiceConfig::clear_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_.ClearToEmpty(); + type_.ClearToEmpty(); } -inline const std::string& ServiceConfig::type() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ServiceConfig::type() const { // @@protoc_insertion_point(field_get:viam.app.v1.ServiceConfig.type) return _internal_type(); } -template -inline PROTOBUF_ALWAYS_INLINE void ServiceConfig::set_type(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.type_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ServiceConfig::set_type(ArgT0&& arg0, ArgT... args) { + + type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.ServiceConfig.type) } -inline std::string* ServiceConfig::mutable_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ServiceConfig::mutable_type() { std::string* _s = _internal_mutable_type(); // @@protoc_insertion_point(field_mutable:viam.app.v1.ServiceConfig.type) return _s; } inline const std::string& ServiceConfig::_internal_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.type_.Get(); + return type_.Get(); } inline void ServiceConfig::_internal_set_type(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.type_.Set(value, GetArena()); + + type_.Set(value, GetArenaForAllocation()); } inline std::string* ServiceConfig::_internal_mutable_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.type_.Mutable( GetArena()); + + return type_.Mutable(GetArenaForAllocation()); } inline std::string* ServiceConfig::release_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.ServiceConfig.type) - return _impl_.type_.Release(); -} -inline void ServiceConfig::set_allocated_type(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.type_.IsDefault()) { - _impl_.type_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return type_.Release(); +} +inline void ServiceConfig::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.ServiceConfig.type) } // .google.protobuf.Struct attributes = 4 [json_name = "attributes"]; +inline bool ServiceConfig::_internal_has_attributes() const { + return this != internal_default_instance() && attributes_ != nullptr; +} inline bool ServiceConfig::has_attributes() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.attributes_ != nullptr); - return value; + return _internal_has_attributes(); } -inline const ::google::protobuf::Struct& ServiceConfig::_internal_attributes() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.attributes_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& ServiceConfig::_internal_attributes() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = attributes_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& ServiceConfig::attributes() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& ServiceConfig::attributes() const { // @@protoc_insertion_point(field_get:viam.app.v1.ServiceConfig.attributes) return _internal_attributes(); } -inline void ServiceConfig::unsafe_arena_set_allocated_attributes(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.attributes_); +inline void ServiceConfig::unsafe_arena_set_allocated_attributes( + ::PROTOBUF_NAMESPACE_ID::Struct* attributes) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(attributes_); } - _impl_.attributes_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + attributes_ = attributes; + if (attributes) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.ServiceConfig.attributes) } -inline ::google::protobuf::Struct* ServiceConfig::release_attributes() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.attributes_; - _impl_.attributes_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* ServiceConfig::release_attributes() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = attributes_; + attributes_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* ServiceConfig::unsafe_arena_release_attributes() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* ServiceConfig::unsafe_arena_release_attributes() { // @@protoc_insertion_point(field_release:viam.app.v1.ServiceConfig.attributes) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.attributes_; - _impl_.attributes_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = attributes_; + attributes_ = nullptr; return temp; } -inline ::google::protobuf::Struct* ServiceConfig::_internal_mutable_attributes() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.attributes_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.attributes_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* ServiceConfig::_internal_mutable_attributes() { + + if (attributes_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + attributes_ = p; } - return _impl_.attributes_; + return attributes_; } -inline ::google::protobuf::Struct* ServiceConfig::mutable_attributes() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_attributes(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* ServiceConfig::mutable_attributes() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_attributes(); // @@protoc_insertion_point(field_mutable:viam.app.v1.ServiceConfig.attributes) return _msg; } -inline void ServiceConfig::set_allocated_attributes(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ServiceConfig::set_allocated_attributes(::PROTOBUF_NAMESPACE_ID::Struct* attributes) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.attributes_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(attributes_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (attributes) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(attributes)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + attributes = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, attributes, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.attributes_ = reinterpret_cast<::google::protobuf::Struct*>(value); + attributes_ = attributes; // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ServiceConfig.attributes) } // repeated string depends_on = 5 [json_name = "dependsOn"]; inline int ServiceConfig::_internal_depends_on_size() const { - return _internal_depends_on().size(); + return depends_on_.size(); } inline int ServiceConfig::depends_on_size() const { return _internal_depends_on_size(); } inline void ServiceConfig::clear_depends_on() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.depends_on_.Clear(); + depends_on_.Clear(); } -inline std::string* ServiceConfig::add_depends_on() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_depends_on()->Add(); +inline std::string* ServiceConfig::add_depends_on() { + std::string* _s = _internal_add_depends_on(); // @@protoc_insertion_point(field_add_mutable:viam.app.v1.ServiceConfig.depends_on) return _s; } -inline const std::string& ServiceConfig::depends_on(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ServiceConfig::_internal_depends_on(int index) const { + return depends_on_.Get(index); +} +inline const std::string& ServiceConfig::depends_on(int index) const { // @@protoc_insertion_point(field_get:viam.app.v1.ServiceConfig.depends_on) - return _internal_depends_on().Get(index); + return _internal_depends_on(index); } -inline std::string* ServiceConfig::mutable_depends_on(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ServiceConfig::mutable_depends_on(int index) { // @@protoc_insertion_point(field_mutable:viam.app.v1.ServiceConfig.depends_on) - return _internal_mutable_depends_on()->Mutable(index); + return depends_on_.Mutable(index); } inline void ServiceConfig::set_depends_on(int index, const std::string& value) { - _internal_mutable_depends_on()->Mutable(index)->assign(value); + depends_on_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set:viam.app.v1.ServiceConfig.depends_on) } inline void ServiceConfig::set_depends_on(int index, std::string&& value) { - _internal_mutable_depends_on()->Mutable(index)->assign(std::move(value)); + depends_on_.Mutable(index)->assign(std::move(value)); // @@protoc_insertion_point(field_set:viam.app.v1.ServiceConfig.depends_on) } inline void ServiceConfig::set_depends_on(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_depends_on()->Mutable(index)->assign(value); + GOOGLE_DCHECK(value != nullptr); + depends_on_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:viam.app.v1.ServiceConfig.depends_on) } -inline void ServiceConfig::set_depends_on(int index, const char* value, - std::size_t size) { - _internal_mutable_depends_on()->Mutable(index)->assign( - reinterpret_cast(value), size); +inline void ServiceConfig::set_depends_on(int index, const char* value, size_t size) { + depends_on_.Mutable(index)->assign( + reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:viam.app.v1.ServiceConfig.depends_on) } -inline void ServiceConfig::set_depends_on(int index, absl::string_view value) { - _internal_mutable_depends_on()->Mutable(index)->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_set_string_piece:viam.app.v1.ServiceConfig.depends_on) +inline std::string* ServiceConfig::_internal_add_depends_on() { + return depends_on_.Add(); } inline void ServiceConfig::add_depends_on(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_depends_on()->Add()->assign(value); + depends_on_.Add()->assign(value); // @@protoc_insertion_point(field_add:viam.app.v1.ServiceConfig.depends_on) } inline void ServiceConfig::add_depends_on(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_depends_on()->Add(std::move(value)); + depends_on_.Add(std::move(value)); // @@protoc_insertion_point(field_add:viam.app.v1.ServiceConfig.depends_on) } inline void ServiceConfig::add_depends_on(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_depends_on()->Add()->assign(value); + GOOGLE_DCHECK(value != nullptr); + depends_on_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:viam.app.v1.ServiceConfig.depends_on) } -inline void ServiceConfig::add_depends_on(const char* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_depends_on()->Add()->assign( - reinterpret_cast(value), size); +inline void ServiceConfig::add_depends_on(const char* value, size_t size) { + depends_on_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:viam.app.v1.ServiceConfig.depends_on) } -inline void ServiceConfig::add_depends_on(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_depends_on()->Add()->assign(value.data(), value.size()); - // @@protoc_insertion_point(field_add_string_piece:viam.app.v1.ServiceConfig.depends_on) -} -inline const ::google::protobuf::RepeatedPtrField& -ServiceConfig::depends_on() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +ServiceConfig::depends_on() const { // @@protoc_insertion_point(field_list:viam.app.v1.ServiceConfig.depends_on) - return _internal_depends_on(); + return depends_on_; } -inline ::google::protobuf::RepeatedPtrField* -ServiceConfig::mutable_depends_on() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +ServiceConfig::mutable_depends_on() { // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ServiceConfig.depends_on) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_depends_on(); -} -inline const ::google::protobuf::RepeatedPtrField& -ServiceConfig::_internal_depends_on() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.depends_on_; -} -inline ::google::protobuf::RepeatedPtrField* -ServiceConfig::_internal_mutable_depends_on() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.depends_on_; + return &depends_on_; } // string model = 6 [json_name = "model"]; inline void ServiceConfig::clear_model() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.model_.ClearToEmpty(); + model_.ClearToEmpty(); } -inline const std::string& ServiceConfig::model() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ServiceConfig::model() const { // @@protoc_insertion_point(field_get:viam.app.v1.ServiceConfig.model) return _internal_model(); } -template -inline PROTOBUF_ALWAYS_INLINE void ServiceConfig::set_model(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.model_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ServiceConfig::set_model(ArgT0&& arg0, ArgT... args) { + + model_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.ServiceConfig.model) } -inline std::string* ServiceConfig::mutable_model() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ServiceConfig::mutable_model() { std::string* _s = _internal_mutable_model(); // @@protoc_insertion_point(field_mutable:viam.app.v1.ServiceConfig.model) return _s; } inline const std::string& ServiceConfig::_internal_model() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.model_.Get(); + return model_.Get(); } inline void ServiceConfig::_internal_set_model(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.model_.Set(value, GetArena()); + + model_.Set(value, GetArenaForAllocation()); } inline std::string* ServiceConfig::_internal_mutable_model() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.model_.Mutable( GetArena()); + + return model_.Mutable(GetArenaForAllocation()); } inline std::string* ServiceConfig::release_model() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.ServiceConfig.model) - return _impl_.model_.Release(); -} -inline void ServiceConfig::set_allocated_model(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.model_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.model_.IsDefault()) { - _impl_.model_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return model_.Release(); +} +inline void ServiceConfig::set_allocated_model(std::string* model) { + if (model != nullptr) { + + } else { + + } + model_.SetAllocated(model, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (model_.IsDefault()) { + model_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ServiceConfig.model) } // string api = 9 [json_name = "api"]; inline void ServiceConfig::clear_api() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.api_.ClearToEmpty(); + api_.ClearToEmpty(); } -inline const std::string& ServiceConfig::api() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ServiceConfig::api() const { // @@protoc_insertion_point(field_get:viam.app.v1.ServiceConfig.api) return _internal_api(); } -template -inline PROTOBUF_ALWAYS_INLINE void ServiceConfig::set_api(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.api_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ServiceConfig::set_api(ArgT0&& arg0, ArgT... args) { + + api_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.ServiceConfig.api) } -inline std::string* ServiceConfig::mutable_api() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ServiceConfig::mutable_api() { std::string* _s = _internal_mutable_api(); // @@protoc_insertion_point(field_mutable:viam.app.v1.ServiceConfig.api) return _s; } inline const std::string& ServiceConfig::_internal_api() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.api_.Get(); + return api_.Get(); } inline void ServiceConfig::_internal_set_api(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.api_.Set(value, GetArena()); + + api_.Set(value, GetArenaForAllocation()); } inline std::string* ServiceConfig::_internal_mutable_api() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.api_.Mutable( GetArena()); + + return api_.Mutable(GetArenaForAllocation()); } inline std::string* ServiceConfig::release_api() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.ServiceConfig.api) - return _impl_.api_.Release(); -} -inline void ServiceConfig::set_allocated_api(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.api_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.api_.IsDefault()) { - _impl_.api_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return api_.Release(); +} +inline void ServiceConfig::set_allocated_api(std::string* api) { + if (api != nullptr) { + + } else { + + } + api_.SetAllocated(api, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (api_.IsDefault()) { + api_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ServiceConfig.api) } // repeated .viam.app.v1.ResourceLevelServiceConfig service_configs = 10 [json_name = "serviceConfigs", (.tagger.v1.tags) = "json:\"service_config\""]; inline int ServiceConfig::_internal_service_configs_size() const { - return _internal_service_configs().size(); + return service_configs_.size(); } inline int ServiceConfig::service_configs_size() const { return _internal_service_configs_size(); } inline void ServiceConfig::clear_service_configs() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.service_configs_.Clear(); + service_configs_.Clear(); } -inline ::viam::app::v1::ResourceLevelServiceConfig* ServiceConfig::mutable_service_configs(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::app::v1::ResourceLevelServiceConfig* ServiceConfig::mutable_service_configs(int index) { // @@protoc_insertion_point(field_mutable:viam.app.v1.ServiceConfig.service_configs) - return _internal_mutable_service_configs()->Mutable(index); + return service_configs_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::ResourceLevelServiceConfig>* ServiceConfig::mutable_service_configs() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ResourceLevelServiceConfig >* +ServiceConfig::mutable_service_configs() { // @@protoc_insertion_point(field_mutable_list:viam.app.v1.ServiceConfig.service_configs) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_service_configs(); + return &service_configs_; } -inline const ::viam::app::v1::ResourceLevelServiceConfig& ServiceConfig::service_configs(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::app::v1::ResourceLevelServiceConfig& ServiceConfig::_internal_service_configs(int index) const { + return service_configs_.Get(index); +} +inline const ::viam::app::v1::ResourceLevelServiceConfig& ServiceConfig::service_configs(int index) const { // @@protoc_insertion_point(field_get:viam.app.v1.ServiceConfig.service_configs) - return _internal_service_configs().Get(index); + return _internal_service_configs(index); +} +inline ::viam::app::v1::ResourceLevelServiceConfig* ServiceConfig::_internal_add_service_configs() { + return service_configs_.Add(); } -inline ::viam::app::v1::ResourceLevelServiceConfig* ServiceConfig::add_service_configs() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::ResourceLevelServiceConfig* _add = _internal_mutable_service_configs()->Add(); +inline ::viam::app::v1::ResourceLevelServiceConfig* ServiceConfig::add_service_configs() { + ::viam::app::v1::ResourceLevelServiceConfig* _add = _internal_add_service_configs(); // @@protoc_insertion_point(field_add:viam.app.v1.ServiceConfig.service_configs) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::ResourceLevelServiceConfig>& ServiceConfig::service_configs() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ResourceLevelServiceConfig >& +ServiceConfig::service_configs() const { // @@protoc_insertion_point(field_list:viam.app.v1.ServiceConfig.service_configs) - return _internal_service_configs(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::ResourceLevelServiceConfig>& -ServiceConfig::_internal_service_configs() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.service_configs_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::ResourceLevelServiceConfig>* -ServiceConfig::_internal_mutable_service_configs() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.service_configs_; + return service_configs_; } // .viam.app.v1.LogConfiguration log_configuration = 11 [json_name = "logConfiguration"]; +inline bool ServiceConfig::_internal_has_log_configuration() const { + return this != internal_default_instance() && log_configuration_ != nullptr; +} inline bool ServiceConfig::has_log_configuration() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.log_configuration_ != nullptr); - return value; + return _internal_has_log_configuration(); } inline void ServiceConfig::clear_log_configuration() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.log_configuration_ != nullptr) _impl_.log_configuration_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && log_configuration_ != nullptr) { + delete log_configuration_; + } + log_configuration_ = nullptr; } inline const ::viam::app::v1::LogConfiguration& ServiceConfig::_internal_log_configuration() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::LogConfiguration* p = _impl_.log_configuration_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_LogConfiguration_default_instance_); + const ::viam::app::v1::LogConfiguration* p = log_configuration_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_LogConfiguration_default_instance_); } -inline const ::viam::app::v1::LogConfiguration& ServiceConfig::log_configuration() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::app::v1::LogConfiguration& ServiceConfig::log_configuration() const { // @@protoc_insertion_point(field_get:viam.app.v1.ServiceConfig.log_configuration) return _internal_log_configuration(); } -inline void ServiceConfig::unsafe_arena_set_allocated_log_configuration(::viam::app::v1::LogConfiguration* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.log_configuration_); +inline void ServiceConfig::unsafe_arena_set_allocated_log_configuration( + ::viam::app::v1::LogConfiguration* log_configuration) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(log_configuration_); } - _impl_.log_configuration_ = reinterpret_cast<::viam::app::v1::LogConfiguration*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + log_configuration_ = log_configuration; + if (log_configuration) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.ServiceConfig.log_configuration) } inline ::viam::app::v1::LogConfiguration* ServiceConfig::release_log_configuration() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::viam::app::v1::LogConfiguration* released = _impl_.log_configuration_; - _impl_.log_configuration_ = nullptr; + + ::viam::app::v1::LogConfiguration* temp = log_configuration_; + log_configuration_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::app::v1::LogConfiguration* ServiceConfig::unsafe_arena_release_log_configuration() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.ServiceConfig.log_configuration) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::viam::app::v1::LogConfiguration* temp = _impl_.log_configuration_; - _impl_.log_configuration_ = nullptr; + + ::viam::app::v1::LogConfiguration* temp = log_configuration_; + log_configuration_ = nullptr; return temp; } inline ::viam::app::v1::LogConfiguration* ServiceConfig::_internal_mutable_log_configuration() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.log_configuration_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::LogConfiguration>(GetArena()); - _impl_.log_configuration_ = reinterpret_cast<::viam::app::v1::LogConfiguration*>(p); + + if (log_configuration_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::LogConfiguration>(GetArenaForAllocation()); + log_configuration_ = p; } - return _impl_.log_configuration_; + return log_configuration_; } -inline ::viam::app::v1::LogConfiguration* ServiceConfig::mutable_log_configuration() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::app::v1::LogConfiguration* ServiceConfig::mutable_log_configuration() { ::viam::app::v1::LogConfiguration* _msg = _internal_mutable_log_configuration(); // @@protoc_insertion_point(field_mutable:viam.app.v1.ServiceConfig.log_configuration) return _msg; } -inline void ServiceConfig::set_allocated_log_configuration(::viam::app::v1::LogConfiguration* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ServiceConfig::set_allocated_log_configuration(::viam::app::v1::LogConfiguration* log_configuration) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::LogConfiguration*>(_impl_.log_configuration_); + delete log_configuration_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::LogConfiguration*>(value)->GetArena(); + if (log_configuration) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(log_configuration); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + log_configuration = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, log_configuration, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.log_configuration_ = reinterpret_cast<::viam::app::v1::LogConfiguration*>(value); + log_configuration_ = log_configuration; // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ServiceConfig.log_configuration) } @@ -13364,309 +11736,291 @@ inline void ServiceConfig::set_allocated_log_configuration(::viam::app::v1::LogC // string fqdn = 1 [json_name = "fqdn"]; inline void NetworkConfig::clear_fqdn() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.fqdn_.ClearToEmpty(); + fqdn_.ClearToEmpty(); } -inline const std::string& NetworkConfig::fqdn() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& NetworkConfig::fqdn() const { // @@protoc_insertion_point(field_get:viam.app.v1.NetworkConfig.fqdn) return _internal_fqdn(); } -template -inline PROTOBUF_ALWAYS_INLINE void NetworkConfig::set_fqdn(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.fqdn_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void NetworkConfig::set_fqdn(ArgT0&& arg0, ArgT... args) { + + fqdn_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.NetworkConfig.fqdn) } -inline std::string* NetworkConfig::mutable_fqdn() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* NetworkConfig::mutable_fqdn() { std::string* _s = _internal_mutable_fqdn(); // @@protoc_insertion_point(field_mutable:viam.app.v1.NetworkConfig.fqdn) return _s; } inline const std::string& NetworkConfig::_internal_fqdn() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.fqdn_.Get(); + return fqdn_.Get(); } inline void NetworkConfig::_internal_set_fqdn(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.fqdn_.Set(value, GetArena()); + + fqdn_.Set(value, GetArenaForAllocation()); } inline std::string* NetworkConfig::_internal_mutable_fqdn() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.fqdn_.Mutable( GetArena()); + + return fqdn_.Mutable(GetArenaForAllocation()); } inline std::string* NetworkConfig::release_fqdn() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.NetworkConfig.fqdn) - return _impl_.fqdn_.Release(); -} -inline void NetworkConfig::set_allocated_fqdn(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.fqdn_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.fqdn_.IsDefault()) { - _impl_.fqdn_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return fqdn_.Release(); +} +inline void NetworkConfig::set_allocated_fqdn(std::string* fqdn) { + if (fqdn != nullptr) { + + } else { + + } + fqdn_.SetAllocated(fqdn, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (fqdn_.IsDefault()) { + fqdn_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.NetworkConfig.fqdn) } // string bind_address = 2 [json_name = "bindAddress"]; inline void NetworkConfig::clear_bind_address() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.bind_address_.ClearToEmpty(); + bind_address_.ClearToEmpty(); } -inline const std::string& NetworkConfig::bind_address() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& NetworkConfig::bind_address() const { // @@protoc_insertion_point(field_get:viam.app.v1.NetworkConfig.bind_address) return _internal_bind_address(); } -template -inline PROTOBUF_ALWAYS_INLINE void NetworkConfig::set_bind_address(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.bind_address_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void NetworkConfig::set_bind_address(ArgT0&& arg0, ArgT... args) { + + bind_address_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.NetworkConfig.bind_address) } -inline std::string* NetworkConfig::mutable_bind_address() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* NetworkConfig::mutable_bind_address() { std::string* _s = _internal_mutable_bind_address(); // @@protoc_insertion_point(field_mutable:viam.app.v1.NetworkConfig.bind_address) return _s; } inline const std::string& NetworkConfig::_internal_bind_address() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.bind_address_.Get(); + return bind_address_.Get(); } inline void NetworkConfig::_internal_set_bind_address(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.bind_address_.Set(value, GetArena()); + + bind_address_.Set(value, GetArenaForAllocation()); } inline std::string* NetworkConfig::_internal_mutable_bind_address() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.bind_address_.Mutable( GetArena()); + + return bind_address_.Mutable(GetArenaForAllocation()); } inline std::string* NetworkConfig::release_bind_address() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.NetworkConfig.bind_address) - return _impl_.bind_address_.Release(); -} -inline void NetworkConfig::set_allocated_bind_address(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.bind_address_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.bind_address_.IsDefault()) { - _impl_.bind_address_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return bind_address_.Release(); +} +inline void NetworkConfig::set_allocated_bind_address(std::string* bind_address) { + if (bind_address != nullptr) { + + } else { + + } + bind_address_.SetAllocated(bind_address, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (bind_address_.IsDefault()) { + bind_address_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.NetworkConfig.bind_address) } // string tls_cert_file = 3 [json_name = "tlsCertFile"]; inline void NetworkConfig::clear_tls_cert_file() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.tls_cert_file_.ClearToEmpty(); + tls_cert_file_.ClearToEmpty(); } -inline const std::string& NetworkConfig::tls_cert_file() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& NetworkConfig::tls_cert_file() const { // @@protoc_insertion_point(field_get:viam.app.v1.NetworkConfig.tls_cert_file) return _internal_tls_cert_file(); } -template -inline PROTOBUF_ALWAYS_INLINE void NetworkConfig::set_tls_cert_file(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.tls_cert_file_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void NetworkConfig::set_tls_cert_file(ArgT0&& arg0, ArgT... args) { + + tls_cert_file_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.NetworkConfig.tls_cert_file) } -inline std::string* NetworkConfig::mutable_tls_cert_file() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* NetworkConfig::mutable_tls_cert_file() { std::string* _s = _internal_mutable_tls_cert_file(); // @@protoc_insertion_point(field_mutable:viam.app.v1.NetworkConfig.tls_cert_file) return _s; } inline const std::string& NetworkConfig::_internal_tls_cert_file() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.tls_cert_file_.Get(); + return tls_cert_file_.Get(); } inline void NetworkConfig::_internal_set_tls_cert_file(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.tls_cert_file_.Set(value, GetArena()); + + tls_cert_file_.Set(value, GetArenaForAllocation()); } inline std::string* NetworkConfig::_internal_mutable_tls_cert_file() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.tls_cert_file_.Mutable( GetArena()); + + return tls_cert_file_.Mutable(GetArenaForAllocation()); } inline std::string* NetworkConfig::release_tls_cert_file() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.NetworkConfig.tls_cert_file) - return _impl_.tls_cert_file_.Release(); -} -inline void NetworkConfig::set_allocated_tls_cert_file(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.tls_cert_file_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.tls_cert_file_.IsDefault()) { - _impl_.tls_cert_file_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return tls_cert_file_.Release(); +} +inline void NetworkConfig::set_allocated_tls_cert_file(std::string* tls_cert_file) { + if (tls_cert_file != nullptr) { + + } else { + + } + tls_cert_file_.SetAllocated(tls_cert_file, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (tls_cert_file_.IsDefault()) { + tls_cert_file_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.NetworkConfig.tls_cert_file) } // string tls_key_file = 4 [json_name = "tlsKeyFile"]; inline void NetworkConfig::clear_tls_key_file() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.tls_key_file_.ClearToEmpty(); + tls_key_file_.ClearToEmpty(); } -inline const std::string& NetworkConfig::tls_key_file() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& NetworkConfig::tls_key_file() const { // @@protoc_insertion_point(field_get:viam.app.v1.NetworkConfig.tls_key_file) return _internal_tls_key_file(); } -template -inline PROTOBUF_ALWAYS_INLINE void NetworkConfig::set_tls_key_file(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.tls_key_file_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void NetworkConfig::set_tls_key_file(ArgT0&& arg0, ArgT... args) { + + tls_key_file_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.NetworkConfig.tls_key_file) } -inline std::string* NetworkConfig::mutable_tls_key_file() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* NetworkConfig::mutable_tls_key_file() { std::string* _s = _internal_mutable_tls_key_file(); // @@protoc_insertion_point(field_mutable:viam.app.v1.NetworkConfig.tls_key_file) return _s; } inline const std::string& NetworkConfig::_internal_tls_key_file() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.tls_key_file_.Get(); + return tls_key_file_.Get(); } inline void NetworkConfig::_internal_set_tls_key_file(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.tls_key_file_.Set(value, GetArena()); + + tls_key_file_.Set(value, GetArenaForAllocation()); } inline std::string* NetworkConfig::_internal_mutable_tls_key_file() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.tls_key_file_.Mutable( GetArena()); + + return tls_key_file_.Mutable(GetArenaForAllocation()); } inline std::string* NetworkConfig::release_tls_key_file() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.NetworkConfig.tls_key_file) - return _impl_.tls_key_file_.Release(); -} -inline void NetworkConfig::set_allocated_tls_key_file(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.tls_key_file_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.tls_key_file_.IsDefault()) { - _impl_.tls_key_file_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return tls_key_file_.Release(); +} +inline void NetworkConfig::set_allocated_tls_key_file(std::string* tls_key_file) { + if (tls_key_file != nullptr) { + + } else { + + } + tls_key_file_.SetAllocated(tls_key_file, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (tls_key_file_.IsDefault()) { + tls_key_file_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.NetworkConfig.tls_key_file) } // .viam.app.v1.SessionsConfig sessions = 5 [json_name = "sessions"]; +inline bool NetworkConfig::_internal_has_sessions() const { + return this != internal_default_instance() && sessions_ != nullptr; +} inline bool NetworkConfig::has_sessions() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.sessions_ != nullptr); - return value; + return _internal_has_sessions(); } inline void NetworkConfig::clear_sessions() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.sessions_ != nullptr) _impl_.sessions_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && sessions_ != nullptr) { + delete sessions_; + } + sessions_ = nullptr; } inline const ::viam::app::v1::SessionsConfig& NetworkConfig::_internal_sessions() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::SessionsConfig* p = _impl_.sessions_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_SessionsConfig_default_instance_); + const ::viam::app::v1::SessionsConfig* p = sessions_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_SessionsConfig_default_instance_); } -inline const ::viam::app::v1::SessionsConfig& NetworkConfig::sessions() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::app::v1::SessionsConfig& NetworkConfig::sessions() const { // @@protoc_insertion_point(field_get:viam.app.v1.NetworkConfig.sessions) return _internal_sessions(); } -inline void NetworkConfig::unsafe_arena_set_allocated_sessions(::viam::app::v1::SessionsConfig* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.sessions_); +inline void NetworkConfig::unsafe_arena_set_allocated_sessions( + ::viam::app::v1::SessionsConfig* sessions) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(sessions_); } - _impl_.sessions_ = reinterpret_cast<::viam::app::v1::SessionsConfig*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + sessions_ = sessions; + if (sessions) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.NetworkConfig.sessions) } inline ::viam::app::v1::SessionsConfig* NetworkConfig::release_sessions() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::SessionsConfig* released = _impl_.sessions_; - _impl_.sessions_ = nullptr; + + ::viam::app::v1::SessionsConfig* temp = sessions_; + sessions_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::app::v1::SessionsConfig* NetworkConfig::unsafe_arena_release_sessions() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.NetworkConfig.sessions) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::SessionsConfig* temp = _impl_.sessions_; - _impl_.sessions_ = nullptr; + + ::viam::app::v1::SessionsConfig* temp = sessions_; + sessions_ = nullptr; return temp; } inline ::viam::app::v1::SessionsConfig* NetworkConfig::_internal_mutable_sessions() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.sessions_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::SessionsConfig>(GetArena()); - _impl_.sessions_ = reinterpret_cast<::viam::app::v1::SessionsConfig*>(p); + + if (sessions_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::SessionsConfig>(GetArenaForAllocation()); + sessions_ = p; } - return _impl_.sessions_; + return sessions_; } -inline ::viam::app::v1::SessionsConfig* NetworkConfig::mutable_sessions() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::app::v1::SessionsConfig* NetworkConfig::mutable_sessions() { ::viam::app::v1::SessionsConfig* _msg = _internal_mutable_sessions(); // @@protoc_insertion_point(field_mutable:viam.app.v1.NetworkConfig.sessions) return _msg; } -inline void NetworkConfig::set_allocated_sessions(::viam::app::v1::SessionsConfig* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void NetworkConfig::set_allocated_sessions(::viam::app::v1::SessionsConfig* sessions) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::SessionsConfig*>(_impl_.sessions_); + delete sessions_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::SessionsConfig*>(value)->GetArena(); + if (sessions) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(sessions); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + sessions = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, sessions, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.sessions_ = reinterpret_cast<::viam::app::v1::SessionsConfig*>(value); + sessions_ = sessions; // @@protoc_insertion_point(field_set_allocated:viam.app.v1.NetworkConfig.sessions) } @@ -13675,93 +12029,87 @@ inline void NetworkConfig::set_allocated_sessions(::viam::app::v1::SessionsConfi // SessionsConfig // .google.protobuf.Duration heartbeat_window = 1 [json_name = "heartbeatWindow"]; +inline bool SessionsConfig::_internal_has_heartbeat_window() const { + return this != internal_default_instance() && heartbeat_window_ != nullptr; +} inline bool SessionsConfig::has_heartbeat_window() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.heartbeat_window_ != nullptr); - return value; + return _internal_has_heartbeat_window(); } -inline const ::google::protobuf::Duration& SessionsConfig::_internal_heartbeat_window() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Duration* p = _impl_.heartbeat_window_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Duration_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Duration& SessionsConfig::_internal_heartbeat_window() const { + const ::PROTOBUF_NAMESPACE_ID::Duration* p = heartbeat_window_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Duration_default_instance_); } -inline const ::google::protobuf::Duration& SessionsConfig::heartbeat_window() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Duration& SessionsConfig::heartbeat_window() const { // @@protoc_insertion_point(field_get:viam.app.v1.SessionsConfig.heartbeat_window) return _internal_heartbeat_window(); } -inline void SessionsConfig::unsafe_arena_set_allocated_heartbeat_window(::google::protobuf::Duration* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.heartbeat_window_); +inline void SessionsConfig::unsafe_arena_set_allocated_heartbeat_window( + ::PROTOBUF_NAMESPACE_ID::Duration* heartbeat_window) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(heartbeat_window_); } - _impl_.heartbeat_window_ = reinterpret_cast<::google::protobuf::Duration*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + heartbeat_window_ = heartbeat_window; + if (heartbeat_window) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.SessionsConfig.heartbeat_window) } -inline ::google::protobuf::Duration* SessionsConfig::release_heartbeat_window() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Duration* released = _impl_.heartbeat_window_; - _impl_.heartbeat_window_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Duration* SessionsConfig::release_heartbeat_window() { + + ::PROTOBUF_NAMESPACE_ID::Duration* temp = heartbeat_window_; + heartbeat_window_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Duration* SessionsConfig::unsafe_arena_release_heartbeat_window() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Duration* SessionsConfig::unsafe_arena_release_heartbeat_window() { // @@protoc_insertion_point(field_release:viam.app.v1.SessionsConfig.heartbeat_window) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Duration* temp = _impl_.heartbeat_window_; - _impl_.heartbeat_window_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Duration* temp = heartbeat_window_; + heartbeat_window_ = nullptr; return temp; } -inline ::google::protobuf::Duration* SessionsConfig::_internal_mutable_heartbeat_window() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.heartbeat_window_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArena()); - _impl_.heartbeat_window_ = reinterpret_cast<::google::protobuf::Duration*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Duration* SessionsConfig::_internal_mutable_heartbeat_window() { + + if (heartbeat_window_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Duration>(GetArenaForAllocation()); + heartbeat_window_ = p; } - return _impl_.heartbeat_window_; + return heartbeat_window_; } -inline ::google::protobuf::Duration* SessionsConfig::mutable_heartbeat_window() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Duration* _msg = _internal_mutable_heartbeat_window(); +inline ::PROTOBUF_NAMESPACE_ID::Duration* SessionsConfig::mutable_heartbeat_window() { + ::PROTOBUF_NAMESPACE_ID::Duration* _msg = _internal_mutable_heartbeat_window(); // @@protoc_insertion_point(field_mutable:viam.app.v1.SessionsConfig.heartbeat_window) return _msg; } -inline void SessionsConfig::set_allocated_heartbeat_window(::google::protobuf::Duration* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void SessionsConfig::set_allocated_heartbeat_window(::PROTOBUF_NAMESPACE_ID::Duration* heartbeat_window) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.heartbeat_window_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(heartbeat_window_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (heartbeat_window) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(heartbeat_window)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + heartbeat_window = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, heartbeat_window, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.heartbeat_window_ = reinterpret_cast<::google::protobuf::Duration*>(value); + heartbeat_window_ = heartbeat_window; // @@protoc_insertion_point(field_set_allocated:viam.app.v1.SessionsConfig.heartbeat_window) } @@ -13771,247 +12119,206 @@ inline void SessionsConfig::set_allocated_heartbeat_window(::google::protobuf::D // repeated .viam.app.v1.AuthHandlerConfig handlers = 1 [json_name = "handlers"]; inline int AuthConfig::_internal_handlers_size() const { - return _internal_handlers().size(); + return handlers_.size(); } inline int AuthConfig::handlers_size() const { return _internal_handlers_size(); } inline void AuthConfig::clear_handlers() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.handlers_.Clear(); + handlers_.Clear(); } -inline ::viam::app::v1::AuthHandlerConfig* AuthConfig::mutable_handlers(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::app::v1::AuthHandlerConfig* AuthConfig::mutable_handlers(int index) { // @@protoc_insertion_point(field_mutable:viam.app.v1.AuthConfig.handlers) - return _internal_mutable_handlers()->Mutable(index); + return handlers_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::AuthHandlerConfig>* AuthConfig::mutable_handlers() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::AuthHandlerConfig >* +AuthConfig::mutable_handlers() { // @@protoc_insertion_point(field_mutable_list:viam.app.v1.AuthConfig.handlers) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_handlers(); + return &handlers_; } -inline const ::viam::app::v1::AuthHandlerConfig& AuthConfig::handlers(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::app::v1::AuthHandlerConfig& AuthConfig::_internal_handlers(int index) const { + return handlers_.Get(index); +} +inline const ::viam::app::v1::AuthHandlerConfig& AuthConfig::handlers(int index) const { // @@protoc_insertion_point(field_get:viam.app.v1.AuthConfig.handlers) - return _internal_handlers().Get(index); + return _internal_handlers(index); +} +inline ::viam::app::v1::AuthHandlerConfig* AuthConfig::_internal_add_handlers() { + return handlers_.Add(); } -inline ::viam::app::v1::AuthHandlerConfig* AuthConfig::add_handlers() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::AuthHandlerConfig* _add = _internal_mutable_handlers()->Add(); +inline ::viam::app::v1::AuthHandlerConfig* AuthConfig::add_handlers() { + ::viam::app::v1::AuthHandlerConfig* _add = _internal_add_handlers(); // @@protoc_insertion_point(field_add:viam.app.v1.AuthConfig.handlers) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::AuthHandlerConfig>& AuthConfig::handlers() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::AuthHandlerConfig >& +AuthConfig::handlers() const { // @@protoc_insertion_point(field_list:viam.app.v1.AuthConfig.handlers) - return _internal_handlers(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::AuthHandlerConfig>& -AuthConfig::_internal_handlers() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.handlers_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::AuthHandlerConfig>* -AuthConfig::_internal_mutable_handlers() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.handlers_; + return handlers_; } // repeated string tls_auth_entities = 2 [json_name = "tlsAuthEntities"]; inline int AuthConfig::_internal_tls_auth_entities_size() const { - return _internal_tls_auth_entities().size(); + return tls_auth_entities_.size(); } inline int AuthConfig::tls_auth_entities_size() const { return _internal_tls_auth_entities_size(); } inline void AuthConfig::clear_tls_auth_entities() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.tls_auth_entities_.Clear(); + tls_auth_entities_.Clear(); } -inline std::string* AuthConfig::add_tls_auth_entities() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_tls_auth_entities()->Add(); +inline std::string* AuthConfig::add_tls_auth_entities() { + std::string* _s = _internal_add_tls_auth_entities(); // @@protoc_insertion_point(field_add_mutable:viam.app.v1.AuthConfig.tls_auth_entities) return _s; } -inline const std::string& AuthConfig::tls_auth_entities(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& AuthConfig::_internal_tls_auth_entities(int index) const { + return tls_auth_entities_.Get(index); +} +inline const std::string& AuthConfig::tls_auth_entities(int index) const { // @@protoc_insertion_point(field_get:viam.app.v1.AuthConfig.tls_auth_entities) - return _internal_tls_auth_entities().Get(index); + return _internal_tls_auth_entities(index); } -inline std::string* AuthConfig::mutable_tls_auth_entities(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* AuthConfig::mutable_tls_auth_entities(int index) { // @@protoc_insertion_point(field_mutable:viam.app.v1.AuthConfig.tls_auth_entities) - return _internal_mutable_tls_auth_entities()->Mutable(index); + return tls_auth_entities_.Mutable(index); } inline void AuthConfig::set_tls_auth_entities(int index, const std::string& value) { - _internal_mutable_tls_auth_entities()->Mutable(index)->assign(value); + tls_auth_entities_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set:viam.app.v1.AuthConfig.tls_auth_entities) } inline void AuthConfig::set_tls_auth_entities(int index, std::string&& value) { - _internal_mutable_tls_auth_entities()->Mutable(index)->assign(std::move(value)); + tls_auth_entities_.Mutable(index)->assign(std::move(value)); // @@protoc_insertion_point(field_set:viam.app.v1.AuthConfig.tls_auth_entities) } inline void AuthConfig::set_tls_auth_entities(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_tls_auth_entities()->Mutable(index)->assign(value); + GOOGLE_DCHECK(value != nullptr); + tls_auth_entities_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:viam.app.v1.AuthConfig.tls_auth_entities) } -inline void AuthConfig::set_tls_auth_entities(int index, const char* value, - std::size_t size) { - _internal_mutable_tls_auth_entities()->Mutable(index)->assign( - reinterpret_cast(value), size); +inline void AuthConfig::set_tls_auth_entities(int index, const char* value, size_t size) { + tls_auth_entities_.Mutable(index)->assign( + reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:viam.app.v1.AuthConfig.tls_auth_entities) } -inline void AuthConfig::set_tls_auth_entities(int index, absl::string_view value) { - _internal_mutable_tls_auth_entities()->Mutable(index)->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_set_string_piece:viam.app.v1.AuthConfig.tls_auth_entities) +inline std::string* AuthConfig::_internal_add_tls_auth_entities() { + return tls_auth_entities_.Add(); } inline void AuthConfig::add_tls_auth_entities(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_tls_auth_entities()->Add()->assign(value); + tls_auth_entities_.Add()->assign(value); // @@protoc_insertion_point(field_add:viam.app.v1.AuthConfig.tls_auth_entities) } inline void AuthConfig::add_tls_auth_entities(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_tls_auth_entities()->Add(std::move(value)); + tls_auth_entities_.Add(std::move(value)); // @@protoc_insertion_point(field_add:viam.app.v1.AuthConfig.tls_auth_entities) } inline void AuthConfig::add_tls_auth_entities(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_tls_auth_entities()->Add()->assign(value); + GOOGLE_DCHECK(value != nullptr); + tls_auth_entities_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:viam.app.v1.AuthConfig.tls_auth_entities) } -inline void AuthConfig::add_tls_auth_entities(const char* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_tls_auth_entities()->Add()->assign( - reinterpret_cast(value), size); +inline void AuthConfig::add_tls_auth_entities(const char* value, size_t size) { + tls_auth_entities_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:viam.app.v1.AuthConfig.tls_auth_entities) } -inline void AuthConfig::add_tls_auth_entities(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_tls_auth_entities()->Add()->assign(value.data(), value.size()); - // @@protoc_insertion_point(field_add_string_piece:viam.app.v1.AuthConfig.tls_auth_entities) -} -inline const ::google::protobuf::RepeatedPtrField& -AuthConfig::tls_auth_entities() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +AuthConfig::tls_auth_entities() const { // @@protoc_insertion_point(field_list:viam.app.v1.AuthConfig.tls_auth_entities) - return _internal_tls_auth_entities(); + return tls_auth_entities_; } -inline ::google::protobuf::RepeatedPtrField* -AuthConfig::mutable_tls_auth_entities() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +AuthConfig::mutable_tls_auth_entities() { // @@protoc_insertion_point(field_mutable_list:viam.app.v1.AuthConfig.tls_auth_entities) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_tls_auth_entities(); -} -inline const ::google::protobuf::RepeatedPtrField& -AuthConfig::_internal_tls_auth_entities() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.tls_auth_entities_; -} -inline ::google::protobuf::RepeatedPtrField* -AuthConfig::_internal_mutable_tls_auth_entities() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.tls_auth_entities_; + return &tls_auth_entities_; } // optional .viam.app.v1.ExternalAuthConfig external_auth_config = 3 [json_name = "externalAuthConfig"]; -inline bool AuthConfig::has_external_auth_config() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.external_auth_config_ != nullptr); +inline bool AuthConfig::_internal_has_external_auth_config() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || external_auth_config_ != nullptr); return value; } +inline bool AuthConfig::has_external_auth_config() const { + return _internal_has_external_auth_config(); +} inline void AuthConfig::clear_external_auth_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.external_auth_config_ != nullptr) _impl_.external_auth_config_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (external_auth_config_ != nullptr) external_auth_config_->Clear(); + _has_bits_[0] &= ~0x00000001u; } inline const ::viam::app::v1::ExternalAuthConfig& AuthConfig::_internal_external_auth_config() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::ExternalAuthConfig* p = _impl_.external_auth_config_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_ExternalAuthConfig_default_instance_); + const ::viam::app::v1::ExternalAuthConfig* p = external_auth_config_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_ExternalAuthConfig_default_instance_); } -inline const ::viam::app::v1::ExternalAuthConfig& AuthConfig::external_auth_config() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::app::v1::ExternalAuthConfig& AuthConfig::external_auth_config() const { // @@protoc_insertion_point(field_get:viam.app.v1.AuthConfig.external_auth_config) return _internal_external_auth_config(); } -inline void AuthConfig::unsafe_arena_set_allocated_external_auth_config(::viam::app::v1::ExternalAuthConfig* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.external_auth_config_); +inline void AuthConfig::unsafe_arena_set_allocated_external_auth_config( + ::viam::app::v1::ExternalAuthConfig* external_auth_config) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(external_auth_config_); } - _impl_.external_auth_config_ = reinterpret_cast<::viam::app::v1::ExternalAuthConfig*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + external_auth_config_ = external_auth_config; + if (external_auth_config) { + _has_bits_[0] |= 0x00000001u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; + _has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.AuthConfig.external_auth_config) } inline ::viam::app::v1::ExternalAuthConfig* AuthConfig::release_external_auth_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::ExternalAuthConfig* released = _impl_.external_auth_config_; - _impl_.external_auth_config_ = nullptr; + _has_bits_[0] &= ~0x00000001u; + ::viam::app::v1::ExternalAuthConfig* temp = external_auth_config_; + external_auth_config_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::app::v1::ExternalAuthConfig* AuthConfig::unsafe_arena_release_external_auth_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.AuthConfig.external_auth_config) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::ExternalAuthConfig* temp = _impl_.external_auth_config_; - _impl_.external_auth_config_ = nullptr; + _has_bits_[0] &= ~0x00000001u; + ::viam::app::v1::ExternalAuthConfig* temp = external_auth_config_; + external_auth_config_ = nullptr; return temp; } inline ::viam::app::v1::ExternalAuthConfig* AuthConfig::_internal_mutable_external_auth_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.external_auth_config_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::ExternalAuthConfig>(GetArena()); - _impl_.external_auth_config_ = reinterpret_cast<::viam::app::v1::ExternalAuthConfig*>(p); + _has_bits_[0] |= 0x00000001u; + if (external_auth_config_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::ExternalAuthConfig>(GetArenaForAllocation()); + external_auth_config_ = p; } - return _impl_.external_auth_config_; + return external_auth_config_; } -inline ::viam::app::v1::ExternalAuthConfig* AuthConfig::mutable_external_auth_config() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::app::v1::ExternalAuthConfig* AuthConfig::mutable_external_auth_config() { ::viam::app::v1::ExternalAuthConfig* _msg = _internal_mutable_external_auth_config(); // @@protoc_insertion_point(field_mutable:viam.app.v1.AuthConfig.external_auth_config) return _msg; } -inline void AuthConfig::set_allocated_external_auth_config(::viam::app::v1::ExternalAuthConfig* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void AuthConfig::set_allocated_external_auth_config(::viam::app::v1::ExternalAuthConfig* external_auth_config) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::ExternalAuthConfig*>(_impl_.external_auth_config_); + delete external_auth_config_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::ExternalAuthConfig*>(value)->GetArena(); + if (external_auth_config) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(external_auth_config); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + external_auth_config = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, external_auth_config, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + _has_bits_[0] |= 0x00000001u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; + _has_bits_[0] &= ~0x00000001u; } - - _impl_.external_auth_config_ = reinterpret_cast<::viam::app::v1::ExternalAuthConfig*>(value); + external_auth_config_ = external_auth_config; // @@protoc_insertion_point(field_set_allocated:viam.app.v1.AuthConfig.external_auth_config) } @@ -14020,93 +12327,87 @@ inline void AuthConfig::set_allocated_external_auth_config(::viam::app::v1::Exte // JWKSFile // .google.protobuf.Struct json = 1 [json_name = "json"]; +inline bool JWKSFile::_internal_has_json() const { + return this != internal_default_instance() && json_ != nullptr; +} inline bool JWKSFile::has_json() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.json_ != nullptr); - return value; + return _internal_has_json(); } -inline const ::google::protobuf::Struct& JWKSFile::_internal_json() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.json_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& JWKSFile::_internal_json() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = json_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& JWKSFile::json() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& JWKSFile::json() const { // @@protoc_insertion_point(field_get:viam.app.v1.JWKSFile.json) return _internal_json(); } -inline void JWKSFile::unsafe_arena_set_allocated_json(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.json_); +inline void JWKSFile::unsafe_arena_set_allocated_json( + ::PROTOBUF_NAMESPACE_ID::Struct* json) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(json_); } - _impl_.json_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + json_ = json; + if (json) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.JWKSFile.json) } -inline ::google::protobuf::Struct* JWKSFile::release_json() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.json_; - _impl_.json_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* JWKSFile::release_json() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = json_; + json_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* JWKSFile::unsafe_arena_release_json() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* JWKSFile::unsafe_arena_release_json() { // @@protoc_insertion_point(field_release:viam.app.v1.JWKSFile.json) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.json_; - _impl_.json_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = json_; + json_ = nullptr; return temp; } -inline ::google::protobuf::Struct* JWKSFile::_internal_mutable_json() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.json_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.json_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* JWKSFile::_internal_mutable_json() { + + if (json_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + json_ = p; } - return _impl_.json_; + return json_; } -inline ::google::protobuf::Struct* JWKSFile::mutable_json() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_json(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* JWKSFile::mutable_json() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_json(); // @@protoc_insertion_point(field_mutable:viam.app.v1.JWKSFile.json) return _msg; } -inline void JWKSFile::set_allocated_json(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void JWKSFile::set_allocated_json(::PROTOBUF_NAMESPACE_ID::Struct* json) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.json_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(json_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (json) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(json)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + json = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, json, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.json_ = reinterpret_cast<::google::protobuf::Struct*>(value); + json_ = json; // @@protoc_insertion_point(field_set_allocated:viam.app.v1.JWKSFile.json) } @@ -14115,98 +12416,92 @@ inline void JWKSFile::set_allocated_json(::google::protobuf::Struct* value) { // ExternalAuthConfig // .viam.app.v1.JWKSFile jwks = 1 [json_name = "jwks"]; +inline bool ExternalAuthConfig::_internal_has_jwks() const { + return this != internal_default_instance() && jwks_ != nullptr; +} inline bool ExternalAuthConfig::has_jwks() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.jwks_ != nullptr); - return value; + return _internal_has_jwks(); } inline void ExternalAuthConfig::clear_jwks() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.jwks_ != nullptr) _impl_.jwks_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && jwks_ != nullptr) { + delete jwks_; + } + jwks_ = nullptr; } inline const ::viam::app::v1::JWKSFile& ExternalAuthConfig::_internal_jwks() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::JWKSFile* p = _impl_.jwks_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_JWKSFile_default_instance_); + const ::viam::app::v1::JWKSFile* p = jwks_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_JWKSFile_default_instance_); } -inline const ::viam::app::v1::JWKSFile& ExternalAuthConfig::jwks() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::app::v1::JWKSFile& ExternalAuthConfig::jwks() const { // @@protoc_insertion_point(field_get:viam.app.v1.ExternalAuthConfig.jwks) return _internal_jwks(); } -inline void ExternalAuthConfig::unsafe_arena_set_allocated_jwks(::viam::app::v1::JWKSFile* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.jwks_); +inline void ExternalAuthConfig::unsafe_arena_set_allocated_jwks( + ::viam::app::v1::JWKSFile* jwks) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(jwks_); } - _impl_.jwks_ = reinterpret_cast<::viam::app::v1::JWKSFile*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + jwks_ = jwks; + if (jwks) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.ExternalAuthConfig.jwks) } inline ::viam::app::v1::JWKSFile* ExternalAuthConfig::release_jwks() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::JWKSFile* released = _impl_.jwks_; - _impl_.jwks_ = nullptr; + + ::viam::app::v1::JWKSFile* temp = jwks_; + jwks_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::app::v1::JWKSFile* ExternalAuthConfig::unsafe_arena_release_jwks() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.ExternalAuthConfig.jwks) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::JWKSFile* temp = _impl_.jwks_; - _impl_.jwks_ = nullptr; + + ::viam::app::v1::JWKSFile* temp = jwks_; + jwks_ = nullptr; return temp; } inline ::viam::app::v1::JWKSFile* ExternalAuthConfig::_internal_mutable_jwks() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.jwks_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::JWKSFile>(GetArena()); - _impl_.jwks_ = reinterpret_cast<::viam::app::v1::JWKSFile*>(p); + + if (jwks_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::JWKSFile>(GetArenaForAllocation()); + jwks_ = p; } - return _impl_.jwks_; + return jwks_; } -inline ::viam::app::v1::JWKSFile* ExternalAuthConfig::mutable_jwks() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::app::v1::JWKSFile* ExternalAuthConfig::mutable_jwks() { ::viam::app::v1::JWKSFile* _msg = _internal_mutable_jwks(); // @@protoc_insertion_point(field_mutable:viam.app.v1.ExternalAuthConfig.jwks) return _msg; } -inline void ExternalAuthConfig::set_allocated_jwks(::viam::app::v1::JWKSFile* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ExternalAuthConfig::set_allocated_jwks(::viam::app::v1::JWKSFile* jwks) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::JWKSFile*>(_impl_.jwks_); + delete jwks_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::JWKSFile*>(value)->GetArena(); + if (jwks) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(jwks); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + jwks = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, jwks, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.jwks_ = reinterpret_cast<::viam::app::v1::JWKSFile*>(value); + jwks_ = jwks; // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ExternalAuthConfig.jwks) } @@ -14216,115 +12511,106 @@ inline void ExternalAuthConfig::set_allocated_jwks(::viam::app::v1::JWKSFile* va // .viam.app.v1.CredentialsType type = 1 [json_name = "type"]; inline void AuthHandlerConfig::clear_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_ = 0; + type_ = 0; +} +inline ::viam::app::v1::CredentialsType AuthHandlerConfig::_internal_type() const { + return static_cast< ::viam::app::v1::CredentialsType >(type_); } inline ::viam::app::v1::CredentialsType AuthHandlerConfig::type() const { // @@protoc_insertion_point(field_get:viam.app.v1.AuthHandlerConfig.type) return _internal_type(); } +inline void AuthHandlerConfig::_internal_set_type(::viam::app::v1::CredentialsType value) { + + type_ = value; +} inline void AuthHandlerConfig::set_type(::viam::app::v1::CredentialsType value) { _internal_set_type(value); // @@protoc_insertion_point(field_set:viam.app.v1.AuthHandlerConfig.type) } -inline ::viam::app::v1::CredentialsType AuthHandlerConfig::_internal_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::viam::app::v1::CredentialsType>(_impl_.type_); -} -inline void AuthHandlerConfig::_internal_set_type(::viam::app::v1::CredentialsType value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.type_ = value; -} // .google.protobuf.Struct config = 5 [json_name = "config"]; +inline bool AuthHandlerConfig::_internal_has_config() const { + return this != internal_default_instance() && config_ != nullptr; +} inline bool AuthHandlerConfig::has_config() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.config_ != nullptr); - return value; + return _internal_has_config(); } -inline const ::google::protobuf::Struct& AuthHandlerConfig::_internal_config() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.config_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& AuthHandlerConfig::_internal_config() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = config_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& AuthHandlerConfig::config() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& AuthHandlerConfig::config() const { // @@protoc_insertion_point(field_get:viam.app.v1.AuthHandlerConfig.config) return _internal_config(); } -inline void AuthHandlerConfig::unsafe_arena_set_allocated_config(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.config_); +inline void AuthHandlerConfig::unsafe_arena_set_allocated_config( + ::PROTOBUF_NAMESPACE_ID::Struct* config) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(config_); } - _impl_.config_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + config_ = config; + if (config) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.AuthHandlerConfig.config) } -inline ::google::protobuf::Struct* AuthHandlerConfig::release_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.config_; - _impl_.config_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* AuthHandlerConfig::release_config() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = config_; + config_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* AuthHandlerConfig::unsafe_arena_release_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* AuthHandlerConfig::unsafe_arena_release_config() { // @@protoc_insertion_point(field_release:viam.app.v1.AuthHandlerConfig.config) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.config_; - _impl_.config_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = config_; + config_ = nullptr; return temp; } -inline ::google::protobuf::Struct* AuthHandlerConfig::_internal_mutable_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.config_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.config_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* AuthHandlerConfig::_internal_mutable_config() { + + if (config_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + config_ = p; } - return _impl_.config_; + return config_; } -inline ::google::protobuf::Struct* AuthHandlerConfig::mutable_config() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_config(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* AuthHandlerConfig::mutable_config() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_config(); // @@protoc_insertion_point(field_mutable:viam.app.v1.AuthHandlerConfig.config) return _msg; } -inline void AuthHandlerConfig::set_allocated_config(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void AuthHandlerConfig::set_allocated_config(::PROTOBUF_NAMESPACE_ID::Struct* config) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.config_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(config_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (config) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(config)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + config = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, config, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.config_ = reinterpret_cast<::google::protobuf::Struct*>(value); + config_ = config; // @@protoc_insertion_point(field_set_allocated:viam.app.v1.AuthHandlerConfig.config) } @@ -14334,337 +12620,316 @@ inline void AuthHandlerConfig::set_allocated_config(::google::protobuf::Struct* // string parent = 1 [json_name = "parent"]; inline void Frame::clear_parent() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.parent_.ClearToEmpty(); + parent_.ClearToEmpty(); } -inline const std::string& Frame::parent() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Frame::parent() const { // @@protoc_insertion_point(field_get:viam.app.v1.Frame.parent) return _internal_parent(); } -template -inline PROTOBUF_ALWAYS_INLINE void Frame::set_parent(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.parent_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Frame::set_parent(ArgT0&& arg0, ArgT... args) { + + parent_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.Frame.parent) } -inline std::string* Frame::mutable_parent() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Frame::mutable_parent() { std::string* _s = _internal_mutable_parent(); // @@protoc_insertion_point(field_mutable:viam.app.v1.Frame.parent) return _s; } inline const std::string& Frame::_internal_parent() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.parent_.Get(); + return parent_.Get(); } inline void Frame::_internal_set_parent(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.parent_.Set(value, GetArena()); + + parent_.Set(value, GetArenaForAllocation()); } inline std::string* Frame::_internal_mutable_parent() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.parent_.Mutable( GetArena()); + + return parent_.Mutable(GetArenaForAllocation()); } inline std::string* Frame::release_parent() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.Frame.parent) - return _impl_.parent_.Release(); -} -inline void Frame::set_allocated_parent(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.parent_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.parent_.IsDefault()) { - _impl_.parent_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return parent_.Release(); +} +inline void Frame::set_allocated_parent(std::string* parent) { + if (parent != nullptr) { + + } else { + + } + parent_.SetAllocated(parent, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (parent_.IsDefault()) { + parent_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Frame.parent) } // .viam.app.v1.Translation translation = 2 [json_name = "translation"]; +inline bool Frame::_internal_has_translation() const { + return this != internal_default_instance() && translation_ != nullptr; +} inline bool Frame::has_translation() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.translation_ != nullptr); - return value; + return _internal_has_translation(); } inline void Frame::clear_translation() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.translation_ != nullptr) _impl_.translation_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && translation_ != nullptr) { + delete translation_; + } + translation_ = nullptr; } inline const ::viam::app::v1::Translation& Frame::_internal_translation() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::Translation* p = _impl_.translation_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_Translation_default_instance_); + const ::viam::app::v1::Translation* p = translation_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_Translation_default_instance_); } -inline const ::viam::app::v1::Translation& Frame::translation() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::app::v1::Translation& Frame::translation() const { // @@protoc_insertion_point(field_get:viam.app.v1.Frame.translation) return _internal_translation(); } -inline void Frame::unsafe_arena_set_allocated_translation(::viam::app::v1::Translation* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.translation_); +inline void Frame::unsafe_arena_set_allocated_translation( + ::viam::app::v1::Translation* translation) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(translation_); } - _impl_.translation_ = reinterpret_cast<::viam::app::v1::Translation*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + translation_ = translation; + if (translation) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.Frame.translation) } inline ::viam::app::v1::Translation* Frame::release_translation() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::Translation* released = _impl_.translation_; - _impl_.translation_ = nullptr; + + ::viam::app::v1::Translation* temp = translation_; + translation_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::app::v1::Translation* Frame::unsafe_arena_release_translation() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.Frame.translation) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::Translation* temp = _impl_.translation_; - _impl_.translation_ = nullptr; + + ::viam::app::v1::Translation* temp = translation_; + translation_ = nullptr; return temp; } inline ::viam::app::v1::Translation* Frame::_internal_mutable_translation() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.translation_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::Translation>(GetArena()); - _impl_.translation_ = reinterpret_cast<::viam::app::v1::Translation*>(p); + + if (translation_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::Translation>(GetArenaForAllocation()); + translation_ = p; } - return _impl_.translation_; + return translation_; } -inline ::viam::app::v1::Translation* Frame::mutable_translation() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::app::v1::Translation* Frame::mutable_translation() { ::viam::app::v1::Translation* _msg = _internal_mutable_translation(); // @@protoc_insertion_point(field_mutable:viam.app.v1.Frame.translation) return _msg; } -inline void Frame::set_allocated_translation(::viam::app::v1::Translation* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Frame::set_allocated_translation(::viam::app::v1::Translation* translation) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::Translation*>(_impl_.translation_); + delete translation_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::Translation*>(value)->GetArena(); + if (translation) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(translation); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + translation = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, translation, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.translation_ = reinterpret_cast<::viam::app::v1::Translation*>(value); + translation_ = translation; // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Frame.translation) } // .viam.app.v1.Orientation orientation = 3 [json_name = "orientation"]; +inline bool Frame::_internal_has_orientation() const { + return this != internal_default_instance() && orientation_ != nullptr; +} inline bool Frame::has_orientation() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.orientation_ != nullptr); - return value; + return _internal_has_orientation(); } inline void Frame::clear_orientation() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.orientation_ != nullptr) _impl_.orientation_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && orientation_ != nullptr) { + delete orientation_; + } + orientation_ = nullptr; } inline const ::viam::app::v1::Orientation& Frame::_internal_orientation() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::Orientation* p = _impl_.orientation_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_Orientation_default_instance_); + const ::viam::app::v1::Orientation* p = orientation_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_Orientation_default_instance_); } -inline const ::viam::app::v1::Orientation& Frame::orientation() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::app::v1::Orientation& Frame::orientation() const { // @@protoc_insertion_point(field_get:viam.app.v1.Frame.orientation) return _internal_orientation(); } -inline void Frame::unsafe_arena_set_allocated_orientation(::viam::app::v1::Orientation* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.orientation_); +inline void Frame::unsafe_arena_set_allocated_orientation( + ::viam::app::v1::Orientation* orientation) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(orientation_); } - _impl_.orientation_ = reinterpret_cast<::viam::app::v1::Orientation*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + orientation_ = orientation; + if (orientation) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.Frame.orientation) } inline ::viam::app::v1::Orientation* Frame::release_orientation() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::viam::app::v1::Orientation* released = _impl_.orientation_; - _impl_.orientation_ = nullptr; + + ::viam::app::v1::Orientation* temp = orientation_; + orientation_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::app::v1::Orientation* Frame::unsafe_arena_release_orientation() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.Frame.orientation) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::viam::app::v1::Orientation* temp = _impl_.orientation_; - _impl_.orientation_ = nullptr; + + ::viam::app::v1::Orientation* temp = orientation_; + orientation_ = nullptr; return temp; } inline ::viam::app::v1::Orientation* Frame::_internal_mutable_orientation() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.orientation_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::Orientation>(GetArena()); - _impl_.orientation_ = reinterpret_cast<::viam::app::v1::Orientation*>(p); + + if (orientation_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::Orientation>(GetArenaForAllocation()); + orientation_ = p; } - return _impl_.orientation_; + return orientation_; } -inline ::viam::app::v1::Orientation* Frame::mutable_orientation() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::app::v1::Orientation* Frame::mutable_orientation() { ::viam::app::v1::Orientation* _msg = _internal_mutable_orientation(); // @@protoc_insertion_point(field_mutable:viam.app.v1.Frame.orientation) return _msg; } -inline void Frame::set_allocated_orientation(::viam::app::v1::Orientation* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Frame::set_allocated_orientation(::viam::app::v1::Orientation* orientation) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::Orientation*>(_impl_.orientation_); + delete orientation_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::Orientation*>(value)->GetArena(); + if (orientation) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(orientation); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + orientation = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, orientation, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.orientation_ = reinterpret_cast<::viam::app::v1::Orientation*>(value); + orientation_ = orientation; // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Frame.orientation) } // .viam.common.v1.Geometry geometry = 4 [json_name = "geometry"]; +inline bool Frame::_internal_has_geometry() const { + return this != internal_default_instance() && geometry_ != nullptr; +} inline bool Frame::has_geometry() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || _impl_.geometry_ != nullptr); - return value; + return _internal_has_geometry(); } inline const ::viam::common::v1::Geometry& Frame::_internal_geometry() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::common::v1::Geometry* p = _impl_.geometry_; - return p != nullptr ? *p : reinterpret_cast(::viam::common::v1::_Geometry_default_instance_); + const ::viam::common::v1::Geometry* p = geometry_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_Geometry_default_instance_); } -inline const ::viam::common::v1::Geometry& Frame::geometry() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::Geometry& Frame::geometry() const { // @@protoc_insertion_point(field_get:viam.app.v1.Frame.geometry) return _internal_geometry(); } -inline void Frame::unsafe_arena_set_allocated_geometry(::viam::common::v1::Geometry* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.geometry_); +inline void Frame::unsafe_arena_set_allocated_geometry( + ::viam::common::v1::Geometry* geometry) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(geometry_); } - _impl_.geometry_ = reinterpret_cast<::viam::common::v1::Geometry*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000004u; + geometry_ = geometry; + if (geometry) { + } else { - _impl_._has_bits_[0] &= ~0x00000004u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.Frame.geometry) } inline ::viam::common::v1::Geometry* Frame::release_geometry() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000004u; - ::viam::common::v1::Geometry* released = _impl_.geometry_; - _impl_.geometry_ = nullptr; + + ::viam::common::v1::Geometry* temp = geometry_; + geometry_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::common::v1::Geometry* Frame::unsafe_arena_release_geometry() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.Frame.geometry) - - _impl_._has_bits_[0] &= ~0x00000004u; - ::viam::common::v1::Geometry* temp = _impl_.geometry_; - _impl_.geometry_ = nullptr; + + ::viam::common::v1::Geometry* temp = geometry_; + geometry_ = nullptr; return temp; } inline ::viam::common::v1::Geometry* Frame::_internal_mutable_geometry() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - if (_impl_.geometry_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::Geometry>(GetArena()); - _impl_.geometry_ = reinterpret_cast<::viam::common::v1::Geometry*>(p); + + if (geometry_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::Geometry>(GetArenaForAllocation()); + geometry_ = p; } - return _impl_.geometry_; + return geometry_; } -inline ::viam::common::v1::Geometry* Frame::mutable_geometry() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::Geometry* Frame::mutable_geometry() { ::viam::common::v1::Geometry* _msg = _internal_mutable_geometry(); // @@protoc_insertion_point(field_mutable:viam.app.v1.Frame.geometry) return _msg; } -inline void Frame::set_allocated_geometry(::viam::common::v1::Geometry* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Frame::set_allocated_geometry(::viam::common::v1::Geometry* geometry) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.geometry_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(geometry_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (geometry) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(geometry)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + geometry = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, geometry, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000004u; + } else { - _impl_._has_bits_[0] &= ~0x00000004u; + } - - _impl_.geometry_ = reinterpret_cast<::viam::common::v1::Geometry*>(value); + geometry_ = geometry; // @@protoc_insertion_point(field_set_allocated:viam.app.v1.Frame.geometry) } @@ -14674,54 +12939,51 @@ inline void Frame::set_allocated_geometry(::viam::common::v1::Geometry* value) { // string level = 1 [json_name = "level"]; inline void LogConfiguration::clear_level() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.level_.ClearToEmpty(); + level_.ClearToEmpty(); } -inline const std::string& LogConfiguration::level() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& LogConfiguration::level() const { // @@protoc_insertion_point(field_get:viam.app.v1.LogConfiguration.level) return _internal_level(); } -template -inline PROTOBUF_ALWAYS_INLINE void LogConfiguration::set_level(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.level_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void LogConfiguration::set_level(ArgT0&& arg0, ArgT... args) { + + level_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.LogConfiguration.level) } -inline std::string* LogConfiguration::mutable_level() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* LogConfiguration::mutable_level() { std::string* _s = _internal_mutable_level(); // @@protoc_insertion_point(field_mutable:viam.app.v1.LogConfiguration.level) return _s; } inline const std::string& LogConfiguration::_internal_level() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.level_.Get(); + return level_.Get(); } inline void LogConfiguration::_internal_set_level(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.level_.Set(value, GetArena()); + + level_.Set(value, GetArenaForAllocation()); } inline std::string* LogConfiguration::_internal_mutable_level() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.level_.Mutable( GetArena()); + + return level_.Mutable(GetArenaForAllocation()); } inline std::string* LogConfiguration::release_level() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.LogConfiguration.level) - return _impl_.level_.Release(); -} -inline void LogConfiguration::set_allocated_level(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.level_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.level_.IsDefault()) { - _impl_.level_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return level_.Release(); +} +inline void LogConfiguration::set_allocated_level(std::string* level) { + if (level != nullptr) { + + } else { + + } + level_.SetAllocated(level, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (level_.IsDefault()) { + level_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.LogConfiguration.level) } @@ -14731,72 +12993,63 @@ inline void LogConfiguration::set_allocated_level(std::string* value) { // double x = 1 [json_name = "x"]; inline void Translation::clear_x() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.x_ = 0; + x_ = 0; +} +inline double Translation::_internal_x() const { + return x_; } inline double Translation::x() const { // @@protoc_insertion_point(field_get:viam.app.v1.Translation.x) return _internal_x(); } +inline void Translation::_internal_set_x(double value) { + + x_ = value; +} inline void Translation::set_x(double value) { _internal_set_x(value); // @@protoc_insertion_point(field_set:viam.app.v1.Translation.x) } -inline double Translation::_internal_x() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.x_; -} -inline void Translation::_internal_set_x(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.x_ = value; -} // double y = 2 [json_name = "y"]; inline void Translation::clear_y() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.y_ = 0; + y_ = 0; +} +inline double Translation::_internal_y() const { + return y_; } inline double Translation::y() const { // @@protoc_insertion_point(field_get:viam.app.v1.Translation.y) return _internal_y(); } +inline void Translation::_internal_set_y(double value) { + + y_ = value; +} inline void Translation::set_y(double value) { _internal_set_y(value); // @@protoc_insertion_point(field_set:viam.app.v1.Translation.y) } -inline double Translation::_internal_y() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.y_; -} -inline void Translation::_internal_set_y(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.y_ = value; -} // double z = 3 [json_name = "z"]; inline void Translation::clear_z() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.z_ = 0; + z_ = 0; +} +inline double Translation::_internal_z() const { + return z_; } inline double Translation::z() const { // @@protoc_insertion_point(field_get:viam.app.v1.Translation.z) return _internal_z(); } +inline void Translation::_internal_set_z(double value) { + + z_ = value; +} inline void Translation::set_z(double value) { _internal_set_z(value); // @@protoc_insertion_point(field_set:viam.app.v1.Translation.z) } -inline double Translation::_internal_z() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.z_; -} -inline void Translation::_internal_set_z(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.z_ = value; -} // ------------------------------------------------------------------- @@ -14808,95 +13061,83 @@ inline void Translation::_internal_set_z(double value) { // double theta = 1 [json_name = "theta", (.tagger.v1.tags) = "json:\"th\""]; inline void Orientation_OrientationVectorRadians::clear_theta() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.theta_ = 0; + theta_ = 0; +} +inline double Orientation_OrientationVectorRadians::_internal_theta() const { + return theta_; } inline double Orientation_OrientationVectorRadians::theta() const { // @@protoc_insertion_point(field_get:viam.app.v1.Orientation.OrientationVectorRadians.theta) return _internal_theta(); } +inline void Orientation_OrientationVectorRadians::_internal_set_theta(double value) { + + theta_ = value; +} inline void Orientation_OrientationVectorRadians::set_theta(double value) { _internal_set_theta(value); // @@protoc_insertion_point(field_set:viam.app.v1.Orientation.OrientationVectorRadians.theta) } -inline double Orientation_OrientationVectorRadians::_internal_theta() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.theta_; -} -inline void Orientation_OrientationVectorRadians::_internal_set_theta(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.theta_ = value; -} // double x = 2 [json_name = "x"]; inline void Orientation_OrientationVectorRadians::clear_x() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.x_ = 0; + x_ = 0; +} +inline double Orientation_OrientationVectorRadians::_internal_x() const { + return x_; } inline double Orientation_OrientationVectorRadians::x() const { // @@protoc_insertion_point(field_get:viam.app.v1.Orientation.OrientationVectorRadians.x) return _internal_x(); } +inline void Orientation_OrientationVectorRadians::_internal_set_x(double value) { + + x_ = value; +} inline void Orientation_OrientationVectorRadians::set_x(double value) { _internal_set_x(value); // @@protoc_insertion_point(field_set:viam.app.v1.Orientation.OrientationVectorRadians.x) } -inline double Orientation_OrientationVectorRadians::_internal_x() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.x_; -} -inline void Orientation_OrientationVectorRadians::_internal_set_x(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.x_ = value; -} // double y = 3 [json_name = "y"]; inline void Orientation_OrientationVectorRadians::clear_y() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.y_ = 0; + y_ = 0; +} +inline double Orientation_OrientationVectorRadians::_internal_y() const { + return y_; } inline double Orientation_OrientationVectorRadians::y() const { // @@protoc_insertion_point(field_get:viam.app.v1.Orientation.OrientationVectorRadians.y) return _internal_y(); } +inline void Orientation_OrientationVectorRadians::_internal_set_y(double value) { + + y_ = value; +} inline void Orientation_OrientationVectorRadians::set_y(double value) { _internal_set_y(value); // @@protoc_insertion_point(field_set:viam.app.v1.Orientation.OrientationVectorRadians.y) } -inline double Orientation_OrientationVectorRadians::_internal_y() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.y_; -} -inline void Orientation_OrientationVectorRadians::_internal_set_y(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.y_ = value; -} // double z = 4 [json_name = "z"]; inline void Orientation_OrientationVectorRadians::clear_z() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.z_ = 0; + z_ = 0; +} +inline double Orientation_OrientationVectorRadians::_internal_z() const { + return z_; } inline double Orientation_OrientationVectorRadians::z() const { // @@protoc_insertion_point(field_get:viam.app.v1.Orientation.OrientationVectorRadians.z) return _internal_z(); } +inline void Orientation_OrientationVectorRadians::_internal_set_z(double value) { + + z_ = value; +} inline void Orientation_OrientationVectorRadians::set_z(double value) { _internal_set_z(value); // @@protoc_insertion_point(field_set:viam.app.v1.Orientation.OrientationVectorRadians.z) } -inline double Orientation_OrientationVectorRadians::_internal_z() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.z_; -} -inline void Orientation_OrientationVectorRadians::_internal_set_z(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.z_ = value; -} // ------------------------------------------------------------------- @@ -14904,95 +13145,83 @@ inline void Orientation_OrientationVectorRadians::_internal_set_z(double value) // double theta = 1 [json_name = "theta", (.tagger.v1.tags) = "json:\"th\""]; inline void Orientation_OrientationVectorDegrees::clear_theta() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.theta_ = 0; + theta_ = 0; +} +inline double Orientation_OrientationVectorDegrees::_internal_theta() const { + return theta_; } inline double Orientation_OrientationVectorDegrees::theta() const { // @@protoc_insertion_point(field_get:viam.app.v1.Orientation.OrientationVectorDegrees.theta) return _internal_theta(); } +inline void Orientation_OrientationVectorDegrees::_internal_set_theta(double value) { + + theta_ = value; +} inline void Orientation_OrientationVectorDegrees::set_theta(double value) { _internal_set_theta(value); // @@protoc_insertion_point(field_set:viam.app.v1.Orientation.OrientationVectorDegrees.theta) } -inline double Orientation_OrientationVectorDegrees::_internal_theta() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.theta_; -} -inline void Orientation_OrientationVectorDegrees::_internal_set_theta(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.theta_ = value; -} // double x = 2 [json_name = "x"]; inline void Orientation_OrientationVectorDegrees::clear_x() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.x_ = 0; + x_ = 0; +} +inline double Orientation_OrientationVectorDegrees::_internal_x() const { + return x_; } inline double Orientation_OrientationVectorDegrees::x() const { // @@protoc_insertion_point(field_get:viam.app.v1.Orientation.OrientationVectorDegrees.x) return _internal_x(); } +inline void Orientation_OrientationVectorDegrees::_internal_set_x(double value) { + + x_ = value; +} inline void Orientation_OrientationVectorDegrees::set_x(double value) { _internal_set_x(value); // @@protoc_insertion_point(field_set:viam.app.v1.Orientation.OrientationVectorDegrees.x) } -inline double Orientation_OrientationVectorDegrees::_internal_x() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.x_; -} -inline void Orientation_OrientationVectorDegrees::_internal_set_x(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.x_ = value; -} // double y = 3 [json_name = "y"]; inline void Orientation_OrientationVectorDegrees::clear_y() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.y_ = 0; + y_ = 0; +} +inline double Orientation_OrientationVectorDegrees::_internal_y() const { + return y_; } inline double Orientation_OrientationVectorDegrees::y() const { // @@protoc_insertion_point(field_get:viam.app.v1.Orientation.OrientationVectorDegrees.y) return _internal_y(); } +inline void Orientation_OrientationVectorDegrees::_internal_set_y(double value) { + + y_ = value; +} inline void Orientation_OrientationVectorDegrees::set_y(double value) { _internal_set_y(value); // @@protoc_insertion_point(field_set:viam.app.v1.Orientation.OrientationVectorDegrees.y) } -inline double Orientation_OrientationVectorDegrees::_internal_y() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.y_; -} -inline void Orientation_OrientationVectorDegrees::_internal_set_y(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.y_ = value; -} // double z = 4 [json_name = "z"]; inline void Orientation_OrientationVectorDegrees::clear_z() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.z_ = 0; + z_ = 0; +} +inline double Orientation_OrientationVectorDegrees::_internal_z() const { + return z_; } inline double Orientation_OrientationVectorDegrees::z() const { // @@protoc_insertion_point(field_get:viam.app.v1.Orientation.OrientationVectorDegrees.z) return _internal_z(); } +inline void Orientation_OrientationVectorDegrees::_internal_set_z(double value) { + + z_ = value; +} inline void Orientation_OrientationVectorDegrees::set_z(double value) { _internal_set_z(value); // @@protoc_insertion_point(field_set:viam.app.v1.Orientation.OrientationVectorDegrees.z) } -inline double Orientation_OrientationVectorDegrees::_internal_z() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.z_; -} -inline void Orientation_OrientationVectorDegrees::_internal_set_z(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.z_ = value; -} // ------------------------------------------------------------------- @@ -15000,72 +13229,63 @@ inline void Orientation_OrientationVectorDegrees::_internal_set_z(double value) // double roll = 1 [json_name = "roll"]; inline void Orientation_EulerAngles::clear_roll() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.roll_ = 0; + roll_ = 0; +} +inline double Orientation_EulerAngles::_internal_roll() const { + return roll_; } inline double Orientation_EulerAngles::roll() const { // @@protoc_insertion_point(field_get:viam.app.v1.Orientation.EulerAngles.roll) return _internal_roll(); } +inline void Orientation_EulerAngles::_internal_set_roll(double value) { + + roll_ = value; +} inline void Orientation_EulerAngles::set_roll(double value) { _internal_set_roll(value); // @@protoc_insertion_point(field_set:viam.app.v1.Orientation.EulerAngles.roll) } -inline double Orientation_EulerAngles::_internal_roll() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.roll_; -} -inline void Orientation_EulerAngles::_internal_set_roll(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.roll_ = value; -} // double pitch = 2 [json_name = "pitch"]; inline void Orientation_EulerAngles::clear_pitch() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.pitch_ = 0; + pitch_ = 0; +} +inline double Orientation_EulerAngles::_internal_pitch() const { + return pitch_; } inline double Orientation_EulerAngles::pitch() const { // @@protoc_insertion_point(field_get:viam.app.v1.Orientation.EulerAngles.pitch) return _internal_pitch(); } +inline void Orientation_EulerAngles::_internal_set_pitch(double value) { + + pitch_ = value; +} inline void Orientation_EulerAngles::set_pitch(double value) { _internal_set_pitch(value); // @@protoc_insertion_point(field_set:viam.app.v1.Orientation.EulerAngles.pitch) } -inline double Orientation_EulerAngles::_internal_pitch() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.pitch_; -} -inline void Orientation_EulerAngles::_internal_set_pitch(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.pitch_ = value; -} // double yaw = 3 [json_name = "yaw"]; inline void Orientation_EulerAngles::clear_yaw() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.yaw_ = 0; + yaw_ = 0; +} +inline double Orientation_EulerAngles::_internal_yaw() const { + return yaw_; } inline double Orientation_EulerAngles::yaw() const { // @@protoc_insertion_point(field_get:viam.app.v1.Orientation.EulerAngles.yaw) return _internal_yaw(); } +inline void Orientation_EulerAngles::_internal_set_yaw(double value) { + + yaw_ = value; +} inline void Orientation_EulerAngles::set_yaw(double value) { _internal_set_yaw(value); // @@protoc_insertion_point(field_set:viam.app.v1.Orientation.EulerAngles.yaw) } -inline double Orientation_EulerAngles::_internal_yaw() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.yaw_; -} -inline void Orientation_EulerAngles::_internal_set_yaw(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.yaw_ = value; -} // ------------------------------------------------------------------- @@ -15073,95 +13293,83 @@ inline void Orientation_EulerAngles::_internal_set_yaw(double value) { // double theta = 1 [json_name = "theta", (.tagger.v1.tags) = "json:\"th\""]; inline void Orientation_AxisAngles::clear_theta() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.theta_ = 0; + theta_ = 0; +} +inline double Orientation_AxisAngles::_internal_theta() const { + return theta_; } inline double Orientation_AxisAngles::theta() const { // @@protoc_insertion_point(field_get:viam.app.v1.Orientation.AxisAngles.theta) return _internal_theta(); } +inline void Orientation_AxisAngles::_internal_set_theta(double value) { + + theta_ = value; +} inline void Orientation_AxisAngles::set_theta(double value) { _internal_set_theta(value); // @@protoc_insertion_point(field_set:viam.app.v1.Orientation.AxisAngles.theta) } -inline double Orientation_AxisAngles::_internal_theta() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.theta_; -} -inline void Orientation_AxisAngles::_internal_set_theta(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.theta_ = value; -} // double x = 2 [json_name = "x"]; inline void Orientation_AxisAngles::clear_x() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.x_ = 0; + x_ = 0; +} +inline double Orientation_AxisAngles::_internal_x() const { + return x_; } inline double Orientation_AxisAngles::x() const { // @@protoc_insertion_point(field_get:viam.app.v1.Orientation.AxisAngles.x) return _internal_x(); } +inline void Orientation_AxisAngles::_internal_set_x(double value) { + + x_ = value; +} inline void Orientation_AxisAngles::set_x(double value) { _internal_set_x(value); // @@protoc_insertion_point(field_set:viam.app.v1.Orientation.AxisAngles.x) } -inline double Orientation_AxisAngles::_internal_x() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.x_; -} -inline void Orientation_AxisAngles::_internal_set_x(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.x_ = value; -} // double y = 3 [json_name = "y"]; inline void Orientation_AxisAngles::clear_y() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.y_ = 0; + y_ = 0; +} +inline double Orientation_AxisAngles::_internal_y() const { + return y_; } inline double Orientation_AxisAngles::y() const { // @@protoc_insertion_point(field_get:viam.app.v1.Orientation.AxisAngles.y) return _internal_y(); } +inline void Orientation_AxisAngles::_internal_set_y(double value) { + + y_ = value; +} inline void Orientation_AxisAngles::set_y(double value) { _internal_set_y(value); // @@protoc_insertion_point(field_set:viam.app.v1.Orientation.AxisAngles.y) } -inline double Orientation_AxisAngles::_internal_y() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.y_; -} -inline void Orientation_AxisAngles::_internal_set_y(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.y_ = value; -} // double z = 4 [json_name = "z"]; inline void Orientation_AxisAngles::clear_z() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.z_ = 0; + z_ = 0; +} +inline double Orientation_AxisAngles::_internal_z() const { + return z_; } inline double Orientation_AxisAngles::z() const { // @@protoc_insertion_point(field_get:viam.app.v1.Orientation.AxisAngles.z) return _internal_z(); } +inline void Orientation_AxisAngles::_internal_set_z(double value) { + + z_ = value; +} inline void Orientation_AxisAngles::set_z(double value) { _internal_set_z(value); // @@protoc_insertion_point(field_set:viam.app.v1.Orientation.AxisAngles.z) } -inline double Orientation_AxisAngles::_internal_z() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.z_; -} -inline void Orientation_AxisAngles::_internal_set_z(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.z_ = value; -} // ------------------------------------------------------------------- @@ -15169,551 +13377,527 @@ inline void Orientation_AxisAngles::_internal_set_z(double value) { // double w = 1 [json_name = "w"]; inline void Orientation_Quaternion::clear_w() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.w_ = 0; + w_ = 0; +} +inline double Orientation_Quaternion::_internal_w() const { + return w_; } inline double Orientation_Quaternion::w() const { // @@protoc_insertion_point(field_get:viam.app.v1.Orientation.Quaternion.w) return _internal_w(); } +inline void Orientation_Quaternion::_internal_set_w(double value) { + + w_ = value; +} inline void Orientation_Quaternion::set_w(double value) { _internal_set_w(value); // @@protoc_insertion_point(field_set:viam.app.v1.Orientation.Quaternion.w) } -inline double Orientation_Quaternion::_internal_w() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.w_; -} -inline void Orientation_Quaternion::_internal_set_w(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.w_ = value; -} // double x = 2 [json_name = "x"]; inline void Orientation_Quaternion::clear_x() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.x_ = 0; + x_ = 0; +} +inline double Orientation_Quaternion::_internal_x() const { + return x_; } inline double Orientation_Quaternion::x() const { // @@protoc_insertion_point(field_get:viam.app.v1.Orientation.Quaternion.x) return _internal_x(); } +inline void Orientation_Quaternion::_internal_set_x(double value) { + + x_ = value; +} inline void Orientation_Quaternion::set_x(double value) { _internal_set_x(value); // @@protoc_insertion_point(field_set:viam.app.v1.Orientation.Quaternion.x) } -inline double Orientation_Quaternion::_internal_x() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.x_; -} -inline void Orientation_Quaternion::_internal_set_x(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.x_ = value; -} // double y = 3 [json_name = "y"]; inline void Orientation_Quaternion::clear_y() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.y_ = 0; + y_ = 0; +} +inline double Orientation_Quaternion::_internal_y() const { + return y_; } inline double Orientation_Quaternion::y() const { // @@protoc_insertion_point(field_get:viam.app.v1.Orientation.Quaternion.y) return _internal_y(); } +inline void Orientation_Quaternion::_internal_set_y(double value) { + + y_ = value; +} inline void Orientation_Quaternion::set_y(double value) { _internal_set_y(value); // @@protoc_insertion_point(field_set:viam.app.v1.Orientation.Quaternion.y) } -inline double Orientation_Quaternion::_internal_y() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.y_; -} -inline void Orientation_Quaternion::_internal_set_y(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.y_ = value; -} // double z = 4 [json_name = "z"]; inline void Orientation_Quaternion::clear_z() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.z_ = 0; + z_ = 0; +} +inline double Orientation_Quaternion::_internal_z() const { + return z_; } inline double Orientation_Quaternion::z() const { // @@protoc_insertion_point(field_get:viam.app.v1.Orientation.Quaternion.z) return _internal_z(); } +inline void Orientation_Quaternion::_internal_set_z(double value) { + + z_ = value; +} inline void Orientation_Quaternion::set_z(double value) { _internal_set_z(value); // @@protoc_insertion_point(field_set:viam.app.v1.Orientation.Quaternion.z) } -inline double Orientation_Quaternion::_internal_z() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.z_; -} -inline void Orientation_Quaternion::_internal_set_z(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.z_ = value; -} // ------------------------------------------------------------------- // Orientation // .viam.app.v1.Orientation.NoOrientation no_orientation = 1 [json_name = "noOrientation"]; -inline bool Orientation::has_no_orientation() const { - return type_case() == kNoOrientation; -} inline bool Orientation::_internal_has_no_orientation() const { return type_case() == kNoOrientation; } +inline bool Orientation::has_no_orientation() const { + return _internal_has_no_orientation(); +} inline void Orientation::set_has_no_orientation() { - _impl_._oneof_case_[0] = kNoOrientation; + _oneof_case_[0] = kNoOrientation; } inline void Orientation::clear_no_orientation() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (type_case() == kNoOrientation) { - if (GetArena() == nullptr) { - delete _impl_.type_.no_orientation_; + if (_internal_has_no_orientation()) { + if (GetArenaForAllocation() == nullptr) { + delete type_.no_orientation_; } clear_has_type(); } } inline ::viam::app::v1::Orientation_NoOrientation* Orientation::release_no_orientation() { // @@protoc_insertion_point(field_release:viam.app.v1.Orientation.no_orientation) - if (type_case() == kNoOrientation) { + if (_internal_has_no_orientation()) { clear_has_type(); - auto* temp = _impl_.type_.no_orientation_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::viam::app::v1::Orientation_NoOrientation* temp = type_.no_orientation_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.type_.no_orientation_ = nullptr; + type_.no_orientation_ = nullptr; return temp; } else { return nullptr; } } inline const ::viam::app::v1::Orientation_NoOrientation& Orientation::_internal_no_orientation() const { - return type_case() == kNoOrientation ? *_impl_.type_.no_orientation_ : reinterpret_cast<::viam::app::v1::Orientation_NoOrientation&>(::viam::app::v1::_Orientation_NoOrientation_default_instance_); + return _internal_has_no_orientation() + ? *type_.no_orientation_ + : reinterpret_cast< ::viam::app::v1::Orientation_NoOrientation&>(::viam::app::v1::_Orientation_NoOrientation_default_instance_); } -inline const ::viam::app::v1::Orientation_NoOrientation& Orientation::no_orientation() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::app::v1::Orientation_NoOrientation& Orientation::no_orientation() const { // @@protoc_insertion_point(field_get:viam.app.v1.Orientation.no_orientation) return _internal_no_orientation(); } inline ::viam::app::v1::Orientation_NoOrientation* Orientation::unsafe_arena_release_no_orientation() { // @@protoc_insertion_point(field_unsafe_arena_release:viam.app.v1.Orientation.no_orientation) - if (type_case() == kNoOrientation) { + if (_internal_has_no_orientation()) { clear_has_type(); - auto* temp = _impl_.type_.no_orientation_; - _impl_.type_.no_orientation_ = nullptr; + ::viam::app::v1::Orientation_NoOrientation* temp = type_.no_orientation_; + type_.no_orientation_ = nullptr; return temp; } else { return nullptr; } } -inline void Orientation::unsafe_arena_set_allocated_no_orientation(::viam::app::v1::Orientation_NoOrientation* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void Orientation::unsafe_arena_set_allocated_no_orientation(::viam::app::v1::Orientation_NoOrientation* no_orientation) { clear_type(); - if (value) { + if (no_orientation) { set_has_no_orientation(); - _impl_.type_.no_orientation_ = value; + type_.no_orientation_ = no_orientation; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.Orientation.no_orientation) } inline ::viam::app::v1::Orientation_NoOrientation* Orientation::_internal_mutable_no_orientation() { - if (type_case() != kNoOrientation) { + if (!_internal_has_no_orientation()) { clear_type(); set_has_no_orientation(); - _impl_.type_.no_orientation_ = CreateMaybeMessage<::viam::app::v1::Orientation_NoOrientation>(GetArena()); + type_.no_orientation_ = CreateMaybeMessage< ::viam::app::v1::Orientation_NoOrientation >(GetArenaForAllocation()); } - return _impl_.type_.no_orientation_; + return type_.no_orientation_; } -inline ::viam::app::v1::Orientation_NoOrientation* Orientation::mutable_no_orientation() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::app::v1::Orientation_NoOrientation* Orientation::mutable_no_orientation() { ::viam::app::v1::Orientation_NoOrientation* _msg = _internal_mutable_no_orientation(); // @@protoc_insertion_point(field_mutable:viam.app.v1.Orientation.no_orientation) return _msg; } // .viam.app.v1.Orientation.OrientationVectorRadians vector_radians = 2 [json_name = "vectorRadians"]; -inline bool Orientation::has_vector_radians() const { - return type_case() == kVectorRadians; -} inline bool Orientation::_internal_has_vector_radians() const { return type_case() == kVectorRadians; } +inline bool Orientation::has_vector_radians() const { + return _internal_has_vector_radians(); +} inline void Orientation::set_has_vector_radians() { - _impl_._oneof_case_[0] = kVectorRadians; + _oneof_case_[0] = kVectorRadians; } inline void Orientation::clear_vector_radians() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (type_case() == kVectorRadians) { - if (GetArena() == nullptr) { - delete _impl_.type_.vector_radians_; + if (_internal_has_vector_radians()) { + if (GetArenaForAllocation() == nullptr) { + delete type_.vector_radians_; } clear_has_type(); } } inline ::viam::app::v1::Orientation_OrientationVectorRadians* Orientation::release_vector_radians() { // @@protoc_insertion_point(field_release:viam.app.v1.Orientation.vector_radians) - if (type_case() == kVectorRadians) { + if (_internal_has_vector_radians()) { clear_has_type(); - auto* temp = _impl_.type_.vector_radians_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::viam::app::v1::Orientation_OrientationVectorRadians* temp = type_.vector_radians_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.type_.vector_radians_ = nullptr; + type_.vector_radians_ = nullptr; return temp; } else { return nullptr; } } inline const ::viam::app::v1::Orientation_OrientationVectorRadians& Orientation::_internal_vector_radians() const { - return type_case() == kVectorRadians ? *_impl_.type_.vector_radians_ : reinterpret_cast<::viam::app::v1::Orientation_OrientationVectorRadians&>(::viam::app::v1::_Orientation_OrientationVectorRadians_default_instance_); + return _internal_has_vector_radians() + ? *type_.vector_radians_ + : reinterpret_cast< ::viam::app::v1::Orientation_OrientationVectorRadians&>(::viam::app::v1::_Orientation_OrientationVectorRadians_default_instance_); } -inline const ::viam::app::v1::Orientation_OrientationVectorRadians& Orientation::vector_radians() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::app::v1::Orientation_OrientationVectorRadians& Orientation::vector_radians() const { // @@protoc_insertion_point(field_get:viam.app.v1.Orientation.vector_radians) return _internal_vector_radians(); } inline ::viam::app::v1::Orientation_OrientationVectorRadians* Orientation::unsafe_arena_release_vector_radians() { // @@protoc_insertion_point(field_unsafe_arena_release:viam.app.v1.Orientation.vector_radians) - if (type_case() == kVectorRadians) { + if (_internal_has_vector_radians()) { clear_has_type(); - auto* temp = _impl_.type_.vector_radians_; - _impl_.type_.vector_radians_ = nullptr; + ::viam::app::v1::Orientation_OrientationVectorRadians* temp = type_.vector_radians_; + type_.vector_radians_ = nullptr; return temp; } else { return nullptr; } } -inline void Orientation::unsafe_arena_set_allocated_vector_radians(::viam::app::v1::Orientation_OrientationVectorRadians* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void Orientation::unsafe_arena_set_allocated_vector_radians(::viam::app::v1::Orientation_OrientationVectorRadians* vector_radians) { clear_type(); - if (value) { + if (vector_radians) { set_has_vector_radians(); - _impl_.type_.vector_radians_ = value; + type_.vector_radians_ = vector_radians; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.Orientation.vector_radians) } inline ::viam::app::v1::Orientation_OrientationVectorRadians* Orientation::_internal_mutable_vector_radians() { - if (type_case() != kVectorRadians) { + if (!_internal_has_vector_radians()) { clear_type(); set_has_vector_radians(); - _impl_.type_.vector_radians_ = CreateMaybeMessage<::viam::app::v1::Orientation_OrientationVectorRadians>(GetArena()); + type_.vector_radians_ = CreateMaybeMessage< ::viam::app::v1::Orientation_OrientationVectorRadians >(GetArenaForAllocation()); } - return _impl_.type_.vector_radians_; + return type_.vector_radians_; } -inline ::viam::app::v1::Orientation_OrientationVectorRadians* Orientation::mutable_vector_radians() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::app::v1::Orientation_OrientationVectorRadians* Orientation::mutable_vector_radians() { ::viam::app::v1::Orientation_OrientationVectorRadians* _msg = _internal_mutable_vector_radians(); // @@protoc_insertion_point(field_mutable:viam.app.v1.Orientation.vector_radians) return _msg; } // .viam.app.v1.Orientation.OrientationVectorDegrees vector_degrees = 3 [json_name = "vectorDegrees"]; -inline bool Orientation::has_vector_degrees() const { - return type_case() == kVectorDegrees; -} inline bool Orientation::_internal_has_vector_degrees() const { return type_case() == kVectorDegrees; } +inline bool Orientation::has_vector_degrees() const { + return _internal_has_vector_degrees(); +} inline void Orientation::set_has_vector_degrees() { - _impl_._oneof_case_[0] = kVectorDegrees; + _oneof_case_[0] = kVectorDegrees; } inline void Orientation::clear_vector_degrees() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (type_case() == kVectorDegrees) { - if (GetArena() == nullptr) { - delete _impl_.type_.vector_degrees_; + if (_internal_has_vector_degrees()) { + if (GetArenaForAllocation() == nullptr) { + delete type_.vector_degrees_; } clear_has_type(); } } inline ::viam::app::v1::Orientation_OrientationVectorDegrees* Orientation::release_vector_degrees() { // @@protoc_insertion_point(field_release:viam.app.v1.Orientation.vector_degrees) - if (type_case() == kVectorDegrees) { + if (_internal_has_vector_degrees()) { clear_has_type(); - auto* temp = _impl_.type_.vector_degrees_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::viam::app::v1::Orientation_OrientationVectorDegrees* temp = type_.vector_degrees_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.type_.vector_degrees_ = nullptr; + type_.vector_degrees_ = nullptr; return temp; } else { return nullptr; } } inline const ::viam::app::v1::Orientation_OrientationVectorDegrees& Orientation::_internal_vector_degrees() const { - return type_case() == kVectorDegrees ? *_impl_.type_.vector_degrees_ : reinterpret_cast<::viam::app::v1::Orientation_OrientationVectorDegrees&>(::viam::app::v1::_Orientation_OrientationVectorDegrees_default_instance_); + return _internal_has_vector_degrees() + ? *type_.vector_degrees_ + : reinterpret_cast< ::viam::app::v1::Orientation_OrientationVectorDegrees&>(::viam::app::v1::_Orientation_OrientationVectorDegrees_default_instance_); } -inline const ::viam::app::v1::Orientation_OrientationVectorDegrees& Orientation::vector_degrees() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::app::v1::Orientation_OrientationVectorDegrees& Orientation::vector_degrees() const { // @@protoc_insertion_point(field_get:viam.app.v1.Orientation.vector_degrees) return _internal_vector_degrees(); } inline ::viam::app::v1::Orientation_OrientationVectorDegrees* Orientation::unsafe_arena_release_vector_degrees() { // @@protoc_insertion_point(field_unsafe_arena_release:viam.app.v1.Orientation.vector_degrees) - if (type_case() == kVectorDegrees) { + if (_internal_has_vector_degrees()) { clear_has_type(); - auto* temp = _impl_.type_.vector_degrees_; - _impl_.type_.vector_degrees_ = nullptr; + ::viam::app::v1::Orientation_OrientationVectorDegrees* temp = type_.vector_degrees_; + type_.vector_degrees_ = nullptr; return temp; } else { return nullptr; } } -inline void Orientation::unsafe_arena_set_allocated_vector_degrees(::viam::app::v1::Orientation_OrientationVectorDegrees* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void Orientation::unsafe_arena_set_allocated_vector_degrees(::viam::app::v1::Orientation_OrientationVectorDegrees* vector_degrees) { clear_type(); - if (value) { + if (vector_degrees) { set_has_vector_degrees(); - _impl_.type_.vector_degrees_ = value; + type_.vector_degrees_ = vector_degrees; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.Orientation.vector_degrees) } inline ::viam::app::v1::Orientation_OrientationVectorDegrees* Orientation::_internal_mutable_vector_degrees() { - if (type_case() != kVectorDegrees) { + if (!_internal_has_vector_degrees()) { clear_type(); set_has_vector_degrees(); - _impl_.type_.vector_degrees_ = CreateMaybeMessage<::viam::app::v1::Orientation_OrientationVectorDegrees>(GetArena()); + type_.vector_degrees_ = CreateMaybeMessage< ::viam::app::v1::Orientation_OrientationVectorDegrees >(GetArenaForAllocation()); } - return _impl_.type_.vector_degrees_; + return type_.vector_degrees_; } -inline ::viam::app::v1::Orientation_OrientationVectorDegrees* Orientation::mutable_vector_degrees() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::app::v1::Orientation_OrientationVectorDegrees* Orientation::mutable_vector_degrees() { ::viam::app::v1::Orientation_OrientationVectorDegrees* _msg = _internal_mutable_vector_degrees(); // @@protoc_insertion_point(field_mutable:viam.app.v1.Orientation.vector_degrees) return _msg; } // .viam.app.v1.Orientation.EulerAngles euler_angles = 4 [json_name = "eulerAngles"]; -inline bool Orientation::has_euler_angles() const { - return type_case() == kEulerAngles; -} inline bool Orientation::_internal_has_euler_angles() const { return type_case() == kEulerAngles; } +inline bool Orientation::has_euler_angles() const { + return _internal_has_euler_angles(); +} inline void Orientation::set_has_euler_angles() { - _impl_._oneof_case_[0] = kEulerAngles; + _oneof_case_[0] = kEulerAngles; } inline void Orientation::clear_euler_angles() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (type_case() == kEulerAngles) { - if (GetArena() == nullptr) { - delete _impl_.type_.euler_angles_; + if (_internal_has_euler_angles()) { + if (GetArenaForAllocation() == nullptr) { + delete type_.euler_angles_; } clear_has_type(); } } inline ::viam::app::v1::Orientation_EulerAngles* Orientation::release_euler_angles() { // @@protoc_insertion_point(field_release:viam.app.v1.Orientation.euler_angles) - if (type_case() == kEulerAngles) { + if (_internal_has_euler_angles()) { clear_has_type(); - auto* temp = _impl_.type_.euler_angles_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::viam::app::v1::Orientation_EulerAngles* temp = type_.euler_angles_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.type_.euler_angles_ = nullptr; + type_.euler_angles_ = nullptr; return temp; } else { return nullptr; } } inline const ::viam::app::v1::Orientation_EulerAngles& Orientation::_internal_euler_angles() const { - return type_case() == kEulerAngles ? *_impl_.type_.euler_angles_ : reinterpret_cast<::viam::app::v1::Orientation_EulerAngles&>(::viam::app::v1::_Orientation_EulerAngles_default_instance_); + return _internal_has_euler_angles() + ? *type_.euler_angles_ + : reinterpret_cast< ::viam::app::v1::Orientation_EulerAngles&>(::viam::app::v1::_Orientation_EulerAngles_default_instance_); } -inline const ::viam::app::v1::Orientation_EulerAngles& Orientation::euler_angles() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::app::v1::Orientation_EulerAngles& Orientation::euler_angles() const { // @@protoc_insertion_point(field_get:viam.app.v1.Orientation.euler_angles) return _internal_euler_angles(); } inline ::viam::app::v1::Orientation_EulerAngles* Orientation::unsafe_arena_release_euler_angles() { // @@protoc_insertion_point(field_unsafe_arena_release:viam.app.v1.Orientation.euler_angles) - if (type_case() == kEulerAngles) { + if (_internal_has_euler_angles()) { clear_has_type(); - auto* temp = _impl_.type_.euler_angles_; - _impl_.type_.euler_angles_ = nullptr; + ::viam::app::v1::Orientation_EulerAngles* temp = type_.euler_angles_; + type_.euler_angles_ = nullptr; return temp; } else { return nullptr; } } -inline void Orientation::unsafe_arena_set_allocated_euler_angles(::viam::app::v1::Orientation_EulerAngles* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void Orientation::unsafe_arena_set_allocated_euler_angles(::viam::app::v1::Orientation_EulerAngles* euler_angles) { clear_type(); - if (value) { + if (euler_angles) { set_has_euler_angles(); - _impl_.type_.euler_angles_ = value; + type_.euler_angles_ = euler_angles; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.Orientation.euler_angles) } inline ::viam::app::v1::Orientation_EulerAngles* Orientation::_internal_mutable_euler_angles() { - if (type_case() != kEulerAngles) { + if (!_internal_has_euler_angles()) { clear_type(); set_has_euler_angles(); - _impl_.type_.euler_angles_ = CreateMaybeMessage<::viam::app::v1::Orientation_EulerAngles>(GetArena()); + type_.euler_angles_ = CreateMaybeMessage< ::viam::app::v1::Orientation_EulerAngles >(GetArenaForAllocation()); } - return _impl_.type_.euler_angles_; + return type_.euler_angles_; } -inline ::viam::app::v1::Orientation_EulerAngles* Orientation::mutable_euler_angles() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::app::v1::Orientation_EulerAngles* Orientation::mutable_euler_angles() { ::viam::app::v1::Orientation_EulerAngles* _msg = _internal_mutable_euler_angles(); // @@protoc_insertion_point(field_mutable:viam.app.v1.Orientation.euler_angles) return _msg; } // .viam.app.v1.Orientation.AxisAngles axis_angles = 5 [json_name = "axisAngles"]; -inline bool Orientation::has_axis_angles() const { - return type_case() == kAxisAngles; -} inline bool Orientation::_internal_has_axis_angles() const { return type_case() == kAxisAngles; } +inline bool Orientation::has_axis_angles() const { + return _internal_has_axis_angles(); +} inline void Orientation::set_has_axis_angles() { - _impl_._oneof_case_[0] = kAxisAngles; + _oneof_case_[0] = kAxisAngles; } inline void Orientation::clear_axis_angles() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (type_case() == kAxisAngles) { - if (GetArena() == nullptr) { - delete _impl_.type_.axis_angles_; + if (_internal_has_axis_angles()) { + if (GetArenaForAllocation() == nullptr) { + delete type_.axis_angles_; } clear_has_type(); } } inline ::viam::app::v1::Orientation_AxisAngles* Orientation::release_axis_angles() { // @@protoc_insertion_point(field_release:viam.app.v1.Orientation.axis_angles) - if (type_case() == kAxisAngles) { + if (_internal_has_axis_angles()) { clear_has_type(); - auto* temp = _impl_.type_.axis_angles_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::viam::app::v1::Orientation_AxisAngles* temp = type_.axis_angles_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.type_.axis_angles_ = nullptr; + type_.axis_angles_ = nullptr; return temp; } else { return nullptr; } } inline const ::viam::app::v1::Orientation_AxisAngles& Orientation::_internal_axis_angles() const { - return type_case() == kAxisAngles ? *_impl_.type_.axis_angles_ : reinterpret_cast<::viam::app::v1::Orientation_AxisAngles&>(::viam::app::v1::_Orientation_AxisAngles_default_instance_); + return _internal_has_axis_angles() + ? *type_.axis_angles_ + : reinterpret_cast< ::viam::app::v1::Orientation_AxisAngles&>(::viam::app::v1::_Orientation_AxisAngles_default_instance_); } -inline const ::viam::app::v1::Orientation_AxisAngles& Orientation::axis_angles() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::app::v1::Orientation_AxisAngles& Orientation::axis_angles() const { // @@protoc_insertion_point(field_get:viam.app.v1.Orientation.axis_angles) return _internal_axis_angles(); } inline ::viam::app::v1::Orientation_AxisAngles* Orientation::unsafe_arena_release_axis_angles() { // @@protoc_insertion_point(field_unsafe_arena_release:viam.app.v1.Orientation.axis_angles) - if (type_case() == kAxisAngles) { + if (_internal_has_axis_angles()) { clear_has_type(); - auto* temp = _impl_.type_.axis_angles_; - _impl_.type_.axis_angles_ = nullptr; + ::viam::app::v1::Orientation_AxisAngles* temp = type_.axis_angles_; + type_.axis_angles_ = nullptr; return temp; } else { return nullptr; } } -inline void Orientation::unsafe_arena_set_allocated_axis_angles(::viam::app::v1::Orientation_AxisAngles* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void Orientation::unsafe_arena_set_allocated_axis_angles(::viam::app::v1::Orientation_AxisAngles* axis_angles) { clear_type(); - if (value) { + if (axis_angles) { set_has_axis_angles(); - _impl_.type_.axis_angles_ = value; + type_.axis_angles_ = axis_angles; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.Orientation.axis_angles) } inline ::viam::app::v1::Orientation_AxisAngles* Orientation::_internal_mutable_axis_angles() { - if (type_case() != kAxisAngles) { + if (!_internal_has_axis_angles()) { clear_type(); set_has_axis_angles(); - _impl_.type_.axis_angles_ = CreateMaybeMessage<::viam::app::v1::Orientation_AxisAngles>(GetArena()); + type_.axis_angles_ = CreateMaybeMessage< ::viam::app::v1::Orientation_AxisAngles >(GetArenaForAllocation()); } - return _impl_.type_.axis_angles_; + return type_.axis_angles_; } -inline ::viam::app::v1::Orientation_AxisAngles* Orientation::mutable_axis_angles() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::app::v1::Orientation_AxisAngles* Orientation::mutable_axis_angles() { ::viam::app::v1::Orientation_AxisAngles* _msg = _internal_mutable_axis_angles(); // @@protoc_insertion_point(field_mutable:viam.app.v1.Orientation.axis_angles) return _msg; } // .viam.app.v1.Orientation.Quaternion quaternion = 6 [json_name = "quaternion"]; -inline bool Orientation::has_quaternion() const { - return type_case() == kQuaternion; -} inline bool Orientation::_internal_has_quaternion() const { return type_case() == kQuaternion; } +inline bool Orientation::has_quaternion() const { + return _internal_has_quaternion(); +} inline void Orientation::set_has_quaternion() { - _impl_._oneof_case_[0] = kQuaternion; + _oneof_case_[0] = kQuaternion; } inline void Orientation::clear_quaternion() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (type_case() == kQuaternion) { - if (GetArena() == nullptr) { - delete _impl_.type_.quaternion_; + if (_internal_has_quaternion()) { + if (GetArenaForAllocation() == nullptr) { + delete type_.quaternion_; } clear_has_type(); } } inline ::viam::app::v1::Orientation_Quaternion* Orientation::release_quaternion() { // @@protoc_insertion_point(field_release:viam.app.v1.Orientation.quaternion) - if (type_case() == kQuaternion) { + if (_internal_has_quaternion()) { clear_has_type(); - auto* temp = _impl_.type_.quaternion_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::viam::app::v1::Orientation_Quaternion* temp = type_.quaternion_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.type_.quaternion_ = nullptr; + type_.quaternion_ = nullptr; return temp; } else { return nullptr; } } inline const ::viam::app::v1::Orientation_Quaternion& Orientation::_internal_quaternion() const { - return type_case() == kQuaternion ? *_impl_.type_.quaternion_ : reinterpret_cast<::viam::app::v1::Orientation_Quaternion&>(::viam::app::v1::_Orientation_Quaternion_default_instance_); + return _internal_has_quaternion() + ? *type_.quaternion_ + : reinterpret_cast< ::viam::app::v1::Orientation_Quaternion&>(::viam::app::v1::_Orientation_Quaternion_default_instance_); } -inline const ::viam::app::v1::Orientation_Quaternion& Orientation::quaternion() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::app::v1::Orientation_Quaternion& Orientation::quaternion() const { // @@protoc_insertion_point(field_get:viam.app.v1.Orientation.quaternion) return _internal_quaternion(); } inline ::viam::app::v1::Orientation_Quaternion* Orientation::unsafe_arena_release_quaternion() { // @@protoc_insertion_point(field_unsafe_arena_release:viam.app.v1.Orientation.quaternion) - if (type_case() == kQuaternion) { + if (_internal_has_quaternion()) { clear_has_type(); - auto* temp = _impl_.type_.quaternion_; - _impl_.type_.quaternion_ = nullptr; + ::viam::app::v1::Orientation_Quaternion* temp = type_.quaternion_; + type_.quaternion_ = nullptr; return temp; } else { return nullptr; } } -inline void Orientation::unsafe_arena_set_allocated_quaternion(::viam::app::v1::Orientation_Quaternion* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void Orientation::unsafe_arena_set_allocated_quaternion(::viam::app::v1::Orientation_Quaternion* quaternion) { clear_type(); - if (value) { + if (quaternion) { set_has_quaternion(); - _impl_.type_.quaternion_ = value; + type_.quaternion_ = quaternion; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.Orientation.quaternion) } inline ::viam::app::v1::Orientation_Quaternion* Orientation::_internal_mutable_quaternion() { - if (type_case() != kQuaternion) { + if (!_internal_has_quaternion()) { clear_type(); set_has_quaternion(); - _impl_.type_.quaternion_ = CreateMaybeMessage<::viam::app::v1::Orientation_Quaternion>(GetArena()); + type_.quaternion_ = CreateMaybeMessage< ::viam::app::v1::Orientation_Quaternion >(GetArenaForAllocation()); } - return _impl_.type_.quaternion_; + return type_.quaternion_; } -inline ::viam::app::v1::Orientation_Quaternion* Orientation::mutable_quaternion() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::app::v1::Orientation_Quaternion* Orientation::mutable_quaternion() { ::viam::app::v1::Orientation_Quaternion* _msg = _internal_mutable_quaternion(); // @@protoc_insertion_point(field_mutable:viam.app.v1.Orientation.quaternion) return _msg; @@ -15723,10 +13907,10 @@ inline bool Orientation::has_type() const { return type_case() != TYPE_NOT_SET; } inline void Orientation::clear_has_type() { - _impl_._oneof_case_[0] = TYPE_NOT_SET; + _oneof_case_[0] = TYPE_NOT_SET; } inline Orientation::TypeCase Orientation::type_case() const { - return Orientation::TypeCase(_impl_._oneof_case_[0]); + return Orientation::TypeCase(_oneof_case_[0]); } // ------------------------------------------------------------------- @@ -15734,659 +13918,611 @@ inline Orientation::TypeCase Orientation::type_case() const { // string name = 1 [json_name = "name"]; inline void RemoteConfig::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& RemoteConfig::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& RemoteConfig::name() const { // @@protoc_insertion_point(field_get:viam.app.v1.RemoteConfig.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void RemoteConfig::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void RemoteConfig::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.RemoteConfig.name) } -inline std::string* RemoteConfig::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* RemoteConfig::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.app.v1.RemoteConfig.name) return _s; } inline const std::string& RemoteConfig::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void RemoteConfig::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* RemoteConfig::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* RemoteConfig::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.RemoteConfig.name) - return _impl_.name_.Release(); -} -inline void RemoteConfig::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void RemoteConfig::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.app.v1.RemoteConfig.name) } // string address = 2 [json_name = "address"]; inline void RemoteConfig::clear_address() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.address_.ClearToEmpty(); + address_.ClearToEmpty(); } -inline const std::string& RemoteConfig::address() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& RemoteConfig::address() const { // @@protoc_insertion_point(field_get:viam.app.v1.RemoteConfig.address) return _internal_address(); } -template -inline PROTOBUF_ALWAYS_INLINE void RemoteConfig::set_address(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.address_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void RemoteConfig::set_address(ArgT0&& arg0, ArgT... args) { + + address_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.RemoteConfig.address) } -inline std::string* RemoteConfig::mutable_address() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* RemoteConfig::mutable_address() { std::string* _s = _internal_mutable_address(); // @@protoc_insertion_point(field_mutable:viam.app.v1.RemoteConfig.address) return _s; } inline const std::string& RemoteConfig::_internal_address() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.address_.Get(); + return address_.Get(); } inline void RemoteConfig::_internal_set_address(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.address_.Set(value, GetArena()); + + address_.Set(value, GetArenaForAllocation()); } inline std::string* RemoteConfig::_internal_mutable_address() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.address_.Mutable( GetArena()); + + return address_.Mutable(GetArenaForAllocation()); } inline std::string* RemoteConfig::release_address() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.RemoteConfig.address) - return _impl_.address_.Release(); -} -inline void RemoteConfig::set_allocated_address(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.address_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.address_.IsDefault()) { - _impl_.address_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return address_.Release(); +} +inline void RemoteConfig::set_allocated_address(std::string* address) { + if (address != nullptr) { + + } else { + + } + address_.SetAllocated(address, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (address_.IsDefault()) { + address_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RemoteConfig.address) } // .viam.app.v1.Frame frame = 3 [json_name = "frame"]; +inline bool RemoteConfig::_internal_has_frame() const { + return this != internal_default_instance() && frame_ != nullptr; +} inline bool RemoteConfig::has_frame() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.frame_ != nullptr); - return value; + return _internal_has_frame(); } inline void RemoteConfig::clear_frame() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.frame_ != nullptr) _impl_.frame_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && frame_ != nullptr) { + delete frame_; + } + frame_ = nullptr; } inline const ::viam::app::v1::Frame& RemoteConfig::_internal_frame() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::Frame* p = _impl_.frame_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_Frame_default_instance_); + const ::viam::app::v1::Frame* p = frame_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_Frame_default_instance_); } -inline const ::viam::app::v1::Frame& RemoteConfig::frame() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::app::v1::Frame& RemoteConfig::frame() const { // @@protoc_insertion_point(field_get:viam.app.v1.RemoteConfig.frame) return _internal_frame(); } -inline void RemoteConfig::unsafe_arena_set_allocated_frame(::viam::app::v1::Frame* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.frame_); +inline void RemoteConfig::unsafe_arena_set_allocated_frame( + ::viam::app::v1::Frame* frame) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(frame_); } - _impl_.frame_ = reinterpret_cast<::viam::app::v1::Frame*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + frame_ = frame; + if (frame) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.RemoteConfig.frame) } inline ::viam::app::v1::Frame* RemoteConfig::release_frame() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::Frame* released = _impl_.frame_; - _impl_.frame_ = nullptr; + + ::viam::app::v1::Frame* temp = frame_; + frame_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::app::v1::Frame* RemoteConfig::unsafe_arena_release_frame() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.RemoteConfig.frame) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::Frame* temp = _impl_.frame_; - _impl_.frame_ = nullptr; + + ::viam::app::v1::Frame* temp = frame_; + frame_ = nullptr; return temp; } inline ::viam::app::v1::Frame* RemoteConfig::_internal_mutable_frame() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.frame_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::Frame>(GetArena()); - _impl_.frame_ = reinterpret_cast<::viam::app::v1::Frame*>(p); + + if (frame_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::Frame>(GetArenaForAllocation()); + frame_ = p; } - return _impl_.frame_; + return frame_; } -inline ::viam::app::v1::Frame* RemoteConfig::mutable_frame() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::app::v1::Frame* RemoteConfig::mutable_frame() { ::viam::app::v1::Frame* _msg = _internal_mutable_frame(); // @@protoc_insertion_point(field_mutable:viam.app.v1.RemoteConfig.frame) return _msg; } -inline void RemoteConfig::set_allocated_frame(::viam::app::v1::Frame* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void RemoteConfig::set_allocated_frame(::viam::app::v1::Frame* frame) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::Frame*>(_impl_.frame_); + delete frame_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::Frame*>(value)->GetArena(); + if (frame) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(frame); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + frame = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, frame, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.frame_ = reinterpret_cast<::viam::app::v1::Frame*>(value); + frame_ = frame; // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RemoteConfig.frame) } // .viam.app.v1.RemoteAuth auth = 4 [json_name = "auth"]; +inline bool RemoteConfig::_internal_has_auth() const { + return this != internal_default_instance() && auth_ != nullptr; +} inline bool RemoteConfig::has_auth() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.auth_ != nullptr); - return value; + return _internal_has_auth(); } inline void RemoteConfig::clear_auth() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.auth_ != nullptr) _impl_.auth_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && auth_ != nullptr) { + delete auth_; + } + auth_ = nullptr; } inline const ::viam::app::v1::RemoteAuth& RemoteConfig::_internal_auth() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::RemoteAuth* p = _impl_.auth_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_RemoteAuth_default_instance_); + const ::viam::app::v1::RemoteAuth* p = auth_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_RemoteAuth_default_instance_); } -inline const ::viam::app::v1::RemoteAuth& RemoteConfig::auth() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::app::v1::RemoteAuth& RemoteConfig::auth() const { // @@protoc_insertion_point(field_get:viam.app.v1.RemoteConfig.auth) return _internal_auth(); } -inline void RemoteConfig::unsafe_arena_set_allocated_auth(::viam::app::v1::RemoteAuth* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.auth_); +inline void RemoteConfig::unsafe_arena_set_allocated_auth( + ::viam::app::v1::RemoteAuth* auth) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(auth_); } - _impl_.auth_ = reinterpret_cast<::viam::app::v1::RemoteAuth*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + auth_ = auth; + if (auth) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.RemoteConfig.auth) } inline ::viam::app::v1::RemoteAuth* RemoteConfig::release_auth() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::viam::app::v1::RemoteAuth* released = _impl_.auth_; - _impl_.auth_ = nullptr; + + ::viam::app::v1::RemoteAuth* temp = auth_; + auth_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::app::v1::RemoteAuth* RemoteConfig::unsafe_arena_release_auth() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.RemoteConfig.auth) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::viam::app::v1::RemoteAuth* temp = _impl_.auth_; - _impl_.auth_ = nullptr; + + ::viam::app::v1::RemoteAuth* temp = auth_; + auth_ = nullptr; return temp; } inline ::viam::app::v1::RemoteAuth* RemoteConfig::_internal_mutable_auth() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.auth_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::RemoteAuth>(GetArena()); - _impl_.auth_ = reinterpret_cast<::viam::app::v1::RemoteAuth*>(p); + + if (auth_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::RemoteAuth>(GetArenaForAllocation()); + auth_ = p; } - return _impl_.auth_; + return auth_; } -inline ::viam::app::v1::RemoteAuth* RemoteConfig::mutable_auth() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::app::v1::RemoteAuth* RemoteConfig::mutable_auth() { ::viam::app::v1::RemoteAuth* _msg = _internal_mutable_auth(); // @@protoc_insertion_point(field_mutable:viam.app.v1.RemoteConfig.auth) return _msg; } -inline void RemoteConfig::set_allocated_auth(::viam::app::v1::RemoteAuth* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void RemoteConfig::set_allocated_auth(::viam::app::v1::RemoteAuth* auth) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::RemoteAuth*>(_impl_.auth_); + delete auth_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::RemoteAuth*>(value)->GetArena(); + if (auth) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(auth); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + auth = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, auth, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.auth_ = reinterpret_cast<::viam::app::v1::RemoteAuth*>(value); + auth_ = auth; // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RemoteConfig.auth) } // string managed_by = 5 [json_name = "managedBy"]; inline void RemoteConfig::clear_managed_by() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.managed_by_.ClearToEmpty(); + managed_by_.ClearToEmpty(); } -inline const std::string& RemoteConfig::managed_by() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& RemoteConfig::managed_by() const { // @@protoc_insertion_point(field_get:viam.app.v1.RemoteConfig.managed_by) return _internal_managed_by(); } -template -inline PROTOBUF_ALWAYS_INLINE void RemoteConfig::set_managed_by(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.managed_by_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void RemoteConfig::set_managed_by(ArgT0&& arg0, ArgT... args) { + + managed_by_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.RemoteConfig.managed_by) } -inline std::string* RemoteConfig::mutable_managed_by() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* RemoteConfig::mutable_managed_by() { std::string* _s = _internal_mutable_managed_by(); // @@protoc_insertion_point(field_mutable:viam.app.v1.RemoteConfig.managed_by) return _s; } inline const std::string& RemoteConfig::_internal_managed_by() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.managed_by_.Get(); + return managed_by_.Get(); } inline void RemoteConfig::_internal_set_managed_by(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.managed_by_.Set(value, GetArena()); + + managed_by_.Set(value, GetArenaForAllocation()); } inline std::string* RemoteConfig::_internal_mutable_managed_by() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.managed_by_.Mutable( GetArena()); + + return managed_by_.Mutable(GetArenaForAllocation()); } inline std::string* RemoteConfig::release_managed_by() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.RemoteConfig.managed_by) - return _impl_.managed_by_.Release(); -} -inline void RemoteConfig::set_allocated_managed_by(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.managed_by_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.managed_by_.IsDefault()) { - _impl_.managed_by_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return managed_by_.Release(); +} +inline void RemoteConfig::set_allocated_managed_by(std::string* managed_by) { + if (managed_by != nullptr) { + + } else { + + } + managed_by_.SetAllocated(managed_by, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (managed_by_.IsDefault()) { + managed_by_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RemoteConfig.managed_by) } // bool insecure = 6 [json_name = "insecure"]; inline void RemoteConfig::clear_insecure() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.insecure_ = false; + insecure_ = false; +} +inline bool RemoteConfig::_internal_insecure() const { + return insecure_; } inline bool RemoteConfig::insecure() const { // @@protoc_insertion_point(field_get:viam.app.v1.RemoteConfig.insecure) return _internal_insecure(); } +inline void RemoteConfig::_internal_set_insecure(bool value) { + + insecure_ = value; +} inline void RemoteConfig::set_insecure(bool value) { _internal_set_insecure(value); // @@protoc_insertion_point(field_set:viam.app.v1.RemoteConfig.insecure) } -inline bool RemoteConfig::_internal_insecure() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.insecure_; -} -inline void RemoteConfig::_internal_set_insecure(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.insecure_ = value; -} // .google.protobuf.Duration connection_check_interval = 7 [json_name = "connectionCheckInterval"]; +inline bool RemoteConfig::_internal_has_connection_check_interval() const { + return this != internal_default_instance() && connection_check_interval_ != nullptr; +} inline bool RemoteConfig::has_connection_check_interval() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || _impl_.connection_check_interval_ != nullptr); - return value; + return _internal_has_connection_check_interval(); } -inline const ::google::protobuf::Duration& RemoteConfig::_internal_connection_check_interval() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Duration* p = _impl_.connection_check_interval_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Duration_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Duration& RemoteConfig::_internal_connection_check_interval() const { + const ::PROTOBUF_NAMESPACE_ID::Duration* p = connection_check_interval_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Duration_default_instance_); } -inline const ::google::protobuf::Duration& RemoteConfig::connection_check_interval() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Duration& RemoteConfig::connection_check_interval() const { // @@protoc_insertion_point(field_get:viam.app.v1.RemoteConfig.connection_check_interval) return _internal_connection_check_interval(); } -inline void RemoteConfig::unsafe_arena_set_allocated_connection_check_interval(::google::protobuf::Duration* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.connection_check_interval_); +inline void RemoteConfig::unsafe_arena_set_allocated_connection_check_interval( + ::PROTOBUF_NAMESPACE_ID::Duration* connection_check_interval) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(connection_check_interval_); } - _impl_.connection_check_interval_ = reinterpret_cast<::google::protobuf::Duration*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000004u; + connection_check_interval_ = connection_check_interval; + if (connection_check_interval) { + } else { - _impl_._has_bits_[0] &= ~0x00000004u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.RemoteConfig.connection_check_interval) } -inline ::google::protobuf::Duration* RemoteConfig::release_connection_check_interval() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000004u; - ::google::protobuf::Duration* released = _impl_.connection_check_interval_; - _impl_.connection_check_interval_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Duration* RemoteConfig::release_connection_check_interval() { + + ::PROTOBUF_NAMESPACE_ID::Duration* temp = connection_check_interval_; + connection_check_interval_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Duration* RemoteConfig::unsafe_arena_release_connection_check_interval() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Duration* RemoteConfig::unsafe_arena_release_connection_check_interval() { // @@protoc_insertion_point(field_release:viam.app.v1.RemoteConfig.connection_check_interval) - - _impl_._has_bits_[0] &= ~0x00000004u; - ::google::protobuf::Duration* temp = _impl_.connection_check_interval_; - _impl_.connection_check_interval_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Duration* temp = connection_check_interval_; + connection_check_interval_ = nullptr; return temp; } -inline ::google::protobuf::Duration* RemoteConfig::_internal_mutable_connection_check_interval() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - if (_impl_.connection_check_interval_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArena()); - _impl_.connection_check_interval_ = reinterpret_cast<::google::protobuf::Duration*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Duration* RemoteConfig::_internal_mutable_connection_check_interval() { + + if (connection_check_interval_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Duration>(GetArenaForAllocation()); + connection_check_interval_ = p; } - return _impl_.connection_check_interval_; + return connection_check_interval_; } -inline ::google::protobuf::Duration* RemoteConfig::mutable_connection_check_interval() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Duration* _msg = _internal_mutable_connection_check_interval(); +inline ::PROTOBUF_NAMESPACE_ID::Duration* RemoteConfig::mutable_connection_check_interval() { + ::PROTOBUF_NAMESPACE_ID::Duration* _msg = _internal_mutable_connection_check_interval(); // @@protoc_insertion_point(field_mutable:viam.app.v1.RemoteConfig.connection_check_interval) return _msg; } -inline void RemoteConfig::set_allocated_connection_check_interval(::google::protobuf::Duration* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void RemoteConfig::set_allocated_connection_check_interval(::PROTOBUF_NAMESPACE_ID::Duration* connection_check_interval) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.connection_check_interval_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(connection_check_interval_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (connection_check_interval) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(connection_check_interval)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + connection_check_interval = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, connection_check_interval, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000004u; + } else { - _impl_._has_bits_[0] &= ~0x00000004u; + } - - _impl_.connection_check_interval_ = reinterpret_cast<::google::protobuf::Duration*>(value); + connection_check_interval_ = connection_check_interval; // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RemoteConfig.connection_check_interval) } // .google.protobuf.Duration reconnect_interval = 8 [json_name = "reconnectInterval"]; +inline bool RemoteConfig::_internal_has_reconnect_interval() const { + return this != internal_default_instance() && reconnect_interval_ != nullptr; +} inline bool RemoteConfig::has_reconnect_interval() const { - bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; - PROTOBUF_ASSUME(!value || _impl_.reconnect_interval_ != nullptr); - return value; + return _internal_has_reconnect_interval(); } -inline const ::google::protobuf::Duration& RemoteConfig::_internal_reconnect_interval() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Duration* p = _impl_.reconnect_interval_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Duration_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Duration& RemoteConfig::_internal_reconnect_interval() const { + const ::PROTOBUF_NAMESPACE_ID::Duration* p = reconnect_interval_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Duration_default_instance_); } -inline const ::google::protobuf::Duration& RemoteConfig::reconnect_interval() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Duration& RemoteConfig::reconnect_interval() const { // @@protoc_insertion_point(field_get:viam.app.v1.RemoteConfig.reconnect_interval) return _internal_reconnect_interval(); } -inline void RemoteConfig::unsafe_arena_set_allocated_reconnect_interval(::google::protobuf::Duration* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.reconnect_interval_); +inline void RemoteConfig::unsafe_arena_set_allocated_reconnect_interval( + ::PROTOBUF_NAMESPACE_ID::Duration* reconnect_interval) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(reconnect_interval_); } - _impl_.reconnect_interval_ = reinterpret_cast<::google::protobuf::Duration*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000008u; + reconnect_interval_ = reconnect_interval; + if (reconnect_interval) { + } else { - _impl_._has_bits_[0] &= ~0x00000008u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.RemoteConfig.reconnect_interval) } -inline ::google::protobuf::Duration* RemoteConfig::release_reconnect_interval() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000008u; - ::google::protobuf::Duration* released = _impl_.reconnect_interval_; - _impl_.reconnect_interval_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Duration* RemoteConfig::release_reconnect_interval() { + + ::PROTOBUF_NAMESPACE_ID::Duration* temp = reconnect_interval_; + reconnect_interval_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Duration* RemoteConfig::unsafe_arena_release_reconnect_interval() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Duration* RemoteConfig::unsafe_arena_release_reconnect_interval() { // @@protoc_insertion_point(field_release:viam.app.v1.RemoteConfig.reconnect_interval) - - _impl_._has_bits_[0] &= ~0x00000008u; - ::google::protobuf::Duration* temp = _impl_.reconnect_interval_; - _impl_.reconnect_interval_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Duration* temp = reconnect_interval_; + reconnect_interval_ = nullptr; return temp; } -inline ::google::protobuf::Duration* RemoteConfig::_internal_mutable_reconnect_interval() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000008u; - if (_impl_.reconnect_interval_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArena()); - _impl_.reconnect_interval_ = reinterpret_cast<::google::protobuf::Duration*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Duration* RemoteConfig::_internal_mutable_reconnect_interval() { + + if (reconnect_interval_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Duration>(GetArenaForAllocation()); + reconnect_interval_ = p; } - return _impl_.reconnect_interval_; + return reconnect_interval_; } -inline ::google::protobuf::Duration* RemoteConfig::mutable_reconnect_interval() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Duration* _msg = _internal_mutable_reconnect_interval(); +inline ::PROTOBUF_NAMESPACE_ID::Duration* RemoteConfig::mutable_reconnect_interval() { + ::PROTOBUF_NAMESPACE_ID::Duration* _msg = _internal_mutable_reconnect_interval(); // @@protoc_insertion_point(field_mutable:viam.app.v1.RemoteConfig.reconnect_interval) return _msg; } -inline void RemoteConfig::set_allocated_reconnect_interval(::google::protobuf::Duration* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void RemoteConfig::set_allocated_reconnect_interval(::PROTOBUF_NAMESPACE_ID::Duration* reconnect_interval) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.reconnect_interval_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(reconnect_interval_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (reconnect_interval) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(reconnect_interval)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + reconnect_interval = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, reconnect_interval, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000008u; + } else { - _impl_._has_bits_[0] &= ~0x00000008u; + } - - _impl_.reconnect_interval_ = reinterpret_cast<::google::protobuf::Duration*>(value); + reconnect_interval_ = reconnect_interval; // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RemoteConfig.reconnect_interval) } // repeated .viam.app.v1.ResourceLevelServiceConfig service_configs = 9 [json_name = "serviceConfigs", (.tagger.v1.tags) = "json:\"service_config\""]; inline int RemoteConfig::_internal_service_configs_size() const { - return _internal_service_configs().size(); + return service_configs_.size(); } inline int RemoteConfig::service_configs_size() const { return _internal_service_configs_size(); } inline void RemoteConfig::clear_service_configs() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.service_configs_.Clear(); + service_configs_.Clear(); } -inline ::viam::app::v1::ResourceLevelServiceConfig* RemoteConfig::mutable_service_configs(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::app::v1::ResourceLevelServiceConfig* RemoteConfig::mutable_service_configs(int index) { // @@protoc_insertion_point(field_mutable:viam.app.v1.RemoteConfig.service_configs) - return _internal_mutable_service_configs()->Mutable(index); + return service_configs_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::ResourceLevelServiceConfig>* RemoteConfig::mutable_service_configs() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ResourceLevelServiceConfig >* +RemoteConfig::mutable_service_configs() { // @@protoc_insertion_point(field_mutable_list:viam.app.v1.RemoteConfig.service_configs) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_service_configs(); + return &service_configs_; } -inline const ::viam::app::v1::ResourceLevelServiceConfig& RemoteConfig::service_configs(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::app::v1::ResourceLevelServiceConfig& RemoteConfig::_internal_service_configs(int index) const { + return service_configs_.Get(index); +} +inline const ::viam::app::v1::ResourceLevelServiceConfig& RemoteConfig::service_configs(int index) const { // @@protoc_insertion_point(field_get:viam.app.v1.RemoteConfig.service_configs) - return _internal_service_configs().Get(index); + return _internal_service_configs(index); +} +inline ::viam::app::v1::ResourceLevelServiceConfig* RemoteConfig::_internal_add_service_configs() { + return service_configs_.Add(); } -inline ::viam::app::v1::ResourceLevelServiceConfig* RemoteConfig::add_service_configs() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::app::v1::ResourceLevelServiceConfig* _add = _internal_mutable_service_configs()->Add(); +inline ::viam::app::v1::ResourceLevelServiceConfig* RemoteConfig::add_service_configs() { + ::viam::app::v1::ResourceLevelServiceConfig* _add = _internal_add_service_configs(); // @@protoc_insertion_point(field_add:viam.app.v1.RemoteConfig.service_configs) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::ResourceLevelServiceConfig>& RemoteConfig::service_configs() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ResourceLevelServiceConfig >& +RemoteConfig::service_configs() const { // @@protoc_insertion_point(field_list:viam.app.v1.RemoteConfig.service_configs) - return _internal_service_configs(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::app::v1::ResourceLevelServiceConfig>& -RemoteConfig::_internal_service_configs() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.service_configs_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::app::v1::ResourceLevelServiceConfig>* -RemoteConfig::_internal_mutable_service_configs() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.service_configs_; + return service_configs_; } // string secret = 10 [json_name = "secret"]; inline void RemoteConfig::clear_secret() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.secret_.ClearToEmpty(); + secret_.ClearToEmpty(); } -inline const std::string& RemoteConfig::secret() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& RemoteConfig::secret() const { // @@protoc_insertion_point(field_get:viam.app.v1.RemoteConfig.secret) return _internal_secret(); } -template -inline PROTOBUF_ALWAYS_INLINE void RemoteConfig::set_secret(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.secret_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void RemoteConfig::set_secret(ArgT0&& arg0, ArgT... args) { + + secret_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.RemoteConfig.secret) } -inline std::string* RemoteConfig::mutable_secret() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* RemoteConfig::mutable_secret() { std::string* _s = _internal_mutable_secret(); // @@protoc_insertion_point(field_mutable:viam.app.v1.RemoteConfig.secret) return _s; } inline const std::string& RemoteConfig::_internal_secret() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.secret_.Get(); + return secret_.Get(); } inline void RemoteConfig::_internal_set_secret(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.secret_.Set(value, GetArena()); + + secret_.Set(value, GetArenaForAllocation()); } inline std::string* RemoteConfig::_internal_mutable_secret() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.secret_.Mutable( GetArena()); + + return secret_.Mutable(GetArenaForAllocation()); } inline std::string* RemoteConfig::release_secret() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.RemoteConfig.secret) - return _impl_.secret_.Release(); -} -inline void RemoteConfig::set_allocated_secret(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.secret_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.secret_.IsDefault()) { - _impl_.secret_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return secret_.Release(); +} +inline void RemoteConfig::set_allocated_secret(std::string* secret) { + if (secret != nullptr) { + + } else { + + } + secret_.SetAllocated(secret, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (secret_.IsDefault()) { + secret_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RemoteConfig.secret) } @@ -16396,77 +14532,71 @@ inline void RemoteConfig::set_allocated_secret(std::string* value) { // .viam.app.v1.CredentialsType type = 1 [json_name = "type"]; inline void RemoteAuth_Credentials::clear_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_ = 0; + type_ = 0; +} +inline ::viam::app::v1::CredentialsType RemoteAuth_Credentials::_internal_type() const { + return static_cast< ::viam::app::v1::CredentialsType >(type_); } inline ::viam::app::v1::CredentialsType RemoteAuth_Credentials::type() const { // @@protoc_insertion_point(field_get:viam.app.v1.RemoteAuth.Credentials.type) return _internal_type(); } +inline void RemoteAuth_Credentials::_internal_set_type(::viam::app::v1::CredentialsType value) { + + type_ = value; +} inline void RemoteAuth_Credentials::set_type(::viam::app::v1::CredentialsType value) { _internal_set_type(value); // @@protoc_insertion_point(field_set:viam.app.v1.RemoteAuth.Credentials.type) } -inline ::viam::app::v1::CredentialsType RemoteAuth_Credentials::_internal_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::viam::app::v1::CredentialsType>(_impl_.type_); -} -inline void RemoteAuth_Credentials::_internal_set_type(::viam::app::v1::CredentialsType value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.type_ = value; -} // string payload = 2 [json_name = "payload"]; inline void RemoteAuth_Credentials::clear_payload() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.payload_.ClearToEmpty(); + payload_.ClearToEmpty(); } -inline const std::string& RemoteAuth_Credentials::payload() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& RemoteAuth_Credentials::payload() const { // @@protoc_insertion_point(field_get:viam.app.v1.RemoteAuth.Credentials.payload) return _internal_payload(); } -template -inline PROTOBUF_ALWAYS_INLINE void RemoteAuth_Credentials::set_payload(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.payload_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void RemoteAuth_Credentials::set_payload(ArgT0&& arg0, ArgT... args) { + + payload_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.RemoteAuth.Credentials.payload) } -inline std::string* RemoteAuth_Credentials::mutable_payload() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* RemoteAuth_Credentials::mutable_payload() { std::string* _s = _internal_mutable_payload(); // @@protoc_insertion_point(field_mutable:viam.app.v1.RemoteAuth.Credentials.payload) return _s; } inline const std::string& RemoteAuth_Credentials::_internal_payload() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.payload_.Get(); + return payload_.Get(); } inline void RemoteAuth_Credentials::_internal_set_payload(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.payload_.Set(value, GetArena()); + + payload_.Set(value, GetArenaForAllocation()); } inline std::string* RemoteAuth_Credentials::_internal_mutable_payload() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.payload_.Mutable( GetArena()); + + return payload_.Mutable(GetArenaForAllocation()); } inline std::string* RemoteAuth_Credentials::release_payload() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.RemoteAuth.Credentials.payload) - return _impl_.payload_.Release(); -} -inline void RemoteAuth_Credentials::set_allocated_payload(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.payload_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.payload_.IsDefault()) { - _impl_.payload_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return payload_.Release(); +} +inline void RemoteAuth_Credentials::set_allocated_payload(std::string* payload) { + if (payload != nullptr) { + + } else { + + } + payload_.SetAllocated(payload, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (payload_.IsDefault()) { + payload_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RemoteAuth.Credentials.payload) } @@ -16475,151 +14605,142 @@ inline void RemoteAuth_Credentials::set_allocated_payload(std::string* value) { // RemoteAuth // .viam.app.v1.RemoteAuth.Credentials credentials = 1 [json_name = "credentials"]; +inline bool RemoteAuth::_internal_has_credentials() const { + return this != internal_default_instance() && credentials_ != nullptr; +} inline bool RemoteAuth::has_credentials() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.credentials_ != nullptr); - return value; + return _internal_has_credentials(); } inline void RemoteAuth::clear_credentials() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.credentials_ != nullptr) _impl_.credentials_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && credentials_ != nullptr) { + delete credentials_; + } + credentials_ = nullptr; } inline const ::viam::app::v1::RemoteAuth_Credentials& RemoteAuth::_internal_credentials() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::RemoteAuth_Credentials* p = _impl_.credentials_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_RemoteAuth_Credentials_default_instance_); + const ::viam::app::v1::RemoteAuth_Credentials* p = credentials_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_RemoteAuth_Credentials_default_instance_); } -inline const ::viam::app::v1::RemoteAuth_Credentials& RemoteAuth::credentials() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::app::v1::RemoteAuth_Credentials& RemoteAuth::credentials() const { // @@protoc_insertion_point(field_get:viam.app.v1.RemoteAuth.credentials) return _internal_credentials(); } -inline void RemoteAuth::unsafe_arena_set_allocated_credentials(::viam::app::v1::RemoteAuth_Credentials* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.credentials_); +inline void RemoteAuth::unsafe_arena_set_allocated_credentials( + ::viam::app::v1::RemoteAuth_Credentials* credentials) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(credentials_); } - _impl_.credentials_ = reinterpret_cast<::viam::app::v1::RemoteAuth_Credentials*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + credentials_ = credentials; + if (credentials) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.RemoteAuth.credentials) } inline ::viam::app::v1::RemoteAuth_Credentials* RemoteAuth::release_credentials() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::RemoteAuth_Credentials* released = _impl_.credentials_; - _impl_.credentials_ = nullptr; + + ::viam::app::v1::RemoteAuth_Credentials* temp = credentials_; + credentials_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::app::v1::RemoteAuth_Credentials* RemoteAuth::unsafe_arena_release_credentials() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.RemoteAuth.credentials) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::RemoteAuth_Credentials* temp = _impl_.credentials_; - _impl_.credentials_ = nullptr; + + ::viam::app::v1::RemoteAuth_Credentials* temp = credentials_; + credentials_ = nullptr; return temp; } inline ::viam::app::v1::RemoteAuth_Credentials* RemoteAuth::_internal_mutable_credentials() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.credentials_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::RemoteAuth_Credentials>(GetArena()); - _impl_.credentials_ = reinterpret_cast<::viam::app::v1::RemoteAuth_Credentials*>(p); + + if (credentials_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::RemoteAuth_Credentials>(GetArenaForAllocation()); + credentials_ = p; } - return _impl_.credentials_; + return credentials_; } -inline ::viam::app::v1::RemoteAuth_Credentials* RemoteAuth::mutable_credentials() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::app::v1::RemoteAuth_Credentials* RemoteAuth::mutable_credentials() { ::viam::app::v1::RemoteAuth_Credentials* _msg = _internal_mutable_credentials(); // @@protoc_insertion_point(field_mutable:viam.app.v1.RemoteAuth.credentials) return _msg; } -inline void RemoteAuth::set_allocated_credentials(::viam::app::v1::RemoteAuth_Credentials* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void RemoteAuth::set_allocated_credentials(::viam::app::v1::RemoteAuth_Credentials* credentials) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::RemoteAuth_Credentials*>(_impl_.credentials_); + delete credentials_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::RemoteAuth_Credentials*>(value)->GetArena(); + if (credentials) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(credentials); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + credentials = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, credentials, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.credentials_ = reinterpret_cast<::viam::app::v1::RemoteAuth_Credentials*>(value); + credentials_ = credentials; // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RemoteAuth.credentials) } // string entity = 2 [json_name = "entity"]; inline void RemoteAuth::clear_entity() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.entity_.ClearToEmpty(); + entity_.ClearToEmpty(); } -inline const std::string& RemoteAuth::entity() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& RemoteAuth::entity() const { // @@protoc_insertion_point(field_get:viam.app.v1.RemoteAuth.entity) return _internal_entity(); } -template -inline PROTOBUF_ALWAYS_INLINE void RemoteAuth::set_entity(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.entity_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void RemoteAuth::set_entity(ArgT0&& arg0, ArgT... args) { + + entity_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.RemoteAuth.entity) } -inline std::string* RemoteAuth::mutable_entity() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* RemoteAuth::mutable_entity() { std::string* _s = _internal_mutable_entity(); // @@protoc_insertion_point(field_mutable:viam.app.v1.RemoteAuth.entity) return _s; } inline const std::string& RemoteAuth::_internal_entity() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.entity_.Get(); + return entity_.Get(); } inline void RemoteAuth::_internal_set_entity(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.entity_.Set(value, GetArena()); + + entity_.Set(value, GetArenaForAllocation()); } inline std::string* RemoteAuth::_internal_mutable_entity() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.entity_.Mutable( GetArena()); + + return entity_.Mutable(GetArenaForAllocation()); } inline std::string* RemoteAuth::release_entity() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.RemoteAuth.entity) - return _impl_.entity_.Release(); -} -inline void RemoteAuth::set_allocated_entity(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.entity_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.entity_.IsDefault()) { - _impl_.entity_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return entity_.Release(); +} +inline void RemoteAuth::set_allocated_entity(std::string* entity) { + if (entity != nullptr) { + + } else { + + } + entity_.SetAllocated(entity, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (entity_.IsDefault()) { + entity_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.RemoteAuth.entity) } @@ -16629,487 +14750,420 @@ inline void RemoteAuth::set_allocated_entity(std::string* value) { // string host = 1 [json_name = "host"]; inline void AgentInfo::clear_host() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.host_.ClearToEmpty(); + host_.ClearToEmpty(); } -inline const std::string& AgentInfo::host() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& AgentInfo::host() const { // @@protoc_insertion_point(field_get:viam.app.v1.AgentInfo.host) return _internal_host(); } -template -inline PROTOBUF_ALWAYS_INLINE void AgentInfo::set_host(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.host_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void AgentInfo::set_host(ArgT0&& arg0, ArgT... args) { + + host_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.AgentInfo.host) } -inline std::string* AgentInfo::mutable_host() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* AgentInfo::mutable_host() { std::string* _s = _internal_mutable_host(); // @@protoc_insertion_point(field_mutable:viam.app.v1.AgentInfo.host) return _s; } inline const std::string& AgentInfo::_internal_host() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.host_.Get(); + return host_.Get(); } inline void AgentInfo::_internal_set_host(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.host_.Set(value, GetArena()); + + host_.Set(value, GetArenaForAllocation()); } inline std::string* AgentInfo::_internal_mutable_host() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.host_.Mutable( GetArena()); + + return host_.Mutable(GetArenaForAllocation()); } inline std::string* AgentInfo::release_host() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.AgentInfo.host) - return _impl_.host_.Release(); -} -inline void AgentInfo::set_allocated_host(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.host_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.host_.IsDefault()) { - _impl_.host_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return host_.Release(); +} +inline void AgentInfo::set_allocated_host(std::string* host) { + if (host != nullptr) { + + } else { + + } + host_.SetAllocated(host, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (host_.IsDefault()) { + host_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.AgentInfo.host) } // string os = 2 [json_name = "os"]; inline void AgentInfo::clear_os() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.os_.ClearToEmpty(); + os_.ClearToEmpty(); } -inline const std::string& AgentInfo::os() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& AgentInfo::os() const { // @@protoc_insertion_point(field_get:viam.app.v1.AgentInfo.os) return _internal_os(); } -template -inline PROTOBUF_ALWAYS_INLINE void AgentInfo::set_os(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.os_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void AgentInfo::set_os(ArgT0&& arg0, ArgT... args) { + + os_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.AgentInfo.os) } -inline std::string* AgentInfo::mutable_os() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* AgentInfo::mutable_os() { std::string* _s = _internal_mutable_os(); // @@protoc_insertion_point(field_mutable:viam.app.v1.AgentInfo.os) return _s; } inline const std::string& AgentInfo::_internal_os() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.os_.Get(); + return os_.Get(); } inline void AgentInfo::_internal_set_os(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.os_.Set(value, GetArena()); + + os_.Set(value, GetArenaForAllocation()); } inline std::string* AgentInfo::_internal_mutable_os() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.os_.Mutable( GetArena()); + + return os_.Mutable(GetArenaForAllocation()); } inline std::string* AgentInfo::release_os() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.AgentInfo.os) - return _impl_.os_.Release(); -} -inline void AgentInfo::set_allocated_os(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.os_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.os_.IsDefault()) { - _impl_.os_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return os_.Release(); +} +inline void AgentInfo::set_allocated_os(std::string* os) { + if (os != nullptr) { + + } else { + + } + os_.SetAllocated(os, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (os_.IsDefault()) { + os_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.AgentInfo.os) } // repeated string ips = 3 [json_name = "ips"]; inline int AgentInfo::_internal_ips_size() const { - return _internal_ips().size(); + return ips_.size(); } inline int AgentInfo::ips_size() const { return _internal_ips_size(); } inline void AgentInfo::clear_ips() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.ips_.Clear(); + ips_.Clear(); } -inline std::string* AgentInfo::add_ips() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_ips()->Add(); +inline std::string* AgentInfo::add_ips() { + std::string* _s = _internal_add_ips(); // @@protoc_insertion_point(field_add_mutable:viam.app.v1.AgentInfo.ips) return _s; } -inline const std::string& AgentInfo::ips(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& AgentInfo::_internal_ips(int index) const { + return ips_.Get(index); +} +inline const std::string& AgentInfo::ips(int index) const { // @@protoc_insertion_point(field_get:viam.app.v1.AgentInfo.ips) - return _internal_ips().Get(index); + return _internal_ips(index); } -inline std::string* AgentInfo::mutable_ips(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* AgentInfo::mutable_ips(int index) { // @@protoc_insertion_point(field_mutable:viam.app.v1.AgentInfo.ips) - return _internal_mutable_ips()->Mutable(index); + return ips_.Mutable(index); } inline void AgentInfo::set_ips(int index, const std::string& value) { - _internal_mutable_ips()->Mutable(index)->assign(value); + ips_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set:viam.app.v1.AgentInfo.ips) } inline void AgentInfo::set_ips(int index, std::string&& value) { - _internal_mutable_ips()->Mutable(index)->assign(std::move(value)); + ips_.Mutable(index)->assign(std::move(value)); // @@protoc_insertion_point(field_set:viam.app.v1.AgentInfo.ips) } inline void AgentInfo::set_ips(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_ips()->Mutable(index)->assign(value); + GOOGLE_DCHECK(value != nullptr); + ips_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:viam.app.v1.AgentInfo.ips) } -inline void AgentInfo::set_ips(int index, const char* value, - std::size_t size) { - _internal_mutable_ips()->Mutable(index)->assign( - reinterpret_cast(value), size); +inline void AgentInfo::set_ips(int index, const char* value, size_t size) { + ips_.Mutable(index)->assign( + reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:viam.app.v1.AgentInfo.ips) } -inline void AgentInfo::set_ips(int index, absl::string_view value) { - _internal_mutable_ips()->Mutable(index)->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_set_string_piece:viam.app.v1.AgentInfo.ips) +inline std::string* AgentInfo::_internal_add_ips() { + return ips_.Add(); } inline void AgentInfo::add_ips(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_ips()->Add()->assign(value); + ips_.Add()->assign(value); // @@protoc_insertion_point(field_add:viam.app.v1.AgentInfo.ips) } inline void AgentInfo::add_ips(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_ips()->Add(std::move(value)); + ips_.Add(std::move(value)); // @@protoc_insertion_point(field_add:viam.app.v1.AgentInfo.ips) } inline void AgentInfo::add_ips(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_ips()->Add()->assign(value); + GOOGLE_DCHECK(value != nullptr); + ips_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:viam.app.v1.AgentInfo.ips) } -inline void AgentInfo::add_ips(const char* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_ips()->Add()->assign( - reinterpret_cast(value), size); +inline void AgentInfo::add_ips(const char* value, size_t size) { + ips_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:viam.app.v1.AgentInfo.ips) } -inline void AgentInfo::add_ips(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_ips()->Add()->assign(value.data(), value.size()); - // @@protoc_insertion_point(field_add_string_piece:viam.app.v1.AgentInfo.ips) -} -inline const ::google::protobuf::RepeatedPtrField& -AgentInfo::ips() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +AgentInfo::ips() const { // @@protoc_insertion_point(field_list:viam.app.v1.AgentInfo.ips) - return _internal_ips(); + return ips_; } -inline ::google::protobuf::RepeatedPtrField* -AgentInfo::mutable_ips() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +AgentInfo::mutable_ips() { // @@protoc_insertion_point(field_mutable_list:viam.app.v1.AgentInfo.ips) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_ips(); -} -inline const ::google::protobuf::RepeatedPtrField& -AgentInfo::_internal_ips() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.ips_; -} -inline ::google::protobuf::RepeatedPtrField* -AgentInfo::_internal_mutable_ips() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.ips_; + return &ips_; } // string version = 4 [json_name = "version"]; inline void AgentInfo::clear_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.version_.ClearToEmpty(); + version_.ClearToEmpty(); } -inline const std::string& AgentInfo::version() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& AgentInfo::version() const { // @@protoc_insertion_point(field_get:viam.app.v1.AgentInfo.version) return _internal_version(); } -template -inline PROTOBUF_ALWAYS_INLINE void AgentInfo::set_version(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.version_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void AgentInfo::set_version(ArgT0&& arg0, ArgT... args) { + + version_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.AgentInfo.version) } -inline std::string* AgentInfo::mutable_version() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* AgentInfo::mutable_version() { std::string* _s = _internal_mutable_version(); // @@protoc_insertion_point(field_mutable:viam.app.v1.AgentInfo.version) return _s; } inline const std::string& AgentInfo::_internal_version() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.version_.Get(); + return version_.Get(); } inline void AgentInfo::_internal_set_version(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.version_.Set(value, GetArena()); + + version_.Set(value, GetArenaForAllocation()); } inline std::string* AgentInfo::_internal_mutable_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.version_.Mutable( GetArena()); + + return version_.Mutable(GetArenaForAllocation()); } inline std::string* AgentInfo::release_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.AgentInfo.version) - return _impl_.version_.Release(); -} -inline void AgentInfo::set_allocated_version(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.version_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.version_.IsDefault()) { - _impl_.version_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return version_.Release(); +} +inline void AgentInfo::set_allocated_version(std::string* version) { + if (version != nullptr) { + + } else { + + } + version_.SetAllocated(version, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (version_.IsDefault()) { + version_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.AgentInfo.version) } // string git_revision = 5 [json_name = "gitRevision"]; inline void AgentInfo::clear_git_revision() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.git_revision_.ClearToEmpty(); + git_revision_.ClearToEmpty(); } -inline const std::string& AgentInfo::git_revision() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& AgentInfo::git_revision() const { // @@protoc_insertion_point(field_get:viam.app.v1.AgentInfo.git_revision) return _internal_git_revision(); } -template -inline PROTOBUF_ALWAYS_INLINE void AgentInfo::set_git_revision(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.git_revision_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void AgentInfo::set_git_revision(ArgT0&& arg0, ArgT... args) { + + git_revision_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.AgentInfo.git_revision) } -inline std::string* AgentInfo::mutable_git_revision() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* AgentInfo::mutable_git_revision() { std::string* _s = _internal_mutable_git_revision(); // @@protoc_insertion_point(field_mutable:viam.app.v1.AgentInfo.git_revision) return _s; } inline const std::string& AgentInfo::_internal_git_revision() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.git_revision_.Get(); + return git_revision_.Get(); } inline void AgentInfo::_internal_set_git_revision(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.git_revision_.Set(value, GetArena()); + + git_revision_.Set(value, GetArenaForAllocation()); } inline std::string* AgentInfo::_internal_mutable_git_revision() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.git_revision_.Mutable( GetArena()); + + return git_revision_.Mutable(GetArenaForAllocation()); } inline std::string* AgentInfo::release_git_revision() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.AgentInfo.git_revision) - return _impl_.git_revision_.Release(); -} -inline void AgentInfo::set_allocated_git_revision(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.git_revision_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.git_revision_.IsDefault()) { - _impl_.git_revision_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return git_revision_.Release(); +} +inline void AgentInfo::set_allocated_git_revision(std::string* git_revision) { + if (git_revision != nullptr) { + + } else { + + } + git_revision_.SetAllocated(git_revision, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (git_revision_.IsDefault()) { + git_revision_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.AgentInfo.git_revision) } // optional string platform = 6 [json_name = "platform"]; -inline bool AgentInfo::has_platform() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; +inline bool AgentInfo::_internal_has_platform() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; return value; } +inline bool AgentInfo::has_platform() const { + return _internal_has_platform(); +} inline void AgentInfo::clear_platform() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.platform_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000001u; + platform_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; } -inline const std::string& AgentInfo::platform() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& AgentInfo::platform() const { // @@protoc_insertion_point(field_get:viam.app.v1.AgentInfo.platform) return _internal_platform(); } -template -inline PROTOBUF_ALWAYS_INLINE void AgentInfo::set_platform(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.platform_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void AgentInfo::set_platform(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + platform_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.AgentInfo.platform) } -inline std::string* AgentInfo::mutable_platform() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* AgentInfo::mutable_platform() { std::string* _s = _internal_mutable_platform(); // @@protoc_insertion_point(field_mutable:viam.app.v1.AgentInfo.platform) return _s; } inline const std::string& AgentInfo::_internal_platform() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.platform_.Get(); + return platform_.Get(); } inline void AgentInfo::_internal_set_platform(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.platform_.Set(value, GetArena()); + _has_bits_[0] |= 0x00000001u; + platform_.Set(value, GetArenaForAllocation()); } inline std::string* AgentInfo::_internal_mutable_platform() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.platform_.Mutable( GetArena()); + _has_bits_[0] |= 0x00000001u; + return platform_.Mutable(GetArenaForAllocation()); } inline std::string* AgentInfo::release_platform() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.AgentInfo.platform) - if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + if (!_internal_has_platform()) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000001u; - auto* released = _impl_.platform_.Release(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.platform_.Set("", GetArena()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return released; -} -inline void AgentInfo::set_allocated_platform(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + _has_bits_[0] &= ~0x00000001u; + auto* p = platform_.Release(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (platform_.IsDefault()) { + platform_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; +} +inline void AgentInfo::set_allocated_platform(std::string* platform) { + if (platform != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - _impl_.platform_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.platform_.IsDefault()) { - _impl_.platform_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _has_bits_[0] &= ~0x00000001u; + } + platform_.SetAllocated(platform, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (platform_.IsDefault()) { + platform_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.AgentInfo.platform) } // repeated string platform_tags = 7 [json_name = "platformTags"]; inline int AgentInfo::_internal_platform_tags_size() const { - return _internal_platform_tags().size(); + return platform_tags_.size(); } inline int AgentInfo::platform_tags_size() const { return _internal_platform_tags_size(); } inline void AgentInfo::clear_platform_tags() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.platform_tags_.Clear(); + platform_tags_.Clear(); } -inline std::string* AgentInfo::add_platform_tags() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_platform_tags()->Add(); +inline std::string* AgentInfo::add_platform_tags() { + std::string* _s = _internal_add_platform_tags(); // @@protoc_insertion_point(field_add_mutable:viam.app.v1.AgentInfo.platform_tags) return _s; } -inline const std::string& AgentInfo::platform_tags(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& AgentInfo::_internal_platform_tags(int index) const { + return platform_tags_.Get(index); +} +inline const std::string& AgentInfo::platform_tags(int index) const { // @@protoc_insertion_point(field_get:viam.app.v1.AgentInfo.platform_tags) - return _internal_platform_tags().Get(index); + return _internal_platform_tags(index); } -inline std::string* AgentInfo::mutable_platform_tags(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* AgentInfo::mutable_platform_tags(int index) { // @@protoc_insertion_point(field_mutable:viam.app.v1.AgentInfo.platform_tags) - return _internal_mutable_platform_tags()->Mutable(index); + return platform_tags_.Mutable(index); } inline void AgentInfo::set_platform_tags(int index, const std::string& value) { - _internal_mutable_platform_tags()->Mutable(index)->assign(value); + platform_tags_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set:viam.app.v1.AgentInfo.platform_tags) } inline void AgentInfo::set_platform_tags(int index, std::string&& value) { - _internal_mutable_platform_tags()->Mutable(index)->assign(std::move(value)); + platform_tags_.Mutable(index)->assign(std::move(value)); // @@protoc_insertion_point(field_set:viam.app.v1.AgentInfo.platform_tags) } inline void AgentInfo::set_platform_tags(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_platform_tags()->Mutable(index)->assign(value); + GOOGLE_DCHECK(value != nullptr); + platform_tags_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:viam.app.v1.AgentInfo.platform_tags) } -inline void AgentInfo::set_platform_tags(int index, const char* value, - std::size_t size) { - _internal_mutable_platform_tags()->Mutable(index)->assign( - reinterpret_cast(value), size); +inline void AgentInfo::set_platform_tags(int index, const char* value, size_t size) { + platform_tags_.Mutable(index)->assign( + reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:viam.app.v1.AgentInfo.platform_tags) } -inline void AgentInfo::set_platform_tags(int index, absl::string_view value) { - _internal_mutable_platform_tags()->Mutable(index)->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_set_string_piece:viam.app.v1.AgentInfo.platform_tags) +inline std::string* AgentInfo::_internal_add_platform_tags() { + return platform_tags_.Add(); } inline void AgentInfo::add_platform_tags(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_platform_tags()->Add()->assign(value); + platform_tags_.Add()->assign(value); // @@protoc_insertion_point(field_add:viam.app.v1.AgentInfo.platform_tags) } inline void AgentInfo::add_platform_tags(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_platform_tags()->Add(std::move(value)); + platform_tags_.Add(std::move(value)); // @@protoc_insertion_point(field_add:viam.app.v1.AgentInfo.platform_tags) } inline void AgentInfo::add_platform_tags(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_platform_tags()->Add()->assign(value); + GOOGLE_DCHECK(value != nullptr); + platform_tags_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:viam.app.v1.AgentInfo.platform_tags) } -inline void AgentInfo::add_platform_tags(const char* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_platform_tags()->Add()->assign( - reinterpret_cast(value), size); +inline void AgentInfo::add_platform_tags(const char* value, size_t size) { + platform_tags_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:viam.app.v1.AgentInfo.platform_tags) } -inline void AgentInfo::add_platform_tags(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_platform_tags()->Add()->assign(value.data(), value.size()); - // @@protoc_insertion_point(field_add_string_piece:viam.app.v1.AgentInfo.platform_tags) -} -inline const ::google::protobuf::RepeatedPtrField& -AgentInfo::platform_tags() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +AgentInfo::platform_tags() const { // @@protoc_insertion_point(field_list:viam.app.v1.AgentInfo.platform_tags) - return _internal_platform_tags(); + return platform_tags_; } -inline ::google::protobuf::RepeatedPtrField* -AgentInfo::mutable_platform_tags() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +AgentInfo::mutable_platform_tags() { // @@protoc_insertion_point(field_mutable_list:viam.app.v1.AgentInfo.platform_tags) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_platform_tags(); -} -inline const ::google::protobuf::RepeatedPtrField& -AgentInfo::_internal_platform_tags() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.platform_tags_; -} -inline ::google::protobuf::RepeatedPtrField* -AgentInfo::_internal_mutable_platform_tags() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.platform_tags_; + return &platform_tags_; } // ------------------------------------------------------------------- @@ -17118,150 +15172,141 @@ AgentInfo::_internal_mutable_platform_tags() { // string id = 1 [json_name = "id"]; inline void ConfigRequest::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); + id_.ClearToEmpty(); } -inline const std::string& ConfigRequest::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ConfigRequest::id() const { // @@protoc_insertion_point(field_get:viam.app.v1.ConfigRequest.id) return _internal_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void ConfigRequest::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ConfigRequest::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.ConfigRequest.id) } -inline std::string* ConfigRequest::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ConfigRequest::mutable_id() { std::string* _s = _internal_mutable_id(); // @@protoc_insertion_point(field_mutable:viam.app.v1.ConfigRequest.id) return _s; } inline const std::string& ConfigRequest::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); + return id_.Get(); } inline void ConfigRequest::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); + + id_.Set(value, GetArenaForAllocation()); } inline std::string* ConfigRequest::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); + + return id_.Mutable(GetArenaForAllocation()); } inline std::string* ConfigRequest::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.ConfigRequest.id) - return _impl_.id_.Release(); -} -inline void ConfigRequest::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return id_.Release(); +} +inline void ConfigRequest::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ConfigRequest.id) } // optional .viam.app.v1.AgentInfo agent_info = 2 [json_name = "agentInfo"]; -inline bool ConfigRequest::has_agent_info() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.agent_info_ != nullptr); +inline bool ConfigRequest::_internal_has_agent_info() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || agent_info_ != nullptr); return value; } +inline bool ConfigRequest::has_agent_info() const { + return _internal_has_agent_info(); +} inline void ConfigRequest::clear_agent_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.agent_info_ != nullptr) _impl_.agent_info_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (agent_info_ != nullptr) agent_info_->Clear(); + _has_bits_[0] &= ~0x00000001u; } inline const ::viam::app::v1::AgentInfo& ConfigRequest::_internal_agent_info() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::AgentInfo* p = _impl_.agent_info_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_AgentInfo_default_instance_); + const ::viam::app::v1::AgentInfo* p = agent_info_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_AgentInfo_default_instance_); } -inline const ::viam::app::v1::AgentInfo& ConfigRequest::agent_info() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::app::v1::AgentInfo& ConfigRequest::agent_info() const { // @@protoc_insertion_point(field_get:viam.app.v1.ConfigRequest.agent_info) return _internal_agent_info(); } -inline void ConfigRequest::unsafe_arena_set_allocated_agent_info(::viam::app::v1::AgentInfo* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.agent_info_); +inline void ConfigRequest::unsafe_arena_set_allocated_agent_info( + ::viam::app::v1::AgentInfo* agent_info) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(agent_info_); } - _impl_.agent_info_ = reinterpret_cast<::viam::app::v1::AgentInfo*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + agent_info_ = agent_info; + if (agent_info) { + _has_bits_[0] |= 0x00000001u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; + _has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.ConfigRequest.agent_info) } inline ::viam::app::v1::AgentInfo* ConfigRequest::release_agent_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::AgentInfo* released = _impl_.agent_info_; - _impl_.agent_info_ = nullptr; + _has_bits_[0] &= ~0x00000001u; + ::viam::app::v1::AgentInfo* temp = agent_info_; + agent_info_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::app::v1::AgentInfo* ConfigRequest::unsafe_arena_release_agent_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.ConfigRequest.agent_info) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::AgentInfo* temp = _impl_.agent_info_; - _impl_.agent_info_ = nullptr; + _has_bits_[0] &= ~0x00000001u; + ::viam::app::v1::AgentInfo* temp = agent_info_; + agent_info_ = nullptr; return temp; } inline ::viam::app::v1::AgentInfo* ConfigRequest::_internal_mutable_agent_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.agent_info_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::AgentInfo>(GetArena()); - _impl_.agent_info_ = reinterpret_cast<::viam::app::v1::AgentInfo*>(p); + _has_bits_[0] |= 0x00000001u; + if (agent_info_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::AgentInfo>(GetArenaForAllocation()); + agent_info_ = p; } - return _impl_.agent_info_; + return agent_info_; } -inline ::viam::app::v1::AgentInfo* ConfigRequest::mutable_agent_info() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::app::v1::AgentInfo* ConfigRequest::mutable_agent_info() { ::viam::app::v1::AgentInfo* _msg = _internal_mutable_agent_info(); // @@protoc_insertion_point(field_mutable:viam.app.v1.ConfigRequest.agent_info) return _msg; } -inline void ConfigRequest::set_allocated_agent_info(::viam::app::v1::AgentInfo* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ConfigRequest::set_allocated_agent_info(::viam::app::v1::AgentInfo* agent_info) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::AgentInfo*>(_impl_.agent_info_); + delete agent_info_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::AgentInfo*>(value)->GetArena(); + if (agent_info) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(agent_info); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + agent_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, agent_info, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + _has_bits_[0] |= 0x00000001u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; + _has_bits_[0] &= ~0x00000001u; } - - _impl_.agent_info_ = reinterpret_cast<::viam::app::v1::AgentInfo*>(value); + agent_info_ = agent_info; // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ConfigRequest.agent_info) } @@ -17270,98 +15315,92 @@ inline void ConfigRequest::set_allocated_agent_info(::viam::app::v1::AgentInfo* // ConfigResponse // .viam.app.v1.RobotConfig config = 1 [json_name = "config"]; +inline bool ConfigResponse::_internal_has_config() const { + return this != internal_default_instance() && config_ != nullptr; +} inline bool ConfigResponse::has_config() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.config_ != nullptr); - return value; + return _internal_has_config(); } inline void ConfigResponse::clear_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.config_ != nullptr) _impl_.config_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && config_ != nullptr) { + delete config_; + } + config_ = nullptr; } inline const ::viam::app::v1::RobotConfig& ConfigResponse::_internal_config() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::RobotConfig* p = _impl_.config_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_RobotConfig_default_instance_); + const ::viam::app::v1::RobotConfig* p = config_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_RobotConfig_default_instance_); } -inline const ::viam::app::v1::RobotConfig& ConfigResponse::config() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::app::v1::RobotConfig& ConfigResponse::config() const { // @@protoc_insertion_point(field_get:viam.app.v1.ConfigResponse.config) return _internal_config(); } -inline void ConfigResponse::unsafe_arena_set_allocated_config(::viam::app::v1::RobotConfig* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.config_); +inline void ConfigResponse::unsafe_arena_set_allocated_config( + ::viam::app::v1::RobotConfig* config) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(config_); } - _impl_.config_ = reinterpret_cast<::viam::app::v1::RobotConfig*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + config_ = config; + if (config) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.ConfigResponse.config) } inline ::viam::app::v1::RobotConfig* ConfigResponse::release_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::RobotConfig* released = _impl_.config_; - _impl_.config_ = nullptr; + + ::viam::app::v1::RobotConfig* temp = config_; + config_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::app::v1::RobotConfig* ConfigResponse::unsafe_arena_release_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.ConfigResponse.config) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::RobotConfig* temp = _impl_.config_; - _impl_.config_ = nullptr; + + ::viam::app::v1::RobotConfig* temp = config_; + config_ = nullptr; return temp; } inline ::viam::app::v1::RobotConfig* ConfigResponse::_internal_mutable_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.config_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::RobotConfig>(GetArena()); - _impl_.config_ = reinterpret_cast<::viam::app::v1::RobotConfig*>(p); + + if (config_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::RobotConfig>(GetArenaForAllocation()); + config_ = p; } - return _impl_.config_; + return config_; } -inline ::viam::app::v1::RobotConfig* ConfigResponse::mutable_config() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::app::v1::RobotConfig* ConfigResponse::mutable_config() { ::viam::app::v1::RobotConfig* _msg = _internal_mutable_config(); // @@protoc_insertion_point(field_mutable:viam.app.v1.ConfigResponse.config) return _msg; } -inline void ConfigResponse::set_allocated_config(::viam::app::v1::RobotConfig* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ConfigResponse::set_allocated_config(::viam::app::v1::RobotConfig* config) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::RobotConfig*>(_impl_.config_); + delete config_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::RobotConfig*>(value)->GetArena(); + if (config) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(config); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + config = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, config, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.config_ = reinterpret_cast<::viam::app::v1::RobotConfig*>(value); + config_ = config; // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ConfigResponse.config) } @@ -17371,54 +15410,51 @@ inline void ConfigResponse::set_allocated_config(::viam::app::v1::RobotConfig* v // string id = 1 [json_name = "id"]; inline void CertificateRequest::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); + id_.ClearToEmpty(); } -inline const std::string& CertificateRequest::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& CertificateRequest::id() const { // @@protoc_insertion_point(field_get:viam.app.v1.CertificateRequest.id) return _internal_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void CertificateRequest::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void CertificateRequest::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.CertificateRequest.id) } -inline std::string* CertificateRequest::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* CertificateRequest::mutable_id() { std::string* _s = _internal_mutable_id(); // @@protoc_insertion_point(field_mutable:viam.app.v1.CertificateRequest.id) return _s; } inline const std::string& CertificateRequest::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); + return id_.Get(); } inline void CertificateRequest::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); + + id_.Set(value, GetArenaForAllocation()); } inline std::string* CertificateRequest::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); + + return id_.Mutable(GetArenaForAllocation()); } inline std::string* CertificateRequest::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.CertificateRequest.id) - return _impl_.id_.Release(); -} -inline void CertificateRequest::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return id_.Release(); +} +inline void CertificateRequest::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CertificateRequest.id) } @@ -17428,160 +15464,151 @@ inline void CertificateRequest::set_allocated_id(std::string* value) { // string id = 1 [json_name = "id"]; inline void CertificateResponse::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); + id_.ClearToEmpty(); } -inline const std::string& CertificateResponse::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& CertificateResponse::id() const { // @@protoc_insertion_point(field_get:viam.app.v1.CertificateResponse.id) return _internal_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void CertificateResponse::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void CertificateResponse::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.CertificateResponse.id) } -inline std::string* CertificateResponse::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* CertificateResponse::mutable_id() { std::string* _s = _internal_mutable_id(); // @@protoc_insertion_point(field_mutable:viam.app.v1.CertificateResponse.id) return _s; } inline const std::string& CertificateResponse::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); + return id_.Get(); } inline void CertificateResponse::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); + + id_.Set(value, GetArenaForAllocation()); } inline std::string* CertificateResponse::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); + + return id_.Mutable(GetArenaForAllocation()); } inline std::string* CertificateResponse::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.CertificateResponse.id) - return _impl_.id_.Release(); -} -inline void CertificateResponse::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return id_.Release(); +} +inline void CertificateResponse::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CertificateResponse.id) } // string tls_certificate = 2 [json_name = "tlsCertificate"]; inline void CertificateResponse::clear_tls_certificate() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.tls_certificate_.ClearToEmpty(); + tls_certificate_.ClearToEmpty(); } -inline const std::string& CertificateResponse::tls_certificate() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& CertificateResponse::tls_certificate() const { // @@protoc_insertion_point(field_get:viam.app.v1.CertificateResponse.tls_certificate) return _internal_tls_certificate(); } -template -inline PROTOBUF_ALWAYS_INLINE void CertificateResponse::set_tls_certificate(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.tls_certificate_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void CertificateResponse::set_tls_certificate(ArgT0&& arg0, ArgT... args) { + + tls_certificate_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.CertificateResponse.tls_certificate) } -inline std::string* CertificateResponse::mutable_tls_certificate() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* CertificateResponse::mutable_tls_certificate() { std::string* _s = _internal_mutable_tls_certificate(); // @@protoc_insertion_point(field_mutable:viam.app.v1.CertificateResponse.tls_certificate) return _s; } inline const std::string& CertificateResponse::_internal_tls_certificate() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.tls_certificate_.Get(); + return tls_certificate_.Get(); } inline void CertificateResponse::_internal_set_tls_certificate(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.tls_certificate_.Set(value, GetArena()); + + tls_certificate_.Set(value, GetArenaForAllocation()); } inline std::string* CertificateResponse::_internal_mutable_tls_certificate() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.tls_certificate_.Mutable( GetArena()); + + return tls_certificate_.Mutable(GetArenaForAllocation()); } inline std::string* CertificateResponse::release_tls_certificate() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.CertificateResponse.tls_certificate) - return _impl_.tls_certificate_.Release(); -} -inline void CertificateResponse::set_allocated_tls_certificate(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.tls_certificate_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.tls_certificate_.IsDefault()) { - _impl_.tls_certificate_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return tls_certificate_.Release(); +} +inline void CertificateResponse::set_allocated_tls_certificate(std::string* tls_certificate) { + if (tls_certificate != nullptr) { + + } else { + + } + tls_certificate_.SetAllocated(tls_certificate, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (tls_certificate_.IsDefault()) { + tls_certificate_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CertificateResponse.tls_certificate) } // string tls_private_key = 3 [json_name = "tlsPrivateKey"]; inline void CertificateResponse::clear_tls_private_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.tls_private_key_.ClearToEmpty(); + tls_private_key_.ClearToEmpty(); } -inline const std::string& CertificateResponse::tls_private_key() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& CertificateResponse::tls_private_key() const { // @@protoc_insertion_point(field_get:viam.app.v1.CertificateResponse.tls_private_key) return _internal_tls_private_key(); } -template -inline PROTOBUF_ALWAYS_INLINE void CertificateResponse::set_tls_private_key(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.tls_private_key_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void CertificateResponse::set_tls_private_key(ArgT0&& arg0, ArgT... args) { + + tls_private_key_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.CertificateResponse.tls_private_key) } -inline std::string* CertificateResponse::mutable_tls_private_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* CertificateResponse::mutable_tls_private_key() { std::string* _s = _internal_mutable_tls_private_key(); // @@protoc_insertion_point(field_mutable:viam.app.v1.CertificateResponse.tls_private_key) return _s; } inline const std::string& CertificateResponse::_internal_tls_private_key() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.tls_private_key_.Get(); + return tls_private_key_.Get(); } inline void CertificateResponse::_internal_set_tls_private_key(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.tls_private_key_.Set(value, GetArena()); + + tls_private_key_.Set(value, GetArenaForAllocation()); } inline std::string* CertificateResponse::_internal_mutable_tls_private_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.tls_private_key_.Mutable( GetArena()); + + return tls_private_key_.Mutable(GetArenaForAllocation()); } inline std::string* CertificateResponse::release_tls_private_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.CertificateResponse.tls_private_key) - return _impl_.tls_private_key_.Release(); -} -inline void CertificateResponse::set_allocated_tls_private_key(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.tls_private_key_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.tls_private_key_.IsDefault()) { - _impl_.tls_private_key_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return tls_private_key_.Release(); +} +inline void CertificateResponse::set_allocated_tls_private_key(std::string* tls_private_key) { + if (tls_private_key != nullptr) { + + } else { + + } + tls_private_key_.SetAllocated(tls_private_key, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (tls_private_key_.IsDefault()) { + tls_private_key_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.CertificateResponse.tls_private_key) } @@ -17591,100 +15618,89 @@ inline void CertificateResponse::set_allocated_tls_private_key(std::string* valu // string id = 1 [json_name = "id"]; inline void LogRequest::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); + id_.ClearToEmpty(); } -inline const std::string& LogRequest::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& LogRequest::id() const { // @@protoc_insertion_point(field_get:viam.app.v1.LogRequest.id) return _internal_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void LogRequest::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void LogRequest::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.LogRequest.id) } -inline std::string* LogRequest::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* LogRequest::mutable_id() { std::string* _s = _internal_mutable_id(); // @@protoc_insertion_point(field_mutable:viam.app.v1.LogRequest.id) return _s; } inline const std::string& LogRequest::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); + return id_.Get(); } inline void LogRequest::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); + + id_.Set(value, GetArenaForAllocation()); } inline std::string* LogRequest::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); + + return id_.Mutable(GetArenaForAllocation()); } inline std::string* LogRequest::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.LogRequest.id) - return _impl_.id_.Release(); -} -inline void LogRequest::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return id_.Release(); +} +inline void LogRequest::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.LogRequest.id) } // repeated .viam.common.v1.LogEntry logs = 2 [json_name = "logs"]; inline int LogRequest::_internal_logs_size() const { - return _internal_logs().size(); + return logs_.size(); } inline int LogRequest::logs_size() const { return _internal_logs_size(); } -inline ::viam::common::v1::LogEntry* LogRequest::mutable_logs(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::LogEntry* LogRequest::mutable_logs(int index) { // @@protoc_insertion_point(field_mutable:viam.app.v1.LogRequest.logs) - return _internal_mutable_logs()->Mutable(index); + return logs_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::common::v1::LogEntry>* LogRequest::mutable_logs() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::LogEntry >* +LogRequest::mutable_logs() { // @@protoc_insertion_point(field_mutable_list:viam.app.v1.LogRequest.logs) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_logs(); + return &logs_; } -inline const ::viam::common::v1::LogEntry& LogRequest::logs(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::LogEntry& LogRequest::_internal_logs(int index) const { + return logs_.Get(index); +} +inline const ::viam::common::v1::LogEntry& LogRequest::logs(int index) const { // @@protoc_insertion_point(field_get:viam.app.v1.LogRequest.logs) - return _internal_logs().Get(index); + return _internal_logs(index); +} +inline ::viam::common::v1::LogEntry* LogRequest::_internal_add_logs() { + return logs_.Add(); } -inline ::viam::common::v1::LogEntry* LogRequest::add_logs() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::common::v1::LogEntry* _add = _internal_mutable_logs()->Add(); +inline ::viam::common::v1::LogEntry* LogRequest::add_logs() { + ::viam::common::v1::LogEntry* _add = _internal_add_logs(); // @@protoc_insertion_point(field_add:viam.app.v1.LogRequest.logs) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::common::v1::LogEntry>& LogRequest::logs() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::LogEntry >& +LogRequest::logs() const { // @@protoc_insertion_point(field_list:viam.app.v1.LogRequest.logs) - return _internal_logs(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::common::v1::LogEntry>& -LogRequest::_internal_logs() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.logs_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::common::v1::LogEntry>* -LogRequest::_internal_mutable_logs() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.logs_; + return logs_; } // ------------------------------------------------------------------- @@ -17697,54 +15713,51 @@ LogRequest::_internal_mutable_logs() { // string id = 1 [json_name = "id"]; inline void NeedsRestartRequest::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); + id_.ClearToEmpty(); } -inline const std::string& NeedsRestartRequest::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& NeedsRestartRequest::id() const { // @@protoc_insertion_point(field_get:viam.app.v1.NeedsRestartRequest.id) return _internal_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void NeedsRestartRequest::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void NeedsRestartRequest::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.NeedsRestartRequest.id) } -inline std::string* NeedsRestartRequest::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* NeedsRestartRequest::mutable_id() { std::string* _s = _internal_mutable_id(); // @@protoc_insertion_point(field_mutable:viam.app.v1.NeedsRestartRequest.id) return _s; } inline const std::string& NeedsRestartRequest::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); + return id_.Get(); } inline void NeedsRestartRequest::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); + + id_.Set(value, GetArenaForAllocation()); } inline std::string* NeedsRestartRequest::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); + + return id_.Mutable(GetArenaForAllocation()); } inline std::string* NeedsRestartRequest::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.NeedsRestartRequest.id) - return _impl_.id_.Release(); -} -inline void NeedsRestartRequest::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return id_.Release(); +} +inline void NeedsRestartRequest::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.NeedsRestartRequest.id) } @@ -17754,168 +15767,156 @@ inline void NeedsRestartRequest::set_allocated_id(std::string* value) { // string id = 1 [json_name = "id"]; inline void NeedsRestartResponse::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); + id_.ClearToEmpty(); } -inline const std::string& NeedsRestartResponse::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& NeedsRestartResponse::id() const { // @@protoc_insertion_point(field_get:viam.app.v1.NeedsRestartResponse.id) return _internal_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void NeedsRestartResponse::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void NeedsRestartResponse::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.NeedsRestartResponse.id) } -inline std::string* NeedsRestartResponse::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* NeedsRestartResponse::mutable_id() { std::string* _s = _internal_mutable_id(); // @@protoc_insertion_point(field_mutable:viam.app.v1.NeedsRestartResponse.id) return _s; } inline const std::string& NeedsRestartResponse::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); + return id_.Get(); } inline void NeedsRestartResponse::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); + + id_.Set(value, GetArenaForAllocation()); } inline std::string* NeedsRestartResponse::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); + + return id_.Mutable(GetArenaForAllocation()); } inline std::string* NeedsRestartResponse::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.NeedsRestartResponse.id) - return _impl_.id_.Release(); -} -inline void NeedsRestartResponse::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return id_.Release(); +} +inline void NeedsRestartResponse::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.NeedsRestartResponse.id) } // bool must_restart = 2 [json_name = "mustRestart"]; inline void NeedsRestartResponse::clear_must_restart() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.must_restart_ = false; + must_restart_ = false; +} +inline bool NeedsRestartResponse::_internal_must_restart() const { + return must_restart_; } inline bool NeedsRestartResponse::must_restart() const { // @@protoc_insertion_point(field_get:viam.app.v1.NeedsRestartResponse.must_restart) return _internal_must_restart(); } +inline void NeedsRestartResponse::_internal_set_must_restart(bool value) { + + must_restart_ = value; +} inline void NeedsRestartResponse::set_must_restart(bool value) { _internal_set_must_restart(value); // @@protoc_insertion_point(field_set:viam.app.v1.NeedsRestartResponse.must_restart) } -inline bool NeedsRestartResponse::_internal_must_restart() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.must_restart_; -} -inline void NeedsRestartResponse::_internal_set_must_restart(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.must_restart_ = value; -} // .google.protobuf.Duration restart_check_interval = 3 [json_name = "restartCheckInterval"]; +inline bool NeedsRestartResponse::_internal_has_restart_check_interval() const { + return this != internal_default_instance() && restart_check_interval_ != nullptr; +} inline bool NeedsRestartResponse::has_restart_check_interval() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.restart_check_interval_ != nullptr); - return value; + return _internal_has_restart_check_interval(); } -inline const ::google::protobuf::Duration& NeedsRestartResponse::_internal_restart_check_interval() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Duration* p = _impl_.restart_check_interval_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Duration_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Duration& NeedsRestartResponse::_internal_restart_check_interval() const { + const ::PROTOBUF_NAMESPACE_ID::Duration* p = restart_check_interval_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Duration_default_instance_); } -inline const ::google::protobuf::Duration& NeedsRestartResponse::restart_check_interval() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Duration& NeedsRestartResponse::restart_check_interval() const { // @@protoc_insertion_point(field_get:viam.app.v1.NeedsRestartResponse.restart_check_interval) return _internal_restart_check_interval(); } -inline void NeedsRestartResponse::unsafe_arena_set_allocated_restart_check_interval(::google::protobuf::Duration* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.restart_check_interval_); +inline void NeedsRestartResponse::unsafe_arena_set_allocated_restart_check_interval( + ::PROTOBUF_NAMESPACE_ID::Duration* restart_check_interval) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(restart_check_interval_); } - _impl_.restart_check_interval_ = reinterpret_cast<::google::protobuf::Duration*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + restart_check_interval_ = restart_check_interval; + if (restart_check_interval) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.NeedsRestartResponse.restart_check_interval) } -inline ::google::protobuf::Duration* NeedsRestartResponse::release_restart_check_interval() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Duration* released = _impl_.restart_check_interval_; - _impl_.restart_check_interval_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Duration* NeedsRestartResponse::release_restart_check_interval() { + + ::PROTOBUF_NAMESPACE_ID::Duration* temp = restart_check_interval_; + restart_check_interval_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Duration* NeedsRestartResponse::unsafe_arena_release_restart_check_interval() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Duration* NeedsRestartResponse::unsafe_arena_release_restart_check_interval() { // @@protoc_insertion_point(field_release:viam.app.v1.NeedsRestartResponse.restart_check_interval) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Duration* temp = _impl_.restart_check_interval_; - _impl_.restart_check_interval_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Duration* temp = restart_check_interval_; + restart_check_interval_ = nullptr; return temp; } -inline ::google::protobuf::Duration* NeedsRestartResponse::_internal_mutable_restart_check_interval() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.restart_check_interval_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArena()); - _impl_.restart_check_interval_ = reinterpret_cast<::google::protobuf::Duration*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Duration* NeedsRestartResponse::_internal_mutable_restart_check_interval() { + + if (restart_check_interval_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Duration>(GetArenaForAllocation()); + restart_check_interval_ = p; } - return _impl_.restart_check_interval_; + return restart_check_interval_; } -inline ::google::protobuf::Duration* NeedsRestartResponse::mutable_restart_check_interval() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Duration* _msg = _internal_mutable_restart_check_interval(); +inline ::PROTOBUF_NAMESPACE_ID::Duration* NeedsRestartResponse::mutable_restart_check_interval() { + ::PROTOBUF_NAMESPACE_ID::Duration* _msg = _internal_mutable_restart_check_interval(); // @@protoc_insertion_point(field_mutable:viam.app.v1.NeedsRestartResponse.restart_check_interval) return _msg; } -inline void NeedsRestartResponse::set_allocated_restart_check_interval(::google::protobuf::Duration* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void NeedsRestartResponse::set_allocated_restart_check_interval(::PROTOBUF_NAMESPACE_ID::Duration* restart_check_interval) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.restart_check_interval_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(restart_check_interval_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (restart_check_interval) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(restart_check_interval)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + restart_check_interval = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, restart_check_interval, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.restart_check_interval_ = reinterpret_cast<::google::protobuf::Duration*>(value); + restart_check_interval_ = restart_check_interval; // @@protoc_insertion_point(field_set_allocated:viam.app.v1.NeedsRestartResponse.restart_check_interval) } @@ -17927,481 +15928,455 @@ inline void NeedsRestartResponse::set_allocated_restart_check_interval(::google: // string name = 1 [json_name = "name"]; inline void ModuleConfig::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& ModuleConfig::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ModuleConfig::name() const { // @@protoc_insertion_point(field_get:viam.app.v1.ModuleConfig.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void ModuleConfig::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ModuleConfig::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.ModuleConfig.name) } -inline std::string* ModuleConfig::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ModuleConfig::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.app.v1.ModuleConfig.name) return _s; } inline const std::string& ModuleConfig::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void ModuleConfig::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* ModuleConfig::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* ModuleConfig::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.ModuleConfig.name) - return _impl_.name_.Release(); -} -inline void ModuleConfig::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void ModuleConfig::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.app.v1.ModuleConfig.name) } // string path = 2 [json_name = "path"]; inline void ModuleConfig::clear_path() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.path_.ClearToEmpty(); + path_.ClearToEmpty(); } -inline const std::string& ModuleConfig::path() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ModuleConfig::path() const { // @@protoc_insertion_point(field_get:viam.app.v1.ModuleConfig.path) return _internal_path(); } -template -inline PROTOBUF_ALWAYS_INLINE void ModuleConfig::set_path(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.path_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ModuleConfig::set_path(ArgT0&& arg0, ArgT... args) { + + path_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.ModuleConfig.path) } -inline std::string* ModuleConfig::mutable_path() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ModuleConfig::mutable_path() { std::string* _s = _internal_mutable_path(); // @@protoc_insertion_point(field_mutable:viam.app.v1.ModuleConfig.path) return _s; } inline const std::string& ModuleConfig::_internal_path() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.path_.Get(); + return path_.Get(); } inline void ModuleConfig::_internal_set_path(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.path_.Set(value, GetArena()); + + path_.Set(value, GetArenaForAllocation()); } inline std::string* ModuleConfig::_internal_mutable_path() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.path_.Mutable( GetArena()); + + return path_.Mutable(GetArenaForAllocation()); } inline std::string* ModuleConfig::release_path() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.ModuleConfig.path) - return _impl_.path_.Release(); -} -inline void ModuleConfig::set_allocated_path(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.path_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.path_.IsDefault()) { - _impl_.path_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return path_.Release(); +} +inline void ModuleConfig::set_allocated_path(std::string* path) { + if (path != nullptr) { + + } else { + + } + path_.SetAllocated(path, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (path_.IsDefault()) { + path_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ModuleConfig.path) } // string log_level = 3 [json_name = "logLevel"]; inline void ModuleConfig::clear_log_level() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.log_level_.ClearToEmpty(); + log_level_.ClearToEmpty(); } -inline const std::string& ModuleConfig::log_level() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ModuleConfig::log_level() const { // @@protoc_insertion_point(field_get:viam.app.v1.ModuleConfig.log_level) return _internal_log_level(); } -template -inline PROTOBUF_ALWAYS_INLINE void ModuleConfig::set_log_level(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.log_level_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ModuleConfig::set_log_level(ArgT0&& arg0, ArgT... args) { + + log_level_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.ModuleConfig.log_level) } -inline std::string* ModuleConfig::mutable_log_level() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ModuleConfig::mutable_log_level() { std::string* _s = _internal_mutable_log_level(); // @@protoc_insertion_point(field_mutable:viam.app.v1.ModuleConfig.log_level) return _s; } inline const std::string& ModuleConfig::_internal_log_level() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.log_level_.Get(); + return log_level_.Get(); } inline void ModuleConfig::_internal_set_log_level(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.log_level_.Set(value, GetArena()); + + log_level_.Set(value, GetArenaForAllocation()); } inline std::string* ModuleConfig::_internal_mutable_log_level() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.log_level_.Mutable( GetArena()); + + return log_level_.Mutable(GetArenaForAllocation()); } inline std::string* ModuleConfig::release_log_level() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.ModuleConfig.log_level) - return _impl_.log_level_.Release(); -} -inline void ModuleConfig::set_allocated_log_level(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.log_level_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.log_level_.IsDefault()) { - _impl_.log_level_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return log_level_.Release(); +} +inline void ModuleConfig::set_allocated_log_level(std::string* log_level) { + if (log_level != nullptr) { + + } else { + + } + log_level_.SetAllocated(log_level, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (log_level_.IsDefault()) { + log_level_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ModuleConfig.log_level) } // string type = 4 [json_name = "type"]; inline void ModuleConfig::clear_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_.ClearToEmpty(); + type_.ClearToEmpty(); } -inline const std::string& ModuleConfig::type() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +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(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.type_.Set(static_cast(arg), args..., GetArena()); +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() ABSL_ATTRIBUTE_LIFETIME_BOUND { +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 { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.type_.Get(); + return type_.Get(); } inline void ModuleConfig::_internal_set_type(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.type_.Set(value, GetArena()); + + type_.Set(value, GetArenaForAllocation()); } inline std::string* ModuleConfig::_internal_mutable_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.type_.Mutable( GetArena()); + + return type_.Mutable(GetArenaForAllocation()); } inline std::string* ModuleConfig::release_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.ModuleConfig.type) - return _impl_.type_.Release(); -} -inline void ModuleConfig::set_allocated_type(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.type_.IsDefault()) { - _impl_.type_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + 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() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.module_id_.ClearToEmpty(); + module_id_.ClearToEmpty(); } -inline const std::string& ModuleConfig::module_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +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(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.module_id_.Set(static_cast(arg), args..., GetArena()); +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() ABSL_ATTRIBUTE_LIFETIME_BOUND { +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 { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.module_id_.Get(); + return module_id_.Get(); } inline void ModuleConfig::_internal_set_module_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.module_id_.Set(value, GetArena()); + + module_id_.Set(value, GetArenaForAllocation()); } inline std::string* ModuleConfig::_internal_mutable_module_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.module_id_.Mutable( GetArena()); + + return module_id_.Mutable(GetArenaForAllocation()); } inline std::string* ModuleConfig::release_module_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.ModuleConfig.module_id) - return _impl_.module_id_.Release(); -} -inline void ModuleConfig::set_allocated_module_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.module_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.module_id_.IsDefault()) { - _impl_.module_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + 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 _internal_env().size(); + return env_.size(); } inline int ModuleConfig::env_size() const { return _internal_env_size(); } inline void ModuleConfig::clear_env() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.env_.Clear(); + env_.Clear(); } -inline const ::google::protobuf::Map& ModuleConfig::_internal_env() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.env_.GetMap(); +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +ModuleConfig::_internal_env() const { + return env_.GetMap(); } -inline const ::google::protobuf::Map& ModuleConfig::env() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +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 ::google::protobuf::Map* ModuleConfig::_internal_mutable_env() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.env_.MutableMap(); +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +ModuleConfig::_internal_mutable_env() { + return env_.MutableMap(); } -inline ::google::protobuf::Map* ModuleConfig::mutable_env() ABSL_ATTRIBUTE_LIFETIME_BOUND { +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 { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.status_ != nullptr); - return value; + return _internal_has_status(); } inline void ModuleConfig::clear_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.status_ != nullptr) _impl_.status_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; } inline const ::viam::app::v1::AppValidationStatus& ModuleConfig::_internal_status() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::AppValidationStatus* p = _impl_.status_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_AppValidationStatus_default_instance_); + 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 ABSL_ATTRIBUTE_LIFETIME_BOUND { +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* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.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_); } - _impl_.status_ = reinterpret_cast<::viam::app::v1::AppValidationStatus*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + status_ = status; + if (status) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.ModuleConfig.status) } inline ::viam::app::v1::AppValidationStatus* ModuleConfig::release_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::AppValidationStatus* released = _impl_.status_; - _impl_.status_ = nullptr; + + ::viam::app::v1::AppValidationStatus* temp = status_; + status_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::app::v1::AppValidationStatus* ModuleConfig::unsafe_arena_release_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.ModuleConfig.status) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::AppValidationStatus* temp = _impl_.status_; - _impl_.status_ = nullptr; + + ::viam::app::v1::AppValidationStatus* temp = status_; + status_ = nullptr; return temp; } inline ::viam::app::v1::AppValidationStatus* ModuleConfig::_internal_mutable_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.status_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::AppValidationStatus>(GetArena()); - _impl_.status_ = reinterpret_cast<::viam::app::v1::AppValidationStatus*>(p); + + if (status_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::AppValidationStatus>(GetArenaForAllocation()); + status_ = p; } - return _impl_.status_; + return status_; } -inline ::viam::app::v1::AppValidationStatus* ModuleConfig::mutable_status() ABSL_ATTRIBUTE_LIFETIME_BOUND { +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* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ModuleConfig::set_allocated_status(::viam::app::v1::AppValidationStatus* status) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::AppValidationStatus*>(_impl_.status_); + delete status_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::AppValidationStatus*>(value)->GetArena(); + if (status) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(status); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, status, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.status_ = reinterpret_cast<::viam::app::v1::AppValidationStatus*>(value); + status_ = status; // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ModuleConfig.status) } // .google.protobuf.Duration first_run_timeout = 8 [json_name = "firstRunTimeout"]; +inline bool ModuleConfig::_internal_has_first_run_timeout() const { + return this != internal_default_instance() && first_run_timeout_ != nullptr; +} inline bool ModuleConfig::has_first_run_timeout() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.first_run_timeout_ != nullptr); - return value; + return _internal_has_first_run_timeout(); } -inline const ::google::protobuf::Duration& ModuleConfig::_internal_first_run_timeout() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Duration* p = _impl_.first_run_timeout_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Duration_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Duration& ModuleConfig::_internal_first_run_timeout() const { + const ::PROTOBUF_NAMESPACE_ID::Duration* p = first_run_timeout_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Duration_default_instance_); } -inline const ::google::protobuf::Duration& ModuleConfig::first_run_timeout() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Duration& ModuleConfig::first_run_timeout() const { // @@protoc_insertion_point(field_get:viam.app.v1.ModuleConfig.first_run_timeout) return _internal_first_run_timeout(); } -inline void ModuleConfig::unsafe_arena_set_allocated_first_run_timeout(::google::protobuf::Duration* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.first_run_timeout_); +inline void ModuleConfig::unsafe_arena_set_allocated_first_run_timeout( + ::PROTOBUF_NAMESPACE_ID::Duration* first_run_timeout) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(first_run_timeout_); } - _impl_.first_run_timeout_ = reinterpret_cast<::google::protobuf::Duration*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + first_run_timeout_ = first_run_timeout; + if (first_run_timeout) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.ModuleConfig.first_run_timeout) } -inline ::google::protobuf::Duration* ModuleConfig::release_first_run_timeout() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Duration* released = _impl_.first_run_timeout_; - _impl_.first_run_timeout_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Duration* ModuleConfig::release_first_run_timeout() { + + ::PROTOBUF_NAMESPACE_ID::Duration* temp = first_run_timeout_; + first_run_timeout_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Duration* ModuleConfig::unsafe_arena_release_first_run_timeout() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Duration* ModuleConfig::unsafe_arena_release_first_run_timeout() { // @@protoc_insertion_point(field_release:viam.app.v1.ModuleConfig.first_run_timeout) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Duration* temp = _impl_.first_run_timeout_; - _impl_.first_run_timeout_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Duration* temp = first_run_timeout_; + first_run_timeout_ = nullptr; return temp; } -inline ::google::protobuf::Duration* ModuleConfig::_internal_mutable_first_run_timeout() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.first_run_timeout_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArena()); - _impl_.first_run_timeout_ = reinterpret_cast<::google::protobuf::Duration*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Duration* ModuleConfig::_internal_mutable_first_run_timeout() { + + if (first_run_timeout_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Duration>(GetArenaForAllocation()); + first_run_timeout_ = p; } - return _impl_.first_run_timeout_; + return first_run_timeout_; } -inline ::google::protobuf::Duration* ModuleConfig::mutable_first_run_timeout() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Duration* _msg = _internal_mutable_first_run_timeout(); +inline ::PROTOBUF_NAMESPACE_ID::Duration* ModuleConfig::mutable_first_run_timeout() { + ::PROTOBUF_NAMESPACE_ID::Duration* _msg = _internal_mutable_first_run_timeout(); // @@protoc_insertion_point(field_mutable:viam.app.v1.ModuleConfig.first_run_timeout) return _msg; } -inline void ModuleConfig::set_allocated_first_run_timeout(::google::protobuf::Duration* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ModuleConfig::set_allocated_first_run_timeout(::PROTOBUF_NAMESPACE_ID::Duration* first_run_timeout) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.first_run_timeout_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(first_run_timeout_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (first_run_timeout) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(first_run_timeout)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + first_run_timeout = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, first_run_timeout, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.first_run_timeout_ = reinterpret_cast<::google::protobuf::Duration*>(value); + first_run_timeout_ = first_run_timeout; // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ModuleConfig.first_run_timeout) } @@ -18411,309 +16386,291 @@ inline void ModuleConfig::set_allocated_first_run_timeout(::google::protobuf::Du // string name = 1 [json_name = "name"]; inline void PackageConfig::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& PackageConfig::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& PackageConfig::name() const { // @@protoc_insertion_point(field_get:viam.app.v1.PackageConfig.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void PackageConfig::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void PackageConfig::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.PackageConfig.name) } -inline std::string* PackageConfig::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* PackageConfig::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.app.v1.PackageConfig.name) return _s; } inline const std::string& PackageConfig::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void PackageConfig::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* PackageConfig::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* PackageConfig::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.PackageConfig.name) - return _impl_.name_.Release(); -} -inline void PackageConfig::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void PackageConfig::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.app.v1.PackageConfig.name) } // string package = 2 [json_name = "package"]; inline void PackageConfig::clear_package() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.package_.ClearToEmpty(); + package_.ClearToEmpty(); } -inline const std::string& PackageConfig::package() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& PackageConfig::package() const { // @@protoc_insertion_point(field_get:viam.app.v1.PackageConfig.package) return _internal_package(); } -template -inline PROTOBUF_ALWAYS_INLINE void PackageConfig::set_package(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.package_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void PackageConfig::set_package(ArgT0&& arg0, ArgT... args) { + + package_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.PackageConfig.package) } -inline std::string* PackageConfig::mutable_package() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* PackageConfig::mutable_package() { std::string* _s = _internal_mutable_package(); // @@protoc_insertion_point(field_mutable:viam.app.v1.PackageConfig.package) return _s; } inline const std::string& PackageConfig::_internal_package() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.package_.Get(); + return package_.Get(); } inline void PackageConfig::_internal_set_package(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.package_.Set(value, GetArena()); + + package_.Set(value, GetArenaForAllocation()); } inline std::string* PackageConfig::_internal_mutable_package() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.package_.Mutable( GetArena()); + + return package_.Mutable(GetArenaForAllocation()); } inline std::string* PackageConfig::release_package() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.PackageConfig.package) - return _impl_.package_.Release(); -} -inline void PackageConfig::set_allocated_package(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.package_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.package_.IsDefault()) { - _impl_.package_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return package_.Release(); +} +inline void PackageConfig::set_allocated_package(std::string* package) { + if (package != nullptr) { + + } else { + + } + package_.SetAllocated(package, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (package_.IsDefault()) { + package_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.PackageConfig.package) } // string version = 3 [json_name = "version"]; inline void PackageConfig::clear_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.version_.ClearToEmpty(); + version_.ClearToEmpty(); } -inline const std::string& PackageConfig::version() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& PackageConfig::version() const { // @@protoc_insertion_point(field_get:viam.app.v1.PackageConfig.version) return _internal_version(); } -template -inline PROTOBUF_ALWAYS_INLINE void PackageConfig::set_version(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.version_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void PackageConfig::set_version(ArgT0&& arg0, ArgT... args) { + + version_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.PackageConfig.version) } -inline std::string* PackageConfig::mutable_version() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* PackageConfig::mutable_version() { std::string* _s = _internal_mutable_version(); // @@protoc_insertion_point(field_mutable:viam.app.v1.PackageConfig.version) return _s; } inline const std::string& PackageConfig::_internal_version() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.version_.Get(); + return version_.Get(); } inline void PackageConfig::_internal_set_version(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.version_.Set(value, GetArena()); + + version_.Set(value, GetArenaForAllocation()); } inline std::string* PackageConfig::_internal_mutable_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.version_.Mutable( GetArena()); + + return version_.Mutable(GetArenaForAllocation()); } inline std::string* PackageConfig::release_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.PackageConfig.version) - return _impl_.version_.Release(); -} -inline void PackageConfig::set_allocated_version(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.version_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.version_.IsDefault()) { - _impl_.version_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return version_.Release(); +} +inline void PackageConfig::set_allocated_version(std::string* version) { + if (version != nullptr) { + + } else { + + } + version_.SetAllocated(version, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (version_.IsDefault()) { + version_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.PackageConfig.version) } // string type = 4 [json_name = "type"]; inline void PackageConfig::clear_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_.ClearToEmpty(); + type_.ClearToEmpty(); } -inline const std::string& PackageConfig::type() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& PackageConfig::type() const { // @@protoc_insertion_point(field_get:viam.app.v1.PackageConfig.type) return _internal_type(); } -template -inline PROTOBUF_ALWAYS_INLINE void PackageConfig::set_type(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.type_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void PackageConfig::set_type(ArgT0&& arg0, ArgT... args) { + + type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.PackageConfig.type) } -inline std::string* PackageConfig::mutable_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* PackageConfig::mutable_type() { std::string* _s = _internal_mutable_type(); // @@protoc_insertion_point(field_mutable:viam.app.v1.PackageConfig.type) return _s; } inline const std::string& PackageConfig::_internal_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.type_.Get(); + return type_.Get(); } inline void PackageConfig::_internal_set_type(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.type_.Set(value, GetArena()); + + type_.Set(value, GetArenaForAllocation()); } inline std::string* PackageConfig::_internal_mutable_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.type_.Mutable( GetArena()); + + return type_.Mutable(GetArenaForAllocation()); } inline std::string* PackageConfig::release_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.PackageConfig.type) - return _impl_.type_.Release(); -} -inline void PackageConfig::set_allocated_type(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.type_.IsDefault()) { - _impl_.type_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return type_.Release(); +} +inline void PackageConfig::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.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 { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.status_ != nullptr); - return value; + return _internal_has_status(); } inline void PackageConfig::clear_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.status_ != nullptr) _impl_.status_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; } inline const ::viam::app::v1::AppValidationStatus& PackageConfig::_internal_status() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::AppValidationStatus* p = _impl_.status_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_AppValidationStatus_default_instance_); + 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 ABSL_ATTRIBUTE_LIFETIME_BOUND { +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* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.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_); } - _impl_.status_ = reinterpret_cast<::viam::app::v1::AppValidationStatus*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + status_ = status; + if (status) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.PackageConfig.status) } inline ::viam::app::v1::AppValidationStatus* PackageConfig::release_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::AppValidationStatus* released = _impl_.status_; - _impl_.status_ = nullptr; + + ::viam::app::v1::AppValidationStatus* temp = status_; + status_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::app::v1::AppValidationStatus* PackageConfig::unsafe_arena_release_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.PackageConfig.status) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::AppValidationStatus* temp = _impl_.status_; - _impl_.status_ = nullptr; + + ::viam::app::v1::AppValidationStatus* temp = status_; + status_ = nullptr; return temp; } inline ::viam::app::v1::AppValidationStatus* PackageConfig::_internal_mutable_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.status_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::AppValidationStatus>(GetArena()); - _impl_.status_ = reinterpret_cast<::viam::app::v1::AppValidationStatus*>(p); + + if (status_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::AppValidationStatus>(GetArenaForAllocation()); + status_ = p; } - return _impl_.status_; + return status_; } -inline ::viam::app::v1::AppValidationStatus* PackageConfig::mutable_status() ABSL_ATTRIBUTE_LIFETIME_BOUND { +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* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void PackageConfig::set_allocated_status(::viam::app::v1::AppValidationStatus* status) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::app::v1::AppValidationStatus*>(_impl_.status_); + delete status_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::app::v1::AppValidationStatus*>(value)->GetArena(); + if (status) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(status); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, status, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.status_ = reinterpret_cast<::viam::app::v1::AppValidationStatus*>(value); + status_ = status; // @@protoc_insertion_point(field_set_allocated:viam.app.v1.PackageConfig.status) } @@ -18722,174 +16679,243 @@ inline void PackageConfig::set_allocated_status(::viam::app::v1::AppValidationSt // MaintenanceConfig // .viam.common.v1.ResourceName sensor_name = 1 [json_name = "sensorName"]; +inline bool MaintenanceConfig::_internal_has_sensor_name() const { + return this != internal_default_instance() && sensor_name_ != nullptr; +} inline bool MaintenanceConfig::has_sensor_name() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.sensor_name_ != nullptr); - return value; + return _internal_has_sensor_name(); } inline const ::viam::common::v1::ResourceName& MaintenanceConfig::_internal_sensor_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::common::v1::ResourceName* p = _impl_.sensor_name_; - return p != nullptr ? *p : reinterpret_cast(::viam::common::v1::_ResourceName_default_instance_); + const ::viam::common::v1::ResourceName* p = sensor_name_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_ResourceName_default_instance_); } -inline const ::viam::common::v1::ResourceName& MaintenanceConfig::sensor_name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::ResourceName& MaintenanceConfig::sensor_name() const { // @@protoc_insertion_point(field_get:viam.app.v1.MaintenanceConfig.sensor_name) return _internal_sensor_name(); } -inline void MaintenanceConfig::unsafe_arena_set_allocated_sensor_name(::viam::common::v1::ResourceName* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.sensor_name_); +inline void MaintenanceConfig::unsafe_arena_set_allocated_sensor_name( + ::viam::common::v1::ResourceName* sensor_name) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(sensor_name_); } - _impl_.sensor_name_ = reinterpret_cast<::viam::common::v1::ResourceName*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + sensor_name_ = sensor_name; + if (sensor_name) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.MaintenanceConfig.sensor_name) } inline ::viam::common::v1::ResourceName* MaintenanceConfig::release_sensor_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::ResourceName* released = _impl_.sensor_name_; - _impl_.sensor_name_ = nullptr; + + ::viam::common::v1::ResourceName* temp = sensor_name_; + sensor_name_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::common::v1::ResourceName* MaintenanceConfig::unsafe_arena_release_sensor_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.MaintenanceConfig.sensor_name) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::ResourceName* temp = _impl_.sensor_name_; - _impl_.sensor_name_ = nullptr; + + ::viam::common::v1::ResourceName* temp = sensor_name_; + sensor_name_ = nullptr; return temp; } inline ::viam::common::v1::ResourceName* MaintenanceConfig::_internal_mutable_sensor_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.sensor_name_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArena()); - _impl_.sensor_name_ = reinterpret_cast<::viam::common::v1::ResourceName*>(p); + + if (sensor_name_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArenaForAllocation()); + sensor_name_ = p; } - return _impl_.sensor_name_; + return sensor_name_; } -inline ::viam::common::v1::ResourceName* MaintenanceConfig::mutable_sensor_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::ResourceName* MaintenanceConfig::mutable_sensor_name() { ::viam::common::v1::ResourceName* _msg = _internal_mutable_sensor_name(); // @@protoc_insertion_point(field_mutable:viam.app.v1.MaintenanceConfig.sensor_name) return _msg; } -inline void MaintenanceConfig::set_allocated_sensor_name(::viam::common::v1::ResourceName* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void MaintenanceConfig::set_allocated_sensor_name(::viam::common::v1::ResourceName* sensor_name) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.sensor_name_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(sensor_name_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (sensor_name) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(sensor_name)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + sensor_name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, sensor_name, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.sensor_name_ = reinterpret_cast<::viam::common::v1::ResourceName*>(value); + sensor_name_ = sensor_name; // @@protoc_insertion_point(field_set_allocated:viam.app.v1.MaintenanceConfig.sensor_name) } // string maintenance_allowed_key = 2 [json_name = "maintenanceAllowedKey"]; inline void MaintenanceConfig::clear_maintenance_allowed_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.maintenance_allowed_key_.ClearToEmpty(); + maintenance_allowed_key_.ClearToEmpty(); } -inline const std::string& MaintenanceConfig::maintenance_allowed_key() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& MaintenanceConfig::maintenance_allowed_key() const { // @@protoc_insertion_point(field_get:viam.app.v1.MaintenanceConfig.maintenance_allowed_key) return _internal_maintenance_allowed_key(); } -template -inline PROTOBUF_ALWAYS_INLINE void MaintenanceConfig::set_maintenance_allowed_key(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.maintenance_allowed_key_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void MaintenanceConfig::set_maintenance_allowed_key(ArgT0&& arg0, ArgT... args) { + + maintenance_allowed_key_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.app.v1.MaintenanceConfig.maintenance_allowed_key) } -inline std::string* MaintenanceConfig::mutable_maintenance_allowed_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* MaintenanceConfig::mutable_maintenance_allowed_key() { std::string* _s = _internal_mutable_maintenance_allowed_key(); // @@protoc_insertion_point(field_mutable:viam.app.v1.MaintenanceConfig.maintenance_allowed_key) return _s; } inline const std::string& MaintenanceConfig::_internal_maintenance_allowed_key() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.maintenance_allowed_key_.Get(); + return maintenance_allowed_key_.Get(); } inline void MaintenanceConfig::_internal_set_maintenance_allowed_key(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.maintenance_allowed_key_.Set(value, GetArena()); + + maintenance_allowed_key_.Set(value, GetArenaForAllocation()); } inline std::string* MaintenanceConfig::_internal_mutable_maintenance_allowed_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.maintenance_allowed_key_.Mutable( GetArena()); + + return maintenance_allowed_key_.Mutable(GetArenaForAllocation()); } inline std::string* MaintenanceConfig::release_maintenance_allowed_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.app.v1.MaintenanceConfig.maintenance_allowed_key) - return _impl_.maintenance_allowed_key_.Release(); -} -inline void MaintenanceConfig::set_allocated_maintenance_allowed_key(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.maintenance_allowed_key_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.maintenance_allowed_key_.IsDefault()) { - _impl_.maintenance_allowed_key_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return maintenance_allowed_key_.Release(); +} +inline void MaintenanceConfig::set_allocated_maintenance_allowed_key(std::string* maintenance_allowed_key) { + if (maintenance_allowed_key != nullptr) { + + } else { + + } + maintenance_allowed_key_.SetAllocated(maintenance_allowed_key, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (maintenance_allowed_key_.IsDefault()) { + maintenance_allowed_key_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.app.v1.MaintenanceConfig.maintenance_allowed_key) } #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) + } // namespace v1 } // namespace app } // namespace viam +PROTOBUF_NAMESPACE_OPEN -namespace google { -namespace protobuf { - +template <> struct is_proto_enum< ::viam::app::v1::CredentialsType> : ::std::true_type {}; template <> -struct is_proto_enum<::viam::app::v1::CredentialsType> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::viam::app::v1::CredentialsType>() { +inline const EnumDescriptor* GetEnumDescriptor< ::viam::app::v1::CredentialsType>() { return ::viam::app::v1::CredentialsType_descriptor(); } -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_app_2fv1_2frobot_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_app_2fv1_2frobot_2eproto diff --git a/src/viam/api/buf.lock b/src/viam/api/buf.lock index f0955a85f..972da7627 100644 --- a/src/viam/api/buf.lock +++ b/src/viam/api/buf.lock @@ -4,11 +4,11 @@ deps: - remote: buf.build owner: googleapis repository: googleapis - commit: 553fd4b4b3a640be9b69a3fa0c17b383 + commit: e93e34f48be043dab55be31b4b47f458 - remote: buf.build owner: viamrobotics repository: api - commit: 818137bd665a4945adbb7a8e0ddf3f24 + commit: 8bd4ce6320ad4d76af9d5e8fa7c9fe61 - remote: buf.build owner: viamrobotics repository: goutils diff --git a/src/viam/api/common/v1/common.grpc.pb.cc b/src/viam/api/common/v1/common.grpc.pb.cc index cbc65939a..11bc67538 100644 --- a/src/viam/api/common/v1/common.grpc.pb.cc +++ b/src/viam/api/common/v1/common.grpc.pb.cc @@ -6,19 +6,19 @@ #include "common/v1/common.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace common { namespace v1 { diff --git a/src/viam/api/common/v1/common.grpc.pb.h b/src/viam/api/common/v1/common.grpc.pb.h index fb24a5724..502979822 100644 --- a/src/viam/api/common/v1/common.grpc.pb.h +++ b/src/viam/api/common/v1/common.grpc.pb.h @@ -9,23 +9,24 @@ #include "common/v1/common.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace common { diff --git a/src/viam/api/common/v1/common.pb.cc b/src/viam/api/common/v1/common.pb.cc index 721bdaf44..6b0bf78a9 100644 --- a/src/viam/api/common/v1/common.pb.cc +++ b/src/viam/api/common/v1/common.pb.cc @@ -4,1449 +4,1201 @@ #include "common/v1/common.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace viam { namespace common { namespace v1 { - -inline constexpr Vector3::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : x_{0}, - y_{0}, - z_{0}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR Vector3::Vector3(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct Vector3DefaultTypeInternal { - PROTOBUF_CONSTEXPR Vector3DefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~Vector3DefaultTypeInternal() {} - union { - Vector3 _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Vector3DefaultTypeInternal _Vector3_default_instance_; - -inline constexpr Sphere::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : radius_mm_{0}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR Sphere::Sphere(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct SphereDefaultTypeInternal { - PROTOBUF_CONSTEXPR SphereDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SphereDefaultTypeInternal() {} - union { - Sphere _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SphereDefaultTypeInternal _Sphere_default_instance_; - -inline constexpr ResourceName::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : remote_path_{}, - namespace__( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - type_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - subtype_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - local_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR ResourceName::ResourceName(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_CONSTEXPR ResourceName::ResourceName( + ::_pbi::ConstantInitialized) + : remote_path_() + , namespace__(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , type_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , subtype_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , local_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} struct ResourceNameDefaultTypeInternal { - PROTOBUF_CONSTEXPR ResourceNameDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ResourceNameDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~ResourceNameDefaultTypeInternal() {} union { ResourceName _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResourceNameDefaultTypeInternal _ResourceName_default_instance_; - -inline constexpr Pose::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : x_{0}, - y_{0}, - z_{0}, - o_x_{0}, - o_y_{0}, - o_z_{0}, - theta_{0}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR Pose::Pose(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResourceNameDefaultTypeInternal _ResourceName_default_instance_; +PROTOBUF_CONSTEXPR Pose::Pose( + ::_pbi::ConstantInitialized) + : x_(0) + , y_(0) + , z_(0) + , o_x_(0) + , o_y_(0) + , o_z_(0) + , theta_(0){} struct PoseDefaultTypeInternal { - PROTOBUF_CONSTEXPR PoseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR PoseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~PoseDefaultTypeInternal() {} union { Pose _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PoseDefaultTypeInternal _Pose_default_instance_; - -inline constexpr Orientation::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : o_x_{0}, - o_y_{0}, - o_z_{0}, - theta_{0}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR Orientation::Orientation(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PoseDefaultTypeInternal _Pose_default_instance_; +PROTOBUF_CONSTEXPR Orientation::Orientation( + ::_pbi::ConstantInitialized) + : o_x_(0) + , o_y_(0) + , o_z_(0) + , theta_(0){} struct OrientationDefaultTypeInternal { - PROTOBUF_CONSTEXPR OrientationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR OrientationDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~OrientationDefaultTypeInternal() {} union { Orientation _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OrientationDefaultTypeInternal _Orientation_default_instance_; - -inline constexpr GetKinematicsResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : kinematics_data_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - format_{static_cast< ::viam::common::v1::KinematicsFileFormat >(0)}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetKinematicsResponse::GetKinematicsResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetKinematicsResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetKinematicsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetKinematicsResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OrientationDefaultTypeInternal _Orientation_default_instance_; +PROTOBUF_CONSTEXPR PoseInFrame::PoseInFrame( + ::_pbi::ConstantInitialized) + : reference_frame_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , pose_(nullptr){} +struct PoseInFrameDefaultTypeInternal { + PROTOBUF_CONSTEXPR PoseInFrameDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~PoseInFrameDefaultTypeInternal() {} union { - GetKinematicsResponse _instance; + PoseInFrame _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetKinematicsResponseDefaultTypeInternal _GetKinematicsResponse_default_instance_; - -inline constexpr GeoPoint::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : latitude_{0}, - longitude_{0}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GeoPoint::GeoPoint(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GeoPointDefaultTypeInternal { - PROTOBUF_CONSTEXPR GeoPointDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GeoPointDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PoseInFrameDefaultTypeInternal _PoseInFrame_default_instance_; +PROTOBUF_CONSTEXPR Vector3::Vector3( + ::_pbi::ConstantInitialized) + : x_(0) + , y_(0) + , z_(0){} +struct Vector3DefaultTypeInternal { + PROTOBUF_CONSTEXPR Vector3DefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Vector3DefaultTypeInternal() {} union { - GeoPoint _instance; + Vector3 _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GeoPointDefaultTypeInternal _GeoPoint_default_instance_; - -inline constexpr Capsule::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : radius_mm_{0}, - length_mm_{0}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR Capsule::Capsule(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Vector3DefaultTypeInternal _Vector3_default_instance_; +PROTOBUF_CONSTEXPR Sphere::Sphere( + ::_pbi::ConstantInitialized) + : radius_mm_(0){} +struct SphereDefaultTypeInternal { + PROTOBUF_CONSTEXPR SphereDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SphereDefaultTypeInternal() {} + union { + Sphere _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SphereDefaultTypeInternal _Sphere_default_instance_; +PROTOBUF_CONSTEXPR Capsule::Capsule( + ::_pbi::ConstantInitialized) + : radius_mm_(0) + , length_mm_(0){} struct CapsuleDefaultTypeInternal { - PROTOBUF_CONSTEXPR CapsuleDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR CapsuleDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~CapsuleDefaultTypeInternal() {} union { Capsule _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CapsuleDefaultTypeInternal _Capsule_default_instance_; - -inline constexpr ActuatorStatus::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : is_moving_{false}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR ActuatorStatus::ActuatorStatus(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ActuatorStatusDefaultTypeInternal { - PROTOBUF_CONSTEXPR ActuatorStatusDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ActuatorStatusDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CapsuleDefaultTypeInternal _Capsule_default_instance_; +PROTOBUF_CONSTEXPR RectangularPrism::RectangularPrism( + ::_pbi::ConstantInitialized) + : dims_mm_(nullptr){} +struct RectangularPrismDefaultTypeInternal { + PROTOBUF_CONSTEXPR RectangularPrismDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RectangularPrismDefaultTypeInternal() {} union { - ActuatorStatus _instance; + RectangularPrism _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ActuatorStatusDefaultTypeInternal _ActuatorStatus_default_instance_; - -inline constexpr ResponseMetadata::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - captured_at_{nullptr} {} - -template -PROTOBUF_CONSTEXPR ResponseMetadata::ResponseMetadata(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ResponseMetadataDefaultTypeInternal { - PROTOBUF_CONSTEXPR ResponseMetadataDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ResponseMetadataDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RectangularPrismDefaultTypeInternal _RectangularPrism_default_instance_; +PROTOBUF_CONSTEXPR Geometry::Geometry( + ::_pbi::ConstantInitialized) + : label_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , center_(nullptr) + , _oneof_case_{}{} +struct GeometryDefaultTypeInternal { + PROTOBUF_CONSTEXPR GeometryDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GeometryDefaultTypeInternal() {} union { - ResponseMetadata _instance; + Geometry _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResponseMetadataDefaultTypeInternal _ResponseMetadata_default_instance_; - -inline constexpr RectangularPrism::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - dims_mm_{nullptr} {} - -template -PROTOBUF_CONSTEXPR RectangularPrism::RectangularPrism(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct RectangularPrismDefaultTypeInternal { - PROTOBUF_CONSTEXPR RectangularPrismDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RectangularPrismDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GeometryDefaultTypeInternal _Geometry_default_instance_; +PROTOBUF_CONSTEXPR GeometriesInFrame::GeometriesInFrame( + ::_pbi::ConstantInitialized) + : geometries_() + , reference_frame_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct GeometriesInFrameDefaultTypeInternal { + PROTOBUF_CONSTEXPR GeometriesInFrameDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GeometriesInFrameDefaultTypeInternal() {} union { - RectangularPrism _instance; + GeometriesInFrame _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RectangularPrismDefaultTypeInternal _RectangularPrism_default_instance_; - -inline constexpr PoseInFrame::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - reference_frame_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - pose_{nullptr} {} - -template -PROTOBUF_CONSTEXPR PoseInFrame::PoseInFrame(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct PoseInFrameDefaultTypeInternal { - PROTOBUF_CONSTEXPR PoseInFrameDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~PoseInFrameDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GeometriesInFrameDefaultTypeInternal _GeometriesInFrame_default_instance_; +PROTOBUF_CONSTEXPR PointCloudObject::PointCloudObject( + ::_pbi::ConstantInitialized) + : point_cloud_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , geometries_(nullptr){} +struct PointCloudObjectDefaultTypeInternal { + PROTOBUF_CONSTEXPR PointCloudObjectDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~PointCloudObjectDefaultTypeInternal() {} union { - PoseInFrame _instance; + PointCloudObject _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PoseInFrameDefaultTypeInternal _PoseInFrame_default_instance_; - -inline constexpr LogEntry::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - fields_{}, - host_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - level_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - logger_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - message_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - stack_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - time_{nullptr}, - caller_{nullptr} {} - -template -PROTOBUF_CONSTEXPR LogEntry::LogEntry(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct LogEntryDefaultTypeInternal { - PROTOBUF_CONSTEXPR LogEntryDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~LogEntryDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PointCloudObjectDefaultTypeInternal _PointCloudObject_default_instance_; +PROTOBUF_CONSTEXPR GeoPoint::GeoPoint( + ::_pbi::ConstantInitialized) + : latitude_(0) + , longitude_(0){} +struct GeoPointDefaultTypeInternal { + PROTOBUF_CONSTEXPR GeoPointDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GeoPointDefaultTypeInternal() {} union { - LogEntry _instance; + GeoPoint _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LogEntryDefaultTypeInternal _LogEntry_default_instance_; - template -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() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GeoPointDefaultTypeInternal _GeoPoint_default_instance_; +PROTOBUF_CONSTEXPR GeoGeometry::GeoGeometry( + ::_pbi::ConstantInitialized) + : geometries_() + , location_(nullptr){} +struct GeoGeometryDefaultTypeInternal { + PROTOBUF_CONSTEXPR GeoGeometryDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GeoGeometryDefaultTypeInternal() {} union { - GetReadingsResponse_ReadingsEntry_DoNotUse _instance; + GeoGeometry _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetReadingsResponse_ReadingsEntry_DoNotUseDefaultTypeInternal _GetReadingsResponse_ReadingsEntry_DoNotUse_default_instance_; - -inline constexpr GetReadingsRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetReadingsRequest::GetReadingsRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetReadingsRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetReadingsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetReadingsRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GeoGeometryDefaultTypeInternal _GeoGeometry_default_instance_; +PROTOBUF_CONSTEXPR Transform::Transform( + ::_pbi::ConstantInitialized) + : reference_frame_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , pose_in_observer_frame_(nullptr) + , physical_object_(nullptr){} +struct TransformDefaultTypeInternal { + PROTOBUF_CONSTEXPR TransformDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~TransformDefaultTypeInternal() {} union { - GetReadingsRequest _instance; + Transform _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetReadingsRequestDefaultTypeInternal _GetReadingsRequest_default_instance_; - -inline constexpr GetKinematicsRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetKinematicsRequest::GetKinematicsRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetKinematicsRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetKinematicsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetKinematicsRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TransformDefaultTypeInternal _Transform_default_instance_; +PROTOBUF_CONSTEXPR WorldState::WorldState( + ::_pbi::ConstantInitialized) + : obstacles_() + , transforms_(){} +struct WorldStateDefaultTypeInternal { + PROTOBUF_CONSTEXPR WorldStateDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~WorldStateDefaultTypeInternal() {} union { - GetKinematicsRequest _instance; + WorldState _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetKinematicsRequestDefaultTypeInternal _GetKinematicsRequest_default_instance_; - -inline constexpr GetGeometriesRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetGeometriesRequest::GetGeometriesRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetGeometriesRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetGeometriesRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetGeometriesRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WorldStateDefaultTypeInternal _WorldState_default_instance_; +PROTOBUF_CONSTEXPR ActuatorStatus::ActuatorStatus( + ::_pbi::ConstantInitialized) + : is_moving_(false){} +struct ActuatorStatusDefaultTypeInternal { + PROTOBUF_CONSTEXPR ActuatorStatusDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ActuatorStatusDefaultTypeInternal() {} union { - GetGeometriesRequest _instance; + ActuatorStatus _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetGeometriesRequestDefaultTypeInternal _GetGeometriesRequest_default_instance_; - -inline constexpr DoCommandResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - result_{nullptr} {} - -template -PROTOBUF_CONSTEXPR DoCommandResponse::DoCommandResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct DoCommandResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR DoCommandResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~DoCommandResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ActuatorStatusDefaultTypeInternal _ActuatorStatus_default_instance_; +PROTOBUF_CONSTEXPR ResponseMetadata::ResponseMetadata( + ::_pbi::ConstantInitialized) + : captured_at_(nullptr){} +struct ResponseMetadataDefaultTypeInternal { + PROTOBUF_CONSTEXPR ResponseMetadataDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ResponseMetadataDefaultTypeInternal() {} union { - DoCommandResponse _instance; + ResponseMetadata _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DoCommandResponseDefaultTypeInternal _DoCommandResponse_default_instance_; - -inline constexpr DoCommandRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - command_{nullptr} {} - -template -PROTOBUF_CONSTEXPR DoCommandRequest::DoCommandRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResponseMetadataDefaultTypeInternal _ResponseMetadata_default_instance_; +PROTOBUF_CONSTEXPR DoCommandRequest::DoCommandRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , command_(nullptr){} struct DoCommandRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR DoCommandRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR DoCommandRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~DoCommandRequestDefaultTypeInternal() {} union { DoCommandRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DoCommandRequestDefaultTypeInternal _DoCommandRequest_default_instance_; - -inline constexpr GetReadingsResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : readings_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetReadingsResponse::GetReadingsResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetReadingsResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetReadingsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetReadingsResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DoCommandRequestDefaultTypeInternal _DoCommandRequest_default_instance_; +PROTOBUF_CONSTEXPR DoCommandResponse::DoCommandResponse( + ::_pbi::ConstantInitialized) + : result_(nullptr){} +struct DoCommandResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR DoCommandResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DoCommandResponseDefaultTypeInternal() {} union { - GetReadingsResponse _instance; + DoCommandResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetReadingsResponseDefaultTypeInternal _GetReadingsResponse_default_instance_; - -inline constexpr Geometry::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - label_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - center_{nullptr}, - geometry_type_{}, - _oneof_case_{} {} - -template -PROTOBUF_CONSTEXPR Geometry::Geometry(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GeometryDefaultTypeInternal { - PROTOBUF_CONSTEXPR GeometryDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GeometryDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DoCommandResponseDefaultTypeInternal _DoCommandResponse_default_instance_; +PROTOBUF_CONSTEXPR GetKinematicsRequest::GetKinematicsRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} +struct GetKinematicsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetKinematicsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetKinematicsRequestDefaultTypeInternal() {} union { - Geometry _instance; + GetKinematicsRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GeometryDefaultTypeInternal _Geometry_default_instance_; - -inline constexpr Transform::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - reference_frame_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - pose_in_observer_frame_{nullptr}, - physical_object_{nullptr} {} - -template -PROTOBUF_CONSTEXPR Transform::Transform(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct TransformDefaultTypeInternal { - PROTOBUF_CONSTEXPR TransformDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TransformDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetKinematicsRequestDefaultTypeInternal _GetKinematicsRequest_default_instance_; +PROTOBUF_CONSTEXPR GetKinematicsResponse::GetKinematicsResponse( + ::_pbi::ConstantInitialized) + : kinematics_data_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , format_(0) +{} +struct GetKinematicsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetKinematicsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetKinematicsResponseDefaultTypeInternal() {} union { - Transform _instance; + GetKinematicsResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TransformDefaultTypeInternal _Transform_default_instance_; - -inline constexpr GetGeometriesResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : geometries_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetGeometriesResponse::GetGeometriesResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetKinematicsResponseDefaultTypeInternal _GetKinematicsResponse_default_instance_; +PROTOBUF_CONSTEXPR GetGeometriesRequest::GetGeometriesRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} +struct GetGeometriesRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetGeometriesRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetGeometriesRequestDefaultTypeInternal() {} + union { + GetGeometriesRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetGeometriesRequestDefaultTypeInternal _GetGeometriesRequest_default_instance_; +PROTOBUF_CONSTEXPR GetGeometriesResponse::GetGeometriesResponse( + ::_pbi::ConstantInitialized) + : geometries_(){} struct GetGeometriesResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetGeometriesResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GetGeometriesResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~GetGeometriesResponseDefaultTypeInternal() {} union { GetGeometriesResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetGeometriesResponseDefaultTypeInternal _GetGeometriesResponse_default_instance_; - -inline constexpr GeometriesInFrame::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : geometries_{}, - reference_frame_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GeometriesInFrame::GeometriesInFrame(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GeometriesInFrameDefaultTypeInternal { - PROTOBUF_CONSTEXPR GeometriesInFrameDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GeometriesInFrameDefaultTypeInternal() {} +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 { - GeometriesInFrame _instance; + GetReadingsRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GeometriesInFrameDefaultTypeInternal _GeometriesInFrame_default_instance_; - -inline constexpr GeoGeometry::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - geometries_{}, - location_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GeoGeometry::GeoGeometry(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GeoGeometryDefaultTypeInternal { - PROTOBUF_CONSTEXPR GeoGeometryDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GeoGeometryDefaultTypeInternal() {} +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 { - GeoGeometry _instance; + GetReadingsResponse_ReadingsEntry_DoNotUse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GeoGeometryDefaultTypeInternal _GeoGeometry_default_instance_; - -inline constexpr WorldState::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : obstacles_{}, - transforms_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR WorldState::WorldState(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct WorldStateDefaultTypeInternal { - PROTOBUF_CONSTEXPR WorldStateDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~WorldStateDefaultTypeInternal() {} +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 { - WorldState _instance; + GetReadingsResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WorldStateDefaultTypeInternal _WorldState_default_instance_; - -inline constexpr PointCloudObject::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - point_cloud_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - geometries_{nullptr} {} - -template -PROTOBUF_CONSTEXPR PointCloudObject::PointCloudObject(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct PointCloudObjectDefaultTypeInternal { - PROTOBUF_CONSTEXPR PointCloudObjectDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~PointCloudObjectDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetReadingsResponseDefaultTypeInternal _GetReadingsResponse_default_instance_; +PROTOBUF_CONSTEXPR LogEntry::LogEntry( + ::_pbi::ConstantInitialized) + : fields_() + , host_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , level_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , logger_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , message_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , stack_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , time_(nullptr) + , caller_(nullptr){} +struct LogEntryDefaultTypeInternal { + PROTOBUF_CONSTEXPR LogEntryDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~LogEntryDefaultTypeInternal() {} union { - PointCloudObject _instance; + LogEntry _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PointCloudObjectDefaultTypeInternal _PointCloudObject_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LogEntryDefaultTypeInternal _LogEntry_default_instance_; } // namespace v1 } // namespace common } // namespace viam static ::_pb::Metadata file_level_metadata_common_2fv1_2fcommon_2eproto[27]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_common_2fv1_2fcommon_2eproto[1]; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_common_2fv1_2fcommon_2eproto = nullptr; -const ::uint32_t TableStruct_common_2fv1_2fcommon_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::common::v1::ResourceName, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::common::v1::ResourceName, _impl_.namespace__), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::ResourceName, _impl_.type_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::ResourceName, _impl_.subtype_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::ResourceName, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::ResourceName, _impl_.remote_path_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::ResourceName, _impl_.local_name_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::common::v1::Pose, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::common::v1::Pose, _impl_.x_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::Pose, _impl_.y_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::Pose, _impl_.z_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::Pose, _impl_.o_x_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::Pose, _impl_.o_y_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::Pose, _impl_.o_z_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::Pose, _impl_.theta_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::common::v1::Orientation, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::common::v1::Orientation, _impl_.o_x_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::Orientation, _impl_.o_y_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::Orientation, _impl_.o_z_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::Orientation, _impl_.theta_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::PoseInFrame, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::PoseInFrame, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::common::v1::PoseInFrame, _impl_.reference_frame_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::PoseInFrame, _impl_.pose_), - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::common::v1::Vector3, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::common::v1::Vector3, _impl_.x_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::Vector3, _impl_.y_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::Vector3, _impl_.z_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::common::v1::Sphere, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::common::v1::Sphere, _impl_.radius_mm_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::common::v1::Capsule, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::common::v1::Capsule, _impl_.radius_mm_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::Capsule, _impl_.length_mm_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::RectangularPrism, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::RectangularPrism, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::common::v1::RectangularPrism, _impl_.dims_mm_), - 0, - PROTOBUF_FIELD_OFFSET(::viam::common::v1::Geometry, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::Geometry, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::viam::common::v1::Geometry, _impl_._oneof_case_[0]), - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::common::v1::Geometry, _impl_.center_), - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::viam::common::v1::Geometry, _impl_.label_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::Geometry, _impl_.geometry_type_), - 0, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::common::v1::GeometriesInFrame, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::common::v1::GeometriesInFrame, _impl_.reference_frame_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::GeometriesInFrame, _impl_.geometries_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::PointCloudObject, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::PointCloudObject, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::common::v1::PointCloudObject, _impl_.point_cloud_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::PointCloudObject, _impl_.geometries_), - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::common::v1::GeoPoint, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::common::v1::GeoPoint, _impl_.latitude_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::GeoPoint, _impl_.longitude_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::GeoGeometry, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::GeoGeometry, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::common::v1::GeoGeometry, _impl_.location_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::GeoGeometry, _impl_.geometries_), - 0, - ~0u, - PROTOBUF_FIELD_OFFSET(::viam::common::v1::Transform, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::Transform, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::common::v1::Transform, _impl_.reference_frame_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::Transform, _impl_.pose_in_observer_frame_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::Transform, _impl_.physical_object_), - ~0u, - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::common::v1::WorldState, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::common::v1::WorldState, _impl_.obstacles_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::WorldState, _impl_.transforms_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::common::v1::ActuatorStatus, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::common::v1::ActuatorStatus, _impl_.is_moving_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::ResponseMetadata, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::ResponseMetadata, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::common::v1::ResponseMetadata, _impl_.captured_at_), - 0, - PROTOBUF_FIELD_OFFSET(::viam::common::v1::DoCommandRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::DoCommandRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::common::v1::DoCommandRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::DoCommandRequest, _impl_.command_), - ~0u, - 0, - PROTOBUF_FIELD_OFFSET(::viam::common::v1::DoCommandResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::DoCommandResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::common::v1::DoCommandResponse, _impl_.result_), - 0, - PROTOBUF_FIELD_OFFSET(::viam::common::v1::GetKinematicsRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::GetKinematicsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::common::v1::GetKinematicsRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::GetKinematicsRequest, _impl_.extra_), - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::common::v1::GetKinematicsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::common::v1::GetKinematicsResponse, _impl_.format_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::GetKinematicsResponse, _impl_.kinematics_data_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::GetGeometriesRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::GetGeometriesRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::common::v1::GetGeometriesRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::GetGeometriesRequest, _impl_.extra_), - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::common::v1::GetGeometriesResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::common::v1::GetGeometriesResponse, _impl_.geometries_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::GetReadingsRequest, _impl_._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_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::common::v1::GetReadingsRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::GetReadingsRequest, _impl_.extra_), - ~0u, - 0, - 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_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - 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_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::common::v1::GetReadingsResponse, _impl_.readings_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::LogEntry, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::LogEntry, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::common::v1::LogEntry, _impl_.host_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::LogEntry, _impl_.level_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::LogEntry, _impl_.time_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::LogEntry, _impl_.logger_name_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::LogEntry, _impl_.message_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::LogEntry, _impl_.caller_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::LogEntry, _impl_.stack_), - PROTOBUF_FIELD_OFFSET(::viam::common::v1::LogEntry, _impl_.fields_), - ~0u, - ~0u, - 0, - ~0u, - ~0u, - 1, - ~0u, - ~0u, +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_common_2fv1_2fcommon_2eproto = nullptr; + +const uint32_t TableStruct_common_2fv1_2fcommon_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::ResourceName, _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::ResourceName, namespace__), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::ResourceName, type_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::ResourceName, subtype_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::ResourceName, name_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::ResourceName, remote_path_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::ResourceName, local_name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Pose, _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::Pose, x_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Pose, y_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Pose, z_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Pose, o_x_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Pose, o_y_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Pose, o_z_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Pose, theta_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Orientation, _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::Orientation, o_x_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Orientation, o_y_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Orientation, o_z_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Orientation, theta_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::PoseInFrame, _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::PoseInFrame, reference_frame_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::PoseInFrame, pose_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Vector3, _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::Vector3, x_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Vector3, y_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Vector3, z_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Sphere, _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::Sphere, radius_mm_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Capsule, _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::Capsule, radius_mm_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Capsule, length_mm_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::RectangularPrism, _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::RectangularPrism, dims_mm_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Geometry, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Geometry, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Geometry, center_), + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Geometry, label_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Geometry, geometry_type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::GeometriesInFrame, _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::GeometriesInFrame, reference_frame_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::GeometriesInFrame, geometries_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::PointCloudObject, _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::PointCloudObject, point_cloud_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::PointCloudObject, geometries_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::GeoPoint, _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::GeoPoint, latitude_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::GeoPoint, longitude_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::GeoGeometry, _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::GeoGeometry, location_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::GeoGeometry, geometries_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Transform, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Transform, _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::Transform, reference_frame_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Transform, pose_in_observer_frame_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::Transform, physical_object_), + ~0u, + ~0u, + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::WorldState, _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::WorldState, obstacles_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::WorldState, transforms_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::ActuatorStatus, _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::ActuatorStatus, is_moving_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::ResponseMetadata, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::ResponseMetadata, _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::ResponseMetadata, captured_at_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::DoCommandRequest, _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::DoCommandRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::DoCommandRequest, command_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::DoCommandResponse, _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::DoCommandResponse, result_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::GetKinematicsRequest, _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::GetKinematicsRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::GetKinematicsRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::GetKinematicsResponse, _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::GetKinematicsResponse, format_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::GetKinematicsResponse, kinematics_data_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::GetGeometriesRequest, _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::GetGeometriesRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::GetGeometriesRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::GetGeometriesResponse, _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::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_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::LogEntry, _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::LogEntry, host_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::LogEntry, level_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::LogEntry, time_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::LogEntry, logger_name_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::LogEntry, message_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::LogEntry, caller_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::LogEntry, stack_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::LogEntry, fields_), }; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, -1, -1, sizeof(::viam::common::v1::ResourceName)}, - {14, -1, -1, sizeof(::viam::common::v1::Pose)}, - {29, -1, -1, sizeof(::viam::common::v1::Orientation)}, - {41, 51, -1, sizeof(::viam::common::v1::PoseInFrame)}, - {53, -1, -1, sizeof(::viam::common::v1::Vector3)}, - {64, -1, -1, sizeof(::viam::common::v1::Sphere)}, - {73, -1, -1, sizeof(::viam::common::v1::Capsule)}, - {83, 92, -1, sizeof(::viam::common::v1::RectangularPrism)}, - {93, 107, -1, sizeof(::viam::common::v1::Geometry)}, - {112, -1, -1, sizeof(::viam::common::v1::GeometriesInFrame)}, - {122, 132, -1, sizeof(::viam::common::v1::PointCloudObject)}, - {134, -1, -1, sizeof(::viam::common::v1::GeoPoint)}, - {144, 154, -1, sizeof(::viam::common::v1::GeoGeometry)}, - {156, 167, -1, sizeof(::viam::common::v1::Transform)}, - {170, -1, -1, sizeof(::viam::common::v1::WorldState)}, - {180, -1, -1, sizeof(::viam::common::v1::ActuatorStatus)}, - {189, 198, -1, sizeof(::viam::common::v1::ResponseMetadata)}, - {199, 209, -1, sizeof(::viam::common::v1::DoCommandRequest)}, - {211, 220, -1, sizeof(::viam::common::v1::DoCommandResponse)}, - {221, 231, -1, sizeof(::viam::common::v1::GetKinematicsRequest)}, - {233, -1, -1, sizeof(::viam::common::v1::GetKinematicsResponse)}, - {243, 253, -1, sizeof(::viam::common::v1::GetGeometriesRequest)}, - {255, -1, -1, sizeof(::viam::common::v1::GetGeometriesResponse)}, - {264, 274, -1, sizeof(::viam::common::v1::GetReadingsRequest)}, - {276, 286, -1, sizeof(::viam::common::v1::GetReadingsResponse_ReadingsEntry_DoNotUse)}, - {288, -1, -1, sizeof(::viam::common::v1::GetReadingsResponse)}, - {297, 313, -1, sizeof(::viam::common::v1::LogEntry)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::common::v1::ResourceName)}, + { 12, -1, -1, sizeof(::viam::common::v1::Pose)}, + { 25, -1, -1, sizeof(::viam::common::v1::Orientation)}, + { 35, -1, -1, sizeof(::viam::common::v1::PoseInFrame)}, + { 43, -1, -1, sizeof(::viam::common::v1::Vector3)}, + { 52, -1, -1, sizeof(::viam::common::v1::Sphere)}, + { 59, -1, -1, sizeof(::viam::common::v1::Capsule)}, + { 67, -1, -1, sizeof(::viam::common::v1::RectangularPrism)}, + { 74, -1, -1, sizeof(::viam::common::v1::Geometry)}, + { 86, -1, -1, sizeof(::viam::common::v1::GeometriesInFrame)}, + { 94, -1, -1, sizeof(::viam::common::v1::PointCloudObject)}, + { 102, -1, -1, sizeof(::viam::common::v1::GeoPoint)}, + { 110, -1, -1, sizeof(::viam::common::v1::GeoGeometry)}, + { 118, 127, -1, sizeof(::viam::common::v1::Transform)}, + { 130, -1, -1, sizeof(::viam::common::v1::WorldState)}, + { 138, -1, -1, sizeof(::viam::common::v1::ActuatorStatus)}, + { 145, 152, -1, sizeof(::viam::common::v1::ResponseMetadata)}, + { 153, -1, -1, sizeof(::viam::common::v1::DoCommandRequest)}, + { 161, -1, -1, sizeof(::viam::common::v1::DoCommandResponse)}, + { 168, -1, -1, sizeof(::viam::common::v1::GetKinematicsRequest)}, + { 176, -1, -1, sizeof(::viam::common::v1::GetKinematicsResponse)}, + { 184, -1, -1, sizeof(::viam::common::v1::GetGeometriesRequest)}, + { 192, -1, -1, sizeof(::viam::common::v1::GetGeometriesResponse)}, + { 199, -1, -1, sizeof(::viam::common::v1::GetReadingsRequest)}, + { 207, 215, -1, sizeof(::viam::common::v1::GetReadingsResponse_ReadingsEntry_DoNotUse)}, + { 217, -1, -1, sizeof(::viam::common::v1::GetReadingsResponse)}, + { 224, -1, -1, sizeof(::viam::common::v1::LogEntry)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::viam::common::v1::_ResourceName_default_instance_._instance, - &::viam::common::v1::_Pose_default_instance_._instance, - &::viam::common::v1::_Orientation_default_instance_._instance, - &::viam::common::v1::_PoseInFrame_default_instance_._instance, - &::viam::common::v1::_Vector3_default_instance_._instance, - &::viam::common::v1::_Sphere_default_instance_._instance, - &::viam::common::v1::_Capsule_default_instance_._instance, - &::viam::common::v1::_RectangularPrism_default_instance_._instance, - &::viam::common::v1::_Geometry_default_instance_._instance, - &::viam::common::v1::_GeometriesInFrame_default_instance_._instance, - &::viam::common::v1::_PointCloudObject_default_instance_._instance, - &::viam::common::v1::_GeoPoint_default_instance_._instance, - &::viam::common::v1::_GeoGeometry_default_instance_._instance, - &::viam::common::v1::_Transform_default_instance_._instance, - &::viam::common::v1::_WorldState_default_instance_._instance, - &::viam::common::v1::_ActuatorStatus_default_instance_._instance, - &::viam::common::v1::_ResponseMetadata_default_instance_._instance, - &::viam::common::v1::_DoCommandRequest_default_instance_._instance, - &::viam::common::v1::_DoCommandResponse_default_instance_._instance, - &::viam::common::v1::_GetKinematicsRequest_default_instance_._instance, - &::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, - &::viam::common::v1::_LogEntry_default_instance_._instance, -}; -const char descriptor_table_protodef_common_2fv1_2fcommon_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n\026common/v1/common.proto\022\016viam.common.v1" - "\032 google/protobuf/descriptor.proto\032\034goog" - "le/protobuf/struct.proto\032\037google/protobu" - "f/timestamp.proto\"\256\001\n\014ResourceName\022\034\n\tna" - "mespace\030\001 \001(\tR\tnamespace\022\022\n\004type\030\002 \001(\tR\004" - "type\022\030\n\007subtype\030\003 \001(\tR\007subtype\022\022\n\004name\030\004" - " \001(\tR\004name\022\037\n\013remote_path\030\005 \003(\tR\nremoteP" - "ath\022\035\n\nlocal_name\030\006 \001(\tR\tlocalName\"y\n\004Po" - "se\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\022\017\n\003o_x\030\004 \001(\001R\002oX\022\017\n\003o_y\030\005 \001(\001R\002oY\022\017" - "\n\003o_z\030\006 \001(\001R\002oZ\022\024\n\005theta\030\007 \001(\001R\005theta\"V\n" - "\013Orientation\022\017\n\003o_x\030\001 \001(\001R\002oX\022\017\n\003o_y\030\002 \001" - "(\001R\002oY\022\017\n\003o_z\030\003 \001(\001R\002oZ\022\024\n\005theta\030\004 \001(\001R\005" - "theta\"`\n\013PoseInFrame\022\'\n\017reference_frame\030" - "\001 \001(\tR\016referenceFrame\022(\n\004pose\030\002 \001(\0132\024.vi" - "am.common.v1.PoseR\004pose\"3\n\007Vector3\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\"%\n\006" - "Sphere\022\033\n\tradius_mm\030\001 \001(\001R\010radiusMm\"C\n\007C" - "apsule\022\033\n\tradius_mm\030\001 \001(\001R\010radiusMm\022\033\n\tl" - "ength_mm\030\002 \001(\001R\010lengthMm\"D\n\020RectangularP" - "rism\0220\n\007dims_mm\030\001 \001(\0132\027.viam.common.v1.V" - "ector3R\006dimsMm\"\374\001\n\010Geometry\022,\n\006center\030\001 " - "\001(\0132\024.viam.common.v1.PoseR\006center\0220\n\006sph" - "ere\030\002 \001(\0132\026.viam.common.v1.SphereH\000R\006sph" - "ere\0224\n\003box\030\003 \001(\0132 .viam.common.v1.Rectan" - "gularPrismH\000R\003box\0223\n\007capsule\030\005 \001(\0132\027.via" - "m.common.v1.CapsuleH\000R\007capsule\022\024\n\005label\030" - "\004 \001(\tR\005labelB\017\n\rgeometry_type\"v\n\021Geometr" - "iesInFrame\022\'\n\017reference_frame\030\001 \001(\tR\016ref" - "erenceFrame\0228\n\ngeometries\030\002 \003(\0132\030.viam.c" - "ommon.v1.GeometryR\ngeometries\"v\n\020PointCl" - "oudObject\022\037\n\013point_cloud\030\001 \001(\014R\npointClo" - "ud\022A\n\ngeometries\030\002 \001(\0132!.viam.common.v1." - "GeometriesInFrameR\ngeometries\"D\n\010GeoPoin" - "t\022\032\n\010latitude\030\001 \001(\001R\010latitude\022\034\n\tlongitu" - "de\030\002 \001(\001R\tlongitude\"}\n\013GeoGeometry\0224\n\010lo" - "cation\030\001 \001(\0132\030.viam.common.v1.GeoPointR\010" - "location\0228\n\ngeometries\030\002 \003(\0132\030.viam.comm" - "on.v1.GeometryR\ngeometries\"\342\001\n\tTransform" - "\022\'\n\017reference_frame\030\001 \001(\tR\016referenceFram" - "e\022P\n\026pose_in_observer_frame\030\002 \001(\0132\033.viam" - ".common.v1.PoseInFrameR\023poseInObserverFr" - "ame\022F\n\017physical_object\030\003 \001(\0132\030.viam.comm" - "on.v1.GeometryH\000R\016physicalObject\210\001\001B\022\n\020_" - "physical_object\"\210\001\n\nWorldState\022\?\n\tobstac" - "les\030\001 \003(\0132!.viam.common.v1.GeometriesInF" - "rameR\tobstacles\0229\n\ntransforms\030\003 \003(\0132\031.vi" - "am.common.v1.TransformR\ntransforms\"-\n\016Ac" - "tuatorStatus\022\033\n\tis_moving\030\001 \001(\010R\010isMovin" - "g\"d\n\020ResponseMetadata\022@\n\013captured_at\030\001 \001" - "(\0132\032.google.protobuf.TimestampH\000R\ncaptur" - "edAt\210\001\001B\016\n\014_captured_at\"Y\n\020DoCommandRequ" - "est\022\022\n\004name\030\001 \001(\tR\004name\0221\n\007command\030\002 \001(\013" - "2\027.google.protobuf.StructR\007command\"D\n\021Do" - "CommandResponse\022/\n\006result\030\001 \001(\0132\027.google" - ".protobuf.StructR\006result\"Y\n\024GetKinematic" - "sRequest\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005extra\030c " - "\001(\0132\027.google.protobuf.StructR\005extra\"~\n\025G" - "etKinematicsResponse\022<\n\006format\030\001 \001(\0162$.v" - "iam.common.v1.KinematicsFileFormatR\006form" - "at\022\'\n\017kinematics_data\030\002 \001(\014R\016kinematicsD" - "ata\"Y\n\024GetGeometriesRequest\022\022\n\004name\030\001 \001(" - "\tR\004name\022-\n\005extra\030c \001(\0132\027.google.protobuf" - ".StructR\005extra\"Q\n\025GetGeometriesResponse\022" - "8\n\ngeometries\030\001 \003(\0132\030.viam.common.v1.Geo" - "metryR\ngeometries\"W\n\022GetReadingsRequest\022" - "\022\n\004name\030\001 \001(\tR\004name\022-\n\005extra\030c \001(\0132\027.goo" - "gle.protobuf.StructR\005extra\"\271\001\n\023GetReadin" - "gsResponse\022M\n\010readings\030\001 \003(\01321.viam.comm" - "on.v1.GetReadingsResponse.ReadingsEntryR" - "\010readings\032S\n\rReadingsEntry\022\020\n\003key\030\001 \001(\tR" - "\003key\022,\n\005value\030\002 \001(\0132\026.google.protobuf.Va" - "lueR\005value:\0028\001\"\227\002\n\010LogEntry\022\022\n\004host\030\001 \001(" - "\tR\004host\022\024\n\005level\030\002 \001(\tR\005level\022.\n\004time\030\003 " - "\001(\0132\032.google.protobuf.TimestampR\004time\022\037\n" - "\013logger_name\030\004 \001(\tR\nloggerName\022\030\n\007messag" - "e\030\005 \001(\tR\007message\022/\n\006caller\030\006 \001(\0132\027.googl" - "e.protobuf.StructR\006caller\022\024\n\005stack\030\007 \001(\t" - "R\005stack\022/\n\006fields\030\010 \003(\0132\027.google.protobu" - "f.StructR\006fields*\177\n\024KinematicsFileFormat" - "\022&\n\"KINEMATICS_FILE_FORMAT_UNSPECIFIED\020\000" - "\022\036\n\032KINEMATICS_FILE_FORMAT_SVA\020\001\022\037\n\033KINE" - "MATICS_FILE_FORMAT_URDF\020\002:a\n\032safety_hear" - "tbeat_monitored\022\036.google.protobuf.Method" - "Options\030\244\222\005 \001(\010R\030safetyHeartbeatMonitore" - "d\210\001\001B\226\001\n\022com.viam.common.v1B\013CommonProto" - "P\001Z\031go.viam.com/api/common/v1\242\002\003VCX\252\002\016Vi" - "am.Common.V1\312\002\016Viam\\Common\\V1\342\002\032Viam\\Com" - "mon\\V1\\GPBMetadata\352\002\020Viam::Common::V1b\006p" - "roto3" + &::viam::common::v1::_ResourceName_default_instance_._instance, + &::viam::common::v1::_Pose_default_instance_._instance, + &::viam::common::v1::_Orientation_default_instance_._instance, + &::viam::common::v1::_PoseInFrame_default_instance_._instance, + &::viam::common::v1::_Vector3_default_instance_._instance, + &::viam::common::v1::_Sphere_default_instance_._instance, + &::viam::common::v1::_Capsule_default_instance_._instance, + &::viam::common::v1::_RectangularPrism_default_instance_._instance, + &::viam::common::v1::_Geometry_default_instance_._instance, + &::viam::common::v1::_GeometriesInFrame_default_instance_._instance, + &::viam::common::v1::_PointCloudObject_default_instance_._instance, + &::viam::common::v1::_GeoPoint_default_instance_._instance, + &::viam::common::v1::_GeoGeometry_default_instance_._instance, + &::viam::common::v1::_Transform_default_instance_._instance, + &::viam::common::v1::_WorldState_default_instance_._instance, + &::viam::common::v1::_ActuatorStatus_default_instance_._instance, + &::viam::common::v1::_ResponseMetadata_default_instance_._instance, + &::viam::common::v1::_DoCommandRequest_default_instance_._instance, + &::viam::common::v1::_DoCommandResponse_default_instance_._instance, + &::viam::common::v1::_GetKinematicsRequest_default_instance_._instance, + &::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, + &::viam::common::v1::_LogEntry_default_instance_._instance, }; -static const ::_pbi::DescriptorTable* const descriptor_table_common_2fv1_2fcommon_2eproto_deps[3] = - { - &::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto, - &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, - &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto, + +const char descriptor_table_protodef_common_2fv1_2fcommon_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\026common/v1/common.proto\022\016viam.common.v1" + "\032 google/protobuf/descriptor.proto\032\034goog" + "le/protobuf/struct.proto\032\037google/protobu" + "f/timestamp.proto\"\256\001\n\014ResourceName\022\034\n\tna" + "mespace\030\001 \001(\tR\tnamespace\022\022\n\004type\030\002 \001(\tR\004" + "type\022\030\n\007subtype\030\003 \001(\tR\007subtype\022\022\n\004name\030\004" + " \001(\tR\004name\022\037\n\013remote_path\030\005 \003(\tR\nremoteP" + "ath\022\035\n\nlocal_name\030\006 \001(\tR\tlocalName\"y\n\004Po" + "se\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\022\017\n\003o_x\030\004 \001(\001R\002oX\022\017\n\003o_y\030\005 \001(\001R\002oY\022\017" + "\n\003o_z\030\006 \001(\001R\002oZ\022\024\n\005theta\030\007 \001(\001R\005theta\"V\n" + "\013Orientation\022\017\n\003o_x\030\001 \001(\001R\002oX\022\017\n\003o_y\030\002 \001" + "(\001R\002oY\022\017\n\003o_z\030\003 \001(\001R\002oZ\022\024\n\005theta\030\004 \001(\001R\005" + "theta\"`\n\013PoseInFrame\022\'\n\017reference_frame\030" + "\001 \001(\tR\016referenceFrame\022(\n\004pose\030\002 \001(\0132\024.vi" + "am.common.v1.PoseR\004pose\"3\n\007Vector3\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\"%\n\006" + "Sphere\022\033\n\tradius_mm\030\001 \001(\001R\010radiusMm\"C\n\007C" + "apsule\022\033\n\tradius_mm\030\001 \001(\001R\010radiusMm\022\033\n\tl" + "ength_mm\030\002 \001(\001R\010lengthMm\"D\n\020RectangularP" + "rism\0220\n\007dims_mm\030\001 \001(\0132\027.viam.common.v1.V" + "ector3R\006dimsMm\"\374\001\n\010Geometry\022,\n\006center\030\001 " + "\001(\0132\024.viam.common.v1.PoseR\006center\0220\n\006sph" + "ere\030\002 \001(\0132\026.viam.common.v1.SphereH\000R\006sph" + "ere\0224\n\003box\030\003 \001(\0132 .viam.common.v1.Rectan" + "gularPrismH\000R\003box\0223\n\007capsule\030\005 \001(\0132\027.via" + "m.common.v1.CapsuleH\000R\007capsule\022\024\n\005label\030" + "\004 \001(\tR\005labelB\017\n\rgeometry_type\"v\n\021Geometr" + "iesInFrame\022\'\n\017reference_frame\030\001 \001(\tR\016ref" + "erenceFrame\0228\n\ngeometries\030\002 \003(\0132\030.viam.c" + "ommon.v1.GeometryR\ngeometries\"v\n\020PointCl" + "oudObject\022\037\n\013point_cloud\030\001 \001(\014R\npointClo" + "ud\022A\n\ngeometries\030\002 \001(\0132!.viam.common.v1." + "GeometriesInFrameR\ngeometries\"D\n\010GeoPoin" + "t\022\032\n\010latitude\030\001 \001(\001R\010latitude\022\034\n\tlongitu" + "de\030\002 \001(\001R\tlongitude\"}\n\013GeoGeometry\0224\n\010lo" + "cation\030\001 \001(\0132\030.viam.common.v1.GeoPointR\010" + "location\0228\n\ngeometries\030\002 \003(\0132\030.viam.comm" + "on.v1.GeometryR\ngeometries\"\342\001\n\tTransform" + "\022\'\n\017reference_frame\030\001 \001(\tR\016referenceFram" + "e\022P\n\026pose_in_observer_frame\030\002 \001(\0132\033.viam" + ".common.v1.PoseInFrameR\023poseInObserverFr" + "ame\022F\n\017physical_object\030\003 \001(\0132\030.viam.comm" + "on.v1.GeometryH\000R\016physicalObject\210\001\001B\022\n\020_" + "physical_object\"\210\001\n\nWorldState\022\?\n\tobstac" + "les\030\001 \003(\0132!.viam.common.v1.GeometriesInF" + "rameR\tobstacles\0229\n\ntransforms\030\003 \003(\0132\031.vi" + "am.common.v1.TransformR\ntransforms\"-\n\016Ac" + "tuatorStatus\022\033\n\tis_moving\030\001 \001(\010R\010isMovin" + "g\"d\n\020ResponseMetadata\022@\n\013captured_at\030\001 \001" + "(\0132\032.google.protobuf.TimestampH\000R\ncaptur" + "edAt\210\001\001B\016\n\014_captured_at\"Y\n\020DoCommandRequ" + "est\022\022\n\004name\030\001 \001(\tR\004name\0221\n\007command\030\002 \001(\013" + "2\027.google.protobuf.StructR\007command\"D\n\021Do" + "CommandResponse\022/\n\006result\030\001 \001(\0132\027.google" + ".protobuf.StructR\006result\"Y\n\024GetKinematic" + "sRequest\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005extra\030c " + "\001(\0132\027.google.protobuf.StructR\005extra\"~\n\025G" + "etKinematicsResponse\022<\n\006format\030\001 \001(\0162$.v" + "iam.common.v1.KinematicsFileFormatR\006form" + "at\022\'\n\017kinematics_data\030\002 \001(\014R\016kinematicsD" + "ata\"Y\n\024GetGeometriesRequest\022\022\n\004name\030\001 \001(" + "\tR\004name\022-\n\005extra\030c \001(\0132\027.google.protobuf" + ".StructR\005extra\"Q\n\025GetGeometriesResponse\022" + "8\n\ngeometries\030\001 \003(\0132\030.viam.common.v1.Geo" + "metryR\ngeometries\"W\n\022GetReadingsRequest\022" + "\022\n\004name\030\001 \001(\tR\004name\022-\n\005extra\030c \001(\0132\027.goo" + "gle.protobuf.StructR\005extra\"\271\001\n\023GetReadin" + "gsResponse\022M\n\010readings\030\001 \003(\01321.viam.comm" + "on.v1.GetReadingsResponse.ReadingsEntryR" + "\010readings\032S\n\rReadingsEntry\022\020\n\003key\030\001 \001(\tR" + "\003key\022,\n\005value\030\002 \001(\0132\026.google.protobuf.Va" + "lueR\005value:\0028\001\"\227\002\n\010LogEntry\022\022\n\004host\030\001 \001(" + "\tR\004host\022\024\n\005level\030\002 \001(\tR\005level\022.\n\004time\030\003 " + "\001(\0132\032.google.protobuf.TimestampR\004time\022\037\n" + "\013logger_name\030\004 \001(\tR\nloggerName\022\030\n\007messag" + "e\030\005 \001(\tR\007message\022/\n\006caller\030\006 \001(\0132\027.googl" + "e.protobuf.StructR\006caller\022\024\n\005stack\030\007 \001(\t" + "R\005stack\022/\n\006fields\030\010 \003(\0132\027.google.protobu" + "f.StructR\006fields*\177\n\024KinematicsFileFormat" + "\022&\n\"KINEMATICS_FILE_FORMAT_UNSPECIFIED\020\000" + "\022\036\n\032KINEMATICS_FILE_FORMAT_SVA\020\001\022\037\n\033KINE" + "MATICS_FILE_FORMAT_URDF\020\002:a\n\032safety_hear" + "tbeat_monitored\022\036.google.protobuf.Method" + "Options\030\244\222\005 \001(\010R\030safetyHeartbeatMonitore" + "d\210\001\001B/\n\022com.viam.common.v1Z\031go.viam.com/" + "api/common/v1b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_common_2fv1_2fcommon_2eproto_deps[3] = { + &::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto, + &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, + &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto, }; -static ::absl::once_flag descriptor_table_common_2fv1_2fcommon_2eproto_once; +static ::_pbi::once_flag descriptor_table_common_2fv1_2fcommon_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_common_2fv1_2fcommon_2eproto = { - false, - false, - 3565, - descriptor_table_protodef_common_2fv1_2fcommon_2eproto, + false, false, 3461, 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, - 27, - 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, + &descriptor_table_common_2fv1_2fcommon_2eproto_once, descriptor_table_common_2fv1_2fcommon_2eproto_deps, 3, 27, + 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, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_common_2fv1_2fcommon_2eproto_getter() { return &descriptor_table_common_2fv1_2fcommon_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_common_2fv1_2fcommon_2eproto(&descriptor_table_common_2fv1_2fcommon_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_common_2fv1_2fcommon_2eproto(&descriptor_table_common_2fv1_2fcommon_2eproto); namespace viam { namespace common { namespace v1 { -const ::google::protobuf::EnumDescriptor* KinematicsFileFormat_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_common_2fv1_2fcommon_2eproto); +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* KinematicsFileFormat_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_common_2fv1_2fcommon_2eproto); return file_level_enum_descriptors_common_2fv1_2fcommon_2eproto[0]; } -PROTOBUF_CONSTINIT const uint32_t KinematicsFileFormat_internal_data_[] = { - 196608u, 0u, }; bool KinematicsFileFormat_IsValid(int value) { - return 0 <= value && value <= 2; + switch (value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } } + + // =================================================================== class ResourceName::_Internal { public: }; -ResourceName::ResourceName(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ResourceName::ResourceName(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + remote_path_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.common.v1.ResourceName) } -inline PROTOBUF_NDEBUG_INLINE ResourceName::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : remote_path_{visibility, arena, from.remote_path_}, - namespace__(arena, from.namespace__), - type_(arena, from.type_), - subtype_(arena, from.subtype_), - name_(arena, from.name_), - local_name_(arena, from.local_name_), - _cached_size_{0} {} - -ResourceName::ResourceName( - ::google::protobuf::Arena* arena, - const ResourceName& from) - : ::google::protobuf::Message(arena) { - ResourceName* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +ResourceName::ResourceName(const ResourceName& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + remote_path_(from.remote_path_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + namespace__.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + namespace__.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_namespace_().empty()) { + namespace__.Set(from._internal_namespace_(), + 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()); + } + subtype_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + subtype_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_subtype().empty()) { + subtype_.Set(from._internal_subtype(), + GetArenaForAllocation()); + } + 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()); + } + local_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + local_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_local_name().empty()) { + local_name_.Set(from._internal_local_name(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.common.v1.ResourceName) } -inline PROTOBUF_NDEBUG_INLINE ResourceName::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : remote_path_{visibility, arena}, - namespace__(arena), - type_(arena), - subtype_(arena), - name_(arena), - local_name_(arena), - _cached_size_{0} {} -inline void ResourceName::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void ResourceName::SharedCtor() { +namespace__.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + namespace__.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 +subtype_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + subtype_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +local_name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + local_name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + ResourceName::~ResourceName() { // @@protoc_insertion_point(destructor:viam.common.v1.ResourceName) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ResourceName::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.namespace__.Destroy(); - _impl_.type_.Destroy(); - _impl_.subtype_.Destroy(); - _impl_.name_.Destroy(); - _impl_.local_name_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + namespace__.Destroy(); + type_.Destroy(); + subtype_.Destroy(); + name_.Destroy(); + local_name_.Destroy(); } -PROTOBUF_NOINLINE void ResourceName::Clear() { +void ResourceName::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ResourceName::Clear() { // @@protoc_insertion_point(message_clear_start:viam.common.v1.ResourceName) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.remote_path_.Clear(); - _impl_.namespace__.ClearToEmpty(); - _impl_.type_.ClearToEmpty(); - _impl_.subtype_.ClearToEmpty(); - _impl_.name_.ClearToEmpty(); - _impl_.local_name_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ResourceName::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + remote_path_.Clear(); + namespace__.ClearToEmpty(); + type_.ClearToEmpty(); + subtype_.ClearToEmpty(); + name_.ClearToEmpty(); + local_name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ResourceName::_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 namespace = 1 [json_name = "namespace"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_namespace_(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.common.v1.ResourceName.namespace")); + } else + goto handle_unusual; + continue; + // string type = 2 [json_name = "type"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.common.v1.ResourceName.type")); + } else + goto handle_unusual; + continue; + // string subtype = 3 [json_name = "subtype"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_subtype(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.common.v1.ResourceName.subtype")); + } else + goto handle_unusual; + continue; + // string name = 4 [json_name = "name"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.common.v1.ResourceName.name")); + } else + goto handle_unusual; + continue; + // repeated string remote_path = 5 [json_name = "remotePath"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_remote_path(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.common.v1.ResourceName.remote_path")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr)); + } else + goto handle_unusual; + continue; + // string local_name = 6 [json_name = "localName"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + auto str = _internal_mutable_local_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.common.v1.ResourceName.local_name")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 6, 0, 81, 2> ResourceName::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 6, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967232, // skipmap - offsetof(decltype(_table_), field_entries), - 6, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_ResourceName_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string namespace = 1 [json_name = "namespace"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ResourceName, _impl_.namespace__)}}, - // string type = 2 [json_name = "type"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(ResourceName, _impl_.type_)}}, - // string subtype = 3 [json_name = "subtype"]; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(ResourceName, _impl_.subtype_)}}, - // string name = 4 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(ResourceName, _impl_.name_)}}, - // repeated string remote_path = 5 [json_name = "remotePath"]; - {::_pbi::TcParser::FastUR1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(ResourceName, _impl_.remote_path_)}}, - // string local_name = 6 [json_name = "localName"]; - {::_pbi::TcParser::FastUS1, - {50, 63, 0, PROTOBUF_FIELD_OFFSET(ResourceName, _impl_.local_name_)}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string namespace = 1 [json_name = "namespace"]; - {PROTOBUF_FIELD_OFFSET(ResourceName, _impl_.namespace__), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string type = 2 [json_name = "type"]; - {PROTOBUF_FIELD_OFFSET(ResourceName, _impl_.type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string subtype = 3 [json_name = "subtype"]; - {PROTOBUF_FIELD_OFFSET(ResourceName, _impl_.subtype_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string name = 4 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(ResourceName, _impl_.name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated string remote_path = 5 [json_name = "remotePath"]; - {PROTOBUF_FIELD_OFFSET(ResourceName, _impl_.remote_path_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - // string local_name = 6 [json_name = "localName"]; - {PROTOBUF_FIELD_OFFSET(ResourceName, _impl_.local_name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\33\11\4\7\4\13\12\0" - "viam.common.v1.ResourceName" - "namespace" - "type" - "subtype" - "name" - "remote_path" - "local_name" - }}, -}; - -::uint8_t* ResourceName::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ResourceName::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.common.v1.ResourceName) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string namespace = 1 [json_name = "namespace"]; if (!this->_internal_namespace_().empty()) { - const std::string& _s = this->_internal_namespace_(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.common.v1.ResourceName.namespace"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_namespace_().data(), static_cast(this->_internal_namespace_().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.common.v1.ResourceName.namespace"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_namespace_(), target); } // string type = 2 [json_name = "type"]; if (!this->_internal_type().empty()) { - const std::string& _s = this->_internal_type(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.common.v1.ResourceName.type"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_type().data(), static_cast(this->_internal_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.common.v1.ResourceName.type"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_type(), target); } // string subtype = 3 [json_name = "subtype"]; if (!this->_internal_subtype().empty()) { - const std::string& _s = this->_internal_subtype(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.common.v1.ResourceName.subtype"); - target = stream->WriteStringMaybeAliased(3, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_subtype().data(), static_cast(this->_internal_subtype().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.common.v1.ResourceName.subtype"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_subtype(), target); } // string name = 4 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.common.v1.ResourceName.name"); - target = stream->WriteStringMaybeAliased(4, _s, target); + ::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.ResourceName.name"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_name(), target); } // repeated string remote_path = 5 [json_name = "remotePath"]; - for (int i = 0, n = this->_internal_remote_path_size(); i < n; ++i) { - const auto& s = this->_internal_remote_path().Get(i); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.common.v1.ResourceName.remote_path"); + for (int i = 0, n = this->_internal_remote_path_size(); i < n; i++) { + const auto& s = this->_internal_remote_path(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.common.v1.ResourceName.remote_path"); target = stream->WriteString(5, s, target); } // string local_name = 6 [json_name = "localName"]; if (!this->_internal_local_name().empty()) { - const std::string& _s = this->_internal_local_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.common.v1.ResourceName.local_name"); - target = stream->WriteStringMaybeAliased(6, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_local_name().data(), static_cast(this->_internal_local_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.common.v1.ResourceName.local_name"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_local_name(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.ResourceName) return target; } -::size_t ResourceName::ByteSizeLong() const { +size_t ResourceName::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.common.v1.ResourceName) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated string remote_path = 5 [json_name = "remotePath"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_remote_path().size()); - for (int i = 0, n = _internal_remote_path().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - _internal_remote_path().Get(i)); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(remote_path_.size()); + for (int i = 0, n = remote_path_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + remote_path_.Get(i)); } + // string namespace = 1 [json_name = "namespace"]; if (!this->_internal_namespace_().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_namespace_()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_namespace_()); } // string type = 2 [json_name = "type"]; if (!this->_internal_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_type()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_type()); } // string subtype = 3 [json_name = "subtype"]; if (!this->_internal_subtype().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_subtype()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_subtype()); } // string name = 4 [json_name = "name"]; if (!this->_internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // string local_name = 6 [json_name = "localName"]; if (!this->_internal_local_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_local_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_local_name()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ResourceName::_class_data_ = { - ResourceName::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ResourceName::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ResourceName::MergeImpl }; -const ::google::protobuf::Message::ClassData* ResourceName::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ResourceName::GetClassData() const { return &_class_data_; } + +void ResourceName::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ResourceName::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.ResourceName) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ResourceName::MergeFrom(const ResourceName& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.ResourceName) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_remote_path()->MergeFrom(from._internal_remote_path()); + remote_path_.MergeFrom(from.remote_path_); if (!from._internal_namespace_().empty()) { - _this->_internal_set_namespace_(from._internal_namespace_()); + _internal_set_namespace_(from._internal_namespace_()); } if (!from._internal_type().empty()) { - _this->_internal_set_type(from._internal_type()); + _internal_set_type(from._internal_type()); } if (!from._internal_subtype().empty()) { - _this->_internal_set_subtype(from._internal_subtype()); + _internal_set_subtype(from._internal_subtype()); } if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (!from._internal_local_name().empty()) { - _this->_internal_set_local_name(from._internal_local_name()); + _internal_set_local_name(from._internal_local_name()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ResourceName::CopyFrom(const ResourceName& from) { @@ -1456,412 +1208,413 @@ void ResourceName::CopyFrom(const ResourceName& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ResourceName::IsInitialized() const { +bool ResourceName::IsInitialized() const { return true; } -::_pbi::CachedSize* ResourceName::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ResourceName::InternalSwap(ResourceName* PROTOBUF_RESTRICT other) { +void ResourceName::InternalSwap(ResourceName* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.remote_path_.InternalSwap(&other->_impl_.remote_path_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.namespace__, &other->_impl_.namespace__, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.type_, &other->_impl_.type_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.subtype_, &other->_impl_.subtype_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.local_name_, &other->_impl_.local_name_, arena); -} - -::google::protobuf::Metadata ResourceName::GetMetadata() const { + remote_path_.InternalSwap(&other->remote_path_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &namespace__, lhs_arena, + &other->namespace__, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &type_, lhs_arena, + &other->type_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &subtype_, lhs_arena, + &other->subtype_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &local_name_, lhs_arena, + &other->local_name_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ResourceName::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[0]); } + // =================================================================== class Pose::_Internal { public: }; -Pose::Pose(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Pose::Pose(::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.Pose) } -Pose::Pose( - ::google::protobuf::Arena* arena, const Pose& from) - : Pose(arena) { - MergeFrom(from); +Pose::Pose(const Pose& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&x_, &from.x_, + static_cast(reinterpret_cast(&theta_) - + reinterpret_cast(&x_)) + sizeof(theta_)); + // @@protoc_insertion_point(copy_constructor:viam.common.v1.Pose) } -inline PROTOBUF_NDEBUG_INLINE Pose::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void Pose::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, x_), - 0, - offsetof(Impl_, theta_) - - offsetof(Impl_, x_) + - sizeof(Impl_::theta_)); +inline void Pose::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&x_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&theta_) - + reinterpret_cast(&x_)) + sizeof(theta_)); } + Pose::~Pose() { // @@protoc_insertion_point(destructor:viam.common.v1.Pose) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Pose::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void Pose::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void Pose::Clear() { +void Pose::Clear() { // @@protoc_insertion_point(message_clear_start:viam.common.v1.Pose) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&_impl_.x_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.theta_) - - reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.theta_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Pose::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + ::memset(&x_, 0, static_cast( + reinterpret_cast(&theta_) - + reinterpret_cast(&x_)) + sizeof(theta_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Pose::_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) { + // double x = 1 [json_name = "x"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 9)) { + x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double y = 2 [json_name = "y"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 17)) { + y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double z = 3 [json_name = "z"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 25)) { + z_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double o_x = 4 [json_name = "oX"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 33)) { + o_x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double o_y = 5 [json_name = "oY"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 41)) { + o_y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double o_z = 6 [json_name = "oZ"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 49)) { + o_z_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double theta = 7 [json_name = "theta"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 57)) { + theta_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 7, 0, 0, 2> Pose::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 7, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967168, // skipmap - offsetof(decltype(_table_), field_entries), - 7, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_Pose_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // double x = 1 [json_name = "x"]; - {::_pbi::TcParser::FastF64S1, - {9, 63, 0, PROTOBUF_FIELD_OFFSET(Pose, _impl_.x_)}}, - // double y = 2 [json_name = "y"]; - {::_pbi::TcParser::FastF64S1, - {17, 63, 0, PROTOBUF_FIELD_OFFSET(Pose, _impl_.y_)}}, - // double z = 3 [json_name = "z"]; - {::_pbi::TcParser::FastF64S1, - {25, 63, 0, PROTOBUF_FIELD_OFFSET(Pose, _impl_.z_)}}, - // double o_x = 4 [json_name = "oX"]; - {::_pbi::TcParser::FastF64S1, - {33, 63, 0, PROTOBUF_FIELD_OFFSET(Pose, _impl_.o_x_)}}, - // double o_y = 5 [json_name = "oY"]; - {::_pbi::TcParser::FastF64S1, - {41, 63, 0, PROTOBUF_FIELD_OFFSET(Pose, _impl_.o_y_)}}, - // double o_z = 6 [json_name = "oZ"]; - {::_pbi::TcParser::FastF64S1, - {49, 63, 0, PROTOBUF_FIELD_OFFSET(Pose, _impl_.o_z_)}}, - // double theta = 7 [json_name = "theta"]; - {::_pbi::TcParser::FastF64S1, - {57, 63, 0, PROTOBUF_FIELD_OFFSET(Pose, _impl_.theta_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // double x = 1 [json_name = "x"]; - {PROTOBUF_FIELD_OFFSET(Pose, _impl_.x_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double y = 2 [json_name = "y"]; - {PROTOBUF_FIELD_OFFSET(Pose, _impl_.y_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double z = 3 [json_name = "z"]; - {PROTOBUF_FIELD_OFFSET(Pose, _impl_.z_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double o_x = 4 [json_name = "oX"]; - {PROTOBUF_FIELD_OFFSET(Pose, _impl_.o_x_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double o_y = 5 [json_name = "oY"]; - {PROTOBUF_FIELD_OFFSET(Pose, _impl_.o_y_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double o_z = 6 [json_name = "oZ"]; - {PROTOBUF_FIELD_OFFSET(Pose, _impl_.o_z_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double theta = 7 [json_name = "theta"]; - {PROTOBUF_FIELD_OFFSET(Pose, _impl_.theta_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* Pose::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Pose::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.common.v1.Pose) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // double x = 1 [json_name = "x"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_x = this->_internal_x(); - ::uint64_t raw_x; + uint64_t raw_x; memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); if (raw_x != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 1, this->_internal_x(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(1, this->_internal_x(), target); } // double y = 2 [json_name = "y"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_y = this->_internal_y(); - ::uint64_t raw_y; + uint64_t raw_y; memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); if (raw_y != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 2, this->_internal_y(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_y(), target); } // double z = 3 [json_name = "z"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_z = this->_internal_z(); - ::uint64_t raw_z; + uint64_t raw_z; memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); if (raw_z != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 3, this->_internal_z(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(3, this->_internal_z(), target); } // double o_x = 4 [json_name = "oX"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_o_x = this->_internal_o_x(); - ::uint64_t raw_o_x; + uint64_t raw_o_x; memcpy(&raw_o_x, &tmp_o_x, sizeof(tmp_o_x)); if (raw_o_x != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 4, this->_internal_o_x(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(4, this->_internal_o_x(), target); } // double o_y = 5 [json_name = "oY"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_o_y = this->_internal_o_y(); - ::uint64_t raw_o_y; + uint64_t raw_o_y; memcpy(&raw_o_y, &tmp_o_y, sizeof(tmp_o_y)); if (raw_o_y != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 5, this->_internal_o_y(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(5, this->_internal_o_y(), target); } // double o_z = 6 [json_name = "oZ"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_o_z = this->_internal_o_z(); - ::uint64_t raw_o_z; + uint64_t raw_o_z; memcpy(&raw_o_z, &tmp_o_z, sizeof(tmp_o_z)); if (raw_o_z != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 6, this->_internal_o_z(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(6, this->_internal_o_z(), target); } // double theta = 7 [json_name = "theta"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_theta = this->_internal_theta(); - ::uint64_t raw_theta; + uint64_t raw_theta; memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta)); if (raw_theta != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 7, this->_internal_theta(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(7, this->_internal_theta(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.Pose) return target; } -::size_t Pose::ByteSizeLong() const { +size_t Pose::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.common.v1.Pose) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // double x = 1 [json_name = "x"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_x = this->_internal_x(); - ::uint64_t raw_x; + uint64_t raw_x; memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); if (raw_x != 0) { - total_size += 9; + total_size += 1 + 8; } // double y = 2 [json_name = "y"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_y = this->_internal_y(); - ::uint64_t raw_y; + uint64_t raw_y; memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); if (raw_y != 0) { - total_size += 9; + total_size += 1 + 8; } // double z = 3 [json_name = "z"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_z = this->_internal_z(); - ::uint64_t raw_z; + uint64_t raw_z; memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); if (raw_z != 0) { - total_size += 9; + total_size += 1 + 8; } // double o_x = 4 [json_name = "oX"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_o_x = this->_internal_o_x(); - ::uint64_t raw_o_x; + uint64_t raw_o_x; memcpy(&raw_o_x, &tmp_o_x, sizeof(tmp_o_x)); if (raw_o_x != 0) { - total_size += 9; + total_size += 1 + 8; } // double o_y = 5 [json_name = "oY"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_o_y = this->_internal_o_y(); - ::uint64_t raw_o_y; + uint64_t raw_o_y; memcpy(&raw_o_y, &tmp_o_y, sizeof(tmp_o_y)); if (raw_o_y != 0) { - total_size += 9; + total_size += 1 + 8; } // double o_z = 6 [json_name = "oZ"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_o_z = this->_internal_o_z(); - ::uint64_t raw_o_z; + uint64_t raw_o_z; memcpy(&raw_o_z, &tmp_o_z, sizeof(tmp_o_z)); if (raw_o_z != 0) { - total_size += 9; + total_size += 1 + 8; } // double theta = 7 [json_name = "theta"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_theta = this->_internal_theta(); - ::uint64_t raw_theta; + uint64_t raw_theta; memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta)); if (raw_theta != 0) { - total_size += 9; + total_size += 1 + 8; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Pose::_class_data_ = { - Pose::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Pose::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Pose::MergeImpl }; -const ::google::protobuf::Message::ClassData* Pose::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Pose::GetClassData() const { return &_class_data_; } + +void Pose::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Pose::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.Pose) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Pose::MergeFrom(const Pose& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.Pose) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_x = from._internal_x(); - ::uint64_t raw_x; + uint64_t raw_x; memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); if (raw_x != 0) { - _this->_internal_set_x(from._internal_x()); + _internal_set_x(from._internal_x()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_y = from._internal_y(); - ::uint64_t raw_y; + uint64_t raw_y; memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); if (raw_y != 0) { - _this->_internal_set_y(from._internal_y()); + _internal_set_y(from._internal_y()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_z = from._internal_z(); - ::uint64_t raw_z; + uint64_t raw_z; memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); if (raw_z != 0) { - _this->_internal_set_z(from._internal_z()); + _internal_set_z(from._internal_z()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_o_x = from._internal_o_x(); - ::uint64_t raw_o_x; + uint64_t raw_o_x; memcpy(&raw_o_x, &tmp_o_x, sizeof(tmp_o_x)); if (raw_o_x != 0) { - _this->_internal_set_o_x(from._internal_o_x()); + _internal_set_o_x(from._internal_o_x()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_o_y = from._internal_o_y(); - ::uint64_t raw_o_y; + uint64_t raw_o_y; memcpy(&raw_o_y, &tmp_o_y, sizeof(tmp_o_y)); if (raw_o_y != 0) { - _this->_internal_set_o_y(from._internal_o_y()); + _internal_set_o_y(from._internal_o_y()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_o_z = from._internal_o_z(); - ::uint64_t raw_o_z; + uint64_t raw_o_z; memcpy(&raw_o_z, &tmp_o_z, sizeof(tmp_o_z)); if (raw_o_z != 0) { - _this->_internal_set_o_z(from._internal_o_z()); + _internal_set_o_z(from._internal_o_z()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_theta = from._internal_theta(); - ::uint64_t raw_theta; + uint64_t raw_theta; memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta)); if (raw_theta != 0) { - _this->_internal_set_theta(from._internal_theta()); + _internal_set_theta(from._internal_theta()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Pose::CopyFrom(const Pose& from) { @@ -1871,301 +1624,294 @@ void Pose::CopyFrom(const Pose& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Pose::IsInitialized() const { +bool Pose::IsInitialized() const { return true; } -::_pbi::CachedSize* Pose::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Pose::InternalSwap(Pose* PROTOBUF_RESTRICT other) { +void Pose::InternalSwap(Pose* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(Pose, _impl_.theta_) - + sizeof(Pose::_impl_.theta_) - - PROTOBUF_FIELD_OFFSET(Pose, _impl_.x_)>( - reinterpret_cast(&_impl_.x_), - reinterpret_cast(&other->_impl_.x_)); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Pose, theta_) + + sizeof(Pose::theta_) + - PROTOBUF_FIELD_OFFSET(Pose, x_)>( + reinterpret_cast(&x_), + reinterpret_cast(&other->x_)); } -::google::protobuf::Metadata Pose::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Pose::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[1]); } + // =================================================================== class Orientation::_Internal { public: }; -Orientation::Orientation(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Orientation::Orientation(::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.Orientation) } -Orientation::Orientation( - ::google::protobuf::Arena* arena, const Orientation& from) - : Orientation(arena) { - MergeFrom(from); +Orientation::Orientation(const Orientation& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&o_x_, &from.o_x_, + static_cast(reinterpret_cast(&theta_) - + reinterpret_cast(&o_x_)) + sizeof(theta_)); + // @@protoc_insertion_point(copy_constructor:viam.common.v1.Orientation) } -inline PROTOBUF_NDEBUG_INLINE Orientation::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void Orientation::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, o_x_), - 0, - offsetof(Impl_, theta_) - - offsetof(Impl_, o_x_) + - sizeof(Impl_::theta_)); +inline void Orientation::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&o_x_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&theta_) - + reinterpret_cast(&o_x_)) + sizeof(theta_)); } + Orientation::~Orientation() { // @@protoc_insertion_point(destructor:viam.common.v1.Orientation) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Orientation::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void Orientation::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void Orientation::Clear() { +void Orientation::Clear() { // @@protoc_insertion_point(message_clear_start:viam.common.v1.Orientation) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&_impl_.o_x_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.theta_) - - reinterpret_cast(&_impl_.o_x_)) + sizeof(_impl_.theta_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Orientation::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + ::memset(&o_x_, 0, static_cast( + reinterpret_cast(&theta_) - + reinterpret_cast(&o_x_)) + sizeof(theta_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Orientation::_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) { + // double o_x = 1 [json_name = "oX"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 9)) { + o_x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double o_y = 2 [json_name = "oY"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 17)) { + o_y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double o_z = 3 [json_name = "oZ"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 25)) { + o_z_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double theta = 4 [json_name = "theta"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 33)) { + theta_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 0, 0, 2> Orientation::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_Orientation_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // double theta = 4 [json_name = "theta"]; - {::_pbi::TcParser::FastF64S1, - {33, 63, 0, PROTOBUF_FIELD_OFFSET(Orientation, _impl_.theta_)}}, - // double o_x = 1 [json_name = "oX"]; - {::_pbi::TcParser::FastF64S1, - {9, 63, 0, PROTOBUF_FIELD_OFFSET(Orientation, _impl_.o_x_)}}, - // double o_y = 2 [json_name = "oY"]; - {::_pbi::TcParser::FastF64S1, - {17, 63, 0, PROTOBUF_FIELD_OFFSET(Orientation, _impl_.o_y_)}}, - // double o_z = 3 [json_name = "oZ"]; - {::_pbi::TcParser::FastF64S1, - {25, 63, 0, PROTOBUF_FIELD_OFFSET(Orientation, _impl_.o_z_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // double o_x = 1 [json_name = "oX"]; - {PROTOBUF_FIELD_OFFSET(Orientation, _impl_.o_x_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double o_y = 2 [json_name = "oY"]; - {PROTOBUF_FIELD_OFFSET(Orientation, _impl_.o_y_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double o_z = 3 [json_name = "oZ"]; - {PROTOBUF_FIELD_OFFSET(Orientation, _impl_.o_z_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double theta = 4 [json_name = "theta"]; - {PROTOBUF_FIELD_OFFSET(Orientation, _impl_.theta_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* Orientation::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Orientation::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.common.v1.Orientation) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // double o_x = 1 [json_name = "oX"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_o_x = this->_internal_o_x(); - ::uint64_t raw_o_x; + uint64_t raw_o_x; memcpy(&raw_o_x, &tmp_o_x, sizeof(tmp_o_x)); if (raw_o_x != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 1, this->_internal_o_x(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(1, this->_internal_o_x(), target); } // double o_y = 2 [json_name = "oY"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_o_y = this->_internal_o_y(); - ::uint64_t raw_o_y; + uint64_t raw_o_y; memcpy(&raw_o_y, &tmp_o_y, sizeof(tmp_o_y)); if (raw_o_y != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 2, this->_internal_o_y(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_o_y(), target); } // double o_z = 3 [json_name = "oZ"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_o_z = this->_internal_o_z(); - ::uint64_t raw_o_z; + uint64_t raw_o_z; memcpy(&raw_o_z, &tmp_o_z, sizeof(tmp_o_z)); if (raw_o_z != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 3, this->_internal_o_z(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(3, this->_internal_o_z(), target); } // double theta = 4 [json_name = "theta"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_theta = this->_internal_theta(); - ::uint64_t raw_theta; + uint64_t raw_theta; memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta)); if (raw_theta != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 4, this->_internal_theta(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(4, this->_internal_theta(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.Orientation) return target; } -::size_t Orientation::ByteSizeLong() const { +size_t Orientation::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.common.v1.Orientation) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // double o_x = 1 [json_name = "oX"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_o_x = this->_internal_o_x(); - ::uint64_t raw_o_x; + uint64_t raw_o_x; memcpy(&raw_o_x, &tmp_o_x, sizeof(tmp_o_x)); if (raw_o_x != 0) { - total_size += 9; + total_size += 1 + 8; } // double o_y = 2 [json_name = "oY"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_o_y = this->_internal_o_y(); - ::uint64_t raw_o_y; + uint64_t raw_o_y; memcpy(&raw_o_y, &tmp_o_y, sizeof(tmp_o_y)); if (raw_o_y != 0) { - total_size += 9; + total_size += 1 + 8; } // double o_z = 3 [json_name = "oZ"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_o_z = this->_internal_o_z(); - ::uint64_t raw_o_z; + uint64_t raw_o_z; memcpy(&raw_o_z, &tmp_o_z, sizeof(tmp_o_z)); if (raw_o_z != 0) { - total_size += 9; + total_size += 1 + 8; } // double theta = 4 [json_name = "theta"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_theta = this->_internal_theta(); - ::uint64_t raw_theta; + uint64_t raw_theta; memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta)); if (raw_theta != 0) { - total_size += 9; + total_size += 1 + 8; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Orientation::_class_data_ = { - Orientation::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Orientation::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Orientation::MergeImpl }; -const ::google::protobuf::Message::ClassData* Orientation::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Orientation::GetClassData() const { return &_class_data_; } + +void Orientation::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Orientation::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.Orientation) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Orientation::MergeFrom(const Orientation& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.Orientation) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_o_x = from._internal_o_x(); - ::uint64_t raw_o_x; + uint64_t raw_o_x; memcpy(&raw_o_x, &tmp_o_x, sizeof(tmp_o_x)); if (raw_o_x != 0) { - _this->_internal_set_o_x(from._internal_o_x()); + _internal_set_o_x(from._internal_o_x()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_o_y = from._internal_o_y(); - ::uint64_t raw_o_y; + uint64_t raw_o_y; memcpy(&raw_o_y, &tmp_o_y, sizeof(tmp_o_y)); if (raw_o_y != 0) { - _this->_internal_set_o_y(from._internal_o_y()); + _internal_set_o_y(from._internal_o_y()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_o_z = from._internal_o_z(); - ::uint64_t raw_o_z; + uint64_t raw_o_z; memcpy(&raw_o_z, &tmp_o_z, sizeof(tmp_o_z)); if (raw_o_z != 0) { - _this->_internal_set_o_z(from._internal_o_z()); + _internal_set_o_z(from._internal_o_z()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_theta = from._internal_theta(); - ::uint64_t raw_theta; + uint64_t raw_theta; memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta)); if (raw_theta != 0) { - _this->_internal_set_theta(from._internal_theta()); + _internal_set_theta(from._internal_theta()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Orientation::CopyFrom(const Orientation& from) { @@ -2175,238 +1921,233 @@ void Orientation::CopyFrom(const Orientation& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Orientation::IsInitialized() const { +bool Orientation::IsInitialized() const { return true; } -::_pbi::CachedSize* Orientation::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Orientation::InternalSwap(Orientation* PROTOBUF_RESTRICT other) { +void Orientation::InternalSwap(Orientation* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(Orientation, _impl_.theta_) - + sizeof(Orientation::_impl_.theta_) - - PROTOBUF_FIELD_OFFSET(Orientation, _impl_.o_x_)>( - reinterpret_cast(&_impl_.o_x_), - reinterpret_cast(&other->_impl_.o_x_)); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Orientation, theta_) + + sizeof(Orientation::theta_) + - PROTOBUF_FIELD_OFFSET(Orientation, o_x_)>( + reinterpret_cast(&o_x_), + reinterpret_cast(&other->o_x_)); } -::google::protobuf::Metadata Orientation::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Orientation::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[2]); } + // =================================================================== class PoseInFrame::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(PoseInFrame, _impl_._has_bits_); static const ::viam::common::v1::Pose& pose(const PoseInFrame* msg); - static void set_has_pose(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::common::v1::Pose& PoseInFrame::_Internal::pose(const PoseInFrame* msg) { - return *msg->_impl_.pose_; +const ::viam::common::v1::Pose& +PoseInFrame::_Internal::pose(const PoseInFrame* msg) { + return *msg->pose_; } -PoseInFrame::PoseInFrame(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +PoseInFrame::PoseInFrame(::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.PoseInFrame) } -inline PROTOBUF_NDEBUG_INLINE PoseInFrame::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - reference_frame_(arena, from.reference_frame_) {} - -PoseInFrame::PoseInFrame( - ::google::protobuf::Arena* arena, - const PoseInFrame& from) - : ::google::protobuf::Message(arena) { - PoseInFrame* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.pose_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::common::v1::Pose>(arena, *from._impl_.pose_) - : nullptr; - +PoseInFrame::PoseInFrame(const PoseInFrame& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + reference_frame_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + reference_frame_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_reference_frame().empty()) { + reference_frame_.Set(from._internal_reference_frame(), + GetArenaForAllocation()); + } + if (from._internal_has_pose()) { + pose_ = new ::viam::common::v1::Pose(*from.pose_); + } else { + pose_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.common.v1.PoseInFrame) } -inline PROTOBUF_NDEBUG_INLINE PoseInFrame::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - reference_frame_(arena) {} -inline void PoseInFrame::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.pose_ = {}; +inline void PoseInFrame::SharedCtor() { +reference_frame_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + reference_frame_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +pose_ = nullptr; } + PoseInFrame::~PoseInFrame() { // @@protoc_insertion_point(destructor:viam.common.v1.PoseInFrame) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void PoseInFrame::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.reference_frame_.Destroy(); - delete _impl_.pose_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + reference_frame_.Destroy(); + if (this != internal_default_instance()) delete pose_; +} + +void PoseInFrame::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void PoseInFrame::Clear() { +void PoseInFrame::Clear() { // @@protoc_insertion_point(message_clear_start:viam.common.v1.PoseInFrame) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.reference_frame_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.pose_ != nullptr); - _impl_.pose_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* PoseInFrame::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + reference_frame_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && pose_ != nullptr) { + delete pose_; + } + pose_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* PoseInFrame::_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 reference_frame = 1 [json_name = "referenceFrame"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_reference_frame(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.common.v1.PoseInFrame.reference_frame")); + } else + goto handle_unusual; + continue; + // .viam.common.v1.Pose pose = 2 [json_name = "pose"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_pose(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 50, 2> PoseInFrame::_table_ = { - { - PROTOBUF_FIELD_OFFSET(PoseInFrame, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_PoseInFrame_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.common.v1.Pose pose = 2 [json_name = "pose"]; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(PoseInFrame, _impl_.pose_)}}, - // string reference_frame = 1 [json_name = "referenceFrame"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(PoseInFrame, _impl_.reference_frame_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string reference_frame = 1 [json_name = "referenceFrame"]; - {PROTOBUF_FIELD_OFFSET(PoseInFrame, _impl_.reference_frame_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .viam.common.v1.Pose pose = 2 [json_name = "pose"]; - {PROTOBUF_FIELD_OFFSET(PoseInFrame, _impl_.pose_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::common::v1::Pose>()}, - }}, {{ - "\32\17\0\0\0\0\0\0" - "viam.common.v1.PoseInFrame" - "reference_frame" - }}, -}; - -::uint8_t* PoseInFrame::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* PoseInFrame::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.common.v1.PoseInFrame) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string reference_frame = 1 [json_name = "referenceFrame"]; if (!this->_internal_reference_frame().empty()) { - const std::string& _s = this->_internal_reference_frame(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.common.v1.PoseInFrame.reference_frame"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_reference_frame().data(), static_cast(this->_internal_reference_frame().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.common.v1.PoseInFrame.reference_frame"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_reference_frame(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .viam.common.v1.Pose pose = 2 [json_name = "pose"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::pose(this), + if (this->_internal_has_pose()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::pose(this), _Internal::pose(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.PoseInFrame) return target; } -::size_t PoseInFrame::ByteSizeLong() const { +size_t PoseInFrame::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.common.v1.PoseInFrame) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string reference_frame = 1 [json_name = "referenceFrame"]; if (!this->_internal_reference_frame().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_reference_frame()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_reference_frame()); } // .viam.common.v1.Pose pose = 2 [json_name = "pose"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.pose_); + if (this->_internal_has_pose()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *pose_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData PoseInFrame::_class_data_ = { - PoseInFrame::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PoseInFrame::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + PoseInFrame::MergeImpl }; -const ::google::protobuf::Message::ClassData* PoseInFrame::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PoseInFrame::GetClassData() const { return &_class_data_; } + +void PoseInFrame::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void PoseInFrame::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.PoseInFrame) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void PoseInFrame::MergeFrom(const PoseInFrame& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.PoseInFrame) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_reference_frame().empty()) { - _this->_internal_set_reference_frame(from._internal_reference_frame()); + _internal_set_reference_frame(from._internal_reference_frame()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_pose()->::viam::common::v1::Pose::MergeFrom( - from._internal_pose()); + if (from._internal_has_pose()) { + _internal_mutable_pose()->::viam::common::v1::Pose::MergeFrom(from._internal_pose()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void PoseInFrame::CopyFrom(const PoseInFrame& from) { @@ -2416,265 +2157,261 @@ void PoseInFrame::CopyFrom(const PoseInFrame& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool PoseInFrame::IsInitialized() const { +bool PoseInFrame::IsInitialized() const { return true; } -::_pbi::CachedSize* PoseInFrame::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void PoseInFrame::InternalSwap(PoseInFrame* PROTOBUF_RESTRICT other) { +void PoseInFrame::InternalSwap(PoseInFrame* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.reference_frame_, &other->_impl_.reference_frame_, arena); - swap(_impl_.pose_, other->_impl_.pose_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &reference_frame_, lhs_arena, + &other->reference_frame_, rhs_arena + ); + swap(pose_, other->pose_); } -::google::protobuf::Metadata PoseInFrame::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata PoseInFrame::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[3]); } + // =================================================================== class Vector3::_Internal { public: }; -Vector3::Vector3(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Vector3::Vector3(::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.Vector3) } -Vector3::Vector3( - ::google::protobuf::Arena* arena, const Vector3& from) - : Vector3(arena) { - MergeFrom(from); +Vector3::Vector3(const Vector3& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&x_, &from.x_, + static_cast(reinterpret_cast(&z_) - + reinterpret_cast(&x_)) + sizeof(z_)); + // @@protoc_insertion_point(copy_constructor:viam.common.v1.Vector3) } -inline PROTOBUF_NDEBUG_INLINE Vector3::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void Vector3::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, x_), - 0, - offsetof(Impl_, z_) - - offsetof(Impl_, x_) + - sizeof(Impl_::z_)); +inline void Vector3::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&x_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&z_) - + reinterpret_cast(&x_)) + sizeof(z_)); } + Vector3::~Vector3() { // @@protoc_insertion_point(destructor:viam.common.v1.Vector3) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Vector3::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void Vector3::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void Vector3::Clear() { +void Vector3::Clear() { // @@protoc_insertion_point(message_clear_start:viam.common.v1.Vector3) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&_impl_.x_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.z_) - - reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.z_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Vector3::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + ::memset(&x_, 0, static_cast( + reinterpret_cast(&z_) - + reinterpret_cast(&x_)) + sizeof(z_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Vector3::_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) { + // double x = 1 [json_name = "x"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 9)) { + x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double y = 2 [json_name = "y"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 17)) { + y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double z = 3 [json_name = "z"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 25)) { + z_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 0, 2> Vector3::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_Vector3_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // double x = 1 [json_name = "x"]; - {::_pbi::TcParser::FastF64S1, - {9, 63, 0, PROTOBUF_FIELD_OFFSET(Vector3, _impl_.x_)}}, - // double y = 2 [json_name = "y"]; - {::_pbi::TcParser::FastF64S1, - {17, 63, 0, PROTOBUF_FIELD_OFFSET(Vector3, _impl_.y_)}}, - // double z = 3 [json_name = "z"]; - {::_pbi::TcParser::FastF64S1, - {25, 63, 0, PROTOBUF_FIELD_OFFSET(Vector3, _impl_.z_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // double x = 1 [json_name = "x"]; - {PROTOBUF_FIELD_OFFSET(Vector3, _impl_.x_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double y = 2 [json_name = "y"]; - {PROTOBUF_FIELD_OFFSET(Vector3, _impl_.y_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double z = 3 [json_name = "z"]; - {PROTOBUF_FIELD_OFFSET(Vector3, _impl_.z_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* Vector3::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Vector3::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.common.v1.Vector3) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // double x = 1 [json_name = "x"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_x = this->_internal_x(); - ::uint64_t raw_x; + uint64_t raw_x; memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); if (raw_x != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 1, this->_internal_x(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(1, this->_internal_x(), target); } // double y = 2 [json_name = "y"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_y = this->_internal_y(); - ::uint64_t raw_y; + uint64_t raw_y; memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); if (raw_y != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 2, this->_internal_y(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_y(), target); } // double z = 3 [json_name = "z"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_z = this->_internal_z(); - ::uint64_t raw_z; + uint64_t raw_z; memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); if (raw_z != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 3, this->_internal_z(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(3, this->_internal_z(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.Vector3) return target; } -::size_t Vector3::ByteSizeLong() const { +size_t Vector3::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.common.v1.Vector3) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // double x = 1 [json_name = "x"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_x = this->_internal_x(); - ::uint64_t raw_x; + uint64_t raw_x; memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); if (raw_x != 0) { - total_size += 9; + total_size += 1 + 8; } // double y = 2 [json_name = "y"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_y = this->_internal_y(); - ::uint64_t raw_y; + uint64_t raw_y; memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); if (raw_y != 0) { - total_size += 9; + total_size += 1 + 8; } // double z = 3 [json_name = "z"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_z = this->_internal_z(); - ::uint64_t raw_z; + uint64_t raw_z; memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); if (raw_z != 0) { - total_size += 9; + total_size += 1 + 8; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Vector3::_class_data_ = { - Vector3::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Vector3::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Vector3::MergeImpl }; -const ::google::protobuf::Message::ClassData* Vector3::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Vector3::GetClassData() const { return &_class_data_; } + +void Vector3::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Vector3::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.Vector3) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Vector3::MergeFrom(const Vector3& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.Vector3) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_x = from._internal_x(); - ::uint64_t raw_x; + uint64_t raw_x; memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); if (raw_x != 0) { - _this->_internal_set_x(from._internal_x()); + _internal_set_x(from._internal_x()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_y = from._internal_y(); - ::uint64_t raw_y; + uint64_t raw_y; memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); if (raw_y != 0) { - _this->_internal_set_y(from._internal_y()); + _internal_set_y(from._internal_y()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_z = from._internal_z(); - ::uint64_t raw_z; + uint64_t raw_z; memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); if (raw_z != 0) { - _this->_internal_set_z(from._internal_z()); + _internal_set_z(from._internal_z()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Vector3::CopyFrom(const Vector3& from) { @@ -2684,186 +2421,185 @@ void Vector3::CopyFrom(const Vector3& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Vector3::IsInitialized() const { +bool Vector3::IsInitialized() const { return true; } -::_pbi::CachedSize* Vector3::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Vector3::InternalSwap(Vector3* PROTOBUF_RESTRICT other) { +void Vector3::InternalSwap(Vector3* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(Vector3, _impl_.z_) - + sizeof(Vector3::_impl_.z_) - - PROTOBUF_FIELD_OFFSET(Vector3, _impl_.x_)>( - reinterpret_cast(&_impl_.x_), - reinterpret_cast(&other->_impl_.x_)); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Vector3, z_) + + sizeof(Vector3::z_) + - PROTOBUF_FIELD_OFFSET(Vector3, x_)>( + reinterpret_cast(&x_), + reinterpret_cast(&other->x_)); } -::google::protobuf::Metadata Vector3::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Vector3::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[4]); } + // =================================================================== class Sphere::_Internal { public: }; -Sphere::Sphere(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Sphere::Sphere(::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.Sphere) } -Sphere::Sphere( - ::google::protobuf::Arena* arena, const Sphere& from) - : Sphere(arena) { - MergeFrom(from); +Sphere::Sphere(const Sphere& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + radius_mm_ = from.radius_mm_; + // @@protoc_insertion_point(copy_constructor:viam.common.v1.Sphere) } -inline PROTOBUF_NDEBUG_INLINE Sphere::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void Sphere::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.radius_mm_ = {}; +inline void Sphere::SharedCtor() { +radius_mm_ = 0; } + Sphere::~Sphere() { // @@protoc_insertion_point(destructor:viam.common.v1.Sphere) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Sphere::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void Sphere::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void Sphere::Clear() { +void Sphere::Clear() { // @@protoc_insertion_point(message_clear_start:viam.common.v1.Sphere) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.radius_mm_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Sphere::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + radius_mm_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Sphere::_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) { + // double radius_mm = 1 [json_name = "radiusMm"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 9)) { + radius_mm_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> Sphere::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_Sphere_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // double radius_mm = 1 [json_name = "radiusMm"]; - {::_pbi::TcParser::FastF64S1, - {9, 63, 0, PROTOBUF_FIELD_OFFSET(Sphere, _impl_.radius_mm_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // double radius_mm = 1 [json_name = "radiusMm"]; - {PROTOBUF_FIELD_OFFSET(Sphere, _impl_.radius_mm_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* Sphere::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Sphere::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.common.v1.Sphere) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // double radius_mm = 1 [json_name = "radiusMm"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_radius_mm = this->_internal_radius_mm(); - ::uint64_t raw_radius_mm; + uint64_t raw_radius_mm; memcpy(&raw_radius_mm, &tmp_radius_mm, sizeof(tmp_radius_mm)); if (raw_radius_mm != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 1, this->_internal_radius_mm(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(1, this->_internal_radius_mm(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.Sphere) return target; } -::size_t Sphere::ByteSizeLong() const { +size_t Sphere::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.common.v1.Sphere) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // double radius_mm = 1 [json_name = "radiusMm"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_radius_mm = this->_internal_radius_mm(); - ::uint64_t raw_radius_mm; + uint64_t raw_radius_mm; memcpy(&raw_radius_mm, &tmp_radius_mm, sizeof(tmp_radius_mm)); if (raw_radius_mm != 0) { - total_size += 9; + total_size += 1 + 8; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Sphere::_class_data_ = { - Sphere::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Sphere::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Sphere::MergeImpl }; -const ::google::protobuf::Message::ClassData* Sphere::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Sphere::GetClassData() const { return &_class_data_; } + +void Sphere::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Sphere::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.Sphere) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Sphere::MergeFrom(const Sphere& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.Sphere) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_radius_mm = from._internal_radius_mm(); - ::uint64_t raw_radius_mm; + uint64_t raw_radius_mm; memcpy(&raw_radius_mm, &tmp_radius_mm, sizeof(tmp_radius_mm)); if (raw_radius_mm != 0) { - _this->_internal_set_radius_mm(from._internal_radius_mm()); + _internal_set_radius_mm(from._internal_radius_mm()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Sphere::CopyFrom(const Sphere& from) { @@ -2873,224 +2609,221 @@ void Sphere::CopyFrom(const Sphere& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Sphere::IsInitialized() const { +bool Sphere::IsInitialized() const { return true; } -::_pbi::CachedSize* Sphere::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Sphere::InternalSwap(Sphere* PROTOBUF_RESTRICT other) { +void Sphere::InternalSwap(Sphere* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.radius_mm_, other->_impl_.radius_mm_); + swap(radius_mm_, other->radius_mm_); } -::google::protobuf::Metadata Sphere::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Sphere::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[5]); } + // =================================================================== class Capsule::_Internal { public: }; -Capsule::Capsule(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Capsule::Capsule(::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.Capsule) } -Capsule::Capsule( - ::google::protobuf::Arena* arena, const Capsule& from) - : Capsule(arena) { - MergeFrom(from); +Capsule::Capsule(const Capsule& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&radius_mm_, &from.radius_mm_, + static_cast(reinterpret_cast(&length_mm_) - + reinterpret_cast(&radius_mm_)) + sizeof(length_mm_)); + // @@protoc_insertion_point(copy_constructor:viam.common.v1.Capsule) } -inline PROTOBUF_NDEBUG_INLINE Capsule::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void Capsule::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, radius_mm_), - 0, - offsetof(Impl_, length_mm_) - - offsetof(Impl_, radius_mm_) + - sizeof(Impl_::length_mm_)); +inline void Capsule::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&radius_mm_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&length_mm_) - + reinterpret_cast(&radius_mm_)) + sizeof(length_mm_)); } + Capsule::~Capsule() { // @@protoc_insertion_point(destructor:viam.common.v1.Capsule) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Capsule::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void Capsule::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void Capsule::Clear() { +void Capsule::Clear() { // @@protoc_insertion_point(message_clear_start:viam.common.v1.Capsule) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&_impl_.radius_mm_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.length_mm_) - - reinterpret_cast(&_impl_.radius_mm_)) + sizeof(_impl_.length_mm_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Capsule::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + ::memset(&radius_mm_, 0, static_cast( + reinterpret_cast(&length_mm_) - + reinterpret_cast(&radius_mm_)) + sizeof(length_mm_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Capsule::_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) { + // double radius_mm = 1 [json_name = "radiusMm"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 9)) { + radius_mm_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double length_mm = 2 [json_name = "lengthMm"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 17)) { + length_mm_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> Capsule::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_Capsule_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // double length_mm = 2 [json_name = "lengthMm"]; - {::_pbi::TcParser::FastF64S1, - {17, 63, 0, PROTOBUF_FIELD_OFFSET(Capsule, _impl_.length_mm_)}}, - // double radius_mm = 1 [json_name = "radiusMm"]; - {::_pbi::TcParser::FastF64S1, - {9, 63, 0, PROTOBUF_FIELD_OFFSET(Capsule, _impl_.radius_mm_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // double radius_mm = 1 [json_name = "radiusMm"]; - {PROTOBUF_FIELD_OFFSET(Capsule, _impl_.radius_mm_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double length_mm = 2 [json_name = "lengthMm"]; - {PROTOBUF_FIELD_OFFSET(Capsule, _impl_.length_mm_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* Capsule::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Capsule::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.common.v1.Capsule) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // double radius_mm = 1 [json_name = "radiusMm"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_radius_mm = this->_internal_radius_mm(); - ::uint64_t raw_radius_mm; + uint64_t raw_radius_mm; memcpy(&raw_radius_mm, &tmp_radius_mm, sizeof(tmp_radius_mm)); if (raw_radius_mm != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 1, this->_internal_radius_mm(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(1, this->_internal_radius_mm(), target); } // double length_mm = 2 [json_name = "lengthMm"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_length_mm = this->_internal_length_mm(); - ::uint64_t raw_length_mm; + uint64_t raw_length_mm; memcpy(&raw_length_mm, &tmp_length_mm, sizeof(tmp_length_mm)); if (raw_length_mm != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 2, this->_internal_length_mm(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_length_mm(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.Capsule) return target; } -::size_t Capsule::ByteSizeLong() const { +size_t Capsule::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.common.v1.Capsule) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // double radius_mm = 1 [json_name = "radiusMm"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_radius_mm = this->_internal_radius_mm(); - ::uint64_t raw_radius_mm; + uint64_t raw_radius_mm; memcpy(&raw_radius_mm, &tmp_radius_mm, sizeof(tmp_radius_mm)); if (raw_radius_mm != 0) { - total_size += 9; + total_size += 1 + 8; } // double length_mm = 2 [json_name = "lengthMm"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_length_mm = this->_internal_length_mm(); - ::uint64_t raw_length_mm; + uint64_t raw_length_mm; memcpy(&raw_length_mm, &tmp_length_mm, sizeof(tmp_length_mm)); if (raw_length_mm != 0) { - total_size += 9; + total_size += 1 + 8; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Capsule::_class_data_ = { - Capsule::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Capsule::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Capsule::MergeImpl }; -const ::google::protobuf::Message::ClassData* Capsule::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Capsule::GetClassData() const { return &_class_data_; } + +void Capsule::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Capsule::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.Capsule) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Capsule::MergeFrom(const Capsule& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.Capsule) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_radius_mm = from._internal_radius_mm(); - ::uint64_t raw_radius_mm; + uint64_t raw_radius_mm; memcpy(&raw_radius_mm, &tmp_radius_mm, sizeof(tmp_radius_mm)); if (raw_radius_mm != 0) { - _this->_internal_set_radius_mm(from._internal_radius_mm()); + _internal_set_radius_mm(from._internal_radius_mm()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_length_mm = from._internal_length_mm(); - ::uint64_t raw_length_mm; + uint64_t raw_length_mm; memcpy(&raw_length_mm, &tmp_length_mm, sizeof(tmp_length_mm)); if (raw_length_mm != 0) { - _this->_internal_set_length_mm(from._internal_length_mm()); + _internal_set_length_mm(from._internal_length_mm()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Capsule::CopyFrom(const Capsule& from) { @@ -3100,208 +2833,189 @@ void Capsule::CopyFrom(const Capsule& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Capsule::IsInitialized() const { +bool Capsule::IsInitialized() const { return true; } -::_pbi::CachedSize* Capsule::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Capsule::InternalSwap(Capsule* PROTOBUF_RESTRICT other) { +void Capsule::InternalSwap(Capsule* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(Capsule, _impl_.length_mm_) - + sizeof(Capsule::_impl_.length_mm_) - - PROTOBUF_FIELD_OFFSET(Capsule, _impl_.radius_mm_)>( - reinterpret_cast(&_impl_.radius_mm_), - reinterpret_cast(&other->_impl_.radius_mm_)); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Capsule, length_mm_) + + sizeof(Capsule::length_mm_) + - PROTOBUF_FIELD_OFFSET(Capsule, radius_mm_)>( + reinterpret_cast(&radius_mm_), + reinterpret_cast(&other->radius_mm_)); } -::google::protobuf::Metadata Capsule::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Capsule::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[6]); } + // =================================================================== class RectangularPrism::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(RectangularPrism, _impl_._has_bits_); static const ::viam::common::v1::Vector3& dims_mm(const RectangularPrism* msg); - static void set_has_dims_mm(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::common::v1::Vector3& RectangularPrism::_Internal::dims_mm(const RectangularPrism* msg) { - return *msg->_impl_.dims_mm_; +const ::viam::common::v1::Vector3& +RectangularPrism::_Internal::dims_mm(const RectangularPrism* msg) { + return *msg->dims_mm_; } -RectangularPrism::RectangularPrism(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +RectangularPrism::RectangularPrism(::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.RectangularPrism) } -inline PROTOBUF_NDEBUG_INLINE RectangularPrism::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -RectangularPrism::RectangularPrism( - ::google::protobuf::Arena* arena, - const RectangularPrism& from) - : ::google::protobuf::Message(arena) { - RectangularPrism* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.dims_mm_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::common::v1::Vector3>(arena, *from._impl_.dims_mm_) - : nullptr; - +RectangularPrism::RectangularPrism(const RectangularPrism& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_dims_mm()) { + dims_mm_ = new ::viam::common::v1::Vector3(*from.dims_mm_); + } else { + dims_mm_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.common.v1.RectangularPrism) } -inline PROTOBUF_NDEBUG_INLINE RectangularPrism::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void RectangularPrism::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.dims_mm_ = {}; +inline void RectangularPrism::SharedCtor() { +dims_mm_ = nullptr; } + RectangularPrism::~RectangularPrism() { // @@protoc_insertion_point(destructor:viam.common.v1.RectangularPrism) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void RectangularPrism::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.dims_mm_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete dims_mm_; +} + +void RectangularPrism::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void RectangularPrism::Clear() { +void RectangularPrism::Clear() { // @@protoc_insertion_point(message_clear_start:viam.common.v1.RectangularPrism) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.dims_mm_ != nullptr); - _impl_.dims_mm_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* RectangularPrism::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + if (GetArenaForAllocation() == nullptr && dims_mm_ != nullptr) { + delete dims_mm_; + } + dims_mm_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RectangularPrism::_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.Vector3 dims_mm = 1 [json_name = "dimsMm"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_dims_mm(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> RectangularPrism::_table_ = { - { - PROTOBUF_FIELD_OFFSET(RectangularPrism, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_RectangularPrism_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.common.v1.Vector3 dims_mm = 1 [json_name = "dimsMm"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(RectangularPrism, _impl_.dims_mm_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.common.v1.Vector3 dims_mm = 1 [json_name = "dimsMm"]; - {PROTOBUF_FIELD_OFFSET(RectangularPrism, _impl_.dims_mm_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::common::v1::Vector3>()}, - }}, {{ - }}, -}; - -::uint8_t* RectangularPrism::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* RectangularPrism::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.common.v1.RectangularPrism) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.common.v1.Vector3 dims_mm = 1 [json_name = "dimsMm"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::dims_mm(this), + if (this->_internal_has_dims_mm()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::dims_mm(this), _Internal::dims_mm(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.RectangularPrism) return target; } -::size_t RectangularPrism::ByteSizeLong() const { +size_t RectangularPrism::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.common.v1.RectangularPrism) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .viam.common.v1.Vector3 dims_mm = 1 [json_name = "dimsMm"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.dims_mm_); + if (this->_internal_has_dims_mm()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *dims_mm_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData RectangularPrism::_class_data_ = { - RectangularPrism::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RectangularPrism::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + RectangularPrism::MergeImpl }; -const ::google::protobuf::Message::ClassData* RectangularPrism::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RectangularPrism::GetClassData() const { return &_class_data_; } + +void RectangularPrism::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void RectangularPrism::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.RectangularPrism) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void RectangularPrism::MergeFrom(const RectangularPrism& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.RectangularPrism) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_dims_mm()->::viam::common::v1::Vector3::MergeFrom( - from._internal_dims_mm()); + if (from._internal_has_dims_mm()) { + _internal_mutable_dims_mm()->::viam::common::v1::Vector3::MergeFrom(from._internal_dims_mm()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void RectangularPrism::CopyFrom(const RectangularPrism& from) { @@ -3311,183 +3025,185 @@ void RectangularPrism::CopyFrom(const RectangularPrism& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool RectangularPrism::IsInitialized() const { +bool RectangularPrism::IsInitialized() const { return true; } -::_pbi::CachedSize* RectangularPrism::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void RectangularPrism::InternalSwap(RectangularPrism* PROTOBUF_RESTRICT other) { +void RectangularPrism::InternalSwap(RectangularPrism* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.dims_mm_, other->_impl_.dims_mm_); + swap(dims_mm_, other->dims_mm_); } -::google::protobuf::Metadata RectangularPrism::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata RectangularPrism::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[7]); } + // =================================================================== class Geometry::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Geometry, _impl_._has_bits_); - static constexpr ::int32_t kOneofCaseOffset = - PROTOBUF_FIELD_OFFSET(::viam::common::v1::Geometry, _impl_._oneof_case_); static const ::viam::common::v1::Pose& center(const Geometry* msg); - static void set_has_center(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } static const ::viam::common::v1::Sphere& sphere(const Geometry* msg); static const ::viam::common::v1::RectangularPrism& box(const Geometry* msg); static const ::viam::common::v1::Capsule& capsule(const Geometry* msg); }; -const ::viam::common::v1::Pose& Geometry::_Internal::center(const Geometry* msg) { - return *msg->_impl_.center_; +const ::viam::common::v1::Pose& +Geometry::_Internal::center(const Geometry* msg) { + return *msg->center_; } -const ::viam::common::v1::Sphere& Geometry::_Internal::sphere(const Geometry* msg) { - return *msg->_impl_.geometry_type_.sphere_; +const ::viam::common::v1::Sphere& +Geometry::_Internal::sphere(const Geometry* msg) { + return *msg->geometry_type_.sphere_; } -const ::viam::common::v1::RectangularPrism& Geometry::_Internal::box(const Geometry* msg) { - return *msg->_impl_.geometry_type_.box_; +const ::viam::common::v1::RectangularPrism& +Geometry::_Internal::box(const Geometry* msg) { + return *msg->geometry_type_.box_; } -const ::viam::common::v1::Capsule& Geometry::_Internal::capsule(const Geometry* msg) { - return *msg->_impl_.geometry_type_.capsule_; +const ::viam::common::v1::Capsule& +Geometry::_Internal::capsule(const Geometry* msg) { + return *msg->geometry_type_.capsule_; } void Geometry::set_allocated_sphere(::viam::common::v1::Sphere* sphere) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_geometry_type(); if (sphere) { - ::google::protobuf::Arena* submessage_arena = sphere->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(sphere); if (message_arena != submessage_arena) { - sphere = ::google::protobuf::internal::GetOwnedMessage(message_arena, sphere, submessage_arena); + sphere = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, sphere, submessage_arena); } set_has_sphere(); - _impl_.geometry_type_.sphere_ = sphere; + geometry_type_.sphere_ = sphere; } // @@protoc_insertion_point(field_set_allocated:viam.common.v1.Geometry.sphere) } void Geometry::set_allocated_box(::viam::common::v1::RectangularPrism* box) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_geometry_type(); if (box) { - ::google::protobuf::Arena* submessage_arena = box->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(box); if (message_arena != submessage_arena) { - box = ::google::protobuf::internal::GetOwnedMessage(message_arena, box, submessage_arena); + box = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, box, submessage_arena); } set_has_box(); - _impl_.geometry_type_.box_ = box; + geometry_type_.box_ = box; } // @@protoc_insertion_point(field_set_allocated:viam.common.v1.Geometry.box) } void Geometry::set_allocated_capsule(::viam::common::v1::Capsule* capsule) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_geometry_type(); if (capsule) { - ::google::protobuf::Arena* submessage_arena = capsule->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(capsule); if (message_arena != submessage_arena) { - capsule = ::google::protobuf::internal::GetOwnedMessage(message_arena, capsule, submessage_arena); + capsule = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, capsule, submessage_arena); } set_has_capsule(); - _impl_.geometry_type_.capsule_ = capsule; + geometry_type_.capsule_ = capsule; } // @@protoc_insertion_point(field_set_allocated:viam.common.v1.Geometry.capsule) } -Geometry::Geometry(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Geometry::Geometry(::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.Geometry) } -inline PROTOBUF_NDEBUG_INLINE Geometry::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - label_(arena, from.label_), - geometry_type_{}, - _oneof_case_{from._oneof_case_[0]} {} - -Geometry::Geometry( - ::google::protobuf::Arena* arena, - const Geometry& from) - : ::google::protobuf::Message(arena) { - Geometry* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.center_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::common::v1::Pose>(arena, *from._impl_.center_) - : nullptr; - switch (geometry_type_case()) { - case GEOMETRY_TYPE_NOT_SET: +Geometry::Geometry(const Geometry& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + label_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + label_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_label().empty()) { + label_.Set(from._internal_label(), + GetArenaForAllocation()); + } + if (from._internal_has_center()) { + center_ = new ::viam::common::v1::Pose(*from.center_); + } else { + center_ = nullptr; + } + clear_has_geometry_type(); + switch (from.geometry_type_case()) { + case kSphere: { + _internal_mutable_sphere()->::viam::common::v1::Sphere::MergeFrom(from._internal_sphere()); break; - case kSphere: - _impl_.geometry_type_.sphere_ = CreateMaybeMessage<::viam::common::v1::Sphere>(arena, *from._impl_.geometry_type_.sphere_); - break; - case kBox: - _impl_.geometry_type_.box_ = CreateMaybeMessage<::viam::common::v1::RectangularPrism>(arena, *from._impl_.geometry_type_.box_); - break; - case kCapsule: - _impl_.geometry_type_.capsule_ = CreateMaybeMessage<::viam::common::v1::Capsule>(arena, *from._impl_.geometry_type_.capsule_); - break; + } + case kBox: { + _internal_mutable_box()->::viam::common::v1::RectangularPrism::MergeFrom(from._internal_box()); + break; + } + case kCapsule: { + _internal_mutable_capsule()->::viam::common::v1::Capsule::MergeFrom(from._internal_capsule()); + break; + } + case GEOMETRY_TYPE_NOT_SET: { + break; + } } - // @@protoc_insertion_point(copy_constructor:viam.common.v1.Geometry) } -inline PROTOBUF_NDEBUG_INLINE Geometry::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - label_(arena), - geometry_type_{}, - _oneof_case_{} {} -inline void Geometry::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.center_ = {}; +inline void Geometry::SharedCtor() { +label_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + label_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +center_ = nullptr; +clear_has_geometry_type(); } + Geometry::~Geometry() { // @@protoc_insertion_point(destructor:viam.common.v1.Geometry) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Geometry::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.label_.Destroy(); - delete _impl_.center_; + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + label_.Destroy(); + if (this != internal_default_instance()) delete center_; if (has_geometry_type()) { clear_geometry_type(); } - _impl_.~Impl_(); +} + +void Geometry::SetCachedSize(int size) const { + _cached_size_.Set(size); } void Geometry::clear_geometry_type() { // @@protoc_insertion_point(one_of_clear_start:viam.common.v1.Geometry) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); switch (geometry_type_case()) { case kSphere: { - if (GetArena() == nullptr) { - delete _impl_.geometry_type_.sphere_; + if (GetArenaForAllocation() == nullptr) { + delete geometry_type_.sphere_; } break; } case kBox: { - if (GetArena() == nullptr) { - delete _impl_.geometry_type_.box_; + if (GetArenaForAllocation() == nullptr) { + delete geometry_type_.box_; } break; } case kCapsule: { - if (GetArena() == nullptr) { - delete _impl_.geometry_type_.capsule_; + if (GetArenaForAllocation() == nullptr) { + delete geometry_type_.capsule_; } break; } @@ -3495,232 +3211,242 @@ void Geometry::clear_geometry_type() { break; } } - _impl_._oneof_case_[0] = GEOMETRY_TYPE_NOT_SET; + _oneof_case_[0] = GEOMETRY_TYPE_NOT_SET; } -PROTOBUF_NOINLINE void Geometry::Clear() { +void Geometry::Clear() { // @@protoc_insertion_point(message_clear_start:viam.common.v1.Geometry) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.label_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.center_ != nullptr); - _impl_.center_->Clear(); + label_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && center_ != nullptr) { + delete center_; } - clear_geometry_type(); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Geometry::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 5, 4, 37, 2> Geometry::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Geometry, _impl_._has_bits_), - 0, // no _extensions_ - 5, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967264, // skipmap - offsetof(decltype(_table_), field_entries), - 5, // num_field_entries - 4, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Geometry_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string label = 4 [json_name = "label"]; - {::_pbi::TcParser::FastUS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(Geometry, _impl_.label_)}}, - // .viam.common.v1.Pose center = 1 [json_name = "center"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(Geometry, _impl_.center_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.common.v1.Pose center = 1 [json_name = "center"]; - {PROTOBUF_FIELD_OFFSET(Geometry, _impl_.center_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .viam.common.v1.Sphere sphere = 2 [json_name = "sphere"]; - {PROTOBUF_FIELD_OFFSET(Geometry, _impl_.geometry_type_.sphere_), _Internal::kOneofCaseOffset + 0, 1, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .viam.common.v1.RectangularPrism box = 3 [json_name = "box"]; - {PROTOBUF_FIELD_OFFSET(Geometry, _impl_.geometry_type_.box_), _Internal::kOneofCaseOffset + 0, 2, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // string label = 4 [json_name = "label"]; - {PROTOBUF_FIELD_OFFSET(Geometry, _impl_.label_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .viam.common.v1.Capsule capsule = 5 [json_name = "capsule"]; - {PROTOBUF_FIELD_OFFSET(Geometry, _impl_.geometry_type_.capsule_), _Internal::kOneofCaseOffset + 0, 3, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::common::v1::Pose>()}, - {::_pbi::TcParser::GetTable<::viam::common::v1::Sphere>()}, - {::_pbi::TcParser::GetTable<::viam::common::v1::RectangularPrism>()}, - {::_pbi::TcParser::GetTable<::viam::common::v1::Capsule>()}, - }}, {{ - "\27\0\0\0\5\0\0\0" - "viam.common.v1.Geometry" - "label" - }}, -}; + center_ = nullptr; + clear_geometry_type(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Geometry::_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.Pose center = 1 [json_name = "center"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_center(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.common.v1.Sphere sphere = 2 [json_name = "sphere"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_sphere(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.common.v1.RectangularPrism box = 3 [json_name = "box"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_box(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string label = 4 [json_name = "label"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_label(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.common.v1.Geometry.label")); + } else + goto handle_unusual; + continue; + // .viam.common.v1.Capsule capsule = 5 [json_name = "capsule"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_capsule(), 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* Geometry::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Geometry::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.common.v1.Geometry) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.common.v1.Pose center = 1 [json_name = "center"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::center(this), + if (this->_internal_has_center()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::center(this), _Internal::center(this).GetCachedSize(), target, stream); } - switch (geometry_type_case()) { - case kSphere: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::sphere(this), - _Internal::sphere(this).GetCachedSize(), target, stream); - break; - } - case kBox: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::box(this), - _Internal::box(this).GetCachedSize(), target, stream); - break; - } - default: - break; + // .viam.common.v1.Sphere sphere = 2 [json_name = "sphere"]; + if (_internal_has_sphere()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::sphere(this), + _Internal::sphere(this).GetCachedSize(), target, stream); + } + + // .viam.common.v1.RectangularPrism box = 3 [json_name = "box"]; + if (_internal_has_box()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::box(this), + _Internal::box(this).GetCachedSize(), target, stream); } + // string label = 4 [json_name = "label"]; if (!this->_internal_label().empty()) { - const std::string& _s = this->_internal_label(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.common.v1.Geometry.label"); - target = stream->WriteStringMaybeAliased(4, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_label().data(), static_cast(this->_internal_label().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.common.v1.Geometry.label"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_label(), target); } // .viam.common.v1.Capsule capsule = 5 [json_name = "capsule"]; - if (geometry_type_case() == kCapsule) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 5, _Internal::capsule(this), + if (_internal_has_capsule()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(5, _Internal::capsule(this), _Internal::capsule(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.Geometry) return target; } -::size_t Geometry::ByteSizeLong() const { +size_t Geometry::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.common.v1.Geometry) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string label = 4 [json_name = "label"]; if (!this->_internal_label().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_label()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_label()); } // .viam.common.v1.Pose center = 1 [json_name = "center"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.center_); + if (this->_internal_has_center()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *center_); } switch (geometry_type_case()) { // .viam.common.v1.Sphere sphere = 2 [json_name = "sphere"]; case kSphere: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.geometry_type_.sphere_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *geometry_type_.sphere_); break; } // .viam.common.v1.RectangularPrism box = 3 [json_name = "box"]; case kBox: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.geometry_type_.box_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *geometry_type_.box_); break; } // .viam.common.v1.Capsule capsule = 5 [json_name = "capsule"]; case kCapsule: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.geometry_type_.capsule_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *geometry_type_.capsule_); break; } case GEOMETRY_TYPE_NOT_SET: { break; } } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Geometry::_class_data_ = { - Geometry::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Geometry::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Geometry::MergeImpl }; -const ::google::protobuf::Message::ClassData* Geometry::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Geometry::GetClassData() const { return &_class_data_; } + +void Geometry::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Geometry::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.Geometry) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Geometry::MergeFrom(const Geometry& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.Geometry) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_label().empty()) { - _this->_internal_set_label(from._internal_label()); + _internal_set_label(from._internal_label()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_center()->::viam::common::v1::Pose::MergeFrom( - from._internal_center()); + if (from._internal_has_center()) { + _internal_mutable_center()->::viam::common::v1::Pose::MergeFrom(from._internal_center()); } switch (from.geometry_type_case()) { case kSphere: { - _this->_internal_mutable_sphere()->::viam::common::v1::Sphere::MergeFrom( - from._internal_sphere()); + _internal_mutable_sphere()->::viam::common::v1::Sphere::MergeFrom(from._internal_sphere()); break; } case kBox: { - _this->_internal_mutable_box()->::viam::common::v1::RectangularPrism::MergeFrom( - from._internal_box()); + _internal_mutable_box()->::viam::common::v1::RectangularPrism::MergeFrom(from._internal_box()); break; } case kCapsule: { - _this->_internal_mutable_capsule()->::viam::common::v1::Capsule::MergeFrom( - from._internal_capsule()); + _internal_mutable_capsule()->::viam::common::v1::Capsule::MergeFrom(from._internal_capsule()); break; } case GEOMETRY_TYPE_NOT_SET: { break; } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Geometry::CopyFrom(const Geometry& from) { @@ -3730,216 +3456,227 @@ void Geometry::CopyFrom(const Geometry& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Geometry::IsInitialized() const { +bool Geometry::IsInitialized() const { return true; } -::_pbi::CachedSize* Geometry::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Geometry::InternalSwap(Geometry* PROTOBUF_RESTRICT other) { +void Geometry::InternalSwap(Geometry* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.label_, &other->_impl_.label_, arena); - swap(_impl_.center_, other->_impl_.center_); - swap(_impl_.geometry_type_, other->_impl_.geometry_type_); - swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &label_, lhs_arena, + &other->label_, rhs_arena + ); + swap(center_, other->center_); + swap(geometry_type_, other->geometry_type_); + swap(_oneof_case_[0], other->_oneof_case_[0]); } -::google::protobuf::Metadata Geometry::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Geometry::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[8]); } + // =================================================================== class GeometriesInFrame::_Internal { public: }; -GeometriesInFrame::GeometriesInFrame(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GeometriesInFrame::GeometriesInFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + geometries_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.common.v1.GeometriesInFrame) } -inline PROTOBUF_NDEBUG_INLINE GeometriesInFrame::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : geometries_{visibility, arena, from.geometries_}, - reference_frame_(arena, from.reference_frame_), - _cached_size_{0} {} - -GeometriesInFrame::GeometriesInFrame( - ::google::protobuf::Arena* arena, - const GeometriesInFrame& from) - : ::google::protobuf::Message(arena) { - GeometriesInFrame* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GeometriesInFrame::GeometriesInFrame(const GeometriesInFrame& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + geometries_(from.geometries_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + reference_frame_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + reference_frame_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_reference_frame().empty()) { + reference_frame_.Set(from._internal_reference_frame(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.common.v1.GeometriesInFrame) } -inline PROTOBUF_NDEBUG_INLINE GeometriesInFrame::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : geometries_{visibility, arena}, - reference_frame_(arena), - _cached_size_{0} {} -inline void GeometriesInFrame::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GeometriesInFrame::SharedCtor() { +reference_frame_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + reference_frame_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + GeometriesInFrame::~GeometriesInFrame() { // @@protoc_insertion_point(destructor:viam.common.v1.GeometriesInFrame) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GeometriesInFrame::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.reference_frame_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + reference_frame_.Destroy(); } -PROTOBUF_NOINLINE void GeometriesInFrame::Clear() { +void GeometriesInFrame::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GeometriesInFrame::Clear() { // @@protoc_insertion_point(message_clear_start:viam.common.v1.GeometriesInFrame) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.geometries_.Clear(); - _impl_.reference_frame_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GeometriesInFrame::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + geometries_.Clear(); + reference_frame_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GeometriesInFrame::_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 reference_frame = 1 [json_name = "referenceFrame"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_reference_frame(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.common.v1.GeometriesInFrame.reference_frame")); + } else + goto handle_unusual; + continue; + // repeated .viam.common.v1.Geometry geometries = 2 [json_name = "geometries"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_geometries(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 56, 2> GeometriesInFrame::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GeometriesInFrame_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.common.v1.Geometry geometries = 2 [json_name = "geometries"]; - {::_pbi::TcParser::FastMtR1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(GeometriesInFrame, _impl_.geometries_)}}, - // string reference_frame = 1 [json_name = "referenceFrame"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GeometriesInFrame, _impl_.reference_frame_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string reference_frame = 1 [json_name = "referenceFrame"]; - {PROTOBUF_FIELD_OFFSET(GeometriesInFrame, _impl_.reference_frame_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated .viam.common.v1.Geometry geometries = 2 [json_name = "geometries"]; - {PROTOBUF_FIELD_OFFSET(GeometriesInFrame, _impl_.geometries_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::common::v1::Geometry>()}, - }}, {{ - "\40\17\0\0\0\0\0\0" - "viam.common.v1.GeometriesInFrame" - "reference_frame" - }}, -}; - -::uint8_t* GeometriesInFrame::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GeometriesInFrame::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.common.v1.GeometriesInFrame) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string reference_frame = 1 [json_name = "referenceFrame"]; if (!this->_internal_reference_frame().empty()) { - const std::string& _s = this->_internal_reference_frame(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.common.v1.GeometriesInFrame.reference_frame"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_reference_frame().data(), static_cast(this->_internal_reference_frame().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.common.v1.GeometriesInFrame.reference_frame"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_reference_frame(), target); } // repeated .viam.common.v1.Geometry geometries = 2 [json_name = "geometries"]; for (unsigned i = 0, n = static_cast(this->_internal_geometries_size()); i < n; i++) { - const auto& repfield = this->_internal_geometries().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_geometries(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.GeometriesInFrame) return target; } -::size_t GeometriesInFrame::ByteSizeLong() const { +size_t GeometriesInFrame::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.common.v1.GeometriesInFrame) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.common.v1.Geometry geometries = 2 [json_name = "geometries"]; total_size += 1UL * this->_internal_geometries_size(); - for (const auto& msg : this->_internal_geometries()) { + for (const auto& msg : this->geometries_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // string reference_frame = 1 [json_name = "referenceFrame"]; if (!this->_internal_reference_frame().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_reference_frame()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_reference_frame()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GeometriesInFrame::_class_data_ = { - GeometriesInFrame::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GeometriesInFrame::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GeometriesInFrame::MergeImpl }; -const ::google::protobuf::Message::ClassData* GeometriesInFrame::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GeometriesInFrame::GetClassData() const { return &_class_data_; } + +void GeometriesInFrame::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GeometriesInFrame::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.GeometriesInFrame) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GeometriesInFrame::MergeFrom(const GeometriesInFrame& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.GeometriesInFrame) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_geometries()->MergeFrom( - from._internal_geometries()); + geometries_.MergeFrom(from.geometries_); if (!from._internal_reference_frame().empty()) { - _this->_internal_set_reference_frame(from._internal_reference_frame()); + _internal_set_reference_frame(from._internal_reference_frame()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GeometriesInFrame::CopyFrom(const GeometriesInFrame& from) { @@ -3949,231 +3686,229 @@ void GeometriesInFrame::CopyFrom(const GeometriesInFrame& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GeometriesInFrame::IsInitialized() const { +bool GeometriesInFrame::IsInitialized() const { return true; } -::_pbi::CachedSize* GeometriesInFrame::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GeometriesInFrame::InternalSwap(GeometriesInFrame* PROTOBUF_RESTRICT other) { +void GeometriesInFrame::InternalSwap(GeometriesInFrame* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.geometries_.InternalSwap(&other->_impl_.geometries_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.reference_frame_, &other->_impl_.reference_frame_, arena); + geometries_.InternalSwap(&other->geometries_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &reference_frame_, lhs_arena, + &other->reference_frame_, rhs_arena + ); } -::google::protobuf::Metadata GeometriesInFrame::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GeometriesInFrame::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[9]); } + // =================================================================== class PointCloudObject::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(PointCloudObject, _impl_._has_bits_); static const ::viam::common::v1::GeometriesInFrame& geometries(const PointCloudObject* msg); - static void set_has_geometries(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::common::v1::GeometriesInFrame& PointCloudObject::_Internal::geometries(const PointCloudObject* msg) { - return *msg->_impl_.geometries_; +const ::viam::common::v1::GeometriesInFrame& +PointCloudObject::_Internal::geometries(const PointCloudObject* msg) { + return *msg->geometries_; } -PointCloudObject::PointCloudObject(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +PointCloudObject::PointCloudObject(::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.PointCloudObject) } -inline PROTOBUF_NDEBUG_INLINE PointCloudObject::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - point_cloud_(arena, from.point_cloud_) {} - -PointCloudObject::PointCloudObject( - ::google::protobuf::Arena* arena, - const PointCloudObject& from) - : ::google::protobuf::Message(arena) { - PointCloudObject* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.geometries_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::common::v1::GeometriesInFrame>(arena, *from._impl_.geometries_) - : nullptr; - +PointCloudObject::PointCloudObject(const PointCloudObject& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + point_cloud_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + point_cloud_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_point_cloud().empty()) { + point_cloud_.Set(from._internal_point_cloud(), + GetArenaForAllocation()); + } + if (from._internal_has_geometries()) { + geometries_ = new ::viam::common::v1::GeometriesInFrame(*from.geometries_); + } else { + geometries_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.common.v1.PointCloudObject) } -inline PROTOBUF_NDEBUG_INLINE PointCloudObject::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - point_cloud_(arena) {} -inline void PointCloudObject::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.geometries_ = {}; +inline void PointCloudObject::SharedCtor() { +point_cloud_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + point_cloud_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +geometries_ = nullptr; } + PointCloudObject::~PointCloudObject() { // @@protoc_insertion_point(destructor:viam.common.v1.PointCloudObject) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void PointCloudObject::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.point_cloud_.Destroy(); - delete _impl_.geometries_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + point_cloud_.Destroy(); + if (this != internal_default_instance()) delete geometries_; } -PROTOBUF_NOINLINE void PointCloudObject::Clear() { +void PointCloudObject::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void PointCloudObject::Clear() { // @@protoc_insertion_point(message_clear_start:viam.common.v1.PointCloudObject) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.point_cloud_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.geometries_ != nullptr); - _impl_.geometries_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* PointCloudObject::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + point_cloud_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && geometries_ != nullptr) { + delete geometries_; + } + geometries_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* PointCloudObject::_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) { + // bytes point_cloud = 1 [json_name = "pointCloud"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_point_cloud(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.common.v1.GeometriesInFrame geometries = 2 [json_name = "geometries"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_geometries(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 0, 2> PointCloudObject::_table_ = { - { - PROTOBUF_FIELD_OFFSET(PointCloudObject, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_PointCloudObject_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.common.v1.GeometriesInFrame geometries = 2 [json_name = "geometries"]; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(PointCloudObject, _impl_.geometries_)}}, - // bytes point_cloud = 1 [json_name = "pointCloud"]; - {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(PointCloudObject, _impl_.point_cloud_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bytes point_cloud = 1 [json_name = "pointCloud"]; - {PROTOBUF_FIELD_OFFSET(PointCloudObject, _impl_.point_cloud_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // .viam.common.v1.GeometriesInFrame geometries = 2 [json_name = "geometries"]; - {PROTOBUF_FIELD_OFFSET(PointCloudObject, _impl_.geometries_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::common::v1::GeometriesInFrame>()}, - }}, {{ - }}, -}; - -::uint8_t* PointCloudObject::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* PointCloudObject::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.common.v1.PointCloudObject) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // bytes point_cloud = 1 [json_name = "pointCloud"]; if (!this->_internal_point_cloud().empty()) { - const std::string& _s = this->_internal_point_cloud(); - target = stream->WriteBytesMaybeAliased(1, _s, target); + target = stream->WriteBytesMaybeAliased( + 1, this->_internal_point_cloud(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .viam.common.v1.GeometriesInFrame geometries = 2 [json_name = "geometries"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::geometries(this), + if (this->_internal_has_geometries()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::geometries(this), _Internal::geometries(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.PointCloudObject) return target; } -::size_t PointCloudObject::ByteSizeLong() const { +size_t PointCloudObject::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.common.v1.PointCloudObject) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // bytes point_cloud = 1 [json_name = "pointCloud"]; if (!this->_internal_point_cloud().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_point_cloud()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_point_cloud()); } // .viam.common.v1.GeometriesInFrame geometries = 2 [json_name = "geometries"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.geometries_); + if (this->_internal_has_geometries()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *geometries_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData PointCloudObject::_class_data_ = { - PointCloudObject::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PointCloudObject::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + PointCloudObject::MergeImpl }; -const ::google::protobuf::Message::ClassData* PointCloudObject::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PointCloudObject::GetClassData() const { return &_class_data_; } + +void PointCloudObject::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void PointCloudObject::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.PointCloudObject) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void PointCloudObject::MergeFrom(const PointCloudObject& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.PointCloudObject) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_point_cloud().empty()) { - _this->_internal_set_point_cloud(from._internal_point_cloud()); + _internal_set_point_cloud(from._internal_point_cloud()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_geometries()->::viam::common::v1::GeometriesInFrame::MergeFrom( - from._internal_geometries()); + if (from._internal_has_geometries()) { + _internal_mutable_geometries()->::viam::common::v1::GeometriesInFrame::MergeFrom(from._internal_geometries()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void PointCloudObject::CopyFrom(const PointCloudObject& from) { @@ -4183,228 +3918,227 @@ void PointCloudObject::CopyFrom(const PointCloudObject& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool PointCloudObject::IsInitialized() const { +bool PointCloudObject::IsInitialized() const { return true; } -::_pbi::CachedSize* PointCloudObject::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void PointCloudObject::InternalSwap(PointCloudObject* PROTOBUF_RESTRICT other) { +void PointCloudObject::InternalSwap(PointCloudObject* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.point_cloud_, &other->_impl_.point_cloud_, arena); - swap(_impl_.geometries_, other->_impl_.geometries_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &point_cloud_, lhs_arena, + &other->point_cloud_, rhs_arena + ); + swap(geometries_, other->geometries_); } -::google::protobuf::Metadata PointCloudObject::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata PointCloudObject::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[10]); } + // =================================================================== class GeoPoint::_Internal { public: }; -GeoPoint::GeoPoint(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GeoPoint::GeoPoint(::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.GeoPoint) } -GeoPoint::GeoPoint( - ::google::protobuf::Arena* arena, const GeoPoint& from) - : GeoPoint(arena) { - MergeFrom(from); +GeoPoint::GeoPoint(const GeoPoint& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&latitude_, &from.latitude_, + static_cast(reinterpret_cast(&longitude_) - + reinterpret_cast(&latitude_)) + sizeof(longitude_)); + // @@protoc_insertion_point(copy_constructor:viam.common.v1.GeoPoint) } -inline PROTOBUF_NDEBUG_INLINE GeoPoint::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void GeoPoint::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, latitude_), - 0, - offsetof(Impl_, longitude_) - - offsetof(Impl_, latitude_) + - sizeof(Impl_::longitude_)); +inline void GeoPoint::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&latitude_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&longitude_) - + reinterpret_cast(&latitude_)) + sizeof(longitude_)); } + GeoPoint::~GeoPoint() { // @@protoc_insertion_point(destructor:viam.common.v1.GeoPoint) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GeoPoint::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void GeoPoint::Clear() { +void GeoPoint::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GeoPoint::Clear() { // @@protoc_insertion_point(message_clear_start:viam.common.v1.GeoPoint) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&_impl_.latitude_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.longitude_) - - reinterpret_cast(&_impl_.latitude_)) + sizeof(_impl_.longitude_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GeoPoint::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + ::memset(&latitude_, 0, static_cast( + reinterpret_cast(&longitude_) - + reinterpret_cast(&latitude_)) + sizeof(longitude_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GeoPoint::_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) { + // double latitude = 1 [json_name = "latitude"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 9)) { + latitude_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double longitude = 2 [json_name = "longitude"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 17)) { + longitude_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> GeoPoint::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GeoPoint_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // double longitude = 2 [json_name = "longitude"]; - {::_pbi::TcParser::FastF64S1, - {17, 63, 0, PROTOBUF_FIELD_OFFSET(GeoPoint, _impl_.longitude_)}}, - // double latitude = 1 [json_name = "latitude"]; - {::_pbi::TcParser::FastF64S1, - {9, 63, 0, PROTOBUF_FIELD_OFFSET(GeoPoint, _impl_.latitude_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // double latitude = 1 [json_name = "latitude"]; - {PROTOBUF_FIELD_OFFSET(GeoPoint, _impl_.latitude_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double longitude = 2 [json_name = "longitude"]; - {PROTOBUF_FIELD_OFFSET(GeoPoint, _impl_.longitude_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* GeoPoint::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GeoPoint::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.common.v1.GeoPoint) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // double latitude = 1 [json_name = "latitude"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_latitude = this->_internal_latitude(); - ::uint64_t raw_latitude; + uint64_t raw_latitude; memcpy(&raw_latitude, &tmp_latitude, sizeof(tmp_latitude)); if (raw_latitude != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 1, this->_internal_latitude(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(1, this->_internal_latitude(), target); } // double longitude = 2 [json_name = "longitude"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_longitude = this->_internal_longitude(); - ::uint64_t raw_longitude; + uint64_t raw_longitude; memcpy(&raw_longitude, &tmp_longitude, sizeof(tmp_longitude)); if (raw_longitude != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 2, this->_internal_longitude(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_longitude(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.GeoPoint) return target; } -::size_t GeoPoint::ByteSizeLong() const { +size_t GeoPoint::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.common.v1.GeoPoint) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // double latitude = 1 [json_name = "latitude"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_latitude = this->_internal_latitude(); - ::uint64_t raw_latitude; + uint64_t raw_latitude; memcpy(&raw_latitude, &tmp_latitude, sizeof(tmp_latitude)); if (raw_latitude != 0) { - total_size += 9; + total_size += 1 + 8; } // double longitude = 2 [json_name = "longitude"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_longitude = this->_internal_longitude(); - ::uint64_t raw_longitude; + uint64_t raw_longitude; memcpy(&raw_longitude, &tmp_longitude, sizeof(tmp_longitude)); if (raw_longitude != 0) { - total_size += 9; + total_size += 1 + 8; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GeoPoint::_class_data_ = { - GeoPoint::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GeoPoint::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GeoPoint::MergeImpl }; -const ::google::protobuf::Message::ClassData* GeoPoint::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GeoPoint::GetClassData() const { return &_class_data_; } + +void GeoPoint::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GeoPoint::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.GeoPoint) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GeoPoint::MergeFrom(const GeoPoint& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.GeoPoint) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_latitude = from._internal_latitude(); - ::uint64_t raw_latitude; + uint64_t raw_latitude; memcpy(&raw_latitude, &tmp_latitude, sizeof(tmp_latitude)); if (raw_latitude != 0) { - _this->_internal_set_latitude(from._internal_latitude()); + _internal_set_latitude(from._internal_latitude()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_longitude = from._internal_longitude(); - ::uint64_t raw_longitude; + uint64_t raw_longitude; memcpy(&raw_longitude, &tmp_longitude, sizeof(tmp_longitude)); if (raw_longitude != 0) { - _this->_internal_set_longitude(from._internal_longitude()); + _internal_set_longitude(from._internal_longitude()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GeoPoint::CopyFrom(const GeoPoint& from) { @@ -4414,234 +4148,221 @@ void GeoPoint::CopyFrom(const GeoPoint& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GeoPoint::IsInitialized() const { +bool GeoPoint::IsInitialized() const { return true; } -::_pbi::CachedSize* GeoPoint::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GeoPoint::InternalSwap(GeoPoint* PROTOBUF_RESTRICT other) { +void GeoPoint::InternalSwap(GeoPoint* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(GeoPoint, _impl_.longitude_) - + sizeof(GeoPoint::_impl_.longitude_) - - PROTOBUF_FIELD_OFFSET(GeoPoint, _impl_.latitude_)>( - reinterpret_cast(&_impl_.latitude_), - reinterpret_cast(&other->_impl_.latitude_)); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GeoPoint, longitude_) + + sizeof(GeoPoint::longitude_) + - PROTOBUF_FIELD_OFFSET(GeoPoint, latitude_)>( + reinterpret_cast(&latitude_), + reinterpret_cast(&other->latitude_)); } -::google::protobuf::Metadata GeoPoint::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GeoPoint::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[11]); } + // =================================================================== class GeoGeometry::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GeoGeometry, _impl_._has_bits_); static const ::viam::common::v1::GeoPoint& location(const GeoGeometry* msg); - static void set_has_location(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::common::v1::GeoPoint& GeoGeometry::_Internal::location(const GeoGeometry* msg) { - return *msg->_impl_.location_; +const ::viam::common::v1::GeoPoint& +GeoGeometry::_Internal::location(const GeoGeometry* msg) { + return *msg->location_; } -GeoGeometry::GeoGeometry(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GeoGeometry::GeoGeometry(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + geometries_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.common.v1.GeoGeometry) } -inline PROTOBUF_NDEBUG_INLINE GeoGeometry::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - geometries_{visibility, arena, from.geometries_} {} - -GeoGeometry::GeoGeometry( - ::google::protobuf::Arena* arena, - const GeoGeometry& from) - : ::google::protobuf::Message(arena) { - GeoGeometry* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.location_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::common::v1::GeoPoint>(arena, *from._impl_.location_) - : nullptr; - +GeoGeometry::GeoGeometry(const GeoGeometry& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + geometries_(from.geometries_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_location()) { + location_ = new ::viam::common::v1::GeoPoint(*from.location_); + } else { + location_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.common.v1.GeoGeometry) } -inline PROTOBUF_NDEBUG_INLINE GeoGeometry::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - geometries_{visibility, arena} {} -inline void GeoGeometry::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.location_ = {}; +inline void GeoGeometry::SharedCtor() { +location_ = nullptr; } + GeoGeometry::~GeoGeometry() { // @@protoc_insertion_point(destructor:viam.common.v1.GeoGeometry) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GeoGeometry::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.location_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete location_; } -PROTOBUF_NOINLINE void GeoGeometry::Clear() { +void GeoGeometry::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GeoGeometry::Clear() { // @@protoc_insertion_point(message_clear_start:viam.common.v1.GeoGeometry) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.geometries_.Clear(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.location_ != nullptr); - _impl_.location_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GeoGeometry::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + geometries_.Clear(); + if (GetArenaForAllocation() == nullptr && location_ != nullptr) { + delete location_; + } + location_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GeoGeometry::_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.GeoPoint location = 1 [json_name = "location"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_location(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // repeated .viam.common.v1.Geometry geometries = 2 [json_name = "geometries"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_geometries(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 2, 0, 2> GeoGeometry::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GeoGeometry, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GeoGeometry_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.common.v1.Geometry geometries = 2 [json_name = "geometries"]; - {::_pbi::TcParser::FastMtR1, - {18, 63, 1, PROTOBUF_FIELD_OFFSET(GeoGeometry, _impl_.geometries_)}}, - // .viam.common.v1.GeoPoint location = 1 [json_name = "location"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(GeoGeometry, _impl_.location_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.common.v1.GeoPoint location = 1 [json_name = "location"]; - {PROTOBUF_FIELD_OFFSET(GeoGeometry, _impl_.location_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated .viam.common.v1.Geometry geometries = 2 [json_name = "geometries"]; - {PROTOBUF_FIELD_OFFSET(GeoGeometry, _impl_.geometries_), -1, 1, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::common::v1::GeoPoint>()}, - {::_pbi::TcParser::GetTable<::viam::common::v1::Geometry>()}, - }}, {{ - }}, -}; - -::uint8_t* GeoGeometry::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GeoGeometry::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.common.v1.GeoGeometry) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.common.v1.GeoPoint location = 1 [json_name = "location"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::location(this), + if (this->_internal_has_location()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::location(this), _Internal::location(this).GetCachedSize(), target, stream); } // repeated .viam.common.v1.Geometry geometries = 2 [json_name = "geometries"]; for (unsigned i = 0, n = static_cast(this->_internal_geometries_size()); i < n; i++) { - const auto& repfield = this->_internal_geometries().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_geometries(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.GeoGeometry) return target; } -::size_t GeoGeometry::ByteSizeLong() const { +size_t GeoGeometry::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.common.v1.GeoGeometry) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.common.v1.Geometry geometries = 2 [json_name = "geometries"]; total_size += 1UL * this->_internal_geometries_size(); - for (const auto& msg : this->_internal_geometries()) { + for (const auto& msg : this->geometries_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // .viam.common.v1.GeoPoint location = 1 [json_name = "location"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.location_); + if (this->_internal_has_location()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *location_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GeoGeometry::_class_data_ = { - GeoGeometry::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GeoGeometry::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GeoGeometry::MergeImpl }; -const ::google::protobuf::Message::ClassData* GeoGeometry::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GeoGeometry::GetClassData() const { return &_class_data_; } + +void GeoGeometry::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GeoGeometry::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.GeoGeometry) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GeoGeometry::MergeFrom(const GeoGeometry& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.GeoGeometry) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_geometries()->MergeFrom( - from._internal_geometries()); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_location()->::viam::common::v1::GeoPoint::MergeFrom( - from._internal_location()); + geometries_.MergeFrom(from.geometries_); + if (from._internal_has_location()) { + _internal_mutable_location()->::viam::common::v1::GeoPoint::MergeFrom(from._internal_location()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GeoGeometry::CopyFrom(const GeoGeometry& from) { @@ -4651,287 +4372,282 @@ void GeoGeometry::CopyFrom(const GeoGeometry& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GeoGeometry::IsInitialized() const { +bool GeoGeometry::IsInitialized() const { return true; } -::_pbi::CachedSize* GeoGeometry::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GeoGeometry::InternalSwap(GeoGeometry* PROTOBUF_RESTRICT other) { +void GeoGeometry::InternalSwap(GeoGeometry* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.geometries_.InternalSwap(&other->_impl_.geometries_); - swap(_impl_.location_, other->_impl_.location_); + geometries_.InternalSwap(&other->geometries_); + swap(location_, other->location_); } -::google::protobuf::Metadata GeoGeometry::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GeoGeometry::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[12]); } + // =================================================================== class Transform::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Transform, _impl_._has_bits_); + using HasBits = decltype(std::declval()._has_bits_); static const ::viam::common::v1::PoseInFrame& pose_in_observer_frame(const Transform* msg); - static void set_has_pose_in_observer_frame(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } static const ::viam::common::v1::Geometry& physical_object(const Transform* msg); static void set_has_physical_object(HasBits* has_bits) { - (*has_bits)[0] |= 2u; + (*has_bits)[0] |= 1u; } }; -const ::viam::common::v1::PoseInFrame& Transform::_Internal::pose_in_observer_frame(const Transform* msg) { - return *msg->_impl_.pose_in_observer_frame_; +const ::viam::common::v1::PoseInFrame& +Transform::_Internal::pose_in_observer_frame(const Transform* msg) { + return *msg->pose_in_observer_frame_; } -const ::viam::common::v1::Geometry& Transform::_Internal::physical_object(const Transform* msg) { - return *msg->_impl_.physical_object_; +const ::viam::common::v1::Geometry& +Transform::_Internal::physical_object(const Transform* msg) { + return *msg->physical_object_; } -Transform::Transform(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Transform::Transform(::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.Transform) } -inline PROTOBUF_NDEBUG_INLINE Transform::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - reference_frame_(arena, from.reference_frame_) {} - -Transform::Transform( - ::google::protobuf::Arena* arena, - const Transform& from) - : ::google::protobuf::Message(arena) { - Transform* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.pose_in_observer_frame_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::common::v1::PoseInFrame>(arena, *from._impl_.pose_in_observer_frame_) - : nullptr; - _impl_.physical_object_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::viam::common::v1::Geometry>(arena, *from._impl_.physical_object_) - : nullptr; - +Transform::Transform(const Transform& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + reference_frame_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + reference_frame_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_reference_frame().empty()) { + reference_frame_.Set(from._internal_reference_frame(), + GetArenaForAllocation()); + } + if (from._internal_has_pose_in_observer_frame()) { + pose_in_observer_frame_ = new ::viam::common::v1::PoseInFrame(*from.pose_in_observer_frame_); + } else { + pose_in_observer_frame_ = nullptr; + } + if (from._internal_has_physical_object()) { + physical_object_ = new ::viam::common::v1::Geometry(*from.physical_object_); + } else { + physical_object_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.common.v1.Transform) } -inline PROTOBUF_NDEBUG_INLINE Transform::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - reference_frame_(arena) {} - -inline void Transform::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, pose_in_observer_frame_), - 0, - offsetof(Impl_, physical_object_) - - offsetof(Impl_, pose_in_observer_frame_) + - sizeof(Impl_::physical_object_)); + +inline void Transform::SharedCtor() { +reference_frame_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + reference_frame_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&pose_in_observer_frame_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&physical_object_) - + reinterpret_cast(&pose_in_observer_frame_)) + sizeof(physical_object_)); } + Transform::~Transform() { // @@protoc_insertion_point(destructor:viam.common.v1.Transform) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Transform::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.reference_frame_.Destroy(); - delete _impl_.pose_in_observer_frame_; - delete _impl_.physical_object_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + reference_frame_.Destroy(); + if (this != internal_default_instance()) delete pose_in_observer_frame_; + if (this != internal_default_instance()) delete physical_object_; } -PROTOBUF_NOINLINE void Transform::Clear() { +void Transform::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void Transform::Clear() { // @@protoc_insertion_point(message_clear_start:viam.common.v1.Transform) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.reference_frame_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.pose_in_observer_frame_ != nullptr); - _impl_.pose_in_observer_frame_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.physical_object_ != nullptr); - _impl_.physical_object_->Clear(); - } + reference_frame_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && pose_in_observer_frame_ != nullptr) { + delete pose_in_observer_frame_; } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Transform::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + pose_in_observer_frame_ = nullptr; + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(physical_object_ != nullptr); + physical_object_->Clear(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Transform::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string reference_frame = 1 [json_name = "referenceFrame"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_reference_frame(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.common.v1.Transform.reference_frame")); + } else + goto handle_unusual; + continue; + // .viam.common.v1.PoseInFrame pose_in_observer_frame = 2 [json_name = "poseInObserverFrame"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_pose_in_observer_frame(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional .viam.common.v1.Geometry physical_object = 3 [json_name = "physicalObject"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_physical_object(), 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: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 2, 48, 2> Transform::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Transform, _impl_._has_bits_), - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Transform_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string reference_frame = 1 [json_name = "referenceFrame"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Transform, _impl_.reference_frame_)}}, - // .viam.common.v1.PoseInFrame pose_in_observer_frame = 2 [json_name = "poseInObserverFrame"]; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(Transform, _impl_.pose_in_observer_frame_)}}, - // optional .viam.common.v1.Geometry physical_object = 3 [json_name = "physicalObject"]; - {::_pbi::TcParser::FastMtS1, - {26, 1, 1, PROTOBUF_FIELD_OFFSET(Transform, _impl_.physical_object_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string reference_frame = 1 [json_name = "referenceFrame"]; - {PROTOBUF_FIELD_OFFSET(Transform, _impl_.reference_frame_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .viam.common.v1.PoseInFrame pose_in_observer_frame = 2 [json_name = "poseInObserverFrame"]; - {PROTOBUF_FIELD_OFFSET(Transform, _impl_.pose_in_observer_frame_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // optional .viam.common.v1.Geometry physical_object = 3 [json_name = "physicalObject"]; - {PROTOBUF_FIELD_OFFSET(Transform, _impl_.physical_object_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::common::v1::PoseInFrame>()}, - {::_pbi::TcParser::GetTable<::viam::common::v1::Geometry>()}, - }}, {{ - "\30\17\0\0\0\0\0\0" - "viam.common.v1.Transform" - "reference_frame" - }}, -}; - -::uint8_t* Transform::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Transform::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.common.v1.Transform) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string reference_frame = 1 [json_name = "referenceFrame"]; if (!this->_internal_reference_frame().empty()) { - const std::string& _s = this->_internal_reference_frame(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.common.v1.Transform.reference_frame"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_reference_frame().data(), static_cast(this->_internal_reference_frame().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.common.v1.Transform.reference_frame"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_reference_frame(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .viam.common.v1.PoseInFrame pose_in_observer_frame = 2 [json_name = "poseInObserverFrame"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::pose_in_observer_frame(this), + if (this->_internal_has_pose_in_observer_frame()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::pose_in_observer_frame(this), _Internal::pose_in_observer_frame(this).GetCachedSize(), target, stream); } // optional .viam.common.v1.Geometry physical_object = 3 [json_name = "physicalObject"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::physical_object(this), + if (_internal_has_physical_object()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::physical_object(this), _Internal::physical_object(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.Transform) return target; } -::size_t Transform::ByteSizeLong() const { +size_t Transform::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.common.v1.Transform) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string reference_frame = 1 [json_name = "referenceFrame"]; if (!this->_internal_reference_frame().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_reference_frame()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_reference_frame()); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // .viam.common.v1.PoseInFrame pose_in_observer_frame = 2 [json_name = "poseInObserverFrame"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.pose_in_observer_frame_); - } - - // optional .viam.common.v1.Geometry physical_object = 3 [json_name = "physicalObject"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.physical_object_); - } + // .viam.common.v1.PoseInFrame pose_in_observer_frame = 2 [json_name = "poseInObserverFrame"]; + if (this->_internal_has_pose_in_observer_frame()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *pose_in_observer_frame_); + } + // optional .viam.common.v1.Geometry physical_object = 3 [json_name = "physicalObject"]; + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *physical_object_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Transform::_class_data_ = { - Transform::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Transform::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Transform::MergeImpl }; -const ::google::protobuf::Message::ClassData* Transform::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Transform::GetClassData() const { return &_class_data_; } + +void Transform::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Transform::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.Transform) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Transform::MergeFrom(const Transform& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.Transform) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_reference_frame().empty()) { - _this->_internal_set_reference_frame(from._internal_reference_frame()); + _internal_set_reference_frame(from._internal_reference_frame()); } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_pose_in_observer_frame()->::viam::common::v1::PoseInFrame::MergeFrom( - from._internal_pose_in_observer_frame()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_physical_object()->::viam::common::v1::Geometry::MergeFrom( - from._internal_physical_object()); - } + if (from._internal_has_pose_in_observer_frame()) { + _internal_mutable_pose_in_observer_frame()->::viam::common::v1::PoseInFrame::MergeFrom(from._internal_pose_in_observer_frame()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_physical_object()) { + _internal_mutable_physical_object()->::viam::common::v1::Geometry::MergeFrom(from._internal_physical_object()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Transform::CopyFrom(const Transform& from) { @@ -4941,217 +4657,219 @@ void Transform::CopyFrom(const Transform& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Transform::IsInitialized() const { +bool Transform::IsInitialized() const { return true; } -::_pbi::CachedSize* Transform::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Transform::InternalSwap(Transform* PROTOBUF_RESTRICT other) { +void Transform::InternalSwap(Transform* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.reference_frame_, &other->_impl_.reference_frame_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(Transform, _impl_.physical_object_) - + sizeof(Transform::_impl_.physical_object_) - - PROTOBUF_FIELD_OFFSET(Transform, _impl_.pose_in_observer_frame_)>( - reinterpret_cast(&_impl_.pose_in_observer_frame_), - reinterpret_cast(&other->_impl_.pose_in_observer_frame_)); -} - -::google::protobuf::Metadata Transform::GetMetadata() const { + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &reference_frame_, lhs_arena, + &other->reference_frame_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Transform, physical_object_) + + sizeof(Transform::physical_object_) + - PROTOBUF_FIELD_OFFSET(Transform, pose_in_observer_frame_)>( + reinterpret_cast(&pose_in_observer_frame_), + reinterpret_cast(&other->pose_in_observer_frame_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Transform::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[13]); } + // =================================================================== class WorldState::_Internal { public: }; -WorldState::WorldState(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +WorldState::WorldState(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + obstacles_(arena), + transforms_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.common.v1.WorldState) } -inline PROTOBUF_NDEBUG_INLINE WorldState::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : obstacles_{visibility, arena, from.obstacles_}, - transforms_{visibility, arena, from.transforms_}, - _cached_size_{0} {} - -WorldState::WorldState( - ::google::protobuf::Arena* arena, - const WorldState& from) - : ::google::protobuf::Message(arena) { - WorldState* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +WorldState::WorldState(const WorldState& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + obstacles_(from.obstacles_), + transforms_(from.transforms_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.common.v1.WorldState) } -inline PROTOBUF_NDEBUG_INLINE WorldState::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : obstacles_{visibility, arena}, - transforms_{visibility, arena}, - _cached_size_{0} {} -inline void WorldState::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void WorldState::SharedCtor() { } + WorldState::~WorldState() { // @@protoc_insertion_point(destructor:viam.common.v1.WorldState) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void WorldState::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void WorldState::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void WorldState::Clear() { +void WorldState::Clear() { // @@protoc_insertion_point(message_clear_start:viam.common.v1.WorldState) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.obstacles_.Clear(); - _impl_.transforms_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* WorldState::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + obstacles_.Clear(); + transforms_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* WorldState::_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) { + // repeated .viam.common.v1.GeometriesInFrame obstacles = 1 [json_name = "obstacles"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_obstacles(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + // repeated .viam.common.v1.Transform transforms = 3 [json_name = "transforms"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_transforms(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 2, 2, 0, 2> WorldState::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967290, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_WorldState_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // repeated .viam.common.v1.GeometriesInFrame obstacles = 1 [json_name = "obstacles"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(WorldState, _impl_.obstacles_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // repeated .viam.common.v1.Transform transforms = 3 [json_name = "transforms"]; - {::_pbi::TcParser::FastMtR1, - {26, 63, 1, PROTOBUF_FIELD_OFFSET(WorldState, _impl_.transforms_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.common.v1.GeometriesInFrame obstacles = 1 [json_name = "obstacles"]; - {PROTOBUF_FIELD_OFFSET(WorldState, _impl_.obstacles_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated .viam.common.v1.Transform transforms = 3 [json_name = "transforms"]; - {PROTOBUF_FIELD_OFFSET(WorldState, _impl_.transforms_), 0, 1, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::common::v1::GeometriesInFrame>()}, - {::_pbi::TcParser::GetTable<::viam::common::v1::Transform>()}, - }}, {{ - }}, -}; - -::uint8_t* WorldState::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* WorldState::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.common.v1.WorldState) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .viam.common.v1.GeometriesInFrame obstacles = 1 [json_name = "obstacles"]; for (unsigned i = 0, n = static_cast(this->_internal_obstacles_size()); i < n; i++) { - const auto& repfield = this->_internal_obstacles().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_obstacles(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } // repeated .viam.common.v1.Transform transforms = 3 [json_name = "transforms"]; for (unsigned i = 0, n = static_cast(this->_internal_transforms_size()); i < n; i++) { - const auto& repfield = this->_internal_transforms().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_transforms(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.WorldState) return target; } -::size_t WorldState::ByteSizeLong() const { +size_t WorldState::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.common.v1.WorldState) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.common.v1.GeometriesInFrame obstacles = 1 [json_name = "obstacles"]; total_size += 1UL * this->_internal_obstacles_size(); - for (const auto& msg : this->_internal_obstacles()) { + for (const auto& msg : this->obstacles_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // repeated .viam.common.v1.Transform transforms = 3 [json_name = "transforms"]; total_size += 1UL * this->_internal_transforms_size(); - for (const auto& msg : this->_internal_transforms()) { + for (const auto& msg : this->transforms_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData WorldState::_class_data_ = { - WorldState::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData WorldState::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + WorldState::MergeImpl }; -const ::google::protobuf::Message::ClassData* WorldState::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*WorldState::GetClassData() const { return &_class_data_; } + +void WorldState::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void WorldState::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.WorldState) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void WorldState::MergeFrom(const WorldState& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.WorldState) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_obstacles()->MergeFrom( - from._internal_obstacles()); - _this->_internal_mutable_transforms()->MergeFrom( - from._internal_transforms()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + obstacles_.MergeFrom(from.obstacles_); + transforms_.MergeFrom(from.transforms_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void WorldState::CopyFrom(const WorldState& from) { @@ -5161,167 +4879,169 @@ void WorldState::CopyFrom(const WorldState& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool WorldState::IsInitialized() const { +bool WorldState::IsInitialized() const { return true; } -::_pbi::CachedSize* WorldState::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void WorldState::InternalSwap(WorldState* PROTOBUF_RESTRICT other) { +void WorldState::InternalSwap(WorldState* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.obstacles_.InternalSwap(&other->_impl_.obstacles_); - _impl_.transforms_.InternalSwap(&other->_impl_.transforms_); + obstacles_.InternalSwap(&other->obstacles_); + transforms_.InternalSwap(&other->transforms_); } -::google::protobuf::Metadata WorldState::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata WorldState::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[14]); } + // =================================================================== class ActuatorStatus::_Internal { public: }; -ActuatorStatus::ActuatorStatus(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ActuatorStatus::ActuatorStatus(::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.ActuatorStatus) } -ActuatorStatus::ActuatorStatus( - ::google::protobuf::Arena* arena, const ActuatorStatus& from) - : ActuatorStatus(arena) { - MergeFrom(from); +ActuatorStatus::ActuatorStatus(const ActuatorStatus& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + is_moving_ = from.is_moving_; + // @@protoc_insertion_point(copy_constructor:viam.common.v1.ActuatorStatus) } -inline PROTOBUF_NDEBUG_INLINE ActuatorStatus::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void ActuatorStatus::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.is_moving_ = {}; +inline void ActuatorStatus::SharedCtor() { +is_moving_ = false; } + ActuatorStatus::~ActuatorStatus() { // @@protoc_insertion_point(destructor:viam.common.v1.ActuatorStatus) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ActuatorStatus::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void ActuatorStatus::Clear() { +void ActuatorStatus::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ActuatorStatus::Clear() { // @@protoc_insertion_point(message_clear_start:viam.common.v1.ActuatorStatus) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.is_moving_ = false; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ActuatorStatus::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + is_moving_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ActuatorStatus::_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) { + // bool is_moving = 1 [json_name = "isMoving"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + is_moving_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> ActuatorStatus::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_ActuatorStatus_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // bool is_moving = 1 [json_name = "isMoving"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(ActuatorStatus, _impl_.is_moving_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bool is_moving = 1 [json_name = "isMoving"]; - {PROTOBUF_FIELD_OFFSET(ActuatorStatus, _impl_.is_moving_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* ActuatorStatus::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ActuatorStatus::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.common.v1.ActuatorStatus) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // bool is_moving = 1 [json_name = "isMoving"]; if (this->_internal_is_moving() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 1, this->_internal_is_moving(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_is_moving(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.ActuatorStatus) return target; } -::size_t ActuatorStatus::ByteSizeLong() const { +size_t ActuatorStatus::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.common.v1.ActuatorStatus) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // bool is_moving = 1 [json_name = "isMoving"]; if (this->_internal_is_moving() != 0) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ActuatorStatus::_class_data_ = { - ActuatorStatus::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ActuatorStatus::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ActuatorStatus::MergeImpl }; -const ::google::protobuf::Message::ClassData* ActuatorStatus::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ActuatorStatus::GetClassData() const { return &_class_data_; } + +void ActuatorStatus::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ActuatorStatus::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.ActuatorStatus) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ActuatorStatus::MergeFrom(const ActuatorStatus& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.ActuatorStatus) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_is_moving() != 0) { - _this->_internal_set_is_moving(from._internal_is_moving()); + _internal_set_is_moving(from._internal_is_moving()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ActuatorStatus::CopyFrom(const ActuatorStatus& from) { @@ -5331,208 +5051,198 @@ void ActuatorStatus::CopyFrom(const ActuatorStatus& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ActuatorStatus::IsInitialized() const { +bool ActuatorStatus::IsInitialized() const { return true; } -::_pbi::CachedSize* ActuatorStatus::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ActuatorStatus::InternalSwap(ActuatorStatus* PROTOBUF_RESTRICT other) { +void ActuatorStatus::InternalSwap(ActuatorStatus* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.is_moving_, other->_impl_.is_moving_); + swap(is_moving_, other->is_moving_); } -::google::protobuf::Metadata ActuatorStatus::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ActuatorStatus::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[15]); } + // =================================================================== class ResponseMetadata::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ResponseMetadata, _impl_._has_bits_); - static const ::google::protobuf::Timestamp& captured_at(const ResponseMetadata* msg); + using HasBits = decltype(std::declval()._has_bits_); + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& captured_at(const ResponseMetadata* msg); static void set_has_captured_at(HasBits* has_bits) { (*has_bits)[0] |= 1u; } }; -const ::google::protobuf::Timestamp& ResponseMetadata::_Internal::captured_at(const ResponseMetadata* msg) { - return *msg->_impl_.captured_at_; +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +ResponseMetadata::_Internal::captured_at(const ResponseMetadata* msg) { + return *msg->captured_at_; } void ResponseMetadata::clear_captured_at() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.captured_at_ != nullptr) _impl_.captured_at_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (captured_at_ != nullptr) captured_at_->Clear(); + _has_bits_[0] &= ~0x00000001u; } -ResponseMetadata::ResponseMetadata(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ResponseMetadata::ResponseMetadata(::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.ResponseMetadata) } -inline PROTOBUF_NDEBUG_INLINE ResponseMetadata::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -ResponseMetadata::ResponseMetadata( - ::google::protobuf::Arena* arena, - const ResponseMetadata& from) - : ::google::protobuf::Message(arena) { - ResponseMetadata* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.captured_at_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.captured_at_) - : nullptr; - +ResponseMetadata::ResponseMetadata(const ResponseMetadata& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_captured_at()) { + captured_at_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from.captured_at_); + } else { + captured_at_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.common.v1.ResponseMetadata) } -inline PROTOBUF_NDEBUG_INLINE ResponseMetadata::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void ResponseMetadata::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.captured_at_ = {}; +inline void ResponseMetadata::SharedCtor() { +captured_at_ = nullptr; } + ResponseMetadata::~ResponseMetadata() { // @@protoc_insertion_point(destructor:viam.common.v1.ResponseMetadata) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ResponseMetadata::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.captured_at_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete captured_at_; +} + +void ResponseMetadata::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void ResponseMetadata::Clear() { +void ResponseMetadata::Clear() { // @@protoc_insertion_point(message_clear_start:viam.common.v1.ResponseMetadata) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.captured_at_ != nullptr); - _impl_.captured_at_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ResponseMetadata::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + GOOGLE_DCHECK(captured_at_ != nullptr); + captured_at_->Clear(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ResponseMetadata::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // optional .google.protobuf.Timestamp captured_at = 1 [json_name = "capturedAt"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_captured_at(), 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: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ResponseMetadata::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ResponseMetadata, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ResponseMetadata_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // optional .google.protobuf.Timestamp captured_at = 1 [json_name = "capturedAt"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(ResponseMetadata, _impl_.captured_at_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // optional .google.protobuf.Timestamp captured_at = 1 [json_name = "capturedAt"]; - {PROTOBUF_FIELD_OFFSET(ResponseMetadata, _impl_.captured_at_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, - }}, {{ - }}, -}; - -::uint8_t* ResponseMetadata::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ResponseMetadata::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.common.v1.ResponseMetadata) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // optional .google.protobuf.Timestamp captured_at = 1 [json_name = "capturedAt"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::captured_at(this), + if (_internal_has_captured_at()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::captured_at(this), _Internal::captured_at(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.ResponseMetadata) return target; } -::size_t ResponseMetadata::ByteSizeLong() const { +size_t ResponseMetadata::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.common.v1.ResponseMetadata) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // optional .google.protobuf.Timestamp captured_at = 1 [json_name = "capturedAt"]; - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.captured_at_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *captured_at_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ResponseMetadata::_class_data_ = { - ResponseMetadata::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ResponseMetadata::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ResponseMetadata::MergeImpl }; -const ::google::protobuf::Message::ClassData* ResponseMetadata::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ResponseMetadata::GetClassData() const { return &_class_data_; } + +void ResponseMetadata::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ResponseMetadata::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.ResponseMetadata) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ResponseMetadata::MergeFrom(const ResponseMetadata& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.ResponseMetadata) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_captured_at()->::google::protobuf::Timestamp::MergeFrom( - from._internal_captured_at()); + if (from._internal_has_captured_at()) { + _internal_mutable_captured_at()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_captured_at()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ResponseMetadata::CopyFrom(const ResponseMetadata& from) { @@ -5542,239 +5252,235 @@ void ResponseMetadata::CopyFrom(const ResponseMetadata& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ResponseMetadata::IsInitialized() const { +bool ResponseMetadata::IsInitialized() const { return true; } -::_pbi::CachedSize* ResponseMetadata::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ResponseMetadata::InternalSwap(ResponseMetadata* PROTOBUF_RESTRICT other) { +void ResponseMetadata::InternalSwap(ResponseMetadata* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.captured_at_, other->_impl_.captured_at_); + swap(_has_bits_[0], other->_has_bits_[0]); + swap(captured_at_, other->captured_at_); } -::google::protobuf::Metadata ResponseMetadata::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ResponseMetadata::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[16]); } + // =================================================================== class DoCommandRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(DoCommandRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& command(const DoCommandRequest* msg); - static void set_has_command(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& command(const DoCommandRequest* msg); }; -const ::google::protobuf::Struct& DoCommandRequest::_Internal::command(const DoCommandRequest* msg) { - return *msg->_impl_.command_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +DoCommandRequest::_Internal::command(const DoCommandRequest* msg) { + return *msg->command_; } void DoCommandRequest::clear_command() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.command_ != nullptr) _impl_.command_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && command_ != nullptr) { + delete command_; + } + command_ = nullptr; } -DoCommandRequest::DoCommandRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +DoCommandRequest::DoCommandRequest(::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.DoCommandRequest) } -inline PROTOBUF_NDEBUG_INLINE DoCommandRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -DoCommandRequest::DoCommandRequest( - ::google::protobuf::Arena* arena, - const DoCommandRequest& from) - : ::google::protobuf::Message(arena) { - DoCommandRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.command_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.command_) - : nullptr; - +DoCommandRequest::DoCommandRequest(const DoCommandRequest& 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_command()) { + command_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.command_); + } else { + command_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.common.v1.DoCommandRequest) } -inline PROTOBUF_NDEBUG_INLINE DoCommandRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} -inline void DoCommandRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.command_ = {}; +inline void DoCommandRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +command_ = nullptr; } + DoCommandRequest::~DoCommandRequest() { // @@protoc_insertion_point(destructor:viam.common.v1.DoCommandRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void DoCommandRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.command_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete command_; +} + +void DoCommandRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void DoCommandRequest::Clear() { +void DoCommandRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.common.v1.DoCommandRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.command_ != nullptr); - _impl_.command_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* DoCommandRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && command_ != nullptr) { + delete command_; + } + command_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DoCommandRequest::_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.DoCommandRequest.name")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct command = 2 [json_name = "command"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_command(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 44, 2> DoCommandRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(DoCommandRequest, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_DoCommandRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .google.protobuf.Struct command = 2 [json_name = "command"]; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(DoCommandRequest, _impl_.command_)}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(DoCommandRequest, _impl_.name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(DoCommandRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct command = 2 [json_name = "command"]; - {PROTOBUF_FIELD_OFFSET(DoCommandRequest, _impl_.command_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\37\4\0\0\0\0\0\0" - "viam.common.v1.DoCommandRequest" - "name" - }}, -}; - -::uint8_t* DoCommandRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* DoCommandRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.common.v1.DoCommandRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.common.v1.DoCommandRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::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.DoCommandRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct command = 2 [json_name = "command"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::command(this), + if (this->_internal_has_command()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::command(this), _Internal::command(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.DoCommandRequest) return target; } -::size_t DoCommandRequest::ByteSizeLong() const { +size_t DoCommandRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.common.v1.DoCommandRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct command = 2 [json_name = "command"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.command_); + if (this->_internal_has_command()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *command_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData DoCommandRequest::_class_data_ = { - DoCommandRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DoCommandRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + DoCommandRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* DoCommandRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DoCommandRequest::GetClassData() const { return &_class_data_; } + +void DoCommandRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void DoCommandRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.DoCommandRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void DoCommandRequest::MergeFrom(const DoCommandRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.DoCommandRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_command()->::google::protobuf::Struct::MergeFrom( - from._internal_command()); + if (from._internal_has_command()) { + _internal_mutable_command()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_command()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void DoCommandRequest::CopyFrom(const DoCommandRequest& from) { @@ -5784,212 +5490,196 @@ void DoCommandRequest::CopyFrom(const DoCommandRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool DoCommandRequest::IsInitialized() const { +bool DoCommandRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* DoCommandRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void DoCommandRequest::InternalSwap(DoCommandRequest* PROTOBUF_RESTRICT other) { +void DoCommandRequest::InternalSwap(DoCommandRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.command_, other->_impl_.command_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(command_, other->command_); } -::google::protobuf::Metadata DoCommandRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata DoCommandRequest::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[17]); } + // =================================================================== class DoCommandResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(DoCommandResponse, _impl_._has_bits_); - static const ::google::protobuf::Struct& result(const DoCommandResponse* msg); - static void set_has_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& result(const DoCommandResponse* msg); }; -const ::google::protobuf::Struct& DoCommandResponse::_Internal::result(const DoCommandResponse* msg) { - return *msg->_impl_.result_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +DoCommandResponse::_Internal::result(const DoCommandResponse* msg) { + return *msg->result_; } void DoCommandResponse::clear_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.result_ != nullptr) _impl_.result_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && result_ != nullptr) { + delete result_; + } + result_ = nullptr; } -DoCommandResponse::DoCommandResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +DoCommandResponse::DoCommandResponse(::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.DoCommandResponse) } -inline PROTOBUF_NDEBUG_INLINE DoCommandResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -DoCommandResponse::DoCommandResponse( - ::google::protobuf::Arena* arena, - const DoCommandResponse& from) - : ::google::protobuf::Message(arena) { - DoCommandResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.result_) - : nullptr; - +DoCommandResponse::DoCommandResponse(const DoCommandResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_result()) { + result_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.result_); + } else { + result_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.common.v1.DoCommandResponse) } -inline PROTOBUF_NDEBUG_INLINE DoCommandResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void DoCommandResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.result_ = {}; +inline void DoCommandResponse::SharedCtor() { +result_ = nullptr; } + DoCommandResponse::~DoCommandResponse() { // @@protoc_insertion_point(destructor:viam.common.v1.DoCommandResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void DoCommandResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.result_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete result_; +} + +void DoCommandResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void DoCommandResponse::Clear() { +void DoCommandResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.common.v1.DoCommandResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.result_ != nullptr); - _impl_.result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* DoCommandResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + if (GetArenaForAllocation() == nullptr && result_ != nullptr) { + delete result_; + } + result_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DoCommandResponse::_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) { + // .google.protobuf.Struct result = 1 [json_name = "result"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_result(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> DoCommandResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(DoCommandResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_DoCommandResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .google.protobuf.Struct result = 1 [json_name = "result"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(DoCommandResponse, _impl_.result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .google.protobuf.Struct result = 1 [json_name = "result"]; - {PROTOBUF_FIELD_OFFSET(DoCommandResponse, _impl_.result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - }}, -}; - -::uint8_t* DoCommandResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* DoCommandResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.common.v1.DoCommandResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct result = 1 [json_name = "result"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::result(this), + if (this->_internal_has_result()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::result(this), _Internal::result(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.DoCommandResponse) return target; } -::size_t DoCommandResponse::ByteSizeLong() const { +size_t DoCommandResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.common.v1.DoCommandResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .google.protobuf.Struct result = 1 [json_name = "result"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.result_); + if (this->_internal_has_result()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *result_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData DoCommandResponse::_class_data_ = { - DoCommandResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DoCommandResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + DoCommandResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* DoCommandResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DoCommandResponse::GetClassData() const { return &_class_data_; } + +void DoCommandResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void DoCommandResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.DoCommandResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void DoCommandResponse::MergeFrom(const DoCommandResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.DoCommandResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_result()->::google::protobuf::Struct::MergeFrom( - from._internal_result()); + if (from._internal_has_result()) { + _internal_mutable_result()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_result()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void DoCommandResponse::CopyFrom(const DoCommandResponse& from) { @@ -5999,243 +5689,234 @@ void DoCommandResponse::CopyFrom(const DoCommandResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool DoCommandResponse::IsInitialized() const { +bool DoCommandResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* DoCommandResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void DoCommandResponse::InternalSwap(DoCommandResponse* PROTOBUF_RESTRICT other) { +void DoCommandResponse::InternalSwap(DoCommandResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.result_, other->_impl_.result_); + swap(result_, other->result_); } -::google::protobuf::Metadata DoCommandResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata DoCommandResponse::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[18]); } + // =================================================================== class GetKinematicsRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetKinematicsRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const GetKinematicsRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetKinematicsRequest* msg); }; -const ::google::protobuf::Struct& GetKinematicsRequest::_Internal::extra(const GetKinematicsRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetKinematicsRequest::_Internal::extra(const GetKinematicsRequest* msg) { + return *msg->extra_; } void GetKinematicsRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -GetKinematicsRequest::GetKinematicsRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetKinematicsRequest::GetKinematicsRequest(::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.GetKinematicsRequest) } -inline PROTOBUF_NDEBUG_INLINE GetKinematicsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -GetKinematicsRequest::GetKinematicsRequest( - ::google::protobuf::Arena* arena, - const GetKinematicsRequest& from) - : ::google::protobuf::Message(arena) { - GetKinematicsRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +GetKinematicsRequest::GetKinematicsRequest(const GetKinematicsRequest& 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.GetKinematicsRequest) } -inline PROTOBUF_NDEBUG_INLINE GetKinematicsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} -inline void GetKinematicsRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void GetKinematicsRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + GetKinematicsRequest::~GetKinematicsRequest() { // @@protoc_insertion_point(destructor:viam.common.v1.GetKinematicsRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetKinematicsRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void GetKinematicsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetKinematicsRequest::Clear() { +void GetKinematicsRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.common.v1.GetKinematicsRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetKinematicsRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetKinematicsRequest::_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.GetKinematicsRequest.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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 2, 1, 48, 7> GetKinematicsRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetKinematicsRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetKinematicsRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetKinematicsRequest, _impl_.name_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(GetKinematicsRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 1, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(GetKinematicsRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(GetKinematicsRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\43\4\0\0\0\0\0\0" - "viam.common.v1.GetKinematicsRequest" - "name" - }}, -}; - -::uint8_t* GetKinematicsRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetKinematicsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.common.v1.GetKinematicsRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.common.v1.GetKinematicsRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::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.GetKinematicsRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.GetKinematicsRequest) return target; } -::size_t GetKinematicsRequest::ByteSizeLong() const { +size_t GetKinematicsRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.common.v1.GetKinematicsRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetKinematicsRequest::_class_data_ = { - GetKinematicsRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetKinematicsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetKinematicsRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetKinematicsRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetKinematicsRequest::GetClassData() const { return &_class_data_; } + +void GetKinematicsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetKinematicsRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.GetKinematicsRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetKinematicsRequest::MergeFrom(const GetKinematicsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.GetKinematicsRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetKinematicsRequest::CopyFrom(const GetKinematicsRequest& from) { @@ -6245,209 +5926,216 @@ void GetKinematicsRequest::CopyFrom(const GetKinematicsRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetKinematicsRequest::IsInitialized() const { +bool GetKinematicsRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetKinematicsRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetKinematicsRequest::InternalSwap(GetKinematicsRequest* PROTOBUF_RESTRICT other) { +void GetKinematicsRequest::InternalSwap(GetKinematicsRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.extra_, other->_impl_.extra_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(extra_, other->extra_); } -::google::protobuf::Metadata GetKinematicsRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetKinematicsRequest::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[19]); } + // =================================================================== class GetKinematicsResponse::_Internal { public: }; -GetKinematicsResponse::GetKinematicsResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetKinematicsResponse::GetKinematicsResponse(::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.GetKinematicsResponse) } -inline PROTOBUF_NDEBUG_INLINE GetKinematicsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : kinematics_data_(arena, from.kinematics_data_), - _cached_size_{0} {} - -GetKinematicsResponse::GetKinematicsResponse( - ::google::protobuf::Arena* arena, - const GetKinematicsResponse& from) - : ::google::protobuf::Message(arena) { - GetKinematicsResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.format_ = from._impl_.format_; - +GetKinematicsResponse::GetKinematicsResponse(const GetKinematicsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + kinematics_data_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + kinematics_data_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_kinematics_data().empty()) { + kinematics_data_.Set(from._internal_kinematics_data(), + GetArenaForAllocation()); + } + format_ = from.format_; // @@protoc_insertion_point(copy_constructor:viam.common.v1.GetKinematicsResponse) } -inline PROTOBUF_NDEBUG_INLINE GetKinematicsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : kinematics_data_(arena), - _cached_size_{0} {} -inline void GetKinematicsResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.format_ = {}; +inline void GetKinematicsResponse::SharedCtor() { +kinematics_data_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + kinematics_data_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +format_ = 0; } + GetKinematicsResponse::~GetKinematicsResponse() { // @@protoc_insertion_point(destructor:viam.common.v1.GetKinematicsResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetKinematicsResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.kinematics_data_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + kinematics_data_.Destroy(); +} + +void GetKinematicsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetKinematicsResponse::Clear() { +void GetKinematicsResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.common.v1.GetKinematicsResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.kinematics_data_.ClearToEmpty(); - _impl_.format_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetKinematicsResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + kinematics_data_.ClearToEmpty(); + format_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetKinematicsResponse::_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.KinematicsFileFormat format = 1 [json_name = "format"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_format(static_cast<::viam::common::v1::KinematicsFileFormat>(val)); + } else + goto handle_unusual; + continue; + // bytes kinematics_data = 2 [json_name = "kinematicsData"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_kinematics_data(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> GetKinematicsResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetKinematicsResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // bytes kinematics_data = 2 [json_name = "kinematicsData"]; - {::_pbi::TcParser::FastBS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(GetKinematicsResponse, _impl_.kinematics_data_)}}, - // .viam.common.v1.KinematicsFileFormat format = 1 [json_name = "format"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(GetKinematicsResponse, _impl_.format_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(GetKinematicsResponse, _impl_.format_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.common.v1.KinematicsFileFormat format = 1 [json_name = "format"]; - {PROTOBUF_FIELD_OFFSET(GetKinematicsResponse, _impl_.format_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // bytes kinematics_data = 2 [json_name = "kinematicsData"]; - {PROTOBUF_FIELD_OFFSET(GetKinematicsResponse, _impl_.kinematics_data_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* GetKinematicsResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetKinematicsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.common.v1.GetKinematicsResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // .viam.common.v1.KinematicsFileFormat format = 1 [json_name = "format"]; if (this->_internal_format() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_format(), target); + 1, this->_internal_format(), target); } // bytes kinematics_data = 2 [json_name = "kinematicsData"]; if (!this->_internal_kinematics_data().empty()) { - const std::string& _s = this->_internal_kinematics_data(); - target = stream->WriteBytesMaybeAliased(2, _s, target); + target = stream->WriteBytesMaybeAliased( + 2, this->_internal_kinematics_data(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.GetKinematicsResponse) return target; } -::size_t GetKinematicsResponse::ByteSizeLong() const { +size_t GetKinematicsResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.common.v1.GetKinematicsResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // bytes kinematics_data = 2 [json_name = "kinematicsData"]; if (!this->_internal_kinematics_data().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_kinematics_data()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_kinematics_data()); } // .viam.common.v1.KinematicsFileFormat format = 1 [json_name = "format"]; if (this->_internal_format() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_format()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_format()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetKinematicsResponse::_class_data_ = { - GetKinematicsResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetKinematicsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetKinematicsResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetKinematicsResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetKinematicsResponse::GetClassData() const { return &_class_data_; } + +void GetKinematicsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetKinematicsResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.GetKinematicsResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetKinematicsResponse::MergeFrom(const GetKinematicsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.GetKinematicsResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_kinematics_data().empty()) { - _this->_internal_set_kinematics_data(from._internal_kinematics_data()); + _internal_set_kinematics_data(from._internal_kinematics_data()); } if (from._internal_format() != 0) { - _this->_internal_set_format(from._internal_format()); + _internal_set_format(from._internal_format()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetKinematicsResponse::CopyFrom(const GetKinematicsResponse& from) { @@ -6457,245 +6145,240 @@ void GetKinematicsResponse::CopyFrom(const GetKinematicsResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetKinematicsResponse::IsInitialized() const { +bool GetKinematicsResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetKinematicsResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetKinematicsResponse::InternalSwap(GetKinematicsResponse* PROTOBUF_RESTRICT other) { +void GetKinematicsResponse::InternalSwap(GetKinematicsResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.kinematics_data_, &other->_impl_.kinematics_data_, arena); - swap(_impl_.format_, other->_impl_.format_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &kinematics_data_, lhs_arena, + &other->kinematics_data_, rhs_arena + ); + swap(format_, other->format_); } -::google::protobuf::Metadata GetKinematicsResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetKinematicsResponse::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[20]); } + // =================================================================== class GetGeometriesRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetGeometriesRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const GetGeometriesRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetGeometriesRequest* msg); }; -const ::google::protobuf::Struct& GetGeometriesRequest::_Internal::extra(const GetGeometriesRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetGeometriesRequest::_Internal::extra(const GetGeometriesRequest* msg) { + return *msg->extra_; } void GetGeometriesRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -GetGeometriesRequest::GetGeometriesRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetGeometriesRequest::GetGeometriesRequest(::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.GetGeometriesRequest) } -inline PROTOBUF_NDEBUG_INLINE GetGeometriesRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -GetGeometriesRequest::GetGeometriesRequest( - ::google::protobuf::Arena* arena, - const GetGeometriesRequest& from) - : ::google::protobuf::Message(arena) { - GetGeometriesRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +GetGeometriesRequest::GetGeometriesRequest(const GetGeometriesRequest& 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.GetGeometriesRequest) } -inline PROTOBUF_NDEBUG_INLINE GetGeometriesRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} -inline void GetGeometriesRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void GetGeometriesRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + GetGeometriesRequest::~GetGeometriesRequest() { // @@protoc_insertion_point(destructor:viam.common.v1.GetGeometriesRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetGeometriesRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void GetGeometriesRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetGeometriesRequest::Clear() { +void GetGeometriesRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.common.v1.GetGeometriesRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetGeometriesRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetGeometriesRequest::_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.GetGeometriesRequest.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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 2, 1, 48, 7> GetGeometriesRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetGeometriesRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetGeometriesRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetGeometriesRequest, _impl_.name_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(GetGeometriesRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 1, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(GetGeometriesRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(GetGeometriesRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\43\4\0\0\0\0\0\0" - "viam.common.v1.GetGeometriesRequest" - "name" - }}, -}; - -::uint8_t* GetGeometriesRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetGeometriesRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.common.v1.GetGeometriesRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.common.v1.GetGeometriesRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::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.GetGeometriesRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.GetGeometriesRequest) return target; } -::size_t GetGeometriesRequest::ByteSizeLong() const { +size_t GetGeometriesRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.common.v1.GetGeometriesRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetGeometriesRequest::_class_data_ = { - GetGeometriesRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetGeometriesRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetGeometriesRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetGeometriesRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetGeometriesRequest::GetClassData() const { return &_class_data_; } + +void GetGeometriesRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetGeometriesRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.GetGeometriesRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetGeometriesRequest::MergeFrom(const GetGeometriesRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.GetGeometriesRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetGeometriesRequest::CopyFrom(const GetGeometriesRequest& from) { @@ -6705,184 +6388,181 @@ void GetGeometriesRequest::CopyFrom(const GetGeometriesRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetGeometriesRequest::IsInitialized() const { +bool GetGeometriesRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetGeometriesRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetGeometriesRequest::InternalSwap(GetGeometriesRequest* PROTOBUF_RESTRICT other) { +void GetGeometriesRequest::InternalSwap(GetGeometriesRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.extra_, other->_impl_.extra_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(extra_, other->extra_); } -::google::protobuf::Metadata GetGeometriesRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetGeometriesRequest::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[21]); } + // =================================================================== class GetGeometriesResponse::_Internal { public: }; -GetGeometriesResponse::GetGeometriesResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetGeometriesResponse::GetGeometriesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + geometries_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.common.v1.GetGeometriesResponse) } -inline PROTOBUF_NDEBUG_INLINE GetGeometriesResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : geometries_{visibility, arena, from.geometries_}, - _cached_size_{0} {} - -GetGeometriesResponse::GetGeometriesResponse( - ::google::protobuf::Arena* arena, - const GetGeometriesResponse& from) - : ::google::protobuf::Message(arena) { - GetGeometriesResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetGeometriesResponse::GetGeometriesResponse(const GetGeometriesResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + geometries_(from.geometries_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.common.v1.GetGeometriesResponse) } -inline PROTOBUF_NDEBUG_INLINE GetGeometriesResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : geometries_{visibility, arena}, - _cached_size_{0} {} -inline void GetGeometriesResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetGeometriesResponse::SharedCtor() { } + GetGeometriesResponse::~GetGeometriesResponse() { // @@protoc_insertion_point(destructor:viam.common.v1.GetGeometriesResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetGeometriesResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void GetGeometriesResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetGeometriesResponse::Clear() { +void GetGeometriesResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.common.v1.GetGeometriesResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.geometries_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetGeometriesResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + geometries_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetGeometriesResponse::_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) { + // repeated .viam.common.v1.Geometry geometries = 1 [json_name = "geometries"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_geometries(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetGeometriesResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetGeometriesResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.common.v1.Geometry geometries = 1 [json_name = "geometries"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetGeometriesResponse, _impl_.geometries_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.common.v1.Geometry geometries = 1 [json_name = "geometries"]; - {PROTOBUF_FIELD_OFFSET(GetGeometriesResponse, _impl_.geometries_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::common::v1::Geometry>()}, - }}, {{ - }}, -}; - -::uint8_t* GetGeometriesResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetGeometriesResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.common.v1.GetGeometriesResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .viam.common.v1.Geometry geometries = 1 [json_name = "geometries"]; for (unsigned i = 0, n = static_cast(this->_internal_geometries_size()); i < n; i++) { - const auto& repfield = this->_internal_geometries().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_geometries(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.GetGeometriesResponse) return target; } -::size_t GetGeometriesResponse::ByteSizeLong() const { +size_t GetGeometriesResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.common.v1.GetGeometriesResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.common.v1.Geometry geometries = 1 [json_name = "geometries"]; total_size += 1UL * this->_internal_geometries_size(); - for (const auto& msg : this->_internal_geometries()) { + for (const auto& msg : this->geometries_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetGeometriesResponse::_class_data_ = { - GetGeometriesResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetGeometriesResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetGeometriesResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetGeometriesResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetGeometriesResponse::GetClassData() const { return &_class_data_; } + +void GetGeometriesResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetGeometriesResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.GetGeometriesResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetGeometriesResponse::MergeFrom(const GetGeometriesResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.GetGeometriesResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_geometries()->MergeFrom( - from._internal_geometries()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + geometries_.MergeFrom(from.geometries_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetGeometriesResponse::CopyFrom(const GetGeometriesResponse& from) { @@ -6892,242 +6572,234 @@ void GetGeometriesResponse::CopyFrom(const GetGeometriesResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetGeometriesResponse::IsInitialized() const { +bool GetGeometriesResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetGeometriesResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetGeometriesResponse::InternalSwap(GetGeometriesResponse* PROTOBUF_RESTRICT other) { +void GetGeometriesResponse::InternalSwap(GetGeometriesResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.geometries_.InternalSwap(&other->_impl_.geometries_); + geometries_.InternalSwap(&other->geometries_); } -::google::protobuf::Metadata GetGeometriesResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetGeometriesResponse::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[22]); } + // =================================================================== class GetReadingsRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetReadingsRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const GetReadingsRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetReadingsRequest* msg); }; -const ::google::protobuf::Struct& GetReadingsRequest::_Internal::extra(const GetReadingsRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetReadingsRequest::_Internal::extra(const GetReadingsRequest* msg) { + return *msg->extra_; } void GetReadingsRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -GetReadingsRequest::GetReadingsRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +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) } -inline PROTOBUF_NDEBUG_INLINE GetReadingsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -GetReadingsRequest::GetReadingsRequest( - ::google::protobuf::Arena* arena, - const GetReadingsRequest& from) - : ::google::protobuf::Message(arena) { - GetReadingsRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +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 PROTOBUF_NDEBUG_INLINE GetReadingsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} -inline void GetReadingsRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +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) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetReadingsRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void GetReadingsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetReadingsRequest::Clear() { +void GetReadingsRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.common.v1.GetReadingsRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetReadingsRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 2, 1, 46, 7> GetReadingsRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetReadingsRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetReadingsRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetReadingsRequest, _impl_.name_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(GetReadingsRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 1, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(GetReadingsRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(GetReadingsRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\41\4\0\0\0\0\0\0" - "viam.common.v1.GetReadingsRequest" - "name" - }}, -}; - -::uint8_t* GetReadingsRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +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; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.common.v1.GetReadingsRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::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); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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 { +size_t GetReadingsRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.common.v1.GetReadingsRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetReadingsRequest::_class_data_ = { - GetReadingsRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetReadingsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetReadingsRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetReadingsRequest::GetClassData() const { - return &_class_data_; +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::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.GetReadingsRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +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()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetReadingsRequest::CopyFrom(const GetReadingsRequest& from) { @@ -7137,38 +6809,42 @@ void GetReadingsRequest::CopyFrom(const GetReadingsRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetReadingsRequest::IsInitialized() const { +bool GetReadingsRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetReadingsRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetReadingsRequest::InternalSwap(GetReadingsRequest* PROTOBUF_RESTRICT other) { +void GetReadingsRequest::InternalSwap(GetReadingsRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.extra_, other->_impl_.extra_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(extra_, other->extra_); } -::google::protobuf::Metadata GetReadingsRequest::GetMetadata() const { +::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[23]); } + // =================================================================== GetReadingsResponse_ReadingsEntry_DoNotUse::GetReadingsResponse_ReadingsEntry_DoNotUse() {} -GetReadingsResponse_ReadingsEntry_DoNotUse::GetReadingsResponse_ReadingsEntry_DoNotUse(::google::protobuf::Arena* arena) +GetReadingsResponse_ReadingsEntry_DoNotUse::GetReadingsResponse_ReadingsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) : SuperType(arena) {} -::google::protobuf::Metadata GetReadingsResponse_ReadingsEntry_DoNotUse::GetMetadata() const { +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[24]); } + // =================================================================== class GetReadingsResponse::_Internal { @@ -7176,183 +6852,184 @@ class GetReadingsResponse::_Internal { }; void GetReadingsResponse::clear_readings() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.readings_.Clear(); + readings_.Clear(); } -GetReadingsResponse::GetReadingsResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +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) } -inline PROTOBUF_NDEBUG_INLINE GetReadingsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : readings_{visibility, arena, from.readings_}, - _cached_size_{0} {} - -GetReadingsResponse::GetReadingsResponse( - ::google::protobuf::Arena* arena, - const GetReadingsResponse& from) - : ::google::protobuf::Message(arena) { - GetReadingsResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +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 PROTOBUF_NDEBUG_INLINE GetReadingsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : readings_{visibility, arena}, - _cached_size_{0} {} -inline void GetReadingsResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetReadingsResponse::SharedCtor() { } + GetReadingsResponse::~GetReadingsResponse() { // @@protoc_insertion_point(destructor:viam.common.v1.GetReadingsResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + ArenaDtor(this); + return; + } SharedDtor(); } + inline void GetReadingsResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + readings_.Destruct(); } -PROTOBUF_NOINLINE void GetReadingsResponse::Clear() { +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) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.readings_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetReadingsResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 2, 51, 2> GetReadingsResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetReadingsResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // map readings = 1 [json_name = "readings"]; - {PROTOBUF_FIELD_OFFSET(GetReadingsResponse, _impl_.readings_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, - }}, {{ - {::_pbi::TcParser::GetMapAuxInfo< - decltype(GetReadingsResponse()._impl_.readings_)>( - 1, 0, 0, 9, - 11)}, - {::_pbi::TcParser::CreateInArenaStorageCb<::google::protobuf::Value>}, - }}, {{ - "\42\10\0\0\0\0\0\0" - "viam.common.v1.GetReadingsResponse" - "readings" - }}, -}; - -::uint8_t* GetReadingsResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +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; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // map readings = 1 [json_name = "readings"]; - if (!_internal_readings().empty()) { - using MapType = ::google::protobuf::Map; - using WireHelper = _pbi::MapEntryFuncs; - const auto& field = _internal_readings(); - - if (stream->IsSerializationDeterministic() && field.size() > 1) { - for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { - target = WireHelper::InternalSerialize( - 1, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.common.v1.GetReadingsResponse.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 : field) { - target = WireHelper::InternalSerialize( - 1, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.common.v1.GetReadingsResponse.readings"); + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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 { +size_t GetReadingsResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.common.v1.GetReadingsResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 * ::google::protobuf::internal::FromIntSize(_internal_readings_size()); - for (const auto& entry : _internal_readings()) { - total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); + 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, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetReadingsResponse::_class_data_ = { - GetReadingsResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetReadingsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetReadingsResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetReadingsResponse::GetClassData() const { - return &_class_data_; +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::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.GetReadingsResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +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; - _this->_impl_.readings_.MergeFrom(from._impl_.readings_); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + readings_.MergeFrom(from.readings_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetReadingsResponse::CopyFrom(const GetReadingsResponse& from) { @@ -7362,436 +7039,494 @@ void GetReadingsResponse::CopyFrom(const GetReadingsResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetReadingsResponse::IsInitialized() const { +bool GetReadingsResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetReadingsResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetReadingsResponse::InternalSwap(GetReadingsResponse* PROTOBUF_RESTRICT other) { +void GetReadingsResponse::InternalSwap(GetReadingsResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.readings_.InternalSwap(&other->_impl_.readings_); + readings_.InternalSwap(&other->readings_); } -::google::protobuf::Metadata GetReadingsResponse::GetMetadata() const { +::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[25]); } + // =================================================================== class LogEntry::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(LogEntry, _impl_._has_bits_); - static const ::google::protobuf::Timestamp& time(const LogEntry* msg); - static void set_has_time(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::google::protobuf::Struct& caller(const LogEntry* msg); - static void set_has_caller(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& time(const LogEntry* msg); + static const ::PROTOBUF_NAMESPACE_ID::Struct& caller(const LogEntry* msg); }; -const ::google::protobuf::Timestamp& LogEntry::_Internal::time(const LogEntry* msg) { - return *msg->_impl_.time_; +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +LogEntry::_Internal::time(const LogEntry* msg) { + return *msg->time_; } -const ::google::protobuf::Struct& LogEntry::_Internal::caller(const LogEntry* msg) { - return *msg->_impl_.caller_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +LogEntry::_Internal::caller(const LogEntry* msg) { + return *msg->caller_; } void LogEntry::clear_time() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.time_ != nullptr) _impl_.time_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && time_ != nullptr) { + delete time_; + } + time_ = nullptr; } void LogEntry::clear_caller() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.caller_ != nullptr) _impl_.caller_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && caller_ != nullptr) { + delete caller_; + } + caller_ = nullptr; } void LogEntry::clear_fields() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.fields_.Clear(); + fields_.Clear(); } -LogEntry::LogEntry(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +LogEntry::LogEntry(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + fields_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.common.v1.LogEntry) } -inline PROTOBUF_NDEBUG_INLINE LogEntry::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - fields_{visibility, arena, from.fields_}, - host_(arena, from.host_), - level_(arena, from.level_), - logger_name_(arena, from.logger_name_), - message_(arena, from.message_), - stack_(arena, from.stack_) {} - -LogEntry::LogEntry( - ::google::protobuf::Arena* arena, - const LogEntry& from) - : ::google::protobuf::Message(arena) { - LogEntry* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.time_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.time_) - : nullptr; - _impl_.caller_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.caller_) - : nullptr; - +LogEntry::LogEntry(const LogEntry& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + fields_(from.fields_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + host_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + host_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_host().empty()) { + host_.Set(from._internal_host(), + GetArenaForAllocation()); + } + level_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + level_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_level().empty()) { + level_.Set(from._internal_level(), + GetArenaForAllocation()); + } + logger_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + logger_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_logger_name().empty()) { + logger_name_.Set(from._internal_logger_name(), + GetArenaForAllocation()); + } + message_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + message_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_message().empty()) { + message_.Set(from._internal_message(), + GetArenaForAllocation()); + } + stack_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + stack_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_stack().empty()) { + stack_.Set(from._internal_stack(), + GetArenaForAllocation()); + } + if (from._internal_has_time()) { + time_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from.time_); + } else { + time_ = nullptr; + } + if (from._internal_has_caller()) { + caller_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.caller_); + } else { + caller_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.common.v1.LogEntry) } -inline PROTOBUF_NDEBUG_INLINE LogEntry::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - fields_{visibility, arena}, - host_(arena), - level_(arena), - logger_name_(arena), - message_(arena), - stack_(arena) {} - -inline void LogEntry::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, time_), - 0, - offsetof(Impl_, caller_) - - offsetof(Impl_, time_) + - sizeof(Impl_::caller_)); + +inline void LogEntry::SharedCtor() { +host_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + host_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +level_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + level_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +logger_name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + logger_name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +message_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + message_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +stack_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + stack_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&time_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&caller_) - + reinterpret_cast(&time_)) + sizeof(caller_)); } + LogEntry::~LogEntry() { // @@protoc_insertion_point(destructor:viam.common.v1.LogEntry) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void LogEntry::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.host_.Destroy(); - _impl_.level_.Destroy(); - _impl_.logger_name_.Destroy(); - _impl_.message_.Destroy(); - _impl_.stack_.Destroy(); - delete _impl_.time_; - delete _impl_.caller_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void LogEntry::Clear() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + host_.Destroy(); + level_.Destroy(); + logger_name_.Destroy(); + message_.Destroy(); + stack_.Destroy(); + if (this != internal_default_instance()) delete time_; + if (this != internal_default_instance()) delete caller_; +} + +void LogEntry::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void LogEntry::Clear() { // @@protoc_insertion_point(message_clear_start:viam.common.v1.LogEntry) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.fields_.Clear(); - _impl_.host_.ClearToEmpty(); - _impl_.level_.ClearToEmpty(); - _impl_.logger_name_.ClearToEmpty(); - _impl_.message_.ClearToEmpty(); - _impl_.stack_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.time_ != nullptr); - _impl_.time_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.caller_ != nullptr); - _impl_.caller_->Clear(); + fields_.Clear(); + host_.ClearToEmpty(); + level_.ClearToEmpty(); + logger_name_.ClearToEmpty(); + message_.ClearToEmpty(); + stack_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && time_ != nullptr) { + delete time_; + } + time_ = nullptr; + if (GetArenaForAllocation() == nullptr && caller_ != nullptr) { + delete caller_; + } + caller_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* LogEntry::_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 host = 1 [json_name = "host"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_host(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.common.v1.LogEntry.host")); + } else + goto handle_unusual; + continue; + // string level = 2 [json_name = "level"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_level(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.common.v1.LogEntry.level")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp time = 3 [json_name = "time"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_time(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string logger_name = 4 [json_name = "loggerName"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_logger_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.common.v1.LogEntry.logger_name")); + } else + goto handle_unusual; + continue; + // string message = 5 [json_name = "message"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + auto str = _internal_mutable_message(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.common.v1.LogEntry.message")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct caller = 6 [json_name = "caller"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr = ctx->ParseMessage(_internal_mutable_caller(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string stack = 7 [json_name = "stack"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + auto str = _internal_mutable_stack(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.common.v1.LogEntry.stack")); + } else + goto handle_unusual; + continue; + // repeated .google.protobuf.Struct fields = 8 [json_name = "fields"]; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_fields(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<66>(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; } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* LogEntry::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 8, 3, 72, 2> LogEntry::_table_ = { - { - PROTOBUF_FIELD_OFFSET(LogEntry, _impl_._has_bits_), - 0, // no _extensions_ - 8, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967040, // skipmap - offsetof(decltype(_table_), field_entries), - 8, // num_field_entries - 3, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_LogEntry_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .google.protobuf.Struct fields = 8 [json_name = "fields"]; - {::_pbi::TcParser::FastMtR1, - {66, 63, 2, PROTOBUF_FIELD_OFFSET(LogEntry, _impl_.fields_)}}, - // string host = 1 [json_name = "host"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(LogEntry, _impl_.host_)}}, - // string level = 2 [json_name = "level"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(LogEntry, _impl_.level_)}}, - // .google.protobuf.Timestamp time = 3 [json_name = "time"]; - {::_pbi::TcParser::FastMtS1, - {26, 0, 0, PROTOBUF_FIELD_OFFSET(LogEntry, _impl_.time_)}}, - // string logger_name = 4 [json_name = "loggerName"]; - {::_pbi::TcParser::FastUS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(LogEntry, _impl_.logger_name_)}}, - // string message = 5 [json_name = "message"]; - {::_pbi::TcParser::FastUS1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(LogEntry, _impl_.message_)}}, - // .google.protobuf.Struct caller = 6 [json_name = "caller"]; - {::_pbi::TcParser::FastMtS1, - {50, 1, 1, PROTOBUF_FIELD_OFFSET(LogEntry, _impl_.caller_)}}, - // string stack = 7 [json_name = "stack"]; - {::_pbi::TcParser::FastUS1, - {58, 63, 0, PROTOBUF_FIELD_OFFSET(LogEntry, _impl_.stack_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string host = 1 [json_name = "host"]; - {PROTOBUF_FIELD_OFFSET(LogEntry, _impl_.host_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string level = 2 [json_name = "level"]; - {PROTOBUF_FIELD_OFFSET(LogEntry, _impl_.level_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Timestamp time = 3 [json_name = "time"]; - {PROTOBUF_FIELD_OFFSET(LogEntry, _impl_.time_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // string logger_name = 4 [json_name = "loggerName"]; - {PROTOBUF_FIELD_OFFSET(LogEntry, _impl_.logger_name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string message = 5 [json_name = "message"]; - {PROTOBUF_FIELD_OFFSET(LogEntry, _impl_.message_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct caller = 6 [json_name = "caller"]; - {PROTOBUF_FIELD_OFFSET(LogEntry, _impl_.caller_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // string stack = 7 [json_name = "stack"]; - {PROTOBUF_FIELD_OFFSET(LogEntry, _impl_.stack_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated .google.protobuf.Struct fields = 8 [json_name = "fields"]; - {PROTOBUF_FIELD_OFFSET(LogEntry, _impl_.fields_), -1, 2, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\27\4\5\0\13\7\0\5\0\0\0\0\0\0\0\0" - "viam.common.v1.LogEntry" - "host" - "level" - "logger_name" - "message" - "stack" - }}, -}; - -::uint8_t* LogEntry::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* LogEntry::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.common.v1.LogEntry) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string host = 1 [json_name = "host"]; if (!this->_internal_host().empty()) { - const std::string& _s = this->_internal_host(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.common.v1.LogEntry.host"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_host().data(), static_cast(this->_internal_host().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.common.v1.LogEntry.host"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_host(), target); } // string level = 2 [json_name = "level"]; if (!this->_internal_level().empty()) { - const std::string& _s = this->_internal_level(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.common.v1.LogEntry.level"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_level().data(), static_cast(this->_internal_level().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.common.v1.LogEntry.level"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_level(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Timestamp time = 3 [json_name = "time"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::time(this), + if (this->_internal_has_time()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::time(this), _Internal::time(this).GetCachedSize(), target, stream); } // string logger_name = 4 [json_name = "loggerName"]; if (!this->_internal_logger_name().empty()) { - const std::string& _s = this->_internal_logger_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.common.v1.LogEntry.logger_name"); - target = stream->WriteStringMaybeAliased(4, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_logger_name().data(), static_cast(this->_internal_logger_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.common.v1.LogEntry.logger_name"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_logger_name(), target); } // string message = 5 [json_name = "message"]; if (!this->_internal_message().empty()) { - const std::string& _s = this->_internal_message(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.common.v1.LogEntry.message"); - target = stream->WriteStringMaybeAliased(5, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_message().data(), static_cast(this->_internal_message().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.common.v1.LogEntry.message"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_message(), target); } // .google.protobuf.Struct caller = 6 [json_name = "caller"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 6, _Internal::caller(this), + if (this->_internal_has_caller()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(6, _Internal::caller(this), _Internal::caller(this).GetCachedSize(), target, stream); } // string stack = 7 [json_name = "stack"]; if (!this->_internal_stack().empty()) { - const std::string& _s = this->_internal_stack(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.common.v1.LogEntry.stack"); - target = stream->WriteStringMaybeAliased(7, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_stack().data(), static_cast(this->_internal_stack().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.common.v1.LogEntry.stack"); + target = stream->WriteStringMaybeAliased( + 7, this->_internal_stack(), target); } // repeated .google.protobuf.Struct fields = 8 [json_name = "fields"]; for (unsigned i = 0, n = static_cast(this->_internal_fields_size()); i < n; i++) { - const auto& repfield = this->_internal_fields().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_fields(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(8, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.LogEntry) return target; } -::size_t LogEntry::ByteSizeLong() const { +size_t LogEntry::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.common.v1.LogEntry) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .google.protobuf.Struct fields = 8 [json_name = "fields"]; total_size += 1UL * this->_internal_fields_size(); - for (const auto& msg : this->_internal_fields()) { + for (const auto& msg : this->fields_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // string host = 1 [json_name = "host"]; if (!this->_internal_host().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_host()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_host()); } // string level = 2 [json_name = "level"]; if (!this->_internal_level().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_level()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_level()); } // string logger_name = 4 [json_name = "loggerName"]; if (!this->_internal_logger_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_logger_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_logger_name()); } // string message = 5 [json_name = "message"]; if (!this->_internal_message().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_message()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_message()); } // string stack = 7 [json_name = "stack"]; if (!this->_internal_stack().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_stack()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_stack()); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // .google.protobuf.Timestamp time = 3 [json_name = "time"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.time_); - } - - // .google.protobuf.Struct caller = 6 [json_name = "caller"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.caller_); - } + // .google.protobuf.Timestamp time = 3 [json_name = "time"]; + if (this->_internal_has_time()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *time_); + } + // .google.protobuf.Struct caller = 6 [json_name = "caller"]; + if (this->_internal_has_caller()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *caller_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData LogEntry::_class_data_ = { - LogEntry::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LogEntry::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + LogEntry::MergeImpl }; -const ::google::protobuf::Message::ClassData* LogEntry::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LogEntry::GetClassData() const { return &_class_data_; } + +void LogEntry::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void LogEntry::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.LogEntry) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void LogEntry::MergeFrom(const LogEntry& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.LogEntry) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_fields()->MergeFrom( - from._internal_fields()); + fields_.MergeFrom(from.fields_); if (!from._internal_host().empty()) { - _this->_internal_set_host(from._internal_host()); + _internal_set_host(from._internal_host()); } if (!from._internal_level().empty()) { - _this->_internal_set_level(from._internal_level()); + _internal_set_level(from._internal_level()); } if (!from._internal_logger_name().empty()) { - _this->_internal_set_logger_name(from._internal_logger_name()); + _internal_set_logger_name(from._internal_logger_name()); } if (!from._internal_message().empty()) { - _this->_internal_set_message(from._internal_message()); + _internal_set_message(from._internal_message()); } if (!from._internal_stack().empty()) { - _this->_internal_set_stack(from._internal_stack()); + _internal_set_stack(from._internal_stack()); } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_time()->::google::protobuf::Timestamp::MergeFrom( - from._internal_time()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_caller()->::google::protobuf::Struct::MergeFrom( - from._internal_caller()); - } + if (from._internal_has_time()) { + _internal_mutable_time()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_time()); + } + if (from._internal_has_caller()) { + _internal_mutable_caller()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_caller()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void LogEntry::CopyFrom(const LogEntry& from) { @@ -7801,48 +7536,167 @@ void LogEntry::CopyFrom(const LogEntry& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool LogEntry::IsInitialized() const { +bool LogEntry::IsInitialized() const { return true; } -::_pbi::CachedSize* LogEntry::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void LogEntry::InternalSwap(LogEntry* PROTOBUF_RESTRICT other) { +void LogEntry::InternalSwap(LogEntry* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.fields_.InternalSwap(&other->_impl_.fields_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.host_, &other->_impl_.host_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.level_, &other->_impl_.level_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.logger_name_, &other->_impl_.logger_name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.message_, &other->_impl_.message_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.stack_, &other->_impl_.stack_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(LogEntry, _impl_.caller_) - + sizeof(LogEntry::_impl_.caller_) - - PROTOBUF_FIELD_OFFSET(LogEntry, _impl_.time_)>( - reinterpret_cast(&_impl_.time_), - reinterpret_cast(&other->_impl_.time_)); -} - -::google::protobuf::Metadata LogEntry::GetMetadata() const { + fields_.InternalSwap(&other->fields_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &host_, lhs_arena, + &other->host_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &level_, lhs_arena, + &other->level_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &logger_name_, lhs_arena, + &other->logger_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &message_, lhs_arena, + &other->message_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &stack_, lhs_arena, + &other->stack_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(LogEntry, caller_) + + sizeof(LogEntry::caller_) + - PROTOBUF_FIELD_OFFSET(LogEntry, time_)>( + reinterpret_cast(&time_), + reinterpret_cast(&other->time_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata LogEntry::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[26]); } -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MethodOptions, - ::google::protobuf::internal::PrimitiveTypeTraits< bool >, 8, false> +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); + // @@protoc_insertion_point(namespace_scope) } // namespace v1 } // namespace common } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::common::v1::ResourceName* +Arena::CreateMaybeMessage< ::viam::common::v1::ResourceName >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::common::v1::ResourceName >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::common::v1::Pose* +Arena::CreateMaybeMessage< ::viam::common::v1::Pose >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::common::v1::Pose >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::common::v1::Orientation* +Arena::CreateMaybeMessage< ::viam::common::v1::Orientation >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::common::v1::Orientation >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::common::v1::PoseInFrame* +Arena::CreateMaybeMessage< ::viam::common::v1::PoseInFrame >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::common::v1::PoseInFrame >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::common::v1::Vector3* +Arena::CreateMaybeMessage< ::viam::common::v1::Vector3 >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::common::v1::Vector3 >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::common::v1::Sphere* +Arena::CreateMaybeMessage< ::viam::common::v1::Sphere >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::common::v1::Sphere >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::common::v1::Capsule* +Arena::CreateMaybeMessage< ::viam::common::v1::Capsule >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::common::v1::Capsule >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::common::v1::RectangularPrism* +Arena::CreateMaybeMessage< ::viam::common::v1::RectangularPrism >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::common::v1::RectangularPrism >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::common::v1::Geometry* +Arena::CreateMaybeMessage< ::viam::common::v1::Geometry >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::common::v1::Geometry >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::common::v1::GeometriesInFrame* +Arena::CreateMaybeMessage< ::viam::common::v1::GeometriesInFrame >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::common::v1::GeometriesInFrame >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::common::v1::PointCloudObject* +Arena::CreateMaybeMessage< ::viam::common::v1::PointCloudObject >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::common::v1::PointCloudObject >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::common::v1::GeoPoint* +Arena::CreateMaybeMessage< ::viam::common::v1::GeoPoint >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::common::v1::GeoPoint >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::common::v1::GeoGeometry* +Arena::CreateMaybeMessage< ::viam::common::v1::GeoGeometry >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::common::v1::GeoGeometry >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::common::v1::Transform* +Arena::CreateMaybeMessage< ::viam::common::v1::Transform >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::common::v1::Transform >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::common::v1::WorldState* +Arena::CreateMaybeMessage< ::viam::common::v1::WorldState >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::common::v1::WorldState >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::common::v1::ActuatorStatus* +Arena::CreateMaybeMessage< ::viam::common::v1::ActuatorStatus >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::common::v1::ActuatorStatus >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::common::v1::ResponseMetadata* +Arena::CreateMaybeMessage< ::viam::common::v1::ResponseMetadata >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::common::v1::ResponseMetadata >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::common::v1::DoCommandRequest* +Arena::CreateMaybeMessage< ::viam::common::v1::DoCommandRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::common::v1::DoCommandRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::common::v1::DoCommandResponse* +Arena::CreateMaybeMessage< ::viam::common::v1::DoCommandResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::common::v1::DoCommandResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::common::v1::GetKinematicsRequest* +Arena::CreateMaybeMessage< ::viam::common::v1::GetKinematicsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::common::v1::GetKinematicsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::common::v1::GetKinematicsResponse* +Arena::CreateMaybeMessage< ::viam::common::v1::GetKinematicsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::common::v1::GetKinematicsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::common::v1::GetGeometriesRequest* +Arena::CreateMaybeMessage< ::viam::common::v1::GetGeometriesRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::common::v1::GetGeometriesRequest >(arena); +} +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); +} +template<> PROTOBUF_NOINLINE ::viam::common::v1::LogEntry* +Arena::CreateMaybeMessage< ::viam::common::v1::LogEntry >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::common::v1::LogEntry >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/common/v1/common.pb.h b/src/viam/api/common/v1/common.pb.h index 8b3aa6d69..b026f5429 100644 --- a/src/viam/api/common/v1/common.pb.h +++ b/src/viam/api/common/v1/common.pb.h @@ -1,67 +1,56 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: common/v1/common.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_common_2fv1_2fcommon_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_common_2fv1_2fcommon_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_common_2fv1_2fcommon_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_common_2fv1_2fcommon_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/map.h" // IWYU pragma: export -#include "google/protobuf/map_entry.h" -#include "google/protobuf/map_field_inl.h" -#include "google/protobuf/generated_enum_reflection.h" -#include "google/protobuf/unknown_field_set.h" -#include "google/protobuf/descriptor.pb.h" -#include "google/protobuf/struct.pb.h" -#include "google/protobuf/timestamp.pb.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include #define PROTOBUF_INTERNAL_EXPORT_common_2fv1_2fcommon_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_common_2fv1_2fcommon_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_common_2fv1_2fcommon_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_common_2fv1_2fcommon_2eproto; namespace viam { namespace common { namespace v1 { @@ -149,78 +138,89 @@ extern WorldStateDefaultTypeInternal _WorldState_default_instance_; } // namespace v1 } // namespace common } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::common::v1::ActuatorStatus* Arena::CreateMaybeMessage<::viam::common::v1::ActuatorStatus>(Arena*); +template<> ::viam::common::v1::Capsule* Arena::CreateMaybeMessage<::viam::common::v1::Capsule>(Arena*); +template<> ::viam::common::v1::DoCommandRequest* Arena::CreateMaybeMessage<::viam::common::v1::DoCommandRequest>(Arena*); +template<> ::viam::common::v1::DoCommandResponse* Arena::CreateMaybeMessage<::viam::common::v1::DoCommandResponse>(Arena*); +template<> ::viam::common::v1::GeoGeometry* Arena::CreateMaybeMessage<::viam::common::v1::GeoGeometry>(Arena*); +template<> ::viam::common::v1::GeoPoint* Arena::CreateMaybeMessage<::viam::common::v1::GeoPoint>(Arena*); +template<> ::viam::common::v1::GeometriesInFrame* Arena::CreateMaybeMessage<::viam::common::v1::GeometriesInFrame>(Arena*); +template<> ::viam::common::v1::Geometry* Arena::CreateMaybeMessage<::viam::common::v1::Geometry>(Arena*); +template<> ::viam::common::v1::GetGeometriesRequest* Arena::CreateMaybeMessage<::viam::common::v1::GetGeometriesRequest>(Arena*); +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::LogEntry* Arena::CreateMaybeMessage<::viam::common::v1::LogEntry>(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*); +template<> ::viam::common::v1::PoseInFrame* Arena::CreateMaybeMessage<::viam::common::v1::PoseInFrame>(Arena*); +template<> ::viam::common::v1::RectangularPrism* Arena::CreateMaybeMessage<::viam::common::v1::RectangularPrism>(Arena*); +template<> ::viam::common::v1::ResourceName* Arena::CreateMaybeMessage<::viam::common::v1::ResourceName>(Arena*); +template<> ::viam::common::v1::ResponseMetadata* Arena::CreateMaybeMessage<::viam::common::v1::ResponseMetadata>(Arena*); +template<> ::viam::common::v1::Sphere* Arena::CreateMaybeMessage<::viam::common::v1::Sphere>(Arena*); +template<> ::viam::common::v1::Transform* Arena::CreateMaybeMessage<::viam::common::v1::Transform>(Arena*); +template<> ::viam::common::v1::Vector3* Arena::CreateMaybeMessage<::viam::common::v1::Vector3>(Arena*); +template<> ::viam::common::v1::WorldState* Arena::CreateMaybeMessage<::viam::common::v1::WorldState>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace viam { namespace common { namespace v1 { + enum KinematicsFileFormat : int { KINEMATICS_FILE_FORMAT_UNSPECIFIED = 0, KINEMATICS_FILE_FORMAT_SVA = 1, KINEMATICS_FILE_FORMAT_URDF = 2, - KinematicsFileFormat_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - KinematicsFileFormat_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), + KinematicsFileFormat_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + KinematicsFileFormat_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() }; - bool KinematicsFileFormat_IsValid(int value); -extern const uint32_t KinematicsFileFormat_internal_data_[]; -constexpr KinematicsFileFormat KinematicsFileFormat_MIN = static_cast(0); -constexpr KinematicsFileFormat KinematicsFileFormat_MAX = static_cast(2); -constexpr int KinematicsFileFormat_ARRAYSIZE = 2 + 1; -const ::google::protobuf::EnumDescriptor* -KinematicsFileFormat_descriptor(); -template -const std::string& KinematicsFileFormat_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to KinematicsFileFormat_Name()."); - return KinematicsFileFormat_Name(static_cast(value)); -} -template <> -inline const std::string& KinematicsFileFormat_Name(KinematicsFileFormat value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool KinematicsFileFormat_Parse(absl::string_view name, KinematicsFileFormat* value) { - return ::google::protobuf::internal::ParseNamedEnum( - KinematicsFileFormat_descriptor(), name, value); +constexpr KinematicsFileFormat KinematicsFileFormat_MIN = KINEMATICS_FILE_FORMAT_UNSPECIFIED; +constexpr KinematicsFileFormat KinematicsFileFormat_MAX = KINEMATICS_FILE_FORMAT_URDF; +constexpr int KinematicsFileFormat_ARRAYSIZE = KinematicsFileFormat_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* KinematicsFileFormat_descriptor(); +template +inline const std::string& KinematicsFileFormat_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function KinematicsFileFormat_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + KinematicsFileFormat_descriptor(), enum_t_value); +} +inline bool KinematicsFileFormat_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, KinematicsFileFormat* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + KinematicsFileFormat_descriptor(), name, value); } - // =================================================================== - -// ------------------------------------------------------------------- - -class Vector3 final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.Vector3) */ { +class ResourceName final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.ResourceName) */ { public: - inline Vector3() : Vector3(nullptr) {} - ~Vector3() override; - template - explicit PROTOBUF_CONSTEXPR Vector3(::google::protobuf::internal::ConstantInitialized); + inline ResourceName() : ResourceName(nullptr) {} + ~ResourceName() override; + explicit PROTOBUF_CONSTEXPR ResourceName(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Vector3(const Vector3& from) - : Vector3(nullptr, from) {} - Vector3(Vector3&& from) noexcept - : Vector3() { + ResourceName(const ResourceName& from); + ResourceName(ResourceName&& from) noexcept + : ResourceName() { *this = ::std::move(from); } - inline Vector3& operator=(const Vector3& from) { + inline ResourceName& operator=(const ResourceName& from) { CopyFrom(from); return *this; } - inline Vector3& operator=(Vector3&& from) noexcept { + inline ResourceName& operator=(ResourceName&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -230,196 +230,235 @@ class Vector3 final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Vector3& default_instance() { + static const ResourceName& default_instance() { return *internal_default_instance(); } - static inline const Vector3* internal_default_instance() { - return reinterpret_cast( - &_Vector3_default_instance_); + static inline const ResourceName* internal_default_instance() { + return reinterpret_cast( + &_ResourceName_default_instance_); } static constexpr int kIndexInFileMessages = - 4; + 0; - friend void swap(Vector3& a, Vector3& b) { + friend void swap(ResourceName& a, ResourceName& b) { a.Swap(&b); } - inline void Swap(Vector3* other) { + inline void Swap(ResourceName* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Vector3* other) { + void UnsafeArenaSwap(ResourceName* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Vector3* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Vector3& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Vector3& from) { - Vector3::MergeImpl(*this, from); + ResourceName* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ResourceName& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ResourceName& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Vector3* other); + void SetCachedSize(int size) const final; + void InternalSwap(ResourceName* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.common.v1.Vector3"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.common.v1.ResourceName"; } protected: - explicit Vector3(::google::protobuf::Arena* arena); - Vector3(::google::protobuf::Arena* arena, const Vector3& from); + explicit ResourceName(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kXFieldNumber = 1, - kYFieldNumber = 2, - kZFieldNumber = 3, + kRemotePathFieldNumber = 5, + kNamespaceFieldNumber = 1, + kTypeFieldNumber = 2, + kSubtypeFieldNumber = 3, + kNameFieldNumber = 4, + kLocalNameFieldNumber = 6, }; - // double x = 1 [json_name = "x"]; - void clear_x() ; - double x() const; - void set_x(double value); - + // repeated string remote_path = 5 [json_name = "remotePath"]; + int remote_path_size() const; private: - double _internal_x() const; - void _internal_set_x(double value); + int _internal_remote_path_size() const; + public: + void clear_remote_path(); + const std::string& remote_path(int index) const; + std::string* mutable_remote_path(int index); + void set_remote_path(int index, const std::string& value); + void set_remote_path(int index, std::string&& value); + void set_remote_path(int index, const char* value); + void set_remote_path(int index, const char* value, size_t size); + std::string* add_remote_path(); + void add_remote_path(const std::string& value); + void add_remote_path(std::string&& value); + void add_remote_path(const char* value); + void add_remote_path(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& remote_path() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_remote_path(); + private: + const std::string& _internal_remote_path(int index) const; + std::string* _internal_add_remote_path(); + public: + // string namespace = 1 [json_name = "namespace"]; + void clear_namespace_(); + const std::string& namespace_() const; + template + void set_namespace_(ArgT0&& arg0, ArgT... args); + std::string* mutable_namespace_(); + PROTOBUF_NODISCARD std::string* release_namespace_(); + void set_allocated_namespace_(std::string* namespace_); + private: + const std::string& _internal_namespace_() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_namespace_(const std::string& value); + std::string* _internal_mutable_namespace_(); public: - // double y = 2 [json_name = "y"]; - void clear_y() ; - double y() const; - void set_y(double value); + // string type = 2 [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: - double _internal_y() const; - void _internal_set_y(double value); + 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 subtype = 3 [json_name = "subtype"]; + void clear_subtype(); + const std::string& subtype() const; + template + void set_subtype(ArgT0&& arg0, ArgT... args); + std::string* mutable_subtype(); + PROTOBUF_NODISCARD std::string* release_subtype(); + void set_allocated_subtype(std::string* subtype); + private: + const std::string& _internal_subtype() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_subtype(const std::string& value); + std::string* _internal_mutable_subtype(); public: - // double z = 3 [json_name = "z"]; - void clear_z() ; - double z() const; - void set_z(double value); + // string name = 4 [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: - double _internal_z() const; - void _internal_set_z(double value); + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + // string local_name = 6 [json_name = "localName"]; + void clear_local_name(); + const std::string& local_name() const; + template + void set_local_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_local_name(); + PROTOBUF_NODISCARD std::string* release_local_name(); + void set_allocated_local_name(std::string* local_name); + private: + const std::string& _internal_local_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_local_name(const std::string& value); + std::string* _internal_mutable_local_name(); public: - // @@protoc_insertion_point(class_scope:viam.common.v1.Vector3) + + // @@protoc_insertion_point(class_scope:viam.common.v1.ResourceName) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - double x_; - double y_; - double z_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField remote_path_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr namespace__; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr subtype_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr local_name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Sphere final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.Sphere) */ { +class Pose final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.Pose) */ { public: - inline Sphere() : Sphere(nullptr) {} - ~Sphere() override; - template - explicit PROTOBUF_CONSTEXPR Sphere(::google::protobuf::internal::ConstantInitialized); + inline Pose() : Pose(nullptr) {} + ~Pose() override; + explicit PROTOBUF_CONSTEXPR Pose(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Sphere(const Sphere& from) - : Sphere(nullptr, from) {} - Sphere(Sphere&& from) noexcept - : Sphere() { + Pose(const Pose& from); + Pose(Pose&& from) noexcept + : Pose() { *this = ::std::move(from); } - inline Sphere& operator=(const Sphere& from) { + inline Pose& operator=(const Pose& from) { CopyFrom(from); return *this; } - inline Sphere& operator=(Sphere&& from) noexcept { + inline Pose& operator=(Pose&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -429,455 +468,206 @@ class Sphere final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Sphere& default_instance() { + static const Pose& default_instance() { return *internal_default_instance(); } - static inline const Sphere* internal_default_instance() { - return reinterpret_cast( - &_Sphere_default_instance_); + static inline const Pose* internal_default_instance() { + return reinterpret_cast( + &_Pose_default_instance_); } static constexpr int kIndexInFileMessages = - 5; + 1; - friend void swap(Sphere& a, Sphere& b) { + friend void swap(Pose& a, Pose& b) { a.Swap(&b); } - inline void Swap(Sphere* other) { + inline void Swap(Pose* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Sphere* other) { + void UnsafeArenaSwap(Pose* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Sphere* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Sphere& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Sphere& from) { - Sphere::MergeImpl(*this, from); + Pose* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Pose& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Pose& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Sphere* other); + void SetCachedSize(int size) const final; + void InternalSwap(Pose* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.common.v1.Sphere"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.common.v1.Pose"; } protected: - explicit Sphere(::google::protobuf::Arena* arena); - Sphere(::google::protobuf::Arena* arena, const Sphere& from); + explicit Pose(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kRadiusMmFieldNumber = 1, + kXFieldNumber = 1, + kYFieldNumber = 2, + kZFieldNumber = 3, + kOXFieldNumber = 4, + kOYFieldNumber = 5, + kOZFieldNumber = 6, + kThetaFieldNumber = 7, }; - // double radius_mm = 1 [json_name = "radiusMm"]; - void clear_radius_mm() ; - double radius_mm() const; - void set_radius_mm(double value); + // double x = 1 [json_name = "x"]; + void clear_x(); + double x() const; + void set_x(double value); + private: + double _internal_x() const; + void _internal_set_x(double value); + public: + // double y = 2 [json_name = "y"]; + void clear_y(); + double y() const; + void set_y(double value); private: - double _internal_radius_mm() const; - void _internal_set_radius_mm(double value); + double _internal_y() const; + void _internal_set_y(double value); + public: + + // double z = 3 [json_name = "z"]; + void clear_z(); + double z() const; + void set_z(double value); + private: + double _internal_z() const; + void _internal_set_z(double value); + public: + // double o_x = 4 [json_name = "oX"]; + void clear_o_x(); + double o_x() const; + void set_o_x(double value); + private: + double _internal_o_x() const; + void _internal_set_o_x(double value); public: - // @@protoc_insertion_point(class_scope:viam.common.v1.Sphere) + + // double o_y = 5 [json_name = "oY"]; + void clear_o_y(); + double o_y() const; + void set_o_y(double value); + private: + double _internal_o_y() const; + void _internal_set_o_y(double value); + public: + + // double o_z = 6 [json_name = "oZ"]; + void clear_o_z(); + double o_z() const; + void set_o_z(double value); + private: + double _internal_o_z() const; + void _internal_set_o_z(double value); + public: + + // double theta = 7 [json_name = "theta"]; + void clear_theta(); + double theta() const; + void set_theta(double value); + private: + double _internal_theta() const; + void _internal_set_theta(double value); + public: + + // @@protoc_insertion_point(class_scope:viam.common.v1.Pose) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - double radius_mm_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + double x_; + double y_; + double z_; + double o_x_; + double o_y_; + double o_z_; + double theta_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ResourceName final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.ResourceName) */ { +class Orientation final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.Orientation) */ { public: - inline ResourceName() : ResourceName(nullptr) {} - ~ResourceName() override; - template - explicit PROTOBUF_CONSTEXPR ResourceName(::google::protobuf::internal::ConstantInitialized); + inline Orientation() : Orientation(nullptr) {} + ~Orientation() override; + explicit PROTOBUF_CONSTEXPR Orientation(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ResourceName(const ResourceName& from) - : ResourceName(nullptr, from) {} - ResourceName(ResourceName&& from) noexcept - : ResourceName() { - *this = ::std::move(from); - } - - inline ResourceName& operator=(const ResourceName& from) { - CopyFrom(from); - return *this; - } - inline ResourceName& operator=(ResourceName&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ResourceName& default_instance() { - return *internal_default_instance(); - } - static inline const ResourceName* internal_default_instance() { - return reinterpret_cast( - &_ResourceName_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(ResourceName& a, ResourceName& b) { - a.Swap(&b); - } - inline void Swap(ResourceName* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ResourceName* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ResourceName* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ResourceName& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ResourceName& from) { - ResourceName::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(ResourceName* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.common.v1.ResourceName"; - } - protected: - explicit ResourceName(::google::protobuf::Arena* arena); - ResourceName(::google::protobuf::Arena* arena, const ResourceName& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kRemotePathFieldNumber = 5, - kNamespaceFieldNumber = 1, - kTypeFieldNumber = 2, - kSubtypeFieldNumber = 3, - kNameFieldNumber = 4, - kLocalNameFieldNumber = 6, - }; - // repeated string remote_path = 5 [json_name = "remotePath"]; - int remote_path_size() const; - private: - int _internal_remote_path_size() const; - - public: - void clear_remote_path() ; - const std::string& remote_path(int index) const; - std::string* mutable_remote_path(int index); - void set_remote_path(int index, const std::string& value); - void set_remote_path(int index, std::string&& value); - void set_remote_path(int index, const char* value); - void set_remote_path(int index, const char* value, std::size_t size); - void set_remote_path(int index, absl::string_view value); - std::string* add_remote_path(); - void add_remote_path(const std::string& value); - void add_remote_path(std::string&& value); - void add_remote_path(const char* value); - void add_remote_path(const char* value, std::size_t size); - void add_remote_path(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& remote_path() const; - ::google::protobuf::RepeatedPtrField* mutable_remote_path(); - - private: - const ::google::protobuf::RepeatedPtrField& _internal_remote_path() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_remote_path(); - - public: - // string namespace = 1 [json_name = "namespace"]; - void clear_namespace_() ; - const std::string& namespace_() const; - template - void set_namespace_(Arg_&& arg, Args_... args); - std::string* mutable_namespace_(); - PROTOBUF_NODISCARD std::string* release_namespace_(); - void set_allocated_namespace_(std::string* value); - - private: - const std::string& _internal_namespace_() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_namespace_( - const std::string& value); - std::string* _internal_mutable_namespace_(); - - public: - // string type = 2 [json_name = "type"]; - void clear_type() ; - const std::string& type() const; - template - void set_type(Arg_&& arg, Args_... args); - std::string* mutable_type(); - PROTOBUF_NODISCARD std::string* release_type(); - void set_allocated_type(std::string* value); - - 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 subtype = 3 [json_name = "subtype"]; - void clear_subtype() ; - const std::string& subtype() const; - template - void set_subtype(Arg_&& arg, Args_... args); - std::string* mutable_subtype(); - PROTOBUF_NODISCARD std::string* release_subtype(); - void set_allocated_subtype(std::string* value); - - private: - const std::string& _internal_subtype() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_subtype( - const std::string& value); - std::string* _internal_mutable_subtype(); - - public: - // string name = 4 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - - public: - // string local_name = 6 [json_name = "localName"]; - void clear_local_name() ; - const std::string& local_name() const; - template - void set_local_name(Arg_&& arg, Args_... args); - std::string* mutable_local_name(); - PROTOBUF_NODISCARD std::string* release_local_name(); - void set_allocated_local_name(std::string* value); - - private: - const std::string& _internal_local_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_local_name( - const std::string& value); - std::string* _internal_mutable_local_name(); - - public: - // @@protoc_insertion_point(class_scope:viam.common.v1.ResourceName) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 6, 0, - 81, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField remote_path_; - ::google::protobuf::internal::ArenaStringPtr namespace__; - ::google::protobuf::internal::ArenaStringPtr type_; - ::google::protobuf::internal::ArenaStringPtr subtype_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr local_name_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; -};// ------------------------------------------------------------------- - -class Pose final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.Pose) */ { - public: - inline Pose() : Pose(nullptr) {} - ~Pose() override; - template - explicit PROTOBUF_CONSTEXPR Pose(::google::protobuf::internal::ConstantInitialized); - - inline Pose(const Pose& from) - : Pose(nullptr, from) {} - Pose(Pose&& from) noexcept - : Pose() { + Orientation(const Orientation& from); + Orientation(Orientation&& from) noexcept + : Orientation() { *this = ::std::move(from); } - inline Pose& operator=(const Pose& from) { + inline Orientation& operator=(const Orientation& from) { CopyFrom(from); return *this; } - inline Pose& operator=(Pose&& from) noexcept { + inline Orientation& operator=(Orientation&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -887,244 +677,173 @@ class Pose final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Pose& default_instance() { + static const Orientation& default_instance() { return *internal_default_instance(); } - static inline const Pose* internal_default_instance() { - return reinterpret_cast( - &_Pose_default_instance_); + static inline const Orientation* internal_default_instance() { + return reinterpret_cast( + &_Orientation_default_instance_); } static constexpr int kIndexInFileMessages = - 1; + 2; - friend void swap(Pose& a, Pose& b) { + friend void swap(Orientation& a, Orientation& b) { a.Swap(&b); } - inline void Swap(Pose* other) { + inline void Swap(Orientation* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Pose* other) { + void UnsafeArenaSwap(Orientation* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Pose* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Pose& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Pose& from) { - Pose::MergeImpl(*this, from); + Orientation* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Orientation& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Orientation& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Pose* other); + void SetCachedSize(int size) const final; + void InternalSwap(Orientation* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.common.v1.Pose"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.common.v1.Orientation"; } protected: - explicit Pose(::google::protobuf::Arena* arena); - Pose(::google::protobuf::Arena* arena, const Pose& from); + explicit Orientation(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kXFieldNumber = 1, - kYFieldNumber = 2, - kZFieldNumber = 3, - kOXFieldNumber = 4, - kOYFieldNumber = 5, - kOZFieldNumber = 6, - kThetaFieldNumber = 7, + kOXFieldNumber = 1, + kOYFieldNumber = 2, + kOZFieldNumber = 3, + kThetaFieldNumber = 4, }; - // double x = 1 [json_name = "x"]; - void clear_x() ; - double x() const; - void set_x(double value); - - private: - double _internal_x() const; - void _internal_set_x(double value); - - public: - // double y = 2 [json_name = "y"]; - void clear_y() ; - double y() const; - void set_y(double value); - - private: - double _internal_y() const; - void _internal_set_y(double value); - - public: - // double z = 3 [json_name = "z"]; - void clear_z() ; - double z() const; - void set_z(double value); - - private: - double _internal_z() const; - void _internal_set_z(double value); - - public: - // double o_x = 4 [json_name = "oX"]; - void clear_o_x() ; + // double o_x = 1 [json_name = "oX"]; + void clear_o_x(); double o_x() const; void set_o_x(double value); - private: double _internal_o_x() const; void _internal_set_o_x(double value); - public: - // double o_y = 5 [json_name = "oY"]; - void clear_o_y() ; + + // double o_y = 2 [json_name = "oY"]; + void clear_o_y(); double o_y() const; void set_o_y(double value); - private: double _internal_o_y() const; void _internal_set_o_y(double value); - public: - // double o_z = 6 [json_name = "oZ"]; - void clear_o_z() ; + + // double o_z = 3 [json_name = "oZ"]; + void clear_o_z(); double o_z() const; void set_o_z(double value); - private: double _internal_o_z() const; void _internal_set_o_z(double value); - public: - // double theta = 7 [json_name = "theta"]; - void clear_theta() ; + + // double theta = 4 [json_name = "theta"]; + void clear_theta(); double theta() const; void set_theta(double value); - private: double _internal_theta() const; void _internal_set_theta(double value); - public: - // @@protoc_insertion_point(class_scope:viam.common.v1.Pose) + + // @@protoc_insertion_point(class_scope:viam.common.v1.Orientation) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 7, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - double x_; - double y_; - double z_; - double o_x_; - double o_y_; - double o_z_; - double theta_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + double o_x_; + double o_y_; + double o_z_; + double theta_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Orientation final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.Orientation) */ { +class PoseInFrame final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.PoseInFrame) */ { public: - inline Orientation() : Orientation(nullptr) {} - ~Orientation() override; - template - explicit PROTOBUF_CONSTEXPR Orientation(::google::protobuf::internal::ConstantInitialized); + inline PoseInFrame() : PoseInFrame(nullptr) {} + ~PoseInFrame() override; + explicit PROTOBUF_CONSTEXPR PoseInFrame(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Orientation(const Orientation& from) - : Orientation(nullptr, from) {} - Orientation(Orientation&& from) noexcept - : Orientation() { + PoseInFrame(const PoseInFrame& from); + PoseInFrame(PoseInFrame&& from) noexcept + : PoseInFrame() { *this = ::std::move(from); } - inline Orientation& operator=(const Orientation& from) { + inline PoseInFrame& operator=(const PoseInFrame& from) { CopyFrom(from); return *this; } - inline Orientation& operator=(Orientation&& from) noexcept { + inline PoseInFrame& operator=(PoseInFrame&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1134,208 +853,165 @@ class Orientation final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Orientation& default_instance() { + static const PoseInFrame& default_instance() { return *internal_default_instance(); } - static inline const Orientation* internal_default_instance() { - return reinterpret_cast( - &_Orientation_default_instance_); + static inline const PoseInFrame* internal_default_instance() { + return reinterpret_cast( + &_PoseInFrame_default_instance_); } static constexpr int kIndexInFileMessages = - 2; + 3; - friend void swap(Orientation& a, Orientation& b) { + friend void swap(PoseInFrame& a, PoseInFrame& b) { a.Swap(&b); } - inline void Swap(Orientation* other) { + inline void Swap(PoseInFrame* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Orientation* other) { + void UnsafeArenaSwap(PoseInFrame* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Orientation* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Orientation& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Orientation& from) { - Orientation::MergeImpl(*this, from); + PoseInFrame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const PoseInFrame& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const PoseInFrame& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Orientation* other); + void SetCachedSize(int size) const final; + void InternalSwap(PoseInFrame* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.common.v1.Orientation"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.common.v1.PoseInFrame"; } protected: - explicit Orientation(::google::protobuf::Arena* arena); - Orientation(::google::protobuf::Arena* arena, const Orientation& from); + explicit PoseInFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kOXFieldNumber = 1, - kOYFieldNumber = 2, - kOZFieldNumber = 3, - kThetaFieldNumber = 4, + kReferenceFrameFieldNumber = 1, + kPoseFieldNumber = 2, }; - // double o_x = 1 [json_name = "oX"]; - void clear_o_x() ; - double o_x() const; - void set_o_x(double value); - + // string reference_frame = 1 [json_name = "referenceFrame"]; + void clear_reference_frame(); + const std::string& reference_frame() const; + template + void set_reference_frame(ArgT0&& arg0, ArgT... args); + std::string* mutable_reference_frame(); + PROTOBUF_NODISCARD std::string* release_reference_frame(); + void set_allocated_reference_frame(std::string* reference_frame); private: - double _internal_o_x() const; - void _internal_set_o_x(double value); - + const std::string& _internal_reference_frame() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_reference_frame(const std::string& value); + std::string* _internal_mutable_reference_frame(); public: - // double o_y = 2 [json_name = "oY"]; - void clear_o_y() ; - double o_y() const; - void set_o_y(double value); + // .viam.common.v1.Pose pose = 2 [json_name = "pose"]; + bool has_pose() const; private: - double _internal_o_y() const; - void _internal_set_o_y(double value); - + bool _internal_has_pose() const; public: - // double o_z = 3 [json_name = "oZ"]; - void clear_o_z() ; - double o_z() const; - void set_o_z(double value); - + void clear_pose(); + const ::viam::common::v1::Pose& pose() const; + PROTOBUF_NODISCARD ::viam::common::v1::Pose* release_pose(); + ::viam::common::v1::Pose* mutable_pose(); + void set_allocated_pose(::viam::common::v1::Pose* pose); private: - double _internal_o_z() const; - void _internal_set_o_z(double value); - + const ::viam::common::v1::Pose& _internal_pose() const; + ::viam::common::v1::Pose* _internal_mutable_pose(); public: - // double theta = 4 [json_name = "theta"]; - void clear_theta() ; - double theta() const; - void set_theta(double value); - - private: - double _internal_theta() const; - void _internal_set_theta(double value); + void unsafe_arena_set_allocated_pose( + ::viam::common::v1::Pose* pose); + ::viam::common::v1::Pose* unsafe_arena_release_pose(); - public: - // @@protoc_insertion_point(class_scope:viam.common.v1.Orientation) + // @@protoc_insertion_point(class_scope:viam.common.v1.PoseInFrame) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - double o_x_; - double o_y_; - double o_z_; - double theta_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr reference_frame_; + ::viam::common::v1::Pose* pose_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetKinematicsResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.GetKinematicsResponse) */ { +class Vector3 final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.Vector3) */ { public: - inline GetKinematicsResponse() : GetKinematicsResponse(nullptr) {} - ~GetKinematicsResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetKinematicsResponse(::google::protobuf::internal::ConstantInitialized); + inline Vector3() : Vector3(nullptr) {} + ~Vector3() override; + explicit PROTOBUF_CONSTEXPR Vector3(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetKinematicsResponse(const GetKinematicsResponse& from) - : GetKinematicsResponse(nullptr, from) {} - GetKinematicsResponse(GetKinematicsResponse&& from) noexcept - : GetKinematicsResponse() { + Vector3(const Vector3& from); + Vector3(Vector3&& from) noexcept + : Vector3() { *this = ::std::move(from); } - inline GetKinematicsResponse& operator=(const GetKinematicsResponse& from) { + inline Vector3& operator=(const Vector3& from) { CopyFrom(from); return *this; } - inline GetKinematicsResponse& operator=(GetKinematicsResponse&& from) noexcept { + inline Vector3& operator=(Vector3&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1345,190 +1021,162 @@ class GetKinematicsResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetKinematicsResponse& default_instance() { + static const Vector3& default_instance() { return *internal_default_instance(); } - static inline const GetKinematicsResponse* internal_default_instance() { - return reinterpret_cast( - &_GetKinematicsResponse_default_instance_); + static inline const Vector3* internal_default_instance() { + return reinterpret_cast( + &_Vector3_default_instance_); } static constexpr int kIndexInFileMessages = - 20; + 4; - friend void swap(GetKinematicsResponse& a, GetKinematicsResponse& b) { + friend void swap(Vector3& a, Vector3& b) { a.Swap(&b); } - inline void Swap(GetKinematicsResponse* other) { + inline void Swap(Vector3* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetKinematicsResponse* other) { + void UnsafeArenaSwap(Vector3* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetKinematicsResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetKinematicsResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetKinematicsResponse& from) { - GetKinematicsResponse::MergeImpl(*this, from); + Vector3* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Vector3& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Vector3& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetKinematicsResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(Vector3* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.common.v1.GetKinematicsResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.common.v1.Vector3"; } protected: - explicit GetKinematicsResponse(::google::protobuf::Arena* arena); - GetKinematicsResponse(::google::protobuf::Arena* arena, const GetKinematicsResponse& from); + explicit Vector3(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kKinematicsDataFieldNumber = 2, - kFormatFieldNumber = 1, + kXFieldNumber = 1, + kYFieldNumber = 2, + kZFieldNumber = 3, }; - // bytes kinematics_data = 2 [json_name = "kinematicsData"]; - void clear_kinematics_data() ; - const std::string& kinematics_data() const; - template - void set_kinematics_data(Arg_&& arg, Args_... args); - std::string* mutable_kinematics_data(); - PROTOBUF_NODISCARD std::string* release_kinematics_data(); - void set_allocated_kinematics_data(std::string* value); - + // double x = 1 [json_name = "x"]; + void clear_x(); + double x() const; + void set_x(double value); private: - const std::string& _internal_kinematics_data() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_kinematics_data( - const std::string& value); - std::string* _internal_mutable_kinematics_data(); - + double _internal_x() const; + void _internal_set_x(double value); public: - // .viam.common.v1.KinematicsFileFormat format = 1 [json_name = "format"]; - void clear_format() ; - ::viam::common::v1::KinematicsFileFormat format() const; - void set_format(::viam::common::v1::KinematicsFileFormat value); + // double y = 2 [json_name = "y"]; + void clear_y(); + double y() const; + void set_y(double value); private: - ::viam::common::v1::KinematicsFileFormat _internal_format() const; - void _internal_set_format(::viam::common::v1::KinematicsFileFormat value); + double _internal_y() const; + void _internal_set_y(double value); + public: + // double z = 3 [json_name = "z"]; + void clear_z(); + double z() const; + void set_z(double value); + private: + double _internal_z() const; + void _internal_set_z(double value); public: - // @@protoc_insertion_point(class_scope:viam.common.v1.GetKinematicsResponse) + + // @@protoc_insertion_point(class_scope:viam.common.v1.Vector3) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr kinematics_data_; - int format_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + double x_; + double y_; + double z_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GeoPoint final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.GeoPoint) */ { +class Sphere final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.Sphere) */ { public: - inline GeoPoint() : GeoPoint(nullptr) {} - ~GeoPoint() override; - template - explicit PROTOBUF_CONSTEXPR GeoPoint(::google::protobuf::internal::ConstantInitialized); + inline Sphere() : Sphere(nullptr) {} + ~Sphere() override; + explicit PROTOBUF_CONSTEXPR Sphere(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GeoPoint(const GeoPoint& from) - : GeoPoint(nullptr, from) {} - GeoPoint(GeoPoint&& from) noexcept - : GeoPoint() { + Sphere(const Sphere& from); + Sphere(Sphere&& from) noexcept + : Sphere() { *this = ::std::move(from); } - inline GeoPoint& operator=(const GeoPoint& from) { + inline Sphere& operator=(const Sphere& from) { CopyFrom(from); return *this; } - inline GeoPoint& operator=(GeoPoint&& from) noexcept { + inline Sphere& operator=(Sphere&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1538,170 +1186,126 @@ class GeoPoint final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GeoPoint& default_instance() { + static const Sphere& default_instance() { return *internal_default_instance(); } - static inline const GeoPoint* internal_default_instance() { - return reinterpret_cast( - &_GeoPoint_default_instance_); + static inline const Sphere* internal_default_instance() { + return reinterpret_cast( + &_Sphere_default_instance_); } static constexpr int kIndexInFileMessages = - 11; + 5; - friend void swap(GeoPoint& a, GeoPoint& b) { + friend void swap(Sphere& a, Sphere& b) { a.Swap(&b); } - inline void Swap(GeoPoint* other) { + inline void Swap(Sphere* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GeoPoint* other) { + void UnsafeArenaSwap(Sphere* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GeoPoint* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GeoPoint& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GeoPoint& from) { - GeoPoint::MergeImpl(*this, from); + Sphere* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Sphere& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Sphere& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GeoPoint* other); + void SetCachedSize(int size) const final; + void InternalSwap(Sphere* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.common.v1.GeoPoint"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.common.v1.Sphere"; } protected: - explicit GeoPoint(::google::protobuf::Arena* arena); - GeoPoint(::google::protobuf::Arena* arena, const GeoPoint& from); + explicit Sphere(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kLatitudeFieldNumber = 1, - kLongitudeFieldNumber = 2, + kRadiusMmFieldNumber = 1, }; - // double latitude = 1 [json_name = "latitude"]; - void clear_latitude() ; - double latitude() const; - void set_latitude(double value); - + // double radius_mm = 1 [json_name = "radiusMm"]; + void clear_radius_mm(); + double radius_mm() const; + void set_radius_mm(double value); private: - double _internal_latitude() const; - void _internal_set_latitude(double value); - + double _internal_radius_mm() const; + void _internal_set_radius_mm(double value); public: - // double longitude = 2 [json_name = "longitude"]; - void clear_longitude() ; - double longitude() const; - void set_longitude(double value); - - private: - double _internal_longitude() const; - void _internal_set_longitude(double value); - public: - // @@protoc_insertion_point(class_scope:viam.common.v1.GeoPoint) + // @@protoc_insertion_point(class_scope:viam.common.v1.Sphere) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - double latitude_; - double longitude_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + double radius_mm_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class Capsule final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.Capsule) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.Capsule) */ { public: inline Capsule() : Capsule(nullptr) {} ~Capsule() override; - template - explicit PROTOBUF_CONSTEXPR Capsule(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR Capsule(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Capsule(const Capsule& from) - : Capsule(nullptr, from) {} + Capsule(const Capsule& from); Capsule(Capsule&& from) noexcept : Capsule() { *this = ::std::move(from); @@ -1713,9 +1317,9 @@ class Capsule final : } inline Capsule& operator=(Capsule&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1725,22 +1329,13 @@ class Capsule final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const Capsule& default_instance() { @@ -1759,65 +1354,63 @@ class Capsule final : inline void Swap(Capsule* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(Capsule* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Capsule* New(::google::protobuf::Arena* arena = nullptr) const final { + Capsule* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const Capsule& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Capsule& from) { - Capsule::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Capsule& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(Capsule* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "viam.common.v1.Capsule"; } protected: - explicit Capsule(::google::protobuf::Arena* arena); - Capsule(::google::protobuf::Arena* arena, const Capsule& from); + explicit Capsule(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1828,81 +1421,211 @@ class Capsule final : kLengthMmFieldNumber = 2, }; // double radius_mm = 1 [json_name = "radiusMm"]; - void clear_radius_mm() ; + void clear_radius_mm(); double radius_mm() const; void set_radius_mm(double value); - private: double _internal_radius_mm() const; void _internal_set_radius_mm(double value); - public: + // double length_mm = 2 [json_name = "lengthMm"]; - void clear_length_mm() ; + void clear_length_mm(); double length_mm() const; void set_length_mm(double value); + private: + double _internal_length_mm() const; + void _internal_set_length_mm(double value); + public: + + // @@protoc_insertion_point(class_scope:viam.common.v1.Capsule) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + double radius_mm_; + double length_mm_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; +}; +// ------------------------------------------------------------------- + +class RectangularPrism final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.RectangularPrism) */ { + public: + inline RectangularPrism() : RectangularPrism(nullptr) {} + ~RectangularPrism() override; + explicit PROTOBUF_CONSTEXPR RectangularPrism(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + RectangularPrism(const RectangularPrism& from); + RectangularPrism(RectangularPrism&& from) noexcept + : RectangularPrism() { + *this = ::std::move(from); + } + + inline RectangularPrism& operator=(const RectangularPrism& from) { + CopyFrom(from); + return *this; + } + inline RectangularPrism& operator=(RectangularPrism&& 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 RectangularPrism& default_instance() { + return *internal_default_instance(); + } + static inline const RectangularPrism* internal_default_instance() { + return reinterpret_cast( + &_RectangularPrism_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + friend void swap(RectangularPrism& a, RectangularPrism& b) { + a.Swap(&b); + } + inline void Swap(RectangularPrism* 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(RectangularPrism* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + RectangularPrism* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const RectangularPrism& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const RectangularPrism& 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(RectangularPrism* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.common.v1.RectangularPrism"; + } + protected: + explicit RectangularPrism(::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 { + kDimsMmFieldNumber = 1, + }; + // .viam.common.v1.Vector3 dims_mm = 1 [json_name = "dimsMm"]; + bool has_dims_mm() const; + private: + bool _internal_has_dims_mm() const; + public: + void clear_dims_mm(); + const ::viam::common::v1::Vector3& dims_mm() const; + PROTOBUF_NODISCARD ::viam::common::v1::Vector3* release_dims_mm(); + ::viam::common::v1::Vector3* mutable_dims_mm(); + void set_allocated_dims_mm(::viam::common::v1::Vector3* dims_mm); private: - double _internal_length_mm() const; - void _internal_set_length_mm(double value); - + const ::viam::common::v1::Vector3& _internal_dims_mm() const; + ::viam::common::v1::Vector3* _internal_mutable_dims_mm(); public: - // @@protoc_insertion_point(class_scope:viam.common.v1.Capsule) + void unsafe_arena_set_allocated_dims_mm( + ::viam::common::v1::Vector3* dims_mm); + ::viam::common::v1::Vector3* unsafe_arena_release_dims_mm(); + + // @@protoc_insertion_point(class_scope:viam.common.v1.RectangularPrism) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - double radius_mm_; - double length_mm_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::viam::common::v1::Vector3* dims_mm_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ActuatorStatus final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.ActuatorStatus) */ { +class Geometry final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.Geometry) */ { public: - inline ActuatorStatus() : ActuatorStatus(nullptr) {} - ~ActuatorStatus() override; - template - explicit PROTOBUF_CONSTEXPR ActuatorStatus(::google::protobuf::internal::ConstantInitialized); + inline Geometry() : Geometry(nullptr) {} + ~Geometry() override; + explicit PROTOBUF_CONSTEXPR Geometry(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ActuatorStatus(const ActuatorStatus& from) - : ActuatorStatus(nullptr, from) {} - ActuatorStatus(ActuatorStatus&& from) noexcept - : ActuatorStatus() { + Geometry(const Geometry& from); + Geometry(Geometry&& from) noexcept + : Geometry() { *this = ::std::move(from); } - inline ActuatorStatus& operator=(const ActuatorStatus& from) { + inline Geometry& operator=(const Geometry& from) { CopyFrom(from); return *this; } - inline ActuatorStatus& operator=(ActuatorStatus&& from) noexcept { + inline Geometry& operator=(Geometry&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1912,172 +1635,246 @@ class ActuatorStatus final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ActuatorStatus& default_instance() { + static const Geometry& default_instance() { return *internal_default_instance(); } - static inline const ActuatorStatus* internal_default_instance() { - return reinterpret_cast( - &_ActuatorStatus_default_instance_); + enum GeometryTypeCase { + kSphere = 2, + kBox = 3, + kCapsule = 5, + GEOMETRY_TYPE_NOT_SET = 0, + }; + + static inline const Geometry* internal_default_instance() { + return reinterpret_cast( + &_Geometry_default_instance_); } static constexpr int kIndexInFileMessages = - 15; + 8; - friend void swap(ActuatorStatus& a, ActuatorStatus& b) { + friend void swap(Geometry& a, Geometry& b) { a.Swap(&b); } - inline void Swap(ActuatorStatus* other) { + inline void Swap(Geometry* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ActuatorStatus* other) { + void UnsafeArenaSwap(Geometry* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ActuatorStatus* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ActuatorStatus& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ActuatorStatus& from) { - ActuatorStatus::MergeImpl(*this, from); + Geometry* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Geometry& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Geometry& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ActuatorStatus* other); + void SetCachedSize(int size) const final; + void InternalSwap(Geometry* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.common.v1.ActuatorStatus"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.common.v1.Geometry"; } protected: - explicit ActuatorStatus(::google::protobuf::Arena* arena); - ActuatorStatus(::google::protobuf::Arena* arena, const ActuatorStatus& from); + explicit Geometry(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kIsMovingFieldNumber = 1, + kLabelFieldNumber = 4, + kCenterFieldNumber = 1, + kSphereFieldNumber = 2, + kBoxFieldNumber = 3, + kCapsuleFieldNumber = 5, }; - // bool is_moving = 1 [json_name = "isMoving"]; - void clear_is_moving() ; - bool is_moving() const; - void set_is_moving(bool value); + // string label = 4 [json_name = "label"]; + void clear_label(); + const std::string& label() const; + template + void set_label(ArgT0&& arg0, ArgT... args); + std::string* mutable_label(); + PROTOBUF_NODISCARD std::string* release_label(); + void set_allocated_label(std::string* label); + private: + const std::string& _internal_label() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_label(const std::string& value); + std::string* _internal_mutable_label(); + public: + // .viam.common.v1.Pose center = 1 [json_name = "center"]; + bool has_center() const; private: - bool _internal_is_moving() const; - void _internal_set_is_moving(bool value); + bool _internal_has_center() const; + public: + void clear_center(); + const ::viam::common::v1::Pose& center() const; + PROTOBUF_NODISCARD ::viam::common::v1::Pose* release_center(); + ::viam::common::v1::Pose* mutable_center(); + void set_allocated_center(::viam::common::v1::Pose* center); + private: + const ::viam::common::v1::Pose& _internal_center() const; + ::viam::common::v1::Pose* _internal_mutable_center(); + public: + void unsafe_arena_set_allocated_center( + ::viam::common::v1::Pose* center); + ::viam::common::v1::Pose* unsafe_arena_release_center(); + // .viam.common.v1.Sphere sphere = 2 [json_name = "sphere"]; + bool has_sphere() const; + private: + bool _internal_has_sphere() const; public: - // @@protoc_insertion_point(class_scope:viam.common.v1.ActuatorStatus) + void clear_sphere(); + const ::viam::common::v1::Sphere& sphere() const; + PROTOBUF_NODISCARD ::viam::common::v1::Sphere* release_sphere(); + ::viam::common::v1::Sphere* mutable_sphere(); + void set_allocated_sphere(::viam::common::v1::Sphere* sphere); + private: + const ::viam::common::v1::Sphere& _internal_sphere() const; + ::viam::common::v1::Sphere* _internal_mutable_sphere(); + public: + void unsafe_arena_set_allocated_sphere( + ::viam::common::v1::Sphere* sphere); + ::viam::common::v1::Sphere* unsafe_arena_release_sphere(); + + // .viam.common.v1.RectangularPrism box = 3 [json_name = "box"]; + bool has_box() const; + private: + bool _internal_has_box() const; + public: + void clear_box(); + const ::viam::common::v1::RectangularPrism& box() const; + PROTOBUF_NODISCARD ::viam::common::v1::RectangularPrism* release_box(); + ::viam::common::v1::RectangularPrism* mutable_box(); + void set_allocated_box(::viam::common::v1::RectangularPrism* box); + private: + const ::viam::common::v1::RectangularPrism& _internal_box() const; + ::viam::common::v1::RectangularPrism* _internal_mutable_box(); + public: + void unsafe_arena_set_allocated_box( + ::viam::common::v1::RectangularPrism* box); + ::viam::common::v1::RectangularPrism* unsafe_arena_release_box(); + + // .viam.common.v1.Capsule capsule = 5 [json_name = "capsule"]; + bool has_capsule() const; + private: + bool _internal_has_capsule() const; + public: + void clear_capsule(); + const ::viam::common::v1::Capsule& capsule() const; + PROTOBUF_NODISCARD ::viam::common::v1::Capsule* release_capsule(); + ::viam::common::v1::Capsule* mutable_capsule(); + void set_allocated_capsule(::viam::common::v1::Capsule* capsule); + private: + const ::viam::common::v1::Capsule& _internal_capsule() const; + ::viam::common::v1::Capsule* _internal_mutable_capsule(); + public: + void unsafe_arena_set_allocated_capsule( + ::viam::common::v1::Capsule* capsule); + ::viam::common::v1::Capsule* unsafe_arena_release_capsule(); + + void clear_geometry_type(); + GeometryTypeCase geometry_type_case() const; + // @@protoc_insertion_point(class_scope:viam.common.v1.Geometry) private: class _Internal; + void set_has_sphere(); + void set_has_box(); + void set_has_capsule(); + + inline bool has_geometry_type() const; + inline void clear_has_geometry_type(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr label_; + ::viam::common::v1::Pose* center_; + union GeometryTypeUnion { + constexpr GeometryTypeUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::viam::common::v1::Sphere* sphere_; + ::viam::common::v1::RectangularPrism* box_; + ::viam::common::v1::Capsule* capsule_; + } geometry_type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - bool is_moving_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ResponseMetadata final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.ResponseMetadata) */ { +class GeometriesInFrame final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.GeometriesInFrame) */ { public: - inline ResponseMetadata() : ResponseMetadata(nullptr) {} - ~ResponseMetadata() override; - template - explicit PROTOBUF_CONSTEXPR ResponseMetadata(::google::protobuf::internal::ConstantInitialized); + inline GeometriesInFrame() : GeometriesInFrame(nullptr) {} + ~GeometriesInFrame() override; + explicit PROTOBUF_CONSTEXPR GeometriesInFrame(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ResponseMetadata(const ResponseMetadata& from) - : ResponseMetadata(nullptr, from) {} - ResponseMetadata(ResponseMetadata&& from) noexcept - : ResponseMetadata() { + GeometriesInFrame(const GeometriesInFrame& from); + GeometriesInFrame(GeometriesInFrame&& from) noexcept + : GeometriesInFrame() { *this = ::std::move(from); } - inline ResponseMetadata& operator=(const ResponseMetadata& from) { + inline GeometriesInFrame& operator=(const GeometriesInFrame& from) { CopyFrom(from); return *this; } - inline ResponseMetadata& operator=(ResponseMetadata&& from) noexcept { + inline GeometriesInFrame& operator=(GeometriesInFrame&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2087,178 +1884,165 @@ class ResponseMetadata final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ResponseMetadata& default_instance() { + static const GeometriesInFrame& default_instance() { return *internal_default_instance(); } - static inline const ResponseMetadata* internal_default_instance() { - return reinterpret_cast( - &_ResponseMetadata_default_instance_); + static inline const GeometriesInFrame* internal_default_instance() { + return reinterpret_cast( + &_GeometriesInFrame_default_instance_); } static constexpr int kIndexInFileMessages = - 16; + 9; - friend void swap(ResponseMetadata& a, ResponseMetadata& b) { + friend void swap(GeometriesInFrame& a, GeometriesInFrame& b) { a.Swap(&b); } - inline void Swap(ResponseMetadata* other) { + inline void Swap(GeometriesInFrame* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ResponseMetadata* other) { + void UnsafeArenaSwap(GeometriesInFrame* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ResponseMetadata* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ResponseMetadata& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ResponseMetadata& from) { - ResponseMetadata::MergeImpl(*this, from); + GeometriesInFrame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GeometriesInFrame& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GeometriesInFrame& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ResponseMetadata* other); + void SetCachedSize(int size) const final; + void InternalSwap(GeometriesInFrame* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.common.v1.ResponseMetadata"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.common.v1.GeometriesInFrame"; } protected: - explicit ResponseMetadata(::google::protobuf::Arena* arena); - ResponseMetadata(::google::protobuf::Arena* arena, const ResponseMetadata& from); + explicit GeometriesInFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kCapturedAtFieldNumber = 1, + kGeometriesFieldNumber = 2, + kReferenceFrameFieldNumber = 1, }; - // optional .google.protobuf.Timestamp captured_at = 1 [json_name = "capturedAt"]; - bool has_captured_at() const; - void clear_captured_at() ; - const ::google::protobuf::Timestamp& captured_at() const; - PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_captured_at(); - ::google::protobuf::Timestamp* mutable_captured_at(); - void set_allocated_captured_at(::google::protobuf::Timestamp* value); - void unsafe_arena_set_allocated_captured_at(::google::protobuf::Timestamp* value); - ::google::protobuf::Timestamp* unsafe_arena_release_captured_at(); - + // repeated .viam.common.v1.Geometry geometries = 2 [json_name = "geometries"]; + int geometries_size() const; + private: + int _internal_geometries_size() const; + public: + void clear_geometries(); + ::viam::common::v1::Geometry* mutable_geometries(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Geometry >* + mutable_geometries(); private: - const ::google::protobuf::Timestamp& _internal_captured_at() const; - ::google::protobuf::Timestamp* _internal_mutable_captured_at(); + const ::viam::common::v1::Geometry& _internal_geometries(int index) const; + ::viam::common::v1::Geometry* _internal_add_geometries(); + public: + const ::viam::common::v1::Geometry& geometries(int index) const; + ::viam::common::v1::Geometry* add_geometries(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Geometry >& + geometries() const; + // string reference_frame = 1 [json_name = "referenceFrame"]; + void clear_reference_frame(); + const std::string& reference_frame() const; + template + void set_reference_frame(ArgT0&& arg0, ArgT... args); + std::string* mutable_reference_frame(); + PROTOBUF_NODISCARD std::string* release_reference_frame(); + void set_allocated_reference_frame(std::string* reference_frame); + private: + const std::string& _internal_reference_frame() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_reference_frame(const std::string& value); + std::string* _internal_mutable_reference_frame(); public: - // @@protoc_insertion_point(class_scope:viam.common.v1.ResponseMetadata) + + // @@protoc_insertion_point(class_scope:viam.common.v1.GeometriesInFrame) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::Timestamp* captured_at_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Geometry > geometries_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr reference_frame_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class RectangularPrism final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.RectangularPrism) */ { +class PointCloudObject final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.PointCloudObject) */ { public: - inline RectangularPrism() : RectangularPrism(nullptr) {} - ~RectangularPrism() override; - template - explicit PROTOBUF_CONSTEXPR RectangularPrism(::google::protobuf::internal::ConstantInitialized); + inline PointCloudObject() : PointCloudObject(nullptr) {} + ~PointCloudObject() override; + explicit PROTOBUF_CONSTEXPR PointCloudObject(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline RectangularPrism(const RectangularPrism& from) - : RectangularPrism(nullptr, from) {} - RectangularPrism(RectangularPrism&& from) noexcept - : RectangularPrism() { + PointCloudObject(const PointCloudObject& from); + PointCloudObject(PointCloudObject&& from) noexcept + : PointCloudObject() { *this = ::std::move(from); } - inline RectangularPrism& operator=(const RectangularPrism& from) { + inline PointCloudObject& operator=(const PointCloudObject& from) { CopyFrom(from); return *this; } - inline RectangularPrism& operator=(RectangularPrism&& from) noexcept { + inline PointCloudObject& operator=(PointCloudObject&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2268,178 +2052,165 @@ class RectangularPrism final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const RectangularPrism& default_instance() { + static const PointCloudObject& default_instance() { return *internal_default_instance(); } - static inline const RectangularPrism* internal_default_instance() { - return reinterpret_cast( - &_RectangularPrism_default_instance_); + static inline const PointCloudObject* internal_default_instance() { + return reinterpret_cast( + &_PointCloudObject_default_instance_); } static constexpr int kIndexInFileMessages = - 7; + 10; - friend void swap(RectangularPrism& a, RectangularPrism& b) { + friend void swap(PointCloudObject& a, PointCloudObject& b) { a.Swap(&b); } - inline void Swap(RectangularPrism* other) { + inline void Swap(PointCloudObject* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RectangularPrism* other) { + void UnsafeArenaSwap(PointCloudObject* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - RectangularPrism* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const RectangularPrism& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const RectangularPrism& from) { - RectangularPrism::MergeImpl(*this, from); + PointCloudObject* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const PointCloudObject& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const PointCloudObject& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(RectangularPrism* other); + void SetCachedSize(int size) const final; + void InternalSwap(PointCloudObject* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.common.v1.RectangularPrism"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.common.v1.PointCloudObject"; } protected: - explicit RectangularPrism(::google::protobuf::Arena* arena); - RectangularPrism(::google::protobuf::Arena* arena, const RectangularPrism& from); + explicit PointCloudObject(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kDimsMmFieldNumber = 1, + kPointCloudFieldNumber = 1, + kGeometriesFieldNumber = 2, }; - // .viam.common.v1.Vector3 dims_mm = 1 [json_name = "dimsMm"]; - bool has_dims_mm() const; - void clear_dims_mm() ; - const ::viam::common::v1::Vector3& dims_mm() const; - PROTOBUF_NODISCARD ::viam::common::v1::Vector3* release_dims_mm(); - ::viam::common::v1::Vector3* mutable_dims_mm(); - void set_allocated_dims_mm(::viam::common::v1::Vector3* value); - void unsafe_arena_set_allocated_dims_mm(::viam::common::v1::Vector3* value); - ::viam::common::v1::Vector3* unsafe_arena_release_dims_mm(); - + // bytes point_cloud = 1 [json_name = "pointCloud"]; + void clear_point_cloud(); + const std::string& point_cloud() const; + template + void set_point_cloud(ArgT0&& arg0, ArgT... args); + std::string* mutable_point_cloud(); + PROTOBUF_NODISCARD std::string* release_point_cloud(); + void set_allocated_point_cloud(std::string* point_cloud); private: - const ::viam::common::v1::Vector3& _internal_dims_mm() const; - ::viam::common::v1::Vector3* _internal_mutable_dims_mm(); + const std::string& _internal_point_cloud() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_point_cloud(const std::string& value); + std::string* _internal_mutable_point_cloud(); + public: + // .viam.common.v1.GeometriesInFrame geometries = 2 [json_name = "geometries"]; + bool has_geometries() const; + private: + bool _internal_has_geometries() const; public: - // @@protoc_insertion_point(class_scope:viam.common.v1.RectangularPrism) + void clear_geometries(); + const ::viam::common::v1::GeometriesInFrame& geometries() const; + PROTOBUF_NODISCARD ::viam::common::v1::GeometriesInFrame* release_geometries(); + ::viam::common::v1::GeometriesInFrame* mutable_geometries(); + void set_allocated_geometries(::viam::common::v1::GeometriesInFrame* geometries); + private: + const ::viam::common::v1::GeometriesInFrame& _internal_geometries() const; + ::viam::common::v1::GeometriesInFrame* _internal_mutable_geometries(); + public: + void unsafe_arena_set_allocated_geometries( + ::viam::common::v1::GeometriesInFrame* geometries); + ::viam::common::v1::GeometriesInFrame* unsafe_arena_release_geometries(); + + // @@protoc_insertion_point(class_scope:viam.common.v1.PointCloudObject) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::viam::common::v1::Vector3* dims_mm_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr point_cloud_; + ::viam::common::v1::GeometriesInFrame* geometries_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class PoseInFrame final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.PoseInFrame) */ { +class GeoPoint final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.GeoPoint) */ { public: - inline PoseInFrame() : PoseInFrame(nullptr) {} - ~PoseInFrame() override; - template - explicit PROTOBUF_CONSTEXPR PoseInFrame(::google::protobuf::internal::ConstantInitialized); + inline GeoPoint() : GeoPoint(nullptr) {} + ~GeoPoint() override; + explicit PROTOBUF_CONSTEXPR GeoPoint(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline PoseInFrame(const PoseInFrame& from) - : PoseInFrame(nullptr, from) {} - PoseInFrame(PoseInFrame&& from) noexcept - : PoseInFrame() { + GeoPoint(const GeoPoint& from); + GeoPoint(GeoPoint&& from) noexcept + : GeoPoint() { *this = ::std::move(from); } - inline PoseInFrame& operator=(const PoseInFrame& from) { + inline GeoPoint& operator=(const GeoPoint& from) { CopyFrom(from); return *this; } - inline PoseInFrame& operator=(PoseInFrame&& from) noexcept { + inline GeoPoint& operator=(GeoPoint&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2449,196 +2220,151 @@ class PoseInFrame final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const PoseInFrame& default_instance() { + static const GeoPoint& default_instance() { return *internal_default_instance(); } - static inline const PoseInFrame* internal_default_instance() { - return reinterpret_cast( - &_PoseInFrame_default_instance_); + static inline const GeoPoint* internal_default_instance() { + return reinterpret_cast( + &_GeoPoint_default_instance_); } static constexpr int kIndexInFileMessages = - 3; + 11; - friend void swap(PoseInFrame& a, PoseInFrame& b) { + friend void swap(GeoPoint& a, GeoPoint& b) { a.Swap(&b); } - inline void Swap(PoseInFrame* other) { + inline void Swap(GeoPoint* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(PoseInFrame* other) { + void UnsafeArenaSwap(GeoPoint* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - PoseInFrame* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const PoseInFrame& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const PoseInFrame& from) { - PoseInFrame::MergeImpl(*this, from); + GeoPoint* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GeoPoint& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GeoPoint& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(PoseInFrame* other); + void SetCachedSize(int size) const final; + void InternalSwap(GeoPoint* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.common.v1.PoseInFrame"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.common.v1.GeoPoint"; } protected: - explicit PoseInFrame(::google::protobuf::Arena* arena); - PoseInFrame(::google::protobuf::Arena* arena, const PoseInFrame& from); + explicit GeoPoint(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kReferenceFrameFieldNumber = 1, - kPoseFieldNumber = 2, + kLatitudeFieldNumber = 1, + kLongitudeFieldNumber = 2, }; - // string reference_frame = 1 [json_name = "referenceFrame"]; - void clear_reference_frame() ; - const std::string& reference_frame() const; - template - void set_reference_frame(Arg_&& arg, Args_... args); - std::string* mutable_reference_frame(); - PROTOBUF_NODISCARD std::string* release_reference_frame(); - void set_allocated_reference_frame(std::string* value); - + // double latitude = 1 [json_name = "latitude"]; + void clear_latitude(); + double latitude() const; + void set_latitude(double value); private: - const std::string& _internal_reference_frame() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_reference_frame( - const std::string& value); - std::string* _internal_mutable_reference_frame(); - + double _internal_latitude() const; + void _internal_set_latitude(double value); public: - // .viam.common.v1.Pose pose = 2 [json_name = "pose"]; - bool has_pose() const; - void clear_pose() ; - const ::viam::common::v1::Pose& pose() const; - PROTOBUF_NODISCARD ::viam::common::v1::Pose* release_pose(); - ::viam::common::v1::Pose* mutable_pose(); - void set_allocated_pose(::viam::common::v1::Pose* value); - void unsafe_arena_set_allocated_pose(::viam::common::v1::Pose* value); - ::viam::common::v1::Pose* unsafe_arena_release_pose(); + // double longitude = 2 [json_name = "longitude"]; + void clear_longitude(); + double longitude() const; + void set_longitude(double value); private: - const ::viam::common::v1::Pose& _internal_pose() const; - ::viam::common::v1::Pose* _internal_mutable_pose(); - + double _internal_longitude() const; + void _internal_set_longitude(double value); public: - // @@protoc_insertion_point(class_scope:viam.common.v1.PoseInFrame) + + // @@protoc_insertion_point(class_scope:viam.common.v1.GeoPoint) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 50, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr reference_frame_; - ::viam::common::v1::Pose* pose_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + double latitude_; + double longitude_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class LogEntry final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.LogEntry) */ { +class GeoGeometry final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.GeoGeometry) */ { public: - inline LogEntry() : LogEntry(nullptr) {} - ~LogEntry() override; - template - explicit PROTOBUF_CONSTEXPR LogEntry(::google::protobuf::internal::ConstantInitialized); + inline GeoGeometry() : GeoGeometry(nullptr) {} + ~GeoGeometry() override; + explicit PROTOBUF_CONSTEXPR GeoGeometry(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline LogEntry(const LogEntry& from) - : LogEntry(nullptr, from) {} - LogEntry(LogEntry&& from) noexcept - : LogEntry() { + GeoGeometry(const GeoGeometry& from); + GeoGeometry(GeoGeometry&& from) noexcept + : GeoGeometry() { *this = ::std::move(from); } - inline LogEntry& operator=(const LogEntry& from) { + inline GeoGeometry& operator=(const GeoGeometry& from) { CopyFrom(from); return *this; } - inline LogEntry& operator=(LogEntry&& from) noexcept { + inline GeoGeometry& operator=(GeoGeometry&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2648,333 +2374,169 @@ class LogEntry final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const LogEntry& default_instance() { + static const GeoGeometry& default_instance() { return *internal_default_instance(); } - static inline const LogEntry* internal_default_instance() { - return reinterpret_cast( - &_LogEntry_default_instance_); + static inline const GeoGeometry* internal_default_instance() { + return reinterpret_cast( + &_GeoGeometry_default_instance_); } static constexpr int kIndexInFileMessages = - 26; + 12; - friend void swap(LogEntry& a, LogEntry& b) { + friend void swap(GeoGeometry& a, GeoGeometry& b) { a.Swap(&b); } - inline void Swap(LogEntry* other) { + inline void Swap(GeoGeometry* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(LogEntry* other) { + void UnsafeArenaSwap(GeoGeometry* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - LogEntry* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const LogEntry& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const LogEntry& from) { - LogEntry::MergeImpl(*this, from); + GeoGeometry* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GeoGeometry& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GeoGeometry& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(LogEntry* other); + void SetCachedSize(int size) const final; + void InternalSwap(GeoGeometry* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.common.v1.LogEntry"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.common.v1.GeoGeometry"; } protected: - explicit LogEntry(::google::protobuf::Arena* arena); - LogEntry(::google::protobuf::Arena* arena, const LogEntry& from); + explicit GeoGeometry(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kFieldsFieldNumber = 8, - kHostFieldNumber = 1, - kLevelFieldNumber = 2, - kLoggerNameFieldNumber = 4, - kMessageFieldNumber = 5, - kStackFieldNumber = 7, - kTimeFieldNumber = 3, - kCallerFieldNumber = 6, + kGeometriesFieldNumber = 2, + kLocationFieldNumber = 1, }; - // repeated .google.protobuf.Struct fields = 8 [json_name = "fields"]; - int fields_size() const; - private: - int _internal_fields_size() const; - - public: - void clear_fields() ; - ::google::protobuf::Struct* mutable_fields(int index); - ::google::protobuf::RepeatedPtrField< ::google::protobuf::Struct >* - mutable_fields(); - private: - const ::google::protobuf::RepeatedPtrField<::google::protobuf::Struct>& _internal_fields() const; - ::google::protobuf::RepeatedPtrField<::google::protobuf::Struct>* _internal_mutable_fields(); - public: - const ::google::protobuf::Struct& fields(int index) const; - ::google::protobuf::Struct* add_fields(); - const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Struct >& - fields() const; - // string host = 1 [json_name = "host"]; - void clear_host() ; - const std::string& host() const; - template - void set_host(Arg_&& arg, Args_... args); - std::string* mutable_host(); - PROTOBUF_NODISCARD std::string* release_host(); - void set_allocated_host(std::string* value); - - private: - const std::string& _internal_host() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_host( - const std::string& value); - std::string* _internal_mutable_host(); - - public: - // string level = 2 [json_name = "level"]; - void clear_level() ; - const std::string& level() const; - template - void set_level(Arg_&& arg, Args_... args); - std::string* mutable_level(); - PROTOBUF_NODISCARD std::string* release_level(); - void set_allocated_level(std::string* value); - - private: - const std::string& _internal_level() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_level( - const std::string& value); - std::string* _internal_mutable_level(); - - public: - // string logger_name = 4 [json_name = "loggerName"]; - void clear_logger_name() ; - const std::string& logger_name() const; - template - void set_logger_name(Arg_&& arg, Args_... args); - std::string* mutable_logger_name(); - PROTOBUF_NODISCARD std::string* release_logger_name(); - void set_allocated_logger_name(std::string* value); - - private: - const std::string& _internal_logger_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_logger_name( - const std::string& value); - std::string* _internal_mutable_logger_name(); - - public: - // string message = 5 [json_name = "message"]; - void clear_message() ; - const std::string& message() const; - template - void set_message(Arg_&& arg, Args_... args); - std::string* mutable_message(); - PROTOBUF_NODISCARD std::string* release_message(); - void set_allocated_message(std::string* value); - + // repeated .viam.common.v1.Geometry geometries = 2 [json_name = "geometries"]; + int geometries_size() const; private: - const std::string& _internal_message() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_message( - const std::string& value); - std::string* _internal_mutable_message(); - + int _internal_geometries_size() const; public: - // string stack = 7 [json_name = "stack"]; - void clear_stack() ; - const std::string& stack() const; - template - void set_stack(Arg_&& arg, Args_... args); - std::string* mutable_stack(); - PROTOBUF_NODISCARD std::string* release_stack(); - void set_allocated_stack(std::string* value); - + void clear_geometries(); + ::viam::common::v1::Geometry* mutable_geometries(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Geometry >* + mutable_geometries(); private: - const std::string& _internal_stack() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_stack( - const std::string& value); - std::string* _internal_mutable_stack(); - + const ::viam::common::v1::Geometry& _internal_geometries(int index) const; + ::viam::common::v1::Geometry* _internal_add_geometries(); public: - // .google.protobuf.Timestamp time = 3 [json_name = "time"]; - bool has_time() const; - void clear_time() ; - const ::google::protobuf::Timestamp& time() const; - PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_time(); - ::google::protobuf::Timestamp* mutable_time(); - void set_allocated_time(::google::protobuf::Timestamp* value); - void unsafe_arena_set_allocated_time(::google::protobuf::Timestamp* value); - ::google::protobuf::Timestamp* unsafe_arena_release_time(); + const ::viam::common::v1::Geometry& geometries(int index) const; + ::viam::common::v1::Geometry* add_geometries(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Geometry >& + geometries() const; + // .viam.common.v1.GeoPoint location = 1 [json_name = "location"]; + bool has_location() const; private: - const ::google::protobuf::Timestamp& _internal_time() const; - ::google::protobuf::Timestamp* _internal_mutable_time(); - + bool _internal_has_location() const; public: - // .google.protobuf.Struct caller = 6 [json_name = "caller"]; - bool has_caller() const; - void clear_caller() ; - const ::google::protobuf::Struct& caller() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_caller(); - ::google::protobuf::Struct* mutable_caller(); - void set_allocated_caller(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_caller(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_caller(); - + void clear_location(); + const ::viam::common::v1::GeoPoint& location() const; + PROTOBUF_NODISCARD ::viam::common::v1::GeoPoint* release_location(); + ::viam::common::v1::GeoPoint* mutable_location(); + void set_allocated_location(::viam::common::v1::GeoPoint* location); private: - const ::google::protobuf::Struct& _internal_caller() const; - ::google::protobuf::Struct* _internal_mutable_caller(); - + const ::viam::common::v1::GeoPoint& _internal_location() const; + ::viam::common::v1::GeoPoint* _internal_mutable_location(); public: - // @@protoc_insertion_point(class_scope:viam.common.v1.LogEntry) - private: - class _Internal; + void unsafe_arena_set_allocated_location( + ::viam::common::v1::GeoPoint* location); + ::viam::common::v1::GeoPoint* unsafe_arena_release_location(); - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 8, 3, - 72, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::google::protobuf::Struct > fields_; - ::google::protobuf::internal::ArenaStringPtr host_; - ::google::protobuf::internal::ArenaStringPtr level_; - ::google::protobuf::internal::ArenaStringPtr logger_name_; - ::google::protobuf::internal::ArenaStringPtr message_; - ::google::protobuf::internal::ArenaStringPtr stack_; - ::google::protobuf::Timestamp* time_; - ::google::protobuf::Struct* caller_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; -};// ------------------------------------------------------------------- + // @@protoc_insertion_point(class_scope:viam.common.v1.GeoGeometry) + private: + class _Internal; -class GetReadingsResponse_ReadingsEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry< - GetReadingsResponse_ReadingsEntry_DoNotUse, std::string, ::google::protobuf::Value, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE> { - public: - using SuperType = ::google::protobuf::internal::MapEntry< - GetReadingsResponse_ReadingsEntry_DoNotUse, std::string, ::google::protobuf::Value, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>; - GetReadingsResponse_ReadingsEntry_DoNotUse(); - template - explicit PROTOBUF_CONSTEXPR GetReadingsResponse_ReadingsEntry_DoNotUse( - ::google::protobuf::internal::ConstantInitialized); - explicit GetReadingsResponse_ReadingsEntry_DoNotUse(::google::protobuf::Arena* arena); - static const GetReadingsResponse_ReadingsEntry_DoNotUse* internal_default_instance() { - return reinterpret_cast( - &_GetReadingsResponse_ReadingsEntry_DoNotUse_default_instance_); - } - static bool ValidateKey(std::string* s) { - return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "viam.common.v1.GetReadingsResponse.ReadingsEntry.key"); - } - static bool ValidateValue(void*) { return true; } - ::google::protobuf::Metadata GetMetadata() const final; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Geometry > geometries_; + ::viam::common::v1::GeoPoint* location_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; }; // ------------------------------------------------------------------- -class GetReadingsRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.GetReadingsRequest) */ { +class Transform final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.Transform) */ { public: - inline GetReadingsRequest() : GetReadingsRequest(nullptr) {} - ~GetReadingsRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetReadingsRequest(::google::protobuf::internal::ConstantInitialized); + inline Transform() : Transform(nullptr) {} + ~Transform() override; + explicit PROTOBUF_CONSTEXPR Transform(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetReadingsRequest(const GetReadingsRequest& from) - : GetReadingsRequest(nullptr, from) {} - GetReadingsRequest(GetReadingsRequest&& from) noexcept - : GetReadingsRequest() { + Transform(const Transform& from); + Transform(Transform&& from) noexcept + : Transform() { *this = ::std::move(from); } - inline GetReadingsRequest& operator=(const GetReadingsRequest& from) { + inline Transform& operator=(const Transform& from) { CopyFrom(from); return *this; } - inline GetReadingsRequest& operator=(GetReadingsRequest&& from) noexcept { + inline Transform& operator=(Transform&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2984,196 +2546,186 @@ class GetReadingsRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetReadingsRequest& default_instance() { + static const Transform& default_instance() { return *internal_default_instance(); } - static inline const GetReadingsRequest* internal_default_instance() { - return reinterpret_cast( - &_GetReadingsRequest_default_instance_); + static inline const Transform* internal_default_instance() { + return reinterpret_cast( + &_Transform_default_instance_); } static constexpr int kIndexInFileMessages = - 23; + 13; - friend void swap(GetReadingsRequest& a, GetReadingsRequest& b) { + friend void swap(Transform& a, Transform& b) { a.Swap(&b); } - inline void Swap(GetReadingsRequest* other) { + inline void Swap(Transform* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetReadingsRequest* other) { + void UnsafeArenaSwap(Transform* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetReadingsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetReadingsRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetReadingsRequest& from) { - GetReadingsRequest::MergeImpl(*this, from); + Transform* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Transform& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Transform& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetReadingsRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(Transform* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.common.v1.GetReadingsRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.common.v1.Transform"; } protected: - explicit GetReadingsRequest(::google::protobuf::Arena* arena); - GetReadingsRequest(::google::protobuf::Arena* arena, const GetReadingsRequest& from); + explicit Transform(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kNameFieldNumber = 1, - kExtraFieldNumber = 99, + kReferenceFrameFieldNumber = 1, + kPoseInObserverFrameFieldNumber = 2, + kPhysicalObjectFieldNumber = 3, }; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + // string reference_frame = 1 [json_name = "referenceFrame"]; + void clear_reference_frame(); + const std::string& reference_frame() const; + template + void set_reference_frame(ArgT0&& arg0, ArgT... args); + std::string* mutable_reference_frame(); + PROTOBUF_NODISCARD std::string* release_reference_frame(); + void set_allocated_reference_frame(std::string* reference_frame); private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - + const std::string& _internal_reference_frame() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_reference_frame(const std::string& value); + std::string* _internal_mutable_reference_frame(); public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); + // .viam.common.v1.PoseInFrame pose_in_observer_frame = 2 [json_name = "poseInObserverFrame"]; + bool has_pose_in_observer_frame() const; + private: + bool _internal_has_pose_in_observer_frame() const; + public: + void clear_pose_in_observer_frame(); + const ::viam::common::v1::PoseInFrame& pose_in_observer_frame() const; + PROTOBUF_NODISCARD ::viam::common::v1::PoseInFrame* release_pose_in_observer_frame(); + ::viam::common::v1::PoseInFrame* mutable_pose_in_observer_frame(); + void set_allocated_pose_in_observer_frame(::viam::common::v1::PoseInFrame* pose_in_observer_frame); private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); + const ::viam::common::v1::PoseInFrame& _internal_pose_in_observer_frame() const; + ::viam::common::v1::PoseInFrame* _internal_mutable_pose_in_observer_frame(); + public: + void unsafe_arena_set_allocated_pose_in_observer_frame( + ::viam::common::v1::PoseInFrame* pose_in_observer_frame); + ::viam::common::v1::PoseInFrame* unsafe_arena_release_pose_in_observer_frame(); + // optional .viam.common.v1.Geometry physical_object = 3 [json_name = "physicalObject"]; + bool has_physical_object() const; + private: + bool _internal_has_physical_object() const; public: - // @@protoc_insertion_point(class_scope:viam.common.v1.GetReadingsRequest) + void clear_physical_object(); + const ::viam::common::v1::Geometry& physical_object() const; + PROTOBUF_NODISCARD ::viam::common::v1::Geometry* release_physical_object(); + ::viam::common::v1::Geometry* mutable_physical_object(); + void set_allocated_physical_object(::viam::common::v1::Geometry* physical_object); + private: + const ::viam::common::v1::Geometry& _internal_physical_object() const; + ::viam::common::v1::Geometry* _internal_mutable_physical_object(); + public: + void unsafe_arena_set_allocated_physical_object( + ::viam::common::v1::Geometry* physical_object); + ::viam::common::v1::Geometry* unsafe_arena_release_physical_object(); + + // @@protoc_insertion_point(class_scope:viam.common.v1.Transform) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 2, 1, - 46, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr reference_frame_; + ::viam::common::v1::PoseInFrame* pose_in_observer_frame_; + ::viam::common::v1::Geometry* physical_object_; friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetKinematicsRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.GetKinematicsRequest) */ { +class WorldState final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.WorldState) */ { public: - inline GetKinematicsRequest() : GetKinematicsRequest(nullptr) {} - ~GetKinematicsRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetKinematicsRequest(::google::protobuf::internal::ConstantInitialized); + inline WorldState() : WorldState(nullptr) {} + ~WorldState() override; + explicit PROTOBUF_CONSTEXPR WorldState(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetKinematicsRequest(const GetKinematicsRequest& from) - : GetKinematicsRequest(nullptr, from) {} - GetKinematicsRequest(GetKinematicsRequest&& from) noexcept - : GetKinematicsRequest() { + WorldState(const WorldState& from); + WorldState(WorldState&& from) noexcept + : WorldState() { *this = ::std::move(from); } - inline GetKinematicsRequest& operator=(const GetKinematicsRequest& from) { + inline WorldState& operator=(const WorldState& from) { CopyFrom(from); return *this; } - inline GetKinematicsRequest& operator=(GetKinematicsRequest&& from) noexcept { + inline WorldState& operator=(WorldState&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3183,196 +2735,169 @@ class GetKinematicsRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetKinematicsRequest& default_instance() { + static const WorldState& default_instance() { return *internal_default_instance(); } - static inline const GetKinematicsRequest* internal_default_instance() { - return reinterpret_cast( - &_GetKinematicsRequest_default_instance_); + static inline const WorldState* internal_default_instance() { + return reinterpret_cast( + &_WorldState_default_instance_); } static constexpr int kIndexInFileMessages = - 19; + 14; - friend void swap(GetKinematicsRequest& a, GetKinematicsRequest& b) { + friend void swap(WorldState& a, WorldState& b) { a.Swap(&b); } - inline void Swap(GetKinematicsRequest* other) { + inline void Swap(WorldState* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetKinematicsRequest* other) { + void UnsafeArenaSwap(WorldState* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetKinematicsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetKinematicsRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetKinematicsRequest& from) { - GetKinematicsRequest::MergeImpl(*this, from); + WorldState* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const WorldState& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const WorldState& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetKinematicsRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(WorldState* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.common.v1.GetKinematicsRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.common.v1.WorldState"; } protected: - explicit GetKinematicsRequest(::google::protobuf::Arena* arena); - GetKinematicsRequest(::google::protobuf::Arena* arena, const GetKinematicsRequest& from); + explicit WorldState(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kNameFieldNumber = 1, - kExtraFieldNumber = 99, + kObstaclesFieldNumber = 1, + kTransformsFieldNumber = 3, }; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + // repeated .viam.common.v1.GeometriesInFrame obstacles = 1 [json_name = "obstacles"]; + int obstacles_size() const; private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - + int _internal_obstacles_size() const; public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - + void clear_obstacles(); + ::viam::common::v1::GeometriesInFrame* mutable_obstacles(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::GeometriesInFrame >* + mutable_obstacles(); private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); + const ::viam::common::v1::GeometriesInFrame& _internal_obstacles(int index) const; + ::viam::common::v1::GeometriesInFrame* _internal_add_obstacles(); + public: + const ::viam::common::v1::GeometriesInFrame& obstacles(int index) const; + ::viam::common::v1::GeometriesInFrame* add_obstacles(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::GeometriesInFrame >& + obstacles() const; + // repeated .viam.common.v1.Transform transforms = 3 [json_name = "transforms"]; + int transforms_size() const; + private: + int _internal_transforms_size() const; public: - // @@protoc_insertion_point(class_scope:viam.common.v1.GetKinematicsRequest) + void clear_transforms(); + ::viam::common::v1::Transform* mutable_transforms(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Transform >* + mutable_transforms(); + private: + const ::viam::common::v1::Transform& _internal_transforms(int index) const; + ::viam::common::v1::Transform* _internal_add_transforms(); + public: + const ::viam::common::v1::Transform& transforms(int index) const; + ::viam::common::v1::Transform* add_transforms(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Transform >& + transforms() const; + + // @@protoc_insertion_point(class_scope:viam.common.v1.WorldState) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 2, 1, - 48, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::GeometriesInFrame > obstacles_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Transform > transforms_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetGeometriesRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.GetGeometriesRequest) */ { +class ActuatorStatus final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.ActuatorStatus) */ { public: - inline GetGeometriesRequest() : GetGeometriesRequest(nullptr) {} - ~GetGeometriesRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetGeometriesRequest(::google::protobuf::internal::ConstantInitialized); + inline ActuatorStatus() : ActuatorStatus(nullptr) {} + ~ActuatorStatus() override; + explicit PROTOBUF_CONSTEXPR ActuatorStatus(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetGeometriesRequest(const GetGeometriesRequest& from) - : GetGeometriesRequest(nullptr, from) {} - GetGeometriesRequest(GetGeometriesRequest&& from) noexcept - : GetGeometriesRequest() { + ActuatorStatus(const ActuatorStatus& from); + ActuatorStatus(ActuatorStatus&& from) noexcept + : ActuatorStatus() { *this = ::std::move(from); } - inline GetGeometriesRequest& operator=(const GetGeometriesRequest& from) { + inline ActuatorStatus& operator=(const ActuatorStatus& from) { CopyFrom(from); return *this; } - inline GetGeometriesRequest& operator=(GetGeometriesRequest&& from) noexcept { + inline ActuatorStatus& operator=(ActuatorStatus&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3382,196 +2907,140 @@ class GetGeometriesRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetGeometriesRequest& default_instance() { + static const ActuatorStatus& default_instance() { return *internal_default_instance(); } - static inline const GetGeometriesRequest* internal_default_instance() { - return reinterpret_cast( - &_GetGeometriesRequest_default_instance_); + static inline const ActuatorStatus* internal_default_instance() { + return reinterpret_cast( + &_ActuatorStatus_default_instance_); } static constexpr int kIndexInFileMessages = - 21; + 15; - friend void swap(GetGeometriesRequest& a, GetGeometriesRequest& b) { + friend void swap(ActuatorStatus& a, ActuatorStatus& b) { a.Swap(&b); } - inline void Swap(GetGeometriesRequest* other) { + inline void Swap(ActuatorStatus* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetGeometriesRequest* other) { + void UnsafeArenaSwap(ActuatorStatus* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetGeometriesRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetGeometriesRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetGeometriesRequest& from) { - GetGeometriesRequest::MergeImpl(*this, from); + ActuatorStatus* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ActuatorStatus& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ActuatorStatus& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetGeometriesRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(ActuatorStatus* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.common.v1.GetGeometriesRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.common.v1.ActuatorStatus"; } protected: - explicit GetGeometriesRequest(::google::protobuf::Arena* arena); - GetGeometriesRequest(::google::protobuf::Arena* arena, const GetGeometriesRequest& from); + explicit ActuatorStatus(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kNameFieldNumber = 1, - kExtraFieldNumber = 99, + kIsMovingFieldNumber = 1, }; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + // bool is_moving = 1 [json_name = "isMoving"]; + void clear_is_moving(); + bool is_moving() const; + void set_is_moving(bool value); private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - + bool _internal_is_moving() const; + void _internal_set_is_moving(bool value); public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - public: - // @@protoc_insertion_point(class_scope:viam.common.v1.GetGeometriesRequest) + // @@protoc_insertion_point(class_scope:viam.common.v1.ActuatorStatus) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 2, 1, - 48, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + bool is_moving_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class DoCommandResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.DoCommandResponse) */ { +class ResponseMetadata final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.ResponseMetadata) */ { public: - inline DoCommandResponse() : DoCommandResponse(nullptr) {} - ~DoCommandResponse() override; - template - explicit PROTOBUF_CONSTEXPR DoCommandResponse(::google::protobuf::internal::ConstantInitialized); + inline ResponseMetadata() : ResponseMetadata(nullptr) {} + ~ResponseMetadata() override; + explicit PROTOBUF_CONSTEXPR ResponseMetadata(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline DoCommandResponse(const DoCommandResponse& from) - : DoCommandResponse(nullptr, from) {} - DoCommandResponse(DoCommandResponse&& from) noexcept - : DoCommandResponse() { + ResponseMetadata(const ResponseMetadata& from); + ResponseMetadata(ResponseMetadata&& from) noexcept + : ResponseMetadata() { *this = ::std::move(from); } - inline DoCommandResponse& operator=(const DoCommandResponse& from) { + inline ResponseMetadata& operator=(const ResponseMetadata& from) { CopyFrom(from); return *this; } - inline DoCommandResponse& operator=(DoCommandResponse&& from) noexcept { + inline ResponseMetadata& operator=(ResponseMetadata&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3581,164 +3050,136 @@ class DoCommandResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const DoCommandResponse& default_instance() { + static const ResponseMetadata& default_instance() { return *internal_default_instance(); } - static inline const DoCommandResponse* internal_default_instance() { - return reinterpret_cast( - &_DoCommandResponse_default_instance_); + static inline const ResponseMetadata* internal_default_instance() { + return reinterpret_cast( + &_ResponseMetadata_default_instance_); } static constexpr int kIndexInFileMessages = - 18; + 16; - friend void swap(DoCommandResponse& a, DoCommandResponse& b) { + friend void swap(ResponseMetadata& a, ResponseMetadata& b) { a.Swap(&b); } - inline void Swap(DoCommandResponse* other) { + inline void Swap(ResponseMetadata* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(DoCommandResponse* other) { + void UnsafeArenaSwap(ResponseMetadata* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - DoCommandResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const DoCommandResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const DoCommandResponse& from) { - DoCommandResponse::MergeImpl(*this, from); + ResponseMetadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ResponseMetadata& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ResponseMetadata& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(DoCommandResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(ResponseMetadata* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.common.v1.DoCommandResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.common.v1.ResponseMetadata"; } protected: - explicit DoCommandResponse(::google::protobuf::Arena* arena); - DoCommandResponse(::google::protobuf::Arena* arena, const DoCommandResponse& from); + explicit ResponseMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kResultFieldNumber = 1, + kCapturedAtFieldNumber = 1, }; - // .google.protobuf.Struct result = 1 [json_name = "result"]; - bool has_result() const; - void clear_result() ; - const ::google::protobuf::Struct& result() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_result(); - ::google::protobuf::Struct* mutable_result(); - void set_allocated_result(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_result(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_result(); - + // optional .google.protobuf.Timestamp captured_at = 1 [json_name = "capturedAt"]; + bool has_captured_at() const; private: - const ::google::protobuf::Struct& _internal_result() const; - ::google::protobuf::Struct* _internal_mutable_result(); - + bool _internal_has_captured_at() const; public: - // @@protoc_insertion_point(class_scope:viam.common.v1.DoCommandResponse) + void clear_captured_at(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& captured_at() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_captured_at(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_captured_at(); + void set_allocated_captured_at(::PROTOBUF_NAMESPACE_ID::Timestamp* captured_at); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_captured_at() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_captured_at(); + public: + void unsafe_arena_set_allocated_captured_at( + ::PROTOBUF_NAMESPACE_ID::Timestamp* captured_at); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_captured_at(); + + // @@protoc_insertion_point(class_scope:viam.common.v1.ResponseMetadata) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::Struct* result_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* captured_at_; friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class DoCommandRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.DoCommandRequest) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.DoCommandRequest) */ { public: inline DoCommandRequest() : DoCommandRequest(nullptr) {} ~DoCommandRequest() override; - template - explicit PROTOBUF_CONSTEXPR DoCommandRequest(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR DoCommandRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline DoCommandRequest(const DoCommandRequest& from) - : DoCommandRequest(nullptr, from) {} + DoCommandRequest(const DoCommandRequest& from); DoCommandRequest(DoCommandRequest&& from) noexcept : DoCommandRequest() { *this = ::std::move(from); @@ -3750,9 +3191,9 @@ class DoCommandRequest final : } inline DoCommandRequest& operator=(DoCommandRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3762,22 +3203,13 @@ class DoCommandRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const DoCommandRequest& default_instance() { @@ -3796,65 +3228,63 @@ class DoCommandRequest final : inline void Swap(DoCommandRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(DoCommandRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - DoCommandRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + DoCommandRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const DoCommandRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const DoCommandRequest& from) { - DoCommandRequest::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const DoCommandRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(DoCommandRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "viam.common.v1.DoCommandRequest"; } protected: - explicit DoCommandRequest(::google::protobuf::Arena* arena); - DoCommandRequest(::google::protobuf::Arena* arena, const DoCommandRequest& from); + explicit DoCommandRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -3865,93 +3295,73 @@ class DoCommandRequest final : kCommandFieldNumber = 2, }; // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); std::string* _internal_mutable_name(); - public: + // .google.protobuf.Struct command = 2 [json_name = "command"]; bool has_command() const; - void clear_command() ; - const ::google::protobuf::Struct& command() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_command(); - ::google::protobuf::Struct* mutable_command(); - void set_allocated_command(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_command(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_command(); - private: - const ::google::protobuf::Struct& _internal_command() const; - ::google::protobuf::Struct* _internal_mutable_command(); - + bool _internal_has_command() const; + public: + void clear_command(); + const ::PROTOBUF_NAMESPACE_ID::Struct& command() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_command(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_command(); + void set_allocated_command(::PROTOBUF_NAMESPACE_ID::Struct* command); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_command() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_command(); public: + void unsafe_arena_set_allocated_command( + ::PROTOBUF_NAMESPACE_ID::Struct* command); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_command(); + // @@protoc_insertion_point(class_scope:viam.common.v1.DoCommandRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 44, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* command_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::Struct* command_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetReadingsResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.GetReadingsResponse) */ { +class DoCommandResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.DoCommandResponse) */ { public: - inline GetReadingsResponse() : GetReadingsResponse(nullptr) {} - ~GetReadingsResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetReadingsResponse(::google::protobuf::internal::ConstantInitialized); + inline DoCommandResponse() : DoCommandResponse(nullptr) {} + ~DoCommandResponse() override; + explicit PROTOBUF_CONSTEXPR DoCommandResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetReadingsResponse(const GetReadingsResponse& from) - : GetReadingsResponse(nullptr, from) {} - GetReadingsResponse(GetReadingsResponse&& from) noexcept - : GetReadingsResponse() { + DoCommandResponse(const DoCommandResponse& from); + DoCommandResponse(DoCommandResponse&& from) noexcept + : DoCommandResponse() { *this = ::std::move(from); } - inline GetReadingsResponse& operator=(const GetReadingsResponse& from) { + inline DoCommandResponse& operator=(const DoCommandResponse& from) { CopyFrom(from); return *this; } - inline GetReadingsResponse& operator=(GetReadingsResponse&& from) noexcept { + inline DoCommandResponse& operator=(DoCommandResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3961,181 +3371,149 @@ class GetReadingsResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetReadingsResponse& default_instance() { + static const DoCommandResponse& default_instance() { return *internal_default_instance(); } - static inline const GetReadingsResponse* internal_default_instance() { - return reinterpret_cast( - &_GetReadingsResponse_default_instance_); + static inline const DoCommandResponse* internal_default_instance() { + return reinterpret_cast( + &_DoCommandResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 25; + 18; - friend void swap(GetReadingsResponse& a, GetReadingsResponse& b) { + friend void swap(DoCommandResponse& a, DoCommandResponse& b) { a.Swap(&b); } - inline void Swap(GetReadingsResponse* other) { + inline void Swap(DoCommandResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetReadingsResponse* other) { + void UnsafeArenaSwap(DoCommandResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetReadingsResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetReadingsResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetReadingsResponse& from) { - GetReadingsResponse::MergeImpl(*this, from); + DoCommandResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DoCommandResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const DoCommandResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetReadingsResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(DoCommandResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.common.v1.GetReadingsResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.common.v1.DoCommandResponse"; } protected: - explicit GetReadingsResponse(::google::protobuf::Arena* arena); - GetReadingsResponse(::google::protobuf::Arena* arena, const GetReadingsResponse& from); + explicit DoCommandResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- - // accessors ------------------------------------------------------- enum : int { - kReadingsFieldNumber = 1, + kResultFieldNumber = 1, }; - // map readings = 1 [json_name = "readings"]; - int readings_size() const; + // .google.protobuf.Struct result = 1 [json_name = "result"]; + bool has_result() const; private: - int _internal_readings_size() const; - + bool _internal_has_result() const; public: - void clear_readings() ; - const ::google::protobuf::Map& readings() const; - ::google::protobuf::Map* mutable_readings(); - + void clear_result(); + const ::PROTOBUF_NAMESPACE_ID::Struct& result() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_result(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_result(); + void set_allocated_result(::PROTOBUF_NAMESPACE_ID::Struct* result); private: - const ::google::protobuf::Map& _internal_readings() const; - ::google::protobuf::Map* _internal_mutable_readings(); - + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_result() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_result(); public: - // @@protoc_insertion_point(class_scope:viam.common.v1.GetReadingsResponse) + void unsafe_arena_set_allocated_result( + ::PROTOBUF_NAMESPACE_ID::Struct* result); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_result(); + + // @@protoc_insertion_point(class_scope:viam.common.v1.DoCommandResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 2, - 51, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::MapField - readings_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::Struct* result_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Geometry final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.Geometry) */ { +class GetKinematicsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.GetKinematicsRequest) */ { public: - inline Geometry() : Geometry(nullptr) {} - ~Geometry() override; - template - explicit PROTOBUF_CONSTEXPR Geometry(::google::protobuf::internal::ConstantInitialized); + inline GetKinematicsRequest() : GetKinematicsRequest(nullptr) {} + ~GetKinematicsRequest() override; + explicit PROTOBUF_CONSTEXPR GetKinematicsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Geometry(const Geometry& from) - : Geometry(nullptr, from) {} - Geometry(Geometry&& from) noexcept - : Geometry() { + GetKinematicsRequest(const GetKinematicsRequest& from); + GetKinematicsRequest(GetKinematicsRequest&& from) noexcept + : GetKinematicsRequest() { *this = ::std::move(from); } - inline Geometry& operator=(const Geometry& from) { + inline GetKinematicsRequest& operator=(const GetKinematicsRequest& from) { CopyFrom(from); return *this; } - inline Geometry& operator=(Geometry&& from) noexcept { + inline GetKinematicsRequest& operator=(GetKinematicsRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -4145,280 +3523,165 @@ class Geometry final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Geometry& default_instance() { + static const GetKinematicsRequest& default_instance() { return *internal_default_instance(); } - enum GeometryTypeCase { - kSphere = 2, - kBox = 3, - kCapsule = 5, - GEOMETRY_TYPE_NOT_SET = 0, - }; - - static inline const Geometry* internal_default_instance() { - return reinterpret_cast( - &_Geometry_default_instance_); + static inline const GetKinematicsRequest* internal_default_instance() { + return reinterpret_cast( + &_GetKinematicsRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 8; + 19; - friend void swap(Geometry& a, Geometry& b) { + friend void swap(GetKinematicsRequest& a, GetKinematicsRequest& b) { a.Swap(&b); } - inline void Swap(Geometry* other) { + inline void Swap(GetKinematicsRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Geometry* other) { + void UnsafeArenaSwap(GetKinematicsRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Geometry* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Geometry& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Geometry& from) { - Geometry::MergeImpl(*this, from); + GetKinematicsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetKinematicsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetKinematicsRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Geometry* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetKinematicsRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.common.v1.Geometry"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.common.v1.GetKinematicsRequest"; } protected: - explicit Geometry(::google::protobuf::Arena* arena); - Geometry(::google::protobuf::Arena* arena, const Geometry& from); + explicit GetKinematicsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kLabelFieldNumber = 4, - kCenterFieldNumber = 1, - kSphereFieldNumber = 2, - kBoxFieldNumber = 3, - kCapsuleFieldNumber = 5, + kNameFieldNumber = 1, + kExtraFieldNumber = 99, }; - // string label = 4 [json_name = "label"]; - void clear_label() ; - const std::string& label() const; - template - void set_label(Arg_&& arg, Args_... args); - std::string* mutable_label(); - PROTOBUF_NODISCARD std::string* release_label(); - void set_allocated_label(std::string* value); - - private: - const std::string& _internal_label() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_label( - const std::string& value); - std::string* _internal_mutable_label(); - - public: - // .viam.common.v1.Pose center = 1 [json_name = "center"]; - bool has_center() const; - void clear_center() ; - const ::viam::common::v1::Pose& center() const; - PROTOBUF_NODISCARD ::viam::common::v1::Pose* release_center(); - ::viam::common::v1::Pose* mutable_center(); - void set_allocated_center(::viam::common::v1::Pose* value); - void unsafe_arena_set_allocated_center(::viam::common::v1::Pose* value); - ::viam::common::v1::Pose* unsafe_arena_release_center(); - - private: - const ::viam::common::v1::Pose& _internal_center() const; - ::viam::common::v1::Pose* _internal_mutable_center(); - - public: - // .viam.common.v1.Sphere sphere = 2 [json_name = "sphere"]; - bool has_sphere() const; - private: - bool _internal_has_sphere() const; - - public: - void clear_sphere() ; - const ::viam::common::v1::Sphere& sphere() const; - PROTOBUF_NODISCARD ::viam::common::v1::Sphere* release_sphere(); - ::viam::common::v1::Sphere* mutable_sphere(); - void set_allocated_sphere(::viam::common::v1::Sphere* value); - void unsafe_arena_set_allocated_sphere(::viam::common::v1::Sphere* value); - ::viam::common::v1::Sphere* unsafe_arena_release_sphere(); - - private: - const ::viam::common::v1::Sphere& _internal_sphere() const; - ::viam::common::v1::Sphere* _internal_mutable_sphere(); - - public: - // .viam.common.v1.RectangularPrism box = 3 [json_name = "box"]; - bool has_box() const; - private: - bool _internal_has_box() const; - - public: - void clear_box() ; - const ::viam::common::v1::RectangularPrism& box() const; - PROTOBUF_NODISCARD ::viam::common::v1::RectangularPrism* release_box(); - ::viam::common::v1::RectangularPrism* mutable_box(); - void set_allocated_box(::viam::common::v1::RectangularPrism* value); - void unsafe_arena_set_allocated_box(::viam::common::v1::RectangularPrism* value); - ::viam::common::v1::RectangularPrism* unsafe_arena_release_box(); - - private: - const ::viam::common::v1::RectangularPrism& _internal_box() const; - ::viam::common::v1::RectangularPrism* _internal_mutable_box(); - - public: - // .viam.common.v1.Capsule capsule = 5 [json_name = "capsule"]; - bool has_capsule() const; - private: - bool _internal_has_capsule() const; - - public: - void clear_capsule() ; - const ::viam::common::v1::Capsule& capsule() const; - PROTOBUF_NODISCARD ::viam::common::v1::Capsule* release_capsule(); - ::viam::common::v1::Capsule* mutable_capsule(); - void set_allocated_capsule(::viam::common::v1::Capsule* value); - void unsafe_arena_set_allocated_capsule(::viam::common::v1::Capsule* value); - ::viam::common::v1::Capsule* unsafe_arena_release_capsule(); - + // 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 ::viam::common::v1::Capsule& _internal_capsule() const; - ::viam::common::v1::Capsule* _internal_mutable_capsule(); + 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_geometry_type(); - GeometryTypeCase geometry_type_case() const; - // @@protoc_insertion_point(class_scope:viam.common.v1.Geometry) + 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.GetKinematicsRequest) private: class _Internal; - void set_has_sphere(); - void set_has_box(); - void set_has_capsule(); - - inline bool has_geometry_type() const; - inline void clear_has_geometry_type(); - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 5, 4, - 37, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr label_; - ::viam::common::v1::Pose* center_; - union GeometryTypeUnion { - constexpr GeometryTypeUnion() : _constinit_{} {} - ::google::protobuf::internal::ConstantInitialized _constinit_; - ::viam::common::v1::Sphere* sphere_; - ::viam::common::v1::RectangularPrism* box_; - ::viam::common::v1::Capsule* capsule_; - } geometry_type_; - ::uint32_t _oneof_case_[1]; - - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + 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 Transform final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.Transform) */ { +class GetKinematicsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.GetKinematicsResponse) */ { public: - inline Transform() : Transform(nullptr) {} - ~Transform() override; - template - explicit PROTOBUF_CONSTEXPR Transform(::google::protobuf::internal::ConstantInitialized); + inline GetKinematicsResponse() : GetKinematicsResponse(nullptr) {} + ~GetKinematicsResponse() override; + explicit PROTOBUF_CONSTEXPR GetKinematicsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Transform(const Transform& from) - : Transform(nullptr, from) {} - Transform(Transform&& from) noexcept - : Transform() { + GetKinematicsResponse(const GetKinematicsResponse& from); + GetKinematicsResponse(GetKinematicsResponse&& from) noexcept + : GetKinematicsResponse() { *this = ::std::move(from); } - inline Transform& operator=(const Transform& from) { + inline GetKinematicsResponse& operator=(const GetKinematicsResponse& from) { CopyFrom(from); return *this; } - inline Transform& operator=(Transform&& from) noexcept { + inline GetKinematicsResponse& operator=(GetKinematicsResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -4428,213 +3691,156 @@ class Transform final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Transform& default_instance() { + static const GetKinematicsResponse& default_instance() { return *internal_default_instance(); } - static inline const Transform* internal_default_instance() { - return reinterpret_cast( - &_Transform_default_instance_); + static inline const GetKinematicsResponse* internal_default_instance() { + return reinterpret_cast( + &_GetKinematicsResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 13; + 20; - friend void swap(Transform& a, Transform& b) { + friend void swap(GetKinematicsResponse& a, GetKinematicsResponse& b) { a.Swap(&b); } - inline void Swap(Transform* other) { + inline void Swap(GetKinematicsResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Transform* other) { + void UnsafeArenaSwap(GetKinematicsResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Transform* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Transform& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Transform& from) { - Transform::MergeImpl(*this, from); + GetKinematicsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetKinematicsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetKinematicsResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Transform* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetKinematicsResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.common.v1.Transform"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.common.v1.GetKinematicsResponse"; } protected: - explicit Transform(::google::protobuf::Arena* arena); - Transform(::google::protobuf::Arena* arena, const Transform& from); + explicit GetKinematicsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kReferenceFrameFieldNumber = 1, - kPoseInObserverFrameFieldNumber = 2, - kPhysicalObjectFieldNumber = 3, + kKinematicsDataFieldNumber = 2, + kFormatFieldNumber = 1, }; - // string reference_frame = 1 [json_name = "referenceFrame"]; - void clear_reference_frame() ; - const std::string& reference_frame() const; - template - void set_reference_frame(Arg_&& arg, Args_... args); - std::string* mutable_reference_frame(); - PROTOBUF_NODISCARD std::string* release_reference_frame(); - void set_allocated_reference_frame(std::string* value); - + // bytes kinematics_data = 2 [json_name = "kinematicsData"]; + void clear_kinematics_data(); + const std::string& kinematics_data() const; + template + void set_kinematics_data(ArgT0&& arg0, ArgT... args); + std::string* mutable_kinematics_data(); + PROTOBUF_NODISCARD std::string* release_kinematics_data(); + void set_allocated_kinematics_data(std::string* kinematics_data); private: - const std::string& _internal_reference_frame() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_reference_frame( - const std::string& value); - std::string* _internal_mutable_reference_frame(); - + const std::string& _internal_kinematics_data() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_kinematics_data(const std::string& value); + std::string* _internal_mutable_kinematics_data(); public: - // .viam.common.v1.PoseInFrame pose_in_observer_frame = 2 [json_name = "poseInObserverFrame"]; - bool has_pose_in_observer_frame() const; - void clear_pose_in_observer_frame() ; - const ::viam::common::v1::PoseInFrame& pose_in_observer_frame() const; - PROTOBUF_NODISCARD ::viam::common::v1::PoseInFrame* release_pose_in_observer_frame(); - ::viam::common::v1::PoseInFrame* mutable_pose_in_observer_frame(); - void set_allocated_pose_in_observer_frame(::viam::common::v1::PoseInFrame* value); - void unsafe_arena_set_allocated_pose_in_observer_frame(::viam::common::v1::PoseInFrame* value); - ::viam::common::v1::PoseInFrame* unsafe_arena_release_pose_in_observer_frame(); + // .viam.common.v1.KinematicsFileFormat format = 1 [json_name = "format"]; + void clear_format(); + ::viam::common::v1::KinematicsFileFormat format() const; + void set_format(::viam::common::v1::KinematicsFileFormat value); private: - const ::viam::common::v1::PoseInFrame& _internal_pose_in_observer_frame() const; - ::viam::common::v1::PoseInFrame* _internal_mutable_pose_in_observer_frame(); - + ::viam::common::v1::KinematicsFileFormat _internal_format() const; + void _internal_set_format(::viam::common::v1::KinematicsFileFormat value); public: - // optional .viam.common.v1.Geometry physical_object = 3 [json_name = "physicalObject"]; - bool has_physical_object() const; - void clear_physical_object() ; - const ::viam::common::v1::Geometry& physical_object() const; - PROTOBUF_NODISCARD ::viam::common::v1::Geometry* release_physical_object(); - ::viam::common::v1::Geometry* mutable_physical_object(); - void set_allocated_physical_object(::viam::common::v1::Geometry* value); - void unsafe_arena_set_allocated_physical_object(::viam::common::v1::Geometry* value); - ::viam::common::v1::Geometry* unsafe_arena_release_physical_object(); - - private: - const ::viam::common::v1::Geometry& _internal_physical_object() const; - ::viam::common::v1::Geometry* _internal_mutable_physical_object(); - public: - // @@protoc_insertion_point(class_scope:viam.common.v1.Transform) + // @@protoc_insertion_point(class_scope:viam.common.v1.GetKinematicsResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 2, - 48, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr reference_frame_; - ::viam::common::v1::PoseInFrame* pose_in_observer_frame_; - ::viam::common::v1::Geometry* physical_object_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr kinematics_data_; + int format_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetGeometriesResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.GetGeometriesResponse) */ { +class GetGeometriesRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.GetGeometriesRequest) */ { public: - inline GetGeometriesResponse() : GetGeometriesResponse(nullptr) {} - ~GetGeometriesResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetGeometriesResponse(::google::protobuf::internal::ConstantInitialized); + inline GetGeometriesRequest() : GetGeometriesRequest(nullptr) {} + ~GetGeometriesRequest() override; + explicit PROTOBUF_CONSTEXPR GetGeometriesRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetGeometriesResponse(const GetGeometriesResponse& from) - : GetGeometriesResponse(nullptr, from) {} - GetGeometriesResponse(GetGeometriesResponse&& from) noexcept - : GetGeometriesResponse() { + GetGeometriesRequest(const GetGeometriesRequest& from); + GetGeometriesRequest(GetGeometriesRequest&& from) noexcept + : GetGeometriesRequest() { *this = ::std::move(from); } - inline GetGeometriesResponse& operator=(const GetGeometriesResponse& from) { + inline GetGeometriesRequest& operator=(const GetGeometriesRequest& from) { CopyFrom(from); return *this; } - inline GetGeometriesResponse& operator=(GetGeometriesResponse&& from) noexcept { + inline GetGeometriesRequest& operator=(GetGeometriesRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -4644,180 +3850,165 @@ class GetGeometriesResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetGeometriesResponse& default_instance() { + static const GetGeometriesRequest& default_instance() { return *internal_default_instance(); } - static inline const GetGeometriesResponse* internal_default_instance() { - return reinterpret_cast( - &_GetGeometriesResponse_default_instance_); + static inline const GetGeometriesRequest* internal_default_instance() { + return reinterpret_cast( + &_GetGeometriesRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 22; + 21; - friend void swap(GetGeometriesResponse& a, GetGeometriesResponse& b) { + friend void swap(GetGeometriesRequest& a, GetGeometriesRequest& b) { a.Swap(&b); } - inline void Swap(GetGeometriesResponse* other) { + inline void Swap(GetGeometriesRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetGeometriesResponse* other) { + void UnsafeArenaSwap(GetGeometriesRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetGeometriesResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetGeometriesResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetGeometriesResponse& from) { - GetGeometriesResponse::MergeImpl(*this, from); + GetGeometriesRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetGeometriesRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetGeometriesRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetGeometriesResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetGeometriesRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.common.v1.GetGeometriesResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.common.v1.GetGeometriesRequest"; } protected: - explicit GetGeometriesResponse(::google::protobuf::Arena* arena); - GetGeometriesResponse(::google::protobuf::Arena* arena, const GetGeometriesResponse& from); + explicit GetGeometriesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kGeometriesFieldNumber = 1, + kNameFieldNumber = 1, + kExtraFieldNumber = 99, }; - // repeated .viam.common.v1.Geometry geometries = 1 [json_name = "geometries"]; - int geometries_size() const; + // 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: - int _internal_geometries_size() const; + 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_geometries() ; - ::viam::common::v1::Geometry* mutable_geometries(int index); - ::google::protobuf::RepeatedPtrField< ::viam::common::v1::Geometry >* - mutable_geometries(); + 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 ::google::protobuf::RepeatedPtrField<::viam::common::v1::Geometry>& _internal_geometries() const; - ::google::protobuf::RepeatedPtrField<::viam::common::v1::Geometry>* _internal_mutable_geometries(); + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_extra() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_extra(); public: - const ::viam::common::v1::Geometry& geometries(int index) const; - ::viam::common::v1::Geometry* add_geometries(); - const ::google::protobuf::RepeatedPtrField< ::viam::common::v1::Geometry >& - geometries() const; - // @@protoc_insertion_point(class_scope:viam.common.v1.GetGeometriesResponse) + 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.GetGeometriesRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::common::v1::Geometry > geometries_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + 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 GeometriesInFrame final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.GeometriesInFrame) */ { +class GetGeometriesResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.GetGeometriesResponse) */ { public: - inline GeometriesInFrame() : GeometriesInFrame(nullptr) {} - ~GeometriesInFrame() override; - template - explicit PROTOBUF_CONSTEXPR GeometriesInFrame(::google::protobuf::internal::ConstantInitialized); + inline GetGeometriesResponse() : GetGeometriesResponse(nullptr) {} + ~GetGeometriesResponse() override; + explicit PROTOBUF_CONSTEXPR GetGeometriesResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GeometriesInFrame(const GeometriesInFrame& from) - : GeometriesInFrame(nullptr, from) {} - GeometriesInFrame(GeometriesInFrame&& from) noexcept - : GeometriesInFrame() { + GetGeometriesResponse(const GetGeometriesResponse& from); + GetGeometriesResponse(GetGeometriesResponse&& from) noexcept + : GetGeometriesResponse() { *this = ::std::move(from); } - inline GeometriesInFrame& operator=(const GeometriesInFrame& from) { + inline GetGeometriesResponse& operator=(const GetGeometriesResponse& from) { CopyFrom(from); return *this; } - inline GeometriesInFrame& operator=(GeometriesInFrame&& from) noexcept { + inline GetGeometriesResponse& operator=(GetGeometriesResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -4827,198 +4018,149 @@ class GeometriesInFrame final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GeometriesInFrame& default_instance() { + static const GetGeometriesResponse& default_instance() { return *internal_default_instance(); } - static inline const GeometriesInFrame* internal_default_instance() { - return reinterpret_cast( - &_GeometriesInFrame_default_instance_); + static inline const GetGeometriesResponse* internal_default_instance() { + return reinterpret_cast( + &_GetGeometriesResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 9; + 22; - friend void swap(GeometriesInFrame& a, GeometriesInFrame& b) { + friend void swap(GetGeometriesResponse& a, GetGeometriesResponse& b) { a.Swap(&b); } - inline void Swap(GeometriesInFrame* other) { + inline void Swap(GetGeometriesResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GeometriesInFrame* other) { + void UnsafeArenaSwap(GetGeometriesResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GeometriesInFrame* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GeometriesInFrame& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GeometriesInFrame& from) { - GeometriesInFrame::MergeImpl(*this, from); + GetGeometriesResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetGeometriesResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetGeometriesResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GeometriesInFrame* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetGeometriesResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.common.v1.GeometriesInFrame"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.common.v1.GetGeometriesResponse"; } protected: - explicit GeometriesInFrame(::google::protobuf::Arena* arena); - GeometriesInFrame(::google::protobuf::Arena* arena, const GeometriesInFrame& from); + explicit GetGeometriesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kGeometriesFieldNumber = 2, - kReferenceFrameFieldNumber = 1, + kGeometriesFieldNumber = 1, }; - // repeated .viam.common.v1.Geometry geometries = 2 [json_name = "geometries"]; + // repeated .viam.common.v1.Geometry geometries = 1 [json_name = "geometries"]; int geometries_size() const; private: int _internal_geometries_size() const; - public: - void clear_geometries() ; + void clear_geometries(); ::viam::common::v1::Geometry* mutable_geometries(int index); - ::google::protobuf::RepeatedPtrField< ::viam::common::v1::Geometry >* + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Geometry >* mutable_geometries(); private: - const ::google::protobuf::RepeatedPtrField<::viam::common::v1::Geometry>& _internal_geometries() const; - ::google::protobuf::RepeatedPtrField<::viam::common::v1::Geometry>* _internal_mutable_geometries(); + const ::viam::common::v1::Geometry& _internal_geometries(int index) const; + ::viam::common::v1::Geometry* _internal_add_geometries(); public: const ::viam::common::v1::Geometry& geometries(int index) const; ::viam::common::v1::Geometry* add_geometries(); - const ::google::protobuf::RepeatedPtrField< ::viam::common::v1::Geometry >& + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Geometry >& geometries() const; - // string reference_frame = 1 [json_name = "referenceFrame"]; - void clear_reference_frame() ; - const std::string& reference_frame() const; - template - void set_reference_frame(Arg_&& arg, Args_... args); - std::string* mutable_reference_frame(); - PROTOBUF_NODISCARD std::string* release_reference_frame(); - void set_allocated_reference_frame(std::string* value); - private: - const std::string& _internal_reference_frame() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_reference_frame( - const std::string& value); - std::string* _internal_mutable_reference_frame(); - - public: - // @@protoc_insertion_point(class_scope:viam.common.v1.GeometriesInFrame) + // @@protoc_insertion_point(class_scope:viam.common.v1.GetGeometriesResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 56, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::common::v1::Geometry > geometries_; - ::google::protobuf::internal::ArenaStringPtr reference_frame_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Geometry > geometries_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GeoGeometry final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.GeoGeometry) */ { +class GetReadingsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.GetReadingsRequest) */ { public: - inline GeoGeometry() : GeoGeometry(nullptr) {} - ~GeoGeometry() override; - template - explicit PROTOBUF_CONSTEXPR GeoGeometry(::google::protobuf::internal::ConstantInitialized); + inline GetReadingsRequest() : GetReadingsRequest(nullptr) {} + ~GetReadingsRequest() override; + explicit PROTOBUF_CONSTEXPR GetReadingsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GeoGeometry(const GeoGeometry& from) - : GeoGeometry(nullptr, from) {} - GeoGeometry(GeoGeometry&& from) noexcept - : GeoGeometry() { + GetReadingsRequest(const GetReadingsRequest& from); + GetReadingsRequest(GetReadingsRequest&& from) noexcept + : GetReadingsRequest() { *this = ::std::move(from); } - inline GeoGeometry& operator=(const GeoGeometry& from) { + inline GetReadingsRequest& operator=(const GetReadingsRequest& from) { CopyFrom(from); return *this; } - inline GeoGeometry& operator=(GeoGeometry&& from) noexcept { + inline GetReadingsRequest& operator=(GetReadingsRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -5028,198 +4170,191 @@ class GeoGeometry final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GeoGeometry& default_instance() { + static const GetReadingsRequest& default_instance() { return *internal_default_instance(); } - static inline const GeoGeometry* internal_default_instance() { - return reinterpret_cast( - &_GeoGeometry_default_instance_); + static inline const GetReadingsRequest* internal_default_instance() { + return reinterpret_cast( + &_GetReadingsRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 12; + 23; - friend void swap(GeoGeometry& a, GeoGeometry& b) { + friend void swap(GetReadingsRequest& a, GetReadingsRequest& b) { a.Swap(&b); } - inline void Swap(GeoGeometry* other) { + inline void Swap(GetReadingsRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GeoGeometry* other) { + void UnsafeArenaSwap(GetReadingsRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GeoGeometry* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GeoGeometry& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GeoGeometry& from) { - GeoGeometry::MergeImpl(*this, from); + 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(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GeoGeometry* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetReadingsRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.common.v1.GeoGeometry"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.common.v1.GetReadingsRequest"; } protected: - explicit GeoGeometry(::google::protobuf::Arena* arena); - GeoGeometry(::google::protobuf::Arena* arena, const GeoGeometry& from); + explicit GetReadingsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kGeometriesFieldNumber = 2, - kLocationFieldNumber = 1, + kNameFieldNumber = 1, + kExtraFieldNumber = 99, }; - // repeated .viam.common.v1.Geometry geometries = 2 [json_name = "geometries"]; - int geometries_size() const; + // 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: - int _internal_geometries_size() const; - + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); public: - void clear_geometries() ; - ::viam::common::v1::Geometry* mutable_geometries(int index); - ::google::protobuf::RepeatedPtrField< ::viam::common::v1::Geometry >* - mutable_geometries(); + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + bool has_extra() const; private: - const ::google::protobuf::RepeatedPtrField<::viam::common::v1::Geometry>& _internal_geometries() const; - ::google::protobuf::RepeatedPtrField<::viam::common::v1::Geometry>* _internal_mutable_geometries(); + bool _internal_has_extra() const; public: - const ::viam::common::v1::Geometry& geometries(int index) const; - ::viam::common::v1::Geometry* add_geometries(); - const ::google::protobuf::RepeatedPtrField< ::viam::common::v1::Geometry >& - geometries() const; - // .viam.common.v1.GeoPoint location = 1 [json_name = "location"]; - bool has_location() const; - void clear_location() ; - const ::viam::common::v1::GeoPoint& location() const; - PROTOBUF_NODISCARD ::viam::common::v1::GeoPoint* release_location(); - ::viam::common::v1::GeoPoint* mutable_location(); - void set_allocated_location(::viam::common::v1::GeoPoint* value); - void unsafe_arena_set_allocated_location(::viam::common::v1::GeoPoint* value); - ::viam::common::v1::GeoPoint* unsafe_arena_release_location(); - + 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 ::viam::common::v1::GeoPoint& _internal_location() const; - ::viam::common::v1::GeoPoint* _internal_mutable_location(); - + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_extra() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_extra(); public: - // @@protoc_insertion_point(class_scope:viam.common.v1.GeoGeometry) + 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; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 2, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::viam::common::v1::Geometry > geometries_; - ::viam::common::v1::GeoPoint* location_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + 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 WorldState final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.WorldState) */ { +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 WorldState() : WorldState(nullptr) {} - ~WorldState() override; - template - explicit PROTOBUF_CONSTEXPR WorldState(::google::protobuf::internal::ConstantInitialized); + inline GetReadingsResponse() : GetReadingsResponse(nullptr) {} + ~GetReadingsResponse() override; + explicit PROTOBUF_CONSTEXPR GetReadingsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline WorldState(const WorldState& from) - : WorldState(nullptr, from) {} - WorldState(WorldState&& from) noexcept - : WorldState() { + GetReadingsResponse(const GetReadingsResponse& from); + GetReadingsResponse(GetReadingsResponse&& from) noexcept + : GetReadingsResponse() { *this = ::std::move(from); } - inline WorldState& operator=(const WorldState& from) { + inline GetReadingsResponse& operator=(const GetReadingsResponse& from) { CopyFrom(from); return *this; } - inline WorldState& operator=(WorldState&& from) noexcept { + inline GetReadingsResponse& operator=(GetReadingsResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -5229,200 +4364,155 @@ class WorldState final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const WorldState& default_instance() { + static const GetReadingsResponse& default_instance() { return *internal_default_instance(); } - static inline const WorldState* internal_default_instance() { - return reinterpret_cast( - &_WorldState_default_instance_); + static inline const GetReadingsResponse* internal_default_instance() { + return reinterpret_cast( + &_GetReadingsResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 14; + 25; - friend void swap(WorldState& a, WorldState& b) { + friend void swap(GetReadingsResponse& a, GetReadingsResponse& b) { a.Swap(&b); } - inline void Swap(WorldState* other) { + inline void Swap(GetReadingsResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(WorldState* other) { + void UnsafeArenaSwap(GetReadingsResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - WorldState* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const WorldState& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const WorldState& from) { - WorldState::MergeImpl(*this, from); + 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(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(WorldState* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetReadingsResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.common.v1.WorldState"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.common.v1.GetReadingsResponse"; } protected: - explicit WorldState(::google::protobuf::Arena* arena); - WorldState(::google::protobuf::Arena* arena, const WorldState& from); + 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 ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- + // accessors ------------------------------------------------------- enum : int { - kObstaclesFieldNumber = 1, - kTransformsFieldNumber = 3, + kReadingsFieldNumber = 1, }; - // repeated .viam.common.v1.GeometriesInFrame obstacles = 1 [json_name = "obstacles"]; - int obstacles_size() const; + // map readings = 1 [json_name = "readings"]; + int readings_size() const; private: - int _internal_obstacles_size() const; - + int _internal_readings_size() const; public: - void clear_obstacles() ; - ::viam::common::v1::GeometriesInFrame* mutable_obstacles(int index); - ::google::protobuf::RepeatedPtrField< ::viam::common::v1::GeometriesInFrame >* - mutable_obstacles(); + void clear_readings(); private: - const ::google::protobuf::RepeatedPtrField<::viam::common::v1::GeometriesInFrame>& _internal_obstacles() const; - ::google::protobuf::RepeatedPtrField<::viam::common::v1::GeometriesInFrame>* _internal_mutable_obstacles(); + 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 ::viam::common::v1::GeometriesInFrame& obstacles(int index) const; - ::viam::common::v1::GeometriesInFrame* add_obstacles(); - const ::google::protobuf::RepeatedPtrField< ::viam::common::v1::GeometriesInFrame >& - obstacles() const; - // repeated .viam.common.v1.Transform transforms = 3 [json_name = "transforms"]; - int transforms_size() const; - private: - int _internal_transforms_size() const; + 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(); - public: - void clear_transforms() ; - ::viam::common::v1::Transform* mutable_transforms(int index); - ::google::protobuf::RepeatedPtrField< ::viam::common::v1::Transform >* - mutable_transforms(); - private: - const ::google::protobuf::RepeatedPtrField<::viam::common::v1::Transform>& _internal_transforms() const; - ::google::protobuf::RepeatedPtrField<::viam::common::v1::Transform>* _internal_mutable_transforms(); - public: - const ::viam::common::v1::Transform& transforms(int index) const; - ::viam::common::v1::Transform* add_transforms(); - const ::google::protobuf::RepeatedPtrField< ::viam::common::v1::Transform >& - transforms() const; - // @@protoc_insertion_point(class_scope:viam.common.v1.WorldState) + // @@protoc_insertion_point(class_scope:viam.common.v1.GetReadingsResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 2, 2, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::common::v1::GeometriesInFrame > obstacles_; - ::google::protobuf::RepeatedPtrField< ::viam::common::v1::Transform > transforms_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + 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; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class PointCloudObject final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.PointCloudObject) */ { +class LogEntry final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.LogEntry) */ { public: - inline PointCloudObject() : PointCloudObject(nullptr) {} - ~PointCloudObject() override; - template - explicit PROTOBUF_CONSTEXPR PointCloudObject(::google::protobuf::internal::ConstantInitialized); + inline LogEntry() : LogEntry(nullptr) {} + ~LogEntry() override; + explicit PROTOBUF_CONSTEXPR LogEntry(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline PointCloudObject(const PointCloudObject& from) - : PointCloudObject(nullptr, from) {} - PointCloudObject(PointCloudObject&& from) noexcept - : PointCloudObject() { + LogEntry(const LogEntry& from); + LogEntry(LogEntry&& from) noexcept + : LogEntry() { *this = ::std::move(from); } - inline PointCloudObject& operator=(const PointCloudObject& from) { + inline LogEntry& operator=(const LogEntry& from) { CopyFrom(from); return *this; } - inline PointCloudObject& operator=(PointCloudObject&& from) noexcept { + inline LogEntry& operator=(LogEntry&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -5432,555 +4522,582 @@ class PointCloudObject final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const PointCloudObject& default_instance() { + static const LogEntry& default_instance() { return *internal_default_instance(); } - static inline const PointCloudObject* internal_default_instance() { - return reinterpret_cast( - &_PointCloudObject_default_instance_); + static inline const LogEntry* internal_default_instance() { + return reinterpret_cast( + &_LogEntry_default_instance_); } static constexpr int kIndexInFileMessages = - 10; + 26; - friend void swap(PointCloudObject& a, PointCloudObject& b) { + friend void swap(LogEntry& a, LogEntry& b) { a.Swap(&b); } - inline void Swap(PointCloudObject* other) { + inline void Swap(LogEntry* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(PointCloudObject* other) { + void UnsafeArenaSwap(LogEntry* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - PointCloudObject* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const PointCloudObject& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const PointCloudObject& from) { - PointCloudObject::MergeImpl(*this, from); + LogEntry* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const LogEntry& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const LogEntry& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(PointCloudObject* other); + void SetCachedSize(int size) const final; + void InternalSwap(LogEntry* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.common.v1.PointCloudObject"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.common.v1.LogEntry"; } protected: - explicit PointCloudObject(::google::protobuf::Arena* arena); - PointCloudObject(::google::protobuf::Arena* arena, const PointCloudObject& from); + explicit LogEntry(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kPointCloudFieldNumber = 1, - kGeometriesFieldNumber = 2, + kFieldsFieldNumber = 8, + kHostFieldNumber = 1, + kLevelFieldNumber = 2, + kLoggerNameFieldNumber = 4, + kMessageFieldNumber = 5, + kStackFieldNumber = 7, + kTimeFieldNumber = 3, + kCallerFieldNumber = 6, }; - // bytes point_cloud = 1 [json_name = "pointCloud"]; - void clear_point_cloud() ; - const std::string& point_cloud() const; - template - void set_point_cloud(Arg_&& arg, Args_... args); - std::string* mutable_point_cloud(); - PROTOBUF_NODISCARD std::string* release_point_cloud(); - void set_allocated_point_cloud(std::string* value); + // repeated .google.protobuf.Struct fields = 8 [json_name = "fields"]; + int fields_size() const; + private: + int _internal_fields_size() const; + public: + void clear_fields(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_fields(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Struct >* + mutable_fields(); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_fields(int index) const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_add_fields(); + public: + const ::PROTOBUF_NAMESPACE_ID::Struct& fields(int index) const; + ::PROTOBUF_NAMESPACE_ID::Struct* add_fields(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Struct >& + fields() const; + + // string host = 1 [json_name = "host"]; + void clear_host(); + const std::string& host() const; + template + void set_host(ArgT0&& arg0, ArgT... args); + std::string* mutable_host(); + PROTOBUF_NODISCARD std::string* release_host(); + void set_allocated_host(std::string* host); + private: + const std::string& _internal_host() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_host(const std::string& value); + std::string* _internal_mutable_host(); + public: + + // string level = 2 [json_name = "level"]; + void clear_level(); + const std::string& level() const; + template + void set_level(ArgT0&& arg0, ArgT... args); + std::string* mutable_level(); + PROTOBUF_NODISCARD std::string* release_level(); + void set_allocated_level(std::string* level); + private: + const std::string& _internal_level() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_level(const std::string& value); + std::string* _internal_mutable_level(); + public: + + // string logger_name = 4 [json_name = "loggerName"]; + void clear_logger_name(); + const std::string& logger_name() const; + template + void set_logger_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_logger_name(); + PROTOBUF_NODISCARD std::string* release_logger_name(); + void set_allocated_logger_name(std::string* logger_name); + private: + const std::string& _internal_logger_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_logger_name(const std::string& value); + std::string* _internal_mutable_logger_name(); + public: + + // string message = 5 [json_name = "message"]; + void clear_message(); + const std::string& message() const; + template + void set_message(ArgT0&& arg0, ArgT... args); + std::string* mutable_message(); + PROTOBUF_NODISCARD std::string* release_message(); + void set_allocated_message(std::string* message); + private: + const std::string& _internal_message() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_message(const std::string& value); + std::string* _internal_mutable_message(); + public: + // string stack = 7 [json_name = "stack"]; + void clear_stack(); + const std::string& stack() const; + template + void set_stack(ArgT0&& arg0, ArgT... args); + std::string* mutable_stack(); + PROTOBUF_NODISCARD std::string* release_stack(); + void set_allocated_stack(std::string* stack); private: - const std::string& _internal_point_cloud() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_point_cloud( - const std::string& value); - std::string* _internal_mutable_point_cloud(); - + const std::string& _internal_stack() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_stack(const std::string& value); + std::string* _internal_mutable_stack(); public: - // .viam.common.v1.GeometriesInFrame geometries = 2 [json_name = "geometries"]; - bool has_geometries() const; - void clear_geometries() ; - const ::viam::common::v1::GeometriesInFrame& geometries() const; - PROTOBUF_NODISCARD ::viam::common::v1::GeometriesInFrame* release_geometries(); - ::viam::common::v1::GeometriesInFrame* mutable_geometries(); - void set_allocated_geometries(::viam::common::v1::GeometriesInFrame* value); - void unsafe_arena_set_allocated_geometries(::viam::common::v1::GeometriesInFrame* value); - ::viam::common::v1::GeometriesInFrame* unsafe_arena_release_geometries(); + // .google.protobuf.Timestamp time = 3 [json_name = "time"]; + bool has_time() const; private: - const ::viam::common::v1::GeometriesInFrame& _internal_geometries() const; - ::viam::common::v1::GeometriesInFrame* _internal_mutable_geometries(); + bool _internal_has_time() const; + public: + void clear_time(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& time() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_time(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_time(); + void set_allocated_time(::PROTOBUF_NAMESPACE_ID::Timestamp* time); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_time() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_time(); + public: + void unsafe_arena_set_allocated_time( + ::PROTOBUF_NAMESPACE_ID::Timestamp* time); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_time(); + // .google.protobuf.Struct caller = 6 [json_name = "caller"]; + bool has_caller() const; + private: + bool _internal_has_caller() const; public: - // @@protoc_insertion_point(class_scope:viam.common.v1.PointCloudObject) + void clear_caller(); + const ::PROTOBUF_NAMESPACE_ID::Struct& caller() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_caller(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_caller(); + void set_allocated_caller(::PROTOBUF_NAMESPACE_ID::Struct* caller); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_caller() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_caller(); + public: + void unsafe_arena_set_allocated_caller( + ::PROTOBUF_NAMESPACE_ID::Struct* caller); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_caller(); + + // @@protoc_insertion_point(class_scope:viam.common.v1.LogEntry) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr point_cloud_; - ::viam::common::v1::GeometriesInFrame* geometries_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Struct > fields_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr host_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr level_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr logger_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr stack_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* time_; + ::PROTOBUF_NAMESPACE_ID::Struct* caller_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; }; - // =================================================================== - - static const int kSafetyHeartbeatMonitoredFieldNumber = 84260; -extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MethodOptions, - ::google::protobuf::internal::PrimitiveTypeTraits< bool >, 8, false > +extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::MethodOptions, + ::PROTOBUF_NAMESPACE_ID::internal::PrimitiveTypeTraits< bool >, 8, false > safety_heartbeat_monitored; // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ -// ------------------------------------------------------------------- - // ResourceName // string namespace = 1 [json_name = "namespace"]; inline void ResourceName::clear_namespace_() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.namespace__.ClearToEmpty(); + namespace__.ClearToEmpty(); } -inline const std::string& ResourceName::namespace_() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ResourceName::namespace_() const { // @@protoc_insertion_point(field_get:viam.common.v1.ResourceName.namespace) return _internal_namespace_(); } -template -inline PROTOBUF_ALWAYS_INLINE void ResourceName::set_namespace_(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.namespace__.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ResourceName::set_namespace_(ArgT0&& arg0, ArgT... args) { + + namespace__.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.common.v1.ResourceName.namespace) } -inline std::string* ResourceName::mutable_namespace_() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ResourceName::mutable_namespace_() { std::string* _s = _internal_mutable_namespace_(); // @@protoc_insertion_point(field_mutable:viam.common.v1.ResourceName.namespace) return _s; } inline const std::string& ResourceName::_internal_namespace_() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.namespace__.Get(); + return namespace__.Get(); } inline void ResourceName::_internal_set_namespace_(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.namespace__.Set(value, GetArena()); + + namespace__.Set(value, GetArenaForAllocation()); } inline std::string* ResourceName::_internal_mutable_namespace_() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.namespace__.Mutable( GetArena()); + + return namespace__.Mutable(GetArenaForAllocation()); } inline std::string* ResourceName::release_namespace_() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.common.v1.ResourceName.namespace) - return _impl_.namespace__.Release(); -} -inline void ResourceName::set_allocated_namespace_(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.namespace__.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.namespace__.IsDefault()) { - _impl_.namespace__.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return namespace__.Release(); +} +inline void ResourceName::set_allocated_namespace_(std::string* namespace_) { + if (namespace_ != nullptr) { + + } else { + + } + namespace__.SetAllocated(namespace_, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (namespace__.IsDefault()) { + namespace__.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.common.v1.ResourceName.namespace) } // string type = 2 [json_name = "type"]; inline void ResourceName::clear_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_.ClearToEmpty(); + type_.ClearToEmpty(); } -inline const std::string& ResourceName::type() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ResourceName::type() const { // @@protoc_insertion_point(field_get:viam.common.v1.ResourceName.type) return _internal_type(); } -template -inline PROTOBUF_ALWAYS_INLINE void ResourceName::set_type(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.type_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ResourceName::set_type(ArgT0&& arg0, ArgT... args) { + + type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.common.v1.ResourceName.type) } -inline std::string* ResourceName::mutable_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ResourceName::mutable_type() { std::string* _s = _internal_mutable_type(); // @@protoc_insertion_point(field_mutable:viam.common.v1.ResourceName.type) return _s; } inline const std::string& ResourceName::_internal_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.type_.Get(); + return type_.Get(); } inline void ResourceName::_internal_set_type(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.type_.Set(value, GetArena()); + + type_.Set(value, GetArenaForAllocation()); } inline std::string* ResourceName::_internal_mutable_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.type_.Mutable( GetArena()); + + return type_.Mutable(GetArenaForAllocation()); } inline std::string* ResourceName::release_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.common.v1.ResourceName.type) - return _impl_.type_.Release(); -} -inline void ResourceName::set_allocated_type(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.type_.IsDefault()) { - _impl_.type_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return type_.Release(); +} +inline void ResourceName::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.common.v1.ResourceName.type) } // string subtype = 3 [json_name = "subtype"]; inline void ResourceName::clear_subtype() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.subtype_.ClearToEmpty(); + subtype_.ClearToEmpty(); } -inline const std::string& ResourceName::subtype() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ResourceName::subtype() const { // @@protoc_insertion_point(field_get:viam.common.v1.ResourceName.subtype) return _internal_subtype(); } -template -inline PROTOBUF_ALWAYS_INLINE void ResourceName::set_subtype(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.subtype_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ResourceName::set_subtype(ArgT0&& arg0, ArgT... args) { + + subtype_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.common.v1.ResourceName.subtype) } -inline std::string* ResourceName::mutable_subtype() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ResourceName::mutable_subtype() { std::string* _s = _internal_mutable_subtype(); // @@protoc_insertion_point(field_mutable:viam.common.v1.ResourceName.subtype) return _s; } inline const std::string& ResourceName::_internal_subtype() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.subtype_.Get(); + return subtype_.Get(); } inline void ResourceName::_internal_set_subtype(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.subtype_.Set(value, GetArena()); + + subtype_.Set(value, GetArenaForAllocation()); } inline std::string* ResourceName::_internal_mutable_subtype() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.subtype_.Mutable( GetArena()); + + return subtype_.Mutable(GetArenaForAllocation()); } inline std::string* ResourceName::release_subtype() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.common.v1.ResourceName.subtype) - return _impl_.subtype_.Release(); -} -inline void ResourceName::set_allocated_subtype(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.subtype_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.subtype_.IsDefault()) { - _impl_.subtype_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return subtype_.Release(); +} +inline void ResourceName::set_allocated_subtype(std::string* subtype) { + if (subtype != nullptr) { + + } else { + + } + subtype_.SetAllocated(subtype, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (subtype_.IsDefault()) { + subtype_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.common.v1.ResourceName.subtype) } // string name = 4 [json_name = "name"]; inline void ResourceName::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& ResourceName::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ResourceName::name() const { // @@protoc_insertion_point(field_get:viam.common.v1.ResourceName.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void ResourceName::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ResourceName::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.common.v1.ResourceName.name) } -inline std::string* ResourceName::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ResourceName::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.common.v1.ResourceName.name) return _s; } inline const std::string& ResourceName::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void ResourceName::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* ResourceName::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* ResourceName::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.common.v1.ResourceName.name) - return _impl_.name_.Release(); -} -inline void ResourceName::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void ResourceName::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.ResourceName.name) } // repeated string remote_path = 5 [json_name = "remotePath"]; inline int ResourceName::_internal_remote_path_size() const { - return _internal_remote_path().size(); + return remote_path_.size(); } inline int ResourceName::remote_path_size() const { return _internal_remote_path_size(); } inline void ResourceName::clear_remote_path() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.remote_path_.Clear(); + remote_path_.Clear(); } -inline std::string* ResourceName::add_remote_path() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_remote_path()->Add(); +inline std::string* ResourceName::add_remote_path() { + std::string* _s = _internal_add_remote_path(); // @@protoc_insertion_point(field_add_mutable:viam.common.v1.ResourceName.remote_path) return _s; } -inline const std::string& ResourceName::remote_path(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ResourceName::_internal_remote_path(int index) const { + return remote_path_.Get(index); +} +inline const std::string& ResourceName::remote_path(int index) const { // @@protoc_insertion_point(field_get:viam.common.v1.ResourceName.remote_path) - return _internal_remote_path().Get(index); + return _internal_remote_path(index); } -inline std::string* ResourceName::mutable_remote_path(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ResourceName::mutable_remote_path(int index) { // @@protoc_insertion_point(field_mutable:viam.common.v1.ResourceName.remote_path) - return _internal_mutable_remote_path()->Mutable(index); + return remote_path_.Mutable(index); } inline void ResourceName::set_remote_path(int index, const std::string& value) { - _internal_mutable_remote_path()->Mutable(index)->assign(value); + remote_path_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set:viam.common.v1.ResourceName.remote_path) } inline void ResourceName::set_remote_path(int index, std::string&& value) { - _internal_mutable_remote_path()->Mutable(index)->assign(std::move(value)); + remote_path_.Mutable(index)->assign(std::move(value)); // @@protoc_insertion_point(field_set:viam.common.v1.ResourceName.remote_path) } inline void ResourceName::set_remote_path(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_remote_path()->Mutable(index)->assign(value); + GOOGLE_DCHECK(value != nullptr); + remote_path_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:viam.common.v1.ResourceName.remote_path) } -inline void ResourceName::set_remote_path(int index, const char* value, - std::size_t size) { - _internal_mutable_remote_path()->Mutable(index)->assign( - reinterpret_cast(value), size); +inline void ResourceName::set_remote_path(int index, const char* value, size_t size) { + remote_path_.Mutable(index)->assign( + reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:viam.common.v1.ResourceName.remote_path) } -inline void ResourceName::set_remote_path(int index, absl::string_view value) { - _internal_mutable_remote_path()->Mutable(index)->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_set_string_piece:viam.common.v1.ResourceName.remote_path) +inline std::string* ResourceName::_internal_add_remote_path() { + return remote_path_.Add(); } inline void ResourceName::add_remote_path(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_remote_path()->Add()->assign(value); + remote_path_.Add()->assign(value); // @@protoc_insertion_point(field_add:viam.common.v1.ResourceName.remote_path) } inline void ResourceName::add_remote_path(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_remote_path()->Add(std::move(value)); + remote_path_.Add(std::move(value)); // @@protoc_insertion_point(field_add:viam.common.v1.ResourceName.remote_path) } inline void ResourceName::add_remote_path(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_remote_path()->Add()->assign(value); + GOOGLE_DCHECK(value != nullptr); + remote_path_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:viam.common.v1.ResourceName.remote_path) } -inline void ResourceName::add_remote_path(const char* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_remote_path()->Add()->assign( - reinterpret_cast(value), size); +inline void ResourceName::add_remote_path(const char* value, size_t size) { + remote_path_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:viam.common.v1.ResourceName.remote_path) } -inline void ResourceName::add_remote_path(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_remote_path()->Add()->assign(value.data(), value.size()); - // @@protoc_insertion_point(field_add_string_piece:viam.common.v1.ResourceName.remote_path) -} -inline const ::google::protobuf::RepeatedPtrField& -ResourceName::remote_path() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +ResourceName::remote_path() const { // @@protoc_insertion_point(field_list:viam.common.v1.ResourceName.remote_path) - return _internal_remote_path(); + return remote_path_; } -inline ::google::protobuf::RepeatedPtrField* -ResourceName::mutable_remote_path() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +ResourceName::mutable_remote_path() { // @@protoc_insertion_point(field_mutable_list:viam.common.v1.ResourceName.remote_path) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_remote_path(); -} -inline const ::google::protobuf::RepeatedPtrField& -ResourceName::_internal_remote_path() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.remote_path_; -} -inline ::google::protobuf::RepeatedPtrField* -ResourceName::_internal_mutable_remote_path() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.remote_path_; + return &remote_path_; } // string local_name = 6 [json_name = "localName"]; inline void ResourceName::clear_local_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.local_name_.ClearToEmpty(); + local_name_.ClearToEmpty(); } -inline const std::string& ResourceName::local_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ResourceName::local_name() const { // @@protoc_insertion_point(field_get:viam.common.v1.ResourceName.local_name) return _internal_local_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void ResourceName::set_local_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.local_name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ResourceName::set_local_name(ArgT0&& arg0, ArgT... args) { + + local_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.common.v1.ResourceName.local_name) } -inline std::string* ResourceName::mutable_local_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ResourceName::mutable_local_name() { std::string* _s = _internal_mutable_local_name(); // @@protoc_insertion_point(field_mutable:viam.common.v1.ResourceName.local_name) return _s; } inline const std::string& ResourceName::_internal_local_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.local_name_.Get(); + return local_name_.Get(); } inline void ResourceName::_internal_set_local_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.local_name_.Set(value, GetArena()); + + local_name_.Set(value, GetArenaForAllocation()); } inline std::string* ResourceName::_internal_mutable_local_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.local_name_.Mutable( GetArena()); + + return local_name_.Mutable(GetArenaForAllocation()); } inline std::string* ResourceName::release_local_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.common.v1.ResourceName.local_name) - return _impl_.local_name_.Release(); -} -inline void ResourceName::set_allocated_local_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.local_name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.local_name_.IsDefault()) { - _impl_.local_name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return local_name_.Release(); +} +inline void ResourceName::set_allocated_local_name(std::string* local_name) { + if (local_name != nullptr) { + + } else { + + } + local_name_.SetAllocated(local_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (local_name_.IsDefault()) { + local_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.common.v1.ResourceName.local_name) } @@ -5990,164 +5107,143 @@ inline void ResourceName::set_allocated_local_name(std::string* value) { // double x = 1 [json_name = "x"]; inline void Pose::clear_x() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.x_ = 0; + x_ = 0; +} +inline double Pose::_internal_x() const { + return x_; } inline double Pose::x() const { // @@protoc_insertion_point(field_get:viam.common.v1.Pose.x) return _internal_x(); } +inline void Pose::_internal_set_x(double value) { + + x_ = value; +} inline void Pose::set_x(double value) { _internal_set_x(value); // @@protoc_insertion_point(field_set:viam.common.v1.Pose.x) } -inline double Pose::_internal_x() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.x_; -} -inline void Pose::_internal_set_x(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.x_ = value; -} // double y = 2 [json_name = "y"]; inline void Pose::clear_y() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.y_ = 0; + y_ = 0; +} +inline double Pose::_internal_y() const { + return y_; } inline double Pose::y() const { // @@protoc_insertion_point(field_get:viam.common.v1.Pose.y) return _internal_y(); } +inline void Pose::_internal_set_y(double value) { + + y_ = value; +} inline void Pose::set_y(double value) { _internal_set_y(value); // @@protoc_insertion_point(field_set:viam.common.v1.Pose.y) } -inline double Pose::_internal_y() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.y_; -} -inline void Pose::_internal_set_y(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.y_ = value; -} // double z = 3 [json_name = "z"]; inline void Pose::clear_z() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.z_ = 0; + z_ = 0; +} +inline double Pose::_internal_z() const { + return z_; } inline double Pose::z() const { // @@protoc_insertion_point(field_get:viam.common.v1.Pose.z) return _internal_z(); } +inline void Pose::_internal_set_z(double value) { + + z_ = value; +} inline void Pose::set_z(double value) { _internal_set_z(value); // @@protoc_insertion_point(field_set:viam.common.v1.Pose.z) } -inline double Pose::_internal_z() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.z_; -} -inline void Pose::_internal_set_z(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.z_ = value; -} // double o_x = 4 [json_name = "oX"]; inline void Pose::clear_o_x() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.o_x_ = 0; + o_x_ = 0; +} +inline double Pose::_internal_o_x() const { + return o_x_; } inline double Pose::o_x() const { // @@protoc_insertion_point(field_get:viam.common.v1.Pose.o_x) return _internal_o_x(); } +inline void Pose::_internal_set_o_x(double value) { + + o_x_ = value; +} inline void Pose::set_o_x(double value) { _internal_set_o_x(value); // @@protoc_insertion_point(field_set:viam.common.v1.Pose.o_x) } -inline double Pose::_internal_o_x() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.o_x_; -} -inline void Pose::_internal_set_o_x(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.o_x_ = value; -} // double o_y = 5 [json_name = "oY"]; inline void Pose::clear_o_y() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.o_y_ = 0; + o_y_ = 0; +} +inline double Pose::_internal_o_y() const { + return o_y_; } inline double Pose::o_y() const { // @@protoc_insertion_point(field_get:viam.common.v1.Pose.o_y) return _internal_o_y(); } +inline void Pose::_internal_set_o_y(double value) { + + o_y_ = value; +} inline void Pose::set_o_y(double value) { _internal_set_o_y(value); // @@protoc_insertion_point(field_set:viam.common.v1.Pose.o_y) } -inline double Pose::_internal_o_y() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.o_y_; -} -inline void Pose::_internal_set_o_y(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.o_y_ = value; -} // double o_z = 6 [json_name = "oZ"]; inline void Pose::clear_o_z() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.o_z_ = 0; + o_z_ = 0; +} +inline double Pose::_internal_o_z() const { + return o_z_; } inline double Pose::o_z() const { // @@protoc_insertion_point(field_get:viam.common.v1.Pose.o_z) return _internal_o_z(); } +inline void Pose::_internal_set_o_z(double value) { + + o_z_ = value; +} inline void Pose::set_o_z(double value) { _internal_set_o_z(value); // @@protoc_insertion_point(field_set:viam.common.v1.Pose.o_z) } -inline double Pose::_internal_o_z() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.o_z_; -} -inline void Pose::_internal_set_o_z(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.o_z_ = value; -} // double theta = 7 [json_name = "theta"]; inline void Pose::clear_theta() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.theta_ = 0; + theta_ = 0; +} +inline double Pose::_internal_theta() const { + return theta_; } inline double Pose::theta() const { // @@protoc_insertion_point(field_get:viam.common.v1.Pose.theta) return _internal_theta(); } +inline void Pose::_internal_set_theta(double value) { + + theta_ = value; +} inline void Pose::set_theta(double value) { _internal_set_theta(value); // @@protoc_insertion_point(field_set:viam.common.v1.Pose.theta) } -inline double Pose::_internal_theta() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.theta_; -} -inline void Pose::_internal_set_theta(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.theta_ = value; -} // ------------------------------------------------------------------- @@ -6155,95 +5251,83 @@ inline void Pose::_internal_set_theta(double value) { // double o_x = 1 [json_name = "oX"]; inline void Orientation::clear_o_x() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.o_x_ = 0; + o_x_ = 0; +} +inline double Orientation::_internal_o_x() const { + return o_x_; } inline double Orientation::o_x() const { // @@protoc_insertion_point(field_get:viam.common.v1.Orientation.o_x) return _internal_o_x(); } +inline void Orientation::_internal_set_o_x(double value) { + + o_x_ = value; +} inline void Orientation::set_o_x(double value) { _internal_set_o_x(value); // @@protoc_insertion_point(field_set:viam.common.v1.Orientation.o_x) } -inline double Orientation::_internal_o_x() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.o_x_; -} -inline void Orientation::_internal_set_o_x(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.o_x_ = value; -} // double o_y = 2 [json_name = "oY"]; inline void Orientation::clear_o_y() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.o_y_ = 0; + o_y_ = 0; +} +inline double Orientation::_internal_o_y() const { + return o_y_; } inline double Orientation::o_y() const { // @@protoc_insertion_point(field_get:viam.common.v1.Orientation.o_y) return _internal_o_y(); } +inline void Orientation::_internal_set_o_y(double value) { + + o_y_ = value; +} inline void Orientation::set_o_y(double value) { _internal_set_o_y(value); // @@protoc_insertion_point(field_set:viam.common.v1.Orientation.o_y) } -inline double Orientation::_internal_o_y() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.o_y_; -} -inline void Orientation::_internal_set_o_y(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.o_y_ = value; -} // double o_z = 3 [json_name = "oZ"]; inline void Orientation::clear_o_z() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.o_z_ = 0; + o_z_ = 0; +} +inline double Orientation::_internal_o_z() const { + return o_z_; } inline double Orientation::o_z() const { // @@protoc_insertion_point(field_get:viam.common.v1.Orientation.o_z) return _internal_o_z(); } +inline void Orientation::_internal_set_o_z(double value) { + + o_z_ = value; +} inline void Orientation::set_o_z(double value) { _internal_set_o_z(value); // @@protoc_insertion_point(field_set:viam.common.v1.Orientation.o_z) } -inline double Orientation::_internal_o_z() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.o_z_; -} -inline void Orientation::_internal_set_o_z(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.o_z_ = value; -} // double theta = 4 [json_name = "theta"]; inline void Orientation::clear_theta() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.theta_ = 0; + theta_ = 0; +} +inline double Orientation::_internal_theta() const { + return theta_; } inline double Orientation::theta() const { // @@protoc_insertion_point(field_get:viam.common.v1.Orientation.theta) return _internal_theta(); } +inline void Orientation::_internal_set_theta(double value) { + + theta_ = value; +} inline void Orientation::set_theta(double value) { _internal_set_theta(value); // @@protoc_insertion_point(field_set:viam.common.v1.Orientation.theta) } -inline double Orientation::_internal_theta() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.theta_; -} -inline void Orientation::_internal_set_theta(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.theta_ = value; -} // ------------------------------------------------------------------- @@ -6251,150 +5335,141 @@ inline void Orientation::_internal_set_theta(double value) { // string reference_frame = 1 [json_name = "referenceFrame"]; inline void PoseInFrame::clear_reference_frame() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.reference_frame_.ClearToEmpty(); + reference_frame_.ClearToEmpty(); } -inline const std::string& PoseInFrame::reference_frame() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& PoseInFrame::reference_frame() const { // @@protoc_insertion_point(field_get:viam.common.v1.PoseInFrame.reference_frame) return _internal_reference_frame(); } -template -inline PROTOBUF_ALWAYS_INLINE void PoseInFrame::set_reference_frame(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.reference_frame_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void PoseInFrame::set_reference_frame(ArgT0&& arg0, ArgT... args) { + + reference_frame_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.common.v1.PoseInFrame.reference_frame) } -inline std::string* PoseInFrame::mutable_reference_frame() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* PoseInFrame::mutable_reference_frame() { std::string* _s = _internal_mutable_reference_frame(); // @@protoc_insertion_point(field_mutable:viam.common.v1.PoseInFrame.reference_frame) return _s; } inline const std::string& PoseInFrame::_internal_reference_frame() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.reference_frame_.Get(); + return reference_frame_.Get(); } inline void PoseInFrame::_internal_set_reference_frame(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.reference_frame_.Set(value, GetArena()); + + reference_frame_.Set(value, GetArenaForAllocation()); } inline std::string* PoseInFrame::_internal_mutable_reference_frame() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.reference_frame_.Mutable( GetArena()); + + return reference_frame_.Mutable(GetArenaForAllocation()); } inline std::string* PoseInFrame::release_reference_frame() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.common.v1.PoseInFrame.reference_frame) - return _impl_.reference_frame_.Release(); -} -inline void PoseInFrame::set_allocated_reference_frame(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.reference_frame_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.reference_frame_.IsDefault()) { - _impl_.reference_frame_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return reference_frame_.Release(); +} +inline void PoseInFrame::set_allocated_reference_frame(std::string* reference_frame) { + if (reference_frame != nullptr) { + + } else { + + } + reference_frame_.SetAllocated(reference_frame, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (reference_frame_.IsDefault()) { + reference_frame_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.common.v1.PoseInFrame.reference_frame) } // .viam.common.v1.Pose pose = 2 [json_name = "pose"]; +inline bool PoseInFrame::_internal_has_pose() const { + return this != internal_default_instance() && pose_ != nullptr; +} inline bool PoseInFrame::has_pose() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.pose_ != nullptr); - return value; + return _internal_has_pose(); } inline void PoseInFrame::clear_pose() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.pose_ != nullptr) _impl_.pose_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && pose_ != nullptr) { + delete pose_; + } + pose_ = nullptr; } inline const ::viam::common::v1::Pose& PoseInFrame::_internal_pose() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::common::v1::Pose* p = _impl_.pose_; - return p != nullptr ? *p : reinterpret_cast(::viam::common::v1::_Pose_default_instance_); + const ::viam::common::v1::Pose* p = pose_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_Pose_default_instance_); } -inline const ::viam::common::v1::Pose& PoseInFrame::pose() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::Pose& PoseInFrame::pose() const { // @@protoc_insertion_point(field_get:viam.common.v1.PoseInFrame.pose) return _internal_pose(); } -inline void PoseInFrame::unsafe_arena_set_allocated_pose(::viam::common::v1::Pose* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.pose_); +inline void PoseInFrame::unsafe_arena_set_allocated_pose( + ::viam::common::v1::Pose* pose) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(pose_); } - _impl_.pose_ = reinterpret_cast<::viam::common::v1::Pose*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + pose_ = pose; + if (pose) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.common.v1.PoseInFrame.pose) } inline ::viam::common::v1::Pose* PoseInFrame::release_pose() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::Pose* released = _impl_.pose_; - _impl_.pose_ = nullptr; + + ::viam::common::v1::Pose* temp = pose_; + pose_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::common::v1::Pose* PoseInFrame::unsafe_arena_release_pose() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.common.v1.PoseInFrame.pose) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::Pose* temp = _impl_.pose_; - _impl_.pose_ = nullptr; + + ::viam::common::v1::Pose* temp = pose_; + pose_ = nullptr; return temp; } inline ::viam::common::v1::Pose* PoseInFrame::_internal_mutable_pose() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.pose_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::Pose>(GetArena()); - _impl_.pose_ = reinterpret_cast<::viam::common::v1::Pose*>(p); + + if (pose_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::Pose>(GetArenaForAllocation()); + pose_ = p; } - return _impl_.pose_; + return pose_; } -inline ::viam::common::v1::Pose* PoseInFrame::mutable_pose() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::Pose* PoseInFrame::mutable_pose() { ::viam::common::v1::Pose* _msg = _internal_mutable_pose(); // @@protoc_insertion_point(field_mutable:viam.common.v1.PoseInFrame.pose) return _msg; } -inline void PoseInFrame::set_allocated_pose(::viam::common::v1::Pose* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void PoseInFrame::set_allocated_pose(::viam::common::v1::Pose* pose) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::common::v1::Pose*>(_impl_.pose_); + delete pose_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::common::v1::Pose*>(value)->GetArena(); + if (pose) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(pose); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + pose = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, pose, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.pose_ = reinterpret_cast<::viam::common::v1::Pose*>(value); + pose_ = pose; // @@protoc_insertion_point(field_set_allocated:viam.common.v1.PoseInFrame.pose) } @@ -6404,72 +5479,63 @@ inline void PoseInFrame::set_allocated_pose(::viam::common::v1::Pose* value) { // double x = 1 [json_name = "x"]; inline void Vector3::clear_x() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.x_ = 0; + x_ = 0; +} +inline double Vector3::_internal_x() const { + return x_; } inline double Vector3::x() const { // @@protoc_insertion_point(field_get:viam.common.v1.Vector3.x) return _internal_x(); } +inline void Vector3::_internal_set_x(double value) { + + x_ = value; +} inline void Vector3::set_x(double value) { _internal_set_x(value); // @@protoc_insertion_point(field_set:viam.common.v1.Vector3.x) } -inline double Vector3::_internal_x() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.x_; -} -inline void Vector3::_internal_set_x(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.x_ = value; -} // double y = 2 [json_name = "y"]; inline void Vector3::clear_y() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.y_ = 0; + y_ = 0; +} +inline double Vector3::_internal_y() const { + return y_; } inline double Vector3::y() const { // @@protoc_insertion_point(field_get:viam.common.v1.Vector3.y) return _internal_y(); } +inline void Vector3::_internal_set_y(double value) { + + y_ = value; +} inline void Vector3::set_y(double value) { _internal_set_y(value); // @@protoc_insertion_point(field_set:viam.common.v1.Vector3.y) } -inline double Vector3::_internal_y() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.y_; -} -inline void Vector3::_internal_set_y(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.y_ = value; -} // double z = 3 [json_name = "z"]; inline void Vector3::clear_z() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.z_ = 0; + z_ = 0; +} +inline double Vector3::_internal_z() const { + return z_; } inline double Vector3::z() const { // @@protoc_insertion_point(field_get:viam.common.v1.Vector3.z) return _internal_z(); } +inline void Vector3::_internal_set_z(double value) { + + z_ = value; +} inline void Vector3::set_z(double value) { _internal_set_z(value); // @@protoc_insertion_point(field_set:viam.common.v1.Vector3.z) } -inline double Vector3::_internal_z() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.z_; -} -inline void Vector3::_internal_set_z(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.z_ = value; -} // ------------------------------------------------------------------- @@ -6477,26 +5543,23 @@ inline void Vector3::_internal_set_z(double value) { // double radius_mm = 1 [json_name = "radiusMm"]; inline void Sphere::clear_radius_mm() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.radius_mm_ = 0; + radius_mm_ = 0; +} +inline double Sphere::_internal_radius_mm() const { + return radius_mm_; } inline double Sphere::radius_mm() const { // @@protoc_insertion_point(field_get:viam.common.v1.Sphere.radius_mm) return _internal_radius_mm(); } +inline void Sphere::_internal_set_radius_mm(double value) { + + radius_mm_ = value; +} inline void Sphere::set_radius_mm(double value) { _internal_set_radius_mm(value); // @@protoc_insertion_point(field_set:viam.common.v1.Sphere.radius_mm) } -inline double Sphere::_internal_radius_mm() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.radius_mm_; -} -inline void Sphere::_internal_set_radius_mm(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.radius_mm_ = value; -} // ------------------------------------------------------------------- @@ -6504,147 +5567,135 @@ inline void Sphere::_internal_set_radius_mm(double value) { // double radius_mm = 1 [json_name = "radiusMm"]; inline void Capsule::clear_radius_mm() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.radius_mm_ = 0; + radius_mm_ = 0; +} +inline double Capsule::_internal_radius_mm() const { + return radius_mm_; } inline double Capsule::radius_mm() const { // @@protoc_insertion_point(field_get:viam.common.v1.Capsule.radius_mm) return _internal_radius_mm(); } +inline void Capsule::_internal_set_radius_mm(double value) { + + radius_mm_ = value; +} inline void Capsule::set_radius_mm(double value) { _internal_set_radius_mm(value); // @@protoc_insertion_point(field_set:viam.common.v1.Capsule.radius_mm) } -inline double Capsule::_internal_radius_mm() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.radius_mm_; -} -inline void Capsule::_internal_set_radius_mm(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.radius_mm_ = value; -} // double length_mm = 2 [json_name = "lengthMm"]; inline void Capsule::clear_length_mm() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.length_mm_ = 0; + length_mm_ = 0; +} +inline double Capsule::_internal_length_mm() const { + return length_mm_; } inline double Capsule::length_mm() const { // @@protoc_insertion_point(field_get:viam.common.v1.Capsule.length_mm) return _internal_length_mm(); } +inline void Capsule::_internal_set_length_mm(double value) { + + length_mm_ = value; +} inline void Capsule::set_length_mm(double value) { _internal_set_length_mm(value); // @@protoc_insertion_point(field_set:viam.common.v1.Capsule.length_mm) } -inline double Capsule::_internal_length_mm() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.length_mm_; -} -inline void Capsule::_internal_set_length_mm(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.length_mm_ = value; -} // ------------------------------------------------------------------- // RectangularPrism // .viam.common.v1.Vector3 dims_mm = 1 [json_name = "dimsMm"]; +inline bool RectangularPrism::_internal_has_dims_mm() const { + return this != internal_default_instance() && dims_mm_ != nullptr; +} inline bool RectangularPrism::has_dims_mm() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.dims_mm_ != nullptr); - return value; + return _internal_has_dims_mm(); } inline void RectangularPrism::clear_dims_mm() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.dims_mm_ != nullptr) _impl_.dims_mm_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && dims_mm_ != nullptr) { + delete dims_mm_; + } + dims_mm_ = nullptr; } inline const ::viam::common::v1::Vector3& RectangularPrism::_internal_dims_mm() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::common::v1::Vector3* p = _impl_.dims_mm_; - return p != nullptr ? *p : reinterpret_cast(::viam::common::v1::_Vector3_default_instance_); + const ::viam::common::v1::Vector3* p = dims_mm_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_Vector3_default_instance_); } -inline const ::viam::common::v1::Vector3& RectangularPrism::dims_mm() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::Vector3& RectangularPrism::dims_mm() const { // @@protoc_insertion_point(field_get:viam.common.v1.RectangularPrism.dims_mm) return _internal_dims_mm(); } -inline void RectangularPrism::unsafe_arena_set_allocated_dims_mm(::viam::common::v1::Vector3* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.dims_mm_); +inline void RectangularPrism::unsafe_arena_set_allocated_dims_mm( + ::viam::common::v1::Vector3* dims_mm) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(dims_mm_); } - _impl_.dims_mm_ = reinterpret_cast<::viam::common::v1::Vector3*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + dims_mm_ = dims_mm; + if (dims_mm) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.common.v1.RectangularPrism.dims_mm) } inline ::viam::common::v1::Vector3* RectangularPrism::release_dims_mm() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::Vector3* released = _impl_.dims_mm_; - _impl_.dims_mm_ = nullptr; + + ::viam::common::v1::Vector3* temp = dims_mm_; + dims_mm_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::common::v1::Vector3* RectangularPrism::unsafe_arena_release_dims_mm() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.common.v1.RectangularPrism.dims_mm) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::Vector3* temp = _impl_.dims_mm_; - _impl_.dims_mm_ = nullptr; + + ::viam::common::v1::Vector3* temp = dims_mm_; + dims_mm_ = nullptr; return temp; } inline ::viam::common::v1::Vector3* RectangularPrism::_internal_mutable_dims_mm() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.dims_mm_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::Vector3>(GetArena()); - _impl_.dims_mm_ = reinterpret_cast<::viam::common::v1::Vector3*>(p); + + if (dims_mm_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::Vector3>(GetArenaForAllocation()); + dims_mm_ = p; } - return _impl_.dims_mm_; + return dims_mm_; } -inline ::viam::common::v1::Vector3* RectangularPrism::mutable_dims_mm() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::Vector3* RectangularPrism::mutable_dims_mm() { ::viam::common::v1::Vector3* _msg = _internal_mutable_dims_mm(); // @@protoc_insertion_point(field_mutable:viam.common.v1.RectangularPrism.dims_mm) return _msg; } -inline void RectangularPrism::set_allocated_dims_mm(::viam::common::v1::Vector3* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void RectangularPrism::set_allocated_dims_mm(::viam::common::v1::Vector3* dims_mm) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::common::v1::Vector3*>(_impl_.dims_mm_); + delete dims_mm_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::common::v1::Vector3*>(value)->GetArena(); + if (dims_mm) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(dims_mm); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + dims_mm = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, dims_mm, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.dims_mm_ = reinterpret_cast<::viam::common::v1::Vector3*>(value); + dims_mm_ = dims_mm; // @@protoc_insertion_point(field_set_allocated:viam.common.v1.RectangularPrism.dims_mm) } @@ -6653,324 +5704,312 @@ inline void RectangularPrism::set_allocated_dims_mm(::viam::common::v1::Vector3* // Geometry // .viam.common.v1.Pose center = 1 [json_name = "center"]; +inline bool Geometry::_internal_has_center() const { + return this != internal_default_instance() && center_ != nullptr; +} inline bool Geometry::has_center() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.center_ != nullptr); - return value; + return _internal_has_center(); } inline void Geometry::clear_center() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.center_ != nullptr) _impl_.center_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && center_ != nullptr) { + delete center_; + } + center_ = nullptr; } inline const ::viam::common::v1::Pose& Geometry::_internal_center() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::common::v1::Pose* p = _impl_.center_; - return p != nullptr ? *p : reinterpret_cast(::viam::common::v1::_Pose_default_instance_); + const ::viam::common::v1::Pose* p = center_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_Pose_default_instance_); } -inline const ::viam::common::v1::Pose& Geometry::center() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::Pose& Geometry::center() const { // @@protoc_insertion_point(field_get:viam.common.v1.Geometry.center) return _internal_center(); } -inline void Geometry::unsafe_arena_set_allocated_center(::viam::common::v1::Pose* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.center_); +inline void Geometry::unsafe_arena_set_allocated_center( + ::viam::common::v1::Pose* center) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(center_); } - _impl_.center_ = reinterpret_cast<::viam::common::v1::Pose*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + center_ = center; + if (center) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.common.v1.Geometry.center) } inline ::viam::common::v1::Pose* Geometry::release_center() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::Pose* released = _impl_.center_; - _impl_.center_ = nullptr; + + ::viam::common::v1::Pose* temp = center_; + center_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::common::v1::Pose* Geometry::unsafe_arena_release_center() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.common.v1.Geometry.center) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::Pose* temp = _impl_.center_; - _impl_.center_ = nullptr; + + ::viam::common::v1::Pose* temp = center_; + center_ = nullptr; return temp; } inline ::viam::common::v1::Pose* Geometry::_internal_mutable_center() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.center_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::Pose>(GetArena()); - _impl_.center_ = reinterpret_cast<::viam::common::v1::Pose*>(p); + + if (center_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::Pose>(GetArenaForAllocation()); + center_ = p; } - return _impl_.center_; + return center_; } -inline ::viam::common::v1::Pose* Geometry::mutable_center() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::Pose* Geometry::mutable_center() { ::viam::common::v1::Pose* _msg = _internal_mutable_center(); // @@protoc_insertion_point(field_mutable:viam.common.v1.Geometry.center) return _msg; } -inline void Geometry::set_allocated_center(::viam::common::v1::Pose* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Geometry::set_allocated_center(::viam::common::v1::Pose* center) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::common::v1::Pose*>(_impl_.center_); + delete center_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::common::v1::Pose*>(value)->GetArena(); + if (center) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(center); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + center = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, center, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.center_ = reinterpret_cast<::viam::common::v1::Pose*>(value); + center_ = center; // @@protoc_insertion_point(field_set_allocated:viam.common.v1.Geometry.center) } // .viam.common.v1.Sphere sphere = 2 [json_name = "sphere"]; -inline bool Geometry::has_sphere() const { - return geometry_type_case() == kSphere; -} inline bool Geometry::_internal_has_sphere() const { return geometry_type_case() == kSphere; } +inline bool Geometry::has_sphere() const { + return _internal_has_sphere(); +} inline void Geometry::set_has_sphere() { - _impl_._oneof_case_[0] = kSphere; + _oneof_case_[0] = kSphere; } inline void Geometry::clear_sphere() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (geometry_type_case() == kSphere) { - if (GetArena() == nullptr) { - delete _impl_.geometry_type_.sphere_; + if (_internal_has_sphere()) { + if (GetArenaForAllocation() == nullptr) { + delete geometry_type_.sphere_; } clear_has_geometry_type(); } } inline ::viam::common::v1::Sphere* Geometry::release_sphere() { // @@protoc_insertion_point(field_release:viam.common.v1.Geometry.sphere) - if (geometry_type_case() == kSphere) { + if (_internal_has_sphere()) { clear_has_geometry_type(); - auto* temp = _impl_.geometry_type_.sphere_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::viam::common::v1::Sphere* temp = geometry_type_.sphere_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.geometry_type_.sphere_ = nullptr; + geometry_type_.sphere_ = nullptr; return temp; } else { return nullptr; } } inline const ::viam::common::v1::Sphere& Geometry::_internal_sphere() const { - return geometry_type_case() == kSphere ? *_impl_.geometry_type_.sphere_ : reinterpret_cast<::viam::common::v1::Sphere&>(::viam::common::v1::_Sphere_default_instance_); + return _internal_has_sphere() + ? *geometry_type_.sphere_ + : reinterpret_cast< ::viam::common::v1::Sphere&>(::viam::common::v1::_Sphere_default_instance_); } -inline const ::viam::common::v1::Sphere& Geometry::sphere() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::Sphere& Geometry::sphere() const { // @@protoc_insertion_point(field_get:viam.common.v1.Geometry.sphere) return _internal_sphere(); } inline ::viam::common::v1::Sphere* Geometry::unsafe_arena_release_sphere() { // @@protoc_insertion_point(field_unsafe_arena_release:viam.common.v1.Geometry.sphere) - if (geometry_type_case() == kSphere) { + if (_internal_has_sphere()) { clear_has_geometry_type(); - auto* temp = _impl_.geometry_type_.sphere_; - _impl_.geometry_type_.sphere_ = nullptr; + ::viam::common::v1::Sphere* temp = geometry_type_.sphere_; + geometry_type_.sphere_ = nullptr; return temp; } else { return nullptr; } } -inline void Geometry::unsafe_arena_set_allocated_sphere(::viam::common::v1::Sphere* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void Geometry::unsafe_arena_set_allocated_sphere(::viam::common::v1::Sphere* sphere) { clear_geometry_type(); - if (value) { + if (sphere) { set_has_sphere(); - _impl_.geometry_type_.sphere_ = value; + geometry_type_.sphere_ = sphere; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.common.v1.Geometry.sphere) } inline ::viam::common::v1::Sphere* Geometry::_internal_mutable_sphere() { - if (geometry_type_case() != kSphere) { + if (!_internal_has_sphere()) { clear_geometry_type(); set_has_sphere(); - _impl_.geometry_type_.sphere_ = CreateMaybeMessage<::viam::common::v1::Sphere>(GetArena()); + geometry_type_.sphere_ = CreateMaybeMessage< ::viam::common::v1::Sphere >(GetArenaForAllocation()); } - return _impl_.geometry_type_.sphere_; + return geometry_type_.sphere_; } -inline ::viam::common::v1::Sphere* Geometry::mutable_sphere() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::Sphere* Geometry::mutable_sphere() { ::viam::common::v1::Sphere* _msg = _internal_mutable_sphere(); // @@protoc_insertion_point(field_mutable:viam.common.v1.Geometry.sphere) return _msg; } // .viam.common.v1.RectangularPrism box = 3 [json_name = "box"]; -inline bool Geometry::has_box() const { - return geometry_type_case() == kBox; -} inline bool Geometry::_internal_has_box() const { return geometry_type_case() == kBox; } +inline bool Geometry::has_box() const { + return _internal_has_box(); +} inline void Geometry::set_has_box() { - _impl_._oneof_case_[0] = kBox; + _oneof_case_[0] = kBox; } inline void Geometry::clear_box() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (geometry_type_case() == kBox) { - if (GetArena() == nullptr) { - delete _impl_.geometry_type_.box_; + if (_internal_has_box()) { + if (GetArenaForAllocation() == nullptr) { + delete geometry_type_.box_; } clear_has_geometry_type(); } } inline ::viam::common::v1::RectangularPrism* Geometry::release_box() { // @@protoc_insertion_point(field_release:viam.common.v1.Geometry.box) - if (geometry_type_case() == kBox) { + if (_internal_has_box()) { clear_has_geometry_type(); - auto* temp = _impl_.geometry_type_.box_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::viam::common::v1::RectangularPrism* temp = geometry_type_.box_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.geometry_type_.box_ = nullptr; + geometry_type_.box_ = nullptr; return temp; } else { return nullptr; } } inline const ::viam::common::v1::RectangularPrism& Geometry::_internal_box() const { - return geometry_type_case() == kBox ? *_impl_.geometry_type_.box_ : reinterpret_cast<::viam::common::v1::RectangularPrism&>(::viam::common::v1::_RectangularPrism_default_instance_); + return _internal_has_box() + ? *geometry_type_.box_ + : reinterpret_cast< ::viam::common::v1::RectangularPrism&>(::viam::common::v1::_RectangularPrism_default_instance_); } -inline const ::viam::common::v1::RectangularPrism& Geometry::box() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::RectangularPrism& Geometry::box() const { // @@protoc_insertion_point(field_get:viam.common.v1.Geometry.box) return _internal_box(); } inline ::viam::common::v1::RectangularPrism* Geometry::unsafe_arena_release_box() { // @@protoc_insertion_point(field_unsafe_arena_release:viam.common.v1.Geometry.box) - if (geometry_type_case() == kBox) { + if (_internal_has_box()) { clear_has_geometry_type(); - auto* temp = _impl_.geometry_type_.box_; - _impl_.geometry_type_.box_ = nullptr; + ::viam::common::v1::RectangularPrism* temp = geometry_type_.box_; + geometry_type_.box_ = nullptr; return temp; } else { return nullptr; } } -inline void Geometry::unsafe_arena_set_allocated_box(::viam::common::v1::RectangularPrism* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void Geometry::unsafe_arena_set_allocated_box(::viam::common::v1::RectangularPrism* box) { clear_geometry_type(); - if (value) { + if (box) { set_has_box(); - _impl_.geometry_type_.box_ = value; + geometry_type_.box_ = box; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.common.v1.Geometry.box) } inline ::viam::common::v1::RectangularPrism* Geometry::_internal_mutable_box() { - if (geometry_type_case() != kBox) { + if (!_internal_has_box()) { clear_geometry_type(); set_has_box(); - _impl_.geometry_type_.box_ = CreateMaybeMessage<::viam::common::v1::RectangularPrism>(GetArena()); + geometry_type_.box_ = CreateMaybeMessage< ::viam::common::v1::RectangularPrism >(GetArenaForAllocation()); } - return _impl_.geometry_type_.box_; + return geometry_type_.box_; } -inline ::viam::common::v1::RectangularPrism* Geometry::mutable_box() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::RectangularPrism* Geometry::mutable_box() { ::viam::common::v1::RectangularPrism* _msg = _internal_mutable_box(); // @@protoc_insertion_point(field_mutable:viam.common.v1.Geometry.box) return _msg; } // .viam.common.v1.Capsule capsule = 5 [json_name = "capsule"]; -inline bool Geometry::has_capsule() const { - return geometry_type_case() == kCapsule; -} inline bool Geometry::_internal_has_capsule() const { return geometry_type_case() == kCapsule; } +inline bool Geometry::has_capsule() const { + return _internal_has_capsule(); +} inline void Geometry::set_has_capsule() { - _impl_._oneof_case_[0] = kCapsule; + _oneof_case_[0] = kCapsule; } inline void Geometry::clear_capsule() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (geometry_type_case() == kCapsule) { - if (GetArena() == nullptr) { - delete _impl_.geometry_type_.capsule_; + if (_internal_has_capsule()) { + if (GetArenaForAllocation() == nullptr) { + delete geometry_type_.capsule_; } clear_has_geometry_type(); } } inline ::viam::common::v1::Capsule* Geometry::release_capsule() { // @@protoc_insertion_point(field_release:viam.common.v1.Geometry.capsule) - if (geometry_type_case() == kCapsule) { + if (_internal_has_capsule()) { clear_has_geometry_type(); - auto* temp = _impl_.geometry_type_.capsule_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::viam::common::v1::Capsule* temp = geometry_type_.capsule_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.geometry_type_.capsule_ = nullptr; + geometry_type_.capsule_ = nullptr; return temp; } else { return nullptr; } } inline const ::viam::common::v1::Capsule& Geometry::_internal_capsule() const { - return geometry_type_case() == kCapsule ? *_impl_.geometry_type_.capsule_ : reinterpret_cast<::viam::common::v1::Capsule&>(::viam::common::v1::_Capsule_default_instance_); + return _internal_has_capsule() + ? *geometry_type_.capsule_ + : reinterpret_cast< ::viam::common::v1::Capsule&>(::viam::common::v1::_Capsule_default_instance_); } -inline const ::viam::common::v1::Capsule& Geometry::capsule() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::Capsule& Geometry::capsule() const { // @@protoc_insertion_point(field_get:viam.common.v1.Geometry.capsule) return _internal_capsule(); } inline ::viam::common::v1::Capsule* Geometry::unsafe_arena_release_capsule() { // @@protoc_insertion_point(field_unsafe_arena_release:viam.common.v1.Geometry.capsule) - if (geometry_type_case() == kCapsule) { + if (_internal_has_capsule()) { clear_has_geometry_type(); - auto* temp = _impl_.geometry_type_.capsule_; - _impl_.geometry_type_.capsule_ = nullptr; + ::viam::common::v1::Capsule* temp = geometry_type_.capsule_; + geometry_type_.capsule_ = nullptr; return temp; } else { return nullptr; } } -inline void Geometry::unsafe_arena_set_allocated_capsule(::viam::common::v1::Capsule* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void Geometry::unsafe_arena_set_allocated_capsule(::viam::common::v1::Capsule* capsule) { clear_geometry_type(); - if (value) { + if (capsule) { set_has_capsule(); - _impl_.geometry_type_.capsule_ = value; + geometry_type_.capsule_ = capsule; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.common.v1.Geometry.capsule) } inline ::viam::common::v1::Capsule* Geometry::_internal_mutable_capsule() { - if (geometry_type_case() != kCapsule) { + if (!_internal_has_capsule()) { clear_geometry_type(); set_has_capsule(); - _impl_.geometry_type_.capsule_ = CreateMaybeMessage<::viam::common::v1::Capsule>(GetArena()); + geometry_type_.capsule_ = CreateMaybeMessage< ::viam::common::v1::Capsule >(GetArenaForAllocation()); } - return _impl_.geometry_type_.capsule_; + return geometry_type_.capsule_; } -inline ::viam::common::v1::Capsule* Geometry::mutable_capsule() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::Capsule* Geometry::mutable_capsule() { ::viam::common::v1::Capsule* _msg = _internal_mutable_capsule(); // @@protoc_insertion_point(field_mutable:viam.common.v1.Geometry.capsule) return _msg; @@ -6978,54 +6017,51 @@ inline ::viam::common::v1::Capsule* Geometry::mutable_capsule() ABSL_ATTRIBUTE_L // string label = 4 [json_name = "label"]; inline void Geometry::clear_label() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.label_.ClearToEmpty(); + label_.ClearToEmpty(); } -inline const std::string& Geometry::label() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Geometry::label() const { // @@protoc_insertion_point(field_get:viam.common.v1.Geometry.label) return _internal_label(); } -template -inline PROTOBUF_ALWAYS_INLINE void Geometry::set_label(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.label_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Geometry::set_label(ArgT0&& arg0, ArgT... args) { + + label_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.common.v1.Geometry.label) } -inline std::string* Geometry::mutable_label() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Geometry::mutable_label() { std::string* _s = _internal_mutable_label(); // @@protoc_insertion_point(field_mutable:viam.common.v1.Geometry.label) return _s; } inline const std::string& Geometry::_internal_label() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.label_.Get(); + return label_.Get(); } inline void Geometry::_internal_set_label(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.label_.Set(value, GetArena()); + + label_.Set(value, GetArenaForAllocation()); } inline std::string* Geometry::_internal_mutable_label() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.label_.Mutable( GetArena()); + + return label_.Mutable(GetArenaForAllocation()); } inline std::string* Geometry::release_label() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.common.v1.Geometry.label) - return _impl_.label_.Release(); -} -inline void Geometry::set_allocated_label(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.label_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.label_.IsDefault()) { - _impl_.label_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return label_.Release(); +} +inline void Geometry::set_allocated_label(std::string* label) { + if (label != nullptr) { + + } else { + + } + label_.SetAllocated(label, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (label_.IsDefault()) { + label_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.common.v1.Geometry.label) } @@ -7033,10 +6069,10 @@ inline bool Geometry::has_geometry_type() const { return geometry_type_case() != GEOMETRY_TYPE_NOT_SET; } inline void Geometry::clear_has_geometry_type() { - _impl_._oneof_case_[0] = GEOMETRY_TYPE_NOT_SET; + _oneof_case_[0] = GEOMETRY_TYPE_NOT_SET; } inline Geometry::GeometryTypeCase Geometry::geometry_type_case() const { - return Geometry::GeometryTypeCase(_impl_._oneof_case_[0]); + return Geometry::GeometryTypeCase(_oneof_case_[0]); } // ------------------------------------------------------------------- @@ -7044,104 +6080,92 @@ inline Geometry::GeometryTypeCase Geometry::geometry_type_case() const { // string reference_frame = 1 [json_name = "referenceFrame"]; inline void GeometriesInFrame::clear_reference_frame() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.reference_frame_.ClearToEmpty(); + reference_frame_.ClearToEmpty(); } -inline const std::string& GeometriesInFrame::reference_frame() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GeometriesInFrame::reference_frame() const { // @@protoc_insertion_point(field_get:viam.common.v1.GeometriesInFrame.reference_frame) return _internal_reference_frame(); } -template -inline PROTOBUF_ALWAYS_INLINE void GeometriesInFrame::set_reference_frame(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.reference_frame_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GeometriesInFrame::set_reference_frame(ArgT0&& arg0, ArgT... args) { + + reference_frame_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.common.v1.GeometriesInFrame.reference_frame) } -inline std::string* GeometriesInFrame::mutable_reference_frame() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GeometriesInFrame::mutable_reference_frame() { std::string* _s = _internal_mutable_reference_frame(); // @@protoc_insertion_point(field_mutable:viam.common.v1.GeometriesInFrame.reference_frame) return _s; } inline const std::string& GeometriesInFrame::_internal_reference_frame() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.reference_frame_.Get(); + return reference_frame_.Get(); } inline void GeometriesInFrame::_internal_set_reference_frame(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.reference_frame_.Set(value, GetArena()); + + reference_frame_.Set(value, GetArenaForAllocation()); } inline std::string* GeometriesInFrame::_internal_mutable_reference_frame() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.reference_frame_.Mutable( GetArena()); + + return reference_frame_.Mutable(GetArenaForAllocation()); } inline std::string* GeometriesInFrame::release_reference_frame() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.common.v1.GeometriesInFrame.reference_frame) - return _impl_.reference_frame_.Release(); -} -inline void GeometriesInFrame::set_allocated_reference_frame(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.reference_frame_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.reference_frame_.IsDefault()) { - _impl_.reference_frame_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return reference_frame_.Release(); +} +inline void GeometriesInFrame::set_allocated_reference_frame(std::string* reference_frame) { + if (reference_frame != nullptr) { + + } else { + + } + reference_frame_.SetAllocated(reference_frame, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (reference_frame_.IsDefault()) { + reference_frame_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.common.v1.GeometriesInFrame.reference_frame) } // repeated .viam.common.v1.Geometry geometries = 2 [json_name = "geometries"]; inline int GeometriesInFrame::_internal_geometries_size() const { - return _internal_geometries().size(); + return geometries_.size(); } inline int GeometriesInFrame::geometries_size() const { return _internal_geometries_size(); } inline void GeometriesInFrame::clear_geometries() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.geometries_.Clear(); + geometries_.Clear(); } -inline ::viam::common::v1::Geometry* GeometriesInFrame::mutable_geometries(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::Geometry* GeometriesInFrame::mutable_geometries(int index) { // @@protoc_insertion_point(field_mutable:viam.common.v1.GeometriesInFrame.geometries) - return _internal_mutable_geometries()->Mutable(index); + return geometries_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::common::v1::Geometry>* GeometriesInFrame::mutable_geometries() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Geometry >* +GeometriesInFrame::mutable_geometries() { // @@protoc_insertion_point(field_mutable_list:viam.common.v1.GeometriesInFrame.geometries) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_geometries(); + return &geometries_; } -inline const ::viam::common::v1::Geometry& GeometriesInFrame::geometries(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::Geometry& GeometriesInFrame::_internal_geometries(int index) const { + return geometries_.Get(index); +} +inline const ::viam::common::v1::Geometry& GeometriesInFrame::geometries(int index) const { // @@protoc_insertion_point(field_get:viam.common.v1.GeometriesInFrame.geometries) - return _internal_geometries().Get(index); + return _internal_geometries(index); +} +inline ::viam::common::v1::Geometry* GeometriesInFrame::_internal_add_geometries() { + return geometries_.Add(); } -inline ::viam::common::v1::Geometry* GeometriesInFrame::add_geometries() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::common::v1::Geometry* _add = _internal_mutable_geometries()->Add(); +inline ::viam::common::v1::Geometry* GeometriesInFrame::add_geometries() { + ::viam::common::v1::Geometry* _add = _internal_add_geometries(); // @@protoc_insertion_point(field_add:viam.common.v1.GeometriesInFrame.geometries) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::common::v1::Geometry>& GeometriesInFrame::geometries() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Geometry >& +GeometriesInFrame::geometries() const { // @@protoc_insertion_point(field_list:viam.common.v1.GeometriesInFrame.geometries) - return _internal_geometries(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::common::v1::Geometry>& -GeometriesInFrame::_internal_geometries() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.geometries_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::common::v1::Geometry>* -GeometriesInFrame::_internal_mutable_geometries() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.geometries_; + return geometries_; } // ------------------------------------------------------------------- @@ -7150,150 +6174,141 @@ GeometriesInFrame::_internal_mutable_geometries() { // bytes point_cloud = 1 [json_name = "pointCloud"]; inline void PointCloudObject::clear_point_cloud() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.point_cloud_.ClearToEmpty(); + point_cloud_.ClearToEmpty(); } -inline const std::string& PointCloudObject::point_cloud() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& PointCloudObject::point_cloud() const { // @@protoc_insertion_point(field_get:viam.common.v1.PointCloudObject.point_cloud) return _internal_point_cloud(); } -template -inline PROTOBUF_ALWAYS_INLINE void PointCloudObject::set_point_cloud(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.point_cloud_.SetBytes(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void PointCloudObject::set_point_cloud(ArgT0&& arg0, ArgT... args) { + + point_cloud_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.common.v1.PointCloudObject.point_cloud) } -inline std::string* PointCloudObject::mutable_point_cloud() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* PointCloudObject::mutable_point_cloud() { std::string* _s = _internal_mutable_point_cloud(); // @@protoc_insertion_point(field_mutable:viam.common.v1.PointCloudObject.point_cloud) return _s; } inline const std::string& PointCloudObject::_internal_point_cloud() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.point_cloud_.Get(); + return point_cloud_.Get(); } inline void PointCloudObject::_internal_set_point_cloud(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.point_cloud_.Set(value, GetArena()); + + point_cloud_.Set(value, GetArenaForAllocation()); } inline std::string* PointCloudObject::_internal_mutable_point_cloud() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.point_cloud_.Mutable( GetArena()); + + return point_cloud_.Mutable(GetArenaForAllocation()); } inline std::string* PointCloudObject::release_point_cloud() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.common.v1.PointCloudObject.point_cloud) - return _impl_.point_cloud_.Release(); -} -inline void PointCloudObject::set_allocated_point_cloud(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.point_cloud_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.point_cloud_.IsDefault()) { - _impl_.point_cloud_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return point_cloud_.Release(); +} +inline void PointCloudObject::set_allocated_point_cloud(std::string* point_cloud) { + if (point_cloud != nullptr) { + + } else { + + } + point_cloud_.SetAllocated(point_cloud, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (point_cloud_.IsDefault()) { + point_cloud_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.common.v1.PointCloudObject.point_cloud) } // .viam.common.v1.GeometriesInFrame geometries = 2 [json_name = "geometries"]; +inline bool PointCloudObject::_internal_has_geometries() const { + return this != internal_default_instance() && geometries_ != nullptr; +} inline bool PointCloudObject::has_geometries() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.geometries_ != nullptr); - return value; + return _internal_has_geometries(); } inline void PointCloudObject::clear_geometries() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.geometries_ != nullptr) _impl_.geometries_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && geometries_ != nullptr) { + delete geometries_; + } + geometries_ = nullptr; } inline const ::viam::common::v1::GeometriesInFrame& PointCloudObject::_internal_geometries() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::common::v1::GeometriesInFrame* p = _impl_.geometries_; - return p != nullptr ? *p : reinterpret_cast(::viam::common::v1::_GeometriesInFrame_default_instance_); + const ::viam::common::v1::GeometriesInFrame* p = geometries_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_GeometriesInFrame_default_instance_); } -inline const ::viam::common::v1::GeometriesInFrame& PointCloudObject::geometries() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::GeometriesInFrame& PointCloudObject::geometries() const { // @@protoc_insertion_point(field_get:viam.common.v1.PointCloudObject.geometries) return _internal_geometries(); } -inline void PointCloudObject::unsafe_arena_set_allocated_geometries(::viam::common::v1::GeometriesInFrame* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.geometries_); +inline void PointCloudObject::unsafe_arena_set_allocated_geometries( + ::viam::common::v1::GeometriesInFrame* geometries) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(geometries_); } - _impl_.geometries_ = reinterpret_cast<::viam::common::v1::GeometriesInFrame*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + geometries_ = geometries; + if (geometries) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.common.v1.PointCloudObject.geometries) } inline ::viam::common::v1::GeometriesInFrame* PointCloudObject::release_geometries() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::GeometriesInFrame* released = _impl_.geometries_; - _impl_.geometries_ = nullptr; + + ::viam::common::v1::GeometriesInFrame* temp = geometries_; + geometries_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::common::v1::GeometriesInFrame* PointCloudObject::unsafe_arena_release_geometries() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.common.v1.PointCloudObject.geometries) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::GeometriesInFrame* temp = _impl_.geometries_; - _impl_.geometries_ = nullptr; + + ::viam::common::v1::GeometriesInFrame* temp = geometries_; + geometries_ = nullptr; return temp; } inline ::viam::common::v1::GeometriesInFrame* PointCloudObject::_internal_mutable_geometries() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.geometries_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::GeometriesInFrame>(GetArena()); - _impl_.geometries_ = reinterpret_cast<::viam::common::v1::GeometriesInFrame*>(p); + + if (geometries_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::GeometriesInFrame>(GetArenaForAllocation()); + geometries_ = p; } - return _impl_.geometries_; + return geometries_; } -inline ::viam::common::v1::GeometriesInFrame* PointCloudObject::mutable_geometries() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::GeometriesInFrame* PointCloudObject::mutable_geometries() { ::viam::common::v1::GeometriesInFrame* _msg = _internal_mutable_geometries(); // @@protoc_insertion_point(field_mutable:viam.common.v1.PointCloudObject.geometries) return _msg; } -inline void PointCloudObject::set_allocated_geometries(::viam::common::v1::GeometriesInFrame* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void PointCloudObject::set_allocated_geometries(::viam::common::v1::GeometriesInFrame* geometries) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::common::v1::GeometriesInFrame*>(_impl_.geometries_); + delete geometries_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::common::v1::GeometriesInFrame*>(value)->GetArena(); + if (geometries) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(geometries); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + geometries = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, geometries, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.geometries_ = reinterpret_cast<::viam::common::v1::GeometriesInFrame*>(value); + geometries_ = geometries; // @@protoc_insertion_point(field_set_allocated:viam.common.v1.PointCloudObject.geometries) } @@ -7303,197 +6318,176 @@ inline void PointCloudObject::set_allocated_geometries(::viam::common::v1::Geome // double latitude = 1 [json_name = "latitude"]; inline void GeoPoint::clear_latitude() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.latitude_ = 0; + latitude_ = 0; +} +inline double GeoPoint::_internal_latitude() const { + return latitude_; } inline double GeoPoint::latitude() const { // @@protoc_insertion_point(field_get:viam.common.v1.GeoPoint.latitude) return _internal_latitude(); } +inline void GeoPoint::_internal_set_latitude(double value) { + + latitude_ = value; +} inline void GeoPoint::set_latitude(double value) { _internal_set_latitude(value); // @@protoc_insertion_point(field_set:viam.common.v1.GeoPoint.latitude) } -inline double GeoPoint::_internal_latitude() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.latitude_; -} -inline void GeoPoint::_internal_set_latitude(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.latitude_ = value; -} // double longitude = 2 [json_name = "longitude"]; inline void GeoPoint::clear_longitude() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.longitude_ = 0; + longitude_ = 0; +} +inline double GeoPoint::_internal_longitude() const { + return longitude_; } inline double GeoPoint::longitude() const { // @@protoc_insertion_point(field_get:viam.common.v1.GeoPoint.longitude) return _internal_longitude(); } +inline void GeoPoint::_internal_set_longitude(double value) { + + longitude_ = value; +} inline void GeoPoint::set_longitude(double value) { _internal_set_longitude(value); // @@protoc_insertion_point(field_set:viam.common.v1.GeoPoint.longitude) } -inline double GeoPoint::_internal_longitude() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.longitude_; -} -inline void GeoPoint::_internal_set_longitude(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.longitude_ = value; -} // ------------------------------------------------------------------- // GeoGeometry // .viam.common.v1.GeoPoint location = 1 [json_name = "location"]; +inline bool GeoGeometry::_internal_has_location() const { + return this != internal_default_instance() && location_ != nullptr; +} inline bool GeoGeometry::has_location() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.location_ != nullptr); - return value; + return _internal_has_location(); } inline void GeoGeometry::clear_location() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.location_ != nullptr) _impl_.location_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && location_ != nullptr) { + delete location_; + } + location_ = nullptr; } inline const ::viam::common::v1::GeoPoint& GeoGeometry::_internal_location() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::common::v1::GeoPoint* p = _impl_.location_; - return p != nullptr ? *p : reinterpret_cast(::viam::common::v1::_GeoPoint_default_instance_); + const ::viam::common::v1::GeoPoint* p = location_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_GeoPoint_default_instance_); } -inline const ::viam::common::v1::GeoPoint& GeoGeometry::location() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::GeoPoint& GeoGeometry::location() const { // @@protoc_insertion_point(field_get:viam.common.v1.GeoGeometry.location) return _internal_location(); } -inline void GeoGeometry::unsafe_arena_set_allocated_location(::viam::common::v1::GeoPoint* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.location_); +inline void GeoGeometry::unsafe_arena_set_allocated_location( + ::viam::common::v1::GeoPoint* location) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(location_); } - _impl_.location_ = reinterpret_cast<::viam::common::v1::GeoPoint*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + location_ = location; + if (location) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.common.v1.GeoGeometry.location) } inline ::viam::common::v1::GeoPoint* GeoGeometry::release_location() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::GeoPoint* released = _impl_.location_; - _impl_.location_ = nullptr; + + ::viam::common::v1::GeoPoint* temp = location_; + location_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::common::v1::GeoPoint* GeoGeometry::unsafe_arena_release_location() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.common.v1.GeoGeometry.location) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::GeoPoint* temp = _impl_.location_; - _impl_.location_ = nullptr; + + ::viam::common::v1::GeoPoint* temp = location_; + location_ = nullptr; return temp; } inline ::viam::common::v1::GeoPoint* GeoGeometry::_internal_mutable_location() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.location_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::GeoPoint>(GetArena()); - _impl_.location_ = reinterpret_cast<::viam::common::v1::GeoPoint*>(p); + + if (location_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::GeoPoint>(GetArenaForAllocation()); + location_ = p; } - return _impl_.location_; + return location_; } -inline ::viam::common::v1::GeoPoint* GeoGeometry::mutable_location() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::GeoPoint* GeoGeometry::mutable_location() { ::viam::common::v1::GeoPoint* _msg = _internal_mutable_location(); // @@protoc_insertion_point(field_mutable:viam.common.v1.GeoGeometry.location) return _msg; } -inline void GeoGeometry::set_allocated_location(::viam::common::v1::GeoPoint* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GeoGeometry::set_allocated_location(::viam::common::v1::GeoPoint* location) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::common::v1::GeoPoint*>(_impl_.location_); + delete location_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::common::v1::GeoPoint*>(value)->GetArena(); + if (location) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(location); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + location = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, location, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.location_ = reinterpret_cast<::viam::common::v1::GeoPoint*>(value); + location_ = location; // @@protoc_insertion_point(field_set_allocated:viam.common.v1.GeoGeometry.location) } // repeated .viam.common.v1.Geometry geometries = 2 [json_name = "geometries"]; inline int GeoGeometry::_internal_geometries_size() const { - return _internal_geometries().size(); + return geometries_.size(); } inline int GeoGeometry::geometries_size() const { return _internal_geometries_size(); } inline void GeoGeometry::clear_geometries() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.geometries_.Clear(); + geometries_.Clear(); } -inline ::viam::common::v1::Geometry* GeoGeometry::mutable_geometries(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::Geometry* GeoGeometry::mutable_geometries(int index) { // @@protoc_insertion_point(field_mutable:viam.common.v1.GeoGeometry.geometries) - return _internal_mutable_geometries()->Mutable(index); + return geometries_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::common::v1::Geometry>* GeoGeometry::mutable_geometries() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Geometry >* +GeoGeometry::mutable_geometries() { // @@protoc_insertion_point(field_mutable_list:viam.common.v1.GeoGeometry.geometries) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_geometries(); + return &geometries_; +} +inline const ::viam::common::v1::Geometry& GeoGeometry::_internal_geometries(int index) const { + return geometries_.Get(index); } -inline const ::viam::common::v1::Geometry& GeoGeometry::geometries(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::Geometry& GeoGeometry::geometries(int index) const { // @@protoc_insertion_point(field_get:viam.common.v1.GeoGeometry.geometries) - return _internal_geometries().Get(index); + return _internal_geometries(index); } -inline ::viam::common::v1::Geometry* GeoGeometry::add_geometries() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::common::v1::Geometry* _add = _internal_mutable_geometries()->Add(); +inline ::viam::common::v1::Geometry* GeoGeometry::_internal_add_geometries() { + return geometries_.Add(); +} +inline ::viam::common::v1::Geometry* GeoGeometry::add_geometries() { + ::viam::common::v1::Geometry* _add = _internal_add_geometries(); // @@protoc_insertion_point(field_add:viam.common.v1.GeoGeometry.geometries) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::common::v1::Geometry>& GeoGeometry::geometries() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Geometry >& +GeoGeometry::geometries() const { // @@protoc_insertion_point(field_list:viam.common.v1.GeoGeometry.geometries) - return _internal_geometries(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::common::v1::Geometry>& -GeoGeometry::_internal_geometries() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.geometries_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::common::v1::Geometry>* -GeoGeometry::_internal_mutable_geometries() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.geometries_; + return geometries_; } // ------------------------------------------------------------------- @@ -7502,246 +6496,231 @@ GeoGeometry::_internal_mutable_geometries() { // string reference_frame = 1 [json_name = "referenceFrame"]; inline void Transform::clear_reference_frame() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.reference_frame_.ClearToEmpty(); + reference_frame_.ClearToEmpty(); } -inline const std::string& Transform::reference_frame() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Transform::reference_frame() const { // @@protoc_insertion_point(field_get:viam.common.v1.Transform.reference_frame) return _internal_reference_frame(); } -template -inline PROTOBUF_ALWAYS_INLINE void Transform::set_reference_frame(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.reference_frame_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Transform::set_reference_frame(ArgT0&& arg0, ArgT... args) { + + reference_frame_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.common.v1.Transform.reference_frame) } -inline std::string* Transform::mutable_reference_frame() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Transform::mutable_reference_frame() { std::string* _s = _internal_mutable_reference_frame(); // @@protoc_insertion_point(field_mutable:viam.common.v1.Transform.reference_frame) return _s; } inline const std::string& Transform::_internal_reference_frame() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.reference_frame_.Get(); + return reference_frame_.Get(); } inline void Transform::_internal_set_reference_frame(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.reference_frame_.Set(value, GetArena()); + + reference_frame_.Set(value, GetArenaForAllocation()); } inline std::string* Transform::_internal_mutable_reference_frame() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.reference_frame_.Mutable( GetArena()); + + return reference_frame_.Mutable(GetArenaForAllocation()); } inline std::string* Transform::release_reference_frame() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.common.v1.Transform.reference_frame) - return _impl_.reference_frame_.Release(); -} -inline void Transform::set_allocated_reference_frame(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.reference_frame_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.reference_frame_.IsDefault()) { - _impl_.reference_frame_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return reference_frame_.Release(); +} +inline void Transform::set_allocated_reference_frame(std::string* reference_frame) { + if (reference_frame != nullptr) { + + } else { + + } + reference_frame_.SetAllocated(reference_frame, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (reference_frame_.IsDefault()) { + reference_frame_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.common.v1.Transform.reference_frame) } // .viam.common.v1.PoseInFrame pose_in_observer_frame = 2 [json_name = "poseInObserverFrame"]; +inline bool Transform::_internal_has_pose_in_observer_frame() const { + return this != internal_default_instance() && pose_in_observer_frame_ != nullptr; +} inline bool Transform::has_pose_in_observer_frame() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.pose_in_observer_frame_ != nullptr); - return value; + return _internal_has_pose_in_observer_frame(); } inline void Transform::clear_pose_in_observer_frame() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.pose_in_observer_frame_ != nullptr) _impl_.pose_in_observer_frame_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && pose_in_observer_frame_ != nullptr) { + delete pose_in_observer_frame_; + } + pose_in_observer_frame_ = nullptr; } inline const ::viam::common::v1::PoseInFrame& Transform::_internal_pose_in_observer_frame() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::common::v1::PoseInFrame* p = _impl_.pose_in_observer_frame_; - return p != nullptr ? *p : reinterpret_cast(::viam::common::v1::_PoseInFrame_default_instance_); + const ::viam::common::v1::PoseInFrame* p = pose_in_observer_frame_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_PoseInFrame_default_instance_); } -inline const ::viam::common::v1::PoseInFrame& Transform::pose_in_observer_frame() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::PoseInFrame& Transform::pose_in_observer_frame() const { // @@protoc_insertion_point(field_get:viam.common.v1.Transform.pose_in_observer_frame) return _internal_pose_in_observer_frame(); } -inline void Transform::unsafe_arena_set_allocated_pose_in_observer_frame(::viam::common::v1::PoseInFrame* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.pose_in_observer_frame_); +inline void Transform::unsafe_arena_set_allocated_pose_in_observer_frame( + ::viam::common::v1::PoseInFrame* pose_in_observer_frame) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(pose_in_observer_frame_); } - _impl_.pose_in_observer_frame_ = reinterpret_cast<::viam::common::v1::PoseInFrame*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + pose_in_observer_frame_ = pose_in_observer_frame; + if (pose_in_observer_frame) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.common.v1.Transform.pose_in_observer_frame) } inline ::viam::common::v1::PoseInFrame* Transform::release_pose_in_observer_frame() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::PoseInFrame* released = _impl_.pose_in_observer_frame_; - _impl_.pose_in_observer_frame_ = nullptr; + + ::viam::common::v1::PoseInFrame* temp = pose_in_observer_frame_; + pose_in_observer_frame_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::common::v1::PoseInFrame* Transform::unsafe_arena_release_pose_in_observer_frame() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.common.v1.Transform.pose_in_observer_frame) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::PoseInFrame* temp = _impl_.pose_in_observer_frame_; - _impl_.pose_in_observer_frame_ = nullptr; + + ::viam::common::v1::PoseInFrame* temp = pose_in_observer_frame_; + pose_in_observer_frame_ = nullptr; return temp; } inline ::viam::common::v1::PoseInFrame* Transform::_internal_mutable_pose_in_observer_frame() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.pose_in_observer_frame_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::PoseInFrame>(GetArena()); - _impl_.pose_in_observer_frame_ = reinterpret_cast<::viam::common::v1::PoseInFrame*>(p); + + if (pose_in_observer_frame_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::PoseInFrame>(GetArenaForAllocation()); + pose_in_observer_frame_ = p; } - return _impl_.pose_in_observer_frame_; + return pose_in_observer_frame_; } -inline ::viam::common::v1::PoseInFrame* Transform::mutable_pose_in_observer_frame() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::PoseInFrame* Transform::mutable_pose_in_observer_frame() { ::viam::common::v1::PoseInFrame* _msg = _internal_mutable_pose_in_observer_frame(); // @@protoc_insertion_point(field_mutable:viam.common.v1.Transform.pose_in_observer_frame) return _msg; } -inline void Transform::set_allocated_pose_in_observer_frame(::viam::common::v1::PoseInFrame* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Transform::set_allocated_pose_in_observer_frame(::viam::common::v1::PoseInFrame* pose_in_observer_frame) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::common::v1::PoseInFrame*>(_impl_.pose_in_observer_frame_); + delete pose_in_observer_frame_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::common::v1::PoseInFrame*>(value)->GetArena(); + if (pose_in_observer_frame) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(pose_in_observer_frame); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + pose_in_observer_frame = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, pose_in_observer_frame, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.pose_in_observer_frame_ = reinterpret_cast<::viam::common::v1::PoseInFrame*>(value); + pose_in_observer_frame_ = pose_in_observer_frame; // @@protoc_insertion_point(field_set_allocated:viam.common.v1.Transform.pose_in_observer_frame) } // optional .viam.common.v1.Geometry physical_object = 3 [json_name = "physicalObject"]; -inline bool Transform::has_physical_object() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.physical_object_ != nullptr); +inline bool Transform::_internal_has_physical_object() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || physical_object_ != nullptr); return value; } +inline bool Transform::has_physical_object() const { + return _internal_has_physical_object(); +} inline void Transform::clear_physical_object() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.physical_object_ != nullptr) _impl_.physical_object_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (physical_object_ != nullptr) physical_object_->Clear(); + _has_bits_[0] &= ~0x00000001u; } inline const ::viam::common::v1::Geometry& Transform::_internal_physical_object() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::common::v1::Geometry* p = _impl_.physical_object_; - return p != nullptr ? *p : reinterpret_cast(::viam::common::v1::_Geometry_default_instance_); + const ::viam::common::v1::Geometry* p = physical_object_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_Geometry_default_instance_); } -inline const ::viam::common::v1::Geometry& Transform::physical_object() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::Geometry& Transform::physical_object() const { // @@protoc_insertion_point(field_get:viam.common.v1.Transform.physical_object) return _internal_physical_object(); } -inline void Transform::unsafe_arena_set_allocated_physical_object(::viam::common::v1::Geometry* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.physical_object_); +inline void Transform::unsafe_arena_set_allocated_physical_object( + ::viam::common::v1::Geometry* physical_object) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(physical_object_); } - _impl_.physical_object_ = reinterpret_cast<::viam::common::v1::Geometry*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + physical_object_ = physical_object; + if (physical_object) { + _has_bits_[0] |= 0x00000001u; } else { - _impl_._has_bits_[0] &= ~0x00000002u; + _has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.common.v1.Transform.physical_object) } inline ::viam::common::v1::Geometry* Transform::release_physical_object() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::viam::common::v1::Geometry* released = _impl_.physical_object_; - _impl_.physical_object_ = nullptr; + _has_bits_[0] &= ~0x00000001u; + ::viam::common::v1::Geometry* temp = physical_object_; + physical_object_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::common::v1::Geometry* Transform::unsafe_arena_release_physical_object() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.common.v1.Transform.physical_object) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::viam::common::v1::Geometry* temp = _impl_.physical_object_; - _impl_.physical_object_ = nullptr; + _has_bits_[0] &= ~0x00000001u; + ::viam::common::v1::Geometry* temp = physical_object_; + physical_object_ = nullptr; return temp; } inline ::viam::common::v1::Geometry* Transform::_internal_mutable_physical_object() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.physical_object_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::Geometry>(GetArena()); - _impl_.physical_object_ = reinterpret_cast<::viam::common::v1::Geometry*>(p); + _has_bits_[0] |= 0x00000001u; + if (physical_object_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::Geometry>(GetArenaForAllocation()); + physical_object_ = p; } - return _impl_.physical_object_; + return physical_object_; } -inline ::viam::common::v1::Geometry* Transform::mutable_physical_object() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::Geometry* Transform::mutable_physical_object() { ::viam::common::v1::Geometry* _msg = _internal_mutable_physical_object(); // @@protoc_insertion_point(field_mutable:viam.common.v1.Transform.physical_object) return _msg; } -inline void Transform::set_allocated_physical_object(::viam::common::v1::Geometry* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Transform::set_allocated_physical_object(::viam::common::v1::Geometry* physical_object) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::common::v1::Geometry*>(_impl_.physical_object_); + delete physical_object_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::common::v1::Geometry*>(value)->GetArena(); + if (physical_object) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(physical_object); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + physical_object = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, physical_object, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + _has_bits_[0] |= 0x00000001u; } else { - _impl_._has_bits_[0] &= ~0x00000002u; + _has_bits_[0] &= ~0x00000001u; } - - _impl_.physical_object_ = reinterpret_cast<::viam::common::v1::Geometry*>(value); + physical_object_ = physical_object; // @@protoc_insertion_point(field_set_allocated:viam.common.v1.Transform.physical_object) } @@ -7751,100 +6730,82 @@ inline void Transform::set_allocated_physical_object(::viam::common::v1::Geometr // repeated .viam.common.v1.GeometriesInFrame obstacles = 1 [json_name = "obstacles"]; inline int WorldState::_internal_obstacles_size() const { - return _internal_obstacles().size(); + return obstacles_.size(); } inline int WorldState::obstacles_size() const { return _internal_obstacles_size(); } inline void WorldState::clear_obstacles() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.obstacles_.Clear(); + obstacles_.Clear(); } -inline ::viam::common::v1::GeometriesInFrame* WorldState::mutable_obstacles(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::GeometriesInFrame* WorldState::mutable_obstacles(int index) { // @@protoc_insertion_point(field_mutable:viam.common.v1.WorldState.obstacles) - return _internal_mutable_obstacles()->Mutable(index); + return obstacles_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::common::v1::GeometriesInFrame>* WorldState::mutable_obstacles() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::GeometriesInFrame >* +WorldState::mutable_obstacles() { // @@protoc_insertion_point(field_mutable_list:viam.common.v1.WorldState.obstacles) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_obstacles(); + return &obstacles_; } -inline const ::viam::common::v1::GeometriesInFrame& WorldState::obstacles(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::GeometriesInFrame& WorldState::_internal_obstacles(int index) const { + return obstacles_.Get(index); +} +inline const ::viam::common::v1::GeometriesInFrame& WorldState::obstacles(int index) const { // @@protoc_insertion_point(field_get:viam.common.v1.WorldState.obstacles) - return _internal_obstacles().Get(index); + return _internal_obstacles(index); +} +inline ::viam::common::v1::GeometriesInFrame* WorldState::_internal_add_obstacles() { + return obstacles_.Add(); } -inline ::viam::common::v1::GeometriesInFrame* WorldState::add_obstacles() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::common::v1::GeometriesInFrame* _add = _internal_mutable_obstacles()->Add(); +inline ::viam::common::v1::GeometriesInFrame* WorldState::add_obstacles() { + ::viam::common::v1::GeometriesInFrame* _add = _internal_add_obstacles(); // @@protoc_insertion_point(field_add:viam.common.v1.WorldState.obstacles) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::common::v1::GeometriesInFrame>& WorldState::obstacles() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::GeometriesInFrame >& +WorldState::obstacles() const { // @@protoc_insertion_point(field_list:viam.common.v1.WorldState.obstacles) - return _internal_obstacles(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::common::v1::GeometriesInFrame>& -WorldState::_internal_obstacles() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.obstacles_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::common::v1::GeometriesInFrame>* -WorldState::_internal_mutable_obstacles() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.obstacles_; + return obstacles_; } // repeated .viam.common.v1.Transform transforms = 3 [json_name = "transforms"]; inline int WorldState::_internal_transforms_size() const { - return _internal_transforms().size(); + return transforms_.size(); } inline int WorldState::transforms_size() const { return _internal_transforms_size(); } inline void WorldState::clear_transforms() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.transforms_.Clear(); + transforms_.Clear(); } -inline ::viam::common::v1::Transform* WorldState::mutable_transforms(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::Transform* WorldState::mutable_transforms(int index) { // @@protoc_insertion_point(field_mutable:viam.common.v1.WorldState.transforms) - return _internal_mutable_transforms()->Mutable(index); + return transforms_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::common::v1::Transform>* WorldState::mutable_transforms() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Transform >* +WorldState::mutable_transforms() { // @@protoc_insertion_point(field_mutable_list:viam.common.v1.WorldState.transforms) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_transforms(); + return &transforms_; } -inline const ::viam::common::v1::Transform& WorldState::transforms(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::Transform& WorldState::_internal_transforms(int index) const { + return transforms_.Get(index); +} +inline const ::viam::common::v1::Transform& WorldState::transforms(int index) const { // @@protoc_insertion_point(field_get:viam.common.v1.WorldState.transforms) - return _internal_transforms().Get(index); + return _internal_transforms(index); +} +inline ::viam::common::v1::Transform* WorldState::_internal_add_transforms() { + return transforms_.Add(); } -inline ::viam::common::v1::Transform* WorldState::add_transforms() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::common::v1::Transform* _add = _internal_mutable_transforms()->Add(); +inline ::viam::common::v1::Transform* WorldState::add_transforms() { + ::viam::common::v1::Transform* _add = _internal_add_transforms(); // @@protoc_insertion_point(field_add:viam.common.v1.WorldState.transforms) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::common::v1::Transform>& WorldState::transforms() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Transform >& +WorldState::transforms() const { // @@protoc_insertion_point(field_list:viam.common.v1.WorldState.transforms) - return _internal_transforms(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::common::v1::Transform>& -WorldState::_internal_transforms() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.transforms_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::common::v1::Transform>* -WorldState::_internal_mutable_transforms() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.transforms_; + return transforms_; } // ------------------------------------------------------------------- @@ -7853,119 +6814,112 @@ WorldState::_internal_mutable_transforms() { // bool is_moving = 1 [json_name = "isMoving"]; inline void ActuatorStatus::clear_is_moving() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.is_moving_ = false; + is_moving_ = false; +} +inline bool ActuatorStatus::_internal_is_moving() const { + return is_moving_; } inline bool ActuatorStatus::is_moving() const { // @@protoc_insertion_point(field_get:viam.common.v1.ActuatorStatus.is_moving) return _internal_is_moving(); } +inline void ActuatorStatus::_internal_set_is_moving(bool value) { + + is_moving_ = value; +} inline void ActuatorStatus::set_is_moving(bool value) { _internal_set_is_moving(value); // @@protoc_insertion_point(field_set:viam.common.v1.ActuatorStatus.is_moving) } -inline bool ActuatorStatus::_internal_is_moving() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.is_moving_; -} -inline void ActuatorStatus::_internal_set_is_moving(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.is_moving_ = value; -} // ------------------------------------------------------------------- // ResponseMetadata // optional .google.protobuf.Timestamp captured_at = 1 [json_name = "capturedAt"]; -inline bool ResponseMetadata::has_captured_at() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.captured_at_ != nullptr); +inline bool ResponseMetadata::_internal_has_captured_at() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || captured_at_ != nullptr); return value; } -inline const ::google::protobuf::Timestamp& ResponseMetadata::_internal_captured_at() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Timestamp* p = _impl_.captured_at_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); +inline bool ResponseMetadata::has_captured_at() const { + return _internal_has_captured_at(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& ResponseMetadata::_internal_captured_at() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = captured_at_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); } -inline const ::google::protobuf::Timestamp& ResponseMetadata::captured_at() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& ResponseMetadata::captured_at() const { // @@protoc_insertion_point(field_get:viam.common.v1.ResponseMetadata.captured_at) return _internal_captured_at(); } -inline void ResponseMetadata::unsafe_arena_set_allocated_captured_at(::google::protobuf::Timestamp* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.captured_at_); +inline void ResponseMetadata::unsafe_arena_set_allocated_captured_at( + ::PROTOBUF_NAMESPACE_ID::Timestamp* captured_at) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(captured_at_); } - _impl_.captured_at_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + captured_at_ = captured_at; + if (captured_at) { + _has_bits_[0] |= 0x00000001u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; + _has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.common.v1.ResponseMetadata.captured_at) } -inline ::google::protobuf::Timestamp* ResponseMetadata::release_captured_at() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Timestamp* released = _impl_.captured_at_; - _impl_.captured_at_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* ResponseMetadata::release_captured_at() { + _has_bits_[0] &= ~0x00000001u; + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = captured_at_; + captured_at_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Timestamp* ResponseMetadata::unsafe_arena_release_captured_at() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* ResponseMetadata::unsafe_arena_release_captured_at() { // @@protoc_insertion_point(field_release:viam.common.v1.ResponseMetadata.captured_at) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Timestamp* temp = _impl_.captured_at_; - _impl_.captured_at_ = nullptr; + _has_bits_[0] &= ~0x00000001u; + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = captured_at_; + captured_at_ = nullptr; return temp; } -inline ::google::protobuf::Timestamp* ResponseMetadata::_internal_mutable_captured_at() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.captured_at_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena()); - _impl_.captured_at_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* ResponseMetadata::_internal_mutable_captured_at() { + _has_bits_[0] |= 0x00000001u; + if (captured_at_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + captured_at_ = p; } - return _impl_.captured_at_; + return captured_at_; } -inline ::google::protobuf::Timestamp* ResponseMetadata::mutable_captured_at() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Timestamp* _msg = _internal_mutable_captured_at(); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* ResponseMetadata::mutable_captured_at() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_captured_at(); // @@protoc_insertion_point(field_mutable:viam.common.v1.ResponseMetadata.captured_at) return _msg; } -inline void ResponseMetadata::set_allocated_captured_at(::google::protobuf::Timestamp* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ResponseMetadata::set_allocated_captured_at(::PROTOBUF_NAMESPACE_ID::Timestamp* captured_at) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.captured_at_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(captured_at_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (captured_at) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(captured_at)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + captured_at = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, captured_at, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + _has_bits_[0] |= 0x00000001u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; + _has_bits_[0] &= ~0x00000001u; } - - _impl_.captured_at_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); + captured_at_ = captured_at; // @@protoc_insertion_point(field_set_allocated:viam.common.v1.ResponseMetadata.captured_at) } @@ -7975,145 +6929,136 @@ inline void ResponseMetadata::set_allocated_captured_at(::google::protobuf::Time // string name = 1 [json_name = "name"]; inline void DoCommandRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& DoCommandRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& DoCommandRequest::name() const { // @@protoc_insertion_point(field_get:viam.common.v1.DoCommandRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void DoCommandRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void DoCommandRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.common.v1.DoCommandRequest.name) } -inline std::string* DoCommandRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* DoCommandRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.common.v1.DoCommandRequest.name) return _s; } inline const std::string& DoCommandRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void DoCommandRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* DoCommandRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* DoCommandRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.common.v1.DoCommandRequest.name) - return _impl_.name_.Release(); -} -inline void DoCommandRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void DoCommandRequest::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.DoCommandRequest.name) } // .google.protobuf.Struct command = 2 [json_name = "command"]; +inline bool DoCommandRequest::_internal_has_command() const { + return this != internal_default_instance() && command_ != nullptr; +} inline bool DoCommandRequest::has_command() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.command_ != nullptr); - return value; + return _internal_has_command(); } -inline const ::google::protobuf::Struct& DoCommandRequest::_internal_command() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.command_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& DoCommandRequest::_internal_command() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = command_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& DoCommandRequest::command() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& DoCommandRequest::command() const { // @@protoc_insertion_point(field_get:viam.common.v1.DoCommandRequest.command) return _internal_command(); } -inline void DoCommandRequest::unsafe_arena_set_allocated_command(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.command_); +inline void DoCommandRequest::unsafe_arena_set_allocated_command( + ::PROTOBUF_NAMESPACE_ID::Struct* command) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(command_); } - _impl_.command_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + command_ = command; + if (command) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.common.v1.DoCommandRequest.command) } -inline ::google::protobuf::Struct* DoCommandRequest::release_command() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.command_; - _impl_.command_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* DoCommandRequest::release_command() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = command_; + command_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* DoCommandRequest::unsafe_arena_release_command() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* DoCommandRequest::unsafe_arena_release_command() { // @@protoc_insertion_point(field_release:viam.common.v1.DoCommandRequest.command) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.command_; - _impl_.command_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = command_; + command_ = nullptr; return temp; } -inline ::google::protobuf::Struct* DoCommandRequest::_internal_mutable_command() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.command_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.command_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* DoCommandRequest::_internal_mutable_command() { + + if (command_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + command_ = p; } - return _impl_.command_; + return command_; } -inline ::google::protobuf::Struct* DoCommandRequest::mutable_command() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_command(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* DoCommandRequest::mutable_command() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_command(); // @@protoc_insertion_point(field_mutable:viam.common.v1.DoCommandRequest.command) return _msg; } -inline void DoCommandRequest::set_allocated_command(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void DoCommandRequest::set_allocated_command(::PROTOBUF_NAMESPACE_ID::Struct* command) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.command_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(command_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (command) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(command)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + command = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, command, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.command_ = reinterpret_cast<::google::protobuf::Struct*>(value); + command_ = command; // @@protoc_insertion_point(field_set_allocated:viam.common.v1.DoCommandRequest.command) } @@ -8122,93 +7067,87 @@ inline void DoCommandRequest::set_allocated_command(::google::protobuf::Struct* // DoCommandResponse // .google.protobuf.Struct result = 1 [json_name = "result"]; +inline bool DoCommandResponse::_internal_has_result() const { + return this != internal_default_instance() && result_ != nullptr; +} inline bool DoCommandResponse::has_result() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.result_ != nullptr); - return value; + return _internal_has_result(); } -inline const ::google::protobuf::Struct& DoCommandResponse::_internal_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.result_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& DoCommandResponse::_internal_result() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = result_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& DoCommandResponse::result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& DoCommandResponse::result() const { // @@protoc_insertion_point(field_get:viam.common.v1.DoCommandResponse.result) return _internal_result(); } -inline void DoCommandResponse::unsafe_arena_set_allocated_result(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.result_); +inline void DoCommandResponse::unsafe_arena_set_allocated_result( + ::PROTOBUF_NAMESPACE_ID::Struct* result) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(result_); } - _impl_.result_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + result_ = result; + if (result) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.common.v1.DoCommandResponse.result) } -inline ::google::protobuf::Struct* DoCommandResponse::release_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.result_; - _impl_.result_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* DoCommandResponse::release_result() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = result_; + result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* DoCommandResponse::unsafe_arena_release_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* DoCommandResponse::unsafe_arena_release_result() { // @@protoc_insertion_point(field_release:viam.common.v1.DoCommandResponse.result) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.result_; - _impl_.result_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = result_; + result_ = nullptr; return temp; } -inline ::google::protobuf::Struct* DoCommandResponse::_internal_mutable_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.result_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.result_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* DoCommandResponse::_internal_mutable_result() { + + if (result_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + result_ = p; } - return _impl_.result_; + return result_; } -inline ::google::protobuf::Struct* DoCommandResponse::mutable_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_result(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* DoCommandResponse::mutable_result() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_result(); // @@protoc_insertion_point(field_mutable:viam.common.v1.DoCommandResponse.result) return _msg; } -inline void DoCommandResponse::set_allocated_result(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void DoCommandResponse::set_allocated_result(::PROTOBUF_NAMESPACE_ID::Struct* result) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.result_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(result_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (result) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(result)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, result, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.result_ = reinterpret_cast<::google::protobuf::Struct*>(value); + result_ = result; // @@protoc_insertion_point(field_set_allocated:viam.common.v1.DoCommandResponse.result) } @@ -8218,145 +7157,136 @@ inline void DoCommandResponse::set_allocated_result(::google::protobuf::Struct* // string name = 1 [json_name = "name"]; inline void GetKinematicsRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& GetKinematicsRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetKinematicsRequest::name() const { // @@protoc_insertion_point(field_get:viam.common.v1.GetKinematicsRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetKinematicsRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetKinematicsRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.common.v1.GetKinematicsRequest.name) } -inline std::string* GetKinematicsRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetKinematicsRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.common.v1.GetKinematicsRequest.name) return _s; } inline const std::string& GetKinematicsRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void GetKinematicsRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* GetKinematicsRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* GetKinematicsRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.common.v1.GetKinematicsRequest.name) - return _impl_.name_.Release(); -} -inline void GetKinematicsRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void GetKinematicsRequest::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.GetKinematicsRequest.name) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetKinematicsRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool GetKinematicsRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& GetKinematicsRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetKinematicsRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& GetKinematicsRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetKinematicsRequest::extra() const { // @@protoc_insertion_point(field_get:viam.common.v1.GetKinematicsRequest.extra) return _internal_extra(); } -inline void GetKinematicsRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void GetKinematicsRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.common.v1.GetKinematicsRequest.extra) } -inline ::google::protobuf::Struct* GetKinematicsRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetKinematicsRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* GetKinematicsRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetKinematicsRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.common.v1.GetKinematicsRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* GetKinematicsRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetKinematicsRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* GetKinematicsRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetKinematicsRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.common.v1.GetKinematicsRequest.extra) return _msg; } -inline void GetKinematicsRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetKinematicsRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.common.v1.GetKinematicsRequest.extra) } @@ -8366,77 +7296,71 @@ inline void GetKinematicsRequest::set_allocated_extra(::google::protobuf::Struct // .viam.common.v1.KinematicsFileFormat format = 1 [json_name = "format"]; inline void GetKinematicsResponse::clear_format() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.format_ = 0; + format_ = 0; +} +inline ::viam::common::v1::KinematicsFileFormat GetKinematicsResponse::_internal_format() const { + return static_cast< ::viam::common::v1::KinematicsFileFormat >(format_); } inline ::viam::common::v1::KinematicsFileFormat GetKinematicsResponse::format() const { // @@protoc_insertion_point(field_get:viam.common.v1.GetKinematicsResponse.format) return _internal_format(); } +inline void GetKinematicsResponse::_internal_set_format(::viam::common::v1::KinematicsFileFormat value) { + + format_ = value; +} inline void GetKinematicsResponse::set_format(::viam::common::v1::KinematicsFileFormat value) { _internal_set_format(value); // @@protoc_insertion_point(field_set:viam.common.v1.GetKinematicsResponse.format) } -inline ::viam::common::v1::KinematicsFileFormat GetKinematicsResponse::_internal_format() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::viam::common::v1::KinematicsFileFormat>(_impl_.format_); -} -inline void GetKinematicsResponse::_internal_set_format(::viam::common::v1::KinematicsFileFormat value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.format_ = value; -} // bytes kinematics_data = 2 [json_name = "kinematicsData"]; inline void GetKinematicsResponse::clear_kinematics_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.kinematics_data_.ClearToEmpty(); + kinematics_data_.ClearToEmpty(); } -inline const std::string& GetKinematicsResponse::kinematics_data() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetKinematicsResponse::kinematics_data() const { // @@protoc_insertion_point(field_get:viam.common.v1.GetKinematicsResponse.kinematics_data) return _internal_kinematics_data(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetKinematicsResponse::set_kinematics_data(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.kinematics_data_.SetBytes(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetKinematicsResponse::set_kinematics_data(ArgT0&& arg0, ArgT... args) { + + kinematics_data_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.common.v1.GetKinematicsResponse.kinematics_data) } -inline std::string* GetKinematicsResponse::mutable_kinematics_data() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetKinematicsResponse::mutable_kinematics_data() { std::string* _s = _internal_mutable_kinematics_data(); // @@protoc_insertion_point(field_mutable:viam.common.v1.GetKinematicsResponse.kinematics_data) return _s; } inline const std::string& GetKinematicsResponse::_internal_kinematics_data() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.kinematics_data_.Get(); + return kinematics_data_.Get(); } inline void GetKinematicsResponse::_internal_set_kinematics_data(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.kinematics_data_.Set(value, GetArena()); + + kinematics_data_.Set(value, GetArenaForAllocation()); } inline std::string* GetKinematicsResponse::_internal_mutable_kinematics_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.kinematics_data_.Mutable( GetArena()); + + return kinematics_data_.Mutable(GetArenaForAllocation()); } inline std::string* GetKinematicsResponse::release_kinematics_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.common.v1.GetKinematicsResponse.kinematics_data) - return _impl_.kinematics_data_.Release(); -} -inline void GetKinematicsResponse::set_allocated_kinematics_data(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.kinematics_data_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.kinematics_data_.IsDefault()) { - _impl_.kinematics_data_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return kinematics_data_.Release(); +} +inline void GetKinematicsResponse::set_allocated_kinematics_data(std::string* kinematics_data) { + if (kinematics_data != nullptr) { + + } else { + + } + kinematics_data_.SetAllocated(kinematics_data, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (kinematics_data_.IsDefault()) { + kinematics_data_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.common.v1.GetKinematicsResponse.kinematics_data) } @@ -8446,145 +7370,136 @@ inline void GetKinematicsResponse::set_allocated_kinematics_data(std::string* va // string name = 1 [json_name = "name"]; inline void GetGeometriesRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& GetGeometriesRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetGeometriesRequest::name() const { // @@protoc_insertion_point(field_get:viam.common.v1.GetGeometriesRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetGeometriesRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetGeometriesRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.common.v1.GetGeometriesRequest.name) } -inline std::string* GetGeometriesRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetGeometriesRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.common.v1.GetGeometriesRequest.name) return _s; } inline const std::string& GetGeometriesRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void GetGeometriesRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* GetGeometriesRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* GetGeometriesRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.common.v1.GetGeometriesRequest.name) - return _impl_.name_.Release(); -} -inline void GetGeometriesRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void GetGeometriesRequest::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.GetGeometriesRequest.name) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetGeometriesRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool GetGeometriesRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& GetGeometriesRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetGeometriesRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& GetGeometriesRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetGeometriesRequest::extra() const { // @@protoc_insertion_point(field_get:viam.common.v1.GetGeometriesRequest.extra) return _internal_extra(); } -inline void GetGeometriesRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void GetGeometriesRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.common.v1.GetGeometriesRequest.extra) } -inline ::google::protobuf::Struct* GetGeometriesRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetGeometriesRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* GetGeometriesRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetGeometriesRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.common.v1.GetGeometriesRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* GetGeometriesRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetGeometriesRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* GetGeometriesRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetGeometriesRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.common.v1.GetGeometriesRequest.extra) return _msg; } -inline void GetGeometriesRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetGeometriesRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.common.v1.GetGeometriesRequest.extra) } @@ -8594,51 +7509,42 @@ inline void GetGeometriesRequest::set_allocated_extra(::google::protobuf::Struct // repeated .viam.common.v1.Geometry geometries = 1 [json_name = "geometries"]; inline int GetGeometriesResponse::_internal_geometries_size() const { - return _internal_geometries().size(); + return geometries_.size(); } inline int GetGeometriesResponse::geometries_size() const { return _internal_geometries_size(); } inline void GetGeometriesResponse::clear_geometries() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.geometries_.Clear(); + geometries_.Clear(); } -inline ::viam::common::v1::Geometry* GetGeometriesResponse::mutable_geometries(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::Geometry* GetGeometriesResponse::mutable_geometries(int index) { // @@protoc_insertion_point(field_mutable:viam.common.v1.GetGeometriesResponse.geometries) - return _internal_mutable_geometries()->Mutable(index); + return geometries_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::common::v1::Geometry>* GetGeometriesResponse::mutable_geometries() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Geometry >* +GetGeometriesResponse::mutable_geometries() { // @@protoc_insertion_point(field_mutable_list:viam.common.v1.GetGeometriesResponse.geometries) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_geometries(); + return &geometries_; +} +inline const ::viam::common::v1::Geometry& GetGeometriesResponse::_internal_geometries(int index) const { + return geometries_.Get(index); } -inline const ::viam::common::v1::Geometry& GetGeometriesResponse::geometries(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::Geometry& GetGeometriesResponse::geometries(int index) const { // @@protoc_insertion_point(field_get:viam.common.v1.GetGeometriesResponse.geometries) - return _internal_geometries().Get(index); + return _internal_geometries(index); } -inline ::viam::common::v1::Geometry* GetGeometriesResponse::add_geometries() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::common::v1::Geometry* _add = _internal_mutable_geometries()->Add(); +inline ::viam::common::v1::Geometry* GetGeometriesResponse::_internal_add_geometries() { + return geometries_.Add(); +} +inline ::viam::common::v1::Geometry* GetGeometriesResponse::add_geometries() { + ::viam::common::v1::Geometry* _add = _internal_add_geometries(); // @@protoc_insertion_point(field_add:viam.common.v1.GetGeometriesResponse.geometries) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::common::v1::Geometry>& GetGeometriesResponse::geometries() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Geometry >& +GetGeometriesResponse::geometries() const { // @@protoc_insertion_point(field_list:viam.common.v1.GetGeometriesResponse.geometries) - return _internal_geometries(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::common::v1::Geometry>& -GetGeometriesResponse::_internal_geometries() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.geometries_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::common::v1::Geometry>* -GetGeometriesResponse::_internal_mutable_geometries() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.geometries_; + return geometries_; } // ------------------------------------------------------------------- @@ -8647,145 +7553,136 @@ GetGeometriesResponse::_internal_mutable_geometries() { // string name = 1 [json_name = "name"]; inline void GetReadingsRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& GetReadingsRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +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(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +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() ABSL_ATTRIBUTE_LIFETIME_BOUND { +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 { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void GetReadingsRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* GetReadingsRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* GetReadingsRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.common.v1.GetReadingsRequest.name) - return _impl_.name_.Release(); -} -inline void GetReadingsRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + 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 { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& GetReadingsRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +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 ::google::protobuf::Struct& GetReadingsRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +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(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.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_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.common.v1.GetReadingsRequest.extra) } -inline ::google::protobuf::Struct* GetReadingsRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +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<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* GetReadingsRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetReadingsRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.common.v1.GetReadingsRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* GetReadingsRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetReadingsRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* GetReadingsRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_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(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +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<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.common.v1.GetReadingsRequest.extra) } @@ -8797,24 +7694,26 @@ inline void GetReadingsRequest::set_allocated_extra(::google::protobuf::Struct* // map readings = 1 [json_name = "readings"]; inline int GetReadingsResponse::_internal_readings_size() const { - return _internal_readings().size(); + return readings_.size(); } inline int GetReadingsResponse::readings_size() const { return _internal_readings_size(); } -inline const ::google::protobuf::Map& GetReadingsResponse::_internal_readings() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.readings_.GetMap(); +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >& +GetReadingsResponse::_internal_readings() const { + return readings_.GetMap(); } -inline const ::google::protobuf::Map& GetReadingsResponse::readings() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +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 ::google::protobuf::Map* GetReadingsResponse::_internal_mutable_readings() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.readings_.MutableMap(); +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >* +GetReadingsResponse::_internal_mutable_readings() { + return readings_.MutableMap(); } -inline ::google::protobuf::Map* GetReadingsResponse::mutable_readings() ABSL_ATTRIBUTE_LIFETIME_BOUND { +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(); } @@ -8825,521 +7724,534 @@ inline ::google::protobuf::Map* GetReadi // string host = 1 [json_name = "host"]; inline void LogEntry::clear_host() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.host_.ClearToEmpty(); + host_.ClearToEmpty(); } -inline const std::string& LogEntry::host() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& LogEntry::host() const { // @@protoc_insertion_point(field_get:viam.common.v1.LogEntry.host) return _internal_host(); } -template -inline PROTOBUF_ALWAYS_INLINE void LogEntry::set_host(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.host_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void LogEntry::set_host(ArgT0&& arg0, ArgT... args) { + + host_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.common.v1.LogEntry.host) } -inline std::string* LogEntry::mutable_host() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* LogEntry::mutable_host() { std::string* _s = _internal_mutable_host(); // @@protoc_insertion_point(field_mutable:viam.common.v1.LogEntry.host) return _s; } inline const std::string& LogEntry::_internal_host() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.host_.Get(); + return host_.Get(); } inline void LogEntry::_internal_set_host(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.host_.Set(value, GetArena()); + + host_.Set(value, GetArenaForAllocation()); } inline std::string* LogEntry::_internal_mutable_host() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.host_.Mutable( GetArena()); + + return host_.Mutable(GetArenaForAllocation()); } inline std::string* LogEntry::release_host() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.common.v1.LogEntry.host) - return _impl_.host_.Release(); -} -inline void LogEntry::set_allocated_host(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.host_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.host_.IsDefault()) { - _impl_.host_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return host_.Release(); +} +inline void LogEntry::set_allocated_host(std::string* host) { + if (host != nullptr) { + + } else { + + } + host_.SetAllocated(host, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (host_.IsDefault()) { + host_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.common.v1.LogEntry.host) } // string level = 2 [json_name = "level"]; inline void LogEntry::clear_level() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.level_.ClearToEmpty(); + level_.ClearToEmpty(); } -inline const std::string& LogEntry::level() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& LogEntry::level() const { // @@protoc_insertion_point(field_get:viam.common.v1.LogEntry.level) return _internal_level(); } -template -inline PROTOBUF_ALWAYS_INLINE void LogEntry::set_level(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.level_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void LogEntry::set_level(ArgT0&& arg0, ArgT... args) { + + level_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.common.v1.LogEntry.level) } -inline std::string* LogEntry::mutable_level() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* LogEntry::mutable_level() { std::string* _s = _internal_mutable_level(); // @@protoc_insertion_point(field_mutable:viam.common.v1.LogEntry.level) return _s; } inline const std::string& LogEntry::_internal_level() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.level_.Get(); + return level_.Get(); } inline void LogEntry::_internal_set_level(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.level_.Set(value, GetArena()); + + level_.Set(value, GetArenaForAllocation()); } inline std::string* LogEntry::_internal_mutable_level() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.level_.Mutable( GetArena()); + + return level_.Mutable(GetArenaForAllocation()); } inline std::string* LogEntry::release_level() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.common.v1.LogEntry.level) - return _impl_.level_.Release(); -} -inline void LogEntry::set_allocated_level(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.level_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.level_.IsDefault()) { - _impl_.level_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return level_.Release(); +} +inline void LogEntry::set_allocated_level(std::string* level) { + if (level != nullptr) { + + } else { + + } + level_.SetAllocated(level, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (level_.IsDefault()) { + level_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.common.v1.LogEntry.level) } // .google.protobuf.Timestamp time = 3 [json_name = "time"]; +inline bool LogEntry::_internal_has_time() const { + return this != internal_default_instance() && time_ != nullptr; +} inline bool LogEntry::has_time() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.time_ != nullptr); - return value; + return _internal_has_time(); } -inline const ::google::protobuf::Timestamp& LogEntry::_internal_time() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Timestamp* p = _impl_.time_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& LogEntry::_internal_time() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = time_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); } -inline const ::google::protobuf::Timestamp& LogEntry::time() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& LogEntry::time() const { // @@protoc_insertion_point(field_get:viam.common.v1.LogEntry.time) return _internal_time(); } -inline void LogEntry::unsafe_arena_set_allocated_time(::google::protobuf::Timestamp* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.time_); +inline void LogEntry::unsafe_arena_set_allocated_time( + ::PROTOBUF_NAMESPACE_ID::Timestamp* time) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(time_); } - _impl_.time_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + time_ = time; + if (time) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.common.v1.LogEntry.time) } -inline ::google::protobuf::Timestamp* LogEntry::release_time() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Timestamp* released = _impl_.time_; - _impl_.time_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* LogEntry::release_time() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = time_; + time_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Timestamp* LogEntry::unsafe_arena_release_time() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* LogEntry::unsafe_arena_release_time() { // @@protoc_insertion_point(field_release:viam.common.v1.LogEntry.time) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Timestamp* temp = _impl_.time_; - _impl_.time_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = time_; + time_ = nullptr; return temp; } -inline ::google::protobuf::Timestamp* LogEntry::_internal_mutable_time() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.time_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena()); - _impl_.time_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* LogEntry::_internal_mutable_time() { + + if (time_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + time_ = p; } - return _impl_.time_; + return time_; } -inline ::google::protobuf::Timestamp* LogEntry::mutable_time() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Timestamp* _msg = _internal_mutable_time(); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* LogEntry::mutable_time() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_time(); // @@protoc_insertion_point(field_mutable:viam.common.v1.LogEntry.time) return _msg; } -inline void LogEntry::set_allocated_time(::google::protobuf::Timestamp* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void LogEntry::set_allocated_time(::PROTOBUF_NAMESPACE_ID::Timestamp* time) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.time_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(time_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (time) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(time)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, time, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.time_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); + time_ = time; // @@protoc_insertion_point(field_set_allocated:viam.common.v1.LogEntry.time) } // string logger_name = 4 [json_name = "loggerName"]; inline void LogEntry::clear_logger_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.logger_name_.ClearToEmpty(); + logger_name_.ClearToEmpty(); } -inline const std::string& LogEntry::logger_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& LogEntry::logger_name() const { // @@protoc_insertion_point(field_get:viam.common.v1.LogEntry.logger_name) return _internal_logger_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void LogEntry::set_logger_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.logger_name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void LogEntry::set_logger_name(ArgT0&& arg0, ArgT... args) { + + logger_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.common.v1.LogEntry.logger_name) } -inline std::string* LogEntry::mutable_logger_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* LogEntry::mutable_logger_name() { std::string* _s = _internal_mutable_logger_name(); // @@protoc_insertion_point(field_mutable:viam.common.v1.LogEntry.logger_name) return _s; } inline const std::string& LogEntry::_internal_logger_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.logger_name_.Get(); + return logger_name_.Get(); } inline void LogEntry::_internal_set_logger_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.logger_name_.Set(value, GetArena()); + + logger_name_.Set(value, GetArenaForAllocation()); } inline std::string* LogEntry::_internal_mutable_logger_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.logger_name_.Mutable( GetArena()); + + return logger_name_.Mutable(GetArenaForAllocation()); } inline std::string* LogEntry::release_logger_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.common.v1.LogEntry.logger_name) - return _impl_.logger_name_.Release(); -} -inline void LogEntry::set_allocated_logger_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.logger_name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.logger_name_.IsDefault()) { - _impl_.logger_name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return logger_name_.Release(); +} +inline void LogEntry::set_allocated_logger_name(std::string* logger_name) { + if (logger_name != nullptr) { + + } else { + + } + logger_name_.SetAllocated(logger_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (logger_name_.IsDefault()) { + logger_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.common.v1.LogEntry.logger_name) } // string message = 5 [json_name = "message"]; inline void LogEntry::clear_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.message_.ClearToEmpty(); + message_.ClearToEmpty(); } -inline const std::string& LogEntry::message() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& LogEntry::message() const { // @@protoc_insertion_point(field_get:viam.common.v1.LogEntry.message) return _internal_message(); } -template -inline PROTOBUF_ALWAYS_INLINE void LogEntry::set_message(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.message_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void LogEntry::set_message(ArgT0&& arg0, ArgT... args) { + + message_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.common.v1.LogEntry.message) } -inline std::string* LogEntry::mutable_message() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* LogEntry::mutable_message() { std::string* _s = _internal_mutable_message(); // @@protoc_insertion_point(field_mutable:viam.common.v1.LogEntry.message) return _s; } inline const std::string& LogEntry::_internal_message() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.message_.Get(); + return message_.Get(); } inline void LogEntry::_internal_set_message(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.message_.Set(value, GetArena()); + + message_.Set(value, GetArenaForAllocation()); } inline std::string* LogEntry::_internal_mutable_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.message_.Mutable( GetArena()); + + return message_.Mutable(GetArenaForAllocation()); } inline std::string* LogEntry::release_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.common.v1.LogEntry.message) - return _impl_.message_.Release(); -} -inline void LogEntry::set_allocated_message(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.message_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.message_.IsDefault()) { - _impl_.message_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return message_.Release(); +} +inline void LogEntry::set_allocated_message(std::string* message) { + if (message != nullptr) { + + } else { + + } + message_.SetAllocated(message, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (message_.IsDefault()) { + message_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.common.v1.LogEntry.message) } // .google.protobuf.Struct caller = 6 [json_name = "caller"]; +inline bool LogEntry::_internal_has_caller() const { + return this != internal_default_instance() && caller_ != nullptr; +} inline bool LogEntry::has_caller() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.caller_ != nullptr); - return value; + return _internal_has_caller(); } -inline const ::google::protobuf::Struct& LogEntry::_internal_caller() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.caller_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& LogEntry::_internal_caller() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = caller_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& LogEntry::caller() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& LogEntry::caller() const { // @@protoc_insertion_point(field_get:viam.common.v1.LogEntry.caller) return _internal_caller(); } -inline void LogEntry::unsafe_arena_set_allocated_caller(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.caller_); +inline void LogEntry::unsafe_arena_set_allocated_caller( + ::PROTOBUF_NAMESPACE_ID::Struct* caller) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(caller_); } - _impl_.caller_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + caller_ = caller; + if (caller) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.common.v1.LogEntry.caller) } -inline ::google::protobuf::Struct* LogEntry::release_caller() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Struct* released = _impl_.caller_; - _impl_.caller_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* LogEntry::release_caller() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = caller_; + caller_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* LogEntry::unsafe_arena_release_caller() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* LogEntry::unsafe_arena_release_caller() { // @@protoc_insertion_point(field_release:viam.common.v1.LogEntry.caller) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Struct* temp = _impl_.caller_; - _impl_.caller_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = caller_; + caller_ = nullptr; return temp; } -inline ::google::protobuf::Struct* LogEntry::_internal_mutable_caller() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.caller_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.caller_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* LogEntry::_internal_mutable_caller() { + + if (caller_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + caller_ = p; } - return _impl_.caller_; + return caller_; } -inline ::google::protobuf::Struct* LogEntry::mutable_caller() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_caller(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* LogEntry::mutable_caller() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_caller(); // @@protoc_insertion_point(field_mutable:viam.common.v1.LogEntry.caller) return _msg; } -inline void LogEntry::set_allocated_caller(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void LogEntry::set_allocated_caller(::PROTOBUF_NAMESPACE_ID::Struct* caller) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.caller_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(caller_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (caller) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(caller)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + caller = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, caller, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.caller_ = reinterpret_cast<::google::protobuf::Struct*>(value); + caller_ = caller; // @@protoc_insertion_point(field_set_allocated:viam.common.v1.LogEntry.caller) } // string stack = 7 [json_name = "stack"]; inline void LogEntry::clear_stack() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.stack_.ClearToEmpty(); + stack_.ClearToEmpty(); } -inline const std::string& LogEntry::stack() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& LogEntry::stack() const { // @@protoc_insertion_point(field_get:viam.common.v1.LogEntry.stack) return _internal_stack(); } -template -inline PROTOBUF_ALWAYS_INLINE void LogEntry::set_stack(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.stack_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void LogEntry::set_stack(ArgT0&& arg0, ArgT... args) { + + stack_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.common.v1.LogEntry.stack) } -inline std::string* LogEntry::mutable_stack() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* LogEntry::mutable_stack() { std::string* _s = _internal_mutable_stack(); // @@protoc_insertion_point(field_mutable:viam.common.v1.LogEntry.stack) return _s; } inline const std::string& LogEntry::_internal_stack() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.stack_.Get(); + return stack_.Get(); } inline void LogEntry::_internal_set_stack(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.stack_.Set(value, GetArena()); + + stack_.Set(value, GetArenaForAllocation()); } inline std::string* LogEntry::_internal_mutable_stack() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.stack_.Mutable( GetArena()); + + return stack_.Mutable(GetArenaForAllocation()); } inline std::string* LogEntry::release_stack() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.common.v1.LogEntry.stack) - return _impl_.stack_.Release(); -} -inline void LogEntry::set_allocated_stack(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.stack_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.stack_.IsDefault()) { - _impl_.stack_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return stack_.Release(); +} +inline void LogEntry::set_allocated_stack(std::string* stack) { + if (stack != nullptr) { + + } else { + + } + stack_.SetAllocated(stack, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (stack_.IsDefault()) { + stack_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.common.v1.LogEntry.stack) } // repeated .google.protobuf.Struct fields = 8 [json_name = "fields"]; inline int LogEntry::_internal_fields_size() const { - return _internal_fields().size(); + return fields_.size(); } inline int LogEntry::fields_size() const { return _internal_fields_size(); } -inline ::google::protobuf::Struct* LogEntry::mutable_fields(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::Struct* LogEntry::mutable_fields(int index) { // @@protoc_insertion_point(field_mutable:viam.common.v1.LogEntry.fields) - return _internal_mutable_fields()->Mutable(index); + return fields_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::google::protobuf::Struct>* LogEntry::mutable_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Struct >* +LogEntry::mutable_fields() { // @@protoc_insertion_point(field_mutable_list:viam.common.v1.LogEntry.fields) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_fields(); + return &fields_; } -inline const ::google::protobuf::Struct& LogEntry::fields(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& LogEntry::_internal_fields(int index) const { + return fields_.Get(index); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& LogEntry::fields(int index) const { // @@protoc_insertion_point(field_get:viam.common.v1.LogEntry.fields) - return _internal_fields().Get(index); + return _internal_fields(index); +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* LogEntry::_internal_add_fields() { + return fields_.Add(); } -inline ::google::protobuf::Struct* LogEntry::add_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::google::protobuf::Struct* _add = _internal_mutable_fields()->Add(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* LogEntry::add_fields() { + ::PROTOBUF_NAMESPACE_ID::Struct* _add = _internal_add_fields(); // @@protoc_insertion_point(field_add:viam.common.v1.LogEntry.fields) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::google::protobuf::Struct>& LogEntry::fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Struct >& +LogEntry::fields() const { // @@protoc_insertion_point(field_list:viam.common.v1.LogEntry.fields) - return _internal_fields(); -} -inline const ::google::protobuf::RepeatedPtrField<::google::protobuf::Struct>& -LogEntry::_internal_fields() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.fields_; -} -inline ::google::protobuf::RepeatedPtrField<::google::protobuf::Struct>* -LogEntry::_internal_mutable_fields() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.fields_; + return fields_; } #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) + } // namespace v1 } // namespace common } // namespace viam +PROTOBUF_NAMESPACE_OPEN -namespace google { -namespace protobuf { - +template <> struct is_proto_enum< ::viam::common::v1::KinematicsFileFormat> : ::std::true_type {}; template <> -struct is_proto_enum<::viam::common::v1::KinematicsFileFormat> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::viam::common::v1::KinematicsFileFormat>() { +inline const EnumDescriptor* GetEnumDescriptor< ::viam::common::v1::KinematicsFileFormat>() { return ::viam::common::v1::KinematicsFileFormat_descriptor(); } -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_common_2fv1_2fcommon_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_common_2fv1_2fcommon_2eproto diff --git a/src/viam/api/component/arm/v1/arm.grpc.pb.cc b/src/viam/api/component/arm/v1/arm.grpc.pb.cc index 5a55cd23c..18bbf374a 100644 --- a/src/viam/api/component/arm/v1/arm.grpc.pb.cc +++ b/src/viam/api/component/arm/v1/arm.grpc.pb.cc @@ -6,19 +6,19 @@ #include "component/arm/v1/arm.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace component { namespace arm { @@ -39,260 +39,310 @@ static const char* ArmService_method_names[] = { std::unique_ptr< ArmService::Stub> ArmService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { (void)options; - std::unique_ptr< ArmService::Stub> stub(new ArmService::Stub(channel, options)); + std::unique_ptr< ArmService::Stub> stub(new ArmService::Stub(channel)); return stub; } -ArmService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) - : channel_(channel), rpcmethod_GetEndPosition_(ArmService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_MoveToPosition_(ArmService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetJointPositions_(ArmService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_MoveToJointPositions_(ArmService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_MoveThroughJointPositions_(ArmService_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_Stop_(ArmService_method_names[5], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_IsMoving_(ArmService_method_names[6], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_DoCommand_(ArmService_method_names[7], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetKinematics_(ArmService_method_names[8], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetGeometries_(ArmService_method_names[9], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) +ArmService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_GetEndPosition_(ArmService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_MoveToPosition_(ArmService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetJointPositions_(ArmService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_MoveToJointPositions_(ArmService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_MoveThroughJointPositions_(ArmService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_Stop_(ArmService_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_IsMoving_(ArmService_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DoCommand_(ArmService_method_names[7], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetKinematics_(ArmService_method_names[8], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetGeometries_(ArmService_method_names[9], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status ArmService::Stub::GetEndPosition(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetEndPositionRequest& request, ::viam::component::arm::v1::GetEndPositionResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::arm::v1::GetEndPositionRequest, ::viam::component::arm::v1::GetEndPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetEndPosition_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetEndPosition_, context, request, response); } -void ArmService::Stub::async::GetEndPosition(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetEndPositionRequest* request, ::viam::component::arm::v1::GetEndPositionResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::arm::v1::GetEndPositionRequest, ::viam::component::arm::v1::GetEndPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetEndPosition_, context, request, response, std::move(f)); +void ArmService::Stub::experimental_async::GetEndPosition(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetEndPositionRequest* request, ::viam::component::arm::v1::GetEndPositionResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetEndPosition_, context, request, response, std::move(f)); } -void ArmService::Stub::async::GetEndPosition(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetEndPositionRequest* request, ::viam::component::arm::v1::GetEndPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetEndPosition_, context, request, response, reactor); +void ArmService::Stub::experimental_async::GetEndPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::arm::v1::GetEndPositionResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetEndPosition_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::GetEndPositionResponse>* ArmService::Stub::PrepareAsyncGetEndPositionRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetEndPositionRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::arm::v1::GetEndPositionResponse, ::viam::component::arm::v1::GetEndPositionRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetEndPosition_, context, request); +void ArmService::Stub::experimental_async::GetEndPosition(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetEndPositionRequest* request, ::viam::component::arm::v1::GetEndPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetEndPosition_, context, request, response, reactor); +} + +void ArmService::Stub::experimental_async::GetEndPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::arm::v1::GetEndPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetEndPosition_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::GetEndPositionResponse>* ArmService::Stub::AsyncGetEndPositionRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetEndPositionRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetEndPositionRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::arm::v1::GetEndPositionResponse>::Create(channel_.get(), cq, rpcmethod_GetEndPosition_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::GetEndPositionResponse>* ArmService::Stub::PrepareAsyncGetEndPositionRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetEndPositionRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::arm::v1::GetEndPositionResponse>::Create(channel_.get(), cq, rpcmethod_GetEndPosition_, context, request, false); } ::grpc::Status ArmService::Stub::MoveToPosition(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToPositionRequest& request, ::viam::component::arm::v1::MoveToPositionResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::arm::v1::MoveToPositionRequest, ::viam::component::arm::v1::MoveToPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_MoveToPosition_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_MoveToPosition_, context, request, response); } -void ArmService::Stub::async::MoveToPosition(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToPositionRequest* request, ::viam::component::arm::v1::MoveToPositionResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::arm::v1::MoveToPositionRequest, ::viam::component::arm::v1::MoveToPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_MoveToPosition_, context, request, response, std::move(f)); +void ArmService::Stub::experimental_async::MoveToPosition(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToPositionRequest* request, ::viam::component::arm::v1::MoveToPositionResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_MoveToPosition_, context, request, response, std::move(f)); } -void ArmService::Stub::async::MoveToPosition(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToPositionRequest* request, ::viam::component::arm::v1::MoveToPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_MoveToPosition_, context, request, response, reactor); +void ArmService::Stub::experimental_async::MoveToPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::arm::v1::MoveToPositionResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_MoveToPosition_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::MoveToPositionResponse>* ArmService::Stub::PrepareAsyncMoveToPositionRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToPositionRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::arm::v1::MoveToPositionResponse, ::viam::component::arm::v1::MoveToPositionRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_MoveToPosition_, context, request); +void ArmService::Stub::experimental_async::MoveToPosition(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToPositionRequest* request, ::viam::component::arm::v1::MoveToPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_MoveToPosition_, context, request, response, reactor); +} + +void ArmService::Stub::experimental_async::MoveToPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::arm::v1::MoveToPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_MoveToPosition_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::MoveToPositionResponse>* ArmService::Stub::AsyncMoveToPositionRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToPositionRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncMoveToPositionRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::arm::v1::MoveToPositionResponse>::Create(channel_.get(), cq, rpcmethod_MoveToPosition_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::MoveToPositionResponse>* ArmService::Stub::PrepareAsyncMoveToPositionRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToPositionRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::arm::v1::MoveToPositionResponse>::Create(channel_.get(), cq, rpcmethod_MoveToPosition_, context, request, false); } ::grpc::Status ArmService::Stub::GetJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetJointPositionsRequest& request, ::viam::component::arm::v1::GetJointPositionsResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::arm::v1::GetJointPositionsRequest, ::viam::component::arm::v1::GetJointPositionsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetJointPositions_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetJointPositions_, context, request, response); } -void ArmService::Stub::async::GetJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetJointPositionsRequest* request, ::viam::component::arm::v1::GetJointPositionsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::arm::v1::GetJointPositionsRequest, ::viam::component::arm::v1::GetJointPositionsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetJointPositions_, context, request, response, std::move(f)); +void ArmService::Stub::experimental_async::GetJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetJointPositionsRequest* request, ::viam::component::arm::v1::GetJointPositionsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetJointPositions_, context, request, response, std::move(f)); } -void ArmService::Stub::async::GetJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetJointPositionsRequest* request, ::viam::component::arm::v1::GetJointPositionsResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetJointPositions_, context, request, response, reactor); +void ArmService::Stub::experimental_async::GetJointPositions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::arm::v1::GetJointPositionsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetJointPositions_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::GetJointPositionsResponse>* ArmService::Stub::PrepareAsyncGetJointPositionsRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetJointPositionsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::arm::v1::GetJointPositionsResponse, ::viam::component::arm::v1::GetJointPositionsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetJointPositions_, context, request); +void ArmService::Stub::experimental_async::GetJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetJointPositionsRequest* request, ::viam::component::arm::v1::GetJointPositionsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetJointPositions_, context, request, response, reactor); +} + +void ArmService::Stub::experimental_async::GetJointPositions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::arm::v1::GetJointPositionsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetJointPositions_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::GetJointPositionsResponse>* ArmService::Stub::AsyncGetJointPositionsRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetJointPositionsRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetJointPositionsRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::arm::v1::GetJointPositionsResponse>::Create(channel_.get(), cq, rpcmethod_GetJointPositions_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::GetJointPositionsResponse>* ArmService::Stub::PrepareAsyncGetJointPositionsRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetJointPositionsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::arm::v1::GetJointPositionsResponse>::Create(channel_.get(), cq, rpcmethod_GetJointPositions_, context, request, false); } ::grpc::Status ArmService::Stub::MoveToJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToJointPositionsRequest& request, ::viam::component::arm::v1::MoveToJointPositionsResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::arm::v1::MoveToJointPositionsRequest, ::viam::component::arm::v1::MoveToJointPositionsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_MoveToJointPositions_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_MoveToJointPositions_, context, request, response); } -void ArmService::Stub::async::MoveToJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToJointPositionsRequest* request, ::viam::component::arm::v1::MoveToJointPositionsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::arm::v1::MoveToJointPositionsRequest, ::viam::component::arm::v1::MoveToJointPositionsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_MoveToJointPositions_, context, request, response, std::move(f)); +void ArmService::Stub::experimental_async::MoveToJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToJointPositionsRequest* request, ::viam::component::arm::v1::MoveToJointPositionsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_MoveToJointPositions_, context, request, response, std::move(f)); } -void ArmService::Stub::async::MoveToJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToJointPositionsRequest* request, ::viam::component::arm::v1::MoveToJointPositionsResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_MoveToJointPositions_, context, request, response, reactor); +void ArmService::Stub::experimental_async::MoveToJointPositions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::arm::v1::MoveToJointPositionsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_MoveToJointPositions_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::MoveToJointPositionsResponse>* ArmService::Stub::PrepareAsyncMoveToJointPositionsRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToJointPositionsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::arm::v1::MoveToJointPositionsResponse, ::viam::component::arm::v1::MoveToJointPositionsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_MoveToJointPositions_, context, request); +void ArmService::Stub::experimental_async::MoveToJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToJointPositionsRequest* request, ::viam::component::arm::v1::MoveToJointPositionsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_MoveToJointPositions_, context, request, response, reactor); +} + +void ArmService::Stub::experimental_async::MoveToJointPositions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::arm::v1::MoveToJointPositionsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_MoveToJointPositions_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::MoveToJointPositionsResponse>* ArmService::Stub::AsyncMoveToJointPositionsRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToJointPositionsRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncMoveToJointPositionsRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::arm::v1::MoveToJointPositionsResponse>::Create(channel_.get(), cq, rpcmethod_MoveToJointPositions_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::MoveToJointPositionsResponse>* ArmService::Stub::PrepareAsyncMoveToJointPositionsRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToJointPositionsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::arm::v1::MoveToJointPositionsResponse>::Create(channel_.get(), cq, rpcmethod_MoveToJointPositions_, context, request, false); } ::grpc::Status ArmService::Stub::MoveThroughJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveThroughJointPositionsRequest& request, ::viam::component::arm::v1::MoveThroughJointPositionsResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::arm::v1::MoveThroughJointPositionsRequest, ::viam::component::arm::v1::MoveThroughJointPositionsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_MoveThroughJointPositions_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_MoveThroughJointPositions_, context, request, response); } -void ArmService::Stub::async::MoveThroughJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveThroughJointPositionsRequest* request, ::viam::component::arm::v1::MoveThroughJointPositionsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::arm::v1::MoveThroughJointPositionsRequest, ::viam::component::arm::v1::MoveThroughJointPositionsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_MoveThroughJointPositions_, context, request, response, std::move(f)); +void ArmService::Stub::experimental_async::MoveThroughJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveThroughJointPositionsRequest* request, ::viam::component::arm::v1::MoveThroughJointPositionsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_MoveThroughJointPositions_, context, request, response, std::move(f)); } -void ArmService::Stub::async::MoveThroughJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveThroughJointPositionsRequest* request, ::viam::component::arm::v1::MoveThroughJointPositionsResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_MoveThroughJointPositions_, context, request, response, reactor); +void ArmService::Stub::experimental_async::MoveThroughJointPositions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::arm::v1::MoveThroughJointPositionsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_MoveThroughJointPositions_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::MoveThroughJointPositionsResponse>* ArmService::Stub::PrepareAsyncMoveThroughJointPositionsRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveThroughJointPositionsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::arm::v1::MoveThroughJointPositionsResponse, ::viam::component::arm::v1::MoveThroughJointPositionsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_MoveThroughJointPositions_, context, request); +void ArmService::Stub::experimental_async::MoveThroughJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveThroughJointPositionsRequest* request, ::viam::component::arm::v1::MoveThroughJointPositionsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_MoveThroughJointPositions_, context, request, response, reactor); +} + +void ArmService::Stub::experimental_async::MoveThroughJointPositions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::arm::v1::MoveThroughJointPositionsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_MoveThroughJointPositions_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::MoveThroughJointPositionsResponse>* ArmService::Stub::AsyncMoveThroughJointPositionsRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveThroughJointPositionsRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncMoveThroughJointPositionsRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::arm::v1::MoveThroughJointPositionsResponse>::Create(channel_.get(), cq, rpcmethod_MoveThroughJointPositions_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::MoveThroughJointPositionsResponse>* ArmService::Stub::PrepareAsyncMoveThroughJointPositionsRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveThroughJointPositionsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::arm::v1::MoveThroughJointPositionsResponse>::Create(channel_.get(), cq, rpcmethod_MoveThroughJointPositions_, context, request, false); } ::grpc::Status ArmService::Stub::Stop(::grpc::ClientContext* context, const ::viam::component::arm::v1::StopRequest& request, ::viam::component::arm::v1::StopResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::arm::v1::StopRequest, ::viam::component::arm::v1::StopResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Stop_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_Stop_, context, request, response); } -void ArmService::Stub::async::Stop(::grpc::ClientContext* context, const ::viam::component::arm::v1::StopRequest* request, ::viam::component::arm::v1::StopResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::arm::v1::StopRequest, ::viam::component::arm::v1::StopResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, std::move(f)); +void ArmService::Stub::experimental_async::Stop(::grpc::ClientContext* context, const ::viam::component::arm::v1::StopRequest* request, ::viam::component::arm::v1::StopResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, std::move(f)); } -void ArmService::Stub::async::Stop(::grpc::ClientContext* context, const ::viam::component::arm::v1::StopRequest* request, ::viam::component::arm::v1::StopResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, reactor); +void ArmService::Stub::experimental_async::Stop(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::arm::v1::StopResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::StopResponse>* ArmService::Stub::PrepareAsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::arm::v1::StopResponse, ::viam::component::arm::v1::StopRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Stop_, context, request); +void ArmService::Stub::experimental_async::Stop(::grpc::ClientContext* context, const ::viam::component::arm::v1::StopRequest* request, ::viam::component::arm::v1::StopResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, reactor); +} + +void ArmService::Stub::experimental_async::Stop(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::arm::v1::StopResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::StopResponse>* ArmService::Stub::AsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncStopRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::arm::v1::StopResponse>::Create(channel_.get(), cq, rpcmethod_Stop_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::StopResponse>* ArmService::Stub::PrepareAsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::arm::v1::StopResponse>::Create(channel_.get(), cq, rpcmethod_Stop_, context, request, false); } ::grpc::Status ArmService::Stub::IsMoving(::grpc::ClientContext* context, const ::viam::component::arm::v1::IsMovingRequest& request, ::viam::component::arm::v1::IsMovingResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::arm::v1::IsMovingRequest, ::viam::component::arm::v1::IsMovingResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_IsMoving_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_IsMoving_, context, request, response); } -void ArmService::Stub::async::IsMoving(::grpc::ClientContext* context, const ::viam::component::arm::v1::IsMovingRequest* request, ::viam::component::arm::v1::IsMovingResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::arm::v1::IsMovingRequest, ::viam::component::arm::v1::IsMovingResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_IsMoving_, context, request, response, std::move(f)); +void ArmService::Stub::experimental_async::IsMoving(::grpc::ClientContext* context, const ::viam::component::arm::v1::IsMovingRequest* request, ::viam::component::arm::v1::IsMovingResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_IsMoving_, context, request, response, std::move(f)); } -void ArmService::Stub::async::IsMoving(::grpc::ClientContext* context, const ::viam::component::arm::v1::IsMovingRequest* request, ::viam::component::arm::v1::IsMovingResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_IsMoving_, context, request, response, reactor); +void ArmService::Stub::experimental_async::IsMoving(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::arm::v1::IsMovingResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_IsMoving_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::IsMovingResponse>* ArmService::Stub::PrepareAsyncIsMovingRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::IsMovingRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::arm::v1::IsMovingResponse, ::viam::component::arm::v1::IsMovingRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_IsMoving_, context, request); +void ArmService::Stub::experimental_async::IsMoving(::grpc::ClientContext* context, const ::viam::component::arm::v1::IsMovingRequest* request, ::viam::component::arm::v1::IsMovingResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_IsMoving_, context, request, response, reactor); +} + +void ArmService::Stub::experimental_async::IsMoving(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::arm::v1::IsMovingResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_IsMoving_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::IsMovingResponse>* ArmService::Stub::AsyncIsMovingRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::IsMovingRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncIsMovingRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::arm::v1::IsMovingResponse>::Create(channel_.get(), cq, rpcmethod_IsMoving_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::IsMovingResponse>* ArmService::Stub::PrepareAsyncIsMovingRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::IsMovingRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::arm::v1::IsMovingResponse>::Create(channel_.get(), cq, rpcmethod_IsMoving_, context, request, false); } ::grpc::Status ArmService::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); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DoCommand_, context, request, response); } -void ArmService::Stub::async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); +void ArmService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); } -void ArmService::Stub::async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); +void ArmService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* ArmService::Stub::PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::common::v1::DoCommandResponse, ::viam::common::v1::DoCommandRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DoCommand_, context, request); +void ArmService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); +} + +void ArmService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* ArmService::Stub::AsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncDoCommandRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::DoCommandResponse>::Create(channel_.get(), cq, rpcmethod_DoCommand_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* ArmService::Stub::PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::DoCommandResponse>::Create(channel_.get(), cq, rpcmethod_DoCommand_, context, request, false); } ::grpc::Status ArmService::Stub::GetKinematics(::grpc::ClientContext* context, const ::viam::common::v1::GetKinematicsRequest& request, ::viam::common::v1::GetKinematicsResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::common::v1::GetKinematicsRequest, ::viam::common::v1::GetKinematicsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetKinematics_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetKinematics_, context, request, response); } -void ArmService::Stub::async::GetKinematics(::grpc::ClientContext* context, const ::viam::common::v1::GetKinematicsRequest* request, ::viam::common::v1::GetKinematicsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::common::v1::GetKinematicsRequest, ::viam::common::v1::GetKinematicsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetKinematics_, context, request, response, std::move(f)); +void ArmService::Stub::experimental_async::GetKinematics(::grpc::ClientContext* context, const ::viam::common::v1::GetKinematicsRequest* request, ::viam::common::v1::GetKinematicsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetKinematics_, context, request, response, std::move(f)); } -void ArmService::Stub::async::GetKinematics(::grpc::ClientContext* context, const ::viam::common::v1::GetKinematicsRequest* request, ::viam::common::v1::GetKinematicsResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetKinematics_, context, request, response, reactor); +void ArmService::Stub::experimental_async::GetKinematics(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetKinematicsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetKinematics_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetKinematicsResponse>* ArmService::Stub::PrepareAsyncGetKinematicsRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetKinematicsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::common::v1::GetKinematicsResponse, ::viam::common::v1::GetKinematicsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetKinematics_, context, request); +void ArmService::Stub::experimental_async::GetKinematics(::grpc::ClientContext* context, const ::viam::common::v1::GetKinematicsRequest* request, ::viam::common::v1::GetKinematicsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetKinematics_, context, request, response, reactor); +} + +void ArmService::Stub::experimental_async::GetKinematics(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetKinematicsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetKinematics_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetKinematicsResponse>* ArmService::Stub::AsyncGetKinematicsRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetKinematicsRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetKinematicsRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::GetKinematicsResponse>::Create(channel_.get(), cq, rpcmethod_GetKinematics_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetKinematicsResponse>* ArmService::Stub::PrepareAsyncGetKinematicsRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetKinematicsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::GetKinematicsResponse>::Create(channel_.get(), cq, rpcmethod_GetKinematics_, context, request, false); } ::grpc::Status ArmService::Stub::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::viam::common::v1::GetGeometriesResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetGeometries_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetGeometries_, context, request, response); } -void ArmService::Stub::async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, std::move(f)); +void ArmService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, std::move(f)); } -void ArmService::Stub::async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, reactor); +void ArmService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>* ArmService::Stub::PrepareAsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::common::v1::GetGeometriesResponse, ::viam::common::v1::GetGeometriesRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetGeometries_, context, request); +void ArmService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, reactor); +} + +void ArmService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>* ArmService::Stub::AsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetGeometriesRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::GetGeometriesResponse>::Create(channel_.get(), cq, rpcmethod_GetGeometries_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>* ArmService::Stub::PrepareAsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::GetGeometriesResponse>::Create(channel_.get(), cq, rpcmethod_GetGeometries_, context, request, false); } ArmService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( ArmService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< ArmService::Service, ::viam::component::arm::v1::GetEndPositionRequest, ::viam::component::arm::v1::GetEndPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< ArmService::Service, ::viam::component::arm::v1::GetEndPositionRequest, ::viam::component::arm::v1::GetEndPositionResponse>( [](ArmService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::arm::v1::GetEndPositionRequest* req, ::viam::component::arm::v1::GetEndPositionResponse* resp) { return service->GetEndPosition(ctx, req, resp); @@ -300,9 +350,9 @@ ArmService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( ArmService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< ArmService::Service, ::viam::component::arm::v1::MoveToPositionRequest, ::viam::component::arm::v1::MoveToPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< ArmService::Service, ::viam::component::arm::v1::MoveToPositionRequest, ::viam::component::arm::v1::MoveToPositionResponse>( [](ArmService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::arm::v1::MoveToPositionRequest* req, ::viam::component::arm::v1::MoveToPositionResponse* resp) { return service->MoveToPosition(ctx, req, resp); @@ -310,9 +360,9 @@ ArmService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( ArmService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< ArmService::Service, ::viam::component::arm::v1::GetJointPositionsRequest, ::viam::component::arm::v1::GetJointPositionsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< ArmService::Service, ::viam::component::arm::v1::GetJointPositionsRequest, ::viam::component::arm::v1::GetJointPositionsResponse>( [](ArmService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::arm::v1::GetJointPositionsRequest* req, ::viam::component::arm::v1::GetJointPositionsResponse* resp) { return service->GetJointPositions(ctx, req, resp); @@ -320,9 +370,9 @@ ArmService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( ArmService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< ArmService::Service, ::viam::component::arm::v1::MoveToJointPositionsRequest, ::viam::component::arm::v1::MoveToJointPositionsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< ArmService::Service, ::viam::component::arm::v1::MoveToJointPositionsRequest, ::viam::component::arm::v1::MoveToJointPositionsResponse>( [](ArmService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::arm::v1::MoveToJointPositionsRequest* req, ::viam::component::arm::v1::MoveToJointPositionsResponse* resp) { return service->MoveToJointPositions(ctx, req, resp); @@ -330,9 +380,9 @@ ArmService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( ArmService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< ArmService::Service, ::viam::component::arm::v1::MoveThroughJointPositionsRequest, ::viam::component::arm::v1::MoveThroughJointPositionsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< ArmService::Service, ::viam::component::arm::v1::MoveThroughJointPositionsRequest, ::viam::component::arm::v1::MoveThroughJointPositionsResponse>( [](ArmService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::arm::v1::MoveThroughJointPositionsRequest* req, ::viam::component::arm::v1::MoveThroughJointPositionsResponse* resp) { return service->MoveThroughJointPositions(ctx, req, resp); @@ -340,9 +390,9 @@ ArmService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( ArmService_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< ArmService::Service, ::viam::component::arm::v1::StopRequest, ::viam::component::arm::v1::StopResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< ArmService::Service, ::viam::component::arm::v1::StopRequest, ::viam::component::arm::v1::StopResponse>( [](ArmService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::arm::v1::StopRequest* req, ::viam::component::arm::v1::StopResponse* resp) { return service->Stop(ctx, req, resp); @@ -350,9 +400,9 @@ ArmService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( ArmService_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< ArmService::Service, ::viam::component::arm::v1::IsMovingRequest, ::viam::component::arm::v1::IsMovingResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< ArmService::Service, ::viam::component::arm::v1::IsMovingRequest, ::viam::component::arm::v1::IsMovingResponse>( [](ArmService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::arm::v1::IsMovingRequest* req, ::viam::component::arm::v1::IsMovingResponse* resp) { return service->IsMoving(ctx, req, resp); @@ -360,9 +410,9 @@ ArmService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( ArmService_method_names[7], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< ArmService::Service, ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< ArmService::Service, ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( [](ArmService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::common::v1::DoCommandRequest* req, ::viam::common::v1::DoCommandResponse* resp) { return service->DoCommand(ctx, req, resp); @@ -370,9 +420,9 @@ ArmService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( ArmService_method_names[8], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< ArmService::Service, ::viam::common::v1::GetKinematicsRequest, ::viam::common::v1::GetKinematicsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< ArmService::Service, ::viam::common::v1::GetKinematicsRequest, ::viam::common::v1::GetKinematicsResponse>( [](ArmService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::common::v1::GetKinematicsRequest* req, ::viam::common::v1::GetKinematicsResponse* resp) { return service->GetKinematics(ctx, req, resp); @@ -380,9 +430,9 @@ ArmService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( ArmService_method_names[9], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< ArmService::Service, ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< ArmService::Service, ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( [](ArmService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::common::v1::GetGeometriesRequest* req, ::viam::common::v1::GetGeometriesResponse* resp) { return service->GetGeometries(ctx, req, resp); diff --git a/src/viam/api/component/arm/v1/arm.grpc.pb.h b/src/viam/api/component/arm/v1/arm.grpc.pb.h index 4f326eaea..e298138df 100644 --- a/src/viam/api/component/arm/v1/arm.grpc.pb.h +++ b/src/viam/api/component/arm/v1/arm.grpc.pb.h @@ -7,23 +7,24 @@ #include "component/arm/v1/arm.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace component { @@ -123,48 +124,152 @@ class ArmService 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)); } - class async_interface { + class experimental_async_interface { public: - virtual ~async_interface() {} + virtual ~experimental_async_interface() {} // GetEndPosition gets the current position the end of the robot's arm expressed as X,Y,Z,ox,oy,oz,theta virtual void GetEndPosition(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetEndPositionRequest* request, ::viam::component::arm::v1::GetEndPositionResponse* response, std::function) = 0; + virtual void GetEndPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::arm::v1::GetEndPositionResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetEndPosition(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetEndPositionRequest* request, ::viam::component::arm::v1::GetEndPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetEndPosition(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetEndPositionRequest* request, ::viam::component::arm::v1::GetEndPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetEndPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::arm::v1::GetEndPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetEndPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::arm::v1::GetEndPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // MoveToPosition moves the mount point of the robot's end effector to the requested position. // This will block until done or a new operation cancels this one virtual void MoveToPosition(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToPositionRequest* request, ::viam::component::arm::v1::MoveToPositionResponse* response, std::function) = 0; + virtual void MoveToPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::arm::v1::MoveToPositionResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void MoveToPosition(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToPositionRequest* request, ::viam::component::arm::v1::MoveToPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void MoveToPosition(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToPositionRequest* request, ::viam::component::arm::v1::MoveToPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void MoveToPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::arm::v1::MoveToPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void MoveToPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::arm::v1::MoveToPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // GetJointPositions lists the joint positions (in degrees) of every joint on a robot virtual void GetJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetJointPositionsRequest* request, ::viam::component::arm::v1::GetJointPositionsResponse* response, std::function) = 0; + virtual void GetJointPositions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::arm::v1::GetJointPositionsResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetJointPositionsRequest* request, ::viam::component::arm::v1::GetJointPositionsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetJointPositionsRequest* request, ::viam::component::arm::v1::GetJointPositionsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetJointPositions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::arm::v1::GetJointPositionsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetJointPositions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::arm::v1::GetJointPositionsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // MoveToJointPositions moves every joint on a robot's arm to specified angles which are expressed in degrees // This will block until done or a new operation cancels this one virtual void MoveToJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToJointPositionsRequest* request, ::viam::component::arm::v1::MoveToJointPositionsResponse* response, std::function) = 0; + virtual void MoveToJointPositions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::arm::v1::MoveToJointPositionsResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void MoveToJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToJointPositionsRequest* request, ::viam::component::arm::v1::MoveToJointPositionsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void MoveToJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToJointPositionsRequest* request, ::viam::component::arm::v1::MoveToJointPositionsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void MoveToJointPositions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::arm::v1::MoveToJointPositionsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void MoveToJointPositions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::arm::v1::MoveToJointPositionsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // MoveThroughJointPositions moves every joint on a robot's arm to the specified JointPositions in the order they are specified, // obeying the specified velocity and acceleration limits. // This will block until done or a new operation cancels this one virtual void MoveThroughJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveThroughJointPositionsRequest* request, ::viam::component::arm::v1::MoveThroughJointPositionsResponse* response, std::function) = 0; + virtual void MoveThroughJointPositions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::arm::v1::MoveThroughJointPositionsResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void MoveThroughJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveThroughJointPositionsRequest* request, ::viam::component::arm::v1::MoveThroughJointPositionsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void MoveThroughJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveThroughJointPositionsRequest* request, ::viam::component::arm::v1::MoveThroughJointPositionsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void MoveThroughJointPositions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::arm::v1::MoveThroughJointPositionsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void MoveThroughJointPositions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::arm::v1::MoveThroughJointPositionsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Stop stops a robot's arm virtual void Stop(::grpc::ClientContext* context, const ::viam::component::arm::v1::StopRequest* request, ::viam::component::arm::v1::StopResponse* response, std::function) = 0; + virtual void Stop(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::arm::v1::StopResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void Stop(::grpc::ClientContext* context, const ::viam::component::arm::v1::StopRequest* request, ::viam::component::arm::v1::StopResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void Stop(::grpc::ClientContext* context, const ::viam::component::arm::v1::StopRequest* request, ::viam::component::arm::v1::StopResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void Stop(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::arm::v1::StopResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void Stop(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::arm::v1::StopResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // IsMoving reports if a component is in motion virtual void IsMoving(::grpc::ClientContext* context, const ::viam::component::arm::v1::IsMovingRequest* request, ::viam::component::arm::v1::IsMovingResponse* response, std::function) = 0; + virtual void IsMoving(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::arm::v1::IsMovingResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void IsMoving(::grpc::ClientContext* context, const ::viam::component::arm::v1::IsMovingRequest* request, ::viam::component::arm::v1::IsMovingResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void IsMoving(::grpc::ClientContext* context, const ::viam::component::arm::v1::IsMovingRequest* request, ::viam::component::arm::v1::IsMovingResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void IsMoving(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::arm::v1::IsMovingResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void IsMoving(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::arm::v1::IsMovingResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // 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 ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // GetKinematics returns the kinematics file for the component virtual void GetKinematics(::grpc::ClientContext* context, const ::viam::common::v1::GetKinematicsRequest* request, ::viam::common::v1::GetKinematicsResponse* response, std::function) = 0; + virtual void GetKinematics(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetKinematicsResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetKinematics(::grpc::ClientContext* context, const ::viam::common::v1::GetKinematicsRequest* request, ::viam::common::v1::GetKinematicsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetKinematics(::grpc::ClientContext* context, const ::viam::common::v1::GetKinematicsRequest* request, ::viam::common::v1::GetKinematicsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetKinematics(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetKinematicsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetKinematics(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetKinematicsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // 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 ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif }; - typedef class async_interface experimental_async_interface; - virtual class async_interface* async() { return nullptr; } - class async_interface* experimental_async() { return async(); } - private: + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef class experimental_async_interface async_interface; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + async_interface* async() { return experimental_async(); } + #endif + virtual class experimental_async_interface* experimental_async() { return nullptr; } + private: virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::arm::v1::GetEndPositionResponse>* AsyncGetEndPositionRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetEndPositionRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::arm::v1::GetEndPositionResponse>* PrepareAsyncGetEndPositionRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetEndPositionRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::arm::v1::MoveToPositionResponse>* AsyncMoveToPositionRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToPositionRequest& request, ::grpc::CompletionQueue* cq) = 0; @@ -188,7 +293,7 @@ class ArmService final { }; class Stub final : public StubInterface { public: - Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); ::grpc::Status GetEndPosition(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetEndPositionRequest& request, ::viam::component::arm::v1::GetEndPositionResponse* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::GetEndPositionResponse>> AsyncGetEndPosition(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetEndPositionRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::GetEndPositionResponse>>(AsyncGetEndPositionRaw(context, request, cq)); @@ -259,40 +364,140 @@ class ArmService 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)); } - class async final : - public StubInterface::async_interface { + class experimental_async final : + public StubInterface::experimental_async_interface { public: void GetEndPosition(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetEndPositionRequest* request, ::viam::component::arm::v1::GetEndPositionResponse* response, std::function) override; + void GetEndPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::arm::v1::GetEndPositionResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetEndPosition(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetEndPositionRequest* request, ::viam::component::arm::v1::GetEndPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetEndPosition(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetEndPositionRequest* request, ::viam::component::arm::v1::GetEndPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetEndPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::arm::v1::GetEndPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetEndPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::arm::v1::GetEndPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void MoveToPosition(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToPositionRequest* request, ::viam::component::arm::v1::MoveToPositionResponse* response, std::function) override; + void MoveToPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::arm::v1::MoveToPositionResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void MoveToPosition(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToPositionRequest* request, ::viam::component::arm::v1::MoveToPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void MoveToPosition(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToPositionRequest* request, ::viam::component::arm::v1::MoveToPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void MoveToPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::arm::v1::MoveToPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void MoveToPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::arm::v1::MoveToPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetJointPositionsRequest* request, ::viam::component::arm::v1::GetJointPositionsResponse* response, std::function) override; + void GetJointPositions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::arm::v1::GetJointPositionsResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetJointPositionsRequest* request, ::viam::component::arm::v1::GetJointPositionsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetJointPositionsRequest* request, ::viam::component::arm::v1::GetJointPositionsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetJointPositions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::arm::v1::GetJointPositionsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetJointPositions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::arm::v1::GetJointPositionsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void MoveToJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToJointPositionsRequest* request, ::viam::component::arm::v1::MoveToJointPositionsResponse* response, std::function) override; + void MoveToJointPositions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::arm::v1::MoveToJointPositionsResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void MoveToJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToJointPositionsRequest* request, ::viam::component::arm::v1::MoveToJointPositionsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void MoveToJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToJointPositionsRequest* request, ::viam::component::arm::v1::MoveToJointPositionsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void MoveToJointPositions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::arm::v1::MoveToJointPositionsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void MoveToJointPositions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::arm::v1::MoveToJointPositionsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void MoveThroughJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveThroughJointPositionsRequest* request, ::viam::component::arm::v1::MoveThroughJointPositionsResponse* response, std::function) override; + void MoveThroughJointPositions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::arm::v1::MoveThroughJointPositionsResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void MoveThroughJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveThroughJointPositionsRequest* request, ::viam::component::arm::v1::MoveThroughJointPositionsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void MoveThroughJointPositions(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveThroughJointPositionsRequest* request, ::viam::component::arm::v1::MoveThroughJointPositionsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void MoveThroughJointPositions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::arm::v1::MoveThroughJointPositionsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void MoveThroughJointPositions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::arm::v1::MoveThroughJointPositionsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void Stop(::grpc::ClientContext* context, const ::viam::component::arm::v1::StopRequest* request, ::viam::component::arm::v1::StopResponse* response, std::function) override; + void Stop(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::arm::v1::StopResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void Stop(::grpc::ClientContext* context, const ::viam::component::arm::v1::StopRequest* request, ::viam::component::arm::v1::StopResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void Stop(::grpc::ClientContext* context, const ::viam::component::arm::v1::StopRequest* request, ::viam::component::arm::v1::StopResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void Stop(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::arm::v1::StopResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void Stop(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::arm::v1::StopResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void IsMoving(::grpc::ClientContext* context, const ::viam::component::arm::v1::IsMovingRequest* request, ::viam::component::arm::v1::IsMovingResponse* response, std::function) override; + void IsMoving(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::arm::v1::IsMovingResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void IsMoving(::grpc::ClientContext* context, const ::viam::component::arm::v1::IsMovingRequest* request, ::viam::component::arm::v1::IsMovingResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void IsMoving(::grpc::ClientContext* context, const ::viam::component::arm::v1::IsMovingRequest* request, ::viam::component::arm::v1::IsMovingResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void IsMoving(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::arm::v1::IsMovingResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void IsMoving(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::arm::v1::IsMovingResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif 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 ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetKinematics(::grpc::ClientContext* context, const ::viam::common::v1::GetKinematicsRequest* request, ::viam::common::v1::GetKinematicsResponse* response, std::function) override; + void GetKinematics(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetKinematicsResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetKinematics(::grpc::ClientContext* context, const ::viam::common::v1::GetKinematicsRequest* request, ::viam::common::v1::GetKinematicsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetKinematics(::grpc::ClientContext* context, const ::viam::common::v1::GetKinematicsRequest* request, ::viam::common::v1::GetKinematicsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetKinematics(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetKinematicsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetKinematics(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetKinematicsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif 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 ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif private: friend class Stub; - explicit async(Stub* stub): stub_(stub) { } + explicit experimental_async(Stub* stub): stub_(stub) { } Stub* stub() { return stub_; } Stub* stub_; }; - class async* async() override { return &async_stub_; } + class experimental_async_interface* experimental_async() override { return &async_stub_; } private: std::shared_ptr< ::grpc::ChannelInterface> channel_; - class async async_stub_{this}; + class experimental_async async_stub_{this}; ::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::GetEndPositionResponse>* AsyncGetEndPositionRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetEndPositionRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::GetEndPositionResponse>* PrepareAsyncGetEndPositionRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::GetEndPositionRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::component::arm::v1::MoveToPositionResponse>* AsyncMoveToPositionRaw(::grpc::ClientContext* context, const ::viam::component::arm::v1::MoveToPositionRequest& request, ::grpc::CompletionQueue* cq) override; @@ -557,22 +762,36 @@ class ArmService final { }; typedef WithAsyncMethod_GetEndPosition > > > > > > > > > AsyncService; template - class WithCallbackMethod_GetEndPosition : public BaseClass { + class ExperimentalWithCallbackMethod_GetEndPosition : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetEndPosition() { - ::grpc::Service::MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::arm::v1::GetEndPositionRequest, ::viam::component::arm::v1::GetEndPositionResponse>( + ExperimentalWithCallbackMethod_GetEndPosition() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::arm::v1::GetEndPositionRequest, ::viam::component::arm::v1::GetEndPositionResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::arm::v1::GetEndPositionRequest* request, ::viam::component::arm::v1::GetEndPositionResponse* response) { return this->GetEndPosition(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::arm::v1::GetEndPositionRequest* request, ::viam::component::arm::v1::GetEndPositionResponse* response) { return this->GetEndPosition(context, request, response); }));} void SetMessageAllocatorFor_GetEndPosition( - ::grpc::MessageAllocator< ::viam::component::arm::v1::GetEndPositionRequest, ::viam::component::arm::v1::GetEndPositionResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::arm::v1::GetEndPositionRequest, ::viam::component::arm::v1::GetEndPositionResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::arm::v1::GetEndPositionRequest, ::viam::component::arm::v1::GetEndPositionResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(0); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::arm::v1::GetEndPositionRequest, ::viam::component::arm::v1::GetEndPositionResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetEndPosition() override { + ~ExperimentalWithCallbackMethod_GetEndPosition() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -580,26 +799,46 @@ class ArmService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetEndPosition( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::arm::v1::GetEndPositionRequest* /*request*/, ::viam::component::arm::v1::GetEndPositionResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::arm::v1::GetEndPositionRequest* /*request*/, ::viam::component::arm::v1::GetEndPositionResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetEndPosition( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::arm::v1::GetEndPositionRequest* /*request*/, ::viam::component::arm::v1::GetEndPositionResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_MoveToPosition : public BaseClass { + class ExperimentalWithCallbackMethod_MoveToPosition : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_MoveToPosition() { - ::grpc::Service::MarkMethodCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::arm::v1::MoveToPositionRequest, ::viam::component::arm::v1::MoveToPositionResponse>( + ExperimentalWithCallbackMethod_MoveToPosition() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::arm::v1::MoveToPositionRequest, ::viam::component::arm::v1::MoveToPositionResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::arm::v1::MoveToPositionRequest* request, ::viam::component::arm::v1::MoveToPositionResponse* response) { return this->MoveToPosition(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::arm::v1::MoveToPositionRequest* request, ::viam::component::arm::v1::MoveToPositionResponse* response) { return this->MoveToPosition(context, request, response); }));} void SetMessageAllocatorFor_MoveToPosition( - ::grpc::MessageAllocator< ::viam::component::arm::v1::MoveToPositionRequest, ::viam::component::arm::v1::MoveToPositionResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::arm::v1::MoveToPositionRequest, ::viam::component::arm::v1::MoveToPositionResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::arm::v1::MoveToPositionRequest, ::viam::component::arm::v1::MoveToPositionResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(1); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::arm::v1::MoveToPositionRequest, ::viam::component::arm::v1::MoveToPositionResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_MoveToPosition() override { + ~ExperimentalWithCallbackMethod_MoveToPosition() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -607,26 +846,46 @@ class ArmService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* MoveToPosition( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::arm::v1::MoveToPositionRequest* /*request*/, ::viam::component::arm::v1::MoveToPositionResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::arm::v1::MoveToPositionRequest* /*request*/, ::viam::component::arm::v1::MoveToPositionResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* MoveToPosition( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::arm::v1::MoveToPositionRequest* /*request*/, ::viam::component::arm::v1::MoveToPositionResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetJointPositions : public BaseClass { + class ExperimentalWithCallbackMethod_GetJointPositions : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetJointPositions() { - ::grpc::Service::MarkMethodCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::arm::v1::GetJointPositionsRequest, ::viam::component::arm::v1::GetJointPositionsResponse>( + ExperimentalWithCallbackMethod_GetJointPositions() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(2, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::arm::v1::GetJointPositionsRequest, ::viam::component::arm::v1::GetJointPositionsResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::arm::v1::GetJointPositionsRequest* request, ::viam::component::arm::v1::GetJointPositionsResponse* response) { return this->GetJointPositions(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::arm::v1::GetJointPositionsRequest* request, ::viam::component::arm::v1::GetJointPositionsResponse* response) { return this->GetJointPositions(context, request, response); }));} void SetMessageAllocatorFor_GetJointPositions( - ::grpc::MessageAllocator< ::viam::component::arm::v1::GetJointPositionsRequest, ::viam::component::arm::v1::GetJointPositionsResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::arm::v1::GetJointPositionsRequest, ::viam::component::arm::v1::GetJointPositionsResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::arm::v1::GetJointPositionsRequest, ::viam::component::arm::v1::GetJointPositionsResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(2); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::arm::v1::GetJointPositionsRequest, ::viam::component::arm::v1::GetJointPositionsResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetJointPositions() override { + ~ExperimentalWithCallbackMethod_GetJointPositions() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -634,26 +893,46 @@ class ArmService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetJointPositions( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::arm::v1::GetJointPositionsRequest* /*request*/, ::viam::component::arm::v1::GetJointPositionsResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::arm::v1::GetJointPositionsRequest* /*request*/, ::viam::component::arm::v1::GetJointPositionsResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetJointPositions( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::arm::v1::GetJointPositionsRequest* /*request*/, ::viam::component::arm::v1::GetJointPositionsResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_MoveToJointPositions : public BaseClass { + class ExperimentalWithCallbackMethod_MoveToJointPositions : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_MoveToJointPositions() { - ::grpc::Service::MarkMethodCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::arm::v1::MoveToJointPositionsRequest, ::viam::component::arm::v1::MoveToJointPositionsResponse>( + ExperimentalWithCallbackMethod_MoveToJointPositions() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(3, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::arm::v1::MoveToJointPositionsRequest, ::viam::component::arm::v1::MoveToJointPositionsResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::arm::v1::MoveToJointPositionsRequest* request, ::viam::component::arm::v1::MoveToJointPositionsResponse* response) { return this->MoveToJointPositions(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::arm::v1::MoveToJointPositionsRequest* request, ::viam::component::arm::v1::MoveToJointPositionsResponse* response) { return this->MoveToJointPositions(context, request, response); }));} void SetMessageAllocatorFor_MoveToJointPositions( - ::grpc::MessageAllocator< ::viam::component::arm::v1::MoveToJointPositionsRequest, ::viam::component::arm::v1::MoveToJointPositionsResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::arm::v1::MoveToJointPositionsRequest, ::viam::component::arm::v1::MoveToJointPositionsResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::arm::v1::MoveToJointPositionsRequest, ::viam::component::arm::v1::MoveToJointPositionsResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(3); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::arm::v1::MoveToJointPositionsRequest, ::viam::component::arm::v1::MoveToJointPositionsResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_MoveToJointPositions() override { + ~ExperimentalWithCallbackMethod_MoveToJointPositions() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -661,26 +940,46 @@ class ArmService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* MoveToJointPositions( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::arm::v1::MoveToJointPositionsRequest* /*request*/, ::viam::component::arm::v1::MoveToJointPositionsResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::arm::v1::MoveToJointPositionsRequest* /*request*/, ::viam::component::arm::v1::MoveToJointPositionsResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* MoveToJointPositions( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::arm::v1::MoveToJointPositionsRequest* /*request*/, ::viam::component::arm::v1::MoveToJointPositionsResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_MoveThroughJointPositions : public BaseClass { + class ExperimentalWithCallbackMethod_MoveThroughJointPositions : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_MoveThroughJointPositions() { - ::grpc::Service::MarkMethodCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::arm::v1::MoveThroughJointPositionsRequest, ::viam::component::arm::v1::MoveThroughJointPositionsResponse>( + ExperimentalWithCallbackMethod_MoveThroughJointPositions() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(4, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::arm::v1::MoveThroughJointPositionsRequest, ::viam::component::arm::v1::MoveThroughJointPositionsResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::arm::v1::MoveThroughJointPositionsRequest* request, ::viam::component::arm::v1::MoveThroughJointPositionsResponse* response) { return this->MoveThroughJointPositions(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::arm::v1::MoveThroughJointPositionsRequest* request, ::viam::component::arm::v1::MoveThroughJointPositionsResponse* response) { return this->MoveThroughJointPositions(context, request, response); }));} void SetMessageAllocatorFor_MoveThroughJointPositions( - ::grpc::MessageAllocator< ::viam::component::arm::v1::MoveThroughJointPositionsRequest, ::viam::component::arm::v1::MoveThroughJointPositionsResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::arm::v1::MoveThroughJointPositionsRequest, ::viam::component::arm::v1::MoveThroughJointPositionsResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::arm::v1::MoveThroughJointPositionsRequest, ::viam::component::arm::v1::MoveThroughJointPositionsResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(4); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::arm::v1::MoveThroughJointPositionsRequest, ::viam::component::arm::v1::MoveThroughJointPositionsResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_MoveThroughJointPositions() override { + ~ExperimentalWithCallbackMethod_MoveThroughJointPositions() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -688,26 +987,46 @@ class ArmService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* MoveThroughJointPositions( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::arm::v1::MoveThroughJointPositionsRequest* /*request*/, ::viam::component::arm::v1::MoveThroughJointPositionsResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::arm::v1::MoveThroughJointPositionsRequest* /*request*/, ::viam::component::arm::v1::MoveThroughJointPositionsResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* MoveThroughJointPositions( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::arm::v1::MoveThroughJointPositionsRequest* /*request*/, ::viam::component::arm::v1::MoveThroughJointPositionsResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_Stop : public BaseClass { + class ExperimentalWithCallbackMethod_Stop : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_Stop() { - ::grpc::Service::MarkMethodCallback(5, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::arm::v1::StopRequest, ::viam::component::arm::v1::StopResponse>( + ExperimentalWithCallbackMethod_Stop() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(5, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::arm::v1::StopRequest, ::viam::component::arm::v1::StopResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::arm::v1::StopRequest* request, ::viam::component::arm::v1::StopResponse* response) { return this->Stop(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::arm::v1::StopRequest* request, ::viam::component::arm::v1::StopResponse* response) { return this->Stop(context, request, response); }));} void SetMessageAllocatorFor_Stop( - ::grpc::MessageAllocator< ::viam::component::arm::v1::StopRequest, ::viam::component::arm::v1::StopResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::arm::v1::StopRequest, ::viam::component::arm::v1::StopResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(5); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::arm::v1::StopRequest, ::viam::component::arm::v1::StopResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(5); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::arm::v1::StopRequest, ::viam::component::arm::v1::StopResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_Stop() override { + ~ExperimentalWithCallbackMethod_Stop() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -715,26 +1034,46 @@ class ArmService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* Stop( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::arm::v1::StopRequest* /*request*/, ::viam::component::arm::v1::StopResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::arm::v1::StopRequest* /*request*/, ::viam::component::arm::v1::StopResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* Stop( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::arm::v1::StopRequest* /*request*/, ::viam::component::arm::v1::StopResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_IsMoving : public BaseClass { + class ExperimentalWithCallbackMethod_IsMoving : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_IsMoving() { - ::grpc::Service::MarkMethodCallback(6, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::arm::v1::IsMovingRequest, ::viam::component::arm::v1::IsMovingResponse>( + ExperimentalWithCallbackMethod_IsMoving() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(6, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::arm::v1::IsMovingRequest, ::viam::component::arm::v1::IsMovingResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::arm::v1::IsMovingRequest* request, ::viam::component::arm::v1::IsMovingResponse* response) { return this->IsMoving(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::arm::v1::IsMovingRequest* request, ::viam::component::arm::v1::IsMovingResponse* response) { return this->IsMoving(context, request, response); }));} void SetMessageAllocatorFor_IsMoving( - ::grpc::MessageAllocator< ::viam::component::arm::v1::IsMovingRequest, ::viam::component::arm::v1::IsMovingResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::arm::v1::IsMovingRequest, ::viam::component::arm::v1::IsMovingResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(6); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::arm::v1::IsMovingRequest, ::viam::component::arm::v1::IsMovingResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(6); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::arm::v1::IsMovingRequest, ::viam::component::arm::v1::IsMovingResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_IsMoving() override { + ~ExperimentalWithCallbackMethod_IsMoving() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -742,26 +1081,46 @@ class ArmService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* IsMoving( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::arm::v1::IsMovingRequest* /*request*/, ::viam::component::arm::v1::IsMovingResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::arm::v1::IsMovingRequest* /*request*/, ::viam::component::arm::v1::IsMovingResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* IsMoving( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::arm::v1::IsMovingRequest* /*request*/, ::viam::component::arm::v1::IsMovingResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_DoCommand : public BaseClass { + class ExperimentalWithCallbackMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_DoCommand() { - ::grpc::Service::MarkMethodCallback(7, - new ::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( + ExperimentalWithCallbackMethod_DoCommand() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(7, + new ::grpc_impl::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); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + 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::experimental::MessageAllocator< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(7); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(7); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_DoCommand() override { + ~ExperimentalWithCallbackMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -769,26 +1128,46 @@ class ArmService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DoCommand( - ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DoCommand( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetKinematics : public BaseClass { + class ExperimentalWithCallbackMethod_GetKinematics : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetKinematics() { - ::grpc::Service::MarkMethodCallback(8, - new ::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::GetKinematicsRequest, ::viam::common::v1::GetKinematicsResponse>( + ExperimentalWithCallbackMethod_GetKinematics() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(8, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::GetKinematicsRequest, ::viam::common::v1::GetKinematicsResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::common::v1::GetKinematicsRequest* request, ::viam::common::v1::GetKinematicsResponse* response) { return this->GetKinematics(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::common::v1::GetKinematicsRequest* request, ::viam::common::v1::GetKinematicsResponse* response) { return this->GetKinematics(context, request, response); }));} void SetMessageAllocatorFor_GetKinematics( - ::grpc::MessageAllocator< ::viam::common::v1::GetKinematicsRequest, ::viam::common::v1::GetKinematicsResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::common::v1::GetKinematicsRequest, ::viam::common::v1::GetKinematicsResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(8); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::GetKinematicsRequest, ::viam::common::v1::GetKinematicsResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(8); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::GetKinematicsRequest, ::viam::common::v1::GetKinematicsResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetKinematics() override { + ~ExperimentalWithCallbackMethod_GetKinematics() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -796,26 +1175,46 @@ class ArmService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetKinematics( - ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::GetKinematicsRequest* /*request*/, ::viam::common::v1::GetKinematicsResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::GetKinematicsRequest* /*request*/, ::viam::common::v1::GetKinematicsResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetKinematics( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::common::v1::GetKinematicsRequest* /*request*/, ::viam::common::v1::GetKinematicsResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetGeometries : public BaseClass { + class ExperimentalWithCallbackMethod_GetGeometries : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetGeometries() { - ::grpc::Service::MarkMethodCallback(9, - new ::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( + ExperimentalWithCallbackMethod_GetGeometries() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(9, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response) { return this->GetGeometries(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response) { return this->GetGeometries(context, request, response); }));} void SetMessageAllocatorFor_GetGeometries( - ::grpc::MessageAllocator< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(9); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(9); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetGeometries() override { + ~ExperimentalWithCallbackMethod_GetGeometries() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -823,11 +1222,20 @@ class ArmService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetGeometries( - ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::GetGeometriesRequest* /*request*/, ::viam::common::v1::GetGeometriesResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::GetGeometriesRequest* /*request*/, ::viam::common::v1::GetGeometriesResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetGeometries( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::common::v1::GetGeometriesRequest* /*request*/, ::viam::common::v1::GetGeometriesResponse* /*response*/) + #endif + { return nullptr; } }; - typedef WithCallbackMethod_GetEndPosition > > > > > > > > > CallbackService; - typedef CallbackService ExperimentalCallbackService; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef ExperimentalWithCallbackMethod_GetEndPosition > > > > > > > > > CallbackService; + #endif + + typedef ExperimentalWithCallbackMethod_GetEndPosition > > > > > > > > > ExperimentalCallbackService; template class WithGenericMethod_GetEndPosition : public BaseClass { private: @@ -1199,17 +1607,27 @@ class ArmService final { } }; template - class WithRawCallbackMethod_GetEndPosition : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetEndPosition : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetEndPosition() { - ::grpc::Service::MarkMethodRawCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetEndPosition() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetEndPosition(context, request, response); })); - } - ~WithRawCallbackMethod_GetEndPosition() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetEndPosition(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetEndPosition() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1217,21 +1635,37 @@ class ArmService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetEndPosition( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetEndPosition( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_MoveToPosition : public BaseClass { + class ExperimentalWithRawCallbackMethod_MoveToPosition : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_MoveToPosition() { - ::grpc::Service::MarkMethodRawCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_MoveToPosition() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->MoveToPosition(context, request, response); })); - } - ~WithRawCallbackMethod_MoveToPosition() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->MoveToPosition(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_MoveToPosition() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1239,21 +1673,37 @@ class ArmService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* MoveToPosition( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* MoveToPosition( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetJointPositions : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetJointPositions : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetJointPositions() { - ::grpc::Service::MarkMethodRawCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetJointPositions() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(2, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetJointPositions(context, request, response); })); - } - ~WithRawCallbackMethod_GetJointPositions() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetJointPositions(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetJointPositions() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1261,21 +1711,37 @@ class ArmService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetJointPositions( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetJointPositions( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_MoveToJointPositions : public BaseClass { + class ExperimentalWithRawCallbackMethod_MoveToJointPositions : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_MoveToJointPositions() { - ::grpc::Service::MarkMethodRawCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_MoveToJointPositions() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(3, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->MoveToJointPositions(context, request, response); })); - } - ~WithRawCallbackMethod_MoveToJointPositions() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->MoveToJointPositions(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_MoveToJointPositions() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1283,21 +1749,37 @@ class ArmService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* MoveToJointPositions( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* MoveToJointPositions( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_MoveThroughJointPositions : public BaseClass { + class ExperimentalWithRawCallbackMethod_MoveThroughJointPositions : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_MoveThroughJointPositions() { - ::grpc::Service::MarkMethodRawCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_MoveThroughJointPositions() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(4, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->MoveThroughJointPositions(context, request, response); })); - } - ~WithRawCallbackMethod_MoveThroughJointPositions() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->MoveThroughJointPositions(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_MoveThroughJointPositions() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1305,21 +1787,37 @@ class ArmService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* MoveThroughJointPositions( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* MoveThroughJointPositions( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_Stop : public BaseClass { + class ExperimentalWithRawCallbackMethod_Stop : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_Stop() { - ::grpc::Service::MarkMethodRawCallback(5, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_Stop() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(5, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Stop(context, request, response); })); - } - ~WithRawCallbackMethod_Stop() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Stop(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_Stop() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1327,21 +1825,37 @@ class ArmService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* Stop( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* Stop( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_IsMoving : public BaseClass { + class ExperimentalWithRawCallbackMethod_IsMoving : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_IsMoving() { - ::grpc::Service::MarkMethodRawCallback(6, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_IsMoving() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(6, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->IsMoving(context, request, response); })); - } - ~WithRawCallbackMethod_IsMoving() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->IsMoving(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_IsMoving() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1349,21 +1863,37 @@ class ArmService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* IsMoving( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* IsMoving( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_DoCommand : public BaseClass { + class ExperimentalWithRawCallbackMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_DoCommand() { - ::grpc::Service::MarkMethodRawCallback(7, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_DoCommand() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(7, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DoCommand(context, request, response); })); - } - ~WithRawCallbackMethod_DoCommand() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DoCommand(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1371,21 +1901,37 @@ class ArmService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DoCommand( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DoCommand( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetKinematics : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetKinematics : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetKinematics() { - ::grpc::Service::MarkMethodRawCallback(8, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetKinematics() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(8, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetKinematics(context, request, response); })); - } - ~WithRawCallbackMethod_GetKinematics() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetKinematics(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetKinematics() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1393,21 +1939,37 @@ class ArmService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetKinematics( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetKinematics( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetGeometries : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetGeometries : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetGeometries() { - ::grpc::Service::MarkMethodRawCallback(9, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetGeometries() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(9, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetGeometries(context, request, response); })); - } - ~WithRawCallbackMethod_GetGeometries() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetGeometries(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetGeometries() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1415,8 +1977,14 @@ class ArmService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetGeometries( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetGeometries( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template class WithStreamedUnaryMethod_GetEndPosition : public BaseClass { @@ -1427,8 +1995,8 @@ class ArmService final { ::grpc::Service::MarkMethodStreamed(0, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::arm::v1::GetEndPositionRequest, ::viam::component::arm::v1::GetEndPositionResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::arm::v1::GetEndPositionRequest, ::viam::component::arm::v1::GetEndPositionResponse>* streamer) { return this->StreamedGetEndPosition(context, streamer); @@ -1454,8 +2022,8 @@ class ArmService final { ::grpc::Service::MarkMethodStreamed(1, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::arm::v1::MoveToPositionRequest, ::viam::component::arm::v1::MoveToPositionResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::arm::v1::MoveToPositionRequest, ::viam::component::arm::v1::MoveToPositionResponse>* streamer) { return this->StreamedMoveToPosition(context, streamer); @@ -1481,8 +2049,8 @@ class ArmService final { ::grpc::Service::MarkMethodStreamed(2, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::arm::v1::GetJointPositionsRequest, ::viam::component::arm::v1::GetJointPositionsResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::arm::v1::GetJointPositionsRequest, ::viam::component::arm::v1::GetJointPositionsResponse>* streamer) { return this->StreamedGetJointPositions(context, streamer); @@ -1508,8 +2076,8 @@ class ArmService final { ::grpc::Service::MarkMethodStreamed(3, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::arm::v1::MoveToJointPositionsRequest, ::viam::component::arm::v1::MoveToJointPositionsResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::arm::v1::MoveToJointPositionsRequest, ::viam::component::arm::v1::MoveToJointPositionsResponse>* streamer) { return this->StreamedMoveToJointPositions(context, streamer); @@ -1535,8 +2103,8 @@ class ArmService final { ::grpc::Service::MarkMethodStreamed(4, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::arm::v1::MoveThroughJointPositionsRequest, ::viam::component::arm::v1::MoveThroughJointPositionsResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::arm::v1::MoveThroughJointPositionsRequest, ::viam::component::arm::v1::MoveThroughJointPositionsResponse>* streamer) { return this->StreamedMoveThroughJointPositions(context, streamer); @@ -1562,8 +2130,8 @@ class ArmService final { ::grpc::Service::MarkMethodStreamed(5, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::arm::v1::StopRequest, ::viam::component::arm::v1::StopResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::arm::v1::StopRequest, ::viam::component::arm::v1::StopResponse>* streamer) { return this->StreamedStop(context, streamer); @@ -1589,8 +2157,8 @@ class ArmService final { ::grpc::Service::MarkMethodStreamed(6, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::arm::v1::IsMovingRequest, ::viam::component::arm::v1::IsMovingResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::arm::v1::IsMovingRequest, ::viam::component::arm::v1::IsMovingResponse>* streamer) { return this->StreamedIsMoving(context, streamer); @@ -1616,8 +2184,8 @@ class ArmService final { ::grpc::Service::MarkMethodStreamed(7, new ::grpc::internal::StreamedUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* streamer) { return this->StreamedDoCommand(context, streamer); @@ -1643,8 +2211,8 @@ class ArmService final { ::grpc::Service::MarkMethodStreamed(8, new ::grpc::internal::StreamedUnaryHandler< ::viam::common::v1::GetKinematicsRequest, ::viam::common::v1::GetKinematicsResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::common::v1::GetKinematicsRequest, ::viam::common::v1::GetKinematicsResponse>* streamer) { return this->StreamedGetKinematics(context, streamer); @@ -1670,8 +2238,8 @@ class ArmService final { ::grpc::Service::MarkMethodStreamed(9, new ::grpc::internal::StreamedUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>* streamer) { return this->StreamedGetGeometries(context, streamer); diff --git a/src/viam/api/component/arm/v1/arm.pb.cc b/src/viam/api/component/arm/v1/arm.pb.cc index eb03bd203..f6ecd9c97 100644 --- a/src/viam/api/component/arm/v1/arm.pb.cc +++ b/src/viam/api/component/arm/v1/arm.pb.cc @@ -4,942 +4,748 @@ #include "component/arm/v1/arm.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace viam { namespace component { namespace arm { namespace v1 { - template -PROTOBUF_CONSTEXPR StopResponse::StopResponse(::_pbi::ConstantInitialized) {} -struct StopResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR StopResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StopResponseDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR GetEndPositionRequest::GetEndPositionRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} +struct GetEndPositionRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetEndPositionRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetEndPositionRequestDefaultTypeInternal() {} union { - StopResponse _instance; + GetEndPositionRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopResponseDefaultTypeInternal _StopResponse_default_instance_; - template -PROTOBUF_CONSTEXPR MoveToPositionResponse::MoveToPositionResponse(::_pbi::ConstantInitialized) {} -struct MoveToPositionResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR MoveToPositionResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~MoveToPositionResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetEndPositionRequestDefaultTypeInternal _GetEndPositionRequest_default_instance_; +PROTOBUF_CONSTEXPR GetEndPositionResponse::GetEndPositionResponse( + ::_pbi::ConstantInitialized) + : pose_(nullptr){} +struct GetEndPositionResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetEndPositionResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetEndPositionResponseDefaultTypeInternal() {} union { - MoveToPositionResponse _instance; + GetEndPositionResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveToPositionResponseDefaultTypeInternal _MoveToPositionResponse_default_instance_; - template -PROTOBUF_CONSTEXPR MoveToJointPositionsResponse::MoveToJointPositionsResponse(::_pbi::ConstantInitialized) {} -struct MoveToJointPositionsResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR MoveToJointPositionsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~MoveToJointPositionsResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetEndPositionResponseDefaultTypeInternal _GetEndPositionResponse_default_instance_; +PROTOBUF_CONSTEXPR JointPositions::JointPositions( + ::_pbi::ConstantInitialized) + : values_(){} +struct JointPositionsDefaultTypeInternal { + PROTOBUF_CONSTEXPR JointPositionsDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~JointPositionsDefaultTypeInternal() {} union { - MoveToJointPositionsResponse _instance; + JointPositions _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveToJointPositionsResponseDefaultTypeInternal _MoveToJointPositionsResponse_default_instance_; - template -PROTOBUF_CONSTEXPR MoveThroughJointPositionsResponse::MoveThroughJointPositionsResponse(::_pbi::ConstantInitialized) {} -struct MoveThroughJointPositionsResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR MoveThroughJointPositionsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~MoveThroughJointPositionsResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 JointPositionsDefaultTypeInternal _JointPositions_default_instance_; +PROTOBUF_CONSTEXPR GetJointPositionsRequest::GetJointPositionsRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} +struct GetJointPositionsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetJointPositionsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetJointPositionsRequestDefaultTypeInternal() {} union { - MoveThroughJointPositionsResponse _instance; + GetJointPositionsRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveThroughJointPositionsResponseDefaultTypeInternal _MoveThroughJointPositionsResponse_default_instance_; - -inline constexpr MoveOptions::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - max_vel_degs_per_sec_{0}, - max_acc_degs_per_sec2_{0} {} - -template -PROTOBUF_CONSTEXPR MoveOptions::MoveOptions(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct MoveOptionsDefaultTypeInternal { - PROTOBUF_CONSTEXPR MoveOptionsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~MoveOptionsDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetJointPositionsRequestDefaultTypeInternal _GetJointPositionsRequest_default_instance_; +PROTOBUF_CONSTEXPR GetJointPositionsResponse::GetJointPositionsResponse( + ::_pbi::ConstantInitialized) + : positions_(nullptr){} +struct GetJointPositionsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetJointPositionsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetJointPositionsResponseDefaultTypeInternal() {} union { - MoveOptions _instance; + GetJointPositionsResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveOptionsDefaultTypeInternal _MoveOptions_default_instance_; - -inline constexpr JointPositions::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : values_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR JointPositions::JointPositions(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct JointPositionsDefaultTypeInternal { - PROTOBUF_CONSTEXPR JointPositionsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~JointPositionsDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetJointPositionsResponseDefaultTypeInternal _GetJointPositionsResponse_default_instance_; +PROTOBUF_CONSTEXPR MoveToPositionRequest::MoveToPositionRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , to_(nullptr) + , extra_(nullptr){} +struct MoveToPositionRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR MoveToPositionRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~MoveToPositionRequestDefaultTypeInternal() {} union { - JointPositions _instance; + MoveToPositionRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 JointPositionsDefaultTypeInternal _JointPositions_default_instance_; - -inline constexpr IsMovingResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : is_moving_{false}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR IsMovingResponse::IsMovingResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct IsMovingResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR IsMovingResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~IsMovingResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveToPositionRequestDefaultTypeInternal _MoveToPositionRequest_default_instance_; +PROTOBUF_CONSTEXPR MoveToPositionResponse::MoveToPositionResponse( + ::_pbi::ConstantInitialized){} +struct MoveToPositionResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR MoveToPositionResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~MoveToPositionResponseDefaultTypeInternal() {} union { - IsMovingResponse _instance; + MoveToPositionResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IsMovingResponseDefaultTypeInternal _IsMovingResponse_default_instance_; - -inline constexpr IsMovingRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR IsMovingRequest::IsMovingRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct IsMovingRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR IsMovingRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~IsMovingRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveToPositionResponseDefaultTypeInternal _MoveToPositionResponse_default_instance_; +PROTOBUF_CONSTEXPR MoveToJointPositionsRequest::MoveToJointPositionsRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , positions_(nullptr) + , extra_(nullptr){} +struct MoveToJointPositionsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR MoveToJointPositionsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~MoveToJointPositionsRequestDefaultTypeInternal() {} union { - IsMovingRequest _instance; + MoveToJointPositionsRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IsMovingRequestDefaultTypeInternal _IsMovingRequest_default_instance_; - -inline constexpr StopRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR StopRequest::StopRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct StopRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR StopRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StopRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveToJointPositionsRequestDefaultTypeInternal _MoveToJointPositionsRequest_default_instance_; +PROTOBUF_CONSTEXPR MoveToJointPositionsResponse::MoveToJointPositionsResponse( + ::_pbi::ConstantInitialized){} +struct MoveToJointPositionsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR MoveToJointPositionsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~MoveToJointPositionsResponseDefaultTypeInternal() {} union { - StopRequest _instance; + MoveToJointPositionsResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopRequestDefaultTypeInternal _StopRequest_default_instance_; - -inline constexpr Status::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - end_position_{nullptr}, - joint_positions_{nullptr}, - is_moving_{false} {} - -template -PROTOBUF_CONSTEXPR Status::Status(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct StatusDefaultTypeInternal { - PROTOBUF_CONSTEXPR StatusDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StatusDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveToJointPositionsResponseDefaultTypeInternal _MoveToJointPositionsResponse_default_instance_; +PROTOBUF_CONSTEXPR MoveThroughJointPositionsRequest::MoveThroughJointPositionsRequest( + ::_pbi::ConstantInitialized) + : positions_() + , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , options_(nullptr) + , extra_(nullptr){} +struct MoveThroughJointPositionsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR MoveThroughJointPositionsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~MoveThroughJointPositionsRequestDefaultTypeInternal() {} union { - Status _instance; + MoveThroughJointPositionsRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StatusDefaultTypeInternal _Status_default_instance_; - -inline constexpr MoveToPositionRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - to_{nullptr}, - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR MoveToPositionRequest::MoveToPositionRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct MoveToPositionRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR MoveToPositionRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~MoveToPositionRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveThroughJointPositionsRequestDefaultTypeInternal _MoveThroughJointPositionsRequest_default_instance_; +PROTOBUF_CONSTEXPR MoveThroughJointPositionsResponse::MoveThroughJointPositionsResponse( + ::_pbi::ConstantInitialized){} +struct MoveThroughJointPositionsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR MoveThroughJointPositionsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~MoveThroughJointPositionsResponseDefaultTypeInternal() {} union { - MoveToPositionRequest _instance; + MoveThroughJointPositionsResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveToPositionRequestDefaultTypeInternal _MoveToPositionRequest_default_instance_; - -inline constexpr MoveToJointPositionsRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - positions_{nullptr}, - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR MoveToJointPositionsRequest::MoveToJointPositionsRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct MoveToJointPositionsRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR MoveToJointPositionsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~MoveToJointPositionsRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveThroughJointPositionsResponseDefaultTypeInternal _MoveThroughJointPositionsResponse_default_instance_; +PROTOBUF_CONSTEXPR StopRequest::StopRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} +struct StopRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR StopRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StopRequestDefaultTypeInternal() {} union { - MoveToJointPositionsRequest _instance; + StopRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveToJointPositionsRequestDefaultTypeInternal _MoveToJointPositionsRequest_default_instance_; - -inline constexpr MoveThroughJointPositionsRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - positions_{}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - options_{nullptr}, - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR MoveThroughJointPositionsRequest::MoveThroughJointPositionsRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct MoveThroughJointPositionsRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR MoveThroughJointPositionsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~MoveThroughJointPositionsRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopRequestDefaultTypeInternal _StopRequest_default_instance_; +PROTOBUF_CONSTEXPR StopResponse::StopResponse( + ::_pbi::ConstantInitialized){} +struct StopResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR StopResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StopResponseDefaultTypeInternal() {} union { - MoveThroughJointPositionsRequest _instance; + StopResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveThroughJointPositionsRequestDefaultTypeInternal _MoveThroughJointPositionsRequest_default_instance_; - -inline constexpr GetJointPositionsResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - positions_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetJointPositionsResponse::GetJointPositionsResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetJointPositionsResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetJointPositionsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetJointPositionsResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopResponseDefaultTypeInternal _StopResponse_default_instance_; +PROTOBUF_CONSTEXPR Status::Status( + ::_pbi::ConstantInitialized) + : end_position_(nullptr) + , joint_positions_(nullptr) + , is_moving_(false){} +struct StatusDefaultTypeInternal { + PROTOBUF_CONSTEXPR StatusDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StatusDefaultTypeInternal() {} union { - GetJointPositionsResponse _instance; + Status _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetJointPositionsResponseDefaultTypeInternal _GetJointPositionsResponse_default_instance_; - -inline constexpr GetJointPositionsRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetJointPositionsRequest::GetJointPositionsRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetJointPositionsRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetJointPositionsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetJointPositionsRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StatusDefaultTypeInternal _Status_default_instance_; +PROTOBUF_CONSTEXPR IsMovingRequest::IsMovingRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct IsMovingRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR IsMovingRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~IsMovingRequestDefaultTypeInternal() {} union { - GetJointPositionsRequest _instance; + IsMovingRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetJointPositionsRequestDefaultTypeInternal _GetJointPositionsRequest_default_instance_; - -inline constexpr GetEndPositionResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - pose_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetEndPositionResponse::GetEndPositionResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetEndPositionResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetEndPositionResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetEndPositionResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IsMovingRequestDefaultTypeInternal _IsMovingRequest_default_instance_; +PROTOBUF_CONSTEXPR IsMovingResponse::IsMovingResponse( + ::_pbi::ConstantInitialized) + : is_moving_(false){} +struct IsMovingResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR IsMovingResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~IsMovingResponseDefaultTypeInternal() {} union { - GetEndPositionResponse _instance; + IsMovingResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetEndPositionResponseDefaultTypeInternal _GetEndPositionResponse_default_instance_; - -inline constexpr GetEndPositionRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetEndPositionRequest::GetEndPositionRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetEndPositionRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetEndPositionRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetEndPositionRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IsMovingResponseDefaultTypeInternal _IsMovingResponse_default_instance_; +PROTOBUF_CONSTEXPR MoveOptions::MoveOptions( + ::_pbi::ConstantInitialized) + : max_vel_degs_per_sec_(0) + , max_acc_degs_per_sec2_(0){} +struct MoveOptionsDefaultTypeInternal { + PROTOBUF_CONSTEXPR MoveOptionsDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~MoveOptionsDefaultTypeInternal() {} union { - GetEndPositionRequest _instance; + MoveOptions _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetEndPositionRequestDefaultTypeInternal _GetEndPositionRequest_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveOptionsDefaultTypeInternal _MoveOptions_default_instance_; } // namespace v1 } // namespace arm } // namespace component } // namespace viam static ::_pb::Metadata file_level_metadata_component_2farm_2fv1_2farm_2eproto[17]; -static constexpr const ::_pb::EnumDescriptor** - file_level_enum_descriptors_component_2farm_2fv1_2farm_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_component_2farm_2fv1_2farm_2eproto = nullptr; -const ::uint32_t TableStruct_component_2farm_2fv1_2farm_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::GetEndPositionRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::GetEndPositionRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::GetEndPositionRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::GetEndPositionRequest, _impl_.extra_), - ~0u, - 0, - PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::GetEndPositionResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::GetEndPositionResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::GetEndPositionResponse, _impl_.pose_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::JointPositions, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::JointPositions, _impl_.values_), - PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::GetJointPositionsRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::GetJointPositionsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::GetJointPositionsRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::GetJointPositionsRequest, _impl_.extra_), - ~0u, - 0, - PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::GetJointPositionsResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::GetJointPositionsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::GetJointPositionsResponse, _impl_.positions_), - 0, - PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::MoveToPositionRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::MoveToPositionRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::MoveToPositionRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::MoveToPositionRequest, _impl_.to_), - PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::MoveToPositionRequest, _impl_.extra_), - ~0u, - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::MoveToPositionResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::MoveToJointPositionsRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::MoveToJointPositionsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::MoveToJointPositionsRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::MoveToJointPositionsRequest, _impl_.positions_), - PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::MoveToJointPositionsRequest, _impl_.extra_), - ~0u, - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::MoveToJointPositionsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::MoveThroughJointPositionsRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::MoveThroughJointPositionsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::MoveThroughJointPositionsRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::MoveThroughJointPositionsRequest, _impl_.positions_), - PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::MoveThroughJointPositionsRequest, _impl_.options_), - PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::MoveThroughJointPositionsRequest, _impl_.extra_), - ~0u, - ~0u, - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::MoveThroughJointPositionsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::StopRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::StopRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::StopRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::StopRequest, _impl_.extra_), - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::StopResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::Status, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::Status, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::Status, _impl_.end_position_), - PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::Status, _impl_.joint_positions_), - PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::Status, _impl_.is_moving_), - 0, - 1, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::IsMovingRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::IsMovingRequest, _impl_.name_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::IsMovingResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::IsMovingResponse, _impl_.is_moving_), - PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::MoveOptions, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::MoveOptions, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::MoveOptions, _impl_.max_vel_degs_per_sec_), - PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::MoveOptions, _impl_.max_acc_degs_per_sec2_), - 0, - 1, -}; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, 10, -1, sizeof(::viam::component::arm::v1::GetEndPositionRequest)}, - {12, 21, -1, sizeof(::viam::component::arm::v1::GetEndPositionResponse)}, - {22, -1, -1, sizeof(::viam::component::arm::v1::JointPositions)}, - {31, 41, -1, sizeof(::viam::component::arm::v1::GetJointPositionsRequest)}, - {43, 52, -1, sizeof(::viam::component::arm::v1::GetJointPositionsResponse)}, - {53, 64, -1, sizeof(::viam::component::arm::v1::MoveToPositionRequest)}, - {67, -1, -1, sizeof(::viam::component::arm::v1::MoveToPositionResponse)}, - {75, 86, -1, sizeof(::viam::component::arm::v1::MoveToJointPositionsRequest)}, - {89, -1, -1, sizeof(::viam::component::arm::v1::MoveToJointPositionsResponse)}, - {97, 109, -1, sizeof(::viam::component::arm::v1::MoveThroughJointPositionsRequest)}, - {113, -1, -1, sizeof(::viam::component::arm::v1::MoveThroughJointPositionsResponse)}, - {121, 131, -1, sizeof(::viam::component::arm::v1::StopRequest)}, - {133, -1, -1, sizeof(::viam::component::arm::v1::StopResponse)}, - {141, 152, -1, sizeof(::viam::component::arm::v1::Status)}, - {155, -1, -1, sizeof(::viam::component::arm::v1::IsMovingRequest)}, - {164, -1, -1, sizeof(::viam::component::arm::v1::IsMovingResponse)}, - {173, 183, -1, sizeof(::viam::component::arm::v1::MoveOptions)}, +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_component_2farm_2fv1_2farm_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_component_2farm_2fv1_2farm_2eproto = nullptr; + +const uint32_t TableStruct_component_2farm_2fv1_2farm_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::GetEndPositionRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::GetEndPositionRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::GetEndPositionRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::GetEndPositionResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::GetEndPositionResponse, pose_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::JointPositions, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::JointPositions, values_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::GetJointPositionsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::GetJointPositionsRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::GetJointPositionsRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::GetJointPositionsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::GetJointPositionsResponse, positions_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::MoveToPositionRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::MoveToPositionRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::MoveToPositionRequest, to_), + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::MoveToPositionRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::MoveToPositionResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::MoveToJointPositionsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::MoveToJointPositionsRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::MoveToJointPositionsRequest, positions_), + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::MoveToJointPositionsRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::MoveToJointPositionsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::MoveThroughJointPositionsRequest, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::MoveThroughJointPositionsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::MoveThroughJointPositionsRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::MoveThroughJointPositionsRequest, positions_), + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::MoveThroughJointPositionsRequest, options_), + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::MoveThroughJointPositionsRequest, extra_), + ~0u, + ~0u, + 0, + ~0u, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::MoveThroughJointPositionsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::StopRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::StopRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::StopRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::StopResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::Status, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::Status, end_position_), + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::Status, joint_positions_), + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::Status, is_moving_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::IsMovingRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::IsMovingRequest, name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::IsMovingResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::IsMovingResponse, is_moving_), + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::MoveOptions, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::MoveOptions, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::MoveOptions, max_vel_degs_per_sec_), + PROTOBUF_FIELD_OFFSET(::viam::component::arm::v1::MoveOptions, max_acc_degs_per_sec2_), + 0, + 1, +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::component::arm::v1::GetEndPositionRequest)}, + { 8, -1, -1, sizeof(::viam::component::arm::v1::GetEndPositionResponse)}, + { 15, -1, -1, sizeof(::viam::component::arm::v1::JointPositions)}, + { 22, -1, -1, sizeof(::viam::component::arm::v1::GetJointPositionsRequest)}, + { 30, -1, -1, sizeof(::viam::component::arm::v1::GetJointPositionsResponse)}, + { 37, -1, -1, sizeof(::viam::component::arm::v1::MoveToPositionRequest)}, + { 46, -1, -1, sizeof(::viam::component::arm::v1::MoveToPositionResponse)}, + { 52, -1, -1, sizeof(::viam::component::arm::v1::MoveToJointPositionsRequest)}, + { 61, -1, -1, sizeof(::viam::component::arm::v1::MoveToJointPositionsResponse)}, + { 67, 77, -1, sizeof(::viam::component::arm::v1::MoveThroughJointPositionsRequest)}, + { 81, -1, -1, sizeof(::viam::component::arm::v1::MoveThroughJointPositionsResponse)}, + { 87, -1, -1, sizeof(::viam::component::arm::v1::StopRequest)}, + { 95, -1, -1, sizeof(::viam::component::arm::v1::StopResponse)}, + { 101, -1, -1, sizeof(::viam::component::arm::v1::Status)}, + { 110, -1, -1, sizeof(::viam::component::arm::v1::IsMovingRequest)}, + { 117, -1, -1, sizeof(::viam::component::arm::v1::IsMovingResponse)}, + { 124, 132, -1, sizeof(::viam::component::arm::v1::MoveOptions)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::viam::component::arm::v1::_GetEndPositionRequest_default_instance_._instance, - &::viam::component::arm::v1::_GetEndPositionResponse_default_instance_._instance, - &::viam::component::arm::v1::_JointPositions_default_instance_._instance, - &::viam::component::arm::v1::_GetJointPositionsRequest_default_instance_._instance, - &::viam::component::arm::v1::_GetJointPositionsResponse_default_instance_._instance, - &::viam::component::arm::v1::_MoveToPositionRequest_default_instance_._instance, - &::viam::component::arm::v1::_MoveToPositionResponse_default_instance_._instance, - &::viam::component::arm::v1::_MoveToJointPositionsRequest_default_instance_._instance, - &::viam::component::arm::v1::_MoveToJointPositionsResponse_default_instance_._instance, - &::viam::component::arm::v1::_MoveThroughJointPositionsRequest_default_instance_._instance, - &::viam::component::arm::v1::_MoveThroughJointPositionsResponse_default_instance_._instance, - &::viam::component::arm::v1::_StopRequest_default_instance_._instance, - &::viam::component::arm::v1::_StopResponse_default_instance_._instance, - &::viam::component::arm::v1::_Status_default_instance_._instance, - &::viam::component::arm::v1::_IsMovingRequest_default_instance_._instance, - &::viam::component::arm::v1::_IsMovingResponse_default_instance_._instance, - &::viam::component::arm::v1::_MoveOptions_default_instance_._instance, -}; -const char descriptor_table_protodef_component_2farm_2fv1_2farm_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n\032component/arm/v1/arm.proto\022\025viam.compo" - "nent.arm.v1\032\026common/v1/common.proto\032\034goo" - "gle/api/annotations.proto\032\034google/protob" - "uf/struct.proto\"Z\n\025GetEndPositionRequest" - "\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005extra\030c \001(\0132\027.go" - "ogle.protobuf.StructR\005extra\"B\n\026GetEndPos" - "itionResponse\022(\n\004pose\030\001 \001(\0132\024.viam.commo" - "n.v1.PoseR\004pose\"(\n\016JointPositions\022\026\n\006val" - "ues\030\001 \003(\001R\006values\"]\n\030GetJointPositionsRe" - "quest\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005extra\030c \001(\013" - "2\027.google.protobuf.StructR\005extra\"`\n\031GetJ" - "ointPositionsResponse\022C\n\tpositions\030\001 \001(\013" - "2%.viam.component.arm.v1.JointPositionsR" - "\tpositions\"\200\001\n\025MoveToPositionRequest\022\022\n\004" - "name\030\001 \001(\tR\004name\022$\n\002to\030\002 \001(\0132\024.viam.comm" - "on.v1.PoseR\002to\022-\n\005extra\030c \001(\0132\027.google.p" - "rotobuf.StructR\005extra\"\030\n\026MoveToPositionR" - "esponse\"\245\001\n\033MoveToJointPositionsRequest\022" - "\022\n\004name\030\001 \001(\tR\004name\022C\n\tpositions\030\002 \001(\0132%" - ".viam.component.arm.v1.JointPositionsR\tp" - "ositions\022-\n\005extra\030c \001(\0132\027.google.protobu" - "f.StructR\005extra\"\036\n\034MoveToJointPositionsR" - "esponse\"\371\001\n MoveThroughJointPositionsReq" - "uest\022\022\n\004name\030\001 \001(\tR\004name\022C\n\tpositions\030\002 " - "\003(\0132%.viam.component.arm.v1.JointPositio" - "nsR\tpositions\022A\n\007options\030\003 \001(\0132\".viam.co" - "mponent.arm.v1.MoveOptionsH\000R\007options\210\001\001" - "\022-\n\005extra\030c \001(\0132\027.google.protobuf.Struct" - "R\005extraB\n\n\010_options\"#\n!MoveThroughJointP" - "ositionsResponse\"P\n\013StopRequest\022\022\n\004name\030" - "\001 \001(\tR\004name\022-\n\005extra\030c \001(\0132\027.google.prot" - "obuf.StructR\005extra\"\016\n\014StopResponse\"\256\001\n\006S" - "tatus\0227\n\014end_position\030\001 \001(\0132\024.viam.commo" - "n.v1.PoseR\013endPosition\022N\n\017joint_position" - "s\030\002 \001(\0132%.viam.component.arm.v1.JointPos" - "itionsR\016jointPositions\022\033\n\tis_moving\030\003 \001(" - "\010R\010isMoving\"%\n\017IsMovingRequest\022\022\n\004name\030\001" - " \001(\tR\004name\"/\n\020IsMovingResponse\022\033\n\tis_mov" - "ing\030\001 \001(\010R\010isMoving\"\254\001\n\013MoveOptions\0223\n\024m" - "ax_vel_degs_per_sec\030\001 \001(\001H\000R\020maxVelDegsP" - "erSec\210\001\001\0225\n\025max_acc_degs_per_sec2\030\002 \001(\001H" - "\001R\021maxAccDegsPerSec2\210\001\001B\027\n\025_max_vel_degs" - "_per_secB\030\n\026_max_acc_degs_per_sec22\361\014\n\nA" - "rmService\022\241\001\n\016GetEndPosition\022,.viam.comp" - "onent.arm.v1.GetEndPositionRequest\032-.via" - "m.component.arm.v1.GetEndPositionRespons" - "e\"2\202\323\344\223\002,\022*/viam/api/v1/component/arm/{n" - "ame}/position\022\245\001\n\016MoveToPosition\022,.viam." - "component.arm.v1.MoveToPositionRequest\032-" - ".viam.component.arm.v1.MoveToPositionRes" - "ponse\"6\240\222)\001\202\323\344\223\002,\032*/viam/api/v1/componen" - "t/arm/{name}/position\022\261\001\n\021GetJointPositi" - "ons\022/.viam.component.arm.v1.GetJointPosi" - "tionsRequest\0320.viam.component.arm.v1.Get" - "JointPositionsResponse\"9\202\323\344\223\0023\0221/viam/ap" - "i/v1/component/arm/{name}/joint_position" - "s\022\276\001\n\024MoveToJointPositions\0222.viam.compon" - "ent.arm.v1.MoveToJointPositionsRequest\0323" - ".viam.component.arm.v1.MoveToJointPositi" - "onsResponse\"=\240\222)\001\202\323\344\223\0023\0321/viam/api/v1/co" - "mponent/arm/{name}/joint_positions\022\332\001\n\031M" - "oveThroughJointPositions\0227.viam.componen" - "t.arm.v1.MoveThroughJointPositionsReques" - "t\0328.viam.component.arm.v1.MoveThroughJoi" - "ntPositionsResponse\"J\240\222)\001\202\323\344\223\002@\">/viam/a" - "pi/v1/component/arm/{name}/move_through_" - "joint_positions\022\177\n\004Stop\022\".viam.component" - ".arm.v1.StopRequest\032#.viam.component.arm" - ".v1.StopResponse\".\202\323\344\223\002(\"&/viam/api/v1/c" - "omponent/arm/{name}/stop\022\220\001\n\010IsMoving\022&." - "viam.component.arm.v1.IsMovingRequest\032\'." - "viam.component.arm.v1.IsMovingResponse\"3" - "\202\323\344\223\002-\022+/viam/api/v1/component/arm/{name" - "}/is_moving\022\206\001\n\tDoCommand\022 .viam.common." - "v1.DoCommandRequest\032!.viam.common.v1.DoC" - "ommandResponse\"4\202\323\344\223\002.\",/viam/api/v1/com" - "ponent/arm/{name}/do_command\022\222\001\n\rGetKine" - "matics\022$.viam.common.v1.GetKinematicsReq" - "uest\032%.viam.common.v1.GetKinematicsRespo" - "nse\"4\202\323\344\223\002.\022,/viam/api/v1/component/arm/" - "{name}/kinematics\022\222\001\n\rGetGeometries\022$.vi" - "am.common.v1.GetGeometriesRequest\032%.viam" - ".common.v1.GetGeometriesResponse\"4\202\323\344\223\002." - "\022,/viam/api/v1/component/arm/{name}/geom" - "etriesB\276\001\n\031com.viam.component.arm.v1B\010Ar" - "mProtoP\001Z go.viam.com/api/component/arm/" - "v1\242\002\003VCA\252\002\025Viam.Component.Arm.V1\312\002\025Viam\\" - "Component\\Arm\\V1\342\002!Viam\\Component\\Arm\\V1" - "\\GPBMetadata\352\002\030Viam::Component::Arm::V1b" - "\006proto3" -}; -static const ::_pbi::DescriptorTable* const descriptor_table_component_2farm_2fv1_2farm_2eproto_deps[3] = - { - &::descriptor_table_common_2fv1_2fcommon_2eproto, - &::descriptor_table_google_2fapi_2fannotations_2eproto, - &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, -}; -static ::absl::once_flag descriptor_table_component_2farm_2fv1_2farm_2eproto_once; + &::viam::component::arm::v1::_GetEndPositionRequest_default_instance_._instance, + &::viam::component::arm::v1::_GetEndPositionResponse_default_instance_._instance, + &::viam::component::arm::v1::_JointPositions_default_instance_._instance, + &::viam::component::arm::v1::_GetJointPositionsRequest_default_instance_._instance, + &::viam::component::arm::v1::_GetJointPositionsResponse_default_instance_._instance, + &::viam::component::arm::v1::_MoveToPositionRequest_default_instance_._instance, + &::viam::component::arm::v1::_MoveToPositionResponse_default_instance_._instance, + &::viam::component::arm::v1::_MoveToJointPositionsRequest_default_instance_._instance, + &::viam::component::arm::v1::_MoveToJointPositionsResponse_default_instance_._instance, + &::viam::component::arm::v1::_MoveThroughJointPositionsRequest_default_instance_._instance, + &::viam::component::arm::v1::_MoveThroughJointPositionsResponse_default_instance_._instance, + &::viam::component::arm::v1::_StopRequest_default_instance_._instance, + &::viam::component::arm::v1::_StopResponse_default_instance_._instance, + &::viam::component::arm::v1::_Status_default_instance_._instance, + &::viam::component::arm::v1::_IsMovingRequest_default_instance_._instance, + &::viam::component::arm::v1::_IsMovingResponse_default_instance_._instance, + &::viam::component::arm::v1::_MoveOptions_default_instance_._instance, +}; + +const char descriptor_table_protodef_component_2farm_2fv1_2farm_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\032component/arm/v1/arm.proto\022\025viam.compo" + "nent.arm.v1\032\026common/v1/common.proto\032\034goo" + "gle/api/annotations.proto\032\034google/protob" + "uf/struct.proto\"Z\n\025GetEndPositionRequest" + "\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005extra\030c \001(\0132\027.go" + "ogle.protobuf.StructR\005extra\"B\n\026GetEndPos" + "itionResponse\022(\n\004pose\030\001 \001(\0132\024.viam.commo" + "n.v1.PoseR\004pose\"(\n\016JointPositions\022\026\n\006val" + "ues\030\001 \003(\001R\006values\"]\n\030GetJointPositionsRe" + "quest\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005extra\030c \001(\013" + "2\027.google.protobuf.StructR\005extra\"`\n\031GetJ" + "ointPositionsResponse\022C\n\tpositions\030\001 \001(\013" + "2%.viam.component.arm.v1.JointPositionsR" + "\tpositions\"\200\001\n\025MoveToPositionRequest\022\022\n\004" + "name\030\001 \001(\tR\004name\022$\n\002to\030\002 \001(\0132\024.viam.comm" + "on.v1.PoseR\002to\022-\n\005extra\030c \001(\0132\027.google.p" + "rotobuf.StructR\005extra\"\030\n\026MoveToPositionR" + "esponse\"\245\001\n\033MoveToJointPositionsRequest\022" + "\022\n\004name\030\001 \001(\tR\004name\022C\n\tpositions\030\002 \001(\0132%" + ".viam.component.arm.v1.JointPositionsR\tp" + "ositions\022-\n\005extra\030c \001(\0132\027.google.protobu" + "f.StructR\005extra\"\036\n\034MoveToJointPositionsR" + "esponse\"\371\001\n MoveThroughJointPositionsReq" + "uest\022\022\n\004name\030\001 \001(\tR\004name\022C\n\tpositions\030\002 " + "\003(\0132%.viam.component.arm.v1.JointPositio" + "nsR\tpositions\022A\n\007options\030\003 \001(\0132\".viam.co" + "mponent.arm.v1.MoveOptionsH\000R\007options\210\001\001" + "\022-\n\005extra\030c \001(\0132\027.google.protobuf.Struct" + "R\005extraB\n\n\010_options\"#\n!MoveThroughJointP" + "ositionsResponse\"P\n\013StopRequest\022\022\n\004name\030" + "\001 \001(\tR\004name\022-\n\005extra\030c \001(\0132\027.google.prot" + "obuf.StructR\005extra\"\016\n\014StopResponse\"\256\001\n\006S" + "tatus\0227\n\014end_position\030\001 \001(\0132\024.viam.commo" + "n.v1.PoseR\013endPosition\022N\n\017joint_position" + "s\030\002 \001(\0132%.viam.component.arm.v1.JointPos" + "itionsR\016jointPositions\022\033\n\tis_moving\030\003 \001(" + "\010R\010isMoving\"%\n\017IsMovingRequest\022\022\n\004name\030\001" + " \001(\tR\004name\"/\n\020IsMovingResponse\022\033\n\tis_mov" + "ing\030\001 \001(\010R\010isMoving\"\254\001\n\013MoveOptions\0223\n\024m" + "ax_vel_degs_per_sec\030\001 \001(\001H\000R\020maxVelDegsP" + "erSec\210\001\001\0225\n\025max_acc_degs_per_sec2\030\002 \001(\001H" + "\001R\021maxAccDegsPerSec2\210\001\001B\027\n\025_max_vel_degs" + "_per_secB\030\n\026_max_acc_degs_per_sec22\361\014\n\nA" + "rmService\022\241\001\n\016GetEndPosition\022,.viam.comp" + "onent.arm.v1.GetEndPositionRequest\032-.via" + "m.component.arm.v1.GetEndPositionRespons" + "e\"2\202\323\344\223\002,\022*/viam/api/v1/component/arm/{n" + "ame}/position\022\245\001\n\016MoveToPosition\022,.viam." + "component.arm.v1.MoveToPositionRequest\032-" + ".viam.component.arm.v1.MoveToPositionRes" + "ponse\"6\240\222)\001\202\323\344\223\002,\032*/viam/api/v1/componen" + "t/arm/{name}/position\022\261\001\n\021GetJointPositi" + "ons\022/.viam.component.arm.v1.GetJointPosi" + "tionsRequest\0320.viam.component.arm.v1.Get" + "JointPositionsResponse\"9\202\323\344\223\0023\0221/viam/ap" + "i/v1/component/arm/{name}/joint_position" + "s\022\276\001\n\024MoveToJointPositions\0222.viam.compon" + "ent.arm.v1.MoveToJointPositionsRequest\0323" + ".viam.component.arm.v1.MoveToJointPositi" + "onsResponse\"=\240\222)\001\202\323\344\223\0023\0321/viam/api/v1/co" + "mponent/arm/{name}/joint_positions\022\332\001\n\031M" + "oveThroughJointPositions\0227.viam.componen" + "t.arm.v1.MoveThroughJointPositionsReques" + "t\0328.viam.component.arm.v1.MoveThroughJoi" + "ntPositionsResponse\"J\240\222)\001\202\323\344\223\002@\">/viam/a" + "pi/v1/component/arm/{name}/move_through_" + "joint_positions\022\177\n\004Stop\022\".viam.component" + ".arm.v1.StopRequest\032#.viam.component.arm" + ".v1.StopResponse\".\202\323\344\223\002(\"&/viam/api/v1/c" + "omponent/arm/{name}/stop\022\220\001\n\010IsMoving\022&." + "viam.component.arm.v1.IsMovingRequest\032\'." + "viam.component.arm.v1.IsMovingResponse\"3" + "\202\323\344\223\002-\022+/viam/api/v1/component/arm/{name" + "}/is_moving\022\206\001\n\tDoCommand\022 .viam.common." + "v1.DoCommandRequest\032!.viam.common.v1.DoC" + "ommandResponse\"4\202\323\344\223\002.\",/viam/api/v1/com" + "ponent/arm/{name}/do_command\022\222\001\n\rGetKine" + "matics\022$.viam.common.v1.GetKinematicsReq" + "uest\032%.viam.common.v1.GetKinematicsRespo" + "nse\"4\202\323\344\223\002.\022,/viam/api/v1/component/arm/" + "{name}/kinematics\022\222\001\n\rGetGeometries\022$.vi" + "am.common.v1.GetGeometriesRequest\032%.viam" + ".common.v1.GetGeometriesResponse\"4\202\323\344\223\002." + "\022,/viam/api/v1/component/arm/{name}/geom" + "etriesB=\n\031com.viam.component.arm.v1Z go." + "viam.com/api/component/arm/v1b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_component_2farm_2fv1_2farm_2eproto_deps[3] = { + &::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_2farm_2fv1_2farm_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_component_2farm_2fv1_2farm_2eproto = { - false, - false, - 3567, - descriptor_table_protodef_component_2farm_2fv1_2farm_2eproto, + false, false, 3437, descriptor_table_protodef_component_2farm_2fv1_2farm_2eproto, "component/arm/v1/arm.proto", - &descriptor_table_component_2farm_2fv1_2farm_2eproto_once, - descriptor_table_component_2farm_2fv1_2farm_2eproto_deps, - 3, - 17, - schemas, - file_default_instances, - TableStruct_component_2farm_2fv1_2farm_2eproto::offsets, - file_level_metadata_component_2farm_2fv1_2farm_2eproto, - file_level_enum_descriptors_component_2farm_2fv1_2farm_2eproto, + &descriptor_table_component_2farm_2fv1_2farm_2eproto_once, descriptor_table_component_2farm_2fv1_2farm_2eproto_deps, 3, 17, + schemas, file_default_instances, TableStruct_component_2farm_2fv1_2farm_2eproto::offsets, + file_level_metadata_component_2farm_2fv1_2farm_2eproto, file_level_enum_descriptors_component_2farm_2fv1_2farm_2eproto, file_level_service_descriptors_component_2farm_2fv1_2farm_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_component_2farm_2fv1_2farm_2eproto_getter() { return &descriptor_table_component_2farm_2fv1_2farm_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_component_2farm_2fv1_2farm_2eproto(&descriptor_table_component_2farm_2fv1_2farm_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_component_2farm_2fv1_2farm_2eproto(&descriptor_table_component_2farm_2fv1_2farm_2eproto); namespace viam { namespace component { namespace arm { namespace v1 { + // =================================================================== class GetEndPositionRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetEndPositionRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const GetEndPositionRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetEndPositionRequest* msg); }; -const ::google::protobuf::Struct& GetEndPositionRequest::_Internal::extra(const GetEndPositionRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetEndPositionRequest::_Internal::extra(const GetEndPositionRequest* msg) { + return *msg->extra_; } void GetEndPositionRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -GetEndPositionRequest::GetEndPositionRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetEndPositionRequest::GetEndPositionRequest(::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.arm.v1.GetEndPositionRequest) } -inline PROTOBUF_NDEBUG_INLINE GetEndPositionRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -GetEndPositionRequest::GetEndPositionRequest( - ::google::protobuf::Arena* arena, - const GetEndPositionRequest& from) - : ::google::protobuf::Message(arena) { - GetEndPositionRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +GetEndPositionRequest::GetEndPositionRequest(const GetEndPositionRequest& 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.arm.v1.GetEndPositionRequest) } -inline PROTOBUF_NDEBUG_INLINE GetEndPositionRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} -inline void GetEndPositionRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void GetEndPositionRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + GetEndPositionRequest::~GetEndPositionRequest() { // @@protoc_insertion_point(destructor:viam.component.arm.v1.GetEndPositionRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetEndPositionRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void GetEndPositionRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetEndPositionRequest::Clear() { +void GetEndPositionRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.arm.v1.GetEndPositionRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetEndPositionRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetEndPositionRequest::_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.arm.v1.GetEndPositionRequest.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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 2, 1, 56, 7> GetEndPositionRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetEndPositionRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetEndPositionRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetEndPositionRequest, _impl_.name_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(GetEndPositionRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 1, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(GetEndPositionRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(GetEndPositionRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\53\4\0\0\0\0\0\0" - "viam.component.arm.v1.GetEndPositionRequest" - "name" - }}, -}; - -::uint8_t* GetEndPositionRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetEndPositionRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.arm.v1.GetEndPositionRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.arm.v1.GetEndPositionRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.arm.v1.GetEndPositionRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.arm.v1.GetEndPositionRequest) return target; } -::size_t GetEndPositionRequest::ByteSizeLong() const { +size_t GetEndPositionRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.arm.v1.GetEndPositionRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetEndPositionRequest::_class_data_ = { - GetEndPositionRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetEndPositionRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetEndPositionRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetEndPositionRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetEndPositionRequest::GetClassData() const { return &_class_data_; } + +void GetEndPositionRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetEndPositionRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.arm.v1.GetEndPositionRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetEndPositionRequest::MergeFrom(const GetEndPositionRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.arm.v1.GetEndPositionRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetEndPositionRequest::CopyFrom(const GetEndPositionRequest& from) { @@ -949,212 +755,196 @@ void GetEndPositionRequest::CopyFrom(const GetEndPositionRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetEndPositionRequest::IsInitialized() const { +bool GetEndPositionRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetEndPositionRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetEndPositionRequest::InternalSwap(GetEndPositionRequest* PROTOBUF_RESTRICT other) { +void GetEndPositionRequest::InternalSwap(GetEndPositionRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.extra_, other->_impl_.extra_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(extra_, other->extra_); } -::google::protobuf::Metadata GetEndPositionRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetEndPositionRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2farm_2fv1_2farm_2eproto_getter, &descriptor_table_component_2farm_2fv1_2farm_2eproto_once, file_level_metadata_component_2farm_2fv1_2farm_2eproto[0]); } + // =================================================================== class GetEndPositionResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetEndPositionResponse, _impl_._has_bits_); static const ::viam::common::v1::Pose& pose(const GetEndPositionResponse* msg); - static void set_has_pose(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::common::v1::Pose& GetEndPositionResponse::_Internal::pose(const GetEndPositionResponse* msg) { - return *msg->_impl_.pose_; +const ::viam::common::v1::Pose& +GetEndPositionResponse::_Internal::pose(const GetEndPositionResponse* msg) { + return *msg->pose_; } void GetEndPositionResponse::clear_pose() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.pose_ != nullptr) _impl_.pose_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && pose_ != nullptr) { + delete pose_; + } + pose_ = nullptr; } -GetEndPositionResponse::GetEndPositionResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetEndPositionResponse::GetEndPositionResponse(::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.arm.v1.GetEndPositionResponse) } -inline PROTOBUF_NDEBUG_INLINE GetEndPositionResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -GetEndPositionResponse::GetEndPositionResponse( - ::google::protobuf::Arena* arena, - const GetEndPositionResponse& from) - : ::google::protobuf::Message(arena) { - GetEndPositionResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.pose_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::common::v1::Pose>(arena, *from._impl_.pose_) - : nullptr; - +GetEndPositionResponse::GetEndPositionResponse(const GetEndPositionResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_pose()) { + pose_ = new ::viam::common::v1::Pose(*from.pose_); + } else { + pose_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.component.arm.v1.GetEndPositionResponse) } -inline PROTOBUF_NDEBUG_INLINE GetEndPositionResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void GetEndPositionResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.pose_ = {}; +inline void GetEndPositionResponse::SharedCtor() { +pose_ = nullptr; } + GetEndPositionResponse::~GetEndPositionResponse() { // @@protoc_insertion_point(destructor:viam.component.arm.v1.GetEndPositionResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetEndPositionResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.pose_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete pose_; } -PROTOBUF_NOINLINE void GetEndPositionResponse::Clear() { +void GetEndPositionResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetEndPositionResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.arm.v1.GetEndPositionResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.pose_ != nullptr); - _impl_.pose_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetEndPositionResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + if (GetArenaForAllocation() == nullptr && pose_ != nullptr) { + delete pose_; + } + pose_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetEndPositionResponse::_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.Pose pose = 1 [json_name = "pose"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_pose(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetEndPositionResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetEndPositionResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetEndPositionResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.common.v1.Pose pose = 1 [json_name = "pose"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetEndPositionResponse, _impl_.pose_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.common.v1.Pose pose = 1 [json_name = "pose"]; - {PROTOBUF_FIELD_OFFSET(GetEndPositionResponse, _impl_.pose_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::common::v1::Pose>()}, - }}, {{ - }}, -}; - -::uint8_t* GetEndPositionResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetEndPositionResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.arm.v1.GetEndPositionResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.common.v1.Pose pose = 1 [json_name = "pose"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::pose(this), + if (this->_internal_has_pose()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::pose(this), _Internal::pose(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.arm.v1.GetEndPositionResponse) return target; } -::size_t GetEndPositionResponse::ByteSizeLong() const { +size_t GetEndPositionResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.arm.v1.GetEndPositionResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .viam.common.v1.Pose pose = 1 [json_name = "pose"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.pose_); + if (this->_internal_has_pose()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *pose_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetEndPositionResponse::_class_data_ = { - GetEndPositionResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetEndPositionResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetEndPositionResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetEndPositionResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetEndPositionResponse::GetClassData() const { return &_class_data_; } + +void GetEndPositionResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetEndPositionResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.arm.v1.GetEndPositionResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetEndPositionResponse::MergeFrom(const GetEndPositionResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.arm.v1.GetEndPositionResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_pose()->::viam::common::v1::Pose::MergeFrom( - from._internal_pose()); + if (from._internal_has_pose()) { + _internal_mutable_pose()->::viam::common::v1::Pose::MergeFrom(from._internal_pose()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetEndPositionResponse::CopyFrom(const GetEndPositionResponse& from) { @@ -1164,127 +954,117 @@ void GetEndPositionResponse::CopyFrom(const GetEndPositionResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetEndPositionResponse::IsInitialized() const { +bool GetEndPositionResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetEndPositionResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetEndPositionResponse::InternalSwap(GetEndPositionResponse* PROTOBUF_RESTRICT other) { +void GetEndPositionResponse::InternalSwap(GetEndPositionResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.pose_, other->_impl_.pose_); + swap(pose_, other->pose_); } -::google::protobuf::Metadata GetEndPositionResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetEndPositionResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2farm_2fv1_2farm_2eproto_getter, &descriptor_table_component_2farm_2fv1_2farm_2eproto_once, file_level_metadata_component_2farm_2fv1_2farm_2eproto[1]); } + // =================================================================== class JointPositions::_Internal { public: }; -JointPositions::JointPositions(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +JointPositions::JointPositions(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + values_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.component.arm.v1.JointPositions) } -inline PROTOBUF_NDEBUG_INLINE JointPositions::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : values_{visibility, arena, from.values_}, - _cached_size_{0} {} - -JointPositions::JointPositions( - ::google::protobuf::Arena* arena, - const JointPositions& from) - : ::google::protobuf::Message(arena) { - JointPositions* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +JointPositions::JointPositions(const JointPositions& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + values_(from.values_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.component.arm.v1.JointPositions) } -inline PROTOBUF_NDEBUG_INLINE JointPositions::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : values_{visibility, arena}, - _cached_size_{0} {} -inline void JointPositions::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void JointPositions::SharedCtor() { } + JointPositions::~JointPositions() { // @@protoc_insertion_point(destructor:viam.component.arm.v1.JointPositions) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void JointPositions::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void JointPositions::Clear() { +void JointPositions::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void JointPositions::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.arm.v1.JointPositions) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.values_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* JointPositions::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + values_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* JointPositions::_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) { + // repeated double values = 1 [json_name = "values"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedDoubleParser(_internal_mutable_values(), ptr, ctx); + CHK_(ptr); + } else if (static_cast(tag) == 9) { + _internal_add_values(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); + ptr += sizeof(double); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> JointPositions::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_JointPositions_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated double values = 1 [json_name = "values"]; - {::_pbi::TcParser::FastF64P1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(JointPositions, _impl_.values_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated double values = 1 [json_name = "values"]; - {PROTOBUF_FIELD_OFFSET(JointPositions, _impl_.values_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* JointPositions::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* JointPositions::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.arm.v1.JointPositions) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated double values = 1 [json_name = "values"]; if (this->_internal_values_size() > 0) { @@ -1292,55 +1072,56 @@ ::uint8_t* JointPositions::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.arm.v1.JointPositions) return target; } -::size_t JointPositions::ByteSizeLong() const { +size_t JointPositions::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.arm.v1.JointPositions) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated double values = 1 [json_name = "values"]; { - std::size_t data_size = std::size_t{8} * - ::_pbi::FromIntSize(this->_internal_values_size()) - ; - std::size_t tag_size = data_size == 0 - ? 0 - : 1 + ::_pbi::WireFormatLite::Int32Size( - static_cast(data_size)) - ; - total_size += tag_size + data_size; - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData JointPositions::_class_data_ = { - JointPositions::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor + unsigned int count = static_cast(this->_internal_values_size()); + size_t data_size = 8UL * count; + if (data_size > 0) { + total_size += 1 + + ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); + } + total_size += data_size; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData JointPositions::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + JointPositions::MergeImpl }; -const ::google::protobuf::Message::ClassData* JointPositions::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*JointPositions::GetClassData() const { return &_class_data_; } + +void JointPositions::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void JointPositions::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.arm.v1.JointPositions) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void JointPositions::MergeFrom(const JointPositions& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.arm.v1.JointPositions) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_values()->MergeFrom(from._internal_values()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + values_.MergeFrom(from.values_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void JointPositions::CopyFrom(const JointPositions& from) { @@ -1350,242 +1131,234 @@ void JointPositions::CopyFrom(const JointPositions& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool JointPositions::IsInitialized() const { +bool JointPositions::IsInitialized() const { return true; } -::_pbi::CachedSize* JointPositions::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void JointPositions::InternalSwap(JointPositions* PROTOBUF_RESTRICT other) { +void JointPositions::InternalSwap(JointPositions* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.values_.InternalSwap(&other->_impl_.values_); + values_.InternalSwap(&other->values_); } -::google::protobuf::Metadata JointPositions::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata JointPositions::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2farm_2fv1_2farm_2eproto_getter, &descriptor_table_component_2farm_2fv1_2farm_2eproto_once, file_level_metadata_component_2farm_2fv1_2farm_2eproto[2]); } + // =================================================================== class GetJointPositionsRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetJointPositionsRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const GetJointPositionsRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetJointPositionsRequest* msg); }; -const ::google::protobuf::Struct& GetJointPositionsRequest::_Internal::extra(const GetJointPositionsRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetJointPositionsRequest::_Internal::extra(const GetJointPositionsRequest* msg) { + return *msg->extra_; } void GetJointPositionsRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -GetJointPositionsRequest::GetJointPositionsRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetJointPositionsRequest::GetJointPositionsRequest(::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.arm.v1.GetJointPositionsRequest) } -inline PROTOBUF_NDEBUG_INLINE GetJointPositionsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -GetJointPositionsRequest::GetJointPositionsRequest( - ::google::protobuf::Arena* arena, - const GetJointPositionsRequest& from) - : ::google::protobuf::Message(arena) { - GetJointPositionsRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +GetJointPositionsRequest::GetJointPositionsRequest(const GetJointPositionsRequest& 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.arm.v1.GetJointPositionsRequest) } -inline PROTOBUF_NDEBUG_INLINE GetJointPositionsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} -inline void GetJointPositionsRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void GetJointPositionsRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + GetJointPositionsRequest::~GetJointPositionsRequest() { // @@protoc_insertion_point(destructor:viam.component.arm.v1.GetJointPositionsRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetJointPositionsRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; } -PROTOBUF_NOINLINE void GetJointPositionsRequest::Clear() { +void GetJointPositionsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetJointPositionsRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.arm.v1.GetJointPositionsRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetJointPositionsRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetJointPositionsRequest::_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.arm.v1.GetJointPositionsRequest.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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 2, 1, 59, 7> GetJointPositionsRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetJointPositionsRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetJointPositionsRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetJointPositionsRequest, _impl_.name_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(GetJointPositionsRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 1, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(GetJointPositionsRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(GetJointPositionsRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\56\4\0\0\0\0\0\0" - "viam.component.arm.v1.GetJointPositionsRequest" - "name" - }}, -}; - -::uint8_t* GetJointPositionsRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetJointPositionsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.arm.v1.GetJointPositionsRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.arm.v1.GetJointPositionsRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.arm.v1.GetJointPositionsRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.arm.v1.GetJointPositionsRequest) return target; } -::size_t GetJointPositionsRequest::ByteSizeLong() const { +size_t GetJointPositionsRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.arm.v1.GetJointPositionsRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetJointPositionsRequest::_class_data_ = { - GetJointPositionsRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetJointPositionsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetJointPositionsRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetJointPositionsRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetJointPositionsRequest::GetClassData() const { return &_class_data_; } + +void GetJointPositionsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetJointPositionsRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.arm.v1.GetJointPositionsRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetJointPositionsRequest::MergeFrom(const GetJointPositionsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.arm.v1.GetJointPositionsRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetJointPositionsRequest::CopyFrom(const GetJointPositionsRequest& from) { @@ -1595,207 +1368,190 @@ void GetJointPositionsRequest::CopyFrom(const GetJointPositionsRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetJointPositionsRequest::IsInitialized() const { +bool GetJointPositionsRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetJointPositionsRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetJointPositionsRequest::InternalSwap(GetJointPositionsRequest* PROTOBUF_RESTRICT other) { +void GetJointPositionsRequest::InternalSwap(GetJointPositionsRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.extra_, other->_impl_.extra_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(extra_, other->extra_); } -::google::protobuf::Metadata GetJointPositionsRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetJointPositionsRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2farm_2fv1_2farm_2eproto_getter, &descriptor_table_component_2farm_2fv1_2farm_2eproto_once, file_level_metadata_component_2farm_2fv1_2farm_2eproto[3]); } + // =================================================================== class GetJointPositionsResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetJointPositionsResponse, _impl_._has_bits_); static const ::viam::component::arm::v1::JointPositions& positions(const GetJointPositionsResponse* msg); - static void set_has_positions(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::component::arm::v1::JointPositions& GetJointPositionsResponse::_Internal::positions(const GetJointPositionsResponse* msg) { - return *msg->_impl_.positions_; +const ::viam::component::arm::v1::JointPositions& +GetJointPositionsResponse::_Internal::positions(const GetJointPositionsResponse* msg) { + return *msg->positions_; } -GetJointPositionsResponse::GetJointPositionsResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetJointPositionsResponse::GetJointPositionsResponse(::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.arm.v1.GetJointPositionsResponse) } -inline PROTOBUF_NDEBUG_INLINE GetJointPositionsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -GetJointPositionsResponse::GetJointPositionsResponse( - ::google::protobuf::Arena* arena, - const GetJointPositionsResponse& from) - : ::google::protobuf::Message(arena) { - GetJointPositionsResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.positions_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::component::arm::v1::JointPositions>(arena, *from._impl_.positions_) - : nullptr; - +GetJointPositionsResponse::GetJointPositionsResponse(const GetJointPositionsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_positions()) { + positions_ = new ::viam::component::arm::v1::JointPositions(*from.positions_); + } else { + positions_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.component.arm.v1.GetJointPositionsResponse) } -inline PROTOBUF_NDEBUG_INLINE GetJointPositionsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void GetJointPositionsResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.positions_ = {}; +inline void GetJointPositionsResponse::SharedCtor() { +positions_ = nullptr; } + GetJointPositionsResponse::~GetJointPositionsResponse() { // @@protoc_insertion_point(destructor:viam.component.arm.v1.GetJointPositionsResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetJointPositionsResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.positions_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete positions_; } -PROTOBUF_NOINLINE void GetJointPositionsResponse::Clear() { +void GetJointPositionsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetJointPositionsResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.arm.v1.GetJointPositionsResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.positions_ != nullptr); - _impl_.positions_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetJointPositionsResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + if (GetArenaForAllocation() == nullptr && positions_ != nullptr) { + delete positions_; + } + positions_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetJointPositionsResponse::_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.component.arm.v1.JointPositions positions = 1 [json_name = "positions"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_positions(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetJointPositionsResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetJointPositionsResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetJointPositionsResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.component.arm.v1.JointPositions positions = 1 [json_name = "positions"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetJointPositionsResponse, _impl_.positions_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.component.arm.v1.JointPositions positions = 1 [json_name = "positions"]; - {PROTOBUF_FIELD_OFFSET(GetJointPositionsResponse, _impl_.positions_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::component::arm::v1::JointPositions>()}, - }}, {{ - }}, -}; - -::uint8_t* GetJointPositionsResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetJointPositionsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.arm.v1.GetJointPositionsResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.component.arm.v1.JointPositions positions = 1 [json_name = "positions"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::positions(this), + if (this->_internal_has_positions()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::positions(this), _Internal::positions(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.arm.v1.GetJointPositionsResponse) return target; } -::size_t GetJointPositionsResponse::ByteSizeLong() const { +size_t GetJointPositionsResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.arm.v1.GetJointPositionsResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .viam.component.arm.v1.JointPositions positions = 1 [json_name = "positions"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.positions_); + if (this->_internal_has_positions()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *positions_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetJointPositionsResponse::_class_data_ = { - GetJointPositionsResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetJointPositionsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetJointPositionsResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetJointPositionsResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetJointPositionsResponse::GetClassData() const { return &_class_data_; } + +void GetJointPositionsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetJointPositionsResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.arm.v1.GetJointPositionsResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetJointPositionsResponse::MergeFrom(const GetJointPositionsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.arm.v1.GetJointPositionsResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_positions()->::viam::component::arm::v1::JointPositions::MergeFrom( - from._internal_positions()); + if (from._internal_has_positions()) { + _internal_mutable_positions()->::viam::component::arm::v1::JointPositions::MergeFrom(from._internal_positions()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetJointPositionsResponse::CopyFrom(const GetJointPositionsResponse& from) { @@ -1805,298 +1561,283 @@ void GetJointPositionsResponse::CopyFrom(const GetJointPositionsResponse& from) MergeFrom(from); } -PROTOBUF_NOINLINE bool GetJointPositionsResponse::IsInitialized() const { +bool GetJointPositionsResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetJointPositionsResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetJointPositionsResponse::InternalSwap(GetJointPositionsResponse* PROTOBUF_RESTRICT other) { +void GetJointPositionsResponse::InternalSwap(GetJointPositionsResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.positions_, other->_impl_.positions_); + swap(positions_, other->positions_); } -::google::protobuf::Metadata GetJointPositionsResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetJointPositionsResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2farm_2fv1_2farm_2eproto_getter, &descriptor_table_component_2farm_2fv1_2farm_2eproto_once, file_level_metadata_component_2farm_2fv1_2farm_2eproto[4]); } + // =================================================================== class MoveToPositionRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(MoveToPositionRequest, _impl_._has_bits_); static const ::viam::common::v1::Pose& to(const MoveToPositionRequest* msg); - static void set_has_to(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::google::protobuf::Struct& extra(const MoveToPositionRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const MoveToPositionRequest* msg); }; -const ::viam::common::v1::Pose& MoveToPositionRequest::_Internal::to(const MoveToPositionRequest* msg) { - return *msg->_impl_.to_; +const ::viam::common::v1::Pose& +MoveToPositionRequest::_Internal::to(const MoveToPositionRequest* msg) { + return *msg->to_; } -const ::google::protobuf::Struct& MoveToPositionRequest::_Internal::extra(const MoveToPositionRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +MoveToPositionRequest::_Internal::extra(const MoveToPositionRequest* msg) { + return *msg->extra_; } void MoveToPositionRequest::clear_to() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.to_ != nullptr) _impl_.to_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && to_ != nullptr) { + delete to_; + } + to_ = nullptr; } void MoveToPositionRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -MoveToPositionRequest::MoveToPositionRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +MoveToPositionRequest::MoveToPositionRequest(::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.arm.v1.MoveToPositionRequest) } -inline PROTOBUF_NDEBUG_INLINE MoveToPositionRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -MoveToPositionRequest::MoveToPositionRequest( - ::google::protobuf::Arena* arena, - const MoveToPositionRequest& from) - : ::google::protobuf::Message(arena) { - MoveToPositionRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.to_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::common::v1::Pose>(arena, *from._impl_.to_) - : nullptr; - _impl_.extra_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +MoveToPositionRequest::MoveToPositionRequest(const MoveToPositionRequest& 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_to()) { + to_ = new ::viam::common::v1::Pose(*from.to_); + } else { + to_ = nullptr; + } + if (from._internal_has_extra()) { + extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.extra_); + } else { + extra_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.component.arm.v1.MoveToPositionRequest) } -inline PROTOBUF_NDEBUG_INLINE MoveToPositionRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} - -inline void MoveToPositionRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, to_), - 0, - offsetof(Impl_, extra_) - - offsetof(Impl_, to_) + - sizeof(Impl_::extra_)); + +inline void MoveToPositionRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&to_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&extra_) - + reinterpret_cast(&to_)) + sizeof(extra_)); } + MoveToPositionRequest::~MoveToPositionRequest() { // @@protoc_insertion_point(destructor:viam.component.arm.v1.MoveToPositionRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void MoveToPositionRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.to_; - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete to_; + if (this != internal_default_instance()) delete extra_; } -PROTOBUF_NOINLINE void MoveToPositionRequest::Clear() { +void MoveToPositionRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void MoveToPositionRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.arm.v1.MoveToPositionRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.to_ != nullptr); - _impl_.to_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && to_ != nullptr) { + delete to_; + } + to_ = nullptr; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* MoveToPositionRequest::_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.arm.v1.MoveToPositionRequest.name")); + } else + goto handle_unusual; + continue; + // .viam.common.v1.Pose to = 2 [json_name = "to"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_to(), ptr); + CHK_(ptr); + } 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; } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* MoveToPositionRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 2, 56, 7> MoveToPositionRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(MoveToPositionRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_MoveToPositionRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(MoveToPositionRequest, _impl_.name_)}}, - // .viam.common.v1.Pose to = 2 [json_name = "to"]; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(MoveToPositionRequest, _impl_.to_)}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 1, 1, PROTOBUF_FIELD_OFFSET(MoveToPositionRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 2, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(MoveToPositionRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .viam.common.v1.Pose to = 2 [json_name = "to"]; - {PROTOBUF_FIELD_OFFSET(MoveToPositionRequest, _impl_.to_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(MoveToPositionRequest, _impl_.extra_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::common::v1::Pose>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\53\4\0\0\0\0\0\0" - "viam.component.arm.v1.MoveToPositionRequest" - "name" - }}, -}; - -::uint8_t* MoveToPositionRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* MoveToPositionRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.arm.v1.MoveToPositionRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.arm.v1.MoveToPositionRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.arm.v1.MoveToPositionRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .viam.common.v1.Pose to = 2 [json_name = "to"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::to(this), + if (this->_internal_has_to()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::to(this), _Internal::to(this).GetCachedSize(), target, stream); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.arm.v1.MoveToPositionRequest) return target; } -::size_t MoveToPositionRequest::ByteSizeLong() const { +size_t MoveToPositionRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.arm.v1.MoveToPositionRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // .viam.common.v1.Pose to = 2 [json_name = "to"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.to_); - } - - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); - } + // .viam.common.v1.Pose to = 2 [json_name = "to"]; + if (this->_internal_has_to()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *to_); + } + // .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, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData MoveToPositionRequest::_class_data_ = { - MoveToPositionRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveToPositionRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + MoveToPositionRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* MoveToPositionRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MoveToPositionRequest::GetClassData() const { return &_class_data_; } + +void MoveToPositionRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void MoveToPositionRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.arm.v1.MoveToPositionRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void MoveToPositionRequest::MergeFrom(const MoveToPositionRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.arm.v1.MoveToPositionRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_to()->::viam::common::v1::Pose::MergeFrom( - from._internal_to()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); - } + if (from._internal_has_to()) { + _internal_mutable_to()->::viam::common::v1::Pose::MergeFrom(from._internal_to()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + 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 MoveToPositionRequest::CopyFrom(const MoveToPositionRequest& from) { @@ -2106,52 +1847,47 @@ void MoveToPositionRequest::CopyFrom(const MoveToPositionRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool MoveToPositionRequest::IsInitialized() const { +bool MoveToPositionRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* MoveToPositionRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void MoveToPositionRequest::InternalSwap(MoveToPositionRequest* PROTOBUF_RESTRICT other) { +void MoveToPositionRequest::InternalSwap(MoveToPositionRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(MoveToPositionRequest, _impl_.extra_) - + sizeof(MoveToPositionRequest::_impl_.extra_) - - PROTOBUF_FIELD_OFFSET(MoveToPositionRequest, _impl_.to_)>( - reinterpret_cast(&_impl_.to_), - reinterpret_cast(&other->_impl_.to_)); -} - -::google::protobuf::Metadata MoveToPositionRequest::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(MoveToPositionRequest, extra_) + + sizeof(MoveToPositionRequest::extra_) + - PROTOBUF_FIELD_OFFSET(MoveToPositionRequest, to_)>( + reinterpret_cast(&to_), + reinterpret_cast(&other->to_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata MoveToPositionRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2farm_2fv1_2farm_2eproto_getter, &descriptor_table_component_2farm_2fv1_2farm_2eproto_once, file_level_metadata_component_2farm_2fv1_2farm_2eproto[5]); } + // =================================================================== class MoveToPositionResponse::_Internal { public: }; -MoveToPositionResponse::MoveToPositionResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +MoveToPositionResponse::MoveToPositionResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.component.arm.v1.MoveToPositionResponse) } -MoveToPositionResponse::MoveToPositionResponse( - ::google::protobuf::Arena* arena, - const MoveToPositionResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - MoveToPositionResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +MoveToPositionResponse::MoveToPositionResponse(const MoveToPositionResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.component.arm.v1.MoveToPositionResponse) } @@ -2159,283 +1895,279 @@ MoveToPositionResponse::MoveToPositionResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveToPositionResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MoveToPositionResponse::GetClassData() const { return &_class_data_; } + + -::google::protobuf::Metadata MoveToPositionResponse::GetMetadata() const { + +::PROTOBUF_NAMESPACE_ID::Metadata MoveToPositionResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2farm_2fv1_2farm_2eproto_getter, &descriptor_table_component_2farm_2fv1_2farm_2eproto_once, file_level_metadata_component_2farm_2fv1_2farm_2eproto[6]); } + // =================================================================== class MoveToJointPositionsRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(MoveToJointPositionsRequest, _impl_._has_bits_); static const ::viam::component::arm::v1::JointPositions& positions(const MoveToJointPositionsRequest* msg); - static void set_has_positions(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::google::protobuf::Struct& extra(const MoveToJointPositionsRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const MoveToJointPositionsRequest* msg); }; -const ::viam::component::arm::v1::JointPositions& MoveToJointPositionsRequest::_Internal::positions(const MoveToJointPositionsRequest* msg) { - return *msg->_impl_.positions_; +const ::viam::component::arm::v1::JointPositions& +MoveToJointPositionsRequest::_Internal::positions(const MoveToJointPositionsRequest* msg) { + return *msg->positions_; } -const ::google::protobuf::Struct& MoveToJointPositionsRequest::_Internal::extra(const MoveToJointPositionsRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +MoveToJointPositionsRequest::_Internal::extra(const MoveToJointPositionsRequest* msg) { + return *msg->extra_; } void MoveToJointPositionsRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -MoveToJointPositionsRequest::MoveToJointPositionsRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +MoveToJointPositionsRequest::MoveToJointPositionsRequest(::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.arm.v1.MoveToJointPositionsRequest) } -inline PROTOBUF_NDEBUG_INLINE MoveToJointPositionsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -MoveToJointPositionsRequest::MoveToJointPositionsRequest( - ::google::protobuf::Arena* arena, - const MoveToJointPositionsRequest& from) - : ::google::protobuf::Message(arena) { - MoveToJointPositionsRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.positions_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::component::arm::v1::JointPositions>(arena, *from._impl_.positions_) - : nullptr; - _impl_.extra_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +MoveToJointPositionsRequest::MoveToJointPositionsRequest(const MoveToJointPositionsRequest& 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_positions()) { + positions_ = new ::viam::component::arm::v1::JointPositions(*from.positions_); + } else { + positions_ = nullptr; + } + if (from._internal_has_extra()) { + extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.extra_); + } else { + extra_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.component.arm.v1.MoveToJointPositionsRequest) } -inline PROTOBUF_NDEBUG_INLINE MoveToJointPositionsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} - -inline void MoveToJointPositionsRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, positions_), - 0, - offsetof(Impl_, extra_) - - offsetof(Impl_, positions_) + - sizeof(Impl_::extra_)); + +inline void MoveToJointPositionsRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&positions_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&extra_) - + reinterpret_cast(&positions_)) + sizeof(extra_)); } + MoveToJointPositionsRequest::~MoveToJointPositionsRequest() { // @@protoc_insertion_point(destructor:viam.component.arm.v1.MoveToJointPositionsRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } -inline void MoveToJointPositionsRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.positions_; - delete _impl_.extra_; - _impl_.~Impl_(); -} -PROTOBUF_NOINLINE void MoveToJointPositionsRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.component.arm.v1.MoveToJointPositionsRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.positions_ != nullptr); - _impl_.positions_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +inline void MoveToJointPositionsRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete positions_; + if (this != internal_default_instance()) delete extra_; } -const char* MoveToJointPositionsRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +void MoveToJointPositionsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } +void MoveToJointPositionsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.arm.v1.MoveToJointPositionsRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 2, 62, 7> MoveToJointPositionsRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(MoveToJointPositionsRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_MoveToJointPositionsRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(MoveToJointPositionsRequest, _impl_.name_)}}, - // .viam.component.arm.v1.JointPositions positions = 2 [json_name = "positions"]; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(MoveToJointPositionsRequest, _impl_.positions_)}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 1, 1, PROTOBUF_FIELD_OFFSET(MoveToJointPositionsRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 2, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(MoveToJointPositionsRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .viam.component.arm.v1.JointPositions positions = 2 [json_name = "positions"]; - {PROTOBUF_FIELD_OFFSET(MoveToJointPositionsRequest, _impl_.positions_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(MoveToJointPositionsRequest, _impl_.extra_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::component::arm::v1::JointPositions>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\61\4\0\0\0\0\0\0" - "viam.component.arm.v1.MoveToJointPositionsRequest" - "name" - }}, -}; + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && positions_ != nullptr) { + delete positions_; + } + positions_ = nullptr; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* MoveToJointPositionsRequest::_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.arm.v1.MoveToJointPositionsRequest.name")); + } else + goto handle_unusual; + continue; + // .viam.component.arm.v1.JointPositions positions = 2 [json_name = "positions"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_positions(), ptr); + CHK_(ptr); + } 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* MoveToJointPositionsRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* MoveToJointPositionsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.arm.v1.MoveToJointPositionsRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.arm.v1.MoveToJointPositionsRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.arm.v1.MoveToJointPositionsRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .viam.component.arm.v1.JointPositions positions = 2 [json_name = "positions"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::positions(this), + if (this->_internal_has_positions()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::positions(this), _Internal::positions(this).GetCachedSize(), target, stream); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.arm.v1.MoveToJointPositionsRequest) return target; } -::size_t MoveToJointPositionsRequest::ByteSizeLong() const { +size_t MoveToJointPositionsRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.arm.v1.MoveToJointPositionsRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // .viam.component.arm.v1.JointPositions positions = 2 [json_name = "positions"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.positions_); - } - - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); - } + // .viam.component.arm.v1.JointPositions positions = 2 [json_name = "positions"]; + if (this->_internal_has_positions()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *positions_); + } + // .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, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData MoveToJointPositionsRequest::_class_data_ = { - MoveToJointPositionsRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveToJointPositionsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + MoveToJointPositionsRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* MoveToJointPositionsRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MoveToJointPositionsRequest::GetClassData() const { return &_class_data_; } + +void MoveToJointPositionsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void MoveToJointPositionsRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.arm.v1.MoveToJointPositionsRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void MoveToJointPositionsRequest::MergeFrom(const MoveToJointPositionsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.arm.v1.MoveToJointPositionsRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_positions()->::viam::component::arm::v1::JointPositions::MergeFrom( - from._internal_positions()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); - } + if (from._internal_has_positions()) { + _internal_mutable_positions()->::viam::component::arm::v1::JointPositions::MergeFrom(from._internal_positions()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + 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 MoveToJointPositionsRequest::CopyFrom(const MoveToJointPositionsRequest& from) { @@ -2445,52 +2177,47 @@ void MoveToJointPositionsRequest::CopyFrom(const MoveToJointPositionsRequest& fr MergeFrom(from); } -PROTOBUF_NOINLINE bool MoveToJointPositionsRequest::IsInitialized() const { +bool MoveToJointPositionsRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* MoveToJointPositionsRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void MoveToJointPositionsRequest::InternalSwap(MoveToJointPositionsRequest* PROTOBUF_RESTRICT other) { +void MoveToJointPositionsRequest::InternalSwap(MoveToJointPositionsRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(MoveToJointPositionsRequest, _impl_.extra_) - + sizeof(MoveToJointPositionsRequest::_impl_.extra_) - - PROTOBUF_FIELD_OFFSET(MoveToJointPositionsRequest, _impl_.positions_)>( - reinterpret_cast(&_impl_.positions_), - reinterpret_cast(&other->_impl_.positions_)); -} - -::google::protobuf::Metadata MoveToJointPositionsRequest::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(MoveToJointPositionsRequest, extra_) + + sizeof(MoveToJointPositionsRequest::extra_) + - PROTOBUF_FIELD_OFFSET(MoveToJointPositionsRequest, positions_)>( + reinterpret_cast(&positions_), + reinterpret_cast(&other->positions_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata MoveToJointPositionsRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2farm_2fv1_2farm_2eproto_getter, &descriptor_table_component_2farm_2fv1_2farm_2eproto_once, file_level_metadata_component_2farm_2fv1_2farm_2eproto[7]); } + // =================================================================== class MoveToJointPositionsResponse::_Internal { public: }; -MoveToJointPositionsResponse::MoveToJointPositionsResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +MoveToJointPositionsResponse::MoveToJointPositionsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.component.arm.v1.MoveToJointPositionsResponse) } -MoveToJointPositionsResponse::MoveToJointPositionsResponse( - ::google::protobuf::Arena* arena, - const MoveToJointPositionsResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - MoveToJointPositionsResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +MoveToJointPositionsResponse::MoveToJointPositionsResponse(const MoveToJointPositionsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.component.arm.v1.MoveToJointPositionsResponse) } @@ -2498,306 +2225,321 @@ MoveToJointPositionsResponse::MoveToJointPositionsResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveToJointPositionsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MoveToJointPositionsResponse::GetClassData() const { return &_class_data_; } + + + -::google::protobuf::Metadata MoveToJointPositionsResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata MoveToJointPositionsResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2farm_2fv1_2farm_2eproto_getter, &descriptor_table_component_2farm_2fv1_2farm_2eproto_once, file_level_metadata_component_2farm_2fv1_2farm_2eproto[8]); } + // =================================================================== class MoveThroughJointPositionsRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(MoveThroughJointPositionsRequest, _impl_._has_bits_); + using HasBits = decltype(std::declval()._has_bits_); static const ::viam::component::arm::v1::MoveOptions& options(const MoveThroughJointPositionsRequest* msg); static void set_has_options(HasBits* has_bits) { (*has_bits)[0] |= 1u; } - static const ::google::protobuf::Struct& extra(const MoveThroughJointPositionsRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const MoveThroughJointPositionsRequest* msg); }; -const ::viam::component::arm::v1::MoveOptions& MoveThroughJointPositionsRequest::_Internal::options(const MoveThroughJointPositionsRequest* msg) { - return *msg->_impl_.options_; +const ::viam::component::arm::v1::MoveOptions& +MoveThroughJointPositionsRequest::_Internal::options(const MoveThroughJointPositionsRequest* msg) { + return *msg->options_; } -const ::google::protobuf::Struct& MoveThroughJointPositionsRequest::_Internal::extra(const MoveThroughJointPositionsRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +MoveThroughJointPositionsRequest::_Internal::extra(const MoveThroughJointPositionsRequest* msg) { + return *msg->extra_; } void MoveThroughJointPositionsRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -MoveThroughJointPositionsRequest::MoveThroughJointPositionsRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +MoveThroughJointPositionsRequest::MoveThroughJointPositionsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + positions_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.component.arm.v1.MoveThroughJointPositionsRequest) } -inline PROTOBUF_NDEBUG_INLINE MoveThroughJointPositionsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - positions_{visibility, arena, from.positions_}, - name_(arena, from.name_) {} - -MoveThroughJointPositionsRequest::MoveThroughJointPositionsRequest( - ::google::protobuf::Arena* arena, - const MoveThroughJointPositionsRequest& from) - : ::google::protobuf::Message(arena) { - MoveThroughJointPositionsRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.options_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::component::arm::v1::MoveOptions>(arena, *from._impl_.options_) - : nullptr; - _impl_.extra_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +MoveThroughJointPositionsRequest::MoveThroughJointPositionsRequest(const MoveThroughJointPositionsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_), + positions_(from.positions_) { + _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_options()) { + options_ = new ::viam::component::arm::v1::MoveOptions(*from.options_); + } else { + options_ = nullptr; + } + if (from._internal_has_extra()) { + extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.extra_); + } else { + extra_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.component.arm.v1.MoveThroughJointPositionsRequest) } -inline PROTOBUF_NDEBUG_INLINE MoveThroughJointPositionsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - positions_{visibility, arena}, - name_(arena) {} - -inline void MoveThroughJointPositionsRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, options_), - 0, - offsetof(Impl_, extra_) - - offsetof(Impl_, options_) + - sizeof(Impl_::extra_)); + +inline void MoveThroughJointPositionsRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&options_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&extra_) - + reinterpret_cast(&options_)) + sizeof(extra_)); } + MoveThroughJointPositionsRequest::~MoveThroughJointPositionsRequest() { // @@protoc_insertion_point(destructor:viam.component.arm.v1.MoveThroughJointPositionsRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void MoveThroughJointPositionsRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.options_; - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete options_; + if (this != internal_default_instance()) delete extra_; +} + +void MoveThroughJointPositionsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void MoveThroughJointPositionsRequest::Clear() { +void MoveThroughJointPositionsRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.arm.v1.MoveThroughJointPositionsRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.positions_.Clear(); - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.options_ != nullptr); - _impl_.options_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); + positions_.Clear(); + name_.ClearToEmpty(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(options_ != nullptr); + options_->Clear(); + } + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* MoveThroughJointPositionsRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + 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.arm.v1.MoveThroughJointPositionsRequest.name")); + } else + goto handle_unusual; + continue; + // repeated .viam.component.arm.v1.JointPositions positions = 2 [json_name = "positions"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_positions(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } else + goto handle_unusual; + continue; + // optional .viam.component.arm.v1.MoveOptions options = 3 [json_name = "options"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_options(), ptr); + CHK_(ptr); + } 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; } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* MoveThroughJointPositionsRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 3, 67, 7> MoveThroughJointPositionsRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(MoveThroughJointPositionsRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 3, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_MoveThroughJointPositionsRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(MoveThroughJointPositionsRequest, _impl_.name_)}}, - // repeated .viam.component.arm.v1.JointPositions positions = 2 [json_name = "positions"]; - {::_pbi::TcParser::FastMtR1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(MoveThroughJointPositionsRequest, _impl_.positions_)}}, - // optional .viam.component.arm.v1.MoveOptions options = 3 [json_name = "options"]; - {::_pbi::TcParser::FastMtS1, - {26, 0, 1, PROTOBUF_FIELD_OFFSET(MoveThroughJointPositionsRequest, _impl_.options_)}}, - }}, {{ - 99, 0, 1, - 65534, 3, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(MoveThroughJointPositionsRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated .viam.component.arm.v1.JointPositions positions = 2 [json_name = "positions"]; - {PROTOBUF_FIELD_OFFSET(MoveThroughJointPositionsRequest, _impl_.positions_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // optional .viam.component.arm.v1.MoveOptions options = 3 [json_name = "options"]; - {PROTOBUF_FIELD_OFFSET(MoveThroughJointPositionsRequest, _impl_.options_), _Internal::kHasBitsOffset + 0, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(MoveThroughJointPositionsRequest, _impl_.extra_), _Internal::kHasBitsOffset + 1, 2, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::component::arm::v1::JointPositions>()}, - {::_pbi::TcParser::GetTable<::viam::component::arm::v1::MoveOptions>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\66\4\0\0\0\0\0\0" - "viam.component.arm.v1.MoveThroughJointPositionsRequest" - "name" - }}, -}; - -::uint8_t* MoveThroughJointPositionsRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* MoveThroughJointPositionsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.arm.v1.MoveThroughJointPositionsRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.arm.v1.MoveThroughJointPositionsRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.arm.v1.MoveThroughJointPositionsRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // repeated .viam.component.arm.v1.JointPositions positions = 2 [json_name = "positions"]; for (unsigned i = 0, n = static_cast(this->_internal_positions_size()); i < n; i++) { - const auto& repfield = this->_internal_positions().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_positions(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); } - cached_has_bits = _impl_._has_bits_[0]; // optional .viam.component.arm.v1.MoveOptions options = 3 [json_name = "options"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::options(this), + if (_internal_has_options()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::options(this), _Internal::options(this).GetCachedSize(), target, stream); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.arm.v1.MoveThroughJointPositionsRequest) return target; } -::size_t MoveThroughJointPositionsRequest::ByteSizeLong() const { +size_t MoveThroughJointPositionsRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.arm.v1.MoveThroughJointPositionsRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.component.arm.v1.JointPositions positions = 2 [json_name = "positions"]; total_size += 1UL * this->_internal_positions_size(); - for (const auto& msg : this->_internal_positions()) { + for (const auto& msg : this->positions_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // optional .viam.component.arm.v1.MoveOptions options = 3 [json_name = "options"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.options_); - } - - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); - } + // optional .viam.component.arm.v1.MoveOptions options = 3 [json_name = "options"]; + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *options_); + } + // .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, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData MoveThroughJointPositionsRequest::_class_data_ = { - MoveThroughJointPositionsRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveThroughJointPositionsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + MoveThroughJointPositionsRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* MoveThroughJointPositionsRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MoveThroughJointPositionsRequest::GetClassData() const { return &_class_data_; } + +void MoveThroughJointPositionsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void MoveThroughJointPositionsRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.arm.v1.MoveThroughJointPositionsRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void MoveThroughJointPositionsRequest::MergeFrom(const MoveThroughJointPositionsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.arm.v1.MoveThroughJointPositionsRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_positions()->MergeFrom( - from._internal_positions()); + positions_.MergeFrom(from.positions_); if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_options()->::viam::component::arm::v1::MoveOptions::MergeFrom( - from._internal_options()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); - } + if (from._internal_has_options()) { + _internal_mutable_options()->::viam::component::arm::v1::MoveOptions::MergeFrom(from._internal_options()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + 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 MoveThroughJointPositionsRequest::CopyFrom(const MoveThroughJointPositionsRequest& from) { @@ -2807,53 +2549,49 @@ void MoveThroughJointPositionsRequest::CopyFrom(const MoveThroughJointPositionsR MergeFrom(from); } -PROTOBUF_NOINLINE bool MoveThroughJointPositionsRequest::IsInitialized() const { +bool MoveThroughJointPositionsRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* MoveThroughJointPositionsRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void MoveThroughJointPositionsRequest::InternalSwap(MoveThroughJointPositionsRequest* PROTOBUF_RESTRICT other) { +void MoveThroughJointPositionsRequest::InternalSwap(MoveThroughJointPositionsRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.positions_.InternalSwap(&other->_impl_.positions_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(MoveThroughJointPositionsRequest, _impl_.extra_) - + sizeof(MoveThroughJointPositionsRequest::_impl_.extra_) - - PROTOBUF_FIELD_OFFSET(MoveThroughJointPositionsRequest, _impl_.options_)>( - reinterpret_cast(&_impl_.options_), - reinterpret_cast(&other->_impl_.options_)); -} - -::google::protobuf::Metadata MoveThroughJointPositionsRequest::GetMetadata() const { + swap(_has_bits_[0], other->_has_bits_[0]); + positions_.InternalSwap(&other->positions_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(MoveThroughJointPositionsRequest, extra_) + + sizeof(MoveThroughJointPositionsRequest::extra_) + - PROTOBUF_FIELD_OFFSET(MoveThroughJointPositionsRequest, options_)>( + reinterpret_cast(&options_), + reinterpret_cast(&other->options_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata MoveThroughJointPositionsRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2farm_2fv1_2farm_2eproto_getter, &descriptor_table_component_2farm_2fv1_2farm_2eproto_once, file_level_metadata_component_2farm_2fv1_2farm_2eproto[9]); } + // =================================================================== class MoveThroughJointPositionsResponse::_Internal { public: }; -MoveThroughJointPositionsResponse::MoveThroughJointPositionsResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +MoveThroughJointPositionsResponse::MoveThroughJointPositionsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.component.arm.v1.MoveThroughJointPositionsResponse) } -MoveThroughJointPositionsResponse::MoveThroughJointPositionsResponse( - ::google::protobuf::Arena* arena, - const MoveThroughJointPositionsResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - MoveThroughJointPositionsResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +MoveThroughJointPositionsResponse::MoveThroughJointPositionsResponse(const MoveThroughJointPositionsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.component.arm.v1.MoveThroughJointPositionsResponse) } @@ -2861,233 +2599,236 @@ MoveThroughJointPositionsResponse::MoveThroughJointPositionsResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveThroughJointPositionsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MoveThroughJointPositionsResponse::GetClassData() const { return &_class_data_; } + + + -::google::protobuf::Metadata MoveThroughJointPositionsResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata MoveThroughJointPositionsResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2farm_2fv1_2farm_2eproto_getter, &descriptor_table_component_2farm_2fv1_2farm_2eproto_once, file_level_metadata_component_2farm_2fv1_2farm_2eproto[10]); } + // =================================================================== class StopRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(StopRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const StopRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const StopRequest* msg); }; -const ::google::protobuf::Struct& StopRequest::_Internal::extra(const StopRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +StopRequest::_Internal::extra(const StopRequest* msg) { + return *msg->extra_; } void StopRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -StopRequest::StopRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +StopRequest::StopRequest(::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.arm.v1.StopRequest) } -inline PROTOBUF_NDEBUG_INLINE StopRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -StopRequest::StopRequest( - ::google::protobuf::Arena* arena, - const StopRequest& from) - : ::google::protobuf::Message(arena) { - StopRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +StopRequest::StopRequest(const StopRequest& 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.arm.v1.StopRequest) } -inline PROTOBUF_NDEBUG_INLINE StopRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} -inline void StopRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void StopRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + StopRequest::~StopRequest() { // @@protoc_insertion_point(destructor:viam.component.arm.v1.StopRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void StopRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void StopRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void StopRequest::Clear() { +void StopRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.arm.v1.StopRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* StopRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* StopRequest::_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.arm.v1.StopRequest.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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 2, 1, 46, 7> StopRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(StopRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_StopRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(StopRequest, _impl_.name_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(StopRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 1, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(StopRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(StopRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\41\4\0\0\0\0\0\0" - "viam.component.arm.v1.StopRequest" - "name" - }}, -}; - -::uint8_t* StopRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* StopRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.arm.v1.StopRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.arm.v1.StopRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.arm.v1.StopRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.arm.v1.StopRequest) return target; } -::size_t StopRequest::ByteSizeLong() const { +size_t StopRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.arm.v1.StopRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData StopRequest::_class_data_ = { - StopRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StopRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + StopRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* StopRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StopRequest::GetClassData() const { return &_class_data_; } + +void StopRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void StopRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.arm.v1.StopRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void StopRequest::MergeFrom(const StopRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.arm.v1.StopRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void StopRequest::CopyFrom(const StopRequest& from) { @@ -3097,47 +2838,42 @@ void StopRequest::CopyFrom(const StopRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool StopRequest::IsInitialized() const { +bool StopRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* StopRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void StopRequest::InternalSwap(StopRequest* PROTOBUF_RESTRICT other) { +void StopRequest::InternalSwap(StopRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.extra_, other->_impl_.extra_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(extra_, other->extra_); } -::google::protobuf::Metadata StopRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata StopRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2farm_2fv1_2farm_2eproto_getter, &descriptor_table_component_2farm_2fv1_2farm_2eproto_once, file_level_metadata_component_2farm_2fv1_2farm_2eproto[11]); } + // =================================================================== class StopResponse::_Internal { public: }; -StopResponse::StopResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +StopResponse::StopResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.component.arm.v1.StopResponse) } -StopResponse::StopResponse( - ::google::protobuf::Arena* arena, - const StopResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - StopResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +StopResponse::StopResponse(const StopResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.component.arm.v1.StopResponse) } @@ -3145,274 +2881,259 @@ StopResponse::StopResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StopResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StopResponse::GetClassData() const { return &_class_data_; } + + + -::google::protobuf::Metadata StopResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata StopResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2farm_2fv1_2farm_2eproto_getter, &descriptor_table_component_2farm_2fv1_2farm_2eproto_once, file_level_metadata_component_2farm_2fv1_2farm_2eproto[12]); } + // =================================================================== class Status::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Status, _impl_._has_bits_); static const ::viam::common::v1::Pose& end_position(const Status* msg); - static void set_has_end_position(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } static const ::viam::component::arm::v1::JointPositions& joint_positions(const Status* msg); - static void set_has_joint_positions(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } }; -const ::viam::common::v1::Pose& Status::_Internal::end_position(const Status* msg) { - return *msg->_impl_.end_position_; +const ::viam::common::v1::Pose& +Status::_Internal::end_position(const Status* msg) { + return *msg->end_position_; } -const ::viam::component::arm::v1::JointPositions& Status::_Internal::joint_positions(const Status* msg) { - return *msg->_impl_.joint_positions_; +const ::viam::component::arm::v1::JointPositions& +Status::_Internal::joint_positions(const Status* msg) { + return *msg->joint_positions_; } void Status::clear_end_position() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.end_position_ != nullptr) _impl_.end_position_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && end_position_ != nullptr) { + delete end_position_; + } + end_position_ = nullptr; } -Status::Status(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Status::Status(::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.arm.v1.Status) } -inline PROTOBUF_NDEBUG_INLINE Status::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -Status::Status( - ::google::protobuf::Arena* arena, - const Status& from) - : ::google::protobuf::Message(arena) { - Status* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.end_position_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::common::v1::Pose>(arena, *from._impl_.end_position_) - : nullptr; - _impl_.joint_positions_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::viam::component::arm::v1::JointPositions>(arena, *from._impl_.joint_positions_) - : nullptr; - _impl_.is_moving_ = from._impl_.is_moving_; - +Status::Status(const Status& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_end_position()) { + end_position_ = new ::viam::common::v1::Pose(*from.end_position_); + } else { + end_position_ = nullptr; + } + if (from._internal_has_joint_positions()) { + joint_positions_ = new ::viam::component::arm::v1::JointPositions(*from.joint_positions_); + } else { + joint_positions_ = nullptr; + } + is_moving_ = from.is_moving_; // @@protoc_insertion_point(copy_constructor:viam.component.arm.v1.Status) } -inline PROTOBUF_NDEBUG_INLINE Status::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void Status::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, end_position_), - 0, - offsetof(Impl_, is_moving_) - - offsetof(Impl_, end_position_) + - sizeof(Impl_::is_moving_)); +inline void Status::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&end_position_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&is_moving_) - + reinterpret_cast(&end_position_)) + sizeof(is_moving_)); } + Status::~Status() { // @@protoc_insertion_point(destructor:viam.component.arm.v1.Status) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Status::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.end_position_; - delete _impl_.joint_positions_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete end_position_; + if (this != internal_default_instance()) delete joint_positions_; +} + +void Status::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void Status::Clear() { +void Status::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.arm.v1.Status) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.end_position_ != nullptr); - _impl_.end_position_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.joint_positions_ != nullptr); - _impl_.joint_positions_->Clear(); + if (GetArenaForAllocation() == nullptr && end_position_ != nullptr) { + delete end_position_; + } + end_position_ = nullptr; + if (GetArenaForAllocation() == nullptr && joint_positions_ != nullptr) { + delete joint_positions_; + } + joint_positions_ = nullptr; + is_moving_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Status::_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.Pose end_position = 1 [json_name = "endPosition"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_end_position(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.component.arm.v1.JointPositions joint_positions = 2 [json_name = "jointPositions"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_joint_positions(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool is_moving = 3 [json_name = "isMoving"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + is_moving_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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; } - } - _impl_.is_moving_ = false; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Status::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 2, 0, 2> Status::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Status, _impl_._has_bits_), - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Status_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // .viam.common.v1.Pose end_position = 1 [json_name = "endPosition"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(Status, _impl_.end_position_)}}, - // .viam.component.arm.v1.JointPositions joint_positions = 2 [json_name = "jointPositions"]; - {::_pbi::TcParser::FastMtS1, - {18, 1, 1, PROTOBUF_FIELD_OFFSET(Status, _impl_.joint_positions_)}}, - // bool is_moving = 3 [json_name = "isMoving"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(Status, _impl_.is_moving_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.common.v1.Pose end_position = 1 [json_name = "endPosition"]; - {PROTOBUF_FIELD_OFFSET(Status, _impl_.end_position_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .viam.component.arm.v1.JointPositions joint_positions = 2 [json_name = "jointPositions"]; - {PROTOBUF_FIELD_OFFSET(Status, _impl_.joint_positions_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // bool is_moving = 3 [json_name = "isMoving"]; - {PROTOBUF_FIELD_OFFSET(Status, _impl_.is_moving_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::common::v1::Pose>()}, - {::_pbi::TcParser::GetTable<::viam::component::arm::v1::JointPositions>()}, - }}, {{ - }}, -}; - -::uint8_t* Status::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Status::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.arm.v1.Status) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.common.v1.Pose end_position = 1 [json_name = "endPosition"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::end_position(this), + if (this->_internal_has_end_position()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::end_position(this), _Internal::end_position(this).GetCachedSize(), target, stream); } // .viam.component.arm.v1.JointPositions joint_positions = 2 [json_name = "jointPositions"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::joint_positions(this), + if (this->_internal_has_joint_positions()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::joint_positions(this), _Internal::joint_positions(this).GetCachedSize(), target, stream); } // bool is_moving = 3 [json_name = "isMoving"]; if (this->_internal_is_moving() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 3, this->_internal_is_moving(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_is_moving(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.arm.v1.Status) return target; } -::size_t Status::ByteSizeLong() const { +size_t Status::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.arm.v1.Status) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // .viam.common.v1.Pose end_position = 1 [json_name = "endPosition"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.end_position_); - } - - // .viam.component.arm.v1.JointPositions joint_positions = 2 [json_name = "jointPositions"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.joint_positions_); - } + // .viam.common.v1.Pose end_position = 1 [json_name = "endPosition"]; + if (this->_internal_has_end_position()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *end_position_); + } + // .viam.component.arm.v1.JointPositions joint_positions = 2 [json_name = "jointPositions"]; + if (this->_internal_has_joint_positions()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *joint_positions_); } + // bool is_moving = 3 [json_name = "isMoving"]; if (this->_internal_is_moving() != 0) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Status::_class_data_ = { - Status::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Status::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Status::MergeImpl }; -const ::google::protobuf::Message::ClassData* Status::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Status::GetClassData() const { return &_class_data_; } + +void Status::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Status::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.arm.v1.Status) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Status::MergeFrom(const Status& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.arm.v1.Status) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_end_position()->::viam::common::v1::Pose::MergeFrom( - from._internal_end_position()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_joint_positions()->::viam::component::arm::v1::JointPositions::MergeFrom( - from._internal_joint_positions()); - } + if (from._internal_has_end_position()) { + _internal_mutable_end_position()->::viam::common::v1::Pose::MergeFrom(from._internal_end_position()); + } + if (from._internal_has_joint_positions()) { + _internal_mutable_joint_positions()->::viam::component::arm::v1::JointPositions::MergeFrom(from._internal_joint_positions()); } if (from._internal_is_moving() != 0) { - _this->_internal_set_is_moving(from._internal_is_moving()); + _internal_set_is_moving(from._internal_is_moving()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Status::CopyFrom(const Status& from) { @@ -3422,191 +3143,192 @@ void Status::CopyFrom(const Status& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Status::IsInitialized() const { +bool Status::IsInitialized() const { return true; } -::_pbi::CachedSize* Status::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Status::InternalSwap(Status* PROTOBUF_RESTRICT other) { +void Status::InternalSwap(Status* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(Status, _impl_.is_moving_) - + sizeof(Status::_impl_.is_moving_) - - PROTOBUF_FIELD_OFFSET(Status, _impl_.end_position_)>( - reinterpret_cast(&_impl_.end_position_), - reinterpret_cast(&other->_impl_.end_position_)); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Status, is_moving_) + + sizeof(Status::is_moving_) + - PROTOBUF_FIELD_OFFSET(Status, end_position_)>( + reinterpret_cast(&end_position_), + reinterpret_cast(&other->end_position_)); } -::google::protobuf::Metadata Status::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Status::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2farm_2fv1_2farm_2eproto_getter, &descriptor_table_component_2farm_2fv1_2farm_2eproto_once, file_level_metadata_component_2farm_2fv1_2farm_2eproto[13]); } + // =================================================================== class IsMovingRequest::_Internal { public: }; -IsMovingRequest::IsMovingRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +IsMovingRequest::IsMovingRequest(::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.arm.v1.IsMovingRequest) } -inline PROTOBUF_NDEBUG_INLINE IsMovingRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : name_(arena, from.name_), - _cached_size_{0} {} - -IsMovingRequest::IsMovingRequest( - ::google::protobuf::Arena* arena, - const IsMovingRequest& from) - : ::google::protobuf::Message(arena) { - IsMovingRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +IsMovingRequest::IsMovingRequest(const IsMovingRequest& 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()); + } // @@protoc_insertion_point(copy_constructor:viam.component.arm.v1.IsMovingRequest) } -inline PROTOBUF_NDEBUG_INLINE IsMovingRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : name_(arena), - _cached_size_{0} {} -inline void IsMovingRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void IsMovingRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + IsMovingRequest::~IsMovingRequest() { // @@protoc_insertion_point(destructor:viam.component.arm.v1.IsMovingRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void IsMovingRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); +} + +void IsMovingRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void IsMovingRequest::Clear() { +void IsMovingRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.arm.v1.IsMovingRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* IsMovingRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* IsMovingRequest::_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.arm.v1.IsMovingRequest.name")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 50, 2> IsMovingRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_IsMovingRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(IsMovingRequest, _impl_.name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(IsMovingRequest, _impl_.name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\45\4\0\0\0\0\0\0" - "viam.component.arm.v1.IsMovingRequest" - "name" - }}, -}; - -::uint8_t* IsMovingRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* IsMovingRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.arm.v1.IsMovingRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.arm.v1.IsMovingRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.arm.v1.IsMovingRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.arm.v1.IsMovingRequest) return target; } -::size_t IsMovingRequest::ByteSizeLong() const { +size_t IsMovingRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.arm.v1.IsMovingRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData IsMovingRequest::_class_data_ = { - IsMovingRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData IsMovingRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + IsMovingRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* IsMovingRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*IsMovingRequest::GetClassData() const { return &_class_data_; } + +void IsMovingRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void IsMovingRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.arm.v1.IsMovingRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void IsMovingRequest::MergeFrom(const IsMovingRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.arm.v1.IsMovingRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void IsMovingRequest::CopyFrom(const IsMovingRequest& from) { @@ -3616,168 +3338,173 @@ void IsMovingRequest::CopyFrom(const IsMovingRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool IsMovingRequest::IsInitialized() const { +bool IsMovingRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* IsMovingRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void IsMovingRequest::InternalSwap(IsMovingRequest* PROTOBUF_RESTRICT other) { +void IsMovingRequest::InternalSwap(IsMovingRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); } -::google::protobuf::Metadata IsMovingRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata IsMovingRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2farm_2fv1_2farm_2eproto_getter, &descriptor_table_component_2farm_2fv1_2farm_2eproto_once, file_level_metadata_component_2farm_2fv1_2farm_2eproto[14]); } + // =================================================================== class IsMovingResponse::_Internal { public: }; -IsMovingResponse::IsMovingResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +IsMovingResponse::IsMovingResponse(::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.arm.v1.IsMovingResponse) } -IsMovingResponse::IsMovingResponse( - ::google::protobuf::Arena* arena, const IsMovingResponse& from) - : IsMovingResponse(arena) { - MergeFrom(from); +IsMovingResponse::IsMovingResponse(const IsMovingResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + is_moving_ = from.is_moving_; + // @@protoc_insertion_point(copy_constructor:viam.component.arm.v1.IsMovingResponse) } -inline PROTOBUF_NDEBUG_INLINE IsMovingResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void IsMovingResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.is_moving_ = {}; +inline void IsMovingResponse::SharedCtor() { +is_moving_ = false; } + IsMovingResponse::~IsMovingResponse() { // @@protoc_insertion_point(destructor:viam.component.arm.v1.IsMovingResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void IsMovingResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void IsMovingResponse::Clear() { +void IsMovingResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void IsMovingResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.arm.v1.IsMovingResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.is_moving_ = false; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* IsMovingResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + is_moving_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* IsMovingResponse::_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) { + // bool is_moving = 1 [json_name = "isMoving"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + is_moving_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> IsMovingResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_IsMovingResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // bool is_moving = 1 [json_name = "isMoving"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(IsMovingResponse, _impl_.is_moving_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bool is_moving = 1 [json_name = "isMoving"]; - {PROTOBUF_FIELD_OFFSET(IsMovingResponse, _impl_.is_moving_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* IsMovingResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* IsMovingResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.arm.v1.IsMovingResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // bool is_moving = 1 [json_name = "isMoving"]; if (this->_internal_is_moving() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 1, this->_internal_is_moving(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_is_moving(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.arm.v1.IsMovingResponse) return target; } -::size_t IsMovingResponse::ByteSizeLong() const { +size_t IsMovingResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.arm.v1.IsMovingResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // bool is_moving = 1 [json_name = "isMoving"]; if (this->_internal_is_moving() != 0) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData IsMovingResponse::_class_data_ = { - IsMovingResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData IsMovingResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + IsMovingResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* IsMovingResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*IsMovingResponse::GetClassData() const { return &_class_data_; } + +void IsMovingResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void IsMovingResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.arm.v1.IsMovingResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void IsMovingResponse::MergeFrom(const IsMovingResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.arm.v1.IsMovingResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_is_moving() != 0) { - _this->_internal_set_is_moving(from._internal_is_moving()); + _internal_set_is_moving(from._internal_is_moving()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void IsMovingResponse::CopyFrom(const IsMovingResponse& from) { @@ -3787,31 +3514,27 @@ void IsMovingResponse::CopyFrom(const IsMovingResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool IsMovingResponse::IsInitialized() const { +bool IsMovingResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* IsMovingResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void IsMovingResponse::InternalSwap(IsMovingResponse* PROTOBUF_RESTRICT other) { +void IsMovingResponse::InternalSwap(IsMovingResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.is_moving_, other->_impl_.is_moving_); + swap(is_moving_, other->is_moving_); } -::google::protobuf::Metadata IsMovingResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata IsMovingResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2farm_2fv1_2farm_2eproto_getter, &descriptor_table_component_2farm_2fv1_2farm_2eproto_once, file_level_metadata_component_2farm_2fv1_2farm_2eproto[15]); } + // =================================================================== class MoveOptions::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(MoveOptions, _impl_._has_bits_); + using HasBits = decltype(std::declval()._has_bits_); static void set_has_max_vel_degs_per_sec(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -3820,182 +3543,191 @@ class MoveOptions::_Internal { } }; -MoveOptions::MoveOptions(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +MoveOptions::MoveOptions(::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.arm.v1.MoveOptions) } -MoveOptions::MoveOptions( - ::google::protobuf::Arena* arena, const MoveOptions& from) - : MoveOptions(arena) { - MergeFrom(from); +MoveOptions::MoveOptions(const MoveOptions& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&max_vel_degs_per_sec_, &from.max_vel_degs_per_sec_, + static_cast(reinterpret_cast(&max_acc_degs_per_sec2_) - + reinterpret_cast(&max_vel_degs_per_sec_)) + sizeof(max_acc_degs_per_sec2_)); + // @@protoc_insertion_point(copy_constructor:viam.component.arm.v1.MoveOptions) } -inline PROTOBUF_NDEBUG_INLINE MoveOptions::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void MoveOptions::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, max_vel_degs_per_sec_), - 0, - offsetof(Impl_, max_acc_degs_per_sec2_) - - offsetof(Impl_, max_vel_degs_per_sec_) + - sizeof(Impl_::max_acc_degs_per_sec2_)); +inline void MoveOptions::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&max_vel_degs_per_sec_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&max_acc_degs_per_sec2_) - + reinterpret_cast(&max_vel_degs_per_sec_)) + sizeof(max_acc_degs_per_sec2_)); } + MoveOptions::~MoveOptions() { // @@protoc_insertion_point(destructor:viam.component.arm.v1.MoveOptions) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void MoveOptions::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void MoveOptions::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void MoveOptions::Clear() { +void MoveOptions::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.arm.v1.MoveOptions) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000003u) { - ::memset(&_impl_.max_vel_degs_per_sec_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.max_acc_degs_per_sec2_) - - reinterpret_cast(&_impl_.max_vel_degs_per_sec_)) + sizeof(_impl_.max_acc_degs_per_sec2_)); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* MoveOptions::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + ::memset(&max_vel_degs_per_sec_, 0, static_cast( + reinterpret_cast(&max_acc_degs_per_sec2_) - + reinterpret_cast(&max_vel_degs_per_sec_)) + sizeof(max_acc_degs_per_sec2_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* MoveOptions::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // optional double max_vel_degs_per_sec = 1 [json_name = "maxVelDegsPerSec"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 9)) { + _Internal::set_has_max_vel_degs_per_sec(&has_bits); + max_vel_degs_per_sec_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // optional double max_acc_degs_per_sec2 = 2 [json_name = "maxAccDegsPerSec2"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 17)) { + _Internal::set_has_max_acc_degs_per_sec2(&has_bits); + max_acc_degs_per_sec2_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> MoveOptions::_table_ = { - { - PROTOBUF_FIELD_OFFSET(MoveOptions, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_MoveOptions_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // optional double max_acc_degs_per_sec2 = 2 [json_name = "maxAccDegsPerSec2"]; - {::_pbi::TcParser::FastF64S1, - {17, 1, 0, PROTOBUF_FIELD_OFFSET(MoveOptions, _impl_.max_acc_degs_per_sec2_)}}, - // optional double max_vel_degs_per_sec = 1 [json_name = "maxVelDegsPerSec"]; - {::_pbi::TcParser::FastF64S1, - {9, 0, 0, PROTOBUF_FIELD_OFFSET(MoveOptions, _impl_.max_vel_degs_per_sec_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // optional double max_vel_degs_per_sec = 1 [json_name = "maxVelDegsPerSec"]; - {PROTOBUF_FIELD_OFFSET(MoveOptions, _impl_.max_vel_degs_per_sec_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, - // optional double max_acc_degs_per_sec2 = 2 [json_name = "maxAccDegsPerSec2"]; - {PROTOBUF_FIELD_OFFSET(MoveOptions, _impl_.max_acc_degs_per_sec2_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* MoveOptions::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* MoveOptions::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.arm.v1.MoveOptions) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // optional double max_vel_degs_per_sec = 1 [json_name = "maxVelDegsPerSec"]; - if (cached_has_bits & 0x00000001u) { + if (_internal_has_max_vel_degs_per_sec()) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 1, this->_internal_max_vel_degs_per_sec(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(1, this->_internal_max_vel_degs_per_sec(), target); } // optional double max_acc_degs_per_sec2 = 2 [json_name = "maxAccDegsPerSec2"]; - if (cached_has_bits & 0x00000002u) { + if (_internal_has_max_acc_degs_per_sec2()) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 2, this->_internal_max_acc_degs_per_sec2(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_max_acc_degs_per_sec2(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.arm.v1.MoveOptions) return target; } -::size_t MoveOptions::ByteSizeLong() const { +size_t MoveOptions::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.arm.v1.MoveOptions) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000003u) { // optional double max_vel_degs_per_sec = 1 [json_name = "maxVelDegsPerSec"]; if (cached_has_bits & 0x00000001u) { - total_size += 9; + total_size += 1 + 8; } // optional double max_acc_degs_per_sec2 = 2 [json_name = "maxAccDegsPerSec2"]; if (cached_has_bits & 0x00000002u) { - total_size += 9; + total_size += 1 + 8; } } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData MoveOptions::_class_data_ = { - MoveOptions::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveOptions::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + MoveOptions::MergeImpl }; -const ::google::protobuf::Message::ClassData* MoveOptions::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MoveOptions::GetClassData() const { return &_class_data_; } + +void MoveOptions::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void MoveOptions::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.arm.v1.MoveOptions) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void MoveOptions::MergeFrom(const MoveOptions& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.arm.v1.MoveOptions) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._impl_._has_bits_[0]; + cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - _this->_impl_.max_vel_degs_per_sec_ = from._impl_.max_vel_degs_per_sec_; + max_vel_degs_per_sec_ = from.max_vel_degs_per_sec_; } if (cached_has_bits & 0x00000002u) { - _this->_impl_.max_acc_degs_per_sec2_ = from._impl_.max_acc_degs_per_sec2_; + max_acc_degs_per_sec2_ = from.max_acc_degs_per_sec2_; } - _this->_impl_._has_bits_[0] |= cached_has_bits; + _has_bits_[0] |= cached_has_bits; } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MoveOptions::CopyFrom(const MoveOptions& from) { @@ -4005,38 +3737,103 @@ void MoveOptions::CopyFrom(const MoveOptions& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool MoveOptions::IsInitialized() const { +bool MoveOptions::IsInitialized() const { return true; } -::_pbi::CachedSize* MoveOptions::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void MoveOptions::InternalSwap(MoveOptions* PROTOBUF_RESTRICT other) { +void MoveOptions::InternalSwap(MoveOptions* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(MoveOptions, _impl_.max_acc_degs_per_sec2_) - + sizeof(MoveOptions::_impl_.max_acc_degs_per_sec2_) - - PROTOBUF_FIELD_OFFSET(MoveOptions, _impl_.max_vel_degs_per_sec_)>( - reinterpret_cast(&_impl_.max_vel_degs_per_sec_), - reinterpret_cast(&other->_impl_.max_vel_degs_per_sec_)); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(MoveOptions, max_acc_degs_per_sec2_) + + sizeof(MoveOptions::max_acc_degs_per_sec2_) + - PROTOBUF_FIELD_OFFSET(MoveOptions, max_vel_degs_per_sec_)>( + reinterpret_cast(&max_vel_degs_per_sec_), + reinterpret_cast(&other->max_vel_degs_per_sec_)); } -::google::protobuf::Metadata MoveOptions::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata MoveOptions::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2farm_2fv1_2farm_2eproto_getter, &descriptor_table_component_2farm_2fv1_2farm_2eproto_once, file_level_metadata_component_2farm_2fv1_2farm_2eproto[16]); } + // @@protoc_insertion_point(namespace_scope) } // namespace v1 } // namespace arm } // namespace component } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::component::arm::v1::GetEndPositionRequest* +Arena::CreateMaybeMessage< ::viam::component::arm::v1::GetEndPositionRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::arm::v1::GetEndPositionRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::arm::v1::GetEndPositionResponse* +Arena::CreateMaybeMessage< ::viam::component::arm::v1::GetEndPositionResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::arm::v1::GetEndPositionResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::arm::v1::JointPositions* +Arena::CreateMaybeMessage< ::viam::component::arm::v1::JointPositions >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::arm::v1::JointPositions >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::arm::v1::GetJointPositionsRequest* +Arena::CreateMaybeMessage< ::viam::component::arm::v1::GetJointPositionsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::arm::v1::GetJointPositionsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::arm::v1::GetJointPositionsResponse* +Arena::CreateMaybeMessage< ::viam::component::arm::v1::GetJointPositionsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::arm::v1::GetJointPositionsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::arm::v1::MoveToPositionRequest* +Arena::CreateMaybeMessage< ::viam::component::arm::v1::MoveToPositionRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::arm::v1::MoveToPositionRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::arm::v1::MoveToPositionResponse* +Arena::CreateMaybeMessage< ::viam::component::arm::v1::MoveToPositionResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::arm::v1::MoveToPositionResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::arm::v1::MoveToJointPositionsRequest* +Arena::CreateMaybeMessage< ::viam::component::arm::v1::MoveToJointPositionsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::arm::v1::MoveToJointPositionsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::arm::v1::MoveToJointPositionsResponse* +Arena::CreateMaybeMessage< ::viam::component::arm::v1::MoveToJointPositionsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::arm::v1::MoveToJointPositionsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::arm::v1::MoveThroughJointPositionsRequest* +Arena::CreateMaybeMessage< ::viam::component::arm::v1::MoveThroughJointPositionsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::arm::v1::MoveThroughJointPositionsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::arm::v1::MoveThroughJointPositionsResponse* +Arena::CreateMaybeMessage< ::viam::component::arm::v1::MoveThroughJointPositionsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::arm::v1::MoveThroughJointPositionsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::arm::v1::StopRequest* +Arena::CreateMaybeMessage< ::viam::component::arm::v1::StopRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::arm::v1::StopRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::arm::v1::StopResponse* +Arena::CreateMaybeMessage< ::viam::component::arm::v1::StopResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::arm::v1::StopResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::arm::v1::Status* +Arena::CreateMaybeMessage< ::viam::component::arm::v1::Status >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::arm::v1::Status >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::arm::v1::IsMovingRequest* +Arena::CreateMaybeMessage< ::viam::component::arm::v1::IsMovingRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::arm::v1::IsMovingRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::arm::v1::IsMovingResponse* +Arena::CreateMaybeMessage< ::viam::component::arm::v1::IsMovingResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::arm::v1::IsMovingResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::arm::v1::MoveOptions* +Arena::CreateMaybeMessage< ::viam::component::arm::v1::MoveOptions >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::arm::v1::MoveOptions >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/component/arm/v1/arm.pb.h b/src/viam/api/component/arm/v1/arm.pb.h index 4c2d765c4..1bfa5110e 100644 --- a/src/viam/api/component/arm/v1/arm.pb.h +++ b/src/viam/api/component/arm/v1/arm.pb.h @@ -1,64 +1,53 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: component/arm/v1/arm.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_component_2farm_2fv1_2farm_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_component_2farm_2fv1_2farm_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_component_2farm_2fv1_2farm_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_component_2farm_2fv1_2farm_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_bases.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/unknown_field_set.h" + +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include #include "common/v1/common.pb.h" #include "google/api/annotations.pb.h" -#include "google/protobuf/struct.pb.h" +#include // @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - +#include #define PROTOBUF_INTERNAL_EXPORT_component_2farm_2fv1_2farm_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_component_2farm_2fv1_2farm_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_component_2farm_2fv1_2farm_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_component_2farm_2fv1_2farm_2eproto; namespace viam { namespace component { namespace arm { @@ -118,11 +107,25 @@ extern StopResponseDefaultTypeInternal _StopResponse_default_instance_; } // namespace arm } // namespace component } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::component::arm::v1::GetEndPositionRequest* Arena::CreateMaybeMessage<::viam::component::arm::v1::GetEndPositionRequest>(Arena*); +template<> ::viam::component::arm::v1::GetEndPositionResponse* Arena::CreateMaybeMessage<::viam::component::arm::v1::GetEndPositionResponse>(Arena*); +template<> ::viam::component::arm::v1::GetJointPositionsRequest* Arena::CreateMaybeMessage<::viam::component::arm::v1::GetJointPositionsRequest>(Arena*); +template<> ::viam::component::arm::v1::GetJointPositionsResponse* Arena::CreateMaybeMessage<::viam::component::arm::v1::GetJointPositionsResponse>(Arena*); +template<> ::viam::component::arm::v1::IsMovingRequest* Arena::CreateMaybeMessage<::viam::component::arm::v1::IsMovingRequest>(Arena*); +template<> ::viam::component::arm::v1::IsMovingResponse* Arena::CreateMaybeMessage<::viam::component::arm::v1::IsMovingResponse>(Arena*); +template<> ::viam::component::arm::v1::JointPositions* Arena::CreateMaybeMessage<::viam::component::arm::v1::JointPositions>(Arena*); +template<> ::viam::component::arm::v1::MoveOptions* Arena::CreateMaybeMessage<::viam::component::arm::v1::MoveOptions>(Arena*); +template<> ::viam::component::arm::v1::MoveThroughJointPositionsRequest* Arena::CreateMaybeMessage<::viam::component::arm::v1::MoveThroughJointPositionsRequest>(Arena*); +template<> ::viam::component::arm::v1::MoveThroughJointPositionsResponse* Arena::CreateMaybeMessage<::viam::component::arm::v1::MoveThroughJointPositionsResponse>(Arena*); +template<> ::viam::component::arm::v1::MoveToJointPositionsRequest* Arena::CreateMaybeMessage<::viam::component::arm::v1::MoveToJointPositionsRequest>(Arena*); +template<> ::viam::component::arm::v1::MoveToJointPositionsResponse* Arena::CreateMaybeMessage<::viam::component::arm::v1::MoveToJointPositionsResponse>(Arena*); +template<> ::viam::component::arm::v1::MoveToPositionRequest* Arena::CreateMaybeMessage<::viam::component::arm::v1::MoveToPositionRequest>(Arena*); +template<> ::viam::component::arm::v1::MoveToPositionResponse* Arena::CreateMaybeMessage<::viam::component::arm::v1::MoveToPositionResponse>(Arena*); +template<> ::viam::component::arm::v1::Status* Arena::CreateMaybeMessage<::viam::component::arm::v1::Status>(Arena*); +template<> ::viam::component::arm::v1::StopRequest* Arena::CreateMaybeMessage<::viam::component::arm::v1::StopRequest>(Arena*); +template<> ::viam::component::arm::v1::StopResponse* Arena::CreateMaybeMessage<::viam::component::arm::v1::StopResponse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace viam { namespace component { namespace arm { @@ -130,32 +133,28 @@ namespace v1 { // =================================================================== - -// ------------------------------------------------------------------- - -class StopResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.arm.v1.StopResponse) */ { +class GetEndPositionRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.arm.v1.GetEndPositionRequest) */ { public: - inline StopResponse() : StopResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR StopResponse(::google::protobuf::internal::ConstantInitialized); + inline GetEndPositionRequest() : GetEndPositionRequest(nullptr) {} + ~GetEndPositionRequest() override; + explicit PROTOBUF_CONSTEXPR GetEndPositionRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline StopResponse(const StopResponse& from) - : StopResponse(nullptr, from) {} - StopResponse(StopResponse&& from) noexcept - : StopResponse() { + GetEndPositionRequest(const GetEndPositionRequest& from); + GetEndPositionRequest(GetEndPositionRequest&& from) noexcept + : GetEndPositionRequest() { *this = ::std::move(from); } - inline StopResponse& operator=(const StopResponse& from) { + inline GetEndPositionRequest& operator=(const GetEndPositionRequest& from) { CopyFrom(from); return *this; } - inline StopResponse& operator=(StopResponse&& from) noexcept { + inline GetEndPositionRequest& operator=(GetEndPositionRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -165,133 +164,165 @@ class StopResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const StopResponse& default_instance() { + static const GetEndPositionRequest& default_instance() { return *internal_default_instance(); } - static inline const StopResponse* internal_default_instance() { - return reinterpret_cast( - &_StopResponse_default_instance_); + static inline const GetEndPositionRequest* internal_default_instance() { + return reinterpret_cast( + &_GetEndPositionRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 12; + 0; - friend void swap(StopResponse& a, StopResponse& b) { + friend void swap(GetEndPositionRequest& a, GetEndPositionRequest& b) { a.Swap(&b); } - inline void Swap(StopResponse* other) { + inline void Swap(GetEndPositionRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(StopResponse* other) { + void UnsafeArenaSwap(GetEndPositionRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - StopResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const StopResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const StopResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + GetEndPositionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetEndPositionRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetEndPositionRequest& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.arm.v1.StopResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetEndPositionRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.arm.v1.GetEndPositionRequest"; } protected: - explicit StopResponse(::google::protobuf::Arena* arena); - StopResponse(::google::protobuf::Arena* arena, const StopResponse& from); + explicit GetEndPositionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.component.arm.v1.StopResponse) + 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.arm.v1.GetEndPositionRequest) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + 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_2farm_2fv1_2farm_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class MoveToPositionResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.arm.v1.MoveToPositionResponse) */ { +class GetEndPositionResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.arm.v1.GetEndPositionResponse) */ { public: - inline MoveToPositionResponse() : MoveToPositionResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR MoveToPositionResponse(::google::protobuf::internal::ConstantInitialized); + inline GetEndPositionResponse() : GetEndPositionResponse(nullptr) {} + ~GetEndPositionResponse() override; + explicit PROTOBUF_CONSTEXPR GetEndPositionResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline MoveToPositionResponse(const MoveToPositionResponse& from) - : MoveToPositionResponse(nullptr, from) {} - MoveToPositionResponse(MoveToPositionResponse&& from) noexcept - : MoveToPositionResponse() { + GetEndPositionResponse(const GetEndPositionResponse& from); + GetEndPositionResponse(GetEndPositionResponse&& from) noexcept + : GetEndPositionResponse() { *this = ::std::move(from); } - inline MoveToPositionResponse& operator=(const MoveToPositionResponse& from) { + inline GetEndPositionResponse& operator=(const GetEndPositionResponse& from) { CopyFrom(from); return *this; } - inline MoveToPositionResponse& operator=(MoveToPositionResponse&& from) noexcept { + inline GetEndPositionResponse& operator=(GetEndPositionResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -301,133 +332,149 @@ class MoveToPositionResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MoveToPositionResponse& default_instance() { + static const GetEndPositionResponse& default_instance() { return *internal_default_instance(); } - static inline const MoveToPositionResponse* internal_default_instance() { - return reinterpret_cast( - &_MoveToPositionResponse_default_instance_); + static inline const GetEndPositionResponse* internal_default_instance() { + return reinterpret_cast( + &_GetEndPositionResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 6; + 1; - friend void swap(MoveToPositionResponse& a, MoveToPositionResponse& b) { + friend void swap(GetEndPositionResponse& a, GetEndPositionResponse& b) { a.Swap(&b); } - inline void Swap(MoveToPositionResponse* other) { + inline void Swap(GetEndPositionResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MoveToPositionResponse* other) { + void UnsafeArenaSwap(GetEndPositionResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MoveToPositionResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const MoveToPositionResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const MoveToPositionResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + GetEndPositionResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetEndPositionResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetEndPositionResponse& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.arm.v1.MoveToPositionResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetEndPositionResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.arm.v1.GetEndPositionResponse"; } protected: - explicit MoveToPositionResponse(::google::protobuf::Arena* arena); - MoveToPositionResponse(::google::protobuf::Arena* arena, const MoveToPositionResponse& from); + explicit GetEndPositionResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.component.arm.v1.MoveToPositionResponse) + enum : int { + kPoseFieldNumber = 1, + }; + // .viam.common.v1.Pose pose = 1 [json_name = "pose"]; + bool has_pose() const; + private: + bool _internal_has_pose() const; + public: + void clear_pose(); + const ::viam::common::v1::Pose& pose() const; + PROTOBUF_NODISCARD ::viam::common::v1::Pose* release_pose(); + ::viam::common::v1::Pose* mutable_pose(); + void set_allocated_pose(::viam::common::v1::Pose* pose); + private: + const ::viam::common::v1::Pose& _internal_pose() const; + ::viam::common::v1::Pose* _internal_mutable_pose(); + public: + void unsafe_arena_set_allocated_pose( + ::viam::common::v1::Pose* pose); + ::viam::common::v1::Pose* unsafe_arena_release_pose(); + + // @@protoc_insertion_point(class_scope:viam.component.arm.v1.GetEndPositionResponse) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::viam::common::v1::Pose* pose_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2farm_2fv1_2farm_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class MoveToJointPositionsResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.arm.v1.MoveToJointPositionsResponse) */ { +class JointPositions final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.arm.v1.JointPositions) */ { public: - inline MoveToJointPositionsResponse() : MoveToJointPositionsResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR MoveToJointPositionsResponse(::google::protobuf::internal::ConstantInitialized); + inline JointPositions() : JointPositions(nullptr) {} + ~JointPositions() override; + explicit PROTOBUF_CONSTEXPR JointPositions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline MoveToJointPositionsResponse(const MoveToJointPositionsResponse& from) - : MoveToJointPositionsResponse(nullptr, from) {} - MoveToJointPositionsResponse(MoveToJointPositionsResponse&& from) noexcept - : MoveToJointPositionsResponse() { + JointPositions(const JointPositions& from); + JointPositions(JointPositions&& from) noexcept + : JointPositions() { *this = ::std::move(from); } - inline MoveToJointPositionsResponse& operator=(const MoveToJointPositionsResponse& from) { + inline JointPositions& operator=(const JointPositions& from) { CopyFrom(from); return *this; } - inline MoveToJointPositionsResponse& operator=(MoveToJointPositionsResponse&& from) noexcept { + inline JointPositions& operator=(JointPositions&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -437,133 +484,153 @@ class MoveToJointPositionsResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MoveToJointPositionsResponse& default_instance() { + static const JointPositions& default_instance() { return *internal_default_instance(); } - static inline const MoveToJointPositionsResponse* internal_default_instance() { - return reinterpret_cast( - &_MoveToJointPositionsResponse_default_instance_); + static inline const JointPositions* internal_default_instance() { + return reinterpret_cast( + &_JointPositions_default_instance_); } static constexpr int kIndexInFileMessages = - 8; + 2; - friend void swap(MoveToJointPositionsResponse& a, MoveToJointPositionsResponse& b) { + friend void swap(JointPositions& a, JointPositions& b) { a.Swap(&b); } - inline void Swap(MoveToJointPositionsResponse* other) { + inline void Swap(JointPositions* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MoveToJointPositionsResponse* other) { + void UnsafeArenaSwap(JointPositions* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MoveToJointPositionsResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const MoveToJointPositionsResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const MoveToJointPositionsResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + JointPositions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const JointPositions& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const JointPositions& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.arm.v1.MoveToJointPositionsResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(JointPositions* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.arm.v1.JointPositions"; } protected: - explicit MoveToJointPositionsResponse(::google::protobuf::Arena* arena); - MoveToJointPositionsResponse(::google::protobuf::Arena* arena, const MoveToJointPositionsResponse& from); + explicit JointPositions(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.component.arm.v1.MoveToJointPositionsResponse) + enum : int { + kValuesFieldNumber = 1, + }; + // repeated double values = 1 [json_name = "values"]; + int values_size() const; + private: + int _internal_values_size() const; + public: + void clear_values(); + private: + double _internal_values(int index) const; + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& + _internal_values() const; + void _internal_add_values(double value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* + _internal_mutable_values(); + public: + double values(int index) const; + void set_values(int index, double value); + void add_values(double value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& + values() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* + mutable_values(); + + // @@protoc_insertion_point(class_scope:viam.component.arm.v1.JointPositions) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double > values_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2farm_2fv1_2farm_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class MoveThroughJointPositionsResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.arm.v1.MoveThroughJointPositionsResponse) */ { +class GetJointPositionsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.arm.v1.GetJointPositionsRequest) */ { public: - inline MoveThroughJointPositionsResponse() : MoveThroughJointPositionsResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR MoveThroughJointPositionsResponse(::google::protobuf::internal::ConstantInitialized); + inline GetJointPositionsRequest() : GetJointPositionsRequest(nullptr) {} + ~GetJointPositionsRequest() override; + explicit PROTOBUF_CONSTEXPR GetJointPositionsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline MoveThroughJointPositionsResponse(const MoveThroughJointPositionsResponse& from) - : MoveThroughJointPositionsResponse(nullptr, from) {} - MoveThroughJointPositionsResponse(MoveThroughJointPositionsResponse&& from) noexcept - : MoveThroughJointPositionsResponse() { + GetJointPositionsRequest(const GetJointPositionsRequest& from); + GetJointPositionsRequest(GetJointPositionsRequest&& from) noexcept + : GetJointPositionsRequest() { *this = ::std::move(from); } - inline MoveThroughJointPositionsResponse& operator=(const MoveThroughJointPositionsResponse& from) { + inline GetJointPositionsRequest& operator=(const GetJointPositionsRequest& from) { CopyFrom(from); return *this; } - inline MoveThroughJointPositionsResponse& operator=(MoveThroughJointPositionsResponse&& from) noexcept { + inline GetJointPositionsRequest& operator=(GetJointPositionsRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -573,134 +640,165 @@ class MoveThroughJointPositionsResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MoveThroughJointPositionsResponse& default_instance() { + static const GetJointPositionsRequest& default_instance() { return *internal_default_instance(); } - static inline const MoveThroughJointPositionsResponse* internal_default_instance() { - return reinterpret_cast( - &_MoveThroughJointPositionsResponse_default_instance_); + static inline const GetJointPositionsRequest* internal_default_instance() { + return reinterpret_cast( + &_GetJointPositionsRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 10; + 3; - friend void swap(MoveThroughJointPositionsResponse& a, MoveThroughJointPositionsResponse& b) { + friend void swap(GetJointPositionsRequest& a, GetJointPositionsRequest& b) { a.Swap(&b); } - inline void Swap(MoveThroughJointPositionsResponse* other) { + inline void Swap(GetJointPositionsRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MoveThroughJointPositionsResponse* other) { + void UnsafeArenaSwap(GetJointPositionsRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MoveThroughJointPositionsResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const MoveThroughJointPositionsResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const MoveThroughJointPositionsResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + GetJointPositionsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetJointPositionsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetJointPositionsRequest& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.arm.v1.MoveThroughJointPositionsResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetJointPositionsRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.arm.v1.GetJointPositionsRequest"; } protected: - explicit MoveThroughJointPositionsResponse(::google::protobuf::Arena* arena); - MoveThroughJointPositionsResponse(::google::protobuf::Arena* arena, const MoveThroughJointPositionsResponse& from); + explicit GetJointPositionsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.component.arm.v1.MoveThroughJointPositionsResponse) + 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.arm.v1.GetJointPositionsRequest) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + 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_2farm_2fv1_2farm_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class MoveOptions final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.arm.v1.MoveOptions) */ { +class GetJointPositionsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.arm.v1.GetJointPositionsResponse) */ { public: - inline MoveOptions() : MoveOptions(nullptr) {} - ~MoveOptions() override; - template - explicit PROTOBUF_CONSTEXPR MoveOptions(::google::protobuf::internal::ConstantInitialized); + inline GetJointPositionsResponse() : GetJointPositionsResponse(nullptr) {} + ~GetJointPositionsResponse() override; + explicit PROTOBUF_CONSTEXPR GetJointPositionsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline MoveOptions(const MoveOptions& from) - : MoveOptions(nullptr, from) {} - MoveOptions(MoveOptions&& from) noexcept - : MoveOptions() { + GetJointPositionsResponse(const GetJointPositionsResponse& from); + GetJointPositionsResponse(GetJointPositionsResponse&& from) noexcept + : GetJointPositionsResponse() { *this = ::std::move(from); } - inline MoveOptions& operator=(const MoveOptions& from) { + inline GetJointPositionsResponse& operator=(const GetJointPositionsResponse& from) { CopyFrom(from); return *this; } - inline MoveOptions& operator=(MoveOptions&& from) noexcept { + inline GetJointPositionsResponse& operator=(GetJointPositionsResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -710,187 +808,149 @@ class MoveOptions final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MoveOptions& default_instance() { + static const GetJointPositionsResponse& default_instance() { return *internal_default_instance(); } - static inline const MoveOptions* internal_default_instance() { - return reinterpret_cast( - &_MoveOptions_default_instance_); + static inline const GetJointPositionsResponse* internal_default_instance() { + return reinterpret_cast( + &_GetJointPositionsResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 16; + 4; - friend void swap(MoveOptions& a, MoveOptions& b) { + friend void swap(GetJointPositionsResponse& a, GetJointPositionsResponse& b) { a.Swap(&b); } - inline void Swap(MoveOptions* other) { + inline void Swap(GetJointPositionsResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MoveOptions* other) { + void UnsafeArenaSwap(GetJointPositionsResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MoveOptions* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const MoveOptions& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const MoveOptions& from) { - MoveOptions::MergeImpl(*this, from); + GetJointPositionsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetJointPositionsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetJointPositionsResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(MoveOptions* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetJointPositionsResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.arm.v1.MoveOptions"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.arm.v1.GetJointPositionsResponse"; } protected: - explicit MoveOptions(::google::protobuf::Arena* arena); - MoveOptions(::google::protobuf::Arena* arena, const MoveOptions& from); + explicit GetJointPositionsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kMaxVelDegsPerSecFieldNumber = 1, - kMaxAccDegsPerSec2FieldNumber = 2, + kPositionsFieldNumber = 1, }; - // optional double max_vel_degs_per_sec = 1 [json_name = "maxVelDegsPerSec"]; - bool has_max_vel_degs_per_sec() const; - void clear_max_vel_degs_per_sec() ; - double max_vel_degs_per_sec() const; - void set_max_vel_degs_per_sec(double value); - + // .viam.component.arm.v1.JointPositions positions = 1 [json_name = "positions"]; + bool has_positions() const; private: - double _internal_max_vel_degs_per_sec() const; - void _internal_set_max_vel_degs_per_sec(double value); - + bool _internal_has_positions() const; public: - // optional double max_acc_degs_per_sec2 = 2 [json_name = "maxAccDegsPerSec2"]; - bool has_max_acc_degs_per_sec2() const; - void clear_max_acc_degs_per_sec2() ; - double max_acc_degs_per_sec2() const; - void set_max_acc_degs_per_sec2(double value); - + void clear_positions(); + const ::viam::component::arm::v1::JointPositions& positions() const; + PROTOBUF_NODISCARD ::viam::component::arm::v1::JointPositions* release_positions(); + ::viam::component::arm::v1::JointPositions* mutable_positions(); + void set_allocated_positions(::viam::component::arm::v1::JointPositions* positions); private: - double _internal_max_acc_degs_per_sec2() const; - void _internal_set_max_acc_degs_per_sec2(double value); - + const ::viam::component::arm::v1::JointPositions& _internal_positions() const; + ::viam::component::arm::v1::JointPositions* _internal_mutable_positions(); public: - // @@protoc_insertion_point(class_scope:viam.component.arm.v1.MoveOptions) + void unsafe_arena_set_allocated_positions( + ::viam::component::arm::v1::JointPositions* positions); + ::viam::component::arm::v1::JointPositions* unsafe_arena_release_positions(); + + // @@protoc_insertion_point(class_scope:viam.component.arm.v1.GetJointPositionsResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - double max_vel_degs_per_sec_; - double max_acc_degs_per_sec2_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::viam::component::arm::v1::JointPositions* positions_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2farm_2fv1_2farm_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class JointPositions final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.arm.v1.JointPositions) */ { +class MoveToPositionRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.arm.v1.MoveToPositionRequest) */ { public: - inline JointPositions() : JointPositions(nullptr) {} - ~JointPositions() override; - template - explicit PROTOBUF_CONSTEXPR JointPositions(::google::protobuf::internal::ConstantInitialized); + inline MoveToPositionRequest() : MoveToPositionRequest(nullptr) {} + ~MoveToPositionRequest() override; + explicit PROTOBUF_CONSTEXPR MoveToPositionRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline JointPositions(const JointPositions& from) - : JointPositions(nullptr, from) {} - JointPositions(JointPositions&& from) noexcept - : JointPositions() { + MoveToPositionRequest(const MoveToPositionRequest& from); + MoveToPositionRequest(MoveToPositionRequest&& from) noexcept + : MoveToPositionRequest() { *this = ::std::move(from); } - inline JointPositions& operator=(const JointPositions& from) { + inline MoveToPositionRequest& operator=(const MoveToPositionRequest& from) { CopyFrom(from); return *this; } - inline JointPositions& operator=(JointPositions&& from) noexcept { + inline MoveToPositionRequest& operator=(MoveToPositionRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -900,180 +960,184 @@ class JointPositions final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const JointPositions& default_instance() { + static const MoveToPositionRequest& default_instance() { return *internal_default_instance(); } - static inline const JointPositions* internal_default_instance() { - return reinterpret_cast( - &_JointPositions_default_instance_); + static inline const MoveToPositionRequest* internal_default_instance() { + return reinterpret_cast( + &_MoveToPositionRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 2; + 5; - friend void swap(JointPositions& a, JointPositions& b) { + friend void swap(MoveToPositionRequest& a, MoveToPositionRequest& b) { a.Swap(&b); } - inline void Swap(JointPositions* other) { + inline void Swap(MoveToPositionRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(JointPositions* other) { + void UnsafeArenaSwap(MoveToPositionRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - JointPositions* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const JointPositions& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const JointPositions& from) { - JointPositions::MergeImpl(*this, from); + MoveToPositionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MoveToPositionRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MoveToPositionRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(JointPositions* other); + void SetCachedSize(int size) const final; + void InternalSwap(MoveToPositionRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.arm.v1.JointPositions"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.arm.v1.MoveToPositionRequest"; } protected: - explicit JointPositions(::google::protobuf::Arena* arena); - JointPositions(::google::protobuf::Arena* arena, const JointPositions& from); + explicit MoveToPositionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kValuesFieldNumber = 1, + kNameFieldNumber = 1, + kToFieldNumber = 2, + kExtraFieldNumber = 99, }; - // repeated double values = 1 [json_name = "values"]; - int values_size() const; + // 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: - int _internal_values_size() const; - + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); public: - void clear_values() ; - double values(int index) const; - void set_values(int index, double value); - void add_values(double value); - const ::google::protobuf::RepeatedField& values() const; - ::google::protobuf::RepeatedField* mutable_values(); + // .viam.common.v1.Pose to = 2 [json_name = "to"]; + bool has_to() const; + private: + bool _internal_has_to() const; + public: + void clear_to(); + const ::viam::common::v1::Pose& to() const; + PROTOBUF_NODISCARD ::viam::common::v1::Pose* release_to(); + ::viam::common::v1::Pose* mutable_to(); + void set_allocated_to(::viam::common::v1::Pose* to); private: - const ::google::protobuf::RepeatedField& _internal_values() const; - ::google::protobuf::RepeatedField* _internal_mutable_values(); + const ::viam::common::v1::Pose& _internal_to() const; + ::viam::common::v1::Pose* _internal_mutable_to(); + public: + void unsafe_arena_set_allocated_to( + ::viam::common::v1::Pose* to); + ::viam::common::v1::Pose* unsafe_arena_release_to(); + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + bool has_extra() const; + private: + bool _internal_has_extra() const; public: - // @@protoc_insertion_point(class_scope:viam.component.arm.v1.JointPositions) + 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.arm.v1.MoveToPositionRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedField values_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::viam::common::v1::Pose* to_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2farm_2fv1_2farm_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class IsMovingResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.arm.v1.IsMovingResponse) */ { +class MoveToPositionResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.arm.v1.MoveToPositionResponse) */ { public: - inline IsMovingResponse() : IsMovingResponse(nullptr) {} - ~IsMovingResponse() override; - template - explicit PROTOBUF_CONSTEXPR IsMovingResponse(::google::protobuf::internal::ConstantInitialized); + inline MoveToPositionResponse() : MoveToPositionResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR MoveToPositionResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline IsMovingResponse(const IsMovingResponse& from) - : IsMovingResponse(nullptr, from) {} - IsMovingResponse(IsMovingResponse&& from) noexcept - : IsMovingResponse() { + MoveToPositionResponse(const MoveToPositionResponse& from); + MoveToPositionResponse(MoveToPositionResponse&& from) noexcept + : MoveToPositionResponse() { *this = ::std::move(from); } - inline IsMovingResponse& operator=(const IsMovingResponse& from) { + inline MoveToPositionResponse& operator=(const MoveToPositionResponse& from) { CopyFrom(from); return *this; } - inline IsMovingResponse& operator=(IsMovingResponse&& from) noexcept { + inline MoveToPositionResponse& operator=(MoveToPositionResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1083,172 +1147,114 @@ class IsMovingResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const IsMovingResponse& default_instance() { + static const MoveToPositionResponse& default_instance() { return *internal_default_instance(); } - static inline const IsMovingResponse* internal_default_instance() { - return reinterpret_cast( - &_IsMovingResponse_default_instance_); + static inline const MoveToPositionResponse* internal_default_instance() { + return reinterpret_cast( + &_MoveToPositionResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 15; + 6; - friend void swap(IsMovingResponse& a, IsMovingResponse& b) { + friend void swap(MoveToPositionResponse& a, MoveToPositionResponse& b) { a.Swap(&b); } - inline void Swap(IsMovingResponse* other) { + inline void Swap(MoveToPositionResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(IsMovingResponse* other) { + void UnsafeArenaSwap(MoveToPositionResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - IsMovingResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + MoveToPositionResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const IsMovingResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const IsMovingResponse& from) { - IsMovingResponse::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const MoveToPositionResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const MoveToPositionResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(IsMovingResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.arm.v1.IsMovingResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.arm.v1.MoveToPositionResponse"; } protected: - explicit IsMovingResponse(::google::protobuf::Arena* arena); - IsMovingResponse(::google::protobuf::Arena* arena, const IsMovingResponse& from); + explicit MoveToPositionResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kIsMovingFieldNumber = 1, - }; - // bool is_moving = 1 [json_name = "isMoving"]; - void clear_is_moving() ; - bool is_moving() const; - void set_is_moving(bool value); - - private: - bool _internal_is_moving() const; - void _internal_set_is_moving(bool value); - - public: - // @@protoc_insertion_point(class_scope:viam.component.arm.v1.IsMovingResponse) + // @@protoc_insertion_point(class_scope:viam.component.arm.v1.MoveToPositionResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - bool is_moving_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_component_2farm_2fv1_2farm_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class IsMovingRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.arm.v1.IsMovingRequest) */ { +class MoveToJointPositionsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.arm.v1.MoveToJointPositionsRequest) */ { public: - inline IsMovingRequest() : IsMovingRequest(nullptr) {} - ~IsMovingRequest() override; - template - explicit PROTOBUF_CONSTEXPR IsMovingRequest(::google::protobuf::internal::ConstantInitialized); + inline MoveToJointPositionsRequest() : MoveToJointPositionsRequest(nullptr) {} + ~MoveToJointPositionsRequest() override; + explicit PROTOBUF_CONSTEXPR MoveToJointPositionsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline IsMovingRequest(const IsMovingRequest& from) - : IsMovingRequest(nullptr, from) {} - IsMovingRequest(IsMovingRequest&& from) noexcept - : IsMovingRequest() { + MoveToJointPositionsRequest(const MoveToJointPositionsRequest& from); + MoveToJointPositionsRequest(MoveToJointPositionsRequest&& from) noexcept + : MoveToJointPositionsRequest() { *this = ::std::move(from); } - inline IsMovingRequest& operator=(const IsMovingRequest& from) { + inline MoveToJointPositionsRequest& operator=(const MoveToJointPositionsRequest& from) { CopyFrom(from); return *this; } - inline IsMovingRequest& operator=(IsMovingRequest&& from) noexcept { + inline MoveToJointPositionsRequest& operator=(MoveToJointPositionsRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1258,99 +1264,88 @@ class IsMovingRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const IsMovingRequest& default_instance() { + static const MoveToJointPositionsRequest& default_instance() { return *internal_default_instance(); } - static inline const IsMovingRequest* internal_default_instance() { - return reinterpret_cast( - &_IsMovingRequest_default_instance_); + static inline const MoveToJointPositionsRequest* internal_default_instance() { + return reinterpret_cast( + &_MoveToJointPositionsRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 14; + 7; - friend void swap(IsMovingRequest& a, IsMovingRequest& b) { + friend void swap(MoveToJointPositionsRequest& a, MoveToJointPositionsRequest& b) { a.Swap(&b); } - inline void Swap(IsMovingRequest* other) { + inline void Swap(MoveToJointPositionsRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(IsMovingRequest* other) { + void UnsafeArenaSwap(MoveToJointPositionsRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - IsMovingRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const IsMovingRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const IsMovingRequest& from) { - IsMovingRequest::MergeImpl(*this, from); + MoveToJointPositionsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MoveToJointPositionsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MoveToJointPositionsRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(IsMovingRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(MoveToJointPositionsRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.arm.v1.IsMovingRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.arm.v1.MoveToJointPositionsRequest"; } protected: - explicit IsMovingRequest(::google::protobuf::Arena* arena); - IsMovingRequest(::google::protobuf::Arena* arena, const IsMovingRequest& from); + explicit MoveToJointPositionsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1358,78 +1353,95 @@ class IsMovingRequest final : enum : int { kNameFieldNumber = 1, + kPositionsFieldNumber = 2, + kExtraFieldNumber = 99, }; // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); std::string* _internal_mutable_name(); + public: + // .viam.component.arm.v1.JointPositions positions = 2 [json_name = "positions"]; + bool has_positions() const; + private: + bool _internal_has_positions() const; public: - // @@protoc_insertion_point(class_scope:viam.component.arm.v1.IsMovingRequest) + void clear_positions(); + const ::viam::component::arm::v1::JointPositions& positions() const; + PROTOBUF_NODISCARD ::viam::component::arm::v1::JointPositions* release_positions(); + ::viam::component::arm::v1::JointPositions* mutable_positions(); + void set_allocated_positions(::viam::component::arm::v1::JointPositions* positions); + private: + const ::viam::component::arm::v1::JointPositions& _internal_positions() const; + ::viam::component::arm::v1::JointPositions* _internal_mutable_positions(); + public: + void unsafe_arena_set_allocated_positions( + ::viam::component::arm::v1::JointPositions* positions); + ::viam::component::arm::v1::JointPositions* unsafe_arena_release_positions(); + + // .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.arm.v1.MoveToJointPositionsRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 50, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr name_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::viam::component::arm::v1::JointPositions* positions_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2farm_2fv1_2farm_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class StopRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.arm.v1.StopRequest) */ { +class MoveToJointPositionsResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.arm.v1.MoveToJointPositionsResponse) */ { public: - inline StopRequest() : StopRequest(nullptr) {} - ~StopRequest() override; - template - explicit PROTOBUF_CONSTEXPR StopRequest(::google::protobuf::internal::ConstantInitialized); + inline MoveToJointPositionsResponse() : MoveToJointPositionsResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR MoveToJointPositionsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline StopRequest(const StopRequest& from) - : StopRequest(nullptr, from) {} - StopRequest(StopRequest&& from) noexcept - : StopRequest() { + MoveToJointPositionsResponse(const MoveToJointPositionsResponse& from); + MoveToJointPositionsResponse(MoveToJointPositionsResponse&& from) noexcept + : MoveToJointPositionsResponse() { *this = ::std::move(from); } - inline StopRequest& operator=(const StopRequest& from) { + inline MoveToJointPositionsResponse& operator=(const MoveToJointPositionsResponse& from) { CopyFrom(from); return *this; } - inline StopRequest& operator=(StopRequest&& from) noexcept { + inline MoveToJointPositionsResponse& operator=(MoveToJointPositionsResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1439,196 +1451,114 @@ class StopRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const StopRequest& default_instance() { + static const MoveToJointPositionsResponse& default_instance() { return *internal_default_instance(); } - static inline const StopRequest* internal_default_instance() { - return reinterpret_cast( - &_StopRequest_default_instance_); + static inline const MoveToJointPositionsResponse* internal_default_instance() { + return reinterpret_cast( + &_MoveToJointPositionsResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 11; + 8; - friend void swap(StopRequest& a, StopRequest& b) { + friend void swap(MoveToJointPositionsResponse& a, MoveToJointPositionsResponse& b) { a.Swap(&b); } - inline void Swap(StopRequest* other) { + inline void Swap(MoveToJointPositionsResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(StopRequest* other) { + void UnsafeArenaSwap(MoveToJointPositionsResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - StopRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + MoveToJointPositionsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const StopRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const StopRequest& from) { - StopRequest::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const MoveToJointPositionsResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const MoveToJointPositionsResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(StopRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.arm.v1.StopRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.arm.v1.MoveToJointPositionsResponse"; } protected: - explicit StopRequest(::google::protobuf::Arena* arena); - StopRequest(::google::protobuf::Arena* arena, const StopRequest& from); + explicit MoveToJointPositionsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() 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(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - - public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - - public: - // @@protoc_insertion_point(class_scope:viam.component.arm.v1.StopRequest) + // @@protoc_insertion_point(class_scope:viam.component.arm.v1.MoveToJointPositionsResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 2, 1, - 46, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_component_2farm_2fv1_2farm_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Status final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.arm.v1.Status) */ { +class MoveThroughJointPositionsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.arm.v1.MoveThroughJointPositionsRequest) */ { public: - inline Status() : Status(nullptr) {} - ~Status() override; - template - explicit PROTOBUF_CONSTEXPR Status(::google::protobuf::internal::ConstantInitialized); + inline MoveThroughJointPositionsRequest() : MoveThroughJointPositionsRequest(nullptr) {} + ~MoveThroughJointPositionsRequest() override; + explicit PROTOBUF_CONSTEXPR MoveThroughJointPositionsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Status(const Status& from) - : Status(nullptr, from) {} - Status(Status&& from) noexcept - : Status() { + MoveThroughJointPositionsRequest(const MoveThroughJointPositionsRequest& from); + MoveThroughJointPositionsRequest(MoveThroughJointPositionsRequest&& from) noexcept + : MoveThroughJointPositionsRequest() { *this = ::std::move(from); } - inline Status& operator=(const Status& from) { + inline MoveThroughJointPositionsRequest& operator=(const MoveThroughJointPositionsRequest& from) { CopyFrom(from); return *this; } - inline Status& operator=(Status&& from) noexcept { + inline MoveThroughJointPositionsRequest& operator=(MoveThroughJointPositionsRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1638,207 +1568,205 @@ class Status final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Status& default_instance() { + static const MoveThroughJointPositionsRequest& default_instance() { return *internal_default_instance(); } - static inline const Status* internal_default_instance() { - return reinterpret_cast( - &_Status_default_instance_); + static inline const MoveThroughJointPositionsRequest* internal_default_instance() { + return reinterpret_cast( + &_MoveThroughJointPositionsRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 13; + 9; - friend void swap(Status& a, Status& b) { + friend void swap(MoveThroughJointPositionsRequest& a, MoveThroughJointPositionsRequest& b) { a.Swap(&b); } - inline void Swap(Status* other) { + inline void Swap(MoveThroughJointPositionsRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Status* other) { + void UnsafeArenaSwap(MoveThroughJointPositionsRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Status* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Status& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Status& from) { - Status::MergeImpl(*this, from); + MoveThroughJointPositionsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MoveThroughJointPositionsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MoveThroughJointPositionsRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Status* other); + void SetCachedSize(int size) const final; + void InternalSwap(MoveThroughJointPositionsRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.arm.v1.Status"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.arm.v1.MoveThroughJointPositionsRequest"; } protected: - explicit Status(::google::protobuf::Arena* arena); - Status(::google::protobuf::Arena* arena, const Status& from); + explicit MoveThroughJointPositionsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kEndPositionFieldNumber = 1, - kJointPositionsFieldNumber = 2, - kIsMovingFieldNumber = 3, + kPositionsFieldNumber = 2, + kNameFieldNumber = 1, + kOptionsFieldNumber = 3, + kExtraFieldNumber = 99, }; - // .viam.common.v1.Pose end_position = 1 [json_name = "endPosition"]; - bool has_end_position() const; - void clear_end_position() ; - const ::viam::common::v1::Pose& end_position() const; - PROTOBUF_NODISCARD ::viam::common::v1::Pose* release_end_position(); - ::viam::common::v1::Pose* mutable_end_position(); - void set_allocated_end_position(::viam::common::v1::Pose* value); - void unsafe_arena_set_allocated_end_position(::viam::common::v1::Pose* value); - ::viam::common::v1::Pose* unsafe_arena_release_end_position(); - + // repeated .viam.component.arm.v1.JointPositions positions = 2 [json_name = "positions"]; + int positions_size() const; private: - const ::viam::common::v1::Pose& _internal_end_position() const; - ::viam::common::v1::Pose* _internal_mutable_end_position(); - + int _internal_positions_size() const; public: - // .viam.component.arm.v1.JointPositions joint_positions = 2 [json_name = "jointPositions"]; - bool has_joint_positions() const; - void clear_joint_positions() ; - const ::viam::component::arm::v1::JointPositions& joint_positions() const; - PROTOBUF_NODISCARD ::viam::component::arm::v1::JointPositions* release_joint_positions(); - ::viam::component::arm::v1::JointPositions* mutable_joint_positions(); - void set_allocated_joint_positions(::viam::component::arm::v1::JointPositions* value); - void unsafe_arena_set_allocated_joint_positions(::viam::component::arm::v1::JointPositions* value); - ::viam::component::arm::v1::JointPositions* unsafe_arena_release_joint_positions(); - + void clear_positions(); + ::viam::component::arm::v1::JointPositions* mutable_positions(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::arm::v1::JointPositions >* + mutable_positions(); private: - const ::viam::component::arm::v1::JointPositions& _internal_joint_positions() const; - ::viam::component::arm::v1::JointPositions* _internal_mutable_joint_positions(); - + const ::viam::component::arm::v1::JointPositions& _internal_positions(int index) const; + ::viam::component::arm::v1::JointPositions* _internal_add_positions(); public: - // bool is_moving = 3 [json_name = "isMoving"]; - void clear_is_moving() ; - bool is_moving() const; - void set_is_moving(bool value); + const ::viam::component::arm::v1::JointPositions& positions(int index) const; + ::viam::component::arm::v1::JointPositions* add_positions(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::arm::v1::JointPositions >& + positions() const; + // 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: - bool _internal_is_moving() const; - void _internal_set_is_moving(bool value); - + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); public: - // @@protoc_insertion_point(class_scope:viam.component.arm.v1.Status) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 2, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::viam::common::v1::Pose* end_position_; - ::viam::component::arm::v1::JointPositions* joint_positions_; - bool is_moving_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_component_2farm_2fv1_2farm_2eproto; -};// ------------------------------------------------------------------- - -class MoveToPositionRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.arm.v1.MoveToPositionRequest) */ { - public: - inline MoveToPositionRequest() : MoveToPositionRequest(nullptr) {} - ~MoveToPositionRequest() override; - template - explicit PROTOBUF_CONSTEXPR MoveToPositionRequest(::google::protobuf::internal::ConstantInitialized); - inline MoveToPositionRequest(const MoveToPositionRequest& from) - : MoveToPositionRequest(nullptr, from) {} - MoveToPositionRequest(MoveToPositionRequest&& from) noexcept - : MoveToPositionRequest() { + // optional .viam.component.arm.v1.MoveOptions options = 3 [json_name = "options"]; + bool has_options() const; + private: + bool _internal_has_options() const; + public: + void clear_options(); + const ::viam::component::arm::v1::MoveOptions& options() const; + PROTOBUF_NODISCARD ::viam::component::arm::v1::MoveOptions* release_options(); + ::viam::component::arm::v1::MoveOptions* mutable_options(); + void set_allocated_options(::viam::component::arm::v1::MoveOptions* options); + private: + const ::viam::component::arm::v1::MoveOptions& _internal_options() const; + ::viam::component::arm::v1::MoveOptions* _internal_mutable_options(); + public: + void unsafe_arena_set_allocated_options( + ::viam::component::arm::v1::MoveOptions* options); + ::viam::component::arm::v1::MoveOptions* unsafe_arena_release_options(); + + // .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.arm.v1.MoveThroughJointPositionsRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::arm::v1::JointPositions > positions_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::viam::component::arm::v1::MoveOptions* options_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + friend struct ::TableStruct_component_2farm_2fv1_2farm_2eproto; +}; +// ------------------------------------------------------------------- + +class MoveThroughJointPositionsResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.arm.v1.MoveThroughJointPositionsResponse) */ { + public: + inline MoveThroughJointPositionsResponse() : MoveThroughJointPositionsResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR MoveThroughJointPositionsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + MoveThroughJointPositionsResponse(const MoveThroughJointPositionsResponse& from); + MoveThroughJointPositionsResponse(MoveThroughJointPositionsResponse&& from) noexcept + : MoveThroughJointPositionsResponse() { *this = ::std::move(from); } - inline MoveToPositionRequest& operator=(const MoveToPositionRequest& from) { + inline MoveThroughJointPositionsResponse& operator=(const MoveThroughJointPositionsResponse& from) { CopyFrom(from); return *this; } - inline MoveToPositionRequest& operator=(MoveToPositionRequest&& from) noexcept { + inline MoveThroughJointPositionsResponse& operator=(MoveThroughJointPositionsResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1848,213 +1776,114 @@ class MoveToPositionRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MoveToPositionRequest& default_instance() { + static const MoveThroughJointPositionsResponse& default_instance() { return *internal_default_instance(); } - static inline const MoveToPositionRequest* internal_default_instance() { - return reinterpret_cast( - &_MoveToPositionRequest_default_instance_); + static inline const MoveThroughJointPositionsResponse* internal_default_instance() { + return reinterpret_cast( + &_MoveThroughJointPositionsResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 5; + 10; - friend void swap(MoveToPositionRequest& a, MoveToPositionRequest& b) { + friend void swap(MoveThroughJointPositionsResponse& a, MoveThroughJointPositionsResponse& b) { a.Swap(&b); } - inline void Swap(MoveToPositionRequest* other) { + inline void Swap(MoveThroughJointPositionsResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MoveToPositionRequest* other) { + void UnsafeArenaSwap(MoveThroughJointPositionsResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MoveToPositionRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + MoveThroughJointPositionsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const MoveToPositionRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const MoveToPositionRequest& from) { - MoveToPositionRequest::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const MoveThroughJointPositionsResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const MoveThroughJointPositionsResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(MoveToPositionRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.arm.v1.MoveToPositionRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.arm.v1.MoveThroughJointPositionsResponse"; } protected: - explicit MoveToPositionRequest(::google::protobuf::Arena* arena); - MoveToPositionRequest(::google::protobuf::Arena* arena, const MoveToPositionRequest& from); + explicit MoveThroughJointPositionsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kNameFieldNumber = 1, - kToFieldNumber = 2, - kExtraFieldNumber = 99, - }; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - - public: - // .viam.common.v1.Pose to = 2 [json_name = "to"]; - bool has_to() const; - void clear_to() ; - const ::viam::common::v1::Pose& to() const; - PROTOBUF_NODISCARD ::viam::common::v1::Pose* release_to(); - ::viam::common::v1::Pose* mutable_to(); - void set_allocated_to(::viam::common::v1::Pose* value); - void unsafe_arena_set_allocated_to(::viam::common::v1::Pose* value); - ::viam::common::v1::Pose* unsafe_arena_release_to(); - - private: - const ::viam::common::v1::Pose& _internal_to() const; - ::viam::common::v1::Pose* _internal_mutable_to(); - - public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - - public: - // @@protoc_insertion_point(class_scope:viam.component.arm.v1.MoveToPositionRequest) + // @@protoc_insertion_point(class_scope:viam.component.arm.v1.MoveThroughJointPositionsResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 2, - 56, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::viam::common::v1::Pose* to_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_component_2farm_2fv1_2farm_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class MoveToJointPositionsRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.arm.v1.MoveToJointPositionsRequest) */ { +class StopRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.arm.v1.StopRequest) */ { public: - inline MoveToJointPositionsRequest() : MoveToJointPositionsRequest(nullptr) {} - ~MoveToJointPositionsRequest() override; - template - explicit PROTOBUF_CONSTEXPR MoveToJointPositionsRequest(::google::protobuf::internal::ConstantInitialized); + inline StopRequest() : StopRequest(nullptr) {} + ~StopRequest() override; + explicit PROTOBUF_CONSTEXPR StopRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline MoveToJointPositionsRequest(const MoveToJointPositionsRequest& from) - : MoveToJointPositionsRequest(nullptr, from) {} - MoveToJointPositionsRequest(MoveToJointPositionsRequest&& from) noexcept - : MoveToJointPositionsRequest() { + StopRequest(const StopRequest& from); + StopRequest(StopRequest&& from) noexcept + : StopRequest() { *this = ::std::move(from); } - inline MoveToJointPositionsRequest& operator=(const MoveToJointPositionsRequest& from) { + inline StopRequest& operator=(const StopRequest& from) { CopyFrom(from); return *this; } - inline MoveToJointPositionsRequest& operator=(MoveToJointPositionsRequest&& from) noexcept { + inline StopRequest& operator=(StopRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2064,99 +1893,88 @@ class MoveToJointPositionsRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MoveToJointPositionsRequest& default_instance() { + static const StopRequest& default_instance() { return *internal_default_instance(); } - static inline const MoveToJointPositionsRequest* internal_default_instance() { - return reinterpret_cast( - &_MoveToJointPositionsRequest_default_instance_); + static inline const StopRequest* internal_default_instance() { + return reinterpret_cast( + &_StopRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 7; + 11; - friend void swap(MoveToJointPositionsRequest& a, MoveToJointPositionsRequest& b) { + friend void swap(StopRequest& a, StopRequest& b) { a.Swap(&b); } - inline void Swap(MoveToJointPositionsRequest* other) { + inline void Swap(StopRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MoveToJointPositionsRequest* other) { + void UnsafeArenaSwap(StopRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MoveToJointPositionsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const MoveToJointPositionsRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const MoveToJointPositionsRequest& from) { - MoveToJointPositionsRequest::MergeImpl(*this, from); + StopRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const StopRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const StopRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(MoveToJointPositionsRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(StopRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.arm.v1.MoveToJointPositionsRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.arm.v1.StopRequest"; } protected: - explicit MoveToJointPositionsRequest(::google::protobuf::Arena* arena); - MoveToJointPositionsRequest(::google::protobuf::Arena* arena, const MoveToJointPositionsRequest& from); + explicit StopRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -2164,113 +1982,75 @@ class MoveToJointPositionsRequest final : enum : int { kNameFieldNumber = 1, - kPositionsFieldNumber = 2, kExtraFieldNumber = 99, }; // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); std::string* _internal_mutable_name(); - public: - // .viam.component.arm.v1.JointPositions positions = 2 [json_name = "positions"]; - bool has_positions() const; - void clear_positions() ; - const ::viam::component::arm::v1::JointPositions& positions() const; - PROTOBUF_NODISCARD ::viam::component::arm::v1::JointPositions* release_positions(); - ::viam::component::arm::v1::JointPositions* mutable_positions(); - void set_allocated_positions(::viam::component::arm::v1::JointPositions* value); - void unsafe_arena_set_allocated_positions(::viam::component::arm::v1::JointPositions* value); - ::viam::component::arm::v1::JointPositions* unsafe_arena_release_positions(); - private: - const ::viam::component::arm::v1::JointPositions& _internal_positions() const; - ::viam::component::arm::v1::JointPositions* _internal_mutable_positions(); - - public: // .google.protobuf.Struct extra = 99 [json_name = "extra"]; bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - + bool _internal_has_extra() const; public: - // @@protoc_insertion_point(class_scope:viam.component.arm.v1.MoveToJointPositionsRequest) + 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.arm.v1.StopRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 2, - 62, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::viam::component::arm::v1::JointPositions* positions_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + 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_2farm_2fv1_2farm_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class MoveThroughJointPositionsRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.arm.v1.MoveThroughJointPositionsRequest) */ { +class StopResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.arm.v1.StopResponse) */ { public: - inline MoveThroughJointPositionsRequest() : MoveThroughJointPositionsRequest(nullptr) {} - ~MoveThroughJointPositionsRequest() override; - template - explicit PROTOBUF_CONSTEXPR MoveThroughJointPositionsRequest(::google::protobuf::internal::ConstantInitialized); + inline StopResponse() : StopResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR StopResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline MoveThroughJointPositionsRequest(const MoveThroughJointPositionsRequest& from) - : MoveThroughJointPositionsRequest(nullptr, from) {} - MoveThroughJointPositionsRequest(MoveThroughJointPositionsRequest&& from) noexcept - : MoveThroughJointPositionsRequest() { + StopResponse(const StopResponse& from); + StopResponse(StopResponse&& from) noexcept + : StopResponse() { *this = ::std::move(from); } - inline MoveThroughJointPositionsRequest& operator=(const MoveThroughJointPositionsRequest& from) { + inline StopResponse& operator=(const StopResponse& from) { CopyFrom(from); return *this; } - inline MoveThroughJointPositionsRequest& operator=(MoveThroughJointPositionsRequest&& from) noexcept { + inline StopResponse& operator=(StopResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2280,233 +2060,114 @@ class MoveThroughJointPositionsRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MoveThroughJointPositionsRequest& default_instance() { + static const StopResponse& default_instance() { return *internal_default_instance(); } - static inline const MoveThroughJointPositionsRequest* internal_default_instance() { - return reinterpret_cast( - &_MoveThroughJointPositionsRequest_default_instance_); + static inline const StopResponse* internal_default_instance() { + return reinterpret_cast( + &_StopResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 9; + 12; - friend void swap(MoveThroughJointPositionsRequest& a, MoveThroughJointPositionsRequest& b) { + friend void swap(StopResponse& a, StopResponse& b) { a.Swap(&b); } - inline void Swap(MoveThroughJointPositionsRequest* other) { + inline void Swap(StopResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MoveThroughJointPositionsRequest* other) { + void UnsafeArenaSwap(StopResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MoveThroughJointPositionsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + StopResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const MoveThroughJointPositionsRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const MoveThroughJointPositionsRequest& from) { - MoveThroughJointPositionsRequest::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const StopResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const StopResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(MoveThroughJointPositionsRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.arm.v1.MoveThroughJointPositionsRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.arm.v1.StopResponse"; } protected: - explicit MoveThroughJointPositionsRequest(::google::protobuf::Arena* arena); - MoveThroughJointPositionsRequest(::google::protobuf::Arena* arena, const MoveThroughJointPositionsRequest& from); + explicit StopResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kPositionsFieldNumber = 2, - kNameFieldNumber = 1, - kOptionsFieldNumber = 3, - kExtraFieldNumber = 99, - }; - // repeated .viam.component.arm.v1.JointPositions positions = 2 [json_name = "positions"]; - int positions_size() const; - private: - int _internal_positions_size() const; - - public: - void clear_positions() ; - ::viam::component::arm::v1::JointPositions* mutable_positions(int index); - ::google::protobuf::RepeatedPtrField< ::viam::component::arm::v1::JointPositions >* - mutable_positions(); - private: - const ::google::protobuf::RepeatedPtrField<::viam::component::arm::v1::JointPositions>& _internal_positions() const; - ::google::protobuf::RepeatedPtrField<::viam::component::arm::v1::JointPositions>* _internal_mutable_positions(); - public: - const ::viam::component::arm::v1::JointPositions& positions(int index) const; - ::viam::component::arm::v1::JointPositions* add_positions(); - const ::google::protobuf::RepeatedPtrField< ::viam::component::arm::v1::JointPositions >& - positions() const; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - - public: - // optional .viam.component.arm.v1.MoveOptions options = 3 [json_name = "options"]; - bool has_options() const; - void clear_options() ; - const ::viam::component::arm::v1::MoveOptions& options() const; - PROTOBUF_NODISCARD ::viam::component::arm::v1::MoveOptions* release_options(); - ::viam::component::arm::v1::MoveOptions* mutable_options(); - void set_allocated_options(::viam::component::arm::v1::MoveOptions* value); - void unsafe_arena_set_allocated_options(::viam::component::arm::v1::MoveOptions* value); - ::viam::component::arm::v1::MoveOptions* unsafe_arena_release_options(); - - private: - const ::viam::component::arm::v1::MoveOptions& _internal_options() const; - ::viam::component::arm::v1::MoveOptions* _internal_mutable_options(); - - public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - - public: - // @@protoc_insertion_point(class_scope:viam.component.arm.v1.MoveThroughJointPositionsRequest) + // @@protoc_insertion_point(class_scope:viam.component.arm.v1.StopResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 3, - 67, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::viam::component::arm::v1::JointPositions > positions_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::viam::component::arm::v1::MoveOptions* options_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_component_2farm_2fv1_2farm_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetJointPositionsResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.arm.v1.GetJointPositionsResponse) */ { +class Status final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.arm.v1.Status) */ { public: - inline GetJointPositionsResponse() : GetJointPositionsResponse(nullptr) {} - ~GetJointPositionsResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetJointPositionsResponse(::google::protobuf::internal::ConstantInitialized); + inline Status() : Status(nullptr) {} + ~Status() override; + explicit PROTOBUF_CONSTEXPR Status(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetJointPositionsResponse(const GetJointPositionsResponse& from) - : GetJointPositionsResponse(nullptr, from) {} - GetJointPositionsResponse(GetJointPositionsResponse&& from) noexcept - : GetJointPositionsResponse() { + Status(const Status& from); + Status(Status&& from) noexcept + : Status() { *this = ::std::move(from); } - inline GetJointPositionsResponse& operator=(const GetJointPositionsResponse& from) { + inline Status& operator=(const Status& from) { CopyFrom(from); return *this; } - inline GetJointPositionsResponse& operator=(GetJointPositionsResponse&& from) noexcept { + inline Status& operator=(Status&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2516,178 +2177,180 @@ class GetJointPositionsResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetJointPositionsResponse& default_instance() { + static const Status& default_instance() { return *internal_default_instance(); } - static inline const GetJointPositionsResponse* internal_default_instance() { - return reinterpret_cast( - &_GetJointPositionsResponse_default_instance_); + static inline const Status* internal_default_instance() { + return reinterpret_cast( + &_Status_default_instance_); } static constexpr int kIndexInFileMessages = - 4; + 13; - friend void swap(GetJointPositionsResponse& a, GetJointPositionsResponse& b) { + friend void swap(Status& a, Status& b) { a.Swap(&b); } - inline void Swap(GetJointPositionsResponse* other) { + inline void Swap(Status* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetJointPositionsResponse* other) { + void UnsafeArenaSwap(Status* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetJointPositionsResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetJointPositionsResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetJointPositionsResponse& from) { - GetJointPositionsResponse::MergeImpl(*this, from); + Status* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Status& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Status& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetJointPositionsResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(Status* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.arm.v1.GetJointPositionsResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.arm.v1.Status"; } protected: - explicit GetJointPositionsResponse(::google::protobuf::Arena* arena); - GetJointPositionsResponse(::google::protobuf::Arena* arena, const GetJointPositionsResponse& from); + explicit Status(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kPositionsFieldNumber = 1, + kEndPositionFieldNumber = 1, + kJointPositionsFieldNumber = 2, + kIsMovingFieldNumber = 3, }; - // .viam.component.arm.v1.JointPositions positions = 1 [json_name = "positions"]; - bool has_positions() const; - void clear_positions() ; - const ::viam::component::arm::v1::JointPositions& positions() const; - PROTOBUF_NODISCARD ::viam::component::arm::v1::JointPositions* release_positions(); - ::viam::component::arm::v1::JointPositions* mutable_positions(); - void set_allocated_positions(::viam::component::arm::v1::JointPositions* value); - void unsafe_arena_set_allocated_positions(::viam::component::arm::v1::JointPositions* value); - ::viam::component::arm::v1::JointPositions* unsafe_arena_release_positions(); + // .viam.common.v1.Pose end_position = 1 [json_name = "endPosition"]; + bool has_end_position() const; + private: + bool _internal_has_end_position() const; + public: + void clear_end_position(); + const ::viam::common::v1::Pose& end_position() const; + PROTOBUF_NODISCARD ::viam::common::v1::Pose* release_end_position(); + ::viam::common::v1::Pose* mutable_end_position(); + void set_allocated_end_position(::viam::common::v1::Pose* end_position); + private: + const ::viam::common::v1::Pose& _internal_end_position() const; + ::viam::common::v1::Pose* _internal_mutable_end_position(); + public: + void unsafe_arena_set_allocated_end_position( + ::viam::common::v1::Pose* end_position); + ::viam::common::v1::Pose* unsafe_arena_release_end_position(); + // .viam.component.arm.v1.JointPositions joint_positions = 2 [json_name = "jointPositions"]; + bool has_joint_positions() const; private: - const ::viam::component::arm::v1::JointPositions& _internal_positions() const; - ::viam::component::arm::v1::JointPositions* _internal_mutable_positions(); + bool _internal_has_joint_positions() const; + public: + void clear_joint_positions(); + const ::viam::component::arm::v1::JointPositions& joint_positions() const; + PROTOBUF_NODISCARD ::viam::component::arm::v1::JointPositions* release_joint_positions(); + ::viam::component::arm::v1::JointPositions* mutable_joint_positions(); + void set_allocated_joint_positions(::viam::component::arm::v1::JointPositions* joint_positions); + private: + const ::viam::component::arm::v1::JointPositions& _internal_joint_positions() const; + ::viam::component::arm::v1::JointPositions* _internal_mutable_joint_positions(); + public: + void unsafe_arena_set_allocated_joint_positions( + ::viam::component::arm::v1::JointPositions* joint_positions); + ::viam::component::arm::v1::JointPositions* unsafe_arena_release_joint_positions(); + // bool is_moving = 3 [json_name = "isMoving"]; + void clear_is_moving(); + bool is_moving() const; + void set_is_moving(bool value); + private: + bool _internal_is_moving() const; + void _internal_set_is_moving(bool value); public: - // @@protoc_insertion_point(class_scope:viam.component.arm.v1.GetJointPositionsResponse) + + // @@protoc_insertion_point(class_scope:viam.component.arm.v1.Status) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::viam::component::arm::v1::JointPositions* positions_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::viam::common::v1::Pose* end_position_; + ::viam::component::arm::v1::JointPositions* joint_positions_; + bool is_moving_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2farm_2fv1_2farm_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetJointPositionsRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.arm.v1.GetJointPositionsRequest) */ { +class IsMovingRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.arm.v1.IsMovingRequest) */ { public: - inline GetJointPositionsRequest() : GetJointPositionsRequest(nullptr) {} - ~GetJointPositionsRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetJointPositionsRequest(::google::protobuf::internal::ConstantInitialized); + inline IsMovingRequest() : IsMovingRequest(nullptr) {} + ~IsMovingRequest() override; + explicit PROTOBUF_CONSTEXPR IsMovingRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetJointPositionsRequest(const GetJointPositionsRequest& from) - : GetJointPositionsRequest(nullptr, from) {} - GetJointPositionsRequest(GetJointPositionsRequest&& from) noexcept - : GetJointPositionsRequest() { + IsMovingRequest(const IsMovingRequest& from); + IsMovingRequest(IsMovingRequest&& from) noexcept + : IsMovingRequest() { *this = ::std::move(from); } - inline GetJointPositionsRequest& operator=(const GetJointPositionsRequest& from) { + inline IsMovingRequest& operator=(const IsMovingRequest& from) { CopyFrom(from); return *this; } - inline GetJointPositionsRequest& operator=(GetJointPositionsRequest&& from) noexcept { + inline IsMovingRequest& operator=(IsMovingRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2697,99 +2360,88 @@ class GetJointPositionsRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetJointPositionsRequest& default_instance() { + static const IsMovingRequest& default_instance() { return *internal_default_instance(); } - static inline const GetJointPositionsRequest* internal_default_instance() { - return reinterpret_cast( - &_GetJointPositionsRequest_default_instance_); + static inline const IsMovingRequest* internal_default_instance() { + return reinterpret_cast( + &_IsMovingRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 3; + 14; - friend void swap(GetJointPositionsRequest& a, GetJointPositionsRequest& b) { + friend void swap(IsMovingRequest& a, IsMovingRequest& b) { a.Swap(&b); } - inline void Swap(GetJointPositionsRequest* other) { + inline void Swap(IsMovingRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetJointPositionsRequest* other) { + void UnsafeArenaSwap(IsMovingRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetJointPositionsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetJointPositionsRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetJointPositionsRequest& from) { - GetJointPositionsRequest::MergeImpl(*this, from); + IsMovingRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const IsMovingRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const IsMovingRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetJointPositionsRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(IsMovingRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.arm.v1.GetJointPositionsRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.arm.v1.IsMovingRequest"; } protected: - explicit GetJointPositionsRequest(::google::protobuf::Arena* arena); - GetJointPositionsRequest(::google::protobuf::Arena* arena, const GetJointPositionsRequest& from); + explicit IsMovingRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -2797,96 +2449,56 @@ class GetJointPositionsRequest final : enum : int { kNameFieldNumber = 1, - kExtraFieldNumber = 99, }; // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + 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; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - - public: - // @@protoc_insertion_point(class_scope:viam.component.arm.v1.GetJointPositionsRequest) + // @@protoc_insertion_point(class_scope:viam.component.arm.v1.IsMovingRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 2, 1, - 59, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2farm_2fv1_2farm_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetEndPositionResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.arm.v1.GetEndPositionResponse) */ { +class IsMovingResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.arm.v1.IsMovingResponse) */ { public: - inline GetEndPositionResponse() : GetEndPositionResponse(nullptr) {} - ~GetEndPositionResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetEndPositionResponse(::google::protobuf::internal::ConstantInitialized); + inline IsMovingResponse() : IsMovingResponse(nullptr) {} + ~IsMovingResponse() override; + explicit PROTOBUF_CONSTEXPR IsMovingResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetEndPositionResponse(const GetEndPositionResponse& from) - : GetEndPositionResponse(nullptr, from) {} - GetEndPositionResponse(GetEndPositionResponse&& from) noexcept - : GetEndPositionResponse() { + IsMovingResponse(const IsMovingResponse& from); + IsMovingResponse(IsMovingResponse&& from) noexcept + : IsMovingResponse() { *this = ::std::move(from); } - inline GetEndPositionResponse& operator=(const GetEndPositionResponse& from) { + inline IsMovingResponse& operator=(const IsMovingResponse& from) { CopyFrom(from); return *this; } - inline GetEndPositionResponse& operator=(GetEndPositionResponse&& from) noexcept { + inline IsMovingResponse& operator=(IsMovingResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2896,178 +2508,140 @@ class GetEndPositionResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetEndPositionResponse& default_instance() { + static const IsMovingResponse& default_instance() { return *internal_default_instance(); } - static inline const GetEndPositionResponse* internal_default_instance() { - return reinterpret_cast( - &_GetEndPositionResponse_default_instance_); + static inline const IsMovingResponse* internal_default_instance() { + return reinterpret_cast( + &_IsMovingResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 1; + 15; - friend void swap(GetEndPositionResponse& a, GetEndPositionResponse& b) { + friend void swap(IsMovingResponse& a, IsMovingResponse& b) { a.Swap(&b); } - inline void Swap(GetEndPositionResponse* other) { + inline void Swap(IsMovingResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetEndPositionResponse* other) { + void UnsafeArenaSwap(IsMovingResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetEndPositionResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetEndPositionResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetEndPositionResponse& from) { - GetEndPositionResponse::MergeImpl(*this, from); + IsMovingResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const IsMovingResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const IsMovingResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetEndPositionResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(IsMovingResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.arm.v1.GetEndPositionResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.arm.v1.IsMovingResponse"; } protected: - explicit GetEndPositionResponse(::google::protobuf::Arena* arena); - GetEndPositionResponse(::google::protobuf::Arena* arena, const GetEndPositionResponse& from); + explicit IsMovingResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kPoseFieldNumber = 1, + kIsMovingFieldNumber = 1, }; - // .viam.common.v1.Pose pose = 1 [json_name = "pose"]; - bool has_pose() const; - void clear_pose() ; - const ::viam::common::v1::Pose& pose() const; - PROTOBUF_NODISCARD ::viam::common::v1::Pose* release_pose(); - ::viam::common::v1::Pose* mutable_pose(); - void set_allocated_pose(::viam::common::v1::Pose* value); - void unsafe_arena_set_allocated_pose(::viam::common::v1::Pose* value); - ::viam::common::v1::Pose* unsafe_arena_release_pose(); - + // bool is_moving = 1 [json_name = "isMoving"]; + void clear_is_moving(); + bool is_moving() const; + void set_is_moving(bool value); private: - const ::viam::common::v1::Pose& _internal_pose() const; - ::viam::common::v1::Pose* _internal_mutable_pose(); - + bool _internal_is_moving() const; + void _internal_set_is_moving(bool value); public: - // @@protoc_insertion_point(class_scope:viam.component.arm.v1.GetEndPositionResponse) + + // @@protoc_insertion_point(class_scope:viam.component.arm.v1.IsMovingResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::viam::common::v1::Pose* pose_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + bool is_moving_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2farm_2fv1_2farm_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetEndPositionRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.arm.v1.GetEndPositionRequest) */ { +class MoveOptions final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.arm.v1.MoveOptions) */ { public: - inline GetEndPositionRequest() : GetEndPositionRequest(nullptr) {} - ~GetEndPositionRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetEndPositionRequest(::google::protobuf::internal::ConstantInitialized); + inline MoveOptions() : MoveOptions(nullptr) {} + ~MoveOptions() override; + explicit PROTOBUF_CONSTEXPR MoveOptions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetEndPositionRequest(const GetEndPositionRequest& from) - : GetEndPositionRequest(nullptr, from) {} - GetEndPositionRequest(GetEndPositionRequest&& from) noexcept - : GetEndPositionRequest() { + MoveOptions(const MoveOptions& from); + MoveOptions(MoveOptions&& from) noexcept + : MoveOptions() { *this = ::std::move(from); } - inline GetEndPositionRequest& operator=(const GetEndPositionRequest& from) { + inline MoveOptions& operator=(const MoveOptions& from) { CopyFrom(from); return *this; } - inline GetEndPositionRequest& operator=(GetEndPositionRequest&& from) noexcept { + inline MoveOptions& operator=(MoveOptions&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3077,329 +2651,279 @@ class GetEndPositionRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetEndPositionRequest& default_instance() { + static const MoveOptions& default_instance() { return *internal_default_instance(); } - static inline const GetEndPositionRequest* internal_default_instance() { - return reinterpret_cast( - &_GetEndPositionRequest_default_instance_); + static inline const MoveOptions* internal_default_instance() { + return reinterpret_cast( + &_MoveOptions_default_instance_); } static constexpr int kIndexInFileMessages = - 0; + 16; - friend void swap(GetEndPositionRequest& a, GetEndPositionRequest& b) { + friend void swap(MoveOptions& a, MoveOptions& b) { a.Swap(&b); } - inline void Swap(GetEndPositionRequest* other) { + inline void Swap(MoveOptions* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetEndPositionRequest* other) { + void UnsafeArenaSwap(MoveOptions* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetEndPositionRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetEndPositionRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetEndPositionRequest& from) { - GetEndPositionRequest::MergeImpl(*this, from); + MoveOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MoveOptions& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MoveOptions& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetEndPositionRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(MoveOptions* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.arm.v1.GetEndPositionRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.arm.v1.MoveOptions"; } protected: - explicit GetEndPositionRequest(::google::protobuf::Arena* arena); - GetEndPositionRequest(::google::protobuf::Arena* arena, const GetEndPositionRequest& from); + explicit MoveOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() 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(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + enum : int { + kMaxVelDegsPerSecFieldNumber = 1, + kMaxAccDegsPerSec2FieldNumber = 2, + }; + // optional double max_vel_degs_per_sec = 1 [json_name = "maxVelDegsPerSec"]; + bool has_max_vel_degs_per_sec() const; private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - + bool _internal_has_max_vel_degs_per_sec() const; public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - + void clear_max_vel_degs_per_sec(); + double max_vel_degs_per_sec() const; + void set_max_vel_degs_per_sec(double value); private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); + double _internal_max_vel_degs_per_sec() const; + void _internal_set_max_vel_degs_per_sec(double value); + public: + // optional double max_acc_degs_per_sec2 = 2 [json_name = "maxAccDegsPerSec2"]; + bool has_max_acc_degs_per_sec2() const; + private: + bool _internal_has_max_acc_degs_per_sec2() const; public: - // @@protoc_insertion_point(class_scope:viam.component.arm.v1.GetEndPositionRequest) + void clear_max_acc_degs_per_sec2(); + double max_acc_degs_per_sec2() const; + void set_max_acc_degs_per_sec2(double value); + private: + double _internal_max_acc_degs_per_sec2() const; + void _internal_set_max_acc_degs_per_sec2(double value); + public: + + // @@protoc_insertion_point(class_scope:viam.component.arm.v1.MoveOptions) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 2, 1, - 56, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + double max_vel_degs_per_sec_; + double max_acc_degs_per_sec2_; friend struct ::TableStruct_component_2farm_2fv1_2farm_2eproto; }; - // =================================================================== - - // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ -// ------------------------------------------------------------------- - // GetEndPositionRequest // string name = 1 [json_name = "name"]; inline void GetEndPositionRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& GetEndPositionRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetEndPositionRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.arm.v1.GetEndPositionRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetEndPositionRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetEndPositionRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.arm.v1.GetEndPositionRequest.name) } -inline std::string* GetEndPositionRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetEndPositionRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.arm.v1.GetEndPositionRequest.name) return _s; } inline const std::string& GetEndPositionRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void GetEndPositionRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* GetEndPositionRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* GetEndPositionRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.arm.v1.GetEndPositionRequest.name) - return _impl_.name_.Release(); -} -inline void GetEndPositionRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void GetEndPositionRequest::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.arm.v1.GetEndPositionRequest.name) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetEndPositionRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool GetEndPositionRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& GetEndPositionRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetEndPositionRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& GetEndPositionRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetEndPositionRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.arm.v1.GetEndPositionRequest.extra) return _internal_extra(); } -inline void GetEndPositionRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void GetEndPositionRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.arm.v1.GetEndPositionRequest.extra) } -inline ::google::protobuf::Struct* GetEndPositionRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetEndPositionRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* GetEndPositionRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetEndPositionRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.arm.v1.GetEndPositionRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* GetEndPositionRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetEndPositionRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* GetEndPositionRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetEndPositionRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.arm.v1.GetEndPositionRequest.extra) return _msg; } -inline void GetEndPositionRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetEndPositionRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.arm.v1.GetEndPositionRequest.extra) } @@ -3408,93 +2932,87 @@ inline void GetEndPositionRequest::set_allocated_extra(::google::protobuf::Struc // GetEndPositionResponse // .viam.common.v1.Pose pose = 1 [json_name = "pose"]; +inline bool GetEndPositionResponse::_internal_has_pose() const { + return this != internal_default_instance() && pose_ != nullptr; +} inline bool GetEndPositionResponse::has_pose() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.pose_ != nullptr); - return value; + return _internal_has_pose(); } inline const ::viam::common::v1::Pose& GetEndPositionResponse::_internal_pose() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::common::v1::Pose* p = _impl_.pose_; - return p != nullptr ? *p : reinterpret_cast(::viam::common::v1::_Pose_default_instance_); + const ::viam::common::v1::Pose* p = pose_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_Pose_default_instance_); } -inline const ::viam::common::v1::Pose& GetEndPositionResponse::pose() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::Pose& GetEndPositionResponse::pose() const { // @@protoc_insertion_point(field_get:viam.component.arm.v1.GetEndPositionResponse.pose) return _internal_pose(); } -inline void GetEndPositionResponse::unsafe_arena_set_allocated_pose(::viam::common::v1::Pose* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.pose_); +inline void GetEndPositionResponse::unsafe_arena_set_allocated_pose( + ::viam::common::v1::Pose* pose) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(pose_); } - _impl_.pose_ = reinterpret_cast<::viam::common::v1::Pose*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + pose_ = pose; + if (pose) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.arm.v1.GetEndPositionResponse.pose) } inline ::viam::common::v1::Pose* GetEndPositionResponse::release_pose() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::Pose* released = _impl_.pose_; - _impl_.pose_ = nullptr; + + ::viam::common::v1::Pose* temp = pose_; + pose_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::common::v1::Pose* GetEndPositionResponse::unsafe_arena_release_pose() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.arm.v1.GetEndPositionResponse.pose) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::Pose* temp = _impl_.pose_; - _impl_.pose_ = nullptr; + + ::viam::common::v1::Pose* temp = pose_; + pose_ = nullptr; return temp; } inline ::viam::common::v1::Pose* GetEndPositionResponse::_internal_mutable_pose() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.pose_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::Pose>(GetArena()); - _impl_.pose_ = reinterpret_cast<::viam::common::v1::Pose*>(p); + + if (pose_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::Pose>(GetArenaForAllocation()); + pose_ = p; } - return _impl_.pose_; + return pose_; } -inline ::viam::common::v1::Pose* GetEndPositionResponse::mutable_pose() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::Pose* GetEndPositionResponse::mutable_pose() { ::viam::common::v1::Pose* _msg = _internal_mutable_pose(); // @@protoc_insertion_point(field_mutable:viam.component.arm.v1.GetEndPositionResponse.pose) return _msg; } -inline void GetEndPositionResponse::set_allocated_pose(::viam::common::v1::Pose* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetEndPositionResponse::set_allocated_pose(::viam::common::v1::Pose* pose) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.pose_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(pose_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (pose) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(pose)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + pose = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, pose, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.pose_ = reinterpret_cast<::viam::common::v1::Pose*>(value); + pose_ = pose; // @@protoc_insertion_point(field_set_allocated:viam.component.arm.v1.GetEndPositionResponse.pose) } @@ -3504,48 +3022,50 @@ inline void GetEndPositionResponse::set_allocated_pose(::viam::common::v1::Pose* // repeated double values = 1 [json_name = "values"]; inline int JointPositions::_internal_values_size() const { - return _internal_values().size(); + return values_.size(); } inline int JointPositions::values_size() const { return _internal_values_size(); } inline void JointPositions::clear_values() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.values_.Clear(); + values_.Clear(); +} +inline double JointPositions::_internal_values(int index) const { + return values_.Get(index); } inline double JointPositions::values(int index) const { // @@protoc_insertion_point(field_get:viam.component.arm.v1.JointPositions.values) - return _internal_values().Get(index); + return _internal_values(index); } inline void JointPositions::set_values(int index, double value) { - _internal_mutable_values()->Set(index, value); + values_.Set(index, value); // @@protoc_insertion_point(field_set:viam.component.arm.v1.JointPositions.values) } +inline void JointPositions::_internal_add_values(double value) { + values_.Add(value); +} inline void JointPositions::add_values(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_values()->Add(value); + _internal_add_values(value); // @@protoc_insertion_point(field_add:viam.component.arm.v1.JointPositions.values) } -inline const ::google::protobuf::RepeatedField& JointPositions::values() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& +JointPositions::_internal_values() const { + return values_; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& +JointPositions::values() const { // @@protoc_insertion_point(field_list:viam.component.arm.v1.JointPositions.values) return _internal_values(); } -inline ::google::protobuf::RepeatedField* JointPositions::mutable_values() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* +JointPositions::_internal_mutable_values() { + return &values_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* +JointPositions::mutable_values() { // @@protoc_insertion_point(field_mutable_list:viam.component.arm.v1.JointPositions.values) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _internal_mutable_values(); } -inline const ::google::protobuf::RepeatedField& JointPositions::_internal_values() - const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.values_; -} -inline ::google::protobuf::RepeatedField* JointPositions::_internal_mutable_values() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.values_; -} // ------------------------------------------------------------------- @@ -3553,145 +3073,136 @@ inline ::google::protobuf::RepeatedField* JointPositions::_internal_muta // string name = 1 [json_name = "name"]; inline void GetJointPositionsRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& GetJointPositionsRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetJointPositionsRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.arm.v1.GetJointPositionsRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetJointPositionsRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetJointPositionsRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.arm.v1.GetJointPositionsRequest.name) } -inline std::string* GetJointPositionsRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetJointPositionsRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.arm.v1.GetJointPositionsRequest.name) return _s; } inline const std::string& GetJointPositionsRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void GetJointPositionsRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* GetJointPositionsRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* GetJointPositionsRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.arm.v1.GetJointPositionsRequest.name) - return _impl_.name_.Release(); -} -inline void GetJointPositionsRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void GetJointPositionsRequest::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.arm.v1.GetJointPositionsRequest.name) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetJointPositionsRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool GetJointPositionsRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& GetJointPositionsRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetJointPositionsRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& GetJointPositionsRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetJointPositionsRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.arm.v1.GetJointPositionsRequest.extra) return _internal_extra(); } -inline void GetJointPositionsRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void GetJointPositionsRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.arm.v1.GetJointPositionsRequest.extra) } -inline ::google::protobuf::Struct* GetJointPositionsRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetJointPositionsRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* GetJointPositionsRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetJointPositionsRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.arm.v1.GetJointPositionsRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* GetJointPositionsRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetJointPositionsRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* GetJointPositionsRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetJointPositionsRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.arm.v1.GetJointPositionsRequest.extra) return _msg; } -inline void GetJointPositionsRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetJointPositionsRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.arm.v1.GetJointPositionsRequest.extra) } @@ -3700,98 +3211,92 @@ inline void GetJointPositionsRequest::set_allocated_extra(::google::protobuf::St // GetJointPositionsResponse // .viam.component.arm.v1.JointPositions positions = 1 [json_name = "positions"]; +inline bool GetJointPositionsResponse::_internal_has_positions() const { + return this != internal_default_instance() && positions_ != nullptr; +} inline bool GetJointPositionsResponse::has_positions() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.positions_ != nullptr); - return value; + return _internal_has_positions(); } inline void GetJointPositionsResponse::clear_positions() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.positions_ != nullptr) _impl_.positions_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && positions_ != nullptr) { + delete positions_; + } + positions_ = nullptr; } inline const ::viam::component::arm::v1::JointPositions& GetJointPositionsResponse::_internal_positions() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::component::arm::v1::JointPositions* p = _impl_.positions_; - return p != nullptr ? *p : reinterpret_cast(::viam::component::arm::v1::_JointPositions_default_instance_); + const ::viam::component::arm::v1::JointPositions* p = positions_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::component::arm::v1::_JointPositions_default_instance_); } -inline const ::viam::component::arm::v1::JointPositions& GetJointPositionsResponse::positions() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::component::arm::v1::JointPositions& GetJointPositionsResponse::positions() const { // @@protoc_insertion_point(field_get:viam.component.arm.v1.GetJointPositionsResponse.positions) return _internal_positions(); } -inline void GetJointPositionsResponse::unsafe_arena_set_allocated_positions(::viam::component::arm::v1::JointPositions* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.positions_); +inline void GetJointPositionsResponse::unsafe_arena_set_allocated_positions( + ::viam::component::arm::v1::JointPositions* positions) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(positions_); } - _impl_.positions_ = reinterpret_cast<::viam::component::arm::v1::JointPositions*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + positions_ = positions; + if (positions) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.arm.v1.GetJointPositionsResponse.positions) } inline ::viam::component::arm::v1::JointPositions* GetJointPositionsResponse::release_positions() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::component::arm::v1::JointPositions* released = _impl_.positions_; - _impl_.positions_ = nullptr; + + ::viam::component::arm::v1::JointPositions* temp = positions_; + positions_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::component::arm::v1::JointPositions* GetJointPositionsResponse::unsafe_arena_release_positions() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.arm.v1.GetJointPositionsResponse.positions) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::component::arm::v1::JointPositions* temp = _impl_.positions_; - _impl_.positions_ = nullptr; + + ::viam::component::arm::v1::JointPositions* temp = positions_; + positions_ = nullptr; return temp; } inline ::viam::component::arm::v1::JointPositions* GetJointPositionsResponse::_internal_mutable_positions() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.positions_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::component::arm::v1::JointPositions>(GetArena()); - _impl_.positions_ = reinterpret_cast<::viam::component::arm::v1::JointPositions*>(p); + + if (positions_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::component::arm::v1::JointPositions>(GetArenaForAllocation()); + positions_ = p; } - return _impl_.positions_; + return positions_; } -inline ::viam::component::arm::v1::JointPositions* GetJointPositionsResponse::mutable_positions() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::component::arm::v1::JointPositions* GetJointPositionsResponse::mutable_positions() { ::viam::component::arm::v1::JointPositions* _msg = _internal_mutable_positions(); // @@protoc_insertion_point(field_mutable:viam.component.arm.v1.GetJointPositionsResponse.positions) return _msg; } -inline void GetJointPositionsResponse::set_allocated_positions(::viam::component::arm::v1::JointPositions* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetJointPositionsResponse::set_allocated_positions(::viam::component::arm::v1::JointPositions* positions) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::component::arm::v1::JointPositions*>(_impl_.positions_); + delete positions_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::component::arm::v1::JointPositions*>(value)->GetArena(); + if (positions) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(positions); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + positions = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, positions, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.positions_ = reinterpret_cast<::viam::component::arm::v1::JointPositions*>(value); + positions_ = positions; // @@protoc_insertion_point(field_set_allocated:viam.component.arm.v1.GetJointPositionsResponse.positions) } @@ -3801,236 +3306,221 @@ inline void GetJointPositionsResponse::set_allocated_positions(::viam::component // string name = 1 [json_name = "name"]; inline void MoveToPositionRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& MoveToPositionRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& MoveToPositionRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.arm.v1.MoveToPositionRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void MoveToPositionRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void MoveToPositionRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.arm.v1.MoveToPositionRequest.name) } -inline std::string* MoveToPositionRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* MoveToPositionRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.arm.v1.MoveToPositionRequest.name) return _s; } inline const std::string& MoveToPositionRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void MoveToPositionRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* MoveToPositionRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* MoveToPositionRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.arm.v1.MoveToPositionRequest.name) - return _impl_.name_.Release(); -} -inline void MoveToPositionRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void MoveToPositionRequest::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.arm.v1.MoveToPositionRequest.name) } // .viam.common.v1.Pose to = 2 [json_name = "to"]; +inline bool MoveToPositionRequest::_internal_has_to() const { + return this != internal_default_instance() && to_ != nullptr; +} inline bool MoveToPositionRequest::has_to() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.to_ != nullptr); - return value; + return _internal_has_to(); } inline const ::viam::common::v1::Pose& MoveToPositionRequest::_internal_to() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::common::v1::Pose* p = _impl_.to_; - return p != nullptr ? *p : reinterpret_cast(::viam::common::v1::_Pose_default_instance_); + const ::viam::common::v1::Pose* p = to_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_Pose_default_instance_); } -inline const ::viam::common::v1::Pose& MoveToPositionRequest::to() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::Pose& MoveToPositionRequest::to() const { // @@protoc_insertion_point(field_get:viam.component.arm.v1.MoveToPositionRequest.to) return _internal_to(); } -inline void MoveToPositionRequest::unsafe_arena_set_allocated_to(::viam::common::v1::Pose* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.to_); +inline void MoveToPositionRequest::unsafe_arena_set_allocated_to( + ::viam::common::v1::Pose* to) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(to_); } - _impl_.to_ = reinterpret_cast<::viam::common::v1::Pose*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + to_ = to; + if (to) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.arm.v1.MoveToPositionRequest.to) } inline ::viam::common::v1::Pose* MoveToPositionRequest::release_to() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::Pose* released = _impl_.to_; - _impl_.to_ = nullptr; + + ::viam::common::v1::Pose* temp = to_; + to_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::common::v1::Pose* MoveToPositionRequest::unsafe_arena_release_to() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.arm.v1.MoveToPositionRequest.to) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::Pose* temp = _impl_.to_; - _impl_.to_ = nullptr; + + ::viam::common::v1::Pose* temp = to_; + to_ = nullptr; return temp; } inline ::viam::common::v1::Pose* MoveToPositionRequest::_internal_mutable_to() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.to_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::Pose>(GetArena()); - _impl_.to_ = reinterpret_cast<::viam::common::v1::Pose*>(p); + + if (to_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::Pose>(GetArenaForAllocation()); + to_ = p; } - return _impl_.to_; + return to_; } -inline ::viam::common::v1::Pose* MoveToPositionRequest::mutable_to() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::Pose* MoveToPositionRequest::mutable_to() { ::viam::common::v1::Pose* _msg = _internal_mutable_to(); // @@protoc_insertion_point(field_mutable:viam.component.arm.v1.MoveToPositionRequest.to) return _msg; } -inline void MoveToPositionRequest::set_allocated_to(::viam::common::v1::Pose* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void MoveToPositionRequest::set_allocated_to(::viam::common::v1::Pose* to) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.to_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(to_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (to) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(to)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + to = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, to, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.to_ = reinterpret_cast<::viam::common::v1::Pose*>(value); + to_ = to; // @@protoc_insertion_point(field_set_allocated:viam.component.arm.v1.MoveToPositionRequest.to) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool MoveToPositionRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool MoveToPositionRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& MoveToPositionRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& MoveToPositionRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& MoveToPositionRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& MoveToPositionRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.arm.v1.MoveToPositionRequest.extra) return _internal_extra(); } -inline void MoveToPositionRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void MoveToPositionRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.arm.v1.MoveToPositionRequest.extra) } -inline ::google::protobuf::Struct* MoveToPositionRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveToPositionRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* MoveToPositionRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveToPositionRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.arm.v1.MoveToPositionRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* MoveToPositionRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveToPositionRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* MoveToPositionRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveToPositionRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.arm.v1.MoveToPositionRequest.extra) return _msg; } -inline void MoveToPositionRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void MoveToPositionRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.arm.v1.MoveToPositionRequest.extra) } @@ -4044,241 +3534,226 @@ inline void MoveToPositionRequest::set_allocated_extra(::google::protobuf::Struc // string name = 1 [json_name = "name"]; inline void MoveToJointPositionsRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& MoveToJointPositionsRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& MoveToJointPositionsRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.arm.v1.MoveToJointPositionsRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void MoveToJointPositionsRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void MoveToJointPositionsRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.arm.v1.MoveToJointPositionsRequest.name) } -inline std::string* MoveToJointPositionsRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* MoveToJointPositionsRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.arm.v1.MoveToJointPositionsRequest.name) return _s; } inline const std::string& MoveToJointPositionsRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void MoveToJointPositionsRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* MoveToJointPositionsRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* MoveToJointPositionsRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.arm.v1.MoveToJointPositionsRequest.name) - return _impl_.name_.Release(); -} -inline void MoveToJointPositionsRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void MoveToJointPositionsRequest::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.arm.v1.MoveToJointPositionsRequest.name) } // .viam.component.arm.v1.JointPositions positions = 2 [json_name = "positions"]; +inline bool MoveToJointPositionsRequest::_internal_has_positions() const { + return this != internal_default_instance() && positions_ != nullptr; +} inline bool MoveToJointPositionsRequest::has_positions() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.positions_ != nullptr); - return value; + return _internal_has_positions(); } inline void MoveToJointPositionsRequest::clear_positions() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.positions_ != nullptr) _impl_.positions_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && positions_ != nullptr) { + delete positions_; + } + positions_ = nullptr; } inline const ::viam::component::arm::v1::JointPositions& MoveToJointPositionsRequest::_internal_positions() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::component::arm::v1::JointPositions* p = _impl_.positions_; - return p != nullptr ? *p : reinterpret_cast(::viam::component::arm::v1::_JointPositions_default_instance_); + const ::viam::component::arm::v1::JointPositions* p = positions_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::component::arm::v1::_JointPositions_default_instance_); } -inline const ::viam::component::arm::v1::JointPositions& MoveToJointPositionsRequest::positions() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::component::arm::v1::JointPositions& MoveToJointPositionsRequest::positions() const { // @@protoc_insertion_point(field_get:viam.component.arm.v1.MoveToJointPositionsRequest.positions) return _internal_positions(); } -inline void MoveToJointPositionsRequest::unsafe_arena_set_allocated_positions(::viam::component::arm::v1::JointPositions* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.positions_); +inline void MoveToJointPositionsRequest::unsafe_arena_set_allocated_positions( + ::viam::component::arm::v1::JointPositions* positions) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(positions_); } - _impl_.positions_ = reinterpret_cast<::viam::component::arm::v1::JointPositions*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + positions_ = positions; + if (positions) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.arm.v1.MoveToJointPositionsRequest.positions) } inline ::viam::component::arm::v1::JointPositions* MoveToJointPositionsRequest::release_positions() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::component::arm::v1::JointPositions* released = _impl_.positions_; - _impl_.positions_ = nullptr; + + ::viam::component::arm::v1::JointPositions* temp = positions_; + positions_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::component::arm::v1::JointPositions* MoveToJointPositionsRequest::unsafe_arena_release_positions() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.arm.v1.MoveToJointPositionsRequest.positions) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::component::arm::v1::JointPositions* temp = _impl_.positions_; - _impl_.positions_ = nullptr; + + ::viam::component::arm::v1::JointPositions* temp = positions_; + positions_ = nullptr; return temp; } inline ::viam::component::arm::v1::JointPositions* MoveToJointPositionsRequest::_internal_mutable_positions() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.positions_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::component::arm::v1::JointPositions>(GetArena()); - _impl_.positions_ = reinterpret_cast<::viam::component::arm::v1::JointPositions*>(p); + + if (positions_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::component::arm::v1::JointPositions>(GetArenaForAllocation()); + positions_ = p; } - return _impl_.positions_; + return positions_; } -inline ::viam::component::arm::v1::JointPositions* MoveToJointPositionsRequest::mutable_positions() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::component::arm::v1::JointPositions* MoveToJointPositionsRequest::mutable_positions() { ::viam::component::arm::v1::JointPositions* _msg = _internal_mutable_positions(); // @@protoc_insertion_point(field_mutable:viam.component.arm.v1.MoveToJointPositionsRequest.positions) return _msg; } -inline void MoveToJointPositionsRequest::set_allocated_positions(::viam::component::arm::v1::JointPositions* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void MoveToJointPositionsRequest::set_allocated_positions(::viam::component::arm::v1::JointPositions* positions) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::component::arm::v1::JointPositions*>(_impl_.positions_); + delete positions_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::component::arm::v1::JointPositions*>(value)->GetArena(); + if (positions) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(positions); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + positions = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, positions, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.positions_ = reinterpret_cast<::viam::component::arm::v1::JointPositions*>(value); + positions_ = positions; // @@protoc_insertion_point(field_set_allocated:viam.component.arm.v1.MoveToJointPositionsRequest.positions) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool MoveToJointPositionsRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool MoveToJointPositionsRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& MoveToJointPositionsRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& MoveToJointPositionsRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& MoveToJointPositionsRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& MoveToJointPositionsRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.arm.v1.MoveToJointPositionsRequest.extra) return _internal_extra(); } -inline void MoveToJointPositionsRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void MoveToJointPositionsRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.arm.v1.MoveToJointPositionsRequest.extra) } -inline ::google::protobuf::Struct* MoveToJointPositionsRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveToJointPositionsRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* MoveToJointPositionsRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveToJointPositionsRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.arm.v1.MoveToJointPositionsRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* MoveToJointPositionsRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveToJointPositionsRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* MoveToJointPositionsRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveToJointPositionsRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.arm.v1.MoveToJointPositionsRequest.extra) return _msg; } -inline void MoveToJointPositionsRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void MoveToJointPositionsRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.arm.v1.MoveToJointPositionsRequest.extra) } @@ -4292,290 +3767,266 @@ inline void MoveToJointPositionsRequest::set_allocated_extra(::google::protobuf: // string name = 1 [json_name = "name"]; inline void MoveThroughJointPositionsRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& MoveThroughJointPositionsRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& MoveThroughJointPositionsRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.arm.v1.MoveThroughJointPositionsRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void MoveThroughJointPositionsRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void MoveThroughJointPositionsRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.arm.v1.MoveThroughJointPositionsRequest.name) } -inline std::string* MoveThroughJointPositionsRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* MoveThroughJointPositionsRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.arm.v1.MoveThroughJointPositionsRequest.name) return _s; } inline const std::string& MoveThroughJointPositionsRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void MoveThroughJointPositionsRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* MoveThroughJointPositionsRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* MoveThroughJointPositionsRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.arm.v1.MoveThroughJointPositionsRequest.name) - return _impl_.name_.Release(); -} -inline void MoveThroughJointPositionsRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void MoveThroughJointPositionsRequest::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.arm.v1.MoveThroughJointPositionsRequest.name) } // repeated .viam.component.arm.v1.JointPositions positions = 2 [json_name = "positions"]; inline int MoveThroughJointPositionsRequest::_internal_positions_size() const { - return _internal_positions().size(); + return positions_.size(); } inline int MoveThroughJointPositionsRequest::positions_size() const { return _internal_positions_size(); } inline void MoveThroughJointPositionsRequest::clear_positions() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.positions_.Clear(); + positions_.Clear(); } -inline ::viam::component::arm::v1::JointPositions* MoveThroughJointPositionsRequest::mutable_positions(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::component::arm::v1::JointPositions* MoveThroughJointPositionsRequest::mutable_positions(int index) { // @@protoc_insertion_point(field_mutable:viam.component.arm.v1.MoveThroughJointPositionsRequest.positions) - return _internal_mutable_positions()->Mutable(index); + return positions_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::component::arm::v1::JointPositions>* MoveThroughJointPositionsRequest::mutable_positions() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::arm::v1::JointPositions >* +MoveThroughJointPositionsRequest::mutable_positions() { // @@protoc_insertion_point(field_mutable_list:viam.component.arm.v1.MoveThroughJointPositionsRequest.positions) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_positions(); + return &positions_; } -inline const ::viam::component::arm::v1::JointPositions& MoveThroughJointPositionsRequest::positions(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::component::arm::v1::JointPositions& MoveThroughJointPositionsRequest::_internal_positions(int index) const { + return positions_.Get(index); +} +inline const ::viam::component::arm::v1::JointPositions& MoveThroughJointPositionsRequest::positions(int index) const { // @@protoc_insertion_point(field_get:viam.component.arm.v1.MoveThroughJointPositionsRequest.positions) - return _internal_positions().Get(index); + return _internal_positions(index); +} +inline ::viam::component::arm::v1::JointPositions* MoveThroughJointPositionsRequest::_internal_add_positions() { + return positions_.Add(); } -inline ::viam::component::arm::v1::JointPositions* MoveThroughJointPositionsRequest::add_positions() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::component::arm::v1::JointPositions* _add = _internal_mutable_positions()->Add(); +inline ::viam::component::arm::v1::JointPositions* MoveThroughJointPositionsRequest::add_positions() { + ::viam::component::arm::v1::JointPositions* _add = _internal_add_positions(); // @@protoc_insertion_point(field_add:viam.component.arm.v1.MoveThroughJointPositionsRequest.positions) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::component::arm::v1::JointPositions>& MoveThroughJointPositionsRequest::positions() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::arm::v1::JointPositions >& +MoveThroughJointPositionsRequest::positions() const { // @@protoc_insertion_point(field_list:viam.component.arm.v1.MoveThroughJointPositionsRequest.positions) - return _internal_positions(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::component::arm::v1::JointPositions>& -MoveThroughJointPositionsRequest::_internal_positions() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.positions_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::component::arm::v1::JointPositions>* -MoveThroughJointPositionsRequest::_internal_mutable_positions() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.positions_; + return positions_; } // optional .viam.component.arm.v1.MoveOptions options = 3 [json_name = "options"]; -inline bool MoveThroughJointPositionsRequest::has_options() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.options_ != nullptr); +inline bool MoveThroughJointPositionsRequest::_internal_has_options() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || options_ != nullptr); return value; } +inline bool MoveThroughJointPositionsRequest::has_options() const { + return _internal_has_options(); +} inline void MoveThroughJointPositionsRequest::clear_options() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.options_ != nullptr) _impl_.options_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (options_ != nullptr) options_->Clear(); + _has_bits_[0] &= ~0x00000001u; } inline const ::viam::component::arm::v1::MoveOptions& MoveThroughJointPositionsRequest::_internal_options() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::component::arm::v1::MoveOptions* p = _impl_.options_; - return p != nullptr ? *p : reinterpret_cast(::viam::component::arm::v1::_MoveOptions_default_instance_); + const ::viam::component::arm::v1::MoveOptions* p = options_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::component::arm::v1::_MoveOptions_default_instance_); } -inline const ::viam::component::arm::v1::MoveOptions& MoveThroughJointPositionsRequest::options() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::component::arm::v1::MoveOptions& MoveThroughJointPositionsRequest::options() const { // @@protoc_insertion_point(field_get:viam.component.arm.v1.MoveThroughJointPositionsRequest.options) return _internal_options(); } -inline void MoveThroughJointPositionsRequest::unsafe_arena_set_allocated_options(::viam::component::arm::v1::MoveOptions* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.options_); +inline void MoveThroughJointPositionsRequest::unsafe_arena_set_allocated_options( + ::viam::component::arm::v1::MoveOptions* options) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(options_); } - _impl_.options_ = reinterpret_cast<::viam::component::arm::v1::MoveOptions*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + options_ = options; + if (options) { + _has_bits_[0] |= 0x00000001u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; + _has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.arm.v1.MoveThroughJointPositionsRequest.options) } inline ::viam::component::arm::v1::MoveOptions* MoveThroughJointPositionsRequest::release_options() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::component::arm::v1::MoveOptions* released = _impl_.options_; - _impl_.options_ = nullptr; + _has_bits_[0] &= ~0x00000001u; + ::viam::component::arm::v1::MoveOptions* temp = options_; + options_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::component::arm::v1::MoveOptions* MoveThroughJointPositionsRequest::unsafe_arena_release_options() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.arm.v1.MoveThroughJointPositionsRequest.options) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::component::arm::v1::MoveOptions* temp = _impl_.options_; - _impl_.options_ = nullptr; + _has_bits_[0] &= ~0x00000001u; + ::viam::component::arm::v1::MoveOptions* temp = options_; + options_ = nullptr; return temp; } inline ::viam::component::arm::v1::MoveOptions* MoveThroughJointPositionsRequest::_internal_mutable_options() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.options_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::component::arm::v1::MoveOptions>(GetArena()); - _impl_.options_ = reinterpret_cast<::viam::component::arm::v1::MoveOptions*>(p); + _has_bits_[0] |= 0x00000001u; + if (options_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::component::arm::v1::MoveOptions>(GetArenaForAllocation()); + options_ = p; } - return _impl_.options_; + return options_; } -inline ::viam::component::arm::v1::MoveOptions* MoveThroughJointPositionsRequest::mutable_options() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::component::arm::v1::MoveOptions* MoveThroughJointPositionsRequest::mutable_options() { ::viam::component::arm::v1::MoveOptions* _msg = _internal_mutable_options(); // @@protoc_insertion_point(field_mutable:viam.component.arm.v1.MoveThroughJointPositionsRequest.options) return _msg; } -inline void MoveThroughJointPositionsRequest::set_allocated_options(::viam::component::arm::v1::MoveOptions* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void MoveThroughJointPositionsRequest::set_allocated_options(::viam::component::arm::v1::MoveOptions* options) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::component::arm::v1::MoveOptions*>(_impl_.options_); + delete options_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::component::arm::v1::MoveOptions*>(value)->GetArena(); + if (options) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(options); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, options, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + _has_bits_[0] |= 0x00000001u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; + _has_bits_[0] &= ~0x00000001u; } - - _impl_.options_ = reinterpret_cast<::viam::component::arm::v1::MoveOptions*>(value); + options_ = options; // @@protoc_insertion_point(field_set_allocated:viam.component.arm.v1.MoveThroughJointPositionsRequest.options) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool MoveThroughJointPositionsRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool MoveThroughJointPositionsRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& MoveThroughJointPositionsRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& MoveThroughJointPositionsRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& MoveThroughJointPositionsRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& MoveThroughJointPositionsRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.arm.v1.MoveThroughJointPositionsRequest.extra) return _internal_extra(); } -inline void MoveThroughJointPositionsRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void MoveThroughJointPositionsRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.arm.v1.MoveThroughJointPositionsRequest.extra) } -inline ::google::protobuf::Struct* MoveThroughJointPositionsRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveThroughJointPositionsRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* MoveThroughJointPositionsRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveThroughJointPositionsRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.arm.v1.MoveThroughJointPositionsRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* MoveThroughJointPositionsRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveThroughJointPositionsRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* MoveThroughJointPositionsRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveThroughJointPositionsRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.arm.v1.MoveThroughJointPositionsRequest.extra) return _msg; } -inline void MoveThroughJointPositionsRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void MoveThroughJointPositionsRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.arm.v1.MoveThroughJointPositionsRequest.extra) } @@ -4589,145 +4040,136 @@ inline void MoveThroughJointPositionsRequest::set_allocated_extra(::google::prot // string name = 1 [json_name = "name"]; inline void StopRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& StopRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& StopRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.arm.v1.StopRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void StopRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void StopRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.arm.v1.StopRequest.name) } -inline std::string* StopRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* StopRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.arm.v1.StopRequest.name) return _s; } inline const std::string& StopRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void StopRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* StopRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* StopRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.arm.v1.StopRequest.name) - return _impl_.name_.Release(); -} -inline void StopRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void StopRequest::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.arm.v1.StopRequest.name) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool StopRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool StopRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& StopRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& StopRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& StopRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& StopRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.arm.v1.StopRequest.extra) return _internal_extra(); } -inline void StopRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void StopRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.arm.v1.StopRequest.extra) } -inline ::google::protobuf::Struct* StopRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* StopRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* StopRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* StopRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.arm.v1.StopRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* StopRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* StopRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* StopRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* StopRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.arm.v1.StopRequest.extra) return _msg; } -inline void StopRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void StopRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.arm.v1.StopRequest.extra) } @@ -4740,214 +4182,199 @@ inline void StopRequest::set_allocated_extra(::google::protobuf::Struct* value) // Status // .viam.common.v1.Pose end_position = 1 [json_name = "endPosition"]; +inline bool Status::_internal_has_end_position() const { + return this != internal_default_instance() && end_position_ != nullptr; +} inline bool Status::has_end_position() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.end_position_ != nullptr); - return value; + return _internal_has_end_position(); } inline const ::viam::common::v1::Pose& Status::_internal_end_position() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::common::v1::Pose* p = _impl_.end_position_; - return p != nullptr ? *p : reinterpret_cast(::viam::common::v1::_Pose_default_instance_); + const ::viam::common::v1::Pose* p = end_position_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_Pose_default_instance_); } -inline const ::viam::common::v1::Pose& Status::end_position() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::Pose& Status::end_position() const { // @@protoc_insertion_point(field_get:viam.component.arm.v1.Status.end_position) return _internal_end_position(); } -inline void Status::unsafe_arena_set_allocated_end_position(::viam::common::v1::Pose* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.end_position_); +inline void Status::unsafe_arena_set_allocated_end_position( + ::viam::common::v1::Pose* end_position) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(end_position_); } - _impl_.end_position_ = reinterpret_cast<::viam::common::v1::Pose*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + end_position_ = end_position; + if (end_position) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.arm.v1.Status.end_position) } inline ::viam::common::v1::Pose* Status::release_end_position() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::Pose* released = _impl_.end_position_; - _impl_.end_position_ = nullptr; + + ::viam::common::v1::Pose* temp = end_position_; + end_position_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::common::v1::Pose* Status::unsafe_arena_release_end_position() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.arm.v1.Status.end_position) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::Pose* temp = _impl_.end_position_; - _impl_.end_position_ = nullptr; + + ::viam::common::v1::Pose* temp = end_position_; + end_position_ = nullptr; return temp; } inline ::viam::common::v1::Pose* Status::_internal_mutable_end_position() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.end_position_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::Pose>(GetArena()); - _impl_.end_position_ = reinterpret_cast<::viam::common::v1::Pose*>(p); + + if (end_position_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::Pose>(GetArenaForAllocation()); + end_position_ = p; } - return _impl_.end_position_; + return end_position_; } -inline ::viam::common::v1::Pose* Status::mutable_end_position() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::Pose* Status::mutable_end_position() { ::viam::common::v1::Pose* _msg = _internal_mutable_end_position(); // @@protoc_insertion_point(field_mutable:viam.component.arm.v1.Status.end_position) return _msg; } -inline void Status::set_allocated_end_position(::viam::common::v1::Pose* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Status::set_allocated_end_position(::viam::common::v1::Pose* end_position) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.end_position_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(end_position_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (end_position) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(end_position)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + end_position = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, end_position, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.end_position_ = reinterpret_cast<::viam::common::v1::Pose*>(value); + end_position_ = end_position; // @@protoc_insertion_point(field_set_allocated:viam.component.arm.v1.Status.end_position) } // .viam.component.arm.v1.JointPositions joint_positions = 2 [json_name = "jointPositions"]; +inline bool Status::_internal_has_joint_positions() const { + return this != internal_default_instance() && joint_positions_ != nullptr; +} inline bool Status::has_joint_positions() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.joint_positions_ != nullptr); - return value; + return _internal_has_joint_positions(); } inline void Status::clear_joint_positions() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.joint_positions_ != nullptr) _impl_.joint_positions_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && joint_positions_ != nullptr) { + delete joint_positions_; + } + joint_positions_ = nullptr; } inline const ::viam::component::arm::v1::JointPositions& Status::_internal_joint_positions() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::component::arm::v1::JointPositions* p = _impl_.joint_positions_; - return p != nullptr ? *p : reinterpret_cast(::viam::component::arm::v1::_JointPositions_default_instance_); + const ::viam::component::arm::v1::JointPositions* p = joint_positions_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::component::arm::v1::_JointPositions_default_instance_); } -inline const ::viam::component::arm::v1::JointPositions& Status::joint_positions() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::component::arm::v1::JointPositions& Status::joint_positions() const { // @@protoc_insertion_point(field_get:viam.component.arm.v1.Status.joint_positions) return _internal_joint_positions(); } -inline void Status::unsafe_arena_set_allocated_joint_positions(::viam::component::arm::v1::JointPositions* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.joint_positions_); +inline void Status::unsafe_arena_set_allocated_joint_positions( + ::viam::component::arm::v1::JointPositions* joint_positions) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(joint_positions_); } - _impl_.joint_positions_ = reinterpret_cast<::viam::component::arm::v1::JointPositions*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + joint_positions_ = joint_positions; + if (joint_positions) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.arm.v1.Status.joint_positions) } inline ::viam::component::arm::v1::JointPositions* Status::release_joint_positions() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::viam::component::arm::v1::JointPositions* released = _impl_.joint_positions_; - _impl_.joint_positions_ = nullptr; + + ::viam::component::arm::v1::JointPositions* temp = joint_positions_; + joint_positions_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::component::arm::v1::JointPositions* Status::unsafe_arena_release_joint_positions() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.arm.v1.Status.joint_positions) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::viam::component::arm::v1::JointPositions* temp = _impl_.joint_positions_; - _impl_.joint_positions_ = nullptr; + + ::viam::component::arm::v1::JointPositions* temp = joint_positions_; + joint_positions_ = nullptr; return temp; } inline ::viam::component::arm::v1::JointPositions* Status::_internal_mutable_joint_positions() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.joint_positions_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::component::arm::v1::JointPositions>(GetArena()); - _impl_.joint_positions_ = reinterpret_cast<::viam::component::arm::v1::JointPositions*>(p); + + if (joint_positions_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::component::arm::v1::JointPositions>(GetArenaForAllocation()); + joint_positions_ = p; } - return _impl_.joint_positions_; + return joint_positions_; } -inline ::viam::component::arm::v1::JointPositions* Status::mutable_joint_positions() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::component::arm::v1::JointPositions* Status::mutable_joint_positions() { ::viam::component::arm::v1::JointPositions* _msg = _internal_mutable_joint_positions(); // @@protoc_insertion_point(field_mutable:viam.component.arm.v1.Status.joint_positions) return _msg; } -inline void Status::set_allocated_joint_positions(::viam::component::arm::v1::JointPositions* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Status::set_allocated_joint_positions(::viam::component::arm::v1::JointPositions* joint_positions) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::component::arm::v1::JointPositions*>(_impl_.joint_positions_); + delete joint_positions_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::component::arm::v1::JointPositions*>(value)->GetArena(); + if (joint_positions) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(joint_positions); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + joint_positions = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, joint_positions, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.joint_positions_ = reinterpret_cast<::viam::component::arm::v1::JointPositions*>(value); + joint_positions_ = joint_positions; // @@protoc_insertion_point(field_set_allocated:viam.component.arm.v1.Status.joint_positions) } // bool is_moving = 3 [json_name = "isMoving"]; inline void Status::clear_is_moving() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.is_moving_ = false; + is_moving_ = false; +} +inline bool Status::_internal_is_moving() const { + return is_moving_; } inline bool Status::is_moving() const { // @@protoc_insertion_point(field_get:viam.component.arm.v1.Status.is_moving) return _internal_is_moving(); } +inline void Status::_internal_set_is_moving(bool value) { + + is_moving_ = value; +} inline void Status::set_is_moving(bool value) { _internal_set_is_moving(value); // @@protoc_insertion_point(field_set:viam.component.arm.v1.Status.is_moving) } -inline bool Status::_internal_is_moving() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.is_moving_; -} -inline void Status::_internal_set_is_moving(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.is_moving_ = value; -} // ------------------------------------------------------------------- @@ -4955,54 +4382,51 @@ inline void Status::_internal_set_is_moving(bool value) { // string name = 1 [json_name = "name"]; inline void IsMovingRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& IsMovingRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& IsMovingRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.arm.v1.IsMovingRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void IsMovingRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void IsMovingRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.arm.v1.IsMovingRequest.name) } -inline std::string* IsMovingRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* IsMovingRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.arm.v1.IsMovingRequest.name) return _s; } inline const std::string& IsMovingRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void IsMovingRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* IsMovingRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* IsMovingRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.arm.v1.IsMovingRequest.name) - return _impl_.name_.Release(); -} -inline void IsMovingRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void IsMovingRequest::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.arm.v1.IsMovingRequest.name) } @@ -5012,100 +4436,128 @@ inline void IsMovingRequest::set_allocated_name(std::string* value) { // bool is_moving = 1 [json_name = "isMoving"]; inline void IsMovingResponse::clear_is_moving() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.is_moving_ = false; + is_moving_ = false; +} +inline bool IsMovingResponse::_internal_is_moving() const { + return is_moving_; } inline bool IsMovingResponse::is_moving() const { // @@protoc_insertion_point(field_get:viam.component.arm.v1.IsMovingResponse.is_moving) return _internal_is_moving(); } +inline void IsMovingResponse::_internal_set_is_moving(bool value) { + + is_moving_ = value; +} inline void IsMovingResponse::set_is_moving(bool value) { _internal_set_is_moving(value); // @@protoc_insertion_point(field_set:viam.component.arm.v1.IsMovingResponse.is_moving) } -inline bool IsMovingResponse::_internal_is_moving() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.is_moving_; -} -inline void IsMovingResponse::_internal_set_is_moving(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.is_moving_ = value; -} // ------------------------------------------------------------------- // MoveOptions // optional double max_vel_degs_per_sec = 1 [json_name = "maxVelDegsPerSec"]; -inline bool MoveOptions::has_max_vel_degs_per_sec() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; +inline bool MoveOptions::_internal_has_max_vel_degs_per_sec() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; return value; } +inline bool MoveOptions::has_max_vel_degs_per_sec() const { + return _internal_has_max_vel_degs_per_sec(); +} inline void MoveOptions::clear_max_vel_degs_per_sec() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.max_vel_degs_per_sec_ = 0; - _impl_._has_bits_[0] &= ~0x00000001u; + max_vel_degs_per_sec_ = 0; + _has_bits_[0] &= ~0x00000001u; +} +inline double MoveOptions::_internal_max_vel_degs_per_sec() const { + return max_vel_degs_per_sec_; } inline double MoveOptions::max_vel_degs_per_sec() const { // @@protoc_insertion_point(field_get:viam.component.arm.v1.MoveOptions.max_vel_degs_per_sec) return _internal_max_vel_degs_per_sec(); } +inline void MoveOptions::_internal_set_max_vel_degs_per_sec(double value) { + _has_bits_[0] |= 0x00000001u; + max_vel_degs_per_sec_ = value; +} inline void MoveOptions::set_max_vel_degs_per_sec(double value) { _internal_set_max_vel_degs_per_sec(value); // @@protoc_insertion_point(field_set:viam.component.arm.v1.MoveOptions.max_vel_degs_per_sec) } -inline double MoveOptions::_internal_max_vel_degs_per_sec() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.max_vel_degs_per_sec_; -} -inline void MoveOptions::_internal_set_max_vel_degs_per_sec(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.max_vel_degs_per_sec_ = value; -} // optional double max_acc_degs_per_sec2 = 2 [json_name = "maxAccDegsPerSec2"]; -inline bool MoveOptions::has_max_acc_degs_per_sec2() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; +inline bool MoveOptions::_internal_has_max_acc_degs_per_sec2() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; return value; } +inline bool MoveOptions::has_max_acc_degs_per_sec2() const { + return _internal_has_max_acc_degs_per_sec2(); +} inline void MoveOptions::clear_max_acc_degs_per_sec2() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.max_acc_degs_per_sec2_ = 0; - _impl_._has_bits_[0] &= ~0x00000002u; + max_acc_degs_per_sec2_ = 0; + _has_bits_[0] &= ~0x00000002u; +} +inline double MoveOptions::_internal_max_acc_degs_per_sec2() const { + return max_acc_degs_per_sec2_; } inline double MoveOptions::max_acc_degs_per_sec2() const { // @@protoc_insertion_point(field_get:viam.component.arm.v1.MoveOptions.max_acc_degs_per_sec2) return _internal_max_acc_degs_per_sec2(); } +inline void MoveOptions::_internal_set_max_acc_degs_per_sec2(double value) { + _has_bits_[0] |= 0x00000002u; + max_acc_degs_per_sec2_ = value; +} inline void MoveOptions::set_max_acc_degs_per_sec2(double value) { _internal_set_max_acc_degs_per_sec2(value); // @@protoc_insertion_point(field_set:viam.component.arm.v1.MoveOptions.max_acc_degs_per_sec2) } -inline double MoveOptions::_internal_max_acc_degs_per_sec2() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.max_acc_degs_per_sec2_; -} -inline void MoveOptions::_internal_set_max_acc_degs_per_sec2(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.max_acc_degs_per_sec2_ = value; -} #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) + } // namespace v1 } // namespace arm } // namespace component } // namespace viam - // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_component_2farm_2fv1_2farm_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_component_2farm_2fv1_2farm_2eproto diff --git a/src/viam/api/component/audioinput/v1/audioinput.grpc.pb.cc b/src/viam/api/component/audioinput/v1/audioinput.grpc.pb.cc index 10c220dca..99188df5f 100644 --- a/src/viam/api/component/audioinput/v1/audioinput.grpc.pb.cc +++ b/src/viam/api/component/audioinput/v1/audioinput.grpc.pb.cc @@ -6,19 +6,19 @@ #include "component/audioinput/v1/audioinput.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace component { namespace audioinput { @@ -34,124 +34,144 @@ static const char* AudioInputService_method_names[] = { std::unique_ptr< AudioInputService::Stub> AudioInputService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { (void)options; - std::unique_ptr< AudioInputService::Stub> stub(new AudioInputService::Stub(channel, options)); + std::unique_ptr< AudioInputService::Stub> stub(new AudioInputService::Stub(channel)); return stub; } -AudioInputService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) - : channel_(channel), rpcmethod_Chunks_(AudioInputService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::SERVER_STREAMING, channel) - , rpcmethod_Properties_(AudioInputService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_Record_(AudioInputService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_DoCommand_(AudioInputService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetGeometries_(AudioInputService_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) +AudioInputService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_Chunks_(AudioInputService_method_names[0], ::grpc::internal::RpcMethod::SERVER_STREAMING, channel) + , rpcmethod_Properties_(AudioInputService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_Record_(AudioInputService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DoCommand_(AudioInputService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetGeometries_(AudioInputService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::ClientReader< ::viam::component::audioinput::v1::ChunksResponse>* AudioInputService::Stub::ChunksRaw(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::ChunksRequest& request) { - return ::grpc::internal::ClientReaderFactory< ::viam::component::audioinput::v1::ChunksResponse>::Create(channel_.get(), rpcmethod_Chunks_, context, request); + return ::grpc_impl::internal::ClientReaderFactory< ::viam::component::audioinput::v1::ChunksResponse>::Create(channel_.get(), rpcmethod_Chunks_, context, request); } -void AudioInputService::Stub::async::Chunks(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::ChunksRequest* request, ::grpc::ClientReadReactor< ::viam::component::audioinput::v1::ChunksResponse>* reactor) { - ::grpc::internal::ClientCallbackReaderFactory< ::viam::component::audioinput::v1::ChunksResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_Chunks_, context, request, reactor); +void AudioInputService::Stub::experimental_async::Chunks(::grpc::ClientContext* context, ::viam::component::audioinput::v1::ChunksRequest* request, ::grpc::experimental::ClientReadReactor< ::viam::component::audioinput::v1::ChunksResponse>* reactor) { + ::grpc_impl::internal::ClientCallbackReaderFactory< ::viam::component::audioinput::v1::ChunksResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_Chunks_, context, request, reactor); } ::grpc::ClientAsyncReader< ::viam::component::audioinput::v1::ChunksResponse>* AudioInputService::Stub::AsyncChunksRaw(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::ChunksRequest& request, ::grpc::CompletionQueue* cq, void* tag) { - return ::grpc::internal::ClientAsyncReaderFactory< ::viam::component::audioinput::v1::ChunksResponse>::Create(channel_.get(), cq, rpcmethod_Chunks_, context, request, true, tag); + return ::grpc_impl::internal::ClientAsyncReaderFactory< ::viam::component::audioinput::v1::ChunksResponse>::Create(channel_.get(), cq, rpcmethod_Chunks_, context, request, true, tag); } ::grpc::ClientAsyncReader< ::viam::component::audioinput::v1::ChunksResponse>* AudioInputService::Stub::PrepareAsyncChunksRaw(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::ChunksRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncReaderFactory< ::viam::component::audioinput::v1::ChunksResponse>::Create(channel_.get(), cq, rpcmethod_Chunks_, context, request, false, nullptr); + return ::grpc_impl::internal::ClientAsyncReaderFactory< ::viam::component::audioinput::v1::ChunksResponse>::Create(channel_.get(), cq, rpcmethod_Chunks_, context, request, false, nullptr); } ::grpc::Status AudioInputService::Stub::Properties(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::PropertiesRequest& request, ::viam::component::audioinput::v1::PropertiesResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::audioinput::v1::PropertiesRequest, ::viam::component::audioinput::v1::PropertiesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Properties_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_Properties_, context, request, response); } -void AudioInputService::Stub::async::Properties(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::PropertiesRequest* request, ::viam::component::audioinput::v1::PropertiesResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::audioinput::v1::PropertiesRequest, ::viam::component::audioinput::v1::PropertiesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Properties_, context, request, response, std::move(f)); +void AudioInputService::Stub::experimental_async::Properties(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::PropertiesRequest* request, ::viam::component::audioinput::v1::PropertiesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Properties_, context, request, response, std::move(f)); } -void AudioInputService::Stub::async::Properties(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::PropertiesRequest* request, ::viam::component::audioinput::v1::PropertiesResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Properties_, context, request, response, reactor); +void AudioInputService::Stub::experimental_async::Properties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::audioinput::v1::PropertiesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Properties_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::audioinput::v1::PropertiesResponse>* AudioInputService::Stub::PrepareAsyncPropertiesRaw(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::PropertiesRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::audioinput::v1::PropertiesResponse, ::viam::component::audioinput::v1::PropertiesRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Properties_, context, request); +void AudioInputService::Stub::experimental_async::Properties(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::PropertiesRequest* request, ::viam::component::audioinput::v1::PropertiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Properties_, context, request, response, reactor); +} + +void AudioInputService::Stub::experimental_async::Properties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::audioinput::v1::PropertiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Properties_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::audioinput::v1::PropertiesResponse>* AudioInputService::Stub::AsyncPropertiesRaw(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::PropertiesRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncPropertiesRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::audioinput::v1::PropertiesResponse>::Create(channel_.get(), cq, rpcmethod_Properties_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::audioinput::v1::PropertiesResponse>* AudioInputService::Stub::PrepareAsyncPropertiesRaw(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::PropertiesRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::audioinput::v1::PropertiesResponse>::Create(channel_.get(), cq, rpcmethod_Properties_, context, request, false); } ::grpc::Status AudioInputService::Stub::Record(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::RecordRequest& request, ::google::api::HttpBody* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::audioinput::v1::RecordRequest, ::google::api::HttpBody, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Record_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_Record_, context, request, response); } -void AudioInputService::Stub::async::Record(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::RecordRequest* request, ::google::api::HttpBody* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::audioinput::v1::RecordRequest, ::google::api::HttpBody, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Record_, context, request, response, std::move(f)); +void AudioInputService::Stub::experimental_async::Record(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::RecordRequest* request, ::google::api::HttpBody* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Record_, context, request, response, std::move(f)); } -void AudioInputService::Stub::async::Record(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::RecordRequest* request, ::google::api::HttpBody* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Record_, context, request, response, reactor); +void AudioInputService::Stub::experimental_async::Record(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::google::api::HttpBody* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Record_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::google::api::HttpBody>* AudioInputService::Stub::PrepareAsyncRecordRaw(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::RecordRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::google::api::HttpBody, ::viam::component::audioinput::v1::RecordRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Record_, context, request); +void AudioInputService::Stub::experimental_async::Record(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::RecordRequest* request, ::google::api::HttpBody* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Record_, context, request, response, reactor); +} + +void AudioInputService::Stub::experimental_async::Record(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::google::api::HttpBody* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Record_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::google::api::HttpBody>* AudioInputService::Stub::AsyncRecordRaw(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::RecordRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncRecordRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::google::api::HttpBody>::Create(channel_.get(), cq, rpcmethod_Record_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::google::api::HttpBody>* AudioInputService::Stub::PrepareAsyncRecordRaw(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::RecordRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::google::api::HttpBody>::Create(channel_.get(), cq, rpcmethod_Record_, context, request, false); } ::grpc::Status AudioInputService::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); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DoCommand_, context, request, response); } -void AudioInputService::Stub::async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); +void AudioInputService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); } -void AudioInputService::Stub::async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); +void AudioInputService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* AudioInputService::Stub::PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::common::v1::DoCommandResponse, ::viam::common::v1::DoCommandRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DoCommand_, context, request); +void AudioInputService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); +} + +void AudioInputService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* AudioInputService::Stub::AsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncDoCommandRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::DoCommandResponse>::Create(channel_.get(), cq, rpcmethod_DoCommand_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* AudioInputService::Stub::PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::DoCommandResponse>::Create(channel_.get(), cq, rpcmethod_DoCommand_, context, request, false); } ::grpc::Status AudioInputService::Stub::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::viam::common::v1::GetGeometriesResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetGeometries_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetGeometries_, context, request, response); } -void AudioInputService::Stub::async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, std::move(f)); +void AudioInputService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, std::move(f)); } -void AudioInputService::Stub::async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, reactor); +void AudioInputService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>* AudioInputService::Stub::PrepareAsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::common::v1::GetGeometriesResponse, ::viam::common::v1::GetGeometriesRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetGeometries_, context, request); +void AudioInputService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, reactor); +} + +void AudioInputService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>* AudioInputService::Stub::AsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetGeometriesRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::GetGeometriesResponse>::Create(channel_.get(), cq, rpcmethod_GetGeometries_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>* AudioInputService::Stub::PrepareAsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::GetGeometriesResponse>::Create(channel_.get(), cq, rpcmethod_GetGeometries_, context, request, false); } AudioInputService::Service::Service() { @@ -160,17 +180,17 @@ AudioInputService::Service::Service() { ::grpc::internal::RpcMethod::SERVER_STREAMING, new ::grpc::internal::ServerStreamingHandler< AudioInputService::Service, ::viam::component::audioinput::v1::ChunksRequest, ::viam::component::audioinput::v1::ChunksResponse>( [](AudioInputService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::audioinput::v1::ChunksRequest* req, - ::grpc::ServerWriter<::viam::component::audioinput::v1::ChunksResponse>* writer) { + ::grpc_impl::ServerWriter<::viam::component::audioinput::v1::ChunksResponse>* writer) { return service->Chunks(ctx, req, writer); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( AudioInputService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AudioInputService::Service, ::viam::component::audioinput::v1::PropertiesRequest, ::viam::component::audioinput::v1::PropertiesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AudioInputService::Service, ::viam::component::audioinput::v1::PropertiesRequest, ::viam::component::audioinput::v1::PropertiesResponse>( [](AudioInputService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::audioinput::v1::PropertiesRequest* req, ::viam::component::audioinput::v1::PropertiesResponse* resp) { return service->Properties(ctx, req, resp); @@ -178,9 +198,9 @@ AudioInputService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( AudioInputService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AudioInputService::Service, ::viam::component::audioinput::v1::RecordRequest, ::google::api::HttpBody, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AudioInputService::Service, ::viam::component::audioinput::v1::RecordRequest, ::google::api::HttpBody>( [](AudioInputService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::audioinput::v1::RecordRequest* req, ::google::api::HttpBody* resp) { return service->Record(ctx, req, resp); @@ -188,9 +208,9 @@ AudioInputService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( AudioInputService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AudioInputService::Service, ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AudioInputService::Service, ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( [](AudioInputService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::common::v1::DoCommandRequest* req, ::viam::common::v1::DoCommandResponse* resp) { return service->DoCommand(ctx, req, resp); @@ -198,9 +218,9 @@ AudioInputService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( AudioInputService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AudioInputService::Service, ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AudioInputService::Service, ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( [](AudioInputService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::common::v1::GetGeometriesRequest* req, ::viam::common::v1::GetGeometriesResponse* resp) { return service->GetGeometries(ctx, req, resp); diff --git a/src/viam/api/component/audioinput/v1/audioinput.grpc.pb.h b/src/viam/api/component/audioinput/v1/audioinput.grpc.pb.h index 289d449d5..d556998e4 100644 --- a/src/viam/api/component/audioinput/v1/audioinput.grpc.pb.h +++ b/src/viam/api/component/audioinput/v1/audioinput.grpc.pb.h @@ -7,23 +7,24 @@ #include "component/audioinput/v1/audioinput.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace component { @@ -83,30 +84,78 @@ class AudioInputService 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)); } - class async_interface { + class experimental_async_interface { public: - virtual ~async_interface() {} + virtual ~experimental_async_interface() {} // Chunks returns audio chunks forever from an audio input of the underlying robot. - virtual void Chunks(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::ChunksRequest* request, ::grpc::ClientReadReactor< ::viam::component::audioinput::v1::ChunksResponse>* reactor) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void Chunks(::grpc::ClientContext* context, ::viam::component::audioinput::v1::ChunksRequest* request, ::grpc::ClientReadReactor< ::viam::component::audioinput::v1::ChunksResponse>* reactor) = 0; + #else + virtual void Chunks(::grpc::ClientContext* context, ::viam::component::audioinput::v1::ChunksRequest* request, ::grpc::experimental::ClientReadReactor< ::viam::component::audioinput::v1::ChunksResponse>* reactor) = 0; + #endif // Properties returns properties of an audio input of the underlying robot. virtual void Properties(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::PropertiesRequest* request, ::viam::component::audioinput::v1::PropertiesResponse* response, std::function) = 0; + virtual void Properties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::audioinput::v1::PropertiesResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void Properties(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::PropertiesRequest* request, ::viam::component::audioinput::v1::PropertiesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void Properties(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::PropertiesRequest* request, ::viam::component::audioinput::v1::PropertiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void Properties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::audioinput::v1::PropertiesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void Properties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::audioinput::v1::PropertiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Record records audio from an audio input of the underlying robot // to an HTTP response. A specific MIME type cannot be requested and may not necessarily // be the same one returned each time. virtual void Record(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::RecordRequest* request, ::google::api::HttpBody* response, std::function) = 0; + virtual void Record(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::google::api::HttpBody* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void Record(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::RecordRequest* request, ::google::api::HttpBody* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void Record(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::RecordRequest* request, ::google::api::HttpBody* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void Record(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::google::api::HttpBody* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void Record(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::google::api::HttpBody* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // 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 ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // 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 ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif }; - typedef class async_interface experimental_async_interface; - virtual class async_interface* async() { return nullptr; } - class async_interface* experimental_async() { return async(); } - private: + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef class experimental_async_interface async_interface; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + async_interface* async() { return experimental_async(); } + #endif + virtual class experimental_async_interface* experimental_async() { return nullptr; } + private: virtual ::grpc::ClientReaderInterface< ::viam::component::audioinput::v1::ChunksResponse>* ChunksRaw(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::ChunksRequest& request) = 0; virtual ::grpc::ClientAsyncReaderInterface< ::viam::component::audioinput::v1::ChunksResponse>* AsyncChunksRaw(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::ChunksRequest& request, ::grpc::CompletionQueue* cq, void* tag) = 0; virtual ::grpc::ClientAsyncReaderInterface< ::viam::component::audioinput::v1::ChunksResponse>* PrepareAsyncChunksRaw(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::ChunksRequest& request, ::grpc::CompletionQueue* cq) = 0; @@ -121,7 +170,7 @@ class AudioInputService final { }; class Stub final : public StubInterface { public: - Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); std::unique_ptr< ::grpc::ClientReader< ::viam::component::audioinput::v1::ChunksResponse>> Chunks(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::ChunksRequest& request) { return std::unique_ptr< ::grpc::ClientReader< ::viam::component::audioinput::v1::ChunksResponse>>(ChunksRaw(context, request)); } @@ -159,29 +208,73 @@ class AudioInputService 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)); } - class async final : - public StubInterface::async_interface { + class experimental_async final : + public StubInterface::experimental_async_interface { public: - void Chunks(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::ChunksRequest* request, ::grpc::ClientReadReactor< ::viam::component::audioinput::v1::ChunksResponse>* reactor) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void Chunks(::grpc::ClientContext* context, ::viam::component::audioinput::v1::ChunksRequest* request, ::grpc::ClientReadReactor< ::viam::component::audioinput::v1::ChunksResponse>* reactor) override; + #else + void Chunks(::grpc::ClientContext* context, ::viam::component::audioinput::v1::ChunksRequest* request, ::grpc::experimental::ClientReadReactor< ::viam::component::audioinput::v1::ChunksResponse>* reactor) override; + #endif void Properties(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::PropertiesRequest* request, ::viam::component::audioinput::v1::PropertiesResponse* response, std::function) override; + void Properties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::audioinput::v1::PropertiesResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void Properties(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::PropertiesRequest* request, ::viam::component::audioinput::v1::PropertiesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void Properties(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::PropertiesRequest* request, ::viam::component::audioinput::v1::PropertiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void Properties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::audioinput::v1::PropertiesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void Properties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::audioinput::v1::PropertiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void Record(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::RecordRequest* request, ::google::api::HttpBody* response, std::function) override; + void Record(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::google::api::HttpBody* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void Record(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::RecordRequest* request, ::google::api::HttpBody* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void Record(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::RecordRequest* request, ::google::api::HttpBody* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void Record(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::google::api::HttpBody* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void Record(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::google::api::HttpBody* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif 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 ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif 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 ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif private: friend class Stub; - explicit async(Stub* stub): stub_(stub) { } + explicit experimental_async(Stub* stub): stub_(stub) { } Stub* stub() { return stub_; } Stub* stub_; }; - class async* async() override { return &async_stub_; } + class experimental_async_interface* experimental_async() override { return &async_stub_; } private: std::shared_ptr< ::grpc::ChannelInterface> channel_; - class async async_stub_{this}; + class experimental_async async_stub_{this}; ::grpc::ClientReader< ::viam::component::audioinput::v1::ChunksResponse>* ChunksRaw(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::ChunksRequest& request) override; ::grpc::ClientAsyncReader< ::viam::component::audioinput::v1::ChunksResponse>* AsyncChunksRaw(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::ChunksRequest& request, ::grpc::CompletionQueue* cq, void* tag) override; ::grpc::ClientAsyncReader< ::viam::component::audioinput::v1::ChunksResponse>* PrepareAsyncChunksRaw(::grpc::ClientContext* context, const ::viam::component::audioinput::v1::ChunksRequest& request, ::grpc::CompletionQueue* cq) override; @@ -320,17 +413,27 @@ class AudioInputService final { }; typedef WithAsyncMethod_Chunks > > > > AsyncService; template - class WithCallbackMethod_Chunks : public BaseClass { + class ExperimentalWithCallbackMethod_Chunks : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_Chunks() { - ::grpc::Service::MarkMethodCallback(0, - new ::grpc::internal::CallbackServerStreamingHandler< ::viam::component::audioinput::v1::ChunksRequest, ::viam::component::audioinput::v1::ChunksResponse>( + ExperimentalWithCallbackMethod_Chunks() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(0, + new ::grpc_impl::internal::CallbackServerStreamingHandler< ::viam::component::audioinput::v1::ChunksRequest, ::viam::component::audioinput::v1::ChunksResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::audioinput::v1::ChunksRequest* request) { return this->Chunks(context, request); })); - } - ~WithCallbackMethod_Chunks() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::audioinput::v1::ChunksRequest* request) { return this->Chunks(context, request); })); + } + ~ExperimentalWithCallbackMethod_Chunks() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -338,26 +441,46 @@ class AudioInputService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerWriteReactor< ::viam::component::audioinput::v1::ChunksResponse>* Chunks( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::audioinput::v1::ChunksRequest* /*request*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::audioinput::v1::ChunksRequest* /*request*/) + #else + virtual ::grpc::experimental::ServerWriteReactor< ::viam::component::audioinput::v1::ChunksResponse>* Chunks( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::audioinput::v1::ChunksRequest* /*request*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_Properties : public BaseClass { + class ExperimentalWithCallbackMethod_Properties : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_Properties() { - ::grpc::Service::MarkMethodCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::audioinput::v1::PropertiesRequest, ::viam::component::audioinput::v1::PropertiesResponse>( + ExperimentalWithCallbackMethod_Properties() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::audioinput::v1::PropertiesRequest, ::viam::component::audioinput::v1::PropertiesResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::audioinput::v1::PropertiesRequest* request, ::viam::component::audioinput::v1::PropertiesResponse* response) { return this->Properties(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::audioinput::v1::PropertiesRequest* request, ::viam::component::audioinput::v1::PropertiesResponse* response) { return this->Properties(context, request, response); }));} void SetMessageAllocatorFor_Properties( - ::grpc::MessageAllocator< ::viam::component::audioinput::v1::PropertiesRequest, ::viam::component::audioinput::v1::PropertiesResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::audioinput::v1::PropertiesRequest, ::viam::component::audioinput::v1::PropertiesResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::audioinput::v1::PropertiesRequest, ::viam::component::audioinput::v1::PropertiesResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(1); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::audioinput::v1::PropertiesRequest, ::viam::component::audioinput::v1::PropertiesResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_Properties() override { + ~ExperimentalWithCallbackMethod_Properties() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -365,26 +488,46 @@ class AudioInputService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* Properties( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::audioinput::v1::PropertiesRequest* /*request*/, ::viam::component::audioinput::v1::PropertiesResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::audioinput::v1::PropertiesRequest* /*request*/, ::viam::component::audioinput::v1::PropertiesResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* Properties( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::audioinput::v1::PropertiesRequest* /*request*/, ::viam::component::audioinput::v1::PropertiesResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_Record : public BaseClass { + class ExperimentalWithCallbackMethod_Record : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_Record() { - ::grpc::Service::MarkMethodCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::audioinput::v1::RecordRequest, ::google::api::HttpBody>( + ExperimentalWithCallbackMethod_Record() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(2, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::audioinput::v1::RecordRequest, ::google::api::HttpBody>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::audioinput::v1::RecordRequest* request, ::google::api::HttpBody* response) { return this->Record(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::audioinput::v1::RecordRequest* request, ::google::api::HttpBody* response) { return this->Record(context, request, response); }));} void SetMessageAllocatorFor_Record( - ::grpc::MessageAllocator< ::viam::component::audioinput::v1::RecordRequest, ::google::api::HttpBody>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::audioinput::v1::RecordRequest, ::google::api::HttpBody>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::audioinput::v1::RecordRequest, ::google::api::HttpBody>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(2); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::audioinput::v1::RecordRequest, ::google::api::HttpBody>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_Record() override { + ~ExperimentalWithCallbackMethod_Record() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -392,26 +535,46 @@ class AudioInputService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* Record( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::audioinput::v1::RecordRequest* /*request*/, ::google::api::HttpBody* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::audioinput::v1::RecordRequest* /*request*/, ::google::api::HttpBody* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* Record( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::audioinput::v1::RecordRequest* /*request*/, ::google::api::HttpBody* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_DoCommand : public BaseClass { + class ExperimentalWithCallbackMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_DoCommand() { - ::grpc::Service::MarkMethodCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( + ExperimentalWithCallbackMethod_DoCommand() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(3, + new ::grpc_impl::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); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + 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::experimental::MessageAllocator< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(3); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_DoCommand() override { + ~ExperimentalWithCallbackMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -419,26 +582,46 @@ class AudioInputService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DoCommand( - ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DoCommand( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetGeometries : public BaseClass { + class ExperimentalWithCallbackMethod_GetGeometries : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetGeometries() { - ::grpc::Service::MarkMethodCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( + ExperimentalWithCallbackMethod_GetGeometries() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(4, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response) { return this->GetGeometries(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response) { return this->GetGeometries(context, request, response); }));} void SetMessageAllocatorFor_GetGeometries( - ::grpc::MessageAllocator< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(4); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetGeometries() override { + ~ExperimentalWithCallbackMethod_GetGeometries() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -446,11 +629,20 @@ class AudioInputService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetGeometries( - ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::GetGeometriesRequest* /*request*/, ::viam::common::v1::GetGeometriesResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::GetGeometriesRequest* /*request*/, ::viam::common::v1::GetGeometriesResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetGeometries( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::common::v1::GetGeometriesRequest* /*request*/, ::viam::common::v1::GetGeometriesResponse* /*response*/) + #endif + { return nullptr; } }; - typedef WithCallbackMethod_Chunks > > > > CallbackService; - typedef CallbackService ExperimentalCallbackService; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef ExperimentalWithCallbackMethod_Chunks > > > > CallbackService; + #endif + + typedef ExperimentalWithCallbackMethod_Chunks > > > > ExperimentalCallbackService; template class WithGenericMethod_Chunks : public BaseClass { private: @@ -637,17 +829,27 @@ class AudioInputService final { } }; template - class WithRawCallbackMethod_Chunks : public BaseClass { + class ExperimentalWithRawCallbackMethod_Chunks : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_Chunks() { - ::grpc::Service::MarkMethodRawCallback(0, - new ::grpc::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_Chunks() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(0, + new ::grpc_impl::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const::grpc::ByteBuffer* request) { return this->Chunks(context, request); })); - } - ~WithRawCallbackMethod_Chunks() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const::grpc::ByteBuffer* request) { return this->Chunks(context, request); })); + } + ~ExperimentalWithRawCallbackMethod_Chunks() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -655,21 +857,37 @@ class AudioInputService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerWriteReactor< ::grpc::ByteBuffer>* Chunks( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) + #else + virtual ::grpc::experimental::ServerWriteReactor< ::grpc::ByteBuffer>* Chunks( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_Properties : public BaseClass { + class ExperimentalWithRawCallbackMethod_Properties : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_Properties() { - ::grpc::Service::MarkMethodRawCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_Properties() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Properties(context, request, response); })); - } - ~WithRawCallbackMethod_Properties() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Properties(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_Properties() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -677,21 +895,37 @@ class AudioInputService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* Properties( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* Properties( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_Record : public BaseClass { + class ExperimentalWithRawCallbackMethod_Record : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_Record() { - ::grpc::Service::MarkMethodRawCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_Record() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(2, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Record(context, request, response); })); - } - ~WithRawCallbackMethod_Record() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Record(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_Record() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -699,21 +933,37 @@ class AudioInputService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* Record( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* Record( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_DoCommand : public BaseClass { + class ExperimentalWithRawCallbackMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_DoCommand() { - ::grpc::Service::MarkMethodRawCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_DoCommand() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(3, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DoCommand(context, request, response); })); - } - ~WithRawCallbackMethod_DoCommand() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DoCommand(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -721,21 +971,37 @@ class AudioInputService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DoCommand( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DoCommand( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetGeometries : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetGeometries : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetGeometries() { - ::grpc::Service::MarkMethodRawCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetGeometries() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(4, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetGeometries(context, request, response); })); - } - ~WithRawCallbackMethod_GetGeometries() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetGeometries(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetGeometries() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -743,8 +1009,14 @@ class AudioInputService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetGeometries( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetGeometries( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template class WithStreamedUnaryMethod_Properties : public BaseClass { @@ -755,8 +1027,8 @@ class AudioInputService final { ::grpc::Service::MarkMethodStreamed(1, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::audioinput::v1::PropertiesRequest, ::viam::component::audioinput::v1::PropertiesResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::audioinput::v1::PropertiesRequest, ::viam::component::audioinput::v1::PropertiesResponse>* streamer) { return this->StreamedProperties(context, streamer); @@ -782,8 +1054,8 @@ class AudioInputService final { ::grpc::Service::MarkMethodStreamed(2, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::audioinput::v1::RecordRequest, ::google::api::HttpBody>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::audioinput::v1::RecordRequest, ::google::api::HttpBody>* streamer) { return this->StreamedRecord(context, streamer); @@ -809,8 +1081,8 @@ class AudioInputService final { ::grpc::Service::MarkMethodStreamed(3, new ::grpc::internal::StreamedUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* streamer) { return this->StreamedDoCommand(context, streamer); @@ -836,8 +1108,8 @@ class AudioInputService final { ::grpc::Service::MarkMethodStreamed(4, new ::grpc::internal::StreamedUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>* streamer) { return this->StreamedGetGeometries(context, streamer); @@ -864,8 +1136,8 @@ class AudioInputService final { ::grpc::Service::MarkMethodStreamed(0, new ::grpc::internal::SplitServerStreamingHandler< ::viam::component::audioinput::v1::ChunksRequest, ::viam::component::audioinput::v1::ChunksResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerSplitStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerSplitStreamer< ::viam::component::audioinput::v1::ChunksRequest, ::viam::component::audioinput::v1::ChunksResponse>* streamer) { return this->StreamedChunks(context, streamer); diff --git a/src/viam/api/component/audioinput/v1/audioinput.pb.cc b/src/viam/api/component/audioinput/v1/audioinput.pb.cc index 56f6f441d..912ad9b3a 100644 --- a/src/viam/api/component/audioinput/v1/audioinput.pb.cc +++ b/src/viam/api/component/audioinput/v1/audioinput.pb.cc @@ -4,624 +4,522 @@ #include "component/audioinput/v1/audioinput.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace viam { namespace component { namespace audioinput { namespace v1 { - -inline constexpr PropertiesRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR PropertiesRequest::PropertiesRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct PropertiesRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR PropertiesRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~PropertiesRequestDefaultTypeInternal() {} - union { - PropertiesRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PropertiesRequestDefaultTypeInternal _PropertiesRequest_default_instance_; - -inline constexpr ChunksRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - sample_format_{static_cast< ::viam::component::audioinput::v1::SampleFormat >(0)}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR ChunksRequest::ChunksRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ChunksRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR ChunksRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ChunksRequestDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR RecordRequest::RecordRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , duration_(nullptr){} +struct RecordRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR RecordRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RecordRequestDefaultTypeInternal() {} union { - ChunksRequest _instance; + RecordRequest _instance; }; }; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RecordRequestDefaultTypeInternal _RecordRequest_default_instance_; +PROTOBUF_CONSTEXPR AudioChunkInfo::AudioChunkInfo( + ::_pbi::ConstantInitialized) + : sample_format_(0) -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChunksRequestDefaultTypeInternal _ChunksRequest_default_instance_; - -inline constexpr AudioChunkInfo::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : sample_format_{static_cast< ::viam::component::audioinput::v1::SampleFormat >(0)}, - channels_{0u}, - sampling_rate_{::int64_t{0}}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR AudioChunkInfo::AudioChunkInfo(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} + , channels_(0u) + , sampling_rate_(int64_t{0}){} struct AudioChunkInfoDefaultTypeInternal { - PROTOBUF_CONSTEXPR AudioChunkInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR AudioChunkInfoDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~AudioChunkInfoDefaultTypeInternal() {} union { AudioChunkInfo _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AudioChunkInfoDefaultTypeInternal _AudioChunkInfo_default_instance_; - -inline constexpr AudioChunk::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : data_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - length_{0u}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR AudioChunk::AudioChunk(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AudioChunkInfoDefaultTypeInternal _AudioChunkInfo_default_instance_; +PROTOBUF_CONSTEXPR AudioChunk::AudioChunk( + ::_pbi::ConstantInitialized) + : data_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , length_(0u){} struct AudioChunkDefaultTypeInternal { - PROTOBUF_CONSTEXPR AudioChunkDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR AudioChunkDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~AudioChunkDefaultTypeInternal() {} union { AudioChunk _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AudioChunkDefaultTypeInternal _AudioChunk_default_instance_; - -inline constexpr RecordRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - duration_{nullptr} {} - -template -PROTOBUF_CONSTEXPR RecordRequest::RecordRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct RecordRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR RecordRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RecordRequestDefaultTypeInternal() {} - union { - RecordRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RecordRequestDefaultTypeInternal _RecordRequest_default_instance_; - -inline constexpr PropertiesResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - latency_{nullptr}, - channel_count_{0u}, - sample_rate_{0u}, - sample_size_{0u}, - is_big_endian_{false}, - is_float_{false}, - is_interleaved_{false} {} - -template -PROTOBUF_CONSTEXPR PropertiesResponse::PropertiesResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct PropertiesResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR PropertiesResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~PropertiesResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AudioChunkDefaultTypeInternal _AudioChunk_default_instance_; +PROTOBUF_CONSTEXPR ChunksRequest::ChunksRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , sample_format_(0) +{} +struct ChunksRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR ChunksRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ChunksRequestDefaultTypeInternal() {} union { - PropertiesResponse _instance; + ChunksRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PropertiesResponseDefaultTypeInternal _PropertiesResponse_default_instance_; - -inline constexpr ChunksResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : type_{}, - _cached_size_{0}, - _oneof_case_{} {} - -template -PROTOBUF_CONSTEXPR ChunksResponse::ChunksResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChunksRequestDefaultTypeInternal _ChunksRequest_default_instance_; +PROTOBUF_CONSTEXPR ChunksResponse::ChunksResponse( + ::_pbi::ConstantInitialized) + : _oneof_case_{}{} struct ChunksResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ChunksResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ChunksResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~ChunksResponseDefaultTypeInternal() {} union { ChunksResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChunksResponseDefaultTypeInternal _ChunksResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChunksResponseDefaultTypeInternal _ChunksResponse_default_instance_; +PROTOBUF_CONSTEXPR PropertiesRequest::PropertiesRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct PropertiesRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR PropertiesRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~PropertiesRequestDefaultTypeInternal() {} + union { + PropertiesRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PropertiesRequestDefaultTypeInternal _PropertiesRequest_default_instance_; +PROTOBUF_CONSTEXPR PropertiesResponse::PropertiesResponse( + ::_pbi::ConstantInitialized) + : latency_(nullptr) + , channel_count_(0u) + , sample_rate_(0u) + , sample_size_(0u) + , is_big_endian_(false) + , is_float_(false) + , is_interleaved_(false){} +struct PropertiesResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR PropertiesResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~PropertiesResponseDefaultTypeInternal() {} + union { + PropertiesResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PropertiesResponseDefaultTypeInternal _PropertiesResponse_default_instance_; } // namespace v1 } // namespace audioinput } // namespace component } // namespace viam static ::_pb::Metadata file_level_metadata_component_2faudioinput_2fv1_2faudioinput_2eproto[7]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_component_2faudioinput_2fv1_2faudioinput_2eproto[1]; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_component_2faudioinput_2fv1_2faudioinput_2eproto = nullptr; -const ::uint32_t TableStruct_component_2faudioinput_2fv1_2faudioinput_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::RecordRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::RecordRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::RecordRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::RecordRequest, _impl_.duration_), - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::AudioChunkInfo, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::AudioChunkInfo, _impl_.sample_format_), - PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::AudioChunkInfo, _impl_.channels_), - PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::AudioChunkInfo, _impl_.sampling_rate_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::AudioChunk, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::AudioChunk, _impl_.data_), - PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::AudioChunk, _impl_.length_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::ChunksRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::ChunksRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::ChunksRequest, _impl_.sample_format_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::ChunksResponse, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::ChunksResponse, _impl_._oneof_case_[0]), - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::ChunksResponse, _impl_.type_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::PropertiesRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::PropertiesRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::PropertiesResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::PropertiesResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::PropertiesResponse, _impl_.channel_count_), - PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::PropertiesResponse, _impl_.latency_), - PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::PropertiesResponse, _impl_.sample_rate_), - PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::PropertiesResponse, _impl_.sample_size_), - PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::PropertiesResponse, _impl_.is_big_endian_), - PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::PropertiesResponse, _impl_.is_float_), - PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::PropertiesResponse, _impl_.is_interleaved_), - ~0u, - 0, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_component_2faudioinput_2fv1_2faudioinput_2eproto = nullptr; + +const uint32_t TableStruct_component_2faudioinput_2fv1_2faudioinput_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::RecordRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::RecordRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::RecordRequest, duration_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::AudioChunkInfo, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::AudioChunkInfo, sample_format_), + PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::AudioChunkInfo, channels_), + PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::AudioChunkInfo, sampling_rate_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::AudioChunk, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::AudioChunk, data_), + PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::AudioChunk, length_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::ChunksRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::ChunksRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::ChunksRequest, sample_format_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::ChunksResponse, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::ChunksResponse, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::ChunksResponse, type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::PropertiesRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::PropertiesRequest, name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::PropertiesResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::PropertiesResponse, channel_count_), + PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::PropertiesResponse, latency_), + PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::PropertiesResponse, sample_rate_), + PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::PropertiesResponse, sample_size_), + PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::PropertiesResponse, is_big_endian_), + PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::PropertiesResponse, is_float_), + PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::PropertiesResponse, is_interleaved_), }; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, 10, -1, sizeof(::viam::component::audioinput::v1::RecordRequest)}, - {12, -1, -1, sizeof(::viam::component::audioinput::v1::AudioChunkInfo)}, - {23, -1, -1, sizeof(::viam::component::audioinput::v1::AudioChunk)}, - {33, -1, -1, sizeof(::viam::component::audioinput::v1::ChunksRequest)}, - {43, -1, -1, sizeof(::viam::component::audioinput::v1::ChunksResponse)}, - {54, -1, -1, sizeof(::viam::component::audioinput::v1::PropertiesRequest)}, - {63, 78, -1, sizeof(::viam::component::audioinput::v1::PropertiesResponse)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::component::audioinput::v1::RecordRequest)}, + { 8, -1, -1, sizeof(::viam::component::audioinput::v1::AudioChunkInfo)}, + { 17, -1, -1, sizeof(::viam::component::audioinput::v1::AudioChunk)}, + { 25, -1, -1, sizeof(::viam::component::audioinput::v1::ChunksRequest)}, + { 33, -1, -1, sizeof(::viam::component::audioinput::v1::ChunksResponse)}, + { 42, -1, -1, sizeof(::viam::component::audioinput::v1::PropertiesRequest)}, + { 49, -1, -1, sizeof(::viam::component::audioinput::v1::PropertiesResponse)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::viam::component::audioinput::v1::_RecordRequest_default_instance_._instance, - &::viam::component::audioinput::v1::_AudioChunkInfo_default_instance_._instance, - &::viam::component::audioinput::v1::_AudioChunk_default_instance_._instance, - &::viam::component::audioinput::v1::_ChunksRequest_default_instance_._instance, - &::viam::component::audioinput::v1::_ChunksResponse_default_instance_._instance, - &::viam::component::audioinput::v1::_PropertiesRequest_default_instance_._instance, - &::viam::component::audioinput::v1::_PropertiesResponse_default_instance_._instance, -}; -const char descriptor_table_protodef_component_2faudioinput_2fv1_2faudioinput_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n(component/audioinput/v1/audioinput.pro" - "to\022\034viam.component.audioinput.v1\032\026common" - "/v1/common.proto\032\034google/api/annotations" - ".proto\032\031google/api/httpbody.proto\032\036googl" - "e/protobuf/duration.proto\"Z\n\rRecordReque" - "st\022\022\n\004name\030\001 \001(\tR\004name\0225\n\010duration\030\002 \001(\013" - "2\031.google.protobuf.DurationR\010duration\"\242\001" - "\n\016AudioChunkInfo\022O\n\rsample_format\030\001 \001(\0162" - "*.viam.component.audioinput.v1.SampleFor" - "matR\014sampleFormat\022\032\n\010channels\030\002 \001(\rR\010cha" - "nnels\022#\n\rsampling_rate\030\003 \001(\003R\014samplingRa" - "te\"8\n\nAudioChunk\022\022\n\004data\030\001 \001(\014R\004data\022\026\n\006" - "length\030\002 \001(\rR\006length\"t\n\rChunksRequest\022\022\n" - "\004name\030\001 \001(\tR\004name\022O\n\rsample_format\030\002 \001(\016" - "2*.viam.component.audioinput.v1.SampleFo" - "rmatR\014sampleFormat\"\236\001\n\016ChunksResponse\022B\n" - "\004info\030\001 \001(\0132,.viam.component.audioinput." - "v1.AudioChunkInfoH\000R\004info\022@\n\005chunk\030\002 \001(\013" - "2(.viam.component.audioinput.v1.AudioChu" - "nkH\000R\005chunkB\006\n\004type\"\'\n\021PropertiesRequest" - "\022\022\n\004name\030\001 \001(\tR\004name\"\226\002\n\022PropertiesRespo" - "nse\022#\n\rchannel_count\030\001 \001(\rR\014channelCount" - "\0223\n\007latency\030\002 \001(\0132\031.google.protobuf.Dura" - "tionR\007latency\022\037\n\013sample_rate\030\003 \001(\rR\nsamp" - "leRate\022\037\n\013sample_size\030\004 \001(\rR\nsampleSize\022" - "\"\n\ris_big_endian\030\005 \001(\010R\013isBigEndian\022\031\n\010i" - "s_float\030\006 \001(\010R\007isFloat\022%\n\016is_interleaved" - "\030\007 \001(\010R\risInterleaved*y\n\014SampleFormat\022\035\n" - "\031SAMPLE_FORMAT_UNSPECIFIED\020\000\022#\n\037SAMPLE_F" - "ORMAT_INT16_INTERLEAVED\020\001\022%\n!SAMPLE_FORM" - "AT_FLOAT32_INTERLEAVED\020\0022\334\005\n\021AudioInputS" - "ervice\022e\n\006Chunks\022+.viam.component.audioi" - "nput.v1.ChunksRequest\032,.viam.component.a" - "udioinput.v1.ChunksResponse0\001\022\254\001\n\nProper" - "ties\022/.viam.component.audioinput.v1.Prop" - "ertiesRequest\0320.viam.component.audioinpu" - "t.v1.PropertiesResponse\";\202\323\344\223\0025\0223/viam/a" - "pi/v1/component/audioinput/{name}/proper" - "ties\022\204\001\n\006Record\022+.viam.component.audioin" - "put.v1.RecordRequest\032\024.google.api.HttpBo" - "dy\"7\202\323\344\223\0021\022//viam/api/v1/component/audio" - "input/{name}/record\022\215\001\n\tDoCommand\022 .viam" - ".common.v1.DoCommandRequest\032!.viam.commo" - "n.v1.DoCommandResponse\";\202\323\344\223\0025\"3/viam/ap" - "i/v1/component/audioinput/{name}/do_comm" - "and\022\231\001\n\rGetGeometries\022$.viam.common.v1.G" - "etGeometriesRequest\032%.viam.common.v1.Get" - "GeometriesResponse\";\202\323\344\223\0025\0223/viam/api/v1" - "/component/audioinput/{name}/geometriesB" - "\357\001\n com.viam.component.audioinput.v1B\017Au" - "dioinputProtoP\001Z\'go.viam.com/api/compone" - "nt/audioinput/v1\242\002\003VCA\252\002\034Viam.Component." - "Audioinput.V1\312\002\034Viam\\Component\\Audioinpu" - "t\\V1\342\002(Viam\\Component\\Audioinput\\V1\\GPBM" - "etadata\352\002\037Viam::Component::Audioinput::V" - "1b\006proto3" + &::viam::component::audioinput::v1::_RecordRequest_default_instance_._instance, + &::viam::component::audioinput::v1::_AudioChunkInfo_default_instance_._instance, + &::viam::component::audioinput::v1::_AudioChunk_default_instance_._instance, + &::viam::component::audioinput::v1::_ChunksRequest_default_instance_._instance, + &::viam::component::audioinput::v1::_ChunksResponse_default_instance_._instance, + &::viam::component::audioinput::v1::_PropertiesRequest_default_instance_._instance, + &::viam::component::audioinput::v1::_PropertiesResponse_default_instance_._instance, }; -static const ::_pbi::DescriptorTable* const descriptor_table_component_2faudioinput_2fv1_2faudioinput_2eproto_deps[4] = - { - &::descriptor_table_common_2fv1_2fcommon_2eproto, - &::descriptor_table_google_2fapi_2fannotations_2eproto, - &::descriptor_table_google_2fapi_2fhttpbody_2eproto, - &::descriptor_table_google_2fprotobuf_2fduration_2eproto, + +const char descriptor_table_protodef_component_2faudioinput_2fv1_2faudioinput_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n(component/audioinput/v1/audioinput.pro" + "to\022\034viam.component.audioinput.v1\032\026common" + "/v1/common.proto\032\034google/api/annotations" + ".proto\032\031google/api/httpbody.proto\032\036googl" + "e/protobuf/duration.proto\"Z\n\rRecordReque" + "st\022\022\n\004name\030\001 \001(\tR\004name\0225\n\010duration\030\002 \001(\013" + "2\031.google.protobuf.DurationR\010duration\"\242\001" + "\n\016AudioChunkInfo\022O\n\rsample_format\030\001 \001(\0162" + "*.viam.component.audioinput.v1.SampleFor" + "matR\014sampleFormat\022\032\n\010channels\030\002 \001(\rR\010cha" + "nnels\022#\n\rsampling_rate\030\003 \001(\003R\014samplingRa" + "te\"8\n\nAudioChunk\022\022\n\004data\030\001 \001(\014R\004data\022\026\n\006" + "length\030\002 \001(\rR\006length\"t\n\rChunksRequest\022\022\n" + "\004name\030\001 \001(\tR\004name\022O\n\rsample_format\030\002 \001(\016" + "2*.viam.component.audioinput.v1.SampleFo" + "rmatR\014sampleFormat\"\236\001\n\016ChunksResponse\022B\n" + "\004info\030\001 \001(\0132,.viam.component.audioinput." + "v1.AudioChunkInfoH\000R\004info\022@\n\005chunk\030\002 \001(\013" + "2(.viam.component.audioinput.v1.AudioChu" + "nkH\000R\005chunkB\006\n\004type\"\'\n\021PropertiesRequest" + "\022\022\n\004name\030\001 \001(\tR\004name\"\226\002\n\022PropertiesRespo" + "nse\022#\n\rchannel_count\030\001 \001(\rR\014channelCount" + "\0223\n\007latency\030\002 \001(\0132\031.google.protobuf.Dura" + "tionR\007latency\022\037\n\013sample_rate\030\003 \001(\rR\nsamp" + "leRate\022\037\n\013sample_size\030\004 \001(\rR\nsampleSize\022" + "\"\n\ris_big_endian\030\005 \001(\010R\013isBigEndian\022\031\n\010i" + "s_float\030\006 \001(\010R\007isFloat\022%\n\016is_interleaved" + "\030\007 \001(\010R\risInterleaved*y\n\014SampleFormat\022\035\n" + "\031SAMPLE_FORMAT_UNSPECIFIED\020\000\022#\n\037SAMPLE_F" + "ORMAT_INT16_INTERLEAVED\020\001\022%\n!SAMPLE_FORM" + "AT_FLOAT32_INTERLEAVED\020\0022\334\005\n\021AudioInputS" + "ervice\022e\n\006Chunks\022+.viam.component.audioi" + "nput.v1.ChunksRequest\032,.viam.component.a" + "udioinput.v1.ChunksResponse0\001\022\254\001\n\nProper" + "ties\022/.viam.component.audioinput.v1.Prop" + "ertiesRequest\0320.viam.component.audioinpu" + "t.v1.PropertiesResponse\";\202\323\344\223\0025\0223/viam/a" + "pi/v1/component/audioinput/{name}/proper" + "ties\022\204\001\n\006Record\022+.viam.component.audioin" + "put.v1.RecordRequest\032\024.google.api.HttpBo" + "dy\"7\202\323\344\223\0021\022//viam/api/v1/component/audio" + "input/{name}/record\022\215\001\n\tDoCommand\022 .viam" + ".common.v1.DoCommandRequest\032!.viam.commo" + "n.v1.DoCommandResponse\";\202\323\344\223\0025\"3/viam/ap" + "i/v1/component/audioinput/{name}/do_comm" + "and\022\231\001\n\rGetGeometries\022$.viam.common.v1.G" + "etGeometriesRequest\032%.viam.common.v1.Get" + "GeometriesResponse\";\202\323\344\223\0025\0223/viam/api/v1" + "/component/audioinput/{name}/geometriesB" + "K\n com.viam.component.audioinput.v1Z\'go." + "viam.com/api/component/audioinput/v1b\006pr" + "oto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_component_2faudioinput_2fv1_2faudioinput_2eproto_deps[4] = { + &::descriptor_table_common_2fv1_2fcommon_2eproto, + &::descriptor_table_google_2fapi_2fannotations_2eproto, + &::descriptor_table_google_2fapi_2fhttpbody_2eproto, + &::descriptor_table_google_2fprotobuf_2fduration_2eproto, }; -static ::absl::once_flag descriptor_table_component_2faudioinput_2fv1_2faudioinput_2eproto_once; +static ::_pbi::once_flag descriptor_table_component_2faudioinput_2fv1_2faudioinput_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_component_2faudioinput_2fv1_2faudioinput_2eproto = { - false, - false, - 2209, - descriptor_table_protodef_component_2faudioinput_2fv1_2faudioinput_2eproto, + false, false, 2044, descriptor_table_protodef_component_2faudioinput_2fv1_2faudioinput_2eproto, "component/audioinput/v1/audioinput.proto", - &descriptor_table_component_2faudioinput_2fv1_2faudioinput_2eproto_once, - descriptor_table_component_2faudioinput_2fv1_2faudioinput_2eproto_deps, - 4, - 7, - schemas, - file_default_instances, - TableStruct_component_2faudioinput_2fv1_2faudioinput_2eproto::offsets, - file_level_metadata_component_2faudioinput_2fv1_2faudioinput_2eproto, - file_level_enum_descriptors_component_2faudioinput_2fv1_2faudioinput_2eproto, + &descriptor_table_component_2faudioinput_2fv1_2faudioinput_2eproto_once, descriptor_table_component_2faudioinput_2fv1_2faudioinput_2eproto_deps, 4, 7, + schemas, file_default_instances, TableStruct_component_2faudioinput_2fv1_2faudioinput_2eproto::offsets, + file_level_metadata_component_2faudioinput_2fv1_2faudioinput_2eproto, file_level_enum_descriptors_component_2faudioinput_2fv1_2faudioinput_2eproto, file_level_service_descriptors_component_2faudioinput_2fv1_2faudioinput_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_component_2faudioinput_2fv1_2faudioinput_2eproto_getter() { return &descriptor_table_component_2faudioinput_2fv1_2faudioinput_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_component_2faudioinput_2fv1_2faudioinput_2eproto(&descriptor_table_component_2faudioinput_2fv1_2faudioinput_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_component_2faudioinput_2fv1_2faudioinput_2eproto(&descriptor_table_component_2faudioinput_2fv1_2faudioinput_2eproto); namespace viam { namespace component { namespace audioinput { namespace v1 { -const ::google::protobuf::EnumDescriptor* SampleFormat_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_component_2faudioinput_2fv1_2faudioinput_2eproto); +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SampleFormat_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_component_2faudioinput_2fv1_2faudioinput_2eproto); return file_level_enum_descriptors_component_2faudioinput_2fv1_2faudioinput_2eproto[0]; } -PROTOBUF_CONSTINIT const uint32_t SampleFormat_internal_data_[] = { - 196608u, 0u, }; bool SampleFormat_IsValid(int value) { - return 0 <= value && value <= 2; + switch (value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } } + + // =================================================================== class RecordRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(RecordRequest, _impl_._has_bits_); - static const ::google::protobuf::Duration& duration(const RecordRequest* msg); - static void set_has_duration(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Duration& duration(const RecordRequest* msg); }; -const ::google::protobuf::Duration& RecordRequest::_Internal::duration(const RecordRequest* msg) { - return *msg->_impl_.duration_; +const ::PROTOBUF_NAMESPACE_ID::Duration& +RecordRequest::_Internal::duration(const RecordRequest* msg) { + return *msg->duration_; } void RecordRequest::clear_duration() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.duration_ != nullptr) _impl_.duration_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && duration_ != nullptr) { + delete duration_; + } + duration_ = nullptr; } -RecordRequest::RecordRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +RecordRequest::RecordRequest(::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.audioinput.v1.RecordRequest) } -inline PROTOBUF_NDEBUG_INLINE RecordRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -RecordRequest::RecordRequest( - ::google::protobuf::Arena* arena, - const RecordRequest& from) - : ::google::protobuf::Message(arena) { - RecordRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.duration_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Duration>(arena, *from._impl_.duration_) - : nullptr; - +RecordRequest::RecordRequest(const RecordRequest& 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_duration()) { + duration_ = new ::PROTOBUF_NAMESPACE_ID::Duration(*from.duration_); + } else { + duration_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.component.audioinput.v1.RecordRequest) } -inline PROTOBUF_NDEBUG_INLINE RecordRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} -inline void RecordRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.duration_ = {}; +inline void RecordRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +duration_ = nullptr; } + RecordRequest::~RecordRequest() { // @@protoc_insertion_point(destructor:viam.component.audioinput.v1.RecordRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void RecordRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.duration_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete duration_; } -PROTOBUF_NOINLINE void RecordRequest::Clear() { +void RecordRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void RecordRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.audioinput.v1.RecordRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.duration_ != nullptr); - _impl_.duration_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* RecordRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && duration_ != nullptr) { + delete duration_; + } + duration_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RecordRequest::_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.audioinput.v1.RecordRequest.name")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Duration duration = 2 [json_name = "duration"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_duration(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 55, 2> RecordRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(RecordRequest, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_RecordRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .google.protobuf.Duration duration = 2 [json_name = "duration"]; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(RecordRequest, _impl_.duration_)}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(RecordRequest, _impl_.name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(RecordRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Duration duration = 2 [json_name = "duration"]; - {PROTOBUF_FIELD_OFFSET(RecordRequest, _impl_.duration_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Duration>()}, - }}, {{ - "\52\4\0\0\0\0\0\0" - "viam.component.audioinput.v1.RecordRequest" - "name" - }}, -}; - -::uint8_t* RecordRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* RecordRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.audioinput.v1.RecordRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.audioinput.v1.RecordRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.audioinput.v1.RecordRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Duration duration = 2 [json_name = "duration"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::duration(this), + if (this->_internal_has_duration()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::duration(this), _Internal::duration(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.audioinput.v1.RecordRequest) return target; } -::size_t RecordRequest::ByteSizeLong() const { +size_t RecordRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.audioinput.v1.RecordRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Duration duration = 2 [json_name = "duration"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.duration_); + if (this->_internal_has_duration()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *duration_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData RecordRequest::_class_data_ = { - RecordRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RecordRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + RecordRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* RecordRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RecordRequest::GetClassData() const { return &_class_data_; } + +void RecordRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void RecordRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.audioinput.v1.RecordRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void RecordRequest::MergeFrom(const RecordRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.audioinput.v1.RecordRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_duration()->::google::protobuf::Duration::MergeFrom( - from._internal_duration()); + if (from._internal_has_duration()) { + _internal_mutable_duration()->::PROTOBUF_NAMESPACE_ID::Duration::MergeFrom(from._internal_duration()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void RecordRequest::CopyFrom(const RecordRequest& from) { @@ -631,223 +529,228 @@ void RecordRequest::CopyFrom(const RecordRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool RecordRequest::IsInitialized() const { +bool RecordRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* RecordRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void RecordRequest::InternalSwap(RecordRequest* PROTOBUF_RESTRICT other) { +void RecordRequest::InternalSwap(RecordRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.duration_, other->_impl_.duration_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(duration_, other->duration_); } -::google::protobuf::Metadata RecordRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata RecordRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2faudioinput_2fv1_2faudioinput_2eproto_getter, &descriptor_table_component_2faudioinput_2fv1_2faudioinput_2eproto_once, file_level_metadata_component_2faudioinput_2fv1_2faudioinput_2eproto[0]); } + // =================================================================== class AudioChunkInfo::_Internal { public: }; -AudioChunkInfo::AudioChunkInfo(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +AudioChunkInfo::AudioChunkInfo(::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.audioinput.v1.AudioChunkInfo) } -AudioChunkInfo::AudioChunkInfo( - ::google::protobuf::Arena* arena, const AudioChunkInfo& from) - : AudioChunkInfo(arena) { - MergeFrom(from); +AudioChunkInfo::AudioChunkInfo(const AudioChunkInfo& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&sample_format_, &from.sample_format_, + static_cast(reinterpret_cast(&sampling_rate_) - + reinterpret_cast(&sample_format_)) + sizeof(sampling_rate_)); + // @@protoc_insertion_point(copy_constructor:viam.component.audioinput.v1.AudioChunkInfo) } -inline PROTOBUF_NDEBUG_INLINE AudioChunkInfo::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void AudioChunkInfo::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, sample_format_), - 0, - offsetof(Impl_, sampling_rate_) - - offsetof(Impl_, sample_format_) + - sizeof(Impl_::sampling_rate_)); +inline void AudioChunkInfo::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&sample_format_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&sampling_rate_) - + reinterpret_cast(&sample_format_)) + sizeof(sampling_rate_)); } + AudioChunkInfo::~AudioChunkInfo() { // @@protoc_insertion_point(destructor:viam.component.audioinput.v1.AudioChunkInfo) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void AudioChunkInfo::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void AudioChunkInfo::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void AudioChunkInfo::Clear() { +void AudioChunkInfo::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.audioinput.v1.AudioChunkInfo) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&_impl_.sample_format_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.sampling_rate_) - - reinterpret_cast(&_impl_.sample_format_)) + sizeof(_impl_.sampling_rate_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* AudioChunkInfo::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + ::memset(&sample_format_, 0, static_cast( + reinterpret_cast(&sampling_rate_) - + reinterpret_cast(&sample_format_)) + sizeof(sampling_rate_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* AudioChunkInfo::_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.component.audioinput.v1.SampleFormat sample_format = 1 [json_name = "sampleFormat"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_sample_format(static_cast<::viam::component::audioinput::v1::SampleFormat>(val)); + } else + goto handle_unusual; + continue; + // uint32 channels = 2 [json_name = "channels"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + channels_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int64 sampling_rate = 3 [json_name = "samplingRate"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + sampling_rate_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 0, 2> AudioChunkInfo::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_AudioChunkInfo_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // .viam.component.audioinput.v1.SampleFormat sample_format = 1 [json_name = "sampleFormat"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(AudioChunkInfo, _impl_.sample_format_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(AudioChunkInfo, _impl_.sample_format_)}}, - // uint32 channels = 2 [json_name = "channels"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(AudioChunkInfo, _impl_.channels_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(AudioChunkInfo, _impl_.channels_)}}, - // int64 sampling_rate = 3 [json_name = "samplingRate"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(AudioChunkInfo, _impl_.sampling_rate_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(AudioChunkInfo, _impl_.sampling_rate_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.component.audioinput.v1.SampleFormat sample_format = 1 [json_name = "sampleFormat"]; - {PROTOBUF_FIELD_OFFSET(AudioChunkInfo, _impl_.sample_format_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // uint32 channels = 2 [json_name = "channels"]; - {PROTOBUF_FIELD_OFFSET(AudioChunkInfo, _impl_.channels_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, - // int64 sampling_rate = 3 [json_name = "samplingRate"]; - {PROTOBUF_FIELD_OFFSET(AudioChunkInfo, _impl_.sampling_rate_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* AudioChunkInfo::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* AudioChunkInfo::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.audioinput.v1.AudioChunkInfo) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // .viam.component.audioinput.v1.SampleFormat sample_format = 1 [json_name = "sampleFormat"]; if (this->_internal_sample_format() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_sample_format(), target); + 1, this->_internal_sample_format(), target); } // uint32 channels = 2 [json_name = "channels"]; if (this->_internal_channels() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 2, this->_internal_channels(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_channels(), target); } // int64 sampling_rate = 3 [json_name = "samplingRate"]; if (this->_internal_sampling_rate() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<3>( - stream, this->_internal_sampling_rate(), target); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(3, this->_internal_sampling_rate(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.audioinput.v1.AudioChunkInfo) return target; } -::size_t AudioChunkInfo::ByteSizeLong() const { +size_t AudioChunkInfo::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.audioinput.v1.AudioChunkInfo) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .viam.component.audioinput.v1.SampleFormat sample_format = 1 [json_name = "sampleFormat"]; if (this->_internal_sample_format() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_sample_format()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_sample_format()); } // uint32 channels = 2 [json_name = "channels"]; if (this->_internal_channels() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_channels()); + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_channels()); } // int64 sampling_rate = 3 [json_name = "samplingRate"]; if (this->_internal_sampling_rate() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( - this->_internal_sampling_rate()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_sampling_rate()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData AudioChunkInfo::_class_data_ = { - AudioChunkInfo::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AudioChunkInfo::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + AudioChunkInfo::MergeImpl }; -const ::google::protobuf::Message::ClassData* AudioChunkInfo::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AudioChunkInfo::GetClassData() const { return &_class_data_; } + +void AudioChunkInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void AudioChunkInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.audioinput.v1.AudioChunkInfo) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void AudioChunkInfo::MergeFrom(const AudioChunkInfo& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.audioinput.v1.AudioChunkInfo) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_sample_format() != 0) { - _this->_internal_set_sample_format(from._internal_sample_format()); + _internal_set_sample_format(from._internal_sample_format()); } if (from._internal_channels() != 0) { - _this->_internal_set_channels(from._internal_channels()); + _internal_set_channels(from._internal_channels()); } if (from._internal_sampling_rate() != 0) { - _this->_internal_set_sampling_rate(from._internal_sampling_rate()); + _internal_set_sampling_rate(from._internal_sampling_rate()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void AudioChunkInfo::CopyFrom(const AudioChunkInfo& from) { @@ -857,210 +760,212 @@ void AudioChunkInfo::CopyFrom(const AudioChunkInfo& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool AudioChunkInfo::IsInitialized() const { +bool AudioChunkInfo::IsInitialized() const { return true; } -::_pbi::CachedSize* AudioChunkInfo::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void AudioChunkInfo::InternalSwap(AudioChunkInfo* PROTOBUF_RESTRICT other) { +void AudioChunkInfo::InternalSwap(AudioChunkInfo* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(AudioChunkInfo, _impl_.sampling_rate_) - + sizeof(AudioChunkInfo::_impl_.sampling_rate_) - - PROTOBUF_FIELD_OFFSET(AudioChunkInfo, _impl_.sample_format_)>( - reinterpret_cast(&_impl_.sample_format_), - reinterpret_cast(&other->_impl_.sample_format_)); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(AudioChunkInfo, sampling_rate_) + + sizeof(AudioChunkInfo::sampling_rate_) + - PROTOBUF_FIELD_OFFSET(AudioChunkInfo, sample_format_)>( + reinterpret_cast(&sample_format_), + reinterpret_cast(&other->sample_format_)); } -::google::protobuf::Metadata AudioChunkInfo::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata AudioChunkInfo::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2faudioinput_2fv1_2faudioinput_2eproto_getter, &descriptor_table_component_2faudioinput_2fv1_2faudioinput_2eproto_once, file_level_metadata_component_2faudioinput_2fv1_2faudioinput_2eproto[1]); } + // =================================================================== class AudioChunk::_Internal { public: }; -AudioChunk::AudioChunk(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +AudioChunk::AudioChunk(::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.audioinput.v1.AudioChunk) } -inline PROTOBUF_NDEBUG_INLINE AudioChunk::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : data_(arena, from.data_), - _cached_size_{0} {} - -AudioChunk::AudioChunk( - ::google::protobuf::Arena* arena, - const AudioChunk& from) - : ::google::protobuf::Message(arena) { - AudioChunk* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.length_ = from._impl_.length_; - +AudioChunk::AudioChunk(const AudioChunk& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + data_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + data_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_data().empty()) { + data_.Set(from._internal_data(), + GetArenaForAllocation()); + } + length_ = from.length_; // @@protoc_insertion_point(copy_constructor:viam.component.audioinput.v1.AudioChunk) } -inline PROTOBUF_NDEBUG_INLINE AudioChunk::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : data_(arena), - _cached_size_{0} {} -inline void AudioChunk::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.length_ = {}; +inline void AudioChunk::SharedCtor() { +data_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + data_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +length_ = 0u; } + AudioChunk::~AudioChunk() { // @@protoc_insertion_point(destructor:viam.component.audioinput.v1.AudioChunk) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void AudioChunk::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.data_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + data_.Destroy(); +} + +void AudioChunk::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void AudioChunk::Clear() { +void AudioChunk::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.audioinput.v1.AudioChunk) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.data_.ClearToEmpty(); - _impl_.length_ = 0u; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* AudioChunk::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + data_.ClearToEmpty(); + length_ = 0u; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* AudioChunk::_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) { + // bytes data = 1 [json_name = "data"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_data(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // uint32 length = 2 [json_name = "length"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + length_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> AudioChunk::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_AudioChunk_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // uint32 length = 2 [json_name = "length"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(AudioChunk, _impl_.length_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(AudioChunk, _impl_.length_)}}, - // bytes data = 1 [json_name = "data"]; - {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(AudioChunk, _impl_.data_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bytes data = 1 [json_name = "data"]; - {PROTOBUF_FIELD_OFFSET(AudioChunk, _impl_.data_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // uint32 length = 2 [json_name = "length"]; - {PROTOBUF_FIELD_OFFSET(AudioChunk, _impl_.length_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* AudioChunk::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* AudioChunk::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.audioinput.v1.AudioChunk) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // bytes data = 1 [json_name = "data"]; if (!this->_internal_data().empty()) { - const std::string& _s = this->_internal_data(); - target = stream->WriteBytesMaybeAliased(1, _s, target); + target = stream->WriteBytesMaybeAliased( + 1, this->_internal_data(), target); } // uint32 length = 2 [json_name = "length"]; if (this->_internal_length() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 2, this->_internal_length(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_length(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.audioinput.v1.AudioChunk) return target; } -::size_t AudioChunk::ByteSizeLong() const { +size_t AudioChunk::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.audioinput.v1.AudioChunk) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // bytes data = 1 [json_name = "data"]; if (!this->_internal_data().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_data()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_data()); } // uint32 length = 2 [json_name = "length"]; if (this->_internal_length() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_length()); + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_length()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData AudioChunk::_class_data_ = { - AudioChunk::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AudioChunk::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + AudioChunk::MergeImpl }; -const ::google::protobuf::Message::ClassData* AudioChunk::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AudioChunk::GetClassData() const { return &_class_data_; } + +void AudioChunk::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void AudioChunk::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.audioinput.v1.AudioChunk) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void AudioChunk::MergeFrom(const AudioChunk& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.audioinput.v1.AudioChunk) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_data().empty()) { - _this->_internal_set_data(from._internal_data()); + _internal_set_data(from._internal_data()); } if (from._internal_length() != 0) { - _this->_internal_set_length(from._internal_length()); + _internal_set_length(from._internal_length()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void AudioChunk::CopyFrom(const AudioChunk& from) { @@ -1070,213 +975,221 @@ void AudioChunk::CopyFrom(const AudioChunk& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool AudioChunk::IsInitialized() const { +bool AudioChunk::IsInitialized() const { return true; } -::_pbi::CachedSize* AudioChunk::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void AudioChunk::InternalSwap(AudioChunk* PROTOBUF_RESTRICT other) { +void AudioChunk::InternalSwap(AudioChunk* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.data_, &other->_impl_.data_, arena); - swap(_impl_.length_, other->_impl_.length_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &data_, lhs_arena, + &other->data_, rhs_arena + ); + swap(length_, other->length_); } -::google::protobuf::Metadata AudioChunk::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata AudioChunk::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2faudioinput_2fv1_2faudioinput_2eproto_getter, &descriptor_table_component_2faudioinput_2fv1_2faudioinput_2eproto_once, file_level_metadata_component_2faudioinput_2fv1_2faudioinput_2eproto[2]); } + // =================================================================== class ChunksRequest::_Internal { public: }; -ChunksRequest::ChunksRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ChunksRequest::ChunksRequest(::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.audioinput.v1.ChunksRequest) } -inline PROTOBUF_NDEBUG_INLINE ChunksRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : name_(arena, from.name_), - _cached_size_{0} {} - -ChunksRequest::ChunksRequest( - ::google::protobuf::Arena* arena, - const ChunksRequest& from) - : ::google::protobuf::Message(arena) { - ChunksRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.sample_format_ = from._impl_.sample_format_; - +ChunksRequest::ChunksRequest(const ChunksRequest& 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()); + } + sample_format_ = from.sample_format_; // @@protoc_insertion_point(copy_constructor:viam.component.audioinput.v1.ChunksRequest) } -inline PROTOBUF_NDEBUG_INLINE ChunksRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : name_(arena), - _cached_size_{0} {} -inline void ChunksRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.sample_format_ = {}; +inline void ChunksRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +sample_format_ = 0; } + ChunksRequest::~ChunksRequest() { // @@protoc_insertion_point(destructor:viam.component.audioinput.v1.ChunksRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ChunksRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); } -PROTOBUF_NOINLINE void ChunksRequest::Clear() { +void ChunksRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ChunksRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.audioinput.v1.ChunksRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _impl_.sample_format_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ChunksRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + sample_format_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ChunksRequest::_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.audioinput.v1.ChunksRequest.name")); + } else + goto handle_unusual; + continue; + // .viam.component.audioinput.v1.SampleFormat sample_format = 2 [json_name = "sampleFormat"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_sample_format(static_cast<::viam::component::audioinput::v1::SampleFormat>(val)); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 55, 2> ChunksRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_ChunksRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.component.audioinput.v1.SampleFormat sample_format = 2 [json_name = "sampleFormat"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ChunksRequest, _impl_.sample_format_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(ChunksRequest, _impl_.sample_format_)}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ChunksRequest, _impl_.name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(ChunksRequest, _impl_.name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .viam.component.audioinput.v1.SampleFormat sample_format = 2 [json_name = "sampleFormat"]; - {PROTOBUF_FIELD_OFFSET(ChunksRequest, _impl_.sample_format_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - }}, - // no aux_entries - {{ - "\52\4\0\0\0\0\0\0" - "viam.component.audioinput.v1.ChunksRequest" - "name" - }}, -}; - -::uint8_t* ChunksRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ChunksRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.audioinput.v1.ChunksRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.audioinput.v1.ChunksRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.audioinput.v1.ChunksRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // .viam.component.audioinput.v1.SampleFormat sample_format = 2 [json_name = "sampleFormat"]; if (this->_internal_sample_format() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 2, this->_internal_sample_format(), target); + 2, this->_internal_sample_format(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.audioinput.v1.ChunksRequest) return target; } -::size_t ChunksRequest::ByteSizeLong() const { +size_t ChunksRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.audioinput.v1.ChunksRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .viam.component.audioinput.v1.SampleFormat sample_format = 2 [json_name = "sampleFormat"]; if (this->_internal_sample_format() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_sample_format()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_sample_format()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ChunksRequest::_class_data_ = { - ChunksRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ChunksRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ChunksRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* ChunksRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ChunksRequest::GetClassData() const { return &_class_data_; } + +void ChunksRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ChunksRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.audioinput.v1.ChunksRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ChunksRequest::MergeFrom(const ChunksRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.audioinput.v1.ChunksRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (from._internal_sample_format() != 0) { - _this->_internal_set_sample_format(from._internal_sample_format()); + _internal_set_sample_format(from._internal_sample_format()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ChunksRequest::CopyFrom(const ChunksRequest& from) { @@ -1286,139 +1199,136 @@ void ChunksRequest::CopyFrom(const ChunksRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ChunksRequest::IsInitialized() const { +bool ChunksRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* ChunksRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ChunksRequest::InternalSwap(ChunksRequest* PROTOBUF_RESTRICT other) { +void ChunksRequest::InternalSwap(ChunksRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.sample_format_, other->_impl_.sample_format_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(sample_format_, other->sample_format_); } -::google::protobuf::Metadata ChunksRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ChunksRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2faudioinput_2fv1_2faudioinput_2eproto_getter, &descriptor_table_component_2faudioinput_2fv1_2faudioinput_2eproto_once, file_level_metadata_component_2faudioinput_2fv1_2faudioinput_2eproto[3]); } + // =================================================================== class ChunksResponse::_Internal { public: - static constexpr ::int32_t kOneofCaseOffset = - PROTOBUF_FIELD_OFFSET(::viam::component::audioinput::v1::ChunksResponse, _impl_._oneof_case_); static const ::viam::component::audioinput::v1::AudioChunkInfo& info(const ChunksResponse* msg); static const ::viam::component::audioinput::v1::AudioChunk& chunk(const ChunksResponse* msg); }; -const ::viam::component::audioinput::v1::AudioChunkInfo& ChunksResponse::_Internal::info(const ChunksResponse* msg) { - return *msg->_impl_.type_.info_; +const ::viam::component::audioinput::v1::AudioChunkInfo& +ChunksResponse::_Internal::info(const ChunksResponse* msg) { + return *msg->type_.info_; } -const ::viam::component::audioinput::v1::AudioChunk& ChunksResponse::_Internal::chunk(const ChunksResponse* msg) { - return *msg->_impl_.type_.chunk_; +const ::viam::component::audioinput::v1::AudioChunk& +ChunksResponse::_Internal::chunk(const ChunksResponse* msg) { + return *msg->type_.chunk_; } void ChunksResponse::set_allocated_info(::viam::component::audioinput::v1::AudioChunkInfo* info) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_type(); if (info) { - ::google::protobuf::Arena* submessage_arena = info->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(info); if (message_arena != submessage_arena) { - info = ::google::protobuf::internal::GetOwnedMessage(message_arena, info, submessage_arena); + info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, info, submessage_arena); } set_has_info(); - _impl_.type_.info_ = info; + type_.info_ = info; } // @@protoc_insertion_point(field_set_allocated:viam.component.audioinput.v1.ChunksResponse.info) } void ChunksResponse::set_allocated_chunk(::viam::component::audioinput::v1::AudioChunk* chunk) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_type(); if (chunk) { - ::google::protobuf::Arena* submessage_arena = chunk->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(chunk); if (message_arena != submessage_arena) { - chunk = ::google::protobuf::internal::GetOwnedMessage(message_arena, chunk, submessage_arena); + chunk = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, chunk, submessage_arena); } set_has_chunk(); - _impl_.type_.chunk_ = chunk; + type_.chunk_ = chunk; } // @@protoc_insertion_point(field_set_allocated:viam.component.audioinput.v1.ChunksResponse.chunk) } -ChunksResponse::ChunksResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ChunksResponse::ChunksResponse(::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.audioinput.v1.ChunksResponse) } -inline PROTOBUF_NDEBUG_INLINE ChunksResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : type_{}, - _cached_size_{0}, - _oneof_case_{from._oneof_case_[0]} {} - -ChunksResponse::ChunksResponse( - ::google::protobuf::Arena* arena, - const ChunksResponse& from) - : ::google::protobuf::Message(arena) { - ChunksResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - switch (type_case()) { - case TYPE_NOT_SET: +ChunksResponse::ChunksResponse(const ChunksResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + clear_has_type(); + switch (from.type_case()) { + case kInfo: { + _internal_mutable_info()->::viam::component::audioinput::v1::AudioChunkInfo::MergeFrom(from._internal_info()); + break; + } + case kChunk: { + _internal_mutable_chunk()->::viam::component::audioinput::v1::AudioChunk::MergeFrom(from._internal_chunk()); + break; + } + case TYPE_NOT_SET: { break; - case kInfo: - _impl_.type_.info_ = CreateMaybeMessage<::viam::component::audioinput::v1::AudioChunkInfo>(arena, *from._impl_.type_.info_); - break; - case kChunk: - _impl_.type_.chunk_ = CreateMaybeMessage<::viam::component::audioinput::v1::AudioChunk>(arena, *from._impl_.type_.chunk_); - break; + } } - // @@protoc_insertion_point(copy_constructor:viam.component.audioinput.v1.ChunksResponse) } -inline PROTOBUF_NDEBUG_INLINE ChunksResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : type_{}, - _cached_size_{0}, - _oneof_case_{} {} -inline void ChunksResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void ChunksResponse::SharedCtor() { +clear_has_type(); } + ChunksResponse::~ChunksResponse() { // @@protoc_insertion_point(destructor:viam.component.audioinput.v1.ChunksResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ChunksResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); if (has_type()) { clear_type(); } - _impl_.~Impl_(); +} + +void ChunksResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } void ChunksResponse::clear_type() { // @@protoc_insertion_point(one_of_clear_start:viam.component.audioinput.v1.ChunksResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); switch (type_case()) { case kInfo: { - if (GetArena() == nullptr) { - delete _impl_.type_.info_; + if (GetArenaForAllocation() == nullptr) { + delete type_.info_; } break; } case kChunk: { - if (GetArena() == nullptr) { - delete _impl_.type_.chunk_; + if (GetArenaForAllocation() == nullptr) { + delete type_.chunk_; } break; } @@ -1426,152 +1336,156 @@ void ChunksResponse::clear_type() { break; } } - _impl_._oneof_case_[0] = TYPE_NOT_SET; + _oneof_case_[0] = TYPE_NOT_SET; } -PROTOBUF_NOINLINE void ChunksResponse::Clear() { +void ChunksResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.audioinput.v1.ChunksResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; clear_type(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ChunksResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ChunksResponse::_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.component.audioinput.v1.AudioChunkInfo info = 1 [json_name = "info"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_info(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.component.audioinput.v1.AudioChunk chunk = 2 [json_name = "chunk"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_chunk(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 2, 2, 0, 2> ChunksResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ChunksResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.component.audioinput.v1.AudioChunkInfo info = 1 [json_name = "info"]; - {PROTOBUF_FIELD_OFFSET(ChunksResponse, _impl_.type_.info_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .viam.component.audioinput.v1.AudioChunk chunk = 2 [json_name = "chunk"]; - {PROTOBUF_FIELD_OFFSET(ChunksResponse, _impl_.type_.chunk_), _Internal::kOneofCaseOffset + 0, 1, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::component::audioinput::v1::AudioChunkInfo>()}, - {::_pbi::TcParser::GetTable<::viam::component::audioinput::v1::AudioChunk>()}, - }}, {{ - }}, -}; - -::uint8_t* ChunksResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ChunksResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.audioinput.v1.ChunksResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - switch (type_case()) { - case kInfo: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::info(this), - _Internal::info(this).GetCachedSize(), target, stream); - break; - } - case kChunk: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::chunk(this), - _Internal::chunk(this).GetCachedSize(), target, stream); - break; - } - default: - break; + // .viam.component.audioinput.v1.AudioChunkInfo info = 1 [json_name = "info"]; + if (_internal_has_info()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::info(this), + _Internal::info(this).GetCachedSize(), target, stream); + } + + // .viam.component.audioinput.v1.AudioChunk chunk = 2 [json_name = "chunk"]; + if (_internal_has_chunk()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::chunk(this), + _Internal::chunk(this).GetCachedSize(), target, stream); } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.audioinput.v1.ChunksResponse) return target; } -::size_t ChunksResponse::ByteSizeLong() const { +size_t ChunksResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.audioinput.v1.ChunksResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; switch (type_case()) { // .viam.component.audioinput.v1.AudioChunkInfo info = 1 [json_name = "info"]; case kInfo: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.type_.info_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *type_.info_); break; } // .viam.component.audioinput.v1.AudioChunk chunk = 2 [json_name = "chunk"]; case kChunk: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.type_.chunk_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *type_.chunk_); break; } case TYPE_NOT_SET: { break; } } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ChunksResponse::_class_data_ = { - ChunksResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ChunksResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ChunksResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* ChunksResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ChunksResponse::GetClassData() const { return &_class_data_; } + +void ChunksResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ChunksResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.audioinput.v1.ChunksResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ChunksResponse::MergeFrom(const ChunksResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.audioinput.v1.ChunksResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; switch (from.type_case()) { case kInfo: { - _this->_internal_mutable_info()->::viam::component::audioinput::v1::AudioChunkInfo::MergeFrom( - from._internal_info()); + _internal_mutable_info()->::viam::component::audioinput::v1::AudioChunkInfo::MergeFrom(from._internal_info()); break; } case kChunk: { - _this->_internal_mutable_chunk()->::viam::component::audioinput::v1::AudioChunk::MergeFrom( - from._internal_chunk()); + _internal_mutable_chunk()->::viam::component::audioinput::v1::AudioChunk::MergeFrom(from._internal_chunk()); break; } case TYPE_NOT_SET: { break; } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ChunksResponse::CopyFrom(const ChunksResponse& from) { @@ -1581,186 +1495,188 @@ void ChunksResponse::CopyFrom(const ChunksResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ChunksResponse::IsInitialized() const { +bool ChunksResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* ChunksResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ChunksResponse::InternalSwap(ChunksResponse* PROTOBUF_RESTRICT other) { +void ChunksResponse::InternalSwap(ChunksResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.type_, other->_impl_.type_); - swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); + swap(type_, other->type_); + swap(_oneof_case_[0], other->_oneof_case_[0]); } -::google::protobuf::Metadata ChunksResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ChunksResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2faudioinput_2fv1_2faudioinput_2eproto_getter, &descriptor_table_component_2faudioinput_2fv1_2faudioinput_2eproto_once, file_level_metadata_component_2faudioinput_2fv1_2faudioinput_2eproto[4]); } + // =================================================================== class PropertiesRequest::_Internal { public: }; -PropertiesRequest::PropertiesRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +PropertiesRequest::PropertiesRequest(::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.audioinput.v1.PropertiesRequest) } -inline PROTOBUF_NDEBUG_INLINE PropertiesRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : name_(arena, from.name_), - _cached_size_{0} {} - -PropertiesRequest::PropertiesRequest( - ::google::protobuf::Arena* arena, - const PropertiesRequest& from) - : ::google::protobuf::Message(arena) { - PropertiesRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +PropertiesRequest::PropertiesRequest(const PropertiesRequest& 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()); + } // @@protoc_insertion_point(copy_constructor:viam.component.audioinput.v1.PropertiesRequest) } -inline PROTOBUF_NDEBUG_INLINE PropertiesRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : name_(arena), - _cached_size_{0} {} -inline void PropertiesRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void PropertiesRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + PropertiesRequest::~PropertiesRequest() { // @@protoc_insertion_point(destructor:viam.component.audioinput.v1.PropertiesRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void PropertiesRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); +} + +void PropertiesRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void PropertiesRequest::Clear() { +void PropertiesRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.audioinput.v1.PropertiesRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* PropertiesRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* PropertiesRequest::_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.audioinput.v1.PropertiesRequest.name")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 59, 2> PropertiesRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_PropertiesRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(PropertiesRequest, _impl_.name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(PropertiesRequest, _impl_.name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\56\4\0\0\0\0\0\0" - "viam.component.audioinput.v1.PropertiesRequest" - "name" - }}, -}; - -::uint8_t* PropertiesRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* PropertiesRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.audioinput.v1.PropertiesRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.audioinput.v1.PropertiesRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.audioinput.v1.PropertiesRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.audioinput.v1.PropertiesRequest) return target; } -::size_t PropertiesRequest::ByteSizeLong() const { +size_t PropertiesRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.audioinput.v1.PropertiesRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData PropertiesRequest::_class_data_ = { - PropertiesRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PropertiesRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + PropertiesRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* PropertiesRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PropertiesRequest::GetClassData() const { return &_class_data_; } + +void PropertiesRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void PropertiesRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.audioinput.v1.PropertiesRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void PropertiesRequest::MergeFrom(const PropertiesRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.audioinput.v1.PropertiesRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void PropertiesRequest::CopyFrom(const PropertiesRequest& from) { @@ -1770,355 +1686,336 @@ void PropertiesRequest::CopyFrom(const PropertiesRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool PropertiesRequest::IsInitialized() const { +bool PropertiesRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* PropertiesRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void PropertiesRequest::InternalSwap(PropertiesRequest* PROTOBUF_RESTRICT other) { +void PropertiesRequest::InternalSwap(PropertiesRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); } -::google::protobuf::Metadata PropertiesRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata PropertiesRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2faudioinput_2fv1_2faudioinput_2eproto_getter, &descriptor_table_component_2faudioinput_2fv1_2faudioinput_2eproto_once, file_level_metadata_component_2faudioinput_2fv1_2faudioinput_2eproto[5]); } + // =================================================================== class PropertiesResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(PropertiesResponse, _impl_._has_bits_); - static const ::google::protobuf::Duration& latency(const PropertiesResponse* msg); - static void set_has_latency(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Duration& latency(const PropertiesResponse* msg); }; -const ::google::protobuf::Duration& PropertiesResponse::_Internal::latency(const PropertiesResponse* msg) { - return *msg->_impl_.latency_; +const ::PROTOBUF_NAMESPACE_ID::Duration& +PropertiesResponse::_Internal::latency(const PropertiesResponse* msg) { + return *msg->latency_; } void PropertiesResponse::clear_latency() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.latency_ != nullptr) _impl_.latency_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && latency_ != nullptr) { + delete latency_; + } + latency_ = nullptr; } -PropertiesResponse::PropertiesResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +PropertiesResponse::PropertiesResponse(::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.audioinput.v1.PropertiesResponse) } -inline PROTOBUF_NDEBUG_INLINE PropertiesResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -PropertiesResponse::PropertiesResponse( - ::google::protobuf::Arena* arena, - const PropertiesResponse& from) - : ::google::protobuf::Message(arena) { - PropertiesResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.latency_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Duration>(arena, *from._impl_.latency_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, channel_count_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, channel_count_), - offsetof(Impl_, is_interleaved_) - - offsetof(Impl_, channel_count_) + - sizeof(Impl_::is_interleaved_)); - +PropertiesResponse::PropertiesResponse(const PropertiesResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_latency()) { + latency_ = new ::PROTOBUF_NAMESPACE_ID::Duration(*from.latency_); + } else { + latency_ = nullptr; + } + ::memcpy(&channel_count_, &from.channel_count_, + static_cast(reinterpret_cast(&is_interleaved_) - + reinterpret_cast(&channel_count_)) + sizeof(is_interleaved_)); // @@protoc_insertion_point(copy_constructor:viam.component.audioinput.v1.PropertiesResponse) } -inline PROTOBUF_NDEBUG_INLINE PropertiesResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void PropertiesResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, latency_), - 0, - offsetof(Impl_, is_interleaved_) - - offsetof(Impl_, latency_) + - sizeof(Impl_::is_interleaved_)); +inline void PropertiesResponse::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&latency_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&is_interleaved_) - + reinterpret_cast(&latency_)) + sizeof(is_interleaved_)); } + PropertiesResponse::~PropertiesResponse() { // @@protoc_insertion_point(destructor:viam.component.audioinput.v1.PropertiesResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void PropertiesResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.latency_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete latency_; +} + +void PropertiesResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void PropertiesResponse::Clear() { +void PropertiesResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.audioinput.v1.PropertiesResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.latency_ != nullptr); - _impl_.latency_->Clear(); - } - ::memset(&_impl_.channel_count_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.is_interleaved_) - - reinterpret_cast(&_impl_.channel_count_)) + sizeof(_impl_.is_interleaved_)); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* PropertiesResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + if (GetArenaForAllocation() == nullptr && latency_ != nullptr) { + delete latency_; + } + latency_ = nullptr; + ::memset(&channel_count_, 0, static_cast( + reinterpret_cast(&is_interleaved_) - + reinterpret_cast(&channel_count_)) + sizeof(is_interleaved_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* PropertiesResponse::_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) { + // uint32 channel_count = 1 [json_name = "channelCount"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + channel_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Duration latency = 2 [json_name = "latency"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_latency(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // uint32 sample_rate = 3 [json_name = "sampleRate"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + sample_rate_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // uint32 sample_size = 4 [json_name = "sampleSize"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + sample_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool is_big_endian = 5 [json_name = "isBigEndian"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { + is_big_endian_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool is_float = 6 [json_name = "isFloat"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { + is_float_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool is_interleaved = 7 [json_name = "isInterleaved"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 56)) { + is_interleaved_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 7, 1, 0, 2> PropertiesResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(PropertiesResponse, _impl_._has_bits_), - 0, // no _extensions_ - 7, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967168, // skipmap - offsetof(decltype(_table_), field_entries), - 7, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_PropertiesResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // uint32 channel_count = 1 [json_name = "channelCount"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(PropertiesResponse, _impl_.channel_count_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(PropertiesResponse, _impl_.channel_count_)}}, - // .google.protobuf.Duration latency = 2 [json_name = "latency"]; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(PropertiesResponse, _impl_.latency_)}}, - // uint32 sample_rate = 3 [json_name = "sampleRate"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(PropertiesResponse, _impl_.sample_rate_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(PropertiesResponse, _impl_.sample_rate_)}}, - // uint32 sample_size = 4 [json_name = "sampleSize"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(PropertiesResponse, _impl_.sample_size_), 63>(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(PropertiesResponse, _impl_.sample_size_)}}, - // bool is_big_endian = 5 [json_name = "isBigEndian"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {40, 63, 0, PROTOBUF_FIELD_OFFSET(PropertiesResponse, _impl_.is_big_endian_)}}, - // bool is_float = 6 [json_name = "isFloat"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {48, 63, 0, PROTOBUF_FIELD_OFFSET(PropertiesResponse, _impl_.is_float_)}}, - // bool is_interleaved = 7 [json_name = "isInterleaved"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {56, 63, 0, PROTOBUF_FIELD_OFFSET(PropertiesResponse, _impl_.is_interleaved_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // uint32 channel_count = 1 [json_name = "channelCount"]; - {PROTOBUF_FIELD_OFFSET(PropertiesResponse, _impl_.channel_count_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, - // .google.protobuf.Duration latency = 2 [json_name = "latency"]; - {PROTOBUF_FIELD_OFFSET(PropertiesResponse, _impl_.latency_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // uint32 sample_rate = 3 [json_name = "sampleRate"]; - {PROTOBUF_FIELD_OFFSET(PropertiesResponse, _impl_.sample_rate_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, - // uint32 sample_size = 4 [json_name = "sampleSize"]; - {PROTOBUF_FIELD_OFFSET(PropertiesResponse, _impl_.sample_size_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, - // bool is_big_endian = 5 [json_name = "isBigEndian"]; - {PROTOBUF_FIELD_OFFSET(PropertiesResponse, _impl_.is_big_endian_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // bool is_float = 6 [json_name = "isFloat"]; - {PROTOBUF_FIELD_OFFSET(PropertiesResponse, _impl_.is_float_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // bool is_interleaved = 7 [json_name = "isInterleaved"]; - {PROTOBUF_FIELD_OFFSET(PropertiesResponse, _impl_.is_interleaved_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Duration>()}, - }}, {{ - }}, -}; - -::uint8_t* PropertiesResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* PropertiesResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.audioinput.v1.PropertiesResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // uint32 channel_count = 1 [json_name = "channelCount"]; if (this->_internal_channel_count() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 1, this->_internal_channel_count(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_channel_count(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Duration latency = 2 [json_name = "latency"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::latency(this), + if (this->_internal_has_latency()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::latency(this), _Internal::latency(this).GetCachedSize(), target, stream); } // uint32 sample_rate = 3 [json_name = "sampleRate"]; if (this->_internal_sample_rate() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 3, this->_internal_sample_rate(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(3, this->_internal_sample_rate(), target); } // uint32 sample_size = 4 [json_name = "sampleSize"]; if (this->_internal_sample_size() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 4, this->_internal_sample_size(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(4, this->_internal_sample_size(), target); } // bool is_big_endian = 5 [json_name = "isBigEndian"]; if (this->_internal_is_big_endian() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 5, this->_internal_is_big_endian(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(5, this->_internal_is_big_endian(), target); } // bool is_float = 6 [json_name = "isFloat"]; if (this->_internal_is_float() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 6, this->_internal_is_float(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(6, this->_internal_is_float(), target); } // bool is_interleaved = 7 [json_name = "isInterleaved"]; if (this->_internal_is_interleaved() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 7, this->_internal_is_interleaved(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(7, this->_internal_is_interleaved(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.audioinput.v1.PropertiesResponse) return target; } -::size_t PropertiesResponse::ByteSizeLong() const { +size_t PropertiesResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.audioinput.v1.PropertiesResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .google.protobuf.Duration latency = 2 [json_name = "latency"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.latency_); + if (this->_internal_has_latency()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *latency_); } // uint32 channel_count = 1 [json_name = "channelCount"]; if (this->_internal_channel_count() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_channel_count()); + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_channel_count()); } // uint32 sample_rate = 3 [json_name = "sampleRate"]; if (this->_internal_sample_rate() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_sample_rate()); + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_sample_rate()); } // uint32 sample_size = 4 [json_name = "sampleSize"]; if (this->_internal_sample_size() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_sample_size()); + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_sample_size()); } // bool is_big_endian = 5 [json_name = "isBigEndian"]; if (this->_internal_is_big_endian() != 0) { - total_size += 2; + total_size += 1 + 1; } // bool is_float = 6 [json_name = "isFloat"]; if (this->_internal_is_float() != 0) { - total_size += 2; + total_size += 1 + 1; } // bool is_interleaved = 7 [json_name = "isInterleaved"]; if (this->_internal_is_interleaved() != 0) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData PropertiesResponse::_class_data_ = { - PropertiesResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PropertiesResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + PropertiesResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* PropertiesResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PropertiesResponse::GetClassData() const { return &_class_data_; } + +void PropertiesResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void PropertiesResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.audioinput.v1.PropertiesResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void PropertiesResponse::MergeFrom(const PropertiesResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.audioinput.v1.PropertiesResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_latency()->::google::protobuf::Duration::MergeFrom( - from._internal_latency()); + if (from._internal_has_latency()) { + _internal_mutable_latency()->::PROTOBUF_NAMESPACE_ID::Duration::MergeFrom(from._internal_latency()); } if (from._internal_channel_count() != 0) { - _this->_internal_set_channel_count(from._internal_channel_count()); + _internal_set_channel_count(from._internal_channel_count()); } if (from._internal_sample_rate() != 0) { - _this->_internal_set_sample_rate(from._internal_sample_rate()); + _internal_set_sample_rate(from._internal_sample_rate()); } if (from._internal_sample_size() != 0) { - _this->_internal_set_sample_size(from._internal_sample_size()); + _internal_set_sample_size(from._internal_sample_size()); } if (from._internal_is_big_endian() != 0) { - _this->_internal_set_is_big_endian(from._internal_is_big_endian()); + _internal_set_is_big_endian(from._internal_is_big_endian()); } if (from._internal_is_float() != 0) { - _this->_internal_set_is_float(from._internal_is_float()); + _internal_set_is_float(from._internal_is_float()); } if (from._internal_is_interleaved() != 0) { - _this->_internal_set_is_interleaved(from._internal_is_interleaved()); + _internal_set_is_interleaved(from._internal_is_interleaved()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void PropertiesResponse::CopyFrom(const PropertiesResponse& from) { @@ -2128,38 +2025,62 @@ void PropertiesResponse::CopyFrom(const PropertiesResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool PropertiesResponse::IsInitialized() const { +bool PropertiesResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* PropertiesResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void PropertiesResponse::InternalSwap(PropertiesResponse* PROTOBUF_RESTRICT other) { +void PropertiesResponse::InternalSwap(PropertiesResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(PropertiesResponse, _impl_.is_interleaved_) - + sizeof(PropertiesResponse::_impl_.is_interleaved_) - - PROTOBUF_FIELD_OFFSET(PropertiesResponse, _impl_.latency_)>( - reinterpret_cast(&_impl_.latency_), - reinterpret_cast(&other->_impl_.latency_)); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(PropertiesResponse, is_interleaved_) + + sizeof(PropertiesResponse::is_interleaved_) + - PROTOBUF_FIELD_OFFSET(PropertiesResponse, latency_)>( + reinterpret_cast(&latency_), + reinterpret_cast(&other->latency_)); } -::google::protobuf::Metadata PropertiesResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata PropertiesResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2faudioinput_2fv1_2faudioinput_2eproto_getter, &descriptor_table_component_2faudioinput_2fv1_2faudioinput_2eproto_once, file_level_metadata_component_2faudioinput_2fv1_2faudioinput_2eproto[6]); } + // @@protoc_insertion_point(namespace_scope) } // namespace v1 } // namespace audioinput } // namespace component } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::component::audioinput::v1::RecordRequest* +Arena::CreateMaybeMessage< ::viam::component::audioinput::v1::RecordRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::audioinput::v1::RecordRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::audioinput::v1::AudioChunkInfo* +Arena::CreateMaybeMessage< ::viam::component::audioinput::v1::AudioChunkInfo >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::audioinput::v1::AudioChunkInfo >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::audioinput::v1::AudioChunk* +Arena::CreateMaybeMessage< ::viam::component::audioinput::v1::AudioChunk >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::audioinput::v1::AudioChunk >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::audioinput::v1::ChunksRequest* +Arena::CreateMaybeMessage< ::viam::component::audioinput::v1::ChunksRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::audioinput::v1::ChunksRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::audioinput::v1::ChunksResponse* +Arena::CreateMaybeMessage< ::viam::component::audioinput::v1::ChunksResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::audioinput::v1::ChunksResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::audioinput::v1::PropertiesRequest* +Arena::CreateMaybeMessage< ::viam::component::audioinput::v1::PropertiesRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::audioinput::v1::PropertiesRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::audioinput::v1::PropertiesResponse* +Arena::CreateMaybeMessage< ::viam::component::audioinput::v1::PropertiesResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::audioinput::v1::PropertiesResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/component/audioinput/v1/audioinput.pb.h b/src/viam/api/component/audioinput/v1/audioinput.pb.h index c516a4062..dbc0360e6 100644 --- a/src/viam/api/component/audioinput/v1/audioinput.pb.h +++ b/src/viam/api/component/audioinput/v1/audioinput.pb.h @@ -1,65 +1,54 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: component/audioinput/v1/audioinput.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_component_2faudioinput_2fv1_2faudioinput_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_component_2faudioinput_2fv1_2faudioinput_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_component_2faudioinput_2fv1_2faudioinput_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_component_2faudioinput_2fv1_2faudioinput_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/generated_enum_reflection.h" -#include "google/protobuf/unknown_field_set.h" + +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include #include "common/v1/common.pb.h" #include "google/api/annotations.pb.h" #include "google/api/httpbody.pb.h" -#include "google/protobuf/duration.pb.h" +#include // @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - +#include #define PROTOBUF_INTERNAL_EXPORT_component_2faudioinput_2fv1_2faudioinput_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_component_2faudioinput_2fv1_2faudioinput_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_component_2faudioinput_2fv1_2faudioinput_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_component_2faudioinput_2fv1_2faudioinput_2eproto; namespace viam { namespace component { namespace audioinput { @@ -89,79 +78,70 @@ extern RecordRequestDefaultTypeInternal _RecordRequest_default_instance_; } // namespace audioinput } // namespace component } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::component::audioinput::v1::AudioChunk* Arena::CreateMaybeMessage<::viam::component::audioinput::v1::AudioChunk>(Arena*); +template<> ::viam::component::audioinput::v1::AudioChunkInfo* Arena::CreateMaybeMessage<::viam::component::audioinput::v1::AudioChunkInfo>(Arena*); +template<> ::viam::component::audioinput::v1::ChunksRequest* Arena::CreateMaybeMessage<::viam::component::audioinput::v1::ChunksRequest>(Arena*); +template<> ::viam::component::audioinput::v1::ChunksResponse* Arena::CreateMaybeMessage<::viam::component::audioinput::v1::ChunksResponse>(Arena*); +template<> ::viam::component::audioinput::v1::PropertiesRequest* Arena::CreateMaybeMessage<::viam::component::audioinput::v1::PropertiesRequest>(Arena*); +template<> ::viam::component::audioinput::v1::PropertiesResponse* Arena::CreateMaybeMessage<::viam::component::audioinput::v1::PropertiesResponse>(Arena*); +template<> ::viam::component::audioinput::v1::RecordRequest* Arena::CreateMaybeMessage<::viam::component::audioinput::v1::RecordRequest>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace viam { namespace component { namespace audioinput { namespace v1 { + enum SampleFormat : int { SAMPLE_FORMAT_UNSPECIFIED = 0, SAMPLE_FORMAT_INT16_INTERLEAVED = 1, SAMPLE_FORMAT_FLOAT32_INTERLEAVED = 2, - SampleFormat_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - SampleFormat_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), + SampleFormat_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + SampleFormat_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() }; - bool SampleFormat_IsValid(int value); -extern const uint32_t SampleFormat_internal_data_[]; -constexpr SampleFormat SampleFormat_MIN = static_cast(0); -constexpr SampleFormat SampleFormat_MAX = static_cast(2); -constexpr int SampleFormat_ARRAYSIZE = 2 + 1; -const ::google::protobuf::EnumDescriptor* -SampleFormat_descriptor(); -template -const std::string& SampleFormat_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to SampleFormat_Name()."); - return SampleFormat_Name(static_cast(value)); +constexpr SampleFormat SampleFormat_MIN = SAMPLE_FORMAT_UNSPECIFIED; +constexpr SampleFormat SampleFormat_MAX = SAMPLE_FORMAT_FLOAT32_INTERLEAVED; +constexpr int SampleFormat_ARRAYSIZE = SampleFormat_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SampleFormat_descriptor(); +template +inline const std::string& SampleFormat_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function SampleFormat_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + SampleFormat_descriptor(), enum_t_value); +} +inline bool SampleFormat_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SampleFormat* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + SampleFormat_descriptor(), name, value); } -template <> -inline const std::string& SampleFormat_Name(SampleFormat value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool SampleFormat_Parse(absl::string_view name, SampleFormat* value) { - return ::google::protobuf::internal::ParseNamedEnum( - SampleFormat_descriptor(), name, value); -} - // =================================================================== - -// ------------------------------------------------------------------- - -class PropertiesRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.audioinput.v1.PropertiesRequest) */ { +class RecordRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.audioinput.v1.RecordRequest) */ { public: - inline PropertiesRequest() : PropertiesRequest(nullptr) {} - ~PropertiesRequest() override; - template - explicit PROTOBUF_CONSTEXPR PropertiesRequest(::google::protobuf::internal::ConstantInitialized); + inline RecordRequest() : RecordRequest(nullptr) {} + ~RecordRequest() override; + explicit PROTOBUF_CONSTEXPR RecordRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline PropertiesRequest(const PropertiesRequest& from) - : PropertiesRequest(nullptr, from) {} - PropertiesRequest(PropertiesRequest&& from) noexcept - : PropertiesRequest() { + RecordRequest(const RecordRequest& from); + RecordRequest(RecordRequest&& from) noexcept + : RecordRequest() { *this = ::std::move(from); } - inline PropertiesRequest& operator=(const PropertiesRequest& from) { + inline RecordRequest& operator=(const RecordRequest& from) { CopyFrom(from); return *this; } - inline PropertiesRequest& operator=(PropertiesRequest&& from) noexcept { + inline RecordRequest& operator=(RecordRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -171,99 +151,88 @@ class PropertiesRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const PropertiesRequest& default_instance() { + static const RecordRequest& default_instance() { return *internal_default_instance(); } - static inline const PropertiesRequest* internal_default_instance() { - return reinterpret_cast( - &_PropertiesRequest_default_instance_); + static inline const RecordRequest* internal_default_instance() { + return reinterpret_cast( + &_RecordRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 5; + 0; - friend void swap(PropertiesRequest& a, PropertiesRequest& b) { + friend void swap(RecordRequest& a, RecordRequest& b) { a.Swap(&b); } - inline void Swap(PropertiesRequest* other) { + inline void Swap(RecordRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(PropertiesRequest* other) { + void UnsafeArenaSwap(RecordRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - PropertiesRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const PropertiesRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const PropertiesRequest& from) { - PropertiesRequest::MergeImpl(*this, from); + RecordRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const RecordRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const RecordRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(PropertiesRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(RecordRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.audioinput.v1.PropertiesRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.audioinput.v1.RecordRequest"; } protected: - explicit PropertiesRequest(::google::protobuf::Arena* arena); - PropertiesRequest(::google::protobuf::Arena* arena, const PropertiesRequest& from); + explicit RecordRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -271,257 +240,62 @@ class PropertiesRequest final : enum : int { kNameFieldNumber = 1, + kDurationFieldNumber = 2, }; // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); std::string* _internal_mutable_name(); - - public: - // @@protoc_insertion_point(class_scope:viam.component.audioinput.v1.PropertiesRequest) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 59, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr name_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_component_2faudioinput_2fv1_2faudioinput_2eproto; -};// ------------------------------------------------------------------- - -class ChunksRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.audioinput.v1.ChunksRequest) */ { - public: - inline ChunksRequest() : ChunksRequest(nullptr) {} - ~ChunksRequest() override; - template - explicit PROTOBUF_CONSTEXPR ChunksRequest(::google::protobuf::internal::ConstantInitialized); - - inline ChunksRequest(const ChunksRequest& from) - : ChunksRequest(nullptr, from) {} - ChunksRequest(ChunksRequest&& from) noexcept - : ChunksRequest() { - *this = ::std::move(from); - } - - inline ChunksRequest& operator=(const ChunksRequest& from) { - CopyFrom(from); - return *this; - } - inline ChunksRequest& operator=(ChunksRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ChunksRequest& default_instance() { - return *internal_default_instance(); - } - static inline const ChunksRequest* internal_default_instance() { - return reinterpret_cast( - &_ChunksRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - friend void swap(ChunksRequest& a, ChunksRequest& b) { - a.Swap(&b); - } - inline void Swap(ChunksRequest* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ChunksRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ChunksRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ChunksRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ChunksRequest& from) { - ChunksRequest::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(ChunksRequest* other); + // .google.protobuf.Duration duration = 2 [json_name = "duration"]; + bool has_duration() const; private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.audioinput.v1.ChunksRequest"; - } - protected: - explicit ChunksRequest(::google::protobuf::Arena* arena); - ChunksRequest(::google::protobuf::Arena* arena, const ChunksRequest& from); + bool _internal_has_duration() const; public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kNameFieldNumber = 1, - kSampleFormatFieldNumber = 2, - }; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + void clear_duration(); + const ::PROTOBUF_NAMESPACE_ID::Duration& duration() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Duration* release_duration(); + ::PROTOBUF_NAMESPACE_ID::Duration* mutable_duration(); + void set_allocated_duration(::PROTOBUF_NAMESPACE_ID::Duration* duration); private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - + const ::PROTOBUF_NAMESPACE_ID::Duration& _internal_duration() const; + ::PROTOBUF_NAMESPACE_ID::Duration* _internal_mutable_duration(); public: - // .viam.component.audioinput.v1.SampleFormat sample_format = 2 [json_name = "sampleFormat"]; - void clear_sample_format() ; - ::viam::component::audioinput::v1::SampleFormat sample_format() const; - void set_sample_format(::viam::component::audioinput::v1::SampleFormat value); + void unsafe_arena_set_allocated_duration( + ::PROTOBUF_NAMESPACE_ID::Duration* duration); + ::PROTOBUF_NAMESPACE_ID::Duration* unsafe_arena_release_duration(); - private: - ::viam::component::audioinput::v1::SampleFormat _internal_sample_format() const; - void _internal_set_sample_format(::viam::component::audioinput::v1::SampleFormat value); - - public: - // @@protoc_insertion_point(class_scope:viam.component.audioinput.v1.ChunksRequest) + // @@protoc_insertion_point(class_scope:viam.component.audioinput.v1.RecordRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 55, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr name_; - int sample_format_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::Duration* duration_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2faudioinput_2fv1_2faudioinput_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class AudioChunkInfo final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.audioinput.v1.AudioChunkInfo) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.audioinput.v1.AudioChunkInfo) */ { public: inline AudioChunkInfo() : AudioChunkInfo(nullptr) {} ~AudioChunkInfo() override; - template - explicit PROTOBUF_CONSTEXPR AudioChunkInfo(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR AudioChunkInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline AudioChunkInfo(const AudioChunkInfo& from) - : AudioChunkInfo(nullptr, from) {} + AudioChunkInfo(const AudioChunkInfo& from); AudioChunkInfo(AudioChunkInfo&& from) noexcept : AudioChunkInfo() { *this = ::std::move(from); @@ -533,9 +307,9 @@ class AudioChunkInfo final : } inline AudioChunkInfo& operator=(AudioChunkInfo&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -545,22 +319,13 @@ class AudioChunkInfo final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const AudioChunkInfo& default_instance() { @@ -579,65 +344,63 @@ class AudioChunkInfo final : inline void Swap(AudioChunkInfo* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(AudioChunkInfo* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - AudioChunkInfo* New(::google::protobuf::Arena* arena = nullptr) const final { + AudioChunkInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const AudioChunkInfo& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const AudioChunkInfo& from) { - AudioChunkInfo::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const AudioChunkInfo& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(AudioChunkInfo* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "viam.component.audioinput.v1.AudioChunkInfo"; } protected: - explicit AudioChunkInfo(::google::protobuf::Arena* arena); - AudioChunkInfo(::google::protobuf::Arena* arena, const AudioChunkInfo& from); + explicit AudioChunkInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -649,78 +412,55 @@ class AudioChunkInfo final : kSamplingRateFieldNumber = 3, }; // .viam.component.audioinput.v1.SampleFormat sample_format = 1 [json_name = "sampleFormat"]; - void clear_sample_format() ; + void clear_sample_format(); ::viam::component::audioinput::v1::SampleFormat sample_format() const; void set_sample_format(::viam::component::audioinput::v1::SampleFormat value); - private: ::viam::component::audioinput::v1::SampleFormat _internal_sample_format() const; void _internal_set_sample_format(::viam::component::audioinput::v1::SampleFormat value); - public: - // uint32 channels = 2 [json_name = "channels"]; - void clear_channels() ; - ::uint32_t channels() const; - void set_channels(::uint32_t value); + // uint32 channels = 2 [json_name = "channels"]; + void clear_channels(); + uint32_t channels() const; + void set_channels(uint32_t value); private: - ::uint32_t _internal_channels() const; - void _internal_set_channels(::uint32_t value); - + uint32_t _internal_channels() const; + void _internal_set_channels(uint32_t value); public: - // int64 sampling_rate = 3 [json_name = "samplingRate"]; - void clear_sampling_rate() ; - ::int64_t sampling_rate() const; - void set_sampling_rate(::int64_t value); + // int64 sampling_rate = 3 [json_name = "samplingRate"]; + void clear_sampling_rate(); + int64_t sampling_rate() const; + void set_sampling_rate(int64_t value); private: - ::int64_t _internal_sampling_rate() const; - void _internal_set_sampling_rate(::int64_t value); - + int64_t _internal_sampling_rate() const; + void _internal_set_sampling_rate(int64_t value); public: + // @@protoc_insertion_point(class_scope:viam.component.audioinput.v1.AudioChunkInfo) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - int sample_format_; - ::uint32_t channels_; - ::int64_t sampling_rate_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + int sample_format_; + uint32_t channels_; + int64_t sampling_rate_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2faudioinput_2fv1_2faudioinput_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class AudioChunk final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.audioinput.v1.AudioChunk) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.audioinput.v1.AudioChunk) */ { public: inline AudioChunk() : AudioChunk(nullptr) {} ~AudioChunk() override; - template - explicit PROTOBUF_CONSTEXPR AudioChunk(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR AudioChunk(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline AudioChunk(const AudioChunk& from) - : AudioChunk(nullptr, from) {} + AudioChunk(const AudioChunk& from); AudioChunk(AudioChunk&& from) noexcept : AudioChunk() { *this = ::std::move(from); @@ -732,9 +472,9 @@ class AudioChunk final : } inline AudioChunk& operator=(AudioChunk&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -744,22 +484,13 @@ class AudioChunk final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const AudioChunk& default_instance() { @@ -778,65 +509,63 @@ class AudioChunk final : inline void Swap(AudioChunk* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(AudioChunk* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - AudioChunk* New(::google::protobuf::Arena* arena = nullptr) const final { + AudioChunk* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const AudioChunk& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const AudioChunk& from) { - AudioChunk::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const AudioChunk& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(AudioChunk* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "viam.component.audioinput.v1.AudioChunk"; } protected: - explicit AudioChunk(::google::protobuf::Arena* arena); - AudioChunk(::google::protobuf::Arena* arena, const AudioChunk& from); + explicit AudioChunk(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -847,87 +576,64 @@ class AudioChunk final : kLengthFieldNumber = 2, }; // bytes data = 1 [json_name = "data"]; - void clear_data() ; + void clear_data(); const std::string& data() const; - template - void set_data(Arg_&& arg, Args_... args); + template + void set_data(ArgT0&& arg0, ArgT... args); std::string* mutable_data(); PROTOBUF_NODISCARD std::string* release_data(); - void set_allocated_data(std::string* value); - + void set_allocated_data(std::string* data); private: const std::string& _internal_data() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_data( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_data(const std::string& value); std::string* _internal_mutable_data(); - public: - // uint32 length = 2 [json_name = "length"]; - void clear_length() ; - ::uint32_t length() const; - void set_length(::uint32_t value); + // uint32 length = 2 [json_name = "length"]; + void clear_length(); + uint32_t length() const; + void set_length(uint32_t value); private: - ::uint32_t _internal_length() const; - void _internal_set_length(::uint32_t value); - + uint32_t _internal_length() const; + void _internal_set_length(uint32_t value); public: + // @@protoc_insertion_point(class_scope:viam.component.audioinput.v1.AudioChunk) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr data_; - ::uint32_t length_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr data_; + uint32_t length_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2faudioinput_2fv1_2faudioinput_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class RecordRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.audioinput.v1.RecordRequest) */ { +class ChunksRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.audioinput.v1.ChunksRequest) */ { public: - inline RecordRequest() : RecordRequest(nullptr) {} - ~RecordRequest() override; - template - explicit PROTOBUF_CONSTEXPR RecordRequest(::google::protobuf::internal::ConstantInitialized); + inline ChunksRequest() : ChunksRequest(nullptr) {} + ~ChunksRequest() override; + explicit PROTOBUF_CONSTEXPR ChunksRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline RecordRequest(const RecordRequest& from) - : RecordRequest(nullptr, from) {} - RecordRequest(RecordRequest&& from) noexcept - : RecordRequest() { + ChunksRequest(const ChunksRequest& from); + ChunksRequest(ChunksRequest&& from) noexcept + : ChunksRequest() { *this = ::std::move(from); } - inline RecordRequest& operator=(const RecordRequest& from) { + inline ChunksRequest& operator=(const ChunksRequest& from) { CopyFrom(from); return *this; } - inline RecordRequest& operator=(RecordRequest&& from) noexcept { + inline ChunksRequest& operator=(ChunksRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -937,99 +643,88 @@ class RecordRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const RecordRequest& default_instance() { + static const ChunksRequest& default_instance() { return *internal_default_instance(); } - static inline const RecordRequest* internal_default_instance() { - return reinterpret_cast( - &_RecordRequest_default_instance_); + static inline const ChunksRequest* internal_default_instance() { + return reinterpret_cast( + &_ChunksRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 0; + 3; - friend void swap(RecordRequest& a, RecordRequest& b) { + friend void swap(ChunksRequest& a, ChunksRequest& b) { a.Swap(&b); } - inline void Swap(RecordRequest* other) { + inline void Swap(ChunksRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RecordRequest* other) { + void UnsafeArenaSwap(ChunksRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - RecordRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const RecordRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const RecordRequest& from) { - RecordRequest::MergeImpl(*this, from); + ChunksRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ChunksRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ChunksRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(RecordRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(ChunksRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.audioinput.v1.RecordRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.audioinput.v1.ChunksRequest"; } protected: - explicit RecordRequest(::google::protobuf::Arena* arena); - RecordRequest(::google::protobuf::Arena* arena, const RecordRequest& from); + explicit ChunksRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1037,96 +732,67 @@ class RecordRequest final : enum : int { kNameFieldNumber = 1, - kDurationFieldNumber = 2, + kSampleFormatFieldNumber = 2, }; // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); std::string* _internal_mutable_name(); - public: - // .google.protobuf.Duration duration = 2 [json_name = "duration"]; - bool has_duration() const; - void clear_duration() ; - const ::google::protobuf::Duration& duration() const; - PROTOBUF_NODISCARD ::google::protobuf::Duration* release_duration(); - ::google::protobuf::Duration* mutable_duration(); - void set_allocated_duration(::google::protobuf::Duration* value); - void unsafe_arena_set_allocated_duration(::google::protobuf::Duration* value); - ::google::protobuf::Duration* unsafe_arena_release_duration(); + // .viam.component.audioinput.v1.SampleFormat sample_format = 2 [json_name = "sampleFormat"]; + void clear_sample_format(); + ::viam::component::audioinput::v1::SampleFormat sample_format() const; + void set_sample_format(::viam::component::audioinput::v1::SampleFormat value); private: - const ::google::protobuf::Duration& _internal_duration() const; - ::google::protobuf::Duration* _internal_mutable_duration(); - + ::viam::component::audioinput::v1::SampleFormat _internal_sample_format() const; + void _internal_set_sample_format(::viam::component::audioinput::v1::SampleFormat value); public: - // @@protoc_insertion_point(class_scope:viam.component.audioinput.v1.RecordRequest) + + // @@protoc_insertion_point(class_scope:viam.component.audioinput.v1.ChunksRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 55, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Duration* duration_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + int sample_format_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2faudioinput_2fv1_2faudioinput_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class PropertiesResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.audioinput.v1.PropertiesResponse) */ { +class ChunksResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.audioinput.v1.ChunksResponse) */ { public: - inline PropertiesResponse() : PropertiesResponse(nullptr) {} - ~PropertiesResponse() override; - template - explicit PROTOBUF_CONSTEXPR PropertiesResponse(::google::protobuf::internal::ConstantInitialized); + inline ChunksResponse() : ChunksResponse(nullptr) {} + ~ChunksResponse() override; + explicit PROTOBUF_CONSTEXPR ChunksResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline PropertiesResponse(const PropertiesResponse& from) - : PropertiesResponse(nullptr, from) {} - PropertiesResponse(PropertiesResponse&& from) noexcept - : PropertiesResponse() { + ChunksResponse(const ChunksResponse& from); + ChunksResponse(ChunksResponse&& from) noexcept + : ChunksResponse() { *this = ::std::move(from); } - inline PropertiesResponse& operator=(const PropertiesResponse& from) { + inline ChunksResponse& operator=(const ChunksResponse& from) { CopyFrom(from); return *this; } - inline PropertiesResponse& operator=(PropertiesResponse&& from) noexcept { + inline ChunksResponse& operator=(ChunksResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1136,250 +802,336 @@ class PropertiesResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const PropertiesResponse& default_instance() { + static const ChunksResponse& default_instance() { return *internal_default_instance(); } - static inline const PropertiesResponse* internal_default_instance() { - return reinterpret_cast( - &_PropertiesResponse_default_instance_); + enum TypeCase { + kInfo = 1, + kChunk = 2, + TYPE_NOT_SET = 0, + }; + + static inline const ChunksResponse* internal_default_instance() { + return reinterpret_cast( + &_ChunksResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 6; + 4; - friend void swap(PropertiesResponse& a, PropertiesResponse& b) { + friend void swap(ChunksResponse& a, ChunksResponse& b) { a.Swap(&b); } - inline void Swap(PropertiesResponse* other) { + inline void Swap(ChunksResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(PropertiesResponse* other) { + void UnsafeArenaSwap(ChunksResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - PropertiesResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const PropertiesResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const PropertiesResponse& from) { - PropertiesResponse::MergeImpl(*this, from); + ChunksResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ChunksResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ChunksResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(PropertiesResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(ChunksResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.audioinput.v1.PropertiesResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.audioinput.v1.ChunksResponse"; } protected: - explicit PropertiesResponse(::google::protobuf::Arena* arena); - PropertiesResponse(::google::protobuf::Arena* arena, const PropertiesResponse& from); + explicit ChunksResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kLatencyFieldNumber = 2, - kChannelCountFieldNumber = 1, - kSampleRateFieldNumber = 3, - kSampleSizeFieldNumber = 4, - kIsBigEndianFieldNumber = 5, - kIsFloatFieldNumber = 6, - kIsInterleavedFieldNumber = 7, + kInfoFieldNumber = 1, + kChunkFieldNumber = 2, }; - // .google.protobuf.Duration latency = 2 [json_name = "latency"]; - bool has_latency() const; - void clear_latency() ; - const ::google::protobuf::Duration& latency() const; - PROTOBUF_NODISCARD ::google::protobuf::Duration* release_latency(); - ::google::protobuf::Duration* mutable_latency(); - void set_allocated_latency(::google::protobuf::Duration* value); - void unsafe_arena_set_allocated_latency(::google::protobuf::Duration* value); - ::google::protobuf::Duration* unsafe_arena_release_latency(); - + // .viam.component.audioinput.v1.AudioChunkInfo info = 1 [json_name = "info"]; + bool has_info() const; private: - const ::google::protobuf::Duration& _internal_latency() const; - ::google::protobuf::Duration* _internal_mutable_latency(); - + bool _internal_has_info() const; public: - // uint32 channel_count = 1 [json_name = "channelCount"]; - void clear_channel_count() ; - ::uint32_t channel_count() const; - void set_channel_count(::uint32_t value); - + void clear_info(); + const ::viam::component::audioinput::v1::AudioChunkInfo& info() const; + PROTOBUF_NODISCARD ::viam::component::audioinput::v1::AudioChunkInfo* release_info(); + ::viam::component::audioinput::v1::AudioChunkInfo* mutable_info(); + void set_allocated_info(::viam::component::audioinput::v1::AudioChunkInfo* info); private: - ::uint32_t _internal_channel_count() const; - void _internal_set_channel_count(::uint32_t value); - + const ::viam::component::audioinput::v1::AudioChunkInfo& _internal_info() const; + ::viam::component::audioinput::v1::AudioChunkInfo* _internal_mutable_info(); public: - // uint32 sample_rate = 3 [json_name = "sampleRate"]; - void clear_sample_rate() ; - ::uint32_t sample_rate() const; - void set_sample_rate(::uint32_t value); + void unsafe_arena_set_allocated_info( + ::viam::component::audioinput::v1::AudioChunkInfo* info); + ::viam::component::audioinput::v1::AudioChunkInfo* unsafe_arena_release_info(); + // .viam.component.audioinput.v1.AudioChunk chunk = 2 [json_name = "chunk"]; + bool has_chunk() const; private: - ::uint32_t _internal_sample_rate() const; - void _internal_set_sample_rate(::uint32_t value); - + bool _internal_has_chunk() const; public: - // uint32 sample_size = 4 [json_name = "sampleSize"]; - void clear_sample_size() ; - ::uint32_t sample_size() const; - void set_sample_size(::uint32_t value); - + void clear_chunk(); + const ::viam::component::audioinput::v1::AudioChunk& chunk() const; + PROTOBUF_NODISCARD ::viam::component::audioinput::v1::AudioChunk* release_chunk(); + ::viam::component::audioinput::v1::AudioChunk* mutable_chunk(); + void set_allocated_chunk(::viam::component::audioinput::v1::AudioChunk* chunk); private: - ::uint32_t _internal_sample_size() const; - void _internal_set_sample_size(::uint32_t value); - + const ::viam::component::audioinput::v1::AudioChunk& _internal_chunk() const; + ::viam::component::audioinput::v1::AudioChunk* _internal_mutable_chunk(); public: - // bool is_big_endian = 5 [json_name = "isBigEndian"]; - void clear_is_big_endian() ; - bool is_big_endian() const; - void set_is_big_endian(bool value); + void unsafe_arena_set_allocated_chunk( + ::viam::component::audioinput::v1::AudioChunk* chunk); + ::viam::component::audioinput::v1::AudioChunk* unsafe_arena_release_chunk(); - private: - bool _internal_is_big_endian() const; - void _internal_set_is_big_endian(bool value); + void clear_type(); + TypeCase type_case() const; + // @@protoc_insertion_point(class_scope:viam.component.audioinput.v1.ChunksResponse) + private: + class _Internal; + void set_has_info(); + void set_has_chunk(); + + inline bool has_type() const; + inline void clear_has_type(); + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + union TypeUnion { + constexpr TypeUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::viam::component::audioinput::v1::AudioChunkInfo* info_; + ::viam::component::audioinput::v1::AudioChunk* chunk_; + } type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; + + friend struct ::TableStruct_component_2faudioinput_2fv1_2faudioinput_2eproto; +}; +// ------------------------------------------------------------------- + +class PropertiesRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.audioinput.v1.PropertiesRequest) */ { + public: + inline PropertiesRequest() : PropertiesRequest(nullptr) {} + ~PropertiesRequest() override; + explicit PROTOBUF_CONSTEXPR PropertiesRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + PropertiesRequest(const PropertiesRequest& from); + PropertiesRequest(PropertiesRequest&& from) noexcept + : PropertiesRequest() { + *this = ::std::move(from); + } + + inline PropertiesRequest& operator=(const PropertiesRequest& from) { + CopyFrom(from); + return *this; + } + inline PropertiesRequest& operator=(PropertiesRequest&& 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 PropertiesRequest& default_instance() { + return *internal_default_instance(); + } + static inline const PropertiesRequest* internal_default_instance() { + return reinterpret_cast( + &_PropertiesRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(PropertiesRequest& a, PropertiesRequest& b) { + a.Swap(&b); + } + inline void Swap(PropertiesRequest* 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(PropertiesRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + PropertiesRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const PropertiesRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const PropertiesRequest& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: - // bool is_float = 6 [json_name = "isFloat"]; - void clear_is_float() ; - bool is_float() const; - void set_is_float(bool value); + 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: - bool _internal_is_float() const; - void _internal_set_is_float(bool value); + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(PropertiesRequest* other); + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.audioinput.v1.PropertiesRequest"; + } + protected: + explicit PropertiesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - // bool is_interleaved = 7 [json_name = "isInterleaved"]; - void clear_is_interleaved() ; - bool is_interleaved() const; - void set_is_interleaved(bool value); + 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, + }; + // 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: - bool _internal_is_interleaved() const; - void _internal_set_is_interleaved(bool value); - + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); public: - // @@protoc_insertion_point(class_scope:viam.component.audioinput.v1.PropertiesResponse) + + // @@protoc_insertion_point(class_scope:viam.component.audioinput.v1.PropertiesRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 7, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::Duration* latency_; - ::uint32_t channel_count_; - ::uint32_t sample_rate_; - ::uint32_t sample_size_; - bool is_big_endian_; - bool is_float_; - bool is_interleaved_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2faudioinput_2fv1_2faudioinput_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ChunksResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.audioinput.v1.ChunksResponse) */ { +class PropertiesResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.audioinput.v1.PropertiesResponse) */ { public: - inline ChunksResponse() : ChunksResponse(nullptr) {} - ~ChunksResponse() override; - template - explicit PROTOBUF_CONSTEXPR ChunksResponse(::google::protobuf::internal::ConstantInitialized); + inline PropertiesResponse() : PropertiesResponse(nullptr) {} + ~PropertiesResponse() override; + explicit PROTOBUF_CONSTEXPR PropertiesResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ChunksResponse(const ChunksResponse& from) - : ChunksResponse(nullptr, from) {} - ChunksResponse(ChunksResponse&& from) noexcept - : ChunksResponse() { + PropertiesResponse(const PropertiesResponse& from); + PropertiesResponse(PropertiesResponse&& from) noexcept + : PropertiesResponse() { *this = ::std::move(from); } - inline ChunksResponse& operator=(const ChunksResponse& from) { + inline PropertiesResponse& operator=(const PropertiesResponse& from) { CopyFrom(from); return *this; } - inline ChunksResponse& operator=(ChunksResponse&& from) noexcept { + inline PropertiesResponse& operator=(PropertiesResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1389,354 +1141,334 @@ class ChunksResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ChunksResponse& default_instance() { + static const PropertiesResponse& default_instance() { return *internal_default_instance(); } - enum TypeCase { - kInfo = 1, - kChunk = 2, - TYPE_NOT_SET = 0, - }; - - static inline const ChunksResponse* internal_default_instance() { - return reinterpret_cast( - &_ChunksResponse_default_instance_); + static inline const PropertiesResponse* internal_default_instance() { + return reinterpret_cast( + &_PropertiesResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 4; + 6; - friend void swap(ChunksResponse& a, ChunksResponse& b) { + friend void swap(PropertiesResponse& a, PropertiesResponse& b) { a.Swap(&b); } - inline void Swap(ChunksResponse* other) { + inline void Swap(PropertiesResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ChunksResponse* other) { + void UnsafeArenaSwap(PropertiesResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ChunksResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ChunksResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ChunksResponse& from) { - ChunksResponse::MergeImpl(*this, from); + PropertiesResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const PropertiesResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const PropertiesResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ChunksResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(PropertiesResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.audioinput.v1.ChunksResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.audioinput.v1.PropertiesResponse"; } protected: - explicit ChunksResponse(::google::protobuf::Arena* arena); - ChunksResponse(::google::protobuf::Arena* arena, const ChunksResponse& from); + explicit PropertiesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kInfoFieldNumber = 1, - kChunkFieldNumber = 2, + kLatencyFieldNumber = 2, + kChannelCountFieldNumber = 1, + kSampleRateFieldNumber = 3, + kSampleSizeFieldNumber = 4, + kIsBigEndianFieldNumber = 5, + kIsFloatFieldNumber = 6, + kIsInterleavedFieldNumber = 7, }; - // .viam.component.audioinput.v1.AudioChunkInfo info = 1 [json_name = "info"]; - bool has_info() const; + // .google.protobuf.Duration latency = 2 [json_name = "latency"]; + bool has_latency() const; private: - bool _internal_has_info() const; - + bool _internal_has_latency() const; public: - void clear_info() ; - const ::viam::component::audioinput::v1::AudioChunkInfo& info() const; - PROTOBUF_NODISCARD ::viam::component::audioinput::v1::AudioChunkInfo* release_info(); - ::viam::component::audioinput::v1::AudioChunkInfo* mutable_info(); - void set_allocated_info(::viam::component::audioinput::v1::AudioChunkInfo* value); - void unsafe_arena_set_allocated_info(::viam::component::audioinput::v1::AudioChunkInfo* value); - ::viam::component::audioinput::v1::AudioChunkInfo* unsafe_arena_release_info(); + void clear_latency(); + const ::PROTOBUF_NAMESPACE_ID::Duration& latency() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Duration* release_latency(); + ::PROTOBUF_NAMESPACE_ID::Duration* mutable_latency(); + void set_allocated_latency(::PROTOBUF_NAMESPACE_ID::Duration* latency); + private: + const ::PROTOBUF_NAMESPACE_ID::Duration& _internal_latency() const; + ::PROTOBUF_NAMESPACE_ID::Duration* _internal_mutable_latency(); + public: + void unsafe_arena_set_allocated_latency( + ::PROTOBUF_NAMESPACE_ID::Duration* latency); + ::PROTOBUF_NAMESPACE_ID::Duration* unsafe_arena_release_latency(); + // uint32 channel_count = 1 [json_name = "channelCount"]; + void clear_channel_count(); + uint32_t channel_count() const; + void set_channel_count(uint32_t value); private: - const ::viam::component::audioinput::v1::AudioChunkInfo& _internal_info() const; - ::viam::component::audioinput::v1::AudioChunkInfo* _internal_mutable_info(); + uint32_t _internal_channel_count() const; + void _internal_set_channel_count(uint32_t value); + public: + // uint32 sample_rate = 3 [json_name = "sampleRate"]; + void clear_sample_rate(); + uint32_t sample_rate() const; + void set_sample_rate(uint32_t value); + private: + uint32_t _internal_sample_rate() const; + void _internal_set_sample_rate(uint32_t value); public: - // .viam.component.audioinput.v1.AudioChunk chunk = 2 [json_name = "chunk"]; - bool has_chunk() const; + + // uint32 sample_size = 4 [json_name = "sampleSize"]; + void clear_sample_size(); + uint32_t sample_size() const; + void set_sample_size(uint32_t value); private: - bool _internal_has_chunk() const; + uint32_t _internal_sample_size() const; + void _internal_set_sample_size(uint32_t value); + public: + // bool is_big_endian = 5 [json_name = "isBigEndian"]; + void clear_is_big_endian(); + bool is_big_endian() const; + void set_is_big_endian(bool value); + private: + bool _internal_is_big_endian() const; + void _internal_set_is_big_endian(bool value); public: - void clear_chunk() ; - const ::viam::component::audioinput::v1::AudioChunk& chunk() const; - PROTOBUF_NODISCARD ::viam::component::audioinput::v1::AudioChunk* release_chunk(); - ::viam::component::audioinput::v1::AudioChunk* mutable_chunk(); - void set_allocated_chunk(::viam::component::audioinput::v1::AudioChunk* value); - void unsafe_arena_set_allocated_chunk(::viam::component::audioinput::v1::AudioChunk* value); - ::viam::component::audioinput::v1::AudioChunk* unsafe_arena_release_chunk(); + // bool is_float = 6 [json_name = "isFloat"]; + void clear_is_float(); + bool is_float() const; + void set_is_float(bool value); private: - const ::viam::component::audioinput::v1::AudioChunk& _internal_chunk() const; - ::viam::component::audioinput::v1::AudioChunk* _internal_mutable_chunk(); + bool _internal_is_float() const; + void _internal_set_is_float(bool value); + public: + // bool is_interleaved = 7 [json_name = "isInterleaved"]; + void clear_is_interleaved(); + bool is_interleaved() const; + void set_is_interleaved(bool value); + private: + bool _internal_is_interleaved() const; + void _internal_set_is_interleaved(bool value); public: - void clear_type(); - TypeCase type_case() const; - // @@protoc_insertion_point(class_scope:viam.component.audioinput.v1.ChunksResponse) + + // @@protoc_insertion_point(class_scope:viam.component.audioinput.v1.PropertiesResponse) private: class _Internal; - void set_has_info(); - void set_has_chunk(); - - inline bool has_type() const; - inline void clear_has_type(); - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 2, 2, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - union TypeUnion { - constexpr TypeUnion() : _constinit_{} {} - ::google::protobuf::internal::ConstantInitialized _constinit_; - ::viam::component::audioinput::v1::AudioChunkInfo* info_; - ::viam::component::audioinput::v1::AudioChunk* chunk_; - } type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t _oneof_case_[1]; - - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::Duration* latency_; + uint32_t channel_count_; + uint32_t sample_rate_; + uint32_t sample_size_; + bool is_big_endian_; + bool is_float_; + bool is_interleaved_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2faudioinput_2fv1_2faudioinput_2eproto; }; - // =================================================================== - - // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ -// ------------------------------------------------------------------- - // RecordRequest // string name = 1 [json_name = "name"]; inline void RecordRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& RecordRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& RecordRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.audioinput.v1.RecordRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void RecordRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void RecordRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.audioinput.v1.RecordRequest.name) } -inline std::string* RecordRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* RecordRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.audioinput.v1.RecordRequest.name) return _s; } inline const std::string& RecordRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void RecordRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* RecordRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* RecordRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.audioinput.v1.RecordRequest.name) - return _impl_.name_.Release(); -} -inline void RecordRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void RecordRequest::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.audioinput.v1.RecordRequest.name) } // .google.protobuf.Duration duration = 2 [json_name = "duration"]; +inline bool RecordRequest::_internal_has_duration() const { + return this != internal_default_instance() && duration_ != nullptr; +} inline bool RecordRequest::has_duration() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.duration_ != nullptr); - return value; + return _internal_has_duration(); } -inline const ::google::protobuf::Duration& RecordRequest::_internal_duration() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Duration* p = _impl_.duration_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Duration_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Duration& RecordRequest::_internal_duration() const { + const ::PROTOBUF_NAMESPACE_ID::Duration* p = duration_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Duration_default_instance_); } -inline const ::google::protobuf::Duration& RecordRequest::duration() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Duration& RecordRequest::duration() const { // @@protoc_insertion_point(field_get:viam.component.audioinput.v1.RecordRequest.duration) return _internal_duration(); } -inline void RecordRequest::unsafe_arena_set_allocated_duration(::google::protobuf::Duration* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.duration_); +inline void RecordRequest::unsafe_arena_set_allocated_duration( + ::PROTOBUF_NAMESPACE_ID::Duration* duration) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(duration_); } - _impl_.duration_ = reinterpret_cast<::google::protobuf::Duration*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + duration_ = duration; + if (duration) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.audioinput.v1.RecordRequest.duration) } -inline ::google::protobuf::Duration* RecordRequest::release_duration() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Duration* released = _impl_.duration_; - _impl_.duration_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Duration* RecordRequest::release_duration() { + + ::PROTOBUF_NAMESPACE_ID::Duration* temp = duration_; + duration_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Duration* RecordRequest::unsafe_arena_release_duration() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Duration* RecordRequest::unsafe_arena_release_duration() { // @@protoc_insertion_point(field_release:viam.component.audioinput.v1.RecordRequest.duration) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Duration* temp = _impl_.duration_; - _impl_.duration_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Duration* temp = duration_; + duration_ = nullptr; return temp; } -inline ::google::protobuf::Duration* RecordRequest::_internal_mutable_duration() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.duration_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArena()); - _impl_.duration_ = reinterpret_cast<::google::protobuf::Duration*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Duration* RecordRequest::_internal_mutable_duration() { + + if (duration_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Duration>(GetArenaForAllocation()); + duration_ = p; } - return _impl_.duration_; + return duration_; } -inline ::google::protobuf::Duration* RecordRequest::mutable_duration() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Duration* _msg = _internal_mutable_duration(); +inline ::PROTOBUF_NAMESPACE_ID::Duration* RecordRequest::mutable_duration() { + ::PROTOBUF_NAMESPACE_ID::Duration* _msg = _internal_mutable_duration(); // @@protoc_insertion_point(field_mutable:viam.component.audioinput.v1.RecordRequest.duration) return _msg; } -inline void RecordRequest::set_allocated_duration(::google::protobuf::Duration* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void RecordRequest::set_allocated_duration(::PROTOBUF_NAMESPACE_ID::Duration* duration) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.duration_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(duration_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (duration) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(duration)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + duration = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, duration, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.duration_ = reinterpret_cast<::google::protobuf::Duration*>(value); + duration_ = duration; // @@protoc_insertion_point(field_set_allocated:viam.component.audioinput.v1.RecordRequest.duration) } @@ -1746,72 +1478,63 @@ inline void RecordRequest::set_allocated_duration(::google::protobuf::Duration* // .viam.component.audioinput.v1.SampleFormat sample_format = 1 [json_name = "sampleFormat"]; inline void AudioChunkInfo::clear_sample_format() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.sample_format_ = 0; + sample_format_ = 0; +} +inline ::viam::component::audioinput::v1::SampleFormat AudioChunkInfo::_internal_sample_format() const { + return static_cast< ::viam::component::audioinput::v1::SampleFormat >(sample_format_); } inline ::viam::component::audioinput::v1::SampleFormat AudioChunkInfo::sample_format() const { // @@protoc_insertion_point(field_get:viam.component.audioinput.v1.AudioChunkInfo.sample_format) return _internal_sample_format(); } +inline void AudioChunkInfo::_internal_set_sample_format(::viam::component::audioinput::v1::SampleFormat value) { + + sample_format_ = value; +} inline void AudioChunkInfo::set_sample_format(::viam::component::audioinput::v1::SampleFormat value) { _internal_set_sample_format(value); // @@protoc_insertion_point(field_set:viam.component.audioinput.v1.AudioChunkInfo.sample_format) } -inline ::viam::component::audioinput::v1::SampleFormat AudioChunkInfo::_internal_sample_format() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::viam::component::audioinput::v1::SampleFormat>(_impl_.sample_format_); -} -inline void AudioChunkInfo::_internal_set_sample_format(::viam::component::audioinput::v1::SampleFormat value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.sample_format_ = value; -} // uint32 channels = 2 [json_name = "channels"]; inline void AudioChunkInfo::clear_channels() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.channels_ = 0u; + channels_ = 0u; +} +inline uint32_t AudioChunkInfo::_internal_channels() const { + return channels_; } -inline ::uint32_t AudioChunkInfo::channels() const { +inline uint32_t AudioChunkInfo::channels() const { // @@protoc_insertion_point(field_get:viam.component.audioinput.v1.AudioChunkInfo.channels) return _internal_channels(); } -inline void AudioChunkInfo::set_channels(::uint32_t value) { +inline void AudioChunkInfo::_internal_set_channels(uint32_t value) { + + channels_ = value; +} +inline void AudioChunkInfo::set_channels(uint32_t value) { _internal_set_channels(value); // @@protoc_insertion_point(field_set:viam.component.audioinput.v1.AudioChunkInfo.channels) } -inline ::uint32_t AudioChunkInfo::_internal_channels() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.channels_; -} -inline void AudioChunkInfo::_internal_set_channels(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.channels_ = value; -} // int64 sampling_rate = 3 [json_name = "samplingRate"]; inline void AudioChunkInfo::clear_sampling_rate() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.sampling_rate_ = ::int64_t{0}; + sampling_rate_ = int64_t{0}; +} +inline int64_t AudioChunkInfo::_internal_sampling_rate() const { + return sampling_rate_; } -inline ::int64_t AudioChunkInfo::sampling_rate() const { +inline int64_t AudioChunkInfo::sampling_rate() const { // @@protoc_insertion_point(field_get:viam.component.audioinput.v1.AudioChunkInfo.sampling_rate) return _internal_sampling_rate(); } -inline void AudioChunkInfo::set_sampling_rate(::int64_t value) { +inline void AudioChunkInfo::_internal_set_sampling_rate(int64_t value) { + + sampling_rate_ = value; +} +inline void AudioChunkInfo::set_sampling_rate(int64_t value) { _internal_set_sampling_rate(value); // @@protoc_insertion_point(field_set:viam.component.audioinput.v1.AudioChunkInfo.sampling_rate) } -inline ::int64_t AudioChunkInfo::_internal_sampling_rate() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.sampling_rate_; -} -inline void AudioChunkInfo::_internal_set_sampling_rate(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.sampling_rate_ = value; -} // ------------------------------------------------------------------- @@ -1819,79 +1542,73 @@ inline void AudioChunkInfo::_internal_set_sampling_rate(::int64_t value) { // bytes data = 1 [json_name = "data"]; inline void AudioChunk::clear_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.data_.ClearToEmpty(); + data_.ClearToEmpty(); } -inline const std::string& AudioChunk::data() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& AudioChunk::data() const { // @@protoc_insertion_point(field_get:viam.component.audioinput.v1.AudioChunk.data) return _internal_data(); } -template -inline PROTOBUF_ALWAYS_INLINE void AudioChunk::set_data(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.data_.SetBytes(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void AudioChunk::set_data(ArgT0&& arg0, ArgT... args) { + + data_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.audioinput.v1.AudioChunk.data) } -inline std::string* AudioChunk::mutable_data() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* AudioChunk::mutable_data() { std::string* _s = _internal_mutable_data(); // @@protoc_insertion_point(field_mutable:viam.component.audioinput.v1.AudioChunk.data) return _s; } inline const std::string& AudioChunk::_internal_data() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.data_.Get(); + return data_.Get(); } inline void AudioChunk::_internal_set_data(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.data_.Set(value, GetArena()); + + data_.Set(value, GetArenaForAllocation()); } inline std::string* AudioChunk::_internal_mutable_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.data_.Mutable( GetArena()); + + return data_.Mutable(GetArenaForAllocation()); } inline std::string* AudioChunk::release_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.audioinput.v1.AudioChunk.data) - return _impl_.data_.Release(); -} -inline void AudioChunk::set_allocated_data(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.data_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.data_.IsDefault()) { - _impl_.data_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return data_.Release(); +} +inline void AudioChunk::set_allocated_data(std::string* data) { + if (data != nullptr) { + + } else { + + } + data_.SetAllocated(data, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (data_.IsDefault()) { + data_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.component.audioinput.v1.AudioChunk.data) } // uint32 length = 2 [json_name = "length"]; inline void AudioChunk::clear_length() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.length_ = 0u; + length_ = 0u; +} +inline uint32_t AudioChunk::_internal_length() const { + return length_; } -inline ::uint32_t AudioChunk::length() const { +inline uint32_t AudioChunk::length() const { // @@protoc_insertion_point(field_get:viam.component.audioinput.v1.AudioChunk.length) return _internal_length(); } -inline void AudioChunk::set_length(::uint32_t value) { +inline void AudioChunk::_internal_set_length(uint32_t value) { + + length_ = value; +} +inline void AudioChunk::set_length(uint32_t value) { _internal_set_length(value); // @@protoc_insertion_point(field_set:viam.component.audioinput.v1.AudioChunk.length) } -inline ::uint32_t AudioChunk::_internal_length() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.length_; -} -inline void AudioChunk::_internal_set_length(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.length_ = value; -} // ------------------------------------------------------------------- @@ -1899,231 +1616,221 @@ inline void AudioChunk::_internal_set_length(::uint32_t value) { // string name = 1 [json_name = "name"]; inline void ChunksRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& ChunksRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ChunksRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.audioinput.v1.ChunksRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void ChunksRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ChunksRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.audioinput.v1.ChunksRequest.name) } -inline std::string* ChunksRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ChunksRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.audioinput.v1.ChunksRequest.name) return _s; } inline const std::string& ChunksRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void ChunksRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* ChunksRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* ChunksRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.audioinput.v1.ChunksRequest.name) - return _impl_.name_.Release(); -} -inline void ChunksRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void ChunksRequest::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.audioinput.v1.ChunksRequest.name) } // .viam.component.audioinput.v1.SampleFormat sample_format = 2 [json_name = "sampleFormat"]; inline void ChunksRequest::clear_sample_format() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.sample_format_ = 0; + sample_format_ = 0; +} +inline ::viam::component::audioinput::v1::SampleFormat ChunksRequest::_internal_sample_format() const { + return static_cast< ::viam::component::audioinput::v1::SampleFormat >(sample_format_); } inline ::viam::component::audioinput::v1::SampleFormat ChunksRequest::sample_format() const { // @@protoc_insertion_point(field_get:viam.component.audioinput.v1.ChunksRequest.sample_format) return _internal_sample_format(); } +inline void ChunksRequest::_internal_set_sample_format(::viam::component::audioinput::v1::SampleFormat value) { + + sample_format_ = value; +} inline void ChunksRequest::set_sample_format(::viam::component::audioinput::v1::SampleFormat value) { _internal_set_sample_format(value); // @@protoc_insertion_point(field_set:viam.component.audioinput.v1.ChunksRequest.sample_format) } -inline ::viam::component::audioinput::v1::SampleFormat ChunksRequest::_internal_sample_format() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::viam::component::audioinput::v1::SampleFormat>(_impl_.sample_format_); -} -inline void ChunksRequest::_internal_set_sample_format(::viam::component::audioinput::v1::SampleFormat value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.sample_format_ = value; -} // ------------------------------------------------------------------- // ChunksResponse // .viam.component.audioinput.v1.AudioChunkInfo info = 1 [json_name = "info"]; -inline bool ChunksResponse::has_info() const { - return type_case() == kInfo; -} inline bool ChunksResponse::_internal_has_info() const { return type_case() == kInfo; } +inline bool ChunksResponse::has_info() const { + return _internal_has_info(); +} inline void ChunksResponse::set_has_info() { - _impl_._oneof_case_[0] = kInfo; + _oneof_case_[0] = kInfo; } inline void ChunksResponse::clear_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (type_case() == kInfo) { - if (GetArena() == nullptr) { - delete _impl_.type_.info_; + if (_internal_has_info()) { + if (GetArenaForAllocation() == nullptr) { + delete type_.info_; } clear_has_type(); } } inline ::viam::component::audioinput::v1::AudioChunkInfo* ChunksResponse::release_info() { // @@protoc_insertion_point(field_release:viam.component.audioinput.v1.ChunksResponse.info) - if (type_case() == kInfo) { + if (_internal_has_info()) { clear_has_type(); - auto* temp = _impl_.type_.info_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::viam::component::audioinput::v1::AudioChunkInfo* temp = type_.info_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.type_.info_ = nullptr; + type_.info_ = nullptr; return temp; } else { return nullptr; } } inline const ::viam::component::audioinput::v1::AudioChunkInfo& ChunksResponse::_internal_info() const { - return type_case() == kInfo ? *_impl_.type_.info_ : reinterpret_cast<::viam::component::audioinput::v1::AudioChunkInfo&>(::viam::component::audioinput::v1::_AudioChunkInfo_default_instance_); + return _internal_has_info() + ? *type_.info_ + : reinterpret_cast< ::viam::component::audioinput::v1::AudioChunkInfo&>(::viam::component::audioinput::v1::_AudioChunkInfo_default_instance_); } -inline const ::viam::component::audioinput::v1::AudioChunkInfo& ChunksResponse::info() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::component::audioinput::v1::AudioChunkInfo& ChunksResponse::info() const { // @@protoc_insertion_point(field_get:viam.component.audioinput.v1.ChunksResponse.info) return _internal_info(); } inline ::viam::component::audioinput::v1::AudioChunkInfo* ChunksResponse::unsafe_arena_release_info() { // @@protoc_insertion_point(field_unsafe_arena_release:viam.component.audioinput.v1.ChunksResponse.info) - if (type_case() == kInfo) { + if (_internal_has_info()) { clear_has_type(); - auto* temp = _impl_.type_.info_; - _impl_.type_.info_ = nullptr; + ::viam::component::audioinput::v1::AudioChunkInfo* temp = type_.info_; + type_.info_ = nullptr; return temp; } else { return nullptr; } } -inline void ChunksResponse::unsafe_arena_set_allocated_info(::viam::component::audioinput::v1::AudioChunkInfo* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void ChunksResponse::unsafe_arena_set_allocated_info(::viam::component::audioinput::v1::AudioChunkInfo* info) { clear_type(); - if (value) { + if (info) { set_has_info(); - _impl_.type_.info_ = value; + type_.info_ = info; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.audioinput.v1.ChunksResponse.info) } inline ::viam::component::audioinput::v1::AudioChunkInfo* ChunksResponse::_internal_mutable_info() { - if (type_case() != kInfo) { + if (!_internal_has_info()) { clear_type(); set_has_info(); - _impl_.type_.info_ = CreateMaybeMessage<::viam::component::audioinput::v1::AudioChunkInfo>(GetArena()); + type_.info_ = CreateMaybeMessage< ::viam::component::audioinput::v1::AudioChunkInfo >(GetArenaForAllocation()); } - return _impl_.type_.info_; + return type_.info_; } -inline ::viam::component::audioinput::v1::AudioChunkInfo* ChunksResponse::mutable_info() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::component::audioinput::v1::AudioChunkInfo* ChunksResponse::mutable_info() { ::viam::component::audioinput::v1::AudioChunkInfo* _msg = _internal_mutable_info(); // @@protoc_insertion_point(field_mutable:viam.component.audioinput.v1.ChunksResponse.info) return _msg; } // .viam.component.audioinput.v1.AudioChunk chunk = 2 [json_name = "chunk"]; -inline bool ChunksResponse::has_chunk() const { - return type_case() == kChunk; -} inline bool ChunksResponse::_internal_has_chunk() const { return type_case() == kChunk; } +inline bool ChunksResponse::has_chunk() const { + return _internal_has_chunk(); +} inline void ChunksResponse::set_has_chunk() { - _impl_._oneof_case_[0] = kChunk; + _oneof_case_[0] = kChunk; } inline void ChunksResponse::clear_chunk() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (type_case() == kChunk) { - if (GetArena() == nullptr) { - delete _impl_.type_.chunk_; + if (_internal_has_chunk()) { + if (GetArenaForAllocation() == nullptr) { + delete type_.chunk_; } clear_has_type(); } } inline ::viam::component::audioinput::v1::AudioChunk* ChunksResponse::release_chunk() { // @@protoc_insertion_point(field_release:viam.component.audioinput.v1.ChunksResponse.chunk) - if (type_case() == kChunk) { + if (_internal_has_chunk()) { clear_has_type(); - auto* temp = _impl_.type_.chunk_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::viam::component::audioinput::v1::AudioChunk* temp = type_.chunk_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.type_.chunk_ = nullptr; + type_.chunk_ = nullptr; return temp; } else { return nullptr; } } inline const ::viam::component::audioinput::v1::AudioChunk& ChunksResponse::_internal_chunk() const { - return type_case() == kChunk ? *_impl_.type_.chunk_ : reinterpret_cast<::viam::component::audioinput::v1::AudioChunk&>(::viam::component::audioinput::v1::_AudioChunk_default_instance_); + return _internal_has_chunk() + ? *type_.chunk_ + : reinterpret_cast< ::viam::component::audioinput::v1::AudioChunk&>(::viam::component::audioinput::v1::_AudioChunk_default_instance_); } -inline const ::viam::component::audioinput::v1::AudioChunk& ChunksResponse::chunk() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::component::audioinput::v1::AudioChunk& ChunksResponse::chunk() const { // @@protoc_insertion_point(field_get:viam.component.audioinput.v1.ChunksResponse.chunk) return _internal_chunk(); } inline ::viam::component::audioinput::v1::AudioChunk* ChunksResponse::unsafe_arena_release_chunk() { // @@protoc_insertion_point(field_unsafe_arena_release:viam.component.audioinput.v1.ChunksResponse.chunk) - if (type_case() == kChunk) { + if (_internal_has_chunk()) { clear_has_type(); - auto* temp = _impl_.type_.chunk_; - _impl_.type_.chunk_ = nullptr; + ::viam::component::audioinput::v1::AudioChunk* temp = type_.chunk_; + type_.chunk_ = nullptr; return temp; } else { return nullptr; } } -inline void ChunksResponse::unsafe_arena_set_allocated_chunk(::viam::component::audioinput::v1::AudioChunk* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void ChunksResponse::unsafe_arena_set_allocated_chunk(::viam::component::audioinput::v1::AudioChunk* chunk) { clear_type(); - if (value) { + if (chunk) { set_has_chunk(); - _impl_.type_.chunk_ = value; + type_.chunk_ = chunk; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.audioinput.v1.ChunksResponse.chunk) } inline ::viam::component::audioinput::v1::AudioChunk* ChunksResponse::_internal_mutable_chunk() { - if (type_case() != kChunk) { + if (!_internal_has_chunk()) { clear_type(); set_has_chunk(); - _impl_.type_.chunk_ = CreateMaybeMessage<::viam::component::audioinput::v1::AudioChunk>(GetArena()); + type_.chunk_ = CreateMaybeMessage< ::viam::component::audioinput::v1::AudioChunk >(GetArenaForAllocation()); } - return _impl_.type_.chunk_; + return type_.chunk_; } -inline ::viam::component::audioinput::v1::AudioChunk* ChunksResponse::mutable_chunk() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::component::audioinput::v1::AudioChunk* ChunksResponse::mutable_chunk() { ::viam::component::audioinput::v1::AudioChunk* _msg = _internal_mutable_chunk(); // @@protoc_insertion_point(field_mutable:viam.component.audioinput.v1.ChunksResponse.chunk) return _msg; @@ -2133,10 +1840,10 @@ inline bool ChunksResponse::has_type() const { return type_case() != TYPE_NOT_SET; } inline void ChunksResponse::clear_has_type() { - _impl_._oneof_case_[0] = TYPE_NOT_SET; + _oneof_case_[0] = TYPE_NOT_SET; } inline ChunksResponse::TypeCase ChunksResponse::type_case() const { - return ChunksResponse::TypeCase(_impl_._oneof_case_[0]); + return ChunksResponse::TypeCase(_oneof_case_[0]); } // ------------------------------------------------------------------- @@ -2144,54 +1851,51 @@ inline ChunksResponse::TypeCase ChunksResponse::type_case() const { // string name = 1 [json_name = "name"]; inline void PropertiesRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& PropertiesRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& PropertiesRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.audioinput.v1.PropertiesRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void PropertiesRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void PropertiesRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.audioinput.v1.PropertiesRequest.name) } -inline std::string* PropertiesRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* PropertiesRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.audioinput.v1.PropertiesRequest.name) return _s; } inline const std::string& PropertiesRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void PropertiesRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* PropertiesRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* PropertiesRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.audioinput.v1.PropertiesRequest.name) - return _impl_.name_.Release(); -} -inline void PropertiesRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void PropertiesRequest::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.audioinput.v1.PropertiesRequest.name) } @@ -2201,259 +1905,243 @@ inline void PropertiesRequest::set_allocated_name(std::string* value) { // uint32 channel_count = 1 [json_name = "channelCount"]; inline void PropertiesResponse::clear_channel_count() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.channel_count_ = 0u; + channel_count_ = 0u; +} +inline uint32_t PropertiesResponse::_internal_channel_count() const { + return channel_count_; } -inline ::uint32_t PropertiesResponse::channel_count() const { +inline uint32_t PropertiesResponse::channel_count() const { // @@protoc_insertion_point(field_get:viam.component.audioinput.v1.PropertiesResponse.channel_count) return _internal_channel_count(); } -inline void PropertiesResponse::set_channel_count(::uint32_t value) { +inline void PropertiesResponse::_internal_set_channel_count(uint32_t value) { + + channel_count_ = value; +} +inline void PropertiesResponse::set_channel_count(uint32_t value) { _internal_set_channel_count(value); // @@protoc_insertion_point(field_set:viam.component.audioinput.v1.PropertiesResponse.channel_count) } -inline ::uint32_t PropertiesResponse::_internal_channel_count() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.channel_count_; -} -inline void PropertiesResponse::_internal_set_channel_count(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.channel_count_ = value; -} // .google.protobuf.Duration latency = 2 [json_name = "latency"]; +inline bool PropertiesResponse::_internal_has_latency() const { + return this != internal_default_instance() && latency_ != nullptr; +} inline bool PropertiesResponse::has_latency() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.latency_ != nullptr); - return value; + return _internal_has_latency(); } -inline const ::google::protobuf::Duration& PropertiesResponse::_internal_latency() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Duration* p = _impl_.latency_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Duration_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Duration& PropertiesResponse::_internal_latency() const { + const ::PROTOBUF_NAMESPACE_ID::Duration* p = latency_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Duration_default_instance_); } -inline const ::google::protobuf::Duration& PropertiesResponse::latency() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Duration& PropertiesResponse::latency() const { // @@protoc_insertion_point(field_get:viam.component.audioinput.v1.PropertiesResponse.latency) return _internal_latency(); } -inline void PropertiesResponse::unsafe_arena_set_allocated_latency(::google::protobuf::Duration* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.latency_); +inline void PropertiesResponse::unsafe_arena_set_allocated_latency( + ::PROTOBUF_NAMESPACE_ID::Duration* latency) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(latency_); } - _impl_.latency_ = reinterpret_cast<::google::protobuf::Duration*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + latency_ = latency; + if (latency) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.audioinput.v1.PropertiesResponse.latency) } -inline ::google::protobuf::Duration* PropertiesResponse::release_latency() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Duration* released = _impl_.latency_; - _impl_.latency_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Duration* PropertiesResponse::release_latency() { + + ::PROTOBUF_NAMESPACE_ID::Duration* temp = latency_; + latency_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Duration* PropertiesResponse::unsafe_arena_release_latency() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Duration* PropertiesResponse::unsafe_arena_release_latency() { // @@protoc_insertion_point(field_release:viam.component.audioinput.v1.PropertiesResponse.latency) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Duration* temp = _impl_.latency_; - _impl_.latency_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Duration* temp = latency_; + latency_ = nullptr; return temp; } -inline ::google::protobuf::Duration* PropertiesResponse::_internal_mutable_latency() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.latency_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArena()); - _impl_.latency_ = reinterpret_cast<::google::protobuf::Duration*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Duration* PropertiesResponse::_internal_mutable_latency() { + + if (latency_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Duration>(GetArenaForAllocation()); + latency_ = p; } - return _impl_.latency_; + return latency_; } -inline ::google::protobuf::Duration* PropertiesResponse::mutable_latency() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Duration* _msg = _internal_mutable_latency(); +inline ::PROTOBUF_NAMESPACE_ID::Duration* PropertiesResponse::mutable_latency() { + ::PROTOBUF_NAMESPACE_ID::Duration* _msg = _internal_mutable_latency(); // @@protoc_insertion_point(field_mutable:viam.component.audioinput.v1.PropertiesResponse.latency) return _msg; } -inline void PropertiesResponse::set_allocated_latency(::google::protobuf::Duration* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void PropertiesResponse::set_allocated_latency(::PROTOBUF_NAMESPACE_ID::Duration* latency) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.latency_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(latency_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (latency) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(latency)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + latency = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, latency, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.latency_ = reinterpret_cast<::google::protobuf::Duration*>(value); + latency_ = latency; // @@protoc_insertion_point(field_set_allocated:viam.component.audioinput.v1.PropertiesResponse.latency) } // uint32 sample_rate = 3 [json_name = "sampleRate"]; inline void PropertiesResponse::clear_sample_rate() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.sample_rate_ = 0u; + sample_rate_ = 0u; } -inline ::uint32_t PropertiesResponse::sample_rate() const { +inline uint32_t PropertiesResponse::_internal_sample_rate() const { + return sample_rate_; +} +inline uint32_t PropertiesResponse::sample_rate() const { // @@protoc_insertion_point(field_get:viam.component.audioinput.v1.PropertiesResponse.sample_rate) return _internal_sample_rate(); } -inline void PropertiesResponse::set_sample_rate(::uint32_t value) { +inline void PropertiesResponse::_internal_set_sample_rate(uint32_t value) { + + sample_rate_ = value; +} +inline void PropertiesResponse::set_sample_rate(uint32_t value) { _internal_set_sample_rate(value); // @@protoc_insertion_point(field_set:viam.component.audioinput.v1.PropertiesResponse.sample_rate) } -inline ::uint32_t PropertiesResponse::_internal_sample_rate() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.sample_rate_; -} -inline void PropertiesResponse::_internal_set_sample_rate(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.sample_rate_ = value; -} // uint32 sample_size = 4 [json_name = "sampleSize"]; inline void PropertiesResponse::clear_sample_size() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.sample_size_ = 0u; + sample_size_ = 0u; } -inline ::uint32_t PropertiesResponse::sample_size() const { +inline uint32_t PropertiesResponse::_internal_sample_size() const { + return sample_size_; +} +inline uint32_t PropertiesResponse::sample_size() const { // @@protoc_insertion_point(field_get:viam.component.audioinput.v1.PropertiesResponse.sample_size) return _internal_sample_size(); } -inline void PropertiesResponse::set_sample_size(::uint32_t value) { +inline void PropertiesResponse::_internal_set_sample_size(uint32_t value) { + + sample_size_ = value; +} +inline void PropertiesResponse::set_sample_size(uint32_t value) { _internal_set_sample_size(value); // @@protoc_insertion_point(field_set:viam.component.audioinput.v1.PropertiesResponse.sample_size) } -inline ::uint32_t PropertiesResponse::_internal_sample_size() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.sample_size_; -} -inline void PropertiesResponse::_internal_set_sample_size(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.sample_size_ = value; -} // bool is_big_endian = 5 [json_name = "isBigEndian"]; inline void PropertiesResponse::clear_is_big_endian() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.is_big_endian_ = false; + is_big_endian_ = false; +} +inline bool PropertiesResponse::_internal_is_big_endian() const { + return is_big_endian_; } inline bool PropertiesResponse::is_big_endian() const { // @@protoc_insertion_point(field_get:viam.component.audioinput.v1.PropertiesResponse.is_big_endian) return _internal_is_big_endian(); } +inline void PropertiesResponse::_internal_set_is_big_endian(bool value) { + + is_big_endian_ = value; +} inline void PropertiesResponse::set_is_big_endian(bool value) { _internal_set_is_big_endian(value); // @@protoc_insertion_point(field_set:viam.component.audioinput.v1.PropertiesResponse.is_big_endian) } -inline bool PropertiesResponse::_internal_is_big_endian() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.is_big_endian_; -} -inline void PropertiesResponse::_internal_set_is_big_endian(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.is_big_endian_ = value; -} // bool is_float = 6 [json_name = "isFloat"]; inline void PropertiesResponse::clear_is_float() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.is_float_ = false; + is_float_ = false; +} +inline bool PropertiesResponse::_internal_is_float() const { + return is_float_; } inline bool PropertiesResponse::is_float() const { // @@protoc_insertion_point(field_get:viam.component.audioinput.v1.PropertiesResponse.is_float) return _internal_is_float(); } +inline void PropertiesResponse::_internal_set_is_float(bool value) { + + is_float_ = value; +} inline void PropertiesResponse::set_is_float(bool value) { _internal_set_is_float(value); // @@protoc_insertion_point(field_set:viam.component.audioinput.v1.PropertiesResponse.is_float) } -inline bool PropertiesResponse::_internal_is_float() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.is_float_; -} -inline void PropertiesResponse::_internal_set_is_float(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.is_float_ = value; -} // bool is_interleaved = 7 [json_name = "isInterleaved"]; inline void PropertiesResponse::clear_is_interleaved() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.is_interleaved_ = false; + is_interleaved_ = false; +} +inline bool PropertiesResponse::_internal_is_interleaved() const { + return is_interleaved_; } inline bool PropertiesResponse::is_interleaved() const { // @@protoc_insertion_point(field_get:viam.component.audioinput.v1.PropertiesResponse.is_interleaved) return _internal_is_interleaved(); } +inline void PropertiesResponse::_internal_set_is_interleaved(bool value) { + + is_interleaved_ = value; +} inline void PropertiesResponse::set_is_interleaved(bool value) { _internal_set_is_interleaved(value); // @@protoc_insertion_point(field_set:viam.component.audioinput.v1.PropertiesResponse.is_interleaved) } -inline bool PropertiesResponse::_internal_is_interleaved() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.is_interleaved_; -} -inline void PropertiesResponse::_internal_set_is_interleaved(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.is_interleaved_ = value; -} #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) + } // namespace v1 } // namespace audioinput } // namespace component } // namespace viam +PROTOBUF_NAMESPACE_OPEN -namespace google { -namespace protobuf { - +template <> struct is_proto_enum< ::viam::component::audioinput::v1::SampleFormat> : ::std::true_type {}; template <> -struct is_proto_enum<::viam::component::audioinput::v1::SampleFormat> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::viam::component::audioinput::v1::SampleFormat>() { +inline const EnumDescriptor* GetEnumDescriptor< ::viam::component::audioinput::v1::SampleFormat>() { return ::viam::component::audioinput::v1::SampleFormat_descriptor(); } -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_component_2faudioinput_2fv1_2faudioinput_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_component_2faudioinput_2fv1_2faudioinput_2eproto diff --git a/src/viam/api/component/base/v1/base.grpc.pb.cc b/src/viam/api/component/base/v1/base.grpc.pb.cc index 8cf421304..c807a47dc 100644 --- a/src/viam/api/component/base/v1/base.grpc.pb.cc +++ b/src/viam/api/component/base/v1/base.grpc.pb.cc @@ -6,19 +6,19 @@ #include "component/base/v1/base.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace component { namespace base { @@ -38,236 +38,281 @@ static const char* BaseService_method_names[] = { std::unique_ptr< BaseService::Stub> BaseService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { (void)options; - std::unique_ptr< BaseService::Stub> stub(new BaseService::Stub(channel, options)); + std::unique_ptr< BaseService::Stub> stub(new BaseService::Stub(channel)); return stub; } -BaseService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) - : channel_(channel), rpcmethod_MoveStraight_(BaseService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_Spin_(BaseService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_SetPower_(BaseService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_SetVelocity_(BaseService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_Stop_(BaseService_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_IsMoving_(BaseService_method_names[5], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_DoCommand_(BaseService_method_names[6], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetGeometries_(BaseService_method_names[7], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetProperties_(BaseService_method_names[8], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) +BaseService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_MoveStraight_(BaseService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_Spin_(BaseService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_SetPower_(BaseService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_SetVelocity_(BaseService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_Stop_(BaseService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_IsMoving_(BaseService_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DoCommand_(BaseService_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetGeometries_(BaseService_method_names[7], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetProperties_(BaseService_method_names[8], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status BaseService::Stub::MoveStraight(::grpc::ClientContext* context, const ::viam::component::base::v1::MoveStraightRequest& request, ::viam::component::base::v1::MoveStraightResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::base::v1::MoveStraightRequest, ::viam::component::base::v1::MoveStraightResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_MoveStraight_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_MoveStraight_, context, request, response); } -void BaseService::Stub::async::MoveStraight(::grpc::ClientContext* context, const ::viam::component::base::v1::MoveStraightRequest* request, ::viam::component::base::v1::MoveStraightResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::base::v1::MoveStraightRequest, ::viam::component::base::v1::MoveStraightResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_MoveStraight_, context, request, response, std::move(f)); +void BaseService::Stub::experimental_async::MoveStraight(::grpc::ClientContext* context, const ::viam::component::base::v1::MoveStraightRequest* request, ::viam::component::base::v1::MoveStraightResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_MoveStraight_, context, request, response, std::move(f)); } -void BaseService::Stub::async::MoveStraight(::grpc::ClientContext* context, const ::viam::component::base::v1::MoveStraightRequest* request, ::viam::component::base::v1::MoveStraightResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_MoveStraight_, context, request, response, reactor); +void BaseService::Stub::experimental_async::MoveStraight(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::base::v1::MoveStraightResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_MoveStraight_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::MoveStraightResponse>* BaseService::Stub::PrepareAsyncMoveStraightRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::MoveStraightRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::base::v1::MoveStraightResponse, ::viam::component::base::v1::MoveStraightRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_MoveStraight_, context, request); +void BaseService::Stub::experimental_async::MoveStraight(::grpc::ClientContext* context, const ::viam::component::base::v1::MoveStraightRequest* request, ::viam::component::base::v1::MoveStraightResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_MoveStraight_, context, request, response, reactor); +} + +void BaseService::Stub::experimental_async::MoveStraight(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::base::v1::MoveStraightResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_MoveStraight_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::MoveStraightResponse>* BaseService::Stub::AsyncMoveStraightRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::MoveStraightRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncMoveStraightRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::base::v1::MoveStraightResponse>::Create(channel_.get(), cq, rpcmethod_MoveStraight_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::MoveStraightResponse>* BaseService::Stub::PrepareAsyncMoveStraightRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::MoveStraightRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::base::v1::MoveStraightResponse>::Create(channel_.get(), cq, rpcmethod_MoveStraight_, context, request, false); } ::grpc::Status BaseService::Stub::Spin(::grpc::ClientContext* context, const ::viam::component::base::v1::SpinRequest& request, ::viam::component::base::v1::SpinResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::base::v1::SpinRequest, ::viam::component::base::v1::SpinResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Spin_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_Spin_, context, request, response); } -void BaseService::Stub::async::Spin(::grpc::ClientContext* context, const ::viam::component::base::v1::SpinRequest* request, ::viam::component::base::v1::SpinResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::base::v1::SpinRequest, ::viam::component::base::v1::SpinResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Spin_, context, request, response, std::move(f)); +void BaseService::Stub::experimental_async::Spin(::grpc::ClientContext* context, const ::viam::component::base::v1::SpinRequest* request, ::viam::component::base::v1::SpinResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Spin_, context, request, response, std::move(f)); } -void BaseService::Stub::async::Spin(::grpc::ClientContext* context, const ::viam::component::base::v1::SpinRequest* request, ::viam::component::base::v1::SpinResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Spin_, context, request, response, reactor); +void BaseService::Stub::experimental_async::Spin(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::base::v1::SpinResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Spin_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::SpinResponse>* BaseService::Stub::PrepareAsyncSpinRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::SpinRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::base::v1::SpinResponse, ::viam::component::base::v1::SpinRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Spin_, context, request); +void BaseService::Stub::experimental_async::Spin(::grpc::ClientContext* context, const ::viam::component::base::v1::SpinRequest* request, ::viam::component::base::v1::SpinResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Spin_, context, request, response, reactor); +} + +void BaseService::Stub::experimental_async::Spin(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::base::v1::SpinResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Spin_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::SpinResponse>* BaseService::Stub::AsyncSpinRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::SpinRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncSpinRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::base::v1::SpinResponse>::Create(channel_.get(), cq, rpcmethod_Spin_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::SpinResponse>* BaseService::Stub::PrepareAsyncSpinRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::SpinRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::base::v1::SpinResponse>::Create(channel_.get(), cq, rpcmethod_Spin_, context, request, false); } ::grpc::Status BaseService::Stub::SetPower(::grpc::ClientContext* context, const ::viam::component::base::v1::SetPowerRequest& request, ::viam::component::base::v1::SetPowerResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::base::v1::SetPowerRequest, ::viam::component::base::v1::SetPowerResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_SetPower_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_SetPower_, context, request, response); } -void BaseService::Stub::async::SetPower(::grpc::ClientContext* context, const ::viam::component::base::v1::SetPowerRequest* request, ::viam::component::base::v1::SetPowerResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::base::v1::SetPowerRequest, ::viam::component::base::v1::SetPowerResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SetPower_, context, request, response, std::move(f)); +void BaseService::Stub::experimental_async::SetPower(::grpc::ClientContext* context, const ::viam::component::base::v1::SetPowerRequest* request, ::viam::component::base::v1::SetPowerResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SetPower_, context, request, response, std::move(f)); } -void BaseService::Stub::async::SetPower(::grpc::ClientContext* context, const ::viam::component::base::v1::SetPowerRequest* request, ::viam::component::base::v1::SetPowerResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SetPower_, context, request, response, reactor); +void BaseService::Stub::experimental_async::SetPower(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::base::v1::SetPowerResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SetPower_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::SetPowerResponse>* BaseService::Stub::PrepareAsyncSetPowerRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::SetPowerRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::base::v1::SetPowerResponse, ::viam::component::base::v1::SetPowerRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_SetPower_, context, request); +void BaseService::Stub::experimental_async::SetPower(::grpc::ClientContext* context, const ::viam::component::base::v1::SetPowerRequest* request, ::viam::component::base::v1::SetPowerResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SetPower_, context, request, response, reactor); +} + +void BaseService::Stub::experimental_async::SetPower(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::base::v1::SetPowerResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SetPower_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::SetPowerResponse>* BaseService::Stub::AsyncSetPowerRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::SetPowerRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncSetPowerRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::base::v1::SetPowerResponse>::Create(channel_.get(), cq, rpcmethod_SetPower_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::SetPowerResponse>* BaseService::Stub::PrepareAsyncSetPowerRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::SetPowerRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::base::v1::SetPowerResponse>::Create(channel_.get(), cq, rpcmethod_SetPower_, context, request, false); } ::grpc::Status BaseService::Stub::SetVelocity(::grpc::ClientContext* context, const ::viam::component::base::v1::SetVelocityRequest& request, ::viam::component::base::v1::SetVelocityResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::base::v1::SetVelocityRequest, ::viam::component::base::v1::SetVelocityResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_SetVelocity_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_SetVelocity_, context, request, response); } -void BaseService::Stub::async::SetVelocity(::grpc::ClientContext* context, const ::viam::component::base::v1::SetVelocityRequest* request, ::viam::component::base::v1::SetVelocityResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::base::v1::SetVelocityRequest, ::viam::component::base::v1::SetVelocityResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SetVelocity_, context, request, response, std::move(f)); +void BaseService::Stub::experimental_async::SetVelocity(::grpc::ClientContext* context, const ::viam::component::base::v1::SetVelocityRequest* request, ::viam::component::base::v1::SetVelocityResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SetVelocity_, context, request, response, std::move(f)); } -void BaseService::Stub::async::SetVelocity(::grpc::ClientContext* context, const ::viam::component::base::v1::SetVelocityRequest* request, ::viam::component::base::v1::SetVelocityResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SetVelocity_, context, request, response, reactor); +void BaseService::Stub::experimental_async::SetVelocity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::base::v1::SetVelocityResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SetVelocity_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::SetVelocityResponse>* BaseService::Stub::PrepareAsyncSetVelocityRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::SetVelocityRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::base::v1::SetVelocityResponse, ::viam::component::base::v1::SetVelocityRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_SetVelocity_, context, request); +void BaseService::Stub::experimental_async::SetVelocity(::grpc::ClientContext* context, const ::viam::component::base::v1::SetVelocityRequest* request, ::viam::component::base::v1::SetVelocityResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SetVelocity_, context, request, response, reactor); +} + +void BaseService::Stub::experimental_async::SetVelocity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::base::v1::SetVelocityResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SetVelocity_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::SetVelocityResponse>* BaseService::Stub::AsyncSetVelocityRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::SetVelocityRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncSetVelocityRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::base::v1::SetVelocityResponse>::Create(channel_.get(), cq, rpcmethod_SetVelocity_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::SetVelocityResponse>* BaseService::Stub::PrepareAsyncSetVelocityRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::SetVelocityRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::base::v1::SetVelocityResponse>::Create(channel_.get(), cq, rpcmethod_SetVelocity_, context, request, false); } ::grpc::Status BaseService::Stub::Stop(::grpc::ClientContext* context, const ::viam::component::base::v1::StopRequest& request, ::viam::component::base::v1::StopResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::base::v1::StopRequest, ::viam::component::base::v1::StopResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Stop_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_Stop_, context, request, response); } -void BaseService::Stub::async::Stop(::grpc::ClientContext* context, const ::viam::component::base::v1::StopRequest* request, ::viam::component::base::v1::StopResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::base::v1::StopRequest, ::viam::component::base::v1::StopResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, std::move(f)); +void BaseService::Stub::experimental_async::Stop(::grpc::ClientContext* context, const ::viam::component::base::v1::StopRequest* request, ::viam::component::base::v1::StopResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, std::move(f)); } -void BaseService::Stub::async::Stop(::grpc::ClientContext* context, const ::viam::component::base::v1::StopRequest* request, ::viam::component::base::v1::StopResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, reactor); +void BaseService::Stub::experimental_async::Stop(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::base::v1::StopResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::StopResponse>* BaseService::Stub::PrepareAsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::base::v1::StopResponse, ::viam::component::base::v1::StopRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Stop_, context, request); +void BaseService::Stub::experimental_async::Stop(::grpc::ClientContext* context, const ::viam::component::base::v1::StopRequest* request, ::viam::component::base::v1::StopResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, reactor); +} + +void BaseService::Stub::experimental_async::Stop(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::base::v1::StopResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::StopResponse>* BaseService::Stub::AsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncStopRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::base::v1::StopResponse>::Create(channel_.get(), cq, rpcmethod_Stop_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::StopResponse>* BaseService::Stub::PrepareAsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::base::v1::StopResponse>::Create(channel_.get(), cq, rpcmethod_Stop_, context, request, false); } ::grpc::Status BaseService::Stub::IsMoving(::grpc::ClientContext* context, const ::viam::component::base::v1::IsMovingRequest& request, ::viam::component::base::v1::IsMovingResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::base::v1::IsMovingRequest, ::viam::component::base::v1::IsMovingResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_IsMoving_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_IsMoving_, context, request, response); } -void BaseService::Stub::async::IsMoving(::grpc::ClientContext* context, const ::viam::component::base::v1::IsMovingRequest* request, ::viam::component::base::v1::IsMovingResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::base::v1::IsMovingRequest, ::viam::component::base::v1::IsMovingResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_IsMoving_, context, request, response, std::move(f)); +void BaseService::Stub::experimental_async::IsMoving(::grpc::ClientContext* context, const ::viam::component::base::v1::IsMovingRequest* request, ::viam::component::base::v1::IsMovingResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_IsMoving_, context, request, response, std::move(f)); } -void BaseService::Stub::async::IsMoving(::grpc::ClientContext* context, const ::viam::component::base::v1::IsMovingRequest* request, ::viam::component::base::v1::IsMovingResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_IsMoving_, context, request, response, reactor); +void BaseService::Stub::experimental_async::IsMoving(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::base::v1::IsMovingResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_IsMoving_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::IsMovingResponse>* BaseService::Stub::PrepareAsyncIsMovingRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::IsMovingRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::base::v1::IsMovingResponse, ::viam::component::base::v1::IsMovingRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_IsMoving_, context, request); +void BaseService::Stub::experimental_async::IsMoving(::grpc::ClientContext* context, const ::viam::component::base::v1::IsMovingRequest* request, ::viam::component::base::v1::IsMovingResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_IsMoving_, context, request, response, reactor); +} + +void BaseService::Stub::experimental_async::IsMoving(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::base::v1::IsMovingResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_IsMoving_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::IsMovingResponse>* BaseService::Stub::AsyncIsMovingRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::IsMovingRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncIsMovingRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::base::v1::IsMovingResponse>::Create(channel_.get(), cq, rpcmethod_IsMoving_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::IsMovingResponse>* BaseService::Stub::PrepareAsyncIsMovingRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::IsMovingRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::base::v1::IsMovingResponse>::Create(channel_.get(), cq, rpcmethod_IsMoving_, context, request, false); } ::grpc::Status BaseService::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); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DoCommand_, context, request, response); } -void BaseService::Stub::async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); +void BaseService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); } -void BaseService::Stub::async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); +void BaseService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* BaseService::Stub::PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::common::v1::DoCommandResponse, ::viam::common::v1::DoCommandRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DoCommand_, context, request); +void BaseService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); +} + +void BaseService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* BaseService::Stub::AsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncDoCommandRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::DoCommandResponse>::Create(channel_.get(), cq, rpcmethod_DoCommand_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* BaseService::Stub::PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::DoCommandResponse>::Create(channel_.get(), cq, rpcmethod_DoCommand_, context, request, false); } ::grpc::Status BaseService::Stub::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::viam::common::v1::GetGeometriesResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetGeometries_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetGeometries_, context, request, response); } -void BaseService::Stub::async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, std::move(f)); +void BaseService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, std::move(f)); } -void BaseService::Stub::async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, reactor); +void BaseService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>* BaseService::Stub::PrepareAsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::common::v1::GetGeometriesResponse, ::viam::common::v1::GetGeometriesRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetGeometries_, context, request); +void BaseService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, reactor); +} + +void BaseService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>* BaseService::Stub::AsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetGeometriesRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::GetGeometriesResponse>::Create(channel_.get(), cq, rpcmethod_GetGeometries_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>* BaseService::Stub::PrepareAsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::GetGeometriesResponse>::Create(channel_.get(), cq, rpcmethod_GetGeometries_, context, request, false); } ::grpc::Status BaseService::Stub::GetProperties(::grpc::ClientContext* context, const ::viam::component::base::v1::GetPropertiesRequest& request, ::viam::component::base::v1::GetPropertiesResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::base::v1::GetPropertiesRequest, ::viam::component::base::v1::GetPropertiesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetProperties_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetProperties_, context, request, response); } -void BaseService::Stub::async::GetProperties(::grpc::ClientContext* context, const ::viam::component::base::v1::GetPropertiesRequest* request, ::viam::component::base::v1::GetPropertiesResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::base::v1::GetPropertiesRequest, ::viam::component::base::v1::GetPropertiesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetProperties_, context, request, response, std::move(f)); +void BaseService::Stub::experimental_async::GetProperties(::grpc::ClientContext* context, const ::viam::component::base::v1::GetPropertiesRequest* request, ::viam::component::base::v1::GetPropertiesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetProperties_, context, request, response, std::move(f)); } -void BaseService::Stub::async::GetProperties(::grpc::ClientContext* context, const ::viam::component::base::v1::GetPropertiesRequest* request, ::viam::component::base::v1::GetPropertiesResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetProperties_, context, request, response, reactor); +void BaseService::Stub::experimental_async::GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::base::v1::GetPropertiesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetProperties_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::GetPropertiesResponse>* BaseService::Stub::PrepareAsyncGetPropertiesRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::GetPropertiesRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::base::v1::GetPropertiesResponse, ::viam::component::base::v1::GetPropertiesRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetProperties_, context, request); +void BaseService::Stub::experimental_async::GetProperties(::grpc::ClientContext* context, const ::viam::component::base::v1::GetPropertiesRequest* request, ::viam::component::base::v1::GetPropertiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetProperties_, context, request, response, reactor); +} + +void BaseService::Stub::experimental_async::GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::base::v1::GetPropertiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetProperties_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::GetPropertiesResponse>* BaseService::Stub::AsyncGetPropertiesRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::GetPropertiesRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetPropertiesRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::base::v1::GetPropertiesResponse>::Create(channel_.get(), cq, rpcmethod_GetProperties_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::GetPropertiesResponse>* BaseService::Stub::PrepareAsyncGetPropertiesRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::GetPropertiesRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::base::v1::GetPropertiesResponse>::Create(channel_.get(), cq, rpcmethod_GetProperties_, context, request, false); } BaseService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( BaseService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< BaseService::Service, ::viam::component::base::v1::MoveStraightRequest, ::viam::component::base::v1::MoveStraightResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< BaseService::Service, ::viam::component::base::v1::MoveStraightRequest, ::viam::component::base::v1::MoveStraightResponse>( [](BaseService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::base::v1::MoveStraightRequest* req, ::viam::component::base::v1::MoveStraightResponse* resp) { return service->MoveStraight(ctx, req, resp); @@ -275,9 +320,9 @@ BaseService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( BaseService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< BaseService::Service, ::viam::component::base::v1::SpinRequest, ::viam::component::base::v1::SpinResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< BaseService::Service, ::viam::component::base::v1::SpinRequest, ::viam::component::base::v1::SpinResponse>( [](BaseService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::base::v1::SpinRequest* req, ::viam::component::base::v1::SpinResponse* resp) { return service->Spin(ctx, req, resp); @@ -285,9 +330,9 @@ BaseService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( BaseService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< BaseService::Service, ::viam::component::base::v1::SetPowerRequest, ::viam::component::base::v1::SetPowerResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< BaseService::Service, ::viam::component::base::v1::SetPowerRequest, ::viam::component::base::v1::SetPowerResponse>( [](BaseService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::base::v1::SetPowerRequest* req, ::viam::component::base::v1::SetPowerResponse* resp) { return service->SetPower(ctx, req, resp); @@ -295,9 +340,9 @@ BaseService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( BaseService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< BaseService::Service, ::viam::component::base::v1::SetVelocityRequest, ::viam::component::base::v1::SetVelocityResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< BaseService::Service, ::viam::component::base::v1::SetVelocityRequest, ::viam::component::base::v1::SetVelocityResponse>( [](BaseService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::base::v1::SetVelocityRequest* req, ::viam::component::base::v1::SetVelocityResponse* resp) { return service->SetVelocity(ctx, req, resp); @@ -305,9 +350,9 @@ BaseService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( BaseService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< BaseService::Service, ::viam::component::base::v1::StopRequest, ::viam::component::base::v1::StopResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< BaseService::Service, ::viam::component::base::v1::StopRequest, ::viam::component::base::v1::StopResponse>( [](BaseService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::base::v1::StopRequest* req, ::viam::component::base::v1::StopResponse* resp) { return service->Stop(ctx, req, resp); @@ -315,9 +360,9 @@ BaseService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( BaseService_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< BaseService::Service, ::viam::component::base::v1::IsMovingRequest, ::viam::component::base::v1::IsMovingResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< BaseService::Service, ::viam::component::base::v1::IsMovingRequest, ::viam::component::base::v1::IsMovingResponse>( [](BaseService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::base::v1::IsMovingRequest* req, ::viam::component::base::v1::IsMovingResponse* resp) { return service->IsMoving(ctx, req, resp); @@ -325,9 +370,9 @@ BaseService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( BaseService_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< BaseService::Service, ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< BaseService::Service, ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( [](BaseService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::common::v1::DoCommandRequest* req, ::viam::common::v1::DoCommandResponse* resp) { return service->DoCommand(ctx, req, resp); @@ -335,9 +380,9 @@ BaseService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( BaseService_method_names[7], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< BaseService::Service, ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< BaseService::Service, ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( [](BaseService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::common::v1::GetGeometriesRequest* req, ::viam::common::v1::GetGeometriesResponse* resp) { return service->GetGeometries(ctx, req, resp); @@ -345,9 +390,9 @@ BaseService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( BaseService_method_names[8], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< BaseService::Service, ::viam::component::base::v1::GetPropertiesRequest, ::viam::component::base::v1::GetPropertiesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< BaseService::Service, ::viam::component::base::v1::GetPropertiesRequest, ::viam::component::base::v1::GetPropertiesResponse>( [](BaseService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::base::v1::GetPropertiesRequest* req, ::viam::component::base::v1::GetPropertiesResponse* resp) { return service->GetProperties(ctx, req, resp); diff --git a/src/viam/api/component/base/v1/base.grpc.pb.h b/src/viam/api/component/base/v1/base.grpc.pb.h index 4963e0bab..37f5144af 100644 --- a/src/viam/api/component/base/v1/base.grpc.pb.h +++ b/src/viam/api/component/base/v1/base.grpc.pb.h @@ -7,23 +7,24 @@ #include "component/base/v1/base.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace component { @@ -115,46 +116,140 @@ class BaseService final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::base::v1::GetPropertiesResponse>> PrepareAsyncGetProperties(::grpc::ClientContext* context, const ::viam::component::base::v1::GetPropertiesRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::base::v1::GetPropertiesResponse>>(PrepareAsyncGetPropertiesRaw(context, request, cq)); } - class async_interface { + class experimental_async_interface { public: - virtual ~async_interface() {} + virtual ~experimental_async_interface() {} // MoveStraight moves a robot's base in a straight line by a given distance, expressed in millimeters // and a given speed, expressed in millimeters per second // This method blocks until completed or cancelled virtual void MoveStraight(::grpc::ClientContext* context, const ::viam::component::base::v1::MoveStraightRequest* request, ::viam::component::base::v1::MoveStraightResponse* response, std::function) = 0; + virtual void MoveStraight(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::base::v1::MoveStraightResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void MoveStraight(::grpc::ClientContext* context, const ::viam::component::base::v1::MoveStraightRequest* request, ::viam::component::base::v1::MoveStraightResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void MoveStraight(::grpc::ClientContext* context, const ::viam::component::base::v1::MoveStraightRequest* request, ::viam::component::base::v1::MoveStraightResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void MoveStraight(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::base::v1::MoveStraightResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void MoveStraight(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::base::v1::MoveStraightResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Spin spins a robot's base by an given angle, expressed in degrees, and a given // angular speed, expressed in degrees per second // This method blocks until completed or cancelled virtual void Spin(::grpc::ClientContext* context, const ::viam::component::base::v1::SpinRequest* request, ::viam::component::base::v1::SpinResponse* response, std::function) = 0; + virtual void Spin(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::base::v1::SpinResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void Spin(::grpc::ClientContext* context, const ::viam::component::base::v1::SpinRequest* request, ::viam::component::base::v1::SpinResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void Spin(::grpc::ClientContext* context, const ::viam::component::base::v1::SpinRequest* request, ::viam::component::base::v1::SpinResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void Spin(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::base::v1::SpinResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void Spin(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::base::v1::SpinResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // SetPower sets the linear and angular power of a base // -1 -> 1 in terms of power for each direction virtual void SetPower(::grpc::ClientContext* context, const ::viam::component::base::v1::SetPowerRequest* request, ::viam::component::base::v1::SetPowerResponse* response, std::function) = 0; + virtual void SetPower(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::base::v1::SetPowerResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void SetPower(::grpc::ClientContext* context, const ::viam::component::base::v1::SetPowerRequest* request, ::viam::component::base::v1::SetPowerResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void SetPower(::grpc::ClientContext* context, const ::viam::component::base::v1::SetPowerRequest* request, ::viam::component::base::v1::SetPowerResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void SetPower(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::base::v1::SetPowerResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void SetPower(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::base::v1::SetPowerResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // SetVelocity sets the linear and angular velocity of a base virtual void SetVelocity(::grpc::ClientContext* context, const ::viam::component::base::v1::SetVelocityRequest* request, ::viam::component::base::v1::SetVelocityResponse* response, std::function) = 0; + virtual void SetVelocity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::base::v1::SetVelocityResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void SetVelocity(::grpc::ClientContext* context, const ::viam::component::base::v1::SetVelocityRequest* request, ::viam::component::base::v1::SetVelocityResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void SetVelocity(::grpc::ClientContext* context, const ::viam::component::base::v1::SetVelocityRequest* request, ::viam::component::base::v1::SetVelocityResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void SetVelocity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::base::v1::SetVelocityResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void SetVelocity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::base::v1::SetVelocityResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Stop stops a robot's base virtual void Stop(::grpc::ClientContext* context, const ::viam::component::base::v1::StopRequest* request, ::viam::component::base::v1::StopResponse* response, std::function) = 0; + virtual void Stop(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::base::v1::StopResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void Stop(::grpc::ClientContext* context, const ::viam::component::base::v1::StopRequest* request, ::viam::component::base::v1::StopResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void Stop(::grpc::ClientContext* context, const ::viam::component::base::v1::StopRequest* request, ::viam::component::base::v1::StopResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void Stop(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::base::v1::StopResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void Stop(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::base::v1::StopResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // IsMoving reports if a component is in motion virtual void IsMoving(::grpc::ClientContext* context, const ::viam::component::base::v1::IsMovingRequest* request, ::viam::component::base::v1::IsMovingResponse* response, std::function) = 0; + virtual void IsMoving(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::base::v1::IsMovingResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void IsMoving(::grpc::ClientContext* context, const ::viam::component::base::v1::IsMovingRequest* request, ::viam::component::base::v1::IsMovingResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void IsMoving(::grpc::ClientContext* context, const ::viam::component::base::v1::IsMovingRequest* request, ::viam::component::base::v1::IsMovingResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void IsMoving(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::base::v1::IsMovingResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void IsMoving(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::base::v1::IsMovingResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // 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 ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // 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 ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // GetProperties returns the properties of a base in its current configuration virtual void GetProperties(::grpc::ClientContext* context, const ::viam::component::base::v1::GetPropertiesRequest* request, ::viam::component::base::v1::GetPropertiesResponse* response, std::function) = 0; + virtual void GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::base::v1::GetPropertiesResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetProperties(::grpc::ClientContext* context, const ::viam::component::base::v1::GetPropertiesRequest* request, ::viam::component::base::v1::GetPropertiesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetProperties(::grpc::ClientContext* context, const ::viam::component::base::v1::GetPropertiesRequest* request, ::viam::component::base::v1::GetPropertiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::base::v1::GetPropertiesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::base::v1::GetPropertiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif }; - typedef class async_interface experimental_async_interface; - virtual class async_interface* async() { return nullptr; } - class async_interface* experimental_async() { return async(); } - private: + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef class experimental_async_interface async_interface; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + async_interface* async() { return experimental_async(); } + #endif + virtual class experimental_async_interface* experimental_async() { return nullptr; } + private: virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::base::v1::MoveStraightResponse>* AsyncMoveStraightRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::MoveStraightRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::base::v1::MoveStraightResponse>* PrepareAsyncMoveStraightRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::MoveStraightRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::base::v1::SpinResponse>* AsyncSpinRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::SpinRequest& request, ::grpc::CompletionQueue* cq) = 0; @@ -176,7 +271,7 @@ class BaseService final { }; class Stub final : public StubInterface { public: - Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); ::grpc::Status MoveStraight(::grpc::ClientContext* context, const ::viam::component::base::v1::MoveStraightRequest& request, ::viam::component::base::v1::MoveStraightResponse* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::MoveStraightResponse>> AsyncMoveStraight(::grpc::ClientContext* context, const ::viam::component::base::v1::MoveStraightRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::MoveStraightResponse>>(AsyncMoveStraightRaw(context, request, cq)); @@ -240,38 +335,128 @@ class BaseService final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::GetPropertiesResponse>> PrepareAsyncGetProperties(::grpc::ClientContext* context, const ::viam::component::base::v1::GetPropertiesRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::GetPropertiesResponse>>(PrepareAsyncGetPropertiesRaw(context, request, cq)); } - class async final : - public StubInterface::async_interface { + class experimental_async final : + public StubInterface::experimental_async_interface { public: void MoveStraight(::grpc::ClientContext* context, const ::viam::component::base::v1::MoveStraightRequest* request, ::viam::component::base::v1::MoveStraightResponse* response, std::function) override; + void MoveStraight(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::base::v1::MoveStraightResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void MoveStraight(::grpc::ClientContext* context, const ::viam::component::base::v1::MoveStraightRequest* request, ::viam::component::base::v1::MoveStraightResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void MoveStraight(::grpc::ClientContext* context, const ::viam::component::base::v1::MoveStraightRequest* request, ::viam::component::base::v1::MoveStraightResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void MoveStraight(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::base::v1::MoveStraightResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void MoveStraight(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::base::v1::MoveStraightResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void Spin(::grpc::ClientContext* context, const ::viam::component::base::v1::SpinRequest* request, ::viam::component::base::v1::SpinResponse* response, std::function) override; + void Spin(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::base::v1::SpinResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void Spin(::grpc::ClientContext* context, const ::viam::component::base::v1::SpinRequest* request, ::viam::component::base::v1::SpinResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void Spin(::grpc::ClientContext* context, const ::viam::component::base::v1::SpinRequest* request, ::viam::component::base::v1::SpinResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void Spin(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::base::v1::SpinResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void Spin(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::base::v1::SpinResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void SetPower(::grpc::ClientContext* context, const ::viam::component::base::v1::SetPowerRequest* request, ::viam::component::base::v1::SetPowerResponse* response, std::function) override; + void SetPower(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::base::v1::SetPowerResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void SetPower(::grpc::ClientContext* context, const ::viam::component::base::v1::SetPowerRequest* request, ::viam::component::base::v1::SetPowerResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void SetPower(::grpc::ClientContext* context, const ::viam::component::base::v1::SetPowerRequest* request, ::viam::component::base::v1::SetPowerResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void SetPower(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::base::v1::SetPowerResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void SetPower(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::base::v1::SetPowerResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void SetVelocity(::grpc::ClientContext* context, const ::viam::component::base::v1::SetVelocityRequest* request, ::viam::component::base::v1::SetVelocityResponse* response, std::function) override; + void SetVelocity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::base::v1::SetVelocityResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void SetVelocity(::grpc::ClientContext* context, const ::viam::component::base::v1::SetVelocityRequest* request, ::viam::component::base::v1::SetVelocityResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void SetVelocity(::grpc::ClientContext* context, const ::viam::component::base::v1::SetVelocityRequest* request, ::viam::component::base::v1::SetVelocityResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void SetVelocity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::base::v1::SetVelocityResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void SetVelocity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::base::v1::SetVelocityResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void Stop(::grpc::ClientContext* context, const ::viam::component::base::v1::StopRequest* request, ::viam::component::base::v1::StopResponse* response, std::function) override; + void Stop(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::base::v1::StopResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void Stop(::grpc::ClientContext* context, const ::viam::component::base::v1::StopRequest* request, ::viam::component::base::v1::StopResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void Stop(::grpc::ClientContext* context, const ::viam::component::base::v1::StopRequest* request, ::viam::component::base::v1::StopResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void Stop(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::base::v1::StopResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void Stop(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::base::v1::StopResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void IsMoving(::grpc::ClientContext* context, const ::viam::component::base::v1::IsMovingRequest* request, ::viam::component::base::v1::IsMovingResponse* response, std::function) override; + void IsMoving(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::base::v1::IsMovingResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void IsMoving(::grpc::ClientContext* context, const ::viam::component::base::v1::IsMovingRequest* request, ::viam::component::base::v1::IsMovingResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void IsMoving(::grpc::ClientContext* context, const ::viam::component::base::v1::IsMovingRequest* request, ::viam::component::base::v1::IsMovingResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void IsMoving(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::base::v1::IsMovingResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void IsMoving(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::base::v1::IsMovingResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif 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 ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif 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 ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetProperties(::grpc::ClientContext* context, const ::viam::component::base::v1::GetPropertiesRequest* request, ::viam::component::base::v1::GetPropertiesResponse* response, std::function) override; + void GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::base::v1::GetPropertiesResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetProperties(::grpc::ClientContext* context, const ::viam::component::base::v1::GetPropertiesRequest* request, ::viam::component::base::v1::GetPropertiesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetProperties(::grpc::ClientContext* context, const ::viam::component::base::v1::GetPropertiesRequest* request, ::viam::component::base::v1::GetPropertiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::base::v1::GetPropertiesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::base::v1::GetPropertiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif private: friend class Stub; - explicit async(Stub* stub): stub_(stub) { } + explicit experimental_async(Stub* stub): stub_(stub) { } Stub* stub() { return stub_; } Stub* stub_; }; - class async* async() override { return &async_stub_; } + class experimental_async_interface* experimental_async() override { return &async_stub_; } private: std::shared_ptr< ::grpc::ChannelInterface> channel_; - class async async_stub_{this}; + class experimental_async async_stub_{this}; ::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::MoveStraightResponse>* AsyncMoveStraightRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::MoveStraightRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::MoveStraightResponse>* PrepareAsyncMoveStraightRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::MoveStraightRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::component::base::v1::SpinResponse>* AsyncSpinRaw(::grpc::ClientContext* context, const ::viam::component::base::v1::SpinRequest& request, ::grpc::CompletionQueue* cq) override; @@ -512,22 +697,36 @@ class BaseService final { }; typedef WithAsyncMethod_MoveStraight > > > > > > > > AsyncService; template - class WithCallbackMethod_MoveStraight : public BaseClass { + class ExperimentalWithCallbackMethod_MoveStraight : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_MoveStraight() { - ::grpc::Service::MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::base::v1::MoveStraightRequest, ::viam::component::base::v1::MoveStraightResponse>( + ExperimentalWithCallbackMethod_MoveStraight() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::base::v1::MoveStraightRequest, ::viam::component::base::v1::MoveStraightResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::base::v1::MoveStraightRequest* request, ::viam::component::base::v1::MoveStraightResponse* response) { return this->MoveStraight(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::base::v1::MoveStraightRequest* request, ::viam::component::base::v1::MoveStraightResponse* response) { return this->MoveStraight(context, request, response); }));} void SetMessageAllocatorFor_MoveStraight( - ::grpc::MessageAllocator< ::viam::component::base::v1::MoveStraightRequest, ::viam::component::base::v1::MoveStraightResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::base::v1::MoveStraightRequest, ::viam::component::base::v1::MoveStraightResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::base::v1::MoveStraightRequest, ::viam::component::base::v1::MoveStraightResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(0); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::base::v1::MoveStraightRequest, ::viam::component::base::v1::MoveStraightResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_MoveStraight() override { + ~ExperimentalWithCallbackMethod_MoveStraight() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -535,26 +734,46 @@ class BaseService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* MoveStraight( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::base::v1::MoveStraightRequest* /*request*/, ::viam::component::base::v1::MoveStraightResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::base::v1::MoveStraightRequest* /*request*/, ::viam::component::base::v1::MoveStraightResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* MoveStraight( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::base::v1::MoveStraightRequest* /*request*/, ::viam::component::base::v1::MoveStraightResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_Spin : public BaseClass { + class ExperimentalWithCallbackMethod_Spin : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_Spin() { - ::grpc::Service::MarkMethodCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::base::v1::SpinRequest, ::viam::component::base::v1::SpinResponse>( + ExperimentalWithCallbackMethod_Spin() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::base::v1::SpinRequest, ::viam::component::base::v1::SpinResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::base::v1::SpinRequest* request, ::viam::component::base::v1::SpinResponse* response) { return this->Spin(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::base::v1::SpinRequest* request, ::viam::component::base::v1::SpinResponse* response) { return this->Spin(context, request, response); }));} void SetMessageAllocatorFor_Spin( - ::grpc::MessageAllocator< ::viam::component::base::v1::SpinRequest, ::viam::component::base::v1::SpinResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::base::v1::SpinRequest, ::viam::component::base::v1::SpinResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::base::v1::SpinRequest, ::viam::component::base::v1::SpinResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(1); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::base::v1::SpinRequest, ::viam::component::base::v1::SpinResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_Spin() override { + ~ExperimentalWithCallbackMethod_Spin() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -562,26 +781,46 @@ class BaseService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* Spin( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::base::v1::SpinRequest* /*request*/, ::viam::component::base::v1::SpinResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::base::v1::SpinRequest* /*request*/, ::viam::component::base::v1::SpinResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* Spin( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::base::v1::SpinRequest* /*request*/, ::viam::component::base::v1::SpinResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_SetPower : public BaseClass { + class ExperimentalWithCallbackMethod_SetPower : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_SetPower() { - ::grpc::Service::MarkMethodCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::base::v1::SetPowerRequest, ::viam::component::base::v1::SetPowerResponse>( + ExperimentalWithCallbackMethod_SetPower() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(2, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::base::v1::SetPowerRequest, ::viam::component::base::v1::SetPowerResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::base::v1::SetPowerRequest* request, ::viam::component::base::v1::SetPowerResponse* response) { return this->SetPower(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::base::v1::SetPowerRequest* request, ::viam::component::base::v1::SetPowerResponse* response) { return this->SetPower(context, request, response); }));} void SetMessageAllocatorFor_SetPower( - ::grpc::MessageAllocator< ::viam::component::base::v1::SetPowerRequest, ::viam::component::base::v1::SetPowerResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::base::v1::SetPowerRequest, ::viam::component::base::v1::SetPowerResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::base::v1::SetPowerRequest, ::viam::component::base::v1::SetPowerResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(2); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::base::v1::SetPowerRequest, ::viam::component::base::v1::SetPowerResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_SetPower() override { + ~ExperimentalWithCallbackMethod_SetPower() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -589,26 +828,46 @@ class BaseService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* SetPower( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::base::v1::SetPowerRequest* /*request*/, ::viam::component::base::v1::SetPowerResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::base::v1::SetPowerRequest* /*request*/, ::viam::component::base::v1::SetPowerResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* SetPower( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::base::v1::SetPowerRequest* /*request*/, ::viam::component::base::v1::SetPowerResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_SetVelocity : public BaseClass { + class ExperimentalWithCallbackMethod_SetVelocity : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_SetVelocity() { - ::grpc::Service::MarkMethodCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::base::v1::SetVelocityRequest, ::viam::component::base::v1::SetVelocityResponse>( + ExperimentalWithCallbackMethod_SetVelocity() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(3, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::base::v1::SetVelocityRequest, ::viam::component::base::v1::SetVelocityResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::base::v1::SetVelocityRequest* request, ::viam::component::base::v1::SetVelocityResponse* response) { return this->SetVelocity(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::base::v1::SetVelocityRequest* request, ::viam::component::base::v1::SetVelocityResponse* response) { return this->SetVelocity(context, request, response); }));} void SetMessageAllocatorFor_SetVelocity( - ::grpc::MessageAllocator< ::viam::component::base::v1::SetVelocityRequest, ::viam::component::base::v1::SetVelocityResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::base::v1::SetVelocityRequest, ::viam::component::base::v1::SetVelocityResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::base::v1::SetVelocityRequest, ::viam::component::base::v1::SetVelocityResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(3); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::base::v1::SetVelocityRequest, ::viam::component::base::v1::SetVelocityResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_SetVelocity() override { + ~ExperimentalWithCallbackMethod_SetVelocity() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -616,26 +875,46 @@ class BaseService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* SetVelocity( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::base::v1::SetVelocityRequest* /*request*/, ::viam::component::base::v1::SetVelocityResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::base::v1::SetVelocityRequest* /*request*/, ::viam::component::base::v1::SetVelocityResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* SetVelocity( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::base::v1::SetVelocityRequest* /*request*/, ::viam::component::base::v1::SetVelocityResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_Stop : public BaseClass { + class ExperimentalWithCallbackMethod_Stop : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_Stop() { - ::grpc::Service::MarkMethodCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::base::v1::StopRequest, ::viam::component::base::v1::StopResponse>( + ExperimentalWithCallbackMethod_Stop() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(4, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::base::v1::StopRequest, ::viam::component::base::v1::StopResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::base::v1::StopRequest* request, ::viam::component::base::v1::StopResponse* response) { return this->Stop(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::base::v1::StopRequest* request, ::viam::component::base::v1::StopResponse* response) { return this->Stop(context, request, response); }));} void SetMessageAllocatorFor_Stop( - ::grpc::MessageAllocator< ::viam::component::base::v1::StopRequest, ::viam::component::base::v1::StopResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::base::v1::StopRequest, ::viam::component::base::v1::StopResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::base::v1::StopRequest, ::viam::component::base::v1::StopResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(4); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::base::v1::StopRequest, ::viam::component::base::v1::StopResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_Stop() override { + ~ExperimentalWithCallbackMethod_Stop() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -643,26 +922,46 @@ class BaseService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* Stop( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::base::v1::StopRequest* /*request*/, ::viam::component::base::v1::StopResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::base::v1::StopRequest* /*request*/, ::viam::component::base::v1::StopResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* Stop( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::base::v1::StopRequest* /*request*/, ::viam::component::base::v1::StopResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_IsMoving : public BaseClass { + class ExperimentalWithCallbackMethod_IsMoving : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_IsMoving() { - ::grpc::Service::MarkMethodCallback(5, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::base::v1::IsMovingRequest, ::viam::component::base::v1::IsMovingResponse>( + ExperimentalWithCallbackMethod_IsMoving() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(5, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::base::v1::IsMovingRequest, ::viam::component::base::v1::IsMovingResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::base::v1::IsMovingRequest* request, ::viam::component::base::v1::IsMovingResponse* response) { return this->IsMoving(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::base::v1::IsMovingRequest* request, ::viam::component::base::v1::IsMovingResponse* response) { return this->IsMoving(context, request, response); }));} void SetMessageAllocatorFor_IsMoving( - ::grpc::MessageAllocator< ::viam::component::base::v1::IsMovingRequest, ::viam::component::base::v1::IsMovingResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::base::v1::IsMovingRequest, ::viam::component::base::v1::IsMovingResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(5); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::base::v1::IsMovingRequest, ::viam::component::base::v1::IsMovingResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(5); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::base::v1::IsMovingRequest, ::viam::component::base::v1::IsMovingResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_IsMoving() override { + ~ExperimentalWithCallbackMethod_IsMoving() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -670,26 +969,46 @@ class BaseService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* IsMoving( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::base::v1::IsMovingRequest* /*request*/, ::viam::component::base::v1::IsMovingResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::base::v1::IsMovingRequest* /*request*/, ::viam::component::base::v1::IsMovingResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* IsMoving( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::base::v1::IsMovingRequest* /*request*/, ::viam::component::base::v1::IsMovingResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_DoCommand : public BaseClass { + class ExperimentalWithCallbackMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_DoCommand() { - ::grpc::Service::MarkMethodCallback(6, - new ::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( + ExperimentalWithCallbackMethod_DoCommand() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(6, + new ::grpc_impl::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); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + 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::experimental::MessageAllocator< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(6); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(6); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_DoCommand() override { + ~ExperimentalWithCallbackMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -697,26 +1016,46 @@ class BaseService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DoCommand( - ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DoCommand( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetGeometries : public BaseClass { + class ExperimentalWithCallbackMethod_GetGeometries : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetGeometries() { - ::grpc::Service::MarkMethodCallback(7, - new ::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( + ExperimentalWithCallbackMethod_GetGeometries() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(7, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response) { return this->GetGeometries(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response) { return this->GetGeometries(context, request, response); }));} void SetMessageAllocatorFor_GetGeometries( - ::grpc::MessageAllocator< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(7); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(7); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetGeometries() override { + ~ExperimentalWithCallbackMethod_GetGeometries() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -724,26 +1063,46 @@ class BaseService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetGeometries( - ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::GetGeometriesRequest* /*request*/, ::viam::common::v1::GetGeometriesResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::GetGeometriesRequest* /*request*/, ::viam::common::v1::GetGeometriesResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetGeometries( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::common::v1::GetGeometriesRequest* /*request*/, ::viam::common::v1::GetGeometriesResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetProperties : public BaseClass { + class ExperimentalWithCallbackMethod_GetProperties : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetProperties() { - ::grpc::Service::MarkMethodCallback(8, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::base::v1::GetPropertiesRequest, ::viam::component::base::v1::GetPropertiesResponse>( + ExperimentalWithCallbackMethod_GetProperties() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(8, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::base::v1::GetPropertiesRequest, ::viam::component::base::v1::GetPropertiesResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::base::v1::GetPropertiesRequest* request, ::viam::component::base::v1::GetPropertiesResponse* response) { return this->GetProperties(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::base::v1::GetPropertiesRequest* request, ::viam::component::base::v1::GetPropertiesResponse* response) { return this->GetProperties(context, request, response); }));} void SetMessageAllocatorFor_GetProperties( - ::grpc::MessageAllocator< ::viam::component::base::v1::GetPropertiesRequest, ::viam::component::base::v1::GetPropertiesResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::base::v1::GetPropertiesRequest, ::viam::component::base::v1::GetPropertiesResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(8); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::base::v1::GetPropertiesRequest, ::viam::component::base::v1::GetPropertiesResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(8); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::base::v1::GetPropertiesRequest, ::viam::component::base::v1::GetPropertiesResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetProperties() override { + ~ExperimentalWithCallbackMethod_GetProperties() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -751,11 +1110,20 @@ class BaseService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetProperties( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::base::v1::GetPropertiesRequest* /*request*/, ::viam::component::base::v1::GetPropertiesResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::base::v1::GetPropertiesRequest* /*request*/, ::viam::component::base::v1::GetPropertiesResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetProperties( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::base::v1::GetPropertiesRequest* /*request*/, ::viam::component::base::v1::GetPropertiesResponse* /*response*/) + #endif + { return nullptr; } }; - typedef WithCallbackMethod_MoveStraight > > > > > > > > CallbackService; - typedef CallbackService ExperimentalCallbackService; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef ExperimentalWithCallbackMethod_MoveStraight > > > > > > > > CallbackService; + #endif + + typedef ExperimentalWithCallbackMethod_MoveStraight > > > > > > > > ExperimentalCallbackService; template class WithGenericMethod_MoveStraight : public BaseClass { private: @@ -1090,17 +1458,27 @@ class BaseService final { } }; template - class WithRawCallbackMethod_MoveStraight : public BaseClass { + class ExperimentalWithRawCallbackMethod_MoveStraight : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_MoveStraight() { - ::grpc::Service::MarkMethodRawCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_MoveStraight() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->MoveStraight(context, request, response); })); - } - ~WithRawCallbackMethod_MoveStraight() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->MoveStraight(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_MoveStraight() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1108,21 +1486,37 @@ class BaseService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* MoveStraight( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* MoveStraight( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_Spin : public BaseClass { + class ExperimentalWithRawCallbackMethod_Spin : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_Spin() { - ::grpc::Service::MarkMethodRawCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_Spin() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Spin(context, request, response); })); - } - ~WithRawCallbackMethod_Spin() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Spin(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_Spin() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1130,21 +1524,37 @@ class BaseService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* Spin( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* Spin( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_SetPower : public BaseClass { + class ExperimentalWithRawCallbackMethod_SetPower : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_SetPower() { - ::grpc::Service::MarkMethodRawCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_SetPower() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(2, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SetPower(context, request, response); })); - } - ~WithRawCallbackMethod_SetPower() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SetPower(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_SetPower() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1152,21 +1562,37 @@ class BaseService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* SetPower( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* SetPower( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_SetVelocity : public BaseClass { + class ExperimentalWithRawCallbackMethod_SetVelocity : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_SetVelocity() { - ::grpc::Service::MarkMethodRawCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_SetVelocity() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(3, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SetVelocity(context, request, response); })); - } - ~WithRawCallbackMethod_SetVelocity() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SetVelocity(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_SetVelocity() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1174,21 +1600,37 @@ class BaseService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* SetVelocity( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* SetVelocity( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_Stop : public BaseClass { + class ExperimentalWithRawCallbackMethod_Stop : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_Stop() { - ::grpc::Service::MarkMethodRawCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_Stop() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(4, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Stop(context, request, response); })); - } - ~WithRawCallbackMethod_Stop() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Stop(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_Stop() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1196,21 +1638,37 @@ class BaseService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* Stop( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* Stop( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_IsMoving : public BaseClass { + class ExperimentalWithRawCallbackMethod_IsMoving : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_IsMoving() { - ::grpc::Service::MarkMethodRawCallback(5, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_IsMoving() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(5, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->IsMoving(context, request, response); })); - } - ~WithRawCallbackMethod_IsMoving() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->IsMoving(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_IsMoving() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1218,21 +1676,37 @@ class BaseService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* IsMoving( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* IsMoving( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_DoCommand : public BaseClass { + class ExperimentalWithRawCallbackMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_DoCommand() { - ::grpc::Service::MarkMethodRawCallback(6, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_DoCommand() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(6, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DoCommand(context, request, response); })); - } - ~WithRawCallbackMethod_DoCommand() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DoCommand(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1240,21 +1714,37 @@ class BaseService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DoCommand( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DoCommand( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetGeometries : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetGeometries : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetGeometries() { - ::grpc::Service::MarkMethodRawCallback(7, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetGeometries() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(7, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetGeometries(context, request, response); })); - } - ~WithRawCallbackMethod_GetGeometries() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetGeometries(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetGeometries() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1262,21 +1752,37 @@ class BaseService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetGeometries( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetGeometries( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetProperties : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetProperties : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetProperties() { - ::grpc::Service::MarkMethodRawCallback(8, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetProperties() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(8, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetProperties(context, request, response); })); - } - ~WithRawCallbackMethod_GetProperties() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetProperties(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetProperties() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1284,8 +1790,14 @@ class BaseService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetProperties( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetProperties( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template class WithStreamedUnaryMethod_MoveStraight : public BaseClass { @@ -1296,8 +1808,8 @@ class BaseService final { ::grpc::Service::MarkMethodStreamed(0, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::base::v1::MoveStraightRequest, ::viam::component::base::v1::MoveStraightResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::base::v1::MoveStraightRequest, ::viam::component::base::v1::MoveStraightResponse>* streamer) { return this->StreamedMoveStraight(context, streamer); @@ -1323,8 +1835,8 @@ class BaseService final { ::grpc::Service::MarkMethodStreamed(1, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::base::v1::SpinRequest, ::viam::component::base::v1::SpinResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::base::v1::SpinRequest, ::viam::component::base::v1::SpinResponse>* streamer) { return this->StreamedSpin(context, streamer); @@ -1350,8 +1862,8 @@ class BaseService final { ::grpc::Service::MarkMethodStreamed(2, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::base::v1::SetPowerRequest, ::viam::component::base::v1::SetPowerResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::base::v1::SetPowerRequest, ::viam::component::base::v1::SetPowerResponse>* streamer) { return this->StreamedSetPower(context, streamer); @@ -1377,8 +1889,8 @@ class BaseService final { ::grpc::Service::MarkMethodStreamed(3, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::base::v1::SetVelocityRequest, ::viam::component::base::v1::SetVelocityResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::base::v1::SetVelocityRequest, ::viam::component::base::v1::SetVelocityResponse>* streamer) { return this->StreamedSetVelocity(context, streamer); @@ -1404,8 +1916,8 @@ class BaseService final { ::grpc::Service::MarkMethodStreamed(4, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::base::v1::StopRequest, ::viam::component::base::v1::StopResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::base::v1::StopRequest, ::viam::component::base::v1::StopResponse>* streamer) { return this->StreamedStop(context, streamer); @@ -1431,8 +1943,8 @@ class BaseService final { ::grpc::Service::MarkMethodStreamed(5, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::base::v1::IsMovingRequest, ::viam::component::base::v1::IsMovingResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::base::v1::IsMovingRequest, ::viam::component::base::v1::IsMovingResponse>* streamer) { return this->StreamedIsMoving(context, streamer); @@ -1458,8 +1970,8 @@ class BaseService final { ::grpc::Service::MarkMethodStreamed(6, new ::grpc::internal::StreamedUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* streamer) { return this->StreamedDoCommand(context, streamer); @@ -1485,8 +1997,8 @@ class BaseService final { ::grpc::Service::MarkMethodStreamed(7, new ::grpc::internal::StreamedUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>* streamer) { return this->StreamedGetGeometries(context, streamer); @@ -1512,8 +2024,8 @@ class BaseService final { ::grpc::Service::MarkMethodStreamed(8, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::base::v1::GetPropertiesRequest, ::viam::component::base::v1::GetPropertiesResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::base::v1::GetPropertiesRequest, ::viam::component::base::v1::GetPropertiesResponse>* streamer) { return this->StreamedGetProperties(context, streamer); diff --git a/src/viam/api/component/base/v1/base.pb.cc b/src/viam/api/component/base/v1/base.pb.cc index 837121cd5..d6ed97e18 100644 --- a/src/viam/api/component/base/v1/base.pb.cc +++ b/src/viam/api/component/base/v1/base.pb.cc @@ -4,900 +4,733 @@ #include "component/base/v1/base.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace viam { namespace component { namespace base { namespace v1 { - template -PROTOBUF_CONSTEXPR StopResponse::StopResponse(::_pbi::ConstantInitialized) {} -struct StopResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR StopResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StopResponseDefaultTypeInternal() {} - union { - StopResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopResponseDefaultTypeInternal _StopResponse_default_instance_; - template -PROTOBUF_CONSTEXPR SpinResponse::SpinResponse(::_pbi::ConstantInitialized) {} -struct SpinResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SpinResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SpinResponseDefaultTypeInternal() {} - union { - SpinResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SpinResponseDefaultTypeInternal _SpinResponse_default_instance_; - template -PROTOBUF_CONSTEXPR SetVelocityResponse::SetVelocityResponse(::_pbi::ConstantInitialized) {} -struct SetVelocityResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetVelocityResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetVelocityResponseDefaultTypeInternal() {} - union { - SetVelocityResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetVelocityResponseDefaultTypeInternal _SetVelocityResponse_default_instance_; - template -PROTOBUF_CONSTEXPR SetPowerResponse::SetPowerResponse(::_pbi::ConstantInitialized) {} -struct SetPowerResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetPowerResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetPowerResponseDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR MoveStraightRequest::MoveStraightRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr) + , distance_mm_(int64_t{0}) + , mm_per_sec_(0){} +struct MoveStraightRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR MoveStraightRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~MoveStraightRequestDefaultTypeInternal() {} union { - SetPowerResponse _instance; + MoveStraightRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetPowerResponseDefaultTypeInternal _SetPowerResponse_default_instance_; - template -PROTOBUF_CONSTEXPR MoveStraightResponse::MoveStraightResponse(::_pbi::ConstantInitialized) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveStraightRequestDefaultTypeInternal _MoveStraightRequest_default_instance_; +PROTOBUF_CONSTEXPR MoveStraightResponse::MoveStraightResponse( + ::_pbi::ConstantInitialized){} struct MoveStraightResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR MoveStraightResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR MoveStraightResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~MoveStraightResponseDefaultTypeInternal() {} union { MoveStraightResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveStraightResponseDefaultTypeInternal _MoveStraightResponse_default_instance_; - -inline constexpr IsMovingResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : is_moving_{false}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR IsMovingResponse::IsMovingResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct IsMovingResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR IsMovingResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~IsMovingResponseDefaultTypeInternal() {} - union { - IsMovingResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IsMovingResponseDefaultTypeInternal _IsMovingResponse_default_instance_; - -inline constexpr IsMovingRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR IsMovingRequest::IsMovingRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct IsMovingRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR IsMovingRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~IsMovingRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveStraightResponseDefaultTypeInternal _MoveStraightResponse_default_instance_; +PROTOBUF_CONSTEXPR SpinRequest::SpinRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr) + , angle_deg_(0) + , degs_per_sec_(0){} +struct SpinRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SpinRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SpinRequestDefaultTypeInternal() {} union { - IsMovingRequest _instance; + SpinRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IsMovingRequestDefaultTypeInternal _IsMovingRequest_default_instance_; - -inline constexpr GetPropertiesResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : width_meters_{0}, - turning_radius_meters_{0}, - wheel_circumference_meters_{0}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetPropertiesResponse::GetPropertiesResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetPropertiesResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetPropertiesResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetPropertiesResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SpinRequestDefaultTypeInternal _SpinRequest_default_instance_; +PROTOBUF_CONSTEXPR SpinResponse::SpinResponse( + ::_pbi::ConstantInitialized){} +struct SpinResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR SpinResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SpinResponseDefaultTypeInternal() {} union { - GetPropertiesResponse _instance; + SpinResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPropertiesResponseDefaultTypeInternal _GetPropertiesResponse_default_instance_; - -inline constexpr StopRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR StopRequest::StopRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SpinResponseDefaultTypeInternal _SpinResponse_default_instance_; +PROTOBUF_CONSTEXPR StopRequest::StopRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} struct StopRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR StopRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR StopRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~StopRequestDefaultTypeInternal() {} union { StopRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopRequestDefaultTypeInternal _StopRequest_default_instance_; - -inline constexpr SpinRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr}, - angle_deg_{0}, - degs_per_sec_{0} {} - -template -PROTOBUF_CONSTEXPR SpinRequest::SpinRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct SpinRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SpinRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SpinRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopRequestDefaultTypeInternal _StopRequest_default_instance_; +PROTOBUF_CONSTEXPR StopResponse::StopResponse( + ::_pbi::ConstantInitialized){} +struct StopResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR StopResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StopResponseDefaultTypeInternal() {} union { - SpinRequest _instance; + StopResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SpinRequestDefaultTypeInternal _SpinRequest_default_instance_; - -inline constexpr SetVelocityRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - linear_{nullptr}, - angular_{nullptr}, - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR SetVelocityRequest::SetVelocityRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopResponseDefaultTypeInternal _StopResponse_default_instance_; +PROTOBUF_CONSTEXPR SetPowerRequest::SetPowerRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , linear_(nullptr) + , angular_(nullptr) + , extra_(nullptr){} +struct SetPowerRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SetPowerRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SetPowerRequestDefaultTypeInternal() {} + union { + SetPowerRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetPowerRequestDefaultTypeInternal _SetPowerRequest_default_instance_; +PROTOBUF_CONSTEXPR SetPowerResponse::SetPowerResponse( + ::_pbi::ConstantInitialized){} +struct SetPowerResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR SetPowerResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SetPowerResponseDefaultTypeInternal() {} + union { + SetPowerResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetPowerResponseDefaultTypeInternal _SetPowerResponse_default_instance_; +PROTOBUF_CONSTEXPR SetVelocityRequest::SetVelocityRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , linear_(nullptr) + , angular_(nullptr) + , extra_(nullptr){} struct SetVelocityRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetVelocityRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SetVelocityRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~SetVelocityRequestDefaultTypeInternal() {} union { SetVelocityRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetVelocityRequestDefaultTypeInternal _SetVelocityRequest_default_instance_; - -inline constexpr SetPowerRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - linear_{nullptr}, - angular_{nullptr}, - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR SetPowerRequest::SetPowerRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct SetPowerRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetPowerRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetPowerRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetVelocityRequestDefaultTypeInternal _SetVelocityRequest_default_instance_; +PROTOBUF_CONSTEXPR SetVelocityResponse::SetVelocityResponse( + ::_pbi::ConstantInitialized){} +struct SetVelocityResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR SetVelocityResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SetVelocityResponseDefaultTypeInternal() {} union { - SetPowerRequest _instance; + SetVelocityResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetPowerRequestDefaultTypeInternal _SetPowerRequest_default_instance_; - -inline constexpr MoveStraightRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr}, - distance_mm_{::int64_t{0}}, - mm_per_sec_{0} {} - -template -PROTOBUF_CONSTEXPR MoveStraightRequest::MoveStraightRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct MoveStraightRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR MoveStraightRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~MoveStraightRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetVelocityResponseDefaultTypeInternal _SetVelocityResponse_default_instance_; +PROTOBUF_CONSTEXPR IsMovingRequest::IsMovingRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct IsMovingRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR IsMovingRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~IsMovingRequestDefaultTypeInternal() {} union { - MoveStraightRequest _instance; + IsMovingRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveStraightRequestDefaultTypeInternal _MoveStraightRequest_default_instance_; - -inline constexpr GetPropertiesRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetPropertiesRequest::GetPropertiesRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IsMovingRequestDefaultTypeInternal _IsMovingRequest_default_instance_; +PROTOBUF_CONSTEXPR IsMovingResponse::IsMovingResponse( + ::_pbi::ConstantInitialized) + : is_moving_(false){} +struct IsMovingResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR IsMovingResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~IsMovingResponseDefaultTypeInternal() {} + union { + IsMovingResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IsMovingResponseDefaultTypeInternal _IsMovingResponse_default_instance_; +PROTOBUF_CONSTEXPR GetPropertiesRequest::GetPropertiesRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} struct GetPropertiesRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetPropertiesRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GetPropertiesRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~GetPropertiesRequestDefaultTypeInternal() {} union { GetPropertiesRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPropertiesRequestDefaultTypeInternal _GetPropertiesRequest_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPropertiesRequestDefaultTypeInternal _GetPropertiesRequest_default_instance_; +PROTOBUF_CONSTEXPR GetPropertiesResponse::GetPropertiesResponse( + ::_pbi::ConstantInitialized) + : width_meters_(0) + , turning_radius_meters_(0) + , wheel_circumference_meters_(0){} +struct GetPropertiesResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPropertiesResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPropertiesResponseDefaultTypeInternal() {} + union { + GetPropertiesResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPropertiesResponseDefaultTypeInternal _GetPropertiesResponse_default_instance_; } // namespace v1 } // namespace base } // namespace component } // namespace viam static ::_pb::Metadata file_level_metadata_component_2fbase_2fv1_2fbase_2eproto[14]; -static constexpr const ::_pb::EnumDescriptor** - file_level_enum_descriptors_component_2fbase_2fv1_2fbase_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_component_2fbase_2fv1_2fbase_2eproto = nullptr; -const ::uint32_t TableStruct_component_2fbase_2fv1_2fbase_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::MoveStraightRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::MoveStraightRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::MoveStraightRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::MoveStraightRequest, _impl_.distance_mm_), - PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::MoveStraightRequest, _impl_.mm_per_sec_), - PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::MoveStraightRequest, _impl_.extra_), - ~0u, - ~0u, - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::MoveStraightResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SpinRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SpinRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SpinRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SpinRequest, _impl_.angle_deg_), - PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SpinRequest, _impl_.degs_per_sec_), - PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SpinRequest, _impl_.extra_), - ~0u, - ~0u, - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SpinResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::StopRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::StopRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::StopRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::StopRequest, _impl_.extra_), - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::StopResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SetPowerRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SetPowerRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SetPowerRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SetPowerRequest, _impl_.linear_), - PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SetPowerRequest, _impl_.angular_), - PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SetPowerRequest, _impl_.extra_), - ~0u, - 0, - 1, - 2, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SetPowerResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SetVelocityRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SetVelocityRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SetVelocityRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SetVelocityRequest, _impl_.linear_), - PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SetVelocityRequest, _impl_.angular_), - PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SetVelocityRequest, _impl_.extra_), - ~0u, - 0, - 1, - 2, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SetVelocityResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::IsMovingRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::IsMovingRequest, _impl_.name_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::IsMovingResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::IsMovingResponse, _impl_.is_moving_), - PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::GetPropertiesRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::GetPropertiesRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::GetPropertiesRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::GetPropertiesRequest, _impl_.extra_), - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::GetPropertiesResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::GetPropertiesResponse, _impl_.width_meters_), - PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::GetPropertiesResponse, _impl_.turning_radius_meters_), - PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::GetPropertiesResponse, _impl_.wheel_circumference_meters_), +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_component_2fbase_2fv1_2fbase_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_component_2fbase_2fv1_2fbase_2eproto = nullptr; + +const uint32_t TableStruct_component_2fbase_2fv1_2fbase_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::MoveStraightRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::MoveStraightRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::MoveStraightRequest, distance_mm_), + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::MoveStraightRequest, mm_per_sec_), + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::MoveStraightRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::MoveStraightResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SpinRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SpinRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SpinRequest, angle_deg_), + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SpinRequest, degs_per_sec_), + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SpinRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SpinResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::StopRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::StopRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::StopRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::StopResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SetPowerRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SetPowerRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SetPowerRequest, linear_), + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SetPowerRequest, angular_), + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SetPowerRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SetPowerResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SetVelocityRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SetVelocityRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SetVelocityRequest, linear_), + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SetVelocityRequest, angular_), + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SetVelocityRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::SetVelocityResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::IsMovingRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::IsMovingRequest, name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::IsMovingResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::IsMovingResponse, is_moving_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::GetPropertiesRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::GetPropertiesRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::GetPropertiesRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::GetPropertiesResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::GetPropertiesResponse, width_meters_), + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::GetPropertiesResponse, turning_radius_meters_), + PROTOBUF_FIELD_OFFSET(::viam::component::base::v1::GetPropertiesResponse, wheel_circumference_meters_), }; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, 12, -1, sizeof(::viam::component::base::v1::MoveStraightRequest)}, - {16, -1, -1, sizeof(::viam::component::base::v1::MoveStraightResponse)}, - {24, 36, -1, sizeof(::viam::component::base::v1::SpinRequest)}, - {40, -1, -1, sizeof(::viam::component::base::v1::SpinResponse)}, - {48, 58, -1, sizeof(::viam::component::base::v1::StopRequest)}, - {60, -1, -1, sizeof(::viam::component::base::v1::StopResponse)}, - {68, 80, -1, sizeof(::viam::component::base::v1::SetPowerRequest)}, - {84, -1, -1, sizeof(::viam::component::base::v1::SetPowerResponse)}, - {92, 104, -1, sizeof(::viam::component::base::v1::SetVelocityRequest)}, - {108, -1, -1, sizeof(::viam::component::base::v1::SetVelocityResponse)}, - {116, -1, -1, sizeof(::viam::component::base::v1::IsMovingRequest)}, - {125, -1, -1, sizeof(::viam::component::base::v1::IsMovingResponse)}, - {134, 144, -1, sizeof(::viam::component::base::v1::GetPropertiesRequest)}, - {146, -1, -1, sizeof(::viam::component::base::v1::GetPropertiesResponse)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::component::base::v1::MoveStraightRequest)}, + { 10, -1, -1, sizeof(::viam::component::base::v1::MoveStraightResponse)}, + { 16, -1, -1, sizeof(::viam::component::base::v1::SpinRequest)}, + { 26, -1, -1, sizeof(::viam::component::base::v1::SpinResponse)}, + { 32, -1, -1, sizeof(::viam::component::base::v1::StopRequest)}, + { 40, -1, -1, sizeof(::viam::component::base::v1::StopResponse)}, + { 46, -1, -1, sizeof(::viam::component::base::v1::SetPowerRequest)}, + { 56, -1, -1, sizeof(::viam::component::base::v1::SetPowerResponse)}, + { 62, -1, -1, sizeof(::viam::component::base::v1::SetVelocityRequest)}, + { 72, -1, -1, sizeof(::viam::component::base::v1::SetVelocityResponse)}, + { 78, -1, -1, sizeof(::viam::component::base::v1::IsMovingRequest)}, + { 85, -1, -1, sizeof(::viam::component::base::v1::IsMovingResponse)}, + { 92, -1, -1, sizeof(::viam::component::base::v1::GetPropertiesRequest)}, + { 100, -1, -1, sizeof(::viam::component::base::v1::GetPropertiesResponse)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::viam::component::base::v1::_MoveStraightRequest_default_instance_._instance, - &::viam::component::base::v1::_MoveStraightResponse_default_instance_._instance, - &::viam::component::base::v1::_SpinRequest_default_instance_._instance, - &::viam::component::base::v1::_SpinResponse_default_instance_._instance, - &::viam::component::base::v1::_StopRequest_default_instance_._instance, - &::viam::component::base::v1::_StopResponse_default_instance_._instance, - &::viam::component::base::v1::_SetPowerRequest_default_instance_._instance, - &::viam::component::base::v1::_SetPowerResponse_default_instance_._instance, - &::viam::component::base::v1::_SetVelocityRequest_default_instance_._instance, - &::viam::component::base::v1::_SetVelocityResponse_default_instance_._instance, - &::viam::component::base::v1::_IsMovingRequest_default_instance_._instance, - &::viam::component::base::v1::_IsMovingResponse_default_instance_._instance, - &::viam::component::base::v1::_GetPropertiesRequest_default_instance_._instance, - &::viam::component::base::v1::_GetPropertiesResponse_default_instance_._instance, -}; -const char descriptor_table_protodef_component_2fbase_2fv1_2fbase_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n\034component/base/v1/base.proto\022\026viam.com" - "ponent.base.v1\032\026common/v1/common.proto\032\034" - "google/api/annotations.proto\032\034google/pro" - "tobuf/struct.proto\"\227\001\n\023MoveStraightReque" - "st\022\022\n\004name\030\001 \001(\tR\004name\022\037\n\013distance_mm\030\002 " - "\001(\003R\ndistanceMm\022\034\n\nmm_per_sec\030\003 \001(\001R\010mmP" - "erSec\022-\n\005extra\030c \001(\0132\027.google.protobuf.S" - "tructR\005extra\"\026\n\024MoveStraightResponse\"\217\001\n" - "\013SpinRequest\022\022\n\004name\030\001 \001(\tR\004name\022\033\n\tangl" - "e_deg\030\002 \001(\001R\010angleDeg\022 \n\014degs_per_sec\030\003 " - "\001(\001R\ndegsPerSec\022-\n\005extra\030c \001(\0132\027.google." - "protobuf.StructR\005extra\"\016\n\014SpinResponse\"P" - "\n\013StopRequest\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005ext" - "ra\030c \001(\0132\027.google.protobuf.StructR\005extra" - "\"\016\n\014StopResponse\"\270\001\n\017SetPowerRequest\022\022\n\004" - "name\030\001 \001(\tR\004name\022/\n\006linear\030\002 \001(\0132\027.viam." - "common.v1.Vector3R\006linear\0221\n\007angular\030\003 \001" - "(\0132\027.viam.common.v1.Vector3R\007angular\022-\n\005" - "extra\030c \001(\0132\027.google.protobuf.StructR\005ex" - "tra\"\022\n\020SetPowerResponse\"\273\001\n\022SetVelocityR" - "equest\022\022\n\004name\030\001 \001(\tR\004name\022/\n\006linear\030\002 \001" - "(\0132\027.viam.common.v1.Vector3R\006linear\0221\n\007a" - "ngular\030\003 \001(\0132\027.viam.common.v1.Vector3R\007a" - "ngular\022-\n\005extra\030c \001(\0132\027.google.protobuf." - "StructR\005extra\"\025\n\023SetVelocityResponse\"%\n\017" - "IsMovingRequest\022\022\n\004name\030\001 \001(\tR\004name\"/\n\020I" - "sMovingResponse\022\033\n\tis_moving\030\001 \001(\010R\010isMo" - "ving\"Y\n\024GetPropertiesRequest\022\022\n\004name\030\001 \001" - "(\tR\004name\022-\n\005extra\030c \001(\0132\027.google.protobu" - "f.StructR\005extra\"\254\001\n\025GetPropertiesRespons" - "e\022!\n\014width_meters\030\001 \001(\001R\013widthMeters\0222\n\025" - "turning_radius_meters\030\002 \001(\001R\023turningRadi" - "usMeters\022<\n\032wheel_circumference_meters\030\003" - " \001(\001R\030wheelCircumferenceMeters2\341\n\n\013BaseS" - "ervice\022\247\001\n\014MoveStraight\022+.viam.component" - ".base.v1.MoveStraightRequest\032,.viam.comp" - "onent.base.v1.MoveStraightResponse\"<\240\222)\001" - "\202\323\344\223\0022\"0/viam/api/v1/component/base/{nam" - "e}/move_straight\022\206\001\n\004Spin\022#.viam.compone" - "nt.base.v1.SpinRequest\032$.viam.component." - "base.v1.SpinResponse\"3\240\222)\001\202\323\344\223\002)\"\'/viam/" - "api/v1/component/base/{name}/spin\022\227\001\n\010Se" - "tPower\022\'.viam.component.base.v1.SetPower" - "Request\032(.viam.component.base.v1.SetPowe" - "rResponse\"8\240\222)\001\202\323\344\223\002.\",/viam/api/v1/comp" - "onent/base/{name}/set_power\022\243\001\n\013SetVeloc" - "ity\022*.viam.component.base.v1.SetVelocity" - "Request\032+.viam.component.base.v1.SetVelo" - "cityResponse\";\240\222)\001\202\323\344\223\0021\"//viam/api/v1/c" - "omponent/base/{name}/set_velocity\022\202\001\n\004St" - "op\022#.viam.component.base.v1.StopRequest\032" - "$.viam.component.base.v1.StopResponse\"/\202" - "\323\344\223\002)\"\'/viam/api/v1/component/base/{name" - "}/stop\022\223\001\n\010IsMoving\022\'.viam.component.bas" - "e.v1.IsMovingRequest\032(.viam.component.ba" - "se.v1.IsMovingResponse\"4\202\323\344\223\002.\022,/viam/ap" - "i/v1/component/base/{name}/is_moving\022\207\001\n" - "\tDoCommand\022 .viam.common.v1.DoCommandReq" - "uest\032!.viam.common.v1.DoCommandResponse\"" - "5\202\323\344\223\002/\"-/viam/api/v1/component/base/{na" - "me}/do_command\022\223\001\n\rGetGeometries\022$.viam." - "common.v1.GetGeometriesRequest\032%.viam.co" - "mmon.v1.GetGeometriesResponse\"5\202\323\344\223\002/\022-/" - "viam/api/v1/component/base/{name}/geomet" - "ries\022\243\001\n\rGetProperties\022,.viam.component." - "base.v1.GetPropertiesRequest\032-.viam.comp" - "onent.base.v1.GetPropertiesResponse\"5\202\323\344" - "\223\002/\022-/viam/api/v1/component/base/{name}/" - "propertiesB\305\001\n\032com.viam.component.base.v" - "1B\tBaseProtoP\001Z!go.viam.com/api/componen" - "t/base/v1\242\002\003VCB\252\002\026Viam.Component.Base.V1" - "\312\002\026Viam\\Component\\Base\\V1\342\002\"Viam\\Compone" - "nt\\Base\\V1\\GPBMetadata\352\002\031Viam::Component" - "::Base::V1b\006proto3" + &::viam::component::base::v1::_MoveStraightRequest_default_instance_._instance, + &::viam::component::base::v1::_MoveStraightResponse_default_instance_._instance, + &::viam::component::base::v1::_SpinRequest_default_instance_._instance, + &::viam::component::base::v1::_SpinResponse_default_instance_._instance, + &::viam::component::base::v1::_StopRequest_default_instance_._instance, + &::viam::component::base::v1::_StopResponse_default_instance_._instance, + &::viam::component::base::v1::_SetPowerRequest_default_instance_._instance, + &::viam::component::base::v1::_SetPowerResponse_default_instance_._instance, + &::viam::component::base::v1::_SetVelocityRequest_default_instance_._instance, + &::viam::component::base::v1::_SetVelocityResponse_default_instance_._instance, + &::viam::component::base::v1::_IsMovingRequest_default_instance_._instance, + &::viam::component::base::v1::_IsMovingResponse_default_instance_._instance, + &::viam::component::base::v1::_GetPropertiesRequest_default_instance_._instance, + &::viam::component::base::v1::_GetPropertiesResponse_default_instance_._instance, }; -static const ::_pbi::DescriptorTable* const descriptor_table_component_2fbase_2fv1_2fbase_2eproto_deps[3] = - { - &::descriptor_table_common_2fv1_2fcommon_2eproto, - &::descriptor_table_google_2fapi_2fannotations_2eproto, - &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, + +const char descriptor_table_protodef_component_2fbase_2fv1_2fbase_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\034component/base/v1/base.proto\022\026viam.com" + "ponent.base.v1\032\026common/v1/common.proto\032\034" + "google/api/annotations.proto\032\034google/pro" + "tobuf/struct.proto\"\227\001\n\023MoveStraightReque" + "st\022\022\n\004name\030\001 \001(\tR\004name\022\037\n\013distance_mm\030\002 " + "\001(\003R\ndistanceMm\022\034\n\nmm_per_sec\030\003 \001(\001R\010mmP" + "erSec\022-\n\005extra\030c \001(\0132\027.google.protobuf.S" + "tructR\005extra\"\026\n\024MoveStraightResponse\"\217\001\n" + "\013SpinRequest\022\022\n\004name\030\001 \001(\tR\004name\022\033\n\tangl" + "e_deg\030\002 \001(\001R\010angleDeg\022 \n\014degs_per_sec\030\003 " + "\001(\001R\ndegsPerSec\022-\n\005extra\030c \001(\0132\027.google." + "protobuf.StructR\005extra\"\016\n\014SpinResponse\"P" + "\n\013StopRequest\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005ext" + "ra\030c \001(\0132\027.google.protobuf.StructR\005extra" + "\"\016\n\014StopResponse\"\270\001\n\017SetPowerRequest\022\022\n\004" + "name\030\001 \001(\tR\004name\022/\n\006linear\030\002 \001(\0132\027.viam." + "common.v1.Vector3R\006linear\0221\n\007angular\030\003 \001" + "(\0132\027.viam.common.v1.Vector3R\007angular\022-\n\005" + "extra\030c \001(\0132\027.google.protobuf.StructR\005ex" + "tra\"\022\n\020SetPowerResponse\"\273\001\n\022SetVelocityR" + "equest\022\022\n\004name\030\001 \001(\tR\004name\022/\n\006linear\030\002 \001" + "(\0132\027.viam.common.v1.Vector3R\006linear\0221\n\007a" + "ngular\030\003 \001(\0132\027.viam.common.v1.Vector3R\007a" + "ngular\022-\n\005extra\030c \001(\0132\027.google.protobuf." + "StructR\005extra\"\025\n\023SetVelocityResponse\"%\n\017" + "IsMovingRequest\022\022\n\004name\030\001 \001(\tR\004name\"/\n\020I" + "sMovingResponse\022\033\n\tis_moving\030\001 \001(\010R\010isMo" + "ving\"Y\n\024GetPropertiesRequest\022\022\n\004name\030\001 \001" + "(\tR\004name\022-\n\005extra\030c \001(\0132\027.google.protobu" + "f.StructR\005extra\"\254\001\n\025GetPropertiesRespons" + "e\022!\n\014width_meters\030\001 \001(\001R\013widthMeters\0222\n\025" + "turning_radius_meters\030\002 \001(\001R\023turningRadi" + "usMeters\022<\n\032wheel_circumference_meters\030\003" + " \001(\001R\030wheelCircumferenceMeters2\341\n\n\013BaseS" + "ervice\022\247\001\n\014MoveStraight\022+.viam.component" + ".base.v1.MoveStraightRequest\032,.viam.comp" + "onent.base.v1.MoveStraightResponse\"<\240\222)\001" + "\202\323\344\223\0022\"0/viam/api/v1/component/base/{nam" + "e}/move_straight\022\206\001\n\004Spin\022#.viam.compone" + "nt.base.v1.SpinRequest\032$.viam.component." + "base.v1.SpinResponse\"3\240\222)\001\202\323\344\223\002)\"\'/viam/" + "api/v1/component/base/{name}/spin\022\227\001\n\010Se" + "tPower\022\'.viam.component.base.v1.SetPower" + "Request\032(.viam.component.base.v1.SetPowe" + "rResponse\"8\240\222)\001\202\323\344\223\002.\",/viam/api/v1/comp" + "onent/base/{name}/set_power\022\243\001\n\013SetVeloc" + "ity\022*.viam.component.base.v1.SetVelocity" + "Request\032+.viam.component.base.v1.SetVelo" + "cityResponse\";\240\222)\001\202\323\344\223\0021\"//viam/api/v1/c" + "omponent/base/{name}/set_velocity\022\202\001\n\004St" + "op\022#.viam.component.base.v1.StopRequest\032" + "$.viam.component.base.v1.StopResponse\"/\202" + "\323\344\223\002)\"\'/viam/api/v1/component/base/{name" + "}/stop\022\223\001\n\010IsMoving\022\'.viam.component.bas" + "e.v1.IsMovingRequest\032(.viam.component.ba" + "se.v1.IsMovingResponse\"4\202\323\344\223\002.\022,/viam/ap" + "i/v1/component/base/{name}/is_moving\022\207\001\n" + "\tDoCommand\022 .viam.common.v1.DoCommandReq" + "uest\032!.viam.common.v1.DoCommandResponse\"" + "5\202\323\344\223\002/\"-/viam/api/v1/component/base/{na" + "me}/do_command\022\223\001\n\rGetGeometries\022$.viam." + "common.v1.GetGeometriesRequest\032%.viam.co" + "mmon.v1.GetGeometriesResponse\"5\202\323\344\223\002/\022-/" + "viam/api/v1/component/base/{name}/geomet" + "ries\022\243\001\n\rGetProperties\022,.viam.component." + "base.v1.GetPropertiesRequest\032-.viam.comp" + "onent.base.v1.GetPropertiesResponse\"5\202\323\344" + "\223\002/\022-/viam/api/v1/component/base/{name}/" + "propertiesB\?\n\032com.viam.component.base.v1" + "Z!go.viam.com/api/component/base/v1b\006pro" + "to3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_component_2fbase_2fv1_2fbase_2eproto_deps[3] = { + &::descriptor_table_common_2fv1_2fcommon_2eproto, + &::descriptor_table_google_2fapi_2fannotations_2eproto, + &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, }; -static ::absl::once_flag descriptor_table_component_2fbase_2fv1_2fbase_2eproto_once; +static ::_pbi::once_flag descriptor_table_component_2fbase_2fv1_2fbase_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_component_2fbase_2fv1_2fbase_2eproto = { - false, - false, - 2938, - descriptor_table_protodef_component_2fbase_2fv1_2fbase_2eproto, + false, false, 2803, descriptor_table_protodef_component_2fbase_2fv1_2fbase_2eproto, "component/base/v1/base.proto", - &descriptor_table_component_2fbase_2fv1_2fbase_2eproto_once, - descriptor_table_component_2fbase_2fv1_2fbase_2eproto_deps, - 3, - 14, - schemas, - file_default_instances, - TableStruct_component_2fbase_2fv1_2fbase_2eproto::offsets, - file_level_metadata_component_2fbase_2fv1_2fbase_2eproto, - file_level_enum_descriptors_component_2fbase_2fv1_2fbase_2eproto, + &descriptor_table_component_2fbase_2fv1_2fbase_2eproto_once, descriptor_table_component_2fbase_2fv1_2fbase_2eproto_deps, 3, 14, + schemas, file_default_instances, TableStruct_component_2fbase_2fv1_2fbase_2eproto::offsets, + file_level_metadata_component_2fbase_2fv1_2fbase_2eproto, file_level_enum_descriptors_component_2fbase_2fv1_2fbase_2eproto, file_level_service_descriptors_component_2fbase_2fv1_2fbase_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_component_2fbase_2fv1_2fbase_2eproto_getter() { return &descriptor_table_component_2fbase_2fv1_2fbase_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_component_2fbase_2fv1_2fbase_2eproto(&descriptor_table_component_2fbase_2fv1_2fbase_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_component_2fbase_2fv1_2fbase_2eproto(&descriptor_table_component_2fbase_2fv1_2fbase_2eproto); namespace viam { namespace component { namespace base { namespace v1 { + // =================================================================== class MoveStraightRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(MoveStraightRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const MoveStraightRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const MoveStraightRequest* msg); }; -const ::google::protobuf::Struct& MoveStraightRequest::_Internal::extra(const MoveStraightRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +MoveStraightRequest::_Internal::extra(const MoveStraightRequest* msg) { + return *msg->extra_; } void MoveStraightRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -MoveStraightRequest::MoveStraightRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +MoveStraightRequest::MoveStraightRequest(::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.base.v1.MoveStraightRequest) } -inline PROTOBUF_NDEBUG_INLINE MoveStraightRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -MoveStraightRequest::MoveStraightRequest( - ::google::protobuf::Arena* arena, - const MoveStraightRequest& from) - : ::google::protobuf::Message(arena) { - MoveStraightRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, distance_mm_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, distance_mm_), - offsetof(Impl_, mm_per_sec_) - - offsetof(Impl_, distance_mm_) + - sizeof(Impl_::mm_per_sec_)); - +MoveStraightRequest::MoveStraightRequest(const MoveStraightRequest& 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; + } + ::memcpy(&distance_mm_, &from.distance_mm_, + static_cast(reinterpret_cast(&mm_per_sec_) - + reinterpret_cast(&distance_mm_)) + sizeof(mm_per_sec_)); // @@protoc_insertion_point(copy_constructor:viam.component.base.v1.MoveStraightRequest) } -inline PROTOBUF_NDEBUG_INLINE MoveStraightRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} - -inline void MoveStraightRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, extra_), - 0, - offsetof(Impl_, mm_per_sec_) - - offsetof(Impl_, extra_) + - sizeof(Impl_::mm_per_sec_)); + +inline void MoveStraightRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&extra_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&mm_per_sec_) - + reinterpret_cast(&extra_)) + sizeof(mm_per_sec_)); } + MoveStraightRequest::~MoveStraightRequest() { // @@protoc_insertion_point(destructor:viam.component.base.v1.MoveStraightRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void MoveStraightRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void MoveStraightRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void MoveStraightRequest::Clear() { +void MoveStraightRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.base.v1.MoveStraightRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - ::memset(&_impl_.distance_mm_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.mm_per_sec_) - - reinterpret_cast(&_impl_.distance_mm_)) + sizeof(_impl_.mm_per_sec_)); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* MoveStraightRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + ::memset(&distance_mm_, 0, static_cast( + reinterpret_cast(&mm_per_sec_) - + reinterpret_cast(&distance_mm_)) + sizeof(mm_per_sec_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* MoveStraightRequest::_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.base.v1.MoveStraightRequest.name")); + } else + goto handle_unusual; + continue; + // int64 distance_mm = 2 [json_name = "distanceMm"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + distance_mm_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // double mm_per_sec = 3 [json_name = "mmPerSec"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 25)) { + mm_per_sec_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 1, 55, 7> MoveStraightRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(MoveStraightRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_MoveStraightRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(MoveStraightRequest, _impl_.name_)}}, - // int64 distance_mm = 2 [json_name = "distanceMm"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(MoveStraightRequest, _impl_.distance_mm_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(MoveStraightRequest, _impl_.distance_mm_)}}, - // double mm_per_sec = 3 [json_name = "mmPerSec"]; - {::_pbi::TcParser::FastF64S1, - {25, 63, 0, PROTOBUF_FIELD_OFFSET(MoveStraightRequest, _impl_.mm_per_sec_)}}, - }}, {{ - 99, 0, 1, - 65534, 3, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(MoveStraightRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // int64 distance_mm = 2 [json_name = "distanceMm"]; - {PROTOBUF_FIELD_OFFSET(MoveStraightRequest, _impl_.distance_mm_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - // double mm_per_sec = 3 [json_name = "mmPerSec"]; - {PROTOBUF_FIELD_OFFSET(MoveStraightRequest, _impl_.mm_per_sec_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(MoveStraightRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\52\4\0\0\0\0\0\0" - "viam.component.base.v1.MoveStraightRequest" - "name" - }}, -}; - -::uint8_t* MoveStraightRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* MoveStraightRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.base.v1.MoveStraightRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.base.v1.MoveStraightRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.base.v1.MoveStraightRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // int64 distance_mm = 2 [json_name = "distanceMm"]; if (this->_internal_distance_mm() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<2>( - stream, this->_internal_distance_mm(), target); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_distance_mm(), target); } // double mm_per_sec = 3 [json_name = "mmPerSec"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_mm_per_sec = this->_internal_mm_per_sec(); - ::uint64_t raw_mm_per_sec; + uint64_t raw_mm_per_sec; memcpy(&raw_mm_per_sec, &tmp_mm_per_sec, sizeof(tmp_mm_per_sec)); if (raw_mm_per_sec != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 3, this->_internal_mm_per_sec(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(3, this->_internal_mm_per_sec(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.base.v1.MoveStraightRequest) return target; } -::size_t MoveStraightRequest::ByteSizeLong() const { +size_t MoveStraightRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.base.v1.MoveStraightRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } // int64 distance_mm = 2 [json_name = "distanceMm"]; if (this->_internal_distance_mm() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( - this->_internal_distance_mm()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_distance_mm()); } // double mm_per_sec = 3 [json_name = "mmPerSec"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_mm_per_sec = this->_internal_mm_per_sec(); - ::uint64_t raw_mm_per_sec; + uint64_t raw_mm_per_sec; memcpy(&raw_mm_per_sec, &tmp_mm_per_sec, sizeof(tmp_mm_per_sec)); if (raw_mm_per_sec != 0) { - total_size += 9; + total_size += 1 + 8; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData MoveStraightRequest::_class_data_ = { - MoveStraightRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveStraightRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + MoveStraightRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* MoveStraightRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MoveStraightRequest::GetClassData() const { return &_class_data_; } + +void MoveStraightRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void MoveStraightRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.base.v1.MoveStraightRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void MoveStraightRequest::MergeFrom(const MoveStraightRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.base.v1.MoveStraightRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } if (from._internal_distance_mm() != 0) { - _this->_internal_set_distance_mm(from._internal_distance_mm()); + _internal_set_distance_mm(from._internal_distance_mm()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_mm_per_sec = from._internal_mm_per_sec(); - ::uint64_t raw_mm_per_sec; + uint64_t raw_mm_per_sec; memcpy(&raw_mm_per_sec, &tmp_mm_per_sec, sizeof(tmp_mm_per_sec)); if (raw_mm_per_sec != 0) { - _this->_internal_set_mm_per_sec(from._internal_mm_per_sec()); + _internal_set_mm_per_sec(from._internal_mm_per_sec()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MoveStraightRequest::CopyFrom(const MoveStraightRequest& from) { @@ -907,52 +740,47 @@ void MoveStraightRequest::CopyFrom(const MoveStraightRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool MoveStraightRequest::IsInitialized() const { +bool MoveStraightRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* MoveStraightRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void MoveStraightRequest::InternalSwap(MoveStraightRequest* PROTOBUF_RESTRICT other) { +void MoveStraightRequest::InternalSwap(MoveStraightRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(MoveStraightRequest, _impl_.mm_per_sec_) - + sizeof(MoveStraightRequest::_impl_.mm_per_sec_) - - PROTOBUF_FIELD_OFFSET(MoveStraightRequest, _impl_.extra_)>( - reinterpret_cast(&_impl_.extra_), - reinterpret_cast(&other->_impl_.extra_)); -} - -::google::protobuf::Metadata MoveStraightRequest::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(MoveStraightRequest, mm_per_sec_) + + sizeof(MoveStraightRequest::mm_per_sec_) + - PROTOBUF_FIELD_OFFSET(MoveStraightRequest, extra_)>( + reinterpret_cast(&extra_), + reinterpret_cast(&other->extra_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata MoveStraightRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fbase_2fv1_2fbase_2eproto_getter, &descriptor_table_component_2fbase_2fv1_2fbase_2eproto_once, file_level_metadata_component_2fbase_2fv1_2fbase_2eproto[0]); } + // =================================================================== class MoveStraightResponse::_Internal { public: }; -MoveStraightResponse::MoveStraightResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +MoveStraightResponse::MoveStraightResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.component.base.v1.MoveStraightResponse) } -MoveStraightResponse::MoveStraightResponse( - ::google::protobuf::Arena* arena, - const MoveStraightResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - MoveStraightResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +MoveStraightResponse::MoveStraightResponse(const MoveStraightResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.component.base.v1.MoveStraightResponse) } @@ -960,316 +788,313 @@ MoveStraightResponse::MoveStraightResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveStraightResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MoveStraightResponse::GetClassData() const { return &_class_data_; } + + + -::google::protobuf::Metadata MoveStraightResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata MoveStraightResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fbase_2fv1_2fbase_2eproto_getter, &descriptor_table_component_2fbase_2fv1_2fbase_2eproto_once, file_level_metadata_component_2fbase_2fv1_2fbase_2eproto[1]); } + // =================================================================== class SpinRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SpinRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const SpinRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const SpinRequest* msg); }; -const ::google::protobuf::Struct& SpinRequest::_Internal::extra(const SpinRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +SpinRequest::_Internal::extra(const SpinRequest* msg) { + return *msg->extra_; } void SpinRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -SpinRequest::SpinRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +SpinRequest::SpinRequest(::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.base.v1.SpinRequest) } -inline PROTOBUF_NDEBUG_INLINE SpinRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -SpinRequest::SpinRequest( - ::google::protobuf::Arena* arena, - const SpinRequest& from) - : ::google::protobuf::Message(arena) { - SpinRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, angle_deg_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, angle_deg_), - offsetof(Impl_, degs_per_sec_) - - offsetof(Impl_, angle_deg_) + - sizeof(Impl_::degs_per_sec_)); - +SpinRequest::SpinRequest(const SpinRequest& 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; + } + ::memcpy(&angle_deg_, &from.angle_deg_, + static_cast(reinterpret_cast(°s_per_sec_) - + reinterpret_cast(&angle_deg_)) + sizeof(degs_per_sec_)); // @@protoc_insertion_point(copy_constructor:viam.component.base.v1.SpinRequest) } -inline PROTOBUF_NDEBUG_INLINE SpinRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} - -inline void SpinRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, extra_), - 0, - offsetof(Impl_, degs_per_sec_) - - offsetof(Impl_, extra_) + - sizeof(Impl_::degs_per_sec_)); + +inline void SpinRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&extra_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(°s_per_sec_) - + reinterpret_cast(&extra_)) + sizeof(degs_per_sec_)); } + SpinRequest::~SpinRequest() { // @@protoc_insertion_point(destructor:viam.component.base.v1.SpinRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void SpinRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; } -PROTOBUF_NOINLINE void SpinRequest::Clear() { +void SpinRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void SpinRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.base.v1.SpinRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - ::memset(&_impl_.angle_deg_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.degs_per_sec_) - - reinterpret_cast(&_impl_.angle_deg_)) + sizeof(_impl_.degs_per_sec_)); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SpinRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + ::memset(&angle_deg_, 0, static_cast( + reinterpret_cast(°s_per_sec_) - + reinterpret_cast(&angle_deg_)) + sizeof(degs_per_sec_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SpinRequest::_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.base.v1.SpinRequest.name")); + } else + goto handle_unusual; + continue; + // double angle_deg = 2 [json_name = "angleDeg"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 17)) { + angle_deg_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double degs_per_sec = 3 [json_name = "degsPerSec"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 25)) { + degs_per_sec_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 1, 47, 7> SpinRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(SpinRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_SpinRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(SpinRequest, _impl_.name_)}}, - // double angle_deg = 2 [json_name = "angleDeg"]; - {::_pbi::TcParser::FastF64S1, - {17, 63, 0, PROTOBUF_FIELD_OFFSET(SpinRequest, _impl_.angle_deg_)}}, - // double degs_per_sec = 3 [json_name = "degsPerSec"]; - {::_pbi::TcParser::FastF64S1, - {25, 63, 0, PROTOBUF_FIELD_OFFSET(SpinRequest, _impl_.degs_per_sec_)}}, - }}, {{ - 99, 0, 1, - 65534, 3, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(SpinRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // double angle_deg = 2 [json_name = "angleDeg"]; - {PROTOBUF_FIELD_OFFSET(SpinRequest, _impl_.angle_deg_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double degs_per_sec = 3 [json_name = "degsPerSec"]; - {PROTOBUF_FIELD_OFFSET(SpinRequest, _impl_.degs_per_sec_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(SpinRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\42\4\0\0\0\0\0\0" - "viam.component.base.v1.SpinRequest" - "name" - }}, -}; - -::uint8_t* SpinRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* SpinRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.base.v1.SpinRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.base.v1.SpinRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.base.v1.SpinRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // double angle_deg = 2 [json_name = "angleDeg"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_angle_deg = this->_internal_angle_deg(); - ::uint64_t raw_angle_deg; + uint64_t raw_angle_deg; memcpy(&raw_angle_deg, &tmp_angle_deg, sizeof(tmp_angle_deg)); if (raw_angle_deg != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 2, this->_internal_angle_deg(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_angle_deg(), target); } // double degs_per_sec = 3 [json_name = "degsPerSec"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_degs_per_sec = this->_internal_degs_per_sec(); - ::uint64_t raw_degs_per_sec; + uint64_t raw_degs_per_sec; memcpy(&raw_degs_per_sec, &tmp_degs_per_sec, sizeof(tmp_degs_per_sec)); if (raw_degs_per_sec != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 3, this->_internal_degs_per_sec(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(3, this->_internal_degs_per_sec(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.base.v1.SpinRequest) return target; } -::size_t SpinRequest::ByteSizeLong() const { +size_t SpinRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.base.v1.SpinRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } // double angle_deg = 2 [json_name = "angleDeg"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_angle_deg = this->_internal_angle_deg(); - ::uint64_t raw_angle_deg; + uint64_t raw_angle_deg; memcpy(&raw_angle_deg, &tmp_angle_deg, sizeof(tmp_angle_deg)); if (raw_angle_deg != 0) { - total_size += 9; + total_size += 1 + 8; } // double degs_per_sec = 3 [json_name = "degsPerSec"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_degs_per_sec = this->_internal_degs_per_sec(); - ::uint64_t raw_degs_per_sec; + uint64_t raw_degs_per_sec; memcpy(&raw_degs_per_sec, &tmp_degs_per_sec, sizeof(tmp_degs_per_sec)); if (raw_degs_per_sec != 0) { - total_size += 9; + total_size += 1 + 8; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData SpinRequest::_class_data_ = { - SpinRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SpinRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + SpinRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* SpinRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SpinRequest::GetClassData() const { return &_class_data_; } + +void SpinRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void SpinRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.base.v1.SpinRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void SpinRequest::MergeFrom(const SpinRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.base.v1.SpinRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_angle_deg = from._internal_angle_deg(); - ::uint64_t raw_angle_deg; + uint64_t raw_angle_deg; memcpy(&raw_angle_deg, &tmp_angle_deg, sizeof(tmp_angle_deg)); if (raw_angle_deg != 0) { - _this->_internal_set_angle_deg(from._internal_angle_deg()); + _internal_set_angle_deg(from._internal_angle_deg()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_degs_per_sec = from._internal_degs_per_sec(); - ::uint64_t raw_degs_per_sec; + uint64_t raw_degs_per_sec; memcpy(&raw_degs_per_sec, &tmp_degs_per_sec, sizeof(tmp_degs_per_sec)); if (raw_degs_per_sec != 0) { - _this->_internal_set_degs_per_sec(from._internal_degs_per_sec()); + _internal_set_degs_per_sec(from._internal_degs_per_sec()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SpinRequest::CopyFrom(const SpinRequest& from) { @@ -1279,52 +1104,47 @@ void SpinRequest::CopyFrom(const SpinRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool SpinRequest::IsInitialized() const { +bool SpinRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* SpinRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void SpinRequest::InternalSwap(SpinRequest* PROTOBUF_RESTRICT other) { +void SpinRequest::InternalSwap(SpinRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(SpinRequest, _impl_.degs_per_sec_) - + sizeof(SpinRequest::_impl_.degs_per_sec_) - - PROTOBUF_FIELD_OFFSET(SpinRequest, _impl_.extra_)>( - reinterpret_cast(&_impl_.extra_), - reinterpret_cast(&other->_impl_.extra_)); -} - -::google::protobuf::Metadata SpinRequest::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(SpinRequest, degs_per_sec_) + + sizeof(SpinRequest::degs_per_sec_) + - PROTOBUF_FIELD_OFFSET(SpinRequest, extra_)>( + reinterpret_cast(&extra_), + reinterpret_cast(&other->extra_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SpinRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fbase_2fv1_2fbase_2eproto_getter, &descriptor_table_component_2fbase_2fv1_2fbase_2eproto_once, file_level_metadata_component_2fbase_2fv1_2fbase_2eproto[2]); } + // =================================================================== class SpinResponse::_Internal { public: }; -SpinResponse::SpinResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +SpinResponse::SpinResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.component.base.v1.SpinResponse) } -SpinResponse::SpinResponse( - ::google::protobuf::Arena* arena, - const SpinResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - SpinResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +SpinResponse::SpinResponse(const SpinResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.component.base.v1.SpinResponse) } @@ -1332,233 +1152,236 @@ SpinResponse::SpinResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SpinResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SpinResponse::GetClassData() const { return &_class_data_; } + + -::google::protobuf::Metadata SpinResponse::GetMetadata() const { + +::PROTOBUF_NAMESPACE_ID::Metadata SpinResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fbase_2fv1_2fbase_2eproto_getter, &descriptor_table_component_2fbase_2fv1_2fbase_2eproto_once, file_level_metadata_component_2fbase_2fv1_2fbase_2eproto[3]); } + // =================================================================== class StopRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(StopRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const StopRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const StopRequest* msg); }; -const ::google::protobuf::Struct& StopRequest::_Internal::extra(const StopRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +StopRequest::_Internal::extra(const StopRequest* msg) { + return *msg->extra_; } void StopRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -StopRequest::StopRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +StopRequest::StopRequest(::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.base.v1.StopRequest) } -inline PROTOBUF_NDEBUG_INLINE StopRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -StopRequest::StopRequest( - ::google::protobuf::Arena* arena, - const StopRequest& from) - : ::google::protobuf::Message(arena) { - StopRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +StopRequest::StopRequest(const StopRequest& 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.base.v1.StopRequest) } -inline PROTOBUF_NDEBUG_INLINE StopRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} -inline void StopRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void StopRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + StopRequest::~StopRequest() { // @@protoc_insertion_point(destructor:viam.component.base.v1.StopRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void StopRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void StopRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void StopRequest::Clear() { +void StopRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.base.v1.StopRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* StopRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* StopRequest::_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.base.v1.StopRequest.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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 2, 1, 47, 7> StopRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(StopRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_StopRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(StopRequest, _impl_.name_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(StopRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 1, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(StopRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(StopRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\42\4\0\0\0\0\0\0" - "viam.component.base.v1.StopRequest" - "name" - }}, -}; - -::uint8_t* StopRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* StopRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.base.v1.StopRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.base.v1.StopRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.base.v1.StopRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.base.v1.StopRequest) return target; } -::size_t StopRequest::ByteSizeLong() const { +size_t StopRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.base.v1.StopRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData StopRequest::_class_data_ = { - StopRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StopRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + StopRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* StopRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StopRequest::GetClassData() const { return &_class_data_; } + +void StopRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void StopRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.base.v1.StopRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void StopRequest::MergeFrom(const StopRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.base.v1.StopRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void StopRequest::CopyFrom(const StopRequest& from) { @@ -1568,47 +1391,42 @@ void StopRequest::CopyFrom(const StopRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool StopRequest::IsInitialized() const { +bool StopRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* StopRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void StopRequest::InternalSwap(StopRequest* PROTOBUF_RESTRICT other) { +void StopRequest::InternalSwap(StopRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.extra_, other->_impl_.extra_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(extra_, other->extra_); } -::google::protobuf::Metadata StopRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata StopRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fbase_2fv1_2fbase_2eproto_getter, &descriptor_table_component_2fbase_2fv1_2fbase_2eproto_once, file_level_metadata_component_2fbase_2fv1_2fbase_2eproto[4]); } + // =================================================================== class StopResponse::_Internal { public: }; -StopResponse::StopResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +StopResponse::StopResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.component.base.v1.StopResponse) } -StopResponse::StopResponse( - ::google::protobuf::Arena* arena, - const StopResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - StopResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +StopResponse::StopResponse(const StopResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.component.base.v1.StopResponse) } @@ -1616,329 +1434,331 @@ StopResponse::StopResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StopResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StopResponse::GetClassData() const { return &_class_data_; } + + -::google::protobuf::Metadata StopResponse::GetMetadata() const { + +::PROTOBUF_NAMESPACE_ID::Metadata StopResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fbase_2fv1_2fbase_2eproto_getter, &descriptor_table_component_2fbase_2fv1_2fbase_2eproto_once, file_level_metadata_component_2fbase_2fv1_2fbase_2eproto[5]); } + // =================================================================== class SetPowerRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SetPowerRequest, _impl_._has_bits_); static const ::viam::common::v1::Vector3& linear(const SetPowerRequest* msg); - static void set_has_linear(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } static const ::viam::common::v1::Vector3& angular(const SetPowerRequest* msg); - static void set_has_angular(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static const ::google::protobuf::Struct& extra(const SetPowerRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const SetPowerRequest* msg); }; -const ::viam::common::v1::Vector3& SetPowerRequest::_Internal::linear(const SetPowerRequest* msg) { - return *msg->_impl_.linear_; +const ::viam::common::v1::Vector3& +SetPowerRequest::_Internal::linear(const SetPowerRequest* msg) { + return *msg->linear_; } -const ::viam::common::v1::Vector3& SetPowerRequest::_Internal::angular(const SetPowerRequest* msg) { - return *msg->_impl_.angular_; +const ::viam::common::v1::Vector3& +SetPowerRequest::_Internal::angular(const SetPowerRequest* msg) { + return *msg->angular_; } -const ::google::protobuf::Struct& SetPowerRequest::_Internal::extra(const SetPowerRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +SetPowerRequest::_Internal::extra(const SetPowerRequest* msg) { + return *msg->extra_; } void SetPowerRequest::clear_linear() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.linear_ != nullptr) _impl_.linear_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && linear_ != nullptr) { + delete linear_; + } + linear_ = nullptr; } void SetPowerRequest::clear_angular() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.angular_ != nullptr) _impl_.angular_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && angular_ != nullptr) { + delete angular_; + } + angular_ = nullptr; } void SetPowerRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000004u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -SetPowerRequest::SetPowerRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +SetPowerRequest::SetPowerRequest(::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.base.v1.SetPowerRequest) } -inline PROTOBUF_NDEBUG_INLINE SetPowerRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -SetPowerRequest::SetPowerRequest( - ::google::protobuf::Arena* arena, - const SetPowerRequest& from) - : ::google::protobuf::Message(arena) { - SetPowerRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.linear_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::common::v1::Vector3>(arena, *from._impl_.linear_) - : nullptr; - _impl_.angular_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::viam::common::v1::Vector3>(arena, *from._impl_.angular_) - : nullptr; - _impl_.extra_ = (cached_has_bits & 0x00000004u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +SetPowerRequest::SetPowerRequest(const SetPowerRequest& 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_linear()) { + linear_ = new ::viam::common::v1::Vector3(*from.linear_); + } else { + linear_ = nullptr; + } + if (from._internal_has_angular()) { + angular_ = new ::viam::common::v1::Vector3(*from.angular_); + } else { + angular_ = nullptr; + } + if (from._internal_has_extra()) { + extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.extra_); + } else { + extra_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.component.base.v1.SetPowerRequest) } -inline PROTOBUF_NDEBUG_INLINE SetPowerRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} - -inline void SetPowerRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, linear_), - 0, - offsetof(Impl_, extra_) - - offsetof(Impl_, linear_) + - sizeof(Impl_::extra_)); + +inline void SetPowerRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&linear_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&extra_) - + reinterpret_cast(&linear_)) + sizeof(extra_)); } + SetPowerRequest::~SetPowerRequest() { // @@protoc_insertion_point(destructor:viam.component.base.v1.SetPowerRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void SetPowerRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.linear_; - delete _impl_.angular_; - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete linear_; + if (this != internal_default_instance()) delete angular_; + if (this != internal_default_instance()) delete extra_; +} + +void SetPowerRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void SetPowerRequest::Clear() { +void SetPowerRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.base.v1.SetPowerRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.linear_ != nullptr); - _impl_.linear_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.angular_ != nullptr); - _impl_.angular_->Clear(); - } - if (cached_has_bits & 0x00000004u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && linear_ != nullptr) { + delete linear_; + } + linear_ = nullptr; + if (GetArenaForAllocation() == nullptr && angular_ != nullptr) { + delete angular_; + } + angular_ = nullptr; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SetPowerRequest::_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.base.v1.SetPowerRequest.name")); + } else + goto handle_unusual; + continue; + // .viam.common.v1.Vector3 linear = 2 [json_name = "linear"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_linear(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.common.v1.Vector3 angular = 3 [json_name = "angular"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_angular(), ptr); + CHK_(ptr); + } 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; } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SetPowerRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 3, 51, 7> SetPowerRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(SetPowerRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 3, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_SetPowerRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(SetPowerRequest, _impl_.name_)}}, - // .viam.common.v1.Vector3 linear = 2 [json_name = "linear"]; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(SetPowerRequest, _impl_.linear_)}}, - // .viam.common.v1.Vector3 angular = 3 [json_name = "angular"]; - {::_pbi::TcParser::FastMtS1, - {26, 1, 1, PROTOBUF_FIELD_OFFSET(SetPowerRequest, _impl_.angular_)}}, - }}, {{ - 99, 0, 1, - 65534, 3, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(SetPowerRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .viam.common.v1.Vector3 linear = 2 [json_name = "linear"]; - {PROTOBUF_FIELD_OFFSET(SetPowerRequest, _impl_.linear_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .viam.common.v1.Vector3 angular = 3 [json_name = "angular"]; - {PROTOBUF_FIELD_OFFSET(SetPowerRequest, _impl_.angular_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(SetPowerRequest, _impl_.extra_), _Internal::kHasBitsOffset + 2, 2, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::common::v1::Vector3>()}, - {::_pbi::TcParser::GetTable<::viam::common::v1::Vector3>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\46\4\0\0\0\0\0\0" - "viam.component.base.v1.SetPowerRequest" - "name" - }}, -}; - -::uint8_t* SetPowerRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* SetPowerRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.base.v1.SetPowerRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.base.v1.SetPowerRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.base.v1.SetPowerRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .viam.common.v1.Vector3 linear = 2 [json_name = "linear"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::linear(this), + if (this->_internal_has_linear()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::linear(this), _Internal::linear(this).GetCachedSize(), target, stream); } // .viam.common.v1.Vector3 angular = 3 [json_name = "angular"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::angular(this), + if (this->_internal_has_angular()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::angular(this), _Internal::angular(this).GetCachedSize(), target, stream); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000004u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.base.v1.SetPowerRequest) return target; } -::size_t SetPowerRequest::ByteSizeLong() const { +size_t SetPowerRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.base.v1.SetPowerRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - // .viam.common.v1.Vector3 linear = 2 [json_name = "linear"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.linear_); - } - - // .viam.common.v1.Vector3 angular = 3 [json_name = "angular"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.angular_); - } + // .viam.common.v1.Vector3 linear = 2 [json_name = "linear"]; + if (this->_internal_has_linear()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *linear_); + } - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000004u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); - } + // .viam.common.v1.Vector3 angular = 3 [json_name = "angular"]; + if (this->_internal_has_angular()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *angular_); + } + // .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, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData SetPowerRequest::_class_data_ = { - SetPowerRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetPowerRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + SetPowerRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* SetPowerRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetPowerRequest::GetClassData() const { return &_class_data_; } + +void SetPowerRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void SetPowerRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.base.v1.SetPowerRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void SetPowerRequest::MergeFrom(const SetPowerRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.base.v1.SetPowerRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_linear()->::viam::common::v1::Vector3::MergeFrom( - from._internal_linear()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_angular()->::viam::common::v1::Vector3::MergeFrom( - from._internal_angular()); - } - if (cached_has_bits & 0x00000004u) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); - } + if (from._internal_has_linear()) { + _internal_mutable_linear()->::viam::common::v1::Vector3::MergeFrom(from._internal_linear()); + } + if (from._internal_has_angular()) { + _internal_mutable_angular()->::viam::common::v1::Vector3::MergeFrom(from._internal_angular()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + 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 SetPowerRequest::CopyFrom(const SetPowerRequest& from) { @@ -1948,52 +1768,47 @@ void SetPowerRequest::CopyFrom(const SetPowerRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool SetPowerRequest::IsInitialized() const { +bool SetPowerRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* SetPowerRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void SetPowerRequest::InternalSwap(SetPowerRequest* PROTOBUF_RESTRICT other) { +void SetPowerRequest::InternalSwap(SetPowerRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(SetPowerRequest, _impl_.extra_) - + sizeof(SetPowerRequest::_impl_.extra_) - - PROTOBUF_FIELD_OFFSET(SetPowerRequest, _impl_.linear_)>( - reinterpret_cast(&_impl_.linear_), - reinterpret_cast(&other->_impl_.linear_)); -} - -::google::protobuf::Metadata SetPowerRequest::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(SetPowerRequest, extra_) + + sizeof(SetPowerRequest::extra_) + - PROTOBUF_FIELD_OFFSET(SetPowerRequest, linear_)>( + reinterpret_cast(&linear_), + reinterpret_cast(&other->linear_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SetPowerRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fbase_2fv1_2fbase_2eproto_getter, &descriptor_table_component_2fbase_2fv1_2fbase_2eproto_once, file_level_metadata_component_2fbase_2fv1_2fbase_2eproto[6]); } + // =================================================================== class SetPowerResponse::_Internal { public: }; -SetPowerResponse::SetPowerResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +SetPowerResponse::SetPowerResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.component.base.v1.SetPowerResponse) } -SetPowerResponse::SetPowerResponse( - ::google::protobuf::Arena* arena, - const SetPowerResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - SetPowerResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +SetPowerResponse::SetPowerResponse(const SetPowerResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.component.base.v1.SetPowerResponse) } @@ -2001,329 +1816,331 @@ SetPowerResponse::SetPowerResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetPowerResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetPowerResponse::GetClassData() const { return &_class_data_; } + + + -::google::protobuf::Metadata SetPowerResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata SetPowerResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fbase_2fv1_2fbase_2eproto_getter, &descriptor_table_component_2fbase_2fv1_2fbase_2eproto_once, file_level_metadata_component_2fbase_2fv1_2fbase_2eproto[7]); } + // =================================================================== class SetVelocityRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SetVelocityRequest, _impl_._has_bits_); static const ::viam::common::v1::Vector3& linear(const SetVelocityRequest* msg); - static void set_has_linear(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } static const ::viam::common::v1::Vector3& angular(const SetVelocityRequest* msg); - static void set_has_angular(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static const ::google::protobuf::Struct& extra(const SetVelocityRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const SetVelocityRequest* msg); }; -const ::viam::common::v1::Vector3& SetVelocityRequest::_Internal::linear(const SetVelocityRequest* msg) { - return *msg->_impl_.linear_; +const ::viam::common::v1::Vector3& +SetVelocityRequest::_Internal::linear(const SetVelocityRequest* msg) { + return *msg->linear_; } -const ::viam::common::v1::Vector3& SetVelocityRequest::_Internal::angular(const SetVelocityRequest* msg) { - return *msg->_impl_.angular_; +const ::viam::common::v1::Vector3& +SetVelocityRequest::_Internal::angular(const SetVelocityRequest* msg) { + return *msg->angular_; } -const ::google::protobuf::Struct& SetVelocityRequest::_Internal::extra(const SetVelocityRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +SetVelocityRequest::_Internal::extra(const SetVelocityRequest* msg) { + return *msg->extra_; } void SetVelocityRequest::clear_linear() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.linear_ != nullptr) _impl_.linear_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && linear_ != nullptr) { + delete linear_; + } + linear_ = nullptr; } void SetVelocityRequest::clear_angular() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.angular_ != nullptr) _impl_.angular_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && angular_ != nullptr) { + delete angular_; + } + angular_ = nullptr; } void SetVelocityRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000004u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -SetVelocityRequest::SetVelocityRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +SetVelocityRequest::SetVelocityRequest(::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.base.v1.SetVelocityRequest) } -inline PROTOBUF_NDEBUG_INLINE SetVelocityRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -SetVelocityRequest::SetVelocityRequest( - ::google::protobuf::Arena* arena, - const SetVelocityRequest& from) - : ::google::protobuf::Message(arena) { - SetVelocityRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.linear_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::common::v1::Vector3>(arena, *from._impl_.linear_) - : nullptr; - _impl_.angular_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::viam::common::v1::Vector3>(arena, *from._impl_.angular_) - : nullptr; - _impl_.extra_ = (cached_has_bits & 0x00000004u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +SetVelocityRequest::SetVelocityRequest(const SetVelocityRequest& 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_linear()) { + linear_ = new ::viam::common::v1::Vector3(*from.linear_); + } else { + linear_ = nullptr; + } + if (from._internal_has_angular()) { + angular_ = new ::viam::common::v1::Vector3(*from.angular_); + } else { + angular_ = nullptr; + } + if (from._internal_has_extra()) { + extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.extra_); + } else { + extra_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.component.base.v1.SetVelocityRequest) } -inline PROTOBUF_NDEBUG_INLINE SetVelocityRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} - -inline void SetVelocityRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, linear_), - 0, - offsetof(Impl_, extra_) - - offsetof(Impl_, linear_) + - sizeof(Impl_::extra_)); + +inline void SetVelocityRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&linear_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&extra_) - + reinterpret_cast(&linear_)) + sizeof(extra_)); } + SetVelocityRequest::~SetVelocityRequest() { // @@protoc_insertion_point(destructor:viam.component.base.v1.SetVelocityRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void SetVelocityRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.linear_; - delete _impl_.angular_; - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete linear_; + if (this != internal_default_instance()) delete angular_; + if (this != internal_default_instance()) delete extra_; +} + +void SetVelocityRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void SetVelocityRequest::Clear() { +void SetVelocityRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.base.v1.SetVelocityRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.linear_ != nullptr); - _impl_.linear_->Clear(); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && linear_ != nullptr) { + delete linear_; + } + linear_ = nullptr; + if (GetArenaForAllocation() == nullptr && angular_ != nullptr) { + delete angular_; + } + angular_ = nullptr; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SetVelocityRequest::_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.base.v1.SetVelocityRequest.name")); + } else + goto handle_unusual; + continue; + // .viam.common.v1.Vector3 linear = 2 [json_name = "linear"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_linear(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.common.v1.Vector3 angular = 3 [json_name = "angular"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_angular(), ptr); + CHK_(ptr); + } 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; } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.angular_ != nullptr); - _impl_.angular_->Clear(); - } - if (cached_has_bits & 0x00000004u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SetVelocityRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 3, 54, 7> SetVelocityRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(SetVelocityRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 3, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_SetVelocityRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(SetVelocityRequest, _impl_.name_)}}, - // .viam.common.v1.Vector3 linear = 2 [json_name = "linear"]; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(SetVelocityRequest, _impl_.linear_)}}, - // .viam.common.v1.Vector3 angular = 3 [json_name = "angular"]; - {::_pbi::TcParser::FastMtS1, - {26, 1, 1, PROTOBUF_FIELD_OFFSET(SetVelocityRequest, _impl_.angular_)}}, - }}, {{ - 99, 0, 1, - 65534, 3, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(SetVelocityRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .viam.common.v1.Vector3 linear = 2 [json_name = "linear"]; - {PROTOBUF_FIELD_OFFSET(SetVelocityRequest, _impl_.linear_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .viam.common.v1.Vector3 angular = 3 [json_name = "angular"]; - {PROTOBUF_FIELD_OFFSET(SetVelocityRequest, _impl_.angular_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(SetVelocityRequest, _impl_.extra_), _Internal::kHasBitsOffset + 2, 2, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::common::v1::Vector3>()}, - {::_pbi::TcParser::GetTable<::viam::common::v1::Vector3>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\51\4\0\0\0\0\0\0" - "viam.component.base.v1.SetVelocityRequest" - "name" - }}, -}; - -::uint8_t* SetVelocityRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* SetVelocityRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.base.v1.SetVelocityRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.base.v1.SetVelocityRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.base.v1.SetVelocityRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .viam.common.v1.Vector3 linear = 2 [json_name = "linear"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::linear(this), + if (this->_internal_has_linear()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::linear(this), _Internal::linear(this).GetCachedSize(), target, stream); } // .viam.common.v1.Vector3 angular = 3 [json_name = "angular"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::angular(this), + if (this->_internal_has_angular()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::angular(this), _Internal::angular(this).GetCachedSize(), target, stream); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000004u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.base.v1.SetVelocityRequest) return target; } -::size_t SetVelocityRequest::ByteSizeLong() const { +size_t SetVelocityRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.base.v1.SetVelocityRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - // .viam.common.v1.Vector3 linear = 2 [json_name = "linear"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.linear_); - } - - // .viam.common.v1.Vector3 angular = 3 [json_name = "angular"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.angular_); - } + // .viam.common.v1.Vector3 linear = 2 [json_name = "linear"]; + if (this->_internal_has_linear()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *linear_); + } - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000004u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); - } + // .viam.common.v1.Vector3 angular = 3 [json_name = "angular"]; + if (this->_internal_has_angular()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *angular_); + } + // .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, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData SetVelocityRequest::_class_data_ = { - SetVelocityRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetVelocityRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + SetVelocityRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* SetVelocityRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetVelocityRequest::GetClassData() const { return &_class_data_; } + +void SetVelocityRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void SetVelocityRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.base.v1.SetVelocityRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void SetVelocityRequest::MergeFrom(const SetVelocityRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.base.v1.SetVelocityRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_linear()->::viam::common::v1::Vector3::MergeFrom( - from._internal_linear()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_angular()->::viam::common::v1::Vector3::MergeFrom( - from._internal_angular()); - } - if (cached_has_bits & 0x00000004u) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); - } + if (from._internal_has_linear()) { + _internal_mutable_linear()->::viam::common::v1::Vector3::MergeFrom(from._internal_linear()); + } + if (from._internal_has_angular()) { + _internal_mutable_angular()->::viam::common::v1::Vector3::MergeFrom(from._internal_angular()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + 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 SetVelocityRequest::CopyFrom(const SetVelocityRequest& from) { @@ -2333,52 +2150,47 @@ void SetVelocityRequest::CopyFrom(const SetVelocityRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool SetVelocityRequest::IsInitialized() const { +bool SetVelocityRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* SetVelocityRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void SetVelocityRequest::InternalSwap(SetVelocityRequest* PROTOBUF_RESTRICT other) { +void SetVelocityRequest::InternalSwap(SetVelocityRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(SetVelocityRequest, _impl_.extra_) - + sizeof(SetVelocityRequest::_impl_.extra_) - - PROTOBUF_FIELD_OFFSET(SetVelocityRequest, _impl_.linear_)>( - reinterpret_cast(&_impl_.linear_), - reinterpret_cast(&other->_impl_.linear_)); -} - -::google::protobuf::Metadata SetVelocityRequest::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(SetVelocityRequest, extra_) + + sizeof(SetVelocityRequest::extra_) + - PROTOBUF_FIELD_OFFSET(SetVelocityRequest, linear_)>( + reinterpret_cast(&linear_), + reinterpret_cast(&other->linear_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SetVelocityRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fbase_2fv1_2fbase_2eproto_getter, &descriptor_table_component_2fbase_2fv1_2fbase_2eproto_once, file_level_metadata_component_2fbase_2fv1_2fbase_2eproto[8]); } + // =================================================================== class SetVelocityResponse::_Internal { public: }; -SetVelocityResponse::SetVelocityResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +SetVelocityResponse::SetVelocityResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.component.base.v1.SetVelocityResponse) } -SetVelocityResponse::SetVelocityResponse( - ::google::protobuf::Arena* arena, - const SetVelocityResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - SetVelocityResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +SetVelocityResponse::SetVelocityResponse(const SetVelocityResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.component.base.v1.SetVelocityResponse) } @@ -2386,176 +2198,189 @@ SetVelocityResponse::SetVelocityResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetVelocityResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetVelocityResponse::GetClassData() const { return &_class_data_; } -::google::protobuf::Metadata SetVelocityResponse::GetMetadata() const { + + + +::PROTOBUF_NAMESPACE_ID::Metadata SetVelocityResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fbase_2fv1_2fbase_2eproto_getter, &descriptor_table_component_2fbase_2fv1_2fbase_2eproto_once, file_level_metadata_component_2fbase_2fv1_2fbase_2eproto[9]); } + // =================================================================== class IsMovingRequest::_Internal { public: }; -IsMovingRequest::IsMovingRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +IsMovingRequest::IsMovingRequest(::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.base.v1.IsMovingRequest) } -inline PROTOBUF_NDEBUG_INLINE IsMovingRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : name_(arena, from.name_), - _cached_size_{0} {} - -IsMovingRequest::IsMovingRequest( - ::google::protobuf::Arena* arena, - const IsMovingRequest& from) - : ::google::protobuf::Message(arena) { - IsMovingRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +IsMovingRequest::IsMovingRequest(const IsMovingRequest& 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()); + } // @@protoc_insertion_point(copy_constructor:viam.component.base.v1.IsMovingRequest) } -inline PROTOBUF_NDEBUG_INLINE IsMovingRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : name_(arena), - _cached_size_{0} {} -inline void IsMovingRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void IsMovingRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + IsMovingRequest::~IsMovingRequest() { // @@protoc_insertion_point(destructor:viam.component.base.v1.IsMovingRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void IsMovingRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); } -PROTOBUF_NOINLINE void IsMovingRequest::Clear() { +void IsMovingRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void IsMovingRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.base.v1.IsMovingRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* IsMovingRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* IsMovingRequest::_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.base.v1.IsMovingRequest.name")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 51, 2> IsMovingRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_IsMovingRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(IsMovingRequest, _impl_.name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(IsMovingRequest, _impl_.name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\46\4\0\0\0\0\0\0" - "viam.component.base.v1.IsMovingRequest" - "name" - }}, -}; - -::uint8_t* IsMovingRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* IsMovingRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.base.v1.IsMovingRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.base.v1.IsMovingRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.base.v1.IsMovingRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.base.v1.IsMovingRequest) return target; } -::size_t IsMovingRequest::ByteSizeLong() const { +size_t IsMovingRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.base.v1.IsMovingRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData IsMovingRequest::_class_data_ = { - IsMovingRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData IsMovingRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + IsMovingRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* IsMovingRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*IsMovingRequest::GetClassData() const { return &_class_data_; } + +void IsMovingRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void IsMovingRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.base.v1.IsMovingRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void IsMovingRequest::MergeFrom(const IsMovingRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.base.v1.IsMovingRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void IsMovingRequest::CopyFrom(const IsMovingRequest& from) { @@ -2565,168 +2390,173 @@ void IsMovingRequest::CopyFrom(const IsMovingRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool IsMovingRequest::IsInitialized() const { +bool IsMovingRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* IsMovingRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void IsMovingRequest::InternalSwap(IsMovingRequest* PROTOBUF_RESTRICT other) { +void IsMovingRequest::InternalSwap(IsMovingRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); } -::google::protobuf::Metadata IsMovingRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata IsMovingRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fbase_2fv1_2fbase_2eproto_getter, &descriptor_table_component_2fbase_2fv1_2fbase_2eproto_once, file_level_metadata_component_2fbase_2fv1_2fbase_2eproto[10]); } + // =================================================================== class IsMovingResponse::_Internal { public: }; -IsMovingResponse::IsMovingResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +IsMovingResponse::IsMovingResponse(::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.base.v1.IsMovingResponse) } -IsMovingResponse::IsMovingResponse( - ::google::protobuf::Arena* arena, const IsMovingResponse& from) - : IsMovingResponse(arena) { - MergeFrom(from); +IsMovingResponse::IsMovingResponse(const IsMovingResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + is_moving_ = from.is_moving_; + // @@protoc_insertion_point(copy_constructor:viam.component.base.v1.IsMovingResponse) } -inline PROTOBUF_NDEBUG_INLINE IsMovingResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void IsMovingResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.is_moving_ = {}; +inline void IsMovingResponse::SharedCtor() { +is_moving_ = false; } + IsMovingResponse::~IsMovingResponse() { // @@protoc_insertion_point(destructor:viam.component.base.v1.IsMovingResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void IsMovingResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void IsMovingResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void IsMovingResponse::Clear() { +void IsMovingResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.base.v1.IsMovingResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.is_moving_ = false; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* IsMovingResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + is_moving_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* IsMovingResponse::_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) { + // bool is_moving = 1 [json_name = "isMoving"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + is_moving_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> IsMovingResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_IsMovingResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // bool is_moving = 1 [json_name = "isMoving"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(IsMovingResponse, _impl_.is_moving_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bool is_moving = 1 [json_name = "isMoving"]; - {PROTOBUF_FIELD_OFFSET(IsMovingResponse, _impl_.is_moving_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* IsMovingResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* IsMovingResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.base.v1.IsMovingResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // bool is_moving = 1 [json_name = "isMoving"]; if (this->_internal_is_moving() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 1, this->_internal_is_moving(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_is_moving(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.base.v1.IsMovingResponse) return target; } -::size_t IsMovingResponse::ByteSizeLong() const { +size_t IsMovingResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.base.v1.IsMovingResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // bool is_moving = 1 [json_name = "isMoving"]; if (this->_internal_is_moving() != 0) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData IsMovingResponse::_class_data_ = { - IsMovingResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData IsMovingResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + IsMovingResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* IsMovingResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*IsMovingResponse::GetClassData() const { return &_class_data_; } + +void IsMovingResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void IsMovingResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.base.v1.IsMovingResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void IsMovingResponse::MergeFrom(const IsMovingResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.base.v1.IsMovingResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_is_moving() != 0) { - _this->_internal_set_is_moving(from._internal_is_moving()); + _internal_set_is_moving(from._internal_is_moving()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void IsMovingResponse::CopyFrom(const IsMovingResponse& from) { @@ -2736,242 +2566,234 @@ void IsMovingResponse::CopyFrom(const IsMovingResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool IsMovingResponse::IsInitialized() const { +bool IsMovingResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* IsMovingResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void IsMovingResponse::InternalSwap(IsMovingResponse* PROTOBUF_RESTRICT other) { +void IsMovingResponse::InternalSwap(IsMovingResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.is_moving_, other->_impl_.is_moving_); + swap(is_moving_, other->is_moving_); } -::google::protobuf::Metadata IsMovingResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata IsMovingResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fbase_2fv1_2fbase_2eproto_getter, &descriptor_table_component_2fbase_2fv1_2fbase_2eproto_once, file_level_metadata_component_2fbase_2fv1_2fbase_2eproto[11]); } + // =================================================================== class GetPropertiesRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetPropertiesRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const GetPropertiesRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetPropertiesRequest* msg); }; -const ::google::protobuf::Struct& GetPropertiesRequest::_Internal::extra(const GetPropertiesRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetPropertiesRequest::_Internal::extra(const GetPropertiesRequest* msg) { + return *msg->extra_; } void GetPropertiesRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -GetPropertiesRequest::GetPropertiesRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetPropertiesRequest::GetPropertiesRequest(::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.base.v1.GetPropertiesRequest) } -inline PROTOBUF_NDEBUG_INLINE GetPropertiesRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -GetPropertiesRequest::GetPropertiesRequest( - ::google::protobuf::Arena* arena, - const GetPropertiesRequest& from) - : ::google::protobuf::Message(arena) { - GetPropertiesRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +GetPropertiesRequest::GetPropertiesRequest(const GetPropertiesRequest& 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.base.v1.GetPropertiesRequest) } -inline PROTOBUF_NDEBUG_INLINE GetPropertiesRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} -inline void GetPropertiesRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void GetPropertiesRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + GetPropertiesRequest::~GetPropertiesRequest() { // @@protoc_insertion_point(destructor:viam.component.base.v1.GetPropertiesRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetPropertiesRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void GetPropertiesRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetPropertiesRequest::Clear() { +void GetPropertiesRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.base.v1.GetPropertiesRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetPropertiesRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPropertiesRequest::_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.base.v1.GetPropertiesRequest.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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 2, 1, 56, 7> GetPropertiesRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetPropertiesRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetPropertiesRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetPropertiesRequest, _impl_.name_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(GetPropertiesRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 1, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(GetPropertiesRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(GetPropertiesRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\53\4\0\0\0\0\0\0" - "viam.component.base.v1.GetPropertiesRequest" - "name" - }}, -}; - -::uint8_t* GetPropertiesRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetPropertiesRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.base.v1.GetPropertiesRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.base.v1.GetPropertiesRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.base.v1.GetPropertiesRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.base.v1.GetPropertiesRequest) return target; } -::size_t GetPropertiesRequest::ByteSizeLong() const { +size_t GetPropertiesRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.base.v1.GetPropertiesRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetPropertiesRequest::_class_data_ = { - GetPropertiesRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPropertiesRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetPropertiesRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetPropertiesRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPropertiesRequest::GetClassData() const { return &_class_data_; } + +void GetPropertiesRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetPropertiesRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.base.v1.GetPropertiesRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetPropertiesRequest::MergeFrom(const GetPropertiesRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.base.v1.GetPropertiesRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetPropertiesRequest::CopyFrom(const GetPropertiesRequest& from) { @@ -2981,265 +2803,261 @@ void GetPropertiesRequest::CopyFrom(const GetPropertiesRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetPropertiesRequest::IsInitialized() const { +bool GetPropertiesRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetPropertiesRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetPropertiesRequest::InternalSwap(GetPropertiesRequest* PROTOBUF_RESTRICT other) { +void GetPropertiesRequest::InternalSwap(GetPropertiesRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.extra_, other->_impl_.extra_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(extra_, other->extra_); } -::google::protobuf::Metadata GetPropertiesRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetPropertiesRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fbase_2fv1_2fbase_2eproto_getter, &descriptor_table_component_2fbase_2fv1_2fbase_2eproto_once, file_level_metadata_component_2fbase_2fv1_2fbase_2eproto[12]); } + // =================================================================== class GetPropertiesResponse::_Internal { public: }; -GetPropertiesResponse::GetPropertiesResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetPropertiesResponse::GetPropertiesResponse(::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.base.v1.GetPropertiesResponse) } -GetPropertiesResponse::GetPropertiesResponse( - ::google::protobuf::Arena* arena, const GetPropertiesResponse& from) - : GetPropertiesResponse(arena) { - MergeFrom(from); +GetPropertiesResponse::GetPropertiesResponse(const GetPropertiesResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&width_meters_, &from.width_meters_, + static_cast(reinterpret_cast(&wheel_circumference_meters_) - + reinterpret_cast(&width_meters_)) + sizeof(wheel_circumference_meters_)); + // @@protoc_insertion_point(copy_constructor:viam.component.base.v1.GetPropertiesResponse) } -inline PROTOBUF_NDEBUG_INLINE GetPropertiesResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void GetPropertiesResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, width_meters_), - 0, - offsetof(Impl_, wheel_circumference_meters_) - - offsetof(Impl_, width_meters_) + - sizeof(Impl_::wheel_circumference_meters_)); +inline void GetPropertiesResponse::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&width_meters_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&wheel_circumference_meters_) - + reinterpret_cast(&width_meters_)) + sizeof(wheel_circumference_meters_)); } + GetPropertiesResponse::~GetPropertiesResponse() { // @@protoc_insertion_point(destructor:viam.component.base.v1.GetPropertiesResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetPropertiesResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void GetPropertiesResponse::Clear() { +void GetPropertiesResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetPropertiesResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.base.v1.GetPropertiesResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&_impl_.width_meters_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.wheel_circumference_meters_) - - reinterpret_cast(&_impl_.width_meters_)) + sizeof(_impl_.wheel_circumference_meters_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetPropertiesResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + ::memset(&width_meters_, 0, static_cast( + reinterpret_cast(&wheel_circumference_meters_) - + reinterpret_cast(&width_meters_)) + sizeof(wheel_circumference_meters_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPropertiesResponse::_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) { + // double width_meters = 1 [json_name = "widthMeters"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 9)) { + width_meters_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double turning_radius_meters = 2 [json_name = "turningRadiusMeters"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 17)) { + turning_radius_meters_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double wheel_circumference_meters = 3 [json_name = "wheelCircumferenceMeters"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 25)) { + wheel_circumference_meters_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 0, 2> GetPropertiesResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetPropertiesResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // double width_meters = 1 [json_name = "widthMeters"]; - {::_pbi::TcParser::FastF64S1, - {9, 63, 0, PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.width_meters_)}}, - // double turning_radius_meters = 2 [json_name = "turningRadiusMeters"]; - {::_pbi::TcParser::FastF64S1, - {17, 63, 0, PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.turning_radius_meters_)}}, - // double wheel_circumference_meters = 3 [json_name = "wheelCircumferenceMeters"]; - {::_pbi::TcParser::FastF64S1, - {25, 63, 0, PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.wheel_circumference_meters_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // double width_meters = 1 [json_name = "widthMeters"]; - {PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.width_meters_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double turning_radius_meters = 2 [json_name = "turningRadiusMeters"]; - {PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.turning_radius_meters_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double wheel_circumference_meters = 3 [json_name = "wheelCircumferenceMeters"]; - {PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.wheel_circumference_meters_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* GetPropertiesResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetPropertiesResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.base.v1.GetPropertiesResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // double width_meters = 1 [json_name = "widthMeters"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_width_meters = this->_internal_width_meters(); - ::uint64_t raw_width_meters; + uint64_t raw_width_meters; memcpy(&raw_width_meters, &tmp_width_meters, sizeof(tmp_width_meters)); if (raw_width_meters != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 1, this->_internal_width_meters(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(1, this->_internal_width_meters(), target); } // double turning_radius_meters = 2 [json_name = "turningRadiusMeters"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_turning_radius_meters = this->_internal_turning_radius_meters(); - ::uint64_t raw_turning_radius_meters; + uint64_t raw_turning_radius_meters; memcpy(&raw_turning_radius_meters, &tmp_turning_radius_meters, sizeof(tmp_turning_radius_meters)); if (raw_turning_radius_meters != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 2, this->_internal_turning_radius_meters(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_turning_radius_meters(), target); } // double wheel_circumference_meters = 3 [json_name = "wheelCircumferenceMeters"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_wheel_circumference_meters = this->_internal_wheel_circumference_meters(); - ::uint64_t raw_wheel_circumference_meters; + uint64_t raw_wheel_circumference_meters; memcpy(&raw_wheel_circumference_meters, &tmp_wheel_circumference_meters, sizeof(tmp_wheel_circumference_meters)); if (raw_wheel_circumference_meters != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 3, this->_internal_wheel_circumference_meters(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(3, this->_internal_wheel_circumference_meters(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.base.v1.GetPropertiesResponse) return target; } -::size_t GetPropertiesResponse::ByteSizeLong() const { +size_t GetPropertiesResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.base.v1.GetPropertiesResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // double width_meters = 1 [json_name = "widthMeters"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_width_meters = this->_internal_width_meters(); - ::uint64_t raw_width_meters; + uint64_t raw_width_meters; memcpy(&raw_width_meters, &tmp_width_meters, sizeof(tmp_width_meters)); if (raw_width_meters != 0) { - total_size += 9; + total_size += 1 + 8; } // double turning_radius_meters = 2 [json_name = "turningRadiusMeters"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_turning_radius_meters = this->_internal_turning_radius_meters(); - ::uint64_t raw_turning_radius_meters; + uint64_t raw_turning_radius_meters; memcpy(&raw_turning_radius_meters, &tmp_turning_radius_meters, sizeof(tmp_turning_radius_meters)); if (raw_turning_radius_meters != 0) { - total_size += 9; + total_size += 1 + 8; } // double wheel_circumference_meters = 3 [json_name = "wheelCircumferenceMeters"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_wheel_circumference_meters = this->_internal_wheel_circumference_meters(); - ::uint64_t raw_wheel_circumference_meters; + uint64_t raw_wheel_circumference_meters; memcpy(&raw_wheel_circumference_meters, &tmp_wheel_circumference_meters, sizeof(tmp_wheel_circumference_meters)); if (raw_wheel_circumference_meters != 0) { - total_size += 9; + total_size += 1 + 8; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetPropertiesResponse::_class_data_ = { - GetPropertiesResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPropertiesResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetPropertiesResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetPropertiesResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPropertiesResponse::GetClassData() const { return &_class_data_; } + +void GetPropertiesResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetPropertiesResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.base.v1.GetPropertiesResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetPropertiesResponse::MergeFrom(const GetPropertiesResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.base.v1.GetPropertiesResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_width_meters = from._internal_width_meters(); - ::uint64_t raw_width_meters; + uint64_t raw_width_meters; memcpy(&raw_width_meters, &tmp_width_meters, sizeof(tmp_width_meters)); if (raw_width_meters != 0) { - _this->_internal_set_width_meters(from._internal_width_meters()); + _internal_set_width_meters(from._internal_width_meters()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_turning_radius_meters = from._internal_turning_radius_meters(); - ::uint64_t raw_turning_radius_meters; + uint64_t raw_turning_radius_meters; memcpy(&raw_turning_radius_meters, &tmp_turning_radius_meters, sizeof(tmp_turning_radius_meters)); if (raw_turning_radius_meters != 0) { - _this->_internal_set_turning_radius_meters(from._internal_turning_radius_meters()); + _internal_set_turning_radius_meters(from._internal_turning_radius_meters()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_wheel_circumference_meters = from._internal_wheel_circumference_meters(); - ::uint64_t raw_wheel_circumference_meters; + uint64_t raw_wheel_circumference_meters; memcpy(&raw_wheel_circumference_meters, &tmp_wheel_circumference_meters, sizeof(tmp_wheel_circumference_meters)); if (raw_wheel_circumference_meters != 0) { - _this->_internal_set_wheel_circumference_meters(from._internal_wheel_circumference_meters()); + _internal_set_wheel_circumference_meters(from._internal_wheel_circumference_meters()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetPropertiesResponse::CopyFrom(const GetPropertiesResponse& from) { @@ -3249,37 +3067,90 @@ void GetPropertiesResponse::CopyFrom(const GetPropertiesResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetPropertiesResponse::IsInitialized() const { +bool GetPropertiesResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetPropertiesResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetPropertiesResponse::InternalSwap(GetPropertiesResponse* PROTOBUF_RESTRICT other) { +void GetPropertiesResponse::InternalSwap(GetPropertiesResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.wheel_circumference_meters_) - + sizeof(GetPropertiesResponse::_impl_.wheel_circumference_meters_) - - PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.width_meters_)>( - reinterpret_cast(&_impl_.width_meters_), - reinterpret_cast(&other->_impl_.width_meters_)); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, wheel_circumference_meters_) + + sizeof(GetPropertiesResponse::wheel_circumference_meters_) + - PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, width_meters_)>( + reinterpret_cast(&width_meters_), + reinterpret_cast(&other->width_meters_)); } -::google::protobuf::Metadata GetPropertiesResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetPropertiesResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fbase_2fv1_2fbase_2eproto_getter, &descriptor_table_component_2fbase_2fv1_2fbase_2eproto_once, file_level_metadata_component_2fbase_2fv1_2fbase_2eproto[13]); } + // @@protoc_insertion_point(namespace_scope) } // namespace v1 } // namespace base } // namespace component } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::component::base::v1::MoveStraightRequest* +Arena::CreateMaybeMessage< ::viam::component::base::v1::MoveStraightRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::base::v1::MoveStraightRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::base::v1::MoveStraightResponse* +Arena::CreateMaybeMessage< ::viam::component::base::v1::MoveStraightResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::base::v1::MoveStraightResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::base::v1::SpinRequest* +Arena::CreateMaybeMessage< ::viam::component::base::v1::SpinRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::base::v1::SpinRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::base::v1::SpinResponse* +Arena::CreateMaybeMessage< ::viam::component::base::v1::SpinResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::base::v1::SpinResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::base::v1::StopRequest* +Arena::CreateMaybeMessage< ::viam::component::base::v1::StopRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::base::v1::StopRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::base::v1::StopResponse* +Arena::CreateMaybeMessage< ::viam::component::base::v1::StopResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::base::v1::StopResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::base::v1::SetPowerRequest* +Arena::CreateMaybeMessage< ::viam::component::base::v1::SetPowerRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::base::v1::SetPowerRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::base::v1::SetPowerResponse* +Arena::CreateMaybeMessage< ::viam::component::base::v1::SetPowerResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::base::v1::SetPowerResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::base::v1::SetVelocityRequest* +Arena::CreateMaybeMessage< ::viam::component::base::v1::SetVelocityRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::base::v1::SetVelocityRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::base::v1::SetVelocityResponse* +Arena::CreateMaybeMessage< ::viam::component::base::v1::SetVelocityResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::base::v1::SetVelocityResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::base::v1::IsMovingRequest* +Arena::CreateMaybeMessage< ::viam::component::base::v1::IsMovingRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::base::v1::IsMovingRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::base::v1::IsMovingResponse* +Arena::CreateMaybeMessage< ::viam::component::base::v1::IsMovingResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::base::v1::IsMovingResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::base::v1::GetPropertiesRequest* +Arena::CreateMaybeMessage< ::viam::component::base::v1::GetPropertiesRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::base::v1::GetPropertiesRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::base::v1::GetPropertiesResponse* +Arena::CreateMaybeMessage< ::viam::component::base::v1::GetPropertiesResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::base::v1::GetPropertiesResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/component/base/v1/base.pb.h b/src/viam/api/component/base/v1/base.pb.h index ad8f563a6..c9c4716e7 100644 --- a/src/viam/api/component/base/v1/base.pb.h +++ b/src/viam/api/component/base/v1/base.pb.h @@ -1,64 +1,53 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: component/base/v1/base.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_component_2fbase_2fv1_2fbase_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_component_2fbase_2fv1_2fbase_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_component_2fbase_2fv1_2fbase_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_component_2fbase_2fv1_2fbase_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_bases.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/unknown_field_set.h" + +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include #include "common/v1/common.pb.h" #include "google/api/annotations.pb.h" -#include "google/protobuf/struct.pb.h" +#include // @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - +#include #define PROTOBUF_INTERNAL_EXPORT_component_2fbase_2fv1_2fbase_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_component_2fbase_2fv1_2fbase_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_component_2fbase_2fv1_2fbase_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_component_2fbase_2fv1_2fbase_2eproto; namespace viam { namespace component { namespace base { @@ -109,11 +98,22 @@ extern StopResponseDefaultTypeInternal _StopResponse_default_instance_; } // namespace base } // namespace component } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::component::base::v1::GetPropertiesRequest* Arena::CreateMaybeMessage<::viam::component::base::v1::GetPropertiesRequest>(Arena*); +template<> ::viam::component::base::v1::GetPropertiesResponse* Arena::CreateMaybeMessage<::viam::component::base::v1::GetPropertiesResponse>(Arena*); +template<> ::viam::component::base::v1::IsMovingRequest* Arena::CreateMaybeMessage<::viam::component::base::v1::IsMovingRequest>(Arena*); +template<> ::viam::component::base::v1::IsMovingResponse* Arena::CreateMaybeMessage<::viam::component::base::v1::IsMovingResponse>(Arena*); +template<> ::viam::component::base::v1::MoveStraightRequest* Arena::CreateMaybeMessage<::viam::component::base::v1::MoveStraightRequest>(Arena*); +template<> ::viam::component::base::v1::MoveStraightResponse* Arena::CreateMaybeMessage<::viam::component::base::v1::MoveStraightResponse>(Arena*); +template<> ::viam::component::base::v1::SetPowerRequest* Arena::CreateMaybeMessage<::viam::component::base::v1::SetPowerRequest>(Arena*); +template<> ::viam::component::base::v1::SetPowerResponse* Arena::CreateMaybeMessage<::viam::component::base::v1::SetPowerResponse>(Arena*); +template<> ::viam::component::base::v1::SetVelocityRequest* Arena::CreateMaybeMessage<::viam::component::base::v1::SetVelocityRequest>(Arena*); +template<> ::viam::component::base::v1::SetVelocityResponse* Arena::CreateMaybeMessage<::viam::component::base::v1::SetVelocityResponse>(Arena*); +template<> ::viam::component::base::v1::SpinRequest* Arena::CreateMaybeMessage<::viam::component::base::v1::SpinRequest>(Arena*); +template<> ::viam::component::base::v1::SpinResponse* Arena::CreateMaybeMessage<::viam::component::base::v1::SpinResponse>(Arena*); +template<> ::viam::component::base::v1::StopRequest* Arena::CreateMaybeMessage<::viam::component::base::v1::StopRequest>(Arena*); +template<> ::viam::component::base::v1::StopResponse* Arena::CreateMaybeMessage<::viam::component::base::v1::StopResponse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace viam { namespace component { namespace base { @@ -121,32 +121,28 @@ namespace v1 { // =================================================================== - -// ------------------------------------------------------------------- - -class StopResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.base.v1.StopResponse) */ { +class MoveStraightRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.base.v1.MoveStraightRequest) */ { public: - inline StopResponse() : StopResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR StopResponse(::google::protobuf::internal::ConstantInitialized); + inline MoveStraightRequest() : MoveStraightRequest(nullptr) {} + ~MoveStraightRequest() override; + explicit PROTOBUF_CONSTEXPR MoveStraightRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline StopResponse(const StopResponse& from) - : StopResponse(nullptr, from) {} - StopResponse(StopResponse&& from) noexcept - : StopResponse() { + MoveStraightRequest(const MoveStraightRequest& from); + MoveStraightRequest(MoveStraightRequest&& from) noexcept + : MoveStraightRequest() { *this = ::std::move(from); } - inline StopResponse& operator=(const StopResponse& from) { + inline MoveStraightRequest& operator=(const MoveStraightRequest& from) { CopyFrom(from); return *this; } - inline StopResponse& operator=(StopResponse&& from) noexcept { + inline MoveStraightRequest& operator=(MoveStraightRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -156,133 +152,186 @@ class StopResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const StopResponse& default_instance() { + static const MoveStraightRequest& default_instance() { return *internal_default_instance(); } - static inline const StopResponse* internal_default_instance() { - return reinterpret_cast( - &_StopResponse_default_instance_); + static inline const MoveStraightRequest* internal_default_instance() { + return reinterpret_cast( + &_MoveStraightRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 5; + 0; - friend void swap(StopResponse& a, StopResponse& b) { + friend void swap(MoveStraightRequest& a, MoveStraightRequest& b) { a.Swap(&b); } - inline void Swap(StopResponse* other) { + inline void Swap(MoveStraightRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(StopResponse* other) { + void UnsafeArenaSwap(MoveStraightRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - StopResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const StopResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const StopResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + MoveStraightRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MoveStraightRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MoveStraightRequest& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.base.v1.StopResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoveStraightRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.base.v1.MoveStraightRequest"; } protected: - explicit StopResponse(::google::protobuf::Arena* arena); - StopResponse(::google::protobuf::Arena* arena, const StopResponse& from); + explicit MoveStraightRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.component.base.v1.StopResponse) + enum : int { + kNameFieldNumber = 1, + kExtraFieldNumber = 99, + kDistanceMmFieldNumber = 2, + kMmPerSecFieldNumber = 3, + }; + // 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(); + + // int64 distance_mm = 2 [json_name = "distanceMm"]; + void clear_distance_mm(); + int64_t distance_mm() const; + void set_distance_mm(int64_t value); + private: + int64_t _internal_distance_mm() const; + void _internal_set_distance_mm(int64_t value); + public: + + // double mm_per_sec = 3 [json_name = "mmPerSec"]; + void clear_mm_per_sec(); + double mm_per_sec() const; + void set_mm_per_sec(double value); + private: + double _internal_mm_per_sec() const; + void _internal_set_mm_per_sec(double value); + public: + + // @@protoc_insertion_point(class_scope:viam.component.base.v1.MoveStraightRequest) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + 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_; + int64_t distance_mm_; + double mm_per_sec_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fbase_2fv1_2fbase_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SpinResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.base.v1.SpinResponse) */ { +class MoveStraightResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.base.v1.MoveStraightResponse) */ { public: - inline SpinResponse() : SpinResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR SpinResponse(::google::protobuf::internal::ConstantInitialized); + inline MoveStraightResponse() : MoveStraightResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR MoveStraightResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline SpinResponse(const SpinResponse& from) - : SpinResponse(nullptr, from) {} - SpinResponse(SpinResponse&& from) noexcept - : SpinResponse() { + MoveStraightResponse(const MoveStraightResponse& from); + MoveStraightResponse(MoveStraightResponse&& from) noexcept + : MoveStraightResponse() { *this = ::std::move(from); } - inline SpinResponse& operator=(const SpinResponse& from) { + inline MoveStraightResponse& operator=(const MoveStraightResponse& from) { CopyFrom(from); return *this; } - inline SpinResponse& operator=(SpinResponse&& from) noexcept { + inline MoveStraightResponse& operator=(MoveStraightResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -292,133 +341,114 @@ class SpinResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SpinResponse& default_instance() { + static const MoveStraightResponse& default_instance() { return *internal_default_instance(); } - static inline const SpinResponse* internal_default_instance() { - return reinterpret_cast( - &_SpinResponse_default_instance_); + static inline const MoveStraightResponse* internal_default_instance() { + return reinterpret_cast( + &_MoveStraightResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 3; + 1; - friend void swap(SpinResponse& a, SpinResponse& b) { + friend void swap(MoveStraightResponse& a, MoveStraightResponse& b) { a.Swap(&b); } - inline void Swap(SpinResponse* other) { + inline void Swap(MoveStraightResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SpinResponse* other) { + void UnsafeArenaSwap(MoveStraightResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SpinResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + MoveStraightResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const SpinResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const MoveStraightResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const SpinResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const MoveStraightResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } public: private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.base.v1.SpinResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.base.v1.MoveStraightResponse"; } protected: - explicit SpinResponse(::google::protobuf::Arena* arena); - SpinResponse(::google::protobuf::Arena* arena, const SpinResponse& from); + explicit MoveStraightResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.component.base.v1.SpinResponse) + // @@protoc_insertion_point(class_scope:viam.component.base.v1.MoveStraightResponse) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_component_2fbase_2fv1_2fbase_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SetVelocityResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.base.v1.SetVelocityResponse) */ { +class SpinRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.base.v1.SpinRequest) */ { public: - inline SetVelocityResponse() : SetVelocityResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR SetVelocityResponse(::google::protobuf::internal::ConstantInitialized); + inline SpinRequest() : SpinRequest(nullptr) {} + ~SpinRequest() override; + explicit PROTOBUF_CONSTEXPR SpinRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline SetVelocityResponse(const SetVelocityResponse& from) - : SetVelocityResponse(nullptr, from) {} - SetVelocityResponse(SetVelocityResponse&& from) noexcept - : SetVelocityResponse() { + SpinRequest(const SpinRequest& from); + SpinRequest(SpinRequest&& from) noexcept + : SpinRequest() { *this = ::std::move(from); } - inline SetVelocityResponse& operator=(const SetVelocityResponse& from) { + inline SpinRequest& operator=(const SpinRequest& from) { CopyFrom(from); return *this; } - inline SetVelocityResponse& operator=(SetVelocityResponse&& from) noexcept { + inline SpinRequest& operator=(SpinRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -428,133 +458,186 @@ class SetVelocityResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SetVelocityResponse& default_instance() { + static const SpinRequest& default_instance() { return *internal_default_instance(); } - static inline const SetVelocityResponse* internal_default_instance() { - return reinterpret_cast( - &_SetVelocityResponse_default_instance_); + static inline const SpinRequest* internal_default_instance() { + return reinterpret_cast( + &_SpinRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 9; + 2; - friend void swap(SetVelocityResponse& a, SetVelocityResponse& b) { + friend void swap(SpinRequest& a, SpinRequest& b) { a.Swap(&b); } - inline void Swap(SetVelocityResponse* other) { + inline void Swap(SpinRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SetVelocityResponse* other) { + void UnsafeArenaSwap(SpinRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SetVelocityResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const SetVelocityResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const SetVelocityResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + SpinRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SpinRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const SpinRequest& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.base.v1.SetVelocityResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SpinRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.base.v1.SpinRequest"; } protected: - explicit SetVelocityResponse(::google::protobuf::Arena* arena); - SetVelocityResponse(::google::protobuf::Arena* arena, const SetVelocityResponse& from); + explicit SpinRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.component.base.v1.SetVelocityResponse) + enum : int { + kNameFieldNumber = 1, + kExtraFieldNumber = 99, + kAngleDegFieldNumber = 2, + kDegsPerSecFieldNumber = 3, + }; + // 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(); + + // double angle_deg = 2 [json_name = "angleDeg"]; + void clear_angle_deg(); + double angle_deg() const; + void set_angle_deg(double value); + private: + double _internal_angle_deg() const; + void _internal_set_angle_deg(double value); + public: + + // double degs_per_sec = 3 [json_name = "degsPerSec"]; + void clear_degs_per_sec(); + double degs_per_sec() const; + void set_degs_per_sec(double value); + private: + double _internal_degs_per_sec() const; + void _internal_set_degs_per_sec(double value); + public: + + // @@protoc_insertion_point(class_scope:viam.component.base.v1.SpinRequest) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + 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_; + double angle_deg_; + double degs_per_sec_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fbase_2fv1_2fbase_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SetPowerResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.base.v1.SetPowerResponse) */ { +class SpinResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.base.v1.SpinResponse) */ { public: - inline SetPowerResponse() : SetPowerResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR SetPowerResponse(::google::protobuf::internal::ConstantInitialized); + inline SpinResponse() : SpinResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR SpinResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline SetPowerResponse(const SetPowerResponse& from) - : SetPowerResponse(nullptr, from) {} - SetPowerResponse(SetPowerResponse&& from) noexcept - : SetPowerResponse() { + SpinResponse(const SpinResponse& from); + SpinResponse(SpinResponse&& from) noexcept + : SpinResponse() { *this = ::std::move(from); } - inline SetPowerResponse& operator=(const SetPowerResponse& from) { + inline SpinResponse& operator=(const SpinResponse& from) { CopyFrom(from); return *this; } - inline SetPowerResponse& operator=(SetPowerResponse&& from) noexcept { + inline SpinResponse& operator=(SpinResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -564,133 +647,114 @@ class SetPowerResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SetPowerResponse& default_instance() { + static const SpinResponse& default_instance() { return *internal_default_instance(); } - static inline const SetPowerResponse* internal_default_instance() { - return reinterpret_cast( - &_SetPowerResponse_default_instance_); + static inline const SpinResponse* internal_default_instance() { + return reinterpret_cast( + &_SpinResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 7; + 3; - friend void swap(SetPowerResponse& a, SetPowerResponse& b) { + friend void swap(SpinResponse& a, SpinResponse& b) { a.Swap(&b); } - inline void Swap(SetPowerResponse* other) { + inline void Swap(SpinResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SetPowerResponse* other) { + void UnsafeArenaSwap(SpinResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SetPowerResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SpinResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const SetPowerResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const SpinResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const SetPowerResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const SpinResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } public: private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.base.v1.SetPowerResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.base.v1.SpinResponse"; } protected: - explicit SetPowerResponse(::google::protobuf::Arena* arena); - SetPowerResponse(::google::protobuf::Arena* arena, const SetPowerResponse& from); + explicit SpinResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.component.base.v1.SetPowerResponse) + // @@protoc_insertion_point(class_scope:viam.component.base.v1.SpinResponse) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_component_2fbase_2fv1_2fbase_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class MoveStraightResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.base.v1.MoveStraightResponse) */ { +class StopRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.base.v1.StopRequest) */ { public: - inline MoveStraightResponse() : MoveStraightResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR MoveStraightResponse(::google::protobuf::internal::ConstantInitialized); + inline StopRequest() : StopRequest(nullptr) {} + ~StopRequest() override; + explicit PROTOBUF_CONSTEXPR StopRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline MoveStraightResponse(const MoveStraightResponse& from) - : MoveStraightResponse(nullptr, from) {} - MoveStraightResponse(MoveStraightResponse&& from) noexcept - : MoveStraightResponse() { + StopRequest(const StopRequest& from); + StopRequest(StopRequest&& from) noexcept + : StopRequest() { *this = ::std::move(from); } - inline MoveStraightResponse& operator=(const MoveStraightResponse& from) { + inline StopRequest& operator=(const StopRequest& from) { CopyFrom(from); return *this; } - inline MoveStraightResponse& operator=(MoveStraightResponse&& from) noexcept { + inline StopRequest& operator=(StopRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -700,134 +764,164 @@ class MoveStraightResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MoveStraightResponse& default_instance() { + static const StopRequest& default_instance() { return *internal_default_instance(); } - static inline const MoveStraightResponse* internal_default_instance() { - return reinterpret_cast( - &_MoveStraightResponse_default_instance_); + static inline const StopRequest* internal_default_instance() { + return reinterpret_cast( + &_StopRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 1; + 4; - friend void swap(MoveStraightResponse& a, MoveStraightResponse& b) { + friend void swap(StopRequest& a, StopRequest& b) { a.Swap(&b); } - inline void Swap(MoveStraightResponse* other) { + inline void Swap(StopRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MoveStraightResponse* other) { + void UnsafeArenaSwap(StopRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MoveStraightResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const MoveStraightResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const MoveStraightResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + StopRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const StopRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const StopRequest& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.base.v1.MoveStraightResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(StopRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.base.v1.StopRequest"; } protected: - explicit MoveStraightResponse(::google::protobuf::Arena* arena); - MoveStraightResponse(::google::protobuf::Arena* arena, const MoveStraightResponse& from); + explicit StopRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.component.base.v1.MoveStraightResponse) + 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.base.v1.StopRequest) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + 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_2fbase_2fv1_2fbase_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class IsMovingResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.base.v1.IsMovingResponse) */ { +class StopResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.base.v1.StopResponse) */ { public: - inline IsMovingResponse() : IsMovingResponse(nullptr) {} - ~IsMovingResponse() override; - template - explicit PROTOBUF_CONSTEXPR IsMovingResponse(::google::protobuf::internal::ConstantInitialized); + inline StopResponse() : StopResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR StopResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline IsMovingResponse(const IsMovingResponse& from) - : IsMovingResponse(nullptr, from) {} - IsMovingResponse(IsMovingResponse&& from) noexcept - : IsMovingResponse() { + StopResponse(const StopResponse& from); + StopResponse(StopResponse&& from) noexcept + : StopResponse() { *this = ::std::move(from); } - inline IsMovingResponse& operator=(const IsMovingResponse& from) { + inline StopResponse& operator=(const StopResponse& from) { CopyFrom(from); return *this; } - inline IsMovingResponse& operator=(IsMovingResponse&& from) noexcept { + inline StopResponse& operator=(StopResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -837,172 +931,114 @@ class IsMovingResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const IsMovingResponse& default_instance() { + static const StopResponse& default_instance() { return *internal_default_instance(); } - static inline const IsMovingResponse* internal_default_instance() { - return reinterpret_cast( - &_IsMovingResponse_default_instance_); + static inline const StopResponse* internal_default_instance() { + return reinterpret_cast( + &_StopResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 11; + 5; - friend void swap(IsMovingResponse& a, IsMovingResponse& b) { + friend void swap(StopResponse& a, StopResponse& b) { a.Swap(&b); } - inline void Swap(IsMovingResponse* other) { + inline void Swap(StopResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(IsMovingResponse* other) { + void UnsafeArenaSwap(StopResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - IsMovingResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + StopResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const IsMovingResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const IsMovingResponse& from) { - IsMovingResponse::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const StopResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const StopResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(IsMovingResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.base.v1.IsMovingResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.base.v1.StopResponse"; } protected: - explicit IsMovingResponse(::google::protobuf::Arena* arena); - IsMovingResponse(::google::protobuf::Arena* arena, const IsMovingResponse& from); + explicit StopResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kIsMovingFieldNumber = 1, - }; - // bool is_moving = 1 [json_name = "isMoving"]; - void clear_is_moving() ; - bool is_moving() const; - void set_is_moving(bool value); - - private: - bool _internal_is_moving() const; - void _internal_set_is_moving(bool value); - - public: - // @@protoc_insertion_point(class_scope:viam.component.base.v1.IsMovingResponse) + // @@protoc_insertion_point(class_scope:viam.component.base.v1.StopResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - bool is_moving_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_component_2fbase_2fv1_2fbase_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class IsMovingRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.base.v1.IsMovingRequest) */ { +class SetPowerRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.base.v1.SetPowerRequest) */ { public: - inline IsMovingRequest() : IsMovingRequest(nullptr) {} - ~IsMovingRequest() override; - template - explicit PROTOBUF_CONSTEXPR IsMovingRequest(::google::protobuf::internal::ConstantInitialized); + inline SetPowerRequest() : SetPowerRequest(nullptr) {} + ~SetPowerRequest() override; + explicit PROTOBUF_CONSTEXPR SetPowerRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline IsMovingRequest(const IsMovingRequest& from) - : IsMovingRequest(nullptr, from) {} - IsMovingRequest(IsMovingRequest&& from) noexcept - : IsMovingRequest() { + SetPowerRequest(const SetPowerRequest& from); + SetPowerRequest(SetPowerRequest&& from) noexcept + : SetPowerRequest() { *this = ::std::move(from); } - inline IsMovingRequest& operator=(const IsMovingRequest& from) { + inline SetPowerRequest& operator=(const SetPowerRequest& from) { CopyFrom(from); return *this; } - inline IsMovingRequest& operator=(IsMovingRequest&& from) noexcept { + inline SetPowerRequest& operator=(SetPowerRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1012,99 +1048,88 @@ class IsMovingRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const IsMovingRequest& default_instance() { + static const SetPowerRequest& default_instance() { return *internal_default_instance(); } - static inline const IsMovingRequest* internal_default_instance() { - return reinterpret_cast( - &_IsMovingRequest_default_instance_); + static inline const SetPowerRequest* internal_default_instance() { + return reinterpret_cast( + &_SetPowerRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 10; + 6; - friend void swap(IsMovingRequest& a, IsMovingRequest& b) { + friend void swap(SetPowerRequest& a, SetPowerRequest& b) { a.Swap(&b); } - inline void Swap(IsMovingRequest* other) { + inline void Swap(SetPowerRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(IsMovingRequest* other) { + void UnsafeArenaSwap(SetPowerRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - IsMovingRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const IsMovingRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const IsMovingRequest& from) { - IsMovingRequest::MergeImpl(*this, from); + SetPowerRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SetPowerRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const SetPowerRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(IsMovingRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(SetPowerRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.base.v1.IsMovingRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.base.v1.SetPowerRequest"; } protected: - explicit IsMovingRequest(::google::protobuf::Arena* arena); - IsMovingRequest(::google::protobuf::Arena* arena, const IsMovingRequest& from); + explicit SetPowerRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1112,78 +1137,115 @@ class IsMovingRequest final : enum : int { kNameFieldNumber = 1, + kLinearFieldNumber = 2, + kAngularFieldNumber = 3, + kExtraFieldNumber = 99, }; // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); std::string* _internal_mutable_name(); + public: + // .viam.common.v1.Vector3 linear = 2 [json_name = "linear"]; + bool has_linear() const; + private: + bool _internal_has_linear() const; public: - // @@protoc_insertion_point(class_scope:viam.component.base.v1.IsMovingRequest) + void clear_linear(); + const ::viam::common::v1::Vector3& linear() const; + PROTOBUF_NODISCARD ::viam::common::v1::Vector3* release_linear(); + ::viam::common::v1::Vector3* mutable_linear(); + void set_allocated_linear(::viam::common::v1::Vector3* linear); + private: + const ::viam::common::v1::Vector3& _internal_linear() const; + ::viam::common::v1::Vector3* _internal_mutable_linear(); + public: + void unsafe_arena_set_allocated_linear( + ::viam::common::v1::Vector3* linear); + ::viam::common::v1::Vector3* unsafe_arena_release_linear(); + + // .viam.common.v1.Vector3 angular = 3 [json_name = "angular"]; + bool has_angular() const; + private: + bool _internal_has_angular() const; + public: + void clear_angular(); + const ::viam::common::v1::Vector3& angular() const; + PROTOBUF_NODISCARD ::viam::common::v1::Vector3* release_angular(); + ::viam::common::v1::Vector3* mutable_angular(); + void set_allocated_angular(::viam::common::v1::Vector3* angular); + private: + const ::viam::common::v1::Vector3& _internal_angular() const; + ::viam::common::v1::Vector3* _internal_mutable_angular(); + public: + void unsafe_arena_set_allocated_angular( + ::viam::common::v1::Vector3* angular); + ::viam::common::v1::Vector3* unsafe_arena_release_angular(); + + // .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.base.v1.SetPowerRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 51, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr name_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::viam::common::v1::Vector3* linear_; + ::viam::common::v1::Vector3* angular_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fbase_2fv1_2fbase_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetPropertiesResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.base.v1.GetPropertiesResponse) */ { +class SetPowerResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.base.v1.SetPowerResponse) */ { public: - inline GetPropertiesResponse() : GetPropertiesResponse(nullptr) {} - ~GetPropertiesResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetPropertiesResponse(::google::protobuf::internal::ConstantInitialized); + inline SetPowerResponse() : SetPowerResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR SetPowerResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetPropertiesResponse(const GetPropertiesResponse& from) - : GetPropertiesResponse(nullptr, from) {} - GetPropertiesResponse(GetPropertiesResponse&& from) noexcept - : GetPropertiesResponse() { + SetPowerResponse(const SetPowerResponse& from); + SetPowerResponse(SetPowerResponse&& from) noexcept + : SetPowerResponse() { *this = ::std::move(from); } - inline GetPropertiesResponse& operator=(const GetPropertiesResponse& from) { + inline SetPowerResponse& operator=(const SetPowerResponse& from) { CopyFrom(from); return *this; } - inline GetPropertiesResponse& operator=(GetPropertiesResponse&& from) noexcept { + inline SetPowerResponse& operator=(SetPowerResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1193,196 +1255,114 @@ class GetPropertiesResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetPropertiesResponse& default_instance() { + static const SetPowerResponse& default_instance() { return *internal_default_instance(); } - static inline const GetPropertiesResponse* internal_default_instance() { - return reinterpret_cast( - &_GetPropertiesResponse_default_instance_); + static inline const SetPowerResponse* internal_default_instance() { + return reinterpret_cast( + &_SetPowerResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 13; + 7; - friend void swap(GetPropertiesResponse& a, GetPropertiesResponse& b) { + friend void swap(SetPowerResponse& a, SetPowerResponse& b) { a.Swap(&b); } - inline void Swap(GetPropertiesResponse* other) { + inline void Swap(SetPowerResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetPropertiesResponse* other) { + void UnsafeArenaSwap(SetPowerResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetPropertiesResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SetPowerResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetPropertiesResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetPropertiesResponse& from) { - GetPropertiesResponse::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const SetPowerResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const SetPowerResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetPropertiesResponse* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.base.v1.GetPropertiesResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.base.v1.SetPowerResponse"; } protected: - explicit GetPropertiesResponse(::google::protobuf::Arena* arena); - GetPropertiesResponse(::google::protobuf::Arena* arena, const GetPropertiesResponse& from); + explicit SetPowerResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kWidthMetersFieldNumber = 1, - kTurningRadiusMetersFieldNumber = 2, - kWheelCircumferenceMetersFieldNumber = 3, - }; - // double width_meters = 1 [json_name = "widthMeters"]; - void clear_width_meters() ; - double width_meters() const; - void set_width_meters(double value); - - private: - double _internal_width_meters() const; - void _internal_set_width_meters(double value); - - public: - // double turning_radius_meters = 2 [json_name = "turningRadiusMeters"]; - void clear_turning_radius_meters() ; - double turning_radius_meters() const; - void set_turning_radius_meters(double value); - - private: - double _internal_turning_radius_meters() const; - void _internal_set_turning_radius_meters(double value); - - public: - // double wheel_circumference_meters = 3 [json_name = "wheelCircumferenceMeters"]; - void clear_wheel_circumference_meters() ; - double wheel_circumference_meters() const; - void set_wheel_circumference_meters(double value); - - private: - double _internal_wheel_circumference_meters() const; - void _internal_set_wheel_circumference_meters(double value); - - public: - // @@protoc_insertion_point(class_scope:viam.component.base.v1.GetPropertiesResponse) + // @@protoc_insertion_point(class_scope:viam.component.base.v1.SetPowerResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - double width_meters_; - double turning_radius_meters_; - double wheel_circumference_meters_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_component_2fbase_2fv1_2fbase_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class StopRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.base.v1.StopRequest) */ { +class SetVelocityRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.base.v1.SetVelocityRequest) */ { public: - inline StopRequest() : StopRequest(nullptr) {} - ~StopRequest() override; - template - explicit PROTOBUF_CONSTEXPR StopRequest(::google::protobuf::internal::ConstantInitialized); + inline SetVelocityRequest() : SetVelocityRequest(nullptr) {} + ~SetVelocityRequest() override; + explicit PROTOBUF_CONSTEXPR SetVelocityRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline StopRequest(const StopRequest& from) - : StopRequest(nullptr, from) {} - StopRequest(StopRequest&& from) noexcept - : StopRequest() { + SetVelocityRequest(const SetVelocityRequest& from); + SetVelocityRequest(SetVelocityRequest&& from) noexcept + : SetVelocityRequest() { *this = ::std::move(from); } - inline StopRequest& operator=(const StopRequest& from) { + inline SetVelocityRequest& operator=(const SetVelocityRequest& from) { CopyFrom(from); return *this; } - inline StopRequest& operator=(StopRequest&& from) noexcept { + inline SetVelocityRequest& operator=(SetVelocityRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1392,99 +1372,88 @@ class StopRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const StopRequest& default_instance() { + static const SetVelocityRequest& default_instance() { return *internal_default_instance(); } - static inline const StopRequest* internal_default_instance() { - return reinterpret_cast( - &_StopRequest_default_instance_); + static inline const SetVelocityRequest* internal_default_instance() { + return reinterpret_cast( + &_SetVelocityRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 4; + 8; - friend void swap(StopRequest& a, StopRequest& b) { + friend void swap(SetVelocityRequest& a, SetVelocityRequest& b) { a.Swap(&b); } - inline void Swap(StopRequest* other) { + inline void Swap(SetVelocityRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(StopRequest* other) { + void UnsafeArenaSwap(SetVelocityRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - StopRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const StopRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const StopRequest& from) { - StopRequest::MergeImpl(*this, from); + SetVelocityRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SetVelocityRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const SetVelocityRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(StopRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(SetVelocityRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.base.v1.StopRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.base.v1.SetVelocityRequest"; } protected: - explicit StopRequest(::google::protobuf::Arena* arena); - StopRequest(::google::protobuf::Arena* arena, const StopRequest& from); + explicit SetVelocityRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1492,96 +1461,115 @@ class StopRequest final : enum : int { kNameFieldNumber = 1, + kLinearFieldNumber = 2, + kAngularFieldNumber = 3, kExtraFieldNumber = 99, }; // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); std::string* _internal_mutable_name(); + public: + // .viam.common.v1.Vector3 linear = 2 [json_name = "linear"]; + bool has_linear() const; + private: + bool _internal_has_linear() const; public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); + void clear_linear(); + const ::viam::common::v1::Vector3& linear() const; + PROTOBUF_NODISCARD ::viam::common::v1::Vector3* release_linear(); + ::viam::common::v1::Vector3* mutable_linear(); + void set_allocated_linear(::viam::common::v1::Vector3* linear); + private: + const ::viam::common::v1::Vector3& _internal_linear() const; + ::viam::common::v1::Vector3* _internal_mutable_linear(); + public: + void unsafe_arena_set_allocated_linear( + ::viam::common::v1::Vector3* linear); + ::viam::common::v1::Vector3* unsafe_arena_release_linear(); + // .viam.common.v1.Vector3 angular = 3 [json_name = "angular"]; + bool has_angular() const; + private: + bool _internal_has_angular() const; + public: + void clear_angular(); + const ::viam::common::v1::Vector3& angular() const; + PROTOBUF_NODISCARD ::viam::common::v1::Vector3* release_angular(); + ::viam::common::v1::Vector3* mutable_angular(); + void set_allocated_angular(::viam::common::v1::Vector3* angular); private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); + const ::viam::common::v1::Vector3& _internal_angular() const; + ::viam::common::v1::Vector3* _internal_mutable_angular(); + public: + void unsafe_arena_set_allocated_angular( + ::viam::common::v1::Vector3* angular); + ::viam::common::v1::Vector3* unsafe_arena_release_angular(); + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + bool has_extra() const; + private: + bool _internal_has_extra() const; public: - // @@protoc_insertion_point(class_scope:viam.component.base.v1.StopRequest) + 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.base.v1.SetVelocityRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 2, 1, - 47, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::viam::common::v1::Vector3* linear_; + ::viam::common::v1::Vector3* angular_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fbase_2fv1_2fbase_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SpinRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.base.v1.SpinRequest) */ { +class SetVelocityResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.base.v1.SetVelocityResponse) */ { public: - inline SpinRequest() : SpinRequest(nullptr) {} - ~SpinRequest() override; - template - explicit PROTOBUF_CONSTEXPR SpinRequest(::google::protobuf::internal::ConstantInitialized); + inline SetVelocityResponse() : SetVelocityResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR SetVelocityResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline SpinRequest(const SpinRequest& from) - : SpinRequest(nullptr, from) {} - SpinRequest(SpinRequest&& from) noexcept - : SpinRequest() { + SetVelocityResponse(const SetVelocityResponse& from); + SetVelocityResponse(SetVelocityResponse&& from) noexcept + : SetVelocityResponse() { *this = ::std::move(from); } - inline SpinRequest& operator=(const SpinRequest& from) { + inline SetVelocityResponse& operator=(const SetVelocityResponse& from) { CopyFrom(from); return *this; } - inline SpinRequest& operator=(SpinRequest&& from) noexcept { + inline SetVelocityResponse& operator=(SetVelocityResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1591,220 +1579,114 @@ class SpinRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SpinRequest& default_instance() { + static const SetVelocityResponse& default_instance() { return *internal_default_instance(); } - static inline const SpinRequest* internal_default_instance() { - return reinterpret_cast( - &_SpinRequest_default_instance_); + static inline const SetVelocityResponse* internal_default_instance() { + return reinterpret_cast( + &_SetVelocityResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 2; + 9; - friend void swap(SpinRequest& a, SpinRequest& b) { + friend void swap(SetVelocityResponse& a, SetVelocityResponse& b) { a.Swap(&b); } - inline void Swap(SpinRequest* other) { + inline void Swap(SetVelocityResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SpinRequest* other) { + void UnsafeArenaSwap(SetVelocityResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SpinRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SetVelocityResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SpinRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SpinRequest& from) { - SpinRequest::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const SetVelocityResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const SetVelocityResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SpinRequest* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.base.v1.SpinRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.base.v1.SetVelocityResponse"; } protected: - explicit SpinRequest(::google::protobuf::Arena* arena); - SpinRequest(::google::protobuf::Arena* arena, const SpinRequest& from); + explicit SetVelocityResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kNameFieldNumber = 1, - kExtraFieldNumber = 99, - kAngleDegFieldNumber = 2, - kDegsPerSecFieldNumber = 3, - }; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - - public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - - public: - // double angle_deg = 2 [json_name = "angleDeg"]; - void clear_angle_deg() ; - double angle_deg() const; - void set_angle_deg(double value); - - private: - double _internal_angle_deg() const; - void _internal_set_angle_deg(double value); - - public: - // double degs_per_sec = 3 [json_name = "degsPerSec"]; - void clear_degs_per_sec() ; - double degs_per_sec() const; - void set_degs_per_sec(double value); - - private: - double _internal_degs_per_sec() const; - void _internal_set_degs_per_sec(double value); - - public: - // @@protoc_insertion_point(class_scope:viam.component.base.v1.SpinRequest) + // @@protoc_insertion_point(class_scope:viam.component.base.v1.SetVelocityResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 1, - 47, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - double angle_deg_; - double degs_per_sec_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_component_2fbase_2fv1_2fbase_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SetVelocityRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.base.v1.SetVelocityRequest) */ { - public: - inline SetVelocityRequest() : SetVelocityRequest(nullptr) {} - ~SetVelocityRequest() override; - template - explicit PROTOBUF_CONSTEXPR SetVelocityRequest(::google::protobuf::internal::ConstantInitialized); +class IsMovingRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.base.v1.IsMovingRequest) */ { + public: + inline IsMovingRequest() : IsMovingRequest(nullptr) {} + ~IsMovingRequest() override; + explicit PROTOBUF_CONSTEXPR IsMovingRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline SetVelocityRequest(const SetVelocityRequest& from) - : SetVelocityRequest(nullptr, from) {} - SetVelocityRequest(SetVelocityRequest&& from) noexcept - : SetVelocityRequest() { + IsMovingRequest(const IsMovingRequest& from); + IsMovingRequest(IsMovingRequest&& from) noexcept + : IsMovingRequest() { *this = ::std::move(from); } - inline SetVelocityRequest& operator=(const SetVelocityRequest& from) { + inline IsMovingRequest& operator=(const IsMovingRequest& from) { CopyFrom(from); return *this; } - inline SetVelocityRequest& operator=(SetVelocityRequest&& from) noexcept { + inline IsMovingRequest& operator=(IsMovingRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1814,99 +1696,88 @@ class SetVelocityRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SetVelocityRequest& default_instance() { + static const IsMovingRequest& default_instance() { return *internal_default_instance(); } - static inline const SetVelocityRequest* internal_default_instance() { - return reinterpret_cast( - &_SetVelocityRequest_default_instance_); + static inline const IsMovingRequest* internal_default_instance() { + return reinterpret_cast( + &_IsMovingRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 8; + 10; - friend void swap(SetVelocityRequest& a, SetVelocityRequest& b) { + friend void swap(IsMovingRequest& a, IsMovingRequest& b) { a.Swap(&b); } - inline void Swap(SetVelocityRequest* other) { + inline void Swap(IsMovingRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SetVelocityRequest* other) { + void UnsafeArenaSwap(IsMovingRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SetVelocityRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SetVelocityRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SetVelocityRequest& from) { - SetVelocityRequest::MergeImpl(*this, from); + IsMovingRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const IsMovingRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const IsMovingRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(SetVelocityRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(IsMovingRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.base.v1.SetVelocityRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.base.v1.IsMovingRequest"; } protected: - explicit SetVelocityRequest(::google::protobuf::Arena* arena); - SetVelocityRequest(::google::protobuf::Arena* arena, const SetVelocityRequest& from); + explicit IsMovingRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1914,130 +1785,56 @@ class SetVelocityRequest final : enum : int { kNameFieldNumber = 1, - kLinearFieldNumber = 2, - kAngularFieldNumber = 3, - kExtraFieldNumber = 99, }; // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); std::string* _internal_mutable_name(); - - public: - // .viam.common.v1.Vector3 linear = 2 [json_name = "linear"]; - bool has_linear() const; - void clear_linear() ; - const ::viam::common::v1::Vector3& linear() const; - PROTOBUF_NODISCARD ::viam::common::v1::Vector3* release_linear(); - ::viam::common::v1::Vector3* mutable_linear(); - void set_allocated_linear(::viam::common::v1::Vector3* value); - void unsafe_arena_set_allocated_linear(::viam::common::v1::Vector3* value); - ::viam::common::v1::Vector3* unsafe_arena_release_linear(); - - private: - const ::viam::common::v1::Vector3& _internal_linear() const; - ::viam::common::v1::Vector3* _internal_mutable_linear(); - - public: - // .viam.common.v1.Vector3 angular = 3 [json_name = "angular"]; - bool has_angular() const; - void clear_angular() ; - const ::viam::common::v1::Vector3& angular() const; - PROTOBUF_NODISCARD ::viam::common::v1::Vector3* release_angular(); - ::viam::common::v1::Vector3* mutable_angular(); - void set_allocated_angular(::viam::common::v1::Vector3* value); - void unsafe_arena_set_allocated_angular(::viam::common::v1::Vector3* value); - ::viam::common::v1::Vector3* unsafe_arena_release_angular(); - - private: - const ::viam::common::v1::Vector3& _internal_angular() const; - ::viam::common::v1::Vector3* _internal_mutable_angular(); - public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - public: - // @@protoc_insertion_point(class_scope:viam.component.base.v1.SetVelocityRequest) + // @@protoc_insertion_point(class_scope:viam.component.base.v1.IsMovingRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 3, - 54, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::viam::common::v1::Vector3* linear_; - ::viam::common::v1::Vector3* angular_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fbase_2fv1_2fbase_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SetPowerRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.base.v1.SetPowerRequest) */ { +class IsMovingResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.base.v1.IsMovingResponse) */ { public: - inline SetPowerRequest() : SetPowerRequest(nullptr) {} - ~SetPowerRequest() override; - template - explicit PROTOBUF_CONSTEXPR SetPowerRequest(::google::protobuf::internal::ConstantInitialized); + inline IsMovingResponse() : IsMovingResponse(nullptr) {} + ~IsMovingResponse() override; + explicit PROTOBUF_CONSTEXPR IsMovingResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline SetPowerRequest(const SetPowerRequest& from) - : SetPowerRequest(nullptr, from) {} - SetPowerRequest(SetPowerRequest&& from) noexcept - : SetPowerRequest() { + IsMovingResponse(const IsMovingResponse& from); + IsMovingResponse(IsMovingResponse&& from) noexcept + : IsMovingResponse() { *this = ::std::move(from); } - inline SetPowerRequest& operator=(const SetPowerRequest& from) { + inline IsMovingResponse& operator=(const IsMovingResponse& from) { CopyFrom(from); return *this; } - inline SetPowerRequest& operator=(SetPowerRequest&& from) noexcept { + inline IsMovingResponse& operator=(IsMovingResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2047,230 +1844,140 @@ class SetPowerRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SetPowerRequest& default_instance() { + static const IsMovingResponse& default_instance() { return *internal_default_instance(); } - static inline const SetPowerRequest* internal_default_instance() { - return reinterpret_cast( - &_SetPowerRequest_default_instance_); + static inline const IsMovingResponse* internal_default_instance() { + return reinterpret_cast( + &_IsMovingResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 6; + 11; - friend void swap(SetPowerRequest& a, SetPowerRequest& b) { + friend void swap(IsMovingResponse& a, IsMovingResponse& b) { a.Swap(&b); } - inline void Swap(SetPowerRequest* other) { + inline void Swap(IsMovingResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SetPowerRequest* other) { + void UnsafeArenaSwap(IsMovingResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SetPowerRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SetPowerRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SetPowerRequest& from) { - SetPowerRequest::MergeImpl(*this, from); + IsMovingResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const IsMovingResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const IsMovingResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(SetPowerRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(IsMovingResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.base.v1.SetPowerRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.base.v1.IsMovingResponse"; } protected: - explicit SetPowerRequest(::google::protobuf::Arena* arena); - SetPowerRequest(::google::protobuf::Arena* arena, const SetPowerRequest& from); + explicit IsMovingResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kNameFieldNumber = 1, - kLinearFieldNumber = 2, - kAngularFieldNumber = 3, - kExtraFieldNumber = 99, + kIsMovingFieldNumber = 1, }; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - - public: - // .viam.common.v1.Vector3 linear = 2 [json_name = "linear"]; - bool has_linear() const; - void clear_linear() ; - const ::viam::common::v1::Vector3& linear() const; - PROTOBUF_NODISCARD ::viam::common::v1::Vector3* release_linear(); - ::viam::common::v1::Vector3* mutable_linear(); - void set_allocated_linear(::viam::common::v1::Vector3* value); - void unsafe_arena_set_allocated_linear(::viam::common::v1::Vector3* value); - ::viam::common::v1::Vector3* unsafe_arena_release_linear(); - - private: - const ::viam::common::v1::Vector3& _internal_linear() const; - ::viam::common::v1::Vector3* _internal_mutable_linear(); - - public: - // .viam.common.v1.Vector3 angular = 3 [json_name = "angular"]; - bool has_angular() const; - void clear_angular() ; - const ::viam::common::v1::Vector3& angular() const; - PROTOBUF_NODISCARD ::viam::common::v1::Vector3* release_angular(); - ::viam::common::v1::Vector3* mutable_angular(); - void set_allocated_angular(::viam::common::v1::Vector3* value); - void unsafe_arena_set_allocated_angular(::viam::common::v1::Vector3* value); - ::viam::common::v1::Vector3* unsafe_arena_release_angular(); - + // bool is_moving = 1 [json_name = "isMoving"]; + void clear_is_moving(); + bool is_moving() const; + void set_is_moving(bool value); private: - const ::viam::common::v1::Vector3& _internal_angular() const; - ::viam::common::v1::Vector3* _internal_mutable_angular(); - + bool _internal_is_moving() const; + void _internal_set_is_moving(bool value); public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - - public: - // @@protoc_insertion_point(class_scope:viam.component.base.v1.SetPowerRequest) + // @@protoc_insertion_point(class_scope:viam.component.base.v1.IsMovingResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 3, - 51, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::viam::common::v1::Vector3* linear_; - ::viam::common::v1::Vector3* angular_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + bool is_moving_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fbase_2fv1_2fbase_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class MoveStraightRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.base.v1.MoveStraightRequest) */ { +class GetPropertiesRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.base.v1.GetPropertiesRequest) */ { public: - inline MoveStraightRequest() : MoveStraightRequest(nullptr) {} - ~MoveStraightRequest() override; - template - explicit PROTOBUF_CONSTEXPR MoveStraightRequest(::google::protobuf::internal::ConstantInitialized); + inline GetPropertiesRequest() : GetPropertiesRequest(nullptr) {} + ~GetPropertiesRequest() override; + explicit PROTOBUF_CONSTEXPR GetPropertiesRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline MoveStraightRequest(const MoveStraightRequest& from) - : MoveStraightRequest(nullptr, from) {} - MoveStraightRequest(MoveStraightRequest&& from) noexcept - : MoveStraightRequest() { + GetPropertiesRequest(const GetPropertiesRequest& from); + GetPropertiesRequest(GetPropertiesRequest&& from) noexcept + : GetPropertiesRequest() { *this = ::std::move(from); } - inline MoveStraightRequest& operator=(const MoveStraightRequest& from) { + inline GetPropertiesRequest& operator=(const GetPropertiesRequest& from) { CopyFrom(from); return *this; } - inline MoveStraightRequest& operator=(MoveStraightRequest&& from) noexcept { + inline GetPropertiesRequest& operator=(GetPropertiesRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2280,99 +1987,88 @@ class MoveStraightRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MoveStraightRequest& default_instance() { + static const GetPropertiesRequest& default_instance() { return *internal_default_instance(); } - static inline const MoveStraightRequest* internal_default_instance() { - return reinterpret_cast( - &_MoveStraightRequest_default_instance_); + static inline const GetPropertiesRequest* internal_default_instance() { + return reinterpret_cast( + &_GetPropertiesRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 0; + 12; - friend void swap(MoveStraightRequest& a, MoveStraightRequest& b) { + friend void swap(GetPropertiesRequest& a, GetPropertiesRequest& b) { a.Swap(&b); } - inline void Swap(MoveStraightRequest* other) { + inline void Swap(GetPropertiesRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MoveStraightRequest* other) { + void UnsafeArenaSwap(GetPropertiesRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MoveStraightRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const MoveStraightRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const MoveStraightRequest& from) { - MoveStraightRequest::MergeImpl(*this, from); + GetPropertiesRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPropertiesRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetPropertiesRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(MoveStraightRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetPropertiesRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.base.v1.MoveStraightRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.base.v1.GetPropertiesRequest"; } protected: - explicit MoveStraightRequest(::google::protobuf::Arena* arena); - MoveStraightRequest(::google::protobuf::Arena* arena, const MoveStraightRequest& from); + explicit GetPropertiesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -2381,497 +2077,399 @@ class MoveStraightRequest final : enum : int { kNameFieldNumber = 1, kExtraFieldNumber = 99, - kDistanceMmFieldNumber = 2, - kMmPerSecFieldNumber = 3, }; // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + 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; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - + bool _internal_has_extra() const; public: - // int64 distance_mm = 2 [json_name = "distanceMm"]; - void clear_distance_mm() ; - ::int64_t distance_mm() const; - void set_distance_mm(::int64_t value); - + 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: - ::int64_t _internal_distance_mm() const; - void _internal_set_distance_mm(::int64_t value); - + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_extra() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_extra(); public: - // double mm_per_sec = 3 [json_name = "mmPerSec"]; - void clear_mm_per_sec() ; - double mm_per_sec() const; - void set_mm_per_sec(double value); - - private: - double _internal_mm_per_sec() const; - void _internal_set_mm_per_sec(double value); + void unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_extra(); - public: - // @@protoc_insertion_point(class_scope:viam.component.base.v1.MoveStraightRequest) + // @@protoc_insertion_point(class_scope:viam.component.base.v1.GetPropertiesRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 1, - 55, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - ::int64_t distance_mm_; - double mm_per_sec_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + 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_2fbase_2fv1_2fbase_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetPropertiesRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.base.v1.GetPropertiesRequest) */ { +class GetPropertiesResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.base.v1.GetPropertiesResponse) */ { public: - inline GetPropertiesRequest() : GetPropertiesRequest(nullptr) {} - ~GetPropertiesRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetPropertiesRequest(::google::protobuf::internal::ConstantInitialized); + inline GetPropertiesResponse() : GetPropertiesResponse(nullptr) {} + ~GetPropertiesResponse() override; + explicit PROTOBUF_CONSTEXPR GetPropertiesResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetPropertiesRequest(const GetPropertiesRequest& from) - : GetPropertiesRequest(nullptr, from) {} - GetPropertiesRequest(GetPropertiesRequest&& from) noexcept - : GetPropertiesRequest() { + GetPropertiesResponse(const GetPropertiesResponse& from); + GetPropertiesResponse(GetPropertiesResponse&& from) noexcept + : GetPropertiesResponse() { *this = ::std::move(from); } - inline GetPropertiesRequest& operator=(const GetPropertiesRequest& from) { + inline GetPropertiesResponse& operator=(const GetPropertiesResponse& from) { CopyFrom(from); return *this; } - inline GetPropertiesRequest& operator=(GetPropertiesRequest&& from) noexcept { + inline GetPropertiesResponse& operator=(GetPropertiesResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + return *this; } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetPropertiesRequest& default_instance() { + static const GetPropertiesResponse& default_instance() { return *internal_default_instance(); } - static inline const GetPropertiesRequest* internal_default_instance() { - return reinterpret_cast( - &_GetPropertiesRequest_default_instance_); + static inline const GetPropertiesResponse* internal_default_instance() { + return reinterpret_cast( + &_GetPropertiesResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 12; + 13; - friend void swap(GetPropertiesRequest& a, GetPropertiesRequest& b) { + friend void swap(GetPropertiesResponse& a, GetPropertiesResponse& b) { a.Swap(&b); } - inline void Swap(GetPropertiesRequest* other) { + inline void Swap(GetPropertiesResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetPropertiesRequest* other) { + void UnsafeArenaSwap(GetPropertiesResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetPropertiesRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetPropertiesRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetPropertiesRequest& from) { - GetPropertiesRequest::MergeImpl(*this, from); + GetPropertiesResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPropertiesResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetPropertiesResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetPropertiesRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetPropertiesResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.base.v1.GetPropertiesRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.base.v1.GetPropertiesResponse"; } protected: - explicit GetPropertiesRequest(::google::protobuf::Arena* arena); - GetPropertiesRequest(::google::protobuf::Arena* arena, const GetPropertiesRequest& from); + explicit GetPropertiesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kNameFieldNumber = 1, - kExtraFieldNumber = 99, + kWidthMetersFieldNumber = 1, + kTurningRadiusMetersFieldNumber = 2, + kWheelCircumferenceMetersFieldNumber = 3, }; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + // double width_meters = 1 [json_name = "widthMeters"]; + void clear_width_meters(); + double width_meters() const; + void set_width_meters(double value); private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - + double _internal_width_meters() const; + void _internal_set_width_meters(double value); public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); + // double turning_radius_meters = 2 [json_name = "turningRadiusMeters"]; + void clear_turning_radius_meters(); + double turning_radius_meters() const; + void set_turning_radius_meters(double value); private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); + double _internal_turning_radius_meters() const; + void _internal_set_turning_radius_meters(double value); + public: + // double wheel_circumference_meters = 3 [json_name = "wheelCircumferenceMeters"]; + void clear_wheel_circumference_meters(); + double wheel_circumference_meters() const; + void set_wheel_circumference_meters(double value); + private: + double _internal_wheel_circumference_meters() const; + void _internal_set_wheel_circumference_meters(double value); public: - // @@protoc_insertion_point(class_scope:viam.component.base.v1.GetPropertiesRequest) + + // @@protoc_insertion_point(class_scope:viam.component.base.v1.GetPropertiesResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 2, 1, - 56, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + double width_meters_; + double turning_radius_meters_; + double wheel_circumference_meters_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fbase_2fv1_2fbase_2eproto; }; - // =================================================================== - - // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ -// ------------------------------------------------------------------- - // MoveStraightRequest // string name = 1 [json_name = "name"]; inline void MoveStraightRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& MoveStraightRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& MoveStraightRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.base.v1.MoveStraightRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void MoveStraightRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void MoveStraightRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.base.v1.MoveStraightRequest.name) } -inline std::string* MoveStraightRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* MoveStraightRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.base.v1.MoveStraightRequest.name) return _s; } inline const std::string& MoveStraightRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void MoveStraightRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* MoveStraightRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* MoveStraightRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.base.v1.MoveStraightRequest.name) - return _impl_.name_.Release(); -} -inline void MoveStraightRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void MoveStraightRequest::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.base.v1.MoveStraightRequest.name) } // int64 distance_mm = 2 [json_name = "distanceMm"]; inline void MoveStraightRequest::clear_distance_mm() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.distance_mm_ = ::int64_t{0}; + distance_mm_ = int64_t{0}; +} +inline int64_t MoveStraightRequest::_internal_distance_mm() const { + return distance_mm_; } -inline ::int64_t MoveStraightRequest::distance_mm() const { +inline int64_t MoveStraightRequest::distance_mm() const { // @@protoc_insertion_point(field_get:viam.component.base.v1.MoveStraightRequest.distance_mm) return _internal_distance_mm(); } -inline void MoveStraightRequest::set_distance_mm(::int64_t value) { +inline void MoveStraightRequest::_internal_set_distance_mm(int64_t value) { + + distance_mm_ = value; +} +inline void MoveStraightRequest::set_distance_mm(int64_t value) { _internal_set_distance_mm(value); // @@protoc_insertion_point(field_set:viam.component.base.v1.MoveStraightRequest.distance_mm) } -inline ::int64_t MoveStraightRequest::_internal_distance_mm() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.distance_mm_; -} -inline void MoveStraightRequest::_internal_set_distance_mm(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.distance_mm_ = value; -} // double mm_per_sec = 3 [json_name = "mmPerSec"]; inline void MoveStraightRequest::clear_mm_per_sec() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.mm_per_sec_ = 0; + mm_per_sec_ = 0; +} +inline double MoveStraightRequest::_internal_mm_per_sec() const { + return mm_per_sec_; } inline double MoveStraightRequest::mm_per_sec() const { // @@protoc_insertion_point(field_get:viam.component.base.v1.MoveStraightRequest.mm_per_sec) return _internal_mm_per_sec(); } +inline void MoveStraightRequest::_internal_set_mm_per_sec(double value) { + + mm_per_sec_ = value; +} inline void MoveStraightRequest::set_mm_per_sec(double value) { _internal_set_mm_per_sec(value); // @@protoc_insertion_point(field_set:viam.component.base.v1.MoveStraightRequest.mm_per_sec) } -inline double MoveStraightRequest::_internal_mm_per_sec() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.mm_per_sec_; -} -inline void MoveStraightRequest::_internal_set_mm_per_sec(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.mm_per_sec_ = value; -} // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool MoveStraightRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool MoveStraightRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& MoveStraightRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& MoveStraightRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& MoveStraightRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& MoveStraightRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.base.v1.MoveStraightRequest.extra) return _internal_extra(); } -inline void MoveStraightRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void MoveStraightRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.base.v1.MoveStraightRequest.extra) } -inline ::google::protobuf::Struct* MoveStraightRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveStraightRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* MoveStraightRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveStraightRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.base.v1.MoveStraightRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* MoveStraightRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveStraightRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* MoveStraightRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveStraightRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.base.v1.MoveStraightRequest.extra) return _msg; } -inline void MoveStraightRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void MoveStraightRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.base.v1.MoveStraightRequest.extra) } @@ -2885,191 +2483,176 @@ inline void MoveStraightRequest::set_allocated_extra(::google::protobuf::Struct* // string name = 1 [json_name = "name"]; inline void SpinRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& SpinRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& SpinRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.base.v1.SpinRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void SpinRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void SpinRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.base.v1.SpinRequest.name) } -inline std::string* SpinRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* SpinRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.base.v1.SpinRequest.name) return _s; } inline const std::string& SpinRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void SpinRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* SpinRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* SpinRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.base.v1.SpinRequest.name) - return _impl_.name_.Release(); -} -inline void SpinRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void SpinRequest::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.base.v1.SpinRequest.name) } // double angle_deg = 2 [json_name = "angleDeg"]; inline void SpinRequest::clear_angle_deg() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.angle_deg_ = 0; + angle_deg_ = 0; +} +inline double SpinRequest::_internal_angle_deg() const { + return angle_deg_; } inline double SpinRequest::angle_deg() const { // @@protoc_insertion_point(field_get:viam.component.base.v1.SpinRequest.angle_deg) return _internal_angle_deg(); } +inline void SpinRequest::_internal_set_angle_deg(double value) { + + angle_deg_ = value; +} inline void SpinRequest::set_angle_deg(double value) { _internal_set_angle_deg(value); // @@protoc_insertion_point(field_set:viam.component.base.v1.SpinRequest.angle_deg) } -inline double SpinRequest::_internal_angle_deg() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.angle_deg_; -} -inline void SpinRequest::_internal_set_angle_deg(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.angle_deg_ = value; -} // double degs_per_sec = 3 [json_name = "degsPerSec"]; inline void SpinRequest::clear_degs_per_sec() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.degs_per_sec_ = 0; + degs_per_sec_ = 0; +} +inline double SpinRequest::_internal_degs_per_sec() const { + return degs_per_sec_; } inline double SpinRequest::degs_per_sec() const { // @@protoc_insertion_point(field_get:viam.component.base.v1.SpinRequest.degs_per_sec) return _internal_degs_per_sec(); } +inline void SpinRequest::_internal_set_degs_per_sec(double value) { + + degs_per_sec_ = value; +} inline void SpinRequest::set_degs_per_sec(double value) { _internal_set_degs_per_sec(value); // @@protoc_insertion_point(field_set:viam.component.base.v1.SpinRequest.degs_per_sec) } -inline double SpinRequest::_internal_degs_per_sec() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.degs_per_sec_; -} -inline void SpinRequest::_internal_set_degs_per_sec(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.degs_per_sec_ = value; -} // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool SpinRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool SpinRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& SpinRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& SpinRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& SpinRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& SpinRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.base.v1.SpinRequest.extra) return _internal_extra(); } -inline void SpinRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void SpinRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.base.v1.SpinRequest.extra) } -inline ::google::protobuf::Struct* SpinRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* SpinRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* SpinRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* SpinRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.base.v1.SpinRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* SpinRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* SpinRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* SpinRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* SpinRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.base.v1.SpinRequest.extra) return _msg; } -inline void SpinRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void SpinRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.base.v1.SpinRequest.extra) } @@ -3083,145 +2666,136 @@ inline void SpinRequest::set_allocated_extra(::google::protobuf::Struct* value) // string name = 1 [json_name = "name"]; inline void StopRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& StopRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& StopRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.base.v1.StopRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void StopRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void StopRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.base.v1.StopRequest.name) } -inline std::string* StopRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* StopRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.base.v1.StopRequest.name) return _s; } inline const std::string& StopRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void StopRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* StopRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* StopRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.base.v1.StopRequest.name) - return _impl_.name_.Release(); -} -inline void StopRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void StopRequest::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.base.v1.StopRequest.name) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool StopRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool StopRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& StopRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& StopRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& StopRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& StopRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.base.v1.StopRequest.extra) return _internal_extra(); } -inline void StopRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void StopRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.base.v1.StopRequest.extra) } -inline ::google::protobuf::Struct* StopRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* StopRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* StopRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* StopRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.base.v1.StopRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* StopRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* StopRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* StopRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* StopRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.base.v1.StopRequest.extra) return _msg; } -inline void StopRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void StopRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.base.v1.StopRequest.extra) } @@ -3235,327 +2809,306 @@ inline void StopRequest::set_allocated_extra(::google::protobuf::Struct* value) // string name = 1 [json_name = "name"]; inline void SetPowerRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& SetPowerRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& SetPowerRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.base.v1.SetPowerRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void SetPowerRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void SetPowerRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.base.v1.SetPowerRequest.name) } -inline std::string* SetPowerRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* SetPowerRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.base.v1.SetPowerRequest.name) return _s; } inline const std::string& SetPowerRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void SetPowerRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* SetPowerRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* SetPowerRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.base.v1.SetPowerRequest.name) - return _impl_.name_.Release(); -} -inline void SetPowerRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void SetPowerRequest::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.base.v1.SetPowerRequest.name) } // .viam.common.v1.Vector3 linear = 2 [json_name = "linear"]; +inline bool SetPowerRequest::_internal_has_linear() const { + return this != internal_default_instance() && linear_ != nullptr; +} inline bool SetPowerRequest::has_linear() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.linear_ != nullptr); - return value; + return _internal_has_linear(); } inline const ::viam::common::v1::Vector3& SetPowerRequest::_internal_linear() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::common::v1::Vector3* p = _impl_.linear_; - return p != nullptr ? *p : reinterpret_cast(::viam::common::v1::_Vector3_default_instance_); + const ::viam::common::v1::Vector3* p = linear_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_Vector3_default_instance_); } -inline const ::viam::common::v1::Vector3& SetPowerRequest::linear() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::Vector3& SetPowerRequest::linear() const { // @@protoc_insertion_point(field_get:viam.component.base.v1.SetPowerRequest.linear) return _internal_linear(); } -inline void SetPowerRequest::unsafe_arena_set_allocated_linear(::viam::common::v1::Vector3* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.linear_); +inline void SetPowerRequest::unsafe_arena_set_allocated_linear( + ::viam::common::v1::Vector3* linear) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(linear_); } - _impl_.linear_ = reinterpret_cast<::viam::common::v1::Vector3*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + linear_ = linear; + if (linear) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.base.v1.SetPowerRequest.linear) } inline ::viam::common::v1::Vector3* SetPowerRequest::release_linear() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::Vector3* released = _impl_.linear_; - _impl_.linear_ = nullptr; + + ::viam::common::v1::Vector3* temp = linear_; + linear_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::common::v1::Vector3* SetPowerRequest::unsafe_arena_release_linear() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.base.v1.SetPowerRequest.linear) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::Vector3* temp = _impl_.linear_; - _impl_.linear_ = nullptr; + + ::viam::common::v1::Vector3* temp = linear_; + linear_ = nullptr; return temp; } inline ::viam::common::v1::Vector3* SetPowerRequest::_internal_mutable_linear() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.linear_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::Vector3>(GetArena()); - _impl_.linear_ = reinterpret_cast<::viam::common::v1::Vector3*>(p); + + if (linear_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::Vector3>(GetArenaForAllocation()); + linear_ = p; } - return _impl_.linear_; + return linear_; } -inline ::viam::common::v1::Vector3* SetPowerRequest::mutable_linear() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::Vector3* SetPowerRequest::mutable_linear() { ::viam::common::v1::Vector3* _msg = _internal_mutable_linear(); // @@protoc_insertion_point(field_mutable:viam.component.base.v1.SetPowerRequest.linear) return _msg; } -inline void SetPowerRequest::set_allocated_linear(::viam::common::v1::Vector3* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void SetPowerRequest::set_allocated_linear(::viam::common::v1::Vector3* linear) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.linear_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(linear_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (linear) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(linear)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + linear = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, linear, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.linear_ = reinterpret_cast<::viam::common::v1::Vector3*>(value); + linear_ = linear; // @@protoc_insertion_point(field_set_allocated:viam.component.base.v1.SetPowerRequest.linear) } // .viam.common.v1.Vector3 angular = 3 [json_name = "angular"]; +inline bool SetPowerRequest::_internal_has_angular() const { + return this != internal_default_instance() && angular_ != nullptr; +} inline bool SetPowerRequest::has_angular() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.angular_ != nullptr); - return value; + return _internal_has_angular(); } inline const ::viam::common::v1::Vector3& SetPowerRequest::_internal_angular() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::common::v1::Vector3* p = _impl_.angular_; - return p != nullptr ? *p : reinterpret_cast(::viam::common::v1::_Vector3_default_instance_); + const ::viam::common::v1::Vector3* p = angular_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_Vector3_default_instance_); } -inline const ::viam::common::v1::Vector3& SetPowerRequest::angular() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::Vector3& SetPowerRequest::angular() const { // @@protoc_insertion_point(field_get:viam.component.base.v1.SetPowerRequest.angular) return _internal_angular(); } -inline void SetPowerRequest::unsafe_arena_set_allocated_angular(::viam::common::v1::Vector3* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.angular_); +inline void SetPowerRequest::unsafe_arena_set_allocated_angular( + ::viam::common::v1::Vector3* angular) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(angular_); } - _impl_.angular_ = reinterpret_cast<::viam::common::v1::Vector3*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + angular_ = angular; + if (angular) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.base.v1.SetPowerRequest.angular) } inline ::viam::common::v1::Vector3* SetPowerRequest::release_angular() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::viam::common::v1::Vector3* released = _impl_.angular_; - _impl_.angular_ = nullptr; + + ::viam::common::v1::Vector3* temp = angular_; + angular_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::common::v1::Vector3* SetPowerRequest::unsafe_arena_release_angular() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.base.v1.SetPowerRequest.angular) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::viam::common::v1::Vector3* temp = _impl_.angular_; - _impl_.angular_ = nullptr; + + ::viam::common::v1::Vector3* temp = angular_; + angular_ = nullptr; return temp; } inline ::viam::common::v1::Vector3* SetPowerRequest::_internal_mutable_angular() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.angular_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::Vector3>(GetArena()); - _impl_.angular_ = reinterpret_cast<::viam::common::v1::Vector3*>(p); + + if (angular_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::Vector3>(GetArenaForAllocation()); + angular_ = p; } - return _impl_.angular_; + return angular_; } -inline ::viam::common::v1::Vector3* SetPowerRequest::mutable_angular() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::Vector3* SetPowerRequest::mutable_angular() { ::viam::common::v1::Vector3* _msg = _internal_mutable_angular(); // @@protoc_insertion_point(field_mutable:viam.component.base.v1.SetPowerRequest.angular) return _msg; } -inline void SetPowerRequest::set_allocated_angular(::viam::common::v1::Vector3* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void SetPowerRequest::set_allocated_angular(::viam::common::v1::Vector3* angular) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.angular_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(angular_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (angular) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(angular)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + angular = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, angular, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.angular_ = reinterpret_cast<::viam::common::v1::Vector3*>(value); + angular_ = angular; // @@protoc_insertion_point(field_set_allocated:viam.component.base.v1.SetPowerRequest.angular) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool SetPowerRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool SetPowerRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& SetPowerRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& SetPowerRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& SetPowerRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& SetPowerRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.base.v1.SetPowerRequest.extra) return _internal_extra(); } -inline void SetPowerRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void SetPowerRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000004u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000004u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.base.v1.SetPowerRequest.extra) } -inline ::google::protobuf::Struct* SetPowerRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000004u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetPowerRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* SetPowerRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetPowerRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.base.v1.SetPowerRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000004u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* SetPowerRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetPowerRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* SetPowerRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetPowerRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.base.v1.SetPowerRequest.extra) return _msg; } -inline void SetPowerRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void SetPowerRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000004u; + } else { - _impl_._has_bits_[0] &= ~0x00000004u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.base.v1.SetPowerRequest.extra) } @@ -3569,327 +3122,306 @@ inline void SetPowerRequest::set_allocated_extra(::google::protobuf::Struct* val // string name = 1 [json_name = "name"]; inline void SetVelocityRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& SetVelocityRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& SetVelocityRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.base.v1.SetVelocityRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void SetVelocityRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void SetVelocityRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.base.v1.SetVelocityRequest.name) } -inline std::string* SetVelocityRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* SetVelocityRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.base.v1.SetVelocityRequest.name) return _s; } inline const std::string& SetVelocityRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void SetVelocityRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* SetVelocityRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* SetVelocityRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.base.v1.SetVelocityRequest.name) - return _impl_.name_.Release(); -} -inline void SetVelocityRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void SetVelocityRequest::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.base.v1.SetVelocityRequest.name) } // .viam.common.v1.Vector3 linear = 2 [json_name = "linear"]; +inline bool SetVelocityRequest::_internal_has_linear() const { + return this != internal_default_instance() && linear_ != nullptr; +} inline bool SetVelocityRequest::has_linear() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.linear_ != nullptr); - return value; + return _internal_has_linear(); } inline const ::viam::common::v1::Vector3& SetVelocityRequest::_internal_linear() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::common::v1::Vector3* p = _impl_.linear_; - return p != nullptr ? *p : reinterpret_cast(::viam::common::v1::_Vector3_default_instance_); + const ::viam::common::v1::Vector3* p = linear_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_Vector3_default_instance_); } -inline const ::viam::common::v1::Vector3& SetVelocityRequest::linear() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::Vector3& SetVelocityRequest::linear() const { // @@protoc_insertion_point(field_get:viam.component.base.v1.SetVelocityRequest.linear) return _internal_linear(); } -inline void SetVelocityRequest::unsafe_arena_set_allocated_linear(::viam::common::v1::Vector3* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.linear_); +inline void SetVelocityRequest::unsafe_arena_set_allocated_linear( + ::viam::common::v1::Vector3* linear) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(linear_); } - _impl_.linear_ = reinterpret_cast<::viam::common::v1::Vector3*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + linear_ = linear; + if (linear) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.base.v1.SetVelocityRequest.linear) } inline ::viam::common::v1::Vector3* SetVelocityRequest::release_linear() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::Vector3* released = _impl_.linear_; - _impl_.linear_ = nullptr; + + ::viam::common::v1::Vector3* temp = linear_; + linear_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::common::v1::Vector3* SetVelocityRequest::unsafe_arena_release_linear() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.base.v1.SetVelocityRequest.linear) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::Vector3* temp = _impl_.linear_; - _impl_.linear_ = nullptr; + + ::viam::common::v1::Vector3* temp = linear_; + linear_ = nullptr; return temp; } inline ::viam::common::v1::Vector3* SetVelocityRequest::_internal_mutable_linear() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.linear_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::Vector3>(GetArena()); - _impl_.linear_ = reinterpret_cast<::viam::common::v1::Vector3*>(p); + + if (linear_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::Vector3>(GetArenaForAllocation()); + linear_ = p; } - return _impl_.linear_; + return linear_; } -inline ::viam::common::v1::Vector3* SetVelocityRequest::mutable_linear() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::Vector3* SetVelocityRequest::mutable_linear() { ::viam::common::v1::Vector3* _msg = _internal_mutable_linear(); // @@protoc_insertion_point(field_mutable:viam.component.base.v1.SetVelocityRequest.linear) return _msg; } -inline void SetVelocityRequest::set_allocated_linear(::viam::common::v1::Vector3* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void SetVelocityRequest::set_allocated_linear(::viam::common::v1::Vector3* linear) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.linear_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(linear_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (linear) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(linear)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + linear = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, linear, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.linear_ = reinterpret_cast<::viam::common::v1::Vector3*>(value); + linear_ = linear; // @@protoc_insertion_point(field_set_allocated:viam.component.base.v1.SetVelocityRequest.linear) } // .viam.common.v1.Vector3 angular = 3 [json_name = "angular"]; +inline bool SetVelocityRequest::_internal_has_angular() const { + return this != internal_default_instance() && angular_ != nullptr; +} inline bool SetVelocityRequest::has_angular() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.angular_ != nullptr); - return value; + return _internal_has_angular(); } inline const ::viam::common::v1::Vector3& SetVelocityRequest::_internal_angular() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::common::v1::Vector3* p = _impl_.angular_; - return p != nullptr ? *p : reinterpret_cast(::viam::common::v1::_Vector3_default_instance_); + const ::viam::common::v1::Vector3* p = angular_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_Vector3_default_instance_); } -inline const ::viam::common::v1::Vector3& SetVelocityRequest::angular() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::Vector3& SetVelocityRequest::angular() const { // @@protoc_insertion_point(field_get:viam.component.base.v1.SetVelocityRequest.angular) return _internal_angular(); } -inline void SetVelocityRequest::unsafe_arena_set_allocated_angular(::viam::common::v1::Vector3* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.angular_); +inline void SetVelocityRequest::unsafe_arena_set_allocated_angular( + ::viam::common::v1::Vector3* angular) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(angular_); } - _impl_.angular_ = reinterpret_cast<::viam::common::v1::Vector3*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + angular_ = angular; + if (angular) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.base.v1.SetVelocityRequest.angular) } inline ::viam::common::v1::Vector3* SetVelocityRequest::release_angular() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::viam::common::v1::Vector3* released = _impl_.angular_; - _impl_.angular_ = nullptr; + + ::viam::common::v1::Vector3* temp = angular_; + angular_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::common::v1::Vector3* SetVelocityRequest::unsafe_arena_release_angular() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.base.v1.SetVelocityRequest.angular) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::viam::common::v1::Vector3* temp = _impl_.angular_; - _impl_.angular_ = nullptr; + + ::viam::common::v1::Vector3* temp = angular_; + angular_ = nullptr; return temp; } inline ::viam::common::v1::Vector3* SetVelocityRequest::_internal_mutable_angular() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.angular_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::Vector3>(GetArena()); - _impl_.angular_ = reinterpret_cast<::viam::common::v1::Vector3*>(p); + + if (angular_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::Vector3>(GetArenaForAllocation()); + angular_ = p; } - return _impl_.angular_; + return angular_; } -inline ::viam::common::v1::Vector3* SetVelocityRequest::mutable_angular() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::Vector3* SetVelocityRequest::mutable_angular() { ::viam::common::v1::Vector3* _msg = _internal_mutable_angular(); // @@protoc_insertion_point(field_mutable:viam.component.base.v1.SetVelocityRequest.angular) return _msg; } -inline void SetVelocityRequest::set_allocated_angular(::viam::common::v1::Vector3* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void SetVelocityRequest::set_allocated_angular(::viam::common::v1::Vector3* angular) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.angular_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(angular_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (angular) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(angular)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + angular = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, angular, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.angular_ = reinterpret_cast<::viam::common::v1::Vector3*>(value); + angular_ = angular; // @@protoc_insertion_point(field_set_allocated:viam.component.base.v1.SetVelocityRequest.angular) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool SetVelocityRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool SetVelocityRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& SetVelocityRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& SetVelocityRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& SetVelocityRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& SetVelocityRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.base.v1.SetVelocityRequest.extra) return _internal_extra(); } -inline void SetVelocityRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void SetVelocityRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000004u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000004u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.base.v1.SetVelocityRequest.extra) } -inline ::google::protobuf::Struct* SetVelocityRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000004u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetVelocityRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* SetVelocityRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetVelocityRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.base.v1.SetVelocityRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000004u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* SetVelocityRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetVelocityRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* SetVelocityRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetVelocityRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.base.v1.SetVelocityRequest.extra) return _msg; } -inline void SetVelocityRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void SetVelocityRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000004u; + } else { - _impl_._has_bits_[0] &= ~0x00000004u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.base.v1.SetVelocityRequest.extra) } @@ -3903,54 +3435,51 @@ inline void SetVelocityRequest::set_allocated_extra(::google::protobuf::Struct* // string name = 1 [json_name = "name"]; inline void IsMovingRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& IsMovingRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& IsMovingRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.base.v1.IsMovingRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void IsMovingRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void IsMovingRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.base.v1.IsMovingRequest.name) } -inline std::string* IsMovingRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* IsMovingRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.base.v1.IsMovingRequest.name) return _s; } inline const std::string& IsMovingRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void IsMovingRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* IsMovingRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* IsMovingRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.base.v1.IsMovingRequest.name) - return _impl_.name_.Release(); -} -inline void IsMovingRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void IsMovingRequest::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.base.v1.IsMovingRequest.name) } @@ -3960,26 +3489,23 @@ inline void IsMovingRequest::set_allocated_name(std::string* value) { // bool is_moving = 1 [json_name = "isMoving"]; inline void IsMovingResponse::clear_is_moving() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.is_moving_ = false; + is_moving_ = false; +} +inline bool IsMovingResponse::_internal_is_moving() const { + return is_moving_; } inline bool IsMovingResponse::is_moving() const { // @@protoc_insertion_point(field_get:viam.component.base.v1.IsMovingResponse.is_moving) return _internal_is_moving(); } +inline void IsMovingResponse::_internal_set_is_moving(bool value) { + + is_moving_ = value; +} inline void IsMovingResponse::set_is_moving(bool value) { _internal_set_is_moving(value); // @@protoc_insertion_point(field_set:viam.component.base.v1.IsMovingResponse.is_moving) } -inline bool IsMovingResponse::_internal_is_moving() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.is_moving_; -} -inline void IsMovingResponse::_internal_set_is_moving(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.is_moving_ = value; -} // ------------------------------------------------------------------- @@ -3987,145 +3513,136 @@ inline void IsMovingResponse::_internal_set_is_moving(bool value) { // string name = 1 [json_name = "name"]; inline void GetPropertiesRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& GetPropertiesRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetPropertiesRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.base.v1.GetPropertiesRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetPropertiesRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetPropertiesRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.base.v1.GetPropertiesRequest.name) } -inline std::string* GetPropertiesRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetPropertiesRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.base.v1.GetPropertiesRequest.name) return _s; } inline const std::string& GetPropertiesRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void GetPropertiesRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* GetPropertiesRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* GetPropertiesRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.base.v1.GetPropertiesRequest.name) - return _impl_.name_.Release(); -} -inline void GetPropertiesRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void GetPropertiesRequest::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.base.v1.GetPropertiesRequest.name) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetPropertiesRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool GetPropertiesRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& GetPropertiesRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetPropertiesRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& GetPropertiesRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetPropertiesRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.base.v1.GetPropertiesRequest.extra) return _internal_extra(); } -inline void GetPropertiesRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void GetPropertiesRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.base.v1.GetPropertiesRequest.extra) } -inline ::google::protobuf::Struct* GetPropertiesRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPropertiesRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* GetPropertiesRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPropertiesRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.base.v1.GetPropertiesRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* GetPropertiesRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPropertiesRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* GetPropertiesRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPropertiesRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.base.v1.GetPropertiesRequest.extra) return _msg; } -inline void GetPropertiesRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetPropertiesRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.base.v1.GetPropertiesRequest.extra) } @@ -4135,86 +3652,102 @@ inline void GetPropertiesRequest::set_allocated_extra(::google::protobuf::Struct // double width_meters = 1 [json_name = "widthMeters"]; inline void GetPropertiesResponse::clear_width_meters() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.width_meters_ = 0; + width_meters_ = 0; +} +inline double GetPropertiesResponse::_internal_width_meters() const { + return width_meters_; } inline double GetPropertiesResponse::width_meters() const { // @@protoc_insertion_point(field_get:viam.component.base.v1.GetPropertiesResponse.width_meters) return _internal_width_meters(); } +inline void GetPropertiesResponse::_internal_set_width_meters(double value) { + + width_meters_ = value; +} inline void GetPropertiesResponse::set_width_meters(double value) { _internal_set_width_meters(value); // @@protoc_insertion_point(field_set:viam.component.base.v1.GetPropertiesResponse.width_meters) } -inline double GetPropertiesResponse::_internal_width_meters() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.width_meters_; -} -inline void GetPropertiesResponse::_internal_set_width_meters(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.width_meters_ = value; -} // double turning_radius_meters = 2 [json_name = "turningRadiusMeters"]; inline void GetPropertiesResponse::clear_turning_radius_meters() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.turning_radius_meters_ = 0; + turning_radius_meters_ = 0; +} +inline double GetPropertiesResponse::_internal_turning_radius_meters() const { + return turning_radius_meters_; } inline double GetPropertiesResponse::turning_radius_meters() const { // @@protoc_insertion_point(field_get:viam.component.base.v1.GetPropertiesResponse.turning_radius_meters) return _internal_turning_radius_meters(); } +inline void GetPropertiesResponse::_internal_set_turning_radius_meters(double value) { + + turning_radius_meters_ = value; +} inline void GetPropertiesResponse::set_turning_radius_meters(double value) { _internal_set_turning_radius_meters(value); // @@protoc_insertion_point(field_set:viam.component.base.v1.GetPropertiesResponse.turning_radius_meters) } -inline double GetPropertiesResponse::_internal_turning_radius_meters() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.turning_radius_meters_; -} -inline void GetPropertiesResponse::_internal_set_turning_radius_meters(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.turning_radius_meters_ = value; -} // double wheel_circumference_meters = 3 [json_name = "wheelCircumferenceMeters"]; inline void GetPropertiesResponse::clear_wheel_circumference_meters() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.wheel_circumference_meters_ = 0; + wheel_circumference_meters_ = 0; +} +inline double GetPropertiesResponse::_internal_wheel_circumference_meters() const { + return wheel_circumference_meters_; } inline double GetPropertiesResponse::wheel_circumference_meters() const { // @@protoc_insertion_point(field_get:viam.component.base.v1.GetPropertiesResponse.wheel_circumference_meters) return _internal_wheel_circumference_meters(); } +inline void GetPropertiesResponse::_internal_set_wheel_circumference_meters(double value) { + + wheel_circumference_meters_ = value; +} inline void GetPropertiesResponse::set_wheel_circumference_meters(double value) { _internal_set_wheel_circumference_meters(value); // @@protoc_insertion_point(field_set:viam.component.base.v1.GetPropertiesResponse.wheel_circumference_meters) } -inline double GetPropertiesResponse::_internal_wheel_circumference_meters() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.wheel_circumference_meters_; -} -inline void GetPropertiesResponse::_internal_set_wheel_circumference_meters(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.wheel_circumference_meters_ = value; -} #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) + } // namespace v1 } // namespace base } // namespace component } // namespace viam - // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_component_2fbase_2fv1_2fbase_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_component_2fbase_2fv1_2fbase_2eproto diff --git a/src/viam/api/component/board/v1/board.grpc.pb.cc b/src/viam/api/component/board/v1/board.grpc.pb.cc index 075f2ee6b..bb7b7df5f 100644 --- a/src/viam/api/component/board/v1/board.grpc.pb.cc +++ b/src/viam/api/component/board/v1/board.grpc.pb.cc @@ -6,19 +6,19 @@ #include "component/board/v1/board.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace component { namespace board { @@ -42,325 +42,385 @@ static const char* BoardService_method_names[] = { std::unique_ptr< BoardService::Stub> BoardService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { (void)options; - std::unique_ptr< BoardService::Stub> stub(new BoardService::Stub(channel, options)); + std::unique_ptr< BoardService::Stub> stub(new BoardService::Stub(channel)); return stub; } -BoardService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) - : channel_(channel), rpcmethod_SetGPIO_(BoardService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetGPIO_(BoardService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_PWM_(BoardService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_SetPWM_(BoardService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_PWMFrequency_(BoardService_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_SetPWMFrequency_(BoardService_method_names[5], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_DoCommand_(BoardService_method_names[6], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_ReadAnalogReader_(BoardService_method_names[7], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_WriteAnalog_(BoardService_method_names[8], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetDigitalInterruptValue_(BoardService_method_names[9], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_StreamTicks_(BoardService_method_names[10], options.suffix_for_stats(),::grpc::internal::RpcMethod::SERVER_STREAMING, channel) - , rpcmethod_SetPowerMode_(BoardService_method_names[11], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetGeometries_(BoardService_method_names[12], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) +BoardService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_SetGPIO_(BoardService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetGPIO_(BoardService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_PWM_(BoardService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_SetPWM_(BoardService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_PWMFrequency_(BoardService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_SetPWMFrequency_(BoardService_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DoCommand_(BoardService_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ReadAnalogReader_(BoardService_method_names[7], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_WriteAnalog_(BoardService_method_names[8], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetDigitalInterruptValue_(BoardService_method_names[9], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_StreamTicks_(BoardService_method_names[10], ::grpc::internal::RpcMethod::SERVER_STREAMING, channel) + , rpcmethod_SetPowerMode_(BoardService_method_names[11], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetGeometries_(BoardService_method_names[12], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status BoardService::Stub::SetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::SetGPIORequest& request, ::viam::component::board::v1::SetGPIOResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::board::v1::SetGPIORequest, ::viam::component::board::v1::SetGPIOResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_SetGPIO_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_SetGPIO_, context, request, response); } -void BoardService::Stub::async::SetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::SetGPIORequest* request, ::viam::component::board::v1::SetGPIOResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::board::v1::SetGPIORequest, ::viam::component::board::v1::SetGPIOResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SetGPIO_, context, request, response, std::move(f)); +void BoardService::Stub::experimental_async::SetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::SetGPIORequest* request, ::viam::component::board::v1::SetGPIOResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SetGPIO_, context, request, response, std::move(f)); } -void BoardService::Stub::async::SetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::SetGPIORequest* request, ::viam::component::board::v1::SetGPIOResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SetGPIO_, context, request, response, reactor); +void BoardService::Stub::experimental_async::SetGPIO(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::SetGPIOResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SetGPIO_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::SetGPIOResponse>* BoardService::Stub::PrepareAsyncSetGPIORaw(::grpc::ClientContext* context, const ::viam::component::board::v1::SetGPIORequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::board::v1::SetGPIOResponse, ::viam::component::board::v1::SetGPIORequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_SetGPIO_, context, request); +void BoardService::Stub::experimental_async::SetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::SetGPIORequest* request, ::viam::component::board::v1::SetGPIOResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SetGPIO_, context, request, response, reactor); +} + +void BoardService::Stub::experimental_async::SetGPIO(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::SetGPIOResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SetGPIO_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::SetGPIOResponse>* BoardService::Stub::AsyncSetGPIORaw(::grpc::ClientContext* context, const ::viam::component::board::v1::SetGPIORequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncSetGPIORaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::board::v1::SetGPIOResponse>::Create(channel_.get(), cq, rpcmethod_SetGPIO_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::SetGPIOResponse>* BoardService::Stub::PrepareAsyncSetGPIORaw(::grpc::ClientContext* context, const ::viam::component::board::v1::SetGPIORequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::board::v1::SetGPIOResponse>::Create(channel_.get(), cq, rpcmethod_SetGPIO_, context, request, false); } ::grpc::Status BoardService::Stub::GetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::GetGPIORequest& request, ::viam::component::board::v1::GetGPIOResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::board::v1::GetGPIORequest, ::viam::component::board::v1::GetGPIOResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetGPIO_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetGPIO_, context, request, response); } -void BoardService::Stub::async::GetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::GetGPIORequest* request, ::viam::component::board::v1::GetGPIOResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::board::v1::GetGPIORequest, ::viam::component::board::v1::GetGPIOResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetGPIO_, context, request, response, std::move(f)); +void BoardService::Stub::experimental_async::GetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::GetGPIORequest* request, ::viam::component::board::v1::GetGPIOResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetGPIO_, context, request, response, std::move(f)); } -void BoardService::Stub::async::GetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::GetGPIORequest* request, ::viam::component::board::v1::GetGPIOResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetGPIO_, context, request, response, reactor); +void BoardService::Stub::experimental_async::GetGPIO(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::GetGPIOResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetGPIO_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::GetGPIOResponse>* BoardService::Stub::PrepareAsyncGetGPIORaw(::grpc::ClientContext* context, const ::viam::component::board::v1::GetGPIORequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::board::v1::GetGPIOResponse, ::viam::component::board::v1::GetGPIORequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetGPIO_, context, request); +void BoardService::Stub::experimental_async::GetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::GetGPIORequest* request, ::viam::component::board::v1::GetGPIOResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetGPIO_, context, request, response, reactor); +} + +void BoardService::Stub::experimental_async::GetGPIO(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::GetGPIOResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetGPIO_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::GetGPIOResponse>* BoardService::Stub::AsyncGetGPIORaw(::grpc::ClientContext* context, const ::viam::component::board::v1::GetGPIORequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetGPIORaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::board::v1::GetGPIOResponse>::Create(channel_.get(), cq, rpcmethod_GetGPIO_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::GetGPIOResponse>* BoardService::Stub::PrepareAsyncGetGPIORaw(::grpc::ClientContext* context, const ::viam::component::board::v1::GetGPIORequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::board::v1::GetGPIOResponse>::Create(channel_.get(), cq, rpcmethod_GetGPIO_, context, request, false); } ::grpc::Status BoardService::Stub::PWM(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMRequest& request, ::viam::component::board::v1::PWMResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::board::v1::PWMRequest, ::viam::component::board::v1::PWMResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_PWM_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_PWM_, context, request, response); } -void BoardService::Stub::async::PWM(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMRequest* request, ::viam::component::board::v1::PWMResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::board::v1::PWMRequest, ::viam::component::board::v1::PWMResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PWM_, context, request, response, std::move(f)); +void BoardService::Stub::experimental_async::PWM(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMRequest* request, ::viam::component::board::v1::PWMResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_PWM_, context, request, response, std::move(f)); } -void BoardService::Stub::async::PWM(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMRequest* request, ::viam::component::board::v1::PWMResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PWM_, context, request, response, reactor); +void BoardService::Stub::experimental_async::PWM(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::PWMResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_PWM_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::PWMResponse>* BoardService::Stub::PrepareAsyncPWMRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::board::v1::PWMResponse, ::viam::component::board::v1::PWMRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_PWM_, context, request); +void BoardService::Stub::experimental_async::PWM(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMRequest* request, ::viam::component::board::v1::PWMResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_PWM_, context, request, response, reactor); +} + +void BoardService::Stub::experimental_async::PWM(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::PWMResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_PWM_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::PWMResponse>* BoardService::Stub::AsyncPWMRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncPWMRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::board::v1::PWMResponse>::Create(channel_.get(), cq, rpcmethod_PWM_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::PWMResponse>* BoardService::Stub::PrepareAsyncPWMRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::board::v1::PWMResponse>::Create(channel_.get(), cq, rpcmethod_PWM_, context, request, false); } ::grpc::Status BoardService::Stub::SetPWM(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMRequest& request, ::viam::component::board::v1::SetPWMResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::board::v1::SetPWMRequest, ::viam::component::board::v1::SetPWMResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_SetPWM_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_SetPWM_, context, request, response); } -void BoardService::Stub::async::SetPWM(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMRequest* request, ::viam::component::board::v1::SetPWMResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::board::v1::SetPWMRequest, ::viam::component::board::v1::SetPWMResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SetPWM_, context, request, response, std::move(f)); +void BoardService::Stub::experimental_async::SetPWM(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMRequest* request, ::viam::component::board::v1::SetPWMResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SetPWM_, context, request, response, std::move(f)); } -void BoardService::Stub::async::SetPWM(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMRequest* request, ::viam::component::board::v1::SetPWMResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SetPWM_, context, request, response, reactor); +void BoardService::Stub::experimental_async::SetPWM(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::SetPWMResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SetPWM_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::SetPWMResponse>* BoardService::Stub::PrepareAsyncSetPWMRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::board::v1::SetPWMResponse, ::viam::component::board::v1::SetPWMRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_SetPWM_, context, request); +void BoardService::Stub::experimental_async::SetPWM(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMRequest* request, ::viam::component::board::v1::SetPWMResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SetPWM_, context, request, response, reactor); +} + +void BoardService::Stub::experimental_async::SetPWM(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::SetPWMResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SetPWM_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::SetPWMResponse>* BoardService::Stub::AsyncSetPWMRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncSetPWMRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::board::v1::SetPWMResponse>::Create(channel_.get(), cq, rpcmethod_SetPWM_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::SetPWMResponse>* BoardService::Stub::PrepareAsyncSetPWMRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::board::v1::SetPWMResponse>::Create(channel_.get(), cq, rpcmethod_SetPWM_, context, request, false); } ::grpc::Status BoardService::Stub::PWMFrequency(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMFrequencyRequest& request, ::viam::component::board::v1::PWMFrequencyResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::board::v1::PWMFrequencyRequest, ::viam::component::board::v1::PWMFrequencyResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_PWMFrequency_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_PWMFrequency_, context, request, response); } -void BoardService::Stub::async::PWMFrequency(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMFrequencyRequest* request, ::viam::component::board::v1::PWMFrequencyResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::board::v1::PWMFrequencyRequest, ::viam::component::board::v1::PWMFrequencyResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PWMFrequency_, context, request, response, std::move(f)); +void BoardService::Stub::experimental_async::PWMFrequency(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMFrequencyRequest* request, ::viam::component::board::v1::PWMFrequencyResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_PWMFrequency_, context, request, response, std::move(f)); } -void BoardService::Stub::async::PWMFrequency(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMFrequencyRequest* request, ::viam::component::board::v1::PWMFrequencyResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PWMFrequency_, context, request, response, reactor); +void BoardService::Stub::experimental_async::PWMFrequency(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::PWMFrequencyResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_PWMFrequency_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::PWMFrequencyResponse>* BoardService::Stub::PrepareAsyncPWMFrequencyRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMFrequencyRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::board::v1::PWMFrequencyResponse, ::viam::component::board::v1::PWMFrequencyRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_PWMFrequency_, context, request); +void BoardService::Stub::experimental_async::PWMFrequency(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMFrequencyRequest* request, ::viam::component::board::v1::PWMFrequencyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_PWMFrequency_, context, request, response, reactor); +} + +void BoardService::Stub::experimental_async::PWMFrequency(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::PWMFrequencyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_PWMFrequency_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::PWMFrequencyResponse>* BoardService::Stub::AsyncPWMFrequencyRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMFrequencyRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncPWMFrequencyRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::board::v1::PWMFrequencyResponse>::Create(channel_.get(), cq, rpcmethod_PWMFrequency_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::PWMFrequencyResponse>* BoardService::Stub::PrepareAsyncPWMFrequencyRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMFrequencyRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::board::v1::PWMFrequencyResponse>::Create(channel_.get(), cq, rpcmethod_PWMFrequency_, context, request, false); } ::grpc::Status BoardService::Stub::SetPWMFrequency(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMFrequencyRequest& request, ::viam::component::board::v1::SetPWMFrequencyResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::board::v1::SetPWMFrequencyRequest, ::viam::component::board::v1::SetPWMFrequencyResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_SetPWMFrequency_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_SetPWMFrequency_, context, request, response); } -void BoardService::Stub::async::SetPWMFrequency(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMFrequencyRequest* request, ::viam::component::board::v1::SetPWMFrequencyResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::board::v1::SetPWMFrequencyRequest, ::viam::component::board::v1::SetPWMFrequencyResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SetPWMFrequency_, context, request, response, std::move(f)); +void BoardService::Stub::experimental_async::SetPWMFrequency(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMFrequencyRequest* request, ::viam::component::board::v1::SetPWMFrequencyResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SetPWMFrequency_, context, request, response, std::move(f)); } -void BoardService::Stub::async::SetPWMFrequency(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMFrequencyRequest* request, ::viam::component::board::v1::SetPWMFrequencyResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SetPWMFrequency_, context, request, response, reactor); +void BoardService::Stub::experimental_async::SetPWMFrequency(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::SetPWMFrequencyResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SetPWMFrequency_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::SetPWMFrequencyResponse>* BoardService::Stub::PrepareAsyncSetPWMFrequencyRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMFrequencyRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::board::v1::SetPWMFrequencyResponse, ::viam::component::board::v1::SetPWMFrequencyRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_SetPWMFrequency_, context, request); +void BoardService::Stub::experimental_async::SetPWMFrequency(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMFrequencyRequest* request, ::viam::component::board::v1::SetPWMFrequencyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SetPWMFrequency_, context, request, response, reactor); +} + +void BoardService::Stub::experimental_async::SetPWMFrequency(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::SetPWMFrequencyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SetPWMFrequency_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::SetPWMFrequencyResponse>* BoardService::Stub::AsyncSetPWMFrequencyRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMFrequencyRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncSetPWMFrequencyRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::board::v1::SetPWMFrequencyResponse>::Create(channel_.get(), cq, rpcmethod_SetPWMFrequency_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::SetPWMFrequencyResponse>* BoardService::Stub::PrepareAsyncSetPWMFrequencyRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMFrequencyRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::board::v1::SetPWMFrequencyResponse>::Create(channel_.get(), cq, rpcmethod_SetPWMFrequency_, context, request, false); } ::grpc::Status BoardService::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); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DoCommand_, context, request, response); } -void BoardService::Stub::async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); +void BoardService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); } -void BoardService::Stub::async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); +void BoardService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* BoardService::Stub::PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::common::v1::DoCommandResponse, ::viam::common::v1::DoCommandRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DoCommand_, context, request); +void BoardService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); +} + +void BoardService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* BoardService::Stub::AsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncDoCommandRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::DoCommandResponse>::Create(channel_.get(), cq, rpcmethod_DoCommand_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* BoardService::Stub::PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::DoCommandResponse>::Create(channel_.get(), cq, rpcmethod_DoCommand_, context, request, false); } ::grpc::Status BoardService::Stub::ReadAnalogReader(::grpc::ClientContext* context, const ::viam::component::board::v1::ReadAnalogReaderRequest& request, ::viam::component::board::v1::ReadAnalogReaderResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::board::v1::ReadAnalogReaderRequest, ::viam::component::board::v1::ReadAnalogReaderResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ReadAnalogReader_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ReadAnalogReader_, context, request, response); } -void BoardService::Stub::async::ReadAnalogReader(::grpc::ClientContext* context, const ::viam::component::board::v1::ReadAnalogReaderRequest* request, ::viam::component::board::v1::ReadAnalogReaderResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::board::v1::ReadAnalogReaderRequest, ::viam::component::board::v1::ReadAnalogReaderResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ReadAnalogReader_, context, request, response, std::move(f)); +void BoardService::Stub::experimental_async::ReadAnalogReader(::grpc::ClientContext* context, const ::viam::component::board::v1::ReadAnalogReaderRequest* request, ::viam::component::board::v1::ReadAnalogReaderResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ReadAnalogReader_, context, request, response, std::move(f)); } -void BoardService::Stub::async::ReadAnalogReader(::grpc::ClientContext* context, const ::viam::component::board::v1::ReadAnalogReaderRequest* request, ::viam::component::board::v1::ReadAnalogReaderResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ReadAnalogReader_, context, request, response, reactor); +void BoardService::Stub::experimental_async::ReadAnalogReader(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::ReadAnalogReaderResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ReadAnalogReader_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::ReadAnalogReaderResponse>* BoardService::Stub::PrepareAsyncReadAnalogReaderRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::ReadAnalogReaderRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::board::v1::ReadAnalogReaderResponse, ::viam::component::board::v1::ReadAnalogReaderRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ReadAnalogReader_, context, request); +void BoardService::Stub::experimental_async::ReadAnalogReader(::grpc::ClientContext* context, const ::viam::component::board::v1::ReadAnalogReaderRequest* request, ::viam::component::board::v1::ReadAnalogReaderResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ReadAnalogReader_, context, request, response, reactor); +} + +void BoardService::Stub::experimental_async::ReadAnalogReader(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::ReadAnalogReaderResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ReadAnalogReader_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::ReadAnalogReaderResponse>* BoardService::Stub::AsyncReadAnalogReaderRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::ReadAnalogReaderRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncReadAnalogReaderRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::board::v1::ReadAnalogReaderResponse>::Create(channel_.get(), cq, rpcmethod_ReadAnalogReader_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::ReadAnalogReaderResponse>* BoardService::Stub::PrepareAsyncReadAnalogReaderRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::ReadAnalogReaderRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::board::v1::ReadAnalogReaderResponse>::Create(channel_.get(), cq, rpcmethod_ReadAnalogReader_, context, request, false); } ::grpc::Status BoardService::Stub::WriteAnalog(::grpc::ClientContext* context, const ::viam::component::board::v1::WriteAnalogRequest& request, ::viam::component::board::v1::WriteAnalogResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::board::v1::WriteAnalogRequest, ::viam::component::board::v1::WriteAnalogResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_WriteAnalog_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_WriteAnalog_, context, request, response); } -void BoardService::Stub::async::WriteAnalog(::grpc::ClientContext* context, const ::viam::component::board::v1::WriteAnalogRequest* request, ::viam::component::board::v1::WriteAnalogResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::board::v1::WriteAnalogRequest, ::viam::component::board::v1::WriteAnalogResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_WriteAnalog_, context, request, response, std::move(f)); +void BoardService::Stub::experimental_async::WriteAnalog(::grpc::ClientContext* context, const ::viam::component::board::v1::WriteAnalogRequest* request, ::viam::component::board::v1::WriteAnalogResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_WriteAnalog_, context, request, response, std::move(f)); } -void BoardService::Stub::async::WriteAnalog(::grpc::ClientContext* context, const ::viam::component::board::v1::WriteAnalogRequest* request, ::viam::component::board::v1::WriteAnalogResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_WriteAnalog_, context, request, response, reactor); +void BoardService::Stub::experimental_async::WriteAnalog(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::WriteAnalogResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_WriteAnalog_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::WriteAnalogResponse>* BoardService::Stub::PrepareAsyncWriteAnalogRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::WriteAnalogRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::board::v1::WriteAnalogResponse, ::viam::component::board::v1::WriteAnalogRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_WriteAnalog_, context, request); +void BoardService::Stub::experimental_async::WriteAnalog(::grpc::ClientContext* context, const ::viam::component::board::v1::WriteAnalogRequest* request, ::viam::component::board::v1::WriteAnalogResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_WriteAnalog_, context, request, response, reactor); +} + +void BoardService::Stub::experimental_async::WriteAnalog(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::WriteAnalogResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_WriteAnalog_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::WriteAnalogResponse>* BoardService::Stub::AsyncWriteAnalogRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::WriteAnalogRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncWriteAnalogRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::board::v1::WriteAnalogResponse>::Create(channel_.get(), cq, rpcmethod_WriteAnalog_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::WriteAnalogResponse>* BoardService::Stub::PrepareAsyncWriteAnalogRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::WriteAnalogRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::board::v1::WriteAnalogResponse>::Create(channel_.get(), cq, rpcmethod_WriteAnalog_, context, request, false); } ::grpc::Status BoardService::Stub::GetDigitalInterruptValue(::grpc::ClientContext* context, const ::viam::component::board::v1::GetDigitalInterruptValueRequest& request, ::viam::component::board::v1::GetDigitalInterruptValueResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::board::v1::GetDigitalInterruptValueRequest, ::viam::component::board::v1::GetDigitalInterruptValueResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetDigitalInterruptValue_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetDigitalInterruptValue_, context, request, response); } -void BoardService::Stub::async::GetDigitalInterruptValue(::grpc::ClientContext* context, const ::viam::component::board::v1::GetDigitalInterruptValueRequest* request, ::viam::component::board::v1::GetDigitalInterruptValueResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::board::v1::GetDigitalInterruptValueRequest, ::viam::component::board::v1::GetDigitalInterruptValueResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetDigitalInterruptValue_, context, request, response, std::move(f)); +void BoardService::Stub::experimental_async::GetDigitalInterruptValue(::grpc::ClientContext* context, const ::viam::component::board::v1::GetDigitalInterruptValueRequest* request, ::viam::component::board::v1::GetDigitalInterruptValueResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetDigitalInterruptValue_, context, request, response, std::move(f)); } -void BoardService::Stub::async::GetDigitalInterruptValue(::grpc::ClientContext* context, const ::viam::component::board::v1::GetDigitalInterruptValueRequest* request, ::viam::component::board::v1::GetDigitalInterruptValueResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetDigitalInterruptValue_, context, request, response, reactor); +void BoardService::Stub::experimental_async::GetDigitalInterruptValue(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::GetDigitalInterruptValueResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetDigitalInterruptValue_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::GetDigitalInterruptValueResponse>* BoardService::Stub::PrepareAsyncGetDigitalInterruptValueRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::GetDigitalInterruptValueRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::board::v1::GetDigitalInterruptValueResponse, ::viam::component::board::v1::GetDigitalInterruptValueRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetDigitalInterruptValue_, context, request); +void BoardService::Stub::experimental_async::GetDigitalInterruptValue(::grpc::ClientContext* context, const ::viam::component::board::v1::GetDigitalInterruptValueRequest* request, ::viam::component::board::v1::GetDigitalInterruptValueResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetDigitalInterruptValue_, context, request, response, reactor); +} + +void BoardService::Stub::experimental_async::GetDigitalInterruptValue(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::GetDigitalInterruptValueResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetDigitalInterruptValue_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::GetDigitalInterruptValueResponse>* BoardService::Stub::AsyncGetDigitalInterruptValueRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::GetDigitalInterruptValueRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetDigitalInterruptValueRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::board::v1::GetDigitalInterruptValueResponse>::Create(channel_.get(), cq, rpcmethod_GetDigitalInterruptValue_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::GetDigitalInterruptValueResponse>* BoardService::Stub::PrepareAsyncGetDigitalInterruptValueRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::GetDigitalInterruptValueRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::board::v1::GetDigitalInterruptValueResponse>::Create(channel_.get(), cq, rpcmethod_GetDigitalInterruptValue_, context, request, false); } ::grpc::ClientReader< ::viam::component::board::v1::StreamTicksResponse>* BoardService::Stub::StreamTicksRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::StreamTicksRequest& request) { - return ::grpc::internal::ClientReaderFactory< ::viam::component::board::v1::StreamTicksResponse>::Create(channel_.get(), rpcmethod_StreamTicks_, context, request); + return ::grpc_impl::internal::ClientReaderFactory< ::viam::component::board::v1::StreamTicksResponse>::Create(channel_.get(), rpcmethod_StreamTicks_, context, request); } -void BoardService::Stub::async::StreamTicks(::grpc::ClientContext* context, const ::viam::component::board::v1::StreamTicksRequest* request, ::grpc::ClientReadReactor< ::viam::component::board::v1::StreamTicksResponse>* reactor) { - ::grpc::internal::ClientCallbackReaderFactory< ::viam::component::board::v1::StreamTicksResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_StreamTicks_, context, request, reactor); +void BoardService::Stub::experimental_async::StreamTicks(::grpc::ClientContext* context, ::viam::component::board::v1::StreamTicksRequest* request, ::grpc::experimental::ClientReadReactor< ::viam::component::board::v1::StreamTicksResponse>* reactor) { + ::grpc_impl::internal::ClientCallbackReaderFactory< ::viam::component::board::v1::StreamTicksResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_StreamTicks_, context, request, reactor); } ::grpc::ClientAsyncReader< ::viam::component::board::v1::StreamTicksResponse>* BoardService::Stub::AsyncStreamTicksRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::StreamTicksRequest& request, ::grpc::CompletionQueue* cq, void* tag) { - return ::grpc::internal::ClientAsyncReaderFactory< ::viam::component::board::v1::StreamTicksResponse>::Create(channel_.get(), cq, rpcmethod_StreamTicks_, context, request, true, tag); + return ::grpc_impl::internal::ClientAsyncReaderFactory< ::viam::component::board::v1::StreamTicksResponse>::Create(channel_.get(), cq, rpcmethod_StreamTicks_, context, request, true, tag); } ::grpc::ClientAsyncReader< ::viam::component::board::v1::StreamTicksResponse>* BoardService::Stub::PrepareAsyncStreamTicksRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::StreamTicksRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncReaderFactory< ::viam::component::board::v1::StreamTicksResponse>::Create(channel_.get(), cq, rpcmethod_StreamTicks_, context, request, false, nullptr); + return ::grpc_impl::internal::ClientAsyncReaderFactory< ::viam::component::board::v1::StreamTicksResponse>::Create(channel_.get(), cq, rpcmethod_StreamTicks_, context, request, false, nullptr); } ::grpc::Status BoardService::Stub::SetPowerMode(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPowerModeRequest& request, ::viam::component::board::v1::SetPowerModeResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::board::v1::SetPowerModeRequest, ::viam::component::board::v1::SetPowerModeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_SetPowerMode_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_SetPowerMode_, context, request, response); } -void BoardService::Stub::async::SetPowerMode(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPowerModeRequest* request, ::viam::component::board::v1::SetPowerModeResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::board::v1::SetPowerModeRequest, ::viam::component::board::v1::SetPowerModeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SetPowerMode_, context, request, response, std::move(f)); +void BoardService::Stub::experimental_async::SetPowerMode(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPowerModeRequest* request, ::viam::component::board::v1::SetPowerModeResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SetPowerMode_, context, request, response, std::move(f)); } -void BoardService::Stub::async::SetPowerMode(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPowerModeRequest* request, ::viam::component::board::v1::SetPowerModeResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SetPowerMode_, context, request, response, reactor); +void BoardService::Stub::experimental_async::SetPowerMode(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::SetPowerModeResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SetPowerMode_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::SetPowerModeResponse>* BoardService::Stub::PrepareAsyncSetPowerModeRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPowerModeRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::board::v1::SetPowerModeResponse, ::viam::component::board::v1::SetPowerModeRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_SetPowerMode_, context, request); +void BoardService::Stub::experimental_async::SetPowerMode(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPowerModeRequest* request, ::viam::component::board::v1::SetPowerModeResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SetPowerMode_, context, request, response, reactor); +} + +void BoardService::Stub::experimental_async::SetPowerMode(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::SetPowerModeResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SetPowerMode_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::SetPowerModeResponse>* BoardService::Stub::AsyncSetPowerModeRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPowerModeRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncSetPowerModeRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::board::v1::SetPowerModeResponse>::Create(channel_.get(), cq, rpcmethod_SetPowerMode_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::SetPowerModeResponse>* BoardService::Stub::PrepareAsyncSetPowerModeRaw(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPowerModeRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::board::v1::SetPowerModeResponse>::Create(channel_.get(), cq, rpcmethod_SetPowerMode_, context, request, false); } ::grpc::Status BoardService::Stub::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::viam::common::v1::GetGeometriesResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetGeometries_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetGeometries_, context, request, response); } -void BoardService::Stub::async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, std::move(f)); +void BoardService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, std::move(f)); } -void BoardService::Stub::async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, reactor); +void BoardService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>* BoardService::Stub::PrepareAsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::common::v1::GetGeometriesResponse, ::viam::common::v1::GetGeometriesRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetGeometries_, context, request); +void BoardService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, reactor); +} + +void BoardService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>* BoardService::Stub::AsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetGeometriesRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::GetGeometriesResponse>::Create(channel_.get(), cq, rpcmethod_GetGeometries_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>* BoardService::Stub::PrepareAsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::GetGeometriesResponse>::Create(channel_.get(), cq, rpcmethod_GetGeometries_, context, request, false); } BoardService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( BoardService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< BoardService::Service, ::viam::component::board::v1::SetGPIORequest, ::viam::component::board::v1::SetGPIOResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< BoardService::Service, ::viam::component::board::v1::SetGPIORequest, ::viam::component::board::v1::SetGPIOResponse>( [](BoardService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::board::v1::SetGPIORequest* req, ::viam::component::board::v1::SetGPIOResponse* resp) { return service->SetGPIO(ctx, req, resp); @@ -368,9 +428,9 @@ BoardService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( BoardService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< BoardService::Service, ::viam::component::board::v1::GetGPIORequest, ::viam::component::board::v1::GetGPIOResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< BoardService::Service, ::viam::component::board::v1::GetGPIORequest, ::viam::component::board::v1::GetGPIOResponse>( [](BoardService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::board::v1::GetGPIORequest* req, ::viam::component::board::v1::GetGPIOResponse* resp) { return service->GetGPIO(ctx, req, resp); @@ -378,9 +438,9 @@ BoardService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( BoardService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< BoardService::Service, ::viam::component::board::v1::PWMRequest, ::viam::component::board::v1::PWMResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< BoardService::Service, ::viam::component::board::v1::PWMRequest, ::viam::component::board::v1::PWMResponse>( [](BoardService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::board::v1::PWMRequest* req, ::viam::component::board::v1::PWMResponse* resp) { return service->PWM(ctx, req, resp); @@ -388,9 +448,9 @@ BoardService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( BoardService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< BoardService::Service, ::viam::component::board::v1::SetPWMRequest, ::viam::component::board::v1::SetPWMResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< BoardService::Service, ::viam::component::board::v1::SetPWMRequest, ::viam::component::board::v1::SetPWMResponse>( [](BoardService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::board::v1::SetPWMRequest* req, ::viam::component::board::v1::SetPWMResponse* resp) { return service->SetPWM(ctx, req, resp); @@ -398,9 +458,9 @@ BoardService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( BoardService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< BoardService::Service, ::viam::component::board::v1::PWMFrequencyRequest, ::viam::component::board::v1::PWMFrequencyResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< BoardService::Service, ::viam::component::board::v1::PWMFrequencyRequest, ::viam::component::board::v1::PWMFrequencyResponse>( [](BoardService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::board::v1::PWMFrequencyRequest* req, ::viam::component::board::v1::PWMFrequencyResponse* resp) { return service->PWMFrequency(ctx, req, resp); @@ -408,9 +468,9 @@ BoardService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( BoardService_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< BoardService::Service, ::viam::component::board::v1::SetPWMFrequencyRequest, ::viam::component::board::v1::SetPWMFrequencyResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< BoardService::Service, ::viam::component::board::v1::SetPWMFrequencyRequest, ::viam::component::board::v1::SetPWMFrequencyResponse>( [](BoardService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::board::v1::SetPWMFrequencyRequest* req, ::viam::component::board::v1::SetPWMFrequencyResponse* resp) { return service->SetPWMFrequency(ctx, req, resp); @@ -418,9 +478,9 @@ BoardService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( BoardService_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< BoardService::Service, ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< BoardService::Service, ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( [](BoardService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::common::v1::DoCommandRequest* req, ::viam::common::v1::DoCommandResponse* resp) { return service->DoCommand(ctx, req, resp); @@ -428,9 +488,9 @@ BoardService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( BoardService_method_names[7], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< BoardService::Service, ::viam::component::board::v1::ReadAnalogReaderRequest, ::viam::component::board::v1::ReadAnalogReaderResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< BoardService::Service, ::viam::component::board::v1::ReadAnalogReaderRequest, ::viam::component::board::v1::ReadAnalogReaderResponse>( [](BoardService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::board::v1::ReadAnalogReaderRequest* req, ::viam::component::board::v1::ReadAnalogReaderResponse* resp) { return service->ReadAnalogReader(ctx, req, resp); @@ -438,9 +498,9 @@ BoardService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( BoardService_method_names[8], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< BoardService::Service, ::viam::component::board::v1::WriteAnalogRequest, ::viam::component::board::v1::WriteAnalogResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< BoardService::Service, ::viam::component::board::v1::WriteAnalogRequest, ::viam::component::board::v1::WriteAnalogResponse>( [](BoardService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::board::v1::WriteAnalogRequest* req, ::viam::component::board::v1::WriteAnalogResponse* resp) { return service->WriteAnalog(ctx, req, resp); @@ -448,9 +508,9 @@ BoardService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( BoardService_method_names[9], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< BoardService::Service, ::viam::component::board::v1::GetDigitalInterruptValueRequest, ::viam::component::board::v1::GetDigitalInterruptValueResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< BoardService::Service, ::viam::component::board::v1::GetDigitalInterruptValueRequest, ::viam::component::board::v1::GetDigitalInterruptValueResponse>( [](BoardService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::board::v1::GetDigitalInterruptValueRequest* req, ::viam::component::board::v1::GetDigitalInterruptValueResponse* resp) { return service->GetDigitalInterruptValue(ctx, req, resp); @@ -460,17 +520,17 @@ BoardService::Service::Service() { ::grpc::internal::RpcMethod::SERVER_STREAMING, new ::grpc::internal::ServerStreamingHandler< BoardService::Service, ::viam::component::board::v1::StreamTicksRequest, ::viam::component::board::v1::StreamTicksResponse>( [](BoardService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::board::v1::StreamTicksRequest* req, - ::grpc::ServerWriter<::viam::component::board::v1::StreamTicksResponse>* writer) { + ::grpc_impl::ServerWriter<::viam::component::board::v1::StreamTicksResponse>* writer) { return service->StreamTicks(ctx, req, writer); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( BoardService_method_names[11], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< BoardService::Service, ::viam::component::board::v1::SetPowerModeRequest, ::viam::component::board::v1::SetPowerModeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< BoardService::Service, ::viam::component::board::v1::SetPowerModeRequest, ::viam::component::board::v1::SetPowerModeResponse>( [](BoardService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::board::v1::SetPowerModeRequest* req, ::viam::component::board::v1::SetPowerModeResponse* resp) { return service->SetPowerMode(ctx, req, resp); @@ -478,9 +538,9 @@ BoardService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( BoardService_method_names[12], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< BoardService::Service, ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< BoardService::Service, ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( [](BoardService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::common::v1::GetGeometriesRequest* req, ::viam::common::v1::GetGeometriesResponse* resp) { return service->GetGeometries(ctx, req, resp); diff --git a/src/viam/api/component/board/v1/board.grpc.pb.h b/src/viam/api/component/board/v1/board.grpc.pb.h index 81795afdc..9d17770ed 100644 --- a/src/viam/api/component/board/v1/board.grpc.pb.h +++ b/src/viam/api/component/board/v1/board.grpc.pb.h @@ -7,23 +7,24 @@ #include "component/board/v1/board.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace component { @@ -152,59 +153,187 @@ class BoardService 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)); } - class async_interface { + class experimental_async_interface { public: - virtual ~async_interface() {} + virtual ~experimental_async_interface() {} virtual void SetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::SetGPIORequest* request, ::viam::component::board::v1::SetGPIOResponse* response, std::function) = 0; + virtual void SetGPIO(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::SetGPIOResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void SetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::SetGPIORequest* request, ::viam::component::board::v1::SetGPIOResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void SetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::SetGPIORequest* request, ::viam::component::board::v1::SetGPIOResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void SetGPIO(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::SetGPIOResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void SetGPIO(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::SetGPIOResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // GetGPIO gets the high/low state of the given pin of a board of the underlying robot. virtual void GetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::GetGPIORequest* request, ::viam::component::board::v1::GetGPIOResponse* response, std::function) = 0; + virtual void GetGPIO(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::GetGPIOResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::GetGPIORequest* request, ::viam::component::board::v1::GetGPIOResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::GetGPIORequest* request, ::viam::component::board::v1::GetGPIOResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetGPIO(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::GetGPIOResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetGPIO(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::GetGPIOResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // PWM gets the duty cycle of the given pin of a board of the underlying robot. virtual void PWM(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMRequest* request, ::viam::component::board::v1::PWMResponse* response, std::function) = 0; + virtual void PWM(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::PWMResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void PWM(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMRequest* request, ::viam::component::board::v1::PWMResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void PWM(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMRequest* request, ::viam::component::board::v1::PWMResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void PWM(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::PWMResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void PWM(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::PWMResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // SetPWM sets the given pin of a board of the underlying robot to the given duty cycle. virtual void SetPWM(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMRequest* request, ::viam::component::board::v1::SetPWMResponse* response, std::function) = 0; + virtual void SetPWM(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::SetPWMResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void SetPWM(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMRequest* request, ::viam::component::board::v1::SetPWMResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void SetPWM(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMRequest* request, ::viam::component::board::v1::SetPWMResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void SetPWM(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::SetPWMResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void SetPWM(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::SetPWMResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // PWMFrequency gets the PWM frequency of the given pin of a board of the underlying robot. virtual void PWMFrequency(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMFrequencyRequest* request, ::viam::component::board::v1::PWMFrequencyResponse* response, std::function) = 0; + virtual void PWMFrequency(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::PWMFrequencyResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void PWMFrequency(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMFrequencyRequest* request, ::viam::component::board::v1::PWMFrequencyResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void PWMFrequency(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMFrequencyRequest* request, ::viam::component::board::v1::PWMFrequencyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void PWMFrequency(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::PWMFrequencyResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void PWMFrequency(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::PWMFrequencyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // SetPWMFrequency sets the given pin of a board of the underlying robot to the given PWM frequency. 0 will use the board's default PWM frequency. virtual void SetPWMFrequency(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMFrequencyRequest* request, ::viam::component::board::v1::SetPWMFrequencyResponse* response, std::function) = 0; + virtual void SetPWMFrequency(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::SetPWMFrequencyResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void SetPWMFrequency(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMFrequencyRequest* request, ::viam::component::board::v1::SetPWMFrequencyResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void SetPWMFrequency(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMFrequencyRequest* request, ::viam::component::board::v1::SetPWMFrequencyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void SetPWMFrequency(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::SetPWMFrequencyResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void SetPWMFrequency(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::SetPWMFrequencyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // 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 ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Analog Reader // // ReadAnalogReader reads off the current value of an analog reader of a board of the underlying robot. virtual void ReadAnalogReader(::grpc::ClientContext* context, const ::viam::component::board::v1::ReadAnalogReaderRequest* request, ::viam::component::board::v1::ReadAnalogReaderResponse* response, std::function) = 0; + virtual void ReadAnalogReader(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::ReadAnalogReaderResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void ReadAnalogReader(::grpc::ClientContext* context, const ::viam::component::board::v1::ReadAnalogReaderRequest* request, ::viam::component::board::v1::ReadAnalogReaderResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ReadAnalogReader(::grpc::ClientContext* context, const ::viam::component::board::v1::ReadAnalogReaderRequest* request, ::viam::component::board::v1::ReadAnalogReaderResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void ReadAnalogReader(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::ReadAnalogReaderResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ReadAnalogReader(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::ReadAnalogReaderResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Analog Writer // // WriteAnalog writes the value to the analog writer of the board. virtual void WriteAnalog(::grpc::ClientContext* context, const ::viam::component::board::v1::WriteAnalogRequest* request, ::viam::component::board::v1::WriteAnalogResponse* response, std::function) = 0; + virtual void WriteAnalog(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::WriteAnalogResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void WriteAnalog(::grpc::ClientContext* context, const ::viam::component::board::v1::WriteAnalogRequest* request, ::viam::component::board::v1::WriteAnalogResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void WriteAnalog(::grpc::ClientContext* context, const ::viam::component::board::v1::WriteAnalogRequest* request, ::viam::component::board::v1::WriteAnalogResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void WriteAnalog(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::WriteAnalogResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void WriteAnalog(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::WriteAnalogResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Digital Interrupt // // GetDigitalInterruptValue returns the current value of the interrupt which is based on the type of interrupt. virtual void GetDigitalInterruptValue(::grpc::ClientContext* context, const ::viam::component::board::v1::GetDigitalInterruptValueRequest* request, ::viam::component::board::v1::GetDigitalInterruptValueResponse* response, std::function) = 0; + virtual void GetDigitalInterruptValue(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::GetDigitalInterruptValueResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetDigitalInterruptValue(::grpc::ClientContext* context, const ::viam::component::board::v1::GetDigitalInterruptValueRequest* request, ::viam::component::board::v1::GetDigitalInterruptValueResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetDigitalInterruptValue(::grpc::ClientContext* context, const ::viam::component::board::v1::GetDigitalInterruptValueRequest* request, ::viam::component::board::v1::GetDigitalInterruptValueResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetDigitalInterruptValue(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::GetDigitalInterruptValueResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetDigitalInterruptValue(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::GetDigitalInterruptValueResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // StreamTicks starts a stream of ticks for the given digital interrupts. - virtual void StreamTicks(::grpc::ClientContext* context, const ::viam::component::board::v1::StreamTicksRequest* request, ::grpc::ClientReadReactor< ::viam::component::board::v1::StreamTicksResponse>* reactor) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void StreamTicks(::grpc::ClientContext* context, ::viam::component::board::v1::StreamTicksRequest* request, ::grpc::ClientReadReactor< ::viam::component::board::v1::StreamTicksResponse>* reactor) = 0; + #else + virtual void StreamTicks(::grpc::ClientContext* context, ::viam::component::board::v1::StreamTicksRequest* request, ::grpc::experimental::ClientReadReactor< ::viam::component::board::v1::StreamTicksResponse>* reactor) = 0; + #endif // Power Management // // `SetPowerMode` sets the power consumption mode of the board to the requested setting for the given duration. virtual void SetPowerMode(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPowerModeRequest* request, ::viam::component::board::v1::SetPowerModeResponse* response, std::function) = 0; + virtual void SetPowerMode(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::SetPowerModeResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void SetPowerMode(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPowerModeRequest* request, ::viam::component::board::v1::SetPowerModeResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void SetPowerMode(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPowerModeRequest* request, ::viam::component::board::v1::SetPowerModeResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void SetPowerMode(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::SetPowerModeResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void SetPowerMode(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::SetPowerModeResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // 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 ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif }; - typedef class async_interface experimental_async_interface; - virtual class async_interface* async() { return nullptr; } - class async_interface* experimental_async() { return async(); } - private: + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef class experimental_async_interface async_interface; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + async_interface* async() { return experimental_async(); } + #endif + virtual class experimental_async_interface* experimental_async() { return nullptr; } + private: virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::SetGPIOResponse>* AsyncSetGPIORaw(::grpc::ClientContext* context, const ::viam::component::board::v1::SetGPIORequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::SetGPIOResponse>* PrepareAsyncSetGPIORaw(::grpc::ClientContext* context, const ::viam::component::board::v1::SetGPIORequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::board::v1::GetGPIOResponse>* AsyncGetGPIORaw(::grpc::ClientContext* context, const ::viam::component::board::v1::GetGPIORequest& request, ::grpc::CompletionQueue* cq) = 0; @@ -235,7 +364,7 @@ class BoardService final { }; class Stub final : public StubInterface { public: - Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); ::grpc::Status SetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::SetGPIORequest& request, ::viam::component::board::v1::SetGPIOResponse* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::SetGPIOResponse>> AsyncSetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::SetGPIORequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::SetGPIOResponse>>(AsyncSetGPIORaw(context, request, cq)); @@ -329,45 +458,169 @@ class BoardService 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)); } - class async final : - public StubInterface::async_interface { + class experimental_async final : + public StubInterface::experimental_async_interface { public: void SetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::SetGPIORequest* request, ::viam::component::board::v1::SetGPIOResponse* response, std::function) override; + void SetGPIO(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::SetGPIOResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void SetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::SetGPIORequest* request, ::viam::component::board::v1::SetGPIOResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void SetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::SetGPIORequest* request, ::viam::component::board::v1::SetGPIOResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void SetGPIO(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::SetGPIOResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void SetGPIO(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::SetGPIOResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::GetGPIORequest* request, ::viam::component::board::v1::GetGPIOResponse* response, std::function) override; + void GetGPIO(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::GetGPIOResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::GetGPIORequest* request, ::viam::component::board::v1::GetGPIOResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetGPIO(::grpc::ClientContext* context, const ::viam::component::board::v1::GetGPIORequest* request, ::viam::component::board::v1::GetGPIOResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetGPIO(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::GetGPIOResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetGPIO(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::GetGPIOResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void PWM(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMRequest* request, ::viam::component::board::v1::PWMResponse* response, std::function) override; + void PWM(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::PWMResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void PWM(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMRequest* request, ::viam::component::board::v1::PWMResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void PWM(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMRequest* request, ::viam::component::board::v1::PWMResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void PWM(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::PWMResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void PWM(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::PWMResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void SetPWM(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMRequest* request, ::viam::component::board::v1::SetPWMResponse* response, std::function) override; + void SetPWM(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::SetPWMResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void SetPWM(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMRequest* request, ::viam::component::board::v1::SetPWMResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void SetPWM(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMRequest* request, ::viam::component::board::v1::SetPWMResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void SetPWM(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::SetPWMResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void SetPWM(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::SetPWMResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void PWMFrequency(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMFrequencyRequest* request, ::viam::component::board::v1::PWMFrequencyResponse* response, std::function) override; + void PWMFrequency(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::PWMFrequencyResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void PWMFrequency(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMFrequencyRequest* request, ::viam::component::board::v1::PWMFrequencyResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void PWMFrequency(::grpc::ClientContext* context, const ::viam::component::board::v1::PWMFrequencyRequest* request, ::viam::component::board::v1::PWMFrequencyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void PWMFrequency(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::PWMFrequencyResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void PWMFrequency(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::PWMFrequencyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void SetPWMFrequency(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMFrequencyRequest* request, ::viam::component::board::v1::SetPWMFrequencyResponse* response, std::function) override; + void SetPWMFrequency(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::SetPWMFrequencyResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void SetPWMFrequency(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMFrequencyRequest* request, ::viam::component::board::v1::SetPWMFrequencyResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void SetPWMFrequency(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPWMFrequencyRequest* request, ::viam::component::board::v1::SetPWMFrequencyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void SetPWMFrequency(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::SetPWMFrequencyResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void SetPWMFrequency(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::SetPWMFrequencyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif 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 ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void ReadAnalogReader(::grpc::ClientContext* context, const ::viam::component::board::v1::ReadAnalogReaderRequest* request, ::viam::component::board::v1::ReadAnalogReaderResponse* response, std::function) override; + void ReadAnalogReader(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::ReadAnalogReaderResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void ReadAnalogReader(::grpc::ClientContext* context, const ::viam::component::board::v1::ReadAnalogReaderRequest* request, ::viam::component::board::v1::ReadAnalogReaderResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ReadAnalogReader(::grpc::ClientContext* context, const ::viam::component::board::v1::ReadAnalogReaderRequest* request, ::viam::component::board::v1::ReadAnalogReaderResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void ReadAnalogReader(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::ReadAnalogReaderResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ReadAnalogReader(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::ReadAnalogReaderResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void WriteAnalog(::grpc::ClientContext* context, const ::viam::component::board::v1::WriteAnalogRequest* request, ::viam::component::board::v1::WriteAnalogResponse* response, std::function) override; + void WriteAnalog(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::WriteAnalogResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void WriteAnalog(::grpc::ClientContext* context, const ::viam::component::board::v1::WriteAnalogRequest* request, ::viam::component::board::v1::WriteAnalogResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void WriteAnalog(::grpc::ClientContext* context, const ::viam::component::board::v1::WriteAnalogRequest* request, ::viam::component::board::v1::WriteAnalogResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void WriteAnalog(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::WriteAnalogResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void WriteAnalog(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::WriteAnalogResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetDigitalInterruptValue(::grpc::ClientContext* context, const ::viam::component::board::v1::GetDigitalInterruptValueRequest* request, ::viam::component::board::v1::GetDigitalInterruptValueResponse* response, std::function) override; + void GetDigitalInterruptValue(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::GetDigitalInterruptValueResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetDigitalInterruptValue(::grpc::ClientContext* context, const ::viam::component::board::v1::GetDigitalInterruptValueRequest* request, ::viam::component::board::v1::GetDigitalInterruptValueResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - void StreamTicks(::grpc::ClientContext* context, const ::viam::component::board::v1::StreamTicksRequest* request, ::grpc::ClientReadReactor< ::viam::component::board::v1::StreamTicksResponse>* reactor) override; + #else + void GetDigitalInterruptValue(::grpc::ClientContext* context, const ::viam::component::board::v1::GetDigitalInterruptValueRequest* request, ::viam::component::board::v1::GetDigitalInterruptValueResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetDigitalInterruptValue(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::GetDigitalInterruptValueResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetDigitalInterruptValue(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::GetDigitalInterruptValueResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void StreamTicks(::grpc::ClientContext* context, ::viam::component::board::v1::StreamTicksRequest* request, ::grpc::ClientReadReactor< ::viam::component::board::v1::StreamTicksResponse>* reactor) override; + #else + void StreamTicks(::grpc::ClientContext* context, ::viam::component::board::v1::StreamTicksRequest* request, ::grpc::experimental::ClientReadReactor< ::viam::component::board::v1::StreamTicksResponse>* reactor) override; + #endif void SetPowerMode(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPowerModeRequest* request, ::viam::component::board::v1::SetPowerModeResponse* response, std::function) override; + void SetPowerMode(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::SetPowerModeResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void SetPowerMode(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPowerModeRequest* request, ::viam::component::board::v1::SetPowerModeResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void SetPowerMode(::grpc::ClientContext* context, const ::viam::component::board::v1::SetPowerModeRequest* request, ::viam::component::board::v1::SetPowerModeResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void SetPowerMode(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::SetPowerModeResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void SetPowerMode(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::board::v1::SetPowerModeResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif 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 ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif private: friend class Stub; - explicit async(Stub* stub): stub_(stub) { } + explicit experimental_async(Stub* stub): stub_(stub) { } Stub* stub() { return stub_; } Stub* stub_; }; - class async* async() override { return &async_stub_; } + class experimental_async_interface* experimental_async() override { return &async_stub_; } private: std::shared_ptr< ::grpc::ChannelInterface> channel_; - class async async_stub_{this}; + class experimental_async async_stub_{this}; ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::SetGPIOResponse>* AsyncSetGPIORaw(::grpc::ClientContext* context, const ::viam::component::board::v1::SetGPIORequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::SetGPIOResponse>* PrepareAsyncSetGPIORaw(::grpc::ClientContext* context, const ::viam::component::board::v1::SetGPIORequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::component::board::v1::GetGPIOResponse>* AsyncGetGPIORaw(::grpc::ClientContext* context, const ::viam::component::board::v1::GetGPIORequest& request, ::grpc::CompletionQueue* cq) override; @@ -711,22 +964,36 @@ class BoardService final { }; typedef WithAsyncMethod_SetGPIO > > > > > > > > > > > > AsyncService; template - class WithCallbackMethod_SetGPIO : public BaseClass { + class ExperimentalWithCallbackMethod_SetGPIO : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_SetGPIO() { - ::grpc::Service::MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::board::v1::SetGPIORequest, ::viam::component::board::v1::SetGPIOResponse>( + ExperimentalWithCallbackMethod_SetGPIO() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::board::v1::SetGPIORequest, ::viam::component::board::v1::SetGPIOResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::board::v1::SetGPIORequest* request, ::viam::component::board::v1::SetGPIOResponse* response) { return this->SetGPIO(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::board::v1::SetGPIORequest* request, ::viam::component::board::v1::SetGPIOResponse* response) { return this->SetGPIO(context, request, response); }));} void SetMessageAllocatorFor_SetGPIO( - ::grpc::MessageAllocator< ::viam::component::board::v1::SetGPIORequest, ::viam::component::board::v1::SetGPIOResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::board::v1::SetGPIORequest, ::viam::component::board::v1::SetGPIOResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::board::v1::SetGPIORequest, ::viam::component::board::v1::SetGPIOResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(0); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::board::v1::SetGPIORequest, ::viam::component::board::v1::SetGPIOResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_SetGPIO() override { + ~ExperimentalWithCallbackMethod_SetGPIO() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -734,26 +1001,46 @@ class BoardService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* SetGPIO( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::board::v1::SetGPIORequest* /*request*/, ::viam::component::board::v1::SetGPIOResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::board::v1::SetGPIORequest* /*request*/, ::viam::component::board::v1::SetGPIOResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* SetGPIO( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::board::v1::SetGPIORequest* /*request*/, ::viam::component::board::v1::SetGPIOResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetGPIO : public BaseClass { + class ExperimentalWithCallbackMethod_GetGPIO : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetGPIO() { - ::grpc::Service::MarkMethodCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::board::v1::GetGPIORequest, ::viam::component::board::v1::GetGPIOResponse>( + ExperimentalWithCallbackMethod_GetGPIO() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::board::v1::GetGPIORequest, ::viam::component::board::v1::GetGPIOResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::board::v1::GetGPIORequest* request, ::viam::component::board::v1::GetGPIOResponse* response) { return this->GetGPIO(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::board::v1::GetGPIORequest* request, ::viam::component::board::v1::GetGPIOResponse* response) { return this->GetGPIO(context, request, response); }));} void SetMessageAllocatorFor_GetGPIO( - ::grpc::MessageAllocator< ::viam::component::board::v1::GetGPIORequest, ::viam::component::board::v1::GetGPIOResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::board::v1::GetGPIORequest, ::viam::component::board::v1::GetGPIOResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::board::v1::GetGPIORequest, ::viam::component::board::v1::GetGPIOResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(1); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::board::v1::GetGPIORequest, ::viam::component::board::v1::GetGPIOResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetGPIO() override { + ~ExperimentalWithCallbackMethod_GetGPIO() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -761,26 +1048,46 @@ class BoardService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetGPIO( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::board::v1::GetGPIORequest* /*request*/, ::viam::component::board::v1::GetGPIOResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::board::v1::GetGPIORequest* /*request*/, ::viam::component::board::v1::GetGPIOResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetGPIO( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::board::v1::GetGPIORequest* /*request*/, ::viam::component::board::v1::GetGPIOResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_PWM : public BaseClass { + class ExperimentalWithCallbackMethod_PWM : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_PWM() { - ::grpc::Service::MarkMethodCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::board::v1::PWMRequest, ::viam::component::board::v1::PWMResponse>( + ExperimentalWithCallbackMethod_PWM() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(2, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::board::v1::PWMRequest, ::viam::component::board::v1::PWMResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::board::v1::PWMRequest* request, ::viam::component::board::v1::PWMResponse* response) { return this->PWM(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::board::v1::PWMRequest* request, ::viam::component::board::v1::PWMResponse* response) { return this->PWM(context, request, response); }));} void SetMessageAllocatorFor_PWM( - ::grpc::MessageAllocator< ::viam::component::board::v1::PWMRequest, ::viam::component::board::v1::PWMResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::board::v1::PWMRequest, ::viam::component::board::v1::PWMResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::board::v1::PWMRequest, ::viam::component::board::v1::PWMResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(2); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::board::v1::PWMRequest, ::viam::component::board::v1::PWMResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_PWM() override { + ~ExperimentalWithCallbackMethod_PWM() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -788,26 +1095,46 @@ class BoardService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* PWM( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::board::v1::PWMRequest* /*request*/, ::viam::component::board::v1::PWMResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::board::v1::PWMRequest* /*request*/, ::viam::component::board::v1::PWMResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* PWM( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::board::v1::PWMRequest* /*request*/, ::viam::component::board::v1::PWMResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_SetPWM : public BaseClass { + class ExperimentalWithCallbackMethod_SetPWM : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_SetPWM() { - ::grpc::Service::MarkMethodCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::board::v1::SetPWMRequest, ::viam::component::board::v1::SetPWMResponse>( + ExperimentalWithCallbackMethod_SetPWM() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(3, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::board::v1::SetPWMRequest, ::viam::component::board::v1::SetPWMResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::board::v1::SetPWMRequest* request, ::viam::component::board::v1::SetPWMResponse* response) { return this->SetPWM(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::board::v1::SetPWMRequest* request, ::viam::component::board::v1::SetPWMResponse* response) { return this->SetPWM(context, request, response); }));} void SetMessageAllocatorFor_SetPWM( - ::grpc::MessageAllocator< ::viam::component::board::v1::SetPWMRequest, ::viam::component::board::v1::SetPWMResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::board::v1::SetPWMRequest, ::viam::component::board::v1::SetPWMResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::board::v1::SetPWMRequest, ::viam::component::board::v1::SetPWMResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(3); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::board::v1::SetPWMRequest, ::viam::component::board::v1::SetPWMResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_SetPWM() override { + ~ExperimentalWithCallbackMethod_SetPWM() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -815,26 +1142,46 @@ class BoardService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* SetPWM( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::board::v1::SetPWMRequest* /*request*/, ::viam::component::board::v1::SetPWMResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::board::v1::SetPWMRequest* /*request*/, ::viam::component::board::v1::SetPWMResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* SetPWM( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::board::v1::SetPWMRequest* /*request*/, ::viam::component::board::v1::SetPWMResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_PWMFrequency : public BaseClass { + class ExperimentalWithCallbackMethod_PWMFrequency : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_PWMFrequency() { - ::grpc::Service::MarkMethodCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::board::v1::PWMFrequencyRequest, ::viam::component::board::v1::PWMFrequencyResponse>( + ExperimentalWithCallbackMethod_PWMFrequency() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(4, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::board::v1::PWMFrequencyRequest, ::viam::component::board::v1::PWMFrequencyResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::board::v1::PWMFrequencyRequest* request, ::viam::component::board::v1::PWMFrequencyResponse* response) { return this->PWMFrequency(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::board::v1::PWMFrequencyRequest* request, ::viam::component::board::v1::PWMFrequencyResponse* response) { return this->PWMFrequency(context, request, response); }));} void SetMessageAllocatorFor_PWMFrequency( - ::grpc::MessageAllocator< ::viam::component::board::v1::PWMFrequencyRequest, ::viam::component::board::v1::PWMFrequencyResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::board::v1::PWMFrequencyRequest, ::viam::component::board::v1::PWMFrequencyResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::board::v1::PWMFrequencyRequest, ::viam::component::board::v1::PWMFrequencyResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(4); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::board::v1::PWMFrequencyRequest, ::viam::component::board::v1::PWMFrequencyResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_PWMFrequency() override { + ~ExperimentalWithCallbackMethod_PWMFrequency() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -842,26 +1189,46 @@ class BoardService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* PWMFrequency( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::board::v1::PWMFrequencyRequest* /*request*/, ::viam::component::board::v1::PWMFrequencyResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::board::v1::PWMFrequencyRequest* /*request*/, ::viam::component::board::v1::PWMFrequencyResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* PWMFrequency( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::board::v1::PWMFrequencyRequest* /*request*/, ::viam::component::board::v1::PWMFrequencyResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_SetPWMFrequency : public BaseClass { + class ExperimentalWithCallbackMethod_SetPWMFrequency : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_SetPWMFrequency() { - ::grpc::Service::MarkMethodCallback(5, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::board::v1::SetPWMFrequencyRequest, ::viam::component::board::v1::SetPWMFrequencyResponse>( + ExperimentalWithCallbackMethod_SetPWMFrequency() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(5, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::board::v1::SetPWMFrequencyRequest, ::viam::component::board::v1::SetPWMFrequencyResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::board::v1::SetPWMFrequencyRequest* request, ::viam::component::board::v1::SetPWMFrequencyResponse* response) { return this->SetPWMFrequency(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::board::v1::SetPWMFrequencyRequest* request, ::viam::component::board::v1::SetPWMFrequencyResponse* response) { return this->SetPWMFrequency(context, request, response); }));} void SetMessageAllocatorFor_SetPWMFrequency( - ::grpc::MessageAllocator< ::viam::component::board::v1::SetPWMFrequencyRequest, ::viam::component::board::v1::SetPWMFrequencyResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::board::v1::SetPWMFrequencyRequest, ::viam::component::board::v1::SetPWMFrequencyResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(5); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::board::v1::SetPWMFrequencyRequest, ::viam::component::board::v1::SetPWMFrequencyResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(5); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::board::v1::SetPWMFrequencyRequest, ::viam::component::board::v1::SetPWMFrequencyResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_SetPWMFrequency() override { + ~ExperimentalWithCallbackMethod_SetPWMFrequency() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -869,26 +1236,46 @@ class BoardService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* SetPWMFrequency( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::board::v1::SetPWMFrequencyRequest* /*request*/, ::viam::component::board::v1::SetPWMFrequencyResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::board::v1::SetPWMFrequencyRequest* /*request*/, ::viam::component::board::v1::SetPWMFrequencyResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* SetPWMFrequency( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::board::v1::SetPWMFrequencyRequest* /*request*/, ::viam::component::board::v1::SetPWMFrequencyResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_DoCommand : public BaseClass { + class ExperimentalWithCallbackMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_DoCommand() { - ::grpc::Service::MarkMethodCallback(6, - new ::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( + ExperimentalWithCallbackMethod_DoCommand() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(6, + new ::grpc_impl::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); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + 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::experimental::MessageAllocator< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(6); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(6); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_DoCommand() override { + ~ExperimentalWithCallbackMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -896,26 +1283,46 @@ class BoardService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DoCommand( - ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DoCommand( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_ReadAnalogReader : public BaseClass { + class ExperimentalWithCallbackMethod_ReadAnalogReader : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_ReadAnalogReader() { - ::grpc::Service::MarkMethodCallback(7, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::board::v1::ReadAnalogReaderRequest, ::viam::component::board::v1::ReadAnalogReaderResponse>( + ExperimentalWithCallbackMethod_ReadAnalogReader() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(7, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::board::v1::ReadAnalogReaderRequest, ::viam::component::board::v1::ReadAnalogReaderResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::board::v1::ReadAnalogReaderRequest* request, ::viam::component::board::v1::ReadAnalogReaderResponse* response) { return this->ReadAnalogReader(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::board::v1::ReadAnalogReaderRequest* request, ::viam::component::board::v1::ReadAnalogReaderResponse* response) { return this->ReadAnalogReader(context, request, response); }));} void SetMessageAllocatorFor_ReadAnalogReader( - ::grpc::MessageAllocator< ::viam::component::board::v1::ReadAnalogReaderRequest, ::viam::component::board::v1::ReadAnalogReaderResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::board::v1::ReadAnalogReaderRequest, ::viam::component::board::v1::ReadAnalogReaderResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(7); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::board::v1::ReadAnalogReaderRequest, ::viam::component::board::v1::ReadAnalogReaderResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(7); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::board::v1::ReadAnalogReaderRequest, ::viam::component::board::v1::ReadAnalogReaderResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_ReadAnalogReader() override { + ~ExperimentalWithCallbackMethod_ReadAnalogReader() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -923,26 +1330,46 @@ class BoardService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* ReadAnalogReader( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::board::v1::ReadAnalogReaderRequest* /*request*/, ::viam::component::board::v1::ReadAnalogReaderResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::board::v1::ReadAnalogReaderRequest* /*request*/, ::viam::component::board::v1::ReadAnalogReaderResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ReadAnalogReader( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::board::v1::ReadAnalogReaderRequest* /*request*/, ::viam::component::board::v1::ReadAnalogReaderResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_WriteAnalog : public BaseClass { + class ExperimentalWithCallbackMethod_WriteAnalog : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_WriteAnalog() { - ::grpc::Service::MarkMethodCallback(8, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::board::v1::WriteAnalogRequest, ::viam::component::board::v1::WriteAnalogResponse>( + ExperimentalWithCallbackMethod_WriteAnalog() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(8, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::board::v1::WriteAnalogRequest, ::viam::component::board::v1::WriteAnalogResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::board::v1::WriteAnalogRequest* request, ::viam::component::board::v1::WriteAnalogResponse* response) { return this->WriteAnalog(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::board::v1::WriteAnalogRequest* request, ::viam::component::board::v1::WriteAnalogResponse* response) { return this->WriteAnalog(context, request, response); }));} void SetMessageAllocatorFor_WriteAnalog( - ::grpc::MessageAllocator< ::viam::component::board::v1::WriteAnalogRequest, ::viam::component::board::v1::WriteAnalogResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::board::v1::WriteAnalogRequest, ::viam::component::board::v1::WriteAnalogResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(8); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::board::v1::WriteAnalogRequest, ::viam::component::board::v1::WriteAnalogResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(8); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::board::v1::WriteAnalogRequest, ::viam::component::board::v1::WriteAnalogResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_WriteAnalog() override { + ~ExperimentalWithCallbackMethod_WriteAnalog() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -950,26 +1377,46 @@ class BoardService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* WriteAnalog( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::board::v1::WriteAnalogRequest* /*request*/, ::viam::component::board::v1::WriteAnalogResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::board::v1::WriteAnalogRequest* /*request*/, ::viam::component::board::v1::WriteAnalogResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* WriteAnalog( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::board::v1::WriteAnalogRequest* /*request*/, ::viam::component::board::v1::WriteAnalogResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetDigitalInterruptValue : public BaseClass { + class ExperimentalWithCallbackMethod_GetDigitalInterruptValue : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetDigitalInterruptValue() { - ::grpc::Service::MarkMethodCallback(9, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::board::v1::GetDigitalInterruptValueRequest, ::viam::component::board::v1::GetDigitalInterruptValueResponse>( + ExperimentalWithCallbackMethod_GetDigitalInterruptValue() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(9, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::board::v1::GetDigitalInterruptValueRequest, ::viam::component::board::v1::GetDigitalInterruptValueResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::board::v1::GetDigitalInterruptValueRequest* request, ::viam::component::board::v1::GetDigitalInterruptValueResponse* response) { return this->GetDigitalInterruptValue(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::board::v1::GetDigitalInterruptValueRequest* request, ::viam::component::board::v1::GetDigitalInterruptValueResponse* response) { return this->GetDigitalInterruptValue(context, request, response); }));} void SetMessageAllocatorFor_GetDigitalInterruptValue( - ::grpc::MessageAllocator< ::viam::component::board::v1::GetDigitalInterruptValueRequest, ::viam::component::board::v1::GetDigitalInterruptValueResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::board::v1::GetDigitalInterruptValueRequest, ::viam::component::board::v1::GetDigitalInterruptValueResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(9); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::board::v1::GetDigitalInterruptValueRequest, ::viam::component::board::v1::GetDigitalInterruptValueResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(9); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::board::v1::GetDigitalInterruptValueRequest, ::viam::component::board::v1::GetDigitalInterruptValueResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetDigitalInterruptValue() override { + ~ExperimentalWithCallbackMethod_GetDigitalInterruptValue() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -977,21 +1424,37 @@ class BoardService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetDigitalInterruptValue( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::board::v1::GetDigitalInterruptValueRequest* /*request*/, ::viam::component::board::v1::GetDigitalInterruptValueResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::board::v1::GetDigitalInterruptValueRequest* /*request*/, ::viam::component::board::v1::GetDigitalInterruptValueResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetDigitalInterruptValue( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::board::v1::GetDigitalInterruptValueRequest* /*request*/, ::viam::component::board::v1::GetDigitalInterruptValueResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_StreamTicks : public BaseClass { + class ExperimentalWithCallbackMethod_StreamTicks : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_StreamTicks() { - ::grpc::Service::MarkMethodCallback(10, - new ::grpc::internal::CallbackServerStreamingHandler< ::viam::component::board::v1::StreamTicksRequest, ::viam::component::board::v1::StreamTicksResponse>( + ExperimentalWithCallbackMethod_StreamTicks() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(10, + new ::grpc_impl::internal::CallbackServerStreamingHandler< ::viam::component::board::v1::StreamTicksRequest, ::viam::component::board::v1::StreamTicksResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::board::v1::StreamTicksRequest* request) { return this->StreamTicks(context, request); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::board::v1::StreamTicksRequest* request) { return this->StreamTicks(context, request); })); } - ~WithCallbackMethod_StreamTicks() override { + ~ExperimentalWithCallbackMethod_StreamTicks() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -999,26 +1462,46 @@ class BoardService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerWriteReactor< ::viam::component::board::v1::StreamTicksResponse>* StreamTicks( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::board::v1::StreamTicksRequest* /*request*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::board::v1::StreamTicksRequest* /*request*/) + #else + virtual ::grpc::experimental::ServerWriteReactor< ::viam::component::board::v1::StreamTicksResponse>* StreamTicks( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::board::v1::StreamTicksRequest* /*request*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_SetPowerMode : public BaseClass { + class ExperimentalWithCallbackMethod_SetPowerMode : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_SetPowerMode() { - ::grpc::Service::MarkMethodCallback(11, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::board::v1::SetPowerModeRequest, ::viam::component::board::v1::SetPowerModeResponse>( + ExperimentalWithCallbackMethod_SetPowerMode() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(11, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::board::v1::SetPowerModeRequest, ::viam::component::board::v1::SetPowerModeResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::board::v1::SetPowerModeRequest* request, ::viam::component::board::v1::SetPowerModeResponse* response) { return this->SetPowerMode(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::board::v1::SetPowerModeRequest* request, ::viam::component::board::v1::SetPowerModeResponse* response) { return this->SetPowerMode(context, request, response); }));} void SetMessageAllocatorFor_SetPowerMode( - ::grpc::MessageAllocator< ::viam::component::board::v1::SetPowerModeRequest, ::viam::component::board::v1::SetPowerModeResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::board::v1::SetPowerModeRequest, ::viam::component::board::v1::SetPowerModeResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(11); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::board::v1::SetPowerModeRequest, ::viam::component::board::v1::SetPowerModeResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(11); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::board::v1::SetPowerModeRequest, ::viam::component::board::v1::SetPowerModeResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_SetPowerMode() override { + ~ExperimentalWithCallbackMethod_SetPowerMode() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1026,26 +1509,46 @@ class BoardService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* SetPowerMode( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::board::v1::SetPowerModeRequest* /*request*/, ::viam::component::board::v1::SetPowerModeResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::board::v1::SetPowerModeRequest* /*request*/, ::viam::component::board::v1::SetPowerModeResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* SetPowerMode( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::board::v1::SetPowerModeRequest* /*request*/, ::viam::component::board::v1::SetPowerModeResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetGeometries : public BaseClass { + class ExperimentalWithCallbackMethod_GetGeometries : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetGeometries() { - ::grpc::Service::MarkMethodCallback(12, - new ::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( + ExperimentalWithCallbackMethod_GetGeometries() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(12, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response) { return this->GetGeometries(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response) { return this->GetGeometries(context, request, response); }));} void SetMessageAllocatorFor_GetGeometries( - ::grpc::MessageAllocator< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(12); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(12); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetGeometries() override { + ~ExperimentalWithCallbackMethod_GetGeometries() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1053,11 +1556,20 @@ class BoardService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetGeometries( - ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::GetGeometriesRequest* /*request*/, ::viam::common::v1::GetGeometriesResponse* /*response*/) { return nullptr; } - }; - typedef WithCallbackMethod_SetGPIO > > > > > > > > > > > > CallbackService; - typedef CallbackService ExperimentalCallbackService; + ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::GetGeometriesRequest* /*request*/, ::viam::common::v1::GetGeometriesResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetGeometries( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::common::v1::GetGeometriesRequest* /*request*/, ::viam::common::v1::GetGeometriesResponse* /*response*/) + #endif + { return nullptr; } + }; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef ExperimentalWithCallbackMethod_SetGPIO > > > > > > > > > > > > CallbackService; + #endif + + typedef ExperimentalWithCallbackMethod_SetGPIO > > > > > > > > > > > > ExperimentalCallbackService; template class WithGenericMethod_SetGPIO : public BaseClass { private: @@ -1540,17 +2052,27 @@ class BoardService final { } }; template - class WithRawCallbackMethod_SetGPIO : public BaseClass { + class ExperimentalWithRawCallbackMethod_SetGPIO : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_SetGPIO() { - ::grpc::Service::MarkMethodRawCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_SetGPIO() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SetGPIO(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SetGPIO(context, request, response); })); } - ~WithRawCallbackMethod_SetGPIO() override { + ~ExperimentalWithRawCallbackMethod_SetGPIO() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1558,21 +2080,37 @@ class BoardService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* SetGPIO( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* SetGPIO( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetGPIO : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetGPIO : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetGPIO() { - ::grpc::Service::MarkMethodRawCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetGPIO() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetGPIO(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetGPIO(context, request, response); })); } - ~WithRawCallbackMethod_GetGPIO() override { + ~ExperimentalWithRawCallbackMethod_GetGPIO() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1580,21 +2118,37 @@ class BoardService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetGPIO( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetGPIO( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_PWM : public BaseClass { + class ExperimentalWithRawCallbackMethod_PWM : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_PWM() { - ::grpc::Service::MarkMethodRawCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_PWM() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(2, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->PWM(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->PWM(context, request, response); })); } - ~WithRawCallbackMethod_PWM() override { + ~ExperimentalWithRawCallbackMethod_PWM() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1602,21 +2156,37 @@ class BoardService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* PWM( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* PWM( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_SetPWM : public BaseClass { + class ExperimentalWithRawCallbackMethod_SetPWM : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_SetPWM() { - ::grpc::Service::MarkMethodRawCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_SetPWM() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(3, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SetPWM(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SetPWM(context, request, response); })); } - ~WithRawCallbackMethod_SetPWM() override { + ~ExperimentalWithRawCallbackMethod_SetPWM() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1624,21 +2194,37 @@ class BoardService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* SetPWM( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* SetPWM( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_PWMFrequency : public BaseClass { + class ExperimentalWithRawCallbackMethod_PWMFrequency : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_PWMFrequency() { - ::grpc::Service::MarkMethodRawCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_PWMFrequency() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(4, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->PWMFrequency(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->PWMFrequency(context, request, response); })); } - ~WithRawCallbackMethod_PWMFrequency() override { + ~ExperimentalWithRawCallbackMethod_PWMFrequency() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1646,21 +2232,37 @@ class BoardService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* PWMFrequency( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* PWMFrequency( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_SetPWMFrequency : public BaseClass { + class ExperimentalWithRawCallbackMethod_SetPWMFrequency : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_SetPWMFrequency() { - ::grpc::Service::MarkMethodRawCallback(5, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_SetPWMFrequency() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(5, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SetPWMFrequency(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SetPWMFrequency(context, request, response); })); } - ~WithRawCallbackMethod_SetPWMFrequency() override { + ~ExperimentalWithRawCallbackMethod_SetPWMFrequency() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1668,21 +2270,37 @@ class BoardService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* SetPWMFrequency( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* SetPWMFrequency( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_DoCommand : public BaseClass { + class ExperimentalWithRawCallbackMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_DoCommand() { - ::grpc::Service::MarkMethodRawCallback(6, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_DoCommand() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(6, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DoCommand(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DoCommand(context, request, response); })); } - ~WithRawCallbackMethod_DoCommand() override { + ~ExperimentalWithRawCallbackMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1690,21 +2308,37 @@ class BoardService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DoCommand( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DoCommand( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_ReadAnalogReader : public BaseClass { + class ExperimentalWithRawCallbackMethod_ReadAnalogReader : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_ReadAnalogReader() { - ::grpc::Service::MarkMethodRawCallback(7, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_ReadAnalogReader() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(7, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ReadAnalogReader(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ReadAnalogReader(context, request, response); })); } - ~WithRawCallbackMethod_ReadAnalogReader() override { + ~ExperimentalWithRawCallbackMethod_ReadAnalogReader() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1712,21 +2346,37 @@ class BoardService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* ReadAnalogReader( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ReadAnalogReader( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_WriteAnalog : public BaseClass { + class ExperimentalWithRawCallbackMethod_WriteAnalog : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_WriteAnalog() { - ::grpc::Service::MarkMethodRawCallback(8, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_WriteAnalog() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(8, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->WriteAnalog(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->WriteAnalog(context, request, response); })); } - ~WithRawCallbackMethod_WriteAnalog() override { + ~ExperimentalWithRawCallbackMethod_WriteAnalog() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1734,21 +2384,37 @@ class BoardService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* WriteAnalog( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* WriteAnalog( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetDigitalInterruptValue : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetDigitalInterruptValue : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetDigitalInterruptValue() { - ::grpc::Service::MarkMethodRawCallback(9, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetDigitalInterruptValue() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(9, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetDigitalInterruptValue(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetDigitalInterruptValue(context, request, response); })); } - ~WithRawCallbackMethod_GetDigitalInterruptValue() override { + ~ExperimentalWithRawCallbackMethod_GetDigitalInterruptValue() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1756,21 +2422,37 @@ class BoardService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetDigitalInterruptValue( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetDigitalInterruptValue( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_StreamTicks : public BaseClass { + class ExperimentalWithRawCallbackMethod_StreamTicks : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_StreamTicks() { - ::grpc::Service::MarkMethodRawCallback(10, - new ::grpc::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_StreamTicks() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(10, + new ::grpc_impl::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const::grpc::ByteBuffer* request) { return this->StreamTicks(context, request); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const::grpc::ByteBuffer* request) { return this->StreamTicks(context, request); })); } - ~WithRawCallbackMethod_StreamTicks() override { + ~ExperimentalWithRawCallbackMethod_StreamTicks() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1778,21 +2460,37 @@ class BoardService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerWriteReactor< ::grpc::ByteBuffer>* StreamTicks( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) + #else + virtual ::grpc::experimental::ServerWriteReactor< ::grpc::ByteBuffer>* StreamTicks( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_SetPowerMode : public BaseClass { + class ExperimentalWithRawCallbackMethod_SetPowerMode : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_SetPowerMode() { - ::grpc::Service::MarkMethodRawCallback(11, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_SetPowerMode() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(11, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SetPowerMode(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SetPowerMode(context, request, response); })); } - ~WithRawCallbackMethod_SetPowerMode() override { + ~ExperimentalWithRawCallbackMethod_SetPowerMode() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1800,21 +2498,37 @@ class BoardService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* SetPowerMode( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* SetPowerMode( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetGeometries : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetGeometries : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetGeometries() { - ::grpc::Service::MarkMethodRawCallback(12, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetGeometries() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(12, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetGeometries(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetGeometries(context, request, response); })); } - ~WithRawCallbackMethod_GetGeometries() override { + ~ExperimentalWithRawCallbackMethod_GetGeometries() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1822,8 +2536,14 @@ class BoardService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetGeometries( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetGeometries( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template class WithStreamedUnaryMethod_SetGPIO : public BaseClass { @@ -1834,8 +2554,8 @@ class BoardService final { ::grpc::Service::MarkMethodStreamed(0, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::board::v1::SetGPIORequest, ::viam::component::board::v1::SetGPIOResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::board::v1::SetGPIORequest, ::viam::component::board::v1::SetGPIOResponse>* streamer) { return this->StreamedSetGPIO(context, streamer); @@ -1861,8 +2581,8 @@ class BoardService final { ::grpc::Service::MarkMethodStreamed(1, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::board::v1::GetGPIORequest, ::viam::component::board::v1::GetGPIOResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::board::v1::GetGPIORequest, ::viam::component::board::v1::GetGPIOResponse>* streamer) { return this->StreamedGetGPIO(context, streamer); @@ -1888,8 +2608,8 @@ class BoardService final { ::grpc::Service::MarkMethodStreamed(2, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::board::v1::PWMRequest, ::viam::component::board::v1::PWMResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::board::v1::PWMRequest, ::viam::component::board::v1::PWMResponse>* streamer) { return this->StreamedPWM(context, streamer); @@ -1915,8 +2635,8 @@ class BoardService final { ::grpc::Service::MarkMethodStreamed(3, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::board::v1::SetPWMRequest, ::viam::component::board::v1::SetPWMResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::board::v1::SetPWMRequest, ::viam::component::board::v1::SetPWMResponse>* streamer) { return this->StreamedSetPWM(context, streamer); @@ -1942,8 +2662,8 @@ class BoardService final { ::grpc::Service::MarkMethodStreamed(4, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::board::v1::PWMFrequencyRequest, ::viam::component::board::v1::PWMFrequencyResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::board::v1::PWMFrequencyRequest, ::viam::component::board::v1::PWMFrequencyResponse>* streamer) { return this->StreamedPWMFrequency(context, streamer); @@ -1969,8 +2689,8 @@ class BoardService final { ::grpc::Service::MarkMethodStreamed(5, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::board::v1::SetPWMFrequencyRequest, ::viam::component::board::v1::SetPWMFrequencyResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::board::v1::SetPWMFrequencyRequest, ::viam::component::board::v1::SetPWMFrequencyResponse>* streamer) { return this->StreamedSetPWMFrequency(context, streamer); @@ -1996,8 +2716,8 @@ class BoardService final { ::grpc::Service::MarkMethodStreamed(6, new ::grpc::internal::StreamedUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* streamer) { return this->StreamedDoCommand(context, streamer); @@ -2023,8 +2743,8 @@ class BoardService final { ::grpc::Service::MarkMethodStreamed(7, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::board::v1::ReadAnalogReaderRequest, ::viam::component::board::v1::ReadAnalogReaderResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::board::v1::ReadAnalogReaderRequest, ::viam::component::board::v1::ReadAnalogReaderResponse>* streamer) { return this->StreamedReadAnalogReader(context, streamer); @@ -2050,8 +2770,8 @@ class BoardService final { ::grpc::Service::MarkMethodStreamed(8, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::board::v1::WriteAnalogRequest, ::viam::component::board::v1::WriteAnalogResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::board::v1::WriteAnalogRequest, ::viam::component::board::v1::WriteAnalogResponse>* streamer) { return this->StreamedWriteAnalog(context, streamer); @@ -2077,8 +2797,8 @@ class BoardService final { ::grpc::Service::MarkMethodStreamed(9, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::board::v1::GetDigitalInterruptValueRequest, ::viam::component::board::v1::GetDigitalInterruptValueResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::board::v1::GetDigitalInterruptValueRequest, ::viam::component::board::v1::GetDigitalInterruptValueResponse>* streamer) { return this->StreamedGetDigitalInterruptValue(context, streamer); @@ -2104,8 +2824,8 @@ class BoardService final { ::grpc::Service::MarkMethodStreamed(11, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::board::v1::SetPowerModeRequest, ::viam::component::board::v1::SetPowerModeResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::board::v1::SetPowerModeRequest, ::viam::component::board::v1::SetPowerModeResponse>* streamer) { return this->StreamedSetPowerMode(context, streamer); @@ -2131,8 +2851,8 @@ class BoardService final { ::grpc::Service::MarkMethodStreamed(12, new ::grpc::internal::StreamedUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>* streamer) { return this->StreamedGetGeometries(context, streamer); @@ -2159,8 +2879,8 @@ class BoardService final { ::grpc::Service::MarkMethodStreamed(10, new ::grpc::internal::SplitServerStreamingHandler< ::viam::component::board::v1::StreamTicksRequest, ::viam::component::board::v1::StreamTicksResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerSplitStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerSplitStreamer< ::viam::component::board::v1::StreamTicksRequest, ::viam::component::board::v1::StreamTicksResponse>* streamer) { return this->StreamedStreamTicks(context, streamer); diff --git a/src/viam/api/component/board/v1/board.pb.cc b/src/viam/api/component/board/v1/board.pb.cc index 32d0fa71f..9b497459e 100644 --- a/src/viam/api/component/board/v1/board.pb.cc +++ b/src/viam/api/component/board/v1/board.pb.cc @@ -4,1321 +4,1062 @@ #include "component/board/v1/board.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace viam { namespace component { namespace board { namespace v1 { - template -PROTOBUF_CONSTEXPR WriteAnalogResponse::WriteAnalogResponse(::_pbi::ConstantInitialized) {} -struct WriteAnalogResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR WriteAnalogResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~WriteAnalogResponseDefaultTypeInternal() {} - union { - WriteAnalogResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WriteAnalogResponseDefaultTypeInternal _WriteAnalogResponse_default_instance_; - -inline constexpr StreamTicksResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : pin_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - time_{::uint64_t{0u}}, - high_{false}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR StreamTicksResponse::StreamTicksResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct StreamTicksResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR StreamTicksResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StreamTicksResponseDefaultTypeInternal() {} - union { - StreamTicksResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StreamTicksResponseDefaultTypeInternal _StreamTicksResponse_default_instance_; - template -PROTOBUF_CONSTEXPR Status_DigitalInterruptsEntry_DoNotUse::Status_DigitalInterruptsEntry_DoNotUse(::_pbi::ConstantInitialized) {} -struct Status_DigitalInterruptsEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR Status_DigitalInterruptsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~Status_DigitalInterruptsEntry_DoNotUseDefaultTypeInternal() {} - union { - Status_DigitalInterruptsEntry_DoNotUse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Status_DigitalInterruptsEntry_DoNotUseDefaultTypeInternal _Status_DigitalInterruptsEntry_DoNotUse_default_instance_; - template -PROTOBUF_CONSTEXPR Status_AnalogsEntry_DoNotUse::Status_AnalogsEntry_DoNotUse(::_pbi::ConstantInitialized) {} +PROTOBUF_CONSTEXPR Status_AnalogsEntry_DoNotUse::Status_AnalogsEntry_DoNotUse( + ::_pbi::ConstantInitialized){} struct Status_AnalogsEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR Status_AnalogsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR Status_AnalogsEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~Status_AnalogsEntry_DoNotUseDefaultTypeInternal() {} union { Status_AnalogsEntry_DoNotUse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Status_AnalogsEntry_DoNotUseDefaultTypeInternal _Status_AnalogsEntry_DoNotUse_default_instance_; - template -PROTOBUF_CONSTEXPR SetPowerModeResponse::SetPowerModeResponse(::_pbi::ConstantInitialized) {} -struct SetPowerModeResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetPowerModeResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetPowerModeResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Status_AnalogsEntry_DoNotUseDefaultTypeInternal _Status_AnalogsEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR Status_DigitalInterruptsEntry_DoNotUse::Status_DigitalInterruptsEntry_DoNotUse( + ::_pbi::ConstantInitialized){} +struct Status_DigitalInterruptsEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR Status_DigitalInterruptsEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Status_DigitalInterruptsEntry_DoNotUseDefaultTypeInternal() {} union { - SetPowerModeResponse _instance; + Status_DigitalInterruptsEntry_DoNotUse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetPowerModeResponseDefaultTypeInternal _SetPowerModeResponse_default_instance_; - template -PROTOBUF_CONSTEXPR SetPWMResponse::SetPWMResponse(::_pbi::ConstantInitialized) {} -struct SetPWMResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetPWMResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetPWMResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Status_DigitalInterruptsEntry_DoNotUseDefaultTypeInternal _Status_DigitalInterruptsEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR Status::Status( + ::_pbi::ConstantInitialized) + : analogs_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + , digital_interrupts_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}){} +struct StatusDefaultTypeInternal { + PROTOBUF_CONSTEXPR StatusDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StatusDefaultTypeInternal() {} union { - SetPWMResponse _instance; + Status _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetPWMResponseDefaultTypeInternal _SetPWMResponse_default_instance_; - template -PROTOBUF_CONSTEXPR SetPWMFrequencyResponse::SetPWMFrequencyResponse(::_pbi::ConstantInitialized) {} -struct SetPWMFrequencyResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetPWMFrequencyResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetPWMFrequencyResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StatusDefaultTypeInternal _Status_default_instance_; +PROTOBUF_CONSTEXPR SetGPIORequest::SetGPIORequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , pin_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr) + , high_(false){} +struct SetGPIORequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SetGPIORequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SetGPIORequestDefaultTypeInternal() {} union { - SetPWMFrequencyResponse _instance; + SetGPIORequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetPWMFrequencyResponseDefaultTypeInternal _SetPWMFrequencyResponse_default_instance_; - template -PROTOBUF_CONSTEXPR SetGPIOResponse::SetGPIOResponse(::_pbi::ConstantInitialized) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetGPIORequestDefaultTypeInternal _SetGPIORequest_default_instance_; +PROTOBUF_CONSTEXPR SetGPIOResponse::SetGPIOResponse( + ::_pbi::ConstantInitialized){} struct SetGPIOResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetGPIOResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SetGPIOResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~SetGPIOResponseDefaultTypeInternal() {} union { SetGPIOResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetGPIOResponseDefaultTypeInternal _SetGPIOResponse_default_instance_; - -inline constexpr ReadAnalogReaderResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : value_{0}, - min_range_{0}, - max_range_{0}, - step_size_{0}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR ReadAnalogReaderResponse::ReadAnalogReaderResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ReadAnalogReaderResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ReadAnalogReaderResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ReadAnalogReaderResponseDefaultTypeInternal() {} - union { - ReadAnalogReaderResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ReadAnalogReaderResponseDefaultTypeInternal _ReadAnalogReaderResponse_default_instance_; - -inline constexpr PWMResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : duty_cycle_pct_{0}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR PWMResponse::PWMResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct PWMResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR PWMResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~PWMResponseDefaultTypeInternal() {} - union { - PWMResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PWMResponseDefaultTypeInternal _PWMResponse_default_instance_; - -inline constexpr PWMFrequencyResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : frequency_hz_{::uint64_t{0u}}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR PWMFrequencyResponse::PWMFrequencyResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct PWMFrequencyResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR PWMFrequencyResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~PWMFrequencyResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetGPIOResponseDefaultTypeInternal _SetGPIOResponse_default_instance_; +PROTOBUF_CONSTEXPR GetGPIORequest::GetGPIORequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , pin_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} +struct GetGPIORequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetGPIORequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetGPIORequestDefaultTypeInternal() {} union { - PWMFrequencyResponse _instance; + GetGPIORequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PWMFrequencyResponseDefaultTypeInternal _PWMFrequencyResponse_default_instance_; - -inline constexpr GetGPIOResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : high_{false}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetGPIOResponse::GetGPIOResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetGPIORequestDefaultTypeInternal _GetGPIORequest_default_instance_; +PROTOBUF_CONSTEXPR GetGPIOResponse::GetGPIOResponse( + ::_pbi::ConstantInitialized) + : high_(false){} struct GetGPIOResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetGPIOResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GetGPIOResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~GetGPIOResponseDefaultTypeInternal() {} union { GetGPIOResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetGPIOResponseDefaultTypeInternal _GetGPIOResponse_default_instance_; - -inline constexpr GetDigitalInterruptValueResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : value_{::int64_t{0}}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetDigitalInterruptValueResponse::GetDigitalInterruptValueResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetDigitalInterruptValueResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetDigitalInterruptValueResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetDigitalInterruptValueResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetGPIOResponseDefaultTypeInternal _GetGPIOResponse_default_instance_; +PROTOBUF_CONSTEXPR PWMRequest::PWMRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , pin_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} +struct PWMRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR PWMRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~PWMRequestDefaultTypeInternal() {} union { - GetDigitalInterruptValueResponse _instance; + PWMRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetDigitalInterruptValueResponseDefaultTypeInternal _GetDigitalInterruptValueResponse_default_instance_; - -inline constexpr WriteAnalogRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - pin_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr}, - value_{0} {} - -template -PROTOBUF_CONSTEXPR WriteAnalogRequest::WriteAnalogRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct WriteAnalogRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR WriteAnalogRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~WriteAnalogRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PWMRequestDefaultTypeInternal _PWMRequest_default_instance_; +PROTOBUF_CONSTEXPR PWMResponse::PWMResponse( + ::_pbi::ConstantInitialized) + : duty_cycle_pct_(0){} +struct PWMResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR PWMResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~PWMResponseDefaultTypeInternal() {} union { - WriteAnalogRequest _instance; + PWMResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WriteAnalogRequestDefaultTypeInternal _WriteAnalogRequest_default_instance_; - -inline constexpr StreamTicksRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - pin_names_{}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR StreamTicksRequest::StreamTicksRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct StreamTicksRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR StreamTicksRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StreamTicksRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PWMResponseDefaultTypeInternal _PWMResponse_default_instance_; +PROTOBUF_CONSTEXPR SetPWMRequest::SetPWMRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , pin_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr) + , duty_cycle_pct_(0){} +struct SetPWMRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SetPWMRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SetPWMRequestDefaultTypeInternal() {} union { - StreamTicksRequest _instance; + SetPWMRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StreamTicksRequestDefaultTypeInternal _StreamTicksRequest_default_instance_; - -inline constexpr Status::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : analogs_{}, - digital_interrupts_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR Status::Status(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct StatusDefaultTypeInternal { - PROTOBUF_CONSTEXPR StatusDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StatusDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetPWMRequestDefaultTypeInternal _SetPWMRequest_default_instance_; +PROTOBUF_CONSTEXPR SetPWMResponse::SetPWMResponse( + ::_pbi::ConstantInitialized){} +struct SetPWMResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR SetPWMResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SetPWMResponseDefaultTypeInternal() {} union { - Status _instance; + SetPWMResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StatusDefaultTypeInternal _Status_default_instance_; - -inline constexpr SetPowerModeRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - duration_{nullptr}, - extra_{nullptr}, - power_mode_{static_cast< ::viam::component::board::v1::PowerMode >(0)} {} - -template -PROTOBUF_CONSTEXPR SetPowerModeRequest::SetPowerModeRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct SetPowerModeRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetPowerModeRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetPowerModeRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetPWMResponseDefaultTypeInternal _SetPWMResponse_default_instance_; +PROTOBUF_CONSTEXPR PWMFrequencyRequest::PWMFrequencyRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , pin_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} +struct PWMFrequencyRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR PWMFrequencyRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~PWMFrequencyRequestDefaultTypeInternal() {} union { - SetPowerModeRequest _instance; + PWMFrequencyRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetPowerModeRequestDefaultTypeInternal _SetPowerModeRequest_default_instance_; - -inline constexpr SetPWMRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - pin_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr}, - duty_cycle_pct_{0} {} - -template -PROTOBUF_CONSTEXPR SetPWMRequest::SetPWMRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct SetPWMRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetPWMRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetPWMRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PWMFrequencyRequestDefaultTypeInternal _PWMFrequencyRequest_default_instance_; +PROTOBUF_CONSTEXPR PWMFrequencyResponse::PWMFrequencyResponse( + ::_pbi::ConstantInitialized) + : frequency_hz_(uint64_t{0u}){} +struct PWMFrequencyResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR PWMFrequencyResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~PWMFrequencyResponseDefaultTypeInternal() {} union { - SetPWMRequest _instance; + PWMFrequencyResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetPWMRequestDefaultTypeInternal _SetPWMRequest_default_instance_; - -inline constexpr SetPWMFrequencyRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - pin_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr}, - frequency_hz_{::uint64_t{0u}} {} - -template -PROTOBUF_CONSTEXPR SetPWMFrequencyRequest::SetPWMFrequencyRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PWMFrequencyResponseDefaultTypeInternal _PWMFrequencyResponse_default_instance_; +PROTOBUF_CONSTEXPR SetPWMFrequencyRequest::SetPWMFrequencyRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , pin_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr) + , frequency_hz_(uint64_t{0u}){} struct SetPWMFrequencyRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetPWMFrequencyRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SetPWMFrequencyRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~SetPWMFrequencyRequestDefaultTypeInternal() {} union { SetPWMFrequencyRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetPWMFrequencyRequestDefaultTypeInternal _SetPWMFrequencyRequest_default_instance_; - -inline constexpr SetGPIORequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - pin_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr}, - high_{false} {} - -template -PROTOBUF_CONSTEXPR SetGPIORequest::SetGPIORequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct SetGPIORequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetGPIORequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetGPIORequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetPWMFrequencyRequestDefaultTypeInternal _SetPWMFrequencyRequest_default_instance_; +PROTOBUF_CONSTEXPR SetPWMFrequencyResponse::SetPWMFrequencyResponse( + ::_pbi::ConstantInitialized){} +struct SetPWMFrequencyResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR SetPWMFrequencyResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SetPWMFrequencyResponseDefaultTypeInternal() {} union { - SetGPIORequest _instance; + SetPWMFrequencyResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetGPIORequestDefaultTypeInternal _SetGPIORequest_default_instance_; - -inline constexpr ReadAnalogReaderRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - board_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - analog_reader_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR ReadAnalogReaderRequest::ReadAnalogReaderRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetPWMFrequencyResponseDefaultTypeInternal _SetPWMFrequencyResponse_default_instance_; +PROTOBUF_CONSTEXPR ReadAnalogReaderRequest::ReadAnalogReaderRequest( + ::_pbi::ConstantInitialized) + : board_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , analog_reader_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} struct ReadAnalogReaderRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR ReadAnalogReaderRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ReadAnalogReaderRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~ReadAnalogReaderRequestDefaultTypeInternal() {} union { ReadAnalogReaderRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ReadAnalogReaderRequestDefaultTypeInternal _ReadAnalogReaderRequest_default_instance_; - -inline constexpr PWMRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - pin_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR PWMRequest::PWMRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct PWMRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR PWMRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~PWMRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ReadAnalogReaderRequestDefaultTypeInternal _ReadAnalogReaderRequest_default_instance_; +PROTOBUF_CONSTEXPR ReadAnalogReaderResponse::ReadAnalogReaderResponse( + ::_pbi::ConstantInitialized) + : value_(0) + , min_range_(0) + , max_range_(0) + , step_size_(0){} +struct ReadAnalogReaderResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ReadAnalogReaderResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ReadAnalogReaderResponseDefaultTypeInternal() {} union { - PWMRequest _instance; + ReadAnalogReaderResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PWMRequestDefaultTypeInternal _PWMRequest_default_instance_; - -inline constexpr PWMFrequencyRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - pin_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR PWMFrequencyRequest::PWMFrequencyRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct PWMFrequencyRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR PWMFrequencyRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~PWMFrequencyRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ReadAnalogReaderResponseDefaultTypeInternal _ReadAnalogReaderResponse_default_instance_; +PROTOBUF_CONSTEXPR WriteAnalogRequest::WriteAnalogRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , pin_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr) + , value_(0){} +struct WriteAnalogRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR WriteAnalogRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~WriteAnalogRequestDefaultTypeInternal() {} union { - PWMFrequencyRequest _instance; + WriteAnalogRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PWMFrequencyRequestDefaultTypeInternal _PWMFrequencyRequest_default_instance_; - -inline constexpr GetGPIORequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - pin_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetGPIORequest::GetGPIORequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetGPIORequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetGPIORequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetGPIORequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WriteAnalogRequestDefaultTypeInternal _WriteAnalogRequest_default_instance_; +PROTOBUF_CONSTEXPR WriteAnalogResponse::WriteAnalogResponse( + ::_pbi::ConstantInitialized){} +struct WriteAnalogResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR WriteAnalogResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~WriteAnalogResponseDefaultTypeInternal() {} union { - GetGPIORequest _instance; + WriteAnalogResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetGPIORequestDefaultTypeInternal _GetGPIORequest_default_instance_; - -inline constexpr GetDigitalInterruptValueRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - board_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - digital_interrupt_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetDigitalInterruptValueRequest::GetDigitalInterruptValueRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WriteAnalogResponseDefaultTypeInternal _WriteAnalogResponse_default_instance_; +PROTOBUF_CONSTEXPR GetDigitalInterruptValueRequest::GetDigitalInterruptValueRequest( + ::_pbi::ConstantInitialized) + : board_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , digital_interrupt_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} struct GetDigitalInterruptValueRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetDigitalInterruptValueRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GetDigitalInterruptValueRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~GetDigitalInterruptValueRequestDefaultTypeInternal() {} union { GetDigitalInterruptValueRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetDigitalInterruptValueRequestDefaultTypeInternal _GetDigitalInterruptValueRequest_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetDigitalInterruptValueRequestDefaultTypeInternal _GetDigitalInterruptValueRequest_default_instance_; +PROTOBUF_CONSTEXPR GetDigitalInterruptValueResponse::GetDigitalInterruptValueResponse( + ::_pbi::ConstantInitialized) + : value_(int64_t{0}){} +struct GetDigitalInterruptValueResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetDigitalInterruptValueResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetDigitalInterruptValueResponseDefaultTypeInternal() {} + union { + GetDigitalInterruptValueResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetDigitalInterruptValueResponseDefaultTypeInternal _GetDigitalInterruptValueResponse_default_instance_; +PROTOBUF_CONSTEXPR StreamTicksRequest::StreamTicksRequest( + ::_pbi::ConstantInitialized) + : pin_names_() + , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} +struct StreamTicksRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR StreamTicksRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StreamTicksRequestDefaultTypeInternal() {} + union { + StreamTicksRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StreamTicksRequestDefaultTypeInternal _StreamTicksRequest_default_instance_; +PROTOBUF_CONSTEXPR StreamTicksResponse::StreamTicksResponse( + ::_pbi::ConstantInitialized) + : pin_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , time_(uint64_t{0u}) + , high_(false){} +struct StreamTicksResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR StreamTicksResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StreamTicksResponseDefaultTypeInternal() {} + union { + StreamTicksResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StreamTicksResponseDefaultTypeInternal _StreamTicksResponse_default_instance_; +PROTOBUF_CONSTEXPR SetPowerModeRequest::SetPowerModeRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , duration_(nullptr) + , extra_(nullptr) + , power_mode_(0) +{} +struct SetPowerModeRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SetPowerModeRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SetPowerModeRequestDefaultTypeInternal() {} + union { + SetPowerModeRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetPowerModeRequestDefaultTypeInternal _SetPowerModeRequest_default_instance_; +PROTOBUF_CONSTEXPR SetPowerModeResponse::SetPowerModeResponse( + ::_pbi::ConstantInitialized){} +struct SetPowerModeResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR SetPowerModeResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SetPowerModeResponseDefaultTypeInternal() {} + union { + SetPowerModeResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetPowerModeResponseDefaultTypeInternal _SetPowerModeResponse_default_instance_; } // namespace v1 } // namespace board } // namespace component } // namespace viam static ::_pb::Metadata file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[25]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_component_2fboard_2fv1_2fboard_2eproto[1]; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_component_2fboard_2fv1_2fboard_2eproto = nullptr; -const ::uint32_t TableStruct_component_2fboard_2fv1_2fboard_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::Status_AnalogsEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::Status_AnalogsEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::Status_AnalogsEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::Status_AnalogsEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::Status_DigitalInterruptsEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::Status_DigitalInterruptsEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::Status_DigitalInterruptsEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::Status_DigitalInterruptsEntry_DoNotUse, value_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::Status, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::Status, _impl_.analogs_), - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::Status, _impl_.digital_interrupts_), - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetGPIORequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetGPIORequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetGPIORequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetGPIORequest, _impl_.pin_), - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetGPIORequest, _impl_.high_), - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetGPIORequest, _impl_.extra_), - ~0u, - ~0u, - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetGPIOResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::GetGPIORequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::GetGPIORequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::GetGPIORequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::GetGPIORequest, _impl_.pin_), - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::GetGPIORequest, _impl_.extra_), - ~0u, - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::GetGPIOResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::GetGPIOResponse, _impl_.high_), - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::PWMRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::PWMRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::PWMRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::PWMRequest, _impl_.pin_), - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::PWMRequest, _impl_.extra_), - ~0u, - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::PWMResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::PWMResponse, _impl_.duty_cycle_pct_), - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetPWMRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetPWMRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetPWMRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetPWMRequest, _impl_.pin_), - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetPWMRequest, _impl_.duty_cycle_pct_), - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetPWMRequest, _impl_.extra_), - ~0u, - ~0u, - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetPWMResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::PWMFrequencyRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::PWMFrequencyRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::PWMFrequencyRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::PWMFrequencyRequest, _impl_.pin_), - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::PWMFrequencyRequest, _impl_.extra_), - ~0u, - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::PWMFrequencyResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::PWMFrequencyResponse, _impl_.frequency_hz_), - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetPWMFrequencyRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetPWMFrequencyRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetPWMFrequencyRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetPWMFrequencyRequest, _impl_.pin_), - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetPWMFrequencyRequest, _impl_.frequency_hz_), - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetPWMFrequencyRequest, _impl_.extra_), - ~0u, - ~0u, - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetPWMFrequencyResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::ReadAnalogReaderRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::ReadAnalogReaderRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::ReadAnalogReaderRequest, _impl_.board_name_), - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::ReadAnalogReaderRequest, _impl_.analog_reader_name_), - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::ReadAnalogReaderRequest, _impl_.extra_), - ~0u, - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::ReadAnalogReaderResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::ReadAnalogReaderResponse, _impl_.value_), - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::ReadAnalogReaderResponse, _impl_.min_range_), - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::ReadAnalogReaderResponse, _impl_.max_range_), - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::ReadAnalogReaderResponse, _impl_.step_size_), - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::WriteAnalogRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::WriteAnalogRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::WriteAnalogRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::WriteAnalogRequest, _impl_.pin_), - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::WriteAnalogRequest, _impl_.value_), - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::WriteAnalogRequest, _impl_.extra_), - ~0u, - ~0u, - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::WriteAnalogResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::GetDigitalInterruptValueRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::GetDigitalInterruptValueRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::GetDigitalInterruptValueRequest, _impl_.board_name_), - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::GetDigitalInterruptValueRequest, _impl_.digital_interrupt_name_), - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::GetDigitalInterruptValueRequest, _impl_.extra_), - ~0u, - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::GetDigitalInterruptValueResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::GetDigitalInterruptValueResponse, _impl_.value_), - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::StreamTicksRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::StreamTicksRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::StreamTicksRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::StreamTicksRequest, _impl_.pin_names_), - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::StreamTicksRequest, _impl_.extra_), - ~0u, - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::StreamTicksResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::StreamTicksResponse, _impl_.pin_name_), - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::StreamTicksResponse, _impl_.time_), - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::StreamTicksResponse, _impl_.high_), - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetPowerModeRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetPowerModeRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetPowerModeRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetPowerModeRequest, _impl_.power_mode_), - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetPowerModeRequest, _impl_.duration_), - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetPowerModeRequest, _impl_.extra_), - ~0u, - ~0u, - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetPowerModeResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_component_2fboard_2fv1_2fboard_2eproto = nullptr; + +const uint32_t TableStruct_component_2fboard_2fv1_2fboard_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::Status_AnalogsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::Status_AnalogsEntry_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::board::v1::Status_AnalogsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::Status_AnalogsEntry_DoNotUse, value_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::Status_DigitalInterruptsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::Status_DigitalInterruptsEntry_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::board::v1::Status_DigitalInterruptsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::Status_DigitalInterruptsEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::Status, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::Status, analogs_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::Status, digital_interrupts_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetGPIORequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetGPIORequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetGPIORequest, pin_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetGPIORequest, high_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetGPIORequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetGPIOResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::GetGPIORequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::GetGPIORequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::GetGPIORequest, pin_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::GetGPIORequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::GetGPIOResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::GetGPIOResponse, high_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::PWMRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::PWMRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::PWMRequest, pin_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::PWMRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::PWMResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::PWMResponse, duty_cycle_pct_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetPWMRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetPWMRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetPWMRequest, pin_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetPWMRequest, duty_cycle_pct_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetPWMRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetPWMResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::PWMFrequencyRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::PWMFrequencyRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::PWMFrequencyRequest, pin_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::PWMFrequencyRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::PWMFrequencyResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::PWMFrequencyResponse, frequency_hz_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetPWMFrequencyRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetPWMFrequencyRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetPWMFrequencyRequest, pin_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetPWMFrequencyRequest, frequency_hz_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetPWMFrequencyRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetPWMFrequencyResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::ReadAnalogReaderRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::ReadAnalogReaderRequest, board_name_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::ReadAnalogReaderRequest, analog_reader_name_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::ReadAnalogReaderRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::ReadAnalogReaderResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::ReadAnalogReaderResponse, value_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::ReadAnalogReaderResponse, min_range_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::ReadAnalogReaderResponse, max_range_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::ReadAnalogReaderResponse, step_size_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::WriteAnalogRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::WriteAnalogRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::WriteAnalogRequest, pin_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::WriteAnalogRequest, value_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::WriteAnalogRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::WriteAnalogResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::GetDigitalInterruptValueRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::GetDigitalInterruptValueRequest, board_name_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::GetDigitalInterruptValueRequest, digital_interrupt_name_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::GetDigitalInterruptValueRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::GetDigitalInterruptValueResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::GetDigitalInterruptValueResponse, value_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::StreamTicksRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::StreamTicksRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::StreamTicksRequest, pin_names_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::StreamTicksRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::StreamTicksResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::StreamTicksResponse, pin_name_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::StreamTicksResponse, time_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::StreamTicksResponse, high_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetPowerModeRequest, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetPowerModeRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetPowerModeRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetPowerModeRequest, power_mode_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetPowerModeRequest, duration_), + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetPowerModeRequest, extra_), + ~0u, + ~0u, + 0, + ~0u, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::board::v1::SetPowerModeResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ }; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, 10, -1, sizeof(::viam::component::board::v1::Status_AnalogsEntry_DoNotUse)}, - {12, 22, -1, sizeof(::viam::component::board::v1::Status_DigitalInterruptsEntry_DoNotUse)}, - {24, -1, -1, sizeof(::viam::component::board::v1::Status)}, - {34, 46, -1, sizeof(::viam::component::board::v1::SetGPIORequest)}, - {50, -1, -1, sizeof(::viam::component::board::v1::SetGPIOResponse)}, - {58, 69, -1, sizeof(::viam::component::board::v1::GetGPIORequest)}, - {72, -1, -1, sizeof(::viam::component::board::v1::GetGPIOResponse)}, - {81, 92, -1, sizeof(::viam::component::board::v1::PWMRequest)}, - {95, -1, -1, sizeof(::viam::component::board::v1::PWMResponse)}, - {104, 116, -1, sizeof(::viam::component::board::v1::SetPWMRequest)}, - {120, -1, -1, sizeof(::viam::component::board::v1::SetPWMResponse)}, - {128, 139, -1, sizeof(::viam::component::board::v1::PWMFrequencyRequest)}, - {142, -1, -1, sizeof(::viam::component::board::v1::PWMFrequencyResponse)}, - {151, 163, -1, sizeof(::viam::component::board::v1::SetPWMFrequencyRequest)}, - {167, -1, -1, sizeof(::viam::component::board::v1::SetPWMFrequencyResponse)}, - {175, 186, -1, sizeof(::viam::component::board::v1::ReadAnalogReaderRequest)}, - {189, -1, -1, sizeof(::viam::component::board::v1::ReadAnalogReaderResponse)}, - {201, 213, -1, sizeof(::viam::component::board::v1::WriteAnalogRequest)}, - {217, -1, -1, sizeof(::viam::component::board::v1::WriteAnalogResponse)}, - {225, 236, -1, sizeof(::viam::component::board::v1::GetDigitalInterruptValueRequest)}, - {239, -1, -1, sizeof(::viam::component::board::v1::GetDigitalInterruptValueResponse)}, - {248, 259, -1, sizeof(::viam::component::board::v1::StreamTicksRequest)}, - {262, -1, -1, sizeof(::viam::component::board::v1::StreamTicksResponse)}, - {273, 285, -1, sizeof(::viam::component::board::v1::SetPowerModeRequest)}, - {289, -1, -1, sizeof(::viam::component::board::v1::SetPowerModeResponse)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, 8, -1, sizeof(::viam::component::board::v1::Status_AnalogsEntry_DoNotUse)}, + { 10, 18, -1, sizeof(::viam::component::board::v1::Status_DigitalInterruptsEntry_DoNotUse)}, + { 20, -1, -1, sizeof(::viam::component::board::v1::Status)}, + { 28, -1, -1, sizeof(::viam::component::board::v1::SetGPIORequest)}, + { 38, -1, -1, sizeof(::viam::component::board::v1::SetGPIOResponse)}, + { 44, -1, -1, sizeof(::viam::component::board::v1::GetGPIORequest)}, + { 53, -1, -1, sizeof(::viam::component::board::v1::GetGPIOResponse)}, + { 60, -1, -1, sizeof(::viam::component::board::v1::PWMRequest)}, + { 69, -1, -1, sizeof(::viam::component::board::v1::PWMResponse)}, + { 76, -1, -1, sizeof(::viam::component::board::v1::SetPWMRequest)}, + { 86, -1, -1, sizeof(::viam::component::board::v1::SetPWMResponse)}, + { 92, -1, -1, sizeof(::viam::component::board::v1::PWMFrequencyRequest)}, + { 101, -1, -1, sizeof(::viam::component::board::v1::PWMFrequencyResponse)}, + { 108, -1, -1, sizeof(::viam::component::board::v1::SetPWMFrequencyRequest)}, + { 118, -1, -1, sizeof(::viam::component::board::v1::SetPWMFrequencyResponse)}, + { 124, -1, -1, sizeof(::viam::component::board::v1::ReadAnalogReaderRequest)}, + { 133, -1, -1, sizeof(::viam::component::board::v1::ReadAnalogReaderResponse)}, + { 143, -1, -1, sizeof(::viam::component::board::v1::WriteAnalogRequest)}, + { 153, -1, -1, sizeof(::viam::component::board::v1::WriteAnalogResponse)}, + { 159, -1, -1, sizeof(::viam::component::board::v1::GetDigitalInterruptValueRequest)}, + { 168, -1, -1, sizeof(::viam::component::board::v1::GetDigitalInterruptValueResponse)}, + { 175, -1, -1, sizeof(::viam::component::board::v1::StreamTicksRequest)}, + { 184, -1, -1, sizeof(::viam::component::board::v1::StreamTicksResponse)}, + { 193, 203, -1, sizeof(::viam::component::board::v1::SetPowerModeRequest)}, + { 207, -1, -1, sizeof(::viam::component::board::v1::SetPowerModeResponse)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::viam::component::board::v1::_Status_AnalogsEntry_DoNotUse_default_instance_._instance, - &::viam::component::board::v1::_Status_DigitalInterruptsEntry_DoNotUse_default_instance_._instance, - &::viam::component::board::v1::_Status_default_instance_._instance, - &::viam::component::board::v1::_SetGPIORequest_default_instance_._instance, - &::viam::component::board::v1::_SetGPIOResponse_default_instance_._instance, - &::viam::component::board::v1::_GetGPIORequest_default_instance_._instance, - &::viam::component::board::v1::_GetGPIOResponse_default_instance_._instance, - &::viam::component::board::v1::_PWMRequest_default_instance_._instance, - &::viam::component::board::v1::_PWMResponse_default_instance_._instance, - &::viam::component::board::v1::_SetPWMRequest_default_instance_._instance, - &::viam::component::board::v1::_SetPWMResponse_default_instance_._instance, - &::viam::component::board::v1::_PWMFrequencyRequest_default_instance_._instance, - &::viam::component::board::v1::_PWMFrequencyResponse_default_instance_._instance, - &::viam::component::board::v1::_SetPWMFrequencyRequest_default_instance_._instance, - &::viam::component::board::v1::_SetPWMFrequencyResponse_default_instance_._instance, - &::viam::component::board::v1::_ReadAnalogReaderRequest_default_instance_._instance, - &::viam::component::board::v1::_ReadAnalogReaderResponse_default_instance_._instance, - &::viam::component::board::v1::_WriteAnalogRequest_default_instance_._instance, - &::viam::component::board::v1::_WriteAnalogResponse_default_instance_._instance, - &::viam::component::board::v1::_GetDigitalInterruptValueRequest_default_instance_._instance, - &::viam::component::board::v1::_GetDigitalInterruptValueResponse_default_instance_._instance, - &::viam::component::board::v1::_StreamTicksRequest_default_instance_._instance, - &::viam::component::board::v1::_StreamTicksResponse_default_instance_._instance, - &::viam::component::board::v1::_SetPowerModeRequest_default_instance_._instance, - &::viam::component::board::v1::_SetPowerModeResponse_default_instance_._instance, + &::viam::component::board::v1::_Status_AnalogsEntry_DoNotUse_default_instance_._instance, + &::viam::component::board::v1::_Status_DigitalInterruptsEntry_DoNotUse_default_instance_._instance, + &::viam::component::board::v1::_Status_default_instance_._instance, + &::viam::component::board::v1::_SetGPIORequest_default_instance_._instance, + &::viam::component::board::v1::_SetGPIOResponse_default_instance_._instance, + &::viam::component::board::v1::_GetGPIORequest_default_instance_._instance, + &::viam::component::board::v1::_GetGPIOResponse_default_instance_._instance, + &::viam::component::board::v1::_PWMRequest_default_instance_._instance, + &::viam::component::board::v1::_PWMResponse_default_instance_._instance, + &::viam::component::board::v1::_SetPWMRequest_default_instance_._instance, + &::viam::component::board::v1::_SetPWMResponse_default_instance_._instance, + &::viam::component::board::v1::_PWMFrequencyRequest_default_instance_._instance, + &::viam::component::board::v1::_PWMFrequencyResponse_default_instance_._instance, + &::viam::component::board::v1::_SetPWMFrequencyRequest_default_instance_._instance, + &::viam::component::board::v1::_SetPWMFrequencyResponse_default_instance_._instance, + &::viam::component::board::v1::_ReadAnalogReaderRequest_default_instance_._instance, + &::viam::component::board::v1::_ReadAnalogReaderResponse_default_instance_._instance, + &::viam::component::board::v1::_WriteAnalogRequest_default_instance_._instance, + &::viam::component::board::v1::_WriteAnalogResponse_default_instance_._instance, + &::viam::component::board::v1::_GetDigitalInterruptValueRequest_default_instance_._instance, + &::viam::component::board::v1::_GetDigitalInterruptValueResponse_default_instance_._instance, + &::viam::component::board::v1::_StreamTicksRequest_default_instance_._instance, + &::viam::component::board::v1::_StreamTicksResponse_default_instance_._instance, + &::viam::component::board::v1::_SetPowerModeRequest_default_instance_._instance, + &::viam::component::board::v1::_SetPowerModeResponse_default_instance_._instance, }; -const char descriptor_table_protodef_component_2fboard_2fv1_2fboard_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n\036component/board/v1/board.proto\022\027viam.c" - "omponent.board.v1\032\026common/v1/common.prot" - "o\032\034google/api/annotations.proto\032\036google/" - "protobuf/duration.proto\032\034google/protobuf" - "/struct.proto\"\271\002\n\006Status\022F\n\007analogs\030\001 \003(" - "\0132,.viam.component.board.v1.Status.Analo" - "gsEntryR\007analogs\022e\n\022digital_interrupts\030\002" - " \003(\01326.viam.component.board.v1.Status.Di" - "gitalInterruptsEntryR\021digitalInterrupts\032" - ":\n\014AnalogsEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005val" - "ue\030\002 \001(\005R\005value:\0028\001\032D\n\026DigitalInterrupts" - "Entry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\003R\005" - "value:\0028\001\"y\n\016SetGPIORequest\022\022\n\004name\030\001 \001(" - "\tR\004name\022\020\n\003pin\030\002 \001(\tR\003pin\022\022\n\004high\030\003 \001(\010R" - "\004high\022-\n\005extra\030c \001(\0132\027.google.protobuf.S" - "tructR\005extra\"\021\n\017SetGPIOResponse\"e\n\016GetGP" - "IORequest\022\022\n\004name\030\001 \001(\tR\004name\022\020\n\003pin\030\002 \001" - "(\tR\003pin\022-\n\005extra\030c \001(\0132\027.google.protobuf" - ".StructR\005extra\"%\n\017GetGPIOResponse\022\022\n\004hig" - "h\030\001 \001(\010R\004high\"a\n\nPWMRequest\022\022\n\004name\030\001 \001(" - "\tR\004name\022\020\n\003pin\030\002 \001(\tR\003pin\022-\n\005extra\030c \001(\013" - "2\027.google.protobuf.StructR\005extra\"3\n\013PWMR" - "esponse\022$\n\016duty_cycle_pct\030\001 \001(\001R\014dutyCyc" - "lePct\"\212\001\n\rSetPWMRequest\022\022\n\004name\030\001 \001(\tR\004n" - "ame\022\020\n\003pin\030\002 \001(\tR\003pin\022$\n\016duty_cycle_pct\030" - "\003 \001(\001R\014dutyCyclePct\022-\n\005extra\030c \001(\0132\027.goo" - "gle.protobuf.StructR\005extra\"\020\n\016SetPWMResp" - "onse\"j\n\023PWMFrequencyRequest\022\022\n\004name\030\001 \001(" - "\tR\004name\022\020\n\003pin\030\002 \001(\tR\003pin\022-\n\005extra\030c \001(\013" - "2\027.google.protobuf.StructR\005extra\"9\n\024PWMF" - "requencyResponse\022!\n\014frequency_hz\030\001 \001(\004R\013" - "frequencyHz\"\220\001\n\026SetPWMFrequencyRequest\022\022" - "\n\004name\030\001 \001(\tR\004name\022\020\n\003pin\030\002 \001(\tR\003pin\022!\n\014" - "frequency_hz\030\003 \001(\004R\013frequencyHz\022-\n\005extra" - "\030c \001(\0132\027.google.protobuf.StructR\005extra\"\031" - "\n\027SetPWMFrequencyResponse\"\225\001\n\027ReadAnalog" - "ReaderRequest\022\035\n\nboard_name\030\001 \001(\tR\tboard" - "Name\022,\n\022analog_reader_name\030\002 \001(\tR\020analog" - "ReaderName\022-\n\005extra\030c \001(\0132\027.google.proto" - "buf.StructR\005extra\"\207\001\n\030ReadAnalogReaderRe" - "sponse\022\024\n\005value\030\001 \001(\005R\005value\022\033\n\tmin_rang" - "e\030\002 \001(\002R\010minRange\022\033\n\tmax_range\030\003 \001(\002R\010ma" - "xRange\022\033\n\tstep_size\030\004 \001(\002R\010stepSize\"\177\n\022W" - "riteAnalogRequest\022\022\n\004name\030\001 \001(\tR\004name\022\020\n" - "\003pin\030\002 \001(\tR\003pin\022\024\n\005value\030\003 \001(\005R\005value\022-\n" - "\005extra\030c \001(\0132\027.google.protobuf.StructR\005e" - "xtra\"\025\n\023WriteAnalogResponse\"\245\001\n\037GetDigit" - "alInterruptValueRequest\022\035\n\nboard_name\030\001 " - "\001(\tR\tboardName\0224\n\026digital_interrupt_name" - "\030\002 \001(\tR\024digitalInterruptName\022-\n\005extra\030c " - "\001(\0132\027.google.protobuf.StructR\005extra\"8\n G" - "etDigitalInterruptValueResponse\022\024\n\005value" - "\030\001 \001(\003R\005value\"t\n\022StreamTicksRequest\022\022\n\004n" - "ame\030\001 \001(\tR\004name\022\033\n\tpin_names\030\002 \003(\tR\010pinN" - "ames\022-\n\005extra\030c \001(\0132\027.google.protobuf.St" - "ructR\005extra\"X\n\023StreamTicksResponse\022\031\n\010pi" - "n_name\030\001 \001(\tR\007pinName\022\022\n\004time\030\002 \001(\004R\004tim" - "e\022\022\n\004high\030\003 \001(\010R\004high\"\344\001\n\023SetPowerModeRe" - "quest\022\022\n\004name\030\001 \001(\tR\004name\022A\n\npower_mode\030" - "\002 \001(\0162\".viam.component.board.v1.PowerMod" - "eR\tpowerMode\022:\n\010duration\030\003 \001(\0132\031.google." - "protobuf.DurationH\000R\010duration\210\001\001\022-\n\005extr" - "a\030c \001(\0132\027.google.protobuf.StructR\005extraB" - "\013\n\t_duration\"\026\n\024SetPowerModeResponse*[\n\t" - "PowerMode\022\032\n\026POWER_MODE_UNSPECIFIED\020\000\022\025\n" - "\021POWER_MODE_NORMAL\020\001\022\033\n\027POWER_MODE_OFFLI" - "NE_DEEP\020\0022\360\020\n\014BoardService\022\216\001\n\007SetGPIO\022\'" - ".viam.component.board.v1.SetGPIORequest\032" - "(.viam.component.board.v1.SetGPIORespons" - "e\"0\202\323\344\223\002*\032(/viam/api/v1/component/board/" - "{name}/gpio\022\216\001\n\007GetGPIO\022\'.viam.component" - ".board.v1.GetGPIORequest\032(.viam.componen" - "t.board.v1.GetGPIOResponse\"0\202\323\344\223\002*\022(/via" - "m/api/v1/component/board/{name}/gpio\022\201\001\n" - "\003PWM\022#.viam.component.board.v1.PWMReques" - "t\032$.viam.component.board.v1.PWMResponse\"" - "/\202\323\344\223\002)\022\'/viam/api/v1/component/board/{n" - "ame}/pwm\022\212\001\n\006SetPWM\022&.viam.component.boa" - "rd.v1.SetPWMRequest\032\'.viam.component.boa" - "rd.v1.SetPWMResponse\"/\202\323\344\223\002)\032\'/viam/api/" - "v1/component/board/{name}/pwm\022\241\001\n\014PWMFre" - "quency\022,.viam.component.board.v1.PWMFreq" - "uencyRequest\032-.viam.component.board.v1.P" - "WMFrequencyResponse\"4\202\323\344\223\002.\022,/viam/api/v" - "1/component/board/{name}/pwm_freq\022\252\001\n\017Se" - "tPWMFrequency\022/.viam.component.board.v1." - "SetPWMFrequencyRequest\0320.viam.component." - "board.v1.SetPWMFrequencyResponse\"4\202\323\344\223\002." - "\032,/viam/api/v1/component/board/{name}/pw" - "m_freq\022\210\001\n\tDoCommand\022 .viam.common.v1.Do" - "CommandRequest\032!.viam.common.v1.DoComman" - "dResponse\"6\202\323\344\223\0020\"./viam/api/v1/componen" - "t/board/{name}/do_command\022\322\001\n\020ReadAnalog" - "Reader\0220.viam.component.board.v1.ReadAna" - "logReaderRequest\0321.viam.component.board." - "v1.ReadAnalogReaderResponse\"Y\202\323\344\223\002S\022Q/vi" - "am/api/v1/component/board/{board_name}/a" - "nalog_reader/{analog_reader_name}/read\022\242" - "\001\n\013WriteAnalog\022+.viam.component.board.v1" - ".WriteAnalogRequest\032,.viam.component.boa" - "rd.v1.WriteAnalogResponse\"8\202\323\344\223\0022\0320/viam" - "/api/v1/component/board/{name}/analog_wr" - "ite\022\363\001\n\030GetDigitalInterruptValue\0228.viam." - "component.board.v1.GetDigitalInterruptVa" - "lueRequest\0329.viam.component.board.v1.Get" - "DigitalInterruptValueResponse\"b\202\323\344\223\002\\\022Z/" - "viam/api/v1/component/board/{board_name}" - "/digital_interrupt/{digital_interrupt_na" - "me}/value\022\243\001\n\013StreamTicks\022+.viam.compone" - "nt.board.v1.StreamTicksRequest\032,.viam.co" - "mponent.board.v1.StreamTicksResponse\"7\202\323" - "\344\223\0021\022//viam/api/v1/component/board/{name" - "}/tick_stream0\001\022\243\001\n\014SetPowerMode\022,.viam." - "component.board.v1.SetPowerModeRequest\032-" - ".viam.component.board.v1.SetPowerModeRes" - "ponse\"6\202\323\344\223\0020\032./viam/api/v1/component/bo" - "ard/{name}/power_mode\022\224\001\n\rGetGeometries\022" - "$.viam.common.v1.GetGeometriesRequest\032%." - "viam.common.v1.GetGeometriesResponse\"6\202\323" - "\344\223\0020\022./viam/api/v1/component/board/{name" - "}/geometriesB\314\001\n\033com.viam.component.boar" - "d.v1B\nBoardProtoP\001Z\"go.viam.com/api/comp" - "onent/board/v1\242\002\003VCB\252\002\027Viam.Component.Bo" - "ard.V1\312\002\027Viam\\Component\\Board\\V1\342\002#Viam\\" - "Component\\Board\\V1\\GPBMetadata\352\002\032Viam::C" - "omponent::Board::V1b\006proto3" -}; -static const ::_pbi::DescriptorTable* const descriptor_table_component_2fboard_2fv1_2fboard_2eproto_deps[4] = - { - &::descriptor_table_common_2fv1_2fcommon_2eproto, - &::descriptor_table_google_2fapi_2fannotations_2eproto, - &::descriptor_table_google_2fprotobuf_2fduration_2eproto, - &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, + +const char descriptor_table_protodef_component_2fboard_2fv1_2fboard_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\036component/board/v1/board.proto\022\027viam.c" + "omponent.board.v1\032\026common/v1/common.prot" + "o\032\034google/api/annotations.proto\032\036google/" + "protobuf/duration.proto\032\034google/protobuf" + "/struct.proto\"\271\002\n\006Status\022F\n\007analogs\030\001 \003(" + "\0132,.viam.component.board.v1.Status.Analo" + "gsEntryR\007analogs\022e\n\022digital_interrupts\030\002" + " \003(\01326.viam.component.board.v1.Status.Di" + "gitalInterruptsEntryR\021digitalInterrupts\032" + ":\n\014AnalogsEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005val" + "ue\030\002 \001(\005R\005value:\0028\001\032D\n\026DigitalInterrupts" + "Entry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\003R\005" + "value:\0028\001\"y\n\016SetGPIORequest\022\022\n\004name\030\001 \001(" + "\tR\004name\022\020\n\003pin\030\002 \001(\tR\003pin\022\022\n\004high\030\003 \001(\010R" + "\004high\022-\n\005extra\030c \001(\0132\027.google.protobuf.S" + "tructR\005extra\"\021\n\017SetGPIOResponse\"e\n\016GetGP" + "IORequest\022\022\n\004name\030\001 \001(\tR\004name\022\020\n\003pin\030\002 \001" + "(\tR\003pin\022-\n\005extra\030c \001(\0132\027.google.protobuf" + ".StructR\005extra\"%\n\017GetGPIOResponse\022\022\n\004hig" + "h\030\001 \001(\010R\004high\"a\n\nPWMRequest\022\022\n\004name\030\001 \001(" + "\tR\004name\022\020\n\003pin\030\002 \001(\tR\003pin\022-\n\005extra\030c \001(\013" + "2\027.google.protobuf.StructR\005extra\"3\n\013PWMR" + "esponse\022$\n\016duty_cycle_pct\030\001 \001(\001R\014dutyCyc" + "lePct\"\212\001\n\rSetPWMRequest\022\022\n\004name\030\001 \001(\tR\004n" + "ame\022\020\n\003pin\030\002 \001(\tR\003pin\022$\n\016duty_cycle_pct\030" + "\003 \001(\001R\014dutyCyclePct\022-\n\005extra\030c \001(\0132\027.goo" + "gle.protobuf.StructR\005extra\"\020\n\016SetPWMResp" + "onse\"j\n\023PWMFrequencyRequest\022\022\n\004name\030\001 \001(" + "\tR\004name\022\020\n\003pin\030\002 \001(\tR\003pin\022-\n\005extra\030c \001(\013" + "2\027.google.protobuf.StructR\005extra\"9\n\024PWMF" + "requencyResponse\022!\n\014frequency_hz\030\001 \001(\004R\013" + "frequencyHz\"\220\001\n\026SetPWMFrequencyRequest\022\022" + "\n\004name\030\001 \001(\tR\004name\022\020\n\003pin\030\002 \001(\tR\003pin\022!\n\014" + "frequency_hz\030\003 \001(\004R\013frequencyHz\022-\n\005extra" + "\030c \001(\0132\027.google.protobuf.StructR\005extra\"\031" + "\n\027SetPWMFrequencyResponse\"\225\001\n\027ReadAnalog" + "ReaderRequest\022\035\n\nboard_name\030\001 \001(\tR\tboard" + "Name\022,\n\022analog_reader_name\030\002 \001(\tR\020analog" + "ReaderName\022-\n\005extra\030c \001(\0132\027.google.proto" + "buf.StructR\005extra\"\207\001\n\030ReadAnalogReaderRe" + "sponse\022\024\n\005value\030\001 \001(\005R\005value\022\033\n\tmin_rang" + "e\030\002 \001(\002R\010minRange\022\033\n\tmax_range\030\003 \001(\002R\010ma" + "xRange\022\033\n\tstep_size\030\004 \001(\002R\010stepSize\"\177\n\022W" + "riteAnalogRequest\022\022\n\004name\030\001 \001(\tR\004name\022\020\n" + "\003pin\030\002 \001(\tR\003pin\022\024\n\005value\030\003 \001(\005R\005value\022-\n" + "\005extra\030c \001(\0132\027.google.protobuf.StructR\005e" + "xtra\"\025\n\023WriteAnalogResponse\"\245\001\n\037GetDigit" + "alInterruptValueRequest\022\035\n\nboard_name\030\001 " + "\001(\tR\tboardName\0224\n\026digital_interrupt_name" + "\030\002 \001(\tR\024digitalInterruptName\022-\n\005extra\030c " + "\001(\0132\027.google.protobuf.StructR\005extra\"8\n G" + "etDigitalInterruptValueResponse\022\024\n\005value" + "\030\001 \001(\003R\005value\"t\n\022StreamTicksRequest\022\022\n\004n" + "ame\030\001 \001(\tR\004name\022\033\n\tpin_names\030\002 \003(\tR\010pinN" + "ames\022-\n\005extra\030c \001(\0132\027.google.protobuf.St" + "ructR\005extra\"X\n\023StreamTicksResponse\022\031\n\010pi" + "n_name\030\001 \001(\tR\007pinName\022\022\n\004time\030\002 \001(\004R\004tim" + "e\022\022\n\004high\030\003 \001(\010R\004high\"\344\001\n\023SetPowerModeRe" + "quest\022\022\n\004name\030\001 \001(\tR\004name\022A\n\npower_mode\030" + "\002 \001(\0162\".viam.component.board.v1.PowerMod" + "eR\tpowerMode\022:\n\010duration\030\003 \001(\0132\031.google." + "protobuf.DurationH\000R\010duration\210\001\001\022-\n\005extr" + "a\030c \001(\0132\027.google.protobuf.StructR\005extraB" + "\013\n\t_duration\"\026\n\024SetPowerModeResponse*[\n\t" + "PowerMode\022\032\n\026POWER_MODE_UNSPECIFIED\020\000\022\025\n" + "\021POWER_MODE_NORMAL\020\001\022\033\n\027POWER_MODE_OFFLI" + "NE_DEEP\020\0022\360\020\n\014BoardService\022\216\001\n\007SetGPIO\022\'" + ".viam.component.board.v1.SetGPIORequest\032" + "(.viam.component.board.v1.SetGPIORespons" + "e\"0\202\323\344\223\002*\032(/viam/api/v1/component/board/" + "{name}/gpio\022\216\001\n\007GetGPIO\022\'.viam.component" + ".board.v1.GetGPIORequest\032(.viam.componen" + "t.board.v1.GetGPIOResponse\"0\202\323\344\223\002*\022(/via" + "m/api/v1/component/board/{name}/gpio\022\201\001\n" + "\003PWM\022#.viam.component.board.v1.PWMReques" + "t\032$.viam.component.board.v1.PWMResponse\"" + "/\202\323\344\223\002)\022\'/viam/api/v1/component/board/{n" + "ame}/pwm\022\212\001\n\006SetPWM\022&.viam.component.boa" + "rd.v1.SetPWMRequest\032\'.viam.component.boa" + "rd.v1.SetPWMResponse\"/\202\323\344\223\002)\032\'/viam/api/" + "v1/component/board/{name}/pwm\022\241\001\n\014PWMFre" + "quency\022,.viam.component.board.v1.PWMFreq" + "uencyRequest\032-.viam.component.board.v1.P" + "WMFrequencyResponse\"4\202\323\344\223\002.\022,/viam/api/v" + "1/component/board/{name}/pwm_freq\022\252\001\n\017Se" + "tPWMFrequency\022/.viam.component.board.v1." + "SetPWMFrequencyRequest\0320.viam.component." + "board.v1.SetPWMFrequencyResponse\"4\202\323\344\223\002." + "\032,/viam/api/v1/component/board/{name}/pw" + "m_freq\022\210\001\n\tDoCommand\022 .viam.common.v1.Do" + "CommandRequest\032!.viam.common.v1.DoComman" + "dResponse\"6\202\323\344\223\0020\"./viam/api/v1/componen" + "t/board/{name}/do_command\022\322\001\n\020ReadAnalog" + "Reader\0220.viam.component.board.v1.ReadAna" + "logReaderRequest\0321.viam.component.board." + "v1.ReadAnalogReaderResponse\"Y\202\323\344\223\002S\022Q/vi" + "am/api/v1/component/board/{board_name}/a" + "nalog_reader/{analog_reader_name}/read\022\242" + "\001\n\013WriteAnalog\022+.viam.component.board.v1" + ".WriteAnalogRequest\032,.viam.component.boa" + "rd.v1.WriteAnalogResponse\"8\202\323\344\223\0022\0320/viam" + "/api/v1/component/board/{name}/analog_wr" + "ite\022\363\001\n\030GetDigitalInterruptValue\0228.viam." + "component.board.v1.GetDigitalInterruptVa" + "lueRequest\0329.viam.component.board.v1.Get" + "DigitalInterruptValueResponse\"b\202\323\344\223\002\\\022Z/" + "viam/api/v1/component/board/{board_name}" + "/digital_interrupt/{digital_interrupt_na" + "me}/value\022\243\001\n\013StreamTicks\022+.viam.compone" + "nt.board.v1.StreamTicksRequest\032,.viam.co" + "mponent.board.v1.StreamTicksResponse\"7\202\323" + "\344\223\0021\022//viam/api/v1/component/board/{name" + "}/tick_stream0\001\022\243\001\n\014SetPowerMode\022,.viam." + "component.board.v1.SetPowerModeRequest\032-" + ".viam.component.board.v1.SetPowerModeRes" + "ponse\"6\202\323\344\223\0020\032./viam/api/v1/component/bo" + "ard/{name}/power_mode\022\224\001\n\rGetGeometries\022" + "$.viam.common.v1.GetGeometriesRequest\032%." + "viam.common.v1.GetGeometriesResponse\"6\202\323" + "\344\223\0020\022./viam/api/v1/component/board/{name" + "}/geometriesBA\n\033com.viam.component.board" + ".v1Z\"go.viam.com/api/component/board/v1b" + "\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_component_2fboard_2fv1_2fboard_2eproto_deps[4] = { + &::descriptor_table_common_2fv1_2fcommon_2eproto, + &::descriptor_table_google_2fapi_2fannotations_2eproto, + &::descriptor_table_google_2fprotobuf_2fduration_2eproto, + &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, }; -static ::absl::once_flag descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once; +static ::_pbi::once_flag descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_component_2fboard_2fv1_2fboard_2eproto = { - false, - false, - 5027, - descriptor_table_protodef_component_2fboard_2fv1_2fboard_2eproto, + false, false, 4887, descriptor_table_protodef_component_2fboard_2fv1_2fboard_2eproto, "component/board/v1/board.proto", - &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, - descriptor_table_component_2fboard_2fv1_2fboard_2eproto_deps, - 4, - 25, - schemas, - file_default_instances, - TableStruct_component_2fboard_2fv1_2fboard_2eproto::offsets, - file_level_metadata_component_2fboard_2fv1_2fboard_2eproto, - file_level_enum_descriptors_component_2fboard_2fv1_2fboard_2eproto, + &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, descriptor_table_component_2fboard_2fv1_2fboard_2eproto_deps, 4, 25, + schemas, file_default_instances, TableStruct_component_2fboard_2fv1_2fboard_2eproto::offsets, + file_level_metadata_component_2fboard_2fv1_2fboard_2eproto, file_level_enum_descriptors_component_2fboard_2fv1_2fboard_2eproto, file_level_service_descriptors_component_2fboard_2fv1_2fboard_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter() { return &descriptor_table_component_2fboard_2fv1_2fboard_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_component_2fboard_2fv1_2fboard_2eproto(&descriptor_table_component_2fboard_2fv1_2fboard_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_component_2fboard_2fv1_2fboard_2eproto(&descriptor_table_component_2fboard_2fv1_2fboard_2eproto); namespace viam { namespace component { namespace board { namespace v1 { -const ::google::protobuf::EnumDescriptor* PowerMode_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_component_2fboard_2fv1_2fboard_2eproto); +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PowerMode_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_component_2fboard_2fv1_2fboard_2eproto); return file_level_enum_descriptors_component_2fboard_2fv1_2fboard_2eproto[0]; } -PROTOBUF_CONSTINIT const uint32_t PowerMode_internal_data_[] = { - 196608u, 0u, }; bool PowerMode_IsValid(int value) { - return 0 <= value && value <= 2; + switch (value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } } + + // =================================================================== Status_AnalogsEntry_DoNotUse::Status_AnalogsEntry_DoNotUse() {} -Status_AnalogsEntry_DoNotUse::Status_AnalogsEntry_DoNotUse(::google::protobuf::Arena* arena) +Status_AnalogsEntry_DoNotUse::Status_AnalogsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) : SuperType(arena) {} -::google::protobuf::Metadata Status_AnalogsEntry_DoNotUse::GetMetadata() const { +void Status_AnalogsEntry_DoNotUse::MergeFrom(const Status_AnalogsEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata Status_AnalogsEntry_DoNotUse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[0]); } + // =================================================================== Status_DigitalInterruptsEntry_DoNotUse::Status_DigitalInterruptsEntry_DoNotUse() {} -Status_DigitalInterruptsEntry_DoNotUse::Status_DigitalInterruptsEntry_DoNotUse(::google::protobuf::Arena* arena) +Status_DigitalInterruptsEntry_DoNotUse::Status_DigitalInterruptsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) : SuperType(arena) {} -::google::protobuf::Metadata Status_DigitalInterruptsEntry_DoNotUse::GetMetadata() const { +void Status_DigitalInterruptsEntry_DoNotUse::MergeFrom(const Status_DigitalInterruptsEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata Status_DigitalInterruptsEntry_DoNotUse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[1]); } + // =================================================================== class Status::_Internal { public: }; -Status::Status(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Status::Status(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + analogs_(arena), + digital_interrupts_(arena) { + SharedCtor(); + if (arena != nullptr && !is_message_owned) { + arena->OwnCustomDestructor(this, &Status::ArenaDtor); + } // @@protoc_insertion_point(arena_constructor:viam.component.board.v1.Status) } -inline PROTOBUF_NDEBUG_INLINE Status::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : analogs_{visibility, arena, from.analogs_}, - digital_interrupts_{visibility, arena, from.digital_interrupts_}, - _cached_size_{0} {} - -Status::Status( - ::google::protobuf::Arena* arena, - const Status& from) - : ::google::protobuf::Message(arena) { - Status* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +Status::Status(const Status& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + analogs_.MergeFrom(from.analogs_); + digital_interrupts_.MergeFrom(from.digital_interrupts_); // @@protoc_insertion_point(copy_constructor:viam.component.board.v1.Status) } -inline PROTOBUF_NDEBUG_INLINE Status::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : analogs_{visibility, arena}, - digital_interrupts_{visibility, arena}, - _cached_size_{0} {} -inline void Status::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void Status::SharedCtor() { } + Status::~Status() { // @@protoc_insertion_point(destructor:viam.component.board.v1.Status) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + ArenaDtor(this); + return; + } SharedDtor(); } + inline void Status::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + analogs_.Destruct(); + digital_interrupts_.Destruct(); } -PROTOBUF_NOINLINE void Status::Clear() { +void Status::ArenaDtor(void* object) { + Status* _this = reinterpret_cast< Status* >(object); + _this->analogs_.Destruct(); + _this->digital_interrupts_.Destruct(); +} +void Status::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void Status::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.board.v1.Status) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.analogs_.Clear(); - _impl_.digital_interrupts_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Status::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + analogs_.Clear(); + digital_interrupts_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Status::_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 analogs = 1 [json_name = "analogs"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&analogs_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + // map digital_interrupts = 2 [json_name = "digitalInterrupts"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&digital_interrupts_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 2, 2, 64, 2> Status::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Status_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // map analogs = 1 [json_name = "analogs"]; - {PROTOBUF_FIELD_OFFSET(Status, _impl_.analogs_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, - // map digital_interrupts = 2 [json_name = "digitalInterrupts"]; - {PROTOBUF_FIELD_OFFSET(Status, _impl_.digital_interrupts_), 0, 1, - (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, - }}, {{ - {::_pbi::TcParser::GetMapAuxInfo< - decltype(Status()._impl_.analogs_)>( - 1, 0, 0, 9, - 5)}, - {::_pbi::TcParser::GetMapAuxInfo< - decltype(Status()._impl_.digital_interrupts_)>( - 1, 0, 0, 9, - 3)}, - }}, {{ - "\36\7\22\0\0\0\0\0" - "viam.component.board.v1.Status" - "analogs" - "digital_interrupts" - }}, -}; - -::uint8_t* Status::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Status::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.board.v1.Status) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // map analogs = 1 [json_name = "analogs"]; - if (!_internal_analogs().empty()) { - using MapType = ::google::protobuf::Map; - using WireHelper = _pbi::MapEntryFuncs; - const auto& field = _internal_analogs(); - - if (stream->IsSerializationDeterministic() && field.size() > 1) { - for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { - target = WireHelper::InternalSerialize( - 1, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.board.v1.Status.analogs"); + if (!this->_internal_analogs().empty()) { + using MapType = ::_pb::Map; + using WireHelper = Status_AnalogsEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_analogs(); + 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.board.v1.Status.AnalogsEntry.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 : field) { - target = WireHelper::InternalSerialize( - 1, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.board.v1.Status.analogs"); + for (const auto& entry : map_field) { + target = WireHelper::InternalSerialize(1, entry.first, entry.second, target, stream); + check_utf8(entry); } } } // map digital_interrupts = 2 [json_name = "digitalInterrupts"]; - if (!_internal_digital_interrupts().empty()) { - using MapType = ::google::protobuf::Map; - using WireHelper = _pbi::MapEntryFuncs; - const auto& field = _internal_digital_interrupts(); - - if (stream->IsSerializationDeterministic() && field.size() > 1) { - for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { - target = WireHelper::InternalSerialize( - 2, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.board.v1.Status.digital_interrupts"); + if (!this->_internal_digital_interrupts().empty()) { + using MapType = ::_pb::Map; + using WireHelper = Status_DigitalInterruptsEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_digital_interrupts(); + 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.board.v1.Status.DigitalInterruptsEntry.key"); + }; + + if (stream->IsSerializationDeterministic() && map_field.size() > 1) { + for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { + target = WireHelper::InternalSerialize(2, entry.first, entry.second, target, stream); + check_utf8(entry); } } else { - for (const auto& entry : field) { - target = WireHelper::InternalSerialize( - 2, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.board.v1.Status.digital_interrupts"); + for (const auto& entry : map_field) { + target = WireHelper::InternalSerialize(2, 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.board.v1.Status) return target; } -::size_t Status::ByteSizeLong() const { +size_t Status::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.board.v1.Status) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // map analogs = 1 [json_name = "analogs"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_analogs_size()); - for (const auto& entry : _internal_analogs()) { - total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_analogs_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, int32_t >::const_iterator + it = this->_internal_analogs().begin(); + it != this->_internal_analogs().end(); ++it) { + total_size += Status_AnalogsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); } + // map digital_interrupts = 2 [json_name = "digitalInterrupts"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_digital_interrupts_size()); - for (const auto& entry : _internal_digital_interrupts()) { - total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_digital_interrupts_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, int64_t >::const_iterator + it = this->_internal_digital_interrupts().begin(); + it != this->_internal_digital_interrupts().end(); ++it) { + total_size += Status_DigitalInterruptsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Status::_class_data_ = { - Status::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Status::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Status::MergeImpl }; -const ::google::protobuf::Message::ClassData* Status::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Status::GetClassData() const { return &_class_data_; } + +void Status::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Status::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.board.v1.Status) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Status::MergeFrom(const Status& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.board.v1.Status) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.analogs_.MergeFrom(from._impl_.analogs_); - _this->_impl_.digital_interrupts_.MergeFrom(from._impl_.digital_interrupts_); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + analogs_.MergeFrom(from.analogs_); + digital_interrupts_.MergeFrom(from.digital_interrupts_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Status::CopyFrom(const Status& from) { @@ -1328,295 +1069,306 @@ void Status::CopyFrom(const Status& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Status::IsInitialized() const { +bool Status::IsInitialized() const { return true; } -::_pbi::CachedSize* Status::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Status::InternalSwap(Status* PROTOBUF_RESTRICT other) { +void Status::InternalSwap(Status* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.analogs_.InternalSwap(&other->_impl_.analogs_); - _impl_.digital_interrupts_.InternalSwap(&other->_impl_.digital_interrupts_); + analogs_.InternalSwap(&other->analogs_); + digital_interrupts_.InternalSwap(&other->digital_interrupts_); } -::google::protobuf::Metadata Status::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Status::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[2]); } + // =================================================================== class SetGPIORequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SetGPIORequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const SetGPIORequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const SetGPIORequest* msg); }; -const ::google::protobuf::Struct& SetGPIORequest::_Internal::extra(const SetGPIORequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +SetGPIORequest::_Internal::extra(const SetGPIORequest* msg) { + return *msg->extra_; } void SetGPIORequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -SetGPIORequest::SetGPIORequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +SetGPIORequest::SetGPIORequest(::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.board.v1.SetGPIORequest) } -inline PROTOBUF_NDEBUG_INLINE SetGPIORequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_), - pin_(arena, from.pin_) {} - -SetGPIORequest::SetGPIORequest( - ::google::protobuf::Arena* arena, - const SetGPIORequest& from) - : ::google::protobuf::Message(arena) { - SetGPIORequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - _impl_.high_ = from._impl_.high_; - +SetGPIORequest::SetGPIORequest(const SetGPIORequest& 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()); + } + pin_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + pin_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_pin().empty()) { + pin_.Set(from._internal_pin(), + GetArenaForAllocation()); + } + if (from._internal_has_extra()) { + extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.extra_); + } else { + extra_ = nullptr; + } + high_ = from.high_; // @@protoc_insertion_point(copy_constructor:viam.component.board.v1.SetGPIORequest) } -inline PROTOBUF_NDEBUG_INLINE SetGPIORequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena), - pin_(arena) {} - -inline void SetGPIORequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, extra_), - 0, - offsetof(Impl_, high_) - - offsetof(Impl_, extra_) + - sizeof(Impl_::high_)); + +inline void SetGPIORequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +pin_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + pin_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&extra_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&high_) - + reinterpret_cast(&extra_)) + sizeof(high_)); } + SetGPIORequest::~SetGPIORequest() { // @@protoc_insertion_point(destructor:viam.component.board.v1.SetGPIORequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void SetGPIORequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.pin_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + pin_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void SetGPIORequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void SetGPIORequest::Clear() { +void SetGPIORequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.board.v1.SetGPIORequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _impl_.pin_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - _impl_.high_ = false; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SetGPIORequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + pin_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + high_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SetGPIORequest::_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.board.v1.SetGPIORequest.name")); + } else + goto handle_unusual; + continue; + // string pin = 2 [json_name = "pin"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_pin(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.board.v1.SetGPIORequest.pin")); + } else + goto handle_unusual; + continue; + // bool high = 3 [json_name = "high"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + high_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 1, 54, 7> SetGPIORequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(SetGPIORequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_SetGPIORequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(SetGPIORequest, _impl_.name_)}}, - // string pin = 2 [json_name = "pin"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(SetGPIORequest, _impl_.pin_)}}, - // bool high = 3 [json_name = "high"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(SetGPIORequest, _impl_.high_)}}, - }}, {{ - 99, 0, 1, - 65534, 3, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(SetGPIORequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string pin = 2 [json_name = "pin"]; - {PROTOBUF_FIELD_OFFSET(SetGPIORequest, _impl_.pin_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // bool high = 3 [json_name = "high"]; - {PROTOBUF_FIELD_OFFSET(SetGPIORequest, _impl_.high_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(SetGPIORequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\46\4\3\0\0\0\0\0" - "viam.component.board.v1.SetGPIORequest" - "name" - "pin" - }}, -}; - -::uint8_t* SetGPIORequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* SetGPIORequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.board.v1.SetGPIORequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.board.v1.SetGPIORequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.board.v1.SetGPIORequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // string pin = 2 [json_name = "pin"]; if (!this->_internal_pin().empty()) { - const std::string& _s = this->_internal_pin(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.board.v1.SetGPIORequest.pin"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_pin().data(), static_cast(this->_internal_pin().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.board.v1.SetGPIORequest.pin"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_pin(), target); } // bool high = 3 [json_name = "high"]; if (this->_internal_high() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 3, this->_internal_high(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_high(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.board.v1.SetGPIORequest) return target; } -::size_t SetGPIORequest::ByteSizeLong() const { +size_t SetGPIORequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.board.v1.SetGPIORequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // string pin = 2 [json_name = "pin"]; if (!this->_internal_pin().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_pin()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_pin()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } // bool high = 3 [json_name = "high"]; if (this->_internal_high() != 0) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData SetGPIORequest::_class_data_ = { - SetGPIORequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetGPIORequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + SetGPIORequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* SetGPIORequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetGPIORequest::GetClassData() const { return &_class_data_; } + +void SetGPIORequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void SetGPIORequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.board.v1.SetGPIORequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void SetGPIORequest::MergeFrom(const SetGPIORequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.board.v1.SetGPIORequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (!from._internal_pin().empty()) { - _this->_internal_set_pin(from._internal_pin()); + _internal_set_pin(from._internal_pin()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } if (from._internal_high() != 0) { - _this->_internal_set_high(from._internal_high()); + _internal_set_high(from._internal_high()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SetGPIORequest::CopyFrom(const SetGPIORequest& from) { @@ -1626,53 +1378,51 @@ void SetGPIORequest::CopyFrom(const SetGPIORequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool SetGPIORequest::IsInitialized() const { +bool SetGPIORequest::IsInitialized() const { return true; } -::_pbi::CachedSize* SetGPIORequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void SetGPIORequest::InternalSwap(SetGPIORequest* PROTOBUF_RESTRICT other) { +void SetGPIORequest::InternalSwap(SetGPIORequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.pin_, &other->_impl_.pin_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(SetGPIORequest, _impl_.high_) - + sizeof(SetGPIORequest::_impl_.high_) - - PROTOBUF_FIELD_OFFSET(SetGPIORequest, _impl_.extra_)>( - reinterpret_cast(&_impl_.extra_), - reinterpret_cast(&other->_impl_.extra_)); -} - -::google::protobuf::Metadata SetGPIORequest::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &pin_, lhs_arena, + &other->pin_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(SetGPIORequest, high_) + + sizeof(SetGPIORequest::high_) + - PROTOBUF_FIELD_OFFSET(SetGPIORequest, extra_)>( + reinterpret_cast(&extra_), + reinterpret_cast(&other->extra_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SetGPIORequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[3]); } + // =================================================================== class SetGPIOResponse::_Internal { public: }; -SetGPIOResponse::SetGPIOResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +SetGPIOResponse::SetGPIOResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.component.board.v1.SetGPIOResponse) } -SetGPIOResponse::SetGPIOResponse( - ::google::protobuf::Arena* arena, - const SetGPIOResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - SetGPIOResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +SetGPIOResponse::SetGPIOResponse(const SetGPIOResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.component.board.v1.SetGPIOResponse) } @@ -1680,260 +1430,280 @@ SetGPIOResponse::SetGPIOResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetGPIOResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetGPIOResponse::GetClassData() const { return &_class_data_; } + + + -::google::protobuf::Metadata SetGPIOResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata SetGPIOResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[4]); } + // =================================================================== class GetGPIORequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetGPIORequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const GetGPIORequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetGPIORequest* msg); }; -const ::google::protobuf::Struct& GetGPIORequest::_Internal::extra(const GetGPIORequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetGPIORequest::_Internal::extra(const GetGPIORequest* msg) { + return *msg->extra_; } void GetGPIORequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -GetGPIORequest::GetGPIORequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetGPIORequest::GetGPIORequest(::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.board.v1.GetGPIORequest) } -inline PROTOBUF_NDEBUG_INLINE GetGPIORequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_), - pin_(arena, from.pin_) {} - -GetGPIORequest::GetGPIORequest( - ::google::protobuf::Arena* arena, - const GetGPIORequest& from) - : ::google::protobuf::Message(arena) { - GetGPIORequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +GetGPIORequest::GetGPIORequest(const GetGPIORequest& 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()); + } + pin_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + pin_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_pin().empty()) { + pin_.Set(from._internal_pin(), + GetArenaForAllocation()); + } + if (from._internal_has_extra()) { + extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.extra_); + } else { + extra_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.component.board.v1.GetGPIORequest) } -inline PROTOBUF_NDEBUG_INLINE GetGPIORequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena), - pin_(arena) {} -inline void GetGPIORequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void GetGPIORequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +pin_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + pin_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + GetGPIORequest::~GetGPIORequest() { // @@protoc_insertion_point(destructor:viam.component.board.v1.GetGPIORequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetGPIORequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.pin_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + pin_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void GetGPIORequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetGPIORequest::Clear() { +void GetGPIORequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.board.v1.GetGPIORequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _impl_.pin_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetGPIORequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + pin_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetGPIORequest::_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.board.v1.GetGPIORequest.name")); + } else + goto handle_unusual; + continue; + // string pin = 2 [json_name = "pin"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_pin(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.board.v1.GetGPIORequest.pin")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 1, 54, 7> GetGPIORequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetGPIORequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetGPIORequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetGPIORequest, _impl_.name_)}}, - // string pin = 2 [json_name = "pin"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(GetGPIORequest, _impl_.pin_)}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(GetGPIORequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 2, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(GetGPIORequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string pin = 2 [json_name = "pin"]; - {PROTOBUF_FIELD_OFFSET(GetGPIORequest, _impl_.pin_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(GetGPIORequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\46\4\3\0\0\0\0\0" - "viam.component.board.v1.GetGPIORequest" - "name" - "pin" - }}, -}; - -::uint8_t* GetGPIORequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetGPIORequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.board.v1.GetGPIORequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.board.v1.GetGPIORequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.board.v1.GetGPIORequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // string pin = 2 [json_name = "pin"]; if (!this->_internal_pin().empty()) { - const std::string& _s = this->_internal_pin(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.board.v1.GetGPIORequest.pin"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_pin().data(), static_cast(this->_internal_pin().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.board.v1.GetGPIORequest.pin"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_pin(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.board.v1.GetGPIORequest) return target; } -::size_t GetGPIORequest::ByteSizeLong() const { +size_t GetGPIORequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.board.v1.GetGPIORequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // string pin = 2 [json_name = "pin"]; if (!this->_internal_pin().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_pin()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_pin()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetGPIORequest::_class_data_ = { - GetGPIORequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetGPIORequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetGPIORequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetGPIORequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetGPIORequest::GetClassData() const { return &_class_data_; } + +void GetGPIORequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetGPIORequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.board.v1.GetGPIORequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetGPIORequest::MergeFrom(const GetGPIORequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.board.v1.GetGPIORequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (!from._internal_pin().empty()) { - _this->_internal_set_pin(from._internal_pin()); + _internal_set_pin(from._internal_pin()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetGPIORequest::CopyFrom(const GetGPIORequest& from) { @@ -1943,171 +1713,178 @@ void GetGPIORequest::CopyFrom(const GetGPIORequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetGPIORequest::IsInitialized() const { +bool GetGPIORequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetGPIORequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetGPIORequest::InternalSwap(GetGPIORequest* PROTOBUF_RESTRICT other) { +void GetGPIORequest::InternalSwap(GetGPIORequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.pin_, &other->_impl_.pin_, arena); - swap(_impl_.extra_, other->_impl_.extra_); -} - -::google::protobuf::Metadata GetGPIORequest::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &pin_, lhs_arena, + &other->pin_, rhs_arena + ); + swap(extra_, other->extra_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetGPIORequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[5]); } + // =================================================================== class GetGPIOResponse::_Internal { public: }; -GetGPIOResponse::GetGPIOResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetGPIOResponse::GetGPIOResponse(::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.board.v1.GetGPIOResponse) } -GetGPIOResponse::GetGPIOResponse( - ::google::protobuf::Arena* arena, const GetGPIOResponse& from) - : GetGPIOResponse(arena) { - MergeFrom(from); +GetGPIOResponse::GetGPIOResponse(const GetGPIOResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + high_ = from.high_; + // @@protoc_insertion_point(copy_constructor:viam.component.board.v1.GetGPIOResponse) } -inline PROTOBUF_NDEBUG_INLINE GetGPIOResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void GetGPIOResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.high_ = {}; +inline void GetGPIOResponse::SharedCtor() { +high_ = false; } + GetGPIOResponse::~GetGPIOResponse() { // @@protoc_insertion_point(destructor:viam.component.board.v1.GetGPIOResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetGPIOResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void GetGPIOResponse::Clear() { +void GetGPIOResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetGPIOResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.board.v1.GetGPIOResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.high_ = false; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetGPIOResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + high_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetGPIOResponse::_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) { + // bool high = 1 [json_name = "high"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + high_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> GetGPIOResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetGPIOResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // bool high = 1 [json_name = "high"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(GetGPIOResponse, _impl_.high_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bool high = 1 [json_name = "high"]; - {PROTOBUF_FIELD_OFFSET(GetGPIOResponse, _impl_.high_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* GetGPIOResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetGPIOResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.board.v1.GetGPIOResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // bool high = 1 [json_name = "high"]; if (this->_internal_high() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 1, this->_internal_high(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_high(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.board.v1.GetGPIOResponse) return target; } -::size_t GetGPIOResponse::ByteSizeLong() const { +size_t GetGPIOResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.board.v1.GetGPIOResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // bool high = 1 [json_name = "high"]; if (this->_internal_high() != 0) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetGPIOResponse::_class_data_ = { - GetGPIOResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetGPIOResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetGPIOResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetGPIOResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetGPIOResponse::GetClassData() const { return &_class_data_; } + +void GetGPIOResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetGPIOResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.board.v1.GetGPIOResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetGPIOResponse::MergeFrom(const GetGPIOResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.board.v1.GetGPIOResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_high() != 0) { - _this->_internal_set_high(from._internal_high()); + _internal_set_high(from._internal_high()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetGPIOResponse::CopyFrom(const GetGPIOResponse& from) { @@ -2117,269 +1894,278 @@ void GetGPIOResponse::CopyFrom(const GetGPIOResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetGPIOResponse::IsInitialized() const { +bool GetGPIOResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetGPIOResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetGPIOResponse::InternalSwap(GetGPIOResponse* PROTOBUF_RESTRICT other) { +void GetGPIOResponse::InternalSwap(GetGPIOResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.high_, other->_impl_.high_); + swap(high_, other->high_); } -::google::protobuf::Metadata GetGPIOResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetGPIOResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[6]); } + // =================================================================== class PWMRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(PWMRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const PWMRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const PWMRequest* msg); }; -const ::google::protobuf::Struct& PWMRequest::_Internal::extra(const PWMRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +PWMRequest::_Internal::extra(const PWMRequest* msg) { + return *msg->extra_; } void PWMRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -PWMRequest::PWMRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +PWMRequest::PWMRequest(::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.board.v1.PWMRequest) } -inline PROTOBUF_NDEBUG_INLINE PWMRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_), - pin_(arena, from.pin_) {} - -PWMRequest::PWMRequest( - ::google::protobuf::Arena* arena, - const PWMRequest& from) - : ::google::protobuf::Message(arena) { - PWMRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +PWMRequest::PWMRequest(const PWMRequest& 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()); + } + pin_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + pin_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_pin().empty()) { + pin_.Set(from._internal_pin(), + GetArenaForAllocation()); + } + if (from._internal_has_extra()) { + extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.extra_); + } else { + extra_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.component.board.v1.PWMRequest) } -inline PROTOBUF_NDEBUG_INLINE PWMRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena), - pin_(arena) {} -inline void PWMRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void PWMRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +pin_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + pin_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + PWMRequest::~PWMRequest() { // @@protoc_insertion_point(destructor:viam.component.board.v1.PWMRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void PWMRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.pin_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + pin_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void PWMRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void PWMRequest::Clear() { +void PWMRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.board.v1.PWMRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _impl_.pin_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* PWMRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + pin_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* PWMRequest::_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.board.v1.PWMRequest.name")); + } else + goto handle_unusual; + continue; + // string pin = 2 [json_name = "pin"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_pin(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.board.v1.PWMRequest.pin")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 1, 50, 7> PWMRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(PWMRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_PWMRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(PWMRequest, _impl_.name_)}}, - // string pin = 2 [json_name = "pin"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(PWMRequest, _impl_.pin_)}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(PWMRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 2, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(PWMRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string pin = 2 [json_name = "pin"]; - {PROTOBUF_FIELD_OFFSET(PWMRequest, _impl_.pin_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(PWMRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\42\4\3\0\0\0\0\0" - "viam.component.board.v1.PWMRequest" - "name" - "pin" - }}, -}; - -::uint8_t* PWMRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* PWMRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.board.v1.PWMRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.board.v1.PWMRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.board.v1.PWMRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // string pin = 2 [json_name = "pin"]; if (!this->_internal_pin().empty()) { - const std::string& _s = this->_internal_pin(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.board.v1.PWMRequest.pin"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_pin().data(), static_cast(this->_internal_pin().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.board.v1.PWMRequest.pin"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_pin(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.board.v1.PWMRequest) return target; } -::size_t PWMRequest::ByteSizeLong() const { +size_t PWMRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.board.v1.PWMRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // string pin = 2 [json_name = "pin"]; if (!this->_internal_pin().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_pin()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_pin()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData PWMRequest::_class_data_ = { - PWMRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PWMRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + PWMRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* PWMRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PWMRequest::GetClassData() const { return &_class_data_; } + +void PWMRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void PWMRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.board.v1.PWMRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void PWMRequest::MergeFrom(const PWMRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.board.v1.PWMRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (!from._internal_pin().empty()) { - _this->_internal_set_pin(from._internal_pin()); + _internal_set_pin(from._internal_pin()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void PWMRequest::CopyFrom(const PWMRequest& from) { @@ -2389,186 +2175,190 @@ void PWMRequest::CopyFrom(const PWMRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool PWMRequest::IsInitialized() const { +bool PWMRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* PWMRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void PWMRequest::InternalSwap(PWMRequest* PROTOBUF_RESTRICT other) { +void PWMRequest::InternalSwap(PWMRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.pin_, &other->_impl_.pin_, arena); - swap(_impl_.extra_, other->_impl_.extra_); -} - -::google::protobuf::Metadata PWMRequest::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &pin_, lhs_arena, + &other->pin_, rhs_arena + ); + swap(extra_, other->extra_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata PWMRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[7]); } + // =================================================================== class PWMResponse::_Internal { public: }; -PWMResponse::PWMResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +PWMResponse::PWMResponse(::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.board.v1.PWMResponse) } -PWMResponse::PWMResponse( - ::google::protobuf::Arena* arena, const PWMResponse& from) - : PWMResponse(arena) { - MergeFrom(from); +PWMResponse::PWMResponse(const PWMResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + duty_cycle_pct_ = from.duty_cycle_pct_; + // @@protoc_insertion_point(copy_constructor:viam.component.board.v1.PWMResponse) } -inline PROTOBUF_NDEBUG_INLINE PWMResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void PWMResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.duty_cycle_pct_ = {}; +inline void PWMResponse::SharedCtor() { +duty_cycle_pct_ = 0; } + PWMResponse::~PWMResponse() { // @@protoc_insertion_point(destructor:viam.component.board.v1.PWMResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void PWMResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void PWMResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void PWMResponse::Clear() { +void PWMResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.board.v1.PWMResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.duty_cycle_pct_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* PWMResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + duty_cycle_pct_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* PWMResponse::_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) { + // double duty_cycle_pct = 1 [json_name = "dutyCyclePct"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 9)) { + duty_cycle_pct_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> PWMResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_PWMResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // double duty_cycle_pct = 1 [json_name = "dutyCyclePct"]; - {::_pbi::TcParser::FastF64S1, - {9, 63, 0, PROTOBUF_FIELD_OFFSET(PWMResponse, _impl_.duty_cycle_pct_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // double duty_cycle_pct = 1 [json_name = "dutyCyclePct"]; - {PROTOBUF_FIELD_OFFSET(PWMResponse, _impl_.duty_cycle_pct_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* PWMResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* PWMResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.board.v1.PWMResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // double duty_cycle_pct = 1 [json_name = "dutyCyclePct"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_duty_cycle_pct = this->_internal_duty_cycle_pct(); - ::uint64_t raw_duty_cycle_pct; + uint64_t raw_duty_cycle_pct; memcpy(&raw_duty_cycle_pct, &tmp_duty_cycle_pct, sizeof(tmp_duty_cycle_pct)); if (raw_duty_cycle_pct != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 1, this->_internal_duty_cycle_pct(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(1, this->_internal_duty_cycle_pct(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.board.v1.PWMResponse) return target; } -::size_t PWMResponse::ByteSizeLong() const { +size_t PWMResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.board.v1.PWMResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // double duty_cycle_pct = 1 [json_name = "dutyCyclePct"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_duty_cycle_pct = this->_internal_duty_cycle_pct(); - ::uint64_t raw_duty_cycle_pct; + uint64_t raw_duty_cycle_pct; memcpy(&raw_duty_cycle_pct, &tmp_duty_cycle_pct, sizeof(tmp_duty_cycle_pct)); if (raw_duty_cycle_pct != 0) { - total_size += 9; + total_size += 1 + 8; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData PWMResponse::_class_data_ = { - PWMResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PWMResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + PWMResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* PWMResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PWMResponse::GetClassData() const { return &_class_data_; } + +void PWMResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void PWMResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.board.v1.PWMResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void PWMResponse::MergeFrom(const PWMResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.board.v1.PWMResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_duty_cycle_pct = from._internal_duty_cycle_pct(); - ::uint64_t raw_duty_cycle_pct; + uint64_t raw_duty_cycle_pct; memcpy(&raw_duty_cycle_pct, &tmp_duty_cycle_pct, sizeof(tmp_duty_cycle_pct)); if (raw_duty_cycle_pct != 0) { - _this->_internal_set_duty_cycle_pct(from._internal_duty_cycle_pct()); + _internal_set_duty_cycle_pct(from._internal_duty_cycle_pct()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void PWMResponse::CopyFrom(const PWMResponse& from) { @@ -2578,309 +2368,317 @@ void PWMResponse::CopyFrom(const PWMResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool PWMResponse::IsInitialized() const { +bool PWMResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* PWMResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void PWMResponse::InternalSwap(PWMResponse* PROTOBUF_RESTRICT other) { +void PWMResponse::InternalSwap(PWMResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.duty_cycle_pct_, other->_impl_.duty_cycle_pct_); + swap(duty_cycle_pct_, other->duty_cycle_pct_); } -::google::protobuf::Metadata PWMResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata PWMResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[8]); } + // =================================================================== class SetPWMRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SetPWMRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const SetPWMRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const SetPWMRequest* msg); }; -const ::google::protobuf::Struct& SetPWMRequest::_Internal::extra(const SetPWMRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +SetPWMRequest::_Internal::extra(const SetPWMRequest* msg) { + return *msg->extra_; } void SetPWMRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -SetPWMRequest::SetPWMRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +SetPWMRequest::SetPWMRequest(::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.board.v1.SetPWMRequest) } -inline PROTOBUF_NDEBUG_INLINE SetPWMRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_), - pin_(arena, from.pin_) {} - -SetPWMRequest::SetPWMRequest( - ::google::protobuf::Arena* arena, - const SetPWMRequest& from) - : ::google::protobuf::Message(arena) { - SetPWMRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - _impl_.duty_cycle_pct_ = from._impl_.duty_cycle_pct_; - +SetPWMRequest::SetPWMRequest(const SetPWMRequest& 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()); + } + pin_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + pin_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_pin().empty()) { + pin_.Set(from._internal_pin(), + GetArenaForAllocation()); + } + if (from._internal_has_extra()) { + extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.extra_); + } else { + extra_ = nullptr; + } + duty_cycle_pct_ = from.duty_cycle_pct_; // @@protoc_insertion_point(copy_constructor:viam.component.board.v1.SetPWMRequest) } -inline PROTOBUF_NDEBUG_INLINE SetPWMRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena), - pin_(arena) {} - -inline void SetPWMRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, extra_), - 0, - offsetof(Impl_, duty_cycle_pct_) - - offsetof(Impl_, extra_) + - sizeof(Impl_::duty_cycle_pct_)); + +inline void SetPWMRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +pin_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + pin_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&extra_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&duty_cycle_pct_) - + reinterpret_cast(&extra_)) + sizeof(duty_cycle_pct_)); } + SetPWMRequest::~SetPWMRequest() { // @@protoc_insertion_point(destructor:viam.component.board.v1.SetPWMRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void SetPWMRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.pin_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + pin_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void SetPWMRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void SetPWMRequest::Clear() { +void SetPWMRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.board.v1.SetPWMRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _impl_.pin_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - _impl_.duty_cycle_pct_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SetPWMRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + pin_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + duty_cycle_pct_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SetPWMRequest::_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.board.v1.SetPWMRequest.name")); + } else + goto handle_unusual; + continue; + // string pin = 2 [json_name = "pin"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_pin(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.board.v1.SetPWMRequest.pin")); + } else + goto handle_unusual; + continue; + // double duty_cycle_pct = 3 [json_name = "dutyCyclePct"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 25)) { + duty_cycle_pct_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 1, 53, 7> SetPWMRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(SetPWMRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_SetPWMRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(SetPWMRequest, _impl_.name_)}}, - // string pin = 2 [json_name = "pin"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(SetPWMRequest, _impl_.pin_)}}, - // double duty_cycle_pct = 3 [json_name = "dutyCyclePct"]; - {::_pbi::TcParser::FastF64S1, - {25, 63, 0, PROTOBUF_FIELD_OFFSET(SetPWMRequest, _impl_.duty_cycle_pct_)}}, - }}, {{ - 99, 0, 1, - 65534, 3, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(SetPWMRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string pin = 2 [json_name = "pin"]; - {PROTOBUF_FIELD_OFFSET(SetPWMRequest, _impl_.pin_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // double duty_cycle_pct = 3 [json_name = "dutyCyclePct"]; - {PROTOBUF_FIELD_OFFSET(SetPWMRequest, _impl_.duty_cycle_pct_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(SetPWMRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\45\4\3\0\0\0\0\0" - "viam.component.board.v1.SetPWMRequest" - "name" - "pin" - }}, -}; - -::uint8_t* SetPWMRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* SetPWMRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.board.v1.SetPWMRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.board.v1.SetPWMRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.board.v1.SetPWMRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // string pin = 2 [json_name = "pin"]; if (!this->_internal_pin().empty()) { - const std::string& _s = this->_internal_pin(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.board.v1.SetPWMRequest.pin"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_pin().data(), static_cast(this->_internal_pin().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.board.v1.SetPWMRequest.pin"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_pin(), target); } // double duty_cycle_pct = 3 [json_name = "dutyCyclePct"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_duty_cycle_pct = this->_internal_duty_cycle_pct(); - ::uint64_t raw_duty_cycle_pct; + uint64_t raw_duty_cycle_pct; memcpy(&raw_duty_cycle_pct, &tmp_duty_cycle_pct, sizeof(tmp_duty_cycle_pct)); if (raw_duty_cycle_pct != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 3, this->_internal_duty_cycle_pct(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(3, this->_internal_duty_cycle_pct(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.board.v1.SetPWMRequest) return target; } -::size_t SetPWMRequest::ByteSizeLong() const { +size_t SetPWMRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.board.v1.SetPWMRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // string pin = 2 [json_name = "pin"]; if (!this->_internal_pin().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_pin()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_pin()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } // double duty_cycle_pct = 3 [json_name = "dutyCyclePct"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_duty_cycle_pct = this->_internal_duty_cycle_pct(); - ::uint64_t raw_duty_cycle_pct; + uint64_t raw_duty_cycle_pct; memcpy(&raw_duty_cycle_pct, &tmp_duty_cycle_pct, sizeof(tmp_duty_cycle_pct)); if (raw_duty_cycle_pct != 0) { - total_size += 9; + total_size += 1 + 8; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData SetPWMRequest::_class_data_ = { - SetPWMRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetPWMRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + SetPWMRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* SetPWMRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetPWMRequest::GetClassData() const { return &_class_data_; } + +void SetPWMRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void SetPWMRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.board.v1.SetPWMRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void SetPWMRequest::MergeFrom(const SetPWMRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.board.v1.SetPWMRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (!from._internal_pin().empty()) { - _this->_internal_set_pin(from._internal_pin()); + _internal_set_pin(from._internal_pin()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_duty_cycle_pct = from._internal_duty_cycle_pct(); - ::uint64_t raw_duty_cycle_pct; + uint64_t raw_duty_cycle_pct; memcpy(&raw_duty_cycle_pct, &tmp_duty_cycle_pct, sizeof(tmp_duty_cycle_pct)); if (raw_duty_cycle_pct != 0) { - _this->_internal_set_duty_cycle_pct(from._internal_duty_cycle_pct()); + _internal_set_duty_cycle_pct(from._internal_duty_cycle_pct()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SetPWMRequest::CopyFrom(const SetPWMRequest& from) { @@ -2890,53 +2688,51 @@ void SetPWMRequest::CopyFrom(const SetPWMRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool SetPWMRequest::IsInitialized() const { +bool SetPWMRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* SetPWMRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void SetPWMRequest::InternalSwap(SetPWMRequest* PROTOBUF_RESTRICT other) { +void SetPWMRequest::InternalSwap(SetPWMRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.pin_, &other->_impl_.pin_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(SetPWMRequest, _impl_.duty_cycle_pct_) - + sizeof(SetPWMRequest::_impl_.duty_cycle_pct_) - - PROTOBUF_FIELD_OFFSET(SetPWMRequest, _impl_.extra_)>( - reinterpret_cast(&_impl_.extra_), - reinterpret_cast(&other->_impl_.extra_)); -} - -::google::protobuf::Metadata SetPWMRequest::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &pin_, lhs_arena, + &other->pin_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(SetPWMRequest, duty_cycle_pct_) + + sizeof(SetPWMRequest::duty_cycle_pct_) + - PROTOBUF_FIELD_OFFSET(SetPWMRequest, extra_)>( + reinterpret_cast(&extra_), + reinterpret_cast(&other->extra_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SetPWMRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[9]); } + // =================================================================== class SetPWMResponse::_Internal { public: }; -SetPWMResponse::SetPWMResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +SetPWMResponse::SetPWMResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.component.board.v1.SetPWMResponse) } -SetPWMResponse::SetPWMResponse( - ::google::protobuf::Arena* arena, - const SetPWMResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - SetPWMResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +SetPWMResponse::SetPWMResponse(const SetPWMResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.component.board.v1.SetPWMResponse) } @@ -2944,260 +2740,280 @@ SetPWMResponse::SetPWMResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetPWMResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetPWMResponse::GetClassData() const { return &_class_data_; } + + -::google::protobuf::Metadata SetPWMResponse::GetMetadata() const { + +::PROTOBUF_NAMESPACE_ID::Metadata SetPWMResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[10]); } + // =================================================================== class PWMFrequencyRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(PWMFrequencyRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const PWMFrequencyRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const PWMFrequencyRequest* msg); }; -const ::google::protobuf::Struct& PWMFrequencyRequest::_Internal::extra(const PWMFrequencyRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +PWMFrequencyRequest::_Internal::extra(const PWMFrequencyRequest* msg) { + return *msg->extra_; } void PWMFrequencyRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -PWMFrequencyRequest::PWMFrequencyRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +PWMFrequencyRequest::PWMFrequencyRequest(::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.board.v1.PWMFrequencyRequest) } -inline PROTOBUF_NDEBUG_INLINE PWMFrequencyRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_), - pin_(arena, from.pin_) {} - -PWMFrequencyRequest::PWMFrequencyRequest( - ::google::protobuf::Arena* arena, - const PWMFrequencyRequest& from) - : ::google::protobuf::Message(arena) { - PWMFrequencyRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +PWMFrequencyRequest::PWMFrequencyRequest(const PWMFrequencyRequest& 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()); + } + pin_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + pin_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_pin().empty()) { + pin_.Set(from._internal_pin(), + GetArenaForAllocation()); + } + if (from._internal_has_extra()) { + extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.extra_); + } else { + extra_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.component.board.v1.PWMFrequencyRequest) } -inline PROTOBUF_NDEBUG_INLINE PWMFrequencyRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena), - pin_(arena) {} -inline void PWMFrequencyRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void PWMFrequencyRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +pin_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + pin_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + PWMFrequencyRequest::~PWMFrequencyRequest() { // @@protoc_insertion_point(destructor:viam.component.board.v1.PWMFrequencyRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void PWMFrequencyRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.pin_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + pin_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void PWMFrequencyRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void PWMFrequencyRequest::Clear() { +void PWMFrequencyRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.board.v1.PWMFrequencyRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _impl_.pin_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* PWMFrequencyRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + pin_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* PWMFrequencyRequest::_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.board.v1.PWMFrequencyRequest.name")); + } else + goto handle_unusual; + continue; + // string pin = 2 [json_name = "pin"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_pin(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.board.v1.PWMFrequencyRequest.pin")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 1, 59, 7> PWMFrequencyRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(PWMFrequencyRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_PWMFrequencyRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(PWMFrequencyRequest, _impl_.name_)}}, - // string pin = 2 [json_name = "pin"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(PWMFrequencyRequest, _impl_.pin_)}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(PWMFrequencyRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 2, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(PWMFrequencyRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string pin = 2 [json_name = "pin"]; - {PROTOBUF_FIELD_OFFSET(PWMFrequencyRequest, _impl_.pin_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(PWMFrequencyRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\53\4\3\0\0\0\0\0" - "viam.component.board.v1.PWMFrequencyRequest" - "name" - "pin" - }}, -}; - -::uint8_t* PWMFrequencyRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* PWMFrequencyRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.board.v1.PWMFrequencyRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.board.v1.PWMFrequencyRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.board.v1.PWMFrequencyRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // string pin = 2 [json_name = "pin"]; if (!this->_internal_pin().empty()) { - const std::string& _s = this->_internal_pin(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.board.v1.PWMFrequencyRequest.pin"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_pin().data(), static_cast(this->_internal_pin().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.board.v1.PWMFrequencyRequest.pin"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_pin(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.board.v1.PWMFrequencyRequest) return target; } -::size_t PWMFrequencyRequest::ByteSizeLong() const { +size_t PWMFrequencyRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.board.v1.PWMFrequencyRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // string pin = 2 [json_name = "pin"]; if (!this->_internal_pin().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_pin()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_pin()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData PWMFrequencyRequest::_class_data_ = { - PWMFrequencyRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PWMFrequencyRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + PWMFrequencyRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* PWMFrequencyRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PWMFrequencyRequest::GetClassData() const { return &_class_data_; } + +void PWMFrequencyRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void PWMFrequencyRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.board.v1.PWMFrequencyRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void PWMFrequencyRequest::MergeFrom(const PWMFrequencyRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.board.v1.PWMFrequencyRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (!from._internal_pin().empty()) { - _this->_internal_set_pin(from._internal_pin()); + _internal_set_pin(from._internal_pin()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void PWMFrequencyRequest::CopyFrom(const PWMFrequencyRequest& from) { @@ -3207,172 +3023,178 @@ void PWMFrequencyRequest::CopyFrom(const PWMFrequencyRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool PWMFrequencyRequest::IsInitialized() const { +bool PWMFrequencyRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* PWMFrequencyRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void PWMFrequencyRequest::InternalSwap(PWMFrequencyRequest* PROTOBUF_RESTRICT other) { +void PWMFrequencyRequest::InternalSwap(PWMFrequencyRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.pin_, &other->_impl_.pin_, arena); - swap(_impl_.extra_, other->_impl_.extra_); -} - -::google::protobuf::Metadata PWMFrequencyRequest::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &pin_, lhs_arena, + &other->pin_, rhs_arena + ); + swap(extra_, other->extra_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata PWMFrequencyRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[11]); } + // =================================================================== class PWMFrequencyResponse::_Internal { public: }; -PWMFrequencyResponse::PWMFrequencyResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +PWMFrequencyResponse::PWMFrequencyResponse(::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.board.v1.PWMFrequencyResponse) } -PWMFrequencyResponse::PWMFrequencyResponse( - ::google::protobuf::Arena* arena, const PWMFrequencyResponse& from) - : PWMFrequencyResponse(arena) { - MergeFrom(from); +PWMFrequencyResponse::PWMFrequencyResponse(const PWMFrequencyResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + frequency_hz_ = from.frequency_hz_; + // @@protoc_insertion_point(copy_constructor:viam.component.board.v1.PWMFrequencyResponse) } -inline PROTOBUF_NDEBUG_INLINE PWMFrequencyResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void PWMFrequencyResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.frequency_hz_ = {}; +inline void PWMFrequencyResponse::SharedCtor() { +frequency_hz_ = uint64_t{0u}; } + PWMFrequencyResponse::~PWMFrequencyResponse() { // @@protoc_insertion_point(destructor:viam.component.board.v1.PWMFrequencyResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void PWMFrequencyResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void PWMFrequencyResponse::Clear() { +void PWMFrequencyResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void PWMFrequencyResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.board.v1.PWMFrequencyResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.frequency_hz_ = ::uint64_t{0u}; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* PWMFrequencyResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + frequency_hz_ = uint64_t{0u}; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* PWMFrequencyResponse::_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) { + // uint64 frequency_hz = 1 [json_name = "frequencyHz"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + frequency_hz_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> PWMFrequencyResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_PWMFrequencyResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // uint64 frequency_hz = 1 [json_name = "frequencyHz"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(PWMFrequencyResponse, _impl_.frequency_hz_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(PWMFrequencyResponse, _impl_.frequency_hz_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // uint64 frequency_hz = 1 [json_name = "frequencyHz"]; - {PROTOBUF_FIELD_OFFSET(PWMFrequencyResponse, _impl_.frequency_hz_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* PWMFrequencyResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* PWMFrequencyResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.board.v1.PWMFrequencyResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // uint64 frequency_hz = 1 [json_name = "frequencyHz"]; if (this->_internal_frequency_hz() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 1, this->_internal_frequency_hz(), target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_frequency_hz(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.board.v1.PWMFrequencyResponse) return target; } -::size_t PWMFrequencyResponse::ByteSizeLong() const { +size_t PWMFrequencyResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.board.v1.PWMFrequencyResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // uint64 frequency_hz = 1 [json_name = "frequencyHz"]; if (this->_internal_frequency_hz() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_frequency_hz()); + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_frequency_hz()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData PWMFrequencyResponse::_class_data_ = { - PWMFrequencyResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PWMFrequencyResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + PWMFrequencyResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* PWMFrequencyResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PWMFrequencyResponse::GetClassData() const { return &_class_data_; } + +void PWMFrequencyResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void PWMFrequencyResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.board.v1.PWMFrequencyResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void PWMFrequencyResponse::MergeFrom(const PWMFrequencyResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.board.v1.PWMFrequencyResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_frequency_hz() != 0) { - _this->_internal_set_frequency_hz(from._internal_frequency_hz()); + _internal_set_frequency_hz(from._internal_frequency_hz()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void PWMFrequencyResponse::CopyFrom(const PWMFrequencyResponse& from) { @@ -3382,295 +3204,305 @@ void PWMFrequencyResponse::CopyFrom(const PWMFrequencyResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool PWMFrequencyResponse::IsInitialized() const { +bool PWMFrequencyResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* PWMFrequencyResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void PWMFrequencyResponse::InternalSwap(PWMFrequencyResponse* PROTOBUF_RESTRICT other) { +void PWMFrequencyResponse::InternalSwap(PWMFrequencyResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.frequency_hz_, other->_impl_.frequency_hz_); + swap(frequency_hz_, other->frequency_hz_); } -::google::protobuf::Metadata PWMFrequencyResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata PWMFrequencyResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[12]); } + // =================================================================== class SetPWMFrequencyRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SetPWMFrequencyRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const SetPWMFrequencyRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const SetPWMFrequencyRequest* msg); }; -const ::google::protobuf::Struct& SetPWMFrequencyRequest::_Internal::extra(const SetPWMFrequencyRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +SetPWMFrequencyRequest::_Internal::extra(const SetPWMFrequencyRequest* msg) { + return *msg->extra_; } void SetPWMFrequencyRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -SetPWMFrequencyRequest::SetPWMFrequencyRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +SetPWMFrequencyRequest::SetPWMFrequencyRequest(::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.board.v1.SetPWMFrequencyRequest) } -inline PROTOBUF_NDEBUG_INLINE SetPWMFrequencyRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_), - pin_(arena, from.pin_) {} - -SetPWMFrequencyRequest::SetPWMFrequencyRequest( - ::google::protobuf::Arena* arena, - const SetPWMFrequencyRequest& from) - : ::google::protobuf::Message(arena) { - SetPWMFrequencyRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - _impl_.frequency_hz_ = from._impl_.frequency_hz_; - +SetPWMFrequencyRequest::SetPWMFrequencyRequest(const SetPWMFrequencyRequest& 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()); + } + pin_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + pin_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_pin().empty()) { + pin_.Set(from._internal_pin(), + GetArenaForAllocation()); + } + if (from._internal_has_extra()) { + extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.extra_); + } else { + extra_ = nullptr; + } + frequency_hz_ = from.frequency_hz_; // @@protoc_insertion_point(copy_constructor:viam.component.board.v1.SetPWMFrequencyRequest) } -inline PROTOBUF_NDEBUG_INLINE SetPWMFrequencyRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena), - pin_(arena) {} - -inline void SetPWMFrequencyRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, extra_), - 0, - offsetof(Impl_, frequency_hz_) - - offsetof(Impl_, extra_) + - sizeof(Impl_::frequency_hz_)); + +inline void SetPWMFrequencyRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +pin_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + pin_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&extra_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&frequency_hz_) - + reinterpret_cast(&extra_)) + sizeof(frequency_hz_)); } + SetPWMFrequencyRequest::~SetPWMFrequencyRequest() { // @@protoc_insertion_point(destructor:viam.component.board.v1.SetPWMFrequencyRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void SetPWMFrequencyRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.pin_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + pin_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void SetPWMFrequencyRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void SetPWMFrequencyRequest::Clear() { +void SetPWMFrequencyRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.board.v1.SetPWMFrequencyRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _impl_.pin_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - _impl_.frequency_hz_ = ::uint64_t{0u}; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SetPWMFrequencyRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + pin_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + frequency_hz_ = uint64_t{0u}; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SetPWMFrequencyRequest::_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.board.v1.SetPWMFrequencyRequest.name")); + } else + goto handle_unusual; + continue; + // string pin = 2 [json_name = "pin"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_pin(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.board.v1.SetPWMFrequencyRequest.pin")); + } else + goto handle_unusual; + continue; + // uint64 frequency_hz = 3 [json_name = "frequencyHz"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + frequency_hz_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 1, 62, 7> SetPWMFrequencyRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(SetPWMFrequencyRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_SetPWMFrequencyRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(SetPWMFrequencyRequest, _impl_.name_)}}, - // string pin = 2 [json_name = "pin"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(SetPWMFrequencyRequest, _impl_.pin_)}}, - // uint64 frequency_hz = 3 [json_name = "frequencyHz"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(SetPWMFrequencyRequest, _impl_.frequency_hz_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(SetPWMFrequencyRequest, _impl_.frequency_hz_)}}, - }}, {{ - 99, 0, 1, - 65534, 3, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(SetPWMFrequencyRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string pin = 2 [json_name = "pin"]; - {PROTOBUF_FIELD_OFFSET(SetPWMFrequencyRequest, _impl_.pin_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // uint64 frequency_hz = 3 [json_name = "frequencyHz"]; - {PROTOBUF_FIELD_OFFSET(SetPWMFrequencyRequest, _impl_.frequency_hz_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(SetPWMFrequencyRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\56\4\3\0\0\0\0\0" - "viam.component.board.v1.SetPWMFrequencyRequest" - "name" - "pin" - }}, -}; - -::uint8_t* SetPWMFrequencyRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* SetPWMFrequencyRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.board.v1.SetPWMFrequencyRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.board.v1.SetPWMFrequencyRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.board.v1.SetPWMFrequencyRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // string pin = 2 [json_name = "pin"]; if (!this->_internal_pin().empty()) { - const std::string& _s = this->_internal_pin(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.board.v1.SetPWMFrequencyRequest.pin"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_pin().data(), static_cast(this->_internal_pin().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.board.v1.SetPWMFrequencyRequest.pin"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_pin(), target); } // uint64 frequency_hz = 3 [json_name = "frequencyHz"]; if (this->_internal_frequency_hz() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 3, this->_internal_frequency_hz(), target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(3, this->_internal_frequency_hz(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.board.v1.SetPWMFrequencyRequest) return target; } -::size_t SetPWMFrequencyRequest::ByteSizeLong() const { +size_t SetPWMFrequencyRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.board.v1.SetPWMFrequencyRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // string pin = 2 [json_name = "pin"]; if (!this->_internal_pin().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_pin()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_pin()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } // uint64 frequency_hz = 3 [json_name = "frequencyHz"]; if (this->_internal_frequency_hz() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_frequency_hz()); + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_frequency_hz()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData SetPWMFrequencyRequest::_class_data_ = { - SetPWMFrequencyRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetPWMFrequencyRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + SetPWMFrequencyRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* SetPWMFrequencyRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetPWMFrequencyRequest::GetClassData() const { return &_class_data_; } + +void SetPWMFrequencyRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void SetPWMFrequencyRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.board.v1.SetPWMFrequencyRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void SetPWMFrequencyRequest::MergeFrom(const SetPWMFrequencyRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.board.v1.SetPWMFrequencyRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (!from._internal_pin().empty()) { - _this->_internal_set_pin(from._internal_pin()); + _internal_set_pin(from._internal_pin()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } if (from._internal_frequency_hz() != 0) { - _this->_internal_set_frequency_hz(from._internal_frequency_hz()); + _internal_set_frequency_hz(from._internal_frequency_hz()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SetPWMFrequencyRequest::CopyFrom(const SetPWMFrequencyRequest& from) { @@ -3680,53 +3512,51 @@ void SetPWMFrequencyRequest::CopyFrom(const SetPWMFrequencyRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool SetPWMFrequencyRequest::IsInitialized() const { +bool SetPWMFrequencyRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* SetPWMFrequencyRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void SetPWMFrequencyRequest::InternalSwap(SetPWMFrequencyRequest* PROTOBUF_RESTRICT other) { +void SetPWMFrequencyRequest::InternalSwap(SetPWMFrequencyRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.pin_, &other->_impl_.pin_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(SetPWMFrequencyRequest, _impl_.frequency_hz_) - + sizeof(SetPWMFrequencyRequest::_impl_.frequency_hz_) - - PROTOBUF_FIELD_OFFSET(SetPWMFrequencyRequest, _impl_.extra_)>( - reinterpret_cast(&_impl_.extra_), - reinterpret_cast(&other->_impl_.extra_)); -} - -::google::protobuf::Metadata SetPWMFrequencyRequest::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &pin_, lhs_arena, + &other->pin_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(SetPWMFrequencyRequest, frequency_hz_) + + sizeof(SetPWMFrequencyRequest::frequency_hz_) + - PROTOBUF_FIELD_OFFSET(SetPWMFrequencyRequest, extra_)>( + reinterpret_cast(&extra_), + reinterpret_cast(&other->extra_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SetPWMFrequencyRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[13]); } + // =================================================================== class SetPWMFrequencyResponse::_Internal { public: }; -SetPWMFrequencyResponse::SetPWMFrequencyResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +SetPWMFrequencyResponse::SetPWMFrequencyResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.component.board.v1.SetPWMFrequencyResponse) } -SetPWMFrequencyResponse::SetPWMFrequencyResponse( - ::google::protobuf::Arena* arena, - const SetPWMFrequencyResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - SetPWMFrequencyResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +SetPWMFrequencyResponse::SetPWMFrequencyResponse(const SetPWMFrequencyResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.component.board.v1.SetPWMFrequencyResponse) } @@ -3734,260 +3564,280 @@ SetPWMFrequencyResponse::SetPWMFrequencyResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetPWMFrequencyResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetPWMFrequencyResponse::GetClassData() const { return &_class_data_; } + + -::google::protobuf::Metadata SetPWMFrequencyResponse::GetMetadata() const { + +::PROTOBUF_NAMESPACE_ID::Metadata SetPWMFrequencyResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[14]); } + // =================================================================== class ReadAnalogReaderRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ReadAnalogReaderRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const ReadAnalogReaderRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const ReadAnalogReaderRequest* msg); }; -const ::google::protobuf::Struct& ReadAnalogReaderRequest::_Internal::extra(const ReadAnalogReaderRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +ReadAnalogReaderRequest::_Internal::extra(const ReadAnalogReaderRequest* msg) { + return *msg->extra_; } void ReadAnalogReaderRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -ReadAnalogReaderRequest::ReadAnalogReaderRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ReadAnalogReaderRequest::ReadAnalogReaderRequest(::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.board.v1.ReadAnalogReaderRequest) } -inline PROTOBUF_NDEBUG_INLINE ReadAnalogReaderRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - board_name_(arena, from.board_name_), - analog_reader_name_(arena, from.analog_reader_name_) {} - -ReadAnalogReaderRequest::ReadAnalogReaderRequest( - ::google::protobuf::Arena* arena, - const ReadAnalogReaderRequest& from) - : ::google::protobuf::Message(arena) { - ReadAnalogReaderRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +ReadAnalogReaderRequest::ReadAnalogReaderRequest(const ReadAnalogReaderRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + board_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + board_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_board_name().empty()) { + board_name_.Set(from._internal_board_name(), + GetArenaForAllocation()); + } + analog_reader_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + analog_reader_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_analog_reader_name().empty()) { + analog_reader_name_.Set(from._internal_analog_reader_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.board.v1.ReadAnalogReaderRequest) } -inline PROTOBUF_NDEBUG_INLINE ReadAnalogReaderRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - board_name_(arena), - analog_reader_name_(arena) {} -inline void ReadAnalogReaderRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void ReadAnalogReaderRequest::SharedCtor() { +board_name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + board_name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +analog_reader_name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + analog_reader_name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + ReadAnalogReaderRequest::~ReadAnalogReaderRequest() { // @@protoc_insertion_point(destructor:viam.component.board.v1.ReadAnalogReaderRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ReadAnalogReaderRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.board_name_.Destroy(); - _impl_.analog_reader_name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + board_name_.Destroy(); + analog_reader_name_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void ReadAnalogReaderRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void ReadAnalogReaderRequest::Clear() { +void ReadAnalogReaderRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.board.v1.ReadAnalogReaderRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.board_name_.ClearToEmpty(); - _impl_.analog_reader_name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ReadAnalogReaderRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + board_name_.ClearToEmpty(); + analog_reader_name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ReadAnalogReaderRequest::_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 board_name = 1 [json_name = "boardName"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_board_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.board.v1.ReadAnalogReaderRequest.board_name")); + } else + goto handle_unusual; + continue; + // string analog_reader_name = 2 [json_name = "analogReaderName"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_analog_reader_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.board.v1.ReadAnalogReaderRequest.analog_reader_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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 1, 84, 7> ReadAnalogReaderRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ReadAnalogReaderRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ReadAnalogReaderRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string board_name = 1 [json_name = "boardName"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ReadAnalogReaderRequest, _impl_.board_name_)}}, - // string analog_reader_name = 2 [json_name = "analogReaderName"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(ReadAnalogReaderRequest, _impl_.analog_reader_name_)}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(ReadAnalogReaderRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 2, - 65535, 65535 - }}, {{ - // string board_name = 1 [json_name = "boardName"]; - {PROTOBUF_FIELD_OFFSET(ReadAnalogReaderRequest, _impl_.board_name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string analog_reader_name = 2 [json_name = "analogReaderName"]; - {PROTOBUF_FIELD_OFFSET(ReadAnalogReaderRequest, _impl_.analog_reader_name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(ReadAnalogReaderRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\57\12\22\0\0\0\0\0" - "viam.component.board.v1.ReadAnalogReaderRequest" - "board_name" - "analog_reader_name" - }}, -}; - -::uint8_t* ReadAnalogReaderRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ReadAnalogReaderRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.board.v1.ReadAnalogReaderRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string board_name = 1 [json_name = "boardName"]; if (!this->_internal_board_name().empty()) { - const std::string& _s = this->_internal_board_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.board.v1.ReadAnalogReaderRequest.board_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_board_name().data(), static_cast(this->_internal_board_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.board.v1.ReadAnalogReaderRequest.board_name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_board_name(), target); } // string analog_reader_name = 2 [json_name = "analogReaderName"]; if (!this->_internal_analog_reader_name().empty()) { - const std::string& _s = this->_internal_analog_reader_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.board.v1.ReadAnalogReaderRequest.analog_reader_name"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_analog_reader_name().data(), static_cast(this->_internal_analog_reader_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.board.v1.ReadAnalogReaderRequest.analog_reader_name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_analog_reader_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.board.v1.ReadAnalogReaderRequest) return target; } -::size_t ReadAnalogReaderRequest::ByteSizeLong() const { +size_t ReadAnalogReaderRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.board.v1.ReadAnalogReaderRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string board_name = 1 [json_name = "boardName"]; if (!this->_internal_board_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_board_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_board_name()); } // string analog_reader_name = 2 [json_name = "analogReaderName"]; if (!this->_internal_analog_reader_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_analog_reader_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_analog_reader_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ReadAnalogReaderRequest::_class_data_ = { - ReadAnalogReaderRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ReadAnalogReaderRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ReadAnalogReaderRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* ReadAnalogReaderRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ReadAnalogReaderRequest::GetClassData() const { return &_class_data_; } + +void ReadAnalogReaderRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ReadAnalogReaderRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.board.v1.ReadAnalogReaderRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ReadAnalogReaderRequest::MergeFrom(const ReadAnalogReaderRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.board.v1.ReadAnalogReaderRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_board_name().empty()) { - _this->_internal_set_board_name(from._internal_board_name()); + _internal_set_board_name(from._internal_board_name()); } if (!from._internal_analog_reader_name().empty()) { - _this->_internal_set_analog_reader_name(from._internal_analog_reader_name()); + _internal_set_analog_reader_name(from._internal_analog_reader_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ReadAnalogReaderRequest::CopyFrom(const ReadAnalogReaderRequest& from) { @@ -3997,287 +3847,287 @@ void ReadAnalogReaderRequest::CopyFrom(const ReadAnalogReaderRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ReadAnalogReaderRequest::IsInitialized() const { +bool ReadAnalogReaderRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* ReadAnalogReaderRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ReadAnalogReaderRequest::InternalSwap(ReadAnalogReaderRequest* PROTOBUF_RESTRICT other) { +void ReadAnalogReaderRequest::InternalSwap(ReadAnalogReaderRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.board_name_, &other->_impl_.board_name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.analog_reader_name_, &other->_impl_.analog_reader_name_, arena); - swap(_impl_.extra_, other->_impl_.extra_); -} - -::google::protobuf::Metadata ReadAnalogReaderRequest::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &board_name_, lhs_arena, + &other->board_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &analog_reader_name_, lhs_arena, + &other->analog_reader_name_, rhs_arena + ); + swap(extra_, other->extra_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ReadAnalogReaderRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[15]); } + // =================================================================== class ReadAnalogReaderResponse::_Internal { public: }; -ReadAnalogReaderResponse::ReadAnalogReaderResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ReadAnalogReaderResponse::ReadAnalogReaderResponse(::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.board.v1.ReadAnalogReaderResponse) } -ReadAnalogReaderResponse::ReadAnalogReaderResponse( - ::google::protobuf::Arena* arena, const ReadAnalogReaderResponse& from) - : ReadAnalogReaderResponse(arena) { - MergeFrom(from); +ReadAnalogReaderResponse::ReadAnalogReaderResponse(const ReadAnalogReaderResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&value_, &from.value_, + static_cast(reinterpret_cast(&step_size_) - + reinterpret_cast(&value_)) + sizeof(step_size_)); + // @@protoc_insertion_point(copy_constructor:viam.component.board.v1.ReadAnalogReaderResponse) } -inline PROTOBUF_NDEBUG_INLINE ReadAnalogReaderResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void ReadAnalogReaderResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, value_), - 0, - offsetof(Impl_, step_size_) - - offsetof(Impl_, value_) + - sizeof(Impl_::step_size_)); +inline void ReadAnalogReaderResponse::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&value_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&step_size_) - + reinterpret_cast(&value_)) + sizeof(step_size_)); } + ReadAnalogReaderResponse::~ReadAnalogReaderResponse() { // @@protoc_insertion_point(destructor:viam.component.board.v1.ReadAnalogReaderResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ReadAnalogReaderResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void ReadAnalogReaderResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void ReadAnalogReaderResponse::Clear() { +void ReadAnalogReaderResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.board.v1.ReadAnalogReaderResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&_impl_.value_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.step_size_) - - reinterpret_cast(&_impl_.value_)) + sizeof(_impl_.step_size_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ReadAnalogReaderResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + ::memset(&value_, 0, static_cast( + reinterpret_cast(&step_size_) - + reinterpret_cast(&value_)) + sizeof(step_size_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ReadAnalogReaderResponse::_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) { + // int32 value = 1 [json_name = "value"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + value_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // float min_range = 2 [json_name = "minRange"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 21)) { + min_range_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(float); + } else + goto handle_unusual; + continue; + // float max_range = 3 [json_name = "maxRange"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 29)) { + max_range_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(float); + } else + goto handle_unusual; + continue; + // float step_size = 4 [json_name = "stepSize"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 37)) { + step_size_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(float); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 0, 0, 2> ReadAnalogReaderResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_ReadAnalogReaderResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // float step_size = 4 [json_name = "stepSize"]; - {::_pbi::TcParser::FastF32S1, - {37, 63, 0, PROTOBUF_FIELD_OFFSET(ReadAnalogReaderResponse, _impl_.step_size_)}}, - // int32 value = 1 [json_name = "value"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ReadAnalogReaderResponse, _impl_.value_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(ReadAnalogReaderResponse, _impl_.value_)}}, - // float min_range = 2 [json_name = "minRange"]; - {::_pbi::TcParser::FastF32S1, - {21, 63, 0, PROTOBUF_FIELD_OFFSET(ReadAnalogReaderResponse, _impl_.min_range_)}}, - // float max_range = 3 [json_name = "maxRange"]; - {::_pbi::TcParser::FastF32S1, - {29, 63, 0, PROTOBUF_FIELD_OFFSET(ReadAnalogReaderResponse, _impl_.max_range_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // int32 value = 1 [json_name = "value"]; - {PROTOBUF_FIELD_OFFSET(ReadAnalogReaderResponse, _impl_.value_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // float min_range = 2 [json_name = "minRange"]; - {PROTOBUF_FIELD_OFFSET(ReadAnalogReaderResponse, _impl_.min_range_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, - // float max_range = 3 [json_name = "maxRange"]; - {PROTOBUF_FIELD_OFFSET(ReadAnalogReaderResponse, _impl_.max_range_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, - // float step_size = 4 [json_name = "stepSize"]; - {PROTOBUF_FIELD_OFFSET(ReadAnalogReaderResponse, _impl_.step_size_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* ReadAnalogReaderResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ReadAnalogReaderResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.board.v1.ReadAnalogReaderResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // int32 value = 1 [json_name = "value"]; if (this->_internal_value() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<1>( - stream, this->_internal_value(), target); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_value(), target); } // float min_range = 2 [json_name = "minRange"]; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); + static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); float tmp_min_range = this->_internal_min_range(); - ::uint32_t raw_min_range; + uint32_t raw_min_range; memcpy(&raw_min_range, &tmp_min_range, sizeof(tmp_min_range)); if (raw_min_range != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 2, this->_internal_min_range(), target); + target = ::_pbi::WireFormatLite::WriteFloatToArray(2, this->_internal_min_range(), target); } // float max_range = 3 [json_name = "maxRange"]; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); + static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); float tmp_max_range = this->_internal_max_range(); - ::uint32_t raw_max_range; + uint32_t raw_max_range; memcpy(&raw_max_range, &tmp_max_range, sizeof(tmp_max_range)); if (raw_max_range != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 3, this->_internal_max_range(), target); + target = ::_pbi::WireFormatLite::WriteFloatToArray(3, this->_internal_max_range(), target); } // float step_size = 4 [json_name = "stepSize"]; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); + static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); float tmp_step_size = this->_internal_step_size(); - ::uint32_t raw_step_size; + uint32_t raw_step_size; memcpy(&raw_step_size, &tmp_step_size, sizeof(tmp_step_size)); if (raw_step_size != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 4, this->_internal_step_size(), target); + target = ::_pbi::WireFormatLite::WriteFloatToArray(4, this->_internal_step_size(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.board.v1.ReadAnalogReaderResponse) return target; } -::size_t ReadAnalogReaderResponse::ByteSizeLong() const { +size_t ReadAnalogReaderResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.board.v1.ReadAnalogReaderResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // int32 value = 1 [json_name = "value"]; if (this->_internal_value() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_value()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_value()); } // float min_range = 2 [json_name = "minRange"]; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); + static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); float tmp_min_range = this->_internal_min_range(); - ::uint32_t raw_min_range; + uint32_t raw_min_range; memcpy(&raw_min_range, &tmp_min_range, sizeof(tmp_min_range)); if (raw_min_range != 0) { - total_size += 5; + total_size += 1 + 4; } // float max_range = 3 [json_name = "maxRange"]; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); + static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); float tmp_max_range = this->_internal_max_range(); - ::uint32_t raw_max_range; + uint32_t raw_max_range; memcpy(&raw_max_range, &tmp_max_range, sizeof(tmp_max_range)); if (raw_max_range != 0) { - total_size += 5; + total_size += 1 + 4; } // float step_size = 4 [json_name = "stepSize"]; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); + static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); float tmp_step_size = this->_internal_step_size(); - ::uint32_t raw_step_size; + uint32_t raw_step_size; memcpy(&raw_step_size, &tmp_step_size, sizeof(tmp_step_size)); if (raw_step_size != 0) { - total_size += 5; + total_size += 1 + 4; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ReadAnalogReaderResponse::_class_data_ = { - ReadAnalogReaderResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ReadAnalogReaderResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ReadAnalogReaderResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* ReadAnalogReaderResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ReadAnalogReaderResponse::GetClassData() const { return &_class_data_; } + +void ReadAnalogReaderResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ReadAnalogReaderResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.board.v1.ReadAnalogReaderResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ReadAnalogReaderResponse::MergeFrom(const ReadAnalogReaderResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.board.v1.ReadAnalogReaderResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_value() != 0) { - _this->_internal_set_value(from._internal_value()); + _internal_set_value(from._internal_value()); } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); + static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); float tmp_min_range = from._internal_min_range(); - ::uint32_t raw_min_range; + uint32_t raw_min_range; memcpy(&raw_min_range, &tmp_min_range, sizeof(tmp_min_range)); if (raw_min_range != 0) { - _this->_internal_set_min_range(from._internal_min_range()); + _internal_set_min_range(from._internal_min_range()); } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); + static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); float tmp_max_range = from._internal_max_range(); - ::uint32_t raw_max_range; + uint32_t raw_max_range; memcpy(&raw_max_range, &tmp_max_range, sizeof(tmp_max_range)); if (raw_max_range != 0) { - _this->_internal_set_max_range(from._internal_max_range()); + _internal_set_max_range(from._internal_max_range()); } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); + static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); float tmp_step_size = from._internal_step_size(); - ::uint32_t raw_step_size; + uint32_t raw_step_size; memcpy(&raw_step_size, &tmp_step_size, sizeof(tmp_step_size)); if (raw_step_size != 0) { - _this->_internal_set_step_size(from._internal_step_size()); + _internal_set_step_size(from._internal_step_size()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ReadAnalogReaderResponse::CopyFrom(const ReadAnalogReaderResponse& from) { @@ -4287,300 +4137,310 @@ void ReadAnalogReaderResponse::CopyFrom(const ReadAnalogReaderResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ReadAnalogReaderResponse::IsInitialized() const { +bool ReadAnalogReaderResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* ReadAnalogReaderResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ReadAnalogReaderResponse::InternalSwap(ReadAnalogReaderResponse* PROTOBUF_RESTRICT other) { +void ReadAnalogReaderResponse::InternalSwap(ReadAnalogReaderResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(ReadAnalogReaderResponse, _impl_.step_size_) - + sizeof(ReadAnalogReaderResponse::_impl_.step_size_) - - PROTOBUF_FIELD_OFFSET(ReadAnalogReaderResponse, _impl_.value_)>( - reinterpret_cast(&_impl_.value_), - reinterpret_cast(&other->_impl_.value_)); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(ReadAnalogReaderResponse, step_size_) + + sizeof(ReadAnalogReaderResponse::step_size_) + - PROTOBUF_FIELD_OFFSET(ReadAnalogReaderResponse, value_)>( + reinterpret_cast(&value_), + reinterpret_cast(&other->value_)); } -::google::protobuf::Metadata ReadAnalogReaderResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ReadAnalogReaderResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[16]); } + // =================================================================== class WriteAnalogRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(WriteAnalogRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const WriteAnalogRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const WriteAnalogRequest* msg); }; -const ::google::protobuf::Struct& WriteAnalogRequest::_Internal::extra(const WriteAnalogRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +WriteAnalogRequest::_Internal::extra(const WriteAnalogRequest* msg) { + return *msg->extra_; } void WriteAnalogRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -WriteAnalogRequest::WriteAnalogRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +WriteAnalogRequest::WriteAnalogRequest(::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.board.v1.WriteAnalogRequest) } -inline PROTOBUF_NDEBUG_INLINE WriteAnalogRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_), - pin_(arena, from.pin_) {} - -WriteAnalogRequest::WriteAnalogRequest( - ::google::protobuf::Arena* arena, - const WriteAnalogRequest& from) - : ::google::protobuf::Message(arena) { - WriteAnalogRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - _impl_.value_ = from._impl_.value_; - +WriteAnalogRequest::WriteAnalogRequest(const WriteAnalogRequest& 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()); + } + pin_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + pin_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_pin().empty()) { + pin_.Set(from._internal_pin(), + GetArenaForAllocation()); + } + if (from._internal_has_extra()) { + extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.extra_); + } else { + extra_ = nullptr; + } + value_ = from.value_; // @@protoc_insertion_point(copy_constructor:viam.component.board.v1.WriteAnalogRequest) } -inline PROTOBUF_NDEBUG_INLINE WriteAnalogRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena), - pin_(arena) {} - -inline void WriteAnalogRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, extra_), - 0, - offsetof(Impl_, value_) - - offsetof(Impl_, extra_) + - sizeof(Impl_::value_)); + +inline void WriteAnalogRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +pin_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + pin_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&extra_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&value_) - + reinterpret_cast(&extra_)) + sizeof(value_)); } + WriteAnalogRequest::~WriteAnalogRequest() { // @@protoc_insertion_point(destructor:viam.component.board.v1.WriteAnalogRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void WriteAnalogRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.pin_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + pin_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void WriteAnalogRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void WriteAnalogRequest::Clear() { +void WriteAnalogRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.board.v1.WriteAnalogRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _impl_.pin_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - _impl_.value_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* WriteAnalogRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + pin_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + value_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* WriteAnalogRequest::_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.board.v1.WriteAnalogRequest.name")); + } else + goto handle_unusual; + continue; + // string pin = 2 [json_name = "pin"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_pin(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.board.v1.WriteAnalogRequest.pin")); + } else + goto handle_unusual; + continue; + // int32 value = 3 [json_name = "value"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + value_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 1, 58, 7> WriteAnalogRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(WriteAnalogRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_WriteAnalogRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(WriteAnalogRequest, _impl_.name_)}}, - // string pin = 2 [json_name = "pin"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(WriteAnalogRequest, _impl_.pin_)}}, - // int32 value = 3 [json_name = "value"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(WriteAnalogRequest, _impl_.value_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(WriteAnalogRequest, _impl_.value_)}}, - }}, {{ - 99, 0, 1, - 65534, 3, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(WriteAnalogRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string pin = 2 [json_name = "pin"]; - {PROTOBUF_FIELD_OFFSET(WriteAnalogRequest, _impl_.pin_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // int32 value = 3 [json_name = "value"]; - {PROTOBUF_FIELD_OFFSET(WriteAnalogRequest, _impl_.value_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(WriteAnalogRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\52\4\3\0\0\0\0\0" - "viam.component.board.v1.WriteAnalogRequest" - "name" - "pin" - }}, -}; - -::uint8_t* WriteAnalogRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* WriteAnalogRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.board.v1.WriteAnalogRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.board.v1.WriteAnalogRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.board.v1.WriteAnalogRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // string pin = 2 [json_name = "pin"]; if (!this->_internal_pin().empty()) { - const std::string& _s = this->_internal_pin(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.board.v1.WriteAnalogRequest.pin"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_pin().data(), static_cast(this->_internal_pin().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.board.v1.WriteAnalogRequest.pin"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_pin(), target); } // int32 value = 3 [json_name = "value"]; if (this->_internal_value() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<3>( - stream, this->_internal_value(), target); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_value(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.board.v1.WriteAnalogRequest) return target; } -::size_t WriteAnalogRequest::ByteSizeLong() const { +size_t WriteAnalogRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.board.v1.WriteAnalogRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // string pin = 2 [json_name = "pin"]; if (!this->_internal_pin().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_pin()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_pin()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } // int32 value = 3 [json_name = "value"]; if (this->_internal_value() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_value()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_value()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData WriteAnalogRequest::_class_data_ = { - WriteAnalogRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData WriteAnalogRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + WriteAnalogRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* WriteAnalogRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*WriteAnalogRequest::GetClassData() const { return &_class_data_; } + +void WriteAnalogRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void WriteAnalogRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.board.v1.WriteAnalogRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void WriteAnalogRequest::MergeFrom(const WriteAnalogRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.board.v1.WriteAnalogRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (!from._internal_pin().empty()) { - _this->_internal_set_pin(from._internal_pin()); + _internal_set_pin(from._internal_pin()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } if (from._internal_value() != 0) { - _this->_internal_set_value(from._internal_value()); + _internal_set_value(from._internal_value()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void WriteAnalogRequest::CopyFrom(const WriteAnalogRequest& from) { @@ -4590,53 +4450,51 @@ void WriteAnalogRequest::CopyFrom(const WriteAnalogRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool WriteAnalogRequest::IsInitialized() const { +bool WriteAnalogRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* WriteAnalogRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void WriteAnalogRequest::InternalSwap(WriteAnalogRequest* PROTOBUF_RESTRICT other) { +void WriteAnalogRequest::InternalSwap(WriteAnalogRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.pin_, &other->_impl_.pin_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(WriteAnalogRequest, _impl_.value_) - + sizeof(WriteAnalogRequest::_impl_.value_) - - PROTOBUF_FIELD_OFFSET(WriteAnalogRequest, _impl_.extra_)>( - reinterpret_cast(&_impl_.extra_), - reinterpret_cast(&other->_impl_.extra_)); -} - -::google::protobuf::Metadata WriteAnalogRequest::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &pin_, lhs_arena, + &other->pin_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(WriteAnalogRequest, value_) + + sizeof(WriteAnalogRequest::value_) + - PROTOBUF_FIELD_OFFSET(WriteAnalogRequest, extra_)>( + reinterpret_cast(&extra_), + reinterpret_cast(&other->extra_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata WriteAnalogRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[17]); } + // =================================================================== class WriteAnalogResponse::_Internal { public: }; -WriteAnalogResponse::WriteAnalogResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +WriteAnalogResponse::WriteAnalogResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.component.board.v1.WriteAnalogResponse) } -WriteAnalogResponse::WriteAnalogResponse( - ::google::protobuf::Arena* arena, - const WriteAnalogResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - WriteAnalogResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +WriteAnalogResponse::WriteAnalogResponse(const WriteAnalogResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.component.board.v1.WriteAnalogResponse) } @@ -4644,260 +4502,280 @@ WriteAnalogResponse::WriteAnalogResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData WriteAnalogResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*WriteAnalogResponse::GetClassData() const { return &_class_data_; } + + + -::google::protobuf::Metadata WriteAnalogResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata WriteAnalogResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[18]); } + // =================================================================== class GetDigitalInterruptValueRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetDigitalInterruptValueRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const GetDigitalInterruptValueRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetDigitalInterruptValueRequest* msg); }; -const ::google::protobuf::Struct& GetDigitalInterruptValueRequest::_Internal::extra(const GetDigitalInterruptValueRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetDigitalInterruptValueRequest::_Internal::extra(const GetDigitalInterruptValueRequest* msg) { + return *msg->extra_; } void GetDigitalInterruptValueRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -GetDigitalInterruptValueRequest::GetDigitalInterruptValueRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetDigitalInterruptValueRequest::GetDigitalInterruptValueRequest(::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.board.v1.GetDigitalInterruptValueRequest) } -inline PROTOBUF_NDEBUG_INLINE GetDigitalInterruptValueRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - board_name_(arena, from.board_name_), - digital_interrupt_name_(arena, from.digital_interrupt_name_) {} - -GetDigitalInterruptValueRequest::GetDigitalInterruptValueRequest( - ::google::protobuf::Arena* arena, - const GetDigitalInterruptValueRequest& from) - : ::google::protobuf::Message(arena) { - GetDigitalInterruptValueRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +GetDigitalInterruptValueRequest::GetDigitalInterruptValueRequest(const GetDigitalInterruptValueRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + board_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + board_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_board_name().empty()) { + board_name_.Set(from._internal_board_name(), + GetArenaForAllocation()); + } + digital_interrupt_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + digital_interrupt_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_digital_interrupt_name().empty()) { + digital_interrupt_name_.Set(from._internal_digital_interrupt_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.board.v1.GetDigitalInterruptValueRequest) } -inline PROTOBUF_NDEBUG_INLINE GetDigitalInterruptValueRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - board_name_(arena), - digital_interrupt_name_(arena) {} -inline void GetDigitalInterruptValueRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void GetDigitalInterruptValueRequest::SharedCtor() { +board_name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + board_name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +digital_interrupt_name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + digital_interrupt_name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + GetDigitalInterruptValueRequest::~GetDigitalInterruptValueRequest() { // @@protoc_insertion_point(destructor:viam.component.board.v1.GetDigitalInterruptValueRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetDigitalInterruptValueRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.board_name_.Destroy(); - _impl_.digital_interrupt_name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + board_name_.Destroy(); + digital_interrupt_name_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void GetDigitalInterruptValueRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetDigitalInterruptValueRequest::Clear() { +void GetDigitalInterruptValueRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.board.v1.GetDigitalInterruptValueRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.board_name_.ClearToEmpty(); - _impl_.digital_interrupt_name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetDigitalInterruptValueRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + board_name_.ClearToEmpty(); + digital_interrupt_name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetDigitalInterruptValueRequest::_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 board_name = 1 [json_name = "boardName"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_board_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.board.v1.GetDigitalInterruptValueRequest.board_name")); + } else + goto handle_unusual; + continue; + // string digital_interrupt_name = 2 [json_name = "digitalInterruptName"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_digital_interrupt_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.board.v1.GetDigitalInterruptValueRequest.digital_interrupt_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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 1, 96, 7> GetDigitalInterruptValueRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetDigitalInterruptValueRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetDigitalInterruptValueRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string board_name = 1 [json_name = "boardName"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetDigitalInterruptValueRequest, _impl_.board_name_)}}, - // string digital_interrupt_name = 2 [json_name = "digitalInterruptName"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(GetDigitalInterruptValueRequest, _impl_.digital_interrupt_name_)}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(GetDigitalInterruptValueRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 2, - 65535, 65535 - }}, {{ - // string board_name = 1 [json_name = "boardName"]; - {PROTOBUF_FIELD_OFFSET(GetDigitalInterruptValueRequest, _impl_.board_name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string digital_interrupt_name = 2 [json_name = "digitalInterruptName"]; - {PROTOBUF_FIELD_OFFSET(GetDigitalInterruptValueRequest, _impl_.digital_interrupt_name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(GetDigitalInterruptValueRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\67\12\26\0\0\0\0\0" - "viam.component.board.v1.GetDigitalInterruptValueRequest" - "board_name" - "digital_interrupt_name" - }}, -}; - -::uint8_t* GetDigitalInterruptValueRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetDigitalInterruptValueRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.board.v1.GetDigitalInterruptValueRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string board_name = 1 [json_name = "boardName"]; if (!this->_internal_board_name().empty()) { - const std::string& _s = this->_internal_board_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.board.v1.GetDigitalInterruptValueRequest.board_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_board_name().data(), static_cast(this->_internal_board_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.board.v1.GetDigitalInterruptValueRequest.board_name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_board_name(), target); } // string digital_interrupt_name = 2 [json_name = "digitalInterruptName"]; if (!this->_internal_digital_interrupt_name().empty()) { - const std::string& _s = this->_internal_digital_interrupt_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.board.v1.GetDigitalInterruptValueRequest.digital_interrupt_name"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_digital_interrupt_name().data(), static_cast(this->_internal_digital_interrupt_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.board.v1.GetDigitalInterruptValueRequest.digital_interrupt_name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_digital_interrupt_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.board.v1.GetDigitalInterruptValueRequest) return target; } -::size_t GetDigitalInterruptValueRequest::ByteSizeLong() const { +size_t GetDigitalInterruptValueRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.board.v1.GetDigitalInterruptValueRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string board_name = 1 [json_name = "boardName"]; if (!this->_internal_board_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_board_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_board_name()); } // string digital_interrupt_name = 2 [json_name = "digitalInterruptName"]; if (!this->_internal_digital_interrupt_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_digital_interrupt_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_digital_interrupt_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetDigitalInterruptValueRequest::_class_data_ = { - GetDigitalInterruptValueRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetDigitalInterruptValueRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetDigitalInterruptValueRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetDigitalInterruptValueRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetDigitalInterruptValueRequest::GetClassData() const { return &_class_data_; } + +void GetDigitalInterruptValueRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetDigitalInterruptValueRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.board.v1.GetDigitalInterruptValueRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetDigitalInterruptValueRequest::MergeFrom(const GetDigitalInterruptValueRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.board.v1.GetDigitalInterruptValueRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_board_name().empty()) { - _this->_internal_set_board_name(from._internal_board_name()); + _internal_set_board_name(from._internal_board_name()); } if (!from._internal_digital_interrupt_name().empty()) { - _this->_internal_set_digital_interrupt_name(from._internal_digital_interrupt_name()); + _internal_set_digital_interrupt_name(from._internal_digital_interrupt_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetDigitalInterruptValueRequest::CopyFrom(const GetDigitalInterruptValueRequest& from) { @@ -4907,172 +4785,178 @@ void GetDigitalInterruptValueRequest::CopyFrom(const GetDigitalInterruptValueReq MergeFrom(from); } -PROTOBUF_NOINLINE bool GetDigitalInterruptValueRequest::IsInitialized() const { +bool GetDigitalInterruptValueRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetDigitalInterruptValueRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetDigitalInterruptValueRequest::InternalSwap(GetDigitalInterruptValueRequest* PROTOBUF_RESTRICT other) { +void GetDigitalInterruptValueRequest::InternalSwap(GetDigitalInterruptValueRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.board_name_, &other->_impl_.board_name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.digital_interrupt_name_, &other->_impl_.digital_interrupt_name_, arena); - swap(_impl_.extra_, other->_impl_.extra_); -} - -::google::protobuf::Metadata GetDigitalInterruptValueRequest::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &board_name_, lhs_arena, + &other->board_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &digital_interrupt_name_, lhs_arena, + &other->digital_interrupt_name_, rhs_arena + ); + swap(extra_, other->extra_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetDigitalInterruptValueRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[19]); } + // =================================================================== class GetDigitalInterruptValueResponse::_Internal { public: }; -GetDigitalInterruptValueResponse::GetDigitalInterruptValueResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetDigitalInterruptValueResponse::GetDigitalInterruptValueResponse(::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.board.v1.GetDigitalInterruptValueResponse) } -GetDigitalInterruptValueResponse::GetDigitalInterruptValueResponse( - ::google::protobuf::Arena* arena, const GetDigitalInterruptValueResponse& from) - : GetDigitalInterruptValueResponse(arena) { - MergeFrom(from); +GetDigitalInterruptValueResponse::GetDigitalInterruptValueResponse(const GetDigitalInterruptValueResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + value_ = from.value_; + // @@protoc_insertion_point(copy_constructor:viam.component.board.v1.GetDigitalInterruptValueResponse) } -inline PROTOBUF_NDEBUG_INLINE GetDigitalInterruptValueResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void GetDigitalInterruptValueResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.value_ = {}; +inline void GetDigitalInterruptValueResponse::SharedCtor() { +value_ = int64_t{0}; } + GetDigitalInterruptValueResponse::~GetDigitalInterruptValueResponse() { // @@protoc_insertion_point(destructor:viam.component.board.v1.GetDigitalInterruptValueResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetDigitalInterruptValueResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void GetDigitalInterruptValueResponse::Clear() { +void GetDigitalInterruptValueResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetDigitalInterruptValueResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.board.v1.GetDigitalInterruptValueResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.value_ = ::int64_t{0}; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetDigitalInterruptValueResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + value_ = int64_t{0}; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetDigitalInterruptValueResponse::_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) { + // int64 value = 1 [json_name = "value"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + value_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> GetDigitalInterruptValueResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetDigitalInterruptValueResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // int64 value = 1 [json_name = "value"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GetDigitalInterruptValueResponse, _impl_.value_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(GetDigitalInterruptValueResponse, _impl_.value_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // int64 value = 1 [json_name = "value"]; - {PROTOBUF_FIELD_OFFSET(GetDigitalInterruptValueResponse, _impl_.value_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* GetDigitalInterruptValueResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetDigitalInterruptValueResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.board.v1.GetDigitalInterruptValueResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // int64 value = 1 [json_name = "value"]; if (this->_internal_value() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<1>( - stream, this->_internal_value(), target); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_value(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.board.v1.GetDigitalInterruptValueResponse) return target; } -::size_t GetDigitalInterruptValueResponse::ByteSizeLong() const { +size_t GetDigitalInterruptValueResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.board.v1.GetDigitalInterruptValueResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // int64 value = 1 [json_name = "value"]; if (this->_internal_value() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( - this->_internal_value()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_value()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetDigitalInterruptValueResponse::_class_data_ = { - GetDigitalInterruptValueResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetDigitalInterruptValueResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetDigitalInterruptValueResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetDigitalInterruptValueResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetDigitalInterruptValueResponse::GetClassData() const { return &_class_data_; } + +void GetDigitalInterruptValueResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetDigitalInterruptValueResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.board.v1.GetDigitalInterruptValueResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetDigitalInterruptValueResponse::MergeFrom(const GetDigitalInterruptValueResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.board.v1.GetDigitalInterruptValueResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_value() != 0) { - _this->_internal_set_value(from._internal_value()); + _internal_set_value(from._internal_value()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetDigitalInterruptValueResponse::CopyFrom(const GetDigitalInterruptValueResponse& from) { @@ -5082,266 +4966,271 @@ void GetDigitalInterruptValueResponse::CopyFrom(const GetDigitalInterruptValueRe MergeFrom(from); } -PROTOBUF_NOINLINE bool GetDigitalInterruptValueResponse::IsInitialized() const { +bool GetDigitalInterruptValueResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetDigitalInterruptValueResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetDigitalInterruptValueResponse::InternalSwap(GetDigitalInterruptValueResponse* PROTOBUF_RESTRICT other) { +void GetDigitalInterruptValueResponse::InternalSwap(GetDigitalInterruptValueResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.value_, other->_impl_.value_); + swap(value_, other->value_); } -::google::protobuf::Metadata GetDigitalInterruptValueResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetDigitalInterruptValueResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[20]); } + // =================================================================== class StreamTicksRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(StreamTicksRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const StreamTicksRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const StreamTicksRequest* msg); }; -const ::google::protobuf::Struct& StreamTicksRequest::_Internal::extra(const StreamTicksRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +StreamTicksRequest::_Internal::extra(const StreamTicksRequest* msg) { + return *msg->extra_; } void StreamTicksRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -StreamTicksRequest::StreamTicksRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +StreamTicksRequest::StreamTicksRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + pin_names_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.component.board.v1.StreamTicksRequest) } -inline PROTOBUF_NDEBUG_INLINE StreamTicksRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - pin_names_{visibility, arena, from.pin_names_}, - name_(arena, from.name_) {} - -StreamTicksRequest::StreamTicksRequest( - ::google::protobuf::Arena* arena, - const StreamTicksRequest& from) - : ::google::protobuf::Message(arena) { - StreamTicksRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +StreamTicksRequest::StreamTicksRequest(const StreamTicksRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + pin_names_(from.pin_names_) { + _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.board.v1.StreamTicksRequest) } -inline PROTOBUF_NDEBUG_INLINE StreamTicksRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - pin_names_{visibility, arena}, - name_(arena) {} -inline void StreamTicksRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void StreamTicksRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + StreamTicksRequest::~StreamTicksRequest() { // @@protoc_insertion_point(destructor:viam.component.board.v1.StreamTicksRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void StreamTicksRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; } -PROTOBUF_NOINLINE void StreamTicksRequest::Clear() { +void StreamTicksRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void StreamTicksRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.board.v1.StreamTicksRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.pin_names_.Clear(); - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* StreamTicksRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + pin_names_.Clear(); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* StreamTicksRequest::_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.board.v1.StreamTicksRequest.name")); + } else + goto handle_unusual; + continue; + // repeated string pin_names = 2 [json_name = "pinNames"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_pin_names(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.board.v1.StreamTicksRequest.pin_names")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 1, 64, 7> StreamTicksRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(StreamTicksRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_StreamTicksRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(StreamTicksRequest, _impl_.name_)}}, - // repeated string pin_names = 2 [json_name = "pinNames"]; - {::_pbi::TcParser::FastUR1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(StreamTicksRequest, _impl_.pin_names_)}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(StreamTicksRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 2, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(StreamTicksRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated string pin_names = 2 [json_name = "pinNames"]; - {PROTOBUF_FIELD_OFFSET(StreamTicksRequest, _impl_.pin_names_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(StreamTicksRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\52\4\11\0\0\0\0\0" - "viam.component.board.v1.StreamTicksRequest" - "name" - "pin_names" - }}, -}; - -::uint8_t* StreamTicksRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* StreamTicksRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.board.v1.StreamTicksRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.board.v1.StreamTicksRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.board.v1.StreamTicksRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // repeated string pin_names = 2 [json_name = "pinNames"]; - for (int i = 0, n = this->_internal_pin_names_size(); i < n; ++i) { - const auto& s = this->_internal_pin_names().Get(i); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.board.v1.StreamTicksRequest.pin_names"); + for (int i = 0, n = this->_internal_pin_names_size(); i < n; i++) { + const auto& s = this->_internal_pin_names(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.board.v1.StreamTicksRequest.pin_names"); target = stream->WriteString(2, s, target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.board.v1.StreamTicksRequest) return target; } -::size_t StreamTicksRequest::ByteSizeLong() const { +size_t StreamTicksRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.board.v1.StreamTicksRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated string pin_names = 2 [json_name = "pinNames"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_pin_names().size()); - for (int i = 0, n = _internal_pin_names().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - _internal_pin_names().Get(i)); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(pin_names_.size()); + for (int i = 0, n = pin_names_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + pin_names_.Get(i)); } + // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData StreamTicksRequest::_class_data_ = { - StreamTicksRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StreamTicksRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + StreamTicksRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* StreamTicksRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StreamTicksRequest::GetClassData() const { return &_class_data_; } + +void StreamTicksRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void StreamTicksRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.board.v1.StreamTicksRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void StreamTicksRequest::MergeFrom(const StreamTicksRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.board.v1.StreamTicksRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_pin_names()->MergeFrom(from._internal_pin_names()); + pin_names_.MergeFrom(from.pin_names_); if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void StreamTicksRequest::CopyFrom(const StreamTicksRequest& from) { @@ -5351,250 +5240,248 @@ void StreamTicksRequest::CopyFrom(const StreamTicksRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool StreamTicksRequest::IsInitialized() const { +bool StreamTicksRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* StreamTicksRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void StreamTicksRequest::InternalSwap(StreamTicksRequest* PROTOBUF_RESTRICT other) { +void StreamTicksRequest::InternalSwap(StreamTicksRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.pin_names_.InternalSwap(&other->_impl_.pin_names_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.extra_, other->_impl_.extra_); + pin_names_.InternalSwap(&other->pin_names_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(extra_, other->extra_); } -::google::protobuf::Metadata StreamTicksRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata StreamTicksRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[21]); } + // =================================================================== class StreamTicksResponse::_Internal { public: }; -StreamTicksResponse::StreamTicksResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +StreamTicksResponse::StreamTicksResponse(::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.board.v1.StreamTicksResponse) } -inline PROTOBUF_NDEBUG_INLINE StreamTicksResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : pin_name_(arena, from.pin_name_), - _cached_size_{0} {} - -StreamTicksResponse::StreamTicksResponse( - ::google::protobuf::Arena* arena, - const StreamTicksResponse& from) - : ::google::protobuf::Message(arena) { - StreamTicksResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, time_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, time_), - offsetof(Impl_, high_) - - offsetof(Impl_, time_) + - sizeof(Impl_::high_)); - +StreamTicksResponse::StreamTicksResponse(const StreamTicksResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + pin_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + pin_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_pin_name().empty()) { + pin_name_.Set(from._internal_pin_name(), + GetArenaForAllocation()); + } + ::memcpy(&time_, &from.time_, + static_cast(reinterpret_cast(&high_) - + reinterpret_cast(&time_)) + sizeof(high_)); // @@protoc_insertion_point(copy_constructor:viam.component.board.v1.StreamTicksResponse) } -inline PROTOBUF_NDEBUG_INLINE StreamTicksResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : pin_name_(arena), - _cached_size_{0} {} - -inline void StreamTicksResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, time_), - 0, - offsetof(Impl_, high_) - - offsetof(Impl_, time_) + - sizeof(Impl_::high_)); + +inline void StreamTicksResponse::SharedCtor() { +pin_name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + pin_name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&time_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&high_) - + reinterpret_cast(&time_)) + sizeof(high_)); } + StreamTicksResponse::~StreamTicksResponse() { // @@protoc_insertion_point(destructor:viam.component.board.v1.StreamTicksResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void StreamTicksResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.pin_name_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + pin_name_.Destroy(); +} + +void StreamTicksResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void StreamTicksResponse::Clear() { +void StreamTicksResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.board.v1.StreamTicksResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.pin_name_.ClearToEmpty(); - ::memset(&_impl_.time_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.high_) - - reinterpret_cast(&_impl_.time_)) + sizeof(_impl_.high_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* StreamTicksResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + pin_name_.ClearToEmpty(); + ::memset(&time_, 0, static_cast( + reinterpret_cast(&high_) - + reinterpret_cast(&time_)) + sizeof(high_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* StreamTicksResponse::_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 pin_name = 1 [json_name = "pinName"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_pin_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.board.v1.StreamTicksResponse.pin_name")); + } else + goto handle_unusual; + continue; + // uint64 time = 2 [json_name = "time"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + time_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool high = 3 [json_name = "high"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + high_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 60, 2> StreamTicksResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_StreamTicksResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string pin_name = 1 [json_name = "pinName"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(StreamTicksResponse, _impl_.pin_name_)}}, - // uint64 time = 2 [json_name = "time"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(StreamTicksResponse, _impl_.time_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(StreamTicksResponse, _impl_.time_)}}, - // bool high = 3 [json_name = "high"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(StreamTicksResponse, _impl_.high_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string pin_name = 1 [json_name = "pinName"]; - {PROTOBUF_FIELD_OFFSET(StreamTicksResponse, _impl_.pin_name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // uint64 time = 2 [json_name = "time"]; - {PROTOBUF_FIELD_OFFSET(StreamTicksResponse, _impl_.time_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // bool high = 3 [json_name = "high"]; - {PROTOBUF_FIELD_OFFSET(StreamTicksResponse, _impl_.high_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, - // no aux_entries - {{ - "\53\10\0\0\0\0\0\0" - "viam.component.board.v1.StreamTicksResponse" - "pin_name" - }}, -}; - -::uint8_t* StreamTicksResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* StreamTicksResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.board.v1.StreamTicksResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string pin_name = 1 [json_name = "pinName"]; if (!this->_internal_pin_name().empty()) { - const std::string& _s = this->_internal_pin_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.board.v1.StreamTicksResponse.pin_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_pin_name().data(), static_cast(this->_internal_pin_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.board.v1.StreamTicksResponse.pin_name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_pin_name(), target); } // uint64 time = 2 [json_name = "time"]; if (this->_internal_time() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 2, this->_internal_time(), target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_time(), target); } // bool high = 3 [json_name = "high"]; if (this->_internal_high() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 3, this->_internal_high(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_high(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.board.v1.StreamTicksResponse) return target; } -::size_t StreamTicksResponse::ByteSizeLong() const { +size_t StreamTicksResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.board.v1.StreamTicksResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string pin_name = 1 [json_name = "pinName"]; if (!this->_internal_pin_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_pin_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_pin_name()); } // uint64 time = 2 [json_name = "time"]; if (this->_internal_time() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_time()); + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_time()); } // bool high = 3 [json_name = "high"]; if (this->_internal_high() != 0) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData StreamTicksResponse::_class_data_ = { - StreamTicksResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StreamTicksResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + StreamTicksResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* StreamTicksResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StreamTicksResponse::GetClassData() const { return &_class_data_; } + +void StreamTicksResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void StreamTicksResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.board.v1.StreamTicksResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void StreamTicksResponse::MergeFrom(const StreamTicksResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.board.v1.StreamTicksResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_pin_name().empty()) { - _this->_internal_set_pin_name(from._internal_pin_name()); + _internal_set_pin_name(from._internal_pin_name()); } if (from._internal_time() != 0) { - _this->_internal_set_time(from._internal_time()); + _internal_set_time(from._internal_time()); } if (from._internal_high() != 0) { - _this->_internal_set_high(from._internal_high()); + _internal_set_high(from._internal_high()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void StreamTicksResponse::CopyFrom(const StreamTicksResponse& from) { @@ -5604,326 +5491,329 @@ void StreamTicksResponse::CopyFrom(const StreamTicksResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool StreamTicksResponse::IsInitialized() const { +bool StreamTicksResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* StreamTicksResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void StreamTicksResponse::InternalSwap(StreamTicksResponse* PROTOBUF_RESTRICT other) { +void StreamTicksResponse::InternalSwap(StreamTicksResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.pin_name_, &other->_impl_.pin_name_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(StreamTicksResponse, _impl_.high_) - + sizeof(StreamTicksResponse::_impl_.high_) - - PROTOBUF_FIELD_OFFSET(StreamTicksResponse, _impl_.time_)>( - reinterpret_cast(&_impl_.time_), - reinterpret_cast(&other->_impl_.time_)); -} - -::google::protobuf::Metadata StreamTicksResponse::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &pin_name_, lhs_arena, + &other->pin_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(StreamTicksResponse, high_) + + sizeof(StreamTicksResponse::high_) + - PROTOBUF_FIELD_OFFSET(StreamTicksResponse, time_)>( + reinterpret_cast(&time_), + reinterpret_cast(&other->time_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata StreamTicksResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[22]); } + // =================================================================== class SetPowerModeRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SetPowerModeRequest, _impl_._has_bits_); - static const ::google::protobuf::Duration& duration(const SetPowerModeRequest* msg); + using HasBits = decltype(std::declval()._has_bits_); + static const ::PROTOBUF_NAMESPACE_ID::Duration& duration(const SetPowerModeRequest* msg); static void set_has_duration(HasBits* has_bits) { (*has_bits)[0] |= 1u; } - static const ::google::protobuf::Struct& extra(const SetPowerModeRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const SetPowerModeRequest* msg); }; -const ::google::protobuf::Duration& SetPowerModeRequest::_Internal::duration(const SetPowerModeRequest* msg) { - return *msg->_impl_.duration_; +const ::PROTOBUF_NAMESPACE_ID::Duration& +SetPowerModeRequest::_Internal::duration(const SetPowerModeRequest* msg) { + return *msg->duration_; } -const ::google::protobuf::Struct& SetPowerModeRequest::_Internal::extra(const SetPowerModeRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +SetPowerModeRequest::_Internal::extra(const SetPowerModeRequest* msg) { + return *msg->extra_; } void SetPowerModeRequest::clear_duration() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.duration_ != nullptr) _impl_.duration_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (duration_ != nullptr) duration_->Clear(); + _has_bits_[0] &= ~0x00000001u; } void SetPowerModeRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -SetPowerModeRequest::SetPowerModeRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +SetPowerModeRequest::SetPowerModeRequest(::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.board.v1.SetPowerModeRequest) } -inline PROTOBUF_NDEBUG_INLINE SetPowerModeRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -SetPowerModeRequest::SetPowerModeRequest( - ::google::protobuf::Arena* arena, - const SetPowerModeRequest& from) - : ::google::protobuf::Message(arena) { - SetPowerModeRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.duration_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Duration>(arena, *from._impl_.duration_) - : nullptr; - _impl_.extra_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - _impl_.power_mode_ = from._impl_.power_mode_; - +SetPowerModeRequest::SetPowerModeRequest(const SetPowerModeRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_) { + _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_duration()) { + duration_ = new ::PROTOBUF_NAMESPACE_ID::Duration(*from.duration_); + } else { + duration_ = nullptr; + } + if (from._internal_has_extra()) { + extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.extra_); + } else { + extra_ = nullptr; + } + power_mode_ = from.power_mode_; // @@protoc_insertion_point(copy_constructor:viam.component.board.v1.SetPowerModeRequest) } -inline PROTOBUF_NDEBUG_INLINE SetPowerModeRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} - -inline void SetPowerModeRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, duration_), - 0, - offsetof(Impl_, power_mode_) - - offsetof(Impl_, duration_) + - sizeof(Impl_::power_mode_)); + +inline void SetPowerModeRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&duration_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&power_mode_) - + reinterpret_cast(&duration_)) + sizeof(power_mode_)); } + SetPowerModeRequest::~SetPowerModeRequest() { // @@protoc_insertion_point(destructor:viam.component.board.v1.SetPowerModeRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void SetPowerModeRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.duration_; - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete duration_; + if (this != internal_default_instance()) delete extra_; +} + +void SetPowerModeRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void SetPowerModeRequest::Clear() { +void SetPowerModeRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.board.v1.SetPowerModeRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.duration_ != nullptr); - _impl_.duration_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); + name_.ClearToEmpty(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(duration_ != nullptr); + duration_->Clear(); + } + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + power_mode_ = 0; + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SetPowerModeRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + 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.board.v1.SetPowerModeRequest.name")); + } else + goto handle_unusual; + continue; + // .viam.component.board.v1.PowerMode power_mode = 2 [json_name = "powerMode"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_power_mode(static_cast<::viam::component::board::v1::PowerMode>(val)); + } else + goto handle_unusual; + continue; + // optional .google.protobuf.Duration duration = 3 [json_name = "duration"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_duration(), ptr); + CHK_(ptr); + } 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; } - } - _impl_.power_mode_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SetPowerModeRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 2, 56, 7> SetPowerModeRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(SetPowerModeRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_SetPowerModeRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(SetPowerModeRequest, _impl_.name_)}}, - // .viam.component.board.v1.PowerMode power_mode = 2 [json_name = "powerMode"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SetPowerModeRequest, _impl_.power_mode_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(SetPowerModeRequest, _impl_.power_mode_)}}, - // optional .google.protobuf.Duration duration = 3 [json_name = "duration"]; - {::_pbi::TcParser::FastMtS1, - {26, 0, 0, PROTOBUF_FIELD_OFFSET(SetPowerModeRequest, _impl_.duration_)}}, - }}, {{ - 99, 0, 1, - 65534, 3, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(SetPowerModeRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .viam.component.board.v1.PowerMode power_mode = 2 [json_name = "powerMode"]; - {PROTOBUF_FIELD_OFFSET(SetPowerModeRequest, _impl_.power_mode_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // optional .google.protobuf.Duration duration = 3 [json_name = "duration"]; - {PROTOBUF_FIELD_OFFSET(SetPowerModeRequest, _impl_.duration_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(SetPowerModeRequest, _impl_.extra_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Duration>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\53\4\0\0\0\0\0\0" - "viam.component.board.v1.SetPowerModeRequest" - "name" - }}, -}; - -::uint8_t* SetPowerModeRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* SetPowerModeRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.board.v1.SetPowerModeRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.board.v1.SetPowerModeRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.board.v1.SetPowerModeRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // .viam.component.board.v1.PowerMode power_mode = 2 [json_name = "powerMode"]; if (this->_internal_power_mode() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 2, this->_internal_power_mode(), target); + 2, this->_internal_power_mode(), target); } - cached_has_bits = _impl_._has_bits_[0]; // optional .google.protobuf.Duration duration = 3 [json_name = "duration"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::duration(this), + if (_internal_has_duration()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::duration(this), _Internal::duration(this).GetCachedSize(), target, stream); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.board.v1.SetPowerModeRequest) return target; } -::size_t SetPowerModeRequest::ByteSizeLong() const { +size_t SetPowerModeRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.board.v1.SetPowerModeRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // optional .google.protobuf.Duration duration = 3 [json_name = "duration"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.duration_); - } - - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); - } + // optional .google.protobuf.Duration duration = 3 [json_name = "duration"]; + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *duration_); + } + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } + // .viam.component.board.v1.PowerMode power_mode = 2 [json_name = "powerMode"]; if (this->_internal_power_mode() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_power_mode()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_power_mode()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData SetPowerModeRequest::_class_data_ = { - SetPowerModeRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetPowerModeRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + SetPowerModeRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* SetPowerModeRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetPowerModeRequest::GetClassData() const { return &_class_data_; } + +void SetPowerModeRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void SetPowerModeRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.board.v1.SetPowerModeRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void SetPowerModeRequest::MergeFrom(const SetPowerModeRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.board.v1.SetPowerModeRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_duration()->::google::protobuf::Duration::MergeFrom( - from._internal_duration()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); - } + if (from._internal_has_duration()) { + _internal_mutable_duration()->::PROTOBUF_NAMESPACE_ID::Duration::MergeFrom(from._internal_duration()); + } + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } if (from._internal_power_mode() != 0) { - _this->_internal_set_power_mode(from._internal_power_mode()); + _internal_set_power_mode(from._internal_power_mode()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SetPowerModeRequest::CopyFrom(const SetPowerModeRequest& from) { @@ -5933,52 +5823,48 @@ void SetPowerModeRequest::CopyFrom(const SetPowerModeRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool SetPowerModeRequest::IsInitialized() const { +bool SetPowerModeRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* SetPowerModeRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void SetPowerModeRequest::InternalSwap(SetPowerModeRequest* PROTOBUF_RESTRICT other) { +void SetPowerModeRequest::InternalSwap(SetPowerModeRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(SetPowerModeRequest, _impl_.power_mode_) - + sizeof(SetPowerModeRequest::_impl_.power_mode_) - - PROTOBUF_FIELD_OFFSET(SetPowerModeRequest, _impl_.duration_)>( - reinterpret_cast(&_impl_.duration_), - reinterpret_cast(&other->_impl_.duration_)); -} - -::google::protobuf::Metadata SetPowerModeRequest::GetMetadata() const { + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(SetPowerModeRequest, power_mode_) + + sizeof(SetPowerModeRequest::power_mode_) + - PROTOBUF_FIELD_OFFSET(SetPowerModeRequest, duration_)>( + reinterpret_cast(&duration_), + reinterpret_cast(&other->duration_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SetPowerModeRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[23]); } + // =================================================================== class SetPowerModeResponse::_Internal { public: }; -SetPowerModeResponse::SetPowerModeResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +SetPowerModeResponse::SetPowerModeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.component.board.v1.SetPowerModeResponse) } -SetPowerModeResponse::SetPowerModeResponse( - ::google::protobuf::Arena* arena, - const SetPowerModeResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - SetPowerModeResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +SetPowerModeResponse::SetPowerModeResponse(const SetPowerModeResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.component.board.v1.SetPowerModeResponse) } @@ -5986,23 +5872,131 @@ SetPowerModeResponse::SetPowerModeResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetPowerModeResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetPowerModeResponse::GetClassData() const { return &_class_data_; } + + + -::google::protobuf::Metadata SetPowerModeResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata SetPowerModeResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_getter, &descriptor_table_component_2fboard_2fv1_2fboard_2eproto_once, file_level_metadata_component_2fboard_2fv1_2fboard_2eproto[24]); } + // @@protoc_insertion_point(namespace_scope) } // namespace v1 } // namespace board } // namespace component } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::component::board::v1::Status_AnalogsEntry_DoNotUse* +Arena::CreateMaybeMessage< ::viam::component::board::v1::Status_AnalogsEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::board::v1::Status_AnalogsEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::board::v1::Status_DigitalInterruptsEntry_DoNotUse* +Arena::CreateMaybeMessage< ::viam::component::board::v1::Status_DigitalInterruptsEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::board::v1::Status_DigitalInterruptsEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::board::v1::Status* +Arena::CreateMaybeMessage< ::viam::component::board::v1::Status >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::board::v1::Status >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::board::v1::SetGPIORequest* +Arena::CreateMaybeMessage< ::viam::component::board::v1::SetGPIORequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::board::v1::SetGPIORequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::board::v1::SetGPIOResponse* +Arena::CreateMaybeMessage< ::viam::component::board::v1::SetGPIOResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::board::v1::SetGPIOResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::board::v1::GetGPIORequest* +Arena::CreateMaybeMessage< ::viam::component::board::v1::GetGPIORequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::board::v1::GetGPIORequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::board::v1::GetGPIOResponse* +Arena::CreateMaybeMessage< ::viam::component::board::v1::GetGPIOResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::board::v1::GetGPIOResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::board::v1::PWMRequest* +Arena::CreateMaybeMessage< ::viam::component::board::v1::PWMRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::board::v1::PWMRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::board::v1::PWMResponse* +Arena::CreateMaybeMessage< ::viam::component::board::v1::PWMResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::board::v1::PWMResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::board::v1::SetPWMRequest* +Arena::CreateMaybeMessage< ::viam::component::board::v1::SetPWMRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::board::v1::SetPWMRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::board::v1::SetPWMResponse* +Arena::CreateMaybeMessage< ::viam::component::board::v1::SetPWMResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::board::v1::SetPWMResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::board::v1::PWMFrequencyRequest* +Arena::CreateMaybeMessage< ::viam::component::board::v1::PWMFrequencyRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::board::v1::PWMFrequencyRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::board::v1::PWMFrequencyResponse* +Arena::CreateMaybeMessage< ::viam::component::board::v1::PWMFrequencyResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::board::v1::PWMFrequencyResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::board::v1::SetPWMFrequencyRequest* +Arena::CreateMaybeMessage< ::viam::component::board::v1::SetPWMFrequencyRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::board::v1::SetPWMFrequencyRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::board::v1::SetPWMFrequencyResponse* +Arena::CreateMaybeMessage< ::viam::component::board::v1::SetPWMFrequencyResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::board::v1::SetPWMFrequencyResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::board::v1::ReadAnalogReaderRequest* +Arena::CreateMaybeMessage< ::viam::component::board::v1::ReadAnalogReaderRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::board::v1::ReadAnalogReaderRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::board::v1::ReadAnalogReaderResponse* +Arena::CreateMaybeMessage< ::viam::component::board::v1::ReadAnalogReaderResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::board::v1::ReadAnalogReaderResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::board::v1::WriteAnalogRequest* +Arena::CreateMaybeMessage< ::viam::component::board::v1::WriteAnalogRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::board::v1::WriteAnalogRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::board::v1::WriteAnalogResponse* +Arena::CreateMaybeMessage< ::viam::component::board::v1::WriteAnalogResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::board::v1::WriteAnalogResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::board::v1::GetDigitalInterruptValueRequest* +Arena::CreateMaybeMessage< ::viam::component::board::v1::GetDigitalInterruptValueRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::board::v1::GetDigitalInterruptValueRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::board::v1::GetDigitalInterruptValueResponse* +Arena::CreateMaybeMessage< ::viam::component::board::v1::GetDigitalInterruptValueResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::board::v1::GetDigitalInterruptValueResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::board::v1::StreamTicksRequest* +Arena::CreateMaybeMessage< ::viam::component::board::v1::StreamTicksRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::board::v1::StreamTicksRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::board::v1::StreamTicksResponse* +Arena::CreateMaybeMessage< ::viam::component::board::v1::StreamTicksResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::board::v1::StreamTicksResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::board::v1::SetPowerModeRequest* +Arena::CreateMaybeMessage< ::viam::component::board::v1::SetPowerModeRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::board::v1::SetPowerModeRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::board::v1::SetPowerModeResponse* +Arena::CreateMaybeMessage< ::viam::component::board::v1::SetPowerModeResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::board::v1::SetPowerModeResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/component/board/v1/board.pb.h b/src/viam/api/component/board/v1/board.pb.h index 47f02ef34..647bd1fce 100644 --- a/src/viam/api/component/board/v1/board.pb.h +++ b/src/viam/api/component/board/v1/board.pb.h @@ -1,69 +1,58 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: component/board/v1/board.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_component_2fboard_2fv1_2fboard_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_component_2fboard_2fv1_2fboard_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_component_2fboard_2fv1_2fboard_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_component_2fboard_2fv1_2fboard_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_bases.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/map.h" // IWYU pragma: export -#include "google/protobuf/map_entry.h" -#include "google/protobuf/map_field_inl.h" -#include "google/protobuf/generated_enum_reflection.h" -#include "google/protobuf/unknown_field_set.h" + +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include +#include #include "common/v1/common.pb.h" #include "google/api/annotations.pb.h" -#include "google/protobuf/duration.pb.h" -#include "google/protobuf/struct.pb.h" +#include +#include // @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - +#include #define PROTOBUF_INTERNAL_EXPORT_component_2fboard_2fv1_2fboard_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_component_2fboard_2fv1_2fboard_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_component_2fboard_2fv1_2fboard_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_component_2fboard_2fv1_2fboard_2eproto; namespace viam { namespace component { namespace board { @@ -147,78 +136,140 @@ extern WriteAnalogResponseDefaultTypeInternal _WriteAnalogResponse_default_insta } // namespace board } // namespace component } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::component::board::v1::GetDigitalInterruptValueRequest* Arena::CreateMaybeMessage<::viam::component::board::v1::GetDigitalInterruptValueRequest>(Arena*); +template<> ::viam::component::board::v1::GetDigitalInterruptValueResponse* Arena::CreateMaybeMessage<::viam::component::board::v1::GetDigitalInterruptValueResponse>(Arena*); +template<> ::viam::component::board::v1::GetGPIORequest* Arena::CreateMaybeMessage<::viam::component::board::v1::GetGPIORequest>(Arena*); +template<> ::viam::component::board::v1::GetGPIOResponse* Arena::CreateMaybeMessage<::viam::component::board::v1::GetGPIOResponse>(Arena*); +template<> ::viam::component::board::v1::PWMFrequencyRequest* Arena::CreateMaybeMessage<::viam::component::board::v1::PWMFrequencyRequest>(Arena*); +template<> ::viam::component::board::v1::PWMFrequencyResponse* Arena::CreateMaybeMessage<::viam::component::board::v1::PWMFrequencyResponse>(Arena*); +template<> ::viam::component::board::v1::PWMRequest* Arena::CreateMaybeMessage<::viam::component::board::v1::PWMRequest>(Arena*); +template<> ::viam::component::board::v1::PWMResponse* Arena::CreateMaybeMessage<::viam::component::board::v1::PWMResponse>(Arena*); +template<> ::viam::component::board::v1::ReadAnalogReaderRequest* Arena::CreateMaybeMessage<::viam::component::board::v1::ReadAnalogReaderRequest>(Arena*); +template<> ::viam::component::board::v1::ReadAnalogReaderResponse* Arena::CreateMaybeMessage<::viam::component::board::v1::ReadAnalogReaderResponse>(Arena*); +template<> ::viam::component::board::v1::SetGPIORequest* Arena::CreateMaybeMessage<::viam::component::board::v1::SetGPIORequest>(Arena*); +template<> ::viam::component::board::v1::SetGPIOResponse* Arena::CreateMaybeMessage<::viam::component::board::v1::SetGPIOResponse>(Arena*); +template<> ::viam::component::board::v1::SetPWMFrequencyRequest* Arena::CreateMaybeMessage<::viam::component::board::v1::SetPWMFrequencyRequest>(Arena*); +template<> ::viam::component::board::v1::SetPWMFrequencyResponse* Arena::CreateMaybeMessage<::viam::component::board::v1::SetPWMFrequencyResponse>(Arena*); +template<> ::viam::component::board::v1::SetPWMRequest* Arena::CreateMaybeMessage<::viam::component::board::v1::SetPWMRequest>(Arena*); +template<> ::viam::component::board::v1::SetPWMResponse* Arena::CreateMaybeMessage<::viam::component::board::v1::SetPWMResponse>(Arena*); +template<> ::viam::component::board::v1::SetPowerModeRequest* Arena::CreateMaybeMessage<::viam::component::board::v1::SetPowerModeRequest>(Arena*); +template<> ::viam::component::board::v1::SetPowerModeResponse* Arena::CreateMaybeMessage<::viam::component::board::v1::SetPowerModeResponse>(Arena*); +template<> ::viam::component::board::v1::Status* Arena::CreateMaybeMessage<::viam::component::board::v1::Status>(Arena*); +template<> ::viam::component::board::v1::Status_AnalogsEntry_DoNotUse* Arena::CreateMaybeMessage<::viam::component::board::v1::Status_AnalogsEntry_DoNotUse>(Arena*); +template<> ::viam::component::board::v1::Status_DigitalInterruptsEntry_DoNotUse* Arena::CreateMaybeMessage<::viam::component::board::v1::Status_DigitalInterruptsEntry_DoNotUse>(Arena*); +template<> ::viam::component::board::v1::StreamTicksRequest* Arena::CreateMaybeMessage<::viam::component::board::v1::StreamTicksRequest>(Arena*); +template<> ::viam::component::board::v1::StreamTicksResponse* Arena::CreateMaybeMessage<::viam::component::board::v1::StreamTicksResponse>(Arena*); +template<> ::viam::component::board::v1::WriteAnalogRequest* Arena::CreateMaybeMessage<::viam::component::board::v1::WriteAnalogRequest>(Arena*); +template<> ::viam::component::board::v1::WriteAnalogResponse* Arena::CreateMaybeMessage<::viam::component::board::v1::WriteAnalogResponse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace viam { namespace component { namespace board { namespace v1 { + enum PowerMode : int { POWER_MODE_UNSPECIFIED = 0, POWER_MODE_NORMAL = 1, POWER_MODE_OFFLINE_DEEP = 2, - PowerMode_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - PowerMode_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), + PowerMode_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + PowerMode_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() }; - bool PowerMode_IsValid(int value); -extern const uint32_t PowerMode_internal_data_[]; -constexpr PowerMode PowerMode_MIN = static_cast(0); -constexpr PowerMode PowerMode_MAX = static_cast(2); -constexpr int PowerMode_ARRAYSIZE = 2 + 1; -const ::google::protobuf::EnumDescriptor* -PowerMode_descriptor(); -template -const std::string& PowerMode_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to PowerMode_Name()."); - return PowerMode_Name(static_cast(value)); -} -template <> -inline const std::string& PowerMode_Name(PowerMode value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool PowerMode_Parse(absl::string_view name, PowerMode* value) { - return ::google::protobuf::internal::ParseNamedEnum( - PowerMode_descriptor(), name, value); +constexpr PowerMode PowerMode_MIN = POWER_MODE_UNSPECIFIED; +constexpr PowerMode PowerMode_MAX = POWER_MODE_OFFLINE_DEEP; +constexpr int PowerMode_ARRAYSIZE = PowerMode_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PowerMode_descriptor(); +template +inline const std::string& PowerMode_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function PowerMode_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + PowerMode_descriptor(), enum_t_value); +} +inline bool PowerMode_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PowerMode* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + PowerMode_descriptor(), name, value); } - // =================================================================== +class Status_AnalogsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + Status_AnalogsEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR Status_AnalogsEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit Status_AnalogsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const Status_AnalogsEntry_DoNotUse& other); + static const Status_AnalogsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_Status_AnalogsEntry_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.board.v1.Status.AnalogsEntry.key"); + } + static bool ValidateValue(void*) { return true; } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + friend struct ::TableStruct_component_2fboard_2fv1_2fboard_2eproto; +}; + +// ------------------------------------------------------------------- + +class Status_DigitalInterruptsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + Status_DigitalInterruptsEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR Status_DigitalInterruptsEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit Status_DigitalInterruptsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const Status_DigitalInterruptsEntry_DoNotUse& other); + static const Status_DigitalInterruptsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_Status_DigitalInterruptsEntry_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.board.v1.Status.DigitalInterruptsEntry.key"); + } + static bool ValidateValue(void*) { return true; } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + friend struct ::TableStruct_component_2fboard_2fv1_2fboard_2eproto; +}; // ------------------------------------------------------------------- -class WriteAnalogResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.board.v1.WriteAnalogResponse) */ { +class Status final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.Status) */ { public: - inline WriteAnalogResponse() : WriteAnalogResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR WriteAnalogResponse(::google::protobuf::internal::ConstantInitialized); + inline Status() : Status(nullptr) {} + ~Status() override; + explicit PROTOBUF_CONSTEXPR Status(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline WriteAnalogResponse(const WriteAnalogResponse& from) - : WriteAnalogResponse(nullptr, from) {} - WriteAnalogResponse(WriteAnalogResponse&& from) noexcept - : WriteAnalogResponse() { + Status(const Status& from); + Status(Status&& from) noexcept + : Status() { *this = ::std::move(from); } - inline WriteAnalogResponse& operator=(const WriteAnalogResponse& from) { + inline Status& operator=(const Status& from) { CopyFrom(from); return *this; } - inline WriteAnalogResponse& operator=(WriteAnalogResponse&& from) noexcept { + inline Status& operator=(Status&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -228,134 +279,178 @@ class WriteAnalogResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const WriteAnalogResponse& default_instance() { + static const Status& default_instance() { return *internal_default_instance(); } - static inline const WriteAnalogResponse* internal_default_instance() { - return reinterpret_cast( - &_WriteAnalogResponse_default_instance_); + static inline const Status* internal_default_instance() { + return reinterpret_cast( + &_Status_default_instance_); } static constexpr int kIndexInFileMessages = - 18; + 2; - friend void swap(WriteAnalogResponse& a, WriteAnalogResponse& b) { + friend void swap(Status& a, Status& b) { a.Swap(&b); } - inline void Swap(WriteAnalogResponse* other) { + inline void Swap(Status* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(WriteAnalogResponse* other) { + void UnsafeArenaSwap(Status* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - WriteAnalogResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const WriteAnalogResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const WriteAnalogResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + Status* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Status& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Status& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.board.v1.WriteAnalogResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Status* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.board.v1.Status"; } protected: - explicit WriteAnalogResponse(::google::protobuf::Arena* arena); - WriteAnalogResponse(::google::protobuf::Arena* arena, const WriteAnalogResponse& from); + explicit Status(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- + // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.component.board.v1.WriteAnalogResponse) + enum : int { + kAnalogsFieldNumber = 1, + kDigitalInterruptsFieldNumber = 2, + }; + // map analogs = 1 [json_name = "analogs"]; + int analogs_size() const; + private: + int _internal_analogs_size() const; + public: + void clear_analogs(); + private: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, int32_t >& + _internal_analogs() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, int32_t >* + _internal_mutable_analogs(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, int32_t >& + analogs() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, int32_t >* + mutable_analogs(); + + // map digital_interrupts = 2 [json_name = "digitalInterrupts"]; + int digital_interrupts_size() const; + private: + int _internal_digital_interrupts_size() const; + public: + void clear_digital_interrupts(); + private: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, int64_t >& + _internal_digital_interrupts() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, int64_t >* + _internal_mutable_digital_interrupts(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, int64_t >& + digital_interrupts() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, int64_t >* + mutable_digital_interrupts(); + + // @@protoc_insertion_point(class_scope:viam.component.board.v1.Status) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + Status_AnalogsEntry_DoNotUse, + std::string, int32_t, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32> analogs_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + Status_DigitalInterruptsEntry_DoNotUse, + std::string, int64_t, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64> digital_interrupts_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fboard_2fv1_2fboard_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class StreamTicksResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.StreamTicksResponse) */ { +class SetGPIORequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.SetGPIORequest) */ { public: - inline StreamTicksResponse() : StreamTicksResponse(nullptr) {} - ~StreamTicksResponse() override; - template - explicit PROTOBUF_CONSTEXPR StreamTicksResponse(::google::protobuf::internal::ConstantInitialized); + inline SetGPIORequest() : SetGPIORequest(nullptr) {} + ~SetGPIORequest() override; + explicit PROTOBUF_CONSTEXPR SetGPIORequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline StreamTicksResponse(const StreamTicksResponse& from) - : StreamTicksResponse(nullptr, from) {} - StreamTicksResponse(StreamTicksResponse&& from) noexcept - : StreamTicksResponse() { + SetGPIORequest(const SetGPIORequest& from); + SetGPIORequest(SetGPIORequest&& from) noexcept + : SetGPIORequest() { *this = ::std::move(from); } - inline StreamTicksResponse& operator=(const StreamTicksResponse& from) { + inline SetGPIORequest& operator=(const SetGPIORequest& from) { CopyFrom(from); return *this; } - inline StreamTicksResponse& operator=(StreamTicksResponse&& from) noexcept { + inline SetGPIORequest& operator=(SetGPIORequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -365,257 +460,191 @@ class StreamTicksResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const StreamTicksResponse& default_instance() { + static const SetGPIORequest& default_instance() { return *internal_default_instance(); } - static inline const StreamTicksResponse* internal_default_instance() { - return reinterpret_cast( - &_StreamTicksResponse_default_instance_); + static inline const SetGPIORequest* internal_default_instance() { + return reinterpret_cast( + &_SetGPIORequest_default_instance_); } static constexpr int kIndexInFileMessages = - 22; + 3; - friend void swap(StreamTicksResponse& a, StreamTicksResponse& b) { + friend void swap(SetGPIORequest& a, SetGPIORequest& b) { a.Swap(&b); } - inline void Swap(StreamTicksResponse* other) { + inline void Swap(SetGPIORequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(StreamTicksResponse* other) { + void UnsafeArenaSwap(SetGPIORequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - StreamTicksResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const StreamTicksResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const StreamTicksResponse& from) { - StreamTicksResponse::MergeImpl(*this, from); + SetGPIORequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SetGPIORequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const SetGPIORequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(StreamTicksResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(SetGPIORequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.board.v1.StreamTicksResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.board.v1.SetGPIORequest"; } protected: - explicit StreamTicksResponse(::google::protobuf::Arena* arena); - StreamTicksResponse(::google::protobuf::Arena* arena, const StreamTicksResponse& from); + explicit SetGPIORequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kPinNameFieldNumber = 1, - kTimeFieldNumber = 2, + kNameFieldNumber = 1, + kPinFieldNumber = 2, + kExtraFieldNumber = 99, kHighFieldNumber = 3, }; - // string pin_name = 1 [json_name = "pinName"]; - void clear_pin_name() ; - const std::string& pin_name() const; - template - void set_pin_name(Arg_&& arg, Args_... args); - std::string* mutable_pin_name(); - PROTOBUF_NODISCARD std::string* release_pin_name(); - void set_allocated_pin_name(std::string* value); - + // 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_pin_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_pin_name( - const std::string& value); - std::string* _internal_mutable_pin_name(); - + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); public: - // uint64 time = 2 [json_name = "time"]; - void clear_time() ; - ::uint64_t time() const; - void set_time(::uint64_t value); + // string pin = 2 [json_name = "pin"]; + void clear_pin(); + const std::string& pin() const; + template + void set_pin(ArgT0&& arg0, ArgT... args); + std::string* mutable_pin(); + PROTOBUF_NODISCARD std::string* release_pin(); + void set_allocated_pin(std::string* pin); private: - ::uint64_t _internal_time() const; - void _internal_set_time(::uint64_t value); + const std::string& _internal_pin() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_pin(const std::string& value); + std::string* _internal_mutable_pin(); + 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(); + // bool high = 3 [json_name = "high"]; - void clear_high() ; + void clear_high(); bool high() const; void set_high(bool value); - private: bool _internal_high() const; void _internal_set_high(bool value); - public: - // @@protoc_insertion_point(class_scope:viam.component.board.v1.StreamTicksResponse) + + // @@protoc_insertion_point(class_scope:viam.component.board.v1.SetGPIORequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 0, - 60, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr pin_name_; - ::uint64_t time_; - bool high_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_component_2fboard_2fv1_2fboard_2eproto; -};// ------------------------------------------------------------------- - -class Status_DigitalInterruptsEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry< - Status_DigitalInterruptsEntry_DoNotUse, std::string, ::int64_t, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_INT64> { - public: - using SuperType = ::google::protobuf::internal::MapEntry< - Status_DigitalInterruptsEntry_DoNotUse, std::string, ::int64_t, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_INT64>; - Status_DigitalInterruptsEntry_DoNotUse(); - template - explicit PROTOBUF_CONSTEXPR Status_DigitalInterruptsEntry_DoNotUse( - ::google::protobuf::internal::ConstantInitialized); - explicit Status_DigitalInterruptsEntry_DoNotUse(::google::protobuf::Arena* arena); - static const Status_DigitalInterruptsEntry_DoNotUse* internal_default_instance() { - return reinterpret_cast( - &_Status_DigitalInterruptsEntry_DoNotUse_default_instance_); - } - static bool ValidateKey(std::string* s) { - return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "viam.component.board.v1.Status.DigitalInterruptsEntry.key"); - } - static bool ValidateValue(void*) { return true; } - ::google::protobuf::Metadata GetMetadata() const final; - friend struct ::TableStruct_component_2fboard_2fv1_2fboard_2eproto; -}; -// ------------------------------------------------------------------- - -class Status_AnalogsEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry< - Status_AnalogsEntry_DoNotUse, std::string, ::int32_t, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_INT32> { - public: - using SuperType = ::google::protobuf::internal::MapEntry< - Status_AnalogsEntry_DoNotUse, std::string, ::int32_t, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_INT32>; - Status_AnalogsEntry_DoNotUse(); - template - explicit PROTOBUF_CONSTEXPR Status_AnalogsEntry_DoNotUse( - ::google::protobuf::internal::ConstantInitialized); - explicit Status_AnalogsEntry_DoNotUse(::google::protobuf::Arena* arena); - static const Status_AnalogsEntry_DoNotUse* internal_default_instance() { - return reinterpret_cast( - &_Status_AnalogsEntry_DoNotUse_default_instance_); - } - static bool ValidateKey(std::string* s) { - return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "viam.component.board.v1.Status.AnalogsEntry.key"); - } - static bool ValidateValue(void*) { return true; } - ::google::protobuf::Metadata GetMetadata() const final; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr pin_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + bool high_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fboard_2fv1_2fboard_2eproto; }; // ------------------------------------------------------------------- -class SetPowerModeResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.board.v1.SetPowerModeResponse) */ { +class SetGPIOResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.board.v1.SetGPIOResponse) */ { public: - inline SetPowerModeResponse() : SetPowerModeResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR SetPowerModeResponse(::google::protobuf::internal::ConstantInitialized); + inline SetGPIOResponse() : SetGPIOResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR SetGPIOResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline SetPowerModeResponse(const SetPowerModeResponse& from) - : SetPowerModeResponse(nullptr, from) {} - SetPowerModeResponse(SetPowerModeResponse&& from) noexcept - : SetPowerModeResponse() { + SetGPIOResponse(const SetGPIOResponse& from); + SetGPIOResponse(SetGPIOResponse&& from) noexcept + : SetGPIOResponse() { *this = ::std::move(from); } - inline SetPowerModeResponse& operator=(const SetPowerModeResponse& from) { + inline SetGPIOResponse& operator=(const SetGPIOResponse& from) { CopyFrom(from); return *this; } - inline SetPowerModeResponse& operator=(SetPowerModeResponse&& from) noexcept { + inline SetGPIOResponse& operator=(SetGPIOResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -625,133 +654,114 @@ class SetPowerModeResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SetPowerModeResponse& default_instance() { + static const SetGPIOResponse& default_instance() { return *internal_default_instance(); } - static inline const SetPowerModeResponse* internal_default_instance() { - return reinterpret_cast( - &_SetPowerModeResponse_default_instance_); + static inline const SetGPIOResponse* internal_default_instance() { + return reinterpret_cast( + &_SetGPIOResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 24; + 4; - friend void swap(SetPowerModeResponse& a, SetPowerModeResponse& b) { + friend void swap(SetGPIOResponse& a, SetGPIOResponse& b) { a.Swap(&b); } - inline void Swap(SetPowerModeResponse* other) { + inline void Swap(SetGPIOResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SetPowerModeResponse* other) { + void UnsafeArenaSwap(SetGPIOResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SetPowerModeResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SetGPIOResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const SetPowerModeResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const SetGPIOResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const SetPowerModeResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const SetGPIOResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } public: private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.board.v1.SetPowerModeResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.board.v1.SetGPIOResponse"; } protected: - explicit SetPowerModeResponse(::google::protobuf::Arena* arena); - SetPowerModeResponse(::google::protobuf::Arena* arena, const SetPowerModeResponse& from); + explicit SetGPIOResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.component.board.v1.SetPowerModeResponse) + // @@protoc_insertion_point(class_scope:viam.component.board.v1.SetGPIOResponse) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_component_2fboard_2fv1_2fboard_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SetPWMResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.board.v1.SetPWMResponse) */ { +class GetGPIORequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.GetGPIORequest) */ { public: - inline SetPWMResponse() : SetPWMResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR SetPWMResponse(::google::protobuf::internal::ConstantInitialized); + inline GetGPIORequest() : GetGPIORequest(nullptr) {} + ~GetGPIORequest() override; + explicit PROTOBUF_CONSTEXPR GetGPIORequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline SetPWMResponse(const SetPWMResponse& from) - : SetPWMResponse(nullptr, from) {} - SetPWMResponse(SetPWMResponse&& from) noexcept - : SetPWMResponse() { + GetGPIORequest(const GetGPIORequest& from); + GetGPIORequest(GetGPIORequest&& from) noexcept + : GetGPIORequest() { *this = ::std::move(from); } - inline SetPWMResponse& operator=(const SetPWMResponse& from) { + inline GetGPIORequest& operator=(const GetGPIORequest& from) { CopyFrom(from); return *this; } - inline SetPWMResponse& operator=(SetPWMResponse&& from) noexcept { + inline GetGPIORequest& operator=(GetGPIORequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -761,133 +771,181 @@ class SetPWMResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SetPWMResponse& default_instance() { + static const GetGPIORequest& default_instance() { return *internal_default_instance(); } - static inline const SetPWMResponse* internal_default_instance() { - return reinterpret_cast( - &_SetPWMResponse_default_instance_); + static inline const GetGPIORequest* internal_default_instance() { + return reinterpret_cast( + &_GetGPIORequest_default_instance_); } static constexpr int kIndexInFileMessages = - 10; + 5; - friend void swap(SetPWMResponse& a, SetPWMResponse& b) { + friend void swap(GetGPIORequest& a, GetGPIORequest& b) { a.Swap(&b); } - inline void Swap(SetPWMResponse* other) { + inline void Swap(GetGPIORequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SetPWMResponse* other) { + void UnsafeArenaSwap(GetGPIORequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SetPWMResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const SetPWMResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const SetPWMResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + GetGPIORequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetGPIORequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetGPIORequest& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.board.v1.SetPWMResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetGPIORequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.board.v1.GetGPIORequest"; } protected: - explicit SetPWMResponse(::google::protobuf::Arena* arena); - SetPWMResponse(::google::protobuf::Arena* arena, const SetPWMResponse& from); + explicit GetGPIORequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.component.board.v1.SetPWMResponse) + enum : int { + kNameFieldNumber = 1, + kPinFieldNumber = 2, + 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: + + // string pin = 2 [json_name = "pin"]; + void clear_pin(); + const std::string& pin() const; + template + void set_pin(ArgT0&& arg0, ArgT... args); + std::string* mutable_pin(); + PROTOBUF_NODISCARD std::string* release_pin(); + void set_allocated_pin(std::string* pin); + private: + const std::string& _internal_pin() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_pin(const std::string& value); + std::string* _internal_mutable_pin(); + 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.board.v1.GetGPIORequest) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr pin_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fboard_2fv1_2fboard_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SetPWMFrequencyResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.board.v1.SetPWMFrequencyResponse) */ { +class GetGPIOResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.GetGPIOResponse) */ { public: - inline SetPWMFrequencyResponse() : SetPWMFrequencyResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR SetPWMFrequencyResponse(::google::protobuf::internal::ConstantInitialized); + inline GetGPIOResponse() : GetGPIOResponse(nullptr) {} + ~GetGPIOResponse() override; + explicit PROTOBUF_CONSTEXPR GetGPIOResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline SetPWMFrequencyResponse(const SetPWMFrequencyResponse& from) - : SetPWMFrequencyResponse(nullptr, from) {} - SetPWMFrequencyResponse(SetPWMFrequencyResponse&& from) noexcept - : SetPWMFrequencyResponse() { + GetGPIOResponse(const GetGPIOResponse& from); + GetGPIOResponse(GetGPIOResponse&& from) noexcept + : GetGPIOResponse() { *this = ::std::move(from); } - inline SetPWMFrequencyResponse& operator=(const SetPWMFrequencyResponse& from) { + inline GetGPIOResponse& operator=(const GetGPIOResponse& from) { CopyFrom(from); return *this; } - inline SetPWMFrequencyResponse& operator=(SetPWMFrequencyResponse&& from) noexcept { + inline GetGPIOResponse& operator=(GetGPIOResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -897,133 +955,140 @@ class SetPWMFrequencyResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SetPWMFrequencyResponse& default_instance() { + static const GetGPIOResponse& default_instance() { return *internal_default_instance(); } - static inline const SetPWMFrequencyResponse* internal_default_instance() { - return reinterpret_cast( - &_SetPWMFrequencyResponse_default_instance_); + static inline const GetGPIOResponse* internal_default_instance() { + return reinterpret_cast( + &_GetGPIOResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 14; + 6; - friend void swap(SetPWMFrequencyResponse& a, SetPWMFrequencyResponse& b) { + friend void swap(GetGPIOResponse& a, GetGPIOResponse& b) { a.Swap(&b); } - inline void Swap(SetPWMFrequencyResponse* other) { + inline void Swap(GetGPIOResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SetPWMFrequencyResponse* other) { + void UnsafeArenaSwap(GetGPIOResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SetPWMFrequencyResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const SetPWMFrequencyResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const SetPWMFrequencyResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + GetGPIOResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetGPIOResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetGPIOResponse& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.board.v1.SetPWMFrequencyResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetGPIOResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.board.v1.GetGPIOResponse"; } protected: - explicit SetPWMFrequencyResponse(::google::protobuf::Arena* arena); - SetPWMFrequencyResponse(::google::protobuf::Arena* arena, const SetPWMFrequencyResponse& from); + explicit GetGPIOResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.component.board.v1.SetPWMFrequencyResponse) + enum : int { + kHighFieldNumber = 1, + }; + // bool high = 1 [json_name = "high"]; + void clear_high(); + bool high() const; + void set_high(bool value); + private: + bool _internal_high() const; + void _internal_set_high(bool value); + public: + + // @@protoc_insertion_point(class_scope:viam.component.board.v1.GetGPIOResponse) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + bool high_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fboard_2fv1_2fboard_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SetGPIOResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.board.v1.SetGPIOResponse) */ { +class PWMRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.PWMRequest) */ { public: - inline SetGPIOResponse() : SetGPIOResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR SetGPIOResponse(::google::protobuf::internal::ConstantInitialized); + inline PWMRequest() : PWMRequest(nullptr) {} + ~PWMRequest() override; + explicit PROTOBUF_CONSTEXPR PWMRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline SetGPIOResponse(const SetGPIOResponse& from) - : SetGPIOResponse(nullptr, from) {} - SetGPIOResponse(SetGPIOResponse&& from) noexcept - : SetGPIOResponse() { + PWMRequest(const PWMRequest& from); + PWMRequest(PWMRequest&& from) noexcept + : PWMRequest() { *this = ::std::move(from); } - inline SetGPIOResponse& operator=(const SetGPIOResponse& from) { + inline PWMRequest& operator=(const PWMRequest& from) { CopyFrom(from); return *this; } - inline SetGPIOResponse& operator=(SetGPIOResponse&& from) noexcept { + inline PWMRequest& operator=(PWMRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1033,134 +1098,181 @@ class SetGPIOResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SetGPIOResponse& default_instance() { + static const PWMRequest& default_instance() { return *internal_default_instance(); } - static inline const SetGPIOResponse* internal_default_instance() { - return reinterpret_cast( - &_SetGPIOResponse_default_instance_); + static inline const PWMRequest* internal_default_instance() { + return reinterpret_cast( + &_PWMRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 4; + 7; - friend void swap(SetGPIOResponse& a, SetGPIOResponse& b) { + friend void swap(PWMRequest& a, PWMRequest& b) { a.Swap(&b); } - inline void Swap(SetGPIOResponse* other) { + inline void Swap(PWMRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SetGPIOResponse* other) { + void UnsafeArenaSwap(PWMRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SetGPIOResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const SetGPIOResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const SetGPIOResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + PWMRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const PWMRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const PWMRequest& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.board.v1.SetGPIOResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(PWMRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.board.v1.PWMRequest"; } protected: - explicit SetGPIOResponse(::google::protobuf::Arena* arena); - SetGPIOResponse(::google::protobuf::Arena* arena, const SetGPIOResponse& from); + explicit PWMRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.component.board.v1.SetGPIOResponse) + enum : int { + kNameFieldNumber = 1, + kPinFieldNumber = 2, + 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: + + // string pin = 2 [json_name = "pin"]; + void clear_pin(); + const std::string& pin() const; + template + void set_pin(ArgT0&& arg0, ArgT... args); + std::string* mutable_pin(); + PROTOBUF_NODISCARD std::string* release_pin(); + void set_allocated_pin(std::string* pin); + private: + const std::string& _internal_pin() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_pin(const std::string& value); + std::string* _internal_mutable_pin(); + 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.board.v1.PWMRequest) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr pin_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fboard_2fv1_2fboard_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ReadAnalogReaderResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.ReadAnalogReaderResponse) */ { +class PWMResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.PWMResponse) */ { public: - inline ReadAnalogReaderResponse() : ReadAnalogReaderResponse(nullptr) {} - ~ReadAnalogReaderResponse() override; - template - explicit PROTOBUF_CONSTEXPR ReadAnalogReaderResponse(::google::protobuf::internal::ConstantInitialized); + inline PWMResponse() : PWMResponse(nullptr) {} + ~PWMResponse() override; + explicit PROTOBUF_CONSTEXPR PWMResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ReadAnalogReaderResponse(const ReadAnalogReaderResponse& from) - : ReadAnalogReaderResponse(nullptr, from) {} - ReadAnalogReaderResponse(ReadAnalogReaderResponse&& from) noexcept - : ReadAnalogReaderResponse() { + PWMResponse(const PWMResponse& from); + PWMResponse(PWMResponse&& from) noexcept + : PWMResponse() { *this = ::std::move(from); } - inline ReadAnalogReaderResponse& operator=(const ReadAnalogReaderResponse& from) { + inline PWMResponse& operator=(const PWMResponse& from) { CopyFrom(from); return *this; } - inline ReadAnalogReaderResponse& operator=(ReadAnalogReaderResponse&& from) noexcept { + inline PWMResponse& operator=(PWMResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1170,208 +1282,140 @@ class ReadAnalogReaderResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ReadAnalogReaderResponse& default_instance() { + static const PWMResponse& default_instance() { return *internal_default_instance(); } - static inline const ReadAnalogReaderResponse* internal_default_instance() { - return reinterpret_cast( - &_ReadAnalogReaderResponse_default_instance_); + static inline const PWMResponse* internal_default_instance() { + return reinterpret_cast( + &_PWMResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 16; + 8; - friend void swap(ReadAnalogReaderResponse& a, ReadAnalogReaderResponse& b) { + friend void swap(PWMResponse& a, PWMResponse& b) { a.Swap(&b); } - inline void Swap(ReadAnalogReaderResponse* other) { + inline void Swap(PWMResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ReadAnalogReaderResponse* other) { + void UnsafeArenaSwap(PWMResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ReadAnalogReaderResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ReadAnalogReaderResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ReadAnalogReaderResponse& from) { - ReadAnalogReaderResponse::MergeImpl(*this, from); + PWMResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const PWMResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const PWMResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ReadAnalogReaderResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(PWMResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.board.v1.ReadAnalogReaderResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.board.v1.PWMResponse"; } protected: - explicit ReadAnalogReaderResponse(::google::protobuf::Arena* arena); - ReadAnalogReaderResponse(::google::protobuf::Arena* arena, const ReadAnalogReaderResponse& from); + explicit PWMResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kValueFieldNumber = 1, - kMinRangeFieldNumber = 2, - kMaxRangeFieldNumber = 3, - kStepSizeFieldNumber = 4, + kDutyCyclePctFieldNumber = 1, }; - // int32 value = 1 [json_name = "value"]; - void clear_value() ; - ::int32_t value() const; - void set_value(::int32_t value); - - private: - ::int32_t _internal_value() const; - void _internal_set_value(::int32_t value); - - public: - // float min_range = 2 [json_name = "minRange"]; - void clear_min_range() ; - float min_range() const; - void set_min_range(float value); - - private: - float _internal_min_range() const; - void _internal_set_min_range(float value); - - public: - // float max_range = 3 [json_name = "maxRange"]; - void clear_max_range() ; - float max_range() const; - void set_max_range(float value); - + // double duty_cycle_pct = 1 [json_name = "dutyCyclePct"]; + void clear_duty_cycle_pct(); + double duty_cycle_pct() const; + void set_duty_cycle_pct(double value); private: - float _internal_max_range() const; - void _internal_set_max_range(float value); - + double _internal_duty_cycle_pct() const; + void _internal_set_duty_cycle_pct(double value); public: - // float step_size = 4 [json_name = "stepSize"]; - void clear_step_size() ; - float step_size() const; - void set_step_size(float value); - private: - float _internal_step_size() const; - void _internal_set_step_size(float value); - - public: - // @@protoc_insertion_point(class_scope:viam.component.board.v1.ReadAnalogReaderResponse) + // @@protoc_insertion_point(class_scope:viam.component.board.v1.PWMResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::int32_t value_; - float min_range_; - float max_range_; - float step_size_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + double duty_cycle_pct_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fboard_2fv1_2fboard_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class PWMResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.PWMResponse) */ { +class SetPWMRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.SetPWMRequest) */ { public: - inline PWMResponse() : PWMResponse(nullptr) {} - ~PWMResponse() override; - template - explicit PROTOBUF_CONSTEXPR PWMResponse(::google::protobuf::internal::ConstantInitialized); + inline SetPWMRequest() : SetPWMRequest(nullptr) {} + ~SetPWMRequest() override; + explicit PROTOBUF_CONSTEXPR SetPWMRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline PWMResponse(const PWMResponse& from) - : PWMResponse(nullptr, from) {} - PWMResponse(PWMResponse&& from) noexcept - : PWMResponse() { + SetPWMRequest(const SetPWMRequest& from); + SetPWMRequest(SetPWMRequest&& from) noexcept + : SetPWMRequest() { *this = ::std::move(from); } - inline PWMResponse& operator=(const PWMResponse& from) { + inline SetPWMRequest& operator=(const SetPWMRequest& from) { CopyFrom(from); return *this; } - inline PWMResponse& operator=(PWMResponse&& from) noexcept { + inline SetPWMRequest& operator=(SetPWMRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1381,172 +1425,191 @@ class PWMResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const PWMResponse& default_instance() { + static const SetPWMRequest& default_instance() { return *internal_default_instance(); } - static inline const PWMResponse* internal_default_instance() { - return reinterpret_cast( - &_PWMResponse_default_instance_); + static inline const SetPWMRequest* internal_default_instance() { + return reinterpret_cast( + &_SetPWMRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 8; + 9; - friend void swap(PWMResponse& a, PWMResponse& b) { + friend void swap(SetPWMRequest& a, SetPWMRequest& b) { a.Swap(&b); } - inline void Swap(PWMResponse* other) { + inline void Swap(SetPWMRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(PWMResponse* other) { + void UnsafeArenaSwap(SetPWMRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - PWMResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const PWMResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const PWMResponse& from) { - PWMResponse::MergeImpl(*this, from); + SetPWMRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SetPWMRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const SetPWMRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(PWMResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(SetPWMRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.board.v1.SetPWMRequest"; + } + protected: + explicit SetPWMRequest(::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, + kPinFieldNumber = 2, + kExtraFieldNumber = 99, + kDutyCyclePctFieldNumber = 3, + }; + // 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: + // string pin = 2 [json_name = "pin"]; + void clear_pin(); + const std::string& pin() const; + template + void set_pin(ArgT0&& arg0, ArgT... args); + std::string* mutable_pin(); + PROTOBUF_NODISCARD std::string* release_pin(); + void set_allocated_pin(std::string* pin); + private: + const std::string& _internal_pin() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_pin(const std::string& value); + std::string* _internal_mutable_pin(); + 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.board.v1.PWMResponse"; - } - protected: - explicit PWMResponse(::google::protobuf::Arena* arena); - PWMResponse(::google::protobuf::Arena* arena, const PWMResponse& from); + 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(); - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kDutyCyclePctFieldNumber = 1, - }; - // double duty_cycle_pct = 1 [json_name = "dutyCyclePct"]; - void clear_duty_cycle_pct() ; + // double duty_cycle_pct = 3 [json_name = "dutyCyclePct"]; + void clear_duty_cycle_pct(); double duty_cycle_pct() const; void set_duty_cycle_pct(double value); - private: double _internal_duty_cycle_pct() const; void _internal_set_duty_cycle_pct(double value); - public: - // @@protoc_insertion_point(class_scope:viam.component.board.v1.PWMResponse) + + // @@protoc_insertion_point(class_scope:viam.component.board.v1.SetPWMRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - double duty_cycle_pct_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr pin_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + double duty_cycle_pct_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fboard_2fv1_2fboard_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class PWMFrequencyResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.PWMFrequencyResponse) */ { +class SetPWMResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.board.v1.SetPWMResponse) */ { public: - inline PWMFrequencyResponse() : PWMFrequencyResponse(nullptr) {} - ~PWMFrequencyResponse() override; - template - explicit PROTOBUF_CONSTEXPR PWMFrequencyResponse(::google::protobuf::internal::ConstantInitialized); + inline SetPWMResponse() : SetPWMResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR SetPWMResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline PWMFrequencyResponse(const PWMFrequencyResponse& from) - : PWMFrequencyResponse(nullptr, from) {} - PWMFrequencyResponse(PWMFrequencyResponse&& from) noexcept - : PWMFrequencyResponse() { + SetPWMResponse(const SetPWMResponse& from); + SetPWMResponse(SetPWMResponse&& from) noexcept + : SetPWMResponse() { *this = ::std::move(from); } - inline PWMFrequencyResponse& operator=(const PWMFrequencyResponse& from) { + inline SetPWMResponse& operator=(const SetPWMResponse& from) { CopyFrom(from); return *this; } - inline PWMFrequencyResponse& operator=(PWMFrequencyResponse&& from) noexcept { + inline SetPWMResponse& operator=(SetPWMResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1556,172 +1619,114 @@ class PWMFrequencyResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const PWMFrequencyResponse& default_instance() { + static const SetPWMResponse& default_instance() { return *internal_default_instance(); } - static inline const PWMFrequencyResponse* internal_default_instance() { - return reinterpret_cast( - &_PWMFrequencyResponse_default_instance_); + static inline const SetPWMResponse* internal_default_instance() { + return reinterpret_cast( + &_SetPWMResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 12; + 10; - friend void swap(PWMFrequencyResponse& a, PWMFrequencyResponse& b) { + friend void swap(SetPWMResponse& a, SetPWMResponse& b) { a.Swap(&b); } - inline void Swap(PWMFrequencyResponse* other) { + inline void Swap(SetPWMResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(PWMFrequencyResponse* other) { + void UnsafeArenaSwap(SetPWMResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - PWMFrequencyResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SetPWMResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const PWMFrequencyResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const PWMFrequencyResponse& from) { - PWMFrequencyResponse::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const SetPWMResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const SetPWMResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(PWMFrequencyResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.board.v1.PWMFrequencyResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.board.v1.SetPWMResponse"; } protected: - explicit PWMFrequencyResponse(::google::protobuf::Arena* arena); - PWMFrequencyResponse(::google::protobuf::Arena* arena, const PWMFrequencyResponse& from); + explicit SetPWMResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kFrequencyHzFieldNumber = 1, - }; - // uint64 frequency_hz = 1 [json_name = "frequencyHz"]; - void clear_frequency_hz() ; - ::uint64_t frequency_hz() const; - void set_frequency_hz(::uint64_t value); - - private: - ::uint64_t _internal_frequency_hz() const; - void _internal_set_frequency_hz(::uint64_t value); - - public: - // @@protoc_insertion_point(class_scope:viam.component.board.v1.PWMFrequencyResponse) + // @@protoc_insertion_point(class_scope:viam.component.board.v1.SetPWMResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::uint64_t frequency_hz_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_component_2fboard_2fv1_2fboard_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetGPIOResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.GetGPIOResponse) */ { +class PWMFrequencyRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.PWMFrequencyRequest) */ { public: - inline GetGPIOResponse() : GetGPIOResponse(nullptr) {} - ~GetGPIOResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetGPIOResponse(::google::protobuf::internal::ConstantInitialized); + inline PWMFrequencyRequest() : PWMFrequencyRequest(nullptr) {} + ~PWMFrequencyRequest() override; + explicit PROTOBUF_CONSTEXPR PWMFrequencyRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetGPIOResponse(const GetGPIOResponse& from) - : GetGPIOResponse(nullptr, from) {} - GetGPIOResponse(GetGPIOResponse&& from) noexcept - : GetGPIOResponse() { + PWMFrequencyRequest(const PWMFrequencyRequest& from); + PWMFrequencyRequest(PWMFrequencyRequest&& from) noexcept + : PWMFrequencyRequest() { *this = ::std::move(from); } - inline GetGPIOResponse& operator=(const GetGPIOResponse& from) { + inline PWMFrequencyRequest& operator=(const PWMFrequencyRequest& from) { CopyFrom(from); return *this; } - inline GetGPIOResponse& operator=(GetGPIOResponse&& from) noexcept { + inline PWMFrequencyRequest& operator=(PWMFrequencyRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1731,172 +1736,181 @@ class GetGPIOResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetGPIOResponse& default_instance() { + static const PWMFrequencyRequest& default_instance() { return *internal_default_instance(); } - static inline const GetGPIOResponse* internal_default_instance() { - return reinterpret_cast( - &_GetGPIOResponse_default_instance_); + static inline const PWMFrequencyRequest* internal_default_instance() { + return reinterpret_cast( + &_PWMFrequencyRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 6; + 11; - friend void swap(GetGPIOResponse& a, GetGPIOResponse& b) { + friend void swap(PWMFrequencyRequest& a, PWMFrequencyRequest& b) { a.Swap(&b); } - inline void Swap(GetGPIOResponse* other) { + inline void Swap(PWMFrequencyRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetGPIOResponse* other) { + void UnsafeArenaSwap(PWMFrequencyRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetGPIOResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetGPIOResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetGPIOResponse& from) { - GetGPIOResponse::MergeImpl(*this, from); + PWMFrequencyRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const PWMFrequencyRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const PWMFrequencyRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetGPIOResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(PWMFrequencyRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.board.v1.GetGPIOResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.board.v1.PWMFrequencyRequest"; } protected: - explicit GetGPIOResponse(::google::protobuf::Arena* arena); - GetGPIOResponse(::google::protobuf::Arena* arena, const GetGPIOResponse& from); + explicit PWMFrequencyRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kHighFieldNumber = 1, + kNameFieldNumber = 1, + kPinFieldNumber = 2, + kExtraFieldNumber = 99, }; - // bool high = 1 [json_name = "high"]; - void clear_high() ; - bool high() const; - void set_high(bool value); + // 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: + // string pin = 2 [json_name = "pin"]; + void clear_pin(); + const std::string& pin() const; + template + void set_pin(ArgT0&& arg0, ArgT... args); + std::string* mutable_pin(); + PROTOBUF_NODISCARD std::string* release_pin(); + void set_allocated_pin(std::string* pin); private: - bool _internal_high() const; - void _internal_set_high(bool value); + const std::string& _internal_pin() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_pin(const std::string& value); + std::string* _internal_mutable_pin(); + public: + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + bool has_extra() const; + private: + bool _internal_has_extra() const; public: - // @@protoc_insertion_point(class_scope:viam.component.board.v1.GetGPIOResponse) + 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.board.v1.PWMFrequencyRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - bool high_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr pin_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fboard_2fv1_2fboard_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetDigitalInterruptValueResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.GetDigitalInterruptValueResponse) */ { +class PWMFrequencyResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.PWMFrequencyResponse) */ { public: - inline GetDigitalInterruptValueResponse() : GetDigitalInterruptValueResponse(nullptr) {} - ~GetDigitalInterruptValueResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetDigitalInterruptValueResponse(::google::protobuf::internal::ConstantInitialized); + inline PWMFrequencyResponse() : PWMFrequencyResponse(nullptr) {} + ~PWMFrequencyResponse() override; + explicit PROTOBUF_CONSTEXPR PWMFrequencyResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetDigitalInterruptValueResponse(const GetDigitalInterruptValueResponse& from) - : GetDigitalInterruptValueResponse(nullptr, from) {} - GetDigitalInterruptValueResponse(GetDigitalInterruptValueResponse&& from) noexcept - : GetDigitalInterruptValueResponse() { + PWMFrequencyResponse(const PWMFrequencyResponse& from); + PWMFrequencyResponse(PWMFrequencyResponse&& from) noexcept + : PWMFrequencyResponse() { *this = ::std::move(from); } - inline GetDigitalInterruptValueResponse& operator=(const GetDigitalInterruptValueResponse& from) { + inline PWMFrequencyResponse& operator=(const PWMFrequencyResponse& from) { CopyFrom(from); return *this; } - inline GetDigitalInterruptValueResponse& operator=(GetDigitalInterruptValueResponse&& from) noexcept { + inline PWMFrequencyResponse& operator=(PWMFrequencyResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1906,172 +1920,140 @@ class GetDigitalInterruptValueResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetDigitalInterruptValueResponse& default_instance() { + static const PWMFrequencyResponse& default_instance() { return *internal_default_instance(); } - static inline const GetDigitalInterruptValueResponse* internal_default_instance() { - return reinterpret_cast( - &_GetDigitalInterruptValueResponse_default_instance_); + static inline const PWMFrequencyResponse* internal_default_instance() { + return reinterpret_cast( + &_PWMFrequencyResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 20; + 12; - friend void swap(GetDigitalInterruptValueResponse& a, GetDigitalInterruptValueResponse& b) { + friend void swap(PWMFrequencyResponse& a, PWMFrequencyResponse& b) { a.Swap(&b); } - inline void Swap(GetDigitalInterruptValueResponse* other) { + inline void Swap(PWMFrequencyResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetDigitalInterruptValueResponse* other) { + void UnsafeArenaSwap(PWMFrequencyResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetDigitalInterruptValueResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetDigitalInterruptValueResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetDigitalInterruptValueResponse& from) { - GetDigitalInterruptValueResponse::MergeImpl(*this, from); + PWMFrequencyResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const PWMFrequencyResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const PWMFrequencyResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetDigitalInterruptValueResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(PWMFrequencyResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.board.v1.GetDigitalInterruptValueResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.board.v1.PWMFrequencyResponse"; } protected: - explicit GetDigitalInterruptValueResponse(::google::protobuf::Arena* arena); - GetDigitalInterruptValueResponse(::google::protobuf::Arena* arena, const GetDigitalInterruptValueResponse& from); + explicit PWMFrequencyResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kValueFieldNumber = 1, + kFrequencyHzFieldNumber = 1, }; - // int64 value = 1 [json_name = "value"]; - void clear_value() ; - ::int64_t value() const; - void set_value(::int64_t value); - + // uint64 frequency_hz = 1 [json_name = "frequencyHz"]; + void clear_frequency_hz(); + uint64_t frequency_hz() const; + void set_frequency_hz(uint64_t value); private: - ::int64_t _internal_value() const; - void _internal_set_value(::int64_t value); - + uint64_t _internal_frequency_hz() const; + void _internal_set_frequency_hz(uint64_t value); public: - // @@protoc_insertion_point(class_scope:viam.component.board.v1.GetDigitalInterruptValueResponse) + + // @@protoc_insertion_point(class_scope:viam.component.board.v1.PWMFrequencyResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::int64_t value_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + uint64_t frequency_hz_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fboard_2fv1_2fboard_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class WriteAnalogRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.WriteAnalogRequest) */ { +class SetPWMFrequencyRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.SetPWMFrequencyRequest) */ { public: - inline WriteAnalogRequest() : WriteAnalogRequest(nullptr) {} - ~WriteAnalogRequest() override; - template - explicit PROTOBUF_CONSTEXPR WriteAnalogRequest(::google::protobuf::internal::ConstantInitialized); + inline SetPWMFrequencyRequest() : SetPWMFrequencyRequest(nullptr) {} + ~SetPWMFrequencyRequest() override; + explicit PROTOBUF_CONSTEXPR SetPWMFrequencyRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline WriteAnalogRequest(const WriteAnalogRequest& from) - : WriteAnalogRequest(nullptr, from) {} - WriteAnalogRequest(WriteAnalogRequest&& from) noexcept - : WriteAnalogRequest() { + SetPWMFrequencyRequest(const SetPWMFrequencyRequest& from); + SetPWMFrequencyRequest(SetPWMFrequencyRequest&& from) noexcept + : SetPWMFrequencyRequest() { *this = ::std::move(from); } - inline WriteAnalogRequest& operator=(const WriteAnalogRequest& from) { + inline SetPWMFrequencyRequest& operator=(const SetPWMFrequencyRequest& from) { CopyFrom(from); return *this; } - inline WriteAnalogRequest& operator=(WriteAnalogRequest&& from) noexcept { + inline SetPWMFrequencyRequest& operator=(SetPWMFrequencyRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2081,99 +2063,88 @@ class WriteAnalogRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const WriteAnalogRequest& default_instance() { + static const SetPWMFrequencyRequest& default_instance() { return *internal_default_instance(); } - static inline const WriteAnalogRequest* internal_default_instance() { - return reinterpret_cast( - &_WriteAnalogRequest_default_instance_); + static inline const SetPWMFrequencyRequest* internal_default_instance() { + return reinterpret_cast( + &_SetPWMFrequencyRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 17; + 13; - friend void swap(WriteAnalogRequest& a, WriteAnalogRequest& b) { + friend void swap(SetPWMFrequencyRequest& a, SetPWMFrequencyRequest& b) { a.Swap(&b); } - inline void Swap(WriteAnalogRequest* other) { + inline void Swap(SetPWMFrequencyRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(WriteAnalogRequest* other) { + void UnsafeArenaSwap(SetPWMFrequencyRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - WriteAnalogRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const WriteAnalogRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const WriteAnalogRequest& from) { - WriteAnalogRequest::MergeImpl(*this, from); + SetPWMFrequencyRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SetPWMFrequencyRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const SetPWMFrequencyRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(WriteAnalogRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(SetPWMFrequencyRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.board.v1.WriteAnalogRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.board.v1.SetPWMFrequencyRequest"; } protected: - explicit WriteAnalogRequest(::google::protobuf::Arena* arena); - WriteAnalogRequest(::google::protobuf::Arena* arena, const WriteAnalogRequest& from); + explicit SetPWMFrequencyRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -2183,124 +2154,100 @@ class WriteAnalogRequest final : kNameFieldNumber = 1, kPinFieldNumber = 2, kExtraFieldNumber = 99, - kValueFieldNumber = 3, + kFrequencyHzFieldNumber = 3, }; // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); std::string* _internal_mutable_name(); - public: + // string pin = 2 [json_name = "pin"]; - void clear_pin() ; + void clear_pin(); const std::string& pin() const; - template - void set_pin(Arg_&& arg, Args_... args); + template + void set_pin(ArgT0&& arg0, ArgT... args); std::string* mutable_pin(); PROTOBUF_NODISCARD std::string* release_pin(); - void set_allocated_pin(std::string* value); - + void set_allocated_pin(std::string* pin); private: const std::string& _internal_pin() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_pin( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_pin(const std::string& value); std::string* _internal_mutable_pin(); - public: + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - + bool _internal_has_extra() const; public: - // int32 value = 3 [json_name = "value"]; - void clear_value() ; - ::int32_t value() const; - void set_value(::int32_t value); - + 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: - ::int32_t _internal_value() const; - void _internal_set_value(::int32_t value); + 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(); + // uint64 frequency_hz = 3 [json_name = "frequencyHz"]; + void clear_frequency_hz(); + uint64_t frequency_hz() const; + void set_frequency_hz(uint64_t value); + private: + uint64_t _internal_frequency_hz() const; + void _internal_set_frequency_hz(uint64_t value); public: - // @@protoc_insertion_point(class_scope:viam.component.board.v1.WriteAnalogRequest) + + // @@protoc_insertion_point(class_scope:viam.component.board.v1.SetPWMFrequencyRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 1, - 58, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr pin_; - ::google::protobuf::Struct* extra_; - ::int32_t value_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr pin_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + uint64_t frequency_hz_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fboard_2fv1_2fboard_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class StreamTicksRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.StreamTicksRequest) */ { +class SetPWMFrequencyResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.board.v1.SetPWMFrequencyResponse) */ { public: - inline StreamTicksRequest() : StreamTicksRequest(nullptr) {} - ~StreamTicksRequest() override; - template - explicit PROTOBUF_CONSTEXPR StreamTicksRequest(::google::protobuf::internal::ConstantInitialized); + inline SetPWMFrequencyResponse() : SetPWMFrequencyResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR SetPWMFrequencyResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline StreamTicksRequest(const StreamTicksRequest& from) - : StreamTicksRequest(nullptr, from) {} - StreamTicksRequest(StreamTicksRequest&& from) noexcept - : StreamTicksRequest() { + SetPWMFrequencyResponse(const SetPWMFrequencyResponse& from); + SetPWMFrequencyResponse(SetPWMFrequencyResponse&& from) noexcept + : SetPWMFrequencyResponse() { *this = ::std::move(from); } - inline StreamTicksRequest& operator=(const StreamTicksRequest& from) { + inline SetPWMFrequencyResponse& operator=(const SetPWMFrequencyResponse& from) { CopyFrom(from); return *this; } - inline StreamTicksRequest& operator=(StreamTicksRequest&& from) noexcept { + inline SetPWMFrequencyResponse& operator=(SetPWMFrequencyResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2310,226 +2257,114 @@ class StreamTicksRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const StreamTicksRequest& default_instance() { + static const SetPWMFrequencyResponse& default_instance() { return *internal_default_instance(); } - static inline const StreamTicksRequest* internal_default_instance() { - return reinterpret_cast( - &_StreamTicksRequest_default_instance_); + static inline const SetPWMFrequencyResponse* internal_default_instance() { + return reinterpret_cast( + &_SetPWMFrequencyResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 21; + 14; - friend void swap(StreamTicksRequest& a, StreamTicksRequest& b) { + friend void swap(SetPWMFrequencyResponse& a, SetPWMFrequencyResponse& b) { a.Swap(&b); } - inline void Swap(StreamTicksRequest* other) { + inline void Swap(SetPWMFrequencyResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(StreamTicksRequest* other) { + void UnsafeArenaSwap(SetPWMFrequencyResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - StreamTicksRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SetPWMFrequencyResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const StreamTicksRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const StreamTicksRequest& from) { - StreamTicksRequest::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const SetPWMFrequencyResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const SetPWMFrequencyResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(StreamTicksRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.board.v1.StreamTicksRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.board.v1.SetPWMFrequencyResponse"; } protected: - explicit StreamTicksRequest(::google::protobuf::Arena* arena); - StreamTicksRequest(::google::protobuf::Arena* arena, const StreamTicksRequest& from); + explicit SetPWMFrequencyResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kPinNamesFieldNumber = 2, - kNameFieldNumber = 1, - kExtraFieldNumber = 99, - }; - // repeated string pin_names = 2 [json_name = "pinNames"]; - int pin_names_size() const; - private: - int _internal_pin_names_size() const; - - public: - void clear_pin_names() ; - const std::string& pin_names(int index) const; - std::string* mutable_pin_names(int index); - void set_pin_names(int index, const std::string& value); - void set_pin_names(int index, std::string&& value); - void set_pin_names(int index, const char* value); - void set_pin_names(int index, const char* value, std::size_t size); - void set_pin_names(int index, absl::string_view value); - std::string* add_pin_names(); - void add_pin_names(const std::string& value); - void add_pin_names(std::string&& value); - void add_pin_names(const char* value); - void add_pin_names(const char* value, std::size_t size); - void add_pin_names(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& pin_names() const; - ::google::protobuf::RepeatedPtrField* mutable_pin_names(); - - private: - const ::google::protobuf::RepeatedPtrField& _internal_pin_names() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_pin_names(); - - public: - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - - public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - - public: - // @@protoc_insertion_point(class_scope:viam.component.board.v1.StreamTicksRequest) + // @@protoc_insertion_point(class_scope:viam.component.board.v1.SetPWMFrequencyResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 1, - 64, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField pin_names_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_component_2fboard_2fv1_2fboard_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Status final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.Status) */ { +class ReadAnalogReaderRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.ReadAnalogReaderRequest) */ { public: - inline Status() : Status(nullptr) {} - ~Status() override; - template - explicit PROTOBUF_CONSTEXPR Status(::google::protobuf::internal::ConstantInitialized); + inline ReadAnalogReaderRequest() : ReadAnalogReaderRequest(nullptr) {} + ~ReadAnalogReaderRequest() override; + explicit PROTOBUF_CONSTEXPR ReadAnalogReaderRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Status(const Status& from) - : Status(nullptr, from) {} - Status(Status&& from) noexcept - : Status() { + ReadAnalogReaderRequest(const ReadAnalogReaderRequest& from); + ReadAnalogReaderRequest(ReadAnalogReaderRequest&& from) noexcept + : ReadAnalogReaderRequest() { *this = ::std::move(from); } - inline Status& operator=(const Status& from) { + inline ReadAnalogReaderRequest& operator=(const ReadAnalogReaderRequest& from) { CopyFrom(from); return *this; } - inline Status& operator=(Status&& from) noexcept { + inline ReadAnalogReaderRequest& operator=(ReadAnalogReaderRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2539,201 +2374,181 @@ class Status final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Status& default_instance() { + static const ReadAnalogReaderRequest& default_instance() { return *internal_default_instance(); } - static inline const Status* internal_default_instance() { - return reinterpret_cast( - &_Status_default_instance_); + static inline const ReadAnalogReaderRequest* internal_default_instance() { + return reinterpret_cast( + &_ReadAnalogReaderRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 2; + 15; - friend void swap(Status& a, Status& b) { + friend void swap(ReadAnalogReaderRequest& a, ReadAnalogReaderRequest& b) { a.Swap(&b); } - inline void Swap(Status* other) { + inline void Swap(ReadAnalogReaderRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Status* other) { + void UnsafeArenaSwap(ReadAnalogReaderRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Status* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Status& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Status& from) { - Status::MergeImpl(*this, from); + ReadAnalogReaderRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ReadAnalogReaderRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ReadAnalogReaderRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Status* other); + void SetCachedSize(int size) const final; + void InternalSwap(ReadAnalogReaderRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.board.v1.Status"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.board.v1.ReadAnalogReaderRequest"; } protected: - explicit Status(::google::protobuf::Arena* arena); - Status(::google::protobuf::Arena* arena, const Status& from); + explicit ReadAnalogReaderRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- - // accessors ------------------------------------------------------- enum : int { - kAnalogsFieldNumber = 1, - kDigitalInterruptsFieldNumber = 2, + kBoardNameFieldNumber = 1, + kAnalogReaderNameFieldNumber = 2, + kExtraFieldNumber = 99, }; - // map analogs = 1 [json_name = "analogs"]; - int analogs_size() const; + // string board_name = 1 [json_name = "boardName"]; + void clear_board_name(); + const std::string& board_name() const; + template + void set_board_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_board_name(); + PROTOBUF_NODISCARD std::string* release_board_name(); + void set_allocated_board_name(std::string* board_name); private: - int _internal_analogs_size() const; - + const std::string& _internal_board_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_board_name(const std::string& value); + std::string* _internal_mutable_board_name(); public: - void clear_analogs() ; - const ::google::protobuf::Map& analogs() const; - ::google::protobuf::Map* mutable_analogs(); + // string analog_reader_name = 2 [json_name = "analogReaderName"]; + void clear_analog_reader_name(); + const std::string& analog_reader_name() const; + template + void set_analog_reader_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_analog_reader_name(); + PROTOBUF_NODISCARD std::string* release_analog_reader_name(); + void set_allocated_analog_reader_name(std::string* analog_reader_name); private: - const ::google::protobuf::Map& _internal_analogs() const; - ::google::protobuf::Map* _internal_mutable_analogs(); - + const std::string& _internal_analog_reader_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_analog_reader_name(const std::string& value); + std::string* _internal_mutable_analog_reader_name(); public: - // map digital_interrupts = 2 [json_name = "digitalInterrupts"]; - int digital_interrupts_size() const; - private: - int _internal_digital_interrupts_size() const; + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + bool has_extra() const; + private: + bool _internal_has_extra() const; public: - void clear_digital_interrupts() ; - const ::google::protobuf::Map& digital_interrupts() const; - ::google::protobuf::Map* mutable_digital_interrupts(); - + 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 ::google::protobuf::Map& _internal_digital_interrupts() const; - ::google::protobuf::Map* _internal_mutable_digital_interrupts(); - + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_extra() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_extra(); public: - // @@protoc_insertion_point(class_scope:viam.component.board.v1.Status) + 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.board.v1.ReadAnalogReaderRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 2, 2, - 64, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::MapField - analogs_; - ::google::protobuf::internal::MapField - digital_interrupts_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr board_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr analog_reader_name_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fboard_2fv1_2fboard_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SetPowerModeRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.SetPowerModeRequest) */ { +class ReadAnalogReaderResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.ReadAnalogReaderResponse) */ { public: - inline SetPowerModeRequest() : SetPowerModeRequest(nullptr) {} - ~SetPowerModeRequest() override; - template - explicit PROTOBUF_CONSTEXPR SetPowerModeRequest(::google::protobuf::internal::ConstantInitialized); + inline ReadAnalogReaderResponse() : ReadAnalogReaderResponse(nullptr) {} + ~ReadAnalogReaderResponse() override; + explicit PROTOBUF_CONSTEXPR ReadAnalogReaderResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline SetPowerModeRequest(const SetPowerModeRequest& from) - : SetPowerModeRequest(nullptr, from) {} - SetPowerModeRequest(SetPowerModeRequest&& from) noexcept - : SetPowerModeRequest() { + ReadAnalogReaderResponse(const ReadAnalogReaderResponse& from); + ReadAnalogReaderResponse(ReadAnalogReaderResponse&& from) noexcept + : ReadAnalogReaderResponse() { *this = ::std::move(from); } - inline SetPowerModeRequest& operator=(const SetPowerModeRequest& from) { + inline ReadAnalogReaderResponse& operator=(const ReadAnalogReaderResponse& from) { CopyFrom(from); return *this; } - inline SetPowerModeRequest& operator=(SetPowerModeRequest&& from) noexcept { + inline ReadAnalogReaderResponse& operator=(ReadAnalogReaderResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2743,225 +2558,173 @@ class SetPowerModeRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SetPowerModeRequest& default_instance() { + static const ReadAnalogReaderResponse& default_instance() { return *internal_default_instance(); } - static inline const SetPowerModeRequest* internal_default_instance() { - return reinterpret_cast( - &_SetPowerModeRequest_default_instance_); + static inline const ReadAnalogReaderResponse* internal_default_instance() { + return reinterpret_cast( + &_ReadAnalogReaderResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 23; + 16; - friend void swap(SetPowerModeRequest& a, SetPowerModeRequest& b) { + friend void swap(ReadAnalogReaderResponse& a, ReadAnalogReaderResponse& b) { a.Swap(&b); } - inline void Swap(SetPowerModeRequest* other) { + inline void Swap(ReadAnalogReaderResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SetPowerModeRequest* other) { + void UnsafeArenaSwap(ReadAnalogReaderResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SetPowerModeRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SetPowerModeRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SetPowerModeRequest& from) { - SetPowerModeRequest::MergeImpl(*this, from); + ReadAnalogReaderResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ReadAnalogReaderResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ReadAnalogReaderResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(SetPowerModeRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(ReadAnalogReaderResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.board.v1.SetPowerModeRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.board.v1.ReadAnalogReaderResponse"; } protected: - explicit SetPowerModeRequest(::google::protobuf::Arena* arena); - SetPowerModeRequest(::google::protobuf::Arena* arena, const SetPowerModeRequest& from); + explicit ReadAnalogReaderResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kNameFieldNumber = 1, - kDurationFieldNumber = 3, - kExtraFieldNumber = 99, - kPowerModeFieldNumber = 2, + kValueFieldNumber = 1, + kMinRangeFieldNumber = 2, + kMaxRangeFieldNumber = 3, + kStepSizeFieldNumber = 4, }; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - + // int32 value = 1 [json_name = "value"]; + void clear_value(); + int32_t value() const; + void set_value(int32_t value); + private: + int32_t _internal_value() const; + void _internal_set_value(int32_t value); public: - // optional .google.protobuf.Duration duration = 3 [json_name = "duration"]; - bool has_duration() const; - void clear_duration() ; - const ::google::protobuf::Duration& duration() const; - PROTOBUF_NODISCARD ::google::protobuf::Duration* release_duration(); - ::google::protobuf::Duration* mutable_duration(); - void set_allocated_duration(::google::protobuf::Duration* value); - void unsafe_arena_set_allocated_duration(::google::protobuf::Duration* value); - ::google::protobuf::Duration* unsafe_arena_release_duration(); + // float min_range = 2 [json_name = "minRange"]; + void clear_min_range(); + float min_range() const; + void set_min_range(float value); private: - const ::google::protobuf::Duration& _internal_duration() const; - ::google::protobuf::Duration* _internal_mutable_duration(); - + float _internal_min_range() const; + void _internal_set_min_range(float value); public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); + // float max_range = 3 [json_name = "maxRange"]; + void clear_max_range(); + float max_range() const; + void set_max_range(float value); private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - + float _internal_max_range() const; + void _internal_set_max_range(float value); public: - // .viam.component.board.v1.PowerMode power_mode = 2 [json_name = "powerMode"]; - void clear_power_mode() ; - ::viam::component::board::v1::PowerMode power_mode() const; - void set_power_mode(::viam::component::board::v1::PowerMode value); + // float step_size = 4 [json_name = "stepSize"]; + void clear_step_size(); + float step_size() const; + void set_step_size(float value); private: - ::viam::component::board::v1::PowerMode _internal_power_mode() const; - void _internal_set_power_mode(::viam::component::board::v1::PowerMode value); - + float _internal_step_size() const; + void _internal_set_step_size(float value); public: - // @@protoc_insertion_point(class_scope:viam.component.board.v1.SetPowerModeRequest) + + // @@protoc_insertion_point(class_scope:viam.component.board.v1.ReadAnalogReaderResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 2, - 56, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Duration* duration_; - ::google::protobuf::Struct* extra_; - int power_mode_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + int32_t value_; + float min_range_; + float max_range_; + float step_size_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fboard_2fv1_2fboard_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SetPWMRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.SetPWMRequest) */ { +class WriteAnalogRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.WriteAnalogRequest) */ { public: - inline SetPWMRequest() : SetPWMRequest(nullptr) {} - ~SetPWMRequest() override; - template - explicit PROTOBUF_CONSTEXPR SetPWMRequest(::google::protobuf::internal::ConstantInitialized); + inline WriteAnalogRequest() : WriteAnalogRequest(nullptr) {} + ~WriteAnalogRequest() override; + explicit PROTOBUF_CONSTEXPR WriteAnalogRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline SetPWMRequest(const SetPWMRequest& from) - : SetPWMRequest(nullptr, from) {} - SetPWMRequest(SetPWMRequest&& from) noexcept - : SetPWMRequest() { + WriteAnalogRequest(const WriteAnalogRequest& from); + WriteAnalogRequest(WriteAnalogRequest&& from) noexcept + : WriteAnalogRequest() { *this = ::std::move(from); } - inline SetPWMRequest& operator=(const SetPWMRequest& from) { + inline WriteAnalogRequest& operator=(const WriteAnalogRequest& from) { CopyFrom(from); return *this; } - inline SetPWMRequest& operator=(SetPWMRequest&& from) noexcept { + inline WriteAnalogRequest& operator=(WriteAnalogRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2971,99 +2734,88 @@ class SetPWMRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SetPWMRequest& default_instance() { + static const WriteAnalogRequest& default_instance() { return *internal_default_instance(); } - static inline const SetPWMRequest* internal_default_instance() { - return reinterpret_cast( - &_SetPWMRequest_default_instance_); + static inline const WriteAnalogRequest* internal_default_instance() { + return reinterpret_cast( + &_WriteAnalogRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 9; + 17; - friend void swap(SetPWMRequest& a, SetPWMRequest& b) { + friend void swap(WriteAnalogRequest& a, WriteAnalogRequest& b) { a.Swap(&b); } - inline void Swap(SetPWMRequest* other) { + inline void Swap(WriteAnalogRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SetPWMRequest* other) { + void UnsafeArenaSwap(WriteAnalogRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SetPWMRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SetPWMRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SetPWMRequest& from) { - SetPWMRequest::MergeImpl(*this, from); + WriteAnalogRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const WriteAnalogRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const WriteAnalogRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(SetPWMRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(WriteAnalogRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.board.v1.SetPWMRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.board.v1.WriteAnalogRequest"; } protected: - explicit SetPWMRequest(::google::protobuf::Arena* arena); - SetPWMRequest(::google::protobuf::Arena* arena, const SetPWMRequest& from); + explicit WriteAnalogRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -3073,124 +2825,100 @@ class SetPWMRequest final : kNameFieldNumber = 1, kPinFieldNumber = 2, kExtraFieldNumber = 99, - kDutyCyclePctFieldNumber = 3, + kValueFieldNumber = 3, }; // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); std::string* _internal_mutable_name(); - public: + // string pin = 2 [json_name = "pin"]; - void clear_pin() ; + void clear_pin(); const std::string& pin() const; - template - void set_pin(Arg_&& arg, Args_... args); + template + void set_pin(ArgT0&& arg0, ArgT... args); std::string* mutable_pin(); PROTOBUF_NODISCARD std::string* release_pin(); - void set_allocated_pin(std::string* value); - + void set_allocated_pin(std::string* pin); private: const std::string& _internal_pin() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_pin( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_pin(const std::string& value); std::string* _internal_mutable_pin(); - public: + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - + bool _internal_has_extra() const; public: - // double duty_cycle_pct = 3 [json_name = "dutyCyclePct"]; - void clear_duty_cycle_pct() ; - double duty_cycle_pct() const; - void set_duty_cycle_pct(double value); - + 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: - double _internal_duty_cycle_pct() const; - void _internal_set_duty_cycle_pct(double value); + 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(); + // int32 value = 3 [json_name = "value"]; + void clear_value(); + int32_t value() const; + void set_value(int32_t value); + private: + int32_t _internal_value() const; + void _internal_set_value(int32_t value); public: - // @@protoc_insertion_point(class_scope:viam.component.board.v1.SetPWMRequest) + + // @@protoc_insertion_point(class_scope:viam.component.board.v1.WriteAnalogRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 1, - 53, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr pin_; - ::google::protobuf::Struct* extra_; - double duty_cycle_pct_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr pin_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + int32_t value_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fboard_2fv1_2fboard_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SetPWMFrequencyRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.SetPWMFrequencyRequest) */ { +class WriteAnalogResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.board.v1.WriteAnalogResponse) */ { public: - inline SetPWMFrequencyRequest() : SetPWMFrequencyRequest(nullptr) {} - ~SetPWMFrequencyRequest() override; - template - explicit PROTOBUF_CONSTEXPR SetPWMFrequencyRequest(::google::protobuf::internal::ConstantInitialized); + inline WriteAnalogResponse() : WriteAnalogResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR WriteAnalogResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline SetPWMFrequencyRequest(const SetPWMFrequencyRequest& from) - : SetPWMFrequencyRequest(nullptr, from) {} - SetPWMFrequencyRequest(SetPWMFrequencyRequest&& from) noexcept - : SetPWMFrequencyRequest() { + WriteAnalogResponse(const WriteAnalogResponse& from); + WriteAnalogResponse(WriteAnalogResponse&& from) noexcept + : WriteAnalogResponse() { *this = ::std::move(from); } - inline SetPWMFrequencyRequest& operator=(const SetPWMFrequencyRequest& from) { + inline WriteAnalogResponse& operator=(const WriteAnalogResponse& from) { CopyFrom(from); return *this; } - inline SetPWMFrequencyRequest& operator=(SetPWMFrequencyRequest&& from) noexcept { + inline WriteAnalogResponse& operator=(WriteAnalogResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3200,226 +2928,114 @@ class SetPWMFrequencyRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SetPWMFrequencyRequest& default_instance() { + static const WriteAnalogResponse& default_instance() { return *internal_default_instance(); } - static inline const SetPWMFrequencyRequest* internal_default_instance() { - return reinterpret_cast( - &_SetPWMFrequencyRequest_default_instance_); + static inline const WriteAnalogResponse* internal_default_instance() { + return reinterpret_cast( + &_WriteAnalogResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 13; + 18; - friend void swap(SetPWMFrequencyRequest& a, SetPWMFrequencyRequest& b) { + friend void swap(WriteAnalogResponse& a, WriteAnalogResponse& b) { a.Swap(&b); } - inline void Swap(SetPWMFrequencyRequest* other) { + inline void Swap(WriteAnalogResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SetPWMFrequencyRequest* other) { + void UnsafeArenaSwap(WriteAnalogResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SetPWMFrequencyRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + WriteAnalogResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SetPWMFrequencyRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SetPWMFrequencyRequest& from) { - SetPWMFrequencyRequest::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const WriteAnalogResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const WriteAnalogResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SetPWMFrequencyRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.board.v1.SetPWMFrequencyRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.board.v1.WriteAnalogResponse"; } protected: - explicit SetPWMFrequencyRequest(::google::protobuf::Arena* arena); - SetPWMFrequencyRequest(::google::protobuf::Arena* arena, const SetPWMFrequencyRequest& from); + explicit WriteAnalogResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kNameFieldNumber = 1, - kPinFieldNumber = 2, - kExtraFieldNumber = 99, - kFrequencyHzFieldNumber = 3, - }; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - - public: - // string pin = 2 [json_name = "pin"]; - void clear_pin() ; - const std::string& pin() const; - template - void set_pin(Arg_&& arg, Args_... args); - std::string* mutable_pin(); - PROTOBUF_NODISCARD std::string* release_pin(); - void set_allocated_pin(std::string* value); - - private: - const std::string& _internal_pin() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_pin( - const std::string& value); - std::string* _internal_mutable_pin(); - - public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - - public: - // uint64 frequency_hz = 3 [json_name = "frequencyHz"]; - void clear_frequency_hz() ; - ::uint64_t frequency_hz() const; - void set_frequency_hz(::uint64_t value); - - private: - ::uint64_t _internal_frequency_hz() const; - void _internal_set_frequency_hz(::uint64_t value); - - public: - // @@protoc_insertion_point(class_scope:viam.component.board.v1.SetPWMFrequencyRequest) + // @@protoc_insertion_point(class_scope:viam.component.board.v1.WriteAnalogResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 1, - 62, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr pin_; - ::google::protobuf::Struct* extra_; - ::uint64_t frequency_hz_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_component_2fboard_2fv1_2fboard_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SetGPIORequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.SetGPIORequest) */ { +class GetDigitalInterruptValueRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.GetDigitalInterruptValueRequest) */ { public: - inline SetGPIORequest() : SetGPIORequest(nullptr) {} - ~SetGPIORequest() override; - template - explicit PROTOBUF_CONSTEXPR SetGPIORequest(::google::protobuf::internal::ConstantInitialized); + inline GetDigitalInterruptValueRequest() : GetDigitalInterruptValueRequest(nullptr) {} + ~GetDigitalInterruptValueRequest() override; + explicit PROTOBUF_CONSTEXPR GetDigitalInterruptValueRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline SetGPIORequest(const SetGPIORequest& from) - : SetGPIORequest(nullptr, from) {} - SetGPIORequest(SetGPIORequest&& from) noexcept - : SetGPIORequest() { + GetDigitalInterruptValueRequest(const GetDigitalInterruptValueRequest& from); + GetDigitalInterruptValueRequest(GetDigitalInterruptValueRequest&& from) noexcept + : GetDigitalInterruptValueRequest() { *this = ::std::move(from); } - inline SetGPIORequest& operator=(const SetGPIORequest& from) { + inline GetDigitalInterruptValueRequest& operator=(const GetDigitalInterruptValueRequest& from) { CopyFrom(from); return *this; } - inline SetGPIORequest& operator=(SetGPIORequest&& from) noexcept { + inline GetDigitalInterruptValueRequest& operator=(GetDigitalInterruptValueRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3429,226 +3045,181 @@ class SetGPIORequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SetGPIORequest& default_instance() { + static const GetDigitalInterruptValueRequest& default_instance() { return *internal_default_instance(); } - static inline const SetGPIORequest* internal_default_instance() { - return reinterpret_cast( - &_SetGPIORequest_default_instance_); + static inline const GetDigitalInterruptValueRequest* internal_default_instance() { + return reinterpret_cast( + &_GetDigitalInterruptValueRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 3; + 19; - friend void swap(SetGPIORequest& a, SetGPIORequest& b) { + friend void swap(GetDigitalInterruptValueRequest& a, GetDigitalInterruptValueRequest& b) { a.Swap(&b); } - inline void Swap(SetGPIORequest* other) { + inline void Swap(GetDigitalInterruptValueRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SetGPIORequest* other) { + void UnsafeArenaSwap(GetDigitalInterruptValueRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SetGPIORequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SetGPIORequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SetGPIORequest& from) { - SetGPIORequest::MergeImpl(*this, from); + GetDigitalInterruptValueRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetDigitalInterruptValueRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetDigitalInterruptValueRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(SetGPIORequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetDigitalInterruptValueRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.board.v1.SetGPIORequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.board.v1.GetDigitalInterruptValueRequest"; } protected: - explicit SetGPIORequest(::google::protobuf::Arena* arena); - SetGPIORequest(::google::protobuf::Arena* arena, const SetGPIORequest& from); + explicit GetDigitalInterruptValueRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kNameFieldNumber = 1, - kPinFieldNumber = 2, + kBoardNameFieldNumber = 1, + kDigitalInterruptNameFieldNumber = 2, kExtraFieldNumber = 99, - kHighFieldNumber = 3, }; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + // string board_name = 1 [json_name = "boardName"]; + void clear_board_name(); + const std::string& board_name() const; + template + void set_board_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_board_name(); + PROTOBUF_NODISCARD std::string* release_board_name(); + void set_allocated_board_name(std::string* board_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: - // string pin = 2 [json_name = "pin"]; - void clear_pin() ; - const std::string& pin() const; - template - void set_pin(Arg_&& arg, Args_... args); - std::string* mutable_pin(); - PROTOBUF_NODISCARD std::string* release_pin(); - void set_allocated_pin(std::string* value); + const std::string& _internal_board_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_board_name(const std::string& value); + std::string* _internal_mutable_board_name(); + public: + // string digital_interrupt_name = 2 [json_name = "digitalInterruptName"]; + void clear_digital_interrupt_name(); + const std::string& digital_interrupt_name() const; + template + void set_digital_interrupt_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_digital_interrupt_name(); + PROTOBUF_NODISCARD std::string* release_digital_interrupt_name(); + void set_allocated_digital_interrupt_name(std::string* digital_interrupt_name); private: - const std::string& _internal_pin() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_pin( - const std::string& value); - std::string* _internal_mutable_pin(); - + const std::string& _internal_digital_interrupt_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_digital_interrupt_name(const std::string& value); + std::string* _internal_mutable_digital_interrupt_name(); public: + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - + bool _internal_has_extra() const; public: - // bool high = 3 [json_name = "high"]; - void clear_high() ; - bool high() const; - void set_high(bool value); - + 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: - bool _internal_high() const; - void _internal_set_high(bool value); - + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_extra() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_extra(); public: - // @@protoc_insertion_point(class_scope:viam.component.board.v1.SetGPIORequest) + 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.board.v1.GetDigitalInterruptValueRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 1, - 54, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr pin_; - ::google::protobuf::Struct* extra_; - bool high_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr board_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr digital_interrupt_name_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fboard_2fv1_2fboard_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ReadAnalogReaderRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.ReadAnalogReaderRequest) */ { +class GetDigitalInterruptValueResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.GetDigitalInterruptValueResponse) */ { public: - inline ReadAnalogReaderRequest() : ReadAnalogReaderRequest(nullptr) {} - ~ReadAnalogReaderRequest() override; - template - explicit PROTOBUF_CONSTEXPR ReadAnalogReaderRequest(::google::protobuf::internal::ConstantInitialized); + inline GetDigitalInterruptValueResponse() : GetDigitalInterruptValueResponse(nullptr) {} + ~GetDigitalInterruptValueResponse() override; + explicit PROTOBUF_CONSTEXPR GetDigitalInterruptValueResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ReadAnalogReaderRequest(const ReadAnalogReaderRequest& from) - : ReadAnalogReaderRequest(nullptr, from) {} - ReadAnalogReaderRequest(ReadAnalogReaderRequest&& from) noexcept - : ReadAnalogReaderRequest() { + GetDigitalInterruptValueResponse(const GetDigitalInterruptValueResponse& from); + GetDigitalInterruptValueResponse(GetDigitalInterruptValueResponse&& from) noexcept + : GetDigitalInterruptValueResponse() { *this = ::std::move(from); } - inline ReadAnalogReaderRequest& operator=(const ReadAnalogReaderRequest& from) { + inline GetDigitalInterruptValueResponse& operator=(const GetDigitalInterruptValueResponse& from) { CopyFrom(from); return *this; } - inline ReadAnalogReaderRequest& operator=(ReadAnalogReaderRequest&& from) noexcept { + inline GetDigitalInterruptValueResponse& operator=(GetDigitalInterruptValueResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3658,214 +3229,140 @@ class ReadAnalogReaderRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ReadAnalogReaderRequest& default_instance() { + static const GetDigitalInterruptValueResponse& default_instance() { return *internal_default_instance(); } - static inline const ReadAnalogReaderRequest* internal_default_instance() { - return reinterpret_cast( - &_ReadAnalogReaderRequest_default_instance_); + static inline const GetDigitalInterruptValueResponse* internal_default_instance() { + return reinterpret_cast( + &_GetDigitalInterruptValueResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 15; + 20; - friend void swap(ReadAnalogReaderRequest& a, ReadAnalogReaderRequest& b) { + friend void swap(GetDigitalInterruptValueResponse& a, GetDigitalInterruptValueResponse& b) { a.Swap(&b); } - inline void Swap(ReadAnalogReaderRequest* other) { + inline void Swap(GetDigitalInterruptValueResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ReadAnalogReaderRequest* other) { + void UnsafeArenaSwap(GetDigitalInterruptValueResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ReadAnalogReaderRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ReadAnalogReaderRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ReadAnalogReaderRequest& from) { - ReadAnalogReaderRequest::MergeImpl(*this, from); + GetDigitalInterruptValueResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetDigitalInterruptValueResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetDigitalInterruptValueResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ReadAnalogReaderRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetDigitalInterruptValueResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.board.v1.ReadAnalogReaderRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.board.v1.GetDigitalInterruptValueResponse"; } protected: - explicit ReadAnalogReaderRequest(::google::protobuf::Arena* arena); - ReadAnalogReaderRequest(::google::protobuf::Arena* arena, const ReadAnalogReaderRequest& from); + explicit GetDigitalInterruptValueResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kBoardNameFieldNumber = 1, - kAnalogReaderNameFieldNumber = 2, - kExtraFieldNumber = 99, + kValueFieldNumber = 1, }; - // string board_name = 1 [json_name = "boardName"]; - void clear_board_name() ; - const std::string& board_name() const; - template - void set_board_name(Arg_&& arg, Args_... args); - std::string* mutable_board_name(); - PROTOBUF_NODISCARD std::string* release_board_name(); - void set_allocated_board_name(std::string* value); - - private: - const std::string& _internal_board_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_board_name( - const std::string& value); - std::string* _internal_mutable_board_name(); - - public: - // string analog_reader_name = 2 [json_name = "analogReaderName"]; - void clear_analog_reader_name() ; - const std::string& analog_reader_name() const; - template - void set_analog_reader_name(Arg_&& arg, Args_... args); - std::string* mutable_analog_reader_name(); - PROTOBUF_NODISCARD std::string* release_analog_reader_name(); - void set_allocated_analog_reader_name(std::string* value); - + // int64 value = 1 [json_name = "value"]; + void clear_value(); + int64_t value() const; + void set_value(int64_t value); private: - const std::string& _internal_analog_reader_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_analog_reader_name( - const std::string& value); - std::string* _internal_mutable_analog_reader_name(); - + int64_t _internal_value() const; + void _internal_set_value(int64_t value); public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - public: - // @@protoc_insertion_point(class_scope:viam.component.board.v1.ReadAnalogReaderRequest) + // @@protoc_insertion_point(class_scope:viam.component.board.v1.GetDigitalInterruptValueResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 1, - 84, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr board_name_; - ::google::protobuf::internal::ArenaStringPtr analog_reader_name_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + int64_t value_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fboard_2fv1_2fboard_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class PWMRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.PWMRequest) */ { +class StreamTicksRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.StreamTicksRequest) */ { public: - inline PWMRequest() : PWMRequest(nullptr) {} - ~PWMRequest() override; - template - explicit PROTOBUF_CONSTEXPR PWMRequest(::google::protobuf::internal::ConstantInitialized); + inline StreamTicksRequest() : StreamTicksRequest(nullptr) {} + ~StreamTicksRequest() override; + explicit PROTOBUF_CONSTEXPR StreamTicksRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline PWMRequest(const PWMRequest& from) - : PWMRequest(nullptr, from) {} - PWMRequest(PWMRequest&& from) noexcept - : PWMRequest() { + StreamTicksRequest(const StreamTicksRequest& from); + StreamTicksRequest(StreamTicksRequest&& from) noexcept + : StreamTicksRequest() { *this = ::std::move(from); } - inline PWMRequest& operator=(const PWMRequest& from) { + inline StreamTicksRequest& operator=(const StreamTicksRequest& from) { CopyFrom(from); return *this; } - inline PWMRequest& operator=(PWMRequest&& from) noexcept { + inline StreamTicksRequest& operator=(StreamTicksRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3875,214 +3372,191 @@ class PWMRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const PWMRequest& default_instance() { + static const StreamTicksRequest& default_instance() { return *internal_default_instance(); } - static inline const PWMRequest* internal_default_instance() { - return reinterpret_cast( - &_PWMRequest_default_instance_); + static inline const StreamTicksRequest* internal_default_instance() { + return reinterpret_cast( + &_StreamTicksRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 7; + 21; - friend void swap(PWMRequest& a, PWMRequest& b) { + friend void swap(StreamTicksRequest& a, StreamTicksRequest& b) { a.Swap(&b); } - inline void Swap(PWMRequest* other) { + inline void Swap(StreamTicksRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(PWMRequest* other) { + void UnsafeArenaSwap(StreamTicksRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - PWMRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const PWMRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const PWMRequest& from) { - PWMRequest::MergeImpl(*this, from); + StreamTicksRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const StreamTicksRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const StreamTicksRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(PWMRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(StreamTicksRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.board.v1.PWMRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.board.v1.StreamTicksRequest"; } protected: - explicit PWMRequest(::google::protobuf::Arena* arena); - PWMRequest(::google::protobuf::Arena* arena, const PWMRequest& from); + explicit StreamTicksRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { + kPinNamesFieldNumber = 2, kNameFieldNumber = 1, - kPinFieldNumber = 2, kExtraFieldNumber = 99, }; + // repeated string pin_names = 2 [json_name = "pinNames"]; + int pin_names_size() const; + private: + int _internal_pin_names_size() const; + public: + void clear_pin_names(); + const std::string& pin_names(int index) const; + std::string* mutable_pin_names(int index); + void set_pin_names(int index, const std::string& value); + void set_pin_names(int index, std::string&& value); + void set_pin_names(int index, const char* value); + void set_pin_names(int index, const char* value, size_t size); + std::string* add_pin_names(); + void add_pin_names(const std::string& value); + void add_pin_names(std::string&& value); + void add_pin_names(const char* value); + void add_pin_names(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& pin_names() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_pin_names(); + private: + const std::string& _internal_pin_names(int index) const; + std::string* _internal_add_pin_names(); + public: + // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); std::string* _internal_mutable_name(); - public: - // string pin = 2 [json_name = "pin"]; - void clear_pin() ; - const std::string& pin() const; - template - void set_pin(Arg_&& arg, Args_... args); - std::string* mutable_pin(); - PROTOBUF_NODISCARD std::string* release_pin(); - void set_allocated_pin(std::string* value); - - private: - const std::string& _internal_pin() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_pin( - const std::string& value); - std::string* _internal_mutable_pin(); - public: // .google.protobuf.Struct extra = 99 [json_name = "extra"]; bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - + bool _internal_has_extra() const; public: - // @@protoc_insertion_point(class_scope:viam.component.board.v1.PWMRequest) + 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.board.v1.StreamTicksRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 1, - 50, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr pin_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField pin_names_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fboard_2fv1_2fboard_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class PWMFrequencyRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.PWMFrequencyRequest) */ { +class StreamTicksResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.StreamTicksResponse) */ { public: - inline PWMFrequencyRequest() : PWMFrequencyRequest(nullptr) {} - ~PWMFrequencyRequest() override; - template - explicit PROTOBUF_CONSTEXPR PWMFrequencyRequest(::google::protobuf::internal::ConstantInitialized); + inline StreamTicksResponse() : StreamTicksResponse(nullptr) {} + ~StreamTicksResponse() override; + explicit PROTOBUF_CONSTEXPR StreamTicksResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline PWMFrequencyRequest(const PWMFrequencyRequest& from) - : PWMFrequencyRequest(nullptr, from) {} - PWMFrequencyRequest(PWMFrequencyRequest&& from) noexcept - : PWMFrequencyRequest() { + StreamTicksResponse(const StreamTicksResponse& from); + StreamTicksResponse(StreamTicksResponse&& from) noexcept + : StreamTicksResponse() { *this = ::std::move(from); } - inline PWMFrequencyRequest& operator=(const PWMFrequencyRequest& from) { + inline StreamTicksResponse& operator=(const StreamTicksResponse& from) { CopyFrom(from); return *this; } - inline PWMFrequencyRequest& operator=(PWMFrequencyRequest&& from) noexcept { + inline StreamTicksResponse& operator=(StreamTicksResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -4092,214 +3566,167 @@ class PWMFrequencyRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const PWMFrequencyRequest& default_instance() { + static const StreamTicksResponse& default_instance() { return *internal_default_instance(); } - static inline const PWMFrequencyRequest* internal_default_instance() { - return reinterpret_cast( - &_PWMFrequencyRequest_default_instance_); + static inline const StreamTicksResponse* internal_default_instance() { + return reinterpret_cast( + &_StreamTicksResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 11; + 22; - friend void swap(PWMFrequencyRequest& a, PWMFrequencyRequest& b) { + friend void swap(StreamTicksResponse& a, StreamTicksResponse& b) { a.Swap(&b); } - inline void Swap(PWMFrequencyRequest* other) { + inline void Swap(StreamTicksResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(PWMFrequencyRequest* other) { + void UnsafeArenaSwap(StreamTicksResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - PWMFrequencyRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const PWMFrequencyRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const PWMFrequencyRequest& from) { - PWMFrequencyRequest::MergeImpl(*this, from); + StreamTicksResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const StreamTicksResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const StreamTicksResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(PWMFrequencyRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(StreamTicksResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.board.v1.PWMFrequencyRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.board.v1.StreamTicksResponse"; } protected: - explicit PWMFrequencyRequest(::google::protobuf::Arena* arena); - PWMFrequencyRequest(::google::protobuf::Arena* arena, const PWMFrequencyRequest& from); + explicit StreamTicksResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kNameFieldNumber = 1, - kPinFieldNumber = 2, - kExtraFieldNumber = 99, + kPinNameFieldNumber = 1, + kTimeFieldNumber = 2, + kHighFieldNumber = 3, }; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - - public: - // string pin = 2 [json_name = "pin"]; - void clear_pin() ; - const std::string& pin() const; - template - void set_pin(Arg_&& arg, Args_... args); - std::string* mutable_pin(); - PROTOBUF_NODISCARD std::string* release_pin(); - void set_allocated_pin(std::string* value); - + // string pin_name = 1 [json_name = "pinName"]; + void clear_pin_name(); + const std::string& pin_name() const; + template + void set_pin_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_pin_name(); + PROTOBUF_NODISCARD std::string* release_pin_name(); + void set_allocated_pin_name(std::string* pin_name); private: - const std::string& _internal_pin() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_pin( - const std::string& value); - std::string* _internal_mutable_pin(); - + const std::string& _internal_pin_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_pin_name(const std::string& value); + std::string* _internal_mutable_pin_name(); public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); + // uint64 time = 2 [json_name = "time"]; + void clear_time(); + uint64_t time() const; + void set_time(uint64_t value); private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); + uint64_t _internal_time() const; + void _internal_set_time(uint64_t value); + public: + // bool high = 3 [json_name = "high"]; + void clear_high(); + bool high() const; + void set_high(bool value); + private: + bool _internal_high() const; + void _internal_set_high(bool value); public: - // @@protoc_insertion_point(class_scope:viam.component.board.v1.PWMFrequencyRequest) + + // @@protoc_insertion_point(class_scope:viam.component.board.v1.StreamTicksResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 1, - 59, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr pin_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr pin_name_; + uint64_t time_; + bool high_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fboard_2fv1_2fboard_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetGPIORequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.GetGPIORequest) */ { +class SetPowerModeRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.SetPowerModeRequest) */ { public: - inline GetGPIORequest() : GetGPIORequest(nullptr) {} - ~GetGPIORequest() override; - template - explicit PROTOBUF_CONSTEXPR GetGPIORequest(::google::protobuf::internal::ConstantInitialized); + inline SetPowerModeRequest() : SetPowerModeRequest(nullptr) {} + ~SetPowerModeRequest() override; + explicit PROTOBUF_CONSTEXPR SetPowerModeRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetGPIORequest(const GetGPIORequest& from) - : GetGPIORequest(nullptr, from) {} - GetGPIORequest(GetGPIORequest&& from) noexcept - : GetGPIORequest() { + SetPowerModeRequest(const SetPowerModeRequest& from); + SetPowerModeRequest(SetPowerModeRequest&& from) noexcept + : SetPowerModeRequest() { *this = ::std::move(from); } - inline GetGPIORequest& operator=(const GetGPIORequest& from) { + inline SetPowerModeRequest& operator=(const SetPowerModeRequest& from) { CopyFrom(from); return *this; } - inline GetGPIORequest& operator=(GetGPIORequest&& from) noexcept { + inline SetPowerModeRequest& operator=(SetPowerModeRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -4309,99 +3736,88 @@ class GetGPIORequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetGPIORequest& default_instance() { + static const SetPowerModeRequest& default_instance() { return *internal_default_instance(); } - static inline const GetGPIORequest* internal_default_instance() { - return reinterpret_cast( - &_GetGPIORequest_default_instance_); + static inline const SetPowerModeRequest* internal_default_instance() { + return reinterpret_cast( + &_SetPowerModeRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 5; + 23; - friend void swap(GetGPIORequest& a, GetGPIORequest& b) { + friend void swap(SetPowerModeRequest& a, SetPowerModeRequest& b) { a.Swap(&b); } - inline void Swap(GetGPIORequest* other) { + inline void Swap(SetPowerModeRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetGPIORequest* other) { + void UnsafeArenaSwap(SetPowerModeRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetGPIORequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetGPIORequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetGPIORequest& from) { - GetGPIORequest::MergeImpl(*this, from); + SetPowerModeRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SetPowerModeRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const SetPowerModeRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetGPIORequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(SetPowerModeRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.board.v1.GetGPIORequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.board.v1.SetPowerModeRequest"; } protected: - explicit GetGPIORequest(::google::protobuf::Arena* arena); - GetGPIORequest(::google::protobuf::Arena* arena, const GetGPIORequest& from); + explicit SetPowerModeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -4409,114 +3825,107 @@ class GetGPIORequest final : enum : int { kNameFieldNumber = 1, - kPinFieldNumber = 2, + kDurationFieldNumber = 3, kExtraFieldNumber = 99, + kPowerModeFieldNumber = 2, }; // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); std::string* _internal_mutable_name(); - public: - // string pin = 2 [json_name = "pin"]; - void clear_pin() ; - const std::string& pin() const; - template - void set_pin(Arg_&& arg, Args_... args); - std::string* mutable_pin(); - PROTOBUF_NODISCARD std::string* release_pin(); - void set_allocated_pin(std::string* value); + // optional .google.protobuf.Duration duration = 3 [json_name = "duration"]; + bool has_duration() const; private: - const std::string& _internal_pin() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_pin( - const std::string& value); - std::string* _internal_mutable_pin(); - + bool _internal_has_duration() const; public: + void clear_duration(); + const ::PROTOBUF_NAMESPACE_ID::Duration& duration() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Duration* release_duration(); + ::PROTOBUF_NAMESPACE_ID::Duration* mutable_duration(); + void set_allocated_duration(::PROTOBUF_NAMESPACE_ID::Duration* duration); + private: + const ::PROTOBUF_NAMESPACE_ID::Duration& _internal_duration() const; + ::PROTOBUF_NAMESPACE_ID::Duration* _internal_mutable_duration(); + public: + void unsafe_arena_set_allocated_duration( + ::PROTOBUF_NAMESPACE_ID::Duration* duration); + ::PROTOBUF_NAMESPACE_ID::Duration* unsafe_arena_release_duration(); + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); + 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(); + // .viam.component.board.v1.PowerMode power_mode = 2 [json_name = "powerMode"]; + void clear_power_mode(); + ::viam::component::board::v1::PowerMode power_mode() const; + void set_power_mode(::viam::component::board::v1::PowerMode value); + private: + ::viam::component::board::v1::PowerMode _internal_power_mode() const; + void _internal_set_power_mode(::viam::component::board::v1::PowerMode value); public: - // @@protoc_insertion_point(class_scope:viam.component.board.v1.GetGPIORequest) + + // @@protoc_insertion_point(class_scope:viam.component.board.v1.SetPowerModeRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 1, - 54, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr pin_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::Duration* duration_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + int power_mode_; friend struct ::TableStruct_component_2fboard_2fv1_2fboard_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetDigitalInterruptValueRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.board.v1.GetDigitalInterruptValueRequest) */ { +class SetPowerModeResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.board.v1.SetPowerModeResponse) */ { public: - inline GetDigitalInterruptValueRequest() : GetDigitalInterruptValueRequest(nullptr) {} - ~GetDigitalInterruptValueRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetDigitalInterruptValueRequest(::google::protobuf::internal::ConstantInitialized); + inline SetPowerModeResponse() : SetPowerModeResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR SetPowerModeResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetDigitalInterruptValueRequest(const GetDigitalInterruptValueRequest& from) - : GetDigitalInterruptValueRequest(nullptr, from) {} - GetDigitalInterruptValueRequest(GetDigitalInterruptValueRequest&& from) noexcept - : GetDigitalInterruptValueRequest() { + SetPowerModeResponse(const SetPowerModeResponse& from); + SetPowerModeResponse(SetPowerModeResponse&& from) noexcept + : SetPowerModeResponse() { *this = ::std::move(from); } - inline GetDigitalInterruptValueRequest& operator=(const GetDigitalInterruptValueRequest& from) { + inline SetPowerModeResponse& operator=(const SetPowerModeResponse& from) { CopyFrom(from); return *this; } - inline GetDigitalInterruptValueRequest& operator=(GetDigitalInterruptValueRequest&& from) noexcept { + inline SetPowerModeResponse& operator=(SetPowerModeResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -4526,262 +3935,159 @@ class GetDigitalInterruptValueRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetDigitalInterruptValueRequest& default_instance() { + static const SetPowerModeResponse& default_instance() { return *internal_default_instance(); } - static inline const GetDigitalInterruptValueRequest* internal_default_instance() { - return reinterpret_cast( - &_GetDigitalInterruptValueRequest_default_instance_); + static inline const SetPowerModeResponse* internal_default_instance() { + return reinterpret_cast( + &_SetPowerModeResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 19; + 24; - friend void swap(GetDigitalInterruptValueRequest& a, GetDigitalInterruptValueRequest& b) { + friend void swap(SetPowerModeResponse& a, SetPowerModeResponse& b) { a.Swap(&b); } - inline void Swap(GetDigitalInterruptValueRequest* other) { + inline void Swap(SetPowerModeResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetDigitalInterruptValueRequest* other) { + void UnsafeArenaSwap(SetPowerModeResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetDigitalInterruptValueRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SetPowerModeResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetDigitalInterruptValueRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetDigitalInterruptValueRequest& from) { - GetDigitalInterruptValueRequest::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const SetPowerModeResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const SetPowerModeResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetDigitalInterruptValueRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.board.v1.GetDigitalInterruptValueRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.board.v1.SetPowerModeResponse"; } protected: - explicit GetDigitalInterruptValueRequest(::google::protobuf::Arena* arena); - GetDigitalInterruptValueRequest(::google::protobuf::Arena* arena, const GetDigitalInterruptValueRequest& from); + explicit SetPowerModeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kBoardNameFieldNumber = 1, - kDigitalInterruptNameFieldNumber = 2, - kExtraFieldNumber = 99, - }; - // string board_name = 1 [json_name = "boardName"]; - void clear_board_name() ; - const std::string& board_name() const; - template - void set_board_name(Arg_&& arg, Args_... args); - std::string* mutable_board_name(); - PROTOBUF_NODISCARD std::string* release_board_name(); - void set_allocated_board_name(std::string* value); - - private: - const std::string& _internal_board_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_board_name( - const std::string& value); - std::string* _internal_mutable_board_name(); - - public: - // string digital_interrupt_name = 2 [json_name = "digitalInterruptName"]; - void clear_digital_interrupt_name() ; - const std::string& digital_interrupt_name() const; - template - void set_digital_interrupt_name(Arg_&& arg, Args_... args); - std::string* mutable_digital_interrupt_name(); - PROTOBUF_NODISCARD std::string* release_digital_interrupt_name(); - void set_allocated_digital_interrupt_name(std::string* value); - - private: - const std::string& _internal_digital_interrupt_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_digital_interrupt_name( - const std::string& value); - std::string* _internal_mutable_digital_interrupt_name(); - - public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - - public: - // @@protoc_insertion_point(class_scope:viam.component.board.v1.GetDigitalInterruptValueRequest) + // @@protoc_insertion_point(class_scope:viam.component.board.v1.SetPowerModeResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 1, - 96, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr board_name_; - ::google::protobuf::internal::ArenaStringPtr digital_interrupt_name_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_component_2fboard_2fv1_2fboard_2eproto; }; - // =================================================================== - - // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ // ------------------------------------------------------------------- // ------------------------------------------------------------------- -// ------------------------------------------------------------------- - // Status // map analogs = 1 [json_name = "analogs"]; inline int Status::_internal_analogs_size() const { - return _internal_analogs().size(); + return analogs_.size(); } inline int Status::analogs_size() const { return _internal_analogs_size(); } inline void Status::clear_analogs() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.analogs_.Clear(); + analogs_.Clear(); } -inline const ::google::protobuf::Map& Status::_internal_analogs() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.analogs_.GetMap(); +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, int32_t >& +Status::_internal_analogs() const { + return analogs_.GetMap(); } -inline const ::google::protobuf::Map& Status::analogs() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, int32_t >& +Status::analogs() const { // @@protoc_insertion_point(field_map:viam.component.board.v1.Status.analogs) return _internal_analogs(); } -inline ::google::protobuf::Map* Status::_internal_mutable_analogs() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.analogs_.MutableMap(); +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, int32_t >* +Status::_internal_mutable_analogs() { + return analogs_.MutableMap(); } -inline ::google::protobuf::Map* Status::mutable_analogs() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, int32_t >* +Status::mutable_analogs() { // @@protoc_insertion_point(field_mutable_map:viam.component.board.v1.Status.analogs) return _internal_mutable_analogs(); } // map digital_interrupts = 2 [json_name = "digitalInterrupts"]; inline int Status::_internal_digital_interrupts_size() const { - return _internal_digital_interrupts().size(); + return digital_interrupts_.size(); } inline int Status::digital_interrupts_size() const { return _internal_digital_interrupts_size(); } inline void Status::clear_digital_interrupts() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.digital_interrupts_.Clear(); + digital_interrupts_.Clear(); } -inline const ::google::protobuf::Map& Status::_internal_digital_interrupts() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.digital_interrupts_.GetMap(); +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, int64_t >& +Status::_internal_digital_interrupts() const { + return digital_interrupts_.GetMap(); } -inline const ::google::protobuf::Map& Status::digital_interrupts() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, int64_t >& +Status::digital_interrupts() const { // @@protoc_insertion_point(field_map:viam.component.board.v1.Status.digital_interrupts) return _internal_digital_interrupts(); } -inline ::google::protobuf::Map* Status::_internal_mutable_digital_interrupts() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.digital_interrupts_.MutableMap(); +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, int64_t >* +Status::_internal_mutable_digital_interrupts() { + return digital_interrupts_.MutableMap(); } -inline ::google::protobuf::Map* Status::mutable_digital_interrupts() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, int64_t >* +Status::mutable_digital_interrupts() { // @@protoc_insertion_point(field_mutable_map:viam.component.board.v1.Status.digital_interrupts) return _internal_mutable_digital_interrupts(); } @@ -4792,221 +4098,206 @@ inline ::google::protobuf::Map* Status::mutable_digital_ // string name = 1 [json_name = "name"]; inline void SetGPIORequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& SetGPIORequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& SetGPIORequest::name() const { // @@protoc_insertion_point(field_get:viam.component.board.v1.SetGPIORequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void SetGPIORequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void SetGPIORequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.board.v1.SetGPIORequest.name) } -inline std::string* SetGPIORequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* SetGPIORequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.board.v1.SetGPIORequest.name) return _s; } inline const std::string& SetGPIORequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void SetGPIORequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* SetGPIORequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* SetGPIORequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.board.v1.SetGPIORequest.name) - return _impl_.name_.Release(); -} -inline void SetGPIORequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void SetGPIORequest::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.board.v1.SetGPIORequest.name) } // string pin = 2 [json_name = "pin"]; inline void SetGPIORequest::clear_pin() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.pin_.ClearToEmpty(); + pin_.ClearToEmpty(); } -inline const std::string& SetGPIORequest::pin() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& SetGPIORequest::pin() const { // @@protoc_insertion_point(field_get:viam.component.board.v1.SetGPIORequest.pin) return _internal_pin(); } -template -inline PROTOBUF_ALWAYS_INLINE void SetGPIORequest::set_pin(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.pin_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void SetGPIORequest::set_pin(ArgT0&& arg0, ArgT... args) { + + pin_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.board.v1.SetGPIORequest.pin) } -inline std::string* SetGPIORequest::mutable_pin() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* SetGPIORequest::mutable_pin() { std::string* _s = _internal_mutable_pin(); // @@protoc_insertion_point(field_mutable:viam.component.board.v1.SetGPIORequest.pin) return _s; } inline const std::string& SetGPIORequest::_internal_pin() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.pin_.Get(); + return pin_.Get(); } inline void SetGPIORequest::_internal_set_pin(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.pin_.Set(value, GetArena()); + + pin_.Set(value, GetArenaForAllocation()); } inline std::string* SetGPIORequest::_internal_mutable_pin() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.pin_.Mutable( GetArena()); + + return pin_.Mutable(GetArenaForAllocation()); } inline std::string* SetGPIORequest::release_pin() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.board.v1.SetGPIORequest.pin) - return _impl_.pin_.Release(); -} -inline void SetGPIORequest::set_allocated_pin(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.pin_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.pin_.IsDefault()) { - _impl_.pin_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return pin_.Release(); +} +inline void SetGPIORequest::set_allocated_pin(std::string* pin) { + if (pin != nullptr) { + + } else { + + } + pin_.SetAllocated(pin, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (pin_.IsDefault()) { + pin_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.component.board.v1.SetGPIORequest.pin) } // bool high = 3 [json_name = "high"]; inline void SetGPIORequest::clear_high() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.high_ = false; + high_ = false; +} +inline bool SetGPIORequest::_internal_high() const { + return high_; } inline bool SetGPIORequest::high() const { // @@protoc_insertion_point(field_get:viam.component.board.v1.SetGPIORequest.high) return _internal_high(); } +inline void SetGPIORequest::_internal_set_high(bool value) { + + high_ = value; +} inline void SetGPIORequest::set_high(bool value) { _internal_set_high(value); // @@protoc_insertion_point(field_set:viam.component.board.v1.SetGPIORequest.high) } -inline bool SetGPIORequest::_internal_high() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.high_; -} -inline void SetGPIORequest::_internal_set_high(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.high_ = value; -} // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool SetGPIORequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool SetGPIORequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& SetGPIORequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& SetGPIORequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& SetGPIORequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& SetGPIORequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.board.v1.SetGPIORequest.extra) return _internal_extra(); } -inline void SetGPIORequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void SetGPIORequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.board.v1.SetGPIORequest.extra) } -inline ::google::protobuf::Struct* SetGPIORequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetGPIORequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* SetGPIORequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetGPIORequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.board.v1.SetGPIORequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* SetGPIORequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetGPIORequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* SetGPIORequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetGPIORequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.board.v1.SetGPIORequest.extra) return _msg; } -inline void SetGPIORequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void SetGPIORequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.board.v1.SetGPIORequest.extra) } @@ -5020,198 +4311,186 @@ inline void SetGPIORequest::set_allocated_extra(::google::protobuf::Struct* valu // string name = 1 [json_name = "name"]; inline void GetGPIORequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& GetGPIORequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetGPIORequest::name() const { // @@protoc_insertion_point(field_get:viam.component.board.v1.GetGPIORequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetGPIORequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetGPIORequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.board.v1.GetGPIORequest.name) } -inline std::string* GetGPIORequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetGPIORequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.board.v1.GetGPIORequest.name) return _s; } inline const std::string& GetGPIORequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void GetGPIORequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* GetGPIORequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* GetGPIORequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.board.v1.GetGPIORequest.name) - return _impl_.name_.Release(); -} -inline void GetGPIORequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void GetGPIORequest::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.board.v1.GetGPIORequest.name) } // string pin = 2 [json_name = "pin"]; inline void GetGPIORequest::clear_pin() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.pin_.ClearToEmpty(); + pin_.ClearToEmpty(); } -inline const std::string& GetGPIORequest::pin() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetGPIORequest::pin() const { // @@protoc_insertion_point(field_get:viam.component.board.v1.GetGPIORequest.pin) return _internal_pin(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetGPIORequest::set_pin(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.pin_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetGPIORequest::set_pin(ArgT0&& arg0, ArgT... args) { + + pin_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.board.v1.GetGPIORequest.pin) } -inline std::string* GetGPIORequest::mutable_pin() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetGPIORequest::mutable_pin() { std::string* _s = _internal_mutable_pin(); // @@protoc_insertion_point(field_mutable:viam.component.board.v1.GetGPIORequest.pin) return _s; } inline const std::string& GetGPIORequest::_internal_pin() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.pin_.Get(); + return pin_.Get(); } inline void GetGPIORequest::_internal_set_pin(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.pin_.Set(value, GetArena()); + + pin_.Set(value, GetArenaForAllocation()); } inline std::string* GetGPIORequest::_internal_mutable_pin() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.pin_.Mutable( GetArena()); + + return pin_.Mutable(GetArenaForAllocation()); } inline std::string* GetGPIORequest::release_pin() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.board.v1.GetGPIORequest.pin) - return _impl_.pin_.Release(); -} -inline void GetGPIORequest::set_allocated_pin(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.pin_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.pin_.IsDefault()) { - _impl_.pin_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return pin_.Release(); +} +inline void GetGPIORequest::set_allocated_pin(std::string* pin) { + if (pin != nullptr) { + + } else { + + } + pin_.SetAllocated(pin, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (pin_.IsDefault()) { + pin_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.component.board.v1.GetGPIORequest.pin) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetGPIORequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool GetGPIORequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& GetGPIORequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetGPIORequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& GetGPIORequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetGPIORequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.board.v1.GetGPIORequest.extra) return _internal_extra(); } -inline void GetGPIORequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void GetGPIORequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.board.v1.GetGPIORequest.extra) } -inline ::google::protobuf::Struct* GetGPIORequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetGPIORequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* GetGPIORequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetGPIORequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.board.v1.GetGPIORequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* GetGPIORequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetGPIORequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* GetGPIORequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetGPIORequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.board.v1.GetGPIORequest.extra) return _msg; } -inline void GetGPIORequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetGPIORequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.board.v1.GetGPIORequest.extra) } @@ -5221,26 +4500,23 @@ inline void GetGPIORequest::set_allocated_extra(::google::protobuf::Struct* valu // bool high = 1 [json_name = "high"]; inline void GetGPIOResponse::clear_high() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.high_ = false; + high_ = false; +} +inline bool GetGPIOResponse::_internal_high() const { + return high_; } inline bool GetGPIOResponse::high() const { // @@protoc_insertion_point(field_get:viam.component.board.v1.GetGPIOResponse.high) return _internal_high(); } +inline void GetGPIOResponse::_internal_set_high(bool value) { + + high_ = value; +} inline void GetGPIOResponse::set_high(bool value) { _internal_set_high(value); // @@protoc_insertion_point(field_set:viam.component.board.v1.GetGPIOResponse.high) } -inline bool GetGPIOResponse::_internal_high() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.high_; -} -inline void GetGPIOResponse::_internal_set_high(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.high_ = value; -} // ------------------------------------------------------------------- @@ -5248,198 +4524,186 @@ inline void GetGPIOResponse::_internal_set_high(bool value) { // string name = 1 [json_name = "name"]; inline void PWMRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& PWMRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& PWMRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.board.v1.PWMRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void PWMRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void PWMRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.board.v1.PWMRequest.name) } -inline std::string* PWMRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* PWMRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.board.v1.PWMRequest.name) return _s; } inline const std::string& PWMRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void PWMRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* PWMRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* PWMRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.board.v1.PWMRequest.name) - return _impl_.name_.Release(); -} -inline void PWMRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void PWMRequest::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.board.v1.PWMRequest.name) } // string pin = 2 [json_name = "pin"]; inline void PWMRequest::clear_pin() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.pin_.ClearToEmpty(); + pin_.ClearToEmpty(); } -inline const std::string& PWMRequest::pin() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& PWMRequest::pin() const { // @@protoc_insertion_point(field_get:viam.component.board.v1.PWMRequest.pin) return _internal_pin(); } -template -inline PROTOBUF_ALWAYS_INLINE void PWMRequest::set_pin(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.pin_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void PWMRequest::set_pin(ArgT0&& arg0, ArgT... args) { + + pin_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.board.v1.PWMRequest.pin) } -inline std::string* PWMRequest::mutable_pin() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* PWMRequest::mutable_pin() { std::string* _s = _internal_mutable_pin(); // @@protoc_insertion_point(field_mutable:viam.component.board.v1.PWMRequest.pin) return _s; } inline const std::string& PWMRequest::_internal_pin() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.pin_.Get(); + return pin_.Get(); } inline void PWMRequest::_internal_set_pin(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.pin_.Set(value, GetArena()); + + pin_.Set(value, GetArenaForAllocation()); } inline std::string* PWMRequest::_internal_mutable_pin() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.pin_.Mutable( GetArena()); + + return pin_.Mutable(GetArenaForAllocation()); } inline std::string* PWMRequest::release_pin() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.board.v1.PWMRequest.pin) - return _impl_.pin_.Release(); -} -inline void PWMRequest::set_allocated_pin(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.pin_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.pin_.IsDefault()) { - _impl_.pin_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return pin_.Release(); +} +inline void PWMRequest::set_allocated_pin(std::string* pin) { + if (pin != nullptr) { + + } else { + + } + pin_.SetAllocated(pin, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (pin_.IsDefault()) { + pin_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.component.board.v1.PWMRequest.pin) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool PWMRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool PWMRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& PWMRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& PWMRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& PWMRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& PWMRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.board.v1.PWMRequest.extra) return _internal_extra(); } -inline void PWMRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void PWMRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.board.v1.PWMRequest.extra) } -inline ::google::protobuf::Struct* PWMRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* PWMRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* PWMRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* PWMRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.board.v1.PWMRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* PWMRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* PWMRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* PWMRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* PWMRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.board.v1.PWMRequest.extra) return _msg; } -inline void PWMRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void PWMRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.board.v1.PWMRequest.extra) } @@ -5449,26 +4713,23 @@ inline void PWMRequest::set_allocated_extra(::google::protobuf::Struct* value) { // double duty_cycle_pct = 1 [json_name = "dutyCyclePct"]; inline void PWMResponse::clear_duty_cycle_pct() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.duty_cycle_pct_ = 0; + duty_cycle_pct_ = 0; +} +inline double PWMResponse::_internal_duty_cycle_pct() const { + return duty_cycle_pct_; } inline double PWMResponse::duty_cycle_pct() const { // @@protoc_insertion_point(field_get:viam.component.board.v1.PWMResponse.duty_cycle_pct) return _internal_duty_cycle_pct(); } +inline void PWMResponse::_internal_set_duty_cycle_pct(double value) { + + duty_cycle_pct_ = value; +} inline void PWMResponse::set_duty_cycle_pct(double value) { _internal_set_duty_cycle_pct(value); // @@protoc_insertion_point(field_set:viam.component.board.v1.PWMResponse.duty_cycle_pct) } -inline double PWMResponse::_internal_duty_cycle_pct() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.duty_cycle_pct_; -} -inline void PWMResponse::_internal_set_duty_cycle_pct(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.duty_cycle_pct_ = value; -} // ------------------------------------------------------------------- @@ -5476,221 +4737,206 @@ inline void PWMResponse::_internal_set_duty_cycle_pct(double value) { // string name = 1 [json_name = "name"]; inline void SetPWMRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& SetPWMRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& SetPWMRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.board.v1.SetPWMRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void SetPWMRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void SetPWMRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.board.v1.SetPWMRequest.name) } -inline std::string* SetPWMRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* SetPWMRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.board.v1.SetPWMRequest.name) return _s; } inline const std::string& SetPWMRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void SetPWMRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* SetPWMRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* SetPWMRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.board.v1.SetPWMRequest.name) - return _impl_.name_.Release(); -} -inline void SetPWMRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void SetPWMRequest::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.board.v1.SetPWMRequest.name) } // string pin = 2 [json_name = "pin"]; inline void SetPWMRequest::clear_pin() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.pin_.ClearToEmpty(); + pin_.ClearToEmpty(); } -inline const std::string& SetPWMRequest::pin() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& SetPWMRequest::pin() const { // @@protoc_insertion_point(field_get:viam.component.board.v1.SetPWMRequest.pin) return _internal_pin(); } -template -inline PROTOBUF_ALWAYS_INLINE void SetPWMRequest::set_pin(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.pin_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void SetPWMRequest::set_pin(ArgT0&& arg0, ArgT... args) { + + pin_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.board.v1.SetPWMRequest.pin) } -inline std::string* SetPWMRequest::mutable_pin() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* SetPWMRequest::mutable_pin() { std::string* _s = _internal_mutable_pin(); // @@protoc_insertion_point(field_mutable:viam.component.board.v1.SetPWMRequest.pin) return _s; } inline const std::string& SetPWMRequest::_internal_pin() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.pin_.Get(); + return pin_.Get(); } inline void SetPWMRequest::_internal_set_pin(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.pin_.Set(value, GetArena()); + + pin_.Set(value, GetArenaForAllocation()); } inline std::string* SetPWMRequest::_internal_mutable_pin() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.pin_.Mutable( GetArena()); + + return pin_.Mutable(GetArenaForAllocation()); } inline std::string* SetPWMRequest::release_pin() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.board.v1.SetPWMRequest.pin) - return _impl_.pin_.Release(); -} -inline void SetPWMRequest::set_allocated_pin(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.pin_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.pin_.IsDefault()) { - _impl_.pin_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return pin_.Release(); +} +inline void SetPWMRequest::set_allocated_pin(std::string* pin) { + if (pin != nullptr) { + + } else { + + } + pin_.SetAllocated(pin, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (pin_.IsDefault()) { + pin_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.component.board.v1.SetPWMRequest.pin) } // double duty_cycle_pct = 3 [json_name = "dutyCyclePct"]; inline void SetPWMRequest::clear_duty_cycle_pct() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.duty_cycle_pct_ = 0; + duty_cycle_pct_ = 0; +} +inline double SetPWMRequest::_internal_duty_cycle_pct() const { + return duty_cycle_pct_; } inline double SetPWMRequest::duty_cycle_pct() const { // @@protoc_insertion_point(field_get:viam.component.board.v1.SetPWMRequest.duty_cycle_pct) return _internal_duty_cycle_pct(); } +inline void SetPWMRequest::_internal_set_duty_cycle_pct(double value) { + + duty_cycle_pct_ = value; +} inline void SetPWMRequest::set_duty_cycle_pct(double value) { _internal_set_duty_cycle_pct(value); // @@protoc_insertion_point(field_set:viam.component.board.v1.SetPWMRequest.duty_cycle_pct) } -inline double SetPWMRequest::_internal_duty_cycle_pct() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.duty_cycle_pct_; -} -inline void SetPWMRequest::_internal_set_duty_cycle_pct(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.duty_cycle_pct_ = value; -} // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool SetPWMRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool SetPWMRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& SetPWMRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& SetPWMRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& SetPWMRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& SetPWMRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.board.v1.SetPWMRequest.extra) return _internal_extra(); } -inline void SetPWMRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void SetPWMRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.board.v1.SetPWMRequest.extra) } -inline ::google::protobuf::Struct* SetPWMRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetPWMRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* SetPWMRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetPWMRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.board.v1.SetPWMRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* SetPWMRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetPWMRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* SetPWMRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetPWMRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.board.v1.SetPWMRequest.extra) return _msg; } -inline void SetPWMRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void SetPWMRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.board.v1.SetPWMRequest.extra) } @@ -5704,198 +4950,186 @@ inline void SetPWMRequest::set_allocated_extra(::google::protobuf::Struct* value // string name = 1 [json_name = "name"]; inline void PWMFrequencyRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& PWMFrequencyRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& PWMFrequencyRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.board.v1.PWMFrequencyRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void PWMFrequencyRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void PWMFrequencyRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.board.v1.PWMFrequencyRequest.name) } -inline std::string* PWMFrequencyRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* PWMFrequencyRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.board.v1.PWMFrequencyRequest.name) return _s; } inline const std::string& PWMFrequencyRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void PWMFrequencyRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* PWMFrequencyRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* PWMFrequencyRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.board.v1.PWMFrequencyRequest.name) - return _impl_.name_.Release(); -} -inline void PWMFrequencyRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void PWMFrequencyRequest::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.board.v1.PWMFrequencyRequest.name) } // string pin = 2 [json_name = "pin"]; inline void PWMFrequencyRequest::clear_pin() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.pin_.ClearToEmpty(); + pin_.ClearToEmpty(); } -inline const std::string& PWMFrequencyRequest::pin() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& PWMFrequencyRequest::pin() const { // @@protoc_insertion_point(field_get:viam.component.board.v1.PWMFrequencyRequest.pin) return _internal_pin(); } -template -inline PROTOBUF_ALWAYS_INLINE void PWMFrequencyRequest::set_pin(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.pin_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void PWMFrequencyRequest::set_pin(ArgT0&& arg0, ArgT... args) { + + pin_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.board.v1.PWMFrequencyRequest.pin) } -inline std::string* PWMFrequencyRequest::mutable_pin() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* PWMFrequencyRequest::mutable_pin() { std::string* _s = _internal_mutable_pin(); // @@protoc_insertion_point(field_mutable:viam.component.board.v1.PWMFrequencyRequest.pin) return _s; } inline const std::string& PWMFrequencyRequest::_internal_pin() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.pin_.Get(); + return pin_.Get(); } inline void PWMFrequencyRequest::_internal_set_pin(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.pin_.Set(value, GetArena()); + + pin_.Set(value, GetArenaForAllocation()); } inline std::string* PWMFrequencyRequest::_internal_mutable_pin() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.pin_.Mutable( GetArena()); + + return pin_.Mutable(GetArenaForAllocation()); } inline std::string* PWMFrequencyRequest::release_pin() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.board.v1.PWMFrequencyRequest.pin) - return _impl_.pin_.Release(); -} -inline void PWMFrequencyRequest::set_allocated_pin(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.pin_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.pin_.IsDefault()) { - _impl_.pin_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return pin_.Release(); +} +inline void PWMFrequencyRequest::set_allocated_pin(std::string* pin) { + if (pin != nullptr) { + + } else { + + } + pin_.SetAllocated(pin, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (pin_.IsDefault()) { + pin_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.component.board.v1.PWMFrequencyRequest.pin) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool PWMFrequencyRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool PWMFrequencyRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& PWMFrequencyRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& PWMFrequencyRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& PWMFrequencyRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& PWMFrequencyRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.board.v1.PWMFrequencyRequest.extra) return _internal_extra(); } -inline void PWMFrequencyRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void PWMFrequencyRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.board.v1.PWMFrequencyRequest.extra) } -inline ::google::protobuf::Struct* PWMFrequencyRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* PWMFrequencyRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* PWMFrequencyRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* PWMFrequencyRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.board.v1.PWMFrequencyRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* PWMFrequencyRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* PWMFrequencyRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* PWMFrequencyRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* PWMFrequencyRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.board.v1.PWMFrequencyRequest.extra) return _msg; } -inline void PWMFrequencyRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void PWMFrequencyRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.board.v1.PWMFrequencyRequest.extra) } @@ -5905,26 +5139,23 @@ inline void PWMFrequencyRequest::set_allocated_extra(::google::protobuf::Struct* // uint64 frequency_hz = 1 [json_name = "frequencyHz"]; inline void PWMFrequencyResponse::clear_frequency_hz() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.frequency_hz_ = ::uint64_t{0u}; + frequency_hz_ = uint64_t{0u}; +} +inline uint64_t PWMFrequencyResponse::_internal_frequency_hz() const { + return frequency_hz_; } -inline ::uint64_t PWMFrequencyResponse::frequency_hz() const { +inline uint64_t PWMFrequencyResponse::frequency_hz() const { // @@protoc_insertion_point(field_get:viam.component.board.v1.PWMFrequencyResponse.frequency_hz) return _internal_frequency_hz(); } -inline void PWMFrequencyResponse::set_frequency_hz(::uint64_t value) { +inline void PWMFrequencyResponse::_internal_set_frequency_hz(uint64_t value) { + + frequency_hz_ = value; +} +inline void PWMFrequencyResponse::set_frequency_hz(uint64_t value) { _internal_set_frequency_hz(value); // @@protoc_insertion_point(field_set:viam.component.board.v1.PWMFrequencyResponse.frequency_hz) } -inline ::uint64_t PWMFrequencyResponse::_internal_frequency_hz() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.frequency_hz_; -} -inline void PWMFrequencyResponse::_internal_set_frequency_hz(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.frequency_hz_ = value; -} // ------------------------------------------------------------------- @@ -5932,221 +5163,206 @@ inline void PWMFrequencyResponse::_internal_set_frequency_hz(::uint64_t value) { // string name = 1 [json_name = "name"]; inline void SetPWMFrequencyRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& SetPWMFrequencyRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& SetPWMFrequencyRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.board.v1.SetPWMFrequencyRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void SetPWMFrequencyRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void SetPWMFrequencyRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.board.v1.SetPWMFrequencyRequest.name) } -inline std::string* SetPWMFrequencyRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* SetPWMFrequencyRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.board.v1.SetPWMFrequencyRequest.name) return _s; } inline const std::string& SetPWMFrequencyRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void SetPWMFrequencyRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* SetPWMFrequencyRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* SetPWMFrequencyRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.board.v1.SetPWMFrequencyRequest.name) - return _impl_.name_.Release(); -} -inline void SetPWMFrequencyRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void SetPWMFrequencyRequest::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.board.v1.SetPWMFrequencyRequest.name) } // string pin = 2 [json_name = "pin"]; inline void SetPWMFrequencyRequest::clear_pin() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.pin_.ClearToEmpty(); + pin_.ClearToEmpty(); } -inline const std::string& SetPWMFrequencyRequest::pin() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& SetPWMFrequencyRequest::pin() const { // @@protoc_insertion_point(field_get:viam.component.board.v1.SetPWMFrequencyRequest.pin) return _internal_pin(); } -template -inline PROTOBUF_ALWAYS_INLINE void SetPWMFrequencyRequest::set_pin(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.pin_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void SetPWMFrequencyRequest::set_pin(ArgT0&& arg0, ArgT... args) { + + pin_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.board.v1.SetPWMFrequencyRequest.pin) } -inline std::string* SetPWMFrequencyRequest::mutable_pin() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* SetPWMFrequencyRequest::mutable_pin() { std::string* _s = _internal_mutable_pin(); // @@protoc_insertion_point(field_mutable:viam.component.board.v1.SetPWMFrequencyRequest.pin) return _s; } inline const std::string& SetPWMFrequencyRequest::_internal_pin() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.pin_.Get(); + return pin_.Get(); } inline void SetPWMFrequencyRequest::_internal_set_pin(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.pin_.Set(value, GetArena()); + + pin_.Set(value, GetArenaForAllocation()); } inline std::string* SetPWMFrequencyRequest::_internal_mutable_pin() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.pin_.Mutable( GetArena()); + + return pin_.Mutable(GetArenaForAllocation()); } inline std::string* SetPWMFrequencyRequest::release_pin() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.board.v1.SetPWMFrequencyRequest.pin) - return _impl_.pin_.Release(); -} -inline void SetPWMFrequencyRequest::set_allocated_pin(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.pin_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.pin_.IsDefault()) { - _impl_.pin_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return pin_.Release(); +} +inline void SetPWMFrequencyRequest::set_allocated_pin(std::string* pin) { + if (pin != nullptr) { + + } else { + + } + pin_.SetAllocated(pin, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (pin_.IsDefault()) { + pin_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.component.board.v1.SetPWMFrequencyRequest.pin) } // uint64 frequency_hz = 3 [json_name = "frequencyHz"]; inline void SetPWMFrequencyRequest::clear_frequency_hz() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.frequency_hz_ = ::uint64_t{0u}; + frequency_hz_ = uint64_t{0u}; +} +inline uint64_t SetPWMFrequencyRequest::_internal_frequency_hz() const { + return frequency_hz_; } -inline ::uint64_t SetPWMFrequencyRequest::frequency_hz() const { +inline uint64_t SetPWMFrequencyRequest::frequency_hz() const { // @@protoc_insertion_point(field_get:viam.component.board.v1.SetPWMFrequencyRequest.frequency_hz) return _internal_frequency_hz(); } -inline void SetPWMFrequencyRequest::set_frequency_hz(::uint64_t value) { +inline void SetPWMFrequencyRequest::_internal_set_frequency_hz(uint64_t value) { + + frequency_hz_ = value; +} +inline void SetPWMFrequencyRequest::set_frequency_hz(uint64_t value) { _internal_set_frequency_hz(value); // @@protoc_insertion_point(field_set:viam.component.board.v1.SetPWMFrequencyRequest.frequency_hz) } -inline ::uint64_t SetPWMFrequencyRequest::_internal_frequency_hz() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.frequency_hz_; -} -inline void SetPWMFrequencyRequest::_internal_set_frequency_hz(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.frequency_hz_ = value; -} // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool SetPWMFrequencyRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool SetPWMFrequencyRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& SetPWMFrequencyRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& SetPWMFrequencyRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& SetPWMFrequencyRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& SetPWMFrequencyRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.board.v1.SetPWMFrequencyRequest.extra) return _internal_extra(); } -inline void SetPWMFrequencyRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void SetPWMFrequencyRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.board.v1.SetPWMFrequencyRequest.extra) } -inline ::google::protobuf::Struct* SetPWMFrequencyRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetPWMFrequencyRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* SetPWMFrequencyRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetPWMFrequencyRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.board.v1.SetPWMFrequencyRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* SetPWMFrequencyRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetPWMFrequencyRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* SetPWMFrequencyRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetPWMFrequencyRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.board.v1.SetPWMFrequencyRequest.extra) return _msg; } -inline void SetPWMFrequencyRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void SetPWMFrequencyRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.board.v1.SetPWMFrequencyRequest.extra) } @@ -6160,198 +5376,186 @@ inline void SetPWMFrequencyRequest::set_allocated_extra(::google::protobuf::Stru // string board_name = 1 [json_name = "boardName"]; inline void ReadAnalogReaderRequest::clear_board_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.board_name_.ClearToEmpty(); + board_name_.ClearToEmpty(); } -inline const std::string& ReadAnalogReaderRequest::board_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ReadAnalogReaderRequest::board_name() const { // @@protoc_insertion_point(field_get:viam.component.board.v1.ReadAnalogReaderRequest.board_name) return _internal_board_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void ReadAnalogReaderRequest::set_board_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.board_name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ReadAnalogReaderRequest::set_board_name(ArgT0&& arg0, ArgT... args) { + + board_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.board.v1.ReadAnalogReaderRequest.board_name) } -inline std::string* ReadAnalogReaderRequest::mutable_board_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ReadAnalogReaderRequest::mutable_board_name() { std::string* _s = _internal_mutable_board_name(); // @@protoc_insertion_point(field_mutable:viam.component.board.v1.ReadAnalogReaderRequest.board_name) return _s; } inline const std::string& ReadAnalogReaderRequest::_internal_board_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.board_name_.Get(); + return board_name_.Get(); } inline void ReadAnalogReaderRequest::_internal_set_board_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.board_name_.Set(value, GetArena()); + + board_name_.Set(value, GetArenaForAllocation()); } inline std::string* ReadAnalogReaderRequest::_internal_mutable_board_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.board_name_.Mutable( GetArena()); + + return board_name_.Mutable(GetArenaForAllocation()); } inline std::string* ReadAnalogReaderRequest::release_board_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.board.v1.ReadAnalogReaderRequest.board_name) - return _impl_.board_name_.Release(); -} -inline void ReadAnalogReaderRequest::set_allocated_board_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.board_name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.board_name_.IsDefault()) { - _impl_.board_name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return board_name_.Release(); +} +inline void ReadAnalogReaderRequest::set_allocated_board_name(std::string* board_name) { + if (board_name != nullptr) { + + } else { + + } + board_name_.SetAllocated(board_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (board_name_.IsDefault()) { + board_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.component.board.v1.ReadAnalogReaderRequest.board_name) } // string analog_reader_name = 2 [json_name = "analogReaderName"]; inline void ReadAnalogReaderRequest::clear_analog_reader_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.analog_reader_name_.ClearToEmpty(); + analog_reader_name_.ClearToEmpty(); } -inline const std::string& ReadAnalogReaderRequest::analog_reader_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ReadAnalogReaderRequest::analog_reader_name() const { // @@protoc_insertion_point(field_get:viam.component.board.v1.ReadAnalogReaderRequest.analog_reader_name) return _internal_analog_reader_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void ReadAnalogReaderRequest::set_analog_reader_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.analog_reader_name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ReadAnalogReaderRequest::set_analog_reader_name(ArgT0&& arg0, ArgT... args) { + + analog_reader_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.board.v1.ReadAnalogReaderRequest.analog_reader_name) } -inline std::string* ReadAnalogReaderRequest::mutable_analog_reader_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ReadAnalogReaderRequest::mutable_analog_reader_name() { std::string* _s = _internal_mutable_analog_reader_name(); // @@protoc_insertion_point(field_mutable:viam.component.board.v1.ReadAnalogReaderRequest.analog_reader_name) return _s; } inline const std::string& ReadAnalogReaderRequest::_internal_analog_reader_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.analog_reader_name_.Get(); + return analog_reader_name_.Get(); } inline void ReadAnalogReaderRequest::_internal_set_analog_reader_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.analog_reader_name_.Set(value, GetArena()); + + analog_reader_name_.Set(value, GetArenaForAllocation()); } inline std::string* ReadAnalogReaderRequest::_internal_mutable_analog_reader_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.analog_reader_name_.Mutable( GetArena()); + + return analog_reader_name_.Mutable(GetArenaForAllocation()); } inline std::string* ReadAnalogReaderRequest::release_analog_reader_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.board.v1.ReadAnalogReaderRequest.analog_reader_name) - return _impl_.analog_reader_name_.Release(); -} -inline void ReadAnalogReaderRequest::set_allocated_analog_reader_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.analog_reader_name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.analog_reader_name_.IsDefault()) { - _impl_.analog_reader_name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return analog_reader_name_.Release(); +} +inline void ReadAnalogReaderRequest::set_allocated_analog_reader_name(std::string* analog_reader_name) { + if (analog_reader_name != nullptr) { + + } else { + + } + analog_reader_name_.SetAllocated(analog_reader_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (analog_reader_name_.IsDefault()) { + analog_reader_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.component.board.v1.ReadAnalogReaderRequest.analog_reader_name) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool ReadAnalogReaderRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool ReadAnalogReaderRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& ReadAnalogReaderRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& ReadAnalogReaderRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& ReadAnalogReaderRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& ReadAnalogReaderRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.board.v1.ReadAnalogReaderRequest.extra) return _internal_extra(); } -inline void ReadAnalogReaderRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void ReadAnalogReaderRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.board.v1.ReadAnalogReaderRequest.extra) } -inline ::google::protobuf::Struct* ReadAnalogReaderRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* ReadAnalogReaderRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* ReadAnalogReaderRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* ReadAnalogReaderRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.board.v1.ReadAnalogReaderRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* ReadAnalogReaderRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* ReadAnalogReaderRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* ReadAnalogReaderRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* ReadAnalogReaderRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.board.v1.ReadAnalogReaderRequest.extra) return _msg; } -inline void ReadAnalogReaderRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ReadAnalogReaderRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.board.v1.ReadAnalogReaderRequest.extra) } @@ -6361,95 +5565,83 @@ inline void ReadAnalogReaderRequest::set_allocated_extra(::google::protobuf::Str // int32 value = 1 [json_name = "value"]; inline void ReadAnalogReaderResponse::clear_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.value_ = 0; + value_ = 0; +} +inline int32_t ReadAnalogReaderResponse::_internal_value() const { + return value_; } -inline ::int32_t ReadAnalogReaderResponse::value() const { +inline int32_t ReadAnalogReaderResponse::value() const { // @@protoc_insertion_point(field_get:viam.component.board.v1.ReadAnalogReaderResponse.value) return _internal_value(); } -inline void ReadAnalogReaderResponse::set_value(::int32_t value) { +inline void ReadAnalogReaderResponse::_internal_set_value(int32_t value) { + + value_ = value; +} +inline void ReadAnalogReaderResponse::set_value(int32_t value) { _internal_set_value(value); // @@protoc_insertion_point(field_set:viam.component.board.v1.ReadAnalogReaderResponse.value) } -inline ::int32_t ReadAnalogReaderResponse::_internal_value() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.value_; -} -inline void ReadAnalogReaderResponse::_internal_set_value(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.value_ = value; -} // float min_range = 2 [json_name = "minRange"]; inline void ReadAnalogReaderResponse::clear_min_range() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.min_range_ = 0; + min_range_ = 0; +} +inline float ReadAnalogReaderResponse::_internal_min_range() const { + return min_range_; } inline float ReadAnalogReaderResponse::min_range() const { // @@protoc_insertion_point(field_get:viam.component.board.v1.ReadAnalogReaderResponse.min_range) return _internal_min_range(); } +inline void ReadAnalogReaderResponse::_internal_set_min_range(float value) { + + min_range_ = value; +} inline void ReadAnalogReaderResponse::set_min_range(float value) { _internal_set_min_range(value); // @@protoc_insertion_point(field_set:viam.component.board.v1.ReadAnalogReaderResponse.min_range) } -inline float ReadAnalogReaderResponse::_internal_min_range() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.min_range_; -} -inline void ReadAnalogReaderResponse::_internal_set_min_range(float value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.min_range_ = value; -} // float max_range = 3 [json_name = "maxRange"]; inline void ReadAnalogReaderResponse::clear_max_range() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.max_range_ = 0; + max_range_ = 0; +} +inline float ReadAnalogReaderResponse::_internal_max_range() const { + return max_range_; } inline float ReadAnalogReaderResponse::max_range() const { // @@protoc_insertion_point(field_get:viam.component.board.v1.ReadAnalogReaderResponse.max_range) return _internal_max_range(); } +inline void ReadAnalogReaderResponse::_internal_set_max_range(float value) { + + max_range_ = value; +} inline void ReadAnalogReaderResponse::set_max_range(float value) { _internal_set_max_range(value); // @@protoc_insertion_point(field_set:viam.component.board.v1.ReadAnalogReaderResponse.max_range) } -inline float ReadAnalogReaderResponse::_internal_max_range() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.max_range_; -} -inline void ReadAnalogReaderResponse::_internal_set_max_range(float value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.max_range_ = value; -} // float step_size = 4 [json_name = "stepSize"]; inline void ReadAnalogReaderResponse::clear_step_size() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.step_size_ = 0; + step_size_ = 0; +} +inline float ReadAnalogReaderResponse::_internal_step_size() const { + return step_size_; } inline float ReadAnalogReaderResponse::step_size() const { // @@protoc_insertion_point(field_get:viam.component.board.v1.ReadAnalogReaderResponse.step_size) return _internal_step_size(); } +inline void ReadAnalogReaderResponse::_internal_set_step_size(float value) { + + step_size_ = value; +} inline void ReadAnalogReaderResponse::set_step_size(float value) { _internal_set_step_size(value); // @@protoc_insertion_point(field_set:viam.component.board.v1.ReadAnalogReaderResponse.step_size) } -inline float ReadAnalogReaderResponse::_internal_step_size() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.step_size_; -} -inline void ReadAnalogReaderResponse::_internal_set_step_size(float value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.step_size_ = value; -} // ------------------------------------------------------------------- @@ -6457,221 +5649,206 @@ inline void ReadAnalogReaderResponse::_internal_set_step_size(float value) { // string name = 1 [json_name = "name"]; inline void WriteAnalogRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& WriteAnalogRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& WriteAnalogRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.board.v1.WriteAnalogRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void WriteAnalogRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void WriteAnalogRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.board.v1.WriteAnalogRequest.name) } -inline std::string* WriteAnalogRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* WriteAnalogRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.board.v1.WriteAnalogRequest.name) return _s; } inline const std::string& WriteAnalogRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void WriteAnalogRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* WriteAnalogRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* WriteAnalogRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.board.v1.WriteAnalogRequest.name) - return _impl_.name_.Release(); -} -inline void WriteAnalogRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void WriteAnalogRequest::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.board.v1.WriteAnalogRequest.name) } // string pin = 2 [json_name = "pin"]; inline void WriteAnalogRequest::clear_pin() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.pin_.ClearToEmpty(); + pin_.ClearToEmpty(); } -inline const std::string& WriteAnalogRequest::pin() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& WriteAnalogRequest::pin() const { // @@protoc_insertion_point(field_get:viam.component.board.v1.WriteAnalogRequest.pin) return _internal_pin(); } -template -inline PROTOBUF_ALWAYS_INLINE void WriteAnalogRequest::set_pin(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.pin_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void WriteAnalogRequest::set_pin(ArgT0&& arg0, ArgT... args) { + + pin_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.board.v1.WriteAnalogRequest.pin) } -inline std::string* WriteAnalogRequest::mutable_pin() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* WriteAnalogRequest::mutable_pin() { std::string* _s = _internal_mutable_pin(); // @@protoc_insertion_point(field_mutable:viam.component.board.v1.WriteAnalogRequest.pin) return _s; } inline const std::string& WriteAnalogRequest::_internal_pin() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.pin_.Get(); + return pin_.Get(); } inline void WriteAnalogRequest::_internal_set_pin(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.pin_.Set(value, GetArena()); + + pin_.Set(value, GetArenaForAllocation()); } inline std::string* WriteAnalogRequest::_internal_mutable_pin() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.pin_.Mutable( GetArena()); + + return pin_.Mutable(GetArenaForAllocation()); } inline std::string* WriteAnalogRequest::release_pin() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.board.v1.WriteAnalogRequest.pin) - return _impl_.pin_.Release(); -} -inline void WriteAnalogRequest::set_allocated_pin(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.pin_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.pin_.IsDefault()) { - _impl_.pin_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return pin_.Release(); +} +inline void WriteAnalogRequest::set_allocated_pin(std::string* pin) { + if (pin != nullptr) { + + } else { + + } + pin_.SetAllocated(pin, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (pin_.IsDefault()) { + pin_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.component.board.v1.WriteAnalogRequest.pin) } // int32 value = 3 [json_name = "value"]; inline void WriteAnalogRequest::clear_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.value_ = 0; + value_ = 0; +} +inline int32_t WriteAnalogRequest::_internal_value() const { + return value_; } -inline ::int32_t WriteAnalogRequest::value() const { +inline int32_t WriteAnalogRequest::value() const { // @@protoc_insertion_point(field_get:viam.component.board.v1.WriteAnalogRequest.value) return _internal_value(); } -inline void WriteAnalogRequest::set_value(::int32_t value) { +inline void WriteAnalogRequest::_internal_set_value(int32_t value) { + + value_ = value; +} +inline void WriteAnalogRequest::set_value(int32_t value) { _internal_set_value(value); // @@protoc_insertion_point(field_set:viam.component.board.v1.WriteAnalogRequest.value) } -inline ::int32_t WriteAnalogRequest::_internal_value() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.value_; -} -inline void WriteAnalogRequest::_internal_set_value(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.value_ = value; -} // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool WriteAnalogRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool WriteAnalogRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& WriteAnalogRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& WriteAnalogRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& WriteAnalogRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& WriteAnalogRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.board.v1.WriteAnalogRequest.extra) return _internal_extra(); } -inline void WriteAnalogRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void WriteAnalogRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.board.v1.WriteAnalogRequest.extra) } -inline ::google::protobuf::Struct* WriteAnalogRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* WriteAnalogRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* WriteAnalogRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* WriteAnalogRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.board.v1.WriteAnalogRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* WriteAnalogRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* WriteAnalogRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* WriteAnalogRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* WriteAnalogRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.board.v1.WriteAnalogRequest.extra) return _msg; } -inline void WriteAnalogRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void WriteAnalogRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.board.v1.WriteAnalogRequest.extra) } @@ -6685,198 +5862,186 @@ inline void WriteAnalogRequest::set_allocated_extra(::google::protobuf::Struct* // string board_name = 1 [json_name = "boardName"]; inline void GetDigitalInterruptValueRequest::clear_board_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.board_name_.ClearToEmpty(); + board_name_.ClearToEmpty(); } -inline const std::string& GetDigitalInterruptValueRequest::board_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetDigitalInterruptValueRequest::board_name() const { // @@protoc_insertion_point(field_get:viam.component.board.v1.GetDigitalInterruptValueRequest.board_name) return _internal_board_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetDigitalInterruptValueRequest::set_board_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.board_name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetDigitalInterruptValueRequest::set_board_name(ArgT0&& arg0, ArgT... args) { + + board_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.board.v1.GetDigitalInterruptValueRequest.board_name) } -inline std::string* GetDigitalInterruptValueRequest::mutable_board_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetDigitalInterruptValueRequest::mutable_board_name() { std::string* _s = _internal_mutable_board_name(); // @@protoc_insertion_point(field_mutable:viam.component.board.v1.GetDigitalInterruptValueRequest.board_name) return _s; } inline const std::string& GetDigitalInterruptValueRequest::_internal_board_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.board_name_.Get(); + return board_name_.Get(); } inline void GetDigitalInterruptValueRequest::_internal_set_board_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.board_name_.Set(value, GetArena()); + + board_name_.Set(value, GetArenaForAllocation()); } inline std::string* GetDigitalInterruptValueRequest::_internal_mutable_board_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.board_name_.Mutable( GetArena()); + + return board_name_.Mutable(GetArenaForAllocation()); } inline std::string* GetDigitalInterruptValueRequest::release_board_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.board.v1.GetDigitalInterruptValueRequest.board_name) - return _impl_.board_name_.Release(); -} -inline void GetDigitalInterruptValueRequest::set_allocated_board_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.board_name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.board_name_.IsDefault()) { - _impl_.board_name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return board_name_.Release(); +} +inline void GetDigitalInterruptValueRequest::set_allocated_board_name(std::string* board_name) { + if (board_name != nullptr) { + + } else { + + } + board_name_.SetAllocated(board_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (board_name_.IsDefault()) { + board_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.component.board.v1.GetDigitalInterruptValueRequest.board_name) } // string digital_interrupt_name = 2 [json_name = "digitalInterruptName"]; inline void GetDigitalInterruptValueRequest::clear_digital_interrupt_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.digital_interrupt_name_.ClearToEmpty(); + digital_interrupt_name_.ClearToEmpty(); } -inline const std::string& GetDigitalInterruptValueRequest::digital_interrupt_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetDigitalInterruptValueRequest::digital_interrupt_name() const { // @@protoc_insertion_point(field_get:viam.component.board.v1.GetDigitalInterruptValueRequest.digital_interrupt_name) return _internal_digital_interrupt_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetDigitalInterruptValueRequest::set_digital_interrupt_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.digital_interrupt_name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetDigitalInterruptValueRequest::set_digital_interrupt_name(ArgT0&& arg0, ArgT... args) { + + digital_interrupt_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.board.v1.GetDigitalInterruptValueRequest.digital_interrupt_name) } -inline std::string* GetDigitalInterruptValueRequest::mutable_digital_interrupt_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetDigitalInterruptValueRequest::mutable_digital_interrupt_name() { std::string* _s = _internal_mutable_digital_interrupt_name(); // @@protoc_insertion_point(field_mutable:viam.component.board.v1.GetDigitalInterruptValueRequest.digital_interrupt_name) return _s; } inline const std::string& GetDigitalInterruptValueRequest::_internal_digital_interrupt_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.digital_interrupt_name_.Get(); + return digital_interrupt_name_.Get(); } inline void GetDigitalInterruptValueRequest::_internal_set_digital_interrupt_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.digital_interrupt_name_.Set(value, GetArena()); + + digital_interrupt_name_.Set(value, GetArenaForAllocation()); } inline std::string* GetDigitalInterruptValueRequest::_internal_mutable_digital_interrupt_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.digital_interrupt_name_.Mutable( GetArena()); + + return digital_interrupt_name_.Mutable(GetArenaForAllocation()); } inline std::string* GetDigitalInterruptValueRequest::release_digital_interrupt_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.board.v1.GetDigitalInterruptValueRequest.digital_interrupt_name) - return _impl_.digital_interrupt_name_.Release(); -} -inline void GetDigitalInterruptValueRequest::set_allocated_digital_interrupt_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.digital_interrupt_name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.digital_interrupt_name_.IsDefault()) { - _impl_.digital_interrupt_name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return digital_interrupt_name_.Release(); +} +inline void GetDigitalInterruptValueRequest::set_allocated_digital_interrupt_name(std::string* digital_interrupt_name) { + if (digital_interrupt_name != nullptr) { + + } else { + + } + digital_interrupt_name_.SetAllocated(digital_interrupt_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (digital_interrupt_name_.IsDefault()) { + digital_interrupt_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.component.board.v1.GetDigitalInterruptValueRequest.digital_interrupt_name) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetDigitalInterruptValueRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool GetDigitalInterruptValueRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& GetDigitalInterruptValueRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetDigitalInterruptValueRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& GetDigitalInterruptValueRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetDigitalInterruptValueRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.board.v1.GetDigitalInterruptValueRequest.extra) return _internal_extra(); } -inline void GetDigitalInterruptValueRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void GetDigitalInterruptValueRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.board.v1.GetDigitalInterruptValueRequest.extra) } -inline ::google::protobuf::Struct* GetDigitalInterruptValueRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetDigitalInterruptValueRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* GetDigitalInterruptValueRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetDigitalInterruptValueRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.board.v1.GetDigitalInterruptValueRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* GetDigitalInterruptValueRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetDigitalInterruptValueRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* GetDigitalInterruptValueRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetDigitalInterruptValueRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.board.v1.GetDigitalInterruptValueRequest.extra) return _msg; } -inline void GetDigitalInterruptValueRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetDigitalInterruptValueRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.board.v1.GetDigitalInterruptValueRequest.extra) } @@ -6886,26 +6051,23 @@ inline void GetDigitalInterruptValueRequest::set_allocated_extra(::google::proto // int64 value = 1 [json_name = "value"]; inline void GetDigitalInterruptValueResponse::clear_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.value_ = ::int64_t{0}; + value_ = int64_t{0}; +} +inline int64_t GetDigitalInterruptValueResponse::_internal_value() const { + return value_; } -inline ::int64_t GetDigitalInterruptValueResponse::value() const { +inline int64_t GetDigitalInterruptValueResponse::value() const { // @@protoc_insertion_point(field_get:viam.component.board.v1.GetDigitalInterruptValueResponse.value) return _internal_value(); } -inline void GetDigitalInterruptValueResponse::set_value(::int64_t value) { +inline void GetDigitalInterruptValueResponse::_internal_set_value(int64_t value) { + + value_ = value; +} +inline void GetDigitalInterruptValueResponse::set_value(int64_t value) { _internal_set_value(value); // @@protoc_insertion_point(field_set:viam.component.board.v1.GetDigitalInterruptValueResponse.value) } -inline ::int64_t GetDigitalInterruptValueResponse::_internal_value() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.value_; -} -inline void GetDigitalInterruptValueResponse::_internal_set_value(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.value_ = value; -} // ------------------------------------------------------------------- @@ -6913,246 +6075,211 @@ inline void GetDigitalInterruptValueResponse::_internal_set_value(::int64_t valu // string name = 1 [json_name = "name"]; inline void StreamTicksRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& StreamTicksRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& StreamTicksRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.board.v1.StreamTicksRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void StreamTicksRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void StreamTicksRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.board.v1.StreamTicksRequest.name) } -inline std::string* StreamTicksRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* StreamTicksRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.board.v1.StreamTicksRequest.name) return _s; } inline const std::string& StreamTicksRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void StreamTicksRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* StreamTicksRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* StreamTicksRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.board.v1.StreamTicksRequest.name) - return _impl_.name_.Release(); -} -inline void StreamTicksRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void StreamTicksRequest::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.board.v1.StreamTicksRequest.name) } // repeated string pin_names = 2 [json_name = "pinNames"]; inline int StreamTicksRequest::_internal_pin_names_size() const { - return _internal_pin_names().size(); + return pin_names_.size(); } inline int StreamTicksRequest::pin_names_size() const { return _internal_pin_names_size(); } inline void StreamTicksRequest::clear_pin_names() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.pin_names_.Clear(); + pin_names_.Clear(); } -inline std::string* StreamTicksRequest::add_pin_names() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_pin_names()->Add(); +inline std::string* StreamTicksRequest::add_pin_names() { + std::string* _s = _internal_add_pin_names(); // @@protoc_insertion_point(field_add_mutable:viam.component.board.v1.StreamTicksRequest.pin_names) return _s; } -inline const std::string& StreamTicksRequest::pin_names(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& StreamTicksRequest::_internal_pin_names(int index) const { + return pin_names_.Get(index); +} +inline const std::string& StreamTicksRequest::pin_names(int index) const { // @@protoc_insertion_point(field_get:viam.component.board.v1.StreamTicksRequest.pin_names) - return _internal_pin_names().Get(index); + return _internal_pin_names(index); } -inline std::string* StreamTicksRequest::mutable_pin_names(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* StreamTicksRequest::mutable_pin_names(int index) { // @@protoc_insertion_point(field_mutable:viam.component.board.v1.StreamTicksRequest.pin_names) - return _internal_mutable_pin_names()->Mutable(index); + return pin_names_.Mutable(index); } inline void StreamTicksRequest::set_pin_names(int index, const std::string& value) { - _internal_mutable_pin_names()->Mutable(index)->assign(value); + pin_names_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set:viam.component.board.v1.StreamTicksRequest.pin_names) } inline void StreamTicksRequest::set_pin_names(int index, std::string&& value) { - _internal_mutable_pin_names()->Mutable(index)->assign(std::move(value)); + pin_names_.Mutable(index)->assign(std::move(value)); // @@protoc_insertion_point(field_set:viam.component.board.v1.StreamTicksRequest.pin_names) } inline void StreamTicksRequest::set_pin_names(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_pin_names()->Mutable(index)->assign(value); + GOOGLE_DCHECK(value != nullptr); + pin_names_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:viam.component.board.v1.StreamTicksRequest.pin_names) } -inline void StreamTicksRequest::set_pin_names(int index, const char* value, - std::size_t size) { - _internal_mutable_pin_names()->Mutable(index)->assign( - reinterpret_cast(value), size); +inline void StreamTicksRequest::set_pin_names(int index, const char* value, size_t size) { + pin_names_.Mutable(index)->assign( + reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:viam.component.board.v1.StreamTicksRequest.pin_names) } -inline void StreamTicksRequest::set_pin_names(int index, absl::string_view value) { - _internal_mutable_pin_names()->Mutable(index)->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_set_string_piece:viam.component.board.v1.StreamTicksRequest.pin_names) +inline std::string* StreamTicksRequest::_internal_add_pin_names() { + return pin_names_.Add(); } inline void StreamTicksRequest::add_pin_names(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_pin_names()->Add()->assign(value); + pin_names_.Add()->assign(value); // @@protoc_insertion_point(field_add:viam.component.board.v1.StreamTicksRequest.pin_names) } inline void StreamTicksRequest::add_pin_names(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_pin_names()->Add(std::move(value)); + pin_names_.Add(std::move(value)); // @@protoc_insertion_point(field_add:viam.component.board.v1.StreamTicksRequest.pin_names) } inline void StreamTicksRequest::add_pin_names(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_pin_names()->Add()->assign(value); + GOOGLE_DCHECK(value != nullptr); + pin_names_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:viam.component.board.v1.StreamTicksRequest.pin_names) } -inline void StreamTicksRequest::add_pin_names(const char* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_pin_names()->Add()->assign( - reinterpret_cast(value), size); +inline void StreamTicksRequest::add_pin_names(const char* value, size_t size) { + pin_names_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:viam.component.board.v1.StreamTicksRequest.pin_names) } -inline void StreamTicksRequest::add_pin_names(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_pin_names()->Add()->assign(value.data(), value.size()); - // @@protoc_insertion_point(field_add_string_piece:viam.component.board.v1.StreamTicksRequest.pin_names) -} -inline const ::google::protobuf::RepeatedPtrField& -StreamTicksRequest::pin_names() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +StreamTicksRequest::pin_names() const { // @@protoc_insertion_point(field_list:viam.component.board.v1.StreamTicksRequest.pin_names) - return _internal_pin_names(); + return pin_names_; } -inline ::google::protobuf::RepeatedPtrField* -StreamTicksRequest::mutable_pin_names() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +StreamTicksRequest::mutable_pin_names() { // @@protoc_insertion_point(field_mutable_list:viam.component.board.v1.StreamTicksRequest.pin_names) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_pin_names(); -} -inline const ::google::protobuf::RepeatedPtrField& -StreamTicksRequest::_internal_pin_names() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.pin_names_; -} -inline ::google::protobuf::RepeatedPtrField* -StreamTicksRequest::_internal_mutable_pin_names() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.pin_names_; + return &pin_names_; } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool StreamTicksRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool StreamTicksRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& StreamTicksRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& StreamTicksRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& StreamTicksRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& StreamTicksRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.board.v1.StreamTicksRequest.extra) return _internal_extra(); } -inline void StreamTicksRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void StreamTicksRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.board.v1.StreamTicksRequest.extra) } -inline ::google::protobuf::Struct* StreamTicksRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* StreamTicksRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* StreamTicksRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* StreamTicksRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.board.v1.StreamTicksRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* StreamTicksRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* StreamTicksRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* StreamTicksRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* StreamTicksRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.board.v1.StreamTicksRequest.extra) return _msg; } -inline void StreamTicksRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void StreamTicksRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.board.v1.StreamTicksRequest.extra) } @@ -7162,102 +6289,93 @@ inline void StreamTicksRequest::set_allocated_extra(::google::protobuf::Struct* // string pin_name = 1 [json_name = "pinName"]; inline void StreamTicksResponse::clear_pin_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.pin_name_.ClearToEmpty(); + pin_name_.ClearToEmpty(); } -inline const std::string& StreamTicksResponse::pin_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& StreamTicksResponse::pin_name() const { // @@protoc_insertion_point(field_get:viam.component.board.v1.StreamTicksResponse.pin_name) return _internal_pin_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void StreamTicksResponse::set_pin_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.pin_name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void StreamTicksResponse::set_pin_name(ArgT0&& arg0, ArgT... args) { + + pin_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.board.v1.StreamTicksResponse.pin_name) } -inline std::string* StreamTicksResponse::mutable_pin_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* StreamTicksResponse::mutable_pin_name() { std::string* _s = _internal_mutable_pin_name(); // @@protoc_insertion_point(field_mutable:viam.component.board.v1.StreamTicksResponse.pin_name) return _s; } inline const std::string& StreamTicksResponse::_internal_pin_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.pin_name_.Get(); + return pin_name_.Get(); } inline void StreamTicksResponse::_internal_set_pin_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.pin_name_.Set(value, GetArena()); + + pin_name_.Set(value, GetArenaForAllocation()); } inline std::string* StreamTicksResponse::_internal_mutable_pin_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.pin_name_.Mutable( GetArena()); + + return pin_name_.Mutable(GetArenaForAllocation()); } inline std::string* StreamTicksResponse::release_pin_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.board.v1.StreamTicksResponse.pin_name) - return _impl_.pin_name_.Release(); -} -inline void StreamTicksResponse::set_allocated_pin_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.pin_name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.pin_name_.IsDefault()) { - _impl_.pin_name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return pin_name_.Release(); +} +inline void StreamTicksResponse::set_allocated_pin_name(std::string* pin_name) { + if (pin_name != nullptr) { + + } else { + + } + pin_name_.SetAllocated(pin_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (pin_name_.IsDefault()) { + pin_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.component.board.v1.StreamTicksResponse.pin_name) } // uint64 time = 2 [json_name = "time"]; inline void StreamTicksResponse::clear_time() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.time_ = ::uint64_t{0u}; + time_ = uint64_t{0u}; +} +inline uint64_t StreamTicksResponse::_internal_time() const { + return time_; } -inline ::uint64_t StreamTicksResponse::time() const { +inline uint64_t StreamTicksResponse::time() const { // @@protoc_insertion_point(field_get:viam.component.board.v1.StreamTicksResponse.time) return _internal_time(); } -inline void StreamTicksResponse::set_time(::uint64_t value) { +inline void StreamTicksResponse::_internal_set_time(uint64_t value) { + + time_ = value; +} +inline void StreamTicksResponse::set_time(uint64_t value) { _internal_set_time(value); // @@protoc_insertion_point(field_set:viam.component.board.v1.StreamTicksResponse.time) } -inline ::uint64_t StreamTicksResponse::_internal_time() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.time_; -} -inline void StreamTicksResponse::_internal_set_time(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.time_ = value; -} // bool high = 3 [json_name = "high"]; inline void StreamTicksResponse::clear_high() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.high_ = false; + high_ = false; +} +inline bool StreamTicksResponse::_internal_high() const { + return high_; } inline bool StreamTicksResponse::high() const { // @@protoc_insertion_point(field_get:viam.component.board.v1.StreamTicksResponse.high) return _internal_high(); } +inline void StreamTicksResponse::_internal_set_high(bool value) { + + high_ = value; +} inline void StreamTicksResponse::set_high(bool value) { _internal_set_high(value); // @@protoc_insertion_point(field_set:viam.component.board.v1.StreamTicksResponse.high) } -inline bool StreamTicksResponse::_internal_high() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.high_; -} -inline void StreamTicksResponse::_internal_set_high(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.high_ = value; -} // ------------------------------------------------------------------- @@ -7265,259 +6383,243 @@ inline void StreamTicksResponse::_internal_set_high(bool value) { // string name = 1 [json_name = "name"]; inline void SetPowerModeRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& SetPowerModeRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& SetPowerModeRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.board.v1.SetPowerModeRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void SetPowerModeRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void SetPowerModeRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.board.v1.SetPowerModeRequest.name) } -inline std::string* SetPowerModeRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* SetPowerModeRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.board.v1.SetPowerModeRequest.name) return _s; } inline const std::string& SetPowerModeRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void SetPowerModeRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* SetPowerModeRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* SetPowerModeRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.board.v1.SetPowerModeRequest.name) - return _impl_.name_.Release(); -} -inline void SetPowerModeRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void SetPowerModeRequest::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.board.v1.SetPowerModeRequest.name) } // .viam.component.board.v1.PowerMode power_mode = 2 [json_name = "powerMode"]; inline void SetPowerModeRequest::clear_power_mode() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.power_mode_ = 0; + power_mode_ = 0; +} +inline ::viam::component::board::v1::PowerMode SetPowerModeRequest::_internal_power_mode() const { + return static_cast< ::viam::component::board::v1::PowerMode >(power_mode_); } inline ::viam::component::board::v1::PowerMode SetPowerModeRequest::power_mode() const { // @@protoc_insertion_point(field_get:viam.component.board.v1.SetPowerModeRequest.power_mode) return _internal_power_mode(); } +inline void SetPowerModeRequest::_internal_set_power_mode(::viam::component::board::v1::PowerMode value) { + + power_mode_ = value; +} inline void SetPowerModeRequest::set_power_mode(::viam::component::board::v1::PowerMode value) { _internal_set_power_mode(value); // @@protoc_insertion_point(field_set:viam.component.board.v1.SetPowerModeRequest.power_mode) } -inline ::viam::component::board::v1::PowerMode SetPowerModeRequest::_internal_power_mode() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::viam::component::board::v1::PowerMode>(_impl_.power_mode_); -} -inline void SetPowerModeRequest::_internal_set_power_mode(::viam::component::board::v1::PowerMode value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.power_mode_ = value; -} // optional .google.protobuf.Duration duration = 3 [json_name = "duration"]; -inline bool SetPowerModeRequest::has_duration() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.duration_ != nullptr); +inline bool SetPowerModeRequest::_internal_has_duration() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || duration_ != nullptr); return value; } -inline const ::google::protobuf::Duration& SetPowerModeRequest::_internal_duration() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Duration* p = _impl_.duration_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Duration_default_instance_); +inline bool SetPowerModeRequest::has_duration() const { + return _internal_has_duration(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Duration& SetPowerModeRequest::_internal_duration() const { + const ::PROTOBUF_NAMESPACE_ID::Duration* p = duration_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Duration_default_instance_); } -inline const ::google::protobuf::Duration& SetPowerModeRequest::duration() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Duration& SetPowerModeRequest::duration() const { // @@protoc_insertion_point(field_get:viam.component.board.v1.SetPowerModeRequest.duration) return _internal_duration(); } -inline void SetPowerModeRequest::unsafe_arena_set_allocated_duration(::google::protobuf::Duration* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.duration_); +inline void SetPowerModeRequest::unsafe_arena_set_allocated_duration( + ::PROTOBUF_NAMESPACE_ID::Duration* duration) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(duration_); } - _impl_.duration_ = reinterpret_cast<::google::protobuf::Duration*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + duration_ = duration; + if (duration) { + _has_bits_[0] |= 0x00000001u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; + _has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.board.v1.SetPowerModeRequest.duration) } -inline ::google::protobuf::Duration* SetPowerModeRequest::release_duration() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Duration* released = _impl_.duration_; - _impl_.duration_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Duration* SetPowerModeRequest::release_duration() { + _has_bits_[0] &= ~0x00000001u; + ::PROTOBUF_NAMESPACE_ID::Duration* temp = duration_; + duration_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Duration* SetPowerModeRequest::unsafe_arena_release_duration() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Duration* SetPowerModeRequest::unsafe_arena_release_duration() { // @@protoc_insertion_point(field_release:viam.component.board.v1.SetPowerModeRequest.duration) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Duration* temp = _impl_.duration_; - _impl_.duration_ = nullptr; + _has_bits_[0] &= ~0x00000001u; + ::PROTOBUF_NAMESPACE_ID::Duration* temp = duration_; + duration_ = nullptr; return temp; } -inline ::google::protobuf::Duration* SetPowerModeRequest::_internal_mutable_duration() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.duration_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArena()); - _impl_.duration_ = reinterpret_cast<::google::protobuf::Duration*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Duration* SetPowerModeRequest::_internal_mutable_duration() { + _has_bits_[0] |= 0x00000001u; + if (duration_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Duration>(GetArenaForAllocation()); + duration_ = p; } - return _impl_.duration_; + return duration_; } -inline ::google::protobuf::Duration* SetPowerModeRequest::mutable_duration() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Duration* _msg = _internal_mutable_duration(); +inline ::PROTOBUF_NAMESPACE_ID::Duration* SetPowerModeRequest::mutable_duration() { + ::PROTOBUF_NAMESPACE_ID::Duration* _msg = _internal_mutable_duration(); // @@protoc_insertion_point(field_mutable:viam.component.board.v1.SetPowerModeRequest.duration) return _msg; } -inline void SetPowerModeRequest::set_allocated_duration(::google::protobuf::Duration* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void SetPowerModeRequest::set_allocated_duration(::PROTOBUF_NAMESPACE_ID::Duration* duration) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.duration_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(duration_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (duration) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(duration)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + duration = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, duration, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + _has_bits_[0] |= 0x00000001u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; + _has_bits_[0] &= ~0x00000001u; } - - _impl_.duration_ = reinterpret_cast<::google::protobuf::Duration*>(value); + duration_ = duration; // @@protoc_insertion_point(field_set_allocated:viam.component.board.v1.SetPowerModeRequest.duration) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool SetPowerModeRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool SetPowerModeRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& SetPowerModeRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& SetPowerModeRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& SetPowerModeRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& SetPowerModeRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.board.v1.SetPowerModeRequest.extra) return _internal_extra(); } -inline void SetPowerModeRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void SetPowerModeRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.board.v1.SetPowerModeRequest.extra) } -inline ::google::protobuf::Struct* SetPowerModeRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetPowerModeRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* SetPowerModeRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetPowerModeRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.board.v1.SetPowerModeRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* SetPowerModeRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetPowerModeRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* SetPowerModeRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetPowerModeRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.board.v1.SetPowerModeRequest.extra) return _msg; } -inline void SetPowerModeRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void SetPowerModeRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.board.v1.SetPowerModeRequest.extra) } @@ -7526,31 +6628,75 @@ inline void SetPowerModeRequest::set_allocated_extra(::google::protobuf::Struct* // SetPowerModeResponse #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) + } // namespace v1 } // namespace board } // namespace component } // namespace viam +PROTOBUF_NAMESPACE_OPEN -namespace google { -namespace protobuf { - +template <> struct is_proto_enum< ::viam::component::board::v1::PowerMode> : ::std::true_type {}; template <> -struct is_proto_enum<::viam::component::board::v1::PowerMode> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::viam::component::board::v1::PowerMode>() { +inline const EnumDescriptor* GetEnumDescriptor< ::viam::component::board::v1::PowerMode>() { return ::viam::component::board::v1::PowerMode_descriptor(); } -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_component_2fboard_2fv1_2fboard_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_component_2fboard_2fv1_2fboard_2eproto diff --git a/src/viam/api/component/button/v1/button.grpc.pb.cc b/src/viam/api/component/button/v1/button.grpc.pb.cc new file mode 100644 index 000000000..6fbf49dc1 --- /dev/null +++ b/src/viam/api/component/button/v1/button.grpc.pb.cc @@ -0,0 +1,144 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: component/button/v1/button.proto + +#include "component/button/v1/button.pb.h" +#include "component/button/v1/button.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace viam { +namespace component { +namespace button { +namespace v1 { + +static const char* ButtonService_method_names[] = { + "/viam.component.button.v1.ButtonService/Push", + "/viam.component.button.v1.ButtonService/DoCommand", +}; + +std::unique_ptr< ButtonService::Stub> ButtonService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< ButtonService::Stub> stub(new ButtonService::Stub(channel)); + return stub; +} + +ButtonService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_Push_(ButtonService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DoCommand_(ButtonService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status ButtonService::Stub::Push(::grpc::ClientContext* context, const ::viam::component::button::v1::PushRequest& request, ::viam::component::button::v1::PushResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_Push_, context, request, response); +} + +void ButtonService::Stub::experimental_async::Push(::grpc::ClientContext* context, const ::viam::component::button::v1::PushRequest* request, ::viam::component::button::v1::PushResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Push_, context, request, response, std::move(f)); +} + +void ButtonService::Stub::experimental_async::Push(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::button::v1::PushResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Push_, context, request, response, std::move(f)); +} + +void ButtonService::Stub::experimental_async::Push(::grpc::ClientContext* context, const ::viam::component::button::v1::PushRequest* request, ::viam::component::button::v1::PushResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Push_, context, request, response, reactor); +} + +void ButtonService::Stub::experimental_async::Push(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::button::v1::PushResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Push_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::button::v1::PushResponse>* ButtonService::Stub::AsyncPushRaw(::grpc::ClientContext* context, const ::viam::component::button::v1::PushRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::button::v1::PushResponse>::Create(channel_.get(), cq, rpcmethod_Push_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::button::v1::PushResponse>* ButtonService::Stub::PrepareAsyncPushRaw(::grpc::ClientContext* context, const ::viam::component::button::v1::PushRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::button::v1::PushResponse>::Create(channel_.get(), cq, rpcmethod_Push_, context, request, false); +} + +::grpc::Status ButtonService::Stub::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::viam::common::v1::DoCommandResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DoCommand_, context, request, response); +} + +void ButtonService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); +} + +void ButtonService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); +} + +void ButtonService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); +} + +void ButtonService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* ButtonService::Stub::AsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::DoCommandResponse>::Create(channel_.get(), cq, rpcmethod_DoCommand_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* ButtonService::Stub::PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::DoCommandResponse>::Create(channel_.get(), cq, rpcmethod_DoCommand_, context, request, false); +} + +ButtonService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + ButtonService_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< ButtonService::Service, ::viam::component::button::v1::PushRequest, ::viam::component::button::v1::PushResponse>( + [](ButtonService::Service* service, + ::grpc_impl::ServerContext* ctx, + const ::viam::component::button::v1::PushRequest* req, + ::viam::component::button::v1::PushResponse* resp) { + return service->Push(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + ButtonService_method_names[1], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< ButtonService::Service, ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( + [](ButtonService::Service* service, + ::grpc_impl::ServerContext* ctx, + const ::viam::common::v1::DoCommandRequest* req, + ::viam::common::v1::DoCommandResponse* resp) { + return service->DoCommand(ctx, req, resp); + }, this))); +} + +ButtonService::Service::~Service() { +} + +::grpc::Status ButtonService::Service::Push(::grpc::ServerContext* context, const ::viam::component::button::v1::PushRequest* request, ::viam::component::button::v1::PushResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status ButtonService::Service::DoCommand(::grpc::ServerContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +} // namespace viam +} // namespace component +} // namespace button +} // namespace v1 + diff --git a/src/viam/api/component/button/v1/button.grpc.pb.h b/src/viam/api/component/button/v1/button.grpc.pb.h new file mode 100644 index 000000000..786ffde84 --- /dev/null +++ b/src/viam/api/component/button/v1/button.grpc.pb.h @@ -0,0 +1,530 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: component/button/v1/button.proto +#ifndef GRPC_component_2fbutton_2fv1_2fbutton_2eproto__INCLUDED +#define GRPC_component_2fbutton_2fv1_2fbutton_2eproto__INCLUDED + +#include "component/button/v1/button.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace viam { +namespace component { +namespace button { +namespace v1 { + +// A ButtonService services buttons associated with a machine +class ButtonService final { + public: + static constexpr char const* service_full_name() { + return "viam.component.button.v1.ButtonService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + // Pushes a button + virtual ::grpc::Status Push(::grpc::ClientContext* context, const ::viam::component::button::v1::PushRequest& request, ::viam::component::button::v1::PushResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::button::v1::PushResponse>> AsyncPush(::grpc::ClientContext* context, const ::viam::component::button::v1::PushRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::button::v1::PushResponse>>(AsyncPushRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::button::v1::PushResponse>> PrepareAsyncPush(::grpc::ClientContext* context, const ::viam::component::button::v1::PushRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::button::v1::PushResponse>>(PrepareAsyncPushRaw(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) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::DoCommandResponse>>(AsyncDoCommandRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::DoCommandResponse>> PrepareAsyncDoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::DoCommandResponse>>(PrepareAsyncDoCommandRaw(context, request, cq)); + } + class experimental_async_interface { + public: + virtual ~experimental_async_interface() {} + // Pushes a button + virtual void Push(::grpc::ClientContext* context, const ::viam::component::button::v1::PushRequest* request, ::viam::component::button::v1::PushResponse* response, std::function) = 0; + virtual void Push(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::button::v1::PushResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void Push(::grpc::ClientContext* context, const ::viam::component::button::v1::PushRequest* request, ::viam::component::button::v1::PushResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void Push(::grpc::ClientContext* context, const ::viam::component::button::v1::PushRequest* request, ::viam::component::button::v1::PushResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void Push(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::button::v1::PushResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void Push(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::button::v1::PushResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + // 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 ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + }; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef class experimental_async_interface async_interface; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + async_interface* async() { return experimental_async(); } + #endif + virtual class experimental_async_interface* experimental_async() { return nullptr; } + private: + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::button::v1::PushResponse>* AsyncPushRaw(::grpc::ClientContext* context, const ::viam::component::button::v1::PushRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::button::v1::PushResponse>* PrepareAsyncPushRaw(::grpc::ClientContext* context, const ::viam::component::button::v1::PushRequest& 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; + }; + class Stub final : public StubInterface { + public: + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); + ::grpc::Status Push(::grpc::ClientContext* context, const ::viam::component::button::v1::PushRequest& request, ::viam::component::button::v1::PushResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::button::v1::PushResponse>> AsyncPush(::grpc::ClientContext* context, const ::viam::component::button::v1::PushRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::button::v1::PushResponse>>(AsyncPushRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::button::v1::PushResponse>> PrepareAsyncPush(::grpc::ClientContext* context, const ::viam::component::button::v1::PushRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::button::v1::PushResponse>>(PrepareAsyncPushRaw(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)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>> PrepareAsyncDoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>>(PrepareAsyncDoCommandRaw(context, request, cq)); + } + class experimental_async final : + public StubInterface::experimental_async_interface { + public: + void Push(::grpc::ClientContext* context, const ::viam::component::button::v1::PushRequest* request, ::viam::component::button::v1::PushResponse* response, std::function) override; + void Push(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::button::v1::PushResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void Push(::grpc::ClientContext* context, const ::viam::component::button::v1::PushRequest* request, ::viam::component::button::v1::PushResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void Push(::grpc::ClientContext* context, const ::viam::component::button::v1::PushRequest* request, ::viam::component::button::v1::PushResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void Push(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::button::v1::PushResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void Push(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::button::v1::PushResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + 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 ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + private: + friend class Stub; + explicit experimental_async(Stub* stub): stub_(stub) { } + Stub* stub() { return stub_; } + Stub* stub_; + }; + class experimental_async_interface* experimental_async() override { return &async_stub_; } + + private: + std::shared_ptr< ::grpc::ChannelInterface> channel_; + class experimental_async async_stub_{this}; + ::grpc::ClientAsyncResponseReader< ::viam::component::button::v1::PushResponse>* AsyncPushRaw(::grpc::ClientContext* context, const ::viam::component::button::v1::PushRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::button::v1::PushResponse>* PrepareAsyncPushRaw(::grpc::ClientContext* context, const ::viam::component::button::v1::PushRequest& 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_Push_; + const ::grpc::internal::RpcMethod rpcmethod_DoCommand_; + }; + static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + + class Service : public ::grpc::Service { + public: + Service(); + virtual ~Service(); + // Pushes a button + virtual ::grpc::Status Push(::grpc::ServerContext* context, const ::viam::component::button::v1::PushRequest* request, ::viam::component::button::v1::PushResponse* response); + // DoCommand sends/receives arbitrary commands + virtual ::grpc::Status DoCommand(::grpc::ServerContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response); + }; + template + class WithAsyncMethod_Push : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_Push() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_Push() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Push(::grpc::ServerContext* /*context*/, const ::viam::component::button::v1::PushRequest* /*request*/, ::viam::component::button::v1::PushResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestPush(::grpc::ServerContext* context, ::viam::component::button::v1::PushRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::button::v1::PushResponse>* 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); + } + }; + template + class WithAsyncMethod_DoCommand : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_DoCommand() { + ::grpc::Service::MarkMethodAsync(1); + } + ~WithAsyncMethod_DoCommand() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DoCommand(::grpc::ServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) override { + abort(); + 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(1, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_Push > AsyncService; + template + class ExperimentalWithCallbackMethod_Push : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithCallbackMethod_Push() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::button::v1::PushRequest, ::viam::component::button::v1::PushResponse>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::button::v1::PushRequest* request, ::viam::component::button::v1::PushResponse* response) { return this->Push(context, request, response); }));} + void SetMessageAllocatorFor_Push( + ::grpc::experimental::MessageAllocator< ::viam::component::button::v1::PushRequest, ::viam::component::button::v1::PushResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(0); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::button::v1::PushRequest, ::viam::component::button::v1::PushResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_Push() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Push(::grpc::ServerContext* /*context*/, const ::viam::component::button::v1::PushRequest* /*request*/, ::viam::component::button::v1::PushResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* Push( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::button::v1::PushRequest* /*request*/, ::viam::component::button::v1::PushResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* Push( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::button::v1::PushRequest* /*request*/, ::viam::component::button::v1::PushResponse* /*response*/) + #endif + { return nullptr; } + }; + template + class ExperimentalWithCallbackMethod_DoCommand : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithCallbackMethod_DoCommand() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response) { return this->DoCommand(context, request, response); }));} + void SetMessageAllocatorFor_DoCommand( + ::grpc::experimental::MessageAllocator< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(1); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_DoCommand() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DoCommand(::grpc::ServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* DoCommand( + ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DoCommand( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) + #endif + { return nullptr; } + }; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef ExperimentalWithCallbackMethod_Push > CallbackService; + #endif + + typedef ExperimentalWithCallbackMethod_Push > ExperimentalCallbackService; + template + class WithGenericMethod_Push : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_Push() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_Push() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Push(::grpc::ServerContext* /*context*/, const ::viam::component::button::v1::PushRequest* /*request*/, ::viam::component::button::v1::PushResponse* /*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(1); + } + ~WithGenericMethod_DoCommand() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DoCommand(::grpc::ServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_Push : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_Push() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_Push() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Push(::grpc::ServerContext* /*context*/, const ::viam::component::button::v1::PushRequest* /*request*/, ::viam::component::button::v1::PushResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestPush(::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(0, 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(1); + } + ~WithRawMethod_DoCommand() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DoCommand(::grpc::ServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) override { + abort(); + 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(1, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class ExperimentalWithRawCallbackMethod_Push : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithRawCallbackMethod_Push() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Push(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_Push() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Push(::grpc::ServerContext* /*context*/, const ::viam::component::button::v1::PushRequest* /*request*/, ::viam::component::button::v1::PushResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* Push( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* Push( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } + }; + template + class ExperimentalWithRawCallbackMethod_DoCommand : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithRawCallbackMethod_DoCommand() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DoCommand(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_DoCommand() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DoCommand(::grpc::ServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* DoCommand( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DoCommand( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } + }; + template + class WithStreamedUnaryMethod_Push : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_Push() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::button::v1::PushRequest, ::viam::component::button::v1::PushResponse>( + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< + ::viam::component::button::v1::PushRequest, ::viam::component::button::v1::PushResponse>* streamer) { + return this->StreamedPush(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_Push() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status Push(::grpc::ServerContext* /*context*/, const ::viam::component::button::v1::PushRequest* /*request*/, ::viam::component::button::v1::PushResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedPush(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::button::v1::PushRequest,::viam::component::button::v1::PushResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_DoCommand : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_DoCommand() { + ::grpc::Service::MarkMethodStreamed(1, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< + ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* streamer) { + return this->StreamedDoCommand(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_DoCommand() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status DoCommand(::grpc::ServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // 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_Push > StreamedUnaryService; + typedef Service SplitStreamedService; + typedef WithStreamedUnaryMethod_Push > StreamedService; +}; + +} // namespace v1 +} // namespace button +} // namespace component +} // namespace viam + + +#endif // GRPC_component_2fbutton_2fv1_2fbutton_2eproto__INCLUDED diff --git a/src/viam/api/component/button/v1/button.pb.cc b/src/viam/api/component/button/v1/button.pb.cc new file mode 100644 index 000000000..5fb948332 --- /dev/null +++ b/src/viam/api/component/button/v1/button.pb.cc @@ -0,0 +1,427 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: component/button/v1/button.proto + +#include "component/button/v1/button.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +PROTOBUF_PRAGMA_INIT_SEG + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + +namespace viam { +namespace component { +namespace button { +namespace v1 { +PROTOBUF_CONSTEXPR PushRequest::PushRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} +struct PushRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR PushRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~PushRequestDefaultTypeInternal() {} + union { + PushRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PushRequestDefaultTypeInternal _PushRequest_default_instance_; +PROTOBUF_CONSTEXPR PushResponse::PushResponse( + ::_pbi::ConstantInitialized){} +struct PushResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR PushResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~PushResponseDefaultTypeInternal() {} + union { + PushResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PushResponseDefaultTypeInternal _PushResponse_default_instance_; +} // namespace v1 +} // namespace button +} // namespace component +} // namespace viam +static ::_pb::Metadata file_level_metadata_component_2fbutton_2fv1_2fbutton_2eproto[2]; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_component_2fbutton_2fv1_2fbutton_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_component_2fbutton_2fv1_2fbutton_2eproto = nullptr; + +const uint32_t TableStruct_component_2fbutton_2fv1_2fbutton_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::button::v1::PushRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::button::v1::PushRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::button::v1::PushRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::button::v1::PushResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::component::button::v1::PushRequest)}, + { 8, -1, -1, sizeof(::viam::component::button::v1::PushResponse)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::viam::component::button::v1::_PushRequest_default_instance_._instance, + &::viam::component::button::v1::_PushResponse_default_instance_._instance, +}; + +const char descriptor_table_protodef_component_2fbutton_2fv1_2fbutton_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n component/button/v1/button.proto\022\030viam" + ".component.button.v1\032\026common/v1/common.p" + "roto\032\034google/api/annotations.proto\032\034goog" + "le/protobuf/struct.proto\"P\n\013PushRequest\022" + "\022\n\004name\030\001 \001(\tR\004name\022-\n\005extra\030c \001(\0132\027.goo" + "gle.protobuf.StructR\005extra\"\016\n\014PushRespon" + "se2\246\002\n\rButtonService\022\210\001\n\004Push\022%.viam.com" + "ponent.button.v1.PushRequest\032&.viam.comp" + "onent.button.v1.PushResponse\"1\202\323\344\223\002+\032)/v" + "iam/api/v1/component/button/{name}/push\022" + "\211\001\n\tDoCommand\022 .viam.common.v1.DoCommand" + "Request\032!.viam.common.v1.DoCommandRespon" + "se\"7\202\323\344\223\0021\"//viam/api/v1/component/butto" + "n/{name}/do_commandBC\n\034com.viam.componen" + "t.button.v1Z#go.viam.com/api/component/b" + "utton/v1b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_component_2fbutton_2fv1_2fbutton_2eproto_deps[3] = { + &::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_2fbutton_2fv1_2fbutton_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_component_2fbutton_2fv1_2fbutton_2eproto = { + false, false, 616, descriptor_table_protodef_component_2fbutton_2fv1_2fbutton_2eproto, + "component/button/v1/button.proto", + &descriptor_table_component_2fbutton_2fv1_2fbutton_2eproto_once, descriptor_table_component_2fbutton_2fv1_2fbutton_2eproto_deps, 3, 2, + schemas, file_default_instances, TableStruct_component_2fbutton_2fv1_2fbutton_2eproto::offsets, + file_level_metadata_component_2fbutton_2fv1_2fbutton_2eproto, file_level_enum_descriptors_component_2fbutton_2fv1_2fbutton_2eproto, + file_level_service_descriptors_component_2fbutton_2fv1_2fbutton_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_component_2fbutton_2fv1_2fbutton_2eproto_getter() { + return &descriptor_table_component_2fbutton_2fv1_2fbutton_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_component_2fbutton_2fv1_2fbutton_2eproto(&descriptor_table_component_2fbutton_2fv1_2fbutton_2eproto); +namespace viam { +namespace component { +namespace button { +namespace v1 { + +// =================================================================== + +class PushRequest::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const PushRequest* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Struct& +PushRequest::_Internal::extra(const PushRequest* msg) { + return *msg->extra_; +} +void PushRequest::clear_extra() { + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; +} +PushRequest::PushRequest(::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.button.v1.PushRequest) +} +PushRequest::PushRequest(const PushRequest& 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.button.v1.PushRequest) +} + +inline void PushRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; +} + +PushRequest::~PushRequest() { + // @@protoc_insertion_point(destructor:viam.component.button.v1.PushRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void PushRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void PushRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void PushRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.button.v1.PushRequest) + 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* PushRequest::_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.button.v1.PushRequest.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* PushRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.button.v1.PushRequest) + 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.button.v1.PushRequest.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.button.v1.PushRequest) + return target; +} + +size_t PushRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.button.v1.PushRequest) + 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 PushRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + PushRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PushRequest::GetClassData() const { return &_class_data_; } + +void PushRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void PushRequest::MergeFrom(const PushRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.button.v1.PushRequest) + 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 PushRequest::CopyFrom(const PushRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.button.v1.PushRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PushRequest::IsInitialized() const { + return true; +} + +void PushRequest::InternalSwap(PushRequest* 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 PushRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fbutton_2fv1_2fbutton_2eproto_getter, &descriptor_table_component_2fbutton_2fv1_2fbutton_2eproto_once, + file_level_metadata_component_2fbutton_2fv1_2fbutton_2eproto[0]); +} + +// =================================================================== + +class PushResponse::_Internal { + public: +}; + +PushResponse::PushResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.component.button.v1.PushResponse) +} +PushResponse::PushResponse(const PushResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.component.button.v1.PushResponse) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PushResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PushResponse::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata PushResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fbutton_2fv1_2fbutton_2eproto_getter, &descriptor_table_component_2fbutton_2fv1_2fbutton_2eproto_once, + file_level_metadata_component_2fbutton_2fv1_2fbutton_2eproto[1]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1 +} // namespace button +} // namespace component +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::component::button::v1::PushRequest* +Arena::CreateMaybeMessage< ::viam::component::button::v1::PushRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::button::v1::PushRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::button::v1::PushResponse* +Arena::CreateMaybeMessage< ::viam::component::button::v1::PushResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::button::v1::PushResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/viam/api/component/button/v1/button.pb.h b/src/viam/api/component/button/v1/button.pb.h new file mode 100644 index 000000000..c911cd397 --- /dev/null +++ b/src/viam/api/component/button/v1/button.pb.h @@ -0,0 +1,524 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: component/button/v1/button.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_component_2fbutton_2fv1_2fbutton_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_component_2fbutton_2fv1_2fbutton_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include "common/v1/common.pb.h" +#include "google/api/annotations.pb.h" +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_component_2fbutton_2fv1_2fbutton_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_component_2fbutton_2fv1_2fbutton_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_component_2fbutton_2fv1_2fbutton_2eproto; +namespace viam { +namespace component { +namespace button { +namespace v1 { +class PushRequest; +struct PushRequestDefaultTypeInternal; +extern PushRequestDefaultTypeInternal _PushRequest_default_instance_; +class PushResponse; +struct PushResponseDefaultTypeInternal; +extern PushResponseDefaultTypeInternal _PushResponse_default_instance_; +} // namespace v1 +} // namespace button +} // namespace component +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::component::button::v1::PushRequest* Arena::CreateMaybeMessage<::viam::component::button::v1::PushRequest>(Arena*); +template<> ::viam::component::button::v1::PushResponse* Arena::CreateMaybeMessage<::viam::component::button::v1::PushResponse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace viam { +namespace component { +namespace button { +namespace v1 { + +// =================================================================== + +class PushRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.button.v1.PushRequest) */ { + public: + inline PushRequest() : PushRequest(nullptr) {} + ~PushRequest() override; + explicit PROTOBUF_CONSTEXPR PushRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + PushRequest(const PushRequest& from); + PushRequest(PushRequest&& from) noexcept + : PushRequest() { + *this = ::std::move(from); + } + + inline PushRequest& operator=(const PushRequest& from) { + CopyFrom(from); + return *this; + } + inline PushRequest& operator=(PushRequest&& 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 PushRequest& default_instance() { + return *internal_default_instance(); + } + static inline const PushRequest* internal_default_instance() { + return reinterpret_cast( + &_PushRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(PushRequest& a, PushRequest& b) { + a.Swap(&b); + } + inline void Swap(PushRequest* 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(PushRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + PushRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const PushRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const PushRequest& 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(PushRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.button.v1.PushRequest"; + } + protected: + explicit PushRequest(::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.button.v1.PushRequest) + 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_2fbutton_2fv1_2fbutton_2eproto; +}; +// ------------------------------------------------------------------- + +class PushResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.button.v1.PushResponse) */ { + public: + inline PushResponse() : PushResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR PushResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + PushResponse(const PushResponse& from); + PushResponse(PushResponse&& from) noexcept + : PushResponse() { + *this = ::std::move(from); + } + + inline PushResponse& operator=(const PushResponse& from) { + CopyFrom(from); + return *this; + } + inline PushResponse& operator=(PushResponse&& 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 PushResponse& default_instance() { + return *internal_default_instance(); + } + static inline const PushResponse* internal_default_instance() { + return reinterpret_cast( + &_PushResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(PushResponse& a, PushResponse& b) { + a.Swap(&b); + } + inline void Swap(PushResponse* 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(PushResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + PushResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const PushResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const PushResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); + } + public: + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.button.v1.PushResponse"; + } + protected: + explicit PushResponse(::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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.component.button.v1.PushResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + friend struct ::TableStruct_component_2fbutton_2fv1_2fbutton_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// PushRequest + +// string name = 1 [json_name = "name"]; +inline void PushRequest::clear_name() { + name_.ClearToEmpty(); +} +inline const std::string& PushRequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.button.v1.PushRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void PushRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.button.v1.PushRequest.name) +} +inline std::string* PushRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.button.v1.PushRequest.name) + return _s; +} +inline const std::string& PushRequest::_internal_name() const { + return name_.Get(); +} +inline void PushRequest::_internal_set_name(const std::string& value) { + + name_.Set(value, GetArenaForAllocation()); +} +inline std::string* PushRequest::_internal_mutable_name() { + + return name_.Mutable(GetArenaForAllocation()); +} +inline std::string* PushRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.button.v1.PushRequest.name) + return name_.Release(); +} +inline void PushRequest::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.button.v1.PushRequest.name) +} + +// .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool PushRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} +inline bool PushRequest::has_extra() const { + return _internal_has_extra(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& PushRequest::_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& PushRequest::extra() const { + // @@protoc_insertion_point(field_get:viam.component.button.v1.PushRequest.extra) + return _internal_extra(); +} +inline void PushRequest::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.button.v1.PushRequest.extra) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* PushRequest::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* PushRequest::unsafe_arena_release_extra() { + // @@protoc_insertion_point(field_release:viam.component.button.v1.PushRequest.extra) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* PushRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; + } + return extra_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* PushRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); + // @@protoc_insertion_point(field_mutable:viam.component.button.v1.PushRequest.extra) + return _msg; +} +inline void PushRequest::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.button.v1.PushRequest.extra) +} + +// ------------------------------------------------------------------- + +// PushResponse + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v1 +} // namespace button +} // namespace component +} // namespace viam + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_component_2fbutton_2fv1_2fbutton_2eproto diff --git a/src/viam/api/component/camera/v1/camera.grpc.pb.cc b/src/viam/api/component/camera/v1/camera.grpc.pb.cc index c8c01d78a..6d83b2f47 100644 --- a/src/viam/api/component/camera/v1/camera.grpc.pb.cc +++ b/src/viam/api/component/camera/v1/camera.grpc.pb.cc @@ -6,19 +6,19 @@ #include "component/camera/v1/camera.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace component { namespace camera { @@ -36,188 +36,223 @@ static const char* CameraService_method_names[] = { std::unique_ptr< CameraService::Stub> CameraService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { (void)options; - std::unique_ptr< CameraService::Stub> stub(new CameraService::Stub(channel, options)); + std::unique_ptr< CameraService::Stub> stub(new CameraService::Stub(channel)); return stub; } -CameraService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) - : channel_(channel), rpcmethod_GetImage_(CameraService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetImages_(CameraService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_RenderFrame_(CameraService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetPointCloud_(CameraService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetProperties_(CameraService_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_DoCommand_(CameraService_method_names[5], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetGeometries_(CameraService_method_names[6], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) +CameraService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_GetImage_(CameraService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetImages_(CameraService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_RenderFrame_(CameraService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetPointCloud_(CameraService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetProperties_(CameraService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DoCommand_(CameraService_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetGeometries_(CameraService_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status CameraService::Stub::GetImage(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetImageRequest& request, ::viam::component::camera::v1::GetImageResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::camera::v1::GetImageRequest, ::viam::component::camera::v1::GetImageResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetImage_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetImage_, context, request, response); } -void CameraService::Stub::async::GetImage(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetImageRequest* request, ::viam::component::camera::v1::GetImageResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::camera::v1::GetImageRequest, ::viam::component::camera::v1::GetImageResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetImage_, context, request, response, std::move(f)); +void CameraService::Stub::experimental_async::GetImage(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetImageRequest* request, ::viam::component::camera::v1::GetImageResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetImage_, context, request, response, std::move(f)); } -void CameraService::Stub::async::GetImage(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetImageRequest* request, ::viam::component::camera::v1::GetImageResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetImage_, context, request, response, reactor); +void CameraService::Stub::experimental_async::GetImage(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::camera::v1::GetImageResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetImage_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::camera::v1::GetImageResponse>* CameraService::Stub::PrepareAsyncGetImageRaw(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetImageRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::camera::v1::GetImageResponse, ::viam::component::camera::v1::GetImageRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetImage_, context, request); +void CameraService::Stub::experimental_async::GetImage(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetImageRequest* request, ::viam::component::camera::v1::GetImageResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetImage_, context, request, response, reactor); +} + +void CameraService::Stub::experimental_async::GetImage(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::camera::v1::GetImageResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetImage_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::camera::v1::GetImageResponse>* CameraService::Stub::AsyncGetImageRaw(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetImageRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetImageRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::camera::v1::GetImageResponse>::Create(channel_.get(), cq, rpcmethod_GetImage_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::camera::v1::GetImageResponse>* CameraService::Stub::PrepareAsyncGetImageRaw(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetImageRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::camera::v1::GetImageResponse>::Create(channel_.get(), cq, rpcmethod_GetImage_, context, request, false); } ::grpc::Status CameraService::Stub::GetImages(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetImagesRequest& request, ::viam::component::camera::v1::GetImagesResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::camera::v1::GetImagesRequest, ::viam::component::camera::v1::GetImagesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetImages_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetImages_, context, request, response); } -void CameraService::Stub::async::GetImages(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetImagesRequest* request, ::viam::component::camera::v1::GetImagesResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::camera::v1::GetImagesRequest, ::viam::component::camera::v1::GetImagesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetImages_, context, request, response, std::move(f)); +void CameraService::Stub::experimental_async::GetImages(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetImagesRequest* request, ::viam::component::camera::v1::GetImagesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetImages_, context, request, response, std::move(f)); } -void CameraService::Stub::async::GetImages(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetImagesRequest* request, ::viam::component::camera::v1::GetImagesResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetImages_, context, request, response, reactor); +void CameraService::Stub::experimental_async::GetImages(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::camera::v1::GetImagesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetImages_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::camera::v1::GetImagesResponse>* CameraService::Stub::PrepareAsyncGetImagesRaw(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetImagesRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::camera::v1::GetImagesResponse, ::viam::component::camera::v1::GetImagesRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetImages_, context, request); +void CameraService::Stub::experimental_async::GetImages(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetImagesRequest* request, ::viam::component::camera::v1::GetImagesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetImages_, context, request, response, reactor); +} + +void CameraService::Stub::experimental_async::GetImages(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::camera::v1::GetImagesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetImages_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::camera::v1::GetImagesResponse>* CameraService::Stub::AsyncGetImagesRaw(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetImagesRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetImagesRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::camera::v1::GetImagesResponse>::Create(channel_.get(), cq, rpcmethod_GetImages_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::camera::v1::GetImagesResponse>* CameraService::Stub::PrepareAsyncGetImagesRaw(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetImagesRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::camera::v1::GetImagesResponse>::Create(channel_.get(), cq, rpcmethod_GetImages_, context, request, false); } ::grpc::Status CameraService::Stub::RenderFrame(::grpc::ClientContext* context, const ::viam::component::camera::v1::RenderFrameRequest& request, ::google::api::HttpBody* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::camera::v1::RenderFrameRequest, ::google::api::HttpBody, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_RenderFrame_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_RenderFrame_, context, request, response); } -void CameraService::Stub::async::RenderFrame(::grpc::ClientContext* context, const ::viam::component::camera::v1::RenderFrameRequest* request, ::google::api::HttpBody* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::camera::v1::RenderFrameRequest, ::google::api::HttpBody, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_RenderFrame_, context, request, response, std::move(f)); +void CameraService::Stub::experimental_async::RenderFrame(::grpc::ClientContext* context, const ::viam::component::camera::v1::RenderFrameRequest* request, ::google::api::HttpBody* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_RenderFrame_, context, request, response, std::move(f)); } -void CameraService::Stub::async::RenderFrame(::grpc::ClientContext* context, const ::viam::component::camera::v1::RenderFrameRequest* request, ::google::api::HttpBody* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_RenderFrame_, context, request, response, reactor); +void CameraService::Stub::experimental_async::RenderFrame(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::google::api::HttpBody* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_RenderFrame_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::google::api::HttpBody>* CameraService::Stub::PrepareAsyncRenderFrameRaw(::grpc::ClientContext* context, const ::viam::component::camera::v1::RenderFrameRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::google::api::HttpBody, ::viam::component::camera::v1::RenderFrameRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_RenderFrame_, context, request); +void CameraService::Stub::experimental_async::RenderFrame(::grpc::ClientContext* context, const ::viam::component::camera::v1::RenderFrameRequest* request, ::google::api::HttpBody* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_RenderFrame_, context, request, response, reactor); +} + +void CameraService::Stub::experimental_async::RenderFrame(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::google::api::HttpBody* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_RenderFrame_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::google::api::HttpBody>* CameraService::Stub::AsyncRenderFrameRaw(::grpc::ClientContext* context, const ::viam::component::camera::v1::RenderFrameRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncRenderFrameRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::google::api::HttpBody>::Create(channel_.get(), cq, rpcmethod_RenderFrame_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::google::api::HttpBody>* CameraService::Stub::PrepareAsyncRenderFrameRaw(::grpc::ClientContext* context, const ::viam::component::camera::v1::RenderFrameRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::google::api::HttpBody>::Create(channel_.get(), cq, rpcmethod_RenderFrame_, context, request, false); } ::grpc::Status CameraService::Stub::GetPointCloud(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPointCloudRequest& request, ::viam::component::camera::v1::GetPointCloudResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::camera::v1::GetPointCloudRequest, ::viam::component::camera::v1::GetPointCloudResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetPointCloud_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetPointCloud_, context, request, response); } -void CameraService::Stub::async::GetPointCloud(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPointCloudRequest* request, ::viam::component::camera::v1::GetPointCloudResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::camera::v1::GetPointCloudRequest, ::viam::component::camera::v1::GetPointCloudResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetPointCloud_, context, request, response, std::move(f)); +void CameraService::Stub::experimental_async::GetPointCloud(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPointCloudRequest* request, ::viam::component::camera::v1::GetPointCloudResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetPointCloud_, context, request, response, std::move(f)); } -void CameraService::Stub::async::GetPointCloud(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPointCloudRequest* request, ::viam::component::camera::v1::GetPointCloudResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetPointCloud_, context, request, response, reactor); +void CameraService::Stub::experimental_async::GetPointCloud(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::camera::v1::GetPointCloudResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetPointCloud_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::camera::v1::GetPointCloudResponse>* CameraService::Stub::PrepareAsyncGetPointCloudRaw(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPointCloudRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::camera::v1::GetPointCloudResponse, ::viam::component::camera::v1::GetPointCloudRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetPointCloud_, context, request); +void CameraService::Stub::experimental_async::GetPointCloud(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPointCloudRequest* request, ::viam::component::camera::v1::GetPointCloudResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetPointCloud_, context, request, response, reactor); +} + +void CameraService::Stub::experimental_async::GetPointCloud(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::camera::v1::GetPointCloudResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetPointCloud_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::camera::v1::GetPointCloudResponse>* CameraService::Stub::AsyncGetPointCloudRaw(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPointCloudRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetPointCloudRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::camera::v1::GetPointCloudResponse>::Create(channel_.get(), cq, rpcmethod_GetPointCloud_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::camera::v1::GetPointCloudResponse>* CameraService::Stub::PrepareAsyncGetPointCloudRaw(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPointCloudRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::camera::v1::GetPointCloudResponse>::Create(channel_.get(), cq, rpcmethod_GetPointCloud_, context, request, false); } ::grpc::Status CameraService::Stub::GetProperties(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPropertiesRequest& request, ::viam::component::camera::v1::GetPropertiesResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::camera::v1::GetPropertiesRequest, ::viam::component::camera::v1::GetPropertiesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetProperties_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetProperties_, context, request, response); } -void CameraService::Stub::async::GetProperties(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPropertiesRequest* request, ::viam::component::camera::v1::GetPropertiesResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::camera::v1::GetPropertiesRequest, ::viam::component::camera::v1::GetPropertiesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetProperties_, context, request, response, std::move(f)); +void CameraService::Stub::experimental_async::GetProperties(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPropertiesRequest* request, ::viam::component::camera::v1::GetPropertiesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetProperties_, context, request, response, std::move(f)); } -void CameraService::Stub::async::GetProperties(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPropertiesRequest* request, ::viam::component::camera::v1::GetPropertiesResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetProperties_, context, request, response, reactor); +void CameraService::Stub::experimental_async::GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::camera::v1::GetPropertiesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetProperties_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::camera::v1::GetPropertiesResponse>* CameraService::Stub::PrepareAsyncGetPropertiesRaw(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPropertiesRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::camera::v1::GetPropertiesResponse, ::viam::component::camera::v1::GetPropertiesRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetProperties_, context, request); +void CameraService::Stub::experimental_async::GetProperties(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPropertiesRequest* request, ::viam::component::camera::v1::GetPropertiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetProperties_, context, request, response, reactor); +} + +void CameraService::Stub::experimental_async::GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::camera::v1::GetPropertiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetProperties_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::camera::v1::GetPropertiesResponse>* CameraService::Stub::AsyncGetPropertiesRaw(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPropertiesRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetPropertiesRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::camera::v1::GetPropertiesResponse>::Create(channel_.get(), cq, rpcmethod_GetProperties_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::camera::v1::GetPropertiesResponse>* CameraService::Stub::PrepareAsyncGetPropertiesRaw(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPropertiesRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::camera::v1::GetPropertiesResponse>::Create(channel_.get(), cq, rpcmethod_GetProperties_, context, request, false); } ::grpc::Status CameraService::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); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DoCommand_, context, request, response); } -void CameraService::Stub::async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); +void CameraService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); } -void CameraService::Stub::async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); +void CameraService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* CameraService::Stub::PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::common::v1::DoCommandResponse, ::viam::common::v1::DoCommandRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DoCommand_, context, request); +void CameraService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); +} + +void CameraService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* CameraService::Stub::AsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncDoCommandRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::DoCommandResponse>::Create(channel_.get(), cq, rpcmethod_DoCommand_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* CameraService::Stub::PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::DoCommandResponse>::Create(channel_.get(), cq, rpcmethod_DoCommand_, context, request, false); } ::grpc::Status CameraService::Stub::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::viam::common::v1::GetGeometriesResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetGeometries_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetGeometries_, context, request, response); } -void CameraService::Stub::async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, std::move(f)); +void CameraService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, std::move(f)); } -void CameraService::Stub::async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, reactor); +void CameraService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>* CameraService::Stub::PrepareAsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::common::v1::GetGeometriesResponse, ::viam::common::v1::GetGeometriesRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetGeometries_, context, request); +void CameraService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, reactor); +} + +void CameraService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>* CameraService::Stub::AsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetGeometriesRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::GetGeometriesResponse>::Create(channel_.get(), cq, rpcmethod_GetGeometries_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>* CameraService::Stub::PrepareAsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::GetGeometriesResponse>::Create(channel_.get(), cq, rpcmethod_GetGeometries_, context, request, false); } CameraService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( CameraService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< CameraService::Service, ::viam::component::camera::v1::GetImageRequest, ::viam::component::camera::v1::GetImageResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< CameraService::Service, ::viam::component::camera::v1::GetImageRequest, ::viam::component::camera::v1::GetImageResponse>( [](CameraService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::camera::v1::GetImageRequest* req, ::viam::component::camera::v1::GetImageResponse* resp) { return service->GetImage(ctx, req, resp); @@ -225,9 +260,9 @@ CameraService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( CameraService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< CameraService::Service, ::viam::component::camera::v1::GetImagesRequest, ::viam::component::camera::v1::GetImagesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< CameraService::Service, ::viam::component::camera::v1::GetImagesRequest, ::viam::component::camera::v1::GetImagesResponse>( [](CameraService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::camera::v1::GetImagesRequest* req, ::viam::component::camera::v1::GetImagesResponse* resp) { return service->GetImages(ctx, req, resp); @@ -235,9 +270,9 @@ CameraService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( CameraService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< CameraService::Service, ::viam::component::camera::v1::RenderFrameRequest, ::google::api::HttpBody, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< CameraService::Service, ::viam::component::camera::v1::RenderFrameRequest, ::google::api::HttpBody>( [](CameraService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::camera::v1::RenderFrameRequest* req, ::google::api::HttpBody* resp) { return service->RenderFrame(ctx, req, resp); @@ -245,9 +280,9 @@ CameraService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( CameraService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< CameraService::Service, ::viam::component::camera::v1::GetPointCloudRequest, ::viam::component::camera::v1::GetPointCloudResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< CameraService::Service, ::viam::component::camera::v1::GetPointCloudRequest, ::viam::component::camera::v1::GetPointCloudResponse>( [](CameraService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::camera::v1::GetPointCloudRequest* req, ::viam::component::camera::v1::GetPointCloudResponse* resp) { return service->GetPointCloud(ctx, req, resp); @@ -255,9 +290,9 @@ CameraService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( CameraService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< CameraService::Service, ::viam::component::camera::v1::GetPropertiesRequest, ::viam::component::camera::v1::GetPropertiesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< CameraService::Service, ::viam::component::camera::v1::GetPropertiesRequest, ::viam::component::camera::v1::GetPropertiesResponse>( [](CameraService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::camera::v1::GetPropertiesRequest* req, ::viam::component::camera::v1::GetPropertiesResponse* resp) { return service->GetProperties(ctx, req, resp); @@ -265,9 +300,9 @@ CameraService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( CameraService_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< CameraService::Service, ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< CameraService::Service, ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( [](CameraService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::common::v1::DoCommandRequest* req, ::viam::common::v1::DoCommandResponse* resp) { return service->DoCommand(ctx, req, resp); @@ -275,9 +310,9 @@ CameraService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( CameraService_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< CameraService::Service, ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< CameraService::Service, ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( [](CameraService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::common::v1::GetGeometriesRequest* req, ::viam::common::v1::GetGeometriesResponse* resp) { return service->GetGeometries(ctx, req, resp); diff --git a/src/viam/api/component/camera/v1/camera.grpc.pb.h b/src/viam/api/component/camera/v1/camera.grpc.pb.h index 3e68ddd69..92f740796 100644 --- a/src/viam/api/component/camera/v1/camera.grpc.pb.h +++ b/src/viam/api/component/camera/v1/camera.grpc.pb.h @@ -7,23 +7,24 @@ #include "component/camera/v1/camera.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace component { @@ -97,37 +98,111 @@ class CameraService 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)); } - class async_interface { + class experimental_async_interface { public: - virtual ~async_interface() {} + virtual ~experimental_async_interface() {} // GetImage returns a frame from a camera of the underlying robot. A specific MIME type // can be requested but may not necessarily be the same one returned. virtual void GetImage(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetImageRequest* request, ::viam::component::camera::v1::GetImageResponse* response, std::function) = 0; + virtual void GetImage(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::camera::v1::GetImageResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetImage(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetImageRequest* request, ::viam::component::camera::v1::GetImageResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetImage(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetImageRequest* request, ::viam::component::camera::v1::GetImageResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetImage(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::camera::v1::GetImageResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetImage(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::camera::v1::GetImageResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif virtual void GetImages(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetImagesRequest* request, ::viam::component::camera::v1::GetImagesResponse* response, std::function) = 0; + virtual void GetImages(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::camera::v1::GetImagesResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetImages(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetImagesRequest* request, ::viam::component::camera::v1::GetImagesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetImages(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetImagesRequest* request, ::viam::component::camera::v1::GetImagesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetImages(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::camera::v1::GetImagesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetImages(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::camera::v1::GetImagesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // RenderFrame renders a frame from a camera of the underlying robot to an HTTP response. A specific MIME type // can be requested but may not necessarily be the same one returned. virtual void RenderFrame(::grpc::ClientContext* context, const ::viam::component::camera::v1::RenderFrameRequest* request, ::google::api::HttpBody* response, std::function) = 0; + virtual void RenderFrame(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::google::api::HttpBody* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void RenderFrame(::grpc::ClientContext* context, const ::viam::component::camera::v1::RenderFrameRequest* request, ::google::api::HttpBody* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void RenderFrame(::grpc::ClientContext* context, const ::viam::component::camera::v1::RenderFrameRequest* request, ::google::api::HttpBody* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void RenderFrame(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::google::api::HttpBody* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void RenderFrame(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::google::api::HttpBody* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // GetPointCloud returns a point cloud from a camera of the underlying robot. A specific MIME type // can be requested but may not necessarily be the same one returned. virtual void GetPointCloud(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPointCloudRequest* request, ::viam::component::camera::v1::GetPointCloudResponse* response, std::function) = 0; + virtual void GetPointCloud(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::camera::v1::GetPointCloudResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetPointCloud(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPointCloudRequest* request, ::viam::component::camera::v1::GetPointCloudResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetPointCloud(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPointCloudRequest* request, ::viam::component::camera::v1::GetPointCloudResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetPointCloud(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::camera::v1::GetPointCloudResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetPointCloud(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::camera::v1::GetPointCloudResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // GetProperties returns the camera intrinsic parameters and camera distortion parameters from a camera of the underlying robot, if available. virtual void GetProperties(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPropertiesRequest* request, ::viam::component::camera::v1::GetPropertiesResponse* response, std::function) = 0; + virtual void GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::camera::v1::GetPropertiesResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetProperties(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPropertiesRequest* request, ::viam::component::camera::v1::GetPropertiesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetProperties(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPropertiesRequest* request, ::viam::component::camera::v1::GetPropertiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::camera::v1::GetPropertiesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::camera::v1::GetPropertiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // 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 ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // 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 ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif }; - typedef class async_interface experimental_async_interface; - virtual class async_interface* async() { return nullptr; } - class async_interface* experimental_async() { return async(); } - private: + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef class experimental_async_interface async_interface; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + async_interface* async() { return experimental_async(); } + #endif + virtual class experimental_async_interface* experimental_async() { return nullptr; } + private: virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::camera::v1::GetImageResponse>* AsyncGetImageRaw(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetImageRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::camera::v1::GetImageResponse>* PrepareAsyncGetImageRaw(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetImageRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::camera::v1::GetImagesResponse>* AsyncGetImagesRaw(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetImagesRequest& request, ::grpc::CompletionQueue* cq) = 0; @@ -145,7 +220,7 @@ class CameraService final { }; class Stub final : public StubInterface { public: - Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); ::grpc::Status GetImage(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetImageRequest& request, ::viam::component::camera::v1::GetImageResponse* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::camera::v1::GetImageResponse>> AsyncGetImage(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetImageRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::camera::v1::GetImageResponse>>(AsyncGetImageRaw(context, request, cq)); @@ -195,34 +270,104 @@ class CameraService 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)); } - class async final : - public StubInterface::async_interface { + class experimental_async final : + public StubInterface::experimental_async_interface { public: void GetImage(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetImageRequest* request, ::viam::component::camera::v1::GetImageResponse* response, std::function) override; + void GetImage(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::camera::v1::GetImageResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetImage(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetImageRequest* request, ::viam::component::camera::v1::GetImageResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetImage(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetImageRequest* request, ::viam::component::camera::v1::GetImageResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetImage(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::camera::v1::GetImageResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetImage(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::camera::v1::GetImageResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetImages(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetImagesRequest* request, ::viam::component::camera::v1::GetImagesResponse* response, std::function) override; + void GetImages(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::camera::v1::GetImagesResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetImages(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetImagesRequest* request, ::viam::component::camera::v1::GetImagesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetImages(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetImagesRequest* request, ::viam::component::camera::v1::GetImagesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetImages(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::camera::v1::GetImagesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetImages(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::camera::v1::GetImagesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void RenderFrame(::grpc::ClientContext* context, const ::viam::component::camera::v1::RenderFrameRequest* request, ::google::api::HttpBody* response, std::function) override; + void RenderFrame(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::google::api::HttpBody* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void RenderFrame(::grpc::ClientContext* context, const ::viam::component::camera::v1::RenderFrameRequest* request, ::google::api::HttpBody* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void RenderFrame(::grpc::ClientContext* context, const ::viam::component::camera::v1::RenderFrameRequest* request, ::google::api::HttpBody* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void RenderFrame(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::google::api::HttpBody* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void RenderFrame(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::google::api::HttpBody* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetPointCloud(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPointCloudRequest* request, ::viam::component::camera::v1::GetPointCloudResponse* response, std::function) override; + void GetPointCloud(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::camera::v1::GetPointCloudResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetPointCloud(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPointCloudRequest* request, ::viam::component::camera::v1::GetPointCloudResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetPointCloud(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPointCloudRequest* request, ::viam::component::camera::v1::GetPointCloudResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetPointCloud(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::camera::v1::GetPointCloudResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetPointCloud(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::camera::v1::GetPointCloudResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetProperties(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPropertiesRequest* request, ::viam::component::camera::v1::GetPropertiesResponse* response, std::function) override; + void GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::camera::v1::GetPropertiesResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetProperties(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPropertiesRequest* request, ::viam::component::camera::v1::GetPropertiesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetProperties(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetPropertiesRequest* request, ::viam::component::camera::v1::GetPropertiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::camera::v1::GetPropertiesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::camera::v1::GetPropertiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif 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 ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif 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 ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif private: friend class Stub; - explicit async(Stub* stub): stub_(stub) { } + explicit experimental_async(Stub* stub): stub_(stub) { } Stub* stub() { return stub_; } Stub* stub_; }; - class async* async() override { return &async_stub_; } + class experimental_async_interface* experimental_async() override { return &async_stub_; } private: std::shared_ptr< ::grpc::ChannelInterface> channel_; - class async async_stub_{this}; + class experimental_async async_stub_{this}; ::grpc::ClientAsyncResponseReader< ::viam::component::camera::v1::GetImageResponse>* AsyncGetImageRaw(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetImageRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::component::camera::v1::GetImageResponse>* PrepareAsyncGetImageRaw(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetImageRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::component::camera::v1::GetImagesResponse>* AsyncGetImagesRaw(::grpc::ClientContext* context, const ::viam::component::camera::v1::GetImagesRequest& request, ::grpc::CompletionQueue* cq) override; @@ -410,22 +555,36 @@ class CameraService final { }; typedef WithAsyncMethod_GetImage > > > > > > AsyncService; template - class WithCallbackMethod_GetImage : public BaseClass { + class ExperimentalWithCallbackMethod_GetImage : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetImage() { - ::grpc::Service::MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::camera::v1::GetImageRequest, ::viam::component::camera::v1::GetImageResponse>( + ExperimentalWithCallbackMethod_GetImage() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::camera::v1::GetImageRequest, ::viam::component::camera::v1::GetImageResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::camera::v1::GetImageRequest* request, ::viam::component::camera::v1::GetImageResponse* response) { return this->GetImage(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::camera::v1::GetImageRequest* request, ::viam::component::camera::v1::GetImageResponse* response) { return this->GetImage(context, request, response); }));} void SetMessageAllocatorFor_GetImage( - ::grpc::MessageAllocator< ::viam::component::camera::v1::GetImageRequest, ::viam::component::camera::v1::GetImageResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::camera::v1::GetImageRequest, ::viam::component::camera::v1::GetImageResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::camera::v1::GetImageRequest, ::viam::component::camera::v1::GetImageResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(0); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::camera::v1::GetImageRequest, ::viam::component::camera::v1::GetImageResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetImage() override { + ~ExperimentalWithCallbackMethod_GetImage() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -433,26 +592,46 @@ class CameraService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetImage( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::camera::v1::GetImageRequest* /*request*/, ::viam::component::camera::v1::GetImageResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::camera::v1::GetImageRequest* /*request*/, ::viam::component::camera::v1::GetImageResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetImage( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::camera::v1::GetImageRequest* /*request*/, ::viam::component::camera::v1::GetImageResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetImages : public BaseClass { + class ExperimentalWithCallbackMethod_GetImages : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetImages() { - ::grpc::Service::MarkMethodCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::camera::v1::GetImagesRequest, ::viam::component::camera::v1::GetImagesResponse>( + ExperimentalWithCallbackMethod_GetImages() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::camera::v1::GetImagesRequest, ::viam::component::camera::v1::GetImagesResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::camera::v1::GetImagesRequest* request, ::viam::component::camera::v1::GetImagesResponse* response) { return this->GetImages(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::camera::v1::GetImagesRequest* request, ::viam::component::camera::v1::GetImagesResponse* response) { return this->GetImages(context, request, response); }));} void SetMessageAllocatorFor_GetImages( - ::grpc::MessageAllocator< ::viam::component::camera::v1::GetImagesRequest, ::viam::component::camera::v1::GetImagesResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::camera::v1::GetImagesRequest, ::viam::component::camera::v1::GetImagesResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::camera::v1::GetImagesRequest, ::viam::component::camera::v1::GetImagesResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(1); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::camera::v1::GetImagesRequest, ::viam::component::camera::v1::GetImagesResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetImages() override { + ~ExperimentalWithCallbackMethod_GetImages() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -460,26 +639,46 @@ class CameraService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetImages( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::camera::v1::GetImagesRequest* /*request*/, ::viam::component::camera::v1::GetImagesResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::camera::v1::GetImagesRequest* /*request*/, ::viam::component::camera::v1::GetImagesResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetImages( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::camera::v1::GetImagesRequest* /*request*/, ::viam::component::camera::v1::GetImagesResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_RenderFrame : public BaseClass { + class ExperimentalWithCallbackMethod_RenderFrame : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_RenderFrame() { - ::grpc::Service::MarkMethodCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::camera::v1::RenderFrameRequest, ::google::api::HttpBody>( + ExperimentalWithCallbackMethod_RenderFrame() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(2, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::camera::v1::RenderFrameRequest, ::google::api::HttpBody>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::camera::v1::RenderFrameRequest* request, ::google::api::HttpBody* response) { return this->RenderFrame(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::camera::v1::RenderFrameRequest* request, ::google::api::HttpBody* response) { return this->RenderFrame(context, request, response); }));} void SetMessageAllocatorFor_RenderFrame( - ::grpc::MessageAllocator< ::viam::component::camera::v1::RenderFrameRequest, ::google::api::HttpBody>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::camera::v1::RenderFrameRequest, ::google::api::HttpBody>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::camera::v1::RenderFrameRequest, ::google::api::HttpBody>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(2); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::camera::v1::RenderFrameRequest, ::google::api::HttpBody>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_RenderFrame() override { + ~ExperimentalWithCallbackMethod_RenderFrame() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -487,26 +686,46 @@ class CameraService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* RenderFrame( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::camera::v1::RenderFrameRequest* /*request*/, ::google::api::HttpBody* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::camera::v1::RenderFrameRequest* /*request*/, ::google::api::HttpBody* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* RenderFrame( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::camera::v1::RenderFrameRequest* /*request*/, ::google::api::HttpBody* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetPointCloud : public BaseClass { + class ExperimentalWithCallbackMethod_GetPointCloud : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetPointCloud() { - ::grpc::Service::MarkMethodCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::camera::v1::GetPointCloudRequest, ::viam::component::camera::v1::GetPointCloudResponse>( + ExperimentalWithCallbackMethod_GetPointCloud() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(3, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::camera::v1::GetPointCloudRequest, ::viam::component::camera::v1::GetPointCloudResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::camera::v1::GetPointCloudRequest* request, ::viam::component::camera::v1::GetPointCloudResponse* response) { return this->GetPointCloud(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::camera::v1::GetPointCloudRequest* request, ::viam::component::camera::v1::GetPointCloudResponse* response) { return this->GetPointCloud(context, request, response); }));} void SetMessageAllocatorFor_GetPointCloud( - ::grpc::MessageAllocator< ::viam::component::camera::v1::GetPointCloudRequest, ::viam::component::camera::v1::GetPointCloudResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::camera::v1::GetPointCloudRequest, ::viam::component::camera::v1::GetPointCloudResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::camera::v1::GetPointCloudRequest, ::viam::component::camera::v1::GetPointCloudResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(3); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::camera::v1::GetPointCloudRequest, ::viam::component::camera::v1::GetPointCloudResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetPointCloud() override { + ~ExperimentalWithCallbackMethod_GetPointCloud() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -514,26 +733,46 @@ class CameraService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetPointCloud( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::camera::v1::GetPointCloudRequest* /*request*/, ::viam::component::camera::v1::GetPointCloudResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::camera::v1::GetPointCloudRequest* /*request*/, ::viam::component::camera::v1::GetPointCloudResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetPointCloud( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::camera::v1::GetPointCloudRequest* /*request*/, ::viam::component::camera::v1::GetPointCloudResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetProperties : public BaseClass { + class ExperimentalWithCallbackMethod_GetProperties : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetProperties() { - ::grpc::Service::MarkMethodCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::camera::v1::GetPropertiesRequest, ::viam::component::camera::v1::GetPropertiesResponse>( + ExperimentalWithCallbackMethod_GetProperties() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(4, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::camera::v1::GetPropertiesRequest, ::viam::component::camera::v1::GetPropertiesResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::camera::v1::GetPropertiesRequest* request, ::viam::component::camera::v1::GetPropertiesResponse* response) { return this->GetProperties(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::camera::v1::GetPropertiesRequest* request, ::viam::component::camera::v1::GetPropertiesResponse* response) { return this->GetProperties(context, request, response); }));} void SetMessageAllocatorFor_GetProperties( - ::grpc::MessageAllocator< ::viam::component::camera::v1::GetPropertiesRequest, ::viam::component::camera::v1::GetPropertiesResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::camera::v1::GetPropertiesRequest, ::viam::component::camera::v1::GetPropertiesResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::camera::v1::GetPropertiesRequest, ::viam::component::camera::v1::GetPropertiesResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(4); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::camera::v1::GetPropertiesRequest, ::viam::component::camera::v1::GetPropertiesResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetProperties() override { + ~ExperimentalWithCallbackMethod_GetProperties() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -541,26 +780,46 @@ class CameraService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetProperties( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::camera::v1::GetPropertiesRequest* /*request*/, ::viam::component::camera::v1::GetPropertiesResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::camera::v1::GetPropertiesRequest* /*request*/, ::viam::component::camera::v1::GetPropertiesResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetProperties( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::camera::v1::GetPropertiesRequest* /*request*/, ::viam::component::camera::v1::GetPropertiesResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_DoCommand : public BaseClass { + class ExperimentalWithCallbackMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_DoCommand() { - ::grpc::Service::MarkMethodCallback(5, - new ::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( + ExperimentalWithCallbackMethod_DoCommand() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(5, + new ::grpc_impl::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); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + 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::experimental::MessageAllocator< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(5); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(5); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_DoCommand() override { + ~ExperimentalWithCallbackMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -568,26 +827,46 @@ class CameraService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DoCommand( - ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DoCommand( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetGeometries : public BaseClass { + class ExperimentalWithCallbackMethod_GetGeometries : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetGeometries() { - ::grpc::Service::MarkMethodCallback(6, - new ::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( + ExperimentalWithCallbackMethod_GetGeometries() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(6, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response) { return this->GetGeometries(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response) { return this->GetGeometries(context, request, response); }));} void SetMessageAllocatorFor_GetGeometries( - ::grpc::MessageAllocator< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(6); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(6); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetGeometries() override { + ~ExperimentalWithCallbackMethod_GetGeometries() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -595,11 +874,20 @@ class CameraService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetGeometries( - ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::GetGeometriesRequest* /*request*/, ::viam::common::v1::GetGeometriesResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::GetGeometriesRequest* /*request*/, ::viam::common::v1::GetGeometriesResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetGeometries( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::common::v1::GetGeometriesRequest* /*request*/, ::viam::common::v1::GetGeometriesResponse* /*response*/) + #endif + { return nullptr; } }; - typedef WithCallbackMethod_GetImage > > > > > > CallbackService; - typedef CallbackService ExperimentalCallbackService; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef ExperimentalWithCallbackMethod_GetImage > > > > > > CallbackService; + #endif + + typedef ExperimentalWithCallbackMethod_GetImage > > > > > > ExperimentalCallbackService; template class WithGenericMethod_GetImage : public BaseClass { private: @@ -860,17 +1148,27 @@ class CameraService final { } }; template - class WithRawCallbackMethod_GetImage : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetImage : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetImage() { - ::grpc::Service::MarkMethodRawCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetImage() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetImage(context, request, response); })); - } - ~WithRawCallbackMethod_GetImage() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetImage(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetImage() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -878,21 +1176,37 @@ class CameraService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetImage( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetImage( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetImages : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetImages : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetImages() { - ::grpc::Service::MarkMethodRawCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetImages() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetImages(context, request, response); })); - } - ~WithRawCallbackMethod_GetImages() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetImages(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetImages() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -900,21 +1214,37 @@ class CameraService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetImages( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetImages( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_RenderFrame : public BaseClass { + class ExperimentalWithRawCallbackMethod_RenderFrame : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_RenderFrame() { - ::grpc::Service::MarkMethodRawCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_RenderFrame() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(2, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->RenderFrame(context, request, response); })); - } - ~WithRawCallbackMethod_RenderFrame() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->RenderFrame(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_RenderFrame() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -922,21 +1252,37 @@ class CameraService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* RenderFrame( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* RenderFrame( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetPointCloud : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetPointCloud : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetPointCloud() { - ::grpc::Service::MarkMethodRawCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetPointCloud() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(3, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetPointCloud(context, request, response); })); - } - ~WithRawCallbackMethod_GetPointCloud() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetPointCloud(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetPointCloud() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -944,21 +1290,37 @@ class CameraService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetPointCloud( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetPointCloud( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetProperties : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetProperties : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetProperties() { - ::grpc::Service::MarkMethodRawCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetProperties() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(4, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetProperties(context, request, response); })); - } - ~WithRawCallbackMethod_GetProperties() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetProperties(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetProperties() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -966,21 +1328,37 @@ class CameraService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetProperties( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetProperties( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_DoCommand : public BaseClass { + class ExperimentalWithRawCallbackMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_DoCommand() { - ::grpc::Service::MarkMethodRawCallback(5, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_DoCommand() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(5, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DoCommand(context, request, response); })); - } - ~WithRawCallbackMethod_DoCommand() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DoCommand(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -988,21 +1366,37 @@ class CameraService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DoCommand( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DoCommand( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetGeometries : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetGeometries : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetGeometries() { - ::grpc::Service::MarkMethodRawCallback(6, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetGeometries() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(6, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetGeometries(context, request, response); })); - } - ~WithRawCallbackMethod_GetGeometries() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetGeometries(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetGeometries() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1010,8 +1404,14 @@ class CameraService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetGeometries( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetGeometries( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template class WithStreamedUnaryMethod_GetImage : public BaseClass { @@ -1022,8 +1422,8 @@ class CameraService final { ::grpc::Service::MarkMethodStreamed(0, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::camera::v1::GetImageRequest, ::viam::component::camera::v1::GetImageResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::camera::v1::GetImageRequest, ::viam::component::camera::v1::GetImageResponse>* streamer) { return this->StreamedGetImage(context, streamer); @@ -1049,8 +1449,8 @@ class CameraService final { ::grpc::Service::MarkMethodStreamed(1, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::camera::v1::GetImagesRequest, ::viam::component::camera::v1::GetImagesResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::camera::v1::GetImagesRequest, ::viam::component::camera::v1::GetImagesResponse>* streamer) { return this->StreamedGetImages(context, streamer); @@ -1076,8 +1476,8 @@ class CameraService final { ::grpc::Service::MarkMethodStreamed(2, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::camera::v1::RenderFrameRequest, ::google::api::HttpBody>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::camera::v1::RenderFrameRequest, ::google::api::HttpBody>* streamer) { return this->StreamedRenderFrame(context, streamer); @@ -1103,8 +1503,8 @@ class CameraService final { ::grpc::Service::MarkMethodStreamed(3, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::camera::v1::GetPointCloudRequest, ::viam::component::camera::v1::GetPointCloudResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::camera::v1::GetPointCloudRequest, ::viam::component::camera::v1::GetPointCloudResponse>* streamer) { return this->StreamedGetPointCloud(context, streamer); @@ -1130,8 +1530,8 @@ class CameraService final { ::grpc::Service::MarkMethodStreamed(4, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::camera::v1::GetPropertiesRequest, ::viam::component::camera::v1::GetPropertiesResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::camera::v1::GetPropertiesRequest, ::viam::component::camera::v1::GetPropertiesResponse>* streamer) { return this->StreamedGetProperties(context, streamer); @@ -1157,8 +1557,8 @@ class CameraService final { ::grpc::Service::MarkMethodStreamed(5, new ::grpc::internal::StreamedUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* streamer) { return this->StreamedDoCommand(context, streamer); @@ -1184,8 +1584,8 @@ class CameraService final { ::grpc::Service::MarkMethodStreamed(6, new ::grpc::internal::StreamedUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>* streamer) { return this->StreamedGetGeometries(context, streamer); diff --git a/src/viam/api/component/camera/v1/camera.pb.cc b/src/viam/api/component/camera/v1/camera.pb.cc index 75df482c2..5ca230592 100644 --- a/src/viam/api/component/camera/v1/camera.pb.cc +++ b/src/viam/api/component/camera/v1/camera.pb.cc @@ -4,996 +4,804 @@ #include "component/camera/v1/camera.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace viam { namespace component { namespace camera { namespace v1 { - -inline constexpr Property::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : frame_format_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - width_px_{0}, - height_px_{0}, - frame_rate_{0}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR Property::Property(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct PropertyDefaultTypeInternal { - PROTOBUF_CONSTEXPR PropertyDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~PropertyDefaultTypeInternal() {} - union { - Property _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PropertyDefaultTypeInternal _Property_default_instance_; - -inline constexpr IntrinsicParameters::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : width_px_{0u}, - height_px_{0u}, - focal_x_px_{0}, - focal_y_px_{0}, - center_x_px_{0}, - center_y_px_{0}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR IntrinsicParameters::IntrinsicParameters(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct IntrinsicParametersDefaultTypeInternal { - PROTOBUF_CONSTEXPR IntrinsicParametersDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~IntrinsicParametersDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR GetImageRequest::GetImageRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , mime_type_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} +struct GetImageRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetImageRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetImageRequestDefaultTypeInternal() {} union { - IntrinsicParameters _instance; + GetImageRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IntrinsicParametersDefaultTypeInternal _IntrinsicParameters_default_instance_; - -inline constexpr Image::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : source_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - image_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - format_{static_cast< ::viam::component::camera::v1::Format >(0)}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR Image::Image(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ImageDefaultTypeInternal { - PROTOBUF_CONSTEXPR ImageDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ImageDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetImageRequestDefaultTypeInternal _GetImageRequest_default_instance_; +PROTOBUF_CONSTEXPR GetImageResponse::GetImageResponse( + ::_pbi::ConstantInitialized) + : mime_type_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , image_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct GetImageResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetImageResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetImageResponseDefaultTypeInternal() {} union { - Image _instance; + GetImageResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ImageDefaultTypeInternal _Image_default_instance_; - -inline constexpr GetPropertiesRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetPropertiesRequest::GetPropertiesRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetPropertiesRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetPropertiesRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetPropertiesRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetImageResponseDefaultTypeInternal _GetImageResponse_default_instance_; +PROTOBUF_CONSTEXPR GetImagesRequest::GetImagesRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct GetImagesRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetImagesRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetImagesRequestDefaultTypeInternal() {} union { - GetPropertiesRequest _instance; + GetImagesRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPropertiesRequestDefaultTypeInternal _GetPropertiesRequest_default_instance_; - -inline constexpr GetPointCloudResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : mime_type_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - point_cloud_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetPointCloudResponse::GetPointCloudResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetPointCloudResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetPointCloudResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetPointCloudResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetImagesRequestDefaultTypeInternal _GetImagesRequest_default_instance_; +PROTOBUF_CONSTEXPR GetImagesResponse::GetImagesResponse( + ::_pbi::ConstantInitialized) + : images_() + , response_metadata_(nullptr){} +struct GetImagesResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetImagesResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetImagesResponseDefaultTypeInternal() {} union { - GetPointCloudResponse _instance; + GetImagesResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPointCloudResponseDefaultTypeInternal _GetPointCloudResponse_default_instance_; - -inline constexpr GetImagesRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetImagesRequest::GetImagesRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetImagesRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetImagesRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetImagesRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetImagesResponseDefaultTypeInternal _GetImagesResponse_default_instance_; +PROTOBUF_CONSTEXPR Image::Image( + ::_pbi::ConstantInitialized) + : source_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , image_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , format_(0) +{} +struct ImageDefaultTypeInternal { + PROTOBUF_CONSTEXPR ImageDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ImageDefaultTypeInternal() {} union { - GetImagesRequest _instance; + Image _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetImagesRequestDefaultTypeInternal _GetImagesRequest_default_instance_; - -inline constexpr GetImageResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : mime_type_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - image_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetImageResponse::GetImageResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetImageResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetImageResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetImageResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ImageDefaultTypeInternal _Image_default_instance_; +PROTOBUF_CONSTEXPR RenderFrameRequest::RenderFrameRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , mime_type_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} +struct RenderFrameRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR RenderFrameRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RenderFrameRequestDefaultTypeInternal() {} union { - GetImageResponse _instance; + RenderFrameRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetImageResponseDefaultTypeInternal _GetImageResponse_default_instance_; - -inline constexpr DistortionParameters::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : parameters_{}, - model_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR DistortionParameters::DistortionParameters(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct DistortionParametersDefaultTypeInternal { - PROTOBUF_CONSTEXPR DistortionParametersDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~DistortionParametersDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RenderFrameRequestDefaultTypeInternal _RenderFrameRequest_default_instance_; +PROTOBUF_CONSTEXPR GetPointCloudRequest::GetPointCloudRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , mime_type_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} +struct GetPointCloudRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPointCloudRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPointCloudRequestDefaultTypeInternal() {} union { - DistortionParameters _instance; + GetPointCloudRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DistortionParametersDefaultTypeInternal _DistortionParameters_default_instance_; - -inline constexpr Webcam::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : properties_{}, - label_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - status_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR Webcam::Webcam(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct WebcamDefaultTypeInternal { - PROTOBUF_CONSTEXPR WebcamDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~WebcamDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPointCloudRequestDefaultTypeInternal _GetPointCloudRequest_default_instance_; +PROTOBUF_CONSTEXPR GetPointCloudResponse::GetPointCloudResponse( + ::_pbi::ConstantInitialized) + : mime_type_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , point_cloud_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct GetPointCloudResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPointCloudResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPointCloudResponseDefaultTypeInternal() {} union { - Webcam _instance; + GetPointCloudResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WebcamDefaultTypeInternal _Webcam_default_instance_; - -inline constexpr RenderFrameRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - mime_type_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR RenderFrameRequest::RenderFrameRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct RenderFrameRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR RenderFrameRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RenderFrameRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPointCloudResponseDefaultTypeInternal _GetPointCloudResponse_default_instance_; +PROTOBUF_CONSTEXPR GetPropertiesRequest::GetPropertiesRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct GetPropertiesRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPropertiesRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPropertiesRequestDefaultTypeInternal() {} union { - RenderFrameRequest _instance; + GetPropertiesRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RenderFrameRequestDefaultTypeInternal _RenderFrameRequest_default_instance_; - -inline constexpr GetPropertiesResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - mime_types_{}, - intrinsic_parameters_{nullptr}, - distortion_parameters_{nullptr}, - supports_pcd_{false}, - frame_rate_{0} {} - -template -PROTOBUF_CONSTEXPR GetPropertiesResponse::GetPropertiesResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPropertiesRequestDefaultTypeInternal _GetPropertiesRequest_default_instance_; +PROTOBUF_CONSTEXPR GetPropertiesResponse::GetPropertiesResponse( + ::_pbi::ConstantInitialized) + : mime_types_() + , intrinsic_parameters_(nullptr) + , distortion_parameters_(nullptr) + , supports_pcd_(false) + , frame_rate_(0){} struct GetPropertiesResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetPropertiesResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GetPropertiesResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~GetPropertiesResponseDefaultTypeInternal() {} union { GetPropertiesResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPropertiesResponseDefaultTypeInternal _GetPropertiesResponse_default_instance_; - -inline constexpr GetPointCloudRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - mime_type_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetPointCloudRequest::GetPointCloudRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetPointCloudRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetPointCloudRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetPointCloudRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPropertiesResponseDefaultTypeInternal _GetPropertiesResponse_default_instance_; +PROTOBUF_CONSTEXPR Webcams::Webcams( + ::_pbi::ConstantInitialized) + : webcams_(){} +struct WebcamsDefaultTypeInternal { + PROTOBUF_CONSTEXPR WebcamsDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~WebcamsDefaultTypeInternal() {} union { - GetPointCloudRequest _instance; + Webcams _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPointCloudRequestDefaultTypeInternal _GetPointCloudRequest_default_instance_; - -inline constexpr GetImageRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - mime_type_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetImageRequest::GetImageRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetImageRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetImageRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetImageRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WebcamsDefaultTypeInternal _Webcams_default_instance_; +PROTOBUF_CONSTEXPR Webcam::Webcam( + ::_pbi::ConstantInitialized) + : properties_() + , label_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , status_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct WebcamDefaultTypeInternal { + PROTOBUF_CONSTEXPR WebcamDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~WebcamDefaultTypeInternal() {} union { - GetImageRequest _instance; + Webcam _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetImageRequestDefaultTypeInternal _GetImageRequest_default_instance_; - -inline constexpr Webcams::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : webcams_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR Webcams::Webcams(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct WebcamsDefaultTypeInternal { - PROTOBUF_CONSTEXPR WebcamsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~WebcamsDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WebcamDefaultTypeInternal _Webcam_default_instance_; +PROTOBUF_CONSTEXPR Property::Property( + ::_pbi::ConstantInitialized) + : frame_format_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , width_px_(0) + , height_px_(0) + , frame_rate_(0){} +struct PropertyDefaultTypeInternal { + PROTOBUF_CONSTEXPR PropertyDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~PropertyDefaultTypeInternal() {} union { - Webcams _instance; + Property _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WebcamsDefaultTypeInternal _Webcams_default_instance_; - -inline constexpr GetImagesResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - images_{}, - response_metadata_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetImagesResponse::GetImagesResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetImagesResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetImagesResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetImagesResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PropertyDefaultTypeInternal _Property_default_instance_; +PROTOBUF_CONSTEXPR IntrinsicParameters::IntrinsicParameters( + ::_pbi::ConstantInitialized) + : width_px_(0u) + , height_px_(0u) + , focal_x_px_(0) + , focal_y_px_(0) + , center_x_px_(0) + , center_y_px_(0){} +struct IntrinsicParametersDefaultTypeInternal { + PROTOBUF_CONSTEXPR IntrinsicParametersDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~IntrinsicParametersDefaultTypeInternal() {} union { - GetImagesResponse _instance; + IntrinsicParameters _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetImagesResponseDefaultTypeInternal _GetImagesResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IntrinsicParametersDefaultTypeInternal _IntrinsicParameters_default_instance_; +PROTOBUF_CONSTEXPR DistortionParameters::DistortionParameters( + ::_pbi::ConstantInitialized) + : parameters_() + , model_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct DistortionParametersDefaultTypeInternal { + PROTOBUF_CONSTEXPR DistortionParametersDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DistortionParametersDefaultTypeInternal() {} + union { + DistortionParameters _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DistortionParametersDefaultTypeInternal _DistortionParameters_default_instance_; } // namespace v1 } // namespace camera } // namespace component } // namespace viam static ::_pb::Metadata file_level_metadata_component_2fcamera_2fv1_2fcamera_2eproto[15]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_component_2fcamera_2fv1_2fcamera_2eproto[1]; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_component_2fcamera_2fv1_2fcamera_2eproto = nullptr; -const ::uint32_t TableStruct_component_2fcamera_2fv1_2fcamera_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetImageRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetImageRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetImageRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetImageRequest, _impl_.mime_type_), - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetImageRequest, _impl_.extra_), - ~0u, - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetImageResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetImageResponse, _impl_.mime_type_), - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetImageResponse, _impl_.image_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetImagesRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetImagesRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetImagesResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetImagesResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetImagesResponse, _impl_.images_), - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetImagesResponse, _impl_.response_metadata_), - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::Image, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::Image, _impl_.source_name_), - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::Image, _impl_.format_), - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::Image, _impl_.image_), - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::RenderFrameRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::RenderFrameRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::RenderFrameRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::RenderFrameRequest, _impl_.mime_type_), - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::RenderFrameRequest, _impl_.extra_), - ~0u, - ~0u, - 0, - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetPointCloudRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetPointCloudRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetPointCloudRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetPointCloudRequest, _impl_.mime_type_), - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetPointCloudRequest, _impl_.extra_), - ~0u, - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetPointCloudResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetPointCloudResponse, _impl_.mime_type_), - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetPointCloudResponse, _impl_.point_cloud_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetPropertiesRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetPropertiesRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetPropertiesResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetPropertiesResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetPropertiesResponse, _impl_.supports_pcd_), - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetPropertiesResponse, _impl_.intrinsic_parameters_), - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetPropertiesResponse, _impl_.distortion_parameters_), - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetPropertiesResponse, _impl_.mime_types_), - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetPropertiesResponse, _impl_.frame_rate_), - ~0u, - 0, - 1, - ~0u, - 2, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::Webcams, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::Webcams, _impl_.webcams_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::Webcam, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::Webcam, _impl_.label_), - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::Webcam, _impl_.status_), - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::Webcam, _impl_.properties_), - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::Webcam, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::Webcam, _impl_.id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::Property, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::Property, _impl_.width_px_), - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::Property, _impl_.height_px_), - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::Property, _impl_.frame_format_), - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::Property, _impl_.frame_rate_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::IntrinsicParameters, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::IntrinsicParameters, _impl_.width_px_), - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::IntrinsicParameters, _impl_.height_px_), - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::IntrinsicParameters, _impl_.focal_x_px_), - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::IntrinsicParameters, _impl_.focal_y_px_), - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::IntrinsicParameters, _impl_.center_x_px_), - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::IntrinsicParameters, _impl_.center_y_px_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::DistortionParameters, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::DistortionParameters, _impl_.model_), - PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::DistortionParameters, _impl_.parameters_), +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_component_2fcamera_2fv1_2fcamera_2eproto = nullptr; + +const uint32_t TableStruct_component_2fcamera_2fv1_2fcamera_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetImageRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetImageRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetImageRequest, mime_type_), + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetImageRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetImageResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetImageResponse, mime_type_), + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetImageResponse, image_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetImagesRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetImagesRequest, name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetImagesResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetImagesResponse, images_), + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetImagesResponse, response_metadata_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::Image, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::Image, source_name_), + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::Image, format_), + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::Image, image_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::RenderFrameRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::RenderFrameRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::RenderFrameRequest, mime_type_), + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::RenderFrameRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetPointCloudRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetPointCloudRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetPointCloudRequest, mime_type_), + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetPointCloudRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetPointCloudResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetPointCloudResponse, mime_type_), + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetPointCloudResponse, point_cloud_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetPropertiesRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetPropertiesRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetPropertiesResponse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetPropertiesResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetPropertiesResponse, supports_pcd_), + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetPropertiesResponse, intrinsic_parameters_), + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetPropertiesResponse, distortion_parameters_), + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetPropertiesResponse, mime_types_), + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::GetPropertiesResponse, frame_rate_), + ~0u, + ~0u, + ~0u, + ~0u, + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::Webcams, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::Webcams, webcams_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::Webcam, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::Webcam, label_), + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::Webcam, status_), + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::Webcam, properties_), + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::Webcam, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::Webcam, id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::Property, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::Property, width_px_), + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::Property, height_px_), + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::Property, frame_format_), + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::Property, frame_rate_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::IntrinsicParameters, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::IntrinsicParameters, width_px_), + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::IntrinsicParameters, height_px_), + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::IntrinsicParameters, focal_x_px_), + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::IntrinsicParameters, focal_y_px_), + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::IntrinsicParameters, center_x_px_), + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::IntrinsicParameters, center_y_px_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::DistortionParameters, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::DistortionParameters, model_), + PROTOBUF_FIELD_OFFSET(::viam::component::camera::v1::DistortionParameters, parameters_), }; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, 11, -1, sizeof(::viam::component::camera::v1::GetImageRequest)}, - {14, -1, -1, sizeof(::viam::component::camera::v1::GetImageResponse)}, - {24, -1, -1, sizeof(::viam::component::camera::v1::GetImagesRequest)}, - {33, 43, -1, sizeof(::viam::component::camera::v1::GetImagesResponse)}, - {45, -1, -1, sizeof(::viam::component::camera::v1::Image)}, - {56, 67, -1, sizeof(::viam::component::camera::v1::RenderFrameRequest)}, - {70, 81, -1, sizeof(::viam::component::camera::v1::GetPointCloudRequest)}, - {84, -1, -1, sizeof(::viam::component::camera::v1::GetPointCloudResponse)}, - {94, -1, -1, sizeof(::viam::component::camera::v1::GetPropertiesRequest)}, - {103, 116, -1, sizeof(::viam::component::camera::v1::GetPropertiesResponse)}, - {121, -1, -1, sizeof(::viam::component::camera::v1::Webcams)}, - {130, -1, -1, sizeof(::viam::component::camera::v1::Webcam)}, - {143, -1, -1, sizeof(::viam::component::camera::v1::Property)}, - {155, -1, -1, sizeof(::viam::component::camera::v1::IntrinsicParameters)}, - {169, -1, -1, sizeof(::viam::component::camera::v1::DistortionParameters)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::component::camera::v1::GetImageRequest)}, + { 9, -1, -1, sizeof(::viam::component::camera::v1::GetImageResponse)}, + { 17, -1, -1, sizeof(::viam::component::camera::v1::GetImagesRequest)}, + { 24, -1, -1, sizeof(::viam::component::camera::v1::GetImagesResponse)}, + { 32, -1, -1, sizeof(::viam::component::camera::v1::Image)}, + { 41, -1, -1, sizeof(::viam::component::camera::v1::RenderFrameRequest)}, + { 50, -1, -1, sizeof(::viam::component::camera::v1::GetPointCloudRequest)}, + { 59, -1, -1, sizeof(::viam::component::camera::v1::GetPointCloudResponse)}, + { 67, -1, -1, sizeof(::viam::component::camera::v1::GetPropertiesRequest)}, + { 74, 85, -1, sizeof(::viam::component::camera::v1::GetPropertiesResponse)}, + { 90, -1, -1, sizeof(::viam::component::camera::v1::Webcams)}, + { 97, -1, -1, sizeof(::viam::component::camera::v1::Webcam)}, + { 108, -1, -1, sizeof(::viam::component::camera::v1::Property)}, + { 118, -1, -1, sizeof(::viam::component::camera::v1::IntrinsicParameters)}, + { 130, -1, -1, sizeof(::viam::component::camera::v1::DistortionParameters)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::viam::component::camera::v1::_GetImageRequest_default_instance_._instance, - &::viam::component::camera::v1::_GetImageResponse_default_instance_._instance, - &::viam::component::camera::v1::_GetImagesRequest_default_instance_._instance, - &::viam::component::camera::v1::_GetImagesResponse_default_instance_._instance, - &::viam::component::camera::v1::_Image_default_instance_._instance, - &::viam::component::camera::v1::_RenderFrameRequest_default_instance_._instance, - &::viam::component::camera::v1::_GetPointCloudRequest_default_instance_._instance, - &::viam::component::camera::v1::_GetPointCloudResponse_default_instance_._instance, - &::viam::component::camera::v1::_GetPropertiesRequest_default_instance_._instance, - &::viam::component::camera::v1::_GetPropertiesResponse_default_instance_._instance, - &::viam::component::camera::v1::_Webcams_default_instance_._instance, - &::viam::component::camera::v1::_Webcam_default_instance_._instance, - &::viam::component::camera::v1::_Property_default_instance_._instance, - &::viam::component::camera::v1::_IntrinsicParameters_default_instance_._instance, - &::viam::component::camera::v1::_DistortionParameters_default_instance_._instance, + &::viam::component::camera::v1::_GetImageRequest_default_instance_._instance, + &::viam::component::camera::v1::_GetImageResponse_default_instance_._instance, + &::viam::component::camera::v1::_GetImagesRequest_default_instance_._instance, + &::viam::component::camera::v1::_GetImagesResponse_default_instance_._instance, + &::viam::component::camera::v1::_Image_default_instance_._instance, + &::viam::component::camera::v1::_RenderFrameRequest_default_instance_._instance, + &::viam::component::camera::v1::_GetPointCloudRequest_default_instance_._instance, + &::viam::component::camera::v1::_GetPointCloudResponse_default_instance_._instance, + &::viam::component::camera::v1::_GetPropertiesRequest_default_instance_._instance, + &::viam::component::camera::v1::_GetPropertiesResponse_default_instance_._instance, + &::viam::component::camera::v1::_Webcams_default_instance_._instance, + &::viam::component::camera::v1::_Webcam_default_instance_._instance, + &::viam::component::camera::v1::_Property_default_instance_._instance, + &::viam::component::camera::v1::_IntrinsicParameters_default_instance_._instance, + &::viam::component::camera::v1::_DistortionParameters_default_instance_._instance, }; -const char descriptor_table_protodef_component_2fcamera_2fv1_2fcamera_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n component/camera/v1/camera.proto\022\030viam" - ".component.camera.v1\032\026common/v1/common.p" - "roto\032\034google/api/annotations.proto\032\031goog" - "le/api/httpbody.proto\032\034google/protobuf/s" - "truct.proto\"q\n\017GetImageRequest\022\022\n\004name\030\001" - " \001(\tR\004name\022\033\n\tmime_type\030\002 \001(\tR\010mimeType\022" - "-\n\005extra\030c \001(\0132\027.google.protobuf.StructR" - "\005extra\"E\n\020GetImageResponse\022\033\n\tmime_type\030" - "\001 \001(\tR\010mimeType\022\024\n\005image\030\002 \001(\014R\005image\"&\n" - "\020GetImagesRequest\022\022\n\004name\030\001 \001(\tR\004name\"\235\001" - "\n\021GetImagesResponse\0227\n\006images\030\001 \003(\0132\037.vi" - "am.component.camera.v1.ImageR\006images\022O\n\021" - "response_metadata\030\244\222\005 \001(\0132 .viam.common." - "v1.ResponseMetadataR\020responseMetadata\"x\n" - "\005Image\022\037\n\013source_name\030\001 \001(\tR\nsourceName\022" - "8\n\006format\030\002 \001(\0162 .viam.component.camera." - "v1.FormatR\006format\022\024\n\005image\030\003 \001(\014R\005image\"" - "t\n\022RenderFrameRequest\022\022\n\004name\030\001 \001(\tR\004nam" - "e\022\033\n\tmime_type\030\002 \001(\tR\010mimeType\022-\n\005extra\030" - "c \001(\0132\027.google.protobuf.StructR\005extra\"v\n" - "\024GetPointCloudRequest\022\022\n\004name\030\001 \001(\tR\004nam" - "e\022\033\n\tmime_type\030\002 \001(\tR\010mimeType\022-\n\005extra\030" - "c \001(\0132\027.google.protobuf.StructR\005extra\"U\n" - "\025GetPointCloudResponse\022\033\n\tmime_type\030\001 \001(" - "\tR\010mimeType\022\037\n\013point_cloud\030\002 \001(\014R\npointC" - "loud\"*\n\024GetPropertiesRequest\022\022\n\004name\030\001 \001" - "(\tR\004name\"\323\002\n\025GetPropertiesResponse\022!\n\014su" - "pports_pcd\030\001 \001(\010R\013supportsPcd\022`\n\024intrins" - "ic_parameters\030\002 \001(\0132-.viam.component.cam" - "era.v1.IntrinsicParametersR\023intrinsicPar" - "ameters\022c\n\025distortion_parameters\030\003 \001(\0132." - ".viam.component.camera.v1.DistortionPara" - "metersR\024distortionParameters\022\035\n\nmime_typ" - "es\030\004 \003(\tR\tmimeTypes\022\"\n\nframe_rate\030\005 \001(\002H" - "\000R\tframeRate\210\001\001B\r\n\013_frame_rate\"E\n\007Webcam" - "s\022:\n\007webcams\030\001 \003(\0132 .viam.component.came" - "ra.v1.WebcamR\007webcams\"\236\001\n\006Webcam\022\024\n\005labe" - "l\030\001 \001(\tR\005label\022\026\n\006status\030\002 \001(\tR\006status\022B" - "\n\nproperties\030\003 \003(\0132\".viam.component.came" - "ra.v1.PropertyR\nproperties\022\022\n\004name\030\004 \001(\t" - "R\004name\022\016\n\002id\030\005 \001(\tR\002id\"\204\001\n\010Property\022\031\n\010w" - "idth_px\030\001 \001(\005R\007widthPx\022\033\n\theight_px\030\002 \001(" - "\005R\010heightPx\022!\n\014frame_format\030\003 \001(\tR\013frame" - "Format\022\035\n\nframe_rate\030\004 \001(\002R\tframeRate\"\311\001" - "\n\023IntrinsicParameters\022\031\n\010width_px\030\001 \001(\rR" - "\007widthPx\022\033\n\theight_px\030\002 \001(\rR\010heightPx\022\034\n" - "\nfocal_x_px\030\003 \001(\001R\010focalXPx\022\034\n\nfocal_y_p" - "x\030\004 \001(\001R\010focalYPx\022\036\n\013center_x_px\030\005 \001(\001R\t" - "centerXPx\022\036\n\013center_y_px\030\006 \001(\001R\tcenterYP" - "x\"L\n\024DistortionParameters\022\024\n\005model\030\001 \001(\t" - "R\005model\022\036\n\nparameters\030\002 \003(\001R\nparameters*" - "l\n\006Format\022\026\n\022FORMAT_UNSPECIFIED\020\000\022\023\n\017FOR" - "MAT_RAW_RGBA\020\001\022\024\n\020FORMAT_RAW_DEPTH\020\002\022\017\n\013" - "FORMAT_JPEG\020\003\022\016\n\nFORMAT_PNG\020\0042\317\010\n\rCamera" - "Service\022\225\001\n\010GetImage\022).viam.component.ca" - "mera.v1.GetImageRequest\032*.viam.component" - ".camera.v1.GetImageResponse\"2\202\323\344\223\002,\022*/vi" - "am/api/v1/component/camera/{name}/image\022" - "\231\001\n\tGetImages\022*.viam.component.camera.v1" - ".GetImagesRequest\032+.viam.component.camer" - "a.v1.GetImagesResponse\"3\202\323\344\223\002-\022+/viam/ap" - "i/v1/component/camera/{name}/images\022\214\001\n\013" - "RenderFrame\022,.viam.component.camera.v1.R" - "enderFrameRequest\032\024.google.api.HttpBody\"" - "9\202\323\344\223\0023\0221/viam/api/v1/component/camera/{" - "name}/render_frame\022\252\001\n\rGetPointCloud\022..v" - "iam.component.camera.v1.GetPointCloudReq" - "uest\032/.viam.component.camera.v1.GetPoint" - "CloudResponse\"8\202\323\344\223\0022\0220/viam/api/v1/comp" - "onent/camera/{name}/point_cloud\022\251\001\n\rGetP" - "roperties\022..viam.component.camera.v1.Get" - "PropertiesRequest\032/.viam.component.camer" - "a.v1.GetPropertiesResponse\"7\202\323\344\223\0021\022//via" - "m/api/v1/component/camera/{name}/propert" - "ies\022\211\001\n\tDoCommand\022 .viam.common.v1.DoCom" - "mandRequest\032!.viam.common.v1.DoCommandRe" - "sponse\"7\202\323\344\223\0021\"//viam/api/v1/component/c" - "amera/{name}/do_command\022\225\001\n\rGetGeometrie" - "s\022$.viam.common.v1.GetGeometriesRequest\032" - "%.viam.common.v1.GetGeometriesResponse\"7" - "\202\323\344\223\0021\022//viam/api/v1/component/camera/{n" - "ame}/geometriesB\323\001\n\034com.viam.component.c" - "amera.v1B\013CameraProtoP\001Z#go.viam.com/api" - "/component/camera/v1\242\002\003VCC\252\002\030Viam.Compon" - "ent.Camera.V1\312\002\030Viam\\Component\\Camera\\V1" - "\342\002$Viam\\Component\\Camera\\V1\\GPBMetadata\352" - "\002\033Viam::Component::Camera::V1b\006proto3" -}; -static const ::_pbi::DescriptorTable* const descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_deps[4] = - { - &::descriptor_table_common_2fv1_2fcommon_2eproto, - &::descriptor_table_google_2fapi_2fannotations_2eproto, - &::descriptor_table_google_2fapi_2fhttpbody_2eproto, - &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, + +const char descriptor_table_protodef_component_2fcamera_2fv1_2fcamera_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n component/camera/v1/camera.proto\022\030viam" + ".component.camera.v1\032\026common/v1/common.p" + "roto\032\034google/api/annotations.proto\032\031goog" + "le/api/httpbody.proto\032\034google/protobuf/s" + "truct.proto\"q\n\017GetImageRequest\022\022\n\004name\030\001" + " \001(\tR\004name\022\033\n\tmime_type\030\002 \001(\tR\010mimeType\022" + "-\n\005extra\030c \001(\0132\027.google.protobuf.StructR" + "\005extra\"E\n\020GetImageResponse\022\033\n\tmime_type\030" + "\001 \001(\tR\010mimeType\022\024\n\005image\030\002 \001(\014R\005image\"&\n" + "\020GetImagesRequest\022\022\n\004name\030\001 \001(\tR\004name\"\235\001" + "\n\021GetImagesResponse\0227\n\006images\030\001 \003(\0132\037.vi" + "am.component.camera.v1.ImageR\006images\022O\n\021" + "response_metadata\030\244\222\005 \001(\0132 .viam.common." + "v1.ResponseMetadataR\020responseMetadata\"x\n" + "\005Image\022\037\n\013source_name\030\001 \001(\tR\nsourceName\022" + "8\n\006format\030\002 \001(\0162 .viam.component.camera." + "v1.FormatR\006format\022\024\n\005image\030\003 \001(\014R\005image\"" + "t\n\022RenderFrameRequest\022\022\n\004name\030\001 \001(\tR\004nam" + "e\022\033\n\tmime_type\030\002 \001(\tR\010mimeType\022-\n\005extra\030" + "c \001(\0132\027.google.protobuf.StructR\005extra\"v\n" + "\024GetPointCloudRequest\022\022\n\004name\030\001 \001(\tR\004nam" + "e\022\033\n\tmime_type\030\002 \001(\tR\010mimeType\022-\n\005extra\030" + "c \001(\0132\027.google.protobuf.StructR\005extra\"U\n" + "\025GetPointCloudResponse\022\033\n\tmime_type\030\001 \001(" + "\tR\010mimeType\022\037\n\013point_cloud\030\002 \001(\014R\npointC" + "loud\"*\n\024GetPropertiesRequest\022\022\n\004name\030\001 \001" + "(\tR\004name\"\323\002\n\025GetPropertiesResponse\022!\n\014su" + "pports_pcd\030\001 \001(\010R\013supportsPcd\022`\n\024intrins" + "ic_parameters\030\002 \001(\0132-.viam.component.cam" + "era.v1.IntrinsicParametersR\023intrinsicPar" + "ameters\022c\n\025distortion_parameters\030\003 \001(\0132." + ".viam.component.camera.v1.DistortionPara" + "metersR\024distortionParameters\022\035\n\nmime_typ" + "es\030\004 \003(\tR\tmimeTypes\022\"\n\nframe_rate\030\005 \001(\002H" + "\000R\tframeRate\210\001\001B\r\n\013_frame_rate\"E\n\007Webcam" + "s\022:\n\007webcams\030\001 \003(\0132 .viam.component.came" + "ra.v1.WebcamR\007webcams\"\236\001\n\006Webcam\022\024\n\005labe" + "l\030\001 \001(\tR\005label\022\026\n\006status\030\002 \001(\tR\006status\022B" + "\n\nproperties\030\003 \003(\0132\".viam.component.came" + "ra.v1.PropertyR\nproperties\022\022\n\004name\030\004 \001(\t" + "R\004name\022\016\n\002id\030\005 \001(\tR\002id\"\204\001\n\010Property\022\031\n\010w" + "idth_px\030\001 \001(\005R\007widthPx\022\033\n\theight_px\030\002 \001(" + "\005R\010heightPx\022!\n\014frame_format\030\003 \001(\tR\013frame" + "Format\022\035\n\nframe_rate\030\004 \001(\002R\tframeRate\"\311\001" + "\n\023IntrinsicParameters\022\031\n\010width_px\030\001 \001(\rR" + "\007widthPx\022\033\n\theight_px\030\002 \001(\rR\010heightPx\022\034\n" + "\nfocal_x_px\030\003 \001(\001R\010focalXPx\022\034\n\nfocal_y_p" + "x\030\004 \001(\001R\010focalYPx\022\036\n\013center_x_px\030\005 \001(\001R\t" + "centerXPx\022\036\n\013center_y_px\030\006 \001(\001R\tcenterYP" + "x\"L\n\024DistortionParameters\022\024\n\005model\030\001 \001(\t" + "R\005model\022\036\n\nparameters\030\002 \003(\001R\nparameters*" + "l\n\006Format\022\026\n\022FORMAT_UNSPECIFIED\020\000\022\023\n\017FOR" + "MAT_RAW_RGBA\020\001\022\024\n\020FORMAT_RAW_DEPTH\020\002\022\017\n\013" + "FORMAT_JPEG\020\003\022\016\n\nFORMAT_PNG\020\0042\317\010\n\rCamera" + "Service\022\225\001\n\010GetImage\022).viam.component.ca" + "mera.v1.GetImageRequest\032*.viam.component" + ".camera.v1.GetImageResponse\"2\202\323\344\223\002,\022*/vi" + "am/api/v1/component/camera/{name}/image\022" + "\231\001\n\tGetImages\022*.viam.component.camera.v1" + ".GetImagesRequest\032+.viam.component.camer" + "a.v1.GetImagesResponse\"3\202\323\344\223\002-\022+/viam/ap" + "i/v1/component/camera/{name}/images\022\214\001\n\013" + "RenderFrame\022,.viam.component.camera.v1.R" + "enderFrameRequest\032\024.google.api.HttpBody\"" + "9\202\323\344\223\0023\0221/viam/api/v1/component/camera/{" + "name}/render_frame\022\252\001\n\rGetPointCloud\022..v" + "iam.component.camera.v1.GetPointCloudReq" + "uest\032/.viam.component.camera.v1.GetPoint" + "CloudResponse\"8\202\323\344\223\0022\0220/viam/api/v1/comp" + "onent/camera/{name}/point_cloud\022\251\001\n\rGetP" + "roperties\022..viam.component.camera.v1.Get" + "PropertiesRequest\032/.viam.component.camer" + "a.v1.GetPropertiesResponse\"7\202\323\344\223\0021\022//via" + "m/api/v1/component/camera/{name}/propert" + "ies\022\211\001\n\tDoCommand\022 .viam.common.v1.DoCom" + "mandRequest\032!.viam.common.v1.DoCommandRe" + "sponse\"7\202\323\344\223\0021\"//viam/api/v1/component/c" + "amera/{name}/do_command\022\225\001\n\rGetGeometrie" + "s\022$.viam.common.v1.GetGeometriesRequest\032" + "%.viam.common.v1.GetGeometriesResponse\"7" + "\202\323\344\223\0021\022//viam/api/v1/component/camera/{n" + "ame}/geometriesBC\n\034com.viam.component.ca" + "mera.v1Z#go.viam.com/api/component/camer" + "a/v1b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_deps[4] = { + &::descriptor_table_common_2fv1_2fcommon_2eproto, + &::descriptor_table_google_2fapi_2fannotations_2eproto, + &::descriptor_table_google_2fapi_2fhttpbody_2eproto, + &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, }; -static ::absl::once_flag descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_once; +static ::_pbi::once_flag descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto = { - false, - false, - 3477, - descriptor_table_protodef_component_2fcamera_2fv1_2fcamera_2eproto, + false, false, 3332, descriptor_table_protodef_component_2fcamera_2fv1_2fcamera_2eproto, "component/camera/v1/camera.proto", - &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_once, - descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_deps, - 4, - 15, - schemas, - file_default_instances, - TableStruct_component_2fcamera_2fv1_2fcamera_2eproto::offsets, - file_level_metadata_component_2fcamera_2fv1_2fcamera_2eproto, - file_level_enum_descriptors_component_2fcamera_2fv1_2fcamera_2eproto, + &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_once, descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_deps, 4, 15, + schemas, file_default_instances, TableStruct_component_2fcamera_2fv1_2fcamera_2eproto::offsets, + file_level_metadata_component_2fcamera_2fv1_2fcamera_2eproto, file_level_enum_descriptors_component_2fcamera_2fv1_2fcamera_2eproto, file_level_service_descriptors_component_2fcamera_2fv1_2fcamera_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_getter() { return &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_component_2fcamera_2fv1_2fcamera_2eproto(&descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_component_2fcamera_2fv1_2fcamera_2eproto(&descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto); namespace viam { namespace component { namespace camera { namespace v1 { -const ::google::protobuf::EnumDescriptor* Format_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto); +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Format_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto); return file_level_enum_descriptors_component_2fcamera_2fv1_2fcamera_2eproto[0]; } -PROTOBUF_CONSTINIT const uint32_t Format_internal_data_[] = { - 327680u, 0u, }; bool Format_IsValid(int value) { - return 0 <= value && value <= 4; + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + return true; + default: + return false; + } } + + // =================================================================== class GetImageRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetImageRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const GetImageRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetImageRequest* msg); }; -const ::google::protobuf::Struct& GetImageRequest::_Internal::extra(const GetImageRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetImageRequest::_Internal::extra(const GetImageRequest* msg) { + return *msg->extra_; } void GetImageRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -GetImageRequest::GetImageRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetImageRequest::GetImageRequest(::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.camera.v1.GetImageRequest) } -inline PROTOBUF_NDEBUG_INLINE GetImageRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_), - mime_type_(arena, from.mime_type_) {} - -GetImageRequest::GetImageRequest( - ::google::protobuf::Arena* arena, - const GetImageRequest& from) - : ::google::protobuf::Message(arena) { - GetImageRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +GetImageRequest::GetImageRequest(const GetImageRequest& 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()); + } + mime_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + mime_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_mime_type().empty()) { + mime_type_.Set(from._internal_mime_type(), + GetArenaForAllocation()); + } + if (from._internal_has_extra()) { + extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.extra_); + } else { + extra_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.component.camera.v1.GetImageRequest) } -inline PROTOBUF_NDEBUG_INLINE GetImageRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena), - mime_type_(arena) {} -inline void GetImageRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void GetImageRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +mime_type_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + mime_type_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + GetImageRequest::~GetImageRequest() { // @@protoc_insertion_point(destructor:viam.component.camera.v1.GetImageRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetImageRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.mime_type_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + mime_type_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void GetImageRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetImageRequest::Clear() { +void GetImageRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.camera.v1.GetImageRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _impl_.mime_type_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetImageRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + mime_type_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetImageRequest::_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.camera.v1.GetImageRequest.name")); + } else + goto handle_unusual; + continue; + // string mime_type = 2 [json_name = "mimeType"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_mime_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.camera.v1.GetImageRequest.mime_type")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 1, 62, 7> GetImageRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetImageRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetImageRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetImageRequest, _impl_.name_)}}, - // string mime_type = 2 [json_name = "mimeType"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(GetImageRequest, _impl_.mime_type_)}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(GetImageRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 2, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(GetImageRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string mime_type = 2 [json_name = "mimeType"]; - {PROTOBUF_FIELD_OFFSET(GetImageRequest, _impl_.mime_type_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(GetImageRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\50\4\11\0\0\0\0\0" - "viam.component.camera.v1.GetImageRequest" - "name" - "mime_type" - }}, -}; - -::uint8_t* GetImageRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetImageRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.camera.v1.GetImageRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.camera.v1.GetImageRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.camera.v1.GetImageRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // string mime_type = 2 [json_name = "mimeType"]; if (!this->_internal_mime_type().empty()) { - const std::string& _s = this->_internal_mime_type(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.camera.v1.GetImageRequest.mime_type"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_mime_type().data(), static_cast(this->_internal_mime_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.camera.v1.GetImageRequest.mime_type"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_mime_type(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.camera.v1.GetImageRequest) return target; } -::size_t GetImageRequest::ByteSizeLong() const { +size_t GetImageRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.camera.v1.GetImageRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // string mime_type = 2 [json_name = "mimeType"]; if (!this->_internal_mime_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_mime_type()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_mime_type()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetImageRequest::_class_data_ = { - GetImageRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetImageRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetImageRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetImageRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetImageRequest::GetClassData() const { return &_class_data_; } + +void GetImageRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetImageRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.camera.v1.GetImageRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetImageRequest::MergeFrom(const GetImageRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.camera.v1.GetImageRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (!from._internal_mime_type().empty()) { - _this->_internal_set_mime_type(from._internal_mime_type()); + _internal_set_mime_type(from._internal_mime_type()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetImageRequest::CopyFrom(const GetImageRequest& from) { @@ -1003,215 +811,236 @@ void GetImageRequest::CopyFrom(const GetImageRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetImageRequest::IsInitialized() const { +bool GetImageRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetImageRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetImageRequest::InternalSwap(GetImageRequest* PROTOBUF_RESTRICT other) { +void GetImageRequest::InternalSwap(GetImageRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.mime_type_, &other->_impl_.mime_type_, arena); - swap(_impl_.extra_, other->_impl_.extra_); -} - -::google::protobuf::Metadata GetImageRequest::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &mime_type_, lhs_arena, + &other->mime_type_, rhs_arena + ); + swap(extra_, other->extra_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetImageRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_getter, &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_once, file_level_metadata_component_2fcamera_2fv1_2fcamera_2eproto[0]); } + // =================================================================== class GetImageResponse::_Internal { public: }; -GetImageResponse::GetImageResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetImageResponse::GetImageResponse(::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.camera.v1.GetImageResponse) } -inline PROTOBUF_NDEBUG_INLINE GetImageResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : mime_type_(arena, from.mime_type_), - image_(arena, from.image_), - _cached_size_{0} {} - -GetImageResponse::GetImageResponse( - ::google::protobuf::Arena* arena, - const GetImageResponse& from) - : ::google::protobuf::Message(arena) { - GetImageResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetImageResponse::GetImageResponse(const GetImageResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + mime_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + mime_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_mime_type().empty()) { + mime_type_.Set(from._internal_mime_type(), + GetArenaForAllocation()); + } + image_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + image_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_image().empty()) { + image_.Set(from._internal_image(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.component.camera.v1.GetImageResponse) } -inline PROTOBUF_NDEBUG_INLINE GetImageResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : mime_type_(arena), - image_(arena), - _cached_size_{0} {} -inline void GetImageResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetImageResponse::SharedCtor() { +mime_type_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + mime_type_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +image_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + image_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + GetImageResponse::~GetImageResponse() { // @@protoc_insertion_point(destructor:viam.component.camera.v1.GetImageResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetImageResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.mime_type_.Destroy(); - _impl_.image_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + mime_type_.Destroy(); + image_.Destroy(); } -PROTOBUF_NOINLINE void GetImageResponse::Clear() { +void GetImageResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetImageResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.camera.v1.GetImageResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.mime_type_.ClearToEmpty(); - _impl_.image_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetImageResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + mime_type_.ClearToEmpty(); + image_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetImageResponse::_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 mime_type = 1 [json_name = "mimeType"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_mime_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.camera.v1.GetImageResponse.mime_type")); + } else + goto handle_unusual; + continue; + // bytes image = 2 [json_name = "image"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_image(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 59, 2> GetImageResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetImageResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // bytes image = 2 [json_name = "image"]; - {::_pbi::TcParser::FastBS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(GetImageResponse, _impl_.image_)}}, - // string mime_type = 1 [json_name = "mimeType"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetImageResponse, _impl_.mime_type_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string mime_type = 1 [json_name = "mimeType"]; - {PROTOBUF_FIELD_OFFSET(GetImageResponse, _impl_.mime_type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // bytes image = 2 [json_name = "image"]; - {PROTOBUF_FIELD_OFFSET(GetImageResponse, _impl_.image_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\51\11\0\0\0\0\0\0" - "viam.component.camera.v1.GetImageResponse" - "mime_type" - }}, -}; - -::uint8_t* GetImageResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetImageResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.camera.v1.GetImageResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string mime_type = 1 [json_name = "mimeType"]; if (!this->_internal_mime_type().empty()) { - const std::string& _s = this->_internal_mime_type(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.camera.v1.GetImageResponse.mime_type"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_mime_type().data(), static_cast(this->_internal_mime_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.camera.v1.GetImageResponse.mime_type"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_mime_type(), target); } // bytes image = 2 [json_name = "image"]; if (!this->_internal_image().empty()) { - const std::string& _s = this->_internal_image(); - target = stream->WriteBytesMaybeAliased(2, _s, target); + target = stream->WriteBytesMaybeAliased( + 2, this->_internal_image(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.camera.v1.GetImageResponse) return target; } -::size_t GetImageResponse::ByteSizeLong() const { +size_t GetImageResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.camera.v1.GetImageResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string mime_type = 1 [json_name = "mimeType"]; if (!this->_internal_mime_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_mime_type()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_mime_type()); } // bytes image = 2 [json_name = "image"]; if (!this->_internal_image().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_image()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_image()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetImageResponse::_class_data_ = { - GetImageResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetImageResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetImageResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetImageResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetImageResponse::GetClassData() const { return &_class_data_; } + +void GetImageResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetImageResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.camera.v1.GetImageResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetImageResponse::MergeFrom(const GetImageResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.camera.v1.GetImageResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_mime_type().empty()) { - _this->_internal_set_mime_type(from._internal_mime_type()); + _internal_set_mime_type(from._internal_mime_type()); } if (!from._internal_image().empty()) { - _this->_internal_set_image(from._internal_image()); + _internal_set_image(from._internal_image()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetImageResponse::CopyFrom(const GetImageResponse& from) { @@ -1221,188 +1050,196 @@ void GetImageResponse::CopyFrom(const GetImageResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetImageResponse::IsInitialized() const { +bool GetImageResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetImageResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetImageResponse::InternalSwap(GetImageResponse* PROTOBUF_RESTRICT other) { +void GetImageResponse::InternalSwap(GetImageResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.mime_type_, &other->_impl_.mime_type_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.image_, &other->_impl_.image_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &mime_type_, lhs_arena, + &other->mime_type_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &image_, lhs_arena, + &other->image_, rhs_arena + ); } -::google::protobuf::Metadata GetImageResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetImageResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_getter, &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_once, file_level_metadata_component_2fcamera_2fv1_2fcamera_2eproto[1]); } + // =================================================================== class GetImagesRequest::_Internal { public: }; -GetImagesRequest::GetImagesRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetImagesRequest::GetImagesRequest(::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.camera.v1.GetImagesRequest) } -inline PROTOBUF_NDEBUG_INLINE GetImagesRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : name_(arena, from.name_), - _cached_size_{0} {} - -GetImagesRequest::GetImagesRequest( - ::google::protobuf::Arena* arena, - const GetImagesRequest& from) - : ::google::protobuf::Message(arena) { - GetImagesRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetImagesRequest::GetImagesRequest(const GetImagesRequest& 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()); + } // @@protoc_insertion_point(copy_constructor:viam.component.camera.v1.GetImagesRequest) } -inline PROTOBUF_NDEBUG_INLINE GetImagesRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : name_(arena), - _cached_size_{0} {} -inline void GetImagesRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetImagesRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + GetImagesRequest::~GetImagesRequest() { // @@protoc_insertion_point(destructor:viam.component.camera.v1.GetImagesRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetImagesRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); +} + +void GetImagesRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetImagesRequest::Clear() { +void GetImagesRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.camera.v1.GetImagesRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetImagesRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetImagesRequest::_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.camera.v1.GetImagesRequest.name")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 54, 2> GetImagesRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetImagesRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetImagesRequest, _impl_.name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(GetImagesRequest, _impl_.name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\51\4\0\0\0\0\0\0" - "viam.component.camera.v1.GetImagesRequest" - "name" - }}, -}; - -::uint8_t* GetImagesRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetImagesRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.camera.v1.GetImagesRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.camera.v1.GetImagesRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.camera.v1.GetImagesRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.camera.v1.GetImagesRequest) return target; } -::size_t GetImagesRequest::ByteSizeLong() const { +size_t GetImagesRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.camera.v1.GetImagesRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetImagesRequest::_class_data_ = { - GetImagesRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetImagesRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetImagesRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetImagesRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetImagesRequest::GetClassData() const { return &_class_data_; } + +void GetImagesRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetImagesRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.camera.v1.GetImagesRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetImagesRequest::MergeFrom(const GetImagesRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.camera.v1.GetImagesRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetImagesRequest::CopyFrom(const GetImagesRequest& from) { @@ -1412,235 +1249,227 @@ void GetImagesRequest::CopyFrom(const GetImagesRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetImagesRequest::IsInitialized() const { +bool GetImagesRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetImagesRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetImagesRequest::InternalSwap(GetImagesRequest* PROTOBUF_RESTRICT other) { +void GetImagesRequest::InternalSwap(GetImagesRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); } -::google::protobuf::Metadata GetImagesRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetImagesRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_getter, &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_once, file_level_metadata_component_2fcamera_2fv1_2fcamera_2eproto[2]); } + // =================================================================== class GetImagesResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetImagesResponse, _impl_._has_bits_); static const ::viam::common::v1::ResponseMetadata& response_metadata(const GetImagesResponse* msg); - static void set_has_response_metadata(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::common::v1::ResponseMetadata& GetImagesResponse::_Internal::response_metadata(const GetImagesResponse* msg) { - return *msg->_impl_.response_metadata_; +const ::viam::common::v1::ResponseMetadata& +GetImagesResponse::_Internal::response_metadata(const GetImagesResponse* msg) { + return *msg->response_metadata_; } void GetImagesResponse::clear_response_metadata() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.response_metadata_ != nullptr) _impl_.response_metadata_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && response_metadata_ != nullptr) { + delete response_metadata_; + } + response_metadata_ = nullptr; } -GetImagesResponse::GetImagesResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetImagesResponse::GetImagesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + images_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.component.camera.v1.GetImagesResponse) } -inline PROTOBUF_NDEBUG_INLINE GetImagesResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - images_{visibility, arena, from.images_} {} - -GetImagesResponse::GetImagesResponse( - ::google::protobuf::Arena* arena, - const GetImagesResponse& from) - : ::google::protobuf::Message(arena) { - GetImagesResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.response_metadata_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::common::v1::ResponseMetadata>(arena, *from._impl_.response_metadata_) - : nullptr; - +GetImagesResponse::GetImagesResponse(const GetImagesResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + images_(from.images_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_response_metadata()) { + response_metadata_ = new ::viam::common::v1::ResponseMetadata(*from.response_metadata_); + } else { + response_metadata_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.component.camera.v1.GetImagesResponse) } -inline PROTOBUF_NDEBUG_INLINE GetImagesResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - images_{visibility, arena} {} -inline void GetImagesResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.response_metadata_ = {}; +inline void GetImagesResponse::SharedCtor() { +response_metadata_ = nullptr; } + GetImagesResponse::~GetImagesResponse() { // @@protoc_insertion_point(destructor:viam.component.camera.v1.GetImagesResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetImagesResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.response_metadata_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete response_metadata_; +} + +void GetImagesResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetImagesResponse::Clear() { +void GetImagesResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.camera.v1.GetImagesResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.images_.Clear(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.response_metadata_ != nullptr); - _impl_.response_metadata_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetImagesResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + images_.Clear(); + if (GetArenaForAllocation() == nullptr && response_metadata_ != nullptr) { + delete response_metadata_; + } + response_metadata_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetImagesResponse::_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) { + // repeated .viam.component.camera.v1.Image images = 1 [json_name = "images"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_images(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + // .viam.common.v1.ResponseMetadata response_metadata = 84260 [json_name = "responseMetadata"]; + case 84260: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_response_metadata(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 2, 2, 0, 7> GetImagesResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetImagesResponse, _impl_._has_bits_), - 0, // no _extensions_ - 84260, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetImagesResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.component.camera.v1.Image images = 1 [json_name = "images"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetImagesResponse, _impl_.images_)}}, - }}, {{ - 18724, 1, 1, - 65534, 1, - 65535, 65535 - }}, {{ - // repeated .viam.component.camera.v1.Image images = 1 [json_name = "images"]; - {PROTOBUF_FIELD_OFFSET(GetImagesResponse, _impl_.images_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // .viam.common.v1.ResponseMetadata response_metadata = 84260 [json_name = "responseMetadata"]; - {PROTOBUF_FIELD_OFFSET(GetImagesResponse, _impl_.response_metadata_), _Internal::kHasBitsOffset + 0, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::component::camera::v1::Image>()}, - {::_pbi::TcParser::GetTable<::viam::common::v1::ResponseMetadata>()}, - }}, {{ - }}, -}; - -::uint8_t* GetImagesResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetImagesResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.camera.v1.GetImagesResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .viam.component.camera.v1.Image images = 1 [json_name = "images"]; for (unsigned i = 0, n = static_cast(this->_internal_images_size()); i < n; i++) { - const auto& repfield = this->_internal_images().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_images(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } - cached_has_bits = _impl_._has_bits_[0]; // .viam.common.v1.ResponseMetadata response_metadata = 84260 [json_name = "responseMetadata"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 84260, _Internal::response_metadata(this), + if (this->_internal_has_response_metadata()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(84260, _Internal::response_metadata(this), _Internal::response_metadata(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.camera.v1.GetImagesResponse) return target; } -::size_t GetImagesResponse::ByteSizeLong() const { +size_t GetImagesResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.camera.v1.GetImagesResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.component.camera.v1.Image images = 1 [json_name = "images"]; total_size += 1UL * this->_internal_images_size(); - for (const auto& msg : this->_internal_images()) { + for (const auto& msg : this->images_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // .viam.common.v1.ResponseMetadata response_metadata = 84260 [json_name = "responseMetadata"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 3 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.response_metadata_); + if (this->_internal_has_response_metadata()) { + total_size += 3 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *response_metadata_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetImagesResponse::_class_data_ = { - GetImagesResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetImagesResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetImagesResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetImagesResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetImagesResponse::GetClassData() const { return &_class_data_; } + +void GetImagesResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetImagesResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.camera.v1.GetImagesResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetImagesResponse::MergeFrom(const GetImagesResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.camera.v1.GetImagesResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_images()->MergeFrom( - from._internal_images()); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_response_metadata()->::viam::common::v1::ResponseMetadata::MergeFrom( - from._internal_response_metadata()); + images_.MergeFrom(from.images_); + if (from._internal_has_response_metadata()) { + _internal_mutable_response_metadata()->::viam::common::v1::ResponseMetadata::MergeFrom(from._internal_response_metadata()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetImagesResponse::CopyFrom(const GetImagesResponse& from) { @@ -1650,238 +1479,255 @@ void GetImagesResponse::CopyFrom(const GetImagesResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetImagesResponse::IsInitialized() const { +bool GetImagesResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetImagesResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetImagesResponse::InternalSwap(GetImagesResponse* PROTOBUF_RESTRICT other) { +void GetImagesResponse::InternalSwap(GetImagesResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.images_.InternalSwap(&other->_impl_.images_); - swap(_impl_.response_metadata_, other->_impl_.response_metadata_); + images_.InternalSwap(&other->images_); + swap(response_metadata_, other->response_metadata_); } -::google::protobuf::Metadata GetImagesResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetImagesResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_getter, &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_once, file_level_metadata_component_2fcamera_2fv1_2fcamera_2eproto[3]); } + // =================================================================== class Image::_Internal { public: }; -Image::Image(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Image::Image(::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.camera.v1.Image) } -inline PROTOBUF_NDEBUG_INLINE Image::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : source_name_(arena, from.source_name_), - image_(arena, from.image_), - _cached_size_{0} {} - -Image::Image( - ::google::protobuf::Arena* arena, - const Image& from) - : ::google::protobuf::Message(arena) { - Image* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.format_ = from._impl_.format_; - +Image::Image(const Image& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + source_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + source_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_source_name().empty()) { + source_name_.Set(from._internal_source_name(), + GetArenaForAllocation()); + } + image_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + image_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_image().empty()) { + image_.Set(from._internal_image(), + GetArenaForAllocation()); + } + format_ = from.format_; // @@protoc_insertion_point(copy_constructor:viam.component.camera.v1.Image) } -inline PROTOBUF_NDEBUG_INLINE Image::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : source_name_(arena), - image_(arena), - _cached_size_{0} {} -inline void Image::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.format_ = {}; +inline void Image::SharedCtor() { +source_name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + source_name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +image_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + image_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +format_ = 0; } + Image::~Image() { // @@protoc_insertion_point(destructor:viam.component.camera.v1.Image) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Image::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.source_name_.Destroy(); - _impl_.image_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + source_name_.Destroy(); + image_.Destroy(); +} + +void Image::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void Image::Clear() { +void Image::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.camera.v1.Image) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.source_name_.ClearToEmpty(); - _impl_.image_.ClearToEmpty(); - _impl_.format_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Image::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + source_name_.ClearToEmpty(); + image_.ClearToEmpty(); + format_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Image::_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 source_name = 1 [json_name = "sourceName"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_source_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.camera.v1.Image.source_name")); + } else + goto handle_unusual; + continue; + // .viam.component.camera.v1.Format format = 2 [json_name = "format"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_format(static_cast<::viam::component::camera::v1::Format>(val)); + } else + goto handle_unusual; + continue; + // bytes image = 3 [json_name = "image"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_image(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 50, 2> Image::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_Image_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string source_name = 1 [json_name = "sourceName"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Image, _impl_.source_name_)}}, - // .viam.component.camera.v1.Format format = 2 [json_name = "format"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Image, _impl_.format_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(Image, _impl_.format_)}}, - // bytes image = 3 [json_name = "image"]; - {::_pbi::TcParser::FastBS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(Image, _impl_.image_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string source_name = 1 [json_name = "sourceName"]; - {PROTOBUF_FIELD_OFFSET(Image, _impl_.source_name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .viam.component.camera.v1.Format format = 2 [json_name = "format"]; - {PROTOBUF_FIELD_OFFSET(Image, _impl_.format_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // bytes image = 3 [json_name = "image"]; - {PROTOBUF_FIELD_OFFSET(Image, _impl_.image_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\36\13\0\0\0\0\0\0" - "viam.component.camera.v1.Image" - "source_name" - }}, -}; - -::uint8_t* Image::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Image::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.camera.v1.Image) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string source_name = 1 [json_name = "sourceName"]; if (!this->_internal_source_name().empty()) { - const std::string& _s = this->_internal_source_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.camera.v1.Image.source_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_source_name().data(), static_cast(this->_internal_source_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.camera.v1.Image.source_name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_source_name(), target); } // .viam.component.camera.v1.Format format = 2 [json_name = "format"]; if (this->_internal_format() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 2, this->_internal_format(), target); + 2, this->_internal_format(), target); } // bytes image = 3 [json_name = "image"]; if (!this->_internal_image().empty()) { - const std::string& _s = this->_internal_image(); - target = stream->WriteBytesMaybeAliased(3, _s, target); + target = stream->WriteBytesMaybeAliased( + 3, this->_internal_image(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.camera.v1.Image) return target; } -::size_t Image::ByteSizeLong() const { +size_t Image::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.camera.v1.Image) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string source_name = 1 [json_name = "sourceName"]; if (!this->_internal_source_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_source_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_source_name()); } // bytes image = 3 [json_name = "image"]; if (!this->_internal_image().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_image()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_image()); } // .viam.component.camera.v1.Format format = 2 [json_name = "format"]; if (this->_internal_format() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_format()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_format()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Image::_class_data_ = { - Image::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Image::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Image::MergeImpl }; -const ::google::protobuf::Message::ClassData* Image::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Image::GetClassData() const { return &_class_data_; } + +void Image::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Image::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.camera.v1.Image) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Image::MergeFrom(const Image& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.camera.v1.Image) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_source_name().empty()) { - _this->_internal_set_source_name(from._internal_source_name()); + _internal_set_source_name(from._internal_source_name()); } if (!from._internal_image().empty()) { - _this->_internal_set_image(from._internal_image()); + _internal_set_image(from._internal_image()); } if (from._internal_format() != 0) { - _this->_internal_set_format(from._internal_format()); + _internal_set_format(from._internal_format()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Image::CopyFrom(const Image& from) { @@ -1891,273 +1737,288 @@ void Image::CopyFrom(const Image& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Image::IsInitialized() const { +bool Image::IsInitialized() const { return true; } -::_pbi::CachedSize* Image::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Image::InternalSwap(Image* PROTOBUF_RESTRICT other) { +void Image::InternalSwap(Image* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.source_name_, &other->_impl_.source_name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.image_, &other->_impl_.image_, arena); - swap(_impl_.format_, other->_impl_.format_); -} - -::google::protobuf::Metadata Image::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &source_name_, lhs_arena, + &other->source_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &image_, lhs_arena, + &other->image_, rhs_arena + ); + swap(format_, other->format_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Image::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_getter, &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_once, file_level_metadata_component_2fcamera_2fv1_2fcamera_2eproto[4]); } + // =================================================================== class RenderFrameRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(RenderFrameRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const RenderFrameRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const RenderFrameRequest* msg); }; -const ::google::protobuf::Struct& RenderFrameRequest::_Internal::extra(const RenderFrameRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +RenderFrameRequest::_Internal::extra(const RenderFrameRequest* msg) { + return *msg->extra_; } void RenderFrameRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -RenderFrameRequest::RenderFrameRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +RenderFrameRequest::RenderFrameRequest(::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.camera.v1.RenderFrameRequest) } -inline PROTOBUF_NDEBUG_INLINE RenderFrameRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_), - mime_type_(arena, from.mime_type_) {} - -RenderFrameRequest::RenderFrameRequest( - ::google::protobuf::Arena* arena, - const RenderFrameRequest& from) - : ::google::protobuf::Message(arena) { - RenderFrameRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +RenderFrameRequest::RenderFrameRequest(const RenderFrameRequest& 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()); + } + mime_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + mime_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_mime_type().empty()) { + mime_type_.Set(from._internal_mime_type(), + GetArenaForAllocation()); + } + if (from._internal_has_extra()) { + extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.extra_); + } else { + extra_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.component.camera.v1.RenderFrameRequest) } -inline PROTOBUF_NDEBUG_INLINE RenderFrameRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena), - mime_type_(arena) {} -inline void RenderFrameRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void RenderFrameRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +mime_type_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + mime_type_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + RenderFrameRequest::~RenderFrameRequest() { // @@protoc_insertion_point(destructor:viam.component.camera.v1.RenderFrameRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void RenderFrameRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.mime_type_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + mime_type_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void RenderFrameRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void RenderFrameRequest::Clear() { +void RenderFrameRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.camera.v1.RenderFrameRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _impl_.mime_type_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* RenderFrameRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + mime_type_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RenderFrameRequest::_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.camera.v1.RenderFrameRequest.name")); + } else + goto handle_unusual; + continue; + // string mime_type = 2 [json_name = "mimeType"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_mime_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.camera.v1.RenderFrameRequest.mime_type")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 1, 65, 7> RenderFrameRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(RenderFrameRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_RenderFrameRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(RenderFrameRequest, _impl_.name_)}}, - // string mime_type = 2 [json_name = "mimeType"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(RenderFrameRequest, _impl_.mime_type_)}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(RenderFrameRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 2, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(RenderFrameRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string mime_type = 2 [json_name = "mimeType"]; - {PROTOBUF_FIELD_OFFSET(RenderFrameRequest, _impl_.mime_type_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(RenderFrameRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\53\4\11\0\0\0\0\0" - "viam.component.camera.v1.RenderFrameRequest" - "name" - "mime_type" - }}, -}; - -::uint8_t* RenderFrameRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* RenderFrameRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.camera.v1.RenderFrameRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.camera.v1.RenderFrameRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.camera.v1.RenderFrameRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // string mime_type = 2 [json_name = "mimeType"]; if (!this->_internal_mime_type().empty()) { - const std::string& _s = this->_internal_mime_type(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.camera.v1.RenderFrameRequest.mime_type"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_mime_type().data(), static_cast(this->_internal_mime_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.camera.v1.RenderFrameRequest.mime_type"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_mime_type(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.camera.v1.RenderFrameRequest) return target; } -::size_t RenderFrameRequest::ByteSizeLong() const { +size_t RenderFrameRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.camera.v1.RenderFrameRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // string mime_type = 2 [json_name = "mimeType"]; if (!this->_internal_mime_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_mime_type()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_mime_type()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData RenderFrameRequest::_class_data_ = { - RenderFrameRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RenderFrameRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + RenderFrameRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* RenderFrameRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RenderFrameRequest::GetClassData() const { return &_class_data_; } + +void RenderFrameRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void RenderFrameRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.camera.v1.RenderFrameRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void RenderFrameRequest::MergeFrom(const RenderFrameRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.camera.v1.RenderFrameRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (!from._internal_mime_type().empty()) { - _this->_internal_set_mime_type(from._internal_mime_type()); + _internal_set_mime_type(from._internal_mime_type()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void RenderFrameRequest::CopyFrom(const RenderFrameRequest& from) { @@ -2167,274 +2028,288 @@ void RenderFrameRequest::CopyFrom(const RenderFrameRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool RenderFrameRequest::IsInitialized() const { +bool RenderFrameRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* RenderFrameRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void RenderFrameRequest::InternalSwap(RenderFrameRequest* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.mime_type_, &other->_impl_.mime_type_, arena); - swap(_impl_.extra_, other->_impl_.extra_); -} - -::google::protobuf::Metadata RenderFrameRequest::GetMetadata() const { +void RenderFrameRequest::InternalSwap(RenderFrameRequest* 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 + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &mime_type_, lhs_arena, + &other->mime_type_, rhs_arena + ); + swap(extra_, other->extra_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata RenderFrameRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_getter, &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_once, file_level_metadata_component_2fcamera_2fv1_2fcamera_2eproto[5]); } + // =================================================================== class GetPointCloudRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetPointCloudRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const GetPointCloudRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetPointCloudRequest* msg); }; -const ::google::protobuf::Struct& GetPointCloudRequest::_Internal::extra(const GetPointCloudRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetPointCloudRequest::_Internal::extra(const GetPointCloudRequest* msg) { + return *msg->extra_; } void GetPointCloudRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -GetPointCloudRequest::GetPointCloudRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetPointCloudRequest::GetPointCloudRequest(::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.camera.v1.GetPointCloudRequest) } -inline PROTOBUF_NDEBUG_INLINE GetPointCloudRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_), - mime_type_(arena, from.mime_type_) {} - -GetPointCloudRequest::GetPointCloudRequest( - ::google::protobuf::Arena* arena, - const GetPointCloudRequest& from) - : ::google::protobuf::Message(arena) { - GetPointCloudRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +GetPointCloudRequest::GetPointCloudRequest(const GetPointCloudRequest& 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()); + } + mime_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + mime_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_mime_type().empty()) { + mime_type_.Set(from._internal_mime_type(), + GetArenaForAllocation()); + } + if (from._internal_has_extra()) { + extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.extra_); + } else { + extra_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.component.camera.v1.GetPointCloudRequest) } -inline PROTOBUF_NDEBUG_INLINE GetPointCloudRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena), - mime_type_(arena) {} -inline void GetPointCloudRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void GetPointCloudRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +mime_type_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + mime_type_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + GetPointCloudRequest::~GetPointCloudRequest() { // @@protoc_insertion_point(destructor:viam.component.camera.v1.GetPointCloudRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetPointCloudRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.mime_type_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + mime_type_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void GetPointCloudRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetPointCloudRequest::Clear() { +void GetPointCloudRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.camera.v1.GetPointCloudRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _impl_.mime_type_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetPointCloudRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + mime_type_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPointCloudRequest::_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.camera.v1.GetPointCloudRequest.name")); + } else + goto handle_unusual; + continue; + // string mime_type = 2 [json_name = "mimeType"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_mime_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.camera.v1.GetPointCloudRequest.mime_type")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 1, 67, 7> GetPointCloudRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetPointCloudRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetPointCloudRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetPointCloudRequest, _impl_.name_)}}, - // string mime_type = 2 [json_name = "mimeType"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(GetPointCloudRequest, _impl_.mime_type_)}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(GetPointCloudRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 2, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(GetPointCloudRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string mime_type = 2 [json_name = "mimeType"]; - {PROTOBUF_FIELD_OFFSET(GetPointCloudRequest, _impl_.mime_type_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(GetPointCloudRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\55\4\11\0\0\0\0\0" - "viam.component.camera.v1.GetPointCloudRequest" - "name" - "mime_type" - }}, -}; - -::uint8_t* GetPointCloudRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetPointCloudRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.camera.v1.GetPointCloudRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.camera.v1.GetPointCloudRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.camera.v1.GetPointCloudRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // string mime_type = 2 [json_name = "mimeType"]; if (!this->_internal_mime_type().empty()) { - const std::string& _s = this->_internal_mime_type(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.camera.v1.GetPointCloudRequest.mime_type"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_mime_type().data(), static_cast(this->_internal_mime_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.camera.v1.GetPointCloudRequest.mime_type"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_mime_type(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.camera.v1.GetPointCloudRequest) return target; } -::size_t GetPointCloudRequest::ByteSizeLong() const { +size_t GetPointCloudRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.camera.v1.GetPointCloudRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // string mime_type = 2 [json_name = "mimeType"]; if (!this->_internal_mime_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_mime_type()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_mime_type()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetPointCloudRequest::_class_data_ = { - GetPointCloudRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPointCloudRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetPointCloudRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetPointCloudRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPointCloudRequest::GetClassData() const { return &_class_data_; } + +void GetPointCloudRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetPointCloudRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.camera.v1.GetPointCloudRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetPointCloudRequest::MergeFrom(const GetPointCloudRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.camera.v1.GetPointCloudRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (!from._internal_mime_type().empty()) { - _this->_internal_set_mime_type(from._internal_mime_type()); + _internal_set_mime_type(from._internal_mime_type()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetPointCloudRequest::CopyFrom(const GetPointCloudRequest& from) { @@ -2444,215 +2319,236 @@ void GetPointCloudRequest::CopyFrom(const GetPointCloudRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetPointCloudRequest::IsInitialized() const { +bool GetPointCloudRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetPointCloudRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetPointCloudRequest::InternalSwap(GetPointCloudRequest* PROTOBUF_RESTRICT other) { +void GetPointCloudRequest::InternalSwap(GetPointCloudRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.mime_type_, &other->_impl_.mime_type_, arena); - swap(_impl_.extra_, other->_impl_.extra_); -} - -::google::protobuf::Metadata GetPointCloudRequest::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &mime_type_, lhs_arena, + &other->mime_type_, rhs_arena + ); + swap(extra_, other->extra_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetPointCloudRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_getter, &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_once, file_level_metadata_component_2fcamera_2fv1_2fcamera_2eproto[6]); } + // =================================================================== class GetPointCloudResponse::_Internal { public: }; -GetPointCloudResponse::GetPointCloudResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetPointCloudResponse::GetPointCloudResponse(::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.camera.v1.GetPointCloudResponse) } -inline PROTOBUF_NDEBUG_INLINE GetPointCloudResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : mime_type_(arena, from.mime_type_), - point_cloud_(arena, from.point_cloud_), - _cached_size_{0} {} - -GetPointCloudResponse::GetPointCloudResponse( - ::google::protobuf::Arena* arena, - const GetPointCloudResponse& from) - : ::google::protobuf::Message(arena) { - GetPointCloudResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetPointCloudResponse::GetPointCloudResponse(const GetPointCloudResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + mime_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + mime_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_mime_type().empty()) { + mime_type_.Set(from._internal_mime_type(), + GetArenaForAllocation()); + } + point_cloud_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + point_cloud_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_point_cloud().empty()) { + point_cloud_.Set(from._internal_point_cloud(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.component.camera.v1.GetPointCloudResponse) } -inline PROTOBUF_NDEBUG_INLINE GetPointCloudResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : mime_type_(arena), - point_cloud_(arena), - _cached_size_{0} {} -inline void GetPointCloudResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetPointCloudResponse::SharedCtor() { +mime_type_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + mime_type_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +point_cloud_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + point_cloud_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + GetPointCloudResponse::~GetPointCloudResponse() { // @@protoc_insertion_point(destructor:viam.component.camera.v1.GetPointCloudResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetPointCloudResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.mime_type_.Destroy(); - _impl_.point_cloud_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + mime_type_.Destroy(); + point_cloud_.Destroy(); +} + +void GetPointCloudResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetPointCloudResponse::Clear() { +void GetPointCloudResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.camera.v1.GetPointCloudResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.mime_type_.ClearToEmpty(); - _impl_.point_cloud_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetPointCloudResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + mime_type_.ClearToEmpty(); + point_cloud_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPointCloudResponse::_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 mime_type = 1 [json_name = "mimeType"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_mime_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.camera.v1.GetPointCloudResponse.mime_type")); + } else + goto handle_unusual; + continue; + // bytes point_cloud = 2 [json_name = "pointCloud"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_point_cloud(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 64, 2> GetPointCloudResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetPointCloudResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // bytes point_cloud = 2 [json_name = "pointCloud"]; - {::_pbi::TcParser::FastBS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(GetPointCloudResponse, _impl_.point_cloud_)}}, - // string mime_type = 1 [json_name = "mimeType"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetPointCloudResponse, _impl_.mime_type_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string mime_type = 1 [json_name = "mimeType"]; - {PROTOBUF_FIELD_OFFSET(GetPointCloudResponse, _impl_.mime_type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // bytes point_cloud = 2 [json_name = "pointCloud"]; - {PROTOBUF_FIELD_OFFSET(GetPointCloudResponse, _impl_.point_cloud_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\56\11\0\0\0\0\0\0" - "viam.component.camera.v1.GetPointCloudResponse" - "mime_type" - }}, -}; - -::uint8_t* GetPointCloudResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetPointCloudResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.camera.v1.GetPointCloudResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string mime_type = 1 [json_name = "mimeType"]; if (!this->_internal_mime_type().empty()) { - const std::string& _s = this->_internal_mime_type(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.camera.v1.GetPointCloudResponse.mime_type"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_mime_type().data(), static_cast(this->_internal_mime_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.camera.v1.GetPointCloudResponse.mime_type"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_mime_type(), target); } // bytes point_cloud = 2 [json_name = "pointCloud"]; if (!this->_internal_point_cloud().empty()) { - const std::string& _s = this->_internal_point_cloud(); - target = stream->WriteBytesMaybeAliased(2, _s, target); + target = stream->WriteBytesMaybeAliased( + 2, this->_internal_point_cloud(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.camera.v1.GetPointCloudResponse) return target; } -::size_t GetPointCloudResponse::ByteSizeLong() const { +size_t GetPointCloudResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.camera.v1.GetPointCloudResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string mime_type = 1 [json_name = "mimeType"]; if (!this->_internal_mime_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_mime_type()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_mime_type()); } // bytes point_cloud = 2 [json_name = "pointCloud"]; if (!this->_internal_point_cloud().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_point_cloud()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_point_cloud()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetPointCloudResponse::_class_data_ = { - GetPointCloudResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPointCloudResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetPointCloudResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetPointCloudResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPointCloudResponse::GetClassData() const { return &_class_data_; } + +void GetPointCloudResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetPointCloudResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.camera.v1.GetPointCloudResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetPointCloudResponse::MergeFrom(const GetPointCloudResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.camera.v1.GetPointCloudResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_mime_type().empty()) { - _this->_internal_set_mime_type(from._internal_mime_type()); + _internal_set_mime_type(from._internal_mime_type()); } if (!from._internal_point_cloud().empty()) { - _this->_internal_set_point_cloud(from._internal_point_cloud()); + _internal_set_point_cloud(from._internal_point_cloud()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetPointCloudResponse::CopyFrom(const GetPointCloudResponse& from) { @@ -2662,188 +2558,196 @@ void GetPointCloudResponse::CopyFrom(const GetPointCloudResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetPointCloudResponse::IsInitialized() const { +bool GetPointCloudResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetPointCloudResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetPointCloudResponse::InternalSwap(GetPointCloudResponse* PROTOBUF_RESTRICT other) { +void GetPointCloudResponse::InternalSwap(GetPointCloudResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.mime_type_, &other->_impl_.mime_type_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.point_cloud_, &other->_impl_.point_cloud_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &mime_type_, lhs_arena, + &other->mime_type_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &point_cloud_, lhs_arena, + &other->point_cloud_, rhs_arena + ); } -::google::protobuf::Metadata GetPointCloudResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetPointCloudResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_getter, &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_once, file_level_metadata_component_2fcamera_2fv1_2fcamera_2eproto[7]); } + // =================================================================== class GetPropertiesRequest::_Internal { public: }; -GetPropertiesRequest::GetPropertiesRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetPropertiesRequest::GetPropertiesRequest(::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.camera.v1.GetPropertiesRequest) } -inline PROTOBUF_NDEBUG_INLINE GetPropertiesRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : name_(arena, from.name_), - _cached_size_{0} {} - -GetPropertiesRequest::GetPropertiesRequest( - ::google::protobuf::Arena* arena, - const GetPropertiesRequest& from) - : ::google::protobuf::Message(arena) { - GetPropertiesRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetPropertiesRequest::GetPropertiesRequest(const GetPropertiesRequest& 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()); + } // @@protoc_insertion_point(copy_constructor:viam.component.camera.v1.GetPropertiesRequest) } -inline PROTOBUF_NDEBUG_INLINE GetPropertiesRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : name_(arena), - _cached_size_{0} {} -inline void GetPropertiesRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetPropertiesRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + GetPropertiesRequest::~GetPropertiesRequest() { // @@protoc_insertion_point(destructor:viam.component.camera.v1.GetPropertiesRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetPropertiesRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); } -PROTOBUF_NOINLINE void GetPropertiesRequest::Clear() { +void GetPropertiesRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetPropertiesRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.camera.v1.GetPropertiesRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetPropertiesRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPropertiesRequest::_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.camera.v1.GetPropertiesRequest.name")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 58, 2> GetPropertiesRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetPropertiesRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetPropertiesRequest, _impl_.name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(GetPropertiesRequest, _impl_.name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\55\4\0\0\0\0\0\0" - "viam.component.camera.v1.GetPropertiesRequest" - "name" - }}, -}; - -::uint8_t* GetPropertiesRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetPropertiesRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.camera.v1.GetPropertiesRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.camera.v1.GetPropertiesRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.camera.v1.GetPropertiesRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.camera.v1.GetPropertiesRequest) return target; } -::size_t GetPropertiesRequest::ByteSizeLong() const { +size_t GetPropertiesRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.camera.v1.GetPropertiesRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetPropertiesRequest::_class_data_ = { - GetPropertiesRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPropertiesRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetPropertiesRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetPropertiesRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPropertiesRequest::GetClassData() const { return &_class_data_; } + +void GetPropertiesRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetPropertiesRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.camera.v1.GetPropertiesRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetPropertiesRequest::MergeFrom(const GetPropertiesRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.camera.v1.GetPropertiesRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetPropertiesRequest::CopyFrom(const GetPropertiesRequest& from) { @@ -2853,340 +2757,328 @@ void GetPropertiesRequest::CopyFrom(const GetPropertiesRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetPropertiesRequest::IsInitialized() const { +bool GetPropertiesRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetPropertiesRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetPropertiesRequest::InternalSwap(GetPropertiesRequest* PROTOBUF_RESTRICT other) { +void GetPropertiesRequest::InternalSwap(GetPropertiesRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); } -::google::protobuf::Metadata GetPropertiesRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetPropertiesRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_getter, &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_once, file_level_metadata_component_2fcamera_2fv1_2fcamera_2eproto[8]); } + // =================================================================== class GetPropertiesResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_._has_bits_); + using HasBits = decltype(std::declval()._has_bits_); static const ::viam::component::camera::v1::IntrinsicParameters& intrinsic_parameters(const GetPropertiesResponse* msg); - static void set_has_intrinsic_parameters(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } static const ::viam::component::camera::v1::DistortionParameters& distortion_parameters(const GetPropertiesResponse* msg); - static void set_has_distortion_parameters(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } static void set_has_frame_rate(HasBits* has_bits) { - (*has_bits)[0] |= 4u; + (*has_bits)[0] |= 1u; } }; -const ::viam::component::camera::v1::IntrinsicParameters& GetPropertiesResponse::_Internal::intrinsic_parameters(const GetPropertiesResponse* msg) { - return *msg->_impl_.intrinsic_parameters_; +const ::viam::component::camera::v1::IntrinsicParameters& +GetPropertiesResponse::_Internal::intrinsic_parameters(const GetPropertiesResponse* msg) { + return *msg->intrinsic_parameters_; } -const ::viam::component::camera::v1::DistortionParameters& GetPropertiesResponse::_Internal::distortion_parameters(const GetPropertiesResponse* msg) { - return *msg->_impl_.distortion_parameters_; +const ::viam::component::camera::v1::DistortionParameters& +GetPropertiesResponse::_Internal::distortion_parameters(const GetPropertiesResponse* msg) { + return *msg->distortion_parameters_; } -GetPropertiesResponse::GetPropertiesResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetPropertiesResponse::GetPropertiesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + mime_types_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.component.camera.v1.GetPropertiesResponse) } -inline PROTOBUF_NDEBUG_INLINE GetPropertiesResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - mime_types_{visibility, arena, from.mime_types_} {} - -GetPropertiesResponse::GetPropertiesResponse( - ::google::protobuf::Arena* arena, - const GetPropertiesResponse& from) - : ::google::protobuf::Message(arena) { - GetPropertiesResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.intrinsic_parameters_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::component::camera::v1::IntrinsicParameters>(arena, *from._impl_.intrinsic_parameters_) - : nullptr; - _impl_.distortion_parameters_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::viam::component::camera::v1::DistortionParameters>(arena, *from._impl_.distortion_parameters_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, supports_pcd_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, supports_pcd_), - offsetof(Impl_, frame_rate_) - - offsetof(Impl_, supports_pcd_) + - sizeof(Impl_::frame_rate_)); - +GetPropertiesResponse::GetPropertiesResponse(const GetPropertiesResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_), + mime_types_(from.mime_types_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_intrinsic_parameters()) { + intrinsic_parameters_ = new ::viam::component::camera::v1::IntrinsicParameters(*from.intrinsic_parameters_); + } else { + intrinsic_parameters_ = nullptr; + } + if (from._internal_has_distortion_parameters()) { + distortion_parameters_ = new ::viam::component::camera::v1::DistortionParameters(*from.distortion_parameters_); + } else { + distortion_parameters_ = nullptr; + } + ::memcpy(&supports_pcd_, &from.supports_pcd_, + static_cast(reinterpret_cast(&frame_rate_) - + reinterpret_cast(&supports_pcd_)) + sizeof(frame_rate_)); // @@protoc_insertion_point(copy_constructor:viam.component.camera.v1.GetPropertiesResponse) } -inline PROTOBUF_NDEBUG_INLINE GetPropertiesResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - mime_types_{visibility, arena} {} - -inline void GetPropertiesResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, intrinsic_parameters_), - 0, - offsetof(Impl_, frame_rate_) - - offsetof(Impl_, intrinsic_parameters_) + - sizeof(Impl_::frame_rate_)); + +inline void GetPropertiesResponse::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&intrinsic_parameters_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&frame_rate_) - + reinterpret_cast(&intrinsic_parameters_)) + sizeof(frame_rate_)); } + GetPropertiesResponse::~GetPropertiesResponse() { // @@protoc_insertion_point(destructor:viam.component.camera.v1.GetPropertiesResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetPropertiesResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.intrinsic_parameters_; - delete _impl_.distortion_parameters_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete intrinsic_parameters_; + if (this != internal_default_instance()) delete distortion_parameters_; } -PROTOBUF_NOINLINE void GetPropertiesResponse::Clear() { +void GetPropertiesResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetPropertiesResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.camera.v1.GetPropertiesResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.mime_types_.Clear(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.intrinsic_parameters_ != nullptr); - _impl_.intrinsic_parameters_->Clear(); + mime_types_.Clear(); + if (GetArenaForAllocation() == nullptr && intrinsic_parameters_ != nullptr) { + delete intrinsic_parameters_; + } + intrinsic_parameters_ = nullptr; + if (GetArenaForAllocation() == nullptr && distortion_parameters_ != nullptr) { + delete distortion_parameters_; + } + distortion_parameters_ = nullptr; + supports_pcd_ = false; + frame_rate_ = 0; + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPropertiesResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // bool supports_pcd = 1 [json_name = "supportsPcd"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + supports_pcd_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.component.camera.v1.IntrinsicParameters intrinsic_parameters = 2 [json_name = "intrinsicParameters"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_intrinsic_parameters(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.component.camera.v1.DistortionParameters distortion_parameters = 3 [json_name = "distortionParameters"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_distortion_parameters(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // repeated string mime_types = 4 [json_name = "mimeTypes"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_mime_types(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.camera.v1.GetPropertiesResponse.mime_types")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr)); + } else + goto handle_unusual; + continue; + // optional float frame_rate = 5 [json_name = "frameRate"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 45)) { + _Internal::set_has_frame_rate(&has_bits); + frame_rate_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(float); + } 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; } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.distortion_parameters_ != nullptr); - _impl_.distortion_parameters_->Clear(); - } - } - _impl_.supports_pcd_ = false; - _impl_.frame_rate_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetPropertiesResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 5, 2, 65, 2> GetPropertiesResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_._has_bits_), - 0, // no _extensions_ - 5, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967264, // skipmap - offsetof(decltype(_table_), field_entries), - 5, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetPropertiesResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // bool supports_pcd = 1 [json_name = "supportsPcd"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.supports_pcd_)}}, - // .viam.component.camera.v1.IntrinsicParameters intrinsic_parameters = 2 [json_name = "intrinsicParameters"]; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.intrinsic_parameters_)}}, - // .viam.component.camera.v1.DistortionParameters distortion_parameters = 3 [json_name = "distortionParameters"]; - {::_pbi::TcParser::FastMtS1, - {26, 1, 1, PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.distortion_parameters_)}}, - // repeated string mime_types = 4 [json_name = "mimeTypes"]; - {::_pbi::TcParser::FastUR1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.mime_types_)}}, - // optional float frame_rate = 5 [json_name = "frameRate"]; - {::_pbi::TcParser::FastF32S1, - {45, 2, 0, PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.frame_rate_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // bool supports_pcd = 1 [json_name = "supportsPcd"]; - {PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.supports_pcd_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // .viam.component.camera.v1.IntrinsicParameters intrinsic_parameters = 2 [json_name = "intrinsicParameters"]; - {PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.intrinsic_parameters_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .viam.component.camera.v1.DistortionParameters distortion_parameters = 3 [json_name = "distortionParameters"]; - {PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.distortion_parameters_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated string mime_types = 4 [json_name = "mimeTypes"]; - {PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.mime_types_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - // optional float frame_rate = 5 [json_name = "frameRate"]; - {PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.frame_rate_), _Internal::kHasBitsOffset + 2, 0, - (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::component::camera::v1::IntrinsicParameters>()}, - {::_pbi::TcParser::GetTable<::viam::component::camera::v1::DistortionParameters>()}, - }}, {{ - "\56\0\0\0\12\0\0\0" - "viam.component.camera.v1.GetPropertiesResponse" - "mime_types" - }}, -}; - -::uint8_t* GetPropertiesResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetPropertiesResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.camera.v1.GetPropertiesResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // bool supports_pcd = 1 [json_name = "supportsPcd"]; if (this->_internal_supports_pcd() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 1, this->_internal_supports_pcd(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_supports_pcd(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .viam.component.camera.v1.IntrinsicParameters intrinsic_parameters = 2 [json_name = "intrinsicParameters"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::intrinsic_parameters(this), + if (this->_internal_has_intrinsic_parameters()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::intrinsic_parameters(this), _Internal::intrinsic_parameters(this).GetCachedSize(), target, stream); } // .viam.component.camera.v1.DistortionParameters distortion_parameters = 3 [json_name = "distortionParameters"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::distortion_parameters(this), + if (this->_internal_has_distortion_parameters()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::distortion_parameters(this), _Internal::distortion_parameters(this).GetCachedSize(), target, stream); } // repeated string mime_types = 4 [json_name = "mimeTypes"]; - for (int i = 0, n = this->_internal_mime_types_size(); i < n; ++i) { - const auto& s = this->_internal_mime_types().Get(i); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.camera.v1.GetPropertiesResponse.mime_types"); + for (int i = 0, n = this->_internal_mime_types_size(); i < n; i++) { + const auto& s = this->_internal_mime_types(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.camera.v1.GetPropertiesResponse.mime_types"); target = stream->WriteString(4, s, target); } // optional float frame_rate = 5 [json_name = "frameRate"]; - if (cached_has_bits & 0x00000004u) { + if (_internal_has_frame_rate()) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 5, this->_internal_frame_rate(), target); + target = ::_pbi::WireFormatLite::WriteFloatToArray(5, this->_internal_frame_rate(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.camera.v1.GetPropertiesResponse) return target; } -::size_t GetPropertiesResponse::ByteSizeLong() const { +size_t GetPropertiesResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.camera.v1.GetPropertiesResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated string mime_types = 4 [json_name = "mimeTypes"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_mime_types().size()); - for (int i = 0, n = _internal_mime_types().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - _internal_mime_types().Get(i)); - } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // .viam.component.camera.v1.IntrinsicParameters intrinsic_parameters = 2 [json_name = "intrinsicParameters"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.intrinsic_parameters_); - } + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(mime_types_.size()); + for (int i = 0, n = mime_types_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + mime_types_.Get(i)); + } - // .viam.component.camera.v1.DistortionParameters distortion_parameters = 3 [json_name = "distortionParameters"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.distortion_parameters_); - } + // .viam.component.camera.v1.IntrinsicParameters intrinsic_parameters = 2 [json_name = "intrinsicParameters"]; + if (this->_internal_has_intrinsic_parameters()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *intrinsic_parameters_); + } + // .viam.component.camera.v1.DistortionParameters distortion_parameters = 3 [json_name = "distortionParameters"]; + if (this->_internal_has_distortion_parameters()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *distortion_parameters_); } + // bool supports_pcd = 1 [json_name = "supportsPcd"]; if (this->_internal_supports_pcd() != 0) { - total_size += 2; + total_size += 1 + 1; } // optional float frame_rate = 5 [json_name = "frameRate"]; - if (cached_has_bits & 0x00000004u) { - total_size += 5; + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + 4; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetPropertiesResponse::_class_data_ = { - GetPropertiesResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPropertiesResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetPropertiesResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetPropertiesResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPropertiesResponse::GetClassData() const { return &_class_data_; } + +void GetPropertiesResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetPropertiesResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.camera.v1.GetPropertiesResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetPropertiesResponse::MergeFrom(const GetPropertiesResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.camera.v1.GetPropertiesResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_mime_types()->MergeFrom(from._internal_mime_types()); - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_intrinsic_parameters()->::viam::component::camera::v1::IntrinsicParameters::MergeFrom( - from._internal_intrinsic_parameters()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_distortion_parameters()->::viam::component::camera::v1::DistortionParameters::MergeFrom( - from._internal_distortion_parameters()); - } + mime_types_.MergeFrom(from.mime_types_); + if (from._internal_has_intrinsic_parameters()) { + _internal_mutable_intrinsic_parameters()->::viam::component::camera::v1::IntrinsicParameters::MergeFrom(from._internal_intrinsic_parameters()); + } + if (from._internal_has_distortion_parameters()) { + _internal_mutable_distortion_parameters()->::viam::component::camera::v1::DistortionParameters::MergeFrom(from._internal_distortion_parameters()); } if (from._internal_supports_pcd() != 0) { - _this->_internal_set_supports_pcd(from._internal_supports_pcd()); + _internal_set_supports_pcd(from._internal_supports_pcd()); } - if (cached_has_bits & 0x00000004u) { - _this->_internal_set_frame_rate(from._internal_frame_rate()); + if (from._internal_has_frame_rate()) { + _internal_set_frame_rate(from._internal_frame_rate()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetPropertiesResponse::CopyFrom(const GetPropertiesResponse& from) { @@ -3196,187 +3088,182 @@ void GetPropertiesResponse::CopyFrom(const GetPropertiesResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetPropertiesResponse::IsInitialized() const { +bool GetPropertiesResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetPropertiesResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetPropertiesResponse::InternalSwap(GetPropertiesResponse* PROTOBUF_RESTRICT other) { +void GetPropertiesResponse::InternalSwap(GetPropertiesResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.mime_types_.InternalSwap(&other->_impl_.mime_types_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.frame_rate_) - + sizeof(GetPropertiesResponse::_impl_.frame_rate_) - - PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.intrinsic_parameters_)>( - reinterpret_cast(&_impl_.intrinsic_parameters_), - reinterpret_cast(&other->_impl_.intrinsic_parameters_)); + swap(_has_bits_[0], other->_has_bits_[0]); + mime_types_.InternalSwap(&other->mime_types_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, frame_rate_) + + sizeof(GetPropertiesResponse::frame_rate_) + - PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, intrinsic_parameters_)>( + reinterpret_cast(&intrinsic_parameters_), + reinterpret_cast(&other->intrinsic_parameters_)); } -::google::protobuf::Metadata GetPropertiesResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetPropertiesResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_getter, &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_once, file_level_metadata_component_2fcamera_2fv1_2fcamera_2eproto[9]); } + // =================================================================== class Webcams::_Internal { public: }; -Webcams::Webcams(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Webcams::Webcams(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + webcams_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.component.camera.v1.Webcams) } -inline PROTOBUF_NDEBUG_INLINE Webcams::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : webcams_{visibility, arena, from.webcams_}, - _cached_size_{0} {} - -Webcams::Webcams( - ::google::protobuf::Arena* arena, - const Webcams& from) - : ::google::protobuf::Message(arena) { - Webcams* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +Webcams::Webcams(const Webcams& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + webcams_(from.webcams_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.component.camera.v1.Webcams) } -inline PROTOBUF_NDEBUG_INLINE Webcams::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : webcams_{visibility, arena}, - _cached_size_{0} {} -inline void Webcams::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void Webcams::SharedCtor() { } + Webcams::~Webcams() { // @@protoc_insertion_point(destructor:viam.component.camera.v1.Webcams) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Webcams::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void Webcams::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void Webcams::Clear() { +void Webcams::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.camera.v1.Webcams) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.webcams_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Webcams::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + webcams_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Webcams::_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) { + // repeated .viam.component.camera.v1.Webcam webcams = 1 [json_name = "webcams"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_webcams(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> Webcams::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Webcams_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.component.camera.v1.Webcam webcams = 1 [json_name = "webcams"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Webcams, _impl_.webcams_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.component.camera.v1.Webcam webcams = 1 [json_name = "webcams"]; - {PROTOBUF_FIELD_OFFSET(Webcams, _impl_.webcams_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::component::camera::v1::Webcam>()}, - }}, {{ - }}, -}; - -::uint8_t* Webcams::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Webcams::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.camera.v1.Webcams) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .viam.component.camera.v1.Webcam webcams = 1 [json_name = "webcams"]; for (unsigned i = 0, n = static_cast(this->_internal_webcams_size()); i < n; i++) { - const auto& repfield = this->_internal_webcams().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_webcams(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.camera.v1.Webcams) return target; } -::size_t Webcams::ByteSizeLong() const { +size_t Webcams::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.camera.v1.Webcams) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.component.camera.v1.Webcam webcams = 1 [json_name = "webcams"]; total_size += 1UL * this->_internal_webcams_size(); - for (const auto& msg : this->_internal_webcams()) { + for (const auto& msg : this->webcams_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Webcams::_class_data_ = { - Webcams::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Webcams::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Webcams::MergeImpl }; -const ::google::protobuf::Message::ClassData* Webcams::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Webcams::GetClassData() const { return &_class_data_; } + +void Webcams::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Webcams::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.camera.v1.Webcams) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Webcams::MergeFrom(const Webcams& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.camera.v1.Webcams) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_webcams()->MergeFrom( - from._internal_webcams()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + webcams_.MergeFrom(from.webcams_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Webcams::CopyFrom(const Webcams& from) { @@ -3386,297 +3273,351 @@ void Webcams::CopyFrom(const Webcams& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Webcams::IsInitialized() const { +bool Webcams::IsInitialized() const { return true; } -::_pbi::CachedSize* Webcams::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Webcams::InternalSwap(Webcams* PROTOBUF_RESTRICT other) { +void Webcams::InternalSwap(Webcams* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.webcams_.InternalSwap(&other->_impl_.webcams_); + webcams_.InternalSwap(&other->webcams_); } -::google::protobuf::Metadata Webcams::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Webcams::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_getter, &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_once, file_level_metadata_component_2fcamera_2fv1_2fcamera_2eproto[10]); } + // =================================================================== class Webcam::_Internal { public: }; -Webcam::Webcam(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Webcam::Webcam(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + properties_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.component.camera.v1.Webcam) } -inline PROTOBUF_NDEBUG_INLINE Webcam::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : properties_{visibility, arena, from.properties_}, - label_(arena, from.label_), - status_(arena, from.status_), - name_(arena, from.name_), - id_(arena, from.id_), - _cached_size_{0} {} - -Webcam::Webcam( - ::google::protobuf::Arena* arena, - const Webcam& from) - : ::google::protobuf::Message(arena) { - Webcam* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +Webcam::Webcam(const Webcam& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + properties_(from.properties_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + label_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + label_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_label().empty()) { + label_.Set(from._internal_label(), + GetArenaForAllocation()); + } + status_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + status_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_status().empty()) { + status_.Set(from._internal_status(), + GetArenaForAllocation()); + } + 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()); + } + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.component.camera.v1.Webcam) } -inline PROTOBUF_NDEBUG_INLINE Webcam::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : properties_{visibility, arena}, - label_(arena), - status_(arena), - name_(arena), - id_(arena), - _cached_size_{0} {} -inline void Webcam::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void Webcam::SharedCtor() { +label_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + label_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +status_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + status_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + Webcam::~Webcam() { // @@protoc_insertion_point(destructor:viam.component.camera.v1.Webcam) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Webcam::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.label_.Destroy(); - _impl_.status_.Destroy(); - _impl_.name_.Destroy(); - _impl_.id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + label_.Destroy(); + status_.Destroy(); + name_.Destroy(); + id_.Destroy(); } -PROTOBUF_NOINLINE void Webcam::Clear() { +void Webcam::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void Webcam::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.camera.v1.Webcam) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.properties_.Clear(); - _impl_.label_.ClearToEmpty(); - _impl_.status_.ClearToEmpty(); - _impl_.name_.ClearToEmpty(); - _impl_.id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Webcam::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + properties_.Clear(); + label_.ClearToEmpty(); + status_.ClearToEmpty(); + name_.ClearToEmpty(); + id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Webcam::_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 label = 1 [json_name = "label"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_label(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.camera.v1.Webcam.label")); + } else + goto handle_unusual; + continue; + // string status = 2 [json_name = "status"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_status(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.camera.v1.Webcam.status")); + } else + goto handle_unusual; + continue; + // repeated .viam.component.camera.v1.Property properties = 3 [json_name = "properties"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_properties(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); + } else + goto handle_unusual; + continue; + // string name = 4 [json_name = "name"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.camera.v1.Webcam.name")); + } else + goto handle_unusual; + continue; + // string id = 5 [json_name = "id"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.camera.v1.Webcam.id")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 5, 1, 57, 2> Webcam::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 5, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967264, // skipmap - offsetof(decltype(_table_), field_entries), - 5, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Webcam_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string label = 1 [json_name = "label"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Webcam, _impl_.label_)}}, - // string status = 2 [json_name = "status"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(Webcam, _impl_.status_)}}, - // repeated .viam.component.camera.v1.Property properties = 3 [json_name = "properties"]; - {::_pbi::TcParser::FastMtR1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(Webcam, _impl_.properties_)}}, - // string name = 4 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(Webcam, _impl_.name_)}}, - // string id = 5 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(Webcam, _impl_.id_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string label = 1 [json_name = "label"]; - {PROTOBUF_FIELD_OFFSET(Webcam, _impl_.label_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string status = 2 [json_name = "status"]; - {PROTOBUF_FIELD_OFFSET(Webcam, _impl_.status_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated .viam.component.camera.v1.Property properties = 3 [json_name = "properties"]; - {PROTOBUF_FIELD_OFFSET(Webcam, _impl_.properties_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // string name = 4 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(Webcam, _impl_.name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string id = 5 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(Webcam, _impl_.id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::component::camera::v1::Property>()}, - }}, {{ - "\37\5\6\0\4\2\0\0" - "viam.component.camera.v1.Webcam" - "label" - "status" - "name" - "id" - }}, -}; - -::uint8_t* Webcam::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Webcam::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.camera.v1.Webcam) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string label = 1 [json_name = "label"]; if (!this->_internal_label().empty()) { - const std::string& _s = this->_internal_label(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.camera.v1.Webcam.label"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_label().data(), static_cast(this->_internal_label().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.camera.v1.Webcam.label"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_label(), target); } // string status = 2 [json_name = "status"]; if (!this->_internal_status().empty()) { - const std::string& _s = this->_internal_status(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.camera.v1.Webcam.status"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_status().data(), static_cast(this->_internal_status().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.camera.v1.Webcam.status"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_status(), target); } // repeated .viam.component.camera.v1.Property properties = 3 [json_name = "properties"]; for (unsigned i = 0, n = static_cast(this->_internal_properties_size()); i < n; i++) { - const auto& repfield = this->_internal_properties().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_properties(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream); } // string name = 4 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.camera.v1.Webcam.name"); - target = stream->WriteStringMaybeAliased(4, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.camera.v1.Webcam.name"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_name(), target); } // string id = 5 [json_name = "id"]; if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.camera.v1.Webcam.id"); - target = stream->WriteStringMaybeAliased(5, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.camera.v1.Webcam.id"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.camera.v1.Webcam) return target; } -::size_t Webcam::ByteSizeLong() const { +size_t Webcam::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.camera.v1.Webcam) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.component.camera.v1.Property properties = 3 [json_name = "properties"]; total_size += 1UL * this->_internal_properties_size(); - for (const auto& msg : this->_internal_properties()) { + for (const auto& msg : this->properties_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // string label = 1 [json_name = "label"]; if (!this->_internal_label().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_label()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_label()); } // string status = 2 [json_name = "status"]; if (!this->_internal_status().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_status()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_status()); } // string name = 4 [json_name = "name"]; if (!this->_internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // string id = 5 [json_name = "id"]; if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Webcam::_class_data_ = { - Webcam::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Webcam::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Webcam::MergeImpl }; -const ::google::protobuf::Message::ClassData* Webcam::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Webcam::GetClassData() const { return &_class_data_; } + +void Webcam::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Webcam::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.camera.v1.Webcam) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Webcam::MergeFrom(const Webcam& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.camera.v1.Webcam) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_properties()->MergeFrom( - from._internal_properties()); + properties_.MergeFrom(from.properties_); if (!from._internal_label().empty()) { - _this->_internal_set_label(from._internal_label()); + _internal_set_label(from._internal_label()); } if (!from._internal_status().empty()) { - _this->_internal_set_status(from._internal_status()); + _internal_set_status(from._internal_status()); } if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Webcam::CopyFrom(const Webcam& from) { @@ -3686,287 +3627,293 @@ void Webcam::CopyFrom(const Webcam& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Webcam::IsInitialized() const { +bool Webcam::IsInitialized() const { return true; } -::_pbi::CachedSize* Webcam::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Webcam::InternalSwap(Webcam* PROTOBUF_RESTRICT other) { +void Webcam::InternalSwap(Webcam* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.properties_.InternalSwap(&other->_impl_.properties_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.label_, &other->_impl_.label_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.status_, &other->_impl_.status_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); -} - -::google::protobuf::Metadata Webcam::GetMetadata() const { + properties_.InternalSwap(&other->properties_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &label_, lhs_arena, + &other->label_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &status_, lhs_arena, + &other->status_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Webcam::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_getter, &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_once, file_level_metadata_component_2fcamera_2fv1_2fcamera_2eproto[11]); } + // =================================================================== class Property::_Internal { public: }; -Property::Property(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Property::Property(::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.camera.v1.Property) } -inline PROTOBUF_NDEBUG_INLINE Property::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : frame_format_(arena, from.frame_format_), - _cached_size_{0} {} - -Property::Property( - ::google::protobuf::Arena* arena, - const Property& from) - : ::google::protobuf::Message(arena) { - Property* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, width_px_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, width_px_), - offsetof(Impl_, frame_rate_) - - offsetof(Impl_, width_px_) + - sizeof(Impl_::frame_rate_)); - +Property::Property(const Property& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + frame_format_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + frame_format_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_frame_format().empty()) { + frame_format_.Set(from._internal_frame_format(), + GetArenaForAllocation()); + } + ::memcpy(&width_px_, &from.width_px_, + static_cast(reinterpret_cast(&frame_rate_) - + reinterpret_cast(&width_px_)) + sizeof(frame_rate_)); // @@protoc_insertion_point(copy_constructor:viam.component.camera.v1.Property) } -inline PROTOBUF_NDEBUG_INLINE Property::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : frame_format_(arena), - _cached_size_{0} {} - -inline void Property::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, width_px_), - 0, - offsetof(Impl_, frame_rate_) - - offsetof(Impl_, width_px_) + - sizeof(Impl_::frame_rate_)); + +inline void Property::SharedCtor() { +frame_format_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + frame_format_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&width_px_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&frame_rate_) - + reinterpret_cast(&width_px_)) + sizeof(frame_rate_)); } + Property::~Property() { // @@protoc_insertion_point(destructor:viam.component.camera.v1.Property) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Property::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.frame_format_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + frame_format_.Destroy(); } -PROTOBUF_NOINLINE void Property::Clear() { +void Property::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void Property::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.camera.v1.Property) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.frame_format_.ClearToEmpty(); - ::memset(&_impl_.width_px_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.frame_rate_) - - reinterpret_cast(&_impl_.width_px_)) + sizeof(_impl_.frame_rate_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Property::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + frame_format_.ClearToEmpty(); + ::memset(&width_px_, 0, static_cast( + reinterpret_cast(&frame_rate_) - + reinterpret_cast(&width_px_)) + sizeof(frame_rate_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Property::_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) { + // int32 width_px = 1 [json_name = "widthPx"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + width_px_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int32 height_px = 2 [json_name = "heightPx"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + height_px_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string frame_format = 3 [json_name = "frameFormat"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_frame_format(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.camera.v1.Property.frame_format")); + } else + goto handle_unusual; + continue; + // float frame_rate = 4 [json_name = "frameRate"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 37)) { + frame_rate_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(float); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 0, 54, 2> Property::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_Property_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // float frame_rate = 4 [json_name = "frameRate"]; - {::_pbi::TcParser::FastF32S1, - {37, 63, 0, PROTOBUF_FIELD_OFFSET(Property, _impl_.frame_rate_)}}, - // int32 width_px = 1 [json_name = "widthPx"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Property, _impl_.width_px_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(Property, _impl_.width_px_)}}, - // int32 height_px = 2 [json_name = "heightPx"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Property, _impl_.height_px_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(Property, _impl_.height_px_)}}, - // string frame_format = 3 [json_name = "frameFormat"]; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(Property, _impl_.frame_format_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // int32 width_px = 1 [json_name = "widthPx"]; - {PROTOBUF_FIELD_OFFSET(Property, _impl_.width_px_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // int32 height_px = 2 [json_name = "heightPx"]; - {PROTOBUF_FIELD_OFFSET(Property, _impl_.height_px_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // string frame_format = 3 [json_name = "frameFormat"]; - {PROTOBUF_FIELD_OFFSET(Property, _impl_.frame_format_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // float frame_rate = 4 [json_name = "frameRate"]; - {PROTOBUF_FIELD_OFFSET(Property, _impl_.frame_rate_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, - }}, - // no aux_entries - {{ - "\41\0\0\14\0\0\0\0" - "viam.component.camera.v1.Property" - "frame_format" - }}, -}; - -::uint8_t* Property::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Property::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.camera.v1.Property) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // int32 width_px = 1 [json_name = "widthPx"]; if (this->_internal_width_px() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<1>( - stream, this->_internal_width_px(), target); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_width_px(), target); } // int32 height_px = 2 [json_name = "heightPx"]; if (this->_internal_height_px() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<2>( - stream, this->_internal_height_px(), target); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_height_px(), target); } // string frame_format = 3 [json_name = "frameFormat"]; if (!this->_internal_frame_format().empty()) { - const std::string& _s = this->_internal_frame_format(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.camera.v1.Property.frame_format"); - target = stream->WriteStringMaybeAliased(3, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_frame_format().data(), static_cast(this->_internal_frame_format().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.camera.v1.Property.frame_format"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_frame_format(), target); } // float frame_rate = 4 [json_name = "frameRate"]; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); + static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); float tmp_frame_rate = this->_internal_frame_rate(); - ::uint32_t raw_frame_rate; + uint32_t raw_frame_rate; memcpy(&raw_frame_rate, &tmp_frame_rate, sizeof(tmp_frame_rate)); if (raw_frame_rate != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 4, this->_internal_frame_rate(), target); + target = ::_pbi::WireFormatLite::WriteFloatToArray(4, this->_internal_frame_rate(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.camera.v1.Property) return target; } -::size_t Property::ByteSizeLong() const { +size_t Property::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.camera.v1.Property) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string frame_format = 3 [json_name = "frameFormat"]; if (!this->_internal_frame_format().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_frame_format()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_frame_format()); } // int32 width_px = 1 [json_name = "widthPx"]; if (this->_internal_width_px() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_width_px()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_width_px()); } // int32 height_px = 2 [json_name = "heightPx"]; if (this->_internal_height_px() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_height_px()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_height_px()); } // float frame_rate = 4 [json_name = "frameRate"]; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); + static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); float tmp_frame_rate = this->_internal_frame_rate(); - ::uint32_t raw_frame_rate; + uint32_t raw_frame_rate; memcpy(&raw_frame_rate, &tmp_frame_rate, sizeof(tmp_frame_rate)); if (raw_frame_rate != 0) { - total_size += 5; + total_size += 1 + 4; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Property::_class_data_ = { - Property::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Property::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Property::MergeImpl }; -const ::google::protobuf::Message::ClassData* Property::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Property::GetClassData() const { return &_class_data_; } + +void Property::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Property::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.camera.v1.Property) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Property::MergeFrom(const Property& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.camera.v1.Property) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_frame_format().empty()) { - _this->_internal_set_frame_format(from._internal_frame_format()); + _internal_set_frame_format(from._internal_frame_format()); } if (from._internal_width_px() != 0) { - _this->_internal_set_width_px(from._internal_width_px()); + _internal_set_width_px(from._internal_width_px()); } if (from._internal_height_px() != 0) { - _this->_internal_set_height_px(from._internal_height_px()); + _internal_set_height_px(from._internal_height_px()); } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); + static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); float tmp_frame_rate = from._internal_frame_rate(); - ::uint32_t raw_frame_rate; + uint32_t raw_frame_rate; memcpy(&raw_frame_rate, &tmp_frame_rate, sizeof(tmp_frame_rate)); if (raw_frame_rate != 0) { - _this->_internal_set_frame_rate(from._internal_frame_rate()); + _internal_set_frame_rate(from._internal_frame_rate()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Property::CopyFrom(const Property& from) { @@ -3976,350 +3923,344 @@ void Property::CopyFrom(const Property& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Property::IsInitialized() const { +bool Property::IsInitialized() const { return true; } -::_pbi::CachedSize* Property::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Property::InternalSwap(Property* PROTOBUF_RESTRICT other) { +void Property::InternalSwap(Property* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.frame_format_, &other->_impl_.frame_format_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(Property, _impl_.frame_rate_) - + sizeof(Property::_impl_.frame_rate_) - - PROTOBUF_FIELD_OFFSET(Property, _impl_.width_px_)>( - reinterpret_cast(&_impl_.width_px_), - reinterpret_cast(&other->_impl_.width_px_)); -} - -::google::protobuf::Metadata Property::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &frame_format_, lhs_arena, + &other->frame_format_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Property, frame_rate_) + + sizeof(Property::frame_rate_) + - PROTOBUF_FIELD_OFFSET(Property, width_px_)>( + reinterpret_cast(&width_px_), + reinterpret_cast(&other->width_px_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Property::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_getter, &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_once, file_level_metadata_component_2fcamera_2fv1_2fcamera_2eproto[12]); } + // =================================================================== class IntrinsicParameters::_Internal { public: }; -IntrinsicParameters::IntrinsicParameters(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +IntrinsicParameters::IntrinsicParameters(::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.camera.v1.IntrinsicParameters) } -IntrinsicParameters::IntrinsicParameters( - ::google::protobuf::Arena* arena, const IntrinsicParameters& from) - : IntrinsicParameters(arena) { - MergeFrom(from); +IntrinsicParameters::IntrinsicParameters(const IntrinsicParameters& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&width_px_, &from.width_px_, + static_cast(reinterpret_cast(¢er_y_px_) - + reinterpret_cast(&width_px_)) + sizeof(center_y_px_)); + // @@protoc_insertion_point(copy_constructor:viam.component.camera.v1.IntrinsicParameters) } -inline PROTOBUF_NDEBUG_INLINE IntrinsicParameters::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void IntrinsicParameters::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, width_px_), - 0, - offsetof(Impl_, center_y_px_) - - offsetof(Impl_, width_px_) + - sizeof(Impl_::center_y_px_)); +inline void IntrinsicParameters::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&width_px_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(¢er_y_px_) - + reinterpret_cast(&width_px_)) + sizeof(center_y_px_)); } + IntrinsicParameters::~IntrinsicParameters() { // @@protoc_insertion_point(destructor:viam.component.camera.v1.IntrinsicParameters) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void IntrinsicParameters::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void IntrinsicParameters::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void IntrinsicParameters::Clear() { +void IntrinsicParameters::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.camera.v1.IntrinsicParameters) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&_impl_.width_px_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.center_y_px_) - - reinterpret_cast(&_impl_.width_px_)) + sizeof(_impl_.center_y_px_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* IntrinsicParameters::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + ::memset(&width_px_, 0, static_cast( + reinterpret_cast(¢er_y_px_) - + reinterpret_cast(&width_px_)) + sizeof(center_y_px_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* IntrinsicParameters::_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) { + // uint32 width_px = 1 [json_name = "widthPx"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + width_px_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // uint32 height_px = 2 [json_name = "heightPx"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + height_px_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // double focal_x_px = 3 [json_name = "focalXPx"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 25)) { + focal_x_px_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double focal_y_px = 4 [json_name = "focalYPx"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 33)) { + focal_y_px_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double center_x_px = 5 [json_name = "centerXPx"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 41)) { + center_x_px_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double center_y_px = 6 [json_name = "centerYPx"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 49)) { + center_y_px_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 6, 0, 0, 2> IntrinsicParameters::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 6, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967232, // skipmap - offsetof(decltype(_table_), field_entries), - 6, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_IntrinsicParameters_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // uint32 width_px = 1 [json_name = "widthPx"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(IntrinsicParameters, _impl_.width_px_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(IntrinsicParameters, _impl_.width_px_)}}, - // uint32 height_px = 2 [json_name = "heightPx"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(IntrinsicParameters, _impl_.height_px_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(IntrinsicParameters, _impl_.height_px_)}}, - // double focal_x_px = 3 [json_name = "focalXPx"]; - {::_pbi::TcParser::FastF64S1, - {25, 63, 0, PROTOBUF_FIELD_OFFSET(IntrinsicParameters, _impl_.focal_x_px_)}}, - // double focal_y_px = 4 [json_name = "focalYPx"]; - {::_pbi::TcParser::FastF64S1, - {33, 63, 0, PROTOBUF_FIELD_OFFSET(IntrinsicParameters, _impl_.focal_y_px_)}}, - // double center_x_px = 5 [json_name = "centerXPx"]; - {::_pbi::TcParser::FastF64S1, - {41, 63, 0, PROTOBUF_FIELD_OFFSET(IntrinsicParameters, _impl_.center_x_px_)}}, - // double center_y_px = 6 [json_name = "centerYPx"]; - {::_pbi::TcParser::FastF64S1, - {49, 63, 0, PROTOBUF_FIELD_OFFSET(IntrinsicParameters, _impl_.center_y_px_)}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // uint32 width_px = 1 [json_name = "widthPx"]; - {PROTOBUF_FIELD_OFFSET(IntrinsicParameters, _impl_.width_px_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, - // uint32 height_px = 2 [json_name = "heightPx"]; - {PROTOBUF_FIELD_OFFSET(IntrinsicParameters, _impl_.height_px_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, - // double focal_x_px = 3 [json_name = "focalXPx"]; - {PROTOBUF_FIELD_OFFSET(IntrinsicParameters, _impl_.focal_x_px_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double focal_y_px = 4 [json_name = "focalYPx"]; - {PROTOBUF_FIELD_OFFSET(IntrinsicParameters, _impl_.focal_y_px_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double center_x_px = 5 [json_name = "centerXPx"]; - {PROTOBUF_FIELD_OFFSET(IntrinsicParameters, _impl_.center_x_px_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double center_y_px = 6 [json_name = "centerYPx"]; - {PROTOBUF_FIELD_OFFSET(IntrinsicParameters, _impl_.center_y_px_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* IntrinsicParameters::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* IntrinsicParameters::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.camera.v1.IntrinsicParameters) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // uint32 width_px = 1 [json_name = "widthPx"]; if (this->_internal_width_px() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 1, this->_internal_width_px(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_width_px(), target); } // uint32 height_px = 2 [json_name = "heightPx"]; if (this->_internal_height_px() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 2, this->_internal_height_px(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_height_px(), target); } // double focal_x_px = 3 [json_name = "focalXPx"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_focal_x_px = this->_internal_focal_x_px(); - ::uint64_t raw_focal_x_px; + uint64_t raw_focal_x_px; memcpy(&raw_focal_x_px, &tmp_focal_x_px, sizeof(tmp_focal_x_px)); if (raw_focal_x_px != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 3, this->_internal_focal_x_px(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(3, this->_internal_focal_x_px(), target); } // double focal_y_px = 4 [json_name = "focalYPx"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_focal_y_px = this->_internal_focal_y_px(); - ::uint64_t raw_focal_y_px; + uint64_t raw_focal_y_px; memcpy(&raw_focal_y_px, &tmp_focal_y_px, sizeof(tmp_focal_y_px)); if (raw_focal_y_px != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 4, this->_internal_focal_y_px(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(4, this->_internal_focal_y_px(), target); } // double center_x_px = 5 [json_name = "centerXPx"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_center_x_px = this->_internal_center_x_px(); - ::uint64_t raw_center_x_px; + uint64_t raw_center_x_px; memcpy(&raw_center_x_px, &tmp_center_x_px, sizeof(tmp_center_x_px)); if (raw_center_x_px != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 5, this->_internal_center_x_px(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(5, this->_internal_center_x_px(), target); } // double center_y_px = 6 [json_name = "centerYPx"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_center_y_px = this->_internal_center_y_px(); - ::uint64_t raw_center_y_px; + uint64_t raw_center_y_px; memcpy(&raw_center_y_px, &tmp_center_y_px, sizeof(tmp_center_y_px)); if (raw_center_y_px != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 6, this->_internal_center_y_px(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(6, this->_internal_center_y_px(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.camera.v1.IntrinsicParameters) return target; } -::size_t IntrinsicParameters::ByteSizeLong() const { +size_t IntrinsicParameters::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.camera.v1.IntrinsicParameters) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // uint32 width_px = 1 [json_name = "widthPx"]; if (this->_internal_width_px() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_width_px()); + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_width_px()); } // uint32 height_px = 2 [json_name = "heightPx"]; if (this->_internal_height_px() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_height_px()); + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_height_px()); } // double focal_x_px = 3 [json_name = "focalXPx"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_focal_x_px = this->_internal_focal_x_px(); - ::uint64_t raw_focal_x_px; + uint64_t raw_focal_x_px; memcpy(&raw_focal_x_px, &tmp_focal_x_px, sizeof(tmp_focal_x_px)); if (raw_focal_x_px != 0) { - total_size += 9; + total_size += 1 + 8; } // double focal_y_px = 4 [json_name = "focalYPx"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_focal_y_px = this->_internal_focal_y_px(); - ::uint64_t raw_focal_y_px; + uint64_t raw_focal_y_px; memcpy(&raw_focal_y_px, &tmp_focal_y_px, sizeof(tmp_focal_y_px)); if (raw_focal_y_px != 0) { - total_size += 9; + total_size += 1 + 8; } // double center_x_px = 5 [json_name = "centerXPx"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_center_x_px = this->_internal_center_x_px(); - ::uint64_t raw_center_x_px; + uint64_t raw_center_x_px; memcpy(&raw_center_x_px, &tmp_center_x_px, sizeof(tmp_center_x_px)); if (raw_center_x_px != 0) { - total_size += 9; + total_size += 1 + 8; } // double center_y_px = 6 [json_name = "centerYPx"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_center_y_px = this->_internal_center_y_px(); - ::uint64_t raw_center_y_px; + uint64_t raw_center_y_px; memcpy(&raw_center_y_px, &tmp_center_y_px, sizeof(tmp_center_y_px)); if (raw_center_y_px != 0) { - total_size += 9; + total_size += 1 + 8; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData IntrinsicParameters::_class_data_ = { - IntrinsicParameters::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData IntrinsicParameters::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + IntrinsicParameters::MergeImpl }; -const ::google::protobuf::Message::ClassData* IntrinsicParameters::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*IntrinsicParameters::GetClassData() const { return &_class_data_; } + +void IntrinsicParameters::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void IntrinsicParameters::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.camera.v1.IntrinsicParameters) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void IntrinsicParameters::MergeFrom(const IntrinsicParameters& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.camera.v1.IntrinsicParameters) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_width_px() != 0) { - _this->_internal_set_width_px(from._internal_width_px()); + _internal_set_width_px(from._internal_width_px()); } if (from._internal_height_px() != 0) { - _this->_internal_set_height_px(from._internal_height_px()); + _internal_set_height_px(from._internal_height_px()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_focal_x_px = from._internal_focal_x_px(); - ::uint64_t raw_focal_x_px; + uint64_t raw_focal_x_px; memcpy(&raw_focal_x_px, &tmp_focal_x_px, sizeof(tmp_focal_x_px)); if (raw_focal_x_px != 0) { - _this->_internal_set_focal_x_px(from._internal_focal_x_px()); + _internal_set_focal_x_px(from._internal_focal_x_px()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_focal_y_px = from._internal_focal_y_px(); - ::uint64_t raw_focal_y_px; + uint64_t raw_focal_y_px; memcpy(&raw_focal_y_px, &tmp_focal_y_px, sizeof(tmp_focal_y_px)); if (raw_focal_y_px != 0) { - _this->_internal_set_focal_y_px(from._internal_focal_y_px()); + _internal_set_focal_y_px(from._internal_focal_y_px()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_center_x_px = from._internal_center_x_px(); - ::uint64_t raw_center_x_px; + uint64_t raw_center_x_px; memcpy(&raw_center_x_px, &tmp_center_x_px, sizeof(tmp_center_x_px)); if (raw_center_x_px != 0) { - _this->_internal_set_center_x_px(from._internal_center_x_px()); + _internal_set_center_x_px(from._internal_center_x_px()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_center_y_px = from._internal_center_y_px(); - ::uint64_t raw_center_y_px; + uint64_t raw_center_y_px; memcpy(&raw_center_y_px, &tmp_center_y_px, sizeof(tmp_center_y_px)); if (raw_center_y_px != 0) { - _this->_internal_set_center_y_px(from._internal_center_y_px()); + _internal_set_center_y_px(from._internal_center_y_px()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void IntrinsicParameters::CopyFrom(const IntrinsicParameters& from) { @@ -4329,151 +4270,155 @@ void IntrinsicParameters::CopyFrom(const IntrinsicParameters& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool IntrinsicParameters::IsInitialized() const { +bool IntrinsicParameters::IsInitialized() const { return true; } -::_pbi::CachedSize* IntrinsicParameters::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void IntrinsicParameters::InternalSwap(IntrinsicParameters* PROTOBUF_RESTRICT other) { +void IntrinsicParameters::InternalSwap(IntrinsicParameters* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(IntrinsicParameters, _impl_.center_y_px_) - + sizeof(IntrinsicParameters::_impl_.center_y_px_) - - PROTOBUF_FIELD_OFFSET(IntrinsicParameters, _impl_.width_px_)>( - reinterpret_cast(&_impl_.width_px_), - reinterpret_cast(&other->_impl_.width_px_)); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(IntrinsicParameters, center_y_px_) + + sizeof(IntrinsicParameters::center_y_px_) + - PROTOBUF_FIELD_OFFSET(IntrinsicParameters, width_px_)>( + reinterpret_cast(&width_px_), + reinterpret_cast(&other->width_px_)); } -::google::protobuf::Metadata IntrinsicParameters::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata IntrinsicParameters::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_getter, &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_once, file_level_metadata_component_2fcamera_2fv1_2fcamera_2eproto[13]); } + // =================================================================== class DistortionParameters::_Internal { public: }; -DistortionParameters::DistortionParameters(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +DistortionParameters::DistortionParameters(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + parameters_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.component.camera.v1.DistortionParameters) } -inline PROTOBUF_NDEBUG_INLINE DistortionParameters::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : parameters_{visibility, arena, from.parameters_}, - model_(arena, from.model_), - _cached_size_{0} {} - -DistortionParameters::DistortionParameters( - ::google::protobuf::Arena* arena, - const DistortionParameters& from) - : ::google::protobuf::Message(arena) { - DistortionParameters* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +DistortionParameters::DistortionParameters(const DistortionParameters& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + parameters_(from.parameters_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + model_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + model_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_model().empty()) { + model_.Set(from._internal_model(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.component.camera.v1.DistortionParameters) } -inline PROTOBUF_NDEBUG_INLINE DistortionParameters::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : parameters_{visibility, arena}, - model_(arena), - _cached_size_{0} {} -inline void DistortionParameters::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void DistortionParameters::SharedCtor() { +model_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + model_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + DistortionParameters::~DistortionParameters() { // @@protoc_insertion_point(destructor:viam.component.camera.v1.DistortionParameters) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void DistortionParameters::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.model_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + model_.Destroy(); +} + +void DistortionParameters::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void DistortionParameters::Clear() { +void DistortionParameters::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.camera.v1.DistortionParameters) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.parameters_.Clear(); - _impl_.model_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* DistortionParameters::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + parameters_.Clear(); + model_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DistortionParameters::_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 model = 1 [json_name = "model"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_model(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.camera.v1.DistortionParameters.model")); + } else + goto handle_unusual; + continue; + // repeated double parameters = 2 [json_name = "parameters"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedDoubleParser(_internal_mutable_parameters(), ptr, ctx); + CHK_(ptr); + } else if (static_cast(tag) == 17) { + _internal_add_parameters(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); + ptr += sizeof(double); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 59, 2> DistortionParameters::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_DistortionParameters_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated double parameters = 2 [json_name = "parameters"]; - {::_pbi::TcParser::FastF64P1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(DistortionParameters, _impl_.parameters_)}}, - // string model = 1 [json_name = "model"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(DistortionParameters, _impl_.model_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string model = 1 [json_name = "model"]; - {PROTOBUF_FIELD_OFFSET(DistortionParameters, _impl_.model_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated double parameters = 2 [json_name = "parameters"]; - {PROTOBUF_FIELD_OFFSET(DistortionParameters, _impl_.parameters_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)}, - }}, - // no aux_entries - {{ - "\55\5\0\0\0\0\0\0" - "viam.component.camera.v1.DistortionParameters" - "model" - }}, -}; - -::uint8_t* DistortionParameters::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* DistortionParameters::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.camera.v1.DistortionParameters) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string model = 1 [json_name = "model"]; if (!this->_internal_model().empty()) { - const std::string& _s = this->_internal_model(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.camera.v1.DistortionParameters.model"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_model().data(), static_cast(this->_internal_model().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.camera.v1.DistortionParameters.model"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_model(), target); } // repeated double parameters = 2 [json_name = "parameters"]; @@ -4482,64 +4427,66 @@ ::uint8_t* DistortionParameters::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.camera.v1.DistortionParameters) return target; } -::size_t DistortionParameters::ByteSizeLong() const { +size_t DistortionParameters::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.camera.v1.DistortionParameters) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated double parameters = 2 [json_name = "parameters"]; { - std::size_t data_size = std::size_t{8} * - ::_pbi::FromIntSize(this->_internal_parameters_size()) - ; - std::size_t tag_size = data_size == 0 - ? 0 - : 1 + ::_pbi::WireFormatLite::Int32Size( - static_cast(data_size)) - ; - total_size += tag_size + data_size; + unsigned int count = static_cast(this->_internal_parameters_size()); + size_t data_size = 8UL * count; + if (data_size > 0) { + total_size += 1 + + ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); + } + total_size += data_size; } + // string model = 1 [json_name = "model"]; if (!this->_internal_model().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_model()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_model()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData DistortionParameters::_class_data_ = { - DistortionParameters::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DistortionParameters::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + DistortionParameters::MergeImpl }; -const ::google::protobuf::Message::ClassData* DistortionParameters::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DistortionParameters::GetClassData() const { return &_class_data_; } + +void DistortionParameters::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void DistortionParameters::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.camera.v1.DistortionParameters) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void DistortionParameters::MergeFrom(const DistortionParameters& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.camera.v1.DistortionParameters) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_parameters()->MergeFrom(from._internal_parameters()); + parameters_.MergeFrom(from.parameters_); if (!from._internal_model().empty()) { - _this->_internal_set_model(from._internal_model()); + _internal_set_model(from._internal_model()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void DistortionParameters::CopyFrom(const DistortionParameters& from) { @@ -4549,35 +4496,95 @@ void DistortionParameters::CopyFrom(const DistortionParameters& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool DistortionParameters::IsInitialized() const { +bool DistortionParameters::IsInitialized() const { return true; } -::_pbi::CachedSize* DistortionParameters::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void DistortionParameters::InternalSwap(DistortionParameters* PROTOBUF_RESTRICT other) { +void DistortionParameters::InternalSwap(DistortionParameters* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.parameters_.InternalSwap(&other->_impl_.parameters_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.model_, &other->_impl_.model_, arena); + parameters_.InternalSwap(&other->parameters_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &model_, lhs_arena, + &other->model_, rhs_arena + ); } -::google::protobuf::Metadata DistortionParameters::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata DistortionParameters::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_getter, &descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto_once, file_level_metadata_component_2fcamera_2fv1_2fcamera_2eproto[14]); } + // @@protoc_insertion_point(namespace_scope) } // namespace v1 } // namespace camera } // namespace component } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::component::camera::v1::GetImageRequest* +Arena::CreateMaybeMessage< ::viam::component::camera::v1::GetImageRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::camera::v1::GetImageRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::camera::v1::GetImageResponse* +Arena::CreateMaybeMessage< ::viam::component::camera::v1::GetImageResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::camera::v1::GetImageResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::camera::v1::GetImagesRequest* +Arena::CreateMaybeMessage< ::viam::component::camera::v1::GetImagesRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::camera::v1::GetImagesRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::camera::v1::GetImagesResponse* +Arena::CreateMaybeMessage< ::viam::component::camera::v1::GetImagesResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::camera::v1::GetImagesResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::camera::v1::Image* +Arena::CreateMaybeMessage< ::viam::component::camera::v1::Image >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::camera::v1::Image >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::camera::v1::RenderFrameRequest* +Arena::CreateMaybeMessage< ::viam::component::camera::v1::RenderFrameRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::camera::v1::RenderFrameRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::camera::v1::GetPointCloudRequest* +Arena::CreateMaybeMessage< ::viam::component::camera::v1::GetPointCloudRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::camera::v1::GetPointCloudRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::camera::v1::GetPointCloudResponse* +Arena::CreateMaybeMessage< ::viam::component::camera::v1::GetPointCloudResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::camera::v1::GetPointCloudResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::camera::v1::GetPropertiesRequest* +Arena::CreateMaybeMessage< ::viam::component::camera::v1::GetPropertiesRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::camera::v1::GetPropertiesRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::camera::v1::GetPropertiesResponse* +Arena::CreateMaybeMessage< ::viam::component::camera::v1::GetPropertiesResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::camera::v1::GetPropertiesResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::camera::v1::Webcams* +Arena::CreateMaybeMessage< ::viam::component::camera::v1::Webcams >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::camera::v1::Webcams >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::camera::v1::Webcam* +Arena::CreateMaybeMessage< ::viam::component::camera::v1::Webcam >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::camera::v1::Webcam >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::camera::v1::Property* +Arena::CreateMaybeMessage< ::viam::component::camera::v1::Property >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::camera::v1::Property >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::camera::v1::IntrinsicParameters* +Arena::CreateMaybeMessage< ::viam::component::camera::v1::IntrinsicParameters >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::camera::v1::IntrinsicParameters >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::camera::v1::DistortionParameters* +Arena::CreateMaybeMessage< ::viam::component::camera::v1::DistortionParameters >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::camera::v1::DistortionParameters >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/component/camera/v1/camera.pb.h b/src/viam/api/component/camera/v1/camera.pb.h index ca4f96f68..905ba3dc6 100644 --- a/src/viam/api/component/camera/v1/camera.pb.h +++ b/src/viam/api/component/camera/v1/camera.pb.h @@ -1,65 +1,54 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: component/camera/v1/camera.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_component_2fcamera_2fv1_2fcamera_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_component_2fcamera_2fv1_2fcamera_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_component_2fcamera_2fv1_2fcamera_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_component_2fcamera_2fv1_2fcamera_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/generated_enum_reflection.h" -#include "google/protobuf/unknown_field_set.h" + +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include #include "common/v1/common.pb.h" #include "google/api/annotations.pb.h" #include "google/api/httpbody.pb.h" -#include "google/protobuf/struct.pb.h" +#include // @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - +#include #define PROTOBUF_INTERNAL_EXPORT_component_2fcamera_2fv1_2fcamera_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_component_2fcamera_2fv1_2fcamera_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto; namespace viam { namespace component { namespace camera { @@ -113,81 +102,80 @@ extern WebcamsDefaultTypeInternal _Webcams_default_instance_; } // namespace camera } // namespace component } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::component::camera::v1::DistortionParameters* Arena::CreateMaybeMessage<::viam::component::camera::v1::DistortionParameters>(Arena*); +template<> ::viam::component::camera::v1::GetImageRequest* Arena::CreateMaybeMessage<::viam::component::camera::v1::GetImageRequest>(Arena*); +template<> ::viam::component::camera::v1::GetImageResponse* Arena::CreateMaybeMessage<::viam::component::camera::v1::GetImageResponse>(Arena*); +template<> ::viam::component::camera::v1::GetImagesRequest* Arena::CreateMaybeMessage<::viam::component::camera::v1::GetImagesRequest>(Arena*); +template<> ::viam::component::camera::v1::GetImagesResponse* Arena::CreateMaybeMessage<::viam::component::camera::v1::GetImagesResponse>(Arena*); +template<> ::viam::component::camera::v1::GetPointCloudRequest* Arena::CreateMaybeMessage<::viam::component::camera::v1::GetPointCloudRequest>(Arena*); +template<> ::viam::component::camera::v1::GetPointCloudResponse* Arena::CreateMaybeMessage<::viam::component::camera::v1::GetPointCloudResponse>(Arena*); +template<> ::viam::component::camera::v1::GetPropertiesRequest* Arena::CreateMaybeMessage<::viam::component::camera::v1::GetPropertiesRequest>(Arena*); +template<> ::viam::component::camera::v1::GetPropertiesResponse* Arena::CreateMaybeMessage<::viam::component::camera::v1::GetPropertiesResponse>(Arena*); +template<> ::viam::component::camera::v1::Image* Arena::CreateMaybeMessage<::viam::component::camera::v1::Image>(Arena*); +template<> ::viam::component::camera::v1::IntrinsicParameters* Arena::CreateMaybeMessage<::viam::component::camera::v1::IntrinsicParameters>(Arena*); +template<> ::viam::component::camera::v1::Property* Arena::CreateMaybeMessage<::viam::component::camera::v1::Property>(Arena*); +template<> ::viam::component::camera::v1::RenderFrameRequest* Arena::CreateMaybeMessage<::viam::component::camera::v1::RenderFrameRequest>(Arena*); +template<> ::viam::component::camera::v1::Webcam* Arena::CreateMaybeMessage<::viam::component::camera::v1::Webcam>(Arena*); +template<> ::viam::component::camera::v1::Webcams* Arena::CreateMaybeMessage<::viam::component::camera::v1::Webcams>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace viam { namespace component { namespace camera { namespace v1 { + enum Format : int { FORMAT_UNSPECIFIED = 0, FORMAT_RAW_RGBA = 1, FORMAT_RAW_DEPTH = 2, FORMAT_JPEG = 3, FORMAT_PNG = 4, - Format_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - Format_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), + Format_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + Format_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() }; - bool Format_IsValid(int value); -extern const uint32_t Format_internal_data_[]; -constexpr Format Format_MIN = static_cast(0); -constexpr Format Format_MAX = static_cast(4); -constexpr int Format_ARRAYSIZE = 4 + 1; -const ::google::protobuf::EnumDescriptor* -Format_descriptor(); -template -const std::string& Format_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to Format_Name()."); - return Format_Name(static_cast(value)); -} -template <> -inline const std::string& Format_Name(Format value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool Format_Parse(absl::string_view name, Format* value) { - return ::google::protobuf::internal::ParseNamedEnum( - Format_descriptor(), name, value); +constexpr Format Format_MIN = FORMAT_UNSPECIFIED; +constexpr Format Format_MAX = FORMAT_PNG; +constexpr int Format_ARRAYSIZE = Format_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Format_descriptor(); +template +inline const std::string& Format_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function Format_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + Format_descriptor(), enum_t_value); +} +inline bool Format_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Format* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + Format_descriptor(), name, value); } - // =================================================================== - -// ------------------------------------------------------------------- - -class Property final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.camera.v1.Property) */ { +class GetImageRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.camera.v1.GetImageRequest) */ { public: - inline Property() : Property(nullptr) {} - ~Property() override; - template - explicit PROTOBUF_CONSTEXPR Property(::google::protobuf::internal::ConstantInitialized); + inline GetImageRequest() : GetImageRequest(nullptr) {} + ~GetImageRequest() override; + explicit PROTOBUF_CONSTEXPR GetImageRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Property(const Property& from) - : Property(nullptr, from) {} - Property(Property&& from) noexcept - : Property() { + GetImageRequest(const GetImageRequest& from); + GetImageRequest(GetImageRequest&& from) noexcept + : GetImageRequest() { *this = ::std::move(from); } - inline Property& operator=(const Property& from) { + inline GetImageRequest& operator=(const GetImageRequest& from) { CopyFrom(from); return *this; } - inline Property& operator=(Property&& from) noexcept { + inline GetImageRequest& operator=(GetImageRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -197,214 +185,181 @@ class Property final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Property& default_instance() { + static const GetImageRequest& default_instance() { return *internal_default_instance(); } - static inline const Property* internal_default_instance() { - return reinterpret_cast( - &_Property_default_instance_); + static inline const GetImageRequest* internal_default_instance() { + return reinterpret_cast( + &_GetImageRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 12; + 0; - friend void swap(Property& a, Property& b) { + friend void swap(GetImageRequest& a, GetImageRequest& b) { a.Swap(&b); } - inline void Swap(Property* other) { + inline void Swap(GetImageRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Property* other) { + void UnsafeArenaSwap(GetImageRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Property* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Property& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Property& from) { - Property::MergeImpl(*this, from); + GetImageRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetImageRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetImageRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Property* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetImageRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.camera.v1.Property"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.camera.v1.GetImageRequest"; } protected: - explicit Property(::google::protobuf::Arena* arena); - Property(::google::protobuf::Arena* arena, const Property& from); + explicit GetImageRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kFrameFormatFieldNumber = 3, - kWidthPxFieldNumber = 1, - kHeightPxFieldNumber = 2, - kFrameRateFieldNumber = 4, + kNameFieldNumber = 1, + kMimeTypeFieldNumber = 2, + kExtraFieldNumber = 99, }; - // string frame_format = 3 [json_name = "frameFormat"]; - void clear_frame_format() ; - const std::string& frame_format() const; - template - void set_frame_format(Arg_&& arg, Args_... args); - std::string* mutable_frame_format(); - PROTOBUF_NODISCARD std::string* release_frame_format(); - void set_allocated_frame_format(std::string* value); - + // 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_frame_format() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_frame_format( - const std::string& value); - std::string* _internal_mutable_frame_format(); - + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); public: - // int32 width_px = 1 [json_name = "widthPx"]; - void clear_width_px() ; - ::int32_t width_px() const; - void set_width_px(::int32_t value); + // string mime_type = 2 [json_name = "mimeType"]; + void clear_mime_type(); + const std::string& mime_type() const; + template + void set_mime_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_mime_type(); + PROTOBUF_NODISCARD std::string* release_mime_type(); + void set_allocated_mime_type(std::string* mime_type); private: - ::int32_t _internal_width_px() const; - void _internal_set_width_px(::int32_t value); - + const std::string& _internal_mime_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_mime_type(const std::string& value); + std::string* _internal_mutable_mime_type(); public: - // int32 height_px = 2 [json_name = "heightPx"]; - void clear_height_px() ; - ::int32_t height_px() const; - void set_height_px(::int32_t value); + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + bool has_extra() const; private: - ::int32_t _internal_height_px() const; - void _internal_set_height_px(::int32_t value); - + bool _internal_has_extra() const; public: - // float frame_rate = 4 [json_name = "frameRate"]; - void clear_frame_rate() ; - float frame_rate() const; - void set_frame_rate(float value); - + 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: - float _internal_frame_rate() const; - void _internal_set_frame_rate(float value); - + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_extra() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_extra(); public: - // @@protoc_insertion_point(class_scope:viam.component.camera.v1.Property) + 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.camera.v1.GetImageRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 0, - 54, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr frame_format_; - ::int32_t width_px_; - ::int32_t height_px_; - float frame_rate_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr mime_type_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fcamera_2fv1_2fcamera_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class IntrinsicParameters final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.camera.v1.IntrinsicParameters) */ { +class GetImageResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.camera.v1.GetImageResponse) */ { public: - inline IntrinsicParameters() : IntrinsicParameters(nullptr) {} - ~IntrinsicParameters() override; - template - explicit PROTOBUF_CONSTEXPR IntrinsicParameters(::google::protobuf::internal::ConstantInitialized); + inline GetImageResponse() : GetImageResponse(nullptr) {} + ~GetImageResponse() override; + explicit PROTOBUF_CONSTEXPR GetImageResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline IntrinsicParameters(const IntrinsicParameters& from) - : IntrinsicParameters(nullptr, from) {} - IntrinsicParameters(IntrinsicParameters&& from) noexcept - : IntrinsicParameters() { + GetImageResponse(const GetImageResponse& from); + GetImageResponse(GetImageResponse&& from) noexcept + : GetImageResponse() { *this = ::std::move(from); } - inline IntrinsicParameters& operator=(const IntrinsicParameters& from) { + inline GetImageResponse& operator=(const GetImageResponse& from) { CopyFrom(from); return *this; } - inline IntrinsicParameters& operator=(IntrinsicParameters&& from) noexcept { + inline GetImageResponse& operator=(GetImageResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -414,232 +369,161 @@ class IntrinsicParameters final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const IntrinsicParameters& default_instance() { + static const GetImageResponse& default_instance() { return *internal_default_instance(); } - static inline const IntrinsicParameters* internal_default_instance() { - return reinterpret_cast( - &_IntrinsicParameters_default_instance_); + static inline const GetImageResponse* internal_default_instance() { + return reinterpret_cast( + &_GetImageResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 13; + 1; - friend void swap(IntrinsicParameters& a, IntrinsicParameters& b) { + friend void swap(GetImageResponse& a, GetImageResponse& b) { a.Swap(&b); } - inline void Swap(IntrinsicParameters* other) { + inline void Swap(GetImageResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(IntrinsicParameters* other) { + void UnsafeArenaSwap(GetImageResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - IntrinsicParameters* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const IntrinsicParameters& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const IntrinsicParameters& from) { - IntrinsicParameters::MergeImpl(*this, from); + GetImageResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetImageResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetImageResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(IntrinsicParameters* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetImageResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.camera.v1.IntrinsicParameters"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.camera.v1.GetImageResponse"; } protected: - explicit IntrinsicParameters(::google::protobuf::Arena* arena); - IntrinsicParameters(::google::protobuf::Arena* arena, const IntrinsicParameters& from); + explicit GetImageResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kWidthPxFieldNumber = 1, - kHeightPxFieldNumber = 2, - kFocalXPxFieldNumber = 3, - kFocalYPxFieldNumber = 4, - kCenterXPxFieldNumber = 5, - kCenterYPxFieldNumber = 6, + kMimeTypeFieldNumber = 1, + kImageFieldNumber = 2, }; - // uint32 width_px = 1 [json_name = "widthPx"]; - void clear_width_px() ; - ::uint32_t width_px() const; - void set_width_px(::uint32_t value); - - private: - ::uint32_t _internal_width_px() const; - void _internal_set_width_px(::uint32_t value); - - public: - // uint32 height_px = 2 [json_name = "heightPx"]; - void clear_height_px() ; - ::uint32_t height_px() const; - void set_height_px(::uint32_t value); - - private: - ::uint32_t _internal_height_px() const; - void _internal_set_height_px(::uint32_t value); - - public: - // double focal_x_px = 3 [json_name = "focalXPx"]; - void clear_focal_x_px() ; - double focal_x_px() const; - void set_focal_x_px(double value); - - private: - double _internal_focal_x_px() const; - void _internal_set_focal_x_px(double value); - - public: - // double focal_y_px = 4 [json_name = "focalYPx"]; - void clear_focal_y_px() ; - double focal_y_px() const; - void set_focal_y_px(double value); - + // string mime_type = 1 [json_name = "mimeType"]; + void clear_mime_type(); + const std::string& mime_type() const; + template + void set_mime_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_mime_type(); + PROTOBUF_NODISCARD std::string* release_mime_type(); + void set_allocated_mime_type(std::string* mime_type); private: - double _internal_focal_y_px() const; - void _internal_set_focal_y_px(double value); - + const std::string& _internal_mime_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_mime_type(const std::string& value); + std::string* _internal_mutable_mime_type(); public: - // double center_x_px = 5 [json_name = "centerXPx"]; - void clear_center_x_px() ; - double center_x_px() const; - void set_center_x_px(double value); + // bytes image = 2 [json_name = "image"]; + void clear_image(); + const std::string& image() const; + template + void set_image(ArgT0&& arg0, ArgT... args); + std::string* mutable_image(); + PROTOBUF_NODISCARD std::string* release_image(); + void set_allocated_image(std::string* image); private: - double _internal_center_x_px() const; - void _internal_set_center_x_px(double value); - + const std::string& _internal_image() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_image(const std::string& value); + std::string* _internal_mutable_image(); public: - // double center_y_px = 6 [json_name = "centerYPx"]; - void clear_center_y_px() ; - double center_y_px() const; - void set_center_y_px(double value); - - private: - double _internal_center_y_px() const; - void _internal_set_center_y_px(double value); - public: - // @@protoc_insertion_point(class_scope:viam.component.camera.v1.IntrinsicParameters) + // @@protoc_insertion_point(class_scope:viam.component.camera.v1.GetImageResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 6, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::uint32_t width_px_; - ::uint32_t height_px_; - double focal_x_px_; - double focal_y_px_; - double center_x_px_; - double center_y_px_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr mime_type_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr image_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fcamera_2fv1_2fcamera_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Image final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.camera.v1.Image) */ { +class GetImagesRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.camera.v1.GetImagesRequest) */ { public: - inline Image() : Image(nullptr) {} - ~Image() override; - template - explicit PROTOBUF_CONSTEXPR Image(::google::protobuf::internal::ConstantInitialized); + inline GetImagesRequest() : GetImagesRequest(nullptr) {} + ~GetImagesRequest() override; + explicit PROTOBUF_CONSTEXPR GetImagesRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Image(const Image& from) - : Image(nullptr, from) {} - Image(Image&& from) noexcept - : Image() { + GetImagesRequest(const GetImagesRequest& from); + GetImagesRequest(GetImagesRequest&& from) noexcept + : GetImagesRequest() { *this = ::std::move(from); } - inline Image& operator=(const Image& from) { + inline GetImagesRequest& operator=(const GetImagesRequest& from) { CopyFrom(from); return *this; } - inline Image& operator=(Image&& from) noexcept { + inline GetImagesRequest& operator=(GetImagesRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -649,208 +533,145 @@ class Image final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Image& default_instance() { + static const GetImagesRequest& default_instance() { return *internal_default_instance(); } - static inline const Image* internal_default_instance() { - return reinterpret_cast( - &_Image_default_instance_); + static inline const GetImagesRequest* internal_default_instance() { + return reinterpret_cast( + &_GetImagesRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 4; + 2; - friend void swap(Image& a, Image& b) { + friend void swap(GetImagesRequest& a, GetImagesRequest& b) { a.Swap(&b); } - inline void Swap(Image* other) { + inline void Swap(GetImagesRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Image* other) { + void UnsafeArenaSwap(GetImagesRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Image* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Image& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Image& from) { - Image::MergeImpl(*this, from); + GetImagesRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetImagesRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetImagesRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Image* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetImagesRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.camera.v1.Image"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.camera.v1.GetImagesRequest"; } protected: - explicit Image(::google::protobuf::Arena* arena); - Image(::google::protobuf::Arena* arena, const Image& from); + explicit GetImagesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kSourceNameFieldNumber = 1, - kImageFieldNumber = 3, - kFormatFieldNumber = 2, + kNameFieldNumber = 1, }; - // string source_name = 1 [json_name = "sourceName"]; - void clear_source_name() ; - const std::string& source_name() const; - template - void set_source_name(Arg_&& arg, Args_... args); - std::string* mutable_source_name(); - PROTOBUF_NODISCARD std::string* release_source_name(); - void set_allocated_source_name(std::string* value); - - private: - const std::string& _internal_source_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_source_name( - const std::string& value); - std::string* _internal_mutable_source_name(); - - public: - // bytes image = 3 [json_name = "image"]; - void clear_image() ; - const std::string& image() const; - template - void set_image(Arg_&& arg, Args_... args); - std::string* mutable_image(); - PROTOBUF_NODISCARD std::string* release_image(); - void set_allocated_image(std::string* value); - + // 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_image() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_image( - const std::string& value); - std::string* _internal_mutable_image(); - + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); public: - // .viam.component.camera.v1.Format format = 2 [json_name = "format"]; - void clear_format() ; - ::viam::component::camera::v1::Format format() const; - void set_format(::viam::component::camera::v1::Format value); - - private: - ::viam::component::camera::v1::Format _internal_format() const; - void _internal_set_format(::viam::component::camera::v1::Format value); - public: - // @@protoc_insertion_point(class_scope:viam.component.camera.v1.Image) + // @@protoc_insertion_point(class_scope:viam.component.camera.v1.GetImagesRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 0, - 50, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr source_name_; - ::google::protobuf::internal::ArenaStringPtr image_; - int format_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fcamera_2fv1_2fcamera_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetPropertiesRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.camera.v1.GetPropertiesRequest) */ { +class GetImagesResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.camera.v1.GetImagesResponse) */ { public: - inline GetPropertiesRequest() : GetPropertiesRequest(nullptr) {} - ~GetPropertiesRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetPropertiesRequest(::google::protobuf::internal::ConstantInitialized); + inline GetImagesResponse() : GetImagesResponse(nullptr) {} + ~GetImagesResponse() override; + explicit PROTOBUF_CONSTEXPR GetImagesResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetPropertiesRequest(const GetPropertiesRequest& from) - : GetPropertiesRequest(nullptr, from) {} - GetPropertiesRequest(GetPropertiesRequest&& from) noexcept - : GetPropertiesRequest() { + GetImagesResponse(const GetImagesResponse& from); + GetImagesResponse(GetImagesResponse&& from) noexcept + : GetImagesResponse() { *this = ::std::move(from); } - inline GetPropertiesRequest& operator=(const GetPropertiesRequest& from) { + inline GetImagesResponse& operator=(const GetImagesResponse& from) { CopyFrom(from); return *this; } - inline GetPropertiesRequest& operator=(GetPropertiesRequest&& from) noexcept { + inline GetImagesResponse& operator=(GetImagesResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -860,178 +681,169 @@ class GetPropertiesRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetPropertiesRequest& default_instance() { + static const GetImagesResponse& default_instance() { return *internal_default_instance(); } - static inline const GetPropertiesRequest* internal_default_instance() { - return reinterpret_cast( - &_GetPropertiesRequest_default_instance_); + static inline const GetImagesResponse* internal_default_instance() { + return reinterpret_cast( + &_GetImagesResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 8; + 3; - friend void swap(GetPropertiesRequest& a, GetPropertiesRequest& b) { + friend void swap(GetImagesResponse& a, GetImagesResponse& b) { a.Swap(&b); } - inline void Swap(GetPropertiesRequest* other) { + inline void Swap(GetImagesResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetPropertiesRequest* other) { + void UnsafeArenaSwap(GetImagesResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetPropertiesRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetPropertiesRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetPropertiesRequest& from) { - GetPropertiesRequest::MergeImpl(*this, from); + GetImagesResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetImagesResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetImagesResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetPropertiesRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetImagesResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.camera.v1.GetPropertiesRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.camera.v1.GetImagesResponse"; } protected: - explicit GetPropertiesRequest(::google::protobuf::Arena* arena); - GetPropertiesRequest(::google::protobuf::Arena* arena, const GetPropertiesRequest& from); + explicit GetImagesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kNameFieldNumber = 1, + kImagesFieldNumber = 1, + kResponseMetadataFieldNumber = 84260, }; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + // repeated .viam.component.camera.v1.Image images = 1 [json_name = "images"]; + int images_size() const; private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); + int _internal_images_size() const; + public: + void clear_images(); + ::viam::component::camera::v1::Image* mutable_images(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::camera::v1::Image >* + mutable_images(); + private: + const ::viam::component::camera::v1::Image& _internal_images(int index) const; + ::viam::component::camera::v1::Image* _internal_add_images(); + public: + const ::viam::component::camera::v1::Image& images(int index) const; + ::viam::component::camera::v1::Image* add_images(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::camera::v1::Image >& + images() const; + // .viam.common.v1.ResponseMetadata response_metadata = 84260 [json_name = "responseMetadata"]; + bool has_response_metadata() const; + private: + bool _internal_has_response_metadata() const; public: - // @@protoc_insertion_point(class_scope:viam.component.camera.v1.GetPropertiesRequest) + void clear_response_metadata(); + const ::viam::common::v1::ResponseMetadata& response_metadata() const; + PROTOBUF_NODISCARD ::viam::common::v1::ResponseMetadata* release_response_metadata(); + ::viam::common::v1::ResponseMetadata* mutable_response_metadata(); + void set_allocated_response_metadata(::viam::common::v1::ResponseMetadata* response_metadata); + private: + const ::viam::common::v1::ResponseMetadata& _internal_response_metadata() const; + ::viam::common::v1::ResponseMetadata* _internal_mutable_response_metadata(); + public: + void unsafe_arena_set_allocated_response_metadata( + ::viam::common::v1::ResponseMetadata* response_metadata); + ::viam::common::v1::ResponseMetadata* unsafe_arena_release_response_metadata(); + + // @@protoc_insertion_point(class_scope:viam.component.camera.v1.GetImagesResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 58, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr name_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::camera::v1::Image > images_; + ::viam::common::v1::ResponseMetadata* response_metadata_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fcamera_2fv1_2fcamera_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetPointCloudResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.camera.v1.GetPointCloudResponse) */ { +class Image final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.camera.v1.Image) */ { public: - inline GetPointCloudResponse() : GetPointCloudResponse(nullptr) {} - ~GetPointCloudResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetPointCloudResponse(::google::protobuf::internal::ConstantInitialized); + inline Image() : Image(nullptr) {} + ~Image() override; + explicit PROTOBUF_CONSTEXPR Image(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetPointCloudResponse(const GetPointCloudResponse& from) - : GetPointCloudResponse(nullptr, from) {} - GetPointCloudResponse(GetPointCloudResponse&& from) noexcept - : GetPointCloudResponse() { + Image(const Image& from); + Image(Image&& from) noexcept + : Image() { *this = ::std::move(from); } - inline GetPointCloudResponse& operator=(const GetPointCloudResponse& from) { + inline Image& operator=(const Image& from) { CopyFrom(from); return *this; } - inline GetPointCloudResponse& operator=(GetPointCloudResponse&& from) noexcept { + inline Image& operator=(Image&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1041,196 +853,172 @@ class GetPointCloudResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetPointCloudResponse& default_instance() { + static const Image& default_instance() { return *internal_default_instance(); } - static inline const GetPointCloudResponse* internal_default_instance() { - return reinterpret_cast( - &_GetPointCloudResponse_default_instance_); + static inline const Image* internal_default_instance() { + return reinterpret_cast( + &_Image_default_instance_); } static constexpr int kIndexInFileMessages = - 7; + 4; - friend void swap(GetPointCloudResponse& a, GetPointCloudResponse& b) { + friend void swap(Image& a, Image& b) { a.Swap(&b); } - inline void Swap(GetPointCloudResponse* other) { + inline void Swap(Image* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetPointCloudResponse* other) { + void UnsafeArenaSwap(Image* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetPointCloudResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetPointCloudResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetPointCloudResponse& from) { - GetPointCloudResponse::MergeImpl(*this, from); + Image* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Image& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Image& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetPointCloudResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(Image* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.camera.v1.GetPointCloudResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.camera.v1.Image"; } protected: - explicit GetPointCloudResponse(::google::protobuf::Arena* arena); - GetPointCloudResponse(::google::protobuf::Arena* arena, const GetPointCloudResponse& from); + explicit Image(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kMimeTypeFieldNumber = 1, - kPointCloudFieldNumber = 2, + kSourceNameFieldNumber = 1, + kImageFieldNumber = 3, + kFormatFieldNumber = 2, }; - // string mime_type = 1 [json_name = "mimeType"]; - void clear_mime_type() ; - const std::string& mime_type() const; - template - void set_mime_type(Arg_&& arg, Args_... args); - std::string* mutable_mime_type(); - PROTOBUF_NODISCARD std::string* release_mime_type(); - void set_allocated_mime_type(std::string* value); - + // string source_name = 1 [json_name = "sourceName"]; + void clear_source_name(); + const std::string& source_name() const; + template + void set_source_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_source_name(); + PROTOBUF_NODISCARD std::string* release_source_name(); + void set_allocated_source_name(std::string* source_name); private: - const std::string& _internal_mime_type() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_mime_type( - const std::string& value); - std::string* _internal_mutable_mime_type(); - + const std::string& _internal_source_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_source_name(const std::string& value); + std::string* _internal_mutable_source_name(); public: - // bytes point_cloud = 2 [json_name = "pointCloud"]; - void clear_point_cloud() ; - const std::string& point_cloud() const; - template - void set_point_cloud(Arg_&& arg, Args_... args); - std::string* mutable_point_cloud(); - PROTOBUF_NODISCARD std::string* release_point_cloud(); - void set_allocated_point_cloud(std::string* value); + // bytes image = 3 [json_name = "image"]; + void clear_image(); + const std::string& image() const; + template + void set_image(ArgT0&& arg0, ArgT... args); + std::string* mutable_image(); + PROTOBUF_NODISCARD std::string* release_image(); + void set_allocated_image(std::string* image); private: - const std::string& _internal_point_cloud() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_point_cloud( - const std::string& value); - std::string* _internal_mutable_point_cloud(); + const std::string& _internal_image() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_image(const std::string& value); + std::string* _internal_mutable_image(); + public: + // .viam.component.camera.v1.Format format = 2 [json_name = "format"]; + void clear_format(); + ::viam::component::camera::v1::Format format() const; + void set_format(::viam::component::camera::v1::Format value); + private: + ::viam::component::camera::v1::Format _internal_format() const; + void _internal_set_format(::viam::component::camera::v1::Format value); public: - // @@protoc_insertion_point(class_scope:viam.component.camera.v1.GetPointCloudResponse) + + // @@protoc_insertion_point(class_scope:viam.component.camera.v1.Image) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 64, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr mime_type_; - ::google::protobuf::internal::ArenaStringPtr point_cloud_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr source_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr image_; + int format_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fcamera_2fv1_2fcamera_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetImagesRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.camera.v1.GetImagesRequest) */ { +class RenderFrameRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.camera.v1.RenderFrameRequest) */ { public: - inline GetImagesRequest() : GetImagesRequest(nullptr) {} - ~GetImagesRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetImagesRequest(::google::protobuf::internal::ConstantInitialized); + inline RenderFrameRequest() : RenderFrameRequest(nullptr) {} + ~RenderFrameRequest() override; + explicit PROTOBUF_CONSTEXPR RenderFrameRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetImagesRequest(const GetImagesRequest& from) - : GetImagesRequest(nullptr, from) {} - GetImagesRequest(GetImagesRequest&& from) noexcept - : GetImagesRequest() { + RenderFrameRequest(const RenderFrameRequest& from); + RenderFrameRequest(RenderFrameRequest&& from) noexcept + : RenderFrameRequest() { *this = ::std::move(from); } - inline GetImagesRequest& operator=(const GetImagesRequest& from) { + inline RenderFrameRequest& operator=(const RenderFrameRequest& from) { CopyFrom(from); return *this; } - inline GetImagesRequest& operator=(GetImagesRequest&& from) noexcept { + inline RenderFrameRequest& operator=(RenderFrameRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1240,99 +1028,88 @@ class GetImagesRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetImagesRequest& default_instance() { + static const RenderFrameRequest& default_instance() { return *internal_default_instance(); } - static inline const GetImagesRequest* internal_default_instance() { - return reinterpret_cast( - &_GetImagesRequest_default_instance_); + static inline const RenderFrameRequest* internal_default_instance() { + return reinterpret_cast( + &_RenderFrameRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 2; + 5; - friend void swap(GetImagesRequest& a, GetImagesRequest& b) { + friend void swap(RenderFrameRequest& a, RenderFrameRequest& b) { a.Swap(&b); } - inline void Swap(GetImagesRequest* other) { + inline void Swap(RenderFrameRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetImagesRequest* other) { + void UnsafeArenaSwap(RenderFrameRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetImagesRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetImagesRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetImagesRequest& from) { - GetImagesRequest::MergeImpl(*this, from); + RenderFrameRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const RenderFrameRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const RenderFrameRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetImagesRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(RenderFrameRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.camera.v1.GetImagesRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.camera.v1.RenderFrameRequest"; } protected: - explicit GetImagesRequest(::google::protobuf::Arena* arena); - GetImagesRequest(::google::protobuf::Arena* arena, const GetImagesRequest& from); + explicit RenderFrameRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1340,78 +1117,92 @@ class GetImagesRequest final : enum : int { kNameFieldNumber = 1, + kMimeTypeFieldNumber = 2, + kExtraFieldNumber = 99, }; // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); std::string* _internal_mutable_name(); - public: - // @@protoc_insertion_point(class_scope:viam.component.camera.v1.GetImagesRequest) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 54, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr name_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_component_2fcamera_2fv1_2fcamera_2eproto; -};// ------------------------------------------------------------------- -class GetImageResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.camera.v1.GetImageResponse) */ { - public: - inline GetImageResponse() : GetImageResponse(nullptr) {} - ~GetImageResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetImageResponse(::google::protobuf::internal::ConstantInitialized); + // string mime_type = 2 [json_name = "mimeType"]; + void clear_mime_type(); + const std::string& mime_type() const; + template + void set_mime_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_mime_type(); + PROTOBUF_NODISCARD std::string* release_mime_type(); + void set_allocated_mime_type(std::string* mime_type); + private: + const std::string& _internal_mime_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_mime_type(const std::string& value); + std::string* _internal_mutable_mime_type(); + public: - inline GetImageResponse(const GetImageResponse& from) - : GetImageResponse(nullptr, from) {} - GetImageResponse(GetImageResponse&& from) noexcept - : GetImageResponse() { + // .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.camera.v1.RenderFrameRequest) + 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::internal::ArenaStringPtr mime_type_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_component_2fcamera_2fv1_2fcamera_2eproto; +}; +// ------------------------------------------------------------------- + +class GetPointCloudRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.camera.v1.GetPointCloudRequest) */ { + public: + inline GetPointCloudRequest() : GetPointCloudRequest(nullptr) {} + ~GetPointCloudRequest() override; + explicit PROTOBUF_CONSTEXPR GetPointCloudRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetPointCloudRequest(const GetPointCloudRequest& from); + GetPointCloudRequest(GetPointCloudRequest&& from) noexcept + : GetPointCloudRequest() { *this = ::std::move(from); } - inline GetImageResponse& operator=(const GetImageResponse& from) { + inline GetPointCloudRequest& operator=(const GetPointCloudRequest& from) { CopyFrom(from); return *this; } - inline GetImageResponse& operator=(GetImageResponse&& from) noexcept { + inline GetPointCloudRequest& operator=(GetPointCloudRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1421,196 +1212,181 @@ class GetImageResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetImageResponse& default_instance() { + static const GetPointCloudRequest& default_instance() { return *internal_default_instance(); } - static inline const GetImageResponse* internal_default_instance() { - return reinterpret_cast( - &_GetImageResponse_default_instance_); + static inline const GetPointCloudRequest* internal_default_instance() { + return reinterpret_cast( + &_GetPointCloudRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 1; + 6; - friend void swap(GetImageResponse& a, GetImageResponse& b) { + friend void swap(GetPointCloudRequest& a, GetPointCloudRequest& b) { a.Swap(&b); } - inline void Swap(GetImageResponse* other) { + inline void Swap(GetPointCloudRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetImageResponse* other) { + void UnsafeArenaSwap(GetPointCloudRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetImageResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetImageResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetImageResponse& from) { - GetImageResponse::MergeImpl(*this, from); + GetPointCloudRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPointCloudRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetPointCloudRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetImageResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetPointCloudRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.camera.v1.GetImageResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.camera.v1.GetPointCloudRequest"; } protected: - explicit GetImageResponse(::google::protobuf::Arena* arena); - GetImageResponse(::google::protobuf::Arena* arena, const GetImageResponse& from); + explicit GetPointCloudRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kMimeTypeFieldNumber = 1, - kImageFieldNumber = 2, + kNameFieldNumber = 1, + kMimeTypeFieldNumber = 2, + kExtraFieldNumber = 99, }; - // string mime_type = 1 [json_name = "mimeType"]; - void clear_mime_type() ; + // 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: + + // string mime_type = 2 [json_name = "mimeType"]; + void clear_mime_type(); const std::string& mime_type() const; - template - void set_mime_type(Arg_&& arg, Args_... args); + template + void set_mime_type(ArgT0&& arg0, ArgT... args); std::string* mutable_mime_type(); PROTOBUF_NODISCARD std::string* release_mime_type(); - void set_allocated_mime_type(std::string* value); - + void set_allocated_mime_type(std::string* mime_type); private: const std::string& _internal_mime_type() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_mime_type( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_mime_type(const std::string& value); std::string* _internal_mutable_mime_type(); - public: - // bytes image = 2 [json_name = "image"]; - void clear_image() ; - const std::string& image() const; - template - void set_image(Arg_&& arg, Args_... args); - std::string* mutable_image(); - PROTOBUF_NODISCARD std::string* release_image(); - void set_allocated_image(std::string* value); + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + bool has_extra() const; private: - const std::string& _internal_image() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_image( - const std::string& value); - std::string* _internal_mutable_image(); - + bool _internal_has_extra() const; public: - // @@protoc_insertion_point(class_scope:viam.component.camera.v1.GetImageResponse) + 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.camera.v1.GetPointCloudRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 59, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr mime_type_; - ::google::protobuf::internal::ArenaStringPtr image_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr mime_type_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fcamera_2fv1_2fcamera_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class DistortionParameters final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.camera.v1.DistortionParameters) */ { +class GetPointCloudResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.camera.v1.GetPointCloudResponse) */ { public: - inline DistortionParameters() : DistortionParameters(nullptr) {} - ~DistortionParameters() override; - template - explicit PROTOBUF_CONSTEXPR DistortionParameters(::google::protobuf::internal::ConstantInitialized); + inline GetPointCloudResponse() : GetPointCloudResponse(nullptr) {} + ~GetPointCloudResponse() override; + explicit PROTOBUF_CONSTEXPR GetPointCloudResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline DistortionParameters(const DistortionParameters& from) - : DistortionParameters(nullptr, from) {} - DistortionParameters(DistortionParameters&& from) noexcept - : DistortionParameters() { + GetPointCloudResponse(const GetPointCloudResponse& from); + GetPointCloudResponse(GetPointCloudResponse&& from) noexcept + : GetPointCloudResponse() { *this = ::std::move(from); } - inline DistortionParameters& operator=(const DistortionParameters& from) { + inline GetPointCloudResponse& operator=(const GetPointCloudResponse& from) { CopyFrom(from); return *this; } - inline DistortionParameters& operator=(DistortionParameters&& from) noexcept { + inline GetPointCloudResponse& operator=(GetPointCloudResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1620,198 +1396,161 @@ class DistortionParameters final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const DistortionParameters& default_instance() { + static const GetPointCloudResponse& default_instance() { return *internal_default_instance(); } - static inline const DistortionParameters* internal_default_instance() { - return reinterpret_cast( - &_DistortionParameters_default_instance_); + static inline const GetPointCloudResponse* internal_default_instance() { + return reinterpret_cast( + &_GetPointCloudResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 14; + 7; - friend void swap(DistortionParameters& a, DistortionParameters& b) { + friend void swap(GetPointCloudResponse& a, GetPointCloudResponse& b) { a.Swap(&b); } - inline void Swap(DistortionParameters* other) { + inline void Swap(GetPointCloudResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(DistortionParameters* other) { + void UnsafeArenaSwap(GetPointCloudResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - DistortionParameters* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const DistortionParameters& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const DistortionParameters& from) { - DistortionParameters::MergeImpl(*this, from); + GetPointCloudResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPointCloudResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetPointCloudResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(DistortionParameters* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetPointCloudResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.camera.v1.DistortionParameters"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.camera.v1.GetPointCloudResponse"; } protected: - explicit DistortionParameters(::google::protobuf::Arena* arena); - DistortionParameters(::google::protobuf::Arena* arena, const DistortionParameters& from); + explicit GetPointCloudResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kParametersFieldNumber = 2, - kModelFieldNumber = 1, + kMimeTypeFieldNumber = 1, + kPointCloudFieldNumber = 2, }; - // repeated double parameters = 2 [json_name = "parameters"]; - int parameters_size() const; + // string mime_type = 1 [json_name = "mimeType"]; + void clear_mime_type(); + const std::string& mime_type() const; + template + void set_mime_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_mime_type(); + PROTOBUF_NODISCARD std::string* release_mime_type(); + void set_allocated_mime_type(std::string* mime_type); private: - int _internal_parameters_size() const; - + const std::string& _internal_mime_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_mime_type(const std::string& value); + std::string* _internal_mutable_mime_type(); public: - void clear_parameters() ; - double parameters(int index) const; - void set_parameters(int index, double value); - void add_parameters(double value); - const ::google::protobuf::RepeatedField& parameters() const; - ::google::protobuf::RepeatedField* mutable_parameters(); + // bytes point_cloud = 2 [json_name = "pointCloud"]; + void clear_point_cloud(); + const std::string& point_cloud() const; + template + void set_point_cloud(ArgT0&& arg0, ArgT... args); + std::string* mutable_point_cloud(); + PROTOBUF_NODISCARD std::string* release_point_cloud(); + void set_allocated_point_cloud(std::string* point_cloud); private: - const ::google::protobuf::RepeatedField& _internal_parameters() const; - ::google::protobuf::RepeatedField* _internal_mutable_parameters(); - + const std::string& _internal_point_cloud() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_point_cloud(const std::string& value); + std::string* _internal_mutable_point_cloud(); public: - // string model = 1 [json_name = "model"]; - void clear_model() ; - const std::string& model() const; - template - void set_model(Arg_&& arg, Args_... args); - std::string* mutable_model(); - PROTOBUF_NODISCARD std::string* release_model(); - void set_allocated_model(std::string* value); - - private: - const std::string& _internal_model() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_model( - const std::string& value); - std::string* _internal_mutable_model(); - public: - // @@protoc_insertion_point(class_scope:viam.component.camera.v1.DistortionParameters) + // @@protoc_insertion_point(class_scope:viam.component.camera.v1.GetPointCloudResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 59, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedField parameters_; - ::google::protobuf::internal::ArenaStringPtr model_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr mime_type_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr point_cloud_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fcamera_2fv1_2fcamera_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Webcam final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.camera.v1.Webcam) */ { +class GetPropertiesRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.camera.v1.GetPropertiesRequest) */ { public: - inline Webcam() : Webcam(nullptr) {} - ~Webcam() override; - template - explicit PROTOBUF_CONSTEXPR Webcam(::google::protobuf::internal::ConstantInitialized); + inline GetPropertiesRequest() : GetPropertiesRequest(nullptr) {} + ~GetPropertiesRequest() override; + explicit PROTOBUF_CONSTEXPR GetPropertiesRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Webcam(const Webcam& from) - : Webcam(nullptr, from) {} - Webcam(Webcam&& from) noexcept - : Webcam() { + GetPropertiesRequest(const GetPropertiesRequest& from); + GetPropertiesRequest(GetPropertiesRequest&& from) noexcept + : GetPropertiesRequest() { *this = ::std::move(from); } - inline Webcam& operator=(const Webcam& from) { + inline GetPropertiesRequest& operator=(const GetPropertiesRequest& from) { CopyFrom(from); return *this; } - inline Webcam& operator=(Webcam&& from) noexcept { + inline GetPropertiesRequest& operator=(GetPropertiesRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1821,252 +1560,145 @@ class Webcam final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Webcam& default_instance() { + static const GetPropertiesRequest& default_instance() { return *internal_default_instance(); } - static inline const Webcam* internal_default_instance() { - return reinterpret_cast( - &_Webcam_default_instance_); + static inline const GetPropertiesRequest* internal_default_instance() { + return reinterpret_cast( + &_GetPropertiesRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 11; + 8; - friend void swap(Webcam& a, Webcam& b) { + friend void swap(GetPropertiesRequest& a, GetPropertiesRequest& b) { a.Swap(&b); } - inline void Swap(Webcam* other) { + inline void Swap(GetPropertiesRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Webcam* other) { + void UnsafeArenaSwap(GetPropertiesRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Webcam* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Webcam& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Webcam& from) { - Webcam::MergeImpl(*this, from); + GetPropertiesRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPropertiesRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetPropertiesRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Webcam* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetPropertiesRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.camera.v1.Webcam"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.camera.v1.GetPropertiesRequest"; } protected: - explicit Webcam(::google::protobuf::Arena* arena); - Webcam(::google::protobuf::Arena* arena, const Webcam& from); + explicit GetPropertiesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kPropertiesFieldNumber = 3, - kLabelFieldNumber = 1, - kStatusFieldNumber = 2, - kNameFieldNumber = 4, - kIdFieldNumber = 5, + kNameFieldNumber = 1, }; - // repeated .viam.component.camera.v1.Property properties = 3 [json_name = "properties"]; - int properties_size() const; - private: - int _internal_properties_size() const; - - public: - void clear_properties() ; - ::viam::component::camera::v1::Property* mutable_properties(int index); - ::google::protobuf::RepeatedPtrField< ::viam::component::camera::v1::Property >* - mutable_properties(); + // 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 ::google::protobuf::RepeatedPtrField<::viam::component::camera::v1::Property>& _internal_properties() const; - ::google::protobuf::RepeatedPtrField<::viam::component::camera::v1::Property>* _internal_mutable_properties(); + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); public: - const ::viam::component::camera::v1::Property& properties(int index) const; - ::viam::component::camera::v1::Property* add_properties(); - const ::google::protobuf::RepeatedPtrField< ::viam::component::camera::v1::Property >& - properties() const; - // string label = 1 [json_name = "label"]; - void clear_label() ; - const std::string& label() const; - template - void set_label(Arg_&& arg, Args_... args); - std::string* mutable_label(); - PROTOBUF_NODISCARD std::string* release_label(); - void set_allocated_label(std::string* value); - private: - const std::string& _internal_label() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_label( - const std::string& value); - std::string* _internal_mutable_label(); + // @@protoc_insertion_point(class_scope:viam.component.camera.v1.GetPropertiesRequest) + private: + class _Internal; - public: - // string status = 2 [json_name = "status"]; - void clear_status() ; - const std::string& status() const; - template - void set_status(Arg_&& arg, Args_... args); - std::string* mutable_status(); - PROTOBUF_NODISCARD std::string* release_status(); - void set_allocated_status(std::string* value); - - private: - const std::string& _internal_status() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_status( - const std::string& value); - std::string* _internal_mutable_status(); - - public: - // string name = 4 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - - public: - // string id = 5 [json_name = "id"]; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - - private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); - - public: - // @@protoc_insertion_point(class_scope:viam.component.camera.v1.Webcam) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 5, 1, - 57, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::component::camera::v1::Property > properties_; - ::google::protobuf::internal::ArenaStringPtr label_; - ::google::protobuf::internal::ArenaStringPtr status_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fcamera_2fv1_2fcamera_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class RenderFrameRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.camera.v1.RenderFrameRequest) */ { +class GetPropertiesResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.camera.v1.GetPropertiesResponse) */ { public: - inline RenderFrameRequest() : RenderFrameRequest(nullptr) {} - ~RenderFrameRequest() override; - template - explicit PROTOBUF_CONSTEXPR RenderFrameRequest(::google::protobuf::internal::ConstantInitialized); + inline GetPropertiesResponse() : GetPropertiesResponse(nullptr) {} + ~GetPropertiesResponse() override; + explicit PROTOBUF_CONSTEXPR GetPropertiesResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline RenderFrameRequest(const RenderFrameRequest& from) - : RenderFrameRequest(nullptr, from) {} - RenderFrameRequest(RenderFrameRequest&& from) noexcept - : RenderFrameRequest() { + GetPropertiesResponse(const GetPropertiesResponse& from); + GetPropertiesResponse(GetPropertiesResponse&& from) noexcept + : GetPropertiesResponse() { *this = ::std::move(from); } - inline RenderFrameRequest& operator=(const RenderFrameRequest& from) { + inline GetPropertiesResponse& operator=(const GetPropertiesResponse& from) { CopyFrom(from); return *this; } - inline RenderFrameRequest& operator=(RenderFrameRequest&& from) noexcept { + inline GetPropertiesResponse& operator=(GetPropertiesResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2076,214 +1708,222 @@ class RenderFrameRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const RenderFrameRequest& default_instance() { + static const GetPropertiesResponse& default_instance() { return *internal_default_instance(); } - static inline const RenderFrameRequest* internal_default_instance() { - return reinterpret_cast( - &_RenderFrameRequest_default_instance_); + static inline const GetPropertiesResponse* internal_default_instance() { + return reinterpret_cast( + &_GetPropertiesResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 5; + 9; - friend void swap(RenderFrameRequest& a, RenderFrameRequest& b) { + friend void swap(GetPropertiesResponse& a, GetPropertiesResponse& b) { a.Swap(&b); } - inline void Swap(RenderFrameRequest* other) { + inline void Swap(GetPropertiesResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RenderFrameRequest* other) { + void UnsafeArenaSwap(GetPropertiesResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - RenderFrameRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const RenderFrameRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const RenderFrameRequest& from) { - RenderFrameRequest::MergeImpl(*this, from); + GetPropertiesResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPropertiesResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetPropertiesResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(RenderFrameRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetPropertiesResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.camera.v1.RenderFrameRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.camera.v1.GetPropertiesResponse"; } protected: - explicit RenderFrameRequest(::google::protobuf::Arena* arena); - RenderFrameRequest(::google::protobuf::Arena* arena, const RenderFrameRequest& from); + explicit GetPropertiesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kNameFieldNumber = 1, - kMimeTypeFieldNumber = 2, - kExtraFieldNumber = 99, + kMimeTypesFieldNumber = 4, + kIntrinsicParametersFieldNumber = 2, + kDistortionParametersFieldNumber = 3, + kSupportsPcdFieldNumber = 1, + kFrameRateFieldNumber = 5, }; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + // repeated string mime_types = 4 [json_name = "mimeTypes"]; + int mime_types_size() const; private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - + int _internal_mime_types_size() const; + public: + void clear_mime_types(); + const std::string& mime_types(int index) const; + std::string* mutable_mime_types(int index); + void set_mime_types(int index, const std::string& value); + void set_mime_types(int index, std::string&& value); + void set_mime_types(int index, const char* value); + void set_mime_types(int index, const char* value, size_t size); + std::string* add_mime_types(); + void add_mime_types(const std::string& value); + void add_mime_types(std::string&& value); + void add_mime_types(const char* value); + void add_mime_types(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& mime_types() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_mime_types(); + private: + const std::string& _internal_mime_types(int index) const; + std::string* _internal_add_mime_types(); public: - // string mime_type = 2 [json_name = "mimeType"]; - void clear_mime_type() ; - const std::string& mime_type() const; - template - void set_mime_type(Arg_&& arg, Args_... args); - std::string* mutable_mime_type(); - PROTOBUF_NODISCARD std::string* release_mime_type(); - void set_allocated_mime_type(std::string* value); + // .viam.component.camera.v1.IntrinsicParameters intrinsic_parameters = 2 [json_name = "intrinsicParameters"]; + bool has_intrinsic_parameters() const; private: - const std::string& _internal_mime_type() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_mime_type( - const std::string& value); - std::string* _internal_mutable_mime_type(); + bool _internal_has_intrinsic_parameters() const; + public: + void clear_intrinsic_parameters(); + const ::viam::component::camera::v1::IntrinsicParameters& intrinsic_parameters() const; + PROTOBUF_NODISCARD ::viam::component::camera::v1::IntrinsicParameters* release_intrinsic_parameters(); + ::viam::component::camera::v1::IntrinsicParameters* mutable_intrinsic_parameters(); + void set_allocated_intrinsic_parameters(::viam::component::camera::v1::IntrinsicParameters* intrinsic_parameters); + private: + const ::viam::component::camera::v1::IntrinsicParameters& _internal_intrinsic_parameters() const; + ::viam::component::camera::v1::IntrinsicParameters* _internal_mutable_intrinsic_parameters(); + public: + void unsafe_arena_set_allocated_intrinsic_parameters( + ::viam::component::camera::v1::IntrinsicParameters* intrinsic_parameters); + ::viam::component::camera::v1::IntrinsicParameters* unsafe_arena_release_intrinsic_parameters(); + // .viam.component.camera.v1.DistortionParameters distortion_parameters = 3 [json_name = "distortionParameters"]; + bool has_distortion_parameters() const; + private: + bool _internal_has_distortion_parameters() const; public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); + void clear_distortion_parameters(); + const ::viam::component::camera::v1::DistortionParameters& distortion_parameters() const; + PROTOBUF_NODISCARD ::viam::component::camera::v1::DistortionParameters* release_distortion_parameters(); + ::viam::component::camera::v1::DistortionParameters* mutable_distortion_parameters(); + void set_allocated_distortion_parameters(::viam::component::camera::v1::DistortionParameters* distortion_parameters); + private: + const ::viam::component::camera::v1::DistortionParameters& _internal_distortion_parameters() const; + ::viam::component::camera::v1::DistortionParameters* _internal_mutable_distortion_parameters(); + public: + void unsafe_arena_set_allocated_distortion_parameters( + ::viam::component::camera::v1::DistortionParameters* distortion_parameters); + ::viam::component::camera::v1::DistortionParameters* unsafe_arena_release_distortion_parameters(); + // bool supports_pcd = 1 [json_name = "supportsPcd"]; + void clear_supports_pcd(); + bool supports_pcd() const; + void set_supports_pcd(bool value); private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); + bool _internal_supports_pcd() const; + void _internal_set_supports_pcd(bool value); + public: + // optional float frame_rate = 5 [json_name = "frameRate"]; + bool has_frame_rate() const; + private: + bool _internal_has_frame_rate() const; public: - // @@protoc_insertion_point(class_scope:viam.component.camera.v1.RenderFrameRequest) + void clear_frame_rate(); + float frame_rate() const; + void set_frame_rate(float value); + private: + float _internal_frame_rate() const; + void _internal_set_frame_rate(float value); + public: + + // @@protoc_insertion_point(class_scope:viam.component.camera.v1.GetPropertiesResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 1, - 65, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr mime_type_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField mime_types_; + ::viam::component::camera::v1::IntrinsicParameters* intrinsic_parameters_; + ::viam::component::camera::v1::DistortionParameters* distortion_parameters_; + bool supports_pcd_; + float frame_rate_; friend struct ::TableStruct_component_2fcamera_2fv1_2fcamera_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetPropertiesResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.camera.v1.GetPropertiesResponse) */ { +class Webcams final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.camera.v1.Webcams) */ { public: - inline GetPropertiesResponse() : GetPropertiesResponse(nullptr) {} - ~GetPropertiesResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetPropertiesResponse(::google::protobuf::internal::ConstantInitialized); + inline Webcams() : Webcams(nullptr) {} + ~Webcams() override; + explicit PROTOBUF_CONSTEXPR Webcams(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetPropertiesResponse(const GetPropertiesResponse& from) - : GetPropertiesResponse(nullptr, from) {} - GetPropertiesResponse(GetPropertiesResponse&& from) noexcept - : GetPropertiesResponse() { + Webcams(const Webcams& from); + Webcams(Webcams&& from) noexcept + : Webcams() { *this = ::std::move(from); } - inline GetPropertiesResponse& operator=(const GetPropertiesResponse& from) { + inline Webcams& operator=(const Webcams& from) { CopyFrom(from); return *this; } - inline GetPropertiesResponse& operator=(GetPropertiesResponse&& from) noexcept { + inline Webcams& operator=(Webcams&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2293,250 +1933,149 @@ class GetPropertiesResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetPropertiesResponse& default_instance() { + static const Webcams& default_instance() { return *internal_default_instance(); } - static inline const GetPropertiesResponse* internal_default_instance() { - return reinterpret_cast( - &_GetPropertiesResponse_default_instance_); + static inline const Webcams* internal_default_instance() { + return reinterpret_cast( + &_Webcams_default_instance_); } static constexpr int kIndexInFileMessages = - 9; + 10; - friend void swap(GetPropertiesResponse& a, GetPropertiesResponse& b) { + friend void swap(Webcams& a, Webcams& b) { a.Swap(&b); } - inline void Swap(GetPropertiesResponse* other) { + inline void Swap(Webcams* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetPropertiesResponse* other) { + void UnsafeArenaSwap(Webcams* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetPropertiesResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetPropertiesResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetPropertiesResponse& from) { - GetPropertiesResponse::MergeImpl(*this, from); + Webcams* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Webcams& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Webcams& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetPropertiesResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(Webcams* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.camera.v1.GetPropertiesResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.camera.v1.Webcams"; } protected: - explicit GetPropertiesResponse(::google::protobuf::Arena* arena); - GetPropertiesResponse(::google::protobuf::Arena* arena, const GetPropertiesResponse& from); + explicit Webcams(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kMimeTypesFieldNumber = 4, - kIntrinsicParametersFieldNumber = 2, - kDistortionParametersFieldNumber = 3, - kSupportsPcdFieldNumber = 1, - kFrameRateFieldNumber = 5, + kWebcamsFieldNumber = 1, }; - // repeated string mime_types = 4 [json_name = "mimeTypes"]; - int mime_types_size() const; - private: - int _internal_mime_types_size() const; - - public: - void clear_mime_types() ; - const std::string& mime_types(int index) const; - std::string* mutable_mime_types(int index); - void set_mime_types(int index, const std::string& value); - void set_mime_types(int index, std::string&& value); - void set_mime_types(int index, const char* value); - void set_mime_types(int index, const char* value, std::size_t size); - void set_mime_types(int index, absl::string_view value); - std::string* add_mime_types(); - void add_mime_types(const std::string& value); - void add_mime_types(std::string&& value); - void add_mime_types(const char* value); - void add_mime_types(const char* value, std::size_t size); - void add_mime_types(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& mime_types() const; - ::google::protobuf::RepeatedPtrField* mutable_mime_types(); - - private: - const ::google::protobuf::RepeatedPtrField& _internal_mime_types() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_mime_types(); - - public: - // .viam.component.camera.v1.IntrinsicParameters intrinsic_parameters = 2 [json_name = "intrinsicParameters"]; - bool has_intrinsic_parameters() const; - void clear_intrinsic_parameters() ; - const ::viam::component::camera::v1::IntrinsicParameters& intrinsic_parameters() const; - PROTOBUF_NODISCARD ::viam::component::camera::v1::IntrinsicParameters* release_intrinsic_parameters(); - ::viam::component::camera::v1::IntrinsicParameters* mutable_intrinsic_parameters(); - void set_allocated_intrinsic_parameters(::viam::component::camera::v1::IntrinsicParameters* value); - void unsafe_arena_set_allocated_intrinsic_parameters(::viam::component::camera::v1::IntrinsicParameters* value); - ::viam::component::camera::v1::IntrinsicParameters* unsafe_arena_release_intrinsic_parameters(); - - private: - const ::viam::component::camera::v1::IntrinsicParameters& _internal_intrinsic_parameters() const; - ::viam::component::camera::v1::IntrinsicParameters* _internal_mutable_intrinsic_parameters(); - - public: - // .viam.component.camera.v1.DistortionParameters distortion_parameters = 3 [json_name = "distortionParameters"]; - bool has_distortion_parameters() const; - void clear_distortion_parameters() ; - const ::viam::component::camera::v1::DistortionParameters& distortion_parameters() const; - PROTOBUF_NODISCARD ::viam::component::camera::v1::DistortionParameters* release_distortion_parameters(); - ::viam::component::camera::v1::DistortionParameters* mutable_distortion_parameters(); - void set_allocated_distortion_parameters(::viam::component::camera::v1::DistortionParameters* value); - void unsafe_arena_set_allocated_distortion_parameters(::viam::component::camera::v1::DistortionParameters* value); - ::viam::component::camera::v1::DistortionParameters* unsafe_arena_release_distortion_parameters(); - + // repeated .viam.component.camera.v1.Webcam webcams = 1 [json_name = "webcams"]; + int webcams_size() const; private: - const ::viam::component::camera::v1::DistortionParameters& _internal_distortion_parameters() const; - ::viam::component::camera::v1::DistortionParameters* _internal_mutable_distortion_parameters(); - + int _internal_webcams_size() const; public: - // bool supports_pcd = 1 [json_name = "supportsPcd"]; - void clear_supports_pcd() ; - bool supports_pcd() const; - void set_supports_pcd(bool value); - + void clear_webcams(); + ::viam::component::camera::v1::Webcam* mutable_webcams(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::camera::v1::Webcam >* + mutable_webcams(); private: - bool _internal_supports_pcd() const; - void _internal_set_supports_pcd(bool value); - + const ::viam::component::camera::v1::Webcam& _internal_webcams(int index) const; + ::viam::component::camera::v1::Webcam* _internal_add_webcams(); public: - // optional float frame_rate = 5 [json_name = "frameRate"]; - bool has_frame_rate() const; - void clear_frame_rate() ; - float frame_rate() const; - void set_frame_rate(float value); - - private: - float _internal_frame_rate() const; - void _internal_set_frame_rate(float value); + const ::viam::component::camera::v1::Webcam& webcams(int index) const; + ::viam::component::camera::v1::Webcam* add_webcams(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::camera::v1::Webcam >& + webcams() const; - public: - // @@protoc_insertion_point(class_scope:viam.component.camera.v1.GetPropertiesResponse) + // @@protoc_insertion_point(class_scope:viam.component.camera.v1.Webcams) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 5, 2, - 65, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField mime_types_; - ::viam::component::camera::v1::IntrinsicParameters* intrinsic_parameters_; - ::viam::component::camera::v1::DistortionParameters* distortion_parameters_; - bool supports_pcd_; - float frame_rate_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::camera::v1::Webcam > webcams_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fcamera_2fv1_2fcamera_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetPointCloudRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.camera.v1.GetPointCloudRequest) */ { +class Webcam final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.camera.v1.Webcam) */ { public: - inline GetPointCloudRequest() : GetPointCloudRequest(nullptr) {} - ~GetPointCloudRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetPointCloudRequest(::google::protobuf::internal::ConstantInitialized); + inline Webcam() : Webcam(nullptr) {} + ~Webcam() override; + explicit PROTOBUF_CONSTEXPR Webcam(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetPointCloudRequest(const GetPointCloudRequest& from) - : GetPointCloudRequest(nullptr, from) {} - GetPointCloudRequest(GetPointCloudRequest&& from) noexcept - : GetPointCloudRequest() { + Webcam(const Webcam& from); + Webcam(Webcam&& from) noexcept + : Webcam() { *this = ::std::move(from); } - inline GetPointCloudRequest& operator=(const GetPointCloudRequest& from) { + inline Webcam& operator=(const Webcam& from) { CopyFrom(from); return *this; } - inline GetPointCloudRequest& operator=(GetPointCloudRequest&& from) noexcept { + inline Webcam& operator=(Webcam&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2546,214 +2085,213 @@ class GetPointCloudRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetPointCloudRequest& default_instance() { + static const Webcam& default_instance() { return *internal_default_instance(); } - static inline const GetPointCloudRequest* internal_default_instance() { - return reinterpret_cast( - &_GetPointCloudRequest_default_instance_); + static inline const Webcam* internal_default_instance() { + return reinterpret_cast( + &_Webcam_default_instance_); } static constexpr int kIndexInFileMessages = - 6; + 11; - friend void swap(GetPointCloudRequest& a, GetPointCloudRequest& b) { + friend void swap(Webcam& a, Webcam& b) { a.Swap(&b); } - inline void Swap(GetPointCloudRequest* other) { + inline void Swap(Webcam* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetPointCloudRequest* other) { + void UnsafeArenaSwap(Webcam* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetPointCloudRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetPointCloudRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetPointCloudRequest& from) { - GetPointCloudRequest::MergeImpl(*this, from); + Webcam* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Webcam& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Webcam& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetPointCloudRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(Webcam* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.camera.v1.GetPointCloudRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.camera.v1.Webcam"; } protected: - explicit GetPointCloudRequest(::google::protobuf::Arena* arena); - GetPointCloudRequest(::google::protobuf::Arena* arena, const GetPointCloudRequest& from); + explicit Webcam(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kNameFieldNumber = 1, - kMimeTypeFieldNumber = 2, - kExtraFieldNumber = 99, + kPropertiesFieldNumber = 3, + kLabelFieldNumber = 1, + kStatusFieldNumber = 2, + kNameFieldNumber = 4, + kIdFieldNumber = 5, }; - // string name = 1 [json_name = "name"]; - void clear_name() ; + // repeated .viam.component.camera.v1.Property properties = 3 [json_name = "properties"]; + int properties_size() const; + private: + int _internal_properties_size() const; + public: + void clear_properties(); + ::viam::component::camera::v1::Property* mutable_properties(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::camera::v1::Property >* + mutable_properties(); + private: + const ::viam::component::camera::v1::Property& _internal_properties(int index) const; + ::viam::component::camera::v1::Property* _internal_add_properties(); + public: + const ::viam::component::camera::v1::Property& properties(int index) const; + ::viam::component::camera::v1::Property* add_properties(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::camera::v1::Property >& + properties() const; + + // string label = 1 [json_name = "label"]; + void clear_label(); + const std::string& label() const; + template + void set_label(ArgT0&& arg0, ArgT... args); + std::string* mutable_label(); + PROTOBUF_NODISCARD std::string* release_label(); + void set_allocated_label(std::string* label); + private: + const std::string& _internal_label() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_label(const std::string& value); + std::string* _internal_mutable_label(); + public: + + // string status = 2 [json_name = "status"]; + void clear_status(); + const std::string& status() const; + template + void set_status(ArgT0&& arg0, ArgT... args); + std::string* mutable_status(); + PROTOBUF_NODISCARD std::string* release_status(); + void set_allocated_status(std::string* status); + private: + const std::string& _internal_status() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_status(const std::string& value); + std::string* _internal_mutable_status(); + public: + + // string name = 4 [json_name = "name"]; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); std::string* _internal_mutable_name(); - public: - // string mime_type = 2 [json_name = "mimeType"]; - void clear_mime_type() ; - const std::string& mime_type() const; - template - void set_mime_type(Arg_&& arg, Args_... args); - std::string* mutable_mime_type(); - PROTOBUF_NODISCARD std::string* release_mime_type(); - void set_allocated_mime_type(std::string* value); + // string id = 5 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); private: - const std::string& _internal_mime_type() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_mime_type( - const std::string& value); - std::string* _internal_mutable_mime_type(); - + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - public: - // @@protoc_insertion_point(class_scope:viam.component.camera.v1.GetPointCloudRequest) + // @@protoc_insertion_point(class_scope:viam.component.camera.v1.Webcam) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 1, - 67, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr mime_type_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::camera::v1::Property > properties_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr label_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr status_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fcamera_2fv1_2fcamera_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetImageRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.camera.v1.GetImageRequest) */ { +class Property final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.camera.v1.Property) */ { public: - inline GetImageRequest() : GetImageRequest(nullptr) {} - ~GetImageRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetImageRequest(::google::protobuf::internal::ConstantInitialized); + inline Property() : Property(nullptr) {} + ~Property() override; + explicit PROTOBUF_CONSTEXPR Property(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetImageRequest(const GetImageRequest& from) - : GetImageRequest(nullptr, from) {} - GetImageRequest(GetImageRequest&& from) noexcept - : GetImageRequest() { + Property(const Property& from); + Property(Property&& from) noexcept + : Property() { *this = ::std::move(from); } - inline GetImageRequest& operator=(const GetImageRequest& from) { + inline Property& operator=(const Property& from) { CopyFrom(from); return *this; } - inline GetImageRequest& operator=(GetImageRequest&& from) noexcept { + inline Property& operator=(Property&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2763,214 +2301,178 @@ class GetImageRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetImageRequest& default_instance() { + static const Property& default_instance() { return *internal_default_instance(); } - static inline const GetImageRequest* internal_default_instance() { - return reinterpret_cast( - &_GetImageRequest_default_instance_); + static inline const Property* internal_default_instance() { + return reinterpret_cast( + &_Property_default_instance_); } static constexpr int kIndexInFileMessages = - 0; + 12; - friend void swap(GetImageRequest& a, GetImageRequest& b) { + friend void swap(Property& a, Property& b) { a.Swap(&b); } - inline void Swap(GetImageRequest* other) { + inline void Swap(Property* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetImageRequest* other) { + void UnsafeArenaSwap(Property* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetImageRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetImageRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetImageRequest& from) { - GetImageRequest::MergeImpl(*this, from); + Property* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Property& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Property& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetImageRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(Property* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.camera.v1.GetImageRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.camera.v1.Property"; } protected: - explicit GetImageRequest(::google::protobuf::Arena* arena); - GetImageRequest(::google::protobuf::Arena* arena, const GetImageRequest& from); + explicit Property(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kNameFieldNumber = 1, - kMimeTypeFieldNumber = 2, - kExtraFieldNumber = 99, + kFrameFormatFieldNumber = 3, + kWidthPxFieldNumber = 1, + kHeightPxFieldNumber = 2, + kFrameRateFieldNumber = 4, }; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + // string frame_format = 3 [json_name = "frameFormat"]; + void clear_frame_format(); + const std::string& frame_format() const; + template + void set_frame_format(ArgT0&& arg0, ArgT... args); + std::string* mutable_frame_format(); + PROTOBUF_NODISCARD std::string* release_frame_format(); + void set_allocated_frame_format(std::string* frame_format); private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - + const std::string& _internal_frame_format() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_frame_format(const std::string& value); + std::string* _internal_mutable_frame_format(); public: - // string mime_type = 2 [json_name = "mimeType"]; - void clear_mime_type() ; - const std::string& mime_type() const; - template - void set_mime_type(Arg_&& arg, Args_... args); - std::string* mutable_mime_type(); - PROTOBUF_NODISCARD std::string* release_mime_type(); - void set_allocated_mime_type(std::string* value); + // int32 width_px = 1 [json_name = "widthPx"]; + void clear_width_px(); + int32_t width_px() const; + void set_width_px(int32_t value); private: - const std::string& _internal_mime_type() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_mime_type( - const std::string& value); - std::string* _internal_mutable_mime_type(); - + int32_t _internal_width_px() const; + void _internal_set_width_px(int32_t value); public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); + // int32 height_px = 2 [json_name = "heightPx"]; + void clear_height_px(); + int32_t height_px() const; + void set_height_px(int32_t value); private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); + int32_t _internal_height_px() const; + void _internal_set_height_px(int32_t value); + public: + // float frame_rate = 4 [json_name = "frameRate"]; + void clear_frame_rate(); + float frame_rate() const; + void set_frame_rate(float value); + private: + float _internal_frame_rate() const; + void _internal_set_frame_rate(float value); public: - // @@protoc_insertion_point(class_scope:viam.component.camera.v1.GetImageRequest) + + // @@protoc_insertion_point(class_scope:viam.component.camera.v1.Property) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 1, - 62, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr mime_type_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr frame_format_; + int32_t width_px_; + int32_t height_px_; + float frame_rate_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fcamera_2fv1_2fcamera_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Webcams final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.camera.v1.Webcams) */ { +class IntrinsicParameters final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.camera.v1.IntrinsicParameters) */ { public: - inline Webcams() : Webcams(nullptr) {} - ~Webcams() override; - template - explicit PROTOBUF_CONSTEXPR Webcams(::google::protobuf::internal::ConstantInitialized); + inline IntrinsicParameters() : IntrinsicParameters(nullptr) {} + ~IntrinsicParameters() override; + explicit PROTOBUF_CONSTEXPR IntrinsicParameters(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Webcams(const Webcams& from) - : Webcams(nullptr, from) {} - Webcams(Webcams&& from) noexcept - : Webcams() { + IntrinsicParameters(const IntrinsicParameters& from); + IntrinsicParameters(IntrinsicParameters&& from) noexcept + : IntrinsicParameters() { *this = ::std::move(from); } - inline Webcams& operator=(const Webcams& from) { + inline IntrinsicParameters& operator=(const IntrinsicParameters& from) { CopyFrom(from); return *this; } - inline Webcams& operator=(Webcams&& from) noexcept { + inline IntrinsicParameters& operator=(IntrinsicParameters&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2980,180 +2482,195 @@ class Webcams final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Webcams& default_instance() { + static const IntrinsicParameters& default_instance() { return *internal_default_instance(); } - static inline const Webcams* internal_default_instance() { - return reinterpret_cast( - &_Webcams_default_instance_); + static inline const IntrinsicParameters* internal_default_instance() { + return reinterpret_cast( + &_IntrinsicParameters_default_instance_); } static constexpr int kIndexInFileMessages = - 10; + 13; - friend void swap(Webcams& a, Webcams& b) { + friend void swap(IntrinsicParameters& a, IntrinsicParameters& b) { a.Swap(&b); } - inline void Swap(Webcams* other) { + inline void Swap(IntrinsicParameters* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Webcams* other) { + void UnsafeArenaSwap(IntrinsicParameters* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Webcams* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Webcams& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Webcams& from) { - Webcams::MergeImpl(*this, from); + IntrinsicParameters* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const IntrinsicParameters& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const IntrinsicParameters& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Webcams* other); + void SetCachedSize(int size) const final; + void InternalSwap(IntrinsicParameters* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.camera.v1.Webcams"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.camera.v1.IntrinsicParameters"; } protected: - explicit Webcams(::google::protobuf::Arena* arena); - Webcams(::google::protobuf::Arena* arena, const Webcams& from); + explicit IntrinsicParameters(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kWebcamsFieldNumber = 1, + kWidthPxFieldNumber = 1, + kHeightPxFieldNumber = 2, + kFocalXPxFieldNumber = 3, + kFocalYPxFieldNumber = 4, + kCenterXPxFieldNumber = 5, + kCenterYPxFieldNumber = 6, }; - // repeated .viam.component.camera.v1.Webcam webcams = 1 [json_name = "webcams"]; - int webcams_size() const; + // uint32 width_px = 1 [json_name = "widthPx"]; + void clear_width_px(); + uint32_t width_px() const; + void set_width_px(uint32_t value); private: - int _internal_webcams_size() const; + uint32_t _internal_width_px() const; + void _internal_set_width_px(uint32_t value); + public: + // uint32 height_px = 2 [json_name = "heightPx"]; + void clear_height_px(); + uint32_t height_px() const; + void set_height_px(uint32_t value); + private: + uint32_t _internal_height_px() const; + void _internal_set_height_px(uint32_t value); public: - void clear_webcams() ; - ::viam::component::camera::v1::Webcam* mutable_webcams(int index); - ::google::protobuf::RepeatedPtrField< ::viam::component::camera::v1::Webcam >* - mutable_webcams(); + + // double focal_x_px = 3 [json_name = "focalXPx"]; + void clear_focal_x_px(); + double focal_x_px() const; + void set_focal_x_px(double value); private: - const ::google::protobuf::RepeatedPtrField<::viam::component::camera::v1::Webcam>& _internal_webcams() const; - ::google::protobuf::RepeatedPtrField<::viam::component::camera::v1::Webcam>* _internal_mutable_webcams(); + double _internal_focal_x_px() const; + void _internal_set_focal_x_px(double value); public: - const ::viam::component::camera::v1::Webcam& webcams(int index) const; - ::viam::component::camera::v1::Webcam* add_webcams(); - const ::google::protobuf::RepeatedPtrField< ::viam::component::camera::v1::Webcam >& - webcams() const; - // @@protoc_insertion_point(class_scope:viam.component.camera.v1.Webcams) + + // double focal_y_px = 4 [json_name = "focalYPx"]; + void clear_focal_y_px(); + double focal_y_px() const; + void set_focal_y_px(double value); + private: + double _internal_focal_y_px() const; + void _internal_set_focal_y_px(double value); + public: + + // double center_x_px = 5 [json_name = "centerXPx"]; + void clear_center_x_px(); + double center_x_px() const; + void set_center_x_px(double value); + private: + double _internal_center_x_px() const; + void _internal_set_center_x_px(double value); + public: + + // double center_y_px = 6 [json_name = "centerYPx"]; + void clear_center_y_px(); + double center_y_px() const; + void set_center_y_px(double value); + private: + double _internal_center_y_px() const; + void _internal_set_center_y_px(double value); + public: + + // @@protoc_insertion_point(class_scope:viam.component.camera.v1.IntrinsicParameters) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::component::camera::v1::Webcam > webcams_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + uint32_t width_px_; + uint32_t height_px_; + double focal_x_px_; + double focal_y_px_; + double center_x_px_; + double center_y_px_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fcamera_2fv1_2fcamera_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetImagesResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.camera.v1.GetImagesResponse) */ { +class DistortionParameters final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.camera.v1.DistortionParameters) */ { public: - inline GetImagesResponse() : GetImagesResponse(nullptr) {} - ~GetImagesResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetImagesResponse(::google::protobuf::internal::ConstantInitialized); + inline DistortionParameters() : DistortionParameters(nullptr) {} + ~DistortionParameters() override; + explicit PROTOBUF_CONSTEXPR DistortionParameters(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetImagesResponse(const GetImagesResponse& from) - : GetImagesResponse(nullptr, from) {} - GetImagesResponse(GetImagesResponse&& from) noexcept - : GetImagesResponse() { + DistortionParameters(const DistortionParameters& from); + DistortionParameters(DistortionParameters&& from) noexcept + : DistortionParameters() { *this = ::std::move(from); } - inline GetImagesResponse& operator=(const GetImagesResponse& from) { + inline DistortionParameters& operator=(const DistortionParameters& from) { CopyFrom(from); return *this; } - inline GetImagesResponse& operator=(GetImagesResponse&& from) noexcept { + inline DistortionParameters& operator=(DistortionParameters&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3163,384 +2680,338 @@ class GetImagesResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetImagesResponse& default_instance() { + static const DistortionParameters& default_instance() { return *internal_default_instance(); } - static inline const GetImagesResponse* internal_default_instance() { - return reinterpret_cast( - &_GetImagesResponse_default_instance_); + static inline const DistortionParameters* internal_default_instance() { + return reinterpret_cast( + &_DistortionParameters_default_instance_); } static constexpr int kIndexInFileMessages = - 3; + 14; - friend void swap(GetImagesResponse& a, GetImagesResponse& b) { + friend void swap(DistortionParameters& a, DistortionParameters& b) { a.Swap(&b); } - inline void Swap(GetImagesResponse* other) { + inline void Swap(DistortionParameters* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetImagesResponse* other) { + void UnsafeArenaSwap(DistortionParameters* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetImagesResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetImagesResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetImagesResponse& from) { - GetImagesResponse::MergeImpl(*this, from); + DistortionParameters* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DistortionParameters& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const DistortionParameters& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetImagesResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(DistortionParameters* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.camera.v1.GetImagesResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.camera.v1.DistortionParameters"; } protected: - explicit GetImagesResponse(::google::protobuf::Arena* arena); - GetImagesResponse(::google::protobuf::Arena* arena, const GetImagesResponse& from); + explicit DistortionParameters(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kImagesFieldNumber = 1, - kResponseMetadataFieldNumber = 84260, + kParametersFieldNumber = 2, + kModelFieldNumber = 1, }; - // repeated .viam.component.camera.v1.Image images = 1 [json_name = "images"]; - int images_size() const; + // repeated double parameters = 2 [json_name = "parameters"]; + int parameters_size() const; private: - int _internal_images_size() const; - + int _internal_parameters_size() const; public: - void clear_images() ; - ::viam::component::camera::v1::Image* mutable_images(int index); - ::google::protobuf::RepeatedPtrField< ::viam::component::camera::v1::Image >* - mutable_images(); + void clear_parameters(); private: - const ::google::protobuf::RepeatedPtrField<::viam::component::camera::v1::Image>& _internal_images() const; - ::google::protobuf::RepeatedPtrField<::viam::component::camera::v1::Image>* _internal_mutable_images(); + double _internal_parameters(int index) const; + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& + _internal_parameters() const; + void _internal_add_parameters(double value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* + _internal_mutable_parameters(); public: - const ::viam::component::camera::v1::Image& images(int index) const; - ::viam::component::camera::v1::Image* add_images(); - const ::google::protobuf::RepeatedPtrField< ::viam::component::camera::v1::Image >& - images() const; - // .viam.common.v1.ResponseMetadata response_metadata = 84260 [json_name = "responseMetadata"]; - bool has_response_metadata() const; - void clear_response_metadata() ; - const ::viam::common::v1::ResponseMetadata& response_metadata() const; - PROTOBUF_NODISCARD ::viam::common::v1::ResponseMetadata* release_response_metadata(); - ::viam::common::v1::ResponseMetadata* mutable_response_metadata(); - void set_allocated_response_metadata(::viam::common::v1::ResponseMetadata* value); - void unsafe_arena_set_allocated_response_metadata(::viam::common::v1::ResponseMetadata* value); - ::viam::common::v1::ResponseMetadata* unsafe_arena_release_response_metadata(); + double parameters(int index) const; + void set_parameters(int index, double value); + void add_parameters(double value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& + parameters() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* + mutable_parameters(); + // string model = 1 [json_name = "model"]; + void clear_model(); + const std::string& model() const; + template + void set_model(ArgT0&& arg0, ArgT... args); + std::string* mutable_model(); + PROTOBUF_NODISCARD std::string* release_model(); + void set_allocated_model(std::string* model); private: - const ::viam::common::v1::ResponseMetadata& _internal_response_metadata() const; - ::viam::common::v1::ResponseMetadata* _internal_mutable_response_metadata(); - + const std::string& _internal_model() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_model(const std::string& value); + std::string* _internal_mutable_model(); public: - // @@protoc_insertion_point(class_scope:viam.component.camera.v1.GetImagesResponse) + + // @@protoc_insertion_point(class_scope:viam.component.camera.v1.DistortionParameters) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 2, 2, - 0, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::viam::component::camera::v1::Image > images_; - ::viam::common::v1::ResponseMetadata* response_metadata_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double > parameters_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr model_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fcamera_2fv1_2fcamera_2eproto; }; - // =================================================================== - - // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ -// ------------------------------------------------------------------- - // GetImageRequest // string name = 1 [json_name = "name"]; inline void GetImageRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& GetImageRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetImageRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.camera.v1.GetImageRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetImageRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetImageRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.camera.v1.GetImageRequest.name) } -inline std::string* GetImageRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetImageRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.camera.v1.GetImageRequest.name) return _s; } inline const std::string& GetImageRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void GetImageRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* GetImageRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* GetImageRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.camera.v1.GetImageRequest.name) - return _impl_.name_.Release(); -} -inline void GetImageRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void GetImageRequest::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.camera.v1.GetImageRequest.name) } // string mime_type = 2 [json_name = "mimeType"]; inline void GetImageRequest::clear_mime_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.mime_type_.ClearToEmpty(); + mime_type_.ClearToEmpty(); } -inline const std::string& GetImageRequest::mime_type() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetImageRequest::mime_type() const { // @@protoc_insertion_point(field_get:viam.component.camera.v1.GetImageRequest.mime_type) return _internal_mime_type(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetImageRequest::set_mime_type(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.mime_type_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetImageRequest::set_mime_type(ArgT0&& arg0, ArgT... args) { + + mime_type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.camera.v1.GetImageRequest.mime_type) } -inline std::string* GetImageRequest::mutable_mime_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetImageRequest::mutable_mime_type() { std::string* _s = _internal_mutable_mime_type(); // @@protoc_insertion_point(field_mutable:viam.component.camera.v1.GetImageRequest.mime_type) return _s; } inline const std::string& GetImageRequest::_internal_mime_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.mime_type_.Get(); + return mime_type_.Get(); } inline void GetImageRequest::_internal_set_mime_type(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.mime_type_.Set(value, GetArena()); + + mime_type_.Set(value, GetArenaForAllocation()); } inline std::string* GetImageRequest::_internal_mutable_mime_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.mime_type_.Mutable( GetArena()); + + return mime_type_.Mutable(GetArenaForAllocation()); } inline std::string* GetImageRequest::release_mime_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.camera.v1.GetImageRequest.mime_type) - return _impl_.mime_type_.Release(); -} -inline void GetImageRequest::set_allocated_mime_type(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.mime_type_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.mime_type_.IsDefault()) { - _impl_.mime_type_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return mime_type_.Release(); +} +inline void GetImageRequest::set_allocated_mime_type(std::string* mime_type) { + if (mime_type != nullptr) { + + } else { + + } + mime_type_.SetAllocated(mime_type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (mime_type_.IsDefault()) { + mime_type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.component.camera.v1.GetImageRequest.mime_type) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetImageRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool GetImageRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& GetImageRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetImageRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& GetImageRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetImageRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.camera.v1.GetImageRequest.extra) return _internal_extra(); } -inline void GetImageRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void GetImageRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.camera.v1.GetImageRequest.extra) } -inline ::google::protobuf::Struct* GetImageRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetImageRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* GetImageRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetImageRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.camera.v1.GetImageRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* GetImageRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetImageRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* GetImageRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetImageRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.camera.v1.GetImageRequest.extra) return _msg; } -inline void GetImageRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetImageRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.camera.v1.GetImageRequest.extra) } @@ -3550,107 +3021,101 @@ inline void GetImageRequest::set_allocated_extra(::google::protobuf::Struct* val // string mime_type = 1 [json_name = "mimeType"]; inline void GetImageResponse::clear_mime_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.mime_type_.ClearToEmpty(); + mime_type_.ClearToEmpty(); } -inline const std::string& GetImageResponse::mime_type() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetImageResponse::mime_type() const { // @@protoc_insertion_point(field_get:viam.component.camera.v1.GetImageResponse.mime_type) return _internal_mime_type(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetImageResponse::set_mime_type(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.mime_type_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetImageResponse::set_mime_type(ArgT0&& arg0, ArgT... args) { + + mime_type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.camera.v1.GetImageResponse.mime_type) } -inline std::string* GetImageResponse::mutable_mime_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetImageResponse::mutable_mime_type() { std::string* _s = _internal_mutable_mime_type(); // @@protoc_insertion_point(field_mutable:viam.component.camera.v1.GetImageResponse.mime_type) return _s; } inline const std::string& GetImageResponse::_internal_mime_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.mime_type_.Get(); + return mime_type_.Get(); } inline void GetImageResponse::_internal_set_mime_type(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.mime_type_.Set(value, GetArena()); + + mime_type_.Set(value, GetArenaForAllocation()); } inline std::string* GetImageResponse::_internal_mutable_mime_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.mime_type_.Mutable( GetArena()); + + return mime_type_.Mutable(GetArenaForAllocation()); } inline std::string* GetImageResponse::release_mime_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.camera.v1.GetImageResponse.mime_type) - return _impl_.mime_type_.Release(); -} -inline void GetImageResponse::set_allocated_mime_type(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.mime_type_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.mime_type_.IsDefault()) { - _impl_.mime_type_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return mime_type_.Release(); +} +inline void GetImageResponse::set_allocated_mime_type(std::string* mime_type) { + if (mime_type != nullptr) { + + } else { + + } + mime_type_.SetAllocated(mime_type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (mime_type_.IsDefault()) { + mime_type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.component.camera.v1.GetImageResponse.mime_type) } // bytes image = 2 [json_name = "image"]; inline void GetImageResponse::clear_image() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.image_.ClearToEmpty(); + image_.ClearToEmpty(); } -inline const std::string& GetImageResponse::image() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetImageResponse::image() const { // @@protoc_insertion_point(field_get:viam.component.camera.v1.GetImageResponse.image) return _internal_image(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetImageResponse::set_image(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.image_.SetBytes(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetImageResponse::set_image(ArgT0&& arg0, ArgT... args) { + + image_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.camera.v1.GetImageResponse.image) } -inline std::string* GetImageResponse::mutable_image() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetImageResponse::mutable_image() { std::string* _s = _internal_mutable_image(); // @@protoc_insertion_point(field_mutable:viam.component.camera.v1.GetImageResponse.image) return _s; } inline const std::string& GetImageResponse::_internal_image() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.image_.Get(); + return image_.Get(); } inline void GetImageResponse::_internal_set_image(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.image_.Set(value, GetArena()); + + image_.Set(value, GetArenaForAllocation()); } inline std::string* GetImageResponse::_internal_mutable_image() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.image_.Mutable( GetArena()); + + return image_.Mutable(GetArenaForAllocation()); } inline std::string* GetImageResponse::release_image() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.camera.v1.GetImageResponse.image) - return _impl_.image_.Release(); -} -inline void GetImageResponse::set_allocated_image(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.image_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.image_.IsDefault()) { - _impl_.image_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return image_.Release(); +} +inline void GetImageResponse::set_allocated_image(std::string* image) { + if (image != nullptr) { + + } else { + + } + image_.SetAllocated(image, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (image_.IsDefault()) { + image_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.component.camera.v1.GetImageResponse.image) } @@ -3660,54 +3125,51 @@ inline void GetImageResponse::set_allocated_image(std::string* value) { // string name = 1 [json_name = "name"]; inline void GetImagesRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& GetImagesRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetImagesRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.camera.v1.GetImagesRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetImagesRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetImagesRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.camera.v1.GetImagesRequest.name) } -inline std::string* GetImagesRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetImagesRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.camera.v1.GetImagesRequest.name) return _s; } inline const std::string& GetImagesRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void GetImagesRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* GetImagesRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* GetImagesRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.camera.v1.GetImagesRequest.name) - return _impl_.name_.Release(); -} -inline void GetImagesRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void GetImagesRequest::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.camera.v1.GetImagesRequest.name) } @@ -3717,141 +3179,126 @@ inline void GetImagesRequest::set_allocated_name(std::string* value) { // repeated .viam.component.camera.v1.Image images = 1 [json_name = "images"]; inline int GetImagesResponse::_internal_images_size() const { - return _internal_images().size(); + return images_.size(); } inline int GetImagesResponse::images_size() const { return _internal_images_size(); } inline void GetImagesResponse::clear_images() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.images_.Clear(); + images_.Clear(); } -inline ::viam::component::camera::v1::Image* GetImagesResponse::mutable_images(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::component::camera::v1::Image* GetImagesResponse::mutable_images(int index) { // @@protoc_insertion_point(field_mutable:viam.component.camera.v1.GetImagesResponse.images) - return _internal_mutable_images()->Mutable(index); + return images_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::component::camera::v1::Image>* GetImagesResponse::mutable_images() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::camera::v1::Image >* +GetImagesResponse::mutable_images() { // @@protoc_insertion_point(field_mutable_list:viam.component.camera.v1.GetImagesResponse.images) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_images(); + return &images_; +} +inline const ::viam::component::camera::v1::Image& GetImagesResponse::_internal_images(int index) const { + return images_.Get(index); } -inline const ::viam::component::camera::v1::Image& GetImagesResponse::images(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::component::camera::v1::Image& GetImagesResponse::images(int index) const { // @@protoc_insertion_point(field_get:viam.component.camera.v1.GetImagesResponse.images) - return _internal_images().Get(index); + return _internal_images(index); } -inline ::viam::component::camera::v1::Image* GetImagesResponse::add_images() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::component::camera::v1::Image* _add = _internal_mutable_images()->Add(); +inline ::viam::component::camera::v1::Image* GetImagesResponse::_internal_add_images() { + return images_.Add(); +} +inline ::viam::component::camera::v1::Image* GetImagesResponse::add_images() { + ::viam::component::camera::v1::Image* _add = _internal_add_images(); // @@protoc_insertion_point(field_add:viam.component.camera.v1.GetImagesResponse.images) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::component::camera::v1::Image>& GetImagesResponse::images() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::camera::v1::Image >& +GetImagesResponse::images() const { // @@protoc_insertion_point(field_list:viam.component.camera.v1.GetImagesResponse.images) - return _internal_images(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::component::camera::v1::Image>& -GetImagesResponse::_internal_images() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.images_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::component::camera::v1::Image>* -GetImagesResponse::_internal_mutable_images() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.images_; + return images_; } // .viam.common.v1.ResponseMetadata response_metadata = 84260 [json_name = "responseMetadata"]; +inline bool GetImagesResponse::_internal_has_response_metadata() const { + return this != internal_default_instance() && response_metadata_ != nullptr; +} inline bool GetImagesResponse::has_response_metadata() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.response_metadata_ != nullptr); - return value; + return _internal_has_response_metadata(); } inline const ::viam::common::v1::ResponseMetadata& GetImagesResponse::_internal_response_metadata() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::common::v1::ResponseMetadata* p = _impl_.response_metadata_; - return p != nullptr ? *p : reinterpret_cast(::viam::common::v1::_ResponseMetadata_default_instance_); + const ::viam::common::v1::ResponseMetadata* p = response_metadata_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_ResponseMetadata_default_instance_); } -inline const ::viam::common::v1::ResponseMetadata& GetImagesResponse::response_metadata() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::ResponseMetadata& GetImagesResponse::response_metadata() const { // @@protoc_insertion_point(field_get:viam.component.camera.v1.GetImagesResponse.response_metadata) return _internal_response_metadata(); } -inline void GetImagesResponse::unsafe_arena_set_allocated_response_metadata(::viam::common::v1::ResponseMetadata* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.response_metadata_); +inline void GetImagesResponse::unsafe_arena_set_allocated_response_metadata( + ::viam::common::v1::ResponseMetadata* response_metadata) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(response_metadata_); } - _impl_.response_metadata_ = reinterpret_cast<::viam::common::v1::ResponseMetadata*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + response_metadata_ = response_metadata; + if (response_metadata) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.camera.v1.GetImagesResponse.response_metadata) } inline ::viam::common::v1::ResponseMetadata* GetImagesResponse::release_response_metadata() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::ResponseMetadata* released = _impl_.response_metadata_; - _impl_.response_metadata_ = nullptr; + + ::viam::common::v1::ResponseMetadata* temp = response_metadata_; + response_metadata_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::common::v1::ResponseMetadata* GetImagesResponse::unsafe_arena_release_response_metadata() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.camera.v1.GetImagesResponse.response_metadata) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::ResponseMetadata* temp = _impl_.response_metadata_; - _impl_.response_metadata_ = nullptr; + + ::viam::common::v1::ResponseMetadata* temp = response_metadata_; + response_metadata_ = nullptr; return temp; } inline ::viam::common::v1::ResponseMetadata* GetImagesResponse::_internal_mutable_response_metadata() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.response_metadata_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::ResponseMetadata>(GetArena()); - _impl_.response_metadata_ = reinterpret_cast<::viam::common::v1::ResponseMetadata*>(p); + + if (response_metadata_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::ResponseMetadata>(GetArenaForAllocation()); + response_metadata_ = p; } - return _impl_.response_metadata_; + return response_metadata_; } -inline ::viam::common::v1::ResponseMetadata* GetImagesResponse::mutable_response_metadata() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::ResponseMetadata* GetImagesResponse::mutable_response_metadata() { ::viam::common::v1::ResponseMetadata* _msg = _internal_mutable_response_metadata(); // @@protoc_insertion_point(field_mutable:viam.component.camera.v1.GetImagesResponse.response_metadata) return _msg; } -inline void GetImagesResponse::set_allocated_response_metadata(::viam::common::v1::ResponseMetadata* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetImagesResponse::set_allocated_response_metadata(::viam::common::v1::ResponseMetadata* response_metadata) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.response_metadata_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(response_metadata_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (response_metadata) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(response_metadata)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + response_metadata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, response_metadata, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.response_metadata_ = reinterpret_cast<::viam::common::v1::ResponseMetadata*>(value); + response_metadata_ = response_metadata; // @@protoc_insertion_point(field_set_allocated:viam.component.camera.v1.GetImagesResponse.response_metadata) } @@ -3861,130 +3308,121 @@ inline void GetImagesResponse::set_allocated_response_metadata(::viam::common::v // string source_name = 1 [json_name = "sourceName"]; inline void Image::clear_source_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.source_name_.ClearToEmpty(); + source_name_.ClearToEmpty(); } -inline const std::string& Image::source_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Image::source_name() const { // @@protoc_insertion_point(field_get:viam.component.camera.v1.Image.source_name) return _internal_source_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void Image::set_source_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.source_name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Image::set_source_name(ArgT0&& arg0, ArgT... args) { + + source_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.camera.v1.Image.source_name) } -inline std::string* Image::mutable_source_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Image::mutable_source_name() { std::string* _s = _internal_mutable_source_name(); // @@protoc_insertion_point(field_mutable:viam.component.camera.v1.Image.source_name) return _s; } inline const std::string& Image::_internal_source_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.source_name_.Get(); + return source_name_.Get(); } inline void Image::_internal_set_source_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.source_name_.Set(value, GetArena()); + + source_name_.Set(value, GetArenaForAllocation()); } inline std::string* Image::_internal_mutable_source_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.source_name_.Mutable( GetArena()); + + return source_name_.Mutable(GetArenaForAllocation()); } inline std::string* Image::release_source_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.camera.v1.Image.source_name) - return _impl_.source_name_.Release(); -} -inline void Image::set_allocated_source_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.source_name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.source_name_.IsDefault()) { - _impl_.source_name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return source_name_.Release(); +} +inline void Image::set_allocated_source_name(std::string* source_name) { + if (source_name != nullptr) { + + } else { + + } + source_name_.SetAllocated(source_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (source_name_.IsDefault()) { + source_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.component.camera.v1.Image.source_name) } // .viam.component.camera.v1.Format format = 2 [json_name = "format"]; inline void Image::clear_format() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.format_ = 0; + format_ = 0; +} +inline ::viam::component::camera::v1::Format Image::_internal_format() const { + return static_cast< ::viam::component::camera::v1::Format >(format_); } inline ::viam::component::camera::v1::Format Image::format() const { // @@protoc_insertion_point(field_get:viam.component.camera.v1.Image.format) return _internal_format(); } +inline void Image::_internal_set_format(::viam::component::camera::v1::Format value) { + + format_ = value; +} inline void Image::set_format(::viam::component::camera::v1::Format value) { _internal_set_format(value); // @@protoc_insertion_point(field_set:viam.component.camera.v1.Image.format) } -inline ::viam::component::camera::v1::Format Image::_internal_format() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::viam::component::camera::v1::Format>(_impl_.format_); -} -inline void Image::_internal_set_format(::viam::component::camera::v1::Format value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.format_ = value; -} // bytes image = 3 [json_name = "image"]; inline void Image::clear_image() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.image_.ClearToEmpty(); + image_.ClearToEmpty(); } -inline const std::string& Image::image() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Image::image() const { // @@protoc_insertion_point(field_get:viam.component.camera.v1.Image.image) return _internal_image(); } -template -inline PROTOBUF_ALWAYS_INLINE void Image::set_image(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.image_.SetBytes(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Image::set_image(ArgT0&& arg0, ArgT... args) { + + image_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.camera.v1.Image.image) } -inline std::string* Image::mutable_image() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Image::mutable_image() { std::string* _s = _internal_mutable_image(); // @@protoc_insertion_point(field_mutable:viam.component.camera.v1.Image.image) return _s; } inline const std::string& Image::_internal_image() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.image_.Get(); + return image_.Get(); } inline void Image::_internal_set_image(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.image_.Set(value, GetArena()); + + image_.Set(value, GetArenaForAllocation()); } inline std::string* Image::_internal_mutable_image() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.image_.Mutable( GetArena()); + + return image_.Mutable(GetArenaForAllocation()); } inline std::string* Image::release_image() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.camera.v1.Image.image) - return _impl_.image_.Release(); -} -inline void Image::set_allocated_image(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.image_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.image_.IsDefault()) { - _impl_.image_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return image_.Release(); +} +inline void Image::set_allocated_image(std::string* image) { + if (image != nullptr) { + + } else { + + } + image_.SetAllocated(image, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (image_.IsDefault()) { + image_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.component.camera.v1.Image.image) } @@ -3994,198 +3432,186 @@ inline void Image::set_allocated_image(std::string* value) { // string name = 1 [json_name = "name"]; inline void RenderFrameRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& RenderFrameRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& RenderFrameRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.camera.v1.RenderFrameRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void RenderFrameRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void RenderFrameRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.camera.v1.RenderFrameRequest.name) } -inline std::string* RenderFrameRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* RenderFrameRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.camera.v1.RenderFrameRequest.name) return _s; } inline const std::string& RenderFrameRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void RenderFrameRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* RenderFrameRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* RenderFrameRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.camera.v1.RenderFrameRequest.name) - return _impl_.name_.Release(); -} -inline void RenderFrameRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void RenderFrameRequest::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.camera.v1.RenderFrameRequest.name) } // string mime_type = 2 [json_name = "mimeType"]; inline void RenderFrameRequest::clear_mime_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.mime_type_.ClearToEmpty(); + mime_type_.ClearToEmpty(); } -inline const std::string& RenderFrameRequest::mime_type() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& RenderFrameRequest::mime_type() const { // @@protoc_insertion_point(field_get:viam.component.camera.v1.RenderFrameRequest.mime_type) return _internal_mime_type(); } -template -inline PROTOBUF_ALWAYS_INLINE void RenderFrameRequest::set_mime_type(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.mime_type_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void RenderFrameRequest::set_mime_type(ArgT0&& arg0, ArgT... args) { + + mime_type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.camera.v1.RenderFrameRequest.mime_type) } -inline std::string* RenderFrameRequest::mutable_mime_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* RenderFrameRequest::mutable_mime_type() { std::string* _s = _internal_mutable_mime_type(); // @@protoc_insertion_point(field_mutable:viam.component.camera.v1.RenderFrameRequest.mime_type) return _s; } inline const std::string& RenderFrameRequest::_internal_mime_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.mime_type_.Get(); + return mime_type_.Get(); } inline void RenderFrameRequest::_internal_set_mime_type(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.mime_type_.Set(value, GetArena()); + + mime_type_.Set(value, GetArenaForAllocation()); } inline std::string* RenderFrameRequest::_internal_mutable_mime_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.mime_type_.Mutable( GetArena()); + + return mime_type_.Mutable(GetArenaForAllocation()); } inline std::string* RenderFrameRequest::release_mime_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.camera.v1.RenderFrameRequest.mime_type) - return _impl_.mime_type_.Release(); -} -inline void RenderFrameRequest::set_allocated_mime_type(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.mime_type_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.mime_type_.IsDefault()) { - _impl_.mime_type_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return mime_type_.Release(); +} +inline void RenderFrameRequest::set_allocated_mime_type(std::string* mime_type) { + if (mime_type != nullptr) { + + } else { + + } + mime_type_.SetAllocated(mime_type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (mime_type_.IsDefault()) { + mime_type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.component.camera.v1.RenderFrameRequest.mime_type) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool RenderFrameRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool RenderFrameRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& RenderFrameRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& RenderFrameRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& RenderFrameRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& RenderFrameRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.camera.v1.RenderFrameRequest.extra) return _internal_extra(); } -inline void RenderFrameRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void RenderFrameRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.camera.v1.RenderFrameRequest.extra) } -inline ::google::protobuf::Struct* RenderFrameRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* RenderFrameRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* RenderFrameRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* RenderFrameRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.camera.v1.RenderFrameRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* RenderFrameRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* RenderFrameRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* RenderFrameRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* RenderFrameRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.camera.v1.RenderFrameRequest.extra) return _msg; } -inline void RenderFrameRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void RenderFrameRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.camera.v1.RenderFrameRequest.extra) } @@ -4195,198 +3621,186 @@ inline void RenderFrameRequest::set_allocated_extra(::google::protobuf::Struct* // string name = 1 [json_name = "name"]; inline void GetPointCloudRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& GetPointCloudRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetPointCloudRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.camera.v1.GetPointCloudRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetPointCloudRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetPointCloudRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.camera.v1.GetPointCloudRequest.name) } -inline std::string* GetPointCloudRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetPointCloudRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.camera.v1.GetPointCloudRequest.name) return _s; } inline const std::string& GetPointCloudRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void GetPointCloudRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* GetPointCloudRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* GetPointCloudRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.camera.v1.GetPointCloudRequest.name) - return _impl_.name_.Release(); -} -inline void GetPointCloudRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void GetPointCloudRequest::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.camera.v1.GetPointCloudRequest.name) } // string mime_type = 2 [json_name = "mimeType"]; inline void GetPointCloudRequest::clear_mime_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.mime_type_.ClearToEmpty(); + mime_type_.ClearToEmpty(); } -inline const std::string& GetPointCloudRequest::mime_type() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetPointCloudRequest::mime_type() const { // @@protoc_insertion_point(field_get:viam.component.camera.v1.GetPointCloudRequest.mime_type) return _internal_mime_type(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetPointCloudRequest::set_mime_type(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.mime_type_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetPointCloudRequest::set_mime_type(ArgT0&& arg0, ArgT... args) { + + mime_type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.camera.v1.GetPointCloudRequest.mime_type) } -inline std::string* GetPointCloudRequest::mutable_mime_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetPointCloudRequest::mutable_mime_type() { std::string* _s = _internal_mutable_mime_type(); // @@protoc_insertion_point(field_mutable:viam.component.camera.v1.GetPointCloudRequest.mime_type) return _s; } inline const std::string& GetPointCloudRequest::_internal_mime_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.mime_type_.Get(); + return mime_type_.Get(); } inline void GetPointCloudRequest::_internal_set_mime_type(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.mime_type_.Set(value, GetArena()); + + mime_type_.Set(value, GetArenaForAllocation()); } inline std::string* GetPointCloudRequest::_internal_mutable_mime_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.mime_type_.Mutable( GetArena()); + + return mime_type_.Mutable(GetArenaForAllocation()); } inline std::string* GetPointCloudRequest::release_mime_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.camera.v1.GetPointCloudRequest.mime_type) - return _impl_.mime_type_.Release(); -} -inline void GetPointCloudRequest::set_allocated_mime_type(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.mime_type_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.mime_type_.IsDefault()) { - _impl_.mime_type_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return mime_type_.Release(); +} +inline void GetPointCloudRequest::set_allocated_mime_type(std::string* mime_type) { + if (mime_type != nullptr) { + + } else { + + } + mime_type_.SetAllocated(mime_type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (mime_type_.IsDefault()) { + mime_type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.component.camera.v1.GetPointCloudRequest.mime_type) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetPointCloudRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool GetPointCloudRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& GetPointCloudRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetPointCloudRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& GetPointCloudRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetPointCloudRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.camera.v1.GetPointCloudRequest.extra) return _internal_extra(); } -inline void GetPointCloudRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void GetPointCloudRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.camera.v1.GetPointCloudRequest.extra) } -inline ::google::protobuf::Struct* GetPointCloudRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPointCloudRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* GetPointCloudRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPointCloudRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.camera.v1.GetPointCloudRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* GetPointCloudRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPointCloudRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* GetPointCloudRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPointCloudRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.camera.v1.GetPointCloudRequest.extra) return _msg; } -inline void GetPointCloudRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetPointCloudRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.camera.v1.GetPointCloudRequest.extra) } @@ -4396,107 +3810,101 @@ inline void GetPointCloudRequest::set_allocated_extra(::google::protobuf::Struct // string mime_type = 1 [json_name = "mimeType"]; inline void GetPointCloudResponse::clear_mime_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.mime_type_.ClearToEmpty(); + mime_type_.ClearToEmpty(); } -inline const std::string& GetPointCloudResponse::mime_type() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetPointCloudResponse::mime_type() const { // @@protoc_insertion_point(field_get:viam.component.camera.v1.GetPointCloudResponse.mime_type) return _internal_mime_type(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetPointCloudResponse::set_mime_type(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.mime_type_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetPointCloudResponse::set_mime_type(ArgT0&& arg0, ArgT... args) { + + mime_type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.camera.v1.GetPointCloudResponse.mime_type) } -inline std::string* GetPointCloudResponse::mutable_mime_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetPointCloudResponse::mutable_mime_type() { std::string* _s = _internal_mutable_mime_type(); // @@protoc_insertion_point(field_mutable:viam.component.camera.v1.GetPointCloudResponse.mime_type) return _s; } inline const std::string& GetPointCloudResponse::_internal_mime_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.mime_type_.Get(); + return mime_type_.Get(); } inline void GetPointCloudResponse::_internal_set_mime_type(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.mime_type_.Set(value, GetArena()); + + mime_type_.Set(value, GetArenaForAllocation()); } inline std::string* GetPointCloudResponse::_internal_mutable_mime_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.mime_type_.Mutable( GetArena()); + + return mime_type_.Mutable(GetArenaForAllocation()); } inline std::string* GetPointCloudResponse::release_mime_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.camera.v1.GetPointCloudResponse.mime_type) - return _impl_.mime_type_.Release(); -} -inline void GetPointCloudResponse::set_allocated_mime_type(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.mime_type_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.mime_type_.IsDefault()) { - _impl_.mime_type_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return mime_type_.Release(); +} +inline void GetPointCloudResponse::set_allocated_mime_type(std::string* mime_type) { + if (mime_type != nullptr) { + + } else { + + } + mime_type_.SetAllocated(mime_type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (mime_type_.IsDefault()) { + mime_type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.component.camera.v1.GetPointCloudResponse.mime_type) } // bytes point_cloud = 2 [json_name = "pointCloud"]; inline void GetPointCloudResponse::clear_point_cloud() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.point_cloud_.ClearToEmpty(); + point_cloud_.ClearToEmpty(); } -inline const std::string& GetPointCloudResponse::point_cloud() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetPointCloudResponse::point_cloud() const { // @@protoc_insertion_point(field_get:viam.component.camera.v1.GetPointCloudResponse.point_cloud) return _internal_point_cloud(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetPointCloudResponse::set_point_cloud(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.point_cloud_.SetBytes(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetPointCloudResponse::set_point_cloud(ArgT0&& arg0, ArgT... args) { + + point_cloud_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.camera.v1.GetPointCloudResponse.point_cloud) } -inline std::string* GetPointCloudResponse::mutable_point_cloud() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetPointCloudResponse::mutable_point_cloud() { std::string* _s = _internal_mutable_point_cloud(); // @@protoc_insertion_point(field_mutable:viam.component.camera.v1.GetPointCloudResponse.point_cloud) return _s; } inline const std::string& GetPointCloudResponse::_internal_point_cloud() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.point_cloud_.Get(); + return point_cloud_.Get(); } inline void GetPointCloudResponse::_internal_set_point_cloud(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.point_cloud_.Set(value, GetArena()); + + point_cloud_.Set(value, GetArenaForAllocation()); } inline std::string* GetPointCloudResponse::_internal_mutable_point_cloud() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.point_cloud_.Mutable( GetArena()); + + return point_cloud_.Mutable(GetArenaForAllocation()); } inline std::string* GetPointCloudResponse::release_point_cloud() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.camera.v1.GetPointCloudResponse.point_cloud) - return _impl_.point_cloud_.Release(); -} -inline void GetPointCloudResponse::set_allocated_point_cloud(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.point_cloud_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.point_cloud_.IsDefault()) { - _impl_.point_cloud_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return point_cloud_.Release(); +} +inline void GetPointCloudResponse::set_allocated_point_cloud(std::string* point_cloud) { + if (point_cloud != nullptr) { + + } else { + + } + point_cloud_.SetAllocated(point_cloud, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (point_cloud_.IsDefault()) { + point_cloud_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.component.camera.v1.GetPointCloudResponse.point_cloud) } @@ -4506,54 +3914,51 @@ inline void GetPointCloudResponse::set_allocated_point_cloud(std::string* value) // string name = 1 [json_name = "name"]; inline void GetPropertiesRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& GetPropertiesRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetPropertiesRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.camera.v1.GetPropertiesRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetPropertiesRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetPropertiesRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.camera.v1.GetPropertiesRequest.name) } -inline std::string* GetPropertiesRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetPropertiesRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.camera.v1.GetPropertiesRequest.name) return _s; } inline const std::string& GetPropertiesRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void GetPropertiesRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* GetPropertiesRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* GetPropertiesRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.camera.v1.GetPropertiesRequest.name) - return _impl_.name_.Release(); -} -inline void GetPropertiesRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void GetPropertiesRequest::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.camera.v1.GetPropertiesRequest.name) } @@ -4563,347 +3968,306 @@ inline void GetPropertiesRequest::set_allocated_name(std::string* value) { // bool supports_pcd = 1 [json_name = "supportsPcd"]; inline void GetPropertiesResponse::clear_supports_pcd() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.supports_pcd_ = false; + supports_pcd_ = false; +} +inline bool GetPropertiesResponse::_internal_supports_pcd() const { + return supports_pcd_; } inline bool GetPropertiesResponse::supports_pcd() const { // @@protoc_insertion_point(field_get:viam.component.camera.v1.GetPropertiesResponse.supports_pcd) return _internal_supports_pcd(); } +inline void GetPropertiesResponse::_internal_set_supports_pcd(bool value) { + + supports_pcd_ = value; +} inline void GetPropertiesResponse::set_supports_pcd(bool value) { _internal_set_supports_pcd(value); // @@protoc_insertion_point(field_set:viam.component.camera.v1.GetPropertiesResponse.supports_pcd) } -inline bool GetPropertiesResponse::_internal_supports_pcd() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.supports_pcd_; -} -inline void GetPropertiesResponse::_internal_set_supports_pcd(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.supports_pcd_ = value; -} // .viam.component.camera.v1.IntrinsicParameters intrinsic_parameters = 2 [json_name = "intrinsicParameters"]; +inline bool GetPropertiesResponse::_internal_has_intrinsic_parameters() const { + return this != internal_default_instance() && intrinsic_parameters_ != nullptr; +} inline bool GetPropertiesResponse::has_intrinsic_parameters() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.intrinsic_parameters_ != nullptr); - return value; + return _internal_has_intrinsic_parameters(); } inline void GetPropertiesResponse::clear_intrinsic_parameters() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.intrinsic_parameters_ != nullptr) _impl_.intrinsic_parameters_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && intrinsic_parameters_ != nullptr) { + delete intrinsic_parameters_; + } + intrinsic_parameters_ = nullptr; } inline const ::viam::component::camera::v1::IntrinsicParameters& GetPropertiesResponse::_internal_intrinsic_parameters() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::component::camera::v1::IntrinsicParameters* p = _impl_.intrinsic_parameters_; - return p != nullptr ? *p : reinterpret_cast(::viam::component::camera::v1::_IntrinsicParameters_default_instance_); + const ::viam::component::camera::v1::IntrinsicParameters* p = intrinsic_parameters_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::component::camera::v1::_IntrinsicParameters_default_instance_); } -inline const ::viam::component::camera::v1::IntrinsicParameters& GetPropertiesResponse::intrinsic_parameters() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::component::camera::v1::IntrinsicParameters& GetPropertiesResponse::intrinsic_parameters() const { // @@protoc_insertion_point(field_get:viam.component.camera.v1.GetPropertiesResponse.intrinsic_parameters) return _internal_intrinsic_parameters(); } -inline void GetPropertiesResponse::unsafe_arena_set_allocated_intrinsic_parameters(::viam::component::camera::v1::IntrinsicParameters* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.intrinsic_parameters_); +inline void GetPropertiesResponse::unsafe_arena_set_allocated_intrinsic_parameters( + ::viam::component::camera::v1::IntrinsicParameters* intrinsic_parameters) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(intrinsic_parameters_); } - _impl_.intrinsic_parameters_ = reinterpret_cast<::viam::component::camera::v1::IntrinsicParameters*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + intrinsic_parameters_ = intrinsic_parameters; + if (intrinsic_parameters) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.camera.v1.GetPropertiesResponse.intrinsic_parameters) } inline ::viam::component::camera::v1::IntrinsicParameters* GetPropertiesResponse::release_intrinsic_parameters() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::component::camera::v1::IntrinsicParameters* released = _impl_.intrinsic_parameters_; - _impl_.intrinsic_parameters_ = nullptr; + + ::viam::component::camera::v1::IntrinsicParameters* temp = intrinsic_parameters_; + intrinsic_parameters_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::component::camera::v1::IntrinsicParameters* GetPropertiesResponse::unsafe_arena_release_intrinsic_parameters() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.camera.v1.GetPropertiesResponse.intrinsic_parameters) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::component::camera::v1::IntrinsicParameters* temp = _impl_.intrinsic_parameters_; - _impl_.intrinsic_parameters_ = nullptr; + + ::viam::component::camera::v1::IntrinsicParameters* temp = intrinsic_parameters_; + intrinsic_parameters_ = nullptr; return temp; } inline ::viam::component::camera::v1::IntrinsicParameters* GetPropertiesResponse::_internal_mutable_intrinsic_parameters() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.intrinsic_parameters_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::component::camera::v1::IntrinsicParameters>(GetArena()); - _impl_.intrinsic_parameters_ = reinterpret_cast<::viam::component::camera::v1::IntrinsicParameters*>(p); + + if (intrinsic_parameters_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::component::camera::v1::IntrinsicParameters>(GetArenaForAllocation()); + intrinsic_parameters_ = p; } - return _impl_.intrinsic_parameters_; + return intrinsic_parameters_; } -inline ::viam::component::camera::v1::IntrinsicParameters* GetPropertiesResponse::mutable_intrinsic_parameters() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::component::camera::v1::IntrinsicParameters* GetPropertiesResponse::mutable_intrinsic_parameters() { ::viam::component::camera::v1::IntrinsicParameters* _msg = _internal_mutable_intrinsic_parameters(); // @@protoc_insertion_point(field_mutable:viam.component.camera.v1.GetPropertiesResponse.intrinsic_parameters) return _msg; } -inline void GetPropertiesResponse::set_allocated_intrinsic_parameters(::viam::component::camera::v1::IntrinsicParameters* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetPropertiesResponse::set_allocated_intrinsic_parameters(::viam::component::camera::v1::IntrinsicParameters* intrinsic_parameters) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::component::camera::v1::IntrinsicParameters*>(_impl_.intrinsic_parameters_); + delete intrinsic_parameters_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::component::camera::v1::IntrinsicParameters*>(value)->GetArena(); + if (intrinsic_parameters) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(intrinsic_parameters); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + intrinsic_parameters = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, intrinsic_parameters, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.intrinsic_parameters_ = reinterpret_cast<::viam::component::camera::v1::IntrinsicParameters*>(value); + intrinsic_parameters_ = intrinsic_parameters; // @@protoc_insertion_point(field_set_allocated:viam.component.camera.v1.GetPropertiesResponse.intrinsic_parameters) } // .viam.component.camera.v1.DistortionParameters distortion_parameters = 3 [json_name = "distortionParameters"]; +inline bool GetPropertiesResponse::_internal_has_distortion_parameters() const { + return this != internal_default_instance() && distortion_parameters_ != nullptr; +} inline bool GetPropertiesResponse::has_distortion_parameters() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.distortion_parameters_ != nullptr); - return value; + return _internal_has_distortion_parameters(); } inline void GetPropertiesResponse::clear_distortion_parameters() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.distortion_parameters_ != nullptr) _impl_.distortion_parameters_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && distortion_parameters_ != nullptr) { + delete distortion_parameters_; + } + distortion_parameters_ = nullptr; } inline const ::viam::component::camera::v1::DistortionParameters& GetPropertiesResponse::_internal_distortion_parameters() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::component::camera::v1::DistortionParameters* p = _impl_.distortion_parameters_; - return p != nullptr ? *p : reinterpret_cast(::viam::component::camera::v1::_DistortionParameters_default_instance_); + const ::viam::component::camera::v1::DistortionParameters* p = distortion_parameters_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::component::camera::v1::_DistortionParameters_default_instance_); } -inline const ::viam::component::camera::v1::DistortionParameters& GetPropertiesResponse::distortion_parameters() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::component::camera::v1::DistortionParameters& GetPropertiesResponse::distortion_parameters() const { // @@protoc_insertion_point(field_get:viam.component.camera.v1.GetPropertiesResponse.distortion_parameters) return _internal_distortion_parameters(); } -inline void GetPropertiesResponse::unsafe_arena_set_allocated_distortion_parameters(::viam::component::camera::v1::DistortionParameters* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.distortion_parameters_); +inline void GetPropertiesResponse::unsafe_arena_set_allocated_distortion_parameters( + ::viam::component::camera::v1::DistortionParameters* distortion_parameters) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(distortion_parameters_); } - _impl_.distortion_parameters_ = reinterpret_cast<::viam::component::camera::v1::DistortionParameters*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + distortion_parameters_ = distortion_parameters; + if (distortion_parameters) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.camera.v1.GetPropertiesResponse.distortion_parameters) } inline ::viam::component::camera::v1::DistortionParameters* GetPropertiesResponse::release_distortion_parameters() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::viam::component::camera::v1::DistortionParameters* released = _impl_.distortion_parameters_; - _impl_.distortion_parameters_ = nullptr; + + ::viam::component::camera::v1::DistortionParameters* temp = distortion_parameters_; + distortion_parameters_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::component::camera::v1::DistortionParameters* GetPropertiesResponse::unsafe_arena_release_distortion_parameters() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.camera.v1.GetPropertiesResponse.distortion_parameters) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::viam::component::camera::v1::DistortionParameters* temp = _impl_.distortion_parameters_; - _impl_.distortion_parameters_ = nullptr; + + ::viam::component::camera::v1::DistortionParameters* temp = distortion_parameters_; + distortion_parameters_ = nullptr; return temp; } inline ::viam::component::camera::v1::DistortionParameters* GetPropertiesResponse::_internal_mutable_distortion_parameters() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.distortion_parameters_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::component::camera::v1::DistortionParameters>(GetArena()); - _impl_.distortion_parameters_ = reinterpret_cast<::viam::component::camera::v1::DistortionParameters*>(p); + + if (distortion_parameters_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::component::camera::v1::DistortionParameters>(GetArenaForAllocation()); + distortion_parameters_ = p; } - return _impl_.distortion_parameters_; + return distortion_parameters_; } -inline ::viam::component::camera::v1::DistortionParameters* GetPropertiesResponse::mutable_distortion_parameters() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::component::camera::v1::DistortionParameters* GetPropertiesResponse::mutable_distortion_parameters() { ::viam::component::camera::v1::DistortionParameters* _msg = _internal_mutable_distortion_parameters(); // @@protoc_insertion_point(field_mutable:viam.component.camera.v1.GetPropertiesResponse.distortion_parameters) return _msg; } -inline void GetPropertiesResponse::set_allocated_distortion_parameters(::viam::component::camera::v1::DistortionParameters* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetPropertiesResponse::set_allocated_distortion_parameters(::viam::component::camera::v1::DistortionParameters* distortion_parameters) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::component::camera::v1::DistortionParameters*>(_impl_.distortion_parameters_); + delete distortion_parameters_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::component::camera::v1::DistortionParameters*>(value)->GetArena(); + if (distortion_parameters) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(distortion_parameters); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + distortion_parameters = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, distortion_parameters, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.distortion_parameters_ = reinterpret_cast<::viam::component::camera::v1::DistortionParameters*>(value); + distortion_parameters_ = distortion_parameters; // @@protoc_insertion_point(field_set_allocated:viam.component.camera.v1.GetPropertiesResponse.distortion_parameters) } // repeated string mime_types = 4 [json_name = "mimeTypes"]; inline int GetPropertiesResponse::_internal_mime_types_size() const { - return _internal_mime_types().size(); + return mime_types_.size(); } inline int GetPropertiesResponse::mime_types_size() const { return _internal_mime_types_size(); } inline void GetPropertiesResponse::clear_mime_types() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.mime_types_.Clear(); + mime_types_.Clear(); } -inline std::string* GetPropertiesResponse::add_mime_types() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_mime_types()->Add(); +inline std::string* GetPropertiesResponse::add_mime_types() { + std::string* _s = _internal_add_mime_types(); // @@protoc_insertion_point(field_add_mutable:viam.component.camera.v1.GetPropertiesResponse.mime_types) return _s; } -inline const std::string& GetPropertiesResponse::mime_types(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetPropertiesResponse::_internal_mime_types(int index) const { + return mime_types_.Get(index); +} +inline const std::string& GetPropertiesResponse::mime_types(int index) const { // @@protoc_insertion_point(field_get:viam.component.camera.v1.GetPropertiesResponse.mime_types) - return _internal_mime_types().Get(index); + return _internal_mime_types(index); } -inline std::string* GetPropertiesResponse::mutable_mime_types(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetPropertiesResponse::mutable_mime_types(int index) { // @@protoc_insertion_point(field_mutable:viam.component.camera.v1.GetPropertiesResponse.mime_types) - return _internal_mutable_mime_types()->Mutable(index); + return mime_types_.Mutable(index); } inline void GetPropertiesResponse::set_mime_types(int index, const std::string& value) { - _internal_mutable_mime_types()->Mutable(index)->assign(value); + mime_types_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set:viam.component.camera.v1.GetPropertiesResponse.mime_types) } inline void GetPropertiesResponse::set_mime_types(int index, std::string&& value) { - _internal_mutable_mime_types()->Mutable(index)->assign(std::move(value)); + mime_types_.Mutable(index)->assign(std::move(value)); // @@protoc_insertion_point(field_set:viam.component.camera.v1.GetPropertiesResponse.mime_types) } inline void GetPropertiesResponse::set_mime_types(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_mime_types()->Mutable(index)->assign(value); + GOOGLE_DCHECK(value != nullptr); + mime_types_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:viam.component.camera.v1.GetPropertiesResponse.mime_types) } -inline void GetPropertiesResponse::set_mime_types(int index, const char* value, - std::size_t size) { - _internal_mutable_mime_types()->Mutable(index)->assign( - reinterpret_cast(value), size); +inline void GetPropertiesResponse::set_mime_types(int index, const char* value, size_t size) { + mime_types_.Mutable(index)->assign( + reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:viam.component.camera.v1.GetPropertiesResponse.mime_types) } -inline void GetPropertiesResponse::set_mime_types(int index, absl::string_view value) { - _internal_mutable_mime_types()->Mutable(index)->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_set_string_piece:viam.component.camera.v1.GetPropertiesResponse.mime_types) +inline std::string* GetPropertiesResponse::_internal_add_mime_types() { + return mime_types_.Add(); } inline void GetPropertiesResponse::add_mime_types(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_mime_types()->Add()->assign(value); + mime_types_.Add()->assign(value); // @@protoc_insertion_point(field_add:viam.component.camera.v1.GetPropertiesResponse.mime_types) } inline void GetPropertiesResponse::add_mime_types(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_mime_types()->Add(std::move(value)); + mime_types_.Add(std::move(value)); // @@protoc_insertion_point(field_add:viam.component.camera.v1.GetPropertiesResponse.mime_types) } inline void GetPropertiesResponse::add_mime_types(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_mime_types()->Add()->assign(value); + GOOGLE_DCHECK(value != nullptr); + mime_types_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:viam.component.camera.v1.GetPropertiesResponse.mime_types) } -inline void GetPropertiesResponse::add_mime_types(const char* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_mime_types()->Add()->assign( - reinterpret_cast(value), size); +inline void GetPropertiesResponse::add_mime_types(const char* value, size_t size) { + mime_types_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:viam.component.camera.v1.GetPropertiesResponse.mime_types) } -inline void GetPropertiesResponse::add_mime_types(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_mime_types()->Add()->assign(value.data(), value.size()); - // @@protoc_insertion_point(field_add_string_piece:viam.component.camera.v1.GetPropertiesResponse.mime_types) -} -inline const ::google::protobuf::RepeatedPtrField& -GetPropertiesResponse::mime_types() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +GetPropertiesResponse::mime_types() const { // @@protoc_insertion_point(field_list:viam.component.camera.v1.GetPropertiesResponse.mime_types) - return _internal_mime_types(); + return mime_types_; } -inline ::google::protobuf::RepeatedPtrField* -GetPropertiesResponse::mutable_mime_types() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +GetPropertiesResponse::mutable_mime_types() { // @@protoc_insertion_point(field_mutable_list:viam.component.camera.v1.GetPropertiesResponse.mime_types) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_mime_types(); -} -inline const ::google::protobuf::RepeatedPtrField& -GetPropertiesResponse::_internal_mime_types() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.mime_types_; -} -inline ::google::protobuf::RepeatedPtrField* -GetPropertiesResponse::_internal_mutable_mime_types() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.mime_types_; + return &mime_types_; } // optional float frame_rate = 5 [json_name = "frameRate"]; -inline bool GetPropertiesResponse::has_frame_rate() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; +inline bool GetPropertiesResponse::_internal_has_frame_rate() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; return value; } +inline bool GetPropertiesResponse::has_frame_rate() const { + return _internal_has_frame_rate(); +} inline void GetPropertiesResponse::clear_frame_rate() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.frame_rate_ = 0; - _impl_._has_bits_[0] &= ~0x00000004u; + frame_rate_ = 0; + _has_bits_[0] &= ~0x00000001u; +} +inline float GetPropertiesResponse::_internal_frame_rate() const { + return frame_rate_; } inline float GetPropertiesResponse::frame_rate() const { // @@protoc_insertion_point(field_get:viam.component.camera.v1.GetPropertiesResponse.frame_rate) return _internal_frame_rate(); } +inline void GetPropertiesResponse::_internal_set_frame_rate(float value) { + _has_bits_[0] |= 0x00000001u; + frame_rate_ = value; +} inline void GetPropertiesResponse::set_frame_rate(float value) { _internal_set_frame_rate(value); // @@protoc_insertion_point(field_set:viam.component.camera.v1.GetPropertiesResponse.frame_rate) } -inline float GetPropertiesResponse::_internal_frame_rate() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.frame_rate_; -} -inline void GetPropertiesResponse::_internal_set_frame_rate(float value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - _impl_.frame_rate_ = value; -} // ------------------------------------------------------------------- @@ -4911,51 +4275,42 @@ inline void GetPropertiesResponse::_internal_set_frame_rate(float value) { // repeated .viam.component.camera.v1.Webcam webcams = 1 [json_name = "webcams"]; inline int Webcams::_internal_webcams_size() const { - return _internal_webcams().size(); + return webcams_.size(); } inline int Webcams::webcams_size() const { return _internal_webcams_size(); } inline void Webcams::clear_webcams() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.webcams_.Clear(); + webcams_.Clear(); } -inline ::viam::component::camera::v1::Webcam* Webcams::mutable_webcams(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::component::camera::v1::Webcam* Webcams::mutable_webcams(int index) { // @@protoc_insertion_point(field_mutable:viam.component.camera.v1.Webcams.webcams) - return _internal_mutable_webcams()->Mutable(index); + return webcams_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::component::camera::v1::Webcam>* Webcams::mutable_webcams() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::camera::v1::Webcam >* +Webcams::mutable_webcams() { // @@protoc_insertion_point(field_mutable_list:viam.component.camera.v1.Webcams.webcams) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_webcams(); + return &webcams_; } -inline const ::viam::component::camera::v1::Webcam& Webcams::webcams(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::component::camera::v1::Webcam& Webcams::_internal_webcams(int index) const { + return webcams_.Get(index); +} +inline const ::viam::component::camera::v1::Webcam& Webcams::webcams(int index) const { // @@protoc_insertion_point(field_get:viam.component.camera.v1.Webcams.webcams) - return _internal_webcams().Get(index); + return _internal_webcams(index); +} +inline ::viam::component::camera::v1::Webcam* Webcams::_internal_add_webcams() { + return webcams_.Add(); } -inline ::viam::component::camera::v1::Webcam* Webcams::add_webcams() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::component::camera::v1::Webcam* _add = _internal_mutable_webcams()->Add(); +inline ::viam::component::camera::v1::Webcam* Webcams::add_webcams() { + ::viam::component::camera::v1::Webcam* _add = _internal_add_webcams(); // @@protoc_insertion_point(field_add:viam.component.camera.v1.Webcams.webcams) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::component::camera::v1::Webcam>& Webcams::webcams() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::camera::v1::Webcam >& +Webcams::webcams() const { // @@protoc_insertion_point(field_list:viam.component.camera.v1.Webcams.webcams) - return _internal_webcams(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::component::camera::v1::Webcam>& -Webcams::_internal_webcams() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.webcams_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::component::camera::v1::Webcam>* -Webcams::_internal_mutable_webcams() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.webcams_; + return webcams_; } // ------------------------------------------------------------------- @@ -4964,262 +4319,241 @@ Webcams::_internal_mutable_webcams() { // string label = 1 [json_name = "label"]; inline void Webcam::clear_label() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.label_.ClearToEmpty(); + label_.ClearToEmpty(); } -inline const std::string& Webcam::label() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Webcam::label() const { // @@protoc_insertion_point(field_get:viam.component.camera.v1.Webcam.label) return _internal_label(); } -template -inline PROTOBUF_ALWAYS_INLINE void Webcam::set_label(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.label_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Webcam::set_label(ArgT0&& arg0, ArgT... args) { + + label_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.camera.v1.Webcam.label) } -inline std::string* Webcam::mutable_label() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Webcam::mutable_label() { std::string* _s = _internal_mutable_label(); // @@protoc_insertion_point(field_mutable:viam.component.camera.v1.Webcam.label) return _s; } inline const std::string& Webcam::_internal_label() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.label_.Get(); + return label_.Get(); } inline void Webcam::_internal_set_label(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.label_.Set(value, GetArena()); + + label_.Set(value, GetArenaForAllocation()); } inline std::string* Webcam::_internal_mutable_label() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.label_.Mutable( GetArena()); + + return label_.Mutable(GetArenaForAllocation()); } inline std::string* Webcam::release_label() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.camera.v1.Webcam.label) - return _impl_.label_.Release(); -} -inline void Webcam::set_allocated_label(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.label_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.label_.IsDefault()) { - _impl_.label_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return label_.Release(); +} +inline void Webcam::set_allocated_label(std::string* label) { + if (label != nullptr) { + + } else { + + } + label_.SetAllocated(label, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (label_.IsDefault()) { + label_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.component.camera.v1.Webcam.label) } // string status = 2 [json_name = "status"]; inline void Webcam::clear_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.status_.ClearToEmpty(); + status_.ClearToEmpty(); } -inline const std::string& Webcam::status() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Webcam::status() const { // @@protoc_insertion_point(field_get:viam.component.camera.v1.Webcam.status) return _internal_status(); } -template -inline PROTOBUF_ALWAYS_INLINE void Webcam::set_status(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.status_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Webcam::set_status(ArgT0&& arg0, ArgT... args) { + + status_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.camera.v1.Webcam.status) } -inline std::string* Webcam::mutable_status() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Webcam::mutable_status() { std::string* _s = _internal_mutable_status(); // @@protoc_insertion_point(field_mutable:viam.component.camera.v1.Webcam.status) return _s; } inline const std::string& Webcam::_internal_status() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.status_.Get(); + return status_.Get(); } inline void Webcam::_internal_set_status(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.status_.Set(value, GetArena()); + + status_.Set(value, GetArenaForAllocation()); } inline std::string* Webcam::_internal_mutable_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.status_.Mutable( GetArena()); + + return status_.Mutable(GetArenaForAllocation()); } inline std::string* Webcam::release_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.camera.v1.Webcam.status) - return _impl_.status_.Release(); -} -inline void Webcam::set_allocated_status(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.status_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.status_.IsDefault()) { - _impl_.status_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return status_.Release(); +} +inline void Webcam::set_allocated_status(std::string* status) { + if (status != nullptr) { + + } else { + + } + status_.SetAllocated(status, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (status_.IsDefault()) { + status_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.component.camera.v1.Webcam.status) } // repeated .viam.component.camera.v1.Property properties = 3 [json_name = "properties"]; inline int Webcam::_internal_properties_size() const { - return _internal_properties().size(); + return properties_.size(); } inline int Webcam::properties_size() const { return _internal_properties_size(); } inline void Webcam::clear_properties() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.properties_.Clear(); + properties_.Clear(); } -inline ::viam::component::camera::v1::Property* Webcam::mutable_properties(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::component::camera::v1::Property* Webcam::mutable_properties(int index) { // @@protoc_insertion_point(field_mutable:viam.component.camera.v1.Webcam.properties) - return _internal_mutable_properties()->Mutable(index); + return properties_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::component::camera::v1::Property>* Webcam::mutable_properties() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::camera::v1::Property >* +Webcam::mutable_properties() { // @@protoc_insertion_point(field_mutable_list:viam.component.camera.v1.Webcam.properties) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_properties(); + return &properties_; } -inline const ::viam::component::camera::v1::Property& Webcam::properties(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::component::camera::v1::Property& Webcam::_internal_properties(int index) const { + return properties_.Get(index); +} +inline const ::viam::component::camera::v1::Property& Webcam::properties(int index) const { // @@protoc_insertion_point(field_get:viam.component.camera.v1.Webcam.properties) - return _internal_properties().Get(index); + return _internal_properties(index); +} +inline ::viam::component::camera::v1::Property* Webcam::_internal_add_properties() { + return properties_.Add(); } -inline ::viam::component::camera::v1::Property* Webcam::add_properties() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::component::camera::v1::Property* _add = _internal_mutable_properties()->Add(); +inline ::viam::component::camera::v1::Property* Webcam::add_properties() { + ::viam::component::camera::v1::Property* _add = _internal_add_properties(); // @@protoc_insertion_point(field_add:viam.component.camera.v1.Webcam.properties) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::component::camera::v1::Property>& Webcam::properties() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::camera::v1::Property >& +Webcam::properties() const { // @@protoc_insertion_point(field_list:viam.component.camera.v1.Webcam.properties) - return _internal_properties(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::component::camera::v1::Property>& -Webcam::_internal_properties() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.properties_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::component::camera::v1::Property>* -Webcam::_internal_mutable_properties() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.properties_; + return properties_; } // string name = 4 [json_name = "name"]; inline void Webcam::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& Webcam::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Webcam::name() const { // @@protoc_insertion_point(field_get:viam.component.camera.v1.Webcam.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void Webcam::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Webcam::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.camera.v1.Webcam.name) } -inline std::string* Webcam::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Webcam::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.camera.v1.Webcam.name) return _s; } inline const std::string& Webcam::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void Webcam::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* Webcam::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* Webcam::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.camera.v1.Webcam.name) - return _impl_.name_.Release(); -} -inline void Webcam::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void Webcam::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.camera.v1.Webcam.name) } // string id = 5 [json_name = "id"]; inline void Webcam::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); + id_.ClearToEmpty(); } -inline const std::string& Webcam::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Webcam::id() const { // @@protoc_insertion_point(field_get:viam.component.camera.v1.Webcam.id) return _internal_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void Webcam::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Webcam::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.camera.v1.Webcam.id) } -inline std::string* Webcam::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Webcam::mutable_id() { std::string* _s = _internal_mutable_id(); // @@protoc_insertion_point(field_mutable:viam.component.camera.v1.Webcam.id) return _s; } inline const std::string& Webcam::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); + return id_.Get(); } inline void Webcam::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); + + id_.Set(value, GetArenaForAllocation()); } inline std::string* Webcam::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); + + return id_.Mutable(GetArenaForAllocation()); } inline std::string* Webcam::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.camera.v1.Webcam.id) - return _impl_.id_.Release(); -} -inline void Webcam::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return id_.Release(); +} +inline void Webcam::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.component.camera.v1.Webcam.id) } @@ -5229,125 +4563,113 @@ inline void Webcam::set_allocated_id(std::string* value) { // int32 width_px = 1 [json_name = "widthPx"]; inline void Property::clear_width_px() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.width_px_ = 0; + width_px_ = 0; } -inline ::int32_t Property::width_px() const { +inline int32_t Property::_internal_width_px() const { + return width_px_; +} +inline int32_t Property::width_px() const { // @@protoc_insertion_point(field_get:viam.component.camera.v1.Property.width_px) return _internal_width_px(); } -inline void Property::set_width_px(::int32_t value) { +inline void Property::_internal_set_width_px(int32_t value) { + + width_px_ = value; +} +inline void Property::set_width_px(int32_t value) { _internal_set_width_px(value); // @@protoc_insertion_point(field_set:viam.component.camera.v1.Property.width_px) } -inline ::int32_t Property::_internal_width_px() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.width_px_; -} -inline void Property::_internal_set_width_px(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.width_px_ = value; -} // int32 height_px = 2 [json_name = "heightPx"]; inline void Property::clear_height_px() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.height_px_ = 0; + height_px_ = 0; } -inline ::int32_t Property::height_px() const { +inline int32_t Property::_internal_height_px() const { + return height_px_; +} +inline int32_t Property::height_px() const { // @@protoc_insertion_point(field_get:viam.component.camera.v1.Property.height_px) return _internal_height_px(); } -inline void Property::set_height_px(::int32_t value) { +inline void Property::_internal_set_height_px(int32_t value) { + + height_px_ = value; +} +inline void Property::set_height_px(int32_t value) { _internal_set_height_px(value); // @@protoc_insertion_point(field_set:viam.component.camera.v1.Property.height_px) } -inline ::int32_t Property::_internal_height_px() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.height_px_; -} -inline void Property::_internal_set_height_px(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.height_px_ = value; -} // string frame_format = 3 [json_name = "frameFormat"]; inline void Property::clear_frame_format() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.frame_format_.ClearToEmpty(); + frame_format_.ClearToEmpty(); } -inline const std::string& Property::frame_format() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Property::frame_format() const { // @@protoc_insertion_point(field_get:viam.component.camera.v1.Property.frame_format) return _internal_frame_format(); } -template -inline PROTOBUF_ALWAYS_INLINE void Property::set_frame_format(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.frame_format_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Property::set_frame_format(ArgT0&& arg0, ArgT... args) { + + frame_format_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.camera.v1.Property.frame_format) } -inline std::string* Property::mutable_frame_format() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Property::mutable_frame_format() { std::string* _s = _internal_mutable_frame_format(); // @@protoc_insertion_point(field_mutable:viam.component.camera.v1.Property.frame_format) return _s; } inline const std::string& Property::_internal_frame_format() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.frame_format_.Get(); + return frame_format_.Get(); } inline void Property::_internal_set_frame_format(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.frame_format_.Set(value, GetArena()); + + frame_format_.Set(value, GetArenaForAllocation()); } inline std::string* Property::_internal_mutable_frame_format() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.frame_format_.Mutable( GetArena()); + + return frame_format_.Mutable(GetArenaForAllocation()); } inline std::string* Property::release_frame_format() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.camera.v1.Property.frame_format) - return _impl_.frame_format_.Release(); -} -inline void Property::set_allocated_frame_format(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.frame_format_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.frame_format_.IsDefault()) { - _impl_.frame_format_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return frame_format_.Release(); +} +inline void Property::set_allocated_frame_format(std::string* frame_format) { + if (frame_format != nullptr) { + + } else { + + } + frame_format_.SetAllocated(frame_format, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (frame_format_.IsDefault()) { + frame_format_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.component.camera.v1.Property.frame_format) } // float frame_rate = 4 [json_name = "frameRate"]; inline void Property::clear_frame_rate() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.frame_rate_ = 0; + frame_rate_ = 0; +} +inline float Property::_internal_frame_rate() const { + return frame_rate_; } inline float Property::frame_rate() const { // @@protoc_insertion_point(field_get:viam.component.camera.v1.Property.frame_rate) return _internal_frame_rate(); } +inline void Property::_internal_set_frame_rate(float value) { + + frame_rate_ = value; +} inline void Property::set_frame_rate(float value) { _internal_set_frame_rate(value); // @@protoc_insertion_point(field_set:viam.component.camera.v1.Property.frame_rate) } -inline float Property::_internal_frame_rate() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.frame_rate_; -} -inline void Property::_internal_set_frame_rate(float value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.frame_rate_ = value; -} // ------------------------------------------------------------------- @@ -5355,141 +4677,123 @@ inline void Property::_internal_set_frame_rate(float value) { // uint32 width_px = 1 [json_name = "widthPx"]; inline void IntrinsicParameters::clear_width_px() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.width_px_ = 0u; + width_px_ = 0u; } -inline ::uint32_t IntrinsicParameters::width_px() const { +inline uint32_t IntrinsicParameters::_internal_width_px() const { + return width_px_; +} +inline uint32_t IntrinsicParameters::width_px() const { // @@protoc_insertion_point(field_get:viam.component.camera.v1.IntrinsicParameters.width_px) return _internal_width_px(); } -inline void IntrinsicParameters::set_width_px(::uint32_t value) { +inline void IntrinsicParameters::_internal_set_width_px(uint32_t value) { + + width_px_ = value; +} +inline void IntrinsicParameters::set_width_px(uint32_t value) { _internal_set_width_px(value); // @@protoc_insertion_point(field_set:viam.component.camera.v1.IntrinsicParameters.width_px) } -inline ::uint32_t IntrinsicParameters::_internal_width_px() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.width_px_; -} -inline void IntrinsicParameters::_internal_set_width_px(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.width_px_ = value; -} // uint32 height_px = 2 [json_name = "heightPx"]; inline void IntrinsicParameters::clear_height_px() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.height_px_ = 0u; + height_px_ = 0u; } -inline ::uint32_t IntrinsicParameters::height_px() const { +inline uint32_t IntrinsicParameters::_internal_height_px() const { + return height_px_; +} +inline uint32_t IntrinsicParameters::height_px() const { // @@protoc_insertion_point(field_get:viam.component.camera.v1.IntrinsicParameters.height_px) return _internal_height_px(); } -inline void IntrinsicParameters::set_height_px(::uint32_t value) { +inline void IntrinsicParameters::_internal_set_height_px(uint32_t value) { + + height_px_ = value; +} +inline void IntrinsicParameters::set_height_px(uint32_t value) { _internal_set_height_px(value); // @@protoc_insertion_point(field_set:viam.component.camera.v1.IntrinsicParameters.height_px) } -inline ::uint32_t IntrinsicParameters::_internal_height_px() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.height_px_; -} -inline void IntrinsicParameters::_internal_set_height_px(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.height_px_ = value; -} // double focal_x_px = 3 [json_name = "focalXPx"]; inline void IntrinsicParameters::clear_focal_x_px() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.focal_x_px_ = 0; + focal_x_px_ = 0; +} +inline double IntrinsicParameters::_internal_focal_x_px() const { + return focal_x_px_; } inline double IntrinsicParameters::focal_x_px() const { // @@protoc_insertion_point(field_get:viam.component.camera.v1.IntrinsicParameters.focal_x_px) return _internal_focal_x_px(); } +inline void IntrinsicParameters::_internal_set_focal_x_px(double value) { + + focal_x_px_ = value; +} inline void IntrinsicParameters::set_focal_x_px(double value) { _internal_set_focal_x_px(value); // @@protoc_insertion_point(field_set:viam.component.camera.v1.IntrinsicParameters.focal_x_px) } -inline double IntrinsicParameters::_internal_focal_x_px() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.focal_x_px_; -} -inline void IntrinsicParameters::_internal_set_focal_x_px(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.focal_x_px_ = value; -} // double focal_y_px = 4 [json_name = "focalYPx"]; inline void IntrinsicParameters::clear_focal_y_px() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.focal_y_px_ = 0; + focal_y_px_ = 0; +} +inline double IntrinsicParameters::_internal_focal_y_px() const { + return focal_y_px_; } inline double IntrinsicParameters::focal_y_px() const { // @@protoc_insertion_point(field_get:viam.component.camera.v1.IntrinsicParameters.focal_y_px) return _internal_focal_y_px(); } +inline void IntrinsicParameters::_internal_set_focal_y_px(double value) { + + focal_y_px_ = value; +} inline void IntrinsicParameters::set_focal_y_px(double value) { _internal_set_focal_y_px(value); // @@protoc_insertion_point(field_set:viam.component.camera.v1.IntrinsicParameters.focal_y_px) } -inline double IntrinsicParameters::_internal_focal_y_px() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.focal_y_px_; -} -inline void IntrinsicParameters::_internal_set_focal_y_px(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.focal_y_px_ = value; -} // double center_x_px = 5 [json_name = "centerXPx"]; inline void IntrinsicParameters::clear_center_x_px() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.center_x_px_ = 0; + center_x_px_ = 0; +} +inline double IntrinsicParameters::_internal_center_x_px() const { + return center_x_px_; } inline double IntrinsicParameters::center_x_px() const { // @@protoc_insertion_point(field_get:viam.component.camera.v1.IntrinsicParameters.center_x_px) return _internal_center_x_px(); } +inline void IntrinsicParameters::_internal_set_center_x_px(double value) { + + center_x_px_ = value; +} inline void IntrinsicParameters::set_center_x_px(double value) { _internal_set_center_x_px(value); // @@protoc_insertion_point(field_set:viam.component.camera.v1.IntrinsicParameters.center_x_px) } -inline double IntrinsicParameters::_internal_center_x_px() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.center_x_px_; -} -inline void IntrinsicParameters::_internal_set_center_x_px(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.center_x_px_ = value; -} // double center_y_px = 6 [json_name = "centerYPx"]; inline void IntrinsicParameters::clear_center_y_px() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.center_y_px_ = 0; + center_y_px_ = 0; +} +inline double IntrinsicParameters::_internal_center_y_px() const { + return center_y_px_; } inline double IntrinsicParameters::center_y_px() const { // @@protoc_insertion_point(field_get:viam.component.camera.v1.IntrinsicParameters.center_y_px) return _internal_center_y_px(); } +inline void IntrinsicParameters::_internal_set_center_y_px(double value) { + + center_y_px_ = value; +} inline void IntrinsicParameters::set_center_y_px(double value) { _internal_set_center_y_px(value); // @@protoc_insertion_point(field_set:viam.component.camera.v1.IntrinsicParameters.center_y_px) } -inline double IntrinsicParameters::_internal_center_y_px() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.center_y_px_; -} -inline void IntrinsicParameters::_internal_set_center_y_px(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.center_y_px_ = value; -} // ------------------------------------------------------------------- @@ -5497,128 +4801,151 @@ inline void IntrinsicParameters::_internal_set_center_y_px(double value) { // string model = 1 [json_name = "model"]; inline void DistortionParameters::clear_model() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.model_.ClearToEmpty(); + model_.ClearToEmpty(); } -inline const std::string& DistortionParameters::model() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& DistortionParameters::model() const { // @@protoc_insertion_point(field_get:viam.component.camera.v1.DistortionParameters.model) return _internal_model(); } -template -inline PROTOBUF_ALWAYS_INLINE void DistortionParameters::set_model(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.model_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void DistortionParameters::set_model(ArgT0&& arg0, ArgT... args) { + + model_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.camera.v1.DistortionParameters.model) } -inline std::string* DistortionParameters::mutable_model() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* DistortionParameters::mutable_model() { std::string* _s = _internal_mutable_model(); // @@protoc_insertion_point(field_mutable:viam.component.camera.v1.DistortionParameters.model) return _s; } inline const std::string& DistortionParameters::_internal_model() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.model_.Get(); + return model_.Get(); } inline void DistortionParameters::_internal_set_model(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.model_.Set(value, GetArena()); + + model_.Set(value, GetArenaForAllocation()); } inline std::string* DistortionParameters::_internal_mutable_model() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.model_.Mutable( GetArena()); + + return model_.Mutable(GetArenaForAllocation()); } inline std::string* DistortionParameters::release_model() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.camera.v1.DistortionParameters.model) - return _impl_.model_.Release(); -} -inline void DistortionParameters::set_allocated_model(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.model_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.model_.IsDefault()) { - _impl_.model_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return model_.Release(); +} +inline void DistortionParameters::set_allocated_model(std::string* model) { + if (model != nullptr) { + + } else { + + } + model_.SetAllocated(model, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (model_.IsDefault()) { + model_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.component.camera.v1.DistortionParameters.model) } // repeated double parameters = 2 [json_name = "parameters"]; inline int DistortionParameters::_internal_parameters_size() const { - return _internal_parameters().size(); + return parameters_.size(); } inline int DistortionParameters::parameters_size() const { return _internal_parameters_size(); } inline void DistortionParameters::clear_parameters() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.parameters_.Clear(); + parameters_.Clear(); +} +inline double DistortionParameters::_internal_parameters(int index) const { + return parameters_.Get(index); } inline double DistortionParameters::parameters(int index) const { // @@protoc_insertion_point(field_get:viam.component.camera.v1.DistortionParameters.parameters) - return _internal_parameters().Get(index); + return _internal_parameters(index); } inline void DistortionParameters::set_parameters(int index, double value) { - _internal_mutable_parameters()->Set(index, value); + parameters_.Set(index, value); // @@protoc_insertion_point(field_set:viam.component.camera.v1.DistortionParameters.parameters) } +inline void DistortionParameters::_internal_add_parameters(double value) { + parameters_.Add(value); +} inline void DistortionParameters::add_parameters(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_parameters()->Add(value); + _internal_add_parameters(value); // @@protoc_insertion_point(field_add:viam.component.camera.v1.DistortionParameters.parameters) } -inline const ::google::protobuf::RepeatedField& DistortionParameters::parameters() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& +DistortionParameters::_internal_parameters() const { + return parameters_; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& +DistortionParameters::parameters() const { // @@protoc_insertion_point(field_list:viam.component.camera.v1.DistortionParameters.parameters) return _internal_parameters(); } -inline ::google::protobuf::RepeatedField* DistortionParameters::mutable_parameters() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* +DistortionParameters::_internal_mutable_parameters() { + return ¶meters_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* +DistortionParameters::mutable_parameters() { // @@protoc_insertion_point(field_mutable_list:viam.component.camera.v1.DistortionParameters.parameters) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _internal_mutable_parameters(); } -inline const ::google::protobuf::RepeatedField& DistortionParameters::_internal_parameters() - const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.parameters_; -} -inline ::google::protobuf::RepeatedField* DistortionParameters::_internal_mutable_parameters() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.parameters_; -} #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) + } // namespace v1 } // namespace camera } // namespace component } // namespace viam +PROTOBUF_NAMESPACE_OPEN -namespace google { -namespace protobuf { - +template <> struct is_proto_enum< ::viam::component::camera::v1::Format> : ::std::true_type {}; template <> -struct is_proto_enum<::viam::component::camera::v1::Format> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::viam::component::camera::v1::Format>() { +inline const EnumDescriptor* GetEnumDescriptor< ::viam::component::camera::v1::Format>() { return ::viam::component::camera::v1::Format_descriptor(); } -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_component_2fcamera_2fv1_2fcamera_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_component_2fcamera_2fv1_2fcamera_2eproto diff --git a/src/viam/api/component/encoder/v1/encoder.grpc.pb.cc b/src/viam/api/component/encoder/v1/encoder.grpc.pb.cc index 75e7d7258..d44a36e8c 100644 --- a/src/viam/api/component/encoder/v1/encoder.grpc.pb.cc +++ b/src/viam/api/component/encoder/v1/encoder.grpc.pb.cc @@ -6,19 +6,19 @@ #include "component/encoder/v1/encoder.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace component { namespace encoder { @@ -34,140 +34,165 @@ static const char* EncoderService_method_names[] = { std::unique_ptr< EncoderService::Stub> EncoderService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { (void)options; - std::unique_ptr< EncoderService::Stub> stub(new EncoderService::Stub(channel, options)); + std::unique_ptr< EncoderService::Stub> stub(new EncoderService::Stub(channel)); return stub; } -EncoderService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) - : channel_(channel), rpcmethod_GetPosition_(EncoderService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_ResetPosition_(EncoderService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetProperties_(EncoderService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_DoCommand_(EncoderService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetGeometries_(EncoderService_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) +EncoderService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_GetPosition_(EncoderService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ResetPosition_(EncoderService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetProperties_(EncoderService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DoCommand_(EncoderService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetGeometries_(EncoderService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status EncoderService::Stub::GetPosition(::grpc::ClientContext* context, const ::viam::component::encoder::v1::GetPositionRequest& request, ::viam::component::encoder::v1::GetPositionResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::encoder::v1::GetPositionRequest, ::viam::component::encoder::v1::GetPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetPosition_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetPosition_, context, request, response); } -void EncoderService::Stub::async::GetPosition(::grpc::ClientContext* context, const ::viam::component::encoder::v1::GetPositionRequest* request, ::viam::component::encoder::v1::GetPositionResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::encoder::v1::GetPositionRequest, ::viam::component::encoder::v1::GetPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetPosition_, context, request, response, std::move(f)); +void EncoderService::Stub::experimental_async::GetPosition(::grpc::ClientContext* context, const ::viam::component::encoder::v1::GetPositionRequest* request, ::viam::component::encoder::v1::GetPositionResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetPosition_, context, request, response, std::move(f)); } -void EncoderService::Stub::async::GetPosition(::grpc::ClientContext* context, const ::viam::component::encoder::v1::GetPositionRequest* request, ::viam::component::encoder::v1::GetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetPosition_, context, request, response, reactor); +void EncoderService::Stub::experimental_async::GetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::encoder::v1::GetPositionResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetPosition_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::encoder::v1::GetPositionResponse>* EncoderService::Stub::PrepareAsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::component::encoder::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::encoder::v1::GetPositionResponse, ::viam::component::encoder::v1::GetPositionRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetPosition_, context, request); +void EncoderService::Stub::experimental_async::GetPosition(::grpc::ClientContext* context, const ::viam::component::encoder::v1::GetPositionRequest* request, ::viam::component::encoder::v1::GetPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetPosition_, context, request, response, reactor); +} + +void EncoderService::Stub::experimental_async::GetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::encoder::v1::GetPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetPosition_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::encoder::v1::GetPositionResponse>* EncoderService::Stub::AsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::component::encoder::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetPositionRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::encoder::v1::GetPositionResponse>::Create(channel_.get(), cq, rpcmethod_GetPosition_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::encoder::v1::GetPositionResponse>* EncoderService::Stub::PrepareAsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::component::encoder::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::encoder::v1::GetPositionResponse>::Create(channel_.get(), cq, rpcmethod_GetPosition_, context, request, false); } ::grpc::Status EncoderService::Stub::ResetPosition(::grpc::ClientContext* context, const ::viam::component::encoder::v1::ResetPositionRequest& request, ::viam::component::encoder::v1::ResetPositionResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::encoder::v1::ResetPositionRequest, ::viam::component::encoder::v1::ResetPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ResetPosition_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ResetPosition_, context, request, response); } -void EncoderService::Stub::async::ResetPosition(::grpc::ClientContext* context, const ::viam::component::encoder::v1::ResetPositionRequest* request, ::viam::component::encoder::v1::ResetPositionResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::encoder::v1::ResetPositionRequest, ::viam::component::encoder::v1::ResetPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ResetPosition_, context, request, response, std::move(f)); +void EncoderService::Stub::experimental_async::ResetPosition(::grpc::ClientContext* context, const ::viam::component::encoder::v1::ResetPositionRequest* request, ::viam::component::encoder::v1::ResetPositionResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ResetPosition_, context, request, response, std::move(f)); } -void EncoderService::Stub::async::ResetPosition(::grpc::ClientContext* context, const ::viam::component::encoder::v1::ResetPositionRequest* request, ::viam::component::encoder::v1::ResetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ResetPosition_, context, request, response, reactor); +void EncoderService::Stub::experimental_async::ResetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::encoder::v1::ResetPositionResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ResetPosition_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::encoder::v1::ResetPositionResponse>* EncoderService::Stub::PrepareAsyncResetPositionRaw(::grpc::ClientContext* context, const ::viam::component::encoder::v1::ResetPositionRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::encoder::v1::ResetPositionResponse, ::viam::component::encoder::v1::ResetPositionRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ResetPosition_, context, request); +void EncoderService::Stub::experimental_async::ResetPosition(::grpc::ClientContext* context, const ::viam::component::encoder::v1::ResetPositionRequest* request, ::viam::component::encoder::v1::ResetPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ResetPosition_, context, request, response, reactor); +} + +void EncoderService::Stub::experimental_async::ResetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::encoder::v1::ResetPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ResetPosition_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::encoder::v1::ResetPositionResponse>* EncoderService::Stub::AsyncResetPositionRaw(::grpc::ClientContext* context, const ::viam::component::encoder::v1::ResetPositionRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncResetPositionRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::encoder::v1::ResetPositionResponse>::Create(channel_.get(), cq, rpcmethod_ResetPosition_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::encoder::v1::ResetPositionResponse>* EncoderService::Stub::PrepareAsyncResetPositionRaw(::grpc::ClientContext* context, const ::viam::component::encoder::v1::ResetPositionRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::encoder::v1::ResetPositionResponse>::Create(channel_.get(), cq, rpcmethod_ResetPosition_, context, request, false); } ::grpc::Status EncoderService::Stub::GetProperties(::grpc::ClientContext* context, const ::viam::component::encoder::v1::GetPropertiesRequest& request, ::viam::component::encoder::v1::GetPropertiesResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::encoder::v1::GetPropertiesRequest, ::viam::component::encoder::v1::GetPropertiesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetProperties_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetProperties_, context, request, response); } -void EncoderService::Stub::async::GetProperties(::grpc::ClientContext* context, const ::viam::component::encoder::v1::GetPropertiesRequest* request, ::viam::component::encoder::v1::GetPropertiesResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::encoder::v1::GetPropertiesRequest, ::viam::component::encoder::v1::GetPropertiesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetProperties_, context, request, response, std::move(f)); +void EncoderService::Stub::experimental_async::GetProperties(::grpc::ClientContext* context, const ::viam::component::encoder::v1::GetPropertiesRequest* request, ::viam::component::encoder::v1::GetPropertiesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetProperties_, context, request, response, std::move(f)); } -void EncoderService::Stub::async::GetProperties(::grpc::ClientContext* context, const ::viam::component::encoder::v1::GetPropertiesRequest* request, ::viam::component::encoder::v1::GetPropertiesResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetProperties_, context, request, response, reactor); +void EncoderService::Stub::experimental_async::GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::encoder::v1::GetPropertiesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetProperties_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::encoder::v1::GetPropertiesResponse>* EncoderService::Stub::PrepareAsyncGetPropertiesRaw(::grpc::ClientContext* context, const ::viam::component::encoder::v1::GetPropertiesRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::encoder::v1::GetPropertiesResponse, ::viam::component::encoder::v1::GetPropertiesRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetProperties_, context, request); +void EncoderService::Stub::experimental_async::GetProperties(::grpc::ClientContext* context, const ::viam::component::encoder::v1::GetPropertiesRequest* request, ::viam::component::encoder::v1::GetPropertiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetProperties_, context, request, response, reactor); +} + +void EncoderService::Stub::experimental_async::GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::encoder::v1::GetPropertiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetProperties_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::encoder::v1::GetPropertiesResponse>* EncoderService::Stub::AsyncGetPropertiesRaw(::grpc::ClientContext* context, const ::viam::component::encoder::v1::GetPropertiesRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetPropertiesRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::encoder::v1::GetPropertiesResponse>::Create(channel_.get(), cq, rpcmethod_GetProperties_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::encoder::v1::GetPropertiesResponse>* EncoderService::Stub::PrepareAsyncGetPropertiesRaw(::grpc::ClientContext* context, const ::viam::component::encoder::v1::GetPropertiesRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::encoder::v1::GetPropertiesResponse>::Create(channel_.get(), cq, rpcmethod_GetProperties_, context, request, false); } ::grpc::Status EncoderService::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); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DoCommand_, context, request, response); } -void EncoderService::Stub::async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); +void EncoderService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); } -void EncoderService::Stub::async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); +void EncoderService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* EncoderService::Stub::PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::common::v1::DoCommandResponse, ::viam::common::v1::DoCommandRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DoCommand_, context, request); +void EncoderService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); +} + +void EncoderService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* EncoderService::Stub::AsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncDoCommandRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::DoCommandResponse>::Create(channel_.get(), cq, rpcmethod_DoCommand_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* EncoderService::Stub::PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::DoCommandResponse>::Create(channel_.get(), cq, rpcmethod_DoCommand_, context, request, false); } ::grpc::Status EncoderService::Stub::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::viam::common::v1::GetGeometriesResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetGeometries_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetGeometries_, context, request, response); } -void EncoderService::Stub::async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, std::move(f)); +void EncoderService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, std::move(f)); } -void EncoderService::Stub::async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, reactor); +void EncoderService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>* EncoderService::Stub::PrepareAsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::common::v1::GetGeometriesResponse, ::viam::common::v1::GetGeometriesRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetGeometries_, context, request); +void EncoderService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, reactor); +} + +void EncoderService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>* EncoderService::Stub::AsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetGeometriesRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::GetGeometriesResponse>::Create(channel_.get(), cq, rpcmethod_GetGeometries_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>* EncoderService::Stub::PrepareAsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::GetGeometriesResponse>::Create(channel_.get(), cq, rpcmethod_GetGeometries_, context, request, false); } EncoderService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( EncoderService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< EncoderService::Service, ::viam::component::encoder::v1::GetPositionRequest, ::viam::component::encoder::v1::GetPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< EncoderService::Service, ::viam::component::encoder::v1::GetPositionRequest, ::viam::component::encoder::v1::GetPositionResponse>( [](EncoderService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::encoder::v1::GetPositionRequest* req, ::viam::component::encoder::v1::GetPositionResponse* resp) { return service->GetPosition(ctx, req, resp); @@ -175,9 +200,9 @@ EncoderService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( EncoderService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< EncoderService::Service, ::viam::component::encoder::v1::ResetPositionRequest, ::viam::component::encoder::v1::ResetPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< EncoderService::Service, ::viam::component::encoder::v1::ResetPositionRequest, ::viam::component::encoder::v1::ResetPositionResponse>( [](EncoderService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::encoder::v1::ResetPositionRequest* req, ::viam::component::encoder::v1::ResetPositionResponse* resp) { return service->ResetPosition(ctx, req, resp); @@ -185,9 +210,9 @@ EncoderService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( EncoderService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< EncoderService::Service, ::viam::component::encoder::v1::GetPropertiesRequest, ::viam::component::encoder::v1::GetPropertiesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< EncoderService::Service, ::viam::component::encoder::v1::GetPropertiesRequest, ::viam::component::encoder::v1::GetPropertiesResponse>( [](EncoderService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::encoder::v1::GetPropertiesRequest* req, ::viam::component::encoder::v1::GetPropertiesResponse* resp) { return service->GetProperties(ctx, req, resp); @@ -195,9 +220,9 @@ EncoderService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( EncoderService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< EncoderService::Service, ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< EncoderService::Service, ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( [](EncoderService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::common::v1::DoCommandRequest* req, ::viam::common::v1::DoCommandResponse* resp) { return service->DoCommand(ctx, req, resp); @@ -205,9 +230,9 @@ EncoderService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( EncoderService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< EncoderService::Service, ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< EncoderService::Service, ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( [](EncoderService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::common::v1::GetGeometriesRequest* req, ::viam::common::v1::GetGeometriesResponse* resp) { return service->GetGeometries(ctx, req, resp); diff --git a/src/viam/api/component/encoder/v1/encoder.grpc.pb.h b/src/viam/api/component/encoder/v1/encoder.grpc.pb.h index 2c6a8fc43..f4f853f4b 100644 --- a/src/viam/api/component/encoder/v1/encoder.grpc.pb.h +++ b/src/viam/api/component/encoder/v1/encoder.grpc.pb.h @@ -7,23 +7,24 @@ #include "component/encoder/v1/encoder.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace component { @@ -78,29 +79,83 @@ class EncoderService 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)); } - class async_interface { + class experimental_async_interface { public: - virtual ~async_interface() {} + virtual ~experimental_async_interface() {} // Returns position of the encoder which can either be ticks since last // zeroing for an incremental encoder or degrees for an absolute encoder. virtual void GetPosition(::grpc::ClientContext* context, const ::viam::component::encoder::v1::GetPositionRequest* request, ::viam::component::encoder::v1::GetPositionResponse* response, std::function) = 0; + virtual void GetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::encoder::v1::GetPositionResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetPosition(::grpc::ClientContext* context, const ::viam::component::encoder::v1::GetPositionRequest* request, ::viam::component::encoder::v1::GetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetPosition(::grpc::ClientContext* context, const ::viam::component::encoder::v1::GetPositionRequest* request, ::viam::component::encoder::v1::GetPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::encoder::v1::GetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::encoder::v1::GetPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif virtual void ResetPosition(::grpc::ClientContext* context, const ::viam::component::encoder::v1::ResetPositionRequest* request, ::viam::component::encoder::v1::ResetPositionResponse* response, std::function) = 0; + virtual void ResetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::encoder::v1::ResetPositionResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void ResetPosition(::grpc::ClientContext* context, const ::viam::component::encoder::v1::ResetPositionRequest* request, ::viam::component::encoder::v1::ResetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ResetPosition(::grpc::ClientContext* context, const ::viam::component::encoder::v1::ResetPositionRequest* request, ::viam::component::encoder::v1::ResetPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void ResetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::encoder::v1::ResetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ResetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::encoder::v1::ResetPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Returns a list of all the methods that are // supported by a given robot. virtual void GetProperties(::grpc::ClientContext* context, const ::viam::component::encoder::v1::GetPropertiesRequest* request, ::viam::component::encoder::v1::GetPropertiesResponse* response, std::function) = 0; + virtual void GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::encoder::v1::GetPropertiesResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetProperties(::grpc::ClientContext* context, const ::viam::component::encoder::v1::GetPropertiesRequest* request, ::viam::component::encoder::v1::GetPropertiesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetProperties(::grpc::ClientContext* context, const ::viam::component::encoder::v1::GetPropertiesRequest* request, ::viam::component::encoder::v1::GetPropertiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::encoder::v1::GetPropertiesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::encoder::v1::GetPropertiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif 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 ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // 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 ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif }; - typedef class async_interface experimental_async_interface; - virtual class async_interface* async() { return nullptr; } - class async_interface* experimental_async() { return async(); } - private: + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef class experimental_async_interface async_interface; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + async_interface* async() { return experimental_async(); } + #endif + virtual class experimental_async_interface* experimental_async() { return nullptr; } + private: virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::encoder::v1::GetPositionResponse>* AsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::component::encoder::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::encoder::v1::GetPositionResponse>* PrepareAsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::component::encoder::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::encoder::v1::ResetPositionResponse>* AsyncResetPositionRaw(::grpc::ClientContext* context, const ::viam::component::encoder::v1::ResetPositionRequest& request, ::grpc::CompletionQueue* cq) = 0; @@ -114,7 +169,7 @@ class EncoderService final { }; class Stub final : public StubInterface { public: - Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); ::grpc::Status GetPosition(::grpc::ClientContext* context, const ::viam::component::encoder::v1::GetPositionRequest& request, ::viam::component::encoder::v1::GetPositionResponse* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::encoder::v1::GetPositionResponse>> AsyncGetPosition(::grpc::ClientContext* context, const ::viam::component::encoder::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::encoder::v1::GetPositionResponse>>(AsyncGetPositionRaw(context, request, cq)); @@ -150,30 +205,80 @@ class EncoderService 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)); } - class async final : - public StubInterface::async_interface { + class experimental_async final : + public StubInterface::experimental_async_interface { public: void GetPosition(::grpc::ClientContext* context, const ::viam::component::encoder::v1::GetPositionRequest* request, ::viam::component::encoder::v1::GetPositionResponse* response, std::function) override; + void GetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::encoder::v1::GetPositionResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetPosition(::grpc::ClientContext* context, const ::viam::component::encoder::v1::GetPositionRequest* request, ::viam::component::encoder::v1::GetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetPosition(::grpc::ClientContext* context, const ::viam::component::encoder::v1::GetPositionRequest* request, ::viam::component::encoder::v1::GetPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::encoder::v1::GetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::encoder::v1::GetPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void ResetPosition(::grpc::ClientContext* context, const ::viam::component::encoder::v1::ResetPositionRequest* request, ::viam::component::encoder::v1::ResetPositionResponse* response, std::function) override; + void ResetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::encoder::v1::ResetPositionResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void ResetPosition(::grpc::ClientContext* context, const ::viam::component::encoder::v1::ResetPositionRequest* request, ::viam::component::encoder::v1::ResetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ResetPosition(::grpc::ClientContext* context, const ::viam::component::encoder::v1::ResetPositionRequest* request, ::viam::component::encoder::v1::ResetPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void ResetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::encoder::v1::ResetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ResetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::encoder::v1::ResetPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetProperties(::grpc::ClientContext* context, const ::viam::component::encoder::v1::GetPropertiesRequest* request, ::viam::component::encoder::v1::GetPropertiesResponse* response, std::function) override; + void GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::encoder::v1::GetPropertiesResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetProperties(::grpc::ClientContext* context, const ::viam::component::encoder::v1::GetPropertiesRequest* request, ::viam::component::encoder::v1::GetPropertiesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetProperties(::grpc::ClientContext* context, const ::viam::component::encoder::v1::GetPropertiesRequest* request, ::viam::component::encoder::v1::GetPropertiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::encoder::v1::GetPropertiesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::encoder::v1::GetPropertiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif 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 ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif 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 ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif private: friend class Stub; - explicit async(Stub* stub): stub_(stub) { } + explicit experimental_async(Stub* stub): stub_(stub) { } Stub* stub() { return stub_; } Stub* stub_; }; - class async* async() override { return &async_stub_; } + class experimental_async_interface* experimental_async() override { return &async_stub_; } private: std::shared_ptr< ::grpc::ChannelInterface> channel_; - class async async_stub_{this}; + class experimental_async async_stub_{this}; ::grpc::ClientAsyncResponseReader< ::viam::component::encoder::v1::GetPositionResponse>* AsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::component::encoder::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::component::encoder::v1::GetPositionResponse>* PrepareAsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::component::encoder::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::component::encoder::v1::ResetPositionResponse>* AsyncResetPositionRaw(::grpc::ClientContext* context, const ::viam::component::encoder::v1::ResetPositionRequest& request, ::grpc::CompletionQueue* cq) override; @@ -309,22 +414,36 @@ class EncoderService final { }; typedef WithAsyncMethod_GetPosition > > > > AsyncService; template - class WithCallbackMethod_GetPosition : public BaseClass { + class ExperimentalWithCallbackMethod_GetPosition : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetPosition() { - ::grpc::Service::MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::encoder::v1::GetPositionRequest, ::viam::component::encoder::v1::GetPositionResponse>( + ExperimentalWithCallbackMethod_GetPosition() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::encoder::v1::GetPositionRequest, ::viam::component::encoder::v1::GetPositionResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::encoder::v1::GetPositionRequest* request, ::viam::component::encoder::v1::GetPositionResponse* response) { return this->GetPosition(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::encoder::v1::GetPositionRequest* request, ::viam::component::encoder::v1::GetPositionResponse* response) { return this->GetPosition(context, request, response); }));} void SetMessageAllocatorFor_GetPosition( - ::grpc::MessageAllocator< ::viam::component::encoder::v1::GetPositionRequest, ::viam::component::encoder::v1::GetPositionResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::encoder::v1::GetPositionRequest, ::viam::component::encoder::v1::GetPositionResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::encoder::v1::GetPositionRequest, ::viam::component::encoder::v1::GetPositionResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(0); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::encoder::v1::GetPositionRequest, ::viam::component::encoder::v1::GetPositionResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetPosition() override { + ~ExperimentalWithCallbackMethod_GetPosition() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -332,26 +451,46 @@ class EncoderService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetPosition( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::encoder::v1::GetPositionRequest* /*request*/, ::viam::component::encoder::v1::GetPositionResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::encoder::v1::GetPositionRequest* /*request*/, ::viam::component::encoder::v1::GetPositionResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetPosition( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::encoder::v1::GetPositionRequest* /*request*/, ::viam::component::encoder::v1::GetPositionResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_ResetPosition : public BaseClass { + class ExperimentalWithCallbackMethod_ResetPosition : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_ResetPosition() { - ::grpc::Service::MarkMethodCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::encoder::v1::ResetPositionRequest, ::viam::component::encoder::v1::ResetPositionResponse>( + ExperimentalWithCallbackMethod_ResetPosition() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::encoder::v1::ResetPositionRequest, ::viam::component::encoder::v1::ResetPositionResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::encoder::v1::ResetPositionRequest* request, ::viam::component::encoder::v1::ResetPositionResponse* response) { return this->ResetPosition(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::encoder::v1::ResetPositionRequest* request, ::viam::component::encoder::v1::ResetPositionResponse* response) { return this->ResetPosition(context, request, response); }));} void SetMessageAllocatorFor_ResetPosition( - ::grpc::MessageAllocator< ::viam::component::encoder::v1::ResetPositionRequest, ::viam::component::encoder::v1::ResetPositionResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::encoder::v1::ResetPositionRequest, ::viam::component::encoder::v1::ResetPositionResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::encoder::v1::ResetPositionRequest, ::viam::component::encoder::v1::ResetPositionResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(1); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::encoder::v1::ResetPositionRequest, ::viam::component::encoder::v1::ResetPositionResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_ResetPosition() override { + ~ExperimentalWithCallbackMethod_ResetPosition() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -359,26 +498,46 @@ class EncoderService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* ResetPosition( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::encoder::v1::ResetPositionRequest* /*request*/, ::viam::component::encoder::v1::ResetPositionResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::encoder::v1::ResetPositionRequest* /*request*/, ::viam::component::encoder::v1::ResetPositionResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ResetPosition( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::encoder::v1::ResetPositionRequest* /*request*/, ::viam::component::encoder::v1::ResetPositionResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetProperties : public BaseClass { + class ExperimentalWithCallbackMethod_GetProperties : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetProperties() { - ::grpc::Service::MarkMethodCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::encoder::v1::GetPropertiesRequest, ::viam::component::encoder::v1::GetPropertiesResponse>( + ExperimentalWithCallbackMethod_GetProperties() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(2, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::encoder::v1::GetPropertiesRequest, ::viam::component::encoder::v1::GetPropertiesResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::encoder::v1::GetPropertiesRequest* request, ::viam::component::encoder::v1::GetPropertiesResponse* response) { return this->GetProperties(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::encoder::v1::GetPropertiesRequest* request, ::viam::component::encoder::v1::GetPropertiesResponse* response) { return this->GetProperties(context, request, response); }));} void SetMessageAllocatorFor_GetProperties( - ::grpc::MessageAllocator< ::viam::component::encoder::v1::GetPropertiesRequest, ::viam::component::encoder::v1::GetPropertiesResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::encoder::v1::GetPropertiesRequest, ::viam::component::encoder::v1::GetPropertiesResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::encoder::v1::GetPropertiesRequest, ::viam::component::encoder::v1::GetPropertiesResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(2); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::encoder::v1::GetPropertiesRequest, ::viam::component::encoder::v1::GetPropertiesResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetProperties() override { + ~ExperimentalWithCallbackMethod_GetProperties() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -386,26 +545,46 @@ class EncoderService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetProperties( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::encoder::v1::GetPropertiesRequest* /*request*/, ::viam::component::encoder::v1::GetPropertiesResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::encoder::v1::GetPropertiesRequest* /*request*/, ::viam::component::encoder::v1::GetPropertiesResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetProperties( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::encoder::v1::GetPropertiesRequest* /*request*/, ::viam::component::encoder::v1::GetPropertiesResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_DoCommand : public BaseClass { + class ExperimentalWithCallbackMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_DoCommand() { - ::grpc::Service::MarkMethodCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( + ExperimentalWithCallbackMethod_DoCommand() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(3, + new ::grpc_impl::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); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + 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::experimental::MessageAllocator< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(3); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_DoCommand() override { + ~ExperimentalWithCallbackMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -413,26 +592,46 @@ class EncoderService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DoCommand( - ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DoCommand( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetGeometries : public BaseClass { + class ExperimentalWithCallbackMethod_GetGeometries : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetGeometries() { - ::grpc::Service::MarkMethodCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( + ExperimentalWithCallbackMethod_GetGeometries() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(4, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response) { return this->GetGeometries(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response) { return this->GetGeometries(context, request, response); }));} void SetMessageAllocatorFor_GetGeometries( - ::grpc::MessageAllocator< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(4); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetGeometries() override { + ~ExperimentalWithCallbackMethod_GetGeometries() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -440,11 +639,20 @@ class EncoderService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetGeometries( - ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::GetGeometriesRequest* /*request*/, ::viam::common::v1::GetGeometriesResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::GetGeometriesRequest* /*request*/, ::viam::common::v1::GetGeometriesResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetGeometries( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::common::v1::GetGeometriesRequest* /*request*/, ::viam::common::v1::GetGeometriesResponse* /*response*/) + #endif + { return nullptr; } }; - typedef WithCallbackMethod_GetPosition > > > > CallbackService; - typedef CallbackService ExperimentalCallbackService; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef ExperimentalWithCallbackMethod_GetPosition > > > > CallbackService; + #endif + + typedef ExperimentalWithCallbackMethod_GetPosition > > > > ExperimentalCallbackService; template class WithGenericMethod_GetPosition : public BaseClass { private: @@ -631,17 +839,27 @@ class EncoderService final { } }; template - class WithRawCallbackMethod_GetPosition : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetPosition : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetPosition() { - ::grpc::Service::MarkMethodRawCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetPosition() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetPosition(context, request, response); })); - } - ~WithRawCallbackMethod_GetPosition() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetPosition(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetPosition() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -649,21 +867,37 @@ class EncoderService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetPosition( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetPosition( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_ResetPosition : public BaseClass { + class ExperimentalWithRawCallbackMethod_ResetPosition : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_ResetPosition() { - ::grpc::Service::MarkMethodRawCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_ResetPosition() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ResetPosition(context, request, response); })); - } - ~WithRawCallbackMethod_ResetPosition() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ResetPosition(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_ResetPosition() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -671,21 +905,37 @@ class EncoderService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* ResetPosition( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ResetPosition( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetProperties : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetProperties : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetProperties() { - ::grpc::Service::MarkMethodRawCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetProperties() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(2, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetProperties(context, request, response); })); - } - ~WithRawCallbackMethod_GetProperties() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetProperties(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetProperties() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -693,21 +943,37 @@ class EncoderService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetProperties( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetProperties( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_DoCommand : public BaseClass { + class ExperimentalWithRawCallbackMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_DoCommand() { - ::grpc::Service::MarkMethodRawCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_DoCommand() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(3, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DoCommand(context, request, response); })); - } - ~WithRawCallbackMethod_DoCommand() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DoCommand(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -715,21 +981,37 @@ class EncoderService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DoCommand( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DoCommand( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetGeometries : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetGeometries : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetGeometries() { - ::grpc::Service::MarkMethodRawCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetGeometries() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(4, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetGeometries(context, request, response); })); - } - ~WithRawCallbackMethod_GetGeometries() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetGeometries(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetGeometries() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -737,8 +1019,14 @@ class EncoderService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetGeometries( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetGeometries( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template class WithStreamedUnaryMethod_GetPosition : public BaseClass { @@ -749,8 +1037,8 @@ class EncoderService final { ::grpc::Service::MarkMethodStreamed(0, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::encoder::v1::GetPositionRequest, ::viam::component::encoder::v1::GetPositionResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::encoder::v1::GetPositionRequest, ::viam::component::encoder::v1::GetPositionResponse>* streamer) { return this->StreamedGetPosition(context, streamer); @@ -776,8 +1064,8 @@ class EncoderService final { ::grpc::Service::MarkMethodStreamed(1, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::encoder::v1::ResetPositionRequest, ::viam::component::encoder::v1::ResetPositionResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::encoder::v1::ResetPositionRequest, ::viam::component::encoder::v1::ResetPositionResponse>* streamer) { return this->StreamedResetPosition(context, streamer); @@ -803,8 +1091,8 @@ class EncoderService final { ::grpc::Service::MarkMethodStreamed(2, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::encoder::v1::GetPropertiesRequest, ::viam::component::encoder::v1::GetPropertiesResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::encoder::v1::GetPropertiesRequest, ::viam::component::encoder::v1::GetPropertiesResponse>* streamer) { return this->StreamedGetProperties(context, streamer); @@ -830,8 +1118,8 @@ class EncoderService final { ::grpc::Service::MarkMethodStreamed(3, new ::grpc::internal::StreamedUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* streamer) { return this->StreamedDoCommand(context, streamer); @@ -857,8 +1145,8 @@ class EncoderService final { ::grpc::Service::MarkMethodStreamed(4, new ::grpc::internal::StreamedUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>* streamer) { return this->StreamedGetGeometries(context, streamer); diff --git a/src/viam/api/component/encoder/v1/encoder.pb.cc b/src/viam/api/component/encoder/v1/encoder.pb.cc index 2be370ecd..19667fe76 100644 --- a/src/viam/api/component/encoder/v1/encoder.pb.cc +++ b/src/viam/api/component/encoder/v1/encoder.pb.cc @@ -4,603 +4,522 @@ #include "component/encoder/v1/encoder.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace viam { namespace component { namespace encoder { namespace v1 { - template -PROTOBUF_CONSTEXPR ResetPositionResponse::ResetPositionResponse(::_pbi::ConstantInitialized) {} -struct ResetPositionResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ResetPositionResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ResetPositionResponseDefaultTypeInternal() {} - union { - ResetPositionResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResetPositionResponseDefaultTypeInternal _ResetPositionResponse_default_instance_; - -inline constexpr GetPropertiesResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : ticks_count_supported_{false}, - angle_degrees_supported_{false}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetPropertiesResponse::GetPropertiesResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetPropertiesResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetPropertiesResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetPropertiesResponseDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR GetPositionRequest::GetPositionRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr) + , position_type_(0) +{} +struct GetPositionRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPositionRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPositionRequestDefaultTypeInternal() {} union { - GetPropertiesResponse _instance; + GetPositionRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPropertiesResponseDefaultTypeInternal _GetPropertiesResponse_default_instance_; - -inline constexpr GetPositionResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : value_{0}, - position_type_{static_cast< ::viam::component::encoder::v1::PositionType >(0)}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetPositionResponse::GetPositionResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPositionRequestDefaultTypeInternal _GetPositionRequest_default_instance_; +PROTOBUF_CONSTEXPR GetPositionResponse::GetPositionResponse( + ::_pbi::ConstantInitialized) + : value_(0) + , position_type_(0) +{} struct GetPositionResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetPositionResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GetPositionResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~GetPositionResponseDefaultTypeInternal() {} union { GetPositionResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPositionResponseDefaultTypeInternal _GetPositionResponse_default_instance_; - -inline constexpr ResetPositionRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR ResetPositionRequest::ResetPositionRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPositionResponseDefaultTypeInternal _GetPositionResponse_default_instance_; +PROTOBUF_CONSTEXPR ResetPositionRequest::ResetPositionRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} struct ResetPositionRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR ResetPositionRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ResetPositionRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~ResetPositionRequestDefaultTypeInternal() {} union { ResetPositionRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResetPositionRequestDefaultTypeInternal _ResetPositionRequest_default_instance_; - -inline constexpr GetPropertiesRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetPropertiesRequest::GetPropertiesRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResetPositionRequestDefaultTypeInternal _ResetPositionRequest_default_instance_; +PROTOBUF_CONSTEXPR ResetPositionResponse::ResetPositionResponse( + ::_pbi::ConstantInitialized){} +struct ResetPositionResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ResetPositionResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ResetPositionResponseDefaultTypeInternal() {} + union { + ResetPositionResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResetPositionResponseDefaultTypeInternal _ResetPositionResponse_default_instance_; +PROTOBUF_CONSTEXPR GetPropertiesRequest::GetPropertiesRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} struct GetPropertiesRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetPropertiesRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GetPropertiesRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~GetPropertiesRequestDefaultTypeInternal() {} union { GetPropertiesRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPropertiesRequestDefaultTypeInternal _GetPropertiesRequest_default_instance_; - -inline constexpr GetPositionRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr}, - position_type_{static_cast< ::viam::component::encoder::v1::PositionType >(0)} {} - -template -PROTOBUF_CONSTEXPR GetPositionRequest::GetPositionRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetPositionRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetPositionRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetPositionRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPropertiesRequestDefaultTypeInternal _GetPropertiesRequest_default_instance_; +PROTOBUF_CONSTEXPR GetPropertiesResponse::GetPropertiesResponse( + ::_pbi::ConstantInitialized) + : ticks_count_supported_(false) + , angle_degrees_supported_(false){} +struct GetPropertiesResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPropertiesResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPropertiesResponseDefaultTypeInternal() {} union { - GetPositionRequest _instance; + GetPropertiesResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPositionRequestDefaultTypeInternal _GetPositionRequest_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPropertiesResponseDefaultTypeInternal _GetPropertiesResponse_default_instance_; } // namespace v1 } // namespace encoder } // namespace component } // namespace viam static ::_pb::Metadata file_level_metadata_component_2fencoder_2fv1_2fencoder_2eproto[6]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_component_2fencoder_2fv1_2fencoder_2eproto[1]; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_component_2fencoder_2fv1_2fencoder_2eproto = nullptr; -const ::uint32_t TableStruct_component_2fencoder_2fv1_2fencoder_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::viam::component::encoder::v1::GetPositionRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::encoder::v1::GetPositionRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::encoder::v1::GetPositionRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::encoder::v1::GetPositionRequest, _impl_.position_type_), - PROTOBUF_FIELD_OFFSET(::viam::component::encoder::v1::GetPositionRequest, _impl_.extra_), - ~0u, - 1, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::encoder::v1::GetPositionResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::encoder::v1::GetPositionResponse, _impl_.value_), - PROTOBUF_FIELD_OFFSET(::viam::component::encoder::v1::GetPositionResponse, _impl_.position_type_), - PROTOBUF_FIELD_OFFSET(::viam::component::encoder::v1::ResetPositionRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::encoder::v1::ResetPositionRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::encoder::v1::ResetPositionRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::encoder::v1::ResetPositionRequest, _impl_.extra_), - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::encoder::v1::ResetPositionResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::encoder::v1::GetPropertiesRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::encoder::v1::GetPropertiesRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::encoder::v1::GetPropertiesRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::encoder::v1::GetPropertiesRequest, _impl_.extra_), - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::encoder::v1::GetPropertiesResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::encoder::v1::GetPropertiesResponse, _impl_.ticks_count_supported_), - PROTOBUF_FIELD_OFFSET(::viam::component::encoder::v1::GetPropertiesResponse, _impl_.angle_degrees_supported_), +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_component_2fencoder_2fv1_2fencoder_2eproto = nullptr; + +const uint32_t TableStruct_component_2fencoder_2fv1_2fencoder_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + PROTOBUF_FIELD_OFFSET(::viam::component::encoder::v1::GetPositionRequest, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::component::encoder::v1::GetPositionRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::encoder::v1::GetPositionRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::encoder::v1::GetPositionRequest, position_type_), + PROTOBUF_FIELD_OFFSET(::viam::component::encoder::v1::GetPositionRequest, extra_), + ~0u, + 0, + ~0u, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::encoder::v1::GetPositionResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::encoder::v1::GetPositionResponse, value_), + PROTOBUF_FIELD_OFFSET(::viam::component::encoder::v1::GetPositionResponse, position_type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::encoder::v1::ResetPositionRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::encoder::v1::ResetPositionRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::encoder::v1::ResetPositionRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::encoder::v1::ResetPositionResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::encoder::v1::GetPropertiesRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::encoder::v1::GetPropertiesRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::encoder::v1::GetPropertiesRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::encoder::v1::GetPropertiesResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::encoder::v1::GetPropertiesResponse, ticks_count_supported_), + PROTOBUF_FIELD_OFFSET(::viam::component::encoder::v1::GetPropertiesResponse, angle_degrees_supported_), }; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, 11, -1, sizeof(::viam::component::encoder::v1::GetPositionRequest)}, - {14, -1, -1, sizeof(::viam::component::encoder::v1::GetPositionResponse)}, - {24, 34, -1, sizeof(::viam::component::encoder::v1::ResetPositionRequest)}, - {36, -1, -1, sizeof(::viam::component::encoder::v1::ResetPositionResponse)}, - {44, 54, -1, sizeof(::viam::component::encoder::v1::GetPropertiesRequest)}, - {56, -1, -1, sizeof(::viam::component::encoder::v1::GetPropertiesResponse)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, 9, -1, sizeof(::viam::component::encoder::v1::GetPositionRequest)}, + { 12, -1, -1, sizeof(::viam::component::encoder::v1::GetPositionResponse)}, + { 20, -1, -1, sizeof(::viam::component::encoder::v1::ResetPositionRequest)}, + { 28, -1, -1, sizeof(::viam::component::encoder::v1::ResetPositionResponse)}, + { 34, -1, -1, sizeof(::viam::component::encoder::v1::GetPropertiesRequest)}, + { 42, -1, -1, sizeof(::viam::component::encoder::v1::GetPropertiesResponse)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::viam::component::encoder::v1::_GetPositionRequest_default_instance_._instance, - &::viam::component::encoder::v1::_GetPositionResponse_default_instance_._instance, - &::viam::component::encoder::v1::_ResetPositionRequest_default_instance_._instance, - &::viam::component::encoder::v1::_ResetPositionResponse_default_instance_._instance, - &::viam::component::encoder::v1::_GetPropertiesRequest_default_instance_._instance, - &::viam::component::encoder::v1::_GetPropertiesResponse_default_instance_._instance, + &::viam::component::encoder::v1::_GetPositionRequest_default_instance_._instance, + &::viam::component::encoder::v1::_GetPositionResponse_default_instance_._instance, + &::viam::component::encoder::v1::_ResetPositionRequest_default_instance_._instance, + &::viam::component::encoder::v1::_ResetPositionResponse_default_instance_._instance, + &::viam::component::encoder::v1::_GetPropertiesRequest_default_instance_._instance, + &::viam::component::encoder::v1::_GetPropertiesResponse_default_instance_._instance, }; -const char descriptor_table_protodef_component_2fencoder_2fv1_2fencoder_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n\"component/encoder/v1/encoder.proto\022\031vi" - "am.component.encoder.v1\032\026common/v1/commo" - "n.proto\032\034google/api/annotations.proto\032\034g" - "oogle/protobuf/struct.proto\"\274\001\n\022GetPosit" - "ionRequest\022\022\n\004name\030\001 \001(\tR\004name\022Q\n\rpositi" - "on_type\030\002 \001(\0162\'.viam.component.encoder.v" - "1.PositionTypeH\000R\014positionType\210\001\001\022-\n\005ext" - "ra\030c \001(\0132\027.google.protobuf.StructR\005extra" - "B\020\n\016_position_type\"y\n\023GetPositionRespons" - "e\022\024\n\005value\030\001 \001(\002R\005value\022L\n\rposition_type" - "\030\002 \001(\0162\'.viam.component.encoder.v1.Posit" - "ionTypeR\014positionType\"Y\n\024ResetPositionRe" - "quest\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005extra\030c \001(\013" - "2\027.google.protobuf.StructR\005extra\"\027\n\025Rese" - "tPositionResponse\"Y\n\024GetPropertiesReques" - "t\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005extra\030c \001(\0132\027.g" - "oogle.protobuf.StructR\005extra\"\203\001\n\025GetProp" - "ertiesResponse\0222\n\025ticks_count_supported\030" - "\001 \001(\010R\023ticksCountSupported\0226\n\027angle_degr" - "ees_supported\030\002 \001(\010R\025angleDegreesSupport" - "ed*m\n\014PositionType\022\035\n\031POSITION_TYPE_UNSP" - "ECIFIED\020\000\022\035\n\031POSITION_TYPE_TICKS_COUNT\020\001" - "\022\037\n\033POSITION_TYPE_ANGLE_DEGREES\020\0022\307\006\n\016En" - "coderService\022\250\001\n\013GetPosition\022-.viam.comp" - "onent.encoder.v1.GetPositionRequest\032..vi" - "am.component.encoder.v1.GetPositionRespo" - "nse\":\202\323\344\223\0024\0222/viam/api/v1/component/enco" - "der/{name}/get_position\022\260\001\n\rResetPositio" - "n\022/.viam.component.encoder.v1.ResetPosit" - "ionRequest\0320.viam.component.encoder.v1.R" - "esetPositionResponse\"<\202\323\344\223\0026\0224/viam/api/" - "v1/component/encoder/{name}/reset_positi" - "on\022\260\001\n\rGetProperties\022/.viam.component.en" - "coder.v1.GetPropertiesRequest\0320.viam.com" - "ponent.encoder.v1.GetPropertiesResponse\"" - "<\202\323\344\223\0026\"4/viam/api/v1/component/encoder/" - "{name}/get_properties\022\212\001\n\tDoCommand\022 .vi" - "am.common.v1.DoCommandRequest\032!.viam.com" - "mon.v1.DoCommandResponse\"8\202\323\344\223\0022\"0/viam/" - "api/v1/component/encoder/{name}/do_comma" - "nd\022\226\001\n\rGetGeometries\022$.viam.common.v1.Ge" - "tGeometriesRequest\032%.viam.common.v1.GetG" - "eometriesResponse\"8\202\323\344\223\0022\0220/viam/api/v1/" - "component/encoder/{name}/geometriesB\332\001\n\035" - "com.viam.component.encoder.v1B\014EncoderPr" - "otoP\001Z$go.viam.com/api/component/encoder" - "/v1\242\002\003VCE\252\002\031Viam.Component.Encoder.V1\312\002\031" - "Viam\\Component\\Encoder\\V1\342\002%Viam\\Compone" - "nt\\Encoder\\V1\\GPBMetadata\352\002\034Viam::Compon" - "ent::Encoder::V1b\006proto3" -}; -static const ::_pbi::DescriptorTable* const descriptor_table_component_2fencoder_2fv1_2fencoder_2eproto_deps[3] = - { - &::descriptor_table_common_2fv1_2fcommon_2eproto, - &::descriptor_table_google_2fapi_2fannotations_2eproto, - &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, + +const char descriptor_table_protodef_component_2fencoder_2fv1_2fencoder_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\"component/encoder/v1/encoder.proto\022\031vi" + "am.component.encoder.v1\032\026common/v1/commo" + "n.proto\032\034google/api/annotations.proto\032\034g" + "oogle/protobuf/struct.proto\"\274\001\n\022GetPosit" + "ionRequest\022\022\n\004name\030\001 \001(\tR\004name\022Q\n\rpositi" + "on_type\030\002 \001(\0162\'.viam.component.encoder.v" + "1.PositionTypeH\000R\014positionType\210\001\001\022-\n\005ext" + "ra\030c \001(\0132\027.google.protobuf.StructR\005extra" + "B\020\n\016_position_type\"y\n\023GetPositionRespons" + "e\022\024\n\005value\030\001 \001(\002R\005value\022L\n\rposition_type" + "\030\002 \001(\0162\'.viam.component.encoder.v1.Posit" + "ionTypeR\014positionType\"Y\n\024ResetPositionRe" + "quest\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005extra\030c \001(\013" + "2\027.google.protobuf.StructR\005extra\"\027\n\025Rese" + "tPositionResponse\"Y\n\024GetPropertiesReques" + "t\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005extra\030c \001(\0132\027.g" + "oogle.protobuf.StructR\005extra\"\203\001\n\025GetProp" + "ertiesResponse\0222\n\025ticks_count_supported\030" + "\001 \001(\010R\023ticksCountSupported\0226\n\027angle_degr" + "ees_supported\030\002 \001(\010R\025angleDegreesSupport" + "ed*m\n\014PositionType\022\035\n\031POSITION_TYPE_UNSP" + "ECIFIED\020\000\022\035\n\031POSITION_TYPE_TICKS_COUNT\020\001" + "\022\037\n\033POSITION_TYPE_ANGLE_DEGREES\020\0022\307\006\n\016En" + "coderService\022\250\001\n\013GetPosition\022-.viam.comp" + "onent.encoder.v1.GetPositionRequest\032..vi" + "am.component.encoder.v1.GetPositionRespo" + "nse\":\202\323\344\223\0024\0222/viam/api/v1/component/enco" + "der/{name}/get_position\022\260\001\n\rResetPositio" + "n\022/.viam.component.encoder.v1.ResetPosit" + "ionRequest\0320.viam.component.encoder.v1.R" + "esetPositionResponse\"<\202\323\344\223\0026\0224/viam/api/" + "v1/component/encoder/{name}/reset_positi" + "on\022\260\001\n\rGetProperties\022/.viam.component.en" + "coder.v1.GetPropertiesRequest\0320.viam.com" + "ponent.encoder.v1.GetPropertiesResponse\"" + "<\202\323\344\223\0026\"4/viam/api/v1/component/encoder/" + "{name}/get_properties\022\212\001\n\tDoCommand\022 .vi" + "am.common.v1.DoCommandRequest\032!.viam.com" + "mon.v1.DoCommandResponse\"8\202\323\344\223\0022\"0/viam/" + "api/v1/component/encoder/{name}/do_comma" + "nd\022\226\001\n\rGetGeometries\022$.viam.common.v1.Ge" + "tGeometriesRequest\032%.viam.common.v1.GetG" + "eometriesResponse\"8\202\323\344\223\0022\0220/viam/api/v1/" + "component/encoder/{name}/geometriesBE\n\035c" + "om.viam.component.encoder.v1Z$go.viam.co" + "m/api/component/encoder/v1b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_component_2fencoder_2fv1_2fencoder_2eproto_deps[3] = { + &::descriptor_table_common_2fv1_2fcommon_2eproto, + &::descriptor_table_google_2fapi_2fannotations_2eproto, + &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, }; -static ::absl::once_flag descriptor_table_component_2fencoder_2fv1_2fencoder_2eproto_once; +static ::_pbi::once_flag descriptor_table_component_2fencoder_2fv1_2fencoder_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_component_2fencoder_2fv1_2fencoder_2eproto = { - false, - false, - 1984, - descriptor_table_protodef_component_2fencoder_2fv1_2fencoder_2eproto, + false, false, 1834, descriptor_table_protodef_component_2fencoder_2fv1_2fencoder_2eproto, "component/encoder/v1/encoder.proto", - &descriptor_table_component_2fencoder_2fv1_2fencoder_2eproto_once, - descriptor_table_component_2fencoder_2fv1_2fencoder_2eproto_deps, - 3, - 6, - schemas, - file_default_instances, - TableStruct_component_2fencoder_2fv1_2fencoder_2eproto::offsets, - file_level_metadata_component_2fencoder_2fv1_2fencoder_2eproto, - file_level_enum_descriptors_component_2fencoder_2fv1_2fencoder_2eproto, + &descriptor_table_component_2fencoder_2fv1_2fencoder_2eproto_once, descriptor_table_component_2fencoder_2fv1_2fencoder_2eproto_deps, 3, 6, + schemas, file_default_instances, TableStruct_component_2fencoder_2fv1_2fencoder_2eproto::offsets, + file_level_metadata_component_2fencoder_2fv1_2fencoder_2eproto, file_level_enum_descriptors_component_2fencoder_2fv1_2fencoder_2eproto, file_level_service_descriptors_component_2fencoder_2fv1_2fencoder_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_component_2fencoder_2fv1_2fencoder_2eproto_getter() { return &descriptor_table_component_2fencoder_2fv1_2fencoder_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_component_2fencoder_2fv1_2fencoder_2eproto(&descriptor_table_component_2fencoder_2fv1_2fencoder_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_component_2fencoder_2fv1_2fencoder_2eproto(&descriptor_table_component_2fencoder_2fv1_2fencoder_2eproto); namespace viam { namespace component { namespace encoder { namespace v1 { -const ::google::protobuf::EnumDescriptor* PositionType_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_component_2fencoder_2fv1_2fencoder_2eproto); +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PositionType_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_component_2fencoder_2fv1_2fencoder_2eproto); return file_level_enum_descriptors_component_2fencoder_2fv1_2fencoder_2eproto[0]; } -PROTOBUF_CONSTINIT const uint32_t PositionType_internal_data_[] = { - 196608u, 0u, }; bool PositionType_IsValid(int value) { - return 0 <= value && value <= 2; + switch (value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } } + + // =================================================================== class GetPositionRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetPositionRequest, _impl_._has_bits_); + using HasBits = decltype(std::declval()._has_bits_); static void set_has_position_type(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static const ::google::protobuf::Struct& extra(const GetPositionRequest* msg); - static void set_has_extra(HasBits* has_bits) { (*has_bits)[0] |= 1u; } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetPositionRequest* msg); }; -const ::google::protobuf::Struct& GetPositionRequest::_Internal::extra(const GetPositionRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetPositionRequest::_Internal::extra(const GetPositionRequest* msg) { + return *msg->extra_; } void GetPositionRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -GetPositionRequest::GetPositionRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetPositionRequest::GetPositionRequest(::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.encoder.v1.GetPositionRequest) } -inline PROTOBUF_NDEBUG_INLINE GetPositionRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -GetPositionRequest::GetPositionRequest( - ::google::protobuf::Arena* arena, - const GetPositionRequest& from) - : ::google::protobuf::Message(arena) { - GetPositionRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - _impl_.position_type_ = from._impl_.position_type_; - +GetPositionRequest::GetPositionRequest(const GetPositionRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_) { + _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; + } + position_type_ = from.position_type_; // @@protoc_insertion_point(copy_constructor:viam.component.encoder.v1.GetPositionRequest) } -inline PROTOBUF_NDEBUG_INLINE GetPositionRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} - -inline void GetPositionRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, extra_), - 0, - offsetof(Impl_, position_type_) - - offsetof(Impl_, extra_) + - sizeof(Impl_::position_type_)); + +inline void GetPositionRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&extra_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&position_type_) - + reinterpret_cast(&extra_)) + sizeof(position_type_)); } + GetPositionRequest::~GetPositionRequest() { // @@protoc_insertion_point(destructor:viam.component.encoder.v1.GetPositionRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetPositionRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void GetPositionRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetPositionRequest::Clear() { +void GetPositionRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.encoder.v1.GetPositionRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; } - _impl_.position_type_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetPositionRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + extra_ = nullptr; + position_type_ = 0; + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPositionRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + 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.encoder.v1.GetPositionRequest.name")); + } else + goto handle_unusual; + continue; + // optional .viam.component.encoder.v1.PositionType position_type = 2 [json_name = "positionType"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_position_type(static_cast<::viam::component::encoder::v1::PositionType>(val)); + } 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: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 1, 57, 7> GetPositionRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetPositionRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetPositionRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetPositionRequest, _impl_.name_)}}, - // optional .viam.component.encoder.v1.PositionType position_type = 2 [json_name = "positionType"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(GetPositionRequest, _impl_.position_type_), 1>(), - {16, 1, 0, PROTOBUF_FIELD_OFFSET(GetPositionRequest, _impl_.position_type_)}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(GetPositionRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 2, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(GetPositionRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // optional .viam.component.encoder.v1.PositionType position_type = 2 [json_name = "positionType"]; - {PROTOBUF_FIELD_OFFSET(GetPositionRequest, _impl_.position_type_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(GetPositionRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\54\4\0\0\0\0\0\0" - "viam.component.encoder.v1.GetPositionRequest" - "name" - }}, -}; - -::uint8_t* GetPositionRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetPositionRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.encoder.v1.GetPositionRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.encoder.v1.GetPositionRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.encoder.v1.GetPositionRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // optional .viam.component.encoder.v1.PositionType position_type = 2 [json_name = "positionType"]; - if (cached_has_bits & 0x00000002u) { + if (_internal_has_position_type()) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 2, this->_internal_position_type(), target); + 2, this->_internal_position_type(), target); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.encoder.v1.GetPositionRequest) return target; } -::size_t GetPositionRequest::ByteSizeLong() const { +size_t GetPositionRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.encoder.v1.GetPositionRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); - } - - // optional .viam.component.encoder.v1.PositionType position_type = 2 [json_name = "positionType"]; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_position_type()); - } + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); + } + // optional .viam.component.encoder.v1.PositionType position_type = 2 [json_name = "positionType"]; + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_position_type()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetPositionRequest::_class_data_ = { - GetPositionRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPositionRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetPositionRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetPositionRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPositionRequest::GetClassData() const { return &_class_data_; } + +void GetPositionRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetPositionRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.encoder.v1.GetPositionRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetPositionRequest::MergeFrom(const GetPositionRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.encoder.v1.GetPositionRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); - } - if (cached_has_bits & 0x00000002u) { - _this->_impl_.position_type_ = from._impl_.position_type_; - } - _this->_impl_._has_bits_[0] |= cached_has_bits; + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_position_type()) { + _internal_set_position_type(from._internal_position_type()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetPositionRequest::CopyFrom(const GetPositionRequest& from) { @@ -610,219 +529,224 @@ void GetPositionRequest::CopyFrom(const GetPositionRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetPositionRequest::IsInitialized() const { +bool GetPositionRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetPositionRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetPositionRequest::InternalSwap(GetPositionRequest* PROTOBUF_RESTRICT other) { +void GetPositionRequest::InternalSwap(GetPositionRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(GetPositionRequest, _impl_.position_type_) - + sizeof(GetPositionRequest::_impl_.position_type_) - - PROTOBUF_FIELD_OFFSET(GetPositionRequest, _impl_.extra_)>( - reinterpret_cast(&_impl_.extra_), - reinterpret_cast(&other->_impl_.extra_)); -} - -::google::protobuf::Metadata GetPositionRequest::GetMetadata() const { + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GetPositionRequest, position_type_) + + sizeof(GetPositionRequest::position_type_) + - PROTOBUF_FIELD_OFFSET(GetPositionRequest, extra_)>( + reinterpret_cast(&extra_), + reinterpret_cast(&other->extra_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetPositionRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fencoder_2fv1_2fencoder_2eproto_getter, &descriptor_table_component_2fencoder_2fv1_2fencoder_2eproto_once, file_level_metadata_component_2fencoder_2fv1_2fencoder_2eproto[0]); } + // =================================================================== class GetPositionResponse::_Internal { public: }; -GetPositionResponse::GetPositionResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetPositionResponse::GetPositionResponse(::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.encoder.v1.GetPositionResponse) } -GetPositionResponse::GetPositionResponse( - ::google::protobuf::Arena* arena, const GetPositionResponse& from) - : GetPositionResponse(arena) { - MergeFrom(from); +GetPositionResponse::GetPositionResponse(const GetPositionResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&value_, &from.value_, + static_cast(reinterpret_cast(&position_type_) - + reinterpret_cast(&value_)) + sizeof(position_type_)); + // @@protoc_insertion_point(copy_constructor:viam.component.encoder.v1.GetPositionResponse) } -inline PROTOBUF_NDEBUG_INLINE GetPositionResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void GetPositionResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, value_), - 0, - offsetof(Impl_, position_type_) - - offsetof(Impl_, value_) + - sizeof(Impl_::position_type_)); +inline void GetPositionResponse::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&value_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&position_type_) - + reinterpret_cast(&value_)) + sizeof(position_type_)); } + GetPositionResponse::~GetPositionResponse() { // @@protoc_insertion_point(destructor:viam.component.encoder.v1.GetPositionResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetPositionResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void GetPositionResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetPositionResponse::Clear() { +void GetPositionResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.encoder.v1.GetPositionResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&_impl_.value_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.position_type_) - - reinterpret_cast(&_impl_.value_)) + sizeof(_impl_.position_type_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetPositionResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + ::memset(&value_, 0, static_cast( + reinterpret_cast(&position_type_) - + reinterpret_cast(&value_)) + sizeof(position_type_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPositionResponse::_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) { + // float value = 1 [json_name = "value"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 13)) { + value_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(float); + } else + goto handle_unusual; + continue; + // .viam.component.encoder.v1.PositionType position_type = 2 [json_name = "positionType"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_position_type(static_cast<::viam::component::encoder::v1::PositionType>(val)); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> GetPositionResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetPositionResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.component.encoder.v1.PositionType position_type = 2 [json_name = "positionType"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(GetPositionResponse, _impl_.position_type_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(GetPositionResponse, _impl_.position_type_)}}, - // float value = 1 [json_name = "value"]; - {::_pbi::TcParser::FastF32S1, - {13, 63, 0, PROTOBUF_FIELD_OFFSET(GetPositionResponse, _impl_.value_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // float value = 1 [json_name = "value"]; - {PROTOBUF_FIELD_OFFSET(GetPositionResponse, _impl_.value_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, - // .viam.component.encoder.v1.PositionType position_type = 2 [json_name = "positionType"]; - {PROTOBUF_FIELD_OFFSET(GetPositionResponse, _impl_.position_type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* GetPositionResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetPositionResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.encoder.v1.GetPositionResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // float value = 1 [json_name = "value"]; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); + static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); float tmp_value = this->_internal_value(); - ::uint32_t raw_value; + uint32_t raw_value; memcpy(&raw_value, &tmp_value, sizeof(tmp_value)); if (raw_value != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 1, this->_internal_value(), target); + target = ::_pbi::WireFormatLite::WriteFloatToArray(1, this->_internal_value(), target); } // .viam.component.encoder.v1.PositionType position_type = 2 [json_name = "positionType"]; if (this->_internal_position_type() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 2, this->_internal_position_type(), target); + 2, this->_internal_position_type(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.encoder.v1.GetPositionResponse) return target; } -::size_t GetPositionResponse::ByteSizeLong() const { +size_t GetPositionResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.encoder.v1.GetPositionResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // float value = 1 [json_name = "value"]; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); + static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); float tmp_value = this->_internal_value(); - ::uint32_t raw_value; + uint32_t raw_value; memcpy(&raw_value, &tmp_value, sizeof(tmp_value)); if (raw_value != 0) { - total_size += 5; + total_size += 1 + 4; } // .viam.component.encoder.v1.PositionType position_type = 2 [json_name = "positionType"]; if (this->_internal_position_type() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_position_type()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_position_type()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetPositionResponse::_class_data_ = { - GetPositionResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPositionResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetPositionResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetPositionResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPositionResponse::GetClassData() const { return &_class_data_; } + +void GetPositionResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetPositionResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.encoder.v1.GetPositionResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetPositionResponse::MergeFrom(const GetPositionResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.encoder.v1.GetPositionResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); + static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); float tmp_value = from._internal_value(); - ::uint32_t raw_value; + uint32_t raw_value; memcpy(&raw_value, &tmp_value, sizeof(tmp_value)); if (raw_value != 0) { - _this->_internal_set_value(from._internal_value()); + _internal_set_value(from._internal_value()); } if (from._internal_position_type() != 0) { - _this->_internal_set_position_type(from._internal_position_type()); + _internal_set_position_type(from._internal_position_type()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetPositionResponse::CopyFrom(const GetPositionResponse& from) { @@ -832,247 +756,239 @@ void GetPositionResponse::CopyFrom(const GetPositionResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetPositionResponse::IsInitialized() const { +bool GetPositionResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetPositionResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetPositionResponse::InternalSwap(GetPositionResponse* PROTOBUF_RESTRICT other) { +void GetPositionResponse::InternalSwap(GetPositionResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(GetPositionResponse, _impl_.position_type_) - + sizeof(GetPositionResponse::_impl_.position_type_) - - PROTOBUF_FIELD_OFFSET(GetPositionResponse, _impl_.value_)>( - reinterpret_cast(&_impl_.value_), - reinterpret_cast(&other->_impl_.value_)); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GetPositionResponse, position_type_) + + sizeof(GetPositionResponse::position_type_) + - PROTOBUF_FIELD_OFFSET(GetPositionResponse, value_)>( + reinterpret_cast(&value_), + reinterpret_cast(&other->value_)); } -::google::protobuf::Metadata GetPositionResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetPositionResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fencoder_2fv1_2fencoder_2eproto_getter, &descriptor_table_component_2fencoder_2fv1_2fencoder_2eproto_once, file_level_metadata_component_2fencoder_2fv1_2fencoder_2eproto[1]); } + // =================================================================== class ResetPositionRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ResetPositionRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const ResetPositionRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const ResetPositionRequest* msg); }; -const ::google::protobuf::Struct& ResetPositionRequest::_Internal::extra(const ResetPositionRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +ResetPositionRequest::_Internal::extra(const ResetPositionRequest* msg) { + return *msg->extra_; } void ResetPositionRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -ResetPositionRequest::ResetPositionRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ResetPositionRequest::ResetPositionRequest(::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.encoder.v1.ResetPositionRequest) } -inline PROTOBUF_NDEBUG_INLINE ResetPositionRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -ResetPositionRequest::ResetPositionRequest( - ::google::protobuf::Arena* arena, - const ResetPositionRequest& from) - : ::google::protobuf::Message(arena) { - ResetPositionRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +ResetPositionRequest::ResetPositionRequest(const ResetPositionRequest& 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.encoder.v1.ResetPositionRequest) } -inline PROTOBUF_NDEBUG_INLINE ResetPositionRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} -inline void ResetPositionRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void ResetPositionRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + ResetPositionRequest::~ResetPositionRequest() { // @@protoc_insertion_point(destructor:viam.component.encoder.v1.ResetPositionRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ResetPositionRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; } -PROTOBUF_NOINLINE void ResetPositionRequest::Clear() { +void ResetPositionRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ResetPositionRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.encoder.v1.ResetPositionRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ResetPositionRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ResetPositionRequest::_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.encoder.v1.ResetPositionRequest.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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 2, 1, 59, 7> ResetPositionRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ResetPositionRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ResetPositionRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ResetPositionRequest, _impl_.name_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(ResetPositionRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 1, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(ResetPositionRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(ResetPositionRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\56\4\0\0\0\0\0\0" - "viam.component.encoder.v1.ResetPositionRequest" - "name" - }}, -}; - -::uint8_t* ResetPositionRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ResetPositionRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.encoder.v1.ResetPositionRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.encoder.v1.ResetPositionRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.encoder.v1.ResetPositionRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.encoder.v1.ResetPositionRequest) return target; } -::size_t ResetPositionRequest::ByteSizeLong() const { +size_t ResetPositionRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.encoder.v1.ResetPositionRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ResetPositionRequest::_class_data_ = { - ResetPositionRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ResetPositionRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ResetPositionRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* ResetPositionRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ResetPositionRequest::GetClassData() const { return &_class_data_; } + +void ResetPositionRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ResetPositionRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.encoder.v1.ResetPositionRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ResetPositionRequest::MergeFrom(const ResetPositionRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.encoder.v1.ResetPositionRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ResetPositionRequest::CopyFrom(const ResetPositionRequest& from) { @@ -1082,47 +998,42 @@ void ResetPositionRequest::CopyFrom(const ResetPositionRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ResetPositionRequest::IsInitialized() const { +bool ResetPositionRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* ResetPositionRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ResetPositionRequest::InternalSwap(ResetPositionRequest* PROTOBUF_RESTRICT other) { +void ResetPositionRequest::InternalSwap(ResetPositionRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.extra_, other->_impl_.extra_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(extra_, other->extra_); } -::google::protobuf::Metadata ResetPositionRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ResetPositionRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fencoder_2fv1_2fencoder_2eproto_getter, &descriptor_table_component_2fencoder_2fv1_2fencoder_2eproto_once, file_level_metadata_component_2fencoder_2fv1_2fencoder_2eproto[2]); } + // =================================================================== class ResetPositionResponse::_Internal { public: }; -ResetPositionResponse::ResetPositionResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +ResetPositionResponse::ResetPositionResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.component.encoder.v1.ResetPositionResponse) } -ResetPositionResponse::ResetPositionResponse( - ::google::protobuf::Arena* arena, - const ResetPositionResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - ResetPositionResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +ResetPositionResponse::ResetPositionResponse(const ResetPositionResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.component.encoder.v1.ResetPositionResponse) } @@ -1130,233 +1041,236 @@ ResetPositionResponse::ResetPositionResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ResetPositionResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ResetPositionResponse::GetClassData() const { return &_class_data_; } + + + -::google::protobuf::Metadata ResetPositionResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ResetPositionResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fencoder_2fv1_2fencoder_2eproto_getter, &descriptor_table_component_2fencoder_2fv1_2fencoder_2eproto_once, file_level_metadata_component_2fencoder_2fv1_2fencoder_2eproto[3]); } + // =================================================================== class GetPropertiesRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetPropertiesRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const GetPropertiesRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetPropertiesRequest* msg); }; -const ::google::protobuf::Struct& GetPropertiesRequest::_Internal::extra(const GetPropertiesRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetPropertiesRequest::_Internal::extra(const GetPropertiesRequest* msg) { + return *msg->extra_; } void GetPropertiesRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -GetPropertiesRequest::GetPropertiesRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetPropertiesRequest::GetPropertiesRequest(::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.encoder.v1.GetPropertiesRequest) } -inline PROTOBUF_NDEBUG_INLINE GetPropertiesRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -GetPropertiesRequest::GetPropertiesRequest( - ::google::protobuf::Arena* arena, - const GetPropertiesRequest& from) - : ::google::protobuf::Message(arena) { - GetPropertiesRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +GetPropertiesRequest::GetPropertiesRequest(const GetPropertiesRequest& 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.encoder.v1.GetPropertiesRequest) } -inline PROTOBUF_NDEBUG_INLINE GetPropertiesRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} -inline void GetPropertiesRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void GetPropertiesRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + GetPropertiesRequest::~GetPropertiesRequest() { // @@protoc_insertion_point(destructor:viam.component.encoder.v1.GetPropertiesRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetPropertiesRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; } -PROTOBUF_NOINLINE void GetPropertiesRequest::Clear() { +void GetPropertiesRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetPropertiesRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.encoder.v1.GetPropertiesRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetPropertiesRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPropertiesRequest::_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.encoder.v1.GetPropertiesRequest.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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 2, 1, 59, 7> GetPropertiesRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetPropertiesRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetPropertiesRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetPropertiesRequest, _impl_.name_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(GetPropertiesRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 1, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(GetPropertiesRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(GetPropertiesRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\56\4\0\0\0\0\0\0" - "viam.component.encoder.v1.GetPropertiesRequest" - "name" - }}, -}; - -::uint8_t* GetPropertiesRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetPropertiesRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.encoder.v1.GetPropertiesRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.encoder.v1.GetPropertiesRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.encoder.v1.GetPropertiesRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.encoder.v1.GetPropertiesRequest) return target; } -::size_t GetPropertiesRequest::ByteSizeLong() const { +size_t GetPropertiesRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.encoder.v1.GetPropertiesRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetPropertiesRequest::_class_data_ = { - GetPropertiesRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPropertiesRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetPropertiesRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetPropertiesRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPropertiesRequest::GetClassData() const { return &_class_data_; } + +void GetPropertiesRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetPropertiesRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.encoder.v1.GetPropertiesRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetPropertiesRequest::MergeFrom(const GetPropertiesRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.encoder.v1.GetPropertiesRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetPropertiesRequest::CopyFrom(const GetPropertiesRequest& from) { @@ -1366,198 +1280,203 @@ void GetPropertiesRequest::CopyFrom(const GetPropertiesRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetPropertiesRequest::IsInitialized() const { +bool GetPropertiesRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetPropertiesRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetPropertiesRequest::InternalSwap(GetPropertiesRequest* PROTOBUF_RESTRICT other) { +void GetPropertiesRequest::InternalSwap(GetPropertiesRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.extra_, other->_impl_.extra_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(extra_, other->extra_); } -::google::protobuf::Metadata GetPropertiesRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetPropertiesRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fencoder_2fv1_2fencoder_2eproto_getter, &descriptor_table_component_2fencoder_2fv1_2fencoder_2eproto_once, file_level_metadata_component_2fencoder_2fv1_2fencoder_2eproto[4]); } + // =================================================================== class GetPropertiesResponse::_Internal { public: }; -GetPropertiesResponse::GetPropertiesResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetPropertiesResponse::GetPropertiesResponse(::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.encoder.v1.GetPropertiesResponse) } -GetPropertiesResponse::GetPropertiesResponse( - ::google::protobuf::Arena* arena, const GetPropertiesResponse& from) - : GetPropertiesResponse(arena) { - MergeFrom(from); +GetPropertiesResponse::GetPropertiesResponse(const GetPropertiesResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&ticks_count_supported_, &from.ticks_count_supported_, + static_cast(reinterpret_cast(&angle_degrees_supported_) - + reinterpret_cast(&ticks_count_supported_)) + sizeof(angle_degrees_supported_)); + // @@protoc_insertion_point(copy_constructor:viam.component.encoder.v1.GetPropertiesResponse) } -inline PROTOBUF_NDEBUG_INLINE GetPropertiesResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void GetPropertiesResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, ticks_count_supported_), - 0, - offsetof(Impl_, angle_degrees_supported_) - - offsetof(Impl_, ticks_count_supported_) + - sizeof(Impl_::angle_degrees_supported_)); +inline void GetPropertiesResponse::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&ticks_count_supported_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&angle_degrees_supported_) - + reinterpret_cast(&ticks_count_supported_)) + sizeof(angle_degrees_supported_)); } + GetPropertiesResponse::~GetPropertiesResponse() { // @@protoc_insertion_point(destructor:viam.component.encoder.v1.GetPropertiesResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetPropertiesResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void GetPropertiesResponse::Clear() { +void GetPropertiesResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetPropertiesResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.encoder.v1.GetPropertiesResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&_impl_.ticks_count_supported_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.angle_degrees_supported_) - - reinterpret_cast(&_impl_.ticks_count_supported_)) + sizeof(_impl_.angle_degrees_supported_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetPropertiesResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + ::memset(&ticks_count_supported_, 0, static_cast( + reinterpret_cast(&angle_degrees_supported_) - + reinterpret_cast(&ticks_count_supported_)) + sizeof(angle_degrees_supported_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPropertiesResponse::_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) { + // bool ticks_count_supported = 1 [json_name = "ticksCountSupported"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + ticks_count_supported_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool angle_degrees_supported = 2 [json_name = "angleDegreesSupported"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + angle_degrees_supported_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> GetPropertiesResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetPropertiesResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // bool angle_degrees_supported = 2 [json_name = "angleDegreesSupported"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.angle_degrees_supported_)}}, - // bool ticks_count_supported = 1 [json_name = "ticksCountSupported"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.ticks_count_supported_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bool ticks_count_supported = 1 [json_name = "ticksCountSupported"]; - {PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.ticks_count_supported_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // bool angle_degrees_supported = 2 [json_name = "angleDegreesSupported"]; - {PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.angle_degrees_supported_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* GetPropertiesResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetPropertiesResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.encoder.v1.GetPropertiesResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // bool ticks_count_supported = 1 [json_name = "ticksCountSupported"]; if (this->_internal_ticks_count_supported() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 1, this->_internal_ticks_count_supported(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_ticks_count_supported(), target); } // bool angle_degrees_supported = 2 [json_name = "angleDegreesSupported"]; if (this->_internal_angle_degrees_supported() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 2, this->_internal_angle_degrees_supported(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_angle_degrees_supported(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.encoder.v1.GetPropertiesResponse) return target; } -::size_t GetPropertiesResponse::ByteSizeLong() const { +size_t GetPropertiesResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.encoder.v1.GetPropertiesResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // bool ticks_count_supported = 1 [json_name = "ticksCountSupported"]; if (this->_internal_ticks_count_supported() != 0) { - total_size += 2; + total_size += 1 + 1; } // bool angle_degrees_supported = 2 [json_name = "angleDegreesSupported"]; if (this->_internal_angle_degrees_supported() != 0) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetPropertiesResponse::_class_data_ = { - GetPropertiesResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPropertiesResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetPropertiesResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetPropertiesResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPropertiesResponse::GetClassData() const { return &_class_data_; } + +void GetPropertiesResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetPropertiesResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.encoder.v1.GetPropertiesResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetPropertiesResponse::MergeFrom(const GetPropertiesResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.encoder.v1.GetPropertiesResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_ticks_count_supported() != 0) { - _this->_internal_set_ticks_count_supported(from._internal_ticks_count_supported()); + _internal_set_ticks_count_supported(from._internal_ticks_count_supported()); } if (from._internal_angle_degrees_supported() != 0) { - _this->_internal_set_angle_degrees_supported(from._internal_angle_degrees_supported()); + _internal_set_angle_degrees_supported(from._internal_angle_degrees_supported()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetPropertiesResponse::CopyFrom(const GetPropertiesResponse& from) { @@ -1567,37 +1486,58 @@ void GetPropertiesResponse::CopyFrom(const GetPropertiesResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetPropertiesResponse::IsInitialized() const { +bool GetPropertiesResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetPropertiesResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetPropertiesResponse::InternalSwap(GetPropertiesResponse* PROTOBUF_RESTRICT other) { +void GetPropertiesResponse::InternalSwap(GetPropertiesResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.angle_degrees_supported_) - + sizeof(GetPropertiesResponse::_impl_.angle_degrees_supported_) - - PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.ticks_count_supported_)>( - reinterpret_cast(&_impl_.ticks_count_supported_), - reinterpret_cast(&other->_impl_.ticks_count_supported_)); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, angle_degrees_supported_) + + sizeof(GetPropertiesResponse::angle_degrees_supported_) + - PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, ticks_count_supported_)>( + reinterpret_cast(&ticks_count_supported_), + reinterpret_cast(&other->ticks_count_supported_)); } -::google::protobuf::Metadata GetPropertiesResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetPropertiesResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fencoder_2fv1_2fencoder_2eproto_getter, &descriptor_table_component_2fencoder_2fv1_2fencoder_2eproto_once, file_level_metadata_component_2fencoder_2fv1_2fencoder_2eproto[5]); } + // @@protoc_insertion_point(namespace_scope) } // namespace v1 } // namespace encoder } // namespace component } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::component::encoder::v1::GetPositionRequest* +Arena::CreateMaybeMessage< ::viam::component::encoder::v1::GetPositionRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::encoder::v1::GetPositionRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::encoder::v1::GetPositionResponse* +Arena::CreateMaybeMessage< ::viam::component::encoder::v1::GetPositionResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::encoder::v1::GetPositionResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::encoder::v1::ResetPositionRequest* +Arena::CreateMaybeMessage< ::viam::component::encoder::v1::ResetPositionRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::encoder::v1::ResetPositionRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::encoder::v1::ResetPositionResponse* +Arena::CreateMaybeMessage< ::viam::component::encoder::v1::ResetPositionResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::encoder::v1::ResetPositionResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::encoder::v1::GetPropertiesRequest* +Arena::CreateMaybeMessage< ::viam::component::encoder::v1::GetPropertiesRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::encoder::v1::GetPropertiesRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::encoder::v1::GetPropertiesResponse* +Arena::CreateMaybeMessage< ::viam::component::encoder::v1::GetPropertiesResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::encoder::v1::GetPropertiesResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/component/encoder/v1/encoder.pb.h b/src/viam/api/component/encoder/v1/encoder.pb.h index 7ae8a1f10..738707c65 100644 --- a/src/viam/api/component/encoder/v1/encoder.pb.h +++ b/src/viam/api/component/encoder/v1/encoder.pb.h @@ -1,65 +1,54 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: component/encoder/v1/encoder.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_component_2fencoder_2fv1_2fencoder_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_component_2fencoder_2fv1_2fencoder_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_component_2fencoder_2fv1_2fencoder_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_component_2fencoder_2fv1_2fencoder_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_bases.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/generated_enum_reflection.h" -#include "google/protobuf/unknown_field_set.h" + +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include #include "common/v1/common.pb.h" #include "google/api/annotations.pb.h" -#include "google/protobuf/struct.pb.h" +#include // @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - +#include #define PROTOBUF_INTERNAL_EXPORT_component_2fencoder_2fv1_2fencoder_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_component_2fencoder_2fv1_2fencoder_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_component_2fencoder_2fv1_2fencoder_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_component_2fencoder_2fv1_2fencoder_2eproto; namespace viam { namespace component { namespace encoder { @@ -86,215 +75,69 @@ extern ResetPositionResponseDefaultTypeInternal _ResetPositionResponse_default_i } // namespace encoder } // namespace component } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::component::encoder::v1::GetPositionRequest* Arena::CreateMaybeMessage<::viam::component::encoder::v1::GetPositionRequest>(Arena*); +template<> ::viam::component::encoder::v1::GetPositionResponse* Arena::CreateMaybeMessage<::viam::component::encoder::v1::GetPositionResponse>(Arena*); +template<> ::viam::component::encoder::v1::GetPropertiesRequest* Arena::CreateMaybeMessage<::viam::component::encoder::v1::GetPropertiesRequest>(Arena*); +template<> ::viam::component::encoder::v1::GetPropertiesResponse* Arena::CreateMaybeMessage<::viam::component::encoder::v1::GetPropertiesResponse>(Arena*); +template<> ::viam::component::encoder::v1::ResetPositionRequest* Arena::CreateMaybeMessage<::viam::component::encoder::v1::ResetPositionRequest>(Arena*); +template<> ::viam::component::encoder::v1::ResetPositionResponse* Arena::CreateMaybeMessage<::viam::component::encoder::v1::ResetPositionResponse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace viam { namespace component { namespace encoder { namespace v1 { + enum PositionType : int { POSITION_TYPE_UNSPECIFIED = 0, POSITION_TYPE_TICKS_COUNT = 1, POSITION_TYPE_ANGLE_DEGREES = 2, - PositionType_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - PositionType_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), + PositionType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + PositionType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() }; - bool PositionType_IsValid(int value); -extern const uint32_t PositionType_internal_data_[]; -constexpr PositionType PositionType_MIN = static_cast(0); -constexpr PositionType PositionType_MAX = static_cast(2); -constexpr int PositionType_ARRAYSIZE = 2 + 1; -const ::google::protobuf::EnumDescriptor* -PositionType_descriptor(); -template -const std::string& PositionType_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to PositionType_Name()."); - return PositionType_Name(static_cast(value)); -} -template <> -inline const std::string& PositionType_Name(PositionType value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool PositionType_Parse(absl::string_view name, PositionType* value) { - return ::google::protobuf::internal::ParseNamedEnum( - PositionType_descriptor(), name, value); +constexpr PositionType PositionType_MIN = POSITION_TYPE_UNSPECIFIED; +constexpr PositionType PositionType_MAX = POSITION_TYPE_ANGLE_DEGREES; +constexpr int PositionType_ARRAYSIZE = PositionType_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PositionType_descriptor(); +template +inline const std::string& PositionType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function PositionType_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + PositionType_descriptor(), enum_t_value); +} +inline bool PositionType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PositionType* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + PositionType_descriptor(), name, value); } - // =================================================================== - -// ------------------------------------------------------------------- - -class ResetPositionResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.encoder.v1.ResetPositionResponse) */ { - public: - inline ResetPositionResponse() : ResetPositionResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR ResetPositionResponse(::google::protobuf::internal::ConstantInitialized); - - inline ResetPositionResponse(const ResetPositionResponse& from) - : ResetPositionResponse(nullptr, from) {} - ResetPositionResponse(ResetPositionResponse&& from) noexcept - : ResetPositionResponse() { - *this = ::std::move(from); - } - - inline ResetPositionResponse& operator=(const ResetPositionResponse& from) { - CopyFrom(from); - return *this; - } - inline ResetPositionResponse& operator=(ResetPositionResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ResetPositionResponse& default_instance() { - return *internal_default_instance(); - } - static inline const ResetPositionResponse* internal_default_instance() { - return reinterpret_cast( - &_ResetPositionResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - friend void swap(ResetPositionResponse& a, ResetPositionResponse& b) { - a.Swap(&b); - } - inline void Swap(ResetPositionResponse* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ResetPositionResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ResetPositionResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const ResetPositionResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const ResetPositionResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); - } - public: - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.encoder.v1.ResetPositionResponse"; - } - protected: - explicit ResetPositionResponse(::google::protobuf::Arena* arena); - ResetPositionResponse(::google::protobuf::Arena* arena, const ResetPositionResponse& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:viam.component.encoder.v1.ResetPositionResponse) - private: - class _Internal; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; - friend struct ::TableStruct_component_2fencoder_2fv1_2fencoder_2eproto; -};// ------------------------------------------------------------------- - -class GetPropertiesResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.encoder.v1.GetPropertiesResponse) */ { +class GetPositionRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.encoder.v1.GetPositionRequest) */ { public: - inline GetPropertiesResponse() : GetPropertiesResponse(nullptr) {} - ~GetPropertiesResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetPropertiesResponse(::google::protobuf::internal::ConstantInitialized); + inline GetPositionRequest() : GetPositionRequest(nullptr) {} + ~GetPositionRequest() override; + explicit PROTOBUF_CONSTEXPR GetPositionRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetPropertiesResponse(const GetPropertiesResponse& from) - : GetPropertiesResponse(nullptr, from) {} - GetPropertiesResponse(GetPropertiesResponse&& from) noexcept - : GetPropertiesResponse() { + GetPositionRequest(const GetPositionRequest& from); + GetPositionRequest(GetPositionRequest&& from) noexcept + : GetPositionRequest() { *this = ::std::move(from); } - inline GetPropertiesResponse& operator=(const GetPropertiesResponse& from) { + inline GetPositionRequest& operator=(const GetPositionRequest& from) { CopyFrom(from); return *this; } - inline GetPropertiesResponse& operator=(GetPropertiesResponse&& from) noexcept { + inline GetPositionRequest& operator=(GetPositionRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -304,170 +147,167 @@ class GetPropertiesResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetPropertiesResponse& default_instance() { + static const GetPositionRequest& default_instance() { return *internal_default_instance(); } - static inline const GetPropertiesResponse* internal_default_instance() { - return reinterpret_cast( - &_GetPropertiesResponse_default_instance_); + static inline const GetPositionRequest* internal_default_instance() { + return reinterpret_cast( + &_GetPositionRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 5; + 0; - friend void swap(GetPropertiesResponse& a, GetPropertiesResponse& b) { + friend void swap(GetPositionRequest& a, GetPositionRequest& b) { a.Swap(&b); } - inline void Swap(GetPropertiesResponse* other) { + inline void Swap(GetPositionRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetPropertiesResponse* other) { + void UnsafeArenaSwap(GetPositionRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetPropertiesResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetPropertiesResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetPropertiesResponse& from) { - GetPropertiesResponse::MergeImpl(*this, from); + GetPositionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPositionRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetPositionRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetPropertiesResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetPositionRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.encoder.v1.GetPropertiesResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.encoder.v1.GetPositionRequest"; } protected: - explicit GetPropertiesResponse(::google::protobuf::Arena* arena); - GetPropertiesResponse(::google::protobuf::Arena* arena, const GetPropertiesResponse& from); + explicit GetPositionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kTicksCountSupportedFieldNumber = 1, - kAngleDegreesSupportedFieldNumber = 2, + kNameFieldNumber = 1, + kExtraFieldNumber = 99, + kPositionTypeFieldNumber = 2, }; - // bool ticks_count_supported = 1 [json_name = "ticksCountSupported"]; - void clear_ticks_count_supported() ; - bool ticks_count_supported() const; - void set_ticks_count_supported(bool value); - + // 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: - bool _internal_ticks_count_supported() const; - void _internal_set_ticks_count_supported(bool value); - + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); public: - // bool angle_degrees_supported = 2 [json_name = "angleDegreesSupported"]; - void clear_angle_degrees_supported() ; - bool angle_degrees_supported() const; - void set_angle_degrees_supported(bool value); + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + bool has_extra() const; private: - bool _internal_angle_degrees_supported() const; - void _internal_set_angle_degrees_supported(bool value); + 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(); + // optional .viam.component.encoder.v1.PositionType position_type = 2 [json_name = "positionType"]; + bool has_position_type() const; + private: + bool _internal_has_position_type() const; public: - // @@protoc_insertion_point(class_scope:viam.component.encoder.v1.GetPropertiesResponse) + void clear_position_type(); + ::viam::component::encoder::v1::PositionType position_type() const; + void set_position_type(::viam::component::encoder::v1::PositionType value); + private: + ::viam::component::encoder::v1::PositionType _internal_position_type() const; + void _internal_set_position_type(::viam::component::encoder::v1::PositionType value); + public: + + // @@protoc_insertion_point(class_scope:viam.component.encoder.v1.GetPositionRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - bool ticks_count_supported_; - bool angle_degrees_supported_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + int position_type_; friend struct ::TableStruct_component_2fencoder_2fv1_2fencoder_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class GetPositionResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.encoder.v1.GetPositionResponse) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.encoder.v1.GetPositionResponse) */ { public: inline GetPositionResponse() : GetPositionResponse(nullptr) {} ~GetPositionResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetPositionResponse(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR GetPositionResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetPositionResponse(const GetPositionResponse& from) - : GetPositionResponse(nullptr, from) {} + GetPositionResponse(const GetPositionResponse& from); GetPositionResponse(GetPositionResponse&& from) noexcept : GetPositionResponse() { *this = ::std::move(from); @@ -479,9 +319,9 @@ class GetPositionResponse final : } inline GetPositionResponse& operator=(GetPositionResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -491,22 +331,13 @@ class GetPositionResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const GetPositionResponse& default_instance() { @@ -525,65 +356,63 @@ class GetPositionResponse final : inline void Swap(GetPositionResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(GetPositionResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetPositionResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + GetPositionResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const GetPositionResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetPositionResponse& from) { - GetPositionResponse::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetPositionResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(GetPositionResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "viam.component.encoder.v1.GetPositionResponse"; } protected: - explicit GetPositionResponse(::google::protobuf::Arena* arena); - GetPositionResponse(::google::protobuf::Arena* arena, const GetPositionResponse& from); + explicit GetPositionResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -594,67 +423,45 @@ class GetPositionResponse final : kPositionTypeFieldNumber = 2, }; // float value = 1 [json_name = "value"]; - void clear_value() ; + void clear_value(); float value() const; void set_value(float value); - private: float _internal_value() const; void _internal_set_value(float value); - public: + // .viam.component.encoder.v1.PositionType position_type = 2 [json_name = "positionType"]; - void clear_position_type() ; + void clear_position_type(); ::viam::component::encoder::v1::PositionType position_type() const; void set_position_type(::viam::component::encoder::v1::PositionType value); - private: ::viam::component::encoder::v1::PositionType _internal_position_type() const; void _internal_set_position_type(::viam::component::encoder::v1::PositionType value); - public: + // @@protoc_insertion_point(class_scope:viam.component.encoder.v1.GetPositionResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - float value_; - int position_type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + float value_; + int position_type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fencoder_2fv1_2fencoder_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class ResetPositionRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.encoder.v1.ResetPositionRequest) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.encoder.v1.ResetPositionRequest) */ { public: inline ResetPositionRequest() : ResetPositionRequest(nullptr) {} ~ResetPositionRequest() override; - template - explicit PROTOBUF_CONSTEXPR ResetPositionRequest(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR ResetPositionRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ResetPositionRequest(const ResetPositionRequest& from) - : ResetPositionRequest(nullptr, from) {} + ResetPositionRequest(const ResetPositionRequest& from); ResetPositionRequest(ResetPositionRequest&& from) noexcept : ResetPositionRequest() { *this = ::std::move(from); @@ -666,9 +473,9 @@ class ResetPositionRequest final : } inline ResetPositionRequest& operator=(ResetPositionRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -678,22 +485,13 @@ class ResetPositionRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const ResetPositionRequest& default_instance() { @@ -712,65 +510,63 @@ class ResetPositionRequest final : inline void Swap(ResetPositionRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(ResetPositionRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ResetPositionRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + ResetPositionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const ResetPositionRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ResetPositionRequest& from) { - ResetPositionRequest::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ResetPositionRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(ResetPositionRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "viam.component.encoder.v1.ResetPositionRequest"; } protected: - explicit ResetPositionRequest(::google::protobuf::Arena* arena); - ResetPositionRequest(::google::protobuf::Arena* arena, const ResetPositionRequest& from); + explicit ResetPositionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -781,79 +577,175 @@ class ResetPositionRequest final : kExtraFieldNumber = 99, }; // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + 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; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - + 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.encoder.v1.ResetPositionRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 2, 1, - 59, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + 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_2fencoder_2fv1_2fencoder_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- + +class ResetPositionResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.encoder.v1.ResetPositionResponse) */ { + public: + inline ResetPositionResponse() : ResetPositionResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR ResetPositionResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ResetPositionResponse(const ResetPositionResponse& from); + ResetPositionResponse(ResetPositionResponse&& from) noexcept + : ResetPositionResponse() { + *this = ::std::move(from); + } + + inline ResetPositionResponse& operator=(const ResetPositionResponse& from) { + CopyFrom(from); + return *this; + } + inline ResetPositionResponse& operator=(ResetPositionResponse&& 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 ResetPositionResponse& default_instance() { + return *internal_default_instance(); + } + static inline const ResetPositionResponse* internal_default_instance() { + return reinterpret_cast( + &_ResetPositionResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(ResetPositionResponse& a, ResetPositionResponse& b) { + a.Swap(&b); + } + inline void Swap(ResetPositionResponse* 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(ResetPositionResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ResetPositionResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const ResetPositionResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const ResetPositionResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); + } + public: + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.encoder.v1.ResetPositionResponse"; + } + protected: + explicit ResetPositionResponse(::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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.component.encoder.v1.ResetPositionResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + friend struct ::TableStruct_component_2fencoder_2fv1_2fencoder_2eproto; +}; +// ------------------------------------------------------------------- class GetPropertiesRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.encoder.v1.GetPropertiesRequest) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.encoder.v1.GetPropertiesRequest) */ { public: inline GetPropertiesRequest() : GetPropertiesRequest(nullptr) {} ~GetPropertiesRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetPropertiesRequest(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR GetPropertiesRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetPropertiesRequest(const GetPropertiesRequest& from) - : GetPropertiesRequest(nullptr, from) {} + GetPropertiesRequest(const GetPropertiesRequest& from); GetPropertiesRequest(GetPropertiesRequest&& from) noexcept : GetPropertiesRequest() { *this = ::std::move(from); @@ -865,9 +757,9 @@ class GetPropertiesRequest final : } inline GetPropertiesRequest& operator=(GetPropertiesRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -877,22 +769,13 @@ class GetPropertiesRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const GetPropertiesRequest& default_instance() { @@ -911,65 +794,63 @@ class GetPropertiesRequest final : inline void Swap(GetPropertiesRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(GetPropertiesRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetPropertiesRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + GetPropertiesRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const GetPropertiesRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetPropertiesRequest& from) { - GetPropertiesRequest::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetPropertiesRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(GetPropertiesRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "viam.component.encoder.v1.GetPropertiesRequest"; } protected: - explicit GetPropertiesRequest(::google::protobuf::Arena* arena); - GetPropertiesRequest(::google::protobuf::Arena* arena, const GetPropertiesRequest& from); + explicit GetPropertiesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -980,93 +861,73 @@ class GetPropertiesRequest final : kExtraFieldNumber = 99, }; // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + 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; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - + 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.encoder.v1.GetPropertiesRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 2, 1, - 59, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + 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_2fencoder_2fv1_2fencoder_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetPositionRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.encoder.v1.GetPositionRequest) */ { +class GetPropertiesResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.encoder.v1.GetPropertiesResponse) */ { public: - inline GetPositionRequest() : GetPositionRequest(nullptr) {} - ~GetPositionRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetPositionRequest(::google::protobuf::internal::ConstantInitialized); + inline GetPropertiesResponse() : GetPropertiesResponse(nullptr) {} + ~GetPropertiesResponse() override; + explicit PROTOBUF_CONSTEXPR GetPropertiesResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetPositionRequest(const GetPositionRequest& from) - : GetPositionRequest(nullptr, from) {} - GetPositionRequest(GetPositionRequest&& from) noexcept - : GetPositionRequest() { + GetPropertiesResponse(const GetPropertiesResponse& from); + GetPropertiesResponse(GetPropertiesResponse&& from) noexcept + : GetPropertiesResponse() { *this = ::std::move(from); } - inline GetPositionRequest& operator=(const GetPositionRequest& from) { + inline GetPropertiesResponse& operator=(const GetPropertiesResponse& from) { CopyFrom(from); return *this; } - inline GetPositionRequest& operator=(GetPositionRequest&& from) noexcept { + inline GetPropertiesResponse& operator=(GetPropertiesResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1076,370 +937,298 @@ class GetPositionRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetPositionRequest& default_instance() { + static const GetPropertiesResponse& default_instance() { return *internal_default_instance(); } - static inline const GetPositionRequest* internal_default_instance() { - return reinterpret_cast( - &_GetPositionRequest_default_instance_); + static inline const GetPropertiesResponse* internal_default_instance() { + return reinterpret_cast( + &_GetPropertiesResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 0; + 5; - friend void swap(GetPositionRequest& a, GetPositionRequest& b) { + friend void swap(GetPropertiesResponse& a, GetPropertiesResponse& b) { a.Swap(&b); } - inline void Swap(GetPositionRequest* other) { + inline void Swap(GetPropertiesResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetPositionRequest* other) { + void UnsafeArenaSwap(GetPropertiesResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetPositionRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetPositionRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetPositionRequest& from) { - GetPositionRequest::MergeImpl(*this, from); + GetPropertiesResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPropertiesResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetPropertiesResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetPositionRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetPropertiesResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.encoder.v1.GetPositionRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.encoder.v1.GetPropertiesResponse"; } protected: - explicit GetPositionRequest(::google::protobuf::Arena* arena); - GetPositionRequest(::google::protobuf::Arena* arena, const GetPositionRequest& from); + explicit GetPropertiesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kNameFieldNumber = 1, - kExtraFieldNumber = 99, - kPositionTypeFieldNumber = 2, + kTicksCountSupportedFieldNumber = 1, + kAngleDegreesSupportedFieldNumber = 2, }; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + // bool ticks_count_supported = 1 [json_name = "ticksCountSupported"]; + void clear_ticks_count_supported(); + bool ticks_count_supported() const; + void set_ticks_count_supported(bool value); private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - + bool _internal_ticks_count_supported() const; + void _internal_set_ticks_count_supported(bool value); public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); + // bool angle_degrees_supported = 2 [json_name = "angleDegreesSupported"]; + void clear_angle_degrees_supported(); + bool angle_degrees_supported() const; + void set_angle_degrees_supported(bool value); private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - + bool _internal_angle_degrees_supported() const; + void _internal_set_angle_degrees_supported(bool value); public: - // optional .viam.component.encoder.v1.PositionType position_type = 2 [json_name = "positionType"]; - bool has_position_type() const; - void clear_position_type() ; - ::viam::component::encoder::v1::PositionType position_type() const; - void set_position_type(::viam::component::encoder::v1::PositionType value); - - private: - ::viam::component::encoder::v1::PositionType _internal_position_type() const; - void _internal_set_position_type(::viam::component::encoder::v1::PositionType value); - public: - // @@protoc_insertion_point(class_scope:viam.component.encoder.v1.GetPositionRequest) + // @@protoc_insertion_point(class_scope:viam.component.encoder.v1.GetPropertiesResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 1, - 57, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - int position_type_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + bool ticks_count_supported_; + bool angle_degrees_supported_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fencoder_2fv1_2fencoder_2eproto; }; - // =================================================================== - - // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ -// ------------------------------------------------------------------- - // GetPositionRequest // string name = 1 [json_name = "name"]; inline void GetPositionRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& GetPositionRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetPositionRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.encoder.v1.GetPositionRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetPositionRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetPositionRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.encoder.v1.GetPositionRequest.name) } -inline std::string* GetPositionRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetPositionRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.encoder.v1.GetPositionRequest.name) return _s; } inline const std::string& GetPositionRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void GetPositionRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* GetPositionRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* GetPositionRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.encoder.v1.GetPositionRequest.name) - return _impl_.name_.Release(); -} -inline void GetPositionRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void GetPositionRequest::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.encoder.v1.GetPositionRequest.name) } // optional .viam.component.encoder.v1.PositionType position_type = 2 [json_name = "positionType"]; -inline bool GetPositionRequest::has_position_type() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; +inline bool GetPositionRequest::_internal_has_position_type() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; return value; } +inline bool GetPositionRequest::has_position_type() const { + return _internal_has_position_type(); +} inline void GetPositionRequest::clear_position_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.position_type_ = 0; - _impl_._has_bits_[0] &= ~0x00000002u; + position_type_ = 0; + _has_bits_[0] &= ~0x00000001u; +} +inline ::viam::component::encoder::v1::PositionType GetPositionRequest::_internal_position_type() const { + return static_cast< ::viam::component::encoder::v1::PositionType >(position_type_); } inline ::viam::component::encoder::v1::PositionType GetPositionRequest::position_type() const { // @@protoc_insertion_point(field_get:viam.component.encoder.v1.GetPositionRequest.position_type) return _internal_position_type(); } +inline void GetPositionRequest::_internal_set_position_type(::viam::component::encoder::v1::PositionType value) { + _has_bits_[0] |= 0x00000001u; + position_type_ = value; +} inline void GetPositionRequest::set_position_type(::viam::component::encoder::v1::PositionType value) { _internal_set_position_type(value); // @@protoc_insertion_point(field_set:viam.component.encoder.v1.GetPositionRequest.position_type) } -inline ::viam::component::encoder::v1::PositionType GetPositionRequest::_internal_position_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::viam::component::encoder::v1::PositionType>(_impl_.position_type_); -} -inline void GetPositionRequest::_internal_set_position_type(::viam::component::encoder::v1::PositionType value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.position_type_ = value; -} // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetPositionRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool GetPositionRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& GetPositionRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetPositionRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& GetPositionRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetPositionRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.encoder.v1.GetPositionRequest.extra) return _internal_extra(); } -inline void GetPositionRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void GetPositionRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.encoder.v1.GetPositionRequest.extra) } -inline ::google::protobuf::Struct* GetPositionRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPositionRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* GetPositionRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPositionRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.encoder.v1.GetPositionRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* GetPositionRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPositionRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* GetPositionRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPositionRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.encoder.v1.GetPositionRequest.extra) return _msg; } -inline void GetPositionRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetPositionRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.encoder.v1.GetPositionRequest.extra) } @@ -1449,49 +1238,43 @@ inline void GetPositionRequest::set_allocated_extra(::google::protobuf::Struct* // float value = 1 [json_name = "value"]; inline void GetPositionResponse::clear_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.value_ = 0; + value_ = 0; +} +inline float GetPositionResponse::_internal_value() const { + return value_; } inline float GetPositionResponse::value() const { // @@protoc_insertion_point(field_get:viam.component.encoder.v1.GetPositionResponse.value) return _internal_value(); } +inline void GetPositionResponse::_internal_set_value(float value) { + + value_ = value; +} inline void GetPositionResponse::set_value(float value) { _internal_set_value(value); // @@protoc_insertion_point(field_set:viam.component.encoder.v1.GetPositionResponse.value) } -inline float GetPositionResponse::_internal_value() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.value_; -} -inline void GetPositionResponse::_internal_set_value(float value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.value_ = value; -} // .viam.component.encoder.v1.PositionType position_type = 2 [json_name = "positionType"]; inline void GetPositionResponse::clear_position_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.position_type_ = 0; + position_type_ = 0; +} +inline ::viam::component::encoder::v1::PositionType GetPositionResponse::_internal_position_type() const { + return static_cast< ::viam::component::encoder::v1::PositionType >(position_type_); } inline ::viam::component::encoder::v1::PositionType GetPositionResponse::position_type() const { // @@protoc_insertion_point(field_get:viam.component.encoder.v1.GetPositionResponse.position_type) return _internal_position_type(); } +inline void GetPositionResponse::_internal_set_position_type(::viam::component::encoder::v1::PositionType value) { + + position_type_ = value; +} inline void GetPositionResponse::set_position_type(::viam::component::encoder::v1::PositionType value) { _internal_set_position_type(value); // @@protoc_insertion_point(field_set:viam.component.encoder.v1.GetPositionResponse.position_type) } -inline ::viam::component::encoder::v1::PositionType GetPositionResponse::_internal_position_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::viam::component::encoder::v1::PositionType>(_impl_.position_type_); -} -inline void GetPositionResponse::_internal_set_position_type(::viam::component::encoder::v1::PositionType value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.position_type_ = value; -} // ------------------------------------------------------------------- @@ -1499,145 +1282,136 @@ inline void GetPositionResponse::_internal_set_position_type(::viam::component:: // string name = 1 [json_name = "name"]; inline void ResetPositionRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& ResetPositionRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ResetPositionRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.encoder.v1.ResetPositionRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void ResetPositionRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ResetPositionRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.encoder.v1.ResetPositionRequest.name) } -inline std::string* ResetPositionRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ResetPositionRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.encoder.v1.ResetPositionRequest.name) return _s; } inline const std::string& ResetPositionRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void ResetPositionRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* ResetPositionRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* ResetPositionRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.encoder.v1.ResetPositionRequest.name) - return _impl_.name_.Release(); -} -inline void ResetPositionRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void ResetPositionRequest::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.encoder.v1.ResetPositionRequest.name) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool ResetPositionRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool ResetPositionRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& ResetPositionRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& ResetPositionRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& ResetPositionRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& ResetPositionRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.encoder.v1.ResetPositionRequest.extra) return _internal_extra(); } -inline void ResetPositionRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void ResetPositionRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.encoder.v1.ResetPositionRequest.extra) } -inline ::google::protobuf::Struct* ResetPositionRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* ResetPositionRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* ResetPositionRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* ResetPositionRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.encoder.v1.ResetPositionRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* ResetPositionRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* ResetPositionRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* ResetPositionRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* ResetPositionRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.encoder.v1.ResetPositionRequest.extra) return _msg; } -inline void ResetPositionRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ResetPositionRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.encoder.v1.ResetPositionRequest.extra) } @@ -1651,145 +1425,136 @@ inline void ResetPositionRequest::set_allocated_extra(::google::protobuf::Struct // string name = 1 [json_name = "name"]; inline void GetPropertiesRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& GetPropertiesRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetPropertiesRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.encoder.v1.GetPropertiesRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetPropertiesRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetPropertiesRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.encoder.v1.GetPropertiesRequest.name) } -inline std::string* GetPropertiesRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetPropertiesRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.encoder.v1.GetPropertiesRequest.name) return _s; } inline const std::string& GetPropertiesRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void GetPropertiesRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* GetPropertiesRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* GetPropertiesRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.encoder.v1.GetPropertiesRequest.name) - return _impl_.name_.Release(); -} -inline void GetPropertiesRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void GetPropertiesRequest::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.encoder.v1.GetPropertiesRequest.name) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetPropertiesRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool GetPropertiesRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& GetPropertiesRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetPropertiesRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& GetPropertiesRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetPropertiesRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.encoder.v1.GetPropertiesRequest.extra) return _internal_extra(); } -inline void GetPropertiesRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void GetPropertiesRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.encoder.v1.GetPropertiesRequest.extra) } -inline ::google::protobuf::Struct* GetPropertiesRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPropertiesRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* GetPropertiesRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPropertiesRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.encoder.v1.GetPropertiesRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* GetPropertiesRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPropertiesRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* GetPropertiesRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPropertiesRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.encoder.v1.GetPropertiesRequest.extra) return _msg; } -inline void GetPropertiesRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetPropertiesRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.encoder.v1.GetPropertiesRequest.extra) } @@ -1799,76 +1564,76 @@ inline void GetPropertiesRequest::set_allocated_extra(::google::protobuf::Struct // bool ticks_count_supported = 1 [json_name = "ticksCountSupported"]; inline void GetPropertiesResponse::clear_ticks_count_supported() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.ticks_count_supported_ = false; + ticks_count_supported_ = false; +} +inline bool GetPropertiesResponse::_internal_ticks_count_supported() const { + return ticks_count_supported_; } inline bool GetPropertiesResponse::ticks_count_supported() const { // @@protoc_insertion_point(field_get:viam.component.encoder.v1.GetPropertiesResponse.ticks_count_supported) return _internal_ticks_count_supported(); } +inline void GetPropertiesResponse::_internal_set_ticks_count_supported(bool value) { + + ticks_count_supported_ = value; +} inline void GetPropertiesResponse::set_ticks_count_supported(bool value) { _internal_set_ticks_count_supported(value); // @@protoc_insertion_point(field_set:viam.component.encoder.v1.GetPropertiesResponse.ticks_count_supported) } -inline bool GetPropertiesResponse::_internal_ticks_count_supported() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.ticks_count_supported_; -} -inline void GetPropertiesResponse::_internal_set_ticks_count_supported(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.ticks_count_supported_ = value; -} // bool angle_degrees_supported = 2 [json_name = "angleDegreesSupported"]; inline void GetPropertiesResponse::clear_angle_degrees_supported() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.angle_degrees_supported_ = false; + angle_degrees_supported_ = false; +} +inline bool GetPropertiesResponse::_internal_angle_degrees_supported() const { + return angle_degrees_supported_; } inline bool GetPropertiesResponse::angle_degrees_supported() const { // @@protoc_insertion_point(field_get:viam.component.encoder.v1.GetPropertiesResponse.angle_degrees_supported) return _internal_angle_degrees_supported(); } +inline void GetPropertiesResponse::_internal_set_angle_degrees_supported(bool value) { + + angle_degrees_supported_ = value; +} inline void GetPropertiesResponse::set_angle_degrees_supported(bool value) { _internal_set_angle_degrees_supported(value); // @@protoc_insertion_point(field_set:viam.component.encoder.v1.GetPropertiesResponse.angle_degrees_supported) } -inline bool GetPropertiesResponse::_internal_angle_degrees_supported() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.angle_degrees_supported_; -} -inline void GetPropertiesResponse::_internal_set_angle_degrees_supported(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.angle_degrees_supported_ = value; -} #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) + } // namespace v1 } // namespace encoder } // namespace component } // namespace viam +PROTOBUF_NAMESPACE_OPEN -namespace google { -namespace protobuf { - -template <> -struct is_proto_enum<::viam::component::encoder::v1::PositionType> : std::true_type {}; +template <> struct is_proto_enum< ::viam::component::encoder::v1::PositionType> : ::std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor<::viam::component::encoder::v1::PositionType>() { +inline const EnumDescriptor* GetEnumDescriptor< ::viam::component::encoder::v1::PositionType>() { return ::viam::component::encoder::v1::PositionType_descriptor(); } -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_component_2fencoder_2fv1_2fencoder_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_component_2fencoder_2fv1_2fencoder_2eproto diff --git a/src/viam/api/component/gantry/v1/gantry.grpc.pb.cc b/src/viam/api/component/gantry/v1/gantry.grpc.pb.cc index 15b5355d8..b94caa9d6 100644 --- a/src/viam/api/component/gantry/v1/gantry.grpc.pb.cc +++ b/src/viam/api/component/gantry/v1/gantry.grpc.pb.cc @@ -6,19 +6,19 @@ #include "component/gantry/v1/gantry.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace component { namespace gantry { @@ -37,212 +37,252 @@ static const char* GantryService_method_names[] = { std::unique_ptr< GantryService::Stub> GantryService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { (void)options; - std::unique_ptr< GantryService::Stub> stub(new GantryService::Stub(channel, options)); + std::unique_ptr< GantryService::Stub> stub(new GantryService::Stub(channel)); return stub; } -GantryService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) - : channel_(channel), rpcmethod_GetPosition_(GantryService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_MoveToPosition_(GantryService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_Home_(GantryService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetLengths_(GantryService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_Stop_(GantryService_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_IsMoving_(GantryService_method_names[5], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_DoCommand_(GantryService_method_names[6], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetGeometries_(GantryService_method_names[7], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) +GantryService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_GetPosition_(GantryService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_MoveToPosition_(GantryService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_Home_(GantryService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetLengths_(GantryService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_Stop_(GantryService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_IsMoving_(GantryService_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DoCommand_(GantryService_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetGeometries_(GantryService_method_names[7], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status GantryService::Stub::GetPosition(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetPositionRequest& request, ::viam::component::gantry::v1::GetPositionResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::gantry::v1::GetPositionRequest, ::viam::component::gantry::v1::GetPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetPosition_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetPosition_, context, request, response); } -void GantryService::Stub::async::GetPosition(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetPositionRequest* request, ::viam::component::gantry::v1::GetPositionResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::gantry::v1::GetPositionRequest, ::viam::component::gantry::v1::GetPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetPosition_, context, request, response, std::move(f)); +void GantryService::Stub::experimental_async::GetPosition(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetPositionRequest* request, ::viam::component::gantry::v1::GetPositionResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetPosition_, context, request, response, std::move(f)); } -void GantryService::Stub::async::GetPosition(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetPositionRequest* request, ::viam::component::gantry::v1::GetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetPosition_, context, request, response, reactor); +void GantryService::Stub::experimental_async::GetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gantry::v1::GetPositionResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetPosition_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::gantry::v1::GetPositionResponse>* GantryService::Stub::PrepareAsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::gantry::v1::GetPositionResponse, ::viam::component::gantry::v1::GetPositionRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetPosition_, context, request); +void GantryService::Stub::experimental_async::GetPosition(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetPositionRequest* request, ::viam::component::gantry::v1::GetPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetPosition_, context, request, response, reactor); +} + +void GantryService::Stub::experimental_async::GetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gantry::v1::GetPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetPosition_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::gantry::v1::GetPositionResponse>* GantryService::Stub::AsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetPositionRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::gantry::v1::GetPositionResponse>::Create(channel_.get(), cq, rpcmethod_GetPosition_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::gantry::v1::GetPositionResponse>* GantryService::Stub::PrepareAsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::gantry::v1::GetPositionResponse>::Create(channel_.get(), cq, rpcmethod_GetPosition_, context, request, false); } ::grpc::Status GantryService::Stub::MoveToPosition(::grpc::ClientContext* context, const ::viam::component::gantry::v1::MoveToPositionRequest& request, ::viam::component::gantry::v1::MoveToPositionResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::gantry::v1::MoveToPositionRequest, ::viam::component::gantry::v1::MoveToPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_MoveToPosition_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_MoveToPosition_, context, request, response); } -void GantryService::Stub::async::MoveToPosition(::grpc::ClientContext* context, const ::viam::component::gantry::v1::MoveToPositionRequest* request, ::viam::component::gantry::v1::MoveToPositionResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::gantry::v1::MoveToPositionRequest, ::viam::component::gantry::v1::MoveToPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_MoveToPosition_, context, request, response, std::move(f)); +void GantryService::Stub::experimental_async::MoveToPosition(::grpc::ClientContext* context, const ::viam::component::gantry::v1::MoveToPositionRequest* request, ::viam::component::gantry::v1::MoveToPositionResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_MoveToPosition_, context, request, response, std::move(f)); } -void GantryService::Stub::async::MoveToPosition(::grpc::ClientContext* context, const ::viam::component::gantry::v1::MoveToPositionRequest* request, ::viam::component::gantry::v1::MoveToPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_MoveToPosition_, context, request, response, reactor); +void GantryService::Stub::experimental_async::MoveToPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gantry::v1::MoveToPositionResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_MoveToPosition_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::gantry::v1::MoveToPositionResponse>* GantryService::Stub::PrepareAsyncMoveToPositionRaw(::grpc::ClientContext* context, const ::viam::component::gantry::v1::MoveToPositionRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::gantry::v1::MoveToPositionResponse, ::viam::component::gantry::v1::MoveToPositionRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_MoveToPosition_, context, request); +void GantryService::Stub::experimental_async::MoveToPosition(::grpc::ClientContext* context, const ::viam::component::gantry::v1::MoveToPositionRequest* request, ::viam::component::gantry::v1::MoveToPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_MoveToPosition_, context, request, response, reactor); +} + +void GantryService::Stub::experimental_async::MoveToPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gantry::v1::MoveToPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_MoveToPosition_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::gantry::v1::MoveToPositionResponse>* GantryService::Stub::AsyncMoveToPositionRaw(::grpc::ClientContext* context, const ::viam::component::gantry::v1::MoveToPositionRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncMoveToPositionRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::gantry::v1::MoveToPositionResponse>::Create(channel_.get(), cq, rpcmethod_MoveToPosition_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::gantry::v1::MoveToPositionResponse>* GantryService::Stub::PrepareAsyncMoveToPositionRaw(::grpc::ClientContext* context, const ::viam::component::gantry::v1::MoveToPositionRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::gantry::v1::MoveToPositionResponse>::Create(channel_.get(), cq, rpcmethod_MoveToPosition_, context, request, false); } ::grpc::Status GantryService::Stub::Home(::grpc::ClientContext* context, const ::viam::component::gantry::v1::HomeRequest& request, ::viam::component::gantry::v1::HomeResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::gantry::v1::HomeRequest, ::viam::component::gantry::v1::HomeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Home_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_Home_, context, request, response); } -void GantryService::Stub::async::Home(::grpc::ClientContext* context, const ::viam::component::gantry::v1::HomeRequest* request, ::viam::component::gantry::v1::HomeResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::gantry::v1::HomeRequest, ::viam::component::gantry::v1::HomeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Home_, context, request, response, std::move(f)); +void GantryService::Stub::experimental_async::Home(::grpc::ClientContext* context, const ::viam::component::gantry::v1::HomeRequest* request, ::viam::component::gantry::v1::HomeResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Home_, context, request, response, std::move(f)); } -void GantryService::Stub::async::Home(::grpc::ClientContext* context, const ::viam::component::gantry::v1::HomeRequest* request, ::viam::component::gantry::v1::HomeResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Home_, context, request, response, reactor); +void GantryService::Stub::experimental_async::Home(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gantry::v1::HomeResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Home_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::gantry::v1::HomeResponse>* GantryService::Stub::PrepareAsyncHomeRaw(::grpc::ClientContext* context, const ::viam::component::gantry::v1::HomeRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::gantry::v1::HomeResponse, ::viam::component::gantry::v1::HomeRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Home_, context, request); +void GantryService::Stub::experimental_async::Home(::grpc::ClientContext* context, const ::viam::component::gantry::v1::HomeRequest* request, ::viam::component::gantry::v1::HomeResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Home_, context, request, response, reactor); +} + +void GantryService::Stub::experimental_async::Home(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gantry::v1::HomeResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Home_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::gantry::v1::HomeResponse>* GantryService::Stub::AsyncHomeRaw(::grpc::ClientContext* context, const ::viam::component::gantry::v1::HomeRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncHomeRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::gantry::v1::HomeResponse>::Create(channel_.get(), cq, rpcmethod_Home_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::gantry::v1::HomeResponse>* GantryService::Stub::PrepareAsyncHomeRaw(::grpc::ClientContext* context, const ::viam::component::gantry::v1::HomeRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::gantry::v1::HomeResponse>::Create(channel_.get(), cq, rpcmethod_Home_, context, request, false); } ::grpc::Status GantryService::Stub::GetLengths(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetLengthsRequest& request, ::viam::component::gantry::v1::GetLengthsResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::gantry::v1::GetLengthsRequest, ::viam::component::gantry::v1::GetLengthsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetLengths_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetLengths_, context, request, response); } -void GantryService::Stub::async::GetLengths(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetLengthsRequest* request, ::viam::component::gantry::v1::GetLengthsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::gantry::v1::GetLengthsRequest, ::viam::component::gantry::v1::GetLengthsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetLengths_, context, request, response, std::move(f)); +void GantryService::Stub::experimental_async::GetLengths(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetLengthsRequest* request, ::viam::component::gantry::v1::GetLengthsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetLengths_, context, request, response, std::move(f)); } -void GantryService::Stub::async::GetLengths(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetLengthsRequest* request, ::viam::component::gantry::v1::GetLengthsResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetLengths_, context, request, response, reactor); +void GantryService::Stub::experimental_async::GetLengths(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gantry::v1::GetLengthsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetLengths_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::gantry::v1::GetLengthsResponse>* GantryService::Stub::PrepareAsyncGetLengthsRaw(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetLengthsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::gantry::v1::GetLengthsResponse, ::viam::component::gantry::v1::GetLengthsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetLengths_, context, request); +void GantryService::Stub::experimental_async::GetLengths(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetLengthsRequest* request, ::viam::component::gantry::v1::GetLengthsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetLengths_, context, request, response, reactor); +} + +void GantryService::Stub::experimental_async::GetLengths(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gantry::v1::GetLengthsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetLengths_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::gantry::v1::GetLengthsResponse>* GantryService::Stub::AsyncGetLengthsRaw(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetLengthsRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetLengthsRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::gantry::v1::GetLengthsResponse>::Create(channel_.get(), cq, rpcmethod_GetLengths_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::gantry::v1::GetLengthsResponse>* GantryService::Stub::PrepareAsyncGetLengthsRaw(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetLengthsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::gantry::v1::GetLengthsResponse>::Create(channel_.get(), cq, rpcmethod_GetLengths_, context, request, false); } ::grpc::Status GantryService::Stub::Stop(::grpc::ClientContext* context, const ::viam::component::gantry::v1::StopRequest& request, ::viam::component::gantry::v1::StopResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::gantry::v1::StopRequest, ::viam::component::gantry::v1::StopResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Stop_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_Stop_, context, request, response); } -void GantryService::Stub::async::Stop(::grpc::ClientContext* context, const ::viam::component::gantry::v1::StopRequest* request, ::viam::component::gantry::v1::StopResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::gantry::v1::StopRequest, ::viam::component::gantry::v1::StopResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, std::move(f)); +void GantryService::Stub::experimental_async::Stop(::grpc::ClientContext* context, const ::viam::component::gantry::v1::StopRequest* request, ::viam::component::gantry::v1::StopResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, std::move(f)); } -void GantryService::Stub::async::Stop(::grpc::ClientContext* context, const ::viam::component::gantry::v1::StopRequest* request, ::viam::component::gantry::v1::StopResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, reactor); +void GantryService::Stub::experimental_async::Stop(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gantry::v1::StopResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::gantry::v1::StopResponse>* GantryService::Stub::PrepareAsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::gantry::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::gantry::v1::StopResponse, ::viam::component::gantry::v1::StopRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Stop_, context, request); +void GantryService::Stub::experimental_async::Stop(::grpc::ClientContext* context, const ::viam::component::gantry::v1::StopRequest* request, ::viam::component::gantry::v1::StopResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, reactor); +} + +void GantryService::Stub::experimental_async::Stop(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gantry::v1::StopResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::gantry::v1::StopResponse>* GantryService::Stub::AsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::gantry::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncStopRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::gantry::v1::StopResponse>::Create(channel_.get(), cq, rpcmethod_Stop_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::gantry::v1::StopResponse>* GantryService::Stub::PrepareAsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::gantry::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::gantry::v1::StopResponse>::Create(channel_.get(), cq, rpcmethod_Stop_, context, request, false); } ::grpc::Status GantryService::Stub::IsMoving(::grpc::ClientContext* context, const ::viam::component::gantry::v1::IsMovingRequest& request, ::viam::component::gantry::v1::IsMovingResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::gantry::v1::IsMovingRequest, ::viam::component::gantry::v1::IsMovingResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_IsMoving_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_IsMoving_, context, request, response); } -void GantryService::Stub::async::IsMoving(::grpc::ClientContext* context, const ::viam::component::gantry::v1::IsMovingRequest* request, ::viam::component::gantry::v1::IsMovingResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::gantry::v1::IsMovingRequest, ::viam::component::gantry::v1::IsMovingResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_IsMoving_, context, request, response, std::move(f)); +void GantryService::Stub::experimental_async::IsMoving(::grpc::ClientContext* context, const ::viam::component::gantry::v1::IsMovingRequest* request, ::viam::component::gantry::v1::IsMovingResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_IsMoving_, context, request, response, std::move(f)); } -void GantryService::Stub::async::IsMoving(::grpc::ClientContext* context, const ::viam::component::gantry::v1::IsMovingRequest* request, ::viam::component::gantry::v1::IsMovingResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_IsMoving_, context, request, response, reactor); +void GantryService::Stub::experimental_async::IsMoving(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gantry::v1::IsMovingResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_IsMoving_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::gantry::v1::IsMovingResponse>* GantryService::Stub::PrepareAsyncIsMovingRaw(::grpc::ClientContext* context, const ::viam::component::gantry::v1::IsMovingRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::gantry::v1::IsMovingResponse, ::viam::component::gantry::v1::IsMovingRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_IsMoving_, context, request); +void GantryService::Stub::experimental_async::IsMoving(::grpc::ClientContext* context, const ::viam::component::gantry::v1::IsMovingRequest* request, ::viam::component::gantry::v1::IsMovingResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_IsMoving_, context, request, response, reactor); +} + +void GantryService::Stub::experimental_async::IsMoving(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gantry::v1::IsMovingResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_IsMoving_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::gantry::v1::IsMovingResponse>* GantryService::Stub::AsyncIsMovingRaw(::grpc::ClientContext* context, const ::viam::component::gantry::v1::IsMovingRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncIsMovingRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::gantry::v1::IsMovingResponse>::Create(channel_.get(), cq, rpcmethod_IsMoving_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::gantry::v1::IsMovingResponse>* GantryService::Stub::PrepareAsyncIsMovingRaw(::grpc::ClientContext* context, const ::viam::component::gantry::v1::IsMovingRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::gantry::v1::IsMovingResponse>::Create(channel_.get(), cq, rpcmethod_IsMoving_, context, request, false); } ::grpc::Status GantryService::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); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DoCommand_, context, request, response); } -void GantryService::Stub::async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); +void GantryService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); } -void GantryService::Stub::async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); +void GantryService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* GantryService::Stub::PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::common::v1::DoCommandResponse, ::viam::common::v1::DoCommandRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DoCommand_, context, request); +void GantryService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); +} + +void GantryService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* GantryService::Stub::AsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncDoCommandRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::DoCommandResponse>::Create(channel_.get(), cq, rpcmethod_DoCommand_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* GantryService::Stub::PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::DoCommandResponse>::Create(channel_.get(), cq, rpcmethod_DoCommand_, context, request, false); } ::grpc::Status GantryService::Stub::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::viam::common::v1::GetGeometriesResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetGeometries_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetGeometries_, context, request, response); } -void GantryService::Stub::async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, std::move(f)); +void GantryService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, std::move(f)); } -void GantryService::Stub::async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, reactor); +void GantryService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>* GantryService::Stub::PrepareAsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::common::v1::GetGeometriesResponse, ::viam::common::v1::GetGeometriesRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetGeometries_, context, request); +void GantryService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, reactor); +} + +void GantryService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>* GantryService::Stub::AsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetGeometriesRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::GetGeometriesResponse>::Create(channel_.get(), cq, rpcmethod_GetGeometries_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>* GantryService::Stub::PrepareAsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::GetGeometriesResponse>::Create(channel_.get(), cq, rpcmethod_GetGeometries_, context, request, false); } GantryService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( GantryService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< GantryService::Service, ::viam::component::gantry::v1::GetPositionRequest, ::viam::component::gantry::v1::GetPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< GantryService::Service, ::viam::component::gantry::v1::GetPositionRequest, ::viam::component::gantry::v1::GetPositionResponse>( [](GantryService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::gantry::v1::GetPositionRequest* req, ::viam::component::gantry::v1::GetPositionResponse* resp) { return service->GetPosition(ctx, req, resp); @@ -250,9 +290,9 @@ GantryService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( GantryService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< GantryService::Service, ::viam::component::gantry::v1::MoveToPositionRequest, ::viam::component::gantry::v1::MoveToPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< GantryService::Service, ::viam::component::gantry::v1::MoveToPositionRequest, ::viam::component::gantry::v1::MoveToPositionResponse>( [](GantryService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::gantry::v1::MoveToPositionRequest* req, ::viam::component::gantry::v1::MoveToPositionResponse* resp) { return service->MoveToPosition(ctx, req, resp); @@ -260,9 +300,9 @@ GantryService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( GantryService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< GantryService::Service, ::viam::component::gantry::v1::HomeRequest, ::viam::component::gantry::v1::HomeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< GantryService::Service, ::viam::component::gantry::v1::HomeRequest, ::viam::component::gantry::v1::HomeResponse>( [](GantryService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::gantry::v1::HomeRequest* req, ::viam::component::gantry::v1::HomeResponse* resp) { return service->Home(ctx, req, resp); @@ -270,9 +310,9 @@ GantryService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( GantryService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< GantryService::Service, ::viam::component::gantry::v1::GetLengthsRequest, ::viam::component::gantry::v1::GetLengthsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< GantryService::Service, ::viam::component::gantry::v1::GetLengthsRequest, ::viam::component::gantry::v1::GetLengthsResponse>( [](GantryService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::gantry::v1::GetLengthsRequest* req, ::viam::component::gantry::v1::GetLengthsResponse* resp) { return service->GetLengths(ctx, req, resp); @@ -280,9 +320,9 @@ GantryService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( GantryService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< GantryService::Service, ::viam::component::gantry::v1::StopRequest, ::viam::component::gantry::v1::StopResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< GantryService::Service, ::viam::component::gantry::v1::StopRequest, ::viam::component::gantry::v1::StopResponse>( [](GantryService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::gantry::v1::StopRequest* req, ::viam::component::gantry::v1::StopResponse* resp) { return service->Stop(ctx, req, resp); @@ -290,9 +330,9 @@ GantryService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( GantryService_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< GantryService::Service, ::viam::component::gantry::v1::IsMovingRequest, ::viam::component::gantry::v1::IsMovingResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< GantryService::Service, ::viam::component::gantry::v1::IsMovingRequest, ::viam::component::gantry::v1::IsMovingResponse>( [](GantryService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::gantry::v1::IsMovingRequest* req, ::viam::component::gantry::v1::IsMovingResponse* resp) { return service->IsMoving(ctx, req, resp); @@ -300,9 +340,9 @@ GantryService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( GantryService_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< GantryService::Service, ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< GantryService::Service, ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( [](GantryService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::common::v1::DoCommandRequest* req, ::viam::common::v1::DoCommandResponse* resp) { return service->DoCommand(ctx, req, resp); @@ -310,9 +350,9 @@ GantryService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( GantryService_method_names[7], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< GantryService::Service, ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< GantryService::Service, ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( [](GantryService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::common::v1::GetGeometriesRequest* req, ::viam::common::v1::GetGeometriesResponse* resp) { return service->GetGeometries(ctx, req, resp); diff --git a/src/viam/api/component/gantry/v1/gantry.grpc.pb.h b/src/viam/api/component/gantry/v1/gantry.grpc.pb.h index b729a5aca..6969cecb8 100644 --- a/src/viam/api/component/gantry/v1/gantry.grpc.pb.h +++ b/src/viam/api/component/gantry/v1/gantry.grpc.pb.h @@ -7,23 +7,24 @@ #include "component/gantry/v1/gantry.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace component { @@ -103,38 +104,122 @@ class GantryService 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)); } - class async_interface { + class experimental_async_interface { public: - virtual ~async_interface() {} + virtual ~experimental_async_interface() {} // GetPosition gets the current position of a gantry of the underlying robot. virtual void GetPosition(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetPositionRequest* request, ::viam::component::gantry::v1::GetPositionResponse* response, std::function) = 0; + virtual void GetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gantry::v1::GetPositionResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetPosition(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetPositionRequest* request, ::viam::component::gantry::v1::GetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetPosition(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetPositionRequest* request, ::viam::component::gantry::v1::GetPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gantry::v1::GetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gantry::v1::GetPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // MoveToPosition moves a gantry of the underlying robot to the requested position. virtual void MoveToPosition(::grpc::ClientContext* context, const ::viam::component::gantry::v1::MoveToPositionRequest* request, ::viam::component::gantry::v1::MoveToPositionResponse* response, std::function) = 0; + virtual void MoveToPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gantry::v1::MoveToPositionResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void MoveToPosition(::grpc::ClientContext* context, const ::viam::component::gantry::v1::MoveToPositionRequest* request, ::viam::component::gantry::v1::MoveToPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void MoveToPosition(::grpc::ClientContext* context, const ::viam::component::gantry::v1::MoveToPositionRequest* request, ::viam::component::gantry::v1::MoveToPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void MoveToPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gantry::v1::MoveToPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void MoveToPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gantry::v1::MoveToPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Home runs the homing sequence of a gantry and returns true once it's completed. virtual void Home(::grpc::ClientContext* context, const ::viam::component::gantry::v1::HomeRequest* request, ::viam::component::gantry::v1::HomeResponse* response, std::function) = 0; + virtual void Home(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gantry::v1::HomeResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void Home(::grpc::ClientContext* context, const ::viam::component::gantry::v1::HomeRequest* request, ::viam::component::gantry::v1::HomeResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void Home(::grpc::ClientContext* context, const ::viam::component::gantry::v1::HomeRequest* request, ::viam::component::gantry::v1::HomeResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void Home(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gantry::v1::HomeResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void Home(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gantry::v1::HomeResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // GetLengths gets the lengths of a gantry of the underlying robot. virtual void GetLengths(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetLengthsRequest* request, ::viam::component::gantry::v1::GetLengthsResponse* response, std::function) = 0; + virtual void GetLengths(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gantry::v1::GetLengthsResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetLengths(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetLengthsRequest* request, ::viam::component::gantry::v1::GetLengthsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetLengths(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetLengthsRequest* request, ::viam::component::gantry::v1::GetLengthsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetLengths(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gantry::v1::GetLengthsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetLengths(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gantry::v1::GetLengthsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Stop stops a robot's gantry virtual void Stop(::grpc::ClientContext* context, const ::viam::component::gantry::v1::StopRequest* request, ::viam::component::gantry::v1::StopResponse* response, std::function) = 0; + virtual void Stop(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gantry::v1::StopResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void Stop(::grpc::ClientContext* context, const ::viam::component::gantry::v1::StopRequest* request, ::viam::component::gantry::v1::StopResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void Stop(::grpc::ClientContext* context, const ::viam::component::gantry::v1::StopRequest* request, ::viam::component::gantry::v1::StopResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void Stop(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gantry::v1::StopResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void Stop(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gantry::v1::StopResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // IsMoving reports if a component is in motion virtual void IsMoving(::grpc::ClientContext* context, const ::viam::component::gantry::v1::IsMovingRequest* request, ::viam::component::gantry::v1::IsMovingResponse* response, std::function) = 0; + virtual void IsMoving(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gantry::v1::IsMovingResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void IsMoving(::grpc::ClientContext* context, const ::viam::component::gantry::v1::IsMovingRequest* request, ::viam::component::gantry::v1::IsMovingResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void IsMoving(::grpc::ClientContext* context, const ::viam::component::gantry::v1::IsMovingRequest* request, ::viam::component::gantry::v1::IsMovingResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void IsMoving(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gantry::v1::IsMovingResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void IsMoving(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gantry::v1::IsMovingResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // 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 ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // 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 ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif }; - typedef class async_interface experimental_async_interface; - virtual class async_interface* async() { return nullptr; } - class async_interface* experimental_async() { return async(); } - private: + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef class experimental_async_interface async_interface; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + async_interface* async() { return experimental_async(); } + #endif + virtual class experimental_async_interface* experimental_async() { return nullptr; } + private: virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::gantry::v1::GetPositionResponse>* AsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::gantry::v1::GetPositionResponse>* PrepareAsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::gantry::v1::MoveToPositionResponse>* AsyncMoveToPositionRaw(::grpc::ClientContext* context, const ::viam::component::gantry::v1::MoveToPositionRequest& request, ::grpc::CompletionQueue* cq) = 0; @@ -154,7 +239,7 @@ class GantryService final { }; class Stub final : public StubInterface { public: - Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); ::grpc::Status GetPosition(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetPositionRequest& request, ::viam::component::gantry::v1::GetPositionResponse* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::gantry::v1::GetPositionResponse>> AsyncGetPosition(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::gantry::v1::GetPositionResponse>>(AsyncGetPositionRaw(context, request, cq)); @@ -211,36 +296,116 @@ class GantryService 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)); } - class async final : - public StubInterface::async_interface { + class experimental_async final : + public StubInterface::experimental_async_interface { public: void GetPosition(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetPositionRequest* request, ::viam::component::gantry::v1::GetPositionResponse* response, std::function) override; + void GetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gantry::v1::GetPositionResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetPosition(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetPositionRequest* request, ::viam::component::gantry::v1::GetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetPosition(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetPositionRequest* request, ::viam::component::gantry::v1::GetPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gantry::v1::GetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gantry::v1::GetPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void MoveToPosition(::grpc::ClientContext* context, const ::viam::component::gantry::v1::MoveToPositionRequest* request, ::viam::component::gantry::v1::MoveToPositionResponse* response, std::function) override; + void MoveToPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gantry::v1::MoveToPositionResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void MoveToPosition(::grpc::ClientContext* context, const ::viam::component::gantry::v1::MoveToPositionRequest* request, ::viam::component::gantry::v1::MoveToPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void MoveToPosition(::grpc::ClientContext* context, const ::viam::component::gantry::v1::MoveToPositionRequest* request, ::viam::component::gantry::v1::MoveToPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void MoveToPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gantry::v1::MoveToPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void MoveToPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gantry::v1::MoveToPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void Home(::grpc::ClientContext* context, const ::viam::component::gantry::v1::HomeRequest* request, ::viam::component::gantry::v1::HomeResponse* response, std::function) override; + void Home(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gantry::v1::HomeResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void Home(::grpc::ClientContext* context, const ::viam::component::gantry::v1::HomeRequest* request, ::viam::component::gantry::v1::HomeResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void Home(::grpc::ClientContext* context, const ::viam::component::gantry::v1::HomeRequest* request, ::viam::component::gantry::v1::HomeResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void Home(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gantry::v1::HomeResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void Home(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gantry::v1::HomeResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetLengths(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetLengthsRequest* request, ::viam::component::gantry::v1::GetLengthsResponse* response, std::function) override; + void GetLengths(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gantry::v1::GetLengthsResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetLengths(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetLengthsRequest* request, ::viam::component::gantry::v1::GetLengthsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetLengths(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetLengthsRequest* request, ::viam::component::gantry::v1::GetLengthsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetLengths(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gantry::v1::GetLengthsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetLengths(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gantry::v1::GetLengthsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void Stop(::grpc::ClientContext* context, const ::viam::component::gantry::v1::StopRequest* request, ::viam::component::gantry::v1::StopResponse* response, std::function) override; + void Stop(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gantry::v1::StopResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void Stop(::grpc::ClientContext* context, const ::viam::component::gantry::v1::StopRequest* request, ::viam::component::gantry::v1::StopResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void Stop(::grpc::ClientContext* context, const ::viam::component::gantry::v1::StopRequest* request, ::viam::component::gantry::v1::StopResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void Stop(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gantry::v1::StopResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void Stop(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gantry::v1::StopResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void IsMoving(::grpc::ClientContext* context, const ::viam::component::gantry::v1::IsMovingRequest* request, ::viam::component::gantry::v1::IsMovingResponse* response, std::function) override; + void IsMoving(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gantry::v1::IsMovingResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void IsMoving(::grpc::ClientContext* context, const ::viam::component::gantry::v1::IsMovingRequest* request, ::viam::component::gantry::v1::IsMovingResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void IsMoving(::grpc::ClientContext* context, const ::viam::component::gantry::v1::IsMovingRequest* request, ::viam::component::gantry::v1::IsMovingResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void IsMoving(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gantry::v1::IsMovingResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void IsMoving(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gantry::v1::IsMovingResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif 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 ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif 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 ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif private: friend class Stub; - explicit async(Stub* stub): stub_(stub) { } + explicit experimental_async(Stub* stub): stub_(stub) { } Stub* stub() { return stub_; } Stub* stub_; }; - class async* async() override { return &async_stub_; } + class experimental_async_interface* experimental_async() override { return &async_stub_; } private: std::shared_ptr< ::grpc::ChannelInterface> channel_; - class async async_stub_{this}; + class experimental_async async_stub_{this}; ::grpc::ClientAsyncResponseReader< ::viam::component::gantry::v1::GetPositionResponse>* AsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::component::gantry::v1::GetPositionResponse>* PrepareAsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::component::gantry::v1::MoveToPositionResponse>* AsyncMoveToPositionRaw(::grpc::ClientContext* context, const ::viam::component::gantry::v1::MoveToPositionRequest& request, ::grpc::CompletionQueue* cq) override; @@ -451,22 +616,36 @@ class GantryService final { }; typedef WithAsyncMethod_GetPosition > > > > > > > AsyncService; template - class WithCallbackMethod_GetPosition : public BaseClass { + class ExperimentalWithCallbackMethod_GetPosition : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetPosition() { - ::grpc::Service::MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::gantry::v1::GetPositionRequest, ::viam::component::gantry::v1::GetPositionResponse>( + ExperimentalWithCallbackMethod_GetPosition() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::gantry::v1::GetPositionRequest, ::viam::component::gantry::v1::GetPositionResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::gantry::v1::GetPositionRequest* request, ::viam::component::gantry::v1::GetPositionResponse* response) { return this->GetPosition(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::gantry::v1::GetPositionRequest* request, ::viam::component::gantry::v1::GetPositionResponse* response) { return this->GetPosition(context, request, response); }));} void SetMessageAllocatorFor_GetPosition( - ::grpc::MessageAllocator< ::viam::component::gantry::v1::GetPositionRequest, ::viam::component::gantry::v1::GetPositionResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::gantry::v1::GetPositionRequest, ::viam::component::gantry::v1::GetPositionResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::gantry::v1::GetPositionRequest, ::viam::component::gantry::v1::GetPositionResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(0); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::gantry::v1::GetPositionRequest, ::viam::component::gantry::v1::GetPositionResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetPosition() override { + ~ExperimentalWithCallbackMethod_GetPosition() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -474,26 +653,46 @@ class GantryService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetPosition( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::gantry::v1::GetPositionRequest* /*request*/, ::viam::component::gantry::v1::GetPositionResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::gantry::v1::GetPositionRequest* /*request*/, ::viam::component::gantry::v1::GetPositionResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetPosition( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::gantry::v1::GetPositionRequest* /*request*/, ::viam::component::gantry::v1::GetPositionResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_MoveToPosition : public BaseClass { + class ExperimentalWithCallbackMethod_MoveToPosition : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_MoveToPosition() { - ::grpc::Service::MarkMethodCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::gantry::v1::MoveToPositionRequest, ::viam::component::gantry::v1::MoveToPositionResponse>( + ExperimentalWithCallbackMethod_MoveToPosition() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::gantry::v1::MoveToPositionRequest, ::viam::component::gantry::v1::MoveToPositionResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::gantry::v1::MoveToPositionRequest* request, ::viam::component::gantry::v1::MoveToPositionResponse* response) { return this->MoveToPosition(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::gantry::v1::MoveToPositionRequest* request, ::viam::component::gantry::v1::MoveToPositionResponse* response) { return this->MoveToPosition(context, request, response); }));} void SetMessageAllocatorFor_MoveToPosition( - ::grpc::MessageAllocator< ::viam::component::gantry::v1::MoveToPositionRequest, ::viam::component::gantry::v1::MoveToPositionResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::gantry::v1::MoveToPositionRequest, ::viam::component::gantry::v1::MoveToPositionResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::gantry::v1::MoveToPositionRequest, ::viam::component::gantry::v1::MoveToPositionResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(1); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::gantry::v1::MoveToPositionRequest, ::viam::component::gantry::v1::MoveToPositionResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_MoveToPosition() override { + ~ExperimentalWithCallbackMethod_MoveToPosition() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -501,26 +700,46 @@ class GantryService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* MoveToPosition( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::gantry::v1::MoveToPositionRequest* /*request*/, ::viam::component::gantry::v1::MoveToPositionResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::gantry::v1::MoveToPositionRequest* /*request*/, ::viam::component::gantry::v1::MoveToPositionResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* MoveToPosition( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::gantry::v1::MoveToPositionRequest* /*request*/, ::viam::component::gantry::v1::MoveToPositionResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_Home : public BaseClass { + class ExperimentalWithCallbackMethod_Home : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_Home() { - ::grpc::Service::MarkMethodCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::gantry::v1::HomeRequest, ::viam::component::gantry::v1::HomeResponse>( + ExperimentalWithCallbackMethod_Home() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(2, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::gantry::v1::HomeRequest, ::viam::component::gantry::v1::HomeResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::gantry::v1::HomeRequest* request, ::viam::component::gantry::v1::HomeResponse* response) { return this->Home(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::gantry::v1::HomeRequest* request, ::viam::component::gantry::v1::HomeResponse* response) { return this->Home(context, request, response); }));} void SetMessageAllocatorFor_Home( - ::grpc::MessageAllocator< ::viam::component::gantry::v1::HomeRequest, ::viam::component::gantry::v1::HomeResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::gantry::v1::HomeRequest, ::viam::component::gantry::v1::HomeResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::gantry::v1::HomeRequest, ::viam::component::gantry::v1::HomeResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(2); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::gantry::v1::HomeRequest, ::viam::component::gantry::v1::HomeResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_Home() override { + ~ExperimentalWithCallbackMethod_Home() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -528,26 +747,46 @@ class GantryService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* Home( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::gantry::v1::HomeRequest* /*request*/, ::viam::component::gantry::v1::HomeResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::gantry::v1::HomeRequest* /*request*/, ::viam::component::gantry::v1::HomeResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* Home( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::gantry::v1::HomeRequest* /*request*/, ::viam::component::gantry::v1::HomeResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetLengths : public BaseClass { + class ExperimentalWithCallbackMethod_GetLengths : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetLengths() { - ::grpc::Service::MarkMethodCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::gantry::v1::GetLengthsRequest, ::viam::component::gantry::v1::GetLengthsResponse>( + ExperimentalWithCallbackMethod_GetLengths() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(3, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::gantry::v1::GetLengthsRequest, ::viam::component::gantry::v1::GetLengthsResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::gantry::v1::GetLengthsRequest* request, ::viam::component::gantry::v1::GetLengthsResponse* response) { return this->GetLengths(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::gantry::v1::GetLengthsRequest* request, ::viam::component::gantry::v1::GetLengthsResponse* response) { return this->GetLengths(context, request, response); }));} void SetMessageAllocatorFor_GetLengths( - ::grpc::MessageAllocator< ::viam::component::gantry::v1::GetLengthsRequest, ::viam::component::gantry::v1::GetLengthsResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::gantry::v1::GetLengthsRequest, ::viam::component::gantry::v1::GetLengthsResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::gantry::v1::GetLengthsRequest, ::viam::component::gantry::v1::GetLengthsResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(3); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::gantry::v1::GetLengthsRequest, ::viam::component::gantry::v1::GetLengthsResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetLengths() override { + ~ExperimentalWithCallbackMethod_GetLengths() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -555,26 +794,46 @@ class GantryService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetLengths( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::gantry::v1::GetLengthsRequest* /*request*/, ::viam::component::gantry::v1::GetLengthsResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::gantry::v1::GetLengthsRequest* /*request*/, ::viam::component::gantry::v1::GetLengthsResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetLengths( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::gantry::v1::GetLengthsRequest* /*request*/, ::viam::component::gantry::v1::GetLengthsResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_Stop : public BaseClass { + class ExperimentalWithCallbackMethod_Stop : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_Stop() { - ::grpc::Service::MarkMethodCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::gantry::v1::StopRequest, ::viam::component::gantry::v1::StopResponse>( + ExperimentalWithCallbackMethod_Stop() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(4, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::gantry::v1::StopRequest, ::viam::component::gantry::v1::StopResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::gantry::v1::StopRequest* request, ::viam::component::gantry::v1::StopResponse* response) { return this->Stop(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::gantry::v1::StopRequest* request, ::viam::component::gantry::v1::StopResponse* response) { return this->Stop(context, request, response); }));} void SetMessageAllocatorFor_Stop( - ::grpc::MessageAllocator< ::viam::component::gantry::v1::StopRequest, ::viam::component::gantry::v1::StopResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::gantry::v1::StopRequest, ::viam::component::gantry::v1::StopResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::gantry::v1::StopRequest, ::viam::component::gantry::v1::StopResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(4); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::gantry::v1::StopRequest, ::viam::component::gantry::v1::StopResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_Stop() override { + ~ExperimentalWithCallbackMethod_Stop() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -582,26 +841,46 @@ class GantryService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* Stop( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::gantry::v1::StopRequest* /*request*/, ::viam::component::gantry::v1::StopResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::gantry::v1::StopRequest* /*request*/, ::viam::component::gantry::v1::StopResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* Stop( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::gantry::v1::StopRequest* /*request*/, ::viam::component::gantry::v1::StopResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_IsMoving : public BaseClass { + class ExperimentalWithCallbackMethod_IsMoving : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_IsMoving() { - ::grpc::Service::MarkMethodCallback(5, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::gantry::v1::IsMovingRequest, ::viam::component::gantry::v1::IsMovingResponse>( + ExperimentalWithCallbackMethod_IsMoving() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(5, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::gantry::v1::IsMovingRequest, ::viam::component::gantry::v1::IsMovingResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::gantry::v1::IsMovingRequest* request, ::viam::component::gantry::v1::IsMovingResponse* response) { return this->IsMoving(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::gantry::v1::IsMovingRequest* request, ::viam::component::gantry::v1::IsMovingResponse* response) { return this->IsMoving(context, request, response); }));} void SetMessageAllocatorFor_IsMoving( - ::grpc::MessageAllocator< ::viam::component::gantry::v1::IsMovingRequest, ::viam::component::gantry::v1::IsMovingResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::gantry::v1::IsMovingRequest, ::viam::component::gantry::v1::IsMovingResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(5); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::gantry::v1::IsMovingRequest, ::viam::component::gantry::v1::IsMovingResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(5); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::gantry::v1::IsMovingRequest, ::viam::component::gantry::v1::IsMovingResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_IsMoving() override { + ~ExperimentalWithCallbackMethod_IsMoving() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -609,26 +888,46 @@ class GantryService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* IsMoving( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::gantry::v1::IsMovingRequest* /*request*/, ::viam::component::gantry::v1::IsMovingResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::gantry::v1::IsMovingRequest* /*request*/, ::viam::component::gantry::v1::IsMovingResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* IsMoving( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::gantry::v1::IsMovingRequest* /*request*/, ::viam::component::gantry::v1::IsMovingResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_DoCommand : public BaseClass { + class ExperimentalWithCallbackMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_DoCommand() { - ::grpc::Service::MarkMethodCallback(6, - new ::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( + ExperimentalWithCallbackMethod_DoCommand() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(6, + new ::grpc_impl::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); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + 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::experimental::MessageAllocator< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(6); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(6); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_DoCommand() override { + ~ExperimentalWithCallbackMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -636,26 +935,46 @@ class GantryService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DoCommand( - ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DoCommand( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetGeometries : public BaseClass { + class ExperimentalWithCallbackMethod_GetGeometries : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetGeometries() { - ::grpc::Service::MarkMethodCallback(7, - new ::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( + ExperimentalWithCallbackMethod_GetGeometries() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(7, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response) { return this->GetGeometries(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response) { return this->GetGeometries(context, request, response); }));} void SetMessageAllocatorFor_GetGeometries( - ::grpc::MessageAllocator< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(7); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(7); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetGeometries() override { + ~ExperimentalWithCallbackMethod_GetGeometries() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -663,11 +982,20 @@ class GantryService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetGeometries( - ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::GetGeometriesRequest* /*request*/, ::viam::common::v1::GetGeometriesResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::GetGeometriesRequest* /*request*/, ::viam::common::v1::GetGeometriesResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetGeometries( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::common::v1::GetGeometriesRequest* /*request*/, ::viam::common::v1::GetGeometriesResponse* /*response*/) + #endif + { return nullptr; } }; - typedef WithCallbackMethod_GetPosition > > > > > > > CallbackService; - typedef CallbackService ExperimentalCallbackService; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef ExperimentalWithCallbackMethod_GetPosition > > > > > > > CallbackService; + #endif + + typedef ExperimentalWithCallbackMethod_GetPosition > > > > > > > ExperimentalCallbackService; template class WithGenericMethod_GetPosition : public BaseClass { private: @@ -965,17 +1293,27 @@ class GantryService final { } }; template - class WithRawCallbackMethod_GetPosition : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetPosition : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetPosition() { - ::grpc::Service::MarkMethodRawCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetPosition() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetPosition(context, request, response); })); - } - ~WithRawCallbackMethod_GetPosition() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetPosition(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetPosition() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -983,21 +1321,37 @@ class GantryService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetPosition( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetPosition( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_MoveToPosition : public BaseClass { + class ExperimentalWithRawCallbackMethod_MoveToPosition : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_MoveToPosition() { - ::grpc::Service::MarkMethodRawCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_MoveToPosition() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->MoveToPosition(context, request, response); })); - } - ~WithRawCallbackMethod_MoveToPosition() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->MoveToPosition(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_MoveToPosition() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1005,21 +1359,37 @@ class GantryService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* MoveToPosition( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* MoveToPosition( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_Home : public BaseClass { + class ExperimentalWithRawCallbackMethod_Home : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_Home() { - ::grpc::Service::MarkMethodRawCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_Home() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(2, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Home(context, request, response); })); - } - ~WithRawCallbackMethod_Home() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Home(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_Home() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1027,21 +1397,37 @@ class GantryService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* Home( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* Home( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetLengths : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetLengths : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetLengths() { - ::grpc::Service::MarkMethodRawCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetLengths() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(3, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetLengths(context, request, response); })); - } - ~WithRawCallbackMethod_GetLengths() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetLengths(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetLengths() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1049,21 +1435,37 @@ class GantryService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetLengths( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetLengths( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_Stop : public BaseClass { + class ExperimentalWithRawCallbackMethod_Stop : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_Stop() { - ::grpc::Service::MarkMethodRawCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_Stop() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(4, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Stop(context, request, response); })); - } - ~WithRawCallbackMethod_Stop() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Stop(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_Stop() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1071,21 +1473,37 @@ class GantryService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* Stop( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* Stop( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_IsMoving : public BaseClass { + class ExperimentalWithRawCallbackMethod_IsMoving : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_IsMoving() { - ::grpc::Service::MarkMethodRawCallback(5, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_IsMoving() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(5, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->IsMoving(context, request, response); })); - } - ~WithRawCallbackMethod_IsMoving() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->IsMoving(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_IsMoving() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1093,21 +1511,37 @@ class GantryService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* IsMoving( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* IsMoving( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_DoCommand : public BaseClass { + class ExperimentalWithRawCallbackMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_DoCommand() { - ::grpc::Service::MarkMethodRawCallback(6, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_DoCommand() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(6, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DoCommand(context, request, response); })); - } - ~WithRawCallbackMethod_DoCommand() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DoCommand(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1115,21 +1549,37 @@ class GantryService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DoCommand( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DoCommand( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetGeometries : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetGeometries : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetGeometries() { - ::grpc::Service::MarkMethodRawCallback(7, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetGeometries() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(7, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetGeometries(context, request, response); })); - } - ~WithRawCallbackMethod_GetGeometries() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetGeometries(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetGeometries() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1137,8 +1587,14 @@ class GantryService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetGeometries( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetGeometries( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template class WithStreamedUnaryMethod_GetPosition : public BaseClass { @@ -1149,8 +1605,8 @@ class GantryService final { ::grpc::Service::MarkMethodStreamed(0, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::gantry::v1::GetPositionRequest, ::viam::component::gantry::v1::GetPositionResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::gantry::v1::GetPositionRequest, ::viam::component::gantry::v1::GetPositionResponse>* streamer) { return this->StreamedGetPosition(context, streamer); @@ -1176,8 +1632,8 @@ class GantryService final { ::grpc::Service::MarkMethodStreamed(1, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::gantry::v1::MoveToPositionRequest, ::viam::component::gantry::v1::MoveToPositionResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::gantry::v1::MoveToPositionRequest, ::viam::component::gantry::v1::MoveToPositionResponse>* streamer) { return this->StreamedMoveToPosition(context, streamer); @@ -1203,8 +1659,8 @@ class GantryService final { ::grpc::Service::MarkMethodStreamed(2, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::gantry::v1::HomeRequest, ::viam::component::gantry::v1::HomeResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::gantry::v1::HomeRequest, ::viam::component::gantry::v1::HomeResponse>* streamer) { return this->StreamedHome(context, streamer); @@ -1230,8 +1686,8 @@ class GantryService final { ::grpc::Service::MarkMethodStreamed(3, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::gantry::v1::GetLengthsRequest, ::viam::component::gantry::v1::GetLengthsResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::gantry::v1::GetLengthsRequest, ::viam::component::gantry::v1::GetLengthsResponse>* streamer) { return this->StreamedGetLengths(context, streamer); @@ -1257,8 +1713,8 @@ class GantryService final { ::grpc::Service::MarkMethodStreamed(4, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::gantry::v1::StopRequest, ::viam::component::gantry::v1::StopResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::gantry::v1::StopRequest, ::viam::component::gantry::v1::StopResponse>* streamer) { return this->StreamedStop(context, streamer); @@ -1284,8 +1740,8 @@ class GantryService final { ::grpc::Service::MarkMethodStreamed(5, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::gantry::v1::IsMovingRequest, ::viam::component::gantry::v1::IsMovingResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::gantry::v1::IsMovingRequest, ::viam::component::gantry::v1::IsMovingResponse>* streamer) { return this->StreamedIsMoving(context, streamer); @@ -1311,8 +1767,8 @@ class GantryService final { ::grpc::Service::MarkMethodStreamed(6, new ::grpc::internal::StreamedUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* streamer) { return this->StreamedDoCommand(context, streamer); @@ -1338,8 +1794,8 @@ class GantryService final { ::grpc::Service::MarkMethodStreamed(7, new ::grpc::internal::StreamedUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>* streamer) { return this->StreamedGetGeometries(context, streamer); diff --git a/src/viam/api/component/gantry/v1/gantry.pb.cc b/src/viam/api/component/gantry/v1/gantry.pb.cc index 3e4aa835c..93d2c6326 100644 --- a/src/viam/api/component/gantry/v1/gantry.pb.cc +++ b/src/viam/api/component/gantry/v1/gantry.pb.cc @@ -4,790 +4,628 @@ #include "component/gantry/v1/gantry.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace viam { namespace component { namespace gantry { namespace v1 { - template -PROTOBUF_CONSTEXPR StopResponse::StopResponse(::_pbi::ConstantInitialized) {} -struct StopResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR StopResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StopResponseDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR GetPositionRequest::GetPositionRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} +struct GetPositionRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPositionRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPositionRequestDefaultTypeInternal() {} union { - StopResponse _instance; + GetPositionRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopResponseDefaultTypeInternal _StopResponse_default_instance_; - -inline constexpr Status::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : positions_mm_{}, - lengths_mm_{}, - is_moving_{false}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR Status::Status(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct StatusDefaultTypeInternal { - PROTOBUF_CONSTEXPR StatusDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StatusDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPositionRequestDefaultTypeInternal _GetPositionRequest_default_instance_; +PROTOBUF_CONSTEXPR GetPositionResponse::GetPositionResponse( + ::_pbi::ConstantInitialized) + : positions_mm_(){} +struct GetPositionResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPositionResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPositionResponseDefaultTypeInternal() {} union { - Status _instance; + GetPositionResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StatusDefaultTypeInternal _Status_default_instance_; - template -PROTOBUF_CONSTEXPR MoveToPositionResponse::MoveToPositionResponse(::_pbi::ConstantInitialized) {} -struct MoveToPositionResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR MoveToPositionResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~MoveToPositionResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPositionResponseDefaultTypeInternal _GetPositionResponse_default_instance_; +PROTOBUF_CONSTEXPR MoveToPositionRequest::MoveToPositionRequest( + ::_pbi::ConstantInitialized) + : positions_mm_() + , speeds_mm_per_sec_() + , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} +struct MoveToPositionRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR MoveToPositionRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~MoveToPositionRequestDefaultTypeInternal() {} union { - MoveToPositionResponse _instance; + MoveToPositionRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveToPositionResponseDefaultTypeInternal _MoveToPositionResponse_default_instance_; - -inline constexpr IsMovingResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : is_moving_{false}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR IsMovingResponse::IsMovingResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct IsMovingResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR IsMovingResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~IsMovingResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveToPositionRequestDefaultTypeInternal _MoveToPositionRequest_default_instance_; +PROTOBUF_CONSTEXPR MoveToPositionResponse::MoveToPositionResponse( + ::_pbi::ConstantInitialized){} +struct MoveToPositionResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR MoveToPositionResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~MoveToPositionResponseDefaultTypeInternal() {} union { - IsMovingResponse _instance; + MoveToPositionResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IsMovingResponseDefaultTypeInternal _IsMovingResponse_default_instance_; - -inline constexpr IsMovingRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR IsMovingRequest::IsMovingRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct IsMovingRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR IsMovingRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~IsMovingRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveToPositionResponseDefaultTypeInternal _MoveToPositionResponse_default_instance_; +PROTOBUF_CONSTEXPR HomeRequest::HomeRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} +struct HomeRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR HomeRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~HomeRequestDefaultTypeInternal() {} union { - IsMovingRequest _instance; + HomeRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IsMovingRequestDefaultTypeInternal _IsMovingRequest_default_instance_; - -inline constexpr HomeResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : homed_{false}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR HomeResponse::HomeResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HomeRequestDefaultTypeInternal _HomeRequest_default_instance_; +PROTOBUF_CONSTEXPR HomeResponse::HomeResponse( + ::_pbi::ConstantInitialized) + : homed_(false){} struct HomeResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR HomeResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR HomeResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~HomeResponseDefaultTypeInternal() {} union { HomeResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HomeResponseDefaultTypeInternal _HomeResponse_default_instance_; - -inline constexpr GetPositionResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : positions_mm_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetPositionResponse::GetPositionResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetPositionResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetPositionResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetPositionResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HomeResponseDefaultTypeInternal _HomeResponse_default_instance_; +PROTOBUF_CONSTEXPR GetLengthsRequest::GetLengthsRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} +struct GetLengthsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetLengthsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetLengthsRequestDefaultTypeInternal() {} union { - GetPositionResponse _instance; + GetLengthsRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPositionResponseDefaultTypeInternal _GetPositionResponse_default_instance_; - -inline constexpr GetLengthsResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : lengths_mm_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetLengthsResponse::GetLengthsResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetLengthsRequestDefaultTypeInternal _GetLengthsRequest_default_instance_; +PROTOBUF_CONSTEXPR GetLengthsResponse::GetLengthsResponse( + ::_pbi::ConstantInitialized) + : lengths_mm_(){} struct GetLengthsResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetLengthsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GetLengthsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~GetLengthsResponseDefaultTypeInternal() {} union { GetLengthsResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetLengthsResponseDefaultTypeInternal _GetLengthsResponse_default_instance_; - -inline constexpr StopRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR StopRequest::StopRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetLengthsResponseDefaultTypeInternal _GetLengthsResponse_default_instance_; +PROTOBUF_CONSTEXPR StopRequest::StopRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} struct StopRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR StopRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR StopRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~StopRequestDefaultTypeInternal() {} union { StopRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopRequestDefaultTypeInternal _StopRequest_default_instance_; - -inline constexpr MoveToPositionRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - positions_mm_{}, - speeds_mm_per_sec_{}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR MoveToPositionRequest::MoveToPositionRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct MoveToPositionRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR MoveToPositionRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~MoveToPositionRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopRequestDefaultTypeInternal _StopRequest_default_instance_; +PROTOBUF_CONSTEXPR StopResponse::StopResponse( + ::_pbi::ConstantInitialized){} +struct StopResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR StopResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StopResponseDefaultTypeInternal() {} union { - MoveToPositionRequest _instance; + StopResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveToPositionRequestDefaultTypeInternal _MoveToPositionRequest_default_instance_; - -inline constexpr HomeRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR HomeRequest::HomeRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct HomeRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR HomeRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~HomeRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopResponseDefaultTypeInternal _StopResponse_default_instance_; +PROTOBUF_CONSTEXPR Status::Status( + ::_pbi::ConstantInitialized) + : positions_mm_() + , lengths_mm_() + , is_moving_(false){} +struct StatusDefaultTypeInternal { + PROTOBUF_CONSTEXPR StatusDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StatusDefaultTypeInternal() {} union { - HomeRequest _instance; + Status _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HomeRequestDefaultTypeInternal _HomeRequest_default_instance_; - -inline constexpr GetPositionRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetPositionRequest::GetPositionRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetPositionRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetPositionRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetPositionRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StatusDefaultTypeInternal _Status_default_instance_; +PROTOBUF_CONSTEXPR IsMovingRequest::IsMovingRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct IsMovingRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR IsMovingRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~IsMovingRequestDefaultTypeInternal() {} union { - GetPositionRequest _instance; + IsMovingRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPositionRequestDefaultTypeInternal _GetPositionRequest_default_instance_; - -inline constexpr GetLengthsRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetLengthsRequest::GetLengthsRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetLengthsRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetLengthsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetLengthsRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IsMovingRequestDefaultTypeInternal _IsMovingRequest_default_instance_; +PROTOBUF_CONSTEXPR IsMovingResponse::IsMovingResponse( + ::_pbi::ConstantInitialized) + : is_moving_(false){} +struct IsMovingResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR IsMovingResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~IsMovingResponseDefaultTypeInternal() {} union { - GetLengthsRequest _instance; + IsMovingResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetLengthsRequestDefaultTypeInternal _GetLengthsRequest_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IsMovingResponseDefaultTypeInternal _IsMovingResponse_default_instance_; } // namespace v1 } // namespace gantry } // namespace component } // namespace viam static ::_pb::Metadata file_level_metadata_component_2fgantry_2fv1_2fgantry_2eproto[13]; -static constexpr const ::_pb::EnumDescriptor** - file_level_enum_descriptors_component_2fgantry_2fv1_2fgantry_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_component_2fgantry_2fv1_2fgantry_2eproto = nullptr; -const ::uint32_t TableStruct_component_2fgantry_2fv1_2fgantry_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::GetPositionRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::GetPositionRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::GetPositionRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::GetPositionRequest, _impl_.extra_), - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::GetPositionResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::GetPositionResponse, _impl_.positions_mm_), - PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::MoveToPositionRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::MoveToPositionRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::MoveToPositionRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::MoveToPositionRequest, _impl_.positions_mm_), - PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::MoveToPositionRequest, _impl_.speeds_mm_per_sec_), - PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::MoveToPositionRequest, _impl_.extra_), - ~0u, - ~0u, - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::MoveToPositionResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::HomeRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::HomeRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::HomeRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::HomeRequest, _impl_.extra_), - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::HomeResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::HomeResponse, _impl_.homed_), - PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::GetLengthsRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::GetLengthsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::GetLengthsRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::GetLengthsRequest, _impl_.extra_), - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::GetLengthsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::GetLengthsResponse, _impl_.lengths_mm_), - PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::StopRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::StopRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::StopRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::StopRequest, _impl_.extra_), - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::StopResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::Status, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::Status, _impl_.positions_mm_), - PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::Status, _impl_.lengths_mm_), - PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::Status, _impl_.is_moving_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::IsMovingRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::IsMovingRequest, _impl_.name_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::IsMovingResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::IsMovingResponse, _impl_.is_moving_), +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_component_2fgantry_2fv1_2fgantry_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_component_2fgantry_2fv1_2fgantry_2eproto = nullptr; + +const uint32_t TableStruct_component_2fgantry_2fv1_2fgantry_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::GetPositionRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::GetPositionRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::GetPositionRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::GetPositionResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::GetPositionResponse, positions_mm_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::MoveToPositionRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::MoveToPositionRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::MoveToPositionRequest, positions_mm_), + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::MoveToPositionRequest, speeds_mm_per_sec_), + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::MoveToPositionRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::MoveToPositionResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::HomeRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::HomeRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::HomeRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::HomeResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::HomeResponse, homed_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::GetLengthsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::GetLengthsRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::GetLengthsRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::GetLengthsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::GetLengthsResponse, lengths_mm_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::StopRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::StopRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::StopRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::StopResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::Status, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::Status, positions_mm_), + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::Status, lengths_mm_), + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::Status, is_moving_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::IsMovingRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::IsMovingRequest, name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::IsMovingResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::gantry::v1::IsMovingResponse, is_moving_), }; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, 10, -1, sizeof(::viam::component::gantry::v1::GetPositionRequest)}, - {12, -1, -1, sizeof(::viam::component::gantry::v1::GetPositionResponse)}, - {21, 33, -1, sizeof(::viam::component::gantry::v1::MoveToPositionRequest)}, - {37, -1, -1, sizeof(::viam::component::gantry::v1::MoveToPositionResponse)}, - {45, 55, -1, sizeof(::viam::component::gantry::v1::HomeRequest)}, - {57, -1, -1, sizeof(::viam::component::gantry::v1::HomeResponse)}, - {66, 76, -1, sizeof(::viam::component::gantry::v1::GetLengthsRequest)}, - {78, -1, -1, sizeof(::viam::component::gantry::v1::GetLengthsResponse)}, - {87, 97, -1, sizeof(::viam::component::gantry::v1::StopRequest)}, - {99, -1, -1, sizeof(::viam::component::gantry::v1::StopResponse)}, - {107, -1, -1, sizeof(::viam::component::gantry::v1::Status)}, - {118, -1, -1, sizeof(::viam::component::gantry::v1::IsMovingRequest)}, - {127, -1, -1, sizeof(::viam::component::gantry::v1::IsMovingResponse)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::component::gantry::v1::GetPositionRequest)}, + { 8, -1, -1, sizeof(::viam::component::gantry::v1::GetPositionResponse)}, + { 15, -1, -1, sizeof(::viam::component::gantry::v1::MoveToPositionRequest)}, + { 25, -1, -1, sizeof(::viam::component::gantry::v1::MoveToPositionResponse)}, + { 31, -1, -1, sizeof(::viam::component::gantry::v1::HomeRequest)}, + { 39, -1, -1, sizeof(::viam::component::gantry::v1::HomeResponse)}, + { 46, -1, -1, sizeof(::viam::component::gantry::v1::GetLengthsRequest)}, + { 54, -1, -1, sizeof(::viam::component::gantry::v1::GetLengthsResponse)}, + { 61, -1, -1, sizeof(::viam::component::gantry::v1::StopRequest)}, + { 69, -1, -1, sizeof(::viam::component::gantry::v1::StopResponse)}, + { 75, -1, -1, sizeof(::viam::component::gantry::v1::Status)}, + { 84, -1, -1, sizeof(::viam::component::gantry::v1::IsMovingRequest)}, + { 91, -1, -1, sizeof(::viam::component::gantry::v1::IsMovingResponse)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::viam::component::gantry::v1::_GetPositionRequest_default_instance_._instance, - &::viam::component::gantry::v1::_GetPositionResponse_default_instance_._instance, - &::viam::component::gantry::v1::_MoveToPositionRequest_default_instance_._instance, - &::viam::component::gantry::v1::_MoveToPositionResponse_default_instance_._instance, - &::viam::component::gantry::v1::_HomeRequest_default_instance_._instance, - &::viam::component::gantry::v1::_HomeResponse_default_instance_._instance, - &::viam::component::gantry::v1::_GetLengthsRequest_default_instance_._instance, - &::viam::component::gantry::v1::_GetLengthsResponse_default_instance_._instance, - &::viam::component::gantry::v1::_StopRequest_default_instance_._instance, - &::viam::component::gantry::v1::_StopResponse_default_instance_._instance, - &::viam::component::gantry::v1::_Status_default_instance_._instance, - &::viam::component::gantry::v1::_IsMovingRequest_default_instance_._instance, - &::viam::component::gantry::v1::_IsMovingResponse_default_instance_._instance, -}; -const char descriptor_table_protodef_component_2fgantry_2fv1_2fgantry_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n component/gantry/v1/gantry.proto\022\030viam" - ".component.gantry.v1\032\026common/v1/common.p" - "roto\032\034google/api/annotations.proto\032\034goog" - "le/protobuf/struct.proto\"W\n\022GetPositionR" - "equest\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005extra\030c \001(" - "\0132\027.google.protobuf.StructR\005extra\"8\n\023Get" - "PositionResponse\022!\n\014positions_mm\030\001 \003(\001R\013" - "positionsMm\"\250\001\n\025MoveToPositionRequest\022\022\n" - "\004name\030\001 \001(\tR\004name\022!\n\014positions_mm\030\002 \003(\001R" - "\013positionsMm\022)\n\021speeds_mm_per_sec\030\003 \003(\001R" - "\016speedsMmPerSec\022-\n\005extra\030c \001(\0132\027.google." - "protobuf.StructR\005extra\"\030\n\026MoveToPosition" - "Response\"P\n\013HomeRequest\022\022\n\004name\030\001 \001(\tR\004n" - "ame\022-\n\005extra\030c \001(\0132\027.google.protobuf.Str" - "uctR\005extra\"$\n\014HomeResponse\022\024\n\005homed\030\001 \001(" - "\010R\005homed\"V\n\021GetLengthsRequest\022\022\n\004name\030\001 " - "\001(\tR\004name\022-\n\005extra\030c \001(\0132\027.google.protob" - "uf.StructR\005extra\"3\n\022GetLengthsResponse\022\035" - "\n\nlengths_mm\030\001 \003(\001R\tlengthsMm\"P\n\013StopReq" - "uest\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005extra\030c \001(\0132" - "\027.google.protobuf.StructR\005extra\"\016\n\014StopR" - "esponse\"g\n\006Status\022!\n\014positions_mm\030\001 \003(\001R" - "\013positionsMm\022\035\n\nlengths_mm\030\002 \003(\001R\tlength" - "sMm\022\033\n\tis_moving\030\003 \001(\010R\010isMoving\"%\n\017IsMo" - "vingRequest\022\022\n\004name\030\001 \001(\tR\004name\"/\n\020IsMov" - "ingResponse\022\033\n\tis_moving\030\001 \001(\010R\010isMoving" - "2\332\t\n\rGantryService\022\241\001\n\013GetPosition\022,.via" - "m.component.gantry.v1.GetPositionRequest" - "\032-.viam.component.gantry.v1.GetPositionR" - "esponse\"5\202\323\344\223\002/\022-/viam/api/v1/component/" - "gantry/{name}/position\022\256\001\n\016MoveToPositio" - "n\022/.viam.component.gantry.v1.MoveToPosit" - "ionRequest\0320.viam.component.gantry.v1.Mo" - "veToPositionResponse\"9\240\222)\001\202\323\344\223\002/\032-/viam/" - "api/v1/component/gantry/{name}/position\022" - "\210\001\n\004Home\022%.viam.component.gantry.v1.Home" - "Request\032&.viam.component.gantry.v1.HomeR" - "esponse\"1\202\323\344\223\002+\032)/viam/api/v1/component/" - "gantry/{name}/home\022\235\001\n\nGetLengths\022+.viam" - ".component.gantry.v1.GetLengthsRequest\032," - ".viam.component.gantry.v1.GetLengthsResp" - "onse\"4\202\323\344\223\002.\022,/viam/api/v1/component/gan" - "try/{name}/lengths\022\210\001\n\004Stop\022%.viam.compo" - "nent.gantry.v1.StopRequest\032&.viam.compon" - "ent.gantry.v1.StopResponse\"1\202\323\344\223\002+\")/via" - "m/api/v1/component/gantry/{name}/stop\022\231\001" - "\n\010IsMoving\022).viam.component.gantry.v1.Is" - "MovingRequest\032*.viam.component.gantry.v1" - ".IsMovingResponse\"6\202\323\344\223\0020\022./viam/api/v1/" - "component/gantry/{name}/is_moving\022\211\001\n\tDo" - "Command\022 .viam.common.v1.DoCommandReques" - "t\032!.viam.common.v1.DoCommandResponse\"7\202\323" - "\344\223\0021\"//viam/api/v1/component/gantry/{nam" - "e}/do_command\022\225\001\n\rGetGeometries\022$.viam.c" - "ommon.v1.GetGeometriesRequest\032%.viam.com" - "mon.v1.GetGeometriesResponse\"7\202\323\344\223\0021\022//v" - "iam/api/v1/component/gantry/{name}/geome" - "triesB\323\001\n\034com.viam.component.gantry.v1B\013" - "GantryProtoP\001Z#go.viam.com/api/component" - "/gantry/v1\242\002\003VCG\252\002\030Viam.Component.Gantry" - ".V1\312\002\030Viam\\Component\\Gantry\\V1\342\002$Viam\\Co" - "mponent\\Gantry\\V1\\GPBMetadata\352\002\033Viam::Co" - "mponent::Gantry::V1b\006proto3" + &::viam::component::gantry::v1::_GetPositionRequest_default_instance_._instance, + &::viam::component::gantry::v1::_GetPositionResponse_default_instance_._instance, + &::viam::component::gantry::v1::_MoveToPositionRequest_default_instance_._instance, + &::viam::component::gantry::v1::_MoveToPositionResponse_default_instance_._instance, + &::viam::component::gantry::v1::_HomeRequest_default_instance_._instance, + &::viam::component::gantry::v1::_HomeResponse_default_instance_._instance, + &::viam::component::gantry::v1::_GetLengthsRequest_default_instance_._instance, + &::viam::component::gantry::v1::_GetLengthsResponse_default_instance_._instance, + &::viam::component::gantry::v1::_StopRequest_default_instance_._instance, + &::viam::component::gantry::v1::_StopResponse_default_instance_._instance, + &::viam::component::gantry::v1::_Status_default_instance_._instance, + &::viam::component::gantry::v1::_IsMovingRequest_default_instance_._instance, + &::viam::component::gantry::v1::_IsMovingResponse_default_instance_._instance, }; -static const ::_pbi::DescriptorTable* const descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_deps[3] = - { - &::descriptor_table_common_2fv1_2fcommon_2eproto, - &::descriptor_table_google_2fapi_2fannotations_2eproto, - &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, + +const char descriptor_table_protodef_component_2fgantry_2fv1_2fgantry_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n component/gantry/v1/gantry.proto\022\030viam" + ".component.gantry.v1\032\026common/v1/common.p" + "roto\032\034google/api/annotations.proto\032\034goog" + "le/protobuf/struct.proto\"W\n\022GetPositionR" + "equest\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005extra\030c \001(" + "\0132\027.google.protobuf.StructR\005extra\"8\n\023Get" + "PositionResponse\022!\n\014positions_mm\030\001 \003(\001R\013" + "positionsMm\"\250\001\n\025MoveToPositionRequest\022\022\n" + "\004name\030\001 \001(\tR\004name\022!\n\014positions_mm\030\002 \003(\001R" + "\013positionsMm\022)\n\021speeds_mm_per_sec\030\003 \003(\001R" + "\016speedsMmPerSec\022-\n\005extra\030c \001(\0132\027.google." + "protobuf.StructR\005extra\"\030\n\026MoveToPosition" + "Response\"P\n\013HomeRequest\022\022\n\004name\030\001 \001(\tR\004n" + "ame\022-\n\005extra\030c \001(\0132\027.google.protobuf.Str" + "uctR\005extra\"$\n\014HomeResponse\022\024\n\005homed\030\001 \001(" + "\010R\005homed\"V\n\021GetLengthsRequest\022\022\n\004name\030\001 " + "\001(\tR\004name\022-\n\005extra\030c \001(\0132\027.google.protob" + "uf.StructR\005extra\"3\n\022GetLengthsResponse\022\035" + "\n\nlengths_mm\030\001 \003(\001R\tlengthsMm\"P\n\013StopReq" + "uest\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005extra\030c \001(\0132" + "\027.google.protobuf.StructR\005extra\"\016\n\014StopR" + "esponse\"g\n\006Status\022!\n\014positions_mm\030\001 \003(\001R" + "\013positionsMm\022\035\n\nlengths_mm\030\002 \003(\001R\tlength" + "sMm\022\033\n\tis_moving\030\003 \001(\010R\010isMoving\"%\n\017IsMo" + "vingRequest\022\022\n\004name\030\001 \001(\tR\004name\"/\n\020IsMov" + "ingResponse\022\033\n\tis_moving\030\001 \001(\010R\010isMoving" + "2\332\t\n\rGantryService\022\241\001\n\013GetPosition\022,.via" + "m.component.gantry.v1.GetPositionRequest" + "\032-.viam.component.gantry.v1.GetPositionR" + "esponse\"5\202\323\344\223\002/\022-/viam/api/v1/component/" + "gantry/{name}/position\022\256\001\n\016MoveToPositio" + "n\022/.viam.component.gantry.v1.MoveToPosit" + "ionRequest\0320.viam.component.gantry.v1.Mo" + "veToPositionResponse\"9\240\222)\001\202\323\344\223\002/\032-/viam/" + "api/v1/component/gantry/{name}/position\022" + "\210\001\n\004Home\022%.viam.component.gantry.v1.Home" + "Request\032&.viam.component.gantry.v1.HomeR" + "esponse\"1\202\323\344\223\002+\032)/viam/api/v1/component/" + "gantry/{name}/home\022\235\001\n\nGetLengths\022+.viam" + ".component.gantry.v1.GetLengthsRequest\032," + ".viam.component.gantry.v1.GetLengthsResp" + "onse\"4\202\323\344\223\002.\022,/viam/api/v1/component/gan" + "try/{name}/lengths\022\210\001\n\004Stop\022%.viam.compo" + "nent.gantry.v1.StopRequest\032&.viam.compon" + "ent.gantry.v1.StopResponse\"1\202\323\344\223\002+\")/via" + "m/api/v1/component/gantry/{name}/stop\022\231\001" + "\n\010IsMoving\022).viam.component.gantry.v1.Is" + "MovingRequest\032*.viam.component.gantry.v1" + ".IsMovingResponse\"6\202\323\344\223\0020\022./viam/api/v1/" + "component/gantry/{name}/is_moving\022\211\001\n\tDo" + "Command\022 .viam.common.v1.DoCommandReques" + "t\032!.viam.common.v1.DoCommandResponse\"7\202\323" + "\344\223\0021\"//viam/api/v1/component/gantry/{nam" + "e}/do_command\022\225\001\n\rGetGeometries\022$.viam.c" + "ommon.v1.GetGeometriesRequest\032%.viam.com" + "mon.v1.GetGeometriesResponse\"7\202\323\344\223\0021\022//v" + "iam/api/v1/component/gantry/{name}/geome" + "triesBC\n\034com.viam.component.gantry.v1Z#g" + "o.viam.com/api/component/gantry/v1b\006prot" + "o3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_deps[3] = { + &::descriptor_table_common_2fv1_2fcommon_2eproto, + &::descriptor_table_google_2fapi_2fannotations_2eproto, + &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, }; -static ::absl::once_flag descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_once; +static ::_pbi::once_flag descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto = { - false, - false, - 2507, - descriptor_table_protodef_component_2fgantry_2fv1_2fgantry_2eproto, + false, false, 2362, descriptor_table_protodef_component_2fgantry_2fv1_2fgantry_2eproto, "component/gantry/v1/gantry.proto", - &descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_once, - descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_deps, - 3, - 13, - schemas, - file_default_instances, - TableStruct_component_2fgantry_2fv1_2fgantry_2eproto::offsets, - file_level_metadata_component_2fgantry_2fv1_2fgantry_2eproto, - file_level_enum_descriptors_component_2fgantry_2fv1_2fgantry_2eproto, + &descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_once, descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_deps, 3, 13, + schemas, file_default_instances, TableStruct_component_2fgantry_2fv1_2fgantry_2eproto::offsets, + file_level_metadata_component_2fgantry_2fv1_2fgantry_2eproto, file_level_enum_descriptors_component_2fgantry_2fv1_2fgantry_2eproto, file_level_service_descriptors_component_2fgantry_2fv1_2fgantry_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_getter() { return &descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_component_2fgantry_2fv1_2fgantry_2eproto(&descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_component_2fgantry_2fv1_2fgantry_2eproto(&descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto); namespace viam { namespace component { namespace gantry { namespace v1 { + // =================================================================== class GetPositionRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetPositionRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const GetPositionRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetPositionRequest* msg); }; -const ::google::protobuf::Struct& GetPositionRequest::_Internal::extra(const GetPositionRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetPositionRequest::_Internal::extra(const GetPositionRequest* msg) { + return *msg->extra_; } void GetPositionRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -GetPositionRequest::GetPositionRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetPositionRequest::GetPositionRequest(::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.gantry.v1.GetPositionRequest) } -inline PROTOBUF_NDEBUG_INLINE GetPositionRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -GetPositionRequest::GetPositionRequest( - ::google::protobuf::Arena* arena, - const GetPositionRequest& from) - : ::google::protobuf::Message(arena) { - GetPositionRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +GetPositionRequest::GetPositionRequest(const GetPositionRequest& 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.gantry.v1.GetPositionRequest) } -inline PROTOBUF_NDEBUG_INLINE GetPositionRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} -inline void GetPositionRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void GetPositionRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + GetPositionRequest::~GetPositionRequest() { // @@protoc_insertion_point(destructor:viam.component.gantry.v1.GetPositionRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetPositionRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void GetPositionRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetPositionRequest::Clear() { +void GetPositionRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.gantry.v1.GetPositionRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetPositionRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPositionRequest::_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.gantry.v1.GetPositionRequest.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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 2, 1, 56, 7> GetPositionRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetPositionRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetPositionRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetPositionRequest, _impl_.name_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(GetPositionRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 1, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(GetPositionRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(GetPositionRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\53\4\0\0\0\0\0\0" - "viam.component.gantry.v1.GetPositionRequest" - "name" - }}, -}; - -::uint8_t* GetPositionRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetPositionRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.gantry.v1.GetPositionRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.gantry.v1.GetPositionRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.gantry.v1.GetPositionRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.gantry.v1.GetPositionRequest) return target; } -::size_t GetPositionRequest::ByteSizeLong() const { +size_t GetPositionRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.gantry.v1.GetPositionRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetPositionRequest::_class_data_ = { - GetPositionRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPositionRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetPositionRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetPositionRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPositionRequest::GetClassData() const { return &_class_data_; } + +void GetPositionRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetPositionRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.gantry.v1.GetPositionRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetPositionRequest::MergeFrom(const GetPositionRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.gantry.v1.GetPositionRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetPositionRequest::CopyFrom(const GetPositionRequest& from) { @@ -797,130 +635,123 @@ void GetPositionRequest::CopyFrom(const GetPositionRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetPositionRequest::IsInitialized() const { +bool GetPositionRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetPositionRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetPositionRequest::InternalSwap(GetPositionRequest* PROTOBUF_RESTRICT other) { +void GetPositionRequest::InternalSwap(GetPositionRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.extra_, other->_impl_.extra_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(extra_, other->extra_); } -::google::protobuf::Metadata GetPositionRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetPositionRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_getter, &descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_once, file_level_metadata_component_2fgantry_2fv1_2fgantry_2eproto[0]); } + // =================================================================== class GetPositionResponse::_Internal { public: }; -GetPositionResponse::GetPositionResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetPositionResponse::GetPositionResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + positions_mm_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.component.gantry.v1.GetPositionResponse) } -inline PROTOBUF_NDEBUG_INLINE GetPositionResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : positions_mm_{visibility, arena, from.positions_mm_}, - _cached_size_{0} {} - -GetPositionResponse::GetPositionResponse( - ::google::protobuf::Arena* arena, - const GetPositionResponse& from) - : ::google::protobuf::Message(arena) { - GetPositionResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetPositionResponse::GetPositionResponse(const GetPositionResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + positions_mm_(from.positions_mm_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.component.gantry.v1.GetPositionResponse) } -inline PROTOBUF_NDEBUG_INLINE GetPositionResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : positions_mm_{visibility, arena}, - _cached_size_{0} {} -inline void GetPositionResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetPositionResponse::SharedCtor() { } + GetPositionResponse::~GetPositionResponse() { // @@protoc_insertion_point(destructor:viam.component.gantry.v1.GetPositionResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetPositionResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void GetPositionResponse::Clear() { +void GetPositionResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetPositionResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.gantry.v1.GetPositionResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.positions_mm_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetPositionResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + positions_mm_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPositionResponse::_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) { + // repeated double positions_mm = 1 [json_name = "positionsMm"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedDoubleParser(_internal_mutable_positions_mm(), ptr, ctx); + CHK_(ptr); + } else if (static_cast(tag) == 9) { + _internal_add_positions_mm(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); + ptr += sizeof(double); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> GetPositionResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetPositionResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated double positions_mm = 1 [json_name = "positionsMm"]; - {::_pbi::TcParser::FastF64P1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetPositionResponse, _impl_.positions_mm_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated double positions_mm = 1 [json_name = "positionsMm"]; - {PROTOBUF_FIELD_OFFSET(GetPositionResponse, _impl_.positions_mm_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* GetPositionResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetPositionResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.gantry.v1.GetPositionResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated double positions_mm = 1 [json_name = "positionsMm"]; if (this->_internal_positions_mm_size() > 0) { @@ -928,55 +759,56 @@ ::uint8_t* GetPositionResponse::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.gantry.v1.GetPositionResponse) return target; } -::size_t GetPositionResponse::ByteSizeLong() const { +size_t GetPositionResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.gantry.v1.GetPositionResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated double positions_mm = 1 [json_name = "positionsMm"]; { - std::size_t data_size = std::size_t{8} * - ::_pbi::FromIntSize(this->_internal_positions_mm_size()) - ; - std::size_t tag_size = data_size == 0 - ? 0 - : 1 + ::_pbi::WireFormatLite::Int32Size( - static_cast(data_size)) - ; - total_size += tag_size + data_size; - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData GetPositionResponse::_class_data_ = { - GetPositionResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor + unsigned int count = static_cast(this->_internal_positions_mm_size()); + size_t data_size = 8UL * count; + if (data_size > 0) { + total_size += 1 + + ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); + } + total_size += data_size; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPositionResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetPositionResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetPositionResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPositionResponse::GetClassData() const { return &_class_data_; } + +void GetPositionResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetPositionResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.gantry.v1.GetPositionResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetPositionResponse::MergeFrom(const GetPositionResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.gantry.v1.GetPositionResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_positions_mm()->MergeFrom(from._internal_positions_mm()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + positions_mm_.MergeFrom(from.positions_mm_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetPositionResponse::CopyFrom(const GetPositionResponse& from) { @@ -986,189 +818,194 @@ void GetPositionResponse::CopyFrom(const GetPositionResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetPositionResponse::IsInitialized() const { +bool GetPositionResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetPositionResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetPositionResponse::InternalSwap(GetPositionResponse* PROTOBUF_RESTRICT other) { +void GetPositionResponse::InternalSwap(GetPositionResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.positions_mm_.InternalSwap(&other->_impl_.positions_mm_); + positions_mm_.InternalSwap(&other->positions_mm_); } -::google::protobuf::Metadata GetPositionResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetPositionResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_getter, &descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_once, file_level_metadata_component_2fgantry_2fv1_2fgantry_2eproto[1]); } + // =================================================================== class MoveToPositionRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(MoveToPositionRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const MoveToPositionRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const MoveToPositionRequest* msg); }; -const ::google::protobuf::Struct& MoveToPositionRequest::_Internal::extra(const MoveToPositionRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +MoveToPositionRequest::_Internal::extra(const MoveToPositionRequest* msg) { + return *msg->extra_; } void MoveToPositionRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -MoveToPositionRequest::MoveToPositionRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +MoveToPositionRequest::MoveToPositionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + positions_mm_(arena), + speeds_mm_per_sec_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.component.gantry.v1.MoveToPositionRequest) } -inline PROTOBUF_NDEBUG_INLINE MoveToPositionRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - positions_mm_{visibility, arena, from.positions_mm_}, - speeds_mm_per_sec_{visibility, arena, from.speeds_mm_per_sec_}, - name_(arena, from.name_) {} - -MoveToPositionRequest::MoveToPositionRequest( - ::google::protobuf::Arena* arena, - const MoveToPositionRequest& from) - : ::google::protobuf::Message(arena) { - MoveToPositionRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +MoveToPositionRequest::MoveToPositionRequest(const MoveToPositionRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + positions_mm_(from.positions_mm_), + speeds_mm_per_sec_(from.speeds_mm_per_sec_) { + _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.gantry.v1.MoveToPositionRequest) } -inline PROTOBUF_NDEBUG_INLINE MoveToPositionRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - positions_mm_{visibility, arena}, - speeds_mm_per_sec_{visibility, arena}, - name_(arena) {} -inline void MoveToPositionRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void MoveToPositionRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + MoveToPositionRequest::~MoveToPositionRequest() { // @@protoc_insertion_point(destructor:viam.component.gantry.v1.MoveToPositionRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void MoveToPositionRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; } -PROTOBUF_NOINLINE void MoveToPositionRequest::Clear() { +void MoveToPositionRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void MoveToPositionRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.gantry.v1.MoveToPositionRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.positions_mm_.Clear(); - _impl_.speeds_mm_per_sec_.Clear(); - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* MoveToPositionRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + positions_mm_.Clear(); + speeds_mm_per_sec_.Clear(); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* MoveToPositionRequest::_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.gantry.v1.MoveToPositionRequest.name")); + } else + goto handle_unusual; + continue; + // repeated double positions_mm = 2 [json_name = "positionsMm"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedDoubleParser(_internal_mutable_positions_mm(), ptr, ctx); + CHK_(ptr); + } else if (static_cast(tag) == 17) { + _internal_add_positions_mm(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // repeated double speeds_mm_per_sec = 3 [json_name = "speedsMmPerSec"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedDoubleParser(_internal_mutable_speeds_mm_per_sec(), ptr, ctx); + CHK_(ptr); + } else if (static_cast(tag) == 25) { + _internal_add_speeds_mm_per_sec(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); + ptr += sizeof(double); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 1, 59, 7> MoveToPositionRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(MoveToPositionRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_MoveToPositionRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(MoveToPositionRequest, _impl_.name_)}}, - // repeated double positions_mm = 2 [json_name = "positionsMm"]; - {::_pbi::TcParser::FastF64P1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(MoveToPositionRequest, _impl_.positions_mm_)}}, - // repeated double speeds_mm_per_sec = 3 [json_name = "speedsMmPerSec"]; - {::_pbi::TcParser::FastF64P1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(MoveToPositionRequest, _impl_.speeds_mm_per_sec_)}}, - }}, {{ - 99, 0, 1, - 65534, 3, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(MoveToPositionRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated double positions_mm = 2 [json_name = "positionsMm"]; - {PROTOBUF_FIELD_OFFSET(MoveToPositionRequest, _impl_.positions_mm_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)}, - // repeated double speeds_mm_per_sec = 3 [json_name = "speedsMmPerSec"]; - {PROTOBUF_FIELD_OFFSET(MoveToPositionRequest, _impl_.speeds_mm_per_sec_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(MoveToPositionRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\56\4\0\0\0\0\0\0" - "viam.component.gantry.v1.MoveToPositionRequest" - "name" - }}, -}; - -::uint8_t* MoveToPositionRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* MoveToPositionRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.gantry.v1.MoveToPositionRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.gantry.v1.MoveToPositionRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.gantry.v1.MoveToPositionRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // repeated double positions_mm = 2 [json_name = "positionsMm"]; @@ -1181,97 +1018,96 @@ ::uint8_t* MoveToPositionRequest::_InternalSerialize( target = stream->WriteFixedPacked(3, _internal_speeds_mm_per_sec(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.gantry.v1.MoveToPositionRequest) return target; } -::size_t MoveToPositionRequest::ByteSizeLong() const { +size_t MoveToPositionRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.gantry.v1.MoveToPositionRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated double positions_mm = 2 [json_name = "positionsMm"]; { - std::size_t data_size = std::size_t{8} * - ::_pbi::FromIntSize(this->_internal_positions_mm_size()) - ; - std::size_t tag_size = data_size == 0 - ? 0 - : 1 + ::_pbi::WireFormatLite::Int32Size( - static_cast(data_size)) - ; - total_size += tag_size + data_size; + unsigned int count = static_cast(this->_internal_positions_mm_size()); + size_t data_size = 8UL * count; + if (data_size > 0) { + total_size += 1 + + ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); + } + total_size += data_size; } + // repeated double speeds_mm_per_sec = 3 [json_name = "speedsMmPerSec"]; { - std::size_t data_size = std::size_t{8} * - ::_pbi::FromIntSize(this->_internal_speeds_mm_per_sec_size()) - ; - std::size_t tag_size = data_size == 0 - ? 0 - : 1 + ::_pbi::WireFormatLite::Int32Size( - static_cast(data_size)) - ; - total_size += tag_size + data_size; + unsigned int count = static_cast(this->_internal_speeds_mm_per_sec_size()); + size_t data_size = 8UL * count; + if (data_size > 0) { + total_size += 1 + + ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); + } + total_size += data_size; } + // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData MoveToPositionRequest::_class_data_ = { - MoveToPositionRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveToPositionRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + MoveToPositionRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* MoveToPositionRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MoveToPositionRequest::GetClassData() const { return &_class_data_; } + +void MoveToPositionRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void MoveToPositionRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.gantry.v1.MoveToPositionRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void MoveToPositionRequest::MergeFrom(const MoveToPositionRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.gantry.v1.MoveToPositionRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_positions_mm()->MergeFrom(from._internal_positions_mm()); - _this->_internal_mutable_speeds_mm_per_sec()->MergeFrom(from._internal_speeds_mm_per_sec()); + positions_mm_.MergeFrom(from.positions_mm_); + speeds_mm_per_sec_.MergeFrom(from.speeds_mm_per_sec_); if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MoveToPositionRequest::CopyFrom(const MoveToPositionRequest& from) { @@ -1281,49 +1117,44 @@ void MoveToPositionRequest::CopyFrom(const MoveToPositionRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool MoveToPositionRequest::IsInitialized() const { +bool MoveToPositionRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* MoveToPositionRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void MoveToPositionRequest::InternalSwap(MoveToPositionRequest* PROTOBUF_RESTRICT other) { +void MoveToPositionRequest::InternalSwap(MoveToPositionRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.positions_mm_.InternalSwap(&other->_impl_.positions_mm_); - _impl_.speeds_mm_per_sec_.InternalSwap(&other->_impl_.speeds_mm_per_sec_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.extra_, other->_impl_.extra_); + positions_mm_.InternalSwap(&other->positions_mm_); + speeds_mm_per_sec_.InternalSwap(&other->speeds_mm_per_sec_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(extra_, other->extra_); } -::google::protobuf::Metadata MoveToPositionRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata MoveToPositionRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_getter, &descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_once, file_level_metadata_component_2fgantry_2fv1_2fgantry_2eproto[2]); } + // =================================================================== class MoveToPositionResponse::_Internal { public: }; -MoveToPositionResponse::MoveToPositionResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +MoveToPositionResponse::MoveToPositionResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.component.gantry.v1.MoveToPositionResponse) } -MoveToPositionResponse::MoveToPositionResponse( - ::google::protobuf::Arena* arena, - const MoveToPositionResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - MoveToPositionResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +MoveToPositionResponse::MoveToPositionResponse(const MoveToPositionResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.component.gantry.v1.MoveToPositionResponse) } @@ -1331,233 +1162,236 @@ MoveToPositionResponse::MoveToPositionResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveToPositionResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MoveToPositionResponse::GetClassData() const { return &_class_data_; } + + -::google::protobuf::Metadata MoveToPositionResponse::GetMetadata() const { + +::PROTOBUF_NAMESPACE_ID::Metadata MoveToPositionResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_getter, &descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_once, file_level_metadata_component_2fgantry_2fv1_2fgantry_2eproto[3]); } + // =================================================================== class HomeRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(HomeRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const HomeRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const HomeRequest* msg); }; -const ::google::protobuf::Struct& HomeRequest::_Internal::extra(const HomeRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +HomeRequest::_Internal::extra(const HomeRequest* msg) { + return *msg->extra_; } void HomeRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -HomeRequest::HomeRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +HomeRequest::HomeRequest(::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.gantry.v1.HomeRequest) } -inline PROTOBUF_NDEBUG_INLINE HomeRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -HomeRequest::HomeRequest( - ::google::protobuf::Arena* arena, - const HomeRequest& from) - : ::google::protobuf::Message(arena) { - HomeRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +HomeRequest::HomeRequest(const HomeRequest& 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.gantry.v1.HomeRequest) } -inline PROTOBUF_NDEBUG_INLINE HomeRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} -inline void HomeRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void HomeRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + HomeRequest::~HomeRequest() { // @@protoc_insertion_point(destructor:viam.component.gantry.v1.HomeRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void HomeRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; } -PROTOBUF_NOINLINE void HomeRequest::Clear() { +void HomeRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void HomeRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.gantry.v1.HomeRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* HomeRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* HomeRequest::_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.gantry.v1.HomeRequest.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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 2, 1, 49, 7> HomeRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(HomeRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_HomeRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(HomeRequest, _impl_.name_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(HomeRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 1, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(HomeRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(HomeRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\44\4\0\0\0\0\0\0" - "viam.component.gantry.v1.HomeRequest" - "name" - }}, -}; - -::uint8_t* HomeRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* HomeRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.gantry.v1.HomeRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.gantry.v1.HomeRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.gantry.v1.HomeRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.gantry.v1.HomeRequest) return target; } -::size_t HomeRequest::ByteSizeLong() const { +size_t HomeRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.gantry.v1.HomeRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData HomeRequest::_class_data_ = { - HomeRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData HomeRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + HomeRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* HomeRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*HomeRequest::GetClassData() const { return &_class_data_; } + +void HomeRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void HomeRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.gantry.v1.HomeRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void HomeRequest::MergeFrom(const HomeRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.gantry.v1.HomeRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void HomeRequest::CopyFrom(const HomeRequest& from) { @@ -1567,170 +1401,174 @@ void HomeRequest::CopyFrom(const HomeRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool HomeRequest::IsInitialized() const { +bool HomeRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* HomeRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void HomeRequest::InternalSwap(HomeRequest* PROTOBUF_RESTRICT other) { +void HomeRequest::InternalSwap(HomeRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.extra_, other->_impl_.extra_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(extra_, other->extra_); } -::google::protobuf::Metadata HomeRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata HomeRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_getter, &descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_once, file_level_metadata_component_2fgantry_2fv1_2fgantry_2eproto[4]); } + // =================================================================== class HomeResponse::_Internal { public: }; -HomeResponse::HomeResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +HomeResponse::HomeResponse(::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.gantry.v1.HomeResponse) } -HomeResponse::HomeResponse( - ::google::protobuf::Arena* arena, const HomeResponse& from) - : HomeResponse(arena) { - MergeFrom(from); +HomeResponse::HomeResponse(const HomeResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + homed_ = from.homed_; + // @@protoc_insertion_point(copy_constructor:viam.component.gantry.v1.HomeResponse) } -inline PROTOBUF_NDEBUG_INLINE HomeResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void HomeResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.homed_ = {}; +inline void HomeResponse::SharedCtor() { +homed_ = false; } + HomeResponse::~HomeResponse() { // @@protoc_insertion_point(destructor:viam.component.gantry.v1.HomeResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void HomeResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void HomeResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void HomeResponse::Clear() { +void HomeResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.gantry.v1.HomeResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.homed_ = false; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* HomeResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + homed_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* HomeResponse::_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) { + // bool homed = 1 [json_name = "homed"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + homed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> HomeResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_HomeResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // bool homed = 1 [json_name = "homed"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(HomeResponse, _impl_.homed_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bool homed = 1 [json_name = "homed"]; - {PROTOBUF_FIELD_OFFSET(HomeResponse, _impl_.homed_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* HomeResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* HomeResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.gantry.v1.HomeResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // bool homed = 1 [json_name = "homed"]; if (this->_internal_homed() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 1, this->_internal_homed(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_homed(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.gantry.v1.HomeResponse) return target; } -::size_t HomeResponse::ByteSizeLong() const { +size_t HomeResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.gantry.v1.HomeResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // bool homed = 1 [json_name = "homed"]; if (this->_internal_homed() != 0) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData HomeResponse::_class_data_ = { - HomeResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData HomeResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + HomeResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* HomeResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*HomeResponse::GetClassData() const { return &_class_data_; } + +void HomeResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void HomeResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.gantry.v1.HomeResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void HomeResponse::MergeFrom(const HomeResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.gantry.v1.HomeResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_homed() != 0) { - _this->_internal_set_homed(from._internal_homed()); + _internal_set_homed(from._internal_homed()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void HomeResponse::CopyFrom(const HomeResponse& from) { @@ -1740,242 +1578,234 @@ void HomeResponse::CopyFrom(const HomeResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool HomeResponse::IsInitialized() const { +bool HomeResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* HomeResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void HomeResponse::InternalSwap(HomeResponse* PROTOBUF_RESTRICT other) { +void HomeResponse::InternalSwap(HomeResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.homed_, other->_impl_.homed_); + swap(homed_, other->homed_); } -::google::protobuf::Metadata HomeResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata HomeResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_getter, &descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_once, file_level_metadata_component_2fgantry_2fv1_2fgantry_2eproto[5]); } + // =================================================================== class GetLengthsRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetLengthsRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const GetLengthsRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetLengthsRequest* msg); }; -const ::google::protobuf::Struct& GetLengthsRequest::_Internal::extra(const GetLengthsRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetLengthsRequest::_Internal::extra(const GetLengthsRequest* msg) { + return *msg->extra_; } void GetLengthsRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -GetLengthsRequest::GetLengthsRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetLengthsRequest::GetLengthsRequest(::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.gantry.v1.GetLengthsRequest) } -inline PROTOBUF_NDEBUG_INLINE GetLengthsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -GetLengthsRequest::GetLengthsRequest( - ::google::protobuf::Arena* arena, - const GetLengthsRequest& from) - : ::google::protobuf::Message(arena) { - GetLengthsRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +GetLengthsRequest::GetLengthsRequest(const GetLengthsRequest& 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.gantry.v1.GetLengthsRequest) } -inline PROTOBUF_NDEBUG_INLINE GetLengthsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} -inline void GetLengthsRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void GetLengthsRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + GetLengthsRequest::~GetLengthsRequest() { // @@protoc_insertion_point(destructor:viam.component.gantry.v1.GetLengthsRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetLengthsRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void GetLengthsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetLengthsRequest::Clear() { +void GetLengthsRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.gantry.v1.GetLengthsRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetLengthsRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetLengthsRequest::_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.gantry.v1.GetLengthsRequest.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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 2, 1, 55, 7> GetLengthsRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetLengthsRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetLengthsRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetLengthsRequest, _impl_.name_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(GetLengthsRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 1, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(GetLengthsRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(GetLengthsRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\52\4\0\0\0\0\0\0" - "viam.component.gantry.v1.GetLengthsRequest" - "name" - }}, -}; - -::uint8_t* GetLengthsRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetLengthsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.gantry.v1.GetLengthsRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.gantry.v1.GetLengthsRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.gantry.v1.GetLengthsRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.gantry.v1.GetLengthsRequest) return target; } -::size_t GetLengthsRequest::ByteSizeLong() const { +size_t GetLengthsRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.gantry.v1.GetLengthsRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetLengthsRequest::_class_data_ = { - GetLengthsRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetLengthsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetLengthsRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetLengthsRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetLengthsRequest::GetClassData() const { return &_class_data_; } + +void GetLengthsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetLengthsRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.gantry.v1.GetLengthsRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetLengthsRequest::MergeFrom(const GetLengthsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.gantry.v1.GetLengthsRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetLengthsRequest::CopyFrom(const GetLengthsRequest& from) { @@ -1985,130 +1815,123 @@ void GetLengthsRequest::CopyFrom(const GetLengthsRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetLengthsRequest::IsInitialized() const { +bool GetLengthsRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetLengthsRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetLengthsRequest::InternalSwap(GetLengthsRequest* PROTOBUF_RESTRICT other) { +void GetLengthsRequest::InternalSwap(GetLengthsRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.extra_, other->_impl_.extra_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(extra_, other->extra_); } -::google::protobuf::Metadata GetLengthsRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetLengthsRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_getter, &descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_once, file_level_metadata_component_2fgantry_2fv1_2fgantry_2eproto[6]); } + // =================================================================== class GetLengthsResponse::_Internal { public: }; -GetLengthsResponse::GetLengthsResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetLengthsResponse::GetLengthsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + lengths_mm_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.component.gantry.v1.GetLengthsResponse) } -inline PROTOBUF_NDEBUG_INLINE GetLengthsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : lengths_mm_{visibility, arena, from.lengths_mm_}, - _cached_size_{0} {} - -GetLengthsResponse::GetLengthsResponse( - ::google::protobuf::Arena* arena, - const GetLengthsResponse& from) - : ::google::protobuf::Message(arena) { - GetLengthsResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetLengthsResponse::GetLengthsResponse(const GetLengthsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + lengths_mm_(from.lengths_mm_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.component.gantry.v1.GetLengthsResponse) } -inline PROTOBUF_NDEBUG_INLINE GetLengthsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : lengths_mm_{visibility, arena}, - _cached_size_{0} {} -inline void GetLengthsResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetLengthsResponse::SharedCtor() { } + GetLengthsResponse::~GetLengthsResponse() { // @@protoc_insertion_point(destructor:viam.component.gantry.v1.GetLengthsResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetLengthsResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void GetLengthsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetLengthsResponse::Clear() { +void GetLengthsResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.gantry.v1.GetLengthsResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.lengths_mm_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetLengthsResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + lengths_mm_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetLengthsResponse::_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) { + // repeated double lengths_mm = 1 [json_name = "lengthsMm"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedDoubleParser(_internal_mutable_lengths_mm(), ptr, ctx); + CHK_(ptr); + } else if (static_cast(tag) == 9) { + _internal_add_lengths_mm(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); + ptr += sizeof(double); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> GetLengthsResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetLengthsResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated double lengths_mm = 1 [json_name = "lengthsMm"]; - {::_pbi::TcParser::FastF64P1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetLengthsResponse, _impl_.lengths_mm_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated double lengths_mm = 1 [json_name = "lengthsMm"]; - {PROTOBUF_FIELD_OFFSET(GetLengthsResponse, _impl_.lengths_mm_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* GetLengthsResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetLengthsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.gantry.v1.GetLengthsResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated double lengths_mm = 1 [json_name = "lengthsMm"]; if (this->_internal_lengths_mm_size() > 0) { @@ -2116,55 +1939,56 @@ ::uint8_t* GetLengthsResponse::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.gantry.v1.GetLengthsResponse) return target; } -::size_t GetLengthsResponse::ByteSizeLong() const { +size_t GetLengthsResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.gantry.v1.GetLengthsResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated double lengths_mm = 1 [json_name = "lengthsMm"]; { - std::size_t data_size = std::size_t{8} * - ::_pbi::FromIntSize(this->_internal_lengths_mm_size()) - ; - std::size_t tag_size = data_size == 0 - ? 0 - : 1 + ::_pbi::WireFormatLite::Int32Size( - static_cast(data_size)) - ; - total_size += tag_size + data_size; - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData GetLengthsResponse::_class_data_ = { - GetLengthsResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor + unsigned int count = static_cast(this->_internal_lengths_mm_size()); + size_t data_size = 8UL * count; + if (data_size > 0) { + total_size += 1 + + ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); + } + total_size += data_size; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetLengthsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetLengthsResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetLengthsResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetLengthsResponse::GetClassData() const { return &_class_data_; } + +void GetLengthsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetLengthsResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.gantry.v1.GetLengthsResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetLengthsResponse::MergeFrom(const GetLengthsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.gantry.v1.GetLengthsResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_lengths_mm()->MergeFrom(from._internal_lengths_mm()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + lengths_mm_.MergeFrom(from.lengths_mm_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetLengthsResponse::CopyFrom(const GetLengthsResponse& from) { @@ -2174,242 +1998,234 @@ void GetLengthsResponse::CopyFrom(const GetLengthsResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetLengthsResponse::IsInitialized() const { +bool GetLengthsResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetLengthsResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetLengthsResponse::InternalSwap(GetLengthsResponse* PROTOBUF_RESTRICT other) { +void GetLengthsResponse::InternalSwap(GetLengthsResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.lengths_mm_.InternalSwap(&other->_impl_.lengths_mm_); + lengths_mm_.InternalSwap(&other->lengths_mm_); } -::google::protobuf::Metadata GetLengthsResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetLengthsResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_getter, &descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_once, file_level_metadata_component_2fgantry_2fv1_2fgantry_2eproto[7]); } + // =================================================================== class StopRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(StopRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const StopRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const StopRequest* msg); }; -const ::google::protobuf::Struct& StopRequest::_Internal::extra(const StopRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +StopRequest::_Internal::extra(const StopRequest* msg) { + return *msg->extra_; } void StopRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -StopRequest::StopRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +StopRequest::StopRequest(::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.gantry.v1.StopRequest) } -inline PROTOBUF_NDEBUG_INLINE StopRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -StopRequest::StopRequest( - ::google::protobuf::Arena* arena, - const StopRequest& from) - : ::google::protobuf::Message(arena) { - StopRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +StopRequest::StopRequest(const StopRequest& 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.gantry.v1.StopRequest) } -inline PROTOBUF_NDEBUG_INLINE StopRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} -inline void StopRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void StopRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + StopRequest::~StopRequest() { // @@protoc_insertion_point(destructor:viam.component.gantry.v1.StopRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void StopRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; } -PROTOBUF_NOINLINE void StopRequest::Clear() { +void StopRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void StopRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.gantry.v1.StopRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* StopRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* StopRequest::_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.gantry.v1.StopRequest.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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 2, 1, 49, 7> StopRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(StopRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_StopRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(StopRequest, _impl_.name_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(StopRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 1, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(StopRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(StopRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\44\4\0\0\0\0\0\0" - "viam.component.gantry.v1.StopRequest" - "name" - }}, -}; - -::uint8_t* StopRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* StopRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.gantry.v1.StopRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.gantry.v1.StopRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.gantry.v1.StopRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.gantry.v1.StopRequest) return target; } -::size_t StopRequest::ByteSizeLong() const { +size_t StopRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.gantry.v1.StopRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData StopRequest::_class_data_ = { - StopRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StopRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + StopRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* StopRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StopRequest::GetClassData() const { return &_class_data_; } + +void StopRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void StopRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.gantry.v1.StopRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void StopRequest::MergeFrom(const StopRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.gantry.v1.StopRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void StopRequest::CopyFrom(const StopRequest& from) { @@ -2419,47 +2235,42 @@ void StopRequest::CopyFrom(const StopRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool StopRequest::IsInitialized() const { +bool StopRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* StopRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void StopRequest::InternalSwap(StopRequest* PROTOBUF_RESTRICT other) { +void StopRequest::InternalSwap(StopRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.extra_, other->_impl_.extra_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(extra_, other->extra_); } -::google::protobuf::Metadata StopRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata StopRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_getter, &descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_once, file_level_metadata_component_2fgantry_2fv1_2fgantry_2eproto[8]); } + // =================================================================== class StopResponse::_Internal { public: }; -StopResponse::StopResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +StopResponse::StopResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.component.gantry.v1.StopResponse) } -StopResponse::StopResponse( - ::google::protobuf::Arena* arena, - const StopResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - StopResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +StopResponse::StopResponse(const StopResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.component.gantry.v1.StopResponse) } @@ -2467,136 +2278,144 @@ StopResponse::StopResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StopResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StopResponse::GetClassData() const { return &_class_data_; } + + -::google::protobuf::Metadata StopResponse::GetMetadata() const { + +::PROTOBUF_NAMESPACE_ID::Metadata StopResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_getter, &descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_once, file_level_metadata_component_2fgantry_2fv1_2fgantry_2eproto[9]); } + // =================================================================== class Status::_Internal { public: }; -Status::Status(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Status::Status(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + positions_mm_(arena), + lengths_mm_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.component.gantry.v1.Status) } -inline PROTOBUF_NDEBUG_INLINE Status::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : positions_mm_{visibility, arena, from.positions_mm_}, - lengths_mm_{visibility, arena, from.lengths_mm_}, - _cached_size_{0} {} - -Status::Status( - ::google::protobuf::Arena* arena, - const Status& from) - : ::google::protobuf::Message(arena) { - Status* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.is_moving_ = from._impl_.is_moving_; - +Status::Status(const Status& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + positions_mm_(from.positions_mm_), + lengths_mm_(from.lengths_mm_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + is_moving_ = from.is_moving_; // @@protoc_insertion_point(copy_constructor:viam.component.gantry.v1.Status) } -inline PROTOBUF_NDEBUG_INLINE Status::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : positions_mm_{visibility, arena}, - lengths_mm_{visibility, arena}, - _cached_size_{0} {} -inline void Status::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.is_moving_ = {}; +inline void Status::SharedCtor() { +is_moving_ = false; } + Status::~Status() { // @@protoc_insertion_point(destructor:viam.component.gantry.v1.Status) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Status::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void Status::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void Status::Clear() { +void Status::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.gantry.v1.Status) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.positions_mm_.Clear(); - _impl_.lengths_mm_.Clear(); - _impl_.is_moving_ = false; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Status::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + positions_mm_.Clear(); + lengths_mm_.Clear(); + is_moving_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Status::_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) { + // repeated double positions_mm = 1 [json_name = "positionsMm"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedDoubleParser(_internal_mutable_positions_mm(), ptr, ctx); + CHK_(ptr); + } else if (static_cast(tag) == 9) { + _internal_add_positions_mm(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // repeated double lengths_mm = 2 [json_name = "lengthsMm"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedDoubleParser(_internal_mutable_lengths_mm(), ptr, ctx); + CHK_(ptr); + } else if (static_cast(tag) == 17) { + _internal_add_lengths_mm(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // bool is_moving = 3 [json_name = "isMoving"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + is_moving_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 0, 2> Status::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_Status_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // repeated double positions_mm = 1 [json_name = "positionsMm"]; - {::_pbi::TcParser::FastF64P1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Status, _impl_.positions_mm_)}}, - // repeated double lengths_mm = 2 [json_name = "lengthsMm"]; - {::_pbi::TcParser::FastF64P1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(Status, _impl_.lengths_mm_)}}, - // bool is_moving = 3 [json_name = "isMoving"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(Status, _impl_.is_moving_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated double positions_mm = 1 [json_name = "positionsMm"]; - {PROTOBUF_FIELD_OFFSET(Status, _impl_.positions_mm_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)}, - // repeated double lengths_mm = 2 [json_name = "lengthsMm"]; - {PROTOBUF_FIELD_OFFSET(Status, _impl_.lengths_mm_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)}, - // bool is_moving = 3 [json_name = "isMoving"]; - {PROTOBUF_FIELD_OFFSET(Status, _impl_.is_moving_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* Status::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Status::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.gantry.v1.Status) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated double positions_mm = 1 [json_name = "positionsMm"]; if (this->_internal_positions_mm_size() > 0) { @@ -2611,81 +2430,80 @@ ::uint8_t* Status::_InternalSerialize( // bool is_moving = 3 [json_name = "isMoving"]; if (this->_internal_is_moving() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 3, this->_internal_is_moving(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_is_moving(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.gantry.v1.Status) return target; } -::size_t Status::ByteSizeLong() const { +size_t Status::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.gantry.v1.Status) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated double positions_mm = 1 [json_name = "positionsMm"]; { - std::size_t data_size = std::size_t{8} * - ::_pbi::FromIntSize(this->_internal_positions_mm_size()) - ; - std::size_t tag_size = data_size == 0 - ? 0 - : 1 + ::_pbi::WireFormatLite::Int32Size( - static_cast(data_size)) - ; - total_size += tag_size + data_size; + unsigned int count = static_cast(this->_internal_positions_mm_size()); + size_t data_size = 8UL * count; + if (data_size > 0) { + total_size += 1 + + ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); + } + total_size += data_size; } + // repeated double lengths_mm = 2 [json_name = "lengthsMm"]; { - std::size_t data_size = std::size_t{8} * - ::_pbi::FromIntSize(this->_internal_lengths_mm_size()) - ; - std::size_t tag_size = data_size == 0 - ? 0 - : 1 + ::_pbi::WireFormatLite::Int32Size( - static_cast(data_size)) - ; - total_size += tag_size + data_size; + unsigned int count = static_cast(this->_internal_lengths_mm_size()); + size_t data_size = 8UL * count; + if (data_size > 0) { + total_size += 1 + + ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); + } + total_size += data_size; } + // bool is_moving = 3 [json_name = "isMoving"]; if (this->_internal_is_moving() != 0) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Status::_class_data_ = { - Status::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Status::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Status::MergeImpl }; -const ::google::protobuf::Message::ClassData* Status::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Status::GetClassData() const { return &_class_data_; } + +void Status::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Status::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.gantry.v1.Status) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Status::MergeFrom(const Status& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.gantry.v1.Status) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_positions_mm()->MergeFrom(from._internal_positions_mm()); - _this->_internal_mutable_lengths_mm()->MergeFrom(from._internal_lengths_mm()); + positions_mm_.MergeFrom(from.positions_mm_); + lengths_mm_.MergeFrom(from.lengths_mm_); if (from._internal_is_moving() != 0) { - _this->_internal_set_is_moving(from._internal_is_moving()); + _internal_set_is_moving(from._internal_is_moving()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Status::CopyFrom(const Status& from) { @@ -2695,187 +2513,189 @@ void Status::CopyFrom(const Status& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Status::IsInitialized() const { +bool Status::IsInitialized() const { return true; } -::_pbi::CachedSize* Status::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Status::InternalSwap(Status* PROTOBUF_RESTRICT other) { +void Status::InternalSwap(Status* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.positions_mm_.InternalSwap(&other->_impl_.positions_mm_); - _impl_.lengths_mm_.InternalSwap(&other->_impl_.lengths_mm_); - swap(_impl_.is_moving_, other->_impl_.is_moving_); + positions_mm_.InternalSwap(&other->positions_mm_); + lengths_mm_.InternalSwap(&other->lengths_mm_); + swap(is_moving_, other->is_moving_); } -::google::protobuf::Metadata Status::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Status::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_getter, &descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_once, file_level_metadata_component_2fgantry_2fv1_2fgantry_2eproto[10]); } + // =================================================================== class IsMovingRequest::_Internal { public: }; -IsMovingRequest::IsMovingRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +IsMovingRequest::IsMovingRequest(::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.gantry.v1.IsMovingRequest) } -inline PROTOBUF_NDEBUG_INLINE IsMovingRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : name_(arena, from.name_), - _cached_size_{0} {} - -IsMovingRequest::IsMovingRequest( - ::google::protobuf::Arena* arena, - const IsMovingRequest& from) - : ::google::protobuf::Message(arena) { - IsMovingRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +IsMovingRequest::IsMovingRequest(const IsMovingRequest& 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()); + } // @@protoc_insertion_point(copy_constructor:viam.component.gantry.v1.IsMovingRequest) } -inline PROTOBUF_NDEBUG_INLINE IsMovingRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : name_(arena), - _cached_size_{0} {} -inline void IsMovingRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void IsMovingRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + IsMovingRequest::~IsMovingRequest() { // @@protoc_insertion_point(destructor:viam.component.gantry.v1.IsMovingRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void IsMovingRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); } -PROTOBUF_NOINLINE void IsMovingRequest::Clear() { +void IsMovingRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void IsMovingRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.gantry.v1.IsMovingRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* IsMovingRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* IsMovingRequest::_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.gantry.v1.IsMovingRequest.name")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 53, 2> IsMovingRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_IsMovingRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(IsMovingRequest, _impl_.name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(IsMovingRequest, _impl_.name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\50\4\0\0\0\0\0\0" - "viam.component.gantry.v1.IsMovingRequest" - "name" - }}, -}; - -::uint8_t* IsMovingRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* IsMovingRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.gantry.v1.IsMovingRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.gantry.v1.IsMovingRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.gantry.v1.IsMovingRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.gantry.v1.IsMovingRequest) return target; } -::size_t IsMovingRequest::ByteSizeLong() const { +size_t IsMovingRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.gantry.v1.IsMovingRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData IsMovingRequest::_class_data_ = { - IsMovingRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData IsMovingRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + IsMovingRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* IsMovingRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*IsMovingRequest::GetClassData() const { return &_class_data_; } + +void IsMovingRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void IsMovingRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.gantry.v1.IsMovingRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void IsMovingRequest::MergeFrom(const IsMovingRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.gantry.v1.IsMovingRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void IsMovingRequest::CopyFrom(const IsMovingRequest& from) { @@ -2885,168 +2705,173 @@ void IsMovingRequest::CopyFrom(const IsMovingRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool IsMovingRequest::IsInitialized() const { +bool IsMovingRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* IsMovingRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void IsMovingRequest::InternalSwap(IsMovingRequest* PROTOBUF_RESTRICT other) { +void IsMovingRequest::InternalSwap(IsMovingRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); } -::google::protobuf::Metadata IsMovingRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata IsMovingRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_getter, &descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_once, file_level_metadata_component_2fgantry_2fv1_2fgantry_2eproto[11]); } + // =================================================================== class IsMovingResponse::_Internal { public: }; -IsMovingResponse::IsMovingResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +IsMovingResponse::IsMovingResponse(::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.gantry.v1.IsMovingResponse) } -IsMovingResponse::IsMovingResponse( - ::google::protobuf::Arena* arena, const IsMovingResponse& from) - : IsMovingResponse(arena) { - MergeFrom(from); +IsMovingResponse::IsMovingResponse(const IsMovingResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + is_moving_ = from.is_moving_; + // @@protoc_insertion_point(copy_constructor:viam.component.gantry.v1.IsMovingResponse) } -inline PROTOBUF_NDEBUG_INLINE IsMovingResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void IsMovingResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.is_moving_ = {}; +inline void IsMovingResponse::SharedCtor() { +is_moving_ = false; } + IsMovingResponse::~IsMovingResponse() { // @@protoc_insertion_point(destructor:viam.component.gantry.v1.IsMovingResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void IsMovingResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void IsMovingResponse::Clear() { +void IsMovingResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void IsMovingResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.gantry.v1.IsMovingResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.is_moving_ = false; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* IsMovingResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + is_moving_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* IsMovingResponse::_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) { + // bool is_moving = 1 [json_name = "isMoving"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + is_moving_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> IsMovingResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_IsMovingResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // bool is_moving = 1 [json_name = "isMoving"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(IsMovingResponse, _impl_.is_moving_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bool is_moving = 1 [json_name = "isMoving"]; - {PROTOBUF_FIELD_OFFSET(IsMovingResponse, _impl_.is_moving_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* IsMovingResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* IsMovingResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.gantry.v1.IsMovingResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // bool is_moving = 1 [json_name = "isMoving"]; if (this->_internal_is_moving() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 1, this->_internal_is_moving(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_is_moving(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.gantry.v1.IsMovingResponse) return target; } -::size_t IsMovingResponse::ByteSizeLong() const { +size_t IsMovingResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.gantry.v1.IsMovingResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // bool is_moving = 1 [json_name = "isMoving"]; if (this->_internal_is_moving() != 0) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData IsMovingResponse::_class_data_ = { - IsMovingResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData IsMovingResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + IsMovingResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* IsMovingResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*IsMovingResponse::GetClassData() const { return &_class_data_; } + +void IsMovingResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void IsMovingResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.gantry.v1.IsMovingResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void IsMovingResponse::MergeFrom(const IsMovingResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.gantry.v1.IsMovingResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_is_moving() != 0) { - _this->_internal_set_is_moving(from._internal_is_moving()); + _internal_set_is_moving(from._internal_is_moving()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void IsMovingResponse::CopyFrom(const IsMovingResponse& from) { @@ -3056,32 +2881,81 @@ void IsMovingResponse::CopyFrom(const IsMovingResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool IsMovingResponse::IsInitialized() const { +bool IsMovingResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* IsMovingResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void IsMovingResponse::InternalSwap(IsMovingResponse* PROTOBUF_RESTRICT other) { +void IsMovingResponse::InternalSwap(IsMovingResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.is_moving_, other->_impl_.is_moving_); + swap(is_moving_, other->is_moving_); } -::google::protobuf::Metadata IsMovingResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata IsMovingResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_getter, &descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_once, file_level_metadata_component_2fgantry_2fv1_2fgantry_2eproto[12]); } + // @@protoc_insertion_point(namespace_scope) } // namespace v1 } // namespace gantry } // namespace component } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::component::gantry::v1::GetPositionRequest* +Arena::CreateMaybeMessage< ::viam::component::gantry::v1::GetPositionRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::gantry::v1::GetPositionRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::gantry::v1::GetPositionResponse* +Arena::CreateMaybeMessage< ::viam::component::gantry::v1::GetPositionResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::gantry::v1::GetPositionResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::gantry::v1::MoveToPositionRequest* +Arena::CreateMaybeMessage< ::viam::component::gantry::v1::MoveToPositionRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::gantry::v1::MoveToPositionRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::gantry::v1::MoveToPositionResponse* +Arena::CreateMaybeMessage< ::viam::component::gantry::v1::MoveToPositionResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::gantry::v1::MoveToPositionResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::gantry::v1::HomeRequest* +Arena::CreateMaybeMessage< ::viam::component::gantry::v1::HomeRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::gantry::v1::HomeRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::gantry::v1::HomeResponse* +Arena::CreateMaybeMessage< ::viam::component::gantry::v1::HomeResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::gantry::v1::HomeResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::gantry::v1::GetLengthsRequest* +Arena::CreateMaybeMessage< ::viam::component::gantry::v1::GetLengthsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::gantry::v1::GetLengthsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::gantry::v1::GetLengthsResponse* +Arena::CreateMaybeMessage< ::viam::component::gantry::v1::GetLengthsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::gantry::v1::GetLengthsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::gantry::v1::StopRequest* +Arena::CreateMaybeMessage< ::viam::component::gantry::v1::StopRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::gantry::v1::StopRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::gantry::v1::StopResponse* +Arena::CreateMaybeMessage< ::viam::component::gantry::v1::StopResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::gantry::v1::StopResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::gantry::v1::Status* +Arena::CreateMaybeMessage< ::viam::component::gantry::v1::Status >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::gantry::v1::Status >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::gantry::v1::IsMovingRequest* +Arena::CreateMaybeMessage< ::viam::component::gantry::v1::IsMovingRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::gantry::v1::IsMovingRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::gantry::v1::IsMovingResponse* +Arena::CreateMaybeMessage< ::viam::component::gantry::v1::IsMovingResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::gantry::v1::IsMovingResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/component/gantry/v1/gantry.pb.h b/src/viam/api/component/gantry/v1/gantry.pb.h index d72fac175..7152d38f6 100644 --- a/src/viam/api/component/gantry/v1/gantry.pb.h +++ b/src/viam/api/component/gantry/v1/gantry.pb.h @@ -1,64 +1,53 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: component/gantry/v1/gantry.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_component_2fgantry_2fv1_2fgantry_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_component_2fgantry_2fv1_2fgantry_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_component_2fgantry_2fv1_2fgantry_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_component_2fgantry_2fv1_2fgantry_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_bases.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/unknown_field_set.h" + +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include #include "common/v1/common.pb.h" #include "google/api/annotations.pb.h" -#include "google/protobuf/struct.pb.h" +#include // @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - +#include #define PROTOBUF_INTERNAL_EXPORT_component_2fgantry_2fv1_2fgantry_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_component_2fgantry_2fv1_2fgantry_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto; namespace viam { namespace component { namespace gantry { @@ -106,11 +95,21 @@ extern StopResponseDefaultTypeInternal _StopResponse_default_instance_; } // namespace gantry } // namespace component } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::component::gantry::v1::GetLengthsRequest* Arena::CreateMaybeMessage<::viam::component::gantry::v1::GetLengthsRequest>(Arena*); +template<> ::viam::component::gantry::v1::GetLengthsResponse* Arena::CreateMaybeMessage<::viam::component::gantry::v1::GetLengthsResponse>(Arena*); +template<> ::viam::component::gantry::v1::GetPositionRequest* Arena::CreateMaybeMessage<::viam::component::gantry::v1::GetPositionRequest>(Arena*); +template<> ::viam::component::gantry::v1::GetPositionResponse* Arena::CreateMaybeMessage<::viam::component::gantry::v1::GetPositionResponse>(Arena*); +template<> ::viam::component::gantry::v1::HomeRequest* Arena::CreateMaybeMessage<::viam::component::gantry::v1::HomeRequest>(Arena*); +template<> ::viam::component::gantry::v1::HomeResponse* Arena::CreateMaybeMessage<::viam::component::gantry::v1::HomeResponse>(Arena*); +template<> ::viam::component::gantry::v1::IsMovingRequest* Arena::CreateMaybeMessage<::viam::component::gantry::v1::IsMovingRequest>(Arena*); +template<> ::viam::component::gantry::v1::IsMovingResponse* Arena::CreateMaybeMessage<::viam::component::gantry::v1::IsMovingResponse>(Arena*); +template<> ::viam::component::gantry::v1::MoveToPositionRequest* Arena::CreateMaybeMessage<::viam::component::gantry::v1::MoveToPositionRequest>(Arena*); +template<> ::viam::component::gantry::v1::MoveToPositionResponse* Arena::CreateMaybeMessage<::viam::component::gantry::v1::MoveToPositionResponse>(Arena*); +template<> ::viam::component::gantry::v1::Status* Arena::CreateMaybeMessage<::viam::component::gantry::v1::Status>(Arena*); +template<> ::viam::component::gantry::v1::StopRequest* Arena::CreateMaybeMessage<::viam::component::gantry::v1::StopRequest>(Arena*); +template<> ::viam::component::gantry::v1::StopResponse* Arena::CreateMaybeMessage<::viam::component::gantry::v1::StopResponse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace viam { namespace component { namespace gantry { @@ -118,32 +117,28 @@ namespace v1 { // =================================================================== - -// ------------------------------------------------------------------- - -class StopResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.gantry.v1.StopResponse) */ { +class GetPositionRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.gantry.v1.GetPositionRequest) */ { public: - inline StopResponse() : StopResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR StopResponse(::google::protobuf::internal::ConstantInitialized); + inline GetPositionRequest() : GetPositionRequest(nullptr) {} + ~GetPositionRequest() override; + explicit PROTOBUF_CONSTEXPR GetPositionRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline StopResponse(const StopResponse& from) - : StopResponse(nullptr, from) {} - StopResponse(StopResponse&& from) noexcept - : StopResponse() { + GetPositionRequest(const GetPositionRequest& from); + GetPositionRequest(GetPositionRequest&& from) noexcept + : GetPositionRequest() { *this = ::std::move(from); } - inline StopResponse& operator=(const StopResponse& from) { + inline GetPositionRequest& operator=(const GetPositionRequest& from) { CopyFrom(from); return *this; } - inline StopResponse& operator=(StopResponse&& from) noexcept { + inline GetPositionRequest& operator=(GetPositionRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -153,134 +148,165 @@ class StopResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const StopResponse& default_instance() { + static const GetPositionRequest& default_instance() { return *internal_default_instance(); } - static inline const StopResponse* internal_default_instance() { - return reinterpret_cast( - &_StopResponse_default_instance_); + static inline const GetPositionRequest* internal_default_instance() { + return reinterpret_cast( + &_GetPositionRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 9; + 0; - friend void swap(StopResponse& a, StopResponse& b) { + friend void swap(GetPositionRequest& a, GetPositionRequest& b) { a.Swap(&b); } - inline void Swap(StopResponse* other) { + inline void Swap(GetPositionRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(StopResponse* other) { + void UnsafeArenaSwap(GetPositionRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - StopResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const StopResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const StopResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + GetPositionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPositionRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetPositionRequest& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.gantry.v1.StopResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetPositionRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.gantry.v1.GetPositionRequest"; } protected: - explicit StopResponse(::google::protobuf::Arena* arena); - StopResponse(::google::protobuf::Arena* arena, const StopResponse& from); + explicit GetPositionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.component.gantry.v1.StopResponse) + 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.gantry.v1.GetPositionRequest) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + 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_2fgantry_2fv1_2fgantry_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Status final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.gantry.v1.Status) */ { +class GetPositionResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.gantry.v1.GetPositionResponse) */ { public: - inline Status() : Status(nullptr) {} - ~Status() override; - template - explicit PROTOBUF_CONSTEXPR Status(::google::protobuf::internal::ConstantInitialized); + inline GetPositionResponse() : GetPositionResponse(nullptr) {} + ~GetPositionResponse() override; + explicit PROTOBUF_CONSTEXPR GetPositionResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Status(const Status& from) - : Status(nullptr, from) {} - Status(Status&& from) noexcept - : Status() { + GetPositionResponse(const GetPositionResponse& from); + GetPositionResponse(GetPositionResponse&& from) noexcept + : GetPositionResponse() { *this = ::std::move(from); } - inline Status& operator=(const Status& from) { + inline GetPositionResponse& operator=(const GetPositionResponse& from) { CopyFrom(from); return *this; } - inline Status& operator=(Status&& from) noexcept { + inline GetPositionResponse& operator=(GetPositionResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -290,99 +316,88 @@ class Status final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Status& default_instance() { + static const GetPositionResponse& default_instance() { return *internal_default_instance(); } - static inline const Status* internal_default_instance() { - return reinterpret_cast( - &_Status_default_instance_); + static inline const GetPositionResponse* internal_default_instance() { + return reinterpret_cast( + &_GetPositionResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 10; + 1; - friend void swap(Status& a, Status& b) { + friend void swap(GetPositionResponse& a, GetPositionResponse& b) { a.Swap(&b); } - inline void Swap(Status* other) { + inline void Swap(GetPositionResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Status* other) { + void UnsafeArenaSwap(GetPositionResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Status* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Status& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Status& from) { - Status::MergeImpl(*this, from); + GetPositionResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPositionResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetPositionResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Status* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetPositionResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.gantry.v1.Status"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.gantry.v1.GetPositionResponse"; } protected: - explicit Status(::google::protobuf::Arena* arena); - Status(::google::protobuf::Arena* arena, const Status& from); + explicit GetPositionResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -390,111 +405,64 @@ class Status final : enum : int { kPositionsMmFieldNumber = 1, - kLengthsMmFieldNumber = 2, - kIsMovingFieldNumber = 3, }; // repeated double positions_mm = 1 [json_name = "positionsMm"]; int positions_mm_size() const; private: int _internal_positions_mm_size() const; - public: - void clear_positions_mm() ; + void clear_positions_mm(); + private: + double _internal_positions_mm(int index) const; + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& + _internal_positions_mm() const; + void _internal_add_positions_mm(double value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* + _internal_mutable_positions_mm(); + public: double positions_mm(int index) const; void set_positions_mm(int index, double value); void add_positions_mm(double value); - const ::google::protobuf::RepeatedField& positions_mm() const; - ::google::protobuf::RepeatedField* mutable_positions_mm(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& + positions_mm() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* + mutable_positions_mm(); - private: - const ::google::protobuf::RepeatedField& _internal_positions_mm() const; - ::google::protobuf::RepeatedField* _internal_mutable_positions_mm(); - - public: - // repeated double lengths_mm = 2 [json_name = "lengthsMm"]; - int lengths_mm_size() const; - private: - int _internal_lengths_mm_size() const; - - public: - void clear_lengths_mm() ; - double lengths_mm(int index) const; - void set_lengths_mm(int index, double value); - void add_lengths_mm(double value); - const ::google::protobuf::RepeatedField& lengths_mm() const; - ::google::protobuf::RepeatedField* mutable_lengths_mm(); - - private: - const ::google::protobuf::RepeatedField& _internal_lengths_mm() const; - ::google::protobuf::RepeatedField* _internal_mutable_lengths_mm(); - - public: - // bool is_moving = 3 [json_name = "isMoving"]; - void clear_is_moving() ; - bool is_moving() const; - void set_is_moving(bool value); - - private: - bool _internal_is_moving() const; - void _internal_set_is_moving(bool value); - - public: - // @@protoc_insertion_point(class_scope:viam.component.gantry.v1.Status) + // @@protoc_insertion_point(class_scope:viam.component.gantry.v1.GetPositionResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedField positions_mm_; - ::google::protobuf::RepeatedField lengths_mm_; - bool is_moving_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double > positions_mm_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fgantry_2fv1_2fgantry_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class MoveToPositionResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.gantry.v1.MoveToPositionResponse) */ { +class MoveToPositionRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.gantry.v1.MoveToPositionRequest) */ { public: - inline MoveToPositionResponse() : MoveToPositionResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR MoveToPositionResponse(::google::protobuf::internal::ConstantInitialized); + inline MoveToPositionRequest() : MoveToPositionRequest(nullptr) {} + ~MoveToPositionRequest() override; + explicit PROTOBUF_CONSTEXPR MoveToPositionRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline MoveToPositionResponse(const MoveToPositionResponse& from) - : MoveToPositionResponse(nullptr, from) {} - MoveToPositionResponse(MoveToPositionResponse&& from) noexcept - : MoveToPositionResponse() { + MoveToPositionRequest(const MoveToPositionRequest& from); + MoveToPositionRequest(MoveToPositionRequest&& from) noexcept + : MoveToPositionRequest() { *this = ::std::move(from); } - inline MoveToPositionResponse& operator=(const MoveToPositionResponse& from) { + inline MoveToPositionRequest& operator=(const MoveToPositionRequest& from) { CopyFrom(from); return *this; } - inline MoveToPositionResponse& operator=(MoveToPositionResponse&& from) noexcept { + inline MoveToPositionRequest& operator=(MoveToPositionRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -504,134 +472,212 @@ class MoveToPositionResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MoveToPositionResponse& default_instance() { + static const MoveToPositionRequest& default_instance() { return *internal_default_instance(); } - static inline const MoveToPositionResponse* internal_default_instance() { - return reinterpret_cast( - &_MoveToPositionResponse_default_instance_); + static inline const MoveToPositionRequest* internal_default_instance() { + return reinterpret_cast( + &_MoveToPositionRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 3; + 2; - friend void swap(MoveToPositionResponse& a, MoveToPositionResponse& b) { + friend void swap(MoveToPositionRequest& a, MoveToPositionRequest& b) { a.Swap(&b); } - inline void Swap(MoveToPositionResponse* other) { + inline void Swap(MoveToPositionRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MoveToPositionResponse* other) { + void UnsafeArenaSwap(MoveToPositionRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MoveToPositionResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const MoveToPositionResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const MoveToPositionResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + MoveToPositionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MoveToPositionRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MoveToPositionRequest& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.gantry.v1.MoveToPositionResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoveToPositionRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.gantry.v1.MoveToPositionRequest"; } protected: - explicit MoveToPositionResponse(::google::protobuf::Arena* arena); - MoveToPositionResponse(::google::protobuf::Arena* arena, const MoveToPositionResponse& from); + explicit MoveToPositionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.component.gantry.v1.MoveToPositionResponse) + enum : int { + kPositionsMmFieldNumber = 2, + kSpeedsMmPerSecFieldNumber = 3, + kNameFieldNumber = 1, + kExtraFieldNumber = 99, + }; + // repeated double positions_mm = 2 [json_name = "positionsMm"]; + int positions_mm_size() const; + private: + int _internal_positions_mm_size() const; + public: + void clear_positions_mm(); + private: + double _internal_positions_mm(int index) const; + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& + _internal_positions_mm() const; + void _internal_add_positions_mm(double value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* + _internal_mutable_positions_mm(); + public: + double positions_mm(int index) const; + void set_positions_mm(int index, double value); + void add_positions_mm(double value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& + positions_mm() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* + mutable_positions_mm(); + + // repeated double speeds_mm_per_sec = 3 [json_name = "speedsMmPerSec"]; + int speeds_mm_per_sec_size() const; + private: + int _internal_speeds_mm_per_sec_size() const; + public: + void clear_speeds_mm_per_sec(); + private: + double _internal_speeds_mm_per_sec(int index) const; + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& + _internal_speeds_mm_per_sec() const; + void _internal_add_speeds_mm_per_sec(double value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* + _internal_mutable_speeds_mm_per_sec(); + public: + double speeds_mm_per_sec(int index) const; + void set_speeds_mm_per_sec(int index, double value); + void add_speeds_mm_per_sec(double value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& + speeds_mm_per_sec() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* + mutable_speeds_mm_per_sec(); + + // 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.gantry.v1.MoveToPositionRequest) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double > positions_mm_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double > speeds_mm_per_sec_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fgantry_2fv1_2fgantry_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class IsMovingResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.gantry.v1.IsMovingResponse) */ { +class MoveToPositionResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.gantry.v1.MoveToPositionResponse) */ { public: - inline IsMovingResponse() : IsMovingResponse(nullptr) {} - ~IsMovingResponse() override; - template - explicit PROTOBUF_CONSTEXPR IsMovingResponse(::google::protobuf::internal::ConstantInitialized); + inline MoveToPositionResponse() : MoveToPositionResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR MoveToPositionResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline IsMovingResponse(const IsMovingResponse& from) - : IsMovingResponse(nullptr, from) {} - IsMovingResponse(IsMovingResponse&& from) noexcept - : IsMovingResponse() { + MoveToPositionResponse(const MoveToPositionResponse& from); + MoveToPositionResponse(MoveToPositionResponse&& from) noexcept + : MoveToPositionResponse() { *this = ::std::move(from); } - inline IsMovingResponse& operator=(const IsMovingResponse& from) { + inline MoveToPositionResponse& operator=(const MoveToPositionResponse& from) { CopyFrom(from); return *this; } - inline IsMovingResponse& operator=(IsMovingResponse&& from) noexcept { + inline MoveToPositionResponse& operator=(MoveToPositionResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -641,172 +687,114 @@ class IsMovingResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const IsMovingResponse& default_instance() { + static const MoveToPositionResponse& default_instance() { return *internal_default_instance(); } - static inline const IsMovingResponse* internal_default_instance() { - return reinterpret_cast( - &_IsMovingResponse_default_instance_); + static inline const MoveToPositionResponse* internal_default_instance() { + return reinterpret_cast( + &_MoveToPositionResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 12; + 3; - friend void swap(IsMovingResponse& a, IsMovingResponse& b) { + friend void swap(MoveToPositionResponse& a, MoveToPositionResponse& b) { a.Swap(&b); } - inline void Swap(IsMovingResponse* other) { + inline void Swap(MoveToPositionResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(IsMovingResponse* other) { + void UnsafeArenaSwap(MoveToPositionResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - IsMovingResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + MoveToPositionResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const IsMovingResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const IsMovingResponse& from) { - IsMovingResponse::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const MoveToPositionResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const MoveToPositionResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(IsMovingResponse* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.gantry.v1.IsMovingResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.gantry.v1.MoveToPositionResponse"; } protected: - explicit IsMovingResponse(::google::protobuf::Arena* arena); - IsMovingResponse(::google::protobuf::Arena* arena, const IsMovingResponse& from); + explicit MoveToPositionResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kIsMovingFieldNumber = 1, - }; - // bool is_moving = 1 [json_name = "isMoving"]; - void clear_is_moving() ; - bool is_moving() const; - void set_is_moving(bool value); - - private: - bool _internal_is_moving() const; - void _internal_set_is_moving(bool value); - - public: - // @@protoc_insertion_point(class_scope:viam.component.gantry.v1.IsMovingResponse) + // @@protoc_insertion_point(class_scope:viam.component.gantry.v1.MoveToPositionResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - bool is_moving_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_component_2fgantry_2fv1_2fgantry_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class IsMovingRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.gantry.v1.IsMovingRequest) */ { +class HomeRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.gantry.v1.HomeRequest) */ { public: - inline IsMovingRequest() : IsMovingRequest(nullptr) {} - ~IsMovingRequest() override; - template - explicit PROTOBUF_CONSTEXPR IsMovingRequest(::google::protobuf::internal::ConstantInitialized); + inline HomeRequest() : HomeRequest(nullptr) {} + ~HomeRequest() override; + explicit PROTOBUF_CONSTEXPR HomeRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline IsMovingRequest(const IsMovingRequest& from) - : IsMovingRequest(nullptr, from) {} - IsMovingRequest(IsMovingRequest&& from) noexcept - : IsMovingRequest() { + HomeRequest(const HomeRequest& from); + HomeRequest(HomeRequest&& from) noexcept + : HomeRequest() { *this = ::std::move(from); } - inline IsMovingRequest& operator=(const IsMovingRequest& from) { + inline HomeRequest& operator=(const HomeRequest& from) { CopyFrom(from); return *this; } - inline IsMovingRequest& operator=(IsMovingRequest&& from) noexcept { + inline HomeRequest& operator=(HomeRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -816,99 +804,88 @@ class IsMovingRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const IsMovingRequest& default_instance() { + static const HomeRequest& default_instance() { return *internal_default_instance(); } - static inline const IsMovingRequest* internal_default_instance() { - return reinterpret_cast( - &_IsMovingRequest_default_instance_); + static inline const HomeRequest* internal_default_instance() { + return reinterpret_cast( + &_HomeRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 11; + 4; - friend void swap(IsMovingRequest& a, IsMovingRequest& b) { + friend void swap(HomeRequest& a, HomeRequest& b) { a.Swap(&b); } - inline void Swap(IsMovingRequest* other) { + inline void Swap(HomeRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(IsMovingRequest* other) { + void UnsafeArenaSwap(HomeRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - IsMovingRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const IsMovingRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const IsMovingRequest& from) { - IsMovingRequest::MergeImpl(*this, from); + HomeRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const HomeRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const HomeRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(IsMovingRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(HomeRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.gantry.v1.IsMovingRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.gantry.v1.HomeRequest"; } protected: - explicit IsMovingRequest(::google::protobuf::Arena* arena); - IsMovingRequest(::google::protobuf::Arena* arena, const IsMovingRequest& from); + explicit HomeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -916,64 +893,62 @@ class IsMovingRequest final : enum : int { kNameFieldNumber = 1, + kExtraFieldNumber = 99, }; // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + 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: - // @@protoc_insertion_point(class_scope:viam.component.gantry.v1.IsMovingRequest) + 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.gantry.v1.HomeRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 53, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr name_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + 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_2fgantry_2fv1_2fgantry_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class HomeResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.gantry.v1.HomeResponse) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.gantry.v1.HomeResponse) */ { public: inline HomeResponse() : HomeResponse(nullptr) {} ~HomeResponse() override; - template - explicit PROTOBUF_CONSTEXPR HomeResponse(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR HomeResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline HomeResponse(const HomeResponse& from) - : HomeResponse(nullptr, from) {} + HomeResponse(const HomeResponse& from); HomeResponse(HomeResponse&& from) noexcept : HomeResponse() { *this = ::std::move(from); @@ -985,9 +960,9 @@ class HomeResponse final : } inline HomeResponse& operator=(HomeResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -997,22 +972,13 @@ class HomeResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const HomeResponse& default_instance() { @@ -1031,65 +997,63 @@ class HomeResponse final : inline void Swap(HomeResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(HomeResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - HomeResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + HomeResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const HomeResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const HomeResponse& from) { - HomeResponse::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const HomeResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(HomeResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "viam.component.gantry.v1.HomeResponse"; } protected: - explicit HomeResponse(::google::protobuf::Arena* arena); - HomeResponse(::google::protobuf::Arena* arena, const HomeResponse& from); + explicit HomeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1099,70 +1063,49 @@ class HomeResponse final : kHomedFieldNumber = 1, }; // bool homed = 1 [json_name = "homed"]; - void clear_homed() ; + void clear_homed(); bool homed() const; void set_homed(bool value); - private: bool _internal_homed() const; void _internal_set_homed(bool value); - public: + // @@protoc_insertion_point(class_scope:viam.component.gantry.v1.HomeResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - bool homed_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + bool homed_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fgantry_2fv1_2fgantry_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetPositionResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.gantry.v1.GetPositionResponse) */ { +class GetLengthsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.gantry.v1.GetLengthsRequest) */ { public: - inline GetPositionResponse() : GetPositionResponse(nullptr) {} - ~GetPositionResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetPositionResponse(::google::protobuf::internal::ConstantInitialized); + inline GetLengthsRequest() : GetLengthsRequest(nullptr) {} + ~GetLengthsRequest() override; + explicit PROTOBUF_CONSTEXPR GetLengthsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetPositionResponse(const GetPositionResponse& from) - : GetPositionResponse(nullptr, from) {} - GetPositionResponse(GetPositionResponse&& from) noexcept - : GetPositionResponse() { + GetLengthsRequest(const GetLengthsRequest& from); + GetLengthsRequest(GetLengthsRequest&& from) noexcept + : GetLengthsRequest() { *this = ::std::move(from); } - inline GetPositionResponse& operator=(const GetPositionResponse& from) { + inline GetLengthsRequest& operator=(const GetLengthsRequest& from) { CopyFrom(from); return *this; } - inline GetPositionResponse& operator=(GetPositionResponse&& from) noexcept { + inline GetLengthsRequest& operator=(GetLengthsRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1172,166 +1115,151 @@ class GetPositionResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetPositionResponse& default_instance() { + static const GetLengthsRequest& default_instance() { return *internal_default_instance(); } - static inline const GetPositionResponse* internal_default_instance() { - return reinterpret_cast( - &_GetPositionResponse_default_instance_); + static inline const GetLengthsRequest* internal_default_instance() { + return reinterpret_cast( + &_GetLengthsRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 1; + 6; - friend void swap(GetPositionResponse& a, GetPositionResponse& b) { + friend void swap(GetLengthsRequest& a, GetLengthsRequest& b) { a.Swap(&b); } - inline void Swap(GetPositionResponse* other) { + inline void Swap(GetLengthsRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetPositionResponse* other) { + void UnsafeArenaSwap(GetLengthsRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetPositionResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetPositionResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetPositionResponse& from) { - GetPositionResponse::MergeImpl(*this, from); + GetLengthsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetLengthsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetLengthsRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetPositionResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetLengthsRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.gantry.v1.GetPositionResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.gantry.v1.GetLengthsRequest"; } protected: - explicit GetPositionResponse(::google::protobuf::Arena* arena); - GetPositionResponse(::google::protobuf::Arena* arena, const GetPositionResponse& from); + explicit GetLengthsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kPositionsMmFieldNumber = 1, + kNameFieldNumber = 1, + kExtraFieldNumber = 99, }; - // repeated double positions_mm = 1 [json_name = "positionsMm"]; - int positions_mm_size() const; + // 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: - int _internal_positions_mm_size() const; - + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); public: - void clear_positions_mm() ; - double positions_mm(int index) const; - void set_positions_mm(int index, double value); - void add_positions_mm(double value); - const ::google::protobuf::RepeatedField& positions_mm() const; - ::google::protobuf::RepeatedField* mutable_positions_mm(); + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + bool has_extra() const; private: - const ::google::protobuf::RepeatedField& _internal_positions_mm() const; - ::google::protobuf::RepeatedField* _internal_mutable_positions_mm(); - + bool _internal_has_extra() const; public: - // @@protoc_insertion_point(class_scope:viam.component.gantry.v1.GetPositionResponse) + 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.gantry.v1.GetLengthsRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedField positions_mm_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + 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_2fgantry_2fv1_2fgantry_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class GetLengthsResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.gantry.v1.GetLengthsResponse) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.gantry.v1.GetLengthsResponse) */ { public: inline GetLengthsResponse() : GetLengthsResponse(nullptr) {} ~GetLengthsResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetLengthsResponse(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR GetLengthsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetLengthsResponse(const GetLengthsResponse& from) - : GetLengthsResponse(nullptr, from) {} + GetLengthsResponse(const GetLengthsResponse& from); GetLengthsResponse(GetLengthsResponse&& from) noexcept : GetLengthsResponse() { *this = ::std::move(from); @@ -1343,9 +1271,9 @@ class GetLengthsResponse final : } inline GetLengthsResponse& operator=(GetLengthsResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1355,22 +1283,13 @@ class GetLengthsResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const GetLengthsResponse& default_instance() { @@ -1389,65 +1308,63 @@ class GetLengthsResponse final : inline void Swap(GetLengthsResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(GetLengthsResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetLengthsResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + GetLengthsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const GetLengthsResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetLengthsResponse& from) { - GetLengthsResponse::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetLengthsResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(GetLengthsResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "viam.component.gantry.v1.GetLengthsResponse"; } protected: - explicit GetLengthsResponse(::google::protobuf::Arena* arena); - GetLengthsResponse(::google::protobuf::Arena* arena, const GetLengthsResponse& from); + explicit GetLengthsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1460,61 +1377,45 @@ class GetLengthsResponse final : int lengths_mm_size() const; private: int _internal_lengths_mm_size() const; - public: - void clear_lengths_mm() ; + void clear_lengths_mm(); + private: + double _internal_lengths_mm(int index) const; + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& + _internal_lengths_mm() const; + void _internal_add_lengths_mm(double value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* + _internal_mutable_lengths_mm(); + public: double lengths_mm(int index) const; void set_lengths_mm(int index, double value); void add_lengths_mm(double value); - const ::google::protobuf::RepeatedField& lengths_mm() const; - ::google::protobuf::RepeatedField* mutable_lengths_mm(); - - private: - const ::google::protobuf::RepeatedField& _internal_lengths_mm() const; - ::google::protobuf::RepeatedField* _internal_mutable_lengths_mm(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& + lengths_mm() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* + mutable_lengths_mm(); - public: // @@protoc_insertion_point(class_scope:viam.component.gantry.v1.GetLengthsResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedField lengths_mm_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double > lengths_mm_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fgantry_2fv1_2fgantry_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class StopRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.gantry.v1.StopRequest) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.gantry.v1.StopRequest) */ { public: inline StopRequest() : StopRequest(nullptr) {} ~StopRequest() override; - template - explicit PROTOBUF_CONSTEXPR StopRequest(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR StopRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline StopRequest(const StopRequest& from) - : StopRequest(nullptr, from) {} + StopRequest(const StopRequest& from); StopRequest(StopRequest&& from) noexcept : StopRequest() { *this = ::std::move(from); @@ -1526,9 +1427,9 @@ class StopRequest final : } inline StopRequest& operator=(StopRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1538,22 +1439,13 @@ class StopRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const StopRequest& default_instance() { @@ -1572,65 +1464,63 @@ class StopRequest final : inline void Swap(StopRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(StopRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - StopRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + StopRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const StopRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const StopRequest& from) { - StopRequest::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const StopRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(StopRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "viam.component.gantry.v1.StopRequest"; } protected: - explicit StopRequest(::google::protobuf::Arena* arena); - StopRequest(::google::protobuf::Arena* arena, const StopRequest& from); + explicit StopRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1641,93 +1531,72 @@ class StopRequest final : kExtraFieldNumber = 99, }; // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + 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; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - + 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.gantry.v1.StopRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 2, 1, - 49, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + 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_2fgantry_2fv1_2fgantry_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class MoveToPositionRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.gantry.v1.MoveToPositionRequest) */ { +class StopResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.gantry.v1.StopResponse) */ { public: - inline MoveToPositionRequest() : MoveToPositionRequest(nullptr) {} - ~MoveToPositionRequest() override; - template - explicit PROTOBUF_CONSTEXPR MoveToPositionRequest(::google::protobuf::internal::ConstantInitialized); + inline StopResponse() : StopResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR StopResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline MoveToPositionRequest(const MoveToPositionRequest& from) - : MoveToPositionRequest(nullptr, from) {} - MoveToPositionRequest(MoveToPositionRequest&& from) noexcept - : MoveToPositionRequest() { + StopResponse(const StopResponse& from); + StopResponse(StopResponse&& from) noexcept + : StopResponse() { *this = ::std::move(from); } - inline MoveToPositionRequest& operator=(const MoveToPositionRequest& from) { + inline StopResponse& operator=(const StopResponse& from) { CopyFrom(from); return *this; } - inline MoveToPositionRequest& operator=(MoveToPositionRequest&& from) noexcept { + inline StopResponse& operator=(StopResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1737,236 +1606,114 @@ class MoveToPositionRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MoveToPositionRequest& default_instance() { + static const StopResponse& default_instance() { return *internal_default_instance(); } - static inline const MoveToPositionRequest* internal_default_instance() { - return reinterpret_cast( - &_MoveToPositionRequest_default_instance_); + static inline const StopResponse* internal_default_instance() { + return reinterpret_cast( + &_StopResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 2; + 9; - friend void swap(MoveToPositionRequest& a, MoveToPositionRequest& b) { + friend void swap(StopResponse& a, StopResponse& b) { a.Swap(&b); } - inline void Swap(MoveToPositionRequest* other) { + inline void Swap(StopResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MoveToPositionRequest* other) { + void UnsafeArenaSwap(StopResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MoveToPositionRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + StopResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const MoveToPositionRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const MoveToPositionRequest& from) { - MoveToPositionRequest::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const StopResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const StopResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(MoveToPositionRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.gantry.v1.MoveToPositionRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.gantry.v1.StopResponse"; } protected: - explicit MoveToPositionRequest(::google::protobuf::Arena* arena); - MoveToPositionRequest(::google::protobuf::Arena* arena, const MoveToPositionRequest& from); + explicit StopResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kPositionsMmFieldNumber = 2, - kSpeedsMmPerSecFieldNumber = 3, - kNameFieldNumber = 1, - kExtraFieldNumber = 99, - }; - // repeated double positions_mm = 2 [json_name = "positionsMm"]; - int positions_mm_size() const; - private: - int _internal_positions_mm_size() const; - - public: - void clear_positions_mm() ; - double positions_mm(int index) const; - void set_positions_mm(int index, double value); - void add_positions_mm(double value); - const ::google::protobuf::RepeatedField& positions_mm() const; - ::google::protobuf::RepeatedField* mutable_positions_mm(); - - private: - const ::google::protobuf::RepeatedField& _internal_positions_mm() const; - ::google::protobuf::RepeatedField* _internal_mutable_positions_mm(); - - public: - // repeated double speeds_mm_per_sec = 3 [json_name = "speedsMmPerSec"]; - int speeds_mm_per_sec_size() const; - private: - int _internal_speeds_mm_per_sec_size() const; - - public: - void clear_speeds_mm_per_sec() ; - double speeds_mm_per_sec(int index) const; - void set_speeds_mm_per_sec(int index, double value); - void add_speeds_mm_per_sec(double value); - const ::google::protobuf::RepeatedField& speeds_mm_per_sec() const; - ::google::protobuf::RepeatedField* mutable_speeds_mm_per_sec(); - - private: - const ::google::protobuf::RepeatedField& _internal_speeds_mm_per_sec() const; - ::google::protobuf::RepeatedField* _internal_mutable_speeds_mm_per_sec(); - - public: - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - - public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - - public: - // @@protoc_insertion_point(class_scope:viam.component.gantry.v1.MoveToPositionRequest) + // @@protoc_insertion_point(class_scope:viam.component.gantry.v1.StopResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 1, - 59, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedField positions_mm_; - ::google::protobuf::RepeatedField speeds_mm_per_sec_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_component_2fgantry_2fv1_2fgantry_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class HomeRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.gantry.v1.HomeRequest) */ { +class Status final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.gantry.v1.Status) */ { public: - inline HomeRequest() : HomeRequest(nullptr) {} - ~HomeRequest() override; - template - explicit PROTOBUF_CONSTEXPR HomeRequest(::google::protobuf::internal::ConstantInitialized); + inline Status() : Status(nullptr) {} + ~Status() override; + explicit PROTOBUF_CONSTEXPR Status(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline HomeRequest(const HomeRequest& from) - : HomeRequest(nullptr, from) {} - HomeRequest(HomeRequest&& from) noexcept - : HomeRequest() { + Status(const Status& from); + Status(Status&& from) noexcept + : Status() { *this = ::std::move(from); } - inline HomeRequest& operator=(const HomeRequest& from) { + inline Status& operator=(const Status& from) { CopyFrom(from); return *this; } - inline HomeRequest& operator=(HomeRequest&& from) noexcept { + inline Status& operator=(Status&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1976,196 +1723,188 @@ class HomeRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const HomeRequest& default_instance() { + static const Status& default_instance() { return *internal_default_instance(); } - static inline const HomeRequest* internal_default_instance() { - return reinterpret_cast( - &_HomeRequest_default_instance_); + static inline const Status* internal_default_instance() { + return reinterpret_cast( + &_Status_default_instance_); } static constexpr int kIndexInFileMessages = - 4; + 10; - friend void swap(HomeRequest& a, HomeRequest& b) { + friend void swap(Status& a, Status& b) { a.Swap(&b); } - inline void Swap(HomeRequest* other) { + inline void Swap(Status* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(HomeRequest* other) { + void UnsafeArenaSwap(Status* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - HomeRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const HomeRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const HomeRequest& from) { - HomeRequest::MergeImpl(*this, from); + Status* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Status& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Status& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(HomeRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(Status* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.gantry.v1.HomeRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.gantry.v1.Status"; } protected: - explicit HomeRequest(::google::protobuf::Arena* arena); - HomeRequest(::google::protobuf::Arena* arena, const HomeRequest& from); + explicit Status(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kNameFieldNumber = 1, - kExtraFieldNumber = 99, + kPositionsMmFieldNumber = 1, + kLengthsMmFieldNumber = 2, + kIsMovingFieldNumber = 3, }; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + // repeated double positions_mm = 1 [json_name = "positionsMm"]; + int positions_mm_size() const; private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - + int _internal_positions_mm_size() const; public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); + void clear_positions_mm(); + private: + double _internal_positions_mm(int index) const; + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& + _internal_positions_mm() const; + void _internal_add_positions_mm(double value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* + _internal_mutable_positions_mm(); + public: + double positions_mm(int index) const; + void set_positions_mm(int index, double value); + void add_positions_mm(double value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& + positions_mm() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* + mutable_positions_mm(); + // repeated double lengths_mm = 2 [json_name = "lengthsMm"]; + int lengths_mm_size() const; private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); + int _internal_lengths_mm_size() const; + public: + void clear_lengths_mm(); + private: + double _internal_lengths_mm(int index) const; + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& + _internal_lengths_mm() const; + void _internal_add_lengths_mm(double value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* + _internal_mutable_lengths_mm(); + public: + double lengths_mm(int index) const; + void set_lengths_mm(int index, double value); + void add_lengths_mm(double value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& + lengths_mm() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* + mutable_lengths_mm(); + // bool is_moving = 3 [json_name = "isMoving"]; + void clear_is_moving(); + bool is_moving() const; + void set_is_moving(bool value); + private: + bool _internal_is_moving() const; + void _internal_set_is_moving(bool value); public: - // @@protoc_insertion_point(class_scope:viam.component.gantry.v1.HomeRequest) + + // @@protoc_insertion_point(class_scope:viam.component.gantry.v1.Status) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 2, 1, - 49, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double > positions_mm_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double > lengths_mm_; + bool is_moving_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fgantry_2fv1_2fgantry_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetPositionRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.gantry.v1.GetPositionRequest) */ { +class IsMovingRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.gantry.v1.IsMovingRequest) */ { public: - inline GetPositionRequest() : GetPositionRequest(nullptr) {} - ~GetPositionRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetPositionRequest(::google::protobuf::internal::ConstantInitialized); + inline IsMovingRequest() : IsMovingRequest(nullptr) {} + ~IsMovingRequest() override; + explicit PROTOBUF_CONSTEXPR IsMovingRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetPositionRequest(const GetPositionRequest& from) - : GetPositionRequest(nullptr, from) {} - GetPositionRequest(GetPositionRequest&& from) noexcept - : GetPositionRequest() { + IsMovingRequest(const IsMovingRequest& from); + IsMovingRequest(IsMovingRequest&& from) noexcept + : IsMovingRequest() { *this = ::std::move(from); } - inline GetPositionRequest& operator=(const GetPositionRequest& from) { + inline IsMovingRequest& operator=(const IsMovingRequest& from) { CopyFrom(from); return *this; } - inline GetPositionRequest& operator=(GetPositionRequest&& from) noexcept { + inline IsMovingRequest& operator=(IsMovingRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2175,99 +1914,88 @@ class GetPositionRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetPositionRequest& default_instance() { + static const IsMovingRequest& default_instance() { return *internal_default_instance(); } - static inline const GetPositionRequest* internal_default_instance() { - return reinterpret_cast( - &_GetPositionRequest_default_instance_); + static inline const IsMovingRequest* internal_default_instance() { + return reinterpret_cast( + &_IsMovingRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 0; + 11; - friend void swap(GetPositionRequest& a, GetPositionRequest& b) { + friend void swap(IsMovingRequest& a, IsMovingRequest& b) { a.Swap(&b); } - inline void Swap(GetPositionRequest* other) { + inline void Swap(IsMovingRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetPositionRequest* other) { + void UnsafeArenaSwap(IsMovingRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetPositionRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetPositionRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetPositionRequest& from) { - GetPositionRequest::MergeImpl(*this, from); + IsMovingRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const IsMovingRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const IsMovingRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetPositionRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(IsMovingRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.gantry.v1.GetPositionRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.gantry.v1.IsMovingRequest"; } protected: - explicit GetPositionRequest(::google::protobuf::Arena* arena); - GetPositionRequest(::google::protobuf::Arena* arena, const GetPositionRequest& from); + explicit IsMovingRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -2275,96 +2003,56 @@ class GetPositionRequest final : enum : int { kNameFieldNumber = 1, - kExtraFieldNumber = 99, }; // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + 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; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - public: - // @@protoc_insertion_point(class_scope:viam.component.gantry.v1.GetPositionRequest) + // @@protoc_insertion_point(class_scope:viam.component.gantry.v1.IsMovingRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 2, 1, - 56, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fgantry_2fv1_2fgantry_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetLengthsRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.gantry.v1.GetLengthsRequest) */ { +class IsMovingResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.gantry.v1.IsMovingResponse) */ { public: - inline GetLengthsRequest() : GetLengthsRequest(nullptr) {} - ~GetLengthsRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetLengthsRequest(::google::protobuf::internal::ConstantInitialized); + inline IsMovingResponse() : IsMovingResponse(nullptr) {} + ~IsMovingResponse() override; + explicit PROTOBUF_CONSTEXPR IsMovingResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetLengthsRequest(const GetLengthsRequest& from) - : GetLengthsRequest(nullptr, from) {} - GetLengthsRequest(GetLengthsRequest&& from) noexcept - : GetLengthsRequest() { + IsMovingResponse(const IsMovingResponse& from); + IsMovingResponse(IsMovingResponse&& from) noexcept + : IsMovingResponse() { *this = ::std::move(from); } - inline GetLengthsRequest& operator=(const GetLengthsRequest& from) { + inline IsMovingResponse& operator=(const IsMovingResponse& from) { CopyFrom(from); return *this; } - inline GetLengthsRequest& operator=(GetLengthsRequest&& from) noexcept { + inline IsMovingResponse& operator=(IsMovingResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2374,329 +2062,259 @@ class GetLengthsRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetLengthsRequest& default_instance() { + static const IsMovingResponse& default_instance() { return *internal_default_instance(); } - static inline const GetLengthsRequest* internal_default_instance() { - return reinterpret_cast( - &_GetLengthsRequest_default_instance_); + static inline const IsMovingResponse* internal_default_instance() { + return reinterpret_cast( + &_IsMovingResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 6; + 12; - friend void swap(GetLengthsRequest& a, GetLengthsRequest& b) { + friend void swap(IsMovingResponse& a, IsMovingResponse& b) { a.Swap(&b); } - inline void Swap(GetLengthsRequest* other) { + inline void Swap(IsMovingResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetLengthsRequest* other) { + void UnsafeArenaSwap(IsMovingResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetLengthsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetLengthsRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetLengthsRequest& from) { - GetLengthsRequest::MergeImpl(*this, from); + IsMovingResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const IsMovingResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const IsMovingResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetLengthsRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(IsMovingResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.gantry.v1.GetLengthsRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.gantry.v1.IsMovingResponse"; } protected: - explicit GetLengthsRequest(::google::protobuf::Arena* arena); - GetLengthsRequest(::google::protobuf::Arena* arena, const GetLengthsRequest& from); + explicit IsMovingResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kNameFieldNumber = 1, - kExtraFieldNumber = 99, + kIsMovingFieldNumber = 1, }; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + // bool is_moving = 1 [json_name = "isMoving"]; + void clear_is_moving(); + bool is_moving() const; + void set_is_moving(bool value); private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - + bool _internal_is_moving() const; + void _internal_set_is_moving(bool value); public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - public: - // @@protoc_insertion_point(class_scope:viam.component.gantry.v1.GetLengthsRequest) + // @@protoc_insertion_point(class_scope:viam.component.gantry.v1.IsMovingResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 2, 1, - 55, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + bool is_moving_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fgantry_2fv1_2fgantry_2eproto; }; - // =================================================================== - - // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ -// ------------------------------------------------------------------- - // GetPositionRequest // string name = 1 [json_name = "name"]; inline void GetPositionRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& GetPositionRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetPositionRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.gantry.v1.GetPositionRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetPositionRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetPositionRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.gantry.v1.GetPositionRequest.name) } -inline std::string* GetPositionRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetPositionRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.gantry.v1.GetPositionRequest.name) return _s; } inline const std::string& GetPositionRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void GetPositionRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* GetPositionRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* GetPositionRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.gantry.v1.GetPositionRequest.name) - return _impl_.name_.Release(); -} -inline void GetPositionRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void GetPositionRequest::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.gantry.v1.GetPositionRequest.name) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetPositionRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool GetPositionRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& GetPositionRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetPositionRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& GetPositionRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetPositionRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.gantry.v1.GetPositionRequest.extra) return _internal_extra(); } -inline void GetPositionRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void GetPositionRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.gantry.v1.GetPositionRequest.extra) } -inline ::google::protobuf::Struct* GetPositionRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPositionRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* GetPositionRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPositionRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.gantry.v1.GetPositionRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* GetPositionRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPositionRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* GetPositionRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPositionRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.gantry.v1.GetPositionRequest.extra) return _msg; } -inline void GetPositionRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetPositionRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.gantry.v1.GetPositionRequest.extra) } @@ -2706,48 +2324,50 @@ inline void GetPositionRequest::set_allocated_extra(::google::protobuf::Struct* // repeated double positions_mm = 1 [json_name = "positionsMm"]; inline int GetPositionResponse::_internal_positions_mm_size() const { - return _internal_positions_mm().size(); + return positions_mm_.size(); } inline int GetPositionResponse::positions_mm_size() const { return _internal_positions_mm_size(); } inline void GetPositionResponse::clear_positions_mm() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.positions_mm_.Clear(); + positions_mm_.Clear(); +} +inline double GetPositionResponse::_internal_positions_mm(int index) const { + return positions_mm_.Get(index); } inline double GetPositionResponse::positions_mm(int index) const { // @@protoc_insertion_point(field_get:viam.component.gantry.v1.GetPositionResponse.positions_mm) - return _internal_positions_mm().Get(index); + return _internal_positions_mm(index); } inline void GetPositionResponse::set_positions_mm(int index, double value) { - _internal_mutable_positions_mm()->Set(index, value); + positions_mm_.Set(index, value); // @@protoc_insertion_point(field_set:viam.component.gantry.v1.GetPositionResponse.positions_mm) } +inline void GetPositionResponse::_internal_add_positions_mm(double value) { + positions_mm_.Add(value); +} inline void GetPositionResponse::add_positions_mm(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_positions_mm()->Add(value); + _internal_add_positions_mm(value); // @@protoc_insertion_point(field_add:viam.component.gantry.v1.GetPositionResponse.positions_mm) } -inline const ::google::protobuf::RepeatedField& GetPositionResponse::positions_mm() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& +GetPositionResponse::_internal_positions_mm() const { + return positions_mm_; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& +GetPositionResponse::positions_mm() const { // @@protoc_insertion_point(field_list:viam.component.gantry.v1.GetPositionResponse.positions_mm) return _internal_positions_mm(); } -inline ::google::protobuf::RepeatedField* GetPositionResponse::mutable_positions_mm() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* +GetPositionResponse::_internal_mutable_positions_mm() { + return &positions_mm_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* +GetPositionResponse::mutable_positions_mm() { // @@protoc_insertion_point(field_mutable_list:viam.component.gantry.v1.GetPositionResponse.positions_mm) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _internal_mutable_positions_mm(); } -inline const ::google::protobuf::RepeatedField& GetPositionResponse::_internal_positions_mm() - const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.positions_mm_; -} -inline ::google::protobuf::RepeatedField* GetPositionResponse::_internal_mutable_positions_mm() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.positions_mm_; -} // ------------------------------------------------------------------- @@ -2755,235 +2375,230 @@ inline ::google::protobuf::RepeatedField* GetPositionResponse::_internal // string name = 1 [json_name = "name"]; inline void MoveToPositionRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& MoveToPositionRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& MoveToPositionRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.gantry.v1.MoveToPositionRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void MoveToPositionRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void MoveToPositionRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.gantry.v1.MoveToPositionRequest.name) } -inline std::string* MoveToPositionRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* MoveToPositionRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.gantry.v1.MoveToPositionRequest.name) return _s; } inline const std::string& MoveToPositionRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void MoveToPositionRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* MoveToPositionRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* MoveToPositionRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.gantry.v1.MoveToPositionRequest.name) - return _impl_.name_.Release(); -} -inline void MoveToPositionRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void MoveToPositionRequest::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.gantry.v1.MoveToPositionRequest.name) } // repeated double positions_mm = 2 [json_name = "positionsMm"]; inline int MoveToPositionRequest::_internal_positions_mm_size() const { - return _internal_positions_mm().size(); + return positions_mm_.size(); } inline int MoveToPositionRequest::positions_mm_size() const { return _internal_positions_mm_size(); } inline void MoveToPositionRequest::clear_positions_mm() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.positions_mm_.Clear(); + positions_mm_.Clear(); +} +inline double MoveToPositionRequest::_internal_positions_mm(int index) const { + return positions_mm_.Get(index); } inline double MoveToPositionRequest::positions_mm(int index) const { // @@protoc_insertion_point(field_get:viam.component.gantry.v1.MoveToPositionRequest.positions_mm) - return _internal_positions_mm().Get(index); + return _internal_positions_mm(index); } inline void MoveToPositionRequest::set_positions_mm(int index, double value) { - _internal_mutable_positions_mm()->Set(index, value); + positions_mm_.Set(index, value); // @@protoc_insertion_point(field_set:viam.component.gantry.v1.MoveToPositionRequest.positions_mm) } +inline void MoveToPositionRequest::_internal_add_positions_mm(double value) { + positions_mm_.Add(value); +} inline void MoveToPositionRequest::add_positions_mm(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_positions_mm()->Add(value); + _internal_add_positions_mm(value); // @@protoc_insertion_point(field_add:viam.component.gantry.v1.MoveToPositionRequest.positions_mm) } -inline const ::google::protobuf::RepeatedField& MoveToPositionRequest::positions_mm() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& +MoveToPositionRequest::_internal_positions_mm() const { + return positions_mm_; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& +MoveToPositionRequest::positions_mm() const { // @@protoc_insertion_point(field_list:viam.component.gantry.v1.MoveToPositionRequest.positions_mm) return _internal_positions_mm(); } -inline ::google::protobuf::RepeatedField* MoveToPositionRequest::mutable_positions_mm() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* +MoveToPositionRequest::_internal_mutable_positions_mm() { + return &positions_mm_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* +MoveToPositionRequest::mutable_positions_mm() { // @@protoc_insertion_point(field_mutable_list:viam.component.gantry.v1.MoveToPositionRequest.positions_mm) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _internal_mutable_positions_mm(); } -inline const ::google::protobuf::RepeatedField& MoveToPositionRequest::_internal_positions_mm() - const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.positions_mm_; -} -inline ::google::protobuf::RepeatedField* MoveToPositionRequest::_internal_mutable_positions_mm() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.positions_mm_; -} // repeated double speeds_mm_per_sec = 3 [json_name = "speedsMmPerSec"]; inline int MoveToPositionRequest::_internal_speeds_mm_per_sec_size() const { - return _internal_speeds_mm_per_sec().size(); + return speeds_mm_per_sec_.size(); } inline int MoveToPositionRequest::speeds_mm_per_sec_size() const { return _internal_speeds_mm_per_sec_size(); } inline void MoveToPositionRequest::clear_speeds_mm_per_sec() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.speeds_mm_per_sec_.Clear(); + speeds_mm_per_sec_.Clear(); +} +inline double MoveToPositionRequest::_internal_speeds_mm_per_sec(int index) const { + return speeds_mm_per_sec_.Get(index); } inline double MoveToPositionRequest::speeds_mm_per_sec(int index) const { // @@protoc_insertion_point(field_get:viam.component.gantry.v1.MoveToPositionRequest.speeds_mm_per_sec) - return _internal_speeds_mm_per_sec().Get(index); + return _internal_speeds_mm_per_sec(index); } inline void MoveToPositionRequest::set_speeds_mm_per_sec(int index, double value) { - _internal_mutable_speeds_mm_per_sec()->Set(index, value); + speeds_mm_per_sec_.Set(index, value); // @@protoc_insertion_point(field_set:viam.component.gantry.v1.MoveToPositionRequest.speeds_mm_per_sec) } +inline void MoveToPositionRequest::_internal_add_speeds_mm_per_sec(double value) { + speeds_mm_per_sec_.Add(value); +} inline void MoveToPositionRequest::add_speeds_mm_per_sec(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_speeds_mm_per_sec()->Add(value); + _internal_add_speeds_mm_per_sec(value); // @@protoc_insertion_point(field_add:viam.component.gantry.v1.MoveToPositionRequest.speeds_mm_per_sec) } -inline const ::google::protobuf::RepeatedField& MoveToPositionRequest::speeds_mm_per_sec() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& +MoveToPositionRequest::_internal_speeds_mm_per_sec() const { + return speeds_mm_per_sec_; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& +MoveToPositionRequest::speeds_mm_per_sec() const { // @@protoc_insertion_point(field_list:viam.component.gantry.v1.MoveToPositionRequest.speeds_mm_per_sec) return _internal_speeds_mm_per_sec(); } -inline ::google::protobuf::RepeatedField* MoveToPositionRequest::mutable_speeds_mm_per_sec() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* +MoveToPositionRequest::_internal_mutable_speeds_mm_per_sec() { + return &speeds_mm_per_sec_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* +MoveToPositionRequest::mutable_speeds_mm_per_sec() { // @@protoc_insertion_point(field_mutable_list:viam.component.gantry.v1.MoveToPositionRequest.speeds_mm_per_sec) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _internal_mutable_speeds_mm_per_sec(); } -inline const ::google::protobuf::RepeatedField& MoveToPositionRequest::_internal_speeds_mm_per_sec() - const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.speeds_mm_per_sec_; -} -inline ::google::protobuf::RepeatedField* MoveToPositionRequest::_internal_mutable_speeds_mm_per_sec() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.speeds_mm_per_sec_; -} // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool MoveToPositionRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool MoveToPositionRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& MoveToPositionRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& MoveToPositionRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& MoveToPositionRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& MoveToPositionRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.gantry.v1.MoveToPositionRequest.extra) return _internal_extra(); } -inline void MoveToPositionRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void MoveToPositionRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.gantry.v1.MoveToPositionRequest.extra) } -inline ::google::protobuf::Struct* MoveToPositionRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveToPositionRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* MoveToPositionRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveToPositionRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.gantry.v1.MoveToPositionRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* MoveToPositionRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveToPositionRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* MoveToPositionRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveToPositionRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.gantry.v1.MoveToPositionRequest.extra) return _msg; } -inline void MoveToPositionRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void MoveToPositionRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.gantry.v1.MoveToPositionRequest.extra) } @@ -2997,145 +2612,136 @@ inline void MoveToPositionRequest::set_allocated_extra(::google::protobuf::Struc // string name = 1 [json_name = "name"]; inline void HomeRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& HomeRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& HomeRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.gantry.v1.HomeRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void HomeRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void HomeRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.gantry.v1.HomeRequest.name) } -inline std::string* HomeRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* HomeRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.gantry.v1.HomeRequest.name) return _s; } inline const std::string& HomeRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void HomeRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* HomeRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* HomeRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.gantry.v1.HomeRequest.name) - return _impl_.name_.Release(); -} -inline void HomeRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void HomeRequest::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.gantry.v1.HomeRequest.name) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool HomeRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool HomeRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& HomeRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& HomeRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& HomeRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& HomeRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.gantry.v1.HomeRequest.extra) return _internal_extra(); } -inline void HomeRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void HomeRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.gantry.v1.HomeRequest.extra) } -inline ::google::protobuf::Struct* HomeRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* HomeRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* HomeRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* HomeRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.gantry.v1.HomeRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* HomeRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* HomeRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* HomeRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* HomeRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.gantry.v1.HomeRequest.extra) return _msg; } -inline void HomeRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void HomeRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.gantry.v1.HomeRequest.extra) } @@ -3145,26 +2751,23 @@ inline void HomeRequest::set_allocated_extra(::google::protobuf::Struct* value) // bool homed = 1 [json_name = "homed"]; inline void HomeResponse::clear_homed() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.homed_ = false; + homed_ = false; +} +inline bool HomeResponse::_internal_homed() const { + return homed_; } inline bool HomeResponse::homed() const { // @@protoc_insertion_point(field_get:viam.component.gantry.v1.HomeResponse.homed) return _internal_homed(); } +inline void HomeResponse::_internal_set_homed(bool value) { + + homed_ = value; +} inline void HomeResponse::set_homed(bool value) { _internal_set_homed(value); // @@protoc_insertion_point(field_set:viam.component.gantry.v1.HomeResponse.homed) } -inline bool HomeResponse::_internal_homed() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.homed_; -} -inline void HomeResponse::_internal_set_homed(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.homed_ = value; -} // ------------------------------------------------------------------- @@ -3172,145 +2775,136 @@ inline void HomeResponse::_internal_set_homed(bool value) { // string name = 1 [json_name = "name"]; inline void GetLengthsRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& GetLengthsRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetLengthsRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.gantry.v1.GetLengthsRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetLengthsRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetLengthsRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.gantry.v1.GetLengthsRequest.name) } -inline std::string* GetLengthsRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetLengthsRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.gantry.v1.GetLengthsRequest.name) return _s; } inline const std::string& GetLengthsRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void GetLengthsRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* GetLengthsRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* GetLengthsRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.gantry.v1.GetLengthsRequest.name) - return _impl_.name_.Release(); -} -inline void GetLengthsRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void GetLengthsRequest::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.gantry.v1.GetLengthsRequest.name) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetLengthsRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool GetLengthsRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& GetLengthsRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetLengthsRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& GetLengthsRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetLengthsRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.gantry.v1.GetLengthsRequest.extra) return _internal_extra(); } -inline void GetLengthsRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void GetLengthsRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.gantry.v1.GetLengthsRequest.extra) } -inline ::google::protobuf::Struct* GetLengthsRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetLengthsRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* GetLengthsRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetLengthsRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.gantry.v1.GetLengthsRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* GetLengthsRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetLengthsRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* GetLengthsRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetLengthsRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.gantry.v1.GetLengthsRequest.extra) return _msg; } -inline void GetLengthsRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetLengthsRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.gantry.v1.GetLengthsRequest.extra) } @@ -3320,48 +2914,50 @@ inline void GetLengthsRequest::set_allocated_extra(::google::protobuf::Struct* v // repeated double lengths_mm = 1 [json_name = "lengthsMm"]; inline int GetLengthsResponse::_internal_lengths_mm_size() const { - return _internal_lengths_mm().size(); + return lengths_mm_.size(); } inline int GetLengthsResponse::lengths_mm_size() const { return _internal_lengths_mm_size(); } inline void GetLengthsResponse::clear_lengths_mm() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.lengths_mm_.Clear(); + lengths_mm_.Clear(); +} +inline double GetLengthsResponse::_internal_lengths_mm(int index) const { + return lengths_mm_.Get(index); } inline double GetLengthsResponse::lengths_mm(int index) const { // @@protoc_insertion_point(field_get:viam.component.gantry.v1.GetLengthsResponse.lengths_mm) - return _internal_lengths_mm().Get(index); + return _internal_lengths_mm(index); } inline void GetLengthsResponse::set_lengths_mm(int index, double value) { - _internal_mutable_lengths_mm()->Set(index, value); + lengths_mm_.Set(index, value); // @@protoc_insertion_point(field_set:viam.component.gantry.v1.GetLengthsResponse.lengths_mm) } +inline void GetLengthsResponse::_internal_add_lengths_mm(double value) { + lengths_mm_.Add(value); +} inline void GetLengthsResponse::add_lengths_mm(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_lengths_mm()->Add(value); + _internal_add_lengths_mm(value); // @@protoc_insertion_point(field_add:viam.component.gantry.v1.GetLengthsResponse.lengths_mm) } -inline const ::google::protobuf::RepeatedField& GetLengthsResponse::lengths_mm() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& +GetLengthsResponse::_internal_lengths_mm() const { + return lengths_mm_; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& +GetLengthsResponse::lengths_mm() const { // @@protoc_insertion_point(field_list:viam.component.gantry.v1.GetLengthsResponse.lengths_mm) return _internal_lengths_mm(); } -inline ::google::protobuf::RepeatedField* GetLengthsResponse::mutable_lengths_mm() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* +GetLengthsResponse::_internal_mutable_lengths_mm() { + return &lengths_mm_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* +GetLengthsResponse::mutable_lengths_mm() { // @@protoc_insertion_point(field_mutable_list:viam.component.gantry.v1.GetLengthsResponse.lengths_mm) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _internal_mutable_lengths_mm(); } -inline const ::google::protobuf::RepeatedField& GetLengthsResponse::_internal_lengths_mm() - const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.lengths_mm_; -} -inline ::google::protobuf::RepeatedField* GetLengthsResponse::_internal_mutable_lengths_mm() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.lengths_mm_; -} // ------------------------------------------------------------------- @@ -3369,145 +2965,136 @@ inline ::google::protobuf::RepeatedField* GetLengthsResponse::_internal_ // string name = 1 [json_name = "name"]; inline void StopRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& StopRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& StopRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.gantry.v1.StopRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void StopRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void StopRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.gantry.v1.StopRequest.name) } -inline std::string* StopRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* StopRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.gantry.v1.StopRequest.name) return _s; } inline const std::string& StopRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void StopRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* StopRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* StopRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.gantry.v1.StopRequest.name) - return _impl_.name_.Release(); -} -inline void StopRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void StopRequest::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.gantry.v1.StopRequest.name) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool StopRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool StopRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& StopRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& StopRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& StopRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& StopRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.gantry.v1.StopRequest.extra) return _internal_extra(); } -inline void StopRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void StopRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.gantry.v1.StopRequest.extra) } -inline ::google::protobuf::Struct* StopRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* StopRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* StopRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* StopRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.gantry.v1.StopRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* StopRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* StopRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* StopRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* StopRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.gantry.v1.StopRequest.extra) return _msg; } -inline void StopRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void StopRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.gantry.v1.StopRequest.extra) } @@ -3521,116 +3108,117 @@ inline void StopRequest::set_allocated_extra(::google::protobuf::Struct* value) // repeated double positions_mm = 1 [json_name = "positionsMm"]; inline int Status::_internal_positions_mm_size() const { - return _internal_positions_mm().size(); + return positions_mm_.size(); } inline int Status::positions_mm_size() const { return _internal_positions_mm_size(); } inline void Status::clear_positions_mm() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.positions_mm_.Clear(); + positions_mm_.Clear(); +} +inline double Status::_internal_positions_mm(int index) const { + return positions_mm_.Get(index); } inline double Status::positions_mm(int index) const { // @@protoc_insertion_point(field_get:viam.component.gantry.v1.Status.positions_mm) - return _internal_positions_mm().Get(index); + return _internal_positions_mm(index); } inline void Status::set_positions_mm(int index, double value) { - _internal_mutable_positions_mm()->Set(index, value); + positions_mm_.Set(index, value); // @@protoc_insertion_point(field_set:viam.component.gantry.v1.Status.positions_mm) } +inline void Status::_internal_add_positions_mm(double value) { + positions_mm_.Add(value); +} inline void Status::add_positions_mm(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_positions_mm()->Add(value); + _internal_add_positions_mm(value); // @@protoc_insertion_point(field_add:viam.component.gantry.v1.Status.positions_mm) } -inline const ::google::protobuf::RepeatedField& Status::positions_mm() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& +Status::_internal_positions_mm() const { + return positions_mm_; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& +Status::positions_mm() const { // @@protoc_insertion_point(field_list:viam.component.gantry.v1.Status.positions_mm) return _internal_positions_mm(); } -inline ::google::protobuf::RepeatedField* Status::mutable_positions_mm() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* +Status::_internal_mutable_positions_mm() { + return &positions_mm_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* +Status::mutable_positions_mm() { // @@protoc_insertion_point(field_mutable_list:viam.component.gantry.v1.Status.positions_mm) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _internal_mutable_positions_mm(); } -inline const ::google::protobuf::RepeatedField& Status::_internal_positions_mm() - const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.positions_mm_; -} -inline ::google::protobuf::RepeatedField* Status::_internal_mutable_positions_mm() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.positions_mm_; -} // repeated double lengths_mm = 2 [json_name = "lengthsMm"]; inline int Status::_internal_lengths_mm_size() const { - return _internal_lengths_mm().size(); + return lengths_mm_.size(); } inline int Status::lengths_mm_size() const { return _internal_lengths_mm_size(); } inline void Status::clear_lengths_mm() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.lengths_mm_.Clear(); + lengths_mm_.Clear(); +} +inline double Status::_internal_lengths_mm(int index) const { + return lengths_mm_.Get(index); } inline double Status::lengths_mm(int index) const { // @@protoc_insertion_point(field_get:viam.component.gantry.v1.Status.lengths_mm) - return _internal_lengths_mm().Get(index); + return _internal_lengths_mm(index); } inline void Status::set_lengths_mm(int index, double value) { - _internal_mutable_lengths_mm()->Set(index, value); + lengths_mm_.Set(index, value); // @@protoc_insertion_point(field_set:viam.component.gantry.v1.Status.lengths_mm) } +inline void Status::_internal_add_lengths_mm(double value) { + lengths_mm_.Add(value); +} inline void Status::add_lengths_mm(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_lengths_mm()->Add(value); + _internal_add_lengths_mm(value); // @@protoc_insertion_point(field_add:viam.component.gantry.v1.Status.lengths_mm) } -inline const ::google::protobuf::RepeatedField& Status::lengths_mm() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& +Status::_internal_lengths_mm() const { + return lengths_mm_; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& +Status::lengths_mm() const { // @@protoc_insertion_point(field_list:viam.component.gantry.v1.Status.lengths_mm) return _internal_lengths_mm(); } -inline ::google::protobuf::RepeatedField* Status::mutable_lengths_mm() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* +Status::_internal_mutable_lengths_mm() { + return &lengths_mm_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* +Status::mutable_lengths_mm() { // @@protoc_insertion_point(field_mutable_list:viam.component.gantry.v1.Status.lengths_mm) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _internal_mutable_lengths_mm(); } -inline const ::google::protobuf::RepeatedField& Status::_internal_lengths_mm() - const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.lengths_mm_; -} -inline ::google::protobuf::RepeatedField* Status::_internal_mutable_lengths_mm() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.lengths_mm_; -} // bool is_moving = 3 [json_name = "isMoving"]; inline void Status::clear_is_moving() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.is_moving_ = false; + is_moving_ = false; +} +inline bool Status::_internal_is_moving() const { + return is_moving_; } inline bool Status::is_moving() const { // @@protoc_insertion_point(field_get:viam.component.gantry.v1.Status.is_moving) return _internal_is_moving(); } +inline void Status::_internal_set_is_moving(bool value) { + + is_moving_ = value; +} inline void Status::set_is_moving(bool value) { _internal_set_is_moving(value); // @@protoc_insertion_point(field_set:viam.component.gantry.v1.Status.is_moving) } -inline bool Status::_internal_is_moving() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.is_moving_; -} -inline void Status::_internal_set_is_moving(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.is_moving_ = value; -} // ------------------------------------------------------------------- @@ -3638,54 +3226,51 @@ inline void Status::_internal_set_is_moving(bool value) { // string name = 1 [json_name = "name"]; inline void IsMovingRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& IsMovingRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& IsMovingRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.gantry.v1.IsMovingRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void IsMovingRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void IsMovingRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.gantry.v1.IsMovingRequest.name) } -inline std::string* IsMovingRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* IsMovingRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.gantry.v1.IsMovingRequest.name) return _s; } inline const std::string& IsMovingRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void IsMovingRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* IsMovingRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* IsMovingRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.gantry.v1.IsMovingRequest.name) - return _impl_.name_.Release(); -} -inline void IsMovingRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void IsMovingRequest::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.gantry.v1.IsMovingRequest.name) } @@ -3695,40 +3280,60 @@ inline void IsMovingRequest::set_allocated_name(std::string* value) { // bool is_moving = 1 [json_name = "isMoving"]; inline void IsMovingResponse::clear_is_moving() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.is_moving_ = false; + is_moving_ = false; +} +inline bool IsMovingResponse::_internal_is_moving() const { + return is_moving_; } inline bool IsMovingResponse::is_moving() const { // @@protoc_insertion_point(field_get:viam.component.gantry.v1.IsMovingResponse.is_moving) return _internal_is_moving(); } +inline void IsMovingResponse::_internal_set_is_moving(bool value) { + + is_moving_ = value; +} inline void IsMovingResponse::set_is_moving(bool value) { _internal_set_is_moving(value); // @@protoc_insertion_point(field_set:viam.component.gantry.v1.IsMovingResponse.is_moving) } -inline bool IsMovingResponse::_internal_is_moving() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.is_moving_; -} -inline void IsMovingResponse::_internal_set_is_moving(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.is_moving_ = value; -} #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) + } // namespace v1 } // namespace gantry } // namespace component } // namespace viam - // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_component_2fgantry_2fv1_2fgantry_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_component_2fgantry_2fv1_2fgantry_2eproto diff --git a/src/viam/api/component/generic/v1/generic.grpc.pb.cc b/src/viam/api/component/generic/v1/generic.grpc.pb.cc index a2abeebb5..c112ce0e6 100644 --- a/src/viam/api/component/generic/v1/generic.grpc.pb.cc +++ b/src/viam/api/component/generic/v1/generic.grpc.pb.cc @@ -6,19 +6,19 @@ #include "component/generic/v1/generic.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace component { namespace generic { @@ -31,68 +31,78 @@ static const char* GenericService_method_names[] = { std::unique_ptr< GenericService::Stub> GenericService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { (void)options; - std::unique_ptr< GenericService::Stub> stub(new GenericService::Stub(channel, options)); + std::unique_ptr< GenericService::Stub> stub(new GenericService::Stub(channel)); return stub; } -GenericService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) - : channel_(channel), rpcmethod_DoCommand_(GenericService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetGeometries_(GenericService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) +GenericService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_DoCommand_(GenericService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetGeometries_(GenericService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status GenericService::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); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DoCommand_, context, request, response); } -void GenericService::Stub::async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); +void GenericService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); } -void GenericService::Stub::async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); +void GenericService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* GenericService::Stub::PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::common::v1::DoCommandResponse, ::viam::common::v1::DoCommandRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DoCommand_, context, request); +void GenericService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); +} + +void GenericService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* GenericService::Stub::AsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncDoCommandRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::DoCommandResponse>::Create(channel_.get(), cq, rpcmethod_DoCommand_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* GenericService::Stub::PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::DoCommandResponse>::Create(channel_.get(), cq, rpcmethod_DoCommand_, context, request, false); } ::grpc::Status GenericService::Stub::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::viam::common::v1::GetGeometriesResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetGeometries_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetGeometries_, context, request, response); } -void GenericService::Stub::async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, std::move(f)); +void GenericService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, std::move(f)); } -void GenericService::Stub::async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, reactor); +void GenericService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>* GenericService::Stub::PrepareAsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::common::v1::GetGeometriesResponse, ::viam::common::v1::GetGeometriesRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetGeometries_, context, request); +void GenericService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, reactor); +} + +void GenericService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>* GenericService::Stub::AsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetGeometriesRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::GetGeometriesResponse>::Create(channel_.get(), cq, rpcmethod_GetGeometries_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>* GenericService::Stub::PrepareAsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::GetGeometriesResponse>::Create(channel_.get(), cq, rpcmethod_GetGeometries_, context, request, false); } GenericService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( GenericService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< GenericService::Service, ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< GenericService::Service, ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( [](GenericService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::common::v1::DoCommandRequest* req, ::viam::common::v1::DoCommandResponse* resp) { return service->DoCommand(ctx, req, resp); @@ -100,9 +110,9 @@ GenericService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( GenericService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< GenericService::Service, ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< GenericService::Service, ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( [](GenericService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::common::v1::GetGeometriesRequest* req, ::viam::common::v1::GetGeometriesResponse* resp) { return service->GetGeometries(ctx, req, resp); diff --git a/src/viam/api/component/generic/v1/generic.grpc.pb.h b/src/viam/api/component/generic/v1/generic.grpc.pb.h index d7079d3ed..b21bbf55a 100644 --- a/src/viam/api/component/generic/v1/generic.grpc.pb.h +++ b/src/viam/api/component/generic/v1/generic.grpc.pb.h @@ -7,23 +7,24 @@ #include "component/generic/v1/generic.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace component { @@ -55,20 +56,44 @@ class GenericService 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)); } - class async_interface { + class experimental_async_interface { public: - virtual ~async_interface() {} + virtual ~experimental_async_interface() {} // 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 ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // 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 ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif }; - typedef class async_interface experimental_async_interface; - virtual class async_interface* async() { return nullptr; } - class async_interface* experimental_async() { return async(); } - private: + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef class experimental_async_interface async_interface; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + async_interface* async() { return experimental_async(); } + #endif + virtual class experimental_async_interface* experimental_async() { return nullptr; } + private: 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; @@ -76,7 +101,7 @@ class GenericService final { }; class Stub final : public StubInterface { public: - Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); ::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)); @@ -91,24 +116,44 @@ class GenericService 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)); } - class async final : - public StubInterface::async_interface { + class experimental_async final : + public StubInterface::experimental_async_interface { public: 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 ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif 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 ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif private: friend class Stub; - explicit async(Stub* stub): stub_(stub) { } + explicit experimental_async(Stub* stub): stub_(stub) { } Stub* stub() { return stub_; } Stub* stub_; }; - class async* async() override { return &async_stub_; } + class experimental_async_interface* experimental_async() override { return &async_stub_; } private: std::shared_ptr< ::grpc::ChannelInterface> channel_; - class async async_stub_{this}; + class experimental_async async_stub_{this}; ::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; @@ -169,22 +214,36 @@ class GenericService final { }; typedef WithAsyncMethod_DoCommand > AsyncService; template - class WithCallbackMethod_DoCommand : public BaseClass { + class ExperimentalWithCallbackMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_DoCommand() { - ::grpc::Service::MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( + ExperimentalWithCallbackMethod_DoCommand() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(0, + new ::grpc_impl::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); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + 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::experimental::MessageAllocator< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(0); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_DoCommand() override { + ~ExperimentalWithCallbackMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -192,26 +251,46 @@ class GenericService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DoCommand( - ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DoCommand( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetGeometries : public BaseClass { + class ExperimentalWithCallbackMethod_GetGeometries : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetGeometries() { - ::grpc::Service::MarkMethodCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( + ExperimentalWithCallbackMethod_GetGeometries() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response) { return this->GetGeometries(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response) { return this->GetGeometries(context, request, response); }));} void SetMessageAllocatorFor_GetGeometries( - ::grpc::MessageAllocator< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(1); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetGeometries() override { + ~ExperimentalWithCallbackMethod_GetGeometries() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -219,11 +298,20 @@ class GenericService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetGeometries( - ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::GetGeometriesRequest* /*request*/, ::viam::common::v1::GetGeometriesResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::GetGeometriesRequest* /*request*/, ::viam::common::v1::GetGeometriesResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetGeometries( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::common::v1::GetGeometriesRequest* /*request*/, ::viam::common::v1::GetGeometriesResponse* /*response*/) + #endif + { return nullptr; } }; - typedef WithCallbackMethod_DoCommand > CallbackService; - typedef CallbackService ExperimentalCallbackService; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef ExperimentalWithCallbackMethod_DoCommand > CallbackService; + #endif + + typedef ExperimentalWithCallbackMethod_DoCommand > ExperimentalCallbackService; template class WithGenericMethod_DoCommand : public BaseClass { private: @@ -299,17 +387,27 @@ class GenericService final { } }; template - class WithRawCallbackMethod_DoCommand : public BaseClass { + class ExperimentalWithRawCallbackMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_DoCommand() { - ::grpc::Service::MarkMethodRawCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_DoCommand() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DoCommand(context, request, response); })); - } - ~WithRawCallbackMethod_DoCommand() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DoCommand(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -317,21 +415,37 @@ class GenericService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DoCommand( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DoCommand( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetGeometries : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetGeometries : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetGeometries() { - ::grpc::Service::MarkMethodRawCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetGeometries() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetGeometries(context, request, response); })); - } - ~WithRawCallbackMethod_GetGeometries() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetGeometries(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetGeometries() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -339,8 +453,14 @@ class GenericService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetGeometries( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetGeometries( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template class WithStreamedUnaryMethod_DoCommand : public BaseClass { @@ -351,8 +471,8 @@ class GenericService final { ::grpc::Service::MarkMethodStreamed(0, new ::grpc::internal::StreamedUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* streamer) { return this->StreamedDoCommand(context, streamer); @@ -378,8 +498,8 @@ class GenericService final { ::grpc::Service::MarkMethodStreamed(1, new ::grpc::internal::StreamedUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>* streamer) { return this->StreamedGetGeometries(context, streamer); diff --git a/src/viam/api/component/generic/v1/generic.pb.cc b/src/viam/api/component/generic/v1/generic.pb.cc index 15adc60ba..35f698f31 100644 --- a/src/viam/api/component/generic/v1/generic.pb.cc +++ b/src/viam/api/component/generic/v1/generic.pb.cc @@ -4,22 +4,22 @@ #include "component/generic/v1/generic.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace viam { namespace component { namespace generic { @@ -28,85 +28,58 @@ namespace v1 { } // namespace generic } // namespace component } // namespace viam -static constexpr const ::_pb::EnumDescriptor** - file_level_enum_descriptors_component_2fgeneric_2fv1_2fgeneric_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_component_2fgeneric_2fv1_2fgeneric_2eproto = nullptr; -const ::uint32_t TableStruct_component_2fgeneric_2fv1_2fgeneric_2eproto::offsets[1] = {}; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_component_2fgeneric_2fv1_2fgeneric_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_component_2fgeneric_2fv1_2fgeneric_2eproto = nullptr; +const uint32_t TableStruct_component_2fgeneric_2fv1_2fgeneric_2eproto::offsets[1] = {}; static constexpr ::_pbi::MigrationSchema* schemas = nullptr; static constexpr ::_pb::Message* const* file_default_instances = nullptr; -const char descriptor_table_protodef_component_2fgeneric_2fv1_2fgeneric_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n\"component/generic/v1/generic.proto\022\031vi" - "am.component.generic.v1\032\026common/v1/commo" - "n.proto\032\034google/api/annotations.proto2\266\002" - "\n\016GenericService\022\212\001\n\tDoCommand\022 .viam.co" - "mmon.v1.DoCommandRequest\032!.viam.common.v" - "1.DoCommandResponse\"8\202\323\344\223\0022\"0/viam/api/v" - "1/component/generic/{name}/do_command\022\226\001" - "\n\rGetGeometries\022$.viam.common.v1.GetGeom" - "etriesRequest\032%.viam.common.v1.GetGeomet" - "riesResponse\"8\202\323\344\223\0022\0220/viam/api/v1/compo" - "nent/generic/{name}/geometriesB\332\001\n\035com.v" - "iam.component.generic.v1B\014GenericProtoP\001" - "Z$go.viam.com/api/component/generic/v1\242\002" - "\003VCG\252\002\031Viam.Component.Generic.V1\312\002\031Viam\\" - "Component\\Generic\\V1\342\002%Viam\\Component\\Ge" - "neric\\V1\\GPBMetadata\352\002\034Viam::Component::" - "Generic::V1b\006proto3" -}; -static const ::_pbi::DescriptorTable* const descriptor_table_component_2fgeneric_2fv1_2fgeneric_2eproto_deps[2] = - { - &::descriptor_table_common_2fv1_2fcommon_2eproto, - &::descriptor_table_google_2fapi_2fannotations_2eproto, + +const char descriptor_table_protodef_component_2fgeneric_2fv1_2fgeneric_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\"component/generic/v1/generic.proto\022\031vi" + "am.component.generic.v1\032\026common/v1/commo" + "n.proto\032\034google/api/annotations.proto2\266\002" + "\n\016GenericService\022\212\001\n\tDoCommand\022 .viam.co" + "mmon.v1.DoCommandRequest\032!.viam.common.v" + "1.DoCommandResponse\"8\202\323\344\223\0022\"0/viam/api/v" + "1/component/generic/{name}/do_command\022\226\001" + "\n\rGetGeometries\022$.viam.common.v1.GetGeom" + "etriesRequest\032%.viam.common.v1.GetGeomet" + "riesResponse\"8\202\323\344\223\0022\0220/viam/api/v1/compo" + "nent/generic/{name}/geometriesBE\n\035com.vi" + "am.component.generic.v1Z$go.viam.com/api" + "/component/generic/v1b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_component_2fgeneric_2fv1_2fgeneric_2eproto_deps[2] = { + &::descriptor_table_common_2fv1_2fcommon_2eproto, + &::descriptor_table_google_2fapi_2fannotations_2eproto, }; -static ::absl::once_flag descriptor_table_component_2fgeneric_2fv1_2fgeneric_2eproto_once; +static ::_pbi::once_flag descriptor_table_component_2fgeneric_2fv1_2fgeneric_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_component_2fgeneric_2fv1_2fgeneric_2eproto = { - false, - false, - 659, - descriptor_table_protodef_component_2fgeneric_2fv1_2fgeneric_2eproto, + false, false, 509, descriptor_table_protodef_component_2fgeneric_2fv1_2fgeneric_2eproto, "component/generic/v1/generic.proto", - &descriptor_table_component_2fgeneric_2fv1_2fgeneric_2eproto_once, - descriptor_table_component_2fgeneric_2fv1_2fgeneric_2eproto_deps, - 2, - 0, - schemas, - file_default_instances, - TableStruct_component_2fgeneric_2fv1_2fgeneric_2eproto::offsets, - nullptr, - file_level_enum_descriptors_component_2fgeneric_2fv1_2fgeneric_2eproto, + &descriptor_table_component_2fgeneric_2fv1_2fgeneric_2eproto_once, descriptor_table_component_2fgeneric_2fv1_2fgeneric_2eproto_deps, 2, 0, + schemas, file_default_instances, TableStruct_component_2fgeneric_2fv1_2fgeneric_2eproto::offsets, + nullptr, file_level_enum_descriptors_component_2fgeneric_2fv1_2fgeneric_2eproto, file_level_service_descriptors_component_2fgeneric_2fv1_2fgeneric_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_component_2fgeneric_2fv1_2fgeneric_2eproto_getter() { return &descriptor_table_component_2fgeneric_2fv1_2fgeneric_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_component_2fgeneric_2fv1_2fgeneric_2eproto(&descriptor_table_component_2fgeneric_2fv1_2fgeneric_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_component_2fgeneric_2fv1_2fgeneric_2eproto(&descriptor_table_component_2fgeneric_2fv1_2fgeneric_2eproto); namespace viam { namespace component { namespace generic { namespace v1 { + // @@protoc_insertion_point(namespace_scope) } // namespace v1 } // namespace generic } // namespace component } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/component/generic/v1/generic.pb.h b/src/viam/api/component/generic/v1/generic.pb.h index 66f4829ae..8faed1402 100644 --- a/src/viam/api/component/generic/v1/generic.pb.h +++ b/src/viam/api/component/generic/v1/generic.pb.h @@ -1,65 +1,51 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: component/generic/v1/generic.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_component_2fgeneric_2fv1_2fgeneric_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_component_2fgeneric_2fv1_2fgeneric_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_component_2fgeneric_2fv1_2fgeneric_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_component_2fgeneric_2fv1_2fgeneric_2eproto #include #include -#include -#include -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export #include "common/v1/common.pb.h" #include "google/api/annotations.pb.h" // @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - +#include #define PROTOBUF_INTERNAL_EXPORT_component_2fgeneric_2fv1_2fgeneric_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_component_2fgeneric_2fv1_2fgeneric_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_component_2fgeneric_2fv1_2fgeneric_2eproto; -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_component_2fgeneric_2fv1_2fgeneric_2eproto; +PROTOBUF_NAMESPACE_OPEN +PROTOBUF_NAMESPACE_CLOSE namespace viam { namespace component { namespace generic { @@ -68,32 +54,27 @@ namespace v1 { // =================================================================== - // =================================================================== - - // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ // @@protoc_insertion_point(namespace_scope) + } // namespace v1 } // namespace generic } // namespace component } // namespace viam - // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_component_2fgeneric_2fv1_2fgeneric_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_component_2fgeneric_2fv1_2fgeneric_2eproto diff --git a/src/viam/api/component/gripper/v1/gripper.grpc.pb.cc b/src/viam/api/component/gripper/v1/gripper.grpc.pb.cc index fd5854e6f..1ff539b51 100644 --- a/src/viam/api/component/gripper/v1/gripper.grpc.pb.cc +++ b/src/viam/api/component/gripper/v1/gripper.grpc.pb.cc @@ -6,19 +6,19 @@ #include "component/gripper/v1/gripper.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace component { namespace gripper { @@ -35,164 +35,194 @@ static const char* GripperService_method_names[] = { std::unique_ptr< GripperService::Stub> GripperService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { (void)options; - std::unique_ptr< GripperService::Stub> stub(new GripperService::Stub(channel, options)); + std::unique_ptr< GripperService::Stub> stub(new GripperService::Stub(channel)); return stub; } -GripperService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) - : channel_(channel), rpcmethod_Open_(GripperService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_Grab_(GripperService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_Stop_(GripperService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_IsMoving_(GripperService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_DoCommand_(GripperService_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetGeometries_(GripperService_method_names[5], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) +GripperService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_Open_(GripperService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_Grab_(GripperService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_Stop_(GripperService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_IsMoving_(GripperService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DoCommand_(GripperService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetGeometries_(GripperService_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status GripperService::Stub::Open(::grpc::ClientContext* context, const ::viam::component::gripper::v1::OpenRequest& request, ::viam::component::gripper::v1::OpenResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::gripper::v1::OpenRequest, ::viam::component::gripper::v1::OpenResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Open_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_Open_, context, request, response); } -void GripperService::Stub::async::Open(::grpc::ClientContext* context, const ::viam::component::gripper::v1::OpenRequest* request, ::viam::component::gripper::v1::OpenResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::gripper::v1::OpenRequest, ::viam::component::gripper::v1::OpenResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Open_, context, request, response, std::move(f)); +void GripperService::Stub::experimental_async::Open(::grpc::ClientContext* context, const ::viam::component::gripper::v1::OpenRequest* request, ::viam::component::gripper::v1::OpenResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Open_, context, request, response, std::move(f)); } -void GripperService::Stub::async::Open(::grpc::ClientContext* context, const ::viam::component::gripper::v1::OpenRequest* request, ::viam::component::gripper::v1::OpenResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Open_, context, request, response, reactor); +void GripperService::Stub::experimental_async::Open(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gripper::v1::OpenResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Open_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::gripper::v1::OpenResponse>* GripperService::Stub::PrepareAsyncOpenRaw(::grpc::ClientContext* context, const ::viam::component::gripper::v1::OpenRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::gripper::v1::OpenResponse, ::viam::component::gripper::v1::OpenRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Open_, context, request); +void GripperService::Stub::experimental_async::Open(::grpc::ClientContext* context, const ::viam::component::gripper::v1::OpenRequest* request, ::viam::component::gripper::v1::OpenResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Open_, context, request, response, reactor); +} + +void GripperService::Stub::experimental_async::Open(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gripper::v1::OpenResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Open_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::gripper::v1::OpenResponse>* GripperService::Stub::AsyncOpenRaw(::grpc::ClientContext* context, const ::viam::component::gripper::v1::OpenRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncOpenRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::gripper::v1::OpenResponse>::Create(channel_.get(), cq, rpcmethod_Open_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::gripper::v1::OpenResponse>* GripperService::Stub::PrepareAsyncOpenRaw(::grpc::ClientContext* context, const ::viam::component::gripper::v1::OpenRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::gripper::v1::OpenResponse>::Create(channel_.get(), cq, rpcmethod_Open_, context, request, false); } ::grpc::Status GripperService::Stub::Grab(::grpc::ClientContext* context, const ::viam::component::gripper::v1::GrabRequest& request, ::viam::component::gripper::v1::GrabResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::gripper::v1::GrabRequest, ::viam::component::gripper::v1::GrabResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Grab_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_Grab_, context, request, response); } -void GripperService::Stub::async::Grab(::grpc::ClientContext* context, const ::viam::component::gripper::v1::GrabRequest* request, ::viam::component::gripper::v1::GrabResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::gripper::v1::GrabRequest, ::viam::component::gripper::v1::GrabResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Grab_, context, request, response, std::move(f)); +void GripperService::Stub::experimental_async::Grab(::grpc::ClientContext* context, const ::viam::component::gripper::v1::GrabRequest* request, ::viam::component::gripper::v1::GrabResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Grab_, context, request, response, std::move(f)); } -void GripperService::Stub::async::Grab(::grpc::ClientContext* context, const ::viam::component::gripper::v1::GrabRequest* request, ::viam::component::gripper::v1::GrabResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Grab_, context, request, response, reactor); +void GripperService::Stub::experimental_async::Grab(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gripper::v1::GrabResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Grab_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::gripper::v1::GrabResponse>* GripperService::Stub::PrepareAsyncGrabRaw(::grpc::ClientContext* context, const ::viam::component::gripper::v1::GrabRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::gripper::v1::GrabResponse, ::viam::component::gripper::v1::GrabRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Grab_, context, request); +void GripperService::Stub::experimental_async::Grab(::grpc::ClientContext* context, const ::viam::component::gripper::v1::GrabRequest* request, ::viam::component::gripper::v1::GrabResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Grab_, context, request, response, reactor); +} + +void GripperService::Stub::experimental_async::Grab(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gripper::v1::GrabResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Grab_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::gripper::v1::GrabResponse>* GripperService::Stub::AsyncGrabRaw(::grpc::ClientContext* context, const ::viam::component::gripper::v1::GrabRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGrabRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::gripper::v1::GrabResponse>::Create(channel_.get(), cq, rpcmethod_Grab_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::gripper::v1::GrabResponse>* GripperService::Stub::PrepareAsyncGrabRaw(::grpc::ClientContext* context, const ::viam::component::gripper::v1::GrabRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::gripper::v1::GrabResponse>::Create(channel_.get(), cq, rpcmethod_Grab_, context, request, false); } ::grpc::Status GripperService::Stub::Stop(::grpc::ClientContext* context, const ::viam::component::gripper::v1::StopRequest& request, ::viam::component::gripper::v1::StopResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::gripper::v1::StopRequest, ::viam::component::gripper::v1::StopResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Stop_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_Stop_, context, request, response); } -void GripperService::Stub::async::Stop(::grpc::ClientContext* context, const ::viam::component::gripper::v1::StopRequest* request, ::viam::component::gripper::v1::StopResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::gripper::v1::StopRequest, ::viam::component::gripper::v1::StopResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, std::move(f)); +void GripperService::Stub::experimental_async::Stop(::grpc::ClientContext* context, const ::viam::component::gripper::v1::StopRequest* request, ::viam::component::gripper::v1::StopResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, std::move(f)); } -void GripperService::Stub::async::Stop(::grpc::ClientContext* context, const ::viam::component::gripper::v1::StopRequest* request, ::viam::component::gripper::v1::StopResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, reactor); +void GripperService::Stub::experimental_async::Stop(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gripper::v1::StopResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::gripper::v1::StopResponse>* GripperService::Stub::PrepareAsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::gripper::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::gripper::v1::StopResponse, ::viam::component::gripper::v1::StopRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Stop_, context, request); +void GripperService::Stub::experimental_async::Stop(::grpc::ClientContext* context, const ::viam::component::gripper::v1::StopRequest* request, ::viam::component::gripper::v1::StopResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, reactor); +} + +void GripperService::Stub::experimental_async::Stop(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gripper::v1::StopResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::gripper::v1::StopResponse>* GripperService::Stub::AsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::gripper::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncStopRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::gripper::v1::StopResponse>::Create(channel_.get(), cq, rpcmethod_Stop_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::gripper::v1::StopResponse>* GripperService::Stub::PrepareAsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::gripper::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::gripper::v1::StopResponse>::Create(channel_.get(), cq, rpcmethod_Stop_, context, request, false); } ::grpc::Status GripperService::Stub::IsMoving(::grpc::ClientContext* context, const ::viam::component::gripper::v1::IsMovingRequest& request, ::viam::component::gripper::v1::IsMovingResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::gripper::v1::IsMovingRequest, ::viam::component::gripper::v1::IsMovingResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_IsMoving_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_IsMoving_, context, request, response); } -void GripperService::Stub::async::IsMoving(::grpc::ClientContext* context, const ::viam::component::gripper::v1::IsMovingRequest* request, ::viam::component::gripper::v1::IsMovingResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::gripper::v1::IsMovingRequest, ::viam::component::gripper::v1::IsMovingResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_IsMoving_, context, request, response, std::move(f)); +void GripperService::Stub::experimental_async::IsMoving(::grpc::ClientContext* context, const ::viam::component::gripper::v1::IsMovingRequest* request, ::viam::component::gripper::v1::IsMovingResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_IsMoving_, context, request, response, std::move(f)); } -void GripperService::Stub::async::IsMoving(::grpc::ClientContext* context, const ::viam::component::gripper::v1::IsMovingRequest* request, ::viam::component::gripper::v1::IsMovingResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_IsMoving_, context, request, response, reactor); +void GripperService::Stub::experimental_async::IsMoving(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gripper::v1::IsMovingResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_IsMoving_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::gripper::v1::IsMovingResponse>* GripperService::Stub::PrepareAsyncIsMovingRaw(::grpc::ClientContext* context, const ::viam::component::gripper::v1::IsMovingRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::gripper::v1::IsMovingResponse, ::viam::component::gripper::v1::IsMovingRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_IsMoving_, context, request); +void GripperService::Stub::experimental_async::IsMoving(::grpc::ClientContext* context, const ::viam::component::gripper::v1::IsMovingRequest* request, ::viam::component::gripper::v1::IsMovingResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_IsMoving_, context, request, response, reactor); +} + +void GripperService::Stub::experimental_async::IsMoving(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gripper::v1::IsMovingResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_IsMoving_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::gripper::v1::IsMovingResponse>* GripperService::Stub::AsyncIsMovingRaw(::grpc::ClientContext* context, const ::viam::component::gripper::v1::IsMovingRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncIsMovingRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::gripper::v1::IsMovingResponse>::Create(channel_.get(), cq, rpcmethod_IsMoving_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::gripper::v1::IsMovingResponse>* GripperService::Stub::PrepareAsyncIsMovingRaw(::grpc::ClientContext* context, const ::viam::component::gripper::v1::IsMovingRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::gripper::v1::IsMovingResponse>::Create(channel_.get(), cq, rpcmethod_IsMoving_, context, request, false); } ::grpc::Status GripperService::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); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DoCommand_, context, request, response); } -void GripperService::Stub::async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); +void GripperService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); } -void GripperService::Stub::async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); +void GripperService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* GripperService::Stub::PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::common::v1::DoCommandResponse, ::viam::common::v1::DoCommandRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DoCommand_, context, request); +void GripperService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); +} + +void GripperService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* GripperService::Stub::AsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncDoCommandRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::DoCommandResponse>::Create(channel_.get(), cq, rpcmethod_DoCommand_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* GripperService::Stub::PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::DoCommandResponse>::Create(channel_.get(), cq, rpcmethod_DoCommand_, context, request, false); } ::grpc::Status GripperService::Stub::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::viam::common::v1::GetGeometriesResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetGeometries_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetGeometries_, context, request, response); } -void GripperService::Stub::async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, std::move(f)); +void GripperService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, std::move(f)); } -void GripperService::Stub::async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, reactor); +void GripperService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>* GripperService::Stub::PrepareAsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::common::v1::GetGeometriesResponse, ::viam::common::v1::GetGeometriesRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetGeometries_, context, request); +void GripperService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, reactor); +} + +void GripperService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>* GripperService::Stub::AsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetGeometriesRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::GetGeometriesResponse>::Create(channel_.get(), cq, rpcmethod_GetGeometries_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>* GripperService::Stub::PrepareAsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::GetGeometriesResponse>::Create(channel_.get(), cq, rpcmethod_GetGeometries_, context, request, false); } GripperService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( GripperService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< GripperService::Service, ::viam::component::gripper::v1::OpenRequest, ::viam::component::gripper::v1::OpenResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< GripperService::Service, ::viam::component::gripper::v1::OpenRequest, ::viam::component::gripper::v1::OpenResponse>( [](GripperService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::gripper::v1::OpenRequest* req, ::viam::component::gripper::v1::OpenResponse* resp) { return service->Open(ctx, req, resp); @@ -200,9 +230,9 @@ GripperService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( GripperService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< GripperService::Service, ::viam::component::gripper::v1::GrabRequest, ::viam::component::gripper::v1::GrabResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< GripperService::Service, ::viam::component::gripper::v1::GrabRequest, ::viam::component::gripper::v1::GrabResponse>( [](GripperService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::gripper::v1::GrabRequest* req, ::viam::component::gripper::v1::GrabResponse* resp) { return service->Grab(ctx, req, resp); @@ -210,9 +240,9 @@ GripperService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( GripperService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< GripperService::Service, ::viam::component::gripper::v1::StopRequest, ::viam::component::gripper::v1::StopResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< GripperService::Service, ::viam::component::gripper::v1::StopRequest, ::viam::component::gripper::v1::StopResponse>( [](GripperService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::gripper::v1::StopRequest* req, ::viam::component::gripper::v1::StopResponse* resp) { return service->Stop(ctx, req, resp); @@ -220,9 +250,9 @@ GripperService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( GripperService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< GripperService::Service, ::viam::component::gripper::v1::IsMovingRequest, ::viam::component::gripper::v1::IsMovingResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< GripperService::Service, ::viam::component::gripper::v1::IsMovingRequest, ::viam::component::gripper::v1::IsMovingResponse>( [](GripperService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::gripper::v1::IsMovingRequest* req, ::viam::component::gripper::v1::IsMovingResponse* resp) { return service->IsMoving(ctx, req, resp); @@ -230,9 +260,9 @@ GripperService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( GripperService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< GripperService::Service, ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< GripperService::Service, ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( [](GripperService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::common::v1::DoCommandRequest* req, ::viam::common::v1::DoCommandResponse* resp) { return service->DoCommand(ctx, req, resp); @@ -240,9 +270,9 @@ GripperService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( GripperService_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< GripperService::Service, ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< GripperService::Service, ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( [](GripperService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::common::v1::GetGeometriesRequest* req, ::viam::common::v1::GetGeometriesResponse* resp) { return service->GetGeometries(ctx, req, resp); diff --git a/src/viam/api/component/gripper/v1/gripper.grpc.pb.h b/src/viam/api/component/gripper/v1/gripper.grpc.pb.h index 484d37f24..77869954c 100644 --- a/src/viam/api/component/gripper/v1/gripper.grpc.pb.h +++ b/src/viam/api/component/gripper/v1/gripper.grpc.pb.h @@ -7,23 +7,24 @@ #include "component/gripper/v1/gripper.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace component { @@ -87,32 +88,96 @@ class GripperService 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)); } - class async_interface { + class experimental_async_interface { public: - virtual ~async_interface() {} + virtual ~experimental_async_interface() {} // Open opens a gripper of the underlying robot. virtual void Open(::grpc::ClientContext* context, const ::viam::component::gripper::v1::OpenRequest* request, ::viam::component::gripper::v1::OpenResponse* response, std::function) = 0; + virtual void Open(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gripper::v1::OpenResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void Open(::grpc::ClientContext* context, const ::viam::component::gripper::v1::OpenRequest* request, ::viam::component::gripper::v1::OpenResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void Open(::grpc::ClientContext* context, const ::viam::component::gripper::v1::OpenRequest* request, ::viam::component::gripper::v1::OpenResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void Open(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gripper::v1::OpenResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void Open(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gripper::v1::OpenResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Grab requests a gripper of the underlying robot to grab. virtual void Grab(::grpc::ClientContext* context, const ::viam::component::gripper::v1::GrabRequest* request, ::viam::component::gripper::v1::GrabResponse* response, std::function) = 0; + virtual void Grab(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gripper::v1::GrabResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void Grab(::grpc::ClientContext* context, const ::viam::component::gripper::v1::GrabRequest* request, ::viam::component::gripper::v1::GrabResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void Grab(::grpc::ClientContext* context, const ::viam::component::gripper::v1::GrabRequest* request, ::viam::component::gripper::v1::GrabResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void Grab(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gripper::v1::GrabResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void Grab(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gripper::v1::GrabResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Stop stops a robot's gripper virtual void Stop(::grpc::ClientContext* context, const ::viam::component::gripper::v1::StopRequest* request, ::viam::component::gripper::v1::StopResponse* response, std::function) = 0; + virtual void Stop(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gripper::v1::StopResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void Stop(::grpc::ClientContext* context, const ::viam::component::gripper::v1::StopRequest* request, ::viam::component::gripper::v1::StopResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void Stop(::grpc::ClientContext* context, const ::viam::component::gripper::v1::StopRequest* request, ::viam::component::gripper::v1::StopResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void Stop(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gripper::v1::StopResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void Stop(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gripper::v1::StopResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // IsMoving reports if a component is in motion virtual void IsMoving(::grpc::ClientContext* context, const ::viam::component::gripper::v1::IsMovingRequest* request, ::viam::component::gripper::v1::IsMovingResponse* response, std::function) = 0; + virtual void IsMoving(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gripper::v1::IsMovingResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void IsMoving(::grpc::ClientContext* context, const ::viam::component::gripper::v1::IsMovingRequest* request, ::viam::component::gripper::v1::IsMovingResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void IsMoving(::grpc::ClientContext* context, const ::viam::component::gripper::v1::IsMovingRequest* request, ::viam::component::gripper::v1::IsMovingResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void IsMoving(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gripper::v1::IsMovingResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void IsMoving(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gripper::v1::IsMovingResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // 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 ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // 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 ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif }; - typedef class async_interface experimental_async_interface; - virtual class async_interface* async() { return nullptr; } - class async_interface* experimental_async() { return async(); } - private: + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef class experimental_async_interface async_interface; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + async_interface* async() { return experimental_async(); } + #endif + virtual class experimental_async_interface* experimental_async() { return nullptr; } + private: virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::gripper::v1::OpenResponse>* AsyncOpenRaw(::grpc::ClientContext* context, const ::viam::component::gripper::v1::OpenRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::gripper::v1::OpenResponse>* PrepareAsyncOpenRaw(::grpc::ClientContext* context, const ::viam::component::gripper::v1::OpenRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::gripper::v1::GrabResponse>* AsyncGrabRaw(::grpc::ClientContext* context, const ::viam::component::gripper::v1::GrabRequest& request, ::grpc::CompletionQueue* cq) = 0; @@ -128,7 +193,7 @@ class GripperService final { }; class Stub final : public StubInterface { public: - Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); ::grpc::Status Open(::grpc::ClientContext* context, const ::viam::component::gripper::v1::OpenRequest& request, ::viam::component::gripper::v1::OpenResponse* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::gripper::v1::OpenResponse>> AsyncOpen(::grpc::ClientContext* context, const ::viam::component::gripper::v1::OpenRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::gripper::v1::OpenResponse>>(AsyncOpenRaw(context, request, cq)); @@ -171,32 +236,92 @@ class GripperService 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)); } - class async final : - public StubInterface::async_interface { + class experimental_async final : + public StubInterface::experimental_async_interface { public: void Open(::grpc::ClientContext* context, const ::viam::component::gripper::v1::OpenRequest* request, ::viam::component::gripper::v1::OpenResponse* response, std::function) override; + void Open(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gripper::v1::OpenResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void Open(::grpc::ClientContext* context, const ::viam::component::gripper::v1::OpenRequest* request, ::viam::component::gripper::v1::OpenResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void Open(::grpc::ClientContext* context, const ::viam::component::gripper::v1::OpenRequest* request, ::viam::component::gripper::v1::OpenResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void Open(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gripper::v1::OpenResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void Open(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gripper::v1::OpenResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void Grab(::grpc::ClientContext* context, const ::viam::component::gripper::v1::GrabRequest* request, ::viam::component::gripper::v1::GrabResponse* response, std::function) override; + void Grab(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gripper::v1::GrabResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void Grab(::grpc::ClientContext* context, const ::viam::component::gripper::v1::GrabRequest* request, ::viam::component::gripper::v1::GrabResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void Grab(::grpc::ClientContext* context, const ::viam::component::gripper::v1::GrabRequest* request, ::viam::component::gripper::v1::GrabResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void Grab(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gripper::v1::GrabResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void Grab(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gripper::v1::GrabResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void Stop(::grpc::ClientContext* context, const ::viam::component::gripper::v1::StopRequest* request, ::viam::component::gripper::v1::StopResponse* response, std::function) override; + void Stop(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gripper::v1::StopResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void Stop(::grpc::ClientContext* context, const ::viam::component::gripper::v1::StopRequest* request, ::viam::component::gripper::v1::StopResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void Stop(::grpc::ClientContext* context, const ::viam::component::gripper::v1::StopRequest* request, ::viam::component::gripper::v1::StopResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void Stop(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gripper::v1::StopResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void Stop(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gripper::v1::StopResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void IsMoving(::grpc::ClientContext* context, const ::viam::component::gripper::v1::IsMovingRequest* request, ::viam::component::gripper::v1::IsMovingResponse* response, std::function) override; + void IsMoving(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gripper::v1::IsMovingResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void IsMoving(::grpc::ClientContext* context, const ::viam::component::gripper::v1::IsMovingRequest* request, ::viam::component::gripper::v1::IsMovingResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void IsMoving(::grpc::ClientContext* context, const ::viam::component::gripper::v1::IsMovingRequest* request, ::viam::component::gripper::v1::IsMovingResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void IsMoving(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gripper::v1::IsMovingResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void IsMoving(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::gripper::v1::IsMovingResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif 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 ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif 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 ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif private: friend class Stub; - explicit async(Stub* stub): stub_(stub) { } + explicit experimental_async(Stub* stub): stub_(stub) { } Stub* stub() { return stub_; } Stub* stub_; }; - class async* async() override { return &async_stub_; } + class experimental_async_interface* experimental_async() override { return &async_stub_; } private: std::shared_ptr< ::grpc::ChannelInterface> channel_; - class async async_stub_{this}; + class experimental_async async_stub_{this}; ::grpc::ClientAsyncResponseReader< ::viam::component::gripper::v1::OpenResponse>* AsyncOpenRaw(::grpc::ClientContext* context, const ::viam::component::gripper::v1::OpenRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::component::gripper::v1::OpenResponse>* PrepareAsyncOpenRaw(::grpc::ClientContext* context, const ::viam::component::gripper::v1::OpenRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::component::gripper::v1::GrabResponse>* AsyncGrabRaw(::grpc::ClientContext* context, const ::viam::component::gripper::v1::GrabRequest& request, ::grpc::CompletionQueue* cq) override; @@ -357,22 +482,36 @@ class GripperService final { }; typedef WithAsyncMethod_Open > > > > > AsyncService; template - class WithCallbackMethod_Open : public BaseClass { + class ExperimentalWithCallbackMethod_Open : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_Open() { - ::grpc::Service::MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::gripper::v1::OpenRequest, ::viam::component::gripper::v1::OpenResponse>( + ExperimentalWithCallbackMethod_Open() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::gripper::v1::OpenRequest, ::viam::component::gripper::v1::OpenResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::gripper::v1::OpenRequest* request, ::viam::component::gripper::v1::OpenResponse* response) { return this->Open(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::gripper::v1::OpenRequest* request, ::viam::component::gripper::v1::OpenResponse* response) { return this->Open(context, request, response); }));} void SetMessageAllocatorFor_Open( - ::grpc::MessageAllocator< ::viam::component::gripper::v1::OpenRequest, ::viam::component::gripper::v1::OpenResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::gripper::v1::OpenRequest, ::viam::component::gripper::v1::OpenResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::gripper::v1::OpenRequest, ::viam::component::gripper::v1::OpenResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(0); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::gripper::v1::OpenRequest, ::viam::component::gripper::v1::OpenResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_Open() override { + ~ExperimentalWithCallbackMethod_Open() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -380,26 +519,46 @@ class GripperService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* Open( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::gripper::v1::OpenRequest* /*request*/, ::viam::component::gripper::v1::OpenResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::gripper::v1::OpenRequest* /*request*/, ::viam::component::gripper::v1::OpenResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* Open( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::gripper::v1::OpenRequest* /*request*/, ::viam::component::gripper::v1::OpenResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_Grab : public BaseClass { + class ExperimentalWithCallbackMethod_Grab : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_Grab() { - ::grpc::Service::MarkMethodCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::gripper::v1::GrabRequest, ::viam::component::gripper::v1::GrabResponse>( + ExperimentalWithCallbackMethod_Grab() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::gripper::v1::GrabRequest, ::viam::component::gripper::v1::GrabResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::gripper::v1::GrabRequest* request, ::viam::component::gripper::v1::GrabResponse* response) { return this->Grab(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::gripper::v1::GrabRequest* request, ::viam::component::gripper::v1::GrabResponse* response) { return this->Grab(context, request, response); }));} void SetMessageAllocatorFor_Grab( - ::grpc::MessageAllocator< ::viam::component::gripper::v1::GrabRequest, ::viam::component::gripper::v1::GrabResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::gripper::v1::GrabRequest, ::viam::component::gripper::v1::GrabResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::gripper::v1::GrabRequest, ::viam::component::gripper::v1::GrabResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(1); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::gripper::v1::GrabRequest, ::viam::component::gripper::v1::GrabResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_Grab() override { + ~ExperimentalWithCallbackMethod_Grab() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -407,26 +566,46 @@ class GripperService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* Grab( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::gripper::v1::GrabRequest* /*request*/, ::viam::component::gripper::v1::GrabResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::gripper::v1::GrabRequest* /*request*/, ::viam::component::gripper::v1::GrabResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* Grab( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::gripper::v1::GrabRequest* /*request*/, ::viam::component::gripper::v1::GrabResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_Stop : public BaseClass { + class ExperimentalWithCallbackMethod_Stop : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_Stop() { - ::grpc::Service::MarkMethodCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::gripper::v1::StopRequest, ::viam::component::gripper::v1::StopResponse>( + ExperimentalWithCallbackMethod_Stop() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(2, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::gripper::v1::StopRequest, ::viam::component::gripper::v1::StopResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::gripper::v1::StopRequest* request, ::viam::component::gripper::v1::StopResponse* response) { return this->Stop(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::gripper::v1::StopRequest* request, ::viam::component::gripper::v1::StopResponse* response) { return this->Stop(context, request, response); }));} void SetMessageAllocatorFor_Stop( - ::grpc::MessageAllocator< ::viam::component::gripper::v1::StopRequest, ::viam::component::gripper::v1::StopResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::gripper::v1::StopRequest, ::viam::component::gripper::v1::StopResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::gripper::v1::StopRequest, ::viam::component::gripper::v1::StopResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(2); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::gripper::v1::StopRequest, ::viam::component::gripper::v1::StopResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_Stop() override { + ~ExperimentalWithCallbackMethod_Stop() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -434,26 +613,46 @@ class GripperService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* Stop( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::gripper::v1::StopRequest* /*request*/, ::viam::component::gripper::v1::StopResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::gripper::v1::StopRequest* /*request*/, ::viam::component::gripper::v1::StopResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* Stop( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::gripper::v1::StopRequest* /*request*/, ::viam::component::gripper::v1::StopResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_IsMoving : public BaseClass { + class ExperimentalWithCallbackMethod_IsMoving : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_IsMoving() { - ::grpc::Service::MarkMethodCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::gripper::v1::IsMovingRequest, ::viam::component::gripper::v1::IsMovingResponse>( + ExperimentalWithCallbackMethod_IsMoving() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(3, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::gripper::v1::IsMovingRequest, ::viam::component::gripper::v1::IsMovingResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::gripper::v1::IsMovingRequest* request, ::viam::component::gripper::v1::IsMovingResponse* response) { return this->IsMoving(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::gripper::v1::IsMovingRequest* request, ::viam::component::gripper::v1::IsMovingResponse* response) { return this->IsMoving(context, request, response); }));} void SetMessageAllocatorFor_IsMoving( - ::grpc::MessageAllocator< ::viam::component::gripper::v1::IsMovingRequest, ::viam::component::gripper::v1::IsMovingResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::gripper::v1::IsMovingRequest, ::viam::component::gripper::v1::IsMovingResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::gripper::v1::IsMovingRequest, ::viam::component::gripper::v1::IsMovingResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(3); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::gripper::v1::IsMovingRequest, ::viam::component::gripper::v1::IsMovingResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_IsMoving() override { + ~ExperimentalWithCallbackMethod_IsMoving() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -461,26 +660,46 @@ class GripperService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* IsMoving( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::gripper::v1::IsMovingRequest* /*request*/, ::viam::component::gripper::v1::IsMovingResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::gripper::v1::IsMovingRequest* /*request*/, ::viam::component::gripper::v1::IsMovingResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* IsMoving( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::gripper::v1::IsMovingRequest* /*request*/, ::viam::component::gripper::v1::IsMovingResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_DoCommand : public BaseClass { + class ExperimentalWithCallbackMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_DoCommand() { - ::grpc::Service::MarkMethodCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( + ExperimentalWithCallbackMethod_DoCommand() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(4, + new ::grpc_impl::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); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + 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::experimental::MessageAllocator< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(4); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_DoCommand() override { + ~ExperimentalWithCallbackMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -488,26 +707,46 @@ class GripperService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DoCommand( - ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DoCommand( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetGeometries : public BaseClass { + class ExperimentalWithCallbackMethod_GetGeometries : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetGeometries() { - ::grpc::Service::MarkMethodCallback(5, - new ::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( + ExperimentalWithCallbackMethod_GetGeometries() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(5, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response) { return this->GetGeometries(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response) { return this->GetGeometries(context, request, response); }));} void SetMessageAllocatorFor_GetGeometries( - ::grpc::MessageAllocator< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(5); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(5); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetGeometries() override { + ~ExperimentalWithCallbackMethod_GetGeometries() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -515,11 +754,20 @@ class GripperService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetGeometries( - ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::GetGeometriesRequest* /*request*/, ::viam::common::v1::GetGeometriesResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::GetGeometriesRequest* /*request*/, ::viam::common::v1::GetGeometriesResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetGeometries( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::common::v1::GetGeometriesRequest* /*request*/, ::viam::common::v1::GetGeometriesResponse* /*response*/) + #endif + { return nullptr; } }; - typedef WithCallbackMethod_Open > > > > > CallbackService; - typedef CallbackService ExperimentalCallbackService; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef ExperimentalWithCallbackMethod_Open > > > > > CallbackService; + #endif + + typedef ExperimentalWithCallbackMethod_Open > > > > > ExperimentalCallbackService; template class WithGenericMethod_Open : public BaseClass { private: @@ -743,17 +991,27 @@ class GripperService final { } }; template - class WithRawCallbackMethod_Open : public BaseClass { + class ExperimentalWithRawCallbackMethod_Open : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_Open() { - ::grpc::Service::MarkMethodRawCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_Open() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Open(context, request, response); })); - } - ~WithRawCallbackMethod_Open() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Open(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_Open() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -761,21 +1019,37 @@ class GripperService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* Open( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* Open( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_Grab : public BaseClass { + class ExperimentalWithRawCallbackMethod_Grab : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_Grab() { - ::grpc::Service::MarkMethodRawCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_Grab() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Grab(context, request, response); })); - } - ~WithRawCallbackMethod_Grab() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Grab(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_Grab() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -783,21 +1057,37 @@ class GripperService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* Grab( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* Grab( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_Stop : public BaseClass { + class ExperimentalWithRawCallbackMethod_Stop : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_Stop() { - ::grpc::Service::MarkMethodRawCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_Stop() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(2, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Stop(context, request, response); })); - } - ~WithRawCallbackMethod_Stop() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Stop(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_Stop() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -805,21 +1095,37 @@ class GripperService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* Stop( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* Stop( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_IsMoving : public BaseClass { + class ExperimentalWithRawCallbackMethod_IsMoving : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_IsMoving() { - ::grpc::Service::MarkMethodRawCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_IsMoving() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(3, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->IsMoving(context, request, response); })); - } - ~WithRawCallbackMethod_IsMoving() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->IsMoving(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_IsMoving() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -827,21 +1133,37 @@ class GripperService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* IsMoving( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* IsMoving( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_DoCommand : public BaseClass { + class ExperimentalWithRawCallbackMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_DoCommand() { - ::grpc::Service::MarkMethodRawCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_DoCommand() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(4, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DoCommand(context, request, response); })); - } - ~WithRawCallbackMethod_DoCommand() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DoCommand(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -849,21 +1171,37 @@ class GripperService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DoCommand( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DoCommand( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetGeometries : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetGeometries : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetGeometries() { - ::grpc::Service::MarkMethodRawCallback(5, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetGeometries() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(5, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetGeometries(context, request, response); })); - } - ~WithRawCallbackMethod_GetGeometries() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetGeometries(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetGeometries() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -871,8 +1209,14 @@ class GripperService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetGeometries( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetGeometries( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template class WithStreamedUnaryMethod_Open : public BaseClass { @@ -883,8 +1227,8 @@ class GripperService final { ::grpc::Service::MarkMethodStreamed(0, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::gripper::v1::OpenRequest, ::viam::component::gripper::v1::OpenResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::gripper::v1::OpenRequest, ::viam::component::gripper::v1::OpenResponse>* streamer) { return this->StreamedOpen(context, streamer); @@ -910,8 +1254,8 @@ class GripperService final { ::grpc::Service::MarkMethodStreamed(1, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::gripper::v1::GrabRequest, ::viam::component::gripper::v1::GrabResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::gripper::v1::GrabRequest, ::viam::component::gripper::v1::GrabResponse>* streamer) { return this->StreamedGrab(context, streamer); @@ -937,8 +1281,8 @@ class GripperService final { ::grpc::Service::MarkMethodStreamed(2, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::gripper::v1::StopRequest, ::viam::component::gripper::v1::StopResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::gripper::v1::StopRequest, ::viam::component::gripper::v1::StopResponse>* streamer) { return this->StreamedStop(context, streamer); @@ -964,8 +1308,8 @@ class GripperService final { ::grpc::Service::MarkMethodStreamed(3, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::gripper::v1::IsMovingRequest, ::viam::component::gripper::v1::IsMovingResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::gripper::v1::IsMovingRequest, ::viam::component::gripper::v1::IsMovingResponse>* streamer) { return this->StreamedIsMoving(context, streamer); @@ -991,8 +1335,8 @@ class GripperService final { ::grpc::Service::MarkMethodStreamed(4, new ::grpc::internal::StreamedUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* streamer) { return this->StreamedDoCommand(context, streamer); @@ -1018,8 +1362,8 @@ class GripperService final { ::grpc::Service::MarkMethodStreamed(5, new ::grpc::internal::StreamedUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>* streamer) { return this->StreamedGetGeometries(context, streamer); diff --git a/src/viam/api/component/gripper/v1/gripper.pb.cc b/src/viam/api/component/gripper/v1/gripper.pb.cc index b0e984755..60ef7f2a8 100644 --- a/src/viam/api/component/gripper/v1/gripper.pb.cc +++ b/src/viam/api/component/gripper/v1/gripper.pb.cc @@ -4,603 +4,493 @@ #include "component/gripper/v1/gripper.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace viam { namespace component { namespace gripper { namespace v1 { - template -PROTOBUF_CONSTEXPR StopResponse::StopResponse(::_pbi::ConstantInitialized) {} -struct StopResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR StopResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StopResponseDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR OpenRequest::OpenRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} +struct OpenRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR OpenRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~OpenRequestDefaultTypeInternal() {} union { - StopResponse _instance; + OpenRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopResponseDefaultTypeInternal _StopResponse_default_instance_; - template -PROTOBUF_CONSTEXPR OpenResponse::OpenResponse(::_pbi::ConstantInitialized) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OpenRequestDefaultTypeInternal _OpenRequest_default_instance_; +PROTOBUF_CONSTEXPR OpenResponse::OpenResponse( + ::_pbi::ConstantInitialized){} struct OpenResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR OpenResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR OpenResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~OpenResponseDefaultTypeInternal() {} union { OpenResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OpenResponseDefaultTypeInternal _OpenResponse_default_instance_; - -inline constexpr IsMovingResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : is_moving_{false}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR IsMovingResponse::IsMovingResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct IsMovingResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR IsMovingResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~IsMovingResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OpenResponseDefaultTypeInternal _OpenResponse_default_instance_; +PROTOBUF_CONSTEXPR GrabRequest::GrabRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} +struct GrabRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GrabRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GrabRequestDefaultTypeInternal() {} union { - IsMovingResponse _instance; + GrabRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IsMovingResponseDefaultTypeInternal _IsMovingResponse_default_instance_; - -inline constexpr IsMovingRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR IsMovingRequest::IsMovingRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct IsMovingRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR IsMovingRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~IsMovingRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrabRequestDefaultTypeInternal _GrabRequest_default_instance_; +PROTOBUF_CONSTEXPR GrabResponse::GrabResponse( + ::_pbi::ConstantInitialized) + : extra_(nullptr) + , success_(false){} +struct GrabResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GrabResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GrabResponseDefaultTypeInternal() {} union { - IsMovingRequest _instance; + GrabResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IsMovingRequestDefaultTypeInternal _IsMovingRequest_default_instance_; - -inline constexpr StopRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR StopRequest::StopRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrabResponseDefaultTypeInternal _GrabResponse_default_instance_; +PROTOBUF_CONSTEXPR StopRequest::StopRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} struct StopRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR StopRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR StopRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~StopRequestDefaultTypeInternal() {} union { StopRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopRequestDefaultTypeInternal _StopRequest_default_instance_; - -inline constexpr OpenRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR OpenRequest::OpenRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct OpenRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR OpenRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~OpenRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopRequestDefaultTypeInternal _StopRequest_default_instance_; +PROTOBUF_CONSTEXPR StopResponse::StopResponse( + ::_pbi::ConstantInitialized){} +struct StopResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR StopResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StopResponseDefaultTypeInternal() {} union { - OpenRequest _instance; + StopResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OpenRequestDefaultTypeInternal _OpenRequest_default_instance_; - -inline constexpr GrabResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - extra_{nullptr}, - success_{false} {} - -template -PROTOBUF_CONSTEXPR GrabResponse::GrabResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GrabResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GrabResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GrabResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopResponseDefaultTypeInternal _StopResponse_default_instance_; +PROTOBUF_CONSTEXPR IsMovingRequest::IsMovingRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct IsMovingRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR IsMovingRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~IsMovingRequestDefaultTypeInternal() {} union { - GrabResponse _instance; + IsMovingRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrabResponseDefaultTypeInternal _GrabResponse_default_instance_; - -inline constexpr GrabRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GrabRequest::GrabRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GrabRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GrabRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GrabRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IsMovingRequestDefaultTypeInternal _IsMovingRequest_default_instance_; +PROTOBUF_CONSTEXPR IsMovingResponse::IsMovingResponse( + ::_pbi::ConstantInitialized) + : is_moving_(false){} +struct IsMovingResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR IsMovingResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~IsMovingResponseDefaultTypeInternal() {} union { - GrabRequest _instance; + IsMovingResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrabRequestDefaultTypeInternal _GrabRequest_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IsMovingResponseDefaultTypeInternal _IsMovingResponse_default_instance_; } // namespace v1 } // namespace gripper } // namespace component } // namespace viam static ::_pb::Metadata file_level_metadata_component_2fgripper_2fv1_2fgripper_2eproto[8]; -static constexpr const ::_pb::EnumDescriptor** - file_level_enum_descriptors_component_2fgripper_2fv1_2fgripper_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_component_2fgripper_2fv1_2fgripper_2eproto = nullptr; -const ::uint32_t TableStruct_component_2fgripper_2fv1_2fgripper_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::viam::component::gripper::v1::OpenRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::gripper::v1::OpenRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::gripper::v1::OpenRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::gripper::v1::OpenRequest, _impl_.extra_), - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::gripper::v1::OpenResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::gripper::v1::GrabRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::gripper::v1::GrabRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::gripper::v1::GrabRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::gripper::v1::GrabRequest, _impl_.extra_), - ~0u, - 0, - PROTOBUF_FIELD_OFFSET(::viam::component::gripper::v1::GrabResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::gripper::v1::GrabResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::gripper::v1::GrabResponse, _impl_.success_), - PROTOBUF_FIELD_OFFSET(::viam::component::gripper::v1::GrabResponse, _impl_.extra_), - ~0u, - 0, - PROTOBUF_FIELD_OFFSET(::viam::component::gripper::v1::StopRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::gripper::v1::StopRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::gripper::v1::StopRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::gripper::v1::StopRequest, _impl_.extra_), - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::gripper::v1::StopResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::gripper::v1::IsMovingRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::gripper::v1::IsMovingRequest, _impl_.name_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::gripper::v1::IsMovingResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::gripper::v1::IsMovingResponse, _impl_.is_moving_), +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_component_2fgripper_2fv1_2fgripper_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_component_2fgripper_2fv1_2fgripper_2eproto = nullptr; + +const uint32_t TableStruct_component_2fgripper_2fv1_2fgripper_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::gripper::v1::OpenRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::gripper::v1::OpenRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::gripper::v1::OpenRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::gripper::v1::OpenResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::gripper::v1::GrabRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::gripper::v1::GrabRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::gripper::v1::GrabRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::gripper::v1::GrabResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::gripper::v1::GrabResponse, success_), + PROTOBUF_FIELD_OFFSET(::viam::component::gripper::v1::GrabResponse, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::gripper::v1::StopRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::gripper::v1::StopRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::gripper::v1::StopRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::gripper::v1::StopResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::gripper::v1::IsMovingRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::gripper::v1::IsMovingRequest, name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::gripper::v1::IsMovingResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::gripper::v1::IsMovingResponse, is_moving_), }; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, 10, -1, sizeof(::viam::component::gripper::v1::OpenRequest)}, - {12, -1, -1, sizeof(::viam::component::gripper::v1::OpenResponse)}, - {20, 30, -1, sizeof(::viam::component::gripper::v1::GrabRequest)}, - {32, 42, -1, sizeof(::viam::component::gripper::v1::GrabResponse)}, - {44, 54, -1, sizeof(::viam::component::gripper::v1::StopRequest)}, - {56, -1, -1, sizeof(::viam::component::gripper::v1::StopResponse)}, - {64, -1, -1, sizeof(::viam::component::gripper::v1::IsMovingRequest)}, - {73, -1, -1, sizeof(::viam::component::gripper::v1::IsMovingResponse)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::component::gripper::v1::OpenRequest)}, + { 8, -1, -1, sizeof(::viam::component::gripper::v1::OpenResponse)}, + { 14, -1, -1, sizeof(::viam::component::gripper::v1::GrabRequest)}, + { 22, -1, -1, sizeof(::viam::component::gripper::v1::GrabResponse)}, + { 30, -1, -1, sizeof(::viam::component::gripper::v1::StopRequest)}, + { 38, -1, -1, sizeof(::viam::component::gripper::v1::StopResponse)}, + { 44, -1, -1, sizeof(::viam::component::gripper::v1::IsMovingRequest)}, + { 51, -1, -1, sizeof(::viam::component::gripper::v1::IsMovingResponse)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::viam::component::gripper::v1::_OpenRequest_default_instance_._instance, - &::viam::component::gripper::v1::_OpenResponse_default_instance_._instance, - &::viam::component::gripper::v1::_GrabRequest_default_instance_._instance, - &::viam::component::gripper::v1::_GrabResponse_default_instance_._instance, - &::viam::component::gripper::v1::_StopRequest_default_instance_._instance, - &::viam::component::gripper::v1::_StopResponse_default_instance_._instance, - &::viam::component::gripper::v1::_IsMovingRequest_default_instance_._instance, - &::viam::component::gripper::v1::_IsMovingResponse_default_instance_._instance, -}; -const char descriptor_table_protodef_component_2fgripper_2fv1_2fgripper_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n\"component/gripper/v1/gripper.proto\022\031vi" - "am.component.gripper.v1\032\026common/v1/commo" - "n.proto\032\034google/api/annotations.proto\032\034g" - "oogle/protobuf/struct.proto\"P\n\013OpenReque" - "st\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005extra\030c \001(\0132\027." - "google.protobuf.StructR\005extra\"\016\n\014OpenRes" - "ponse\"P\n\013GrabRequest\022\022\n\004name\030\001 \001(\tR\004name" - "\022-\n\005extra\030c \001(\0132\027.google.protobuf.Struct" - "R\005extra\"W\n\014GrabResponse\022\030\n\007success\030\001 \001(\010" - "R\007success\022-\n\005extra\030c \001(\0132\027.google.protob" - "uf.StructR\005extra\"P\n\013StopRequest\022\022\n\004name\030" - "\001 \001(\tR\004name\022-\n\005extra\030c \001(\0132\027.google.prot" - "obuf.StructR\005extra\"\016\n\014StopResponse\"%\n\017Is" - "MovingRequest\022\022\n\004name\030\001 \001(\tR\004name\"/\n\020IsM" - "ovingResponse\022\033\n\tis_moving\030\001 \001(\010R\010isMovi" - "ng2\207\007\n\016GripperService\022\217\001\n\004Open\022&.viam.co" - "mponent.gripper.v1.OpenRequest\032\'.viam.co" - "mponent.gripper.v1.OpenResponse\"6\240\222)\001\202\323\344" - "\223\002,\032*/viam/api/v1/component/gripper/{nam" - "e}/open\022\217\001\n\004Grab\022&.viam.component.grippe" - "r.v1.GrabRequest\032\'.viam.component.grippe" - "r.v1.GrabResponse\"6\240\222)\001\202\323\344\223\002,\032*/viam/api" - "/v1/component/gripper/{name}/grab\022\213\001\n\004St" - "op\022&.viam.component.gripper.v1.StopReque" - "st\032\'.viam.component.gripper.v1.StopRespo" - "nse\"2\202\323\344\223\002,\"*/viam/api/v1/component/grip" - "per/{name}/stop\022\234\001\n\010IsMoving\022*.viam.comp" - "onent.gripper.v1.IsMovingRequest\032+.viam." - "component.gripper.v1.IsMovingResponse\"7\202" - "\323\344\223\0021\022//viam/api/v1/component/gripper/{n" - "ame}/is_moving\022\212\001\n\tDoCommand\022 .viam.comm" - "on.v1.DoCommandRequest\032!.viam.common.v1." - "DoCommandResponse\"8\202\323\344\223\0022\"0/viam/api/v1/" - "component/gripper/{name}/do_command\022\226\001\n\r" - "GetGeometries\022$.viam.common.v1.GetGeomet" - "riesRequest\032%.viam.common.v1.GetGeometri" - "esResponse\"8\202\323\344\223\0022\0220/viam/api/v1/compone" - "nt/gripper/{name}/geometriesB\332\001\n\035com.via" - "m.component.gripper.v1B\014GripperProtoP\001Z$" - "go.viam.com/api/component/gripper/v1\242\002\003V" - "CG\252\002\031Viam.Component.Gripper.V1\312\002\031Viam\\Co" - "mponent\\Gripper\\V1\342\002%Viam\\Component\\Grip" - "per\\V1\\GPBMetadata\352\002\034Viam::Component::Gr" - "ipper::V1b\006proto3" + &::viam::component::gripper::v1::_OpenRequest_default_instance_._instance, + &::viam::component::gripper::v1::_OpenResponse_default_instance_._instance, + &::viam::component::gripper::v1::_GrabRequest_default_instance_._instance, + &::viam::component::gripper::v1::_GrabResponse_default_instance_._instance, + &::viam::component::gripper::v1::_StopRequest_default_instance_._instance, + &::viam::component::gripper::v1::_StopResponse_default_instance_._instance, + &::viam::component::gripper::v1::_IsMovingRequest_default_instance_._instance, + &::viam::component::gripper::v1::_IsMovingResponse_default_instance_._instance, }; -static const ::_pbi::DescriptorTable* const descriptor_table_component_2fgripper_2fv1_2fgripper_2eproto_deps[3] = - { - &::descriptor_table_common_2fv1_2fcommon_2eproto, - &::descriptor_table_google_2fapi_2fannotations_2eproto, - &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, + +const char descriptor_table_protodef_component_2fgripper_2fv1_2fgripper_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\"component/gripper/v1/gripper.proto\022\031vi" + "am.component.gripper.v1\032\026common/v1/commo" + "n.proto\032\034google/api/annotations.proto\032\034g" + "oogle/protobuf/struct.proto\"P\n\013OpenReque" + "st\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005extra\030c \001(\0132\027." + "google.protobuf.StructR\005extra\"\016\n\014OpenRes" + "ponse\"P\n\013GrabRequest\022\022\n\004name\030\001 \001(\tR\004name" + "\022-\n\005extra\030c \001(\0132\027.google.protobuf.Struct" + "R\005extra\"W\n\014GrabResponse\022\030\n\007success\030\001 \001(\010" + "R\007success\022-\n\005extra\030c \001(\0132\027.google.protob" + "uf.StructR\005extra\"P\n\013StopRequest\022\022\n\004name\030" + "\001 \001(\tR\004name\022-\n\005extra\030c \001(\0132\027.google.prot" + "obuf.StructR\005extra\"\016\n\014StopResponse\"%\n\017Is" + "MovingRequest\022\022\n\004name\030\001 \001(\tR\004name\"/\n\020IsM" + "ovingResponse\022\033\n\tis_moving\030\001 \001(\010R\010isMovi" + "ng2\207\007\n\016GripperService\022\217\001\n\004Open\022&.viam.co" + "mponent.gripper.v1.OpenRequest\032\'.viam.co" + "mponent.gripper.v1.OpenResponse\"6\240\222)\001\202\323\344" + "\223\002,\032*/viam/api/v1/component/gripper/{nam" + "e}/open\022\217\001\n\004Grab\022&.viam.component.grippe" + "r.v1.GrabRequest\032\'.viam.component.grippe" + "r.v1.GrabResponse\"6\240\222)\001\202\323\344\223\002,\032*/viam/api" + "/v1/component/gripper/{name}/grab\022\213\001\n\004St" + "op\022&.viam.component.gripper.v1.StopReque" + "st\032\'.viam.component.gripper.v1.StopRespo" + "nse\"2\202\323\344\223\002,\"*/viam/api/v1/component/grip" + "per/{name}/stop\022\234\001\n\010IsMoving\022*.viam.comp" + "onent.gripper.v1.IsMovingRequest\032+.viam." + "component.gripper.v1.IsMovingResponse\"7\202" + "\323\344\223\0021\022//viam/api/v1/component/gripper/{n" + "ame}/is_moving\022\212\001\n\tDoCommand\022 .viam.comm" + "on.v1.DoCommandRequest\032!.viam.common.v1." + "DoCommandResponse\"8\202\323\344\223\0022\"0/viam/api/v1/" + "component/gripper/{name}/do_command\022\226\001\n\r" + "GetGeometries\022$.viam.common.v1.GetGeomet" + "riesRequest\032%.viam.common.v1.GetGeometri" + "esResponse\"8\202\323\344\223\0022\0220/viam/api/v1/compone" + "nt/gripper/{name}/geometriesBE\n\035com.viam" + ".component.gripper.v1Z$go.viam.com/api/c" + "omponent/gripper/v1b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_component_2fgripper_2fv1_2fgripper_2eproto_deps[3] = { + &::descriptor_table_common_2fv1_2fcommon_2eproto, + &::descriptor_table_google_2fapi_2fannotations_2eproto, + &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, }; -static ::absl::once_flag descriptor_table_component_2fgripper_2fv1_2fgripper_2eproto_once; +static ::_pbi::once_flag descriptor_table_component_2fgripper_2fv1_2fgripper_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_component_2fgripper_2fv1_2fgripper_2eproto = { - false, - false, - 1737, - descriptor_table_protodef_component_2fgripper_2fv1_2fgripper_2eproto, + false, false, 1587, descriptor_table_protodef_component_2fgripper_2fv1_2fgripper_2eproto, "component/gripper/v1/gripper.proto", - &descriptor_table_component_2fgripper_2fv1_2fgripper_2eproto_once, - descriptor_table_component_2fgripper_2fv1_2fgripper_2eproto_deps, - 3, - 8, - schemas, - file_default_instances, - TableStruct_component_2fgripper_2fv1_2fgripper_2eproto::offsets, - file_level_metadata_component_2fgripper_2fv1_2fgripper_2eproto, - file_level_enum_descriptors_component_2fgripper_2fv1_2fgripper_2eproto, + &descriptor_table_component_2fgripper_2fv1_2fgripper_2eproto_once, descriptor_table_component_2fgripper_2fv1_2fgripper_2eproto_deps, 3, 8, + schemas, file_default_instances, TableStruct_component_2fgripper_2fv1_2fgripper_2eproto::offsets, + file_level_metadata_component_2fgripper_2fv1_2fgripper_2eproto, file_level_enum_descriptors_component_2fgripper_2fv1_2fgripper_2eproto, file_level_service_descriptors_component_2fgripper_2fv1_2fgripper_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_component_2fgripper_2fv1_2fgripper_2eproto_getter() { return &descriptor_table_component_2fgripper_2fv1_2fgripper_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_component_2fgripper_2fv1_2fgripper_2eproto(&descriptor_table_component_2fgripper_2fv1_2fgripper_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_component_2fgripper_2fv1_2fgripper_2eproto(&descriptor_table_component_2fgripper_2fv1_2fgripper_2eproto); namespace viam { namespace component { namespace gripper { namespace v1 { + // =================================================================== class OpenRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(OpenRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const OpenRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const OpenRequest* msg); }; -const ::google::protobuf::Struct& OpenRequest::_Internal::extra(const OpenRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +OpenRequest::_Internal::extra(const OpenRequest* msg) { + return *msg->extra_; } void OpenRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -OpenRequest::OpenRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +OpenRequest::OpenRequest(::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.gripper.v1.OpenRequest) } -inline PROTOBUF_NDEBUG_INLINE OpenRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -OpenRequest::OpenRequest( - ::google::protobuf::Arena* arena, - const OpenRequest& from) - : ::google::protobuf::Message(arena) { - OpenRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +OpenRequest::OpenRequest(const OpenRequest& 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.gripper.v1.OpenRequest) } -inline PROTOBUF_NDEBUG_INLINE OpenRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} -inline void OpenRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void OpenRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + OpenRequest::~OpenRequest() { // @@protoc_insertion_point(destructor:viam.component.gripper.v1.OpenRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void OpenRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void OpenRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void OpenRequest::Clear() { +void OpenRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.gripper.v1.OpenRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* OpenRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* OpenRequest::_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.gripper.v1.OpenRequest.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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 2, 1, 50, 7> OpenRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(OpenRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_OpenRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(OpenRequest, _impl_.name_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(OpenRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 1, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(OpenRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(OpenRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\45\4\0\0\0\0\0\0" - "viam.component.gripper.v1.OpenRequest" - "name" - }}, -}; - -::uint8_t* OpenRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* OpenRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.gripper.v1.OpenRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.gripper.v1.OpenRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.gripper.v1.OpenRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.gripper.v1.OpenRequest) return target; } -::size_t OpenRequest::ByteSizeLong() const { +size_t OpenRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.gripper.v1.OpenRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData OpenRequest::_class_data_ = { - OpenRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData OpenRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + OpenRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* OpenRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*OpenRequest::GetClassData() const { return &_class_data_; } + +void OpenRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void OpenRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.gripper.v1.OpenRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void OpenRequest::MergeFrom(const OpenRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.gripper.v1.OpenRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void OpenRequest::CopyFrom(const OpenRequest& from) { @@ -610,47 +500,42 @@ void OpenRequest::CopyFrom(const OpenRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool OpenRequest::IsInitialized() const { +bool OpenRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* OpenRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void OpenRequest::InternalSwap(OpenRequest* PROTOBUF_RESTRICT other) { +void OpenRequest::InternalSwap(OpenRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.extra_, other->_impl_.extra_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(extra_, other->extra_); } -::google::protobuf::Metadata OpenRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata OpenRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fgripper_2fv1_2fgripper_2eproto_getter, &descriptor_table_component_2fgripper_2fv1_2fgripper_2eproto_once, file_level_metadata_component_2fgripper_2fv1_2fgripper_2eproto[0]); } + // =================================================================== class OpenResponse::_Internal { public: }; -OpenResponse::OpenResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +OpenResponse::OpenResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.component.gripper.v1.OpenResponse) } -OpenResponse::OpenResponse( - ::google::protobuf::Arena* arena, - const OpenResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - OpenResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +OpenResponse::OpenResponse(const OpenResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.component.gripper.v1.OpenResponse) } @@ -658,233 +543,236 @@ OpenResponse::OpenResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData OpenResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*OpenResponse::GetClassData() const { return &_class_data_; } + -::google::protobuf::Metadata OpenResponse::GetMetadata() const { + + +::PROTOBUF_NAMESPACE_ID::Metadata OpenResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fgripper_2fv1_2fgripper_2eproto_getter, &descriptor_table_component_2fgripper_2fv1_2fgripper_2eproto_once, file_level_metadata_component_2fgripper_2fv1_2fgripper_2eproto[1]); } + // =================================================================== class GrabRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GrabRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const GrabRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GrabRequest* msg); }; -const ::google::protobuf::Struct& GrabRequest::_Internal::extra(const GrabRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +GrabRequest::_Internal::extra(const GrabRequest* msg) { + return *msg->extra_; } void GrabRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -GrabRequest::GrabRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GrabRequest::GrabRequest(::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.gripper.v1.GrabRequest) } -inline PROTOBUF_NDEBUG_INLINE GrabRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -GrabRequest::GrabRequest( - ::google::protobuf::Arena* arena, - const GrabRequest& from) - : ::google::protobuf::Message(arena) { - GrabRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +GrabRequest::GrabRequest(const GrabRequest& 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.gripper.v1.GrabRequest) } -inline PROTOBUF_NDEBUG_INLINE GrabRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} -inline void GrabRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void GrabRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + GrabRequest::~GrabRequest() { // @@protoc_insertion_point(destructor:viam.component.gripper.v1.GrabRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GrabRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; } -PROTOBUF_NOINLINE void GrabRequest::Clear() { +void GrabRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GrabRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.gripper.v1.GrabRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GrabRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GrabRequest::_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.gripper.v1.GrabRequest.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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 2, 1, 50, 7> GrabRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GrabRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GrabRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GrabRequest, _impl_.name_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(GrabRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 1, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(GrabRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(GrabRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\45\4\0\0\0\0\0\0" - "viam.component.gripper.v1.GrabRequest" - "name" - }}, -}; - -::uint8_t* GrabRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GrabRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.gripper.v1.GrabRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.gripper.v1.GrabRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.gripper.v1.GrabRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.gripper.v1.GrabRequest) return target; } -::size_t GrabRequest::ByteSizeLong() const { +size_t GrabRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.gripper.v1.GrabRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GrabRequest::_class_data_ = { - GrabRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GrabRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GrabRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GrabRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GrabRequest::GetClassData() const { return &_class_data_; } + +void GrabRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GrabRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.gripper.v1.GrabRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GrabRequest::MergeFrom(const GrabRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.gripper.v1.GrabRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GrabRequest::CopyFrom(const GrabRequest& from) { @@ -894,244 +782,223 @@ void GrabRequest::CopyFrom(const GrabRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GrabRequest::IsInitialized() const { +bool GrabRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GrabRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GrabRequest::InternalSwap(GrabRequest* PROTOBUF_RESTRICT other) { +void GrabRequest::InternalSwap(GrabRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.extra_, other->_impl_.extra_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(extra_, other->extra_); } -::google::protobuf::Metadata GrabRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GrabRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fgripper_2fv1_2fgripper_2eproto_getter, &descriptor_table_component_2fgripper_2fv1_2fgripper_2eproto_once, file_level_metadata_component_2fgripper_2fv1_2fgripper_2eproto[2]); } + // =================================================================== class GrabResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GrabResponse, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const GrabResponse* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GrabResponse* msg); }; -const ::google::protobuf::Struct& GrabResponse::_Internal::extra(const GrabResponse* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +GrabResponse::_Internal::extra(const GrabResponse* msg) { + return *msg->extra_; } void GrabResponse::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -GrabResponse::GrabResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GrabResponse::GrabResponse(::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.gripper.v1.GrabResponse) } -inline PROTOBUF_NDEBUG_INLINE GrabResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -GrabResponse::GrabResponse( - ::google::protobuf::Arena* arena, - const GrabResponse& from) - : ::google::protobuf::Message(arena) { - GrabResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - _impl_.success_ = from._impl_.success_; - +GrabResponse::GrabResponse(const GrabResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_extra()) { + extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.extra_); + } else { + extra_ = nullptr; + } + success_ = from.success_; // @@protoc_insertion_point(copy_constructor:viam.component.gripper.v1.GrabResponse) } -inline PROTOBUF_NDEBUG_INLINE GrabResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void GrabResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, extra_), - 0, - offsetof(Impl_, success_) - - offsetof(Impl_, extra_) + - sizeof(Impl_::success_)); +inline void GrabResponse::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&extra_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&success_) - + reinterpret_cast(&extra_)) + sizeof(success_)); } + GrabResponse::~GrabResponse() { // @@protoc_insertion_point(destructor:viam.component.gripper.v1.GrabResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GrabResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete extra_; } -PROTOBUF_NOINLINE void GrabResponse::Clear() { +void GrabResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GrabResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.gripper.v1.GrabResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; } - _impl_.success_ = false; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GrabResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + extra_ = nullptr; + success_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GrabResponse::_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) { + // bool success = 1 [json_name = "success"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + success_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 2, 1, 0, 7> GrabResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GrabResponse, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GrabResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // bool success = 1 [json_name = "success"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(GrabResponse, _impl_.success_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(GrabResponse, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 1, - 65535, 65535 - }}, {{ - // bool success = 1 [json_name = "success"]; - {PROTOBUF_FIELD_OFFSET(GrabResponse, _impl_.success_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(GrabResponse, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - }}, -}; - -::uint8_t* GrabResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GrabResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.gripper.v1.GrabResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // bool success = 1 [json_name = "success"]; if (this->_internal_success() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 1, this->_internal_success(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_success(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.gripper.v1.GrabResponse) return target; } -::size_t GrabResponse::ByteSizeLong() const { +size_t GrabResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.gripper.v1.GrabResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } // bool success = 1 [json_name = "success"]; if (this->_internal_success() != 0) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GrabResponse::_class_data_ = { - GrabResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GrabResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GrabResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GrabResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GrabResponse::GetClassData() const { return &_class_data_; } + +void GrabResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GrabResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.gripper.v1.GrabResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GrabResponse::MergeFrom(const GrabResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.gripper.v1.GrabResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } if (from._internal_success() != 0) { - _this->_internal_set_success(from._internal_success()); + _internal_set_success(from._internal_success()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GrabResponse::CopyFrom(const GrabResponse& from) { @@ -1141,248 +1008,239 @@ void GrabResponse::CopyFrom(const GrabResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GrabResponse::IsInitialized() const { +bool GrabResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GrabResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GrabResponse::InternalSwap(GrabResponse* PROTOBUF_RESTRICT other) { +void GrabResponse::InternalSwap(GrabResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(GrabResponse, _impl_.success_) - + sizeof(GrabResponse::_impl_.success_) - - PROTOBUF_FIELD_OFFSET(GrabResponse, _impl_.extra_)>( - reinterpret_cast(&_impl_.extra_), - reinterpret_cast(&other->_impl_.extra_)); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GrabResponse, success_) + + sizeof(GrabResponse::success_) + - PROTOBUF_FIELD_OFFSET(GrabResponse, extra_)>( + reinterpret_cast(&extra_), + reinterpret_cast(&other->extra_)); } -::google::protobuf::Metadata GrabResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GrabResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fgripper_2fv1_2fgripper_2eproto_getter, &descriptor_table_component_2fgripper_2fv1_2fgripper_2eproto_once, file_level_metadata_component_2fgripper_2fv1_2fgripper_2eproto[3]); } + // =================================================================== class StopRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(StopRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const StopRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const StopRequest* msg); }; -const ::google::protobuf::Struct& StopRequest::_Internal::extra(const StopRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +StopRequest::_Internal::extra(const StopRequest* msg) { + return *msg->extra_; } void StopRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -StopRequest::StopRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +StopRequest::StopRequest(::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.gripper.v1.StopRequest) } -inline PROTOBUF_NDEBUG_INLINE StopRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -StopRequest::StopRequest( - ::google::protobuf::Arena* arena, - const StopRequest& from) - : ::google::protobuf::Message(arena) { - StopRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +StopRequest::StopRequest(const StopRequest& 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.gripper.v1.StopRequest) } -inline PROTOBUF_NDEBUG_INLINE StopRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} -inline void StopRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void StopRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + StopRequest::~StopRequest() { // @@protoc_insertion_point(destructor:viam.component.gripper.v1.StopRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void StopRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void StopRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void StopRequest::Clear() { +void StopRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.gripper.v1.StopRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* StopRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* StopRequest::_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.gripper.v1.StopRequest.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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 2, 1, 50, 7> StopRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(StopRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_StopRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(StopRequest, _impl_.name_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(StopRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 1, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(StopRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(StopRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\45\4\0\0\0\0\0\0" - "viam.component.gripper.v1.StopRequest" - "name" - }}, -}; - -::uint8_t* StopRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* StopRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.gripper.v1.StopRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.gripper.v1.StopRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.gripper.v1.StopRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.gripper.v1.StopRequest) return target; } -::size_t StopRequest::ByteSizeLong() const { +size_t StopRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.gripper.v1.StopRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData StopRequest::_class_data_ = { - StopRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StopRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + StopRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* StopRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StopRequest::GetClassData() const { return &_class_data_; } + +void StopRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void StopRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.gripper.v1.StopRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void StopRequest::MergeFrom(const StopRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.gripper.v1.StopRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void StopRequest::CopyFrom(const StopRequest& from) { @@ -1392,47 +1250,42 @@ void StopRequest::CopyFrom(const StopRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool StopRequest::IsInitialized() const { +bool StopRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* StopRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void StopRequest::InternalSwap(StopRequest* PROTOBUF_RESTRICT other) { +void StopRequest::InternalSwap(StopRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.extra_, other->_impl_.extra_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(extra_, other->extra_); } -::google::protobuf::Metadata StopRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata StopRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fgripper_2fv1_2fgripper_2eproto_getter, &descriptor_table_component_2fgripper_2fv1_2fgripper_2eproto_once, file_level_metadata_component_2fgripper_2fv1_2fgripper_2eproto[4]); } + // =================================================================== class StopResponse::_Internal { public: }; -StopResponse::StopResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +StopResponse::StopResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.component.gripper.v1.StopResponse) } -StopResponse::StopResponse( - ::google::protobuf::Arena* arena, - const StopResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - StopResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +StopResponse::StopResponse(const StopResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.component.gripper.v1.StopResponse) } @@ -1440,176 +1293,189 @@ StopResponse::StopResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StopResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StopResponse::GetClassData() const { return &_class_data_; } + -::google::protobuf::Metadata StopResponse::GetMetadata() const { + + +::PROTOBUF_NAMESPACE_ID::Metadata StopResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fgripper_2fv1_2fgripper_2eproto_getter, &descriptor_table_component_2fgripper_2fv1_2fgripper_2eproto_once, file_level_metadata_component_2fgripper_2fv1_2fgripper_2eproto[5]); } + // =================================================================== class IsMovingRequest::_Internal { public: }; -IsMovingRequest::IsMovingRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +IsMovingRequest::IsMovingRequest(::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.gripper.v1.IsMovingRequest) } -inline PROTOBUF_NDEBUG_INLINE IsMovingRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : name_(arena, from.name_), - _cached_size_{0} {} - -IsMovingRequest::IsMovingRequest( - ::google::protobuf::Arena* arena, - const IsMovingRequest& from) - : ::google::protobuf::Message(arena) { - IsMovingRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +IsMovingRequest::IsMovingRequest(const IsMovingRequest& 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()); + } // @@protoc_insertion_point(copy_constructor:viam.component.gripper.v1.IsMovingRequest) } -inline PROTOBUF_NDEBUG_INLINE IsMovingRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : name_(arena), - _cached_size_{0} {} -inline void IsMovingRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void IsMovingRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + IsMovingRequest::~IsMovingRequest() { // @@protoc_insertion_point(destructor:viam.component.gripper.v1.IsMovingRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void IsMovingRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); } -PROTOBUF_NOINLINE void IsMovingRequest::Clear() { +void IsMovingRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void IsMovingRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.gripper.v1.IsMovingRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* IsMovingRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* IsMovingRequest::_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.gripper.v1.IsMovingRequest.name")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 54, 2> IsMovingRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_IsMovingRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(IsMovingRequest, _impl_.name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(IsMovingRequest, _impl_.name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\51\4\0\0\0\0\0\0" - "viam.component.gripper.v1.IsMovingRequest" - "name" - }}, -}; - -::uint8_t* IsMovingRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* IsMovingRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.gripper.v1.IsMovingRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.gripper.v1.IsMovingRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.gripper.v1.IsMovingRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.gripper.v1.IsMovingRequest) return target; } -::size_t IsMovingRequest::ByteSizeLong() const { +size_t IsMovingRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.gripper.v1.IsMovingRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData IsMovingRequest::_class_data_ = { - IsMovingRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData IsMovingRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + IsMovingRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* IsMovingRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*IsMovingRequest::GetClassData() const { return &_class_data_; } + +void IsMovingRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void IsMovingRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.gripper.v1.IsMovingRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void IsMovingRequest::MergeFrom(const IsMovingRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.gripper.v1.IsMovingRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void IsMovingRequest::CopyFrom(const IsMovingRequest& from) { @@ -1619,168 +1485,173 @@ void IsMovingRequest::CopyFrom(const IsMovingRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool IsMovingRequest::IsInitialized() const { +bool IsMovingRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* IsMovingRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void IsMovingRequest::InternalSwap(IsMovingRequest* PROTOBUF_RESTRICT other) { +void IsMovingRequest::InternalSwap(IsMovingRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); } -::google::protobuf::Metadata IsMovingRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata IsMovingRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fgripper_2fv1_2fgripper_2eproto_getter, &descriptor_table_component_2fgripper_2fv1_2fgripper_2eproto_once, file_level_metadata_component_2fgripper_2fv1_2fgripper_2eproto[6]); } + // =================================================================== class IsMovingResponse::_Internal { public: }; -IsMovingResponse::IsMovingResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +IsMovingResponse::IsMovingResponse(::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.gripper.v1.IsMovingResponse) } -IsMovingResponse::IsMovingResponse( - ::google::protobuf::Arena* arena, const IsMovingResponse& from) - : IsMovingResponse(arena) { - MergeFrom(from); +IsMovingResponse::IsMovingResponse(const IsMovingResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + is_moving_ = from.is_moving_; + // @@protoc_insertion_point(copy_constructor:viam.component.gripper.v1.IsMovingResponse) } -inline PROTOBUF_NDEBUG_INLINE IsMovingResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void IsMovingResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.is_moving_ = {}; +inline void IsMovingResponse::SharedCtor() { +is_moving_ = false; } + IsMovingResponse::~IsMovingResponse() { // @@protoc_insertion_point(destructor:viam.component.gripper.v1.IsMovingResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void IsMovingResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void IsMovingResponse::Clear() { +void IsMovingResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void IsMovingResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.gripper.v1.IsMovingResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.is_moving_ = false; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* IsMovingResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + is_moving_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* IsMovingResponse::_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) { + // bool is_moving = 1 [json_name = "isMoving"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + is_moving_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> IsMovingResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_IsMovingResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // bool is_moving = 1 [json_name = "isMoving"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(IsMovingResponse, _impl_.is_moving_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bool is_moving = 1 [json_name = "isMoving"]; - {PROTOBUF_FIELD_OFFSET(IsMovingResponse, _impl_.is_moving_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* IsMovingResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* IsMovingResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.gripper.v1.IsMovingResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // bool is_moving = 1 [json_name = "isMoving"]; if (this->_internal_is_moving() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 1, this->_internal_is_moving(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_is_moving(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.gripper.v1.IsMovingResponse) return target; } -::size_t IsMovingResponse::ByteSizeLong() const { +size_t IsMovingResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.gripper.v1.IsMovingResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // bool is_moving = 1 [json_name = "isMoving"]; if (this->_internal_is_moving() != 0) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData IsMovingResponse::_class_data_ = { - IsMovingResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData IsMovingResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + IsMovingResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* IsMovingResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*IsMovingResponse::GetClassData() const { return &_class_data_; } + +void IsMovingResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void IsMovingResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.gripper.v1.IsMovingResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void IsMovingResponse::MergeFrom(const IsMovingResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.gripper.v1.IsMovingResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_is_moving() != 0) { - _this->_internal_set_is_moving(from._internal_is_moving()); + _internal_set_is_moving(from._internal_is_moving()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void IsMovingResponse::CopyFrom(const IsMovingResponse& from) { @@ -1790,32 +1661,61 @@ void IsMovingResponse::CopyFrom(const IsMovingResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool IsMovingResponse::IsInitialized() const { +bool IsMovingResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* IsMovingResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void IsMovingResponse::InternalSwap(IsMovingResponse* PROTOBUF_RESTRICT other) { +void IsMovingResponse::InternalSwap(IsMovingResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.is_moving_, other->_impl_.is_moving_); + swap(is_moving_, other->is_moving_); } -::google::protobuf::Metadata IsMovingResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata IsMovingResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fgripper_2fv1_2fgripper_2eproto_getter, &descriptor_table_component_2fgripper_2fv1_2fgripper_2eproto_once, file_level_metadata_component_2fgripper_2fv1_2fgripper_2eproto[7]); } + // @@protoc_insertion_point(namespace_scope) } // namespace v1 } // namespace gripper } // namespace component } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::component::gripper::v1::OpenRequest* +Arena::CreateMaybeMessage< ::viam::component::gripper::v1::OpenRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::gripper::v1::OpenRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::gripper::v1::OpenResponse* +Arena::CreateMaybeMessage< ::viam::component::gripper::v1::OpenResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::gripper::v1::OpenResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::gripper::v1::GrabRequest* +Arena::CreateMaybeMessage< ::viam::component::gripper::v1::GrabRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::gripper::v1::GrabRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::gripper::v1::GrabResponse* +Arena::CreateMaybeMessage< ::viam::component::gripper::v1::GrabResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::gripper::v1::GrabResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::gripper::v1::StopRequest* +Arena::CreateMaybeMessage< ::viam::component::gripper::v1::StopRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::gripper::v1::StopRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::gripper::v1::StopResponse* +Arena::CreateMaybeMessage< ::viam::component::gripper::v1::StopResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::gripper::v1::StopResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::gripper::v1::IsMovingRequest* +Arena::CreateMaybeMessage< ::viam::component::gripper::v1::IsMovingRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::gripper::v1::IsMovingRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::gripper::v1::IsMovingResponse* +Arena::CreateMaybeMessage< ::viam::component::gripper::v1::IsMovingResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::gripper::v1::IsMovingResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/component/gripper/v1/gripper.pb.h b/src/viam/api/component/gripper/v1/gripper.pb.h index 83092507b..40ebf03bb 100644 --- a/src/viam/api/component/gripper/v1/gripper.pb.h +++ b/src/viam/api/component/gripper/v1/gripper.pb.h @@ -1,64 +1,53 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: component/gripper/v1/gripper.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_component_2fgripper_2fv1_2fgripper_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_component_2fgripper_2fv1_2fgripper_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_component_2fgripper_2fv1_2fgripper_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_component_2fgripper_2fv1_2fgripper_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_bases.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/unknown_field_set.h" + +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include #include "common/v1/common.pb.h" #include "google/api/annotations.pb.h" -#include "google/protobuf/struct.pb.h" +#include // @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - +#include #define PROTOBUF_INTERNAL_EXPORT_component_2fgripper_2fv1_2fgripper_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_component_2fgripper_2fv1_2fgripper_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_component_2fgripper_2fv1_2fgripper_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_component_2fgripper_2fv1_2fgripper_2eproto; namespace viam { namespace component { namespace gripper { @@ -91,11 +80,16 @@ extern StopResponseDefaultTypeInternal _StopResponse_default_instance_; } // namespace gripper } // namespace component } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::component::gripper::v1::GrabRequest* Arena::CreateMaybeMessage<::viam::component::gripper::v1::GrabRequest>(Arena*); +template<> ::viam::component::gripper::v1::GrabResponse* Arena::CreateMaybeMessage<::viam::component::gripper::v1::GrabResponse>(Arena*); +template<> ::viam::component::gripper::v1::IsMovingRequest* Arena::CreateMaybeMessage<::viam::component::gripper::v1::IsMovingRequest>(Arena*); +template<> ::viam::component::gripper::v1::IsMovingResponse* Arena::CreateMaybeMessage<::viam::component::gripper::v1::IsMovingResponse>(Arena*); +template<> ::viam::component::gripper::v1::OpenRequest* Arena::CreateMaybeMessage<::viam::component::gripper::v1::OpenRequest>(Arena*); +template<> ::viam::component::gripper::v1::OpenResponse* Arena::CreateMaybeMessage<::viam::component::gripper::v1::OpenResponse>(Arena*); +template<> ::viam::component::gripper::v1::StopRequest* Arena::CreateMaybeMessage<::viam::component::gripper::v1::StopRequest>(Arena*); +template<> ::viam::component::gripper::v1::StopResponse* Arena::CreateMaybeMessage<::viam::component::gripper::v1::StopResponse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace viam { namespace component { namespace gripper { @@ -103,32 +97,28 @@ namespace v1 { // =================================================================== - -// ------------------------------------------------------------------- - -class StopResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.gripper.v1.StopResponse) */ { +class OpenRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.gripper.v1.OpenRequest) */ { public: - inline StopResponse() : StopResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR StopResponse(::google::protobuf::internal::ConstantInitialized); + inline OpenRequest() : OpenRequest(nullptr) {} + ~OpenRequest() override; + explicit PROTOBUF_CONSTEXPR OpenRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline StopResponse(const StopResponse& from) - : StopResponse(nullptr, from) {} - StopResponse(StopResponse&& from) noexcept - : StopResponse() { + OpenRequest(const OpenRequest& from); + OpenRequest(OpenRequest&& from) noexcept + : OpenRequest() { *this = ::std::move(from); } - inline StopResponse& operator=(const StopResponse& from) { + inline OpenRequest& operator=(const OpenRequest& from) { CopyFrom(from); return *this; } - inline StopResponse& operator=(StopResponse&& from) noexcept { + inline OpenRequest& operator=(OpenRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -138,119 +128,150 @@ class StopResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const StopResponse& default_instance() { + static const OpenRequest& default_instance() { return *internal_default_instance(); } - static inline const StopResponse* internal_default_instance() { - return reinterpret_cast( - &_StopResponse_default_instance_); + static inline const OpenRequest* internal_default_instance() { + return reinterpret_cast( + &_OpenRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 5; + 0; - friend void swap(StopResponse& a, StopResponse& b) { + friend void swap(OpenRequest& a, OpenRequest& b) { a.Swap(&b); } - inline void Swap(StopResponse* other) { + inline void Swap(OpenRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(StopResponse* other) { + void UnsafeArenaSwap(OpenRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - StopResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const StopResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const StopResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + OpenRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const OpenRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const OpenRequest& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.gripper.v1.StopResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(OpenRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.gripper.v1.OpenRequest"; } protected: - explicit StopResponse(::google::protobuf::Arena* arena); - StopResponse(::google::protobuf::Arena* arena, const StopResponse& from); + explicit OpenRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.component.gripper.v1.StopResponse) + 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.gripper.v1.OpenRequest) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + 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_2fgripper_2fv1_2fgripper_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class OpenResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.gripper.v1.OpenResponse) */ { + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.gripper.v1.OpenResponse) */ { public: inline OpenResponse() : OpenResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR OpenResponse(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR OpenResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline OpenResponse(const OpenResponse& from) - : OpenResponse(nullptr, from) {} + OpenResponse(const OpenResponse& from); OpenResponse(OpenResponse&& from) noexcept : OpenResponse() { *this = ::std::move(from); @@ -262,9 +283,9 @@ class OpenResponse final : } inline OpenResponse& operator=(OpenResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -274,22 +295,13 @@ class OpenResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const OpenResponse& default_instance() { @@ -308,48 +320,51 @@ class OpenResponse final : inline void Swap(OpenResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(OpenResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - OpenResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + OpenResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const OpenResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; void MergeFrom(const OpenResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } public: private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "viam.component.gripper.v1.OpenResponse"; } protected: - explicit OpenResponse(::google::protobuf::Arena* arena); - OpenResponse(::google::protobuf::Arena* arena, const OpenResponse& from); + explicit OpenResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -359,49 +374,35 @@ class OpenResponse final : private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_component_2fgripper_2fv1_2fgripper_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class IsMovingResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.gripper.v1.IsMovingResponse) */ { +class GrabRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.gripper.v1.GrabRequest) */ { public: - inline IsMovingResponse() : IsMovingResponse(nullptr) {} - ~IsMovingResponse() override; - template - explicit PROTOBUF_CONSTEXPR IsMovingResponse(::google::protobuf::internal::ConstantInitialized); + inline GrabRequest() : GrabRequest(nullptr) {} + ~GrabRequest() override; + explicit PROTOBUF_CONSTEXPR GrabRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline IsMovingResponse(const IsMovingResponse& from) - : IsMovingResponse(nullptr, from) {} - IsMovingResponse(IsMovingResponse&& from) noexcept - : IsMovingResponse() { + GrabRequest(const GrabRequest& from); + GrabRequest(GrabRequest&& from) noexcept + : GrabRequest() { *this = ::std::move(from); } - inline IsMovingResponse& operator=(const IsMovingResponse& from) { + inline GrabRequest& operator=(const GrabRequest& from) { CopyFrom(from); return *this; } - inline IsMovingResponse& operator=(IsMovingResponse&& from) noexcept { + inline GrabRequest& operator=(GrabRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -411,172 +412,165 @@ class IsMovingResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const IsMovingResponse& default_instance() { + static const GrabRequest& default_instance() { return *internal_default_instance(); } - static inline const IsMovingResponse* internal_default_instance() { - return reinterpret_cast( - &_IsMovingResponse_default_instance_); + static inline const GrabRequest* internal_default_instance() { + return reinterpret_cast( + &_GrabRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 7; + 2; - friend void swap(IsMovingResponse& a, IsMovingResponse& b) { + friend void swap(GrabRequest& a, GrabRequest& b) { a.Swap(&b); } - inline void Swap(IsMovingResponse* other) { + inline void Swap(GrabRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(IsMovingResponse* other) { + void UnsafeArenaSwap(GrabRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - IsMovingResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const IsMovingResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const IsMovingResponse& from) { - IsMovingResponse::MergeImpl(*this, from); + GrabRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GrabRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GrabRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(IsMovingResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(GrabRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.gripper.v1.IsMovingResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.gripper.v1.GrabRequest"; } protected: - explicit IsMovingResponse(::google::protobuf::Arena* arena); - IsMovingResponse(::google::protobuf::Arena* arena, const IsMovingResponse& from); + explicit GrabRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kIsMovingFieldNumber = 1, + kNameFieldNumber = 1, + kExtraFieldNumber = 99, }; - // bool is_moving = 1 [json_name = "isMoving"]; - void clear_is_moving() ; - bool is_moving() const; - void set_is_moving(bool value); - + // 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: - bool _internal_is_moving() const; - void _internal_set_is_moving(bool value); + 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: - // @@protoc_insertion_point(class_scope:viam.component.gripper.v1.IsMovingResponse) + 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.gripper.v1.GrabRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - bool is_moving_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + 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_2fgripper_2fv1_2fgripper_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class IsMovingRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.gripper.v1.IsMovingRequest) */ { +class GrabResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.gripper.v1.GrabResponse) */ { public: - inline IsMovingRequest() : IsMovingRequest(nullptr) {} - ~IsMovingRequest() override; - template - explicit PROTOBUF_CONSTEXPR IsMovingRequest(::google::protobuf::internal::ConstantInitialized); + inline GrabResponse() : GrabResponse(nullptr) {} + ~GrabResponse() override; + explicit PROTOBUF_CONSTEXPR GrabResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline IsMovingRequest(const IsMovingRequest& from) - : IsMovingRequest(nullptr, from) {} - IsMovingRequest(IsMovingRequest&& from) noexcept - : IsMovingRequest() { + GrabResponse(const GrabResponse& from); + GrabResponse(GrabResponse&& from) noexcept + : GrabResponse() { *this = ::std::move(from); } - inline IsMovingRequest& operator=(const IsMovingRequest& from) { + inline GrabResponse& operator=(const GrabResponse& from) { CopyFrom(from); return *this; } - inline IsMovingRequest& operator=(IsMovingRequest&& from) noexcept { + inline GrabResponse& operator=(GrabResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -586,164 +580,146 @@ class IsMovingRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const IsMovingRequest& default_instance() { + static const GrabResponse& default_instance() { return *internal_default_instance(); } - static inline const IsMovingRequest* internal_default_instance() { - return reinterpret_cast( - &_IsMovingRequest_default_instance_); + static inline const GrabResponse* internal_default_instance() { + return reinterpret_cast( + &_GrabResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 6; + 3; - friend void swap(IsMovingRequest& a, IsMovingRequest& b) { + friend void swap(GrabResponse& a, GrabResponse& b) { a.Swap(&b); } - inline void Swap(IsMovingRequest* other) { + inline void Swap(GrabResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(IsMovingRequest* other) { + void UnsafeArenaSwap(GrabResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - IsMovingRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const IsMovingRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const IsMovingRequest& from) { - IsMovingRequest::MergeImpl(*this, from); + GrabResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GrabResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GrabResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(IsMovingRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GrabResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.gripper.v1.IsMovingRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.gripper.v1.GrabResponse"; } protected: - explicit IsMovingRequest(::google::protobuf::Arena* arena); - IsMovingRequest(::google::protobuf::Arena* arena, const IsMovingRequest& from); + explicit GrabResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kNameFieldNumber = 1, + kExtraFieldNumber = 99, + kSuccessFieldNumber = 1, }; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + bool has_extra() const; private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); + 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(); + // bool success = 1 [json_name = "success"]; + void clear_success(); + bool success() const; + void set_success(bool value); + private: + bool _internal_success() const; + void _internal_set_success(bool value); public: - // @@protoc_insertion_point(class_scope:viam.component.gripper.v1.IsMovingRequest) + + // @@protoc_insertion_point(class_scope:viam.component.gripper.v1.GrabResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 54, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr name_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + bool success_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fgripper_2fv1_2fgripper_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class StopRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.gripper.v1.StopRequest) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.gripper.v1.StopRequest) */ { public: inline StopRequest() : StopRequest(nullptr) {} ~StopRequest() override; - template - explicit PROTOBUF_CONSTEXPR StopRequest(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR StopRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline StopRequest(const StopRequest& from) - : StopRequest(nullptr, from) {} + StopRequest(const StopRequest& from); StopRequest(StopRequest&& from) noexcept : StopRequest() { *this = ::std::move(from); @@ -755,9 +731,9 @@ class StopRequest final : } inline StopRequest& operator=(StopRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -767,22 +743,13 @@ class StopRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const StopRequest& default_instance() { @@ -801,65 +768,63 @@ class StopRequest final : inline void Swap(StopRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(StopRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - StopRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + StopRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const StopRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const StopRequest& from) { - StopRequest::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const StopRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(StopRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "viam.component.gripper.v1.StopRequest"; } protected: - explicit StopRequest(::google::protobuf::Arena* arena); - StopRequest(::google::protobuf::Arena* arena, const StopRequest& from); + explicit StopRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -870,93 +835,72 @@ class StopRequest final : kExtraFieldNumber = 99, }; // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + 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; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - + 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.gripper.v1.StopRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 2, 1, - 50, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + 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_2fgripper_2fv1_2fgripper_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class OpenRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.gripper.v1.OpenRequest) */ { +class StopResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.gripper.v1.StopResponse) */ { public: - inline OpenRequest() : OpenRequest(nullptr) {} - ~OpenRequest() override; - template - explicit PROTOBUF_CONSTEXPR OpenRequest(::google::protobuf::internal::ConstantInitialized); + inline StopResponse() : StopResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR StopResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline OpenRequest(const OpenRequest& from) - : OpenRequest(nullptr, from) {} - OpenRequest(OpenRequest&& from) noexcept - : OpenRequest() { + StopResponse(const StopResponse& from); + StopResponse(StopResponse&& from) noexcept + : StopResponse() { *this = ::std::move(from); } - inline OpenRequest& operator=(const OpenRequest& from) { + inline StopResponse& operator=(const StopResponse& from) { CopyFrom(from); return *this; } - inline OpenRequest& operator=(OpenRequest&& from) noexcept { + inline StopResponse& operator=(StopResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -966,196 +910,114 @@ class OpenRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const OpenRequest& default_instance() { + static const StopResponse& default_instance() { return *internal_default_instance(); } - static inline const OpenRequest* internal_default_instance() { - return reinterpret_cast( - &_OpenRequest_default_instance_); + static inline const StopResponse* internal_default_instance() { + return reinterpret_cast( + &_StopResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 0; + 5; - friend void swap(OpenRequest& a, OpenRequest& b) { + friend void swap(StopResponse& a, StopResponse& b) { a.Swap(&b); } - inline void Swap(OpenRequest* other) { + inline void Swap(StopResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(OpenRequest* other) { + void UnsafeArenaSwap(StopResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - OpenRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + StopResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const OpenRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const OpenRequest& from) { - OpenRequest::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const StopResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const StopResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(OpenRequest* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.gripper.v1.OpenRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.gripper.v1.StopResponse"; } protected: - explicit OpenRequest(::google::protobuf::Arena* arena); - OpenRequest(::google::protobuf::Arena* arena, const OpenRequest& from); + explicit StopResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() 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(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - - public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - - public: - // @@protoc_insertion_point(class_scope:viam.component.gripper.v1.OpenRequest) + // @@protoc_insertion_point(class_scope:viam.component.gripper.v1.StopResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 2, 1, - 50, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_component_2fgripper_2fv1_2fgripper_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GrabResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.gripper.v1.GrabResponse) */ { +class IsMovingRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.gripper.v1.IsMovingRequest) */ { public: - inline GrabResponse() : GrabResponse(nullptr) {} - ~GrabResponse() override; - template - explicit PROTOBUF_CONSTEXPR GrabResponse(::google::protobuf::internal::ConstantInitialized); + inline IsMovingRequest() : IsMovingRequest(nullptr) {} + ~IsMovingRequest() override; + explicit PROTOBUF_CONSTEXPR IsMovingRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GrabResponse(const GrabResponse& from) - : GrabResponse(nullptr, from) {} - GrabResponse(GrabResponse&& from) noexcept - : GrabResponse() { + IsMovingRequest(const IsMovingRequest& from); + IsMovingRequest(IsMovingRequest&& from) noexcept + : IsMovingRequest() { *this = ::std::move(from); } - inline GrabResponse& operator=(const GrabResponse& from) { + inline IsMovingRequest& operator=(const IsMovingRequest& from) { CopyFrom(from); return *this; } - inline GrabResponse& operator=(GrabResponse&& from) noexcept { + inline IsMovingRequest& operator=(IsMovingRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1165,190 +1027,145 @@ class GrabResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GrabResponse& default_instance() { + static const IsMovingRequest& default_instance() { return *internal_default_instance(); } - static inline const GrabResponse* internal_default_instance() { - return reinterpret_cast( - &_GrabResponse_default_instance_); + static inline const IsMovingRequest* internal_default_instance() { + return reinterpret_cast( + &_IsMovingRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 3; + 6; - friend void swap(GrabResponse& a, GrabResponse& b) { + friend void swap(IsMovingRequest& a, IsMovingRequest& b) { a.Swap(&b); } - inline void Swap(GrabResponse* other) { + inline void Swap(IsMovingRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GrabResponse* other) { + void UnsafeArenaSwap(IsMovingRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GrabResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GrabResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GrabResponse& from) { - GrabResponse::MergeImpl(*this, from); + IsMovingRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const IsMovingRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const IsMovingRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GrabResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(IsMovingRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.gripper.v1.GrabResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.gripper.v1.IsMovingRequest"; } protected: - explicit GrabResponse(::google::protobuf::Arena* arena); - GrabResponse(::google::protobuf::Arena* arena, const GrabResponse& from); + explicit IsMovingRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kExtraFieldNumber = 99, - kSuccessFieldNumber = 1, + kNameFieldNumber = 1, }; - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - + // 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 ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); public: - // bool success = 1 [json_name = "success"]; - void clear_success() ; - bool success() const; - void set_success(bool value); - - private: - bool _internal_success() const; - void _internal_set_success(bool value); - public: - // @@protoc_insertion_point(class_scope:viam.component.gripper.v1.GrabResponse) + // @@protoc_insertion_point(class_scope:viam.component.gripper.v1.IsMovingRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 2, 1, - 0, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::Struct* extra_; - bool success_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fgripper_2fv1_2fgripper_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GrabRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.gripper.v1.GrabRequest) */ { +class IsMovingResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.gripper.v1.IsMovingResponse) */ { public: - inline GrabRequest() : GrabRequest(nullptr) {} - ~GrabRequest() override; - template - explicit PROTOBUF_CONSTEXPR GrabRequest(::google::protobuf::internal::ConstantInitialized); + inline IsMovingResponse() : IsMovingResponse(nullptr) {} + ~IsMovingResponse() override; + explicit PROTOBUF_CONSTEXPR IsMovingResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GrabRequest(const GrabRequest& from) - : GrabRequest(nullptr, from) {} - GrabRequest(GrabRequest&& from) noexcept - : GrabRequest() { + IsMovingResponse(const IsMovingResponse& from); + IsMovingResponse(IsMovingResponse&& from) noexcept + : IsMovingResponse() { *this = ::std::move(from); } - inline GrabRequest& operator=(const GrabRequest& from) { + inline IsMovingResponse& operator=(const IsMovingResponse& from) { CopyFrom(from); return *this; } - inline GrabRequest& operator=(GrabRequest&& from) noexcept { + inline IsMovingResponse& operator=(IsMovingResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1358,329 +1175,259 @@ class GrabRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GrabRequest& default_instance() { + static const IsMovingResponse& default_instance() { return *internal_default_instance(); } - static inline const GrabRequest* internal_default_instance() { - return reinterpret_cast( - &_GrabRequest_default_instance_); + static inline const IsMovingResponse* internal_default_instance() { + return reinterpret_cast( + &_IsMovingResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 2; + 7; - friend void swap(GrabRequest& a, GrabRequest& b) { + friend void swap(IsMovingResponse& a, IsMovingResponse& b) { a.Swap(&b); } - inline void Swap(GrabRequest* other) { + inline void Swap(IsMovingResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GrabRequest* other) { + void UnsafeArenaSwap(IsMovingResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GrabRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GrabRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GrabRequest& from) { - GrabRequest::MergeImpl(*this, from); + IsMovingResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const IsMovingResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const IsMovingResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GrabRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(IsMovingResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.gripper.v1.GrabRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.gripper.v1.IsMovingResponse"; } protected: - explicit GrabRequest(::google::protobuf::Arena* arena); - GrabRequest(::google::protobuf::Arena* arena, const GrabRequest& from); + explicit IsMovingResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kNameFieldNumber = 1, - kExtraFieldNumber = 99, + kIsMovingFieldNumber = 1, }; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + // bool is_moving = 1 [json_name = "isMoving"]; + void clear_is_moving(); + bool is_moving() const; + void set_is_moving(bool value); private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - + bool _internal_is_moving() const; + void _internal_set_is_moving(bool value); public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - public: - // @@protoc_insertion_point(class_scope:viam.component.gripper.v1.GrabRequest) + // @@protoc_insertion_point(class_scope:viam.component.gripper.v1.IsMovingResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 2, 1, - 50, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + bool is_moving_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fgripper_2fv1_2fgripper_2eproto; }; - // =================================================================== - - // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ -// ------------------------------------------------------------------- - // OpenRequest // string name = 1 [json_name = "name"]; inline void OpenRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& OpenRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& OpenRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.gripper.v1.OpenRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void OpenRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void OpenRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.gripper.v1.OpenRequest.name) } -inline std::string* OpenRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* OpenRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.gripper.v1.OpenRequest.name) return _s; } inline const std::string& OpenRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void OpenRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* OpenRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* OpenRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.gripper.v1.OpenRequest.name) - return _impl_.name_.Release(); -} -inline void OpenRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void OpenRequest::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.gripper.v1.OpenRequest.name) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool OpenRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool OpenRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& OpenRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& OpenRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& OpenRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& OpenRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.gripper.v1.OpenRequest.extra) return _internal_extra(); } -inline void OpenRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void OpenRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.gripper.v1.OpenRequest.extra) } -inline ::google::protobuf::Struct* OpenRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* OpenRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* OpenRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* OpenRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.gripper.v1.OpenRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* OpenRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* OpenRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* OpenRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* OpenRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.gripper.v1.OpenRequest.extra) return _msg; } -inline void OpenRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void OpenRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.gripper.v1.OpenRequest.extra) } @@ -1694,145 +1441,136 @@ inline void OpenRequest::set_allocated_extra(::google::protobuf::Struct* value) // string name = 1 [json_name = "name"]; inline void GrabRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& GrabRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GrabRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.gripper.v1.GrabRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GrabRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GrabRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.gripper.v1.GrabRequest.name) } -inline std::string* GrabRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GrabRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.gripper.v1.GrabRequest.name) return _s; } inline const std::string& GrabRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void GrabRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* GrabRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* GrabRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.gripper.v1.GrabRequest.name) - return _impl_.name_.Release(); -} -inline void GrabRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void GrabRequest::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.gripper.v1.GrabRequest.name) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GrabRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool GrabRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& GrabRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GrabRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& GrabRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GrabRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.gripper.v1.GrabRequest.extra) return _internal_extra(); } -inline void GrabRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void GrabRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.gripper.v1.GrabRequest.extra) } -inline ::google::protobuf::Struct* GrabRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* GrabRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* GrabRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GrabRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.gripper.v1.GrabRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* GrabRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GrabRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* GrabRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GrabRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.gripper.v1.GrabRequest.extra) return _msg; } -inline void GrabRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GrabRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.gripper.v1.GrabRequest.extra) } @@ -1842,115 +1580,106 @@ inline void GrabRequest::set_allocated_extra(::google::protobuf::Struct* value) // bool success = 1 [json_name = "success"]; inline void GrabResponse::clear_success() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.success_ = false; + success_ = false; +} +inline bool GrabResponse::_internal_success() const { + return success_; } inline bool GrabResponse::success() const { // @@protoc_insertion_point(field_get:viam.component.gripper.v1.GrabResponse.success) return _internal_success(); } +inline void GrabResponse::_internal_set_success(bool value) { + + success_ = value; +} inline void GrabResponse::set_success(bool value) { _internal_set_success(value); // @@protoc_insertion_point(field_set:viam.component.gripper.v1.GrabResponse.success) } -inline bool GrabResponse::_internal_success() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.success_; -} -inline void GrabResponse::_internal_set_success(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.success_ = value; -} // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GrabResponse::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool GrabResponse::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& GrabResponse::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GrabResponse::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& GrabResponse::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GrabResponse::extra() const { // @@protoc_insertion_point(field_get:viam.component.gripper.v1.GrabResponse.extra) return _internal_extra(); } -inline void GrabResponse::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void GrabResponse::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.gripper.v1.GrabResponse.extra) } -inline ::google::protobuf::Struct* GrabResponse::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* GrabResponse::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* GrabResponse::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GrabResponse::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.gripper.v1.GrabResponse.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* GrabResponse::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GrabResponse::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* GrabResponse::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GrabResponse::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.gripper.v1.GrabResponse.extra) return _msg; } -inline void GrabResponse::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GrabResponse::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.gripper.v1.GrabResponse.extra) } @@ -1960,145 +1689,136 @@ inline void GrabResponse::set_allocated_extra(::google::protobuf::Struct* value) // string name = 1 [json_name = "name"]; inline void StopRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& StopRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& StopRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.gripper.v1.StopRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void StopRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void StopRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.gripper.v1.StopRequest.name) } -inline std::string* StopRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* StopRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.gripper.v1.StopRequest.name) return _s; } inline const std::string& StopRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void StopRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* StopRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* StopRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.gripper.v1.StopRequest.name) - return _impl_.name_.Release(); -} -inline void StopRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void StopRequest::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.gripper.v1.StopRequest.name) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool StopRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool StopRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& StopRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& StopRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& StopRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& StopRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.gripper.v1.StopRequest.extra) return _internal_extra(); } -inline void StopRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void StopRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.gripper.v1.StopRequest.extra) } -inline ::google::protobuf::Struct* StopRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* StopRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* StopRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* StopRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.gripper.v1.StopRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* StopRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* StopRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* StopRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* StopRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.gripper.v1.StopRequest.extra) return _msg; } -inline void StopRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void StopRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.gripper.v1.StopRequest.extra) } @@ -2112,54 +1832,51 @@ inline void StopRequest::set_allocated_extra(::google::protobuf::Struct* value) // string name = 1 [json_name = "name"]; inline void IsMovingRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& IsMovingRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& IsMovingRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.gripper.v1.IsMovingRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void IsMovingRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void IsMovingRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.gripper.v1.IsMovingRequest.name) } -inline std::string* IsMovingRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* IsMovingRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.gripper.v1.IsMovingRequest.name) return _s; } inline const std::string& IsMovingRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void IsMovingRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* IsMovingRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* IsMovingRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.gripper.v1.IsMovingRequest.name) - return _impl_.name_.Release(); -} -inline void IsMovingRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void IsMovingRequest::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.gripper.v1.IsMovingRequest.name) } @@ -2169,40 +1886,50 @@ inline void IsMovingRequest::set_allocated_name(std::string* value) { // bool is_moving = 1 [json_name = "isMoving"]; inline void IsMovingResponse::clear_is_moving() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.is_moving_ = false; + is_moving_ = false; +} +inline bool IsMovingResponse::_internal_is_moving() const { + return is_moving_; } inline bool IsMovingResponse::is_moving() const { // @@protoc_insertion_point(field_get:viam.component.gripper.v1.IsMovingResponse.is_moving) return _internal_is_moving(); } +inline void IsMovingResponse::_internal_set_is_moving(bool value) { + + is_moving_ = value; +} inline void IsMovingResponse::set_is_moving(bool value) { _internal_set_is_moving(value); // @@protoc_insertion_point(field_set:viam.component.gripper.v1.IsMovingResponse.is_moving) } -inline bool IsMovingResponse::_internal_is_moving() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.is_moving_; -} -inline void IsMovingResponse::_internal_set_is_moving(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.is_moving_ = value; -} #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) + } // namespace v1 } // namespace gripper } // namespace component } // namespace viam - // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_component_2fgripper_2fv1_2fgripper_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_component_2fgripper_2fv1_2fgripper_2eproto diff --git a/src/viam/api/component/inputcontroller/v1/input_controller.grpc.pb.cc b/src/viam/api/component/inputcontroller/v1/input_controller.grpc.pb.cc index 7223b4d34..b4bf006f7 100644 --- a/src/viam/api/component/inputcontroller/v1/input_controller.grpc.pb.cc +++ b/src/viam/api/component/inputcontroller/v1/input_controller.grpc.pb.cc @@ -6,19 +6,19 @@ #include "component/inputcontroller/v1/input_controller.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace component { namespace inputcontroller { @@ -35,157 +35,182 @@ static const char* InputControllerService_method_names[] = { std::unique_ptr< InputControllerService::Stub> InputControllerService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { (void)options; - std::unique_ptr< InputControllerService::Stub> stub(new InputControllerService::Stub(channel, options)); + std::unique_ptr< InputControllerService::Stub> stub(new InputControllerService::Stub(channel)); return stub; } -InputControllerService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) - : channel_(channel), rpcmethod_GetControls_(InputControllerService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetEvents_(InputControllerService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_StreamEvents_(InputControllerService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::SERVER_STREAMING, channel) - , rpcmethod_TriggerEvent_(InputControllerService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_DoCommand_(InputControllerService_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetGeometries_(InputControllerService_method_names[5], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) +InputControllerService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_GetControls_(InputControllerService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetEvents_(InputControllerService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_StreamEvents_(InputControllerService_method_names[2], ::grpc::internal::RpcMethod::SERVER_STREAMING, channel) + , rpcmethod_TriggerEvent_(InputControllerService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DoCommand_(InputControllerService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetGeometries_(InputControllerService_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status InputControllerService::Stub::GetControls(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetControlsRequest& request, ::viam::component::inputcontroller::v1::GetControlsResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::inputcontroller::v1::GetControlsRequest, ::viam::component::inputcontroller::v1::GetControlsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetControls_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetControls_, context, request, response); } -void InputControllerService::Stub::async::GetControls(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetControlsRequest* request, ::viam::component::inputcontroller::v1::GetControlsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::inputcontroller::v1::GetControlsRequest, ::viam::component::inputcontroller::v1::GetControlsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetControls_, context, request, response, std::move(f)); +void InputControllerService::Stub::experimental_async::GetControls(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetControlsRequest* request, ::viam::component::inputcontroller::v1::GetControlsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetControls_, context, request, response, std::move(f)); } -void InputControllerService::Stub::async::GetControls(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetControlsRequest* request, ::viam::component::inputcontroller::v1::GetControlsResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetControls_, context, request, response, reactor); +void InputControllerService::Stub::experimental_async::GetControls(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::inputcontroller::v1::GetControlsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetControls_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::inputcontroller::v1::GetControlsResponse>* InputControllerService::Stub::PrepareAsyncGetControlsRaw(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetControlsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::inputcontroller::v1::GetControlsResponse, ::viam::component::inputcontroller::v1::GetControlsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetControls_, context, request); +void InputControllerService::Stub::experimental_async::GetControls(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetControlsRequest* request, ::viam::component::inputcontroller::v1::GetControlsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetControls_, context, request, response, reactor); +} + +void InputControllerService::Stub::experimental_async::GetControls(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::inputcontroller::v1::GetControlsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetControls_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::inputcontroller::v1::GetControlsResponse>* InputControllerService::Stub::AsyncGetControlsRaw(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetControlsRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetControlsRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::inputcontroller::v1::GetControlsResponse>::Create(channel_.get(), cq, rpcmethod_GetControls_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::inputcontroller::v1::GetControlsResponse>* InputControllerService::Stub::PrepareAsyncGetControlsRaw(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetControlsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::inputcontroller::v1::GetControlsResponse>::Create(channel_.get(), cq, rpcmethod_GetControls_, context, request, false); } ::grpc::Status InputControllerService::Stub::GetEvents(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetEventsRequest& request, ::viam::component::inputcontroller::v1::GetEventsResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::inputcontroller::v1::GetEventsRequest, ::viam::component::inputcontroller::v1::GetEventsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetEvents_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetEvents_, context, request, response); } -void InputControllerService::Stub::async::GetEvents(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetEventsRequest* request, ::viam::component::inputcontroller::v1::GetEventsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::inputcontroller::v1::GetEventsRequest, ::viam::component::inputcontroller::v1::GetEventsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetEvents_, context, request, response, std::move(f)); +void InputControllerService::Stub::experimental_async::GetEvents(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetEventsRequest* request, ::viam::component::inputcontroller::v1::GetEventsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetEvents_, context, request, response, std::move(f)); } -void InputControllerService::Stub::async::GetEvents(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetEventsRequest* request, ::viam::component::inputcontroller::v1::GetEventsResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetEvents_, context, request, response, reactor); +void InputControllerService::Stub::experimental_async::GetEvents(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::inputcontroller::v1::GetEventsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetEvents_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::inputcontroller::v1::GetEventsResponse>* InputControllerService::Stub::PrepareAsyncGetEventsRaw(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetEventsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::inputcontroller::v1::GetEventsResponse, ::viam::component::inputcontroller::v1::GetEventsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetEvents_, context, request); +void InputControllerService::Stub::experimental_async::GetEvents(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetEventsRequest* request, ::viam::component::inputcontroller::v1::GetEventsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetEvents_, context, request, response, reactor); +} + +void InputControllerService::Stub::experimental_async::GetEvents(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::inputcontroller::v1::GetEventsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetEvents_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::inputcontroller::v1::GetEventsResponse>* InputControllerService::Stub::AsyncGetEventsRaw(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetEventsRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetEventsRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::inputcontroller::v1::GetEventsResponse>::Create(channel_.get(), cq, rpcmethod_GetEvents_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::inputcontroller::v1::GetEventsResponse>* InputControllerService::Stub::PrepareAsyncGetEventsRaw(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetEventsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::inputcontroller::v1::GetEventsResponse>::Create(channel_.get(), cq, rpcmethod_GetEvents_, context, request, false); } ::grpc::ClientReader< ::viam::component::inputcontroller::v1::StreamEventsResponse>* InputControllerService::Stub::StreamEventsRaw(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::StreamEventsRequest& request) { - return ::grpc::internal::ClientReaderFactory< ::viam::component::inputcontroller::v1::StreamEventsResponse>::Create(channel_.get(), rpcmethod_StreamEvents_, context, request); + return ::grpc_impl::internal::ClientReaderFactory< ::viam::component::inputcontroller::v1::StreamEventsResponse>::Create(channel_.get(), rpcmethod_StreamEvents_, context, request); } -void InputControllerService::Stub::async::StreamEvents(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::StreamEventsRequest* request, ::grpc::ClientReadReactor< ::viam::component::inputcontroller::v1::StreamEventsResponse>* reactor) { - ::grpc::internal::ClientCallbackReaderFactory< ::viam::component::inputcontroller::v1::StreamEventsResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_StreamEvents_, context, request, reactor); +void InputControllerService::Stub::experimental_async::StreamEvents(::grpc::ClientContext* context, ::viam::component::inputcontroller::v1::StreamEventsRequest* request, ::grpc::experimental::ClientReadReactor< ::viam::component::inputcontroller::v1::StreamEventsResponse>* reactor) { + ::grpc_impl::internal::ClientCallbackReaderFactory< ::viam::component::inputcontroller::v1::StreamEventsResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_StreamEvents_, context, request, reactor); } ::grpc::ClientAsyncReader< ::viam::component::inputcontroller::v1::StreamEventsResponse>* InputControllerService::Stub::AsyncStreamEventsRaw(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::StreamEventsRequest& request, ::grpc::CompletionQueue* cq, void* tag) { - return ::grpc::internal::ClientAsyncReaderFactory< ::viam::component::inputcontroller::v1::StreamEventsResponse>::Create(channel_.get(), cq, rpcmethod_StreamEvents_, context, request, true, tag); + return ::grpc_impl::internal::ClientAsyncReaderFactory< ::viam::component::inputcontroller::v1::StreamEventsResponse>::Create(channel_.get(), cq, rpcmethod_StreamEvents_, context, request, true, tag); } ::grpc::ClientAsyncReader< ::viam::component::inputcontroller::v1::StreamEventsResponse>* InputControllerService::Stub::PrepareAsyncStreamEventsRaw(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::StreamEventsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncReaderFactory< ::viam::component::inputcontroller::v1::StreamEventsResponse>::Create(channel_.get(), cq, rpcmethod_StreamEvents_, context, request, false, nullptr); + return ::grpc_impl::internal::ClientAsyncReaderFactory< ::viam::component::inputcontroller::v1::StreamEventsResponse>::Create(channel_.get(), cq, rpcmethod_StreamEvents_, context, request, false, nullptr); } ::grpc::Status InputControllerService::Stub::TriggerEvent(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::TriggerEventRequest& request, ::viam::component::inputcontroller::v1::TriggerEventResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::inputcontroller::v1::TriggerEventRequest, ::viam::component::inputcontroller::v1::TriggerEventResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_TriggerEvent_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_TriggerEvent_, context, request, response); } -void InputControllerService::Stub::async::TriggerEvent(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::TriggerEventRequest* request, ::viam::component::inputcontroller::v1::TriggerEventResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::inputcontroller::v1::TriggerEventRequest, ::viam::component::inputcontroller::v1::TriggerEventResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_TriggerEvent_, context, request, response, std::move(f)); +void InputControllerService::Stub::experimental_async::TriggerEvent(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::TriggerEventRequest* request, ::viam::component::inputcontroller::v1::TriggerEventResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_TriggerEvent_, context, request, response, std::move(f)); } -void InputControllerService::Stub::async::TriggerEvent(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::TriggerEventRequest* request, ::viam::component::inputcontroller::v1::TriggerEventResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_TriggerEvent_, context, request, response, reactor); +void InputControllerService::Stub::experimental_async::TriggerEvent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::inputcontroller::v1::TriggerEventResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_TriggerEvent_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::inputcontroller::v1::TriggerEventResponse>* InputControllerService::Stub::PrepareAsyncTriggerEventRaw(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::TriggerEventRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::inputcontroller::v1::TriggerEventResponse, ::viam::component::inputcontroller::v1::TriggerEventRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_TriggerEvent_, context, request); +void InputControllerService::Stub::experimental_async::TriggerEvent(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::TriggerEventRequest* request, ::viam::component::inputcontroller::v1::TriggerEventResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_TriggerEvent_, context, request, response, reactor); +} + +void InputControllerService::Stub::experimental_async::TriggerEvent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::inputcontroller::v1::TriggerEventResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_TriggerEvent_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::inputcontroller::v1::TriggerEventResponse>* InputControllerService::Stub::AsyncTriggerEventRaw(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::TriggerEventRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncTriggerEventRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::inputcontroller::v1::TriggerEventResponse>::Create(channel_.get(), cq, rpcmethod_TriggerEvent_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::inputcontroller::v1::TriggerEventResponse>* InputControllerService::Stub::PrepareAsyncTriggerEventRaw(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::TriggerEventRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::inputcontroller::v1::TriggerEventResponse>::Create(channel_.get(), cq, rpcmethod_TriggerEvent_, context, request, false); } ::grpc::Status InputControllerService::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); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DoCommand_, context, request, response); } -void InputControllerService::Stub::async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); +void InputControllerService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); } -void InputControllerService::Stub::async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); +void InputControllerService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* InputControllerService::Stub::PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::common::v1::DoCommandResponse, ::viam::common::v1::DoCommandRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DoCommand_, context, request); +void InputControllerService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); +} + +void InputControllerService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* InputControllerService::Stub::AsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncDoCommandRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::DoCommandResponse>::Create(channel_.get(), cq, rpcmethod_DoCommand_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* InputControllerService::Stub::PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::DoCommandResponse>::Create(channel_.get(), cq, rpcmethod_DoCommand_, context, request, false); } ::grpc::Status InputControllerService::Stub::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::viam::common::v1::GetGeometriesResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetGeometries_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetGeometries_, context, request, response); } -void InputControllerService::Stub::async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, std::move(f)); +void InputControllerService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, std::move(f)); } -void InputControllerService::Stub::async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, reactor); +void InputControllerService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>* InputControllerService::Stub::PrepareAsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::common::v1::GetGeometriesResponse, ::viam::common::v1::GetGeometriesRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetGeometries_, context, request); +void InputControllerService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, reactor); +} + +void InputControllerService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>* InputControllerService::Stub::AsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetGeometriesRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::GetGeometriesResponse>::Create(channel_.get(), cq, rpcmethod_GetGeometries_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>* InputControllerService::Stub::PrepareAsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::GetGeometriesResponse>::Create(channel_.get(), cq, rpcmethod_GetGeometries_, context, request, false); } InputControllerService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( InputControllerService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< InputControllerService::Service, ::viam::component::inputcontroller::v1::GetControlsRequest, ::viam::component::inputcontroller::v1::GetControlsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< InputControllerService::Service, ::viam::component::inputcontroller::v1::GetControlsRequest, ::viam::component::inputcontroller::v1::GetControlsResponse>( [](InputControllerService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::inputcontroller::v1::GetControlsRequest* req, ::viam::component::inputcontroller::v1::GetControlsResponse* resp) { return service->GetControls(ctx, req, resp); @@ -193,9 +218,9 @@ InputControllerService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( InputControllerService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< InputControllerService::Service, ::viam::component::inputcontroller::v1::GetEventsRequest, ::viam::component::inputcontroller::v1::GetEventsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< InputControllerService::Service, ::viam::component::inputcontroller::v1::GetEventsRequest, ::viam::component::inputcontroller::v1::GetEventsResponse>( [](InputControllerService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::inputcontroller::v1::GetEventsRequest* req, ::viam::component::inputcontroller::v1::GetEventsResponse* resp) { return service->GetEvents(ctx, req, resp); @@ -205,17 +230,17 @@ InputControllerService::Service::Service() { ::grpc::internal::RpcMethod::SERVER_STREAMING, new ::grpc::internal::ServerStreamingHandler< InputControllerService::Service, ::viam::component::inputcontroller::v1::StreamEventsRequest, ::viam::component::inputcontroller::v1::StreamEventsResponse>( [](InputControllerService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::inputcontroller::v1::StreamEventsRequest* req, - ::grpc::ServerWriter<::viam::component::inputcontroller::v1::StreamEventsResponse>* writer) { + ::grpc_impl::ServerWriter<::viam::component::inputcontroller::v1::StreamEventsResponse>* writer) { return service->StreamEvents(ctx, req, writer); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( InputControllerService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< InputControllerService::Service, ::viam::component::inputcontroller::v1::TriggerEventRequest, ::viam::component::inputcontroller::v1::TriggerEventResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< InputControllerService::Service, ::viam::component::inputcontroller::v1::TriggerEventRequest, ::viam::component::inputcontroller::v1::TriggerEventResponse>( [](InputControllerService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::inputcontroller::v1::TriggerEventRequest* req, ::viam::component::inputcontroller::v1::TriggerEventResponse* resp) { return service->TriggerEvent(ctx, req, resp); @@ -223,9 +248,9 @@ InputControllerService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( InputControllerService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< InputControllerService::Service, ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< InputControllerService::Service, ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( [](InputControllerService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::common::v1::DoCommandRequest* req, ::viam::common::v1::DoCommandResponse* resp) { return service->DoCommand(ctx, req, resp); @@ -233,9 +258,9 @@ InputControllerService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( InputControllerService_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< InputControllerService::Service, ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< InputControllerService::Service, ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( [](InputControllerService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::common::v1::GetGeometriesRequest* req, ::viam::common::v1::GetGeometriesResponse* resp) { return service->GetGeometries(ctx, req, resp); diff --git a/src/viam/api/component/inputcontroller/v1/input_controller.grpc.pb.h b/src/viam/api/component/inputcontroller/v1/input_controller.grpc.pb.h index 61ae5f023..b3b471025 100644 --- a/src/viam/api/component/inputcontroller/v1/input_controller.grpc.pb.h +++ b/src/viam/api/component/inputcontroller/v1/input_controller.grpc.pb.h @@ -7,23 +7,24 @@ #include "component/inputcontroller/v1/input_controller.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace component { @@ -90,32 +91,90 @@ class InputControllerService 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)); } - class async_interface { + class experimental_async_interface { public: - virtual ~async_interface() {} + virtual ~experimental_async_interface() {} // GetControls returns a list of GetControls provided by the Controller virtual void GetControls(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetControlsRequest* request, ::viam::component::inputcontroller::v1::GetControlsResponse* response, std::function) = 0; + virtual void GetControls(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::inputcontroller::v1::GetControlsResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetControls(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetControlsRequest* request, ::viam::component::inputcontroller::v1::GetControlsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetControls(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetControlsRequest* request, ::viam::component::inputcontroller::v1::GetControlsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetControls(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::inputcontroller::v1::GetControlsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetControls(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::inputcontroller::v1::GetControlsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // GetEvents returns a list of events representing the last event on each control of a give Input Controller virtual void GetEvents(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetEventsRequest* request, ::viam::component::inputcontroller::v1::GetEventsResponse* response, std::function) = 0; + virtual void GetEvents(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::inputcontroller::v1::GetEventsResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetEvents(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetEventsRequest* request, ::viam::component::inputcontroller::v1::GetEventsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetEvents(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetEventsRequest* request, ::viam::component::inputcontroller::v1::GetEventsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetEvents(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::inputcontroller::v1::GetEventsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetEvents(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::inputcontroller::v1::GetEventsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // StreamEvents starts a stream of InputControllerEvents for the given controls (buttons/axes) on a robot's input controller - virtual void StreamEvents(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::StreamEventsRequest* request, ::grpc::ClientReadReactor< ::viam::component::inputcontroller::v1::StreamEventsResponse>* reactor) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void StreamEvents(::grpc::ClientContext* context, ::viam::component::inputcontroller::v1::StreamEventsRequest* request, ::grpc::ClientReadReactor< ::viam::component::inputcontroller::v1::StreamEventsResponse>* reactor) = 0; + #else + virtual void StreamEvents(::grpc::ClientContext* context, ::viam::component::inputcontroller::v1::StreamEventsRequest* request, ::grpc::experimental::ClientReadReactor< ::viam::component::inputcontroller::v1::StreamEventsResponse>* reactor) = 0; + #endif // TriggerEvent, where supported, injects an InputControllerEvent into an input controller to (virtually) generate events // like button presses or axis movements virtual void TriggerEvent(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::TriggerEventRequest* request, ::viam::component::inputcontroller::v1::TriggerEventResponse* response, std::function) = 0; + virtual void TriggerEvent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::inputcontroller::v1::TriggerEventResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void TriggerEvent(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::TriggerEventRequest* request, ::viam::component::inputcontroller::v1::TriggerEventResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void TriggerEvent(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::TriggerEventRequest* request, ::viam::component::inputcontroller::v1::TriggerEventResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void TriggerEvent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::inputcontroller::v1::TriggerEventResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void TriggerEvent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::inputcontroller::v1::TriggerEventResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // 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 ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // 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 ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif }; - typedef class async_interface experimental_async_interface; - virtual class async_interface* async() { return nullptr; } - class async_interface* experimental_async() { return async(); } - private: + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef class experimental_async_interface async_interface; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + async_interface* async() { return experimental_async(); } + #endif + virtual class experimental_async_interface* experimental_async() { return nullptr; } + private: virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::inputcontroller::v1::GetControlsResponse>* AsyncGetControlsRaw(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetControlsRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::inputcontroller::v1::GetControlsResponse>* PrepareAsyncGetControlsRaw(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetControlsRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::inputcontroller::v1::GetEventsResponse>* AsyncGetEventsRaw(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetEventsRequest& request, ::grpc::CompletionQueue* cq) = 0; @@ -132,7 +191,7 @@ class InputControllerService final { }; class Stub final : public StubInterface { public: - Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); ::grpc::Status GetControls(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetControlsRequest& request, ::viam::component::inputcontroller::v1::GetControlsResponse* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::inputcontroller::v1::GetControlsResponse>> AsyncGetControls(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetControlsRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::inputcontroller::v1::GetControlsResponse>>(AsyncGetControlsRaw(context, request, cq)); @@ -177,31 +236,85 @@ class InputControllerService 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)); } - class async final : - public StubInterface::async_interface { + class experimental_async final : + public StubInterface::experimental_async_interface { public: void GetControls(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetControlsRequest* request, ::viam::component::inputcontroller::v1::GetControlsResponse* response, std::function) override; + void GetControls(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::inputcontroller::v1::GetControlsResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetControls(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetControlsRequest* request, ::viam::component::inputcontroller::v1::GetControlsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetControls(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetControlsRequest* request, ::viam::component::inputcontroller::v1::GetControlsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetControls(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::inputcontroller::v1::GetControlsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetControls(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::inputcontroller::v1::GetControlsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetEvents(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetEventsRequest* request, ::viam::component::inputcontroller::v1::GetEventsResponse* response, std::function) override; + void GetEvents(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::inputcontroller::v1::GetEventsResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetEvents(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetEventsRequest* request, ::viam::component::inputcontroller::v1::GetEventsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - void StreamEvents(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::StreamEventsRequest* request, ::grpc::ClientReadReactor< ::viam::component::inputcontroller::v1::StreamEventsResponse>* reactor) override; + #else + void GetEvents(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetEventsRequest* request, ::viam::component::inputcontroller::v1::GetEventsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetEvents(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::inputcontroller::v1::GetEventsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetEvents(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::inputcontroller::v1::GetEventsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void StreamEvents(::grpc::ClientContext* context, ::viam::component::inputcontroller::v1::StreamEventsRequest* request, ::grpc::ClientReadReactor< ::viam::component::inputcontroller::v1::StreamEventsResponse>* reactor) override; + #else + void StreamEvents(::grpc::ClientContext* context, ::viam::component::inputcontroller::v1::StreamEventsRequest* request, ::grpc::experimental::ClientReadReactor< ::viam::component::inputcontroller::v1::StreamEventsResponse>* reactor) override; + #endif void TriggerEvent(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::TriggerEventRequest* request, ::viam::component::inputcontroller::v1::TriggerEventResponse* response, std::function) override; + void TriggerEvent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::inputcontroller::v1::TriggerEventResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void TriggerEvent(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::TriggerEventRequest* request, ::viam::component::inputcontroller::v1::TriggerEventResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void TriggerEvent(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::TriggerEventRequest* request, ::viam::component::inputcontroller::v1::TriggerEventResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void TriggerEvent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::inputcontroller::v1::TriggerEventResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void TriggerEvent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::inputcontroller::v1::TriggerEventResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif 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 ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif 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 ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif private: friend class Stub; - explicit async(Stub* stub): stub_(stub) { } + explicit experimental_async(Stub* stub): stub_(stub) { } Stub* stub() { return stub_; } Stub* stub_; }; - class async* async() override { return &async_stub_; } + class experimental_async_interface* experimental_async() override { return &async_stub_; } private: std::shared_ptr< ::grpc::ChannelInterface> channel_; - class async async_stub_{this}; + class experimental_async async_stub_{this}; ::grpc::ClientAsyncResponseReader< ::viam::component::inputcontroller::v1::GetControlsResponse>* AsyncGetControlsRaw(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetControlsRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::component::inputcontroller::v1::GetControlsResponse>* PrepareAsyncGetControlsRaw(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetControlsRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::component::inputcontroller::v1::GetEventsResponse>* AsyncGetEventsRaw(::grpc::ClientContext* context, const ::viam::component::inputcontroller::v1::GetEventsRequest& request, ::grpc::CompletionQueue* cq) override; @@ -364,22 +477,36 @@ class InputControllerService final { }; typedef WithAsyncMethod_GetControls > > > > > AsyncService; template - class WithCallbackMethod_GetControls : public BaseClass { + class ExperimentalWithCallbackMethod_GetControls : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetControls() { - ::grpc::Service::MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::inputcontroller::v1::GetControlsRequest, ::viam::component::inputcontroller::v1::GetControlsResponse>( + ExperimentalWithCallbackMethod_GetControls() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::inputcontroller::v1::GetControlsRequest, ::viam::component::inputcontroller::v1::GetControlsResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::inputcontroller::v1::GetControlsRequest* request, ::viam::component::inputcontroller::v1::GetControlsResponse* response) { return this->GetControls(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::inputcontroller::v1::GetControlsRequest* request, ::viam::component::inputcontroller::v1::GetControlsResponse* response) { return this->GetControls(context, request, response); }));} void SetMessageAllocatorFor_GetControls( - ::grpc::MessageAllocator< ::viam::component::inputcontroller::v1::GetControlsRequest, ::viam::component::inputcontroller::v1::GetControlsResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::inputcontroller::v1::GetControlsRequest, ::viam::component::inputcontroller::v1::GetControlsResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::inputcontroller::v1::GetControlsRequest, ::viam::component::inputcontroller::v1::GetControlsResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(0); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::inputcontroller::v1::GetControlsRequest, ::viam::component::inputcontroller::v1::GetControlsResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetControls() override { + ~ExperimentalWithCallbackMethod_GetControls() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -387,26 +514,46 @@ class InputControllerService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetControls( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::inputcontroller::v1::GetControlsRequest* /*request*/, ::viam::component::inputcontroller::v1::GetControlsResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::inputcontroller::v1::GetControlsRequest* /*request*/, ::viam::component::inputcontroller::v1::GetControlsResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetControls( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::inputcontroller::v1::GetControlsRequest* /*request*/, ::viam::component::inputcontroller::v1::GetControlsResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetEvents : public BaseClass { + class ExperimentalWithCallbackMethod_GetEvents : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetEvents() { - ::grpc::Service::MarkMethodCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::inputcontroller::v1::GetEventsRequest, ::viam::component::inputcontroller::v1::GetEventsResponse>( + ExperimentalWithCallbackMethod_GetEvents() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::inputcontroller::v1::GetEventsRequest, ::viam::component::inputcontroller::v1::GetEventsResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::inputcontroller::v1::GetEventsRequest* request, ::viam::component::inputcontroller::v1::GetEventsResponse* response) { return this->GetEvents(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::inputcontroller::v1::GetEventsRequest* request, ::viam::component::inputcontroller::v1::GetEventsResponse* response) { return this->GetEvents(context, request, response); }));} void SetMessageAllocatorFor_GetEvents( - ::grpc::MessageAllocator< ::viam::component::inputcontroller::v1::GetEventsRequest, ::viam::component::inputcontroller::v1::GetEventsResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::inputcontroller::v1::GetEventsRequest, ::viam::component::inputcontroller::v1::GetEventsResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::inputcontroller::v1::GetEventsRequest, ::viam::component::inputcontroller::v1::GetEventsResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(1); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::inputcontroller::v1::GetEventsRequest, ::viam::component::inputcontroller::v1::GetEventsResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetEvents() override { + ~ExperimentalWithCallbackMethod_GetEvents() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -414,21 +561,37 @@ class InputControllerService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetEvents( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::inputcontroller::v1::GetEventsRequest* /*request*/, ::viam::component::inputcontroller::v1::GetEventsResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::inputcontroller::v1::GetEventsRequest* /*request*/, ::viam::component::inputcontroller::v1::GetEventsResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetEvents( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::inputcontroller::v1::GetEventsRequest* /*request*/, ::viam::component::inputcontroller::v1::GetEventsResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_StreamEvents : public BaseClass { + class ExperimentalWithCallbackMethod_StreamEvents : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_StreamEvents() { - ::grpc::Service::MarkMethodCallback(2, - new ::grpc::internal::CallbackServerStreamingHandler< ::viam::component::inputcontroller::v1::StreamEventsRequest, ::viam::component::inputcontroller::v1::StreamEventsResponse>( + ExperimentalWithCallbackMethod_StreamEvents() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(2, + new ::grpc_impl::internal::CallbackServerStreamingHandler< ::viam::component::inputcontroller::v1::StreamEventsRequest, ::viam::component::inputcontroller::v1::StreamEventsResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::inputcontroller::v1::StreamEventsRequest* request) { return this->StreamEvents(context, request); })); - } - ~WithCallbackMethod_StreamEvents() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::inputcontroller::v1::StreamEventsRequest* request) { return this->StreamEvents(context, request); })); + } + ~ExperimentalWithCallbackMethod_StreamEvents() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -436,26 +599,46 @@ class InputControllerService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerWriteReactor< ::viam::component::inputcontroller::v1::StreamEventsResponse>* StreamEvents( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::inputcontroller::v1::StreamEventsRequest* /*request*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::inputcontroller::v1::StreamEventsRequest* /*request*/) + #else + virtual ::grpc::experimental::ServerWriteReactor< ::viam::component::inputcontroller::v1::StreamEventsResponse>* StreamEvents( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::inputcontroller::v1::StreamEventsRequest* /*request*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_TriggerEvent : public BaseClass { + class ExperimentalWithCallbackMethod_TriggerEvent : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_TriggerEvent() { - ::grpc::Service::MarkMethodCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::inputcontroller::v1::TriggerEventRequest, ::viam::component::inputcontroller::v1::TriggerEventResponse>( + ExperimentalWithCallbackMethod_TriggerEvent() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(3, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::inputcontroller::v1::TriggerEventRequest, ::viam::component::inputcontroller::v1::TriggerEventResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::inputcontroller::v1::TriggerEventRequest* request, ::viam::component::inputcontroller::v1::TriggerEventResponse* response) { return this->TriggerEvent(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::inputcontroller::v1::TriggerEventRequest* request, ::viam::component::inputcontroller::v1::TriggerEventResponse* response) { return this->TriggerEvent(context, request, response); }));} void SetMessageAllocatorFor_TriggerEvent( - ::grpc::MessageAllocator< ::viam::component::inputcontroller::v1::TriggerEventRequest, ::viam::component::inputcontroller::v1::TriggerEventResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::inputcontroller::v1::TriggerEventRequest, ::viam::component::inputcontroller::v1::TriggerEventResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::inputcontroller::v1::TriggerEventRequest, ::viam::component::inputcontroller::v1::TriggerEventResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(3); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::inputcontroller::v1::TriggerEventRequest, ::viam::component::inputcontroller::v1::TriggerEventResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_TriggerEvent() override { + ~ExperimentalWithCallbackMethod_TriggerEvent() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -463,26 +646,46 @@ class InputControllerService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* TriggerEvent( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::inputcontroller::v1::TriggerEventRequest* /*request*/, ::viam::component::inputcontroller::v1::TriggerEventResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::inputcontroller::v1::TriggerEventRequest* /*request*/, ::viam::component::inputcontroller::v1::TriggerEventResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* TriggerEvent( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::inputcontroller::v1::TriggerEventRequest* /*request*/, ::viam::component::inputcontroller::v1::TriggerEventResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_DoCommand : public BaseClass { + class ExperimentalWithCallbackMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_DoCommand() { - ::grpc::Service::MarkMethodCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( + ExperimentalWithCallbackMethod_DoCommand() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(4, + new ::grpc_impl::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); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + 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::experimental::MessageAllocator< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(4); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_DoCommand() override { + ~ExperimentalWithCallbackMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -490,26 +693,46 @@ class InputControllerService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DoCommand( - ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DoCommand( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetGeometries : public BaseClass { + class ExperimentalWithCallbackMethod_GetGeometries : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetGeometries() { - ::grpc::Service::MarkMethodCallback(5, - new ::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( + ExperimentalWithCallbackMethod_GetGeometries() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(5, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response) { return this->GetGeometries(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response) { return this->GetGeometries(context, request, response); }));} void SetMessageAllocatorFor_GetGeometries( - ::grpc::MessageAllocator< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(5); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(5); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetGeometries() override { + ~ExperimentalWithCallbackMethod_GetGeometries() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -517,11 +740,20 @@ class InputControllerService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetGeometries( - ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::GetGeometriesRequest* /*request*/, ::viam::common::v1::GetGeometriesResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::GetGeometriesRequest* /*request*/, ::viam::common::v1::GetGeometriesResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetGeometries( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::common::v1::GetGeometriesRequest* /*request*/, ::viam::common::v1::GetGeometriesResponse* /*response*/) + #endif + { return nullptr; } }; - typedef WithCallbackMethod_GetControls > > > > > CallbackService; - typedef CallbackService ExperimentalCallbackService; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef ExperimentalWithCallbackMethod_GetControls > > > > > CallbackService; + #endif + + typedef ExperimentalWithCallbackMethod_GetControls > > > > > ExperimentalCallbackService; template class WithGenericMethod_GetControls : public BaseClass { private: @@ -745,17 +977,27 @@ class InputControllerService final { } }; template - class WithRawCallbackMethod_GetControls : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetControls : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetControls() { - ::grpc::Service::MarkMethodRawCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetControls() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetControls(context, request, response); })); - } - ~WithRawCallbackMethod_GetControls() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetControls(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetControls() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -763,21 +1005,37 @@ class InputControllerService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetControls( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetControls( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetEvents : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetEvents : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetEvents() { - ::grpc::Service::MarkMethodRawCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetEvents() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetEvents(context, request, response); })); - } - ~WithRawCallbackMethod_GetEvents() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetEvents(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetEvents() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -785,21 +1043,37 @@ class InputControllerService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetEvents( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetEvents( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_StreamEvents : public BaseClass { + class ExperimentalWithRawCallbackMethod_StreamEvents : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_StreamEvents() { - ::grpc::Service::MarkMethodRawCallback(2, - new ::grpc::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_StreamEvents() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(2, + new ::grpc_impl::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const::grpc::ByteBuffer* request) { return this->StreamEvents(context, request); })); - } - ~WithRawCallbackMethod_StreamEvents() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const::grpc::ByteBuffer* request) { return this->StreamEvents(context, request); })); + } + ~ExperimentalWithRawCallbackMethod_StreamEvents() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -807,21 +1081,37 @@ class InputControllerService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerWriteReactor< ::grpc::ByteBuffer>* StreamEvents( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) + #else + virtual ::grpc::experimental::ServerWriteReactor< ::grpc::ByteBuffer>* StreamEvents( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_TriggerEvent : public BaseClass { + class ExperimentalWithRawCallbackMethod_TriggerEvent : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_TriggerEvent() { - ::grpc::Service::MarkMethodRawCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_TriggerEvent() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(3, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->TriggerEvent(context, request, response); })); - } - ~WithRawCallbackMethod_TriggerEvent() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->TriggerEvent(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_TriggerEvent() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -829,21 +1119,37 @@ class InputControllerService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* TriggerEvent( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* TriggerEvent( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_DoCommand : public BaseClass { + class ExperimentalWithRawCallbackMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_DoCommand() { - ::grpc::Service::MarkMethodRawCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_DoCommand() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(4, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DoCommand(context, request, response); })); - } - ~WithRawCallbackMethod_DoCommand() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DoCommand(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -851,21 +1157,37 @@ class InputControllerService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DoCommand( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DoCommand( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetGeometries : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetGeometries : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetGeometries() { - ::grpc::Service::MarkMethodRawCallback(5, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetGeometries() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(5, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetGeometries(context, request, response); })); - } - ~WithRawCallbackMethod_GetGeometries() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetGeometries(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetGeometries() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -873,8 +1195,14 @@ class InputControllerService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetGeometries( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetGeometries( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template class WithStreamedUnaryMethod_GetControls : public BaseClass { @@ -885,8 +1213,8 @@ class InputControllerService final { ::grpc::Service::MarkMethodStreamed(0, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::inputcontroller::v1::GetControlsRequest, ::viam::component::inputcontroller::v1::GetControlsResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::inputcontroller::v1::GetControlsRequest, ::viam::component::inputcontroller::v1::GetControlsResponse>* streamer) { return this->StreamedGetControls(context, streamer); @@ -912,8 +1240,8 @@ class InputControllerService final { ::grpc::Service::MarkMethodStreamed(1, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::inputcontroller::v1::GetEventsRequest, ::viam::component::inputcontroller::v1::GetEventsResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::inputcontroller::v1::GetEventsRequest, ::viam::component::inputcontroller::v1::GetEventsResponse>* streamer) { return this->StreamedGetEvents(context, streamer); @@ -939,8 +1267,8 @@ class InputControllerService final { ::grpc::Service::MarkMethodStreamed(3, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::inputcontroller::v1::TriggerEventRequest, ::viam::component::inputcontroller::v1::TriggerEventResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::inputcontroller::v1::TriggerEventRequest, ::viam::component::inputcontroller::v1::TriggerEventResponse>* streamer) { return this->StreamedTriggerEvent(context, streamer); @@ -966,8 +1294,8 @@ class InputControllerService final { ::grpc::Service::MarkMethodStreamed(4, new ::grpc::internal::StreamedUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* streamer) { return this->StreamedDoCommand(context, streamer); @@ -993,8 +1321,8 @@ class InputControllerService final { ::grpc::Service::MarkMethodStreamed(5, new ::grpc::internal::StreamedUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>* streamer) { return this->StreamedGetGeometries(context, streamer); @@ -1021,8 +1349,8 @@ class InputControllerService final { ::grpc::Service::MarkMethodStreamed(2, new ::grpc::internal::SplitServerStreamingHandler< ::viam::component::inputcontroller::v1::StreamEventsRequest, ::viam::component::inputcontroller::v1::StreamEventsResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerSplitStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerSplitStreamer< ::viam::component::inputcontroller::v1::StreamEventsRequest, ::viam::component::inputcontroller::v1::StreamEventsResponse>* streamer) { return this->StreamedStreamEvents(context, streamer); diff --git a/src/viam/api/component/inputcontroller/v1/input_controller.pb.cc b/src/viam/api/component/inputcontroller/v1/input_controller.pb.cc index 565e9dd36..82b78ad57 100644 --- a/src/viam/api/component/inputcontroller/v1/input_controller.pb.cc +++ b/src/viam/api/component/inputcontroller/v1/input_controller.pb.cc @@ -4,752 +4,595 @@ #include "component/inputcontroller/v1/input_controller.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace viam { namespace component { namespace inputcontroller { namespace v1 { - template -PROTOBUF_CONSTEXPR TriggerEventResponse::TriggerEventResponse(::_pbi::ConstantInitialized) {} -struct TriggerEventResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR TriggerEventResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TriggerEventResponseDefaultTypeInternal() {} - union { - TriggerEventResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TriggerEventResponseDefaultTypeInternal _TriggerEventResponse_default_instance_; - -inline constexpr StreamEventsRequest_Events::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : events_{}, - cancelled_events_{}, - control_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR StreamEventsRequest_Events::StreamEventsRequest_Events(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct StreamEventsRequest_EventsDefaultTypeInternal { - PROTOBUF_CONSTEXPR StreamEventsRequest_EventsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StreamEventsRequest_EventsDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR GetControlsRequest::GetControlsRequest( + ::_pbi::ConstantInitialized) + : controller_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} +struct GetControlsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetControlsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetControlsRequestDefaultTypeInternal() {} union { - StreamEventsRequest_Events _instance; + GetControlsRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StreamEventsRequest_EventsDefaultTypeInternal _StreamEventsRequest_Events_default_instance_; - -inline constexpr GetControlsResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : controls_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetControlsResponse::GetControlsResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetControlsRequestDefaultTypeInternal _GetControlsRequest_default_instance_; +PROTOBUF_CONSTEXPR GetControlsResponse::GetControlsResponse( + ::_pbi::ConstantInitialized) + : controls_(){} struct GetControlsResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetControlsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GetControlsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~GetControlsResponseDefaultTypeInternal() {} union { GetControlsResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetControlsResponseDefaultTypeInternal _GetControlsResponse_default_instance_; - -inline constexpr StreamEventsRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - events_{}, - controller_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR StreamEventsRequest::StreamEventsRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct StreamEventsRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR StreamEventsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StreamEventsRequestDefaultTypeInternal() {} - union { - StreamEventsRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StreamEventsRequestDefaultTypeInternal _StreamEventsRequest_default_instance_; - -inline constexpr GetEventsRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - controller_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetEventsRequest::GetEventsRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetControlsResponseDefaultTypeInternal _GetControlsResponse_default_instance_; +PROTOBUF_CONSTEXPR GetEventsRequest::GetEventsRequest( + ::_pbi::ConstantInitialized) + : controller_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} struct GetEventsRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetEventsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GetEventsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~GetEventsRequestDefaultTypeInternal() {} union { GetEventsRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetEventsRequestDefaultTypeInternal _GetEventsRequest_default_instance_; - -inline constexpr GetControlsRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - controller_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetControlsRequest::GetControlsRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetControlsRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetControlsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetControlsRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetEventsRequestDefaultTypeInternal _GetEventsRequest_default_instance_; +PROTOBUF_CONSTEXPR GetEventsResponse::GetEventsResponse( + ::_pbi::ConstantInitialized) + : events_(){} +struct GetEventsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetEventsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetEventsResponseDefaultTypeInternal() {} union { - GetControlsRequest _instance; + GetEventsResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetControlsRequestDefaultTypeInternal _GetControlsRequest_default_instance_; - -inline constexpr Event::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - event_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - control_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - time_{nullptr}, - value_{0} {} - -template -PROTOBUF_CONSTEXPR Event::Event(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetEventsResponseDefaultTypeInternal _GetEventsResponse_default_instance_; +PROTOBUF_CONSTEXPR TriggerEventRequest::TriggerEventRequest( + ::_pbi::ConstantInitialized) + : controller_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , event_(nullptr) + , extra_(nullptr){} +struct TriggerEventRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR TriggerEventRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~TriggerEventRequestDefaultTypeInternal() {} + union { + TriggerEventRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TriggerEventRequestDefaultTypeInternal _TriggerEventRequest_default_instance_; +PROTOBUF_CONSTEXPR TriggerEventResponse::TriggerEventResponse( + ::_pbi::ConstantInitialized){} +struct TriggerEventResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR TriggerEventResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~TriggerEventResponseDefaultTypeInternal() {} + union { + TriggerEventResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TriggerEventResponseDefaultTypeInternal _TriggerEventResponse_default_instance_; +PROTOBUF_CONSTEXPR Event::Event( + ::_pbi::ConstantInitialized) + : event_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , control_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , time_(nullptr) + , value_(0){} struct EventDefaultTypeInternal { - PROTOBUF_CONSTEXPR EventDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR EventDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~EventDefaultTypeInternal() {} union { Event _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EventDefaultTypeInternal _Event_default_instance_; - -inline constexpr TriggerEventRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - controller_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - event_{nullptr}, - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR TriggerEventRequest::TriggerEventRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct TriggerEventRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR TriggerEventRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TriggerEventRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EventDefaultTypeInternal _Event_default_instance_; +PROTOBUF_CONSTEXPR StreamEventsRequest_Events::StreamEventsRequest_Events( + ::_pbi::ConstantInitialized) + : events_() + , cancelled_events_() + , control_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct StreamEventsRequest_EventsDefaultTypeInternal { + PROTOBUF_CONSTEXPR StreamEventsRequest_EventsDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StreamEventsRequest_EventsDefaultTypeInternal() {} union { - TriggerEventRequest _instance; + StreamEventsRequest_Events _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TriggerEventRequestDefaultTypeInternal _TriggerEventRequest_default_instance_; - -inline constexpr StreamEventsResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - event_{nullptr} {} - -template -PROTOBUF_CONSTEXPR StreamEventsResponse::StreamEventsResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StreamEventsRequest_EventsDefaultTypeInternal _StreamEventsRequest_Events_default_instance_; +PROTOBUF_CONSTEXPR StreamEventsRequest::StreamEventsRequest( + ::_pbi::ConstantInitialized) + : events_() + , controller_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} +struct StreamEventsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR StreamEventsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StreamEventsRequestDefaultTypeInternal() {} + union { + StreamEventsRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StreamEventsRequestDefaultTypeInternal _StreamEventsRequest_default_instance_; +PROTOBUF_CONSTEXPR StreamEventsResponse::StreamEventsResponse( + ::_pbi::ConstantInitialized) + : event_(nullptr){} struct StreamEventsResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR StreamEventsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR StreamEventsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~StreamEventsResponseDefaultTypeInternal() {} union { StreamEventsResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StreamEventsResponseDefaultTypeInternal _StreamEventsResponse_default_instance_; - -inline constexpr Status::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : events_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR Status::Status(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StreamEventsResponseDefaultTypeInternal _StreamEventsResponse_default_instance_; +PROTOBUF_CONSTEXPR Status::Status( + ::_pbi::ConstantInitialized) + : events_(){} struct StatusDefaultTypeInternal { - PROTOBUF_CONSTEXPR StatusDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR StatusDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~StatusDefaultTypeInternal() {} union { Status _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StatusDefaultTypeInternal _Status_default_instance_; - -inline constexpr GetEventsResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : events_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetEventsResponse::GetEventsResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetEventsResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetEventsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetEventsResponseDefaultTypeInternal() {} - union { - GetEventsResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetEventsResponseDefaultTypeInternal _GetEventsResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StatusDefaultTypeInternal _Status_default_instance_; } // namespace v1 } // namespace inputcontroller } // namespace component } // namespace viam static ::_pb::Metadata file_level_metadata_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto[11]; -static constexpr const ::_pb::EnumDescriptor** - file_level_enum_descriptors_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto = nullptr; -const ::uint32_t TableStruct_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::GetControlsRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::GetControlsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::GetControlsRequest, _impl_.controller_), - PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::GetControlsRequest, _impl_.extra_), - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::GetControlsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::GetControlsResponse, _impl_.controls_), - PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::GetEventsRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::GetEventsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::GetEventsRequest, _impl_.controller_), - PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::GetEventsRequest, _impl_.extra_), - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::GetEventsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::GetEventsResponse, _impl_.events_), - PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::TriggerEventRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::TriggerEventRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::TriggerEventRequest, _impl_.controller_), - PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::TriggerEventRequest, _impl_.event_), - PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::TriggerEventRequest, _impl_.extra_), - ~0u, - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::TriggerEventResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::Event, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::Event, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::Event, _impl_.time_), - PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::Event, _impl_.event_), - PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::Event, _impl_.control_), - PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::Event, _impl_.value_), - 0, - ~0u, - ~0u, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::StreamEventsRequest_Events, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::StreamEventsRequest_Events, _impl_.control_), - PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::StreamEventsRequest_Events, _impl_.events_), - PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::StreamEventsRequest_Events, _impl_.cancelled_events_), - PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::StreamEventsRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::StreamEventsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::StreamEventsRequest, _impl_.controller_), - PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::StreamEventsRequest, _impl_.events_), - PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::StreamEventsRequest, _impl_.extra_), - ~0u, - ~0u, - 0, - PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::StreamEventsResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::StreamEventsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::StreamEventsResponse, _impl_.event_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::Status, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::Status, _impl_.events_), +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto = nullptr; + +const uint32_t TableStruct_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::GetControlsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::GetControlsRequest, controller_), + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::GetControlsRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::GetControlsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::GetControlsResponse, controls_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::GetEventsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::GetEventsRequest, controller_), + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::GetEventsRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::GetEventsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::GetEventsResponse, events_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::TriggerEventRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::TriggerEventRequest, controller_), + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::TriggerEventRequest, event_), + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::TriggerEventRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::TriggerEventResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::Event, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::Event, time_), + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::Event, event_), + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::Event, control_), + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::Event, value_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::StreamEventsRequest_Events, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::StreamEventsRequest_Events, control_), + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::StreamEventsRequest_Events, events_), + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::StreamEventsRequest_Events, cancelled_events_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::StreamEventsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::StreamEventsRequest, controller_), + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::StreamEventsRequest, events_), + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::StreamEventsRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::StreamEventsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::StreamEventsResponse, event_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::Status, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::inputcontroller::v1::Status, events_), }; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, 10, -1, sizeof(::viam::component::inputcontroller::v1::GetControlsRequest)}, - {12, -1, -1, sizeof(::viam::component::inputcontroller::v1::GetControlsResponse)}, - {21, 31, -1, sizeof(::viam::component::inputcontroller::v1::GetEventsRequest)}, - {33, -1, -1, sizeof(::viam::component::inputcontroller::v1::GetEventsResponse)}, - {42, 53, -1, sizeof(::viam::component::inputcontroller::v1::TriggerEventRequest)}, - {56, -1, -1, sizeof(::viam::component::inputcontroller::v1::TriggerEventResponse)}, - {64, 76, -1, sizeof(::viam::component::inputcontroller::v1::Event)}, - {80, -1, -1, sizeof(::viam::component::inputcontroller::v1::StreamEventsRequest_Events)}, - {91, 102, -1, sizeof(::viam::component::inputcontroller::v1::StreamEventsRequest)}, - {105, 114, -1, sizeof(::viam::component::inputcontroller::v1::StreamEventsResponse)}, - {115, -1, -1, sizeof(::viam::component::inputcontroller::v1::Status)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::component::inputcontroller::v1::GetControlsRequest)}, + { 8, -1, -1, sizeof(::viam::component::inputcontroller::v1::GetControlsResponse)}, + { 15, -1, -1, sizeof(::viam::component::inputcontroller::v1::GetEventsRequest)}, + { 23, -1, -1, sizeof(::viam::component::inputcontroller::v1::GetEventsResponse)}, + { 30, -1, -1, sizeof(::viam::component::inputcontroller::v1::TriggerEventRequest)}, + { 39, -1, -1, sizeof(::viam::component::inputcontroller::v1::TriggerEventResponse)}, + { 45, -1, -1, sizeof(::viam::component::inputcontroller::v1::Event)}, + { 55, -1, -1, sizeof(::viam::component::inputcontroller::v1::StreamEventsRequest_Events)}, + { 64, -1, -1, sizeof(::viam::component::inputcontroller::v1::StreamEventsRequest)}, + { 73, -1, -1, sizeof(::viam::component::inputcontroller::v1::StreamEventsResponse)}, + { 80, -1, -1, sizeof(::viam::component::inputcontroller::v1::Status)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::viam::component::inputcontroller::v1::_GetControlsRequest_default_instance_._instance, - &::viam::component::inputcontroller::v1::_GetControlsResponse_default_instance_._instance, - &::viam::component::inputcontroller::v1::_GetEventsRequest_default_instance_._instance, - &::viam::component::inputcontroller::v1::_GetEventsResponse_default_instance_._instance, - &::viam::component::inputcontroller::v1::_TriggerEventRequest_default_instance_._instance, - &::viam::component::inputcontroller::v1::_TriggerEventResponse_default_instance_._instance, - &::viam::component::inputcontroller::v1::_Event_default_instance_._instance, - &::viam::component::inputcontroller::v1::_StreamEventsRequest_Events_default_instance_._instance, - &::viam::component::inputcontroller::v1::_StreamEventsRequest_default_instance_._instance, - &::viam::component::inputcontroller::v1::_StreamEventsResponse_default_instance_._instance, - &::viam::component::inputcontroller::v1::_Status_default_instance_._instance, -}; -const char descriptor_table_protodef_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n3component/inputcontroller/v1/input_con" - "troller.proto\022!viam.component.inputcontr" - "oller.v1\032\026common/v1/common.proto\032\034google" - "/api/annotations.proto\032\034google/protobuf/" - "struct.proto\032\037google/protobuf/timestamp." - "proto\"c\n\022GetControlsRequest\022\036\n\ncontrolle" - "r\030\001 \001(\tR\ncontroller\022-\n\005extra\030c \001(\0132\027.goo" - "gle.protobuf.StructR\005extra\"1\n\023GetControl" - "sResponse\022\032\n\010controls\030\001 \003(\tR\010controls\"a\n" - "\020GetEventsRequest\022\036\n\ncontroller\030\001 \001(\tR\nc" - "ontroller\022-\n\005extra\030c \001(\0132\027.google.protob" - "uf.StructR\005extra\"U\n\021GetEventsResponse\022@\n" - "\006events\030\001 \003(\0132(.viam.component.inputcont" - "roller.v1.EventR\006events\"\244\001\n\023TriggerEvent" - "Request\022\036\n\ncontroller\030\001 \001(\tR\ncontroller\022" - ">\n\005event\030\002 \001(\0132(.viam.component.inputcon" - "troller.v1.EventR\005event\022-\n\005extra\030c \001(\0132\027" - ".google.protobuf.StructR\005extra\"\026\n\024Trigge" - "rEventResponse\"}\n\005Event\022.\n\004time\030\001 \001(\0132\032." - "google.protobuf.TimestampR\004time\022\024\n\005event" - "\030\002 \001(\tR\005event\022\030\n\007control\030\003 \001(\tR\007control\022" - "\024\n\005value\030\004 \001(\001R\005value\"\242\002\n\023StreamEventsRe" - "quest\022\036\n\ncontroller\030\001 \001(\tR\ncontroller\022U\n" - "\006events\030\002 \003(\0132=.viam.component.inputcont" - "roller.v1.StreamEventsRequest.EventsR\006ev" - "ents\022-\n\005extra\030c \001(\0132\027.google.protobuf.St" - "ructR\005extra\032e\n\006Events\022\030\n\007control\030\001 \001(\tR\007" - "control\022\026\n\006events\030\002 \003(\tR\006events\022)\n\020cance" - "lled_events\030\003 \003(\tR\017cancelledEvents\"V\n\024St" - "reamEventsResponse\022>\n\005event\030\001 \001(\0132(.viam" - ".component.inputcontroller.v1.EventR\005eve" - "nt\"J\n\006Status\022@\n\006events\030\001 \003(\0132(.viam.comp" - "onent.inputcontroller.v1.EventR\006events2\247" - "\010\n\026InputControllerService\022\270\001\n\013GetControl" - "s\0225.viam.component.inputcontroller.v1.Ge" - "tControlsRequest\0326.viam.component.inputc" - "ontroller.v1.GetControlsResponse\":\202\323\344\223\0024" - "\0222/viam/api/v1/component/input/{controll" - "er}/controls\022\260\001\n\tGetEvents\0223.viam.compon" - "ent.inputcontroller.v1.GetEventsRequest\032" - "4.viam.component.inputcontroller.v1.GetE" - "ventsResponse\"8\202\323\344\223\0022\0220/viam/api/v1/comp" - "onent/input/{controller}/events\022\301\001\n\014Stre" - "amEvents\0226.viam.component.inputcontrolle" - "r.v1.StreamEventsRequest\0327.viam.componen" - "t.inputcontroller.v1.StreamEventsRespons" - "e\">\202\323\344\223\0028\0226/viam/api/v1/component/input/" - "{controller}/event_stream0\001\022\270\001\n\014TriggerE" - "vent\0226.viam.component.inputcontroller.v1" - ".TriggerEventRequest\0327.viam.component.in" - "putcontroller.v1.TriggerEventResponse\"7\202" - "\323\344\223\0021\"//viam/api/v1/component/input/{con" - "troller}/event\022\210\001\n\tDoCommand\022 .viam.comm" - "on.v1.DoCommandRequest\032!.viam.common.v1." - "DoCommandResponse\"6\202\323\344\223\0020\"./viam/api/v1/" - "component/input/{name}/do_command\022\224\001\n\rGe" - "tGeometries\022$.viam.common.v1.GetGeometri" - "esRequest\032%.viam.common.v1.GetGeometries" - "Response\"6\202\323\344\223\0020\022./viam/api/v1/component" - "/input/{name}/geometriesB\222\002\n%com.viam.co" - "mponent.inputcontroller.v1B\024InputControl" - "lerProtoP\001Z,go.viam.com/api/component/in" - "putcontroller/v1\242\002\003VCI\252\002!Viam.Component." - "Inputcontroller.V1\312\002!Viam\\Component\\Inpu" - "tcontroller\\V1\342\002-Viam\\Component\\Inputcon" - "troller\\V1\\GPBMetadata\352\002$Viam::Component" - "::Inputcontroller::V1b\006proto3" + &::viam::component::inputcontroller::v1::_GetControlsRequest_default_instance_._instance, + &::viam::component::inputcontroller::v1::_GetControlsResponse_default_instance_._instance, + &::viam::component::inputcontroller::v1::_GetEventsRequest_default_instance_._instance, + &::viam::component::inputcontroller::v1::_GetEventsResponse_default_instance_._instance, + &::viam::component::inputcontroller::v1::_TriggerEventRequest_default_instance_._instance, + &::viam::component::inputcontroller::v1::_TriggerEventResponse_default_instance_._instance, + &::viam::component::inputcontroller::v1::_Event_default_instance_._instance, + &::viam::component::inputcontroller::v1::_StreamEventsRequest_Events_default_instance_._instance, + &::viam::component::inputcontroller::v1::_StreamEventsRequest_default_instance_._instance, + &::viam::component::inputcontroller::v1::_StreamEventsResponse_default_instance_._instance, + &::viam::component::inputcontroller::v1::_Status_default_instance_._instance, }; -static const ::_pbi::DescriptorTable* const descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_deps[4] = - { - &::descriptor_table_common_2fv1_2fcommon_2eproto, - &::descriptor_table_google_2fapi_2fannotations_2eproto, - &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, - &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto, + +const char descriptor_table_protodef_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n3component/inputcontroller/v1/input_con" + "troller.proto\022!viam.component.inputcontr" + "oller.v1\032\026common/v1/common.proto\032\034google" + "/api/annotations.proto\032\034google/protobuf/" + "struct.proto\032\037google/protobuf/timestamp." + "proto\"c\n\022GetControlsRequest\022\036\n\ncontrolle" + "r\030\001 \001(\tR\ncontroller\022-\n\005extra\030c \001(\0132\027.goo" + "gle.protobuf.StructR\005extra\"1\n\023GetControl" + "sResponse\022\032\n\010controls\030\001 \003(\tR\010controls\"a\n" + "\020GetEventsRequest\022\036\n\ncontroller\030\001 \001(\tR\nc" + "ontroller\022-\n\005extra\030c \001(\0132\027.google.protob" + "uf.StructR\005extra\"U\n\021GetEventsResponse\022@\n" + "\006events\030\001 \003(\0132(.viam.component.inputcont" + "roller.v1.EventR\006events\"\244\001\n\023TriggerEvent" + "Request\022\036\n\ncontroller\030\001 \001(\tR\ncontroller\022" + ">\n\005event\030\002 \001(\0132(.viam.component.inputcon" + "troller.v1.EventR\005event\022-\n\005extra\030c \001(\0132\027" + ".google.protobuf.StructR\005extra\"\026\n\024Trigge" + "rEventResponse\"}\n\005Event\022.\n\004time\030\001 \001(\0132\032." + "google.protobuf.TimestampR\004time\022\024\n\005event" + "\030\002 \001(\tR\005event\022\030\n\007control\030\003 \001(\tR\007control\022" + "\024\n\005value\030\004 \001(\001R\005value\"\242\002\n\023StreamEventsRe" + "quest\022\036\n\ncontroller\030\001 \001(\tR\ncontroller\022U\n" + "\006events\030\002 \003(\0132=.viam.component.inputcont" + "roller.v1.StreamEventsRequest.EventsR\006ev" + "ents\022-\n\005extra\030c \001(\0132\027.google.protobuf.St" + "ructR\005extra\032e\n\006Events\022\030\n\007control\030\001 \001(\tR\007" + "control\022\026\n\006events\030\002 \003(\tR\006events\022)\n\020cance" + "lled_events\030\003 \003(\tR\017cancelledEvents\"V\n\024St" + "reamEventsResponse\022>\n\005event\030\001 \001(\0132(.viam" + ".component.inputcontroller.v1.EventR\005eve" + "nt\"J\n\006Status\022@\n\006events\030\001 \003(\0132(.viam.comp" + "onent.inputcontroller.v1.EventR\006events2\247" + "\010\n\026InputControllerService\022\270\001\n\013GetControl" + "s\0225.viam.component.inputcontroller.v1.Ge" + "tControlsRequest\0326.viam.component.inputc" + "ontroller.v1.GetControlsResponse\":\202\323\344\223\0024" + "\0222/viam/api/v1/component/input/{controll" + "er}/controls\022\260\001\n\tGetEvents\0223.viam.compon" + "ent.inputcontroller.v1.GetEventsRequest\032" + "4.viam.component.inputcontroller.v1.GetE" + "ventsResponse\"8\202\323\344\223\0022\0220/viam/api/v1/comp" + "onent/input/{controller}/events\022\301\001\n\014Stre" + "amEvents\0226.viam.component.inputcontrolle" + "r.v1.StreamEventsRequest\0327.viam.componen" + "t.inputcontroller.v1.StreamEventsRespons" + "e\">\202\323\344\223\0028\0226/viam/api/v1/component/input/" + "{controller}/event_stream0\001\022\270\001\n\014TriggerE" + "vent\0226.viam.component.inputcontroller.v1" + ".TriggerEventRequest\0327.viam.component.in" + "putcontroller.v1.TriggerEventResponse\"7\202" + "\323\344\223\0021\"//viam/api/v1/component/input/{con" + "troller}/event\022\210\001\n\tDoCommand\022 .viam.comm" + "on.v1.DoCommandRequest\032!.viam.common.v1." + "DoCommandResponse\"6\202\323\344\223\0020\"./viam/api/v1/" + "component/input/{name}/do_command\022\224\001\n\rGe" + "tGeometries\022$.viam.common.v1.GetGeometri" + "esRequest\032%.viam.common.v1.GetGeometries" + "Response\"6\202\323\344\223\0020\022./viam/api/v1/component" + "/input/{name}/geometriesBU\n%com.viam.com" + "ponent.inputcontroller.v1Z,go.viam.com/a" + "pi/component/inputcontroller/v1b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_deps[4] = { + &::descriptor_table_common_2fv1_2fcommon_2eproto, + &::descriptor_table_google_2fapi_2fannotations_2eproto, + &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, + &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto, }; -static ::absl::once_flag descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_once; +static ::_pbi::once_flag descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto = { - false, - false, - 2669, - descriptor_table_protodef_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto, + false, false, 2479, descriptor_table_protodef_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto, "component/inputcontroller/v1/input_controller.proto", - &descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_once, - descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_deps, - 4, - 11, - schemas, - file_default_instances, - TableStruct_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto::offsets, - file_level_metadata_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto, - file_level_enum_descriptors_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto, + &descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_once, descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_deps, 4, 11, + schemas, file_default_instances, TableStruct_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto::offsets, + file_level_metadata_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto, file_level_enum_descriptors_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto, file_level_service_descriptors_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_getter() { return &descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto(&descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto(&descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto); namespace viam { namespace component { namespace inputcontroller { namespace v1 { + // =================================================================== class GetControlsRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetControlsRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const GetControlsRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetControlsRequest* msg); }; -const ::google::protobuf::Struct& GetControlsRequest::_Internal::extra(const GetControlsRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetControlsRequest::_Internal::extra(const GetControlsRequest* msg) { + return *msg->extra_; } void GetControlsRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -GetControlsRequest::GetControlsRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetControlsRequest::GetControlsRequest(::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.inputcontroller.v1.GetControlsRequest) } -inline PROTOBUF_NDEBUG_INLINE GetControlsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - controller_(arena, from.controller_) {} - -GetControlsRequest::GetControlsRequest( - ::google::protobuf::Arena* arena, - const GetControlsRequest& from) - : ::google::protobuf::Message(arena) { - GetControlsRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +GetControlsRequest::GetControlsRequest(const GetControlsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + controller_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + controller_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_controller().empty()) { + controller_.Set(from._internal_controller(), + GetArenaForAllocation()); + } + if (from._internal_has_extra()) { + extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.extra_); + } else { + extra_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.component.inputcontroller.v1.GetControlsRequest) } -inline PROTOBUF_NDEBUG_INLINE GetControlsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - controller_(arena) {} -inline void GetControlsRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void GetControlsRequest::SharedCtor() { +controller_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + controller_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + GetControlsRequest::~GetControlsRequest() { // @@protoc_insertion_point(destructor:viam.component.inputcontroller.v1.GetControlsRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetControlsRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.controller_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + controller_.Destroy(); + if (this != internal_default_instance()) delete extra_; } -PROTOBUF_NOINLINE void GetControlsRequest::Clear() { +void GetControlsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetControlsRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.inputcontroller.v1.GetControlsRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.controller_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetControlsRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + controller_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetControlsRequest::_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 controller = 1 [json_name = "controller"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_controller(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.inputcontroller.v1.GetControlsRequest.controller")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 2, 1, 71, 7> GetControlsRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetControlsRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetControlsRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string controller = 1 [json_name = "controller"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetControlsRequest, _impl_.controller_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(GetControlsRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 1, - 65535, 65535 - }}, {{ - // string controller = 1 [json_name = "controller"]; - {PROTOBUF_FIELD_OFFSET(GetControlsRequest, _impl_.controller_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(GetControlsRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\64\12\0\0\0\0\0\0" - "viam.component.inputcontroller.v1.GetControlsRequest" - "controller" - }}, -}; - -::uint8_t* GetControlsRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetControlsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.inputcontroller.v1.GetControlsRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string controller = 1 [json_name = "controller"]; if (!this->_internal_controller().empty()) { - const std::string& _s = this->_internal_controller(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.inputcontroller.v1.GetControlsRequest.controller"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_controller().data(), static_cast(this->_internal_controller().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.inputcontroller.v1.GetControlsRequest.controller"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_controller(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.inputcontroller.v1.GetControlsRequest) return target; } -::size_t GetControlsRequest::ByteSizeLong() const { +size_t GetControlsRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.inputcontroller.v1.GetControlsRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string controller = 1 [json_name = "controller"]; if (!this->_internal_controller().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_controller()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_controller()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetControlsRequest::_class_data_ = { - GetControlsRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetControlsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetControlsRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetControlsRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetControlsRequest::GetClassData() const { return &_class_data_; } + +void GetControlsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetControlsRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.inputcontroller.v1.GetControlsRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetControlsRequest::MergeFrom(const GetControlsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.inputcontroller.v1.GetControlsRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_controller().empty()) { - _this->_internal_set_controller(from._internal_controller()); + _internal_set_controller(from._internal_controller()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetControlsRequest::CopyFrom(const GetControlsRequest& from) { @@ -759,186 +602,186 @@ void GetControlsRequest::CopyFrom(const GetControlsRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetControlsRequest::IsInitialized() const { +bool GetControlsRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetControlsRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetControlsRequest::InternalSwap(GetControlsRequest* PROTOBUF_RESTRICT other) { +void GetControlsRequest::InternalSwap(GetControlsRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.controller_, &other->_impl_.controller_, arena); - swap(_impl_.extra_, other->_impl_.extra_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &controller_, lhs_arena, + &other->controller_, rhs_arena + ); + swap(extra_, other->extra_); } -::google::protobuf::Metadata GetControlsRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetControlsRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_getter, &descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_once, file_level_metadata_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto[0]); } + // =================================================================== class GetControlsResponse::_Internal { public: }; -GetControlsResponse::GetControlsResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetControlsResponse::GetControlsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + controls_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.component.inputcontroller.v1.GetControlsResponse) } -inline PROTOBUF_NDEBUG_INLINE GetControlsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : controls_{visibility, arena, from.controls_}, - _cached_size_{0} {} - -GetControlsResponse::GetControlsResponse( - ::google::protobuf::Arena* arena, - const GetControlsResponse& from) - : ::google::protobuf::Message(arena) { - GetControlsResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetControlsResponse::GetControlsResponse(const GetControlsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + controls_(from.controls_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.component.inputcontroller.v1.GetControlsResponse) } -inline PROTOBUF_NDEBUG_INLINE GetControlsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : controls_{visibility, arena}, - _cached_size_{0} {} -inline void GetControlsResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetControlsResponse::SharedCtor() { } + GetControlsResponse::~GetControlsResponse() { // @@protoc_insertion_point(destructor:viam.component.inputcontroller.v1.GetControlsResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetControlsResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void GetControlsResponse::Clear() { +void GetControlsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetControlsResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.inputcontroller.v1.GetControlsResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.controls_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetControlsResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + controls_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetControlsResponse::_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) { + // repeated string controls = 1 [json_name = "controls"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_controls(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.inputcontroller.v1.GetControlsResponse.controls")); + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 70, 2> GetControlsResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetControlsResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated string controls = 1 [json_name = "controls"]; - {::_pbi::TcParser::FastUR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetControlsResponse, _impl_.controls_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated string controls = 1 [json_name = "controls"]; - {PROTOBUF_FIELD_OFFSET(GetControlsResponse, _impl_.controls_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - }}, - // no aux_entries - {{ - "\65\10\0\0\0\0\0\0" - "viam.component.inputcontroller.v1.GetControlsResponse" - "controls" - }}, -}; - -::uint8_t* GetControlsResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetControlsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.inputcontroller.v1.GetControlsResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated string controls = 1 [json_name = "controls"]; - for (int i = 0, n = this->_internal_controls_size(); i < n; ++i) { - const auto& s = this->_internal_controls().Get(i); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.inputcontroller.v1.GetControlsResponse.controls"); + for (int i = 0, n = this->_internal_controls_size(); i < n; i++) { + const auto& s = this->_internal_controls(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.inputcontroller.v1.GetControlsResponse.controls"); target = stream->WriteString(1, s, target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.inputcontroller.v1.GetControlsResponse) return target; } -::size_t GetControlsResponse::ByteSizeLong() const { +size_t GetControlsResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.inputcontroller.v1.GetControlsResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated string controls = 1 [json_name = "controls"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_controls().size()); - for (int i = 0, n = _internal_controls().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - _internal_controls().Get(i)); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(controls_.size()); + for (int i = 0, n = controls_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + controls_.Get(i)); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetControlsResponse::_class_data_ = { - GetControlsResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetControlsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetControlsResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetControlsResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetControlsResponse::GetClassData() const { return &_class_data_; } + +void GetControlsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetControlsResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.inputcontroller.v1.GetControlsResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetControlsResponse::MergeFrom(const GetControlsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.inputcontroller.v1.GetControlsResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_controls()->MergeFrom(from._internal_controls()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + controls_.MergeFrom(from.controls_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetControlsResponse::CopyFrom(const GetControlsResponse& from) { @@ -948,242 +791,234 @@ void GetControlsResponse::CopyFrom(const GetControlsResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetControlsResponse::IsInitialized() const { +bool GetControlsResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetControlsResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetControlsResponse::InternalSwap(GetControlsResponse* PROTOBUF_RESTRICT other) { +void GetControlsResponse::InternalSwap(GetControlsResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.controls_.InternalSwap(&other->_impl_.controls_); + controls_.InternalSwap(&other->controls_); } -::google::protobuf::Metadata GetControlsResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetControlsResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_getter, &descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_once, file_level_metadata_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto[1]); } + // =================================================================== class GetEventsRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetEventsRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const GetEventsRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetEventsRequest* msg); }; -const ::google::protobuf::Struct& GetEventsRequest::_Internal::extra(const GetEventsRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetEventsRequest::_Internal::extra(const GetEventsRequest* msg) { + return *msg->extra_; } void GetEventsRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -GetEventsRequest::GetEventsRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetEventsRequest::GetEventsRequest(::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.inputcontroller.v1.GetEventsRequest) } -inline PROTOBUF_NDEBUG_INLINE GetEventsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - controller_(arena, from.controller_) {} - -GetEventsRequest::GetEventsRequest( - ::google::protobuf::Arena* arena, - const GetEventsRequest& from) - : ::google::protobuf::Message(arena) { - GetEventsRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +GetEventsRequest::GetEventsRequest(const GetEventsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + controller_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + controller_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_controller().empty()) { + controller_.Set(from._internal_controller(), + GetArenaForAllocation()); + } + if (from._internal_has_extra()) { + extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.extra_); + } else { + extra_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.component.inputcontroller.v1.GetEventsRequest) } -inline PROTOBUF_NDEBUG_INLINE GetEventsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - controller_(arena) {} -inline void GetEventsRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void GetEventsRequest::SharedCtor() { +controller_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + controller_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + GetEventsRequest::~GetEventsRequest() { // @@protoc_insertion_point(destructor:viam.component.inputcontroller.v1.GetEventsRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetEventsRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.controller_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + controller_.Destroy(); + if (this != internal_default_instance()) delete extra_; } -PROTOBUF_NOINLINE void GetEventsRequest::Clear() { +void GetEventsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetEventsRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.inputcontroller.v1.GetEventsRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.controller_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetEventsRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + controller_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetEventsRequest::_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 controller = 1 [json_name = "controller"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_controller(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.inputcontroller.v1.GetEventsRequest.controller")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 2, 1, 69, 7> GetEventsRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetEventsRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetEventsRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string controller = 1 [json_name = "controller"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetEventsRequest, _impl_.controller_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(GetEventsRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 1, - 65535, 65535 - }}, {{ - // string controller = 1 [json_name = "controller"]; - {PROTOBUF_FIELD_OFFSET(GetEventsRequest, _impl_.controller_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(GetEventsRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\62\12\0\0\0\0\0\0" - "viam.component.inputcontroller.v1.GetEventsRequest" - "controller" - }}, -}; - -::uint8_t* GetEventsRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetEventsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.inputcontroller.v1.GetEventsRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string controller = 1 [json_name = "controller"]; if (!this->_internal_controller().empty()) { - const std::string& _s = this->_internal_controller(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.inputcontroller.v1.GetEventsRequest.controller"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_controller().data(), static_cast(this->_internal_controller().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.inputcontroller.v1.GetEventsRequest.controller"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_controller(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.inputcontroller.v1.GetEventsRequest) return target; } -::size_t GetEventsRequest::ByteSizeLong() const { +size_t GetEventsRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.inputcontroller.v1.GetEventsRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string controller = 1 [json_name = "controller"]; if (!this->_internal_controller().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_controller()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_controller()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetEventsRequest::_class_data_ = { - GetEventsRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetEventsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetEventsRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetEventsRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetEventsRequest::GetClassData() const { return &_class_data_; } + +void GetEventsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetEventsRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.inputcontroller.v1.GetEventsRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetEventsRequest::MergeFrom(const GetEventsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.inputcontroller.v1.GetEventsRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_controller().empty()) { - _this->_internal_set_controller(from._internal_controller()); + _internal_set_controller(from._internal_controller()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetEventsRequest::CopyFrom(const GetEventsRequest& from) { @@ -1193,184 +1028,181 @@ void GetEventsRequest::CopyFrom(const GetEventsRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetEventsRequest::IsInitialized() const { +bool GetEventsRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetEventsRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetEventsRequest::InternalSwap(GetEventsRequest* PROTOBUF_RESTRICT other) { +void GetEventsRequest::InternalSwap(GetEventsRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.controller_, &other->_impl_.controller_, arena); - swap(_impl_.extra_, other->_impl_.extra_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &controller_, lhs_arena, + &other->controller_, rhs_arena + ); + swap(extra_, other->extra_); } -::google::protobuf::Metadata GetEventsRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetEventsRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_getter, &descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_once, file_level_metadata_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto[2]); } + // =================================================================== class GetEventsResponse::_Internal { public: }; -GetEventsResponse::GetEventsResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetEventsResponse::GetEventsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + events_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.component.inputcontroller.v1.GetEventsResponse) } -inline PROTOBUF_NDEBUG_INLINE GetEventsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : events_{visibility, arena, from.events_}, - _cached_size_{0} {} - -GetEventsResponse::GetEventsResponse( - ::google::protobuf::Arena* arena, - const GetEventsResponse& from) - : ::google::protobuf::Message(arena) { - GetEventsResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetEventsResponse::GetEventsResponse(const GetEventsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + events_(from.events_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.component.inputcontroller.v1.GetEventsResponse) } -inline PROTOBUF_NDEBUG_INLINE GetEventsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : events_{visibility, arena}, - _cached_size_{0} {} -inline void GetEventsResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetEventsResponse::SharedCtor() { } + GetEventsResponse::~GetEventsResponse() { // @@protoc_insertion_point(destructor:viam.component.inputcontroller.v1.GetEventsResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetEventsResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void GetEventsResponse::Clear() { +void GetEventsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetEventsResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.inputcontroller.v1.GetEventsResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.events_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetEventsResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + events_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetEventsResponse::_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) { + // repeated .viam.component.inputcontroller.v1.Event events = 1 [json_name = "events"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_events(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetEventsResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetEventsResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.component.inputcontroller.v1.Event events = 1 [json_name = "events"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetEventsResponse, _impl_.events_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.component.inputcontroller.v1.Event events = 1 [json_name = "events"]; - {PROTOBUF_FIELD_OFFSET(GetEventsResponse, _impl_.events_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::component::inputcontroller::v1::Event>()}, - }}, {{ - }}, -}; - -::uint8_t* GetEventsResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetEventsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.inputcontroller.v1.GetEventsResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .viam.component.inputcontroller.v1.Event events = 1 [json_name = "events"]; for (unsigned i = 0, n = static_cast(this->_internal_events_size()); i < n; i++) { - const auto& repfield = this->_internal_events().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_events(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.inputcontroller.v1.GetEventsResponse) return target; } -::size_t GetEventsResponse::ByteSizeLong() const { +size_t GetEventsResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.inputcontroller.v1.GetEventsResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.component.inputcontroller.v1.Event events = 1 [json_name = "events"]; total_size += 1UL * this->_internal_events_size(); - for (const auto& msg : this->_internal_events()) { + for (const auto& msg : this->events_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetEventsResponse::_class_data_ = { - GetEventsResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetEventsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetEventsResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetEventsResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetEventsResponse::GetClassData() const { return &_class_data_; } + +void GetEventsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetEventsResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.inputcontroller.v1.GetEventsResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetEventsResponse::MergeFrom(const GetEventsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.inputcontroller.v1.GetEventsResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_events()->MergeFrom( - from._internal_events()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + events_.MergeFrom(from.events_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetEventsResponse::CopyFrom(const GetEventsResponse& from) { @@ -1380,292 +1212,277 @@ void GetEventsResponse::CopyFrom(const GetEventsResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetEventsResponse::IsInitialized() const { +bool GetEventsResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetEventsResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetEventsResponse::InternalSwap(GetEventsResponse* PROTOBUF_RESTRICT other) { +void GetEventsResponse::InternalSwap(GetEventsResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.events_.InternalSwap(&other->_impl_.events_); + events_.InternalSwap(&other->events_); } -::google::protobuf::Metadata GetEventsResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetEventsResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_getter, &descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_once, file_level_metadata_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto[3]); } + // =================================================================== class TriggerEventRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(TriggerEventRequest, _impl_._has_bits_); static const ::viam::component::inputcontroller::v1::Event& event(const TriggerEventRequest* msg); - static void set_has_event(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::google::protobuf::Struct& extra(const TriggerEventRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const TriggerEventRequest* msg); }; -const ::viam::component::inputcontroller::v1::Event& TriggerEventRequest::_Internal::event(const TriggerEventRequest* msg) { - return *msg->_impl_.event_; +const ::viam::component::inputcontroller::v1::Event& +TriggerEventRequest::_Internal::event(const TriggerEventRequest* msg) { + return *msg->event_; } -const ::google::protobuf::Struct& TriggerEventRequest::_Internal::extra(const TriggerEventRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +TriggerEventRequest::_Internal::extra(const TriggerEventRequest* msg) { + return *msg->extra_; } void TriggerEventRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -TriggerEventRequest::TriggerEventRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +TriggerEventRequest::TriggerEventRequest(::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.inputcontroller.v1.TriggerEventRequest) } -inline PROTOBUF_NDEBUG_INLINE TriggerEventRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - controller_(arena, from.controller_) {} - -TriggerEventRequest::TriggerEventRequest( - ::google::protobuf::Arena* arena, - const TriggerEventRequest& from) - : ::google::protobuf::Message(arena) { - TriggerEventRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.event_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::component::inputcontroller::v1::Event>(arena, *from._impl_.event_) - : nullptr; - _impl_.extra_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +TriggerEventRequest::TriggerEventRequest(const TriggerEventRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + controller_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + controller_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_controller().empty()) { + controller_.Set(from._internal_controller(), + GetArenaForAllocation()); + } + if (from._internal_has_event()) { + event_ = new ::viam::component::inputcontroller::v1::Event(*from.event_); + } else { + event_ = nullptr; + } + if (from._internal_has_extra()) { + extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.extra_); + } else { + extra_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.component.inputcontroller.v1.TriggerEventRequest) } -inline PROTOBUF_NDEBUG_INLINE TriggerEventRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - controller_(arena) {} - -inline void TriggerEventRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, event_), - 0, - offsetof(Impl_, extra_) - - offsetof(Impl_, event_) + - sizeof(Impl_::extra_)); + +inline void TriggerEventRequest::SharedCtor() { +controller_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + controller_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&event_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&extra_) - + reinterpret_cast(&event_)) + sizeof(extra_)); } + TriggerEventRequest::~TriggerEventRequest() { // @@protoc_insertion_point(destructor:viam.component.inputcontroller.v1.TriggerEventRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void TriggerEventRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.controller_.Destroy(); - delete _impl_.event_; - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + controller_.Destroy(); + if (this != internal_default_instance()) delete event_; + if (this != internal_default_instance()) delete extra_; +} + +void TriggerEventRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void TriggerEventRequest::Clear() { +void TriggerEventRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.inputcontroller.v1.TriggerEventRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.controller_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.event_ != nullptr); - _impl_.event_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); + controller_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && event_ != nullptr) { + delete event_; + } + event_ = nullptr; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* TriggerEventRequest::_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 controller = 1 [json_name = "controller"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_controller(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.inputcontroller.v1.TriggerEventRequest.controller")); + } else + goto handle_unusual; + continue; + // .viam.component.inputcontroller.v1.Event event = 2 [json_name = "event"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_event(), ptr); + CHK_(ptr); + } 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; } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* TriggerEventRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 2, 72, 7> TriggerEventRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(TriggerEventRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_TriggerEventRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string controller = 1 [json_name = "controller"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(TriggerEventRequest, _impl_.controller_)}}, - // .viam.component.inputcontroller.v1.Event event = 2 [json_name = "event"]; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(TriggerEventRequest, _impl_.event_)}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 1, 1, PROTOBUF_FIELD_OFFSET(TriggerEventRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 2, - 65535, 65535 - }}, {{ - // string controller = 1 [json_name = "controller"]; - {PROTOBUF_FIELD_OFFSET(TriggerEventRequest, _impl_.controller_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .viam.component.inputcontroller.v1.Event event = 2 [json_name = "event"]; - {PROTOBUF_FIELD_OFFSET(TriggerEventRequest, _impl_.event_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(TriggerEventRequest, _impl_.extra_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::component::inputcontroller::v1::Event>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\65\12\0\0\0\0\0\0" - "viam.component.inputcontroller.v1.TriggerEventRequest" - "controller" - }}, -}; - -::uint8_t* TriggerEventRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* TriggerEventRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.inputcontroller.v1.TriggerEventRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string controller = 1 [json_name = "controller"]; if (!this->_internal_controller().empty()) { - const std::string& _s = this->_internal_controller(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.inputcontroller.v1.TriggerEventRequest.controller"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_controller().data(), static_cast(this->_internal_controller().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.inputcontroller.v1.TriggerEventRequest.controller"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_controller(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .viam.component.inputcontroller.v1.Event event = 2 [json_name = "event"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::event(this), + if (this->_internal_has_event()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::event(this), _Internal::event(this).GetCachedSize(), target, stream); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.inputcontroller.v1.TriggerEventRequest) return target; } -::size_t TriggerEventRequest::ByteSizeLong() const { +size_t TriggerEventRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.inputcontroller.v1.TriggerEventRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string controller = 1 [json_name = "controller"]; if (!this->_internal_controller().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_controller()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_controller()); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // .viam.component.inputcontroller.v1.Event event = 2 [json_name = "event"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.event_); - } - - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); - } + // .viam.component.inputcontroller.v1.Event event = 2 [json_name = "event"]; + if (this->_internal_has_event()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *event_); + } + // .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, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData TriggerEventRequest::_class_data_ = { - TriggerEventRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TriggerEventRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + TriggerEventRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* TriggerEventRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TriggerEventRequest::GetClassData() const { return &_class_data_; } + +void TriggerEventRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void TriggerEventRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.inputcontroller.v1.TriggerEventRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void TriggerEventRequest::MergeFrom(const TriggerEventRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.inputcontroller.v1.TriggerEventRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_controller().empty()) { - _this->_internal_set_controller(from._internal_controller()); + _internal_set_controller(from._internal_controller()); } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_event()->::viam::component::inputcontroller::v1::Event::MergeFrom( - from._internal_event()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); - } + if (from._internal_has_event()) { + _internal_mutable_event()->::viam::component::inputcontroller::v1::Event::MergeFrom(from._internal_event()); + } + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void TriggerEventRequest::CopyFrom(const TriggerEventRequest& from) { @@ -1675,52 +1492,47 @@ void TriggerEventRequest::CopyFrom(const TriggerEventRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool TriggerEventRequest::IsInitialized() const { +bool TriggerEventRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* TriggerEventRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void TriggerEventRequest::InternalSwap(TriggerEventRequest* PROTOBUF_RESTRICT other) { +void TriggerEventRequest::InternalSwap(TriggerEventRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.controller_, &other->_impl_.controller_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(TriggerEventRequest, _impl_.extra_) - + sizeof(TriggerEventRequest::_impl_.extra_) - - PROTOBUF_FIELD_OFFSET(TriggerEventRequest, _impl_.event_)>( - reinterpret_cast(&_impl_.event_), - reinterpret_cast(&other->_impl_.event_)); -} - -::google::protobuf::Metadata TriggerEventRequest::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &controller_, lhs_arena, + &other->controller_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(TriggerEventRequest, extra_) + + sizeof(TriggerEventRequest::extra_) + - PROTOBUF_FIELD_OFFSET(TriggerEventRequest, event_)>( + reinterpret_cast(&event_), + reinterpret_cast(&other->event_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata TriggerEventRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_getter, &descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_once, file_level_metadata_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto[4]); } + // =================================================================== class TriggerEventResponse::_Internal { public: }; -TriggerEventResponse::TriggerEventResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +TriggerEventResponse::TriggerEventResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.component.inputcontroller.v1.TriggerEventResponse) } -TriggerEventResponse::TriggerEventResponse( - ::google::protobuf::Arena* arena, - const TriggerEventResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - TriggerEventResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +TriggerEventResponse::TriggerEventResponse(const TriggerEventResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.component.inputcontroller.v1.TriggerEventResponse) } @@ -1728,300 +1540,319 @@ TriggerEventResponse::TriggerEventResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TriggerEventResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TriggerEventResponse::GetClassData() const { return &_class_data_; } + + -::google::protobuf::Metadata TriggerEventResponse::GetMetadata() const { + +::PROTOBUF_NAMESPACE_ID::Metadata TriggerEventResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_getter, &descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_once, file_level_metadata_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto[5]); } + // =================================================================== class Event::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Event, _impl_._has_bits_); - static const ::google::protobuf::Timestamp& time(const Event* msg); - static void set_has_time(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& time(const Event* msg); }; -const ::google::protobuf::Timestamp& Event::_Internal::time(const Event* msg) { - return *msg->_impl_.time_; +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +Event::_Internal::time(const Event* msg) { + return *msg->time_; } void Event::clear_time() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.time_ != nullptr) _impl_.time_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && time_ != nullptr) { + delete time_; + } + time_ = nullptr; } -Event::Event(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Event::Event(::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.inputcontroller.v1.Event) } -inline PROTOBUF_NDEBUG_INLINE Event::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - event_(arena, from.event_), - control_(arena, from.control_) {} - -Event::Event( - ::google::protobuf::Arena* arena, - const Event& from) - : ::google::protobuf::Message(arena) { - Event* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.time_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.time_) - : nullptr; - _impl_.value_ = from._impl_.value_; - +Event::Event(const Event& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + event_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + event_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_event().empty()) { + event_.Set(from._internal_event(), + GetArenaForAllocation()); + } + control_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + control_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_control().empty()) { + control_.Set(from._internal_control(), + GetArenaForAllocation()); + } + if (from._internal_has_time()) { + time_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from.time_); + } else { + time_ = nullptr; + } + value_ = from.value_; // @@protoc_insertion_point(copy_constructor:viam.component.inputcontroller.v1.Event) } -inline PROTOBUF_NDEBUG_INLINE Event::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - event_(arena), - control_(arena) {} - -inline void Event::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, time_), - 0, - offsetof(Impl_, value_) - - offsetof(Impl_, time_) + - sizeof(Impl_::value_)); + +inline void Event::SharedCtor() { +event_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + event_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +control_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + control_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&time_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&value_) - + reinterpret_cast(&time_)) + sizeof(value_)); } + Event::~Event() { // @@protoc_insertion_point(destructor:viam.component.inputcontroller.v1.Event) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Event::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.event_.Destroy(); - _impl_.control_.Destroy(); - delete _impl_.time_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + event_.Destroy(); + control_.Destroy(); + if (this != internal_default_instance()) delete time_; +} + +void Event::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void Event::Clear() { +void Event::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.inputcontroller.v1.Event) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.event_.ClearToEmpty(); - _impl_.control_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.time_ != nullptr); - _impl_.time_->Clear(); - } - _impl_.value_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Event::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + event_.ClearToEmpty(); + control_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && time_ != nullptr) { + delete time_; + } + time_ = nullptr; + value_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Event::_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) { + // .google.protobuf.Timestamp time = 1 [json_name = "time"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_time(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string event = 2 [json_name = "event"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_event(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.inputcontroller.v1.Event.event")); + } else + goto handle_unusual; + continue; + // string control = 3 [json_name = "control"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_control(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.inputcontroller.v1.Event.control")); + } else + goto handle_unusual; + continue; + // double value = 4 [json_name = "value"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 33)) { + value_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 1, 60, 2> Event::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Event, _impl_._has_bits_), - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Event_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // double value = 4 [json_name = "value"]; - {::_pbi::TcParser::FastF64S1, - {33, 63, 0, PROTOBUF_FIELD_OFFSET(Event, _impl_.value_)}}, - // .google.protobuf.Timestamp time = 1 [json_name = "time"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(Event, _impl_.time_)}}, - // string event = 2 [json_name = "event"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(Event, _impl_.event_)}}, - // string control = 3 [json_name = "control"]; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(Event, _impl_.control_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .google.protobuf.Timestamp time = 1 [json_name = "time"]; - {PROTOBUF_FIELD_OFFSET(Event, _impl_.time_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // string event = 2 [json_name = "event"]; - {PROTOBUF_FIELD_OFFSET(Event, _impl_.event_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string control = 3 [json_name = "control"]; - {PROTOBUF_FIELD_OFFSET(Event, _impl_.control_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // double value = 4 [json_name = "value"]; - {PROTOBUF_FIELD_OFFSET(Event, _impl_.value_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, - }}, {{ - "\47\0\5\7\0\0\0\0" - "viam.component.inputcontroller.v1.Event" - "event" - "control" - }}, -}; - -::uint8_t* Event::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Event::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.inputcontroller.v1.Event) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Timestamp time = 1 [json_name = "time"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::time(this), + if (this->_internal_has_time()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::time(this), _Internal::time(this).GetCachedSize(), target, stream); } // string event = 2 [json_name = "event"]; if (!this->_internal_event().empty()) { - const std::string& _s = this->_internal_event(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.inputcontroller.v1.Event.event"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_event().data(), static_cast(this->_internal_event().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.inputcontroller.v1.Event.event"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_event(), target); } // string control = 3 [json_name = "control"]; if (!this->_internal_control().empty()) { - const std::string& _s = this->_internal_control(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.inputcontroller.v1.Event.control"); - target = stream->WriteStringMaybeAliased(3, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_control().data(), static_cast(this->_internal_control().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.inputcontroller.v1.Event.control"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_control(), target); } // double value = 4 [json_name = "value"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_value = this->_internal_value(); - ::uint64_t raw_value; + uint64_t raw_value; memcpy(&raw_value, &tmp_value, sizeof(tmp_value)); if (raw_value != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 4, this->_internal_value(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(4, this->_internal_value(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.inputcontroller.v1.Event) return target; } -::size_t Event::ByteSizeLong() const { +size_t Event::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.inputcontroller.v1.Event) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string event = 2 [json_name = "event"]; if (!this->_internal_event().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_event()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_event()); } // string control = 3 [json_name = "control"]; if (!this->_internal_control().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_control()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_control()); } // .google.protobuf.Timestamp time = 1 [json_name = "time"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.time_); + if (this->_internal_has_time()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *time_); } // double value = 4 [json_name = "value"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_value = this->_internal_value(); - ::uint64_t raw_value; + uint64_t raw_value; memcpy(&raw_value, &tmp_value, sizeof(tmp_value)); if (raw_value != 0) { - total_size += 9; + total_size += 1 + 8; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Event::_class_data_ = { - Event::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Event::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Event::MergeImpl }; -const ::google::protobuf::Message::ClassData* Event::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Event::GetClassData() const { return &_class_data_; } + +void Event::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Event::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.inputcontroller.v1.Event) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Event::MergeFrom(const Event& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.inputcontroller.v1.Event) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_event().empty()) { - _this->_internal_set_event(from._internal_event()); + _internal_set_event(from._internal_event()); } if (!from._internal_control().empty()) { - _this->_internal_set_control(from._internal_control()); + _internal_set_control(from._internal_control()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_time()->::google::protobuf::Timestamp::MergeFrom( - from._internal_time()); + if (from._internal_has_time()) { + _internal_mutable_time()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_time()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_value = from._internal_value(); - ::uint64_t raw_value; + uint64_t raw_value; memcpy(&raw_value, &tmp_value, sizeof(tmp_value)); if (raw_value != 0) { - _this->_internal_set_value(from._internal_value()); + _internal_set_value(from._internal_value()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Event::CopyFrom(const Event& from) { @@ -2031,246 +1862,276 @@ void Event::CopyFrom(const Event& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Event::IsInitialized() const { +bool Event::IsInitialized() const { return true; } -::_pbi::CachedSize* Event::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Event::InternalSwap(Event* PROTOBUF_RESTRICT other) { +void Event::InternalSwap(Event* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.event_, &other->_impl_.event_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.control_, &other->_impl_.control_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(Event, _impl_.value_) - + sizeof(Event::_impl_.value_) - - PROTOBUF_FIELD_OFFSET(Event, _impl_.time_)>( - reinterpret_cast(&_impl_.time_), - reinterpret_cast(&other->_impl_.time_)); -} - -::google::protobuf::Metadata Event::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &event_, lhs_arena, + &other->event_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &control_, lhs_arena, + &other->control_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Event, value_) + + sizeof(Event::value_) + - PROTOBUF_FIELD_OFFSET(Event, time_)>( + reinterpret_cast(&time_), + reinterpret_cast(&other->time_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Event::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_getter, &descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_once, file_level_metadata_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto[6]); } + // =================================================================== class StreamEventsRequest_Events::_Internal { public: }; -StreamEventsRequest_Events::StreamEventsRequest_Events(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +StreamEventsRequest_Events::StreamEventsRequest_Events(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + events_(arena), + cancelled_events_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.component.inputcontroller.v1.StreamEventsRequest.Events) } -inline PROTOBUF_NDEBUG_INLINE StreamEventsRequest_Events::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : events_{visibility, arena, from.events_}, - cancelled_events_{visibility, arena, from.cancelled_events_}, - control_(arena, from.control_), - _cached_size_{0} {} - -StreamEventsRequest_Events::StreamEventsRequest_Events( - ::google::protobuf::Arena* arena, - const StreamEventsRequest_Events& from) - : ::google::protobuf::Message(arena) { - StreamEventsRequest_Events* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +StreamEventsRequest_Events::StreamEventsRequest_Events(const StreamEventsRequest_Events& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + events_(from.events_), + cancelled_events_(from.cancelled_events_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + control_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + control_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_control().empty()) { + control_.Set(from._internal_control(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.component.inputcontroller.v1.StreamEventsRequest.Events) } -inline PROTOBUF_NDEBUG_INLINE StreamEventsRequest_Events::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : events_{visibility, arena}, - cancelled_events_{visibility, arena}, - control_(arena), - _cached_size_{0} {} -inline void StreamEventsRequest_Events::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void StreamEventsRequest_Events::SharedCtor() { +control_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + control_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + StreamEventsRequest_Events::~StreamEventsRequest_Events() { // @@protoc_insertion_point(destructor:viam.component.inputcontroller.v1.StreamEventsRequest.Events) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void StreamEventsRequest_Events::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.control_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + control_.Destroy(); +} + +void StreamEventsRequest_Events::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void StreamEventsRequest_Events::Clear() { +void StreamEventsRequest_Events::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.inputcontroller.v1.StreamEventsRequest.Events) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.events_.Clear(); - _impl_.cancelled_events_.Clear(); - _impl_.control_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* StreamEventsRequest_Events::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + events_.Clear(); + cancelled_events_.Clear(); + control_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* StreamEventsRequest_Events::_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 control = 1 [json_name = "control"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_control(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.inputcontroller.v1.StreamEventsRequest.Events.control")); + } else + goto handle_unusual; + continue; + // repeated string events = 2 [json_name = "events"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_events(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.inputcontroller.v1.StreamEventsRequest.Events.events")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } else + goto handle_unusual; + continue; + // repeated string cancelled_events = 3 [json_name = "cancelledEvents"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_cancelled_events(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.inputcontroller.v1.StreamEventsRequest.Events.cancelled_events")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 98, 2> StreamEventsRequest_Events::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_StreamEventsRequest_Events_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string control = 1 [json_name = "control"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(StreamEventsRequest_Events, _impl_.control_)}}, - // repeated string events = 2 [json_name = "events"]; - {::_pbi::TcParser::FastUR1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(StreamEventsRequest_Events, _impl_.events_)}}, - // repeated string cancelled_events = 3 [json_name = "cancelledEvents"]; - {::_pbi::TcParser::FastUR1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(StreamEventsRequest_Events, _impl_.cancelled_events_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string control = 1 [json_name = "control"]; - {PROTOBUF_FIELD_OFFSET(StreamEventsRequest_Events, _impl_.control_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated string events = 2 [json_name = "events"]; - {PROTOBUF_FIELD_OFFSET(StreamEventsRequest_Events, _impl_.events_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - // repeated string cancelled_events = 3 [json_name = "cancelledEvents"]; - {PROTOBUF_FIELD_OFFSET(StreamEventsRequest_Events, _impl_.cancelled_events_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - }}, - // no aux_entries - {{ - "\74\7\6\20\0\0\0\0" - "viam.component.inputcontroller.v1.StreamEventsRequest.Events" - "control" - "events" - "cancelled_events" - }}, -}; - -::uint8_t* StreamEventsRequest_Events::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* StreamEventsRequest_Events::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.inputcontroller.v1.StreamEventsRequest.Events) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string control = 1 [json_name = "control"]; if (!this->_internal_control().empty()) { - const std::string& _s = this->_internal_control(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.inputcontroller.v1.StreamEventsRequest.Events.control"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_control().data(), static_cast(this->_internal_control().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.inputcontroller.v1.StreamEventsRequest.Events.control"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_control(), target); } // repeated string events = 2 [json_name = "events"]; - for (int i = 0, n = this->_internal_events_size(); i < n; ++i) { - const auto& s = this->_internal_events().Get(i); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.inputcontroller.v1.StreamEventsRequest.Events.events"); + for (int i = 0, n = this->_internal_events_size(); i < n; i++) { + const auto& s = this->_internal_events(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.inputcontroller.v1.StreamEventsRequest.Events.events"); target = stream->WriteString(2, s, target); } // repeated string cancelled_events = 3 [json_name = "cancelledEvents"]; - for (int i = 0, n = this->_internal_cancelled_events_size(); i < n; ++i) { - const auto& s = this->_internal_cancelled_events().Get(i); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.inputcontroller.v1.StreamEventsRequest.Events.cancelled_events"); + for (int i = 0, n = this->_internal_cancelled_events_size(); i < n; i++) { + const auto& s = this->_internal_cancelled_events(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.inputcontroller.v1.StreamEventsRequest.Events.cancelled_events"); target = stream->WriteString(3, s, target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.inputcontroller.v1.StreamEventsRequest.Events) return target; } -::size_t StreamEventsRequest_Events::ByteSizeLong() const { +size_t StreamEventsRequest_Events::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.inputcontroller.v1.StreamEventsRequest.Events) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated string events = 2 [json_name = "events"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_events().size()); - for (int i = 0, n = _internal_events().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - _internal_events().Get(i)); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(events_.size()); + for (int i = 0, n = events_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + events_.Get(i)); } + // repeated string cancelled_events = 3 [json_name = "cancelledEvents"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_cancelled_events().size()); - for (int i = 0, n = _internal_cancelled_events().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - _internal_cancelled_events().Get(i)); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(cancelled_events_.size()); + for (int i = 0, n = cancelled_events_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + cancelled_events_.Get(i)); } + // string control = 1 [json_name = "control"]; if (!this->_internal_control().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_control()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_control()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData StreamEventsRequest_Events::_class_data_ = { - StreamEventsRequest_Events::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StreamEventsRequest_Events::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + StreamEventsRequest_Events::MergeImpl }; -const ::google::protobuf::Message::ClassData* StreamEventsRequest_Events::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StreamEventsRequest_Events::GetClassData() const { return &_class_data_; } + +void StreamEventsRequest_Events::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void StreamEventsRequest_Events::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.inputcontroller.v1.StreamEventsRequest.Events) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void StreamEventsRequest_Events::MergeFrom(const StreamEventsRequest_Events& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.inputcontroller.v1.StreamEventsRequest.Events) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_events()->MergeFrom(from._internal_events()); - _this->_internal_mutable_cancelled_events()->MergeFrom(from._internal_cancelled_events()); + events_.MergeFrom(from.events_); + cancelled_events_.MergeFrom(from.cancelled_events_); if (!from._internal_control().empty()) { - _this->_internal_set_control(from._internal_control()); + _internal_set_control(from._internal_control()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void StreamEventsRequest_Events::CopyFrom(const StreamEventsRequest_Events& from) { @@ -2280,271 +2141,273 @@ void StreamEventsRequest_Events::CopyFrom(const StreamEventsRequest_Events& from MergeFrom(from); } -PROTOBUF_NOINLINE bool StreamEventsRequest_Events::IsInitialized() const { +bool StreamEventsRequest_Events::IsInitialized() const { return true; } -::_pbi::CachedSize* StreamEventsRequest_Events::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void StreamEventsRequest_Events::InternalSwap(StreamEventsRequest_Events* PROTOBUF_RESTRICT other) { +void StreamEventsRequest_Events::InternalSwap(StreamEventsRequest_Events* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.events_.InternalSwap(&other->_impl_.events_); - _impl_.cancelled_events_.InternalSwap(&other->_impl_.cancelled_events_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.control_, &other->_impl_.control_, arena); + events_.InternalSwap(&other->events_); + cancelled_events_.InternalSwap(&other->cancelled_events_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &control_, lhs_arena, + &other->control_, rhs_arena + ); } -::google::protobuf::Metadata StreamEventsRequest_Events::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata StreamEventsRequest_Events::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_getter, &descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_once, file_level_metadata_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto[7]); } + // =================================================================== class StreamEventsRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(StreamEventsRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const StreamEventsRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const StreamEventsRequest* msg); }; -const ::google::protobuf::Struct& StreamEventsRequest::_Internal::extra(const StreamEventsRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +StreamEventsRequest::_Internal::extra(const StreamEventsRequest* msg) { + return *msg->extra_; } void StreamEventsRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -StreamEventsRequest::StreamEventsRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +StreamEventsRequest::StreamEventsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + events_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.component.inputcontroller.v1.StreamEventsRequest) } -inline PROTOBUF_NDEBUG_INLINE StreamEventsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - events_{visibility, arena, from.events_}, - controller_(arena, from.controller_) {} - -StreamEventsRequest::StreamEventsRequest( - ::google::protobuf::Arena* arena, - const StreamEventsRequest& from) - : ::google::protobuf::Message(arena) { - StreamEventsRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +StreamEventsRequest::StreamEventsRequest(const StreamEventsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + events_(from.events_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + controller_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + controller_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_controller().empty()) { + controller_.Set(from._internal_controller(), + GetArenaForAllocation()); + } + if (from._internal_has_extra()) { + extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.extra_); + } else { + extra_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.component.inputcontroller.v1.StreamEventsRequest) } -inline PROTOBUF_NDEBUG_INLINE StreamEventsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - events_{visibility, arena}, - controller_(arena) {} -inline void StreamEventsRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void StreamEventsRequest::SharedCtor() { +controller_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + controller_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + StreamEventsRequest::~StreamEventsRequest() { // @@protoc_insertion_point(destructor:viam.component.inputcontroller.v1.StreamEventsRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void StreamEventsRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.controller_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + controller_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void StreamEventsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void StreamEventsRequest::Clear() { +void StreamEventsRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.inputcontroller.v1.StreamEventsRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.events_.Clear(); - _impl_.controller_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* StreamEventsRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + events_.Clear(); + controller_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* StreamEventsRequest::_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 controller = 1 [json_name = "controller"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_controller(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.inputcontroller.v1.StreamEventsRequest.controller")); + } else + goto handle_unusual; + continue; + // repeated .viam.component.inputcontroller.v1.StreamEventsRequest.Events events = 2 [json_name = "events"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_events(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 2, 72, 7> StreamEventsRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(StreamEventsRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_StreamEventsRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string controller = 1 [json_name = "controller"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(StreamEventsRequest, _impl_.controller_)}}, - // repeated .viam.component.inputcontroller.v1.StreamEventsRequest.Events events = 2 [json_name = "events"]; - {::_pbi::TcParser::FastMtR1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(StreamEventsRequest, _impl_.events_)}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 1, PROTOBUF_FIELD_OFFSET(StreamEventsRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 2, - 65535, 65535 - }}, {{ - // string controller = 1 [json_name = "controller"]; - {PROTOBUF_FIELD_OFFSET(StreamEventsRequest, _impl_.controller_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated .viam.component.inputcontroller.v1.StreamEventsRequest.Events events = 2 [json_name = "events"]; - {PROTOBUF_FIELD_OFFSET(StreamEventsRequest, _impl_.events_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(StreamEventsRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::component::inputcontroller::v1::StreamEventsRequest_Events>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\65\12\0\0\0\0\0\0" - "viam.component.inputcontroller.v1.StreamEventsRequest" - "controller" - }}, -}; - -::uint8_t* StreamEventsRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* StreamEventsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.inputcontroller.v1.StreamEventsRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string controller = 1 [json_name = "controller"]; if (!this->_internal_controller().empty()) { - const std::string& _s = this->_internal_controller(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.inputcontroller.v1.StreamEventsRequest.controller"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_controller().data(), static_cast(this->_internal_controller().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.inputcontroller.v1.StreamEventsRequest.controller"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_controller(), target); } // repeated .viam.component.inputcontroller.v1.StreamEventsRequest.Events events = 2 [json_name = "events"]; for (unsigned i = 0, n = static_cast(this->_internal_events_size()); i < n; i++) { - const auto& repfield = this->_internal_events().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_events(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.inputcontroller.v1.StreamEventsRequest) return target; } -::size_t StreamEventsRequest::ByteSizeLong() const { +size_t StreamEventsRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.inputcontroller.v1.StreamEventsRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.component.inputcontroller.v1.StreamEventsRequest.Events events = 2 [json_name = "events"]; total_size += 1UL * this->_internal_events_size(); - for (const auto& msg : this->_internal_events()) { + for (const auto& msg : this->events_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // string controller = 1 [json_name = "controller"]; if (!this->_internal_controller().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_controller()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_controller()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData StreamEventsRequest::_class_data_ = { - StreamEventsRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StreamEventsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + StreamEventsRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* StreamEventsRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StreamEventsRequest::GetClassData() const { return &_class_data_; } + +void StreamEventsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void StreamEventsRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.inputcontroller.v1.StreamEventsRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void StreamEventsRequest::MergeFrom(const StreamEventsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.inputcontroller.v1.StreamEventsRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_events()->MergeFrom( - from._internal_events()); + events_.MergeFrom(from.events_); if (!from._internal_controller().empty()) { - _this->_internal_set_controller(from._internal_controller()); + _internal_set_controller(from._internal_controller()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void StreamEventsRequest::CopyFrom(const StreamEventsRequest& from) { @@ -2554,208 +2417,191 @@ void StreamEventsRequest::CopyFrom(const StreamEventsRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool StreamEventsRequest::IsInitialized() const { +bool StreamEventsRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* StreamEventsRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void StreamEventsRequest::InternalSwap(StreamEventsRequest* PROTOBUF_RESTRICT other) { +void StreamEventsRequest::InternalSwap(StreamEventsRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.events_.InternalSwap(&other->_impl_.events_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.controller_, &other->_impl_.controller_, arena); - swap(_impl_.extra_, other->_impl_.extra_); + events_.InternalSwap(&other->events_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &controller_, lhs_arena, + &other->controller_, rhs_arena + ); + swap(extra_, other->extra_); } -::google::protobuf::Metadata StreamEventsRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata StreamEventsRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_getter, &descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_once, file_level_metadata_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto[8]); } + // =================================================================== class StreamEventsResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(StreamEventsResponse, _impl_._has_bits_); static const ::viam::component::inputcontroller::v1::Event& event(const StreamEventsResponse* msg); - static void set_has_event(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::component::inputcontroller::v1::Event& StreamEventsResponse::_Internal::event(const StreamEventsResponse* msg) { - return *msg->_impl_.event_; +const ::viam::component::inputcontroller::v1::Event& +StreamEventsResponse::_Internal::event(const StreamEventsResponse* msg) { + return *msg->event_; } -StreamEventsResponse::StreamEventsResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +StreamEventsResponse::StreamEventsResponse(::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.inputcontroller.v1.StreamEventsResponse) } -inline PROTOBUF_NDEBUG_INLINE StreamEventsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -StreamEventsResponse::StreamEventsResponse( - ::google::protobuf::Arena* arena, - const StreamEventsResponse& from) - : ::google::protobuf::Message(arena) { - StreamEventsResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.event_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::component::inputcontroller::v1::Event>(arena, *from._impl_.event_) - : nullptr; - +StreamEventsResponse::StreamEventsResponse(const StreamEventsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_event()) { + event_ = new ::viam::component::inputcontroller::v1::Event(*from.event_); + } else { + event_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.component.inputcontroller.v1.StreamEventsResponse) } -inline PROTOBUF_NDEBUG_INLINE StreamEventsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void StreamEventsResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.event_ = {}; +inline void StreamEventsResponse::SharedCtor() { +event_ = nullptr; } + StreamEventsResponse::~StreamEventsResponse() { // @@protoc_insertion_point(destructor:viam.component.inputcontroller.v1.StreamEventsResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void StreamEventsResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.event_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete event_; } -PROTOBUF_NOINLINE void StreamEventsResponse::Clear() { +void StreamEventsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void StreamEventsResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.inputcontroller.v1.StreamEventsResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.event_ != nullptr); - _impl_.event_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* StreamEventsResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + if (GetArenaForAllocation() == nullptr && event_ != nullptr) { + delete event_; + } + event_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* StreamEventsResponse::_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.component.inputcontroller.v1.Event event = 1 [json_name = "event"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_event(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> StreamEventsResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(StreamEventsResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_StreamEventsResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.component.inputcontroller.v1.Event event = 1 [json_name = "event"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(StreamEventsResponse, _impl_.event_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.component.inputcontroller.v1.Event event = 1 [json_name = "event"]; - {PROTOBUF_FIELD_OFFSET(StreamEventsResponse, _impl_.event_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::component::inputcontroller::v1::Event>()}, - }}, {{ - }}, -}; - -::uint8_t* StreamEventsResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* StreamEventsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.inputcontroller.v1.StreamEventsResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.component.inputcontroller.v1.Event event = 1 [json_name = "event"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::event(this), + if (this->_internal_has_event()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::event(this), _Internal::event(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.inputcontroller.v1.StreamEventsResponse) return target; } -::size_t StreamEventsResponse::ByteSizeLong() const { +size_t StreamEventsResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.inputcontroller.v1.StreamEventsResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .viam.component.inputcontroller.v1.Event event = 1 [json_name = "event"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.event_); + if (this->_internal_has_event()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *event_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData StreamEventsResponse::_class_data_ = { - StreamEventsResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StreamEventsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + StreamEventsResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* StreamEventsResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StreamEventsResponse::GetClassData() const { return &_class_data_; } + +void StreamEventsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void StreamEventsResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.inputcontroller.v1.StreamEventsResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void StreamEventsResponse::MergeFrom(const StreamEventsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.inputcontroller.v1.StreamEventsResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_event()->::viam::component::inputcontroller::v1::Event::MergeFrom( - from._internal_event()); + if (from._internal_has_event()) { + _internal_mutable_event()->::viam::component::inputcontroller::v1::Event::MergeFrom(from._internal_event()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void StreamEventsResponse::CopyFrom(const StreamEventsResponse& from) { @@ -2765,181 +2611,175 @@ void StreamEventsResponse::CopyFrom(const StreamEventsResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool StreamEventsResponse::IsInitialized() const { +bool StreamEventsResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* StreamEventsResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void StreamEventsResponse::InternalSwap(StreamEventsResponse* PROTOBUF_RESTRICT other) { +void StreamEventsResponse::InternalSwap(StreamEventsResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.event_, other->_impl_.event_); + swap(event_, other->event_); } -::google::protobuf::Metadata StreamEventsResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata StreamEventsResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_getter, &descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_once, file_level_metadata_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto[9]); } + // =================================================================== class Status::_Internal { public: }; -Status::Status(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Status::Status(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + events_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.component.inputcontroller.v1.Status) } -inline PROTOBUF_NDEBUG_INLINE Status::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : events_{visibility, arena, from.events_}, - _cached_size_{0} {} - -Status::Status( - ::google::protobuf::Arena* arena, - const Status& from) - : ::google::protobuf::Message(arena) { - Status* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +Status::Status(const Status& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + events_(from.events_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.component.inputcontroller.v1.Status) } -inline PROTOBUF_NDEBUG_INLINE Status::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : events_{visibility, arena}, - _cached_size_{0} {} -inline void Status::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void Status::SharedCtor() { } + Status::~Status() { // @@protoc_insertion_point(destructor:viam.component.inputcontroller.v1.Status) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Status::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void Status::Clear() { +void Status::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void Status::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.inputcontroller.v1.Status) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.events_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Status::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + events_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Status::_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) { + // repeated .viam.component.inputcontroller.v1.Event events = 1 [json_name = "events"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_events(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> Status::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Status_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.component.inputcontroller.v1.Event events = 1 [json_name = "events"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Status, _impl_.events_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.component.inputcontroller.v1.Event events = 1 [json_name = "events"]; - {PROTOBUF_FIELD_OFFSET(Status, _impl_.events_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::component::inputcontroller::v1::Event>()}, - }}, {{ - }}, -}; - -::uint8_t* Status::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Status::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.inputcontroller.v1.Status) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .viam.component.inputcontroller.v1.Event events = 1 [json_name = "events"]; for (unsigned i = 0, n = static_cast(this->_internal_events_size()); i < n; i++) { - const auto& repfield = this->_internal_events().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_events(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.inputcontroller.v1.Status) return target; } -::size_t Status::ByteSizeLong() const { +size_t Status::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.inputcontroller.v1.Status) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.component.inputcontroller.v1.Event events = 1 [json_name = "events"]; total_size += 1UL * this->_internal_events_size(); - for (const auto& msg : this->_internal_events()) { + for (const auto& msg : this->events_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Status::_class_data_ = { - Status::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Status::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Status::MergeImpl }; -const ::google::protobuf::Message::ClassData* Status::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Status::GetClassData() const { return &_class_data_; } + +void Status::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Status::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.inputcontroller.v1.Status) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Status::MergeFrom(const Status& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.inputcontroller.v1.Status) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_events()->MergeFrom( - from._internal_events()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + events_.MergeFrom(from.events_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Status::CopyFrom(const Status& from) { @@ -2949,32 +2789,73 @@ void Status::CopyFrom(const Status& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Status::IsInitialized() const { +bool Status::IsInitialized() const { return true; } -::_pbi::CachedSize* Status::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Status::InternalSwap(Status* PROTOBUF_RESTRICT other) { +void Status::InternalSwap(Status* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.events_.InternalSwap(&other->_impl_.events_); + events_.InternalSwap(&other->events_); } -::google::protobuf::Metadata Status::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Status::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_getter, &descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_once, file_level_metadata_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto[10]); } + // @@protoc_insertion_point(namespace_scope) } // namespace v1 } // namespace inputcontroller } // namespace component } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::component::inputcontroller::v1::GetControlsRequest* +Arena::CreateMaybeMessage< ::viam::component::inputcontroller::v1::GetControlsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::inputcontroller::v1::GetControlsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::inputcontroller::v1::GetControlsResponse* +Arena::CreateMaybeMessage< ::viam::component::inputcontroller::v1::GetControlsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::inputcontroller::v1::GetControlsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::inputcontroller::v1::GetEventsRequest* +Arena::CreateMaybeMessage< ::viam::component::inputcontroller::v1::GetEventsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::inputcontroller::v1::GetEventsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::inputcontroller::v1::GetEventsResponse* +Arena::CreateMaybeMessage< ::viam::component::inputcontroller::v1::GetEventsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::inputcontroller::v1::GetEventsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::inputcontroller::v1::TriggerEventRequest* +Arena::CreateMaybeMessage< ::viam::component::inputcontroller::v1::TriggerEventRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::inputcontroller::v1::TriggerEventRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::inputcontroller::v1::TriggerEventResponse* +Arena::CreateMaybeMessage< ::viam::component::inputcontroller::v1::TriggerEventResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::inputcontroller::v1::TriggerEventResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::inputcontroller::v1::Event* +Arena::CreateMaybeMessage< ::viam::component::inputcontroller::v1::Event >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::inputcontroller::v1::Event >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::inputcontroller::v1::StreamEventsRequest_Events* +Arena::CreateMaybeMessage< ::viam::component::inputcontroller::v1::StreamEventsRequest_Events >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::inputcontroller::v1::StreamEventsRequest_Events >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::inputcontroller::v1::StreamEventsRequest* +Arena::CreateMaybeMessage< ::viam::component::inputcontroller::v1::StreamEventsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::inputcontroller::v1::StreamEventsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::inputcontroller::v1::StreamEventsResponse* +Arena::CreateMaybeMessage< ::viam::component::inputcontroller::v1::StreamEventsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::inputcontroller::v1::StreamEventsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::inputcontroller::v1::Status* +Arena::CreateMaybeMessage< ::viam::component::inputcontroller::v1::Status >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::inputcontroller::v1::Status >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/component/inputcontroller/v1/input_controller.pb.h b/src/viam/api/component/inputcontroller/v1/input_controller.pb.h index eb5b62589..451591e74 100644 --- a/src/viam/api/component/inputcontroller/v1/input_controller.pb.h +++ b/src/viam/api/component/inputcontroller/v1/input_controller.pb.h @@ -1,65 +1,54 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: component/inputcontroller/v1/input_controller.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_bases.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/unknown_field_set.h" + +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include #include "common/v1/common.pb.h" #include "google/api/annotations.pb.h" -#include "google/protobuf/struct.pb.h" -#include "google/protobuf/timestamp.pb.h" +#include +#include // @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - +#include #define PROTOBUF_INTERNAL_EXPORT_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto; namespace viam { namespace component { namespace inputcontroller { @@ -101,11 +90,19 @@ extern TriggerEventResponseDefaultTypeInternal _TriggerEventResponse_default_ins } // namespace inputcontroller } // namespace component } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::component::inputcontroller::v1::Event* Arena::CreateMaybeMessage<::viam::component::inputcontroller::v1::Event>(Arena*); +template<> ::viam::component::inputcontroller::v1::GetControlsRequest* Arena::CreateMaybeMessage<::viam::component::inputcontroller::v1::GetControlsRequest>(Arena*); +template<> ::viam::component::inputcontroller::v1::GetControlsResponse* Arena::CreateMaybeMessage<::viam::component::inputcontroller::v1::GetControlsResponse>(Arena*); +template<> ::viam::component::inputcontroller::v1::GetEventsRequest* Arena::CreateMaybeMessage<::viam::component::inputcontroller::v1::GetEventsRequest>(Arena*); +template<> ::viam::component::inputcontroller::v1::GetEventsResponse* Arena::CreateMaybeMessage<::viam::component::inputcontroller::v1::GetEventsResponse>(Arena*); +template<> ::viam::component::inputcontroller::v1::Status* Arena::CreateMaybeMessage<::viam::component::inputcontroller::v1::Status>(Arena*); +template<> ::viam::component::inputcontroller::v1::StreamEventsRequest* Arena::CreateMaybeMessage<::viam::component::inputcontroller::v1::StreamEventsRequest>(Arena*); +template<> ::viam::component::inputcontroller::v1::StreamEventsRequest_Events* Arena::CreateMaybeMessage<::viam::component::inputcontroller::v1::StreamEventsRequest_Events>(Arena*); +template<> ::viam::component::inputcontroller::v1::StreamEventsResponse* Arena::CreateMaybeMessage<::viam::component::inputcontroller::v1::StreamEventsResponse>(Arena*); +template<> ::viam::component::inputcontroller::v1::TriggerEventRequest* Arena::CreateMaybeMessage<::viam::component::inputcontroller::v1::TriggerEventRequest>(Arena*); +template<> ::viam::component::inputcontroller::v1::TriggerEventResponse* Arena::CreateMaybeMessage<::viam::component::inputcontroller::v1::TriggerEventResponse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace viam { namespace component { namespace inputcontroller { @@ -113,169 +110,28 @@ namespace v1 { // =================================================================== - -// ------------------------------------------------------------------- - -class TriggerEventResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.inputcontroller.v1.TriggerEventResponse) */ { - public: - inline TriggerEventResponse() : TriggerEventResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR TriggerEventResponse(::google::protobuf::internal::ConstantInitialized); - - inline TriggerEventResponse(const TriggerEventResponse& from) - : TriggerEventResponse(nullptr, from) {} - TriggerEventResponse(TriggerEventResponse&& from) noexcept - : TriggerEventResponse() { - *this = ::std::move(from); - } - - inline TriggerEventResponse& operator=(const TriggerEventResponse& from) { - CopyFrom(from); - return *this; - } - inline TriggerEventResponse& operator=(TriggerEventResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const TriggerEventResponse& default_instance() { - return *internal_default_instance(); - } - static inline const TriggerEventResponse* internal_default_instance() { - return reinterpret_cast( - &_TriggerEventResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - friend void swap(TriggerEventResponse& a, TriggerEventResponse& b) { - a.Swap(&b); - } - inline void Swap(TriggerEventResponse* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(TriggerEventResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - TriggerEventResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const TriggerEventResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const TriggerEventResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); - } - public: - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.inputcontroller.v1.TriggerEventResponse"; - } - protected: - explicit TriggerEventResponse(::google::protobuf::Arena* arena); - TriggerEventResponse(::google::protobuf::Arena* arena, const TriggerEventResponse& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:viam.component.inputcontroller.v1.TriggerEventResponse) - private: - class _Internal; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; - friend struct ::TableStruct_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto; -};// ------------------------------------------------------------------- - -class StreamEventsRequest_Events final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.inputcontroller.v1.StreamEventsRequest.Events) */ { +class GetControlsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.inputcontroller.v1.GetControlsRequest) */ { public: - inline StreamEventsRequest_Events() : StreamEventsRequest_Events(nullptr) {} - ~StreamEventsRequest_Events() override; - template - explicit PROTOBUF_CONSTEXPR StreamEventsRequest_Events(::google::protobuf::internal::ConstantInitialized); + inline GetControlsRequest() : GetControlsRequest(nullptr) {} + ~GetControlsRequest() override; + explicit PROTOBUF_CONSTEXPR GetControlsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline StreamEventsRequest_Events(const StreamEventsRequest_Events& from) - : StreamEventsRequest_Events(nullptr, from) {} - StreamEventsRequest_Events(StreamEventsRequest_Events&& from) noexcept - : StreamEventsRequest_Events() { + GetControlsRequest(const GetControlsRequest& from); + GetControlsRequest(GetControlsRequest&& from) noexcept + : GetControlsRequest() { *this = ::std::move(from); } - inline StreamEventsRequest_Events& operator=(const StreamEventsRequest_Events& from) { + inline GetControlsRequest& operator=(const GetControlsRequest& from) { CopyFrom(from); return *this; } - inline StreamEventsRequest_Events& operator=(StreamEventsRequest_Events&& from) noexcept { + inline GetControlsRequest& operator=(GetControlsRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -285,224 +141,151 @@ class StreamEventsRequest_Events final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const StreamEventsRequest_Events& default_instance() { + static const GetControlsRequest& default_instance() { return *internal_default_instance(); } - static inline const StreamEventsRequest_Events* internal_default_instance() { - return reinterpret_cast( - &_StreamEventsRequest_Events_default_instance_); + static inline const GetControlsRequest* internal_default_instance() { + return reinterpret_cast( + &_GetControlsRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 7; + 0; - friend void swap(StreamEventsRequest_Events& a, StreamEventsRequest_Events& b) { + friend void swap(GetControlsRequest& a, GetControlsRequest& b) { a.Swap(&b); } - inline void Swap(StreamEventsRequest_Events* other) { + inline void Swap(GetControlsRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(StreamEventsRequest_Events* other) { + void UnsafeArenaSwap(GetControlsRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - StreamEventsRequest_Events* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const StreamEventsRequest_Events& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const StreamEventsRequest_Events& from) { - StreamEventsRequest_Events::MergeImpl(*this, from); + GetControlsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetControlsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetControlsRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(StreamEventsRequest_Events* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetControlsRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.inputcontroller.v1.StreamEventsRequest.Events"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.inputcontroller.v1.GetControlsRequest"; } protected: - explicit StreamEventsRequest_Events(::google::protobuf::Arena* arena); - StreamEventsRequest_Events(::google::protobuf::Arena* arena, const StreamEventsRequest_Events& from); + explicit GetControlsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kEventsFieldNumber = 2, - kCancelledEventsFieldNumber = 3, - kControlFieldNumber = 1, + kControllerFieldNumber = 1, + kExtraFieldNumber = 99, }; - // repeated string events = 2 [json_name = "events"]; - int events_size() const; + // string controller = 1 [json_name = "controller"]; + void clear_controller(); + const std::string& controller() const; + template + void set_controller(ArgT0&& arg0, ArgT... args); + std::string* mutable_controller(); + PROTOBUF_NODISCARD std::string* release_controller(); + void set_allocated_controller(std::string* controller); private: - int _internal_events_size() const; - + const std::string& _internal_controller() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_controller(const std::string& value); + std::string* _internal_mutable_controller(); public: - void clear_events() ; - const std::string& events(int index) const; - std::string* mutable_events(int index); - void set_events(int index, const std::string& value); - void set_events(int index, std::string&& value); - void set_events(int index, const char* value); - void set_events(int index, const char* value, std::size_t size); - void set_events(int index, absl::string_view value); - std::string* add_events(); - void add_events(const std::string& value); - void add_events(std::string&& value); - void add_events(const char* value); - void add_events(const char* value, std::size_t size); - void add_events(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& events() const; - ::google::protobuf::RepeatedPtrField* mutable_events(); - - private: - const ::google::protobuf::RepeatedPtrField& _internal_events() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_events(); - public: - // repeated string cancelled_events = 3 [json_name = "cancelledEvents"]; - int cancelled_events_size() const; + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + bool has_extra() const; private: - int _internal_cancelled_events_size() const; - + bool _internal_has_extra() const; public: - void clear_cancelled_events() ; - const std::string& cancelled_events(int index) const; - std::string* mutable_cancelled_events(int index); - void set_cancelled_events(int index, const std::string& value); - void set_cancelled_events(int index, std::string&& value); - void set_cancelled_events(int index, const char* value); - void set_cancelled_events(int index, const char* value, std::size_t size); - void set_cancelled_events(int index, absl::string_view value); - std::string* add_cancelled_events(); - void add_cancelled_events(const std::string& value); - void add_cancelled_events(std::string&& value); - void add_cancelled_events(const char* value); - void add_cancelled_events(const char* value, std::size_t size); - void add_cancelled_events(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& cancelled_events() const; - ::google::protobuf::RepeatedPtrField* mutable_cancelled_events(); - + 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 ::google::protobuf::RepeatedPtrField& _internal_cancelled_events() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_cancelled_events(); - + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_extra() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_extra(); public: - // string control = 1 [json_name = "control"]; - void clear_control() ; - const std::string& control() const; - template - void set_control(Arg_&& arg, Args_... args); - std::string* mutable_control(); - PROTOBUF_NODISCARD std::string* release_control(); - void set_allocated_control(std::string* value); - - private: - const std::string& _internal_control() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_control( - const std::string& value); - std::string* _internal_mutable_control(); + void unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_extra(); - public: - // @@protoc_insertion_point(class_scope:viam.component.inputcontroller.v1.StreamEventsRequest.Events) + // @@protoc_insertion_point(class_scope:viam.component.inputcontroller.v1.GetControlsRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 0, - 98, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField events_; - ::google::protobuf::RepeatedPtrField cancelled_events_; - ::google::protobuf::internal::ArenaStringPtr control_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr controller_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class GetControlsResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.inputcontroller.v1.GetControlsResponse) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.inputcontroller.v1.GetControlsResponse) */ { public: inline GetControlsResponse() : GetControlsResponse(nullptr) {} ~GetControlsResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetControlsResponse(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR GetControlsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetControlsResponse(const GetControlsResponse& from) - : GetControlsResponse(nullptr, from) {} + GetControlsResponse(const GetControlsResponse& from); GetControlsResponse(GetControlsResponse&& from) noexcept : GetControlsResponse() { *this = ::std::move(from); @@ -514,9 +297,9 @@ class GetControlsResponse final : } inline GetControlsResponse& operator=(GetControlsResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -526,22 +309,13 @@ class GetControlsResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const GetControlsResponse& default_instance() { @@ -560,65 +334,63 @@ class GetControlsResponse final : inline void Swap(GetControlsResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(GetControlsResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetControlsResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + GetControlsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const GetControlsResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetControlsResponse& from) { - GetControlsResponse::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetControlsResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(GetControlsResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "viam.component.inputcontroller.v1.GetControlsResponse"; } protected: - explicit GetControlsResponse(::google::protobuf::Arena* arena); - GetControlsResponse(::google::protobuf::Arena* arena, const GetControlsResponse& from); + explicit GetControlsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -631,85 +403,61 @@ class GetControlsResponse final : int controls_size() const; private: int _internal_controls_size() const; - public: - void clear_controls() ; + void clear_controls(); const std::string& controls(int index) const; std::string* mutable_controls(int index); void set_controls(int index, const std::string& value); void set_controls(int index, std::string&& value); void set_controls(int index, const char* value); - void set_controls(int index, const char* value, std::size_t size); - void set_controls(int index, absl::string_view value); + void set_controls(int index, const char* value, size_t size); std::string* add_controls(); void add_controls(const std::string& value); void add_controls(std::string&& value); void add_controls(const char* value); - void add_controls(const char* value, std::size_t size); - void add_controls(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& controls() const; - ::google::protobuf::RepeatedPtrField* mutable_controls(); - + void add_controls(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& controls() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_controls(); private: - const ::google::protobuf::RepeatedPtrField& _internal_controls() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_controls(); - + const std::string& _internal_controls(int index) const; + std::string* _internal_add_controls(); public: + // @@protoc_insertion_point(class_scope:viam.component.inputcontroller.v1.GetControlsResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 70, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField controls_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField controls_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class StreamEventsRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.inputcontroller.v1.StreamEventsRequest) */ { +class GetEventsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.inputcontroller.v1.GetEventsRequest) */ { public: - inline StreamEventsRequest() : StreamEventsRequest(nullptr) {} - ~StreamEventsRequest() override; - template - explicit PROTOBUF_CONSTEXPR StreamEventsRequest(::google::protobuf::internal::ConstantInitialized); + inline GetEventsRequest() : GetEventsRequest(nullptr) {} + ~GetEventsRequest() override; + explicit PROTOBUF_CONSTEXPR GetEventsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline StreamEventsRequest(const StreamEventsRequest& from) - : StreamEventsRequest(nullptr, from) {} - StreamEventsRequest(StreamEventsRequest&& from) noexcept - : StreamEventsRequest() { + GetEventsRequest(const GetEventsRequest& from); + GetEventsRequest(GetEventsRequest&& from) noexcept + : GetEventsRequest() { *this = ::std::move(from); } - inline StreamEventsRequest& operator=(const StreamEventsRequest& from) { + inline GetEventsRequest& operator=(const GetEventsRequest& from) { CopyFrom(from); return *this; } - inline StreamEventsRequest& operator=(StreamEventsRequest&& from) noexcept { + inline GetEventsRequest& operator=(GetEventsRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -719,218 +467,165 @@ class StreamEventsRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const StreamEventsRequest& default_instance() { + static const GetEventsRequest& default_instance() { return *internal_default_instance(); } - static inline const StreamEventsRequest* internal_default_instance() { - return reinterpret_cast( - &_StreamEventsRequest_default_instance_); + static inline const GetEventsRequest* internal_default_instance() { + return reinterpret_cast( + &_GetEventsRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 8; + 2; - friend void swap(StreamEventsRequest& a, StreamEventsRequest& b) { + friend void swap(GetEventsRequest& a, GetEventsRequest& b) { a.Swap(&b); } - inline void Swap(StreamEventsRequest* other) { + inline void Swap(GetEventsRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(StreamEventsRequest* other) { + void UnsafeArenaSwap(GetEventsRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - StreamEventsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const StreamEventsRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const StreamEventsRequest& from) { - StreamEventsRequest::MergeImpl(*this, from); + GetEventsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetEventsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetEventsRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(StreamEventsRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetEventsRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.inputcontroller.v1.StreamEventsRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.inputcontroller.v1.GetEventsRequest"; } protected: - explicit StreamEventsRequest(::google::protobuf::Arena* arena); - StreamEventsRequest(::google::protobuf::Arena* arena, const StreamEventsRequest& from); + explicit GetEventsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- - using Events = StreamEventsRequest_Events; - // accessors ------------------------------------------------------- enum : int { - kEventsFieldNumber = 2, kControllerFieldNumber = 1, kExtraFieldNumber = 99, }; - // repeated .viam.component.inputcontroller.v1.StreamEventsRequest.Events events = 2 [json_name = "events"]; - int events_size() const; - private: - int _internal_events_size() const; - - public: - void clear_events() ; - ::viam::component::inputcontroller::v1::StreamEventsRequest_Events* mutable_events(int index); - ::google::protobuf::RepeatedPtrField< ::viam::component::inputcontroller::v1::StreamEventsRequest_Events >* - mutable_events(); - private: - const ::google::protobuf::RepeatedPtrField<::viam::component::inputcontroller::v1::StreamEventsRequest_Events>& _internal_events() const; - ::google::protobuf::RepeatedPtrField<::viam::component::inputcontroller::v1::StreamEventsRequest_Events>* _internal_mutable_events(); - public: - const ::viam::component::inputcontroller::v1::StreamEventsRequest_Events& events(int index) const; - ::viam::component::inputcontroller::v1::StreamEventsRequest_Events* add_events(); - const ::google::protobuf::RepeatedPtrField< ::viam::component::inputcontroller::v1::StreamEventsRequest_Events >& - events() const; // string controller = 1 [json_name = "controller"]; - void clear_controller() ; + void clear_controller(); const std::string& controller() const; - template - void set_controller(Arg_&& arg, Args_... args); + template + void set_controller(ArgT0&& arg0, ArgT... args); std::string* mutable_controller(); PROTOBUF_NODISCARD std::string* release_controller(); - void set_allocated_controller(std::string* value); - + void set_allocated_controller(std::string* controller); private: const std::string& _internal_controller() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_controller( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_controller(const std::string& value); std::string* _internal_mutable_controller(); - public: + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - + bool _internal_has_extra() const; public: - // @@protoc_insertion_point(class_scope:viam.component.inputcontroller.v1.StreamEventsRequest) + 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.inputcontroller.v1.GetEventsRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 2, - 72, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::viam::component::inputcontroller::v1::StreamEventsRequest_Events > events_; - ::google::protobuf::internal::ArenaStringPtr controller_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr controller_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetEventsRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.inputcontroller.v1.GetEventsRequest) */ { +class GetEventsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.inputcontroller.v1.GetEventsResponse) */ { public: - inline GetEventsRequest() : GetEventsRequest(nullptr) {} - ~GetEventsRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetEventsRequest(::google::protobuf::internal::ConstantInitialized); + inline GetEventsResponse() : GetEventsResponse(nullptr) {} + ~GetEventsResponse() override; + explicit PROTOBUF_CONSTEXPR GetEventsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetEventsRequest(const GetEventsRequest& from) - : GetEventsRequest(nullptr, from) {} - GetEventsRequest(GetEventsRequest&& from) noexcept - : GetEventsRequest() { + GetEventsResponse(const GetEventsResponse& from); + GetEventsResponse(GetEventsResponse&& from) noexcept + : GetEventsResponse() { *this = ::std::move(from); } - inline GetEventsRequest& operator=(const GetEventsRequest& from) { + inline GetEventsResponse& operator=(const GetEventsResponse& from) { CopyFrom(from); return *this; } - inline GetEventsRequest& operator=(GetEventsRequest&& from) noexcept { + inline GetEventsResponse& operator=(GetEventsResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -940,196 +635,149 @@ class GetEventsRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetEventsRequest& default_instance() { + static const GetEventsResponse& default_instance() { return *internal_default_instance(); } - static inline const GetEventsRequest* internal_default_instance() { - return reinterpret_cast( - &_GetEventsRequest_default_instance_); + static inline const GetEventsResponse* internal_default_instance() { + return reinterpret_cast( + &_GetEventsResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 2; + 3; - friend void swap(GetEventsRequest& a, GetEventsRequest& b) { + friend void swap(GetEventsResponse& a, GetEventsResponse& b) { a.Swap(&b); } - inline void Swap(GetEventsRequest* other) { + inline void Swap(GetEventsResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetEventsRequest* other) { + void UnsafeArenaSwap(GetEventsResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetEventsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetEventsRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetEventsRequest& from) { - GetEventsRequest::MergeImpl(*this, from); + GetEventsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetEventsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetEventsResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetEventsRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetEventsResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.inputcontroller.v1.GetEventsRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.inputcontroller.v1.GetEventsResponse"; } protected: - explicit GetEventsRequest(::google::protobuf::Arena* arena); - GetEventsRequest(::google::protobuf::Arena* arena, const GetEventsRequest& from); + explicit GetEventsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kControllerFieldNumber = 1, - kExtraFieldNumber = 99, + kEventsFieldNumber = 1, }; - // string controller = 1 [json_name = "controller"]; - void clear_controller() ; - const std::string& controller() const; - template - void set_controller(Arg_&& arg, Args_... args); - std::string* mutable_controller(); - PROTOBUF_NODISCARD std::string* release_controller(); - void set_allocated_controller(std::string* value); - + // repeated .viam.component.inputcontroller.v1.Event events = 1 [json_name = "events"]; + int events_size() const; private: - const std::string& _internal_controller() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_controller( - const std::string& value); - std::string* _internal_mutable_controller(); - + int _internal_events_size() const; public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - + void clear_events(); + ::viam::component::inputcontroller::v1::Event* mutable_events(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::inputcontroller::v1::Event >* + mutable_events(); private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - + const ::viam::component::inputcontroller::v1::Event& _internal_events(int index) const; + ::viam::component::inputcontroller::v1::Event* _internal_add_events(); public: - // @@protoc_insertion_point(class_scope:viam.component.inputcontroller.v1.GetEventsRequest) + const ::viam::component::inputcontroller::v1::Event& events(int index) const; + ::viam::component::inputcontroller::v1::Event* add_events(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::inputcontroller::v1::Event >& + events() const; + + // @@protoc_insertion_point(class_scope:viam.component.inputcontroller.v1.GetEventsResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 2, 1, - 69, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr controller_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::inputcontroller::v1::Event > events_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetControlsRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.inputcontroller.v1.GetControlsRequest) */ { +class TriggerEventRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.inputcontroller.v1.TriggerEventRequest) */ { public: - inline GetControlsRequest() : GetControlsRequest(nullptr) {} - ~GetControlsRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetControlsRequest(::google::protobuf::internal::ConstantInitialized); + inline TriggerEventRequest() : TriggerEventRequest(nullptr) {} + ~TriggerEventRequest() override; + explicit PROTOBUF_CONSTEXPR TriggerEventRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetControlsRequest(const GetControlsRequest& from) - : GetControlsRequest(nullptr, from) {} - GetControlsRequest(GetControlsRequest&& from) noexcept - : GetControlsRequest() { + TriggerEventRequest(const TriggerEventRequest& from); + TriggerEventRequest(TriggerEventRequest&& from) noexcept + : TriggerEventRequest() { *this = ::std::move(from); } - inline GetControlsRequest& operator=(const GetControlsRequest& from) { + inline TriggerEventRequest& operator=(const TriggerEventRequest& from) { CopyFrom(from); return *this; } - inline GetControlsRequest& operator=(GetControlsRequest&& from) noexcept { + inline TriggerEventRequest& operator=(TriggerEventRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1139,99 +787,88 @@ class GetControlsRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetControlsRequest& default_instance() { + static const TriggerEventRequest& default_instance() { return *internal_default_instance(); } - static inline const GetControlsRequest* internal_default_instance() { - return reinterpret_cast( - &_GetControlsRequest_default_instance_); + static inline const TriggerEventRequest* internal_default_instance() { + return reinterpret_cast( + &_TriggerEventRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 0; + 4; - friend void swap(GetControlsRequest& a, GetControlsRequest& b) { + friend void swap(TriggerEventRequest& a, TriggerEventRequest& b) { a.Swap(&b); } - inline void Swap(GetControlsRequest* other) { + inline void Swap(TriggerEventRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetControlsRequest* other) { + void UnsafeArenaSwap(TriggerEventRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetControlsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetControlsRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetControlsRequest& from) { - GetControlsRequest::MergeImpl(*this, from); + TriggerEventRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const TriggerEventRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const TriggerEventRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetControlsRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(TriggerEventRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.inputcontroller.v1.GetControlsRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.inputcontroller.v1.TriggerEventRequest"; } protected: - explicit GetControlsRequest(::google::protobuf::Arena* arena); - GetControlsRequest(::google::protobuf::Arena* arena, const GetControlsRequest& from); + explicit TriggerEventRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1239,82 +876,198 @@ class GetControlsRequest final : enum : int { kControllerFieldNumber = 1, + kEventFieldNumber = 2, kExtraFieldNumber = 99, }; // string controller = 1 [json_name = "controller"]; - void clear_controller() ; + void clear_controller(); const std::string& controller() const; - template - void set_controller(Arg_&& arg, Args_... args); + template + void set_controller(ArgT0&& arg0, ArgT... args); std::string* mutable_controller(); PROTOBUF_NODISCARD std::string* release_controller(); - void set_allocated_controller(std::string* value); - + void set_allocated_controller(std::string* controller); private: const std::string& _internal_controller() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_controller( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_controller(const std::string& value); std::string* _internal_mutable_controller(); + public: + // .viam.component.inputcontroller.v1.Event event = 2 [json_name = "event"]; + bool has_event() const; + private: + bool _internal_has_event() const; + public: + void clear_event(); + const ::viam::component::inputcontroller::v1::Event& event() const; + PROTOBUF_NODISCARD ::viam::component::inputcontroller::v1::Event* release_event(); + ::viam::component::inputcontroller::v1::Event* mutable_event(); + void set_allocated_event(::viam::component::inputcontroller::v1::Event* event); + private: + const ::viam::component::inputcontroller::v1::Event& _internal_event() const; + ::viam::component::inputcontroller::v1::Event* _internal_mutable_event(); public: + void unsafe_arena_set_allocated_event( + ::viam::component::inputcontroller::v1::Event* event); + ::viam::component::inputcontroller::v1::Event* unsafe_arena_release_event(); + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); + 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.inputcontroller.v1.TriggerEventRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr controller_; + ::viam::component::inputcontroller::v1::Event* event_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto; +}; +// ------------------------------------------------------------------- + +class TriggerEventResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.inputcontroller.v1.TriggerEventResponse) */ { + public: + inline TriggerEventResponse() : TriggerEventResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR TriggerEventResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + TriggerEventResponse(const TriggerEventResponse& from); + TriggerEventResponse(TriggerEventResponse&& from) noexcept + : TriggerEventResponse() { + *this = ::std::move(from); + } + + inline TriggerEventResponse& operator=(const TriggerEventResponse& from) { + CopyFrom(from); + return *this; + } + inline TriggerEventResponse& operator=(TriggerEventResponse&& 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 TriggerEventResponse& default_instance() { + return *internal_default_instance(); + } + static inline const TriggerEventResponse* internal_default_instance() { + return reinterpret_cast( + &_TriggerEventResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(TriggerEventResponse& a, TriggerEventResponse& b) { + a.Swap(&b); + } + inline void Swap(TriggerEventResponse* 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(TriggerEventResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + TriggerEventResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const TriggerEventResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const TriggerEventResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); + } public: - // @@protoc_insertion_point(class_scope:viam.component.inputcontroller.v1.GetControlsRequest) + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.inputcontroller.v1.TriggerEventResponse"; + } + protected: + explicit TriggerEventResponse(::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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.component.inputcontroller.v1.TriggerEventResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 2, 1, - 71, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr controller_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class Event final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.inputcontroller.v1.Event) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.inputcontroller.v1.Event) */ { public: inline Event() : Event(nullptr) {} ~Event() override; - template - explicit PROTOBUF_CONSTEXPR Event(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR Event(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Event(const Event& from) - : Event(nullptr, from) {} + Event(const Event& from); Event(Event&& from) noexcept : Event() { *this = ::std::move(from); @@ -1326,9 +1079,9 @@ class Event final : } inline Event& operator=(Event&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1338,22 +1091,13 @@ class Event final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const Event& default_instance() { @@ -1372,65 +1116,63 @@ class Event final : inline void Swap(Event* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(Event* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Event* New(::google::protobuf::Arena* arena = nullptr) const final { + Event* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const Event& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Event& from) { - Event::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Event& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(Event* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "viam.component.inputcontroller.v1.Event"; } protected: - explicit Event(::google::protobuf::Arena* arena); - Event(::google::protobuf::Arena* arena, const Event& from); + explicit Event(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1443,121 +1185,98 @@ class Event final : kValueFieldNumber = 4, }; // string event = 2 [json_name = "event"]; - void clear_event() ; + void clear_event(); const std::string& event() const; - template - void set_event(Arg_&& arg, Args_... args); + template + void set_event(ArgT0&& arg0, ArgT... args); std::string* mutable_event(); PROTOBUF_NODISCARD std::string* release_event(); - void set_allocated_event(std::string* value); - + void set_allocated_event(std::string* event); private: const std::string& _internal_event() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_event( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_event(const std::string& value); std::string* _internal_mutable_event(); - public: + // string control = 3 [json_name = "control"]; - void clear_control() ; + void clear_control(); const std::string& control() const; - template - void set_control(Arg_&& arg, Args_... args); + template + void set_control(ArgT0&& arg0, ArgT... args); std::string* mutable_control(); PROTOBUF_NODISCARD std::string* release_control(); - void set_allocated_control(std::string* value); - + void set_allocated_control(std::string* control); private: const std::string& _internal_control() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_control( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_control(const std::string& value); std::string* _internal_mutable_control(); - public: + // .google.protobuf.Timestamp time = 1 [json_name = "time"]; bool has_time() const; - void clear_time() ; - const ::google::protobuf::Timestamp& time() const; - PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_time(); - ::google::protobuf::Timestamp* mutable_time(); - void set_allocated_time(::google::protobuf::Timestamp* value); - void unsafe_arena_set_allocated_time(::google::protobuf::Timestamp* value); - ::google::protobuf::Timestamp* unsafe_arena_release_time(); - private: - const ::google::protobuf::Timestamp& _internal_time() const; - ::google::protobuf::Timestamp* _internal_mutable_time(); - + bool _internal_has_time() const; public: + void clear_time(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& time() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_time(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_time(); + void set_allocated_time(::PROTOBUF_NAMESPACE_ID::Timestamp* time); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_time() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_time(); + public: + void unsafe_arena_set_allocated_time( + ::PROTOBUF_NAMESPACE_ID::Timestamp* time); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_time(); + // double value = 4 [json_name = "value"]; - void clear_value() ; + void clear_value(); double value() const; void set_value(double value); - private: double _internal_value() const; void _internal_set_value(double value); - public: + // @@protoc_insertion_point(class_scope:viam.component.inputcontroller.v1.Event) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 1, - 60, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr event_; - ::google::protobuf::internal::ArenaStringPtr control_; - ::google::protobuf::Timestamp* time_; - double value_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr event_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr control_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* time_; + double value_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class TriggerEventRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.inputcontroller.v1.TriggerEventRequest) */ { +class StreamEventsRequest_Events final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.inputcontroller.v1.StreamEventsRequest.Events) */ { public: - inline TriggerEventRequest() : TriggerEventRequest(nullptr) {} - ~TriggerEventRequest() override; - template - explicit PROTOBUF_CONSTEXPR TriggerEventRequest(::google::protobuf::internal::ConstantInitialized); + inline StreamEventsRequest_Events() : StreamEventsRequest_Events(nullptr) {} + ~StreamEventsRequest_Events() override; + explicit PROTOBUF_CONSTEXPR StreamEventsRequest_Events(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline TriggerEventRequest(const TriggerEventRequest& from) - : TriggerEventRequest(nullptr, from) {} - TriggerEventRequest(TriggerEventRequest&& from) noexcept - : TriggerEventRequest() { + StreamEventsRequest_Events(const StreamEventsRequest_Events& from); + StreamEventsRequest_Events(StreamEventsRequest_Events&& from) noexcept + : StreamEventsRequest_Events() { *this = ::std::move(from); } - inline TriggerEventRequest& operator=(const TriggerEventRequest& from) { + inline StreamEventsRequest_Events& operator=(const StreamEventsRequest_Events& from) { CopyFrom(from); return *this; } - inline TriggerEventRequest& operator=(TriggerEventRequest&& from) noexcept { + inline StreamEventsRequest_Events& operator=(StreamEventsRequest_Events&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1567,213 +1286,197 @@ class TriggerEventRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const TriggerEventRequest& default_instance() { + static const StreamEventsRequest_Events& default_instance() { return *internal_default_instance(); } - static inline const TriggerEventRequest* internal_default_instance() { - return reinterpret_cast( - &_TriggerEventRequest_default_instance_); + static inline const StreamEventsRequest_Events* internal_default_instance() { + return reinterpret_cast( + &_StreamEventsRequest_Events_default_instance_); } static constexpr int kIndexInFileMessages = - 4; + 7; - friend void swap(TriggerEventRequest& a, TriggerEventRequest& b) { + friend void swap(StreamEventsRequest_Events& a, StreamEventsRequest_Events& b) { a.Swap(&b); } - inline void Swap(TriggerEventRequest* other) { + inline void Swap(StreamEventsRequest_Events* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(TriggerEventRequest* other) { + void UnsafeArenaSwap(StreamEventsRequest_Events* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - TriggerEventRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const TriggerEventRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const TriggerEventRequest& from) { - TriggerEventRequest::MergeImpl(*this, from); + StreamEventsRequest_Events* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const StreamEventsRequest_Events& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const StreamEventsRequest_Events& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(TriggerEventRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(StreamEventsRequest_Events* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.inputcontroller.v1.TriggerEventRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.inputcontroller.v1.StreamEventsRequest.Events"; } protected: - explicit TriggerEventRequest(::google::protobuf::Arena* arena); - TriggerEventRequest(::google::protobuf::Arena* arena, const TriggerEventRequest& from); + explicit StreamEventsRequest_Events(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kControllerFieldNumber = 1, - kEventFieldNumber = 2, - kExtraFieldNumber = 99, + kEventsFieldNumber = 2, + kCancelledEventsFieldNumber = 3, + kControlFieldNumber = 1, }; - // string controller = 1 [json_name = "controller"]; - void clear_controller() ; - const std::string& controller() const; - template - void set_controller(Arg_&& arg, Args_... args); - std::string* mutable_controller(); - PROTOBUF_NODISCARD std::string* release_controller(); - void set_allocated_controller(std::string* value); - + // repeated string events = 2 [json_name = "events"]; + int events_size() const; private: - const std::string& _internal_controller() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_controller( - const std::string& value); - std::string* _internal_mutable_controller(); - + int _internal_events_size() const; public: - // .viam.component.inputcontroller.v1.Event event = 2 [json_name = "event"]; - bool has_event() const; - void clear_event() ; - const ::viam::component::inputcontroller::v1::Event& event() const; - PROTOBUF_NODISCARD ::viam::component::inputcontroller::v1::Event* release_event(); - ::viam::component::inputcontroller::v1::Event* mutable_event(); - void set_allocated_event(::viam::component::inputcontroller::v1::Event* value); - void unsafe_arena_set_allocated_event(::viam::component::inputcontroller::v1::Event* value); - ::viam::component::inputcontroller::v1::Event* unsafe_arena_release_event(); - + void clear_events(); + const std::string& events(int index) const; + std::string* mutable_events(int index); + void set_events(int index, const std::string& value); + void set_events(int index, std::string&& value); + void set_events(int index, const char* value); + void set_events(int index, const char* value, size_t size); + std::string* add_events(); + void add_events(const std::string& value); + void add_events(std::string&& value); + void add_events(const char* value); + void add_events(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& events() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_events(); private: - const ::viam::component::inputcontroller::v1::Event& _internal_event() const; - ::viam::component::inputcontroller::v1::Event* _internal_mutable_event(); - + const std::string& _internal_events(int index) const; + std::string* _internal_add_events(); public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); + // repeated string cancelled_events = 3 [json_name = "cancelledEvents"]; + int cancelled_events_size() const; private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); + int _internal_cancelled_events_size() const; + public: + void clear_cancelled_events(); + const std::string& cancelled_events(int index) const; + std::string* mutable_cancelled_events(int index); + void set_cancelled_events(int index, const std::string& value); + void set_cancelled_events(int index, std::string&& value); + void set_cancelled_events(int index, const char* value); + void set_cancelled_events(int index, const char* value, size_t size); + std::string* add_cancelled_events(); + void add_cancelled_events(const std::string& value); + void add_cancelled_events(std::string&& value); + void add_cancelled_events(const char* value); + void add_cancelled_events(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& cancelled_events() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_cancelled_events(); + private: + const std::string& _internal_cancelled_events(int index) const; + std::string* _internal_add_cancelled_events(); + public: + // string control = 1 [json_name = "control"]; + void clear_control(); + const std::string& control() const; + template + void set_control(ArgT0&& arg0, ArgT... args); + std::string* mutable_control(); + PROTOBUF_NODISCARD std::string* release_control(); + void set_allocated_control(std::string* control); + private: + const std::string& _internal_control() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_control(const std::string& value); + std::string* _internal_mutable_control(); public: - // @@protoc_insertion_point(class_scope:viam.component.inputcontroller.v1.TriggerEventRequest) + + // @@protoc_insertion_point(class_scope:viam.component.inputcontroller.v1.StreamEventsRequest.Events) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 2, - 72, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr controller_; - ::viam::component::inputcontroller::v1::Event* event_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField events_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField cancelled_events_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr control_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class StreamEventsResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.inputcontroller.v1.StreamEventsResponse) */ { +class StreamEventsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.inputcontroller.v1.StreamEventsRequest) */ { public: - inline StreamEventsResponse() : StreamEventsResponse(nullptr) {} - ~StreamEventsResponse() override; - template - explicit PROTOBUF_CONSTEXPR StreamEventsResponse(::google::protobuf::internal::ConstantInitialized); + inline StreamEventsRequest() : StreamEventsRequest(nullptr) {} + ~StreamEventsRequest() override; + explicit PROTOBUF_CONSTEXPR StreamEventsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline StreamEventsResponse(const StreamEventsResponse& from) - : StreamEventsResponse(nullptr, from) {} - StreamEventsResponse(StreamEventsResponse&& from) noexcept - : StreamEventsResponse() { + StreamEventsRequest(const StreamEventsRequest& from); + StreamEventsRequest(StreamEventsRequest&& from) noexcept + : StreamEventsRequest() { *this = ::std::move(from); } - inline StreamEventsResponse& operator=(const StreamEventsResponse& from) { + inline StreamEventsRequest& operator=(const StreamEventsRequest& from) { CopyFrom(from); return *this; } - inline StreamEventsResponse& operator=(StreamEventsResponse&& from) noexcept { + inline StreamEventsRequest& operator=(StreamEventsRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1783,178 +1486,187 @@ class StreamEventsResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const StreamEventsResponse& default_instance() { + static const StreamEventsRequest& default_instance() { return *internal_default_instance(); } - static inline const StreamEventsResponse* internal_default_instance() { - return reinterpret_cast( - &_StreamEventsResponse_default_instance_); + static inline const StreamEventsRequest* internal_default_instance() { + return reinterpret_cast( + &_StreamEventsRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 9; + 8; - friend void swap(StreamEventsResponse& a, StreamEventsResponse& b) { + friend void swap(StreamEventsRequest& a, StreamEventsRequest& b) { a.Swap(&b); } - inline void Swap(StreamEventsResponse* other) { + inline void Swap(StreamEventsRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(StreamEventsResponse* other) { + void UnsafeArenaSwap(StreamEventsRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - StreamEventsResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const StreamEventsResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const StreamEventsResponse& from) { - StreamEventsResponse::MergeImpl(*this, from); + StreamEventsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const StreamEventsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const StreamEventsRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(StreamEventsResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(StreamEventsRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.inputcontroller.v1.StreamEventsResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.inputcontroller.v1.StreamEventsRequest"; } protected: - explicit StreamEventsResponse(::google::protobuf::Arena* arena); - StreamEventsResponse(::google::protobuf::Arena* arena, const StreamEventsResponse& from); + explicit StreamEventsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- + typedef StreamEventsRequest_Events Events; + // accessors ------------------------------------------------------- enum : int { - kEventFieldNumber = 1, + kEventsFieldNumber = 2, + kControllerFieldNumber = 1, + kExtraFieldNumber = 99, }; - // .viam.component.inputcontroller.v1.Event event = 1 [json_name = "event"]; - bool has_event() const; - void clear_event() ; - const ::viam::component::inputcontroller::v1::Event& event() const; - PROTOBUF_NODISCARD ::viam::component::inputcontroller::v1::Event* release_event(); - ::viam::component::inputcontroller::v1::Event* mutable_event(); - void set_allocated_event(::viam::component::inputcontroller::v1::Event* value); - void unsafe_arena_set_allocated_event(::viam::component::inputcontroller::v1::Event* value); - ::viam::component::inputcontroller::v1::Event* unsafe_arena_release_event(); + // repeated .viam.component.inputcontroller.v1.StreamEventsRequest.Events events = 2 [json_name = "events"]; + int events_size() const; + private: + int _internal_events_size() const; + public: + void clear_events(); + ::viam::component::inputcontroller::v1::StreamEventsRequest_Events* mutable_events(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::inputcontroller::v1::StreamEventsRequest_Events >* + mutable_events(); + private: + const ::viam::component::inputcontroller::v1::StreamEventsRequest_Events& _internal_events(int index) const; + ::viam::component::inputcontroller::v1::StreamEventsRequest_Events* _internal_add_events(); + public: + const ::viam::component::inputcontroller::v1::StreamEventsRequest_Events& events(int index) const; + ::viam::component::inputcontroller::v1::StreamEventsRequest_Events* add_events(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::inputcontroller::v1::StreamEventsRequest_Events >& + events() const; + // string controller = 1 [json_name = "controller"]; + void clear_controller(); + const std::string& controller() const; + template + void set_controller(ArgT0&& arg0, ArgT... args); + std::string* mutable_controller(); + PROTOBUF_NODISCARD std::string* release_controller(); + void set_allocated_controller(std::string* controller); private: - const ::viam::component::inputcontroller::v1::Event& _internal_event() const; - ::viam::component::inputcontroller::v1::Event* _internal_mutable_event(); + const std::string& _internal_controller() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_controller(const std::string& value); + std::string* _internal_mutable_controller(); + public: + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + bool has_extra() const; + private: + bool _internal_has_extra() const; public: - // @@protoc_insertion_point(class_scope:viam.component.inputcontroller.v1.StreamEventsResponse) + 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.inputcontroller.v1.StreamEventsRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::viam::component::inputcontroller::v1::Event* event_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::inputcontroller::v1::StreamEventsRequest_Events > events_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr controller_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Status final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.inputcontroller.v1.Status) */ { +class StreamEventsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.inputcontroller.v1.StreamEventsResponse) */ { public: - inline Status() : Status(nullptr) {} - ~Status() override; - template - explicit PROTOBUF_CONSTEXPR Status(::google::protobuf::internal::ConstantInitialized); + inline StreamEventsResponse() : StreamEventsResponse(nullptr) {} + ~StreamEventsResponse() override; + explicit PROTOBUF_CONSTEXPR StreamEventsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Status(const Status& from) - : Status(nullptr, from) {} - Status(Status&& from) noexcept - : Status() { + StreamEventsResponse(const StreamEventsResponse& from); + StreamEventsResponse(StreamEventsResponse&& from) noexcept + : StreamEventsResponse() { *this = ::std::move(from); } - inline Status& operator=(const Status& from) { + inline StreamEventsResponse& operator=(const StreamEventsResponse& from) { CopyFrom(from); return *this; } - inline Status& operator=(Status&& from) noexcept { + inline StreamEventsResponse& operator=(StreamEventsResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1964,180 +1676,149 @@ class Status final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Status& default_instance() { + static const StreamEventsResponse& default_instance() { return *internal_default_instance(); } - static inline const Status* internal_default_instance() { - return reinterpret_cast( - &_Status_default_instance_); + static inline const StreamEventsResponse* internal_default_instance() { + return reinterpret_cast( + &_StreamEventsResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 10; + 9; - friend void swap(Status& a, Status& b) { + friend void swap(StreamEventsResponse& a, StreamEventsResponse& b) { a.Swap(&b); } - inline void Swap(Status* other) { + inline void Swap(StreamEventsResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Status* other) { + void UnsafeArenaSwap(StreamEventsResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Status* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Status& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Status& from) { - Status::MergeImpl(*this, from); + StreamEventsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const StreamEventsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const StreamEventsResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Status* other); + void SetCachedSize(int size) const final; + void InternalSwap(StreamEventsResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.inputcontroller.v1.Status"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.inputcontroller.v1.StreamEventsResponse"; } protected: - explicit Status(::google::protobuf::Arena* arena); - Status(::google::protobuf::Arena* arena, const Status& from); + explicit StreamEventsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kEventsFieldNumber = 1, + kEventFieldNumber = 1, }; - // repeated .viam.component.inputcontroller.v1.Event events = 1 [json_name = "events"]; - int events_size() const; + // .viam.component.inputcontroller.v1.Event event = 1 [json_name = "event"]; + bool has_event() const; private: - int _internal_events_size() const; - + bool _internal_has_event() const; public: - void clear_events() ; - ::viam::component::inputcontroller::v1::Event* mutable_events(int index); - ::google::protobuf::RepeatedPtrField< ::viam::component::inputcontroller::v1::Event >* - mutable_events(); + void clear_event(); + const ::viam::component::inputcontroller::v1::Event& event() const; + PROTOBUF_NODISCARD ::viam::component::inputcontroller::v1::Event* release_event(); + ::viam::component::inputcontroller::v1::Event* mutable_event(); + void set_allocated_event(::viam::component::inputcontroller::v1::Event* event); private: - const ::google::protobuf::RepeatedPtrField<::viam::component::inputcontroller::v1::Event>& _internal_events() const; - ::google::protobuf::RepeatedPtrField<::viam::component::inputcontroller::v1::Event>* _internal_mutable_events(); + const ::viam::component::inputcontroller::v1::Event& _internal_event() const; + ::viam::component::inputcontroller::v1::Event* _internal_mutable_event(); public: - const ::viam::component::inputcontroller::v1::Event& events(int index) const; - ::viam::component::inputcontroller::v1::Event* add_events(); - const ::google::protobuf::RepeatedPtrField< ::viam::component::inputcontroller::v1::Event >& - events() const; - // @@protoc_insertion_point(class_scope:viam.component.inputcontroller.v1.Status) + void unsafe_arena_set_allocated_event( + ::viam::component::inputcontroller::v1::Event* event); + ::viam::component::inputcontroller::v1::Event* unsafe_arena_release_event(); + + // @@protoc_insertion_point(class_scope:viam.component.inputcontroller.v1.StreamEventsResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::component::inputcontroller::v1::Event > events_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::viam::component::inputcontroller::v1::Event* event_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetEventsResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.inputcontroller.v1.GetEventsResponse) */ { +class Status final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.inputcontroller.v1.Status) */ { public: - inline GetEventsResponse() : GetEventsResponse(nullptr) {} - ~GetEventsResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetEventsResponse(::google::protobuf::internal::ConstantInitialized); + inline Status() : Status(nullptr) {} + ~Status() override; + explicit PROTOBUF_CONSTEXPR Status(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetEventsResponse(const GetEventsResponse& from) - : GetEventsResponse(nullptr, from) {} - GetEventsResponse(GetEventsResponse&& from) noexcept - : GetEventsResponse() { + Status(const Status& from); + Status(Status&& from) noexcept + : Status() { *this = ::std::move(from); } - inline GetEventsResponse& operator=(const GetEventsResponse& from) { + inline Status& operator=(const Status& from) { CopyFrom(from); return *this; } - inline GetEventsResponse& operator=(GetEventsResponse&& from) noexcept { + inline Status& operator=(Status&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2147,99 +1828,88 @@ class GetEventsResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetEventsResponse& default_instance() { + static const Status& default_instance() { return *internal_default_instance(); } - static inline const GetEventsResponse* internal_default_instance() { - return reinterpret_cast( - &_GetEventsResponse_default_instance_); + static inline const Status* internal_default_instance() { + return reinterpret_cast( + &_Status_default_instance_); } static constexpr int kIndexInFileMessages = - 3; + 10; - friend void swap(GetEventsResponse& a, GetEventsResponse& b) { + friend void swap(Status& a, Status& b) { a.Swap(&b); } - inline void Swap(GetEventsResponse* other) { + inline void Swap(Status* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetEventsResponse* other) { + void UnsafeArenaSwap(Status* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetEventsResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetEventsResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetEventsResponse& from) { - GetEventsResponse::MergeImpl(*this, from); + Status* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Status& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Status& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetEventsResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(Status* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.inputcontroller.v1.GetEventsResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.inputcontroller.v1.Status"; } protected: - explicit GetEventsResponse(::google::protobuf::Arena* arena); - GetEventsResponse(::google::protobuf::Arena* arena, const GetEventsResponse& from); + explicit Status(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -2252,208 +1922,174 @@ class GetEventsResponse final : int events_size() const; private: int _internal_events_size() const; - public: - void clear_events() ; + void clear_events(); ::viam::component::inputcontroller::v1::Event* mutable_events(int index); - ::google::protobuf::RepeatedPtrField< ::viam::component::inputcontroller::v1::Event >* + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::inputcontroller::v1::Event >* mutable_events(); private: - const ::google::protobuf::RepeatedPtrField<::viam::component::inputcontroller::v1::Event>& _internal_events() const; - ::google::protobuf::RepeatedPtrField<::viam::component::inputcontroller::v1::Event>* _internal_mutable_events(); + const ::viam::component::inputcontroller::v1::Event& _internal_events(int index) const; + ::viam::component::inputcontroller::v1::Event* _internal_add_events(); public: const ::viam::component::inputcontroller::v1::Event& events(int index) const; ::viam::component::inputcontroller::v1::Event* add_events(); - const ::google::protobuf::RepeatedPtrField< ::viam::component::inputcontroller::v1::Event >& + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::inputcontroller::v1::Event >& events() const; - // @@protoc_insertion_point(class_scope:viam.component.inputcontroller.v1.GetEventsResponse) + + // @@protoc_insertion_point(class_scope:viam.component.inputcontroller.v1.Status) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::component::inputcontroller::v1::Event > events_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::inputcontroller::v1::Event > events_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto; }; - // =================================================================== - - // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ -// ------------------------------------------------------------------- - // GetControlsRequest // string controller = 1 [json_name = "controller"]; inline void GetControlsRequest::clear_controller() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.controller_.ClearToEmpty(); + controller_.ClearToEmpty(); } -inline const std::string& GetControlsRequest::controller() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetControlsRequest::controller() const { // @@protoc_insertion_point(field_get:viam.component.inputcontroller.v1.GetControlsRequest.controller) return _internal_controller(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetControlsRequest::set_controller(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.controller_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetControlsRequest::set_controller(ArgT0&& arg0, ArgT... args) { + + controller_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.inputcontroller.v1.GetControlsRequest.controller) } -inline std::string* GetControlsRequest::mutable_controller() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetControlsRequest::mutable_controller() { std::string* _s = _internal_mutable_controller(); // @@protoc_insertion_point(field_mutable:viam.component.inputcontroller.v1.GetControlsRequest.controller) return _s; } inline const std::string& GetControlsRequest::_internal_controller() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.controller_.Get(); + return controller_.Get(); } inline void GetControlsRequest::_internal_set_controller(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.controller_.Set(value, GetArena()); + + controller_.Set(value, GetArenaForAllocation()); } inline std::string* GetControlsRequest::_internal_mutable_controller() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.controller_.Mutable( GetArena()); + + return controller_.Mutable(GetArenaForAllocation()); } inline std::string* GetControlsRequest::release_controller() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.inputcontroller.v1.GetControlsRequest.controller) - return _impl_.controller_.Release(); -} -inline void GetControlsRequest::set_allocated_controller(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.controller_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.controller_.IsDefault()) { - _impl_.controller_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return controller_.Release(); +} +inline void GetControlsRequest::set_allocated_controller(std::string* controller) { + if (controller != nullptr) { + + } else { + + } + controller_.SetAllocated(controller, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (controller_.IsDefault()) { + controller_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.component.inputcontroller.v1.GetControlsRequest.controller) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetControlsRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool GetControlsRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& GetControlsRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetControlsRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& GetControlsRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetControlsRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.inputcontroller.v1.GetControlsRequest.extra) return _internal_extra(); } -inline void GetControlsRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void GetControlsRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.inputcontroller.v1.GetControlsRequest.extra) } -inline ::google::protobuf::Struct* GetControlsRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetControlsRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* GetControlsRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetControlsRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.inputcontroller.v1.GetControlsRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* GetControlsRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetControlsRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* GetControlsRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetControlsRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.inputcontroller.v1.GetControlsRequest.extra) return _msg; } -inline void GetControlsRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetControlsRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.inputcontroller.v1.GetControlsRequest.extra) } @@ -2463,103 +2099,77 @@ inline void GetControlsRequest::set_allocated_extra(::google::protobuf::Struct* // repeated string controls = 1 [json_name = "controls"]; inline int GetControlsResponse::_internal_controls_size() const { - return _internal_controls().size(); + return controls_.size(); } inline int GetControlsResponse::controls_size() const { return _internal_controls_size(); } inline void GetControlsResponse::clear_controls() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.controls_.Clear(); + controls_.Clear(); } -inline std::string* GetControlsResponse::add_controls() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_controls()->Add(); +inline std::string* GetControlsResponse::add_controls() { + std::string* _s = _internal_add_controls(); // @@protoc_insertion_point(field_add_mutable:viam.component.inputcontroller.v1.GetControlsResponse.controls) return _s; } -inline const std::string& GetControlsResponse::controls(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetControlsResponse::_internal_controls(int index) const { + return controls_.Get(index); +} +inline const std::string& GetControlsResponse::controls(int index) const { // @@protoc_insertion_point(field_get:viam.component.inputcontroller.v1.GetControlsResponse.controls) - return _internal_controls().Get(index); + return _internal_controls(index); } -inline std::string* GetControlsResponse::mutable_controls(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetControlsResponse::mutable_controls(int index) { // @@protoc_insertion_point(field_mutable:viam.component.inputcontroller.v1.GetControlsResponse.controls) - return _internal_mutable_controls()->Mutable(index); + return controls_.Mutable(index); } inline void GetControlsResponse::set_controls(int index, const std::string& value) { - _internal_mutable_controls()->Mutable(index)->assign(value); + controls_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set:viam.component.inputcontroller.v1.GetControlsResponse.controls) } inline void GetControlsResponse::set_controls(int index, std::string&& value) { - _internal_mutable_controls()->Mutable(index)->assign(std::move(value)); + controls_.Mutable(index)->assign(std::move(value)); // @@protoc_insertion_point(field_set:viam.component.inputcontroller.v1.GetControlsResponse.controls) } inline void GetControlsResponse::set_controls(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_controls()->Mutable(index)->assign(value); + GOOGLE_DCHECK(value != nullptr); + controls_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:viam.component.inputcontroller.v1.GetControlsResponse.controls) } -inline void GetControlsResponse::set_controls(int index, const char* value, - std::size_t size) { - _internal_mutable_controls()->Mutable(index)->assign( - reinterpret_cast(value), size); +inline void GetControlsResponse::set_controls(int index, const char* value, size_t size) { + controls_.Mutable(index)->assign( + reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:viam.component.inputcontroller.v1.GetControlsResponse.controls) } -inline void GetControlsResponse::set_controls(int index, absl::string_view value) { - _internal_mutable_controls()->Mutable(index)->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_set_string_piece:viam.component.inputcontroller.v1.GetControlsResponse.controls) +inline std::string* GetControlsResponse::_internal_add_controls() { + return controls_.Add(); } inline void GetControlsResponse::add_controls(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_controls()->Add()->assign(value); + controls_.Add()->assign(value); // @@protoc_insertion_point(field_add:viam.component.inputcontroller.v1.GetControlsResponse.controls) } inline void GetControlsResponse::add_controls(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_controls()->Add(std::move(value)); + controls_.Add(std::move(value)); // @@protoc_insertion_point(field_add:viam.component.inputcontroller.v1.GetControlsResponse.controls) } inline void GetControlsResponse::add_controls(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_controls()->Add()->assign(value); + GOOGLE_DCHECK(value != nullptr); + controls_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:viam.component.inputcontroller.v1.GetControlsResponse.controls) } -inline void GetControlsResponse::add_controls(const char* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_controls()->Add()->assign( - reinterpret_cast(value), size); +inline void GetControlsResponse::add_controls(const char* value, size_t size) { + controls_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:viam.component.inputcontroller.v1.GetControlsResponse.controls) } -inline void GetControlsResponse::add_controls(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_controls()->Add()->assign(value.data(), value.size()); - // @@protoc_insertion_point(field_add_string_piece:viam.component.inputcontroller.v1.GetControlsResponse.controls) -} -inline const ::google::protobuf::RepeatedPtrField& -GetControlsResponse::controls() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +GetControlsResponse::controls() const { // @@protoc_insertion_point(field_list:viam.component.inputcontroller.v1.GetControlsResponse.controls) - return _internal_controls(); + return controls_; } -inline ::google::protobuf::RepeatedPtrField* -GetControlsResponse::mutable_controls() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +GetControlsResponse::mutable_controls() { // @@protoc_insertion_point(field_mutable_list:viam.component.inputcontroller.v1.GetControlsResponse.controls) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_controls(); -} -inline const ::google::protobuf::RepeatedPtrField& -GetControlsResponse::_internal_controls() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.controls_; -} -inline ::google::protobuf::RepeatedPtrField* -GetControlsResponse::_internal_mutable_controls() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.controls_; + return &controls_; } // ------------------------------------------------------------------- @@ -2568,145 +2178,136 @@ GetControlsResponse::_internal_mutable_controls() { // string controller = 1 [json_name = "controller"]; inline void GetEventsRequest::clear_controller() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.controller_.ClearToEmpty(); + controller_.ClearToEmpty(); } -inline const std::string& GetEventsRequest::controller() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetEventsRequest::controller() const { // @@protoc_insertion_point(field_get:viam.component.inputcontroller.v1.GetEventsRequest.controller) return _internal_controller(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetEventsRequest::set_controller(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.controller_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetEventsRequest::set_controller(ArgT0&& arg0, ArgT... args) { + + controller_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.inputcontroller.v1.GetEventsRequest.controller) } -inline std::string* GetEventsRequest::mutable_controller() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetEventsRequest::mutable_controller() { std::string* _s = _internal_mutable_controller(); // @@protoc_insertion_point(field_mutable:viam.component.inputcontroller.v1.GetEventsRequest.controller) return _s; } inline const std::string& GetEventsRequest::_internal_controller() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.controller_.Get(); + return controller_.Get(); } inline void GetEventsRequest::_internal_set_controller(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.controller_.Set(value, GetArena()); + + controller_.Set(value, GetArenaForAllocation()); } inline std::string* GetEventsRequest::_internal_mutable_controller() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.controller_.Mutable( GetArena()); + + return controller_.Mutable(GetArenaForAllocation()); } inline std::string* GetEventsRequest::release_controller() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.inputcontroller.v1.GetEventsRequest.controller) - return _impl_.controller_.Release(); -} -inline void GetEventsRequest::set_allocated_controller(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.controller_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.controller_.IsDefault()) { - _impl_.controller_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return controller_.Release(); +} +inline void GetEventsRequest::set_allocated_controller(std::string* controller) { + if (controller != nullptr) { + + } else { + + } + controller_.SetAllocated(controller, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (controller_.IsDefault()) { + controller_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.component.inputcontroller.v1.GetEventsRequest.controller) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetEventsRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool GetEventsRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& GetEventsRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetEventsRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& GetEventsRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetEventsRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.inputcontroller.v1.GetEventsRequest.extra) return _internal_extra(); } -inline void GetEventsRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void GetEventsRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.inputcontroller.v1.GetEventsRequest.extra) } -inline ::google::protobuf::Struct* GetEventsRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetEventsRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* GetEventsRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetEventsRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.inputcontroller.v1.GetEventsRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* GetEventsRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetEventsRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* GetEventsRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetEventsRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.inputcontroller.v1.GetEventsRequest.extra) return _msg; } -inline void GetEventsRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetEventsRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.inputcontroller.v1.GetEventsRequest.extra) } @@ -2716,51 +2317,42 @@ inline void GetEventsRequest::set_allocated_extra(::google::protobuf::Struct* va // repeated .viam.component.inputcontroller.v1.Event events = 1 [json_name = "events"]; inline int GetEventsResponse::_internal_events_size() const { - return _internal_events().size(); + return events_.size(); } inline int GetEventsResponse::events_size() const { return _internal_events_size(); } inline void GetEventsResponse::clear_events() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.events_.Clear(); + events_.Clear(); } -inline ::viam::component::inputcontroller::v1::Event* GetEventsResponse::mutable_events(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::component::inputcontroller::v1::Event* GetEventsResponse::mutable_events(int index) { // @@protoc_insertion_point(field_mutable:viam.component.inputcontroller.v1.GetEventsResponse.events) - return _internal_mutable_events()->Mutable(index); + return events_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::component::inputcontroller::v1::Event>* GetEventsResponse::mutable_events() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::inputcontroller::v1::Event >* +GetEventsResponse::mutable_events() { // @@protoc_insertion_point(field_mutable_list:viam.component.inputcontroller.v1.GetEventsResponse.events) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_events(); + return &events_; } -inline const ::viam::component::inputcontroller::v1::Event& GetEventsResponse::events(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::component::inputcontroller::v1::Event& GetEventsResponse::_internal_events(int index) const { + return events_.Get(index); +} +inline const ::viam::component::inputcontroller::v1::Event& GetEventsResponse::events(int index) const { // @@protoc_insertion_point(field_get:viam.component.inputcontroller.v1.GetEventsResponse.events) - return _internal_events().Get(index); + return _internal_events(index); +} +inline ::viam::component::inputcontroller::v1::Event* GetEventsResponse::_internal_add_events() { + return events_.Add(); } -inline ::viam::component::inputcontroller::v1::Event* GetEventsResponse::add_events() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::component::inputcontroller::v1::Event* _add = _internal_mutable_events()->Add(); +inline ::viam::component::inputcontroller::v1::Event* GetEventsResponse::add_events() { + ::viam::component::inputcontroller::v1::Event* _add = _internal_add_events(); // @@protoc_insertion_point(field_add:viam.component.inputcontroller.v1.GetEventsResponse.events) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::component::inputcontroller::v1::Event>& GetEventsResponse::events() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::inputcontroller::v1::Event >& +GetEventsResponse::events() const { // @@protoc_insertion_point(field_list:viam.component.inputcontroller.v1.GetEventsResponse.events) - return _internal_events(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::component::inputcontroller::v1::Event>& -GetEventsResponse::_internal_events() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.events_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::component::inputcontroller::v1::Event>* -GetEventsResponse::_internal_mutable_events() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.events_; + return events_; } // ------------------------------------------------------------------- @@ -2769,241 +2361,226 @@ GetEventsResponse::_internal_mutable_events() { // string controller = 1 [json_name = "controller"]; inline void TriggerEventRequest::clear_controller() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.controller_.ClearToEmpty(); + controller_.ClearToEmpty(); } -inline const std::string& TriggerEventRequest::controller() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& TriggerEventRequest::controller() const { // @@protoc_insertion_point(field_get:viam.component.inputcontroller.v1.TriggerEventRequest.controller) return _internal_controller(); } -template -inline PROTOBUF_ALWAYS_INLINE void TriggerEventRequest::set_controller(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.controller_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void TriggerEventRequest::set_controller(ArgT0&& arg0, ArgT... args) { + + controller_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.inputcontroller.v1.TriggerEventRequest.controller) } -inline std::string* TriggerEventRequest::mutable_controller() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* TriggerEventRequest::mutable_controller() { std::string* _s = _internal_mutable_controller(); // @@protoc_insertion_point(field_mutable:viam.component.inputcontroller.v1.TriggerEventRequest.controller) return _s; } inline const std::string& TriggerEventRequest::_internal_controller() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.controller_.Get(); + return controller_.Get(); } inline void TriggerEventRequest::_internal_set_controller(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.controller_.Set(value, GetArena()); + + controller_.Set(value, GetArenaForAllocation()); } inline std::string* TriggerEventRequest::_internal_mutable_controller() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.controller_.Mutable( GetArena()); + + return controller_.Mutable(GetArenaForAllocation()); } inline std::string* TriggerEventRequest::release_controller() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.inputcontroller.v1.TriggerEventRequest.controller) - return _impl_.controller_.Release(); -} -inline void TriggerEventRequest::set_allocated_controller(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.controller_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.controller_.IsDefault()) { - _impl_.controller_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return controller_.Release(); +} +inline void TriggerEventRequest::set_allocated_controller(std::string* controller) { + if (controller != nullptr) { + + } else { + + } + controller_.SetAllocated(controller, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (controller_.IsDefault()) { + controller_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.component.inputcontroller.v1.TriggerEventRequest.controller) } // .viam.component.inputcontroller.v1.Event event = 2 [json_name = "event"]; +inline bool TriggerEventRequest::_internal_has_event() const { + return this != internal_default_instance() && event_ != nullptr; +} inline bool TriggerEventRequest::has_event() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.event_ != nullptr); - return value; + return _internal_has_event(); } inline void TriggerEventRequest::clear_event() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.event_ != nullptr) _impl_.event_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && event_ != nullptr) { + delete event_; + } + event_ = nullptr; } inline const ::viam::component::inputcontroller::v1::Event& TriggerEventRequest::_internal_event() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::component::inputcontroller::v1::Event* p = _impl_.event_; - return p != nullptr ? *p : reinterpret_cast(::viam::component::inputcontroller::v1::_Event_default_instance_); + const ::viam::component::inputcontroller::v1::Event* p = event_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::component::inputcontroller::v1::_Event_default_instance_); } -inline const ::viam::component::inputcontroller::v1::Event& TriggerEventRequest::event() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::component::inputcontroller::v1::Event& TriggerEventRequest::event() const { // @@protoc_insertion_point(field_get:viam.component.inputcontroller.v1.TriggerEventRequest.event) return _internal_event(); } -inline void TriggerEventRequest::unsafe_arena_set_allocated_event(::viam::component::inputcontroller::v1::Event* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.event_); +inline void TriggerEventRequest::unsafe_arena_set_allocated_event( + ::viam::component::inputcontroller::v1::Event* event) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(event_); } - _impl_.event_ = reinterpret_cast<::viam::component::inputcontroller::v1::Event*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + event_ = event; + if (event) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.inputcontroller.v1.TriggerEventRequest.event) } inline ::viam::component::inputcontroller::v1::Event* TriggerEventRequest::release_event() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::component::inputcontroller::v1::Event* released = _impl_.event_; - _impl_.event_ = nullptr; + + ::viam::component::inputcontroller::v1::Event* temp = event_; + event_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::component::inputcontroller::v1::Event* TriggerEventRequest::unsafe_arena_release_event() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.inputcontroller.v1.TriggerEventRequest.event) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::component::inputcontroller::v1::Event* temp = _impl_.event_; - _impl_.event_ = nullptr; + + ::viam::component::inputcontroller::v1::Event* temp = event_; + event_ = nullptr; return temp; } inline ::viam::component::inputcontroller::v1::Event* TriggerEventRequest::_internal_mutable_event() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.event_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::component::inputcontroller::v1::Event>(GetArena()); - _impl_.event_ = reinterpret_cast<::viam::component::inputcontroller::v1::Event*>(p); + + if (event_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::component::inputcontroller::v1::Event>(GetArenaForAllocation()); + event_ = p; } - return _impl_.event_; + return event_; } -inline ::viam::component::inputcontroller::v1::Event* TriggerEventRequest::mutable_event() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::component::inputcontroller::v1::Event* TriggerEventRequest::mutable_event() { ::viam::component::inputcontroller::v1::Event* _msg = _internal_mutable_event(); // @@protoc_insertion_point(field_mutable:viam.component.inputcontroller.v1.TriggerEventRequest.event) return _msg; } -inline void TriggerEventRequest::set_allocated_event(::viam::component::inputcontroller::v1::Event* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TriggerEventRequest::set_allocated_event(::viam::component::inputcontroller::v1::Event* event) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::component::inputcontroller::v1::Event*>(_impl_.event_); + delete event_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::component::inputcontroller::v1::Event*>(value)->GetArena(); + if (event) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(event); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + event = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, event, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.event_ = reinterpret_cast<::viam::component::inputcontroller::v1::Event*>(value); + event_ = event; // @@protoc_insertion_point(field_set_allocated:viam.component.inputcontroller.v1.TriggerEventRequest.event) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool TriggerEventRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool TriggerEventRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& TriggerEventRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& TriggerEventRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& TriggerEventRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& TriggerEventRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.inputcontroller.v1.TriggerEventRequest.extra) return _internal_extra(); } -inline void TriggerEventRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void TriggerEventRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.inputcontroller.v1.TriggerEventRequest.extra) } -inline ::google::protobuf::Struct* TriggerEventRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* TriggerEventRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* TriggerEventRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* TriggerEventRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.inputcontroller.v1.TriggerEventRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* TriggerEventRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* TriggerEventRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* TriggerEventRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* TriggerEventRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.inputcontroller.v1.TriggerEventRequest.extra) return _msg; } -inline void TriggerEventRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TriggerEventRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.inputcontroller.v1.TriggerEventRequest.extra) } @@ -3016,224 +2593,209 @@ inline void TriggerEventRequest::set_allocated_extra(::google::protobuf::Struct* // Event // .google.protobuf.Timestamp time = 1 [json_name = "time"]; +inline bool Event::_internal_has_time() const { + return this != internal_default_instance() && time_ != nullptr; +} inline bool Event::has_time() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.time_ != nullptr); - return value; + return _internal_has_time(); } -inline const ::google::protobuf::Timestamp& Event::_internal_time() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Timestamp* p = _impl_.time_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& Event::_internal_time() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = time_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); } -inline const ::google::protobuf::Timestamp& Event::time() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& Event::time() const { // @@protoc_insertion_point(field_get:viam.component.inputcontroller.v1.Event.time) return _internal_time(); } -inline void Event::unsafe_arena_set_allocated_time(::google::protobuf::Timestamp* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.time_); +inline void Event::unsafe_arena_set_allocated_time( + ::PROTOBUF_NAMESPACE_ID::Timestamp* time) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(time_); } - _impl_.time_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + time_ = time; + if (time) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.inputcontroller.v1.Event.time) } -inline ::google::protobuf::Timestamp* Event::release_time() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Timestamp* released = _impl_.time_; - _impl_.time_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Event::release_time() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = time_; + time_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Timestamp* Event::unsafe_arena_release_time() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Event::unsafe_arena_release_time() { // @@protoc_insertion_point(field_release:viam.component.inputcontroller.v1.Event.time) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Timestamp* temp = _impl_.time_; - _impl_.time_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = time_; + time_ = nullptr; return temp; } -inline ::google::protobuf::Timestamp* Event::_internal_mutable_time() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.time_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena()); - _impl_.time_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Event::_internal_mutable_time() { + + if (time_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + time_ = p; } - return _impl_.time_; + return time_; } -inline ::google::protobuf::Timestamp* Event::mutable_time() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Timestamp* _msg = _internal_mutable_time(); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Event::mutable_time() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_time(); // @@protoc_insertion_point(field_mutable:viam.component.inputcontroller.v1.Event.time) return _msg; } -inline void Event::set_allocated_time(::google::protobuf::Timestamp* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Event::set_allocated_time(::PROTOBUF_NAMESPACE_ID::Timestamp* time) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.time_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(time_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (time) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(time)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, time, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.time_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); + time_ = time; // @@protoc_insertion_point(field_set_allocated:viam.component.inputcontroller.v1.Event.time) } // string event = 2 [json_name = "event"]; inline void Event::clear_event() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.event_.ClearToEmpty(); + event_.ClearToEmpty(); } -inline const std::string& Event::event() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Event::event() const { // @@protoc_insertion_point(field_get:viam.component.inputcontroller.v1.Event.event) return _internal_event(); } -template -inline PROTOBUF_ALWAYS_INLINE void Event::set_event(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.event_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Event::set_event(ArgT0&& arg0, ArgT... args) { + + event_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.inputcontroller.v1.Event.event) } -inline std::string* Event::mutable_event() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Event::mutable_event() { std::string* _s = _internal_mutable_event(); // @@protoc_insertion_point(field_mutable:viam.component.inputcontroller.v1.Event.event) return _s; } inline const std::string& Event::_internal_event() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.event_.Get(); + return event_.Get(); } inline void Event::_internal_set_event(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.event_.Set(value, GetArena()); + + event_.Set(value, GetArenaForAllocation()); } inline std::string* Event::_internal_mutable_event() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.event_.Mutable( GetArena()); + + return event_.Mutable(GetArenaForAllocation()); } inline std::string* Event::release_event() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.inputcontroller.v1.Event.event) - return _impl_.event_.Release(); -} -inline void Event::set_allocated_event(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.event_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.event_.IsDefault()) { - _impl_.event_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return event_.Release(); +} +inline void Event::set_allocated_event(std::string* event) { + if (event != nullptr) { + + } else { + + } + event_.SetAllocated(event, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (event_.IsDefault()) { + event_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.component.inputcontroller.v1.Event.event) } // string control = 3 [json_name = "control"]; inline void Event::clear_control() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.control_.ClearToEmpty(); + control_.ClearToEmpty(); } -inline const std::string& Event::control() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Event::control() const { // @@protoc_insertion_point(field_get:viam.component.inputcontroller.v1.Event.control) return _internal_control(); } -template -inline PROTOBUF_ALWAYS_INLINE void Event::set_control(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.control_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Event::set_control(ArgT0&& arg0, ArgT... args) { + + control_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.inputcontroller.v1.Event.control) } -inline std::string* Event::mutable_control() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Event::mutable_control() { std::string* _s = _internal_mutable_control(); // @@protoc_insertion_point(field_mutable:viam.component.inputcontroller.v1.Event.control) return _s; } inline const std::string& Event::_internal_control() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.control_.Get(); + return control_.Get(); } inline void Event::_internal_set_control(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.control_.Set(value, GetArena()); + + control_.Set(value, GetArenaForAllocation()); } inline std::string* Event::_internal_mutable_control() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.control_.Mutable( GetArena()); + + return control_.Mutable(GetArenaForAllocation()); } inline std::string* Event::release_control() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.inputcontroller.v1.Event.control) - return _impl_.control_.Release(); -} -inline void Event::set_allocated_control(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.control_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.control_.IsDefault()) { - _impl_.control_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return control_.Release(); +} +inline void Event::set_allocated_control(std::string* control) { + if (control != nullptr) { + + } else { + + } + control_.SetAllocated(control, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (control_.IsDefault()) { + control_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.component.inputcontroller.v1.Event.control) } // double value = 4 [json_name = "value"]; inline void Event::clear_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.value_ = 0; + value_ = 0; +} +inline double Event::_internal_value() const { + return value_; } inline double Event::value() const { // @@protoc_insertion_point(field_get:viam.component.inputcontroller.v1.Event.value) return _internal_value(); } +inline void Event::_internal_set_value(double value) { + + value_ = value; +} inline void Event::set_value(double value) { _internal_set_value(value); // @@protoc_insertion_point(field_set:viam.component.inputcontroller.v1.Event.value) } -inline double Event::_internal_value() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.value_; -} -inline void Event::_internal_set_value(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.value_ = value; -} // ------------------------------------------------------------------- @@ -3241,257 +2803,202 @@ inline void Event::_internal_set_value(double value) { // string control = 1 [json_name = "control"]; inline void StreamEventsRequest_Events::clear_control() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.control_.ClearToEmpty(); + control_.ClearToEmpty(); } -inline const std::string& StreamEventsRequest_Events::control() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& StreamEventsRequest_Events::control() const { // @@protoc_insertion_point(field_get:viam.component.inputcontroller.v1.StreamEventsRequest.Events.control) return _internal_control(); } -template -inline PROTOBUF_ALWAYS_INLINE void StreamEventsRequest_Events::set_control(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.control_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void StreamEventsRequest_Events::set_control(ArgT0&& arg0, ArgT... args) { + + control_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.inputcontroller.v1.StreamEventsRequest.Events.control) } -inline std::string* StreamEventsRequest_Events::mutable_control() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* StreamEventsRequest_Events::mutable_control() { std::string* _s = _internal_mutable_control(); // @@protoc_insertion_point(field_mutable:viam.component.inputcontroller.v1.StreamEventsRequest.Events.control) return _s; } inline const std::string& StreamEventsRequest_Events::_internal_control() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.control_.Get(); + return control_.Get(); } inline void StreamEventsRequest_Events::_internal_set_control(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.control_.Set(value, GetArena()); + + control_.Set(value, GetArenaForAllocation()); } inline std::string* StreamEventsRequest_Events::_internal_mutable_control() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.control_.Mutable( GetArena()); + + return control_.Mutable(GetArenaForAllocation()); } inline std::string* StreamEventsRequest_Events::release_control() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.inputcontroller.v1.StreamEventsRequest.Events.control) - return _impl_.control_.Release(); -} -inline void StreamEventsRequest_Events::set_allocated_control(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.control_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.control_.IsDefault()) { - _impl_.control_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return control_.Release(); +} +inline void StreamEventsRequest_Events::set_allocated_control(std::string* control) { + if (control != nullptr) { + + } else { + + } + control_.SetAllocated(control, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (control_.IsDefault()) { + control_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.component.inputcontroller.v1.StreamEventsRequest.Events.control) } // repeated string events = 2 [json_name = "events"]; inline int StreamEventsRequest_Events::_internal_events_size() const { - return _internal_events().size(); + return events_.size(); } inline int StreamEventsRequest_Events::events_size() const { return _internal_events_size(); } inline void StreamEventsRequest_Events::clear_events() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.events_.Clear(); + events_.Clear(); } -inline std::string* StreamEventsRequest_Events::add_events() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_events()->Add(); +inline std::string* StreamEventsRequest_Events::add_events() { + std::string* _s = _internal_add_events(); // @@protoc_insertion_point(field_add_mutable:viam.component.inputcontroller.v1.StreamEventsRequest.Events.events) return _s; } -inline const std::string& StreamEventsRequest_Events::events(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& StreamEventsRequest_Events::_internal_events(int index) const { + return events_.Get(index); +} +inline const std::string& StreamEventsRequest_Events::events(int index) const { // @@protoc_insertion_point(field_get:viam.component.inputcontroller.v1.StreamEventsRequest.Events.events) - return _internal_events().Get(index); + return _internal_events(index); } -inline std::string* StreamEventsRequest_Events::mutable_events(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* StreamEventsRequest_Events::mutable_events(int index) { // @@protoc_insertion_point(field_mutable:viam.component.inputcontroller.v1.StreamEventsRequest.Events.events) - return _internal_mutable_events()->Mutable(index); + return events_.Mutable(index); } inline void StreamEventsRequest_Events::set_events(int index, const std::string& value) { - _internal_mutable_events()->Mutable(index)->assign(value); + events_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set:viam.component.inputcontroller.v1.StreamEventsRequest.Events.events) } inline void StreamEventsRequest_Events::set_events(int index, std::string&& value) { - _internal_mutable_events()->Mutable(index)->assign(std::move(value)); + events_.Mutable(index)->assign(std::move(value)); // @@protoc_insertion_point(field_set:viam.component.inputcontroller.v1.StreamEventsRequest.Events.events) } inline void StreamEventsRequest_Events::set_events(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_events()->Mutable(index)->assign(value); + GOOGLE_DCHECK(value != nullptr); + events_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:viam.component.inputcontroller.v1.StreamEventsRequest.Events.events) } -inline void StreamEventsRequest_Events::set_events(int index, const char* value, - std::size_t size) { - _internal_mutable_events()->Mutable(index)->assign( - reinterpret_cast(value), size); +inline void StreamEventsRequest_Events::set_events(int index, const char* value, size_t size) { + events_.Mutable(index)->assign( + reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:viam.component.inputcontroller.v1.StreamEventsRequest.Events.events) } -inline void StreamEventsRequest_Events::set_events(int index, absl::string_view value) { - _internal_mutable_events()->Mutable(index)->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_set_string_piece:viam.component.inputcontroller.v1.StreamEventsRequest.Events.events) +inline std::string* StreamEventsRequest_Events::_internal_add_events() { + return events_.Add(); } inline void StreamEventsRequest_Events::add_events(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_events()->Add()->assign(value); + events_.Add()->assign(value); // @@protoc_insertion_point(field_add:viam.component.inputcontroller.v1.StreamEventsRequest.Events.events) } inline void StreamEventsRequest_Events::add_events(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_events()->Add(std::move(value)); + events_.Add(std::move(value)); // @@protoc_insertion_point(field_add:viam.component.inputcontroller.v1.StreamEventsRequest.Events.events) } inline void StreamEventsRequest_Events::add_events(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_events()->Add()->assign(value); + GOOGLE_DCHECK(value != nullptr); + events_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:viam.component.inputcontroller.v1.StreamEventsRequest.Events.events) } -inline void StreamEventsRequest_Events::add_events(const char* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_events()->Add()->assign( - reinterpret_cast(value), size); +inline void StreamEventsRequest_Events::add_events(const char* value, size_t size) { + events_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:viam.component.inputcontroller.v1.StreamEventsRequest.Events.events) } -inline void StreamEventsRequest_Events::add_events(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_events()->Add()->assign(value.data(), value.size()); - // @@protoc_insertion_point(field_add_string_piece:viam.component.inputcontroller.v1.StreamEventsRequest.Events.events) -} -inline const ::google::protobuf::RepeatedPtrField& -StreamEventsRequest_Events::events() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +StreamEventsRequest_Events::events() const { // @@protoc_insertion_point(field_list:viam.component.inputcontroller.v1.StreamEventsRequest.Events.events) - return _internal_events(); + return events_; } -inline ::google::protobuf::RepeatedPtrField* -StreamEventsRequest_Events::mutable_events() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +StreamEventsRequest_Events::mutable_events() { // @@protoc_insertion_point(field_mutable_list:viam.component.inputcontroller.v1.StreamEventsRequest.Events.events) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_events(); -} -inline const ::google::protobuf::RepeatedPtrField& -StreamEventsRequest_Events::_internal_events() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.events_; -} -inline ::google::protobuf::RepeatedPtrField* -StreamEventsRequest_Events::_internal_mutable_events() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.events_; + return &events_; } // repeated string cancelled_events = 3 [json_name = "cancelledEvents"]; inline int StreamEventsRequest_Events::_internal_cancelled_events_size() const { - return _internal_cancelled_events().size(); + return cancelled_events_.size(); } inline int StreamEventsRequest_Events::cancelled_events_size() const { return _internal_cancelled_events_size(); } inline void StreamEventsRequest_Events::clear_cancelled_events() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.cancelled_events_.Clear(); + cancelled_events_.Clear(); } -inline std::string* StreamEventsRequest_Events::add_cancelled_events() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_cancelled_events()->Add(); +inline std::string* StreamEventsRequest_Events::add_cancelled_events() { + std::string* _s = _internal_add_cancelled_events(); // @@protoc_insertion_point(field_add_mutable:viam.component.inputcontroller.v1.StreamEventsRequest.Events.cancelled_events) return _s; } -inline const std::string& StreamEventsRequest_Events::cancelled_events(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& StreamEventsRequest_Events::_internal_cancelled_events(int index) const { + return cancelled_events_.Get(index); +} +inline const std::string& StreamEventsRequest_Events::cancelled_events(int index) const { // @@protoc_insertion_point(field_get:viam.component.inputcontroller.v1.StreamEventsRequest.Events.cancelled_events) - return _internal_cancelled_events().Get(index); + return _internal_cancelled_events(index); } -inline std::string* StreamEventsRequest_Events::mutable_cancelled_events(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* StreamEventsRequest_Events::mutable_cancelled_events(int index) { // @@protoc_insertion_point(field_mutable:viam.component.inputcontroller.v1.StreamEventsRequest.Events.cancelled_events) - return _internal_mutable_cancelled_events()->Mutable(index); + return cancelled_events_.Mutable(index); } inline void StreamEventsRequest_Events::set_cancelled_events(int index, const std::string& value) { - _internal_mutable_cancelled_events()->Mutable(index)->assign(value); + cancelled_events_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set:viam.component.inputcontroller.v1.StreamEventsRequest.Events.cancelled_events) } inline void StreamEventsRequest_Events::set_cancelled_events(int index, std::string&& value) { - _internal_mutable_cancelled_events()->Mutable(index)->assign(std::move(value)); + cancelled_events_.Mutable(index)->assign(std::move(value)); // @@protoc_insertion_point(field_set:viam.component.inputcontroller.v1.StreamEventsRequest.Events.cancelled_events) } inline void StreamEventsRequest_Events::set_cancelled_events(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_cancelled_events()->Mutable(index)->assign(value); + GOOGLE_DCHECK(value != nullptr); + cancelled_events_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:viam.component.inputcontroller.v1.StreamEventsRequest.Events.cancelled_events) } -inline void StreamEventsRequest_Events::set_cancelled_events(int index, const char* value, - std::size_t size) { - _internal_mutable_cancelled_events()->Mutable(index)->assign( - reinterpret_cast(value), size); +inline void StreamEventsRequest_Events::set_cancelled_events(int index, const char* value, size_t size) { + cancelled_events_.Mutable(index)->assign( + reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:viam.component.inputcontroller.v1.StreamEventsRequest.Events.cancelled_events) } -inline void StreamEventsRequest_Events::set_cancelled_events(int index, absl::string_view value) { - _internal_mutable_cancelled_events()->Mutable(index)->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_set_string_piece:viam.component.inputcontroller.v1.StreamEventsRequest.Events.cancelled_events) +inline std::string* StreamEventsRequest_Events::_internal_add_cancelled_events() { + return cancelled_events_.Add(); } inline void StreamEventsRequest_Events::add_cancelled_events(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_cancelled_events()->Add()->assign(value); + cancelled_events_.Add()->assign(value); // @@protoc_insertion_point(field_add:viam.component.inputcontroller.v1.StreamEventsRequest.Events.cancelled_events) } inline void StreamEventsRequest_Events::add_cancelled_events(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_cancelled_events()->Add(std::move(value)); + cancelled_events_.Add(std::move(value)); // @@protoc_insertion_point(field_add:viam.component.inputcontroller.v1.StreamEventsRequest.Events.cancelled_events) } inline void StreamEventsRequest_Events::add_cancelled_events(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_cancelled_events()->Add()->assign(value); + GOOGLE_DCHECK(value != nullptr); + cancelled_events_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:viam.component.inputcontroller.v1.StreamEventsRequest.Events.cancelled_events) } -inline void StreamEventsRequest_Events::add_cancelled_events(const char* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_cancelled_events()->Add()->assign( - reinterpret_cast(value), size); +inline void StreamEventsRequest_Events::add_cancelled_events(const char* value, size_t size) { + cancelled_events_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:viam.component.inputcontroller.v1.StreamEventsRequest.Events.cancelled_events) } -inline void StreamEventsRequest_Events::add_cancelled_events(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_cancelled_events()->Add()->assign(value.data(), value.size()); - // @@protoc_insertion_point(field_add_string_piece:viam.component.inputcontroller.v1.StreamEventsRequest.Events.cancelled_events) -} -inline const ::google::protobuf::RepeatedPtrField& -StreamEventsRequest_Events::cancelled_events() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +StreamEventsRequest_Events::cancelled_events() const { // @@protoc_insertion_point(field_list:viam.component.inputcontroller.v1.StreamEventsRequest.Events.cancelled_events) - return _internal_cancelled_events(); + return cancelled_events_; } -inline ::google::protobuf::RepeatedPtrField* -StreamEventsRequest_Events::mutable_cancelled_events() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +StreamEventsRequest_Events::mutable_cancelled_events() { // @@protoc_insertion_point(field_mutable_list:viam.component.inputcontroller.v1.StreamEventsRequest.Events.cancelled_events) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_cancelled_events(); -} -inline const ::google::protobuf::RepeatedPtrField& -StreamEventsRequest_Events::_internal_cancelled_events() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.cancelled_events_; -} -inline ::google::protobuf::RepeatedPtrField* -StreamEventsRequest_Events::_internal_mutable_cancelled_events() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.cancelled_events_; + return &cancelled_events_; } // ------------------------------------------------------------------- @@ -3500,194 +3007,176 @@ StreamEventsRequest_Events::_internal_mutable_cancelled_events() { // string controller = 1 [json_name = "controller"]; inline void StreamEventsRequest::clear_controller() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.controller_.ClearToEmpty(); + controller_.ClearToEmpty(); } -inline const std::string& StreamEventsRequest::controller() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& StreamEventsRequest::controller() const { // @@protoc_insertion_point(field_get:viam.component.inputcontroller.v1.StreamEventsRequest.controller) return _internal_controller(); } -template -inline PROTOBUF_ALWAYS_INLINE void StreamEventsRequest::set_controller(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.controller_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void StreamEventsRequest::set_controller(ArgT0&& arg0, ArgT... args) { + + controller_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.inputcontroller.v1.StreamEventsRequest.controller) } -inline std::string* StreamEventsRequest::mutable_controller() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* StreamEventsRequest::mutable_controller() { std::string* _s = _internal_mutable_controller(); // @@protoc_insertion_point(field_mutable:viam.component.inputcontroller.v1.StreamEventsRequest.controller) return _s; } inline const std::string& StreamEventsRequest::_internal_controller() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.controller_.Get(); + return controller_.Get(); } inline void StreamEventsRequest::_internal_set_controller(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.controller_.Set(value, GetArena()); + + controller_.Set(value, GetArenaForAllocation()); } inline std::string* StreamEventsRequest::_internal_mutable_controller() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.controller_.Mutable( GetArena()); + + return controller_.Mutable(GetArenaForAllocation()); } inline std::string* StreamEventsRequest::release_controller() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.inputcontroller.v1.StreamEventsRequest.controller) - return _impl_.controller_.Release(); -} -inline void StreamEventsRequest::set_allocated_controller(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.controller_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.controller_.IsDefault()) { - _impl_.controller_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return controller_.Release(); +} +inline void StreamEventsRequest::set_allocated_controller(std::string* controller) { + if (controller != nullptr) { + + } else { + + } + controller_.SetAllocated(controller, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (controller_.IsDefault()) { + controller_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.component.inputcontroller.v1.StreamEventsRequest.controller) } // repeated .viam.component.inputcontroller.v1.StreamEventsRequest.Events events = 2 [json_name = "events"]; inline int StreamEventsRequest::_internal_events_size() const { - return _internal_events().size(); + return events_.size(); } inline int StreamEventsRequest::events_size() const { return _internal_events_size(); } inline void StreamEventsRequest::clear_events() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.events_.Clear(); + events_.Clear(); } -inline ::viam::component::inputcontroller::v1::StreamEventsRequest_Events* StreamEventsRequest::mutable_events(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::component::inputcontroller::v1::StreamEventsRequest_Events* StreamEventsRequest::mutable_events(int index) { // @@protoc_insertion_point(field_mutable:viam.component.inputcontroller.v1.StreamEventsRequest.events) - return _internal_mutable_events()->Mutable(index); + return events_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::component::inputcontroller::v1::StreamEventsRequest_Events>* StreamEventsRequest::mutable_events() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::inputcontroller::v1::StreamEventsRequest_Events >* +StreamEventsRequest::mutable_events() { // @@protoc_insertion_point(field_mutable_list:viam.component.inputcontroller.v1.StreamEventsRequest.events) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_events(); + return &events_; } -inline const ::viam::component::inputcontroller::v1::StreamEventsRequest_Events& StreamEventsRequest::events(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::component::inputcontroller::v1::StreamEventsRequest_Events& StreamEventsRequest::_internal_events(int index) const { + return events_.Get(index); +} +inline const ::viam::component::inputcontroller::v1::StreamEventsRequest_Events& StreamEventsRequest::events(int index) const { // @@protoc_insertion_point(field_get:viam.component.inputcontroller.v1.StreamEventsRequest.events) - return _internal_events().Get(index); + return _internal_events(index); +} +inline ::viam::component::inputcontroller::v1::StreamEventsRequest_Events* StreamEventsRequest::_internal_add_events() { + return events_.Add(); } -inline ::viam::component::inputcontroller::v1::StreamEventsRequest_Events* StreamEventsRequest::add_events() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::component::inputcontroller::v1::StreamEventsRequest_Events* _add = _internal_mutable_events()->Add(); +inline ::viam::component::inputcontroller::v1::StreamEventsRequest_Events* StreamEventsRequest::add_events() { + ::viam::component::inputcontroller::v1::StreamEventsRequest_Events* _add = _internal_add_events(); // @@protoc_insertion_point(field_add:viam.component.inputcontroller.v1.StreamEventsRequest.events) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::component::inputcontroller::v1::StreamEventsRequest_Events>& StreamEventsRequest::events() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::inputcontroller::v1::StreamEventsRequest_Events >& +StreamEventsRequest::events() const { // @@protoc_insertion_point(field_list:viam.component.inputcontroller.v1.StreamEventsRequest.events) - return _internal_events(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::component::inputcontroller::v1::StreamEventsRequest_Events>& -StreamEventsRequest::_internal_events() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.events_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::component::inputcontroller::v1::StreamEventsRequest_Events>* -StreamEventsRequest::_internal_mutable_events() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.events_; + return events_; } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool StreamEventsRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool StreamEventsRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& StreamEventsRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& StreamEventsRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& StreamEventsRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& StreamEventsRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.inputcontroller.v1.StreamEventsRequest.extra) return _internal_extra(); } -inline void StreamEventsRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void StreamEventsRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.inputcontroller.v1.StreamEventsRequest.extra) } -inline ::google::protobuf::Struct* StreamEventsRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* StreamEventsRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* StreamEventsRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* StreamEventsRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.inputcontroller.v1.StreamEventsRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* StreamEventsRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* StreamEventsRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* StreamEventsRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* StreamEventsRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.inputcontroller.v1.StreamEventsRequest.extra) return _msg; } -inline void StreamEventsRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void StreamEventsRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.inputcontroller.v1.StreamEventsRequest.extra) } @@ -3696,98 +3185,92 @@ inline void StreamEventsRequest::set_allocated_extra(::google::protobuf::Struct* // StreamEventsResponse // .viam.component.inputcontroller.v1.Event event = 1 [json_name = "event"]; +inline bool StreamEventsResponse::_internal_has_event() const { + return this != internal_default_instance() && event_ != nullptr; +} inline bool StreamEventsResponse::has_event() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.event_ != nullptr); - return value; + return _internal_has_event(); } inline void StreamEventsResponse::clear_event() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.event_ != nullptr) _impl_.event_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && event_ != nullptr) { + delete event_; + } + event_ = nullptr; } inline const ::viam::component::inputcontroller::v1::Event& StreamEventsResponse::_internal_event() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::component::inputcontroller::v1::Event* p = _impl_.event_; - return p != nullptr ? *p : reinterpret_cast(::viam::component::inputcontroller::v1::_Event_default_instance_); + const ::viam::component::inputcontroller::v1::Event* p = event_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::component::inputcontroller::v1::_Event_default_instance_); } -inline const ::viam::component::inputcontroller::v1::Event& StreamEventsResponse::event() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::component::inputcontroller::v1::Event& StreamEventsResponse::event() const { // @@protoc_insertion_point(field_get:viam.component.inputcontroller.v1.StreamEventsResponse.event) return _internal_event(); } -inline void StreamEventsResponse::unsafe_arena_set_allocated_event(::viam::component::inputcontroller::v1::Event* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.event_); +inline void StreamEventsResponse::unsafe_arena_set_allocated_event( + ::viam::component::inputcontroller::v1::Event* event) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(event_); } - _impl_.event_ = reinterpret_cast<::viam::component::inputcontroller::v1::Event*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + event_ = event; + if (event) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.inputcontroller.v1.StreamEventsResponse.event) } inline ::viam::component::inputcontroller::v1::Event* StreamEventsResponse::release_event() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::component::inputcontroller::v1::Event* released = _impl_.event_; - _impl_.event_ = nullptr; + + ::viam::component::inputcontroller::v1::Event* temp = event_; + event_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::component::inputcontroller::v1::Event* StreamEventsResponse::unsafe_arena_release_event() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.inputcontroller.v1.StreamEventsResponse.event) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::component::inputcontroller::v1::Event* temp = _impl_.event_; - _impl_.event_ = nullptr; + + ::viam::component::inputcontroller::v1::Event* temp = event_; + event_ = nullptr; return temp; } inline ::viam::component::inputcontroller::v1::Event* StreamEventsResponse::_internal_mutable_event() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.event_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::component::inputcontroller::v1::Event>(GetArena()); - _impl_.event_ = reinterpret_cast<::viam::component::inputcontroller::v1::Event*>(p); + + if (event_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::component::inputcontroller::v1::Event>(GetArenaForAllocation()); + event_ = p; } - return _impl_.event_; + return event_; } -inline ::viam::component::inputcontroller::v1::Event* StreamEventsResponse::mutable_event() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::component::inputcontroller::v1::Event* StreamEventsResponse::mutable_event() { ::viam::component::inputcontroller::v1::Event* _msg = _internal_mutable_event(); // @@protoc_insertion_point(field_mutable:viam.component.inputcontroller.v1.StreamEventsResponse.event) return _msg; } -inline void StreamEventsResponse::set_allocated_event(::viam::component::inputcontroller::v1::Event* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void StreamEventsResponse::set_allocated_event(::viam::component::inputcontroller::v1::Event* event) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::component::inputcontroller::v1::Event*>(_impl_.event_); + delete event_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::component::inputcontroller::v1::Event*>(value)->GetArena(); + if (event) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(event); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + event = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, event, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.event_ = reinterpret_cast<::viam::component::inputcontroller::v1::Event*>(value); + event_ = event; // @@protoc_insertion_point(field_set_allocated:viam.component.inputcontroller.v1.StreamEventsResponse.event) } @@ -3797,66 +3280,76 @@ inline void StreamEventsResponse::set_allocated_event(::viam::component::inputco // repeated .viam.component.inputcontroller.v1.Event events = 1 [json_name = "events"]; inline int Status::_internal_events_size() const { - return _internal_events().size(); + return events_.size(); } inline int Status::events_size() const { return _internal_events_size(); } inline void Status::clear_events() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.events_.Clear(); + events_.Clear(); } -inline ::viam::component::inputcontroller::v1::Event* Status::mutable_events(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::component::inputcontroller::v1::Event* Status::mutable_events(int index) { // @@protoc_insertion_point(field_mutable:viam.component.inputcontroller.v1.Status.events) - return _internal_mutable_events()->Mutable(index); + return events_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::component::inputcontroller::v1::Event>* Status::mutable_events() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::inputcontroller::v1::Event >* +Status::mutable_events() { // @@protoc_insertion_point(field_mutable_list:viam.component.inputcontroller.v1.Status.events) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_events(); + return &events_; +} +inline const ::viam::component::inputcontroller::v1::Event& Status::_internal_events(int index) const { + return events_.Get(index); } -inline const ::viam::component::inputcontroller::v1::Event& Status::events(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::component::inputcontroller::v1::Event& Status::events(int index) const { // @@protoc_insertion_point(field_get:viam.component.inputcontroller.v1.Status.events) - return _internal_events().Get(index); + return _internal_events(index); } -inline ::viam::component::inputcontroller::v1::Event* Status::add_events() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::component::inputcontroller::v1::Event* _add = _internal_mutable_events()->Add(); +inline ::viam::component::inputcontroller::v1::Event* Status::_internal_add_events() { + return events_.Add(); +} +inline ::viam::component::inputcontroller::v1::Event* Status::add_events() { + ::viam::component::inputcontroller::v1::Event* _add = _internal_add_events(); // @@protoc_insertion_point(field_add:viam.component.inputcontroller.v1.Status.events) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::component::inputcontroller::v1::Event>& Status::events() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::component::inputcontroller::v1::Event >& +Status::events() const { // @@protoc_insertion_point(field_list:viam.component.inputcontroller.v1.Status.events) - return _internal_events(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::component::inputcontroller::v1::Event>& -Status::_internal_events() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.events_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::component::inputcontroller::v1::Event>* -Status::_internal_mutable_events() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.events_; + return events_; } #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) + } // namespace v1 } // namespace inputcontroller } // namespace component } // namespace viam - // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_component_2finputcontroller_2fv1_2finput_5fcontroller_2eproto diff --git a/src/viam/api/component/motor/v1/motor.grpc.pb.cc b/src/viam/api/component/motor/v1/motor.grpc.pb.cc index 5b54e4964..a7ae80e4d 100644 --- a/src/viam/api/component/motor/v1/motor.grpc.pb.cc +++ b/src/viam/api/component/motor/v1/motor.grpc.pb.cc @@ -6,19 +6,19 @@ #include "component/motor/v1/motor.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace component { namespace motor { @@ -41,308 +41,368 @@ static const char* MotorService_method_names[] = { std::unique_ptr< MotorService::Stub> MotorService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { (void)options; - std::unique_ptr< MotorService::Stub> stub(new MotorService::Stub(channel, options)); + std::unique_ptr< MotorService::Stub> stub(new MotorService::Stub(channel)); return stub; } -MotorService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) - : channel_(channel), rpcmethod_SetPower_(MotorService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GoFor_(MotorService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GoTo_(MotorService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_SetRPM_(MotorService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_ResetZeroPosition_(MotorService_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetPosition_(MotorService_method_names[5], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetProperties_(MotorService_method_names[6], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_Stop_(MotorService_method_names[7], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_IsPowered_(MotorService_method_names[8], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_IsMoving_(MotorService_method_names[9], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_DoCommand_(MotorService_method_names[10], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetGeometries_(MotorService_method_names[11], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) +MotorService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_SetPower_(MotorService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GoFor_(MotorService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GoTo_(MotorService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_SetRPM_(MotorService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ResetZeroPosition_(MotorService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetPosition_(MotorService_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetProperties_(MotorService_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_Stop_(MotorService_method_names[7], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_IsPowered_(MotorService_method_names[8], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_IsMoving_(MotorService_method_names[9], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DoCommand_(MotorService_method_names[10], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetGeometries_(MotorService_method_names[11], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status MotorService::Stub::SetPower(::grpc::ClientContext* context, const ::viam::component::motor::v1::SetPowerRequest& request, ::viam::component::motor::v1::SetPowerResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::motor::v1::SetPowerRequest, ::viam::component::motor::v1::SetPowerResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_SetPower_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_SetPower_, context, request, response); } -void MotorService::Stub::async::SetPower(::grpc::ClientContext* context, const ::viam::component::motor::v1::SetPowerRequest* request, ::viam::component::motor::v1::SetPowerResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::motor::v1::SetPowerRequest, ::viam::component::motor::v1::SetPowerResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SetPower_, context, request, response, std::move(f)); +void MotorService::Stub::experimental_async::SetPower(::grpc::ClientContext* context, const ::viam::component::motor::v1::SetPowerRequest* request, ::viam::component::motor::v1::SetPowerResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SetPower_, context, request, response, std::move(f)); } -void MotorService::Stub::async::SetPower(::grpc::ClientContext* context, const ::viam::component::motor::v1::SetPowerRequest* request, ::viam::component::motor::v1::SetPowerResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SetPower_, context, request, response, reactor); +void MotorService::Stub::experimental_async::SetPower(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::SetPowerResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SetPower_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::SetPowerResponse>* MotorService::Stub::PrepareAsyncSetPowerRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::SetPowerRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::motor::v1::SetPowerResponse, ::viam::component::motor::v1::SetPowerRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_SetPower_, context, request); +void MotorService::Stub::experimental_async::SetPower(::grpc::ClientContext* context, const ::viam::component::motor::v1::SetPowerRequest* request, ::viam::component::motor::v1::SetPowerResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SetPower_, context, request, response, reactor); +} + +void MotorService::Stub::experimental_async::SetPower(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::SetPowerResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SetPower_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::SetPowerResponse>* MotorService::Stub::AsyncSetPowerRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::SetPowerRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncSetPowerRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::motor::v1::SetPowerResponse>::Create(channel_.get(), cq, rpcmethod_SetPower_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::SetPowerResponse>* MotorService::Stub::PrepareAsyncSetPowerRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::SetPowerRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::motor::v1::SetPowerResponse>::Create(channel_.get(), cq, rpcmethod_SetPower_, context, request, false); } ::grpc::Status MotorService::Stub::GoFor(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoForRequest& request, ::viam::component::motor::v1::GoForResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::motor::v1::GoForRequest, ::viam::component::motor::v1::GoForResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GoFor_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GoFor_, context, request, response); } -void MotorService::Stub::async::GoFor(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoForRequest* request, ::viam::component::motor::v1::GoForResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::motor::v1::GoForRequest, ::viam::component::motor::v1::GoForResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GoFor_, context, request, response, std::move(f)); +void MotorService::Stub::experimental_async::GoFor(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoForRequest* request, ::viam::component::motor::v1::GoForResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GoFor_, context, request, response, std::move(f)); } -void MotorService::Stub::async::GoFor(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoForRequest* request, ::viam::component::motor::v1::GoForResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GoFor_, context, request, response, reactor); +void MotorService::Stub::experimental_async::GoFor(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::GoForResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GoFor_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::GoForResponse>* MotorService::Stub::PrepareAsyncGoForRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoForRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::motor::v1::GoForResponse, ::viam::component::motor::v1::GoForRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GoFor_, context, request); +void MotorService::Stub::experimental_async::GoFor(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoForRequest* request, ::viam::component::motor::v1::GoForResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GoFor_, context, request, response, reactor); +} + +void MotorService::Stub::experimental_async::GoFor(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::GoForResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GoFor_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::GoForResponse>* MotorService::Stub::AsyncGoForRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoForRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGoForRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::motor::v1::GoForResponse>::Create(channel_.get(), cq, rpcmethod_GoFor_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::GoForResponse>* MotorService::Stub::PrepareAsyncGoForRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoForRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::motor::v1::GoForResponse>::Create(channel_.get(), cq, rpcmethod_GoFor_, context, request, false); } ::grpc::Status MotorService::Stub::GoTo(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoToRequest& request, ::viam::component::motor::v1::GoToResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::motor::v1::GoToRequest, ::viam::component::motor::v1::GoToResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GoTo_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GoTo_, context, request, response); } -void MotorService::Stub::async::GoTo(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoToRequest* request, ::viam::component::motor::v1::GoToResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::motor::v1::GoToRequest, ::viam::component::motor::v1::GoToResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GoTo_, context, request, response, std::move(f)); +void MotorService::Stub::experimental_async::GoTo(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoToRequest* request, ::viam::component::motor::v1::GoToResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GoTo_, context, request, response, std::move(f)); } -void MotorService::Stub::async::GoTo(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoToRequest* request, ::viam::component::motor::v1::GoToResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GoTo_, context, request, response, reactor); +void MotorService::Stub::experimental_async::GoTo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::GoToResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GoTo_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::GoToResponse>* MotorService::Stub::PrepareAsyncGoToRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoToRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::motor::v1::GoToResponse, ::viam::component::motor::v1::GoToRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GoTo_, context, request); +void MotorService::Stub::experimental_async::GoTo(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoToRequest* request, ::viam::component::motor::v1::GoToResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GoTo_, context, request, response, reactor); +} + +void MotorService::Stub::experimental_async::GoTo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::GoToResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GoTo_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::GoToResponse>* MotorService::Stub::AsyncGoToRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoToRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGoToRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::motor::v1::GoToResponse>::Create(channel_.get(), cq, rpcmethod_GoTo_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::GoToResponse>* MotorService::Stub::PrepareAsyncGoToRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoToRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::motor::v1::GoToResponse>::Create(channel_.get(), cq, rpcmethod_GoTo_, context, request, false); } ::grpc::Status MotorService::Stub::SetRPM(::grpc::ClientContext* context, const ::viam::component::motor::v1::SetRPMRequest& request, ::viam::component::motor::v1::SetRPMResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::motor::v1::SetRPMRequest, ::viam::component::motor::v1::SetRPMResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_SetRPM_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_SetRPM_, context, request, response); } -void MotorService::Stub::async::SetRPM(::grpc::ClientContext* context, const ::viam::component::motor::v1::SetRPMRequest* request, ::viam::component::motor::v1::SetRPMResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::motor::v1::SetRPMRequest, ::viam::component::motor::v1::SetRPMResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SetRPM_, context, request, response, std::move(f)); +void MotorService::Stub::experimental_async::SetRPM(::grpc::ClientContext* context, const ::viam::component::motor::v1::SetRPMRequest* request, ::viam::component::motor::v1::SetRPMResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SetRPM_, context, request, response, std::move(f)); } -void MotorService::Stub::async::SetRPM(::grpc::ClientContext* context, const ::viam::component::motor::v1::SetRPMRequest* request, ::viam::component::motor::v1::SetRPMResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SetRPM_, context, request, response, reactor); +void MotorService::Stub::experimental_async::SetRPM(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::SetRPMResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SetRPM_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::SetRPMResponse>* MotorService::Stub::PrepareAsyncSetRPMRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::SetRPMRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::motor::v1::SetRPMResponse, ::viam::component::motor::v1::SetRPMRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_SetRPM_, context, request); +void MotorService::Stub::experimental_async::SetRPM(::grpc::ClientContext* context, const ::viam::component::motor::v1::SetRPMRequest* request, ::viam::component::motor::v1::SetRPMResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SetRPM_, context, request, response, reactor); +} + +void MotorService::Stub::experimental_async::SetRPM(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::SetRPMResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SetRPM_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::SetRPMResponse>* MotorService::Stub::AsyncSetRPMRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::SetRPMRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncSetRPMRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::motor::v1::SetRPMResponse>::Create(channel_.get(), cq, rpcmethod_SetRPM_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::SetRPMResponse>* MotorService::Stub::PrepareAsyncSetRPMRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::SetRPMRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::motor::v1::SetRPMResponse>::Create(channel_.get(), cq, rpcmethod_SetRPM_, context, request, false); } ::grpc::Status MotorService::Stub::ResetZeroPosition(::grpc::ClientContext* context, const ::viam::component::motor::v1::ResetZeroPositionRequest& request, ::viam::component::motor::v1::ResetZeroPositionResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::motor::v1::ResetZeroPositionRequest, ::viam::component::motor::v1::ResetZeroPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ResetZeroPosition_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ResetZeroPosition_, context, request, response); } -void MotorService::Stub::async::ResetZeroPosition(::grpc::ClientContext* context, const ::viam::component::motor::v1::ResetZeroPositionRequest* request, ::viam::component::motor::v1::ResetZeroPositionResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::motor::v1::ResetZeroPositionRequest, ::viam::component::motor::v1::ResetZeroPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ResetZeroPosition_, context, request, response, std::move(f)); +void MotorService::Stub::experimental_async::ResetZeroPosition(::grpc::ClientContext* context, const ::viam::component::motor::v1::ResetZeroPositionRequest* request, ::viam::component::motor::v1::ResetZeroPositionResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ResetZeroPosition_, context, request, response, std::move(f)); } -void MotorService::Stub::async::ResetZeroPosition(::grpc::ClientContext* context, const ::viam::component::motor::v1::ResetZeroPositionRequest* request, ::viam::component::motor::v1::ResetZeroPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ResetZeroPosition_, context, request, response, reactor); +void MotorService::Stub::experimental_async::ResetZeroPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::ResetZeroPositionResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ResetZeroPosition_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::ResetZeroPositionResponse>* MotorService::Stub::PrepareAsyncResetZeroPositionRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::ResetZeroPositionRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::motor::v1::ResetZeroPositionResponse, ::viam::component::motor::v1::ResetZeroPositionRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ResetZeroPosition_, context, request); +void MotorService::Stub::experimental_async::ResetZeroPosition(::grpc::ClientContext* context, const ::viam::component::motor::v1::ResetZeroPositionRequest* request, ::viam::component::motor::v1::ResetZeroPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ResetZeroPosition_, context, request, response, reactor); +} + +void MotorService::Stub::experimental_async::ResetZeroPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::ResetZeroPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ResetZeroPosition_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::ResetZeroPositionResponse>* MotorService::Stub::AsyncResetZeroPositionRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::ResetZeroPositionRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncResetZeroPositionRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::motor::v1::ResetZeroPositionResponse>::Create(channel_.get(), cq, rpcmethod_ResetZeroPosition_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::ResetZeroPositionResponse>* MotorService::Stub::PrepareAsyncResetZeroPositionRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::ResetZeroPositionRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::motor::v1::ResetZeroPositionResponse>::Create(channel_.get(), cq, rpcmethod_ResetZeroPosition_, context, request, false); } ::grpc::Status MotorService::Stub::GetPosition(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPositionRequest& request, ::viam::component::motor::v1::GetPositionResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::motor::v1::GetPositionRequest, ::viam::component::motor::v1::GetPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetPosition_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetPosition_, context, request, response); } -void MotorService::Stub::async::GetPosition(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPositionRequest* request, ::viam::component::motor::v1::GetPositionResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::motor::v1::GetPositionRequest, ::viam::component::motor::v1::GetPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetPosition_, context, request, response, std::move(f)); +void MotorService::Stub::experimental_async::GetPosition(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPositionRequest* request, ::viam::component::motor::v1::GetPositionResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetPosition_, context, request, response, std::move(f)); } -void MotorService::Stub::async::GetPosition(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPositionRequest* request, ::viam::component::motor::v1::GetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetPosition_, context, request, response, reactor); +void MotorService::Stub::experimental_async::GetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::GetPositionResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetPosition_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::GetPositionResponse>* MotorService::Stub::PrepareAsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::motor::v1::GetPositionResponse, ::viam::component::motor::v1::GetPositionRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetPosition_, context, request); +void MotorService::Stub::experimental_async::GetPosition(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPositionRequest* request, ::viam::component::motor::v1::GetPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetPosition_, context, request, response, reactor); +} + +void MotorService::Stub::experimental_async::GetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::GetPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetPosition_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::GetPositionResponse>* MotorService::Stub::AsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetPositionRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::motor::v1::GetPositionResponse>::Create(channel_.get(), cq, rpcmethod_GetPosition_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::GetPositionResponse>* MotorService::Stub::PrepareAsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::motor::v1::GetPositionResponse>::Create(channel_.get(), cq, rpcmethod_GetPosition_, context, request, false); } ::grpc::Status MotorService::Stub::GetProperties(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPropertiesRequest& request, ::viam::component::motor::v1::GetPropertiesResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::motor::v1::GetPropertiesRequest, ::viam::component::motor::v1::GetPropertiesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetProperties_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetProperties_, context, request, response); } -void MotorService::Stub::async::GetProperties(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPropertiesRequest* request, ::viam::component::motor::v1::GetPropertiesResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::motor::v1::GetPropertiesRequest, ::viam::component::motor::v1::GetPropertiesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetProperties_, context, request, response, std::move(f)); +void MotorService::Stub::experimental_async::GetProperties(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPropertiesRequest* request, ::viam::component::motor::v1::GetPropertiesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetProperties_, context, request, response, std::move(f)); } -void MotorService::Stub::async::GetProperties(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPropertiesRequest* request, ::viam::component::motor::v1::GetPropertiesResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetProperties_, context, request, response, reactor); +void MotorService::Stub::experimental_async::GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::GetPropertiesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetProperties_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::GetPropertiesResponse>* MotorService::Stub::PrepareAsyncGetPropertiesRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPropertiesRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::motor::v1::GetPropertiesResponse, ::viam::component::motor::v1::GetPropertiesRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetProperties_, context, request); +void MotorService::Stub::experimental_async::GetProperties(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPropertiesRequest* request, ::viam::component::motor::v1::GetPropertiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetProperties_, context, request, response, reactor); +} + +void MotorService::Stub::experimental_async::GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::GetPropertiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetProperties_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::GetPropertiesResponse>* MotorService::Stub::AsyncGetPropertiesRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPropertiesRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetPropertiesRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::motor::v1::GetPropertiesResponse>::Create(channel_.get(), cq, rpcmethod_GetProperties_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::GetPropertiesResponse>* MotorService::Stub::PrepareAsyncGetPropertiesRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPropertiesRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::motor::v1::GetPropertiesResponse>::Create(channel_.get(), cq, rpcmethod_GetProperties_, context, request, false); } ::grpc::Status MotorService::Stub::Stop(::grpc::ClientContext* context, const ::viam::component::motor::v1::StopRequest& request, ::viam::component::motor::v1::StopResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::motor::v1::StopRequest, ::viam::component::motor::v1::StopResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Stop_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_Stop_, context, request, response); } -void MotorService::Stub::async::Stop(::grpc::ClientContext* context, const ::viam::component::motor::v1::StopRequest* request, ::viam::component::motor::v1::StopResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::motor::v1::StopRequest, ::viam::component::motor::v1::StopResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, std::move(f)); +void MotorService::Stub::experimental_async::Stop(::grpc::ClientContext* context, const ::viam::component::motor::v1::StopRequest* request, ::viam::component::motor::v1::StopResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, std::move(f)); } -void MotorService::Stub::async::Stop(::grpc::ClientContext* context, const ::viam::component::motor::v1::StopRequest* request, ::viam::component::motor::v1::StopResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, reactor); +void MotorService::Stub::experimental_async::Stop(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::StopResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::StopResponse>* MotorService::Stub::PrepareAsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::motor::v1::StopResponse, ::viam::component::motor::v1::StopRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Stop_, context, request); +void MotorService::Stub::experimental_async::Stop(::grpc::ClientContext* context, const ::viam::component::motor::v1::StopRequest* request, ::viam::component::motor::v1::StopResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, reactor); +} + +void MotorService::Stub::experimental_async::Stop(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::StopResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::StopResponse>* MotorService::Stub::AsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncStopRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::motor::v1::StopResponse>::Create(channel_.get(), cq, rpcmethod_Stop_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::StopResponse>* MotorService::Stub::PrepareAsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::motor::v1::StopResponse>::Create(channel_.get(), cq, rpcmethod_Stop_, context, request, false); } ::grpc::Status MotorService::Stub::IsPowered(::grpc::ClientContext* context, const ::viam::component::motor::v1::IsPoweredRequest& request, ::viam::component::motor::v1::IsPoweredResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::motor::v1::IsPoweredRequest, ::viam::component::motor::v1::IsPoweredResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_IsPowered_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_IsPowered_, context, request, response); } -void MotorService::Stub::async::IsPowered(::grpc::ClientContext* context, const ::viam::component::motor::v1::IsPoweredRequest* request, ::viam::component::motor::v1::IsPoweredResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::motor::v1::IsPoweredRequest, ::viam::component::motor::v1::IsPoweredResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_IsPowered_, context, request, response, std::move(f)); +void MotorService::Stub::experimental_async::IsPowered(::grpc::ClientContext* context, const ::viam::component::motor::v1::IsPoweredRequest* request, ::viam::component::motor::v1::IsPoweredResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_IsPowered_, context, request, response, std::move(f)); } -void MotorService::Stub::async::IsPowered(::grpc::ClientContext* context, const ::viam::component::motor::v1::IsPoweredRequest* request, ::viam::component::motor::v1::IsPoweredResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_IsPowered_, context, request, response, reactor); +void MotorService::Stub::experimental_async::IsPowered(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::IsPoweredResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_IsPowered_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::IsPoweredResponse>* MotorService::Stub::PrepareAsyncIsPoweredRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::IsPoweredRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::motor::v1::IsPoweredResponse, ::viam::component::motor::v1::IsPoweredRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_IsPowered_, context, request); +void MotorService::Stub::experimental_async::IsPowered(::grpc::ClientContext* context, const ::viam::component::motor::v1::IsPoweredRequest* request, ::viam::component::motor::v1::IsPoweredResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_IsPowered_, context, request, response, reactor); +} + +void MotorService::Stub::experimental_async::IsPowered(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::IsPoweredResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_IsPowered_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::IsPoweredResponse>* MotorService::Stub::AsyncIsPoweredRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::IsPoweredRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncIsPoweredRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::motor::v1::IsPoweredResponse>::Create(channel_.get(), cq, rpcmethod_IsPowered_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::IsPoweredResponse>* MotorService::Stub::PrepareAsyncIsPoweredRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::IsPoweredRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::motor::v1::IsPoweredResponse>::Create(channel_.get(), cq, rpcmethod_IsPowered_, context, request, false); } ::grpc::Status MotorService::Stub::IsMoving(::grpc::ClientContext* context, const ::viam::component::motor::v1::IsMovingRequest& request, ::viam::component::motor::v1::IsMovingResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::motor::v1::IsMovingRequest, ::viam::component::motor::v1::IsMovingResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_IsMoving_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_IsMoving_, context, request, response); } -void MotorService::Stub::async::IsMoving(::grpc::ClientContext* context, const ::viam::component::motor::v1::IsMovingRequest* request, ::viam::component::motor::v1::IsMovingResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::motor::v1::IsMovingRequest, ::viam::component::motor::v1::IsMovingResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_IsMoving_, context, request, response, std::move(f)); +void MotorService::Stub::experimental_async::IsMoving(::grpc::ClientContext* context, const ::viam::component::motor::v1::IsMovingRequest* request, ::viam::component::motor::v1::IsMovingResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_IsMoving_, context, request, response, std::move(f)); } -void MotorService::Stub::async::IsMoving(::grpc::ClientContext* context, const ::viam::component::motor::v1::IsMovingRequest* request, ::viam::component::motor::v1::IsMovingResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_IsMoving_, context, request, response, reactor); +void MotorService::Stub::experimental_async::IsMoving(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::IsMovingResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_IsMoving_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::IsMovingResponse>* MotorService::Stub::PrepareAsyncIsMovingRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::IsMovingRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::motor::v1::IsMovingResponse, ::viam::component::motor::v1::IsMovingRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_IsMoving_, context, request); +void MotorService::Stub::experimental_async::IsMoving(::grpc::ClientContext* context, const ::viam::component::motor::v1::IsMovingRequest* request, ::viam::component::motor::v1::IsMovingResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_IsMoving_, context, request, response, reactor); +} + +void MotorService::Stub::experimental_async::IsMoving(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::IsMovingResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_IsMoving_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::IsMovingResponse>* MotorService::Stub::AsyncIsMovingRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::IsMovingRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncIsMovingRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::motor::v1::IsMovingResponse>::Create(channel_.get(), cq, rpcmethod_IsMoving_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::IsMovingResponse>* MotorService::Stub::PrepareAsyncIsMovingRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::IsMovingRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::motor::v1::IsMovingResponse>::Create(channel_.get(), cq, rpcmethod_IsMoving_, context, request, false); } ::grpc::Status MotorService::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); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DoCommand_, context, request, response); } -void MotorService::Stub::async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); +void MotorService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); } -void MotorService::Stub::async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); +void MotorService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* MotorService::Stub::PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::common::v1::DoCommandResponse, ::viam::common::v1::DoCommandRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DoCommand_, context, request); +void MotorService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); +} + +void MotorService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* MotorService::Stub::AsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncDoCommandRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::DoCommandResponse>::Create(channel_.get(), cq, rpcmethod_DoCommand_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* MotorService::Stub::PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::DoCommandResponse>::Create(channel_.get(), cq, rpcmethod_DoCommand_, context, request, false); } ::grpc::Status MotorService::Stub::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::viam::common::v1::GetGeometriesResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetGeometries_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetGeometries_, context, request, response); } -void MotorService::Stub::async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, std::move(f)); +void MotorService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, std::move(f)); } -void MotorService::Stub::async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, reactor); +void MotorService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>* MotorService::Stub::PrepareAsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::common::v1::GetGeometriesResponse, ::viam::common::v1::GetGeometriesRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetGeometries_, context, request); +void MotorService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, reactor); +} + +void MotorService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>* MotorService::Stub::AsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetGeometriesRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::GetGeometriesResponse>::Create(channel_.get(), cq, rpcmethod_GetGeometries_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>* MotorService::Stub::PrepareAsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::GetGeometriesResponse>::Create(channel_.get(), cq, rpcmethod_GetGeometries_, context, request, false); } MotorService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( MotorService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< MotorService::Service, ::viam::component::motor::v1::SetPowerRequest, ::viam::component::motor::v1::SetPowerResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< MotorService::Service, ::viam::component::motor::v1::SetPowerRequest, ::viam::component::motor::v1::SetPowerResponse>( [](MotorService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::motor::v1::SetPowerRequest* req, ::viam::component::motor::v1::SetPowerResponse* resp) { return service->SetPower(ctx, req, resp); @@ -350,9 +410,9 @@ MotorService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( MotorService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< MotorService::Service, ::viam::component::motor::v1::GoForRequest, ::viam::component::motor::v1::GoForResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< MotorService::Service, ::viam::component::motor::v1::GoForRequest, ::viam::component::motor::v1::GoForResponse>( [](MotorService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::motor::v1::GoForRequest* req, ::viam::component::motor::v1::GoForResponse* resp) { return service->GoFor(ctx, req, resp); @@ -360,9 +420,9 @@ MotorService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( MotorService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< MotorService::Service, ::viam::component::motor::v1::GoToRequest, ::viam::component::motor::v1::GoToResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< MotorService::Service, ::viam::component::motor::v1::GoToRequest, ::viam::component::motor::v1::GoToResponse>( [](MotorService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::motor::v1::GoToRequest* req, ::viam::component::motor::v1::GoToResponse* resp) { return service->GoTo(ctx, req, resp); @@ -370,9 +430,9 @@ MotorService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( MotorService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< MotorService::Service, ::viam::component::motor::v1::SetRPMRequest, ::viam::component::motor::v1::SetRPMResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< MotorService::Service, ::viam::component::motor::v1::SetRPMRequest, ::viam::component::motor::v1::SetRPMResponse>( [](MotorService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::motor::v1::SetRPMRequest* req, ::viam::component::motor::v1::SetRPMResponse* resp) { return service->SetRPM(ctx, req, resp); @@ -380,9 +440,9 @@ MotorService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( MotorService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< MotorService::Service, ::viam::component::motor::v1::ResetZeroPositionRequest, ::viam::component::motor::v1::ResetZeroPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< MotorService::Service, ::viam::component::motor::v1::ResetZeroPositionRequest, ::viam::component::motor::v1::ResetZeroPositionResponse>( [](MotorService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::motor::v1::ResetZeroPositionRequest* req, ::viam::component::motor::v1::ResetZeroPositionResponse* resp) { return service->ResetZeroPosition(ctx, req, resp); @@ -390,9 +450,9 @@ MotorService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( MotorService_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< MotorService::Service, ::viam::component::motor::v1::GetPositionRequest, ::viam::component::motor::v1::GetPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< MotorService::Service, ::viam::component::motor::v1::GetPositionRequest, ::viam::component::motor::v1::GetPositionResponse>( [](MotorService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::motor::v1::GetPositionRequest* req, ::viam::component::motor::v1::GetPositionResponse* resp) { return service->GetPosition(ctx, req, resp); @@ -400,9 +460,9 @@ MotorService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( MotorService_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< MotorService::Service, ::viam::component::motor::v1::GetPropertiesRequest, ::viam::component::motor::v1::GetPropertiesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< MotorService::Service, ::viam::component::motor::v1::GetPropertiesRequest, ::viam::component::motor::v1::GetPropertiesResponse>( [](MotorService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::motor::v1::GetPropertiesRequest* req, ::viam::component::motor::v1::GetPropertiesResponse* resp) { return service->GetProperties(ctx, req, resp); @@ -410,9 +470,9 @@ MotorService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( MotorService_method_names[7], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< MotorService::Service, ::viam::component::motor::v1::StopRequest, ::viam::component::motor::v1::StopResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< MotorService::Service, ::viam::component::motor::v1::StopRequest, ::viam::component::motor::v1::StopResponse>( [](MotorService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::motor::v1::StopRequest* req, ::viam::component::motor::v1::StopResponse* resp) { return service->Stop(ctx, req, resp); @@ -420,9 +480,9 @@ MotorService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( MotorService_method_names[8], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< MotorService::Service, ::viam::component::motor::v1::IsPoweredRequest, ::viam::component::motor::v1::IsPoweredResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< MotorService::Service, ::viam::component::motor::v1::IsPoweredRequest, ::viam::component::motor::v1::IsPoweredResponse>( [](MotorService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::motor::v1::IsPoweredRequest* req, ::viam::component::motor::v1::IsPoweredResponse* resp) { return service->IsPowered(ctx, req, resp); @@ -430,9 +490,9 @@ MotorService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( MotorService_method_names[9], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< MotorService::Service, ::viam::component::motor::v1::IsMovingRequest, ::viam::component::motor::v1::IsMovingResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< MotorService::Service, ::viam::component::motor::v1::IsMovingRequest, ::viam::component::motor::v1::IsMovingResponse>( [](MotorService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::motor::v1::IsMovingRequest* req, ::viam::component::motor::v1::IsMovingResponse* resp) { return service->IsMoving(ctx, req, resp); @@ -440,9 +500,9 @@ MotorService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( MotorService_method_names[10], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< MotorService::Service, ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< MotorService::Service, ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( [](MotorService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::common::v1::DoCommandRequest* req, ::viam::common::v1::DoCommandResponse* resp) { return service->DoCommand(ctx, req, resp); @@ -450,9 +510,9 @@ MotorService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( MotorService_method_names[11], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< MotorService::Service, ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< MotorService::Service, ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( [](MotorService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::common::v1::GetGeometriesRequest* req, ::viam::common::v1::GetGeometriesResponse* resp) { return service->GetGeometries(ctx, req, resp); diff --git a/src/viam/api/component/motor/v1/motor.grpc.pb.h b/src/viam/api/component/motor/v1/motor.grpc.pb.h index 23fd3118d..b6456cc34 100644 --- a/src/viam/api/component/motor/v1/motor.grpc.pb.h +++ b/src/viam/api/component/motor/v1/motor.grpc.pb.h @@ -7,23 +7,24 @@ #include "component/motor/v1/motor.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace component { @@ -145,60 +146,184 @@ class MotorService 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)); } - class async_interface { + class experimental_async_interface { public: - virtual ~async_interface() {} + virtual ~experimental_async_interface() {} // SetPower sets the percentage of the motor's total power that should be employed // expressed a value between -1 and 1 where negative values indicate a backwards // direction and positive values a forward direction virtual void SetPower(::grpc::ClientContext* context, const ::viam::component::motor::v1::SetPowerRequest* request, ::viam::component::motor::v1::SetPowerResponse* response, std::function) = 0; + virtual void SetPower(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::SetPowerResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void SetPower(::grpc::ClientContext* context, const ::viam::component::motor::v1::SetPowerRequest* request, ::viam::component::motor::v1::SetPowerResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void SetPower(::grpc::ClientContext* context, const ::viam::component::motor::v1::SetPowerRequest* request, ::viam::component::motor::v1::SetPowerResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void SetPower(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::SetPowerResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void SetPower(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::SetPowerResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // GoFor instructs the motor to turn at a specified speed, which is expressed in RPM, // for a specified number of rotations relative to its starting position // This method will return an error if position reporting is not supported // If revolutions != 0, this will block until the number of revolutions has been completed or another operation comes in. // Deprecated: If revolutions is 0, this will run the motor at rpm indefinitely. virtual void GoFor(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoForRequest* request, ::viam::component::motor::v1::GoForResponse* response, std::function) = 0; + virtual void GoFor(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::GoForResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GoFor(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoForRequest* request, ::viam::component::motor::v1::GoForResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GoFor(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoForRequest* request, ::viam::component::motor::v1::GoForResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GoFor(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::GoForResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GoFor(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::GoForResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // GoTo requests the robot's motor to move to a specific position that // is relative to its home position at a specified speed which is expressed in RPM // This method will return an error if position reporting is not supported virtual void GoTo(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoToRequest* request, ::viam::component::motor::v1::GoToResponse* response, std::function) = 0; + virtual void GoTo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::GoToResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GoTo(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoToRequest* request, ::viam::component::motor::v1::GoToResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GoTo(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoToRequest* request, ::viam::component::motor::v1::GoToResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GoTo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::GoToResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GoTo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::GoToResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // SetRPM instructs the motor to move at the specified RPM indefinitely. virtual void SetRPM(::grpc::ClientContext* context, const ::viam::component::motor::v1::SetRPMRequest* request, ::viam::component::motor::v1::SetRPMResponse* response, std::function) = 0; + virtual void SetRPM(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::SetRPMResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void SetRPM(::grpc::ClientContext* context, const ::viam::component::motor::v1::SetRPMRequest* request, ::viam::component::motor::v1::SetRPMResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void SetRPM(::grpc::ClientContext* context, const ::viam::component::motor::v1::SetRPMRequest* request, ::viam::component::motor::v1::SetRPMResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void SetRPM(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::SetRPMResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void SetRPM(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::SetRPMResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // ResetZeroPosition sets the current position of the motor as the new zero position // This method will return an error if position reporting is not supported virtual void ResetZeroPosition(::grpc::ClientContext* context, const ::viam::component::motor::v1::ResetZeroPositionRequest* request, ::viam::component::motor::v1::ResetZeroPositionResponse* response, std::function) = 0; + virtual void ResetZeroPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::ResetZeroPositionResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void ResetZeroPosition(::grpc::ClientContext* context, const ::viam::component::motor::v1::ResetZeroPositionRequest* request, ::viam::component::motor::v1::ResetZeroPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ResetZeroPosition(::grpc::ClientContext* context, const ::viam::component::motor::v1::ResetZeroPositionRequest* request, ::viam::component::motor::v1::ResetZeroPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void ResetZeroPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::ResetZeroPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ResetZeroPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::ResetZeroPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Position reports the position of the robot's motor relative to its zero position // This method will return an error if position reporting is not supported virtual void GetPosition(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPositionRequest* request, ::viam::component::motor::v1::GetPositionResponse* response, std::function) = 0; + virtual void GetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::GetPositionResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetPosition(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPositionRequest* request, ::viam::component::motor::v1::GetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetPosition(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPositionRequest* request, ::viam::component::motor::v1::GetPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::GetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::GetPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // GetProperties returns a message of booleans indicating which optional features the robot's motor supports virtual void GetProperties(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPropertiesRequest* request, ::viam::component::motor::v1::GetPropertiesResponse* response, std::function) = 0; + virtual void GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::GetPropertiesResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetProperties(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPropertiesRequest* request, ::viam::component::motor::v1::GetPropertiesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetProperties(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPropertiesRequest* request, ::viam::component::motor::v1::GetPropertiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::GetPropertiesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::GetPropertiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Stop turns the robot's motor off virtual void Stop(::grpc::ClientContext* context, const ::viam::component::motor::v1::StopRequest* request, ::viam::component::motor::v1::StopResponse* response, std::function) = 0; + virtual void Stop(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::StopResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void Stop(::grpc::ClientContext* context, const ::viam::component::motor::v1::StopRequest* request, ::viam::component::motor::v1::StopResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void Stop(::grpc::ClientContext* context, const ::viam::component::motor::v1::StopRequest* request, ::viam::component::motor::v1::StopResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void Stop(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::StopResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void Stop(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::StopResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // IsPowered returns true if the robot's motor is on virtual void IsPowered(::grpc::ClientContext* context, const ::viam::component::motor::v1::IsPoweredRequest* request, ::viam::component::motor::v1::IsPoweredResponse* response, std::function) = 0; + virtual void IsPowered(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::IsPoweredResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void IsPowered(::grpc::ClientContext* context, const ::viam::component::motor::v1::IsPoweredRequest* request, ::viam::component::motor::v1::IsPoweredResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void IsPowered(::grpc::ClientContext* context, const ::viam::component::motor::v1::IsPoweredRequest* request, ::viam::component::motor::v1::IsPoweredResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void IsPowered(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::IsPoweredResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void IsPowered(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::IsPoweredResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // IsMoving reports if a component is in motion virtual void IsMoving(::grpc::ClientContext* context, const ::viam::component::motor::v1::IsMovingRequest* request, ::viam::component::motor::v1::IsMovingResponse* response, std::function) = 0; + virtual void IsMoving(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::IsMovingResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void IsMoving(::grpc::ClientContext* context, const ::viam::component::motor::v1::IsMovingRequest* request, ::viam::component::motor::v1::IsMovingResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void IsMoving(::grpc::ClientContext* context, const ::viam::component::motor::v1::IsMovingRequest* request, ::viam::component::motor::v1::IsMovingResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void IsMoving(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::IsMovingResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void IsMoving(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::IsMovingResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // 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 ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // 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 ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif }; - typedef class async_interface experimental_async_interface; - virtual class async_interface* async() { return nullptr; } - class async_interface* experimental_async() { return async(); } - private: + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef class experimental_async_interface async_interface; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + async_interface* async() { return experimental_async(); } + #endif + virtual class experimental_async_interface* experimental_async() { return nullptr; } + private: virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::motor::v1::SetPowerResponse>* AsyncSetPowerRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::SetPowerRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::motor::v1::SetPowerResponse>* PrepareAsyncSetPowerRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::SetPowerRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::motor::v1::GoForResponse>* AsyncGoForRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoForRequest& request, ::grpc::CompletionQueue* cq) = 0; @@ -226,7 +351,7 @@ class MotorService final { }; class Stub final : public StubInterface { public: - Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); ::grpc::Status SetPower(::grpc::ClientContext* context, const ::viam::component::motor::v1::SetPowerRequest& request, ::viam::component::motor::v1::SetPowerResponse* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::SetPowerResponse>> AsyncSetPower(::grpc::ClientContext* context, const ::viam::component::motor::v1::SetPowerRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::SetPowerResponse>>(AsyncSetPowerRaw(context, request, cq)); @@ -311,44 +436,164 @@ class MotorService 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)); } - class async final : - public StubInterface::async_interface { + class experimental_async final : + public StubInterface::experimental_async_interface { public: void SetPower(::grpc::ClientContext* context, const ::viam::component::motor::v1::SetPowerRequest* request, ::viam::component::motor::v1::SetPowerResponse* response, std::function) override; + void SetPower(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::SetPowerResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void SetPower(::grpc::ClientContext* context, const ::viam::component::motor::v1::SetPowerRequest* request, ::viam::component::motor::v1::SetPowerResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void SetPower(::grpc::ClientContext* context, const ::viam::component::motor::v1::SetPowerRequest* request, ::viam::component::motor::v1::SetPowerResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void SetPower(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::SetPowerResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void SetPower(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::SetPowerResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GoFor(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoForRequest* request, ::viam::component::motor::v1::GoForResponse* response, std::function) override; + void GoFor(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::GoForResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GoFor(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoForRequest* request, ::viam::component::motor::v1::GoForResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GoFor(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoForRequest* request, ::viam::component::motor::v1::GoForResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GoFor(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::GoForResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GoFor(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::GoForResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GoTo(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoToRequest* request, ::viam::component::motor::v1::GoToResponse* response, std::function) override; + void GoTo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::GoToResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GoTo(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoToRequest* request, ::viam::component::motor::v1::GoToResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GoTo(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoToRequest* request, ::viam::component::motor::v1::GoToResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GoTo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::GoToResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GoTo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::GoToResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void SetRPM(::grpc::ClientContext* context, const ::viam::component::motor::v1::SetRPMRequest* request, ::viam::component::motor::v1::SetRPMResponse* response, std::function) override; + void SetRPM(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::SetRPMResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void SetRPM(::grpc::ClientContext* context, const ::viam::component::motor::v1::SetRPMRequest* request, ::viam::component::motor::v1::SetRPMResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void SetRPM(::grpc::ClientContext* context, const ::viam::component::motor::v1::SetRPMRequest* request, ::viam::component::motor::v1::SetRPMResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void SetRPM(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::SetRPMResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void SetRPM(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::SetRPMResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void ResetZeroPosition(::grpc::ClientContext* context, const ::viam::component::motor::v1::ResetZeroPositionRequest* request, ::viam::component::motor::v1::ResetZeroPositionResponse* response, std::function) override; + void ResetZeroPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::ResetZeroPositionResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void ResetZeroPosition(::grpc::ClientContext* context, const ::viam::component::motor::v1::ResetZeroPositionRequest* request, ::viam::component::motor::v1::ResetZeroPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ResetZeroPosition(::grpc::ClientContext* context, const ::viam::component::motor::v1::ResetZeroPositionRequest* request, ::viam::component::motor::v1::ResetZeroPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void ResetZeroPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::ResetZeroPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ResetZeroPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::ResetZeroPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetPosition(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPositionRequest* request, ::viam::component::motor::v1::GetPositionResponse* response, std::function) override; + void GetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::GetPositionResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetPosition(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPositionRequest* request, ::viam::component::motor::v1::GetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetPosition(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPositionRequest* request, ::viam::component::motor::v1::GetPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::GetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::GetPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetProperties(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPropertiesRequest* request, ::viam::component::motor::v1::GetPropertiesResponse* response, std::function) override; + void GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::GetPropertiesResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetProperties(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPropertiesRequest* request, ::viam::component::motor::v1::GetPropertiesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetProperties(::grpc::ClientContext* context, const ::viam::component::motor::v1::GetPropertiesRequest* request, ::viam::component::motor::v1::GetPropertiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::GetPropertiesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::GetPropertiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void Stop(::grpc::ClientContext* context, const ::viam::component::motor::v1::StopRequest* request, ::viam::component::motor::v1::StopResponse* response, std::function) override; + void Stop(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::StopResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void Stop(::grpc::ClientContext* context, const ::viam::component::motor::v1::StopRequest* request, ::viam::component::motor::v1::StopResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void Stop(::grpc::ClientContext* context, const ::viam::component::motor::v1::StopRequest* request, ::viam::component::motor::v1::StopResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void Stop(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::StopResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void Stop(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::StopResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void IsPowered(::grpc::ClientContext* context, const ::viam::component::motor::v1::IsPoweredRequest* request, ::viam::component::motor::v1::IsPoweredResponse* response, std::function) override; + void IsPowered(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::IsPoweredResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void IsPowered(::grpc::ClientContext* context, const ::viam::component::motor::v1::IsPoweredRequest* request, ::viam::component::motor::v1::IsPoweredResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void IsPowered(::grpc::ClientContext* context, const ::viam::component::motor::v1::IsPoweredRequest* request, ::viam::component::motor::v1::IsPoweredResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void IsPowered(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::IsPoweredResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void IsPowered(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::IsPoweredResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void IsMoving(::grpc::ClientContext* context, const ::viam::component::motor::v1::IsMovingRequest* request, ::viam::component::motor::v1::IsMovingResponse* response, std::function) override; + void IsMoving(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::IsMovingResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void IsMoving(::grpc::ClientContext* context, const ::viam::component::motor::v1::IsMovingRequest* request, ::viam::component::motor::v1::IsMovingResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void IsMoving(::grpc::ClientContext* context, const ::viam::component::motor::v1::IsMovingRequest* request, ::viam::component::motor::v1::IsMovingResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void IsMoving(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::IsMovingResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void IsMoving(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::motor::v1::IsMovingResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif 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 ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif 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 ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif private: friend class Stub; - explicit async(Stub* stub): stub_(stub) { } + explicit experimental_async(Stub* stub): stub_(stub) { } Stub* stub() { return stub_; } Stub* stub_; }; - class async* async() override { return &async_stub_; } + class experimental_async_interface* experimental_async() override { return &async_stub_; } private: std::shared_ptr< ::grpc::ChannelInterface> channel_; - class async async_stub_{this}; + class experimental_async async_stub_{this}; ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::SetPowerResponse>* AsyncSetPowerRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::SetPowerRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::SetPowerResponse>* PrepareAsyncSetPowerRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::SetPowerRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::component::motor::v1::GoForResponse>* AsyncGoForRaw(::grpc::ClientContext* context, const ::viam::component::motor::v1::GoForRequest& request, ::grpc::CompletionQueue* cq) override; @@ -669,22 +914,36 @@ class MotorService final { }; typedef WithAsyncMethod_SetPower > > > > > > > > > > > AsyncService; template - class WithCallbackMethod_SetPower : public BaseClass { + class ExperimentalWithCallbackMethod_SetPower : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_SetPower() { - ::grpc::Service::MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::motor::v1::SetPowerRequest, ::viam::component::motor::v1::SetPowerResponse>( + ExperimentalWithCallbackMethod_SetPower() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::motor::v1::SetPowerRequest, ::viam::component::motor::v1::SetPowerResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::motor::v1::SetPowerRequest* request, ::viam::component::motor::v1::SetPowerResponse* response) { return this->SetPower(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::motor::v1::SetPowerRequest* request, ::viam::component::motor::v1::SetPowerResponse* response) { return this->SetPower(context, request, response); }));} void SetMessageAllocatorFor_SetPower( - ::grpc::MessageAllocator< ::viam::component::motor::v1::SetPowerRequest, ::viam::component::motor::v1::SetPowerResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::motor::v1::SetPowerRequest, ::viam::component::motor::v1::SetPowerResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::motor::v1::SetPowerRequest, ::viam::component::motor::v1::SetPowerResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(0); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::motor::v1::SetPowerRequest, ::viam::component::motor::v1::SetPowerResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_SetPower() override { + ~ExperimentalWithCallbackMethod_SetPower() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -692,26 +951,46 @@ class MotorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* SetPower( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::motor::v1::SetPowerRequest* /*request*/, ::viam::component::motor::v1::SetPowerResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::motor::v1::SetPowerRequest* /*request*/, ::viam::component::motor::v1::SetPowerResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* SetPower( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::motor::v1::SetPowerRequest* /*request*/, ::viam::component::motor::v1::SetPowerResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GoFor : public BaseClass { + class ExperimentalWithCallbackMethod_GoFor : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GoFor() { - ::grpc::Service::MarkMethodCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::motor::v1::GoForRequest, ::viam::component::motor::v1::GoForResponse>( + ExperimentalWithCallbackMethod_GoFor() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::motor::v1::GoForRequest, ::viam::component::motor::v1::GoForResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::motor::v1::GoForRequest* request, ::viam::component::motor::v1::GoForResponse* response) { return this->GoFor(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::motor::v1::GoForRequest* request, ::viam::component::motor::v1::GoForResponse* response) { return this->GoFor(context, request, response); }));} void SetMessageAllocatorFor_GoFor( - ::grpc::MessageAllocator< ::viam::component::motor::v1::GoForRequest, ::viam::component::motor::v1::GoForResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::motor::v1::GoForRequest, ::viam::component::motor::v1::GoForResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::motor::v1::GoForRequest, ::viam::component::motor::v1::GoForResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(1); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::motor::v1::GoForRequest, ::viam::component::motor::v1::GoForResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GoFor() override { + ~ExperimentalWithCallbackMethod_GoFor() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -719,26 +998,46 @@ class MotorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GoFor( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::motor::v1::GoForRequest* /*request*/, ::viam::component::motor::v1::GoForResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::motor::v1::GoForRequest* /*request*/, ::viam::component::motor::v1::GoForResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GoFor( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::motor::v1::GoForRequest* /*request*/, ::viam::component::motor::v1::GoForResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GoTo : public BaseClass { + class ExperimentalWithCallbackMethod_GoTo : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GoTo() { - ::grpc::Service::MarkMethodCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::motor::v1::GoToRequest, ::viam::component::motor::v1::GoToResponse>( + ExperimentalWithCallbackMethod_GoTo() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(2, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::motor::v1::GoToRequest, ::viam::component::motor::v1::GoToResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::motor::v1::GoToRequest* request, ::viam::component::motor::v1::GoToResponse* response) { return this->GoTo(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::motor::v1::GoToRequest* request, ::viam::component::motor::v1::GoToResponse* response) { return this->GoTo(context, request, response); }));} void SetMessageAllocatorFor_GoTo( - ::grpc::MessageAllocator< ::viam::component::motor::v1::GoToRequest, ::viam::component::motor::v1::GoToResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::motor::v1::GoToRequest, ::viam::component::motor::v1::GoToResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::motor::v1::GoToRequest, ::viam::component::motor::v1::GoToResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(2); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::motor::v1::GoToRequest, ::viam::component::motor::v1::GoToResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GoTo() override { + ~ExperimentalWithCallbackMethod_GoTo() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -746,26 +1045,46 @@ class MotorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GoTo( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::motor::v1::GoToRequest* /*request*/, ::viam::component::motor::v1::GoToResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::motor::v1::GoToRequest* /*request*/, ::viam::component::motor::v1::GoToResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GoTo( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::motor::v1::GoToRequest* /*request*/, ::viam::component::motor::v1::GoToResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_SetRPM : public BaseClass { + class ExperimentalWithCallbackMethod_SetRPM : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_SetRPM() { - ::grpc::Service::MarkMethodCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::motor::v1::SetRPMRequest, ::viam::component::motor::v1::SetRPMResponse>( + ExperimentalWithCallbackMethod_SetRPM() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(3, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::motor::v1::SetRPMRequest, ::viam::component::motor::v1::SetRPMResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::motor::v1::SetRPMRequest* request, ::viam::component::motor::v1::SetRPMResponse* response) { return this->SetRPM(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::motor::v1::SetRPMRequest* request, ::viam::component::motor::v1::SetRPMResponse* response) { return this->SetRPM(context, request, response); }));} void SetMessageAllocatorFor_SetRPM( - ::grpc::MessageAllocator< ::viam::component::motor::v1::SetRPMRequest, ::viam::component::motor::v1::SetRPMResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::motor::v1::SetRPMRequest, ::viam::component::motor::v1::SetRPMResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::motor::v1::SetRPMRequest, ::viam::component::motor::v1::SetRPMResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(3); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::motor::v1::SetRPMRequest, ::viam::component::motor::v1::SetRPMResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_SetRPM() override { + ~ExperimentalWithCallbackMethod_SetRPM() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -773,26 +1092,46 @@ class MotorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* SetRPM( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::motor::v1::SetRPMRequest* /*request*/, ::viam::component::motor::v1::SetRPMResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::motor::v1::SetRPMRequest* /*request*/, ::viam::component::motor::v1::SetRPMResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* SetRPM( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::motor::v1::SetRPMRequest* /*request*/, ::viam::component::motor::v1::SetRPMResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_ResetZeroPosition : public BaseClass { + class ExperimentalWithCallbackMethod_ResetZeroPosition : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_ResetZeroPosition() { - ::grpc::Service::MarkMethodCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::motor::v1::ResetZeroPositionRequest, ::viam::component::motor::v1::ResetZeroPositionResponse>( + ExperimentalWithCallbackMethod_ResetZeroPosition() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(4, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::motor::v1::ResetZeroPositionRequest, ::viam::component::motor::v1::ResetZeroPositionResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::motor::v1::ResetZeroPositionRequest* request, ::viam::component::motor::v1::ResetZeroPositionResponse* response) { return this->ResetZeroPosition(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::motor::v1::ResetZeroPositionRequest* request, ::viam::component::motor::v1::ResetZeroPositionResponse* response) { return this->ResetZeroPosition(context, request, response); }));} void SetMessageAllocatorFor_ResetZeroPosition( - ::grpc::MessageAllocator< ::viam::component::motor::v1::ResetZeroPositionRequest, ::viam::component::motor::v1::ResetZeroPositionResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::motor::v1::ResetZeroPositionRequest, ::viam::component::motor::v1::ResetZeroPositionResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::motor::v1::ResetZeroPositionRequest, ::viam::component::motor::v1::ResetZeroPositionResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(4); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::motor::v1::ResetZeroPositionRequest, ::viam::component::motor::v1::ResetZeroPositionResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_ResetZeroPosition() override { + ~ExperimentalWithCallbackMethod_ResetZeroPosition() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -800,26 +1139,46 @@ class MotorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* ResetZeroPosition( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::motor::v1::ResetZeroPositionRequest* /*request*/, ::viam::component::motor::v1::ResetZeroPositionResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::motor::v1::ResetZeroPositionRequest* /*request*/, ::viam::component::motor::v1::ResetZeroPositionResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ResetZeroPosition( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::motor::v1::ResetZeroPositionRequest* /*request*/, ::viam::component::motor::v1::ResetZeroPositionResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetPosition : public BaseClass { + class ExperimentalWithCallbackMethod_GetPosition : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetPosition() { - ::grpc::Service::MarkMethodCallback(5, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::motor::v1::GetPositionRequest, ::viam::component::motor::v1::GetPositionResponse>( + ExperimentalWithCallbackMethod_GetPosition() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(5, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::motor::v1::GetPositionRequest, ::viam::component::motor::v1::GetPositionResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::motor::v1::GetPositionRequest* request, ::viam::component::motor::v1::GetPositionResponse* response) { return this->GetPosition(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::motor::v1::GetPositionRequest* request, ::viam::component::motor::v1::GetPositionResponse* response) { return this->GetPosition(context, request, response); }));} void SetMessageAllocatorFor_GetPosition( - ::grpc::MessageAllocator< ::viam::component::motor::v1::GetPositionRequest, ::viam::component::motor::v1::GetPositionResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::motor::v1::GetPositionRequest, ::viam::component::motor::v1::GetPositionResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(5); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::motor::v1::GetPositionRequest, ::viam::component::motor::v1::GetPositionResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(5); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::motor::v1::GetPositionRequest, ::viam::component::motor::v1::GetPositionResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetPosition() override { + ~ExperimentalWithCallbackMethod_GetPosition() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -827,26 +1186,46 @@ class MotorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetPosition( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::motor::v1::GetPositionRequest* /*request*/, ::viam::component::motor::v1::GetPositionResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::motor::v1::GetPositionRequest* /*request*/, ::viam::component::motor::v1::GetPositionResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetPosition( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::motor::v1::GetPositionRequest* /*request*/, ::viam::component::motor::v1::GetPositionResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetProperties : public BaseClass { + class ExperimentalWithCallbackMethod_GetProperties : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetProperties() { - ::grpc::Service::MarkMethodCallback(6, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::motor::v1::GetPropertiesRequest, ::viam::component::motor::v1::GetPropertiesResponse>( + ExperimentalWithCallbackMethod_GetProperties() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(6, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::motor::v1::GetPropertiesRequest, ::viam::component::motor::v1::GetPropertiesResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::motor::v1::GetPropertiesRequest* request, ::viam::component::motor::v1::GetPropertiesResponse* response) { return this->GetProperties(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::motor::v1::GetPropertiesRequest* request, ::viam::component::motor::v1::GetPropertiesResponse* response) { return this->GetProperties(context, request, response); }));} void SetMessageAllocatorFor_GetProperties( - ::grpc::MessageAllocator< ::viam::component::motor::v1::GetPropertiesRequest, ::viam::component::motor::v1::GetPropertiesResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::motor::v1::GetPropertiesRequest, ::viam::component::motor::v1::GetPropertiesResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(6); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::motor::v1::GetPropertiesRequest, ::viam::component::motor::v1::GetPropertiesResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(6); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::motor::v1::GetPropertiesRequest, ::viam::component::motor::v1::GetPropertiesResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetProperties() override { + ~ExperimentalWithCallbackMethod_GetProperties() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -854,26 +1233,46 @@ class MotorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetProperties( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::motor::v1::GetPropertiesRequest* /*request*/, ::viam::component::motor::v1::GetPropertiesResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::motor::v1::GetPropertiesRequest* /*request*/, ::viam::component::motor::v1::GetPropertiesResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetProperties( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::motor::v1::GetPropertiesRequest* /*request*/, ::viam::component::motor::v1::GetPropertiesResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_Stop : public BaseClass { + class ExperimentalWithCallbackMethod_Stop : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_Stop() { - ::grpc::Service::MarkMethodCallback(7, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::motor::v1::StopRequest, ::viam::component::motor::v1::StopResponse>( + ExperimentalWithCallbackMethod_Stop() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(7, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::motor::v1::StopRequest, ::viam::component::motor::v1::StopResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::motor::v1::StopRequest* request, ::viam::component::motor::v1::StopResponse* response) { return this->Stop(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::motor::v1::StopRequest* request, ::viam::component::motor::v1::StopResponse* response) { return this->Stop(context, request, response); }));} void SetMessageAllocatorFor_Stop( - ::grpc::MessageAllocator< ::viam::component::motor::v1::StopRequest, ::viam::component::motor::v1::StopResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::motor::v1::StopRequest, ::viam::component::motor::v1::StopResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(7); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::motor::v1::StopRequest, ::viam::component::motor::v1::StopResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(7); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::motor::v1::StopRequest, ::viam::component::motor::v1::StopResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_Stop() override { + ~ExperimentalWithCallbackMethod_Stop() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -881,26 +1280,46 @@ class MotorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* Stop( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::motor::v1::StopRequest* /*request*/, ::viam::component::motor::v1::StopResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::motor::v1::StopRequest* /*request*/, ::viam::component::motor::v1::StopResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* Stop( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::motor::v1::StopRequest* /*request*/, ::viam::component::motor::v1::StopResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_IsPowered : public BaseClass { + class ExperimentalWithCallbackMethod_IsPowered : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_IsPowered() { - ::grpc::Service::MarkMethodCallback(8, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::motor::v1::IsPoweredRequest, ::viam::component::motor::v1::IsPoweredResponse>( + ExperimentalWithCallbackMethod_IsPowered() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(8, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::motor::v1::IsPoweredRequest, ::viam::component::motor::v1::IsPoweredResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::motor::v1::IsPoweredRequest* request, ::viam::component::motor::v1::IsPoweredResponse* response) { return this->IsPowered(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::motor::v1::IsPoweredRequest* request, ::viam::component::motor::v1::IsPoweredResponse* response) { return this->IsPowered(context, request, response); }));} void SetMessageAllocatorFor_IsPowered( - ::grpc::MessageAllocator< ::viam::component::motor::v1::IsPoweredRequest, ::viam::component::motor::v1::IsPoweredResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::motor::v1::IsPoweredRequest, ::viam::component::motor::v1::IsPoweredResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(8); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::motor::v1::IsPoweredRequest, ::viam::component::motor::v1::IsPoweredResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(8); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::motor::v1::IsPoweredRequest, ::viam::component::motor::v1::IsPoweredResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_IsPowered() override { + ~ExperimentalWithCallbackMethod_IsPowered() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -908,26 +1327,46 @@ class MotorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* IsPowered( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::motor::v1::IsPoweredRequest* /*request*/, ::viam::component::motor::v1::IsPoweredResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::motor::v1::IsPoweredRequest* /*request*/, ::viam::component::motor::v1::IsPoweredResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* IsPowered( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::motor::v1::IsPoweredRequest* /*request*/, ::viam::component::motor::v1::IsPoweredResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_IsMoving : public BaseClass { + class ExperimentalWithCallbackMethod_IsMoving : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_IsMoving() { - ::grpc::Service::MarkMethodCallback(9, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::motor::v1::IsMovingRequest, ::viam::component::motor::v1::IsMovingResponse>( + ExperimentalWithCallbackMethod_IsMoving() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(9, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::motor::v1::IsMovingRequest, ::viam::component::motor::v1::IsMovingResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::motor::v1::IsMovingRequest* request, ::viam::component::motor::v1::IsMovingResponse* response) { return this->IsMoving(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::motor::v1::IsMovingRequest* request, ::viam::component::motor::v1::IsMovingResponse* response) { return this->IsMoving(context, request, response); }));} void SetMessageAllocatorFor_IsMoving( - ::grpc::MessageAllocator< ::viam::component::motor::v1::IsMovingRequest, ::viam::component::motor::v1::IsMovingResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::motor::v1::IsMovingRequest, ::viam::component::motor::v1::IsMovingResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(9); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::motor::v1::IsMovingRequest, ::viam::component::motor::v1::IsMovingResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(9); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::motor::v1::IsMovingRequest, ::viam::component::motor::v1::IsMovingResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_IsMoving() override { + ~ExperimentalWithCallbackMethod_IsMoving() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -935,26 +1374,46 @@ class MotorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* IsMoving( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::motor::v1::IsMovingRequest* /*request*/, ::viam::component::motor::v1::IsMovingResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::motor::v1::IsMovingRequest* /*request*/, ::viam::component::motor::v1::IsMovingResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* IsMoving( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::motor::v1::IsMovingRequest* /*request*/, ::viam::component::motor::v1::IsMovingResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_DoCommand : public BaseClass { + class ExperimentalWithCallbackMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_DoCommand() { - ::grpc::Service::MarkMethodCallback(10, - new ::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( + ExperimentalWithCallbackMethod_DoCommand() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(10, + new ::grpc_impl::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); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + 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::experimental::MessageAllocator< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(10); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(10); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_DoCommand() override { + ~ExperimentalWithCallbackMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -962,26 +1421,46 @@ class MotorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DoCommand( - ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DoCommand( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetGeometries : public BaseClass { + class ExperimentalWithCallbackMethod_GetGeometries : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetGeometries() { - ::grpc::Service::MarkMethodCallback(11, - new ::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( + ExperimentalWithCallbackMethod_GetGeometries() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(11, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response) { return this->GetGeometries(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response) { return this->GetGeometries(context, request, response); }));} void SetMessageAllocatorFor_GetGeometries( - ::grpc::MessageAllocator< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(11); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(11); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetGeometries() override { + ~ExperimentalWithCallbackMethod_GetGeometries() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -989,11 +1468,20 @@ class MotorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetGeometries( - ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::GetGeometriesRequest* /*request*/, ::viam::common::v1::GetGeometriesResponse* /*response*/) { return nullptr; } - }; - typedef WithCallbackMethod_SetPower > > > > > > > > > > > CallbackService; - typedef CallbackService ExperimentalCallbackService; + ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::GetGeometriesRequest* /*request*/, ::viam::common::v1::GetGeometriesResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetGeometries( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::common::v1::GetGeometriesRequest* /*request*/, ::viam::common::v1::GetGeometriesResponse* /*response*/) + #endif + { return nullptr; } + }; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef ExperimentalWithCallbackMethod_SetPower > > > > > > > > > > > CallbackService; + #endif + + typedef ExperimentalWithCallbackMethod_SetPower > > > > > > > > > > > ExperimentalCallbackService; template class WithGenericMethod_SetPower : public BaseClass { private: @@ -1439,17 +1927,27 @@ class MotorService final { } }; template - class WithRawCallbackMethod_SetPower : public BaseClass { + class ExperimentalWithRawCallbackMethod_SetPower : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_SetPower() { - ::grpc::Service::MarkMethodRawCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_SetPower() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SetPower(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SetPower(context, request, response); })); } - ~WithRawCallbackMethod_SetPower() override { + ~ExperimentalWithRawCallbackMethod_SetPower() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1457,21 +1955,37 @@ class MotorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* SetPower( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* SetPower( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GoFor : public BaseClass { + class ExperimentalWithRawCallbackMethod_GoFor : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GoFor() { - ::grpc::Service::MarkMethodRawCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GoFor() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GoFor(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GoFor(context, request, response); })); } - ~WithRawCallbackMethod_GoFor() override { + ~ExperimentalWithRawCallbackMethod_GoFor() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1479,21 +1993,37 @@ class MotorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GoFor( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GoFor( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GoTo : public BaseClass { + class ExperimentalWithRawCallbackMethod_GoTo : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GoTo() { - ::grpc::Service::MarkMethodRawCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GoTo() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(2, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GoTo(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GoTo(context, request, response); })); } - ~WithRawCallbackMethod_GoTo() override { + ~ExperimentalWithRawCallbackMethod_GoTo() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1501,21 +2031,37 @@ class MotorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GoTo( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GoTo( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_SetRPM : public BaseClass { + class ExperimentalWithRawCallbackMethod_SetRPM : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_SetRPM() { - ::grpc::Service::MarkMethodRawCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_SetRPM() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(3, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SetRPM(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SetRPM(context, request, response); })); } - ~WithRawCallbackMethod_SetRPM() override { + ~ExperimentalWithRawCallbackMethod_SetRPM() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1523,21 +2069,37 @@ class MotorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* SetRPM( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* SetRPM( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_ResetZeroPosition : public BaseClass { + class ExperimentalWithRawCallbackMethod_ResetZeroPosition : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_ResetZeroPosition() { - ::grpc::Service::MarkMethodRawCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_ResetZeroPosition() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(4, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ResetZeroPosition(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ResetZeroPosition(context, request, response); })); } - ~WithRawCallbackMethod_ResetZeroPosition() override { + ~ExperimentalWithRawCallbackMethod_ResetZeroPosition() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1545,21 +2107,37 @@ class MotorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* ResetZeroPosition( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ResetZeroPosition( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetPosition : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetPosition : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetPosition() { - ::grpc::Service::MarkMethodRawCallback(5, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetPosition() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(5, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetPosition(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetPosition(context, request, response); })); } - ~WithRawCallbackMethod_GetPosition() override { + ~ExperimentalWithRawCallbackMethod_GetPosition() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1567,21 +2145,37 @@ class MotorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetPosition( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetPosition( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetProperties : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetProperties : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetProperties() { - ::grpc::Service::MarkMethodRawCallback(6, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetProperties() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(6, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetProperties(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetProperties(context, request, response); })); } - ~WithRawCallbackMethod_GetProperties() override { + ~ExperimentalWithRawCallbackMethod_GetProperties() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1589,21 +2183,37 @@ class MotorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetProperties( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetProperties( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_Stop : public BaseClass { + class ExperimentalWithRawCallbackMethod_Stop : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_Stop() { - ::grpc::Service::MarkMethodRawCallback(7, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_Stop() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(7, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Stop(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Stop(context, request, response); })); } - ~WithRawCallbackMethod_Stop() override { + ~ExperimentalWithRawCallbackMethod_Stop() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1611,21 +2221,37 @@ class MotorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* Stop( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* Stop( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_IsPowered : public BaseClass { + class ExperimentalWithRawCallbackMethod_IsPowered : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_IsPowered() { - ::grpc::Service::MarkMethodRawCallback(8, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_IsPowered() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(8, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->IsPowered(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->IsPowered(context, request, response); })); } - ~WithRawCallbackMethod_IsPowered() override { + ~ExperimentalWithRawCallbackMethod_IsPowered() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1633,21 +2259,37 @@ class MotorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* IsPowered( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* IsPowered( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_IsMoving : public BaseClass { + class ExperimentalWithRawCallbackMethod_IsMoving : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_IsMoving() { - ::grpc::Service::MarkMethodRawCallback(9, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_IsMoving() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(9, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->IsMoving(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->IsMoving(context, request, response); })); } - ~WithRawCallbackMethod_IsMoving() override { + ~ExperimentalWithRawCallbackMethod_IsMoving() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1655,21 +2297,37 @@ class MotorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* IsMoving( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* IsMoving( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_DoCommand : public BaseClass { + class ExperimentalWithRawCallbackMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_DoCommand() { - ::grpc::Service::MarkMethodRawCallback(10, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_DoCommand() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(10, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DoCommand(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DoCommand(context, request, response); })); } - ~WithRawCallbackMethod_DoCommand() override { + ~ExperimentalWithRawCallbackMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1677,21 +2335,37 @@ class MotorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DoCommand( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DoCommand( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetGeometries : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetGeometries : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetGeometries() { - ::grpc::Service::MarkMethodRawCallback(11, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetGeometries() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(11, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetGeometries(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetGeometries(context, request, response); })); } - ~WithRawCallbackMethod_GetGeometries() override { + ~ExperimentalWithRawCallbackMethod_GetGeometries() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1699,8 +2373,14 @@ class MotorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetGeometries( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetGeometries( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template class WithStreamedUnaryMethod_SetPower : public BaseClass { @@ -1711,8 +2391,8 @@ class MotorService final { ::grpc::Service::MarkMethodStreamed(0, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::motor::v1::SetPowerRequest, ::viam::component::motor::v1::SetPowerResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::motor::v1::SetPowerRequest, ::viam::component::motor::v1::SetPowerResponse>* streamer) { return this->StreamedSetPower(context, streamer); @@ -1738,8 +2418,8 @@ class MotorService final { ::grpc::Service::MarkMethodStreamed(1, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::motor::v1::GoForRequest, ::viam::component::motor::v1::GoForResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::motor::v1::GoForRequest, ::viam::component::motor::v1::GoForResponse>* streamer) { return this->StreamedGoFor(context, streamer); @@ -1765,8 +2445,8 @@ class MotorService final { ::grpc::Service::MarkMethodStreamed(2, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::motor::v1::GoToRequest, ::viam::component::motor::v1::GoToResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::motor::v1::GoToRequest, ::viam::component::motor::v1::GoToResponse>* streamer) { return this->StreamedGoTo(context, streamer); @@ -1792,8 +2472,8 @@ class MotorService final { ::grpc::Service::MarkMethodStreamed(3, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::motor::v1::SetRPMRequest, ::viam::component::motor::v1::SetRPMResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::motor::v1::SetRPMRequest, ::viam::component::motor::v1::SetRPMResponse>* streamer) { return this->StreamedSetRPM(context, streamer); @@ -1819,8 +2499,8 @@ class MotorService final { ::grpc::Service::MarkMethodStreamed(4, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::motor::v1::ResetZeroPositionRequest, ::viam::component::motor::v1::ResetZeroPositionResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::motor::v1::ResetZeroPositionRequest, ::viam::component::motor::v1::ResetZeroPositionResponse>* streamer) { return this->StreamedResetZeroPosition(context, streamer); @@ -1846,8 +2526,8 @@ class MotorService final { ::grpc::Service::MarkMethodStreamed(5, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::motor::v1::GetPositionRequest, ::viam::component::motor::v1::GetPositionResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::motor::v1::GetPositionRequest, ::viam::component::motor::v1::GetPositionResponse>* streamer) { return this->StreamedGetPosition(context, streamer); @@ -1873,8 +2553,8 @@ class MotorService final { ::grpc::Service::MarkMethodStreamed(6, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::motor::v1::GetPropertiesRequest, ::viam::component::motor::v1::GetPropertiesResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::motor::v1::GetPropertiesRequest, ::viam::component::motor::v1::GetPropertiesResponse>* streamer) { return this->StreamedGetProperties(context, streamer); @@ -1900,8 +2580,8 @@ class MotorService final { ::grpc::Service::MarkMethodStreamed(7, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::motor::v1::StopRequest, ::viam::component::motor::v1::StopResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::motor::v1::StopRequest, ::viam::component::motor::v1::StopResponse>* streamer) { return this->StreamedStop(context, streamer); @@ -1927,8 +2607,8 @@ class MotorService final { ::grpc::Service::MarkMethodStreamed(8, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::motor::v1::IsPoweredRequest, ::viam::component::motor::v1::IsPoweredResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::motor::v1::IsPoweredRequest, ::viam::component::motor::v1::IsPoweredResponse>* streamer) { return this->StreamedIsPowered(context, streamer); @@ -1954,8 +2634,8 @@ class MotorService final { ::grpc::Service::MarkMethodStreamed(9, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::motor::v1::IsMovingRequest, ::viam::component::motor::v1::IsMovingResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::motor::v1::IsMovingRequest, ::viam::component::motor::v1::IsMovingResponse>* streamer) { return this->StreamedIsMoving(context, streamer); @@ -1981,8 +2661,8 @@ class MotorService final { ::grpc::Service::MarkMethodStreamed(10, new ::grpc::internal::StreamedUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* streamer) { return this->StreamedDoCommand(context, streamer); @@ -2008,8 +2688,8 @@ class MotorService final { ::grpc::Service::MarkMethodStreamed(11, new ::grpc::internal::StreamedUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>* streamer) { return this->StreamedGetGeometries(context, streamer); diff --git a/src/viam/api/component/motor/v1/motor.pb.cc b/src/viam/api/component/motor/v1/motor.pb.cc index 06c2271cc..29ebb89e8 100644 --- a/src/viam/api/component/motor/v1/motor.pb.cc +++ b/src/viam/api/component/motor/v1/motor.pb.cc @@ -4,1110 +4,876 @@ #include "component/motor/v1/motor.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace viam { namespace component { namespace motor { namespace v1 { - template -PROTOBUF_CONSTEXPR StopResponse::StopResponse(::_pbi::ConstantInitialized) {} -struct StopResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR StopResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StopResponseDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR SetPowerRequest::SetPowerRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr) + , power_pct_(0){} +struct SetPowerRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SetPowerRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SetPowerRequestDefaultTypeInternal() {} union { - StopResponse _instance; + SetPowerRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopResponseDefaultTypeInternal _StopResponse_default_instance_; - -inline constexpr Status::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : position_{0}, - is_powered_{false}, - is_moving_{false}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR Status::Status(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct StatusDefaultTypeInternal { - PROTOBUF_CONSTEXPR StatusDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StatusDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetPowerRequestDefaultTypeInternal _SetPowerRequest_default_instance_; +PROTOBUF_CONSTEXPR SetPowerResponse::SetPowerResponse( + ::_pbi::ConstantInitialized){} +struct SetPowerResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR SetPowerResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SetPowerResponseDefaultTypeInternal() {} union { - Status _instance; + SetPowerResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StatusDefaultTypeInternal _Status_default_instance_; - template -PROTOBUF_CONSTEXPR SetRPMResponse::SetRPMResponse(::_pbi::ConstantInitialized) {} -struct SetRPMResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetRPMResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetRPMResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetPowerResponseDefaultTypeInternal _SetPowerResponse_default_instance_; +PROTOBUF_CONSTEXPR GoForRequest::GoForRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr) + , rpm_(0) + , revolutions_(0){} +struct GoForRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GoForRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GoForRequestDefaultTypeInternal() {} union { - SetRPMResponse _instance; + GoForRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetRPMResponseDefaultTypeInternal _SetRPMResponse_default_instance_; - template -PROTOBUF_CONSTEXPR SetPowerResponse::SetPowerResponse(::_pbi::ConstantInitialized) {} -struct SetPowerResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetPowerResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetPowerResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GoForRequestDefaultTypeInternal _GoForRequest_default_instance_; +PROTOBUF_CONSTEXPR GoForResponse::GoForResponse( + ::_pbi::ConstantInitialized){} +struct GoForResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GoForResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GoForResponseDefaultTypeInternal() {} union { - SetPowerResponse _instance; + GoForResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetPowerResponseDefaultTypeInternal _SetPowerResponse_default_instance_; - template -PROTOBUF_CONSTEXPR ResetZeroPositionResponse::ResetZeroPositionResponse(::_pbi::ConstantInitialized) {} -struct ResetZeroPositionResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ResetZeroPositionResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ResetZeroPositionResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GoForResponseDefaultTypeInternal _GoForResponse_default_instance_; +PROTOBUF_CONSTEXPR GoToRequest::GoToRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr) + , rpm_(0) + , position_revolutions_(0){} +struct GoToRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GoToRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GoToRequestDefaultTypeInternal() {} union { - ResetZeroPositionResponse _instance; + GoToRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResetZeroPositionResponseDefaultTypeInternal _ResetZeroPositionResponse_default_instance_; - -inline constexpr IsPoweredResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : power_pct_{0}, - is_on_{false}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR IsPoweredResponse::IsPoweredResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct IsPoweredResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR IsPoweredResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~IsPoweredResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GoToRequestDefaultTypeInternal _GoToRequest_default_instance_; +PROTOBUF_CONSTEXPR GoToResponse::GoToResponse( + ::_pbi::ConstantInitialized){} +struct GoToResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GoToResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GoToResponseDefaultTypeInternal() {} union { - IsPoweredResponse _instance; + GoToResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IsPoweredResponseDefaultTypeInternal _IsPoweredResponse_default_instance_; - -inline constexpr IsMovingResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : is_moving_{false}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR IsMovingResponse::IsMovingResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct IsMovingResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR IsMovingResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~IsMovingResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GoToResponseDefaultTypeInternal _GoToResponse_default_instance_; +PROTOBUF_CONSTEXPR SetRPMRequest::SetRPMRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr) + , rpm_(0){} +struct SetRPMRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SetRPMRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SetRPMRequestDefaultTypeInternal() {} union { - IsMovingResponse _instance; + SetRPMRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IsMovingResponseDefaultTypeInternal _IsMovingResponse_default_instance_; - -inline constexpr IsMovingRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR IsMovingRequest::IsMovingRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct IsMovingRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR IsMovingRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~IsMovingRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetRPMRequestDefaultTypeInternal _SetRPMRequest_default_instance_; +PROTOBUF_CONSTEXPR SetRPMResponse::SetRPMResponse( + ::_pbi::ConstantInitialized){} +struct SetRPMResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR SetRPMResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SetRPMResponseDefaultTypeInternal() {} union { - IsMovingRequest _instance; + SetRPMResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IsMovingRequestDefaultTypeInternal _IsMovingRequest_default_instance_; - template -PROTOBUF_CONSTEXPR GoToResponse::GoToResponse(::_pbi::ConstantInitialized) {} -struct GoToResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GoToResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GoToResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetRPMResponseDefaultTypeInternal _SetRPMResponse_default_instance_; +PROTOBUF_CONSTEXPR ResetZeroPositionRequest::ResetZeroPositionRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr) + , offset_(0){} +struct ResetZeroPositionRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR ResetZeroPositionRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ResetZeroPositionRequestDefaultTypeInternal() {} union { - GoToResponse _instance; + ResetZeroPositionRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GoToResponseDefaultTypeInternal _GoToResponse_default_instance_; - template -PROTOBUF_CONSTEXPR GoForResponse::GoForResponse(::_pbi::ConstantInitialized) {} -struct GoForResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GoForResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GoForResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResetZeroPositionRequestDefaultTypeInternal _ResetZeroPositionRequest_default_instance_; +PROTOBUF_CONSTEXPR ResetZeroPositionResponse::ResetZeroPositionResponse( + ::_pbi::ConstantInitialized){} +struct ResetZeroPositionResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ResetZeroPositionResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ResetZeroPositionResponseDefaultTypeInternal() {} union { - GoForResponse _instance; + ResetZeroPositionResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GoForResponseDefaultTypeInternal _GoForResponse_default_instance_; - -inline constexpr GetPropertiesResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : position_reporting_{false}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetPropertiesResponse::GetPropertiesResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetPropertiesResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetPropertiesResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetPropertiesResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResetZeroPositionResponseDefaultTypeInternal _ResetZeroPositionResponse_default_instance_; +PROTOBUF_CONSTEXPR GetPositionRequest::GetPositionRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} +struct GetPositionRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPositionRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPositionRequestDefaultTypeInternal() {} union { - GetPropertiesResponse _instance; + GetPositionRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPropertiesResponseDefaultTypeInternal _GetPropertiesResponse_default_instance_; - -inline constexpr GetPositionResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : position_{0}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetPositionResponse::GetPositionResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPositionRequestDefaultTypeInternal _GetPositionRequest_default_instance_; +PROTOBUF_CONSTEXPR GetPositionResponse::GetPositionResponse( + ::_pbi::ConstantInitialized) + : position_(0){} struct GetPositionResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetPositionResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GetPositionResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~GetPositionResponseDefaultTypeInternal() {} union { GetPositionResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPositionResponseDefaultTypeInternal _GetPositionResponse_default_instance_; - -inline constexpr StopRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR StopRequest::StopRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPositionResponseDefaultTypeInternal _GetPositionResponse_default_instance_; +PROTOBUF_CONSTEXPR StopRequest::StopRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} struct StopRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR StopRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR StopRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~StopRequestDefaultTypeInternal() {} union { StopRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopRequestDefaultTypeInternal _StopRequest_default_instance_; - -inline constexpr SetRPMRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr}, - rpm_{0} {} - -template -PROTOBUF_CONSTEXPR SetRPMRequest::SetRPMRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct SetRPMRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetRPMRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetRPMRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopRequestDefaultTypeInternal _StopRequest_default_instance_; +PROTOBUF_CONSTEXPR StopResponse::StopResponse( + ::_pbi::ConstantInitialized){} +struct StopResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR StopResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StopResponseDefaultTypeInternal() {} union { - SetRPMRequest _instance; + StopResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetRPMRequestDefaultTypeInternal _SetRPMRequest_default_instance_; - -inline constexpr SetPowerRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr}, - power_pct_{0} {} - -template -PROTOBUF_CONSTEXPR SetPowerRequest::SetPowerRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct SetPowerRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetPowerRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetPowerRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopResponseDefaultTypeInternal _StopResponse_default_instance_; +PROTOBUF_CONSTEXPR IsPoweredRequest::IsPoweredRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} +struct IsPoweredRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR IsPoweredRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~IsPoweredRequestDefaultTypeInternal() {} union { - SetPowerRequest _instance; + IsPoweredRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetPowerRequestDefaultTypeInternal _SetPowerRequest_default_instance_; - -inline constexpr ResetZeroPositionRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr}, - offset_{0} {} - -template -PROTOBUF_CONSTEXPR ResetZeroPositionRequest::ResetZeroPositionRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ResetZeroPositionRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR ResetZeroPositionRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ResetZeroPositionRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IsPoweredRequestDefaultTypeInternal _IsPoweredRequest_default_instance_; +PROTOBUF_CONSTEXPR IsPoweredResponse::IsPoweredResponse( + ::_pbi::ConstantInitialized) + : power_pct_(0) + , is_on_(false){} +struct IsPoweredResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR IsPoweredResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~IsPoweredResponseDefaultTypeInternal() {} union { - ResetZeroPositionRequest _instance; + IsPoweredResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResetZeroPositionRequestDefaultTypeInternal _ResetZeroPositionRequest_default_instance_; - -inline constexpr IsPoweredRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR IsPoweredRequest::IsPoweredRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct IsPoweredRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR IsPoweredRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~IsPoweredRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IsPoweredResponseDefaultTypeInternal _IsPoweredResponse_default_instance_; +PROTOBUF_CONSTEXPR GetPropertiesRequest::GetPropertiesRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} +struct GetPropertiesRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPropertiesRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPropertiesRequestDefaultTypeInternal() {} union { - IsPoweredRequest _instance; + GetPropertiesRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IsPoweredRequestDefaultTypeInternal _IsPoweredRequest_default_instance_; - -inline constexpr GoToRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr}, - rpm_{0}, - position_revolutions_{0} {} - -template -PROTOBUF_CONSTEXPR GoToRequest::GoToRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GoToRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GoToRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GoToRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPropertiesRequestDefaultTypeInternal _GetPropertiesRequest_default_instance_; +PROTOBUF_CONSTEXPR GetPropertiesResponse::GetPropertiesResponse( + ::_pbi::ConstantInitialized) + : position_reporting_(false){} +struct GetPropertiesResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPropertiesResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPropertiesResponseDefaultTypeInternal() {} union { - GoToRequest _instance; + GetPropertiesResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GoToRequestDefaultTypeInternal _GoToRequest_default_instance_; - -inline constexpr GoForRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr}, - rpm_{0}, - revolutions_{0} {} - -template -PROTOBUF_CONSTEXPR GoForRequest::GoForRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GoForRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GoForRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GoForRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPropertiesResponseDefaultTypeInternal _GetPropertiesResponse_default_instance_; +PROTOBUF_CONSTEXPR Status::Status( + ::_pbi::ConstantInitialized) + : position_(0) + , is_powered_(false) + , is_moving_(false){} +struct StatusDefaultTypeInternal { + PROTOBUF_CONSTEXPR StatusDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StatusDefaultTypeInternal() {} union { - GoForRequest _instance; + Status _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GoForRequestDefaultTypeInternal _GoForRequest_default_instance_; - -inline constexpr GetPropertiesRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetPropertiesRequest::GetPropertiesRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetPropertiesRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetPropertiesRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetPropertiesRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StatusDefaultTypeInternal _Status_default_instance_; +PROTOBUF_CONSTEXPR IsMovingRequest::IsMovingRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct IsMovingRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR IsMovingRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~IsMovingRequestDefaultTypeInternal() {} union { - GetPropertiesRequest _instance; + IsMovingRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPropertiesRequestDefaultTypeInternal _GetPropertiesRequest_default_instance_; - -inline constexpr GetPositionRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetPositionRequest::GetPositionRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetPositionRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetPositionRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetPositionRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IsMovingRequestDefaultTypeInternal _IsMovingRequest_default_instance_; +PROTOBUF_CONSTEXPR IsMovingResponse::IsMovingResponse( + ::_pbi::ConstantInitialized) + : is_moving_(false){} +struct IsMovingResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR IsMovingResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~IsMovingResponseDefaultTypeInternal() {} union { - GetPositionRequest _instance; + IsMovingResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPositionRequestDefaultTypeInternal _GetPositionRequest_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IsMovingResponseDefaultTypeInternal _IsMovingResponse_default_instance_; } // namespace v1 } // namespace motor } // namespace component } // namespace viam static ::_pb::Metadata file_level_metadata_component_2fmotor_2fv1_2fmotor_2eproto[21]; -static constexpr const ::_pb::EnumDescriptor** - file_level_enum_descriptors_component_2fmotor_2fv1_2fmotor_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_component_2fmotor_2fv1_2fmotor_2eproto = nullptr; -const ::uint32_t TableStruct_component_2fmotor_2fv1_2fmotor_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::SetPowerRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::SetPowerRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::SetPowerRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::SetPowerRequest, _impl_.power_pct_), - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::SetPowerRequest, _impl_.extra_), - ~0u, - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::SetPowerResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GoForRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GoForRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GoForRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GoForRequest, _impl_.rpm_), - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GoForRequest, _impl_.revolutions_), - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GoForRequest, _impl_.extra_), - ~0u, - ~0u, - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GoForResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GoToRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GoToRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GoToRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GoToRequest, _impl_.rpm_), - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GoToRequest, _impl_.position_revolutions_), - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GoToRequest, _impl_.extra_), - ~0u, - ~0u, - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GoToResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::SetRPMRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::SetRPMRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::SetRPMRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::SetRPMRequest, _impl_.rpm_), - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::SetRPMRequest, _impl_.extra_), - ~0u, - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::SetRPMResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::ResetZeroPositionRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::ResetZeroPositionRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::ResetZeroPositionRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::ResetZeroPositionRequest, _impl_.offset_), - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::ResetZeroPositionRequest, _impl_.extra_), - ~0u, - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::ResetZeroPositionResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GetPositionRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GetPositionRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GetPositionRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GetPositionRequest, _impl_.extra_), - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GetPositionResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GetPositionResponse, _impl_.position_), - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::StopRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::StopRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::StopRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::StopRequest, _impl_.extra_), - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::StopResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::IsPoweredRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::IsPoweredRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::IsPoweredRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::IsPoweredRequest, _impl_.extra_), - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::IsPoweredResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::IsPoweredResponse, _impl_.is_on_), - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::IsPoweredResponse, _impl_.power_pct_), - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GetPropertiesRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GetPropertiesRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GetPropertiesRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GetPropertiesRequest, _impl_.extra_), - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GetPropertiesResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GetPropertiesResponse, _impl_.position_reporting_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::Status, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::Status, _impl_.is_powered_), - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::Status, _impl_.position_), - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::Status, _impl_.is_moving_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::IsMovingRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::IsMovingRequest, _impl_.name_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::IsMovingResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::IsMovingResponse, _impl_.is_moving_), +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_component_2fmotor_2fv1_2fmotor_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_component_2fmotor_2fv1_2fmotor_2eproto = nullptr; + +const uint32_t TableStruct_component_2fmotor_2fv1_2fmotor_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::SetPowerRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::SetPowerRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::SetPowerRequest, power_pct_), + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::SetPowerRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::SetPowerResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GoForRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GoForRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GoForRequest, rpm_), + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GoForRequest, revolutions_), + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GoForRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GoForResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GoToRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GoToRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GoToRequest, rpm_), + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GoToRequest, position_revolutions_), + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GoToRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GoToResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::SetRPMRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::SetRPMRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::SetRPMRequest, rpm_), + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::SetRPMRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::SetRPMResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::ResetZeroPositionRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::ResetZeroPositionRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::ResetZeroPositionRequest, offset_), + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::ResetZeroPositionRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::ResetZeroPositionResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GetPositionRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GetPositionRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GetPositionRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GetPositionResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GetPositionResponse, position_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::StopRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::StopRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::StopRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::StopResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::IsPoweredRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::IsPoweredRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::IsPoweredRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::IsPoweredResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::IsPoweredResponse, is_on_), + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::IsPoweredResponse, power_pct_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GetPropertiesRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GetPropertiesRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GetPropertiesRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GetPropertiesResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::GetPropertiesResponse, position_reporting_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::Status, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::Status, is_powered_), + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::Status, position_), + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::Status, is_moving_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::IsMovingRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::IsMovingRequest, name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::IsMovingResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::motor::v1::IsMovingResponse, is_moving_), }; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, 11, -1, sizeof(::viam::component::motor::v1::SetPowerRequest)}, - {14, -1, -1, sizeof(::viam::component::motor::v1::SetPowerResponse)}, - {22, 34, -1, sizeof(::viam::component::motor::v1::GoForRequest)}, - {38, -1, -1, sizeof(::viam::component::motor::v1::GoForResponse)}, - {46, 58, -1, sizeof(::viam::component::motor::v1::GoToRequest)}, - {62, -1, -1, sizeof(::viam::component::motor::v1::GoToResponse)}, - {70, 81, -1, sizeof(::viam::component::motor::v1::SetRPMRequest)}, - {84, -1, -1, sizeof(::viam::component::motor::v1::SetRPMResponse)}, - {92, 103, -1, sizeof(::viam::component::motor::v1::ResetZeroPositionRequest)}, - {106, -1, -1, sizeof(::viam::component::motor::v1::ResetZeroPositionResponse)}, - {114, 124, -1, sizeof(::viam::component::motor::v1::GetPositionRequest)}, - {126, -1, -1, sizeof(::viam::component::motor::v1::GetPositionResponse)}, - {135, 145, -1, sizeof(::viam::component::motor::v1::StopRequest)}, - {147, -1, -1, sizeof(::viam::component::motor::v1::StopResponse)}, - {155, 165, -1, sizeof(::viam::component::motor::v1::IsPoweredRequest)}, - {167, -1, -1, sizeof(::viam::component::motor::v1::IsPoweredResponse)}, - {177, 187, -1, sizeof(::viam::component::motor::v1::GetPropertiesRequest)}, - {189, -1, -1, sizeof(::viam::component::motor::v1::GetPropertiesResponse)}, - {198, -1, -1, sizeof(::viam::component::motor::v1::Status)}, - {209, -1, -1, sizeof(::viam::component::motor::v1::IsMovingRequest)}, - {218, -1, -1, sizeof(::viam::component::motor::v1::IsMovingResponse)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::component::motor::v1::SetPowerRequest)}, + { 9, -1, -1, sizeof(::viam::component::motor::v1::SetPowerResponse)}, + { 15, -1, -1, sizeof(::viam::component::motor::v1::GoForRequest)}, + { 25, -1, -1, sizeof(::viam::component::motor::v1::GoForResponse)}, + { 31, -1, -1, sizeof(::viam::component::motor::v1::GoToRequest)}, + { 41, -1, -1, sizeof(::viam::component::motor::v1::GoToResponse)}, + { 47, -1, -1, sizeof(::viam::component::motor::v1::SetRPMRequest)}, + { 56, -1, -1, sizeof(::viam::component::motor::v1::SetRPMResponse)}, + { 62, -1, -1, sizeof(::viam::component::motor::v1::ResetZeroPositionRequest)}, + { 71, -1, -1, sizeof(::viam::component::motor::v1::ResetZeroPositionResponse)}, + { 77, -1, -1, sizeof(::viam::component::motor::v1::GetPositionRequest)}, + { 85, -1, -1, sizeof(::viam::component::motor::v1::GetPositionResponse)}, + { 92, -1, -1, sizeof(::viam::component::motor::v1::StopRequest)}, + { 100, -1, -1, sizeof(::viam::component::motor::v1::StopResponse)}, + { 106, -1, -1, sizeof(::viam::component::motor::v1::IsPoweredRequest)}, + { 114, -1, -1, sizeof(::viam::component::motor::v1::IsPoweredResponse)}, + { 122, -1, -1, sizeof(::viam::component::motor::v1::GetPropertiesRequest)}, + { 130, -1, -1, sizeof(::viam::component::motor::v1::GetPropertiesResponse)}, + { 137, -1, -1, sizeof(::viam::component::motor::v1::Status)}, + { 146, -1, -1, sizeof(::viam::component::motor::v1::IsMovingRequest)}, + { 153, -1, -1, sizeof(::viam::component::motor::v1::IsMovingResponse)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::viam::component::motor::v1::_SetPowerRequest_default_instance_._instance, - &::viam::component::motor::v1::_SetPowerResponse_default_instance_._instance, - &::viam::component::motor::v1::_GoForRequest_default_instance_._instance, - &::viam::component::motor::v1::_GoForResponse_default_instance_._instance, - &::viam::component::motor::v1::_GoToRequest_default_instance_._instance, - &::viam::component::motor::v1::_GoToResponse_default_instance_._instance, - &::viam::component::motor::v1::_SetRPMRequest_default_instance_._instance, - &::viam::component::motor::v1::_SetRPMResponse_default_instance_._instance, - &::viam::component::motor::v1::_ResetZeroPositionRequest_default_instance_._instance, - &::viam::component::motor::v1::_ResetZeroPositionResponse_default_instance_._instance, - &::viam::component::motor::v1::_GetPositionRequest_default_instance_._instance, - &::viam::component::motor::v1::_GetPositionResponse_default_instance_._instance, - &::viam::component::motor::v1::_StopRequest_default_instance_._instance, - &::viam::component::motor::v1::_StopResponse_default_instance_._instance, - &::viam::component::motor::v1::_IsPoweredRequest_default_instance_._instance, - &::viam::component::motor::v1::_IsPoweredResponse_default_instance_._instance, - &::viam::component::motor::v1::_GetPropertiesRequest_default_instance_._instance, - &::viam::component::motor::v1::_GetPropertiesResponse_default_instance_._instance, - &::viam::component::motor::v1::_Status_default_instance_._instance, - &::viam::component::motor::v1::_IsMovingRequest_default_instance_._instance, - &::viam::component::motor::v1::_IsMovingResponse_default_instance_._instance, -}; -const char descriptor_table_protodef_component_2fmotor_2fv1_2fmotor_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n\036component/motor/v1/motor.proto\022\027viam.c" - "omponent.motor.v1\032\026common/v1/common.prot" - "o\032\034google/api/annotations.proto\032\034google/" - "protobuf/struct.proto\"q\n\017SetPowerRequest" - "\022\022\n\004name\030\001 \001(\tR\004name\022\033\n\tpower_pct\030\002 \001(\001R" - "\010powerPct\022-\n\005extra\030c \001(\0132\027.google.protob" - "uf.StructR\005extra\"\022\n\020SetPowerResponse\"\205\001\n" - "\014GoForRequest\022\022\n\004name\030\001 \001(\tR\004name\022\020\n\003rpm" - "\030\002 \001(\001R\003rpm\022 \n\013revolutions\030\003 \001(\001R\013revolu" - "tions\022-\n\005extra\030c \001(\0132\027.google.protobuf.S" - "tructR\005extra\"\017\n\rGoForResponse\"\225\001\n\013GoToRe" - "quest\022\022\n\004name\030\001 \001(\tR\004name\022\020\n\003rpm\030\002 \001(\001R\003" - "rpm\0221\n\024position_revolutions\030\003 \001(\001R\023posit" - "ionRevolutions\022-\n\005extra\030c \001(\0132\027.google.p" - "rotobuf.StructR\005extra\"\016\n\014GoToResponse\"d\n" - "\rSetRPMRequest\022\022\n\004name\030\001 \001(\tR\004name\022\020\n\003rp" - "m\030\002 \001(\001R\003rpm\022-\n\005extra\030c \001(\0132\027.google.pro" - "tobuf.StructR\005extra\"\020\n\016SetRPMResponse\"u\n" - "\030ResetZeroPositionRequest\022\022\n\004name\030\001 \001(\tR" - "\004name\022\026\n\006offset\030\002 \001(\001R\006offset\022-\n\005extra\030c" - " \001(\0132\027.google.protobuf.StructR\005extra\"\033\n\031" - "ResetZeroPositionResponse\"W\n\022GetPosition" - "Request\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005extra\030c \001" - "(\0132\027.google.protobuf.StructR\005extra\"1\n\023Ge" - "tPositionResponse\022\032\n\010position\030\001 \001(\001R\010pos" - "ition\"P\n\013StopRequest\022\022\n\004name\030\001 \001(\tR\004name" - "\022-\n\005extra\030c \001(\0132\027.google.protobuf.Struct" - "R\005extra\"\016\n\014StopResponse\"U\n\020IsPoweredRequ" - "est\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005extra\030c \001(\0132\027" - ".google.protobuf.StructR\005extra\"E\n\021IsPowe" - "redResponse\022\023\n\005is_on\030\001 \001(\010R\004isOn\022\033\n\tpowe" - "r_pct\030\002 \001(\001R\010powerPct\"Y\n\024GetPropertiesRe" - "quest\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005extra\030c \001(\013" - "2\027.google.protobuf.StructR\005extra\"F\n\025GetP" - "ropertiesResponse\022-\n\022position_reporting\030" - "\001 \001(\010R\021positionReporting\"`\n\006Status\022\035\n\nis" - "_powered\030\001 \001(\010R\tisPowered\022\032\n\010position\030\003 " - "\001(\001R\010position\022\033\n\tis_moving\030\004 \001(\010R\010isMovi" - "ng\"%\n\017IsMovingRequest\022\022\n\004name\030\001 \001(\tR\004nam" - "e\"/\n\020IsMovingResponse\022\033\n\tis_moving\030\001 \001(\010" - "R\010isMoving2\256\016\n\014MotorService\022\226\001\n\010SetPower" - "\022(.viam.component.motor.v1.SetPowerReque" - "st\032).viam.component.motor.v1.SetPowerRes" - "ponse\"5\240\222)\001\202\323\344\223\002+\032)/viam/api/v1/componen" - "t/motor/{name}/power\022\216\001\n\005GoFor\022%.viam.co" - "mponent.motor.v1.GoForRequest\032&.viam.com" - "ponent.motor.v1.GoForResponse\"6\240\222)\001\202\323\344\223\002" - ",\032*/viam/api/v1/component/motor/{name}/g" - "o_for\022\212\001\n\004GoTo\022$.viam.component.motor.v1" - ".GoToRequest\032%.viam.component.motor.v1.G" - "oToResponse\"5\240\222)\001\202\323\344\223\002+\032)/viam/api/v1/co" - "mponent/motor/{name}/go_to\022\222\001\n\006SetRPM\022&." - "viam.component.motor.v1.SetRPMRequest\032\'." - "viam.component.motor.v1.SetRPMResponse\"7" - "\240\222)\001\202\323\344\223\002-\032+/viam/api/v1/component/motor" - "/{name}/set_rpm\022\254\001\n\021ResetZeroPosition\0221." - "viam.component.motor.v1.ResetZeroPositio" - "nRequest\0322.viam.component.motor.v1.Reset" - "ZeroPositionResponse\"0\202\323\344\223\002*\032(/viam/api/" - "v1/component/motor/{name}/zero\022\236\001\n\013GetPo" - "sition\022+.viam.component.motor.v1.GetPosi" - "tionRequest\032,.viam.component.motor.v1.Ge" - "tPositionResponse\"4\202\323\344\223\002.\022,/viam/api/v1/" - "component/motor/{name}/position\022\244\001\n\rGetP" - "roperties\022-.viam.component.motor.v1.GetP" - "ropertiesRequest\032..viam.component.motor." - "v1.GetPropertiesResponse\"4\202\323\344\223\002.\022,/viam/" - "api/v1/component/motor/{name}/features\022\205" - "\001\n\004Stop\022$.viam.component.motor.v1.StopRe" - "quest\032%.viam.component.motor.v1.StopResp" - "onse\"0\202\323\344\223\002*\032(/viam/api/v1/component/mot" - "or/{name}/stop\022\227\001\n\tIsPowered\022).viam.comp" - "onent.motor.v1.IsPoweredRequest\032*.viam.c" - "omponent.motor.v1.IsPoweredResponse\"3\202\323\344" - "\223\002-\022+/viam/api/v1/component/motor/{name}" - "/powered\022\226\001\n\010IsMoving\022(.viam.component.m" - "otor.v1.IsMovingRequest\032).viam.component" - ".motor.v1.IsMovingResponse\"5\202\323\344\223\002/\022-/via" - "m/api/v1/component/motor/{name}/is_movin" - "g\022\210\001\n\tDoCommand\022 .viam.common.v1.DoComma" - "ndRequest\032!.viam.common.v1.DoCommandResp" - "onse\"6\202\323\344\223\0020\"./viam/api/v1/component/mot" - "or/{name}/do_command\022\224\001\n\rGetGeometries\022$" - ".viam.common.v1.GetGeometriesRequest\032%.v" - "iam.common.v1.GetGeometriesResponse\"6\202\323\344" - "\223\0020\022./viam/api/v1/component/motor/{name}" - "/geometriesB\314\001\n\033com.viam.component.motor" - ".v1B\nMotorProtoP\001Z\"go.viam.com/api/compo" - "nent/motor/v1\242\002\003VCM\252\002\027Viam.Component.Mot" - "or.V1\312\002\027Viam\\Component\\Motor\\V1\342\002#Viam\\C" - "omponent\\Motor\\V1\\GPBMetadata\352\002\032Viam::Co" - "mponent::Motor::V1b\006proto3" + &::viam::component::motor::v1::_SetPowerRequest_default_instance_._instance, + &::viam::component::motor::v1::_SetPowerResponse_default_instance_._instance, + &::viam::component::motor::v1::_GoForRequest_default_instance_._instance, + &::viam::component::motor::v1::_GoForResponse_default_instance_._instance, + &::viam::component::motor::v1::_GoToRequest_default_instance_._instance, + &::viam::component::motor::v1::_GoToResponse_default_instance_._instance, + &::viam::component::motor::v1::_SetRPMRequest_default_instance_._instance, + &::viam::component::motor::v1::_SetRPMResponse_default_instance_._instance, + &::viam::component::motor::v1::_ResetZeroPositionRequest_default_instance_._instance, + &::viam::component::motor::v1::_ResetZeroPositionResponse_default_instance_._instance, + &::viam::component::motor::v1::_GetPositionRequest_default_instance_._instance, + &::viam::component::motor::v1::_GetPositionResponse_default_instance_._instance, + &::viam::component::motor::v1::_StopRequest_default_instance_._instance, + &::viam::component::motor::v1::_StopResponse_default_instance_._instance, + &::viam::component::motor::v1::_IsPoweredRequest_default_instance_._instance, + &::viam::component::motor::v1::_IsPoweredResponse_default_instance_._instance, + &::viam::component::motor::v1::_GetPropertiesRequest_default_instance_._instance, + &::viam::component::motor::v1::_GetPropertiesResponse_default_instance_._instance, + &::viam::component::motor::v1::_Status_default_instance_._instance, + &::viam::component::motor::v1::_IsMovingRequest_default_instance_._instance, + &::viam::component::motor::v1::_IsMovingResponse_default_instance_._instance, }; -static const ::_pbi::DescriptorTable* const descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_deps[3] = - { - &::descriptor_table_common_2fv1_2fcommon_2eproto, - &::descriptor_table_google_2fapi_2fannotations_2eproto, - &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, + +const char descriptor_table_protodef_component_2fmotor_2fv1_2fmotor_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\036component/motor/v1/motor.proto\022\027viam.c" + "omponent.motor.v1\032\026common/v1/common.prot" + "o\032\034google/api/annotations.proto\032\034google/" + "protobuf/struct.proto\"q\n\017SetPowerRequest" + "\022\022\n\004name\030\001 \001(\tR\004name\022\033\n\tpower_pct\030\002 \001(\001R" + "\010powerPct\022-\n\005extra\030c \001(\0132\027.google.protob" + "uf.StructR\005extra\"\022\n\020SetPowerResponse\"\205\001\n" + "\014GoForRequest\022\022\n\004name\030\001 \001(\tR\004name\022\020\n\003rpm" + "\030\002 \001(\001R\003rpm\022 \n\013revolutions\030\003 \001(\001R\013revolu" + "tions\022-\n\005extra\030c \001(\0132\027.google.protobuf.S" + "tructR\005extra\"\017\n\rGoForResponse\"\225\001\n\013GoToRe" + "quest\022\022\n\004name\030\001 \001(\tR\004name\022\020\n\003rpm\030\002 \001(\001R\003" + "rpm\0221\n\024position_revolutions\030\003 \001(\001R\023posit" + "ionRevolutions\022-\n\005extra\030c \001(\0132\027.google.p" + "rotobuf.StructR\005extra\"\016\n\014GoToResponse\"d\n" + "\rSetRPMRequest\022\022\n\004name\030\001 \001(\tR\004name\022\020\n\003rp" + "m\030\002 \001(\001R\003rpm\022-\n\005extra\030c \001(\0132\027.google.pro" + "tobuf.StructR\005extra\"\020\n\016SetRPMResponse\"u\n" + "\030ResetZeroPositionRequest\022\022\n\004name\030\001 \001(\tR" + "\004name\022\026\n\006offset\030\002 \001(\001R\006offset\022-\n\005extra\030c" + " \001(\0132\027.google.protobuf.StructR\005extra\"\033\n\031" + "ResetZeroPositionResponse\"W\n\022GetPosition" + "Request\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005extra\030c \001" + "(\0132\027.google.protobuf.StructR\005extra\"1\n\023Ge" + "tPositionResponse\022\032\n\010position\030\001 \001(\001R\010pos" + "ition\"P\n\013StopRequest\022\022\n\004name\030\001 \001(\tR\004name" + "\022-\n\005extra\030c \001(\0132\027.google.protobuf.Struct" + "R\005extra\"\016\n\014StopResponse\"U\n\020IsPoweredRequ" + "est\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005extra\030c \001(\0132\027" + ".google.protobuf.StructR\005extra\"E\n\021IsPowe" + "redResponse\022\023\n\005is_on\030\001 \001(\010R\004isOn\022\033\n\tpowe" + "r_pct\030\002 \001(\001R\010powerPct\"Y\n\024GetPropertiesRe" + "quest\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005extra\030c \001(\013" + "2\027.google.protobuf.StructR\005extra\"F\n\025GetP" + "ropertiesResponse\022-\n\022position_reporting\030" + "\001 \001(\010R\021positionReporting\"`\n\006Status\022\035\n\nis" + "_powered\030\001 \001(\010R\tisPowered\022\032\n\010position\030\003 " + "\001(\001R\010position\022\033\n\tis_moving\030\004 \001(\010R\010isMovi" + "ng\"%\n\017IsMovingRequest\022\022\n\004name\030\001 \001(\tR\004nam" + "e\"/\n\020IsMovingResponse\022\033\n\tis_moving\030\001 \001(\010" + "R\010isMoving2\256\016\n\014MotorService\022\226\001\n\010SetPower" + "\022(.viam.component.motor.v1.SetPowerReque" + "st\032).viam.component.motor.v1.SetPowerRes" + "ponse\"5\240\222)\001\202\323\344\223\002+\032)/viam/api/v1/componen" + "t/motor/{name}/power\022\216\001\n\005GoFor\022%.viam.co" + "mponent.motor.v1.GoForRequest\032&.viam.com" + "ponent.motor.v1.GoForResponse\"6\240\222)\001\202\323\344\223\002" + ",\032*/viam/api/v1/component/motor/{name}/g" + "o_for\022\212\001\n\004GoTo\022$.viam.component.motor.v1" + ".GoToRequest\032%.viam.component.motor.v1.G" + "oToResponse\"5\240\222)\001\202\323\344\223\002+\032)/viam/api/v1/co" + "mponent/motor/{name}/go_to\022\222\001\n\006SetRPM\022&." + "viam.component.motor.v1.SetRPMRequest\032\'." + "viam.component.motor.v1.SetRPMResponse\"7" + "\240\222)\001\202\323\344\223\002-\032+/viam/api/v1/component/motor" + "/{name}/set_rpm\022\254\001\n\021ResetZeroPosition\0221." + "viam.component.motor.v1.ResetZeroPositio" + "nRequest\0322.viam.component.motor.v1.Reset" + "ZeroPositionResponse\"0\202\323\344\223\002*\032(/viam/api/" + "v1/component/motor/{name}/zero\022\236\001\n\013GetPo" + "sition\022+.viam.component.motor.v1.GetPosi" + "tionRequest\032,.viam.component.motor.v1.Ge" + "tPositionResponse\"4\202\323\344\223\002.\022,/viam/api/v1/" + "component/motor/{name}/position\022\244\001\n\rGetP" + "roperties\022-.viam.component.motor.v1.GetP" + "ropertiesRequest\032..viam.component.motor." + "v1.GetPropertiesResponse\"4\202\323\344\223\002.\022,/viam/" + "api/v1/component/motor/{name}/features\022\205" + "\001\n\004Stop\022$.viam.component.motor.v1.StopRe" + "quest\032%.viam.component.motor.v1.StopResp" + "onse\"0\202\323\344\223\002*\032(/viam/api/v1/component/mot" + "or/{name}/stop\022\227\001\n\tIsPowered\022).viam.comp" + "onent.motor.v1.IsPoweredRequest\032*.viam.c" + "omponent.motor.v1.IsPoweredResponse\"3\202\323\344" + "\223\002-\022+/viam/api/v1/component/motor/{name}" + "/powered\022\226\001\n\010IsMoving\022(.viam.component.m" + "otor.v1.IsMovingRequest\032).viam.component" + ".motor.v1.IsMovingResponse\"5\202\323\344\223\002/\022-/via" + "m/api/v1/component/motor/{name}/is_movin" + "g\022\210\001\n\tDoCommand\022 .viam.common.v1.DoComma" + "ndRequest\032!.viam.common.v1.DoCommandResp" + "onse\"6\202\323\344\223\0020\"./viam/api/v1/component/mot" + "or/{name}/do_command\022\224\001\n\rGetGeometries\022$" + ".viam.common.v1.GetGeometriesRequest\032%.v" + "iam.common.v1.GetGeometriesResponse\"6\202\323\344" + "\223\0020\022./viam/api/v1/component/motor/{name}" + "/geometriesBA\n\033com.viam.component.motor." + "v1Z\"go.viam.com/api/component/motor/v1b\006" + "proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_deps[3] = { + &::descriptor_table_common_2fv1_2fcommon_2eproto, + &::descriptor_table_google_2fapi_2fannotations_2eproto, + &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, }; -static ::absl::once_flag descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_once; +static ::_pbi::once_flag descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto = { - false, - false, - 3666, - descriptor_table_protodef_component_2fmotor_2fv1_2fmotor_2eproto, + false, false, 3526, descriptor_table_protodef_component_2fmotor_2fv1_2fmotor_2eproto, "component/motor/v1/motor.proto", - &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_once, - descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_deps, - 3, - 21, - schemas, - file_default_instances, - TableStruct_component_2fmotor_2fv1_2fmotor_2eproto::offsets, - file_level_metadata_component_2fmotor_2fv1_2fmotor_2eproto, - file_level_enum_descriptors_component_2fmotor_2fv1_2fmotor_2eproto, + &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_once, descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_deps, 3, 21, + schemas, file_default_instances, TableStruct_component_2fmotor_2fv1_2fmotor_2eproto::offsets, + file_level_metadata_component_2fmotor_2fv1_2fmotor_2eproto, file_level_enum_descriptors_component_2fmotor_2fv1_2fmotor_2eproto, file_level_service_descriptors_component_2fmotor_2fv1_2fmotor_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_getter() { return &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_component_2fmotor_2fv1_2fmotor_2eproto(&descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_component_2fmotor_2fv1_2fmotor_2eproto(&descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto); namespace viam { namespace component { namespace motor { namespace v1 { + // =================================================================== class SetPowerRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SetPowerRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const SetPowerRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const SetPowerRequest* msg); }; -const ::google::protobuf::Struct& SetPowerRequest::_Internal::extra(const SetPowerRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +SetPowerRequest::_Internal::extra(const SetPowerRequest* msg) { + return *msg->extra_; } void SetPowerRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -SetPowerRequest::SetPowerRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +SetPowerRequest::SetPowerRequest(::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.motor.v1.SetPowerRequest) } -inline PROTOBUF_NDEBUG_INLINE SetPowerRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -SetPowerRequest::SetPowerRequest( - ::google::protobuf::Arena* arena, - const SetPowerRequest& from) - : ::google::protobuf::Message(arena) { - SetPowerRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - _impl_.power_pct_ = from._impl_.power_pct_; - +SetPowerRequest::SetPowerRequest(const SetPowerRequest& 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; + } + power_pct_ = from.power_pct_; // @@protoc_insertion_point(copy_constructor:viam.component.motor.v1.SetPowerRequest) } -inline PROTOBUF_NDEBUG_INLINE SetPowerRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} - -inline void SetPowerRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, extra_), - 0, - offsetof(Impl_, power_pct_) - - offsetof(Impl_, extra_) + - sizeof(Impl_::power_pct_)); + +inline void SetPowerRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&extra_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&power_pct_) - + reinterpret_cast(&extra_)) + sizeof(power_pct_)); } + SetPowerRequest::~SetPowerRequest() { // @@protoc_insertion_point(destructor:viam.component.motor.v1.SetPowerRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void SetPowerRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; } -PROTOBUF_NOINLINE void SetPowerRequest::Clear() { +void SetPowerRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void SetPowerRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.motor.v1.SetPowerRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - _impl_.power_pct_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SetPowerRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + power_pct_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SetPowerRequest::_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.motor.v1.SetPowerRequest.name")); + } else + goto handle_unusual; + continue; + // double power_pct = 2 [json_name = "powerPct"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 17)) { + power_pct_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 1, 52, 7> SetPowerRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(SetPowerRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_SetPowerRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(SetPowerRequest, _impl_.name_)}}, - // double power_pct = 2 [json_name = "powerPct"]; - {::_pbi::TcParser::FastF64S1, - {17, 63, 0, PROTOBUF_FIELD_OFFSET(SetPowerRequest, _impl_.power_pct_)}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(SetPowerRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 2, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(SetPowerRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // double power_pct = 2 [json_name = "powerPct"]; - {PROTOBUF_FIELD_OFFSET(SetPowerRequest, _impl_.power_pct_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(SetPowerRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\47\4\0\0\0\0\0\0" - "viam.component.motor.v1.SetPowerRequest" - "name" - }}, -}; - -::uint8_t* SetPowerRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* SetPowerRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.motor.v1.SetPowerRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.motor.v1.SetPowerRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.motor.v1.SetPowerRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // double power_pct = 2 [json_name = "powerPct"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_power_pct = this->_internal_power_pct(); - ::uint64_t raw_power_pct; + uint64_t raw_power_pct; memcpy(&raw_power_pct, &tmp_power_pct, sizeof(tmp_power_pct)); if (raw_power_pct != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 2, this->_internal_power_pct(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_power_pct(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.motor.v1.SetPowerRequest) return target; } -::size_t SetPowerRequest::ByteSizeLong() const { +size_t SetPowerRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.motor.v1.SetPowerRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } // double power_pct = 2 [json_name = "powerPct"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_power_pct = this->_internal_power_pct(); - ::uint64_t raw_power_pct; + uint64_t raw_power_pct; memcpy(&raw_power_pct, &tmp_power_pct, sizeof(tmp_power_pct)); if (raw_power_pct != 0) { - total_size += 9; + total_size += 1 + 8; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData SetPowerRequest::_class_data_ = { - SetPowerRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetPowerRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + SetPowerRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* SetPowerRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetPowerRequest::GetClassData() const { return &_class_data_; } + +void SetPowerRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void SetPowerRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.motor.v1.SetPowerRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void SetPowerRequest::MergeFrom(const SetPowerRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.motor.v1.SetPowerRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_power_pct = from._internal_power_pct(); - ::uint64_t raw_power_pct; + uint64_t raw_power_pct; memcpy(&raw_power_pct, &tmp_power_pct, sizeof(tmp_power_pct)); if (raw_power_pct != 0) { - _this->_internal_set_power_pct(from._internal_power_pct()); + _internal_set_power_pct(from._internal_power_pct()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SetPowerRequest::CopyFrom(const SetPowerRequest& from) { @@ -1117,52 +883,47 @@ void SetPowerRequest::CopyFrom(const SetPowerRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool SetPowerRequest::IsInitialized() const { +bool SetPowerRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* SetPowerRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void SetPowerRequest::InternalSwap(SetPowerRequest* PROTOBUF_RESTRICT other) { +void SetPowerRequest::InternalSwap(SetPowerRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(SetPowerRequest, _impl_.power_pct_) - + sizeof(SetPowerRequest::_impl_.power_pct_) - - PROTOBUF_FIELD_OFFSET(SetPowerRequest, _impl_.extra_)>( - reinterpret_cast(&_impl_.extra_), - reinterpret_cast(&other->_impl_.extra_)); -} - -::google::protobuf::Metadata SetPowerRequest::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(SetPowerRequest, power_pct_) + + sizeof(SetPowerRequest::power_pct_) + - PROTOBUF_FIELD_OFFSET(SetPowerRequest, extra_)>( + reinterpret_cast(&extra_), + reinterpret_cast(&other->extra_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SetPowerRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_getter, &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_once, file_level_metadata_component_2fmotor_2fv1_2fmotor_2eproto[0]); } + // =================================================================== class SetPowerResponse::_Internal { public: }; -SetPowerResponse::SetPowerResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +SetPowerResponse::SetPowerResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.component.motor.v1.SetPowerResponse) } -SetPowerResponse::SetPowerResponse( - ::google::protobuf::Arena* arena, - const SetPowerResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - SetPowerResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +SetPowerResponse::SetPowerResponse(const SetPowerResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.component.motor.v1.SetPowerResponse) } @@ -1170,316 +931,313 @@ SetPowerResponse::SetPowerResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetPowerResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetPowerResponse::GetClassData() const { return &_class_data_; } + + + -::google::protobuf::Metadata SetPowerResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata SetPowerResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_getter, &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_once, file_level_metadata_component_2fmotor_2fv1_2fmotor_2eproto[1]); } + // =================================================================== class GoForRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GoForRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const GoForRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GoForRequest* msg); }; -const ::google::protobuf::Struct& GoForRequest::_Internal::extra(const GoForRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +GoForRequest::_Internal::extra(const GoForRequest* msg) { + return *msg->extra_; } void GoForRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -GoForRequest::GoForRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GoForRequest::GoForRequest(::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.motor.v1.GoForRequest) } -inline PROTOBUF_NDEBUG_INLINE GoForRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -GoForRequest::GoForRequest( - ::google::protobuf::Arena* arena, - const GoForRequest& from) - : ::google::protobuf::Message(arena) { - GoForRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, rpm_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, rpm_), - offsetof(Impl_, revolutions_) - - offsetof(Impl_, rpm_) + - sizeof(Impl_::revolutions_)); - +GoForRequest::GoForRequest(const GoForRequest& 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; + } + ::memcpy(&rpm_, &from.rpm_, + static_cast(reinterpret_cast(&revolutions_) - + reinterpret_cast(&rpm_)) + sizeof(revolutions_)); // @@protoc_insertion_point(copy_constructor:viam.component.motor.v1.GoForRequest) } -inline PROTOBUF_NDEBUG_INLINE GoForRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} - -inline void GoForRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, extra_), - 0, - offsetof(Impl_, revolutions_) - - offsetof(Impl_, extra_) + - sizeof(Impl_::revolutions_)); + +inline void GoForRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&extra_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&revolutions_) - + reinterpret_cast(&extra_)) + sizeof(revolutions_)); } + GoForRequest::~GoForRequest() { // @@protoc_insertion_point(destructor:viam.component.motor.v1.GoForRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GoForRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void GoForRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GoForRequest::Clear() { +void GoForRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.motor.v1.GoForRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - ::memset(&_impl_.rpm_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.revolutions_) - - reinterpret_cast(&_impl_.rpm_)) + sizeof(_impl_.revolutions_)); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GoForRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + ::memset(&rpm_, 0, static_cast( + reinterpret_cast(&revolutions_) - + reinterpret_cast(&rpm_)) + sizeof(revolutions_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GoForRequest::_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.motor.v1.GoForRequest.name")); + } else + goto handle_unusual; + continue; + // double rpm = 2 [json_name = "rpm"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 17)) { + rpm_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double revolutions = 3 [json_name = "revolutions"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 25)) { + revolutions_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 1, 49, 7> GoForRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GoForRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GoForRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GoForRequest, _impl_.name_)}}, - // double rpm = 2 [json_name = "rpm"]; - {::_pbi::TcParser::FastF64S1, - {17, 63, 0, PROTOBUF_FIELD_OFFSET(GoForRequest, _impl_.rpm_)}}, - // double revolutions = 3 [json_name = "revolutions"]; - {::_pbi::TcParser::FastF64S1, - {25, 63, 0, PROTOBUF_FIELD_OFFSET(GoForRequest, _impl_.revolutions_)}}, - }}, {{ - 99, 0, 1, - 65534, 3, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(GoForRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // double rpm = 2 [json_name = "rpm"]; - {PROTOBUF_FIELD_OFFSET(GoForRequest, _impl_.rpm_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double revolutions = 3 [json_name = "revolutions"]; - {PROTOBUF_FIELD_OFFSET(GoForRequest, _impl_.revolutions_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(GoForRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\44\4\0\0\0\0\0\0" - "viam.component.motor.v1.GoForRequest" - "name" - }}, -}; - -::uint8_t* GoForRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GoForRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.motor.v1.GoForRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.motor.v1.GoForRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.motor.v1.GoForRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // double rpm = 2 [json_name = "rpm"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_rpm = this->_internal_rpm(); - ::uint64_t raw_rpm; + uint64_t raw_rpm; memcpy(&raw_rpm, &tmp_rpm, sizeof(tmp_rpm)); if (raw_rpm != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 2, this->_internal_rpm(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_rpm(), target); } // double revolutions = 3 [json_name = "revolutions"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_revolutions = this->_internal_revolutions(); - ::uint64_t raw_revolutions; + uint64_t raw_revolutions; memcpy(&raw_revolutions, &tmp_revolutions, sizeof(tmp_revolutions)); if (raw_revolutions != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 3, this->_internal_revolutions(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(3, this->_internal_revolutions(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.motor.v1.GoForRequest) return target; } -::size_t GoForRequest::ByteSizeLong() const { +size_t GoForRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.motor.v1.GoForRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } // double rpm = 2 [json_name = "rpm"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_rpm = this->_internal_rpm(); - ::uint64_t raw_rpm; + uint64_t raw_rpm; memcpy(&raw_rpm, &tmp_rpm, sizeof(tmp_rpm)); if (raw_rpm != 0) { - total_size += 9; + total_size += 1 + 8; } // double revolutions = 3 [json_name = "revolutions"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_revolutions = this->_internal_revolutions(); - ::uint64_t raw_revolutions; + uint64_t raw_revolutions; memcpy(&raw_revolutions, &tmp_revolutions, sizeof(tmp_revolutions)); if (raw_revolutions != 0) { - total_size += 9; + total_size += 1 + 8; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GoForRequest::_class_data_ = { - GoForRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GoForRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GoForRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GoForRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GoForRequest::GetClassData() const { return &_class_data_; } + +void GoForRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GoForRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.motor.v1.GoForRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GoForRequest::MergeFrom(const GoForRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.motor.v1.GoForRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_rpm = from._internal_rpm(); - ::uint64_t raw_rpm; + uint64_t raw_rpm; memcpy(&raw_rpm, &tmp_rpm, sizeof(tmp_rpm)); if (raw_rpm != 0) { - _this->_internal_set_rpm(from._internal_rpm()); + _internal_set_rpm(from._internal_rpm()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_revolutions = from._internal_revolutions(); - ::uint64_t raw_revolutions; + uint64_t raw_revolutions; memcpy(&raw_revolutions, &tmp_revolutions, sizeof(tmp_revolutions)); if (raw_revolutions != 0) { - _this->_internal_set_revolutions(from._internal_revolutions()); + _internal_set_revolutions(from._internal_revolutions()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GoForRequest::CopyFrom(const GoForRequest& from) { @@ -1489,52 +1247,47 @@ void GoForRequest::CopyFrom(const GoForRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GoForRequest::IsInitialized() const { +bool GoForRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GoForRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GoForRequest::InternalSwap(GoForRequest* PROTOBUF_RESTRICT other) { +void GoForRequest::InternalSwap(GoForRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(GoForRequest, _impl_.revolutions_) - + sizeof(GoForRequest::_impl_.revolutions_) - - PROTOBUF_FIELD_OFFSET(GoForRequest, _impl_.extra_)>( - reinterpret_cast(&_impl_.extra_), - reinterpret_cast(&other->_impl_.extra_)); -} - -::google::protobuf::Metadata GoForRequest::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GoForRequest, revolutions_) + + sizeof(GoForRequest::revolutions_) + - PROTOBUF_FIELD_OFFSET(GoForRequest, extra_)>( + reinterpret_cast(&extra_), + reinterpret_cast(&other->extra_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GoForRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_getter, &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_once, file_level_metadata_component_2fmotor_2fv1_2fmotor_2eproto[2]); } + // =================================================================== class GoForResponse::_Internal { public: }; -GoForResponse::GoForResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +GoForResponse::GoForResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.component.motor.v1.GoForResponse) } -GoForResponse::GoForResponse( - ::google::protobuf::Arena* arena, - const GoForResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - GoForResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +GoForResponse::GoForResponse(const GoForResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.component.motor.v1.GoForResponse) } @@ -1542,316 +1295,313 @@ GoForResponse::GoForResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GoForResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GoForResponse::GetClassData() const { return &_class_data_; } -::google::protobuf::Metadata GoForResponse::GetMetadata() const { + + + +::PROTOBUF_NAMESPACE_ID::Metadata GoForResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_getter, &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_once, file_level_metadata_component_2fmotor_2fv1_2fmotor_2eproto[3]); } + // =================================================================== class GoToRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GoToRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const GoToRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GoToRequest* msg); }; -const ::google::protobuf::Struct& GoToRequest::_Internal::extra(const GoToRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +GoToRequest::_Internal::extra(const GoToRequest* msg) { + return *msg->extra_; } void GoToRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -GoToRequest::GoToRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GoToRequest::GoToRequest(::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.motor.v1.GoToRequest) } -inline PROTOBUF_NDEBUG_INLINE GoToRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -GoToRequest::GoToRequest( - ::google::protobuf::Arena* arena, - const GoToRequest& from) - : ::google::protobuf::Message(arena) { - GoToRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, rpm_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, rpm_), - offsetof(Impl_, position_revolutions_) - - offsetof(Impl_, rpm_) + - sizeof(Impl_::position_revolutions_)); - +GoToRequest::GoToRequest(const GoToRequest& 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; + } + ::memcpy(&rpm_, &from.rpm_, + static_cast(reinterpret_cast(&position_revolutions_) - + reinterpret_cast(&rpm_)) + sizeof(position_revolutions_)); // @@protoc_insertion_point(copy_constructor:viam.component.motor.v1.GoToRequest) } -inline PROTOBUF_NDEBUG_INLINE GoToRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} - -inline void GoToRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, extra_), - 0, - offsetof(Impl_, position_revolutions_) - - offsetof(Impl_, extra_) + - sizeof(Impl_::position_revolutions_)); + +inline void GoToRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&extra_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&position_revolutions_) - + reinterpret_cast(&extra_)) + sizeof(position_revolutions_)); } + GoToRequest::~GoToRequest() { // @@protoc_insertion_point(destructor:viam.component.motor.v1.GoToRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GoToRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void GoToRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GoToRequest::Clear() { +void GoToRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.motor.v1.GoToRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - ::memset(&_impl_.rpm_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.position_revolutions_) - - reinterpret_cast(&_impl_.rpm_)) + sizeof(_impl_.position_revolutions_)); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GoToRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + ::memset(&rpm_, 0, static_cast( + reinterpret_cast(&position_revolutions_) - + reinterpret_cast(&rpm_)) + sizeof(position_revolutions_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GoToRequest::_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.motor.v1.GoToRequest.name")); + } else + goto handle_unusual; + continue; + // double rpm = 2 [json_name = "rpm"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 17)) { + rpm_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // double position_revolutions = 3 [json_name = "positionRevolutions"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 25)) { + position_revolutions_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 1, 48, 7> GoToRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GoToRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GoToRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GoToRequest, _impl_.name_)}}, - // double rpm = 2 [json_name = "rpm"]; - {::_pbi::TcParser::FastF64S1, - {17, 63, 0, PROTOBUF_FIELD_OFFSET(GoToRequest, _impl_.rpm_)}}, - // double position_revolutions = 3 [json_name = "positionRevolutions"]; - {::_pbi::TcParser::FastF64S1, - {25, 63, 0, PROTOBUF_FIELD_OFFSET(GoToRequest, _impl_.position_revolutions_)}}, - }}, {{ - 99, 0, 1, - 65534, 3, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(GoToRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // double rpm = 2 [json_name = "rpm"]; - {PROTOBUF_FIELD_OFFSET(GoToRequest, _impl_.rpm_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double position_revolutions = 3 [json_name = "positionRevolutions"]; - {PROTOBUF_FIELD_OFFSET(GoToRequest, _impl_.position_revolutions_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(GoToRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\43\4\0\0\0\0\0\0" - "viam.component.motor.v1.GoToRequest" - "name" - }}, -}; - -::uint8_t* GoToRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GoToRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.motor.v1.GoToRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.motor.v1.GoToRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.motor.v1.GoToRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // double rpm = 2 [json_name = "rpm"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_rpm = this->_internal_rpm(); - ::uint64_t raw_rpm; + uint64_t raw_rpm; memcpy(&raw_rpm, &tmp_rpm, sizeof(tmp_rpm)); if (raw_rpm != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 2, this->_internal_rpm(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_rpm(), target); } // double position_revolutions = 3 [json_name = "positionRevolutions"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_position_revolutions = this->_internal_position_revolutions(); - ::uint64_t raw_position_revolutions; + uint64_t raw_position_revolutions; memcpy(&raw_position_revolutions, &tmp_position_revolutions, sizeof(tmp_position_revolutions)); if (raw_position_revolutions != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 3, this->_internal_position_revolutions(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(3, this->_internal_position_revolutions(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.motor.v1.GoToRequest) return target; } -::size_t GoToRequest::ByteSizeLong() const { +size_t GoToRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.motor.v1.GoToRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } // double rpm = 2 [json_name = "rpm"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_rpm = this->_internal_rpm(); - ::uint64_t raw_rpm; + uint64_t raw_rpm; memcpy(&raw_rpm, &tmp_rpm, sizeof(tmp_rpm)); if (raw_rpm != 0) { - total_size += 9; + total_size += 1 + 8; } // double position_revolutions = 3 [json_name = "positionRevolutions"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_position_revolutions = this->_internal_position_revolutions(); - ::uint64_t raw_position_revolutions; + uint64_t raw_position_revolutions; memcpy(&raw_position_revolutions, &tmp_position_revolutions, sizeof(tmp_position_revolutions)); if (raw_position_revolutions != 0) { - total_size += 9; + total_size += 1 + 8; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GoToRequest::_class_data_ = { - GoToRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GoToRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GoToRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GoToRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GoToRequest::GetClassData() const { return &_class_data_; } + +void GoToRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GoToRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.motor.v1.GoToRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GoToRequest::MergeFrom(const GoToRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.motor.v1.GoToRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_rpm = from._internal_rpm(); - ::uint64_t raw_rpm; + uint64_t raw_rpm; memcpy(&raw_rpm, &tmp_rpm, sizeof(tmp_rpm)); if (raw_rpm != 0) { - _this->_internal_set_rpm(from._internal_rpm()); + _internal_set_rpm(from._internal_rpm()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_position_revolutions = from._internal_position_revolutions(); - ::uint64_t raw_position_revolutions; + uint64_t raw_position_revolutions; memcpy(&raw_position_revolutions, &tmp_position_revolutions, sizeof(tmp_position_revolutions)); if (raw_position_revolutions != 0) { - _this->_internal_set_position_revolutions(from._internal_position_revolutions()); + _internal_set_position_revolutions(from._internal_position_revolutions()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GoToRequest::CopyFrom(const GoToRequest& from) { @@ -1861,52 +1611,47 @@ void GoToRequest::CopyFrom(const GoToRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GoToRequest::IsInitialized() const { +bool GoToRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GoToRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GoToRequest::InternalSwap(GoToRequest* PROTOBUF_RESTRICT other) { +void GoToRequest::InternalSwap(GoToRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(GoToRequest, _impl_.position_revolutions_) - + sizeof(GoToRequest::_impl_.position_revolutions_) - - PROTOBUF_FIELD_OFFSET(GoToRequest, _impl_.extra_)>( - reinterpret_cast(&_impl_.extra_), - reinterpret_cast(&other->_impl_.extra_)); -} - -::google::protobuf::Metadata GoToRequest::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GoToRequest, position_revolutions_) + + sizeof(GoToRequest::position_revolutions_) + - PROTOBUF_FIELD_OFFSET(GoToRequest, extra_)>( + reinterpret_cast(&extra_), + reinterpret_cast(&other->extra_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GoToRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_getter, &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_once, file_level_metadata_component_2fmotor_2fv1_2fmotor_2eproto[4]); } + // =================================================================== class GoToResponse::_Internal { public: }; -GoToResponse::GoToResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +GoToResponse::GoToResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.component.motor.v1.GoToResponse) } -GoToResponse::GoToResponse( - ::google::protobuf::Arena* arena, - const GoToResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - GoToResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +GoToResponse::GoToResponse(const GoToResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.component.motor.v1.GoToResponse) } @@ -1914,275 +1659,275 @@ GoToResponse::GoToResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GoToResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GoToResponse::GetClassData() const { return &_class_data_; } + + + -::google::protobuf::Metadata GoToResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GoToResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_getter, &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_once, file_level_metadata_component_2fmotor_2fv1_2fmotor_2eproto[5]); } + // =================================================================== class SetRPMRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SetRPMRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const SetRPMRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const SetRPMRequest* msg); }; -const ::google::protobuf::Struct& SetRPMRequest::_Internal::extra(const SetRPMRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +SetRPMRequest::_Internal::extra(const SetRPMRequest* msg) { + return *msg->extra_; } void SetRPMRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -SetRPMRequest::SetRPMRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +SetRPMRequest::SetRPMRequest(::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.motor.v1.SetRPMRequest) } -inline PROTOBUF_NDEBUG_INLINE SetRPMRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -SetRPMRequest::SetRPMRequest( - ::google::protobuf::Arena* arena, - const SetRPMRequest& from) - : ::google::protobuf::Message(arena) { - SetRPMRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - _impl_.rpm_ = from._impl_.rpm_; - +SetRPMRequest::SetRPMRequest(const SetRPMRequest& 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; + } + rpm_ = from.rpm_; // @@protoc_insertion_point(copy_constructor:viam.component.motor.v1.SetRPMRequest) } -inline PROTOBUF_NDEBUG_INLINE SetRPMRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} - -inline void SetRPMRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, extra_), - 0, - offsetof(Impl_, rpm_) - - offsetof(Impl_, extra_) + - sizeof(Impl_::rpm_)); + +inline void SetRPMRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&extra_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&rpm_) - + reinterpret_cast(&extra_)) + sizeof(rpm_)); } + SetRPMRequest::~SetRPMRequest() { // @@protoc_insertion_point(destructor:viam.component.motor.v1.SetRPMRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void SetRPMRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void SetRPMRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void SetRPMRequest::Clear() { +void SetRPMRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.motor.v1.SetRPMRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - _impl_.rpm_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SetRPMRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + rpm_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SetRPMRequest::_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.motor.v1.SetRPMRequest.name")); + } else + goto handle_unusual; + continue; + // double rpm = 2 [json_name = "rpm"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 17)) { + rpm_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 1, 50, 7> SetRPMRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(SetRPMRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_SetRPMRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(SetRPMRequest, _impl_.name_)}}, - // double rpm = 2 [json_name = "rpm"]; - {::_pbi::TcParser::FastF64S1, - {17, 63, 0, PROTOBUF_FIELD_OFFSET(SetRPMRequest, _impl_.rpm_)}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(SetRPMRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 2, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(SetRPMRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // double rpm = 2 [json_name = "rpm"]; - {PROTOBUF_FIELD_OFFSET(SetRPMRequest, _impl_.rpm_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(SetRPMRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\45\4\0\0\0\0\0\0" - "viam.component.motor.v1.SetRPMRequest" - "name" - }}, -}; - -::uint8_t* SetRPMRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* SetRPMRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.motor.v1.SetRPMRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.motor.v1.SetRPMRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.motor.v1.SetRPMRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // double rpm = 2 [json_name = "rpm"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_rpm = this->_internal_rpm(); - ::uint64_t raw_rpm; + uint64_t raw_rpm; memcpy(&raw_rpm, &tmp_rpm, sizeof(tmp_rpm)); if (raw_rpm != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 2, this->_internal_rpm(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_rpm(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.motor.v1.SetRPMRequest) return target; } -::size_t SetRPMRequest::ByteSizeLong() const { +size_t SetRPMRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.motor.v1.SetRPMRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } // double rpm = 2 [json_name = "rpm"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_rpm = this->_internal_rpm(); - ::uint64_t raw_rpm; + uint64_t raw_rpm; memcpy(&raw_rpm, &tmp_rpm, sizeof(tmp_rpm)); if (raw_rpm != 0) { - total_size += 9; + total_size += 1 + 8; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData SetRPMRequest::_class_data_ = { - SetRPMRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetRPMRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + SetRPMRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* SetRPMRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetRPMRequest::GetClassData() const { return &_class_data_; } + +void SetRPMRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void SetRPMRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.motor.v1.SetRPMRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void SetRPMRequest::MergeFrom(const SetRPMRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.motor.v1.SetRPMRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_rpm = from._internal_rpm(); - ::uint64_t raw_rpm; + uint64_t raw_rpm; memcpy(&raw_rpm, &tmp_rpm, sizeof(tmp_rpm)); if (raw_rpm != 0) { - _this->_internal_set_rpm(from._internal_rpm()); + _internal_set_rpm(from._internal_rpm()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SetRPMRequest::CopyFrom(const SetRPMRequest& from) { @@ -2192,52 +1937,47 @@ void SetRPMRequest::CopyFrom(const SetRPMRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool SetRPMRequest::IsInitialized() const { +bool SetRPMRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* SetRPMRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void SetRPMRequest::InternalSwap(SetRPMRequest* PROTOBUF_RESTRICT other) { +void SetRPMRequest::InternalSwap(SetRPMRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(SetRPMRequest, _impl_.rpm_) - + sizeof(SetRPMRequest::_impl_.rpm_) - - PROTOBUF_FIELD_OFFSET(SetRPMRequest, _impl_.extra_)>( - reinterpret_cast(&_impl_.extra_), - reinterpret_cast(&other->_impl_.extra_)); -} - -::google::protobuf::Metadata SetRPMRequest::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(SetRPMRequest, rpm_) + + sizeof(SetRPMRequest::rpm_) + - PROTOBUF_FIELD_OFFSET(SetRPMRequest, extra_)>( + reinterpret_cast(&extra_), + reinterpret_cast(&other->extra_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SetRPMRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_getter, &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_once, file_level_metadata_component_2fmotor_2fv1_2fmotor_2eproto[6]); } + // =================================================================== class SetRPMResponse::_Internal { public: }; -SetRPMResponse::SetRPMResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +SetRPMResponse::SetRPMResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.component.motor.v1.SetRPMResponse) } -SetRPMResponse::SetRPMResponse( - ::google::protobuf::Arena* arena, - const SetRPMResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - SetRPMResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +SetRPMResponse::SetRPMResponse(const SetRPMResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.component.motor.v1.SetRPMResponse) } @@ -2245,275 +1985,275 @@ SetRPMResponse::SetRPMResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetRPMResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetRPMResponse::GetClassData() const { return &_class_data_; } + + + -::google::protobuf::Metadata SetRPMResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata SetRPMResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_getter, &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_once, file_level_metadata_component_2fmotor_2fv1_2fmotor_2eproto[7]); } + // =================================================================== class ResetZeroPositionRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ResetZeroPositionRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const ResetZeroPositionRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const ResetZeroPositionRequest* msg); }; -const ::google::protobuf::Struct& ResetZeroPositionRequest::_Internal::extra(const ResetZeroPositionRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +ResetZeroPositionRequest::_Internal::extra(const ResetZeroPositionRequest* msg) { + return *msg->extra_; } void ResetZeroPositionRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -ResetZeroPositionRequest::ResetZeroPositionRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ResetZeroPositionRequest::ResetZeroPositionRequest(::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.motor.v1.ResetZeroPositionRequest) } -inline PROTOBUF_NDEBUG_INLINE ResetZeroPositionRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -ResetZeroPositionRequest::ResetZeroPositionRequest( - ::google::protobuf::Arena* arena, - const ResetZeroPositionRequest& from) - : ::google::protobuf::Message(arena) { - ResetZeroPositionRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - _impl_.offset_ = from._impl_.offset_; - +ResetZeroPositionRequest::ResetZeroPositionRequest(const ResetZeroPositionRequest& 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; + } + offset_ = from.offset_; // @@protoc_insertion_point(copy_constructor:viam.component.motor.v1.ResetZeroPositionRequest) } -inline PROTOBUF_NDEBUG_INLINE ResetZeroPositionRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} - -inline void ResetZeroPositionRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, extra_), - 0, - offsetof(Impl_, offset_) - - offsetof(Impl_, extra_) + - sizeof(Impl_::offset_)); + +inline void ResetZeroPositionRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&extra_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&offset_) - + reinterpret_cast(&extra_)) + sizeof(offset_)); } + ResetZeroPositionRequest::~ResetZeroPositionRequest() { // @@protoc_insertion_point(destructor:viam.component.motor.v1.ResetZeroPositionRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ResetZeroPositionRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void ResetZeroPositionRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void ResetZeroPositionRequest::Clear() { +void ResetZeroPositionRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.motor.v1.ResetZeroPositionRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - _impl_.offset_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ResetZeroPositionRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + offset_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ResetZeroPositionRequest::_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.motor.v1.ResetZeroPositionRequest.name")); + } else + goto handle_unusual; + continue; + // double offset = 2 [json_name = "offset"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 17)) { + offset_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 1, 61, 7> ResetZeroPositionRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ResetZeroPositionRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ResetZeroPositionRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ResetZeroPositionRequest, _impl_.name_)}}, - // double offset = 2 [json_name = "offset"]; - {::_pbi::TcParser::FastF64S1, - {17, 63, 0, PROTOBUF_FIELD_OFFSET(ResetZeroPositionRequest, _impl_.offset_)}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(ResetZeroPositionRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 2, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(ResetZeroPositionRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // double offset = 2 [json_name = "offset"]; - {PROTOBUF_FIELD_OFFSET(ResetZeroPositionRequest, _impl_.offset_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(ResetZeroPositionRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\60\4\0\0\0\0\0\0" - "viam.component.motor.v1.ResetZeroPositionRequest" - "name" - }}, -}; - -::uint8_t* ResetZeroPositionRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ResetZeroPositionRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.motor.v1.ResetZeroPositionRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.motor.v1.ResetZeroPositionRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.motor.v1.ResetZeroPositionRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // double offset = 2 [json_name = "offset"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_offset = this->_internal_offset(); - ::uint64_t raw_offset; + uint64_t raw_offset; memcpy(&raw_offset, &tmp_offset, sizeof(tmp_offset)); if (raw_offset != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 2, this->_internal_offset(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_offset(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.motor.v1.ResetZeroPositionRequest) return target; } -::size_t ResetZeroPositionRequest::ByteSizeLong() const { +size_t ResetZeroPositionRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.motor.v1.ResetZeroPositionRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } // double offset = 2 [json_name = "offset"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_offset = this->_internal_offset(); - ::uint64_t raw_offset; + uint64_t raw_offset; memcpy(&raw_offset, &tmp_offset, sizeof(tmp_offset)); if (raw_offset != 0) { - total_size += 9; + total_size += 1 + 8; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ResetZeroPositionRequest::_class_data_ = { - ResetZeroPositionRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ResetZeroPositionRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ResetZeroPositionRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* ResetZeroPositionRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ResetZeroPositionRequest::GetClassData() const { return &_class_data_; } + +void ResetZeroPositionRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ResetZeroPositionRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.motor.v1.ResetZeroPositionRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ResetZeroPositionRequest::MergeFrom(const ResetZeroPositionRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.motor.v1.ResetZeroPositionRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_offset = from._internal_offset(); - ::uint64_t raw_offset; + uint64_t raw_offset; memcpy(&raw_offset, &tmp_offset, sizeof(tmp_offset)); if (raw_offset != 0) { - _this->_internal_set_offset(from._internal_offset()); + _internal_set_offset(from._internal_offset()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ResetZeroPositionRequest::CopyFrom(const ResetZeroPositionRequest& from) { @@ -2523,52 +2263,47 @@ void ResetZeroPositionRequest::CopyFrom(const ResetZeroPositionRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ResetZeroPositionRequest::IsInitialized() const { +bool ResetZeroPositionRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* ResetZeroPositionRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ResetZeroPositionRequest::InternalSwap(ResetZeroPositionRequest* PROTOBUF_RESTRICT other) { +void ResetZeroPositionRequest::InternalSwap(ResetZeroPositionRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(ResetZeroPositionRequest, _impl_.offset_) - + sizeof(ResetZeroPositionRequest::_impl_.offset_) - - PROTOBUF_FIELD_OFFSET(ResetZeroPositionRequest, _impl_.extra_)>( - reinterpret_cast(&_impl_.extra_), - reinterpret_cast(&other->_impl_.extra_)); -} - -::google::protobuf::Metadata ResetZeroPositionRequest::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(ResetZeroPositionRequest, offset_) + + sizeof(ResetZeroPositionRequest::offset_) + - PROTOBUF_FIELD_OFFSET(ResetZeroPositionRequest, extra_)>( + reinterpret_cast(&extra_), + reinterpret_cast(&other->extra_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ResetZeroPositionRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_getter, &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_once, file_level_metadata_component_2fmotor_2fv1_2fmotor_2eproto[8]); } + // =================================================================== class ResetZeroPositionResponse::_Internal { public: }; -ResetZeroPositionResponse::ResetZeroPositionResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +ResetZeroPositionResponse::ResetZeroPositionResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.component.motor.v1.ResetZeroPositionResponse) } -ResetZeroPositionResponse::ResetZeroPositionResponse( - ::google::protobuf::Arena* arena, - const ResetZeroPositionResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - ResetZeroPositionResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +ResetZeroPositionResponse::ResetZeroPositionResponse(const ResetZeroPositionResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.component.motor.v1.ResetZeroPositionResponse) } @@ -2576,233 +2311,236 @@ ResetZeroPositionResponse::ResetZeroPositionResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ResetZeroPositionResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ResetZeroPositionResponse::GetClassData() const { return &_class_data_; } + + + -::google::protobuf::Metadata ResetZeroPositionResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ResetZeroPositionResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_getter, &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_once, file_level_metadata_component_2fmotor_2fv1_2fmotor_2eproto[9]); } + // =================================================================== class GetPositionRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetPositionRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const GetPositionRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetPositionRequest* msg); }; -const ::google::protobuf::Struct& GetPositionRequest::_Internal::extra(const GetPositionRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetPositionRequest::_Internal::extra(const GetPositionRequest* msg) { + return *msg->extra_; } void GetPositionRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -GetPositionRequest::GetPositionRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetPositionRequest::GetPositionRequest(::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.motor.v1.GetPositionRequest) } -inline PROTOBUF_NDEBUG_INLINE GetPositionRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -GetPositionRequest::GetPositionRequest( - ::google::protobuf::Arena* arena, - const GetPositionRequest& from) - : ::google::protobuf::Message(arena) { - GetPositionRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +GetPositionRequest::GetPositionRequest(const GetPositionRequest& 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.motor.v1.GetPositionRequest) } -inline PROTOBUF_NDEBUG_INLINE GetPositionRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} -inline void GetPositionRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void GetPositionRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + GetPositionRequest::~GetPositionRequest() { // @@protoc_insertion_point(destructor:viam.component.motor.v1.GetPositionRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetPositionRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void GetPositionRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetPositionRequest::Clear() { +void GetPositionRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.motor.v1.GetPositionRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetPositionRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPositionRequest::_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.motor.v1.GetPositionRequest.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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 2, 1, 55, 7> GetPositionRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetPositionRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetPositionRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetPositionRequest, _impl_.name_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(GetPositionRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 1, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(GetPositionRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(GetPositionRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\52\4\0\0\0\0\0\0" - "viam.component.motor.v1.GetPositionRequest" - "name" - }}, -}; - -::uint8_t* GetPositionRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetPositionRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.motor.v1.GetPositionRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.motor.v1.GetPositionRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.motor.v1.GetPositionRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.motor.v1.GetPositionRequest) return target; } -::size_t GetPositionRequest::ByteSizeLong() const { +size_t GetPositionRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.motor.v1.GetPositionRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetPositionRequest::_class_data_ = { - GetPositionRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPositionRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetPositionRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetPositionRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPositionRequest::GetClassData() const { return &_class_data_; } + +void GetPositionRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetPositionRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.motor.v1.GetPositionRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetPositionRequest::MergeFrom(const GetPositionRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.motor.v1.GetPositionRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetPositionRequest::CopyFrom(const GetPositionRequest& from) { @@ -2812,185 +2550,186 @@ void GetPositionRequest::CopyFrom(const GetPositionRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetPositionRequest::IsInitialized() const { +bool GetPositionRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetPositionRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetPositionRequest::InternalSwap(GetPositionRequest* PROTOBUF_RESTRICT other) { +void GetPositionRequest::InternalSwap(GetPositionRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.extra_, other->_impl_.extra_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(extra_, other->extra_); } -::google::protobuf::Metadata GetPositionRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetPositionRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_getter, &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_once, file_level_metadata_component_2fmotor_2fv1_2fmotor_2eproto[10]); } + // =================================================================== class GetPositionResponse::_Internal { public: }; -GetPositionResponse::GetPositionResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetPositionResponse::GetPositionResponse(::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.motor.v1.GetPositionResponse) } -GetPositionResponse::GetPositionResponse( - ::google::protobuf::Arena* arena, const GetPositionResponse& from) - : GetPositionResponse(arena) { - MergeFrom(from); +GetPositionResponse::GetPositionResponse(const GetPositionResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + position_ = from.position_; + // @@protoc_insertion_point(copy_constructor:viam.component.motor.v1.GetPositionResponse) } -inline PROTOBUF_NDEBUG_INLINE GetPositionResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void GetPositionResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.position_ = {}; +inline void GetPositionResponse::SharedCtor() { +position_ = 0; } + GetPositionResponse::~GetPositionResponse() { // @@protoc_insertion_point(destructor:viam.component.motor.v1.GetPositionResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetPositionResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void GetPositionResponse::Clear() { +void GetPositionResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetPositionResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.motor.v1.GetPositionResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.position_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetPositionResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + position_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPositionResponse::_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) { + // double position = 1 [json_name = "position"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 9)) { + position_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> GetPositionResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetPositionResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // double position = 1 [json_name = "position"]; - {::_pbi::TcParser::FastF64S1, - {9, 63, 0, PROTOBUF_FIELD_OFFSET(GetPositionResponse, _impl_.position_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // double position = 1 [json_name = "position"]; - {PROTOBUF_FIELD_OFFSET(GetPositionResponse, _impl_.position_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* GetPositionResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetPositionResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.motor.v1.GetPositionResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // double position = 1 [json_name = "position"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_position = this->_internal_position(); - ::uint64_t raw_position; + uint64_t raw_position; memcpy(&raw_position, &tmp_position, sizeof(tmp_position)); if (raw_position != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 1, this->_internal_position(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(1, this->_internal_position(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.motor.v1.GetPositionResponse) return target; } -::size_t GetPositionResponse::ByteSizeLong() const { +size_t GetPositionResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.motor.v1.GetPositionResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // double position = 1 [json_name = "position"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_position = this->_internal_position(); - ::uint64_t raw_position; + uint64_t raw_position; memcpy(&raw_position, &tmp_position, sizeof(tmp_position)); if (raw_position != 0) { - total_size += 9; + total_size += 1 + 8; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetPositionResponse::_class_data_ = { - GetPositionResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPositionResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetPositionResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetPositionResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPositionResponse::GetClassData() const { return &_class_data_; } + +void GetPositionResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetPositionResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.motor.v1.GetPositionResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetPositionResponse::MergeFrom(const GetPositionResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.motor.v1.GetPositionResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_position = from._internal_position(); - ::uint64_t raw_position; + uint64_t raw_position; memcpy(&raw_position, &tmp_position, sizeof(tmp_position)); if (raw_position != 0) { - _this->_internal_set_position(from._internal_position()); + _internal_set_position(from._internal_position()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetPositionResponse::CopyFrom(const GetPositionResponse& from) { @@ -3000,242 +2739,234 @@ void GetPositionResponse::CopyFrom(const GetPositionResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetPositionResponse::IsInitialized() const { +bool GetPositionResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetPositionResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetPositionResponse::InternalSwap(GetPositionResponse* PROTOBUF_RESTRICT other) { +void GetPositionResponse::InternalSwap(GetPositionResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.position_, other->_impl_.position_); + swap(position_, other->position_); } -::google::protobuf::Metadata GetPositionResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetPositionResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_getter, &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_once, file_level_metadata_component_2fmotor_2fv1_2fmotor_2eproto[11]); } + // =================================================================== class StopRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(StopRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const StopRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const StopRequest* msg); }; -const ::google::protobuf::Struct& StopRequest::_Internal::extra(const StopRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +StopRequest::_Internal::extra(const StopRequest* msg) { + return *msg->extra_; } void StopRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -StopRequest::StopRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +StopRequest::StopRequest(::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.motor.v1.StopRequest) } -inline PROTOBUF_NDEBUG_INLINE StopRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -StopRequest::StopRequest( - ::google::protobuf::Arena* arena, - const StopRequest& from) - : ::google::protobuf::Message(arena) { - StopRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +StopRequest::StopRequest(const StopRequest& 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.motor.v1.StopRequest) } -inline PROTOBUF_NDEBUG_INLINE StopRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} -inline void StopRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void StopRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + StopRequest::~StopRequest() { // @@protoc_insertion_point(destructor:viam.component.motor.v1.StopRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void StopRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void StopRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void StopRequest::Clear() { +void StopRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.motor.v1.StopRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* StopRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* StopRequest::_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.motor.v1.StopRequest.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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 2, 1, 48, 7> StopRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(StopRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_StopRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(StopRequest, _impl_.name_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(StopRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 1, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(StopRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(StopRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\43\4\0\0\0\0\0\0" - "viam.component.motor.v1.StopRequest" - "name" - }}, -}; - -::uint8_t* StopRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* StopRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.motor.v1.StopRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.motor.v1.StopRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.motor.v1.StopRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.motor.v1.StopRequest) return target; } -::size_t StopRequest::ByteSizeLong() const { +size_t StopRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.motor.v1.StopRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData StopRequest::_class_data_ = { - StopRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StopRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + StopRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* StopRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StopRequest::GetClassData() const { return &_class_data_; } + +void StopRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void StopRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.motor.v1.StopRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void StopRequest::MergeFrom(const StopRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.motor.v1.StopRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void StopRequest::CopyFrom(const StopRequest& from) { @@ -3245,47 +2976,42 @@ void StopRequest::CopyFrom(const StopRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool StopRequest::IsInitialized() const { +bool StopRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* StopRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void StopRequest::InternalSwap(StopRequest* PROTOBUF_RESTRICT other) { +void StopRequest::InternalSwap(StopRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.extra_, other->_impl_.extra_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(extra_, other->extra_); } -::google::protobuf::Metadata StopRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata StopRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_getter, &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_once, file_level_metadata_component_2fmotor_2fv1_2fmotor_2eproto[12]); } + // =================================================================== class StopResponse::_Internal { public: }; -StopResponse::StopResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +StopResponse::StopResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.component.motor.v1.StopResponse) } -StopResponse::StopResponse( - ::google::protobuf::Arena* arena, - const StopResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - StopResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +StopResponse::StopResponse(const StopResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.component.motor.v1.StopResponse) } @@ -3293,233 +3019,236 @@ StopResponse::StopResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StopResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StopResponse::GetClassData() const { return &_class_data_; } + + -::google::protobuf::Metadata StopResponse::GetMetadata() const { + +::PROTOBUF_NAMESPACE_ID::Metadata StopResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_getter, &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_once, file_level_metadata_component_2fmotor_2fv1_2fmotor_2eproto[13]); } + // =================================================================== class IsPoweredRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(IsPoweredRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const IsPoweredRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const IsPoweredRequest* msg); }; -const ::google::protobuf::Struct& IsPoweredRequest::_Internal::extra(const IsPoweredRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +IsPoweredRequest::_Internal::extra(const IsPoweredRequest* msg) { + return *msg->extra_; } void IsPoweredRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -IsPoweredRequest::IsPoweredRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +IsPoweredRequest::IsPoweredRequest(::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.motor.v1.IsPoweredRequest) } -inline PROTOBUF_NDEBUG_INLINE IsPoweredRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -IsPoweredRequest::IsPoweredRequest( - ::google::protobuf::Arena* arena, - const IsPoweredRequest& from) - : ::google::protobuf::Message(arena) { - IsPoweredRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +IsPoweredRequest::IsPoweredRequest(const IsPoweredRequest& 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.motor.v1.IsPoweredRequest) } -inline PROTOBUF_NDEBUG_INLINE IsPoweredRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} -inline void IsPoweredRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void IsPoweredRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + IsPoweredRequest::~IsPoweredRequest() { // @@protoc_insertion_point(destructor:viam.component.motor.v1.IsPoweredRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void IsPoweredRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void IsPoweredRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void IsPoweredRequest::Clear() { +void IsPoweredRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.motor.v1.IsPoweredRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* IsPoweredRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* IsPoweredRequest::_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.motor.v1.IsPoweredRequest.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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 2, 1, 53, 7> IsPoweredRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(IsPoweredRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_IsPoweredRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(IsPoweredRequest, _impl_.name_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(IsPoweredRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 1, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(IsPoweredRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(IsPoweredRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\50\4\0\0\0\0\0\0" - "viam.component.motor.v1.IsPoweredRequest" - "name" - }}, -}; - -::uint8_t* IsPoweredRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* IsPoweredRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.motor.v1.IsPoweredRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.motor.v1.IsPoweredRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.motor.v1.IsPoweredRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.motor.v1.IsPoweredRequest) return target; } -::size_t IsPoweredRequest::ByteSizeLong() const { +size_t IsPoweredRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.motor.v1.IsPoweredRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData IsPoweredRequest::_class_data_ = { - IsPoweredRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData IsPoweredRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + IsPoweredRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* IsPoweredRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*IsPoweredRequest::GetClassData() const { return &_class_data_; } + +void IsPoweredRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void IsPoweredRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.motor.v1.IsPoweredRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void IsPoweredRequest::MergeFrom(const IsPoweredRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.motor.v1.IsPoweredRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void IsPoweredRequest::CopyFrom(const IsPoweredRequest& from) { @@ -3529,213 +3258,215 @@ void IsPoweredRequest::CopyFrom(const IsPoweredRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool IsPoweredRequest::IsInitialized() const { +bool IsPoweredRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* IsPoweredRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void IsPoweredRequest::InternalSwap(IsPoweredRequest* PROTOBUF_RESTRICT other) { +void IsPoweredRequest::InternalSwap(IsPoweredRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.extra_, other->_impl_.extra_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(extra_, other->extra_); } -::google::protobuf::Metadata IsPoweredRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata IsPoweredRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_getter, &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_once, file_level_metadata_component_2fmotor_2fv1_2fmotor_2eproto[14]); } + // =================================================================== class IsPoweredResponse::_Internal { public: }; -IsPoweredResponse::IsPoweredResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +IsPoweredResponse::IsPoweredResponse(::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.motor.v1.IsPoweredResponse) } -IsPoweredResponse::IsPoweredResponse( - ::google::protobuf::Arena* arena, const IsPoweredResponse& from) - : IsPoweredResponse(arena) { - MergeFrom(from); +IsPoweredResponse::IsPoweredResponse(const IsPoweredResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&power_pct_, &from.power_pct_, + static_cast(reinterpret_cast(&is_on_) - + reinterpret_cast(&power_pct_)) + sizeof(is_on_)); + // @@protoc_insertion_point(copy_constructor:viam.component.motor.v1.IsPoweredResponse) } -inline PROTOBUF_NDEBUG_INLINE IsPoweredResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void IsPoweredResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, power_pct_), - 0, - offsetof(Impl_, is_on_) - - offsetof(Impl_, power_pct_) + - sizeof(Impl_::is_on_)); +inline void IsPoweredResponse::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&power_pct_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&is_on_) - + reinterpret_cast(&power_pct_)) + sizeof(is_on_)); } + IsPoweredResponse::~IsPoweredResponse() { // @@protoc_insertion_point(destructor:viam.component.motor.v1.IsPoweredResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void IsPoweredResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void IsPoweredResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void IsPoweredResponse::Clear() { +void IsPoweredResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.motor.v1.IsPoweredResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&_impl_.power_pct_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.is_on_) - - reinterpret_cast(&_impl_.power_pct_)) + sizeof(_impl_.is_on_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* IsPoweredResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + ::memset(&power_pct_, 0, static_cast( + reinterpret_cast(&is_on_) - + reinterpret_cast(&power_pct_)) + sizeof(is_on_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* IsPoweredResponse::_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) { + // bool is_on = 1 [json_name = "isOn"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + is_on_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // double power_pct = 2 [json_name = "powerPct"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 17)) { + power_pct_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> IsPoweredResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_IsPoweredResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // double power_pct = 2 [json_name = "powerPct"]; - {::_pbi::TcParser::FastF64S1, - {17, 63, 0, PROTOBUF_FIELD_OFFSET(IsPoweredResponse, _impl_.power_pct_)}}, - // bool is_on = 1 [json_name = "isOn"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(IsPoweredResponse, _impl_.is_on_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bool is_on = 1 [json_name = "isOn"]; - {PROTOBUF_FIELD_OFFSET(IsPoweredResponse, _impl_.is_on_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // double power_pct = 2 [json_name = "powerPct"]; - {PROTOBUF_FIELD_OFFSET(IsPoweredResponse, _impl_.power_pct_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* IsPoweredResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* IsPoweredResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.motor.v1.IsPoweredResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // bool is_on = 1 [json_name = "isOn"]; if (this->_internal_is_on() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 1, this->_internal_is_on(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_is_on(), target); } // double power_pct = 2 [json_name = "powerPct"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_power_pct = this->_internal_power_pct(); - ::uint64_t raw_power_pct; + uint64_t raw_power_pct; memcpy(&raw_power_pct, &tmp_power_pct, sizeof(tmp_power_pct)); if (raw_power_pct != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 2, this->_internal_power_pct(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_power_pct(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.motor.v1.IsPoweredResponse) return target; } -::size_t IsPoweredResponse::ByteSizeLong() const { +size_t IsPoweredResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.motor.v1.IsPoweredResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // double power_pct = 2 [json_name = "powerPct"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_power_pct = this->_internal_power_pct(); - ::uint64_t raw_power_pct; + uint64_t raw_power_pct; memcpy(&raw_power_pct, &tmp_power_pct, sizeof(tmp_power_pct)); if (raw_power_pct != 0) { - total_size += 9; + total_size += 1 + 8; } // bool is_on = 1 [json_name = "isOn"]; if (this->_internal_is_on() != 0) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData IsPoweredResponse::_class_data_ = { - IsPoweredResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData IsPoweredResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + IsPoweredResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* IsPoweredResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*IsPoweredResponse::GetClassData() const { return &_class_data_; } + +void IsPoweredResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void IsPoweredResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.motor.v1.IsPoweredResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void IsPoweredResponse::MergeFrom(const IsPoweredResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.motor.v1.IsPoweredResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_power_pct = from._internal_power_pct(); - ::uint64_t raw_power_pct; + uint64_t raw_power_pct; memcpy(&raw_power_pct, &tmp_power_pct, sizeof(tmp_power_pct)); if (raw_power_pct != 0) { - _this->_internal_set_power_pct(from._internal_power_pct()); + _internal_set_power_pct(from._internal_power_pct()); } if (from._internal_is_on() != 0) { - _this->_internal_set_is_on(from._internal_is_on()); + _internal_set_is_on(from._internal_is_on()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void IsPoweredResponse::CopyFrom(const IsPoweredResponse& from) { @@ -3745,247 +3476,239 @@ void IsPoweredResponse::CopyFrom(const IsPoweredResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool IsPoweredResponse::IsInitialized() const { +bool IsPoweredResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* IsPoweredResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void IsPoweredResponse::InternalSwap(IsPoweredResponse* PROTOBUF_RESTRICT other) { +void IsPoweredResponse::InternalSwap(IsPoweredResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(IsPoweredResponse, _impl_.is_on_) - + sizeof(IsPoweredResponse::_impl_.is_on_) - - PROTOBUF_FIELD_OFFSET(IsPoweredResponse, _impl_.power_pct_)>( - reinterpret_cast(&_impl_.power_pct_), - reinterpret_cast(&other->_impl_.power_pct_)); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(IsPoweredResponse, is_on_) + + sizeof(IsPoweredResponse::is_on_) + - PROTOBUF_FIELD_OFFSET(IsPoweredResponse, power_pct_)>( + reinterpret_cast(&power_pct_), + reinterpret_cast(&other->power_pct_)); } -::google::protobuf::Metadata IsPoweredResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata IsPoweredResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_getter, &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_once, file_level_metadata_component_2fmotor_2fv1_2fmotor_2eproto[15]); } + // =================================================================== class GetPropertiesRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetPropertiesRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const GetPropertiesRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetPropertiesRequest* msg); }; -const ::google::protobuf::Struct& GetPropertiesRequest::_Internal::extra(const GetPropertiesRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetPropertiesRequest::_Internal::extra(const GetPropertiesRequest* msg) { + return *msg->extra_; } void GetPropertiesRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -GetPropertiesRequest::GetPropertiesRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetPropertiesRequest::GetPropertiesRequest(::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.motor.v1.GetPropertiesRequest) } -inline PROTOBUF_NDEBUG_INLINE GetPropertiesRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -GetPropertiesRequest::GetPropertiesRequest( - ::google::protobuf::Arena* arena, - const GetPropertiesRequest& from) - : ::google::protobuf::Message(arena) { - GetPropertiesRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +GetPropertiesRequest::GetPropertiesRequest(const GetPropertiesRequest& 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.motor.v1.GetPropertiesRequest) } -inline PROTOBUF_NDEBUG_INLINE GetPropertiesRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} -inline void GetPropertiesRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void GetPropertiesRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + GetPropertiesRequest::~GetPropertiesRequest() { // @@protoc_insertion_point(destructor:viam.component.motor.v1.GetPropertiesRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetPropertiesRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void GetPropertiesRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetPropertiesRequest::Clear() { +void GetPropertiesRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.motor.v1.GetPropertiesRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetPropertiesRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPropertiesRequest::_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.motor.v1.GetPropertiesRequest.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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 2, 1, 57, 7> GetPropertiesRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetPropertiesRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetPropertiesRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetPropertiesRequest, _impl_.name_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(GetPropertiesRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 1, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(GetPropertiesRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(GetPropertiesRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\54\4\0\0\0\0\0\0" - "viam.component.motor.v1.GetPropertiesRequest" - "name" - }}, -}; - -::uint8_t* GetPropertiesRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetPropertiesRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.motor.v1.GetPropertiesRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.motor.v1.GetPropertiesRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.motor.v1.GetPropertiesRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.motor.v1.GetPropertiesRequest) return target; } -::size_t GetPropertiesRequest::ByteSizeLong() const { +size_t GetPropertiesRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.motor.v1.GetPropertiesRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetPropertiesRequest::_class_data_ = { - GetPropertiesRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPropertiesRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetPropertiesRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetPropertiesRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPropertiesRequest::GetClassData() const { return &_class_data_; } + +void GetPropertiesRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetPropertiesRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.motor.v1.GetPropertiesRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetPropertiesRequest::MergeFrom(const GetPropertiesRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.motor.v1.GetPropertiesRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetPropertiesRequest::CopyFrom(const GetPropertiesRequest& from) { @@ -3995,170 +3718,174 @@ void GetPropertiesRequest::CopyFrom(const GetPropertiesRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetPropertiesRequest::IsInitialized() const { +bool GetPropertiesRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetPropertiesRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetPropertiesRequest::InternalSwap(GetPropertiesRequest* PROTOBUF_RESTRICT other) { +void GetPropertiesRequest::InternalSwap(GetPropertiesRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.extra_, other->_impl_.extra_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(extra_, other->extra_); } -::google::protobuf::Metadata GetPropertiesRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetPropertiesRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_getter, &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_once, file_level_metadata_component_2fmotor_2fv1_2fmotor_2eproto[16]); } + // =================================================================== class GetPropertiesResponse::_Internal { public: }; -GetPropertiesResponse::GetPropertiesResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetPropertiesResponse::GetPropertiesResponse(::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.motor.v1.GetPropertiesResponse) } -GetPropertiesResponse::GetPropertiesResponse( - ::google::protobuf::Arena* arena, const GetPropertiesResponse& from) - : GetPropertiesResponse(arena) { - MergeFrom(from); +GetPropertiesResponse::GetPropertiesResponse(const GetPropertiesResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + position_reporting_ = from.position_reporting_; + // @@protoc_insertion_point(copy_constructor:viam.component.motor.v1.GetPropertiesResponse) } -inline PROTOBUF_NDEBUG_INLINE GetPropertiesResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void GetPropertiesResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.position_reporting_ = {}; +inline void GetPropertiesResponse::SharedCtor() { +position_reporting_ = false; } + GetPropertiesResponse::~GetPropertiesResponse() { // @@protoc_insertion_point(destructor:viam.component.motor.v1.GetPropertiesResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetPropertiesResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void GetPropertiesResponse::Clear() { +void GetPropertiesResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetPropertiesResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.motor.v1.GetPropertiesResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.position_reporting_ = false; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetPropertiesResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + position_reporting_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPropertiesResponse::_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) { + // bool position_reporting = 1 [json_name = "positionReporting"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + position_reporting_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> GetPropertiesResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetPropertiesResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // bool position_reporting = 1 [json_name = "positionReporting"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.position_reporting_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bool position_reporting = 1 [json_name = "positionReporting"]; - {PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.position_reporting_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* GetPropertiesResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetPropertiesResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.motor.v1.GetPropertiesResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // bool position_reporting = 1 [json_name = "positionReporting"]; if (this->_internal_position_reporting() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 1, this->_internal_position_reporting(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_position_reporting(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.motor.v1.GetPropertiesResponse) return target; } -::size_t GetPropertiesResponse::ByteSizeLong() const { +size_t GetPropertiesResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.motor.v1.GetPropertiesResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // bool position_reporting = 1 [json_name = "positionReporting"]; if (this->_internal_position_reporting() != 0) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetPropertiesResponse::_class_data_ = { - GetPropertiesResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPropertiesResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetPropertiesResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetPropertiesResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPropertiesResponse::GetClassData() const { return &_class_data_; } + +void GetPropertiesResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetPropertiesResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.motor.v1.GetPropertiesResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetPropertiesResponse::MergeFrom(const GetPropertiesResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.motor.v1.GetPropertiesResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_position_reporting() != 0) { - _this->_internal_set_position_reporting(from._internal_position_reporting()); + _internal_set_position_reporting(from._internal_position_reporting()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetPropertiesResponse::CopyFrom(const GetPropertiesResponse& from) { @@ -4168,231 +3895,231 @@ void GetPropertiesResponse::CopyFrom(const GetPropertiesResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetPropertiesResponse::IsInitialized() const { +bool GetPropertiesResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetPropertiesResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetPropertiesResponse::InternalSwap(GetPropertiesResponse* PROTOBUF_RESTRICT other) { +void GetPropertiesResponse::InternalSwap(GetPropertiesResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.position_reporting_, other->_impl_.position_reporting_); + swap(position_reporting_, other->position_reporting_); } -::google::protobuf::Metadata GetPropertiesResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetPropertiesResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_getter, &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_once, file_level_metadata_component_2fmotor_2fv1_2fmotor_2eproto[17]); } + // =================================================================== class Status::_Internal { public: }; -Status::Status(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Status::Status(::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.motor.v1.Status) } -Status::Status( - ::google::protobuf::Arena* arena, const Status& from) - : Status(arena) { - MergeFrom(from); +Status::Status(const Status& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&position_, &from.position_, + static_cast(reinterpret_cast(&is_moving_) - + reinterpret_cast(&position_)) + sizeof(is_moving_)); + // @@protoc_insertion_point(copy_constructor:viam.component.motor.v1.Status) } -inline PROTOBUF_NDEBUG_INLINE Status::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void Status::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, position_), - 0, - offsetof(Impl_, is_moving_) - - offsetof(Impl_, position_) + - sizeof(Impl_::is_moving_)); +inline void Status::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&position_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&is_moving_) - + reinterpret_cast(&position_)) + sizeof(is_moving_)); } + Status::~Status() { // @@protoc_insertion_point(destructor:viam.component.motor.v1.Status) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Status::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void Status::Clear() { +void Status::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void Status::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.motor.v1.Status) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&_impl_.position_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.is_moving_) - - reinterpret_cast(&_impl_.position_)) + sizeof(_impl_.is_moving_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Status::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + ::memset(&position_, 0, static_cast( + reinterpret_cast(&is_moving_) - + reinterpret_cast(&position_)) + sizeof(is_moving_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Status::_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) { + // bool is_powered = 1 [json_name = "isPowered"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + is_powered_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // double position = 3 [json_name = "position"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 25)) { + position_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // bool is_moving = 4 [json_name = "isMoving"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + is_moving_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 0, 2> Status::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967282, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_Status_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // bool is_moving = 4 [json_name = "isMoving"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(Status, _impl_.is_moving_)}}, - // bool is_powered = 1 [json_name = "isPowered"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(Status, _impl_.is_powered_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // double position = 3 [json_name = "position"]; - {::_pbi::TcParser::FastF64S1, - {25, 63, 0, PROTOBUF_FIELD_OFFSET(Status, _impl_.position_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bool is_powered = 1 [json_name = "isPowered"]; - {PROTOBUF_FIELD_OFFSET(Status, _impl_.is_powered_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // double position = 3 [json_name = "position"]; - {PROTOBUF_FIELD_OFFSET(Status, _impl_.position_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // bool is_moving = 4 [json_name = "isMoving"]; - {PROTOBUF_FIELD_OFFSET(Status, _impl_.is_moving_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* Status::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Status::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.motor.v1.Status) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // bool is_powered = 1 [json_name = "isPowered"]; if (this->_internal_is_powered() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 1, this->_internal_is_powered(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_is_powered(), target); } // double position = 3 [json_name = "position"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_position = this->_internal_position(); - ::uint64_t raw_position; + uint64_t raw_position; memcpy(&raw_position, &tmp_position, sizeof(tmp_position)); if (raw_position != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 3, this->_internal_position(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(3, this->_internal_position(), target); } // bool is_moving = 4 [json_name = "isMoving"]; if (this->_internal_is_moving() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 4, this->_internal_is_moving(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(4, this->_internal_is_moving(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.motor.v1.Status) return target; } -::size_t Status::ByteSizeLong() const { +size_t Status::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.motor.v1.Status) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // double position = 3 [json_name = "position"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_position = this->_internal_position(); - ::uint64_t raw_position; + uint64_t raw_position; memcpy(&raw_position, &tmp_position, sizeof(tmp_position)); if (raw_position != 0) { - total_size += 9; + total_size += 1 + 8; } // bool is_powered = 1 [json_name = "isPowered"]; if (this->_internal_is_powered() != 0) { - total_size += 2; + total_size += 1 + 1; } // bool is_moving = 4 [json_name = "isMoving"]; if (this->_internal_is_moving() != 0) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Status::_class_data_ = { - Status::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Status::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Status::MergeImpl }; -const ::google::protobuf::Message::ClassData* Status::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Status::GetClassData() const { return &_class_data_; } + +void Status::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Status::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.motor.v1.Status) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Status::MergeFrom(const Status& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.motor.v1.Status) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_position = from._internal_position(); - ::uint64_t raw_position; + uint64_t raw_position; memcpy(&raw_position, &tmp_position, sizeof(tmp_position)); if (raw_position != 0) { - _this->_internal_set_position(from._internal_position()); + _internal_set_position(from._internal_position()); } if (from._internal_is_powered() != 0) { - _this->_internal_set_is_powered(from._internal_is_powered()); + _internal_set_is_powered(from._internal_is_powered()); } if (from._internal_is_moving() != 0) { - _this->_internal_set_is_moving(from._internal_is_moving()); + _internal_set_is_moving(from._internal_is_moving()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Status::CopyFrom(const Status& from) { @@ -4402,190 +4129,192 @@ void Status::CopyFrom(const Status& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Status::IsInitialized() const { +bool Status::IsInitialized() const { return true; } -::_pbi::CachedSize* Status::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Status::InternalSwap(Status* PROTOBUF_RESTRICT other) { +void Status::InternalSwap(Status* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(Status, _impl_.is_moving_) - + sizeof(Status::_impl_.is_moving_) - - PROTOBUF_FIELD_OFFSET(Status, _impl_.position_)>( - reinterpret_cast(&_impl_.position_), - reinterpret_cast(&other->_impl_.position_)); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Status, is_moving_) + + sizeof(Status::is_moving_) + - PROTOBUF_FIELD_OFFSET(Status, position_)>( + reinterpret_cast(&position_), + reinterpret_cast(&other->position_)); } -::google::protobuf::Metadata Status::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Status::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_getter, &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_once, file_level_metadata_component_2fmotor_2fv1_2fmotor_2eproto[18]); } + // =================================================================== class IsMovingRequest::_Internal { public: }; -IsMovingRequest::IsMovingRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +IsMovingRequest::IsMovingRequest(::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.motor.v1.IsMovingRequest) } -inline PROTOBUF_NDEBUG_INLINE IsMovingRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : name_(arena, from.name_), - _cached_size_{0} {} - -IsMovingRequest::IsMovingRequest( - ::google::protobuf::Arena* arena, - const IsMovingRequest& from) - : ::google::protobuf::Message(arena) { - IsMovingRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +IsMovingRequest::IsMovingRequest(const IsMovingRequest& 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()); + } // @@protoc_insertion_point(copy_constructor:viam.component.motor.v1.IsMovingRequest) } -inline PROTOBUF_NDEBUG_INLINE IsMovingRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : name_(arena), - _cached_size_{0} {} -inline void IsMovingRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void IsMovingRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + IsMovingRequest::~IsMovingRequest() { // @@protoc_insertion_point(destructor:viam.component.motor.v1.IsMovingRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void IsMovingRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); +} + +void IsMovingRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void IsMovingRequest::Clear() { +void IsMovingRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.motor.v1.IsMovingRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* IsMovingRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* IsMovingRequest::_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.motor.v1.IsMovingRequest.name")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 52, 2> IsMovingRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_IsMovingRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(IsMovingRequest, _impl_.name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(IsMovingRequest, _impl_.name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\47\4\0\0\0\0\0\0" - "viam.component.motor.v1.IsMovingRequest" - "name" - }}, -}; - -::uint8_t* IsMovingRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* IsMovingRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.motor.v1.IsMovingRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.motor.v1.IsMovingRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.motor.v1.IsMovingRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.motor.v1.IsMovingRequest) return target; } -::size_t IsMovingRequest::ByteSizeLong() const { +size_t IsMovingRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.motor.v1.IsMovingRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData IsMovingRequest::_class_data_ = { - IsMovingRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData IsMovingRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + IsMovingRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* IsMovingRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*IsMovingRequest::GetClassData() const { return &_class_data_; } + +void IsMovingRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void IsMovingRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.motor.v1.IsMovingRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void IsMovingRequest::MergeFrom(const IsMovingRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.motor.v1.IsMovingRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void IsMovingRequest::CopyFrom(const IsMovingRequest& from) { @@ -4595,168 +4324,173 @@ void IsMovingRequest::CopyFrom(const IsMovingRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool IsMovingRequest::IsInitialized() const { +bool IsMovingRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* IsMovingRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void IsMovingRequest::InternalSwap(IsMovingRequest* PROTOBUF_RESTRICT other) { +void IsMovingRequest::InternalSwap(IsMovingRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); } -::google::protobuf::Metadata IsMovingRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata IsMovingRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_getter, &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_once, file_level_metadata_component_2fmotor_2fv1_2fmotor_2eproto[19]); } + // =================================================================== class IsMovingResponse::_Internal { public: }; -IsMovingResponse::IsMovingResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +IsMovingResponse::IsMovingResponse(::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.motor.v1.IsMovingResponse) } -IsMovingResponse::IsMovingResponse( - ::google::protobuf::Arena* arena, const IsMovingResponse& from) - : IsMovingResponse(arena) { - MergeFrom(from); +IsMovingResponse::IsMovingResponse(const IsMovingResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + is_moving_ = from.is_moving_; + // @@protoc_insertion_point(copy_constructor:viam.component.motor.v1.IsMovingResponse) } -inline PROTOBUF_NDEBUG_INLINE IsMovingResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void IsMovingResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.is_moving_ = {}; +inline void IsMovingResponse::SharedCtor() { +is_moving_ = false; } + IsMovingResponse::~IsMovingResponse() { // @@protoc_insertion_point(destructor:viam.component.motor.v1.IsMovingResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void IsMovingResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void IsMovingResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void IsMovingResponse::Clear() { +void IsMovingResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.motor.v1.IsMovingResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.is_moving_ = false; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* IsMovingResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + is_moving_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* IsMovingResponse::_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) { + // bool is_moving = 1 [json_name = "isMoving"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + is_moving_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> IsMovingResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_IsMovingResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // bool is_moving = 1 [json_name = "isMoving"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(IsMovingResponse, _impl_.is_moving_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bool is_moving = 1 [json_name = "isMoving"]; - {PROTOBUF_FIELD_OFFSET(IsMovingResponse, _impl_.is_moving_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* IsMovingResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* IsMovingResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.motor.v1.IsMovingResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // bool is_moving = 1 [json_name = "isMoving"]; if (this->_internal_is_moving() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 1, this->_internal_is_moving(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_is_moving(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.motor.v1.IsMovingResponse) return target; } -::size_t IsMovingResponse::ByteSizeLong() const { +size_t IsMovingResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.motor.v1.IsMovingResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // bool is_moving = 1 [json_name = "isMoving"]; if (this->_internal_is_moving() != 0) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData IsMovingResponse::_class_data_ = { - IsMovingResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData IsMovingResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + IsMovingResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* IsMovingResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*IsMovingResponse::GetClassData() const { return &_class_data_; } + +void IsMovingResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void IsMovingResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.motor.v1.IsMovingResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void IsMovingResponse::MergeFrom(const IsMovingResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.motor.v1.IsMovingResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_is_moving() != 0) { - _this->_internal_set_is_moving(from._internal_is_moving()); + _internal_set_is_moving(from._internal_is_moving()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void IsMovingResponse::CopyFrom(const IsMovingResponse& from) { @@ -4766,32 +4500,113 @@ void IsMovingResponse::CopyFrom(const IsMovingResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool IsMovingResponse::IsInitialized() const { +bool IsMovingResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* IsMovingResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void IsMovingResponse::InternalSwap(IsMovingResponse* PROTOBUF_RESTRICT other) { +void IsMovingResponse::InternalSwap(IsMovingResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.is_moving_, other->_impl_.is_moving_); + swap(is_moving_, other->is_moving_); } -::google::protobuf::Metadata IsMovingResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata IsMovingResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_getter, &descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto_once, file_level_metadata_component_2fmotor_2fv1_2fmotor_2eproto[20]); } + // @@protoc_insertion_point(namespace_scope) } // namespace v1 } // namespace motor } // namespace component } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::component::motor::v1::SetPowerRequest* +Arena::CreateMaybeMessage< ::viam::component::motor::v1::SetPowerRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::motor::v1::SetPowerRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::motor::v1::SetPowerResponse* +Arena::CreateMaybeMessage< ::viam::component::motor::v1::SetPowerResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::motor::v1::SetPowerResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::motor::v1::GoForRequest* +Arena::CreateMaybeMessage< ::viam::component::motor::v1::GoForRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::motor::v1::GoForRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::motor::v1::GoForResponse* +Arena::CreateMaybeMessage< ::viam::component::motor::v1::GoForResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::motor::v1::GoForResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::motor::v1::GoToRequest* +Arena::CreateMaybeMessage< ::viam::component::motor::v1::GoToRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::motor::v1::GoToRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::motor::v1::GoToResponse* +Arena::CreateMaybeMessage< ::viam::component::motor::v1::GoToResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::motor::v1::GoToResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::motor::v1::SetRPMRequest* +Arena::CreateMaybeMessage< ::viam::component::motor::v1::SetRPMRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::motor::v1::SetRPMRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::motor::v1::SetRPMResponse* +Arena::CreateMaybeMessage< ::viam::component::motor::v1::SetRPMResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::motor::v1::SetRPMResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::motor::v1::ResetZeroPositionRequest* +Arena::CreateMaybeMessage< ::viam::component::motor::v1::ResetZeroPositionRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::motor::v1::ResetZeroPositionRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::motor::v1::ResetZeroPositionResponse* +Arena::CreateMaybeMessage< ::viam::component::motor::v1::ResetZeroPositionResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::motor::v1::ResetZeroPositionResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::motor::v1::GetPositionRequest* +Arena::CreateMaybeMessage< ::viam::component::motor::v1::GetPositionRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::motor::v1::GetPositionRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::motor::v1::GetPositionResponse* +Arena::CreateMaybeMessage< ::viam::component::motor::v1::GetPositionResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::motor::v1::GetPositionResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::motor::v1::StopRequest* +Arena::CreateMaybeMessage< ::viam::component::motor::v1::StopRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::motor::v1::StopRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::motor::v1::StopResponse* +Arena::CreateMaybeMessage< ::viam::component::motor::v1::StopResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::motor::v1::StopResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::motor::v1::IsPoweredRequest* +Arena::CreateMaybeMessage< ::viam::component::motor::v1::IsPoweredRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::motor::v1::IsPoweredRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::motor::v1::IsPoweredResponse* +Arena::CreateMaybeMessage< ::viam::component::motor::v1::IsPoweredResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::motor::v1::IsPoweredResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::motor::v1::GetPropertiesRequest* +Arena::CreateMaybeMessage< ::viam::component::motor::v1::GetPropertiesRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::motor::v1::GetPropertiesRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::motor::v1::GetPropertiesResponse* +Arena::CreateMaybeMessage< ::viam::component::motor::v1::GetPropertiesResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::motor::v1::GetPropertiesResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::motor::v1::Status* +Arena::CreateMaybeMessage< ::viam::component::motor::v1::Status >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::motor::v1::Status >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::motor::v1::IsMovingRequest* +Arena::CreateMaybeMessage< ::viam::component::motor::v1::IsMovingRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::motor::v1::IsMovingRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::motor::v1::IsMovingResponse* +Arena::CreateMaybeMessage< ::viam::component::motor::v1::IsMovingResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::motor::v1::IsMovingResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/component/motor/v1/motor.pb.h b/src/viam/api/component/motor/v1/motor.pb.h index 8b8421427..0c4e31e7a 100644 --- a/src/viam/api/component/motor/v1/motor.pb.h +++ b/src/viam/api/component/motor/v1/motor.pb.h @@ -1,64 +1,53 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: component/motor/v1/motor.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_component_2fmotor_2fv1_2fmotor_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_component_2fmotor_2fv1_2fmotor_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_component_2fmotor_2fv1_2fmotor_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_component_2fmotor_2fv1_2fmotor_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_bases.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/unknown_field_set.h" + +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include #include "common/v1/common.pb.h" #include "google/api/annotations.pb.h" -#include "google/protobuf/struct.pb.h" +#include // @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - +#include #define PROTOBUF_INTERNAL_EXPORT_component_2fmotor_2fv1_2fmotor_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_component_2fmotor_2fv1_2fmotor_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_component_2fmotor_2fv1_2fmotor_2eproto; namespace viam { namespace component { namespace motor { @@ -130,11 +119,29 @@ extern StopResponseDefaultTypeInternal _StopResponse_default_instance_; } // namespace motor } // namespace component } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::component::motor::v1::GetPositionRequest* Arena::CreateMaybeMessage<::viam::component::motor::v1::GetPositionRequest>(Arena*); +template<> ::viam::component::motor::v1::GetPositionResponse* Arena::CreateMaybeMessage<::viam::component::motor::v1::GetPositionResponse>(Arena*); +template<> ::viam::component::motor::v1::GetPropertiesRequest* Arena::CreateMaybeMessage<::viam::component::motor::v1::GetPropertiesRequest>(Arena*); +template<> ::viam::component::motor::v1::GetPropertiesResponse* Arena::CreateMaybeMessage<::viam::component::motor::v1::GetPropertiesResponse>(Arena*); +template<> ::viam::component::motor::v1::GoForRequest* Arena::CreateMaybeMessage<::viam::component::motor::v1::GoForRequest>(Arena*); +template<> ::viam::component::motor::v1::GoForResponse* Arena::CreateMaybeMessage<::viam::component::motor::v1::GoForResponse>(Arena*); +template<> ::viam::component::motor::v1::GoToRequest* Arena::CreateMaybeMessage<::viam::component::motor::v1::GoToRequest>(Arena*); +template<> ::viam::component::motor::v1::GoToResponse* Arena::CreateMaybeMessage<::viam::component::motor::v1::GoToResponse>(Arena*); +template<> ::viam::component::motor::v1::IsMovingRequest* Arena::CreateMaybeMessage<::viam::component::motor::v1::IsMovingRequest>(Arena*); +template<> ::viam::component::motor::v1::IsMovingResponse* Arena::CreateMaybeMessage<::viam::component::motor::v1::IsMovingResponse>(Arena*); +template<> ::viam::component::motor::v1::IsPoweredRequest* Arena::CreateMaybeMessage<::viam::component::motor::v1::IsPoweredRequest>(Arena*); +template<> ::viam::component::motor::v1::IsPoweredResponse* Arena::CreateMaybeMessage<::viam::component::motor::v1::IsPoweredResponse>(Arena*); +template<> ::viam::component::motor::v1::ResetZeroPositionRequest* Arena::CreateMaybeMessage<::viam::component::motor::v1::ResetZeroPositionRequest>(Arena*); +template<> ::viam::component::motor::v1::ResetZeroPositionResponse* Arena::CreateMaybeMessage<::viam::component::motor::v1::ResetZeroPositionResponse>(Arena*); +template<> ::viam::component::motor::v1::SetPowerRequest* Arena::CreateMaybeMessage<::viam::component::motor::v1::SetPowerRequest>(Arena*); +template<> ::viam::component::motor::v1::SetPowerResponse* Arena::CreateMaybeMessage<::viam::component::motor::v1::SetPowerResponse>(Arena*); +template<> ::viam::component::motor::v1::SetRPMRequest* Arena::CreateMaybeMessage<::viam::component::motor::v1::SetRPMRequest>(Arena*); +template<> ::viam::component::motor::v1::SetRPMResponse* Arena::CreateMaybeMessage<::viam::component::motor::v1::SetRPMResponse>(Arena*); +template<> ::viam::component::motor::v1::Status* Arena::CreateMaybeMessage<::viam::component::motor::v1::Status>(Arena*); +template<> ::viam::component::motor::v1::StopRequest* Arena::CreateMaybeMessage<::viam::component::motor::v1::StopRequest>(Arena*); +template<> ::viam::component::motor::v1::StopResponse* Arena::CreateMaybeMessage<::viam::component::motor::v1::StopResponse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace viam { namespace component { namespace motor { @@ -142,32 +149,28 @@ namespace v1 { // =================================================================== - -// ------------------------------------------------------------------- - -class StopResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.StopResponse) */ { +class SetPowerRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.SetPowerRequest) */ { public: - inline StopResponse() : StopResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR StopResponse(::google::protobuf::internal::ConstantInitialized); + inline SetPowerRequest() : SetPowerRequest(nullptr) {} + ~SetPowerRequest() override; + explicit PROTOBUF_CONSTEXPR SetPowerRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline StopResponse(const StopResponse& from) - : StopResponse(nullptr, from) {} - StopResponse(StopResponse&& from) noexcept - : StopResponse() { + SetPowerRequest(const SetPowerRequest& from); + SetPowerRequest(SetPowerRequest&& from) noexcept + : SetPowerRequest() { *this = ::std::move(from); } - inline StopResponse& operator=(const StopResponse& from) { + inline SetPowerRequest& operator=(const SetPowerRequest& from) { CopyFrom(from); return *this; } - inline StopResponse& operator=(StopResponse&& from) noexcept { + inline SetPowerRequest& operator=(SetPowerRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -177,134 +180,175 @@ class StopResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const StopResponse& default_instance() { + static const SetPowerRequest& default_instance() { return *internal_default_instance(); } - static inline const StopResponse* internal_default_instance() { - return reinterpret_cast( - &_StopResponse_default_instance_); + static inline const SetPowerRequest* internal_default_instance() { + return reinterpret_cast( + &_SetPowerRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 13; + 0; - friend void swap(StopResponse& a, StopResponse& b) { + friend void swap(SetPowerRequest& a, SetPowerRequest& b) { a.Swap(&b); } - inline void Swap(StopResponse* other) { + inline void Swap(SetPowerRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(StopResponse* other) { + void UnsafeArenaSwap(SetPowerRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - StopResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const StopResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const StopResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + SetPowerRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SetPowerRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const SetPowerRequest& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.motor.v1.StopResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SetPowerRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.motor.v1.SetPowerRequest"; } protected: - explicit StopResponse(::google::protobuf::Arena* arena); - StopResponse(::google::protobuf::Arena* arena, const StopResponse& from); + explicit SetPowerRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.component.motor.v1.StopResponse) + enum : int { + kNameFieldNumber = 1, + kExtraFieldNumber = 99, + kPowerPctFieldNumber = 2, + }; + // 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(); + + // double power_pct = 2 [json_name = "powerPct"]; + void clear_power_pct(); + double power_pct() const; + void set_power_pct(double value); + private: + double _internal_power_pct() const; + void _internal_set_power_pct(double value); + public: + + // @@protoc_insertion_point(class_scope:viam.component.motor.v1.SetPowerRequest) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + 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_; + double power_pct_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fmotor_2fv1_2fmotor_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Status final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.Status) */ { +class SetPowerResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.SetPowerResponse) */ { public: - inline Status() : Status(nullptr) {} - ~Status() override; - template - explicit PROTOBUF_CONSTEXPR Status(::google::protobuf::internal::ConstantInitialized); + inline SetPowerResponse() : SetPowerResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR SetPowerResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Status(const Status& from) - : Status(nullptr, from) {} - Status(Status&& from) noexcept - : Status() { + SetPowerResponse(const SetPowerResponse& from); + SetPowerResponse(SetPowerResponse&& from) noexcept + : SetPowerResponse() { *this = ::std::move(from); } - inline Status& operator=(const Status& from) { + inline SetPowerResponse& operator=(const SetPowerResponse& from) { CopyFrom(from); return *this; } - inline Status& operator=(Status&& from) noexcept { + inline SetPowerResponse& operator=(SetPowerResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -314,195 +358,114 @@ class Status final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Status& default_instance() { + static const SetPowerResponse& default_instance() { return *internal_default_instance(); } - static inline const Status* internal_default_instance() { - return reinterpret_cast( - &_Status_default_instance_); + static inline const SetPowerResponse* internal_default_instance() { + return reinterpret_cast( + &_SetPowerResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 18; + 1; - friend void swap(Status& a, Status& b) { + friend void swap(SetPowerResponse& a, SetPowerResponse& b) { a.Swap(&b); } - inline void Swap(Status* other) { + inline void Swap(SetPowerResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Status* other) { + void UnsafeArenaSwap(SetPowerResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Status* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SetPowerResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Status& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Status& from) { - Status::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const SetPowerResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const SetPowerResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(Status* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.motor.v1.Status"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.motor.v1.SetPowerResponse"; } protected: - explicit Status(::google::protobuf::Arena* arena); - Status(::google::protobuf::Arena* arena, const Status& from); + explicit SetPowerResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kPositionFieldNumber = 3, - kIsPoweredFieldNumber = 1, - kIsMovingFieldNumber = 4, - }; - // double position = 3 [json_name = "position"]; - void clear_position() ; - double position() const; - void set_position(double value); - - private: - double _internal_position() const; - void _internal_set_position(double value); - - public: - // bool is_powered = 1 [json_name = "isPowered"]; - void clear_is_powered() ; - bool is_powered() const; - void set_is_powered(bool value); - - private: - bool _internal_is_powered() const; - void _internal_set_is_powered(bool value); - - public: - // bool is_moving = 4 [json_name = "isMoving"]; - void clear_is_moving() ; - bool is_moving() const; - void set_is_moving(bool value); - - private: - bool _internal_is_moving() const; - void _internal_set_is_moving(bool value); - - public: - // @@protoc_insertion_point(class_scope:viam.component.motor.v1.Status) + // @@protoc_insertion_point(class_scope:viam.component.motor.v1.SetPowerResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - double position_; - bool is_powered_; - bool is_moving_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_component_2fmotor_2fv1_2fmotor_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SetRPMResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.SetRPMResponse) */ { +class GoForRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.GoForRequest) */ { public: - inline SetRPMResponse() : SetRPMResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR SetRPMResponse(::google::protobuf::internal::ConstantInitialized); + inline GoForRequest() : GoForRequest(nullptr) {} + ~GoForRequest() override; + explicit PROTOBUF_CONSTEXPR GoForRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline SetRPMResponse(const SetRPMResponse& from) - : SetRPMResponse(nullptr, from) {} - SetRPMResponse(SetRPMResponse&& from) noexcept - : SetRPMResponse() { + GoForRequest(const GoForRequest& from); + GoForRequest(GoForRequest&& from) noexcept + : GoForRequest() { *this = ::std::move(from); } - inline SetRPMResponse& operator=(const SetRPMResponse& from) { + inline GoForRequest& operator=(const GoForRequest& from) { CopyFrom(from); return *this; } - inline SetRPMResponse& operator=(SetRPMResponse&& from) noexcept { + inline GoForRequest& operator=(GoForRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -512,133 +475,186 @@ class SetRPMResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SetRPMResponse& default_instance() { + static const GoForRequest& default_instance() { return *internal_default_instance(); } - static inline const SetRPMResponse* internal_default_instance() { - return reinterpret_cast( - &_SetRPMResponse_default_instance_); + static inline const GoForRequest* internal_default_instance() { + return reinterpret_cast( + &_GoForRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 7; + 2; - friend void swap(SetRPMResponse& a, SetRPMResponse& b) { + friend void swap(GoForRequest& a, GoForRequest& b) { a.Swap(&b); } - inline void Swap(SetRPMResponse* other) { + inline void Swap(GoForRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SetRPMResponse* other) { + void UnsafeArenaSwap(GoForRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SetRPMResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const SetRPMResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const SetRPMResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + GoForRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GoForRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GoForRequest& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.motor.v1.SetRPMResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GoForRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.motor.v1.GoForRequest"; } protected: - explicit SetRPMResponse(::google::protobuf::Arena* arena); - SetRPMResponse(::google::protobuf::Arena* arena, const SetRPMResponse& from); + explicit GoForRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.component.motor.v1.SetRPMResponse) - private: - class _Internal; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER + enum : int { + kNameFieldNumber = 1, + kExtraFieldNumber = 99, + kRpmFieldNumber = 2, + kRevolutionsFieldNumber = 3, }; - friend struct ::TableStruct_component_2fmotor_2fv1_2fmotor_2eproto; -};// ------------------------------------------------------------------- + // 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: -class SetPowerResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.SetPowerResponse) */ { - public: - inline SetPowerResponse() : SetPowerResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR SetPowerResponse(::google::protobuf::internal::ConstantInitialized); + // .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(); - inline SetPowerResponse(const SetPowerResponse& from) - : SetPowerResponse(nullptr, from) {} - SetPowerResponse(SetPowerResponse&& from) noexcept - : SetPowerResponse() { + // double rpm = 2 [json_name = "rpm"]; + void clear_rpm(); + double rpm() const; + void set_rpm(double value); + private: + double _internal_rpm() const; + void _internal_set_rpm(double value); + public: + + // double revolutions = 3 [json_name = "revolutions"]; + void clear_revolutions(); + double revolutions() const; + void set_revolutions(double value); + private: + double _internal_revolutions() const; + void _internal_set_revolutions(double value); + public: + + // @@protoc_insertion_point(class_scope:viam.component.motor.v1.GoForRequest) + 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_; + double rpm_; + double revolutions_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_component_2fmotor_2fv1_2fmotor_2eproto; +}; +// ------------------------------------------------------------------- + +class GoForResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.GoForResponse) */ { + public: + inline GoForResponse() : GoForResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR GoForResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GoForResponse(const GoForResponse& from); + GoForResponse(GoForResponse&& from) noexcept + : GoForResponse() { *this = ::std::move(from); } - inline SetPowerResponse& operator=(const SetPowerResponse& from) { + inline GoForResponse& operator=(const GoForResponse& from) { CopyFrom(from); return *this; } - inline SetPowerResponse& operator=(SetPowerResponse&& from) noexcept { + inline GoForResponse& operator=(GoForResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -648,133 +664,114 @@ class SetPowerResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SetPowerResponse& default_instance() { + static const GoForResponse& default_instance() { return *internal_default_instance(); } - static inline const SetPowerResponse* internal_default_instance() { - return reinterpret_cast( - &_SetPowerResponse_default_instance_); + static inline const GoForResponse* internal_default_instance() { + return reinterpret_cast( + &_GoForResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 1; + 3; - friend void swap(SetPowerResponse& a, SetPowerResponse& b) { + friend void swap(GoForResponse& a, GoForResponse& b) { a.Swap(&b); } - inline void Swap(SetPowerResponse* other) { + inline void Swap(GoForResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SetPowerResponse* other) { + void UnsafeArenaSwap(GoForResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SetPowerResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + GoForResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const SetPowerResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const GoForResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const SetPowerResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const GoForResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } public: private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.motor.v1.SetPowerResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.motor.v1.GoForResponse"; } protected: - explicit SetPowerResponse(::google::protobuf::Arena* arena); - SetPowerResponse(::google::protobuf::Arena* arena, const SetPowerResponse& from); + explicit GoForResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.component.motor.v1.SetPowerResponse) + // @@protoc_insertion_point(class_scope:viam.component.motor.v1.GoForResponse) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_component_2fmotor_2fv1_2fmotor_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ResetZeroPositionResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.ResetZeroPositionResponse) */ { +class GoToRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.GoToRequest) */ { public: - inline ResetZeroPositionResponse() : ResetZeroPositionResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR ResetZeroPositionResponse(::google::protobuf::internal::ConstantInitialized); + inline GoToRequest() : GoToRequest(nullptr) {} + ~GoToRequest() override; + explicit PROTOBUF_CONSTEXPR GoToRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ResetZeroPositionResponse(const ResetZeroPositionResponse& from) - : ResetZeroPositionResponse(nullptr, from) {} - ResetZeroPositionResponse(ResetZeroPositionResponse&& from) noexcept - : ResetZeroPositionResponse() { + GoToRequest(const GoToRequest& from); + GoToRequest(GoToRequest&& from) noexcept + : GoToRequest() { *this = ::std::move(from); } - inline ResetZeroPositionResponse& operator=(const ResetZeroPositionResponse& from) { + inline GoToRequest& operator=(const GoToRequest& from) { CopyFrom(from); return *this; } - inline ResetZeroPositionResponse& operator=(ResetZeroPositionResponse&& from) noexcept { + inline GoToRequest& operator=(GoToRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -784,134 +781,186 @@ class ResetZeroPositionResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ResetZeroPositionResponse& default_instance() { + static const GoToRequest& default_instance() { return *internal_default_instance(); } - static inline const ResetZeroPositionResponse* internal_default_instance() { - return reinterpret_cast( - &_ResetZeroPositionResponse_default_instance_); + static inline const GoToRequest* internal_default_instance() { + return reinterpret_cast( + &_GoToRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 9; + 4; - friend void swap(ResetZeroPositionResponse& a, ResetZeroPositionResponse& b) { + friend void swap(GoToRequest& a, GoToRequest& b) { a.Swap(&b); } - inline void Swap(ResetZeroPositionResponse* other) { + inline void Swap(GoToRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ResetZeroPositionResponse* other) { + void UnsafeArenaSwap(GoToRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ResetZeroPositionResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const ResetZeroPositionResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const ResetZeroPositionResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + GoToRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GoToRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GoToRequest& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.motor.v1.ResetZeroPositionResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GoToRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.motor.v1.GoToRequest"; } protected: - explicit ResetZeroPositionResponse(::google::protobuf::Arena* arena); - ResetZeroPositionResponse(::google::protobuf::Arena* arena, const ResetZeroPositionResponse& from); + explicit GoToRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.component.motor.v1.ResetZeroPositionResponse) + enum : int { + kNameFieldNumber = 1, + kExtraFieldNumber = 99, + kRpmFieldNumber = 2, + kPositionRevolutionsFieldNumber = 3, + }; + // 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(); + + // double rpm = 2 [json_name = "rpm"]; + void clear_rpm(); + double rpm() const; + void set_rpm(double value); + private: + double _internal_rpm() const; + void _internal_set_rpm(double value); + public: + + // double position_revolutions = 3 [json_name = "positionRevolutions"]; + void clear_position_revolutions(); + double position_revolutions() const; + void set_position_revolutions(double value); + private: + double _internal_position_revolutions() const; + void _internal_set_position_revolutions(double value); + public: + + // @@protoc_insertion_point(class_scope:viam.component.motor.v1.GoToRequest) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + 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_; + double rpm_; + double position_revolutions_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fmotor_2fv1_2fmotor_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class IsPoweredResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.IsPoweredResponse) */ { +class GoToResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.GoToResponse) */ { public: - inline IsPoweredResponse() : IsPoweredResponse(nullptr) {} - ~IsPoweredResponse() override; - template - explicit PROTOBUF_CONSTEXPR IsPoweredResponse(::google::protobuf::internal::ConstantInitialized); + inline GoToResponse() : GoToResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR GoToResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline IsPoweredResponse(const IsPoweredResponse& from) - : IsPoweredResponse(nullptr, from) {} - IsPoweredResponse(IsPoweredResponse&& from) noexcept - : IsPoweredResponse() { + GoToResponse(const GoToResponse& from); + GoToResponse(GoToResponse&& from) noexcept + : GoToResponse() { *this = ::std::move(from); } - inline IsPoweredResponse& operator=(const IsPoweredResponse& from) { + inline GoToResponse& operator=(const GoToResponse& from) { CopyFrom(from); return *this; } - inline IsPoweredResponse& operator=(IsPoweredResponse&& from) noexcept { + inline GoToResponse& operator=(GoToResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -921,184 +970,114 @@ class IsPoweredResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const IsPoweredResponse& default_instance() { + static const GoToResponse& default_instance() { return *internal_default_instance(); } - static inline const IsPoweredResponse* internal_default_instance() { - return reinterpret_cast( - &_IsPoweredResponse_default_instance_); + static inline const GoToResponse* internal_default_instance() { + return reinterpret_cast( + &_GoToResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 15; + 5; - friend void swap(IsPoweredResponse& a, IsPoweredResponse& b) { + friend void swap(GoToResponse& a, GoToResponse& b) { a.Swap(&b); } - inline void Swap(IsPoweredResponse* other) { + inline void Swap(GoToResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(IsPoweredResponse* other) { + void UnsafeArenaSwap(GoToResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - IsPoweredResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + GoToResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const IsPoweredResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const IsPoweredResponse& from) { - IsPoweredResponse::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const GoToResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const GoToResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(IsPoweredResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.motor.v1.IsPoweredResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.motor.v1.GoToResponse"; } protected: - explicit IsPoweredResponse(::google::protobuf::Arena* arena); - IsPoweredResponse(::google::protobuf::Arena* arena, const IsPoweredResponse& from); + explicit GoToResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kPowerPctFieldNumber = 2, - kIsOnFieldNumber = 1, - }; - // double power_pct = 2 [json_name = "powerPct"]; - void clear_power_pct() ; - double power_pct() const; - void set_power_pct(double value); - - private: - double _internal_power_pct() const; - void _internal_set_power_pct(double value); - - public: - // bool is_on = 1 [json_name = "isOn"]; - void clear_is_on() ; - bool is_on() const; - void set_is_on(bool value); - - private: - bool _internal_is_on() const; - void _internal_set_is_on(bool value); - - public: - // @@protoc_insertion_point(class_scope:viam.component.motor.v1.IsPoweredResponse) + // @@protoc_insertion_point(class_scope:viam.component.motor.v1.GoToResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - double power_pct_; - bool is_on_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_component_2fmotor_2fv1_2fmotor_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class IsMovingResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.IsMovingResponse) */ { +class SetRPMRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.SetRPMRequest) */ { public: - inline IsMovingResponse() : IsMovingResponse(nullptr) {} - ~IsMovingResponse() override; - template - explicit PROTOBUF_CONSTEXPR IsMovingResponse(::google::protobuf::internal::ConstantInitialized); + inline SetRPMRequest() : SetRPMRequest(nullptr) {} + ~SetRPMRequest() override; + explicit PROTOBUF_CONSTEXPR SetRPMRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline IsMovingResponse(const IsMovingResponse& from) - : IsMovingResponse(nullptr, from) {} - IsMovingResponse(IsMovingResponse&& from) noexcept - : IsMovingResponse() { + SetRPMRequest(const SetRPMRequest& from); + SetRPMRequest(SetRPMRequest&& from) noexcept + : SetRPMRequest() { *this = ::std::move(from); } - inline IsMovingResponse& operator=(const IsMovingResponse& from) { + inline SetRPMRequest& operator=(const SetRPMRequest& from) { CopyFrom(from); return *this; } - inline IsMovingResponse& operator=(IsMovingResponse&& from) noexcept { + inline SetRPMRequest& operator=(SetRPMRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1108,172 +1087,175 @@ class IsMovingResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const IsMovingResponse& default_instance() { + static const SetRPMRequest& default_instance() { return *internal_default_instance(); } - static inline const IsMovingResponse* internal_default_instance() { - return reinterpret_cast( - &_IsMovingResponse_default_instance_); + static inline const SetRPMRequest* internal_default_instance() { + return reinterpret_cast( + &_SetRPMRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 20; + 6; - friend void swap(IsMovingResponse& a, IsMovingResponse& b) { + friend void swap(SetRPMRequest& a, SetRPMRequest& b) { a.Swap(&b); } - inline void Swap(IsMovingResponse* other) { + inline void Swap(SetRPMRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(IsMovingResponse* other) { + void UnsafeArenaSwap(SetRPMRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - IsMovingResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const IsMovingResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const IsMovingResponse& from) { - IsMovingResponse::MergeImpl(*this, from); + SetRPMRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SetRPMRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const SetRPMRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(IsMovingResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(SetRPMRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.motor.v1.IsMovingResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.motor.v1.SetRPMRequest"; } protected: - explicit IsMovingResponse(::google::protobuf::Arena* arena); - IsMovingResponse(::google::protobuf::Arena* arena, const IsMovingResponse& from); + explicit SetRPMRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kIsMovingFieldNumber = 1, + kNameFieldNumber = 1, + kExtraFieldNumber = 99, + kRpmFieldNumber = 2, }; - // bool is_moving = 1 [json_name = "isMoving"]; - void clear_is_moving() ; - bool is_moving() const; - void set_is_moving(bool value); + // 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_is_moving() const; - void _internal_set_is_moving(bool value); + 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(); + // double rpm = 2 [json_name = "rpm"]; + void clear_rpm(); + double rpm() const; + void set_rpm(double value); + private: + double _internal_rpm() const; + void _internal_set_rpm(double value); public: - // @@protoc_insertion_point(class_scope:viam.component.motor.v1.IsMovingResponse) + + // @@protoc_insertion_point(class_scope:viam.component.motor.v1.SetRPMRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - bool is_moving_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + 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_; + double rpm_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fmotor_2fv1_2fmotor_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class IsMovingRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.IsMovingRequest) */ { +class SetRPMResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.SetRPMResponse) */ { public: - inline IsMovingRequest() : IsMovingRequest(nullptr) {} - ~IsMovingRequest() override; - template - explicit PROTOBUF_CONSTEXPR IsMovingRequest(::google::protobuf::internal::ConstantInitialized); + inline SetRPMResponse() : SetRPMResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR SetRPMResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline IsMovingRequest(const IsMovingRequest& from) - : IsMovingRequest(nullptr, from) {} - IsMovingRequest(IsMovingRequest&& from) noexcept - : IsMovingRequest() { + SetRPMResponse(const SetRPMResponse& from); + SetRPMResponse(SetRPMResponse&& from) noexcept + : SetRPMResponse() { *this = ::std::move(from); } - inline IsMovingRequest& operator=(const IsMovingRequest& from) { + inline SetRPMResponse& operator=(const SetRPMResponse& from) { CopyFrom(from); return *this; } - inline IsMovingRequest& operator=(IsMovingRequest&& from) noexcept { + inline SetRPMResponse& operator=(SetRPMResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1283,177 +1265,114 @@ class IsMovingRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const IsMovingRequest& default_instance() { + static const SetRPMResponse& default_instance() { return *internal_default_instance(); } - static inline const IsMovingRequest* internal_default_instance() { - return reinterpret_cast( - &_IsMovingRequest_default_instance_); + static inline const SetRPMResponse* internal_default_instance() { + return reinterpret_cast( + &_SetRPMResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 19; + 7; - friend void swap(IsMovingRequest& a, IsMovingRequest& b) { + friend void swap(SetRPMResponse& a, SetRPMResponse& b) { a.Swap(&b); } - inline void Swap(IsMovingRequest* other) { + inline void Swap(SetRPMResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(IsMovingRequest* other) { + void UnsafeArenaSwap(SetRPMResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - IsMovingRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SetRPMResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const IsMovingRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const IsMovingRequest& from) { - IsMovingRequest::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const SetRPMResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const SetRPMResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(IsMovingRequest* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.motor.v1.IsMovingRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.motor.v1.SetRPMResponse"; } protected: - explicit IsMovingRequest(::google::protobuf::Arena* arena); - IsMovingRequest(::google::protobuf::Arena* arena, const IsMovingRequest& from); + explicit SetRPMResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kNameFieldNumber = 1, - }; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - - public: - // @@protoc_insertion_point(class_scope:viam.component.motor.v1.IsMovingRequest) + // @@protoc_insertion_point(class_scope:viam.component.motor.v1.SetRPMResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 52, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr name_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_component_2fmotor_2fv1_2fmotor_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GoToResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.GoToResponse) */ { +class ResetZeroPositionRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.ResetZeroPositionRequest) */ { public: - inline GoToResponse() : GoToResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR GoToResponse(::google::protobuf::internal::ConstantInitialized); + inline ResetZeroPositionRequest() : ResetZeroPositionRequest(nullptr) {} + ~ResetZeroPositionRequest() override; + explicit PROTOBUF_CONSTEXPR ResetZeroPositionRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GoToResponse(const GoToResponse& from) - : GoToResponse(nullptr, from) {} - GoToResponse(GoToResponse&& from) noexcept - : GoToResponse() { + ResetZeroPositionRequest(const ResetZeroPositionRequest& from); + ResetZeroPositionRequest(ResetZeroPositionRequest&& from) noexcept + : ResetZeroPositionRequest() { *this = ::std::move(from); } - inline GoToResponse& operator=(const GoToResponse& from) { + inline ResetZeroPositionRequest& operator=(const ResetZeroPositionRequest& from) { CopyFrom(from); return *this; } - inline GoToResponse& operator=(GoToResponse&& from) noexcept { + inline ResetZeroPositionRequest& operator=(ResetZeroPositionRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1463,133 +1382,175 @@ class GoToResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GoToResponse& default_instance() { + static const ResetZeroPositionRequest& default_instance() { return *internal_default_instance(); } - static inline const GoToResponse* internal_default_instance() { - return reinterpret_cast( - &_GoToResponse_default_instance_); + static inline const ResetZeroPositionRequest* internal_default_instance() { + return reinterpret_cast( + &_ResetZeroPositionRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 5; + 8; - friend void swap(GoToResponse& a, GoToResponse& b) { + friend void swap(ResetZeroPositionRequest& a, ResetZeroPositionRequest& b) { a.Swap(&b); } - inline void Swap(GoToResponse* other) { + inline void Swap(ResetZeroPositionRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GoToResponse* other) { + void UnsafeArenaSwap(ResetZeroPositionRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GoToResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const GoToResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const GoToResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + ResetZeroPositionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ResetZeroPositionRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ResetZeroPositionRequest& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.motor.v1.GoToResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ResetZeroPositionRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.motor.v1.ResetZeroPositionRequest"; } protected: - explicit GoToResponse(::google::protobuf::Arena* arena); - GoToResponse(::google::protobuf::Arena* arena, const GoToResponse& from); + explicit ResetZeroPositionRequest(::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, + kOffsetFieldNumber = 2, + }; + // 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(); + + // double offset = 2 [json_name = "offset"]; + void clear_offset(); + double offset() const; + void set_offset(double value); + private: + double _internal_offset() const; + void _internal_set_offset(double value); public: - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:viam.component.motor.v1.GoToResponse) + // @@protoc_insertion_point(class_scope:viam.component.motor.v1.ResetZeroPositionRequest) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + 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_; + double offset_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fmotor_2fv1_2fmotor_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GoForResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.GoForResponse) */ { +class ResetZeroPositionResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.ResetZeroPositionResponse) */ { public: - inline GoForResponse() : GoForResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR GoForResponse(::google::protobuf::internal::ConstantInitialized); + inline ResetZeroPositionResponse() : ResetZeroPositionResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR ResetZeroPositionResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GoForResponse(const GoForResponse& from) - : GoForResponse(nullptr, from) {} - GoForResponse(GoForResponse&& from) noexcept - : GoForResponse() { + ResetZeroPositionResponse(const ResetZeroPositionResponse& from); + ResetZeroPositionResponse(ResetZeroPositionResponse&& from) noexcept + : ResetZeroPositionResponse() { *this = ::std::move(from); } - inline GoForResponse& operator=(const GoForResponse& from) { + inline ResetZeroPositionResponse& operator=(const ResetZeroPositionResponse& from) { CopyFrom(from); return *this; } - inline GoForResponse& operator=(GoForResponse&& from) noexcept { + inline ResetZeroPositionResponse& operator=(ResetZeroPositionResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1599,134 +1560,114 @@ class GoForResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GoForResponse& default_instance() { + static const ResetZeroPositionResponse& default_instance() { return *internal_default_instance(); } - static inline const GoForResponse* internal_default_instance() { - return reinterpret_cast( - &_GoForResponse_default_instance_); + static inline const ResetZeroPositionResponse* internal_default_instance() { + return reinterpret_cast( + &_ResetZeroPositionResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 3; + 9; - friend void swap(GoForResponse& a, GoForResponse& b) { + friend void swap(ResetZeroPositionResponse& a, ResetZeroPositionResponse& b) { a.Swap(&b); } - inline void Swap(GoForResponse* other) { + inline void Swap(ResetZeroPositionResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GoForResponse* other) { + void UnsafeArenaSwap(ResetZeroPositionResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GoForResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ResetZeroPositionResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const GoForResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const ResetZeroPositionResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const GoForResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const ResetZeroPositionResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } public: private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.motor.v1.GoForResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.motor.v1.ResetZeroPositionResponse"; } protected: - explicit GoForResponse(::google::protobuf::Arena* arena); - GoForResponse(::google::protobuf::Arena* arena, const GoForResponse& from); + explicit ResetZeroPositionResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.component.motor.v1.GoForResponse) + // @@protoc_insertion_point(class_scope:viam.component.motor.v1.ResetZeroPositionResponse) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_component_2fmotor_2fv1_2fmotor_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetPropertiesResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.GetPropertiesResponse) */ { +class GetPositionRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.GetPositionRequest) */ { public: - inline GetPropertiesResponse() : GetPropertiesResponse(nullptr) {} - ~GetPropertiesResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetPropertiesResponse(::google::protobuf::internal::ConstantInitialized); + inline GetPositionRequest() : GetPositionRequest(nullptr) {} + ~GetPositionRequest() override; + explicit PROTOBUF_CONSTEXPR GetPositionRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetPropertiesResponse(const GetPropertiesResponse& from) - : GetPropertiesResponse(nullptr, from) {} - GetPropertiesResponse(GetPropertiesResponse&& from) noexcept - : GetPropertiesResponse() { + GetPositionRequest(const GetPositionRequest& from); + GetPositionRequest(GetPositionRequest&& from) noexcept + : GetPositionRequest() { *this = ::std::move(from); } - inline GetPropertiesResponse& operator=(const GetPropertiesResponse& from) { + inline GetPositionRequest& operator=(const GetPositionRequest& from) { CopyFrom(from); return *this; } - inline GetPropertiesResponse& operator=(GetPropertiesResponse&& from) noexcept { + inline GetPositionRequest& operator=(GetPositionRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1736,158 +1677,151 @@ class GetPropertiesResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetPropertiesResponse& default_instance() { + static const GetPositionRequest& default_instance() { return *internal_default_instance(); } - static inline const GetPropertiesResponse* internal_default_instance() { - return reinterpret_cast( - &_GetPropertiesResponse_default_instance_); + static inline const GetPositionRequest* internal_default_instance() { + return reinterpret_cast( + &_GetPositionRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 17; + 10; - friend void swap(GetPropertiesResponse& a, GetPropertiesResponse& b) { + friend void swap(GetPositionRequest& a, GetPositionRequest& b) { a.Swap(&b); } - inline void Swap(GetPropertiesResponse* other) { + inline void Swap(GetPositionRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetPropertiesResponse* other) { + void UnsafeArenaSwap(GetPositionRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetPropertiesResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetPropertiesResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetPropertiesResponse& from) { - GetPropertiesResponse::MergeImpl(*this, from); + GetPositionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPositionRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetPositionRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetPropertiesResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetPositionRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.motor.v1.GetPropertiesResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.motor.v1.GetPositionRequest"; } protected: - explicit GetPropertiesResponse(::google::protobuf::Arena* arena); - GetPropertiesResponse(::google::protobuf::Arena* arena, const GetPropertiesResponse& from); + explicit GetPositionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kPositionReportingFieldNumber = 1, + kNameFieldNumber = 1, + kExtraFieldNumber = 99, }; - // bool position_reporting = 1 [json_name = "positionReporting"]; - void clear_position_reporting() ; - bool position_reporting() const; - void set_position_reporting(bool value); - + // 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: - bool _internal_position_reporting() const; - void _internal_set_position_reporting(bool value); + 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: - // @@protoc_insertion_point(class_scope:viam.component.motor.v1.GetPropertiesResponse) + 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.motor.v1.GetPositionRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - bool position_reporting_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + 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_2fmotor_2fv1_2fmotor_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class GetPositionResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.GetPositionResponse) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.GetPositionResponse) */ { public: inline GetPositionResponse() : GetPositionResponse(nullptr) {} ~GetPositionResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetPositionResponse(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR GetPositionResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetPositionResponse(const GetPositionResponse& from) - : GetPositionResponse(nullptr, from) {} + GetPositionResponse(const GetPositionResponse& from); GetPositionResponse(GetPositionResponse&& from) noexcept : GetPositionResponse() { *this = ::std::move(from); @@ -1899,9 +1833,9 @@ class GetPositionResponse final : } inline GetPositionResponse& operator=(GetPositionResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1911,22 +1845,13 @@ class GetPositionResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const GetPositionResponse& default_instance() { @@ -1945,65 +1870,63 @@ class GetPositionResponse final : inline void Swap(GetPositionResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(GetPositionResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetPositionResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + GetPositionResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const GetPositionResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetPositionResponse& from) { - GetPositionResponse::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetPositionResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(GetPositionResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "viam.component.motor.v1.GetPositionResponse"; } protected: - explicit GetPositionResponse(::google::protobuf::Arena* arena); - GetPositionResponse(::google::protobuf::Arena* arena, const GetPositionResponse& from); + explicit GetPositionResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -2013,56 +1936,35 @@ class GetPositionResponse final : kPositionFieldNumber = 1, }; // double position = 1 [json_name = "position"]; - void clear_position() ; + void clear_position(); double position() const; void set_position(double value); - private: double _internal_position() const; void _internal_set_position(double value); - public: + // @@protoc_insertion_point(class_scope:viam.component.motor.v1.GetPositionResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - double position_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + double position_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fmotor_2fv1_2fmotor_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class StopRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.StopRequest) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.StopRequest) */ { public: inline StopRequest() : StopRequest(nullptr) {} ~StopRequest() override; - template - explicit PROTOBUF_CONSTEXPR StopRequest(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR StopRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline StopRequest(const StopRequest& from) - : StopRequest(nullptr, from) {} + StopRequest(const StopRequest& from); StopRequest(StopRequest&& from) noexcept : StopRequest() { *this = ::std::move(from); @@ -2074,9 +1976,9 @@ class StopRequest final : } inline StopRequest& operator=(StopRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2086,22 +1988,13 @@ class StopRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const StopRequest& default_instance() { @@ -2120,65 +2013,63 @@ class StopRequest final : inline void Swap(StopRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(StopRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - StopRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + StopRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const StopRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const StopRequest& from) { - StopRequest::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const StopRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(StopRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "viam.component.motor.v1.StopRequest"; } protected: - explicit StopRequest(::google::protobuf::Arena* arena); - StopRequest(::google::protobuf::Arena* arena, const StopRequest& from); + explicit StopRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -2189,93 +2080,72 @@ class StopRequest final : kExtraFieldNumber = 99, }; // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + 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; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - + 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.motor.v1.StopRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 2, 1, - 48, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + 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_2fmotor_2fv1_2fmotor_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SetRPMRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.SetRPMRequest) */ { +class StopResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.StopResponse) */ { public: - inline SetRPMRequest() : SetRPMRequest(nullptr) {} - ~SetRPMRequest() override; - template - explicit PROTOBUF_CONSTEXPR SetRPMRequest(::google::protobuf::internal::ConstantInitialized); + inline StopResponse() : StopResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR StopResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline SetRPMRequest(const SetRPMRequest& from) - : SetRPMRequest(nullptr, from) {} - SetRPMRequest(SetRPMRequest&& from) noexcept - : SetRPMRequest() { + StopResponse(const StopResponse& from); + StopResponse(StopResponse&& from) noexcept + : StopResponse() { *this = ::std::move(from); } - inline SetRPMRequest& operator=(const SetRPMRequest& from) { + inline StopResponse& operator=(const StopResponse& from) { CopyFrom(from); return *this; } - inline SetRPMRequest& operator=(SetRPMRequest&& from) noexcept { + inline StopResponse& operator=(StopResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2285,208 +2155,114 @@ class SetRPMRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SetRPMRequest& default_instance() { + static const StopResponse& default_instance() { return *internal_default_instance(); } - static inline const SetRPMRequest* internal_default_instance() { - return reinterpret_cast( - &_SetRPMRequest_default_instance_); + static inline const StopResponse* internal_default_instance() { + return reinterpret_cast( + &_StopResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 6; + 13; - friend void swap(SetRPMRequest& a, SetRPMRequest& b) { + friend void swap(StopResponse& a, StopResponse& b) { a.Swap(&b); } - inline void Swap(SetRPMRequest* other) { + inline void Swap(StopResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SetRPMRequest* other) { + void UnsafeArenaSwap(StopResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SetRPMRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + StopResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SetRPMRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SetRPMRequest& from) { - SetRPMRequest::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const StopResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const StopResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SetRPMRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.motor.v1.SetRPMRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.motor.v1.StopResponse"; } protected: - explicit SetRPMRequest(::google::protobuf::Arena* arena); - SetRPMRequest(::google::protobuf::Arena* arena, const SetRPMRequest& from); + explicit StopResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kNameFieldNumber = 1, - kExtraFieldNumber = 99, - kRpmFieldNumber = 2, - }; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - - public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - - public: - // double rpm = 2 [json_name = "rpm"]; - void clear_rpm() ; - double rpm() const; - void set_rpm(double value); - - private: - double _internal_rpm() const; - void _internal_set_rpm(double value); - - public: - // @@protoc_insertion_point(class_scope:viam.component.motor.v1.SetRPMRequest) + // @@protoc_insertion_point(class_scope:viam.component.motor.v1.StopResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 1, - 50, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - double rpm_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_component_2fmotor_2fv1_2fmotor_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SetPowerRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.SetPowerRequest) */ { +class IsPoweredRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.IsPoweredRequest) */ { public: - inline SetPowerRequest() : SetPowerRequest(nullptr) {} - ~SetPowerRequest() override; - template - explicit PROTOBUF_CONSTEXPR SetPowerRequest(::google::protobuf::internal::ConstantInitialized); + inline IsPoweredRequest() : IsPoweredRequest(nullptr) {} + ~IsPoweredRequest() override; + explicit PROTOBUF_CONSTEXPR IsPoweredRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline SetPowerRequest(const SetPowerRequest& from) - : SetPowerRequest(nullptr, from) {} - SetPowerRequest(SetPowerRequest&& from) noexcept - : SetPowerRequest() { + IsPoweredRequest(const IsPoweredRequest& from); + IsPoweredRequest(IsPoweredRequest&& from) noexcept + : IsPoweredRequest() { *this = ::std::move(from); } - inline SetPowerRequest& operator=(const SetPowerRequest& from) { + inline IsPoweredRequest& operator=(const IsPoweredRequest& from) { CopyFrom(from); return *this; } - inline SetPowerRequest& operator=(SetPowerRequest&& from) noexcept { + inline IsPoweredRequest& operator=(IsPoweredRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2496,99 +2272,88 @@ class SetPowerRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SetPowerRequest& default_instance() { + static const IsPoweredRequest& default_instance() { return *internal_default_instance(); } - static inline const SetPowerRequest* internal_default_instance() { - return reinterpret_cast( - &_SetPowerRequest_default_instance_); + static inline const IsPoweredRequest* internal_default_instance() { + return reinterpret_cast( + &_IsPoweredRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 0; + 14; - friend void swap(SetPowerRequest& a, SetPowerRequest& b) { + friend void swap(IsPoweredRequest& a, IsPoweredRequest& b) { a.Swap(&b); } - inline void Swap(SetPowerRequest* other) { + inline void Swap(IsPoweredRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SetPowerRequest* other) { + void UnsafeArenaSwap(IsPoweredRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SetPowerRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SetPowerRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SetPowerRequest& from) { - SetPowerRequest::MergeImpl(*this, from); + IsPoweredRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const IsPoweredRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const IsPoweredRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(SetPowerRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(IsPoweredRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.motor.v1.SetPowerRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.motor.v1.IsPoweredRequest"; } protected: - explicit SetPowerRequest(::google::protobuf::Arena* arena); - SetPowerRequest(::google::protobuf::Arena* arena, const SetPowerRequest& from); + explicit IsPoweredRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -2597,107 +2362,75 @@ class SetPowerRequest final : enum : int { kNameFieldNumber = 1, kExtraFieldNumber = 99, - kPowerPctFieldNumber = 2, }; // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + 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; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - + bool _internal_has_extra() const; public: - // double power_pct = 2 [json_name = "powerPct"]; - void clear_power_pct() ; - double power_pct() const; - void set_power_pct(double value); - + 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: - double _internal_power_pct() const; - void _internal_set_power_pct(double value); - + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_extra() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_extra(); public: - // @@protoc_insertion_point(class_scope:viam.component.motor.v1.SetPowerRequest) + 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.motor.v1.IsPoweredRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 1, - 52, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - double power_pct_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + 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_2fmotor_2fv1_2fmotor_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ResetZeroPositionRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.ResetZeroPositionRequest) */ { +class IsPoweredResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.IsPoweredResponse) */ { public: - inline ResetZeroPositionRequest() : ResetZeroPositionRequest(nullptr) {} - ~ResetZeroPositionRequest() override; - template - explicit PROTOBUF_CONSTEXPR ResetZeroPositionRequest(::google::protobuf::internal::ConstantInitialized); + inline IsPoweredResponse() : IsPoweredResponse(nullptr) {} + ~IsPoweredResponse() override; + explicit PROTOBUF_CONSTEXPR IsPoweredResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ResetZeroPositionRequest(const ResetZeroPositionRequest& from) - : ResetZeroPositionRequest(nullptr, from) {} - ResetZeroPositionRequest(ResetZeroPositionRequest&& from) noexcept - : ResetZeroPositionRequest() { + IsPoweredResponse(const IsPoweredResponse& from); + IsPoweredResponse(IsPoweredResponse&& from) noexcept + : IsPoweredResponse() { *this = ::std::move(from); } - inline ResetZeroPositionRequest& operator=(const ResetZeroPositionRequest& from) { + inline IsPoweredResponse& operator=(const IsPoweredResponse& from) { CopyFrom(from); return *this; } - inline ResetZeroPositionRequest& operator=(ResetZeroPositionRequest&& from) noexcept { + inline IsPoweredResponse& operator=(IsPoweredResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2707,208 +2440,151 @@ class ResetZeroPositionRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ResetZeroPositionRequest& default_instance() { + static const IsPoweredResponse& default_instance() { return *internal_default_instance(); } - static inline const ResetZeroPositionRequest* internal_default_instance() { - return reinterpret_cast( - &_ResetZeroPositionRequest_default_instance_); + static inline const IsPoweredResponse* internal_default_instance() { + return reinterpret_cast( + &_IsPoweredResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 8; + 15; - friend void swap(ResetZeroPositionRequest& a, ResetZeroPositionRequest& b) { + friend void swap(IsPoweredResponse& a, IsPoweredResponse& b) { a.Swap(&b); } - inline void Swap(ResetZeroPositionRequest* other) { + inline void Swap(IsPoweredResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ResetZeroPositionRequest* other) { + void UnsafeArenaSwap(IsPoweredResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ResetZeroPositionRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ResetZeroPositionRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ResetZeroPositionRequest& from) { - ResetZeroPositionRequest::MergeImpl(*this, from); + IsPoweredResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const IsPoweredResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const IsPoweredResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ResetZeroPositionRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(IsPoweredResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.motor.v1.ResetZeroPositionRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.motor.v1.IsPoweredResponse"; } protected: - explicit ResetZeroPositionRequest(::google::protobuf::Arena* arena); - ResetZeroPositionRequest(::google::protobuf::Arena* arena, const ResetZeroPositionRequest& from); + explicit IsPoweredResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kNameFieldNumber = 1, - kExtraFieldNumber = 99, - kOffsetFieldNumber = 2, + kPowerPctFieldNumber = 2, + kIsOnFieldNumber = 1, }; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + // double power_pct = 2 [json_name = "powerPct"]; + void clear_power_pct(); + double power_pct() const; + void set_power_pct(double value); private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - + double _internal_power_pct() const; + void _internal_set_power_pct(double value); public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); + // bool is_on = 1 [json_name = "isOn"]; + void clear_is_on(); + bool is_on() const; + void set_is_on(bool value); private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - + bool _internal_is_on() const; + void _internal_set_is_on(bool value); public: - // double offset = 2 [json_name = "offset"]; - void clear_offset() ; - double offset() const; - void set_offset(double value); - - private: - double _internal_offset() const; - void _internal_set_offset(double value); - public: - // @@protoc_insertion_point(class_scope:viam.component.motor.v1.ResetZeroPositionRequest) + // @@protoc_insertion_point(class_scope:viam.component.motor.v1.IsPoweredResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 1, - 61, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - double offset_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + double power_pct_; + bool is_on_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fmotor_2fv1_2fmotor_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class IsPoweredRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.IsPoweredRequest) */ { +class GetPropertiesRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.GetPropertiesRequest) */ { public: - inline IsPoweredRequest() : IsPoweredRequest(nullptr) {} - ~IsPoweredRequest() override; - template - explicit PROTOBUF_CONSTEXPR IsPoweredRequest(::google::protobuf::internal::ConstantInitialized); + inline GetPropertiesRequest() : GetPropertiesRequest(nullptr) {} + ~GetPropertiesRequest() override; + explicit PROTOBUF_CONSTEXPR GetPropertiesRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline IsPoweredRequest(const IsPoweredRequest& from) - : IsPoweredRequest(nullptr, from) {} - IsPoweredRequest(IsPoweredRequest&& from) noexcept - : IsPoweredRequest() { + GetPropertiesRequest(const GetPropertiesRequest& from); + GetPropertiesRequest(GetPropertiesRequest&& from) noexcept + : GetPropertiesRequest() { *this = ::std::move(from); } - inline IsPoweredRequest& operator=(const IsPoweredRequest& from) { + inline GetPropertiesRequest& operator=(const GetPropertiesRequest& from) { CopyFrom(from); return *this; } - inline IsPoweredRequest& operator=(IsPoweredRequest&& from) noexcept { + inline GetPropertiesRequest& operator=(GetPropertiesRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2918,99 +2594,88 @@ class IsPoweredRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const IsPoweredRequest& default_instance() { + static const GetPropertiesRequest& default_instance() { return *internal_default_instance(); } - static inline const IsPoweredRequest* internal_default_instance() { - return reinterpret_cast( - &_IsPoweredRequest_default_instance_); + static inline const GetPropertiesRequest* internal_default_instance() { + return reinterpret_cast( + &_GetPropertiesRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 14; + 16; - friend void swap(IsPoweredRequest& a, IsPoweredRequest& b) { + friend void swap(GetPropertiesRequest& a, GetPropertiesRequest& b) { a.Swap(&b); } - inline void Swap(IsPoweredRequest* other) { + inline void Swap(GetPropertiesRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(IsPoweredRequest* other) { + void UnsafeArenaSwap(GetPropertiesRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - IsPoweredRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const IsPoweredRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const IsPoweredRequest& from) { - IsPoweredRequest::MergeImpl(*this, from); + GetPropertiesRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPropertiesRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetPropertiesRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(IsPoweredRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetPropertiesRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.motor.v1.IsPoweredRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.motor.v1.GetPropertiesRequest"; } protected: - explicit IsPoweredRequest(::google::protobuf::Arena* arena); - IsPoweredRequest(::google::protobuf::Arena* arena, const IsPoweredRequest& from); + explicit GetPropertiesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -3021,93 +2686,73 @@ class IsPoweredRequest final : kExtraFieldNumber = 99, }; // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + 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; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - + bool _internal_has_extra() const; public: - // @@protoc_insertion_point(class_scope:viam.component.motor.v1.IsPoweredRequest) + 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.motor.v1.GetPropertiesRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 2, 1, - 53, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + 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_2fmotor_2fv1_2fmotor_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GoToRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.GoToRequest) */ { +class GetPropertiesResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.GetPropertiesResponse) */ { public: - inline GoToRequest() : GoToRequest(nullptr) {} - ~GoToRequest() override; - template - explicit PROTOBUF_CONSTEXPR GoToRequest(::google::protobuf::internal::ConstantInitialized); + inline GetPropertiesResponse() : GetPropertiesResponse(nullptr) {} + ~GetPropertiesResponse() override; + explicit PROTOBUF_CONSTEXPR GetPropertiesResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GoToRequest(const GoToRequest& from) - : GoToRequest(nullptr, from) {} - GoToRequest(GoToRequest&& from) noexcept - : GoToRequest() { + GetPropertiesResponse(const GetPropertiesResponse& from); + GetPropertiesResponse(GetPropertiesResponse&& from) noexcept + : GetPropertiesResponse() { *this = ::std::move(from); } - inline GoToRequest& operator=(const GoToRequest& from) { + inline GetPropertiesResponse& operator=(const GetPropertiesResponse& from) { CopyFrom(from); return *this; } - inline GoToRequest& operator=(GoToRequest&& from) noexcept { + inline GetPropertiesResponse& operator=(GetPropertiesResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3117,220 +2762,140 @@ class GoToRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GoToRequest& default_instance() { + static const GetPropertiesResponse& default_instance() { return *internal_default_instance(); } - static inline const GoToRequest* internal_default_instance() { - return reinterpret_cast( - &_GoToRequest_default_instance_); + static inline const GetPropertiesResponse* internal_default_instance() { + return reinterpret_cast( + &_GetPropertiesResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 4; + 17; - friend void swap(GoToRequest& a, GoToRequest& b) { + friend void swap(GetPropertiesResponse& a, GetPropertiesResponse& b) { a.Swap(&b); } - inline void Swap(GoToRequest* other) { + inline void Swap(GetPropertiesResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GoToRequest* other) { + void UnsafeArenaSwap(GetPropertiesResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GoToRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GoToRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GoToRequest& from) { - GoToRequest::MergeImpl(*this, from); + GetPropertiesResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPropertiesResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetPropertiesResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GoToRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetPropertiesResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.motor.v1.GoToRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.motor.v1.GetPropertiesResponse"; } protected: - explicit GoToRequest(::google::protobuf::Arena* arena); - GoToRequest(::google::protobuf::Arena* arena, const GoToRequest& from); + explicit GetPropertiesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kNameFieldNumber = 1, - kExtraFieldNumber = 99, - kRpmFieldNumber = 2, - kPositionRevolutionsFieldNumber = 3, - }; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - - public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - - public: - // double rpm = 2 [json_name = "rpm"]; - void clear_rpm() ; - double rpm() const; - void set_rpm(double value); + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - private: - double _internal_rpm() const; - void _internal_set_rpm(double value); - - public: - // double position_revolutions = 3 [json_name = "positionRevolutions"]; - void clear_position_revolutions() ; - double position_revolutions() const; - void set_position_revolutions(double value); + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - double _internal_position_revolutions() const; - void _internal_set_position_revolutions(double value); + // nested types ---------------------------------------------------- + // accessors ------------------------------------------------------- + + enum : int { + kPositionReportingFieldNumber = 1, + }; + // bool position_reporting = 1 [json_name = "positionReporting"]; + void clear_position_reporting(); + bool position_reporting() const; + void set_position_reporting(bool value); + private: + bool _internal_position_reporting() const; + void _internal_set_position_reporting(bool value); public: - // @@protoc_insertion_point(class_scope:viam.component.motor.v1.GoToRequest) + + // @@protoc_insertion_point(class_scope:viam.component.motor.v1.GetPropertiesResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 1, - 48, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - double rpm_; - double position_revolutions_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + bool position_reporting_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fmotor_2fv1_2fmotor_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GoForRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.GoForRequest) */ { +class Status final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.Status) */ { public: - inline GoForRequest() : GoForRequest(nullptr) {} - ~GoForRequest() override; - template - explicit PROTOBUF_CONSTEXPR GoForRequest(::google::protobuf::internal::ConstantInitialized); + inline Status() : Status(nullptr) {} + ~Status() override; + explicit PROTOBUF_CONSTEXPR Status(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GoForRequest(const GoForRequest& from) - : GoForRequest(nullptr, from) {} - GoForRequest(GoForRequest&& from) noexcept - : GoForRequest() { + Status(const Status& from); + Status(Status&& from) noexcept + : Status() { *this = ::std::move(from); } - inline GoForRequest& operator=(const GoForRequest& from) { + inline Status& operator=(const Status& from) { CopyFrom(from); return *this; } - inline GoForRequest& operator=(GoForRequest&& from) noexcept { + inline Status& operator=(Status&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3340,220 +2905,162 @@ class GoForRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GoForRequest& default_instance() { + static const Status& default_instance() { return *internal_default_instance(); } - static inline const GoForRequest* internal_default_instance() { - return reinterpret_cast( - &_GoForRequest_default_instance_); + static inline const Status* internal_default_instance() { + return reinterpret_cast( + &_Status_default_instance_); } static constexpr int kIndexInFileMessages = - 2; + 18; - friend void swap(GoForRequest& a, GoForRequest& b) { + friend void swap(Status& a, Status& b) { a.Swap(&b); } - inline void Swap(GoForRequest* other) { + inline void Swap(Status* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GoForRequest* other) { + void UnsafeArenaSwap(Status* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GoForRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GoForRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GoForRequest& from) { - GoForRequest::MergeImpl(*this, from); + Status* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Status& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Status& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GoForRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(Status* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.motor.v1.GoForRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.motor.v1.Status"; } protected: - explicit GoForRequest(::google::protobuf::Arena* arena); - GoForRequest(::google::protobuf::Arena* arena, const GoForRequest& from); + explicit Status(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kNameFieldNumber = 1, - kExtraFieldNumber = 99, - kRpmFieldNumber = 2, - kRevolutionsFieldNumber = 3, + kPositionFieldNumber = 3, + kIsPoweredFieldNumber = 1, + kIsMovingFieldNumber = 4, }; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + // double position = 3 [json_name = "position"]; + void clear_position(); + double position() const; + void set_position(double value); private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - + double _internal_position() const; + void _internal_set_position(double value); public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); + // bool is_powered = 1 [json_name = "isPowered"]; + void clear_is_powered(); + bool is_powered() const; + void set_is_powered(bool value); private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - + bool _internal_is_powered() const; + void _internal_set_is_powered(bool value); public: - // double rpm = 2 [json_name = "rpm"]; - void clear_rpm() ; - double rpm() const; - void set_rpm(double value); + // bool is_moving = 4 [json_name = "isMoving"]; + void clear_is_moving(); + bool is_moving() const; + void set_is_moving(bool value); private: - double _internal_rpm() const; - void _internal_set_rpm(double value); - + bool _internal_is_moving() const; + void _internal_set_is_moving(bool value); public: - // double revolutions = 3 [json_name = "revolutions"]; - void clear_revolutions() ; - double revolutions() const; - void set_revolutions(double value); - - private: - double _internal_revolutions() const; - void _internal_set_revolutions(double value); - public: - // @@protoc_insertion_point(class_scope:viam.component.motor.v1.GoForRequest) + // @@protoc_insertion_point(class_scope:viam.component.motor.v1.Status) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 1, - 49, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - double rpm_; - double revolutions_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + double position_; + bool is_powered_; + bool is_moving_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fmotor_2fv1_2fmotor_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetPropertiesRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.GetPropertiesRequest) */ { +class IsMovingRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.IsMovingRequest) */ { public: - inline GetPropertiesRequest() : GetPropertiesRequest(nullptr) {} - ~GetPropertiesRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetPropertiesRequest(::google::protobuf::internal::ConstantInitialized); + inline IsMovingRequest() : IsMovingRequest(nullptr) {} + ~IsMovingRequest() override; + explicit PROTOBUF_CONSTEXPR IsMovingRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetPropertiesRequest(const GetPropertiesRequest& from) - : GetPropertiesRequest(nullptr, from) {} - GetPropertiesRequest(GetPropertiesRequest&& from) noexcept - : GetPropertiesRequest() { + IsMovingRequest(const IsMovingRequest& from); + IsMovingRequest(IsMovingRequest&& from) noexcept + : IsMovingRequest() { *this = ::std::move(from); } - inline GetPropertiesRequest& operator=(const GetPropertiesRequest& from) { + inline IsMovingRequest& operator=(const IsMovingRequest& from) { CopyFrom(from); return *this; } - inline GetPropertiesRequest& operator=(GetPropertiesRequest&& from) noexcept { + inline IsMovingRequest& operator=(IsMovingRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3563,99 +3070,88 @@ class GetPropertiesRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetPropertiesRequest& default_instance() { + static const IsMovingRequest& default_instance() { return *internal_default_instance(); } - static inline const GetPropertiesRequest* internal_default_instance() { - return reinterpret_cast( - &_GetPropertiesRequest_default_instance_); + static inline const IsMovingRequest* internal_default_instance() { + return reinterpret_cast( + &_IsMovingRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 16; + 19; - friend void swap(GetPropertiesRequest& a, GetPropertiesRequest& b) { + friend void swap(IsMovingRequest& a, IsMovingRequest& b) { a.Swap(&b); } - inline void Swap(GetPropertiesRequest* other) { + inline void Swap(IsMovingRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetPropertiesRequest* other) { + void UnsafeArenaSwap(IsMovingRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetPropertiesRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetPropertiesRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetPropertiesRequest& from) { - GetPropertiesRequest::MergeImpl(*this, from); + IsMovingRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const IsMovingRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const IsMovingRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetPropertiesRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(IsMovingRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.motor.v1.GetPropertiesRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.motor.v1.IsMovingRequest"; } protected: - explicit GetPropertiesRequest(::google::protobuf::Arena* arena); - GetPropertiesRequest(::google::protobuf::Arena* arena, const GetPropertiesRequest& from); + explicit IsMovingRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -3663,96 +3159,56 @@ class GetPropertiesRequest final : enum : int { kNameFieldNumber = 1, - kExtraFieldNumber = 99, }; // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + 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; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - public: - // @@protoc_insertion_point(class_scope:viam.component.motor.v1.GetPropertiesRequest) + // @@protoc_insertion_point(class_scope:viam.component.motor.v1.IsMovingRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 2, 1, - 57, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fmotor_2fv1_2fmotor_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetPositionRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.GetPositionRequest) */ { +class IsMovingResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.motor.v1.IsMovingResponse) */ { public: - inline GetPositionRequest() : GetPositionRequest(nullptr) {} - ~GetPositionRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetPositionRequest(::google::protobuf::internal::ConstantInitialized); + inline IsMovingResponse() : IsMovingResponse(nullptr) {} + ~IsMovingResponse() override; + explicit PROTOBUF_CONSTEXPR IsMovingResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetPositionRequest(const GetPositionRequest& from) - : GetPositionRequest(nullptr, from) {} - GetPositionRequest(GetPositionRequest&& from) noexcept - : GetPositionRequest() { + IsMovingResponse(const IsMovingResponse& from); + IsMovingResponse(IsMovingResponse&& from) noexcept + : IsMovingResponse() { *this = ::std::move(from); } - inline GetPositionRequest& operator=(const GetPositionRequest& from) { + inline IsMovingResponse& operator=(const IsMovingResponse& from) { CopyFrom(from); return *this; } - inline GetPositionRequest& operator=(GetPositionRequest&& from) noexcept { + inline IsMovingResponse& operator=(IsMovingResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3762,352 +3218,279 @@ class GetPositionRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetPositionRequest& default_instance() { + static const IsMovingResponse& default_instance() { return *internal_default_instance(); } - static inline const GetPositionRequest* internal_default_instance() { - return reinterpret_cast( - &_GetPositionRequest_default_instance_); + static inline const IsMovingResponse* internal_default_instance() { + return reinterpret_cast( + &_IsMovingResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 10; + 20; - friend void swap(GetPositionRequest& a, GetPositionRequest& b) { + friend void swap(IsMovingResponse& a, IsMovingResponse& b) { a.Swap(&b); } - inline void Swap(GetPositionRequest* other) { + inline void Swap(IsMovingResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetPositionRequest* other) { + void UnsafeArenaSwap(IsMovingResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetPositionRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetPositionRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetPositionRequest& from) { - GetPositionRequest::MergeImpl(*this, from); + IsMovingResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const IsMovingResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const IsMovingResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetPositionRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(IsMovingResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.motor.v1.GetPositionRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.motor.v1.IsMovingResponse"; } protected: - explicit GetPositionRequest(::google::protobuf::Arena* arena); - GetPositionRequest(::google::protobuf::Arena* arena, const GetPositionRequest& from); + explicit IsMovingResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kNameFieldNumber = 1, - kExtraFieldNumber = 99, + kIsMovingFieldNumber = 1, }; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + // bool is_moving = 1 [json_name = "isMoving"]; + void clear_is_moving(); + bool is_moving() const; + void set_is_moving(bool value); private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - + bool _internal_is_moving() const; + void _internal_set_is_moving(bool value); public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - public: - // @@protoc_insertion_point(class_scope:viam.component.motor.v1.GetPositionRequest) + // @@protoc_insertion_point(class_scope:viam.component.motor.v1.IsMovingResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 2, 1, - 55, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + bool is_moving_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fmotor_2fv1_2fmotor_2eproto; }; - // =================================================================== - - // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ -// ------------------------------------------------------------------- - // SetPowerRequest // string name = 1 [json_name = "name"]; inline void SetPowerRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& SetPowerRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& SetPowerRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.motor.v1.SetPowerRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void SetPowerRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void SetPowerRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.motor.v1.SetPowerRequest.name) } -inline std::string* SetPowerRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* SetPowerRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.motor.v1.SetPowerRequest.name) return _s; } inline const std::string& SetPowerRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void SetPowerRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* SetPowerRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* SetPowerRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.motor.v1.SetPowerRequest.name) - return _impl_.name_.Release(); -} -inline void SetPowerRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void SetPowerRequest::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.motor.v1.SetPowerRequest.name) } // double power_pct = 2 [json_name = "powerPct"]; inline void SetPowerRequest::clear_power_pct() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.power_pct_ = 0; + power_pct_ = 0; +} +inline double SetPowerRequest::_internal_power_pct() const { + return power_pct_; } inline double SetPowerRequest::power_pct() const { // @@protoc_insertion_point(field_get:viam.component.motor.v1.SetPowerRequest.power_pct) return _internal_power_pct(); } -inline void SetPowerRequest::set_power_pct(double value) { - _internal_set_power_pct(value); - // @@protoc_insertion_point(field_set:viam.component.motor.v1.SetPowerRequest.power_pct) -} -inline double SetPowerRequest::_internal_power_pct() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.power_pct_; -} inline void SetPowerRequest::_internal_set_power_pct(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.power_pct_ = value; + + power_pct_ = value; +} +inline void SetPowerRequest::set_power_pct(double value) { + _internal_set_power_pct(value); + // @@protoc_insertion_point(field_set:viam.component.motor.v1.SetPowerRequest.power_pct) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool SetPowerRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool SetPowerRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& SetPowerRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& SetPowerRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& SetPowerRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& SetPowerRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.motor.v1.SetPowerRequest.extra) return _internal_extra(); } -inline void SetPowerRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void SetPowerRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.motor.v1.SetPowerRequest.extra) } -inline ::google::protobuf::Struct* SetPowerRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetPowerRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* SetPowerRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetPowerRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.motor.v1.SetPowerRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* SetPowerRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetPowerRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* SetPowerRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetPowerRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.motor.v1.SetPowerRequest.extra) return _msg; } -inline void SetPowerRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void SetPowerRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.motor.v1.SetPowerRequest.extra) } @@ -4121,191 +3504,176 @@ inline void SetPowerRequest::set_allocated_extra(::google::protobuf::Struct* val // string name = 1 [json_name = "name"]; inline void GoForRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& GoForRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GoForRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.motor.v1.GoForRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GoForRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GoForRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.motor.v1.GoForRequest.name) } -inline std::string* GoForRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GoForRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.motor.v1.GoForRequest.name) return _s; } inline const std::string& GoForRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void GoForRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* GoForRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* GoForRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.motor.v1.GoForRequest.name) - return _impl_.name_.Release(); -} -inline void GoForRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void GoForRequest::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.motor.v1.GoForRequest.name) } // double rpm = 2 [json_name = "rpm"]; inline void GoForRequest::clear_rpm() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.rpm_ = 0; + rpm_ = 0; +} +inline double GoForRequest::_internal_rpm() const { + return rpm_; } inline double GoForRequest::rpm() const { // @@protoc_insertion_point(field_get:viam.component.motor.v1.GoForRequest.rpm) return _internal_rpm(); } +inline void GoForRequest::_internal_set_rpm(double value) { + + rpm_ = value; +} inline void GoForRequest::set_rpm(double value) { _internal_set_rpm(value); // @@protoc_insertion_point(field_set:viam.component.motor.v1.GoForRequest.rpm) } -inline double GoForRequest::_internal_rpm() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.rpm_; -} -inline void GoForRequest::_internal_set_rpm(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.rpm_ = value; -} // double revolutions = 3 [json_name = "revolutions"]; inline void GoForRequest::clear_revolutions() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.revolutions_ = 0; + revolutions_ = 0; +} +inline double GoForRequest::_internal_revolutions() const { + return revolutions_; } inline double GoForRequest::revolutions() const { // @@protoc_insertion_point(field_get:viam.component.motor.v1.GoForRequest.revolutions) return _internal_revolutions(); } +inline void GoForRequest::_internal_set_revolutions(double value) { + + revolutions_ = value; +} inline void GoForRequest::set_revolutions(double value) { _internal_set_revolutions(value); // @@protoc_insertion_point(field_set:viam.component.motor.v1.GoForRequest.revolutions) } -inline double GoForRequest::_internal_revolutions() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.revolutions_; -} -inline void GoForRequest::_internal_set_revolutions(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.revolutions_ = value; -} // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GoForRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool GoForRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& GoForRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GoForRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& GoForRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GoForRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.motor.v1.GoForRequest.extra) return _internal_extra(); } -inline void GoForRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void GoForRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.motor.v1.GoForRequest.extra) } -inline ::google::protobuf::Struct* GoForRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* GoForRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* GoForRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GoForRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.motor.v1.GoForRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* GoForRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GoForRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* GoForRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GoForRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.motor.v1.GoForRequest.extra) return _msg; } -inline void GoForRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GoForRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.motor.v1.GoForRequest.extra) } @@ -4319,191 +3687,176 @@ inline void GoForRequest::set_allocated_extra(::google::protobuf::Struct* value) // string name = 1 [json_name = "name"]; inline void GoToRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& GoToRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GoToRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.motor.v1.GoToRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GoToRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GoToRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.motor.v1.GoToRequest.name) } -inline std::string* GoToRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GoToRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.motor.v1.GoToRequest.name) return _s; } inline const std::string& GoToRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void GoToRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* GoToRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* GoToRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.motor.v1.GoToRequest.name) - return _impl_.name_.Release(); -} -inline void GoToRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void GoToRequest::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.motor.v1.GoToRequest.name) } // double rpm = 2 [json_name = "rpm"]; inline void GoToRequest::clear_rpm() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.rpm_ = 0; + rpm_ = 0; +} +inline double GoToRequest::_internal_rpm() const { + return rpm_; } inline double GoToRequest::rpm() const { // @@protoc_insertion_point(field_get:viam.component.motor.v1.GoToRequest.rpm) return _internal_rpm(); } +inline void GoToRequest::_internal_set_rpm(double value) { + + rpm_ = value; +} inline void GoToRequest::set_rpm(double value) { _internal_set_rpm(value); // @@protoc_insertion_point(field_set:viam.component.motor.v1.GoToRequest.rpm) } -inline double GoToRequest::_internal_rpm() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.rpm_; -} -inline void GoToRequest::_internal_set_rpm(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.rpm_ = value; -} // double position_revolutions = 3 [json_name = "positionRevolutions"]; inline void GoToRequest::clear_position_revolutions() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.position_revolutions_ = 0; + position_revolutions_ = 0; +} +inline double GoToRequest::_internal_position_revolutions() const { + return position_revolutions_; } inline double GoToRequest::position_revolutions() const { // @@protoc_insertion_point(field_get:viam.component.motor.v1.GoToRequest.position_revolutions) return _internal_position_revolutions(); } +inline void GoToRequest::_internal_set_position_revolutions(double value) { + + position_revolutions_ = value; +} inline void GoToRequest::set_position_revolutions(double value) { _internal_set_position_revolutions(value); // @@protoc_insertion_point(field_set:viam.component.motor.v1.GoToRequest.position_revolutions) } -inline double GoToRequest::_internal_position_revolutions() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.position_revolutions_; -} -inline void GoToRequest::_internal_set_position_revolutions(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.position_revolutions_ = value; -} // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GoToRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool GoToRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& GoToRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GoToRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& GoToRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GoToRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.motor.v1.GoToRequest.extra) return _internal_extra(); } -inline void GoToRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void GoToRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.motor.v1.GoToRequest.extra) } -inline ::google::protobuf::Struct* GoToRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* GoToRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* GoToRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GoToRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.motor.v1.GoToRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* GoToRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GoToRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* GoToRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GoToRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.motor.v1.GoToRequest.extra) return _msg; } -inline void GoToRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GoToRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.motor.v1.GoToRequest.extra) } @@ -4517,168 +3870,156 @@ inline void GoToRequest::set_allocated_extra(::google::protobuf::Struct* value) // string name = 1 [json_name = "name"]; inline void SetRPMRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& SetRPMRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& SetRPMRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.motor.v1.SetRPMRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void SetRPMRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void SetRPMRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.motor.v1.SetRPMRequest.name) } -inline std::string* SetRPMRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* SetRPMRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.motor.v1.SetRPMRequest.name) return _s; } inline const std::string& SetRPMRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void SetRPMRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* SetRPMRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* SetRPMRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.motor.v1.SetRPMRequest.name) - return _impl_.name_.Release(); -} -inline void SetRPMRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void SetRPMRequest::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.motor.v1.SetRPMRequest.name) } // double rpm = 2 [json_name = "rpm"]; inline void SetRPMRequest::clear_rpm() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.rpm_ = 0; + rpm_ = 0; +} +inline double SetRPMRequest::_internal_rpm() const { + return rpm_; } inline double SetRPMRequest::rpm() const { // @@protoc_insertion_point(field_get:viam.component.motor.v1.SetRPMRequest.rpm) return _internal_rpm(); } +inline void SetRPMRequest::_internal_set_rpm(double value) { + + rpm_ = value; +} inline void SetRPMRequest::set_rpm(double value) { _internal_set_rpm(value); // @@protoc_insertion_point(field_set:viam.component.motor.v1.SetRPMRequest.rpm) } -inline double SetRPMRequest::_internal_rpm() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.rpm_; -} -inline void SetRPMRequest::_internal_set_rpm(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.rpm_ = value; -} // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool SetRPMRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool SetRPMRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& SetRPMRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& SetRPMRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& SetRPMRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& SetRPMRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.motor.v1.SetRPMRequest.extra) return _internal_extra(); } -inline void SetRPMRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void SetRPMRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.motor.v1.SetRPMRequest.extra) } -inline ::google::protobuf::Struct* SetRPMRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetRPMRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* SetRPMRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetRPMRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.motor.v1.SetRPMRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* SetRPMRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetRPMRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* SetRPMRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetRPMRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.motor.v1.SetRPMRequest.extra) return _msg; } -inline void SetRPMRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void SetRPMRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.motor.v1.SetRPMRequest.extra) } @@ -4692,168 +4033,156 @@ inline void SetRPMRequest::set_allocated_extra(::google::protobuf::Struct* value // string name = 1 [json_name = "name"]; inline void ResetZeroPositionRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& ResetZeroPositionRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ResetZeroPositionRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.motor.v1.ResetZeroPositionRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void ResetZeroPositionRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ResetZeroPositionRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.motor.v1.ResetZeroPositionRequest.name) } -inline std::string* ResetZeroPositionRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ResetZeroPositionRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.motor.v1.ResetZeroPositionRequest.name) return _s; } inline const std::string& ResetZeroPositionRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void ResetZeroPositionRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* ResetZeroPositionRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* ResetZeroPositionRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.motor.v1.ResetZeroPositionRequest.name) - return _impl_.name_.Release(); -} -inline void ResetZeroPositionRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void ResetZeroPositionRequest::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.motor.v1.ResetZeroPositionRequest.name) } // double offset = 2 [json_name = "offset"]; inline void ResetZeroPositionRequest::clear_offset() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.offset_ = 0; + offset_ = 0; +} +inline double ResetZeroPositionRequest::_internal_offset() const { + return offset_; } inline double ResetZeroPositionRequest::offset() const { // @@protoc_insertion_point(field_get:viam.component.motor.v1.ResetZeroPositionRequest.offset) return _internal_offset(); } +inline void ResetZeroPositionRequest::_internal_set_offset(double value) { + + offset_ = value; +} inline void ResetZeroPositionRequest::set_offset(double value) { _internal_set_offset(value); // @@protoc_insertion_point(field_set:viam.component.motor.v1.ResetZeroPositionRequest.offset) } -inline double ResetZeroPositionRequest::_internal_offset() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.offset_; -} -inline void ResetZeroPositionRequest::_internal_set_offset(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.offset_ = value; -} // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool ResetZeroPositionRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool ResetZeroPositionRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& ResetZeroPositionRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& ResetZeroPositionRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& ResetZeroPositionRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& ResetZeroPositionRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.motor.v1.ResetZeroPositionRequest.extra) return _internal_extra(); } -inline void ResetZeroPositionRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void ResetZeroPositionRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.motor.v1.ResetZeroPositionRequest.extra) } -inline ::google::protobuf::Struct* ResetZeroPositionRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* ResetZeroPositionRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* ResetZeroPositionRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* ResetZeroPositionRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.motor.v1.ResetZeroPositionRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* ResetZeroPositionRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* ResetZeroPositionRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* ResetZeroPositionRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* ResetZeroPositionRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.motor.v1.ResetZeroPositionRequest.extra) return _msg; } -inline void ResetZeroPositionRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ResetZeroPositionRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.motor.v1.ResetZeroPositionRequest.extra) } @@ -4867,145 +4196,136 @@ inline void ResetZeroPositionRequest::set_allocated_extra(::google::protobuf::St // string name = 1 [json_name = "name"]; inline void GetPositionRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& GetPositionRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetPositionRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.motor.v1.GetPositionRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetPositionRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetPositionRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.motor.v1.GetPositionRequest.name) } -inline std::string* GetPositionRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetPositionRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.motor.v1.GetPositionRequest.name) return _s; } inline const std::string& GetPositionRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void GetPositionRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* GetPositionRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* GetPositionRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.motor.v1.GetPositionRequest.name) - return _impl_.name_.Release(); -} -inline void GetPositionRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void GetPositionRequest::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.motor.v1.GetPositionRequest.name) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetPositionRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool GetPositionRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& GetPositionRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetPositionRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& GetPositionRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetPositionRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.motor.v1.GetPositionRequest.extra) return _internal_extra(); } -inline void GetPositionRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void GetPositionRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.motor.v1.GetPositionRequest.extra) } -inline ::google::protobuf::Struct* GetPositionRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPositionRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* GetPositionRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPositionRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.motor.v1.GetPositionRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* GetPositionRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPositionRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* GetPositionRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPositionRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.motor.v1.GetPositionRequest.extra) return _msg; } -inline void GetPositionRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetPositionRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.motor.v1.GetPositionRequest.extra) } @@ -5015,26 +4335,23 @@ inline void GetPositionRequest::set_allocated_extra(::google::protobuf::Struct* // double position = 1 [json_name = "position"]; inline void GetPositionResponse::clear_position() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.position_ = 0; + position_ = 0; +} +inline double GetPositionResponse::_internal_position() const { + return position_; } inline double GetPositionResponse::position() const { // @@protoc_insertion_point(field_get:viam.component.motor.v1.GetPositionResponse.position) return _internal_position(); } +inline void GetPositionResponse::_internal_set_position(double value) { + + position_ = value; +} inline void GetPositionResponse::set_position(double value) { _internal_set_position(value); // @@protoc_insertion_point(field_set:viam.component.motor.v1.GetPositionResponse.position) } -inline double GetPositionResponse::_internal_position() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.position_; -} -inline void GetPositionResponse::_internal_set_position(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.position_ = value; -} // ------------------------------------------------------------------- @@ -5042,145 +4359,136 @@ inline void GetPositionResponse::_internal_set_position(double value) { // string name = 1 [json_name = "name"]; inline void StopRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& StopRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& StopRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.motor.v1.StopRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void StopRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void StopRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.motor.v1.StopRequest.name) } -inline std::string* StopRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* StopRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.motor.v1.StopRequest.name) return _s; } inline const std::string& StopRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void StopRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* StopRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* StopRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.motor.v1.StopRequest.name) - return _impl_.name_.Release(); -} -inline void StopRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void StopRequest::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.motor.v1.StopRequest.name) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool StopRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool StopRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& StopRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& StopRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& StopRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& StopRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.motor.v1.StopRequest.extra) return _internal_extra(); } -inline void StopRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void StopRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.motor.v1.StopRequest.extra) } -inline ::google::protobuf::Struct* StopRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* StopRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* StopRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* StopRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.motor.v1.StopRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* StopRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* StopRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* StopRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* StopRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.motor.v1.StopRequest.extra) return _msg; } -inline void StopRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void StopRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.motor.v1.StopRequest.extra) } @@ -5194,145 +4502,136 @@ inline void StopRequest::set_allocated_extra(::google::protobuf::Struct* value) // string name = 1 [json_name = "name"]; inline void IsPoweredRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& IsPoweredRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& IsPoweredRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.motor.v1.IsPoweredRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void IsPoweredRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void IsPoweredRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.motor.v1.IsPoweredRequest.name) } -inline std::string* IsPoweredRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* IsPoweredRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.motor.v1.IsPoweredRequest.name) return _s; } inline const std::string& IsPoweredRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void IsPoweredRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* IsPoweredRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* IsPoweredRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.motor.v1.IsPoweredRequest.name) - return _impl_.name_.Release(); -} -inline void IsPoweredRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void IsPoweredRequest::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.motor.v1.IsPoweredRequest.name) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool IsPoweredRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool IsPoweredRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& IsPoweredRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& IsPoweredRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& IsPoweredRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& IsPoweredRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.motor.v1.IsPoweredRequest.extra) return _internal_extra(); } -inline void IsPoweredRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void IsPoweredRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.motor.v1.IsPoweredRequest.extra) } -inline ::google::protobuf::Struct* IsPoweredRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* IsPoweredRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* IsPoweredRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* IsPoweredRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.motor.v1.IsPoweredRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* IsPoweredRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* IsPoweredRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* IsPoweredRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* IsPoweredRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.motor.v1.IsPoweredRequest.extra) return _msg; } -inline void IsPoweredRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void IsPoweredRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.motor.v1.IsPoweredRequest.extra) } @@ -5342,49 +4641,43 @@ inline void IsPoweredRequest::set_allocated_extra(::google::protobuf::Struct* va // bool is_on = 1 [json_name = "isOn"]; inline void IsPoweredResponse::clear_is_on() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.is_on_ = false; + is_on_ = false; +} +inline bool IsPoweredResponse::_internal_is_on() const { + return is_on_; } inline bool IsPoweredResponse::is_on() const { // @@protoc_insertion_point(field_get:viam.component.motor.v1.IsPoweredResponse.is_on) return _internal_is_on(); } +inline void IsPoweredResponse::_internal_set_is_on(bool value) { + + is_on_ = value; +} inline void IsPoweredResponse::set_is_on(bool value) { _internal_set_is_on(value); // @@protoc_insertion_point(field_set:viam.component.motor.v1.IsPoweredResponse.is_on) } -inline bool IsPoweredResponse::_internal_is_on() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.is_on_; -} -inline void IsPoweredResponse::_internal_set_is_on(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.is_on_ = value; -} // double power_pct = 2 [json_name = "powerPct"]; inline void IsPoweredResponse::clear_power_pct() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.power_pct_ = 0; + power_pct_ = 0; +} +inline double IsPoweredResponse::_internal_power_pct() const { + return power_pct_; } inline double IsPoweredResponse::power_pct() const { // @@protoc_insertion_point(field_get:viam.component.motor.v1.IsPoweredResponse.power_pct) return _internal_power_pct(); } +inline void IsPoweredResponse::_internal_set_power_pct(double value) { + + power_pct_ = value; +} inline void IsPoweredResponse::set_power_pct(double value) { _internal_set_power_pct(value); // @@protoc_insertion_point(field_set:viam.component.motor.v1.IsPoweredResponse.power_pct) } -inline double IsPoweredResponse::_internal_power_pct() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.power_pct_; -} -inline void IsPoweredResponse::_internal_set_power_pct(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.power_pct_ = value; -} // ------------------------------------------------------------------- @@ -5392,145 +4685,136 @@ inline void IsPoweredResponse::_internal_set_power_pct(double value) { // string name = 1 [json_name = "name"]; inline void GetPropertiesRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& GetPropertiesRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetPropertiesRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.motor.v1.GetPropertiesRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetPropertiesRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetPropertiesRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.motor.v1.GetPropertiesRequest.name) } -inline std::string* GetPropertiesRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetPropertiesRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.motor.v1.GetPropertiesRequest.name) return _s; } inline const std::string& GetPropertiesRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void GetPropertiesRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* GetPropertiesRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* GetPropertiesRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.motor.v1.GetPropertiesRequest.name) - return _impl_.name_.Release(); -} -inline void GetPropertiesRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void GetPropertiesRequest::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.motor.v1.GetPropertiesRequest.name) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetPropertiesRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool GetPropertiesRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& GetPropertiesRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetPropertiesRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& GetPropertiesRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetPropertiesRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.motor.v1.GetPropertiesRequest.extra) return _internal_extra(); } -inline void GetPropertiesRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void GetPropertiesRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.motor.v1.GetPropertiesRequest.extra) } -inline ::google::protobuf::Struct* GetPropertiesRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPropertiesRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* GetPropertiesRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPropertiesRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.motor.v1.GetPropertiesRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* GetPropertiesRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPropertiesRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* GetPropertiesRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPropertiesRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.motor.v1.GetPropertiesRequest.extra) return _msg; } -inline void GetPropertiesRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetPropertiesRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.motor.v1.GetPropertiesRequest.extra) } @@ -5540,26 +4824,23 @@ inline void GetPropertiesRequest::set_allocated_extra(::google::protobuf::Struct // bool position_reporting = 1 [json_name = "positionReporting"]; inline void GetPropertiesResponse::clear_position_reporting() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.position_reporting_ = false; + position_reporting_ = false; +} +inline bool GetPropertiesResponse::_internal_position_reporting() const { + return position_reporting_; } inline bool GetPropertiesResponse::position_reporting() const { // @@protoc_insertion_point(field_get:viam.component.motor.v1.GetPropertiesResponse.position_reporting) return _internal_position_reporting(); } +inline void GetPropertiesResponse::_internal_set_position_reporting(bool value) { + + position_reporting_ = value; +} inline void GetPropertiesResponse::set_position_reporting(bool value) { _internal_set_position_reporting(value); // @@protoc_insertion_point(field_set:viam.component.motor.v1.GetPropertiesResponse.position_reporting) } -inline bool GetPropertiesResponse::_internal_position_reporting() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.position_reporting_; -} -inline void GetPropertiesResponse::_internal_set_position_reporting(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.position_reporting_ = value; -} // ------------------------------------------------------------------- @@ -5567,72 +4848,63 @@ inline void GetPropertiesResponse::_internal_set_position_reporting(bool value) // bool is_powered = 1 [json_name = "isPowered"]; inline void Status::clear_is_powered() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.is_powered_ = false; + is_powered_ = false; +} +inline bool Status::_internal_is_powered() const { + return is_powered_; } inline bool Status::is_powered() const { // @@protoc_insertion_point(field_get:viam.component.motor.v1.Status.is_powered) return _internal_is_powered(); } +inline void Status::_internal_set_is_powered(bool value) { + + is_powered_ = value; +} inline void Status::set_is_powered(bool value) { _internal_set_is_powered(value); // @@protoc_insertion_point(field_set:viam.component.motor.v1.Status.is_powered) } -inline bool Status::_internal_is_powered() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.is_powered_; -} -inline void Status::_internal_set_is_powered(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.is_powered_ = value; -} // double position = 3 [json_name = "position"]; inline void Status::clear_position() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.position_ = 0; + position_ = 0; +} +inline double Status::_internal_position() const { + return position_; } inline double Status::position() const { // @@protoc_insertion_point(field_get:viam.component.motor.v1.Status.position) return _internal_position(); } +inline void Status::_internal_set_position(double value) { + + position_ = value; +} inline void Status::set_position(double value) { _internal_set_position(value); // @@protoc_insertion_point(field_set:viam.component.motor.v1.Status.position) } -inline double Status::_internal_position() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.position_; -} -inline void Status::_internal_set_position(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.position_ = value; -} // bool is_moving = 4 [json_name = "isMoving"]; inline void Status::clear_is_moving() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.is_moving_ = false; + is_moving_ = false; +} +inline bool Status::_internal_is_moving() const { + return is_moving_; } inline bool Status::is_moving() const { // @@protoc_insertion_point(field_get:viam.component.motor.v1.Status.is_moving) return _internal_is_moving(); } +inline void Status::_internal_set_is_moving(bool value) { + + is_moving_ = value; +} inline void Status::set_is_moving(bool value) { _internal_set_is_moving(value); // @@protoc_insertion_point(field_set:viam.component.motor.v1.Status.is_moving) } -inline bool Status::_internal_is_moving() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.is_moving_; -} -inline void Status::_internal_set_is_moving(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.is_moving_ = value; -} // ------------------------------------------------------------------- @@ -5640,54 +4912,51 @@ inline void Status::_internal_set_is_moving(bool value) { // string name = 1 [json_name = "name"]; inline void IsMovingRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& IsMovingRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& IsMovingRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.motor.v1.IsMovingRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void IsMovingRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void IsMovingRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.motor.v1.IsMovingRequest.name) } -inline std::string* IsMovingRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* IsMovingRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.motor.v1.IsMovingRequest.name) return _s; } inline const std::string& IsMovingRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void IsMovingRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* IsMovingRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* IsMovingRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.motor.v1.IsMovingRequest.name) - return _impl_.name_.Release(); -} -inline void IsMovingRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void IsMovingRequest::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.motor.v1.IsMovingRequest.name) } @@ -5697,40 +4966,76 @@ inline void IsMovingRequest::set_allocated_name(std::string* value) { // bool is_moving = 1 [json_name = "isMoving"]; inline void IsMovingResponse::clear_is_moving() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.is_moving_ = false; + is_moving_ = false; +} +inline bool IsMovingResponse::_internal_is_moving() const { + return is_moving_; } inline bool IsMovingResponse::is_moving() const { // @@protoc_insertion_point(field_get:viam.component.motor.v1.IsMovingResponse.is_moving) return _internal_is_moving(); } +inline void IsMovingResponse::_internal_set_is_moving(bool value) { + + is_moving_ = value; +} inline void IsMovingResponse::set_is_moving(bool value) { _internal_set_is_moving(value); // @@protoc_insertion_point(field_set:viam.component.motor.v1.IsMovingResponse.is_moving) } -inline bool IsMovingResponse::_internal_is_moving() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.is_moving_; -} -inline void IsMovingResponse::_internal_set_is_moving(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.is_moving_ = value; -} #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) + } // namespace v1 } // namespace motor } // namespace component } // namespace viam - // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_component_2fmotor_2fv1_2fmotor_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_component_2fmotor_2fv1_2fmotor_2eproto 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 42df66732..8978f46f5 100644 --- a/src/viam/api/component/movementsensor/v1/movementsensor.grpc.pb.cc +++ b/src/viam/api/component/movementsensor/v1/movementsensor.grpc.pb.cc @@ -6,19 +6,19 @@ #include "component/movementsensor/v1/movementsensor.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace component { namespace movementsensor { @@ -40,284 +40,339 @@ static const char* MovementSensorService_method_names[] = { std::unique_ptr< MovementSensorService::Stub> MovementSensorService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { (void)options; - std::unique_ptr< MovementSensorService::Stub> stub(new MovementSensorService::Stub(channel, options)); + std::unique_ptr< MovementSensorService::Stub> stub(new MovementSensorService::Stub(channel)); return stub; } -MovementSensorService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) - : channel_(channel), rpcmethod_GetLinearVelocity_(MovementSensorService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetAngularVelocity_(MovementSensorService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetCompassHeading_(MovementSensorService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetOrientation_(MovementSensorService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetPosition_(MovementSensorService_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetProperties_(MovementSensorService_method_names[5], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetAccuracy_(MovementSensorService_method_names[6], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , 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) +MovementSensorService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_GetLinearVelocity_(MovementSensorService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetAngularVelocity_(MovementSensorService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetCompassHeading_(MovementSensorService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetOrientation_(MovementSensorService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetPosition_(MovementSensorService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetProperties_(MovementSensorService_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetAccuracy_(MovementSensorService_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetLinearAcceleration_(MovementSensorService_method_names[7], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DoCommand_(MovementSensorService_method_names[8], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetGeometries_(MovementSensorService_method_names[9], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetReadings_(MovementSensorService_method_names[10], ::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) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::movementsensor::v1::GetLinearVelocityRequest, ::viam::component::movementsensor::v1::GetLinearVelocityResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetLinearVelocity_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetLinearVelocity_, context, request, response); } -void MovementSensorService::Stub::async::GetLinearVelocity(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetLinearVelocityRequest* request, ::viam::component::movementsensor::v1::GetLinearVelocityResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::movementsensor::v1::GetLinearVelocityRequest, ::viam::component::movementsensor::v1::GetLinearVelocityResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetLinearVelocity_, context, request, response, std::move(f)); +void MovementSensorService::Stub::experimental_async::GetLinearVelocity(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetLinearVelocityRequest* request, ::viam::component::movementsensor::v1::GetLinearVelocityResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetLinearVelocity_, context, request, response, std::move(f)); } -void MovementSensorService::Stub::async::GetLinearVelocity(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetLinearVelocityRequest* request, ::viam::component::movementsensor::v1::GetLinearVelocityResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetLinearVelocity_, context, request, response, reactor); +void MovementSensorService::Stub::experimental_async::GetLinearVelocity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetLinearVelocityResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetLinearVelocity_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetLinearVelocityResponse>* MovementSensorService::Stub::PrepareAsyncGetLinearVelocityRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetLinearVelocityRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::movementsensor::v1::GetLinearVelocityResponse, ::viam::component::movementsensor::v1::GetLinearVelocityRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetLinearVelocity_, context, request); +void MovementSensorService::Stub::experimental_async::GetLinearVelocity(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetLinearVelocityRequest* request, ::viam::component::movementsensor::v1::GetLinearVelocityResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetLinearVelocity_, context, request, response, reactor); +} + +void MovementSensorService::Stub::experimental_async::GetLinearVelocity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetLinearVelocityResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetLinearVelocity_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetLinearVelocityResponse>* MovementSensorService::Stub::AsyncGetLinearVelocityRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetLinearVelocityRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetLinearVelocityRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::movementsensor::v1::GetLinearVelocityResponse>::Create(channel_.get(), cq, rpcmethod_GetLinearVelocity_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetLinearVelocityResponse>* MovementSensorService::Stub::PrepareAsyncGetLinearVelocityRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetLinearVelocityRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::movementsensor::v1::GetLinearVelocityResponse>::Create(channel_.get(), cq, rpcmethod_GetLinearVelocity_, context, request, false); } ::grpc::Status MovementSensorService::Stub::GetAngularVelocity(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAngularVelocityRequest& request, ::viam::component::movementsensor::v1::GetAngularVelocityResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::movementsensor::v1::GetAngularVelocityRequest, ::viam::component::movementsensor::v1::GetAngularVelocityResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetAngularVelocity_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetAngularVelocity_, context, request, response); } -void MovementSensorService::Stub::async::GetAngularVelocity(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAngularVelocityRequest* request, ::viam::component::movementsensor::v1::GetAngularVelocityResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::movementsensor::v1::GetAngularVelocityRequest, ::viam::component::movementsensor::v1::GetAngularVelocityResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetAngularVelocity_, context, request, response, std::move(f)); +void MovementSensorService::Stub::experimental_async::GetAngularVelocity(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAngularVelocityRequest* request, ::viam::component::movementsensor::v1::GetAngularVelocityResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetAngularVelocity_, context, request, response, std::move(f)); } -void MovementSensorService::Stub::async::GetAngularVelocity(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAngularVelocityRequest* request, ::viam::component::movementsensor::v1::GetAngularVelocityResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetAngularVelocity_, context, request, response, reactor); +void MovementSensorService::Stub::experimental_async::GetAngularVelocity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetAngularVelocityResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetAngularVelocity_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetAngularVelocityResponse>* MovementSensorService::Stub::PrepareAsyncGetAngularVelocityRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAngularVelocityRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::movementsensor::v1::GetAngularVelocityResponse, ::viam::component::movementsensor::v1::GetAngularVelocityRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetAngularVelocity_, context, request); +void MovementSensorService::Stub::experimental_async::GetAngularVelocity(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAngularVelocityRequest* request, ::viam::component::movementsensor::v1::GetAngularVelocityResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetAngularVelocity_, context, request, response, reactor); +} + +void MovementSensorService::Stub::experimental_async::GetAngularVelocity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetAngularVelocityResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetAngularVelocity_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetAngularVelocityResponse>* MovementSensorService::Stub::AsyncGetAngularVelocityRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAngularVelocityRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetAngularVelocityRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::movementsensor::v1::GetAngularVelocityResponse>::Create(channel_.get(), cq, rpcmethod_GetAngularVelocity_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetAngularVelocityResponse>* MovementSensorService::Stub::PrepareAsyncGetAngularVelocityRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAngularVelocityRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::movementsensor::v1::GetAngularVelocityResponse>::Create(channel_.get(), cq, rpcmethod_GetAngularVelocity_, context, request, false); } ::grpc::Status MovementSensorService::Stub::GetCompassHeading(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetCompassHeadingRequest& request, ::viam::component::movementsensor::v1::GetCompassHeadingResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::movementsensor::v1::GetCompassHeadingRequest, ::viam::component::movementsensor::v1::GetCompassHeadingResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetCompassHeading_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetCompassHeading_, context, request, response); } -void MovementSensorService::Stub::async::GetCompassHeading(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetCompassHeadingRequest* request, ::viam::component::movementsensor::v1::GetCompassHeadingResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::movementsensor::v1::GetCompassHeadingRequest, ::viam::component::movementsensor::v1::GetCompassHeadingResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetCompassHeading_, context, request, response, std::move(f)); +void MovementSensorService::Stub::experimental_async::GetCompassHeading(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetCompassHeadingRequest* request, ::viam::component::movementsensor::v1::GetCompassHeadingResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetCompassHeading_, context, request, response, std::move(f)); } -void MovementSensorService::Stub::async::GetCompassHeading(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetCompassHeadingRequest* request, ::viam::component::movementsensor::v1::GetCompassHeadingResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetCompassHeading_, context, request, response, reactor); +void MovementSensorService::Stub::experimental_async::GetCompassHeading(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetCompassHeadingResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetCompassHeading_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetCompassHeadingResponse>* MovementSensorService::Stub::PrepareAsyncGetCompassHeadingRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetCompassHeadingRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::movementsensor::v1::GetCompassHeadingResponse, ::viam::component::movementsensor::v1::GetCompassHeadingRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetCompassHeading_, context, request); +void MovementSensorService::Stub::experimental_async::GetCompassHeading(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetCompassHeadingRequest* request, ::viam::component::movementsensor::v1::GetCompassHeadingResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetCompassHeading_, context, request, response, reactor); +} + +void MovementSensorService::Stub::experimental_async::GetCompassHeading(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetCompassHeadingResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetCompassHeading_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetCompassHeadingResponse>* MovementSensorService::Stub::AsyncGetCompassHeadingRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetCompassHeadingRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetCompassHeadingRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::movementsensor::v1::GetCompassHeadingResponse>::Create(channel_.get(), cq, rpcmethod_GetCompassHeading_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetCompassHeadingResponse>* MovementSensorService::Stub::PrepareAsyncGetCompassHeadingRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetCompassHeadingRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::movementsensor::v1::GetCompassHeadingResponse>::Create(channel_.get(), cq, rpcmethod_GetCompassHeading_, context, request, false); } ::grpc::Status MovementSensorService::Stub::GetOrientation(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetOrientationRequest& request, ::viam::component::movementsensor::v1::GetOrientationResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::movementsensor::v1::GetOrientationRequest, ::viam::component::movementsensor::v1::GetOrientationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetOrientation_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetOrientation_, context, request, response); } -void MovementSensorService::Stub::async::GetOrientation(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetOrientationRequest* request, ::viam::component::movementsensor::v1::GetOrientationResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::movementsensor::v1::GetOrientationRequest, ::viam::component::movementsensor::v1::GetOrientationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetOrientation_, context, request, response, std::move(f)); +void MovementSensorService::Stub::experimental_async::GetOrientation(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetOrientationRequest* request, ::viam::component::movementsensor::v1::GetOrientationResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetOrientation_, context, request, response, std::move(f)); } -void MovementSensorService::Stub::async::GetOrientation(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetOrientationRequest* request, ::viam::component::movementsensor::v1::GetOrientationResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetOrientation_, context, request, response, reactor); +void MovementSensorService::Stub::experimental_async::GetOrientation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetOrientationResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetOrientation_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetOrientationResponse>* MovementSensorService::Stub::PrepareAsyncGetOrientationRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetOrientationRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::movementsensor::v1::GetOrientationResponse, ::viam::component::movementsensor::v1::GetOrientationRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetOrientation_, context, request); +void MovementSensorService::Stub::experimental_async::GetOrientation(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetOrientationRequest* request, ::viam::component::movementsensor::v1::GetOrientationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetOrientation_, context, request, response, reactor); +} + +void MovementSensorService::Stub::experimental_async::GetOrientation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetOrientationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetOrientation_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetOrientationResponse>* MovementSensorService::Stub::AsyncGetOrientationRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetOrientationRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetOrientationRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::movementsensor::v1::GetOrientationResponse>::Create(channel_.get(), cq, rpcmethod_GetOrientation_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetOrientationResponse>* MovementSensorService::Stub::PrepareAsyncGetOrientationRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetOrientationRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::movementsensor::v1::GetOrientationResponse>::Create(channel_.get(), cq, rpcmethod_GetOrientation_, context, request, false); } ::grpc::Status MovementSensorService::Stub::GetPosition(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPositionRequest& request, ::viam::component::movementsensor::v1::GetPositionResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::movementsensor::v1::GetPositionRequest, ::viam::component::movementsensor::v1::GetPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetPosition_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetPosition_, context, request, response); } -void MovementSensorService::Stub::async::GetPosition(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPositionRequest* request, ::viam::component::movementsensor::v1::GetPositionResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::movementsensor::v1::GetPositionRequest, ::viam::component::movementsensor::v1::GetPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetPosition_, context, request, response, std::move(f)); +void MovementSensorService::Stub::experimental_async::GetPosition(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPositionRequest* request, ::viam::component::movementsensor::v1::GetPositionResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetPosition_, context, request, response, std::move(f)); } -void MovementSensorService::Stub::async::GetPosition(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPositionRequest* request, ::viam::component::movementsensor::v1::GetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetPosition_, context, request, response, reactor); +void MovementSensorService::Stub::experimental_async::GetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetPositionResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetPosition_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetPositionResponse>* MovementSensorService::Stub::PrepareAsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::movementsensor::v1::GetPositionResponse, ::viam::component::movementsensor::v1::GetPositionRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetPosition_, context, request); +void MovementSensorService::Stub::experimental_async::GetPosition(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPositionRequest* request, ::viam::component::movementsensor::v1::GetPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetPosition_, context, request, response, reactor); +} + +void MovementSensorService::Stub::experimental_async::GetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetPosition_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetPositionResponse>* MovementSensorService::Stub::AsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetPositionRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::movementsensor::v1::GetPositionResponse>::Create(channel_.get(), cq, rpcmethod_GetPosition_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetPositionResponse>* MovementSensorService::Stub::PrepareAsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::movementsensor::v1::GetPositionResponse>::Create(channel_.get(), cq, rpcmethod_GetPosition_, context, request, false); } ::grpc::Status MovementSensorService::Stub::GetProperties(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPropertiesRequest& request, ::viam::component::movementsensor::v1::GetPropertiesResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::movementsensor::v1::GetPropertiesRequest, ::viam::component::movementsensor::v1::GetPropertiesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetProperties_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetProperties_, context, request, response); } -void MovementSensorService::Stub::async::GetProperties(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPropertiesRequest* request, ::viam::component::movementsensor::v1::GetPropertiesResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::movementsensor::v1::GetPropertiesRequest, ::viam::component::movementsensor::v1::GetPropertiesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetProperties_, context, request, response, std::move(f)); +void MovementSensorService::Stub::experimental_async::GetProperties(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPropertiesRequest* request, ::viam::component::movementsensor::v1::GetPropertiesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetProperties_, context, request, response, std::move(f)); } -void MovementSensorService::Stub::async::GetProperties(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPropertiesRequest* request, ::viam::component::movementsensor::v1::GetPropertiesResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetProperties_, context, request, response, reactor); +void MovementSensorService::Stub::experimental_async::GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetPropertiesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetProperties_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetPropertiesResponse>* MovementSensorService::Stub::PrepareAsyncGetPropertiesRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPropertiesRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::movementsensor::v1::GetPropertiesResponse, ::viam::component::movementsensor::v1::GetPropertiesRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetProperties_, context, request); +void MovementSensorService::Stub::experimental_async::GetProperties(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPropertiesRequest* request, ::viam::component::movementsensor::v1::GetPropertiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetProperties_, context, request, response, reactor); +} + +void MovementSensorService::Stub::experimental_async::GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetPropertiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetProperties_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetPropertiesResponse>* MovementSensorService::Stub::AsyncGetPropertiesRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPropertiesRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetPropertiesRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::movementsensor::v1::GetPropertiesResponse>::Create(channel_.get(), cq, rpcmethod_GetProperties_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetPropertiesResponse>* MovementSensorService::Stub::PrepareAsyncGetPropertiesRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPropertiesRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::movementsensor::v1::GetPropertiesResponse>::Create(channel_.get(), cq, rpcmethod_GetProperties_, context, request, false); } ::grpc::Status MovementSensorService::Stub::GetAccuracy(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAccuracyRequest& request, ::viam::component::movementsensor::v1::GetAccuracyResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::movementsensor::v1::GetAccuracyRequest, ::viam::component::movementsensor::v1::GetAccuracyResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetAccuracy_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetAccuracy_, context, request, response); } -void MovementSensorService::Stub::async::GetAccuracy(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAccuracyRequest* request, ::viam::component::movementsensor::v1::GetAccuracyResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::movementsensor::v1::GetAccuracyRequest, ::viam::component::movementsensor::v1::GetAccuracyResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetAccuracy_, context, request, response, std::move(f)); +void MovementSensorService::Stub::experimental_async::GetAccuracy(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAccuracyRequest* request, ::viam::component::movementsensor::v1::GetAccuracyResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetAccuracy_, context, request, response, std::move(f)); } -void MovementSensorService::Stub::async::GetAccuracy(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAccuracyRequest* request, ::viam::component::movementsensor::v1::GetAccuracyResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetAccuracy_, context, request, response, reactor); +void MovementSensorService::Stub::experimental_async::GetAccuracy(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetAccuracyResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetAccuracy_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetAccuracyResponse>* MovementSensorService::Stub::PrepareAsyncGetAccuracyRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAccuracyRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::movementsensor::v1::GetAccuracyResponse, ::viam::component::movementsensor::v1::GetAccuracyRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetAccuracy_, context, request); +void MovementSensorService::Stub::experimental_async::GetAccuracy(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAccuracyRequest* request, ::viam::component::movementsensor::v1::GetAccuracyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetAccuracy_, context, request, response, reactor); +} + +void MovementSensorService::Stub::experimental_async::GetAccuracy(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetAccuracyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetAccuracy_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetAccuracyResponse>* MovementSensorService::Stub::AsyncGetAccuracyRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAccuracyRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetAccuracyRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::movementsensor::v1::GetAccuracyResponse>::Create(channel_.get(), cq, rpcmethod_GetAccuracy_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetAccuracyResponse>* MovementSensorService::Stub::PrepareAsyncGetAccuracyRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAccuracyRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::movementsensor::v1::GetAccuracyResponse>::Create(channel_.get(), cq, rpcmethod_GetAccuracy_, context, request, false); } ::grpc::Status MovementSensorService::Stub::GetLinearAcceleration(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetLinearAccelerationRequest& request, ::viam::component::movementsensor::v1::GetLinearAccelerationResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::movementsensor::v1::GetLinearAccelerationRequest, ::viam::component::movementsensor::v1::GetLinearAccelerationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetLinearAcceleration_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetLinearAcceleration_, context, request, response); } -void MovementSensorService::Stub::async::GetLinearAcceleration(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetLinearAccelerationRequest* request, ::viam::component::movementsensor::v1::GetLinearAccelerationResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::movementsensor::v1::GetLinearAccelerationRequest, ::viam::component::movementsensor::v1::GetLinearAccelerationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetLinearAcceleration_, context, request, response, std::move(f)); +void MovementSensorService::Stub::experimental_async::GetLinearAcceleration(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetLinearAccelerationRequest* request, ::viam::component::movementsensor::v1::GetLinearAccelerationResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetLinearAcceleration_, context, request, response, std::move(f)); } -void MovementSensorService::Stub::async::GetLinearAcceleration(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetLinearAccelerationRequest* request, ::viam::component::movementsensor::v1::GetLinearAccelerationResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetLinearAcceleration_, context, request, response, reactor); +void MovementSensorService::Stub::experimental_async::GetLinearAcceleration(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetLinearAccelerationResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetLinearAcceleration_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetLinearAccelerationResponse>* MovementSensorService::Stub::PrepareAsyncGetLinearAccelerationRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetLinearAccelerationRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::movementsensor::v1::GetLinearAccelerationResponse, ::viam::component::movementsensor::v1::GetLinearAccelerationRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetLinearAcceleration_, context, request); +void MovementSensorService::Stub::experimental_async::GetLinearAcceleration(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetLinearAccelerationRequest* request, ::viam::component::movementsensor::v1::GetLinearAccelerationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetLinearAcceleration_, context, request, response, reactor); +} + +void MovementSensorService::Stub::experimental_async::GetLinearAcceleration(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetLinearAccelerationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetLinearAcceleration_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetLinearAccelerationResponse>* MovementSensorService::Stub::AsyncGetLinearAccelerationRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetLinearAccelerationRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetLinearAccelerationRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::movementsensor::v1::GetLinearAccelerationResponse>::Create(channel_.get(), cq, rpcmethod_GetLinearAcceleration_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetLinearAccelerationResponse>* MovementSensorService::Stub::PrepareAsyncGetLinearAccelerationRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetLinearAccelerationRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::movementsensor::v1::GetLinearAccelerationResponse>::Create(channel_.get(), cq, rpcmethod_GetLinearAcceleration_, context, request, false); } ::grpc::Status MovementSensorService::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); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DoCommand_, context, request, response); } -void MovementSensorService::Stub::async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); +void MovementSensorService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); } -void MovementSensorService::Stub::async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); +void MovementSensorService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* MovementSensorService::Stub::PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::common::v1::DoCommandResponse, ::viam::common::v1::DoCommandRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DoCommand_, context, request); +void MovementSensorService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); +} + +void MovementSensorService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* MovementSensorService::Stub::AsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncDoCommandRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::DoCommandResponse>::Create(channel_.get(), cq, rpcmethod_DoCommand_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* MovementSensorService::Stub::PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::DoCommandResponse>::Create(channel_.get(), cq, rpcmethod_DoCommand_, context, request, false); } ::grpc::Status MovementSensorService::Stub::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::viam::common::v1::GetGeometriesResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetGeometries_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetGeometries_, context, request, response); } -void MovementSensorService::Stub::async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, std::move(f)); +void MovementSensorService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, std::move(f)); } -void MovementSensorService::Stub::async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, reactor); +void MovementSensorService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>* MovementSensorService::Stub::PrepareAsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::common::v1::GetGeometriesResponse, ::viam::common::v1::GetGeometriesRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetGeometries_, context, request); +void MovementSensorService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, reactor); +} + +void MovementSensorService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>* MovementSensorService::Stub::AsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetGeometriesRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::GetGeometriesResponse>::Create(channel_.get(), cq, rpcmethod_GetGeometries_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>* MovementSensorService::Stub::PrepareAsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::GetGeometriesResponse>::Create(channel_.get(), cq, rpcmethod_GetGeometries_, context, request, false); } ::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); + return ::grpc::internal::BlockingUnaryCall(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::experimental_async::GetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest* request, ::viam::common::v1::GetReadingsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(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); +void MovementSensorService::Stub::experimental_async::GetReadings(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetReadingsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetReadings_, context, request, response, std::move(f)); } -::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); +void MovementSensorService::Stub::experimental_async::GetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest* request, ::viam::common::v1::GetReadingsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetReadings_, context, request, response, reactor); +} + +void MovementSensorService::Stub::experimental_async::GetReadings(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetReadingsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetReadings_, context, request, response, reactor); } ::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; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::GetReadingsResponse>::Create(channel_.get(), cq, rpcmethod_GetReadings_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetReadingsResponse>* MovementSensorService::Stub::PrepareAsyncGetReadingsRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::GetReadingsResponse>::Create(channel_.get(), cq, rpcmethod_GetReadings_, context, request, false); } MovementSensorService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( MovementSensorService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< MovementSensorService::Service, ::viam::component::movementsensor::v1::GetLinearVelocityRequest, ::viam::component::movementsensor::v1::GetLinearVelocityResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< MovementSensorService::Service, ::viam::component::movementsensor::v1::GetLinearVelocityRequest, ::viam::component::movementsensor::v1::GetLinearVelocityResponse>( [](MovementSensorService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::movementsensor::v1::GetLinearVelocityRequest* req, ::viam::component::movementsensor::v1::GetLinearVelocityResponse* resp) { return service->GetLinearVelocity(ctx, req, resp); @@ -325,9 +380,9 @@ MovementSensorService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( MovementSensorService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< MovementSensorService::Service, ::viam::component::movementsensor::v1::GetAngularVelocityRequest, ::viam::component::movementsensor::v1::GetAngularVelocityResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< MovementSensorService::Service, ::viam::component::movementsensor::v1::GetAngularVelocityRequest, ::viam::component::movementsensor::v1::GetAngularVelocityResponse>( [](MovementSensorService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::movementsensor::v1::GetAngularVelocityRequest* req, ::viam::component::movementsensor::v1::GetAngularVelocityResponse* resp) { return service->GetAngularVelocity(ctx, req, resp); @@ -335,9 +390,9 @@ MovementSensorService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( MovementSensorService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< MovementSensorService::Service, ::viam::component::movementsensor::v1::GetCompassHeadingRequest, ::viam::component::movementsensor::v1::GetCompassHeadingResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< MovementSensorService::Service, ::viam::component::movementsensor::v1::GetCompassHeadingRequest, ::viam::component::movementsensor::v1::GetCompassHeadingResponse>( [](MovementSensorService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::movementsensor::v1::GetCompassHeadingRequest* req, ::viam::component::movementsensor::v1::GetCompassHeadingResponse* resp) { return service->GetCompassHeading(ctx, req, resp); @@ -345,9 +400,9 @@ MovementSensorService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( MovementSensorService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< MovementSensorService::Service, ::viam::component::movementsensor::v1::GetOrientationRequest, ::viam::component::movementsensor::v1::GetOrientationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< MovementSensorService::Service, ::viam::component::movementsensor::v1::GetOrientationRequest, ::viam::component::movementsensor::v1::GetOrientationResponse>( [](MovementSensorService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::movementsensor::v1::GetOrientationRequest* req, ::viam::component::movementsensor::v1::GetOrientationResponse* resp) { return service->GetOrientation(ctx, req, resp); @@ -355,9 +410,9 @@ MovementSensorService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( MovementSensorService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< MovementSensorService::Service, ::viam::component::movementsensor::v1::GetPositionRequest, ::viam::component::movementsensor::v1::GetPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< MovementSensorService::Service, ::viam::component::movementsensor::v1::GetPositionRequest, ::viam::component::movementsensor::v1::GetPositionResponse>( [](MovementSensorService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::movementsensor::v1::GetPositionRequest* req, ::viam::component::movementsensor::v1::GetPositionResponse* resp) { return service->GetPosition(ctx, req, resp); @@ -365,9 +420,9 @@ MovementSensorService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( MovementSensorService_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< MovementSensorService::Service, ::viam::component::movementsensor::v1::GetPropertiesRequest, ::viam::component::movementsensor::v1::GetPropertiesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< MovementSensorService::Service, ::viam::component::movementsensor::v1::GetPropertiesRequest, ::viam::component::movementsensor::v1::GetPropertiesResponse>( [](MovementSensorService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::movementsensor::v1::GetPropertiesRequest* req, ::viam::component::movementsensor::v1::GetPropertiesResponse* resp) { return service->GetProperties(ctx, req, resp); @@ -375,9 +430,9 @@ MovementSensorService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( MovementSensorService_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< MovementSensorService::Service, ::viam::component::movementsensor::v1::GetAccuracyRequest, ::viam::component::movementsensor::v1::GetAccuracyResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< MovementSensorService::Service, ::viam::component::movementsensor::v1::GetAccuracyRequest, ::viam::component::movementsensor::v1::GetAccuracyResponse>( [](MovementSensorService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::movementsensor::v1::GetAccuracyRequest* req, ::viam::component::movementsensor::v1::GetAccuracyResponse* resp) { return service->GetAccuracy(ctx, req, resp); @@ -385,9 +440,9 @@ MovementSensorService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( MovementSensorService_method_names[7], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< MovementSensorService::Service, ::viam::component::movementsensor::v1::GetLinearAccelerationRequest, ::viam::component::movementsensor::v1::GetLinearAccelerationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< MovementSensorService::Service, ::viam::component::movementsensor::v1::GetLinearAccelerationRequest, ::viam::component::movementsensor::v1::GetLinearAccelerationResponse>( [](MovementSensorService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::movementsensor::v1::GetLinearAccelerationRequest* req, ::viam::component::movementsensor::v1::GetLinearAccelerationResponse* resp) { return service->GetLinearAcceleration(ctx, req, resp); @@ -395,9 +450,9 @@ MovementSensorService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( MovementSensorService_method_names[8], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< MovementSensorService::Service, ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< MovementSensorService::Service, ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( [](MovementSensorService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::common::v1::DoCommandRequest* req, ::viam::common::v1::DoCommandResponse* resp) { return service->DoCommand(ctx, req, resp); @@ -405,9 +460,9 @@ MovementSensorService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( MovementSensorService_method_names[9], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< MovementSensorService::Service, ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< MovementSensorService::Service, ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( [](MovementSensorService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::common::v1::GetGeometriesRequest* req, ::viam::common::v1::GetGeometriesResponse* resp) { return service->GetGeometries(ctx, req, resp); @@ -415,9 +470,9 @@ MovementSensorService::Service::Service() { 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>( + new ::grpc::internal::RpcMethodHandler< MovementSensorService::Service, ::viam::common::v1::GetReadingsRequest, ::viam::common::v1::GetReadingsResponse>( [](MovementSensorService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::common::v1::GetReadingsRequest* req, ::viam::common::v1::GetReadingsResponse* resp) { return service->GetReadings(ctx, req, resp); 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 74a9de0b9..cd6d187d4 100644 --- a/src/viam/api/component/movementsensor/v1/movementsensor.grpc.pb.h +++ b/src/viam/api/component/movementsensor/v1/movementsensor.grpc.pb.h @@ -7,23 +7,24 @@ #include "component/movementsensor/v1/movementsensor.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace component { @@ -117,38 +118,152 @@ class MovementSensorService final { 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 { + class experimental_async_interface { public: - virtual ~async_interface() {} + virtual ~experimental_async_interface() {} virtual void GetLinearVelocity(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetLinearVelocityRequest* request, ::viam::component::movementsensor::v1::GetLinearVelocityResponse* response, std::function) = 0; + virtual void GetLinearVelocity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetLinearVelocityResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetLinearVelocity(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetLinearVelocityRequest* request, ::viam::component::movementsensor::v1::GetLinearVelocityResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetLinearVelocity(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetLinearVelocityRequest* request, ::viam::component::movementsensor::v1::GetLinearVelocityResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetLinearVelocity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetLinearVelocityResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetLinearVelocity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetLinearVelocityResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif virtual void GetAngularVelocity(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAngularVelocityRequest* request, ::viam::component::movementsensor::v1::GetAngularVelocityResponse* response, std::function) = 0; + virtual void GetAngularVelocity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetAngularVelocityResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetAngularVelocity(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAngularVelocityRequest* request, ::viam::component::movementsensor::v1::GetAngularVelocityResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetAngularVelocity(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAngularVelocityRequest* request, ::viam::component::movementsensor::v1::GetAngularVelocityResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetAngularVelocity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetAngularVelocityResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetAngularVelocity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetAngularVelocityResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif virtual void GetCompassHeading(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetCompassHeadingRequest* request, ::viam::component::movementsensor::v1::GetCompassHeadingResponse* response, std::function) = 0; + virtual void GetCompassHeading(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetCompassHeadingResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetCompassHeading(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetCompassHeadingRequest* request, ::viam::component::movementsensor::v1::GetCompassHeadingResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetCompassHeading(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetCompassHeadingRequest* request, ::viam::component::movementsensor::v1::GetCompassHeadingResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetCompassHeading(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetCompassHeadingResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetCompassHeading(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetCompassHeadingResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif virtual void GetOrientation(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetOrientationRequest* request, ::viam::component::movementsensor::v1::GetOrientationResponse* response, std::function) = 0; + virtual void GetOrientation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetOrientationResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetOrientation(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetOrientationRequest* request, ::viam::component::movementsensor::v1::GetOrientationResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetOrientation(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetOrientationRequest* request, ::viam::component::movementsensor::v1::GetOrientationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetOrientation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetOrientationResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetOrientation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetOrientationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif virtual void GetPosition(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPositionRequest* request, ::viam::component::movementsensor::v1::GetPositionResponse* response, std::function) = 0; + virtual void GetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetPositionResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetPosition(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPositionRequest* request, ::viam::component::movementsensor::v1::GetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetPosition(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPositionRequest* request, ::viam::component::movementsensor::v1::GetPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif virtual void GetProperties(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPropertiesRequest* request, ::viam::component::movementsensor::v1::GetPropertiesResponse* response, std::function) = 0; + virtual void GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetPropertiesResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetProperties(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPropertiesRequest* request, ::viam::component::movementsensor::v1::GetPropertiesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetProperties(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPropertiesRequest* request, ::viam::component::movementsensor::v1::GetPropertiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetPropertiesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetPropertiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif virtual void GetAccuracy(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAccuracyRequest* request, ::viam::component::movementsensor::v1::GetAccuracyResponse* response, std::function) = 0; + virtual void GetAccuracy(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetAccuracyResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetAccuracy(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAccuracyRequest* request, ::viam::component::movementsensor::v1::GetAccuracyResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetAccuracy(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAccuracyRequest* request, ::viam::component::movementsensor::v1::GetAccuracyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetAccuracy(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetAccuracyResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetAccuracy(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetAccuracyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif virtual void GetLinearAcceleration(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetLinearAccelerationRequest* request, ::viam::component::movementsensor::v1::GetLinearAccelerationResponse* response, std::function) = 0; + virtual void GetLinearAcceleration(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetLinearAccelerationResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetLinearAcceleration(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetLinearAccelerationRequest* request, ::viam::component::movementsensor::v1::GetLinearAccelerationResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetLinearAcceleration(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetLinearAccelerationRequest* request, ::viam::component::movementsensor::v1::GetLinearAccelerationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetLinearAcceleration(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetLinearAccelerationResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetLinearAcceleration(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetLinearAccelerationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif 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 ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // 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 ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // 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 ::grpc::ByteBuffer* request, ::viam::common::v1::GetReadingsResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest* request, ::viam::common::v1::GetReadingsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest* request, ::viam::common::v1::GetReadingsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetReadings(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetReadingsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetReadings(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetReadingsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif }; - typedef class async_interface experimental_async_interface; - virtual class async_interface* async() { return nullptr; } - class async_interface* experimental_async() { return async(); } - private: + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef class experimental_async_interface async_interface; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + async_interface* async() { return experimental_async(); } + #endif + virtual class experimental_async_interface* experimental_async() { return nullptr; } + private: virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::movementsensor::v1::GetLinearVelocityResponse>* AsyncGetLinearVelocityRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetLinearVelocityRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::movementsensor::v1::GetLinearVelocityResponse>* PrepareAsyncGetLinearVelocityRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetLinearVelocityRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::movementsensor::v1::GetAngularVelocityResponse>* AsyncGetAngularVelocityRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAngularVelocityRequest& request, ::grpc::CompletionQueue* cq) = 0; @@ -174,7 +289,7 @@ class MovementSensorService final { }; class Stub final : public StubInterface { public: - Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); ::grpc::Status GetLinearVelocity(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetLinearVelocityRequest& request, ::viam::component::movementsensor::v1::GetLinearVelocityResponse* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetLinearVelocityResponse>> AsyncGetLinearVelocity(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetLinearVelocityRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetLinearVelocityResponse>>(AsyncGetLinearVelocityRaw(context, request, cq)); @@ -252,42 +367,152 @@ class MovementSensorService final { 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 { + class experimental_async final : + public StubInterface::experimental_async_interface { public: void GetLinearVelocity(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetLinearVelocityRequest* request, ::viam::component::movementsensor::v1::GetLinearVelocityResponse* response, std::function) override; + void GetLinearVelocity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetLinearVelocityResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetLinearVelocity(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetLinearVelocityRequest* request, ::viam::component::movementsensor::v1::GetLinearVelocityResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetLinearVelocity(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetLinearVelocityRequest* request, ::viam::component::movementsensor::v1::GetLinearVelocityResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetLinearVelocity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetLinearVelocityResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetLinearVelocity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetLinearVelocityResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetAngularVelocity(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAngularVelocityRequest* request, ::viam::component::movementsensor::v1::GetAngularVelocityResponse* response, std::function) override; + void GetAngularVelocity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetAngularVelocityResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetAngularVelocity(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAngularVelocityRequest* request, ::viam::component::movementsensor::v1::GetAngularVelocityResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetAngularVelocity(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAngularVelocityRequest* request, ::viam::component::movementsensor::v1::GetAngularVelocityResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetAngularVelocity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetAngularVelocityResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetAngularVelocity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetAngularVelocityResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetCompassHeading(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetCompassHeadingRequest* request, ::viam::component::movementsensor::v1::GetCompassHeadingResponse* response, std::function) override; + void GetCompassHeading(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetCompassHeadingResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetCompassHeading(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetCompassHeadingRequest* request, ::viam::component::movementsensor::v1::GetCompassHeadingResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetCompassHeading(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetCompassHeadingRequest* request, ::viam::component::movementsensor::v1::GetCompassHeadingResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetCompassHeading(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetCompassHeadingResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetCompassHeading(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetCompassHeadingResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetOrientation(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetOrientationRequest* request, ::viam::component::movementsensor::v1::GetOrientationResponse* response, std::function) override; + void GetOrientation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetOrientationResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetOrientation(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetOrientationRequest* request, ::viam::component::movementsensor::v1::GetOrientationResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetOrientation(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetOrientationRequest* request, ::viam::component::movementsensor::v1::GetOrientationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetOrientation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetOrientationResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetOrientation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetOrientationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetPosition(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPositionRequest* request, ::viam::component::movementsensor::v1::GetPositionResponse* response, std::function) override; + void GetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetPositionResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetPosition(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPositionRequest* request, ::viam::component::movementsensor::v1::GetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetPosition(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPositionRequest* request, ::viam::component::movementsensor::v1::GetPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetProperties(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPropertiesRequest* request, ::viam::component::movementsensor::v1::GetPropertiesResponse* response, std::function) override; + void GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetPropertiesResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetProperties(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPropertiesRequest* request, ::viam::component::movementsensor::v1::GetPropertiesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetProperties(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetPropertiesRequest* request, ::viam::component::movementsensor::v1::GetPropertiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetPropertiesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetPropertiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetAccuracy(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAccuracyRequest* request, ::viam::component::movementsensor::v1::GetAccuracyResponse* response, std::function) override; + void GetAccuracy(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetAccuracyResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetAccuracy(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAccuracyRequest* request, ::viam::component::movementsensor::v1::GetAccuracyResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetAccuracy(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAccuracyRequest* request, ::viam::component::movementsensor::v1::GetAccuracyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetAccuracy(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetAccuracyResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetAccuracy(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetAccuracyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetLinearAcceleration(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetLinearAccelerationRequest* request, ::viam::component::movementsensor::v1::GetLinearAccelerationResponse* response, std::function) override; + void GetLinearAcceleration(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetLinearAccelerationResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetLinearAcceleration(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetLinearAccelerationRequest* request, ::viam::component::movementsensor::v1::GetLinearAccelerationResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetLinearAcceleration(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetLinearAccelerationRequest* request, ::viam::component::movementsensor::v1::GetLinearAccelerationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetLinearAcceleration(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetLinearAccelerationResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetLinearAcceleration(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::movementsensor::v1::GetLinearAccelerationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif 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 ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif 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 ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif 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 ::grpc::ByteBuffer* request, ::viam::common::v1::GetReadingsResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest* request, ::viam::common::v1::GetReadingsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest* request, ::viam::common::v1::GetReadingsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetReadings(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetReadingsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetReadings(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetReadingsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif private: friend class Stub; - explicit async(Stub* stub): stub_(stub) { } + explicit experimental_async(Stub* stub): stub_(stub) { } Stub* stub() { return stub_; } Stub* stub_; }; - class async* async() override { return &async_stub_; } + class experimental_async_interface* experimental_async() override { return &async_stub_; } private: std::shared_ptr< ::grpc::ChannelInterface> channel_; - class async async_stub_{this}; + class experimental_async async_stub_{this}; ::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetLinearVelocityResponse>* AsyncGetLinearVelocityRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetLinearVelocityRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetLinearVelocityResponse>* PrepareAsyncGetLinearVelocityRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetLinearVelocityRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::component::movementsensor::v1::GetAngularVelocityResponse>* AsyncGetAngularVelocityRaw(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetAngularVelocityRequest& request, ::grpc::CompletionQueue* cq) override; @@ -564,22 +789,36 @@ class MovementSensorService final { }; typedef WithAsyncMethod_GetLinearVelocity > > > > > > > > > > AsyncService; template - class WithCallbackMethod_GetLinearVelocity : public BaseClass { + class ExperimentalWithCallbackMethod_GetLinearVelocity : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetLinearVelocity() { - ::grpc::Service::MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::movementsensor::v1::GetLinearVelocityRequest, ::viam::component::movementsensor::v1::GetLinearVelocityResponse>( + ExperimentalWithCallbackMethod_GetLinearVelocity() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::movementsensor::v1::GetLinearVelocityRequest, ::viam::component::movementsensor::v1::GetLinearVelocityResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::movementsensor::v1::GetLinearVelocityRequest* request, ::viam::component::movementsensor::v1::GetLinearVelocityResponse* response) { return this->GetLinearVelocity(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::movementsensor::v1::GetLinearVelocityRequest* request, ::viam::component::movementsensor::v1::GetLinearVelocityResponse* response) { return this->GetLinearVelocity(context, request, response); }));} void SetMessageAllocatorFor_GetLinearVelocity( - ::grpc::MessageAllocator< ::viam::component::movementsensor::v1::GetLinearVelocityRequest, ::viam::component::movementsensor::v1::GetLinearVelocityResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::movementsensor::v1::GetLinearVelocityRequest, ::viam::component::movementsensor::v1::GetLinearVelocityResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::movementsensor::v1::GetLinearVelocityRequest, ::viam::component::movementsensor::v1::GetLinearVelocityResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(0); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::movementsensor::v1::GetLinearVelocityRequest, ::viam::component::movementsensor::v1::GetLinearVelocityResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetLinearVelocity() override { + ~ExperimentalWithCallbackMethod_GetLinearVelocity() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -587,26 +826,46 @@ class MovementSensorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetLinearVelocity( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetLinearVelocityRequest* /*request*/, ::viam::component::movementsensor::v1::GetLinearVelocityResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetLinearVelocityRequest* /*request*/, ::viam::component::movementsensor::v1::GetLinearVelocityResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetLinearVelocity( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetLinearVelocityRequest* /*request*/, ::viam::component::movementsensor::v1::GetLinearVelocityResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetAngularVelocity : public BaseClass { + class ExperimentalWithCallbackMethod_GetAngularVelocity : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetAngularVelocity() { - ::grpc::Service::MarkMethodCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::movementsensor::v1::GetAngularVelocityRequest, ::viam::component::movementsensor::v1::GetAngularVelocityResponse>( + ExperimentalWithCallbackMethod_GetAngularVelocity() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::movementsensor::v1::GetAngularVelocityRequest, ::viam::component::movementsensor::v1::GetAngularVelocityResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::movementsensor::v1::GetAngularVelocityRequest* request, ::viam::component::movementsensor::v1::GetAngularVelocityResponse* response) { return this->GetAngularVelocity(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::movementsensor::v1::GetAngularVelocityRequest* request, ::viam::component::movementsensor::v1::GetAngularVelocityResponse* response) { return this->GetAngularVelocity(context, request, response); }));} void SetMessageAllocatorFor_GetAngularVelocity( - ::grpc::MessageAllocator< ::viam::component::movementsensor::v1::GetAngularVelocityRequest, ::viam::component::movementsensor::v1::GetAngularVelocityResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::movementsensor::v1::GetAngularVelocityRequest, ::viam::component::movementsensor::v1::GetAngularVelocityResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::movementsensor::v1::GetAngularVelocityRequest, ::viam::component::movementsensor::v1::GetAngularVelocityResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(1); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::movementsensor::v1::GetAngularVelocityRequest, ::viam::component::movementsensor::v1::GetAngularVelocityResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetAngularVelocity() override { + ~ExperimentalWithCallbackMethod_GetAngularVelocity() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -614,26 +873,46 @@ class MovementSensorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetAngularVelocity( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetAngularVelocityRequest* /*request*/, ::viam::component::movementsensor::v1::GetAngularVelocityResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetAngularVelocityRequest* /*request*/, ::viam::component::movementsensor::v1::GetAngularVelocityResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetAngularVelocity( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetAngularVelocityRequest* /*request*/, ::viam::component::movementsensor::v1::GetAngularVelocityResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetCompassHeading : public BaseClass { + class ExperimentalWithCallbackMethod_GetCompassHeading : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetCompassHeading() { - ::grpc::Service::MarkMethodCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::movementsensor::v1::GetCompassHeadingRequest, ::viam::component::movementsensor::v1::GetCompassHeadingResponse>( + ExperimentalWithCallbackMethod_GetCompassHeading() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(2, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::movementsensor::v1::GetCompassHeadingRequest, ::viam::component::movementsensor::v1::GetCompassHeadingResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::movementsensor::v1::GetCompassHeadingRequest* request, ::viam::component::movementsensor::v1::GetCompassHeadingResponse* response) { return this->GetCompassHeading(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::movementsensor::v1::GetCompassHeadingRequest* request, ::viam::component::movementsensor::v1::GetCompassHeadingResponse* response) { return this->GetCompassHeading(context, request, response); }));} void SetMessageAllocatorFor_GetCompassHeading( - ::grpc::MessageAllocator< ::viam::component::movementsensor::v1::GetCompassHeadingRequest, ::viam::component::movementsensor::v1::GetCompassHeadingResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::movementsensor::v1::GetCompassHeadingRequest, ::viam::component::movementsensor::v1::GetCompassHeadingResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::movementsensor::v1::GetCompassHeadingRequest, ::viam::component::movementsensor::v1::GetCompassHeadingResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(2); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::movementsensor::v1::GetCompassHeadingRequest, ::viam::component::movementsensor::v1::GetCompassHeadingResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetCompassHeading() override { + ~ExperimentalWithCallbackMethod_GetCompassHeading() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -641,26 +920,46 @@ class MovementSensorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetCompassHeading( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetCompassHeadingRequest* /*request*/, ::viam::component::movementsensor::v1::GetCompassHeadingResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetCompassHeadingRequest* /*request*/, ::viam::component::movementsensor::v1::GetCompassHeadingResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetCompassHeading( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetCompassHeadingRequest* /*request*/, ::viam::component::movementsensor::v1::GetCompassHeadingResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetOrientation : public BaseClass { + class ExperimentalWithCallbackMethod_GetOrientation : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetOrientation() { - ::grpc::Service::MarkMethodCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::movementsensor::v1::GetOrientationRequest, ::viam::component::movementsensor::v1::GetOrientationResponse>( + ExperimentalWithCallbackMethod_GetOrientation() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(3, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::movementsensor::v1::GetOrientationRequest, ::viam::component::movementsensor::v1::GetOrientationResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::movementsensor::v1::GetOrientationRequest* request, ::viam::component::movementsensor::v1::GetOrientationResponse* response) { return this->GetOrientation(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::movementsensor::v1::GetOrientationRequest* request, ::viam::component::movementsensor::v1::GetOrientationResponse* response) { return this->GetOrientation(context, request, response); }));} void SetMessageAllocatorFor_GetOrientation( - ::grpc::MessageAllocator< ::viam::component::movementsensor::v1::GetOrientationRequest, ::viam::component::movementsensor::v1::GetOrientationResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::movementsensor::v1::GetOrientationRequest, ::viam::component::movementsensor::v1::GetOrientationResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::movementsensor::v1::GetOrientationRequest, ::viam::component::movementsensor::v1::GetOrientationResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(3); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::movementsensor::v1::GetOrientationRequest, ::viam::component::movementsensor::v1::GetOrientationResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetOrientation() override { + ~ExperimentalWithCallbackMethod_GetOrientation() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -668,26 +967,46 @@ class MovementSensorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetOrientation( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetOrientationRequest* /*request*/, ::viam::component::movementsensor::v1::GetOrientationResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetOrientationRequest* /*request*/, ::viam::component::movementsensor::v1::GetOrientationResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetOrientation( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetOrientationRequest* /*request*/, ::viam::component::movementsensor::v1::GetOrientationResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetPosition : public BaseClass { + class ExperimentalWithCallbackMethod_GetPosition : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetPosition() { - ::grpc::Service::MarkMethodCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::movementsensor::v1::GetPositionRequest, ::viam::component::movementsensor::v1::GetPositionResponse>( + ExperimentalWithCallbackMethod_GetPosition() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(4, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::movementsensor::v1::GetPositionRequest, ::viam::component::movementsensor::v1::GetPositionResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::movementsensor::v1::GetPositionRequest* request, ::viam::component::movementsensor::v1::GetPositionResponse* response) { return this->GetPosition(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::movementsensor::v1::GetPositionRequest* request, ::viam::component::movementsensor::v1::GetPositionResponse* response) { return this->GetPosition(context, request, response); }));} void SetMessageAllocatorFor_GetPosition( - ::grpc::MessageAllocator< ::viam::component::movementsensor::v1::GetPositionRequest, ::viam::component::movementsensor::v1::GetPositionResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::movementsensor::v1::GetPositionRequest, ::viam::component::movementsensor::v1::GetPositionResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::movementsensor::v1::GetPositionRequest, ::viam::component::movementsensor::v1::GetPositionResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(4); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::movementsensor::v1::GetPositionRequest, ::viam::component::movementsensor::v1::GetPositionResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetPosition() override { + ~ExperimentalWithCallbackMethod_GetPosition() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -695,26 +1014,46 @@ class MovementSensorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetPosition( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetPositionRequest* /*request*/, ::viam::component::movementsensor::v1::GetPositionResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetPositionRequest* /*request*/, ::viam::component::movementsensor::v1::GetPositionResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetPosition( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetPositionRequest* /*request*/, ::viam::component::movementsensor::v1::GetPositionResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetProperties : public BaseClass { + class ExperimentalWithCallbackMethod_GetProperties : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetProperties() { - ::grpc::Service::MarkMethodCallback(5, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::movementsensor::v1::GetPropertiesRequest, ::viam::component::movementsensor::v1::GetPropertiesResponse>( + ExperimentalWithCallbackMethod_GetProperties() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(5, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::movementsensor::v1::GetPropertiesRequest, ::viam::component::movementsensor::v1::GetPropertiesResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::movementsensor::v1::GetPropertiesRequest* request, ::viam::component::movementsensor::v1::GetPropertiesResponse* response) { return this->GetProperties(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::movementsensor::v1::GetPropertiesRequest* request, ::viam::component::movementsensor::v1::GetPropertiesResponse* response) { return this->GetProperties(context, request, response); }));} void SetMessageAllocatorFor_GetProperties( - ::grpc::MessageAllocator< ::viam::component::movementsensor::v1::GetPropertiesRequest, ::viam::component::movementsensor::v1::GetPropertiesResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::movementsensor::v1::GetPropertiesRequest, ::viam::component::movementsensor::v1::GetPropertiesResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(5); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::movementsensor::v1::GetPropertiesRequest, ::viam::component::movementsensor::v1::GetPropertiesResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(5); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::movementsensor::v1::GetPropertiesRequest, ::viam::component::movementsensor::v1::GetPropertiesResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetProperties() override { + ~ExperimentalWithCallbackMethod_GetProperties() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -722,26 +1061,46 @@ class MovementSensorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetProperties( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetPropertiesRequest* /*request*/, ::viam::component::movementsensor::v1::GetPropertiesResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetPropertiesRequest* /*request*/, ::viam::component::movementsensor::v1::GetPropertiesResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetProperties( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetPropertiesRequest* /*request*/, ::viam::component::movementsensor::v1::GetPropertiesResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetAccuracy : public BaseClass { + class ExperimentalWithCallbackMethod_GetAccuracy : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetAccuracy() { - ::grpc::Service::MarkMethodCallback(6, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::movementsensor::v1::GetAccuracyRequest, ::viam::component::movementsensor::v1::GetAccuracyResponse>( + ExperimentalWithCallbackMethod_GetAccuracy() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(6, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::movementsensor::v1::GetAccuracyRequest, ::viam::component::movementsensor::v1::GetAccuracyResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::movementsensor::v1::GetAccuracyRequest* request, ::viam::component::movementsensor::v1::GetAccuracyResponse* response) { return this->GetAccuracy(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::movementsensor::v1::GetAccuracyRequest* request, ::viam::component::movementsensor::v1::GetAccuracyResponse* response) { return this->GetAccuracy(context, request, response); }));} void SetMessageAllocatorFor_GetAccuracy( - ::grpc::MessageAllocator< ::viam::component::movementsensor::v1::GetAccuracyRequest, ::viam::component::movementsensor::v1::GetAccuracyResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::movementsensor::v1::GetAccuracyRequest, ::viam::component::movementsensor::v1::GetAccuracyResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(6); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::movementsensor::v1::GetAccuracyRequest, ::viam::component::movementsensor::v1::GetAccuracyResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(6); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::movementsensor::v1::GetAccuracyRequest, ::viam::component::movementsensor::v1::GetAccuracyResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetAccuracy() override { + ~ExperimentalWithCallbackMethod_GetAccuracy() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -749,26 +1108,46 @@ class MovementSensorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetAccuracy( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetAccuracyRequest* /*request*/, ::viam::component::movementsensor::v1::GetAccuracyResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetAccuracyRequest* /*request*/, ::viam::component::movementsensor::v1::GetAccuracyResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetAccuracy( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetAccuracyRequest* /*request*/, ::viam::component::movementsensor::v1::GetAccuracyResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetLinearAcceleration : public BaseClass { + class ExperimentalWithCallbackMethod_GetLinearAcceleration : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetLinearAcceleration() { - ::grpc::Service::MarkMethodCallback(7, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::movementsensor::v1::GetLinearAccelerationRequest, ::viam::component::movementsensor::v1::GetLinearAccelerationResponse>( + ExperimentalWithCallbackMethod_GetLinearAcceleration() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(7, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::movementsensor::v1::GetLinearAccelerationRequest, ::viam::component::movementsensor::v1::GetLinearAccelerationResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::movementsensor::v1::GetLinearAccelerationRequest* request, ::viam::component::movementsensor::v1::GetLinearAccelerationResponse* response) { return this->GetLinearAcceleration(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::movementsensor::v1::GetLinearAccelerationRequest* request, ::viam::component::movementsensor::v1::GetLinearAccelerationResponse* response) { return this->GetLinearAcceleration(context, request, response); }));} void SetMessageAllocatorFor_GetLinearAcceleration( - ::grpc::MessageAllocator< ::viam::component::movementsensor::v1::GetLinearAccelerationRequest, ::viam::component::movementsensor::v1::GetLinearAccelerationResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::movementsensor::v1::GetLinearAccelerationRequest, ::viam::component::movementsensor::v1::GetLinearAccelerationResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(7); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::movementsensor::v1::GetLinearAccelerationRequest, ::viam::component::movementsensor::v1::GetLinearAccelerationResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(7); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::movementsensor::v1::GetLinearAccelerationRequest, ::viam::component::movementsensor::v1::GetLinearAccelerationResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetLinearAcceleration() override { + ~ExperimentalWithCallbackMethod_GetLinearAcceleration() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -776,26 +1155,46 @@ class MovementSensorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetLinearAcceleration( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetLinearAccelerationRequest* /*request*/, ::viam::component::movementsensor::v1::GetLinearAccelerationResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetLinearAccelerationRequest* /*request*/, ::viam::component::movementsensor::v1::GetLinearAccelerationResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetLinearAcceleration( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::movementsensor::v1::GetLinearAccelerationRequest* /*request*/, ::viam::component::movementsensor::v1::GetLinearAccelerationResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_DoCommand : public BaseClass { + class ExperimentalWithCallbackMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_DoCommand() { - ::grpc::Service::MarkMethodCallback(8, - new ::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( + ExperimentalWithCallbackMethod_DoCommand() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(8, + new ::grpc_impl::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); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + 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::experimental::MessageAllocator< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(8); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(8); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_DoCommand() override { + ~ExperimentalWithCallbackMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -803,26 +1202,46 @@ class MovementSensorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DoCommand( - ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DoCommand( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetGeometries : public BaseClass { + class ExperimentalWithCallbackMethod_GetGeometries : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetGeometries() { - ::grpc::Service::MarkMethodCallback(9, - new ::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( + ExperimentalWithCallbackMethod_GetGeometries() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(9, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response) { return this->GetGeometries(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response) { return this->GetGeometries(context, request, response); }));} void SetMessageAllocatorFor_GetGeometries( - ::grpc::MessageAllocator< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(9); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(9); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetGeometries() override { + ~ExperimentalWithCallbackMethod_GetGeometries() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -830,26 +1249,46 @@ class MovementSensorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetGeometries( - ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::GetGeometriesRequest* /*request*/, ::viam::common::v1::GetGeometriesResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::GetGeometriesRequest* /*request*/, ::viam::common::v1::GetGeometriesResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetGeometries( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::common::v1::GetGeometriesRequest* /*request*/, ::viam::common::v1::GetGeometriesResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetReadings : public BaseClass { + class ExperimentalWithCallbackMethod_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>( + ExperimentalWithCallbackMethod_GetReadings() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(10, + new ::grpc_impl::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); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + 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::experimental::MessageAllocator< ::viam::common::v1::GetReadingsRequest, ::viam::common::v1::GetReadingsResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(10); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::GetReadingsRequest, ::viam::common::v1::GetReadingsResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(10); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::GetReadingsRequest, ::viam::common::v1::GetReadingsResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetReadings() override { + ~ExperimentalWithCallbackMethod_GetReadings() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -857,11 +1296,20 @@ class MovementSensorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL 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; + ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::GetReadingsRequest* /*request*/, ::viam::common::v1::GetReadingsResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetReadings( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::common::v1::GetReadingsRequest* /*request*/, ::viam::common::v1::GetReadingsResponse* /*response*/) + #endif + { return nullptr; } + }; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef ExperimentalWithCallbackMethod_GetLinearVelocity > > > > > > > > > > CallbackService; + #endif + + typedef ExperimentalWithCallbackMethod_GetLinearVelocity > > > > > > > > > > ExperimentalCallbackService; template class WithGenericMethod_GetLinearVelocity : public BaseClass { private: @@ -1270,17 +1718,27 @@ class MovementSensorService final { } }; template - class WithRawCallbackMethod_GetLinearVelocity : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetLinearVelocity : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetLinearVelocity() { - ::grpc::Service::MarkMethodRawCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetLinearVelocity() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetLinearVelocity(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetLinearVelocity(context, request, response); })); } - ~WithRawCallbackMethod_GetLinearVelocity() override { + ~ExperimentalWithRawCallbackMethod_GetLinearVelocity() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1288,21 +1746,37 @@ class MovementSensorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetLinearVelocity( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetLinearVelocity( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetAngularVelocity : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetAngularVelocity : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetAngularVelocity() { - ::grpc::Service::MarkMethodRawCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetAngularVelocity() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetAngularVelocity(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetAngularVelocity(context, request, response); })); } - ~WithRawCallbackMethod_GetAngularVelocity() override { + ~ExperimentalWithRawCallbackMethod_GetAngularVelocity() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1310,21 +1784,37 @@ class MovementSensorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetAngularVelocity( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetAngularVelocity( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetCompassHeading : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetCompassHeading : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetCompassHeading() { - ::grpc::Service::MarkMethodRawCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetCompassHeading() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(2, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetCompassHeading(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetCompassHeading(context, request, response); })); } - ~WithRawCallbackMethod_GetCompassHeading() override { + ~ExperimentalWithRawCallbackMethod_GetCompassHeading() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1332,21 +1822,37 @@ class MovementSensorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetCompassHeading( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetCompassHeading( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetOrientation : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetOrientation : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetOrientation() { - ::grpc::Service::MarkMethodRawCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetOrientation() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(3, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetOrientation(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetOrientation(context, request, response); })); } - ~WithRawCallbackMethod_GetOrientation() override { + ~ExperimentalWithRawCallbackMethod_GetOrientation() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1354,21 +1860,37 @@ class MovementSensorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetOrientation( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetOrientation( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetPosition : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetPosition : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetPosition() { - ::grpc::Service::MarkMethodRawCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetPosition() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(4, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetPosition(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetPosition(context, request, response); })); } - ~WithRawCallbackMethod_GetPosition() override { + ~ExperimentalWithRawCallbackMethod_GetPosition() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1376,21 +1898,37 @@ class MovementSensorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetPosition( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetPosition( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetProperties : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetProperties : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetProperties() { - ::grpc::Service::MarkMethodRawCallback(5, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetProperties() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(5, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetProperties(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetProperties(context, request, response); })); } - ~WithRawCallbackMethod_GetProperties() override { + ~ExperimentalWithRawCallbackMethod_GetProperties() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1398,21 +1936,37 @@ class MovementSensorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetProperties( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetProperties( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetAccuracy : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetAccuracy : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetAccuracy() { - ::grpc::Service::MarkMethodRawCallback(6, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetAccuracy() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(6, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetAccuracy(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetAccuracy(context, request, response); })); } - ~WithRawCallbackMethod_GetAccuracy() override { + ~ExperimentalWithRawCallbackMethod_GetAccuracy() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1420,21 +1974,37 @@ class MovementSensorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetAccuracy( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetAccuracy( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetLinearAcceleration : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetLinearAcceleration : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetLinearAcceleration() { - ::grpc::Service::MarkMethodRawCallback(7, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetLinearAcceleration() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(7, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetLinearAcceleration(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetLinearAcceleration(context, request, response); })); } - ~WithRawCallbackMethod_GetLinearAcceleration() override { + ~ExperimentalWithRawCallbackMethod_GetLinearAcceleration() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1442,21 +2012,37 @@ class MovementSensorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetLinearAcceleration( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetLinearAcceleration( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_DoCommand : public BaseClass { + class ExperimentalWithRawCallbackMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_DoCommand() { - ::grpc::Service::MarkMethodRawCallback(8, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_DoCommand() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(8, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DoCommand(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DoCommand(context, request, response); })); } - ~WithRawCallbackMethod_DoCommand() override { + ~ExperimentalWithRawCallbackMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1464,21 +2050,37 @@ class MovementSensorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DoCommand( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DoCommand( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetGeometries : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetGeometries : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetGeometries() { - ::grpc::Service::MarkMethodRawCallback(9, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetGeometries() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(9, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetGeometries(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetGeometries(context, request, response); })); } - ~WithRawCallbackMethod_GetGeometries() override { + ~ExperimentalWithRawCallbackMethod_GetGeometries() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1486,21 +2088,37 @@ class MovementSensorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetGeometries( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetGeometries( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetReadings : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetReadings : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetReadings() { - ::grpc::Service::MarkMethodRawCallback(10, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetReadings() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(10, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetReadings(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetReadings(context, request, response); })); } - ~WithRawCallbackMethod_GetReadings() override { + ~ExperimentalWithRawCallbackMethod_GetReadings() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1508,8 +2126,14 @@ class MovementSensorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetReadings( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetReadings( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template class WithStreamedUnaryMethod_GetLinearVelocity : public BaseClass { @@ -1520,8 +2144,8 @@ class MovementSensorService final { ::grpc::Service::MarkMethodStreamed(0, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::movementsensor::v1::GetLinearVelocityRequest, ::viam::component::movementsensor::v1::GetLinearVelocityResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::movementsensor::v1::GetLinearVelocityRequest, ::viam::component::movementsensor::v1::GetLinearVelocityResponse>* streamer) { return this->StreamedGetLinearVelocity(context, streamer); @@ -1547,8 +2171,8 @@ class MovementSensorService final { ::grpc::Service::MarkMethodStreamed(1, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::movementsensor::v1::GetAngularVelocityRequest, ::viam::component::movementsensor::v1::GetAngularVelocityResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::movementsensor::v1::GetAngularVelocityRequest, ::viam::component::movementsensor::v1::GetAngularVelocityResponse>* streamer) { return this->StreamedGetAngularVelocity(context, streamer); @@ -1574,8 +2198,8 @@ class MovementSensorService final { ::grpc::Service::MarkMethodStreamed(2, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::movementsensor::v1::GetCompassHeadingRequest, ::viam::component::movementsensor::v1::GetCompassHeadingResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::movementsensor::v1::GetCompassHeadingRequest, ::viam::component::movementsensor::v1::GetCompassHeadingResponse>* streamer) { return this->StreamedGetCompassHeading(context, streamer); @@ -1601,8 +2225,8 @@ class MovementSensorService final { ::grpc::Service::MarkMethodStreamed(3, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::movementsensor::v1::GetOrientationRequest, ::viam::component::movementsensor::v1::GetOrientationResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::movementsensor::v1::GetOrientationRequest, ::viam::component::movementsensor::v1::GetOrientationResponse>* streamer) { return this->StreamedGetOrientation(context, streamer); @@ -1628,8 +2252,8 @@ class MovementSensorService final { ::grpc::Service::MarkMethodStreamed(4, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::movementsensor::v1::GetPositionRequest, ::viam::component::movementsensor::v1::GetPositionResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::movementsensor::v1::GetPositionRequest, ::viam::component::movementsensor::v1::GetPositionResponse>* streamer) { return this->StreamedGetPosition(context, streamer); @@ -1655,8 +2279,8 @@ class MovementSensorService final { ::grpc::Service::MarkMethodStreamed(5, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::movementsensor::v1::GetPropertiesRequest, ::viam::component::movementsensor::v1::GetPropertiesResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::movementsensor::v1::GetPropertiesRequest, ::viam::component::movementsensor::v1::GetPropertiesResponse>* streamer) { return this->StreamedGetProperties(context, streamer); @@ -1682,8 +2306,8 @@ class MovementSensorService final { ::grpc::Service::MarkMethodStreamed(6, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::movementsensor::v1::GetAccuracyRequest, ::viam::component::movementsensor::v1::GetAccuracyResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::movementsensor::v1::GetAccuracyRequest, ::viam::component::movementsensor::v1::GetAccuracyResponse>* streamer) { return this->StreamedGetAccuracy(context, streamer); @@ -1709,8 +2333,8 @@ class MovementSensorService final { ::grpc::Service::MarkMethodStreamed(7, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::movementsensor::v1::GetLinearAccelerationRequest, ::viam::component::movementsensor::v1::GetLinearAccelerationResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::movementsensor::v1::GetLinearAccelerationRequest, ::viam::component::movementsensor::v1::GetLinearAccelerationResponse>* streamer) { return this->StreamedGetLinearAcceleration(context, streamer); @@ -1736,8 +2360,8 @@ class MovementSensorService final { ::grpc::Service::MarkMethodStreamed(8, new ::grpc::internal::StreamedUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* streamer) { return this->StreamedDoCommand(context, streamer); @@ -1763,8 +2387,8 @@ class MovementSensorService final { ::grpc::Service::MarkMethodStreamed(9, new ::grpc::internal::StreamedUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>* streamer) { return this->StreamedGetGeometries(context, streamer); @@ -1790,8 +2414,8 @@ class MovementSensorService final { ::grpc::Service::MarkMethodStreamed(10, new ::grpc::internal::StreamedUnaryHandler< ::viam::common::v1::GetReadingsRequest, ::viam::common::v1::GetReadingsResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::common::v1::GetReadingsRequest, ::viam::common::v1::GetReadingsResponse>* streamer) { return this->StreamedGetReadings(context, streamer); diff --git a/src/viam/api/component/movementsensor/v1/movementsensor.pb.cc b/src/viam/api/component/movementsensor/v1/movementsensor.pb.cc index b1f94433c..091d1b276 100644 --- a/src/viam/api/component/movementsensor/v1/movementsensor.pb.cc +++ b/src/viam/api/component/movementsensor/v1/movementsensor.pb.cc @@ -4,1014 +4,795 @@ #include "component/movementsensor/v1/movementsensor.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace viam { namespace component { namespace movementsensor { namespace v1 { - -inline constexpr GetPropertiesResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : linear_velocity_supported_{false}, - angular_velocity_supported_{false}, - orientation_supported_{false}, - position_supported_{false}, - compass_heading_supported_{false}, - linear_acceleration_supported_{false}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetPropertiesResponse::GetPropertiesResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetPropertiesResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetPropertiesResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetPropertiesResponseDefaultTypeInternal() {} - union { - GetPropertiesResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPropertiesResponseDefaultTypeInternal _GetPropertiesResponse_default_instance_; - -inline constexpr GetCompassHeadingResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : value_{0}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetCompassHeadingResponse::GetCompassHeadingResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetCompassHeadingResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetCompassHeadingResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetCompassHeadingResponseDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR GetLinearVelocityRequest::GetLinearVelocityRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} +struct GetLinearVelocityRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetLinearVelocityRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetLinearVelocityRequestDefaultTypeInternal() {} union { - GetCompassHeadingResponse _instance; + GetLinearVelocityRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetCompassHeadingResponseDefaultTypeInternal _GetCompassHeadingResponse_default_instance_; - template -PROTOBUF_CONSTEXPR GetAccuracyResponse_AccuracyEntry_DoNotUse::GetAccuracyResponse_AccuracyEntry_DoNotUse(::_pbi::ConstantInitialized) {} -struct GetAccuracyResponse_AccuracyEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetAccuracyResponse_AccuracyEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetAccuracyResponse_AccuracyEntry_DoNotUseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetLinearVelocityRequestDefaultTypeInternal _GetLinearVelocityRequest_default_instance_; +PROTOBUF_CONSTEXPR GetLinearVelocityResponse::GetLinearVelocityResponse( + ::_pbi::ConstantInitialized) + : linear_velocity_(nullptr){} +struct GetLinearVelocityResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetLinearVelocityResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetLinearVelocityResponseDefaultTypeInternal() {} union { - GetAccuracyResponse_AccuracyEntry_DoNotUse _instance; + GetLinearVelocityResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetAccuracyResponse_AccuracyEntry_DoNotUseDefaultTypeInternal _GetAccuracyResponse_AccuracyEntry_DoNotUse_default_instance_; - -inline constexpr GetPropertiesRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetPropertiesRequest::GetPropertiesRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetPropertiesRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetPropertiesRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetPropertiesRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetLinearVelocityResponseDefaultTypeInternal _GetLinearVelocityResponse_default_instance_; +PROTOBUF_CONSTEXPR GetAngularVelocityRequest::GetAngularVelocityRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} +struct GetAngularVelocityRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetAngularVelocityRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetAngularVelocityRequestDefaultTypeInternal() {} union { - GetPropertiesRequest _instance; + GetAngularVelocityRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPropertiesRequestDefaultTypeInternal _GetPropertiesRequest_default_instance_; - -inline constexpr GetPositionResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - coordinate_{nullptr}, - altitude_m_{0} {} - -template -PROTOBUF_CONSTEXPR GetPositionResponse::GetPositionResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetPositionResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetPositionResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetPositionResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetAngularVelocityRequestDefaultTypeInternal _GetAngularVelocityRequest_default_instance_; +PROTOBUF_CONSTEXPR GetAngularVelocityResponse::GetAngularVelocityResponse( + ::_pbi::ConstantInitialized) + : angular_velocity_(nullptr){} +struct GetAngularVelocityResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetAngularVelocityResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetAngularVelocityResponseDefaultTypeInternal() {} union { - GetPositionResponse _instance; + GetAngularVelocityResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPositionResponseDefaultTypeInternal _GetPositionResponse_default_instance_; - -inline constexpr GetPositionRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetPositionRequest::GetPositionRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetPositionRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetPositionRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetPositionRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetAngularVelocityResponseDefaultTypeInternal _GetAngularVelocityResponse_default_instance_; +PROTOBUF_CONSTEXPR GetCompassHeadingRequest::GetCompassHeadingRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} +struct GetCompassHeadingRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetCompassHeadingRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetCompassHeadingRequestDefaultTypeInternal() {} union { - GetPositionRequest _instance; + GetCompassHeadingRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPositionRequestDefaultTypeInternal _GetPositionRequest_default_instance_; - -inline constexpr GetOrientationResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - orientation_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetOrientationResponse::GetOrientationResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetOrientationResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetOrientationResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetOrientationResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetCompassHeadingRequestDefaultTypeInternal _GetCompassHeadingRequest_default_instance_; +PROTOBUF_CONSTEXPR GetCompassHeadingResponse::GetCompassHeadingResponse( + ::_pbi::ConstantInitialized) + : value_(0){} +struct GetCompassHeadingResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetCompassHeadingResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetCompassHeadingResponseDefaultTypeInternal() {} union { - GetOrientationResponse _instance; + GetCompassHeadingResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetOrientationResponseDefaultTypeInternal _GetOrientationResponse_default_instance_; - -inline constexpr GetOrientationRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetOrientationRequest::GetOrientationRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetCompassHeadingResponseDefaultTypeInternal _GetCompassHeadingResponse_default_instance_; +PROTOBUF_CONSTEXPR GetOrientationRequest::GetOrientationRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} struct GetOrientationRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetOrientationRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GetOrientationRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~GetOrientationRequestDefaultTypeInternal() {} union { GetOrientationRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetOrientationRequestDefaultTypeInternal _GetOrientationRequest_default_instance_; - -inline constexpr GetLinearVelocityResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - linear_velocity_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetLinearVelocityResponse::GetLinearVelocityResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetLinearVelocityResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetLinearVelocityResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetLinearVelocityResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetOrientationRequestDefaultTypeInternal _GetOrientationRequest_default_instance_; +PROTOBUF_CONSTEXPR GetOrientationResponse::GetOrientationResponse( + ::_pbi::ConstantInitialized) + : orientation_(nullptr){} +struct GetOrientationResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetOrientationResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetOrientationResponseDefaultTypeInternal() {} union { - GetLinearVelocityResponse _instance; + GetOrientationResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetLinearVelocityResponseDefaultTypeInternal _GetLinearVelocityResponse_default_instance_; - -inline constexpr GetLinearVelocityRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetLinearVelocityRequest::GetLinearVelocityRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetLinearVelocityRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetLinearVelocityRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetLinearVelocityRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetOrientationResponseDefaultTypeInternal _GetOrientationResponse_default_instance_; +PROTOBUF_CONSTEXPR GetPositionRequest::GetPositionRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} +struct GetPositionRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPositionRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPositionRequestDefaultTypeInternal() {} union { - GetLinearVelocityRequest _instance; + GetPositionRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetLinearVelocityRequestDefaultTypeInternal _GetLinearVelocityRequest_default_instance_; - -inline constexpr GetLinearAccelerationResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - linear_acceleration_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetLinearAccelerationResponse::GetLinearAccelerationResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetLinearAccelerationResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetLinearAccelerationResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetLinearAccelerationResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPositionRequestDefaultTypeInternal _GetPositionRequest_default_instance_; +PROTOBUF_CONSTEXPR GetPositionResponse::GetPositionResponse( + ::_pbi::ConstantInitialized) + : coordinate_(nullptr) + , altitude_m_(0){} +struct GetPositionResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPositionResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPositionResponseDefaultTypeInternal() {} union { - GetLinearAccelerationResponse _instance; + GetPositionResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetLinearAccelerationResponseDefaultTypeInternal _GetLinearAccelerationResponse_default_instance_; - -inline constexpr GetLinearAccelerationRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetLinearAccelerationRequest::GetLinearAccelerationRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetLinearAccelerationRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetLinearAccelerationRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetLinearAccelerationRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPositionResponseDefaultTypeInternal _GetPositionResponse_default_instance_; +PROTOBUF_CONSTEXPR GetPropertiesRequest::GetPropertiesRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} +struct GetPropertiesRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPropertiesRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPropertiesRequestDefaultTypeInternal() {} union { - GetLinearAccelerationRequest _instance; + GetPropertiesRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetLinearAccelerationRequestDefaultTypeInternal _GetLinearAccelerationRequest_default_instance_; - -inline constexpr GetCompassHeadingRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetCompassHeadingRequest::GetCompassHeadingRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetCompassHeadingRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetCompassHeadingRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetCompassHeadingRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPropertiesRequestDefaultTypeInternal _GetPropertiesRequest_default_instance_; +PROTOBUF_CONSTEXPR GetPropertiesResponse::GetPropertiesResponse( + ::_pbi::ConstantInitialized) + : linear_velocity_supported_(false) + , angular_velocity_supported_(false) + , orientation_supported_(false) + , position_supported_(false) + , compass_heading_supported_(false) + , linear_acceleration_supported_(false){} +struct GetPropertiesResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPropertiesResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPropertiesResponseDefaultTypeInternal() {} union { - GetCompassHeadingRequest _instance; + GetPropertiesResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetCompassHeadingRequestDefaultTypeInternal _GetCompassHeadingRequest_default_instance_; - -inline constexpr GetAngularVelocityResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - angular_velocity_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetAngularVelocityResponse::GetAngularVelocityResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetAngularVelocityResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetAngularVelocityResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetAngularVelocityResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPropertiesResponseDefaultTypeInternal _GetPropertiesResponse_default_instance_; +PROTOBUF_CONSTEXPR GetAccuracyRequest::GetAccuracyRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} +struct GetAccuracyRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetAccuracyRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetAccuracyRequestDefaultTypeInternal() {} union { - GetAngularVelocityResponse _instance; + GetAccuracyRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetAngularVelocityResponseDefaultTypeInternal _GetAngularVelocityResponse_default_instance_; - -inline constexpr GetAngularVelocityRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetAngularVelocityRequest::GetAngularVelocityRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetAngularVelocityRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetAngularVelocityRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetAngularVelocityRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetAccuracyRequestDefaultTypeInternal _GetAccuracyRequest_default_instance_; +PROTOBUF_CONSTEXPR GetAccuracyResponse_AccuracyEntry_DoNotUse::GetAccuracyResponse_AccuracyEntry_DoNotUse( + ::_pbi::ConstantInitialized){} +struct GetAccuracyResponse_AccuracyEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetAccuracyResponse_AccuracyEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetAccuracyResponse_AccuracyEntry_DoNotUseDefaultTypeInternal() {} union { - GetAngularVelocityRequest _instance; + GetAccuracyResponse_AccuracyEntry_DoNotUse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetAngularVelocityRequestDefaultTypeInternal _GetAngularVelocityRequest_default_instance_; - -inline constexpr GetAccuracyResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - accuracy_{}, - position_hdop_{0}, - position_vdop_{0}, - position_nmea_gga_fix_{0}, - compass_degrees_error_{0} {} - -template -PROTOBUF_CONSTEXPR GetAccuracyResponse::GetAccuracyResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetAccuracyResponse_AccuracyEntry_DoNotUseDefaultTypeInternal _GetAccuracyResponse_AccuracyEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR GetAccuracyResponse::GetAccuracyResponse( + ::_pbi::ConstantInitialized) + : accuracy_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + , position_hdop_(0) + , position_vdop_(0) + , position_nmea_gga_fix_(0) + , compass_degrees_error_(0){} struct GetAccuracyResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetAccuracyResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GetAccuracyResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~GetAccuracyResponseDefaultTypeInternal() {} union { GetAccuracyResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetAccuracyResponseDefaultTypeInternal _GetAccuracyResponse_default_instance_; - -inline constexpr GetAccuracyRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetAccuracyRequest::GetAccuracyRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetAccuracyRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetAccuracyRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetAccuracyRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetAccuracyResponseDefaultTypeInternal _GetAccuracyResponse_default_instance_; +PROTOBUF_CONSTEXPR GetLinearAccelerationRequest::GetLinearAccelerationRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} +struct GetLinearAccelerationRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetLinearAccelerationRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetLinearAccelerationRequestDefaultTypeInternal() {} union { - GetAccuracyRequest _instance; + GetLinearAccelerationRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetAccuracyRequestDefaultTypeInternal _GetAccuracyRequest_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetLinearAccelerationRequestDefaultTypeInternal _GetLinearAccelerationRequest_default_instance_; +PROTOBUF_CONSTEXPR GetLinearAccelerationResponse::GetLinearAccelerationResponse( + ::_pbi::ConstantInitialized) + : linear_acceleration_(nullptr){} +struct GetLinearAccelerationResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetLinearAccelerationResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetLinearAccelerationResponseDefaultTypeInternal() {} + union { + GetLinearAccelerationResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetLinearAccelerationResponseDefaultTypeInternal _GetLinearAccelerationResponse_default_instance_; } // namespace v1 } // namespace movementsensor } // namespace component } // namespace viam static ::_pb::Metadata file_level_metadata_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto[17]; -static constexpr const ::_pb::EnumDescriptor** - file_level_enum_descriptors_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto = nullptr; -const ::uint32_t TableStruct_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetLinearVelocityRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetLinearVelocityRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetLinearVelocityRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetLinearVelocityRequest, _impl_.extra_), - ~0u, - 0, - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetLinearVelocityResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetLinearVelocityResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetLinearVelocityResponse, _impl_.linear_velocity_), - 0, - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetAngularVelocityRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetAngularVelocityRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetAngularVelocityRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetAngularVelocityRequest, _impl_.extra_), - ~0u, - 0, - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetAngularVelocityResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetAngularVelocityResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetAngularVelocityResponse, _impl_.angular_velocity_), - 0, - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetCompassHeadingRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetCompassHeadingRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetCompassHeadingRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetCompassHeadingRequest, _impl_.extra_), - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetCompassHeadingResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetCompassHeadingResponse, _impl_.value_), - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetOrientationRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetOrientationRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetOrientationRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetOrientationRequest, _impl_.extra_), - ~0u, - 0, - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetOrientationResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetOrientationResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetOrientationResponse, _impl_.orientation_), - 0, - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetPositionRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetPositionRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetPositionRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetPositionRequest, _impl_.extra_), - ~0u, - 0, - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetPositionResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetPositionResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetPositionResponse, _impl_.coordinate_), - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetPositionResponse, _impl_.altitude_m_), - 0, - ~0u, - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetPropertiesRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetPropertiesRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetPropertiesRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetPropertiesRequest, _impl_.extra_), - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetPropertiesResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetPropertiesResponse, _impl_.linear_velocity_supported_), - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetPropertiesResponse, _impl_.angular_velocity_supported_), - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetPropertiesResponse, _impl_.orientation_supported_), - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetPropertiesResponse, _impl_.position_supported_), - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetPropertiesResponse, _impl_.compass_heading_supported_), - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetPropertiesResponse, _impl_.linear_acceleration_supported_), - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetAccuracyRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetAccuracyRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetAccuracyRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetAccuracyRequest, _impl_.extra_), - ~0u, - 0, - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetAccuracyResponse_AccuracyEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetAccuracyResponse_AccuracyEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetAccuracyResponse_AccuracyEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetAccuracyResponse_AccuracyEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetAccuracyResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetAccuracyResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetAccuracyResponse, _impl_.accuracy_), - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetAccuracyResponse, _impl_.position_hdop_), - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetAccuracyResponse, _impl_.position_vdop_), - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetAccuracyResponse, _impl_.position_nmea_gga_fix_), - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetAccuracyResponse, _impl_.compass_degrees_error_), - ~0u, - 0, - 1, - 2, - 3, - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetLinearAccelerationRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetLinearAccelerationRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetLinearAccelerationRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetLinearAccelerationRequest, _impl_.extra_), - ~0u, - 0, - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetLinearAccelerationResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetLinearAccelerationResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetLinearAccelerationResponse, _impl_.linear_acceleration_), - 0, +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto = nullptr; + +const uint32_t TableStruct_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetLinearVelocityRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetLinearVelocityRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetLinearVelocityRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetLinearVelocityResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetLinearVelocityResponse, linear_velocity_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetAngularVelocityRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetAngularVelocityRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetAngularVelocityRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetAngularVelocityResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetAngularVelocityResponse, angular_velocity_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetCompassHeadingRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetCompassHeadingRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetCompassHeadingRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetCompassHeadingResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetCompassHeadingResponse, value_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetOrientationRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetOrientationRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetOrientationRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetOrientationResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetOrientationResponse, orientation_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetPositionRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetPositionRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetPositionRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetPositionResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetPositionResponse, coordinate_), + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetPositionResponse, altitude_m_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetPropertiesRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetPropertiesRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetPropertiesRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetPropertiesResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetPropertiesResponse, linear_velocity_supported_), + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetPropertiesResponse, angular_velocity_supported_), + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetPropertiesResponse, orientation_supported_), + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetPropertiesResponse, position_supported_), + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetPropertiesResponse, compass_heading_supported_), + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetPropertiesResponse, linear_acceleration_supported_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetAccuracyRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetAccuracyRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetAccuracyRequest, extra_), + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetAccuracyResponse_AccuracyEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetAccuracyResponse_AccuracyEntry_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::movementsensor::v1::GetAccuracyResponse_AccuracyEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetAccuracyResponse_AccuracyEntry_DoNotUse, value_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetAccuracyResponse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetAccuracyResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetAccuracyResponse, accuracy_), + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetAccuracyResponse, position_hdop_), + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetAccuracyResponse, position_vdop_), + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetAccuracyResponse, position_nmea_gga_fix_), + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetAccuracyResponse, compass_degrees_error_), + ~0u, + 0, + 1, + 2, + 3, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetLinearAccelerationRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetLinearAccelerationRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetLinearAccelerationRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetLinearAccelerationResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::movementsensor::v1::GetLinearAccelerationResponse, linear_acceleration_), }; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, 10, -1, sizeof(::viam::component::movementsensor::v1::GetLinearVelocityRequest)}, - {12, 21, -1, sizeof(::viam::component::movementsensor::v1::GetLinearVelocityResponse)}, - {22, 32, -1, sizeof(::viam::component::movementsensor::v1::GetAngularVelocityRequest)}, - {34, 43, -1, sizeof(::viam::component::movementsensor::v1::GetAngularVelocityResponse)}, - {44, 54, -1, sizeof(::viam::component::movementsensor::v1::GetCompassHeadingRequest)}, - {56, -1, -1, sizeof(::viam::component::movementsensor::v1::GetCompassHeadingResponse)}, - {65, 75, -1, sizeof(::viam::component::movementsensor::v1::GetOrientationRequest)}, - {77, 86, -1, sizeof(::viam::component::movementsensor::v1::GetOrientationResponse)}, - {87, 97, -1, sizeof(::viam::component::movementsensor::v1::GetPositionRequest)}, - {99, 109, -1, sizeof(::viam::component::movementsensor::v1::GetPositionResponse)}, - {111, 121, -1, sizeof(::viam::component::movementsensor::v1::GetPropertiesRequest)}, - {123, -1, -1, sizeof(::viam::component::movementsensor::v1::GetPropertiesResponse)}, - {137, 147, -1, sizeof(::viam::component::movementsensor::v1::GetAccuracyRequest)}, - {149, 159, -1, sizeof(::viam::component::movementsensor::v1::GetAccuracyResponse_AccuracyEntry_DoNotUse)}, - {161, 174, -1, sizeof(::viam::component::movementsensor::v1::GetAccuracyResponse)}, - {179, 189, -1, sizeof(::viam::component::movementsensor::v1::GetLinearAccelerationRequest)}, - {191, 200, -1, sizeof(::viam::component::movementsensor::v1::GetLinearAccelerationResponse)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::component::movementsensor::v1::GetLinearVelocityRequest)}, + { 8, -1, -1, sizeof(::viam::component::movementsensor::v1::GetLinearVelocityResponse)}, + { 15, -1, -1, sizeof(::viam::component::movementsensor::v1::GetAngularVelocityRequest)}, + { 23, -1, -1, sizeof(::viam::component::movementsensor::v1::GetAngularVelocityResponse)}, + { 30, -1, -1, sizeof(::viam::component::movementsensor::v1::GetCompassHeadingRequest)}, + { 38, -1, -1, sizeof(::viam::component::movementsensor::v1::GetCompassHeadingResponse)}, + { 45, -1, -1, sizeof(::viam::component::movementsensor::v1::GetOrientationRequest)}, + { 53, -1, -1, sizeof(::viam::component::movementsensor::v1::GetOrientationResponse)}, + { 60, -1, -1, sizeof(::viam::component::movementsensor::v1::GetPositionRequest)}, + { 68, -1, -1, sizeof(::viam::component::movementsensor::v1::GetPositionResponse)}, + { 76, -1, -1, sizeof(::viam::component::movementsensor::v1::GetPropertiesRequest)}, + { 84, -1, -1, sizeof(::viam::component::movementsensor::v1::GetPropertiesResponse)}, + { 96, -1, -1, sizeof(::viam::component::movementsensor::v1::GetAccuracyRequest)}, + { 104, 112, -1, sizeof(::viam::component::movementsensor::v1::GetAccuracyResponse_AccuracyEntry_DoNotUse)}, + { 114, 125, -1, sizeof(::viam::component::movementsensor::v1::GetAccuracyResponse)}, + { 130, -1, -1, sizeof(::viam::component::movementsensor::v1::GetLinearAccelerationRequest)}, + { 138, -1, -1, sizeof(::viam::component::movementsensor::v1::GetLinearAccelerationResponse)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::viam::component::movementsensor::v1::_GetLinearVelocityRequest_default_instance_._instance, - &::viam::component::movementsensor::v1::_GetLinearVelocityResponse_default_instance_._instance, - &::viam::component::movementsensor::v1::_GetAngularVelocityRequest_default_instance_._instance, - &::viam::component::movementsensor::v1::_GetAngularVelocityResponse_default_instance_._instance, - &::viam::component::movementsensor::v1::_GetCompassHeadingRequest_default_instance_._instance, - &::viam::component::movementsensor::v1::_GetCompassHeadingResponse_default_instance_._instance, - &::viam::component::movementsensor::v1::_GetOrientationRequest_default_instance_._instance, - &::viam::component::movementsensor::v1::_GetOrientationResponse_default_instance_._instance, - &::viam::component::movementsensor::v1::_GetPositionRequest_default_instance_._instance, - &::viam::component::movementsensor::v1::_GetPositionResponse_default_instance_._instance, - &::viam::component::movementsensor::v1::_GetPropertiesRequest_default_instance_._instance, - &::viam::component::movementsensor::v1::_GetPropertiesResponse_default_instance_._instance, - &::viam::component::movementsensor::v1::_GetAccuracyRequest_default_instance_._instance, - &::viam::component::movementsensor::v1::_GetAccuracyResponse_AccuracyEntry_DoNotUse_default_instance_._instance, - &::viam::component::movementsensor::v1::_GetAccuracyResponse_default_instance_._instance, - &::viam::component::movementsensor::v1::_GetLinearAccelerationRequest_default_instance_._instance, - &::viam::component::movementsensor::v1::_GetLinearAccelerationResponse_default_instance_._instance, + &::viam::component::movementsensor::v1::_GetLinearVelocityRequest_default_instance_._instance, + &::viam::component::movementsensor::v1::_GetLinearVelocityResponse_default_instance_._instance, + &::viam::component::movementsensor::v1::_GetAngularVelocityRequest_default_instance_._instance, + &::viam::component::movementsensor::v1::_GetAngularVelocityResponse_default_instance_._instance, + &::viam::component::movementsensor::v1::_GetCompassHeadingRequest_default_instance_._instance, + &::viam::component::movementsensor::v1::_GetCompassHeadingResponse_default_instance_._instance, + &::viam::component::movementsensor::v1::_GetOrientationRequest_default_instance_._instance, + &::viam::component::movementsensor::v1::_GetOrientationResponse_default_instance_._instance, + &::viam::component::movementsensor::v1::_GetPositionRequest_default_instance_._instance, + &::viam::component::movementsensor::v1::_GetPositionResponse_default_instance_._instance, + &::viam::component::movementsensor::v1::_GetPropertiesRequest_default_instance_._instance, + &::viam::component::movementsensor::v1::_GetPropertiesResponse_default_instance_._instance, + &::viam::component::movementsensor::v1::_GetAccuracyRequest_default_instance_._instance, + &::viam::component::movementsensor::v1::_GetAccuracyResponse_AccuracyEntry_DoNotUse_default_instance_._instance, + &::viam::component::movementsensor::v1::_GetAccuracyResponse_default_instance_._instance, + &::viam::component::movementsensor::v1::_GetLinearAccelerationRequest_default_instance_._instance, + &::viam::component::movementsensor::v1::_GetLinearAccelerationResponse_default_instance_._instance, }; -const char descriptor_table_protodef_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n0component/movementsensor/v1/movementse" - "nsor.proto\022 viam.component.movementsenso" - "r.v1\032\026common/v1/common.proto\032\034google/api" - "/annotations.proto\032\034google/protobuf/stru" - "ct.proto\"]\n\030GetLinearVelocityRequest\022\022\n\004" - "name\030\001 \001(\tR\004name\022-\n\005extra\030c \001(\0132\027.google" - ".protobuf.StructR\005extra\"]\n\031GetLinearVelo" - "cityResponse\022@\n\017linear_velocity\030\001 \001(\0132\027." - "viam.common.v1.Vector3R\016linearVelocity\"^" - "\n\031GetAngularVelocityRequest\022\022\n\004name\030\001 \001(" - "\tR\004name\022-\n\005extra\030c \001(\0132\027.google.protobuf" - ".StructR\005extra\"`\n\032GetAngularVelocityResp" - "onse\022B\n\020angular_velocity\030\001 \001(\0132\027.viam.co" - "mmon.v1.Vector3R\017angularVelocity\"]\n\030GetC" - "ompassHeadingRequest\022\022\n\004name\030\001 \001(\tR\004name" - "\022-\n\005extra\030c \001(\0132\027.google.protobuf.Struct" - "R\005extra\"1\n\031GetCompassHeadingResponse\022\024\n\005" - "value\030\001 \001(\001R\005value\"Z\n\025GetOrientationRequ" - "est\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005extra\030c \001(\0132\027" - ".google.protobuf.StructR\005extra\"W\n\026GetOri" - "entationResponse\022=\n\013orientation\030\001 \001(\0132\033." - "viam.common.v1.OrientationR\013orientation\"" - "W\n\022GetPositionRequest\022\022\n\004name\030\001 \001(\tR\004nam" - "e\022-\n\005extra\030c \001(\0132\027.google.protobuf.Struc" - "tR\005extra\"n\n\023GetPositionResponse\0228\n\ncoord" - "inate\030\001 \001(\0132\030.viam.common.v1.GeoPointR\nc" - "oordinate\022\035\n\naltitude_m\030\002 \001(\002R\taltitudeM" - "\"Y\n\024GetPropertiesRequest\022\022\n\004name\030\001 \001(\tR\004" - "name\022-\n\005extra\030c \001(\0132\027.google.protobuf.St" - "ructR\005extra\"\365\002\n\025GetPropertiesResponse\022:\n" - "\031linear_velocity_supported\030\001 \001(\010R\027linear" - "VelocitySupported\022<\n\032angular_velocity_su" - "pported\030\002 \001(\010R\030angularVelocitySupported\022" - "3\n\025orientation_supported\030\003 \001(\010R\024orientat" - "ionSupported\022-\n\022position_supported\030\004 \001(\010" - "R\021positionSupported\022:\n\031compass_heading_s" - "upported\030\005 \001(\010R\027compassHeadingSupported\022" - "B\n\035linear_acceleration_supported\030\006 \001(\010R\033" - "linearAccelerationSupported\"W\n\022GetAccura" - "cyRequest\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005extra\030c" - " \001(\0132\027.google.protobuf.StructR\005extra\"\320\003\n" - "\023GetAccuracyResponse\022_\n\010accuracy\030\001 \003(\0132C" - ".viam.component.movementsensor.v1.GetAcc" - "uracyResponse.AccuracyEntryR\010accuracy\022(\n" - "\rposition_hdop\030\002 \001(\002H\000R\014positionHdop\210\001\001\022" - "(\n\rposition_vdop\030\003 \001(\002H\001R\014positionVdop\210\001" - "\001\0226\n\025position_nmea_gga_fix\030\004 \001(\005H\002R\022posi" - "tionNmeaGgaFix\210\001\001\0227\n\025compass_degrees_err" - "or\030\005 \001(\002H\003R\023compassDegreesError\210\001\001\032;\n\rAc" - "curacyEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002" - " \001(\002R\005value:\0028\001B\020\n\016_position_hdopB\020\n\016_po" - "sition_vdopB\030\n\026_position_nmea_gga_fixB\030\n" - "\026_compass_degrees_error\"a\n\034GetLinearAcce" - "lerationRequest\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005e" - "xtra\030c \001(\0132\027.google.protobuf.StructR\005ext" - "ra\"i\n\035GetLinearAccelerationResponse\022H\n\023l" - "inear_acceleration\030\001 \001(\0132\027.viam.common.v" - "1.Vector3R\022linearAcceleration2\317\020\n\025Moveme" - "ntSensorService\022\322\001\n\021GetLinearVelocity\022:." - "viam.component.movementsensor.v1.GetLine" - "arVelocityRequest\032;.viam.component.movem" - "entsensor.v1.GetLinearVelocityResponse\"D" - "\202\323\344\223\002>\022\022.viam.component.moveme" - "ntsensor.v1.GetLinearAccelerationRequest" - "\032\?.viam.component.movementsensor.v1.GetL" - "inearAccelerationResponse\"H\202\323\344\223\002B\022@/viam" - "/api/v1/component/movementsensor/{name}/" - "linear_acceleration\022\221\001\n\tDoCommand\022 .viam" - ".common.v1.DoCommandRequest\032!.viam.commo" - "n.v1.DoCommandResponse\"\?\202\323\344\223\0029\"7/viam/ap" - "i/v1/component/movementsensor/{name}/do_" - "command\022\235\001\n\rGetGeometries\022$.viam.common." - "v1.GetGeometriesRequest\032%.viam.common.v1" - ".GetGeometriesResponse\"\?\202\323\344\223\0029\0227/viam/ap" - "i/v1/component/movementsensor/{name}/geo" - "metries\022\225\001\n\013GetReadings\022\".viam.common.v1" - ".GetReadingsRequest\032#.viam.common.v1.Get" - "ReadingsResponse\"=\202\323\344\223\0027\0225/viam/api/v1/c" - "omponent/movementsensor/{name}/readingsB" - "\213\002\n$com.viam.component.movementsensor.v1" - "B\023MovementsensorProtoP\001Z+go.viam.com/api" - "/component/movementsensor/v1\242\002\003VCM\252\002 Via" - "m.Component.Movementsensor.V1\312\002 Viam\\Com" - "ponent\\Movementsensor\\V1\342\002,Viam\\Componen" - "t\\Movementsensor\\V1\\GPBMetadata\352\002#Viam::" - "Component::Movementsensor::V1b\006proto3" -}; -static const ::_pbi::DescriptorTable* const descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_deps[3] = - { - &::descriptor_table_common_2fv1_2fcommon_2eproto, - &::descriptor_table_google_2fapi_2fannotations_2eproto, - &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, + +const char descriptor_table_protodef_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n0component/movementsensor/v1/movementse" + "nsor.proto\022 viam.component.movementsenso" + "r.v1\032\026common/v1/common.proto\032\034google/api" + "/annotations.proto\032\034google/protobuf/stru" + "ct.proto\"]\n\030GetLinearVelocityRequest\022\022\n\004" + "name\030\001 \001(\tR\004name\022-\n\005extra\030c \001(\0132\027.google" + ".protobuf.StructR\005extra\"]\n\031GetLinearVelo" + "cityResponse\022@\n\017linear_velocity\030\001 \001(\0132\027." + "viam.common.v1.Vector3R\016linearVelocity\"^" + "\n\031GetAngularVelocityRequest\022\022\n\004name\030\001 \001(" + "\tR\004name\022-\n\005extra\030c \001(\0132\027.google.protobuf" + ".StructR\005extra\"`\n\032GetAngularVelocityResp" + "onse\022B\n\020angular_velocity\030\001 \001(\0132\027.viam.co" + "mmon.v1.Vector3R\017angularVelocity\"]\n\030GetC" + "ompassHeadingRequest\022\022\n\004name\030\001 \001(\tR\004name" + "\022-\n\005extra\030c \001(\0132\027.google.protobuf.Struct" + "R\005extra\"1\n\031GetCompassHeadingResponse\022\024\n\005" + "value\030\001 \001(\001R\005value\"Z\n\025GetOrientationRequ" + "est\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005extra\030c \001(\0132\027" + ".google.protobuf.StructR\005extra\"W\n\026GetOri" + "entationResponse\022=\n\013orientation\030\001 \001(\0132\033." + "viam.common.v1.OrientationR\013orientation\"" + "W\n\022GetPositionRequest\022\022\n\004name\030\001 \001(\tR\004nam" + "e\022-\n\005extra\030c \001(\0132\027.google.protobuf.Struc" + "tR\005extra\"n\n\023GetPositionResponse\0228\n\ncoord" + "inate\030\001 \001(\0132\030.viam.common.v1.GeoPointR\nc" + "oordinate\022\035\n\naltitude_m\030\002 \001(\002R\taltitudeM" + "\"Y\n\024GetPropertiesRequest\022\022\n\004name\030\001 \001(\tR\004" + "name\022-\n\005extra\030c \001(\0132\027.google.protobuf.St" + "ructR\005extra\"\365\002\n\025GetPropertiesResponse\022:\n" + "\031linear_velocity_supported\030\001 \001(\010R\027linear" + "VelocitySupported\022<\n\032angular_velocity_su" + "pported\030\002 \001(\010R\030angularVelocitySupported\022" + "3\n\025orientation_supported\030\003 \001(\010R\024orientat" + "ionSupported\022-\n\022position_supported\030\004 \001(\010" + "R\021positionSupported\022:\n\031compass_heading_s" + "upported\030\005 \001(\010R\027compassHeadingSupported\022" + "B\n\035linear_acceleration_supported\030\006 \001(\010R\033" + "linearAccelerationSupported\"W\n\022GetAccura" + "cyRequest\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005extra\030c" + " \001(\0132\027.google.protobuf.StructR\005extra\"\320\003\n" + "\023GetAccuracyResponse\022_\n\010accuracy\030\001 \003(\0132C" + ".viam.component.movementsensor.v1.GetAcc" + "uracyResponse.AccuracyEntryR\010accuracy\022(\n" + "\rposition_hdop\030\002 \001(\002H\000R\014positionHdop\210\001\001\022" + "(\n\rposition_vdop\030\003 \001(\002H\001R\014positionVdop\210\001" + "\001\0226\n\025position_nmea_gga_fix\030\004 \001(\005H\002R\022posi" + "tionNmeaGgaFix\210\001\001\0227\n\025compass_degrees_err" + "or\030\005 \001(\002H\003R\023compassDegreesError\210\001\001\032;\n\rAc" + "curacyEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002" + " \001(\002R\005value:\0028\001B\020\n\016_position_hdopB\020\n\016_po" + "sition_vdopB\030\n\026_position_nmea_gga_fixB\030\n" + "\026_compass_degrees_error\"a\n\034GetLinearAcce" + "lerationRequest\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005e" + "xtra\030c \001(\0132\027.google.protobuf.StructR\005ext" + "ra\"i\n\035GetLinearAccelerationResponse\022H\n\023l" + "inear_acceleration\030\001 \001(\0132\027.viam.common.v" + "1.Vector3R\022linearAcceleration2\317\020\n\025Moveme" + "ntSensorService\022\322\001\n\021GetLinearVelocity\022:." + "viam.component.movementsensor.v1.GetLine" + "arVelocityRequest\032;.viam.component.movem" + "entsensor.v1.GetLinearVelocityResponse\"D" + "\202\323\344\223\002>\022\022.viam.component.moveme" + "ntsensor.v1.GetLinearAccelerationRequest" + "\032\?.viam.component.movementsensor.v1.GetL" + "inearAccelerationResponse\"H\202\323\344\223\002B\022@/viam" + "/api/v1/component/movementsensor/{name}/" + "linear_acceleration\022\221\001\n\tDoCommand\022 .viam" + ".common.v1.DoCommandRequest\032!.viam.commo" + "n.v1.DoCommandResponse\"\?\202\323\344\223\0029\"7/viam/ap" + "i/v1/component/movementsensor/{name}/do_" + "command\022\235\001\n\rGetGeometries\022$.viam.common." + "v1.GetGeometriesRequest\032%.viam.common.v1" + ".GetGeometriesResponse\"\?\202\323\344\223\0029\0227/viam/ap" + "i/v1/component/movementsensor/{name}/geo" + "metries\022\225\001\n\013GetReadings\022\".viam.common.v1" + ".GetReadingsRequest\032#.viam.common.v1.Get" + "ReadingsResponse\"=\202\323\344\223\0027\0225/viam/api/v1/c" + "omponent/movementsensor/{name}/readingsB" + "S\n$com.viam.component.movementsensor.v1Z" + "+go.viam.com/api/component/movementsenso" + "r/v1b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_deps[3] = { + &::descriptor_table_common_2fv1_2fcommon_2eproto, + &::descriptor_table_google_2fapi_2fannotations_2eproto, + &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, }; -static ::absl::once_flag descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_once; +static ::_pbi::once_flag descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto = { - false, - false, - 4717, - descriptor_table_protodef_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto, + false, false, 4532, 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, - file_level_metadata_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto, - file_level_enum_descriptors_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto, + &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, + file_level_metadata_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto, file_level_enum_descriptors_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto, file_level_service_descriptors_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_getter() { return &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto(&descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto(&descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto); namespace viam { namespace component { namespace movementsensor { namespace v1 { + // =================================================================== class GetLinearVelocityRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetLinearVelocityRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const GetLinearVelocityRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetLinearVelocityRequest* msg); }; -const ::google::protobuf::Struct& GetLinearVelocityRequest::_Internal::extra(const GetLinearVelocityRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetLinearVelocityRequest::_Internal::extra(const GetLinearVelocityRequest* msg) { + return *msg->extra_; } void GetLinearVelocityRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -GetLinearVelocityRequest::GetLinearVelocityRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetLinearVelocityRequest::GetLinearVelocityRequest(::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.movementsensor.v1.GetLinearVelocityRequest) } -inline PROTOBUF_NDEBUG_INLINE GetLinearVelocityRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -GetLinearVelocityRequest::GetLinearVelocityRequest( - ::google::protobuf::Arena* arena, - const GetLinearVelocityRequest& from) - : ::google::protobuf::Message(arena) { - GetLinearVelocityRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +GetLinearVelocityRequest::GetLinearVelocityRequest(const GetLinearVelocityRequest& 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.movementsensor.v1.GetLinearVelocityRequest) } -inline PROTOBUF_NDEBUG_INLINE GetLinearVelocityRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} -inline void GetLinearVelocityRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void GetLinearVelocityRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + GetLinearVelocityRequest::~GetLinearVelocityRequest() { // @@protoc_insertion_point(destructor:viam.component.movementsensor.v1.GetLinearVelocityRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetLinearVelocityRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; } -PROTOBUF_NOINLINE void GetLinearVelocityRequest::Clear() { +void GetLinearVelocityRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetLinearVelocityRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.movementsensor.v1.GetLinearVelocityRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetLinearVelocityRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetLinearVelocityRequest::_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.movementsensor.v1.GetLinearVelocityRequest.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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 2, 1, 70, 7> GetLinearVelocityRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetLinearVelocityRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetLinearVelocityRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetLinearVelocityRequest, _impl_.name_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(GetLinearVelocityRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 1, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(GetLinearVelocityRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(GetLinearVelocityRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\71\4\0\0\0\0\0\0" - "viam.component.movementsensor.v1.GetLinearVelocityRequest" - "name" - }}, -}; - -::uint8_t* GetLinearVelocityRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetLinearVelocityRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.movementsensor.v1.GetLinearVelocityRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.movementsensor.v1.GetLinearVelocityRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.movementsensor.v1.GetLinearVelocityRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.movementsensor.v1.GetLinearVelocityRequest) return target; } -::size_t GetLinearVelocityRequest::ByteSizeLong() const { +size_t GetLinearVelocityRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.movementsensor.v1.GetLinearVelocityRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetLinearVelocityRequest::_class_data_ = { - GetLinearVelocityRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetLinearVelocityRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetLinearVelocityRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetLinearVelocityRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetLinearVelocityRequest::GetClassData() const { return &_class_data_; } + +void GetLinearVelocityRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetLinearVelocityRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.movementsensor.v1.GetLinearVelocityRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetLinearVelocityRequest::MergeFrom(const GetLinearVelocityRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.movementsensor.v1.GetLinearVelocityRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetLinearVelocityRequest::CopyFrom(const GetLinearVelocityRequest& from) { @@ -1021,212 +802,196 @@ void GetLinearVelocityRequest::CopyFrom(const GetLinearVelocityRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetLinearVelocityRequest::IsInitialized() const { +bool GetLinearVelocityRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetLinearVelocityRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetLinearVelocityRequest::InternalSwap(GetLinearVelocityRequest* PROTOBUF_RESTRICT other) { +void GetLinearVelocityRequest::InternalSwap(GetLinearVelocityRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.extra_, other->_impl_.extra_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(extra_, other->extra_); } -::google::protobuf::Metadata GetLinearVelocityRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetLinearVelocityRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_getter, &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_once, file_level_metadata_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto[0]); } + // =================================================================== class GetLinearVelocityResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetLinearVelocityResponse, _impl_._has_bits_); static const ::viam::common::v1::Vector3& linear_velocity(const GetLinearVelocityResponse* msg); - static void set_has_linear_velocity(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::common::v1::Vector3& GetLinearVelocityResponse::_Internal::linear_velocity(const GetLinearVelocityResponse* msg) { - return *msg->_impl_.linear_velocity_; +const ::viam::common::v1::Vector3& +GetLinearVelocityResponse::_Internal::linear_velocity(const GetLinearVelocityResponse* msg) { + return *msg->linear_velocity_; } void GetLinearVelocityResponse::clear_linear_velocity() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.linear_velocity_ != nullptr) _impl_.linear_velocity_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && linear_velocity_ != nullptr) { + delete linear_velocity_; + } + linear_velocity_ = nullptr; } -GetLinearVelocityResponse::GetLinearVelocityResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetLinearVelocityResponse::GetLinearVelocityResponse(::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.movementsensor.v1.GetLinearVelocityResponse) } -inline PROTOBUF_NDEBUG_INLINE GetLinearVelocityResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -GetLinearVelocityResponse::GetLinearVelocityResponse( - ::google::protobuf::Arena* arena, - const GetLinearVelocityResponse& from) - : ::google::protobuf::Message(arena) { - GetLinearVelocityResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.linear_velocity_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::common::v1::Vector3>(arena, *from._impl_.linear_velocity_) - : nullptr; - +GetLinearVelocityResponse::GetLinearVelocityResponse(const GetLinearVelocityResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_linear_velocity()) { + linear_velocity_ = new ::viam::common::v1::Vector3(*from.linear_velocity_); + } else { + linear_velocity_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.component.movementsensor.v1.GetLinearVelocityResponse) } -inline PROTOBUF_NDEBUG_INLINE GetLinearVelocityResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void GetLinearVelocityResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.linear_velocity_ = {}; +inline void GetLinearVelocityResponse::SharedCtor() { +linear_velocity_ = nullptr; } + GetLinearVelocityResponse::~GetLinearVelocityResponse() { // @@protoc_insertion_point(destructor:viam.component.movementsensor.v1.GetLinearVelocityResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetLinearVelocityResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.linear_velocity_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete linear_velocity_; +} + +void GetLinearVelocityResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetLinearVelocityResponse::Clear() { +void GetLinearVelocityResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.movementsensor.v1.GetLinearVelocityResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.linear_velocity_ != nullptr); - _impl_.linear_velocity_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetLinearVelocityResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + if (GetArenaForAllocation() == nullptr && linear_velocity_ != nullptr) { + delete linear_velocity_; + } + linear_velocity_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetLinearVelocityResponse::_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.Vector3 linear_velocity = 1 [json_name = "linearVelocity"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_linear_velocity(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetLinearVelocityResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetLinearVelocityResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetLinearVelocityResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.common.v1.Vector3 linear_velocity = 1 [json_name = "linearVelocity"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetLinearVelocityResponse, _impl_.linear_velocity_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.common.v1.Vector3 linear_velocity = 1 [json_name = "linearVelocity"]; - {PROTOBUF_FIELD_OFFSET(GetLinearVelocityResponse, _impl_.linear_velocity_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::common::v1::Vector3>()}, - }}, {{ - }}, -}; - -::uint8_t* GetLinearVelocityResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetLinearVelocityResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.movementsensor.v1.GetLinearVelocityResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.common.v1.Vector3 linear_velocity = 1 [json_name = "linearVelocity"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::linear_velocity(this), + if (this->_internal_has_linear_velocity()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::linear_velocity(this), _Internal::linear_velocity(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.movementsensor.v1.GetLinearVelocityResponse) return target; } -::size_t GetLinearVelocityResponse::ByteSizeLong() const { +size_t GetLinearVelocityResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.movementsensor.v1.GetLinearVelocityResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .viam.common.v1.Vector3 linear_velocity = 1 [json_name = "linearVelocity"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.linear_velocity_); + if (this->_internal_has_linear_velocity()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *linear_velocity_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetLinearVelocityResponse::_class_data_ = { - GetLinearVelocityResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetLinearVelocityResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetLinearVelocityResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetLinearVelocityResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetLinearVelocityResponse::GetClassData() const { return &_class_data_; } + +void GetLinearVelocityResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetLinearVelocityResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.movementsensor.v1.GetLinearVelocityResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetLinearVelocityResponse::MergeFrom(const GetLinearVelocityResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.movementsensor.v1.GetLinearVelocityResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_linear_velocity()->::viam::common::v1::Vector3::MergeFrom( - from._internal_linear_velocity()); + if (from._internal_has_linear_velocity()) { + _internal_mutable_linear_velocity()->::viam::common::v1::Vector3::MergeFrom(from._internal_linear_velocity()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetLinearVelocityResponse::CopyFrom(const GetLinearVelocityResponse& from) { @@ -1236,243 +1001,234 @@ void GetLinearVelocityResponse::CopyFrom(const GetLinearVelocityResponse& from) MergeFrom(from); } -PROTOBUF_NOINLINE bool GetLinearVelocityResponse::IsInitialized() const { +bool GetLinearVelocityResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetLinearVelocityResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetLinearVelocityResponse::InternalSwap(GetLinearVelocityResponse* PROTOBUF_RESTRICT other) { +void GetLinearVelocityResponse::InternalSwap(GetLinearVelocityResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.linear_velocity_, other->_impl_.linear_velocity_); + swap(linear_velocity_, other->linear_velocity_); } -::google::protobuf::Metadata GetLinearVelocityResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetLinearVelocityResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_getter, &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_once, file_level_metadata_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto[1]); } + // =================================================================== class GetAngularVelocityRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetAngularVelocityRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const GetAngularVelocityRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetAngularVelocityRequest* msg); }; -const ::google::protobuf::Struct& GetAngularVelocityRequest::_Internal::extra(const GetAngularVelocityRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetAngularVelocityRequest::_Internal::extra(const GetAngularVelocityRequest* msg) { + return *msg->extra_; } void GetAngularVelocityRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -GetAngularVelocityRequest::GetAngularVelocityRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetAngularVelocityRequest::GetAngularVelocityRequest(::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.movementsensor.v1.GetAngularVelocityRequest) } -inline PROTOBUF_NDEBUG_INLINE GetAngularVelocityRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -GetAngularVelocityRequest::GetAngularVelocityRequest( - ::google::protobuf::Arena* arena, - const GetAngularVelocityRequest& from) - : ::google::protobuf::Message(arena) { - GetAngularVelocityRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +GetAngularVelocityRequest::GetAngularVelocityRequest(const GetAngularVelocityRequest& 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.movementsensor.v1.GetAngularVelocityRequest) } -inline PROTOBUF_NDEBUG_INLINE GetAngularVelocityRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} -inline void GetAngularVelocityRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void GetAngularVelocityRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + GetAngularVelocityRequest::~GetAngularVelocityRequest() { // @@protoc_insertion_point(destructor:viam.component.movementsensor.v1.GetAngularVelocityRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetAngularVelocityRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void GetAngularVelocityRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetAngularVelocityRequest::Clear() { +void GetAngularVelocityRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.movementsensor.v1.GetAngularVelocityRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetAngularVelocityRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetAngularVelocityRequest::_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.movementsensor.v1.GetAngularVelocityRequest.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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 2, 1, 71, 7> GetAngularVelocityRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetAngularVelocityRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetAngularVelocityRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetAngularVelocityRequest, _impl_.name_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(GetAngularVelocityRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 1, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(GetAngularVelocityRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(GetAngularVelocityRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\72\4\0\0\0\0\0\0" - "viam.component.movementsensor.v1.GetAngularVelocityRequest" - "name" - }}, -}; - -::uint8_t* GetAngularVelocityRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetAngularVelocityRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.movementsensor.v1.GetAngularVelocityRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.movementsensor.v1.GetAngularVelocityRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.movementsensor.v1.GetAngularVelocityRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.movementsensor.v1.GetAngularVelocityRequest) return target; } -::size_t GetAngularVelocityRequest::ByteSizeLong() const { +size_t GetAngularVelocityRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.movementsensor.v1.GetAngularVelocityRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetAngularVelocityRequest::_class_data_ = { - GetAngularVelocityRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetAngularVelocityRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetAngularVelocityRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetAngularVelocityRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetAngularVelocityRequest::GetClassData() const { return &_class_data_; } + +void GetAngularVelocityRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetAngularVelocityRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.movementsensor.v1.GetAngularVelocityRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetAngularVelocityRequest::MergeFrom(const GetAngularVelocityRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.movementsensor.v1.GetAngularVelocityRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetAngularVelocityRequest::CopyFrom(const GetAngularVelocityRequest& from) { @@ -1482,212 +1238,196 @@ void GetAngularVelocityRequest::CopyFrom(const GetAngularVelocityRequest& from) MergeFrom(from); } -PROTOBUF_NOINLINE bool GetAngularVelocityRequest::IsInitialized() const { +bool GetAngularVelocityRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetAngularVelocityRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetAngularVelocityRequest::InternalSwap(GetAngularVelocityRequest* PROTOBUF_RESTRICT other) { +void GetAngularVelocityRequest::InternalSwap(GetAngularVelocityRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.extra_, other->_impl_.extra_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(extra_, other->extra_); } -::google::protobuf::Metadata GetAngularVelocityRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetAngularVelocityRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_getter, &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_once, file_level_metadata_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto[2]); } + // =================================================================== class GetAngularVelocityResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetAngularVelocityResponse, _impl_._has_bits_); static const ::viam::common::v1::Vector3& angular_velocity(const GetAngularVelocityResponse* msg); - static void set_has_angular_velocity(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::common::v1::Vector3& GetAngularVelocityResponse::_Internal::angular_velocity(const GetAngularVelocityResponse* msg) { - return *msg->_impl_.angular_velocity_; +const ::viam::common::v1::Vector3& +GetAngularVelocityResponse::_Internal::angular_velocity(const GetAngularVelocityResponse* msg) { + return *msg->angular_velocity_; } void GetAngularVelocityResponse::clear_angular_velocity() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.angular_velocity_ != nullptr) _impl_.angular_velocity_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && angular_velocity_ != nullptr) { + delete angular_velocity_; + } + angular_velocity_ = nullptr; } -GetAngularVelocityResponse::GetAngularVelocityResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetAngularVelocityResponse::GetAngularVelocityResponse(::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.movementsensor.v1.GetAngularVelocityResponse) } -inline PROTOBUF_NDEBUG_INLINE GetAngularVelocityResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -GetAngularVelocityResponse::GetAngularVelocityResponse( - ::google::protobuf::Arena* arena, - const GetAngularVelocityResponse& from) - : ::google::protobuf::Message(arena) { - GetAngularVelocityResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.angular_velocity_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::common::v1::Vector3>(arena, *from._impl_.angular_velocity_) - : nullptr; - +GetAngularVelocityResponse::GetAngularVelocityResponse(const GetAngularVelocityResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_angular_velocity()) { + angular_velocity_ = new ::viam::common::v1::Vector3(*from.angular_velocity_); + } else { + angular_velocity_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.component.movementsensor.v1.GetAngularVelocityResponse) } -inline PROTOBUF_NDEBUG_INLINE GetAngularVelocityResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void GetAngularVelocityResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.angular_velocity_ = {}; +inline void GetAngularVelocityResponse::SharedCtor() { +angular_velocity_ = nullptr; } + GetAngularVelocityResponse::~GetAngularVelocityResponse() { // @@protoc_insertion_point(destructor:viam.component.movementsensor.v1.GetAngularVelocityResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetAngularVelocityResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.angular_velocity_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete angular_velocity_; } -PROTOBUF_NOINLINE void GetAngularVelocityResponse::Clear() { +void GetAngularVelocityResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetAngularVelocityResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.movementsensor.v1.GetAngularVelocityResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.angular_velocity_ != nullptr); - _impl_.angular_velocity_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetAngularVelocityResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + if (GetArenaForAllocation() == nullptr && angular_velocity_ != nullptr) { + delete angular_velocity_; + } + angular_velocity_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetAngularVelocityResponse::_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.Vector3 angular_velocity = 1 [json_name = "angularVelocity"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_angular_velocity(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetAngularVelocityResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetAngularVelocityResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetAngularVelocityResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.common.v1.Vector3 angular_velocity = 1 [json_name = "angularVelocity"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetAngularVelocityResponse, _impl_.angular_velocity_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.common.v1.Vector3 angular_velocity = 1 [json_name = "angularVelocity"]; - {PROTOBUF_FIELD_OFFSET(GetAngularVelocityResponse, _impl_.angular_velocity_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::common::v1::Vector3>()}, - }}, {{ - }}, -}; - -::uint8_t* GetAngularVelocityResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetAngularVelocityResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.movementsensor.v1.GetAngularVelocityResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.common.v1.Vector3 angular_velocity = 1 [json_name = "angularVelocity"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::angular_velocity(this), + if (this->_internal_has_angular_velocity()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::angular_velocity(this), _Internal::angular_velocity(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.movementsensor.v1.GetAngularVelocityResponse) return target; } -::size_t GetAngularVelocityResponse::ByteSizeLong() const { +size_t GetAngularVelocityResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.movementsensor.v1.GetAngularVelocityResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .viam.common.v1.Vector3 angular_velocity = 1 [json_name = "angularVelocity"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.angular_velocity_); + if (this->_internal_has_angular_velocity()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *angular_velocity_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetAngularVelocityResponse::_class_data_ = { - GetAngularVelocityResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetAngularVelocityResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetAngularVelocityResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetAngularVelocityResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetAngularVelocityResponse::GetClassData() const { return &_class_data_; } + +void GetAngularVelocityResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetAngularVelocityResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.movementsensor.v1.GetAngularVelocityResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetAngularVelocityResponse::MergeFrom(const GetAngularVelocityResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.movementsensor.v1.GetAngularVelocityResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_angular_velocity()->::viam::common::v1::Vector3::MergeFrom( - from._internal_angular_velocity()); + if (from._internal_has_angular_velocity()) { + _internal_mutable_angular_velocity()->::viam::common::v1::Vector3::MergeFrom(from._internal_angular_velocity()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetAngularVelocityResponse::CopyFrom(const GetAngularVelocityResponse& from) { @@ -1697,243 +1437,234 @@ void GetAngularVelocityResponse::CopyFrom(const GetAngularVelocityResponse& from MergeFrom(from); } -PROTOBUF_NOINLINE bool GetAngularVelocityResponse::IsInitialized() const { +bool GetAngularVelocityResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetAngularVelocityResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetAngularVelocityResponse::InternalSwap(GetAngularVelocityResponse* PROTOBUF_RESTRICT other) { +void GetAngularVelocityResponse::InternalSwap(GetAngularVelocityResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.angular_velocity_, other->_impl_.angular_velocity_); + swap(angular_velocity_, other->angular_velocity_); } -::google::protobuf::Metadata GetAngularVelocityResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetAngularVelocityResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_getter, &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_once, file_level_metadata_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto[3]); } + // =================================================================== class GetCompassHeadingRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetCompassHeadingRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const GetCompassHeadingRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetCompassHeadingRequest* msg); }; -const ::google::protobuf::Struct& GetCompassHeadingRequest::_Internal::extra(const GetCompassHeadingRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetCompassHeadingRequest::_Internal::extra(const GetCompassHeadingRequest* msg) { + return *msg->extra_; } void GetCompassHeadingRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -GetCompassHeadingRequest::GetCompassHeadingRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetCompassHeadingRequest::GetCompassHeadingRequest(::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.movementsensor.v1.GetCompassHeadingRequest) } -inline PROTOBUF_NDEBUG_INLINE GetCompassHeadingRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -GetCompassHeadingRequest::GetCompassHeadingRequest( - ::google::protobuf::Arena* arena, - const GetCompassHeadingRequest& from) - : ::google::protobuf::Message(arena) { - GetCompassHeadingRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +GetCompassHeadingRequest::GetCompassHeadingRequest(const GetCompassHeadingRequest& 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.movementsensor.v1.GetCompassHeadingRequest) } -inline PROTOBUF_NDEBUG_INLINE GetCompassHeadingRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} -inline void GetCompassHeadingRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void GetCompassHeadingRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + GetCompassHeadingRequest::~GetCompassHeadingRequest() { // @@protoc_insertion_point(destructor:viam.component.movementsensor.v1.GetCompassHeadingRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetCompassHeadingRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void GetCompassHeadingRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetCompassHeadingRequest::Clear() { +void GetCompassHeadingRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.movementsensor.v1.GetCompassHeadingRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetCompassHeadingRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetCompassHeadingRequest::_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.movementsensor.v1.GetCompassHeadingRequest.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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 2, 1, 70, 7> GetCompassHeadingRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetCompassHeadingRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetCompassHeadingRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetCompassHeadingRequest, _impl_.name_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(GetCompassHeadingRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 1, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(GetCompassHeadingRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(GetCompassHeadingRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\71\4\0\0\0\0\0\0" - "viam.component.movementsensor.v1.GetCompassHeadingRequest" - "name" - }}, -}; - -::uint8_t* GetCompassHeadingRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetCompassHeadingRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.movementsensor.v1.GetCompassHeadingRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.movementsensor.v1.GetCompassHeadingRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.movementsensor.v1.GetCompassHeadingRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.movementsensor.v1.GetCompassHeadingRequest) return target; } -::size_t GetCompassHeadingRequest::ByteSizeLong() const { +size_t GetCompassHeadingRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.movementsensor.v1.GetCompassHeadingRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetCompassHeadingRequest::_class_data_ = { - GetCompassHeadingRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetCompassHeadingRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetCompassHeadingRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetCompassHeadingRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetCompassHeadingRequest::GetClassData() const { return &_class_data_; } + +void GetCompassHeadingRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetCompassHeadingRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.movementsensor.v1.GetCompassHeadingRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetCompassHeadingRequest::MergeFrom(const GetCompassHeadingRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.movementsensor.v1.GetCompassHeadingRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetCompassHeadingRequest::CopyFrom(const GetCompassHeadingRequest& from) { @@ -1943,185 +1674,186 @@ void GetCompassHeadingRequest::CopyFrom(const GetCompassHeadingRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetCompassHeadingRequest::IsInitialized() const { +bool GetCompassHeadingRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetCompassHeadingRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetCompassHeadingRequest::InternalSwap(GetCompassHeadingRequest* PROTOBUF_RESTRICT other) { +void GetCompassHeadingRequest::InternalSwap(GetCompassHeadingRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.extra_, other->_impl_.extra_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(extra_, other->extra_); } -::google::protobuf::Metadata GetCompassHeadingRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetCompassHeadingRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_getter, &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_once, file_level_metadata_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto[4]); } + // =================================================================== class GetCompassHeadingResponse::_Internal { public: }; -GetCompassHeadingResponse::GetCompassHeadingResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetCompassHeadingResponse::GetCompassHeadingResponse(::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.movementsensor.v1.GetCompassHeadingResponse) } -GetCompassHeadingResponse::GetCompassHeadingResponse( - ::google::protobuf::Arena* arena, const GetCompassHeadingResponse& from) - : GetCompassHeadingResponse(arena) { - MergeFrom(from); +GetCompassHeadingResponse::GetCompassHeadingResponse(const GetCompassHeadingResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + value_ = from.value_; + // @@protoc_insertion_point(copy_constructor:viam.component.movementsensor.v1.GetCompassHeadingResponse) } -inline PROTOBUF_NDEBUG_INLINE GetCompassHeadingResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void GetCompassHeadingResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.value_ = {}; +inline void GetCompassHeadingResponse::SharedCtor() { +value_ = 0; } + GetCompassHeadingResponse::~GetCompassHeadingResponse() { // @@protoc_insertion_point(destructor:viam.component.movementsensor.v1.GetCompassHeadingResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetCompassHeadingResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void GetCompassHeadingResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetCompassHeadingResponse::Clear() { +void GetCompassHeadingResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.movementsensor.v1.GetCompassHeadingResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.value_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetCompassHeadingResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + value_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetCompassHeadingResponse::_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) { + // double value = 1 [json_name = "value"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 9)) { + value_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> GetCompassHeadingResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetCompassHeadingResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // double value = 1 [json_name = "value"]; - {::_pbi::TcParser::FastF64S1, - {9, 63, 0, PROTOBUF_FIELD_OFFSET(GetCompassHeadingResponse, _impl_.value_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // double value = 1 [json_name = "value"]; - {PROTOBUF_FIELD_OFFSET(GetCompassHeadingResponse, _impl_.value_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* GetCompassHeadingResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetCompassHeadingResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.movementsensor.v1.GetCompassHeadingResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // double value = 1 [json_name = "value"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_value = this->_internal_value(); - ::uint64_t raw_value; + uint64_t raw_value; memcpy(&raw_value, &tmp_value, sizeof(tmp_value)); if (raw_value != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 1, this->_internal_value(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(1, this->_internal_value(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.movementsensor.v1.GetCompassHeadingResponse) return target; } -::size_t GetCompassHeadingResponse::ByteSizeLong() const { +size_t GetCompassHeadingResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.movementsensor.v1.GetCompassHeadingResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // double value = 1 [json_name = "value"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_value = this->_internal_value(); - ::uint64_t raw_value; + uint64_t raw_value; memcpy(&raw_value, &tmp_value, sizeof(tmp_value)); if (raw_value != 0) { - total_size += 9; + total_size += 1 + 8; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetCompassHeadingResponse::_class_data_ = { - GetCompassHeadingResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetCompassHeadingResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetCompassHeadingResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetCompassHeadingResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetCompassHeadingResponse::GetClassData() const { return &_class_data_; } + +void GetCompassHeadingResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetCompassHeadingResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.movementsensor.v1.GetCompassHeadingResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetCompassHeadingResponse::MergeFrom(const GetCompassHeadingResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.movementsensor.v1.GetCompassHeadingResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_value = from._internal_value(); - ::uint64_t raw_value; + uint64_t raw_value; memcpy(&raw_value, &tmp_value, sizeof(tmp_value)); if (raw_value != 0) { - _this->_internal_set_value(from._internal_value()); + _internal_set_value(from._internal_value()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetCompassHeadingResponse::CopyFrom(const GetCompassHeadingResponse& from) { @@ -2131,242 +1863,234 @@ void GetCompassHeadingResponse::CopyFrom(const GetCompassHeadingResponse& from) MergeFrom(from); } -PROTOBUF_NOINLINE bool GetCompassHeadingResponse::IsInitialized() const { +bool GetCompassHeadingResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetCompassHeadingResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetCompassHeadingResponse::InternalSwap(GetCompassHeadingResponse* PROTOBUF_RESTRICT other) { +void GetCompassHeadingResponse::InternalSwap(GetCompassHeadingResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.value_, other->_impl_.value_); + swap(value_, other->value_); } -::google::protobuf::Metadata GetCompassHeadingResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetCompassHeadingResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_getter, &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_once, file_level_metadata_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto[5]); } + // =================================================================== class GetOrientationRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetOrientationRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const GetOrientationRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetOrientationRequest* msg); }; -const ::google::protobuf::Struct& GetOrientationRequest::_Internal::extra(const GetOrientationRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetOrientationRequest::_Internal::extra(const GetOrientationRequest* msg) { + return *msg->extra_; } void GetOrientationRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -GetOrientationRequest::GetOrientationRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetOrientationRequest::GetOrientationRequest(::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.movementsensor.v1.GetOrientationRequest) } -inline PROTOBUF_NDEBUG_INLINE GetOrientationRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -GetOrientationRequest::GetOrientationRequest( - ::google::protobuf::Arena* arena, - const GetOrientationRequest& from) - : ::google::protobuf::Message(arena) { - GetOrientationRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +GetOrientationRequest::GetOrientationRequest(const GetOrientationRequest& 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.movementsensor.v1.GetOrientationRequest) } -inline PROTOBUF_NDEBUG_INLINE GetOrientationRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} -inline void GetOrientationRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void GetOrientationRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + GetOrientationRequest::~GetOrientationRequest() { // @@protoc_insertion_point(destructor:viam.component.movementsensor.v1.GetOrientationRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetOrientationRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; } -PROTOBUF_NOINLINE void GetOrientationRequest::Clear() { +void GetOrientationRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetOrientationRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.movementsensor.v1.GetOrientationRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetOrientationRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetOrientationRequest::_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.movementsensor.v1.GetOrientationRequest.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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 2, 1, 67, 7> GetOrientationRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetOrientationRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetOrientationRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetOrientationRequest, _impl_.name_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(GetOrientationRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 1, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(GetOrientationRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(GetOrientationRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\66\4\0\0\0\0\0\0" - "viam.component.movementsensor.v1.GetOrientationRequest" - "name" - }}, -}; - -::uint8_t* GetOrientationRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetOrientationRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.movementsensor.v1.GetOrientationRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.movementsensor.v1.GetOrientationRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.movementsensor.v1.GetOrientationRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.movementsensor.v1.GetOrientationRequest) return target; } -::size_t GetOrientationRequest::ByteSizeLong() const { +size_t GetOrientationRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.movementsensor.v1.GetOrientationRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetOrientationRequest::_class_data_ = { - GetOrientationRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetOrientationRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetOrientationRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetOrientationRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetOrientationRequest::GetClassData() const { return &_class_data_; } + +void GetOrientationRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetOrientationRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.movementsensor.v1.GetOrientationRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetOrientationRequest::MergeFrom(const GetOrientationRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.movementsensor.v1.GetOrientationRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetOrientationRequest::CopyFrom(const GetOrientationRequest& from) { @@ -2376,212 +2100,196 @@ void GetOrientationRequest::CopyFrom(const GetOrientationRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetOrientationRequest::IsInitialized() const { +bool GetOrientationRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetOrientationRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetOrientationRequest::InternalSwap(GetOrientationRequest* PROTOBUF_RESTRICT other) { +void GetOrientationRequest::InternalSwap(GetOrientationRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.extra_, other->_impl_.extra_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(extra_, other->extra_); } -::google::protobuf::Metadata GetOrientationRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetOrientationRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_getter, &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_once, file_level_metadata_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto[6]); } + // =================================================================== class GetOrientationResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetOrientationResponse, _impl_._has_bits_); static const ::viam::common::v1::Orientation& orientation(const GetOrientationResponse* msg); - static void set_has_orientation(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::common::v1::Orientation& GetOrientationResponse::_Internal::orientation(const GetOrientationResponse* msg) { - return *msg->_impl_.orientation_; +const ::viam::common::v1::Orientation& +GetOrientationResponse::_Internal::orientation(const GetOrientationResponse* msg) { + return *msg->orientation_; } void GetOrientationResponse::clear_orientation() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.orientation_ != nullptr) _impl_.orientation_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && orientation_ != nullptr) { + delete orientation_; + } + orientation_ = nullptr; } -GetOrientationResponse::GetOrientationResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetOrientationResponse::GetOrientationResponse(::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.movementsensor.v1.GetOrientationResponse) } -inline PROTOBUF_NDEBUG_INLINE GetOrientationResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -GetOrientationResponse::GetOrientationResponse( - ::google::protobuf::Arena* arena, - const GetOrientationResponse& from) - : ::google::protobuf::Message(arena) { - GetOrientationResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.orientation_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::common::v1::Orientation>(arena, *from._impl_.orientation_) - : nullptr; - +GetOrientationResponse::GetOrientationResponse(const GetOrientationResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_orientation()) { + orientation_ = new ::viam::common::v1::Orientation(*from.orientation_); + } else { + orientation_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.component.movementsensor.v1.GetOrientationResponse) } -inline PROTOBUF_NDEBUG_INLINE GetOrientationResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void GetOrientationResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.orientation_ = {}; +inline void GetOrientationResponse::SharedCtor() { +orientation_ = nullptr; } + GetOrientationResponse::~GetOrientationResponse() { // @@protoc_insertion_point(destructor:viam.component.movementsensor.v1.GetOrientationResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetOrientationResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.orientation_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete orientation_; +} + +void GetOrientationResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetOrientationResponse::Clear() { +void GetOrientationResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.movementsensor.v1.GetOrientationResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.orientation_ != nullptr); - _impl_.orientation_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetOrientationResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + if (GetArenaForAllocation() == nullptr && orientation_ != nullptr) { + delete orientation_; + } + orientation_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetOrientationResponse::_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.Orientation orientation = 1 [json_name = "orientation"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_orientation(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetOrientationResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetOrientationResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetOrientationResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.common.v1.Orientation orientation = 1 [json_name = "orientation"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetOrientationResponse, _impl_.orientation_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.common.v1.Orientation orientation = 1 [json_name = "orientation"]; - {PROTOBUF_FIELD_OFFSET(GetOrientationResponse, _impl_.orientation_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::common::v1::Orientation>()}, - }}, {{ - }}, -}; - -::uint8_t* GetOrientationResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetOrientationResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.movementsensor.v1.GetOrientationResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.common.v1.Orientation orientation = 1 [json_name = "orientation"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::orientation(this), + if (this->_internal_has_orientation()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::orientation(this), _Internal::orientation(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.movementsensor.v1.GetOrientationResponse) return target; } -::size_t GetOrientationResponse::ByteSizeLong() const { +size_t GetOrientationResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.movementsensor.v1.GetOrientationResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .viam.common.v1.Orientation orientation = 1 [json_name = "orientation"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.orientation_); + if (this->_internal_has_orientation()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *orientation_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetOrientationResponse::_class_data_ = { - GetOrientationResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetOrientationResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetOrientationResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetOrientationResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetOrientationResponse::GetClassData() const { return &_class_data_; } + +void GetOrientationResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetOrientationResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.movementsensor.v1.GetOrientationResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetOrientationResponse::MergeFrom(const GetOrientationResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.movementsensor.v1.GetOrientationResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_orientation()->::viam::common::v1::Orientation::MergeFrom( - from._internal_orientation()); + if (from._internal_has_orientation()) { + _internal_mutable_orientation()->::viam::common::v1::Orientation::MergeFrom(from._internal_orientation()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetOrientationResponse::CopyFrom(const GetOrientationResponse& from) { @@ -2591,243 +2299,234 @@ void GetOrientationResponse::CopyFrom(const GetOrientationResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetOrientationResponse::IsInitialized() const { +bool GetOrientationResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetOrientationResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetOrientationResponse::InternalSwap(GetOrientationResponse* PROTOBUF_RESTRICT other) { +void GetOrientationResponse::InternalSwap(GetOrientationResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.orientation_, other->_impl_.orientation_); + swap(orientation_, other->orientation_); } -::google::protobuf::Metadata GetOrientationResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetOrientationResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_getter, &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_once, file_level_metadata_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto[7]); } + // =================================================================== class GetPositionRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetPositionRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const GetPositionRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetPositionRequest* msg); }; -const ::google::protobuf::Struct& GetPositionRequest::_Internal::extra(const GetPositionRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetPositionRequest::_Internal::extra(const GetPositionRequest* msg) { + return *msg->extra_; } void GetPositionRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -GetPositionRequest::GetPositionRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetPositionRequest::GetPositionRequest(::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.movementsensor.v1.GetPositionRequest) } -inline PROTOBUF_NDEBUG_INLINE GetPositionRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -GetPositionRequest::GetPositionRequest( - ::google::protobuf::Arena* arena, - const GetPositionRequest& from) - : ::google::protobuf::Message(arena) { - GetPositionRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +GetPositionRequest::GetPositionRequest(const GetPositionRequest& 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.movementsensor.v1.GetPositionRequest) } -inline PROTOBUF_NDEBUG_INLINE GetPositionRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} -inline void GetPositionRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void GetPositionRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + GetPositionRequest::~GetPositionRequest() { // @@protoc_insertion_point(destructor:viam.component.movementsensor.v1.GetPositionRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetPositionRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void GetPositionRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetPositionRequest::Clear() { +void GetPositionRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.movementsensor.v1.GetPositionRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetPositionRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPositionRequest::_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.movementsensor.v1.GetPositionRequest.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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 2, 1, 64, 7> GetPositionRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetPositionRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetPositionRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetPositionRequest, _impl_.name_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(GetPositionRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 1, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(GetPositionRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(GetPositionRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\63\4\0\0\0\0\0\0" - "viam.component.movementsensor.v1.GetPositionRequest" - "name" - }}, -}; - -::uint8_t* GetPositionRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetPositionRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.movementsensor.v1.GetPositionRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.movementsensor.v1.GetPositionRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.movementsensor.v1.GetPositionRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.movementsensor.v1.GetPositionRequest) return target; } -::size_t GetPositionRequest::ByteSizeLong() const { +size_t GetPositionRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.movementsensor.v1.GetPositionRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetPositionRequest::_class_data_ = { - GetPositionRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPositionRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetPositionRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetPositionRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPositionRequest::GetClassData() const { return &_class_data_; } + +void GetPositionRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetPositionRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.movementsensor.v1.GetPositionRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetPositionRequest::MergeFrom(const GetPositionRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.movementsensor.v1.GetPositionRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetPositionRequest::CopyFrom(const GetPositionRequest& from) { @@ -2837,255 +2536,235 @@ void GetPositionRequest::CopyFrom(const GetPositionRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetPositionRequest::IsInitialized() const { +bool GetPositionRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetPositionRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetPositionRequest::InternalSwap(GetPositionRequest* PROTOBUF_RESTRICT other) { +void GetPositionRequest::InternalSwap(GetPositionRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.extra_, other->_impl_.extra_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(extra_, other->extra_); } -::google::protobuf::Metadata GetPositionRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetPositionRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_getter, &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_once, file_level_metadata_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto[8]); } + // =================================================================== class GetPositionResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetPositionResponse, _impl_._has_bits_); static const ::viam::common::v1::GeoPoint& coordinate(const GetPositionResponse* msg); - static void set_has_coordinate(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::common::v1::GeoPoint& GetPositionResponse::_Internal::coordinate(const GetPositionResponse* msg) { - return *msg->_impl_.coordinate_; +const ::viam::common::v1::GeoPoint& +GetPositionResponse::_Internal::coordinate(const GetPositionResponse* msg) { + return *msg->coordinate_; } void GetPositionResponse::clear_coordinate() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.coordinate_ != nullptr) _impl_.coordinate_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && coordinate_ != nullptr) { + delete coordinate_; + } + coordinate_ = nullptr; } -GetPositionResponse::GetPositionResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetPositionResponse::GetPositionResponse(::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.movementsensor.v1.GetPositionResponse) } -inline PROTOBUF_NDEBUG_INLINE GetPositionResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -GetPositionResponse::GetPositionResponse( - ::google::protobuf::Arena* arena, - const GetPositionResponse& from) - : ::google::protobuf::Message(arena) { - GetPositionResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.coordinate_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::common::v1::GeoPoint>(arena, *from._impl_.coordinate_) - : nullptr; - _impl_.altitude_m_ = from._impl_.altitude_m_; - +GetPositionResponse::GetPositionResponse(const GetPositionResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_coordinate()) { + coordinate_ = new ::viam::common::v1::GeoPoint(*from.coordinate_); + } else { + coordinate_ = nullptr; + } + altitude_m_ = from.altitude_m_; // @@protoc_insertion_point(copy_constructor:viam.component.movementsensor.v1.GetPositionResponse) } -inline PROTOBUF_NDEBUG_INLINE GetPositionResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void GetPositionResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, coordinate_), - 0, - offsetof(Impl_, altitude_m_) - - offsetof(Impl_, coordinate_) + - sizeof(Impl_::altitude_m_)); +inline void GetPositionResponse::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&coordinate_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&altitude_m_) - + reinterpret_cast(&coordinate_)) + sizeof(altitude_m_)); } + GetPositionResponse::~GetPositionResponse() { // @@protoc_insertion_point(destructor:viam.component.movementsensor.v1.GetPositionResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetPositionResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.coordinate_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete coordinate_; } -PROTOBUF_NOINLINE void GetPositionResponse::Clear() { +void GetPositionResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetPositionResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.movementsensor.v1.GetPositionResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.coordinate_ != nullptr); - _impl_.coordinate_->Clear(); - } - _impl_.altitude_m_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetPositionResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + if (GetArenaForAllocation() == nullptr && coordinate_ != nullptr) { + delete coordinate_; + } + coordinate_ = nullptr; + altitude_m_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPositionResponse::_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.GeoPoint coordinate = 1 [json_name = "coordinate"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_coordinate(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // float altitude_m = 2 [json_name = "altitudeM"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 21)) { + altitude_m_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(float); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 0, 2> GetPositionResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetPositionResponse, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetPositionResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // float altitude_m = 2 [json_name = "altitudeM"]; - {::_pbi::TcParser::FastF32S1, - {21, 63, 0, PROTOBUF_FIELD_OFFSET(GetPositionResponse, _impl_.altitude_m_)}}, - // .viam.common.v1.GeoPoint coordinate = 1 [json_name = "coordinate"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetPositionResponse, _impl_.coordinate_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.common.v1.GeoPoint coordinate = 1 [json_name = "coordinate"]; - {PROTOBUF_FIELD_OFFSET(GetPositionResponse, _impl_.coordinate_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // float altitude_m = 2 [json_name = "altitudeM"]; - {PROTOBUF_FIELD_OFFSET(GetPositionResponse, _impl_.altitude_m_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::common::v1::GeoPoint>()}, - }}, {{ - }}, -}; - -::uint8_t* GetPositionResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetPositionResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.movementsensor.v1.GetPositionResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.common.v1.GeoPoint coordinate = 1 [json_name = "coordinate"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::coordinate(this), + if (this->_internal_has_coordinate()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::coordinate(this), _Internal::coordinate(this).GetCachedSize(), target, stream); } // float altitude_m = 2 [json_name = "altitudeM"]; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); + static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); float tmp_altitude_m = this->_internal_altitude_m(); - ::uint32_t raw_altitude_m; + uint32_t raw_altitude_m; memcpy(&raw_altitude_m, &tmp_altitude_m, sizeof(tmp_altitude_m)); if (raw_altitude_m != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 2, this->_internal_altitude_m(), target); + target = ::_pbi::WireFormatLite::WriteFloatToArray(2, this->_internal_altitude_m(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.movementsensor.v1.GetPositionResponse) return target; } -::size_t GetPositionResponse::ByteSizeLong() const { +size_t GetPositionResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.movementsensor.v1.GetPositionResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .viam.common.v1.GeoPoint coordinate = 1 [json_name = "coordinate"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.coordinate_); + if (this->_internal_has_coordinate()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *coordinate_); } // float altitude_m = 2 [json_name = "altitudeM"]; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); + static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); float tmp_altitude_m = this->_internal_altitude_m(); - ::uint32_t raw_altitude_m; + uint32_t raw_altitude_m; memcpy(&raw_altitude_m, &tmp_altitude_m, sizeof(tmp_altitude_m)); if (raw_altitude_m != 0) { - total_size += 5; + total_size += 1 + 4; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetPositionResponse::_class_data_ = { - GetPositionResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPositionResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetPositionResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetPositionResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPositionResponse::GetClassData() const { return &_class_data_; } + +void GetPositionResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetPositionResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.movementsensor.v1.GetPositionResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetPositionResponse::MergeFrom(const GetPositionResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.movementsensor.v1.GetPositionResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_coordinate()->::viam::common::v1::GeoPoint::MergeFrom( - from._internal_coordinate()); + if (from._internal_has_coordinate()) { + _internal_mutable_coordinate()->::viam::common::v1::GeoPoint::MergeFrom(from._internal_coordinate()); } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); + static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); float tmp_altitude_m = from._internal_altitude_m(); - ::uint32_t raw_altitude_m; + uint32_t raw_altitude_m; memcpy(&raw_altitude_m, &tmp_altitude_m, sizeof(tmp_altitude_m)); if (raw_altitude_m != 0) { - _this->_internal_set_altitude_m(from._internal_altitude_m()); + _internal_set_altitude_m(from._internal_altitude_m()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetPositionResponse::CopyFrom(const GetPositionResponse& from) { @@ -3095,248 +2774,239 @@ void GetPositionResponse::CopyFrom(const GetPositionResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetPositionResponse::IsInitialized() const { +bool GetPositionResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetPositionResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetPositionResponse::InternalSwap(GetPositionResponse* PROTOBUF_RESTRICT other) { +void GetPositionResponse::InternalSwap(GetPositionResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(GetPositionResponse, _impl_.altitude_m_) - + sizeof(GetPositionResponse::_impl_.altitude_m_) - - PROTOBUF_FIELD_OFFSET(GetPositionResponse, _impl_.coordinate_)>( - reinterpret_cast(&_impl_.coordinate_), - reinterpret_cast(&other->_impl_.coordinate_)); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GetPositionResponse, altitude_m_) + + sizeof(GetPositionResponse::altitude_m_) + - PROTOBUF_FIELD_OFFSET(GetPositionResponse, coordinate_)>( + reinterpret_cast(&coordinate_), + reinterpret_cast(&other->coordinate_)); } -::google::protobuf::Metadata GetPositionResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetPositionResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_getter, &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_once, file_level_metadata_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto[9]); } + // =================================================================== class GetPropertiesRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetPropertiesRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const GetPropertiesRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetPropertiesRequest* msg); }; -const ::google::protobuf::Struct& GetPropertiesRequest::_Internal::extra(const GetPropertiesRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetPropertiesRequest::_Internal::extra(const GetPropertiesRequest* msg) { + return *msg->extra_; } void GetPropertiesRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -GetPropertiesRequest::GetPropertiesRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetPropertiesRequest::GetPropertiesRequest(::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.movementsensor.v1.GetPropertiesRequest) } -inline PROTOBUF_NDEBUG_INLINE GetPropertiesRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -GetPropertiesRequest::GetPropertiesRequest( - ::google::protobuf::Arena* arena, - const GetPropertiesRequest& from) - : ::google::protobuf::Message(arena) { - GetPropertiesRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +GetPropertiesRequest::GetPropertiesRequest(const GetPropertiesRequest& 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.movementsensor.v1.GetPropertiesRequest) } -inline PROTOBUF_NDEBUG_INLINE GetPropertiesRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} -inline void GetPropertiesRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void GetPropertiesRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + GetPropertiesRequest::~GetPropertiesRequest() { // @@protoc_insertion_point(destructor:viam.component.movementsensor.v1.GetPropertiesRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetPropertiesRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; } -PROTOBUF_NOINLINE void GetPropertiesRequest::Clear() { +void GetPropertiesRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetPropertiesRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.movementsensor.v1.GetPropertiesRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetPropertiesRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPropertiesRequest::_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.movementsensor.v1.GetPropertiesRequest.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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 2, 1, 66, 7> GetPropertiesRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetPropertiesRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetPropertiesRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetPropertiesRequest, _impl_.name_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(GetPropertiesRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 1, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(GetPropertiesRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(GetPropertiesRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\65\4\0\0\0\0\0\0" - "viam.component.movementsensor.v1.GetPropertiesRequest" - "name" - }}, -}; - -::uint8_t* GetPropertiesRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetPropertiesRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.movementsensor.v1.GetPropertiesRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.movementsensor.v1.GetPropertiesRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.movementsensor.v1.GetPropertiesRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.movementsensor.v1.GetPropertiesRequest) return target; } -::size_t GetPropertiesRequest::ByteSizeLong() const { +size_t GetPropertiesRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.movementsensor.v1.GetPropertiesRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetPropertiesRequest::_class_data_ = { - GetPropertiesRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPropertiesRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetPropertiesRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetPropertiesRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPropertiesRequest::GetClassData() const { return &_class_data_; } + +void GetPropertiesRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetPropertiesRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.movementsensor.v1.GetPropertiesRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetPropertiesRequest::MergeFrom(const GetPropertiesRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.movementsensor.v1.GetPropertiesRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetPropertiesRequest::CopyFrom(const GetPropertiesRequest& from) { @@ -3346,284 +3016,291 @@ void GetPropertiesRequest::CopyFrom(const GetPropertiesRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetPropertiesRequest::IsInitialized() const { +bool GetPropertiesRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetPropertiesRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetPropertiesRequest::InternalSwap(GetPropertiesRequest* PROTOBUF_RESTRICT other) { +void GetPropertiesRequest::InternalSwap(GetPropertiesRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.extra_, other->_impl_.extra_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(extra_, other->extra_); } -::google::protobuf::Metadata GetPropertiesRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetPropertiesRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_getter, &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_once, file_level_metadata_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto[10]); } + // =================================================================== class GetPropertiesResponse::_Internal { public: }; -GetPropertiesResponse::GetPropertiesResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetPropertiesResponse::GetPropertiesResponse(::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.movementsensor.v1.GetPropertiesResponse) } -GetPropertiesResponse::GetPropertiesResponse( - ::google::protobuf::Arena* arena, const GetPropertiesResponse& from) - : GetPropertiesResponse(arena) { - MergeFrom(from); +GetPropertiesResponse::GetPropertiesResponse(const GetPropertiesResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&linear_velocity_supported_, &from.linear_velocity_supported_, + static_cast(reinterpret_cast(&linear_acceleration_supported_) - + reinterpret_cast(&linear_velocity_supported_)) + sizeof(linear_acceleration_supported_)); + // @@protoc_insertion_point(copy_constructor:viam.component.movementsensor.v1.GetPropertiesResponse) } -inline PROTOBUF_NDEBUG_INLINE GetPropertiesResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void GetPropertiesResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, linear_velocity_supported_), - 0, - offsetof(Impl_, linear_acceleration_supported_) - - offsetof(Impl_, linear_velocity_supported_) + - sizeof(Impl_::linear_acceleration_supported_)); +inline void GetPropertiesResponse::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&linear_velocity_supported_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&linear_acceleration_supported_) - + reinterpret_cast(&linear_velocity_supported_)) + sizeof(linear_acceleration_supported_)); } + GetPropertiesResponse::~GetPropertiesResponse() { // @@protoc_insertion_point(destructor:viam.component.movementsensor.v1.GetPropertiesResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetPropertiesResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void GetPropertiesResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetPropertiesResponse::Clear() { +void GetPropertiesResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.movementsensor.v1.GetPropertiesResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&_impl_.linear_velocity_supported_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.linear_acceleration_supported_) - - reinterpret_cast(&_impl_.linear_velocity_supported_)) + sizeof(_impl_.linear_acceleration_supported_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetPropertiesResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + ::memset(&linear_velocity_supported_, 0, static_cast( + reinterpret_cast(&linear_acceleration_supported_) - + reinterpret_cast(&linear_velocity_supported_)) + sizeof(linear_acceleration_supported_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPropertiesResponse::_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) { + // bool linear_velocity_supported = 1 [json_name = "linearVelocitySupported"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + linear_velocity_supported_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool angular_velocity_supported = 2 [json_name = "angularVelocitySupported"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + angular_velocity_supported_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool orientation_supported = 3 [json_name = "orientationSupported"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + orientation_supported_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool position_supported = 4 [json_name = "positionSupported"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + position_supported_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool compass_heading_supported = 5 [json_name = "compassHeadingSupported"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { + compass_heading_supported_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool linear_acceleration_supported = 6 [json_name = "linearAccelerationSupported"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { + linear_acceleration_supported_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 6, 0, 0, 2> GetPropertiesResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 6, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967232, // skipmap - offsetof(decltype(_table_), field_entries), - 6, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetPropertiesResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // bool linear_velocity_supported = 1 [json_name = "linearVelocitySupported"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.linear_velocity_supported_)}}, - // bool angular_velocity_supported = 2 [json_name = "angularVelocitySupported"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.angular_velocity_supported_)}}, - // bool orientation_supported = 3 [json_name = "orientationSupported"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.orientation_supported_)}}, - // bool position_supported = 4 [json_name = "positionSupported"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.position_supported_)}}, - // bool compass_heading_supported = 5 [json_name = "compassHeadingSupported"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {40, 63, 0, PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.compass_heading_supported_)}}, - // bool linear_acceleration_supported = 6 [json_name = "linearAccelerationSupported"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {48, 63, 0, PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.linear_acceleration_supported_)}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // bool linear_velocity_supported = 1 [json_name = "linearVelocitySupported"]; - {PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.linear_velocity_supported_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // bool angular_velocity_supported = 2 [json_name = "angularVelocitySupported"]; - {PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.angular_velocity_supported_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // bool orientation_supported = 3 [json_name = "orientationSupported"]; - {PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.orientation_supported_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // bool position_supported = 4 [json_name = "positionSupported"]; - {PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.position_supported_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // bool compass_heading_supported = 5 [json_name = "compassHeadingSupported"]; - {PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.compass_heading_supported_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // bool linear_acceleration_supported = 6 [json_name = "linearAccelerationSupported"]; - {PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.linear_acceleration_supported_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* GetPropertiesResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetPropertiesResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.movementsensor.v1.GetPropertiesResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // bool linear_velocity_supported = 1 [json_name = "linearVelocitySupported"]; if (this->_internal_linear_velocity_supported() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 1, this->_internal_linear_velocity_supported(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_linear_velocity_supported(), target); } // bool angular_velocity_supported = 2 [json_name = "angularVelocitySupported"]; if (this->_internal_angular_velocity_supported() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 2, this->_internal_angular_velocity_supported(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_angular_velocity_supported(), target); } // bool orientation_supported = 3 [json_name = "orientationSupported"]; if (this->_internal_orientation_supported() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 3, this->_internal_orientation_supported(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_orientation_supported(), target); } // bool position_supported = 4 [json_name = "positionSupported"]; if (this->_internal_position_supported() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 4, this->_internal_position_supported(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(4, this->_internal_position_supported(), target); } // bool compass_heading_supported = 5 [json_name = "compassHeadingSupported"]; if (this->_internal_compass_heading_supported() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 5, this->_internal_compass_heading_supported(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(5, this->_internal_compass_heading_supported(), target); } // bool linear_acceleration_supported = 6 [json_name = "linearAccelerationSupported"]; if (this->_internal_linear_acceleration_supported() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 6, this->_internal_linear_acceleration_supported(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(6, this->_internal_linear_acceleration_supported(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.movementsensor.v1.GetPropertiesResponse) return target; } -::size_t GetPropertiesResponse::ByteSizeLong() const { +size_t GetPropertiesResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.movementsensor.v1.GetPropertiesResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // bool linear_velocity_supported = 1 [json_name = "linearVelocitySupported"]; if (this->_internal_linear_velocity_supported() != 0) { - total_size += 2; + total_size += 1 + 1; } // bool angular_velocity_supported = 2 [json_name = "angularVelocitySupported"]; if (this->_internal_angular_velocity_supported() != 0) { - total_size += 2; + total_size += 1 + 1; } // bool orientation_supported = 3 [json_name = "orientationSupported"]; if (this->_internal_orientation_supported() != 0) { - total_size += 2; + total_size += 1 + 1; } // bool position_supported = 4 [json_name = "positionSupported"]; if (this->_internal_position_supported() != 0) { - total_size += 2; + total_size += 1 + 1; } // bool compass_heading_supported = 5 [json_name = "compassHeadingSupported"]; if (this->_internal_compass_heading_supported() != 0) { - total_size += 2; + total_size += 1 + 1; } // bool linear_acceleration_supported = 6 [json_name = "linearAccelerationSupported"]; if (this->_internal_linear_acceleration_supported() != 0) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetPropertiesResponse::_class_data_ = { - GetPropertiesResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPropertiesResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetPropertiesResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetPropertiesResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPropertiesResponse::GetClassData() const { return &_class_data_; } + +void GetPropertiesResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetPropertiesResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.movementsensor.v1.GetPropertiesResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetPropertiesResponse::MergeFrom(const GetPropertiesResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.movementsensor.v1.GetPropertiesResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_linear_velocity_supported() != 0) { - _this->_internal_set_linear_velocity_supported(from._internal_linear_velocity_supported()); + _internal_set_linear_velocity_supported(from._internal_linear_velocity_supported()); } if (from._internal_angular_velocity_supported() != 0) { - _this->_internal_set_angular_velocity_supported(from._internal_angular_velocity_supported()); + _internal_set_angular_velocity_supported(from._internal_angular_velocity_supported()); } if (from._internal_orientation_supported() != 0) { - _this->_internal_set_orientation_supported(from._internal_orientation_supported()); + _internal_set_orientation_supported(from._internal_orientation_supported()); } if (from._internal_position_supported() != 0) { - _this->_internal_set_position_supported(from._internal_position_supported()); + _internal_set_position_supported(from._internal_position_supported()); } if (from._internal_compass_heading_supported() != 0) { - _this->_internal_set_compass_heading_supported(from._internal_compass_heading_supported()); + _internal_set_compass_heading_supported(from._internal_compass_heading_supported()); } if (from._internal_linear_acceleration_supported() != 0) { - _this->_internal_set_linear_acceleration_supported(from._internal_linear_acceleration_supported()); + _internal_set_linear_acceleration_supported(from._internal_linear_acceleration_supported()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetPropertiesResponse::CopyFrom(const GetPropertiesResponse& from) { @@ -3633,247 +3310,239 @@ void GetPropertiesResponse::CopyFrom(const GetPropertiesResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetPropertiesResponse::IsInitialized() const { +bool GetPropertiesResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetPropertiesResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetPropertiesResponse::InternalSwap(GetPropertiesResponse* PROTOBUF_RESTRICT other) { +void GetPropertiesResponse::InternalSwap(GetPropertiesResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.linear_acceleration_supported_) - + sizeof(GetPropertiesResponse::_impl_.linear_acceleration_supported_) - - PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.linear_velocity_supported_)>( - reinterpret_cast(&_impl_.linear_velocity_supported_), - reinterpret_cast(&other->_impl_.linear_velocity_supported_)); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, linear_acceleration_supported_) + + sizeof(GetPropertiesResponse::linear_acceleration_supported_) + - PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, linear_velocity_supported_)>( + reinterpret_cast(&linear_velocity_supported_), + reinterpret_cast(&other->linear_velocity_supported_)); } -::google::protobuf::Metadata GetPropertiesResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetPropertiesResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_getter, &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_once, file_level_metadata_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto[11]); } + // =================================================================== class GetAccuracyRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetAccuracyRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const GetAccuracyRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetAccuracyRequest* msg); }; -const ::google::protobuf::Struct& GetAccuracyRequest::_Internal::extra(const GetAccuracyRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetAccuracyRequest::_Internal::extra(const GetAccuracyRequest* msg) { + return *msg->extra_; } void GetAccuracyRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -GetAccuracyRequest::GetAccuracyRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetAccuracyRequest::GetAccuracyRequest(::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.movementsensor.v1.GetAccuracyRequest) } -inline PROTOBUF_NDEBUG_INLINE GetAccuracyRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -GetAccuracyRequest::GetAccuracyRequest( - ::google::protobuf::Arena* arena, - const GetAccuracyRequest& from) - : ::google::protobuf::Message(arena) { - GetAccuracyRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +GetAccuracyRequest::GetAccuracyRequest(const GetAccuracyRequest& 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.movementsensor.v1.GetAccuracyRequest) } -inline PROTOBUF_NDEBUG_INLINE GetAccuracyRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} -inline void GetAccuracyRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void GetAccuracyRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + GetAccuracyRequest::~GetAccuracyRequest() { // @@protoc_insertion_point(destructor:viam.component.movementsensor.v1.GetAccuracyRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetAccuracyRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void GetAccuracyRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetAccuracyRequest::Clear() { +void GetAccuracyRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.movementsensor.v1.GetAccuracyRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetAccuracyRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetAccuracyRequest::_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.movementsensor.v1.GetAccuracyRequest.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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 2, 1, 64, 7> GetAccuracyRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetAccuracyRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetAccuracyRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetAccuracyRequest, _impl_.name_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(GetAccuracyRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 1, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(GetAccuracyRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(GetAccuracyRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\63\4\0\0\0\0\0\0" - "viam.component.movementsensor.v1.GetAccuracyRequest" - "name" - }}, -}; - -::uint8_t* GetAccuracyRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetAccuracyRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.movementsensor.v1.GetAccuracyRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.movementsensor.v1.GetAccuracyRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.movementsensor.v1.GetAccuracyRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.movementsensor.v1.GetAccuracyRequest) return target; } -::size_t GetAccuracyRequest::ByteSizeLong() const { +size_t GetAccuracyRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.movementsensor.v1.GetAccuracyRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetAccuracyRequest::_class_data_ = { - GetAccuracyRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetAccuracyRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetAccuracyRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetAccuracyRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetAccuracyRequest::GetClassData() const { return &_class_data_; } + +void GetAccuracyRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetAccuracyRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.movementsensor.v1.GetAccuracyRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetAccuracyRequest::MergeFrom(const GetAccuracyRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.movementsensor.v1.GetAccuracyRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetAccuracyRequest::CopyFrom(const GetAccuracyRequest& from) { @@ -3883,45 +3552,47 @@ void GetAccuracyRequest::CopyFrom(const GetAccuracyRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetAccuracyRequest::IsInitialized() const { +bool GetAccuracyRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetAccuracyRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetAccuracyRequest::InternalSwap(GetAccuracyRequest* PROTOBUF_RESTRICT other) { +void GetAccuracyRequest::InternalSwap(GetAccuracyRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.extra_, other->_impl_.extra_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(extra_, other->extra_); } -::google::protobuf::Metadata GetAccuracyRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetAccuracyRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_getter, &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_once, file_level_metadata_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto[12]); } + // =================================================================== GetAccuracyResponse_AccuracyEntry_DoNotUse::GetAccuracyResponse_AccuracyEntry_DoNotUse() {} -GetAccuracyResponse_AccuracyEntry_DoNotUse::GetAccuracyResponse_AccuracyEntry_DoNotUse(::google::protobuf::Arena* arena) +GetAccuracyResponse_AccuracyEntry_DoNotUse::GetAccuracyResponse_AccuracyEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) : SuperType(arena) {} -::google::protobuf::Metadata GetAccuracyResponse_AccuracyEntry_DoNotUse::GetMetadata() const { +void GetAccuracyResponse_AccuracyEntry_DoNotUse::MergeFrom(const GetAccuracyResponse_AccuracyEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata GetAccuracyResponse_AccuracyEntry_DoNotUse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_getter, &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_once, file_level_metadata_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto[13]); } + // =================================================================== class GetAccuracyResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetAccuracyResponse, _impl_._has_bits_); + using HasBits = decltype(std::declval()._has_bits_); static void set_has_position_hdop(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -3936,292 +3607,298 @@ class GetAccuracyResponse::_Internal { } }; -GetAccuracyResponse::GetAccuracyResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetAccuracyResponse::GetAccuracyResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + accuracy_(arena) { + SharedCtor(); + if (arena != nullptr && !is_message_owned) { + arena->OwnCustomDestructor(this, &GetAccuracyResponse::ArenaDtor); + } // @@protoc_insertion_point(arena_constructor:viam.component.movementsensor.v1.GetAccuracyResponse) } -inline PROTOBUF_NDEBUG_INLINE GetAccuracyResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - accuracy_{visibility, arena, from.accuracy_} {} - -GetAccuracyResponse::GetAccuracyResponse( - ::google::protobuf::Arena* arena, - const GetAccuracyResponse& from) - : ::google::protobuf::Message(arena) { - GetAccuracyResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, position_hdop_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, position_hdop_), - offsetof(Impl_, compass_degrees_error_) - - offsetof(Impl_, position_hdop_) + - sizeof(Impl_::compass_degrees_error_)); - +GetAccuracyResponse::GetAccuracyResponse(const GetAccuracyResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + accuracy_.MergeFrom(from.accuracy_); + ::memcpy(&position_hdop_, &from.position_hdop_, + static_cast(reinterpret_cast(&compass_degrees_error_) - + reinterpret_cast(&position_hdop_)) + sizeof(compass_degrees_error_)); // @@protoc_insertion_point(copy_constructor:viam.component.movementsensor.v1.GetAccuracyResponse) } -inline PROTOBUF_NDEBUG_INLINE GetAccuracyResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - accuracy_{visibility, arena} {} - -inline void GetAccuracyResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, position_hdop_), - 0, - offsetof(Impl_, compass_degrees_error_) - - offsetof(Impl_, position_hdop_) + - sizeof(Impl_::compass_degrees_error_)); + +inline void GetAccuracyResponse::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&position_hdop_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&compass_degrees_error_) - + reinterpret_cast(&position_hdop_)) + sizeof(compass_degrees_error_)); } + GetAccuracyResponse::~GetAccuracyResponse() { // @@protoc_insertion_point(destructor:viam.component.movementsensor.v1.GetAccuracyResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + ArenaDtor(this); + return; + } SharedDtor(); } + inline void GetAccuracyResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + accuracy_.Destruct(); +} + +void GetAccuracyResponse::ArenaDtor(void* object) { + GetAccuracyResponse* _this = reinterpret_cast< GetAccuracyResponse* >(object); + _this->accuracy_.Destruct(); +} +void GetAccuracyResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetAccuracyResponse::Clear() { +void GetAccuracyResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.movementsensor.v1.GetAccuracyResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.accuracy_.Clear(); - cached_has_bits = _impl_._has_bits_[0]; + accuracy_.Clear(); + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x0000000fu) { - ::memset(&_impl_.position_hdop_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.compass_degrees_error_) - - reinterpret_cast(&_impl_.position_hdop_)) + sizeof(_impl_.compass_degrees_error_)); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetAccuracyResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + ::memset(&position_hdop_, 0, static_cast( + reinterpret_cast(&compass_degrees_error_) - + reinterpret_cast(&position_hdop_)) + sizeof(compass_degrees_error_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetAccuracyResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // map accuracy = 1 [json_name = "accuracy"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&accuracy_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + // optional float position_hdop = 2 [json_name = "positionHdop"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 21)) { + _Internal::set_has_position_hdop(&has_bits); + position_hdop_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(float); + } else + goto handle_unusual; + continue; + // optional float position_vdop = 3 [json_name = "positionVdop"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 29)) { + _Internal::set_has_position_vdop(&has_bits); + position_vdop_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(float); + } else + goto handle_unusual; + continue; + // optional int32 position_nmea_gga_fix = 4 [json_name = "positionNmeaGgaFix"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + _Internal::set_has_position_nmea_gga_fix(&has_bits); + position_nmea_gga_fix_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional float compass_degrees_error = 5 [json_name = "compassDegreesError"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 45)) { + _Internal::set_has_compass_degrees_error(&has_bits); + compass_degrees_error_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(float); + } 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: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 5, 1, 69, 2> GetAccuracyResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetAccuracyResponse, _impl_._has_bits_), - 0, // no _extensions_ - 5, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967264, // skipmap - offsetof(decltype(_table_), field_entries), - 5, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetAccuracyResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // optional int32 position_nmea_gga_fix = 4 [json_name = "positionNmeaGgaFix"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(GetAccuracyResponse, _impl_.position_nmea_gga_fix_), 2>(), - {32, 2, 0, PROTOBUF_FIELD_OFFSET(GetAccuracyResponse, _impl_.position_nmea_gga_fix_)}}, - // optional float compass_degrees_error = 5 [json_name = "compassDegreesError"]; - {::_pbi::TcParser::FastF32S1, - {45, 3, 0, PROTOBUF_FIELD_OFFSET(GetAccuracyResponse, _impl_.compass_degrees_error_)}}, - // optional float position_hdop = 2 [json_name = "positionHdop"]; - {::_pbi::TcParser::FastF32S1, - {21, 0, 0, PROTOBUF_FIELD_OFFSET(GetAccuracyResponse, _impl_.position_hdop_)}}, - // optional float position_vdop = 3 [json_name = "positionVdop"]; - {::_pbi::TcParser::FastF32S1, - {29, 1, 0, PROTOBUF_FIELD_OFFSET(GetAccuracyResponse, _impl_.position_vdop_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // map accuracy = 1 [json_name = "accuracy"]; - {PROTOBUF_FIELD_OFFSET(GetAccuracyResponse, _impl_.accuracy_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, - // optional float position_hdop = 2 [json_name = "positionHdop"]; - {PROTOBUF_FIELD_OFFSET(GetAccuracyResponse, _impl_.position_hdop_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, - // optional float position_vdop = 3 [json_name = "positionVdop"]; - {PROTOBUF_FIELD_OFFSET(GetAccuracyResponse, _impl_.position_vdop_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, - // optional int32 position_nmea_gga_fix = 4 [json_name = "positionNmeaGgaFix"]; - {PROTOBUF_FIELD_OFFSET(GetAccuracyResponse, _impl_.position_nmea_gga_fix_), _Internal::kHasBitsOffset + 2, 0, - (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // optional float compass_degrees_error = 5 [json_name = "compassDegreesError"]; - {PROTOBUF_FIELD_OFFSET(GetAccuracyResponse, _impl_.compass_degrees_error_), _Internal::kHasBitsOffset + 3, 0, - (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, - }}, {{ - {::_pbi::TcParser::GetMapAuxInfo< - decltype(GetAccuracyResponse()._impl_.accuracy_)>( - 1, 0, 0, 9, - 2)}, - }}, {{ - "\64\10\0\0\0\0\0\0" - "viam.component.movementsensor.v1.GetAccuracyResponse" - "accuracy" - }}, -}; - -::uint8_t* GetAccuracyResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetAccuracyResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.movementsensor.v1.GetAccuracyResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // map accuracy = 1 [json_name = "accuracy"]; - if (!_internal_accuracy().empty()) { - using MapType = ::google::protobuf::Map; - using WireHelper = _pbi::MapEntryFuncs; - const auto& field = _internal_accuracy(); - - if (stream->IsSerializationDeterministic() && field.size() > 1) { - for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { - target = WireHelper::InternalSerialize( - 1, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.movementsensor.v1.GetAccuracyResponse.accuracy"); + if (!this->_internal_accuracy().empty()) { + using MapType = ::_pb::Map; + using WireHelper = GetAccuracyResponse_AccuracyEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_accuracy(); + 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.movementsensor.v1.GetAccuracyResponse.AccuracyEntry.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 : field) { - target = WireHelper::InternalSerialize( - 1, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.movementsensor.v1.GetAccuracyResponse.accuracy"); + for (const auto& entry : map_field) { + target = WireHelper::InternalSerialize(1, entry.first, entry.second, target, stream); + check_utf8(entry); } } } - cached_has_bits = _impl_._has_bits_[0]; // optional float position_hdop = 2 [json_name = "positionHdop"]; - if (cached_has_bits & 0x00000001u) { + if (_internal_has_position_hdop()) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 2, this->_internal_position_hdop(), target); + target = ::_pbi::WireFormatLite::WriteFloatToArray(2, this->_internal_position_hdop(), target); } // optional float position_vdop = 3 [json_name = "positionVdop"]; - if (cached_has_bits & 0x00000002u) { + if (_internal_has_position_vdop()) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 3, this->_internal_position_vdop(), target); + target = ::_pbi::WireFormatLite::WriteFloatToArray(3, this->_internal_position_vdop(), target); } // optional int32 position_nmea_gga_fix = 4 [json_name = "positionNmeaGgaFix"]; - if (cached_has_bits & 0x00000004u) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<4>( - stream, this->_internal_position_nmea_gga_fix(), target); + if (_internal_has_position_nmea_gga_fix()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(4, this->_internal_position_nmea_gga_fix(), target); } // optional float compass_degrees_error = 5 [json_name = "compassDegreesError"]; - if (cached_has_bits & 0x00000008u) { + if (_internal_has_compass_degrees_error()) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 5, this->_internal_compass_degrees_error(), target); + target = ::_pbi::WireFormatLite::WriteFloatToArray(5, this->_internal_compass_degrees_error(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.movementsensor.v1.GetAccuracyResponse) return target; } -::size_t GetAccuracyResponse::ByteSizeLong() const { +size_t GetAccuracyResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.movementsensor.v1.GetAccuracyResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // map accuracy = 1 [json_name = "accuracy"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_accuracy_size()); - for (const auto& entry : _internal_accuracy()) { - total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_accuracy_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, float >::const_iterator + it = this->_internal_accuracy().begin(); + it != this->_internal_accuracy().end(); ++it) { + total_size += GetAccuracyResponse_AccuracyEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); } - cached_has_bits = _impl_._has_bits_[0]; + + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x0000000fu) { // optional float position_hdop = 2 [json_name = "positionHdop"]; if (cached_has_bits & 0x00000001u) { - total_size += 5; + total_size += 1 + 4; } // optional float position_vdop = 3 [json_name = "positionVdop"]; if (cached_has_bits & 0x00000002u) { - total_size += 5; + total_size += 1 + 4; } // optional int32 position_nmea_gga_fix = 4 [json_name = "positionNmeaGgaFix"]; if (cached_has_bits & 0x00000004u) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_position_nmea_gga_fix()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_position_nmea_gga_fix()); } // optional float compass_degrees_error = 5 [json_name = "compassDegreesError"]; if (cached_has_bits & 0x00000008u) { - total_size += 5; + total_size += 1 + 4; } } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetAccuracyResponse::_class_data_ = { - GetAccuracyResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetAccuracyResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetAccuracyResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetAccuracyResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetAccuracyResponse::GetClassData() const { return &_class_data_; } + +void GetAccuracyResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetAccuracyResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.movementsensor.v1.GetAccuracyResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetAccuracyResponse::MergeFrom(const GetAccuracyResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.movementsensor.v1.GetAccuracyResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.accuracy_.MergeFrom(from._impl_.accuracy_); - cached_has_bits = from._impl_._has_bits_[0]; + accuracy_.MergeFrom(from.accuracy_); + cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x0000000fu) { if (cached_has_bits & 0x00000001u) { - _this->_impl_.position_hdop_ = from._impl_.position_hdop_; + position_hdop_ = from.position_hdop_; } if (cached_has_bits & 0x00000002u) { - _this->_impl_.position_vdop_ = from._impl_.position_vdop_; + position_vdop_ = from.position_vdop_; } if (cached_has_bits & 0x00000004u) { - _this->_impl_.position_nmea_gga_fix_ = from._impl_.position_nmea_gga_fix_; + position_nmea_gga_fix_ = from.position_nmea_gga_fix_; } if (cached_has_bits & 0x00000008u) { - _this->_impl_.compass_degrees_error_ = from._impl_.compass_degrees_error_; + compass_degrees_error_ = from.compass_degrees_error_; } - _this->_impl_._has_bits_[0] |= cached_has_bits; + _has_bits_[0] |= cached_has_bits; } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetAccuracyResponse::CopyFrom(const GetAccuracyResponse& from) { @@ -4231,249 +3908,241 @@ void GetAccuracyResponse::CopyFrom(const GetAccuracyResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetAccuracyResponse::IsInitialized() const { +bool GetAccuracyResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetAccuracyResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetAccuracyResponse::InternalSwap(GetAccuracyResponse* PROTOBUF_RESTRICT other) { +void GetAccuracyResponse::InternalSwap(GetAccuracyResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.accuracy_.InternalSwap(&other->_impl_.accuracy_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(GetAccuracyResponse, _impl_.compass_degrees_error_) - + sizeof(GetAccuracyResponse::_impl_.compass_degrees_error_) - - PROTOBUF_FIELD_OFFSET(GetAccuracyResponse, _impl_.position_hdop_)>( - reinterpret_cast(&_impl_.position_hdop_), - reinterpret_cast(&other->_impl_.position_hdop_)); + swap(_has_bits_[0], other->_has_bits_[0]); + accuracy_.InternalSwap(&other->accuracy_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GetAccuracyResponse, compass_degrees_error_) + + sizeof(GetAccuracyResponse::compass_degrees_error_) + - PROTOBUF_FIELD_OFFSET(GetAccuracyResponse, position_hdop_)>( + reinterpret_cast(&position_hdop_), + reinterpret_cast(&other->position_hdop_)); } -::google::protobuf::Metadata GetAccuracyResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetAccuracyResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_getter, &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_once, file_level_metadata_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto[14]); } + // =================================================================== class GetLinearAccelerationRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetLinearAccelerationRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const GetLinearAccelerationRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetLinearAccelerationRequest* msg); }; -const ::google::protobuf::Struct& GetLinearAccelerationRequest::_Internal::extra(const GetLinearAccelerationRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetLinearAccelerationRequest::_Internal::extra(const GetLinearAccelerationRequest* msg) { + return *msg->extra_; } void GetLinearAccelerationRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -GetLinearAccelerationRequest::GetLinearAccelerationRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetLinearAccelerationRequest::GetLinearAccelerationRequest(::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.movementsensor.v1.GetLinearAccelerationRequest) } -inline PROTOBUF_NDEBUG_INLINE GetLinearAccelerationRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -GetLinearAccelerationRequest::GetLinearAccelerationRequest( - ::google::protobuf::Arena* arena, - const GetLinearAccelerationRequest& from) - : ::google::protobuf::Message(arena) { - GetLinearAccelerationRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +GetLinearAccelerationRequest::GetLinearAccelerationRequest(const GetLinearAccelerationRequest& 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.movementsensor.v1.GetLinearAccelerationRequest) } -inline PROTOBUF_NDEBUG_INLINE GetLinearAccelerationRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} -inline void GetLinearAccelerationRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void GetLinearAccelerationRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + GetLinearAccelerationRequest::~GetLinearAccelerationRequest() { // @@protoc_insertion_point(destructor:viam.component.movementsensor.v1.GetLinearAccelerationRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetLinearAccelerationRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void GetLinearAccelerationRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetLinearAccelerationRequest::Clear() { +void GetLinearAccelerationRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.movementsensor.v1.GetLinearAccelerationRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetLinearAccelerationRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetLinearAccelerationRequest::_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.movementsensor.v1.GetLinearAccelerationRequest.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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 2, 1, 74, 7> GetLinearAccelerationRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetLinearAccelerationRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetLinearAccelerationRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetLinearAccelerationRequest, _impl_.name_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(GetLinearAccelerationRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 1, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(GetLinearAccelerationRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(GetLinearAccelerationRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\75\4\0\0\0\0\0\0" - "viam.component.movementsensor.v1.GetLinearAccelerationRequest" - "name" - }}, -}; - -::uint8_t* GetLinearAccelerationRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetLinearAccelerationRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.movementsensor.v1.GetLinearAccelerationRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.movementsensor.v1.GetLinearAccelerationRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.movementsensor.v1.GetLinearAccelerationRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.movementsensor.v1.GetLinearAccelerationRequest) return target; } -::size_t GetLinearAccelerationRequest::ByteSizeLong() const { +size_t GetLinearAccelerationRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.movementsensor.v1.GetLinearAccelerationRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetLinearAccelerationRequest::_class_data_ = { - GetLinearAccelerationRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetLinearAccelerationRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetLinearAccelerationRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetLinearAccelerationRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetLinearAccelerationRequest::GetClassData() const { return &_class_data_; } + +void GetLinearAccelerationRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetLinearAccelerationRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.movementsensor.v1.GetLinearAccelerationRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetLinearAccelerationRequest::MergeFrom(const GetLinearAccelerationRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.movementsensor.v1.GetLinearAccelerationRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetLinearAccelerationRequest::CopyFrom(const GetLinearAccelerationRequest& from) { @@ -4483,212 +4152,196 @@ void GetLinearAccelerationRequest::CopyFrom(const GetLinearAccelerationRequest& MergeFrom(from); } -PROTOBUF_NOINLINE bool GetLinearAccelerationRequest::IsInitialized() const { +bool GetLinearAccelerationRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetLinearAccelerationRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetLinearAccelerationRequest::InternalSwap(GetLinearAccelerationRequest* PROTOBUF_RESTRICT other) { +void GetLinearAccelerationRequest::InternalSwap(GetLinearAccelerationRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.extra_, other->_impl_.extra_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(extra_, other->extra_); } -::google::protobuf::Metadata GetLinearAccelerationRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetLinearAccelerationRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_getter, &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_once, file_level_metadata_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto[15]); } + // =================================================================== class GetLinearAccelerationResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetLinearAccelerationResponse, _impl_._has_bits_); static const ::viam::common::v1::Vector3& linear_acceleration(const GetLinearAccelerationResponse* msg); - static void set_has_linear_acceleration(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::common::v1::Vector3& GetLinearAccelerationResponse::_Internal::linear_acceleration(const GetLinearAccelerationResponse* msg) { - return *msg->_impl_.linear_acceleration_; +const ::viam::common::v1::Vector3& +GetLinearAccelerationResponse::_Internal::linear_acceleration(const GetLinearAccelerationResponse* msg) { + return *msg->linear_acceleration_; } void GetLinearAccelerationResponse::clear_linear_acceleration() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.linear_acceleration_ != nullptr) _impl_.linear_acceleration_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && linear_acceleration_ != nullptr) { + delete linear_acceleration_; + } + linear_acceleration_ = nullptr; } -GetLinearAccelerationResponse::GetLinearAccelerationResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetLinearAccelerationResponse::GetLinearAccelerationResponse(::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.movementsensor.v1.GetLinearAccelerationResponse) } -inline PROTOBUF_NDEBUG_INLINE GetLinearAccelerationResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -GetLinearAccelerationResponse::GetLinearAccelerationResponse( - ::google::protobuf::Arena* arena, - const GetLinearAccelerationResponse& from) - : ::google::protobuf::Message(arena) { - GetLinearAccelerationResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.linear_acceleration_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::common::v1::Vector3>(arena, *from._impl_.linear_acceleration_) - : nullptr; - +GetLinearAccelerationResponse::GetLinearAccelerationResponse(const GetLinearAccelerationResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_linear_acceleration()) { + linear_acceleration_ = new ::viam::common::v1::Vector3(*from.linear_acceleration_); + } else { + linear_acceleration_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.component.movementsensor.v1.GetLinearAccelerationResponse) } -inline PROTOBUF_NDEBUG_INLINE GetLinearAccelerationResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void GetLinearAccelerationResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.linear_acceleration_ = {}; +inline void GetLinearAccelerationResponse::SharedCtor() { +linear_acceleration_ = nullptr; } + GetLinearAccelerationResponse::~GetLinearAccelerationResponse() { // @@protoc_insertion_point(destructor:viam.component.movementsensor.v1.GetLinearAccelerationResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetLinearAccelerationResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.linear_acceleration_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete linear_acceleration_; } -PROTOBUF_NOINLINE void GetLinearAccelerationResponse::Clear() { +void GetLinearAccelerationResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetLinearAccelerationResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.movementsensor.v1.GetLinearAccelerationResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.linear_acceleration_ != nullptr); - _impl_.linear_acceleration_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetLinearAccelerationResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + if (GetArenaForAllocation() == nullptr && linear_acceleration_ != nullptr) { + delete linear_acceleration_; + } + linear_acceleration_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetLinearAccelerationResponse::_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.Vector3 linear_acceleration = 1 [json_name = "linearAcceleration"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_linear_acceleration(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetLinearAccelerationResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetLinearAccelerationResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetLinearAccelerationResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.common.v1.Vector3 linear_acceleration = 1 [json_name = "linearAcceleration"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetLinearAccelerationResponse, _impl_.linear_acceleration_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.common.v1.Vector3 linear_acceleration = 1 [json_name = "linearAcceleration"]; - {PROTOBUF_FIELD_OFFSET(GetLinearAccelerationResponse, _impl_.linear_acceleration_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::common::v1::Vector3>()}, - }}, {{ - }}, -}; - -::uint8_t* GetLinearAccelerationResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetLinearAccelerationResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.movementsensor.v1.GetLinearAccelerationResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.common.v1.Vector3 linear_acceleration = 1 [json_name = "linearAcceleration"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::linear_acceleration(this), + if (this->_internal_has_linear_acceleration()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::linear_acceleration(this), _Internal::linear_acceleration(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.movementsensor.v1.GetLinearAccelerationResponse) return target; } -::size_t GetLinearAccelerationResponse::ByteSizeLong() const { +size_t GetLinearAccelerationResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.movementsensor.v1.GetLinearAccelerationResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .viam.common.v1.Vector3 linear_acceleration = 1 [json_name = "linearAcceleration"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.linear_acceleration_); + if (this->_internal_has_linear_acceleration()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *linear_acceleration_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetLinearAccelerationResponse::_class_data_ = { - GetLinearAccelerationResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetLinearAccelerationResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetLinearAccelerationResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetLinearAccelerationResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetLinearAccelerationResponse::GetClassData() const { return &_class_data_; } + +void GetLinearAccelerationResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetLinearAccelerationResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.movementsensor.v1.GetLinearAccelerationResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetLinearAccelerationResponse::MergeFrom(const GetLinearAccelerationResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.movementsensor.v1.GetLinearAccelerationResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_linear_acceleration()->::viam::common::v1::Vector3::MergeFrom( - from._internal_linear_acceleration()); + if (from._internal_has_linear_acceleration()) { + _internal_mutable_linear_acceleration()->::viam::common::v1::Vector3::MergeFrom(from._internal_linear_acceleration()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetLinearAccelerationResponse::CopyFrom(const GetLinearAccelerationResponse& from) { @@ -4698,33 +4351,97 @@ void GetLinearAccelerationResponse::CopyFrom(const GetLinearAccelerationResponse MergeFrom(from); } -PROTOBUF_NOINLINE bool GetLinearAccelerationResponse::IsInitialized() const { +bool GetLinearAccelerationResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetLinearAccelerationResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetLinearAccelerationResponse::InternalSwap(GetLinearAccelerationResponse* PROTOBUF_RESTRICT other) { +void GetLinearAccelerationResponse::InternalSwap(GetLinearAccelerationResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.linear_acceleration_, other->_impl_.linear_acceleration_); + swap(linear_acceleration_, other->linear_acceleration_); } -::google::protobuf::Metadata GetLinearAccelerationResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetLinearAccelerationResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_getter, &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_once, file_level_metadata_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto[16]); } + // @@protoc_insertion_point(namespace_scope) } // namespace v1 } // namespace movementsensor } // namespace component } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::component::movementsensor::v1::GetLinearVelocityRequest* +Arena::CreateMaybeMessage< ::viam::component::movementsensor::v1::GetLinearVelocityRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::movementsensor::v1::GetLinearVelocityRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::movementsensor::v1::GetLinearVelocityResponse* +Arena::CreateMaybeMessage< ::viam::component::movementsensor::v1::GetLinearVelocityResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::movementsensor::v1::GetLinearVelocityResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::movementsensor::v1::GetAngularVelocityRequest* +Arena::CreateMaybeMessage< ::viam::component::movementsensor::v1::GetAngularVelocityRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::movementsensor::v1::GetAngularVelocityRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::movementsensor::v1::GetAngularVelocityResponse* +Arena::CreateMaybeMessage< ::viam::component::movementsensor::v1::GetAngularVelocityResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::movementsensor::v1::GetAngularVelocityResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::movementsensor::v1::GetCompassHeadingRequest* +Arena::CreateMaybeMessage< ::viam::component::movementsensor::v1::GetCompassHeadingRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::movementsensor::v1::GetCompassHeadingRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::movementsensor::v1::GetCompassHeadingResponse* +Arena::CreateMaybeMessage< ::viam::component::movementsensor::v1::GetCompassHeadingResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::movementsensor::v1::GetCompassHeadingResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::movementsensor::v1::GetOrientationRequest* +Arena::CreateMaybeMessage< ::viam::component::movementsensor::v1::GetOrientationRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::movementsensor::v1::GetOrientationRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::movementsensor::v1::GetOrientationResponse* +Arena::CreateMaybeMessage< ::viam::component::movementsensor::v1::GetOrientationResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::movementsensor::v1::GetOrientationResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::movementsensor::v1::GetPositionRequest* +Arena::CreateMaybeMessage< ::viam::component::movementsensor::v1::GetPositionRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::movementsensor::v1::GetPositionRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::movementsensor::v1::GetPositionResponse* +Arena::CreateMaybeMessage< ::viam::component::movementsensor::v1::GetPositionResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::movementsensor::v1::GetPositionResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::movementsensor::v1::GetPropertiesRequest* +Arena::CreateMaybeMessage< ::viam::component::movementsensor::v1::GetPropertiesRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::movementsensor::v1::GetPropertiesRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::movementsensor::v1::GetPropertiesResponse* +Arena::CreateMaybeMessage< ::viam::component::movementsensor::v1::GetPropertiesResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::movementsensor::v1::GetPropertiesResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::movementsensor::v1::GetAccuracyRequest* +Arena::CreateMaybeMessage< ::viam::component::movementsensor::v1::GetAccuracyRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::movementsensor::v1::GetAccuracyRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::movementsensor::v1::GetAccuracyResponse_AccuracyEntry_DoNotUse* +Arena::CreateMaybeMessage< ::viam::component::movementsensor::v1::GetAccuracyResponse_AccuracyEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::movementsensor::v1::GetAccuracyResponse_AccuracyEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::movementsensor::v1::GetAccuracyResponse* +Arena::CreateMaybeMessage< ::viam::component::movementsensor::v1::GetAccuracyResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::movementsensor::v1::GetAccuracyResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::movementsensor::v1::GetLinearAccelerationRequest* +Arena::CreateMaybeMessage< ::viam::component::movementsensor::v1::GetLinearAccelerationRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::movementsensor::v1::GetLinearAccelerationRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::movementsensor::v1::GetLinearAccelerationResponse* +Arena::CreateMaybeMessage< ::viam::component::movementsensor::v1::GetLinearAccelerationResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::movementsensor::v1::GetLinearAccelerationResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/component/movementsensor/v1/movementsensor.pb.h b/src/viam/api/component/movementsensor/v1/movementsensor.pb.h index 58d01645f..798e913f0 100644 --- a/src/viam/api/component/movementsensor/v1/movementsensor.pb.h +++ b/src/viam/api/component/movementsensor/v1/movementsensor.pb.h @@ -1,66 +1,55 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: component/movementsensor/v1/movementsensor.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/map.h" // IWYU pragma: export -#include "google/protobuf/map_entry.h" -#include "google/protobuf/map_field_inl.h" -#include "google/protobuf/unknown_field_set.h" + +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#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 "google/protobuf/struct.pb.h" +#include // @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - +#include #define PROTOBUF_INTERNAL_EXPORT_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto; namespace viam { namespace component { namespace movementsensor { @@ -120,11 +109,25 @@ extern GetPropertiesResponseDefaultTypeInternal _GetPropertiesResponse_default_i } // namespace movementsensor } // namespace component } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::component::movementsensor::v1::GetAccuracyRequest* Arena::CreateMaybeMessage<::viam::component::movementsensor::v1::GetAccuracyRequest>(Arena*); +template<> ::viam::component::movementsensor::v1::GetAccuracyResponse* Arena::CreateMaybeMessage<::viam::component::movementsensor::v1::GetAccuracyResponse>(Arena*); +template<> ::viam::component::movementsensor::v1::GetAccuracyResponse_AccuracyEntry_DoNotUse* Arena::CreateMaybeMessage<::viam::component::movementsensor::v1::GetAccuracyResponse_AccuracyEntry_DoNotUse>(Arena*); +template<> ::viam::component::movementsensor::v1::GetAngularVelocityRequest* Arena::CreateMaybeMessage<::viam::component::movementsensor::v1::GetAngularVelocityRequest>(Arena*); +template<> ::viam::component::movementsensor::v1::GetAngularVelocityResponse* Arena::CreateMaybeMessage<::viam::component::movementsensor::v1::GetAngularVelocityResponse>(Arena*); +template<> ::viam::component::movementsensor::v1::GetCompassHeadingRequest* Arena::CreateMaybeMessage<::viam::component::movementsensor::v1::GetCompassHeadingRequest>(Arena*); +template<> ::viam::component::movementsensor::v1::GetCompassHeadingResponse* Arena::CreateMaybeMessage<::viam::component::movementsensor::v1::GetCompassHeadingResponse>(Arena*); +template<> ::viam::component::movementsensor::v1::GetLinearAccelerationRequest* Arena::CreateMaybeMessage<::viam::component::movementsensor::v1::GetLinearAccelerationRequest>(Arena*); +template<> ::viam::component::movementsensor::v1::GetLinearAccelerationResponse* Arena::CreateMaybeMessage<::viam::component::movementsensor::v1::GetLinearAccelerationResponse>(Arena*); +template<> ::viam::component::movementsensor::v1::GetLinearVelocityRequest* Arena::CreateMaybeMessage<::viam::component::movementsensor::v1::GetLinearVelocityRequest>(Arena*); +template<> ::viam::component::movementsensor::v1::GetLinearVelocityResponse* Arena::CreateMaybeMessage<::viam::component::movementsensor::v1::GetLinearVelocityResponse>(Arena*); +template<> ::viam::component::movementsensor::v1::GetOrientationRequest* Arena::CreateMaybeMessage<::viam::component::movementsensor::v1::GetOrientationRequest>(Arena*); +template<> ::viam::component::movementsensor::v1::GetOrientationResponse* Arena::CreateMaybeMessage<::viam::component::movementsensor::v1::GetOrientationResponse>(Arena*); +template<> ::viam::component::movementsensor::v1::GetPositionRequest* Arena::CreateMaybeMessage<::viam::component::movementsensor::v1::GetPositionRequest>(Arena*); +template<> ::viam::component::movementsensor::v1::GetPositionResponse* Arena::CreateMaybeMessage<::viam::component::movementsensor::v1::GetPositionResponse>(Arena*); +template<> ::viam::component::movementsensor::v1::GetPropertiesRequest* Arena::CreateMaybeMessage<::viam::component::movementsensor::v1::GetPropertiesRequest>(Arena*); +template<> ::viam::component::movementsensor::v1::GetPropertiesResponse* Arena::CreateMaybeMessage<::viam::component::movementsensor::v1::GetPropertiesResponse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace viam { namespace component { namespace movementsensor { @@ -132,33 +135,28 @@ namespace v1 { // =================================================================== - -// ------------------------------------------------------------------- - -class GetPropertiesResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.movementsensor.v1.GetPropertiesResponse) */ { +class GetLinearVelocityRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.movementsensor.v1.GetLinearVelocityRequest) */ { public: - inline GetPropertiesResponse() : GetPropertiesResponse(nullptr) {} - ~GetPropertiesResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetPropertiesResponse(::google::protobuf::internal::ConstantInitialized); + inline GetLinearVelocityRequest() : GetLinearVelocityRequest(nullptr) {} + ~GetLinearVelocityRequest() override; + explicit PROTOBUF_CONSTEXPR GetLinearVelocityRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetPropertiesResponse(const GetPropertiesResponse& from) - : GetPropertiesResponse(nullptr, from) {} - GetPropertiesResponse(GetPropertiesResponse&& from) noexcept - : GetPropertiesResponse() { + GetLinearVelocityRequest(const GetLinearVelocityRequest& from); + GetLinearVelocityRequest(GetLinearVelocityRequest&& from) noexcept + : GetLinearVelocityRequest() { *this = ::std::move(from); } - inline GetPropertiesResponse& operator=(const GetPropertiesResponse& from) { + inline GetLinearVelocityRequest& operator=(const GetLinearVelocityRequest& from) { CopyFrom(from); return *this; } - inline GetPropertiesResponse& operator=(GetPropertiesResponse&& from) noexcept { + inline GetLinearVelocityRequest& operator=(GetLinearVelocityRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -168,232 +166,165 @@ class GetPropertiesResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetPropertiesResponse& default_instance() { + static const GetLinearVelocityRequest& default_instance() { return *internal_default_instance(); } - static inline const GetPropertiesResponse* internal_default_instance() { - return reinterpret_cast( - &_GetPropertiesResponse_default_instance_); + static inline const GetLinearVelocityRequest* internal_default_instance() { + return reinterpret_cast( + &_GetLinearVelocityRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 11; + 0; - friend void swap(GetPropertiesResponse& a, GetPropertiesResponse& b) { + friend void swap(GetLinearVelocityRequest& a, GetLinearVelocityRequest& b) { a.Swap(&b); } - inline void Swap(GetPropertiesResponse* other) { + inline void Swap(GetLinearVelocityRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetPropertiesResponse* other) { + void UnsafeArenaSwap(GetLinearVelocityRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetPropertiesResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetPropertiesResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetPropertiesResponse& from) { - GetPropertiesResponse::MergeImpl(*this, from); + GetLinearVelocityRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetLinearVelocityRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetLinearVelocityRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetPropertiesResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetLinearVelocityRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.movementsensor.v1.GetPropertiesResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.movementsensor.v1.GetLinearVelocityRequest"; } protected: - explicit GetPropertiesResponse(::google::protobuf::Arena* arena); - GetPropertiesResponse(::google::protobuf::Arena* arena, const GetPropertiesResponse& from); + explicit GetLinearVelocityRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kLinearVelocitySupportedFieldNumber = 1, - kAngularVelocitySupportedFieldNumber = 2, - kOrientationSupportedFieldNumber = 3, - kPositionSupportedFieldNumber = 4, - kCompassHeadingSupportedFieldNumber = 5, - kLinearAccelerationSupportedFieldNumber = 6, + kNameFieldNumber = 1, + kExtraFieldNumber = 99, }; - // bool linear_velocity_supported = 1 [json_name = "linearVelocitySupported"]; - void clear_linear_velocity_supported() ; - bool linear_velocity_supported() const; - void set_linear_velocity_supported(bool value); - - private: - bool _internal_linear_velocity_supported() const; - void _internal_set_linear_velocity_supported(bool value); - - public: - // bool angular_velocity_supported = 2 [json_name = "angularVelocitySupported"]; - void clear_angular_velocity_supported() ; - bool angular_velocity_supported() const; - void set_angular_velocity_supported(bool value); - - private: - bool _internal_angular_velocity_supported() const; - void _internal_set_angular_velocity_supported(bool value); - - public: - // bool orientation_supported = 3 [json_name = "orientationSupported"]; - void clear_orientation_supported() ; - bool orientation_supported() const; - void set_orientation_supported(bool value); - + // 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: - bool _internal_orientation_supported() const; - void _internal_set_orientation_supported(bool value); - + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); public: - // bool position_supported = 4 [json_name = "positionSupported"]; - void clear_position_supported() ; - bool position_supported() const; - void set_position_supported(bool value); + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + bool has_extra() const; private: - bool _internal_position_supported() const; - void _internal_set_position_supported(bool value); - + bool _internal_has_extra() const; public: - // bool compass_heading_supported = 5 [json_name = "compassHeadingSupported"]; - void clear_compass_heading_supported() ; - bool compass_heading_supported() const; - void set_compass_heading_supported(bool value); - + 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: - bool _internal_compass_heading_supported() const; - void _internal_set_compass_heading_supported(bool value); - + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_extra() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_extra(); public: - // bool linear_acceleration_supported = 6 [json_name = "linearAccelerationSupported"]; - void clear_linear_acceleration_supported() ; - bool linear_acceleration_supported() const; - void set_linear_acceleration_supported(bool value); - - private: - bool _internal_linear_acceleration_supported() const; - void _internal_set_linear_acceleration_supported(bool value); + void unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_extra(); - public: - // @@protoc_insertion_point(class_scope:viam.component.movementsensor.v1.GetPropertiesResponse) + // @@protoc_insertion_point(class_scope:viam.component.movementsensor.v1.GetLinearVelocityRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 6, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - bool linear_velocity_supported_; - bool angular_velocity_supported_; - bool orientation_supported_; - bool position_supported_; - bool compass_heading_supported_; - bool linear_acceleration_supported_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + 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_2fmovementsensor_2fv1_2fmovementsensor_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetCompassHeadingResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.movementsensor.v1.GetCompassHeadingResponse) */ { +class GetLinearVelocityResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.movementsensor.v1.GetLinearVelocityResponse) */ { public: - inline GetCompassHeadingResponse() : GetCompassHeadingResponse(nullptr) {} - ~GetCompassHeadingResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetCompassHeadingResponse(::google::protobuf::internal::ConstantInitialized); + inline GetLinearVelocityResponse() : GetLinearVelocityResponse(nullptr) {} + ~GetLinearVelocityResponse() override; + explicit PROTOBUF_CONSTEXPR GetLinearVelocityResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetCompassHeadingResponse(const GetCompassHeadingResponse& from) - : GetCompassHeadingResponse(nullptr, from) {} - GetCompassHeadingResponse(GetCompassHeadingResponse&& from) noexcept - : GetCompassHeadingResponse() { + GetLinearVelocityResponse(const GetLinearVelocityResponse& from); + GetLinearVelocityResponse(GetLinearVelocityResponse&& from) noexcept + : GetLinearVelocityResponse() { *this = ::std::move(from); } - inline GetCompassHeadingResponse& operator=(const GetCompassHeadingResponse& from) { + inline GetLinearVelocityResponse& operator=(const GetLinearVelocityResponse& from) { CopyFrom(from); return *this; } - inline GetCompassHeadingResponse& operator=(GetCompassHeadingResponse&& from) noexcept { + inline GetLinearVelocityResponse& operator=(GetLinearVelocityResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -403,200 +334,149 @@ class GetCompassHeadingResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetCompassHeadingResponse& default_instance() { + static const GetLinearVelocityResponse& default_instance() { return *internal_default_instance(); } - static inline const GetCompassHeadingResponse* internal_default_instance() { - return reinterpret_cast( - &_GetCompassHeadingResponse_default_instance_); + static inline const GetLinearVelocityResponse* internal_default_instance() { + return reinterpret_cast( + &_GetLinearVelocityResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 5; + 1; - friend void swap(GetCompassHeadingResponse& a, GetCompassHeadingResponse& b) { + friend void swap(GetLinearVelocityResponse& a, GetLinearVelocityResponse& b) { a.Swap(&b); } - inline void Swap(GetCompassHeadingResponse* other) { + inline void Swap(GetLinearVelocityResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetCompassHeadingResponse* other) { + void UnsafeArenaSwap(GetLinearVelocityResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetCompassHeadingResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetCompassHeadingResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetCompassHeadingResponse& from) { - GetCompassHeadingResponse::MergeImpl(*this, from); + GetLinearVelocityResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetLinearVelocityResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetLinearVelocityResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetCompassHeadingResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetLinearVelocityResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.movementsensor.v1.GetCompassHeadingResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.movementsensor.v1.GetLinearVelocityResponse"; } protected: - explicit GetCompassHeadingResponse(::google::protobuf::Arena* arena); - GetCompassHeadingResponse(::google::protobuf::Arena* arena, const GetCompassHeadingResponse& from); + explicit GetLinearVelocityResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kValueFieldNumber = 1, + kLinearVelocityFieldNumber = 1, }; - // double value = 1 [json_name = "value"]; - void clear_value() ; - double value() const; - void set_value(double value); - + // .viam.common.v1.Vector3 linear_velocity = 1 [json_name = "linearVelocity"]; + bool has_linear_velocity() const; private: - double _internal_value() const; - void _internal_set_value(double value); - + bool _internal_has_linear_velocity() const; public: - // @@protoc_insertion_point(class_scope:viam.component.movementsensor.v1.GetCompassHeadingResponse) + void clear_linear_velocity(); + const ::viam::common::v1::Vector3& linear_velocity() const; + PROTOBUF_NODISCARD ::viam::common::v1::Vector3* release_linear_velocity(); + ::viam::common::v1::Vector3* mutable_linear_velocity(); + void set_allocated_linear_velocity(::viam::common::v1::Vector3* linear_velocity); + private: + const ::viam::common::v1::Vector3& _internal_linear_velocity() const; + ::viam::common::v1::Vector3* _internal_mutable_linear_velocity(); + public: + void unsafe_arena_set_allocated_linear_velocity( + ::viam::common::v1::Vector3* linear_velocity); + ::viam::common::v1::Vector3* unsafe_arena_release_linear_velocity(); + + // @@protoc_insertion_point(class_scope:viam.component.movementsensor.v1.GetLinearVelocityResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - double value_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto; -};// ------------------------------------------------------------------- - -class GetAccuracyResponse_AccuracyEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry< - GetAccuracyResponse_AccuracyEntry_DoNotUse, std::string, float, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT> { - public: - using SuperType = ::google::protobuf::internal::MapEntry< - GetAccuracyResponse_AccuracyEntry_DoNotUse, std::string, float, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>; - GetAccuracyResponse_AccuracyEntry_DoNotUse(); - template - explicit PROTOBUF_CONSTEXPR GetAccuracyResponse_AccuracyEntry_DoNotUse( - ::google::protobuf::internal::ConstantInitialized); - explicit GetAccuracyResponse_AccuracyEntry_DoNotUse(::google::protobuf::Arena* arena); - static const GetAccuracyResponse_AccuracyEntry_DoNotUse* internal_default_instance() { - return reinterpret_cast( - &_GetAccuracyResponse_AccuracyEntry_DoNotUse_default_instance_); - } - static bool ValidateKey(std::string* s) { - return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "viam.component.movementsensor.v1.GetAccuracyResponse.AccuracyEntry.key"); - } - static bool ValidateValue(void*) { return true; } - ::google::protobuf::Metadata GetMetadata() const final; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::viam::common::v1::Vector3* linear_velocity_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto; }; // ------------------------------------------------------------------- -class GetPropertiesRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.movementsensor.v1.GetPropertiesRequest) */ { +class GetAngularVelocityRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.movementsensor.v1.GetAngularVelocityRequest) */ { public: - inline GetPropertiesRequest() : GetPropertiesRequest(nullptr) {} - ~GetPropertiesRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetPropertiesRequest(::google::protobuf::internal::ConstantInitialized); + inline GetAngularVelocityRequest() : GetAngularVelocityRequest(nullptr) {} + ~GetAngularVelocityRequest() override; + explicit PROTOBUF_CONSTEXPR GetAngularVelocityRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetPropertiesRequest(const GetPropertiesRequest& from) - : GetPropertiesRequest(nullptr, from) {} - GetPropertiesRequest(GetPropertiesRequest&& from) noexcept - : GetPropertiesRequest() { + GetAngularVelocityRequest(const GetAngularVelocityRequest& from); + GetAngularVelocityRequest(GetAngularVelocityRequest&& from) noexcept + : GetAngularVelocityRequest() { *this = ::std::move(from); } - inline GetPropertiesRequest& operator=(const GetPropertiesRequest& from) { + inline GetAngularVelocityRequest& operator=(const GetAngularVelocityRequest& from) { CopyFrom(from); return *this; } - inline GetPropertiesRequest& operator=(GetPropertiesRequest&& from) noexcept { + inline GetAngularVelocityRequest& operator=(GetAngularVelocityRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -606,99 +486,88 @@ class GetPropertiesRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetPropertiesRequest& default_instance() { + static const GetAngularVelocityRequest& default_instance() { return *internal_default_instance(); } - static inline const GetPropertiesRequest* internal_default_instance() { - return reinterpret_cast( - &_GetPropertiesRequest_default_instance_); + static inline const GetAngularVelocityRequest* internal_default_instance() { + return reinterpret_cast( + &_GetAngularVelocityRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 10; + 2; - friend void swap(GetPropertiesRequest& a, GetPropertiesRequest& b) { + friend void swap(GetAngularVelocityRequest& a, GetAngularVelocityRequest& b) { a.Swap(&b); } - inline void Swap(GetPropertiesRequest* other) { + inline void Swap(GetAngularVelocityRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetPropertiesRequest* other) { + void UnsafeArenaSwap(GetAngularVelocityRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetPropertiesRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetPropertiesRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetPropertiesRequest& from) { - GetPropertiesRequest::MergeImpl(*this, from); + GetAngularVelocityRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetAngularVelocityRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetAngularVelocityRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetPropertiesRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetAngularVelocityRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.movementsensor.v1.GetPropertiesRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.movementsensor.v1.GetAngularVelocityRequest"; } protected: - explicit GetPropertiesRequest(::google::protobuf::Arena* arena); - GetPropertiesRequest(::google::protobuf::Arena* arena, const GetPropertiesRequest& from); + explicit GetAngularVelocityRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -709,93 +578,73 @@ class GetPropertiesRequest final : kExtraFieldNumber = 99, }; // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + 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; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - + bool _internal_has_extra() const; public: - // @@protoc_insertion_point(class_scope:viam.component.movementsensor.v1.GetPropertiesRequest) + 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.movementsensor.v1.GetAngularVelocityRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 2, 1, - 66, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + 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_2fmovementsensor_2fv1_2fmovementsensor_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetPositionResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.movementsensor.v1.GetPositionResponse) */ { +class GetAngularVelocityResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.movementsensor.v1.GetAngularVelocityResponse) */ { public: - inline GetPositionResponse() : GetPositionResponse(nullptr) {} - ~GetPositionResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetPositionResponse(::google::protobuf::internal::ConstantInitialized); + inline GetAngularVelocityResponse() : GetAngularVelocityResponse(nullptr) {} + ~GetAngularVelocityResponse() override; + explicit PROTOBUF_CONSTEXPR GetAngularVelocityResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetPositionResponse(const GetPositionResponse& from) - : GetPositionResponse(nullptr, from) {} - GetPositionResponse(GetPositionResponse&& from) noexcept - : GetPositionResponse() { + GetAngularVelocityResponse(const GetAngularVelocityResponse& from); + GetAngularVelocityResponse(GetAngularVelocityResponse&& from) noexcept + : GetAngularVelocityResponse() { *this = ::std::move(from); } - inline GetPositionResponse& operator=(const GetPositionResponse& from) { + inline GetAngularVelocityResponse& operator=(const GetAngularVelocityResponse& from) { CopyFrom(from); return *this; } - inline GetPositionResponse& operator=(GetPositionResponse&& from) noexcept { + inline GetAngularVelocityResponse& operator=(GetAngularVelocityResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -805,190 +654,149 @@ class GetPositionResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetPositionResponse& default_instance() { + static const GetAngularVelocityResponse& default_instance() { return *internal_default_instance(); } - static inline const GetPositionResponse* internal_default_instance() { - return reinterpret_cast( - &_GetPositionResponse_default_instance_); + static inline const GetAngularVelocityResponse* internal_default_instance() { + return reinterpret_cast( + &_GetAngularVelocityResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 9; + 3; - friend void swap(GetPositionResponse& a, GetPositionResponse& b) { + friend void swap(GetAngularVelocityResponse& a, GetAngularVelocityResponse& b) { a.Swap(&b); } - inline void Swap(GetPositionResponse* other) { + inline void Swap(GetAngularVelocityResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetPositionResponse* other) { + void UnsafeArenaSwap(GetAngularVelocityResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetPositionResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetPositionResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetPositionResponse& from) { - GetPositionResponse::MergeImpl(*this, from); + GetAngularVelocityResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetAngularVelocityResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetAngularVelocityResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetPositionResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetAngularVelocityResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.movementsensor.v1.GetPositionResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.movementsensor.v1.GetAngularVelocityResponse"; } protected: - explicit GetPositionResponse(::google::protobuf::Arena* arena); - GetPositionResponse(::google::protobuf::Arena* arena, const GetPositionResponse& from); + explicit GetAngularVelocityResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kCoordinateFieldNumber = 1, - kAltitudeMFieldNumber = 2, + kAngularVelocityFieldNumber = 1, }; - // .viam.common.v1.GeoPoint coordinate = 1 [json_name = "coordinate"]; - bool has_coordinate() const; - void clear_coordinate() ; - const ::viam::common::v1::GeoPoint& coordinate() const; - PROTOBUF_NODISCARD ::viam::common::v1::GeoPoint* release_coordinate(); - ::viam::common::v1::GeoPoint* mutable_coordinate(); - void set_allocated_coordinate(::viam::common::v1::GeoPoint* value); - void unsafe_arena_set_allocated_coordinate(::viam::common::v1::GeoPoint* value); - ::viam::common::v1::GeoPoint* unsafe_arena_release_coordinate(); - + // .viam.common.v1.Vector3 angular_velocity = 1 [json_name = "angularVelocity"]; + bool has_angular_velocity() const; private: - const ::viam::common::v1::GeoPoint& _internal_coordinate() const; - ::viam::common::v1::GeoPoint* _internal_mutable_coordinate(); - + bool _internal_has_angular_velocity() const; public: - // float altitude_m = 2 [json_name = "altitudeM"]; - void clear_altitude_m() ; - float altitude_m() const; - void set_altitude_m(float value); - + void clear_angular_velocity(); + const ::viam::common::v1::Vector3& angular_velocity() const; + PROTOBUF_NODISCARD ::viam::common::v1::Vector3* release_angular_velocity(); + ::viam::common::v1::Vector3* mutable_angular_velocity(); + void set_allocated_angular_velocity(::viam::common::v1::Vector3* angular_velocity); private: - float _internal_altitude_m() const; - void _internal_set_altitude_m(float value); - + const ::viam::common::v1::Vector3& _internal_angular_velocity() const; + ::viam::common::v1::Vector3* _internal_mutable_angular_velocity(); public: - // @@protoc_insertion_point(class_scope:viam.component.movementsensor.v1.GetPositionResponse) + void unsafe_arena_set_allocated_angular_velocity( + ::viam::common::v1::Vector3* angular_velocity); + ::viam::common::v1::Vector3* unsafe_arena_release_angular_velocity(); + + // @@protoc_insertion_point(class_scope:viam.component.movementsensor.v1.GetAngularVelocityResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::viam::common::v1::GeoPoint* coordinate_; - float altitude_m_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::viam::common::v1::Vector3* angular_velocity_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetPositionRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.movementsensor.v1.GetPositionRequest) */ { +class GetCompassHeadingRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.movementsensor.v1.GetCompassHeadingRequest) */ { public: - inline GetPositionRequest() : GetPositionRequest(nullptr) {} - ~GetPositionRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetPositionRequest(::google::protobuf::internal::ConstantInitialized); + inline GetCompassHeadingRequest() : GetCompassHeadingRequest(nullptr) {} + ~GetCompassHeadingRequest() override; + explicit PROTOBUF_CONSTEXPR GetCompassHeadingRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetPositionRequest(const GetPositionRequest& from) - : GetPositionRequest(nullptr, from) {} - GetPositionRequest(GetPositionRequest&& from) noexcept - : GetPositionRequest() { + GetCompassHeadingRequest(const GetCompassHeadingRequest& from); + GetCompassHeadingRequest(GetCompassHeadingRequest&& from) noexcept + : GetCompassHeadingRequest() { *this = ::std::move(from); } - inline GetPositionRequest& operator=(const GetPositionRequest& from) { + inline GetCompassHeadingRequest& operator=(const GetCompassHeadingRequest& from) { CopyFrom(from); return *this; } - inline GetPositionRequest& operator=(GetPositionRequest&& from) noexcept { + inline GetCompassHeadingRequest& operator=(GetCompassHeadingRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -998,99 +806,88 @@ class GetPositionRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetPositionRequest& default_instance() { + static const GetCompassHeadingRequest& default_instance() { return *internal_default_instance(); } - static inline const GetPositionRequest* internal_default_instance() { - return reinterpret_cast( - &_GetPositionRequest_default_instance_); + static inline const GetCompassHeadingRequest* internal_default_instance() { + return reinterpret_cast( + &_GetCompassHeadingRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 8; + 4; - friend void swap(GetPositionRequest& a, GetPositionRequest& b) { + friend void swap(GetCompassHeadingRequest& a, GetCompassHeadingRequest& b) { a.Swap(&b); } - inline void Swap(GetPositionRequest* other) { + inline void Swap(GetCompassHeadingRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetPositionRequest* other) { + void UnsafeArenaSwap(GetCompassHeadingRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetPositionRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetPositionRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetPositionRequest& from) { - GetPositionRequest::MergeImpl(*this, from); + GetCompassHeadingRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetCompassHeadingRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetCompassHeadingRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetPositionRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetCompassHeadingRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.movementsensor.v1.GetPositionRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.movementsensor.v1.GetCompassHeadingRequest"; } protected: - explicit GetPositionRequest(::google::protobuf::Arena* arena); - GetPositionRequest(::google::protobuf::Arena* arena, const GetPositionRequest& from); + explicit GetCompassHeadingRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1101,93 +898,73 @@ class GetPositionRequest final : kExtraFieldNumber = 99, }; // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + 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; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - + bool _internal_has_extra() const; public: - // @@protoc_insertion_point(class_scope:viam.component.movementsensor.v1.GetPositionRequest) + 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.movementsensor.v1.GetCompassHeadingRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 2, 1, - 64, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + 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_2fmovementsensor_2fv1_2fmovementsensor_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetOrientationResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.movementsensor.v1.GetOrientationResponse) */ { +class GetCompassHeadingResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.movementsensor.v1.GetCompassHeadingResponse) */ { public: - inline GetOrientationResponse() : GetOrientationResponse(nullptr) {} - ~GetOrientationResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetOrientationResponse(::google::protobuf::internal::ConstantInitialized); + inline GetCompassHeadingResponse() : GetCompassHeadingResponse(nullptr) {} + ~GetCompassHeadingResponse() override; + explicit PROTOBUF_CONSTEXPR GetCompassHeadingResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetOrientationResponse(const GetOrientationResponse& from) - : GetOrientationResponse(nullptr, from) {} - GetOrientationResponse(GetOrientationResponse&& from) noexcept - : GetOrientationResponse() { + GetCompassHeadingResponse(const GetCompassHeadingResponse& from); + GetCompassHeadingResponse(GetCompassHeadingResponse&& from) noexcept + : GetCompassHeadingResponse() { *this = ::std::move(from); } - inline GetOrientationResponse& operator=(const GetOrientationResponse& from) { + inline GetCompassHeadingResponse& operator=(const GetCompassHeadingResponse& from) { CopyFrom(from); return *this; } - inline GetOrientationResponse& operator=(GetOrientationResponse&& from) noexcept { + inline GetCompassHeadingResponse& operator=(GetCompassHeadingResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1197,164 +974,126 @@ class GetOrientationResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetOrientationResponse& default_instance() { + static const GetCompassHeadingResponse& default_instance() { return *internal_default_instance(); } - static inline const GetOrientationResponse* internal_default_instance() { - return reinterpret_cast( - &_GetOrientationResponse_default_instance_); + static inline const GetCompassHeadingResponse* internal_default_instance() { + return reinterpret_cast( + &_GetCompassHeadingResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 7; + 5; - friend void swap(GetOrientationResponse& a, GetOrientationResponse& b) { + friend void swap(GetCompassHeadingResponse& a, GetCompassHeadingResponse& b) { a.Swap(&b); } - inline void Swap(GetOrientationResponse* other) { + inline void Swap(GetCompassHeadingResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetOrientationResponse* other) { + void UnsafeArenaSwap(GetCompassHeadingResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetOrientationResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetOrientationResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetOrientationResponse& from) { - GetOrientationResponse::MergeImpl(*this, from); + GetCompassHeadingResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetCompassHeadingResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetCompassHeadingResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetOrientationResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetCompassHeadingResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.movementsensor.v1.GetOrientationResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.movementsensor.v1.GetCompassHeadingResponse"; } protected: - explicit GetOrientationResponse(::google::protobuf::Arena* arena); - GetOrientationResponse(::google::protobuf::Arena* arena, const GetOrientationResponse& from); + explicit GetCompassHeadingResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kOrientationFieldNumber = 1, + kValueFieldNumber = 1, }; - // .viam.common.v1.Orientation orientation = 1 [json_name = "orientation"]; - bool has_orientation() const; - void clear_orientation() ; - const ::viam::common::v1::Orientation& orientation() const; - PROTOBUF_NODISCARD ::viam::common::v1::Orientation* release_orientation(); - ::viam::common::v1::Orientation* mutable_orientation(); - void set_allocated_orientation(::viam::common::v1::Orientation* value); - void unsafe_arena_set_allocated_orientation(::viam::common::v1::Orientation* value); - ::viam::common::v1::Orientation* unsafe_arena_release_orientation(); - + // double value = 1 [json_name = "value"]; + void clear_value(); + double value() const; + void set_value(double value); private: - const ::viam::common::v1::Orientation& _internal_orientation() const; - ::viam::common::v1::Orientation* _internal_mutable_orientation(); - + double _internal_value() const; + void _internal_set_value(double value); public: - // @@protoc_insertion_point(class_scope:viam.component.movementsensor.v1.GetOrientationResponse) + + // @@protoc_insertion_point(class_scope:viam.component.movementsensor.v1.GetCompassHeadingResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::viam::common::v1::Orientation* orientation_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + double value_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class GetOrientationRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.movementsensor.v1.GetOrientationRequest) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.movementsensor.v1.GetOrientationRequest) */ { public: inline GetOrientationRequest() : GetOrientationRequest(nullptr) {} ~GetOrientationRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetOrientationRequest(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR GetOrientationRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetOrientationRequest(const GetOrientationRequest& from) - : GetOrientationRequest(nullptr, from) {} + GetOrientationRequest(const GetOrientationRequest& from); GetOrientationRequest(GetOrientationRequest&& from) noexcept : GetOrientationRequest() { *this = ::std::move(from); @@ -1366,9 +1105,9 @@ class GetOrientationRequest final : } inline GetOrientationRequest& operator=(GetOrientationRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1378,22 +1117,13 @@ class GetOrientationRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const GetOrientationRequest& default_instance() { @@ -1412,65 +1142,63 @@ class GetOrientationRequest final : inline void Swap(GetOrientationRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(GetOrientationRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetOrientationRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + GetOrientationRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const GetOrientationRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetOrientationRequest& from) { - GetOrientationRequest::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetOrientationRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(GetOrientationRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "viam.component.movementsensor.v1.GetOrientationRequest"; } protected: - explicit GetOrientationRequest(::google::protobuf::Arena* arena); - GetOrientationRequest(::google::protobuf::Arena* arena, const GetOrientationRequest& from); + explicit GetOrientationRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1481,93 +1209,73 @@ class GetOrientationRequest final : kExtraFieldNumber = 99, }; // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + 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; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - + 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.movementsensor.v1.GetOrientationRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 2, 1, - 67, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + 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_2fmovementsensor_2fv1_2fmovementsensor_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetLinearVelocityResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.movementsensor.v1.GetLinearVelocityResponse) */ { +class GetOrientationResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.movementsensor.v1.GetOrientationResponse) */ { public: - inline GetLinearVelocityResponse() : GetLinearVelocityResponse(nullptr) {} - ~GetLinearVelocityResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetLinearVelocityResponse(::google::protobuf::internal::ConstantInitialized); + inline GetOrientationResponse() : GetOrientationResponse(nullptr) {} + ~GetOrientationResponse() override; + explicit PROTOBUF_CONSTEXPR GetOrientationResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetLinearVelocityResponse(const GetLinearVelocityResponse& from) - : GetLinearVelocityResponse(nullptr, from) {} - GetLinearVelocityResponse(GetLinearVelocityResponse&& from) noexcept - : GetLinearVelocityResponse() { + GetOrientationResponse(const GetOrientationResponse& from); + GetOrientationResponse(GetOrientationResponse&& from) noexcept + : GetOrientationResponse() { *this = ::std::move(from); } - inline GetLinearVelocityResponse& operator=(const GetLinearVelocityResponse& from) { + inline GetOrientationResponse& operator=(const GetOrientationResponse& from) { CopyFrom(from); return *this; } - inline GetLinearVelocityResponse& operator=(GetLinearVelocityResponse&& from) noexcept { + inline GetOrientationResponse& operator=(GetOrientationResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1577,178 +1285,149 @@ class GetLinearVelocityResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetLinearVelocityResponse& default_instance() { + static const GetOrientationResponse& default_instance() { return *internal_default_instance(); } - static inline const GetLinearVelocityResponse* internal_default_instance() { - return reinterpret_cast( - &_GetLinearVelocityResponse_default_instance_); + static inline const GetOrientationResponse* internal_default_instance() { + return reinterpret_cast( + &_GetOrientationResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 1; + 7; - friend void swap(GetLinearVelocityResponse& a, GetLinearVelocityResponse& b) { + friend void swap(GetOrientationResponse& a, GetOrientationResponse& b) { a.Swap(&b); } - inline void Swap(GetLinearVelocityResponse* other) { + inline void Swap(GetOrientationResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetLinearVelocityResponse* other) { + void UnsafeArenaSwap(GetOrientationResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetLinearVelocityResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetLinearVelocityResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetLinearVelocityResponse& from) { - GetLinearVelocityResponse::MergeImpl(*this, from); + GetOrientationResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetOrientationResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetOrientationResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetLinearVelocityResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetOrientationResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.movementsensor.v1.GetLinearVelocityResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.movementsensor.v1.GetOrientationResponse"; } protected: - explicit GetLinearVelocityResponse(::google::protobuf::Arena* arena); - GetLinearVelocityResponse(::google::protobuf::Arena* arena, const GetLinearVelocityResponse& from); + explicit GetOrientationResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kLinearVelocityFieldNumber = 1, + kOrientationFieldNumber = 1, }; - // .viam.common.v1.Vector3 linear_velocity = 1 [json_name = "linearVelocity"]; - bool has_linear_velocity() const; - void clear_linear_velocity() ; - const ::viam::common::v1::Vector3& linear_velocity() const; - PROTOBUF_NODISCARD ::viam::common::v1::Vector3* release_linear_velocity(); - ::viam::common::v1::Vector3* mutable_linear_velocity(); - void set_allocated_linear_velocity(::viam::common::v1::Vector3* value); - void unsafe_arena_set_allocated_linear_velocity(::viam::common::v1::Vector3* value); - ::viam::common::v1::Vector3* unsafe_arena_release_linear_velocity(); - + // .viam.common.v1.Orientation orientation = 1 [json_name = "orientation"]; + bool has_orientation() const; private: - const ::viam::common::v1::Vector3& _internal_linear_velocity() const; - ::viam::common::v1::Vector3* _internal_mutable_linear_velocity(); - + bool _internal_has_orientation() const; public: - // @@protoc_insertion_point(class_scope:viam.component.movementsensor.v1.GetLinearVelocityResponse) + void clear_orientation(); + const ::viam::common::v1::Orientation& orientation() const; + PROTOBUF_NODISCARD ::viam::common::v1::Orientation* release_orientation(); + ::viam::common::v1::Orientation* mutable_orientation(); + void set_allocated_orientation(::viam::common::v1::Orientation* orientation); + private: + const ::viam::common::v1::Orientation& _internal_orientation() const; + ::viam::common::v1::Orientation* _internal_mutable_orientation(); + public: + void unsafe_arena_set_allocated_orientation( + ::viam::common::v1::Orientation* orientation); + ::viam::common::v1::Orientation* unsafe_arena_release_orientation(); + + // @@protoc_insertion_point(class_scope:viam.component.movementsensor.v1.GetOrientationResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::viam::common::v1::Vector3* linear_velocity_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::viam::common::v1::Orientation* orientation_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetLinearVelocityRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.movementsensor.v1.GetLinearVelocityRequest) */ { +class GetPositionRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.movementsensor.v1.GetPositionRequest) */ { public: - inline GetLinearVelocityRequest() : GetLinearVelocityRequest(nullptr) {} - ~GetLinearVelocityRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetLinearVelocityRequest(::google::protobuf::internal::ConstantInitialized); + inline GetPositionRequest() : GetPositionRequest(nullptr) {} + ~GetPositionRequest() override; + explicit PROTOBUF_CONSTEXPR GetPositionRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetLinearVelocityRequest(const GetLinearVelocityRequest& from) - : GetLinearVelocityRequest(nullptr, from) {} - GetLinearVelocityRequest(GetLinearVelocityRequest&& from) noexcept - : GetLinearVelocityRequest() { + GetPositionRequest(const GetPositionRequest& from); + GetPositionRequest(GetPositionRequest&& from) noexcept + : GetPositionRequest() { *this = ::std::move(from); } - inline GetLinearVelocityRequest& operator=(const GetLinearVelocityRequest& from) { + inline GetPositionRequest& operator=(const GetPositionRequest& from) { CopyFrom(from); return *this; } - inline GetLinearVelocityRequest& operator=(GetLinearVelocityRequest&& from) noexcept { + inline GetPositionRequest& operator=(GetPositionRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1758,99 +1437,88 @@ class GetLinearVelocityRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetLinearVelocityRequest& default_instance() { + static const GetPositionRequest& default_instance() { return *internal_default_instance(); } - static inline const GetLinearVelocityRequest* internal_default_instance() { - return reinterpret_cast( - &_GetLinearVelocityRequest_default_instance_); + static inline const GetPositionRequest* internal_default_instance() { + return reinterpret_cast( + &_GetPositionRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 0; + 8; - friend void swap(GetLinearVelocityRequest& a, GetLinearVelocityRequest& b) { + friend void swap(GetPositionRequest& a, GetPositionRequest& b) { a.Swap(&b); } - inline void Swap(GetLinearVelocityRequest* other) { + inline void Swap(GetPositionRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetLinearVelocityRequest* other) { + void UnsafeArenaSwap(GetPositionRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetLinearVelocityRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetLinearVelocityRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetLinearVelocityRequest& from) { - GetLinearVelocityRequest::MergeImpl(*this, from); + GetPositionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPositionRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetPositionRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetLinearVelocityRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetPositionRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.movementsensor.v1.GetLinearVelocityRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.movementsensor.v1.GetPositionRequest"; } protected: - explicit GetLinearVelocityRequest(::google::protobuf::Arena* arena); - GetLinearVelocityRequest(::google::protobuf::Arena* arena, const GetLinearVelocityRequest& from); + explicit GetPositionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1861,93 +1529,73 @@ class GetLinearVelocityRequest final : kExtraFieldNumber = 99, }; // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + 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; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - + bool _internal_has_extra() const; public: - // @@protoc_insertion_point(class_scope:viam.component.movementsensor.v1.GetLinearVelocityRequest) + 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.movementsensor.v1.GetPositionRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 2, 1, - 70, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + 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_2fmovementsensor_2fv1_2fmovementsensor_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetLinearAccelerationResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.movementsensor.v1.GetLinearAccelerationResponse) */ { +class GetPositionResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.movementsensor.v1.GetPositionResponse) */ { public: - inline GetLinearAccelerationResponse() : GetLinearAccelerationResponse(nullptr) {} - ~GetLinearAccelerationResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetLinearAccelerationResponse(::google::protobuf::internal::ConstantInitialized); + inline GetPositionResponse() : GetPositionResponse(nullptr) {} + ~GetPositionResponse() override; + explicit PROTOBUF_CONSTEXPR GetPositionResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetLinearAccelerationResponse(const GetLinearAccelerationResponse& from) - : GetLinearAccelerationResponse(nullptr, from) {} - GetLinearAccelerationResponse(GetLinearAccelerationResponse&& from) noexcept - : GetLinearAccelerationResponse() { + GetPositionResponse(const GetPositionResponse& from); + GetPositionResponse(GetPositionResponse&& from) noexcept + : GetPositionResponse() { *this = ::std::move(from); } - inline GetLinearAccelerationResponse& operator=(const GetLinearAccelerationResponse& from) { + inline GetPositionResponse& operator=(const GetPositionResponse& from) { CopyFrom(from); return *this; } - inline GetLinearAccelerationResponse& operator=(GetLinearAccelerationResponse&& from) noexcept { + inline GetPositionResponse& operator=(GetPositionResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1957,178 +1605,160 @@ class GetLinearAccelerationResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetLinearAccelerationResponse& default_instance() { + static const GetPositionResponse& default_instance() { return *internal_default_instance(); } - static inline const GetLinearAccelerationResponse* internal_default_instance() { - return reinterpret_cast( - &_GetLinearAccelerationResponse_default_instance_); + static inline const GetPositionResponse* internal_default_instance() { + return reinterpret_cast( + &_GetPositionResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 16; + 9; - friend void swap(GetLinearAccelerationResponse& a, GetLinearAccelerationResponse& b) { + friend void swap(GetPositionResponse& a, GetPositionResponse& b) { a.Swap(&b); } - inline void Swap(GetLinearAccelerationResponse* other) { + inline void Swap(GetPositionResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetLinearAccelerationResponse* other) { + void UnsafeArenaSwap(GetPositionResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetLinearAccelerationResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetLinearAccelerationResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetLinearAccelerationResponse& from) { - GetLinearAccelerationResponse::MergeImpl(*this, from); + GetPositionResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPositionResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetPositionResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetLinearAccelerationResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetPositionResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.movementsensor.v1.GetLinearAccelerationResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.movementsensor.v1.GetPositionResponse"; } protected: - explicit GetLinearAccelerationResponse(::google::protobuf::Arena* arena); - GetLinearAccelerationResponse(::google::protobuf::Arena* arena, const GetLinearAccelerationResponse& from); + explicit GetPositionResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kLinearAccelerationFieldNumber = 1, + kCoordinateFieldNumber = 1, + kAltitudeMFieldNumber = 2, }; - // .viam.common.v1.Vector3 linear_acceleration = 1 [json_name = "linearAcceleration"]; - bool has_linear_acceleration() const; - void clear_linear_acceleration() ; - const ::viam::common::v1::Vector3& linear_acceleration() const; - PROTOBUF_NODISCARD ::viam::common::v1::Vector3* release_linear_acceleration(); - ::viam::common::v1::Vector3* mutable_linear_acceleration(); - void set_allocated_linear_acceleration(::viam::common::v1::Vector3* value); - void unsafe_arena_set_allocated_linear_acceleration(::viam::common::v1::Vector3* value); - ::viam::common::v1::Vector3* unsafe_arena_release_linear_acceleration(); - + // .viam.common.v1.GeoPoint coordinate = 1 [json_name = "coordinate"]; + bool has_coordinate() const; private: - const ::viam::common::v1::Vector3& _internal_linear_acceleration() const; - ::viam::common::v1::Vector3* _internal_mutable_linear_acceleration(); + bool _internal_has_coordinate() const; + public: + void clear_coordinate(); + const ::viam::common::v1::GeoPoint& coordinate() const; + PROTOBUF_NODISCARD ::viam::common::v1::GeoPoint* release_coordinate(); + ::viam::common::v1::GeoPoint* mutable_coordinate(); + void set_allocated_coordinate(::viam::common::v1::GeoPoint* coordinate); + private: + const ::viam::common::v1::GeoPoint& _internal_coordinate() const; + ::viam::common::v1::GeoPoint* _internal_mutable_coordinate(); + public: + void unsafe_arena_set_allocated_coordinate( + ::viam::common::v1::GeoPoint* coordinate); + ::viam::common::v1::GeoPoint* unsafe_arena_release_coordinate(); + // float altitude_m = 2 [json_name = "altitudeM"]; + void clear_altitude_m(); + float altitude_m() const; + void set_altitude_m(float value); + private: + float _internal_altitude_m() const; + void _internal_set_altitude_m(float value); public: - // @@protoc_insertion_point(class_scope:viam.component.movementsensor.v1.GetLinearAccelerationResponse) + + // @@protoc_insertion_point(class_scope:viam.component.movementsensor.v1.GetPositionResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::viam::common::v1::Vector3* linear_acceleration_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::viam::common::v1::GeoPoint* coordinate_; + float altitude_m_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetLinearAccelerationRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.movementsensor.v1.GetLinearAccelerationRequest) */ { +class GetPropertiesRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.movementsensor.v1.GetPropertiesRequest) */ { public: - inline GetLinearAccelerationRequest() : GetLinearAccelerationRequest(nullptr) {} - ~GetLinearAccelerationRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetLinearAccelerationRequest(::google::protobuf::internal::ConstantInitialized); + inline GetPropertiesRequest() : GetPropertiesRequest(nullptr) {} + ~GetPropertiesRequest() override; + explicit PROTOBUF_CONSTEXPR GetPropertiesRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetLinearAccelerationRequest(const GetLinearAccelerationRequest& from) - : GetLinearAccelerationRequest(nullptr, from) {} - GetLinearAccelerationRequest(GetLinearAccelerationRequest&& from) noexcept - : GetLinearAccelerationRequest() { + GetPropertiesRequest(const GetPropertiesRequest& from); + GetPropertiesRequest(GetPropertiesRequest&& from) noexcept + : GetPropertiesRequest() { *this = ::std::move(from); } - inline GetLinearAccelerationRequest& operator=(const GetLinearAccelerationRequest& from) { + inline GetPropertiesRequest& operator=(const GetPropertiesRequest& from) { CopyFrom(from); return *this; } - inline GetLinearAccelerationRequest& operator=(GetLinearAccelerationRequest&& from) noexcept { + inline GetPropertiesRequest& operator=(GetPropertiesRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2138,99 +1768,88 @@ class GetLinearAccelerationRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetLinearAccelerationRequest& default_instance() { + static const GetPropertiesRequest& default_instance() { return *internal_default_instance(); } - static inline const GetLinearAccelerationRequest* internal_default_instance() { - return reinterpret_cast( - &_GetLinearAccelerationRequest_default_instance_); + static inline const GetPropertiesRequest* internal_default_instance() { + return reinterpret_cast( + &_GetPropertiesRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 15; + 10; - friend void swap(GetLinearAccelerationRequest& a, GetLinearAccelerationRequest& b) { + friend void swap(GetPropertiesRequest& a, GetPropertiesRequest& b) { a.Swap(&b); } - inline void Swap(GetLinearAccelerationRequest* other) { + inline void Swap(GetPropertiesRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetLinearAccelerationRequest* other) { + void UnsafeArenaSwap(GetPropertiesRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetLinearAccelerationRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetLinearAccelerationRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetLinearAccelerationRequest& from) { - GetLinearAccelerationRequest::MergeImpl(*this, from); + GetPropertiesRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPropertiesRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetPropertiesRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetLinearAccelerationRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetPropertiesRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.movementsensor.v1.GetLinearAccelerationRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.movementsensor.v1.GetPropertiesRequest"; } protected: - explicit GetLinearAccelerationRequest(::google::protobuf::Arena* arena); - GetLinearAccelerationRequest(::google::protobuf::Arena* arena, const GetLinearAccelerationRequest& from); + explicit GetPropertiesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -2241,93 +1860,73 @@ class GetLinearAccelerationRequest final : kExtraFieldNumber = 99, }; // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + 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; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - + bool _internal_has_extra() const; public: - // @@protoc_insertion_point(class_scope:viam.component.movementsensor.v1.GetLinearAccelerationRequest) + 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.movementsensor.v1.GetPropertiesRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 2, 1, - 74, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + 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_2fmovementsensor_2fv1_2fmovementsensor_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetCompassHeadingRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.movementsensor.v1.GetCompassHeadingRequest) */ { +class GetPropertiesResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.movementsensor.v1.GetPropertiesResponse) */ { public: - inline GetCompassHeadingRequest() : GetCompassHeadingRequest(nullptr) {} - ~GetCompassHeadingRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetCompassHeadingRequest(::google::protobuf::internal::ConstantInitialized); + inline GetPropertiesResponse() : GetPropertiesResponse(nullptr) {} + ~GetPropertiesResponse() override; + explicit PROTOBUF_CONSTEXPR GetPropertiesResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetCompassHeadingRequest(const GetCompassHeadingRequest& from) - : GetCompassHeadingRequest(nullptr, from) {} - GetCompassHeadingRequest(GetCompassHeadingRequest&& from) noexcept - : GetCompassHeadingRequest() { + GetPropertiesResponse(const GetPropertiesResponse& from); + GetPropertiesResponse(GetPropertiesResponse&& from) noexcept + : GetPropertiesResponse() { *this = ::std::move(from); } - inline GetCompassHeadingRequest& operator=(const GetCompassHeadingRequest& from) { + inline GetPropertiesResponse& operator=(const GetPropertiesResponse& from) { CopyFrom(from); return *this; } - inline GetCompassHeadingRequest& operator=(GetCompassHeadingRequest&& from) noexcept { + inline GetPropertiesResponse& operator=(GetPropertiesResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2337,377 +1936,195 @@ class GetCompassHeadingRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetCompassHeadingRequest& default_instance() { + static const GetPropertiesResponse& default_instance() { return *internal_default_instance(); } - static inline const GetCompassHeadingRequest* internal_default_instance() { - return reinterpret_cast( - &_GetCompassHeadingRequest_default_instance_); + static inline const GetPropertiesResponse* internal_default_instance() { + return reinterpret_cast( + &_GetPropertiesResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 4; + 11; - friend void swap(GetCompassHeadingRequest& a, GetCompassHeadingRequest& b) { + friend void swap(GetPropertiesResponse& a, GetPropertiesResponse& b) { a.Swap(&b); } - inline void Swap(GetCompassHeadingRequest* other) { + inline void Swap(GetPropertiesResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetCompassHeadingRequest* other) { + void UnsafeArenaSwap(GetPropertiesResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetCompassHeadingRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetCompassHeadingRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetCompassHeadingRequest& from) { - GetCompassHeadingRequest::MergeImpl(*this, from); + GetPropertiesResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPropertiesResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetPropertiesResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetCompassHeadingRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetPropertiesResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.movementsensor.v1.GetCompassHeadingRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.movementsensor.v1.GetPropertiesResponse"; } protected: - explicit GetCompassHeadingRequest(::google::protobuf::Arena* arena); - GetCompassHeadingRequest(::google::protobuf::Arena* arena, const GetCompassHeadingRequest& from); + explicit GetPropertiesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kNameFieldNumber = 1, - kExtraFieldNumber = 99, + kLinearVelocitySupportedFieldNumber = 1, + kAngularVelocitySupportedFieldNumber = 2, + kOrientationSupportedFieldNumber = 3, + kPositionSupportedFieldNumber = 4, + kCompassHeadingSupportedFieldNumber = 5, + kLinearAccelerationSupportedFieldNumber = 6, }; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + // bool linear_velocity_supported = 1 [json_name = "linearVelocitySupported"]; + void clear_linear_velocity_supported(); + bool linear_velocity_supported() const; + void set_linear_velocity_supported(bool value); private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - + bool _internal_linear_velocity_supported() const; + void _internal_set_linear_velocity_supported(bool value); public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); + // bool angular_velocity_supported = 2 [json_name = "angularVelocitySupported"]; + void clear_angular_velocity_supported(); + bool angular_velocity_supported() const; + void set_angular_velocity_supported(bool value); private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - + bool _internal_angular_velocity_supported() const; + void _internal_set_angular_velocity_supported(bool value); public: - // @@protoc_insertion_point(class_scope:viam.component.movementsensor.v1.GetCompassHeadingRequest) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 2, 1, - 70, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto; -};// ------------------------------------------------------------------- - -class GetAngularVelocityResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.movementsensor.v1.GetAngularVelocityResponse) */ { - public: - inline GetAngularVelocityResponse() : GetAngularVelocityResponse(nullptr) {} - ~GetAngularVelocityResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetAngularVelocityResponse(::google::protobuf::internal::ConstantInitialized); - - inline GetAngularVelocityResponse(const GetAngularVelocityResponse& from) - : GetAngularVelocityResponse(nullptr, from) {} - GetAngularVelocityResponse(GetAngularVelocityResponse&& from) noexcept - : GetAngularVelocityResponse() { - *this = ::std::move(from); - } - - inline GetAngularVelocityResponse& operator=(const GetAngularVelocityResponse& from) { - CopyFrom(from); - return *this; - } - inline GetAngularVelocityResponse& operator=(GetAngularVelocityResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GetAngularVelocityResponse& default_instance() { - return *internal_default_instance(); - } - static inline const GetAngularVelocityResponse* internal_default_instance() { - return reinterpret_cast( - &_GetAngularVelocityResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - friend void swap(GetAngularVelocityResponse& a, GetAngularVelocityResponse& b) { - a.Swap(&b); - } - inline void Swap(GetAngularVelocityResponse* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetAngularVelocityResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GetAngularVelocityResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetAngularVelocityResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetAngularVelocityResponse& from) { - GetAngularVelocityResponse::MergeImpl(*this, from); - } + // bool orientation_supported = 3 [json_name = "orientationSupported"]; + void clear_orientation_supported(); + bool orientation_supported() const; + void set_orientation_supported(bool value); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + bool _internal_orientation_supported() const; + void _internal_set_orientation_supported(bool value); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + // bool position_supported = 4 [json_name = "positionSupported"]; + void clear_position_supported(); + bool position_supported() const; + void set_position_supported(bool value); private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetAngularVelocityResponse* other); + bool _internal_position_supported() const; + void _internal_set_position_supported(bool value); + public: + // bool compass_heading_supported = 5 [json_name = "compassHeadingSupported"]; + void clear_compass_heading_supported(); + bool compass_heading_supported() const; + void set_compass_heading_supported(bool value); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.movementsensor.v1.GetAngularVelocityResponse"; - } - protected: - explicit GetAngularVelocityResponse(::google::protobuf::Arena* arena); - GetAngularVelocityResponse(::google::protobuf::Arena* arena, const GetAngularVelocityResponse& from); + bool _internal_compass_heading_supported() const; + void _internal_set_compass_heading_supported(bool value); public: - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kAngularVelocityFieldNumber = 1, - }; - // .viam.common.v1.Vector3 angular_velocity = 1 [json_name = "angularVelocity"]; - bool has_angular_velocity() const; - void clear_angular_velocity() ; - const ::viam::common::v1::Vector3& angular_velocity() const; - PROTOBUF_NODISCARD ::viam::common::v1::Vector3* release_angular_velocity(); - ::viam::common::v1::Vector3* mutable_angular_velocity(); - void set_allocated_angular_velocity(::viam::common::v1::Vector3* value); - void unsafe_arena_set_allocated_angular_velocity(::viam::common::v1::Vector3* value); - ::viam::common::v1::Vector3* unsafe_arena_release_angular_velocity(); - + // bool linear_acceleration_supported = 6 [json_name = "linearAccelerationSupported"]; + void clear_linear_acceleration_supported(); + bool linear_acceleration_supported() const; + void set_linear_acceleration_supported(bool value); private: - const ::viam::common::v1::Vector3& _internal_angular_velocity() const; - ::viam::common::v1::Vector3* _internal_mutable_angular_velocity(); - + bool _internal_linear_acceleration_supported() const; + void _internal_set_linear_acceleration_supported(bool value); public: - // @@protoc_insertion_point(class_scope:viam.component.movementsensor.v1.GetAngularVelocityResponse) + + // @@protoc_insertion_point(class_scope:viam.component.movementsensor.v1.GetPropertiesResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::viam::common::v1::Vector3* angular_velocity_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + bool linear_velocity_supported_; + bool angular_velocity_supported_; + bool orientation_supported_; + bool position_supported_; + bool compass_heading_supported_; + bool linear_acceleration_supported_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetAngularVelocityRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.movementsensor.v1.GetAngularVelocityRequest) */ { +class GetAccuracyRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.movementsensor.v1.GetAccuracyRequest) */ { public: - inline GetAngularVelocityRequest() : GetAngularVelocityRequest(nullptr) {} - ~GetAngularVelocityRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetAngularVelocityRequest(::google::protobuf::internal::ConstantInitialized); + inline GetAccuracyRequest() : GetAccuracyRequest(nullptr) {} + ~GetAccuracyRequest() override; + explicit PROTOBUF_CONSTEXPR GetAccuracyRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetAngularVelocityRequest(const GetAngularVelocityRequest& from) - : GetAngularVelocityRequest(nullptr, from) {} - GetAngularVelocityRequest(GetAngularVelocityRequest&& from) noexcept - : GetAngularVelocityRequest() { + GetAccuracyRequest(const GetAccuracyRequest& from); + GetAccuracyRequest(GetAccuracyRequest&& from) noexcept + : GetAccuracyRequest() { *this = ::std::move(from); } - inline GetAngularVelocityRequest& operator=(const GetAngularVelocityRequest& from) { + inline GetAccuracyRequest& operator=(const GetAccuracyRequest& from) { CopyFrom(from); return *this; } - inline GetAngularVelocityRequest& operator=(GetAngularVelocityRequest&& from) noexcept { + inline GetAccuracyRequest& operator=(GetAccuracyRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2717,99 +2134,88 @@ class GetAngularVelocityRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetAngularVelocityRequest& default_instance() { + static const GetAccuracyRequest& default_instance() { return *internal_default_instance(); } - static inline const GetAngularVelocityRequest* internal_default_instance() { - return reinterpret_cast( - &_GetAngularVelocityRequest_default_instance_); + static inline const GetAccuracyRequest* internal_default_instance() { + return reinterpret_cast( + &_GetAccuracyRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 2; + 12; - friend void swap(GetAngularVelocityRequest& a, GetAngularVelocityRequest& b) { + friend void swap(GetAccuracyRequest& a, GetAccuracyRequest& b) { a.Swap(&b); } - inline void Swap(GetAngularVelocityRequest* other) { + inline void Swap(GetAccuracyRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetAngularVelocityRequest* other) { + void UnsafeArenaSwap(GetAccuracyRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetAngularVelocityRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetAngularVelocityRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetAngularVelocityRequest& from) { - GetAngularVelocityRequest::MergeImpl(*this, from); + GetAccuracyRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetAccuracyRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetAccuracyRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetAngularVelocityRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetAccuracyRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.movementsensor.v1.GetAngularVelocityRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.movementsensor.v1.GetAccuracyRequest"; } protected: - explicit GetAngularVelocityRequest(::google::protobuf::Arena* arena); - GetAngularVelocityRequest(::google::protobuf::Arena* arena, const GetAngularVelocityRequest& from); + explicit GetAccuracyRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -2820,79 +2226,85 @@ class GetAngularVelocityRequest final : kExtraFieldNumber = 99, }; // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + 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; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - + bool _internal_has_extra() const; public: - // @@protoc_insertion_point(class_scope:viam.component.movementsensor.v1.GetAngularVelocityRequest) + 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.movementsensor.v1.GetAccuracyRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 2, 1, - 71, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + 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_2fmovementsensor_2fv1_2fmovementsensor_2eproto; +}; +// ------------------------------------------------------------------- + +class GetAccuracyResponse_AccuracyEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + GetAccuracyResponse_AccuracyEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR GetAccuracyResponse_AccuracyEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit GetAccuracyResponse_AccuracyEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const GetAccuracyResponse_AccuracyEntry_DoNotUse& other); + static const GetAccuracyResponse_AccuracyEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_GetAccuracyResponse_AccuracyEntry_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.movementsensor.v1.GetAccuracyResponse.AccuracyEntry.key"); + } + static bool ValidateValue(void*) { return true; } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; friend struct ::TableStruct_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto; -};// ------------------------------------------------------------------- +}; + +// ------------------------------------------------------------------- class GetAccuracyResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.movementsensor.v1.GetAccuracyResponse) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.movementsensor.v1.GetAccuracyResponse) */ { public: inline GetAccuracyResponse() : GetAccuracyResponse(nullptr) {} ~GetAccuracyResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetAccuracyResponse(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR GetAccuracyResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetAccuracyResponse(const GetAccuracyResponse& from) - : GetAccuracyResponse(nullptr, from) {} + GetAccuracyResponse(const GetAccuracyResponse& from); GetAccuracyResponse(GetAccuracyResponse&& from) noexcept : GetAccuracyResponse() { *this = ::std::move(from); @@ -2904,9 +2316,9 @@ class GetAccuracyResponse final : } inline GetAccuracyResponse& operator=(GetAccuracyResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2916,22 +2328,13 @@ class GetAccuracyResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const GetAccuracyResponse& default_instance() { @@ -2950,65 +2353,65 @@ class GetAccuracyResponse final : inline void Swap(GetAccuracyResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(GetAccuracyResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetAccuracyResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + GetAccuracyResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const GetAccuracyResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetAccuracyResponse& from) { - GetAccuracyResponse::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetAccuracyResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(GetAccuracyResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "viam.component.movementsensor.v1.GetAccuracyResponse"; } protected: - explicit GetAccuracyResponse(::google::protobuf::Arena* arena); - GetAccuracyResponse(::google::protobuf::Arena* arena, const GetAccuracyResponse& from); + explicit GetAccuracyResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -3026,124 +2429,115 @@ class GetAccuracyResponse final : int accuracy_size() const; private: int _internal_accuracy_size() const; - public: - void clear_accuracy() ; - const ::google::protobuf::Map& accuracy() const; - ::google::protobuf::Map* mutable_accuracy(); - + void clear_accuracy(); private: - const ::google::protobuf::Map& _internal_accuracy() const; - ::google::protobuf::Map* _internal_mutable_accuracy(); - + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, float >& + _internal_accuracy() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, float >* + _internal_mutable_accuracy(); public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, float >& + accuracy() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, float >* + mutable_accuracy(); + // optional float position_hdop = 2 [json_name = "positionHdop"]; bool has_position_hdop() const; - void clear_position_hdop() ; + private: + bool _internal_has_position_hdop() const; + public: + void clear_position_hdop(); float position_hdop() const; void set_position_hdop(float value); - private: float _internal_position_hdop() const; void _internal_set_position_hdop(float value); - public: + // optional float position_vdop = 3 [json_name = "positionVdop"]; bool has_position_vdop() const; - void clear_position_vdop() ; + private: + bool _internal_has_position_vdop() const; + public: + void clear_position_vdop(); float position_vdop() const; void set_position_vdop(float value); - private: float _internal_position_vdop() const; void _internal_set_position_vdop(float value); - public: + // optional int32 position_nmea_gga_fix = 4 [json_name = "positionNmeaGgaFix"]; bool has_position_nmea_gga_fix() const; - void clear_position_nmea_gga_fix() ; - ::int32_t position_nmea_gga_fix() const; - void set_position_nmea_gga_fix(::int32_t value); - private: - ::int32_t _internal_position_nmea_gga_fix() const; - void _internal_set_position_nmea_gga_fix(::int32_t value); - + bool _internal_has_position_nmea_gga_fix() const; + public: + void clear_position_nmea_gga_fix(); + int32_t position_nmea_gga_fix() const; + void set_position_nmea_gga_fix(int32_t value); + private: + int32_t _internal_position_nmea_gga_fix() const; + void _internal_set_position_nmea_gga_fix(int32_t value); public: + // optional float compass_degrees_error = 5 [json_name = "compassDegreesError"]; bool has_compass_degrees_error() const; - void clear_compass_degrees_error() ; + private: + bool _internal_has_compass_degrees_error() const; + public: + void clear_compass_degrees_error(); float compass_degrees_error() const; void set_compass_degrees_error(float value); - private: float _internal_compass_degrees_error() const; void _internal_set_compass_degrees_error(float value); - public: + // @@protoc_insertion_point(class_scope:viam.component.movementsensor.v1.GetAccuracyResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 5, 1, - 69, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::MapField - accuracy_; - float position_hdop_; - float position_vdop_; - ::int32_t position_nmea_gga_fix_; - float compass_degrees_error_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + GetAccuracyResponse_AccuracyEntry_DoNotUse, + std::string, float, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT> accuracy_; + float position_hdop_; + float position_vdop_; + int32_t position_nmea_gga_fix_; + float compass_degrees_error_; friend struct ::TableStruct_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetAccuracyRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.movementsensor.v1.GetAccuracyRequest) */ { +class GetLinearAccelerationRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.movementsensor.v1.GetLinearAccelerationRequest) */ { public: - inline GetAccuracyRequest() : GetAccuracyRequest(nullptr) {} - ~GetAccuracyRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetAccuracyRequest(::google::protobuf::internal::ConstantInitialized); + inline GetLinearAccelerationRequest() : GetLinearAccelerationRequest(nullptr) {} + ~GetLinearAccelerationRequest() override; + explicit PROTOBUF_CONSTEXPR GetLinearAccelerationRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetAccuracyRequest(const GetAccuracyRequest& from) - : GetAccuracyRequest(nullptr, from) {} - GetAccuracyRequest(GetAccuracyRequest&& from) noexcept - : GetAccuracyRequest() { + GetLinearAccelerationRequest(const GetLinearAccelerationRequest& from); + GetLinearAccelerationRequest(GetLinearAccelerationRequest&& from) noexcept + : GetLinearAccelerationRequest() { *this = ::std::move(from); } - inline GetAccuracyRequest& operator=(const GetAccuracyRequest& from) { + inline GetLinearAccelerationRequest& operator=(const GetLinearAccelerationRequest& from) { CopyFrom(from); return *this; } - inline GetAccuracyRequest& operator=(GetAccuracyRequest&& from) noexcept { + inline GetLinearAccelerationRequest& operator=(GetLinearAccelerationRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3153,99 +2547,88 @@ class GetAccuracyRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetAccuracyRequest& default_instance() { + static const GetLinearAccelerationRequest& default_instance() { return *internal_default_instance(); } - static inline const GetAccuracyRequest* internal_default_instance() { - return reinterpret_cast( - &_GetAccuracyRequest_default_instance_); + static inline const GetLinearAccelerationRequest* internal_default_instance() { + return reinterpret_cast( + &_GetLinearAccelerationRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 12; + 15; - friend void swap(GetAccuracyRequest& a, GetAccuracyRequest& b) { + friend void swap(GetLinearAccelerationRequest& a, GetLinearAccelerationRequest& b) { a.Swap(&b); } - inline void Swap(GetAccuracyRequest* other) { + inline void Swap(GetLinearAccelerationRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetAccuracyRequest* other) { + void UnsafeArenaSwap(GetLinearAccelerationRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetAccuracyRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetAccuracyRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetAccuracyRequest& from) { - GetAccuracyRequest::MergeImpl(*this, from); + GetLinearAccelerationRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetLinearAccelerationRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetLinearAccelerationRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetAccuracyRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetLinearAccelerationRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.movementsensor.v1.GetAccuracyRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.movementsensor.v1.GetLinearAccelerationRequest"; } protected: - explicit GetAccuracyRequest(::google::protobuf::Arena* arena); - GetAccuracyRequest(::google::protobuf::Arena* arena, const GetAccuracyRequest& from); + explicit GetLinearAccelerationRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -3256,226 +2639,344 @@ class GetAccuracyRequest final : kExtraFieldNumber = 99, }; // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + 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; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - + bool _internal_has_extra() const; public: - // @@protoc_insertion_point(class_scope:viam.component.movementsensor.v1.GetAccuracyRequest) + 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.movementsensor.v1.GetLinearAccelerationRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 2, 1, - 64, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + 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_2fmovementsensor_2fv1_2fmovementsensor_2eproto; }; +// ------------------------------------------------------------------- -// =================================================================== +class GetLinearAccelerationResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.movementsensor.v1.GetLinearAccelerationResponse) */ { + public: + inline GetLinearAccelerationResponse() : GetLinearAccelerationResponse(nullptr) {} + ~GetLinearAccelerationResponse() override; + explicit PROTOBUF_CONSTEXPR GetLinearAccelerationResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetLinearAccelerationResponse(const GetLinearAccelerationResponse& from); + GetLinearAccelerationResponse(GetLinearAccelerationResponse&& from) noexcept + : GetLinearAccelerationResponse() { + *this = ::std::move(from); + } + + inline GetLinearAccelerationResponse& operator=(const GetLinearAccelerationResponse& from) { + CopyFrom(from); + return *this; + } + inline GetLinearAccelerationResponse& operator=(GetLinearAccelerationResponse&& 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 GetLinearAccelerationResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetLinearAccelerationResponse* internal_default_instance() { + return reinterpret_cast( + &_GetLinearAccelerationResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 16; + + friend void swap(GetLinearAccelerationResponse& a, GetLinearAccelerationResponse& b) { + a.Swap(&b); + } + inline void Swap(GetLinearAccelerationResponse* 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(GetLinearAccelerationResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetLinearAccelerationResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetLinearAccelerationResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetLinearAccelerationResponse& 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(GetLinearAccelerationResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.movementsensor.v1.GetLinearAccelerationResponse"; + } + protected: + explicit GetLinearAccelerationResponse(::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 { + kLinearAccelerationFieldNumber = 1, + }; + // .viam.common.v1.Vector3 linear_acceleration = 1 [json_name = "linearAcceleration"]; + bool has_linear_acceleration() const; + private: + bool _internal_has_linear_acceleration() const; + public: + void clear_linear_acceleration(); + const ::viam::common::v1::Vector3& linear_acceleration() const; + PROTOBUF_NODISCARD ::viam::common::v1::Vector3* release_linear_acceleration(); + ::viam::common::v1::Vector3* mutable_linear_acceleration(); + void set_allocated_linear_acceleration(::viam::common::v1::Vector3* linear_acceleration); + private: + const ::viam::common::v1::Vector3& _internal_linear_acceleration() const; + ::viam::common::v1::Vector3* _internal_mutable_linear_acceleration(); + public: + void unsafe_arena_set_allocated_linear_acceleration( + ::viam::common::v1::Vector3* linear_acceleration); + ::viam::common::v1::Vector3* unsafe_arena_release_linear_acceleration(); + // @@protoc_insertion_point(class_scope:viam.component.movementsensor.v1.GetLinearAccelerationResponse) + private: + class _Internal; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::viam::common::v1::Vector3* linear_acceleration_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto; +}; // =================================================================== +// =================================================================== + #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ -// ------------------------------------------------------------------- - // GetLinearVelocityRequest // string name = 1 [json_name = "name"]; inline void GetLinearVelocityRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& GetLinearVelocityRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetLinearVelocityRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.movementsensor.v1.GetLinearVelocityRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetLinearVelocityRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetLinearVelocityRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.movementsensor.v1.GetLinearVelocityRequest.name) } -inline std::string* GetLinearVelocityRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetLinearVelocityRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.movementsensor.v1.GetLinearVelocityRequest.name) return _s; } inline const std::string& GetLinearVelocityRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void GetLinearVelocityRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* GetLinearVelocityRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* GetLinearVelocityRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.movementsensor.v1.GetLinearVelocityRequest.name) - return _impl_.name_.Release(); -} -inline void GetLinearVelocityRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void GetLinearVelocityRequest::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.movementsensor.v1.GetLinearVelocityRequest.name) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetLinearVelocityRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool GetLinearVelocityRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& GetLinearVelocityRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetLinearVelocityRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& GetLinearVelocityRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetLinearVelocityRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.movementsensor.v1.GetLinearVelocityRequest.extra) return _internal_extra(); } -inline void GetLinearVelocityRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void GetLinearVelocityRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.movementsensor.v1.GetLinearVelocityRequest.extra) } -inline ::google::protobuf::Struct* GetLinearVelocityRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetLinearVelocityRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* GetLinearVelocityRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetLinearVelocityRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.movementsensor.v1.GetLinearVelocityRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* GetLinearVelocityRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetLinearVelocityRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* GetLinearVelocityRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetLinearVelocityRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.movementsensor.v1.GetLinearVelocityRequest.extra) return _msg; } -inline void GetLinearVelocityRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetLinearVelocityRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.movementsensor.v1.GetLinearVelocityRequest.extra) } @@ -3484,93 +2985,87 @@ inline void GetLinearVelocityRequest::set_allocated_extra(::google::protobuf::St // GetLinearVelocityResponse // .viam.common.v1.Vector3 linear_velocity = 1 [json_name = "linearVelocity"]; +inline bool GetLinearVelocityResponse::_internal_has_linear_velocity() const { + return this != internal_default_instance() && linear_velocity_ != nullptr; +} inline bool GetLinearVelocityResponse::has_linear_velocity() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.linear_velocity_ != nullptr); - return value; + return _internal_has_linear_velocity(); } inline const ::viam::common::v1::Vector3& GetLinearVelocityResponse::_internal_linear_velocity() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::common::v1::Vector3* p = _impl_.linear_velocity_; - return p != nullptr ? *p : reinterpret_cast(::viam::common::v1::_Vector3_default_instance_); + const ::viam::common::v1::Vector3* p = linear_velocity_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_Vector3_default_instance_); } -inline const ::viam::common::v1::Vector3& GetLinearVelocityResponse::linear_velocity() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::Vector3& GetLinearVelocityResponse::linear_velocity() const { // @@protoc_insertion_point(field_get:viam.component.movementsensor.v1.GetLinearVelocityResponse.linear_velocity) return _internal_linear_velocity(); } -inline void GetLinearVelocityResponse::unsafe_arena_set_allocated_linear_velocity(::viam::common::v1::Vector3* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.linear_velocity_); +inline void GetLinearVelocityResponse::unsafe_arena_set_allocated_linear_velocity( + ::viam::common::v1::Vector3* linear_velocity) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(linear_velocity_); } - _impl_.linear_velocity_ = reinterpret_cast<::viam::common::v1::Vector3*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + linear_velocity_ = linear_velocity; + if (linear_velocity) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.movementsensor.v1.GetLinearVelocityResponse.linear_velocity) } inline ::viam::common::v1::Vector3* GetLinearVelocityResponse::release_linear_velocity() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::Vector3* released = _impl_.linear_velocity_; - _impl_.linear_velocity_ = nullptr; + + ::viam::common::v1::Vector3* temp = linear_velocity_; + linear_velocity_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::common::v1::Vector3* GetLinearVelocityResponse::unsafe_arena_release_linear_velocity() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.movementsensor.v1.GetLinearVelocityResponse.linear_velocity) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::Vector3* temp = _impl_.linear_velocity_; - _impl_.linear_velocity_ = nullptr; + + ::viam::common::v1::Vector3* temp = linear_velocity_; + linear_velocity_ = nullptr; return temp; } inline ::viam::common::v1::Vector3* GetLinearVelocityResponse::_internal_mutable_linear_velocity() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.linear_velocity_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::Vector3>(GetArena()); - _impl_.linear_velocity_ = reinterpret_cast<::viam::common::v1::Vector3*>(p); + + if (linear_velocity_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::Vector3>(GetArenaForAllocation()); + linear_velocity_ = p; } - return _impl_.linear_velocity_; + return linear_velocity_; } -inline ::viam::common::v1::Vector3* GetLinearVelocityResponse::mutable_linear_velocity() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::Vector3* GetLinearVelocityResponse::mutable_linear_velocity() { ::viam::common::v1::Vector3* _msg = _internal_mutable_linear_velocity(); // @@protoc_insertion_point(field_mutable:viam.component.movementsensor.v1.GetLinearVelocityResponse.linear_velocity) return _msg; } -inline void GetLinearVelocityResponse::set_allocated_linear_velocity(::viam::common::v1::Vector3* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetLinearVelocityResponse::set_allocated_linear_velocity(::viam::common::v1::Vector3* linear_velocity) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.linear_velocity_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(linear_velocity_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (linear_velocity) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(linear_velocity)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + linear_velocity = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, linear_velocity, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.linear_velocity_ = reinterpret_cast<::viam::common::v1::Vector3*>(value); + linear_velocity_ = linear_velocity; // @@protoc_insertion_point(field_set_allocated:viam.component.movementsensor.v1.GetLinearVelocityResponse.linear_velocity) } @@ -3580,145 +3075,136 @@ inline void GetLinearVelocityResponse::set_allocated_linear_velocity(::viam::com // string name = 1 [json_name = "name"]; inline void GetAngularVelocityRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& GetAngularVelocityRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetAngularVelocityRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.movementsensor.v1.GetAngularVelocityRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetAngularVelocityRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetAngularVelocityRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.movementsensor.v1.GetAngularVelocityRequest.name) } -inline std::string* GetAngularVelocityRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetAngularVelocityRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.movementsensor.v1.GetAngularVelocityRequest.name) return _s; } inline const std::string& GetAngularVelocityRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void GetAngularVelocityRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* GetAngularVelocityRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* GetAngularVelocityRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.movementsensor.v1.GetAngularVelocityRequest.name) - return _impl_.name_.Release(); -} -inline void GetAngularVelocityRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void GetAngularVelocityRequest::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.movementsensor.v1.GetAngularVelocityRequest.name) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetAngularVelocityRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool GetAngularVelocityRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& GetAngularVelocityRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetAngularVelocityRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& GetAngularVelocityRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetAngularVelocityRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.movementsensor.v1.GetAngularVelocityRequest.extra) return _internal_extra(); } -inline void GetAngularVelocityRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void GetAngularVelocityRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.movementsensor.v1.GetAngularVelocityRequest.extra) } -inline ::google::protobuf::Struct* GetAngularVelocityRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetAngularVelocityRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* GetAngularVelocityRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetAngularVelocityRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.movementsensor.v1.GetAngularVelocityRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* GetAngularVelocityRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetAngularVelocityRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* GetAngularVelocityRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetAngularVelocityRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.movementsensor.v1.GetAngularVelocityRequest.extra) return _msg; } -inline void GetAngularVelocityRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetAngularVelocityRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.movementsensor.v1.GetAngularVelocityRequest.extra) } @@ -3727,93 +3213,87 @@ inline void GetAngularVelocityRequest::set_allocated_extra(::google::protobuf::S // GetAngularVelocityResponse // .viam.common.v1.Vector3 angular_velocity = 1 [json_name = "angularVelocity"]; +inline bool GetAngularVelocityResponse::_internal_has_angular_velocity() const { + return this != internal_default_instance() && angular_velocity_ != nullptr; +} inline bool GetAngularVelocityResponse::has_angular_velocity() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.angular_velocity_ != nullptr); - return value; + return _internal_has_angular_velocity(); } inline const ::viam::common::v1::Vector3& GetAngularVelocityResponse::_internal_angular_velocity() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::common::v1::Vector3* p = _impl_.angular_velocity_; - return p != nullptr ? *p : reinterpret_cast(::viam::common::v1::_Vector3_default_instance_); + const ::viam::common::v1::Vector3* p = angular_velocity_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_Vector3_default_instance_); } -inline const ::viam::common::v1::Vector3& GetAngularVelocityResponse::angular_velocity() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::Vector3& GetAngularVelocityResponse::angular_velocity() const { // @@protoc_insertion_point(field_get:viam.component.movementsensor.v1.GetAngularVelocityResponse.angular_velocity) return _internal_angular_velocity(); } -inline void GetAngularVelocityResponse::unsafe_arena_set_allocated_angular_velocity(::viam::common::v1::Vector3* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.angular_velocity_); +inline void GetAngularVelocityResponse::unsafe_arena_set_allocated_angular_velocity( + ::viam::common::v1::Vector3* angular_velocity) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(angular_velocity_); } - _impl_.angular_velocity_ = reinterpret_cast<::viam::common::v1::Vector3*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + angular_velocity_ = angular_velocity; + if (angular_velocity) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.movementsensor.v1.GetAngularVelocityResponse.angular_velocity) } inline ::viam::common::v1::Vector3* GetAngularVelocityResponse::release_angular_velocity() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::Vector3* released = _impl_.angular_velocity_; - _impl_.angular_velocity_ = nullptr; + + ::viam::common::v1::Vector3* temp = angular_velocity_; + angular_velocity_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::common::v1::Vector3* GetAngularVelocityResponse::unsafe_arena_release_angular_velocity() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.movementsensor.v1.GetAngularVelocityResponse.angular_velocity) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::Vector3* temp = _impl_.angular_velocity_; - _impl_.angular_velocity_ = nullptr; + + ::viam::common::v1::Vector3* temp = angular_velocity_; + angular_velocity_ = nullptr; return temp; } inline ::viam::common::v1::Vector3* GetAngularVelocityResponse::_internal_mutable_angular_velocity() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.angular_velocity_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::Vector3>(GetArena()); - _impl_.angular_velocity_ = reinterpret_cast<::viam::common::v1::Vector3*>(p); + + if (angular_velocity_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::Vector3>(GetArenaForAllocation()); + angular_velocity_ = p; } - return _impl_.angular_velocity_; + return angular_velocity_; } -inline ::viam::common::v1::Vector3* GetAngularVelocityResponse::mutable_angular_velocity() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::Vector3* GetAngularVelocityResponse::mutable_angular_velocity() { ::viam::common::v1::Vector3* _msg = _internal_mutable_angular_velocity(); // @@protoc_insertion_point(field_mutable:viam.component.movementsensor.v1.GetAngularVelocityResponse.angular_velocity) return _msg; } -inline void GetAngularVelocityResponse::set_allocated_angular_velocity(::viam::common::v1::Vector3* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetAngularVelocityResponse::set_allocated_angular_velocity(::viam::common::v1::Vector3* angular_velocity) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.angular_velocity_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(angular_velocity_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (angular_velocity) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(angular_velocity)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + angular_velocity = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, angular_velocity, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.angular_velocity_ = reinterpret_cast<::viam::common::v1::Vector3*>(value); + angular_velocity_ = angular_velocity; // @@protoc_insertion_point(field_set_allocated:viam.component.movementsensor.v1.GetAngularVelocityResponse.angular_velocity) } @@ -3823,145 +3303,136 @@ inline void GetAngularVelocityResponse::set_allocated_angular_velocity(::viam::c // string name = 1 [json_name = "name"]; inline void GetCompassHeadingRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& GetCompassHeadingRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetCompassHeadingRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.movementsensor.v1.GetCompassHeadingRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetCompassHeadingRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetCompassHeadingRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.movementsensor.v1.GetCompassHeadingRequest.name) } -inline std::string* GetCompassHeadingRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetCompassHeadingRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.movementsensor.v1.GetCompassHeadingRequest.name) return _s; } inline const std::string& GetCompassHeadingRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void GetCompassHeadingRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* GetCompassHeadingRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* GetCompassHeadingRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.movementsensor.v1.GetCompassHeadingRequest.name) - return _impl_.name_.Release(); -} -inline void GetCompassHeadingRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void GetCompassHeadingRequest::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.movementsensor.v1.GetCompassHeadingRequest.name) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetCompassHeadingRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool GetCompassHeadingRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& GetCompassHeadingRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetCompassHeadingRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& GetCompassHeadingRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetCompassHeadingRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.movementsensor.v1.GetCompassHeadingRequest.extra) return _internal_extra(); } -inline void GetCompassHeadingRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void GetCompassHeadingRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.movementsensor.v1.GetCompassHeadingRequest.extra) } -inline ::google::protobuf::Struct* GetCompassHeadingRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetCompassHeadingRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* GetCompassHeadingRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetCompassHeadingRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.movementsensor.v1.GetCompassHeadingRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* GetCompassHeadingRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetCompassHeadingRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* GetCompassHeadingRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetCompassHeadingRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.movementsensor.v1.GetCompassHeadingRequest.extra) return _msg; } -inline void GetCompassHeadingRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetCompassHeadingRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.movementsensor.v1.GetCompassHeadingRequest.extra) } @@ -3971,26 +3442,23 @@ inline void GetCompassHeadingRequest::set_allocated_extra(::google::protobuf::St // double value = 1 [json_name = "value"]; inline void GetCompassHeadingResponse::clear_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.value_ = 0; + value_ = 0; +} +inline double GetCompassHeadingResponse::_internal_value() const { + return value_; } inline double GetCompassHeadingResponse::value() const { // @@protoc_insertion_point(field_get:viam.component.movementsensor.v1.GetCompassHeadingResponse.value) return _internal_value(); } +inline void GetCompassHeadingResponse::_internal_set_value(double value) { + + value_ = value; +} inline void GetCompassHeadingResponse::set_value(double value) { _internal_set_value(value); // @@protoc_insertion_point(field_set:viam.component.movementsensor.v1.GetCompassHeadingResponse.value) } -inline double GetCompassHeadingResponse::_internal_value() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.value_; -} -inline void GetCompassHeadingResponse::_internal_set_value(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.value_ = value; -} // ------------------------------------------------------------------- @@ -3998,145 +3466,136 @@ inline void GetCompassHeadingResponse::_internal_set_value(double value) { // string name = 1 [json_name = "name"]; inline void GetOrientationRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& GetOrientationRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetOrientationRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.movementsensor.v1.GetOrientationRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetOrientationRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetOrientationRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.movementsensor.v1.GetOrientationRequest.name) } -inline std::string* GetOrientationRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetOrientationRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.movementsensor.v1.GetOrientationRequest.name) return _s; } inline const std::string& GetOrientationRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void GetOrientationRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* GetOrientationRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* GetOrientationRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.movementsensor.v1.GetOrientationRequest.name) - return _impl_.name_.Release(); -} -inline void GetOrientationRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void GetOrientationRequest::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.movementsensor.v1.GetOrientationRequest.name) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetOrientationRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool GetOrientationRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& GetOrientationRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetOrientationRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& GetOrientationRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetOrientationRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.movementsensor.v1.GetOrientationRequest.extra) return _internal_extra(); } -inline void GetOrientationRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void GetOrientationRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.movementsensor.v1.GetOrientationRequest.extra) } -inline ::google::protobuf::Struct* GetOrientationRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetOrientationRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* GetOrientationRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetOrientationRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.movementsensor.v1.GetOrientationRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* GetOrientationRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetOrientationRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* GetOrientationRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetOrientationRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.movementsensor.v1.GetOrientationRequest.extra) return _msg; } -inline void GetOrientationRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetOrientationRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.movementsensor.v1.GetOrientationRequest.extra) } @@ -4145,93 +3604,87 @@ inline void GetOrientationRequest::set_allocated_extra(::google::protobuf::Struc // GetOrientationResponse // .viam.common.v1.Orientation orientation = 1 [json_name = "orientation"]; +inline bool GetOrientationResponse::_internal_has_orientation() const { + return this != internal_default_instance() && orientation_ != nullptr; +} inline bool GetOrientationResponse::has_orientation() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.orientation_ != nullptr); - return value; + return _internal_has_orientation(); } inline const ::viam::common::v1::Orientation& GetOrientationResponse::_internal_orientation() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::common::v1::Orientation* p = _impl_.orientation_; - return p != nullptr ? *p : reinterpret_cast(::viam::common::v1::_Orientation_default_instance_); + const ::viam::common::v1::Orientation* p = orientation_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_Orientation_default_instance_); } -inline const ::viam::common::v1::Orientation& GetOrientationResponse::orientation() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::Orientation& GetOrientationResponse::orientation() const { // @@protoc_insertion_point(field_get:viam.component.movementsensor.v1.GetOrientationResponse.orientation) return _internal_orientation(); } -inline void GetOrientationResponse::unsafe_arena_set_allocated_orientation(::viam::common::v1::Orientation* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.orientation_); +inline void GetOrientationResponse::unsafe_arena_set_allocated_orientation( + ::viam::common::v1::Orientation* orientation) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(orientation_); } - _impl_.orientation_ = reinterpret_cast<::viam::common::v1::Orientation*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + orientation_ = orientation; + if (orientation) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.movementsensor.v1.GetOrientationResponse.orientation) } inline ::viam::common::v1::Orientation* GetOrientationResponse::release_orientation() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::Orientation* released = _impl_.orientation_; - _impl_.orientation_ = nullptr; + + ::viam::common::v1::Orientation* temp = orientation_; + orientation_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::common::v1::Orientation* GetOrientationResponse::unsafe_arena_release_orientation() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.movementsensor.v1.GetOrientationResponse.orientation) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::Orientation* temp = _impl_.orientation_; - _impl_.orientation_ = nullptr; + + ::viam::common::v1::Orientation* temp = orientation_; + orientation_ = nullptr; return temp; } inline ::viam::common::v1::Orientation* GetOrientationResponse::_internal_mutable_orientation() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.orientation_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::Orientation>(GetArena()); - _impl_.orientation_ = reinterpret_cast<::viam::common::v1::Orientation*>(p); + + if (orientation_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::Orientation>(GetArenaForAllocation()); + orientation_ = p; } - return _impl_.orientation_; + return orientation_; } -inline ::viam::common::v1::Orientation* GetOrientationResponse::mutable_orientation() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::Orientation* GetOrientationResponse::mutable_orientation() { ::viam::common::v1::Orientation* _msg = _internal_mutable_orientation(); // @@protoc_insertion_point(field_mutable:viam.component.movementsensor.v1.GetOrientationResponse.orientation) return _msg; } -inline void GetOrientationResponse::set_allocated_orientation(::viam::common::v1::Orientation* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetOrientationResponse::set_allocated_orientation(::viam::common::v1::Orientation* orientation) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.orientation_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(orientation_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (orientation) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(orientation)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + orientation = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, orientation, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.orientation_ = reinterpret_cast<::viam::common::v1::Orientation*>(value); + orientation_ = orientation; // @@protoc_insertion_point(field_set_allocated:viam.component.movementsensor.v1.GetOrientationResponse.orientation) } @@ -4241,145 +3694,136 @@ inline void GetOrientationResponse::set_allocated_orientation(::viam::common::v1 // string name = 1 [json_name = "name"]; inline void GetPositionRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& GetPositionRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetPositionRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.movementsensor.v1.GetPositionRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetPositionRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetPositionRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.movementsensor.v1.GetPositionRequest.name) } -inline std::string* GetPositionRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetPositionRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.movementsensor.v1.GetPositionRequest.name) return _s; } inline const std::string& GetPositionRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void GetPositionRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* GetPositionRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* GetPositionRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.movementsensor.v1.GetPositionRequest.name) - return _impl_.name_.Release(); -} -inline void GetPositionRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void GetPositionRequest::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.movementsensor.v1.GetPositionRequest.name) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetPositionRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool GetPositionRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& GetPositionRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetPositionRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& GetPositionRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetPositionRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.movementsensor.v1.GetPositionRequest.extra) return _internal_extra(); } -inline void GetPositionRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void GetPositionRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.movementsensor.v1.GetPositionRequest.extra) } -inline ::google::protobuf::Struct* GetPositionRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPositionRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* GetPositionRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPositionRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.movementsensor.v1.GetPositionRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* GetPositionRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPositionRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* GetPositionRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPositionRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.movementsensor.v1.GetPositionRequest.extra) return _msg; } -inline void GetPositionRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetPositionRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.movementsensor.v1.GetPositionRequest.extra) } @@ -4388,118 +3832,109 @@ inline void GetPositionRequest::set_allocated_extra(::google::protobuf::Struct* // GetPositionResponse // .viam.common.v1.GeoPoint coordinate = 1 [json_name = "coordinate"]; +inline bool GetPositionResponse::_internal_has_coordinate() const { + return this != internal_default_instance() && coordinate_ != nullptr; +} inline bool GetPositionResponse::has_coordinate() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.coordinate_ != nullptr); - return value; + return _internal_has_coordinate(); } inline const ::viam::common::v1::GeoPoint& GetPositionResponse::_internal_coordinate() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::common::v1::GeoPoint* p = _impl_.coordinate_; - return p != nullptr ? *p : reinterpret_cast(::viam::common::v1::_GeoPoint_default_instance_); + const ::viam::common::v1::GeoPoint* p = coordinate_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_GeoPoint_default_instance_); } -inline const ::viam::common::v1::GeoPoint& GetPositionResponse::coordinate() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::GeoPoint& GetPositionResponse::coordinate() const { // @@protoc_insertion_point(field_get:viam.component.movementsensor.v1.GetPositionResponse.coordinate) return _internal_coordinate(); } -inline void GetPositionResponse::unsafe_arena_set_allocated_coordinate(::viam::common::v1::GeoPoint* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.coordinate_); +inline void GetPositionResponse::unsafe_arena_set_allocated_coordinate( + ::viam::common::v1::GeoPoint* coordinate) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(coordinate_); } - _impl_.coordinate_ = reinterpret_cast<::viam::common::v1::GeoPoint*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + coordinate_ = coordinate; + if (coordinate) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.movementsensor.v1.GetPositionResponse.coordinate) } inline ::viam::common::v1::GeoPoint* GetPositionResponse::release_coordinate() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::GeoPoint* released = _impl_.coordinate_; - _impl_.coordinate_ = nullptr; + + ::viam::common::v1::GeoPoint* temp = coordinate_; + coordinate_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::common::v1::GeoPoint* GetPositionResponse::unsafe_arena_release_coordinate() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.movementsensor.v1.GetPositionResponse.coordinate) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::GeoPoint* temp = _impl_.coordinate_; - _impl_.coordinate_ = nullptr; + + ::viam::common::v1::GeoPoint* temp = coordinate_; + coordinate_ = nullptr; return temp; } inline ::viam::common::v1::GeoPoint* GetPositionResponse::_internal_mutable_coordinate() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.coordinate_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::GeoPoint>(GetArena()); - _impl_.coordinate_ = reinterpret_cast<::viam::common::v1::GeoPoint*>(p); + + if (coordinate_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::GeoPoint>(GetArenaForAllocation()); + coordinate_ = p; } - return _impl_.coordinate_; + return coordinate_; } -inline ::viam::common::v1::GeoPoint* GetPositionResponse::mutable_coordinate() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::GeoPoint* GetPositionResponse::mutable_coordinate() { ::viam::common::v1::GeoPoint* _msg = _internal_mutable_coordinate(); // @@protoc_insertion_point(field_mutable:viam.component.movementsensor.v1.GetPositionResponse.coordinate) return _msg; } -inline void GetPositionResponse::set_allocated_coordinate(::viam::common::v1::GeoPoint* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetPositionResponse::set_allocated_coordinate(::viam::common::v1::GeoPoint* coordinate) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.coordinate_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(coordinate_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (coordinate) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(coordinate)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + coordinate = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, coordinate, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.coordinate_ = reinterpret_cast<::viam::common::v1::GeoPoint*>(value); + coordinate_ = coordinate; // @@protoc_insertion_point(field_set_allocated:viam.component.movementsensor.v1.GetPositionResponse.coordinate) } // float altitude_m = 2 [json_name = "altitudeM"]; inline void GetPositionResponse::clear_altitude_m() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.altitude_m_ = 0; + altitude_m_ = 0; +} +inline float GetPositionResponse::_internal_altitude_m() const { + return altitude_m_; } inline float GetPositionResponse::altitude_m() const { // @@protoc_insertion_point(field_get:viam.component.movementsensor.v1.GetPositionResponse.altitude_m) return _internal_altitude_m(); } +inline void GetPositionResponse::_internal_set_altitude_m(float value) { + + altitude_m_ = value; +} inline void GetPositionResponse::set_altitude_m(float value) { _internal_set_altitude_m(value); // @@protoc_insertion_point(field_set:viam.component.movementsensor.v1.GetPositionResponse.altitude_m) } -inline float GetPositionResponse::_internal_altitude_m() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.altitude_m_; -} -inline void GetPositionResponse::_internal_set_altitude_m(float value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.altitude_m_ = value; -} // ------------------------------------------------------------------- @@ -4507,145 +3942,136 @@ inline void GetPositionResponse::_internal_set_altitude_m(float value) { // string name = 1 [json_name = "name"]; inline void GetPropertiesRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& GetPropertiesRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetPropertiesRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.movementsensor.v1.GetPropertiesRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetPropertiesRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetPropertiesRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.movementsensor.v1.GetPropertiesRequest.name) } -inline std::string* GetPropertiesRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetPropertiesRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.movementsensor.v1.GetPropertiesRequest.name) return _s; } inline const std::string& GetPropertiesRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void GetPropertiesRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* GetPropertiesRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* GetPropertiesRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.movementsensor.v1.GetPropertiesRequest.name) - return _impl_.name_.Release(); -} -inline void GetPropertiesRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void GetPropertiesRequest::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.movementsensor.v1.GetPropertiesRequest.name) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetPropertiesRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool GetPropertiesRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& GetPropertiesRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetPropertiesRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& GetPropertiesRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetPropertiesRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.movementsensor.v1.GetPropertiesRequest.extra) return _internal_extra(); } -inline void GetPropertiesRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void GetPropertiesRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.movementsensor.v1.GetPropertiesRequest.extra) } -inline ::google::protobuf::Struct* GetPropertiesRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPropertiesRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* GetPropertiesRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPropertiesRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.movementsensor.v1.GetPropertiesRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* GetPropertiesRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPropertiesRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* GetPropertiesRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPropertiesRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.movementsensor.v1.GetPropertiesRequest.extra) return _msg; } -inline void GetPropertiesRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetPropertiesRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.movementsensor.v1.GetPropertiesRequest.extra) } @@ -4655,141 +4081,123 @@ inline void GetPropertiesRequest::set_allocated_extra(::google::protobuf::Struct // bool linear_velocity_supported = 1 [json_name = "linearVelocitySupported"]; inline void GetPropertiesResponse::clear_linear_velocity_supported() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.linear_velocity_supported_ = false; + linear_velocity_supported_ = false; +} +inline bool GetPropertiesResponse::_internal_linear_velocity_supported() const { + return linear_velocity_supported_; } inline bool GetPropertiesResponse::linear_velocity_supported() const { // @@protoc_insertion_point(field_get:viam.component.movementsensor.v1.GetPropertiesResponse.linear_velocity_supported) return _internal_linear_velocity_supported(); } +inline void GetPropertiesResponse::_internal_set_linear_velocity_supported(bool value) { + + linear_velocity_supported_ = value; +} inline void GetPropertiesResponse::set_linear_velocity_supported(bool value) { _internal_set_linear_velocity_supported(value); // @@protoc_insertion_point(field_set:viam.component.movementsensor.v1.GetPropertiesResponse.linear_velocity_supported) } -inline bool GetPropertiesResponse::_internal_linear_velocity_supported() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.linear_velocity_supported_; -} -inline void GetPropertiesResponse::_internal_set_linear_velocity_supported(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.linear_velocity_supported_ = value; -} // bool angular_velocity_supported = 2 [json_name = "angularVelocitySupported"]; inline void GetPropertiesResponse::clear_angular_velocity_supported() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.angular_velocity_supported_ = false; + angular_velocity_supported_ = false; +} +inline bool GetPropertiesResponse::_internal_angular_velocity_supported() const { + return angular_velocity_supported_; } inline bool GetPropertiesResponse::angular_velocity_supported() const { // @@protoc_insertion_point(field_get:viam.component.movementsensor.v1.GetPropertiesResponse.angular_velocity_supported) return _internal_angular_velocity_supported(); } +inline void GetPropertiesResponse::_internal_set_angular_velocity_supported(bool value) { + + angular_velocity_supported_ = value; +} inline void GetPropertiesResponse::set_angular_velocity_supported(bool value) { _internal_set_angular_velocity_supported(value); // @@protoc_insertion_point(field_set:viam.component.movementsensor.v1.GetPropertiesResponse.angular_velocity_supported) } -inline bool GetPropertiesResponse::_internal_angular_velocity_supported() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.angular_velocity_supported_; -} -inline void GetPropertiesResponse::_internal_set_angular_velocity_supported(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.angular_velocity_supported_ = value; -} // bool orientation_supported = 3 [json_name = "orientationSupported"]; inline void GetPropertiesResponse::clear_orientation_supported() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.orientation_supported_ = false; + orientation_supported_ = false; +} +inline bool GetPropertiesResponse::_internal_orientation_supported() const { + return orientation_supported_; } inline bool GetPropertiesResponse::orientation_supported() const { // @@protoc_insertion_point(field_get:viam.component.movementsensor.v1.GetPropertiesResponse.orientation_supported) return _internal_orientation_supported(); } +inline void GetPropertiesResponse::_internal_set_orientation_supported(bool value) { + + orientation_supported_ = value; +} inline void GetPropertiesResponse::set_orientation_supported(bool value) { _internal_set_orientation_supported(value); // @@protoc_insertion_point(field_set:viam.component.movementsensor.v1.GetPropertiesResponse.orientation_supported) } -inline bool GetPropertiesResponse::_internal_orientation_supported() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.orientation_supported_; -} -inline void GetPropertiesResponse::_internal_set_orientation_supported(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.orientation_supported_ = value; -} // bool position_supported = 4 [json_name = "positionSupported"]; inline void GetPropertiesResponse::clear_position_supported() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.position_supported_ = false; + position_supported_ = false; +} +inline bool GetPropertiesResponse::_internal_position_supported() const { + return position_supported_; } inline bool GetPropertiesResponse::position_supported() const { // @@protoc_insertion_point(field_get:viam.component.movementsensor.v1.GetPropertiesResponse.position_supported) return _internal_position_supported(); } +inline void GetPropertiesResponse::_internal_set_position_supported(bool value) { + + position_supported_ = value; +} inline void GetPropertiesResponse::set_position_supported(bool value) { _internal_set_position_supported(value); // @@protoc_insertion_point(field_set:viam.component.movementsensor.v1.GetPropertiesResponse.position_supported) } -inline bool GetPropertiesResponse::_internal_position_supported() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.position_supported_; -} -inline void GetPropertiesResponse::_internal_set_position_supported(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.position_supported_ = value; -} // bool compass_heading_supported = 5 [json_name = "compassHeadingSupported"]; inline void GetPropertiesResponse::clear_compass_heading_supported() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.compass_heading_supported_ = false; + compass_heading_supported_ = false; +} +inline bool GetPropertiesResponse::_internal_compass_heading_supported() const { + return compass_heading_supported_; } inline bool GetPropertiesResponse::compass_heading_supported() const { // @@protoc_insertion_point(field_get:viam.component.movementsensor.v1.GetPropertiesResponse.compass_heading_supported) return _internal_compass_heading_supported(); } +inline void GetPropertiesResponse::_internal_set_compass_heading_supported(bool value) { + + compass_heading_supported_ = value; +} inline void GetPropertiesResponse::set_compass_heading_supported(bool value) { _internal_set_compass_heading_supported(value); // @@protoc_insertion_point(field_set:viam.component.movementsensor.v1.GetPropertiesResponse.compass_heading_supported) } -inline bool GetPropertiesResponse::_internal_compass_heading_supported() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.compass_heading_supported_; -} -inline void GetPropertiesResponse::_internal_set_compass_heading_supported(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.compass_heading_supported_ = value; -} // bool linear_acceleration_supported = 6 [json_name = "linearAccelerationSupported"]; inline void GetPropertiesResponse::clear_linear_acceleration_supported() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.linear_acceleration_supported_ = false; + linear_acceleration_supported_ = false; +} +inline bool GetPropertiesResponse::_internal_linear_acceleration_supported() const { + return linear_acceleration_supported_; } inline bool GetPropertiesResponse::linear_acceleration_supported() const { // @@protoc_insertion_point(field_get:viam.component.movementsensor.v1.GetPropertiesResponse.linear_acceleration_supported) return _internal_linear_acceleration_supported(); } +inline void GetPropertiesResponse::_internal_set_linear_acceleration_supported(bool value) { + + linear_acceleration_supported_ = value; +} inline void GetPropertiesResponse::set_linear_acceleration_supported(bool value) { _internal_set_linear_acceleration_supported(value); // @@protoc_insertion_point(field_set:viam.component.movementsensor.v1.GetPropertiesResponse.linear_acceleration_supported) } -inline bool GetPropertiesResponse::_internal_linear_acceleration_supported() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.linear_acceleration_supported_; -} -inline void GetPropertiesResponse::_internal_set_linear_acceleration_supported(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.linear_acceleration_supported_ = value; -} // ------------------------------------------------------------------- @@ -4797,145 +4205,136 @@ inline void GetPropertiesResponse::_internal_set_linear_acceleration_supported(b // string name = 1 [json_name = "name"]; inline void GetAccuracyRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& GetAccuracyRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetAccuracyRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.movementsensor.v1.GetAccuracyRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetAccuracyRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetAccuracyRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.movementsensor.v1.GetAccuracyRequest.name) } -inline std::string* GetAccuracyRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetAccuracyRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.movementsensor.v1.GetAccuracyRequest.name) return _s; } inline const std::string& GetAccuracyRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void GetAccuracyRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* GetAccuracyRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* GetAccuracyRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.movementsensor.v1.GetAccuracyRequest.name) - return _impl_.name_.Release(); -} -inline void GetAccuracyRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void GetAccuracyRequest::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.movementsensor.v1.GetAccuracyRequest.name) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetAccuracyRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool GetAccuracyRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& GetAccuracyRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetAccuracyRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& GetAccuracyRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetAccuracyRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.movementsensor.v1.GetAccuracyRequest.extra) return _internal_extra(); } -inline void GetAccuracyRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void GetAccuracyRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.movementsensor.v1.GetAccuracyRequest.extra) } -inline ::google::protobuf::Struct* GetAccuracyRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetAccuracyRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* GetAccuracyRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetAccuracyRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.movementsensor.v1.GetAccuracyRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* GetAccuracyRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetAccuracyRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* GetAccuracyRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetAccuracyRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.movementsensor.v1.GetAccuracyRequest.extra) return _msg; } -inline void GetAccuracyRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetAccuracyRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.movementsensor.v1.GetAccuracyRequest.extra) } @@ -4947,143 +4346,144 @@ inline void GetAccuracyRequest::set_allocated_extra(::google::protobuf::Struct* // map accuracy = 1 [json_name = "accuracy"]; inline int GetAccuracyResponse::_internal_accuracy_size() const { - return _internal_accuracy().size(); + return accuracy_.size(); } inline int GetAccuracyResponse::accuracy_size() const { return _internal_accuracy_size(); } inline void GetAccuracyResponse::clear_accuracy() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.accuracy_.Clear(); + accuracy_.Clear(); } -inline const ::google::protobuf::Map& GetAccuracyResponse::_internal_accuracy() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.accuracy_.GetMap(); +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, float >& +GetAccuracyResponse::_internal_accuracy() const { + return accuracy_.GetMap(); } -inline const ::google::protobuf::Map& GetAccuracyResponse::accuracy() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, float >& +GetAccuracyResponse::accuracy() const { // @@protoc_insertion_point(field_map:viam.component.movementsensor.v1.GetAccuracyResponse.accuracy) return _internal_accuracy(); } -inline ::google::protobuf::Map* GetAccuracyResponse::_internal_mutable_accuracy() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.accuracy_.MutableMap(); +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, float >* +GetAccuracyResponse::_internal_mutable_accuracy() { + return accuracy_.MutableMap(); } -inline ::google::protobuf::Map* GetAccuracyResponse::mutable_accuracy() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, float >* +GetAccuracyResponse::mutable_accuracy() { // @@protoc_insertion_point(field_mutable_map:viam.component.movementsensor.v1.GetAccuracyResponse.accuracy) return _internal_mutable_accuracy(); } // optional float position_hdop = 2 [json_name = "positionHdop"]; -inline bool GetAccuracyResponse::has_position_hdop() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; +inline bool GetAccuracyResponse::_internal_has_position_hdop() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; return value; } +inline bool GetAccuracyResponse::has_position_hdop() const { + return _internal_has_position_hdop(); +} inline void GetAccuracyResponse::clear_position_hdop() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.position_hdop_ = 0; - _impl_._has_bits_[0] &= ~0x00000001u; + position_hdop_ = 0; + _has_bits_[0] &= ~0x00000001u; +} +inline float GetAccuracyResponse::_internal_position_hdop() const { + return position_hdop_; } inline float GetAccuracyResponse::position_hdop() const { // @@protoc_insertion_point(field_get:viam.component.movementsensor.v1.GetAccuracyResponse.position_hdop) return _internal_position_hdop(); } +inline void GetAccuracyResponse::_internal_set_position_hdop(float value) { + _has_bits_[0] |= 0x00000001u; + position_hdop_ = value; +} inline void GetAccuracyResponse::set_position_hdop(float value) { _internal_set_position_hdop(value); // @@protoc_insertion_point(field_set:viam.component.movementsensor.v1.GetAccuracyResponse.position_hdop) } -inline float GetAccuracyResponse::_internal_position_hdop() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.position_hdop_; -} -inline void GetAccuracyResponse::_internal_set_position_hdop(float value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.position_hdop_ = value; -} // optional float position_vdop = 3 [json_name = "positionVdop"]; -inline bool GetAccuracyResponse::has_position_vdop() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; +inline bool GetAccuracyResponse::_internal_has_position_vdop() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; return value; } +inline bool GetAccuracyResponse::has_position_vdop() const { + return _internal_has_position_vdop(); +} inline void GetAccuracyResponse::clear_position_vdop() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.position_vdop_ = 0; - _impl_._has_bits_[0] &= ~0x00000002u; + position_vdop_ = 0; + _has_bits_[0] &= ~0x00000002u; +} +inline float GetAccuracyResponse::_internal_position_vdop() const { + return position_vdop_; } inline float GetAccuracyResponse::position_vdop() const { // @@protoc_insertion_point(field_get:viam.component.movementsensor.v1.GetAccuracyResponse.position_vdop) return _internal_position_vdop(); } +inline void GetAccuracyResponse::_internal_set_position_vdop(float value) { + _has_bits_[0] |= 0x00000002u; + position_vdop_ = value; +} inline void GetAccuracyResponse::set_position_vdop(float value) { _internal_set_position_vdop(value); // @@protoc_insertion_point(field_set:viam.component.movementsensor.v1.GetAccuracyResponse.position_vdop) } -inline float GetAccuracyResponse::_internal_position_vdop() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.position_vdop_; -} -inline void GetAccuracyResponse::_internal_set_position_vdop(float value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.position_vdop_ = value; -} // optional int32 position_nmea_gga_fix = 4 [json_name = "positionNmeaGgaFix"]; -inline bool GetAccuracyResponse::has_position_nmea_gga_fix() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; +inline bool GetAccuracyResponse::_internal_has_position_nmea_gga_fix() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; return value; } +inline bool GetAccuracyResponse::has_position_nmea_gga_fix() const { + return _internal_has_position_nmea_gga_fix(); +} inline void GetAccuracyResponse::clear_position_nmea_gga_fix() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.position_nmea_gga_fix_ = 0; - _impl_._has_bits_[0] &= ~0x00000004u; + position_nmea_gga_fix_ = 0; + _has_bits_[0] &= ~0x00000004u; } -inline ::int32_t GetAccuracyResponse::position_nmea_gga_fix() const { +inline int32_t GetAccuracyResponse::_internal_position_nmea_gga_fix() const { + return position_nmea_gga_fix_; +} +inline int32_t GetAccuracyResponse::position_nmea_gga_fix() const { // @@protoc_insertion_point(field_get:viam.component.movementsensor.v1.GetAccuracyResponse.position_nmea_gga_fix) return _internal_position_nmea_gga_fix(); } -inline void GetAccuracyResponse::set_position_nmea_gga_fix(::int32_t value) { +inline void GetAccuracyResponse::_internal_set_position_nmea_gga_fix(int32_t value) { + _has_bits_[0] |= 0x00000004u; + position_nmea_gga_fix_ = value; +} +inline void GetAccuracyResponse::set_position_nmea_gga_fix(int32_t value) { _internal_set_position_nmea_gga_fix(value); // @@protoc_insertion_point(field_set:viam.component.movementsensor.v1.GetAccuracyResponse.position_nmea_gga_fix) } -inline ::int32_t GetAccuracyResponse::_internal_position_nmea_gga_fix() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.position_nmea_gga_fix_; -} -inline void GetAccuracyResponse::_internal_set_position_nmea_gga_fix(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - _impl_.position_nmea_gga_fix_ = value; -} // optional float compass_degrees_error = 5 [json_name = "compassDegreesError"]; -inline bool GetAccuracyResponse::has_compass_degrees_error() const { - bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; +inline bool GetAccuracyResponse::_internal_has_compass_degrees_error() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; return value; } +inline bool GetAccuracyResponse::has_compass_degrees_error() const { + return _internal_has_compass_degrees_error(); +} inline void GetAccuracyResponse::clear_compass_degrees_error() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.compass_degrees_error_ = 0; - _impl_._has_bits_[0] &= ~0x00000008u; + compass_degrees_error_ = 0; + _has_bits_[0] &= ~0x00000008u; +} +inline float GetAccuracyResponse::_internal_compass_degrees_error() const { + return compass_degrees_error_; } inline float GetAccuracyResponse::compass_degrees_error() const { // @@protoc_insertion_point(field_get:viam.component.movementsensor.v1.GetAccuracyResponse.compass_degrees_error) return _internal_compass_degrees_error(); } +inline void GetAccuracyResponse::_internal_set_compass_degrees_error(float value) { + _has_bits_[0] |= 0x00000008u; + compass_degrees_error_ = value; +} inline void GetAccuracyResponse::set_compass_degrees_error(float value) { _internal_set_compass_degrees_error(value); // @@protoc_insertion_point(field_set:viam.component.movementsensor.v1.GetAccuracyResponse.compass_degrees_error) } -inline float GetAccuracyResponse::_internal_compass_degrees_error() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.compass_degrees_error_; -} -inline void GetAccuracyResponse::_internal_set_compass_degrees_error(float value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000008u; - _impl_.compass_degrees_error_ = value; -} // ------------------------------------------------------------------- @@ -5091,145 +4491,136 @@ inline void GetAccuracyResponse::_internal_set_compass_degrees_error(float value // string name = 1 [json_name = "name"]; inline void GetLinearAccelerationRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& GetLinearAccelerationRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetLinearAccelerationRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.movementsensor.v1.GetLinearAccelerationRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetLinearAccelerationRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetLinearAccelerationRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.movementsensor.v1.GetLinearAccelerationRequest.name) } -inline std::string* GetLinearAccelerationRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetLinearAccelerationRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.movementsensor.v1.GetLinearAccelerationRequest.name) return _s; } inline const std::string& GetLinearAccelerationRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void GetLinearAccelerationRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* GetLinearAccelerationRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* GetLinearAccelerationRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.movementsensor.v1.GetLinearAccelerationRequest.name) - return _impl_.name_.Release(); -} -inline void GetLinearAccelerationRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void GetLinearAccelerationRequest::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.movementsensor.v1.GetLinearAccelerationRequest.name) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetLinearAccelerationRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool GetLinearAccelerationRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& GetLinearAccelerationRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetLinearAccelerationRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& GetLinearAccelerationRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetLinearAccelerationRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.movementsensor.v1.GetLinearAccelerationRequest.extra) return _internal_extra(); } -inline void GetLinearAccelerationRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void GetLinearAccelerationRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.movementsensor.v1.GetLinearAccelerationRequest.extra) } -inline ::google::protobuf::Struct* GetLinearAccelerationRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetLinearAccelerationRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* GetLinearAccelerationRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetLinearAccelerationRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.movementsensor.v1.GetLinearAccelerationRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* GetLinearAccelerationRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetLinearAccelerationRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* GetLinearAccelerationRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetLinearAccelerationRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.movementsensor.v1.GetLinearAccelerationRequest.extra) return _msg; } -inline void GetLinearAccelerationRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetLinearAccelerationRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.movementsensor.v1.GetLinearAccelerationRequest.extra) } @@ -5238,109 +4629,134 @@ inline void GetLinearAccelerationRequest::set_allocated_extra(::google::protobuf // GetLinearAccelerationResponse // .viam.common.v1.Vector3 linear_acceleration = 1 [json_name = "linearAcceleration"]; +inline bool GetLinearAccelerationResponse::_internal_has_linear_acceleration() const { + return this != internal_default_instance() && linear_acceleration_ != nullptr; +} inline bool GetLinearAccelerationResponse::has_linear_acceleration() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.linear_acceleration_ != nullptr); - return value; + return _internal_has_linear_acceleration(); } inline const ::viam::common::v1::Vector3& GetLinearAccelerationResponse::_internal_linear_acceleration() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::common::v1::Vector3* p = _impl_.linear_acceleration_; - return p != nullptr ? *p : reinterpret_cast(::viam::common::v1::_Vector3_default_instance_); + const ::viam::common::v1::Vector3* p = linear_acceleration_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_Vector3_default_instance_); } -inline const ::viam::common::v1::Vector3& GetLinearAccelerationResponse::linear_acceleration() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::Vector3& GetLinearAccelerationResponse::linear_acceleration() const { // @@protoc_insertion_point(field_get:viam.component.movementsensor.v1.GetLinearAccelerationResponse.linear_acceleration) return _internal_linear_acceleration(); } -inline void GetLinearAccelerationResponse::unsafe_arena_set_allocated_linear_acceleration(::viam::common::v1::Vector3* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.linear_acceleration_); +inline void GetLinearAccelerationResponse::unsafe_arena_set_allocated_linear_acceleration( + ::viam::common::v1::Vector3* linear_acceleration) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(linear_acceleration_); } - _impl_.linear_acceleration_ = reinterpret_cast<::viam::common::v1::Vector3*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + linear_acceleration_ = linear_acceleration; + if (linear_acceleration) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.movementsensor.v1.GetLinearAccelerationResponse.linear_acceleration) } inline ::viam::common::v1::Vector3* GetLinearAccelerationResponse::release_linear_acceleration() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::Vector3* released = _impl_.linear_acceleration_; - _impl_.linear_acceleration_ = nullptr; + + ::viam::common::v1::Vector3* temp = linear_acceleration_; + linear_acceleration_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::common::v1::Vector3* GetLinearAccelerationResponse::unsafe_arena_release_linear_acceleration() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.movementsensor.v1.GetLinearAccelerationResponse.linear_acceleration) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::Vector3* temp = _impl_.linear_acceleration_; - _impl_.linear_acceleration_ = nullptr; + + ::viam::common::v1::Vector3* temp = linear_acceleration_; + linear_acceleration_ = nullptr; return temp; } inline ::viam::common::v1::Vector3* GetLinearAccelerationResponse::_internal_mutable_linear_acceleration() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.linear_acceleration_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::Vector3>(GetArena()); - _impl_.linear_acceleration_ = reinterpret_cast<::viam::common::v1::Vector3*>(p); + + if (linear_acceleration_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::Vector3>(GetArenaForAllocation()); + linear_acceleration_ = p; } - return _impl_.linear_acceleration_; + return linear_acceleration_; } -inline ::viam::common::v1::Vector3* GetLinearAccelerationResponse::mutable_linear_acceleration() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::Vector3* GetLinearAccelerationResponse::mutable_linear_acceleration() { ::viam::common::v1::Vector3* _msg = _internal_mutable_linear_acceleration(); // @@protoc_insertion_point(field_mutable:viam.component.movementsensor.v1.GetLinearAccelerationResponse.linear_acceleration) return _msg; } -inline void GetLinearAccelerationResponse::set_allocated_linear_acceleration(::viam::common::v1::Vector3* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetLinearAccelerationResponse::set_allocated_linear_acceleration(::viam::common::v1::Vector3* linear_acceleration) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.linear_acceleration_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(linear_acceleration_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (linear_acceleration) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(linear_acceleration)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + linear_acceleration = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, linear_acceleration, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.linear_acceleration_ = reinterpret_cast<::viam::common::v1::Vector3*>(value); + linear_acceleration_ = linear_acceleration; // @@protoc_insertion_point(field_set_allocated:viam.component.movementsensor.v1.GetLinearAccelerationResponse.linear_acceleration) } #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) + } // namespace v1 } // namespace movementsensor } // namespace component } // namespace viam - // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto diff --git a/src/viam/api/component/posetracker/v1/pose_tracker.grpc.pb.cc b/src/viam/api/component/posetracker/v1/pose_tracker.grpc.pb.cc index ed79c4543..06d0469c1 100644 --- a/src/viam/api/component/posetracker/v1/pose_tracker.grpc.pb.cc +++ b/src/viam/api/component/posetracker/v1/pose_tracker.grpc.pb.cc @@ -6,19 +6,19 @@ #include "component/posetracker/v1/pose_tracker.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace component { namespace posetracker { @@ -32,92 +32,107 @@ static const char* PoseTrackerService_method_names[] = { std::unique_ptr< PoseTrackerService::Stub> PoseTrackerService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { (void)options; - std::unique_ptr< PoseTrackerService::Stub> stub(new PoseTrackerService::Stub(channel, options)); + std::unique_ptr< PoseTrackerService::Stub> stub(new PoseTrackerService::Stub(channel)); return stub; } -PoseTrackerService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) - : channel_(channel), rpcmethod_GetPoses_(PoseTrackerService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_DoCommand_(PoseTrackerService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetGeometries_(PoseTrackerService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) +PoseTrackerService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_GetPoses_(PoseTrackerService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DoCommand_(PoseTrackerService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetGeometries_(PoseTrackerService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status PoseTrackerService::Stub::GetPoses(::grpc::ClientContext* context, const ::viam::component::posetracker::v1::GetPosesRequest& request, ::viam::component::posetracker::v1::GetPosesResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::posetracker::v1::GetPosesRequest, ::viam::component::posetracker::v1::GetPosesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetPoses_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetPoses_, context, request, response); } -void PoseTrackerService::Stub::async::GetPoses(::grpc::ClientContext* context, const ::viam::component::posetracker::v1::GetPosesRequest* request, ::viam::component::posetracker::v1::GetPosesResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::posetracker::v1::GetPosesRequest, ::viam::component::posetracker::v1::GetPosesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetPoses_, context, request, response, std::move(f)); +void PoseTrackerService::Stub::experimental_async::GetPoses(::grpc::ClientContext* context, const ::viam::component::posetracker::v1::GetPosesRequest* request, ::viam::component::posetracker::v1::GetPosesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetPoses_, context, request, response, std::move(f)); } -void PoseTrackerService::Stub::async::GetPoses(::grpc::ClientContext* context, const ::viam::component::posetracker::v1::GetPosesRequest* request, ::viam::component::posetracker::v1::GetPosesResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetPoses_, context, request, response, reactor); +void PoseTrackerService::Stub::experimental_async::GetPoses(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::posetracker::v1::GetPosesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetPoses_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::posetracker::v1::GetPosesResponse>* PoseTrackerService::Stub::PrepareAsyncGetPosesRaw(::grpc::ClientContext* context, const ::viam::component::posetracker::v1::GetPosesRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::posetracker::v1::GetPosesResponse, ::viam::component::posetracker::v1::GetPosesRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetPoses_, context, request); +void PoseTrackerService::Stub::experimental_async::GetPoses(::grpc::ClientContext* context, const ::viam::component::posetracker::v1::GetPosesRequest* request, ::viam::component::posetracker::v1::GetPosesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetPoses_, context, request, response, reactor); +} + +void PoseTrackerService::Stub::experimental_async::GetPoses(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::posetracker::v1::GetPosesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetPoses_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::posetracker::v1::GetPosesResponse>* PoseTrackerService::Stub::AsyncGetPosesRaw(::grpc::ClientContext* context, const ::viam::component::posetracker::v1::GetPosesRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetPosesRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::posetracker::v1::GetPosesResponse>::Create(channel_.get(), cq, rpcmethod_GetPoses_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::posetracker::v1::GetPosesResponse>* PoseTrackerService::Stub::PrepareAsyncGetPosesRaw(::grpc::ClientContext* context, const ::viam::component::posetracker::v1::GetPosesRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::posetracker::v1::GetPosesResponse>::Create(channel_.get(), cq, rpcmethod_GetPoses_, context, request, false); } ::grpc::Status PoseTrackerService::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); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DoCommand_, context, request, response); } -void PoseTrackerService::Stub::async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); +void PoseTrackerService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); } -void PoseTrackerService::Stub::async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); +void PoseTrackerService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* PoseTrackerService::Stub::PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::common::v1::DoCommandResponse, ::viam::common::v1::DoCommandRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DoCommand_, context, request); +void PoseTrackerService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); +} + +void PoseTrackerService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* PoseTrackerService::Stub::AsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncDoCommandRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::DoCommandResponse>::Create(channel_.get(), cq, rpcmethod_DoCommand_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* PoseTrackerService::Stub::PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::DoCommandResponse>::Create(channel_.get(), cq, rpcmethod_DoCommand_, context, request, false); } ::grpc::Status PoseTrackerService::Stub::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::viam::common::v1::GetGeometriesResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetGeometries_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetGeometries_, context, request, response); } -void PoseTrackerService::Stub::async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, std::move(f)); +void PoseTrackerService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, std::move(f)); } -void PoseTrackerService::Stub::async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, reactor); +void PoseTrackerService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>* PoseTrackerService::Stub::PrepareAsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::common::v1::GetGeometriesResponse, ::viam::common::v1::GetGeometriesRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetGeometries_, context, request); +void PoseTrackerService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, reactor); +} + +void PoseTrackerService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>* PoseTrackerService::Stub::AsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetGeometriesRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::GetGeometriesResponse>::Create(channel_.get(), cq, rpcmethod_GetGeometries_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>* PoseTrackerService::Stub::PrepareAsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::GetGeometriesResponse>::Create(channel_.get(), cq, rpcmethod_GetGeometries_, context, request, false); } PoseTrackerService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( PoseTrackerService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< PoseTrackerService::Service, ::viam::component::posetracker::v1::GetPosesRequest, ::viam::component::posetracker::v1::GetPosesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< PoseTrackerService::Service, ::viam::component::posetracker::v1::GetPosesRequest, ::viam::component::posetracker::v1::GetPosesResponse>( [](PoseTrackerService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::posetracker::v1::GetPosesRequest* req, ::viam::component::posetracker::v1::GetPosesResponse* resp) { return service->GetPoses(ctx, req, resp); @@ -125,9 +140,9 @@ PoseTrackerService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( PoseTrackerService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< PoseTrackerService::Service, ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< PoseTrackerService::Service, ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( [](PoseTrackerService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::common::v1::DoCommandRequest* req, ::viam::common::v1::DoCommandResponse* resp) { return service->DoCommand(ctx, req, resp); @@ -135,9 +150,9 @@ PoseTrackerService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( PoseTrackerService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< PoseTrackerService::Service, ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< PoseTrackerService::Service, ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( [](PoseTrackerService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::common::v1::GetGeometriesRequest* req, ::viam::common::v1::GetGeometriesResponse* resp) { return service->GetGeometries(ctx, req, resp); diff --git a/src/viam/api/component/posetracker/v1/pose_tracker.grpc.pb.h b/src/viam/api/component/posetracker/v1/pose_tracker.grpc.pb.h index 3447df8fc..338240177 100644 --- a/src/viam/api/component/posetracker/v1/pose_tracker.grpc.pb.h +++ b/src/viam/api/component/posetracker/v1/pose_tracker.grpc.pb.h @@ -7,23 +7,24 @@ #include "component/posetracker/v1/pose_tracker.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace component { @@ -63,23 +64,57 @@ class PoseTrackerService 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)); } - class async_interface { + class experimental_async_interface { public: - virtual ~async_interface() {} + virtual ~experimental_async_interface() {} // GetPoses returns the current pose of each body tracked by the pose tracker virtual void GetPoses(::grpc::ClientContext* context, const ::viam::component::posetracker::v1::GetPosesRequest* request, ::viam::component::posetracker::v1::GetPosesResponse* response, std::function) = 0; + virtual void GetPoses(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::posetracker::v1::GetPosesResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetPoses(::grpc::ClientContext* context, const ::viam::component::posetracker::v1::GetPosesRequest* request, ::viam::component::posetracker::v1::GetPosesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetPoses(::grpc::ClientContext* context, const ::viam::component::posetracker::v1::GetPosesRequest* request, ::viam::component::posetracker::v1::GetPosesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetPoses(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::posetracker::v1::GetPosesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetPoses(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::posetracker::v1::GetPosesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // 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 ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // 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 ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif }; - typedef class async_interface experimental_async_interface; - virtual class async_interface* async() { return nullptr; } - class async_interface* experimental_async() { return async(); } - private: + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef class experimental_async_interface async_interface; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + async_interface* async() { return experimental_async(); } + #endif + virtual class experimental_async_interface* experimental_async() { return nullptr; } + private: virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::posetracker::v1::GetPosesResponse>* AsyncGetPosesRaw(::grpc::ClientContext* context, const ::viam::component::posetracker::v1::GetPosesRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::posetracker::v1::GetPosesResponse>* PrepareAsyncGetPosesRaw(::grpc::ClientContext* context, const ::viam::component::posetracker::v1::GetPosesRequest& 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; @@ -89,7 +124,7 @@ class PoseTrackerService final { }; class Stub final : public StubInterface { public: - Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); ::grpc::Status GetPoses(::grpc::ClientContext* context, const ::viam::component::posetracker::v1::GetPosesRequest& request, ::viam::component::posetracker::v1::GetPosesResponse* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::posetracker::v1::GetPosesResponse>> AsyncGetPoses(::grpc::ClientContext* context, const ::viam::component::posetracker::v1::GetPosesRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::posetracker::v1::GetPosesResponse>>(AsyncGetPosesRaw(context, request, cq)); @@ -111,26 +146,56 @@ class PoseTrackerService 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)); } - class async final : - public StubInterface::async_interface { + class experimental_async final : + public StubInterface::experimental_async_interface { public: void GetPoses(::grpc::ClientContext* context, const ::viam::component::posetracker::v1::GetPosesRequest* request, ::viam::component::posetracker::v1::GetPosesResponse* response, std::function) override; + void GetPoses(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::posetracker::v1::GetPosesResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetPoses(::grpc::ClientContext* context, const ::viam::component::posetracker::v1::GetPosesRequest* request, ::viam::component::posetracker::v1::GetPosesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetPoses(::grpc::ClientContext* context, const ::viam::component::posetracker::v1::GetPosesRequest* request, ::viam::component::posetracker::v1::GetPosesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetPoses(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::posetracker::v1::GetPosesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetPoses(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::posetracker::v1::GetPosesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif 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 ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif 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 ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif private: friend class Stub; - explicit async(Stub* stub): stub_(stub) { } + explicit experimental_async(Stub* stub): stub_(stub) { } Stub* stub() { return stub_; } Stub* stub_; }; - class async* async() override { return &async_stub_; } + class experimental_async_interface* experimental_async() override { return &async_stub_; } private: std::shared_ptr< ::grpc::ChannelInterface> channel_; - class async async_stub_{this}; + class experimental_async async_stub_{this}; ::grpc::ClientAsyncResponseReader< ::viam::component::posetracker::v1::GetPosesResponse>* AsyncGetPosesRaw(::grpc::ClientContext* context, const ::viam::component::posetracker::v1::GetPosesRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::component::posetracker::v1::GetPosesResponse>* PrepareAsyncGetPosesRaw(::grpc::ClientContext* context, const ::viam::component::posetracker::v1::GetPosesRequest& 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; @@ -216,22 +281,36 @@ class PoseTrackerService final { }; typedef WithAsyncMethod_GetPoses > > AsyncService; template - class WithCallbackMethod_GetPoses : public BaseClass { + class ExperimentalWithCallbackMethod_GetPoses : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetPoses() { - ::grpc::Service::MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::posetracker::v1::GetPosesRequest, ::viam::component::posetracker::v1::GetPosesResponse>( + ExperimentalWithCallbackMethod_GetPoses() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::posetracker::v1::GetPosesRequest, ::viam::component::posetracker::v1::GetPosesResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::posetracker::v1::GetPosesRequest* request, ::viam::component::posetracker::v1::GetPosesResponse* response) { return this->GetPoses(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::posetracker::v1::GetPosesRequest* request, ::viam::component::posetracker::v1::GetPosesResponse* response) { return this->GetPoses(context, request, response); }));} void SetMessageAllocatorFor_GetPoses( - ::grpc::MessageAllocator< ::viam::component::posetracker::v1::GetPosesRequest, ::viam::component::posetracker::v1::GetPosesResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::posetracker::v1::GetPosesRequest, ::viam::component::posetracker::v1::GetPosesResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::posetracker::v1::GetPosesRequest, ::viam::component::posetracker::v1::GetPosesResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(0); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::posetracker::v1::GetPosesRequest, ::viam::component::posetracker::v1::GetPosesResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetPoses() override { + ~ExperimentalWithCallbackMethod_GetPoses() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -239,26 +318,46 @@ class PoseTrackerService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetPoses( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::posetracker::v1::GetPosesRequest* /*request*/, ::viam::component::posetracker::v1::GetPosesResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::posetracker::v1::GetPosesRequest* /*request*/, ::viam::component::posetracker::v1::GetPosesResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetPoses( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::posetracker::v1::GetPosesRequest* /*request*/, ::viam::component::posetracker::v1::GetPosesResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_DoCommand : public BaseClass { + class ExperimentalWithCallbackMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_DoCommand() { - ::grpc::Service::MarkMethodCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( + ExperimentalWithCallbackMethod_DoCommand() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(1, + new ::grpc_impl::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); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + 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::experimental::MessageAllocator< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(1); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_DoCommand() override { + ~ExperimentalWithCallbackMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -266,26 +365,46 @@ class PoseTrackerService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DoCommand( - ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DoCommand( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetGeometries : public BaseClass { + class ExperimentalWithCallbackMethod_GetGeometries : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetGeometries() { - ::grpc::Service::MarkMethodCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( + ExperimentalWithCallbackMethod_GetGeometries() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(2, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response) { return this->GetGeometries(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response) { return this->GetGeometries(context, request, response); }));} void SetMessageAllocatorFor_GetGeometries( - ::grpc::MessageAllocator< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(2); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetGeometries() override { + ~ExperimentalWithCallbackMethod_GetGeometries() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -293,11 +412,20 @@ class PoseTrackerService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetGeometries( - ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::GetGeometriesRequest* /*request*/, ::viam::common::v1::GetGeometriesResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::GetGeometriesRequest* /*request*/, ::viam::common::v1::GetGeometriesResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetGeometries( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::common::v1::GetGeometriesRequest* /*request*/, ::viam::common::v1::GetGeometriesResponse* /*response*/) + #endif + { return nullptr; } }; - typedef WithCallbackMethod_GetPoses > > CallbackService; - typedef CallbackService ExperimentalCallbackService; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef ExperimentalWithCallbackMethod_GetPoses > > CallbackService; + #endif + + typedef ExperimentalWithCallbackMethod_GetPoses > > ExperimentalCallbackService; template class WithGenericMethod_GetPoses : public BaseClass { private: @@ -410,17 +538,27 @@ class PoseTrackerService final { } }; template - class WithRawCallbackMethod_GetPoses : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetPoses : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetPoses() { - ::grpc::Service::MarkMethodRawCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetPoses() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetPoses(context, request, response); })); - } - ~WithRawCallbackMethod_GetPoses() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetPoses(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetPoses() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -428,21 +566,37 @@ class PoseTrackerService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetPoses( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetPoses( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_DoCommand : public BaseClass { + class ExperimentalWithRawCallbackMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_DoCommand() { - ::grpc::Service::MarkMethodRawCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_DoCommand() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DoCommand(context, request, response); })); - } - ~WithRawCallbackMethod_DoCommand() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DoCommand(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -450,21 +604,37 @@ class PoseTrackerService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DoCommand( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DoCommand( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetGeometries : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetGeometries : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetGeometries() { - ::grpc::Service::MarkMethodRawCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetGeometries() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(2, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetGeometries(context, request, response); })); - } - ~WithRawCallbackMethod_GetGeometries() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetGeometries(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetGeometries() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -472,8 +642,14 @@ class PoseTrackerService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetGeometries( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetGeometries( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template class WithStreamedUnaryMethod_GetPoses : public BaseClass { @@ -484,8 +660,8 @@ class PoseTrackerService final { ::grpc::Service::MarkMethodStreamed(0, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::posetracker::v1::GetPosesRequest, ::viam::component::posetracker::v1::GetPosesResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::posetracker::v1::GetPosesRequest, ::viam::component::posetracker::v1::GetPosesResponse>* streamer) { return this->StreamedGetPoses(context, streamer); @@ -511,8 +687,8 @@ class PoseTrackerService final { ::grpc::Service::MarkMethodStreamed(1, new ::grpc::internal::StreamedUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* streamer) { return this->StreamedDoCommand(context, streamer); @@ -538,8 +714,8 @@ class PoseTrackerService final { ::grpc::Service::MarkMethodStreamed(2, new ::grpc::internal::StreamedUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>* streamer) { return this->StreamedGetGeometries(context, streamer); diff --git a/src/viam/api/component/posetracker/v1/pose_tracker.pb.cc b/src/viam/api/component/posetracker/v1/pose_tracker.pb.cc index 10f123beb..41c929ce8 100644 --- a/src/viam/api/component/posetracker/v1/pose_tracker.pb.cc +++ b/src/viam/api/component/posetracker/v1/pose_tracker.pb.cc @@ -4,461 +4,414 @@ #include "component/posetracker/v1/pose_tracker.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace viam { namespace component { namespace posetracker { namespace v1 { - -inline constexpr GetPosesRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - body_names_{}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetPosesRequest::GetPosesRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_CONSTEXPR GetPosesRequest::GetPosesRequest( + ::_pbi::ConstantInitialized) + : body_names_() + , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} struct GetPosesRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetPosesRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GetPosesRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~GetPosesRequestDefaultTypeInternal() {} union { GetPosesRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPosesRequestDefaultTypeInternal _GetPosesRequest_default_instance_; - template -PROTOBUF_CONSTEXPR GetPosesResponse_BodyPosesEntry_DoNotUse::GetPosesResponse_BodyPosesEntry_DoNotUse(::_pbi::ConstantInitialized) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPosesRequestDefaultTypeInternal _GetPosesRequest_default_instance_; +PROTOBUF_CONSTEXPR GetPosesResponse_BodyPosesEntry_DoNotUse::GetPosesResponse_BodyPosesEntry_DoNotUse( + ::_pbi::ConstantInitialized){} struct GetPosesResponse_BodyPosesEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetPosesResponse_BodyPosesEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GetPosesResponse_BodyPosesEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~GetPosesResponse_BodyPosesEntry_DoNotUseDefaultTypeInternal() {} union { GetPosesResponse_BodyPosesEntry_DoNotUse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPosesResponse_BodyPosesEntry_DoNotUseDefaultTypeInternal _GetPosesResponse_BodyPosesEntry_DoNotUse_default_instance_; - -inline constexpr GetPosesResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : body_poses_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetPosesResponse::GetPosesResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPosesResponse_BodyPosesEntry_DoNotUseDefaultTypeInternal _GetPosesResponse_BodyPosesEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR GetPosesResponse::GetPosesResponse( + ::_pbi::ConstantInitialized) + : body_poses_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}){} struct GetPosesResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetPosesResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GetPosesResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~GetPosesResponseDefaultTypeInternal() {} union { GetPosesResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPosesResponseDefaultTypeInternal _GetPosesResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPosesResponseDefaultTypeInternal _GetPosesResponse_default_instance_; } // namespace v1 } // namespace posetracker } // namespace component } // namespace viam static ::_pb::Metadata file_level_metadata_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto[3]; -static constexpr const ::_pb::EnumDescriptor** - file_level_enum_descriptors_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto = nullptr; -const ::uint32_t TableStruct_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::viam::component::posetracker::v1::GetPosesRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::posetracker::v1::GetPosesRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::posetracker::v1::GetPosesRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::posetracker::v1::GetPosesRequest, _impl_.body_names_), - PROTOBUF_FIELD_OFFSET(::viam::component::posetracker::v1::GetPosesRequest, _impl_.extra_), - ~0u, - ~0u, - 0, - PROTOBUF_FIELD_OFFSET(::viam::component::posetracker::v1::GetPosesResponse_BodyPosesEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::posetracker::v1::GetPosesResponse_BodyPosesEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::posetracker::v1::GetPosesResponse_BodyPosesEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::viam::component::posetracker::v1::GetPosesResponse_BodyPosesEntry_DoNotUse, value_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::posetracker::v1::GetPosesResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::posetracker::v1::GetPosesResponse, _impl_.body_poses_), +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto = nullptr; + +const uint32_t TableStruct_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::posetracker::v1::GetPosesRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::posetracker::v1::GetPosesRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::posetracker::v1::GetPosesRequest, body_names_), + PROTOBUF_FIELD_OFFSET(::viam::component::posetracker::v1::GetPosesRequest, extra_), + PROTOBUF_FIELD_OFFSET(::viam::component::posetracker::v1::GetPosesResponse_BodyPosesEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::component::posetracker::v1::GetPosesResponse_BodyPosesEntry_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::posetracker::v1::GetPosesResponse_BodyPosesEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::viam::component::posetracker::v1::GetPosesResponse_BodyPosesEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::posetracker::v1::GetPosesResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::posetracker::v1::GetPosesResponse, body_poses_), }; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, 11, -1, sizeof(::viam::component::posetracker::v1::GetPosesRequest)}, - {14, 24, -1, sizeof(::viam::component::posetracker::v1::GetPosesResponse_BodyPosesEntry_DoNotUse)}, - {26, -1, -1, sizeof(::viam::component::posetracker::v1::GetPosesResponse)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::component::posetracker::v1::GetPosesRequest)}, + { 9, 17, -1, sizeof(::viam::component::posetracker::v1::GetPosesResponse_BodyPosesEntry_DoNotUse)}, + { 19, -1, -1, sizeof(::viam::component::posetracker::v1::GetPosesResponse)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::viam::component::posetracker::v1::_GetPosesRequest_default_instance_._instance, - &::viam::component::posetracker::v1::_GetPosesResponse_BodyPosesEntry_DoNotUse_default_instance_._instance, - &::viam::component::posetracker::v1::_GetPosesResponse_default_instance_._instance, -}; -const char descriptor_table_protodef_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n+component/posetracker/v1/pose_tracker." - "proto\022\035viam.component.posetracker.v1\032\026co" - "mmon/v1/common.proto\032\034google/api/annotat" - "ions.proto\032\034google/protobuf/struct.proto" - "\"s\n\017GetPosesRequest\022\022\n\004name\030\001 \001(\tR\004name\022" - "\035\n\nbody_names\030\002 \003(\tR\tbodyNames\022-\n\005extra\030" - "c \001(\0132\027.google.protobuf.StructR\005extra\"\314\001" - "\n\020GetPosesResponse\022]\n\nbody_poses\030\001 \003(\0132>" - ".viam.component.posetracker.v1.GetPosesR" - "esponse.BodyPosesEntryR\tbodyPoses\032Y\n\016Bod" - "yPosesEntry\022\020\n\003key\030\001 \001(\tR\003key\0221\n\005value\030\002" - " \001(\0132\033.viam.common.v1.PoseInFrameR\005value" - ":\0028\0012\354\003\n\022PoseTrackerService\022\245\001\n\010GetPoses" - "\022..viam.component.posetracker.v1.GetPose" - "sRequest\032/.viam.component.posetracker.v1" - ".GetPosesResponse\"8\202\323\344\223\0022\0220/viam/api/v1/" - "component/pose_tracker/{name}/poses\022\217\001\n\t" - "DoCommand\022 .viam.common.v1.DoCommandRequ" - "est\032!.viam.common.v1.DoCommandResponse\"=" - "\202\323\344\223\0027\"5/viam/api/v1/component/pose_trac" - "ker/{name}/do_command\022\233\001\n\rGetGeometries\022" - "$.viam.common.v1.GetGeometriesRequest\032%." - "viam.common.v1.GetGeometriesResponse\"=\202\323" - "\344\223\0027\0225/viam/api/v1/component/pose_tracke" - "r/{name}/geometriesB\352\001\n!com.viam.compone" - "nt.posetracker.v1B\020PoseTrackerProtoP\001Z\034g" - "o.viam.com/api/component/v1\242\002\003VCP\252\002\035Viam" - ".Component.Posetracker.V1\312\002\035Viam\\Compone" - "nt\\Posetracker\\V1\342\002)Viam\\Component\\Poset" - "racker\\V1\\GPBMetadata\352\002 Viam::Component:" - ":Posetracker::V1b\006proto3" + &::viam::component::posetracker::v1::_GetPosesRequest_default_instance_._instance, + &::viam::component::posetracker::v1::_GetPosesResponse_BodyPosesEntry_DoNotUse_default_instance_._instance, + &::viam::component::posetracker::v1::_GetPosesResponse_default_instance_._instance, }; -static const ::_pbi::DescriptorTable* const descriptor_table_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto_deps[3] = - { - &::descriptor_table_common_2fv1_2fcommon_2eproto, - &::descriptor_table_google_2fapi_2fannotations_2eproto, - &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, + +const char descriptor_table_protodef_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n+component/posetracker/v1/pose_tracker." + "proto\022\035viam.component.posetracker.v1\032\026co" + "mmon/v1/common.proto\032\034google/api/annotat" + "ions.proto\032\034google/protobuf/struct.proto" + "\"s\n\017GetPosesRequest\022\022\n\004name\030\001 \001(\tR\004name\022" + "\035\n\nbody_names\030\002 \003(\tR\tbodyNames\022-\n\005extra\030" + "c \001(\0132\027.google.protobuf.StructR\005extra\"\314\001" + "\n\020GetPosesResponse\022]\n\nbody_poses\030\001 \003(\0132>" + ".viam.component.posetracker.v1.GetPosesR" + "esponse.BodyPosesEntryR\tbodyPoses\032Y\n\016Bod" + "yPosesEntry\022\020\n\003key\030\001 \001(\tR\003key\0221\n\005value\030\002" + " \001(\0132\033.viam.common.v1.PoseInFrameR\005value" + ":\0028\0012\354\003\n\022PoseTrackerService\022\245\001\n\010GetPoses" + "\022..viam.component.posetracker.v1.GetPose" + "sRequest\032/.viam.component.posetracker.v1" + ".GetPosesResponse\"8\202\323\344\223\0022\0220/viam/api/v1/" + "component/pose_tracker/{name}/poses\022\217\001\n\t" + "DoCommand\022 .viam.common.v1.DoCommandRequ" + "est\032!.viam.common.v1.DoCommandResponse\"=" + "\202\323\344\223\0027\"5/viam/api/v1/component/pose_trac" + "ker/{name}/do_command\022\233\001\n\rGetGeometries\022" + "$.viam.common.v1.GetGeometriesRequest\032%." + "viam.common.v1.GetGeometriesResponse\"=\202\323" + "\344\223\0027\0225/viam/api/v1/component/pose_tracke" + "r/{name}/geometriesB5\n\025com.viam.componen" + "t.v1Z\034go.viam.com/api/component/v1b\006prot" + "o3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto_deps[3] = { + &::descriptor_table_common_2fv1_2fcommon_2eproto, + &::descriptor_table_google_2fapi_2fannotations_2eproto, + &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, }; -static ::absl::once_flag descriptor_table_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto_once; +static ::_pbi::once_flag descriptor_table_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto = { - false, - false, - 1224, - descriptor_table_protodef_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto, + false, false, 1042, descriptor_table_protodef_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto, "component/posetracker/v1/pose_tracker.proto", - &descriptor_table_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto_once, - descriptor_table_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto_deps, - 3, - 3, - schemas, - file_default_instances, - TableStruct_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto::offsets, - file_level_metadata_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto, - file_level_enum_descriptors_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto, + &descriptor_table_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto_once, descriptor_table_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto_deps, 3, 3, + schemas, file_default_instances, TableStruct_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto::offsets, + file_level_metadata_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto, file_level_enum_descriptors_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto, file_level_service_descriptors_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto_getter() { return &descriptor_table_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto(&descriptor_table_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto(&descriptor_table_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto); namespace viam { namespace component { namespace posetracker { namespace v1 { + // =================================================================== class GetPosesRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetPosesRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const GetPosesRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetPosesRequest* msg); }; -const ::google::protobuf::Struct& GetPosesRequest::_Internal::extra(const GetPosesRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetPosesRequest::_Internal::extra(const GetPosesRequest* msg) { + return *msg->extra_; } void GetPosesRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -GetPosesRequest::GetPosesRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetPosesRequest::GetPosesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + body_names_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.component.posetracker.v1.GetPosesRequest) } -inline PROTOBUF_NDEBUG_INLINE GetPosesRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - body_names_{visibility, arena, from.body_names_}, - name_(arena, from.name_) {} - -GetPosesRequest::GetPosesRequest( - ::google::protobuf::Arena* arena, - const GetPosesRequest& from) - : ::google::protobuf::Message(arena) { - GetPosesRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +GetPosesRequest::GetPosesRequest(const GetPosesRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + body_names_(from.body_names_) { + _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.posetracker.v1.GetPosesRequest) } -inline PROTOBUF_NDEBUG_INLINE GetPosesRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - body_names_{visibility, arena}, - name_(arena) {} -inline void GetPosesRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void GetPosesRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + GetPosesRequest::~GetPosesRequest() { // @@protoc_insertion_point(destructor:viam.component.posetracker.v1.GetPosesRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetPosesRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void GetPosesRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetPosesRequest::Clear() { +void GetPosesRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.posetracker.v1.GetPosesRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.body_names_.Clear(); - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); + body_names_.Clear(); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetPosesRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPosesRequest::_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.posetracker.v1.GetPosesRequest.name")); + } else + goto handle_unusual; + continue; + // repeated string body_names = 2 [json_name = "bodyNames"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_body_names(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.posetracker.v1.GetPosesRequest.body_names")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 1, 68, 7> GetPosesRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetPosesRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetPosesRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetPosesRequest, _impl_.name_)}}, - // repeated string body_names = 2 [json_name = "bodyNames"]; - {::_pbi::TcParser::FastUR1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(GetPosesRequest, _impl_.body_names_)}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(GetPosesRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 2, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(GetPosesRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated string body_names = 2 [json_name = "bodyNames"]; - {PROTOBUF_FIELD_OFFSET(GetPosesRequest, _impl_.body_names_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(GetPosesRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\55\4\12\0\0\0\0\0" - "viam.component.posetracker.v1.GetPosesRequest" - "name" - "body_names" - }}, -}; - -::uint8_t* GetPosesRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetPosesRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.posetracker.v1.GetPosesRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.posetracker.v1.GetPosesRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.posetracker.v1.GetPosesRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // repeated string body_names = 2 [json_name = "bodyNames"]; - for (int i = 0, n = this->_internal_body_names_size(); i < n; ++i) { - const auto& s = this->_internal_body_names().Get(i); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.posetracker.v1.GetPosesRequest.body_names"); + for (int i = 0, n = this->_internal_body_names_size(); i < n; i++) { + const auto& s = this->_internal_body_names(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.posetracker.v1.GetPosesRequest.body_names"); target = stream->WriteString(2, s, target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.posetracker.v1.GetPosesRequest) return target; } -::size_t GetPosesRequest::ByteSizeLong() const { +size_t GetPosesRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.posetracker.v1.GetPosesRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated string body_names = 2 [json_name = "bodyNames"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_body_names().size()); - for (int i = 0, n = _internal_body_names().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - _internal_body_names().Get(i)); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(body_names_.size()); + for (int i = 0, n = body_names_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + body_names_.Get(i)); } + // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetPosesRequest::_class_data_ = { - GetPosesRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPosesRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetPosesRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetPosesRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPosesRequest::GetClassData() const { return &_class_data_; } + +void GetPosesRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetPosesRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.posetracker.v1.GetPosesRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetPosesRequest::MergeFrom(const GetPosesRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.posetracker.v1.GetPosesRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_body_names()->MergeFrom(from._internal_body_names()); + body_names_.MergeFrom(from.body_names_); if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetPosesRequest::CopyFrom(const GetPosesRequest& from) { @@ -468,39 +421,43 @@ void GetPosesRequest::CopyFrom(const GetPosesRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetPosesRequest::IsInitialized() const { +bool GetPosesRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetPosesRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetPosesRequest::InternalSwap(GetPosesRequest* PROTOBUF_RESTRICT other) { +void GetPosesRequest::InternalSwap(GetPosesRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.body_names_.InternalSwap(&other->_impl_.body_names_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.extra_, other->_impl_.extra_); + body_names_.InternalSwap(&other->body_names_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(extra_, other->extra_); } -::google::protobuf::Metadata GetPosesRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetPosesRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto_getter, &descriptor_table_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto_once, file_level_metadata_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto[0]); } + // =================================================================== GetPosesResponse_BodyPosesEntry_DoNotUse::GetPosesResponse_BodyPosesEntry_DoNotUse() {} -GetPosesResponse_BodyPosesEntry_DoNotUse::GetPosesResponse_BodyPosesEntry_DoNotUse(::google::protobuf::Arena* arena) +GetPosesResponse_BodyPosesEntry_DoNotUse::GetPosesResponse_BodyPosesEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) : SuperType(arena) {} -::google::protobuf::Metadata GetPosesResponse_BodyPosesEntry_DoNotUse::GetMetadata() const { +void GetPosesResponse_BodyPosesEntry_DoNotUse::MergeFrom(const GetPosesResponse_BodyPosesEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata GetPosesResponse_BodyPosesEntry_DoNotUse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto_getter, &descriptor_table_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto_once, file_level_metadata_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto[1]); } + // =================================================================== class GetPosesResponse::_Internal { @@ -508,183 +465,184 @@ class GetPosesResponse::_Internal { }; void GetPosesResponse::clear_body_poses() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.body_poses_.Clear(); -} -GetPosesResponse::GetPosesResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); + body_poses_.Clear(); +} +GetPosesResponse::GetPosesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + body_poses_(arena) { + SharedCtor(); + if (arena != nullptr && !is_message_owned) { + arena->OwnCustomDestructor(this, &GetPosesResponse::ArenaDtor); + } // @@protoc_insertion_point(arena_constructor:viam.component.posetracker.v1.GetPosesResponse) } -inline PROTOBUF_NDEBUG_INLINE GetPosesResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : body_poses_{visibility, arena, from.body_poses_}, - _cached_size_{0} {} - -GetPosesResponse::GetPosesResponse( - ::google::protobuf::Arena* arena, - const GetPosesResponse& from) - : ::google::protobuf::Message(arena) { - GetPosesResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetPosesResponse::GetPosesResponse(const GetPosesResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + body_poses_.MergeFrom(from.body_poses_); // @@protoc_insertion_point(copy_constructor:viam.component.posetracker.v1.GetPosesResponse) } -inline PROTOBUF_NDEBUG_INLINE GetPosesResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : body_poses_{visibility, arena}, - _cached_size_{0} {} -inline void GetPosesResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetPosesResponse::SharedCtor() { } + GetPosesResponse::~GetPosesResponse() { // @@protoc_insertion_point(destructor:viam.component.posetracker.v1.GetPosesResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + ArenaDtor(this); + return; + } SharedDtor(); } + inline void GetPosesResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + body_poses_.Destruct(); +} + +void GetPosesResponse::ArenaDtor(void* object) { + GetPosesResponse* _this = reinterpret_cast< GetPosesResponse* >(object); + _this->body_poses_.Destruct(); +} +void GetPosesResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetPosesResponse::Clear() { +void GetPosesResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.posetracker.v1.GetPosesResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.body_poses_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetPosesResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + body_poses_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPosesResponse::_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 body_poses = 1 [json_name = "bodyPoses"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&body_poses_, 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 2, 65, 2> GetPosesResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetPosesResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // map body_poses = 1 [json_name = "bodyPoses"]; - {PROTOBUF_FIELD_OFFSET(GetPosesResponse, _impl_.body_poses_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, - }}, {{ - {::_pbi::TcParser::GetMapAuxInfo< - decltype(GetPosesResponse()._impl_.body_poses_)>( - 1, 0, 0, 9, - 11)}, - {::_pbi::TcParser::CreateInArenaStorageCb<::viam::common::v1::PoseInFrame>}, - }}, {{ - "\56\12\0\0\0\0\0\0" - "viam.component.posetracker.v1.GetPosesResponse" - "body_poses" - }}, -}; - -::uint8_t* GetPosesResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetPosesResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.posetracker.v1.GetPosesResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // map body_poses = 1 [json_name = "bodyPoses"]; - if (!_internal_body_poses().empty()) { - using MapType = ::google::protobuf::Map; - using WireHelper = _pbi::MapEntryFuncs; - const auto& field = _internal_body_poses(); - - if (stream->IsSerializationDeterministic() && field.size() > 1) { - for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { - target = WireHelper::InternalSerialize( - 1, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.posetracker.v1.GetPosesResponse.body_poses"); + if (!this->_internal_body_poses().empty()) { + using MapType = ::_pb::Map; + using WireHelper = GetPosesResponse_BodyPosesEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_body_poses(); + 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.posetracker.v1.GetPosesResponse.BodyPosesEntry.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 : field) { - target = WireHelper::InternalSerialize( - 1, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.posetracker.v1.GetPosesResponse.body_poses"); + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.posetracker.v1.GetPosesResponse) return target; } -::size_t GetPosesResponse::ByteSizeLong() const { +size_t GetPosesResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.posetracker.v1.GetPosesResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // map body_poses = 1 [json_name = "bodyPoses"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_body_poses_size()); - for (const auto& entry : _internal_body_poses()) { - total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_body_poses_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::PoseInFrame >::const_iterator + it = this->_internal_body_poses().begin(); + it != this->_internal_body_poses().end(); ++it) { + total_size += GetPosesResponse_BodyPosesEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetPosesResponse::_class_data_ = { - GetPosesResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPosesResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetPosesResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetPosesResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPosesResponse::GetClassData() const { return &_class_data_; } + +void GetPosesResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetPosesResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.posetracker.v1.GetPosesResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetPosesResponse::MergeFrom(const GetPosesResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.posetracker.v1.GetPosesResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.body_poses_.MergeFrom(from._impl_.body_poses_); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + body_poses_.MergeFrom(from.body_poses_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetPosesResponse::CopyFrom(const GetPosesResponse& from) { @@ -694,32 +652,41 @@ void GetPosesResponse::CopyFrom(const GetPosesResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetPosesResponse::IsInitialized() const { +bool GetPosesResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetPosesResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetPosesResponse::InternalSwap(GetPosesResponse* PROTOBUF_RESTRICT other) { +void GetPosesResponse::InternalSwap(GetPosesResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.body_poses_.InternalSwap(&other->_impl_.body_poses_); + body_poses_.InternalSwap(&other->body_poses_); } -::google::protobuf::Metadata GetPosesResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetPosesResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto_getter, &descriptor_table_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto_once, file_level_metadata_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto[2]); } + // @@protoc_insertion_point(namespace_scope) } // namespace v1 } // namespace posetracker } // namespace component } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::component::posetracker::v1::GetPosesRequest* +Arena::CreateMaybeMessage< ::viam::component::posetracker::v1::GetPosesRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::posetracker::v1::GetPosesRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::posetracker::v1::GetPosesResponse_BodyPosesEntry_DoNotUse* +Arena::CreateMaybeMessage< ::viam::component::posetracker::v1::GetPosesResponse_BodyPosesEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::posetracker::v1::GetPosesResponse_BodyPosesEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::posetracker::v1::GetPosesResponse* +Arena::CreateMaybeMessage< ::viam::component::posetracker::v1::GetPosesResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::posetracker::v1::GetPosesResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/component/posetracker/v1/pose_tracker.pb.h b/src/viam/api/component/posetracker/v1/pose_tracker.pb.h index e435d0216..62716e81b 100644 --- a/src/viam/api/component/posetracker/v1/pose_tracker.pb.h +++ b/src/viam/api/component/posetracker/v1/pose_tracker.pb.h @@ -1,66 +1,55 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: component/posetracker/v1/pose_tracker.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/map.h" // IWYU pragma: export -#include "google/protobuf/map_entry.h" -#include "google/protobuf/map_field_inl.h" -#include "google/protobuf/unknown_field_set.h" + +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#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 "google/protobuf/struct.pb.h" +#include // @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - +#include #define PROTOBUF_INTERNAL_EXPORT_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto; namespace viam { namespace component { namespace posetracker { @@ -78,11 +67,11 @@ extern GetPosesResponse_BodyPosesEntry_DoNotUseDefaultTypeInternal _GetPosesResp } // namespace posetracker } // namespace component } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::component::posetracker::v1::GetPosesRequest* Arena::CreateMaybeMessage<::viam::component::posetracker::v1::GetPosesRequest>(Arena*); +template<> ::viam::component::posetracker::v1::GetPosesResponse* Arena::CreateMaybeMessage<::viam::component::posetracker::v1::GetPosesResponse>(Arena*); +template<> ::viam::component::posetracker::v1::GetPosesResponse_BodyPosesEntry_DoNotUse* Arena::CreateMaybeMessage<::viam::component::posetracker::v1::GetPosesResponse_BodyPosesEntry_DoNotUse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace viam { namespace component { namespace posetracker { @@ -90,19 +79,14 @@ namespace v1 { // =================================================================== - -// ------------------------------------------------------------------- - class GetPosesRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.posetracker.v1.GetPosesRequest) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.posetracker.v1.GetPosesRequest) */ { public: inline GetPosesRequest() : GetPosesRequest(nullptr) {} ~GetPosesRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetPosesRequest(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR GetPosesRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetPosesRequest(const GetPosesRequest& from) - : GetPosesRequest(nullptr, from) {} + GetPosesRequest(const GetPosesRequest& from); GetPosesRequest(GetPosesRequest&& from) noexcept : GetPosesRequest() { *this = ::std::move(from); @@ -114,9 +98,9 @@ class GetPosesRequest final : } inline GetPosesRequest& operator=(GetPosesRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -126,22 +110,13 @@ class GetPosesRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const GetPosesRequest& default_instance() { @@ -160,65 +135,63 @@ class GetPosesRequest final : inline void Swap(GetPosesRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(GetPosesRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetPosesRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + GetPosesRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const GetPosesRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetPosesRequest& from) { - GetPosesRequest::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetPosesRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(GetPosesRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "viam.component.posetracker.v1.GetPosesRequest"; } protected: - explicit GetPosesRequest(::google::protobuf::Arena* arena); - GetPosesRequest(::google::protobuf::Arena* arena, const GetPosesRequest& from); + explicit GetPosesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -233,133 +206,107 @@ class GetPosesRequest final : int body_names_size() const; private: int _internal_body_names_size() const; - public: - void clear_body_names() ; + void clear_body_names(); const std::string& body_names(int index) const; std::string* mutable_body_names(int index); void set_body_names(int index, const std::string& value); void set_body_names(int index, std::string&& value); void set_body_names(int index, const char* value); - void set_body_names(int index, const char* value, std::size_t size); - void set_body_names(int index, absl::string_view value); + void set_body_names(int index, const char* value, size_t size); std::string* add_body_names(); void add_body_names(const std::string& value); void add_body_names(std::string&& value); void add_body_names(const char* value); - void add_body_names(const char* value, std::size_t size); - void add_body_names(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& body_names() const; - ::google::protobuf::RepeatedPtrField* mutable_body_names(); - + void add_body_names(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& body_names() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_body_names(); private: - const ::google::protobuf::RepeatedPtrField& _internal_body_names() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_body_names(); - + const std::string& _internal_body_names(int index) const; + std::string* _internal_add_body_names(); public: + // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + 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; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - + 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.posetracker.v1.GetPosesRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 1, - 68, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField body_names_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField body_names_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetPosesResponse_BodyPosesEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry< - GetPosesResponse_BodyPosesEntry_DoNotUse, std::string, ::viam::common::v1::PoseInFrame, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE> { - public: - using SuperType = ::google::protobuf::internal::MapEntry< - GetPosesResponse_BodyPosesEntry_DoNotUse, std::string, ::viam::common::v1::PoseInFrame, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>; +class GetPosesResponse_BodyPosesEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; GetPosesResponse_BodyPosesEntry_DoNotUse(); - template explicit PROTOBUF_CONSTEXPR GetPosesResponse_BodyPosesEntry_DoNotUse( - ::google::protobuf::internal::ConstantInitialized); - explicit GetPosesResponse_BodyPosesEntry_DoNotUse(::google::protobuf::Arena* arena); - static const GetPosesResponse_BodyPosesEntry_DoNotUse* internal_default_instance() { - return reinterpret_cast( - &_GetPosesResponse_BodyPosesEntry_DoNotUse_default_instance_); - } + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit GetPosesResponse_BodyPosesEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const GetPosesResponse_BodyPosesEntry_DoNotUse& other); + static const GetPosesResponse_BodyPosesEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_GetPosesResponse_BodyPosesEntry_DoNotUse_default_instance_); } static bool ValidateKey(std::string* s) { - return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "viam.component.posetracker.v1.GetPosesResponse.BodyPosesEntry.key"); + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "viam.component.posetracker.v1.GetPosesResponse.BodyPosesEntry.key"); } static bool ValidateValue(void*) { return true; } - ::google::protobuf::Metadata GetMetadata() const final; + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; friend struct ::TableStruct_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto; }; + // ------------------------------------------------------------------- class GetPosesResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.posetracker.v1.GetPosesResponse) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.posetracker.v1.GetPosesResponse) */ { public: inline GetPosesResponse() : GetPosesResponse(nullptr) {} ~GetPosesResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetPosesResponse(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR GetPosesResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetPosesResponse(const GetPosesResponse& from) - : GetPosesResponse(nullptr, from) {} + GetPosesResponse(const GetPosesResponse& from); GetPosesResponse(GetPosesResponse&& from) noexcept : GetPosesResponse() { *this = ::std::move(from); @@ -371,9 +318,9 @@ class GetPosesResponse final : } inline GetPosesResponse& operator=(GetPosesResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -383,22 +330,13 @@ class GetPosesResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const GetPosesResponse& default_instance() { @@ -417,65 +355,65 @@ class GetPosesResponse final : inline void Swap(GetPosesResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(GetPosesResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetPosesResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + GetPosesResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const GetPosesResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetPosesResponse& from) { - GetPosesResponse::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetPosesResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(GetPosesResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "viam.component.posetracker.v1.GetPosesResponse"; } protected: - explicit GetPosesResponse(::google::protobuf::Arena* arena); - GetPosesResponse(::google::protobuf::Arena* arena, const GetPosesResponse& from); + explicit GetPosesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -489,309 +427,252 @@ class GetPosesResponse final : int body_poses_size() const; private: int _internal_body_poses_size() const; - public: - void clear_body_poses() ; - const ::google::protobuf::Map& body_poses() const; - ::google::protobuf::Map* mutable_body_poses(); - + void clear_body_poses(); private: - const ::google::protobuf::Map& _internal_body_poses() const; - ::google::protobuf::Map* _internal_mutable_body_poses(); - + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::PoseInFrame >& + _internal_body_poses() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::PoseInFrame >* + _internal_mutable_body_poses(); public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::PoseInFrame >& + body_poses() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::PoseInFrame >* + mutable_body_poses(); + // @@protoc_insertion_point(class_scope:viam.component.posetracker.v1.GetPosesResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 2, - 65, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::MapField - body_poses_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + GetPosesResponse_BodyPosesEntry_DoNotUse, + std::string, ::viam::common::v1::PoseInFrame, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> body_poses_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto; }; - // =================================================================== - - // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ -// ------------------------------------------------------------------- - // GetPosesRequest // string name = 1 [json_name = "name"]; inline void GetPosesRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& GetPosesRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetPosesRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.posetracker.v1.GetPosesRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetPosesRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetPosesRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.posetracker.v1.GetPosesRequest.name) } -inline std::string* GetPosesRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetPosesRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.posetracker.v1.GetPosesRequest.name) return _s; } inline const std::string& GetPosesRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void GetPosesRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* GetPosesRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* GetPosesRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.posetracker.v1.GetPosesRequest.name) - return _impl_.name_.Release(); -} -inline void GetPosesRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void GetPosesRequest::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.posetracker.v1.GetPosesRequest.name) } // repeated string body_names = 2 [json_name = "bodyNames"]; inline int GetPosesRequest::_internal_body_names_size() const { - return _internal_body_names().size(); + return body_names_.size(); } inline int GetPosesRequest::body_names_size() const { return _internal_body_names_size(); } inline void GetPosesRequest::clear_body_names() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.body_names_.Clear(); + body_names_.Clear(); } -inline std::string* GetPosesRequest::add_body_names() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_body_names()->Add(); +inline std::string* GetPosesRequest::add_body_names() { + std::string* _s = _internal_add_body_names(); // @@protoc_insertion_point(field_add_mutable:viam.component.posetracker.v1.GetPosesRequest.body_names) return _s; } -inline const std::string& GetPosesRequest::body_names(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetPosesRequest::_internal_body_names(int index) const { + return body_names_.Get(index); +} +inline const std::string& GetPosesRequest::body_names(int index) const { // @@protoc_insertion_point(field_get:viam.component.posetracker.v1.GetPosesRequest.body_names) - return _internal_body_names().Get(index); + return _internal_body_names(index); } -inline std::string* GetPosesRequest::mutable_body_names(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetPosesRequest::mutable_body_names(int index) { // @@protoc_insertion_point(field_mutable:viam.component.posetracker.v1.GetPosesRequest.body_names) - return _internal_mutable_body_names()->Mutable(index); + return body_names_.Mutable(index); } inline void GetPosesRequest::set_body_names(int index, const std::string& value) { - _internal_mutable_body_names()->Mutable(index)->assign(value); + body_names_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set:viam.component.posetracker.v1.GetPosesRequest.body_names) } inline void GetPosesRequest::set_body_names(int index, std::string&& value) { - _internal_mutable_body_names()->Mutable(index)->assign(std::move(value)); + body_names_.Mutable(index)->assign(std::move(value)); // @@protoc_insertion_point(field_set:viam.component.posetracker.v1.GetPosesRequest.body_names) } inline void GetPosesRequest::set_body_names(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_body_names()->Mutable(index)->assign(value); + GOOGLE_DCHECK(value != nullptr); + body_names_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:viam.component.posetracker.v1.GetPosesRequest.body_names) } -inline void GetPosesRequest::set_body_names(int index, const char* value, - std::size_t size) { - _internal_mutable_body_names()->Mutable(index)->assign( - reinterpret_cast(value), size); +inline void GetPosesRequest::set_body_names(int index, const char* value, size_t size) { + body_names_.Mutable(index)->assign( + reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:viam.component.posetracker.v1.GetPosesRequest.body_names) } -inline void GetPosesRequest::set_body_names(int index, absl::string_view value) { - _internal_mutable_body_names()->Mutable(index)->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_set_string_piece:viam.component.posetracker.v1.GetPosesRequest.body_names) +inline std::string* GetPosesRequest::_internal_add_body_names() { + return body_names_.Add(); } inline void GetPosesRequest::add_body_names(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_body_names()->Add()->assign(value); + body_names_.Add()->assign(value); // @@protoc_insertion_point(field_add:viam.component.posetracker.v1.GetPosesRequest.body_names) } inline void GetPosesRequest::add_body_names(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_body_names()->Add(std::move(value)); + body_names_.Add(std::move(value)); // @@protoc_insertion_point(field_add:viam.component.posetracker.v1.GetPosesRequest.body_names) } inline void GetPosesRequest::add_body_names(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_body_names()->Add()->assign(value); + GOOGLE_DCHECK(value != nullptr); + body_names_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:viam.component.posetracker.v1.GetPosesRequest.body_names) } -inline void GetPosesRequest::add_body_names(const char* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_body_names()->Add()->assign( - reinterpret_cast(value), size); +inline void GetPosesRequest::add_body_names(const char* value, size_t size) { + body_names_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:viam.component.posetracker.v1.GetPosesRequest.body_names) } -inline void GetPosesRequest::add_body_names(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_body_names()->Add()->assign(value.data(), value.size()); - // @@protoc_insertion_point(field_add_string_piece:viam.component.posetracker.v1.GetPosesRequest.body_names) -} -inline const ::google::protobuf::RepeatedPtrField& -GetPosesRequest::body_names() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +GetPosesRequest::body_names() const { // @@protoc_insertion_point(field_list:viam.component.posetracker.v1.GetPosesRequest.body_names) - return _internal_body_names(); + return body_names_; } -inline ::google::protobuf::RepeatedPtrField* -GetPosesRequest::mutable_body_names() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +GetPosesRequest::mutable_body_names() { // @@protoc_insertion_point(field_mutable_list:viam.component.posetracker.v1.GetPosesRequest.body_names) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_body_names(); -} -inline const ::google::protobuf::RepeatedPtrField& -GetPosesRequest::_internal_body_names() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.body_names_; -} -inline ::google::protobuf::RepeatedPtrField* -GetPosesRequest::_internal_mutable_body_names() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.body_names_; + return &body_names_; } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetPosesRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool GetPosesRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& GetPosesRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetPosesRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& GetPosesRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetPosesRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.posetracker.v1.GetPosesRequest.extra) return _internal_extra(); } -inline void GetPosesRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void GetPosesRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.posetracker.v1.GetPosesRequest.extra) } -inline ::google::protobuf::Struct* GetPosesRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPosesRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* GetPosesRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPosesRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.posetracker.v1.GetPosesRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* GetPosesRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPosesRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* GetPosesRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPosesRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.posetracker.v1.GetPosesRequest.extra) return _msg; } -inline void GetPosesRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetPosesRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.posetracker.v1.GetPosesRequest.extra) } @@ -803,41 +684,46 @@ inline void GetPosesRequest::set_allocated_extra(::google::protobuf::Struct* val // map body_poses = 1 [json_name = "bodyPoses"]; inline int GetPosesResponse::_internal_body_poses_size() const { - return _internal_body_poses().size(); + return body_poses_.size(); } inline int GetPosesResponse::body_poses_size() const { return _internal_body_poses_size(); } -inline const ::google::protobuf::Map& GetPosesResponse::_internal_body_poses() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.body_poses_.GetMap(); +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::PoseInFrame >& +GetPosesResponse::_internal_body_poses() const { + return body_poses_.GetMap(); } -inline const ::google::protobuf::Map& GetPosesResponse::body_poses() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::PoseInFrame >& +GetPosesResponse::body_poses() const { // @@protoc_insertion_point(field_map:viam.component.posetracker.v1.GetPosesResponse.body_poses) return _internal_body_poses(); } -inline ::google::protobuf::Map* GetPosesResponse::_internal_mutable_body_poses() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.body_poses_.MutableMap(); +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::PoseInFrame >* +GetPosesResponse::_internal_mutable_body_poses() { + return body_poses_.MutableMap(); } -inline ::google::protobuf::Map* GetPosesResponse::mutable_body_poses() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::common::v1::PoseInFrame >* +GetPosesResponse::mutable_body_poses() { // @@protoc_insertion_point(field_mutable_map:viam.component.posetracker.v1.GetPosesResponse.body_poses) return _internal_mutable_body_poses(); } #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) + } // namespace v1 } // namespace posetracker } // namespace component } // namespace viam - // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_component_2fposetracker_2fv1_2fpose_5ftracker_2eproto 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 2dd507de6..e27767221 100644 --- a/src/viam/api/component/powersensor/v1/powersensor.grpc.pb.cc +++ b/src/viam/api/component/powersensor/v1/powersensor.grpc.pb.cc @@ -6,19 +6,19 @@ #include "component/powersensor/v1/powersensor.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace component { namespace powersensor { @@ -34,140 +34,165 @@ static const char* PowerSensorService_method_names[] = { std::unique_ptr< PowerSensorService::Stub> PowerSensorService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { (void)options; - std::unique_ptr< PowerSensorService::Stub> stub(new PowerSensorService::Stub(channel, options)); + std::unique_ptr< PowerSensorService::Stub> stub(new PowerSensorService::Stub(channel)); return stub; } -PowerSensorService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) - : 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_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) +PowerSensorService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_GetVoltage_(PowerSensorService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetCurrent_(PowerSensorService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetPower_(PowerSensorService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetReadings_(PowerSensorService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DoCommand_(PowerSensorService_method_names[4], ::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) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::powersensor::v1::GetVoltageRequest, ::viam::component::powersensor::v1::GetVoltageResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetVoltage_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetVoltage_, context, request, response); } -void PowerSensorService::Stub::async::GetVoltage(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetVoltageRequest* request, ::viam::component::powersensor::v1::GetVoltageResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::powersensor::v1::GetVoltageRequest, ::viam::component::powersensor::v1::GetVoltageResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetVoltage_, context, request, response, std::move(f)); +void PowerSensorService::Stub::experimental_async::GetVoltage(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetVoltageRequest* request, ::viam::component::powersensor::v1::GetVoltageResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetVoltage_, context, request, response, std::move(f)); } -void PowerSensorService::Stub::async::GetVoltage(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetVoltageRequest* request, ::viam::component::powersensor::v1::GetVoltageResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetVoltage_, context, request, response, reactor); +void PowerSensorService::Stub::experimental_async::GetVoltage(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::powersensor::v1::GetVoltageResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetVoltage_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::powersensor::v1::GetVoltageResponse>* PowerSensorService::Stub::PrepareAsyncGetVoltageRaw(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetVoltageRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::powersensor::v1::GetVoltageResponse, ::viam::component::powersensor::v1::GetVoltageRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetVoltage_, context, request); +void PowerSensorService::Stub::experimental_async::GetVoltage(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetVoltageRequest* request, ::viam::component::powersensor::v1::GetVoltageResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetVoltage_, context, request, response, reactor); +} + +void PowerSensorService::Stub::experimental_async::GetVoltage(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::powersensor::v1::GetVoltageResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetVoltage_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::powersensor::v1::GetVoltageResponse>* PowerSensorService::Stub::AsyncGetVoltageRaw(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetVoltageRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetVoltageRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::powersensor::v1::GetVoltageResponse>::Create(channel_.get(), cq, rpcmethod_GetVoltage_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::powersensor::v1::GetVoltageResponse>* PowerSensorService::Stub::PrepareAsyncGetVoltageRaw(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetVoltageRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::powersensor::v1::GetVoltageResponse>::Create(channel_.get(), cq, rpcmethod_GetVoltage_, context, request, false); } ::grpc::Status PowerSensorService::Stub::GetCurrent(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetCurrentRequest& request, ::viam::component::powersensor::v1::GetCurrentResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::powersensor::v1::GetCurrentRequest, ::viam::component::powersensor::v1::GetCurrentResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetCurrent_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetCurrent_, context, request, response); } -void PowerSensorService::Stub::async::GetCurrent(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetCurrentRequest* request, ::viam::component::powersensor::v1::GetCurrentResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::powersensor::v1::GetCurrentRequest, ::viam::component::powersensor::v1::GetCurrentResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetCurrent_, context, request, response, std::move(f)); +void PowerSensorService::Stub::experimental_async::GetCurrent(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetCurrentRequest* request, ::viam::component::powersensor::v1::GetCurrentResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetCurrent_, context, request, response, std::move(f)); } -void PowerSensorService::Stub::async::GetCurrent(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetCurrentRequest* request, ::viam::component::powersensor::v1::GetCurrentResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetCurrent_, context, request, response, reactor); +void PowerSensorService::Stub::experimental_async::GetCurrent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::powersensor::v1::GetCurrentResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetCurrent_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::powersensor::v1::GetCurrentResponse>* PowerSensorService::Stub::PrepareAsyncGetCurrentRaw(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetCurrentRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::powersensor::v1::GetCurrentResponse, ::viam::component::powersensor::v1::GetCurrentRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetCurrent_, context, request); +void PowerSensorService::Stub::experimental_async::GetCurrent(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetCurrentRequest* request, ::viam::component::powersensor::v1::GetCurrentResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetCurrent_, context, request, response, reactor); +} + +void PowerSensorService::Stub::experimental_async::GetCurrent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::powersensor::v1::GetCurrentResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetCurrent_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::powersensor::v1::GetCurrentResponse>* PowerSensorService::Stub::AsyncGetCurrentRaw(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetCurrentRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetCurrentRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::powersensor::v1::GetCurrentResponse>::Create(channel_.get(), cq, rpcmethod_GetCurrent_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::powersensor::v1::GetCurrentResponse>* PowerSensorService::Stub::PrepareAsyncGetCurrentRaw(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetCurrentRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::powersensor::v1::GetCurrentResponse>::Create(channel_.get(), cq, rpcmethod_GetCurrent_, context, request, false); } ::grpc::Status PowerSensorService::Stub::GetPower(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetPowerRequest& request, ::viam::component::powersensor::v1::GetPowerResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::powersensor::v1::GetPowerRequest, ::viam::component::powersensor::v1::GetPowerResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetPower_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetPower_, context, request, response); } -void PowerSensorService::Stub::async::GetPower(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetPowerRequest* request, ::viam::component::powersensor::v1::GetPowerResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::powersensor::v1::GetPowerRequest, ::viam::component::powersensor::v1::GetPowerResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetPower_, context, request, response, std::move(f)); +void PowerSensorService::Stub::experimental_async::GetPower(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetPowerRequest* request, ::viam::component::powersensor::v1::GetPowerResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetPower_, context, request, response, std::move(f)); } -void PowerSensorService::Stub::async::GetPower(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetPowerRequest* request, ::viam::component::powersensor::v1::GetPowerResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetPower_, context, request, response, reactor); +void PowerSensorService::Stub::experimental_async::GetPower(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::powersensor::v1::GetPowerResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetPower_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::powersensor::v1::GetPowerResponse>* PowerSensorService::Stub::PrepareAsyncGetPowerRaw(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetPowerRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::powersensor::v1::GetPowerResponse, ::viam::component::powersensor::v1::GetPowerRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetPower_, context, request); +void PowerSensorService::Stub::experimental_async::GetPower(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetPowerRequest* request, ::viam::component::powersensor::v1::GetPowerResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetPower_, context, request, response, reactor); +} + +void PowerSensorService::Stub::experimental_async::GetPower(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::powersensor::v1::GetPowerResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetPower_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::powersensor::v1::GetPowerResponse>* PowerSensorService::Stub::AsyncGetPowerRaw(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetPowerRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetPowerRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::powersensor::v1::GetPowerResponse>::Create(channel_.get(), cq, rpcmethod_GetPower_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::powersensor::v1::GetPowerResponse>* PowerSensorService::Stub::PrepareAsyncGetPowerRaw(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetPowerRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::powersensor::v1::GetPowerResponse>::Create(channel_.get(), cq, rpcmethod_GetPower_, context, request, false); } ::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); + return ::grpc::internal::BlockingUnaryCall(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::experimental_async::GetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest* request, ::viam::common::v1::GetReadingsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(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); +void PowerSensorService::Stub::experimental_async::GetReadings(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetReadingsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetReadings_, context, request, response, std::move(f)); } -::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); +void PowerSensorService::Stub::experimental_async::GetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest* request, ::viam::common::v1::GetReadingsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetReadings_, context, request, response, reactor); +} + +void PowerSensorService::Stub::experimental_async::GetReadings(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetReadingsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetReadings_, context, request, response, reactor); } ::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; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::GetReadingsResponse>::Create(channel_.get(), cq, rpcmethod_GetReadings_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetReadingsResponse>* PowerSensorService::Stub::PrepareAsyncGetReadingsRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::GetReadingsResponse>::Create(channel_.get(), cq, rpcmethod_GetReadings_, context, request, false); } ::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); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DoCommand_, context, request, response); } -void PowerSensorService::Stub::async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); +void PowerSensorService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); } -void PowerSensorService::Stub::async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); +void PowerSensorService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* PowerSensorService::Stub::PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::common::v1::DoCommandResponse, ::viam::common::v1::DoCommandRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DoCommand_, context, request); +void PowerSensorService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); +} + +void PowerSensorService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* PowerSensorService::Stub::AsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncDoCommandRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::DoCommandResponse>::Create(channel_.get(), cq, rpcmethod_DoCommand_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* PowerSensorService::Stub::PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::DoCommandResponse>::Create(channel_.get(), cq, rpcmethod_DoCommand_, context, request, false); } PowerSensorService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( PowerSensorService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< PowerSensorService::Service, ::viam::component::powersensor::v1::GetVoltageRequest, ::viam::component::powersensor::v1::GetVoltageResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< PowerSensorService::Service, ::viam::component::powersensor::v1::GetVoltageRequest, ::viam::component::powersensor::v1::GetVoltageResponse>( [](PowerSensorService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::powersensor::v1::GetVoltageRequest* req, ::viam::component::powersensor::v1::GetVoltageResponse* resp) { return service->GetVoltage(ctx, req, resp); @@ -175,9 +200,9 @@ PowerSensorService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( PowerSensorService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< PowerSensorService::Service, ::viam::component::powersensor::v1::GetCurrentRequest, ::viam::component::powersensor::v1::GetCurrentResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< PowerSensorService::Service, ::viam::component::powersensor::v1::GetCurrentRequest, ::viam::component::powersensor::v1::GetCurrentResponse>( [](PowerSensorService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::powersensor::v1::GetCurrentRequest* req, ::viam::component::powersensor::v1::GetCurrentResponse* resp) { return service->GetCurrent(ctx, req, resp); @@ -185,9 +210,9 @@ PowerSensorService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( PowerSensorService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< PowerSensorService::Service, ::viam::component::powersensor::v1::GetPowerRequest, ::viam::component::powersensor::v1::GetPowerResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< PowerSensorService::Service, ::viam::component::powersensor::v1::GetPowerRequest, ::viam::component::powersensor::v1::GetPowerResponse>( [](PowerSensorService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::powersensor::v1::GetPowerRequest* req, ::viam::component::powersensor::v1::GetPowerResponse* resp) { return service->GetPower(ctx, req, resp); @@ -195,9 +220,9 @@ 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>( + new ::grpc::internal::RpcMethodHandler< PowerSensorService::Service, ::viam::common::v1::GetReadingsRequest, ::viam::common::v1::GetReadingsResponse>( [](PowerSensorService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::common::v1::GetReadingsRequest* req, ::viam::common::v1::GetReadingsResponse* resp) { return service->GetReadings(ctx, req, resp); @@ -205,9 +230,9 @@ PowerSensorService::Service::Service() { 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>( + new ::grpc::internal::RpcMethodHandler< PowerSensorService::Service, ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( [](PowerSensorService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::common::v1::DoCommandRequest* req, ::viam::common::v1::DoCommandResponse* resp) { return service->DoCommand(ctx, req, resp); 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 91befd795..a86ccc4e6 100644 --- a/src/viam/api/component/powersensor/v1/powersensor.grpc.pb.h +++ b/src/viam/api/component/powersensor/v1/powersensor.grpc.pb.h @@ -7,23 +7,24 @@ #include "component/powersensor/v1/powersensor.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace component { @@ -79,29 +80,83 @@ class PowerSensorService final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::DoCommandResponse>> PrepareAsyncDoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::DoCommandResponse>>(PrepareAsyncDoCommandRaw(context, request, cq)); } - class async_interface { + class experimental_async_interface { public: - virtual ~async_interface() {} + virtual ~experimental_async_interface() {} // GetVoltage returns the voltage reading of a power sensor in volts virtual void GetVoltage(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetVoltageRequest* request, ::viam::component::powersensor::v1::GetVoltageResponse* response, std::function) = 0; + virtual void GetVoltage(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::powersensor::v1::GetVoltageResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetVoltage(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetVoltageRequest* request, ::viam::component::powersensor::v1::GetVoltageResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetVoltage(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetVoltageRequest* request, ::viam::component::powersensor::v1::GetVoltageResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetVoltage(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::powersensor::v1::GetVoltageResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetVoltage(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::powersensor::v1::GetVoltageResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // GetCurrent returns the current reading of a power sensor in amperes virtual void GetCurrent(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetCurrentRequest* request, ::viam::component::powersensor::v1::GetCurrentResponse* response, std::function) = 0; + virtual void GetCurrent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::powersensor::v1::GetCurrentResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetCurrent(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetCurrentRequest* request, ::viam::component::powersensor::v1::GetCurrentResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetCurrent(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetCurrentRequest* request, ::viam::component::powersensor::v1::GetCurrentResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetCurrent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::powersensor::v1::GetCurrentResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetCurrent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::powersensor::v1::GetCurrentResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // 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 ::grpc::ByteBuffer* request, ::viam::component::powersensor::v1::GetPowerResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetPower(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetPowerRequest* request, ::viam::component::powersensor::v1::GetPowerResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetPower(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetPowerRequest* request, ::viam::component::powersensor::v1::GetPowerResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetPower(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::powersensor::v1::GetPowerResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetPower(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::powersensor::v1::GetPowerResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // 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 ::grpc::ByteBuffer* request, ::viam::common::v1::GetReadingsResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest* request, ::viam::common::v1::GetReadingsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest* request, ::viam::common::v1::GetReadingsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetReadings(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetReadingsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetReadings(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetReadingsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // 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 ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif }; - typedef class async_interface experimental_async_interface; - virtual class async_interface* async() { return nullptr; } - class async_interface* experimental_async() { return async(); } - private: + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef class experimental_async_interface async_interface; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + async_interface* async() { return experimental_async(); } + #endif + virtual class experimental_async_interface* experimental_async() { return nullptr; } + private: virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::powersensor::v1::GetVoltageResponse>* AsyncGetVoltageRaw(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetVoltageRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::powersensor::v1::GetVoltageResponse>* PrepareAsyncGetVoltageRaw(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetVoltageRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::powersensor::v1::GetCurrentResponse>* AsyncGetCurrentRaw(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetCurrentRequest& request, ::grpc::CompletionQueue* cq) = 0; @@ -115,7 +170,7 @@ class PowerSensorService final { }; class Stub final : public StubInterface { public: - Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); ::grpc::Status GetVoltage(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetVoltageRequest& request, ::viam::component::powersensor::v1::GetVoltageResponse* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::powersensor::v1::GetVoltageResponse>> AsyncGetVoltage(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetVoltageRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::powersensor::v1::GetVoltageResponse>>(AsyncGetVoltageRaw(context, request, cq)); @@ -151,30 +206,80 @@ class PowerSensorService final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>> PrepareAsyncDoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>>(PrepareAsyncDoCommandRaw(context, request, cq)); } - class async final : - public StubInterface::async_interface { + class experimental_async final : + public StubInterface::experimental_async_interface { public: void GetVoltage(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetVoltageRequest* request, ::viam::component::powersensor::v1::GetVoltageResponse* response, std::function) override; + void GetVoltage(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::powersensor::v1::GetVoltageResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetVoltage(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetVoltageRequest* request, ::viam::component::powersensor::v1::GetVoltageResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetVoltage(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetVoltageRequest* request, ::viam::component::powersensor::v1::GetVoltageResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetVoltage(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::powersensor::v1::GetVoltageResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetVoltage(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::powersensor::v1::GetVoltageResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetCurrent(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetCurrentRequest* request, ::viam::component::powersensor::v1::GetCurrentResponse* response, std::function) override; + void GetCurrent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::powersensor::v1::GetCurrentResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetCurrent(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetCurrentRequest* request, ::viam::component::powersensor::v1::GetCurrentResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetCurrent(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetCurrentRequest* request, ::viam::component::powersensor::v1::GetCurrentResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetCurrent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::powersensor::v1::GetCurrentResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetCurrent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::powersensor::v1::GetCurrentResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif 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 ::grpc::ByteBuffer* request, ::viam::component::powersensor::v1::GetPowerResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetPower(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetPowerRequest* request, ::viam::component::powersensor::v1::GetPowerResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetPower(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetPowerRequest* request, ::viam::component::powersensor::v1::GetPowerResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetPower(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::powersensor::v1::GetPowerResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetPower(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::powersensor::v1::GetPowerResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif 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 ::grpc::ByteBuffer* request, ::viam::common::v1::GetReadingsResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest* request, ::viam::common::v1::GetReadingsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest* request, ::viam::common::v1::GetReadingsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetReadings(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetReadingsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetReadings(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetReadingsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif 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 ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif private: friend class Stub; - explicit async(Stub* stub): stub_(stub) { } + explicit experimental_async(Stub* stub): stub_(stub) { } Stub* stub() { return stub_; } Stub* stub_; }; - class async* async() override { return &async_stub_; } + class experimental_async_interface* experimental_async() override { return &async_stub_; } private: std::shared_ptr< ::grpc::ChannelInterface> channel_; - class async async_stub_{this}; + class experimental_async async_stub_{this}; ::grpc::ClientAsyncResponseReader< ::viam::component::powersensor::v1::GetVoltageResponse>* AsyncGetVoltageRaw(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetVoltageRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::component::powersensor::v1::GetVoltageResponse>* PrepareAsyncGetVoltageRaw(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetVoltageRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::component::powersensor::v1::GetCurrentResponse>* AsyncGetCurrentRaw(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetCurrentRequest& request, ::grpc::CompletionQueue* cq) override; @@ -310,22 +415,36 @@ class PowerSensorService final { }; typedef WithAsyncMethod_GetVoltage > > > > AsyncService; template - class WithCallbackMethod_GetVoltage : public BaseClass { + class ExperimentalWithCallbackMethod_GetVoltage : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetVoltage() { - ::grpc::Service::MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::powersensor::v1::GetVoltageRequest, ::viam::component::powersensor::v1::GetVoltageResponse>( + ExperimentalWithCallbackMethod_GetVoltage() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::powersensor::v1::GetVoltageRequest, ::viam::component::powersensor::v1::GetVoltageResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::powersensor::v1::GetVoltageRequest* request, ::viam::component::powersensor::v1::GetVoltageResponse* response) { return this->GetVoltage(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::powersensor::v1::GetVoltageRequest* request, ::viam::component::powersensor::v1::GetVoltageResponse* response) { return this->GetVoltage(context, request, response); }));} void SetMessageAllocatorFor_GetVoltage( - ::grpc::MessageAllocator< ::viam::component::powersensor::v1::GetVoltageRequest, ::viam::component::powersensor::v1::GetVoltageResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::powersensor::v1::GetVoltageRequest, ::viam::component::powersensor::v1::GetVoltageResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::powersensor::v1::GetVoltageRequest, ::viam::component::powersensor::v1::GetVoltageResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(0); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::powersensor::v1::GetVoltageRequest, ::viam::component::powersensor::v1::GetVoltageResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetVoltage() override { + ~ExperimentalWithCallbackMethod_GetVoltage() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -333,26 +452,46 @@ class PowerSensorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetVoltage( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::powersensor::v1::GetVoltageRequest* /*request*/, ::viam::component::powersensor::v1::GetVoltageResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::powersensor::v1::GetVoltageRequest* /*request*/, ::viam::component::powersensor::v1::GetVoltageResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetVoltage( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::powersensor::v1::GetVoltageRequest* /*request*/, ::viam::component::powersensor::v1::GetVoltageResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetCurrent : public BaseClass { + class ExperimentalWithCallbackMethod_GetCurrent : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetCurrent() { - ::grpc::Service::MarkMethodCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::powersensor::v1::GetCurrentRequest, ::viam::component::powersensor::v1::GetCurrentResponse>( + ExperimentalWithCallbackMethod_GetCurrent() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::powersensor::v1::GetCurrentRequest, ::viam::component::powersensor::v1::GetCurrentResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::powersensor::v1::GetCurrentRequest* request, ::viam::component::powersensor::v1::GetCurrentResponse* response) { return this->GetCurrent(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::powersensor::v1::GetCurrentRequest* request, ::viam::component::powersensor::v1::GetCurrentResponse* response) { return this->GetCurrent(context, request, response); }));} void SetMessageAllocatorFor_GetCurrent( - ::grpc::MessageAllocator< ::viam::component::powersensor::v1::GetCurrentRequest, ::viam::component::powersensor::v1::GetCurrentResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::powersensor::v1::GetCurrentRequest, ::viam::component::powersensor::v1::GetCurrentResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::powersensor::v1::GetCurrentRequest, ::viam::component::powersensor::v1::GetCurrentResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(1); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::powersensor::v1::GetCurrentRequest, ::viam::component::powersensor::v1::GetCurrentResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetCurrent() override { + ~ExperimentalWithCallbackMethod_GetCurrent() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -360,26 +499,46 @@ class PowerSensorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetCurrent( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::powersensor::v1::GetCurrentRequest* /*request*/, ::viam::component::powersensor::v1::GetCurrentResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::powersensor::v1::GetCurrentRequest* /*request*/, ::viam::component::powersensor::v1::GetCurrentResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetCurrent( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::powersensor::v1::GetCurrentRequest* /*request*/, ::viam::component::powersensor::v1::GetCurrentResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetPower : public BaseClass { + class ExperimentalWithCallbackMethod_GetPower : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetPower() { - ::grpc::Service::MarkMethodCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::powersensor::v1::GetPowerRequest, ::viam::component::powersensor::v1::GetPowerResponse>( + ExperimentalWithCallbackMethod_GetPower() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(2, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::powersensor::v1::GetPowerRequest, ::viam::component::powersensor::v1::GetPowerResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::powersensor::v1::GetPowerRequest* request, ::viam::component::powersensor::v1::GetPowerResponse* response) { return this->GetPower(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::powersensor::v1::GetPowerRequest* request, ::viam::component::powersensor::v1::GetPowerResponse* response) { return this->GetPower(context, request, response); }));} void SetMessageAllocatorFor_GetPower( - ::grpc::MessageAllocator< ::viam::component::powersensor::v1::GetPowerRequest, ::viam::component::powersensor::v1::GetPowerResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::powersensor::v1::GetPowerRequest, ::viam::component::powersensor::v1::GetPowerResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::powersensor::v1::GetPowerRequest, ::viam::component::powersensor::v1::GetPowerResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(2); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::powersensor::v1::GetPowerRequest, ::viam::component::powersensor::v1::GetPowerResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetPower() override { + ~ExperimentalWithCallbackMethod_GetPower() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -387,26 +546,46 @@ class PowerSensorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetPower( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::powersensor::v1::GetPowerRequest* /*request*/, ::viam::component::powersensor::v1::GetPowerResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::powersensor::v1::GetPowerRequest* /*request*/, ::viam::component::powersensor::v1::GetPowerResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetPower( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::powersensor::v1::GetPowerRequest* /*request*/, ::viam::component::powersensor::v1::GetPowerResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetReadings : public BaseClass { + class ExperimentalWithCallbackMethod_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>( + ExperimentalWithCallbackMethod_GetReadings() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(3, + new ::grpc_impl::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); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + 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::experimental::MessageAllocator< ::viam::common::v1::GetReadingsRequest, ::viam::common::v1::GetReadingsResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::GetReadingsRequest, ::viam::common::v1::GetReadingsResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(3); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::GetReadingsRequest, ::viam::common::v1::GetReadingsResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetReadings() override { + ~ExperimentalWithCallbackMethod_GetReadings() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -414,26 +593,46 @@ class PowerSensorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetReadings( - ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::GetReadingsRequest* /*request*/, ::viam::common::v1::GetReadingsResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::GetReadingsRequest* /*request*/, ::viam::common::v1::GetReadingsResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetReadings( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::common::v1::GetReadingsRequest* /*request*/, ::viam::common::v1::GetReadingsResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_DoCommand : public BaseClass { + class ExperimentalWithCallbackMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_DoCommand() { - ::grpc::Service::MarkMethodCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( + ExperimentalWithCallbackMethod_DoCommand() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(4, + new ::grpc_impl::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); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + 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::experimental::MessageAllocator< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(4); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_DoCommand() override { + ~ExperimentalWithCallbackMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -441,11 +640,20 @@ class PowerSensorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DoCommand( - ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DoCommand( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) + #endif + { return nullptr; } }; - typedef WithCallbackMethod_GetVoltage > > > > CallbackService; - typedef CallbackService ExperimentalCallbackService; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef ExperimentalWithCallbackMethod_GetVoltage > > > > CallbackService; + #endif + + typedef ExperimentalWithCallbackMethod_GetVoltage > > > > ExperimentalCallbackService; template class WithGenericMethod_GetVoltage : public BaseClass { private: @@ -632,17 +840,27 @@ class PowerSensorService final { } }; template - class WithRawCallbackMethod_GetVoltage : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetVoltage : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetVoltage() { - ::grpc::Service::MarkMethodRawCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetVoltage() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetVoltage(context, request, response); })); - } - ~WithRawCallbackMethod_GetVoltage() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetVoltage(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetVoltage() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -650,21 +868,37 @@ class PowerSensorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetVoltage( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetVoltage( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetCurrent : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetCurrent : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetCurrent() { - ::grpc::Service::MarkMethodRawCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetCurrent() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetCurrent(context, request, response); })); - } - ~WithRawCallbackMethod_GetCurrent() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetCurrent(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetCurrent() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -672,21 +906,37 @@ class PowerSensorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetCurrent( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetCurrent( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetPower : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetPower : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetPower() { - ::grpc::Service::MarkMethodRawCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetPower() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(2, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetPower(context, request, response); })); - } - ~WithRawCallbackMethod_GetPower() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetPower(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetPower() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -694,21 +944,37 @@ class PowerSensorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetPower( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetPower( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetReadings : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetReadings : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetReadings() { - ::grpc::Service::MarkMethodRawCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetReadings() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(3, + new ::grpc_impl::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 { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetReadings(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetReadings() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -716,21 +982,37 @@ class PowerSensorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetReadings( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetReadings( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_DoCommand : public BaseClass { + class ExperimentalWithRawCallbackMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_DoCommand() { - ::grpc::Service::MarkMethodRawCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_DoCommand() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(4, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DoCommand(context, request, response); })); - } - ~WithRawCallbackMethod_DoCommand() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DoCommand(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -738,8 +1020,14 @@ class PowerSensorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DoCommand( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DoCommand( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template class WithStreamedUnaryMethod_GetVoltage : public BaseClass { @@ -750,8 +1038,8 @@ class PowerSensorService final { ::grpc::Service::MarkMethodStreamed(0, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::powersensor::v1::GetVoltageRequest, ::viam::component::powersensor::v1::GetVoltageResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::powersensor::v1::GetVoltageRequest, ::viam::component::powersensor::v1::GetVoltageResponse>* streamer) { return this->StreamedGetVoltage(context, streamer); @@ -777,8 +1065,8 @@ class PowerSensorService final { ::grpc::Service::MarkMethodStreamed(1, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::powersensor::v1::GetCurrentRequest, ::viam::component::powersensor::v1::GetCurrentResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::powersensor::v1::GetCurrentRequest, ::viam::component::powersensor::v1::GetCurrentResponse>* streamer) { return this->StreamedGetCurrent(context, streamer); @@ -804,8 +1092,8 @@ class PowerSensorService final { ::grpc::Service::MarkMethodStreamed(2, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::powersensor::v1::GetPowerRequest, ::viam::component::powersensor::v1::GetPowerResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::powersensor::v1::GetPowerRequest, ::viam::component::powersensor::v1::GetPowerResponse>* streamer) { return this->StreamedGetPower(context, streamer); @@ -831,8 +1119,8 @@ class PowerSensorService final { ::grpc::Service::MarkMethodStreamed(3, new ::grpc::internal::StreamedUnaryHandler< ::viam::common::v1::GetReadingsRequest, ::viam::common::v1::GetReadingsResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::common::v1::GetReadingsRequest, ::viam::common::v1::GetReadingsResponse>* streamer) { return this->StreamedGetReadings(context, streamer); @@ -858,8 +1146,8 @@ class PowerSensorService final { ::grpc::Service::MarkMethodStreamed(4, new ::grpc::internal::StreamedUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* streamer) { return this->StreamedDoCommand(context, streamer); diff --git a/src/viam/api/component/powersensor/v1/powersensor.pb.cc b/src/viam/api/component/powersensor/v1/powersensor.pb.cc index 399f04996..27678a84b 100644 --- a/src/viam/api/component/powersensor/v1/powersensor.pb.cc +++ b/src/viam/api/component/powersensor/v1/powersensor.pb.cc @@ -4,556 +4,456 @@ #include "component/powersensor/v1/powersensor.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace viam { namespace component { namespace powersensor { namespace v1 { - -inline constexpr GetVoltageResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : volts_{0}, - is_ac_{false}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetVoltageResponse::GetVoltageResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_CONSTEXPR GetVoltageRequest::GetVoltageRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} +struct GetVoltageRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetVoltageRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetVoltageRequestDefaultTypeInternal() {} + union { + GetVoltageRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetVoltageRequestDefaultTypeInternal _GetVoltageRequest_default_instance_; +PROTOBUF_CONSTEXPR GetVoltageResponse::GetVoltageResponse( + ::_pbi::ConstantInitialized) + : volts_(0) + , is_ac_(false){} struct GetVoltageResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetVoltageResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GetVoltageResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~GetVoltageResponseDefaultTypeInternal() {} union { GetVoltageResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetVoltageResponseDefaultTypeInternal _GetVoltageResponse_default_instance_; - -inline constexpr GetPowerResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : watts_{0}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetPowerResponse::GetPowerResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetPowerResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetPowerResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetPowerResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetVoltageResponseDefaultTypeInternal _GetVoltageResponse_default_instance_; +PROTOBUF_CONSTEXPR GetCurrentRequest::GetCurrentRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} +struct GetCurrentRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetCurrentRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetCurrentRequestDefaultTypeInternal() {} union { - GetPowerResponse _instance; + GetCurrentRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPowerResponseDefaultTypeInternal _GetPowerResponse_default_instance_; - -inline constexpr GetCurrentResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : amperes_{0}, - is_ac_{false}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetCurrentResponse::GetCurrentResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetCurrentRequestDefaultTypeInternal _GetCurrentRequest_default_instance_; +PROTOBUF_CONSTEXPR GetCurrentResponse::GetCurrentResponse( + ::_pbi::ConstantInitialized) + : amperes_(0) + , is_ac_(false){} struct GetCurrentResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetCurrentResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GetCurrentResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~GetCurrentResponseDefaultTypeInternal() {} union { GetCurrentResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetCurrentResponseDefaultTypeInternal _GetCurrentResponse_default_instance_; - -inline constexpr GetVoltageRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetVoltageRequest::GetVoltageRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetVoltageRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetVoltageRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetVoltageRequestDefaultTypeInternal() {} - union { - GetVoltageRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetVoltageRequestDefaultTypeInternal _GetVoltageRequest_default_instance_; - -inline constexpr GetPowerRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetPowerRequest::GetPowerRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetCurrentResponseDefaultTypeInternal _GetCurrentResponse_default_instance_; +PROTOBUF_CONSTEXPR GetPowerRequest::GetPowerRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} struct GetPowerRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetPowerRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GetPowerRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~GetPowerRequestDefaultTypeInternal() {} union { GetPowerRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPowerRequestDefaultTypeInternal _GetPowerRequest_default_instance_; - -inline constexpr GetCurrentRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetCurrentRequest::GetCurrentRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetCurrentRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetCurrentRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetCurrentRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPowerRequestDefaultTypeInternal _GetPowerRequest_default_instance_; +PROTOBUF_CONSTEXPR GetPowerResponse::GetPowerResponse( + ::_pbi::ConstantInitialized) + : watts_(0){} +struct GetPowerResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPowerResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPowerResponseDefaultTypeInternal() {} union { - GetCurrentRequest _instance; + GetPowerResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetCurrentRequestDefaultTypeInternal _GetCurrentRequest_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPowerResponseDefaultTypeInternal _GetPowerResponse_default_instance_; } // namespace v1 } // namespace powersensor } // namespace component } // namespace viam static ::_pb::Metadata file_level_metadata_component_2fpowersensor_2fv1_2fpowersensor_2eproto[6]; -static constexpr const ::_pb::EnumDescriptor** - file_level_enum_descriptors_component_2fpowersensor_2fv1_2fpowersensor_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_component_2fpowersensor_2fv1_2fpowersensor_2eproto = nullptr; -const ::uint32_t TableStruct_component_2fpowersensor_2fv1_2fpowersensor_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::viam::component::powersensor::v1::GetVoltageRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::powersensor::v1::GetVoltageRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::powersensor::v1::GetVoltageRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::powersensor::v1::GetVoltageRequest, _impl_.extra_), - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::powersensor::v1::GetVoltageResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::powersensor::v1::GetVoltageResponse, _impl_.volts_), - PROTOBUF_FIELD_OFFSET(::viam::component::powersensor::v1::GetVoltageResponse, _impl_.is_ac_), - PROTOBUF_FIELD_OFFSET(::viam::component::powersensor::v1::GetCurrentRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::powersensor::v1::GetCurrentRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::powersensor::v1::GetCurrentRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::powersensor::v1::GetCurrentRequest, _impl_.extra_), - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::powersensor::v1::GetCurrentResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::powersensor::v1::GetCurrentResponse, _impl_.amperes_), - PROTOBUF_FIELD_OFFSET(::viam::component::powersensor::v1::GetCurrentResponse, _impl_.is_ac_), - PROTOBUF_FIELD_OFFSET(::viam::component::powersensor::v1::GetPowerRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::powersensor::v1::GetPowerRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::powersensor::v1::GetPowerRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::powersensor::v1::GetPowerRequest, _impl_.extra_), - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::powersensor::v1::GetPowerResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::powersensor::v1::GetPowerResponse, _impl_.watts_), +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_component_2fpowersensor_2fv1_2fpowersensor_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_component_2fpowersensor_2fv1_2fpowersensor_2eproto = nullptr; + +const uint32_t TableStruct_component_2fpowersensor_2fv1_2fpowersensor_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::powersensor::v1::GetVoltageRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::powersensor::v1::GetVoltageRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::powersensor::v1::GetVoltageRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::powersensor::v1::GetVoltageResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::powersensor::v1::GetVoltageResponse, volts_), + PROTOBUF_FIELD_OFFSET(::viam::component::powersensor::v1::GetVoltageResponse, is_ac_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::powersensor::v1::GetCurrentRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::powersensor::v1::GetCurrentRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::powersensor::v1::GetCurrentRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::powersensor::v1::GetCurrentResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::powersensor::v1::GetCurrentResponse, amperes_), + PROTOBUF_FIELD_OFFSET(::viam::component::powersensor::v1::GetCurrentResponse, is_ac_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::powersensor::v1::GetPowerRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::powersensor::v1::GetPowerRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::powersensor::v1::GetPowerRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::powersensor::v1::GetPowerResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::powersensor::v1::GetPowerResponse, watts_), }; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, 10, -1, sizeof(::viam::component::powersensor::v1::GetVoltageRequest)}, - {12, -1, -1, sizeof(::viam::component::powersensor::v1::GetVoltageResponse)}, - {22, 32, -1, sizeof(::viam::component::powersensor::v1::GetCurrentRequest)}, - {34, -1, -1, sizeof(::viam::component::powersensor::v1::GetCurrentResponse)}, - {44, 54, -1, sizeof(::viam::component::powersensor::v1::GetPowerRequest)}, - {56, -1, -1, sizeof(::viam::component::powersensor::v1::GetPowerResponse)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::component::powersensor::v1::GetVoltageRequest)}, + { 8, -1, -1, sizeof(::viam::component::powersensor::v1::GetVoltageResponse)}, + { 16, -1, -1, sizeof(::viam::component::powersensor::v1::GetCurrentRequest)}, + { 24, -1, -1, sizeof(::viam::component::powersensor::v1::GetCurrentResponse)}, + { 32, -1, -1, sizeof(::viam::component::powersensor::v1::GetPowerRequest)}, + { 40, -1, -1, sizeof(::viam::component::powersensor::v1::GetPowerResponse)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::viam::component::powersensor::v1::_GetVoltageRequest_default_instance_._instance, - &::viam::component::powersensor::v1::_GetVoltageResponse_default_instance_._instance, - &::viam::component::powersensor::v1::_GetCurrentRequest_default_instance_._instance, - &::viam::component::powersensor::v1::_GetCurrentResponse_default_instance_._instance, - &::viam::component::powersensor::v1::_GetPowerRequest_default_instance_._instance, - &::viam::component::powersensor::v1::_GetPowerResponse_default_instance_._instance, + &::viam::component::powersensor::v1::_GetVoltageRequest_default_instance_._instance, + &::viam::component::powersensor::v1::_GetVoltageResponse_default_instance_._instance, + &::viam::component::powersensor::v1::_GetCurrentRequest_default_instance_._instance, + &::viam::component::powersensor::v1::_GetCurrentResponse_default_instance_._instance, + &::viam::component::powersensor::v1::_GetPowerRequest_default_instance_._instance, + &::viam::component::powersensor::v1::_GetPowerResponse_default_instance_._instance, }; -const char descriptor_table_protodef_component_2fpowersensor_2fv1_2fpowersensor_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n*component/powersensor/v1/powersensor.p" - "roto\022\035viam.component.powersensor.v1\032\026com" - "mon/v1/common.proto\032\034google/api/annotati" - "ons.proto\032\034google/protobuf/struct.proto\"" - "V\n\021GetVoltageRequest\022\022\n\004name\030\001 \001(\tR\004name" - "\022-\n\005extra\030c \001(\0132\027.google.protobuf.Struct" - "R\005extra\"\?\n\022GetVoltageResponse\022\024\n\005volts\030\001" - " \001(\001R\005volts\022\023\n\005is_ac\030\002 \001(\010R\004isAc\"V\n\021GetC" - "urrentRequest\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005ext" - "ra\030c \001(\0132\027.google.protobuf.StructR\005extra" - "\"C\n\022GetCurrentResponse\022\030\n\007amperes\030\001 \001(\001R" - "\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\304\006" - "\n\022PowerSensorService\022\255\001\n\nGetVoltage\0220.vi" - "am.component.powersensor.v1.GetVoltageRe" - "quest\0321.viam.component.powersensor.v1.Ge" - "tVoltageResponse\":\202\323\344\223\0024\0222/viam/api/v1/c" - "omponent/power_sensor/{name}/voltage\022\255\001\n" - "\nGetCurrent\0220.viam.component.powersensor" - ".v1.GetCurrentRequest\0321.viam.component.p" - "owersensor.v1.GetCurrentResponse\":\202\323\344\223\0024" - "\0222/viam/api/v1/component/power_sensor/{n" - "ame}/current\022\245\001\n\010GetPower\022..viam.compone" - "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\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_commandB\366\001\n" - "!com.viam.component.powersensor.v1B\020Powe" - "rsensorProtoP\001Z(go.viam.com/api/componen" - "t/powersensor/v1\242\002\003VCP\252\002\035Viam.Component." - "Powersensor.V1\312\002\035Viam\\Component\\Powersen" - "sor\\V1\342\002)Viam\\Component\\Powersensor\\V1\\G" - "PBMetadata\352\002 Viam::Component::Powersenso" - "r::V1b\006proto3" -}; -static const ::_pbi::DescriptorTable* const descriptor_table_component_2fpowersensor_2fv1_2fpowersensor_2eproto_deps[3] = - { - &::descriptor_table_common_2fv1_2fcommon_2eproto, - &::descriptor_table_google_2fapi_2fannotations_2eproto, - &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, + +const char descriptor_table_protodef_component_2fpowersensor_2fv1_2fpowersensor_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n*component/powersensor/v1/powersensor.p" + "roto\022\035viam.component.powersensor.v1\032\026com" + "mon/v1/common.proto\032\034google/api/annotati" + "ons.proto\032\034google/protobuf/struct.proto\"" + "V\n\021GetVoltageRequest\022\022\n\004name\030\001 \001(\tR\004name" + "\022-\n\005extra\030c \001(\0132\027.google.protobuf.Struct" + "R\005extra\"\?\n\022GetVoltageResponse\022\024\n\005volts\030\001" + " \001(\001R\005volts\022\023\n\005is_ac\030\002 \001(\010R\004isAc\"V\n\021GetC" + "urrentRequest\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005ext" + "ra\030c \001(\0132\027.google.protobuf.StructR\005extra" + "\"C\n\022GetCurrentResponse\022\030\n\007amperes\030\001 \001(\001R" + "\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\304\006" + "\n\022PowerSensorService\022\255\001\n\nGetVoltage\0220.vi" + "am.component.powersensor.v1.GetVoltageRe" + "quest\0321.viam.component.powersensor.v1.Ge" + "tVoltageResponse\":\202\323\344\223\0024\0222/viam/api/v1/c" + "omponent/power_sensor/{name}/voltage\022\255\001\n" + "\nGetCurrent\0220.viam.component.powersensor" + ".v1.GetCurrentRequest\0321.viam.component.p" + "owersensor.v1.GetCurrentResponse\":\202\323\344\223\0024" + "\0222/viam/api/v1/component/power_sensor/{n" + "ame}/current\022\245\001\n\010GetPower\022..viam.compone" + "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\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, + &::descriptor_table_google_2fapi_2fannotations_2eproto, + &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, }; -static ::absl::once_flag descriptor_table_component_2fpowersensor_2fv1_2fpowersensor_2eproto_once; +static ::_pbi::once_flag descriptor_table_component_2fpowersensor_2fv1_2fpowersensor_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_component_2fpowersensor_2fv1_2fpowersensor_2eproto = { - false, - false, - 1693, - 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, - file_level_metadata_component_2fpowersensor_2fv1_2fpowersensor_2eproto, - file_level_enum_descriptors_component_2fpowersensor_2fv1_2fpowersensor_2eproto, + &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, + file_level_metadata_component_2fpowersensor_2fv1_2fpowersensor_2eproto, file_level_enum_descriptors_component_2fpowersensor_2fv1_2fpowersensor_2eproto, file_level_service_descriptors_component_2fpowersensor_2fv1_2fpowersensor_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_component_2fpowersensor_2fv1_2fpowersensor_2eproto_getter() { return &descriptor_table_component_2fpowersensor_2fv1_2fpowersensor_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_component_2fpowersensor_2fv1_2fpowersensor_2eproto(&descriptor_table_component_2fpowersensor_2fv1_2fpowersensor_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_component_2fpowersensor_2fv1_2fpowersensor_2eproto(&descriptor_table_component_2fpowersensor_2fv1_2fpowersensor_2eproto); namespace viam { namespace component { namespace powersensor { namespace v1 { + // =================================================================== class GetVoltageRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetVoltageRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const GetVoltageRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetVoltageRequest* msg); }; -const ::google::protobuf::Struct& GetVoltageRequest::_Internal::extra(const GetVoltageRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetVoltageRequest::_Internal::extra(const GetVoltageRequest* msg) { + return *msg->extra_; } void GetVoltageRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -GetVoltageRequest::GetVoltageRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetVoltageRequest::GetVoltageRequest(::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.powersensor.v1.GetVoltageRequest) } -inline PROTOBUF_NDEBUG_INLINE GetVoltageRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -GetVoltageRequest::GetVoltageRequest( - ::google::protobuf::Arena* arena, - const GetVoltageRequest& from) - : ::google::protobuf::Message(arena) { - GetVoltageRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +GetVoltageRequest::GetVoltageRequest(const GetVoltageRequest& 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.powersensor.v1.GetVoltageRequest) } -inline PROTOBUF_NDEBUG_INLINE GetVoltageRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} -inline void GetVoltageRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void GetVoltageRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + GetVoltageRequest::~GetVoltageRequest() { // @@protoc_insertion_point(destructor:viam.component.powersensor.v1.GetVoltageRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetVoltageRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void GetVoltageRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetVoltageRequest::Clear() { +void GetVoltageRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.powersensor.v1.GetVoltageRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetVoltageRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetVoltageRequest::_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.powersensor.v1.GetVoltageRequest.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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 2, 1, 60, 7> GetVoltageRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetVoltageRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetVoltageRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetVoltageRequest, _impl_.name_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(GetVoltageRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 1, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(GetVoltageRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(GetVoltageRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\57\4\0\0\0\0\0\0" - "viam.component.powersensor.v1.GetVoltageRequest" - "name" - }}, -}; - -::uint8_t* GetVoltageRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetVoltageRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.powersensor.v1.GetVoltageRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.powersensor.v1.GetVoltageRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.powersensor.v1.GetVoltageRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.powersensor.v1.GetVoltageRequest) return target; } -::size_t GetVoltageRequest::ByteSizeLong() const { +size_t GetVoltageRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.powersensor.v1.GetVoltageRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetVoltageRequest::_class_data_ = { - GetVoltageRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetVoltageRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetVoltageRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetVoltageRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetVoltageRequest::GetClassData() const { return &_class_data_; } + +void GetVoltageRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetVoltageRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.powersensor.v1.GetVoltageRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetVoltageRequest::MergeFrom(const GetVoltageRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.powersensor.v1.GetVoltageRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetVoltageRequest::CopyFrom(const GetVoltageRequest& from) { @@ -563,213 +463,215 @@ void GetVoltageRequest::CopyFrom(const GetVoltageRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetVoltageRequest::IsInitialized() const { +bool GetVoltageRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetVoltageRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetVoltageRequest::InternalSwap(GetVoltageRequest* PROTOBUF_RESTRICT other) { +void GetVoltageRequest::InternalSwap(GetVoltageRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.extra_, other->_impl_.extra_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(extra_, other->extra_); } -::google::protobuf::Metadata GetVoltageRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetVoltageRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fpowersensor_2fv1_2fpowersensor_2eproto_getter, &descriptor_table_component_2fpowersensor_2fv1_2fpowersensor_2eproto_once, file_level_metadata_component_2fpowersensor_2fv1_2fpowersensor_2eproto[0]); } + // =================================================================== class GetVoltageResponse::_Internal { public: }; -GetVoltageResponse::GetVoltageResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetVoltageResponse::GetVoltageResponse(::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.powersensor.v1.GetVoltageResponse) } -GetVoltageResponse::GetVoltageResponse( - ::google::protobuf::Arena* arena, const GetVoltageResponse& from) - : GetVoltageResponse(arena) { - MergeFrom(from); +GetVoltageResponse::GetVoltageResponse(const GetVoltageResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&volts_, &from.volts_, + static_cast(reinterpret_cast(&is_ac_) - + reinterpret_cast(&volts_)) + sizeof(is_ac_)); + // @@protoc_insertion_point(copy_constructor:viam.component.powersensor.v1.GetVoltageResponse) } -inline PROTOBUF_NDEBUG_INLINE GetVoltageResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void GetVoltageResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, volts_), - 0, - offsetof(Impl_, is_ac_) - - offsetof(Impl_, volts_) + - sizeof(Impl_::is_ac_)); +inline void GetVoltageResponse::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&volts_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&is_ac_) - + reinterpret_cast(&volts_)) + sizeof(is_ac_)); } + GetVoltageResponse::~GetVoltageResponse() { // @@protoc_insertion_point(destructor:viam.component.powersensor.v1.GetVoltageResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetVoltageResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void GetVoltageResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetVoltageResponse::Clear() { +void GetVoltageResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.powersensor.v1.GetVoltageResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&_impl_.volts_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.is_ac_) - - reinterpret_cast(&_impl_.volts_)) + sizeof(_impl_.is_ac_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetVoltageResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + ::memset(&volts_, 0, static_cast( + reinterpret_cast(&is_ac_) - + reinterpret_cast(&volts_)) + sizeof(is_ac_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetVoltageResponse::_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) { + // double volts = 1 [json_name = "volts"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 9)) { + volts_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // bool is_ac = 2 [json_name = "isAc"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + is_ac_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> GetVoltageResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetVoltageResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // bool is_ac = 2 [json_name = "isAc"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(GetVoltageResponse, _impl_.is_ac_)}}, - // double volts = 1 [json_name = "volts"]; - {::_pbi::TcParser::FastF64S1, - {9, 63, 0, PROTOBUF_FIELD_OFFSET(GetVoltageResponse, _impl_.volts_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // double volts = 1 [json_name = "volts"]; - {PROTOBUF_FIELD_OFFSET(GetVoltageResponse, _impl_.volts_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // bool is_ac = 2 [json_name = "isAc"]; - {PROTOBUF_FIELD_OFFSET(GetVoltageResponse, _impl_.is_ac_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* GetVoltageResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetVoltageResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.powersensor.v1.GetVoltageResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // double volts = 1 [json_name = "volts"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_volts = this->_internal_volts(); - ::uint64_t raw_volts; + uint64_t raw_volts; memcpy(&raw_volts, &tmp_volts, sizeof(tmp_volts)); if (raw_volts != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 1, this->_internal_volts(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(1, this->_internal_volts(), target); } // bool is_ac = 2 [json_name = "isAc"]; if (this->_internal_is_ac() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 2, this->_internal_is_ac(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_is_ac(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.powersensor.v1.GetVoltageResponse) return target; } -::size_t GetVoltageResponse::ByteSizeLong() const { +size_t GetVoltageResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.powersensor.v1.GetVoltageResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // double volts = 1 [json_name = "volts"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_volts = this->_internal_volts(); - ::uint64_t raw_volts; + uint64_t raw_volts; memcpy(&raw_volts, &tmp_volts, sizeof(tmp_volts)); if (raw_volts != 0) { - total_size += 9; + total_size += 1 + 8; } // bool is_ac = 2 [json_name = "isAc"]; if (this->_internal_is_ac() != 0) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetVoltageResponse::_class_data_ = { - GetVoltageResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetVoltageResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetVoltageResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetVoltageResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetVoltageResponse::GetClassData() const { return &_class_data_; } + +void GetVoltageResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetVoltageResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.powersensor.v1.GetVoltageResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetVoltageResponse::MergeFrom(const GetVoltageResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.powersensor.v1.GetVoltageResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_volts = from._internal_volts(); - ::uint64_t raw_volts; + uint64_t raw_volts; memcpy(&raw_volts, &tmp_volts, sizeof(tmp_volts)); if (raw_volts != 0) { - _this->_internal_set_volts(from._internal_volts()); + _internal_set_volts(from._internal_volts()); } if (from._internal_is_ac() != 0) { - _this->_internal_set_is_ac(from._internal_is_ac()); + _internal_set_is_ac(from._internal_is_ac()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetVoltageResponse::CopyFrom(const GetVoltageResponse& from) { @@ -779,247 +681,239 @@ void GetVoltageResponse::CopyFrom(const GetVoltageResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetVoltageResponse::IsInitialized() const { +bool GetVoltageResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetVoltageResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetVoltageResponse::InternalSwap(GetVoltageResponse* PROTOBUF_RESTRICT other) { +void GetVoltageResponse::InternalSwap(GetVoltageResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(GetVoltageResponse, _impl_.is_ac_) - + sizeof(GetVoltageResponse::_impl_.is_ac_) - - PROTOBUF_FIELD_OFFSET(GetVoltageResponse, _impl_.volts_)>( - reinterpret_cast(&_impl_.volts_), - reinterpret_cast(&other->_impl_.volts_)); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GetVoltageResponse, is_ac_) + + sizeof(GetVoltageResponse::is_ac_) + - PROTOBUF_FIELD_OFFSET(GetVoltageResponse, volts_)>( + reinterpret_cast(&volts_), + reinterpret_cast(&other->volts_)); } -::google::protobuf::Metadata GetVoltageResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetVoltageResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fpowersensor_2fv1_2fpowersensor_2eproto_getter, &descriptor_table_component_2fpowersensor_2fv1_2fpowersensor_2eproto_once, file_level_metadata_component_2fpowersensor_2fv1_2fpowersensor_2eproto[1]); } + // =================================================================== class GetCurrentRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetCurrentRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const GetCurrentRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetCurrentRequest* msg); }; -const ::google::protobuf::Struct& GetCurrentRequest::_Internal::extra(const GetCurrentRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetCurrentRequest::_Internal::extra(const GetCurrentRequest* msg) { + return *msg->extra_; } void GetCurrentRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -GetCurrentRequest::GetCurrentRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetCurrentRequest::GetCurrentRequest(::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.powersensor.v1.GetCurrentRequest) } -inline PROTOBUF_NDEBUG_INLINE GetCurrentRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -GetCurrentRequest::GetCurrentRequest( - ::google::protobuf::Arena* arena, - const GetCurrentRequest& from) - : ::google::protobuf::Message(arena) { - GetCurrentRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +GetCurrentRequest::GetCurrentRequest(const GetCurrentRequest& 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.powersensor.v1.GetCurrentRequest) } -inline PROTOBUF_NDEBUG_INLINE GetCurrentRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} -inline void GetCurrentRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void GetCurrentRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + GetCurrentRequest::~GetCurrentRequest() { // @@protoc_insertion_point(destructor:viam.component.powersensor.v1.GetCurrentRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetCurrentRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void GetCurrentRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetCurrentRequest::Clear() { +void GetCurrentRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.powersensor.v1.GetCurrentRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetCurrentRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetCurrentRequest::_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.powersensor.v1.GetCurrentRequest.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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 2, 1, 60, 7> GetCurrentRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetCurrentRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetCurrentRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetCurrentRequest, _impl_.name_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(GetCurrentRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 1, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(GetCurrentRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(GetCurrentRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\57\4\0\0\0\0\0\0" - "viam.component.powersensor.v1.GetCurrentRequest" - "name" - }}, -}; - -::uint8_t* GetCurrentRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetCurrentRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.powersensor.v1.GetCurrentRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.powersensor.v1.GetCurrentRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.powersensor.v1.GetCurrentRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.powersensor.v1.GetCurrentRequest) return target; } -::size_t GetCurrentRequest::ByteSizeLong() const { +size_t GetCurrentRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.powersensor.v1.GetCurrentRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetCurrentRequest::_class_data_ = { - GetCurrentRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetCurrentRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetCurrentRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetCurrentRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetCurrentRequest::GetClassData() const { return &_class_data_; } + +void GetCurrentRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetCurrentRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.powersensor.v1.GetCurrentRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetCurrentRequest::MergeFrom(const GetCurrentRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.powersensor.v1.GetCurrentRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetCurrentRequest::CopyFrom(const GetCurrentRequest& from) { @@ -1029,213 +923,215 @@ void GetCurrentRequest::CopyFrom(const GetCurrentRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetCurrentRequest::IsInitialized() const { +bool GetCurrentRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetCurrentRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetCurrentRequest::InternalSwap(GetCurrentRequest* PROTOBUF_RESTRICT other) { +void GetCurrentRequest::InternalSwap(GetCurrentRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.extra_, other->_impl_.extra_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(extra_, other->extra_); } -::google::protobuf::Metadata GetCurrentRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetCurrentRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fpowersensor_2fv1_2fpowersensor_2eproto_getter, &descriptor_table_component_2fpowersensor_2fv1_2fpowersensor_2eproto_once, file_level_metadata_component_2fpowersensor_2fv1_2fpowersensor_2eproto[2]); } + // =================================================================== class GetCurrentResponse::_Internal { public: }; -GetCurrentResponse::GetCurrentResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetCurrentResponse::GetCurrentResponse(::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.powersensor.v1.GetCurrentResponse) } -GetCurrentResponse::GetCurrentResponse( - ::google::protobuf::Arena* arena, const GetCurrentResponse& from) - : GetCurrentResponse(arena) { - MergeFrom(from); +GetCurrentResponse::GetCurrentResponse(const GetCurrentResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&eres_, &from.amperes_, + static_cast(reinterpret_cast(&is_ac_) - + reinterpret_cast(&eres_)) + sizeof(is_ac_)); + // @@protoc_insertion_point(copy_constructor:viam.component.powersensor.v1.GetCurrentResponse) } -inline PROTOBUF_NDEBUG_INLINE GetCurrentResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void GetCurrentResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, amperes_), - 0, - offsetof(Impl_, is_ac_) - - offsetof(Impl_, amperes_) + - sizeof(Impl_::is_ac_)); +inline void GetCurrentResponse::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&eres_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&is_ac_) - + reinterpret_cast(&eres_)) + sizeof(is_ac_)); } + GetCurrentResponse::~GetCurrentResponse() { // @@protoc_insertion_point(destructor:viam.component.powersensor.v1.GetCurrentResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetCurrentResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void GetCurrentResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetCurrentResponse::Clear() { +void GetCurrentResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.powersensor.v1.GetCurrentResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&_impl_.amperes_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.is_ac_) - - reinterpret_cast(&_impl_.amperes_)) + sizeof(_impl_.is_ac_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetCurrentResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + ::memset(&eres_, 0, static_cast( + reinterpret_cast(&is_ac_) - + reinterpret_cast(&eres_)) + sizeof(is_ac_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetCurrentResponse::_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) { + // double amperes = 1 [json_name = "amperes"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 9)) { + amperes_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // bool is_ac = 2 [json_name = "isAc"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + is_ac_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> GetCurrentResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetCurrentResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // bool is_ac = 2 [json_name = "isAc"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(GetCurrentResponse, _impl_.is_ac_)}}, - // double amperes = 1 [json_name = "amperes"]; - {::_pbi::TcParser::FastF64S1, - {9, 63, 0, PROTOBUF_FIELD_OFFSET(GetCurrentResponse, _impl_.amperes_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // double amperes = 1 [json_name = "amperes"]; - {PROTOBUF_FIELD_OFFSET(GetCurrentResponse, _impl_.amperes_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // bool is_ac = 2 [json_name = "isAc"]; - {PROTOBUF_FIELD_OFFSET(GetCurrentResponse, _impl_.is_ac_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* GetCurrentResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetCurrentResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.powersensor.v1.GetCurrentResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // double amperes = 1 [json_name = "amperes"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_amperes = this->_internal_amperes(); - ::uint64_t raw_amperes; + uint64_t raw_amperes; memcpy(&raw_amperes, &tmp_amperes, sizeof(tmp_amperes)); if (raw_amperes != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 1, this->_internal_amperes(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(1, this->_internal_amperes(), target); } // bool is_ac = 2 [json_name = "isAc"]; if (this->_internal_is_ac() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 2, this->_internal_is_ac(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_is_ac(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.powersensor.v1.GetCurrentResponse) return target; } -::size_t GetCurrentResponse::ByteSizeLong() const { +size_t GetCurrentResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.powersensor.v1.GetCurrentResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // double amperes = 1 [json_name = "amperes"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_amperes = this->_internal_amperes(); - ::uint64_t raw_amperes; + uint64_t raw_amperes; memcpy(&raw_amperes, &tmp_amperes, sizeof(tmp_amperes)); if (raw_amperes != 0) { - total_size += 9; + total_size += 1 + 8; } // bool is_ac = 2 [json_name = "isAc"]; if (this->_internal_is_ac() != 0) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetCurrentResponse::_class_data_ = { - GetCurrentResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetCurrentResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetCurrentResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetCurrentResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetCurrentResponse::GetClassData() const { return &_class_data_; } + +void GetCurrentResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetCurrentResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.powersensor.v1.GetCurrentResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetCurrentResponse::MergeFrom(const GetCurrentResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.powersensor.v1.GetCurrentResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_amperes = from._internal_amperes(); - ::uint64_t raw_amperes; + uint64_t raw_amperes; memcpy(&raw_amperes, &tmp_amperes, sizeof(tmp_amperes)); if (raw_amperes != 0) { - _this->_internal_set_amperes(from._internal_amperes()); + _internal_set_amperes(from._internal_amperes()); } if (from._internal_is_ac() != 0) { - _this->_internal_set_is_ac(from._internal_is_ac()); + _internal_set_is_ac(from._internal_is_ac()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetCurrentResponse::CopyFrom(const GetCurrentResponse& from) { @@ -1245,247 +1141,239 @@ void GetCurrentResponse::CopyFrom(const GetCurrentResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetCurrentResponse::IsInitialized() const { +bool GetCurrentResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetCurrentResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetCurrentResponse::InternalSwap(GetCurrentResponse* PROTOBUF_RESTRICT other) { +void GetCurrentResponse::InternalSwap(GetCurrentResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(GetCurrentResponse, _impl_.is_ac_) - + sizeof(GetCurrentResponse::_impl_.is_ac_) - - PROTOBUF_FIELD_OFFSET(GetCurrentResponse, _impl_.amperes_)>( - reinterpret_cast(&_impl_.amperes_), - reinterpret_cast(&other->_impl_.amperes_)); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GetCurrentResponse, is_ac_) + + sizeof(GetCurrentResponse::is_ac_) + - PROTOBUF_FIELD_OFFSET(GetCurrentResponse, amperes_)>( + reinterpret_cast(&eres_), + reinterpret_cast(&other->amperes_)); } -::google::protobuf::Metadata GetCurrentResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetCurrentResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fpowersensor_2fv1_2fpowersensor_2eproto_getter, &descriptor_table_component_2fpowersensor_2fv1_2fpowersensor_2eproto_once, file_level_metadata_component_2fpowersensor_2fv1_2fpowersensor_2eproto[3]); } + // =================================================================== class GetPowerRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetPowerRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const GetPowerRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetPowerRequest* msg); }; -const ::google::protobuf::Struct& GetPowerRequest::_Internal::extra(const GetPowerRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetPowerRequest::_Internal::extra(const GetPowerRequest* msg) { + return *msg->extra_; } void GetPowerRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -GetPowerRequest::GetPowerRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetPowerRequest::GetPowerRequest(::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.powersensor.v1.GetPowerRequest) } -inline PROTOBUF_NDEBUG_INLINE GetPowerRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -GetPowerRequest::GetPowerRequest( - ::google::protobuf::Arena* arena, - const GetPowerRequest& from) - : ::google::protobuf::Message(arena) { - GetPowerRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +GetPowerRequest::GetPowerRequest(const GetPowerRequest& 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.powersensor.v1.GetPowerRequest) } -inline PROTOBUF_NDEBUG_INLINE GetPowerRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} -inline void GetPowerRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void GetPowerRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + GetPowerRequest::~GetPowerRequest() { // @@protoc_insertion_point(destructor:viam.component.powersensor.v1.GetPowerRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetPowerRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void GetPowerRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetPowerRequest::Clear() { +void GetPowerRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.powersensor.v1.GetPowerRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetPowerRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPowerRequest::_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.powersensor.v1.GetPowerRequest.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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 2, 1, 58, 7> GetPowerRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetPowerRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetPowerRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetPowerRequest, _impl_.name_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(GetPowerRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 1, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(GetPowerRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(GetPowerRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\55\4\0\0\0\0\0\0" - "viam.component.powersensor.v1.GetPowerRequest" - "name" - }}, -}; - -::uint8_t* GetPowerRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetPowerRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.powersensor.v1.GetPowerRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.powersensor.v1.GetPowerRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.powersensor.v1.GetPowerRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.powersensor.v1.GetPowerRequest) return target; } -::size_t GetPowerRequest::ByteSizeLong() const { +size_t GetPowerRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.powersensor.v1.GetPowerRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetPowerRequest::_class_data_ = { - GetPowerRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPowerRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetPowerRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetPowerRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPowerRequest::GetClassData() const { return &_class_data_; } + +void GetPowerRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetPowerRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.powersensor.v1.GetPowerRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetPowerRequest::MergeFrom(const GetPowerRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.powersensor.v1.GetPowerRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetPowerRequest::CopyFrom(const GetPowerRequest& from) { @@ -1495,185 +1383,186 @@ void GetPowerRequest::CopyFrom(const GetPowerRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetPowerRequest::IsInitialized() const { +bool GetPowerRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetPowerRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetPowerRequest::InternalSwap(GetPowerRequest* PROTOBUF_RESTRICT other) { +void GetPowerRequest::InternalSwap(GetPowerRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.extra_, other->_impl_.extra_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(extra_, other->extra_); } -::google::protobuf::Metadata GetPowerRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetPowerRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fpowersensor_2fv1_2fpowersensor_2eproto_getter, &descriptor_table_component_2fpowersensor_2fv1_2fpowersensor_2eproto_once, file_level_metadata_component_2fpowersensor_2fv1_2fpowersensor_2eproto[4]); } + // =================================================================== class GetPowerResponse::_Internal { public: }; -GetPowerResponse::GetPowerResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetPowerResponse::GetPowerResponse(::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.powersensor.v1.GetPowerResponse) } -GetPowerResponse::GetPowerResponse( - ::google::protobuf::Arena* arena, const GetPowerResponse& from) - : GetPowerResponse(arena) { - MergeFrom(from); +GetPowerResponse::GetPowerResponse(const GetPowerResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + watts_ = from.watts_; + // @@protoc_insertion_point(copy_constructor:viam.component.powersensor.v1.GetPowerResponse) } -inline PROTOBUF_NDEBUG_INLINE GetPowerResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void GetPowerResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.watts_ = {}; +inline void GetPowerResponse::SharedCtor() { +watts_ = 0; } + GetPowerResponse::~GetPowerResponse() { // @@protoc_insertion_point(destructor:viam.component.powersensor.v1.GetPowerResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetPowerResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void GetPowerResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetPowerResponse::Clear() { +void GetPowerResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.powersensor.v1.GetPowerResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.watts_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetPowerResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + watts_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPowerResponse::_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) { + // double watts = 1 [json_name = "watts"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 9)) { + watts_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> GetPowerResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetPowerResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // double watts = 1 [json_name = "watts"]; - {::_pbi::TcParser::FastF64S1, - {9, 63, 0, PROTOBUF_FIELD_OFFSET(GetPowerResponse, _impl_.watts_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // double watts = 1 [json_name = "watts"]; - {PROTOBUF_FIELD_OFFSET(GetPowerResponse, _impl_.watts_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* GetPowerResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetPowerResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.powersensor.v1.GetPowerResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // double watts = 1 [json_name = "watts"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_watts = this->_internal_watts(); - ::uint64_t raw_watts; + uint64_t raw_watts; memcpy(&raw_watts, &tmp_watts, sizeof(tmp_watts)); if (raw_watts != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 1, this->_internal_watts(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(1, this->_internal_watts(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.powersensor.v1.GetPowerResponse) return target; } -::size_t GetPowerResponse::ByteSizeLong() const { +size_t GetPowerResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.powersensor.v1.GetPowerResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // double watts = 1 [json_name = "watts"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_watts = this->_internal_watts(); - ::uint64_t raw_watts; + uint64_t raw_watts; memcpy(&raw_watts, &tmp_watts, sizeof(tmp_watts)); if (raw_watts != 0) { - total_size += 9; + total_size += 1 + 8; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetPowerResponse::_class_data_ = { - GetPowerResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPowerResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetPowerResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetPowerResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPowerResponse::GetClassData() const { return &_class_data_; } + +void GetPowerResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetPowerResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.powersensor.v1.GetPowerResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetPowerResponse::MergeFrom(const GetPowerResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.powersensor.v1.GetPowerResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_watts = from._internal_watts(); - ::uint64_t raw_watts; + uint64_t raw_watts; memcpy(&raw_watts, &tmp_watts, sizeof(tmp_watts)); if (raw_watts != 0) { - _this->_internal_set_watts(from._internal_watts()); + _internal_set_watts(from._internal_watts()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetPowerResponse::CopyFrom(const GetPowerResponse& from) { @@ -1683,32 +1572,53 @@ void GetPowerResponse::CopyFrom(const GetPowerResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetPowerResponse::IsInitialized() const { +bool GetPowerResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetPowerResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetPowerResponse::InternalSwap(GetPowerResponse* PROTOBUF_RESTRICT other) { +void GetPowerResponse::InternalSwap(GetPowerResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.watts_, other->_impl_.watts_); + swap(watts_, other->watts_); } -::google::protobuf::Metadata GetPowerResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetPowerResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fpowersensor_2fv1_2fpowersensor_2eproto_getter, &descriptor_table_component_2fpowersensor_2fv1_2fpowersensor_2eproto_once, file_level_metadata_component_2fpowersensor_2fv1_2fpowersensor_2eproto[5]); } + // @@protoc_insertion_point(namespace_scope) } // namespace v1 } // namespace powersensor } // namespace component } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::component::powersensor::v1::GetVoltageRequest* +Arena::CreateMaybeMessage< ::viam::component::powersensor::v1::GetVoltageRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::powersensor::v1::GetVoltageRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::powersensor::v1::GetVoltageResponse* +Arena::CreateMaybeMessage< ::viam::component::powersensor::v1::GetVoltageResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::powersensor::v1::GetVoltageResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::powersensor::v1::GetCurrentRequest* +Arena::CreateMaybeMessage< ::viam::component::powersensor::v1::GetCurrentRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::powersensor::v1::GetCurrentRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::powersensor::v1::GetCurrentResponse* +Arena::CreateMaybeMessage< ::viam::component::powersensor::v1::GetCurrentResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::powersensor::v1::GetCurrentResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::powersensor::v1::GetPowerRequest* +Arena::CreateMaybeMessage< ::viam::component::powersensor::v1::GetPowerRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::powersensor::v1::GetPowerRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::powersensor::v1::GetPowerResponse* +Arena::CreateMaybeMessage< ::viam::component::powersensor::v1::GetPowerResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::powersensor::v1::GetPowerResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/component/powersensor/v1/powersensor.pb.h b/src/viam/api/component/powersensor/v1/powersensor.pb.h index d1630f5a2..55777924c 100644 --- a/src/viam/api/component/powersensor/v1/powersensor.pb.h +++ b/src/viam/api/component/powersensor/v1/powersensor.pb.h @@ -1,63 +1,52 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: component/powersensor/v1/powersensor.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_component_2fpowersensor_2fv1_2fpowersensor_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_component_2fpowersensor_2fv1_2fpowersensor_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_component_2fpowersensor_2fv1_2fpowersensor_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_component_2fpowersensor_2fv1_2fpowersensor_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/unknown_field_set.h" + +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include #include "common/v1/common.pb.h" #include "google/api/annotations.pb.h" -#include "google/protobuf/struct.pb.h" +#include // @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - +#include #define PROTOBUF_INTERNAL_EXPORT_component_2fpowersensor_2fv1_2fpowersensor_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_component_2fpowersensor_2fv1_2fpowersensor_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_component_2fpowersensor_2fv1_2fpowersensor_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_component_2fpowersensor_2fv1_2fpowersensor_2eproto; namespace viam { namespace component { namespace powersensor { @@ -84,11 +73,14 @@ extern GetVoltageResponseDefaultTypeInternal _GetVoltageResponse_default_instanc } // namespace powersensor } // namespace component } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::component::powersensor::v1::GetCurrentRequest* Arena::CreateMaybeMessage<::viam::component::powersensor::v1::GetCurrentRequest>(Arena*); +template<> ::viam::component::powersensor::v1::GetCurrentResponse* Arena::CreateMaybeMessage<::viam::component::powersensor::v1::GetCurrentResponse>(Arena*); +template<> ::viam::component::powersensor::v1::GetPowerRequest* Arena::CreateMaybeMessage<::viam::component::powersensor::v1::GetPowerRequest>(Arena*); +template<> ::viam::component::powersensor::v1::GetPowerResponse* Arena::CreateMaybeMessage<::viam::component::powersensor::v1::GetPowerResponse>(Arena*); +template<> ::viam::component::powersensor::v1::GetVoltageRequest* Arena::CreateMaybeMessage<::viam::component::powersensor::v1::GetVoltageRequest>(Arena*); +template<> ::viam::component::powersensor::v1::GetVoltageResponse* Arena::CreateMaybeMessage<::viam::component::powersensor::v1::GetVoltageResponse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace viam { namespace component { namespace powersensor { @@ -96,33 +88,28 @@ namespace v1 { // =================================================================== - -// ------------------------------------------------------------------- - -class GetVoltageResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.powersensor.v1.GetVoltageResponse) */ { +class GetVoltageRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.powersensor.v1.GetVoltageRequest) */ { public: - inline GetVoltageResponse() : GetVoltageResponse(nullptr) {} - ~GetVoltageResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetVoltageResponse(::google::protobuf::internal::ConstantInitialized); + inline GetVoltageRequest() : GetVoltageRequest(nullptr) {} + ~GetVoltageRequest() override; + explicit PROTOBUF_CONSTEXPR GetVoltageRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetVoltageResponse(const GetVoltageResponse& from) - : GetVoltageResponse(nullptr, from) {} - GetVoltageResponse(GetVoltageResponse&& from) noexcept - : GetVoltageResponse() { + GetVoltageRequest(const GetVoltageRequest& from); + GetVoltageRequest(GetVoltageRequest&& from) noexcept + : GetVoltageRequest() { *this = ::std::move(from); } - inline GetVoltageResponse& operator=(const GetVoltageResponse& from) { + inline GetVoltageRequest& operator=(const GetVoltageRequest& from) { CopyFrom(from); return *this; } - inline GetVoltageResponse& operator=(GetVoltageResponse&& from) noexcept { + inline GetVoltageRequest& operator=(GetVoltageRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -132,184 +119,165 @@ class GetVoltageResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetVoltageResponse& default_instance() { + static const GetVoltageRequest& default_instance() { return *internal_default_instance(); } - static inline const GetVoltageResponse* internal_default_instance() { - return reinterpret_cast( - &_GetVoltageResponse_default_instance_); + static inline const GetVoltageRequest* internal_default_instance() { + return reinterpret_cast( + &_GetVoltageRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 1; + 0; - friend void swap(GetVoltageResponse& a, GetVoltageResponse& b) { + friend void swap(GetVoltageRequest& a, GetVoltageRequest& b) { a.Swap(&b); } - inline void Swap(GetVoltageResponse* other) { + inline void Swap(GetVoltageRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetVoltageResponse* other) { + void UnsafeArenaSwap(GetVoltageRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetVoltageResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetVoltageResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetVoltageResponse& from) { - GetVoltageResponse::MergeImpl(*this, from); + GetVoltageRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetVoltageRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetVoltageRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetVoltageResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetVoltageRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.powersensor.v1.GetVoltageResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.powersensor.v1.GetVoltageRequest"; } protected: - explicit GetVoltageResponse(::google::protobuf::Arena* arena); - GetVoltageResponse(::google::protobuf::Arena* arena, const GetVoltageResponse& from); + explicit GetVoltageRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kVoltsFieldNumber = 1, - kIsAcFieldNumber = 2, + kNameFieldNumber = 1, + kExtraFieldNumber = 99, }; - // double volts = 1 [json_name = "volts"]; - void clear_volts() ; - double volts() const; - void set_volts(double value); - + // 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: - double _internal_volts() const; - void _internal_set_volts(double value); - + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); public: - // bool is_ac = 2 [json_name = "isAc"]; - void clear_is_ac() ; - bool is_ac() const; - void set_is_ac(bool value); + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + bool has_extra() const; private: - bool _internal_is_ac() const; - void _internal_set_is_ac(bool value); - + bool _internal_has_extra() const; public: - // @@protoc_insertion_point(class_scope:viam.component.powersensor.v1.GetVoltageResponse) + 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.powersensor.v1.GetVoltageRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - double volts_; - bool is_ac_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + 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_2fpowersensor_2fv1_2fpowersensor_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetPowerResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.powersensor.v1.GetPowerResponse) */ { +class GetVoltageResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.powersensor.v1.GetVoltageResponse) */ { public: - inline GetPowerResponse() : GetPowerResponse(nullptr) {} - ~GetPowerResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetPowerResponse(::google::protobuf::internal::ConstantInitialized); + inline GetVoltageResponse() : GetVoltageResponse(nullptr) {} + ~GetVoltageResponse() override; + explicit PROTOBUF_CONSTEXPR GetVoltageResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetPowerResponse(const GetPowerResponse& from) - : GetPowerResponse(nullptr, from) {} - GetPowerResponse(GetPowerResponse&& from) noexcept - : GetPowerResponse() { + GetVoltageResponse(const GetVoltageResponse& from); + GetVoltageResponse(GetVoltageResponse&& from) noexcept + : GetVoltageResponse() { *this = ::std::move(from); } - inline GetPowerResponse& operator=(const GetPowerResponse& from) { + inline GetVoltageResponse& operator=(const GetVoltageResponse& from) { CopyFrom(from); return *this; } - inline GetPowerResponse& operator=(GetPowerResponse&& from) noexcept { + inline GetVoltageResponse& operator=(GetVoltageResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -319,172 +287,151 @@ class GetPowerResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetPowerResponse& default_instance() { + static const GetVoltageResponse& default_instance() { return *internal_default_instance(); } - static inline const GetPowerResponse* internal_default_instance() { - return reinterpret_cast( - &_GetPowerResponse_default_instance_); + static inline const GetVoltageResponse* internal_default_instance() { + return reinterpret_cast( + &_GetVoltageResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 5; + 1; - friend void swap(GetPowerResponse& a, GetPowerResponse& b) { + friend void swap(GetVoltageResponse& a, GetVoltageResponse& b) { a.Swap(&b); } - inline void Swap(GetPowerResponse* other) { + inline void Swap(GetVoltageResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetPowerResponse* other) { + void UnsafeArenaSwap(GetVoltageResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetPowerResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetPowerResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetPowerResponse& from) { - GetPowerResponse::MergeImpl(*this, from); + GetVoltageResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetVoltageResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetVoltageResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetPowerResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetVoltageResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.powersensor.v1.GetPowerResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.powersensor.v1.GetVoltageResponse"; } protected: - explicit GetPowerResponse(::google::protobuf::Arena* arena); - GetPowerResponse(::google::protobuf::Arena* arena, const GetPowerResponse& from); + explicit GetVoltageResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kWattsFieldNumber = 1, + kVoltsFieldNumber = 1, + kIsAcFieldNumber = 2, }; - // double watts = 1 [json_name = "watts"]; - void clear_watts() ; - double watts() const; - void set_watts(double value); - + // double volts = 1 [json_name = "volts"]; + void clear_volts(); + double volts() const; + void set_volts(double value); private: - double _internal_watts() const; - void _internal_set_watts(double value); + double _internal_volts() const; + void _internal_set_volts(double value); + public: + // bool is_ac = 2 [json_name = "isAc"]; + void clear_is_ac(); + bool is_ac() const; + void set_is_ac(bool value); + private: + bool _internal_is_ac() const; + void _internal_set_is_ac(bool value); public: - // @@protoc_insertion_point(class_scope:viam.component.powersensor.v1.GetPowerResponse) + + // @@protoc_insertion_point(class_scope:viam.component.powersensor.v1.GetVoltageResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - double watts_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + double volts_; + bool is_ac_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fpowersensor_2fv1_2fpowersensor_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetCurrentResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.powersensor.v1.GetCurrentResponse) */ { +class GetCurrentRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.powersensor.v1.GetCurrentRequest) */ { public: - inline GetCurrentResponse() : GetCurrentResponse(nullptr) {} - ~GetCurrentResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetCurrentResponse(::google::protobuf::internal::ConstantInitialized); + inline GetCurrentRequest() : GetCurrentRequest(nullptr) {} + ~GetCurrentRequest() override; + explicit PROTOBUF_CONSTEXPR GetCurrentRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetCurrentResponse(const GetCurrentResponse& from) - : GetCurrentResponse(nullptr, from) {} - GetCurrentResponse(GetCurrentResponse&& from) noexcept - : GetCurrentResponse() { + GetCurrentRequest(const GetCurrentRequest& from); + GetCurrentRequest(GetCurrentRequest&& from) noexcept + : GetCurrentRequest() { *this = ::std::move(from); } - inline GetCurrentResponse& operator=(const GetCurrentResponse& from) { + inline GetCurrentRequest& operator=(const GetCurrentRequest& from) { CopyFrom(from); return *this; } - inline GetCurrentResponse& operator=(GetCurrentResponse&& from) noexcept { + inline GetCurrentRequest& operator=(GetCurrentRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -494,184 +441,165 @@ class GetCurrentResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetCurrentResponse& default_instance() { + static const GetCurrentRequest& default_instance() { return *internal_default_instance(); } - static inline const GetCurrentResponse* internal_default_instance() { - return reinterpret_cast( - &_GetCurrentResponse_default_instance_); + static inline const GetCurrentRequest* internal_default_instance() { + return reinterpret_cast( + &_GetCurrentRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 3; + 2; - friend void swap(GetCurrentResponse& a, GetCurrentResponse& b) { + friend void swap(GetCurrentRequest& a, GetCurrentRequest& b) { a.Swap(&b); } - inline void Swap(GetCurrentResponse* other) { + inline void Swap(GetCurrentRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetCurrentResponse* other) { + void UnsafeArenaSwap(GetCurrentRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetCurrentResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetCurrentResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetCurrentResponse& from) { - GetCurrentResponse::MergeImpl(*this, from); + GetCurrentRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetCurrentRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetCurrentRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetCurrentResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetCurrentRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.powersensor.v1.GetCurrentResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.powersensor.v1.GetCurrentRequest"; } protected: - explicit GetCurrentResponse(::google::protobuf::Arena* arena); - GetCurrentResponse(::google::protobuf::Arena* arena, const GetCurrentResponse& from); + explicit GetCurrentRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kAmperesFieldNumber = 1, - kIsAcFieldNumber = 2, + kNameFieldNumber = 1, + kExtraFieldNumber = 99, }; - // double amperes = 1 [json_name = "amperes"]; - void clear_amperes() ; - double amperes() const; - void set_amperes(double value); - + // 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: - double _internal_amperes() const; - void _internal_set_amperes(double value); - + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); public: - // bool is_ac = 2 [json_name = "isAc"]; - void clear_is_ac() ; - bool is_ac() const; - void set_is_ac(bool value); + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + bool has_extra() const; private: - bool _internal_is_ac() const; - void _internal_set_is_ac(bool value); - + bool _internal_has_extra() const; public: - // @@protoc_insertion_point(class_scope:viam.component.powersensor.v1.GetCurrentResponse) + 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.powersensor.v1.GetCurrentRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - double amperes_; - bool is_ac_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + 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_2fpowersensor_2fv1_2fpowersensor_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetVoltageRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.powersensor.v1.GetVoltageRequest) */ { +class GetCurrentResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.powersensor.v1.GetCurrentResponse) */ { public: - inline GetVoltageRequest() : GetVoltageRequest(nullptr) {} - ~GetVoltageRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetVoltageRequest(::google::protobuf::internal::ConstantInitialized); + inline GetCurrentResponse() : GetCurrentResponse(nullptr) {} + ~GetCurrentResponse() override; + explicit PROTOBUF_CONSTEXPR GetCurrentResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetVoltageRequest(const GetVoltageRequest& from) - : GetVoltageRequest(nullptr, from) {} - GetVoltageRequest(GetVoltageRequest&& from) noexcept - : GetVoltageRequest() { + GetCurrentResponse(const GetCurrentResponse& from); + GetCurrentResponse(GetCurrentResponse&& from) noexcept + : GetCurrentResponse() { *this = ::std::move(from); } - inline GetVoltageRequest& operator=(const GetVoltageRequest& from) { + inline GetCurrentResponse& operator=(const GetCurrentResponse& from) { CopyFrom(from); return *this; } - inline GetVoltageRequest& operator=(GetVoltageRequest&& from) noexcept { + inline GetCurrentResponse& operator=(GetCurrentResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -681,182 +609,137 @@ class GetVoltageRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetVoltageRequest& default_instance() { + static const GetCurrentResponse& default_instance() { return *internal_default_instance(); } - static inline const GetVoltageRequest* internal_default_instance() { - return reinterpret_cast( - &_GetVoltageRequest_default_instance_); + static inline const GetCurrentResponse* internal_default_instance() { + return reinterpret_cast( + &_GetCurrentResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 0; + 3; - friend void swap(GetVoltageRequest& a, GetVoltageRequest& b) { + friend void swap(GetCurrentResponse& a, GetCurrentResponse& b) { a.Swap(&b); } - inline void Swap(GetVoltageRequest* other) { + inline void Swap(GetCurrentResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetVoltageRequest* other) { + void UnsafeArenaSwap(GetCurrentResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetVoltageRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetVoltageRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetVoltageRequest& from) { - GetVoltageRequest::MergeImpl(*this, from); + GetCurrentResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetCurrentResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetCurrentResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetVoltageRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetCurrentResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.powersensor.v1.GetVoltageRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.powersensor.v1.GetCurrentResponse"; } protected: - explicit GetVoltageRequest(::google::protobuf::Arena* arena); - GetVoltageRequest(::google::protobuf::Arena* arena, const GetVoltageRequest& from); + explicit GetCurrentResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kNameFieldNumber = 1, - kExtraFieldNumber = 99, + kAmperesFieldNumber = 1, + kIsAcFieldNumber = 2, }; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + // double amperes = 1 [json_name = "amperes"]; + void clear_amperes(); + double amperes() const; + void set_amperes(double value); private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - + double _internal_amperes() const; + void _internal_set_amperes(double value); public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); + // bool is_ac = 2 [json_name = "isAc"]; + void clear_is_ac(); + bool is_ac() const; + void set_is_ac(bool value); private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - + bool _internal_is_ac() const; + void _internal_set_is_ac(bool value); public: - // @@protoc_insertion_point(class_scope:viam.component.powersensor.v1.GetVoltageRequest) + + // @@protoc_insertion_point(class_scope:viam.component.powersensor.v1.GetCurrentResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 2, 1, - 60, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + double amperes_; + bool is_ac_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fpowersensor_2fv1_2fpowersensor_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class GetPowerRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.powersensor.v1.GetPowerRequest) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.powersensor.v1.GetPowerRequest) */ { public: inline GetPowerRequest() : GetPowerRequest(nullptr) {} ~GetPowerRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetPowerRequest(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR GetPowerRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetPowerRequest(const GetPowerRequest& from) - : GetPowerRequest(nullptr, from) {} + GetPowerRequest(const GetPowerRequest& from); GetPowerRequest(GetPowerRequest&& from) noexcept : GetPowerRequest() { *this = ::std::move(from); @@ -868,9 +751,9 @@ class GetPowerRequest final : } inline GetPowerRequest& operator=(GetPowerRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -880,22 +763,13 @@ class GetPowerRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const GetPowerRequest& default_instance() { @@ -914,65 +788,63 @@ class GetPowerRequest final : inline void Swap(GetPowerRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(GetPowerRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetPowerRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + GetPowerRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const GetPowerRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetPowerRequest& from) { - GetPowerRequest::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetPowerRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(GetPowerRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "viam.component.powersensor.v1.GetPowerRequest"; } protected: - explicit GetPowerRequest(::google::protobuf::Arena* arena); - GetPowerRequest(::google::protobuf::Arena* arena, const GetPowerRequest& from); + explicit GetPowerRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -983,93 +855,73 @@ class GetPowerRequest final : kExtraFieldNumber = 99, }; // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + 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; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - + 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.powersensor.v1.GetPowerRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 2, 1, - 58, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + 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_2fpowersensor_2fv1_2fpowersensor_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetCurrentRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.powersensor.v1.GetCurrentRequest) */ { +class GetPowerResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.powersensor.v1.GetPowerResponse) */ { public: - inline GetCurrentRequest() : GetCurrentRequest(nullptr) {} - ~GetCurrentRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetCurrentRequest(::google::protobuf::internal::ConstantInitialized); + inline GetPowerResponse() : GetPowerResponse(nullptr) {} + ~GetPowerResponse() override; + explicit PROTOBUF_CONSTEXPR GetPowerResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetCurrentRequest(const GetCurrentRequest& from) - : GetCurrentRequest(nullptr, from) {} - GetCurrentRequest(GetCurrentRequest&& from) noexcept - : GetCurrentRequest() { + GetPowerResponse(const GetPowerResponse& from); + GetPowerResponse(GetPowerResponse&& from) noexcept + : GetPowerResponse() { *this = ::std::move(from); } - inline GetCurrentRequest& operator=(const GetCurrentRequest& from) { + inline GetPowerResponse& operator=(const GetPowerResponse& from) { CopyFrom(from); return *this; } - inline GetCurrentRequest& operator=(GetCurrentRequest&& from) noexcept { + inline GetPowerResponse& operator=(GetPowerResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1079,329 +931,259 @@ class GetCurrentRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetCurrentRequest& default_instance() { + static const GetPowerResponse& default_instance() { return *internal_default_instance(); } - static inline const GetCurrentRequest* internal_default_instance() { - return reinterpret_cast( - &_GetCurrentRequest_default_instance_); + static inline const GetPowerResponse* internal_default_instance() { + return reinterpret_cast( + &_GetPowerResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 2; + 5; - friend void swap(GetCurrentRequest& a, GetCurrentRequest& b) { + friend void swap(GetPowerResponse& a, GetPowerResponse& b) { a.Swap(&b); } - inline void Swap(GetCurrentRequest* other) { + inline void Swap(GetPowerResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetCurrentRequest* other) { + void UnsafeArenaSwap(GetPowerResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetCurrentRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetCurrentRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetCurrentRequest& from) { - GetCurrentRequest::MergeImpl(*this, from); + GetPowerResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPowerResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetPowerResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetCurrentRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetPowerResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.powersensor.v1.GetCurrentRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.powersensor.v1.GetPowerResponse"; } protected: - explicit GetCurrentRequest(::google::protobuf::Arena* arena); - GetCurrentRequest(::google::protobuf::Arena* arena, const GetCurrentRequest& from); + explicit GetPowerResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kNameFieldNumber = 1, - kExtraFieldNumber = 99, + kWattsFieldNumber = 1, }; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + // double watts = 1 [json_name = "watts"]; + void clear_watts(); + double watts() const; + void set_watts(double value); private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - + double _internal_watts() const; + void _internal_set_watts(double value); public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - public: - // @@protoc_insertion_point(class_scope:viam.component.powersensor.v1.GetCurrentRequest) + // @@protoc_insertion_point(class_scope:viam.component.powersensor.v1.GetPowerResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 2, 1, - 60, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + double watts_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fpowersensor_2fv1_2fpowersensor_2eproto; }; - // =================================================================== - - // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ -// ------------------------------------------------------------------- - // GetVoltageRequest // string name = 1 [json_name = "name"]; inline void GetVoltageRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& GetVoltageRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetVoltageRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.powersensor.v1.GetVoltageRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetVoltageRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetVoltageRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.powersensor.v1.GetVoltageRequest.name) } -inline std::string* GetVoltageRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetVoltageRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.powersensor.v1.GetVoltageRequest.name) return _s; } inline const std::string& GetVoltageRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void GetVoltageRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* GetVoltageRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* GetVoltageRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.powersensor.v1.GetVoltageRequest.name) - return _impl_.name_.Release(); -} -inline void GetVoltageRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void GetVoltageRequest::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.powersensor.v1.GetVoltageRequest.name) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetVoltageRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool GetVoltageRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& GetVoltageRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetVoltageRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& GetVoltageRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetVoltageRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.powersensor.v1.GetVoltageRequest.extra) return _internal_extra(); } -inline void GetVoltageRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void GetVoltageRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.powersensor.v1.GetVoltageRequest.extra) } -inline ::google::protobuf::Struct* GetVoltageRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetVoltageRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* GetVoltageRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetVoltageRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.powersensor.v1.GetVoltageRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* GetVoltageRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetVoltageRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* GetVoltageRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetVoltageRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.powersensor.v1.GetVoltageRequest.extra) return _msg; } -inline void GetVoltageRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetVoltageRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.powersensor.v1.GetVoltageRequest.extra) } @@ -1411,49 +1193,43 @@ inline void GetVoltageRequest::set_allocated_extra(::google::protobuf::Struct* v // double volts = 1 [json_name = "volts"]; inline void GetVoltageResponse::clear_volts() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.volts_ = 0; + volts_ = 0; +} +inline double GetVoltageResponse::_internal_volts() const { + return volts_; } inline double GetVoltageResponse::volts() const { // @@protoc_insertion_point(field_get:viam.component.powersensor.v1.GetVoltageResponse.volts) return _internal_volts(); } +inline void GetVoltageResponse::_internal_set_volts(double value) { + + volts_ = value; +} inline void GetVoltageResponse::set_volts(double value) { _internal_set_volts(value); // @@protoc_insertion_point(field_set:viam.component.powersensor.v1.GetVoltageResponse.volts) } -inline double GetVoltageResponse::_internal_volts() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.volts_; -} -inline void GetVoltageResponse::_internal_set_volts(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.volts_ = value; -} // bool is_ac = 2 [json_name = "isAc"]; inline void GetVoltageResponse::clear_is_ac() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.is_ac_ = false; + is_ac_ = false; +} +inline bool GetVoltageResponse::_internal_is_ac() const { + return is_ac_; } inline bool GetVoltageResponse::is_ac() const { // @@protoc_insertion_point(field_get:viam.component.powersensor.v1.GetVoltageResponse.is_ac) return _internal_is_ac(); } +inline void GetVoltageResponse::_internal_set_is_ac(bool value) { + + is_ac_ = value; +} inline void GetVoltageResponse::set_is_ac(bool value) { _internal_set_is_ac(value); // @@protoc_insertion_point(field_set:viam.component.powersensor.v1.GetVoltageResponse.is_ac) } -inline bool GetVoltageResponse::_internal_is_ac() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.is_ac_; -} -inline void GetVoltageResponse::_internal_set_is_ac(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.is_ac_ = value; -} // ------------------------------------------------------------------- @@ -1461,145 +1237,136 @@ inline void GetVoltageResponse::_internal_set_is_ac(bool value) { // string name = 1 [json_name = "name"]; inline void GetCurrentRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& GetCurrentRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetCurrentRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.powersensor.v1.GetCurrentRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetCurrentRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetCurrentRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.powersensor.v1.GetCurrentRequest.name) } -inline std::string* GetCurrentRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetCurrentRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.powersensor.v1.GetCurrentRequest.name) return _s; } inline const std::string& GetCurrentRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void GetCurrentRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* GetCurrentRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* GetCurrentRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.powersensor.v1.GetCurrentRequest.name) - return _impl_.name_.Release(); -} -inline void GetCurrentRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void GetCurrentRequest::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.powersensor.v1.GetCurrentRequest.name) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetCurrentRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool GetCurrentRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& GetCurrentRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetCurrentRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& GetCurrentRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetCurrentRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.powersensor.v1.GetCurrentRequest.extra) return _internal_extra(); } -inline void GetCurrentRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void GetCurrentRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.powersensor.v1.GetCurrentRequest.extra) } -inline ::google::protobuf::Struct* GetCurrentRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetCurrentRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* GetCurrentRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetCurrentRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.powersensor.v1.GetCurrentRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* GetCurrentRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetCurrentRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* GetCurrentRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetCurrentRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.powersensor.v1.GetCurrentRequest.extra) return _msg; } -inline void GetCurrentRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetCurrentRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.powersensor.v1.GetCurrentRequest.extra) } @@ -1609,49 +1376,43 @@ inline void GetCurrentRequest::set_allocated_extra(::google::protobuf::Struct* v // double amperes = 1 [json_name = "amperes"]; inline void GetCurrentResponse::clear_amperes() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.amperes_ = 0; + amperes_ = 0; +} +inline double GetCurrentResponse::_internal_amperes() const { + return amperes_; } inline double GetCurrentResponse::amperes() const { // @@protoc_insertion_point(field_get:viam.component.powersensor.v1.GetCurrentResponse.amperes) return _internal_amperes(); } +inline void GetCurrentResponse::_internal_set_amperes(double value) { + + amperes_ = value; +} inline void GetCurrentResponse::set_amperes(double value) { _internal_set_amperes(value); // @@protoc_insertion_point(field_set:viam.component.powersensor.v1.GetCurrentResponse.amperes) } -inline double GetCurrentResponse::_internal_amperes() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.amperes_; -} -inline void GetCurrentResponse::_internal_set_amperes(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.amperes_ = value; -} // bool is_ac = 2 [json_name = "isAc"]; inline void GetCurrentResponse::clear_is_ac() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.is_ac_ = false; + is_ac_ = false; +} +inline bool GetCurrentResponse::_internal_is_ac() const { + return is_ac_; } inline bool GetCurrentResponse::is_ac() const { // @@protoc_insertion_point(field_get:viam.component.powersensor.v1.GetCurrentResponse.is_ac) return _internal_is_ac(); } +inline void GetCurrentResponse::_internal_set_is_ac(bool value) { + + is_ac_ = value; +} inline void GetCurrentResponse::set_is_ac(bool value) { _internal_set_is_ac(value); // @@protoc_insertion_point(field_set:viam.component.powersensor.v1.GetCurrentResponse.is_ac) } -inline bool GetCurrentResponse::_internal_is_ac() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.is_ac_; -} -inline void GetCurrentResponse::_internal_set_is_ac(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.is_ac_ = value; -} // ------------------------------------------------------------------- @@ -1659,145 +1420,136 @@ inline void GetCurrentResponse::_internal_set_is_ac(bool value) { // string name = 1 [json_name = "name"]; inline void GetPowerRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& GetPowerRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetPowerRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.powersensor.v1.GetPowerRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetPowerRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetPowerRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.powersensor.v1.GetPowerRequest.name) } -inline std::string* GetPowerRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetPowerRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.powersensor.v1.GetPowerRequest.name) return _s; } inline const std::string& GetPowerRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void GetPowerRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* GetPowerRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* GetPowerRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.powersensor.v1.GetPowerRequest.name) - return _impl_.name_.Release(); -} -inline void GetPowerRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void GetPowerRequest::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.powersensor.v1.GetPowerRequest.name) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetPowerRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool GetPowerRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& GetPowerRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetPowerRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& GetPowerRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetPowerRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.powersensor.v1.GetPowerRequest.extra) return _internal_extra(); } -inline void GetPowerRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void GetPowerRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.powersensor.v1.GetPowerRequest.extra) } -inline ::google::protobuf::Struct* GetPowerRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPowerRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* GetPowerRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPowerRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.powersensor.v1.GetPowerRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* GetPowerRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPowerRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* GetPowerRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPowerRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.powersensor.v1.GetPowerRequest.extra) return _msg; } -inline void GetPowerRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetPowerRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.powersensor.v1.GetPowerRequest.extra) } @@ -1807,40 +1559,46 @@ inline void GetPowerRequest::set_allocated_extra(::google::protobuf::Struct* val // double watts = 1 [json_name = "watts"]; inline void GetPowerResponse::clear_watts() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.watts_ = 0; + watts_ = 0; +} +inline double GetPowerResponse::_internal_watts() const { + return watts_; } inline double GetPowerResponse::watts() const { // @@protoc_insertion_point(field_get:viam.component.powersensor.v1.GetPowerResponse.watts) return _internal_watts(); } +inline void GetPowerResponse::_internal_set_watts(double value) { + + watts_ = value; +} inline void GetPowerResponse::set_watts(double value) { _internal_set_watts(value); // @@protoc_insertion_point(field_set:viam.component.powersensor.v1.GetPowerResponse.watts) } -inline double GetPowerResponse::_internal_watts() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.watts_; -} -inline void GetPowerResponse::_internal_set_watts(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.watts_ = value; -} #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) + } // namespace v1 } // namespace powersensor } // namespace component } // namespace viam - // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_component_2fpowersensor_2fv1_2fpowersensor_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_component_2fpowersensor_2fv1_2fpowersensor_2eproto 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 fde40f193..549390ade 100644 --- a/src/viam/api/component/sensor/v1/sensor.grpc.pb.cc +++ b/src/viam/api/component/sensor/v1/sensor.grpc.pb.cc @@ -6,19 +6,19 @@ #include "component/sensor/v1/sensor.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace component { namespace sensor { @@ -32,92 +32,107 @@ static const char* SensorService_method_names[] = { std::unique_ptr< SensorService::Stub> SensorService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { (void)options; - std::unique_ptr< SensorService::Stub> stub(new SensorService::Stub(channel, options)); + std::unique_ptr< SensorService::Stub> stub(new SensorService::Stub(channel)); return stub; } -SensorService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) - : channel_(channel), rpcmethod_GetReadings_(SensorService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_DoCommand_(SensorService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetGeometries_(SensorService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) +SensorService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_GetReadings_(SensorService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DoCommand_(SensorService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetGeometries_(SensorService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::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); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetReadings_, context, request, response); } -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::experimental_async::GetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest* request, ::viam::common::v1::GetReadingsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(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, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetReadings_, context, request, response, reactor); +void SensorService::Stub::experimental_async::GetReadings(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetReadingsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetReadings_, context, request, response, std::move(f)); } -::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); +void SensorService::Stub::experimental_async::GetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest* request, ::viam::common::v1::GetReadingsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetReadings_, context, request, response, reactor); +} + +void SensorService::Stub::experimental_async::GetReadings(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetReadingsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetReadings_, context, request, response, reactor); } ::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(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::GetReadingsResponse>::Create(channel_.get(), cq, rpcmethod_GetReadings_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetReadingsResponse>* SensorService::Stub::PrepareAsyncGetReadingsRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::GetReadingsResponse>::Create(channel_.get(), cq, rpcmethod_GetReadings_, context, request, false); } ::grpc::Status SensorService::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); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DoCommand_, context, request, response); } -void SensorService::Stub::async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); +void SensorService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); } -void SensorService::Stub::async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); +void SensorService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* SensorService::Stub::PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::common::v1::DoCommandResponse, ::viam::common::v1::DoCommandRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DoCommand_, context, request); +void SensorService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); +} + +void SensorService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* SensorService::Stub::AsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncDoCommandRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::DoCommandResponse>::Create(channel_.get(), cq, rpcmethod_DoCommand_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* SensorService::Stub::PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::DoCommandResponse>::Create(channel_.get(), cq, rpcmethod_DoCommand_, context, request, false); } ::grpc::Status SensorService::Stub::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::viam::common::v1::GetGeometriesResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetGeometries_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetGeometries_, context, request, response); } -void SensorService::Stub::async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, std::move(f)); +void SensorService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, std::move(f)); } -void SensorService::Stub::async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, reactor); +void SensorService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>* SensorService::Stub::PrepareAsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::common::v1::GetGeometriesResponse, ::viam::common::v1::GetGeometriesRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetGeometries_, context, request); +void SensorService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, reactor); +} + +void SensorService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>* SensorService::Stub::AsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetGeometriesRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::GetGeometriesResponse>::Create(channel_.get(), cq, rpcmethod_GetGeometries_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>* SensorService::Stub::PrepareAsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::GetGeometriesResponse>::Create(channel_.get(), cq, rpcmethod_GetGeometries_, context, request, false); } SensorService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( SensorService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< SensorService::Service, ::viam::common::v1::GetReadingsRequest, ::viam::common::v1::GetReadingsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< SensorService::Service, ::viam::common::v1::GetReadingsRequest, ::viam::common::v1::GetReadingsResponse>( [](SensorService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::common::v1::GetReadingsRequest* req, ::viam::common::v1::GetReadingsResponse* resp) { return service->GetReadings(ctx, req, resp); @@ -125,9 +140,9 @@ SensorService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( SensorService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< SensorService::Service, ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< SensorService::Service, ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( [](SensorService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::common::v1::DoCommandRequest* req, ::viam::common::v1::DoCommandResponse* resp) { return service->DoCommand(ctx, req, resp); @@ -135,9 +150,9 @@ SensorService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( SensorService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< SensorService::Service, ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< SensorService::Service, ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( [](SensorService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::common::v1::GetGeometriesRequest* req, ::viam::common::v1::GetGeometriesResponse* resp) { return service->GetGeometries(ctx, req, resp); 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 9dbc80b31..95f7b98f3 100644 --- a/src/viam/api/component/sensor/v1/sensor.grpc.pb.h +++ b/src/viam/api/component/sensor/v1/sensor.grpc.pb.h @@ -7,23 +7,24 @@ #include "component/sensor/v1/sensor.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace component { @@ -63,23 +64,57 @@ class SensorService 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)); } - class async_interface { + class experimental_async_interface { public: - virtual ~async_interface() {} + virtual ~experimental_async_interface() {} // 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 ::grpc::ByteBuffer* request, ::viam::common::v1::GetReadingsResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest* request, ::viam::common::v1::GetReadingsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest* request, ::viam::common::v1::GetReadingsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetReadings(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetReadingsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetReadings(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetReadingsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // 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 ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // 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 ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif }; - typedef class async_interface experimental_async_interface; - virtual class async_interface* async() { return nullptr; } - class async_interface* experimental_async() { return async(); } - private: + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef class experimental_async_interface async_interface; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + async_interface* async() { return experimental_async(); } + #endif + virtual class experimental_async_interface* experimental_async() { return nullptr; } + private: 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; @@ -89,7 +124,7 @@ class SensorService final { }; class Stub final : public StubInterface { public: - Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); ::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)); @@ -111,26 +146,56 @@ class SensorService 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)); } - class async final : - public StubInterface::async_interface { + class experimental_async final : + public StubInterface::experimental_async_interface { public: 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 ::grpc::ByteBuffer* request, ::viam::common::v1::GetReadingsResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest* request, ::viam::common::v1::GetReadingsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest* request, ::viam::common::v1::GetReadingsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetReadings(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetReadingsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetReadings(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetReadingsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif 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 ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif 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 ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif private: friend class Stub; - explicit async(Stub* stub): stub_(stub) { } + explicit experimental_async(Stub* stub): stub_(stub) { } Stub* stub() { return stub_; } Stub* stub_; }; - class async* async() override { return &async_stub_; } + class experimental_async_interface* experimental_async() override { return &async_stub_; } private: std::shared_ptr< ::grpc::ChannelInterface> channel_; - class async async_stub_{this}; + class experimental_async async_stub_{this}; ::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; @@ -216,22 +281,36 @@ class SensorService final { }; typedef WithAsyncMethod_GetReadings > > AsyncService; template - class WithCallbackMethod_GetReadings : public BaseClass { + class ExperimentalWithCallbackMethod_GetReadings : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetReadings() { - ::grpc::Service::MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::GetReadingsRequest, ::viam::common::v1::GetReadingsResponse>( + ExperimentalWithCallbackMethod_GetReadings() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(0, + new ::grpc_impl::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); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + 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::experimental::MessageAllocator< ::viam::common::v1::GetReadingsRequest, ::viam::common::v1::GetReadingsResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::GetReadingsRequest, ::viam::common::v1::GetReadingsResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(0); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::GetReadingsRequest, ::viam::common::v1::GetReadingsResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetReadings() override { + ~ExperimentalWithCallbackMethod_GetReadings() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -239,26 +318,46 @@ class SensorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetReadings( - ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::GetReadingsRequest* /*request*/, ::viam::common::v1::GetReadingsResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::GetReadingsRequest* /*request*/, ::viam::common::v1::GetReadingsResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetReadings( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::common::v1::GetReadingsRequest* /*request*/, ::viam::common::v1::GetReadingsResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_DoCommand : public BaseClass { + class ExperimentalWithCallbackMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_DoCommand() { - ::grpc::Service::MarkMethodCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( + ExperimentalWithCallbackMethod_DoCommand() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(1, + new ::grpc_impl::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); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + 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::experimental::MessageAllocator< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(1); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_DoCommand() override { + ~ExperimentalWithCallbackMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -266,26 +365,46 @@ class SensorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DoCommand( - ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DoCommand( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetGeometries : public BaseClass { + class ExperimentalWithCallbackMethod_GetGeometries : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetGeometries() { - ::grpc::Service::MarkMethodCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( + ExperimentalWithCallbackMethod_GetGeometries() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(2, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response) { return this->GetGeometries(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response) { return this->GetGeometries(context, request, response); }));} void SetMessageAllocatorFor_GetGeometries( - ::grpc::MessageAllocator< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(2); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetGeometries() override { + ~ExperimentalWithCallbackMethod_GetGeometries() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -293,11 +412,20 @@ class SensorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetGeometries( - ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::GetGeometriesRequest* /*request*/, ::viam::common::v1::GetGeometriesResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::GetGeometriesRequest* /*request*/, ::viam::common::v1::GetGeometriesResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetGeometries( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::common::v1::GetGeometriesRequest* /*request*/, ::viam::common::v1::GetGeometriesResponse* /*response*/) + #endif + { return nullptr; } }; - typedef WithCallbackMethod_GetReadings > > CallbackService; - typedef CallbackService ExperimentalCallbackService; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef ExperimentalWithCallbackMethod_GetReadings > > CallbackService; + #endif + + typedef ExperimentalWithCallbackMethod_GetReadings > > ExperimentalCallbackService; template class WithGenericMethod_GetReadings : public BaseClass { private: @@ -410,17 +538,27 @@ class SensorService final { } }; template - class WithRawCallbackMethod_GetReadings : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetReadings : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetReadings() { - ::grpc::Service::MarkMethodRawCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetReadings() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(0, + new ::grpc_impl::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 { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetReadings(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetReadings() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -428,21 +566,37 @@ class SensorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetReadings( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetReadings( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_DoCommand : public BaseClass { + class ExperimentalWithRawCallbackMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_DoCommand() { - ::grpc::Service::MarkMethodRawCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_DoCommand() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DoCommand(context, request, response); })); - } - ~WithRawCallbackMethod_DoCommand() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DoCommand(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -450,21 +604,37 @@ class SensorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DoCommand( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DoCommand( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetGeometries : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetGeometries : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetGeometries() { - ::grpc::Service::MarkMethodRawCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetGeometries() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(2, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetGeometries(context, request, response); })); - } - ~WithRawCallbackMethod_GetGeometries() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetGeometries(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetGeometries() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -472,8 +642,14 @@ class SensorService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetGeometries( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetGeometries( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template class WithStreamedUnaryMethod_GetReadings : public BaseClass { @@ -484,8 +660,8 @@ class SensorService final { ::grpc::Service::MarkMethodStreamed(0, new ::grpc::internal::StreamedUnaryHandler< ::viam::common::v1::GetReadingsRequest, ::viam::common::v1::GetReadingsResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::common::v1::GetReadingsRequest, ::viam::common::v1::GetReadingsResponse>* streamer) { return this->StreamedGetReadings(context, streamer); @@ -511,8 +687,8 @@ class SensorService final { ::grpc::Service::MarkMethodStreamed(1, new ::grpc::internal::StreamedUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* streamer) { return this->StreamedDoCommand(context, streamer); @@ -538,8 +714,8 @@ class SensorService final { ::grpc::Service::MarkMethodStreamed(2, new ::grpc::internal::StreamedUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>* streamer) { return this->StreamedGetGeometries(context, streamer); diff --git a/src/viam/api/component/sensor/v1/sensor.pb.cc b/src/viam/api/component/sensor/v1/sensor.pb.cc index 3436ed56b..809284cb0 100644 --- a/src/viam/api/component/sensor/v1/sensor.pb.cc +++ b/src/viam/api/component/sensor/v1/sensor.pb.cc @@ -4,22 +4,22 @@ #include "component/sensor/v1/sensor.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace viam { namespace component { namespace sensor { @@ -28,88 +28,62 @@ namespace v1 { } // namespace sensor } // namespace component } // namespace viam -static constexpr const ::_pb::EnumDescriptor** - file_level_enum_descriptors_component_2fsensor_2fv1_2fsensor_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_component_2fsensor_2fv1_2fsensor_2eproto = nullptr; -const ::uint32_t TableStruct_component_2fsensor_2fv1_2fsensor_2eproto::offsets[1] = {}; +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[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.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" - "ometriesB\323\001\n\034com.viam.component.sensor.v" - "1B\013SensorProtoP\001Z#go.viam.com/api/compon" - "ent/sensor/v1\242\002\003VCS\252\002\030Viam.Component.Sen" - "sor.V1\312\002\030Viam\\Component\\Sensor\\V1\342\002$Viam" - "\\Component\\Sensor\\V1\\GPBMetadata\352\002\033Viam:" - ":Component::Sensor::V1b\006proto3" -}; -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, + +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.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[2] = { + &::descriptor_table_common_2fv1_2fcommon_2eproto, + &::descriptor_table_google_2fapi_2fannotations_2eproto, }; -static ::absl::once_flag descriptor_table_component_2fsensor_2fv1_2fsensor_2eproto_once; +static ::_pbi::once_flag descriptor_table_component_2fsensor_2fv1_2fsensor_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_component_2fsensor_2fv1_2fsensor_2eproto = { - false, - false, - 790, - 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, - 2, - 0, - schemas, - file_default_instances, - TableStruct_component_2fsensor_2fv1_2fsensor_2eproto::offsets, - nullptr, - file_level_enum_descriptors_component_2fsensor_2fv1_2fsensor_2eproto, + &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, + nullptr, file_level_enum_descriptors_component_2fsensor_2fv1_2fsensor_2eproto, file_level_service_descriptors_component_2fsensor_2fv1_2fsensor_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_component_2fsensor_2fv1_2fsensor_2eproto_getter() { return &descriptor_table_component_2fsensor_2fv1_2fsensor_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_component_2fsensor_2fv1_2fsensor_2eproto(&descriptor_table_component_2fsensor_2fv1_2fsensor_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_component_2fsensor_2fv1_2fsensor_2eproto(&descriptor_table_component_2fsensor_2fv1_2fsensor_2eproto); namespace viam { namespace component { namespace sensor { namespace v1 { + // @@protoc_insertion_point(namespace_scope) } // namespace v1 } // namespace sensor } // namespace component } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/component/sensor/v1/sensor.pb.h b/src/viam/api/component/sensor/v1/sensor.pb.h index 20d2d1e51..a9365e8af 100644 --- a/src/viam/api/component/sensor/v1/sensor.pb.h +++ b/src/viam/api/component/sensor/v1/sensor.pb.h @@ -1,65 +1,51 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: component/sensor/v1/sensor.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_component_2fsensor_2fv1_2fsensor_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_component_2fsensor_2fv1_2fsensor_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_component_2fsensor_2fv1_2fsensor_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_component_2fsensor_2fv1_2fsensor_2eproto #include #include -#include -#include -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export #include "common/v1/common.pb.h" #include "google/api/annotations.pb.h" // @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - +#include #define PROTOBUF_INTERNAL_EXPORT_component_2fsensor_2fv1_2fsensor_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_component_2fsensor_2fv1_2fsensor_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_component_2fsensor_2fv1_2fsensor_2eproto; -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_component_2fsensor_2fv1_2fsensor_2eproto; +PROTOBUF_NAMESPACE_OPEN +PROTOBUF_NAMESPACE_CLOSE namespace viam { namespace component { namespace sensor { @@ -68,32 +54,27 @@ namespace v1 { // =================================================================== - // =================================================================== - - // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ // @@protoc_insertion_point(namespace_scope) + } // namespace v1 } // namespace sensor } // namespace component } // namespace viam - // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_component_2fsensor_2fv1_2fsensor_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_component_2fsensor_2fv1_2fsensor_2eproto diff --git a/src/viam/api/component/servo/v1/servo.grpc.pb.cc b/src/viam/api/component/servo/v1/servo.grpc.pb.cc index bde4b0cab..c382e355e 100644 --- a/src/viam/api/component/servo/v1/servo.grpc.pb.cc +++ b/src/viam/api/component/servo/v1/servo.grpc.pb.cc @@ -6,19 +6,19 @@ #include "component/servo/v1/servo.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace component { namespace servo { @@ -35,164 +35,194 @@ static const char* ServoService_method_names[] = { std::unique_ptr< ServoService::Stub> ServoService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { (void)options; - std::unique_ptr< ServoService::Stub> stub(new ServoService::Stub(channel, options)); + std::unique_ptr< ServoService::Stub> stub(new ServoService::Stub(channel)); return stub; } -ServoService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) - : channel_(channel), rpcmethod_Move_(ServoService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetPosition_(ServoService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_Stop_(ServoService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_IsMoving_(ServoService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_DoCommand_(ServoService_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetGeometries_(ServoService_method_names[5], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) +ServoService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_Move_(ServoService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetPosition_(ServoService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_Stop_(ServoService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_IsMoving_(ServoService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DoCommand_(ServoService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetGeometries_(ServoService_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status ServoService::Stub::Move(::grpc::ClientContext* context, const ::viam::component::servo::v1::MoveRequest& request, ::viam::component::servo::v1::MoveResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::servo::v1::MoveRequest, ::viam::component::servo::v1::MoveResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Move_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_Move_, context, request, response); } -void ServoService::Stub::async::Move(::grpc::ClientContext* context, const ::viam::component::servo::v1::MoveRequest* request, ::viam::component::servo::v1::MoveResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::servo::v1::MoveRequest, ::viam::component::servo::v1::MoveResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Move_, context, request, response, std::move(f)); +void ServoService::Stub::experimental_async::Move(::grpc::ClientContext* context, const ::viam::component::servo::v1::MoveRequest* request, ::viam::component::servo::v1::MoveResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Move_, context, request, response, std::move(f)); } -void ServoService::Stub::async::Move(::grpc::ClientContext* context, const ::viam::component::servo::v1::MoveRequest* request, ::viam::component::servo::v1::MoveResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Move_, context, request, response, reactor); +void ServoService::Stub::experimental_async::Move(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::servo::v1::MoveResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Move_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::servo::v1::MoveResponse>* ServoService::Stub::PrepareAsyncMoveRaw(::grpc::ClientContext* context, const ::viam::component::servo::v1::MoveRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::servo::v1::MoveResponse, ::viam::component::servo::v1::MoveRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Move_, context, request); +void ServoService::Stub::experimental_async::Move(::grpc::ClientContext* context, const ::viam::component::servo::v1::MoveRequest* request, ::viam::component::servo::v1::MoveResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Move_, context, request, response, reactor); +} + +void ServoService::Stub::experimental_async::Move(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::servo::v1::MoveResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Move_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::servo::v1::MoveResponse>* ServoService::Stub::AsyncMoveRaw(::grpc::ClientContext* context, const ::viam::component::servo::v1::MoveRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncMoveRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::servo::v1::MoveResponse>::Create(channel_.get(), cq, rpcmethod_Move_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::servo::v1::MoveResponse>* ServoService::Stub::PrepareAsyncMoveRaw(::grpc::ClientContext* context, const ::viam::component::servo::v1::MoveRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::servo::v1::MoveResponse>::Create(channel_.get(), cq, rpcmethod_Move_, context, request, false); } ::grpc::Status ServoService::Stub::GetPosition(::grpc::ClientContext* context, const ::viam::component::servo::v1::GetPositionRequest& request, ::viam::component::servo::v1::GetPositionResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::servo::v1::GetPositionRequest, ::viam::component::servo::v1::GetPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetPosition_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetPosition_, context, request, response); } -void ServoService::Stub::async::GetPosition(::grpc::ClientContext* context, const ::viam::component::servo::v1::GetPositionRequest* request, ::viam::component::servo::v1::GetPositionResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::servo::v1::GetPositionRequest, ::viam::component::servo::v1::GetPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetPosition_, context, request, response, std::move(f)); +void ServoService::Stub::experimental_async::GetPosition(::grpc::ClientContext* context, const ::viam::component::servo::v1::GetPositionRequest* request, ::viam::component::servo::v1::GetPositionResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetPosition_, context, request, response, std::move(f)); } -void ServoService::Stub::async::GetPosition(::grpc::ClientContext* context, const ::viam::component::servo::v1::GetPositionRequest* request, ::viam::component::servo::v1::GetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetPosition_, context, request, response, reactor); +void ServoService::Stub::experimental_async::GetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::servo::v1::GetPositionResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetPosition_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::servo::v1::GetPositionResponse>* ServoService::Stub::PrepareAsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::component::servo::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::servo::v1::GetPositionResponse, ::viam::component::servo::v1::GetPositionRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetPosition_, context, request); +void ServoService::Stub::experimental_async::GetPosition(::grpc::ClientContext* context, const ::viam::component::servo::v1::GetPositionRequest* request, ::viam::component::servo::v1::GetPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetPosition_, context, request, response, reactor); +} + +void ServoService::Stub::experimental_async::GetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::servo::v1::GetPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetPosition_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::servo::v1::GetPositionResponse>* ServoService::Stub::AsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::component::servo::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetPositionRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::servo::v1::GetPositionResponse>::Create(channel_.get(), cq, rpcmethod_GetPosition_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::servo::v1::GetPositionResponse>* ServoService::Stub::PrepareAsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::component::servo::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::servo::v1::GetPositionResponse>::Create(channel_.get(), cq, rpcmethod_GetPosition_, context, request, false); } ::grpc::Status ServoService::Stub::Stop(::grpc::ClientContext* context, const ::viam::component::servo::v1::StopRequest& request, ::viam::component::servo::v1::StopResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::servo::v1::StopRequest, ::viam::component::servo::v1::StopResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Stop_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_Stop_, context, request, response); } -void ServoService::Stub::async::Stop(::grpc::ClientContext* context, const ::viam::component::servo::v1::StopRequest* request, ::viam::component::servo::v1::StopResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::servo::v1::StopRequest, ::viam::component::servo::v1::StopResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, std::move(f)); +void ServoService::Stub::experimental_async::Stop(::grpc::ClientContext* context, const ::viam::component::servo::v1::StopRequest* request, ::viam::component::servo::v1::StopResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, std::move(f)); } -void ServoService::Stub::async::Stop(::grpc::ClientContext* context, const ::viam::component::servo::v1::StopRequest* request, ::viam::component::servo::v1::StopResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, reactor); +void ServoService::Stub::experimental_async::Stop(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::servo::v1::StopResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::servo::v1::StopResponse>* ServoService::Stub::PrepareAsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::servo::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::servo::v1::StopResponse, ::viam::component::servo::v1::StopRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Stop_, context, request); +void ServoService::Stub::experimental_async::Stop(::grpc::ClientContext* context, const ::viam::component::servo::v1::StopRequest* request, ::viam::component::servo::v1::StopResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, reactor); +} + +void ServoService::Stub::experimental_async::Stop(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::servo::v1::StopResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::servo::v1::StopResponse>* ServoService::Stub::AsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::servo::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncStopRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::servo::v1::StopResponse>::Create(channel_.get(), cq, rpcmethod_Stop_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::servo::v1::StopResponse>* ServoService::Stub::PrepareAsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::servo::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::servo::v1::StopResponse>::Create(channel_.get(), cq, rpcmethod_Stop_, context, request, false); } ::grpc::Status ServoService::Stub::IsMoving(::grpc::ClientContext* context, const ::viam::component::servo::v1::IsMovingRequest& request, ::viam::component::servo::v1::IsMovingResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::servo::v1::IsMovingRequest, ::viam::component::servo::v1::IsMovingResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_IsMoving_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_IsMoving_, context, request, response); } -void ServoService::Stub::async::IsMoving(::grpc::ClientContext* context, const ::viam::component::servo::v1::IsMovingRequest* request, ::viam::component::servo::v1::IsMovingResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::servo::v1::IsMovingRequest, ::viam::component::servo::v1::IsMovingResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_IsMoving_, context, request, response, std::move(f)); +void ServoService::Stub::experimental_async::IsMoving(::grpc::ClientContext* context, const ::viam::component::servo::v1::IsMovingRequest* request, ::viam::component::servo::v1::IsMovingResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_IsMoving_, context, request, response, std::move(f)); } -void ServoService::Stub::async::IsMoving(::grpc::ClientContext* context, const ::viam::component::servo::v1::IsMovingRequest* request, ::viam::component::servo::v1::IsMovingResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_IsMoving_, context, request, response, reactor); +void ServoService::Stub::experimental_async::IsMoving(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::servo::v1::IsMovingResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_IsMoving_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::servo::v1::IsMovingResponse>* ServoService::Stub::PrepareAsyncIsMovingRaw(::grpc::ClientContext* context, const ::viam::component::servo::v1::IsMovingRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::servo::v1::IsMovingResponse, ::viam::component::servo::v1::IsMovingRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_IsMoving_, context, request); +void ServoService::Stub::experimental_async::IsMoving(::grpc::ClientContext* context, const ::viam::component::servo::v1::IsMovingRequest* request, ::viam::component::servo::v1::IsMovingResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_IsMoving_, context, request, response, reactor); +} + +void ServoService::Stub::experimental_async::IsMoving(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::servo::v1::IsMovingResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_IsMoving_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::servo::v1::IsMovingResponse>* ServoService::Stub::AsyncIsMovingRaw(::grpc::ClientContext* context, const ::viam::component::servo::v1::IsMovingRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncIsMovingRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::servo::v1::IsMovingResponse>::Create(channel_.get(), cq, rpcmethod_IsMoving_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::servo::v1::IsMovingResponse>* ServoService::Stub::PrepareAsyncIsMovingRaw(::grpc::ClientContext* context, const ::viam::component::servo::v1::IsMovingRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::servo::v1::IsMovingResponse>::Create(channel_.get(), cq, rpcmethod_IsMoving_, context, request, false); } ::grpc::Status ServoService::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); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DoCommand_, context, request, response); } -void ServoService::Stub::async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); +void ServoService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); } -void ServoService::Stub::async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); +void ServoService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* ServoService::Stub::PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::common::v1::DoCommandResponse, ::viam::common::v1::DoCommandRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DoCommand_, context, request); +void ServoService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); +} + +void ServoService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* ServoService::Stub::AsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncDoCommandRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::DoCommandResponse>::Create(channel_.get(), cq, rpcmethod_DoCommand_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* ServoService::Stub::PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::DoCommandResponse>::Create(channel_.get(), cq, rpcmethod_DoCommand_, context, request, false); } ::grpc::Status ServoService::Stub::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::viam::common::v1::GetGeometriesResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetGeometries_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetGeometries_, context, request, response); } -void ServoService::Stub::async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, std::move(f)); +void ServoService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, std::move(f)); } -void ServoService::Stub::async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, reactor); +void ServoService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>* ServoService::Stub::PrepareAsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::common::v1::GetGeometriesResponse, ::viam::common::v1::GetGeometriesRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetGeometries_, context, request); +void ServoService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, reactor); +} + +void ServoService::Stub::experimental_async::GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetGeometries_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>* ServoService::Stub::AsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetGeometriesRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::GetGeometriesResponse>::Create(channel_.get(), cq, rpcmethod_GetGeometries_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>* ServoService::Stub::PrepareAsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::GetGeometriesResponse>::Create(channel_.get(), cq, rpcmethod_GetGeometries_, context, request, false); } ServoService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( ServoService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< ServoService::Service, ::viam::component::servo::v1::MoveRequest, ::viam::component::servo::v1::MoveResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< ServoService::Service, ::viam::component::servo::v1::MoveRequest, ::viam::component::servo::v1::MoveResponse>( [](ServoService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::servo::v1::MoveRequest* req, ::viam::component::servo::v1::MoveResponse* resp) { return service->Move(ctx, req, resp); @@ -200,9 +230,9 @@ ServoService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( ServoService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< ServoService::Service, ::viam::component::servo::v1::GetPositionRequest, ::viam::component::servo::v1::GetPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< ServoService::Service, ::viam::component::servo::v1::GetPositionRequest, ::viam::component::servo::v1::GetPositionResponse>( [](ServoService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::servo::v1::GetPositionRequest* req, ::viam::component::servo::v1::GetPositionResponse* resp) { return service->GetPosition(ctx, req, resp); @@ -210,9 +240,9 @@ ServoService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( ServoService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< ServoService::Service, ::viam::component::servo::v1::StopRequest, ::viam::component::servo::v1::StopResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< ServoService::Service, ::viam::component::servo::v1::StopRequest, ::viam::component::servo::v1::StopResponse>( [](ServoService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::servo::v1::StopRequest* req, ::viam::component::servo::v1::StopResponse* resp) { return service->Stop(ctx, req, resp); @@ -220,9 +250,9 @@ ServoService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( ServoService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< ServoService::Service, ::viam::component::servo::v1::IsMovingRequest, ::viam::component::servo::v1::IsMovingResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< ServoService::Service, ::viam::component::servo::v1::IsMovingRequest, ::viam::component::servo::v1::IsMovingResponse>( [](ServoService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::servo::v1::IsMovingRequest* req, ::viam::component::servo::v1::IsMovingResponse* resp) { return service->IsMoving(ctx, req, resp); @@ -230,9 +260,9 @@ ServoService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( ServoService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< ServoService::Service, ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< ServoService::Service, ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( [](ServoService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::common::v1::DoCommandRequest* req, ::viam::common::v1::DoCommandResponse* resp) { return service->DoCommand(ctx, req, resp); @@ -240,9 +270,9 @@ ServoService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( ServoService_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< ServoService::Service, ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< ServoService::Service, ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( [](ServoService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::common::v1::GetGeometriesRequest* req, ::viam::common::v1::GetGeometriesResponse* resp) { return service->GetGeometries(ctx, req, resp); diff --git a/src/viam/api/component/servo/v1/servo.grpc.pb.h b/src/viam/api/component/servo/v1/servo.grpc.pb.h index af74e031a..274df99bf 100644 --- a/src/viam/api/component/servo/v1/servo.grpc.pb.h +++ b/src/viam/api/component/servo/v1/servo.grpc.pb.h @@ -7,23 +7,24 @@ #include "component/servo/v1/servo.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace component { @@ -88,33 +89,97 @@ class ServoService 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)); } - class async_interface { + class experimental_async_interface { public: - virtual ~async_interface() {} + virtual ~experimental_async_interface() {} // Move requests the servo of the underlying robot to move. // This will block until done or a new operation cancels this one virtual void Move(::grpc::ClientContext* context, const ::viam::component::servo::v1::MoveRequest* request, ::viam::component::servo::v1::MoveResponse* response, std::function) = 0; + virtual void Move(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::servo::v1::MoveResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void Move(::grpc::ClientContext* context, const ::viam::component::servo::v1::MoveRequest* request, ::viam::component::servo::v1::MoveResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void Move(::grpc::ClientContext* context, const ::viam::component::servo::v1::MoveRequest* request, ::viam::component::servo::v1::MoveResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void Move(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::servo::v1::MoveResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void Move(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::servo::v1::MoveResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // GetPosition returns the current set angle (degrees) of the servo of the underlying robot. virtual void GetPosition(::grpc::ClientContext* context, const ::viam::component::servo::v1::GetPositionRequest* request, ::viam::component::servo::v1::GetPositionResponse* response, std::function) = 0; + virtual void GetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::servo::v1::GetPositionResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetPosition(::grpc::ClientContext* context, const ::viam::component::servo::v1::GetPositionRequest* request, ::viam::component::servo::v1::GetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetPosition(::grpc::ClientContext* context, const ::viam::component::servo::v1::GetPositionRequest* request, ::viam::component::servo::v1::GetPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::servo::v1::GetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::servo::v1::GetPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Stop stops a robot's servo virtual void Stop(::grpc::ClientContext* context, const ::viam::component::servo::v1::StopRequest* request, ::viam::component::servo::v1::StopResponse* response, std::function) = 0; + virtual void Stop(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::servo::v1::StopResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void Stop(::grpc::ClientContext* context, const ::viam::component::servo::v1::StopRequest* request, ::viam::component::servo::v1::StopResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void Stop(::grpc::ClientContext* context, const ::viam::component::servo::v1::StopRequest* request, ::viam::component::servo::v1::StopResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void Stop(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::servo::v1::StopResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void Stop(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::servo::v1::StopResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // IsMoving reports if a component is in motion virtual void IsMoving(::grpc::ClientContext* context, const ::viam::component::servo::v1::IsMovingRequest* request, ::viam::component::servo::v1::IsMovingResponse* response, std::function) = 0; + virtual void IsMoving(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::servo::v1::IsMovingResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void IsMoving(::grpc::ClientContext* context, const ::viam::component::servo::v1::IsMovingRequest* request, ::viam::component::servo::v1::IsMovingResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void IsMoving(::grpc::ClientContext* context, const ::viam::component::servo::v1::IsMovingRequest* request, ::viam::component::servo::v1::IsMovingResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void IsMoving(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::servo::v1::IsMovingResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void IsMoving(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::servo::v1::IsMovingResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // 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 ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // 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 ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif }; - typedef class async_interface experimental_async_interface; - virtual class async_interface* async() { return nullptr; } - class async_interface* experimental_async() { return async(); } - private: + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef class experimental_async_interface async_interface; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + async_interface* async() { return experimental_async(); } + #endif + virtual class experimental_async_interface* experimental_async() { return nullptr; } + private: virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::servo::v1::MoveResponse>* AsyncMoveRaw(::grpc::ClientContext* context, const ::viam::component::servo::v1::MoveRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::servo::v1::MoveResponse>* PrepareAsyncMoveRaw(::grpc::ClientContext* context, const ::viam::component::servo::v1::MoveRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::servo::v1::GetPositionResponse>* AsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::component::servo::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) = 0; @@ -130,7 +195,7 @@ class ServoService final { }; class Stub final : public StubInterface { public: - Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); ::grpc::Status Move(::grpc::ClientContext* context, const ::viam::component::servo::v1::MoveRequest& request, ::viam::component::servo::v1::MoveResponse* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::servo::v1::MoveResponse>> AsyncMove(::grpc::ClientContext* context, const ::viam::component::servo::v1::MoveRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::servo::v1::MoveResponse>>(AsyncMoveRaw(context, request, cq)); @@ -173,32 +238,92 @@ class ServoService 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)); } - class async final : - public StubInterface::async_interface { + class experimental_async final : + public StubInterface::experimental_async_interface { public: void Move(::grpc::ClientContext* context, const ::viam::component::servo::v1::MoveRequest* request, ::viam::component::servo::v1::MoveResponse* response, std::function) override; + void Move(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::servo::v1::MoveResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void Move(::grpc::ClientContext* context, const ::viam::component::servo::v1::MoveRequest* request, ::viam::component::servo::v1::MoveResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void Move(::grpc::ClientContext* context, const ::viam::component::servo::v1::MoveRequest* request, ::viam::component::servo::v1::MoveResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void Move(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::servo::v1::MoveResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void Move(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::servo::v1::MoveResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetPosition(::grpc::ClientContext* context, const ::viam::component::servo::v1::GetPositionRequest* request, ::viam::component::servo::v1::GetPositionResponse* response, std::function) override; + void GetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::servo::v1::GetPositionResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetPosition(::grpc::ClientContext* context, const ::viam::component::servo::v1::GetPositionRequest* request, ::viam::component::servo::v1::GetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetPosition(::grpc::ClientContext* context, const ::viam::component::servo::v1::GetPositionRequest* request, ::viam::component::servo::v1::GetPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::servo::v1::GetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::servo::v1::GetPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void Stop(::grpc::ClientContext* context, const ::viam::component::servo::v1::StopRequest* request, ::viam::component::servo::v1::StopResponse* response, std::function) override; + void Stop(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::servo::v1::StopResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void Stop(::grpc::ClientContext* context, const ::viam::component::servo::v1::StopRequest* request, ::viam::component::servo::v1::StopResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void Stop(::grpc::ClientContext* context, const ::viam::component::servo::v1::StopRequest* request, ::viam::component::servo::v1::StopResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void Stop(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::servo::v1::StopResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void Stop(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::servo::v1::StopResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void IsMoving(::grpc::ClientContext* context, const ::viam::component::servo::v1::IsMovingRequest* request, ::viam::component::servo::v1::IsMovingResponse* response, std::function) override; + void IsMoving(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::servo::v1::IsMovingResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void IsMoving(::grpc::ClientContext* context, const ::viam::component::servo::v1::IsMovingRequest* request, ::viam::component::servo::v1::IsMovingResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void IsMoving(::grpc::ClientContext* context, const ::viam::component::servo::v1::IsMovingRequest* request, ::viam::component::servo::v1::IsMovingResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void IsMoving(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::servo::v1::IsMovingResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void IsMoving(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::servo::v1::IsMovingResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif 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 ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif 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 ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetGeometries(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif private: friend class Stub; - explicit async(Stub* stub): stub_(stub) { } + explicit experimental_async(Stub* stub): stub_(stub) { } Stub* stub() { return stub_; } Stub* stub_; }; - class async* async() override { return &async_stub_; } + class experimental_async_interface* experimental_async() override { return &async_stub_; } private: std::shared_ptr< ::grpc::ChannelInterface> channel_; - class async async_stub_{this}; + class experimental_async async_stub_{this}; ::grpc::ClientAsyncResponseReader< ::viam::component::servo::v1::MoveResponse>* AsyncMoveRaw(::grpc::ClientContext* context, const ::viam::component::servo::v1::MoveRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::component::servo::v1::MoveResponse>* PrepareAsyncMoveRaw(::grpc::ClientContext* context, const ::viam::component::servo::v1::MoveRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::component::servo::v1::GetPositionResponse>* AsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::component::servo::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) override; @@ -360,22 +485,36 @@ class ServoService final { }; typedef WithAsyncMethod_Move > > > > > AsyncService; template - class WithCallbackMethod_Move : public BaseClass { + class ExperimentalWithCallbackMethod_Move : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_Move() { - ::grpc::Service::MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::servo::v1::MoveRequest, ::viam::component::servo::v1::MoveResponse>( + ExperimentalWithCallbackMethod_Move() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::servo::v1::MoveRequest, ::viam::component::servo::v1::MoveResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::servo::v1::MoveRequest* request, ::viam::component::servo::v1::MoveResponse* response) { return this->Move(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::servo::v1::MoveRequest* request, ::viam::component::servo::v1::MoveResponse* response) { return this->Move(context, request, response); }));} void SetMessageAllocatorFor_Move( - ::grpc::MessageAllocator< ::viam::component::servo::v1::MoveRequest, ::viam::component::servo::v1::MoveResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::servo::v1::MoveRequest, ::viam::component::servo::v1::MoveResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::servo::v1::MoveRequest, ::viam::component::servo::v1::MoveResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(0); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::servo::v1::MoveRequest, ::viam::component::servo::v1::MoveResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_Move() override { + ~ExperimentalWithCallbackMethod_Move() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -383,26 +522,46 @@ class ServoService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* Move( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::servo::v1::MoveRequest* /*request*/, ::viam::component::servo::v1::MoveResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::servo::v1::MoveRequest* /*request*/, ::viam::component::servo::v1::MoveResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* Move( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::servo::v1::MoveRequest* /*request*/, ::viam::component::servo::v1::MoveResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetPosition : public BaseClass { + class ExperimentalWithCallbackMethod_GetPosition : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetPosition() { - ::grpc::Service::MarkMethodCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::servo::v1::GetPositionRequest, ::viam::component::servo::v1::GetPositionResponse>( + ExperimentalWithCallbackMethod_GetPosition() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::servo::v1::GetPositionRequest, ::viam::component::servo::v1::GetPositionResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::servo::v1::GetPositionRequest* request, ::viam::component::servo::v1::GetPositionResponse* response) { return this->GetPosition(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::servo::v1::GetPositionRequest* request, ::viam::component::servo::v1::GetPositionResponse* response) { return this->GetPosition(context, request, response); }));} void SetMessageAllocatorFor_GetPosition( - ::grpc::MessageAllocator< ::viam::component::servo::v1::GetPositionRequest, ::viam::component::servo::v1::GetPositionResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::servo::v1::GetPositionRequest, ::viam::component::servo::v1::GetPositionResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::servo::v1::GetPositionRequest, ::viam::component::servo::v1::GetPositionResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(1); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::servo::v1::GetPositionRequest, ::viam::component::servo::v1::GetPositionResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetPosition() override { + ~ExperimentalWithCallbackMethod_GetPosition() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -410,26 +569,46 @@ class ServoService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetPosition( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::servo::v1::GetPositionRequest* /*request*/, ::viam::component::servo::v1::GetPositionResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::servo::v1::GetPositionRequest* /*request*/, ::viam::component::servo::v1::GetPositionResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetPosition( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::servo::v1::GetPositionRequest* /*request*/, ::viam::component::servo::v1::GetPositionResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_Stop : public BaseClass { + class ExperimentalWithCallbackMethod_Stop : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_Stop() { - ::grpc::Service::MarkMethodCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::servo::v1::StopRequest, ::viam::component::servo::v1::StopResponse>( + ExperimentalWithCallbackMethod_Stop() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(2, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::servo::v1::StopRequest, ::viam::component::servo::v1::StopResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::servo::v1::StopRequest* request, ::viam::component::servo::v1::StopResponse* response) { return this->Stop(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::servo::v1::StopRequest* request, ::viam::component::servo::v1::StopResponse* response) { return this->Stop(context, request, response); }));} void SetMessageAllocatorFor_Stop( - ::grpc::MessageAllocator< ::viam::component::servo::v1::StopRequest, ::viam::component::servo::v1::StopResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::servo::v1::StopRequest, ::viam::component::servo::v1::StopResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::servo::v1::StopRequest, ::viam::component::servo::v1::StopResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(2); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::servo::v1::StopRequest, ::viam::component::servo::v1::StopResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_Stop() override { + ~ExperimentalWithCallbackMethod_Stop() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -437,26 +616,46 @@ class ServoService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* Stop( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::servo::v1::StopRequest* /*request*/, ::viam::component::servo::v1::StopResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::servo::v1::StopRequest* /*request*/, ::viam::component::servo::v1::StopResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* Stop( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::servo::v1::StopRequest* /*request*/, ::viam::component::servo::v1::StopResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_IsMoving : public BaseClass { + class ExperimentalWithCallbackMethod_IsMoving : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_IsMoving() { - ::grpc::Service::MarkMethodCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::servo::v1::IsMovingRequest, ::viam::component::servo::v1::IsMovingResponse>( + ExperimentalWithCallbackMethod_IsMoving() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(3, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::servo::v1::IsMovingRequest, ::viam::component::servo::v1::IsMovingResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::servo::v1::IsMovingRequest* request, ::viam::component::servo::v1::IsMovingResponse* response) { return this->IsMoving(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::servo::v1::IsMovingRequest* request, ::viam::component::servo::v1::IsMovingResponse* response) { return this->IsMoving(context, request, response); }));} void SetMessageAllocatorFor_IsMoving( - ::grpc::MessageAllocator< ::viam::component::servo::v1::IsMovingRequest, ::viam::component::servo::v1::IsMovingResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::servo::v1::IsMovingRequest, ::viam::component::servo::v1::IsMovingResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::servo::v1::IsMovingRequest, ::viam::component::servo::v1::IsMovingResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(3); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::servo::v1::IsMovingRequest, ::viam::component::servo::v1::IsMovingResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_IsMoving() override { + ~ExperimentalWithCallbackMethod_IsMoving() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -464,26 +663,46 @@ class ServoService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* IsMoving( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::servo::v1::IsMovingRequest* /*request*/, ::viam::component::servo::v1::IsMovingResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::servo::v1::IsMovingRequest* /*request*/, ::viam::component::servo::v1::IsMovingResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* IsMoving( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::servo::v1::IsMovingRequest* /*request*/, ::viam::component::servo::v1::IsMovingResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_DoCommand : public BaseClass { + class ExperimentalWithCallbackMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_DoCommand() { - ::grpc::Service::MarkMethodCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( + ExperimentalWithCallbackMethod_DoCommand() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(4, + new ::grpc_impl::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); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + 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::experimental::MessageAllocator< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(4); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_DoCommand() override { + ~ExperimentalWithCallbackMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -491,26 +710,46 @@ class ServoService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DoCommand( - ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DoCommand( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetGeometries : public BaseClass { + class ExperimentalWithCallbackMethod_GetGeometries : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetGeometries() { - ::grpc::Service::MarkMethodCallback(5, - new ::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( + ExperimentalWithCallbackMethod_GetGeometries() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(5, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response) { return this->GetGeometries(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response) { return this->GetGeometries(context, request, response); }));} void SetMessageAllocatorFor_GetGeometries( - ::grpc::MessageAllocator< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(5); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(5); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetGeometries() override { + ~ExperimentalWithCallbackMethod_GetGeometries() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -518,11 +757,20 @@ class ServoService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetGeometries( - ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::GetGeometriesRequest* /*request*/, ::viam::common::v1::GetGeometriesResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::GetGeometriesRequest* /*request*/, ::viam::common::v1::GetGeometriesResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetGeometries( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::common::v1::GetGeometriesRequest* /*request*/, ::viam::common::v1::GetGeometriesResponse* /*response*/) + #endif + { return nullptr; } }; - typedef WithCallbackMethod_Move > > > > > CallbackService; - typedef CallbackService ExperimentalCallbackService; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef ExperimentalWithCallbackMethod_Move > > > > > CallbackService; + #endif + + typedef ExperimentalWithCallbackMethod_Move > > > > > ExperimentalCallbackService; template class WithGenericMethod_Move : public BaseClass { private: @@ -746,17 +994,27 @@ class ServoService final { } }; template - class WithRawCallbackMethod_Move : public BaseClass { + class ExperimentalWithRawCallbackMethod_Move : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_Move() { - ::grpc::Service::MarkMethodRawCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_Move() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Move(context, request, response); })); - } - ~WithRawCallbackMethod_Move() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Move(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_Move() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -764,21 +1022,37 @@ class ServoService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* Move( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* Move( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetPosition : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetPosition : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetPosition() { - ::grpc::Service::MarkMethodRawCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetPosition() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetPosition(context, request, response); })); - } - ~WithRawCallbackMethod_GetPosition() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetPosition(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetPosition() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -786,21 +1060,37 @@ class ServoService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetPosition( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetPosition( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_Stop : public BaseClass { + class ExperimentalWithRawCallbackMethod_Stop : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_Stop() { - ::grpc::Service::MarkMethodRawCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_Stop() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(2, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Stop(context, request, response); })); - } - ~WithRawCallbackMethod_Stop() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Stop(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_Stop() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -808,21 +1098,37 @@ class ServoService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* Stop( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* Stop( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_IsMoving : public BaseClass { + class ExperimentalWithRawCallbackMethod_IsMoving : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_IsMoving() { - ::grpc::Service::MarkMethodRawCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_IsMoving() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(3, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->IsMoving(context, request, response); })); - } - ~WithRawCallbackMethod_IsMoving() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->IsMoving(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_IsMoving() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -830,21 +1136,37 @@ class ServoService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* IsMoving( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* IsMoving( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_DoCommand : public BaseClass { + class ExperimentalWithRawCallbackMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_DoCommand() { - ::grpc::Service::MarkMethodRawCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_DoCommand() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(4, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DoCommand(context, request, response); })); - } - ~WithRawCallbackMethod_DoCommand() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DoCommand(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -852,21 +1174,37 @@ class ServoService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DoCommand( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DoCommand( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetGeometries : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetGeometries : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetGeometries() { - ::grpc::Service::MarkMethodRawCallback(5, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetGeometries() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(5, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetGeometries(context, request, response); })); - } - ~WithRawCallbackMethod_GetGeometries() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetGeometries(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetGeometries() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -874,8 +1212,14 @@ class ServoService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetGeometries( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetGeometries( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template class WithStreamedUnaryMethod_Move : public BaseClass { @@ -886,8 +1230,8 @@ class ServoService final { ::grpc::Service::MarkMethodStreamed(0, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::servo::v1::MoveRequest, ::viam::component::servo::v1::MoveResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::servo::v1::MoveRequest, ::viam::component::servo::v1::MoveResponse>* streamer) { return this->StreamedMove(context, streamer); @@ -913,8 +1257,8 @@ class ServoService final { ::grpc::Service::MarkMethodStreamed(1, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::servo::v1::GetPositionRequest, ::viam::component::servo::v1::GetPositionResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::servo::v1::GetPositionRequest, ::viam::component::servo::v1::GetPositionResponse>* streamer) { return this->StreamedGetPosition(context, streamer); @@ -940,8 +1284,8 @@ class ServoService final { ::grpc::Service::MarkMethodStreamed(2, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::servo::v1::StopRequest, ::viam::component::servo::v1::StopResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::servo::v1::StopRequest, ::viam::component::servo::v1::StopResponse>* streamer) { return this->StreamedStop(context, streamer); @@ -967,8 +1311,8 @@ class ServoService final { ::grpc::Service::MarkMethodStreamed(3, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::servo::v1::IsMovingRequest, ::viam::component::servo::v1::IsMovingResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::servo::v1::IsMovingRequest, ::viam::component::servo::v1::IsMovingResponse>* streamer) { return this->StreamedIsMoving(context, streamer); @@ -994,8 +1338,8 @@ class ServoService final { ::grpc::Service::MarkMethodStreamed(4, new ::grpc::internal::StreamedUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* streamer) { return this->StreamedDoCommand(context, streamer); @@ -1021,8 +1365,8 @@ class ServoService final { ::grpc::Service::MarkMethodStreamed(5, new ::grpc::internal::StreamedUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>* streamer) { return this->StreamedGetGeometries(context, streamer); diff --git a/src/viam/api/component/servo/v1/servo.pb.cc b/src/viam/api/component/servo/v1/servo.pb.cc index a46d226cc..54bf2be55 100644 --- a/src/viam/api/component/servo/v1/servo.pb.cc +++ b/src/viam/api/component/servo/v1/servo.pb.cc @@ -4,663 +4,545 @@ #include "component/servo/v1/servo.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace viam { namespace component { namespace servo { namespace v1 { - template -PROTOBUF_CONSTEXPR StopResponse::StopResponse(::_pbi::ConstantInitialized) {} -struct StopResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR StopResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StopResponseDefaultTypeInternal() {} - union { - StopResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopResponseDefaultTypeInternal _StopResponse_default_instance_; - -inline constexpr Status::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : position_deg_{0u}, - is_moving_{false}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR Status::Status(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct StatusDefaultTypeInternal { - PROTOBUF_CONSTEXPR StatusDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StatusDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR MoveRequest::MoveRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr) + , angle_deg_(0u){} +struct MoveRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR MoveRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~MoveRequestDefaultTypeInternal() {} union { - Status _instance; + MoveRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StatusDefaultTypeInternal _Status_default_instance_; - template -PROTOBUF_CONSTEXPR MoveResponse::MoveResponse(::_pbi::ConstantInitialized) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveRequestDefaultTypeInternal _MoveRequest_default_instance_; +PROTOBUF_CONSTEXPR MoveResponse::MoveResponse( + ::_pbi::ConstantInitialized){} struct MoveResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR MoveResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR MoveResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~MoveResponseDefaultTypeInternal() {} union { MoveResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveResponseDefaultTypeInternal _MoveResponse_default_instance_; - -inline constexpr IsMovingResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : is_moving_{false}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR IsMovingResponse::IsMovingResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct IsMovingResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR IsMovingResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~IsMovingResponseDefaultTypeInternal() {} - union { - IsMovingResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IsMovingResponseDefaultTypeInternal _IsMovingResponse_default_instance_; - -inline constexpr IsMovingRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR IsMovingRequest::IsMovingRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct IsMovingRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR IsMovingRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~IsMovingRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveResponseDefaultTypeInternal _MoveResponse_default_instance_; +PROTOBUF_CONSTEXPR GetPositionRequest::GetPositionRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} +struct GetPositionRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPositionRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPositionRequestDefaultTypeInternal() {} union { - IsMovingRequest _instance; + GetPositionRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IsMovingRequestDefaultTypeInternal _IsMovingRequest_default_instance_; - -inline constexpr GetPositionResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : position_deg_{0u}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetPositionResponse::GetPositionResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPositionRequestDefaultTypeInternal _GetPositionRequest_default_instance_; +PROTOBUF_CONSTEXPR GetPositionResponse::GetPositionResponse( + ::_pbi::ConstantInitialized) + : position_deg_(0u){} struct GetPositionResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetPositionResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GetPositionResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~GetPositionResponseDefaultTypeInternal() {} union { GetPositionResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPositionResponseDefaultTypeInternal _GetPositionResponse_default_instance_; - -inline constexpr StopRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR StopRequest::StopRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPositionResponseDefaultTypeInternal _GetPositionResponse_default_instance_; +PROTOBUF_CONSTEXPR StopRequest::StopRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} struct StopRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR StopRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR StopRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~StopRequestDefaultTypeInternal() {} union { StopRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopRequestDefaultTypeInternal _StopRequest_default_instance_; - -inline constexpr MoveRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr}, - angle_deg_{0u} {} - -template -PROTOBUF_CONSTEXPR MoveRequest::MoveRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct MoveRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR MoveRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~MoveRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopRequestDefaultTypeInternal _StopRequest_default_instance_; +PROTOBUF_CONSTEXPR StopResponse::StopResponse( + ::_pbi::ConstantInitialized){} +struct StopResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR StopResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StopResponseDefaultTypeInternal() {} union { - MoveRequest _instance; + StopResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveRequestDefaultTypeInternal _MoveRequest_default_instance_; - -inline constexpr GetPositionRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetPositionRequest::GetPositionRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetPositionRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetPositionRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetPositionRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopResponseDefaultTypeInternal _StopResponse_default_instance_; +PROTOBUF_CONSTEXPR Status::Status( + ::_pbi::ConstantInitialized) + : position_deg_(0u) + , is_moving_(false){} +struct StatusDefaultTypeInternal { + PROTOBUF_CONSTEXPR StatusDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StatusDefaultTypeInternal() {} union { - GetPositionRequest _instance; + Status _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPositionRequestDefaultTypeInternal _GetPositionRequest_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StatusDefaultTypeInternal _Status_default_instance_; +PROTOBUF_CONSTEXPR IsMovingRequest::IsMovingRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct IsMovingRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR IsMovingRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~IsMovingRequestDefaultTypeInternal() {} + union { + IsMovingRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IsMovingRequestDefaultTypeInternal _IsMovingRequest_default_instance_; +PROTOBUF_CONSTEXPR IsMovingResponse::IsMovingResponse( + ::_pbi::ConstantInitialized) + : is_moving_(false){} +struct IsMovingResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR IsMovingResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~IsMovingResponseDefaultTypeInternal() {} + union { + IsMovingResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IsMovingResponseDefaultTypeInternal _IsMovingResponse_default_instance_; } // namespace v1 } // namespace servo } // namespace component } // namespace viam static ::_pb::Metadata file_level_metadata_component_2fservo_2fv1_2fservo_2eproto[9]; -static constexpr const ::_pb::EnumDescriptor** - file_level_enum_descriptors_component_2fservo_2fv1_2fservo_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_component_2fservo_2fv1_2fservo_2eproto = nullptr; -const ::uint32_t TableStruct_component_2fservo_2fv1_2fservo_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::MoveRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::MoveRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::MoveRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::MoveRequest, _impl_.angle_deg_), - PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::MoveRequest, _impl_.extra_), - ~0u, - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::MoveResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::GetPositionRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::GetPositionRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::GetPositionRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::GetPositionRequest, _impl_.extra_), - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::GetPositionResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::GetPositionResponse, _impl_.position_deg_), - PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::StopRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::StopRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::StopRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::StopRequest, _impl_.extra_), - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::StopResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::Status, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::Status, _impl_.position_deg_), - PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::Status, _impl_.is_moving_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::IsMovingRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::IsMovingRequest, _impl_.name_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::IsMovingResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::IsMovingResponse, _impl_.is_moving_), +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_component_2fservo_2fv1_2fservo_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_component_2fservo_2fv1_2fservo_2eproto = nullptr; + +const uint32_t TableStruct_component_2fservo_2fv1_2fservo_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::MoveRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::MoveRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::MoveRequest, angle_deg_), + PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::MoveRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::MoveResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::GetPositionRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::GetPositionRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::GetPositionRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::GetPositionResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::GetPositionResponse, position_deg_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::StopRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::StopRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::StopRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::StopResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::Status, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::Status, position_deg_), + PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::Status, is_moving_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::IsMovingRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::IsMovingRequest, name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::IsMovingResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::servo::v1::IsMovingResponse, is_moving_), }; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, 11, -1, sizeof(::viam::component::servo::v1::MoveRequest)}, - {14, -1, -1, sizeof(::viam::component::servo::v1::MoveResponse)}, - {22, 32, -1, sizeof(::viam::component::servo::v1::GetPositionRequest)}, - {34, -1, -1, sizeof(::viam::component::servo::v1::GetPositionResponse)}, - {43, 53, -1, sizeof(::viam::component::servo::v1::StopRequest)}, - {55, -1, -1, sizeof(::viam::component::servo::v1::StopResponse)}, - {63, -1, -1, sizeof(::viam::component::servo::v1::Status)}, - {73, -1, -1, sizeof(::viam::component::servo::v1::IsMovingRequest)}, - {82, -1, -1, sizeof(::viam::component::servo::v1::IsMovingResponse)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::component::servo::v1::MoveRequest)}, + { 9, -1, -1, sizeof(::viam::component::servo::v1::MoveResponse)}, + { 15, -1, -1, sizeof(::viam::component::servo::v1::GetPositionRequest)}, + { 23, -1, -1, sizeof(::viam::component::servo::v1::GetPositionResponse)}, + { 30, -1, -1, sizeof(::viam::component::servo::v1::StopRequest)}, + { 38, -1, -1, sizeof(::viam::component::servo::v1::StopResponse)}, + { 44, -1, -1, sizeof(::viam::component::servo::v1::Status)}, + { 52, -1, -1, sizeof(::viam::component::servo::v1::IsMovingRequest)}, + { 59, -1, -1, sizeof(::viam::component::servo::v1::IsMovingResponse)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::viam::component::servo::v1::_MoveRequest_default_instance_._instance, - &::viam::component::servo::v1::_MoveResponse_default_instance_._instance, - &::viam::component::servo::v1::_GetPositionRequest_default_instance_._instance, - &::viam::component::servo::v1::_GetPositionResponse_default_instance_._instance, - &::viam::component::servo::v1::_StopRequest_default_instance_._instance, - &::viam::component::servo::v1::_StopResponse_default_instance_._instance, - &::viam::component::servo::v1::_Status_default_instance_._instance, - &::viam::component::servo::v1::_IsMovingRequest_default_instance_._instance, - &::viam::component::servo::v1::_IsMovingResponse_default_instance_._instance, + &::viam::component::servo::v1::_MoveRequest_default_instance_._instance, + &::viam::component::servo::v1::_MoveResponse_default_instance_._instance, + &::viam::component::servo::v1::_GetPositionRequest_default_instance_._instance, + &::viam::component::servo::v1::_GetPositionResponse_default_instance_._instance, + &::viam::component::servo::v1::_StopRequest_default_instance_._instance, + &::viam::component::servo::v1::_StopResponse_default_instance_._instance, + &::viam::component::servo::v1::_Status_default_instance_._instance, + &::viam::component::servo::v1::_IsMovingRequest_default_instance_._instance, + &::viam::component::servo::v1::_IsMovingResponse_default_instance_._instance, }; -const char descriptor_table_protodef_component_2fservo_2fv1_2fservo_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n\036component/servo/v1/servo.proto\022\027viam.c" - "omponent.servo.v1\032\026common/v1/common.prot" - "o\032\034google/api/annotations.proto\032\034google/" - "protobuf/struct.proto\"m\n\013MoveRequest\022\022\n\004" - "name\030\001 \001(\tR\004name\022\033\n\tangle_deg\030\002 \001(\rR\010ang" - "leDeg\022-\n\005extra\030c \001(\0132\027.google.protobuf.S" - "tructR\005extra\"\016\n\014MoveResponse\"W\n\022GetPosit" - "ionRequest\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005extra\030" - "c \001(\0132\027.google.protobuf.StructR\005extra\"8\n" - "\023GetPositionResponse\022!\n\014position_deg\030\001 \001" - "(\rR\013positionDeg\"P\n\013StopRequest\022\022\n\004name\030\001" - " \001(\tR\004name\022-\n\005extra\030c \001(\0132\027.google.proto" - "buf.StructR\005extra\"\016\n\014StopResponse\"H\n\006Sta" - "tus\022!\n\014position_deg\030\001 \001(\rR\013positionDeg\022\033" - "\n\tis_moving\030\002 \001(\010R\010isMoving\"%\n\017IsMovingR" - "equest\022\022\n\004name\030\001 \001(\tR\004name\"/\n\020IsMovingRe" - "sponse\022\033\n\tis_moving\030\001 \001(\010R\010isMoving2\376\006\n\014" - "ServoService\022\211\001\n\004Move\022$.viam.component.s" - "ervo.v1.MoveRequest\032%.viam.component.ser" - "vo.v1.MoveResponse\"4\240\222)\001\202\323\344\223\002*\032(/viam/ap" - "i/v1/component/servo/{name}/move\022\236\001\n\013Get" - "Position\022+.viam.component.servo.v1.GetPo" - "sitionRequest\032,.viam.component.servo.v1." - "GetPositionResponse\"4\202\323\344\223\002.\022,/viam/api/v" - "1/component/servo/{name}/position\022\205\001\n\004St" - "op\022$.viam.component.servo.v1.StopRequest" - "\032%.viam.component.servo.v1.StopResponse\"" - "0\202\323\344\223\002*\"(/viam/api/v1/component/servo/{n" - "ame}/stop\022\226\001\n\010IsMoving\022(.viam.component." - "servo.v1.IsMovingRequest\032).viam.componen" - "t.servo.v1.IsMovingResponse\"5\202\323\344\223\002/\022-/vi" - "am/api/v1/component/servo/{name}/is_movi" - "ng\022\210\001\n\tDoCommand\022 .viam.common.v1.DoComm" - "andRequest\032!.viam.common.v1.DoCommandRes" - "ponse\"6\202\323\344\223\0020\"./viam/api/v1/component/se" - "rvo/{name}/do_command\022\224\001\n\rGetGeometries\022" - "$.viam.common.v1.GetGeometriesRequest\032%." - "viam.common.v1.GetGeometriesResponse\"6\202\323" - "\344\223\0020\022./viam/api/v1/component/servo/{name" - "}/geometriesB\314\001\n\033com.viam.component.serv" - "o.v1B\nServoProtoP\001Z\"go.viam.com/api/comp" - "onent/servo/v1\242\002\003VCS\252\002\027Viam.Component.Se" - "rvo.V1\312\002\027Viam\\Component\\Servo\\V1\342\002#Viam\\" - "Component\\Servo\\V1\\GPBMetadata\352\002\032Viam::C" - "omponent::Servo::V1b\006proto3" -}; -static const ::_pbi::DescriptorTable* const descriptor_table_component_2fservo_2fv1_2fservo_2eproto_deps[3] = - { - &::descriptor_table_common_2fv1_2fcommon_2eproto, - &::descriptor_table_google_2fapi_2fannotations_2eproto, - &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, + +const char descriptor_table_protodef_component_2fservo_2fv1_2fservo_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\036component/servo/v1/servo.proto\022\027viam.c" + "omponent.servo.v1\032\026common/v1/common.prot" + "o\032\034google/api/annotations.proto\032\034google/" + "protobuf/struct.proto\"m\n\013MoveRequest\022\022\n\004" + "name\030\001 \001(\tR\004name\022\033\n\tangle_deg\030\002 \001(\rR\010ang" + "leDeg\022-\n\005extra\030c \001(\0132\027.google.protobuf.S" + "tructR\005extra\"\016\n\014MoveResponse\"W\n\022GetPosit" + "ionRequest\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005extra\030" + "c \001(\0132\027.google.protobuf.StructR\005extra\"8\n" + "\023GetPositionResponse\022!\n\014position_deg\030\001 \001" + "(\rR\013positionDeg\"P\n\013StopRequest\022\022\n\004name\030\001" + " \001(\tR\004name\022-\n\005extra\030c \001(\0132\027.google.proto" + "buf.StructR\005extra\"\016\n\014StopResponse\"H\n\006Sta" + "tus\022!\n\014position_deg\030\001 \001(\rR\013positionDeg\022\033" + "\n\tis_moving\030\002 \001(\010R\010isMoving\"%\n\017IsMovingR" + "equest\022\022\n\004name\030\001 \001(\tR\004name\"/\n\020IsMovingRe" + "sponse\022\033\n\tis_moving\030\001 \001(\010R\010isMoving2\376\006\n\014" + "ServoService\022\211\001\n\004Move\022$.viam.component.s" + "ervo.v1.MoveRequest\032%.viam.component.ser" + "vo.v1.MoveResponse\"4\240\222)\001\202\323\344\223\002*\032(/viam/ap" + "i/v1/component/servo/{name}/move\022\236\001\n\013Get" + "Position\022+.viam.component.servo.v1.GetPo" + "sitionRequest\032,.viam.component.servo.v1." + "GetPositionResponse\"4\202\323\344\223\002.\022,/viam/api/v" + "1/component/servo/{name}/position\022\205\001\n\004St" + "op\022$.viam.component.servo.v1.StopRequest" + "\032%.viam.component.servo.v1.StopResponse\"" + "0\202\323\344\223\002*\"(/viam/api/v1/component/servo/{n" + "ame}/stop\022\226\001\n\010IsMoving\022(.viam.component." + "servo.v1.IsMovingRequest\032).viam.componen" + "t.servo.v1.IsMovingResponse\"5\202\323\344\223\002/\022-/vi" + "am/api/v1/component/servo/{name}/is_movi" + "ng\022\210\001\n\tDoCommand\022 .viam.common.v1.DoComm" + "andRequest\032!.viam.common.v1.DoCommandRes" + "ponse\"6\202\323\344\223\0020\"./viam/api/v1/component/se" + "rvo/{name}/do_command\022\224\001\n\rGetGeometries\022" + "$.viam.common.v1.GetGeometriesRequest\032%." + "viam.common.v1.GetGeometriesResponse\"6\202\323" + "\344\223\0020\022./viam/api/v1/component/servo/{name" + "}/geometriesBA\n\033com.viam.component.servo" + ".v1Z\"go.viam.com/api/component/servo/v1b" + "\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_component_2fservo_2fv1_2fservo_2eproto_deps[3] = { + &::descriptor_table_common_2fv1_2fcommon_2eproto, + &::descriptor_table_google_2fapi_2fannotations_2eproto, + &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, }; -static ::absl::once_flag descriptor_table_component_2fservo_2fv1_2fservo_2eproto_once; +static ::_pbi::once_flag descriptor_table_component_2fservo_2fv1_2fservo_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_component_2fservo_2fv1_2fservo_2eproto = { - false, - false, - 1787, - descriptor_table_protodef_component_2fservo_2fv1_2fservo_2eproto, + false, false, 1647, descriptor_table_protodef_component_2fservo_2fv1_2fservo_2eproto, "component/servo/v1/servo.proto", - &descriptor_table_component_2fservo_2fv1_2fservo_2eproto_once, - descriptor_table_component_2fservo_2fv1_2fservo_2eproto_deps, - 3, - 9, - schemas, - file_default_instances, - TableStruct_component_2fservo_2fv1_2fservo_2eproto::offsets, - file_level_metadata_component_2fservo_2fv1_2fservo_2eproto, - file_level_enum_descriptors_component_2fservo_2fv1_2fservo_2eproto, + &descriptor_table_component_2fservo_2fv1_2fservo_2eproto_once, descriptor_table_component_2fservo_2fv1_2fservo_2eproto_deps, 3, 9, + schemas, file_default_instances, TableStruct_component_2fservo_2fv1_2fservo_2eproto::offsets, + file_level_metadata_component_2fservo_2fv1_2fservo_2eproto, file_level_enum_descriptors_component_2fservo_2fv1_2fservo_2eproto, file_level_service_descriptors_component_2fservo_2fv1_2fservo_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_component_2fservo_2fv1_2fservo_2eproto_getter() { return &descriptor_table_component_2fservo_2fv1_2fservo_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_component_2fservo_2fv1_2fservo_2eproto(&descriptor_table_component_2fservo_2fv1_2fservo_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_component_2fservo_2fv1_2fservo_2eproto(&descriptor_table_component_2fservo_2fv1_2fservo_2eproto); namespace viam { namespace component { namespace servo { namespace v1 { + // =================================================================== class MoveRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(MoveRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const MoveRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const MoveRequest* msg); }; -const ::google::protobuf::Struct& MoveRequest::_Internal::extra(const MoveRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +MoveRequest::_Internal::extra(const MoveRequest* msg) { + return *msg->extra_; } void MoveRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -MoveRequest::MoveRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +MoveRequest::MoveRequest(::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.servo.v1.MoveRequest) } -inline PROTOBUF_NDEBUG_INLINE MoveRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -MoveRequest::MoveRequest( - ::google::protobuf::Arena* arena, - const MoveRequest& from) - : ::google::protobuf::Message(arena) { - MoveRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - _impl_.angle_deg_ = from._impl_.angle_deg_; - +MoveRequest::MoveRequest(const MoveRequest& 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; + } + angle_deg_ = from.angle_deg_; // @@protoc_insertion_point(copy_constructor:viam.component.servo.v1.MoveRequest) } -inline PROTOBUF_NDEBUG_INLINE MoveRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} - -inline void MoveRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, extra_), - 0, - offsetof(Impl_, angle_deg_) - - offsetof(Impl_, extra_) + - sizeof(Impl_::angle_deg_)); + +inline void MoveRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&extra_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&angle_deg_) - + reinterpret_cast(&extra_)) + sizeof(angle_deg_)); } + MoveRequest::~MoveRequest() { // @@protoc_insertion_point(destructor:viam.component.servo.v1.MoveRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void MoveRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void MoveRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void MoveRequest::Clear() { +void MoveRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.servo.v1.MoveRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; } - _impl_.angle_deg_ = 0u; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* MoveRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + extra_ = nullptr; + angle_deg_ = 0u; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* MoveRequest::_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.servo.v1.MoveRequest.name")); + } else + goto handle_unusual; + continue; + // uint32 angle_deg = 2 [json_name = "angleDeg"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + angle_deg_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 1, 48, 7> MoveRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(MoveRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_MoveRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(MoveRequest, _impl_.name_)}}, - // uint32 angle_deg = 2 [json_name = "angleDeg"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MoveRequest, _impl_.angle_deg_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(MoveRequest, _impl_.angle_deg_)}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(MoveRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 2, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(MoveRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // uint32 angle_deg = 2 [json_name = "angleDeg"]; - {PROTOBUF_FIELD_OFFSET(MoveRequest, _impl_.angle_deg_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(MoveRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\43\4\0\0\0\0\0\0" - "viam.component.servo.v1.MoveRequest" - "name" - }}, -}; - -::uint8_t* MoveRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* MoveRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.servo.v1.MoveRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.servo.v1.MoveRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.servo.v1.MoveRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // uint32 angle_deg = 2 [json_name = "angleDeg"]; if (this->_internal_angle_deg() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 2, this->_internal_angle_deg(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_angle_deg(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.servo.v1.MoveRequest) return target; } -::size_t MoveRequest::ByteSizeLong() const { +size_t MoveRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.servo.v1.MoveRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } // uint32 angle_deg = 2 [json_name = "angleDeg"]; if (this->_internal_angle_deg() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_angle_deg()); + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_angle_deg()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData MoveRequest::_class_data_ = { - MoveRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + MoveRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* MoveRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MoveRequest::GetClassData() const { return &_class_data_; } + +void MoveRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void MoveRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.servo.v1.MoveRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void MoveRequest::MergeFrom(const MoveRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.servo.v1.MoveRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } if (from._internal_angle_deg() != 0) { - _this->_internal_set_angle_deg(from._internal_angle_deg()); + _internal_set_angle_deg(from._internal_angle_deg()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MoveRequest::CopyFrom(const MoveRequest& from) { @@ -670,52 +552,47 @@ void MoveRequest::CopyFrom(const MoveRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool MoveRequest::IsInitialized() const { +bool MoveRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* MoveRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void MoveRequest::InternalSwap(MoveRequest* PROTOBUF_RESTRICT other) { +void MoveRequest::InternalSwap(MoveRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(MoveRequest, _impl_.angle_deg_) - + sizeof(MoveRequest::_impl_.angle_deg_) - - PROTOBUF_FIELD_OFFSET(MoveRequest, _impl_.extra_)>( - reinterpret_cast(&_impl_.extra_), - reinterpret_cast(&other->_impl_.extra_)); -} - -::google::protobuf::Metadata MoveRequest::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(MoveRequest, angle_deg_) + + sizeof(MoveRequest::angle_deg_) + - PROTOBUF_FIELD_OFFSET(MoveRequest, extra_)>( + reinterpret_cast(&extra_), + reinterpret_cast(&other->extra_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata MoveRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fservo_2fv1_2fservo_2eproto_getter, &descriptor_table_component_2fservo_2fv1_2fservo_2eproto_once, file_level_metadata_component_2fservo_2fv1_2fservo_2eproto[0]); } + // =================================================================== class MoveResponse::_Internal { public: }; -MoveResponse::MoveResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +MoveResponse::MoveResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.component.servo.v1.MoveResponse) } -MoveResponse::MoveResponse( - ::google::protobuf::Arena* arena, - const MoveResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - MoveResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +MoveResponse::MoveResponse(const MoveResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.component.servo.v1.MoveResponse) } @@ -723,233 +600,236 @@ MoveResponse::MoveResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MoveResponse::GetClassData() const { return &_class_data_; } + + -::google::protobuf::Metadata MoveResponse::GetMetadata() const { + +::PROTOBUF_NAMESPACE_ID::Metadata MoveResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fservo_2fv1_2fservo_2eproto_getter, &descriptor_table_component_2fservo_2fv1_2fservo_2eproto_once, file_level_metadata_component_2fservo_2fv1_2fservo_2eproto[1]); } + // =================================================================== class GetPositionRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetPositionRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const GetPositionRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetPositionRequest* msg); }; -const ::google::protobuf::Struct& GetPositionRequest::_Internal::extra(const GetPositionRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetPositionRequest::_Internal::extra(const GetPositionRequest* msg) { + return *msg->extra_; } void GetPositionRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -GetPositionRequest::GetPositionRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetPositionRequest::GetPositionRequest(::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.servo.v1.GetPositionRequest) } -inline PROTOBUF_NDEBUG_INLINE GetPositionRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -GetPositionRequest::GetPositionRequest( - ::google::protobuf::Arena* arena, - const GetPositionRequest& from) - : ::google::protobuf::Message(arena) { - GetPositionRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +GetPositionRequest::GetPositionRequest(const GetPositionRequest& 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.servo.v1.GetPositionRequest) } -inline PROTOBUF_NDEBUG_INLINE GetPositionRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} -inline void GetPositionRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void GetPositionRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + GetPositionRequest::~GetPositionRequest() { // @@protoc_insertion_point(destructor:viam.component.servo.v1.GetPositionRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetPositionRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void GetPositionRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetPositionRequest::Clear() { +void GetPositionRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.servo.v1.GetPositionRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetPositionRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPositionRequest::_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.servo.v1.GetPositionRequest.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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 2, 1, 55, 7> GetPositionRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetPositionRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetPositionRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetPositionRequest, _impl_.name_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(GetPositionRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 1, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(GetPositionRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(GetPositionRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\52\4\0\0\0\0\0\0" - "viam.component.servo.v1.GetPositionRequest" - "name" - }}, -}; - -::uint8_t* GetPositionRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetPositionRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.servo.v1.GetPositionRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.servo.v1.GetPositionRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.servo.v1.GetPositionRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.servo.v1.GetPositionRequest) return target; } -::size_t GetPositionRequest::ByteSizeLong() const { +size_t GetPositionRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.servo.v1.GetPositionRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetPositionRequest::_class_data_ = { - GetPositionRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPositionRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetPositionRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetPositionRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPositionRequest::GetClassData() const { return &_class_data_; } + +void GetPositionRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetPositionRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.servo.v1.GetPositionRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetPositionRequest::MergeFrom(const GetPositionRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.servo.v1.GetPositionRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetPositionRequest::CopyFrom(const GetPositionRequest& from) { @@ -959,171 +839,174 @@ void GetPositionRequest::CopyFrom(const GetPositionRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetPositionRequest::IsInitialized() const { +bool GetPositionRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetPositionRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetPositionRequest::InternalSwap(GetPositionRequest* PROTOBUF_RESTRICT other) { +void GetPositionRequest::InternalSwap(GetPositionRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.extra_, other->_impl_.extra_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(extra_, other->extra_); } -::google::protobuf::Metadata GetPositionRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetPositionRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fservo_2fv1_2fservo_2eproto_getter, &descriptor_table_component_2fservo_2fv1_2fservo_2eproto_once, file_level_metadata_component_2fservo_2fv1_2fservo_2eproto[2]); } + // =================================================================== class GetPositionResponse::_Internal { public: }; -GetPositionResponse::GetPositionResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetPositionResponse::GetPositionResponse(::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.servo.v1.GetPositionResponse) } -GetPositionResponse::GetPositionResponse( - ::google::protobuf::Arena* arena, const GetPositionResponse& from) - : GetPositionResponse(arena) { - MergeFrom(from); +GetPositionResponse::GetPositionResponse(const GetPositionResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + position_deg_ = from.position_deg_; + // @@protoc_insertion_point(copy_constructor:viam.component.servo.v1.GetPositionResponse) } -inline PROTOBUF_NDEBUG_INLINE GetPositionResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void GetPositionResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.position_deg_ = {}; +inline void GetPositionResponse::SharedCtor() { +position_deg_ = 0u; } + GetPositionResponse::~GetPositionResponse() { // @@protoc_insertion_point(destructor:viam.component.servo.v1.GetPositionResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetPositionResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void GetPositionResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetPositionResponse::Clear() { +void GetPositionResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.servo.v1.GetPositionResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.position_deg_ = 0u; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetPositionResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + position_deg_ = 0u; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPositionResponse::_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) { + // uint32 position_deg = 1 [json_name = "positionDeg"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + position_deg_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> GetPositionResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetPositionResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // uint32 position_deg = 1 [json_name = "positionDeg"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(GetPositionResponse, _impl_.position_deg_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(GetPositionResponse, _impl_.position_deg_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // uint32 position_deg = 1 [json_name = "positionDeg"]; - {PROTOBUF_FIELD_OFFSET(GetPositionResponse, _impl_.position_deg_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* GetPositionResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetPositionResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.servo.v1.GetPositionResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // uint32 position_deg = 1 [json_name = "positionDeg"]; if (this->_internal_position_deg() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 1, this->_internal_position_deg(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_position_deg(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.servo.v1.GetPositionResponse) return target; } -::size_t GetPositionResponse::ByteSizeLong() const { +size_t GetPositionResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.servo.v1.GetPositionResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // uint32 position_deg = 1 [json_name = "positionDeg"]; if (this->_internal_position_deg() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_position_deg()); + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_position_deg()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetPositionResponse::_class_data_ = { - GetPositionResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPositionResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetPositionResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetPositionResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPositionResponse::GetClassData() const { return &_class_data_; } + +void GetPositionResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetPositionResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.servo.v1.GetPositionResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetPositionResponse::MergeFrom(const GetPositionResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.servo.v1.GetPositionResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_position_deg() != 0) { - _this->_internal_set_position_deg(from._internal_position_deg()); + _internal_set_position_deg(from._internal_position_deg()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetPositionResponse::CopyFrom(const GetPositionResponse& from) { @@ -1133,242 +1016,234 @@ void GetPositionResponse::CopyFrom(const GetPositionResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetPositionResponse::IsInitialized() const { +bool GetPositionResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetPositionResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetPositionResponse::InternalSwap(GetPositionResponse* PROTOBUF_RESTRICT other) { +void GetPositionResponse::InternalSwap(GetPositionResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.position_deg_, other->_impl_.position_deg_); + swap(position_deg_, other->position_deg_); } -::google::protobuf::Metadata GetPositionResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetPositionResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fservo_2fv1_2fservo_2eproto_getter, &descriptor_table_component_2fservo_2fv1_2fservo_2eproto_once, file_level_metadata_component_2fservo_2fv1_2fservo_2eproto[3]); } + // =================================================================== class StopRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(StopRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const StopRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const StopRequest* msg); }; -const ::google::protobuf::Struct& StopRequest::_Internal::extra(const StopRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +StopRequest::_Internal::extra(const StopRequest* msg) { + return *msg->extra_; } void StopRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -StopRequest::StopRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +StopRequest::StopRequest(::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.servo.v1.StopRequest) } -inline PROTOBUF_NDEBUG_INLINE StopRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -StopRequest::StopRequest( - ::google::protobuf::Arena* arena, - const StopRequest& from) - : ::google::protobuf::Message(arena) { - StopRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +StopRequest::StopRequest(const StopRequest& 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.servo.v1.StopRequest) } -inline PROTOBUF_NDEBUG_INLINE StopRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} -inline void StopRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void StopRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + StopRequest::~StopRequest() { // @@protoc_insertion_point(destructor:viam.component.servo.v1.StopRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void StopRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void StopRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void StopRequest::Clear() { +void StopRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.servo.v1.StopRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* StopRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* StopRequest::_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.servo.v1.StopRequest.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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 2, 1, 48, 7> StopRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(StopRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_StopRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(StopRequest, _impl_.name_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(StopRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 1, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(StopRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(StopRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\43\4\0\0\0\0\0\0" - "viam.component.servo.v1.StopRequest" - "name" - }}, -}; - -::uint8_t* StopRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* StopRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.servo.v1.StopRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.servo.v1.StopRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.servo.v1.StopRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.servo.v1.StopRequest) return target; } -::size_t StopRequest::ByteSizeLong() const { +size_t StopRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.servo.v1.StopRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData StopRequest::_class_data_ = { - StopRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StopRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + StopRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* StopRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StopRequest::GetClassData() const { return &_class_data_; } + +void StopRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void StopRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.servo.v1.StopRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void StopRequest::MergeFrom(const StopRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.servo.v1.StopRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void StopRequest::CopyFrom(const StopRequest& from) { @@ -1378,47 +1253,42 @@ void StopRequest::CopyFrom(const StopRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool StopRequest::IsInitialized() const { +bool StopRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* StopRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void StopRequest::InternalSwap(StopRequest* PROTOBUF_RESTRICT other) { +void StopRequest::InternalSwap(StopRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.extra_, other->_impl_.extra_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(extra_, other->extra_); } -::google::protobuf::Metadata StopRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata StopRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fservo_2fv1_2fservo_2eproto_getter, &descriptor_table_component_2fservo_2fv1_2fservo_2eproto_once, file_level_metadata_component_2fservo_2fv1_2fservo_2eproto[4]); } + // =================================================================== class StopResponse::_Internal { public: }; -StopResponse::StopResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +StopResponse::StopResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.component.servo.v1.StopResponse) } -StopResponse::StopResponse( - ::google::protobuf::Arena* arena, - const StopResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - StopResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +StopResponse::StopResponse(const StopResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.component.servo.v1.StopResponse) } @@ -1426,186 +1296,199 @@ StopResponse::StopResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StopResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StopResponse::GetClassData() const { return &_class_data_; } + + + -::google::protobuf::Metadata StopResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata StopResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fservo_2fv1_2fservo_2eproto_getter, &descriptor_table_component_2fservo_2fv1_2fservo_2eproto_once, file_level_metadata_component_2fservo_2fv1_2fservo_2eproto[5]); } + // =================================================================== class Status::_Internal { public: }; -Status::Status(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Status::Status(::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.servo.v1.Status) } -Status::Status( - ::google::protobuf::Arena* arena, const Status& from) - : Status(arena) { - MergeFrom(from); +Status::Status(const Status& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&position_deg_, &from.position_deg_, + static_cast(reinterpret_cast(&is_moving_) - + reinterpret_cast(&position_deg_)) + sizeof(is_moving_)); + // @@protoc_insertion_point(copy_constructor:viam.component.servo.v1.Status) } -inline PROTOBUF_NDEBUG_INLINE Status::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void Status::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, position_deg_), - 0, - offsetof(Impl_, is_moving_) - - offsetof(Impl_, position_deg_) + - sizeof(Impl_::is_moving_)); +inline void Status::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&position_deg_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&is_moving_) - + reinterpret_cast(&position_deg_)) + sizeof(is_moving_)); } + Status::~Status() { // @@protoc_insertion_point(destructor:viam.component.servo.v1.Status) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Status::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void Status::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void Status::Clear() { +void Status::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.servo.v1.Status) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&_impl_.position_deg_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.is_moving_) - - reinterpret_cast(&_impl_.position_deg_)) + sizeof(_impl_.is_moving_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Status::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + ::memset(&position_deg_, 0, static_cast( + reinterpret_cast(&is_moving_) - + reinterpret_cast(&position_deg_)) + sizeof(is_moving_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Status::_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) { + // uint32 position_deg = 1 [json_name = "positionDeg"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + position_deg_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool is_moving = 2 [json_name = "isMoving"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + is_moving_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> Status::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_Status_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // bool is_moving = 2 [json_name = "isMoving"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(Status, _impl_.is_moving_)}}, - // uint32 position_deg = 1 [json_name = "positionDeg"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Status, _impl_.position_deg_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(Status, _impl_.position_deg_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // uint32 position_deg = 1 [json_name = "positionDeg"]; - {PROTOBUF_FIELD_OFFSET(Status, _impl_.position_deg_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, - // bool is_moving = 2 [json_name = "isMoving"]; - {PROTOBUF_FIELD_OFFSET(Status, _impl_.is_moving_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* Status::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Status::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.servo.v1.Status) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // uint32 position_deg = 1 [json_name = "positionDeg"]; if (this->_internal_position_deg() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 1, this->_internal_position_deg(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_position_deg(), target); } // bool is_moving = 2 [json_name = "isMoving"]; if (this->_internal_is_moving() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 2, this->_internal_is_moving(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_is_moving(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.servo.v1.Status) return target; } -::size_t Status::ByteSizeLong() const { +size_t Status::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.servo.v1.Status) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // uint32 position_deg = 1 [json_name = "positionDeg"]; if (this->_internal_position_deg() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_position_deg()); + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_position_deg()); } // bool is_moving = 2 [json_name = "isMoving"]; if (this->_internal_is_moving() != 0) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Status::_class_data_ = { - Status::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Status::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Status::MergeImpl }; -const ::google::protobuf::Message::ClassData* Status::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Status::GetClassData() const { return &_class_data_; } + +void Status::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Status::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.servo.v1.Status) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Status::MergeFrom(const Status& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.servo.v1.Status) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_position_deg() != 0) { - _this->_internal_set_position_deg(from._internal_position_deg()); + _internal_set_position_deg(from._internal_position_deg()); } if (from._internal_is_moving() != 0) { - _this->_internal_set_is_moving(from._internal_is_moving()); + _internal_set_is_moving(from._internal_is_moving()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Status::CopyFrom(const Status& from) { @@ -1615,190 +1498,192 @@ void Status::CopyFrom(const Status& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Status::IsInitialized() const { +bool Status::IsInitialized() const { return true; } -::_pbi::CachedSize* Status::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Status::InternalSwap(Status* PROTOBUF_RESTRICT other) { +void Status::InternalSwap(Status* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(Status, _impl_.is_moving_) - + sizeof(Status::_impl_.is_moving_) - - PROTOBUF_FIELD_OFFSET(Status, _impl_.position_deg_)>( - reinterpret_cast(&_impl_.position_deg_), - reinterpret_cast(&other->_impl_.position_deg_)); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Status, is_moving_) + + sizeof(Status::is_moving_) + - PROTOBUF_FIELD_OFFSET(Status, position_deg_)>( + reinterpret_cast(&position_deg_), + reinterpret_cast(&other->position_deg_)); } -::google::protobuf::Metadata Status::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Status::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fservo_2fv1_2fservo_2eproto_getter, &descriptor_table_component_2fservo_2fv1_2fservo_2eproto_once, file_level_metadata_component_2fservo_2fv1_2fservo_2eproto[6]); } + // =================================================================== class IsMovingRequest::_Internal { public: }; -IsMovingRequest::IsMovingRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +IsMovingRequest::IsMovingRequest(::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.servo.v1.IsMovingRequest) } -inline PROTOBUF_NDEBUG_INLINE IsMovingRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : name_(arena, from.name_), - _cached_size_{0} {} - -IsMovingRequest::IsMovingRequest( - ::google::protobuf::Arena* arena, - const IsMovingRequest& from) - : ::google::protobuf::Message(arena) { - IsMovingRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +IsMovingRequest::IsMovingRequest(const IsMovingRequest& 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()); + } // @@protoc_insertion_point(copy_constructor:viam.component.servo.v1.IsMovingRequest) } -inline PROTOBUF_NDEBUG_INLINE IsMovingRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : name_(arena), - _cached_size_{0} {} -inline void IsMovingRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void IsMovingRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + IsMovingRequest::~IsMovingRequest() { // @@protoc_insertion_point(destructor:viam.component.servo.v1.IsMovingRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void IsMovingRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); +} + +void IsMovingRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void IsMovingRequest::Clear() { +void IsMovingRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.servo.v1.IsMovingRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* IsMovingRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* IsMovingRequest::_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.servo.v1.IsMovingRequest.name")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 52, 2> IsMovingRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_IsMovingRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(IsMovingRequest, _impl_.name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(IsMovingRequest, _impl_.name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\47\4\0\0\0\0\0\0" - "viam.component.servo.v1.IsMovingRequest" - "name" - }}, -}; - -::uint8_t* IsMovingRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* IsMovingRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.servo.v1.IsMovingRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.servo.v1.IsMovingRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.servo.v1.IsMovingRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.servo.v1.IsMovingRequest) return target; } -::size_t IsMovingRequest::ByteSizeLong() const { +size_t IsMovingRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.servo.v1.IsMovingRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData IsMovingRequest::_class_data_ = { - IsMovingRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData IsMovingRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + IsMovingRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* IsMovingRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*IsMovingRequest::GetClassData() const { return &_class_data_; } + +void IsMovingRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void IsMovingRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.servo.v1.IsMovingRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void IsMovingRequest::MergeFrom(const IsMovingRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.servo.v1.IsMovingRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void IsMovingRequest::CopyFrom(const IsMovingRequest& from) { @@ -1808,168 +1693,173 @@ void IsMovingRequest::CopyFrom(const IsMovingRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool IsMovingRequest::IsInitialized() const { +bool IsMovingRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* IsMovingRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void IsMovingRequest::InternalSwap(IsMovingRequest* PROTOBUF_RESTRICT other) { +void IsMovingRequest::InternalSwap(IsMovingRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); } -::google::protobuf::Metadata IsMovingRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata IsMovingRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fservo_2fv1_2fservo_2eproto_getter, &descriptor_table_component_2fservo_2fv1_2fservo_2eproto_once, file_level_metadata_component_2fservo_2fv1_2fservo_2eproto[7]); } + // =================================================================== class IsMovingResponse::_Internal { public: }; -IsMovingResponse::IsMovingResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +IsMovingResponse::IsMovingResponse(::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.servo.v1.IsMovingResponse) } -IsMovingResponse::IsMovingResponse( - ::google::protobuf::Arena* arena, const IsMovingResponse& from) - : IsMovingResponse(arena) { - MergeFrom(from); +IsMovingResponse::IsMovingResponse(const IsMovingResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + is_moving_ = from.is_moving_; + // @@protoc_insertion_point(copy_constructor:viam.component.servo.v1.IsMovingResponse) } -inline PROTOBUF_NDEBUG_INLINE IsMovingResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void IsMovingResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.is_moving_ = {}; +inline void IsMovingResponse::SharedCtor() { +is_moving_ = false; } + IsMovingResponse::~IsMovingResponse() { // @@protoc_insertion_point(destructor:viam.component.servo.v1.IsMovingResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void IsMovingResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void IsMovingResponse::Clear() { +void IsMovingResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void IsMovingResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.servo.v1.IsMovingResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.is_moving_ = false; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* IsMovingResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + is_moving_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* IsMovingResponse::_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) { + // bool is_moving = 1 [json_name = "isMoving"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + is_moving_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> IsMovingResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_IsMovingResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // bool is_moving = 1 [json_name = "isMoving"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(IsMovingResponse, _impl_.is_moving_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bool is_moving = 1 [json_name = "isMoving"]; - {PROTOBUF_FIELD_OFFSET(IsMovingResponse, _impl_.is_moving_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* IsMovingResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* IsMovingResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.servo.v1.IsMovingResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // bool is_moving = 1 [json_name = "isMoving"]; if (this->_internal_is_moving() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 1, this->_internal_is_moving(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_is_moving(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.servo.v1.IsMovingResponse) return target; } -::size_t IsMovingResponse::ByteSizeLong() const { +size_t IsMovingResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.servo.v1.IsMovingResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // bool is_moving = 1 [json_name = "isMoving"]; if (this->_internal_is_moving() != 0) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData IsMovingResponse::_class_data_ = { - IsMovingResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData IsMovingResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + IsMovingResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* IsMovingResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*IsMovingResponse::GetClassData() const { return &_class_data_; } + +void IsMovingResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void IsMovingResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.servo.v1.IsMovingResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void IsMovingResponse::MergeFrom(const IsMovingResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.servo.v1.IsMovingResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_is_moving() != 0) { - _this->_internal_set_is_moving(from._internal_is_moving()); + _internal_set_is_moving(from._internal_is_moving()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void IsMovingResponse::CopyFrom(const IsMovingResponse& from) { @@ -1979,32 +1869,65 @@ void IsMovingResponse::CopyFrom(const IsMovingResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool IsMovingResponse::IsInitialized() const { +bool IsMovingResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* IsMovingResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void IsMovingResponse::InternalSwap(IsMovingResponse* PROTOBUF_RESTRICT other) { +void IsMovingResponse::InternalSwap(IsMovingResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.is_moving_, other->_impl_.is_moving_); + swap(is_moving_, other->is_moving_); } -::google::protobuf::Metadata IsMovingResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata IsMovingResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2fservo_2fv1_2fservo_2eproto_getter, &descriptor_table_component_2fservo_2fv1_2fservo_2eproto_once, file_level_metadata_component_2fservo_2fv1_2fservo_2eproto[8]); } + // @@protoc_insertion_point(namespace_scope) } // namespace v1 } // namespace servo } // namespace component } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::component::servo::v1::MoveRequest* +Arena::CreateMaybeMessage< ::viam::component::servo::v1::MoveRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::servo::v1::MoveRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::servo::v1::MoveResponse* +Arena::CreateMaybeMessage< ::viam::component::servo::v1::MoveResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::servo::v1::MoveResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::servo::v1::GetPositionRequest* +Arena::CreateMaybeMessage< ::viam::component::servo::v1::GetPositionRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::servo::v1::GetPositionRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::servo::v1::GetPositionResponse* +Arena::CreateMaybeMessage< ::viam::component::servo::v1::GetPositionResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::servo::v1::GetPositionResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::servo::v1::StopRequest* +Arena::CreateMaybeMessage< ::viam::component::servo::v1::StopRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::servo::v1::StopRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::servo::v1::StopResponse* +Arena::CreateMaybeMessage< ::viam::component::servo::v1::StopResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::servo::v1::StopResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::servo::v1::Status* +Arena::CreateMaybeMessage< ::viam::component::servo::v1::Status >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::servo::v1::Status >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::servo::v1::IsMovingRequest* +Arena::CreateMaybeMessage< ::viam::component::servo::v1::IsMovingRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::servo::v1::IsMovingRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::servo::v1::IsMovingResponse* +Arena::CreateMaybeMessage< ::viam::component::servo::v1::IsMovingResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::servo::v1::IsMovingResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/component/servo/v1/servo.pb.h b/src/viam/api/component/servo/v1/servo.pb.h index 9c64430e0..7fbb3b69a 100644 --- a/src/viam/api/component/servo/v1/servo.pb.h +++ b/src/viam/api/component/servo/v1/servo.pb.h @@ -1,64 +1,53 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: component/servo/v1/servo.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_component_2fservo_2fv1_2fservo_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_component_2fservo_2fv1_2fservo_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_component_2fservo_2fv1_2fservo_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_component_2fservo_2fv1_2fservo_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_bases.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/unknown_field_set.h" + +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include #include "common/v1/common.pb.h" #include "google/api/annotations.pb.h" -#include "google/protobuf/struct.pb.h" +#include // @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - +#include #define PROTOBUF_INTERNAL_EXPORT_component_2fservo_2fv1_2fservo_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_component_2fservo_2fv1_2fservo_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_component_2fservo_2fv1_2fservo_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_component_2fservo_2fv1_2fservo_2eproto; namespace viam { namespace component { namespace servo { @@ -94,11 +83,17 @@ extern StopResponseDefaultTypeInternal _StopResponse_default_instance_; } // namespace servo } // namespace component } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::component::servo::v1::GetPositionRequest* Arena::CreateMaybeMessage<::viam::component::servo::v1::GetPositionRequest>(Arena*); +template<> ::viam::component::servo::v1::GetPositionResponse* Arena::CreateMaybeMessage<::viam::component::servo::v1::GetPositionResponse>(Arena*); +template<> ::viam::component::servo::v1::IsMovingRequest* Arena::CreateMaybeMessage<::viam::component::servo::v1::IsMovingRequest>(Arena*); +template<> ::viam::component::servo::v1::IsMovingResponse* Arena::CreateMaybeMessage<::viam::component::servo::v1::IsMovingResponse>(Arena*); +template<> ::viam::component::servo::v1::MoveRequest* Arena::CreateMaybeMessage<::viam::component::servo::v1::MoveRequest>(Arena*); +template<> ::viam::component::servo::v1::MoveResponse* Arena::CreateMaybeMessage<::viam::component::servo::v1::MoveResponse>(Arena*); +template<> ::viam::component::servo::v1::Status* Arena::CreateMaybeMessage<::viam::component::servo::v1::Status>(Arena*); +template<> ::viam::component::servo::v1::StopRequest* Arena::CreateMaybeMessage<::viam::component::servo::v1::StopRequest>(Arena*); +template<> ::viam::component::servo::v1::StopResponse* Arena::CreateMaybeMessage<::viam::component::servo::v1::StopResponse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace viam { namespace component { namespace servo { @@ -106,32 +101,28 @@ namespace v1 { // =================================================================== - -// ------------------------------------------------------------------- - -class StopResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.servo.v1.StopResponse) */ { +class MoveRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.servo.v1.MoveRequest) */ { public: - inline StopResponse() : StopResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR StopResponse(::google::protobuf::internal::ConstantInitialized); + inline MoveRequest() : MoveRequest(nullptr) {} + ~MoveRequest() override; + explicit PROTOBUF_CONSTEXPR MoveRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline StopResponse(const StopResponse& from) - : StopResponse(nullptr, from) {} - StopResponse(StopResponse&& from) noexcept - : StopResponse() { + MoveRequest(const MoveRequest& from); + MoveRequest(MoveRequest&& from) noexcept + : MoveRequest() { *this = ::std::move(from); } - inline StopResponse& operator=(const StopResponse& from) { + inline MoveRequest& operator=(const MoveRequest& from) { CopyFrom(from); return *this; } - inline StopResponse& operator=(StopResponse&& from) noexcept { + inline MoveRequest& operator=(MoveRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -141,134 +132,175 @@ class StopResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const StopResponse& default_instance() { + static const MoveRequest& default_instance() { return *internal_default_instance(); } - static inline const StopResponse* internal_default_instance() { - return reinterpret_cast( - &_StopResponse_default_instance_); + static inline const MoveRequest* internal_default_instance() { + return reinterpret_cast( + &_MoveRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 5; + 0; - friend void swap(StopResponse& a, StopResponse& b) { + friend void swap(MoveRequest& a, MoveRequest& b) { a.Swap(&b); } - inline void Swap(StopResponse* other) { + inline void Swap(MoveRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(StopResponse* other) { + void UnsafeArenaSwap(MoveRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - StopResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const StopResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const StopResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + MoveRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MoveRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MoveRequest& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.servo.v1.StopResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoveRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.servo.v1.MoveRequest"; } protected: - explicit StopResponse(::google::protobuf::Arena* arena); - StopResponse(::google::protobuf::Arena* arena, const StopResponse& from); + explicit MoveRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.component.servo.v1.StopResponse) + enum : int { + kNameFieldNumber = 1, + kExtraFieldNumber = 99, + kAngleDegFieldNumber = 2, + }; + // 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(); + + // uint32 angle_deg = 2 [json_name = "angleDeg"]; + void clear_angle_deg(); + uint32_t angle_deg() const; + void set_angle_deg(uint32_t value); + private: + uint32_t _internal_angle_deg() const; + void _internal_set_angle_deg(uint32_t value); + public: + + // @@protoc_insertion_point(class_scope:viam.component.servo.v1.MoveRequest) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + 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_; + uint32_t angle_deg_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fservo_2fv1_2fservo_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Status final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.servo.v1.Status) */ { +class MoveResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.servo.v1.MoveResponse) */ { public: - inline Status() : Status(nullptr) {} - ~Status() override; - template - explicit PROTOBUF_CONSTEXPR Status(::google::protobuf::internal::ConstantInitialized); + inline MoveResponse() : MoveResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR MoveResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Status(const Status& from) - : Status(nullptr, from) {} - Status(Status&& from) noexcept - : Status() { + MoveResponse(const MoveResponse& from); + MoveResponse(MoveResponse&& from) noexcept + : MoveResponse() { *this = ::std::move(from); } - inline Status& operator=(const Status& from) { + inline MoveResponse& operator=(const MoveResponse& from) { CopyFrom(from); return *this; } - inline Status& operator=(Status&& from) noexcept { + inline MoveResponse& operator=(MoveResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -278,183 +310,114 @@ class Status final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Status& default_instance() { + static const MoveResponse& default_instance() { return *internal_default_instance(); } - static inline const Status* internal_default_instance() { - return reinterpret_cast( - &_Status_default_instance_); + static inline const MoveResponse* internal_default_instance() { + return reinterpret_cast( + &_MoveResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 6; + 1; - friend void swap(Status& a, Status& b) { + friend void swap(MoveResponse& a, MoveResponse& b) { a.Swap(&b); } - inline void Swap(Status* other) { + inline void Swap(MoveResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Status* other) { + void UnsafeArenaSwap(MoveResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Status* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + MoveResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Status& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Status& from) { - Status::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const MoveResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const MoveResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(Status* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.servo.v1.Status"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.servo.v1.MoveResponse"; } protected: - explicit Status(::google::protobuf::Arena* arena); - Status(::google::protobuf::Arena* arena, const Status& from); + explicit MoveResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kPositionDegFieldNumber = 1, - kIsMovingFieldNumber = 2, - }; - // uint32 position_deg = 1 [json_name = "positionDeg"]; - void clear_position_deg() ; - ::uint32_t position_deg() const; - void set_position_deg(::uint32_t value); - - private: - ::uint32_t _internal_position_deg() const; - void _internal_set_position_deg(::uint32_t value); - - public: - // bool is_moving = 2 [json_name = "isMoving"]; - void clear_is_moving() ; - bool is_moving() const; - void set_is_moving(bool value); - - private: - bool _internal_is_moving() const; - void _internal_set_is_moving(bool value); - - public: - // @@protoc_insertion_point(class_scope:viam.component.servo.v1.Status) + // @@protoc_insertion_point(class_scope:viam.component.servo.v1.MoveResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::uint32_t position_deg_; - bool is_moving_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_component_2fservo_2fv1_2fservo_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class MoveResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.servo.v1.MoveResponse) */ { +class GetPositionRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.servo.v1.GetPositionRequest) */ { public: - inline MoveResponse() : MoveResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR MoveResponse(::google::protobuf::internal::ConstantInitialized); + inline GetPositionRequest() : GetPositionRequest(nullptr) {} + ~GetPositionRequest() override; + explicit PROTOBUF_CONSTEXPR GetPositionRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline MoveResponse(const MoveResponse& from) - : MoveResponse(nullptr, from) {} - MoveResponse(MoveResponse&& from) noexcept - : MoveResponse() { + GetPositionRequest(const GetPositionRequest& from); + GetPositionRequest(GetPositionRequest&& from) noexcept + : GetPositionRequest() { *this = ::std::move(from); } - inline MoveResponse& operator=(const MoveResponse& from) { + inline GetPositionRequest& operator=(const GetPositionRequest& from) { CopyFrom(from); return *this; } - inline MoveResponse& operator=(MoveResponse&& from) noexcept { + inline GetPositionRequest& operator=(GetPositionRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -464,134 +427,165 @@ class MoveResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MoveResponse& default_instance() { + static const GetPositionRequest& default_instance() { return *internal_default_instance(); } - static inline const MoveResponse* internal_default_instance() { - return reinterpret_cast( - &_MoveResponse_default_instance_); + static inline const GetPositionRequest* internal_default_instance() { + return reinterpret_cast( + &_GetPositionRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 1; + 2; - friend void swap(MoveResponse& a, MoveResponse& b) { + friend void swap(GetPositionRequest& a, GetPositionRequest& b) { a.Swap(&b); } - inline void Swap(MoveResponse* other) { + inline void Swap(GetPositionRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MoveResponse* other) { + void UnsafeArenaSwap(GetPositionRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MoveResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const MoveResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const MoveResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + GetPositionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPositionRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetPositionRequest& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.servo.v1.MoveResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetPositionRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.servo.v1.GetPositionRequest"; } protected: - explicit MoveResponse(::google::protobuf::Arena* arena); - MoveResponse(::google::protobuf::Arena* arena, const MoveResponse& from); + explicit GetPositionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.component.servo.v1.MoveResponse) + 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.servo.v1.GetPositionRequest) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + 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_2fservo_2fv1_2fservo_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class IsMovingResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.servo.v1.IsMovingResponse) */ { +class GetPositionResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.servo.v1.GetPositionResponse) */ { public: - inline IsMovingResponse() : IsMovingResponse(nullptr) {} - ~IsMovingResponse() override; - template - explicit PROTOBUF_CONSTEXPR IsMovingResponse(::google::protobuf::internal::ConstantInitialized); + inline GetPositionResponse() : GetPositionResponse(nullptr) {} + ~GetPositionResponse() override; + explicit PROTOBUF_CONSTEXPR GetPositionResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline IsMovingResponse(const IsMovingResponse& from) - : IsMovingResponse(nullptr, from) {} - IsMovingResponse(IsMovingResponse&& from) noexcept - : IsMovingResponse() { + GetPositionResponse(const GetPositionResponse& from); + GetPositionResponse(GetPositionResponse&& from) noexcept + : GetPositionResponse() { *this = ::std::move(from); } - inline IsMovingResponse& operator=(const IsMovingResponse& from) { + inline GetPositionResponse& operator=(const GetPositionResponse& from) { CopyFrom(from); return *this; } - inline IsMovingResponse& operator=(IsMovingResponse&& from) noexcept { + inline GetPositionResponse& operator=(GetPositionResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -601,172 +595,140 @@ class IsMovingResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const IsMovingResponse& default_instance() { + static const GetPositionResponse& default_instance() { return *internal_default_instance(); } - static inline const IsMovingResponse* internal_default_instance() { - return reinterpret_cast( - &_IsMovingResponse_default_instance_); + static inline const GetPositionResponse* internal_default_instance() { + return reinterpret_cast( + &_GetPositionResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 8; + 3; - friend void swap(IsMovingResponse& a, IsMovingResponse& b) { + friend void swap(GetPositionResponse& a, GetPositionResponse& b) { a.Swap(&b); } - inline void Swap(IsMovingResponse* other) { + inline void Swap(GetPositionResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(IsMovingResponse* other) { + void UnsafeArenaSwap(GetPositionResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - IsMovingResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const IsMovingResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const IsMovingResponse& from) { - IsMovingResponse::MergeImpl(*this, from); + GetPositionResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPositionResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetPositionResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(IsMovingResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetPositionResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.servo.v1.IsMovingResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.servo.v1.GetPositionResponse"; } protected: - explicit IsMovingResponse(::google::protobuf::Arena* arena); - IsMovingResponse(::google::protobuf::Arena* arena, const IsMovingResponse& from); + explicit GetPositionResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kIsMovingFieldNumber = 1, + kPositionDegFieldNumber = 1, }; - // bool is_moving = 1 [json_name = "isMoving"]; - void clear_is_moving() ; - bool is_moving() const; - void set_is_moving(bool value); - + // uint32 position_deg = 1 [json_name = "positionDeg"]; + void clear_position_deg(); + uint32_t position_deg() const; + void set_position_deg(uint32_t value); private: - bool _internal_is_moving() const; - void _internal_set_is_moving(bool value); - + uint32_t _internal_position_deg() const; + void _internal_set_position_deg(uint32_t value); public: - // @@protoc_insertion_point(class_scope:viam.component.servo.v1.IsMovingResponse) + + // @@protoc_insertion_point(class_scope:viam.component.servo.v1.GetPositionResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - bool is_moving_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + uint32_t position_deg_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fservo_2fv1_2fservo_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class IsMovingRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.servo.v1.IsMovingRequest) */ { +class StopRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.servo.v1.StopRequest) */ { public: - inline IsMovingRequest() : IsMovingRequest(nullptr) {} - ~IsMovingRequest() override; - template - explicit PROTOBUF_CONSTEXPR IsMovingRequest(::google::protobuf::internal::ConstantInitialized); + inline StopRequest() : StopRequest(nullptr) {} + ~StopRequest() override; + explicit PROTOBUF_CONSTEXPR StopRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline IsMovingRequest(const IsMovingRequest& from) - : IsMovingRequest(nullptr, from) {} - IsMovingRequest(IsMovingRequest&& from) noexcept - : IsMovingRequest() { + StopRequest(const StopRequest& from); + StopRequest(StopRequest&& from) noexcept + : StopRequest() { *this = ::std::move(from); } - inline IsMovingRequest& operator=(const IsMovingRequest& from) { + inline StopRequest& operator=(const StopRequest& from) { CopyFrom(from); return *this; } - inline IsMovingRequest& operator=(IsMovingRequest&& from) noexcept { + inline StopRequest& operator=(StopRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -776,99 +738,88 @@ class IsMovingRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const IsMovingRequest& default_instance() { + static const StopRequest& default_instance() { return *internal_default_instance(); } - static inline const IsMovingRequest* internal_default_instance() { - return reinterpret_cast( - &_IsMovingRequest_default_instance_); + static inline const StopRequest* internal_default_instance() { + return reinterpret_cast( + &_StopRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 7; + 4; - friend void swap(IsMovingRequest& a, IsMovingRequest& b) { + friend void swap(StopRequest& a, StopRequest& b) { a.Swap(&b); } - inline void Swap(IsMovingRequest* other) { + inline void Swap(StopRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(IsMovingRequest* other) { + void UnsafeArenaSwap(StopRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - IsMovingRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const IsMovingRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const IsMovingRequest& from) { - IsMovingRequest::MergeImpl(*this, from); + StopRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const StopRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const StopRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(IsMovingRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(StopRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.servo.v1.IsMovingRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.servo.v1.StopRequest"; } protected: - explicit IsMovingRequest(::google::protobuf::Arena* arena); - IsMovingRequest(::google::protobuf::Arena* arena, const IsMovingRequest& from); + explicit StopRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -876,78 +827,75 @@ class IsMovingRequest final : enum : int { kNameFieldNumber = 1, + kExtraFieldNumber = 99, }; // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + 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: - // @@protoc_insertion_point(class_scope:viam.component.servo.v1.IsMovingRequest) + 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.servo.v1.StopRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 52, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr name_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + 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_2fservo_2fv1_2fservo_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetPositionResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.servo.v1.GetPositionResponse) */ { +class StopResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.servo.v1.StopResponse) */ { public: - inline GetPositionResponse() : GetPositionResponse(nullptr) {} - ~GetPositionResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetPositionResponse(::google::protobuf::internal::ConstantInitialized); + inline StopResponse() : StopResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR StopResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetPositionResponse(const GetPositionResponse& from) - : GetPositionResponse(nullptr, from) {} - GetPositionResponse(GetPositionResponse&& from) noexcept - : GetPositionResponse() { + StopResponse(const StopResponse& from); + StopResponse(StopResponse&& from) noexcept + : StopResponse() { *this = ::std::move(from); } - inline GetPositionResponse& operator=(const GetPositionResponse& from) { + inline StopResponse& operator=(const StopResponse& from) { CopyFrom(from); return *this; } - inline GetPositionResponse& operator=(GetPositionResponse&& from) noexcept { + inline StopResponse& operator=(StopResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -957,172 +905,114 @@ class GetPositionResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetPositionResponse& default_instance() { + static const StopResponse& default_instance() { return *internal_default_instance(); } - static inline const GetPositionResponse* internal_default_instance() { - return reinterpret_cast( - &_GetPositionResponse_default_instance_); + static inline const StopResponse* internal_default_instance() { + return reinterpret_cast( + &_StopResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 3; + 5; - friend void swap(GetPositionResponse& a, GetPositionResponse& b) { + friend void swap(StopResponse& a, StopResponse& b) { a.Swap(&b); } - inline void Swap(GetPositionResponse* other) { + inline void Swap(StopResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetPositionResponse* other) { + void UnsafeArenaSwap(StopResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetPositionResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + StopResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetPositionResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetPositionResponse& from) { - GetPositionResponse::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const StopResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const StopResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetPositionResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.servo.v1.GetPositionResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.servo.v1.StopResponse"; } protected: - explicit GetPositionResponse(::google::protobuf::Arena* arena); - GetPositionResponse(::google::protobuf::Arena* arena, const GetPositionResponse& from); + explicit StopResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kPositionDegFieldNumber = 1, - }; - // uint32 position_deg = 1 [json_name = "positionDeg"]; - void clear_position_deg() ; - ::uint32_t position_deg() const; - void set_position_deg(::uint32_t value); - - private: - ::uint32_t _internal_position_deg() const; - void _internal_set_position_deg(::uint32_t value); - - public: - // @@protoc_insertion_point(class_scope:viam.component.servo.v1.GetPositionResponse) + // @@protoc_insertion_point(class_scope:viam.component.servo.v1.StopResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::uint32_t position_deg_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_component_2fservo_2fv1_2fservo_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class StopRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.servo.v1.StopRequest) */ { +class Status final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.servo.v1.Status) */ { public: - inline StopRequest() : StopRequest(nullptr) {} - ~StopRequest() override; - template - explicit PROTOBUF_CONSTEXPR StopRequest(::google::protobuf::internal::ConstantInitialized); + inline Status() : Status(nullptr) {} + ~Status() override; + explicit PROTOBUF_CONSTEXPR Status(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline StopRequest(const StopRequest& from) - : StopRequest(nullptr, from) {} - StopRequest(StopRequest&& from) noexcept - : StopRequest() { + Status(const Status& from); + Status(Status&& from) noexcept + : Status() { *this = ::std::move(from); } - inline StopRequest& operator=(const StopRequest& from) { + inline Status& operator=(const Status& from) { CopyFrom(from); return *this; } - inline StopRequest& operator=(StopRequest&& from) noexcept { + inline Status& operator=(Status&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1132,196 +1022,151 @@ class StopRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const StopRequest& default_instance() { + static const Status& default_instance() { return *internal_default_instance(); } - static inline const StopRequest* internal_default_instance() { - return reinterpret_cast( - &_StopRequest_default_instance_); + static inline const Status* internal_default_instance() { + return reinterpret_cast( + &_Status_default_instance_); } static constexpr int kIndexInFileMessages = - 4; + 6; - friend void swap(StopRequest& a, StopRequest& b) { + friend void swap(Status& a, Status& b) { a.Swap(&b); } - inline void Swap(StopRequest* other) { + inline void Swap(Status* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(StopRequest* other) { + void UnsafeArenaSwap(Status* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - StopRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const StopRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const StopRequest& from) { - StopRequest::MergeImpl(*this, from); + Status* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Status& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Status& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(StopRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(Status* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.servo.v1.StopRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.servo.v1.Status"; } protected: - explicit StopRequest(::google::protobuf::Arena* arena); - StopRequest(::google::protobuf::Arena* arena, const StopRequest& from); + explicit Status(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kNameFieldNumber = 1, - kExtraFieldNumber = 99, + kPositionDegFieldNumber = 1, + kIsMovingFieldNumber = 2, }; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + // uint32 position_deg = 1 [json_name = "positionDeg"]; + void clear_position_deg(); + uint32_t position_deg() const; + void set_position_deg(uint32_t value); private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - + uint32_t _internal_position_deg() const; + void _internal_set_position_deg(uint32_t value); public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); + // bool is_moving = 2 [json_name = "isMoving"]; + void clear_is_moving(); + bool is_moving() const; + void set_is_moving(bool value); private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - + bool _internal_is_moving() const; + void _internal_set_is_moving(bool value); public: - // @@protoc_insertion_point(class_scope:viam.component.servo.v1.StopRequest) + + // @@protoc_insertion_point(class_scope:viam.component.servo.v1.Status) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 2, 1, - 48, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + uint32_t position_deg_; + bool is_moving_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fservo_2fv1_2fservo_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class MoveRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.servo.v1.MoveRequest) */ { +class IsMovingRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.servo.v1.IsMovingRequest) */ { public: - inline MoveRequest() : MoveRequest(nullptr) {} - ~MoveRequest() override; - template - explicit PROTOBUF_CONSTEXPR MoveRequest(::google::protobuf::internal::ConstantInitialized); + inline IsMovingRequest() : IsMovingRequest(nullptr) {} + ~IsMovingRequest() override; + explicit PROTOBUF_CONSTEXPR IsMovingRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline MoveRequest(const MoveRequest& from) - : MoveRequest(nullptr, from) {} - MoveRequest(MoveRequest&& from) noexcept - : MoveRequest() { + IsMovingRequest(const IsMovingRequest& from); + IsMovingRequest(IsMovingRequest&& from) noexcept + : IsMovingRequest() { *this = ::std::move(from); } - inline MoveRequest& operator=(const MoveRequest& from) { + inline IsMovingRequest& operator=(const IsMovingRequest& from) { CopyFrom(from); return *this; } - inline MoveRequest& operator=(MoveRequest&& from) noexcept { + inline IsMovingRequest& operator=(IsMovingRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1331,99 +1176,88 @@ class MoveRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MoveRequest& default_instance() { + static const IsMovingRequest& default_instance() { return *internal_default_instance(); } - static inline const MoveRequest* internal_default_instance() { - return reinterpret_cast( - &_MoveRequest_default_instance_); + static inline const IsMovingRequest* internal_default_instance() { + return reinterpret_cast( + &_IsMovingRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 0; + 7; - friend void swap(MoveRequest& a, MoveRequest& b) { + friend void swap(IsMovingRequest& a, IsMovingRequest& b) { a.Swap(&b); } - inline void Swap(MoveRequest* other) { + inline void Swap(IsMovingRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MoveRequest* other) { + void UnsafeArenaSwap(IsMovingRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MoveRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const MoveRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const MoveRequest& from) { - MoveRequest::MergeImpl(*this, from); + IsMovingRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const IsMovingRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const IsMovingRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(MoveRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(IsMovingRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.servo.v1.MoveRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.servo.v1.IsMovingRequest"; } protected: - explicit MoveRequest(::google::protobuf::Arena* arena); - MoveRequest(::google::protobuf::Arena* arena, const MoveRequest& from); + explicit IsMovingRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1431,108 +1265,56 @@ class MoveRequest final : enum : int { kNameFieldNumber = 1, - kExtraFieldNumber = 99, - kAngleDegFieldNumber = 2, }; // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + 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; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - public: - // uint32 angle_deg = 2 [json_name = "angleDeg"]; - void clear_angle_deg() ; - ::uint32_t angle_deg() const; - void set_angle_deg(::uint32_t value); - private: - ::uint32_t _internal_angle_deg() const; - void _internal_set_angle_deg(::uint32_t value); - - public: - // @@protoc_insertion_point(class_scope:viam.component.servo.v1.MoveRequest) + // @@protoc_insertion_point(class_scope:viam.component.servo.v1.IsMovingRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 1, - 48, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - ::uint32_t angle_deg_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fservo_2fv1_2fservo_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetPositionRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.servo.v1.GetPositionRequest) */ { +class IsMovingResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.servo.v1.IsMovingResponse) */ { public: - inline GetPositionRequest() : GetPositionRequest(nullptr) {} - ~GetPositionRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetPositionRequest(::google::protobuf::internal::ConstantInitialized); + inline IsMovingResponse() : IsMovingResponse(nullptr) {} + ~IsMovingResponse() override; + explicit PROTOBUF_CONSTEXPR IsMovingResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetPositionRequest(const GetPositionRequest& from) - : GetPositionRequest(nullptr, from) {} - GetPositionRequest(GetPositionRequest&& from) noexcept - : GetPositionRequest() { + IsMovingResponse(const IsMovingResponse& from); + IsMovingResponse(IsMovingResponse&& from) noexcept + : IsMovingResponse() { *this = ::std::move(from); } - inline GetPositionRequest& operator=(const GetPositionRequest& from) { + inline IsMovingResponse& operator=(const IsMovingResponse& from) { CopyFrom(from); return *this; } - inline GetPositionRequest& operator=(GetPositionRequest&& from) noexcept { + inline IsMovingResponse& operator=(IsMovingResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1542,352 +1324,279 @@ class GetPositionRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetPositionRequest& default_instance() { + static const IsMovingResponse& default_instance() { return *internal_default_instance(); } - static inline const GetPositionRequest* internal_default_instance() { - return reinterpret_cast( - &_GetPositionRequest_default_instance_); + static inline const IsMovingResponse* internal_default_instance() { + return reinterpret_cast( + &_IsMovingResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 2; + 8; - friend void swap(GetPositionRequest& a, GetPositionRequest& b) { + friend void swap(IsMovingResponse& a, IsMovingResponse& b) { a.Swap(&b); } - inline void Swap(GetPositionRequest* other) { + inline void Swap(IsMovingResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetPositionRequest* other) { + void UnsafeArenaSwap(IsMovingResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetPositionRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetPositionRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetPositionRequest& from) { - GetPositionRequest::MergeImpl(*this, from); + IsMovingResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const IsMovingResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const IsMovingResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetPositionRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(IsMovingResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.servo.v1.GetPositionRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.servo.v1.IsMovingResponse"; } protected: - explicit GetPositionRequest(::google::protobuf::Arena* arena); - GetPositionRequest(::google::protobuf::Arena* arena, const GetPositionRequest& from); + explicit IsMovingResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kNameFieldNumber = 1, - kExtraFieldNumber = 99, + kIsMovingFieldNumber = 1, }; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + // bool is_moving = 1 [json_name = "isMoving"]; + void clear_is_moving(); + bool is_moving() const; + void set_is_moving(bool value); private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - + bool _internal_is_moving() const; + void _internal_set_is_moving(bool value); public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - - public: - // @@protoc_insertion_point(class_scope:viam.component.servo.v1.GetPositionRequest) + // @@protoc_insertion_point(class_scope:viam.component.servo.v1.IsMovingResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 2, 1, - 55, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + bool is_moving_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2fservo_2fv1_2fservo_2eproto; }; - // =================================================================== - - // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ -// ------------------------------------------------------------------- - // MoveRequest // string name = 1 [json_name = "name"]; inline void MoveRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& MoveRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& MoveRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.servo.v1.MoveRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void MoveRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void MoveRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.servo.v1.MoveRequest.name) } -inline std::string* MoveRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* MoveRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.servo.v1.MoveRequest.name) return _s; } inline const std::string& MoveRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void MoveRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* MoveRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* MoveRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.servo.v1.MoveRequest.name) - return _impl_.name_.Release(); -} -inline void MoveRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void MoveRequest::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.servo.v1.MoveRequest.name) } // uint32 angle_deg = 2 [json_name = "angleDeg"]; inline void MoveRequest::clear_angle_deg() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.angle_deg_ = 0u; + angle_deg_ = 0u; } -inline ::uint32_t MoveRequest::angle_deg() const { +inline uint32_t MoveRequest::_internal_angle_deg() const { + return angle_deg_; +} +inline uint32_t MoveRequest::angle_deg() const { // @@protoc_insertion_point(field_get:viam.component.servo.v1.MoveRequest.angle_deg) return _internal_angle_deg(); } -inline void MoveRequest::set_angle_deg(::uint32_t value) { +inline void MoveRequest::_internal_set_angle_deg(uint32_t value) { + + angle_deg_ = value; +} +inline void MoveRequest::set_angle_deg(uint32_t value) { _internal_set_angle_deg(value); // @@protoc_insertion_point(field_set:viam.component.servo.v1.MoveRequest.angle_deg) } -inline ::uint32_t MoveRequest::_internal_angle_deg() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.angle_deg_; -} -inline void MoveRequest::_internal_set_angle_deg(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.angle_deg_ = value; -} // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool MoveRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool MoveRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& MoveRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& MoveRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& MoveRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& MoveRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.servo.v1.MoveRequest.extra) return _internal_extra(); } -inline void MoveRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void MoveRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.servo.v1.MoveRequest.extra) } -inline ::google::protobuf::Struct* MoveRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* MoveRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.servo.v1.MoveRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* MoveRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* MoveRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.servo.v1.MoveRequest.extra) return _msg; } -inline void MoveRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void MoveRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.servo.v1.MoveRequest.extra) } @@ -1901,145 +1610,136 @@ inline void MoveRequest::set_allocated_extra(::google::protobuf::Struct* value) // string name = 1 [json_name = "name"]; inline void GetPositionRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& GetPositionRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetPositionRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.servo.v1.GetPositionRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetPositionRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetPositionRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.servo.v1.GetPositionRequest.name) } -inline std::string* GetPositionRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetPositionRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.servo.v1.GetPositionRequest.name) return _s; } inline const std::string& GetPositionRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void GetPositionRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* GetPositionRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* GetPositionRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.servo.v1.GetPositionRequest.name) - return _impl_.name_.Release(); -} -inline void GetPositionRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void GetPositionRequest::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.servo.v1.GetPositionRequest.name) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetPositionRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool GetPositionRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& GetPositionRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetPositionRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& GetPositionRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetPositionRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.servo.v1.GetPositionRequest.extra) return _internal_extra(); } -inline void GetPositionRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void GetPositionRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.servo.v1.GetPositionRequest.extra) } -inline ::google::protobuf::Struct* GetPositionRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPositionRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* GetPositionRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPositionRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.servo.v1.GetPositionRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* GetPositionRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPositionRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* GetPositionRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPositionRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.servo.v1.GetPositionRequest.extra) return _msg; } -inline void GetPositionRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetPositionRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.servo.v1.GetPositionRequest.extra) } @@ -2049,26 +1749,23 @@ inline void GetPositionRequest::set_allocated_extra(::google::protobuf::Struct* // uint32 position_deg = 1 [json_name = "positionDeg"]; inline void GetPositionResponse::clear_position_deg() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.position_deg_ = 0u; + position_deg_ = 0u; } -inline ::uint32_t GetPositionResponse::position_deg() const { +inline uint32_t GetPositionResponse::_internal_position_deg() const { + return position_deg_; +} +inline uint32_t GetPositionResponse::position_deg() const { // @@protoc_insertion_point(field_get:viam.component.servo.v1.GetPositionResponse.position_deg) return _internal_position_deg(); } -inline void GetPositionResponse::set_position_deg(::uint32_t value) { +inline void GetPositionResponse::_internal_set_position_deg(uint32_t value) { + + position_deg_ = value; +} +inline void GetPositionResponse::set_position_deg(uint32_t value) { _internal_set_position_deg(value); // @@protoc_insertion_point(field_set:viam.component.servo.v1.GetPositionResponse.position_deg) } -inline ::uint32_t GetPositionResponse::_internal_position_deg() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.position_deg_; -} -inline void GetPositionResponse::_internal_set_position_deg(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.position_deg_ = value; -} // ------------------------------------------------------------------- @@ -2076,145 +1773,136 @@ inline void GetPositionResponse::_internal_set_position_deg(::uint32_t value) { // string name = 1 [json_name = "name"]; inline void StopRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& StopRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& StopRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.servo.v1.StopRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void StopRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void StopRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.servo.v1.StopRequest.name) } -inline std::string* StopRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* StopRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.servo.v1.StopRequest.name) return _s; } inline const std::string& StopRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void StopRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* StopRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* StopRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.servo.v1.StopRequest.name) - return _impl_.name_.Release(); -} -inline void StopRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void StopRequest::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.servo.v1.StopRequest.name) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool StopRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool StopRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& StopRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& StopRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& StopRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& StopRequest::extra() const { // @@protoc_insertion_point(field_get:viam.component.servo.v1.StopRequest.extra) return _internal_extra(); } -inline void StopRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void StopRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.servo.v1.StopRequest.extra) } -inline ::google::protobuf::Struct* StopRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* StopRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* StopRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* StopRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.component.servo.v1.StopRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* StopRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* StopRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* StopRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* StopRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.component.servo.v1.StopRequest.extra) return _msg; } -inline void StopRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void StopRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.component.servo.v1.StopRequest.extra) } @@ -2228,49 +1916,43 @@ inline void StopRequest::set_allocated_extra(::google::protobuf::Struct* value) // uint32 position_deg = 1 [json_name = "positionDeg"]; inline void Status::clear_position_deg() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.position_deg_ = 0u; + position_deg_ = 0u; +} +inline uint32_t Status::_internal_position_deg() const { + return position_deg_; } -inline ::uint32_t Status::position_deg() const { +inline uint32_t Status::position_deg() const { // @@protoc_insertion_point(field_get:viam.component.servo.v1.Status.position_deg) return _internal_position_deg(); } -inline void Status::set_position_deg(::uint32_t value) { +inline void Status::_internal_set_position_deg(uint32_t value) { + + position_deg_ = value; +} +inline void Status::set_position_deg(uint32_t value) { _internal_set_position_deg(value); // @@protoc_insertion_point(field_set:viam.component.servo.v1.Status.position_deg) } -inline ::uint32_t Status::_internal_position_deg() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.position_deg_; -} -inline void Status::_internal_set_position_deg(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.position_deg_ = value; -} // bool is_moving = 2 [json_name = "isMoving"]; inline void Status::clear_is_moving() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.is_moving_ = false; + is_moving_ = false; +} +inline bool Status::_internal_is_moving() const { + return is_moving_; } inline bool Status::is_moving() const { // @@protoc_insertion_point(field_get:viam.component.servo.v1.Status.is_moving) return _internal_is_moving(); } +inline void Status::_internal_set_is_moving(bool value) { + + is_moving_ = value; +} inline void Status::set_is_moving(bool value) { _internal_set_is_moving(value); // @@protoc_insertion_point(field_set:viam.component.servo.v1.Status.is_moving) } -inline bool Status::_internal_is_moving() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.is_moving_; -} -inline void Status::_internal_set_is_moving(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.is_moving_ = value; -} // ------------------------------------------------------------------- @@ -2278,54 +1960,51 @@ inline void Status::_internal_set_is_moving(bool value) { // string name = 1 [json_name = "name"]; inline void IsMovingRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& IsMovingRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& IsMovingRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.servo.v1.IsMovingRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void IsMovingRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void IsMovingRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.servo.v1.IsMovingRequest.name) } -inline std::string* IsMovingRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* IsMovingRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.servo.v1.IsMovingRequest.name) return _s; } inline const std::string& IsMovingRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void IsMovingRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* IsMovingRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* IsMovingRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.servo.v1.IsMovingRequest.name) - return _impl_.name_.Release(); -} -inline void IsMovingRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void IsMovingRequest::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.servo.v1.IsMovingRequest.name) } @@ -2335,40 +2014,52 @@ inline void IsMovingRequest::set_allocated_name(std::string* value) { // bool is_moving = 1 [json_name = "isMoving"]; inline void IsMovingResponse::clear_is_moving() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.is_moving_ = false; + is_moving_ = false; +} +inline bool IsMovingResponse::_internal_is_moving() const { + return is_moving_; } inline bool IsMovingResponse::is_moving() const { // @@protoc_insertion_point(field_get:viam.component.servo.v1.IsMovingResponse.is_moving) return _internal_is_moving(); } +inline void IsMovingResponse::_internal_set_is_moving(bool value) { + + is_moving_ = value; +} inline void IsMovingResponse::set_is_moving(bool value) { _internal_set_is_moving(value); // @@protoc_insertion_point(field_set:viam.component.servo.v1.IsMovingResponse.is_moving) } -inline bool IsMovingResponse::_internal_is_moving() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.is_moving_; -} -inline void IsMovingResponse::_internal_set_is_moving(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.is_moving_ = value; -} #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) + } // namespace v1 } // namespace servo } // namespace component } // namespace viam - // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_component_2fservo_2fv1_2fservo_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_component_2fservo_2fv1_2fservo_2eproto diff --git a/src/viam/api/component/switch/v1/switch.grpc.pb.cc b/src/viam/api/component/switch/v1/switch.grpc.pb.cc new file mode 100644 index 000000000..e1aadce10 --- /dev/null +++ b/src/viam/api/component/switch/v1/switch.grpc.pb.cc @@ -0,0 +1,238 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: component/switch/v1/switch.proto + +#include "component/switch/v1/switch.pb.h" +#include "component/switch/v1/switch.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace viam { +namespace component { +namespace switch { +namespace v1 { + +static const char* SwitchService_method_names[] = { + "/viam.component.switch.v1.SwitchService/SetPosition", + "/viam.component.switch.v1.SwitchService/GetPosition", + "/viam.component.switch.v1.SwitchService/GetNumberOfPositions", + "/viam.component.switch.v1.SwitchService/DoCommand", +}; + +std::unique_ptr< SwitchService::Stub> SwitchService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< SwitchService::Stub> stub(new SwitchService::Stub(channel)); + return stub; +} + +SwitchService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_SetPosition_(SwitchService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetPosition_(SwitchService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetNumberOfPositions_(SwitchService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DoCommand_(SwitchService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status SwitchService::Stub::SetPosition(::grpc::ClientContext* context, const ::viam::component::switch::v1::SetPositionRequest& request, ::viam::component::switch::v1::SetPositionResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_SetPosition_, context, request, response); +} + +void SwitchService::Stub::experimental_async::SetPosition(::grpc::ClientContext* context, const ::viam::component::switch::v1::SetPositionRequest* request, ::viam::component::switch::v1::SetPositionResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SetPosition_, context, request, response, std::move(f)); +} + +void SwitchService::Stub::experimental_async::SetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::switch::v1::SetPositionResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SetPosition_, context, request, response, std::move(f)); +} + +void SwitchService::Stub::experimental_async::SetPosition(::grpc::ClientContext* context, const ::viam::component::switch::v1::SetPositionRequest* request, ::viam::component::switch::v1::SetPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SetPosition_, context, request, response, reactor); +} + +void SwitchService::Stub::experimental_async::SetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::switch::v1::SetPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SetPosition_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::switch::v1::SetPositionResponse>* SwitchService::Stub::AsyncSetPositionRaw(::grpc::ClientContext* context, const ::viam::component::switch::v1::SetPositionRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::switch::v1::SetPositionResponse>::Create(channel_.get(), cq, rpcmethod_SetPosition_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::switch::v1::SetPositionResponse>* SwitchService::Stub::PrepareAsyncSetPositionRaw(::grpc::ClientContext* context, const ::viam::component::switch::v1::SetPositionRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::switch::v1::SetPositionResponse>::Create(channel_.get(), cq, rpcmethod_SetPosition_, context, request, false); +} + +::grpc::Status SwitchService::Stub::GetPosition(::grpc::ClientContext* context, const ::viam::component::switch::v1::GetPositionRequest& request, ::viam::component::switch::v1::GetPositionResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetPosition_, context, request, response); +} + +void SwitchService::Stub::experimental_async::GetPosition(::grpc::ClientContext* context, const ::viam::component::switch::v1::GetPositionRequest* request, ::viam::component::switch::v1::GetPositionResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetPosition_, context, request, response, std::move(f)); +} + +void SwitchService::Stub::experimental_async::GetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::switch::v1::GetPositionResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetPosition_, context, request, response, std::move(f)); +} + +void SwitchService::Stub::experimental_async::GetPosition(::grpc::ClientContext* context, const ::viam::component::switch::v1::GetPositionRequest* request, ::viam::component::switch::v1::GetPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetPosition_, context, request, response, reactor); +} + +void SwitchService::Stub::experimental_async::GetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::switch::v1::GetPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetPosition_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::switch::v1::GetPositionResponse>* SwitchService::Stub::AsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::component::switch::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::switch::v1::GetPositionResponse>::Create(channel_.get(), cq, rpcmethod_GetPosition_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::switch::v1::GetPositionResponse>* SwitchService::Stub::PrepareAsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::component::switch::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::switch::v1::GetPositionResponse>::Create(channel_.get(), cq, rpcmethod_GetPosition_, context, request, false); +} + +::grpc::Status SwitchService::Stub::GetNumberOfPositions(::grpc::ClientContext* context, const ::viam::component::switch::v1::GetNumberOfPositionsRequest& request, ::viam::component::switch::v1::GetNumberOfPositionsResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetNumberOfPositions_, context, request, response); +} + +void SwitchService::Stub::experimental_async::GetNumberOfPositions(::grpc::ClientContext* context, const ::viam::component::switch::v1::GetNumberOfPositionsRequest* request, ::viam::component::switch::v1::GetNumberOfPositionsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetNumberOfPositions_, context, request, response, std::move(f)); +} + +void SwitchService::Stub::experimental_async::GetNumberOfPositions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::switch::v1::GetNumberOfPositionsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetNumberOfPositions_, context, request, response, std::move(f)); +} + +void SwitchService::Stub::experimental_async::GetNumberOfPositions(::grpc::ClientContext* context, const ::viam::component::switch::v1::GetNumberOfPositionsRequest* request, ::viam::component::switch::v1::GetNumberOfPositionsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetNumberOfPositions_, context, request, response, reactor); +} + +void SwitchService::Stub::experimental_async::GetNumberOfPositions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::switch::v1::GetNumberOfPositionsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetNumberOfPositions_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::switch::v1::GetNumberOfPositionsResponse>* SwitchService::Stub::AsyncGetNumberOfPositionsRaw(::grpc::ClientContext* context, const ::viam::component::switch::v1::GetNumberOfPositionsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::switch::v1::GetNumberOfPositionsResponse>::Create(channel_.get(), cq, rpcmethod_GetNumberOfPositions_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::switch::v1::GetNumberOfPositionsResponse>* SwitchService::Stub::PrepareAsyncGetNumberOfPositionsRaw(::grpc::ClientContext* context, const ::viam::component::switch::v1::GetNumberOfPositionsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::switch::v1::GetNumberOfPositionsResponse>::Create(channel_.get(), cq, rpcmethod_GetNumberOfPositions_, context, request, false); +} + +::grpc::Status SwitchService::Stub::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::viam::common::v1::DoCommandResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DoCommand_, context, request, response); +} + +void SwitchService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); +} + +void SwitchService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); +} + +void SwitchService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); +} + +void SwitchService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* SwitchService::Stub::AsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::DoCommandResponse>::Create(channel_.get(), cq, rpcmethod_DoCommand_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* SwitchService::Stub::PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::DoCommandResponse>::Create(channel_.get(), cq, rpcmethod_DoCommand_, context, request, false); +} + +SwitchService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + SwitchService_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< SwitchService::Service, ::viam::component::switch::v1::SetPositionRequest, ::viam::component::switch::v1::SetPositionResponse>( + [](SwitchService::Service* service, + ::grpc_impl::ServerContext* ctx, + const ::viam::component::switch::v1::SetPositionRequest* req, + ::viam::component::switch::v1::SetPositionResponse* resp) { + return service->SetPosition(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + SwitchService_method_names[1], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< SwitchService::Service, ::viam::component::switch::v1::GetPositionRequest, ::viam::component::switch::v1::GetPositionResponse>( + [](SwitchService::Service* service, + ::grpc_impl::ServerContext* ctx, + const ::viam::component::switch::v1::GetPositionRequest* req, + ::viam::component::switch::v1::GetPositionResponse* resp) { + return service->GetPosition(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + SwitchService_method_names[2], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< SwitchService::Service, ::viam::component::switch::v1::GetNumberOfPositionsRequest, ::viam::component::switch::v1::GetNumberOfPositionsResponse>( + [](SwitchService::Service* service, + ::grpc_impl::ServerContext* ctx, + const ::viam::component::switch::v1::GetNumberOfPositionsRequest* req, + ::viam::component::switch::v1::GetNumberOfPositionsResponse* resp) { + return service->GetNumberOfPositions(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + SwitchService_method_names[3], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< SwitchService::Service, ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( + [](SwitchService::Service* service, + ::grpc_impl::ServerContext* ctx, + const ::viam::common::v1::DoCommandRequest* req, + ::viam::common::v1::DoCommandResponse* resp) { + return service->DoCommand(ctx, req, resp); + }, this))); +} + +SwitchService::Service::~Service() { +} + +::grpc::Status SwitchService::Service::SetPosition(::grpc::ServerContext* context, const ::viam::component::switch::v1::SetPositionRequest* request, ::viam::component::switch::v1::SetPositionResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status SwitchService::Service::GetPosition(::grpc::ServerContext* context, const ::viam::component::switch::v1::GetPositionRequest* request, ::viam::component::switch::v1::GetPositionResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status SwitchService::Service::GetNumberOfPositions(::grpc::ServerContext* context, const ::viam::component::switch::v1::GetNumberOfPositionsRequest* request, ::viam::component::switch::v1::GetNumberOfPositionsResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status SwitchService::Service::DoCommand(::grpc::ServerContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +} // namespace viam +} // namespace component +} // namespace switch +} // namespace v1 + diff --git a/src/viam/api/component/switch/v1/switch.grpc.pb.h b/src/viam/api/component/switch/v1/switch.grpc.pb.h new file mode 100644 index 000000000..3b3ca06e4 --- /dev/null +++ b/src/viam/api/component/switch/v1/switch.grpc.pb.h @@ -0,0 +1,964 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: component/switch/v1/switch.proto +#ifndef GRPC_component_2fswitch_2fv1_2fswitch_2eproto__INCLUDED +#define GRPC_component_2fswitch_2fv1_2fswitch_2eproto__INCLUDED + +#include "component/switch/v1/switch.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace viam { +namespace component { +namespace switch { +namespace v1 { + +// A SwitchService services switches associated with a machine. +// Switches can have multiple discrete positions - e.g. a simple +// switch has 2 positions, but a knob could have 10 positions. +class SwitchService final { + public: + static constexpr char const* service_full_name() { + return "viam.component.switch.v1.SwitchService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + // Set the position of the switch + virtual ::grpc::Status SetPosition(::grpc::ClientContext* context, const ::viam::component::switch::v1::SetPositionRequest& request, ::viam::component::switch::v1::SetPositionResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::switch::v1::SetPositionResponse>> AsyncSetPosition(::grpc::ClientContext* context, const ::viam::component::switch::v1::SetPositionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::switch::v1::SetPositionResponse>>(AsyncSetPositionRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::switch::v1::SetPositionResponse>> PrepareAsyncSetPosition(::grpc::ClientContext* context, const ::viam::component::switch::v1::SetPositionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::switch::v1::SetPositionResponse>>(PrepareAsyncSetPositionRaw(context, request, cq)); + } + // Get the position of the switch + virtual ::grpc::Status GetPosition(::grpc::ClientContext* context, const ::viam::component::switch::v1::GetPositionRequest& request, ::viam::component::switch::v1::GetPositionResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::switch::v1::GetPositionResponse>> AsyncGetPosition(::grpc::ClientContext* context, const ::viam::component::switch::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::switch::v1::GetPositionResponse>>(AsyncGetPositionRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::switch::v1::GetPositionResponse>> PrepareAsyncGetPosition(::grpc::ClientContext* context, const ::viam::component::switch::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::switch::v1::GetPositionResponse>>(PrepareAsyncGetPositionRaw(context, request, cq)); + } + // Get the number of positions that the switch supports + virtual ::grpc::Status GetNumberOfPositions(::grpc::ClientContext* context, const ::viam::component::switch::v1::GetNumberOfPositionsRequest& request, ::viam::component::switch::v1::GetNumberOfPositionsResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::switch::v1::GetNumberOfPositionsResponse>> AsyncGetNumberOfPositions(::grpc::ClientContext* context, const ::viam::component::switch::v1::GetNumberOfPositionsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::switch::v1::GetNumberOfPositionsResponse>>(AsyncGetNumberOfPositionsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::switch::v1::GetNumberOfPositionsResponse>> PrepareAsyncGetNumberOfPositions(::grpc::ClientContext* context, const ::viam::component::switch::v1::GetNumberOfPositionsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::switch::v1::GetNumberOfPositionsResponse>>(PrepareAsyncGetNumberOfPositionsRaw(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) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::DoCommandResponse>>(AsyncDoCommandRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::DoCommandResponse>> PrepareAsyncDoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::DoCommandResponse>>(PrepareAsyncDoCommandRaw(context, request, cq)); + } + class experimental_async_interface { + public: + virtual ~experimental_async_interface() {} + // Set the position of the switch + virtual void SetPosition(::grpc::ClientContext* context, const ::viam::component::switch::v1::SetPositionRequest* request, ::viam::component::switch::v1::SetPositionResponse* response, std::function) = 0; + virtual void SetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::switch::v1::SetPositionResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void SetPosition(::grpc::ClientContext* context, const ::viam::component::switch::v1::SetPositionRequest* request, ::viam::component::switch::v1::SetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void SetPosition(::grpc::ClientContext* context, const ::viam::component::switch::v1::SetPositionRequest* request, ::viam::component::switch::v1::SetPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void SetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::switch::v1::SetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void SetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::switch::v1::SetPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + // Get the position of the switch + virtual void GetPosition(::grpc::ClientContext* context, const ::viam::component::switch::v1::GetPositionRequest* request, ::viam::component::switch::v1::GetPositionResponse* response, std::function) = 0; + virtual void GetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::switch::v1::GetPositionResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetPosition(::grpc::ClientContext* context, const ::viam::component::switch::v1::GetPositionRequest* request, ::viam::component::switch::v1::GetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetPosition(::grpc::ClientContext* context, const ::viam::component::switch::v1::GetPositionRequest* request, ::viam::component::switch::v1::GetPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::switch::v1::GetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::switch::v1::GetPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + // Get the number of positions that the switch supports + virtual void GetNumberOfPositions(::grpc::ClientContext* context, const ::viam::component::switch::v1::GetNumberOfPositionsRequest* request, ::viam::component::switch::v1::GetNumberOfPositionsResponse* response, std::function) = 0; + virtual void GetNumberOfPositions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::switch::v1::GetNumberOfPositionsResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetNumberOfPositions(::grpc::ClientContext* context, const ::viam::component::switch::v1::GetNumberOfPositionsRequest* request, ::viam::component::switch::v1::GetNumberOfPositionsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetNumberOfPositions(::grpc::ClientContext* context, const ::viam::component::switch::v1::GetNumberOfPositionsRequest* request, ::viam::component::switch::v1::GetNumberOfPositionsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetNumberOfPositions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::switch::v1::GetNumberOfPositionsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetNumberOfPositions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::switch::v1::GetNumberOfPositionsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + // 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 ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + }; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef class experimental_async_interface async_interface; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + async_interface* async() { return experimental_async(); } + #endif + virtual class experimental_async_interface* experimental_async() { return nullptr; } + private: + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::switch::v1::SetPositionResponse>* AsyncSetPositionRaw(::grpc::ClientContext* context, const ::viam::component::switch::v1::SetPositionRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::switch::v1::SetPositionResponse>* PrepareAsyncSetPositionRaw(::grpc::ClientContext* context, const ::viam::component::switch::v1::SetPositionRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::switch::v1::GetPositionResponse>* AsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::component::switch::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::switch::v1::GetPositionResponse>* PrepareAsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::component::switch::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::switch::v1::GetNumberOfPositionsResponse>* AsyncGetNumberOfPositionsRaw(::grpc::ClientContext* context, const ::viam::component::switch::v1::GetNumberOfPositionsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::switch::v1::GetNumberOfPositionsResponse>* PrepareAsyncGetNumberOfPositionsRaw(::grpc::ClientContext* context, const ::viam::component::switch::v1::GetNumberOfPositionsRequest& 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; + }; + class Stub final : public StubInterface { + public: + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); + ::grpc::Status SetPosition(::grpc::ClientContext* context, const ::viam::component::switch::v1::SetPositionRequest& request, ::viam::component::switch::v1::SetPositionResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::switch::v1::SetPositionResponse>> AsyncSetPosition(::grpc::ClientContext* context, const ::viam::component::switch::v1::SetPositionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::switch::v1::SetPositionResponse>>(AsyncSetPositionRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::switch::v1::SetPositionResponse>> PrepareAsyncSetPosition(::grpc::ClientContext* context, const ::viam::component::switch::v1::SetPositionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::switch::v1::SetPositionResponse>>(PrepareAsyncSetPositionRaw(context, request, cq)); + } + ::grpc::Status GetPosition(::grpc::ClientContext* context, const ::viam::component::switch::v1::GetPositionRequest& request, ::viam::component::switch::v1::GetPositionResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::switch::v1::GetPositionResponse>> AsyncGetPosition(::grpc::ClientContext* context, const ::viam::component::switch::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::switch::v1::GetPositionResponse>>(AsyncGetPositionRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::switch::v1::GetPositionResponse>> PrepareAsyncGetPosition(::grpc::ClientContext* context, const ::viam::component::switch::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::switch::v1::GetPositionResponse>>(PrepareAsyncGetPositionRaw(context, request, cq)); + } + ::grpc::Status GetNumberOfPositions(::grpc::ClientContext* context, const ::viam::component::switch::v1::GetNumberOfPositionsRequest& request, ::viam::component::switch::v1::GetNumberOfPositionsResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::switch::v1::GetNumberOfPositionsResponse>> AsyncGetNumberOfPositions(::grpc::ClientContext* context, const ::viam::component::switch::v1::GetNumberOfPositionsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::switch::v1::GetNumberOfPositionsResponse>>(AsyncGetNumberOfPositionsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::switch::v1::GetNumberOfPositionsResponse>> PrepareAsyncGetNumberOfPositions(::grpc::ClientContext* context, const ::viam::component::switch::v1::GetNumberOfPositionsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::switch::v1::GetNumberOfPositionsResponse>>(PrepareAsyncGetNumberOfPositionsRaw(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)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>> PrepareAsyncDoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>>(PrepareAsyncDoCommandRaw(context, request, cq)); + } + class experimental_async final : + public StubInterface::experimental_async_interface { + public: + void SetPosition(::grpc::ClientContext* context, const ::viam::component::switch::v1::SetPositionRequest* request, ::viam::component::switch::v1::SetPositionResponse* response, std::function) override; + void SetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::switch::v1::SetPositionResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void SetPosition(::grpc::ClientContext* context, const ::viam::component::switch::v1::SetPositionRequest* request, ::viam::component::switch::v1::SetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void SetPosition(::grpc::ClientContext* context, const ::viam::component::switch::v1::SetPositionRequest* request, ::viam::component::switch::v1::SetPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void SetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::switch::v1::SetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void SetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::switch::v1::SetPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + void GetPosition(::grpc::ClientContext* context, const ::viam::component::switch::v1::GetPositionRequest* request, ::viam::component::switch::v1::GetPositionResponse* response, std::function) override; + void GetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::switch::v1::GetPositionResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetPosition(::grpc::ClientContext* context, const ::viam::component::switch::v1::GetPositionRequest* request, ::viam::component::switch::v1::GetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetPosition(::grpc::ClientContext* context, const ::viam::component::switch::v1::GetPositionRequest* request, ::viam::component::switch::v1::GetPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::switch::v1::GetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::switch::v1::GetPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + void GetNumberOfPositions(::grpc::ClientContext* context, const ::viam::component::switch::v1::GetNumberOfPositionsRequest* request, ::viam::component::switch::v1::GetNumberOfPositionsResponse* response, std::function) override; + void GetNumberOfPositions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::switch::v1::GetNumberOfPositionsResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetNumberOfPositions(::grpc::ClientContext* context, const ::viam::component::switch::v1::GetNumberOfPositionsRequest* request, ::viam::component::switch::v1::GetNumberOfPositionsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetNumberOfPositions(::grpc::ClientContext* context, const ::viam::component::switch::v1::GetNumberOfPositionsRequest* request, ::viam::component::switch::v1::GetNumberOfPositionsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetNumberOfPositions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::switch::v1::GetNumberOfPositionsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetNumberOfPositions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::switch::v1::GetNumberOfPositionsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + 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 ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + private: + friend class Stub; + explicit experimental_async(Stub* stub): stub_(stub) { } + Stub* stub() { return stub_; } + Stub* stub_; + }; + class experimental_async_interface* experimental_async() override { return &async_stub_; } + + private: + std::shared_ptr< ::grpc::ChannelInterface> channel_; + class experimental_async async_stub_{this}; + ::grpc::ClientAsyncResponseReader< ::viam::component::switch::v1::SetPositionResponse>* AsyncSetPositionRaw(::grpc::ClientContext* context, const ::viam::component::switch::v1::SetPositionRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::switch::v1::SetPositionResponse>* PrepareAsyncSetPositionRaw(::grpc::ClientContext* context, const ::viam::component::switch::v1::SetPositionRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::switch::v1::GetPositionResponse>* AsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::component::switch::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::switch::v1::GetPositionResponse>* PrepareAsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::component::switch::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::switch::v1::GetNumberOfPositionsResponse>* AsyncGetNumberOfPositionsRaw(::grpc::ClientContext* context, const ::viam::component::switch::v1::GetNumberOfPositionsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::component::switch::v1::GetNumberOfPositionsResponse>* PrepareAsyncGetNumberOfPositionsRaw(::grpc::ClientContext* context, const ::viam::component::switch::v1::GetNumberOfPositionsRequest& 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_SetPosition_; + const ::grpc::internal::RpcMethod rpcmethod_GetPosition_; + const ::grpc::internal::RpcMethod rpcmethod_GetNumberOfPositions_; + const ::grpc::internal::RpcMethod rpcmethod_DoCommand_; + }; + static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + + class Service : public ::grpc::Service { + public: + Service(); + virtual ~Service(); + // Set the position of the switch + virtual ::grpc::Status SetPosition(::grpc::ServerContext* context, const ::viam::component::switch::v1::SetPositionRequest* request, ::viam::component::switch::v1::SetPositionResponse* response); + // Get the position of the switch + virtual ::grpc::Status GetPosition(::grpc::ServerContext* context, const ::viam::component::switch::v1::GetPositionRequest* request, ::viam::component::switch::v1::GetPositionResponse* response); + // Get the number of positions that the switch supports + virtual ::grpc::Status GetNumberOfPositions(::grpc::ServerContext* context, const ::viam::component::switch::v1::GetNumberOfPositionsRequest* request, ::viam::component::switch::v1::GetNumberOfPositionsResponse* response); + // DoCommand sends/receives arbitrary commands + virtual ::grpc::Status DoCommand(::grpc::ServerContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response); + }; + template + class WithAsyncMethod_SetPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_SetPosition() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_SetPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SetPosition(::grpc::ServerContext* /*context*/, const ::viam::component::switch::v1::SetPositionRequest* /*request*/, ::viam::component::switch::v1::SetPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestSetPosition(::grpc::ServerContext* context, ::viam::component::switch::v1::SetPositionRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::switch::v1::SetPositionResponse>* 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); + } + }; + template + class WithAsyncMethod_GetPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetPosition() { + ::grpc::Service::MarkMethodAsync(1); + } + ~WithAsyncMethod_GetPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetPosition(::grpc::ServerContext* /*context*/, const ::viam::component::switch::v1::GetPositionRequest* /*request*/, ::viam::component::switch::v1::GetPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetPosition(::grpc::ServerContext* context, ::viam::component::switch::v1::GetPositionRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::switch::v1::GetPositionResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetNumberOfPositions : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetNumberOfPositions() { + ::grpc::Service::MarkMethodAsync(2); + } + ~WithAsyncMethod_GetNumberOfPositions() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetNumberOfPositions(::grpc::ServerContext* /*context*/, const ::viam::component::switch::v1::GetNumberOfPositionsRequest* /*request*/, ::viam::component::switch::v1::GetNumberOfPositionsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetNumberOfPositions(::grpc::ServerContext* context, ::viam::component::switch::v1::GetNumberOfPositionsRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::switch::v1::GetNumberOfPositionsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, 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); + } + ~WithAsyncMethod_DoCommand() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DoCommand(::grpc::ServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) override { + abort(); + 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); + } + }; + typedef WithAsyncMethod_SetPosition > > > AsyncService; + template + class ExperimentalWithCallbackMethod_SetPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithCallbackMethod_SetPosition() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::switch::v1::SetPositionRequest, ::viam::component::switch::v1::SetPositionResponse>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::switch::v1::SetPositionRequest* request, ::viam::component::switch::v1::SetPositionResponse* response) { return this->SetPosition(context, request, response); }));} + void SetMessageAllocatorFor_SetPosition( + ::grpc::experimental::MessageAllocator< ::viam::component::switch::v1::SetPositionRequest, ::viam::component::switch::v1::SetPositionResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(0); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::switch::v1::SetPositionRequest, ::viam::component::switch::v1::SetPositionResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_SetPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SetPosition(::grpc::ServerContext* /*context*/, const ::viam::component::switch::v1::SetPositionRequest* /*request*/, ::viam::component::switch::v1::SetPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* SetPosition( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::switch::v1::SetPositionRequest* /*request*/, ::viam::component::switch::v1::SetPositionResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* SetPosition( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::switch::v1::SetPositionRequest* /*request*/, ::viam::component::switch::v1::SetPositionResponse* /*response*/) + #endif + { return nullptr; } + }; + template + class ExperimentalWithCallbackMethod_GetPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithCallbackMethod_GetPosition() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::switch::v1::GetPositionRequest, ::viam::component::switch::v1::GetPositionResponse>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::switch::v1::GetPositionRequest* request, ::viam::component::switch::v1::GetPositionResponse* response) { return this->GetPosition(context, request, response); }));} + void SetMessageAllocatorFor_GetPosition( + ::grpc::experimental::MessageAllocator< ::viam::component::switch::v1::GetPositionRequest, ::viam::component::switch::v1::GetPositionResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(1); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::switch::v1::GetPositionRequest, ::viam::component::switch::v1::GetPositionResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_GetPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetPosition(::grpc::ServerContext* /*context*/, const ::viam::component::switch::v1::GetPositionRequest* /*request*/, ::viam::component::switch::v1::GetPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* GetPosition( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::switch::v1::GetPositionRequest* /*request*/, ::viam::component::switch::v1::GetPositionResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetPosition( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::switch::v1::GetPositionRequest* /*request*/, ::viam::component::switch::v1::GetPositionResponse* /*response*/) + #endif + { return nullptr; } + }; + template + class ExperimentalWithCallbackMethod_GetNumberOfPositions : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithCallbackMethod_GetNumberOfPositions() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(2, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::switch::v1::GetNumberOfPositionsRequest, ::viam::component::switch::v1::GetNumberOfPositionsResponse>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::switch::v1::GetNumberOfPositionsRequest* request, ::viam::component::switch::v1::GetNumberOfPositionsResponse* response) { return this->GetNumberOfPositions(context, request, response); }));} + void SetMessageAllocatorFor_GetNumberOfPositions( + ::grpc::experimental::MessageAllocator< ::viam::component::switch::v1::GetNumberOfPositionsRequest, ::viam::component::switch::v1::GetNumberOfPositionsResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(2); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::switch::v1::GetNumberOfPositionsRequest, ::viam::component::switch::v1::GetNumberOfPositionsResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_GetNumberOfPositions() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetNumberOfPositions(::grpc::ServerContext* /*context*/, const ::viam::component::switch::v1::GetNumberOfPositionsRequest* /*request*/, ::viam::component::switch::v1::GetNumberOfPositionsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* GetNumberOfPositions( + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::switch::v1::GetNumberOfPositionsRequest* /*request*/, ::viam::component::switch::v1::GetNumberOfPositionsResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetNumberOfPositions( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::switch::v1::GetNumberOfPositionsRequest* /*request*/, ::viam::component::switch::v1::GetNumberOfPositionsResponse* /*response*/) + #endif + { return nullptr; } + }; + template + class ExperimentalWithCallbackMethod_DoCommand : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithCallbackMethod_DoCommand() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(3, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response) { return this->DoCommand(context, request, response); }));} + void SetMessageAllocatorFor_DoCommand( + ::grpc::experimental::MessageAllocator< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(3); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_DoCommand() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DoCommand(::grpc::ServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* DoCommand( + ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DoCommand( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) + #endif + { return nullptr; } + }; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef ExperimentalWithCallbackMethod_SetPosition > > > CallbackService; + #endif + + typedef ExperimentalWithCallbackMethod_SetPosition > > > ExperimentalCallbackService; + template + class WithGenericMethod_SetPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_SetPosition() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_SetPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SetPosition(::grpc::ServerContext* /*context*/, const ::viam::component::switch::v1::SetPositionRequest* /*request*/, ::viam::component::switch::v1::SetPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetPosition() { + ::grpc::Service::MarkMethodGeneric(1); + } + ~WithGenericMethod_GetPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetPosition(::grpc::ServerContext* /*context*/, const ::viam::component::switch::v1::GetPositionRequest* /*request*/, ::viam::component::switch::v1::GetPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetNumberOfPositions : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetNumberOfPositions() { + ::grpc::Service::MarkMethodGeneric(2); + } + ~WithGenericMethod_GetNumberOfPositions() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetNumberOfPositions(::grpc::ServerContext* /*context*/, const ::viam::component::switch::v1::GetNumberOfPositionsRequest* /*request*/, ::viam::component::switch::v1::GetNumberOfPositionsResponse* /*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); + } + ~WithGenericMethod_DoCommand() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DoCommand(::grpc::ServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_SetPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_SetPosition() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_SetPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SetPosition(::grpc::ServerContext* /*context*/, const ::viam::component::switch::v1::SetPositionRequest* /*request*/, ::viam::component::switch::v1::SetPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestSetPosition(::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(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetPosition() { + ::grpc::Service::MarkMethodRaw(1); + } + ~WithRawMethod_GetPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetPosition(::grpc::ServerContext* /*context*/, const ::viam::component::switch::v1::GetPositionRequest* /*request*/, ::viam::component::switch::v1::GetPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetPosition(::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(1, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetNumberOfPositions : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetNumberOfPositions() { + ::grpc::Service::MarkMethodRaw(2); + } + ~WithRawMethod_GetNumberOfPositions() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetNumberOfPositions(::grpc::ServerContext* /*context*/, const ::viam::component::switch::v1::GetNumberOfPositionsRequest* /*request*/, ::viam::component::switch::v1::GetNumberOfPositionsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetNumberOfPositions(::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(2, 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); + } + ~WithRawMethod_DoCommand() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DoCommand(::grpc::ServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) override { + abort(); + 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); + } + }; + template + class ExperimentalWithRawCallbackMethod_SetPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithRawCallbackMethod_SetPosition() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SetPosition(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_SetPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SetPosition(::grpc::ServerContext* /*context*/, const ::viam::component::switch::v1::SetPositionRequest* /*request*/, ::viam::component::switch::v1::SetPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* SetPosition( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* SetPosition( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } + }; + template + class ExperimentalWithRawCallbackMethod_GetPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithRawCallbackMethod_GetPosition() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetPosition(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetPosition(::grpc::ServerContext* /*context*/, const ::viam::component::switch::v1::GetPositionRequest* /*request*/, ::viam::component::switch::v1::GetPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* GetPosition( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetPosition( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } + }; + template + class ExperimentalWithRawCallbackMethod_GetNumberOfPositions : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithRawCallbackMethod_GetNumberOfPositions() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(2, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetNumberOfPositions(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetNumberOfPositions() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetNumberOfPositions(::grpc::ServerContext* /*context*/, const ::viam::component::switch::v1::GetNumberOfPositionsRequest* /*request*/, ::viam::component::switch::v1::GetNumberOfPositionsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* GetNumberOfPositions( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetNumberOfPositions( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } + }; + template + class ExperimentalWithRawCallbackMethod_DoCommand : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithRawCallbackMethod_DoCommand() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(3, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DoCommand(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_DoCommand() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DoCommand(::grpc::ServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* DoCommand( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DoCommand( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } + }; + template + class WithStreamedUnaryMethod_SetPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_SetPosition() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::switch::v1::SetPositionRequest, ::viam::component::switch::v1::SetPositionResponse>( + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< + ::viam::component::switch::v1::SetPositionRequest, ::viam::component::switch::v1::SetPositionResponse>* streamer) { + return this->StreamedSetPosition(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_SetPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status SetPosition(::grpc::ServerContext* /*context*/, const ::viam::component::switch::v1::SetPositionRequest* /*request*/, ::viam::component::switch::v1::SetPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedSetPosition(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::switch::v1::SetPositionRequest,::viam::component::switch::v1::SetPositionResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetPosition : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetPosition() { + ::grpc::Service::MarkMethodStreamed(1, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::switch::v1::GetPositionRequest, ::viam::component::switch::v1::GetPositionResponse>( + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< + ::viam::component::switch::v1::GetPositionRequest, ::viam::component::switch::v1::GetPositionResponse>* streamer) { + return this->StreamedGetPosition(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetPosition() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetPosition(::grpc::ServerContext* /*context*/, const ::viam::component::switch::v1::GetPositionRequest* /*request*/, ::viam::component::switch::v1::GetPositionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetPosition(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::switch::v1::GetPositionRequest,::viam::component::switch::v1::GetPositionResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetNumberOfPositions : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetNumberOfPositions() { + ::grpc::Service::MarkMethodStreamed(2, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::component::switch::v1::GetNumberOfPositionsRequest, ::viam::component::switch::v1::GetNumberOfPositionsResponse>( + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< + ::viam::component::switch::v1::GetNumberOfPositionsRequest, ::viam::component::switch::v1::GetNumberOfPositionsResponse>* streamer) { + return this->StreamedGetNumberOfPositions(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetNumberOfPositions() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetNumberOfPositions(::grpc::ServerContext* /*context*/, const ::viam::component::switch::v1::GetNumberOfPositionsRequest* /*request*/, ::viam::component::switch::v1::GetNumberOfPositionsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetNumberOfPositions(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::switch::v1::GetNumberOfPositionsRequest,::viam::component::switch::v1::GetNumberOfPositionsResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_DoCommand : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_DoCommand() { + ::grpc::Service::MarkMethodStreamed(3, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< + ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* streamer) { + return this->StreamedDoCommand(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_DoCommand() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status DoCommand(::grpc::ServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // 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_SetPosition > > > StreamedUnaryService; + typedef Service SplitStreamedService; + typedef WithStreamedUnaryMethod_SetPosition > > > StreamedService; +}; + +} // namespace v1 +} // namespace switch +} // namespace component +} // namespace viam + + +#endif // GRPC_component_2fswitch_2fv1_2fswitch_2eproto__INCLUDED diff --git a/src/viam/api/component/switch/v1/switch.pb.cc b/src/viam/api/component/switch/v1/switch.pb.cc new file mode 100644 index 000000000..7a4ed71fc --- /dev/null +++ b/src/viam/api/component/switch/v1/switch.pb.cc @@ -0,0 +1,1412 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: component/switch/v1/switch.proto + +#include "component/switch/v1/switch.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +PROTOBUF_PRAGMA_INIT_SEG + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + +namespace viam { +namespace component { +namespace switch { +namespace v1 { +PROTOBUF_CONSTEXPR SetPositionRequest::SetPositionRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr) + , position_(0u){} +struct SetPositionRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SetPositionRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SetPositionRequestDefaultTypeInternal() {} + union { + SetPositionRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetPositionRequestDefaultTypeInternal _SetPositionRequest_default_instance_; +PROTOBUF_CONSTEXPR SetPositionResponse::SetPositionResponse( + ::_pbi::ConstantInitialized){} +struct SetPositionResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR SetPositionResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SetPositionResponseDefaultTypeInternal() {} + union { + SetPositionResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetPositionResponseDefaultTypeInternal _SetPositionResponse_default_instance_; +PROTOBUF_CONSTEXPR GetPositionRequest::GetPositionRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} +struct GetPositionRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPositionRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPositionRequestDefaultTypeInternal() {} + union { + GetPositionRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPositionRequestDefaultTypeInternal _GetPositionRequest_default_instance_; +PROTOBUF_CONSTEXPR GetPositionResponse::GetPositionResponse( + ::_pbi::ConstantInitialized) + : position_(0u){} +struct GetPositionResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPositionResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPositionResponseDefaultTypeInternal() {} + union { + GetPositionResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPositionResponseDefaultTypeInternal _GetPositionResponse_default_instance_; +PROTOBUF_CONSTEXPR GetNumberOfPositionsRequest::GetNumberOfPositionsRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} +struct GetNumberOfPositionsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetNumberOfPositionsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetNumberOfPositionsRequestDefaultTypeInternal() {} + union { + GetNumberOfPositionsRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetNumberOfPositionsRequestDefaultTypeInternal _GetNumberOfPositionsRequest_default_instance_; +PROTOBUF_CONSTEXPR GetNumberOfPositionsResponse::GetNumberOfPositionsResponse( + ::_pbi::ConstantInitialized) + : number_of_positions_(0u){} +struct GetNumberOfPositionsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetNumberOfPositionsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetNumberOfPositionsResponseDefaultTypeInternal() {} + union { + GetNumberOfPositionsResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetNumberOfPositionsResponseDefaultTypeInternal _GetNumberOfPositionsResponse_default_instance_; +} // namespace v1 +} // namespace switch +} // namespace component +} // namespace viam +static ::_pb::Metadata file_level_metadata_component_2fswitch_2fv1_2fswitch_2eproto[6]; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_component_2fswitch_2fv1_2fswitch_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_component_2fswitch_2fv1_2fswitch_2eproto = nullptr; + +const uint32_t TableStruct_component_2fswitch_2fv1_2fswitch_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::switch::v1::SetPositionRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::switch::v1::SetPositionRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::switch::v1::SetPositionRequest, position_), + PROTOBUF_FIELD_OFFSET(::viam::component::switch::v1::SetPositionRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::switch::v1::SetPositionResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::switch::v1::GetPositionRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::switch::v1::GetPositionRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::switch::v1::GetPositionRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::switch::v1::GetPositionResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::switch::v1::GetPositionResponse, position_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::switch::v1::GetNumberOfPositionsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::switch::v1::GetNumberOfPositionsRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::switch::v1::GetNumberOfPositionsRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::switch::v1::GetNumberOfPositionsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::switch::v1::GetNumberOfPositionsResponse, number_of_positions_), +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::component::switch::v1::SetPositionRequest)}, + { 9, -1, -1, sizeof(::viam::component::switch::v1::SetPositionResponse)}, + { 15, -1, -1, sizeof(::viam::component::switch::v1::GetPositionRequest)}, + { 23, -1, -1, sizeof(::viam::component::switch::v1::GetPositionResponse)}, + { 30, -1, -1, sizeof(::viam::component::switch::v1::GetNumberOfPositionsRequest)}, + { 38, -1, -1, sizeof(::viam::component::switch::v1::GetNumberOfPositionsResponse)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::viam::component::switch::v1::_SetPositionRequest_default_instance_._instance, + &::viam::component::switch::v1::_SetPositionResponse_default_instance_._instance, + &::viam::component::switch::v1::_GetPositionRequest_default_instance_._instance, + &::viam::component::switch::v1::_GetPositionResponse_default_instance_._instance, + &::viam::component::switch::v1::_GetNumberOfPositionsRequest_default_instance_._instance, + &::viam::component::switch::v1::_GetNumberOfPositionsResponse_default_instance_._instance, +}; + +const char descriptor_table_protodef_component_2fswitch_2fv1_2fswitch_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n component/switch/v1/switch.proto\022\030viam" + ".component.switch.v1\032\026common/v1/common.p" + "roto\032\034google/api/annotations.proto\032\034goog" + "le/protobuf/struct.proto\"s\n\022SetPositionR" + "equest\022\022\n\004name\030\001 \001(\tR\004name\022\032\n\010position\030\002" + " \001(\rR\010position\022-\n\005extra\030c \001(\0132\027.google.p" + "rotobuf.StructR\005extra\"\025\n\023SetPositionResp" + "onse\"W\n\022GetPositionRequest\022\022\n\004name\030\001 \001(\t" + "R\004name\022-\n\005extra\030c \001(\0132\027.google.protobuf." + "StructR\005extra\"1\n\023GetPositionResponse\022\032\n\010" + "position\030\001 \001(\rR\010position\"`\n\033GetNumberOfP" + "ositionsRequest\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005e" + "xtra\030c \001(\0132\027.google.protobuf.StructR\005ext" + "ra\"N\n\034GetNumberOfPositionsResponse\022.\n\023nu" + "mber_of_positions\030\001 \001(\rR\021numberOfPositio" + "ns2\271\005\n\rSwitchService\022\245\001\n\013SetPosition\022,.v" + "iam.component.switch.v1.SetPositionReque" + "st\032-.viam.component.switch.v1.SetPositio" + "nResponse\"9\202\323\344\223\0023\0321/viam/api/v1/componen" + "t/switch/{name}/set_position\022\245\001\n\013GetPosi" + "tion\022,.viam.component.switch.v1.GetPosit" + "ionRequest\032-.viam.component.switch.v1.Ge" + "tPositionResponse\"9\202\323\344\223\0023\0321/viam/api/v1/" + "component/switch/{name}/get_position\022\313\001\n" + "\024GetNumberOfPositions\0225.viam.component.s" + "witch.v1.GetNumberOfPositionsRequest\0326.v" + "iam.component.switch.v1.GetNumberOfPosit" + "ionsResponse\"D\202\323\344\223\002>\032extra_; +} +void SetPositionRequest::clear_extra() { + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; +} +SetPositionRequest::SetPositionRequest(::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.switch.v1.SetPositionRequest) +} +SetPositionRequest::SetPositionRequest(const SetPositionRequest& 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; + } + position_ = from.position_; + // @@protoc_insertion_point(copy_constructor:viam.component.switch.v1.SetPositionRequest) +} + +inline void SetPositionRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&extra_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&position_) - + reinterpret_cast(&extra_)) + sizeof(position_)); +} + +SetPositionRequest::~SetPositionRequest() { + // @@protoc_insertion_point(destructor:viam.component.switch.v1.SetPositionRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void SetPositionRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void SetPositionRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void SetPositionRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.switch.v1.SetPositionRequest) + 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; + position_ = 0u; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SetPositionRequest::_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.switch.v1.SetPositionRequest.name")); + } else + goto handle_unusual; + continue; + // uint32 position = 2 [json_name = "position"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + position_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } 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* SetPositionRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.switch.v1.SetPositionRequest) + 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.switch.v1.SetPositionRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // uint32 position = 2 [json_name = "position"]; + if (this->_internal_position() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_position(), 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.switch.v1.SetPositionRequest) + return target; +} + +size_t SetPositionRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.switch.v1.SetPositionRequest) + 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_); + } + + // uint32 position = 2 [json_name = "position"]; + if (this->_internal_position() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_position()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetPositionRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + SetPositionRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetPositionRequest::GetClassData() const { return &_class_data_; } + +void SetPositionRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void SetPositionRequest::MergeFrom(const SetPositionRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.switch.v1.SetPositionRequest) + 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()); + } + if (from._internal_position() != 0) { + _internal_set_position(from._internal_position()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void SetPositionRequest::CopyFrom(const SetPositionRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.switch.v1.SetPositionRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SetPositionRequest::IsInitialized() const { + return true; +} + +void SetPositionRequest::InternalSwap(SetPositionRequest* 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 + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(SetPositionRequest, position_) + + sizeof(SetPositionRequest::position_) + - PROTOBUF_FIELD_OFFSET(SetPositionRequest, extra_)>( + reinterpret_cast(&extra_), + reinterpret_cast(&other->extra_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SetPositionRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fswitch_2fv1_2fswitch_2eproto_getter, &descriptor_table_component_2fswitch_2fv1_2fswitch_2eproto_once, + file_level_metadata_component_2fswitch_2fv1_2fswitch_2eproto[0]); +} + +// =================================================================== + +class SetPositionResponse::_Internal { + public: +}; + +SetPositionResponse::SetPositionResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.component.switch.v1.SetPositionResponse) +} +SetPositionResponse::SetPositionResponse(const SetPositionResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.component.switch.v1.SetPositionResponse) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetPositionResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetPositionResponse::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata SetPositionResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fswitch_2fv1_2fswitch_2eproto_getter, &descriptor_table_component_2fswitch_2fv1_2fswitch_2eproto_once, + file_level_metadata_component_2fswitch_2fv1_2fswitch_2eproto[1]); +} + +// =================================================================== + +class GetPositionRequest::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetPositionRequest* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetPositionRequest::_Internal::extra(const GetPositionRequest* msg) { + return *msg->extra_; +} +void GetPositionRequest::clear_extra() { + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; +} +GetPositionRequest::GetPositionRequest(::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.switch.v1.GetPositionRequest) +} +GetPositionRequest::GetPositionRequest(const GetPositionRequest& 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.switch.v1.GetPositionRequest) +} + +inline void GetPositionRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; +} + +GetPositionRequest::~GetPositionRequest() { + // @@protoc_insertion_point(destructor:viam.component.switch.v1.GetPositionRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetPositionRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void GetPositionRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetPositionRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.switch.v1.GetPositionRequest) + 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* GetPositionRequest::_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.switch.v1.GetPositionRequest.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* GetPositionRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.switch.v1.GetPositionRequest) + 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.switch.v1.GetPositionRequest.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.switch.v1.GetPositionRequest) + return target; +} + +size_t GetPositionRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.switch.v1.GetPositionRequest) + 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 GetPositionRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetPositionRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPositionRequest::GetClassData() const { return &_class_data_; } + +void GetPositionRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void GetPositionRequest::MergeFrom(const GetPositionRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.switch.v1.GetPositionRequest) + 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 GetPositionRequest::CopyFrom(const GetPositionRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.switch.v1.GetPositionRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetPositionRequest::IsInitialized() const { + return true; +} + +void GetPositionRequest::InternalSwap(GetPositionRequest* 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 GetPositionRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fswitch_2fv1_2fswitch_2eproto_getter, &descriptor_table_component_2fswitch_2fv1_2fswitch_2eproto_once, + file_level_metadata_component_2fswitch_2fv1_2fswitch_2eproto[2]); +} + +// =================================================================== + +class GetPositionResponse::_Internal { + public: +}; + +GetPositionResponse::GetPositionResponse(::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.switch.v1.GetPositionResponse) +} +GetPositionResponse::GetPositionResponse(const GetPositionResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + position_ = from.position_; + // @@protoc_insertion_point(copy_constructor:viam.component.switch.v1.GetPositionResponse) +} + +inline void GetPositionResponse::SharedCtor() { +position_ = 0u; +} + +GetPositionResponse::~GetPositionResponse() { + // @@protoc_insertion_point(destructor:viam.component.switch.v1.GetPositionResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetPositionResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void GetPositionResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetPositionResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.switch.v1.GetPositionResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + position_ = 0u; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPositionResponse::_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) { + // uint32 position = 1 [json_name = "position"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + position_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&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* GetPositionResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.switch.v1.GetPositionResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 position = 1 [json_name = "position"]; + if (this->_internal_position() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_position(), 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.component.switch.v1.GetPositionResponse) + return target; +} + +size_t GetPositionResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.switch.v1.GetPositionResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // uint32 position = 1 [json_name = "position"]; + if (this->_internal_position() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_position()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPositionResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetPositionResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPositionResponse::GetClassData() const { return &_class_data_; } + +void GetPositionResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void GetPositionResponse::MergeFrom(const GetPositionResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.switch.v1.GetPositionResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_position() != 0) { + _internal_set_position(from._internal_position()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetPositionResponse::CopyFrom(const GetPositionResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.switch.v1.GetPositionResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetPositionResponse::IsInitialized() const { + return true; +} + +void GetPositionResponse::InternalSwap(GetPositionResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(position_, other->position_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetPositionResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fswitch_2fv1_2fswitch_2eproto_getter, &descriptor_table_component_2fswitch_2fv1_2fswitch_2eproto_once, + file_level_metadata_component_2fswitch_2fv1_2fswitch_2eproto[3]); +} + +// =================================================================== + +class GetNumberOfPositionsRequest::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetNumberOfPositionsRequest* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetNumberOfPositionsRequest::_Internal::extra(const GetNumberOfPositionsRequest* msg) { + return *msg->extra_; +} +void GetNumberOfPositionsRequest::clear_extra() { + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; +} +GetNumberOfPositionsRequest::GetNumberOfPositionsRequest(::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.switch.v1.GetNumberOfPositionsRequest) +} +GetNumberOfPositionsRequest::GetNumberOfPositionsRequest(const GetNumberOfPositionsRequest& 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.switch.v1.GetNumberOfPositionsRequest) +} + +inline void GetNumberOfPositionsRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; +} + +GetNumberOfPositionsRequest::~GetNumberOfPositionsRequest() { + // @@protoc_insertion_point(destructor:viam.component.switch.v1.GetNumberOfPositionsRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetNumberOfPositionsRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void GetNumberOfPositionsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetNumberOfPositionsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.switch.v1.GetNumberOfPositionsRequest) + 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* GetNumberOfPositionsRequest::_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.switch.v1.GetNumberOfPositionsRequest.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* GetNumberOfPositionsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.switch.v1.GetNumberOfPositionsRequest) + 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.switch.v1.GetNumberOfPositionsRequest.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.switch.v1.GetNumberOfPositionsRequest) + return target; +} + +size_t GetNumberOfPositionsRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.switch.v1.GetNumberOfPositionsRequest) + 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 GetNumberOfPositionsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetNumberOfPositionsRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetNumberOfPositionsRequest::GetClassData() const { return &_class_data_; } + +void GetNumberOfPositionsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void GetNumberOfPositionsRequest::MergeFrom(const GetNumberOfPositionsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.switch.v1.GetNumberOfPositionsRequest) + 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 GetNumberOfPositionsRequest::CopyFrom(const GetNumberOfPositionsRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.switch.v1.GetNumberOfPositionsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetNumberOfPositionsRequest::IsInitialized() const { + return true; +} + +void GetNumberOfPositionsRequest::InternalSwap(GetNumberOfPositionsRequest* 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 GetNumberOfPositionsRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fswitch_2fv1_2fswitch_2eproto_getter, &descriptor_table_component_2fswitch_2fv1_2fswitch_2eproto_once, + file_level_metadata_component_2fswitch_2fv1_2fswitch_2eproto[4]); +} + +// =================================================================== + +class GetNumberOfPositionsResponse::_Internal { + public: +}; + +GetNumberOfPositionsResponse::GetNumberOfPositionsResponse(::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.switch.v1.GetNumberOfPositionsResponse) +} +GetNumberOfPositionsResponse::GetNumberOfPositionsResponse(const GetNumberOfPositionsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + number_of_positions_ = from.number_of_positions_; + // @@protoc_insertion_point(copy_constructor:viam.component.switch.v1.GetNumberOfPositionsResponse) +} + +inline void GetNumberOfPositionsResponse::SharedCtor() { +number_of_positions_ = 0u; +} + +GetNumberOfPositionsResponse::~GetNumberOfPositionsResponse() { + // @@protoc_insertion_point(destructor:viam.component.switch.v1.GetNumberOfPositionsResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetNumberOfPositionsResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void GetNumberOfPositionsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetNumberOfPositionsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.component.switch.v1.GetNumberOfPositionsResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + number_of_positions_ = 0u; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetNumberOfPositionsResponse::_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) { + // uint32 number_of_positions = 1 [json_name = "numberOfPositions"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + number_of_positions_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&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* GetNumberOfPositionsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.component.switch.v1.GetNumberOfPositionsResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 number_of_positions = 1 [json_name = "numberOfPositions"]; + if (this->_internal_number_of_positions() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_number_of_positions(), 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.component.switch.v1.GetNumberOfPositionsResponse) + return target; +} + +size_t GetNumberOfPositionsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.component.switch.v1.GetNumberOfPositionsResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // uint32 number_of_positions = 1 [json_name = "numberOfPositions"]; + if (this->_internal_number_of_positions() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_number_of_positions()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetNumberOfPositionsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetNumberOfPositionsResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetNumberOfPositionsResponse::GetClassData() const { return &_class_data_; } + +void GetNumberOfPositionsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void GetNumberOfPositionsResponse::MergeFrom(const GetNumberOfPositionsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.switch.v1.GetNumberOfPositionsResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_number_of_positions() != 0) { + _internal_set_number_of_positions(from._internal_number_of_positions()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetNumberOfPositionsResponse::CopyFrom(const GetNumberOfPositionsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.switch.v1.GetNumberOfPositionsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetNumberOfPositionsResponse::IsInitialized() const { + return true; +} + +void GetNumberOfPositionsResponse::InternalSwap(GetNumberOfPositionsResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(number_of_positions_, other->number_of_positions_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetNumberOfPositionsResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_component_2fswitch_2fv1_2fswitch_2eproto_getter, &descriptor_table_component_2fswitch_2fv1_2fswitch_2eproto_once, + file_level_metadata_component_2fswitch_2fv1_2fswitch_2eproto[5]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1 +} // namespace switch +} // namespace component +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::component::switch::v1::SetPositionRequest* +Arena::CreateMaybeMessage< ::viam::component::switch::v1::SetPositionRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::switch::v1::SetPositionRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::switch::v1::SetPositionResponse* +Arena::CreateMaybeMessage< ::viam::component::switch::v1::SetPositionResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::switch::v1::SetPositionResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::switch::v1::GetPositionRequest* +Arena::CreateMaybeMessage< ::viam::component::switch::v1::GetPositionRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::switch::v1::GetPositionRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::switch::v1::GetPositionResponse* +Arena::CreateMaybeMessage< ::viam::component::switch::v1::GetPositionResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::switch::v1::GetPositionResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::switch::v1::GetNumberOfPositionsRequest* +Arena::CreateMaybeMessage< ::viam::component::switch::v1::GetNumberOfPositionsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::switch::v1::GetNumberOfPositionsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::switch::v1::GetNumberOfPositionsResponse* +Arena::CreateMaybeMessage< ::viam::component::switch::v1::GetNumberOfPositionsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::switch::v1::GetNumberOfPositionsResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/viam/api/component/switch/v1/switch.pb.h b/src/viam/api/component/switch/v1/switch.pb.h new file mode 100644 index 000000000..10801e1f6 --- /dev/null +++ b/src/viam/api/component/switch/v1/switch.pb.h @@ -0,0 +1,1527 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: component/switch/v1/switch.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_component_2fswitch_2fv1_2fswitch_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_component_2fswitch_2fv1_2fswitch_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include "common/v1/common.pb.h" +#include "google/api/annotations.pb.h" +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_component_2fswitch_2fv1_2fswitch_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_component_2fswitch_2fv1_2fswitch_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_component_2fswitch_2fv1_2fswitch_2eproto; +namespace viam { +namespace component { +namespace switch { +namespace v1 { +class GetNumberOfPositionsRequest; +struct GetNumberOfPositionsRequestDefaultTypeInternal; +extern GetNumberOfPositionsRequestDefaultTypeInternal _GetNumberOfPositionsRequest_default_instance_; +class GetNumberOfPositionsResponse; +struct GetNumberOfPositionsResponseDefaultTypeInternal; +extern GetNumberOfPositionsResponseDefaultTypeInternal _GetNumberOfPositionsResponse_default_instance_; +class GetPositionRequest; +struct GetPositionRequestDefaultTypeInternal; +extern GetPositionRequestDefaultTypeInternal _GetPositionRequest_default_instance_; +class GetPositionResponse; +struct GetPositionResponseDefaultTypeInternal; +extern GetPositionResponseDefaultTypeInternal _GetPositionResponse_default_instance_; +class SetPositionRequest; +struct SetPositionRequestDefaultTypeInternal; +extern SetPositionRequestDefaultTypeInternal _SetPositionRequest_default_instance_; +class SetPositionResponse; +struct SetPositionResponseDefaultTypeInternal; +extern SetPositionResponseDefaultTypeInternal _SetPositionResponse_default_instance_; +} // namespace v1 +} // namespace switch +} // namespace component +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::component::switch::v1::GetNumberOfPositionsRequest* Arena::CreateMaybeMessage<::viam::component::switch::v1::GetNumberOfPositionsRequest>(Arena*); +template<> ::viam::component::switch::v1::GetNumberOfPositionsResponse* Arena::CreateMaybeMessage<::viam::component::switch::v1::GetNumberOfPositionsResponse>(Arena*); +template<> ::viam::component::switch::v1::GetPositionRequest* Arena::CreateMaybeMessage<::viam::component::switch::v1::GetPositionRequest>(Arena*); +template<> ::viam::component::switch::v1::GetPositionResponse* Arena::CreateMaybeMessage<::viam::component::switch::v1::GetPositionResponse>(Arena*); +template<> ::viam::component::switch::v1::SetPositionRequest* Arena::CreateMaybeMessage<::viam::component::switch::v1::SetPositionRequest>(Arena*); +template<> ::viam::component::switch::v1::SetPositionResponse* Arena::CreateMaybeMessage<::viam::component::switch::v1::SetPositionResponse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace viam { +namespace component { +namespace switch { +namespace v1 { + +// =================================================================== + +class SetPositionRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.switch.v1.SetPositionRequest) */ { + public: + inline SetPositionRequest() : SetPositionRequest(nullptr) {} + ~SetPositionRequest() override; + explicit PROTOBUF_CONSTEXPR SetPositionRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + SetPositionRequest(const SetPositionRequest& from); + SetPositionRequest(SetPositionRequest&& from) noexcept + : SetPositionRequest() { + *this = ::std::move(from); + } + + inline SetPositionRequest& operator=(const SetPositionRequest& from) { + CopyFrom(from); + return *this; + } + inline SetPositionRequest& operator=(SetPositionRequest&& 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 SetPositionRequest& default_instance() { + return *internal_default_instance(); + } + static inline const SetPositionRequest* internal_default_instance() { + return reinterpret_cast( + &_SetPositionRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(SetPositionRequest& a, SetPositionRequest& b) { + a.Swap(&b); + } + inline void Swap(SetPositionRequest* 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(SetPositionRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SetPositionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SetPositionRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const SetPositionRequest& 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(SetPositionRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.switch.v1.SetPositionRequest"; + } + protected: + explicit SetPositionRequest(::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, + kPositionFieldNumber = 2, + }; + // 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(); + + // uint32 position = 2 [json_name = "position"]; + void clear_position(); + uint32_t position() const; + void set_position(uint32_t value); + private: + uint32_t _internal_position() const; + void _internal_set_position(uint32_t value); + public: + + // @@protoc_insertion_point(class_scope:viam.component.switch.v1.SetPositionRequest) + 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_; + uint32_t position_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_component_2fswitch_2fv1_2fswitch_2eproto; +}; +// ------------------------------------------------------------------- + +class SetPositionResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.switch.v1.SetPositionResponse) */ { + public: + inline SetPositionResponse() : SetPositionResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR SetPositionResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + SetPositionResponse(const SetPositionResponse& from); + SetPositionResponse(SetPositionResponse&& from) noexcept + : SetPositionResponse() { + *this = ::std::move(from); + } + + inline SetPositionResponse& operator=(const SetPositionResponse& from) { + CopyFrom(from); + return *this; + } + inline SetPositionResponse& operator=(SetPositionResponse&& 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 SetPositionResponse& default_instance() { + return *internal_default_instance(); + } + static inline const SetPositionResponse* internal_default_instance() { + return reinterpret_cast( + &_SetPositionResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(SetPositionResponse& a, SetPositionResponse& b) { + a.Swap(&b); + } + inline void Swap(SetPositionResponse* 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(SetPositionResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SetPositionResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const SetPositionResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const SetPositionResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); + } + public: + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.switch.v1.SetPositionResponse"; + } + protected: + explicit SetPositionResponse(::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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.component.switch.v1.SetPositionResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + friend struct ::TableStruct_component_2fswitch_2fv1_2fswitch_2eproto; +}; +// ------------------------------------------------------------------- + +class GetPositionRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.switch.v1.GetPositionRequest) */ { + public: + inline GetPositionRequest() : GetPositionRequest(nullptr) {} + ~GetPositionRequest() override; + explicit PROTOBUF_CONSTEXPR GetPositionRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetPositionRequest(const GetPositionRequest& from); + GetPositionRequest(GetPositionRequest&& from) noexcept + : GetPositionRequest() { + *this = ::std::move(from); + } + + inline GetPositionRequest& operator=(const GetPositionRequest& from) { + CopyFrom(from); + return *this; + } + inline GetPositionRequest& operator=(GetPositionRequest&& 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 GetPositionRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetPositionRequest* internal_default_instance() { + return reinterpret_cast( + &_GetPositionRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(GetPositionRequest& a, GetPositionRequest& b) { + a.Swap(&b); + } + inline void Swap(GetPositionRequest* 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(GetPositionRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetPositionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPositionRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetPositionRequest& 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(GetPositionRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.switch.v1.GetPositionRequest"; + } + protected: + explicit GetPositionRequest(::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.switch.v1.GetPositionRequest) + 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_2fswitch_2fv1_2fswitch_2eproto; +}; +// ------------------------------------------------------------------- + +class GetPositionResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.switch.v1.GetPositionResponse) */ { + public: + inline GetPositionResponse() : GetPositionResponse(nullptr) {} + ~GetPositionResponse() override; + explicit PROTOBUF_CONSTEXPR GetPositionResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetPositionResponse(const GetPositionResponse& from); + GetPositionResponse(GetPositionResponse&& from) noexcept + : GetPositionResponse() { + *this = ::std::move(from); + } + + inline GetPositionResponse& operator=(const GetPositionResponse& from) { + CopyFrom(from); + return *this; + } + inline GetPositionResponse& operator=(GetPositionResponse&& 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 GetPositionResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetPositionResponse* internal_default_instance() { + return reinterpret_cast( + &_GetPositionResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(GetPositionResponse& a, GetPositionResponse& b) { + a.Swap(&b); + } + inline void Swap(GetPositionResponse* 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(GetPositionResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetPositionResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPositionResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetPositionResponse& 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(GetPositionResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.switch.v1.GetPositionResponse"; + } + protected: + explicit GetPositionResponse(::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 { + kPositionFieldNumber = 1, + }; + // uint32 position = 1 [json_name = "position"]; + void clear_position(); + uint32_t position() const; + void set_position(uint32_t value); + private: + uint32_t _internal_position() const; + void _internal_set_position(uint32_t value); + public: + + // @@protoc_insertion_point(class_scope:viam.component.switch.v1.GetPositionResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + uint32_t position_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_component_2fswitch_2fv1_2fswitch_2eproto; +}; +// ------------------------------------------------------------------- + +class GetNumberOfPositionsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.switch.v1.GetNumberOfPositionsRequest) */ { + public: + inline GetNumberOfPositionsRequest() : GetNumberOfPositionsRequest(nullptr) {} + ~GetNumberOfPositionsRequest() override; + explicit PROTOBUF_CONSTEXPR GetNumberOfPositionsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetNumberOfPositionsRequest(const GetNumberOfPositionsRequest& from); + GetNumberOfPositionsRequest(GetNumberOfPositionsRequest&& from) noexcept + : GetNumberOfPositionsRequest() { + *this = ::std::move(from); + } + + inline GetNumberOfPositionsRequest& operator=(const GetNumberOfPositionsRequest& from) { + CopyFrom(from); + return *this; + } + inline GetNumberOfPositionsRequest& operator=(GetNumberOfPositionsRequest&& 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 GetNumberOfPositionsRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetNumberOfPositionsRequest* internal_default_instance() { + return reinterpret_cast( + &_GetNumberOfPositionsRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(GetNumberOfPositionsRequest& a, GetNumberOfPositionsRequest& b) { + a.Swap(&b); + } + inline void Swap(GetNumberOfPositionsRequest* 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(GetNumberOfPositionsRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetNumberOfPositionsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetNumberOfPositionsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetNumberOfPositionsRequest& 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(GetNumberOfPositionsRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.switch.v1.GetNumberOfPositionsRequest"; + } + protected: + explicit GetNumberOfPositionsRequest(::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.switch.v1.GetNumberOfPositionsRequest) + 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_2fswitch_2fv1_2fswitch_2eproto; +}; +// ------------------------------------------------------------------- + +class GetNumberOfPositionsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.switch.v1.GetNumberOfPositionsResponse) */ { + public: + inline GetNumberOfPositionsResponse() : GetNumberOfPositionsResponse(nullptr) {} + ~GetNumberOfPositionsResponse() override; + explicit PROTOBUF_CONSTEXPR GetNumberOfPositionsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetNumberOfPositionsResponse(const GetNumberOfPositionsResponse& from); + GetNumberOfPositionsResponse(GetNumberOfPositionsResponse&& from) noexcept + : GetNumberOfPositionsResponse() { + *this = ::std::move(from); + } + + inline GetNumberOfPositionsResponse& operator=(const GetNumberOfPositionsResponse& from) { + CopyFrom(from); + return *this; + } + inline GetNumberOfPositionsResponse& operator=(GetNumberOfPositionsResponse&& 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 GetNumberOfPositionsResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetNumberOfPositionsResponse* internal_default_instance() { + return reinterpret_cast( + &_GetNumberOfPositionsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(GetNumberOfPositionsResponse& a, GetNumberOfPositionsResponse& b) { + a.Swap(&b); + } + inline void Swap(GetNumberOfPositionsResponse* 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(GetNumberOfPositionsResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetNumberOfPositionsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetNumberOfPositionsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetNumberOfPositionsResponse& 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(GetNumberOfPositionsResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.switch.v1.GetNumberOfPositionsResponse"; + } + protected: + explicit GetNumberOfPositionsResponse(::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 { + kNumberOfPositionsFieldNumber = 1, + }; + // uint32 number_of_positions = 1 [json_name = "numberOfPositions"]; + void clear_number_of_positions(); + uint32_t number_of_positions() const; + void set_number_of_positions(uint32_t value); + private: + uint32_t _internal_number_of_positions() const; + void _internal_set_number_of_positions(uint32_t value); + public: + + // @@protoc_insertion_point(class_scope:viam.component.switch.v1.GetNumberOfPositionsResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + uint32_t number_of_positions_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_component_2fswitch_2fv1_2fswitch_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// SetPositionRequest + +// string name = 1 [json_name = "name"]; +inline void SetPositionRequest::clear_name() { + name_.ClearToEmpty(); +} +inline const std::string& SetPositionRequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.switch.v1.SetPositionRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void SetPositionRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.switch.v1.SetPositionRequest.name) +} +inline std::string* SetPositionRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.switch.v1.SetPositionRequest.name) + return _s; +} +inline const std::string& SetPositionRequest::_internal_name() const { + return name_.Get(); +} +inline void SetPositionRequest::_internal_set_name(const std::string& value) { + + name_.Set(value, GetArenaForAllocation()); +} +inline std::string* SetPositionRequest::_internal_mutable_name() { + + return name_.Mutable(GetArenaForAllocation()); +} +inline std::string* SetPositionRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.switch.v1.SetPositionRequest.name) + return name_.Release(); +} +inline void SetPositionRequest::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.switch.v1.SetPositionRequest.name) +} + +// uint32 position = 2 [json_name = "position"]; +inline void SetPositionRequest::clear_position() { + position_ = 0u; +} +inline uint32_t SetPositionRequest::_internal_position() const { + return position_; +} +inline uint32_t SetPositionRequest::position() const { + // @@protoc_insertion_point(field_get:viam.component.switch.v1.SetPositionRequest.position) + return _internal_position(); +} +inline void SetPositionRequest::_internal_set_position(uint32_t value) { + + position_ = value; +} +inline void SetPositionRequest::set_position(uint32_t value) { + _internal_set_position(value); + // @@protoc_insertion_point(field_set:viam.component.switch.v1.SetPositionRequest.position) +} + +// .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool SetPositionRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} +inline bool SetPositionRequest::has_extra() const { + return _internal_has_extra(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& SetPositionRequest::_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& SetPositionRequest::extra() const { + // @@protoc_insertion_point(field_get:viam.component.switch.v1.SetPositionRequest.extra) + return _internal_extra(); +} +inline void SetPositionRequest::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.switch.v1.SetPositionRequest.extra) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetPositionRequest::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* SetPositionRequest::unsafe_arena_release_extra() { + // @@protoc_insertion_point(field_release:viam.component.switch.v1.SetPositionRequest.extra) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetPositionRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; + } + return extra_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetPositionRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); + // @@protoc_insertion_point(field_mutable:viam.component.switch.v1.SetPositionRequest.extra) + return _msg; +} +inline void SetPositionRequest::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.switch.v1.SetPositionRequest.extra) +} + +// ------------------------------------------------------------------- + +// SetPositionResponse + +// ------------------------------------------------------------------- + +// GetPositionRequest + +// string name = 1 [json_name = "name"]; +inline void GetPositionRequest::clear_name() { + name_.ClearToEmpty(); +} +inline const std::string& GetPositionRequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.switch.v1.GetPositionRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetPositionRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.switch.v1.GetPositionRequest.name) +} +inline std::string* GetPositionRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.switch.v1.GetPositionRequest.name) + return _s; +} +inline const std::string& GetPositionRequest::_internal_name() const { + return name_.Get(); +} +inline void GetPositionRequest::_internal_set_name(const std::string& value) { + + name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetPositionRequest::_internal_mutable_name() { + + return name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetPositionRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.switch.v1.GetPositionRequest.name) + return name_.Release(); +} +inline void GetPositionRequest::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.switch.v1.GetPositionRequest.name) +} + +// .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetPositionRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} +inline bool GetPositionRequest::has_extra() const { + return _internal_has_extra(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetPositionRequest::_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& GetPositionRequest::extra() const { + // @@protoc_insertion_point(field_get:viam.component.switch.v1.GetPositionRequest.extra) + return _internal_extra(); +} +inline void GetPositionRequest::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.switch.v1.GetPositionRequest.extra) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPositionRequest::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* GetPositionRequest::unsafe_arena_release_extra() { + // @@protoc_insertion_point(field_release:viam.component.switch.v1.GetPositionRequest.extra) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPositionRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; + } + return extra_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPositionRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); + // @@protoc_insertion_point(field_mutable:viam.component.switch.v1.GetPositionRequest.extra) + return _msg; +} +inline void GetPositionRequest::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.switch.v1.GetPositionRequest.extra) +} + +// ------------------------------------------------------------------- + +// GetPositionResponse + +// uint32 position = 1 [json_name = "position"]; +inline void GetPositionResponse::clear_position() { + position_ = 0u; +} +inline uint32_t GetPositionResponse::_internal_position() const { + return position_; +} +inline uint32_t GetPositionResponse::position() const { + // @@protoc_insertion_point(field_get:viam.component.switch.v1.GetPositionResponse.position) + return _internal_position(); +} +inline void GetPositionResponse::_internal_set_position(uint32_t value) { + + position_ = value; +} +inline void GetPositionResponse::set_position(uint32_t value) { + _internal_set_position(value); + // @@protoc_insertion_point(field_set:viam.component.switch.v1.GetPositionResponse.position) +} + +// ------------------------------------------------------------------- + +// GetNumberOfPositionsRequest + +// string name = 1 [json_name = "name"]; +inline void GetNumberOfPositionsRequest::clear_name() { + name_.ClearToEmpty(); +} +inline const std::string& GetNumberOfPositionsRequest::name() const { + // @@protoc_insertion_point(field_get:viam.component.switch.v1.GetNumberOfPositionsRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetNumberOfPositionsRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.component.switch.v1.GetNumberOfPositionsRequest.name) +} +inline std::string* GetNumberOfPositionsRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.component.switch.v1.GetNumberOfPositionsRequest.name) + return _s; +} +inline const std::string& GetNumberOfPositionsRequest::_internal_name() const { + return name_.Get(); +} +inline void GetNumberOfPositionsRequest::_internal_set_name(const std::string& value) { + + name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetNumberOfPositionsRequest::_internal_mutable_name() { + + return name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetNumberOfPositionsRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.component.switch.v1.GetNumberOfPositionsRequest.name) + return name_.Release(); +} +inline void GetNumberOfPositionsRequest::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.switch.v1.GetNumberOfPositionsRequest.name) +} + +// .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetNumberOfPositionsRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} +inline bool GetNumberOfPositionsRequest::has_extra() const { + return _internal_has_extra(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetNumberOfPositionsRequest::_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& GetNumberOfPositionsRequest::extra() const { + // @@protoc_insertion_point(field_get:viam.component.switch.v1.GetNumberOfPositionsRequest.extra) + return _internal_extra(); +} +inline void GetNumberOfPositionsRequest::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.switch.v1.GetNumberOfPositionsRequest.extra) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetNumberOfPositionsRequest::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* GetNumberOfPositionsRequest::unsafe_arena_release_extra() { + // @@protoc_insertion_point(field_release:viam.component.switch.v1.GetNumberOfPositionsRequest.extra) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetNumberOfPositionsRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; + } + return extra_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetNumberOfPositionsRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); + // @@protoc_insertion_point(field_mutable:viam.component.switch.v1.GetNumberOfPositionsRequest.extra) + return _msg; +} +inline void GetNumberOfPositionsRequest::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.switch.v1.GetNumberOfPositionsRequest.extra) +} + +// ------------------------------------------------------------------- + +// GetNumberOfPositionsResponse + +// uint32 number_of_positions = 1 [json_name = "numberOfPositions"]; +inline void GetNumberOfPositionsResponse::clear_number_of_positions() { + number_of_positions_ = 0u; +} +inline uint32_t GetNumberOfPositionsResponse::_internal_number_of_positions() const { + return number_of_positions_; +} +inline uint32_t GetNumberOfPositionsResponse::number_of_positions() const { + // @@protoc_insertion_point(field_get:viam.component.switch.v1.GetNumberOfPositionsResponse.number_of_positions) + return _internal_number_of_positions(); +} +inline void GetNumberOfPositionsResponse::_internal_set_number_of_positions(uint32_t value) { + + number_of_positions_ = value; +} +inline void GetNumberOfPositionsResponse::set_number_of_positions(uint32_t value) { + _internal_set_number_of_positions(value); + // @@protoc_insertion_point(field_set:viam.component.switch.v1.GetNumberOfPositionsResponse.number_of_positions) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v1 +} // namespace switch +} // namespace component +} // namespace viam + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_component_2fswitch_2fv1_2fswitch_2eproto diff --git a/src/viam/api/component/testecho/v1/testecho.grpc.pb.cc b/src/viam/api/component/testecho/v1/testecho.grpc.pb.cc index 4f93866ba..e6cb21b70 100644 --- a/src/viam/api/component/testecho/v1/testecho.grpc.pb.cc +++ b/src/viam/api/component/testecho/v1/testecho.grpc.pb.cc @@ -6,19 +6,19 @@ #include "component/testecho/v1/testecho.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace component { namespace testecho { @@ -33,102 +33,112 @@ static const char* TestEchoService_method_names[] = { std::unique_ptr< TestEchoService::Stub> TestEchoService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { (void)options; - std::unique_ptr< TestEchoService::Stub> stub(new TestEchoService::Stub(channel, options)); + std::unique_ptr< TestEchoService::Stub> stub(new TestEchoService::Stub(channel)); return stub; } -TestEchoService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) - : channel_(channel), rpcmethod_Echo_(TestEchoService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_EchoMultiple_(TestEchoService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::SERVER_STREAMING, channel) - , rpcmethod_EchoBiDi_(TestEchoService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::BIDI_STREAMING, channel) - , rpcmethod_Stop_(TestEchoService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) +TestEchoService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_Echo_(TestEchoService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_EchoMultiple_(TestEchoService_method_names[1], ::grpc::internal::RpcMethod::SERVER_STREAMING, channel) + , rpcmethod_EchoBiDi_(TestEchoService_method_names[2], ::grpc::internal::RpcMethod::BIDI_STREAMING, channel) + , rpcmethod_Stop_(TestEchoService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status TestEchoService::Stub::Echo(::grpc::ClientContext* context, const ::viam::component::testecho::v1::EchoRequest& request, ::viam::component::testecho::v1::EchoResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::testecho::v1::EchoRequest, ::viam::component::testecho::v1::EchoResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Echo_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_Echo_, context, request, response); } -void TestEchoService::Stub::async::Echo(::grpc::ClientContext* context, const ::viam::component::testecho::v1::EchoRequest* request, ::viam::component::testecho::v1::EchoResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::testecho::v1::EchoRequest, ::viam::component::testecho::v1::EchoResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Echo_, context, request, response, std::move(f)); +void TestEchoService::Stub::experimental_async::Echo(::grpc::ClientContext* context, const ::viam::component::testecho::v1::EchoRequest* request, ::viam::component::testecho::v1::EchoResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Echo_, context, request, response, std::move(f)); } -void TestEchoService::Stub::async::Echo(::grpc::ClientContext* context, const ::viam::component::testecho::v1::EchoRequest* request, ::viam::component::testecho::v1::EchoResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Echo_, context, request, response, reactor); +void TestEchoService::Stub::experimental_async::Echo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::testecho::v1::EchoResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Echo_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::testecho::v1::EchoResponse>* TestEchoService::Stub::PrepareAsyncEchoRaw(::grpc::ClientContext* context, const ::viam::component::testecho::v1::EchoRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::testecho::v1::EchoResponse, ::viam::component::testecho::v1::EchoRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Echo_, context, request); +void TestEchoService::Stub::experimental_async::Echo(::grpc::ClientContext* context, const ::viam::component::testecho::v1::EchoRequest* request, ::viam::component::testecho::v1::EchoResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Echo_, context, request, response, reactor); +} + +void TestEchoService::Stub::experimental_async::Echo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::testecho::v1::EchoResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Echo_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::testecho::v1::EchoResponse>* TestEchoService::Stub::AsyncEchoRaw(::grpc::ClientContext* context, const ::viam::component::testecho::v1::EchoRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncEchoRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::testecho::v1::EchoResponse>::Create(channel_.get(), cq, rpcmethod_Echo_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::testecho::v1::EchoResponse>* TestEchoService::Stub::PrepareAsyncEchoRaw(::grpc::ClientContext* context, const ::viam::component::testecho::v1::EchoRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::testecho::v1::EchoResponse>::Create(channel_.get(), cq, rpcmethod_Echo_, context, request, false); } ::grpc::ClientReader< ::viam::component::testecho::v1::EchoMultipleResponse>* TestEchoService::Stub::EchoMultipleRaw(::grpc::ClientContext* context, const ::viam::component::testecho::v1::EchoMultipleRequest& request) { - return ::grpc::internal::ClientReaderFactory< ::viam::component::testecho::v1::EchoMultipleResponse>::Create(channel_.get(), rpcmethod_EchoMultiple_, context, request); + return ::grpc_impl::internal::ClientReaderFactory< ::viam::component::testecho::v1::EchoMultipleResponse>::Create(channel_.get(), rpcmethod_EchoMultiple_, context, request); } -void TestEchoService::Stub::async::EchoMultiple(::grpc::ClientContext* context, const ::viam::component::testecho::v1::EchoMultipleRequest* request, ::grpc::ClientReadReactor< ::viam::component::testecho::v1::EchoMultipleResponse>* reactor) { - ::grpc::internal::ClientCallbackReaderFactory< ::viam::component::testecho::v1::EchoMultipleResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_EchoMultiple_, context, request, reactor); +void TestEchoService::Stub::experimental_async::EchoMultiple(::grpc::ClientContext* context, ::viam::component::testecho::v1::EchoMultipleRequest* request, ::grpc::experimental::ClientReadReactor< ::viam::component::testecho::v1::EchoMultipleResponse>* reactor) { + ::grpc_impl::internal::ClientCallbackReaderFactory< ::viam::component::testecho::v1::EchoMultipleResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_EchoMultiple_, context, request, reactor); } ::grpc::ClientAsyncReader< ::viam::component::testecho::v1::EchoMultipleResponse>* TestEchoService::Stub::AsyncEchoMultipleRaw(::grpc::ClientContext* context, const ::viam::component::testecho::v1::EchoMultipleRequest& request, ::grpc::CompletionQueue* cq, void* tag) { - return ::grpc::internal::ClientAsyncReaderFactory< ::viam::component::testecho::v1::EchoMultipleResponse>::Create(channel_.get(), cq, rpcmethod_EchoMultiple_, context, request, true, tag); + return ::grpc_impl::internal::ClientAsyncReaderFactory< ::viam::component::testecho::v1::EchoMultipleResponse>::Create(channel_.get(), cq, rpcmethod_EchoMultiple_, context, request, true, tag); } ::grpc::ClientAsyncReader< ::viam::component::testecho::v1::EchoMultipleResponse>* TestEchoService::Stub::PrepareAsyncEchoMultipleRaw(::grpc::ClientContext* context, const ::viam::component::testecho::v1::EchoMultipleRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncReaderFactory< ::viam::component::testecho::v1::EchoMultipleResponse>::Create(channel_.get(), cq, rpcmethod_EchoMultiple_, context, request, false, nullptr); + return ::grpc_impl::internal::ClientAsyncReaderFactory< ::viam::component::testecho::v1::EchoMultipleResponse>::Create(channel_.get(), cq, rpcmethod_EchoMultiple_, context, request, false, nullptr); } ::grpc::ClientReaderWriter< ::viam::component::testecho::v1::EchoBiDiRequest, ::viam::component::testecho::v1::EchoBiDiResponse>* TestEchoService::Stub::EchoBiDiRaw(::grpc::ClientContext* context) { - return ::grpc::internal::ClientReaderWriterFactory< ::viam::component::testecho::v1::EchoBiDiRequest, ::viam::component::testecho::v1::EchoBiDiResponse>::Create(channel_.get(), rpcmethod_EchoBiDi_, context); + return ::grpc_impl::internal::ClientReaderWriterFactory< ::viam::component::testecho::v1::EchoBiDiRequest, ::viam::component::testecho::v1::EchoBiDiResponse>::Create(channel_.get(), rpcmethod_EchoBiDi_, context); } -void TestEchoService::Stub::async::EchoBiDi(::grpc::ClientContext* context, ::grpc::ClientBidiReactor< ::viam::component::testecho::v1::EchoBiDiRequest,::viam::component::testecho::v1::EchoBiDiResponse>* reactor) { - ::grpc::internal::ClientCallbackReaderWriterFactory< ::viam::component::testecho::v1::EchoBiDiRequest,::viam::component::testecho::v1::EchoBiDiResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_EchoBiDi_, context, reactor); +void TestEchoService::Stub::experimental_async::EchoBiDi(::grpc::ClientContext* context, ::grpc::experimental::ClientBidiReactor< ::viam::component::testecho::v1::EchoBiDiRequest,::viam::component::testecho::v1::EchoBiDiResponse>* reactor) { + ::grpc_impl::internal::ClientCallbackReaderWriterFactory< ::viam::component::testecho::v1::EchoBiDiRequest,::viam::component::testecho::v1::EchoBiDiResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_EchoBiDi_, context, reactor); } ::grpc::ClientAsyncReaderWriter< ::viam::component::testecho::v1::EchoBiDiRequest, ::viam::component::testecho::v1::EchoBiDiResponse>* TestEchoService::Stub::AsyncEchoBiDiRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) { - return ::grpc::internal::ClientAsyncReaderWriterFactory< ::viam::component::testecho::v1::EchoBiDiRequest, ::viam::component::testecho::v1::EchoBiDiResponse>::Create(channel_.get(), cq, rpcmethod_EchoBiDi_, context, true, tag); + return ::grpc_impl::internal::ClientAsyncReaderWriterFactory< ::viam::component::testecho::v1::EchoBiDiRequest, ::viam::component::testecho::v1::EchoBiDiResponse>::Create(channel_.get(), cq, rpcmethod_EchoBiDi_, context, true, tag); } ::grpc::ClientAsyncReaderWriter< ::viam::component::testecho::v1::EchoBiDiRequest, ::viam::component::testecho::v1::EchoBiDiResponse>* TestEchoService::Stub::PrepareAsyncEchoBiDiRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncReaderWriterFactory< ::viam::component::testecho::v1::EchoBiDiRequest, ::viam::component::testecho::v1::EchoBiDiResponse>::Create(channel_.get(), cq, rpcmethod_EchoBiDi_, context, false, nullptr); + return ::grpc_impl::internal::ClientAsyncReaderWriterFactory< ::viam::component::testecho::v1::EchoBiDiRequest, ::viam::component::testecho::v1::EchoBiDiResponse>::Create(channel_.get(), cq, rpcmethod_EchoBiDi_, context, false, nullptr); } ::grpc::Status TestEchoService::Stub::Stop(::grpc::ClientContext* context, const ::viam::component::testecho::v1::StopRequest& request, ::viam::component::testecho::v1::StopResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::testecho::v1::StopRequest, ::viam::component::testecho::v1::StopResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Stop_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_Stop_, context, request, response); } -void TestEchoService::Stub::async::Stop(::grpc::ClientContext* context, const ::viam::component::testecho::v1::StopRequest* request, ::viam::component::testecho::v1::StopResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::testecho::v1::StopRequest, ::viam::component::testecho::v1::StopResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, std::move(f)); +void TestEchoService::Stub::experimental_async::Stop(::grpc::ClientContext* context, const ::viam::component::testecho::v1::StopRequest* request, ::viam::component::testecho::v1::StopResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, std::move(f)); } -void TestEchoService::Stub::async::Stop(::grpc::ClientContext* context, const ::viam::component::testecho::v1::StopRequest* request, ::viam::component::testecho::v1::StopResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, reactor); +void TestEchoService::Stub::experimental_async::Stop(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::testecho::v1::StopResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::component::testecho::v1::StopResponse>* TestEchoService::Stub::PrepareAsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::testecho::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::testecho::v1::StopResponse, ::viam::component::testecho::v1::StopRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Stop_, context, request); +void TestEchoService::Stub::experimental_async::Stop(::grpc::ClientContext* context, const ::viam::component::testecho::v1::StopRequest* request, ::viam::component::testecho::v1::StopResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, reactor); +} + +void TestEchoService::Stub::experimental_async::Stop(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::testecho::v1::StopResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::component::testecho::v1::StopResponse>* TestEchoService::Stub::AsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::testecho::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncStopRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::testecho::v1::StopResponse>::Create(channel_.get(), cq, rpcmethod_Stop_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::component::testecho::v1::StopResponse>* TestEchoService::Stub::PrepareAsyncStopRaw(::grpc::ClientContext* context, const ::viam::component::testecho::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::component::testecho::v1::StopResponse>::Create(channel_.get(), cq, rpcmethod_Stop_, context, request, false); } TestEchoService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( TestEchoService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TestEchoService::Service, ::viam::component::testecho::v1::EchoRequest, ::viam::component::testecho::v1::EchoResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< TestEchoService::Service, ::viam::component::testecho::v1::EchoRequest, ::viam::component::testecho::v1::EchoResponse>( [](TestEchoService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::testecho::v1::EchoRequest* req, ::viam::component::testecho::v1::EchoResponse* resp) { return service->Echo(ctx, req, resp); @@ -138,9 +148,9 @@ TestEchoService::Service::Service() { ::grpc::internal::RpcMethod::SERVER_STREAMING, new ::grpc::internal::ServerStreamingHandler< TestEchoService::Service, ::viam::component::testecho::v1::EchoMultipleRequest, ::viam::component::testecho::v1::EchoMultipleResponse>( [](TestEchoService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::testecho::v1::EchoMultipleRequest* req, - ::grpc::ServerWriter<::viam::component::testecho::v1::EchoMultipleResponse>* writer) { + ::grpc_impl::ServerWriter<::viam::component::testecho::v1::EchoMultipleResponse>* writer) { return service->EchoMultiple(ctx, req, writer); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( @@ -148,17 +158,17 @@ TestEchoService::Service::Service() { ::grpc::internal::RpcMethod::BIDI_STREAMING, new ::grpc::internal::BidiStreamingHandler< TestEchoService::Service, ::viam::component::testecho::v1::EchoBiDiRequest, ::viam::component::testecho::v1::EchoBiDiResponse>( [](TestEchoService::Service* service, - ::grpc::ServerContext* ctx, - ::grpc::ServerReaderWriter<::viam::component::testecho::v1::EchoBiDiResponse, + ::grpc_impl::ServerContext* ctx, + ::grpc_impl::ServerReaderWriter<::viam::component::testecho::v1::EchoBiDiResponse, ::viam::component::testecho::v1::EchoBiDiRequest>* stream) { return service->EchoBiDi(ctx, stream); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( TestEchoService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< TestEchoService::Service, ::viam::component::testecho::v1::StopRequest, ::viam::component::testecho::v1::StopResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< TestEchoService::Service, ::viam::component::testecho::v1::StopRequest, ::viam::component::testecho::v1::StopResponse>( [](TestEchoService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::component::testecho::v1::StopRequest* req, ::viam::component::testecho::v1::StopResponse* resp) { return service->Stop(ctx, req, resp); diff --git a/src/viam/api/component/testecho/v1/testecho.grpc.pb.h b/src/viam/api/component/testecho/v1/testecho.grpc.pb.h index a1e435d83..ef1c94455 100644 --- a/src/viam/api/component/testecho/v1/testecho.grpc.pb.h +++ b/src/viam/api/component/testecho/v1/testecho.grpc.pb.h @@ -7,23 +7,24 @@ #include "component/testecho/v1/testecho.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace component { @@ -70,20 +71,52 @@ class TestEchoService final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::testecho::v1::StopResponse>> PrepareAsyncStop(::grpc::ClientContext* context, const ::viam::component::testecho::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::testecho::v1::StopResponse>>(PrepareAsyncStopRaw(context, request, cq)); } - class async_interface { + class experimental_async_interface { public: - virtual ~async_interface() {} + virtual ~experimental_async_interface() {} virtual void Echo(::grpc::ClientContext* context, const ::viam::component::testecho::v1::EchoRequest* request, ::viam::component::testecho::v1::EchoResponse* response, std::function) = 0; + virtual void Echo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::testecho::v1::EchoResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void Echo(::grpc::ClientContext* context, const ::viam::component::testecho::v1::EchoRequest* request, ::viam::component::testecho::v1::EchoResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - virtual void EchoMultiple(::grpc::ClientContext* context, const ::viam::component::testecho::v1::EchoMultipleRequest* request, ::grpc::ClientReadReactor< ::viam::component::testecho::v1::EchoMultipleResponse>* reactor) = 0; + #else + virtual void Echo(::grpc::ClientContext* context, const ::viam::component::testecho::v1::EchoRequest* request, ::viam::component::testecho::v1::EchoResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void Echo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::testecho::v1::EchoResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void Echo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::testecho::v1::EchoResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void EchoMultiple(::grpc::ClientContext* context, ::viam::component::testecho::v1::EchoMultipleRequest* request, ::grpc::ClientReadReactor< ::viam::component::testecho::v1::EchoMultipleResponse>* reactor) = 0; + #else + virtual void EchoMultiple(::grpc::ClientContext* context, ::viam::component::testecho::v1::EchoMultipleRequest* request, ::grpc::experimental::ClientReadReactor< ::viam::component::testecho::v1::EchoMultipleResponse>* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void EchoBiDi(::grpc::ClientContext* context, ::grpc::ClientBidiReactor< ::viam::component::testecho::v1::EchoBiDiRequest,::viam::component::testecho::v1::EchoBiDiResponse>* reactor) = 0; + #else + virtual void EchoBiDi(::grpc::ClientContext* context, ::grpc::experimental::ClientBidiReactor< ::viam::component::testecho::v1::EchoBiDiRequest,::viam::component::testecho::v1::EchoBiDiResponse>* reactor) = 0; + #endif virtual void Stop(::grpc::ClientContext* context, const ::viam::component::testecho::v1::StopRequest* request, ::viam::component::testecho::v1::StopResponse* response, std::function) = 0; + virtual void Stop(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::testecho::v1::StopResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void Stop(::grpc::ClientContext* context, const ::viam::component::testecho::v1::StopRequest* request, ::viam::component::testecho::v1::StopResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void Stop(::grpc::ClientContext* context, const ::viam::component::testecho::v1::StopRequest* request, ::viam::component::testecho::v1::StopResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void Stop(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::testecho::v1::StopResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void Stop(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::testecho::v1::StopResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif }; - typedef class async_interface experimental_async_interface; - virtual class async_interface* async() { return nullptr; } - class async_interface* experimental_async() { return async(); } - private: + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef class experimental_async_interface async_interface; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + async_interface* async() { return experimental_async(); } + #endif + virtual class experimental_async_interface* experimental_async() { return nullptr; } + private: virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::testecho::v1::EchoResponse>* AsyncEchoRaw(::grpc::ClientContext* context, const ::viam::component::testecho::v1::EchoRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::testecho::v1::EchoResponse>* PrepareAsyncEchoRaw(::grpc::ClientContext* context, const ::viam::component::testecho::v1::EchoRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientReaderInterface< ::viam::component::testecho::v1::EchoMultipleResponse>* EchoMultipleRaw(::grpc::ClientContext* context, const ::viam::component::testecho::v1::EchoMultipleRequest& request) = 0; @@ -97,7 +130,7 @@ class TestEchoService final { }; class Stub final : public StubInterface { public: - Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); ::grpc::Status Echo(::grpc::ClientContext* context, const ::viam::component::testecho::v1::EchoRequest& request, ::viam::component::testecho::v1::EchoResponse* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::testecho::v1::EchoResponse>> AsyncEcho(::grpc::ClientContext* context, const ::viam::component::testecho::v1::EchoRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::testecho::v1::EchoResponse>>(AsyncEchoRaw(context, request, cq)); @@ -130,26 +163,54 @@ class TestEchoService final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::testecho::v1::StopResponse>> PrepareAsyncStop(::grpc::ClientContext* context, const ::viam::component::testecho::v1::StopRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::testecho::v1::StopResponse>>(PrepareAsyncStopRaw(context, request, cq)); } - class async final : - public StubInterface::async_interface { + class experimental_async final : + public StubInterface::experimental_async_interface { public: void Echo(::grpc::ClientContext* context, const ::viam::component::testecho::v1::EchoRequest* request, ::viam::component::testecho::v1::EchoResponse* response, std::function) override; + void Echo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::testecho::v1::EchoResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void Echo(::grpc::ClientContext* context, const ::viam::component::testecho::v1::EchoRequest* request, ::viam::component::testecho::v1::EchoResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - void EchoMultiple(::grpc::ClientContext* context, const ::viam::component::testecho::v1::EchoMultipleRequest* request, ::grpc::ClientReadReactor< ::viam::component::testecho::v1::EchoMultipleResponse>* reactor) override; + #else + void Echo(::grpc::ClientContext* context, const ::viam::component::testecho::v1::EchoRequest* request, ::viam::component::testecho::v1::EchoResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void Echo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::testecho::v1::EchoResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void Echo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::testecho::v1::EchoResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void EchoMultiple(::grpc::ClientContext* context, ::viam::component::testecho::v1::EchoMultipleRequest* request, ::grpc::ClientReadReactor< ::viam::component::testecho::v1::EchoMultipleResponse>* reactor) override; + #else + void EchoMultiple(::grpc::ClientContext* context, ::viam::component::testecho::v1::EchoMultipleRequest* request, ::grpc::experimental::ClientReadReactor< ::viam::component::testecho::v1::EchoMultipleResponse>* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void EchoBiDi(::grpc::ClientContext* context, ::grpc::ClientBidiReactor< ::viam::component::testecho::v1::EchoBiDiRequest,::viam::component::testecho::v1::EchoBiDiResponse>* reactor) override; + #else + void EchoBiDi(::grpc::ClientContext* context, ::grpc::experimental::ClientBidiReactor< ::viam::component::testecho::v1::EchoBiDiRequest,::viam::component::testecho::v1::EchoBiDiResponse>* reactor) override; + #endif void Stop(::grpc::ClientContext* context, const ::viam::component::testecho::v1::StopRequest* request, ::viam::component::testecho::v1::StopResponse* response, std::function) override; + void Stop(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::testecho::v1::StopResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void Stop(::grpc::ClientContext* context, const ::viam::component::testecho::v1::StopRequest* request, ::viam::component::testecho::v1::StopResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void Stop(::grpc::ClientContext* context, const ::viam::component::testecho::v1::StopRequest* request, ::viam::component::testecho::v1::StopResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void Stop(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::testecho::v1::StopResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void Stop(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::component::testecho::v1::StopResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif private: friend class Stub; - explicit async(Stub* stub): stub_(stub) { } + explicit experimental_async(Stub* stub): stub_(stub) { } Stub* stub() { return stub_; } Stub* stub_; }; - class async* async() override { return &async_stub_; } + class experimental_async_interface* experimental_async() override { return &async_stub_; } private: std::shared_ptr< ::grpc::ChannelInterface> channel_; - class async async_stub_{this}; + class experimental_async async_stub_{this}; ::grpc::ClientAsyncResponseReader< ::viam::component::testecho::v1::EchoResponse>* AsyncEchoRaw(::grpc::ClientContext* context, const ::viam::component::testecho::v1::EchoRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::component::testecho::v1::EchoResponse>* PrepareAsyncEchoRaw(::grpc::ClientContext* context, const ::viam::component::testecho::v1::EchoRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientReader< ::viam::component::testecho::v1::EchoMultipleResponse>* EchoMultipleRaw(::grpc::ClientContext* context, const ::viam::component::testecho::v1::EchoMultipleRequest& request) override; @@ -258,22 +319,36 @@ class TestEchoService final { }; typedef WithAsyncMethod_Echo > > > AsyncService; template - class WithCallbackMethod_Echo : public BaseClass { + class ExperimentalWithCallbackMethod_Echo : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_Echo() { - ::grpc::Service::MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::testecho::v1::EchoRequest, ::viam::component::testecho::v1::EchoResponse>( + ExperimentalWithCallbackMethod_Echo() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::testecho::v1::EchoRequest, ::viam::component::testecho::v1::EchoResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::testecho::v1::EchoRequest* request, ::viam::component::testecho::v1::EchoResponse* response) { return this->Echo(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::testecho::v1::EchoRequest* request, ::viam::component::testecho::v1::EchoResponse* response) { return this->Echo(context, request, response); }));} void SetMessageAllocatorFor_Echo( - ::grpc::MessageAllocator< ::viam::component::testecho::v1::EchoRequest, ::viam::component::testecho::v1::EchoResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::testecho::v1::EchoRequest, ::viam::component::testecho::v1::EchoResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::testecho::v1::EchoRequest, ::viam::component::testecho::v1::EchoResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(0); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::testecho::v1::EchoRequest, ::viam::component::testecho::v1::EchoResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_Echo() override { + ~ExperimentalWithCallbackMethod_Echo() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -281,21 +356,37 @@ class TestEchoService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* Echo( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::testecho::v1::EchoRequest* /*request*/, ::viam::component::testecho::v1::EchoResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::testecho::v1::EchoRequest* /*request*/, ::viam::component::testecho::v1::EchoResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* Echo( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::testecho::v1::EchoRequest* /*request*/, ::viam::component::testecho::v1::EchoResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_EchoMultiple : public BaseClass { + class ExperimentalWithCallbackMethod_EchoMultiple : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_EchoMultiple() { - ::grpc::Service::MarkMethodCallback(1, - new ::grpc::internal::CallbackServerStreamingHandler< ::viam::component::testecho::v1::EchoMultipleRequest, ::viam::component::testecho::v1::EchoMultipleResponse>( + ExperimentalWithCallbackMethod_EchoMultiple() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(1, + new ::grpc_impl::internal::CallbackServerStreamingHandler< ::viam::component::testecho::v1::EchoMultipleRequest, ::viam::component::testecho::v1::EchoMultipleResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::testecho::v1::EchoMultipleRequest* request) { return this->EchoMultiple(context, request); })); - } - ~WithCallbackMethod_EchoMultiple() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::testecho::v1::EchoMultipleRequest* request) { return this->EchoMultiple(context, request); })); + } + ~ExperimentalWithCallbackMethod_EchoMultiple() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -303,21 +394,37 @@ class TestEchoService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerWriteReactor< ::viam::component::testecho::v1::EchoMultipleResponse>* EchoMultiple( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::testecho::v1::EchoMultipleRequest* /*request*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::testecho::v1::EchoMultipleRequest* /*request*/) + #else + virtual ::grpc::experimental::ServerWriteReactor< ::viam::component::testecho::v1::EchoMultipleResponse>* EchoMultiple( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::testecho::v1::EchoMultipleRequest* /*request*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_EchoBiDi : public BaseClass { + class ExperimentalWithCallbackMethod_EchoBiDi : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_EchoBiDi() { - ::grpc::Service::MarkMethodCallback(2, - new ::grpc::internal::CallbackBidiHandler< ::viam::component::testecho::v1::EchoBiDiRequest, ::viam::component::testecho::v1::EchoBiDiResponse>( + ExperimentalWithCallbackMethod_EchoBiDi() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(2, + new ::grpc_impl::internal::CallbackBidiHandler< ::viam::component::testecho::v1::EchoBiDiRequest, ::viam::component::testecho::v1::EchoBiDiResponse>( [this]( - ::grpc::CallbackServerContext* context) { return this->EchoBiDi(context); })); - } - ~WithCallbackMethod_EchoBiDi() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context) { return this->EchoBiDi(context); })); + } + ~ExperimentalWithCallbackMethod_EchoBiDi() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -325,27 +432,46 @@ class TestEchoService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerBidiReactor< ::viam::component::testecho::v1::EchoBiDiRequest, ::viam::component::testecho::v1::EchoBiDiResponse>* EchoBiDi( ::grpc::CallbackServerContext* /*context*/) + #else + virtual ::grpc::experimental::ServerBidiReactor< ::viam::component::testecho::v1::EchoBiDiRequest, ::viam::component::testecho::v1::EchoBiDiResponse>* EchoBiDi( + ::grpc::experimental::CallbackServerContext* /*context*/) + #endif { return nullptr; } }; template - class WithCallbackMethod_Stop : public BaseClass { + class ExperimentalWithCallbackMethod_Stop : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_Stop() { - ::grpc::Service::MarkMethodCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::testecho::v1::StopRequest, ::viam::component::testecho::v1::StopResponse>( + ExperimentalWithCallbackMethod_Stop() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(3, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::testecho::v1::StopRequest, ::viam::component::testecho::v1::StopResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::testecho::v1::StopRequest* request, ::viam::component::testecho::v1::StopResponse* response) { return this->Stop(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::component::testecho::v1::StopRequest* request, ::viam::component::testecho::v1::StopResponse* response) { return this->Stop(context, request, response); }));} void SetMessageAllocatorFor_Stop( - ::grpc::MessageAllocator< ::viam::component::testecho::v1::StopRequest, ::viam::component::testecho::v1::StopResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::component::testecho::v1::StopRequest, ::viam::component::testecho::v1::StopResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::testecho::v1::StopRequest, ::viam::component::testecho::v1::StopResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(3); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::component::testecho::v1::StopRequest, ::viam::component::testecho::v1::StopResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_Stop() override { + ~ExperimentalWithCallbackMethod_Stop() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -353,11 +479,20 @@ class TestEchoService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* Stop( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::testecho::v1::StopRequest* /*request*/, ::viam::component::testecho::v1::StopResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::component::testecho::v1::StopRequest* /*request*/, ::viam::component::testecho::v1::StopResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* Stop( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::component::testecho::v1::StopRequest* /*request*/, ::viam::component::testecho::v1::StopResponse* /*response*/) + #endif + { return nullptr; } }; - typedef WithCallbackMethod_Echo > > > CallbackService; - typedef CallbackService ExperimentalCallbackService; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef ExperimentalWithCallbackMethod_Echo > > > CallbackService; + #endif + + typedef ExperimentalWithCallbackMethod_Echo > > > ExperimentalCallbackService; template class WithGenericMethod_Echo : public BaseClass { private: @@ -507,17 +642,27 @@ class TestEchoService final { } }; template - class WithRawCallbackMethod_Echo : public BaseClass { + class ExperimentalWithRawCallbackMethod_Echo : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_Echo() { - ::grpc::Service::MarkMethodRawCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_Echo() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Echo(context, request, response); })); - } - ~WithRawCallbackMethod_Echo() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Echo(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_Echo() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -525,21 +670,37 @@ class TestEchoService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* Echo( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* Echo( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_EchoMultiple : public BaseClass { + class ExperimentalWithRawCallbackMethod_EchoMultiple : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_EchoMultiple() { - ::grpc::Service::MarkMethodRawCallback(1, - new ::grpc::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_EchoMultiple() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(1, + new ::grpc_impl::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const::grpc::ByteBuffer* request) { return this->EchoMultiple(context, request); })); - } - ~WithRawCallbackMethod_EchoMultiple() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const::grpc::ByteBuffer* request) { return this->EchoMultiple(context, request); })); + } + ~ExperimentalWithRawCallbackMethod_EchoMultiple() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -547,21 +708,37 @@ class TestEchoService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerWriteReactor< ::grpc::ByteBuffer>* EchoMultiple( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) + #else + virtual ::grpc::experimental::ServerWriteReactor< ::grpc::ByteBuffer>* EchoMultiple( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_EchoBiDi : public BaseClass { + class ExperimentalWithRawCallbackMethod_EchoBiDi : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_EchoBiDi() { - ::grpc::Service::MarkMethodRawCallback(2, - new ::grpc::internal::CallbackBidiHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_EchoBiDi() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(2, + new ::grpc_impl::internal::CallbackBidiHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context) { return this->EchoBiDi(context); })); - } - ~WithRawCallbackMethod_EchoBiDi() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context) { return this->EchoBiDi(context); })); + } + ~ExperimentalWithRawCallbackMethod_EchoBiDi() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -569,22 +746,37 @@ class TestEchoService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerBidiReactor< ::grpc::ByteBuffer, ::grpc::ByteBuffer>* EchoBiDi( ::grpc::CallbackServerContext* /*context*/) + #else + virtual ::grpc::experimental::ServerBidiReactor< ::grpc::ByteBuffer, ::grpc::ByteBuffer>* EchoBiDi( + ::grpc::experimental::CallbackServerContext* /*context*/) + #endif { return nullptr; } }; template - class WithRawCallbackMethod_Stop : public BaseClass { + class ExperimentalWithRawCallbackMethod_Stop : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_Stop() { - ::grpc::Service::MarkMethodRawCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_Stop() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(3, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Stop(context, request, response); })); - } - ~WithRawCallbackMethod_Stop() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Stop(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_Stop() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -592,8 +784,14 @@ class TestEchoService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* Stop( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* Stop( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template class WithStreamedUnaryMethod_Echo : public BaseClass { @@ -604,8 +802,8 @@ class TestEchoService final { ::grpc::Service::MarkMethodStreamed(0, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::testecho::v1::EchoRequest, ::viam::component::testecho::v1::EchoResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::testecho::v1::EchoRequest, ::viam::component::testecho::v1::EchoResponse>* streamer) { return this->StreamedEcho(context, streamer); @@ -631,8 +829,8 @@ class TestEchoService final { ::grpc::Service::MarkMethodStreamed(3, new ::grpc::internal::StreamedUnaryHandler< ::viam::component::testecho::v1::StopRequest, ::viam::component::testecho::v1::StopResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::component::testecho::v1::StopRequest, ::viam::component::testecho::v1::StopResponse>* streamer) { return this->StreamedStop(context, streamer); @@ -659,8 +857,8 @@ class TestEchoService final { ::grpc::Service::MarkMethodStreamed(1, new ::grpc::internal::SplitServerStreamingHandler< ::viam::component::testecho::v1::EchoMultipleRequest, ::viam::component::testecho::v1::EchoMultipleResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerSplitStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerSplitStreamer< ::viam::component::testecho::v1::EchoMultipleRequest, ::viam::component::testecho::v1::EchoMultipleResponse>* streamer) { return this->StreamedEchoMultiple(context, streamer); diff --git a/src/viam/api/component/testecho/v1/testecho.pb.cc b/src/viam/api/component/testecho/v1/testecho.pb.cc index 2d23b6738..a5f671f29 100644 --- a/src/viam/api/component/testecho/v1/testecho.pb.cc +++ b/src/viam/api/component/testecho/v1/testecho.pb.cc @@ -4,567 +4,473 @@ #include "component/testecho/v1/testecho.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace viam { namespace component { namespace testecho { namespace v1 { - template -PROTOBUF_CONSTEXPR StopResponse::StopResponse(::_pbi::ConstantInitialized) {} -struct StopResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR StopResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StopResponseDefaultTypeInternal() {} - union { - StopResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopResponseDefaultTypeInternal _StopResponse_default_instance_; - -inline constexpr StopRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR StopRequest::StopRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct StopRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR StopRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StopRequestDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR EchoRequest::EchoRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , message_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct EchoRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR EchoRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~EchoRequestDefaultTypeInternal() {} union { - StopRequest _instance; + EchoRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopRequestDefaultTypeInternal _StopRequest_default_instance_; - -inline constexpr EchoResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : message_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR EchoResponse::EchoResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EchoRequestDefaultTypeInternal _EchoRequest_default_instance_; +PROTOBUF_CONSTEXPR EchoResponse::EchoResponse( + ::_pbi::ConstantInitialized) + : message_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} struct EchoResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR EchoResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR EchoResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~EchoResponseDefaultTypeInternal() {} union { EchoResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EchoResponseDefaultTypeInternal _EchoResponse_default_instance_; - -inline constexpr EchoRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - message_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR EchoRequest::EchoRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct EchoRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR EchoRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~EchoRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EchoResponseDefaultTypeInternal _EchoResponse_default_instance_; +PROTOBUF_CONSTEXPR EchoMultipleRequest::EchoMultipleRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , message_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct EchoMultipleRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR EchoMultipleRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~EchoMultipleRequestDefaultTypeInternal() {} union { - EchoRequest _instance; + EchoMultipleRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EchoRequestDefaultTypeInternal _EchoRequest_default_instance_; - -inline constexpr EchoMultipleResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : message_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR EchoMultipleResponse::EchoMultipleResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EchoMultipleRequestDefaultTypeInternal _EchoMultipleRequest_default_instance_; +PROTOBUF_CONSTEXPR EchoMultipleResponse::EchoMultipleResponse( + ::_pbi::ConstantInitialized) + : message_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} struct EchoMultipleResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR EchoMultipleResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR EchoMultipleResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~EchoMultipleResponseDefaultTypeInternal() {} union { EchoMultipleResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EchoMultipleResponseDefaultTypeInternal _EchoMultipleResponse_default_instance_; - -inline constexpr EchoMultipleRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - message_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR EchoMultipleRequest::EchoMultipleRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct EchoMultipleRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR EchoMultipleRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~EchoMultipleRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EchoMultipleResponseDefaultTypeInternal _EchoMultipleResponse_default_instance_; +PROTOBUF_CONSTEXPR EchoBiDiRequest::EchoBiDiRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , message_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct EchoBiDiRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR EchoBiDiRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~EchoBiDiRequestDefaultTypeInternal() {} union { - EchoMultipleRequest _instance; + EchoBiDiRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EchoMultipleRequestDefaultTypeInternal _EchoMultipleRequest_default_instance_; - -inline constexpr EchoBiDiResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : message_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR EchoBiDiResponse::EchoBiDiResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EchoBiDiRequestDefaultTypeInternal _EchoBiDiRequest_default_instance_; +PROTOBUF_CONSTEXPR EchoBiDiResponse::EchoBiDiResponse( + ::_pbi::ConstantInitialized) + : message_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} struct EchoBiDiResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR EchoBiDiResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR EchoBiDiResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~EchoBiDiResponseDefaultTypeInternal() {} union { EchoBiDiResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EchoBiDiResponseDefaultTypeInternal _EchoBiDiResponse_default_instance_; - -inline constexpr EchoBiDiRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - message_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR EchoBiDiRequest::EchoBiDiRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct EchoBiDiRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR EchoBiDiRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~EchoBiDiRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EchoBiDiResponseDefaultTypeInternal _EchoBiDiResponse_default_instance_; +PROTOBUF_CONSTEXPR StopRequest::StopRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct StopRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR StopRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StopRequestDefaultTypeInternal() {} union { - EchoBiDiRequest _instance; + StopRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EchoBiDiRequestDefaultTypeInternal _EchoBiDiRequest_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopRequestDefaultTypeInternal _StopRequest_default_instance_; +PROTOBUF_CONSTEXPR StopResponse::StopResponse( + ::_pbi::ConstantInitialized){} +struct StopResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR StopResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StopResponseDefaultTypeInternal() {} + union { + StopResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopResponseDefaultTypeInternal _StopResponse_default_instance_; } // namespace v1 } // namespace testecho } // namespace component } // namespace viam static ::_pb::Metadata file_level_metadata_component_2ftestecho_2fv1_2ftestecho_2eproto[8]; -static constexpr const ::_pb::EnumDescriptor** - file_level_enum_descriptors_component_2ftestecho_2fv1_2ftestecho_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_component_2ftestecho_2fv1_2ftestecho_2eproto = nullptr; -const ::uint32_t TableStruct_component_2ftestecho_2fv1_2ftestecho_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::testecho::v1::EchoRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::testecho::v1::EchoRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::testecho::v1::EchoRequest, _impl_.message_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::testecho::v1::EchoResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::testecho::v1::EchoResponse, _impl_.message_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::testecho::v1::EchoMultipleRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::testecho::v1::EchoMultipleRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::testecho::v1::EchoMultipleRequest, _impl_.message_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::testecho::v1::EchoMultipleResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::testecho::v1::EchoMultipleResponse, _impl_.message_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::testecho::v1::EchoBiDiRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::testecho::v1::EchoBiDiRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::component::testecho::v1::EchoBiDiRequest, _impl_.message_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::testecho::v1::EchoBiDiResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::testecho::v1::EchoBiDiResponse, _impl_.message_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::testecho::v1::StopRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::component::testecho::v1::StopRequest, _impl_.name_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::testecho::v1::StopResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_component_2ftestecho_2fv1_2ftestecho_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_component_2ftestecho_2fv1_2ftestecho_2eproto = nullptr; + +const uint32_t TableStruct_component_2ftestecho_2fv1_2ftestecho_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::testecho::v1::EchoRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::testecho::v1::EchoRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::testecho::v1::EchoRequest, message_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::testecho::v1::EchoResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::testecho::v1::EchoResponse, message_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::testecho::v1::EchoMultipleRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::testecho::v1::EchoMultipleRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::testecho::v1::EchoMultipleRequest, message_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::testecho::v1::EchoMultipleResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::testecho::v1::EchoMultipleResponse, message_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::testecho::v1::EchoBiDiRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::testecho::v1::EchoBiDiRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::component::testecho::v1::EchoBiDiRequest, message_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::testecho::v1::EchoBiDiResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::testecho::v1::EchoBiDiResponse, message_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::testecho::v1::StopRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::component::testecho::v1::StopRequest, name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::component::testecho::v1::StopResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ }; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, -1, -1, sizeof(::viam::component::testecho::v1::EchoRequest)}, - {10, -1, -1, sizeof(::viam::component::testecho::v1::EchoResponse)}, - {19, -1, -1, sizeof(::viam::component::testecho::v1::EchoMultipleRequest)}, - {29, -1, -1, sizeof(::viam::component::testecho::v1::EchoMultipleResponse)}, - {38, -1, -1, sizeof(::viam::component::testecho::v1::EchoBiDiRequest)}, - {48, -1, -1, sizeof(::viam::component::testecho::v1::EchoBiDiResponse)}, - {57, -1, -1, sizeof(::viam::component::testecho::v1::StopRequest)}, - {66, -1, -1, sizeof(::viam::component::testecho::v1::StopResponse)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::component::testecho::v1::EchoRequest)}, + { 8, -1, -1, sizeof(::viam::component::testecho::v1::EchoResponse)}, + { 15, -1, -1, sizeof(::viam::component::testecho::v1::EchoMultipleRequest)}, + { 23, -1, -1, sizeof(::viam::component::testecho::v1::EchoMultipleResponse)}, + { 30, -1, -1, sizeof(::viam::component::testecho::v1::EchoBiDiRequest)}, + { 38, -1, -1, sizeof(::viam::component::testecho::v1::EchoBiDiResponse)}, + { 45, -1, -1, sizeof(::viam::component::testecho::v1::StopRequest)}, + { 52, -1, -1, sizeof(::viam::component::testecho::v1::StopResponse)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::viam::component::testecho::v1::_EchoRequest_default_instance_._instance, - &::viam::component::testecho::v1::_EchoResponse_default_instance_._instance, - &::viam::component::testecho::v1::_EchoMultipleRequest_default_instance_._instance, - &::viam::component::testecho::v1::_EchoMultipleResponse_default_instance_._instance, - &::viam::component::testecho::v1::_EchoBiDiRequest_default_instance_._instance, - &::viam::component::testecho::v1::_EchoBiDiResponse_default_instance_._instance, - &::viam::component::testecho::v1::_StopRequest_default_instance_._instance, - &::viam::component::testecho::v1::_StopResponse_default_instance_._instance, + &::viam::component::testecho::v1::_EchoRequest_default_instance_._instance, + &::viam::component::testecho::v1::_EchoResponse_default_instance_._instance, + &::viam::component::testecho::v1::_EchoMultipleRequest_default_instance_._instance, + &::viam::component::testecho::v1::_EchoMultipleResponse_default_instance_._instance, + &::viam::component::testecho::v1::_EchoBiDiRequest_default_instance_._instance, + &::viam::component::testecho::v1::_EchoBiDiResponse_default_instance_._instance, + &::viam::component::testecho::v1::_StopRequest_default_instance_._instance, + &::viam::component::testecho::v1::_StopResponse_default_instance_._instance, }; -const char descriptor_table_protodef_component_2ftestecho_2fv1_2ftestecho_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n$component/testecho/v1/testecho.proto\022\032" - "viam.component.testecho.v1\032\026common/v1/co" - "mmon.proto\";\n\013EchoRequest\022\022\n\004name\030\001 \001(\tR" - "\004name\022\030\n\007message\030\002 \001(\tR\007message\"(\n\014EchoR" - "esponse\022\030\n\007message\030\001 \001(\tR\007message\"C\n\023Ech" - "oMultipleRequest\022\022\n\004name\030\001 \001(\tR\004name\022\030\n\007" - "message\030\002 \001(\tR\007message\"0\n\024EchoMultipleRe" - "sponse\022\030\n\007message\030\001 \001(\tR\007message\"\?\n\017Echo" - "BiDiRequest\022\022\n\004name\030\001 \001(\tR\004name\022\030\n\007messa" - "ge\030\002 \001(\tR\007message\",\n\020EchoBiDiResponse\022\030\n" - "\007message\030\001 \001(\tR\007message\"!\n\013StopRequest\022\022" - "\n\004name\030\001 \001(\tR\004name\"\016\n\014StopResponse2\263\003\n\017T" - "estEchoService\022[\n\004Echo\022\'.viam.component." - "testecho.v1.EchoRequest\032(.viam.component" - ".testecho.v1.EchoResponse\"\000\022y\n\014EchoMulti" - "ple\022/.viam.component.testecho.v1.EchoMul" - "tipleRequest\0320.viam.component.testecho.v" - "1.EchoMultipleResponse\"\004\240\222)\0010\001\022k\n\010EchoBi" - "Di\022+.viam.component.testecho.v1.EchoBiDi" - "Request\032,.viam.component.testecho.v1.Ech" - "oBiDiResponse\"\000(\0010\001\022[\n\004Stop\022\'.viam.compo" - "nent.testecho.v1.StopRequest\032(.viam.comp" - "onent.testecho.v1.StopResponse\"\000B\341\001\n\036com" - ".viam.component.testecho.v1B\rTestechoPro" - "toP\001Z%go.viam.com/api/component/testecho" - "/v1\242\002\003VCT\252\002\032Viam.Component.Testecho.V1\312\002" - "\032Viam\\Component\\Testecho\\V1\342\002&Viam\\Compo" - "nent\\Testecho\\V1\\GPBMetadata\352\002\035Viam::Com" - "ponent::Testecho::V1b\006proto3" -}; -static const ::_pbi::DescriptorTable* const descriptor_table_component_2ftestecho_2fv1_2ftestecho_2eproto_deps[1] = - { - &::descriptor_table_common_2fv1_2fcommon_2eproto, + +const char descriptor_table_protodef_component_2ftestecho_2fv1_2ftestecho_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n$component/testecho/v1/testecho.proto\022\032" + "viam.component.testecho.v1\032\026common/v1/co" + "mmon.proto\";\n\013EchoRequest\022\022\n\004name\030\001 \001(\tR" + "\004name\022\030\n\007message\030\002 \001(\tR\007message\"(\n\014EchoR" + "esponse\022\030\n\007message\030\001 \001(\tR\007message\"C\n\023Ech" + "oMultipleRequest\022\022\n\004name\030\001 \001(\tR\004name\022\030\n\007" + "message\030\002 \001(\tR\007message\"0\n\024EchoMultipleRe" + "sponse\022\030\n\007message\030\001 \001(\tR\007message\"\?\n\017Echo" + "BiDiRequest\022\022\n\004name\030\001 \001(\tR\004name\022\030\n\007messa" + "ge\030\002 \001(\tR\007message\",\n\020EchoBiDiResponse\022\030\n" + "\007message\030\001 \001(\tR\007message\"!\n\013StopRequest\022\022" + "\n\004name\030\001 \001(\tR\004name\"\016\n\014StopResponse2\263\003\n\017T" + "estEchoService\022[\n\004Echo\022\'.viam.component." + "testecho.v1.EchoRequest\032(.viam.component" + ".testecho.v1.EchoResponse\"\000\022y\n\014EchoMulti" + "ple\022/.viam.component.testecho.v1.EchoMul" + "tipleRequest\0320.viam.component.testecho.v" + "1.EchoMultipleResponse\"\004\240\222)\0010\001\022k\n\010EchoBi" + "Di\022+.viam.component.testecho.v1.EchoBiDi" + "Request\032,.viam.component.testecho.v1.Ech" + "oBiDiResponse\"\000(\0010\001\022[\n\004Stop\022\'.viam.compo" + "nent.testecho.v1.StopRequest\032(.viam.comp" + "onent.testecho.v1.StopResponse\"\000BG\n\036com." + "viam.component.testecho.v1Z%go.viam.com/" + "api/component/testecho/v1b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_component_2ftestecho_2fv1_2ftestecho_2eproto_deps[1] = { + &::descriptor_table_common_2fv1_2fcommon_2eproto, }; -static ::absl::once_flag descriptor_table_component_2ftestecho_2fv1_2ftestecho_2eproto_once; +static ::_pbi::once_flag descriptor_table_component_2ftestecho_2fv1_2ftestecho_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_component_2ftestecho_2fv1_2ftestecho_2eproto = { - false, - false, - 1148, - descriptor_table_protodef_component_2ftestecho_2fv1_2ftestecho_2eproto, + false, false, 993, descriptor_table_protodef_component_2ftestecho_2fv1_2ftestecho_2eproto, "component/testecho/v1/testecho.proto", - &descriptor_table_component_2ftestecho_2fv1_2ftestecho_2eproto_once, - descriptor_table_component_2ftestecho_2fv1_2ftestecho_2eproto_deps, - 1, - 8, - schemas, - file_default_instances, - TableStruct_component_2ftestecho_2fv1_2ftestecho_2eproto::offsets, - file_level_metadata_component_2ftestecho_2fv1_2ftestecho_2eproto, - file_level_enum_descriptors_component_2ftestecho_2fv1_2ftestecho_2eproto, + &descriptor_table_component_2ftestecho_2fv1_2ftestecho_2eproto_once, descriptor_table_component_2ftestecho_2fv1_2ftestecho_2eproto_deps, 1, 8, + schemas, file_default_instances, TableStruct_component_2ftestecho_2fv1_2ftestecho_2eproto::offsets, + file_level_metadata_component_2ftestecho_2fv1_2ftestecho_2eproto, file_level_enum_descriptors_component_2ftestecho_2fv1_2ftestecho_2eproto, file_level_service_descriptors_component_2ftestecho_2fv1_2ftestecho_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_component_2ftestecho_2fv1_2ftestecho_2eproto_getter() { return &descriptor_table_component_2ftestecho_2fv1_2ftestecho_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_component_2ftestecho_2fv1_2ftestecho_2eproto(&descriptor_table_component_2ftestecho_2fv1_2ftestecho_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_component_2ftestecho_2fv1_2ftestecho_2eproto(&descriptor_table_component_2ftestecho_2fv1_2ftestecho_2eproto); namespace viam { namespace component { namespace testecho { namespace v1 { + // =================================================================== class EchoRequest::_Internal { public: }; -EchoRequest::EchoRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +EchoRequest::EchoRequest(::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.testecho.v1.EchoRequest) } -inline PROTOBUF_NDEBUG_INLINE EchoRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : name_(arena, from.name_), - message_(arena, from.message_), - _cached_size_{0} {} - -EchoRequest::EchoRequest( - ::google::protobuf::Arena* arena, - const EchoRequest& from) - : ::google::protobuf::Message(arena) { - EchoRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +EchoRequest::EchoRequest(const EchoRequest& 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()); + } + message_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + message_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_message().empty()) { + message_.Set(from._internal_message(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.component.testecho.v1.EchoRequest) } -inline PROTOBUF_NDEBUG_INLINE EchoRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : name_(arena), - message_(arena), - _cached_size_{0} {} -inline void EchoRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void EchoRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +message_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + message_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + EchoRequest::~EchoRequest() { // @@protoc_insertion_point(destructor:viam.component.testecho.v1.EchoRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void EchoRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.message_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + message_.Destroy(); } -PROTOBUF_NOINLINE void EchoRequest::Clear() { +void EchoRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void EchoRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.testecho.v1.EchoRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _impl_.message_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* EchoRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + message_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* EchoRequest::_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.testecho.v1.EchoRequest.name")); + } else + goto handle_unusual; + continue; + // string message = 2 [json_name = "message"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_message(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.testecho.v1.EchoRequest.message")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 58, 2> EchoRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_EchoRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string message = 2 [json_name = "message"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(EchoRequest, _impl_.message_)}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(EchoRequest, _impl_.name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(EchoRequest, _impl_.name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string message = 2 [json_name = "message"]; - {PROTOBUF_FIELD_OFFSET(EchoRequest, _impl_.message_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\46\4\7\0\0\0\0\0" - "viam.component.testecho.v1.EchoRequest" - "name" - "message" - }}, -}; - -::uint8_t* EchoRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* EchoRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.testecho.v1.EchoRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.testecho.v1.EchoRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.testecho.v1.EchoRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // string message = 2 [json_name = "message"]; if (!this->_internal_message().empty()) { - const std::string& _s = this->_internal_message(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.testecho.v1.EchoRequest.message"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_message().data(), static_cast(this->_internal_message().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.testecho.v1.EchoRequest.message"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_message(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.testecho.v1.EchoRequest) return target; } -::size_t EchoRequest::ByteSizeLong() const { +size_t EchoRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.testecho.v1.EchoRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // string message = 2 [json_name = "message"]; if (!this->_internal_message().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_message()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_message()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData EchoRequest::_class_data_ = { - EchoRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EchoRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + EchoRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* EchoRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EchoRequest::GetClassData() const { return &_class_data_; } + +void EchoRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void EchoRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.testecho.v1.EchoRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void EchoRequest::MergeFrom(const EchoRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.testecho.v1.EchoRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (!from._internal_message().empty()) { - _this->_internal_set_message(from._internal_message()); + _internal_set_message(from._internal_message()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void EchoRequest::CopyFrom(const EchoRequest& from) { @@ -574,188 +480,196 @@ void EchoRequest::CopyFrom(const EchoRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool EchoRequest::IsInitialized() const { +bool EchoRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* EchoRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void EchoRequest::InternalSwap(EchoRequest* PROTOBUF_RESTRICT other) { +void EchoRequest::InternalSwap(EchoRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.message_, &other->_impl_.message_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &message_, lhs_arena, + &other->message_, rhs_arena + ); } -::google::protobuf::Metadata EchoRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata EchoRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2ftestecho_2fv1_2ftestecho_2eproto_getter, &descriptor_table_component_2ftestecho_2fv1_2ftestecho_2eproto_once, file_level_metadata_component_2ftestecho_2fv1_2ftestecho_2eproto[0]); } + // =================================================================== class EchoResponse::_Internal { public: }; -EchoResponse::EchoResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +EchoResponse::EchoResponse(::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.testecho.v1.EchoResponse) } -inline PROTOBUF_NDEBUG_INLINE EchoResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : message_(arena, from.message_), - _cached_size_{0} {} - -EchoResponse::EchoResponse( - ::google::protobuf::Arena* arena, - const EchoResponse& from) - : ::google::protobuf::Message(arena) { - EchoResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +EchoResponse::EchoResponse(const EchoResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + message_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + message_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_message().empty()) { + message_.Set(from._internal_message(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.component.testecho.v1.EchoResponse) } -inline PROTOBUF_NDEBUG_INLINE EchoResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : message_(arena), - _cached_size_{0} {} -inline void EchoResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void EchoResponse::SharedCtor() { +message_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + message_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + EchoResponse::~EchoResponse() { // @@protoc_insertion_point(destructor:viam.component.testecho.v1.EchoResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void EchoResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.message_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + message_.Destroy(); +} + +void EchoResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void EchoResponse::Clear() { +void EchoResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.testecho.v1.EchoResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.message_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* EchoResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + message_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* EchoResponse::_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 message = 1 [json_name = "message"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_message(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.testecho.v1.EchoResponse.message")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 55, 2> EchoResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_EchoResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string message = 1 [json_name = "message"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(EchoResponse, _impl_.message_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string message = 1 [json_name = "message"]; - {PROTOBUF_FIELD_OFFSET(EchoResponse, _impl_.message_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\47\7\0\0\0\0\0\0" - "viam.component.testecho.v1.EchoResponse" - "message" - }}, -}; - -::uint8_t* EchoResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* EchoResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.testecho.v1.EchoResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string message = 1 [json_name = "message"]; if (!this->_internal_message().empty()) { - const std::string& _s = this->_internal_message(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.testecho.v1.EchoResponse.message"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_message().data(), static_cast(this->_internal_message().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.testecho.v1.EchoResponse.message"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_message(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.testecho.v1.EchoResponse) return target; } -::size_t EchoResponse::ByteSizeLong() const { +size_t EchoResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.testecho.v1.EchoResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string message = 1 [json_name = "message"]; if (!this->_internal_message().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_message()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_message()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData EchoResponse::_class_data_ = { - EchoResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EchoResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + EchoResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* EchoResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EchoResponse::GetClassData() const { return &_class_data_; } + +void EchoResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void EchoResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.testecho.v1.EchoResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void EchoResponse::MergeFrom(const EchoResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.testecho.v1.EchoResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_message().empty()) { - _this->_internal_set_message(from._internal_message()); + _internal_set_message(from._internal_message()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void EchoResponse::CopyFrom(const EchoResponse& from) { @@ -765,215 +679,236 @@ void EchoResponse::CopyFrom(const EchoResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool EchoResponse::IsInitialized() const { +bool EchoResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* EchoResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void EchoResponse::InternalSwap(EchoResponse* PROTOBUF_RESTRICT other) { +void EchoResponse::InternalSwap(EchoResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.message_, &other->_impl_.message_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &message_, lhs_arena, + &other->message_, rhs_arena + ); } -::google::protobuf::Metadata EchoResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata EchoResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2ftestecho_2fv1_2ftestecho_2eproto_getter, &descriptor_table_component_2ftestecho_2fv1_2ftestecho_2eproto_once, file_level_metadata_component_2ftestecho_2fv1_2ftestecho_2eproto[1]); } + // =================================================================== class EchoMultipleRequest::_Internal { public: }; -EchoMultipleRequest::EchoMultipleRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +EchoMultipleRequest::EchoMultipleRequest(::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.testecho.v1.EchoMultipleRequest) } -inline PROTOBUF_NDEBUG_INLINE EchoMultipleRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : name_(arena, from.name_), - message_(arena, from.message_), - _cached_size_{0} {} - -EchoMultipleRequest::EchoMultipleRequest( - ::google::protobuf::Arena* arena, - const EchoMultipleRequest& from) - : ::google::protobuf::Message(arena) { - EchoMultipleRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +EchoMultipleRequest::EchoMultipleRequest(const EchoMultipleRequest& 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()); + } + message_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + message_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_message().empty()) { + message_.Set(from._internal_message(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.component.testecho.v1.EchoMultipleRequest) } -inline PROTOBUF_NDEBUG_INLINE EchoMultipleRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : name_(arena), - message_(arena), - _cached_size_{0} {} -inline void EchoMultipleRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void EchoMultipleRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +message_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + message_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + EchoMultipleRequest::~EchoMultipleRequest() { // @@protoc_insertion_point(destructor:viam.component.testecho.v1.EchoMultipleRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void EchoMultipleRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.message_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + message_.Destroy(); } -PROTOBUF_NOINLINE void EchoMultipleRequest::Clear() { +void EchoMultipleRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void EchoMultipleRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.testecho.v1.EchoMultipleRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _impl_.message_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* EchoMultipleRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + message_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* EchoMultipleRequest::_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.testecho.v1.EchoMultipleRequest.name")); + } else + goto handle_unusual; + continue; + // string message = 2 [json_name = "message"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_message(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.testecho.v1.EchoMultipleRequest.message")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 66, 2> EchoMultipleRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_EchoMultipleRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string message = 2 [json_name = "message"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(EchoMultipleRequest, _impl_.message_)}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(EchoMultipleRequest, _impl_.name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(EchoMultipleRequest, _impl_.name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string message = 2 [json_name = "message"]; - {PROTOBUF_FIELD_OFFSET(EchoMultipleRequest, _impl_.message_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\56\4\7\0\0\0\0\0" - "viam.component.testecho.v1.EchoMultipleRequest" - "name" - "message" - }}, -}; - -::uint8_t* EchoMultipleRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* EchoMultipleRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.testecho.v1.EchoMultipleRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.testecho.v1.EchoMultipleRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.testecho.v1.EchoMultipleRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // string message = 2 [json_name = "message"]; if (!this->_internal_message().empty()) { - const std::string& _s = this->_internal_message(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.testecho.v1.EchoMultipleRequest.message"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_message().data(), static_cast(this->_internal_message().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.testecho.v1.EchoMultipleRequest.message"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_message(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.testecho.v1.EchoMultipleRequest) return target; } -::size_t EchoMultipleRequest::ByteSizeLong() const { +size_t EchoMultipleRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.testecho.v1.EchoMultipleRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // string message = 2 [json_name = "message"]; if (!this->_internal_message().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_message()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_message()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData EchoMultipleRequest::_class_data_ = { - EchoMultipleRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EchoMultipleRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + EchoMultipleRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* EchoMultipleRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EchoMultipleRequest::GetClassData() const { return &_class_data_; } + +void EchoMultipleRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void EchoMultipleRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.testecho.v1.EchoMultipleRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void EchoMultipleRequest::MergeFrom(const EchoMultipleRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.testecho.v1.EchoMultipleRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (!from._internal_message().empty()) { - _this->_internal_set_message(from._internal_message()); + _internal_set_message(from._internal_message()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void EchoMultipleRequest::CopyFrom(const EchoMultipleRequest& from) { @@ -983,188 +918,196 @@ void EchoMultipleRequest::CopyFrom(const EchoMultipleRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool EchoMultipleRequest::IsInitialized() const { +bool EchoMultipleRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* EchoMultipleRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void EchoMultipleRequest::InternalSwap(EchoMultipleRequest* PROTOBUF_RESTRICT other) { +void EchoMultipleRequest::InternalSwap(EchoMultipleRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.message_, &other->_impl_.message_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &message_, lhs_arena, + &other->message_, rhs_arena + ); } -::google::protobuf::Metadata EchoMultipleRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata EchoMultipleRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2ftestecho_2fv1_2ftestecho_2eproto_getter, &descriptor_table_component_2ftestecho_2fv1_2ftestecho_2eproto_once, file_level_metadata_component_2ftestecho_2fv1_2ftestecho_2eproto[2]); } + // =================================================================== class EchoMultipleResponse::_Internal { public: }; -EchoMultipleResponse::EchoMultipleResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +EchoMultipleResponse::EchoMultipleResponse(::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.testecho.v1.EchoMultipleResponse) } -inline PROTOBUF_NDEBUG_INLINE EchoMultipleResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : message_(arena, from.message_), - _cached_size_{0} {} - -EchoMultipleResponse::EchoMultipleResponse( - ::google::protobuf::Arena* arena, - const EchoMultipleResponse& from) - : ::google::protobuf::Message(arena) { - EchoMultipleResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +EchoMultipleResponse::EchoMultipleResponse(const EchoMultipleResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + message_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + message_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_message().empty()) { + message_.Set(from._internal_message(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.component.testecho.v1.EchoMultipleResponse) } -inline PROTOBUF_NDEBUG_INLINE EchoMultipleResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : message_(arena), - _cached_size_{0} {} -inline void EchoMultipleResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void EchoMultipleResponse::SharedCtor() { +message_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + message_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + EchoMultipleResponse::~EchoMultipleResponse() { // @@protoc_insertion_point(destructor:viam.component.testecho.v1.EchoMultipleResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void EchoMultipleResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.message_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + message_.Destroy(); +} + +void EchoMultipleResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void EchoMultipleResponse::Clear() { +void EchoMultipleResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.testecho.v1.EchoMultipleResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.message_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* EchoMultipleResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + message_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* EchoMultipleResponse::_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 message = 1 [json_name = "message"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_message(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.testecho.v1.EchoMultipleResponse.message")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 63, 2> EchoMultipleResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_EchoMultipleResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string message = 1 [json_name = "message"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(EchoMultipleResponse, _impl_.message_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string message = 1 [json_name = "message"]; - {PROTOBUF_FIELD_OFFSET(EchoMultipleResponse, _impl_.message_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\57\7\0\0\0\0\0\0" - "viam.component.testecho.v1.EchoMultipleResponse" - "message" - }}, -}; - -::uint8_t* EchoMultipleResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* EchoMultipleResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.testecho.v1.EchoMultipleResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string message = 1 [json_name = "message"]; if (!this->_internal_message().empty()) { - const std::string& _s = this->_internal_message(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.testecho.v1.EchoMultipleResponse.message"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_message().data(), static_cast(this->_internal_message().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.testecho.v1.EchoMultipleResponse.message"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_message(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.testecho.v1.EchoMultipleResponse) return target; } -::size_t EchoMultipleResponse::ByteSizeLong() const { +size_t EchoMultipleResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.testecho.v1.EchoMultipleResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string message = 1 [json_name = "message"]; if (!this->_internal_message().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_message()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_message()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData EchoMultipleResponse::_class_data_ = { - EchoMultipleResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EchoMultipleResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + EchoMultipleResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* EchoMultipleResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EchoMultipleResponse::GetClassData() const { return &_class_data_; } + +void EchoMultipleResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void EchoMultipleResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.testecho.v1.EchoMultipleResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void EchoMultipleResponse::MergeFrom(const EchoMultipleResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.testecho.v1.EchoMultipleResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_message().empty()) { - _this->_internal_set_message(from._internal_message()); + _internal_set_message(from._internal_message()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void EchoMultipleResponse::CopyFrom(const EchoMultipleResponse& from) { @@ -1174,215 +1117,236 @@ void EchoMultipleResponse::CopyFrom(const EchoMultipleResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool EchoMultipleResponse::IsInitialized() const { +bool EchoMultipleResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* EchoMultipleResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void EchoMultipleResponse::InternalSwap(EchoMultipleResponse* PROTOBUF_RESTRICT other) { +void EchoMultipleResponse::InternalSwap(EchoMultipleResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.message_, &other->_impl_.message_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &message_, lhs_arena, + &other->message_, rhs_arena + ); } -::google::protobuf::Metadata EchoMultipleResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata EchoMultipleResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2ftestecho_2fv1_2ftestecho_2eproto_getter, &descriptor_table_component_2ftestecho_2fv1_2ftestecho_2eproto_once, file_level_metadata_component_2ftestecho_2fv1_2ftestecho_2eproto[3]); } + // =================================================================== class EchoBiDiRequest::_Internal { public: }; -EchoBiDiRequest::EchoBiDiRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +EchoBiDiRequest::EchoBiDiRequest(::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.testecho.v1.EchoBiDiRequest) } -inline PROTOBUF_NDEBUG_INLINE EchoBiDiRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : name_(arena, from.name_), - message_(arena, from.message_), - _cached_size_{0} {} - -EchoBiDiRequest::EchoBiDiRequest( - ::google::protobuf::Arena* arena, - const EchoBiDiRequest& from) - : ::google::protobuf::Message(arena) { - EchoBiDiRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +EchoBiDiRequest::EchoBiDiRequest(const EchoBiDiRequest& 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()); + } + message_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + message_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_message().empty()) { + message_.Set(from._internal_message(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.component.testecho.v1.EchoBiDiRequest) } -inline PROTOBUF_NDEBUG_INLINE EchoBiDiRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : name_(arena), - message_(arena), - _cached_size_{0} {} -inline void EchoBiDiRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void EchoBiDiRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +message_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + message_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + EchoBiDiRequest::~EchoBiDiRequest() { // @@protoc_insertion_point(destructor:viam.component.testecho.v1.EchoBiDiRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void EchoBiDiRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.message_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + message_.Destroy(); +} + +void EchoBiDiRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void EchoBiDiRequest::Clear() { +void EchoBiDiRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.testecho.v1.EchoBiDiRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _impl_.message_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* EchoBiDiRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + message_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* EchoBiDiRequest::_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.testecho.v1.EchoBiDiRequest.name")); + } else + goto handle_unusual; + continue; + // string message = 2 [json_name = "message"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_message(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.testecho.v1.EchoBiDiRequest.message")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 62, 2> EchoBiDiRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_EchoBiDiRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string message = 2 [json_name = "message"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(EchoBiDiRequest, _impl_.message_)}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(EchoBiDiRequest, _impl_.name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(EchoBiDiRequest, _impl_.name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string message = 2 [json_name = "message"]; - {PROTOBUF_FIELD_OFFSET(EchoBiDiRequest, _impl_.message_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\52\4\7\0\0\0\0\0" - "viam.component.testecho.v1.EchoBiDiRequest" - "name" - "message" - }}, -}; - -::uint8_t* EchoBiDiRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* EchoBiDiRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.testecho.v1.EchoBiDiRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.testecho.v1.EchoBiDiRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.testecho.v1.EchoBiDiRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // string message = 2 [json_name = "message"]; if (!this->_internal_message().empty()) { - const std::string& _s = this->_internal_message(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.testecho.v1.EchoBiDiRequest.message"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_message().data(), static_cast(this->_internal_message().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.testecho.v1.EchoBiDiRequest.message"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_message(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.testecho.v1.EchoBiDiRequest) return target; } -::size_t EchoBiDiRequest::ByteSizeLong() const { +size_t EchoBiDiRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.testecho.v1.EchoBiDiRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // string message = 2 [json_name = "message"]; if (!this->_internal_message().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_message()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_message()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData EchoBiDiRequest::_class_data_ = { - EchoBiDiRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EchoBiDiRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + EchoBiDiRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* EchoBiDiRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EchoBiDiRequest::GetClassData() const { return &_class_data_; } + +void EchoBiDiRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void EchoBiDiRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.testecho.v1.EchoBiDiRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void EchoBiDiRequest::MergeFrom(const EchoBiDiRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.testecho.v1.EchoBiDiRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (!from._internal_message().empty()) { - _this->_internal_set_message(from._internal_message()); + _internal_set_message(from._internal_message()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void EchoBiDiRequest::CopyFrom(const EchoBiDiRequest& from) { @@ -1392,188 +1356,196 @@ void EchoBiDiRequest::CopyFrom(const EchoBiDiRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool EchoBiDiRequest::IsInitialized() const { +bool EchoBiDiRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* EchoBiDiRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void EchoBiDiRequest::InternalSwap(EchoBiDiRequest* PROTOBUF_RESTRICT other) { +void EchoBiDiRequest::InternalSwap(EchoBiDiRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.message_, &other->_impl_.message_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &message_, lhs_arena, + &other->message_, rhs_arena + ); } -::google::protobuf::Metadata EchoBiDiRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata EchoBiDiRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2ftestecho_2fv1_2ftestecho_2eproto_getter, &descriptor_table_component_2ftestecho_2fv1_2ftestecho_2eproto_once, file_level_metadata_component_2ftestecho_2fv1_2ftestecho_2eproto[4]); } + // =================================================================== class EchoBiDiResponse::_Internal { public: }; -EchoBiDiResponse::EchoBiDiResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +EchoBiDiResponse::EchoBiDiResponse(::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.testecho.v1.EchoBiDiResponse) } -inline PROTOBUF_NDEBUG_INLINE EchoBiDiResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : message_(arena, from.message_), - _cached_size_{0} {} - -EchoBiDiResponse::EchoBiDiResponse( - ::google::protobuf::Arena* arena, - const EchoBiDiResponse& from) - : ::google::protobuf::Message(arena) { - EchoBiDiResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +EchoBiDiResponse::EchoBiDiResponse(const EchoBiDiResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + message_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + message_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_message().empty()) { + message_.Set(from._internal_message(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.component.testecho.v1.EchoBiDiResponse) } -inline PROTOBUF_NDEBUG_INLINE EchoBiDiResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : message_(arena), - _cached_size_{0} {} -inline void EchoBiDiResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void EchoBiDiResponse::SharedCtor() { +message_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + message_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + EchoBiDiResponse::~EchoBiDiResponse() { // @@protoc_insertion_point(destructor:viam.component.testecho.v1.EchoBiDiResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void EchoBiDiResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.message_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + message_.Destroy(); } -PROTOBUF_NOINLINE void EchoBiDiResponse::Clear() { +void EchoBiDiResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void EchoBiDiResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.testecho.v1.EchoBiDiResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.message_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* EchoBiDiResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + message_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* EchoBiDiResponse::_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 message = 1 [json_name = "message"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_message(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.component.testecho.v1.EchoBiDiResponse.message")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 59, 2> EchoBiDiResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_EchoBiDiResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string message = 1 [json_name = "message"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(EchoBiDiResponse, _impl_.message_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string message = 1 [json_name = "message"]; - {PROTOBUF_FIELD_OFFSET(EchoBiDiResponse, _impl_.message_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\53\7\0\0\0\0\0\0" - "viam.component.testecho.v1.EchoBiDiResponse" - "message" - }}, -}; - -::uint8_t* EchoBiDiResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* EchoBiDiResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.testecho.v1.EchoBiDiResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string message = 1 [json_name = "message"]; if (!this->_internal_message().empty()) { - const std::string& _s = this->_internal_message(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.testecho.v1.EchoBiDiResponse.message"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_message().data(), static_cast(this->_internal_message().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.testecho.v1.EchoBiDiResponse.message"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_message(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.testecho.v1.EchoBiDiResponse) return target; } -::size_t EchoBiDiResponse::ByteSizeLong() const { +size_t EchoBiDiResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.testecho.v1.EchoBiDiResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string message = 1 [json_name = "message"]; if (!this->_internal_message().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_message()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_message()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData EchoBiDiResponse::_class_data_ = { - EchoBiDiResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EchoBiDiResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + EchoBiDiResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* EchoBiDiResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EchoBiDiResponse::GetClassData() const { return &_class_data_; } + +void EchoBiDiResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void EchoBiDiResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.testecho.v1.EchoBiDiResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void EchoBiDiResponse::MergeFrom(const EchoBiDiResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.testecho.v1.EchoBiDiResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_message().empty()) { - _this->_internal_set_message(from._internal_message()); + _internal_set_message(from._internal_message()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void EchoBiDiResponse::CopyFrom(const EchoBiDiResponse& from) { @@ -1583,187 +1555,192 @@ void EchoBiDiResponse::CopyFrom(const EchoBiDiResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool EchoBiDiResponse::IsInitialized() const { +bool EchoBiDiResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* EchoBiDiResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void EchoBiDiResponse::InternalSwap(EchoBiDiResponse* PROTOBUF_RESTRICT other) { +void EchoBiDiResponse::InternalSwap(EchoBiDiResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.message_, &other->_impl_.message_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &message_, lhs_arena, + &other->message_, rhs_arena + ); } -::google::protobuf::Metadata EchoBiDiResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata EchoBiDiResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2ftestecho_2fv1_2ftestecho_2eproto_getter, &descriptor_table_component_2ftestecho_2fv1_2ftestecho_2eproto_once, file_level_metadata_component_2ftestecho_2fv1_2ftestecho_2eproto[5]); } + // =================================================================== class StopRequest::_Internal { public: }; -StopRequest::StopRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +StopRequest::StopRequest(::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.testecho.v1.StopRequest) } -inline PROTOBUF_NDEBUG_INLINE StopRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : name_(arena, from.name_), - _cached_size_{0} {} - -StopRequest::StopRequest( - ::google::protobuf::Arena* arena, - const StopRequest& from) - : ::google::protobuf::Message(arena) { - StopRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +StopRequest::StopRequest(const StopRequest& 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()); + } // @@protoc_insertion_point(copy_constructor:viam.component.testecho.v1.StopRequest) } -inline PROTOBUF_NDEBUG_INLINE StopRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : name_(arena), - _cached_size_{0} {} -inline void StopRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void StopRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + StopRequest::~StopRequest() { // @@protoc_insertion_point(destructor:viam.component.testecho.v1.StopRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void StopRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); +} + +void StopRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void StopRequest::Clear() { +void StopRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.component.testecho.v1.StopRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* StopRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* StopRequest::_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.testecho.v1.StopRequest.name")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 51, 2> StopRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_StopRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(StopRequest, _impl_.name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(StopRequest, _impl_.name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\46\4\0\0\0\0\0\0" - "viam.component.testecho.v1.StopRequest" - "name" - }}, -}; - -::uint8_t* StopRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* StopRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.component.testecho.v1.StopRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.component.testecho.v1.StopRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.component.testecho.v1.StopRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.testecho.v1.StopRequest) return target; } -::size_t StopRequest::ByteSizeLong() const { +size_t StopRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.component.testecho.v1.StopRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData StopRequest::_class_data_ = { - StopRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StopRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + StopRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* StopRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StopRequest::GetClassData() const { return &_class_data_; } + +void StopRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void StopRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.component.testecho.v1.StopRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void StopRequest::MergeFrom(const StopRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.testecho.v1.StopRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void StopRequest::CopyFrom(const StopRequest& from) { @@ -1773,45 +1750,41 @@ void StopRequest::CopyFrom(const StopRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool StopRequest::IsInitialized() const { +bool StopRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* StopRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void StopRequest::InternalSwap(StopRequest* PROTOBUF_RESTRICT other) { +void StopRequest::InternalSwap(StopRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); } -::google::protobuf::Metadata StopRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata StopRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2ftestecho_2fv1_2ftestecho_2eproto_getter, &descriptor_table_component_2ftestecho_2fv1_2ftestecho_2eproto_once, file_level_metadata_component_2ftestecho_2fv1_2ftestecho_2eproto[6]); } + // =================================================================== class StopResponse::_Internal { public: }; -StopResponse::StopResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +StopResponse::StopResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.component.testecho.v1.StopResponse) } -StopResponse::StopResponse( - ::google::protobuf::Arena* arena, - const StopResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - StopResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +StopResponse::StopResponse(const StopResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.component.testecho.v1.StopResponse) } @@ -1819,23 +1792,63 @@ StopResponse::StopResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StopResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StopResponse::GetClassData() const { return &_class_data_; } + + -::google::protobuf::Metadata StopResponse::GetMetadata() const { + +::PROTOBUF_NAMESPACE_ID::Metadata StopResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_component_2ftestecho_2fv1_2ftestecho_2eproto_getter, &descriptor_table_component_2ftestecho_2fv1_2ftestecho_2eproto_once, file_level_metadata_component_2ftestecho_2fv1_2ftestecho_2eproto[7]); } + // @@protoc_insertion_point(namespace_scope) } // namespace v1 } // namespace testecho } // namespace component } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::component::testecho::v1::EchoRequest* +Arena::CreateMaybeMessage< ::viam::component::testecho::v1::EchoRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::testecho::v1::EchoRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::testecho::v1::EchoResponse* +Arena::CreateMaybeMessage< ::viam::component::testecho::v1::EchoResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::testecho::v1::EchoResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::testecho::v1::EchoMultipleRequest* +Arena::CreateMaybeMessage< ::viam::component::testecho::v1::EchoMultipleRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::testecho::v1::EchoMultipleRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::testecho::v1::EchoMultipleResponse* +Arena::CreateMaybeMessage< ::viam::component::testecho::v1::EchoMultipleResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::testecho::v1::EchoMultipleResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::testecho::v1::EchoBiDiRequest* +Arena::CreateMaybeMessage< ::viam::component::testecho::v1::EchoBiDiRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::testecho::v1::EchoBiDiRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::testecho::v1::EchoBiDiResponse* +Arena::CreateMaybeMessage< ::viam::component::testecho::v1::EchoBiDiResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::testecho::v1::EchoBiDiResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::testecho::v1::StopRequest* +Arena::CreateMaybeMessage< ::viam::component::testecho::v1::StopRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::testecho::v1::StopRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::component::testecho::v1::StopResponse* +Arena::CreateMaybeMessage< ::viam::component::testecho::v1::StopResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::component::testecho::v1::StopResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/component/testecho/v1/testecho.pb.h b/src/viam/api/component/testecho/v1/testecho.pb.h index 4ee4b460c..24f7d5b65 100644 --- a/src/viam/api/component/testecho/v1/testecho.pb.h +++ b/src/viam/api/component/testecho/v1/testecho.pb.h @@ -1,62 +1,51 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: component/testecho/v1/testecho.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_component_2ftestecho_2fv1_2ftestecho_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_component_2ftestecho_2fv1_2ftestecho_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_component_2ftestecho_2fv1_2ftestecho_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_component_2ftestecho_2fv1_2ftestecho_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_bases.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/unknown_field_set.h" + +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include #include "common/v1/common.pb.h" // @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - +#include #define PROTOBUF_INTERNAL_EXPORT_component_2ftestecho_2fv1_2ftestecho_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_component_2ftestecho_2fv1_2ftestecho_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_component_2ftestecho_2fv1_2ftestecho_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_component_2ftestecho_2fv1_2ftestecho_2eproto; namespace viam { namespace component { namespace testecho { @@ -89,11 +78,16 @@ extern StopResponseDefaultTypeInternal _StopResponse_default_instance_; } // namespace testecho } // namespace component } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::component::testecho::v1::EchoBiDiRequest* Arena::CreateMaybeMessage<::viam::component::testecho::v1::EchoBiDiRequest>(Arena*); +template<> ::viam::component::testecho::v1::EchoBiDiResponse* Arena::CreateMaybeMessage<::viam::component::testecho::v1::EchoBiDiResponse>(Arena*); +template<> ::viam::component::testecho::v1::EchoMultipleRequest* Arena::CreateMaybeMessage<::viam::component::testecho::v1::EchoMultipleRequest>(Arena*); +template<> ::viam::component::testecho::v1::EchoMultipleResponse* Arena::CreateMaybeMessage<::viam::component::testecho::v1::EchoMultipleResponse>(Arena*); +template<> ::viam::component::testecho::v1::EchoRequest* Arena::CreateMaybeMessage<::viam::component::testecho::v1::EchoRequest>(Arena*); +template<> ::viam::component::testecho::v1::EchoResponse* Arena::CreateMaybeMessage<::viam::component::testecho::v1::EchoResponse>(Arena*); +template<> ::viam::component::testecho::v1::StopRequest* Arena::CreateMaybeMessage<::viam::component::testecho::v1::StopRequest>(Arena*); +template<> ::viam::component::testecho::v1::StopResponse* Arena::CreateMaybeMessage<::viam::component::testecho::v1::StopResponse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace viam { namespace component { namespace testecho { @@ -101,169 +95,28 @@ namespace v1 { // =================================================================== - -// ------------------------------------------------------------------- - -class StopResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.testecho.v1.StopResponse) */ { - public: - inline StopResponse() : StopResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR StopResponse(::google::protobuf::internal::ConstantInitialized); - - inline StopResponse(const StopResponse& from) - : StopResponse(nullptr, from) {} - StopResponse(StopResponse&& from) noexcept - : StopResponse() { - *this = ::std::move(from); - } - - inline StopResponse& operator=(const StopResponse& from) { - CopyFrom(from); - return *this; - } - inline StopResponse& operator=(StopResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const StopResponse& default_instance() { - return *internal_default_instance(); - } - static inline const StopResponse* internal_default_instance() { - return reinterpret_cast( - &_StopResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - friend void swap(StopResponse& a, StopResponse& b) { - a.Swap(&b); - } - inline void Swap(StopResponse* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(StopResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - StopResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const StopResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const StopResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); - } - public: - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.testecho.v1.StopResponse"; - } - protected: - explicit StopResponse(::google::protobuf::Arena* arena); - StopResponse(::google::protobuf::Arena* arena, const StopResponse& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:viam.component.testecho.v1.StopResponse) - private: - class _Internal; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; - friend struct ::TableStruct_component_2ftestecho_2fv1_2ftestecho_2eproto; -};// ------------------------------------------------------------------- - -class StopRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.testecho.v1.StopRequest) */ { +class EchoRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.testecho.v1.EchoRequest) */ { public: - inline StopRequest() : StopRequest(nullptr) {} - ~StopRequest() override; - template - explicit PROTOBUF_CONSTEXPR StopRequest(::google::protobuf::internal::ConstantInitialized); + inline EchoRequest() : EchoRequest(nullptr) {} + ~EchoRequest() override; + explicit PROTOBUF_CONSTEXPR EchoRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline StopRequest(const StopRequest& from) - : StopRequest(nullptr, from) {} - StopRequest(StopRequest&& from) noexcept - : StopRequest() { + EchoRequest(const EchoRequest& from); + EchoRequest(EchoRequest&& from) noexcept + : EchoRequest() { *this = ::std::move(from); } - inline StopRequest& operator=(const StopRequest& from) { + inline EchoRequest& operator=(const EchoRequest& from) { CopyFrom(from); return *this; } - inline StopRequest& operator=(StopRequest&& from) noexcept { + inline EchoRequest& operator=(EchoRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -273,99 +126,88 @@ class StopRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const StopRequest& default_instance() { + static const EchoRequest& default_instance() { return *internal_default_instance(); } - static inline const StopRequest* internal_default_instance() { - return reinterpret_cast( - &_StopRequest_default_instance_); + static inline const EchoRequest* internal_default_instance() { + return reinterpret_cast( + &_EchoRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 6; + 0; - friend void swap(StopRequest& a, StopRequest& b) { + friend void swap(EchoRequest& a, EchoRequest& b) { a.Swap(&b); } - inline void Swap(StopRequest* other) { + inline void Swap(EchoRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(StopRequest* other) { + void UnsafeArenaSwap(EchoRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - StopRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const StopRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const StopRequest& from) { - StopRequest::MergeImpl(*this, from); + EchoRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const EchoRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const EchoRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(StopRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(EchoRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.testecho.v1.StopRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.testecho.v1.EchoRequest"; } protected: - explicit StopRequest(::google::protobuf::Arena* arena); - StopRequest(::google::protobuf::Arena* arena, const StopRequest& from); + explicit EchoRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -373,64 +215,58 @@ class StopRequest final : enum : int { kNameFieldNumber = 1, + kMessageFieldNumber = 2, }; // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); std::string* _internal_mutable_name(); + public: + // string message = 2 [json_name = "message"]; + void clear_message(); + const std::string& message() const; + template + void set_message(ArgT0&& arg0, ArgT... args); + std::string* mutable_message(); + PROTOBUF_NODISCARD std::string* release_message(); + void set_allocated_message(std::string* message); + private: + const std::string& _internal_message() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_message(const std::string& value); + std::string* _internal_mutable_message(); public: - // @@protoc_insertion_point(class_scope:viam.component.testecho.v1.StopRequest) + + // @@protoc_insertion_point(class_scope:viam.component.testecho.v1.EchoRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 51, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr name_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2ftestecho_2fv1_2ftestecho_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class EchoResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.testecho.v1.EchoResponse) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.testecho.v1.EchoResponse) */ { public: inline EchoResponse() : EchoResponse(nullptr) {} ~EchoResponse() override; - template - explicit PROTOBUF_CONSTEXPR EchoResponse(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR EchoResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline EchoResponse(const EchoResponse& from) - : EchoResponse(nullptr, from) {} + EchoResponse(const EchoResponse& from); EchoResponse(EchoResponse&& from) noexcept : EchoResponse() { *this = ::std::move(from); @@ -442,9 +278,9 @@ class EchoResponse final : } inline EchoResponse& operator=(EchoResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -454,22 +290,13 @@ class EchoResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const EchoResponse& default_instance() { @@ -488,65 +315,63 @@ class EchoResponse final : inline void Swap(EchoResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(EchoResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - EchoResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + EchoResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const EchoResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const EchoResponse& from) { - EchoResponse::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const EchoResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(EchoResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "viam.component.testecho.v1.EchoResponse"; } protected: - explicit EchoResponse(::google::protobuf::Arena* arena); - EchoResponse(::google::protobuf::Arena* arena, const EchoResponse& from); + explicit EchoResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -556,76 +381,54 @@ class EchoResponse final : kMessageFieldNumber = 1, }; // string message = 1 [json_name = "message"]; - void clear_message() ; + void clear_message(); const std::string& message() const; - template - void set_message(Arg_&& arg, Args_... args); + template + void set_message(ArgT0&& arg0, ArgT... args); std::string* mutable_message(); PROTOBUF_NODISCARD std::string* release_message(); - void set_allocated_message(std::string* value); - + void set_allocated_message(std::string* message); private: const std::string& _internal_message() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_message( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_message(const std::string& value); std::string* _internal_mutable_message(); - public: + // @@protoc_insertion_point(class_scope:viam.component.testecho.v1.EchoResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 55, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr message_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2ftestecho_2fv1_2ftestecho_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class EchoRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.testecho.v1.EchoRequest) */ { +class EchoMultipleRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.testecho.v1.EchoMultipleRequest) */ { public: - inline EchoRequest() : EchoRequest(nullptr) {} - ~EchoRequest() override; - template - explicit PROTOBUF_CONSTEXPR EchoRequest(::google::protobuf::internal::ConstantInitialized); + inline EchoMultipleRequest() : EchoMultipleRequest(nullptr) {} + ~EchoMultipleRequest() override; + explicit PROTOBUF_CONSTEXPR EchoMultipleRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline EchoRequest(const EchoRequest& from) - : EchoRequest(nullptr, from) {} - EchoRequest(EchoRequest&& from) noexcept - : EchoRequest() { + EchoMultipleRequest(const EchoMultipleRequest& from); + EchoMultipleRequest(EchoMultipleRequest&& from) noexcept + : EchoMultipleRequest() { *this = ::std::move(from); } - inline EchoRequest& operator=(const EchoRequest& from) { + inline EchoMultipleRequest& operator=(const EchoMultipleRequest& from) { CopyFrom(from); return *this; } - inline EchoRequest& operator=(EchoRequest&& from) noexcept { + inline EchoMultipleRequest& operator=(EchoMultipleRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -635,99 +438,88 @@ class EchoRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const EchoRequest& default_instance() { + static const EchoMultipleRequest& default_instance() { return *internal_default_instance(); } - static inline const EchoRequest* internal_default_instance() { - return reinterpret_cast( - &_EchoRequest_default_instance_); + static inline const EchoMultipleRequest* internal_default_instance() { + return reinterpret_cast( + &_EchoMultipleRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 0; + 2; - friend void swap(EchoRequest& a, EchoRequest& b) { + friend void swap(EchoMultipleRequest& a, EchoMultipleRequest& b) { a.Swap(&b); } - inline void Swap(EchoRequest* other) { + inline void Swap(EchoMultipleRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(EchoRequest* other) { + void UnsafeArenaSwap(EchoMultipleRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - EchoRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const EchoRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const EchoRequest& from) { - EchoRequest::MergeImpl(*this, from); + EchoMultipleRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const EchoMultipleRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const EchoMultipleRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(EchoRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(EchoMultipleRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.testecho.v1.EchoRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.testecho.v1.EchoMultipleRequest"; } protected: - explicit EchoRequest(::google::protobuf::Arena* arena); - EchoRequest(::google::protobuf::Arena* arena, const EchoRequest& from); + explicit EchoMultipleRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -738,79 +530,55 @@ class EchoRequest final : kMessageFieldNumber = 2, }; // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); std::string* _internal_mutable_name(); - public: + // string message = 2 [json_name = "message"]; - void clear_message() ; + void clear_message(); const std::string& message() const; - template - void set_message(Arg_&& arg, Args_... args); + template + void set_message(ArgT0&& arg0, ArgT... args); std::string* mutable_message(); PROTOBUF_NODISCARD std::string* release_message(); - void set_allocated_message(std::string* value); - + void set_allocated_message(std::string* message); private: const std::string& _internal_message() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_message( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_message(const std::string& value); std::string* _internal_mutable_message(); - public: - // @@protoc_insertion_point(class_scope:viam.component.testecho.v1.EchoRequest) + + // @@protoc_insertion_point(class_scope:viam.component.testecho.v1.EchoMultipleRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 58, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr message_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2ftestecho_2fv1_2ftestecho_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class EchoMultipleResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.testecho.v1.EchoMultipleResponse) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.testecho.v1.EchoMultipleResponse) */ { public: inline EchoMultipleResponse() : EchoMultipleResponse(nullptr) {} ~EchoMultipleResponse() override; - template - explicit PROTOBUF_CONSTEXPR EchoMultipleResponse(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR EchoMultipleResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline EchoMultipleResponse(const EchoMultipleResponse& from) - : EchoMultipleResponse(nullptr, from) {} + EchoMultipleResponse(const EchoMultipleResponse& from); EchoMultipleResponse(EchoMultipleResponse&& from) noexcept : EchoMultipleResponse() { *this = ::std::move(from); @@ -822,9 +590,9 @@ class EchoMultipleResponse final : } inline EchoMultipleResponse& operator=(EchoMultipleResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -834,22 +602,13 @@ class EchoMultipleResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const EchoMultipleResponse& default_instance() { @@ -868,65 +627,63 @@ class EchoMultipleResponse final : inline void Swap(EchoMultipleResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(EchoMultipleResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - EchoMultipleResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + EchoMultipleResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const EchoMultipleResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const EchoMultipleResponse& from) { - EchoMultipleResponse::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const EchoMultipleResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(EchoMultipleResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "viam.component.testecho.v1.EchoMultipleResponse"; } protected: - explicit EchoMultipleResponse(::google::protobuf::Arena* arena); - EchoMultipleResponse(::google::protobuf::Arena* arena, const EchoMultipleResponse& from); + explicit EchoMultipleResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -936,76 +693,54 @@ class EchoMultipleResponse final : kMessageFieldNumber = 1, }; // string message = 1 [json_name = "message"]; - void clear_message() ; + void clear_message(); const std::string& message() const; - template - void set_message(Arg_&& arg, Args_... args); + template + void set_message(ArgT0&& arg0, ArgT... args); std::string* mutable_message(); PROTOBUF_NODISCARD std::string* release_message(); - void set_allocated_message(std::string* value); - + void set_allocated_message(std::string* message); private: const std::string& _internal_message() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_message( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_message(const std::string& value); std::string* _internal_mutable_message(); - public: + // @@protoc_insertion_point(class_scope:viam.component.testecho.v1.EchoMultipleResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 63, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr message_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2ftestecho_2fv1_2ftestecho_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class EchoMultipleRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.testecho.v1.EchoMultipleRequest) */ { +class EchoBiDiRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.testecho.v1.EchoBiDiRequest) */ { public: - inline EchoMultipleRequest() : EchoMultipleRequest(nullptr) {} - ~EchoMultipleRequest() override; - template - explicit PROTOBUF_CONSTEXPR EchoMultipleRequest(::google::protobuf::internal::ConstantInitialized); + inline EchoBiDiRequest() : EchoBiDiRequest(nullptr) {} + ~EchoBiDiRequest() override; + explicit PROTOBUF_CONSTEXPR EchoBiDiRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline EchoMultipleRequest(const EchoMultipleRequest& from) - : EchoMultipleRequest(nullptr, from) {} - EchoMultipleRequest(EchoMultipleRequest&& from) noexcept - : EchoMultipleRequest() { + EchoBiDiRequest(const EchoBiDiRequest& from); + EchoBiDiRequest(EchoBiDiRequest&& from) noexcept + : EchoBiDiRequest() { *this = ::std::move(from); } - inline EchoMultipleRequest& operator=(const EchoMultipleRequest& from) { + inline EchoBiDiRequest& operator=(const EchoBiDiRequest& from) { CopyFrom(from); return *this; } - inline EchoMultipleRequest& operator=(EchoMultipleRequest&& from) noexcept { + inline EchoBiDiRequest& operator=(EchoBiDiRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1015,99 +750,88 @@ class EchoMultipleRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const EchoMultipleRequest& default_instance() { + static const EchoBiDiRequest& default_instance() { return *internal_default_instance(); } - static inline const EchoMultipleRequest* internal_default_instance() { - return reinterpret_cast( - &_EchoMultipleRequest_default_instance_); + static inline const EchoBiDiRequest* internal_default_instance() { + return reinterpret_cast( + &_EchoBiDiRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 2; + 4; - friend void swap(EchoMultipleRequest& a, EchoMultipleRequest& b) { + friend void swap(EchoBiDiRequest& a, EchoBiDiRequest& b) { a.Swap(&b); } - inline void Swap(EchoMultipleRequest* other) { + inline void Swap(EchoBiDiRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(EchoMultipleRequest* other) { + void UnsafeArenaSwap(EchoBiDiRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - EchoMultipleRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const EchoMultipleRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const EchoMultipleRequest& from) { - EchoMultipleRequest::MergeImpl(*this, from); + EchoBiDiRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const EchoBiDiRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const EchoBiDiRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(EchoMultipleRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(EchoBiDiRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.testecho.v1.EchoMultipleRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.testecho.v1.EchoBiDiRequest"; } protected: - explicit EchoMultipleRequest(::google::protobuf::Arena* arena); - EchoMultipleRequest(::google::protobuf::Arena* arena, const EchoMultipleRequest& from); + explicit EchoBiDiRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1118,79 +842,55 @@ class EchoMultipleRequest final : kMessageFieldNumber = 2, }; // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); std::string* _internal_mutable_name(); - public: + // string message = 2 [json_name = "message"]; - void clear_message() ; + void clear_message(); const std::string& message() const; - template - void set_message(Arg_&& arg, Args_... args); + template + void set_message(ArgT0&& arg0, ArgT... args); std::string* mutable_message(); PROTOBUF_NODISCARD std::string* release_message(); - void set_allocated_message(std::string* value); - + void set_allocated_message(std::string* message); private: const std::string& _internal_message() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_message( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_message(const std::string& value); std::string* _internal_mutable_message(); - public: - // @@protoc_insertion_point(class_scope:viam.component.testecho.v1.EchoMultipleRequest) + + // @@protoc_insertion_point(class_scope:viam.component.testecho.v1.EchoBiDiRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 66, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr message_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2ftestecho_2fv1_2ftestecho_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class EchoBiDiResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.testecho.v1.EchoBiDiResponse) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.testecho.v1.EchoBiDiResponse) */ { public: inline EchoBiDiResponse() : EchoBiDiResponse(nullptr) {} ~EchoBiDiResponse() override; - template - explicit PROTOBUF_CONSTEXPR EchoBiDiResponse(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR EchoBiDiResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline EchoBiDiResponse(const EchoBiDiResponse& from) - : EchoBiDiResponse(nullptr, from) {} + EchoBiDiResponse(const EchoBiDiResponse& from); EchoBiDiResponse(EchoBiDiResponse&& from) noexcept : EchoBiDiResponse() { *this = ::std::move(from); @@ -1202,9 +902,9 @@ class EchoBiDiResponse final : } inline EchoBiDiResponse& operator=(EchoBiDiResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1214,22 +914,13 @@ class EchoBiDiResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const EchoBiDiResponse& default_instance() { @@ -1248,65 +939,63 @@ class EchoBiDiResponse final : inline void Swap(EchoBiDiResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(EchoBiDiResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - EchoBiDiResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + EchoBiDiResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const EchoBiDiResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const EchoBiDiResponse& from) { - EchoBiDiResponse::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const EchoBiDiResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(EchoBiDiResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "viam.component.testecho.v1.EchoBiDiResponse"; } protected: - explicit EchoBiDiResponse(::google::protobuf::Arena* arena); - EchoBiDiResponse(::google::protobuf::Arena* arena, const EchoBiDiResponse& from); + explicit EchoBiDiResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1316,76 +1005,54 @@ class EchoBiDiResponse final : kMessageFieldNumber = 1, }; // string message = 1 [json_name = "message"]; - void clear_message() ; + void clear_message(); const std::string& message() const; - template - void set_message(Arg_&& arg, Args_... args); + template + void set_message(ArgT0&& arg0, ArgT... args); std::string* mutable_message(); PROTOBUF_NODISCARD std::string* release_message(); - void set_allocated_message(std::string* value); - + void set_allocated_message(std::string* message); private: const std::string& _internal_message() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_message( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_message(const std::string& value); std::string* _internal_mutable_message(); - public: + // @@protoc_insertion_point(class_scope:viam.component.testecho.v1.EchoBiDiResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 59, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr message_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2ftestecho_2fv1_2ftestecho_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class EchoBiDiRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.component.testecho.v1.EchoBiDiRequest) */ { +class StopRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.testecho.v1.StopRequest) */ { public: - inline EchoBiDiRequest() : EchoBiDiRequest(nullptr) {} - ~EchoBiDiRequest() override; - template - explicit PROTOBUF_CONSTEXPR EchoBiDiRequest(::google::protobuf::internal::ConstantInitialized); + inline StopRequest() : StopRequest(nullptr) {} + ~StopRequest() override; + explicit PROTOBUF_CONSTEXPR StopRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline EchoBiDiRequest(const EchoBiDiRequest& from) - : EchoBiDiRequest(nullptr, from) {} - EchoBiDiRequest(EchoBiDiRequest&& from) noexcept - : EchoBiDiRequest() { + StopRequest(const StopRequest& from); + StopRequest(StopRequest&& from) noexcept + : StopRequest() { *this = ::std::move(from); } - inline EchoBiDiRequest& operator=(const EchoBiDiRequest& from) { + inline StopRequest& operator=(const StopRequest& from) { CopyFrom(from); return *this; } - inline EchoBiDiRequest& operator=(EchoBiDiRequest&& from) noexcept { + inline StopRequest& operator=(StopRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1395,99 +1062,88 @@ class EchoBiDiRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const EchoBiDiRequest& default_instance() { + static const StopRequest& default_instance() { return *internal_default_instance(); } - static inline const EchoBiDiRequest* internal_default_instance() { - return reinterpret_cast( - &_EchoBiDiRequest_default_instance_); + static inline const StopRequest* internal_default_instance() { + return reinterpret_cast( + &_StopRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 4; + 6; - friend void swap(EchoBiDiRequest& a, EchoBiDiRequest& b) { + friend void swap(StopRequest& a, StopRequest& b) { a.Swap(&b); } - inline void Swap(EchoBiDiRequest* other) { + inline void Swap(StopRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(EchoBiDiRequest* other) { + void UnsafeArenaSwap(StopRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - EchoBiDiRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const EchoBiDiRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const EchoBiDiRequest& from) { - EchoBiDiRequest::MergeImpl(*this, from); + StopRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const StopRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const StopRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(EchoBiDiRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(StopRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.component.testecho.v1.EchoBiDiRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.testecho.v1.StopRequest"; } protected: - explicit EchoBiDiRequest(::google::protobuf::Arena* arena); - EchoBiDiRequest(::google::protobuf::Arena* arena, const EchoBiDiRequest& from); + explicit StopRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1495,191 +1151,256 @@ class EchoBiDiRequest final : enum : int { kNameFieldNumber = 1, - kMessageFieldNumber = 2, }; // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); std::string* _internal_mutable_name(); - public: - // string message = 2 [json_name = "message"]; - void clear_message() ; - const std::string& message() const; - template - void set_message(Arg_&& arg, Args_... args); - std::string* mutable_message(); - PROTOBUF_NODISCARD std::string* release_message(); - void set_allocated_message(std::string* value); - private: - const std::string& _internal_message() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_message( - const std::string& value); - std::string* _internal_mutable_message(); - - public: - // @@protoc_insertion_point(class_scope:viam.component.testecho.v1.EchoBiDiRequest) + // @@protoc_insertion_point(class_scope:viam.component.testecho.v1.StopRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 62, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr message_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_component_2ftestecho_2fv1_2ftestecho_2eproto; }; +// ------------------------------------------------------------------- -// =================================================================== +class StopResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.component.testecho.v1.StopResponse) */ { + public: + inline StopResponse() : StopResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR StopResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + StopResponse(const StopResponse& from); + StopResponse(StopResponse&& from) noexcept + : StopResponse() { + *this = ::std::move(from); + } + + inline StopResponse& operator=(const StopResponse& from) { + CopyFrom(from); + return *this; + } + inline StopResponse& operator=(StopResponse&& 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 StopResponse& default_instance() { + return *internal_default_instance(); + } + static inline const StopResponse* internal_default_instance() { + return reinterpret_cast( + &_StopResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + friend void swap(StopResponse& a, StopResponse& b) { + a.Swap(&b); + } + inline void Swap(StopResponse* 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(StopResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + StopResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const StopResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const StopResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); + } + public: + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.component.testecho.v1.StopResponse"; + } + protected: + explicit StopResponse(::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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.component.testecho.v1.StopResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + friend struct ::TableStruct_component_2ftestecho_2fv1_2ftestecho_2eproto; +}; // =================================================================== +// =================================================================== + #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ -// ------------------------------------------------------------------- - // EchoRequest // string name = 1 [json_name = "name"]; inline void EchoRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& EchoRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& EchoRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.testecho.v1.EchoRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void EchoRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void EchoRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.testecho.v1.EchoRequest.name) } -inline std::string* EchoRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* EchoRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.testecho.v1.EchoRequest.name) return _s; } inline const std::string& EchoRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void EchoRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* EchoRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* EchoRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.testecho.v1.EchoRequest.name) - return _impl_.name_.Release(); -} -inline void EchoRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void EchoRequest::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.testecho.v1.EchoRequest.name) } // string message = 2 [json_name = "message"]; inline void EchoRequest::clear_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.message_.ClearToEmpty(); + message_.ClearToEmpty(); } -inline const std::string& EchoRequest::message() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& EchoRequest::message() const { // @@protoc_insertion_point(field_get:viam.component.testecho.v1.EchoRequest.message) return _internal_message(); } -template -inline PROTOBUF_ALWAYS_INLINE void EchoRequest::set_message(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.message_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void EchoRequest::set_message(ArgT0&& arg0, ArgT... args) { + + message_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.testecho.v1.EchoRequest.message) } -inline std::string* EchoRequest::mutable_message() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* EchoRequest::mutable_message() { std::string* _s = _internal_mutable_message(); // @@protoc_insertion_point(field_mutable:viam.component.testecho.v1.EchoRequest.message) return _s; } inline const std::string& EchoRequest::_internal_message() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.message_.Get(); + return message_.Get(); } inline void EchoRequest::_internal_set_message(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.message_.Set(value, GetArena()); + + message_.Set(value, GetArenaForAllocation()); } inline std::string* EchoRequest::_internal_mutable_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.message_.Mutable( GetArena()); + + return message_.Mutable(GetArenaForAllocation()); } inline std::string* EchoRequest::release_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.testecho.v1.EchoRequest.message) - return _impl_.message_.Release(); -} -inline void EchoRequest::set_allocated_message(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.message_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.message_.IsDefault()) { - _impl_.message_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return message_.Release(); +} +inline void EchoRequest::set_allocated_message(std::string* message) { + if (message != nullptr) { + + } else { + + } + message_.SetAllocated(message, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (message_.IsDefault()) { + message_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.component.testecho.v1.EchoRequest.message) } @@ -1689,54 +1410,51 @@ inline void EchoRequest::set_allocated_message(std::string* value) { // string message = 1 [json_name = "message"]; inline void EchoResponse::clear_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.message_.ClearToEmpty(); + message_.ClearToEmpty(); } -inline const std::string& EchoResponse::message() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& EchoResponse::message() const { // @@protoc_insertion_point(field_get:viam.component.testecho.v1.EchoResponse.message) return _internal_message(); } -template -inline PROTOBUF_ALWAYS_INLINE void EchoResponse::set_message(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.message_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void EchoResponse::set_message(ArgT0&& arg0, ArgT... args) { + + message_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.testecho.v1.EchoResponse.message) } -inline std::string* EchoResponse::mutable_message() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* EchoResponse::mutable_message() { std::string* _s = _internal_mutable_message(); // @@protoc_insertion_point(field_mutable:viam.component.testecho.v1.EchoResponse.message) return _s; } inline const std::string& EchoResponse::_internal_message() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.message_.Get(); + return message_.Get(); } inline void EchoResponse::_internal_set_message(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.message_.Set(value, GetArena()); + + message_.Set(value, GetArenaForAllocation()); } inline std::string* EchoResponse::_internal_mutable_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.message_.Mutable( GetArena()); + + return message_.Mutable(GetArenaForAllocation()); } inline std::string* EchoResponse::release_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.testecho.v1.EchoResponse.message) - return _impl_.message_.Release(); -} -inline void EchoResponse::set_allocated_message(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.message_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.message_.IsDefault()) { - _impl_.message_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return message_.Release(); +} +inline void EchoResponse::set_allocated_message(std::string* message) { + if (message != nullptr) { + + } else { + + } + message_.SetAllocated(message, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (message_.IsDefault()) { + message_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.component.testecho.v1.EchoResponse.message) } @@ -1746,107 +1464,101 @@ inline void EchoResponse::set_allocated_message(std::string* value) { // string name = 1 [json_name = "name"]; inline void EchoMultipleRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& EchoMultipleRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& EchoMultipleRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.testecho.v1.EchoMultipleRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void EchoMultipleRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void EchoMultipleRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.testecho.v1.EchoMultipleRequest.name) } -inline std::string* EchoMultipleRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* EchoMultipleRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.testecho.v1.EchoMultipleRequest.name) return _s; } inline const std::string& EchoMultipleRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void EchoMultipleRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* EchoMultipleRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* EchoMultipleRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.testecho.v1.EchoMultipleRequest.name) - return _impl_.name_.Release(); -} -inline void EchoMultipleRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void EchoMultipleRequest::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.testecho.v1.EchoMultipleRequest.name) } // string message = 2 [json_name = "message"]; inline void EchoMultipleRequest::clear_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.message_.ClearToEmpty(); + message_.ClearToEmpty(); } -inline const std::string& EchoMultipleRequest::message() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& EchoMultipleRequest::message() const { // @@protoc_insertion_point(field_get:viam.component.testecho.v1.EchoMultipleRequest.message) return _internal_message(); } -template -inline PROTOBUF_ALWAYS_INLINE void EchoMultipleRequest::set_message(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.message_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void EchoMultipleRequest::set_message(ArgT0&& arg0, ArgT... args) { + + message_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.testecho.v1.EchoMultipleRequest.message) } -inline std::string* EchoMultipleRequest::mutable_message() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* EchoMultipleRequest::mutable_message() { std::string* _s = _internal_mutable_message(); // @@protoc_insertion_point(field_mutable:viam.component.testecho.v1.EchoMultipleRequest.message) return _s; } inline const std::string& EchoMultipleRequest::_internal_message() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.message_.Get(); + return message_.Get(); } inline void EchoMultipleRequest::_internal_set_message(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.message_.Set(value, GetArena()); + + message_.Set(value, GetArenaForAllocation()); } inline std::string* EchoMultipleRequest::_internal_mutable_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.message_.Mutable( GetArena()); + + return message_.Mutable(GetArenaForAllocation()); } inline std::string* EchoMultipleRequest::release_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.testecho.v1.EchoMultipleRequest.message) - return _impl_.message_.Release(); -} -inline void EchoMultipleRequest::set_allocated_message(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.message_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.message_.IsDefault()) { - _impl_.message_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return message_.Release(); +} +inline void EchoMultipleRequest::set_allocated_message(std::string* message) { + if (message != nullptr) { + + } else { + + } + message_.SetAllocated(message, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (message_.IsDefault()) { + message_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.component.testecho.v1.EchoMultipleRequest.message) } @@ -1856,54 +1568,51 @@ inline void EchoMultipleRequest::set_allocated_message(std::string* value) { // string message = 1 [json_name = "message"]; inline void EchoMultipleResponse::clear_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.message_.ClearToEmpty(); + message_.ClearToEmpty(); } -inline const std::string& EchoMultipleResponse::message() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& EchoMultipleResponse::message() const { // @@protoc_insertion_point(field_get:viam.component.testecho.v1.EchoMultipleResponse.message) return _internal_message(); } -template -inline PROTOBUF_ALWAYS_INLINE void EchoMultipleResponse::set_message(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.message_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void EchoMultipleResponse::set_message(ArgT0&& arg0, ArgT... args) { + + message_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.testecho.v1.EchoMultipleResponse.message) } -inline std::string* EchoMultipleResponse::mutable_message() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* EchoMultipleResponse::mutable_message() { std::string* _s = _internal_mutable_message(); // @@protoc_insertion_point(field_mutable:viam.component.testecho.v1.EchoMultipleResponse.message) return _s; } inline const std::string& EchoMultipleResponse::_internal_message() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.message_.Get(); + return message_.Get(); } inline void EchoMultipleResponse::_internal_set_message(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.message_.Set(value, GetArena()); + + message_.Set(value, GetArenaForAllocation()); } inline std::string* EchoMultipleResponse::_internal_mutable_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.message_.Mutable( GetArena()); + + return message_.Mutable(GetArenaForAllocation()); } inline std::string* EchoMultipleResponse::release_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.testecho.v1.EchoMultipleResponse.message) - return _impl_.message_.Release(); -} -inline void EchoMultipleResponse::set_allocated_message(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.message_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.message_.IsDefault()) { - _impl_.message_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return message_.Release(); +} +inline void EchoMultipleResponse::set_allocated_message(std::string* message) { + if (message != nullptr) { + + } else { + + } + message_.SetAllocated(message, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (message_.IsDefault()) { + message_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.component.testecho.v1.EchoMultipleResponse.message) } @@ -1913,107 +1622,101 @@ inline void EchoMultipleResponse::set_allocated_message(std::string* value) { // string name = 1 [json_name = "name"]; inline void EchoBiDiRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& EchoBiDiRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& EchoBiDiRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.testecho.v1.EchoBiDiRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void EchoBiDiRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void EchoBiDiRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.testecho.v1.EchoBiDiRequest.name) } -inline std::string* EchoBiDiRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* EchoBiDiRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.testecho.v1.EchoBiDiRequest.name) return _s; } inline const std::string& EchoBiDiRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void EchoBiDiRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* EchoBiDiRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* EchoBiDiRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.testecho.v1.EchoBiDiRequest.name) - return _impl_.name_.Release(); -} -inline void EchoBiDiRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void EchoBiDiRequest::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.testecho.v1.EchoBiDiRequest.name) } // string message = 2 [json_name = "message"]; inline void EchoBiDiRequest::clear_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.message_.ClearToEmpty(); + message_.ClearToEmpty(); } -inline const std::string& EchoBiDiRequest::message() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& EchoBiDiRequest::message() const { // @@protoc_insertion_point(field_get:viam.component.testecho.v1.EchoBiDiRequest.message) return _internal_message(); } -template -inline PROTOBUF_ALWAYS_INLINE void EchoBiDiRequest::set_message(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.message_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void EchoBiDiRequest::set_message(ArgT0&& arg0, ArgT... args) { + + message_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.testecho.v1.EchoBiDiRequest.message) } -inline std::string* EchoBiDiRequest::mutable_message() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* EchoBiDiRequest::mutable_message() { std::string* _s = _internal_mutable_message(); // @@protoc_insertion_point(field_mutable:viam.component.testecho.v1.EchoBiDiRequest.message) return _s; } inline const std::string& EchoBiDiRequest::_internal_message() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.message_.Get(); + return message_.Get(); } inline void EchoBiDiRequest::_internal_set_message(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.message_.Set(value, GetArena()); + + message_.Set(value, GetArenaForAllocation()); } inline std::string* EchoBiDiRequest::_internal_mutable_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.message_.Mutable( GetArena()); + + return message_.Mutable(GetArenaForAllocation()); } inline std::string* EchoBiDiRequest::release_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.testecho.v1.EchoBiDiRequest.message) - return _impl_.message_.Release(); -} -inline void EchoBiDiRequest::set_allocated_message(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.message_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.message_.IsDefault()) { - _impl_.message_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return message_.Release(); +} +inline void EchoBiDiRequest::set_allocated_message(std::string* message) { + if (message != nullptr) { + + } else { + + } + message_.SetAllocated(message, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (message_.IsDefault()) { + message_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.component.testecho.v1.EchoBiDiRequest.message) } @@ -2023,54 +1726,51 @@ inline void EchoBiDiRequest::set_allocated_message(std::string* value) { // string message = 1 [json_name = "message"]; inline void EchoBiDiResponse::clear_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.message_.ClearToEmpty(); + message_.ClearToEmpty(); } -inline const std::string& EchoBiDiResponse::message() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& EchoBiDiResponse::message() const { // @@protoc_insertion_point(field_get:viam.component.testecho.v1.EchoBiDiResponse.message) return _internal_message(); } -template -inline PROTOBUF_ALWAYS_INLINE void EchoBiDiResponse::set_message(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.message_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void EchoBiDiResponse::set_message(ArgT0&& arg0, ArgT... args) { + + message_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.testecho.v1.EchoBiDiResponse.message) } -inline std::string* EchoBiDiResponse::mutable_message() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* EchoBiDiResponse::mutable_message() { std::string* _s = _internal_mutable_message(); // @@protoc_insertion_point(field_mutable:viam.component.testecho.v1.EchoBiDiResponse.message) return _s; } inline const std::string& EchoBiDiResponse::_internal_message() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.message_.Get(); + return message_.Get(); } inline void EchoBiDiResponse::_internal_set_message(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.message_.Set(value, GetArena()); + + message_.Set(value, GetArenaForAllocation()); } inline std::string* EchoBiDiResponse::_internal_mutable_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.message_.Mutable( GetArena()); + + return message_.Mutable(GetArenaForAllocation()); } inline std::string* EchoBiDiResponse::release_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.testecho.v1.EchoBiDiResponse.message) - return _impl_.message_.Release(); -} -inline void EchoBiDiResponse::set_allocated_message(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.message_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.message_.IsDefault()) { - _impl_.message_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return message_.Release(); +} +inline void EchoBiDiResponse::set_allocated_message(std::string* message) { + if (message != nullptr) { + + } else { + + } + message_.SetAllocated(message, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (message_.IsDefault()) { + message_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.component.testecho.v1.EchoBiDiResponse.message) } @@ -2080,54 +1780,51 @@ inline void EchoBiDiResponse::set_allocated_message(std::string* value) { // string name = 1 [json_name = "name"]; inline void StopRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& StopRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& StopRequest::name() const { // @@protoc_insertion_point(field_get:viam.component.testecho.v1.StopRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void StopRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void StopRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.component.testecho.v1.StopRequest.name) } -inline std::string* StopRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* StopRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.component.testecho.v1.StopRequest.name) return _s; } inline const std::string& StopRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void StopRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* StopRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* StopRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.component.testecho.v1.StopRequest.name) - return _impl_.name_.Release(); -} -inline void StopRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void StopRequest::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.testecho.v1.StopRequest.name) } @@ -2136,18 +1833,31 @@ inline void StopRequest::set_allocated_name(std::string* value) { // StopResponse #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) + } // namespace v1 } // namespace testecho } // namespace component } // namespace viam - // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_component_2ftestecho_2fv1_2ftestecho_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_component_2ftestecho_2fv1_2ftestecho_2eproto diff --git a/src/viam/api/google/api/annotations.grpc.pb.cc b/src/viam/api/google/api/annotations.grpc.pb.cc index f549438be..eba217418 100644 --- a/src/viam/api/google/api/annotations.grpc.pb.cc +++ b/src/viam/api/google/api/annotations.grpc.pb.cc @@ -6,19 +6,19 @@ #include "google/api/annotations.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace google { namespace api { diff --git a/src/viam/api/google/api/annotations.grpc.pb.h b/src/viam/api/google/api/annotations.grpc.pb.h index 5f12d8a18..735373ba0 100644 --- a/src/viam/api/google/api/annotations.grpc.pb.h +++ b/src/viam/api/google/api/annotations.grpc.pb.h @@ -22,23 +22,24 @@ #include "google/api/annotations.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace google { namespace api { diff --git a/src/viam/api/google/api/annotations.pb.cc b/src/viam/api/google/api/annotations.pb.cc index b5396e4ab..43b0e42dd 100644 --- a/src/viam/api/google/api/annotations.pb.cc +++ b/src/viam/api/google/api/annotations.pb.cc @@ -4,97 +4,72 @@ #include "google/api/annotations.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace google { namespace api { } // namespace api } // namespace google -static constexpr const ::_pb::EnumDescriptor** - file_level_enum_descriptors_google_2fapi_2fannotations_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_google_2fapi_2fannotations_2eproto = nullptr; -const ::uint32_t TableStruct_google_2fapi_2fannotations_2eproto::offsets[1] = {}; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_google_2fapi_2fannotations_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_google_2fapi_2fannotations_2eproto = nullptr; +const uint32_t TableStruct_google_2fapi_2fannotations_2eproto::offsets[1] = {}; static constexpr ::_pbi::MigrationSchema* schemas = nullptr; static constexpr ::_pb::Message* const* file_default_instances = nullptr; -const char descriptor_table_protodef_google_2fapi_2fannotations_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n\034google/api/annotations.proto\022\ngoogle.a" - "pi\032\025google/api/http.proto\032 google/protob" - "uf/descriptor.proto:K\n\004http\022\036.google.pro" - "tobuf.MethodOptions\030\260\312\274\" \001(\0132\024.google.ap" - "i.HttpRuleR\004httpB\256\001\n\016com.google.apiB\020Ann" - "otationsProtoP\001ZAgoogle.golang.org/genpr" - "oto/googleapis/api/annotations;annotatio" - "ns\242\002\003GAX\252\002\nGoogle.Api\312\002\nGoogle\\Api\342\002\026Goo" - "gle\\Api\\GPBMetadata\352\002\013Google::Apib\006proto" - "3" -}; -static const ::_pbi::DescriptorTable* const descriptor_table_google_2fapi_2fannotations_2eproto_deps[2] = - { - &::descriptor_table_google_2fapi_2fhttp_2eproto, - &::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto, + +const char descriptor_table_protodef_google_2fapi_2fannotations_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\034google/api/annotations.proto\022\ngoogle.a" + "pi\032\025google/api/http.proto\032 google/protob" + "uf/descriptor.proto:K\n\004http\022\036.google.pro" + "tobuf.MethodOptions\030\260\312\274\" \001(\0132\024.google.ap" + "i.HttpRuleR\004httpBn\n\016com.google.apiB\020Anno" + "tationsProtoP\001ZAgoogle.golang.org/genpro" + "to/googleapis/api/annotations;annotation" + "s\242\002\004GAPIb\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_google_2fapi_2fannotations_2eproto_deps[2] = { + &::descriptor_table_google_2fapi_2fhttp_2eproto, + &::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto, }; -static ::absl::once_flag descriptor_table_google_2fapi_2fannotations_2eproto_once; +static ::_pbi::once_flag descriptor_table_google_2fapi_2fannotations_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_google_2fapi_2fannotations_2eproto = { - false, - false, - 361, - descriptor_table_protodef_google_2fapi_2fannotations_2eproto, + false, false, 296, descriptor_table_protodef_google_2fapi_2fannotations_2eproto, "google/api/annotations.proto", - &descriptor_table_google_2fapi_2fannotations_2eproto_once, - descriptor_table_google_2fapi_2fannotations_2eproto_deps, - 2, - 0, - schemas, - file_default_instances, - TableStruct_google_2fapi_2fannotations_2eproto::offsets, - nullptr, - file_level_enum_descriptors_google_2fapi_2fannotations_2eproto, + &descriptor_table_google_2fapi_2fannotations_2eproto_once, descriptor_table_google_2fapi_2fannotations_2eproto_deps, 2, 0, + schemas, file_default_instances, TableStruct_google_2fapi_2fannotations_2eproto::offsets, + nullptr, file_level_enum_descriptors_google_2fapi_2fannotations_2eproto, file_level_service_descriptors_google_2fapi_2fannotations_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2fapi_2fannotations_2eproto_getter() { return &descriptor_table_google_2fapi_2fannotations_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fapi_2fannotations_2eproto(&descriptor_table_google_2fapi_2fannotations_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fapi_2fannotations_2eproto(&descriptor_table_google_2fapi_2fannotations_2eproto); namespace google { namespace api { -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MethodOptions, - ::google::protobuf::internal::MessageTypeTraits< ::google::api::HttpRule >, 11, false> +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::MethodOptions, + ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::google::api::HttpRule >, 11, false> http(kHttpFieldNumber, ::google::api::HttpRule::default_instance(), nullptr); + // @@protoc_insertion_point(namespace_scope) } // namespace api } // namespace google -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/google/api/annotations.pb.h b/src/viam/api/google/api/annotations.pb.h index 3bc2c4c72..11df84a32 100644 --- a/src/viam/api/google/api/annotations.pb.h +++ b/src/viam/api/google/api/annotations.pb.h @@ -1,99 +1,80 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/annotations.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fannotations_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fannotations_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fannotations_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fannotations_2eproto #include #include -#include -#include -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export #include "google/api/http.pb.h" -#include "google/protobuf/descriptor.pb.h" +#include // @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - +#include #define PROTOBUF_INTERNAL_EXPORT_google_2fapi_2fannotations_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_google_2fapi_2fannotations_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_google_2fapi_2fannotations_2eproto; -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fapi_2fannotations_2eproto; +PROTOBUF_NAMESPACE_OPEN +PROTOBUF_NAMESPACE_CLOSE namespace google { namespace api { // =================================================================== - // =================================================================== - - static const int kHttpFieldNumber = 72295728; -extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MethodOptions, - ::google::protobuf::internal::MessageTypeTraits< ::google::api::HttpRule >, 11, false > +extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::MethodOptions, + ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::google::api::HttpRule >, 11, false > http; // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ // @@protoc_insertion_point(namespace_scope) + } // namespace api } // namespace google - // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fannotations_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fannotations_2eproto diff --git a/src/viam/api/google/api/client.grpc.pb.cc b/src/viam/api/google/api/client.grpc.pb.cc index 68f3c0072..bdf24ee43 100644 --- a/src/viam/api/google/api/client.grpc.pb.cc +++ b/src/viam/api/google/api/client.grpc.pb.cc @@ -6,19 +6,19 @@ #include "google/api/client.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace google { namespace api { diff --git a/src/viam/api/google/api/client.grpc.pb.h b/src/viam/api/google/api/client.grpc.pb.h index c015a6bdf..b7a43a0ef 100644 --- a/src/viam/api/google/api/client.grpc.pb.h +++ b/src/viam/api/google/api/client.grpc.pb.h @@ -22,23 +22,24 @@ #include "google/api/client.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace google { namespace api { diff --git a/src/viam/api/google/api/client.pb.cc b/src/viam/api/google/api/client.pb.cc index a9e4fea04..0d1315c78 100644 --- a/src/viam/api/google/api/client.pb.cc +++ b/src/viam/api/google/api/client.pb.cc @@ -4,1124 +4,945 @@ #include "google/api/client.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; -namespace google { -namespace api { -inline constexpr SelectiveGapicGeneration::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : methods_{}, - _cached_size_{0} {} +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; -template -PROTOBUF_CONSTEXPR SelectiveGapicGeneration::SelectiveGapicGeneration(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct SelectiveGapicGenerationDefaultTypeInternal { - PROTOBUF_CONSTEXPR SelectiveGapicGenerationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SelectiveGapicGenerationDefaultTypeInternal() {} +namespace google { +namespace api { +PROTOBUF_CONSTEXPR CommonLanguageSettings::CommonLanguageSettings( + ::_pbi::ConstantInitialized) + : destinations_() + , _destinations_cached_byte_size_(0) + , reference_docs_uri_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , selective_gapic_generation_(nullptr){} +struct CommonLanguageSettingsDefaultTypeInternal { + PROTOBUF_CONSTEXPR CommonLanguageSettingsDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CommonLanguageSettingsDefaultTypeInternal() {} union { - SelectiveGapicGeneration _instance; + CommonLanguageSettings _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SelectiveGapicGenerationDefaultTypeInternal _SelectiveGapicGeneration_default_instance_; - -inline constexpr PythonSettings_ExperimentalFeatures::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : rest_async_io_enabled_{false}, - protobuf_pythonic_types_enabled_{false}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR PythonSettings_ExperimentalFeatures::PythonSettings_ExperimentalFeatures(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct PythonSettings_ExperimentalFeaturesDefaultTypeInternal { - PROTOBUF_CONSTEXPR PythonSettings_ExperimentalFeaturesDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~PythonSettings_ExperimentalFeaturesDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CommonLanguageSettingsDefaultTypeInternal _CommonLanguageSettings_default_instance_; +PROTOBUF_CONSTEXPR ClientLibrarySettings::ClientLibrarySettings( + ::_pbi::ConstantInitialized) + : version_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , java_settings_(nullptr) + , cpp_settings_(nullptr) + , php_settings_(nullptr) + , python_settings_(nullptr) + , node_settings_(nullptr) + , dotnet_settings_(nullptr) + , ruby_settings_(nullptr) + , go_settings_(nullptr) + , launch_stage_(0) + + , rest_numeric_enums_(false){} +struct ClientLibrarySettingsDefaultTypeInternal { + PROTOBUF_CONSTEXPR ClientLibrarySettingsDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ClientLibrarySettingsDefaultTypeInternal() {} union { - PythonSettings_ExperimentalFeatures _instance; + ClientLibrarySettings _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PythonSettings_ExperimentalFeaturesDefaultTypeInternal _PythonSettings_ExperimentalFeatures_default_instance_; - template -PROTOBUF_CONSTEXPR JavaSettings_ServiceClassNamesEntry_DoNotUse::JavaSettings_ServiceClassNamesEntry_DoNotUse(::_pbi::ConstantInitialized) {} -struct JavaSettings_ServiceClassNamesEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR JavaSettings_ServiceClassNamesEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~JavaSettings_ServiceClassNamesEntry_DoNotUseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ClientLibrarySettingsDefaultTypeInternal _ClientLibrarySettings_default_instance_; +PROTOBUF_CONSTEXPR Publishing::Publishing( + ::_pbi::ConstantInitialized) + : method_settings_() + , codeowner_github_teams_() + , library_settings_() + , new_issue_uri_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , documentation_uri_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , api_short_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , github_label_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , doc_tag_prefix_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , proto_reference_documentation_uri_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , rest_reference_documentation_uri_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , organization_(0) +{} +struct PublishingDefaultTypeInternal { + PROTOBUF_CONSTEXPR PublishingDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~PublishingDefaultTypeInternal() {} union { - JavaSettings_ServiceClassNamesEntry_DoNotUse _instance; + Publishing _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 JavaSettings_ServiceClassNamesEntry_DoNotUseDefaultTypeInternal _JavaSettings_ServiceClassNamesEntry_DoNotUse_default_instance_; - template -PROTOBUF_CONSTEXPR DotnetSettings_RenamedServicesEntry_DoNotUse::DotnetSettings_RenamedServicesEntry_DoNotUse(::_pbi::ConstantInitialized) {} -struct DotnetSettings_RenamedServicesEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR DotnetSettings_RenamedServicesEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~DotnetSettings_RenamedServicesEntry_DoNotUseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PublishingDefaultTypeInternal _Publishing_default_instance_; +PROTOBUF_CONSTEXPR JavaSettings_ServiceClassNamesEntry_DoNotUse::JavaSettings_ServiceClassNamesEntry_DoNotUse( + ::_pbi::ConstantInitialized){} +struct JavaSettings_ServiceClassNamesEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR JavaSettings_ServiceClassNamesEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~JavaSettings_ServiceClassNamesEntry_DoNotUseDefaultTypeInternal() {} union { - DotnetSettings_RenamedServicesEntry_DoNotUse _instance; + JavaSettings_ServiceClassNamesEntry_DoNotUse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DotnetSettings_RenamedServicesEntry_DoNotUseDefaultTypeInternal _DotnetSettings_RenamedServicesEntry_DoNotUse_default_instance_; - template -PROTOBUF_CONSTEXPR DotnetSettings_RenamedResourcesEntry_DoNotUse::DotnetSettings_RenamedResourcesEntry_DoNotUse(::_pbi::ConstantInitialized) {} -struct DotnetSettings_RenamedResourcesEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR DotnetSettings_RenamedResourcesEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~DotnetSettings_RenamedResourcesEntry_DoNotUseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 JavaSettings_ServiceClassNamesEntry_DoNotUseDefaultTypeInternal _JavaSettings_ServiceClassNamesEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR JavaSettings::JavaSettings( + ::_pbi::ConstantInitialized) + : service_class_names_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + , library_package_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , common_(nullptr){} +struct JavaSettingsDefaultTypeInternal { + PROTOBUF_CONSTEXPR JavaSettingsDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~JavaSettingsDefaultTypeInternal() {} union { - DotnetSettings_RenamedResourcesEntry_DoNotUse _instance; + JavaSettings _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DotnetSettings_RenamedResourcesEntry_DoNotUseDefaultTypeInternal _DotnetSettings_RenamedResourcesEntry_DoNotUse_default_instance_; - -inline constexpr MethodSettings_LongRunning::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - initial_poll_delay_{nullptr}, - max_poll_delay_{nullptr}, - total_poll_timeout_{nullptr}, - poll_delay_multiplier_{0} {} - -template -PROTOBUF_CONSTEXPR MethodSettings_LongRunning::MethodSettings_LongRunning(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct MethodSettings_LongRunningDefaultTypeInternal { - PROTOBUF_CONSTEXPR MethodSettings_LongRunningDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~MethodSettings_LongRunningDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 JavaSettingsDefaultTypeInternal _JavaSettings_default_instance_; +PROTOBUF_CONSTEXPR CppSettings::CppSettings( + ::_pbi::ConstantInitialized) + : common_(nullptr){} +struct CppSettingsDefaultTypeInternal { + PROTOBUF_CONSTEXPR CppSettingsDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CppSettingsDefaultTypeInternal() {} union { - MethodSettings_LongRunning _instance; + CppSettings _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MethodSettings_LongRunningDefaultTypeInternal _MethodSettings_LongRunning_default_instance_; - -inline constexpr CommonLanguageSettings::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - destinations_{}, - _destinations_cached_byte_size_{0}, - reference_docs_uri_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - selective_gapic_generation_{nullptr} {} - -template -PROTOBUF_CONSTEXPR CommonLanguageSettings::CommonLanguageSettings(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct CommonLanguageSettingsDefaultTypeInternal { - PROTOBUF_CONSTEXPR CommonLanguageSettingsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CommonLanguageSettingsDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CppSettingsDefaultTypeInternal _CppSettings_default_instance_; +PROTOBUF_CONSTEXPR PhpSettings::PhpSettings( + ::_pbi::ConstantInitialized) + : common_(nullptr){} +struct PhpSettingsDefaultTypeInternal { + PROTOBUF_CONSTEXPR PhpSettingsDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~PhpSettingsDefaultTypeInternal() {} union { - CommonLanguageSettings _instance; + PhpSettings _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CommonLanguageSettingsDefaultTypeInternal _CommonLanguageSettings_default_instance_; - -inline constexpr RubySettings::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - common_{nullptr} {} - -template -PROTOBUF_CONSTEXPR RubySettings::RubySettings(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct RubySettingsDefaultTypeInternal { - PROTOBUF_CONSTEXPR RubySettingsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RubySettingsDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PhpSettingsDefaultTypeInternal _PhpSettings_default_instance_; +PROTOBUF_CONSTEXPR PythonSettings_ExperimentalFeatures::PythonSettings_ExperimentalFeatures( + ::_pbi::ConstantInitialized) + : rest_async_io_enabled_(false) + , protobuf_pythonic_types_enabled_(false){} +struct PythonSettings_ExperimentalFeaturesDefaultTypeInternal { + PROTOBUF_CONSTEXPR PythonSettings_ExperimentalFeaturesDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~PythonSettings_ExperimentalFeaturesDefaultTypeInternal() {} union { - RubySettings _instance; + PythonSettings_ExperimentalFeatures _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RubySettingsDefaultTypeInternal _RubySettings_default_instance_; - -inline constexpr PythonSettings::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - common_{nullptr}, - experimental_features_{nullptr} {} - -template -PROTOBUF_CONSTEXPR PythonSettings::PythonSettings(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PythonSettings_ExperimentalFeaturesDefaultTypeInternal _PythonSettings_ExperimentalFeatures_default_instance_; +PROTOBUF_CONSTEXPR PythonSettings::PythonSettings( + ::_pbi::ConstantInitialized) + : common_(nullptr) + , experimental_features_(nullptr){} struct PythonSettingsDefaultTypeInternal { - PROTOBUF_CONSTEXPR PythonSettingsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR PythonSettingsDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~PythonSettingsDefaultTypeInternal() {} union { PythonSettings _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PythonSettingsDefaultTypeInternal _PythonSettings_default_instance_; - -inline constexpr PhpSettings::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - common_{nullptr} {} - -template -PROTOBUF_CONSTEXPR PhpSettings::PhpSettings(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct PhpSettingsDefaultTypeInternal { - PROTOBUF_CONSTEXPR PhpSettingsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~PhpSettingsDefaultTypeInternal() {} - union { - PhpSettings _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PhpSettingsDefaultTypeInternal _PhpSettings_default_instance_; - -inline constexpr NodeSettings::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - common_{nullptr} {} - -template -PROTOBUF_CONSTEXPR NodeSettings::NodeSettings(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PythonSettingsDefaultTypeInternal _PythonSettings_default_instance_; +PROTOBUF_CONSTEXPR NodeSettings::NodeSettings( + ::_pbi::ConstantInitialized) + : common_(nullptr){} struct NodeSettingsDefaultTypeInternal { - PROTOBUF_CONSTEXPR NodeSettingsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR NodeSettingsDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~NodeSettingsDefaultTypeInternal() {} union { NodeSettings _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NodeSettingsDefaultTypeInternal _NodeSettings_default_instance_; - -inline constexpr MethodSettings::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - auto_populated_fields_{}, - selector_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - long_running_{nullptr} {} - -template -PROTOBUF_CONSTEXPR MethodSettings::MethodSettings(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct MethodSettingsDefaultTypeInternal { - PROTOBUF_CONSTEXPR MethodSettingsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~MethodSettingsDefaultTypeInternal() {} - union { - MethodSettings _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MethodSettingsDefaultTypeInternal _MethodSettings_default_instance_; - -inline constexpr JavaSettings::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - service_class_names_{}, - library_package_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - common_{nullptr} {} - -template -PROTOBUF_CONSTEXPR JavaSettings::JavaSettings(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct JavaSettingsDefaultTypeInternal { - PROTOBUF_CONSTEXPR JavaSettingsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~JavaSettingsDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NodeSettingsDefaultTypeInternal _NodeSettings_default_instance_; +PROTOBUF_CONSTEXPR DotnetSettings_RenamedServicesEntry_DoNotUse::DotnetSettings_RenamedServicesEntry_DoNotUse( + ::_pbi::ConstantInitialized){} +struct DotnetSettings_RenamedServicesEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR DotnetSettings_RenamedServicesEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DotnetSettings_RenamedServicesEntry_DoNotUseDefaultTypeInternal() {} union { - JavaSettings _instance; + DotnetSettings_RenamedServicesEntry_DoNotUse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 JavaSettingsDefaultTypeInternal _JavaSettings_default_instance_; - -inline constexpr GoSettings::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - common_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GoSettings::GoSettings(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GoSettingsDefaultTypeInternal { - PROTOBUF_CONSTEXPR GoSettingsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GoSettingsDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DotnetSettings_RenamedServicesEntry_DoNotUseDefaultTypeInternal _DotnetSettings_RenamedServicesEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR DotnetSettings_RenamedResourcesEntry_DoNotUse::DotnetSettings_RenamedResourcesEntry_DoNotUse( + ::_pbi::ConstantInitialized){} +struct DotnetSettings_RenamedResourcesEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR DotnetSettings_RenamedResourcesEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DotnetSettings_RenamedResourcesEntry_DoNotUseDefaultTypeInternal() {} union { - GoSettings _instance; + DotnetSettings_RenamedResourcesEntry_DoNotUse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GoSettingsDefaultTypeInternal _GoSettings_default_instance_; - -inline constexpr DotnetSettings::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - renamed_services_{}, - renamed_resources_{}, - ignored_resources_{}, - forced_namespace_aliases_{}, - handwritten_signatures_{}, - common_{nullptr} {} - -template -PROTOBUF_CONSTEXPR DotnetSettings::DotnetSettings(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DotnetSettings_RenamedResourcesEntry_DoNotUseDefaultTypeInternal _DotnetSettings_RenamedResourcesEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR DotnetSettings::DotnetSettings( + ::_pbi::ConstantInitialized) + : renamed_services_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + , renamed_resources_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + , ignored_resources_() + , forced_namespace_aliases_() + , handwritten_signatures_() + , common_(nullptr){} struct DotnetSettingsDefaultTypeInternal { - PROTOBUF_CONSTEXPR DotnetSettingsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR DotnetSettingsDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~DotnetSettingsDefaultTypeInternal() {} union { DotnetSettings _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DotnetSettingsDefaultTypeInternal _DotnetSettings_default_instance_; - -inline constexpr CppSettings::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - common_{nullptr} {} - -template -PROTOBUF_CONSTEXPR CppSettings::CppSettings(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct CppSettingsDefaultTypeInternal { - PROTOBUF_CONSTEXPR CppSettingsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CppSettingsDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DotnetSettingsDefaultTypeInternal _DotnetSettings_default_instance_; +PROTOBUF_CONSTEXPR RubySettings::RubySettings( + ::_pbi::ConstantInitialized) + : common_(nullptr){} +struct RubySettingsDefaultTypeInternal { + PROTOBUF_CONSTEXPR RubySettingsDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RubySettingsDefaultTypeInternal() {} union { - CppSettings _instance; + RubySettings _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CppSettingsDefaultTypeInternal _CppSettings_default_instance_; - -inline constexpr ClientLibrarySettings::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - version_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - java_settings_{nullptr}, - cpp_settings_{nullptr}, - php_settings_{nullptr}, - python_settings_{nullptr}, - node_settings_{nullptr}, - dotnet_settings_{nullptr}, - ruby_settings_{nullptr}, - go_settings_{nullptr}, - launch_stage_{static_cast< ::google::api::LaunchStage >(0)}, - rest_numeric_enums_{false} {} - -template -PROTOBUF_CONSTEXPR ClientLibrarySettings::ClientLibrarySettings(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ClientLibrarySettingsDefaultTypeInternal { - PROTOBUF_CONSTEXPR ClientLibrarySettingsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ClientLibrarySettingsDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RubySettingsDefaultTypeInternal _RubySettings_default_instance_; +PROTOBUF_CONSTEXPR GoSettings_RenamedServicesEntry_DoNotUse::GoSettings_RenamedServicesEntry_DoNotUse( + ::_pbi::ConstantInitialized){} +struct GoSettings_RenamedServicesEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GoSettings_RenamedServicesEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GoSettings_RenamedServicesEntry_DoNotUseDefaultTypeInternal() {} union { - ClientLibrarySettings _instance; + GoSettings_RenamedServicesEntry_DoNotUse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ClientLibrarySettingsDefaultTypeInternal _ClientLibrarySettings_default_instance_; - -inline constexpr Publishing::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : method_settings_{}, - codeowner_github_teams_{}, - library_settings_{}, - new_issue_uri_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - documentation_uri_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - api_short_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - github_label_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - doc_tag_prefix_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - proto_reference_documentation_uri_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - rest_reference_documentation_uri_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - organization_{static_cast< ::google::api::ClientLibraryOrganization >(0)}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR Publishing::Publishing(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct PublishingDefaultTypeInternal { - PROTOBUF_CONSTEXPR PublishingDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~PublishingDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GoSettings_RenamedServicesEntry_DoNotUseDefaultTypeInternal _GoSettings_RenamedServicesEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR GoSettings::GoSettings( + ::_pbi::ConstantInitialized) + : renamed_services_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + , common_(nullptr){} +struct GoSettingsDefaultTypeInternal { + PROTOBUF_CONSTEXPR GoSettingsDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GoSettingsDefaultTypeInternal() {} union { - Publishing _instance; + GoSettings _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PublishingDefaultTypeInternal _Publishing_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GoSettingsDefaultTypeInternal _GoSettings_default_instance_; +PROTOBUF_CONSTEXPR MethodSettings_LongRunning::MethodSettings_LongRunning( + ::_pbi::ConstantInitialized) + : initial_poll_delay_(nullptr) + , max_poll_delay_(nullptr) + , total_poll_timeout_(nullptr) + , poll_delay_multiplier_(0){} +struct MethodSettings_LongRunningDefaultTypeInternal { + PROTOBUF_CONSTEXPR MethodSettings_LongRunningDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~MethodSettings_LongRunningDefaultTypeInternal() {} + union { + MethodSettings_LongRunning _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MethodSettings_LongRunningDefaultTypeInternal _MethodSettings_LongRunning_default_instance_; +PROTOBUF_CONSTEXPR MethodSettings::MethodSettings( + ::_pbi::ConstantInitialized) + : auto_populated_fields_() + , selector_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , long_running_(nullptr){} +struct MethodSettingsDefaultTypeInternal { + PROTOBUF_CONSTEXPR MethodSettingsDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~MethodSettingsDefaultTypeInternal() {} + union { + MethodSettings _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MethodSettingsDefaultTypeInternal _MethodSettings_default_instance_; +PROTOBUF_CONSTEXPR SelectiveGapicGeneration::SelectiveGapicGeneration( + ::_pbi::ConstantInitialized) + : methods_(){} +struct SelectiveGapicGenerationDefaultTypeInternal { + PROTOBUF_CONSTEXPR SelectiveGapicGenerationDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SelectiveGapicGenerationDefaultTypeInternal() {} + union { + SelectiveGapicGeneration _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SelectiveGapicGenerationDefaultTypeInternal _SelectiveGapicGeneration_default_instance_; } // namespace api } // namespace google -static ::_pb::Metadata file_level_metadata_google_2fapi_2fclient_2eproto[18]; +static ::_pb::Metadata file_level_metadata_google_2fapi_2fclient_2eproto[19]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_google_2fapi_2fclient_2eproto[2]; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_google_2fapi_2fclient_2eproto = nullptr; -const ::uint32_t TableStruct_google_2fapi_2fclient_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::google::api::CommonLanguageSettings, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::google::api::CommonLanguageSettings, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::CommonLanguageSettings, _impl_.reference_docs_uri_), - PROTOBUF_FIELD_OFFSET(::google::api::CommonLanguageSettings, _impl_.destinations_), - PROTOBUF_FIELD_OFFSET(::google::api::CommonLanguageSettings, _impl_.selective_gapic_generation_), - ~0u, - ~0u, - 0, - PROTOBUF_FIELD_OFFSET(::google::api::ClientLibrarySettings, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::google::api::ClientLibrarySettings, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::ClientLibrarySettings, _impl_.version_), - PROTOBUF_FIELD_OFFSET(::google::api::ClientLibrarySettings, _impl_.launch_stage_), - PROTOBUF_FIELD_OFFSET(::google::api::ClientLibrarySettings, _impl_.rest_numeric_enums_), - PROTOBUF_FIELD_OFFSET(::google::api::ClientLibrarySettings, _impl_.java_settings_), - PROTOBUF_FIELD_OFFSET(::google::api::ClientLibrarySettings, _impl_.cpp_settings_), - PROTOBUF_FIELD_OFFSET(::google::api::ClientLibrarySettings, _impl_.php_settings_), - PROTOBUF_FIELD_OFFSET(::google::api::ClientLibrarySettings, _impl_.python_settings_), - PROTOBUF_FIELD_OFFSET(::google::api::ClientLibrarySettings, _impl_.node_settings_), - PROTOBUF_FIELD_OFFSET(::google::api::ClientLibrarySettings, _impl_.dotnet_settings_), - PROTOBUF_FIELD_OFFSET(::google::api::ClientLibrarySettings, _impl_.ruby_settings_), - PROTOBUF_FIELD_OFFSET(::google::api::ClientLibrarySettings, _impl_.go_settings_), - ~0u, - ~0u, - ~0u, - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::Publishing, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::Publishing, _impl_.method_settings_), - PROTOBUF_FIELD_OFFSET(::google::api::Publishing, _impl_.new_issue_uri_), - PROTOBUF_FIELD_OFFSET(::google::api::Publishing, _impl_.documentation_uri_), - PROTOBUF_FIELD_OFFSET(::google::api::Publishing, _impl_.api_short_name_), - PROTOBUF_FIELD_OFFSET(::google::api::Publishing, _impl_.github_label_), - PROTOBUF_FIELD_OFFSET(::google::api::Publishing, _impl_.codeowner_github_teams_), - PROTOBUF_FIELD_OFFSET(::google::api::Publishing, _impl_.doc_tag_prefix_), - PROTOBUF_FIELD_OFFSET(::google::api::Publishing, _impl_.organization_), - PROTOBUF_FIELD_OFFSET(::google::api::Publishing, _impl_.library_settings_), - PROTOBUF_FIELD_OFFSET(::google::api::Publishing, _impl_.proto_reference_documentation_uri_), - PROTOBUF_FIELD_OFFSET(::google::api::Publishing, _impl_.rest_reference_documentation_uri_), - PROTOBUF_FIELD_OFFSET(::google::api::JavaSettings_ServiceClassNamesEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::google::api::JavaSettings_ServiceClassNamesEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::JavaSettings_ServiceClassNamesEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::google::api::JavaSettings_ServiceClassNamesEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::google::api::JavaSettings, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::google::api::JavaSettings, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::JavaSettings, _impl_.library_package_), - PROTOBUF_FIELD_OFFSET(::google::api::JavaSettings, _impl_.service_class_names_), - PROTOBUF_FIELD_OFFSET(::google::api::JavaSettings, _impl_.common_), - ~0u, - ~0u, - 0, - PROTOBUF_FIELD_OFFSET(::google::api::CppSettings, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::google::api::CppSettings, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::CppSettings, _impl_.common_), - 0, - PROTOBUF_FIELD_OFFSET(::google::api::PhpSettings, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::google::api::PhpSettings, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::PhpSettings, _impl_.common_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::PythonSettings_ExperimentalFeatures, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::PythonSettings_ExperimentalFeatures, _impl_.rest_async_io_enabled_), - PROTOBUF_FIELD_OFFSET(::google::api::PythonSettings_ExperimentalFeatures, _impl_.protobuf_pythonic_types_enabled_), - PROTOBUF_FIELD_OFFSET(::google::api::PythonSettings, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::google::api::PythonSettings, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::PythonSettings, _impl_.common_), - PROTOBUF_FIELD_OFFSET(::google::api::PythonSettings, _impl_.experimental_features_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::google::api::NodeSettings, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::google::api::NodeSettings, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::NodeSettings, _impl_.common_), - 0, - PROTOBUF_FIELD_OFFSET(::google::api::DotnetSettings_RenamedServicesEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::google::api::DotnetSettings_RenamedServicesEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::DotnetSettings_RenamedServicesEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::google::api::DotnetSettings_RenamedServicesEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::google::api::DotnetSettings_RenamedResourcesEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::google::api::DotnetSettings_RenamedResourcesEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::DotnetSettings_RenamedResourcesEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::google::api::DotnetSettings_RenamedResourcesEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::google::api::DotnetSettings, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::google::api::DotnetSettings, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::DotnetSettings, _impl_.common_), - PROTOBUF_FIELD_OFFSET(::google::api::DotnetSettings, _impl_.renamed_services_), - PROTOBUF_FIELD_OFFSET(::google::api::DotnetSettings, _impl_.renamed_resources_), - PROTOBUF_FIELD_OFFSET(::google::api::DotnetSettings, _impl_.ignored_resources_), - PROTOBUF_FIELD_OFFSET(::google::api::DotnetSettings, _impl_.forced_namespace_aliases_), - PROTOBUF_FIELD_OFFSET(::google::api::DotnetSettings, _impl_.handwritten_signatures_), - 0, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - PROTOBUF_FIELD_OFFSET(::google::api::RubySettings, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::google::api::RubySettings, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::RubySettings, _impl_.common_), - 0, - PROTOBUF_FIELD_OFFSET(::google::api::GoSettings, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::google::api::GoSettings, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::GoSettings, _impl_.common_), - 0, - PROTOBUF_FIELD_OFFSET(::google::api::MethodSettings_LongRunning, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::google::api::MethodSettings_LongRunning, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::MethodSettings_LongRunning, _impl_.initial_poll_delay_), - PROTOBUF_FIELD_OFFSET(::google::api::MethodSettings_LongRunning, _impl_.poll_delay_multiplier_), - PROTOBUF_FIELD_OFFSET(::google::api::MethodSettings_LongRunning, _impl_.max_poll_delay_), - PROTOBUF_FIELD_OFFSET(::google::api::MethodSettings_LongRunning, _impl_.total_poll_timeout_), - 0, - ~0u, - 1, - 2, - PROTOBUF_FIELD_OFFSET(::google::api::MethodSettings, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::google::api::MethodSettings, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::MethodSettings, _impl_.selector_), - PROTOBUF_FIELD_OFFSET(::google::api::MethodSettings, _impl_.long_running_), - PROTOBUF_FIELD_OFFSET(::google::api::MethodSettings, _impl_.auto_populated_fields_), - ~0u, - 0, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::SelectiveGapicGeneration, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::SelectiveGapicGeneration, _impl_.methods_), +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_google_2fapi_2fclient_2eproto = nullptr; + +const uint32_t TableStruct_google_2fapi_2fclient_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::CommonLanguageSettings, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::CommonLanguageSettings, reference_docs_uri_), + PROTOBUF_FIELD_OFFSET(::google::api::CommonLanguageSettings, destinations_), + PROTOBUF_FIELD_OFFSET(::google::api::CommonLanguageSettings, selective_gapic_generation_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::ClientLibrarySettings, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::ClientLibrarySettings, version_), + PROTOBUF_FIELD_OFFSET(::google::api::ClientLibrarySettings, launch_stage_), + PROTOBUF_FIELD_OFFSET(::google::api::ClientLibrarySettings, rest_numeric_enums_), + PROTOBUF_FIELD_OFFSET(::google::api::ClientLibrarySettings, java_settings_), + PROTOBUF_FIELD_OFFSET(::google::api::ClientLibrarySettings, cpp_settings_), + PROTOBUF_FIELD_OFFSET(::google::api::ClientLibrarySettings, php_settings_), + PROTOBUF_FIELD_OFFSET(::google::api::ClientLibrarySettings, python_settings_), + PROTOBUF_FIELD_OFFSET(::google::api::ClientLibrarySettings, node_settings_), + PROTOBUF_FIELD_OFFSET(::google::api::ClientLibrarySettings, dotnet_settings_), + PROTOBUF_FIELD_OFFSET(::google::api::ClientLibrarySettings, ruby_settings_), + PROTOBUF_FIELD_OFFSET(::google::api::ClientLibrarySettings, go_settings_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::Publishing, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::Publishing, method_settings_), + PROTOBUF_FIELD_OFFSET(::google::api::Publishing, new_issue_uri_), + PROTOBUF_FIELD_OFFSET(::google::api::Publishing, documentation_uri_), + PROTOBUF_FIELD_OFFSET(::google::api::Publishing, api_short_name_), + PROTOBUF_FIELD_OFFSET(::google::api::Publishing, github_label_), + PROTOBUF_FIELD_OFFSET(::google::api::Publishing, codeowner_github_teams_), + PROTOBUF_FIELD_OFFSET(::google::api::Publishing, doc_tag_prefix_), + PROTOBUF_FIELD_OFFSET(::google::api::Publishing, organization_), + PROTOBUF_FIELD_OFFSET(::google::api::Publishing, library_settings_), + PROTOBUF_FIELD_OFFSET(::google::api::Publishing, proto_reference_documentation_uri_), + PROTOBUF_FIELD_OFFSET(::google::api::Publishing, rest_reference_documentation_uri_), + PROTOBUF_FIELD_OFFSET(::google::api::JavaSettings_ServiceClassNamesEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::google::api::JavaSettings_ServiceClassNamesEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::JavaSettings_ServiceClassNamesEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::google::api::JavaSettings_ServiceClassNamesEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::JavaSettings, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::JavaSettings, library_package_), + PROTOBUF_FIELD_OFFSET(::google::api::JavaSettings, service_class_names_), + PROTOBUF_FIELD_OFFSET(::google::api::JavaSettings, common_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::CppSettings, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::CppSettings, common_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::PhpSettings, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::PhpSettings, common_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::PythonSettings_ExperimentalFeatures, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::PythonSettings_ExperimentalFeatures, rest_async_io_enabled_), + PROTOBUF_FIELD_OFFSET(::google::api::PythonSettings_ExperimentalFeatures, protobuf_pythonic_types_enabled_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::PythonSettings, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::PythonSettings, common_), + PROTOBUF_FIELD_OFFSET(::google::api::PythonSettings, experimental_features_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::NodeSettings, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::NodeSettings, common_), + PROTOBUF_FIELD_OFFSET(::google::api::DotnetSettings_RenamedServicesEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::google::api::DotnetSettings_RenamedServicesEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::DotnetSettings_RenamedServicesEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::google::api::DotnetSettings_RenamedServicesEntry_DoNotUse, value_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::google::api::DotnetSettings_RenamedResourcesEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::google::api::DotnetSettings_RenamedResourcesEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::DotnetSettings_RenamedResourcesEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::google::api::DotnetSettings_RenamedResourcesEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::DotnetSettings, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::DotnetSettings, common_), + PROTOBUF_FIELD_OFFSET(::google::api::DotnetSettings, renamed_services_), + PROTOBUF_FIELD_OFFSET(::google::api::DotnetSettings, renamed_resources_), + PROTOBUF_FIELD_OFFSET(::google::api::DotnetSettings, ignored_resources_), + PROTOBUF_FIELD_OFFSET(::google::api::DotnetSettings, forced_namespace_aliases_), + PROTOBUF_FIELD_OFFSET(::google::api::DotnetSettings, handwritten_signatures_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::RubySettings, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::RubySettings, common_), + PROTOBUF_FIELD_OFFSET(::google::api::GoSettings_RenamedServicesEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::google::api::GoSettings_RenamedServicesEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::GoSettings_RenamedServicesEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::google::api::GoSettings_RenamedServicesEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::GoSettings, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::GoSettings, common_), + PROTOBUF_FIELD_OFFSET(::google::api::GoSettings, renamed_services_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::MethodSettings_LongRunning, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::MethodSettings_LongRunning, initial_poll_delay_), + PROTOBUF_FIELD_OFFSET(::google::api::MethodSettings_LongRunning, poll_delay_multiplier_), + PROTOBUF_FIELD_OFFSET(::google::api::MethodSettings_LongRunning, max_poll_delay_), + PROTOBUF_FIELD_OFFSET(::google::api::MethodSettings_LongRunning, total_poll_timeout_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::MethodSettings, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::MethodSettings, selector_), + PROTOBUF_FIELD_OFFSET(::google::api::MethodSettings, long_running_), + PROTOBUF_FIELD_OFFSET(::google::api::MethodSettings, auto_populated_fields_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::SelectiveGapicGeneration, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::SelectiveGapicGeneration, methods_), }; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, 11, -1, sizeof(::google::api::CommonLanguageSettings)}, - {14, 33, -1, sizeof(::google::api::ClientLibrarySettings)}, - {44, -1, -1, sizeof(::google::api::Publishing)}, - {63, 73, -1, sizeof(::google::api::JavaSettings_ServiceClassNamesEntry_DoNotUse)}, - {75, 86, -1, sizeof(::google::api::JavaSettings)}, - {89, 98, -1, sizeof(::google::api::CppSettings)}, - {99, 108, -1, sizeof(::google::api::PhpSettings)}, - {109, -1, -1, sizeof(::google::api::PythonSettings_ExperimentalFeatures)}, - {119, 129, -1, sizeof(::google::api::PythonSettings)}, - {131, 140, -1, sizeof(::google::api::NodeSettings)}, - {141, 151, -1, sizeof(::google::api::DotnetSettings_RenamedServicesEntry_DoNotUse)}, - {153, 163, -1, sizeof(::google::api::DotnetSettings_RenamedResourcesEntry_DoNotUse)}, - {165, 179, -1, sizeof(::google::api::DotnetSettings)}, - {185, 194, -1, sizeof(::google::api::RubySettings)}, - {195, 204, -1, sizeof(::google::api::GoSettings)}, - {205, 217, -1, sizeof(::google::api::MethodSettings_LongRunning)}, - {221, 232, -1, sizeof(::google::api::MethodSettings)}, - {235, -1, -1, sizeof(::google::api::SelectiveGapicGeneration)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::google::api::CommonLanguageSettings)}, + { 9, -1, -1, sizeof(::google::api::ClientLibrarySettings)}, + { 26, -1, -1, sizeof(::google::api::Publishing)}, + { 43, 51, -1, sizeof(::google::api::JavaSettings_ServiceClassNamesEntry_DoNotUse)}, + { 53, -1, -1, sizeof(::google::api::JavaSettings)}, + { 62, -1, -1, sizeof(::google::api::CppSettings)}, + { 69, -1, -1, sizeof(::google::api::PhpSettings)}, + { 76, -1, -1, sizeof(::google::api::PythonSettings_ExperimentalFeatures)}, + { 84, -1, -1, sizeof(::google::api::PythonSettings)}, + { 92, -1, -1, sizeof(::google::api::NodeSettings)}, + { 99, 107, -1, sizeof(::google::api::DotnetSettings_RenamedServicesEntry_DoNotUse)}, + { 109, 117, -1, sizeof(::google::api::DotnetSettings_RenamedResourcesEntry_DoNotUse)}, + { 119, -1, -1, sizeof(::google::api::DotnetSettings)}, + { 131, -1, -1, sizeof(::google::api::RubySettings)}, + { 138, 146, -1, sizeof(::google::api::GoSettings_RenamedServicesEntry_DoNotUse)}, + { 148, -1, -1, sizeof(::google::api::GoSettings)}, + { 156, -1, -1, sizeof(::google::api::MethodSettings_LongRunning)}, + { 166, -1, -1, sizeof(::google::api::MethodSettings)}, + { 175, -1, -1, sizeof(::google::api::SelectiveGapicGeneration)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::google::api::_CommonLanguageSettings_default_instance_._instance, - &::google::api::_ClientLibrarySettings_default_instance_._instance, - &::google::api::_Publishing_default_instance_._instance, - &::google::api::_JavaSettings_ServiceClassNamesEntry_DoNotUse_default_instance_._instance, - &::google::api::_JavaSettings_default_instance_._instance, - &::google::api::_CppSettings_default_instance_._instance, - &::google::api::_PhpSettings_default_instance_._instance, - &::google::api::_PythonSettings_ExperimentalFeatures_default_instance_._instance, - &::google::api::_PythonSettings_default_instance_._instance, - &::google::api::_NodeSettings_default_instance_._instance, - &::google::api::_DotnetSettings_RenamedServicesEntry_DoNotUse_default_instance_._instance, - &::google::api::_DotnetSettings_RenamedResourcesEntry_DoNotUse_default_instance_._instance, - &::google::api::_DotnetSettings_default_instance_._instance, - &::google::api::_RubySettings_default_instance_._instance, - &::google::api::_GoSettings_default_instance_._instance, - &::google::api::_MethodSettings_LongRunning_default_instance_._instance, - &::google::api::_MethodSettings_default_instance_._instance, - &::google::api::_SelectiveGapicGeneration_default_instance_._instance, -}; -const char descriptor_table_protodef_google_2fapi_2fclient_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n\027google/api/client.proto\022\ngoogle.api\032\035g" - "oogle/api/launch_stage.proto\032 google/pro" - "tobuf/descriptor.proto\032\036google/protobuf/" - "duration.proto\"\370\001\n\026CommonLanguageSetting" - "s\0220\n\022reference_docs_uri\030\001 \001(\tB\002\030\001R\020refer" - "enceDocsUri\022H\n\014destinations\030\002 \003(\0162$.goog" - "le.api.ClientLibraryDestinationR\014destina" - "tions\022b\n\032selective_gapic_generation\030\003 \001(" - "\0132$.google.api.SelectiveGapicGenerationR" - "\030selectiveGapicGeneration\"\223\005\n\025ClientLibr" - "arySettings\022\030\n\007version\030\001 \001(\tR\007version\022:\n" - "\014launch_stage\030\002 \001(\0162\027.google.api.LaunchS" - "tageR\013launchStage\022,\n\022rest_numeric_enums\030" - "\003 \001(\010R\020restNumericEnums\022=\n\rjava_settings" - "\030\025 \001(\0132\030.google.api.JavaSettingsR\014javaSe" - "ttings\022:\n\014cpp_settings\030\026 \001(\0132\027.google.ap" - "i.CppSettingsR\013cppSettings\022:\n\014php_settin" - "gs\030\027 \001(\0132\027.google.api.PhpSettingsR\013phpSe" - "ttings\022C\n\017python_settings\030\030 \001(\0132\032.google" - ".api.PythonSettingsR\016pythonSettings\022=\n\rn" - "ode_settings\030\031 \001(\0132\030.google.api.NodeSett" - "ingsR\014nodeSettings\022C\n\017dotnet_settings\030\032 " - "\001(\0132\032.google.api.DotnetSettingsR\016dotnetS" - "ettings\022=\n\rruby_settings\030\033 \001(\0132\030.google." - "api.RubySettingsR\014rubySettings\0227\n\013go_set" - "tings\030\034 \001(\0132\026.google.api.GoSettingsR\ngoS" - "ettings\"\364\004\n\nPublishing\022C\n\017method_setting" - "s\030\002 \003(\0132\032.google.api.MethodSettingsR\016met" - "hodSettings\022\"\n\rnew_issue_uri\030e \001(\tR\013newI" - "ssueUri\022+\n\021documentation_uri\030f \001(\tR\020docu" - "mentationUri\022$\n\016api_short_name\030g \001(\tR\014ap" - "iShortName\022!\n\014github_label\030h \001(\tR\013github" - "Label\0224\n\026codeowner_github_teams\030i \003(\tR\024c" - "odeownerGithubTeams\022$\n\016doc_tag_prefix\030j " - "\001(\tR\014docTagPrefix\022I\n\014organization\030k \001(\0162" - "%.google.api.ClientLibraryOrganizationR\014" - "organization\022L\n\020library_settings\030m \003(\0132!" - ".google.api.ClientLibrarySettingsR\017libra" - "rySettings\022I\n!proto_reference_documentat" - "ion_uri\030n \001(\tR\036protoReferenceDocumentati" - "onUri\022G\n rest_reference_documentation_ur" - "i\030o \001(\tR\035restReferenceDocumentationUri\"\232" - "\002\n\014JavaSettings\022\'\n\017library_package\030\001 \001(\t" - "R\016libraryPackage\022_\n\023service_class_names\030" - "\002 \003(\0132/.google.api.JavaSettings.ServiceC" - "lassNamesEntryR\021serviceClassNames\022:\n\006com" - "mon\030\003 \001(\0132\".google.api.CommonLanguageSet" - "tingsR\006common\032D\n\026ServiceClassNamesEntry\022" - "\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\tR\005value:" - "\0028\001\"I\n\013CppSettings\022:\n\006common\030\001 \001(\0132\".goo" - "gle.api.CommonLanguageSettingsR\006common\"I" - "\n\013PhpSettings\022:\n\006common\030\001 \001(\0132\".google.a" - "pi.CommonLanguageSettingsR\006common\"\305\002\n\016Py" - "thonSettings\022:\n\006common\030\001 \001(\0132\".google.ap" - "i.CommonLanguageSettingsR\006common\022d\n\025expe" - "rimental_features\030\002 \001(\0132/.google.api.Pyt" - "honSettings.ExperimentalFeaturesR\024experi" - "mentalFeatures\032\220\001\n\024ExperimentalFeatures\022" - "1\n\025rest_async_io_enabled\030\001 \001(\010R\022restAsyn" - "cIoEnabled\022E\n\037protobuf_pythonic_types_en" - "abled\030\002 \001(\010R\034protobufPythonicTypesEnable" - "d\"J\n\014NodeSettings\022:\n\006common\030\001 \001(\0132\".goog" - "le.api.CommonLanguageSettingsR\006common\"\256\004" - "\n\016DotnetSettings\022:\n\006common\030\001 \001(\0132\".googl" - "e.api.CommonLanguageSettingsR\006common\022Z\n\020" - "renamed_services\030\002 \003(\0132/.google.api.Dotn" - "etSettings.RenamedServicesEntryR\017renamed" - "Services\022]\n\021renamed_resources\030\003 \003(\01320.go" - "ogle.api.DotnetSettings.RenamedResources" - "EntryR\020renamedResources\022+\n\021ignored_resou" - "rces\030\004 \003(\tR\020ignoredResources\0228\n\030forced_n" - "amespace_aliases\030\005 \003(\tR\026forcedNamespaceA" - "liases\0225\n\026handwritten_signatures\030\006 \003(\tR\025" - "handwrittenSignatures\032B\n\024RenamedServices" - "Entry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\tR\005" - "value:\0028\001\032C\n\025RenamedResourcesEntry\022\020\n\003ke" - "y\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\tR\005value:\0028\001\"J" - "\n\014RubySettings\022:\n\006common\030\001 \001(\0132\".google." - "api.CommonLanguageSettingsR\006common\"H\n\nGo" - "Settings\022:\n\006common\030\001 \001(\0132\".google.api.Co" - "mmonLanguageSettingsR\006common\"\302\003\n\016MethodS" - "ettings\022\032\n\010selector\030\001 \001(\tR\010selector\022I\n\014l" - "ong_running\030\002 \001(\0132&.google.api.MethodSet" - "tings.LongRunningR\013longRunning\0222\n\025auto_p" - "opulated_fields\030\003 \003(\tR\023autoPopulatedFiel" - "ds\032\224\002\n\013LongRunning\022G\n\022initial_poll_delay" - "\030\001 \001(\0132\031.google.protobuf.DurationR\020initi" - "alPollDelay\0222\n\025poll_delay_multiplier\030\002 \001" - "(\002R\023pollDelayMultiplier\022\?\n\016max_poll_dela" - "y\030\003 \001(\0132\031.google.protobuf.DurationR\014maxP" - "ollDelay\022G\n\022total_poll_timeout\030\004 \001(\0132\031.g" - "oogle.protobuf.DurationR\020totalPollTimeou" - "t\"4\n\030SelectiveGapicGeneration\022\030\n\007methods" - "\030\001 \003(\tR\007methods*\243\001\n\031ClientLibraryOrganiz" - "ation\022+\n\'CLIENT_LIBRARY_ORGANIZATION_UNS" - "PECIFIED\020\000\022\t\n\005CLOUD\020\001\022\007\n\003ADS\020\002\022\n\n\006PHOTOS" - "\020\003\022\017\n\013STREET_VIEW\020\004\022\014\n\010SHOPPING\020\005\022\007\n\003GEO" - "\020\006\022\021\n\rGENERATIVE_AI\020\007*g\n\030ClientLibraryDe" - "stination\022*\n&CLIENT_LIBRARY_DESTINATION_" - "UNSPECIFIED\020\000\022\n\n\006GITHUB\020\n\022\023\n\017PACKAGE_MAN" - "AGER\020\024:J\n\020method_signature\022\036.google.prot" - "obuf.MethodOptions\030\233\010 \003(\tR\017methodSignatu" - "re:C\n\014default_host\022\037.google.protobuf.Ser" - "viceOptions\030\231\010 \001(\tR\013defaultHost:C\n\014oauth" - "_scopes\022\037.google.protobuf.ServiceOptions" - "\030\232\010 \001(\tR\013oauthScopes:D\n\013api_version\022\037.go" - "ogle.protobuf.ServiceOptions\030\301\272\253\372\001 \001(\tR\n" - "apiVersionB\251\001\n\016com.google.apiB\013ClientPro" - "toP\001ZAgoogle.golang.org/genproto/googlea" - "pis/api/annotations;annotations\242\002\003GAX\252\002\n" - "Google.Api\312\002\nGoogle\\Api\342\002\026Google\\Api\\GPB" - "Metadata\352\002\013Google::Apib\006proto3" + &::google::api::_CommonLanguageSettings_default_instance_._instance, + &::google::api::_ClientLibrarySettings_default_instance_._instance, + &::google::api::_Publishing_default_instance_._instance, + &::google::api::_JavaSettings_ServiceClassNamesEntry_DoNotUse_default_instance_._instance, + &::google::api::_JavaSettings_default_instance_._instance, + &::google::api::_CppSettings_default_instance_._instance, + &::google::api::_PhpSettings_default_instance_._instance, + &::google::api::_PythonSettings_ExperimentalFeatures_default_instance_._instance, + &::google::api::_PythonSettings_default_instance_._instance, + &::google::api::_NodeSettings_default_instance_._instance, + &::google::api::_DotnetSettings_RenamedServicesEntry_DoNotUse_default_instance_._instance, + &::google::api::_DotnetSettings_RenamedResourcesEntry_DoNotUse_default_instance_._instance, + &::google::api::_DotnetSettings_default_instance_._instance, + &::google::api::_RubySettings_default_instance_._instance, + &::google::api::_GoSettings_RenamedServicesEntry_DoNotUse_default_instance_._instance, + &::google::api::_GoSettings_default_instance_._instance, + &::google::api::_MethodSettings_LongRunning_default_instance_._instance, + &::google::api::_MethodSettings_default_instance_._instance, + &::google::api::_SelectiveGapicGeneration_default_instance_._instance, }; -static const ::_pbi::DescriptorTable* const descriptor_table_google_2fapi_2fclient_2eproto_deps[3] = - { - &::descriptor_table_google_2fapi_2flaunch_5fstage_2eproto, - &::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto, - &::descriptor_table_google_2fprotobuf_2fduration_2eproto, + +const char descriptor_table_protodef_google_2fapi_2fclient_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\027google/api/client.proto\022\ngoogle.api\032\035g" + "oogle/api/launch_stage.proto\032 google/pro" + "tobuf/descriptor.proto\032\036google/protobuf/" + "duration.proto\"\370\001\n\026CommonLanguageSetting" + "s\0220\n\022reference_docs_uri\030\001 \001(\tB\002\030\001R\020refer" + "enceDocsUri\022H\n\014destinations\030\002 \003(\0162$.goog" + "le.api.ClientLibraryDestinationR\014destina" + "tions\022b\n\032selective_gapic_generation\030\003 \001(" + "\0132$.google.api.SelectiveGapicGenerationR" + "\030selectiveGapicGeneration\"\223\005\n\025ClientLibr" + "arySettings\022\030\n\007version\030\001 \001(\tR\007version\022:\n" + "\014launch_stage\030\002 \001(\0162\027.google.api.LaunchS" + "tageR\013launchStage\022,\n\022rest_numeric_enums\030" + "\003 \001(\010R\020restNumericEnums\022=\n\rjava_settings" + "\030\025 \001(\0132\030.google.api.JavaSettingsR\014javaSe" + "ttings\022:\n\014cpp_settings\030\026 \001(\0132\027.google.ap" + "i.CppSettingsR\013cppSettings\022:\n\014php_settin" + "gs\030\027 \001(\0132\027.google.api.PhpSettingsR\013phpSe" + "ttings\022C\n\017python_settings\030\030 \001(\0132\032.google" + ".api.PythonSettingsR\016pythonSettings\022=\n\rn" + "ode_settings\030\031 \001(\0132\030.google.api.NodeSett" + "ingsR\014nodeSettings\022C\n\017dotnet_settings\030\032 " + "\001(\0132\032.google.api.DotnetSettingsR\016dotnetS" + "ettings\022=\n\rruby_settings\030\033 \001(\0132\030.google." + "api.RubySettingsR\014rubySettings\0227\n\013go_set" + "tings\030\034 \001(\0132\026.google.api.GoSettingsR\ngoS" + "ettings\"\364\004\n\nPublishing\022C\n\017method_setting" + "s\030\002 \003(\0132\032.google.api.MethodSettingsR\016met" + "hodSettings\022\"\n\rnew_issue_uri\030e \001(\tR\013newI" + "ssueUri\022+\n\021documentation_uri\030f \001(\tR\020docu" + "mentationUri\022$\n\016api_short_name\030g \001(\tR\014ap" + "iShortName\022!\n\014github_label\030h \001(\tR\013github" + "Label\0224\n\026codeowner_github_teams\030i \003(\tR\024c" + "odeownerGithubTeams\022$\n\016doc_tag_prefix\030j " + "\001(\tR\014docTagPrefix\022I\n\014organization\030k \001(\0162" + "%.google.api.ClientLibraryOrganizationR\014" + "organization\022L\n\020library_settings\030m \003(\0132!" + ".google.api.ClientLibrarySettingsR\017libra" + "rySettings\022I\n!proto_reference_documentat" + "ion_uri\030n \001(\tR\036protoReferenceDocumentati" + "onUri\022G\n rest_reference_documentation_ur" + "i\030o \001(\tR\035restReferenceDocumentationUri\"\232" + "\002\n\014JavaSettings\022\'\n\017library_package\030\001 \001(\t" + "R\016libraryPackage\022_\n\023service_class_names\030" + "\002 \003(\0132/.google.api.JavaSettings.ServiceC" + "lassNamesEntryR\021serviceClassNames\022:\n\006com" + "mon\030\003 \001(\0132\".google.api.CommonLanguageSet" + "tingsR\006common\032D\n\026ServiceClassNamesEntry\022" + "\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\tR\005value:" + "\0028\001\"I\n\013CppSettings\022:\n\006common\030\001 \001(\0132\".goo" + "gle.api.CommonLanguageSettingsR\006common\"I" + "\n\013PhpSettings\022:\n\006common\030\001 \001(\0132\".google.a" + "pi.CommonLanguageSettingsR\006common\"\305\002\n\016Py" + "thonSettings\022:\n\006common\030\001 \001(\0132\".google.ap" + "i.CommonLanguageSettingsR\006common\022d\n\025expe" + "rimental_features\030\002 \001(\0132/.google.api.Pyt" + "honSettings.ExperimentalFeaturesR\024experi" + "mentalFeatures\032\220\001\n\024ExperimentalFeatures\022" + "1\n\025rest_async_io_enabled\030\001 \001(\010R\022restAsyn" + "cIoEnabled\022E\n\037protobuf_pythonic_types_en" + "abled\030\002 \001(\010R\034protobufPythonicTypesEnable" + "d\"J\n\014NodeSettings\022:\n\006common\030\001 \001(\0132\".goog" + "le.api.CommonLanguageSettingsR\006common\"\256\004" + "\n\016DotnetSettings\022:\n\006common\030\001 \001(\0132\".googl" + "e.api.CommonLanguageSettingsR\006common\022Z\n\020" + "renamed_services\030\002 \003(\0132/.google.api.Dotn" + "etSettings.RenamedServicesEntryR\017renamed" + "Services\022]\n\021renamed_resources\030\003 \003(\01320.go" + "ogle.api.DotnetSettings.RenamedResources" + "EntryR\020renamedResources\022+\n\021ignored_resou" + "rces\030\004 \003(\tR\020ignoredResources\0228\n\030forced_n" + "amespace_aliases\030\005 \003(\tR\026forcedNamespaceA" + "liases\0225\n\026handwritten_signatures\030\006 \003(\tR\025" + "handwrittenSignatures\032B\n\024RenamedServices" + "Entry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\tR\005" + "value:\0028\001\032C\n\025RenamedResourcesEntry\022\020\n\003ke" + "y\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\tR\005value:\0028\001\"J" + "\n\014RubySettings\022:\n\006common\030\001 \001(\0132\".google." + "api.CommonLanguageSettingsR\006common\"\344\001\n\nG" + "oSettings\022:\n\006common\030\001 \001(\0132\".google.api.C" + "ommonLanguageSettingsR\006common\022V\n\020renamed" + "_services\030\002 \003(\0132+.google.api.GoSettings." + "RenamedServicesEntryR\017renamedServices\032B\n" + "\024RenamedServicesEntry\022\020\n\003key\030\001 \001(\tR\003key\022" + "\024\n\005value\030\002 \001(\tR\005value:\0028\001\"\302\003\n\016MethodSett" + "ings\022\032\n\010selector\030\001 \001(\tR\010selector\022I\n\014long" + "_running\030\002 \001(\0132&.google.api.MethodSettin" + "gs.LongRunningR\013longRunning\0222\n\025auto_popu" + "lated_fields\030\003 \003(\tR\023autoPopulatedFields\032" + "\224\002\n\013LongRunning\022G\n\022initial_poll_delay\030\001 " + "\001(\0132\031.google.protobuf.DurationR\020initialP" + "ollDelay\0222\n\025poll_delay_multiplier\030\002 \001(\002R" + "\023pollDelayMultiplier\022\?\n\016max_poll_delay\030\003" + " \001(\0132\031.google.protobuf.DurationR\014maxPoll" + "Delay\022G\n\022total_poll_timeout\030\004 \001(\0132\031.goog" + "le.protobuf.DurationR\020totalPollTimeout\"4" + "\n\030SelectiveGapicGeneration\022\030\n\007methods\030\001 " + "\003(\tR\007methods*\243\001\n\031ClientLibraryOrganizati" + "on\022+\n\'CLIENT_LIBRARY_ORGANIZATION_UNSPEC" + "IFIED\020\000\022\t\n\005CLOUD\020\001\022\007\n\003ADS\020\002\022\n\n\006PHOTOS\020\003\022" + "\017\n\013STREET_VIEW\020\004\022\014\n\010SHOPPING\020\005\022\007\n\003GEO\020\006\022" + "\021\n\rGENERATIVE_AI\020\007*g\n\030ClientLibraryDesti" + "nation\022*\n&CLIENT_LIBRARY_DESTINATION_UNS" + "PECIFIED\020\000\022\n\n\006GITHUB\020\n\022\023\n\017PACKAGE_MANAGE" + "R\020\024:J\n\020method_signature\022\036.google.protobu" + "f.MethodOptions\030\233\010 \003(\tR\017methodSignature:" + "C\n\014default_host\022\037.google.protobuf.Servic" + "eOptions\030\231\010 \001(\tR\013defaultHost:C\n\014oauth_sc" + "opes\022\037.google.protobuf.ServiceOptions\030\232\010" + " \001(\tR\013oauthScopes:D\n\013api_version\022\037.googl" + "e.protobuf.ServiceOptions\030\301\272\253\372\001 \001(\tR\napi" + "VersionBi\n\016com.google.apiB\013ClientProtoP\001" + "ZAgoogle.golang.org/genproto/googleapis/" + "api/annotations;annotations\242\002\004GAPIb\006prot" + "o3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_google_2fapi_2fclient_2eproto_deps[3] = { + &::descriptor_table_google_2fapi_2flaunch_5fstage_2eproto, + &::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto, + &::descriptor_table_google_2fprotobuf_2fduration_2eproto, }; -static ::absl::once_flag descriptor_table_google_2fapi_2fclient_2eproto_once; +static ::_pbi::once_flag descriptor_table_google_2fapi_2fclient_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_google_2fapi_2fclient_2eproto = { - false, - false, - 4470, - descriptor_table_protodef_google_2fapi_2fclient_2eproto, + false, false, 4562, descriptor_table_protodef_google_2fapi_2fclient_2eproto, "google/api/client.proto", - &descriptor_table_google_2fapi_2fclient_2eproto_once, - descriptor_table_google_2fapi_2fclient_2eproto_deps, - 3, - 18, - schemas, - file_default_instances, - TableStruct_google_2fapi_2fclient_2eproto::offsets, - file_level_metadata_google_2fapi_2fclient_2eproto, - file_level_enum_descriptors_google_2fapi_2fclient_2eproto, + &descriptor_table_google_2fapi_2fclient_2eproto_once, descriptor_table_google_2fapi_2fclient_2eproto_deps, 3, 19, + schemas, file_default_instances, TableStruct_google_2fapi_2fclient_2eproto::offsets, + file_level_metadata_google_2fapi_2fclient_2eproto, file_level_enum_descriptors_google_2fapi_2fclient_2eproto, file_level_service_descriptors_google_2fapi_2fclient_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2fapi_2fclient_2eproto_getter() { return &descriptor_table_google_2fapi_2fclient_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fapi_2fclient_2eproto(&descriptor_table_google_2fapi_2fclient_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fapi_2fclient_2eproto(&descriptor_table_google_2fapi_2fclient_2eproto); namespace google { namespace api { -const ::google::protobuf::EnumDescriptor* ClientLibraryOrganization_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_google_2fapi_2fclient_2eproto); +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ClientLibraryOrganization_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_google_2fapi_2fclient_2eproto); return file_level_enum_descriptors_google_2fapi_2fclient_2eproto[0]; } -PROTOBUF_CONSTINIT const uint32_t ClientLibraryOrganization_internal_data_[] = { - 524288u, 0u, }; bool ClientLibraryOrganization_IsValid(int value) { - return 0 <= value && value <= 7; -} -const ::google::protobuf::EnumDescriptor* ClientLibraryDestination_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_google_2fapi_2fclient_2eproto); + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + return true; + default: + return false; + } +} + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ClientLibraryDestination_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_google_2fapi_2fclient_2eproto); return file_level_enum_descriptors_google_2fapi_2fclient_2eproto[1]; } -PROTOBUF_CONSTINIT const uint32_t ClientLibraryDestination_internal_data_[] = { - 65536u, 32u, 524800u, }; bool ClientLibraryDestination_IsValid(int value) { - return 0 <= value && value <= 20 && ((1049601u >> value) & 1) != 0; + switch (value) { + case 0: + case 10: + case 20: + return true; + default: + return false; + } } + + // =================================================================== class CommonLanguageSettings::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(CommonLanguageSettings, _impl_._has_bits_); static const ::google::api::SelectiveGapicGeneration& selective_gapic_generation(const CommonLanguageSettings* msg); - static void set_has_selective_gapic_generation(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::google::api::SelectiveGapicGeneration& CommonLanguageSettings::_Internal::selective_gapic_generation(const CommonLanguageSettings* msg) { - return *msg->_impl_.selective_gapic_generation_; +const ::google::api::SelectiveGapicGeneration& +CommonLanguageSettings::_Internal::selective_gapic_generation(const CommonLanguageSettings* msg) { + return *msg->selective_gapic_generation_; } -CommonLanguageSettings::CommonLanguageSettings(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +CommonLanguageSettings::CommonLanguageSettings(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + destinations_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.CommonLanguageSettings) } -inline PROTOBUF_NDEBUG_INLINE CommonLanguageSettings::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - destinations_{visibility, arena, from.destinations_}, - _destinations_cached_byte_size_{0}, - reference_docs_uri_(arena, from.reference_docs_uri_) {} - -CommonLanguageSettings::CommonLanguageSettings( - ::google::protobuf::Arena* arena, - const CommonLanguageSettings& from) - : ::google::protobuf::Message(arena) { - CommonLanguageSettings* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.selective_gapic_generation_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::api::SelectiveGapicGeneration>(arena, *from._impl_.selective_gapic_generation_) - : nullptr; - +CommonLanguageSettings::CommonLanguageSettings(const CommonLanguageSettings& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + destinations_(from.destinations_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + reference_docs_uri_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + reference_docs_uri_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_reference_docs_uri().empty()) { + reference_docs_uri_.Set(from._internal_reference_docs_uri(), + GetArenaForAllocation()); + } + if (from._internal_has_selective_gapic_generation()) { + selective_gapic_generation_ = new ::google::api::SelectiveGapicGeneration(*from.selective_gapic_generation_); + } else { + selective_gapic_generation_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:google.api.CommonLanguageSettings) } -inline PROTOBUF_NDEBUG_INLINE CommonLanguageSettings::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - destinations_{visibility, arena}, - _destinations_cached_byte_size_{0}, - reference_docs_uri_(arena) {} -inline void CommonLanguageSettings::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.selective_gapic_generation_ = {}; +inline void CommonLanguageSettings::SharedCtor() { +reference_docs_uri_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + reference_docs_uri_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +selective_gapic_generation_ = nullptr; } + CommonLanguageSettings::~CommonLanguageSettings() { // @@protoc_insertion_point(destructor:google.api.CommonLanguageSettings) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void CommonLanguageSettings::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.reference_docs_uri_.Destroy(); - delete _impl_.selective_gapic_generation_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + reference_docs_uri_.Destroy(); + if (this != internal_default_instance()) delete selective_gapic_generation_; +} + +void CommonLanguageSettings::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void CommonLanguageSettings::Clear() { +void CommonLanguageSettings::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.CommonLanguageSettings) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.destinations_.Clear(); - _impl_.reference_docs_uri_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.selective_gapic_generation_ != nullptr); - _impl_.selective_gapic_generation_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* CommonLanguageSettings::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + destinations_.Clear(); + reference_docs_uri_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && selective_gapic_generation_ != nullptr) { + delete selective_gapic_generation_; + } + selective_gapic_generation_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CommonLanguageSettings::_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 reference_docs_uri = 1 [json_name = "referenceDocsUri", deprecated = true]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_reference_docs_uri(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.CommonLanguageSettings.reference_docs_uri")); + } else + goto handle_unusual; + continue; + // repeated .google.api.ClientLibraryDestination destinations = 2 [json_name = "destinations"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_destinations(), ptr, ctx); + CHK_(ptr); + } else if (static_cast(tag) == 16) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_add_destinations(static_cast<::google::api::ClientLibraryDestination>(val)); + } else + goto handle_unusual; + continue; + // .google.api.SelectiveGapicGeneration selective_gapic_generation = 3 [json_name = "selectiveGapicGeneration"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_selective_gapic_generation(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 1, 60, 2> CommonLanguageSettings::_table_ = { - { - PROTOBUF_FIELD_OFFSET(CommonLanguageSettings, _impl_._has_bits_), - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_CommonLanguageSettings_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string reference_docs_uri = 1 [json_name = "referenceDocsUri", deprecated = true]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(CommonLanguageSettings, _impl_.reference_docs_uri_)}}, - // repeated .google.api.ClientLibraryDestination destinations = 2 [json_name = "destinations"]; - {::_pbi::TcParser::FastV32P1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(CommonLanguageSettings, _impl_.destinations_)}}, - // .google.api.SelectiveGapicGeneration selective_gapic_generation = 3 [json_name = "selectiveGapicGeneration"]; - {::_pbi::TcParser::FastMtS1, - {26, 0, 0, PROTOBUF_FIELD_OFFSET(CommonLanguageSettings, _impl_.selective_gapic_generation_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string reference_docs_uri = 1 [json_name = "referenceDocsUri", deprecated = true]; - {PROTOBUF_FIELD_OFFSET(CommonLanguageSettings, _impl_.reference_docs_uri_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated .google.api.ClientLibraryDestination destinations = 2 [json_name = "destinations"]; - {PROTOBUF_FIELD_OFFSET(CommonLanguageSettings, _impl_.destinations_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kPackedOpenEnum)}, - // .google.api.SelectiveGapicGeneration selective_gapic_generation = 3 [json_name = "selectiveGapicGeneration"]; - {PROTOBUF_FIELD_OFFSET(CommonLanguageSettings, _impl_.selective_gapic_generation_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::SelectiveGapicGeneration>()}, - }}, {{ - "\41\22\0\0\0\0\0\0" - "google.api.CommonLanguageSettings" - "reference_docs_uri" - }}, -}; - -::uint8_t* CommonLanguageSettings::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* CommonLanguageSettings::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.CommonLanguageSettings) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string reference_docs_uri = 1 [json_name = "referenceDocsUri", deprecated = true]; if (!this->_internal_reference_docs_uri().empty()) { - const std::string& _s = this->_internal_reference_docs_uri(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.CommonLanguageSettings.reference_docs_uri"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_reference_docs_uri().data(), static_cast(this->_internal_reference_docs_uri().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.CommonLanguageSettings.reference_docs_uri"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_reference_docs_uri(), target); } // repeated .google.api.ClientLibraryDestination destinations = 2 [json_name = "destinations"]; { - std::size_t byte_size = _impl_._destinations_cached_byte_size_.Get(); + int byte_size = _destinations_cached_byte_size_.load(std::memory_order_relaxed); if (byte_size > 0) { - target = stream->WriteEnumPacked(2, _internal_destinations(), - byte_size, target); + target = stream->WriteEnumPacked( + 2, destinations_, byte_size, target); } } - cached_has_bits = _impl_._has_bits_[0]; // .google.api.SelectiveGapicGeneration selective_gapic_generation = 3 [json_name = "selectiveGapicGeneration"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::selective_gapic_generation(this), + if (this->_internal_has_selective_gapic_generation()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::selective_gapic_generation(this), _Internal::selective_gapic_generation(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.CommonLanguageSettings) return target; } -::size_t CommonLanguageSettings::ByteSizeLong() const { +size_t CommonLanguageSettings::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.CommonLanguageSettings) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .google.api.ClientLibraryDestination destinations = 2 [json_name = "destinations"]; { - std::size_t data_size = 0; - auto count = static_cast(this->_internal_destinations_size()); - - for (std::size_t i = 0; i < count; ++i) { + size_t data_size = 0; + unsigned int count = static_cast(this->_internal_destinations_size());for (unsigned int i = 0; i < count; i++) { data_size += ::_pbi::WireFormatLite::EnumSize( - this->_internal_destinations().Get(static_cast(i))); + this->_internal_destinations(static_cast(i))); } - total_size += data_size; if (data_size > 0) { - total_size += 1; - total_size += ::_pbi::WireFormatLite::Int32Size( - static_cast(data_size)); + total_size += 1 + + ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); } - _impl_._destinations_cached_byte_size_.Set(::_pbi::ToCachedSize(data_size)); + int cached_size = ::_pbi::ToCachedSize(data_size); + _destinations_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); + total_size += data_size; } + // string reference_docs_uri = 1 [json_name = "referenceDocsUri", deprecated = true]; if (!this->_internal_reference_docs_uri().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_reference_docs_uri()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_reference_docs_uri()); } // .google.api.SelectiveGapicGeneration selective_gapic_generation = 3 [json_name = "selectiveGapicGeneration"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.selective_gapic_generation_); + if (this->_internal_has_selective_gapic_generation()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *selective_gapic_generation_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData CommonLanguageSettings::_class_data_ = { - CommonLanguageSettings::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CommonLanguageSettings::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CommonLanguageSettings::MergeImpl }; -const ::google::protobuf::Message::ClassData* CommonLanguageSettings::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CommonLanguageSettings::GetClassData() const { return &_class_data_; } + +void CommonLanguageSettings::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void CommonLanguageSettings::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.CommonLanguageSettings) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void CommonLanguageSettings::MergeFrom(const CommonLanguageSettings& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.CommonLanguageSettings) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_destinations()->MergeFrom(from._internal_destinations()); + destinations_.MergeFrom(from.destinations_); if (!from._internal_reference_docs_uri().empty()) { - _this->_internal_set_reference_docs_uri(from._internal_reference_docs_uri()); + _internal_set_reference_docs_uri(from._internal_reference_docs_uri()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_selective_gapic_generation()->::google::api::SelectiveGapicGeneration::MergeFrom( - from._internal_selective_gapic_generation()); + if (from._internal_has_selective_gapic_generation()) { + _internal_mutable_selective_gapic_generation()->::google::api::SelectiveGapicGeneration::MergeFrom(from._internal_selective_gapic_generation()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CommonLanguageSettings::CopyFrom(const CommonLanguageSettings& from) { @@ -1131,581 +952,571 @@ void CommonLanguageSettings::CopyFrom(const CommonLanguageSettings& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool CommonLanguageSettings::IsInitialized() const { +bool CommonLanguageSettings::IsInitialized() const { return true; } -::_pbi::CachedSize* CommonLanguageSettings::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void CommonLanguageSettings::InternalSwap(CommonLanguageSettings* PROTOBUF_RESTRICT other) { +void CommonLanguageSettings::InternalSwap(CommonLanguageSettings* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.destinations_.InternalSwap(&other->_impl_.destinations_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.reference_docs_uri_, &other->_impl_.reference_docs_uri_, arena); - swap(_impl_.selective_gapic_generation_, other->_impl_.selective_gapic_generation_); + destinations_.InternalSwap(&other->destinations_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &reference_docs_uri_, lhs_arena, + &other->reference_docs_uri_, rhs_arena + ); + swap(selective_gapic_generation_, other->selective_gapic_generation_); } -::google::protobuf::Metadata CommonLanguageSettings::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata CommonLanguageSettings::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fclient_2eproto_getter, &descriptor_table_google_2fapi_2fclient_2eproto_once, file_level_metadata_google_2fapi_2fclient_2eproto[0]); } + // =================================================================== class ClientLibrarySettings::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ClientLibrarySettings, _impl_._has_bits_); static const ::google::api::JavaSettings& java_settings(const ClientLibrarySettings* msg); - static void set_has_java_settings(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } static const ::google::api::CppSettings& cpp_settings(const ClientLibrarySettings* msg); - static void set_has_cpp_settings(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } static const ::google::api::PhpSettings& php_settings(const ClientLibrarySettings* msg); - static void set_has_php_settings(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } static const ::google::api::PythonSettings& python_settings(const ClientLibrarySettings* msg); - static void set_has_python_settings(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } static const ::google::api::NodeSettings& node_settings(const ClientLibrarySettings* msg); - static void set_has_node_settings(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } static const ::google::api::DotnetSettings& dotnet_settings(const ClientLibrarySettings* msg); - static void set_has_dotnet_settings(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } static const ::google::api::RubySettings& ruby_settings(const ClientLibrarySettings* msg); - static void set_has_ruby_settings(HasBits* has_bits) { - (*has_bits)[0] |= 64u; - } static const ::google::api::GoSettings& go_settings(const ClientLibrarySettings* msg); - static void set_has_go_settings(HasBits* has_bits) { - (*has_bits)[0] |= 128u; - } }; -const ::google::api::JavaSettings& ClientLibrarySettings::_Internal::java_settings(const ClientLibrarySettings* msg) { - return *msg->_impl_.java_settings_; +const ::google::api::JavaSettings& +ClientLibrarySettings::_Internal::java_settings(const ClientLibrarySettings* msg) { + return *msg->java_settings_; } -const ::google::api::CppSettings& ClientLibrarySettings::_Internal::cpp_settings(const ClientLibrarySettings* msg) { - return *msg->_impl_.cpp_settings_; +const ::google::api::CppSettings& +ClientLibrarySettings::_Internal::cpp_settings(const ClientLibrarySettings* msg) { + return *msg->cpp_settings_; } -const ::google::api::PhpSettings& ClientLibrarySettings::_Internal::php_settings(const ClientLibrarySettings* msg) { - return *msg->_impl_.php_settings_; +const ::google::api::PhpSettings& +ClientLibrarySettings::_Internal::php_settings(const ClientLibrarySettings* msg) { + return *msg->php_settings_; } -const ::google::api::PythonSettings& ClientLibrarySettings::_Internal::python_settings(const ClientLibrarySettings* msg) { - return *msg->_impl_.python_settings_; +const ::google::api::PythonSettings& +ClientLibrarySettings::_Internal::python_settings(const ClientLibrarySettings* msg) { + return *msg->python_settings_; } -const ::google::api::NodeSettings& ClientLibrarySettings::_Internal::node_settings(const ClientLibrarySettings* msg) { - return *msg->_impl_.node_settings_; +const ::google::api::NodeSettings& +ClientLibrarySettings::_Internal::node_settings(const ClientLibrarySettings* msg) { + return *msg->node_settings_; } -const ::google::api::DotnetSettings& ClientLibrarySettings::_Internal::dotnet_settings(const ClientLibrarySettings* msg) { - return *msg->_impl_.dotnet_settings_; +const ::google::api::DotnetSettings& +ClientLibrarySettings::_Internal::dotnet_settings(const ClientLibrarySettings* msg) { + return *msg->dotnet_settings_; } -const ::google::api::RubySettings& ClientLibrarySettings::_Internal::ruby_settings(const ClientLibrarySettings* msg) { - return *msg->_impl_.ruby_settings_; +const ::google::api::RubySettings& +ClientLibrarySettings::_Internal::ruby_settings(const ClientLibrarySettings* msg) { + return *msg->ruby_settings_; } -const ::google::api::GoSettings& ClientLibrarySettings::_Internal::go_settings(const ClientLibrarySettings* msg) { - return *msg->_impl_.go_settings_; +const ::google::api::GoSettings& +ClientLibrarySettings::_Internal::go_settings(const ClientLibrarySettings* msg) { + return *msg->go_settings_; } -ClientLibrarySettings::ClientLibrarySettings(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ClientLibrarySettings::ClientLibrarySettings(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.ClientLibrarySettings) } -inline PROTOBUF_NDEBUG_INLINE ClientLibrarySettings::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - version_(arena, from.version_) {} - -ClientLibrarySettings::ClientLibrarySettings( - ::google::protobuf::Arena* arena, - const ClientLibrarySettings& from) - : ::google::protobuf::Message(arena) { - ClientLibrarySettings* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.java_settings_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::api::JavaSettings>(arena, *from._impl_.java_settings_) - : nullptr; - _impl_.cpp_settings_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::google::api::CppSettings>(arena, *from._impl_.cpp_settings_) - : nullptr; - _impl_.php_settings_ = (cached_has_bits & 0x00000004u) - ? CreateMaybeMessage<::google::api::PhpSettings>(arena, *from._impl_.php_settings_) - : nullptr; - _impl_.python_settings_ = (cached_has_bits & 0x00000008u) - ? CreateMaybeMessage<::google::api::PythonSettings>(arena, *from._impl_.python_settings_) - : nullptr; - _impl_.node_settings_ = (cached_has_bits & 0x00000010u) - ? CreateMaybeMessage<::google::api::NodeSettings>(arena, *from._impl_.node_settings_) - : nullptr; - _impl_.dotnet_settings_ = (cached_has_bits & 0x00000020u) - ? CreateMaybeMessage<::google::api::DotnetSettings>(arena, *from._impl_.dotnet_settings_) - : nullptr; - _impl_.ruby_settings_ = (cached_has_bits & 0x00000040u) - ? CreateMaybeMessage<::google::api::RubySettings>(arena, *from._impl_.ruby_settings_) - : nullptr; - _impl_.go_settings_ = (cached_has_bits & 0x00000080u) - ? CreateMaybeMessage<::google::api::GoSettings>(arena, *from._impl_.go_settings_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, launch_stage_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, launch_stage_), - offsetof(Impl_, rest_numeric_enums_) - - offsetof(Impl_, launch_stage_) + - sizeof(Impl_::rest_numeric_enums_)); - +ClientLibrarySettings::ClientLibrarySettings(const ClientLibrarySettings& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + version_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + version_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_version().empty()) { + version_.Set(from._internal_version(), + GetArenaForAllocation()); + } + if (from._internal_has_java_settings()) { + java_settings_ = new ::google::api::JavaSettings(*from.java_settings_); + } else { + java_settings_ = nullptr; + } + if (from._internal_has_cpp_settings()) { + cpp_settings_ = new ::google::api::CppSettings(*from.cpp_settings_); + } else { + cpp_settings_ = nullptr; + } + if (from._internal_has_php_settings()) { + php_settings_ = new ::google::api::PhpSettings(*from.php_settings_); + } else { + php_settings_ = nullptr; + } + if (from._internal_has_python_settings()) { + python_settings_ = new ::google::api::PythonSettings(*from.python_settings_); + } else { + python_settings_ = nullptr; + } + if (from._internal_has_node_settings()) { + node_settings_ = new ::google::api::NodeSettings(*from.node_settings_); + } else { + node_settings_ = nullptr; + } + if (from._internal_has_dotnet_settings()) { + dotnet_settings_ = new ::google::api::DotnetSettings(*from.dotnet_settings_); + } else { + dotnet_settings_ = nullptr; + } + if (from._internal_has_ruby_settings()) { + ruby_settings_ = new ::google::api::RubySettings(*from.ruby_settings_); + } else { + ruby_settings_ = nullptr; + } + if (from._internal_has_go_settings()) { + go_settings_ = new ::google::api::GoSettings(*from.go_settings_); + } else { + go_settings_ = nullptr; + } + ::memcpy(&launch_stage_, &from.launch_stage_, + static_cast(reinterpret_cast(&rest_numeric_enums_) - + reinterpret_cast(&launch_stage_)) + sizeof(rest_numeric_enums_)); // @@protoc_insertion_point(copy_constructor:google.api.ClientLibrarySettings) } -inline PROTOBUF_NDEBUG_INLINE ClientLibrarySettings::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - version_(arena) {} - -inline void ClientLibrarySettings::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, java_settings_), - 0, - offsetof(Impl_, rest_numeric_enums_) - - offsetof(Impl_, java_settings_) + - sizeof(Impl_::rest_numeric_enums_)); + +inline void ClientLibrarySettings::SharedCtor() { +version_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + version_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&java_settings_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&rest_numeric_enums_) - + reinterpret_cast(&java_settings_)) + sizeof(rest_numeric_enums_)); } + ClientLibrarySettings::~ClientLibrarySettings() { // @@protoc_insertion_point(destructor:google.api.ClientLibrarySettings) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ClientLibrarySettings::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.version_.Destroy(); - delete _impl_.java_settings_; - delete _impl_.cpp_settings_; - delete _impl_.php_settings_; - delete _impl_.python_settings_; - delete _impl_.node_settings_; - delete _impl_.dotnet_settings_; - delete _impl_.ruby_settings_; - delete _impl_.go_settings_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void ClientLibrarySettings::Clear() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + version_.Destroy(); + if (this != internal_default_instance()) delete java_settings_; + if (this != internal_default_instance()) delete cpp_settings_; + if (this != internal_default_instance()) delete php_settings_; + if (this != internal_default_instance()) delete python_settings_; + if (this != internal_default_instance()) delete node_settings_; + if (this != internal_default_instance()) delete dotnet_settings_; + if (this != internal_default_instance()) delete ruby_settings_; + if (this != internal_default_instance()) delete go_settings_; +} + +void ClientLibrarySettings::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ClientLibrarySettings::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.ClientLibrarySettings) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.version_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.java_settings_ != nullptr); - _impl_.java_settings_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.cpp_settings_ != nullptr); - _impl_.cpp_settings_->Clear(); - } - if (cached_has_bits & 0x00000004u) { - ABSL_DCHECK(_impl_.php_settings_ != nullptr); - _impl_.php_settings_->Clear(); + version_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && java_settings_ != nullptr) { + delete java_settings_; + } + java_settings_ = nullptr; + if (GetArenaForAllocation() == nullptr && cpp_settings_ != nullptr) { + delete cpp_settings_; + } + cpp_settings_ = nullptr; + if (GetArenaForAllocation() == nullptr && php_settings_ != nullptr) { + delete php_settings_; + } + php_settings_ = nullptr; + if (GetArenaForAllocation() == nullptr && python_settings_ != nullptr) { + delete python_settings_; + } + python_settings_ = nullptr; + if (GetArenaForAllocation() == nullptr && node_settings_ != nullptr) { + delete node_settings_; + } + node_settings_ = nullptr; + if (GetArenaForAllocation() == nullptr && dotnet_settings_ != nullptr) { + delete dotnet_settings_; + } + dotnet_settings_ = nullptr; + if (GetArenaForAllocation() == nullptr && ruby_settings_ != nullptr) { + delete ruby_settings_; + } + ruby_settings_ = nullptr; + if (GetArenaForAllocation() == nullptr && go_settings_ != nullptr) { + delete go_settings_; + } + go_settings_ = nullptr; + ::memset(&launch_stage_, 0, static_cast( + reinterpret_cast(&rest_numeric_enums_) - + reinterpret_cast(&launch_stage_)) + sizeof(rest_numeric_enums_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ClientLibrarySettings::_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 version = 1 [json_name = "version"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_version(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.ClientLibrarySettings.version")); + } else + goto handle_unusual; + continue; + // .google.api.LaunchStage launch_stage = 2 [json_name = "launchStage"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_launch_stage(static_cast<::google::api::LaunchStage>(val)); + } else + goto handle_unusual; + continue; + // bool rest_numeric_enums = 3 [json_name = "restNumericEnums"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + rest_numeric_enums_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.JavaSettings java_settings = 21 [json_name = "javaSettings"]; + case 21: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 170)) { + ptr = ctx->ParseMessage(_internal_mutable_java_settings(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.CppSettings cpp_settings = 22 [json_name = "cppSettings"]; + case 22: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 178)) { + ptr = ctx->ParseMessage(_internal_mutable_cpp_settings(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.PhpSettings php_settings = 23 [json_name = "phpSettings"]; + case 23: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 186)) { + ptr = ctx->ParseMessage(_internal_mutable_php_settings(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.PythonSettings python_settings = 24 [json_name = "pythonSettings"]; + case 24: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 194)) { + ptr = ctx->ParseMessage(_internal_mutable_python_settings(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.NodeSettings node_settings = 25 [json_name = "nodeSettings"]; + case 25: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 202)) { + ptr = ctx->ParseMessage(_internal_mutable_node_settings(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.DotnetSettings dotnet_settings = 26 [json_name = "dotnetSettings"]; + case 26: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 210)) { + ptr = ctx->ParseMessage(_internal_mutable_dotnet_settings(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.RubySettings ruby_settings = 27 [json_name = "rubySettings"]; + case 27: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 218)) { + ptr = ctx->ParseMessage(_internal_mutable_ruby_settings(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.GoSettings go_settings = 28 [json_name = "goSettings"]; + case 28: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 226)) { + ptr = ctx->ParseMessage(_internal_mutable_go_settings(), 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; } - if (cached_has_bits & 0x00000008u) { - ABSL_DCHECK(_impl_.python_settings_ != nullptr); - _impl_.python_settings_->Clear(); - } - if (cached_has_bits & 0x00000010u) { - ABSL_DCHECK(_impl_.node_settings_ != nullptr); - _impl_.node_settings_->Clear(); - } - if (cached_has_bits & 0x00000020u) { - ABSL_DCHECK(_impl_.dotnet_settings_ != nullptr); - _impl_.dotnet_settings_->Clear(); - } - if (cached_has_bits & 0x00000040u) { - ABSL_DCHECK(_impl_.ruby_settings_ != nullptr); - _impl_.ruby_settings_->Clear(); - } - if (cached_has_bits & 0x00000080u) { - ABSL_DCHECK(_impl_.go_settings_ != nullptr); - _impl_.go_settings_->Clear(); - } - } - ::memset(&_impl_.launch_stage_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.rest_numeric_enums_) - - reinterpret_cast(&_impl_.launch_stage_)) + sizeof(_impl_.rest_numeric_enums_)); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ClientLibrarySettings::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<4, 11, 8, 56, 2> ClientLibrarySettings::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ClientLibrarySettings, _impl_._has_bits_), - 0, // no _extensions_ - 28, 120, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4027580408, // skipmap - offsetof(decltype(_table_), field_entries), - 11, // num_field_entries - 8, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ClientLibrarySettings_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string version = 1 [json_name = "version"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ClientLibrarySettings, _impl_.version_)}}, - // .google.api.LaunchStage launch_stage = 2 [json_name = "launchStage"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ClientLibrarySettings, _impl_.launch_stage_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(ClientLibrarySettings, _impl_.launch_stage_)}}, - // bool rest_numeric_enums = 3 [json_name = "restNumericEnums"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(ClientLibrarySettings, _impl_.rest_numeric_enums_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .google.api.JavaSettings java_settings = 21 [json_name = "javaSettings"]; - {::_pbi::TcParser::FastMtS2, - {426, 0, 0, PROTOBUF_FIELD_OFFSET(ClientLibrarySettings, _impl_.java_settings_)}}, - // .google.api.CppSettings cpp_settings = 22 [json_name = "cppSettings"]; - {::_pbi::TcParser::FastMtS2, - {434, 1, 1, PROTOBUF_FIELD_OFFSET(ClientLibrarySettings, _impl_.cpp_settings_)}}, - // .google.api.PhpSettings php_settings = 23 [json_name = "phpSettings"]; - {::_pbi::TcParser::FastMtS2, - {442, 2, 2, PROTOBUF_FIELD_OFFSET(ClientLibrarySettings, _impl_.php_settings_)}}, - // .google.api.PythonSettings python_settings = 24 [json_name = "pythonSettings"]; - {::_pbi::TcParser::FastMtS2, - {450, 3, 3, PROTOBUF_FIELD_OFFSET(ClientLibrarySettings, _impl_.python_settings_)}}, - // .google.api.NodeSettings node_settings = 25 [json_name = "nodeSettings"]; - {::_pbi::TcParser::FastMtS2, - {458, 4, 4, PROTOBUF_FIELD_OFFSET(ClientLibrarySettings, _impl_.node_settings_)}}, - // .google.api.DotnetSettings dotnet_settings = 26 [json_name = "dotnetSettings"]; - {::_pbi::TcParser::FastMtS2, - {466, 5, 5, PROTOBUF_FIELD_OFFSET(ClientLibrarySettings, _impl_.dotnet_settings_)}}, - // .google.api.RubySettings ruby_settings = 27 [json_name = "rubySettings"]; - {::_pbi::TcParser::FastMtS2, - {474, 6, 6, PROTOBUF_FIELD_OFFSET(ClientLibrarySettings, _impl_.ruby_settings_)}}, - // .google.api.GoSettings go_settings = 28 [json_name = "goSettings"]; - {::_pbi::TcParser::FastMtS2, - {482, 7, 7, PROTOBUF_FIELD_OFFSET(ClientLibrarySettings, _impl_.go_settings_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string version = 1 [json_name = "version"]; - {PROTOBUF_FIELD_OFFSET(ClientLibrarySettings, _impl_.version_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.api.LaunchStage launch_stage = 2 [json_name = "launchStage"]; - {PROTOBUF_FIELD_OFFSET(ClientLibrarySettings, _impl_.launch_stage_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // bool rest_numeric_enums = 3 [json_name = "restNumericEnums"]; - {PROTOBUF_FIELD_OFFSET(ClientLibrarySettings, _impl_.rest_numeric_enums_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // .google.api.JavaSettings java_settings = 21 [json_name = "javaSettings"]; - {PROTOBUF_FIELD_OFFSET(ClientLibrarySettings, _impl_.java_settings_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.api.CppSettings cpp_settings = 22 [json_name = "cppSettings"]; - {PROTOBUF_FIELD_OFFSET(ClientLibrarySettings, _impl_.cpp_settings_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.api.PhpSettings php_settings = 23 [json_name = "phpSettings"]; - {PROTOBUF_FIELD_OFFSET(ClientLibrarySettings, _impl_.php_settings_), _Internal::kHasBitsOffset + 2, 2, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.api.PythonSettings python_settings = 24 [json_name = "pythonSettings"]; - {PROTOBUF_FIELD_OFFSET(ClientLibrarySettings, _impl_.python_settings_), _Internal::kHasBitsOffset + 3, 3, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.api.NodeSettings node_settings = 25 [json_name = "nodeSettings"]; - {PROTOBUF_FIELD_OFFSET(ClientLibrarySettings, _impl_.node_settings_), _Internal::kHasBitsOffset + 4, 4, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.api.DotnetSettings dotnet_settings = 26 [json_name = "dotnetSettings"]; - {PROTOBUF_FIELD_OFFSET(ClientLibrarySettings, _impl_.dotnet_settings_), _Internal::kHasBitsOffset + 5, 5, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.api.RubySettings ruby_settings = 27 [json_name = "rubySettings"]; - {PROTOBUF_FIELD_OFFSET(ClientLibrarySettings, _impl_.ruby_settings_), _Internal::kHasBitsOffset + 6, 6, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.api.GoSettings go_settings = 28 [json_name = "goSettings"]; - {PROTOBUF_FIELD_OFFSET(ClientLibrarySettings, _impl_.go_settings_), _Internal::kHasBitsOffset + 7, 7, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::JavaSettings>()}, - {::_pbi::TcParser::GetTable<::google::api::CppSettings>()}, - {::_pbi::TcParser::GetTable<::google::api::PhpSettings>()}, - {::_pbi::TcParser::GetTable<::google::api::PythonSettings>()}, - {::_pbi::TcParser::GetTable<::google::api::NodeSettings>()}, - {::_pbi::TcParser::GetTable<::google::api::DotnetSettings>()}, - {::_pbi::TcParser::GetTable<::google::api::RubySettings>()}, - {::_pbi::TcParser::GetTable<::google::api::GoSettings>()}, - }}, {{ - "\40\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0" - "google.api.ClientLibrarySettings" - "version" - }}, -}; - -::uint8_t* ClientLibrarySettings::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ClientLibrarySettings::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.ClientLibrarySettings) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string version = 1 [json_name = "version"]; if (!this->_internal_version().empty()) { - const std::string& _s = this->_internal_version(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.ClientLibrarySettings.version"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_version().data(), static_cast(this->_internal_version().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.ClientLibrarySettings.version"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_version(), target); } // .google.api.LaunchStage launch_stage = 2 [json_name = "launchStage"]; if (this->_internal_launch_stage() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 2, this->_internal_launch_stage(), target); + 2, this->_internal_launch_stage(), target); } // bool rest_numeric_enums = 3 [json_name = "restNumericEnums"]; if (this->_internal_rest_numeric_enums() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 3, this->_internal_rest_numeric_enums(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_rest_numeric_enums(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.api.JavaSettings java_settings = 21 [json_name = "javaSettings"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 21, _Internal::java_settings(this), + if (this->_internal_has_java_settings()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(21, _Internal::java_settings(this), _Internal::java_settings(this).GetCachedSize(), target, stream); } // .google.api.CppSettings cpp_settings = 22 [json_name = "cppSettings"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 22, _Internal::cpp_settings(this), + if (this->_internal_has_cpp_settings()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(22, _Internal::cpp_settings(this), _Internal::cpp_settings(this).GetCachedSize(), target, stream); } // .google.api.PhpSettings php_settings = 23 [json_name = "phpSettings"]; - if (cached_has_bits & 0x00000004u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 23, _Internal::php_settings(this), + if (this->_internal_has_php_settings()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(23, _Internal::php_settings(this), _Internal::php_settings(this).GetCachedSize(), target, stream); } // .google.api.PythonSettings python_settings = 24 [json_name = "pythonSettings"]; - if (cached_has_bits & 0x00000008u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 24, _Internal::python_settings(this), + if (this->_internal_has_python_settings()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(24, _Internal::python_settings(this), _Internal::python_settings(this).GetCachedSize(), target, stream); } // .google.api.NodeSettings node_settings = 25 [json_name = "nodeSettings"]; - if (cached_has_bits & 0x00000010u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 25, _Internal::node_settings(this), + if (this->_internal_has_node_settings()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(25, _Internal::node_settings(this), _Internal::node_settings(this).GetCachedSize(), target, stream); } // .google.api.DotnetSettings dotnet_settings = 26 [json_name = "dotnetSettings"]; - if (cached_has_bits & 0x00000020u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 26, _Internal::dotnet_settings(this), + if (this->_internal_has_dotnet_settings()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(26, _Internal::dotnet_settings(this), _Internal::dotnet_settings(this).GetCachedSize(), target, stream); } // .google.api.RubySettings ruby_settings = 27 [json_name = "rubySettings"]; - if (cached_has_bits & 0x00000040u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 27, _Internal::ruby_settings(this), + if (this->_internal_has_ruby_settings()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(27, _Internal::ruby_settings(this), _Internal::ruby_settings(this).GetCachedSize(), target, stream); } // .google.api.GoSettings go_settings = 28 [json_name = "goSettings"]; - if (cached_has_bits & 0x00000080u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 28, _Internal::go_settings(this), + if (this->_internal_has_go_settings()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(28, _Internal::go_settings(this), _Internal::go_settings(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.ClientLibrarySettings) return target; } -::size_t ClientLibrarySettings::ByteSizeLong() const { +size_t ClientLibrarySettings::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.ClientLibrarySettings) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string version = 1 [json_name = "version"]; if (!this->_internal_version().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_version()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_version()); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - // .google.api.JavaSettings java_settings = 21 [json_name = "javaSettings"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.java_settings_); - } - - // .google.api.CppSettings cpp_settings = 22 [json_name = "cppSettings"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.cpp_settings_); - } + // .google.api.JavaSettings java_settings = 21 [json_name = "javaSettings"]; + if (this->_internal_has_java_settings()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *java_settings_); + } - // .google.api.PhpSettings php_settings = 23 [json_name = "phpSettings"]; - if (cached_has_bits & 0x00000004u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.php_settings_); - } + // .google.api.CppSettings cpp_settings = 22 [json_name = "cppSettings"]; + if (this->_internal_has_cpp_settings()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *cpp_settings_); + } - // .google.api.PythonSettings python_settings = 24 [json_name = "pythonSettings"]; - if (cached_has_bits & 0x00000008u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.python_settings_); - } + // .google.api.PhpSettings php_settings = 23 [json_name = "phpSettings"]; + if (this->_internal_has_php_settings()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *php_settings_); + } - // .google.api.NodeSettings node_settings = 25 [json_name = "nodeSettings"]; - if (cached_has_bits & 0x00000010u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.node_settings_); - } + // .google.api.PythonSettings python_settings = 24 [json_name = "pythonSettings"]; + if (this->_internal_has_python_settings()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *python_settings_); + } - // .google.api.DotnetSettings dotnet_settings = 26 [json_name = "dotnetSettings"]; - if (cached_has_bits & 0x00000020u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.dotnet_settings_); - } + // .google.api.NodeSettings node_settings = 25 [json_name = "nodeSettings"]; + if (this->_internal_has_node_settings()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *node_settings_); + } - // .google.api.RubySettings ruby_settings = 27 [json_name = "rubySettings"]; - if (cached_has_bits & 0x00000040u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.ruby_settings_); - } + // .google.api.DotnetSettings dotnet_settings = 26 [json_name = "dotnetSettings"]; + if (this->_internal_has_dotnet_settings()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *dotnet_settings_); + } - // .google.api.GoSettings go_settings = 28 [json_name = "goSettings"]; - if (cached_has_bits & 0x00000080u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.go_settings_); - } + // .google.api.RubySettings ruby_settings = 27 [json_name = "rubySettings"]; + if (this->_internal_has_ruby_settings()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *ruby_settings_); + } + // .google.api.GoSettings go_settings = 28 [json_name = "goSettings"]; + if (this->_internal_has_go_settings()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *go_settings_); } + // .google.api.LaunchStage launch_stage = 2 [json_name = "launchStage"]; if (this->_internal_launch_stage() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_launch_stage()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_launch_stage()); } // bool rest_numeric_enums = 3 [json_name = "restNumericEnums"]; if (this->_internal_rest_numeric_enums() != 0) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ClientLibrarySettings::_class_data_ = { - ClientLibrarySettings::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ClientLibrarySettings::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ClientLibrarySettings::MergeImpl }; -const ::google::protobuf::Message::ClassData* ClientLibrarySettings::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ClientLibrarySettings::GetClassData() const { return &_class_data_; } + +void ClientLibrarySettings::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ClientLibrarySettings::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.ClientLibrarySettings) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ClientLibrarySettings::MergeFrom(const ClientLibrarySettings& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.ClientLibrarySettings) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_version().empty()) { - _this->_internal_set_version(from._internal_version()); + _internal_set_version(from._internal_version()); } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_java_settings()->::google::api::JavaSettings::MergeFrom( - from._internal_java_settings()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_cpp_settings()->::google::api::CppSettings::MergeFrom( - from._internal_cpp_settings()); - } - if (cached_has_bits & 0x00000004u) { - _this->_internal_mutable_php_settings()->::google::api::PhpSettings::MergeFrom( - from._internal_php_settings()); - } - if (cached_has_bits & 0x00000008u) { - _this->_internal_mutable_python_settings()->::google::api::PythonSettings::MergeFrom( - from._internal_python_settings()); - } - if (cached_has_bits & 0x00000010u) { - _this->_internal_mutable_node_settings()->::google::api::NodeSettings::MergeFrom( - from._internal_node_settings()); - } - if (cached_has_bits & 0x00000020u) { - _this->_internal_mutable_dotnet_settings()->::google::api::DotnetSettings::MergeFrom( - from._internal_dotnet_settings()); - } - if (cached_has_bits & 0x00000040u) { - _this->_internal_mutable_ruby_settings()->::google::api::RubySettings::MergeFrom( - from._internal_ruby_settings()); - } - if (cached_has_bits & 0x00000080u) { - _this->_internal_mutable_go_settings()->::google::api::GoSettings::MergeFrom( - from._internal_go_settings()); - } + if (from._internal_has_java_settings()) { + _internal_mutable_java_settings()->::google::api::JavaSettings::MergeFrom(from._internal_java_settings()); + } + if (from._internal_has_cpp_settings()) { + _internal_mutable_cpp_settings()->::google::api::CppSettings::MergeFrom(from._internal_cpp_settings()); + } + if (from._internal_has_php_settings()) { + _internal_mutable_php_settings()->::google::api::PhpSettings::MergeFrom(from._internal_php_settings()); + } + if (from._internal_has_python_settings()) { + _internal_mutable_python_settings()->::google::api::PythonSettings::MergeFrom(from._internal_python_settings()); + } + if (from._internal_has_node_settings()) { + _internal_mutable_node_settings()->::google::api::NodeSettings::MergeFrom(from._internal_node_settings()); + } + if (from._internal_has_dotnet_settings()) { + _internal_mutable_dotnet_settings()->::google::api::DotnetSettings::MergeFrom(from._internal_dotnet_settings()); + } + if (from._internal_has_ruby_settings()) { + _internal_mutable_ruby_settings()->::google::api::RubySettings::MergeFrom(from._internal_ruby_settings()); + } + if (from._internal_has_go_settings()) { + _internal_mutable_go_settings()->::google::api::GoSettings::MergeFrom(from._internal_go_settings()); } if (from._internal_launch_stage() != 0) { - _this->_internal_set_launch_stage(from._internal_launch_stage()); + _internal_set_launch_stage(from._internal_launch_stage()); } if (from._internal_rest_numeric_enums() != 0) { - _this->_internal_set_rest_numeric_enums(from._internal_rest_numeric_enums()); + _internal_set_rest_numeric_enums(from._internal_rest_numeric_enums()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ClientLibrarySettings::CopyFrom(const ClientLibrarySettings& from) { @@ -1715,470 +1526,591 @@ void ClientLibrarySettings::CopyFrom(const ClientLibrarySettings& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ClientLibrarySettings::IsInitialized() const { +bool ClientLibrarySettings::IsInitialized() const { return true; } -::_pbi::CachedSize* ClientLibrarySettings::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ClientLibrarySettings::InternalSwap(ClientLibrarySettings* PROTOBUF_RESTRICT other) { +void ClientLibrarySettings::InternalSwap(ClientLibrarySettings* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.version_, &other->_impl_.version_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(ClientLibrarySettings, _impl_.rest_numeric_enums_) - + sizeof(ClientLibrarySettings::_impl_.rest_numeric_enums_) - - PROTOBUF_FIELD_OFFSET(ClientLibrarySettings, _impl_.java_settings_)>( - reinterpret_cast(&_impl_.java_settings_), - reinterpret_cast(&other->_impl_.java_settings_)); -} - -::google::protobuf::Metadata ClientLibrarySettings::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &version_, lhs_arena, + &other->version_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(ClientLibrarySettings, rest_numeric_enums_) + + sizeof(ClientLibrarySettings::rest_numeric_enums_) + - PROTOBUF_FIELD_OFFSET(ClientLibrarySettings, java_settings_)>( + reinterpret_cast(&java_settings_), + reinterpret_cast(&other->java_settings_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ClientLibrarySettings::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fclient_2eproto_getter, &descriptor_table_google_2fapi_2fclient_2eproto_once, file_level_metadata_google_2fapi_2fclient_2eproto[1]); } + // =================================================================== class Publishing::_Internal { public: }; -Publishing::Publishing(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Publishing::Publishing(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + method_settings_(arena), + codeowner_github_teams_(arena), + library_settings_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.Publishing) } -inline PROTOBUF_NDEBUG_INLINE Publishing::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : method_settings_{visibility, arena, from.method_settings_}, - codeowner_github_teams_{visibility, arena, from.codeowner_github_teams_}, - library_settings_{visibility, arena, from.library_settings_}, - new_issue_uri_(arena, from.new_issue_uri_), - documentation_uri_(arena, from.documentation_uri_), - api_short_name_(arena, from.api_short_name_), - github_label_(arena, from.github_label_), - doc_tag_prefix_(arena, from.doc_tag_prefix_), - proto_reference_documentation_uri_(arena, from.proto_reference_documentation_uri_), - rest_reference_documentation_uri_(arena, from.rest_reference_documentation_uri_), - _cached_size_{0} {} - -Publishing::Publishing( - ::google::protobuf::Arena* arena, - const Publishing& from) - : ::google::protobuf::Message(arena) { - Publishing* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.organization_ = from._impl_.organization_; - +Publishing::Publishing(const Publishing& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + method_settings_(from.method_settings_), + codeowner_github_teams_(from.codeowner_github_teams_), + library_settings_(from.library_settings_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + new_issue_uri_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + new_issue_uri_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_new_issue_uri().empty()) { + new_issue_uri_.Set(from._internal_new_issue_uri(), + GetArenaForAllocation()); + } + documentation_uri_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + documentation_uri_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_documentation_uri().empty()) { + documentation_uri_.Set(from._internal_documentation_uri(), + GetArenaForAllocation()); + } + api_short_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + api_short_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_api_short_name().empty()) { + api_short_name_.Set(from._internal_api_short_name(), + GetArenaForAllocation()); + } + github_label_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + github_label_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_github_label().empty()) { + github_label_.Set(from._internal_github_label(), + GetArenaForAllocation()); + } + doc_tag_prefix_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + doc_tag_prefix_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_doc_tag_prefix().empty()) { + doc_tag_prefix_.Set(from._internal_doc_tag_prefix(), + GetArenaForAllocation()); + } + proto_reference_documentation_uri_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + proto_reference_documentation_uri_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_proto_reference_documentation_uri().empty()) { + proto_reference_documentation_uri_.Set(from._internal_proto_reference_documentation_uri(), + GetArenaForAllocation()); + } + rest_reference_documentation_uri_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + rest_reference_documentation_uri_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_rest_reference_documentation_uri().empty()) { + rest_reference_documentation_uri_.Set(from._internal_rest_reference_documentation_uri(), + GetArenaForAllocation()); + } + organization_ = from.organization_; // @@protoc_insertion_point(copy_constructor:google.api.Publishing) } -inline PROTOBUF_NDEBUG_INLINE Publishing::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : method_settings_{visibility, arena}, - codeowner_github_teams_{visibility, arena}, - library_settings_{visibility, arena}, - new_issue_uri_(arena), - documentation_uri_(arena), - api_short_name_(arena), - github_label_(arena), - doc_tag_prefix_(arena), - proto_reference_documentation_uri_(arena), - rest_reference_documentation_uri_(arena), - _cached_size_{0} {} - -inline void Publishing::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.organization_ = {}; + +inline void Publishing::SharedCtor() { +new_issue_uri_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + new_issue_uri_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +documentation_uri_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + documentation_uri_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +api_short_name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + api_short_name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +github_label_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + github_label_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +doc_tag_prefix_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + doc_tag_prefix_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +proto_reference_documentation_uri_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + proto_reference_documentation_uri_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +rest_reference_documentation_uri_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + rest_reference_documentation_uri_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +organization_ = 0; } + Publishing::~Publishing() { // @@protoc_insertion_point(destructor:google.api.Publishing) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Publishing::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.new_issue_uri_.Destroy(); - _impl_.documentation_uri_.Destroy(); - _impl_.api_short_name_.Destroy(); - _impl_.github_label_.Destroy(); - _impl_.doc_tag_prefix_.Destroy(); - _impl_.proto_reference_documentation_uri_.Destroy(); - _impl_.rest_reference_documentation_uri_.Destroy(); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void Publishing::Clear() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + new_issue_uri_.Destroy(); + documentation_uri_.Destroy(); + api_short_name_.Destroy(); + github_label_.Destroy(); + doc_tag_prefix_.Destroy(); + proto_reference_documentation_uri_.Destroy(); + rest_reference_documentation_uri_.Destroy(); +} + +void Publishing::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void Publishing::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.Publishing) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.method_settings_.Clear(); - _impl_.codeowner_github_teams_.Clear(); - _impl_.library_settings_.Clear(); - _impl_.new_issue_uri_.ClearToEmpty(); - _impl_.documentation_uri_.ClearToEmpty(); - _impl_.api_short_name_.ClearToEmpty(); - _impl_.github_label_.ClearToEmpty(); - _impl_.doc_tag_prefix_.ClearToEmpty(); - _impl_.proto_reference_documentation_uri_.ClearToEmpty(); - _impl_.rest_reference_documentation_uri_.ClearToEmpty(); - _impl_.organization_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Publishing::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + method_settings_.Clear(); + codeowner_github_teams_.Clear(); + library_settings_.Clear(); + new_issue_uri_.ClearToEmpty(); + documentation_uri_.ClearToEmpty(); + api_short_name_.ClearToEmpty(); + github_label_.ClearToEmpty(); + doc_tag_prefix_.ClearToEmpty(); + proto_reference_documentation_uri_.ClearToEmpty(); + rest_reference_documentation_uri_.ClearToEmpty(); + organization_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Publishing::_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) { + // repeated .google.api.MethodSettings method_settings = 2 [json_name = "methodSettings"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_method_settings(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } else + goto handle_unusual; + continue; + // string new_issue_uri = 101 [json_name = "newIssueUri"]; + case 101: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + auto str = _internal_mutable_new_issue_uri(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.Publishing.new_issue_uri")); + } else + goto handle_unusual; + continue; + // string documentation_uri = 102 [json_name = "documentationUri"]; + case 102: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + auto str = _internal_mutable_documentation_uri(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.Publishing.documentation_uri")); + } else + goto handle_unusual; + continue; + // string api_short_name = 103 [json_name = "apiShortName"]; + case 103: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + auto str = _internal_mutable_api_short_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.Publishing.api_short_name")); + } else + goto handle_unusual; + continue; + // string github_label = 104 [json_name = "githubLabel"]; + case 104: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { + auto str = _internal_mutable_github_label(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.Publishing.github_label")); + } else + goto handle_unusual; + continue; + // repeated string codeowner_github_teams = 105 [json_name = "codeownerGithubTeams"]; + case 105: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { + ptr -= 2; + do { + ptr += 2; + auto str = _internal_add_codeowner_github_teams(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.Publishing.codeowner_github_teams")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<842>(ptr)); + } else + goto handle_unusual; + continue; + // string doc_tag_prefix = 106 [json_name = "docTagPrefix"]; + case 106: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { + auto str = _internal_mutable_doc_tag_prefix(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.Publishing.doc_tag_prefix")); + } else + goto handle_unusual; + continue; + // .google.api.ClientLibraryOrganization organization = 107 [json_name = "organization"]; + case 107: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 88)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_organization(static_cast<::google::api::ClientLibraryOrganization>(val)); + } else + goto handle_unusual; + continue; + // repeated .google.api.ClientLibrarySettings library_settings = 109 [json_name = "librarySettings"]; + case 109: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 106)) { + ptr -= 2; + do { + ptr += 2; + ptr = ctx->ParseMessage(_internal_add_library_settings(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<874>(ptr)); + } else + goto handle_unusual; + continue; + // string proto_reference_documentation_uri = 110 [json_name = "protoReferenceDocumentationUri"]; + case 110: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 114)) { + auto str = _internal_mutable_proto_reference_documentation_uri(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.Publishing.proto_reference_documentation_uri")); + } else + goto handle_unusual; + continue; + // string rest_reference_documentation_uri = 111 [json_name = "restReferenceDocumentationUri"]; + case 111: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 122)) { + auto str = _internal_mutable_rest_reference_documentation_uri(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.Publishing.rest_reference_documentation_uri")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<4, 11, 2, 195, 7> Publishing::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 111, 120, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967293, // skipmap - offsetof(decltype(_table_), field_entries), - 11, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Publishing_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - // repeated .google.api.MethodSettings method_settings = 2 [json_name = "methodSettings"]; - {::_pbi::TcParser::FastMtR1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(Publishing, _impl_.method_settings_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - // string new_issue_uri = 101 [json_name = "newIssueUri"]; - {::_pbi::TcParser::FastUS2, - {1706, 63, 0, PROTOBUF_FIELD_OFFSET(Publishing, _impl_.new_issue_uri_)}}, - // string documentation_uri = 102 [json_name = "documentationUri"]; - {::_pbi::TcParser::FastUS2, - {1714, 63, 0, PROTOBUF_FIELD_OFFSET(Publishing, _impl_.documentation_uri_)}}, - // string api_short_name = 103 [json_name = "apiShortName"]; - {::_pbi::TcParser::FastUS2, - {1722, 63, 0, PROTOBUF_FIELD_OFFSET(Publishing, _impl_.api_short_name_)}}, - // string github_label = 104 [json_name = "githubLabel"]; - {::_pbi::TcParser::FastUS2, - {1730, 63, 0, PROTOBUF_FIELD_OFFSET(Publishing, _impl_.github_label_)}}, - // repeated string codeowner_github_teams = 105 [json_name = "codeownerGithubTeams"]; - {::_pbi::TcParser::FastUR2, - {1738, 63, 0, PROTOBUF_FIELD_OFFSET(Publishing, _impl_.codeowner_github_teams_)}}, - // string doc_tag_prefix = 106 [json_name = "docTagPrefix"]; - {::_pbi::TcParser::FastUS2, - {1746, 63, 0, PROTOBUF_FIELD_OFFSET(Publishing, _impl_.doc_tag_prefix_)}}, - // .google.api.ClientLibraryOrganization organization = 107 [json_name = "organization"]; - {::_pbi::TcParser::FastV32S2, - {1752, 63, 0, PROTOBUF_FIELD_OFFSET(Publishing, _impl_.organization_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // repeated .google.api.ClientLibrarySettings library_settings = 109 [json_name = "librarySettings"]; - {::_pbi::TcParser::FastMtR2, - {1770, 63, 1, PROTOBUF_FIELD_OFFSET(Publishing, _impl_.library_settings_)}}, - // string proto_reference_documentation_uri = 110 [json_name = "protoReferenceDocumentationUri"]; - {::_pbi::TcParser::FastUS2, - {1778, 63, 0, PROTOBUF_FIELD_OFFSET(Publishing, _impl_.proto_reference_documentation_uri_)}}, - // string rest_reference_documentation_uri = 111 [json_name = "restReferenceDocumentationUri"]; - {::_pbi::TcParser::FastUS2, - {1786, 63, 0, PROTOBUF_FIELD_OFFSET(Publishing, _impl_.rest_reference_documentation_uri_)}}, - }}, {{ - 101, 0, 1, - 63616, 1, - 65535, 65535 - }}, {{ - // repeated .google.api.MethodSettings method_settings = 2 [json_name = "methodSettings"]; - {PROTOBUF_FIELD_OFFSET(Publishing, _impl_.method_settings_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // string new_issue_uri = 101 [json_name = "newIssueUri"]; - {PROTOBUF_FIELD_OFFSET(Publishing, _impl_.new_issue_uri_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string documentation_uri = 102 [json_name = "documentationUri"]; - {PROTOBUF_FIELD_OFFSET(Publishing, _impl_.documentation_uri_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string api_short_name = 103 [json_name = "apiShortName"]; - {PROTOBUF_FIELD_OFFSET(Publishing, _impl_.api_short_name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string github_label = 104 [json_name = "githubLabel"]; - {PROTOBUF_FIELD_OFFSET(Publishing, _impl_.github_label_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated string codeowner_github_teams = 105 [json_name = "codeownerGithubTeams"]; - {PROTOBUF_FIELD_OFFSET(Publishing, _impl_.codeowner_github_teams_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - // string doc_tag_prefix = 106 [json_name = "docTagPrefix"]; - {PROTOBUF_FIELD_OFFSET(Publishing, _impl_.doc_tag_prefix_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.api.ClientLibraryOrganization organization = 107 [json_name = "organization"]; - {PROTOBUF_FIELD_OFFSET(Publishing, _impl_.organization_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // repeated .google.api.ClientLibrarySettings library_settings = 109 [json_name = "librarySettings"]; - {PROTOBUF_FIELD_OFFSET(Publishing, _impl_.library_settings_), 0, 1, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // string proto_reference_documentation_uri = 110 [json_name = "protoReferenceDocumentationUri"]; - {PROTOBUF_FIELD_OFFSET(Publishing, _impl_.proto_reference_documentation_uri_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string rest_reference_documentation_uri = 111 [json_name = "restReferenceDocumentationUri"]; - {PROTOBUF_FIELD_OFFSET(Publishing, _impl_.rest_reference_documentation_uri_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::MethodSettings>()}, - {::_pbi::TcParser::GetTable<::google::api::ClientLibrarySettings>()}, - }}, {{ - "\25\0\15\21\16\14\26\16\0\0\41\40\0\0\0\0" - "google.api.Publishing" - "new_issue_uri" - "documentation_uri" - "api_short_name" - "github_label" - "codeowner_github_teams" - "doc_tag_prefix" - "proto_reference_documentation_uri" - "rest_reference_documentation_uri" - }}, -}; - -::uint8_t* Publishing::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Publishing::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.Publishing) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .google.api.MethodSettings method_settings = 2 [json_name = "methodSettings"]; for (unsigned i = 0, n = static_cast(this->_internal_method_settings_size()); i < n; i++) { - const auto& repfield = this->_internal_method_settings().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_method_settings(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); } // string new_issue_uri = 101 [json_name = "newIssueUri"]; if (!this->_internal_new_issue_uri().empty()) { - const std::string& _s = this->_internal_new_issue_uri(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.Publishing.new_issue_uri"); - target = stream->WriteStringMaybeAliased(101, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_new_issue_uri().data(), static_cast(this->_internal_new_issue_uri().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.Publishing.new_issue_uri"); + target = stream->WriteStringMaybeAliased( + 101, this->_internal_new_issue_uri(), target); } // string documentation_uri = 102 [json_name = "documentationUri"]; if (!this->_internal_documentation_uri().empty()) { - const std::string& _s = this->_internal_documentation_uri(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.Publishing.documentation_uri"); - target = stream->WriteStringMaybeAliased(102, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_documentation_uri().data(), static_cast(this->_internal_documentation_uri().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.Publishing.documentation_uri"); + target = stream->WriteStringMaybeAliased( + 102, this->_internal_documentation_uri(), target); } // string api_short_name = 103 [json_name = "apiShortName"]; if (!this->_internal_api_short_name().empty()) { - const std::string& _s = this->_internal_api_short_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.Publishing.api_short_name"); - target = stream->WriteStringMaybeAliased(103, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_api_short_name().data(), static_cast(this->_internal_api_short_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.Publishing.api_short_name"); + target = stream->WriteStringMaybeAliased( + 103, this->_internal_api_short_name(), target); } // string github_label = 104 [json_name = "githubLabel"]; if (!this->_internal_github_label().empty()) { - const std::string& _s = this->_internal_github_label(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.Publishing.github_label"); - target = stream->WriteStringMaybeAliased(104, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_github_label().data(), static_cast(this->_internal_github_label().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.Publishing.github_label"); + target = stream->WriteStringMaybeAliased( + 104, this->_internal_github_label(), target); } // repeated string codeowner_github_teams = 105 [json_name = "codeownerGithubTeams"]; - for (int i = 0, n = this->_internal_codeowner_github_teams_size(); i < n; ++i) { - const auto& s = this->_internal_codeowner_github_teams().Get(i); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.Publishing.codeowner_github_teams"); + for (int i = 0, n = this->_internal_codeowner_github_teams_size(); i < n; i++) { + const auto& s = this->_internal_codeowner_github_teams(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.Publishing.codeowner_github_teams"); target = stream->WriteString(105, s, target); } // string doc_tag_prefix = 106 [json_name = "docTagPrefix"]; if (!this->_internal_doc_tag_prefix().empty()) { - const std::string& _s = this->_internal_doc_tag_prefix(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.Publishing.doc_tag_prefix"); - target = stream->WriteStringMaybeAliased(106, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_doc_tag_prefix().data(), static_cast(this->_internal_doc_tag_prefix().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.Publishing.doc_tag_prefix"); + target = stream->WriteStringMaybeAliased( + 106, this->_internal_doc_tag_prefix(), target); } // .google.api.ClientLibraryOrganization organization = 107 [json_name = "organization"]; if (this->_internal_organization() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 107, this->_internal_organization(), target); + 107, this->_internal_organization(), target); } // repeated .google.api.ClientLibrarySettings library_settings = 109 [json_name = "librarySettings"]; for (unsigned i = 0, n = static_cast(this->_internal_library_settings_size()); i < n; i++) { - const auto& repfield = this->_internal_library_settings().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_library_settings(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(109, repfield, repfield.GetCachedSize(), target, stream); } // string proto_reference_documentation_uri = 110 [json_name = "protoReferenceDocumentationUri"]; if (!this->_internal_proto_reference_documentation_uri().empty()) { - const std::string& _s = this->_internal_proto_reference_documentation_uri(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.Publishing.proto_reference_documentation_uri"); - target = stream->WriteStringMaybeAliased(110, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_proto_reference_documentation_uri().data(), static_cast(this->_internal_proto_reference_documentation_uri().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.Publishing.proto_reference_documentation_uri"); + target = stream->WriteStringMaybeAliased( + 110, this->_internal_proto_reference_documentation_uri(), target); } // string rest_reference_documentation_uri = 111 [json_name = "restReferenceDocumentationUri"]; if (!this->_internal_rest_reference_documentation_uri().empty()) { - const std::string& _s = this->_internal_rest_reference_documentation_uri(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.Publishing.rest_reference_documentation_uri"); - target = stream->WriteStringMaybeAliased(111, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_rest_reference_documentation_uri().data(), static_cast(this->_internal_rest_reference_documentation_uri().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.Publishing.rest_reference_documentation_uri"); + target = stream->WriteStringMaybeAliased( + 111, this->_internal_rest_reference_documentation_uri(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.Publishing) return target; } -::size_t Publishing::ByteSizeLong() const { +size_t Publishing::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.Publishing) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .google.api.MethodSettings method_settings = 2 [json_name = "methodSettings"]; total_size += 1UL * this->_internal_method_settings_size(); - for (const auto& msg : this->_internal_method_settings()) { + for (const auto& msg : this->method_settings_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // repeated string codeowner_github_teams = 105 [json_name = "codeownerGithubTeams"]; - total_size += 2 * ::google::protobuf::internal::FromIntSize(_internal_codeowner_github_teams().size()); - for (int i = 0, n = _internal_codeowner_github_teams().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - _internal_codeowner_github_teams().Get(i)); + total_size += 2 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(codeowner_github_teams_.size()); + for (int i = 0, n = codeowner_github_teams_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + codeowner_github_teams_.Get(i)); } + // repeated .google.api.ClientLibrarySettings library_settings = 109 [json_name = "librarySettings"]; total_size += 2UL * this->_internal_library_settings_size(); - for (const auto& msg : this->_internal_library_settings()) { + for (const auto& msg : this->library_settings_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // string new_issue_uri = 101 [json_name = "newIssueUri"]; if (!this->_internal_new_issue_uri().empty()) { - total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_new_issue_uri()); + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_new_issue_uri()); } // string documentation_uri = 102 [json_name = "documentationUri"]; if (!this->_internal_documentation_uri().empty()) { - total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_documentation_uri()); + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_documentation_uri()); } // string api_short_name = 103 [json_name = "apiShortName"]; if (!this->_internal_api_short_name().empty()) { - total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_api_short_name()); + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_api_short_name()); } // string github_label = 104 [json_name = "githubLabel"]; if (!this->_internal_github_label().empty()) { - total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_github_label()); + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_github_label()); } // string doc_tag_prefix = 106 [json_name = "docTagPrefix"]; if (!this->_internal_doc_tag_prefix().empty()) { - total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_doc_tag_prefix()); + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_doc_tag_prefix()); } // string proto_reference_documentation_uri = 110 [json_name = "protoReferenceDocumentationUri"]; if (!this->_internal_proto_reference_documentation_uri().empty()) { - total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_proto_reference_documentation_uri()); + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_proto_reference_documentation_uri()); } // string rest_reference_documentation_uri = 111 [json_name = "restReferenceDocumentationUri"]; if (!this->_internal_rest_reference_documentation_uri().empty()) { - total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_rest_reference_documentation_uri()); + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_rest_reference_documentation_uri()); } // .google.api.ClientLibraryOrganization organization = 107 [json_name = "organization"]; if (this->_internal_organization() != 0) { total_size += 2 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_organization()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_organization()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Publishing::_class_data_ = { - Publishing::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Publishing::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Publishing::MergeImpl }; -const ::google::protobuf::Message::ClassData* Publishing::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Publishing::GetClassData() const { return &_class_data_; } + +void Publishing::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Publishing::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.Publishing) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Publishing::MergeFrom(const Publishing& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.Publishing) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_method_settings()->MergeFrom( - from._internal_method_settings()); - _this->_internal_mutable_codeowner_github_teams()->MergeFrom(from._internal_codeowner_github_teams()); - _this->_internal_mutable_library_settings()->MergeFrom( - from._internal_library_settings()); + method_settings_.MergeFrom(from.method_settings_); + codeowner_github_teams_.MergeFrom(from.codeowner_github_teams_); + library_settings_.MergeFrom(from.library_settings_); if (!from._internal_new_issue_uri().empty()) { - _this->_internal_set_new_issue_uri(from._internal_new_issue_uri()); + _internal_set_new_issue_uri(from._internal_new_issue_uri()); } if (!from._internal_documentation_uri().empty()) { - _this->_internal_set_documentation_uri(from._internal_documentation_uri()); + _internal_set_documentation_uri(from._internal_documentation_uri()); } if (!from._internal_api_short_name().empty()) { - _this->_internal_set_api_short_name(from._internal_api_short_name()); + _internal_set_api_short_name(from._internal_api_short_name()); } if (!from._internal_github_label().empty()) { - _this->_internal_set_github_label(from._internal_github_label()); + _internal_set_github_label(from._internal_github_label()); } if (!from._internal_doc_tag_prefix().empty()) { - _this->_internal_set_doc_tag_prefix(from._internal_doc_tag_prefix()); + _internal_set_doc_tag_prefix(from._internal_doc_tag_prefix()); } if (!from._internal_proto_reference_documentation_uri().empty()) { - _this->_internal_set_proto_reference_documentation_uri(from._internal_proto_reference_documentation_uri()); + _internal_set_proto_reference_documentation_uri(from._internal_proto_reference_documentation_uri()); } if (!from._internal_rest_reference_documentation_uri().empty()) { - _this->_internal_set_rest_reference_documentation_uri(from._internal_rest_reference_documentation_uri()); + _internal_set_rest_reference_documentation_uri(from._internal_rest_reference_documentation_uri()); } if (from._internal_organization() != 0) { - _this->_internal_set_organization(from._internal_organization()); + _internal_set_organization(from._internal_organization()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Publishing::CopyFrom(const Publishing& from) { @@ -2188,309 +2120,340 @@ void Publishing::CopyFrom(const Publishing& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Publishing::IsInitialized() const { +bool Publishing::IsInitialized() const { return true; } -::_pbi::CachedSize* Publishing::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Publishing::InternalSwap(Publishing* PROTOBUF_RESTRICT other) { +void Publishing::InternalSwap(Publishing* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.method_settings_.InternalSwap(&other->_impl_.method_settings_); - _impl_.codeowner_github_teams_.InternalSwap(&other->_impl_.codeowner_github_teams_); - _impl_.library_settings_.InternalSwap(&other->_impl_.library_settings_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.new_issue_uri_, &other->_impl_.new_issue_uri_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.documentation_uri_, &other->_impl_.documentation_uri_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.api_short_name_, &other->_impl_.api_short_name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.github_label_, &other->_impl_.github_label_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.doc_tag_prefix_, &other->_impl_.doc_tag_prefix_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.proto_reference_documentation_uri_, &other->_impl_.proto_reference_documentation_uri_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.rest_reference_documentation_uri_, &other->_impl_.rest_reference_documentation_uri_, arena); - swap(_impl_.organization_, other->_impl_.organization_); -} - -::google::protobuf::Metadata Publishing::GetMetadata() const { + method_settings_.InternalSwap(&other->method_settings_); + codeowner_github_teams_.InternalSwap(&other->codeowner_github_teams_); + library_settings_.InternalSwap(&other->library_settings_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &new_issue_uri_, lhs_arena, + &other->new_issue_uri_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &documentation_uri_, lhs_arena, + &other->documentation_uri_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &api_short_name_, lhs_arena, + &other->api_short_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &github_label_, lhs_arena, + &other->github_label_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &doc_tag_prefix_, lhs_arena, + &other->doc_tag_prefix_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &proto_reference_documentation_uri_, lhs_arena, + &other->proto_reference_documentation_uri_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &rest_reference_documentation_uri_, lhs_arena, + &other->rest_reference_documentation_uri_, rhs_arena + ); + swap(organization_, other->organization_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Publishing::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fclient_2eproto_getter, &descriptor_table_google_2fapi_2fclient_2eproto_once, file_level_metadata_google_2fapi_2fclient_2eproto[2]); } + // =================================================================== JavaSettings_ServiceClassNamesEntry_DoNotUse::JavaSettings_ServiceClassNamesEntry_DoNotUse() {} -JavaSettings_ServiceClassNamesEntry_DoNotUse::JavaSettings_ServiceClassNamesEntry_DoNotUse(::google::protobuf::Arena* arena) +JavaSettings_ServiceClassNamesEntry_DoNotUse::JavaSettings_ServiceClassNamesEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) : SuperType(arena) {} -::google::protobuf::Metadata JavaSettings_ServiceClassNamesEntry_DoNotUse::GetMetadata() const { +void JavaSettings_ServiceClassNamesEntry_DoNotUse::MergeFrom(const JavaSettings_ServiceClassNamesEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata JavaSettings_ServiceClassNamesEntry_DoNotUse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fclient_2eproto_getter, &descriptor_table_google_2fapi_2fclient_2eproto_once, file_level_metadata_google_2fapi_2fclient_2eproto[3]); } + // =================================================================== class JavaSettings::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(JavaSettings, _impl_._has_bits_); static const ::google::api::CommonLanguageSettings& common(const JavaSettings* msg); - static void set_has_common(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::google::api::CommonLanguageSettings& JavaSettings::_Internal::common(const JavaSettings* msg) { - return *msg->_impl_.common_; +const ::google::api::CommonLanguageSettings& +JavaSettings::_Internal::common(const JavaSettings* msg) { + return *msg->common_; } -JavaSettings::JavaSettings(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +JavaSettings::JavaSettings(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + service_class_names_(arena) { + SharedCtor(); + if (arena != nullptr && !is_message_owned) { + arena->OwnCustomDestructor(this, &JavaSettings::ArenaDtor); + } // @@protoc_insertion_point(arena_constructor:google.api.JavaSettings) } -inline PROTOBUF_NDEBUG_INLINE JavaSettings::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - service_class_names_{visibility, arena, from.service_class_names_}, - library_package_(arena, from.library_package_) {} - -JavaSettings::JavaSettings( - ::google::protobuf::Arena* arena, - const JavaSettings& from) - : ::google::protobuf::Message(arena) { - JavaSettings* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.common_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::api::CommonLanguageSettings>(arena, *from._impl_.common_) - : nullptr; - +JavaSettings::JavaSettings(const JavaSettings& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + service_class_names_.MergeFrom(from.service_class_names_); + library_package_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + library_package_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_library_package().empty()) { + library_package_.Set(from._internal_library_package(), + GetArenaForAllocation()); + } + if (from._internal_has_common()) { + common_ = new ::google::api::CommonLanguageSettings(*from.common_); + } else { + common_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:google.api.JavaSettings) } -inline PROTOBUF_NDEBUG_INLINE JavaSettings::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - service_class_names_{visibility, arena}, - library_package_(arena) {} -inline void JavaSettings::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.common_ = {}; +inline void JavaSettings::SharedCtor() { +library_package_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + library_package_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +common_ = nullptr; } + JavaSettings::~JavaSettings() { // @@protoc_insertion_point(destructor:google.api.JavaSettings) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + ArenaDtor(this); + return; + } SharedDtor(); } + inline void JavaSettings::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.library_package_.Destroy(); - delete _impl_.common_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + service_class_names_.Destruct(); + library_package_.Destroy(); + if (this != internal_default_instance()) delete common_; +} + +void JavaSettings::ArenaDtor(void* object) { + JavaSettings* _this = reinterpret_cast< JavaSettings* >(object); + _this->service_class_names_.Destruct(); +} +void JavaSettings::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void JavaSettings::Clear() { +void JavaSettings::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.JavaSettings) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.service_class_names_.Clear(); - _impl_.library_package_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.common_ != nullptr); - _impl_.common_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* JavaSettings::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + service_class_names_.Clear(); + library_package_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && common_ != nullptr) { + delete common_; + } + common_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* JavaSettings::_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 library_package = 1 [json_name = "libraryPackage"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_library_package(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.JavaSettings.library_package")); + } else + goto handle_unusual; + continue; + // map service_class_names = 2 [json_name = "serviceClassNames"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&service_class_names_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } else + goto handle_unusual; + continue; + // .google.api.CommonLanguageSettings common = 3 [json_name = "common"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_common(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 2, 66, 2> JavaSettings::_table_ = { - { - PROTOBUF_FIELD_OFFSET(JavaSettings, _impl_._has_bits_), - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_JavaSettings_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string library_package = 1 [json_name = "libraryPackage"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(JavaSettings, _impl_.library_package_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .google.api.CommonLanguageSettings common = 3 [json_name = "common"]; - {::_pbi::TcParser::FastMtS1, - {26, 0, 1, PROTOBUF_FIELD_OFFSET(JavaSettings, _impl_.common_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string library_package = 1 [json_name = "libraryPackage"]; - {PROTOBUF_FIELD_OFFSET(JavaSettings, _impl_.library_package_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // map service_class_names = 2 [json_name = "serviceClassNames"]; - {PROTOBUF_FIELD_OFFSET(JavaSettings, _impl_.service_class_names_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, - // .google.api.CommonLanguageSettings common = 3 [json_name = "common"]; - {PROTOBUF_FIELD_OFFSET(JavaSettings, _impl_.common_), _Internal::kHasBitsOffset + 0, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetMapAuxInfo< - decltype(JavaSettings()._impl_.service_class_names_)>( - 1, 0, 0, 9, - 9)}, - {::_pbi::TcParser::GetTable<::google::api::CommonLanguageSettings>()}, - }}, {{ - "\27\17\23\0\0\0\0\0" - "google.api.JavaSettings" - "library_package" - "service_class_names" - }}, -}; - -::uint8_t* JavaSettings::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* JavaSettings::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.JavaSettings) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string library_package = 1 [json_name = "libraryPackage"]; if (!this->_internal_library_package().empty()) { - const std::string& _s = this->_internal_library_package(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.JavaSettings.library_package"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_library_package().data(), static_cast(this->_internal_library_package().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.JavaSettings.library_package"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_library_package(), target); } // map service_class_names = 2 [json_name = "serviceClassNames"]; - if (!_internal_service_class_names().empty()) { - using MapType = ::google::protobuf::Map; - using WireHelper = _pbi::MapEntryFuncs; - const auto& field = _internal_service_class_names(); - - if (stream->IsSerializationDeterministic() && field.size() > 1) { - for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { - target = WireHelper::InternalSerialize( - 2, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.JavaSettings.service_class_names"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.second.data(), static_cast(entry.second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.JavaSettings.service_class_names"); + if (!this->_internal_service_class_names().empty()) { + using MapType = ::_pb::Map; + using WireHelper = JavaSettings_ServiceClassNamesEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_service_class_names(); + 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, + "google.api.JavaSettings.ServiceClassNamesEntry.key"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + entry.second.data(), static_cast(entry.second.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.JavaSettings.ServiceClassNamesEntry.value"); + }; + + if (stream->IsSerializationDeterministic() && map_field.size() > 1) { + for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { + target = WireHelper::InternalSerialize(2, entry.first, entry.second, target, stream); + check_utf8(entry); } } else { - for (const auto& entry : field) { - target = WireHelper::InternalSerialize( - 2, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.JavaSettings.service_class_names"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.second.data(), static_cast(entry.second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.JavaSettings.service_class_names"); + for (const auto& entry : map_field) { + target = WireHelper::InternalSerialize(2, entry.first, entry.second, target, stream); + check_utf8(entry); } } } - cached_has_bits = _impl_._has_bits_[0]; // .google.api.CommonLanguageSettings common = 3 [json_name = "common"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::common(this), + if (this->_internal_has_common()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::common(this), _Internal::common(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.JavaSettings) return target; } -::size_t JavaSettings::ByteSizeLong() const { +size_t JavaSettings::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.JavaSettings) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // map service_class_names = 2 [json_name = "serviceClassNames"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_service_class_names_size()); - for (const auto& entry : _internal_service_class_names()) { - total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_service_class_names_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator + it = this->_internal_service_class_names().begin(); + it != this->_internal_service_class_names().end(); ++it) { + total_size += JavaSettings_ServiceClassNamesEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); } + // string library_package = 1 [json_name = "libraryPackage"]; if (!this->_internal_library_package().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_library_package()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_library_package()); } // .google.api.CommonLanguageSettings common = 3 [json_name = "common"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.common_); + if (this->_internal_has_common()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *common_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData JavaSettings::_class_data_ = { - JavaSettings::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData JavaSettings::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + JavaSettings::MergeImpl }; -const ::google::protobuf::Message::ClassData* JavaSettings::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*JavaSettings::GetClassData() const { return &_class_data_; } + +void JavaSettings::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void JavaSettings::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.JavaSettings) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void JavaSettings::MergeFrom(const JavaSettings& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.JavaSettings) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.service_class_names_.MergeFrom(from._impl_.service_class_names_); + service_class_names_.MergeFrom(from.service_class_names_); if (!from._internal_library_package().empty()) { - _this->_internal_set_library_package(from._internal_library_package()); + _internal_set_library_package(from._internal_library_package()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_common()->::google::api::CommonLanguageSettings::MergeFrom( - from._internal_common()); + if (from._internal_has_common()) { + _internal_mutable_common()->::google::api::CommonLanguageSettings::MergeFrom(from._internal_common()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void JavaSettings::CopyFrom(const JavaSettings& from) { @@ -2500,208 +2463,191 @@ void JavaSettings::CopyFrom(const JavaSettings& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool JavaSettings::IsInitialized() const { +bool JavaSettings::IsInitialized() const { return true; } -::_pbi::CachedSize* JavaSettings::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void JavaSettings::InternalSwap(JavaSettings* PROTOBUF_RESTRICT other) { +void JavaSettings::InternalSwap(JavaSettings* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.service_class_names_.InternalSwap(&other->_impl_.service_class_names_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.library_package_, &other->_impl_.library_package_, arena); - swap(_impl_.common_, other->_impl_.common_); + service_class_names_.InternalSwap(&other->service_class_names_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &library_package_, lhs_arena, + &other->library_package_, rhs_arena + ); + swap(common_, other->common_); } -::google::protobuf::Metadata JavaSettings::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata JavaSettings::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fclient_2eproto_getter, &descriptor_table_google_2fapi_2fclient_2eproto_once, file_level_metadata_google_2fapi_2fclient_2eproto[4]); } + // =================================================================== class CppSettings::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(CppSettings, _impl_._has_bits_); static const ::google::api::CommonLanguageSettings& common(const CppSettings* msg); - static void set_has_common(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::google::api::CommonLanguageSettings& CppSettings::_Internal::common(const CppSettings* msg) { - return *msg->_impl_.common_; +const ::google::api::CommonLanguageSettings& +CppSettings::_Internal::common(const CppSettings* msg) { + return *msg->common_; } -CppSettings::CppSettings(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +CppSettings::CppSettings(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.CppSettings) } -inline PROTOBUF_NDEBUG_INLINE CppSettings::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -CppSettings::CppSettings( - ::google::protobuf::Arena* arena, - const CppSettings& from) - : ::google::protobuf::Message(arena) { - CppSettings* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.common_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::api::CommonLanguageSettings>(arena, *from._impl_.common_) - : nullptr; - +CppSettings::CppSettings(const CppSettings& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_common()) { + common_ = new ::google::api::CommonLanguageSettings(*from.common_); + } else { + common_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:google.api.CppSettings) } -inline PROTOBUF_NDEBUG_INLINE CppSettings::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void CppSettings::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.common_ = {}; +inline void CppSettings::SharedCtor() { +common_ = nullptr; } + CppSettings::~CppSettings() { // @@protoc_insertion_point(destructor:google.api.CppSettings) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void CppSettings::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.common_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete common_; } -PROTOBUF_NOINLINE void CppSettings::Clear() { +void CppSettings::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void CppSettings::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.CppSettings) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.common_ != nullptr); - _impl_.common_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* CppSettings::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + if (GetArenaForAllocation() == nullptr && common_ != nullptr) { + delete common_; + } + common_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CppSettings::_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) { + // .google.api.CommonLanguageSettings common = 1 [json_name = "common"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_common(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> CppSettings::_table_ = { - { - PROTOBUF_FIELD_OFFSET(CppSettings, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_CppSettings_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .google.api.CommonLanguageSettings common = 1 [json_name = "common"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(CppSettings, _impl_.common_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .google.api.CommonLanguageSettings common = 1 [json_name = "common"]; - {PROTOBUF_FIELD_OFFSET(CppSettings, _impl_.common_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::CommonLanguageSettings>()}, - }}, {{ - }}, -}; - -::uint8_t* CppSettings::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* CppSettings::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.CppSettings) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .google.api.CommonLanguageSettings common = 1 [json_name = "common"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::common(this), + if (this->_internal_has_common()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::common(this), _Internal::common(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.CppSettings) return target; } -::size_t CppSettings::ByteSizeLong() const { +size_t CppSettings::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.CppSettings) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .google.api.CommonLanguageSettings common = 1 [json_name = "common"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.common_); + if (this->_internal_has_common()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *common_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData CppSettings::_class_data_ = { - CppSettings::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CppSettings::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CppSettings::MergeImpl }; -const ::google::protobuf::Message::ClassData* CppSettings::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CppSettings::GetClassData() const { return &_class_data_; } + +void CppSettings::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void CppSettings::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.CppSettings) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void CppSettings::MergeFrom(const CppSettings& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.CppSettings) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_common()->::google::api::CommonLanguageSettings::MergeFrom( - from._internal_common()); + if (from._internal_has_common()) { + _internal_mutable_common()->::google::api::CommonLanguageSettings::MergeFrom(from._internal_common()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CppSettings::CopyFrom(const CppSettings& from) { @@ -2711,204 +2657,184 @@ void CppSettings::CopyFrom(const CppSettings& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool CppSettings::IsInitialized() const { +bool CppSettings::IsInitialized() const { return true; } -::_pbi::CachedSize* CppSettings::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void CppSettings::InternalSwap(CppSettings* PROTOBUF_RESTRICT other) { +void CppSettings::InternalSwap(CppSettings* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.common_, other->_impl_.common_); + swap(common_, other->common_); } -::google::protobuf::Metadata CppSettings::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata CppSettings::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fclient_2eproto_getter, &descriptor_table_google_2fapi_2fclient_2eproto_once, file_level_metadata_google_2fapi_2fclient_2eproto[5]); } + // =================================================================== class PhpSettings::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(PhpSettings, _impl_._has_bits_); static const ::google::api::CommonLanguageSettings& common(const PhpSettings* msg); - static void set_has_common(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::google::api::CommonLanguageSettings& PhpSettings::_Internal::common(const PhpSettings* msg) { - return *msg->_impl_.common_; +const ::google::api::CommonLanguageSettings& +PhpSettings::_Internal::common(const PhpSettings* msg) { + return *msg->common_; } -PhpSettings::PhpSettings(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +PhpSettings::PhpSettings(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.PhpSettings) } -inline PROTOBUF_NDEBUG_INLINE PhpSettings::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -PhpSettings::PhpSettings( - ::google::protobuf::Arena* arena, - const PhpSettings& from) - : ::google::protobuf::Message(arena) { - PhpSettings* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.common_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::api::CommonLanguageSettings>(arena, *from._impl_.common_) - : nullptr; - +PhpSettings::PhpSettings(const PhpSettings& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_common()) { + common_ = new ::google::api::CommonLanguageSettings(*from.common_); + } else { + common_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:google.api.PhpSettings) } -inline PROTOBUF_NDEBUG_INLINE PhpSettings::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void PhpSettings::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.common_ = {}; +inline void PhpSettings::SharedCtor() { +common_ = nullptr; } + PhpSettings::~PhpSettings() { // @@protoc_insertion_point(destructor:google.api.PhpSettings) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void PhpSettings::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.common_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete common_; +} + +void PhpSettings::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void PhpSettings::Clear() { +void PhpSettings::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.PhpSettings) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.common_ != nullptr); - _impl_.common_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* PhpSettings::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + if (GetArenaForAllocation() == nullptr && common_ != nullptr) { + delete common_; + } + common_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* PhpSettings::_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) { + // .google.api.CommonLanguageSettings common = 1 [json_name = "common"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_common(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> PhpSettings::_table_ = { - { - PROTOBUF_FIELD_OFFSET(PhpSettings, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_PhpSettings_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .google.api.CommonLanguageSettings common = 1 [json_name = "common"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(PhpSettings, _impl_.common_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .google.api.CommonLanguageSettings common = 1 [json_name = "common"]; - {PROTOBUF_FIELD_OFFSET(PhpSettings, _impl_.common_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::CommonLanguageSettings>()}, - }}, {{ - }}, -}; - -::uint8_t* PhpSettings::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* PhpSettings::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.PhpSettings) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .google.api.CommonLanguageSettings common = 1 [json_name = "common"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::common(this), + if (this->_internal_has_common()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::common(this), _Internal::common(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.PhpSettings) return target; } -::size_t PhpSettings::ByteSizeLong() const { +size_t PhpSettings::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.PhpSettings) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .google.api.CommonLanguageSettings common = 1 [json_name = "common"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.common_); + if (this->_internal_has_common()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *common_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData PhpSettings::_class_data_ = { - PhpSettings::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PhpSettings::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + PhpSettings::MergeImpl }; -const ::google::protobuf::Message::ClassData* PhpSettings::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PhpSettings::GetClassData() const { return &_class_data_; } + +void PhpSettings::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void PhpSettings::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.PhpSettings) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void PhpSettings::MergeFrom(const PhpSettings& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.PhpSettings) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_common()->::google::api::CommonLanguageSettings::MergeFrom( - from._internal_common()); + if (from._internal_has_common()) { + _internal_mutable_common()->::google::api::CommonLanguageSettings::MergeFrom(from._internal_common()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void PhpSettings::CopyFrom(const PhpSettings& from) { @@ -2918,195 +2844,197 @@ void PhpSettings::CopyFrom(const PhpSettings& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool PhpSettings::IsInitialized() const { +bool PhpSettings::IsInitialized() const { return true; } -::_pbi::CachedSize* PhpSettings::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void PhpSettings::InternalSwap(PhpSettings* PROTOBUF_RESTRICT other) { +void PhpSettings::InternalSwap(PhpSettings* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.common_, other->_impl_.common_); + swap(common_, other->common_); } -::google::protobuf::Metadata PhpSettings::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata PhpSettings::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fclient_2eproto_getter, &descriptor_table_google_2fapi_2fclient_2eproto_once, file_level_metadata_google_2fapi_2fclient_2eproto[6]); } + // =================================================================== class PythonSettings_ExperimentalFeatures::_Internal { public: }; -PythonSettings_ExperimentalFeatures::PythonSettings_ExperimentalFeatures(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +PythonSettings_ExperimentalFeatures::PythonSettings_ExperimentalFeatures(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.PythonSettings.ExperimentalFeatures) } -PythonSettings_ExperimentalFeatures::PythonSettings_ExperimentalFeatures( - ::google::protobuf::Arena* arena, const PythonSettings_ExperimentalFeatures& from) - : PythonSettings_ExperimentalFeatures(arena) { - MergeFrom(from); +PythonSettings_ExperimentalFeatures::PythonSettings_ExperimentalFeatures(const PythonSettings_ExperimentalFeatures& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&rest_async_io_enabled_, &from.rest_async_io_enabled_, + static_cast(reinterpret_cast(&protobuf_pythonic_types_enabled_) - + reinterpret_cast(&rest_async_io_enabled_)) + sizeof(protobuf_pythonic_types_enabled_)); + // @@protoc_insertion_point(copy_constructor:google.api.PythonSettings.ExperimentalFeatures) } -inline PROTOBUF_NDEBUG_INLINE PythonSettings_ExperimentalFeatures::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void PythonSettings_ExperimentalFeatures::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, rest_async_io_enabled_), - 0, - offsetof(Impl_, protobuf_pythonic_types_enabled_) - - offsetof(Impl_, rest_async_io_enabled_) + - sizeof(Impl_::protobuf_pythonic_types_enabled_)); +inline void PythonSettings_ExperimentalFeatures::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&rest_async_io_enabled_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&protobuf_pythonic_types_enabled_) - + reinterpret_cast(&rest_async_io_enabled_)) + sizeof(protobuf_pythonic_types_enabled_)); } + PythonSettings_ExperimentalFeatures::~PythonSettings_ExperimentalFeatures() { // @@protoc_insertion_point(destructor:google.api.PythonSettings.ExperimentalFeatures) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void PythonSettings_ExperimentalFeatures::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void PythonSettings_ExperimentalFeatures::Clear() { +void PythonSettings_ExperimentalFeatures::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void PythonSettings_ExperimentalFeatures::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.PythonSettings.ExperimentalFeatures) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&_impl_.rest_async_io_enabled_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.protobuf_pythonic_types_enabled_) - - reinterpret_cast(&_impl_.rest_async_io_enabled_)) + sizeof(_impl_.protobuf_pythonic_types_enabled_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* PythonSettings_ExperimentalFeatures::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + ::memset(&rest_async_io_enabled_, 0, static_cast( + reinterpret_cast(&protobuf_pythonic_types_enabled_) - + reinterpret_cast(&rest_async_io_enabled_)) + sizeof(protobuf_pythonic_types_enabled_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* PythonSettings_ExperimentalFeatures::_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) { + // bool rest_async_io_enabled = 1 [json_name = "restAsyncIoEnabled"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + rest_async_io_enabled_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool protobuf_pythonic_types_enabled = 2 [json_name = "protobufPythonicTypesEnabled"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + protobuf_pythonic_types_enabled_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> PythonSettings_ExperimentalFeatures::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_PythonSettings_ExperimentalFeatures_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // bool protobuf_pythonic_types_enabled = 2 [json_name = "protobufPythonicTypesEnabled"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(PythonSettings_ExperimentalFeatures, _impl_.protobuf_pythonic_types_enabled_)}}, - // bool rest_async_io_enabled = 1 [json_name = "restAsyncIoEnabled"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(PythonSettings_ExperimentalFeatures, _impl_.rest_async_io_enabled_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bool rest_async_io_enabled = 1 [json_name = "restAsyncIoEnabled"]; - {PROTOBUF_FIELD_OFFSET(PythonSettings_ExperimentalFeatures, _impl_.rest_async_io_enabled_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // bool protobuf_pythonic_types_enabled = 2 [json_name = "protobufPythonicTypesEnabled"]; - {PROTOBUF_FIELD_OFFSET(PythonSettings_ExperimentalFeatures, _impl_.protobuf_pythonic_types_enabled_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* PythonSettings_ExperimentalFeatures::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* PythonSettings_ExperimentalFeatures::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.PythonSettings.ExperimentalFeatures) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // bool rest_async_io_enabled = 1 [json_name = "restAsyncIoEnabled"]; if (this->_internal_rest_async_io_enabled() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 1, this->_internal_rest_async_io_enabled(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_rest_async_io_enabled(), target); } // bool protobuf_pythonic_types_enabled = 2 [json_name = "protobufPythonicTypesEnabled"]; if (this->_internal_protobuf_pythonic_types_enabled() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 2, this->_internal_protobuf_pythonic_types_enabled(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_protobuf_pythonic_types_enabled(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.PythonSettings.ExperimentalFeatures) return target; } -::size_t PythonSettings_ExperimentalFeatures::ByteSizeLong() const { +size_t PythonSettings_ExperimentalFeatures::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.PythonSettings.ExperimentalFeatures) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // bool rest_async_io_enabled = 1 [json_name = "restAsyncIoEnabled"]; if (this->_internal_rest_async_io_enabled() != 0) { - total_size += 2; + total_size += 1 + 1; } // bool protobuf_pythonic_types_enabled = 2 [json_name = "protobufPythonicTypesEnabled"]; if (this->_internal_protobuf_pythonic_types_enabled() != 0) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData PythonSettings_ExperimentalFeatures::_class_data_ = { - PythonSettings_ExperimentalFeatures::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PythonSettings_ExperimentalFeatures::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + PythonSettings_ExperimentalFeatures::MergeImpl }; -const ::google::protobuf::Message::ClassData* PythonSettings_ExperimentalFeatures::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PythonSettings_ExperimentalFeatures::GetClassData() const { return &_class_data_; } + +void PythonSettings_ExperimentalFeatures::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void PythonSettings_ExperimentalFeatures::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.PythonSettings.ExperimentalFeatures) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void PythonSettings_ExperimentalFeatures::MergeFrom(const PythonSettings_ExperimentalFeatures& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.PythonSettings.ExperimentalFeatures) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_rest_async_io_enabled() != 0) { - _this->_internal_set_rest_async_io_enabled(from._internal_rest_async_io_enabled()); + _internal_set_rest_async_io_enabled(from._internal_rest_async_io_enabled()); } if (from._internal_protobuf_pythonic_types_enabled() != 0) { - _this->_internal_set_protobuf_pythonic_types_enabled(from._internal_protobuf_pythonic_types_enabled()); + _internal_set_protobuf_pythonic_types_enabled(from._internal_protobuf_pythonic_types_enabled()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void PythonSettings_ExperimentalFeatures::CopyFrom(const PythonSettings_ExperimentalFeatures& from) { @@ -3116,259 +3044,232 @@ void PythonSettings_ExperimentalFeatures::CopyFrom(const PythonSettings_Experime MergeFrom(from); } -PROTOBUF_NOINLINE bool PythonSettings_ExperimentalFeatures::IsInitialized() const { +bool PythonSettings_ExperimentalFeatures::IsInitialized() const { return true; } -::_pbi::CachedSize* PythonSettings_ExperimentalFeatures::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void PythonSettings_ExperimentalFeatures::InternalSwap(PythonSettings_ExperimentalFeatures* PROTOBUF_RESTRICT other) { +void PythonSettings_ExperimentalFeatures::InternalSwap(PythonSettings_ExperimentalFeatures* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(PythonSettings_ExperimentalFeatures, _impl_.protobuf_pythonic_types_enabled_) - + sizeof(PythonSettings_ExperimentalFeatures::_impl_.protobuf_pythonic_types_enabled_) - - PROTOBUF_FIELD_OFFSET(PythonSettings_ExperimentalFeatures, _impl_.rest_async_io_enabled_)>( - reinterpret_cast(&_impl_.rest_async_io_enabled_), - reinterpret_cast(&other->_impl_.rest_async_io_enabled_)); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(PythonSettings_ExperimentalFeatures, protobuf_pythonic_types_enabled_) + + sizeof(PythonSettings_ExperimentalFeatures::protobuf_pythonic_types_enabled_) + - PROTOBUF_FIELD_OFFSET(PythonSettings_ExperimentalFeatures, rest_async_io_enabled_)>( + reinterpret_cast(&rest_async_io_enabled_), + reinterpret_cast(&other->rest_async_io_enabled_)); } -::google::protobuf::Metadata PythonSettings_ExperimentalFeatures::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata PythonSettings_ExperimentalFeatures::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fclient_2eproto_getter, &descriptor_table_google_2fapi_2fclient_2eproto_once, file_level_metadata_google_2fapi_2fclient_2eproto[7]); } + // =================================================================== class PythonSettings::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(PythonSettings, _impl_._has_bits_); static const ::google::api::CommonLanguageSettings& common(const PythonSettings* msg); - static void set_has_common(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } static const ::google::api::PythonSettings_ExperimentalFeatures& experimental_features(const PythonSettings* msg); - static void set_has_experimental_features(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } }; -const ::google::api::CommonLanguageSettings& PythonSettings::_Internal::common(const PythonSettings* msg) { - return *msg->_impl_.common_; +const ::google::api::CommonLanguageSettings& +PythonSettings::_Internal::common(const PythonSettings* msg) { + return *msg->common_; } -const ::google::api::PythonSettings_ExperimentalFeatures& PythonSettings::_Internal::experimental_features(const PythonSettings* msg) { - return *msg->_impl_.experimental_features_; +const ::google::api::PythonSettings_ExperimentalFeatures& +PythonSettings::_Internal::experimental_features(const PythonSettings* msg) { + return *msg->experimental_features_; } -PythonSettings::PythonSettings(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +PythonSettings::PythonSettings(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.PythonSettings) } -inline PROTOBUF_NDEBUG_INLINE PythonSettings::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -PythonSettings::PythonSettings( - ::google::protobuf::Arena* arena, - const PythonSettings& from) - : ::google::protobuf::Message(arena) { - PythonSettings* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.common_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::api::CommonLanguageSettings>(arena, *from._impl_.common_) - : nullptr; - _impl_.experimental_features_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::google::api::PythonSettings_ExperimentalFeatures>(arena, *from._impl_.experimental_features_) - : nullptr; - +PythonSettings::PythonSettings(const PythonSettings& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_common()) { + common_ = new ::google::api::CommonLanguageSettings(*from.common_); + } else { + common_ = nullptr; + } + if (from._internal_has_experimental_features()) { + experimental_features_ = new ::google::api::PythonSettings_ExperimentalFeatures(*from.experimental_features_); + } else { + experimental_features_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:google.api.PythonSettings) } -inline PROTOBUF_NDEBUG_INLINE PythonSettings::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void PythonSettings::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, common_), - 0, - offsetof(Impl_, experimental_features_) - - offsetof(Impl_, common_) + - sizeof(Impl_::experimental_features_)); +inline void PythonSettings::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&common_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&experimental_features_) - + reinterpret_cast(&common_)) + sizeof(experimental_features_)); } + PythonSettings::~PythonSettings() { // @@protoc_insertion_point(destructor:google.api.PythonSettings) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void PythonSettings::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.common_; - delete _impl_.experimental_features_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete common_; + if (this != internal_default_instance()) delete experimental_features_; +} + +void PythonSettings::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void PythonSettings::Clear() { +void PythonSettings::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.PythonSettings) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.common_ != nullptr); - _impl_.common_->Clear(); + if (GetArenaForAllocation() == nullptr && common_ != nullptr) { + delete common_; + } + common_ = nullptr; + if (GetArenaForAllocation() == nullptr && experimental_features_ != nullptr) { + delete experimental_features_; + } + experimental_features_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* PythonSettings::_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) { + // .google.api.CommonLanguageSettings common = 1 [json_name = "common"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_common(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.PythonSettings.ExperimentalFeatures experimental_features = 2 [json_name = "experimentalFeatures"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_experimental_features(), 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; } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.experimental_features_ != nullptr); - _impl_.experimental_features_->Clear(); - } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* PythonSettings::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 2, 0, 2> PythonSettings::_table_ = { - { - PROTOBUF_FIELD_OFFSET(PythonSettings, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_PythonSettings_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .google.api.PythonSettings.ExperimentalFeatures experimental_features = 2 [json_name = "experimentalFeatures"]; - {::_pbi::TcParser::FastMtS1, - {18, 1, 1, PROTOBUF_FIELD_OFFSET(PythonSettings, _impl_.experimental_features_)}}, - // .google.api.CommonLanguageSettings common = 1 [json_name = "common"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(PythonSettings, _impl_.common_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .google.api.CommonLanguageSettings common = 1 [json_name = "common"]; - {PROTOBUF_FIELD_OFFSET(PythonSettings, _impl_.common_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.api.PythonSettings.ExperimentalFeatures experimental_features = 2 [json_name = "experimentalFeatures"]; - {PROTOBUF_FIELD_OFFSET(PythonSettings, _impl_.experimental_features_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::CommonLanguageSettings>()}, - {::_pbi::TcParser::GetTable<::google::api::PythonSettings_ExperimentalFeatures>()}, - }}, {{ - }}, -}; - -::uint8_t* PythonSettings::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* PythonSettings::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.PythonSettings) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .google.api.CommonLanguageSettings common = 1 [json_name = "common"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::common(this), + if (this->_internal_has_common()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::common(this), _Internal::common(this).GetCachedSize(), target, stream); } // .google.api.PythonSettings.ExperimentalFeatures experimental_features = 2 [json_name = "experimentalFeatures"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::experimental_features(this), + if (this->_internal_has_experimental_features()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::experimental_features(this), _Internal::experimental_features(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.PythonSettings) return target; } -::size_t PythonSettings::ByteSizeLong() const { +size_t PythonSettings::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.PythonSettings) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // .google.api.CommonLanguageSettings common = 1 [json_name = "common"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.common_); - } - - // .google.api.PythonSettings.ExperimentalFeatures experimental_features = 2 [json_name = "experimentalFeatures"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.experimental_features_); - } + // .google.api.CommonLanguageSettings common = 1 [json_name = "common"]; + if (this->_internal_has_common()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *common_); + } + // .google.api.PythonSettings.ExperimentalFeatures experimental_features = 2 [json_name = "experimentalFeatures"]; + if (this->_internal_has_experimental_features()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *experimental_features_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData PythonSettings::_class_data_ = { - PythonSettings::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PythonSettings::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + PythonSettings::MergeImpl }; -const ::google::protobuf::Message::ClassData* PythonSettings::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PythonSettings::GetClassData() const { return &_class_data_; } + +void PythonSettings::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void PythonSettings::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.PythonSettings) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void PythonSettings::MergeFrom(const PythonSettings& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.PythonSettings) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_common()->::google::api::CommonLanguageSettings::MergeFrom( - from._internal_common()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_experimental_features()->::google::api::PythonSettings_ExperimentalFeatures::MergeFrom( - from._internal_experimental_features()); - } + if (from._internal_has_common()) { + _internal_mutable_common()->::google::api::CommonLanguageSettings::MergeFrom(from._internal_common()); + } + if (from._internal_has_experimental_features()) { + _internal_mutable_experimental_features()->::google::api::PythonSettings_ExperimentalFeatures::MergeFrom(from._internal_experimental_features()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void PythonSettings::CopyFrom(const PythonSettings& from) { @@ -3378,209 +3279,189 @@ void PythonSettings::CopyFrom(const PythonSettings& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool PythonSettings::IsInitialized() const { +bool PythonSettings::IsInitialized() const { return true; } -::_pbi::CachedSize* PythonSettings::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void PythonSettings::InternalSwap(PythonSettings* PROTOBUF_RESTRICT other) { +void PythonSettings::InternalSwap(PythonSettings* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(PythonSettings, _impl_.experimental_features_) - + sizeof(PythonSettings::_impl_.experimental_features_) - - PROTOBUF_FIELD_OFFSET(PythonSettings, _impl_.common_)>( - reinterpret_cast(&_impl_.common_), - reinterpret_cast(&other->_impl_.common_)); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(PythonSettings, experimental_features_) + + sizeof(PythonSettings::experimental_features_) + - PROTOBUF_FIELD_OFFSET(PythonSettings, common_)>( + reinterpret_cast(&common_), + reinterpret_cast(&other->common_)); } -::google::protobuf::Metadata PythonSettings::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata PythonSettings::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fclient_2eproto_getter, &descriptor_table_google_2fapi_2fclient_2eproto_once, file_level_metadata_google_2fapi_2fclient_2eproto[8]); } + // =================================================================== class NodeSettings::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(NodeSettings, _impl_._has_bits_); static const ::google::api::CommonLanguageSettings& common(const NodeSettings* msg); - static void set_has_common(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::google::api::CommonLanguageSettings& NodeSettings::_Internal::common(const NodeSettings* msg) { - return *msg->_impl_.common_; +const ::google::api::CommonLanguageSettings& +NodeSettings::_Internal::common(const NodeSettings* msg) { + return *msg->common_; } -NodeSettings::NodeSettings(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +NodeSettings::NodeSettings(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.NodeSettings) } -inline PROTOBUF_NDEBUG_INLINE NodeSettings::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -NodeSettings::NodeSettings( - ::google::protobuf::Arena* arena, - const NodeSettings& from) - : ::google::protobuf::Message(arena) { - NodeSettings* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.common_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::api::CommonLanguageSettings>(arena, *from._impl_.common_) - : nullptr; - +NodeSettings::NodeSettings(const NodeSettings& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_common()) { + common_ = new ::google::api::CommonLanguageSettings(*from.common_); + } else { + common_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:google.api.NodeSettings) } -inline PROTOBUF_NDEBUG_INLINE NodeSettings::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void NodeSettings::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.common_ = {}; +inline void NodeSettings::SharedCtor() { +common_ = nullptr; } + NodeSettings::~NodeSettings() { // @@protoc_insertion_point(destructor:google.api.NodeSettings) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void NodeSettings::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.common_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete common_; +} + +void NodeSettings::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void NodeSettings::Clear() { +void NodeSettings::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.NodeSettings) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.common_ != nullptr); - _impl_.common_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* NodeSettings::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + if (GetArenaForAllocation() == nullptr && common_ != nullptr) { + delete common_; + } + common_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* NodeSettings::_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) { + // .google.api.CommonLanguageSettings common = 1 [json_name = "common"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_common(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> NodeSettings::_table_ = { - { - PROTOBUF_FIELD_OFFSET(NodeSettings, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_NodeSettings_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .google.api.CommonLanguageSettings common = 1 [json_name = "common"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(NodeSettings, _impl_.common_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .google.api.CommonLanguageSettings common = 1 [json_name = "common"]; - {PROTOBUF_FIELD_OFFSET(NodeSettings, _impl_.common_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::CommonLanguageSettings>()}, - }}, {{ - }}, -}; - -::uint8_t* NodeSettings::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* NodeSettings::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.NodeSettings) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .google.api.CommonLanguageSettings common = 1 [json_name = "common"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::common(this), + if (this->_internal_has_common()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::common(this), _Internal::common(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.NodeSettings) return target; } -::size_t NodeSettings::ByteSizeLong() const { +size_t NodeSettings::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.NodeSettings) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .google.api.CommonLanguageSettings common = 1 [json_name = "common"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.common_); + if (this->_internal_has_common()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *common_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData NodeSettings::_class_data_ = { - NodeSettings::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NodeSettings::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + NodeSettings::MergeImpl }; -const ::google::protobuf::Message::ClassData* NodeSettings::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NodeSettings::GetClassData() const { return &_class_data_; } + +void NodeSettings::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void NodeSettings::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.NodeSettings) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void NodeSettings::MergeFrom(const NodeSettings& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.NodeSettings) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_common()->::google::api::CommonLanguageSettings::MergeFrom( - from._internal_common()); + if (from._internal_has_common()) { + _internal_mutable_common()->::google::api::CommonLanguageSettings::MergeFrom(from._internal_common()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void NodeSettings::CopyFrom(const NodeSettings& from) { @@ -3590,409 +3471,446 @@ void NodeSettings::CopyFrom(const NodeSettings& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool NodeSettings::IsInitialized() const { +bool NodeSettings::IsInitialized() const { return true; } -::_pbi::CachedSize* NodeSettings::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void NodeSettings::InternalSwap(NodeSettings* PROTOBUF_RESTRICT other) { +void NodeSettings::InternalSwap(NodeSettings* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.common_, other->_impl_.common_); + swap(common_, other->common_); } -::google::protobuf::Metadata NodeSettings::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata NodeSettings::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fclient_2eproto_getter, &descriptor_table_google_2fapi_2fclient_2eproto_once, file_level_metadata_google_2fapi_2fclient_2eproto[9]); } + // =================================================================== DotnetSettings_RenamedServicesEntry_DoNotUse::DotnetSettings_RenamedServicesEntry_DoNotUse() {} -DotnetSettings_RenamedServicesEntry_DoNotUse::DotnetSettings_RenamedServicesEntry_DoNotUse(::google::protobuf::Arena* arena) +DotnetSettings_RenamedServicesEntry_DoNotUse::DotnetSettings_RenamedServicesEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) : SuperType(arena) {} -::google::protobuf::Metadata DotnetSettings_RenamedServicesEntry_DoNotUse::GetMetadata() const { +void DotnetSettings_RenamedServicesEntry_DoNotUse::MergeFrom(const DotnetSettings_RenamedServicesEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata DotnetSettings_RenamedServicesEntry_DoNotUse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fclient_2eproto_getter, &descriptor_table_google_2fapi_2fclient_2eproto_once, file_level_metadata_google_2fapi_2fclient_2eproto[10]); } + // =================================================================== DotnetSettings_RenamedResourcesEntry_DoNotUse::DotnetSettings_RenamedResourcesEntry_DoNotUse() {} -DotnetSettings_RenamedResourcesEntry_DoNotUse::DotnetSettings_RenamedResourcesEntry_DoNotUse(::google::protobuf::Arena* arena) +DotnetSettings_RenamedResourcesEntry_DoNotUse::DotnetSettings_RenamedResourcesEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) : SuperType(arena) {} -::google::protobuf::Metadata DotnetSettings_RenamedResourcesEntry_DoNotUse::GetMetadata() const { +void DotnetSettings_RenamedResourcesEntry_DoNotUse::MergeFrom(const DotnetSettings_RenamedResourcesEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata DotnetSettings_RenamedResourcesEntry_DoNotUse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fclient_2eproto_getter, &descriptor_table_google_2fapi_2fclient_2eproto_once, file_level_metadata_google_2fapi_2fclient_2eproto[11]); } + // =================================================================== class DotnetSettings::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(DotnetSettings, _impl_._has_bits_); static const ::google::api::CommonLanguageSettings& common(const DotnetSettings* msg); - static void set_has_common(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::google::api::CommonLanguageSettings& DotnetSettings::_Internal::common(const DotnetSettings* msg) { - return *msg->_impl_.common_; -} -DotnetSettings::DotnetSettings(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +const ::google::api::CommonLanguageSettings& +DotnetSettings::_Internal::common(const DotnetSettings* msg) { + return *msg->common_; +} +DotnetSettings::DotnetSettings(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + renamed_services_(arena), + renamed_resources_(arena), + ignored_resources_(arena), + forced_namespace_aliases_(arena), + handwritten_signatures_(arena) { + SharedCtor(); + if (arena != nullptr && !is_message_owned) { + arena->OwnCustomDestructor(this, &DotnetSettings::ArenaDtor); + } // @@protoc_insertion_point(arena_constructor:google.api.DotnetSettings) } -inline PROTOBUF_NDEBUG_INLINE DotnetSettings::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - renamed_services_{visibility, arena, from.renamed_services_}, - renamed_resources_{visibility, arena, from.renamed_resources_}, - ignored_resources_{visibility, arena, from.ignored_resources_}, - forced_namespace_aliases_{visibility, arena, from.forced_namespace_aliases_}, - handwritten_signatures_{visibility, arena, from.handwritten_signatures_} {} - -DotnetSettings::DotnetSettings( - ::google::protobuf::Arena* arena, - const DotnetSettings& from) - : ::google::protobuf::Message(arena) { - DotnetSettings* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.common_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::api::CommonLanguageSettings>(arena, *from._impl_.common_) - : nullptr; - +DotnetSettings::DotnetSettings(const DotnetSettings& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + ignored_resources_(from.ignored_resources_), + forced_namespace_aliases_(from.forced_namespace_aliases_), + handwritten_signatures_(from.handwritten_signatures_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + renamed_services_.MergeFrom(from.renamed_services_); + renamed_resources_.MergeFrom(from.renamed_resources_); + if (from._internal_has_common()) { + common_ = new ::google::api::CommonLanguageSettings(*from.common_); + } else { + common_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:google.api.DotnetSettings) } -inline PROTOBUF_NDEBUG_INLINE DotnetSettings::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - renamed_services_{visibility, arena}, - renamed_resources_{visibility, arena}, - ignored_resources_{visibility, arena}, - forced_namespace_aliases_{visibility, arena}, - handwritten_signatures_{visibility, arena} {} -inline void DotnetSettings::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.common_ = {}; +inline void DotnetSettings::SharedCtor() { +common_ = nullptr; } + DotnetSettings::~DotnetSettings() { // @@protoc_insertion_point(destructor:google.api.DotnetSettings) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + ArenaDtor(this); + return; + } SharedDtor(); } + inline void DotnetSettings::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.common_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + renamed_services_.Destruct(); + renamed_resources_.Destruct(); + if (this != internal_default_instance()) delete common_; +} + +void DotnetSettings::ArenaDtor(void* object) { + DotnetSettings* _this = reinterpret_cast< DotnetSettings* >(object); + _this->renamed_services_.Destruct(); + _this->renamed_resources_.Destruct(); +} +void DotnetSettings::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void DotnetSettings::Clear() { +void DotnetSettings::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.DotnetSettings) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.renamed_services_.Clear(); - _impl_.renamed_resources_.Clear(); - _impl_.ignored_resources_.Clear(); - _impl_.forced_namespace_aliases_.Clear(); - _impl_.handwritten_signatures_.Clear(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.common_ != nullptr); - _impl_.common_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* DotnetSettings::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + renamed_services_.Clear(); + renamed_resources_.Clear(); + ignored_resources_.Clear(); + forced_namespace_aliases_.Clear(); + handwritten_signatures_.Clear(); + if (GetArenaForAllocation() == nullptr && common_ != nullptr) { + delete common_; + } + common_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DotnetSettings::_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) { + // .google.api.CommonLanguageSettings common = 1 [json_name = "common"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_common(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // map renamed_services = 2 [json_name = "renamedServices"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&renamed_services_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } else + goto handle_unusual; + continue; + // map renamed_resources = 3 [json_name = "renamedResources"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&renamed_resources_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); + } else + goto handle_unusual; + continue; + // repeated string ignored_resources = 4 [json_name = "ignoredResources"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_ignored_resources(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.DotnetSettings.ignored_resources")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr)); + } else + goto handle_unusual; + continue; + // repeated string forced_namespace_aliases = 5 [json_name = "forcedNamespaceAliases"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_forced_namespace_aliases(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.DotnetSettings.forced_namespace_aliases")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr)); + } else + goto handle_unusual; + continue; + // repeated string handwritten_signatures = 6 [json_name = "handwrittenSignatures"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_handwritten_signatures(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.DotnetSettings.handwritten_signatures")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 6, 3, 130, 2> DotnetSettings::_table_ = { - { - PROTOBUF_FIELD_OFFSET(DotnetSettings, _impl_._has_bits_), - 0, // no _extensions_ - 6, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967232, // skipmap - offsetof(decltype(_table_), field_entries), - 6, // num_field_entries - 3, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_DotnetSettings_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // .google.api.CommonLanguageSettings common = 1 [json_name = "common"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(DotnetSettings, _impl_.common_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - // repeated string ignored_resources = 4 [json_name = "ignoredResources"]; - {::_pbi::TcParser::FastUR1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(DotnetSettings, _impl_.ignored_resources_)}}, - // repeated string forced_namespace_aliases = 5 [json_name = "forcedNamespaceAliases"]; - {::_pbi::TcParser::FastUR1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(DotnetSettings, _impl_.forced_namespace_aliases_)}}, - // repeated string handwritten_signatures = 6 [json_name = "handwrittenSignatures"]; - {::_pbi::TcParser::FastUR1, - {50, 63, 0, PROTOBUF_FIELD_OFFSET(DotnetSettings, _impl_.handwritten_signatures_)}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // .google.api.CommonLanguageSettings common = 1 [json_name = "common"]; - {PROTOBUF_FIELD_OFFSET(DotnetSettings, _impl_.common_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // map renamed_services = 2 [json_name = "renamedServices"]; - {PROTOBUF_FIELD_OFFSET(DotnetSettings, _impl_.renamed_services_), -1, 1, - (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, - // map renamed_resources = 3 [json_name = "renamedResources"]; - {PROTOBUF_FIELD_OFFSET(DotnetSettings, _impl_.renamed_resources_), -1, 2, - (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, - // repeated string ignored_resources = 4 [json_name = "ignoredResources"]; - {PROTOBUF_FIELD_OFFSET(DotnetSettings, _impl_.ignored_resources_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - // repeated string forced_namespace_aliases = 5 [json_name = "forcedNamespaceAliases"]; - {PROTOBUF_FIELD_OFFSET(DotnetSettings, _impl_.forced_namespace_aliases_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - // repeated string handwritten_signatures = 6 [json_name = "handwrittenSignatures"]; - {PROTOBUF_FIELD_OFFSET(DotnetSettings, _impl_.handwritten_signatures_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::CommonLanguageSettings>()}, - {::_pbi::TcParser::GetMapAuxInfo< - decltype(DotnetSettings()._impl_.renamed_services_)>( - 1, 0, 0, 9, - 9)}, - {::_pbi::TcParser::GetMapAuxInfo< - decltype(DotnetSettings()._impl_.renamed_resources_)>( - 1, 0, 0, 9, - 9)}, - }}, {{ - "\31\0\20\21\21\30\26\0" - "google.api.DotnetSettings" - "renamed_services" - "renamed_resources" - "ignored_resources" - "forced_namespace_aliases" - "handwritten_signatures" - }}, -}; - -::uint8_t* DotnetSettings::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* DotnetSettings::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.DotnetSettings) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .google.api.CommonLanguageSettings common = 1 [json_name = "common"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::common(this), + if (this->_internal_has_common()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::common(this), _Internal::common(this).GetCachedSize(), target, stream); } // map renamed_services = 2 [json_name = "renamedServices"]; - if (!_internal_renamed_services().empty()) { - using MapType = ::google::protobuf::Map; - using WireHelper = _pbi::MapEntryFuncs; - const auto& field = _internal_renamed_services(); - - if (stream->IsSerializationDeterministic() && field.size() > 1) { - for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { - target = WireHelper::InternalSerialize( - 2, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.DotnetSettings.renamed_services"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.second.data(), static_cast(entry.second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.DotnetSettings.renamed_services"); + if (!this->_internal_renamed_services().empty()) { + using MapType = ::_pb::Map; + using WireHelper = DotnetSettings_RenamedServicesEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_renamed_services(); + 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, + "google.api.DotnetSettings.RenamedServicesEntry.key"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + entry.second.data(), static_cast(entry.second.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.DotnetSettings.RenamedServicesEntry.value"); + }; + + if (stream->IsSerializationDeterministic() && map_field.size() > 1) { + for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { + target = WireHelper::InternalSerialize(2, entry.first, entry.second, target, stream); + check_utf8(entry); } } else { - for (const auto& entry : field) { - target = WireHelper::InternalSerialize( - 2, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.DotnetSettings.renamed_services"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.second.data(), static_cast(entry.second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.DotnetSettings.renamed_services"); + for (const auto& entry : map_field) { + target = WireHelper::InternalSerialize(2, entry.first, entry.second, target, stream); + check_utf8(entry); } } } // map renamed_resources = 3 [json_name = "renamedResources"]; - if (!_internal_renamed_resources().empty()) { - using MapType = ::google::protobuf::Map; - using WireHelper = _pbi::MapEntryFuncs; - const auto& field = _internal_renamed_resources(); - - if (stream->IsSerializationDeterministic() && field.size() > 1) { - for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { - target = WireHelper::InternalSerialize( - 3, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.DotnetSettings.renamed_resources"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.second.data(), static_cast(entry.second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.DotnetSettings.renamed_resources"); + if (!this->_internal_renamed_resources().empty()) { + using MapType = ::_pb::Map; + using WireHelper = DotnetSettings_RenamedResourcesEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_renamed_resources(); + 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, + "google.api.DotnetSettings.RenamedResourcesEntry.key"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + entry.second.data(), static_cast(entry.second.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.DotnetSettings.RenamedResourcesEntry.value"); + }; + + if (stream->IsSerializationDeterministic() && map_field.size() > 1) { + for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { + target = WireHelper::InternalSerialize(3, entry.first, entry.second, target, stream); + check_utf8(entry); } } else { - for (const auto& entry : field) { - target = WireHelper::InternalSerialize( - 3, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.DotnetSettings.renamed_resources"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.second.data(), static_cast(entry.second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.DotnetSettings.renamed_resources"); + for (const auto& entry : map_field) { + target = WireHelper::InternalSerialize(3, entry.first, entry.second, target, stream); + check_utf8(entry); } } } // repeated string ignored_resources = 4 [json_name = "ignoredResources"]; - for (int i = 0, n = this->_internal_ignored_resources_size(); i < n; ++i) { - const auto& s = this->_internal_ignored_resources().Get(i); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.DotnetSettings.ignored_resources"); + for (int i = 0, n = this->_internal_ignored_resources_size(); i < n; i++) { + const auto& s = this->_internal_ignored_resources(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.DotnetSettings.ignored_resources"); target = stream->WriteString(4, s, target); } // repeated string forced_namespace_aliases = 5 [json_name = "forcedNamespaceAliases"]; - for (int i = 0, n = this->_internal_forced_namespace_aliases_size(); i < n; ++i) { - const auto& s = this->_internal_forced_namespace_aliases().Get(i); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.DotnetSettings.forced_namespace_aliases"); + for (int i = 0, n = this->_internal_forced_namespace_aliases_size(); i < n; i++) { + const auto& s = this->_internal_forced_namespace_aliases(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.DotnetSettings.forced_namespace_aliases"); target = stream->WriteString(5, s, target); } // repeated string handwritten_signatures = 6 [json_name = "handwrittenSignatures"]; - for (int i = 0, n = this->_internal_handwritten_signatures_size(); i < n; ++i) { - const auto& s = this->_internal_handwritten_signatures().Get(i); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.DotnetSettings.handwritten_signatures"); + for (int i = 0, n = this->_internal_handwritten_signatures_size(); i < n; i++) { + const auto& s = this->_internal_handwritten_signatures(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.DotnetSettings.handwritten_signatures"); target = stream->WriteString(6, s, target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.DotnetSettings) return target; } -::size_t DotnetSettings::ByteSizeLong() const { +size_t DotnetSettings::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.DotnetSettings) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // map renamed_services = 2 [json_name = "renamedServices"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_renamed_services_size()); - for (const auto& entry : _internal_renamed_services()) { - total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_renamed_services_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator + it = this->_internal_renamed_services().begin(); + it != this->_internal_renamed_services().end(); ++it) { + total_size += DotnetSettings_RenamedServicesEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); } + // map renamed_resources = 3 [json_name = "renamedResources"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_renamed_resources_size()); - for (const auto& entry : _internal_renamed_resources()) { - total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_renamed_resources_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator + it = this->_internal_renamed_resources().begin(); + it != this->_internal_renamed_resources().end(); ++it) { + total_size += DotnetSettings_RenamedResourcesEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); } + // repeated string ignored_resources = 4 [json_name = "ignoredResources"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_ignored_resources().size()); - for (int i = 0, n = _internal_ignored_resources().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - _internal_ignored_resources().Get(i)); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(ignored_resources_.size()); + for (int i = 0, n = ignored_resources_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + ignored_resources_.Get(i)); } + // repeated string forced_namespace_aliases = 5 [json_name = "forcedNamespaceAliases"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_forced_namespace_aliases().size()); - for (int i = 0, n = _internal_forced_namespace_aliases().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - _internal_forced_namespace_aliases().Get(i)); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(forced_namespace_aliases_.size()); + for (int i = 0, n = forced_namespace_aliases_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + forced_namespace_aliases_.Get(i)); } + // repeated string handwritten_signatures = 6 [json_name = "handwrittenSignatures"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_handwritten_signatures().size()); - for (int i = 0, n = _internal_handwritten_signatures().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - _internal_handwritten_signatures().Get(i)); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(handwritten_signatures_.size()); + for (int i = 0, n = handwritten_signatures_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + handwritten_signatures_.Get(i)); } + // .google.api.CommonLanguageSettings common = 1 [json_name = "common"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.common_); + if (this->_internal_has_common()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *common_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData DotnetSettings::_class_data_ = { - DotnetSettings::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DotnetSettings::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + DotnetSettings::MergeImpl }; -const ::google::protobuf::Message::ClassData* DotnetSettings::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DotnetSettings::GetClassData() const { return &_class_data_; } + +void DotnetSettings::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void DotnetSettings::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.DotnetSettings) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void DotnetSettings::MergeFrom(const DotnetSettings& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.DotnetSettings) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.renamed_services_.MergeFrom(from._impl_.renamed_services_); - _this->_impl_.renamed_resources_.MergeFrom(from._impl_.renamed_resources_); - _this->_internal_mutable_ignored_resources()->MergeFrom(from._internal_ignored_resources()); - _this->_internal_mutable_forced_namespace_aliases()->MergeFrom(from._internal_forced_namespace_aliases()); - _this->_internal_mutable_handwritten_signatures()->MergeFrom(from._internal_handwritten_signatures()); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_common()->::google::api::CommonLanguageSettings::MergeFrom( - from._internal_common()); + renamed_services_.MergeFrom(from.renamed_services_); + renamed_resources_.MergeFrom(from.renamed_resources_); + ignored_resources_.MergeFrom(from.ignored_resources_); + forced_namespace_aliases_.MergeFrom(from.forced_namespace_aliases_); + handwritten_signatures_.MergeFrom(from.handwritten_signatures_); + if (from._internal_has_common()) { + _internal_mutable_common()->::google::api::CommonLanguageSettings::MergeFrom(from._internal_common()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void DotnetSettings::CopyFrom(const DotnetSettings& from) { @@ -4002,209 +3920,189 @@ void DotnetSettings::CopyFrom(const DotnetSettings& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool DotnetSettings::IsInitialized() const { +bool DotnetSettings::IsInitialized() const { return true; } -::_pbi::CachedSize* DotnetSettings::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void DotnetSettings::InternalSwap(DotnetSettings* PROTOBUF_RESTRICT other) { +void DotnetSettings::InternalSwap(DotnetSettings* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.renamed_services_.InternalSwap(&other->_impl_.renamed_services_); - _impl_.renamed_resources_.InternalSwap(&other->_impl_.renamed_resources_); - _impl_.ignored_resources_.InternalSwap(&other->_impl_.ignored_resources_); - _impl_.forced_namespace_aliases_.InternalSwap(&other->_impl_.forced_namespace_aliases_); - _impl_.handwritten_signatures_.InternalSwap(&other->_impl_.handwritten_signatures_); - swap(_impl_.common_, other->_impl_.common_); + renamed_services_.InternalSwap(&other->renamed_services_); + renamed_resources_.InternalSwap(&other->renamed_resources_); + ignored_resources_.InternalSwap(&other->ignored_resources_); + forced_namespace_aliases_.InternalSwap(&other->forced_namespace_aliases_); + handwritten_signatures_.InternalSwap(&other->handwritten_signatures_); + swap(common_, other->common_); } -::google::protobuf::Metadata DotnetSettings::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata DotnetSettings::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fclient_2eproto_getter, &descriptor_table_google_2fapi_2fclient_2eproto_once, file_level_metadata_google_2fapi_2fclient_2eproto[12]); } + // =================================================================== class RubySettings::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(RubySettings, _impl_._has_bits_); static const ::google::api::CommonLanguageSettings& common(const RubySettings* msg); - static void set_has_common(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::google::api::CommonLanguageSettings& RubySettings::_Internal::common(const RubySettings* msg) { - return *msg->_impl_.common_; +const ::google::api::CommonLanguageSettings& +RubySettings::_Internal::common(const RubySettings* msg) { + return *msg->common_; } -RubySettings::RubySettings(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +RubySettings::RubySettings(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.RubySettings) } -inline PROTOBUF_NDEBUG_INLINE RubySettings::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -RubySettings::RubySettings( - ::google::protobuf::Arena* arena, - const RubySettings& from) - : ::google::protobuf::Message(arena) { - RubySettings* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.common_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::api::CommonLanguageSettings>(arena, *from._impl_.common_) - : nullptr; - +RubySettings::RubySettings(const RubySettings& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_common()) { + common_ = new ::google::api::CommonLanguageSettings(*from.common_); + } else { + common_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:google.api.RubySettings) } -inline PROTOBUF_NDEBUG_INLINE RubySettings::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void RubySettings::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.common_ = {}; +inline void RubySettings::SharedCtor() { +common_ = nullptr; } + RubySettings::~RubySettings() { // @@protoc_insertion_point(destructor:google.api.RubySettings) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void RubySettings::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.common_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete common_; } -PROTOBUF_NOINLINE void RubySettings::Clear() { +void RubySettings::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void RubySettings::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.RubySettings) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.common_ != nullptr); - _impl_.common_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* RubySettings::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + if (GetArenaForAllocation() == nullptr && common_ != nullptr) { + delete common_; + } + common_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RubySettings::_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) { + // .google.api.CommonLanguageSettings common = 1 [json_name = "common"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_common(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> RubySettings::_table_ = { - { - PROTOBUF_FIELD_OFFSET(RubySettings, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_RubySettings_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .google.api.CommonLanguageSettings common = 1 [json_name = "common"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(RubySettings, _impl_.common_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .google.api.CommonLanguageSettings common = 1 [json_name = "common"]; - {PROTOBUF_FIELD_OFFSET(RubySettings, _impl_.common_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::CommonLanguageSettings>()}, - }}, {{ - }}, -}; - -::uint8_t* RubySettings::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* RubySettings::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.RubySettings) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .google.api.CommonLanguageSettings common = 1 [json_name = "common"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::common(this), + if (this->_internal_has_common()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::common(this), _Internal::common(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.RubySettings) return target; } -::size_t RubySettings::ByteSizeLong() const { +size_t RubySettings::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.RubySettings) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .google.api.CommonLanguageSettings common = 1 [json_name = "common"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.common_); + if (this->_internal_has_common()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *common_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData RubySettings::_class_data_ = { - RubySettings::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RubySettings::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + RubySettings::MergeImpl }; -const ::google::protobuf::Message::ClassData* RubySettings::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RubySettings::GetClassData() const { return &_class_data_; } + +void RubySettings::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void RubySettings::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.RubySettings) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void RubySettings::MergeFrom(const RubySettings& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.RubySettings) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_common()->::google::api::CommonLanguageSettings::MergeFrom( - from._internal_common()); + if (from._internal_has_common()) { + _internal_mutable_common()->::google::api::CommonLanguageSettings::MergeFrom(from._internal_common()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void RubySettings::CopyFrom(const RubySettings& from) { @@ -4214,204 +4112,263 @@ void RubySettings::CopyFrom(const RubySettings& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool RubySettings::IsInitialized() const { +bool RubySettings::IsInitialized() const { return true; } -::_pbi::CachedSize* RubySettings::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void RubySettings::InternalSwap(RubySettings* PROTOBUF_RESTRICT other) { +void RubySettings::InternalSwap(RubySettings* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.common_, other->_impl_.common_); + swap(common_, other->common_); } -::google::protobuf::Metadata RubySettings::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata RubySettings::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fclient_2eproto_getter, &descriptor_table_google_2fapi_2fclient_2eproto_once, file_level_metadata_google_2fapi_2fclient_2eproto[13]); } + +// =================================================================== + +GoSettings_RenamedServicesEntry_DoNotUse::GoSettings_RenamedServicesEntry_DoNotUse() {} +GoSettings_RenamedServicesEntry_DoNotUse::GoSettings_RenamedServicesEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : SuperType(arena) {} +void GoSettings_RenamedServicesEntry_DoNotUse::MergeFrom(const GoSettings_RenamedServicesEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata GoSettings_RenamedServicesEntry_DoNotUse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_google_2fapi_2fclient_2eproto_getter, &descriptor_table_google_2fapi_2fclient_2eproto_once, + file_level_metadata_google_2fapi_2fclient_2eproto[14]); +} + // =================================================================== class GoSettings::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GoSettings, _impl_._has_bits_); static const ::google::api::CommonLanguageSettings& common(const GoSettings* msg); - static void set_has_common(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::google::api::CommonLanguageSettings& GoSettings::_Internal::common(const GoSettings* msg) { - return *msg->_impl_.common_; +const ::google::api::CommonLanguageSettings& +GoSettings::_Internal::common(const GoSettings* msg) { + return *msg->common_; } -GoSettings::GoSettings(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GoSettings::GoSettings(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + renamed_services_(arena) { + SharedCtor(); + if (arena != nullptr && !is_message_owned) { + arena->OwnCustomDestructor(this, &GoSettings::ArenaDtor); + } // @@protoc_insertion_point(arena_constructor:google.api.GoSettings) } -inline PROTOBUF_NDEBUG_INLINE GoSettings::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -GoSettings::GoSettings( - ::google::protobuf::Arena* arena, - const GoSettings& from) - : ::google::protobuf::Message(arena) { - GoSettings* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.common_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::api::CommonLanguageSettings>(arena, *from._impl_.common_) - : nullptr; - +GoSettings::GoSettings(const GoSettings& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + renamed_services_.MergeFrom(from.renamed_services_); + if (from._internal_has_common()) { + common_ = new ::google::api::CommonLanguageSettings(*from.common_); + } else { + common_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:google.api.GoSettings) } -inline PROTOBUF_NDEBUG_INLINE GoSettings::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void GoSettings::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.common_ = {}; +inline void GoSettings::SharedCtor() { +common_ = nullptr; } + GoSettings::~GoSettings() { // @@protoc_insertion_point(destructor:google.api.GoSettings) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + ArenaDtor(this); + return; + } SharedDtor(); } + inline void GoSettings::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.common_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + renamed_services_.Destruct(); + if (this != internal_default_instance()) delete common_; +} + +void GoSettings::ArenaDtor(void* object) { + GoSettings* _this = reinterpret_cast< GoSettings* >(object); + _this->renamed_services_.Destruct(); +} +void GoSettings::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GoSettings::Clear() { +void GoSettings::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.GoSettings) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.common_ != nullptr); - _impl_.common_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GoSettings::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + renamed_services_.Clear(); + if (GetArenaForAllocation() == nullptr && common_ != nullptr) { + delete common_; + } + common_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GoSettings::_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) { + // .google.api.CommonLanguageSettings common = 1 [json_name = "common"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_common(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // map renamed_services = 2 [json_name = "renamedServices"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&renamed_services_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GoSettings::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GoSettings, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GoSettings_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .google.api.CommonLanguageSettings common = 1 [json_name = "common"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(GoSettings, _impl_.common_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .google.api.CommonLanguageSettings common = 1 [json_name = "common"]; - {PROTOBUF_FIELD_OFFSET(GoSettings, _impl_.common_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::CommonLanguageSettings>()}, - }}, {{ - }}, -}; - -::uint8_t* GoSettings::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GoSettings::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.GoSettings) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .google.api.CommonLanguageSettings common = 1 [json_name = "common"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::common(this), + if (this->_internal_has_common()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::common(this), _Internal::common(this).GetCachedSize(), target, stream); } + // map renamed_services = 2 [json_name = "renamedServices"]; + if (!this->_internal_renamed_services().empty()) { + using MapType = ::_pb::Map; + using WireHelper = GoSettings_RenamedServicesEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_renamed_services(); + 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, + "google.api.GoSettings.RenamedServicesEntry.key"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + entry.second.data(), static_cast(entry.second.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.GoSettings.RenamedServicesEntry.value"); + }; + + if (stream->IsSerializationDeterministic() && map_field.size() > 1) { + for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { + target = WireHelper::InternalSerialize(2, entry.first, entry.second, target, stream); + check_utf8(entry); + } + } else { + for (const auto& entry : map_field) { + target = WireHelper::InternalSerialize(2, 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.GoSettings) return target; } -::size_t GoSettings::ByteSizeLong() const { +size_t GoSettings::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.GoSettings) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + // map renamed_services = 2 [json_name = "renamedServices"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_renamed_services_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator + it = this->_internal_renamed_services().begin(); + it != this->_internal_renamed_services().end(); ++it) { + total_size += GoSettings_RenamedServicesEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + } + // .google.api.CommonLanguageSettings common = 1 [json_name = "common"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.common_); + if (this->_internal_has_common()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *common_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GoSettings::_class_data_ = { - GoSettings::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GoSettings::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GoSettings::MergeImpl }; -const ::google::protobuf::Message::ClassData* GoSettings::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GoSettings::GetClassData() const { return &_class_data_; } + +void GoSettings::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GoSettings::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.GoSettings) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GoSettings::MergeFrom(const GoSettings& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.GoSettings) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_common()->::google::api::CommonLanguageSettings::MergeFrom( - from._internal_common()); + renamed_services_.MergeFrom(from.renamed_services_); + if (from._internal_has_common()) { + _internal_mutable_common()->::google::api::CommonLanguageSettings::MergeFrom(from._internal_common()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GoSettings::CopyFrom(const GoSettings& from) { @@ -4421,347 +4378,322 @@ void GoSettings::CopyFrom(const GoSettings& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GoSettings::IsInitialized() const { +bool GoSettings::IsInitialized() const { return true; } -::_pbi::CachedSize* GoSettings::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GoSettings::InternalSwap(GoSettings* PROTOBUF_RESTRICT other) { +void GoSettings::InternalSwap(GoSettings* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.common_, other->_impl_.common_); + renamed_services_.InternalSwap(&other->renamed_services_); + swap(common_, other->common_); } -::google::protobuf::Metadata GoSettings::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GoSettings::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fclient_2eproto_getter, &descriptor_table_google_2fapi_2fclient_2eproto_once, - file_level_metadata_google_2fapi_2fclient_2eproto[14]); + file_level_metadata_google_2fapi_2fclient_2eproto[15]); } + // =================================================================== class MethodSettings_LongRunning::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(MethodSettings_LongRunning, _impl_._has_bits_); - static const ::google::protobuf::Duration& initial_poll_delay(const MethodSettings_LongRunning* msg); - static void set_has_initial_poll_delay(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::google::protobuf::Duration& max_poll_delay(const MethodSettings_LongRunning* msg); - static void set_has_max_poll_delay(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static const ::google::protobuf::Duration& total_poll_timeout(const MethodSettings_LongRunning* msg); - static void set_has_total_poll_timeout(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } + static const ::PROTOBUF_NAMESPACE_ID::Duration& initial_poll_delay(const MethodSettings_LongRunning* msg); + static const ::PROTOBUF_NAMESPACE_ID::Duration& max_poll_delay(const MethodSettings_LongRunning* msg); + static const ::PROTOBUF_NAMESPACE_ID::Duration& total_poll_timeout(const MethodSettings_LongRunning* msg); }; -const ::google::protobuf::Duration& MethodSettings_LongRunning::_Internal::initial_poll_delay(const MethodSettings_LongRunning* msg) { - return *msg->_impl_.initial_poll_delay_; +const ::PROTOBUF_NAMESPACE_ID::Duration& +MethodSettings_LongRunning::_Internal::initial_poll_delay(const MethodSettings_LongRunning* msg) { + return *msg->initial_poll_delay_; } -const ::google::protobuf::Duration& MethodSettings_LongRunning::_Internal::max_poll_delay(const MethodSettings_LongRunning* msg) { - return *msg->_impl_.max_poll_delay_; +const ::PROTOBUF_NAMESPACE_ID::Duration& +MethodSettings_LongRunning::_Internal::max_poll_delay(const MethodSettings_LongRunning* msg) { + return *msg->max_poll_delay_; } -const ::google::protobuf::Duration& MethodSettings_LongRunning::_Internal::total_poll_timeout(const MethodSettings_LongRunning* msg) { - return *msg->_impl_.total_poll_timeout_; +const ::PROTOBUF_NAMESPACE_ID::Duration& +MethodSettings_LongRunning::_Internal::total_poll_timeout(const MethodSettings_LongRunning* msg) { + return *msg->total_poll_timeout_; } void MethodSettings_LongRunning::clear_initial_poll_delay() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.initial_poll_delay_ != nullptr) _impl_.initial_poll_delay_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && initial_poll_delay_ != nullptr) { + delete initial_poll_delay_; + } + initial_poll_delay_ = nullptr; } void MethodSettings_LongRunning::clear_max_poll_delay() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.max_poll_delay_ != nullptr) _impl_.max_poll_delay_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && max_poll_delay_ != nullptr) { + delete max_poll_delay_; + } + max_poll_delay_ = nullptr; } void MethodSettings_LongRunning::clear_total_poll_timeout() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.total_poll_timeout_ != nullptr) _impl_.total_poll_timeout_->Clear(); - _impl_._has_bits_[0] &= ~0x00000004u; + if (GetArenaForAllocation() == nullptr && total_poll_timeout_ != nullptr) { + delete total_poll_timeout_; + } + total_poll_timeout_ = nullptr; } -MethodSettings_LongRunning::MethodSettings_LongRunning(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +MethodSettings_LongRunning::MethodSettings_LongRunning(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.MethodSettings.LongRunning) } -inline PROTOBUF_NDEBUG_INLINE MethodSettings_LongRunning::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -MethodSettings_LongRunning::MethodSettings_LongRunning( - ::google::protobuf::Arena* arena, - const MethodSettings_LongRunning& from) - : ::google::protobuf::Message(arena) { - MethodSettings_LongRunning* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.initial_poll_delay_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Duration>(arena, *from._impl_.initial_poll_delay_) - : nullptr; - _impl_.max_poll_delay_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::google::protobuf::Duration>(arena, *from._impl_.max_poll_delay_) - : nullptr; - _impl_.total_poll_timeout_ = (cached_has_bits & 0x00000004u) - ? CreateMaybeMessage<::google::protobuf::Duration>(arena, *from._impl_.total_poll_timeout_) - : nullptr; - _impl_.poll_delay_multiplier_ = from._impl_.poll_delay_multiplier_; - +MethodSettings_LongRunning::MethodSettings_LongRunning(const MethodSettings_LongRunning& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_initial_poll_delay()) { + initial_poll_delay_ = new ::PROTOBUF_NAMESPACE_ID::Duration(*from.initial_poll_delay_); + } else { + initial_poll_delay_ = nullptr; + } + if (from._internal_has_max_poll_delay()) { + max_poll_delay_ = new ::PROTOBUF_NAMESPACE_ID::Duration(*from.max_poll_delay_); + } else { + max_poll_delay_ = nullptr; + } + if (from._internal_has_total_poll_timeout()) { + total_poll_timeout_ = new ::PROTOBUF_NAMESPACE_ID::Duration(*from.total_poll_timeout_); + } else { + total_poll_timeout_ = nullptr; + } + poll_delay_multiplier_ = from.poll_delay_multiplier_; // @@protoc_insertion_point(copy_constructor:google.api.MethodSettings.LongRunning) } -inline PROTOBUF_NDEBUG_INLINE MethodSettings_LongRunning::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void MethodSettings_LongRunning::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, initial_poll_delay_), - 0, - offsetof(Impl_, poll_delay_multiplier_) - - offsetof(Impl_, initial_poll_delay_) + - sizeof(Impl_::poll_delay_multiplier_)); +inline void MethodSettings_LongRunning::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&initial_poll_delay_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&poll_delay_multiplier_) - + reinterpret_cast(&initial_poll_delay_)) + sizeof(poll_delay_multiplier_)); } + MethodSettings_LongRunning::~MethodSettings_LongRunning() { // @@protoc_insertion_point(destructor:google.api.MethodSettings.LongRunning) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void MethodSettings_LongRunning::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.initial_poll_delay_; - delete _impl_.max_poll_delay_; - delete _impl_.total_poll_timeout_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete initial_poll_delay_; + if (this != internal_default_instance()) delete max_poll_delay_; + if (this != internal_default_instance()) delete total_poll_timeout_; +} + +void MethodSettings_LongRunning::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void MethodSettings_LongRunning::Clear() { +void MethodSettings_LongRunning::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.MethodSettings.LongRunning) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.initial_poll_delay_ != nullptr); - _impl_.initial_poll_delay_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.max_poll_delay_ != nullptr); - _impl_.max_poll_delay_->Clear(); + if (GetArenaForAllocation() == nullptr && initial_poll_delay_ != nullptr) { + delete initial_poll_delay_; + } + initial_poll_delay_ = nullptr; + if (GetArenaForAllocation() == nullptr && max_poll_delay_ != nullptr) { + delete max_poll_delay_; + } + max_poll_delay_ = nullptr; + if (GetArenaForAllocation() == nullptr && total_poll_timeout_ != nullptr) { + delete total_poll_timeout_; + } + total_poll_timeout_ = nullptr; + poll_delay_multiplier_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* MethodSettings_LongRunning::_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) { + // .google.protobuf.Duration initial_poll_delay = 1 [json_name = "initialPollDelay"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_initial_poll_delay(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // float poll_delay_multiplier = 2 [json_name = "pollDelayMultiplier"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 21)) { + poll_delay_multiplier_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(float); + } else + goto handle_unusual; + continue; + // .google.protobuf.Duration max_poll_delay = 3 [json_name = "maxPollDelay"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_max_poll_delay(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Duration total_poll_timeout = 4 [json_name = "totalPollTimeout"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_total_poll_timeout(), 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; } - if (cached_has_bits & 0x00000004u) { - ABSL_DCHECK(_impl_.total_poll_timeout_ != nullptr); - _impl_.total_poll_timeout_->Clear(); - } - } - _impl_.poll_delay_multiplier_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* MethodSettings_LongRunning::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 3, 0, 2> MethodSettings_LongRunning::_table_ = { - { - PROTOBUF_FIELD_OFFSET(MethodSettings_LongRunning, _impl_._has_bits_), - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 3, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_MethodSettings_LongRunning_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .google.protobuf.Duration total_poll_timeout = 4 [json_name = "totalPollTimeout"]; - {::_pbi::TcParser::FastMtS1, - {34, 2, 2, PROTOBUF_FIELD_OFFSET(MethodSettings_LongRunning, _impl_.total_poll_timeout_)}}, - // .google.protobuf.Duration initial_poll_delay = 1 [json_name = "initialPollDelay"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(MethodSettings_LongRunning, _impl_.initial_poll_delay_)}}, - // float poll_delay_multiplier = 2 [json_name = "pollDelayMultiplier"]; - {::_pbi::TcParser::FastF32S1, - {21, 63, 0, PROTOBUF_FIELD_OFFSET(MethodSettings_LongRunning, _impl_.poll_delay_multiplier_)}}, - // .google.protobuf.Duration max_poll_delay = 3 [json_name = "maxPollDelay"]; - {::_pbi::TcParser::FastMtS1, - {26, 1, 1, PROTOBUF_FIELD_OFFSET(MethodSettings_LongRunning, _impl_.max_poll_delay_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .google.protobuf.Duration initial_poll_delay = 1 [json_name = "initialPollDelay"]; - {PROTOBUF_FIELD_OFFSET(MethodSettings_LongRunning, _impl_.initial_poll_delay_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // float poll_delay_multiplier = 2 [json_name = "pollDelayMultiplier"]; - {PROTOBUF_FIELD_OFFSET(MethodSettings_LongRunning, _impl_.poll_delay_multiplier_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, - // .google.protobuf.Duration max_poll_delay = 3 [json_name = "maxPollDelay"]; - {PROTOBUF_FIELD_OFFSET(MethodSettings_LongRunning, _impl_.max_poll_delay_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.protobuf.Duration total_poll_timeout = 4 [json_name = "totalPollTimeout"]; - {PROTOBUF_FIELD_OFFSET(MethodSettings_LongRunning, _impl_.total_poll_timeout_), _Internal::kHasBitsOffset + 2, 2, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Duration>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Duration>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Duration>()}, - }}, {{ - }}, -}; - -::uint8_t* MethodSettings_LongRunning::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* MethodSettings_LongRunning::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.MethodSettings.LongRunning) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Duration initial_poll_delay = 1 [json_name = "initialPollDelay"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::initial_poll_delay(this), + if (this->_internal_has_initial_poll_delay()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::initial_poll_delay(this), _Internal::initial_poll_delay(this).GetCachedSize(), target, stream); } // float poll_delay_multiplier = 2 [json_name = "pollDelayMultiplier"]; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); + static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); float tmp_poll_delay_multiplier = this->_internal_poll_delay_multiplier(); - ::uint32_t raw_poll_delay_multiplier; + uint32_t raw_poll_delay_multiplier; memcpy(&raw_poll_delay_multiplier, &tmp_poll_delay_multiplier, sizeof(tmp_poll_delay_multiplier)); if (raw_poll_delay_multiplier != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 2, this->_internal_poll_delay_multiplier(), target); + target = ::_pbi::WireFormatLite::WriteFloatToArray(2, this->_internal_poll_delay_multiplier(), target); } // .google.protobuf.Duration max_poll_delay = 3 [json_name = "maxPollDelay"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::max_poll_delay(this), + if (this->_internal_has_max_poll_delay()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::max_poll_delay(this), _Internal::max_poll_delay(this).GetCachedSize(), target, stream); } // .google.protobuf.Duration total_poll_timeout = 4 [json_name = "totalPollTimeout"]; - if (cached_has_bits & 0x00000004u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, _Internal::total_poll_timeout(this), + if (this->_internal_has_total_poll_timeout()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::total_poll_timeout(this), _Internal::total_poll_timeout(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.MethodSettings.LongRunning) return target; } -::size_t MethodSettings_LongRunning::ByteSizeLong() const { +size_t MethodSettings_LongRunning::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.MethodSettings.LongRunning) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - // .google.protobuf.Duration initial_poll_delay = 1 [json_name = "initialPollDelay"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.initial_poll_delay_); - } - - // .google.protobuf.Duration max_poll_delay = 3 [json_name = "maxPollDelay"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.max_poll_delay_); - } + // .google.protobuf.Duration initial_poll_delay = 1 [json_name = "initialPollDelay"]; + if (this->_internal_has_initial_poll_delay()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *initial_poll_delay_); + } - // .google.protobuf.Duration total_poll_timeout = 4 [json_name = "totalPollTimeout"]; - if (cached_has_bits & 0x00000004u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.total_poll_timeout_); - } + // .google.protobuf.Duration max_poll_delay = 3 [json_name = "maxPollDelay"]; + if (this->_internal_has_max_poll_delay()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *max_poll_delay_); + } + // .google.protobuf.Duration total_poll_timeout = 4 [json_name = "totalPollTimeout"]; + if (this->_internal_has_total_poll_timeout()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *total_poll_timeout_); } + // float poll_delay_multiplier = 2 [json_name = "pollDelayMultiplier"]; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); + static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); float tmp_poll_delay_multiplier = this->_internal_poll_delay_multiplier(); - ::uint32_t raw_poll_delay_multiplier; + uint32_t raw_poll_delay_multiplier; memcpy(&raw_poll_delay_multiplier, &tmp_poll_delay_multiplier, sizeof(tmp_poll_delay_multiplier)); if (raw_poll_delay_multiplier != 0) { - total_size += 5; + total_size += 1 + 4; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData MethodSettings_LongRunning::_class_data_ = { - MethodSettings_LongRunning::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MethodSettings_LongRunning::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + MethodSettings_LongRunning::MergeImpl }; -const ::google::protobuf::Message::ClassData* MethodSettings_LongRunning::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MethodSettings_LongRunning::GetClassData() const { return &_class_data_; } + +void MethodSettings_LongRunning::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void MethodSettings_LongRunning::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.MethodSettings.LongRunning) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void MethodSettings_LongRunning::MergeFrom(const MethodSettings_LongRunning& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.MethodSettings.LongRunning) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_initial_poll_delay()->::google::protobuf::Duration::MergeFrom( - from._internal_initial_poll_delay()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_max_poll_delay()->::google::protobuf::Duration::MergeFrom( - from._internal_max_poll_delay()); - } - if (cached_has_bits & 0x00000004u) { - _this->_internal_mutable_total_poll_timeout()->::google::protobuf::Duration::MergeFrom( - from._internal_total_poll_timeout()); - } + if (from._internal_has_initial_poll_delay()) { + _internal_mutable_initial_poll_delay()->::PROTOBUF_NAMESPACE_ID::Duration::MergeFrom(from._internal_initial_poll_delay()); + } + if (from._internal_has_max_poll_delay()) { + _internal_mutable_max_poll_delay()->::PROTOBUF_NAMESPACE_ID::Duration::MergeFrom(from._internal_max_poll_delay()); } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); + if (from._internal_has_total_poll_timeout()) { + _internal_mutable_total_poll_timeout()->::PROTOBUF_NAMESPACE_ID::Duration::MergeFrom(from._internal_total_poll_timeout()); + } + static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); float tmp_poll_delay_multiplier = from._internal_poll_delay_multiplier(); - ::uint32_t raw_poll_delay_multiplier; + uint32_t raw_poll_delay_multiplier; memcpy(&raw_poll_delay_multiplier, &tmp_poll_delay_multiplier, sizeof(tmp_poll_delay_multiplier)); if (raw_poll_delay_multiplier != 0) { - _this->_internal_set_poll_delay_multiplier(from._internal_poll_delay_multiplier()); + _internal_set_poll_delay_multiplier(from._internal_poll_delay_multiplier()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MethodSettings_LongRunning::CopyFrom(const MethodSettings_LongRunning& from) { @@ -4771,265 +4703,270 @@ void MethodSettings_LongRunning::CopyFrom(const MethodSettings_LongRunning& from MergeFrom(from); } -PROTOBUF_NOINLINE bool MethodSettings_LongRunning::IsInitialized() const { +bool MethodSettings_LongRunning::IsInitialized() const { return true; } -::_pbi::CachedSize* MethodSettings_LongRunning::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void MethodSettings_LongRunning::InternalSwap(MethodSettings_LongRunning* PROTOBUF_RESTRICT other) { +void MethodSettings_LongRunning::InternalSwap(MethodSettings_LongRunning* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(MethodSettings_LongRunning, _impl_.poll_delay_multiplier_) - + sizeof(MethodSettings_LongRunning::_impl_.poll_delay_multiplier_) - - PROTOBUF_FIELD_OFFSET(MethodSettings_LongRunning, _impl_.initial_poll_delay_)>( - reinterpret_cast(&_impl_.initial_poll_delay_), - reinterpret_cast(&other->_impl_.initial_poll_delay_)); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(MethodSettings_LongRunning, poll_delay_multiplier_) + + sizeof(MethodSettings_LongRunning::poll_delay_multiplier_) + - PROTOBUF_FIELD_OFFSET(MethodSettings_LongRunning, initial_poll_delay_)>( + reinterpret_cast(&initial_poll_delay_), + reinterpret_cast(&other->initial_poll_delay_)); } -::google::protobuf::Metadata MethodSettings_LongRunning::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata MethodSettings_LongRunning::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fclient_2eproto_getter, &descriptor_table_google_2fapi_2fclient_2eproto_once, - file_level_metadata_google_2fapi_2fclient_2eproto[15]); + file_level_metadata_google_2fapi_2fclient_2eproto[16]); } + // =================================================================== class MethodSettings::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(MethodSettings, _impl_._has_bits_); static const ::google::api::MethodSettings_LongRunning& long_running(const MethodSettings* msg); - static void set_has_long_running(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::google::api::MethodSettings_LongRunning& MethodSettings::_Internal::long_running(const MethodSettings* msg) { - return *msg->_impl_.long_running_; +const ::google::api::MethodSettings_LongRunning& +MethodSettings::_Internal::long_running(const MethodSettings* msg) { + return *msg->long_running_; } -MethodSettings::MethodSettings(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +MethodSettings::MethodSettings(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + auto_populated_fields_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.MethodSettings) } -inline PROTOBUF_NDEBUG_INLINE MethodSettings::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - auto_populated_fields_{visibility, arena, from.auto_populated_fields_}, - selector_(arena, from.selector_) {} - -MethodSettings::MethodSettings( - ::google::protobuf::Arena* arena, - const MethodSettings& from) - : ::google::protobuf::Message(arena) { - MethodSettings* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.long_running_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::api::MethodSettings_LongRunning>(arena, *from._impl_.long_running_) - : nullptr; - +MethodSettings::MethodSettings(const MethodSettings& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + auto_populated_fields_(from.auto_populated_fields_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + selector_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + selector_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_selector().empty()) { + selector_.Set(from._internal_selector(), + GetArenaForAllocation()); + } + if (from._internal_has_long_running()) { + long_running_ = new ::google::api::MethodSettings_LongRunning(*from.long_running_); + } else { + long_running_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:google.api.MethodSettings) } -inline PROTOBUF_NDEBUG_INLINE MethodSettings::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - auto_populated_fields_{visibility, arena}, - selector_(arena) {} -inline void MethodSettings::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.long_running_ = {}; +inline void MethodSettings::SharedCtor() { +selector_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + selector_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +long_running_ = nullptr; } + MethodSettings::~MethodSettings() { // @@protoc_insertion_point(destructor:google.api.MethodSettings) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void MethodSettings::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.selector_.Destroy(); - delete _impl_.long_running_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + selector_.Destroy(); + if (this != internal_default_instance()) delete long_running_; +} + +void MethodSettings::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void MethodSettings::Clear() { +void MethodSettings::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.MethodSettings) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.auto_populated_fields_.Clear(); - _impl_.selector_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.long_running_ != nullptr); - _impl_.long_running_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* MethodSettings::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + auto_populated_fields_.Clear(); + selector_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && long_running_ != nullptr) { + delete long_running_; + } + long_running_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* MethodSettings::_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 selector = 1 [json_name = "selector"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_selector(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.MethodSettings.selector")); + } else + goto handle_unusual; + continue; + // .google.api.MethodSettings.LongRunning long_running = 2 [json_name = "longRunning"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_long_running(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // repeated string auto_populated_fields = 3 [json_name = "autoPopulatedFields"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_auto_populated_fields(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.MethodSettings.auto_populated_fields")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 1, 63, 2> MethodSettings::_table_ = { - { - PROTOBUF_FIELD_OFFSET(MethodSettings, _impl_._has_bits_), - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_MethodSettings_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string selector = 1 [json_name = "selector"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(MethodSettings, _impl_.selector_)}}, - // .google.api.MethodSettings.LongRunning long_running = 2 [json_name = "longRunning"]; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(MethodSettings, _impl_.long_running_)}}, - // repeated string auto_populated_fields = 3 [json_name = "autoPopulatedFields"]; - {::_pbi::TcParser::FastUR1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(MethodSettings, _impl_.auto_populated_fields_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string selector = 1 [json_name = "selector"]; - {PROTOBUF_FIELD_OFFSET(MethodSettings, _impl_.selector_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.api.MethodSettings.LongRunning long_running = 2 [json_name = "longRunning"]; - {PROTOBUF_FIELD_OFFSET(MethodSettings, _impl_.long_running_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated string auto_populated_fields = 3 [json_name = "autoPopulatedFields"]; - {PROTOBUF_FIELD_OFFSET(MethodSettings, _impl_.auto_populated_fields_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::MethodSettings_LongRunning>()}, - }}, {{ - "\31\10\0\25\0\0\0\0" - "google.api.MethodSettings" - "selector" - "auto_populated_fields" - }}, -}; - -::uint8_t* MethodSettings::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* MethodSettings::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.MethodSettings) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string selector = 1 [json_name = "selector"]; if (!this->_internal_selector().empty()) { - const std::string& _s = this->_internal_selector(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.MethodSettings.selector"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_selector().data(), static_cast(this->_internal_selector().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.MethodSettings.selector"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_selector(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.api.MethodSettings.LongRunning long_running = 2 [json_name = "longRunning"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::long_running(this), + if (this->_internal_has_long_running()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::long_running(this), _Internal::long_running(this).GetCachedSize(), target, stream); } // repeated string auto_populated_fields = 3 [json_name = "autoPopulatedFields"]; - for (int i = 0, n = this->_internal_auto_populated_fields_size(); i < n; ++i) { - const auto& s = this->_internal_auto_populated_fields().Get(i); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.MethodSettings.auto_populated_fields"); + for (int i = 0, n = this->_internal_auto_populated_fields_size(); i < n; i++) { + const auto& s = this->_internal_auto_populated_fields(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.MethodSettings.auto_populated_fields"); target = stream->WriteString(3, s, target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.MethodSettings) return target; } -::size_t MethodSettings::ByteSizeLong() const { +size_t MethodSettings::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.MethodSettings) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated string auto_populated_fields = 3 [json_name = "autoPopulatedFields"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_auto_populated_fields().size()); - for (int i = 0, n = _internal_auto_populated_fields().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - _internal_auto_populated_fields().Get(i)); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(auto_populated_fields_.size()); + for (int i = 0, n = auto_populated_fields_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + auto_populated_fields_.Get(i)); } + // string selector = 1 [json_name = "selector"]; if (!this->_internal_selector().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_selector()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_selector()); } // .google.api.MethodSettings.LongRunning long_running = 2 [json_name = "longRunning"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.long_running_); + if (this->_internal_has_long_running()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *long_running_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData MethodSettings::_class_data_ = { - MethodSettings::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MethodSettings::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + MethodSettings::MergeImpl }; -const ::google::protobuf::Message::ClassData* MethodSettings::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MethodSettings::GetClassData() const { return &_class_data_; } + +void MethodSettings::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void MethodSettings::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.MethodSettings) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void MethodSettings::MergeFrom(const MethodSettings& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.MethodSettings) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_auto_populated_fields()->MergeFrom(from._internal_auto_populated_fields()); + auto_populated_fields_.MergeFrom(from.auto_populated_fields_); if (!from._internal_selector().empty()) { - _this->_internal_set_selector(from._internal_selector()); + _internal_set_selector(from._internal_selector()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_long_running()->::google::api::MethodSettings_LongRunning::MergeFrom( - from._internal_long_running()); + if (from._internal_has_long_running()) { + _internal_mutable_long_running()->::google::api::MethodSettings_LongRunning::MergeFrom(from._internal_long_running()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MethodSettings::CopyFrom(const MethodSettings& from) { @@ -5039,187 +4976,187 @@ void MethodSettings::CopyFrom(const MethodSettings& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool MethodSettings::IsInitialized() const { +bool MethodSettings::IsInitialized() const { return true; } -::_pbi::CachedSize* MethodSettings::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void MethodSettings::InternalSwap(MethodSettings* PROTOBUF_RESTRICT other) { +void MethodSettings::InternalSwap(MethodSettings* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.auto_populated_fields_.InternalSwap(&other->_impl_.auto_populated_fields_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.selector_, &other->_impl_.selector_, arena); - swap(_impl_.long_running_, other->_impl_.long_running_); + auto_populated_fields_.InternalSwap(&other->auto_populated_fields_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &selector_, lhs_arena, + &other->selector_, rhs_arena + ); + swap(long_running_, other->long_running_); } -::google::protobuf::Metadata MethodSettings::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata MethodSettings::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fclient_2eproto_getter, &descriptor_table_google_2fapi_2fclient_2eproto_once, - file_level_metadata_google_2fapi_2fclient_2eproto[16]); + file_level_metadata_google_2fapi_2fclient_2eproto[17]); } + // =================================================================== class SelectiveGapicGeneration::_Internal { public: }; -SelectiveGapicGeneration::SelectiveGapicGeneration(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +SelectiveGapicGeneration::SelectiveGapicGeneration(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + methods_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.SelectiveGapicGeneration) } -inline PROTOBUF_NDEBUG_INLINE SelectiveGapicGeneration::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : methods_{visibility, arena, from.methods_}, - _cached_size_{0} {} - -SelectiveGapicGeneration::SelectiveGapicGeneration( - ::google::protobuf::Arena* arena, - const SelectiveGapicGeneration& from) - : ::google::protobuf::Message(arena) { - SelectiveGapicGeneration* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +SelectiveGapicGeneration::SelectiveGapicGeneration(const SelectiveGapicGeneration& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + methods_(from.methods_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:google.api.SelectiveGapicGeneration) } -inline PROTOBUF_NDEBUG_INLINE SelectiveGapicGeneration::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : methods_{visibility, arena}, - _cached_size_{0} {} -inline void SelectiveGapicGeneration::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void SelectiveGapicGeneration::SharedCtor() { } + SelectiveGapicGeneration::~SelectiveGapicGeneration() { // @@protoc_insertion_point(destructor:google.api.SelectiveGapicGeneration) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void SelectiveGapicGeneration::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void SelectiveGapicGeneration::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void SelectiveGapicGeneration::Clear() { +void SelectiveGapicGeneration::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.SelectiveGapicGeneration) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.methods_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SelectiveGapicGeneration::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + methods_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SelectiveGapicGeneration::_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) { + // repeated string methods = 1 [json_name = "methods"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_methods(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.SelectiveGapicGeneration.methods")); + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 51, 2> SelectiveGapicGeneration::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_SelectiveGapicGeneration_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated string methods = 1 [json_name = "methods"]; - {::_pbi::TcParser::FastUR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(SelectiveGapicGeneration, _impl_.methods_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated string methods = 1 [json_name = "methods"]; - {PROTOBUF_FIELD_OFFSET(SelectiveGapicGeneration, _impl_.methods_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - }}, - // no aux_entries - {{ - "\43\7\0\0\0\0\0\0" - "google.api.SelectiveGapicGeneration" - "methods" - }}, -}; - -::uint8_t* SelectiveGapicGeneration::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* SelectiveGapicGeneration::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.SelectiveGapicGeneration) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated string methods = 1 [json_name = "methods"]; - for (int i = 0, n = this->_internal_methods_size(); i < n; ++i) { - const auto& s = this->_internal_methods().Get(i); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.SelectiveGapicGeneration.methods"); + for (int i = 0, n = this->_internal_methods_size(); i < n; i++) { + const auto& s = this->_internal_methods(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.SelectiveGapicGeneration.methods"); target = stream->WriteString(1, s, target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.SelectiveGapicGeneration) return target; } -::size_t SelectiveGapicGeneration::ByteSizeLong() const { +size_t SelectiveGapicGeneration::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.SelectiveGapicGeneration) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated string methods = 1 [json_name = "methods"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_methods().size()); - for (int i = 0, n = _internal_methods().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - _internal_methods().Get(i)); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(methods_.size()); + for (int i = 0, n = methods_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + methods_.Get(i)); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData SelectiveGapicGeneration::_class_data_ = { - SelectiveGapicGeneration::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SelectiveGapicGeneration::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + SelectiveGapicGeneration::MergeImpl }; -const ::google::protobuf::Message::ClassData* SelectiveGapicGeneration::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SelectiveGapicGeneration::GetClassData() const { return &_class_data_; } + +void SelectiveGapicGeneration::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void SelectiveGapicGeneration::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.SelectiveGapicGeneration) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void SelectiveGapicGeneration::MergeFrom(const SelectiveGapicGeneration& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.SelectiveGapicGeneration) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_methods()->MergeFrom(from._internal_methods()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + methods_.MergeFrom(from.methods_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SelectiveGapicGeneration::CopyFrom(const SelectiveGapicGeneration& from) { @@ -5229,46 +5166,119 @@ void SelectiveGapicGeneration::CopyFrom(const SelectiveGapicGeneration& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool SelectiveGapicGeneration::IsInitialized() const { +bool SelectiveGapicGeneration::IsInitialized() const { return true; } -::_pbi::CachedSize* SelectiveGapicGeneration::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void SelectiveGapicGeneration::InternalSwap(SelectiveGapicGeneration* PROTOBUF_RESTRICT other) { +void SelectiveGapicGeneration::InternalSwap(SelectiveGapicGeneration* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.methods_.InternalSwap(&other->_impl_.methods_); + methods_.InternalSwap(&other->methods_); } -::google::protobuf::Metadata SelectiveGapicGeneration::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata SelectiveGapicGeneration::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fclient_2eproto_getter, &descriptor_table_google_2fapi_2fclient_2eproto_once, - file_level_metadata_google_2fapi_2fclient_2eproto[17]); + file_level_metadata_google_2fapi_2fclient_2eproto[18]); } const std::string method_signature_default(""); -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MethodOptions, - ::google::protobuf::internal::RepeatedStringTypeTraits, 9, false> +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::MethodOptions, + ::PROTOBUF_NAMESPACE_ID::internal::RepeatedStringTypeTraits, 9, false> method_signature(kMethodSignatureFieldNumber, method_signature_default, nullptr); const std::string default_host_default(""); -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::ServiceOptions, - ::google::protobuf::internal::StringTypeTraits, 9, false> +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::ServiceOptions, + ::PROTOBUF_NAMESPACE_ID::internal::StringTypeTraits, 9, false> default_host(kDefaultHostFieldNumber, default_host_default, nullptr); const std::string oauth_scopes_default(""); -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::ServiceOptions, - ::google::protobuf::internal::StringTypeTraits, 9, false> +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::ServiceOptions, + ::PROTOBUF_NAMESPACE_ID::internal::StringTypeTraits, 9, false> oauth_scopes(kOauthScopesFieldNumber, oauth_scopes_default, nullptr); const std::string api_version_default(""); -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::ServiceOptions, - ::google::protobuf::internal::StringTypeTraits, 9, false> +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::ServiceOptions, + ::PROTOBUF_NAMESPACE_ID::internal::StringTypeTraits, 9, false> api_version(kApiVersionFieldNumber, api_version_default, nullptr); + // @@protoc_insertion_point(namespace_scope) } // namespace api } // namespace google -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::google::api::CommonLanguageSettings* +Arena::CreateMaybeMessage< ::google::api::CommonLanguageSettings >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::CommonLanguageSettings >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::ClientLibrarySettings* +Arena::CreateMaybeMessage< ::google::api::ClientLibrarySettings >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::ClientLibrarySettings >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::Publishing* +Arena::CreateMaybeMessage< ::google::api::Publishing >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::Publishing >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::JavaSettings_ServiceClassNamesEntry_DoNotUse* +Arena::CreateMaybeMessage< ::google::api::JavaSettings_ServiceClassNamesEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::JavaSettings_ServiceClassNamesEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::JavaSettings* +Arena::CreateMaybeMessage< ::google::api::JavaSettings >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::JavaSettings >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::CppSettings* +Arena::CreateMaybeMessage< ::google::api::CppSettings >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::CppSettings >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::PhpSettings* +Arena::CreateMaybeMessage< ::google::api::PhpSettings >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::PhpSettings >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::PythonSettings_ExperimentalFeatures* +Arena::CreateMaybeMessage< ::google::api::PythonSettings_ExperimentalFeatures >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::PythonSettings_ExperimentalFeatures >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::PythonSettings* +Arena::CreateMaybeMessage< ::google::api::PythonSettings >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::PythonSettings >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::NodeSettings* +Arena::CreateMaybeMessage< ::google::api::NodeSettings >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::NodeSettings >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::DotnetSettings_RenamedServicesEntry_DoNotUse* +Arena::CreateMaybeMessage< ::google::api::DotnetSettings_RenamedServicesEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::DotnetSettings_RenamedServicesEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::DotnetSettings_RenamedResourcesEntry_DoNotUse* +Arena::CreateMaybeMessage< ::google::api::DotnetSettings_RenamedResourcesEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::DotnetSettings_RenamedResourcesEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::DotnetSettings* +Arena::CreateMaybeMessage< ::google::api::DotnetSettings >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::DotnetSettings >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::RubySettings* +Arena::CreateMaybeMessage< ::google::api::RubySettings >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::RubySettings >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::GoSettings_RenamedServicesEntry_DoNotUse* +Arena::CreateMaybeMessage< ::google::api::GoSettings_RenamedServicesEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::GoSettings_RenamedServicesEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::GoSettings* +Arena::CreateMaybeMessage< ::google::api::GoSettings >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::GoSettings >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::MethodSettings_LongRunning* +Arena::CreateMaybeMessage< ::google::api::MethodSettings_LongRunning >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::MethodSettings_LongRunning >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::MethodSettings* +Arena::CreateMaybeMessage< ::google::api::MethodSettings >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::MethodSettings >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::SelectiveGapicGeneration* +Arena::CreateMaybeMessage< ::google::api::SelectiveGapicGeneration >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::SelectiveGapicGeneration >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/google/api/client.pb.h b/src/viam/api/google/api/client.pb.h index 4047d1037..3cd28f8d1 100644 --- a/src/viam/api/google/api/client.pb.h +++ b/src/viam/api/google/api/client.pb.h @@ -1,67 +1,56 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/client.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fclient_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fclient_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fclient_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fclient_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/map.h" // IWYU pragma: export -#include "google/protobuf/map_entry.h" -#include "google/protobuf/map_field_inl.h" -#include "google/protobuf/generated_enum_reflection.h" -#include "google/protobuf/unknown_field_set.h" + +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include +#include #include "google/api/launch_stage.pb.h" -#include "google/protobuf/descriptor.pb.h" -#include "google/protobuf/duration.pb.h" +#include +#include // @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - +#include #define PROTOBUF_INTERNAL_EXPORT_google_2fapi_2fclient_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_google_2fapi_2fclient_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_google_2fapi_2fclient_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fapi_2fclient_2eproto; namespace google { namespace api { class ClientLibrarySettings; @@ -85,6 +74,9 @@ extern DotnetSettings_RenamedServicesEntry_DoNotUseDefaultTypeInternal _DotnetSe class GoSettings; struct GoSettingsDefaultTypeInternal; extern GoSettingsDefaultTypeInternal _GoSettings_default_instance_; +class GoSettings_RenamedServicesEntry_DoNotUse; +struct GoSettings_RenamedServicesEntry_DoNotUseDefaultTypeInternal; +extern GoSettings_RenamedServicesEntry_DoNotUseDefaultTypeInternal _GoSettings_RenamedServicesEntry_DoNotUse_default_instance_; class JavaSettings; struct JavaSettingsDefaultTypeInternal; extern JavaSettingsDefaultTypeInternal _JavaSettings_default_instance_; @@ -119,12 +111,31 @@ class SelectiveGapicGeneration; struct SelectiveGapicGenerationDefaultTypeInternal; extern SelectiveGapicGenerationDefaultTypeInternal _SelectiveGapicGeneration_default_instance_; } // namespace api -namespace protobuf { -} // namespace protobuf } // namespace google - +PROTOBUF_NAMESPACE_OPEN +template<> ::google::api::ClientLibrarySettings* Arena::CreateMaybeMessage<::google::api::ClientLibrarySettings>(Arena*); +template<> ::google::api::CommonLanguageSettings* Arena::CreateMaybeMessage<::google::api::CommonLanguageSettings>(Arena*); +template<> ::google::api::CppSettings* Arena::CreateMaybeMessage<::google::api::CppSettings>(Arena*); +template<> ::google::api::DotnetSettings* Arena::CreateMaybeMessage<::google::api::DotnetSettings>(Arena*); +template<> ::google::api::DotnetSettings_RenamedResourcesEntry_DoNotUse* Arena::CreateMaybeMessage<::google::api::DotnetSettings_RenamedResourcesEntry_DoNotUse>(Arena*); +template<> ::google::api::DotnetSettings_RenamedServicesEntry_DoNotUse* Arena::CreateMaybeMessage<::google::api::DotnetSettings_RenamedServicesEntry_DoNotUse>(Arena*); +template<> ::google::api::GoSettings* Arena::CreateMaybeMessage<::google::api::GoSettings>(Arena*); +template<> ::google::api::GoSettings_RenamedServicesEntry_DoNotUse* Arena::CreateMaybeMessage<::google::api::GoSettings_RenamedServicesEntry_DoNotUse>(Arena*); +template<> ::google::api::JavaSettings* Arena::CreateMaybeMessage<::google::api::JavaSettings>(Arena*); +template<> ::google::api::JavaSettings_ServiceClassNamesEntry_DoNotUse* Arena::CreateMaybeMessage<::google::api::JavaSettings_ServiceClassNamesEntry_DoNotUse>(Arena*); +template<> ::google::api::MethodSettings* Arena::CreateMaybeMessage<::google::api::MethodSettings>(Arena*); +template<> ::google::api::MethodSettings_LongRunning* Arena::CreateMaybeMessage<::google::api::MethodSettings_LongRunning>(Arena*); +template<> ::google::api::NodeSettings* Arena::CreateMaybeMessage<::google::api::NodeSettings>(Arena*); +template<> ::google::api::PhpSettings* Arena::CreateMaybeMessage<::google::api::PhpSettings>(Arena*); +template<> ::google::api::Publishing* Arena::CreateMaybeMessage<::google::api::Publishing>(Arena*); +template<> ::google::api::PythonSettings* Arena::CreateMaybeMessage<::google::api::PythonSettings>(Arena*); +template<> ::google::api::PythonSettings_ExperimentalFeatures* Arena::CreateMaybeMessage<::google::api::PythonSettings_ExperimentalFeatures>(Arena*); +template<> ::google::api::RubySettings* Arena::CreateMaybeMessage<::google::api::RubySettings>(Arena*); +template<> ::google::api::SelectiveGapicGeneration* Arena::CreateMaybeMessage<::google::api::SelectiveGapicGeneration>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace google { namespace api { + enum ClientLibraryOrganization : int { CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0, CLOUD = 1, @@ -134,94 +145,78 @@ enum ClientLibraryOrganization : int { SHOPPING = 5, GEO = 6, GENERATIVE_AI = 7, - ClientLibraryOrganization_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - ClientLibraryOrganization_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), + ClientLibraryOrganization_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + ClientLibraryOrganization_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() }; - bool ClientLibraryOrganization_IsValid(int value); -extern const uint32_t ClientLibraryOrganization_internal_data_[]; -constexpr ClientLibraryOrganization ClientLibraryOrganization_MIN = static_cast(0); -constexpr ClientLibraryOrganization ClientLibraryOrganization_MAX = static_cast(7); -constexpr int ClientLibraryOrganization_ARRAYSIZE = 7 + 1; -const ::google::protobuf::EnumDescriptor* -ClientLibraryOrganization_descriptor(); -template -const std::string& ClientLibraryOrganization_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to ClientLibraryOrganization_Name()."); - return ClientLibraryOrganization_Name(static_cast(value)); -} -template <> -inline const std::string& ClientLibraryOrganization_Name(ClientLibraryOrganization value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool ClientLibraryOrganization_Parse(absl::string_view name, ClientLibraryOrganization* value) { - return ::google::protobuf::internal::ParseNamedEnum( - ClientLibraryOrganization_descriptor(), name, value); +constexpr ClientLibraryOrganization ClientLibraryOrganization_MIN = CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED; +constexpr ClientLibraryOrganization ClientLibraryOrganization_MAX = GENERATIVE_AI; +constexpr int ClientLibraryOrganization_ARRAYSIZE = ClientLibraryOrganization_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ClientLibraryOrganization_descriptor(); +template +inline const std::string& ClientLibraryOrganization_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function ClientLibraryOrganization_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + ClientLibraryOrganization_descriptor(), enum_t_value); +} +inline bool ClientLibraryOrganization_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ClientLibraryOrganization* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + ClientLibraryOrganization_descriptor(), name, value); } enum ClientLibraryDestination : int { CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0, GITHUB = 10, PACKAGE_MANAGER = 20, - ClientLibraryDestination_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - ClientLibraryDestination_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), + ClientLibraryDestination_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + ClientLibraryDestination_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() }; - bool ClientLibraryDestination_IsValid(int value); -extern const uint32_t ClientLibraryDestination_internal_data_[]; -constexpr ClientLibraryDestination ClientLibraryDestination_MIN = static_cast(0); -constexpr ClientLibraryDestination ClientLibraryDestination_MAX = static_cast(20); -constexpr int ClientLibraryDestination_ARRAYSIZE = 20 + 1; -const ::google::protobuf::EnumDescriptor* -ClientLibraryDestination_descriptor(); -template -const std::string& ClientLibraryDestination_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to ClientLibraryDestination_Name()."); - return ::google::protobuf::internal::NameOfEnum(ClientLibraryDestination_descriptor(), value); -} -inline bool ClientLibraryDestination_Parse(absl::string_view name, ClientLibraryDestination* value) { - return ::google::protobuf::internal::ParseNamedEnum( - ClientLibraryDestination_descriptor(), name, value); +constexpr ClientLibraryDestination ClientLibraryDestination_MIN = CLIENT_LIBRARY_DESTINATION_UNSPECIFIED; +constexpr ClientLibraryDestination ClientLibraryDestination_MAX = PACKAGE_MANAGER; +constexpr int ClientLibraryDestination_ARRAYSIZE = ClientLibraryDestination_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ClientLibraryDestination_descriptor(); +template +inline const std::string& ClientLibraryDestination_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function ClientLibraryDestination_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + ClientLibraryDestination_descriptor(), enum_t_value); +} +inline bool ClientLibraryDestination_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ClientLibraryDestination* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + ClientLibraryDestination_descriptor(), name, value); } - // =================================================================== - -// ------------------------------------------------------------------- - -class SelectiveGapicGeneration final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.SelectiveGapicGeneration) */ { +class CommonLanguageSettings final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.CommonLanguageSettings) */ { public: - inline SelectiveGapicGeneration() : SelectiveGapicGeneration(nullptr) {} - ~SelectiveGapicGeneration() override; - template - explicit PROTOBUF_CONSTEXPR SelectiveGapicGeneration(::google::protobuf::internal::ConstantInitialized); + inline CommonLanguageSettings() : CommonLanguageSettings(nullptr) {} + ~CommonLanguageSettings() override; + explicit PROTOBUF_CONSTEXPR CommonLanguageSettings(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline SelectiveGapicGeneration(const SelectiveGapicGeneration& from) - : SelectiveGapicGeneration(nullptr, from) {} - SelectiveGapicGeneration(SelectiveGapicGeneration&& from) noexcept - : SelectiveGapicGeneration() { + CommonLanguageSettings(const CommonLanguageSettings& from); + CommonLanguageSettings(CommonLanguageSettings&& from) noexcept + : CommonLanguageSettings() { *this = ::std::move(from); } - inline SelectiveGapicGeneration& operator=(const SelectiveGapicGeneration& from) { + inline CommonLanguageSettings& operator=(const CommonLanguageSettings& from) { CopyFrom(from); return *this; } - inline SelectiveGapicGeneration& operator=(SelectiveGapicGeneration&& from) noexcept { + inline CommonLanguageSettings& operator=(CommonLanguageSettings&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -231,190 +226,185 @@ class SelectiveGapicGeneration final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SelectiveGapicGeneration& default_instance() { + static const CommonLanguageSettings& default_instance() { return *internal_default_instance(); } - static inline const SelectiveGapicGeneration* internal_default_instance() { - return reinterpret_cast( - &_SelectiveGapicGeneration_default_instance_); + static inline const CommonLanguageSettings* internal_default_instance() { + return reinterpret_cast( + &_CommonLanguageSettings_default_instance_); } static constexpr int kIndexInFileMessages = - 17; + 0; - friend void swap(SelectiveGapicGeneration& a, SelectiveGapicGeneration& b) { + friend void swap(CommonLanguageSettings& a, CommonLanguageSettings& b) { a.Swap(&b); } - inline void Swap(SelectiveGapicGeneration* other) { + inline void Swap(CommonLanguageSettings* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SelectiveGapicGeneration* other) { + void UnsafeArenaSwap(CommonLanguageSettings* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SelectiveGapicGeneration* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SelectiveGapicGeneration& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SelectiveGapicGeneration& from) { - SelectiveGapicGeneration::MergeImpl(*this, from); + CommonLanguageSettings* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CommonLanguageSettings& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CommonLanguageSettings& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(SelectiveGapicGeneration* other); + void SetCachedSize(int size) const final; + void InternalSwap(CommonLanguageSettings* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.SelectiveGapicGeneration"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.CommonLanguageSettings"; } protected: - explicit SelectiveGapicGeneration(::google::protobuf::Arena* arena); - SelectiveGapicGeneration(::google::protobuf::Arena* arena, const SelectiveGapicGeneration& from); + explicit CommonLanguageSettings(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kMethodsFieldNumber = 1, + kDestinationsFieldNumber = 2, + kReferenceDocsUriFieldNumber = 1, + kSelectiveGapicGenerationFieldNumber = 3, }; - // repeated string methods = 1 [json_name = "methods"]; - int methods_size() const; + // repeated .google.api.ClientLibraryDestination destinations = 2 [json_name = "destinations"]; + int destinations_size() const; private: - int _internal_methods_size() const; - + int _internal_destinations_size() const; public: - void clear_methods() ; - const std::string& methods(int index) const; - std::string* mutable_methods(int index); - void set_methods(int index, const std::string& value); - void set_methods(int index, std::string&& value); - void set_methods(int index, const char* value); - void set_methods(int index, const char* value, std::size_t size); - void set_methods(int index, absl::string_view value); - std::string* add_methods(); - void add_methods(const std::string& value); - void add_methods(std::string&& value); - void add_methods(const char* value); - void add_methods(const char* value, std::size_t size); - void add_methods(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& methods() const; - ::google::protobuf::RepeatedPtrField* mutable_methods(); + void clear_destinations(); + private: + ::google::api::ClientLibraryDestination _internal_destinations(int index) const; + void _internal_add_destinations(::google::api::ClientLibraryDestination value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField* _internal_mutable_destinations(); + public: + ::google::api::ClientLibraryDestination destinations(int index) const; + void set_destinations(int index, ::google::api::ClientLibraryDestination value); + void add_destinations(::google::api::ClientLibraryDestination value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField& destinations() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField* mutable_destinations(); + // string reference_docs_uri = 1 [json_name = "referenceDocsUri", deprecated = true]; + PROTOBUF_DEPRECATED void clear_reference_docs_uri(); + PROTOBUF_DEPRECATED const std::string& reference_docs_uri() const; + template + PROTOBUF_DEPRECATED void set_reference_docs_uri(ArgT0&& arg0, ArgT... args); + PROTOBUF_DEPRECATED std::string* mutable_reference_docs_uri(); + PROTOBUF_NODISCARD PROTOBUF_DEPRECATED std::string* release_reference_docs_uri(); + PROTOBUF_DEPRECATED void set_allocated_reference_docs_uri(std::string* reference_docs_uri); private: - const ::google::protobuf::RepeatedPtrField& _internal_methods() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_methods(); + const std::string& _internal_reference_docs_uri() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_reference_docs_uri(const std::string& value); + std::string* _internal_mutable_reference_docs_uri(); + public: + // .google.api.SelectiveGapicGeneration selective_gapic_generation = 3 [json_name = "selectiveGapicGeneration"]; + bool has_selective_gapic_generation() const; + private: + bool _internal_has_selective_gapic_generation() const; public: - // @@protoc_insertion_point(class_scope:google.api.SelectiveGapicGeneration) + void clear_selective_gapic_generation(); + const ::google::api::SelectiveGapicGeneration& selective_gapic_generation() const; + PROTOBUF_NODISCARD ::google::api::SelectiveGapicGeneration* release_selective_gapic_generation(); + ::google::api::SelectiveGapicGeneration* mutable_selective_gapic_generation(); + void set_allocated_selective_gapic_generation(::google::api::SelectiveGapicGeneration* selective_gapic_generation); + private: + const ::google::api::SelectiveGapicGeneration& _internal_selective_gapic_generation() const; + ::google::api::SelectiveGapicGeneration* _internal_mutable_selective_gapic_generation(); + public: + void unsafe_arena_set_allocated_selective_gapic_generation( + ::google::api::SelectiveGapicGeneration* selective_gapic_generation); + ::google::api::SelectiveGapicGeneration* unsafe_arena_release_selective_gapic_generation(); + + // @@protoc_insertion_point(class_scope:google.api.CommonLanguageSettings) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 51, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField methods_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField destinations_; + mutable std::atomic _destinations_cached_byte_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr reference_docs_uri_; + ::google::api::SelectiveGapicGeneration* selective_gapic_generation_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fclient_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class PythonSettings_ExperimentalFeatures final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.PythonSettings.ExperimentalFeatures) */ { +class ClientLibrarySettings final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.ClientLibrarySettings) */ { public: - inline PythonSettings_ExperimentalFeatures() : PythonSettings_ExperimentalFeatures(nullptr) {} - ~PythonSettings_ExperimentalFeatures() override; - template - explicit PROTOBUF_CONSTEXPR PythonSettings_ExperimentalFeatures(::google::protobuf::internal::ConstantInitialized); + inline ClientLibrarySettings() : ClientLibrarySettings(nullptr) {} + ~ClientLibrarySettings() override; + explicit PROTOBUF_CONSTEXPR ClientLibrarySettings(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline PythonSettings_ExperimentalFeatures(const PythonSettings_ExperimentalFeatures& from) - : PythonSettings_ExperimentalFeatures(nullptr, from) {} - PythonSettings_ExperimentalFeatures(PythonSettings_ExperimentalFeatures&& from) noexcept - : PythonSettings_ExperimentalFeatures() { + ClientLibrarySettings(const ClientLibrarySettings& from); + ClientLibrarySettings(ClientLibrarySettings&& from) noexcept + : ClientLibrarySettings() { *this = ::std::move(from); } - inline PythonSettings_ExperimentalFeatures& operator=(const PythonSettings_ExperimentalFeatures& from) { + inline ClientLibrarySettings& operator=(const ClientLibrarySettings& from) { CopyFrom(from); return *this; } - inline PythonSettings_ExperimentalFeatures& operator=(PythonSettings_ExperimentalFeatures&& from) noexcept { + inline ClientLibrarySettings& operator=(ClientLibrarySettings&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -424,501 +414,327 @@ class PythonSettings_ExperimentalFeatures final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const PythonSettings_ExperimentalFeatures& default_instance() { + static const ClientLibrarySettings& default_instance() { return *internal_default_instance(); } - static inline const PythonSettings_ExperimentalFeatures* internal_default_instance() { - return reinterpret_cast( - &_PythonSettings_ExperimentalFeatures_default_instance_); + static inline const ClientLibrarySettings* internal_default_instance() { + return reinterpret_cast( + &_ClientLibrarySettings_default_instance_); } static constexpr int kIndexInFileMessages = - 7; + 1; - friend void swap(PythonSettings_ExperimentalFeatures& a, PythonSettings_ExperimentalFeatures& b) { + friend void swap(ClientLibrarySettings& a, ClientLibrarySettings& b) { a.Swap(&b); } - inline void Swap(PythonSettings_ExperimentalFeatures* other) { + inline void Swap(ClientLibrarySettings* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(PythonSettings_ExperimentalFeatures* other) { + void UnsafeArenaSwap(ClientLibrarySettings* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - PythonSettings_ExperimentalFeatures* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const PythonSettings_ExperimentalFeatures& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const PythonSettings_ExperimentalFeatures& from) { - PythonSettings_ExperimentalFeatures::MergeImpl(*this, from); + ClientLibrarySettings* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ClientLibrarySettings& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ClientLibrarySettings& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(PythonSettings_ExperimentalFeatures* other); + void SetCachedSize(int size) const final; + void InternalSwap(ClientLibrarySettings* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.PythonSettings.ExperimentalFeatures"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.ClientLibrarySettings"; } protected: - explicit PythonSettings_ExperimentalFeatures(::google::protobuf::Arena* arena); - PythonSettings_ExperimentalFeatures(::google::protobuf::Arena* arena, const PythonSettings_ExperimentalFeatures& from); + explicit ClientLibrarySettings(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kRestAsyncIoEnabledFieldNumber = 1, - kProtobufPythonicTypesEnabledFieldNumber = 2, + kVersionFieldNumber = 1, + kJavaSettingsFieldNumber = 21, + kCppSettingsFieldNumber = 22, + kPhpSettingsFieldNumber = 23, + kPythonSettingsFieldNumber = 24, + kNodeSettingsFieldNumber = 25, + kDotnetSettingsFieldNumber = 26, + kRubySettingsFieldNumber = 27, + kGoSettingsFieldNumber = 28, + kLaunchStageFieldNumber = 2, + kRestNumericEnumsFieldNumber = 3, }; - // bool rest_async_io_enabled = 1 [json_name = "restAsyncIoEnabled"]; - void clear_rest_async_io_enabled() ; - bool rest_async_io_enabled() const; - void set_rest_async_io_enabled(bool value); - + // string version = 1 [json_name = "version"]; + void clear_version(); + const std::string& version() const; + template + void set_version(ArgT0&& arg0, ArgT... args); + std::string* mutable_version(); + PROTOBUF_NODISCARD std::string* release_version(); + void set_allocated_version(std::string* version); private: - bool _internal_rest_async_io_enabled() const; - void _internal_set_rest_async_io_enabled(bool value); + const std::string& _internal_version() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_version(const std::string& value); + std::string* _internal_mutable_version(); + public: + // .google.api.JavaSettings java_settings = 21 [json_name = "javaSettings"]; + bool has_java_settings() const; + private: + bool _internal_has_java_settings() const; public: - // bool protobuf_pythonic_types_enabled = 2 [json_name = "protobufPythonicTypesEnabled"]; - void clear_protobuf_pythonic_types_enabled() ; - bool protobuf_pythonic_types_enabled() const; - void set_protobuf_pythonic_types_enabled(bool value); + void clear_java_settings(); + const ::google::api::JavaSettings& java_settings() const; + PROTOBUF_NODISCARD ::google::api::JavaSettings* release_java_settings(); + ::google::api::JavaSettings* mutable_java_settings(); + void set_allocated_java_settings(::google::api::JavaSettings* java_settings); + private: + const ::google::api::JavaSettings& _internal_java_settings() const; + ::google::api::JavaSettings* _internal_mutable_java_settings(); + public: + void unsafe_arena_set_allocated_java_settings( + ::google::api::JavaSettings* java_settings); + ::google::api::JavaSettings* unsafe_arena_release_java_settings(); + // .google.api.CppSettings cpp_settings = 22 [json_name = "cppSettings"]; + bool has_cpp_settings() const; private: - bool _internal_protobuf_pythonic_types_enabled() const; - void _internal_set_protobuf_pythonic_types_enabled(bool value); + bool _internal_has_cpp_settings() const; + public: + void clear_cpp_settings(); + const ::google::api::CppSettings& cpp_settings() const; + PROTOBUF_NODISCARD ::google::api::CppSettings* release_cpp_settings(); + ::google::api::CppSettings* mutable_cpp_settings(); + void set_allocated_cpp_settings(::google::api::CppSettings* cpp_settings); + private: + const ::google::api::CppSettings& _internal_cpp_settings() const; + ::google::api::CppSettings* _internal_mutable_cpp_settings(); + public: + void unsafe_arena_set_allocated_cpp_settings( + ::google::api::CppSettings* cpp_settings); + ::google::api::CppSettings* unsafe_arena_release_cpp_settings(); + // .google.api.PhpSettings php_settings = 23 [json_name = "phpSettings"]; + bool has_php_settings() const; + private: + bool _internal_has_php_settings() const; public: - // @@protoc_insertion_point(class_scope:google.api.PythonSettings.ExperimentalFeatures) - private: - class _Internal; + void clear_php_settings(); + const ::google::api::PhpSettings& php_settings() const; + PROTOBUF_NODISCARD ::google::api::PhpSettings* release_php_settings(); + ::google::api::PhpSettings* mutable_php_settings(); + void set_allocated_php_settings(::google::api::PhpSettings* php_settings); + private: + const ::google::api::PhpSettings& _internal_php_settings() const; + ::google::api::PhpSettings* _internal_mutable_php_settings(); + public: + void unsafe_arena_set_allocated_php_settings( + ::google::api::PhpSettings* php_settings); + ::google::api::PhpSettings* unsafe_arena_release_php_settings(); - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - bool rest_async_io_enabled_; - bool protobuf_pythonic_types_enabled_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_google_2fapi_2fclient_2eproto; -};// ------------------------------------------------------------------- + // .google.api.PythonSettings python_settings = 24 [json_name = "pythonSettings"]; + bool has_python_settings() const; + private: + bool _internal_has_python_settings() const; + public: + void clear_python_settings(); + const ::google::api::PythonSettings& python_settings() const; + PROTOBUF_NODISCARD ::google::api::PythonSettings* release_python_settings(); + ::google::api::PythonSettings* mutable_python_settings(); + void set_allocated_python_settings(::google::api::PythonSettings* python_settings); + private: + const ::google::api::PythonSettings& _internal_python_settings() const; + ::google::api::PythonSettings* _internal_mutable_python_settings(); + public: + void unsafe_arena_set_allocated_python_settings( + ::google::api::PythonSettings* python_settings); + ::google::api::PythonSettings* unsafe_arena_release_python_settings(); -class JavaSettings_ServiceClassNamesEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry< - JavaSettings_ServiceClassNamesEntry_DoNotUse, std::string, std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING> { - public: - using SuperType = ::google::protobuf::internal::MapEntry< - JavaSettings_ServiceClassNamesEntry_DoNotUse, std::string, std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING>; - JavaSettings_ServiceClassNamesEntry_DoNotUse(); - template - explicit PROTOBUF_CONSTEXPR JavaSettings_ServiceClassNamesEntry_DoNotUse( - ::google::protobuf::internal::ConstantInitialized); - explicit JavaSettings_ServiceClassNamesEntry_DoNotUse(::google::protobuf::Arena* arena); - static const JavaSettings_ServiceClassNamesEntry_DoNotUse* internal_default_instance() { - return reinterpret_cast( - &_JavaSettings_ServiceClassNamesEntry_DoNotUse_default_instance_); - } - static bool ValidateKey(std::string* s) { - return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "google.api.JavaSettings.ServiceClassNamesEntry.key"); - } - static bool ValidateValue(std::string* s) { - return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "google.api.JavaSettings.ServiceClassNamesEntry.value"); - } - ::google::protobuf::Metadata GetMetadata() const final; - friend struct ::TableStruct_google_2fapi_2fclient_2eproto; -}; -// ------------------------------------------------------------------- + // .google.api.NodeSettings node_settings = 25 [json_name = "nodeSettings"]; + bool has_node_settings() const; + private: + bool _internal_has_node_settings() const; + public: + void clear_node_settings(); + const ::google::api::NodeSettings& node_settings() const; + PROTOBUF_NODISCARD ::google::api::NodeSettings* release_node_settings(); + ::google::api::NodeSettings* mutable_node_settings(); + void set_allocated_node_settings(::google::api::NodeSettings* node_settings); + private: + const ::google::api::NodeSettings& _internal_node_settings() const; + ::google::api::NodeSettings* _internal_mutable_node_settings(); + public: + void unsafe_arena_set_allocated_node_settings( + ::google::api::NodeSettings* node_settings); + ::google::api::NodeSettings* unsafe_arena_release_node_settings(); -class DotnetSettings_RenamedServicesEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry< - DotnetSettings_RenamedServicesEntry_DoNotUse, std::string, std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING> { - public: - using SuperType = ::google::protobuf::internal::MapEntry< - DotnetSettings_RenamedServicesEntry_DoNotUse, std::string, std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING>; - DotnetSettings_RenamedServicesEntry_DoNotUse(); - template - explicit PROTOBUF_CONSTEXPR DotnetSettings_RenamedServicesEntry_DoNotUse( - ::google::protobuf::internal::ConstantInitialized); - explicit DotnetSettings_RenamedServicesEntry_DoNotUse(::google::protobuf::Arena* arena); - static const DotnetSettings_RenamedServicesEntry_DoNotUse* internal_default_instance() { - return reinterpret_cast( - &_DotnetSettings_RenamedServicesEntry_DoNotUse_default_instance_); - } - static bool ValidateKey(std::string* s) { - return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "google.api.DotnetSettings.RenamedServicesEntry.key"); - } - static bool ValidateValue(std::string* s) { - return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "google.api.DotnetSettings.RenamedServicesEntry.value"); - } - ::google::protobuf::Metadata GetMetadata() const final; - friend struct ::TableStruct_google_2fapi_2fclient_2eproto; -}; -// ------------------------------------------------------------------- - -class DotnetSettings_RenamedResourcesEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry< - DotnetSettings_RenamedResourcesEntry_DoNotUse, std::string, std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING> { - public: - using SuperType = ::google::protobuf::internal::MapEntry< - DotnetSettings_RenamedResourcesEntry_DoNotUse, std::string, std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING>; - DotnetSettings_RenamedResourcesEntry_DoNotUse(); - template - explicit PROTOBUF_CONSTEXPR DotnetSettings_RenamedResourcesEntry_DoNotUse( - ::google::protobuf::internal::ConstantInitialized); - explicit DotnetSettings_RenamedResourcesEntry_DoNotUse(::google::protobuf::Arena* arena); - static const DotnetSettings_RenamedResourcesEntry_DoNotUse* internal_default_instance() { - return reinterpret_cast( - &_DotnetSettings_RenamedResourcesEntry_DoNotUse_default_instance_); - } - static bool ValidateKey(std::string* s) { - return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "google.api.DotnetSettings.RenamedResourcesEntry.key"); - } - static bool ValidateValue(std::string* s) { - return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "google.api.DotnetSettings.RenamedResourcesEntry.value"); - } - ::google::protobuf::Metadata GetMetadata() const final; - friend struct ::TableStruct_google_2fapi_2fclient_2eproto; -}; -// ------------------------------------------------------------------- - -class MethodSettings_LongRunning final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.MethodSettings.LongRunning) */ { - public: - inline MethodSettings_LongRunning() : MethodSettings_LongRunning(nullptr) {} - ~MethodSettings_LongRunning() override; - template - explicit PROTOBUF_CONSTEXPR MethodSettings_LongRunning(::google::protobuf::internal::ConstantInitialized); - - inline MethodSettings_LongRunning(const MethodSettings_LongRunning& from) - : MethodSettings_LongRunning(nullptr, from) {} - MethodSettings_LongRunning(MethodSettings_LongRunning&& from) noexcept - : MethodSettings_LongRunning() { - *this = ::std::move(from); - } - - inline MethodSettings_LongRunning& operator=(const MethodSettings_LongRunning& from) { - CopyFrom(from); - return *this; - } - inline MethodSettings_LongRunning& operator=(MethodSettings_LongRunning&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const MethodSettings_LongRunning& default_instance() { - return *internal_default_instance(); - } - static inline const MethodSettings_LongRunning* internal_default_instance() { - return reinterpret_cast( - &_MethodSettings_LongRunning_default_instance_); - } - static constexpr int kIndexInFileMessages = - 15; - - friend void swap(MethodSettings_LongRunning& a, MethodSettings_LongRunning& b) { - a.Swap(&b); - } - inline void Swap(MethodSettings_LongRunning* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(MethodSettings_LongRunning* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - MethodSettings_LongRunning* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const MethodSettings_LongRunning& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const MethodSettings_LongRunning& from) { - MethodSettings_LongRunning::MergeImpl(*this, from); - } + // .google.api.DotnetSettings dotnet_settings = 26 [json_name = "dotnetSettings"]; + bool has_dotnet_settings() const; private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + bool _internal_has_dotnet_settings() const; public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - + void clear_dotnet_settings(); + const ::google::api::DotnetSettings& dotnet_settings() const; + PROTOBUF_NODISCARD ::google::api::DotnetSettings* release_dotnet_settings(); + ::google::api::DotnetSettings* mutable_dotnet_settings(); + void set_allocated_dotnet_settings(::google::api::DotnetSettings* dotnet_settings); private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(MethodSettings_LongRunning* other); + const ::google::api::DotnetSettings& _internal_dotnet_settings() const; + ::google::api::DotnetSettings* _internal_mutable_dotnet_settings(); + public: + void unsafe_arena_set_allocated_dotnet_settings( + ::google::api::DotnetSettings* dotnet_settings); + ::google::api::DotnetSettings* unsafe_arena_release_dotnet_settings(); + // .google.api.RubySettings ruby_settings = 27 [json_name = "rubySettings"]; + bool has_ruby_settings() const; private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.MethodSettings.LongRunning"; - } - protected: - explicit MethodSettings_LongRunning(::google::protobuf::Arena* arena); - MethodSettings_LongRunning(::google::protobuf::Arena* arena, const MethodSettings_LongRunning& from); + bool _internal_has_ruby_settings() const; public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kInitialPollDelayFieldNumber = 1, - kMaxPollDelayFieldNumber = 3, - kTotalPollTimeoutFieldNumber = 4, - kPollDelayMultiplierFieldNumber = 2, - }; - // .google.protobuf.Duration initial_poll_delay = 1 [json_name = "initialPollDelay"]; - bool has_initial_poll_delay() const; - void clear_initial_poll_delay() ; - const ::google::protobuf::Duration& initial_poll_delay() const; - PROTOBUF_NODISCARD ::google::protobuf::Duration* release_initial_poll_delay(); - ::google::protobuf::Duration* mutable_initial_poll_delay(); - void set_allocated_initial_poll_delay(::google::protobuf::Duration* value); - void unsafe_arena_set_allocated_initial_poll_delay(::google::protobuf::Duration* value); - ::google::protobuf::Duration* unsafe_arena_release_initial_poll_delay(); - + void clear_ruby_settings(); + const ::google::api::RubySettings& ruby_settings() const; + PROTOBUF_NODISCARD ::google::api::RubySettings* release_ruby_settings(); + ::google::api::RubySettings* mutable_ruby_settings(); + void set_allocated_ruby_settings(::google::api::RubySettings* ruby_settings); private: - const ::google::protobuf::Duration& _internal_initial_poll_delay() const; - ::google::protobuf::Duration* _internal_mutable_initial_poll_delay(); - + const ::google::api::RubySettings& _internal_ruby_settings() const; + ::google::api::RubySettings* _internal_mutable_ruby_settings(); public: - // .google.protobuf.Duration max_poll_delay = 3 [json_name = "maxPollDelay"]; - bool has_max_poll_delay() const; - void clear_max_poll_delay() ; - const ::google::protobuf::Duration& max_poll_delay() const; - PROTOBUF_NODISCARD ::google::protobuf::Duration* release_max_poll_delay(); - ::google::protobuf::Duration* mutable_max_poll_delay(); - void set_allocated_max_poll_delay(::google::protobuf::Duration* value); - void unsafe_arena_set_allocated_max_poll_delay(::google::protobuf::Duration* value); - ::google::protobuf::Duration* unsafe_arena_release_max_poll_delay(); + void unsafe_arena_set_allocated_ruby_settings( + ::google::api::RubySettings* ruby_settings); + ::google::api::RubySettings* unsafe_arena_release_ruby_settings(); + // .google.api.GoSettings go_settings = 28 [json_name = "goSettings"]; + bool has_go_settings() const; private: - const ::google::protobuf::Duration& _internal_max_poll_delay() const; - ::google::protobuf::Duration* _internal_mutable_max_poll_delay(); - + bool _internal_has_go_settings() const; public: - // .google.protobuf.Duration total_poll_timeout = 4 [json_name = "totalPollTimeout"]; - bool has_total_poll_timeout() const; - void clear_total_poll_timeout() ; - const ::google::protobuf::Duration& total_poll_timeout() const; - PROTOBUF_NODISCARD ::google::protobuf::Duration* release_total_poll_timeout(); - ::google::protobuf::Duration* mutable_total_poll_timeout(); - void set_allocated_total_poll_timeout(::google::protobuf::Duration* value); - void unsafe_arena_set_allocated_total_poll_timeout(::google::protobuf::Duration* value); - ::google::protobuf::Duration* unsafe_arena_release_total_poll_timeout(); - + void clear_go_settings(); + const ::google::api::GoSettings& go_settings() const; + PROTOBUF_NODISCARD ::google::api::GoSettings* release_go_settings(); + ::google::api::GoSettings* mutable_go_settings(); + void set_allocated_go_settings(::google::api::GoSettings* go_settings); private: - const ::google::protobuf::Duration& _internal_total_poll_timeout() const; - ::google::protobuf::Duration* _internal_mutable_total_poll_timeout(); - + const ::google::api::GoSettings& _internal_go_settings() const; + ::google::api::GoSettings* _internal_mutable_go_settings(); public: - // float poll_delay_multiplier = 2 [json_name = "pollDelayMultiplier"]; - void clear_poll_delay_multiplier() ; - float poll_delay_multiplier() const; - void set_poll_delay_multiplier(float value); + void unsafe_arena_set_allocated_go_settings( + ::google::api::GoSettings* go_settings); + ::google::api::GoSettings* unsafe_arena_release_go_settings(); + // .google.api.LaunchStage launch_stage = 2 [json_name = "launchStage"]; + void clear_launch_stage(); + ::google::api::LaunchStage launch_stage() const; + void set_launch_stage(::google::api::LaunchStage value); private: - float _internal_poll_delay_multiplier() const; - void _internal_set_poll_delay_multiplier(float value); + ::google::api::LaunchStage _internal_launch_stage() const; + void _internal_set_launch_stage(::google::api::LaunchStage value); + public: + // bool rest_numeric_enums = 3 [json_name = "restNumericEnums"]; + void clear_rest_numeric_enums(); + bool rest_numeric_enums() const; + void set_rest_numeric_enums(bool value); + private: + bool _internal_rest_numeric_enums() const; + void _internal_set_rest_numeric_enums(bool value); public: - // @@protoc_insertion_point(class_scope:google.api.MethodSettings.LongRunning) + + // @@protoc_insertion_point(class_scope:google.api.ClientLibrarySettings) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 3, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::Duration* initial_poll_delay_; - ::google::protobuf::Duration* max_poll_delay_; - ::google::protobuf::Duration* total_poll_timeout_; - float poll_delay_multiplier_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr version_; + ::google::api::JavaSettings* java_settings_; + ::google::api::CppSettings* cpp_settings_; + ::google::api::PhpSettings* php_settings_; + ::google::api::PythonSettings* python_settings_; + ::google::api::NodeSettings* node_settings_; + ::google::api::DotnetSettings* dotnet_settings_; + ::google::api::RubySettings* ruby_settings_; + ::google::api::GoSettings* go_settings_; + int launch_stage_; + bool rest_numeric_enums_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fclient_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class CommonLanguageSettings final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.CommonLanguageSettings) */ { +class Publishing final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.Publishing) */ { public: - inline CommonLanguageSettings() : CommonLanguageSettings(nullptr) {} - ~CommonLanguageSettings() override; - template - explicit PROTOBUF_CONSTEXPR CommonLanguageSettings(::google::protobuf::internal::ConstantInitialized); + inline Publishing() : Publishing(nullptr) {} + ~Publishing() override; + explicit PROTOBUF_CONSTEXPR Publishing(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline CommonLanguageSettings(const CommonLanguageSettings& from) - : CommonLanguageSettings(nullptr, from) {} - CommonLanguageSettings(CommonLanguageSettings&& from) noexcept - : CommonLanguageSettings() { + Publishing(const Publishing& from); + Publishing(Publishing&& from) noexcept + : Publishing() { *this = ::std::move(from); } - inline CommonLanguageSettings& operator=(const CommonLanguageSettings& from) { + inline Publishing& operator=(const Publishing& from) { CopyFrom(from); return *this; } - inline CommonLanguageSettings& operator=(CommonLanguageSettings&& from) noexcept { + inline Publishing& operator=(Publishing&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -928,399 +744,346 @@ class CommonLanguageSettings final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CommonLanguageSettings& default_instance() { + static const Publishing& default_instance() { return *internal_default_instance(); } - static inline const CommonLanguageSettings* internal_default_instance() { - return reinterpret_cast( - &_CommonLanguageSettings_default_instance_); + static inline const Publishing* internal_default_instance() { + return reinterpret_cast( + &_Publishing_default_instance_); } static constexpr int kIndexInFileMessages = - 0; + 2; - friend void swap(CommonLanguageSettings& a, CommonLanguageSettings& b) { + friend void swap(Publishing& a, Publishing& b) { a.Swap(&b); } - inline void Swap(CommonLanguageSettings* other) { + inline void Swap(Publishing* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CommonLanguageSettings* other) { + void UnsafeArenaSwap(Publishing* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CommonLanguageSettings* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const CommonLanguageSettings& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CommonLanguageSettings& from) { - CommonLanguageSettings::MergeImpl(*this, from); + Publishing* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Publishing& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Publishing& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(CommonLanguageSettings* other); + void SetCachedSize(int size) const final; + void InternalSwap(Publishing* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.CommonLanguageSettings"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.Publishing"; } protected: - explicit CommonLanguageSettings(::google::protobuf::Arena* arena); - CommonLanguageSettings(::google::protobuf::Arena* arena, const CommonLanguageSettings& from); + explicit Publishing(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kDestinationsFieldNumber = 2, - kReferenceDocsUriFieldNumber = 1, - kSelectiveGapicGenerationFieldNumber = 3, + kMethodSettingsFieldNumber = 2, + kCodeownerGithubTeamsFieldNumber = 105, + kLibrarySettingsFieldNumber = 109, + kNewIssueUriFieldNumber = 101, + kDocumentationUriFieldNumber = 102, + kApiShortNameFieldNumber = 103, + kGithubLabelFieldNumber = 104, + kDocTagPrefixFieldNumber = 106, + kProtoReferenceDocumentationUriFieldNumber = 110, + kRestReferenceDocumentationUriFieldNumber = 111, + kOrganizationFieldNumber = 107, }; - // repeated .google.api.ClientLibraryDestination destinations = 2 [json_name = "destinations"]; - int destinations_size() const; + // repeated .google.api.MethodSettings method_settings = 2 [json_name = "methodSettings"]; + int method_settings_size() const; private: - int _internal_destinations_size() const; - + int _internal_method_settings_size() const; public: - void clear_destinations() ; + void clear_method_settings(); + ::google::api::MethodSettings* mutable_method_settings(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::MethodSettings >* + mutable_method_settings(); + private: + const ::google::api::MethodSettings& _internal_method_settings(int index) const; + ::google::api::MethodSettings* _internal_add_method_settings(); public: - ::google::api::ClientLibraryDestination destinations(int index) const; - void set_destinations(int index, ::google::api::ClientLibraryDestination value); - void add_destinations(::google::api::ClientLibraryDestination value); - const ::google::protobuf::RepeatedField& destinations() const; - ::google::protobuf::RepeatedField* mutable_destinations(); + const ::google::api::MethodSettings& method_settings(int index) const; + ::google::api::MethodSettings* add_method_settings(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::MethodSettings >& + method_settings() const; + // repeated string codeowner_github_teams = 105 [json_name = "codeownerGithubTeams"]; + int codeowner_github_teams_size() const; private: - const ::google::protobuf::RepeatedField& _internal_destinations() const; - ::google::protobuf::RepeatedField* _internal_mutable_destinations(); - + int _internal_codeowner_github_teams_size() const; public: - // string reference_docs_uri = 1 [json_name = "referenceDocsUri", deprecated = true]; - [[deprecated]] void clear_reference_docs_uri() ; - [[deprecated]] const std::string& reference_docs_uri() const; - template - [[deprecated]] void set_reference_docs_uri(Arg_&& arg, Args_... args); - [[deprecated]] std::string* mutable_reference_docs_uri(); - [[deprecated]] PROTOBUF_NODISCARD std::string* release_reference_docs_uri(); - [[deprecated]] void set_allocated_reference_docs_uri(std::string* value); - + void clear_codeowner_github_teams(); + const std::string& codeowner_github_teams(int index) const; + std::string* mutable_codeowner_github_teams(int index); + void set_codeowner_github_teams(int index, const std::string& value); + void set_codeowner_github_teams(int index, std::string&& value); + void set_codeowner_github_teams(int index, const char* value); + void set_codeowner_github_teams(int index, const char* value, size_t size); + std::string* add_codeowner_github_teams(); + void add_codeowner_github_teams(const std::string& value); + void add_codeowner_github_teams(std::string&& value); + void add_codeowner_github_teams(const char* value); + void add_codeowner_github_teams(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& codeowner_github_teams() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_codeowner_github_teams(); private: - const std::string& _internal_reference_docs_uri() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_reference_docs_uri( - const std::string& value); - std::string* _internal_mutable_reference_docs_uri(); - + const std::string& _internal_codeowner_github_teams(int index) const; + std::string* _internal_add_codeowner_github_teams(); public: - // .google.api.SelectiveGapicGeneration selective_gapic_generation = 3 [json_name = "selectiveGapicGeneration"]; - bool has_selective_gapic_generation() const; - void clear_selective_gapic_generation() ; - const ::google::api::SelectiveGapicGeneration& selective_gapic_generation() const; - PROTOBUF_NODISCARD ::google::api::SelectiveGapicGeneration* release_selective_gapic_generation(); - ::google::api::SelectiveGapicGeneration* mutable_selective_gapic_generation(); - void set_allocated_selective_gapic_generation(::google::api::SelectiveGapicGeneration* value); - void unsafe_arena_set_allocated_selective_gapic_generation(::google::api::SelectiveGapicGeneration* value); - ::google::api::SelectiveGapicGeneration* unsafe_arena_release_selective_gapic_generation(); + // repeated .google.api.ClientLibrarySettings library_settings = 109 [json_name = "librarySettings"]; + int library_settings_size() const; private: - const ::google::api::SelectiveGapicGeneration& _internal_selective_gapic_generation() const; - ::google::api::SelectiveGapicGeneration* _internal_mutable_selective_gapic_generation(); - + int _internal_library_settings_size() const; public: - // @@protoc_insertion_point(class_scope:google.api.CommonLanguageSettings) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 1, - 60, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedField destinations_; - mutable ::google::protobuf::internal::CachedSize _destinations_cached_byte_size_; - ::google::protobuf::internal::ArenaStringPtr reference_docs_uri_; - ::google::api::SelectiveGapicGeneration* selective_gapic_generation_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_google_2fapi_2fclient_2eproto; -};// ------------------------------------------------------------------- - -class RubySettings final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.RubySettings) */ { - public: - inline RubySettings() : RubySettings(nullptr) {} - ~RubySettings() override; - template - explicit PROTOBUF_CONSTEXPR RubySettings(::google::protobuf::internal::ConstantInitialized); - - inline RubySettings(const RubySettings& from) - : RubySettings(nullptr, from) {} - RubySettings(RubySettings&& from) noexcept - : RubySettings() { - *this = ::std::move(from); - } - - inline RubySettings& operator=(const RubySettings& from) { - CopyFrom(from); - return *this; - } - inline RubySettings& operator=(RubySettings&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const RubySettings& default_instance() { - return *internal_default_instance(); - } - static inline const RubySettings* internal_default_instance() { - return reinterpret_cast( - &_RubySettings_default_instance_); - } - static constexpr int kIndexInFileMessages = - 13; + void clear_library_settings(); + ::google::api::ClientLibrarySettings* mutable_library_settings(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::ClientLibrarySettings >* + mutable_library_settings(); + private: + const ::google::api::ClientLibrarySettings& _internal_library_settings(int index) const; + ::google::api::ClientLibrarySettings* _internal_add_library_settings(); + public: + const ::google::api::ClientLibrarySettings& library_settings(int index) const; + ::google::api::ClientLibrarySettings* add_library_settings(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::ClientLibrarySettings >& + library_settings() const; - friend void swap(RubySettings& a, RubySettings& b) { - a.Swap(&b); - } - inline void Swap(RubySettings* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(RubySettings* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } + // string new_issue_uri = 101 [json_name = "newIssueUri"]; + void clear_new_issue_uri(); + const std::string& new_issue_uri() const; + template + void set_new_issue_uri(ArgT0&& arg0, ArgT... args); + std::string* mutable_new_issue_uri(); + PROTOBUF_NODISCARD std::string* release_new_issue_uri(); + void set_allocated_new_issue_uri(std::string* new_issue_uri); + private: + const std::string& _internal_new_issue_uri() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_new_issue_uri(const std::string& value); + std::string* _internal_mutable_new_issue_uri(); + public: - // implements Message ---------------------------------------------- + // string documentation_uri = 102 [json_name = "documentationUri"]; + void clear_documentation_uri(); + const std::string& documentation_uri() const; + template + void set_documentation_uri(ArgT0&& arg0, ArgT... args); + std::string* mutable_documentation_uri(); + PROTOBUF_NODISCARD std::string* release_documentation_uri(); + void set_allocated_documentation_uri(std::string* documentation_uri); + private: + const std::string& _internal_documentation_uri() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_documentation_uri(const std::string& value); + std::string* _internal_mutable_documentation_uri(); + public: - RubySettings* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const RubySettings& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const RubySettings& from) { - RubySettings::MergeImpl(*this, from); - } + // string api_short_name = 103 [json_name = "apiShortName"]; + void clear_api_short_name(); + const std::string& api_short_name() const; + template + void set_api_short_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_api_short_name(); + PROTOBUF_NODISCARD std::string* release_api_short_name(); + void set_allocated_api_short_name(std::string* api_short_name); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + const std::string& _internal_api_short_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_api_short_name(const std::string& value); + std::string* _internal_mutable_api_short_name(); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + // string github_label = 104 [json_name = "githubLabel"]; + void clear_github_label(); + const std::string& github_label() const; + template + void set_github_label(ArgT0&& arg0, ArgT... args); + std::string* mutable_github_label(); + PROTOBUF_NODISCARD std::string* release_github_label(); + void set_allocated_github_label(std::string* github_label); + private: + const std::string& _internal_github_label() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_github_label(const std::string& value); + std::string* _internal_mutable_github_label(); + public: + // string doc_tag_prefix = 106 [json_name = "docTagPrefix"]; + void clear_doc_tag_prefix(); + const std::string& doc_tag_prefix() const; + template + void set_doc_tag_prefix(ArgT0&& arg0, ArgT... args); + std::string* mutable_doc_tag_prefix(); + PROTOBUF_NODISCARD std::string* release_doc_tag_prefix(); + void set_allocated_doc_tag_prefix(std::string* doc_tag_prefix); private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(RubySettings* other); + const std::string& _internal_doc_tag_prefix() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_doc_tag_prefix(const std::string& value); + std::string* _internal_mutable_doc_tag_prefix(); + public: + // string proto_reference_documentation_uri = 110 [json_name = "protoReferenceDocumentationUri"]; + void clear_proto_reference_documentation_uri(); + const std::string& proto_reference_documentation_uri() const; + template + void set_proto_reference_documentation_uri(ArgT0&& arg0, ArgT... args); + std::string* mutable_proto_reference_documentation_uri(); + PROTOBUF_NODISCARD std::string* release_proto_reference_documentation_uri(); + void set_allocated_proto_reference_documentation_uri(std::string* proto_reference_documentation_uri); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.RubySettings"; - } - protected: - explicit RubySettings(::google::protobuf::Arena* arena); - RubySettings(::google::protobuf::Arena* arena, const RubySettings& from); + const std::string& _internal_proto_reference_documentation_uri() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_proto_reference_documentation_uri(const std::string& value); + std::string* _internal_mutable_proto_reference_documentation_uri(); public: - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kCommonFieldNumber = 1, - }; - // .google.api.CommonLanguageSettings common = 1 [json_name = "common"]; - bool has_common() const; - void clear_common() ; - const ::google::api::CommonLanguageSettings& common() const; - PROTOBUF_NODISCARD ::google::api::CommonLanguageSettings* release_common(); - ::google::api::CommonLanguageSettings* mutable_common(); - void set_allocated_common(::google::api::CommonLanguageSettings* value); - void unsafe_arena_set_allocated_common(::google::api::CommonLanguageSettings* value); - ::google::api::CommonLanguageSettings* unsafe_arena_release_common(); - + // string rest_reference_documentation_uri = 111 [json_name = "restReferenceDocumentationUri"]; + void clear_rest_reference_documentation_uri(); + const std::string& rest_reference_documentation_uri() const; + template + void set_rest_reference_documentation_uri(ArgT0&& arg0, ArgT... args); + std::string* mutable_rest_reference_documentation_uri(); + PROTOBUF_NODISCARD std::string* release_rest_reference_documentation_uri(); + void set_allocated_rest_reference_documentation_uri(std::string* rest_reference_documentation_uri); private: - const ::google::api::CommonLanguageSettings& _internal_common() const; - ::google::api::CommonLanguageSettings* _internal_mutable_common(); + const std::string& _internal_rest_reference_documentation_uri() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_rest_reference_documentation_uri(const std::string& value); + std::string* _internal_mutable_rest_reference_documentation_uri(); + public: + // .google.api.ClientLibraryOrganization organization = 107 [json_name = "organization"]; + void clear_organization(); + ::google::api::ClientLibraryOrganization organization() const; + void set_organization(::google::api::ClientLibraryOrganization value); + private: + ::google::api::ClientLibraryOrganization _internal_organization() const; + void _internal_set_organization(::google::api::ClientLibraryOrganization value); public: - // @@protoc_insertion_point(class_scope:google.api.RubySettings) + + // @@protoc_insertion_point(class_scope:google.api.Publishing) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::api::CommonLanguageSettings* common_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::MethodSettings > method_settings_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField codeowner_github_teams_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::ClientLibrarySettings > library_settings_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr new_issue_uri_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr documentation_uri_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr api_short_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr github_label_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr doc_tag_prefix_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr proto_reference_documentation_uri_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr rest_reference_documentation_uri_; + int organization_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fclient_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class PythonSettings final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.PythonSettings) */ { +class JavaSettings_ServiceClassNamesEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + JavaSettings_ServiceClassNamesEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR JavaSettings_ServiceClassNamesEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit JavaSettings_ServiceClassNamesEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const JavaSettings_ServiceClassNamesEntry_DoNotUse& other); + static const JavaSettings_ServiceClassNamesEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_JavaSettings_ServiceClassNamesEntry_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, "google.api.JavaSettings.ServiceClassNamesEntry.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, "google.api.JavaSettings.ServiceClassNamesEntry.value"); + } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + friend struct ::TableStruct_google_2fapi_2fclient_2eproto; +}; + +// ------------------------------------------------------------------- + +class JavaSettings final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.JavaSettings) */ { public: - inline PythonSettings() : PythonSettings(nullptr) {} - ~PythonSettings() override; - template - explicit PROTOBUF_CONSTEXPR PythonSettings(::google::protobuf::internal::ConstantInitialized); + inline JavaSettings() : JavaSettings(nullptr) {} + ~JavaSettings() override; + explicit PROTOBUF_CONSTEXPR JavaSettings(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline PythonSettings(const PythonSettings& from) - : PythonSettings(nullptr, from) {} - PythonSettings(PythonSettings&& from) noexcept - : PythonSettings() { + JavaSettings(const JavaSettings& from); + JavaSettings(JavaSettings&& from) noexcept + : JavaSettings() { *this = ::std::move(from); } - inline PythonSettings& operator=(const PythonSettings& from) { + inline JavaSettings& operator=(const JavaSettings& from) { CopyFrom(from); return *this; } - inline PythonSettings& operator=(PythonSettings&& from) noexcept { + inline JavaSettings& operator=(JavaSettings&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1330,197 +1093,191 @@ class PythonSettings final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const PythonSettings& default_instance() { + static const JavaSettings& default_instance() { return *internal_default_instance(); } - static inline const PythonSettings* internal_default_instance() { - return reinterpret_cast( - &_PythonSettings_default_instance_); + static inline const JavaSettings* internal_default_instance() { + return reinterpret_cast( + &_JavaSettings_default_instance_); } static constexpr int kIndexInFileMessages = - 8; + 4; - friend void swap(PythonSettings& a, PythonSettings& b) { + friend void swap(JavaSettings& a, JavaSettings& b) { a.Swap(&b); } - inline void Swap(PythonSettings* other) { + inline void Swap(JavaSettings* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(PythonSettings* other) { + void UnsafeArenaSwap(JavaSettings* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - PythonSettings* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const PythonSettings& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const PythonSettings& from) { - PythonSettings::MergeImpl(*this, from); + JavaSettings* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const JavaSettings& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const JavaSettings& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(PythonSettings* other); + void SetCachedSize(int size) const final; + void InternalSwap(JavaSettings* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.PythonSettings"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.JavaSettings"; } protected: - explicit PythonSettings(::google::protobuf::Arena* arena); - PythonSettings(::google::protobuf::Arena* arena, const PythonSettings& from); + explicit JavaSettings(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- - using ExperimentalFeatures = PythonSettings_ExperimentalFeatures; // accessors ------------------------------------------------------- enum : int { - kCommonFieldNumber = 1, - kExperimentalFeaturesFieldNumber = 2, + kServiceClassNamesFieldNumber = 2, + kLibraryPackageFieldNumber = 1, + kCommonFieldNumber = 3, }; - // .google.api.CommonLanguageSettings common = 1 [json_name = "common"]; + // map service_class_names = 2 [json_name = "serviceClassNames"]; + int service_class_names_size() const; + private: + int _internal_service_class_names_size() const; + public: + void clear_service_class_names(); + private: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + _internal_service_class_names() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + _internal_mutable_service_class_names(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + service_class_names() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + mutable_service_class_names(); + + // string library_package = 1 [json_name = "libraryPackage"]; + void clear_library_package(); + const std::string& library_package() const; + template + void set_library_package(ArgT0&& arg0, ArgT... args); + std::string* mutable_library_package(); + PROTOBUF_NODISCARD std::string* release_library_package(); + void set_allocated_library_package(std::string* library_package); + private: + const std::string& _internal_library_package() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_library_package(const std::string& value); + std::string* _internal_mutable_library_package(); + public: + + // .google.api.CommonLanguageSettings common = 3 [json_name = "common"]; bool has_common() const; - void clear_common() ; + private: + bool _internal_has_common() const; + public: + void clear_common(); const ::google::api::CommonLanguageSettings& common() const; PROTOBUF_NODISCARD ::google::api::CommonLanguageSettings* release_common(); ::google::api::CommonLanguageSettings* mutable_common(); - void set_allocated_common(::google::api::CommonLanguageSettings* value); - void unsafe_arena_set_allocated_common(::google::api::CommonLanguageSettings* value); - ::google::api::CommonLanguageSettings* unsafe_arena_release_common(); - + void set_allocated_common(::google::api::CommonLanguageSettings* common); private: const ::google::api::CommonLanguageSettings& _internal_common() const; ::google::api::CommonLanguageSettings* _internal_mutable_common(); - public: - // .google.api.PythonSettings.ExperimentalFeatures experimental_features = 2 [json_name = "experimentalFeatures"]; - bool has_experimental_features() const; - void clear_experimental_features() ; - const ::google::api::PythonSettings_ExperimentalFeatures& experimental_features() const; - PROTOBUF_NODISCARD ::google::api::PythonSettings_ExperimentalFeatures* release_experimental_features(); - ::google::api::PythonSettings_ExperimentalFeatures* mutable_experimental_features(); - void set_allocated_experimental_features(::google::api::PythonSettings_ExperimentalFeatures* value); - void unsafe_arena_set_allocated_experimental_features(::google::api::PythonSettings_ExperimentalFeatures* value); - ::google::api::PythonSettings_ExperimentalFeatures* unsafe_arena_release_experimental_features(); - - private: - const ::google::api::PythonSettings_ExperimentalFeatures& _internal_experimental_features() const; - ::google::api::PythonSettings_ExperimentalFeatures* _internal_mutable_experimental_features(); + void unsafe_arena_set_allocated_common( + ::google::api::CommonLanguageSettings* common); + ::google::api::CommonLanguageSettings* unsafe_arena_release_common(); - public: - // @@protoc_insertion_point(class_scope:google.api.PythonSettings) + // @@protoc_insertion_point(class_scope:google.api.JavaSettings) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 2, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::api::CommonLanguageSettings* common_; - ::google::api::PythonSettings_ExperimentalFeatures* experimental_features_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + JavaSettings_ServiceClassNamesEntry_DoNotUse, + std::string, std::string, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> service_class_names_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr library_package_; + ::google::api::CommonLanguageSettings* common_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fclient_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class PhpSettings final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.PhpSettings) */ { +class CppSettings final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.CppSettings) */ { public: - inline PhpSettings() : PhpSettings(nullptr) {} - ~PhpSettings() override; - template - explicit PROTOBUF_CONSTEXPR PhpSettings(::google::protobuf::internal::ConstantInitialized); + inline CppSettings() : CppSettings(nullptr) {} + ~CppSettings() override; + explicit PROTOBUF_CONSTEXPR CppSettings(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline PhpSettings(const PhpSettings& from) - : PhpSettings(nullptr, from) {} - PhpSettings(PhpSettings&& from) noexcept - : PhpSettings() { + CppSettings(const CppSettings& from); + CppSettings(CppSettings&& from) noexcept + : CppSettings() { *this = ::std::move(from); } - inline PhpSettings& operator=(const PhpSettings& from) { + inline CppSettings& operator=(const CppSettings& from) { CopyFrom(from); return *this; } - inline PhpSettings& operator=(PhpSettings&& from) noexcept { + inline CppSettings& operator=(CppSettings&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1530,99 +1287,88 @@ class PhpSettings final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const PhpSettings& default_instance() { + static const CppSettings& default_instance() { return *internal_default_instance(); } - static inline const PhpSettings* internal_default_instance() { - return reinterpret_cast( - &_PhpSettings_default_instance_); + static inline const CppSettings* internal_default_instance() { + return reinterpret_cast( + &_CppSettings_default_instance_); } static constexpr int kIndexInFileMessages = - 6; + 5; - friend void swap(PhpSettings& a, PhpSettings& b) { + friend void swap(CppSettings& a, CppSettings& b) { a.Swap(&b); } - inline void Swap(PhpSettings* other) { + inline void Swap(CppSettings* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(PhpSettings* other) { + void UnsafeArenaSwap(CppSettings* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - PhpSettings* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const PhpSettings& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const PhpSettings& from) { - PhpSettings::MergeImpl(*this, from); + CppSettings* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CppSettings& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CppSettings& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(PhpSettings* other); + void SetCachedSize(int size) const final; + void InternalSwap(CppSettings* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.PhpSettings"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.CppSettings"; } protected: - explicit PhpSettings(::google::protobuf::Arena* arena); - PhpSettings(::google::protobuf::Arena* arena, const PhpSettings& from); + explicit CppSettings(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1633,75 +1379,57 @@ class PhpSettings final : }; // .google.api.CommonLanguageSettings common = 1 [json_name = "common"]; bool has_common() const; - void clear_common() ; + private: + bool _internal_has_common() const; + public: + void clear_common(); const ::google::api::CommonLanguageSettings& common() const; PROTOBUF_NODISCARD ::google::api::CommonLanguageSettings* release_common(); ::google::api::CommonLanguageSettings* mutable_common(); - void set_allocated_common(::google::api::CommonLanguageSettings* value); - void unsafe_arena_set_allocated_common(::google::api::CommonLanguageSettings* value); - ::google::api::CommonLanguageSettings* unsafe_arena_release_common(); - + void set_allocated_common(::google::api::CommonLanguageSettings* common); private: const ::google::api::CommonLanguageSettings& _internal_common() const; ::google::api::CommonLanguageSettings* _internal_mutable_common(); - public: - // @@protoc_insertion_point(class_scope:google.api.PhpSettings) + void unsafe_arena_set_allocated_common( + ::google::api::CommonLanguageSettings* common); + ::google::api::CommonLanguageSettings* unsafe_arena_release_common(); + + // @@protoc_insertion_point(class_scope:google.api.CppSettings) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::api::CommonLanguageSettings* common_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::google::api::CommonLanguageSettings* common_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fclient_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class NodeSettings final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.NodeSettings) */ { +class PhpSettings final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.PhpSettings) */ { public: - inline NodeSettings() : NodeSettings(nullptr) {} - ~NodeSettings() override; - template - explicit PROTOBUF_CONSTEXPR NodeSettings(::google::protobuf::internal::ConstantInitialized); + inline PhpSettings() : PhpSettings(nullptr) {} + ~PhpSettings() override; + explicit PROTOBUF_CONSTEXPR PhpSettings(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline NodeSettings(const NodeSettings& from) - : NodeSettings(nullptr, from) {} - NodeSettings(NodeSettings&& from) noexcept - : NodeSettings() { + PhpSettings(const PhpSettings& from); + PhpSettings(PhpSettings&& from) noexcept + : PhpSettings() { *this = ::std::move(from); } - inline NodeSettings& operator=(const NodeSettings& from) { + inline PhpSettings& operator=(const PhpSettings& from) { CopyFrom(from); return *this; } - inline NodeSettings& operator=(NodeSettings&& from) noexcept { + inline PhpSettings& operator=(PhpSettings&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1711,99 +1439,88 @@ class NodeSettings final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const NodeSettings& default_instance() { + static const PhpSettings& default_instance() { return *internal_default_instance(); } - static inline const NodeSettings* internal_default_instance() { - return reinterpret_cast( - &_NodeSettings_default_instance_); + static inline const PhpSettings* internal_default_instance() { + return reinterpret_cast( + &_PhpSettings_default_instance_); } static constexpr int kIndexInFileMessages = - 9; + 6; - friend void swap(NodeSettings& a, NodeSettings& b) { + friend void swap(PhpSettings& a, PhpSettings& b) { a.Swap(&b); } - inline void Swap(NodeSettings* other) { + inline void Swap(PhpSettings* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(NodeSettings* other) { + void UnsafeArenaSwap(PhpSettings* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - NodeSettings* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const NodeSettings& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const NodeSettings& from) { - NodeSettings::MergeImpl(*this, from); + PhpSettings* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const PhpSettings& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const PhpSettings& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(NodeSettings* other); + void SetCachedSize(int size) const final; + void InternalSwap(PhpSettings* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.NodeSettings"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.PhpSettings"; } protected: - explicit NodeSettings(::google::protobuf::Arena* arena); - NodeSettings(::google::protobuf::Arena* arena, const NodeSettings& from); + explicit PhpSettings(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1814,75 +1531,57 @@ class NodeSettings final : }; // .google.api.CommonLanguageSettings common = 1 [json_name = "common"]; bool has_common() const; - void clear_common() ; + private: + bool _internal_has_common() const; + public: + void clear_common(); const ::google::api::CommonLanguageSettings& common() const; PROTOBUF_NODISCARD ::google::api::CommonLanguageSettings* release_common(); ::google::api::CommonLanguageSettings* mutable_common(); - void set_allocated_common(::google::api::CommonLanguageSettings* value); - void unsafe_arena_set_allocated_common(::google::api::CommonLanguageSettings* value); - ::google::api::CommonLanguageSettings* unsafe_arena_release_common(); - + void set_allocated_common(::google::api::CommonLanguageSettings* common); private: const ::google::api::CommonLanguageSettings& _internal_common() const; ::google::api::CommonLanguageSettings* _internal_mutable_common(); - public: - // @@protoc_insertion_point(class_scope:google.api.NodeSettings) + void unsafe_arena_set_allocated_common( + ::google::api::CommonLanguageSettings* common); + ::google::api::CommonLanguageSettings* unsafe_arena_release_common(); + + // @@protoc_insertion_point(class_scope:google.api.PhpSettings) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::api::CommonLanguageSettings* common_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::google::api::CommonLanguageSettings* common_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fclient_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class MethodSettings final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.MethodSettings) */ { +class PythonSettings_ExperimentalFeatures final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.PythonSettings.ExperimentalFeatures) */ { public: - inline MethodSettings() : MethodSettings(nullptr) {} - ~MethodSettings() override; - template - explicit PROTOBUF_CONSTEXPR MethodSettings(::google::protobuf::internal::ConstantInitialized); + inline PythonSettings_ExperimentalFeatures() : PythonSettings_ExperimentalFeatures(nullptr) {} + ~PythonSettings_ExperimentalFeatures() override; + explicit PROTOBUF_CONSTEXPR PythonSettings_ExperimentalFeatures(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline MethodSettings(const MethodSettings& from) - : MethodSettings(nullptr, from) {} - MethodSettings(MethodSettings&& from) noexcept - : MethodSettings() { + PythonSettings_ExperimentalFeatures(const PythonSettings_ExperimentalFeatures& from); + PythonSettings_ExperimentalFeatures(PythonSettings_ExperimentalFeatures&& from) noexcept + : PythonSettings_ExperimentalFeatures() { *this = ::std::move(from); } - inline MethodSettings& operator=(const MethodSettings& from) { + inline PythonSettings_ExperimentalFeatures& operator=(const PythonSettings_ExperimentalFeatures& from) { CopyFrom(from); return *this; } - inline MethodSettings& operator=(MethodSettings&& from) noexcept { + inline PythonSettings_ExperimentalFeatures& operator=(PythonSettings_ExperimentalFeatures&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1892,228 +1591,151 @@ class MethodSettings final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MethodSettings& default_instance() { + static const PythonSettings_ExperimentalFeatures& default_instance() { return *internal_default_instance(); } - static inline const MethodSettings* internal_default_instance() { - return reinterpret_cast( - &_MethodSettings_default_instance_); + static inline const PythonSettings_ExperimentalFeatures* internal_default_instance() { + return reinterpret_cast( + &_PythonSettings_ExperimentalFeatures_default_instance_); } static constexpr int kIndexInFileMessages = - 16; + 7; - friend void swap(MethodSettings& a, MethodSettings& b) { + friend void swap(PythonSettings_ExperimentalFeatures& a, PythonSettings_ExperimentalFeatures& b) { a.Swap(&b); } - inline void Swap(MethodSettings* other) { + inline void Swap(PythonSettings_ExperimentalFeatures* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MethodSettings* other) { + void UnsafeArenaSwap(PythonSettings_ExperimentalFeatures* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MethodSettings* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const MethodSettings& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const MethodSettings& from) { - MethodSettings::MergeImpl(*this, from); + PythonSettings_ExperimentalFeatures* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const PythonSettings_ExperimentalFeatures& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const PythonSettings_ExperimentalFeatures& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(MethodSettings* other); + void SetCachedSize(int size) const final; + void InternalSwap(PythonSettings_ExperimentalFeatures* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.MethodSettings"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.PythonSettings.ExperimentalFeatures"; } protected: - explicit MethodSettings(::google::protobuf::Arena* arena); - MethodSettings(::google::protobuf::Arena* arena, const MethodSettings& from); + explicit PythonSettings_ExperimentalFeatures(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- - using LongRunning = MethodSettings_LongRunning; - // accessors ------------------------------------------------------- enum : int { - kAutoPopulatedFieldsFieldNumber = 3, - kSelectorFieldNumber = 1, - kLongRunningFieldNumber = 2, + kRestAsyncIoEnabledFieldNumber = 1, + kProtobufPythonicTypesEnabledFieldNumber = 2, }; - // repeated string auto_populated_fields = 3 [json_name = "autoPopulatedFields"]; - int auto_populated_fields_size() const; - private: - int _internal_auto_populated_fields_size() const; - - public: - void clear_auto_populated_fields() ; - const std::string& auto_populated_fields(int index) const; - std::string* mutable_auto_populated_fields(int index); - void set_auto_populated_fields(int index, const std::string& value); - void set_auto_populated_fields(int index, std::string&& value); - void set_auto_populated_fields(int index, const char* value); - void set_auto_populated_fields(int index, const char* value, std::size_t size); - void set_auto_populated_fields(int index, absl::string_view value); - std::string* add_auto_populated_fields(); - void add_auto_populated_fields(const std::string& value); - void add_auto_populated_fields(std::string&& value); - void add_auto_populated_fields(const char* value); - void add_auto_populated_fields(const char* value, std::size_t size); - void add_auto_populated_fields(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& auto_populated_fields() const; - ::google::protobuf::RepeatedPtrField* mutable_auto_populated_fields(); - + // bool rest_async_io_enabled = 1 [json_name = "restAsyncIoEnabled"]; + void clear_rest_async_io_enabled(); + bool rest_async_io_enabled() const; + void set_rest_async_io_enabled(bool value); private: - const ::google::protobuf::RepeatedPtrField& _internal_auto_populated_fields() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_auto_populated_fields(); - + bool _internal_rest_async_io_enabled() const; + void _internal_set_rest_async_io_enabled(bool value); public: - // string selector = 1 [json_name = "selector"]; - void clear_selector() ; - const std::string& selector() const; - template - void set_selector(Arg_&& arg, Args_... args); - std::string* mutable_selector(); - PROTOBUF_NODISCARD std::string* release_selector(); - void set_allocated_selector(std::string* value); + // bool protobuf_pythonic_types_enabled = 2 [json_name = "protobufPythonicTypesEnabled"]; + void clear_protobuf_pythonic_types_enabled(); + bool protobuf_pythonic_types_enabled() const; + void set_protobuf_pythonic_types_enabled(bool value); private: - const std::string& _internal_selector() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_selector( - const std::string& value); - std::string* _internal_mutable_selector(); - + bool _internal_protobuf_pythonic_types_enabled() const; + void _internal_set_protobuf_pythonic_types_enabled(bool value); public: - // .google.api.MethodSettings.LongRunning long_running = 2 [json_name = "longRunning"]; - bool has_long_running() const; - void clear_long_running() ; - const ::google::api::MethodSettings_LongRunning& long_running() const; - PROTOBUF_NODISCARD ::google::api::MethodSettings_LongRunning* release_long_running(); - ::google::api::MethodSettings_LongRunning* mutable_long_running(); - void set_allocated_long_running(::google::api::MethodSettings_LongRunning* value); - void unsafe_arena_set_allocated_long_running(::google::api::MethodSettings_LongRunning* value); - ::google::api::MethodSettings_LongRunning* unsafe_arena_release_long_running(); - - private: - const ::google::api::MethodSettings_LongRunning& _internal_long_running() const; - ::google::api::MethodSettings_LongRunning* _internal_mutable_long_running(); - public: - // @@protoc_insertion_point(class_scope:google.api.MethodSettings) + // @@protoc_insertion_point(class_scope:google.api.PythonSettings.ExperimentalFeatures) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 1, - 63, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField auto_populated_fields_; - ::google::protobuf::internal::ArenaStringPtr selector_; - ::google::api::MethodSettings_LongRunning* long_running_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + bool rest_async_io_enabled_; + bool protobuf_pythonic_types_enabled_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fclient_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class JavaSettings final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.JavaSettings) */ { +class PythonSettings final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.PythonSettings) */ { public: - inline JavaSettings() : JavaSettings(nullptr) {} - ~JavaSettings() override; - template - explicit PROTOBUF_CONSTEXPR JavaSettings(::google::protobuf::internal::ConstantInitialized); + inline PythonSettings() : PythonSettings(nullptr) {} + ~PythonSettings() override; + explicit PROTOBUF_CONSTEXPR PythonSettings(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline JavaSettings(const JavaSettings& from) - : JavaSettings(nullptr, from) {} - JavaSettings(JavaSettings&& from) noexcept - : JavaSettings() { + PythonSettings(const PythonSettings& from); + PythonSettings(PythonSettings&& from) noexcept + : PythonSettings() { *this = ::std::move(from); } - inline JavaSettings& operator=(const JavaSettings& from) { + inline PythonSettings& operator=(const PythonSettings& from) { CopyFrom(from); return *this; } - inline JavaSettings& operator=(JavaSettings&& from) noexcept { + inline PythonSettings& operator=(PythonSettings&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2123,217 +1745,171 @@ class JavaSettings final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const JavaSettings& default_instance() { + static const PythonSettings& default_instance() { return *internal_default_instance(); } - static inline const JavaSettings* internal_default_instance() { - return reinterpret_cast( - &_JavaSettings_default_instance_); + static inline const PythonSettings* internal_default_instance() { + return reinterpret_cast( + &_PythonSettings_default_instance_); } static constexpr int kIndexInFileMessages = - 4; + 8; - friend void swap(JavaSettings& a, JavaSettings& b) { + friend void swap(PythonSettings& a, PythonSettings& b) { a.Swap(&b); } - inline void Swap(JavaSettings* other) { + inline void Swap(PythonSettings* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(JavaSettings* other) { + void UnsafeArenaSwap(PythonSettings* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - JavaSettings* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const JavaSettings& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const JavaSettings& from) { - JavaSettings::MergeImpl(*this, from); + PythonSettings* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const PythonSettings& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const PythonSettings& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(JavaSettings* other); + void SetCachedSize(int size) const final; + void InternalSwap(PythonSettings* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.JavaSettings"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.PythonSettings"; } protected: - explicit JavaSettings(::google::protobuf::Arena* arena); - JavaSettings(::google::protobuf::Arena* arena, const JavaSettings& from); + explicit PythonSettings(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- + typedef PythonSettings_ExperimentalFeatures ExperimentalFeatures; // accessors ------------------------------------------------------- enum : int { - kServiceClassNamesFieldNumber = 2, - kLibraryPackageFieldNumber = 1, - kCommonFieldNumber = 3, + kCommonFieldNumber = 1, + kExperimentalFeaturesFieldNumber = 2, }; - // map service_class_names = 2 [json_name = "serviceClassNames"]; - int service_class_names_size() const; - private: - int _internal_service_class_names_size() const; - - public: - void clear_service_class_names() ; - const ::google::protobuf::Map& service_class_names() const; - ::google::protobuf::Map* mutable_service_class_names(); - - private: - const ::google::protobuf::Map& _internal_service_class_names() const; - ::google::protobuf::Map* _internal_mutable_service_class_names(); - - public: - // string library_package = 1 [json_name = "libraryPackage"]; - void clear_library_package() ; - const std::string& library_package() const; - template - void set_library_package(Arg_&& arg, Args_... args); - std::string* mutable_library_package(); - PROTOBUF_NODISCARD std::string* release_library_package(); - void set_allocated_library_package(std::string* value); - + // .google.api.CommonLanguageSettings common = 1 [json_name = "common"]; + bool has_common() const; private: - const std::string& _internal_library_package() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_library_package( - const std::string& value); - std::string* _internal_mutable_library_package(); - + bool _internal_has_common() const; public: - // .google.api.CommonLanguageSettings common = 3 [json_name = "common"]; - bool has_common() const; - void clear_common() ; + void clear_common(); const ::google::api::CommonLanguageSettings& common() const; PROTOBUF_NODISCARD ::google::api::CommonLanguageSettings* release_common(); ::google::api::CommonLanguageSettings* mutable_common(); - void set_allocated_common(::google::api::CommonLanguageSettings* value); - void unsafe_arena_set_allocated_common(::google::api::CommonLanguageSettings* value); - ::google::api::CommonLanguageSettings* unsafe_arena_release_common(); - + void set_allocated_common(::google::api::CommonLanguageSettings* common); private: const ::google::api::CommonLanguageSettings& _internal_common() const; ::google::api::CommonLanguageSettings* _internal_mutable_common(); + public: + void unsafe_arena_set_allocated_common( + ::google::api::CommonLanguageSettings* common); + ::google::api::CommonLanguageSettings* unsafe_arena_release_common(); + // .google.api.PythonSettings.ExperimentalFeatures experimental_features = 2 [json_name = "experimentalFeatures"]; + bool has_experimental_features() const; + private: + bool _internal_has_experimental_features() const; public: - // @@protoc_insertion_point(class_scope:google.api.JavaSettings) + void clear_experimental_features(); + const ::google::api::PythonSettings_ExperimentalFeatures& experimental_features() const; + PROTOBUF_NODISCARD ::google::api::PythonSettings_ExperimentalFeatures* release_experimental_features(); + ::google::api::PythonSettings_ExperimentalFeatures* mutable_experimental_features(); + void set_allocated_experimental_features(::google::api::PythonSettings_ExperimentalFeatures* experimental_features); + private: + const ::google::api::PythonSettings_ExperimentalFeatures& _internal_experimental_features() const; + ::google::api::PythonSettings_ExperimentalFeatures* _internal_mutable_experimental_features(); + public: + void unsafe_arena_set_allocated_experimental_features( + ::google::api::PythonSettings_ExperimentalFeatures* experimental_features); + ::google::api::PythonSettings_ExperimentalFeatures* unsafe_arena_release_experimental_features(); + + // @@protoc_insertion_point(class_scope:google.api.PythonSettings) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 2, - 66, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::MapField - service_class_names_; - ::google::protobuf::internal::ArenaStringPtr library_package_; - ::google::api::CommonLanguageSettings* common_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::google::api::CommonLanguageSettings* common_; + ::google::api::PythonSettings_ExperimentalFeatures* experimental_features_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fclient_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GoSettings final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.GoSettings) */ { +class NodeSettings final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.NodeSettings) */ { public: - inline GoSettings() : GoSettings(nullptr) {} - ~GoSettings() override; - template - explicit PROTOBUF_CONSTEXPR GoSettings(::google::protobuf::internal::ConstantInitialized); + inline NodeSettings() : NodeSettings(nullptr) {} + ~NodeSettings() override; + explicit PROTOBUF_CONSTEXPR NodeSettings(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GoSettings(const GoSettings& from) - : GoSettings(nullptr, from) {} - GoSettings(GoSettings&& from) noexcept - : GoSettings() { + NodeSettings(const NodeSettings& from); + NodeSettings(NodeSettings&& from) noexcept + : NodeSettings() { *this = ::std::move(from); } - inline GoSettings& operator=(const GoSettings& from) { + inline NodeSettings& operator=(const NodeSettings& from) { CopyFrom(from); return *this; } - inline GoSettings& operator=(GoSettings&& from) noexcept { + inline NodeSettings& operator=(NodeSettings&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2343,99 +1919,88 @@ class GoSettings final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GoSettings& default_instance() { + static const NodeSettings& default_instance() { return *internal_default_instance(); } - static inline const GoSettings* internal_default_instance() { - return reinterpret_cast( - &_GoSettings_default_instance_); + static inline const NodeSettings* internal_default_instance() { + return reinterpret_cast( + &_NodeSettings_default_instance_); } static constexpr int kIndexInFileMessages = - 14; + 9; - friend void swap(GoSettings& a, GoSettings& b) { + friend void swap(NodeSettings& a, NodeSettings& b) { a.Swap(&b); } - inline void Swap(GoSettings* other) { + inline void Swap(NodeSettings* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GoSettings* other) { + void UnsafeArenaSwap(NodeSettings* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GoSettings* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GoSettings& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GoSettings& from) { - GoSettings::MergeImpl(*this, from); + NodeSettings* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const NodeSettings& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const NodeSettings& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GoSettings* other); + void SetCachedSize(int size) const final; + void InternalSwap(NodeSettings* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.GoSettings"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.NodeSettings"; } protected: - explicit GoSettings(::google::protobuf::Arena* arena); - GoSettings(::google::protobuf::Arena* arena, const GoSettings& from); + explicit NodeSettings(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -2446,61 +2011,99 @@ class GoSettings final : }; // .google.api.CommonLanguageSettings common = 1 [json_name = "common"]; bool has_common() const; - void clear_common() ; + private: + bool _internal_has_common() const; + public: + void clear_common(); const ::google::api::CommonLanguageSettings& common() const; PROTOBUF_NODISCARD ::google::api::CommonLanguageSettings* release_common(); ::google::api::CommonLanguageSettings* mutable_common(); - void set_allocated_common(::google::api::CommonLanguageSettings* value); - void unsafe_arena_set_allocated_common(::google::api::CommonLanguageSettings* value); - ::google::api::CommonLanguageSettings* unsafe_arena_release_common(); - + void set_allocated_common(::google::api::CommonLanguageSettings* common); private: const ::google::api::CommonLanguageSettings& _internal_common() const; ::google::api::CommonLanguageSettings* _internal_mutable_common(); - public: - // @@protoc_insertion_point(class_scope:google.api.GoSettings) + void unsafe_arena_set_allocated_common( + ::google::api::CommonLanguageSettings* common); + ::google::api::CommonLanguageSettings* unsafe_arena_release_common(); + + // @@protoc_insertion_point(class_scope:google.api.NodeSettings) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::api::CommonLanguageSettings* common_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::google::api::CommonLanguageSettings* common_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_google_2fapi_2fclient_2eproto; +}; +// ------------------------------------------------------------------- + +class DotnetSettings_RenamedServicesEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + DotnetSettings_RenamedServicesEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR DotnetSettings_RenamedServicesEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit DotnetSettings_RenamedServicesEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const DotnetSettings_RenamedServicesEntry_DoNotUse& other); + static const DotnetSettings_RenamedServicesEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_DotnetSettings_RenamedServicesEntry_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, "google.api.DotnetSettings.RenamedServicesEntry.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, "google.api.DotnetSettings.RenamedServicesEntry.value"); + } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + friend struct ::TableStruct_google_2fapi_2fclient_2eproto; +}; + +// ------------------------------------------------------------------- + +class DotnetSettings_RenamedResourcesEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + DotnetSettings_RenamedResourcesEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR DotnetSettings_RenamedResourcesEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit DotnetSettings_RenamedResourcesEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const DotnetSettings_RenamedResourcesEntry_DoNotUse& other); + static const DotnetSettings_RenamedResourcesEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_DotnetSettings_RenamedResourcesEntry_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, "google.api.DotnetSettings.RenamedResourcesEntry.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, "google.api.DotnetSettings.RenamedResourcesEntry.value"); + } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; friend struct ::TableStruct_google_2fapi_2fclient_2eproto; -};// ------------------------------------------------------------------- +}; + +// ------------------------------------------------------------------- class DotnetSettings final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.DotnetSettings) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.DotnetSettings) */ { public: inline DotnetSettings() : DotnetSettings(nullptr) {} ~DotnetSettings() override; - template - explicit PROTOBUF_CONSTEXPR DotnetSettings(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR DotnetSettings(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline DotnetSettings(const DotnetSettings& from) - : DotnetSettings(nullptr, from) {} + DotnetSettings(const DotnetSettings& from); DotnetSettings(DotnetSettings&& from) noexcept : DotnetSettings() { *this = ::std::move(from); @@ -2512,9 +2115,9 @@ class DotnetSettings final : } inline DotnetSettings& operator=(DotnetSettings&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2524,22 +2127,13 @@ class DotnetSettings final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const DotnetSettings& default_instance() { @@ -2558,65 +2152,65 @@ class DotnetSettings final : inline void Swap(DotnetSettings* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(DotnetSettings* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - DotnetSettings* New(::google::protobuf::Arena* arena = nullptr) const final { + DotnetSettings* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const DotnetSettings& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const DotnetSettings& from) { - DotnetSettings::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const DotnetSettings& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(DotnetSettings* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "google.api.DotnetSettings"; } protected: - explicit DotnetSettings(::google::protobuf::Arena* arena); - DotnetSettings(::google::protobuf::Arena* arena, const DotnetSettings& from); + explicit DotnetSettings(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -2635,198 +2229,174 @@ class DotnetSettings final : int renamed_services_size() const; private: int _internal_renamed_services_size() const; - public: - void clear_renamed_services() ; - const ::google::protobuf::Map& renamed_services() const; - ::google::protobuf::Map* mutable_renamed_services(); - + void clear_renamed_services(); private: - const ::google::protobuf::Map& _internal_renamed_services() const; - ::google::protobuf::Map* _internal_mutable_renamed_services(); - + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + _internal_renamed_services() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + _internal_mutable_renamed_services(); public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + renamed_services() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + mutable_renamed_services(); + // map renamed_resources = 3 [json_name = "renamedResources"]; int renamed_resources_size() const; private: int _internal_renamed_resources_size() const; - public: - void clear_renamed_resources() ; - const ::google::protobuf::Map& renamed_resources() const; - ::google::protobuf::Map* mutable_renamed_resources(); - + void clear_renamed_resources(); private: - const ::google::protobuf::Map& _internal_renamed_resources() const; - ::google::protobuf::Map* _internal_mutable_renamed_resources(); - + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + _internal_renamed_resources() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + _internal_mutable_renamed_resources(); public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + renamed_resources() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + mutable_renamed_resources(); + // repeated string ignored_resources = 4 [json_name = "ignoredResources"]; int ignored_resources_size() const; private: int _internal_ignored_resources_size() const; - public: - void clear_ignored_resources() ; + void clear_ignored_resources(); const std::string& ignored_resources(int index) const; std::string* mutable_ignored_resources(int index); void set_ignored_resources(int index, const std::string& value); void set_ignored_resources(int index, std::string&& value); void set_ignored_resources(int index, const char* value); - void set_ignored_resources(int index, const char* value, std::size_t size); - void set_ignored_resources(int index, absl::string_view value); + void set_ignored_resources(int index, const char* value, size_t size); std::string* add_ignored_resources(); void add_ignored_resources(const std::string& value); void add_ignored_resources(std::string&& value); void add_ignored_resources(const char* value); - void add_ignored_resources(const char* value, std::size_t size); - void add_ignored_resources(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& ignored_resources() const; - ::google::protobuf::RepeatedPtrField* mutable_ignored_resources(); - + void add_ignored_resources(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& ignored_resources() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_ignored_resources(); private: - const ::google::protobuf::RepeatedPtrField& _internal_ignored_resources() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_ignored_resources(); - + const std::string& _internal_ignored_resources(int index) const; + std::string* _internal_add_ignored_resources(); public: + // repeated string forced_namespace_aliases = 5 [json_name = "forcedNamespaceAliases"]; int forced_namespace_aliases_size() const; private: int _internal_forced_namespace_aliases_size() const; - public: - void clear_forced_namespace_aliases() ; + void clear_forced_namespace_aliases(); const std::string& forced_namespace_aliases(int index) const; std::string* mutable_forced_namespace_aliases(int index); void set_forced_namespace_aliases(int index, const std::string& value); void set_forced_namespace_aliases(int index, std::string&& value); void set_forced_namespace_aliases(int index, const char* value); - void set_forced_namespace_aliases(int index, const char* value, std::size_t size); - void set_forced_namespace_aliases(int index, absl::string_view value); + void set_forced_namespace_aliases(int index, const char* value, size_t size); std::string* add_forced_namespace_aliases(); void add_forced_namespace_aliases(const std::string& value); void add_forced_namespace_aliases(std::string&& value); void add_forced_namespace_aliases(const char* value); - void add_forced_namespace_aliases(const char* value, std::size_t size); - void add_forced_namespace_aliases(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& forced_namespace_aliases() const; - ::google::protobuf::RepeatedPtrField* mutable_forced_namespace_aliases(); - + void add_forced_namespace_aliases(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& forced_namespace_aliases() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_forced_namespace_aliases(); private: - const ::google::protobuf::RepeatedPtrField& _internal_forced_namespace_aliases() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_forced_namespace_aliases(); - + const std::string& _internal_forced_namespace_aliases(int index) const; + std::string* _internal_add_forced_namespace_aliases(); public: + // repeated string handwritten_signatures = 6 [json_name = "handwrittenSignatures"]; int handwritten_signatures_size() const; private: int _internal_handwritten_signatures_size() const; - public: - void clear_handwritten_signatures() ; + void clear_handwritten_signatures(); const std::string& handwritten_signatures(int index) const; std::string* mutable_handwritten_signatures(int index); void set_handwritten_signatures(int index, const std::string& value); void set_handwritten_signatures(int index, std::string&& value); void set_handwritten_signatures(int index, const char* value); - void set_handwritten_signatures(int index, const char* value, std::size_t size); - void set_handwritten_signatures(int index, absl::string_view value); + void set_handwritten_signatures(int index, const char* value, size_t size); std::string* add_handwritten_signatures(); void add_handwritten_signatures(const std::string& value); void add_handwritten_signatures(std::string&& value); void add_handwritten_signatures(const char* value); - void add_handwritten_signatures(const char* value, std::size_t size); - void add_handwritten_signatures(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& handwritten_signatures() const; - ::google::protobuf::RepeatedPtrField* mutable_handwritten_signatures(); - + void add_handwritten_signatures(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& handwritten_signatures() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_handwritten_signatures(); private: - const ::google::protobuf::RepeatedPtrField& _internal_handwritten_signatures() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_handwritten_signatures(); - + const std::string& _internal_handwritten_signatures(int index) const; + std::string* _internal_add_handwritten_signatures(); public: + // .google.api.CommonLanguageSettings common = 1 [json_name = "common"]; bool has_common() const; - void clear_common() ; + private: + bool _internal_has_common() const; + public: + void clear_common(); const ::google::api::CommonLanguageSettings& common() const; PROTOBUF_NODISCARD ::google::api::CommonLanguageSettings* release_common(); ::google::api::CommonLanguageSettings* mutable_common(); - void set_allocated_common(::google::api::CommonLanguageSettings* value); - void unsafe_arena_set_allocated_common(::google::api::CommonLanguageSettings* value); - ::google::api::CommonLanguageSettings* unsafe_arena_release_common(); - + void set_allocated_common(::google::api::CommonLanguageSettings* common); private: const ::google::api::CommonLanguageSettings& _internal_common() const; ::google::api::CommonLanguageSettings* _internal_mutable_common(); - public: + void unsafe_arena_set_allocated_common( + ::google::api::CommonLanguageSettings* common); + ::google::api::CommonLanguageSettings* unsafe_arena_release_common(); + // @@protoc_insertion_point(class_scope:google.api.DotnetSettings) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 6, 3, - 130, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::MapField - renamed_services_; - ::google::protobuf::internal::MapField - renamed_resources_; - ::google::protobuf::RepeatedPtrField ignored_resources_; - ::google::protobuf::RepeatedPtrField forced_namespace_aliases_; - ::google::protobuf::RepeatedPtrField handwritten_signatures_; - ::google::api::CommonLanguageSettings* common_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + DotnetSettings_RenamedServicesEntry_DoNotUse, + std::string, std::string, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> renamed_services_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + DotnetSettings_RenamedResourcesEntry_DoNotUse, + std::string, std::string, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> renamed_resources_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField ignored_resources_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField forced_namespace_aliases_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField handwritten_signatures_; + ::google::api::CommonLanguageSettings* common_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fclient_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class CppSettings final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.CppSettings) */ { +class RubySettings final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.RubySettings) */ { public: - inline CppSettings() : CppSettings(nullptr) {} - ~CppSettings() override; - template - explicit PROTOBUF_CONSTEXPR CppSettings(::google::protobuf::internal::ConstantInitialized); + inline RubySettings() : RubySettings(nullptr) {} + ~RubySettings() override; + explicit PROTOBUF_CONSTEXPR RubySettings(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline CppSettings(const CppSettings& from) - : CppSettings(nullptr, from) {} - CppSettings(CppSettings&& from) noexcept - : CppSettings() { + RubySettings(const RubySettings& from); + RubySettings(RubySettings&& from) noexcept + : RubySettings() { *this = ::std::move(from); } - inline CppSettings& operator=(const CppSettings& from) { + inline RubySettings& operator=(const RubySettings& from) { CopyFrom(from); return *this; } - inline CppSettings& operator=(CppSettings&& from) noexcept { + inline RubySettings& operator=(RubySettings&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2836,99 +2406,88 @@ class CppSettings final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CppSettings& default_instance() { + static const RubySettings& default_instance() { return *internal_default_instance(); } - static inline const CppSettings* internal_default_instance() { - return reinterpret_cast( - &_CppSettings_default_instance_); + static inline const RubySettings* internal_default_instance() { + return reinterpret_cast( + &_RubySettings_default_instance_); } static constexpr int kIndexInFileMessages = - 5; + 13; - friend void swap(CppSettings& a, CppSettings& b) { + friend void swap(RubySettings& a, RubySettings& b) { a.Swap(&b); } - inline void Swap(CppSettings* other) { + inline void Swap(RubySettings* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CppSettings* other) { + void UnsafeArenaSwap(RubySettings* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CppSettings* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const CppSettings& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CppSettings& from) { - CppSettings::MergeImpl(*this, from); + RubySettings* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const RubySettings& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const RubySettings& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(CppSettings* other); + void SetCachedSize(int size) const final; + void InternalSwap(RubySettings* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.CppSettings"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.RubySettings"; } protected: - explicit CppSettings(::google::protobuf::Arena* arena); - CppSettings(::google::protobuf::Arena* arena, const CppSettings& from); + explicit RubySettings(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -2939,75 +2498,85 @@ class CppSettings final : }; // .google.api.CommonLanguageSettings common = 1 [json_name = "common"]; bool has_common() const; - void clear_common() ; + private: + bool _internal_has_common() const; + public: + void clear_common(); const ::google::api::CommonLanguageSettings& common() const; PROTOBUF_NODISCARD ::google::api::CommonLanguageSettings* release_common(); ::google::api::CommonLanguageSettings* mutable_common(); - void set_allocated_common(::google::api::CommonLanguageSettings* value); - void unsafe_arena_set_allocated_common(::google::api::CommonLanguageSettings* value); - ::google::api::CommonLanguageSettings* unsafe_arena_release_common(); - + void set_allocated_common(::google::api::CommonLanguageSettings* common); private: const ::google::api::CommonLanguageSettings& _internal_common() const; ::google::api::CommonLanguageSettings* _internal_mutable_common(); - public: - // @@protoc_insertion_point(class_scope:google.api.CppSettings) + void unsafe_arena_set_allocated_common( + ::google::api::CommonLanguageSettings* common); + ::google::api::CommonLanguageSettings* unsafe_arena_release_common(); + + // @@protoc_insertion_point(class_scope:google.api.RubySettings) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::api::CommonLanguageSettings* common_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::google::api::CommonLanguageSettings* common_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fclient_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ClientLibrarySettings final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.ClientLibrarySettings) */ { +class GoSettings_RenamedServicesEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + GoSettings_RenamedServicesEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR GoSettings_RenamedServicesEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit GoSettings_RenamedServicesEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const GoSettings_RenamedServicesEntry_DoNotUse& other); + static const GoSettings_RenamedServicesEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_GoSettings_RenamedServicesEntry_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, "google.api.GoSettings.RenamedServicesEntry.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, "google.api.GoSettings.RenamedServicesEntry.value"); + } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + friend struct ::TableStruct_google_2fapi_2fclient_2eproto; +}; + +// ------------------------------------------------------------------- + +class GoSettings final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.GoSettings) */ { public: - inline ClientLibrarySettings() : ClientLibrarySettings(nullptr) {} - ~ClientLibrarySettings() override; - template - explicit PROTOBUF_CONSTEXPR ClientLibrarySettings(::google::protobuf::internal::ConstantInitialized); + inline GoSettings() : GoSettings(nullptr) {} + ~GoSettings() override; + explicit PROTOBUF_CONSTEXPR GoSettings(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ClientLibrarySettings(const ClientLibrarySettings& from) - : ClientLibrarySettings(nullptr, from) {} - ClientLibrarySettings(ClientLibrarySettings&& from) noexcept - : ClientLibrarySettings() { + GoSettings(const GoSettings& from); + GoSettings(GoSettings&& from) noexcept + : GoSettings() { *this = ::std::move(from); } - inline ClientLibrarySettings& operator=(const ClientLibrarySettings& from) { + inline GoSettings& operator=(const GoSettings& from) { CopyFrom(from); return *this; } - inline ClientLibrarySettings& operator=(ClientLibrarySettings&& from) noexcept { + inline GoSettings& operator=(GoSettings&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3017,339 +2586,378 @@ class ClientLibrarySettings final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ClientLibrarySettings& default_instance() { + static const GoSettings& default_instance() { return *internal_default_instance(); } - static inline const ClientLibrarySettings* internal_default_instance() { - return reinterpret_cast( - &_ClientLibrarySettings_default_instance_); + static inline const GoSettings* internal_default_instance() { + return reinterpret_cast( + &_GoSettings_default_instance_); } static constexpr int kIndexInFileMessages = - 1; + 15; - friend void swap(ClientLibrarySettings& a, ClientLibrarySettings& b) { + friend void swap(GoSettings& a, GoSettings& b) { a.Swap(&b); } - inline void Swap(ClientLibrarySettings* other) { + inline void Swap(GoSettings* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ClientLibrarySettings* other) { + void UnsafeArenaSwap(GoSettings* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ClientLibrarySettings* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ClientLibrarySettings& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ClientLibrarySettings& from) { - ClientLibrarySettings::MergeImpl(*this, from); + GoSettings* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GoSettings& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GoSettings& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ClientLibrarySettings* other); + void SetCachedSize(int size) const final; + void InternalSwap(GoSettings* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.ClientLibrarySettings"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.GoSettings"; } protected: - explicit ClientLibrarySettings(::google::protobuf::Arena* arena); - ClientLibrarySettings(::google::protobuf::Arena* arena, const ClientLibrarySettings& from); + explicit GoSettings(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- + // accessors ------------------------------------------------------- enum : int { - kVersionFieldNumber = 1, - kJavaSettingsFieldNumber = 21, - kCppSettingsFieldNumber = 22, - kPhpSettingsFieldNumber = 23, - kPythonSettingsFieldNumber = 24, - kNodeSettingsFieldNumber = 25, - kDotnetSettingsFieldNumber = 26, - kRubySettingsFieldNumber = 27, - kGoSettingsFieldNumber = 28, - kLaunchStageFieldNumber = 2, - kRestNumericEnumsFieldNumber = 3, + kRenamedServicesFieldNumber = 2, + kCommonFieldNumber = 1, }; - // string version = 1 [json_name = "version"]; - void clear_version() ; - const std::string& version() const; - template - void set_version(Arg_&& arg, Args_... args); - std::string* mutable_version(); - PROTOBUF_NODISCARD std::string* release_version(); - void set_allocated_version(std::string* value); - + // map renamed_services = 2 [json_name = "renamedServices"]; + int renamed_services_size() const; private: - const std::string& _internal_version() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_version( - const std::string& value); - std::string* _internal_mutable_version(); + int _internal_renamed_services_size() const; + public: + void clear_renamed_services(); + private: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + _internal_renamed_services() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + _internal_mutable_renamed_services(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + renamed_services() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + mutable_renamed_services(); + // .google.api.CommonLanguageSettings common = 1 [json_name = "common"]; + bool has_common() const; + private: + bool _internal_has_common() const; public: - // .google.api.JavaSettings java_settings = 21 [json_name = "javaSettings"]; - bool has_java_settings() const; - void clear_java_settings() ; - const ::google::api::JavaSettings& java_settings() const; - PROTOBUF_NODISCARD ::google::api::JavaSettings* release_java_settings(); - ::google::api::JavaSettings* mutable_java_settings(); - void set_allocated_java_settings(::google::api::JavaSettings* value); - void unsafe_arena_set_allocated_java_settings(::google::api::JavaSettings* value); - ::google::api::JavaSettings* unsafe_arena_release_java_settings(); + void clear_common(); + const ::google::api::CommonLanguageSettings& common() const; + PROTOBUF_NODISCARD ::google::api::CommonLanguageSettings* release_common(); + ::google::api::CommonLanguageSettings* mutable_common(); + void set_allocated_common(::google::api::CommonLanguageSettings* common); + private: + const ::google::api::CommonLanguageSettings& _internal_common() const; + ::google::api::CommonLanguageSettings* _internal_mutable_common(); + public: + void unsafe_arena_set_allocated_common( + ::google::api::CommonLanguageSettings* common); + ::google::api::CommonLanguageSettings* unsafe_arena_release_common(); + + // @@protoc_insertion_point(class_scope:google.api.GoSettings) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + GoSettings_RenamedServicesEntry_DoNotUse, + std::string, std::string, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> renamed_services_; + ::google::api::CommonLanguageSettings* common_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_google_2fapi_2fclient_2eproto; +}; +// ------------------------------------------------------------------- + +class MethodSettings_LongRunning final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.MethodSettings.LongRunning) */ { + public: + inline MethodSettings_LongRunning() : MethodSettings_LongRunning(nullptr) {} + ~MethodSettings_LongRunning() override; + explicit PROTOBUF_CONSTEXPR MethodSettings_LongRunning(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + MethodSettings_LongRunning(const MethodSettings_LongRunning& from); + MethodSettings_LongRunning(MethodSettings_LongRunning&& from) noexcept + : MethodSettings_LongRunning() { + *this = ::std::move(from); + } + + inline MethodSettings_LongRunning& operator=(const MethodSettings_LongRunning& from) { + CopyFrom(from); + return *this; + } + inline MethodSettings_LongRunning& operator=(MethodSettings_LongRunning&& 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 MethodSettings_LongRunning& default_instance() { + return *internal_default_instance(); + } + static inline const MethodSettings_LongRunning* internal_default_instance() { + return reinterpret_cast( + &_MethodSettings_LongRunning_default_instance_); + } + static constexpr int kIndexInFileMessages = + 16; + + friend void swap(MethodSettings_LongRunning& a, MethodSettings_LongRunning& b) { + a.Swap(&b); + } + inline void Swap(MethodSettings_LongRunning* 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(MethodSettings_LongRunning* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + MethodSettings_LongRunning* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MethodSettings_LongRunning& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MethodSettings_LongRunning& from); private: - const ::google::api::JavaSettings& _internal_java_settings() const; - ::google::api::JavaSettings* _internal_mutable_java_settings(); - + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: - // .google.api.CppSettings cpp_settings = 22 [json_name = "cppSettings"]; - bool has_cpp_settings() const; - void clear_cpp_settings() ; - const ::google::api::CppSettings& cpp_settings() const; - PROTOBUF_NODISCARD ::google::api::CppSettings* release_cpp_settings(); - ::google::api::CppSettings* mutable_cpp_settings(); - void set_allocated_cpp_settings(::google::api::CppSettings* value); - void unsafe_arena_set_allocated_cpp_settings(::google::api::CppSettings* value); - ::google::api::CppSettings* unsafe_arena_release_cpp_settings(); + 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: - const ::google::api::CppSettings& _internal_cpp_settings() const; - ::google::api::CppSettings* _internal_mutable_cpp_settings(); + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MethodSettings_LongRunning* other); + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.MethodSettings.LongRunning"; + } + protected: + explicit MethodSettings_LongRunning(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - // .google.api.PhpSettings php_settings = 23 [json_name = "phpSettings"]; - bool has_php_settings() const; - void clear_php_settings() ; - const ::google::api::PhpSettings& php_settings() const; - PROTOBUF_NODISCARD ::google::api::PhpSettings* release_php_settings(); - ::google::api::PhpSettings* mutable_php_settings(); - void set_allocated_php_settings(::google::api::PhpSettings* value); - void unsafe_arena_set_allocated_php_settings(::google::api::PhpSettings* value); - ::google::api::PhpSettings* unsafe_arena_release_php_settings(); - private: - const ::google::api::PhpSettings& _internal_php_settings() const; - ::google::api::PhpSettings* _internal_mutable_php_settings(); + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: - // .google.api.PythonSettings python_settings = 24 [json_name = "pythonSettings"]; - bool has_python_settings() const; - void clear_python_settings() ; - const ::google::api::PythonSettings& python_settings() const; - PROTOBUF_NODISCARD ::google::api::PythonSettings* release_python_settings(); - ::google::api::PythonSettings* mutable_python_settings(); - void set_allocated_python_settings(::google::api::PythonSettings* value); - void unsafe_arena_set_allocated_python_settings(::google::api::PythonSettings* value); - ::google::api::PythonSettings* unsafe_arena_release_python_settings(); + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - const ::google::api::PythonSettings& _internal_python_settings() const; - ::google::api::PythonSettings* _internal_mutable_python_settings(); + // nested types ---------------------------------------------------- - public: - // .google.api.NodeSettings node_settings = 25 [json_name = "nodeSettings"]; - bool has_node_settings() const; - void clear_node_settings() ; - const ::google::api::NodeSettings& node_settings() const; - PROTOBUF_NODISCARD ::google::api::NodeSettings* release_node_settings(); - ::google::api::NodeSettings* mutable_node_settings(); - void set_allocated_node_settings(::google::api::NodeSettings* value); - void unsafe_arena_set_allocated_node_settings(::google::api::NodeSettings* value); - ::google::api::NodeSettings* unsafe_arena_release_node_settings(); + // accessors ------------------------------------------------------- + enum : int { + kInitialPollDelayFieldNumber = 1, + kMaxPollDelayFieldNumber = 3, + kTotalPollTimeoutFieldNumber = 4, + kPollDelayMultiplierFieldNumber = 2, + }; + // .google.protobuf.Duration initial_poll_delay = 1 [json_name = "initialPollDelay"]; + bool has_initial_poll_delay() const; private: - const ::google::api::NodeSettings& _internal_node_settings() const; - ::google::api::NodeSettings* _internal_mutable_node_settings(); - + bool _internal_has_initial_poll_delay() const; public: - // .google.api.DotnetSettings dotnet_settings = 26 [json_name = "dotnetSettings"]; - bool has_dotnet_settings() const; - void clear_dotnet_settings() ; - const ::google::api::DotnetSettings& dotnet_settings() const; - PROTOBUF_NODISCARD ::google::api::DotnetSettings* release_dotnet_settings(); - ::google::api::DotnetSettings* mutable_dotnet_settings(); - void set_allocated_dotnet_settings(::google::api::DotnetSettings* value); - void unsafe_arena_set_allocated_dotnet_settings(::google::api::DotnetSettings* value); - ::google::api::DotnetSettings* unsafe_arena_release_dotnet_settings(); - + void clear_initial_poll_delay(); + const ::PROTOBUF_NAMESPACE_ID::Duration& initial_poll_delay() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Duration* release_initial_poll_delay(); + ::PROTOBUF_NAMESPACE_ID::Duration* mutable_initial_poll_delay(); + void set_allocated_initial_poll_delay(::PROTOBUF_NAMESPACE_ID::Duration* initial_poll_delay); private: - const ::google::api::DotnetSettings& _internal_dotnet_settings() const; - ::google::api::DotnetSettings* _internal_mutable_dotnet_settings(); - + const ::PROTOBUF_NAMESPACE_ID::Duration& _internal_initial_poll_delay() const; + ::PROTOBUF_NAMESPACE_ID::Duration* _internal_mutable_initial_poll_delay(); public: - // .google.api.RubySettings ruby_settings = 27 [json_name = "rubySettings"]; - bool has_ruby_settings() const; - void clear_ruby_settings() ; - const ::google::api::RubySettings& ruby_settings() const; - PROTOBUF_NODISCARD ::google::api::RubySettings* release_ruby_settings(); - ::google::api::RubySettings* mutable_ruby_settings(); - void set_allocated_ruby_settings(::google::api::RubySettings* value); - void unsafe_arena_set_allocated_ruby_settings(::google::api::RubySettings* value); - ::google::api::RubySettings* unsafe_arena_release_ruby_settings(); + void unsafe_arena_set_allocated_initial_poll_delay( + ::PROTOBUF_NAMESPACE_ID::Duration* initial_poll_delay); + ::PROTOBUF_NAMESPACE_ID::Duration* unsafe_arena_release_initial_poll_delay(); + // .google.protobuf.Duration max_poll_delay = 3 [json_name = "maxPollDelay"]; + bool has_max_poll_delay() const; private: - const ::google::api::RubySettings& _internal_ruby_settings() const; - ::google::api::RubySettings* _internal_mutable_ruby_settings(); - + bool _internal_has_max_poll_delay() const; public: - // .google.api.GoSettings go_settings = 28 [json_name = "goSettings"]; - bool has_go_settings() const; - void clear_go_settings() ; - const ::google::api::GoSettings& go_settings() const; - PROTOBUF_NODISCARD ::google::api::GoSettings* release_go_settings(); - ::google::api::GoSettings* mutable_go_settings(); - void set_allocated_go_settings(::google::api::GoSettings* value); - void unsafe_arena_set_allocated_go_settings(::google::api::GoSettings* value); - ::google::api::GoSettings* unsafe_arena_release_go_settings(); - + void clear_max_poll_delay(); + const ::PROTOBUF_NAMESPACE_ID::Duration& max_poll_delay() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Duration* release_max_poll_delay(); + ::PROTOBUF_NAMESPACE_ID::Duration* mutable_max_poll_delay(); + void set_allocated_max_poll_delay(::PROTOBUF_NAMESPACE_ID::Duration* max_poll_delay); private: - const ::google::api::GoSettings& _internal_go_settings() const; - ::google::api::GoSettings* _internal_mutable_go_settings(); - + const ::PROTOBUF_NAMESPACE_ID::Duration& _internal_max_poll_delay() const; + ::PROTOBUF_NAMESPACE_ID::Duration* _internal_mutable_max_poll_delay(); public: - // .google.api.LaunchStage launch_stage = 2 [json_name = "launchStage"]; - void clear_launch_stage() ; - ::google::api::LaunchStage launch_stage() const; - void set_launch_stage(::google::api::LaunchStage value); + void unsafe_arena_set_allocated_max_poll_delay( + ::PROTOBUF_NAMESPACE_ID::Duration* max_poll_delay); + ::PROTOBUF_NAMESPACE_ID::Duration* unsafe_arena_release_max_poll_delay(); + // .google.protobuf.Duration total_poll_timeout = 4 [json_name = "totalPollTimeout"]; + bool has_total_poll_timeout() const; private: - ::google::api::LaunchStage _internal_launch_stage() const; - void _internal_set_launch_stage(::google::api::LaunchStage value); - + bool _internal_has_total_poll_timeout() const; public: - // bool rest_numeric_enums = 3 [json_name = "restNumericEnums"]; - void clear_rest_numeric_enums() ; - bool rest_numeric_enums() const; - void set_rest_numeric_enums(bool value); - + void clear_total_poll_timeout(); + const ::PROTOBUF_NAMESPACE_ID::Duration& total_poll_timeout() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Duration* release_total_poll_timeout(); + ::PROTOBUF_NAMESPACE_ID::Duration* mutable_total_poll_timeout(); + void set_allocated_total_poll_timeout(::PROTOBUF_NAMESPACE_ID::Duration* total_poll_timeout); private: - bool _internal_rest_numeric_enums() const; - void _internal_set_rest_numeric_enums(bool value); + const ::PROTOBUF_NAMESPACE_ID::Duration& _internal_total_poll_timeout() const; + ::PROTOBUF_NAMESPACE_ID::Duration* _internal_mutable_total_poll_timeout(); + public: + void unsafe_arena_set_allocated_total_poll_timeout( + ::PROTOBUF_NAMESPACE_ID::Duration* total_poll_timeout); + ::PROTOBUF_NAMESPACE_ID::Duration* unsafe_arena_release_total_poll_timeout(); + // float poll_delay_multiplier = 2 [json_name = "pollDelayMultiplier"]; + void clear_poll_delay_multiplier(); + float poll_delay_multiplier() const; + void set_poll_delay_multiplier(float value); + private: + float _internal_poll_delay_multiplier() const; + void _internal_set_poll_delay_multiplier(float value); public: - // @@protoc_insertion_point(class_scope:google.api.ClientLibrarySettings) + + // @@protoc_insertion_point(class_scope:google.api.MethodSettings.LongRunning) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 4, 11, 8, - 56, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr version_; - ::google::api::JavaSettings* java_settings_; - ::google::api::CppSettings* cpp_settings_; - ::google::api::PhpSettings* php_settings_; - ::google::api::PythonSettings* python_settings_; - ::google::api::NodeSettings* node_settings_; - ::google::api::DotnetSettings* dotnet_settings_; - ::google::api::RubySettings* ruby_settings_; - ::google::api::GoSettings* go_settings_; - int launch_stage_; - bool rest_numeric_enums_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::Duration* initial_poll_delay_; + ::PROTOBUF_NAMESPACE_ID::Duration* max_poll_delay_; + ::PROTOBUF_NAMESPACE_ID::Duration* total_poll_timeout_; + float poll_delay_multiplier_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fclient_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Publishing final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.Publishing) */ { +class MethodSettings final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.MethodSettings) */ { public: - inline Publishing() : Publishing(nullptr) {} - ~Publishing() override; - template - explicit PROTOBUF_CONSTEXPR Publishing(::google::protobuf::internal::ConstantInitialized); + inline MethodSettings() : MethodSettings(nullptr) {} + ~MethodSettings() override; + explicit PROTOBUF_CONSTEXPR MethodSettings(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Publishing(const Publishing& from) - : Publishing(nullptr, from) {} - Publishing(Publishing&& from) noexcept - : Publishing() { + MethodSettings(const MethodSettings& from); + MethodSettings(MethodSettings&& from) noexcept + : MethodSettings() { *this = ::std::move(from); } - inline Publishing& operator=(const Publishing& from) { + inline MethodSettings& operator=(const MethodSettings& from) { CopyFrom(from); return *this; } - inline Publishing& operator=(Publishing&& from) noexcept { + inline MethodSettings& operator=(MethodSettings&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3359,566 +2967,534 @@ class Publishing final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Publishing& default_instance() { + static const MethodSettings& default_instance() { return *internal_default_instance(); } - static inline const Publishing* internal_default_instance() { - return reinterpret_cast( - &_Publishing_default_instance_); + static inline const MethodSettings* internal_default_instance() { + return reinterpret_cast( + &_MethodSettings_default_instance_); } static constexpr int kIndexInFileMessages = - 2; + 17; - friend void swap(Publishing& a, Publishing& b) { + friend void swap(MethodSettings& a, MethodSettings& b) { a.Swap(&b); } - inline void Swap(Publishing* other) { + inline void Swap(MethodSettings* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Publishing* other) { + void UnsafeArenaSwap(MethodSettings* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Publishing* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Publishing& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Publishing& from) { - Publishing::MergeImpl(*this, from); + MethodSettings* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MethodSettings& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MethodSettings& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Publishing* other); + void SetCachedSize(int size) const final; + void InternalSwap(MethodSettings* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.Publishing"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.MethodSettings"; } protected: - explicit Publishing(::google::protobuf::Arena* arena); - Publishing(::google::protobuf::Arena* arena, const Publishing& from); + explicit MethodSettings(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- + typedef MethodSettings_LongRunning LongRunning; + // accessors ------------------------------------------------------- enum : int { - kMethodSettingsFieldNumber = 2, - kCodeownerGithubTeamsFieldNumber = 105, - kLibrarySettingsFieldNumber = 109, - kNewIssueUriFieldNumber = 101, - kDocumentationUriFieldNumber = 102, - kApiShortNameFieldNumber = 103, - kGithubLabelFieldNumber = 104, - kDocTagPrefixFieldNumber = 106, - kProtoReferenceDocumentationUriFieldNumber = 110, - kRestReferenceDocumentationUriFieldNumber = 111, - kOrganizationFieldNumber = 107, + kAutoPopulatedFieldsFieldNumber = 3, + kSelectorFieldNumber = 1, + kLongRunningFieldNumber = 2, }; - // repeated .google.api.MethodSettings method_settings = 2 [json_name = "methodSettings"]; - int method_settings_size() const; + // repeated string auto_populated_fields = 3 [json_name = "autoPopulatedFields"]; + int auto_populated_fields_size() const; private: - int _internal_method_settings_size() const; + int _internal_auto_populated_fields_size() const; + public: + void clear_auto_populated_fields(); + const std::string& auto_populated_fields(int index) const; + std::string* mutable_auto_populated_fields(int index); + void set_auto_populated_fields(int index, const std::string& value); + void set_auto_populated_fields(int index, std::string&& value); + void set_auto_populated_fields(int index, const char* value); + void set_auto_populated_fields(int index, const char* value, size_t size); + std::string* add_auto_populated_fields(); + void add_auto_populated_fields(const std::string& value); + void add_auto_populated_fields(std::string&& value); + void add_auto_populated_fields(const char* value); + void add_auto_populated_fields(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& auto_populated_fields() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_auto_populated_fields(); + private: + const std::string& _internal_auto_populated_fields(int index) const; + std::string* _internal_add_auto_populated_fields(); + public: + // string selector = 1 [json_name = "selector"]; + void clear_selector(); + const std::string& selector() const; + template + void set_selector(ArgT0&& arg0, ArgT... args); + std::string* mutable_selector(); + PROTOBUF_NODISCARD std::string* release_selector(); + void set_allocated_selector(std::string* selector); + private: + const std::string& _internal_selector() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_selector(const std::string& value); + std::string* _internal_mutable_selector(); public: - void clear_method_settings() ; - ::google::api::MethodSettings* mutable_method_settings(int index); - ::google::protobuf::RepeatedPtrField< ::google::api::MethodSettings >* - mutable_method_settings(); + + // .google.api.MethodSettings.LongRunning long_running = 2 [json_name = "longRunning"]; + bool has_long_running() const; private: - const ::google::protobuf::RepeatedPtrField<::google::api::MethodSettings>& _internal_method_settings() const; - ::google::protobuf::RepeatedPtrField<::google::api::MethodSettings>* _internal_mutable_method_settings(); + bool _internal_has_long_running() const; public: - const ::google::api::MethodSettings& method_settings(int index) const; - ::google::api::MethodSettings* add_method_settings(); - const ::google::protobuf::RepeatedPtrField< ::google::api::MethodSettings >& - method_settings() const; - // repeated string codeowner_github_teams = 105 [json_name = "codeownerGithubTeams"]; - int codeowner_github_teams_size() const; + void clear_long_running(); + const ::google::api::MethodSettings_LongRunning& long_running() const; + PROTOBUF_NODISCARD ::google::api::MethodSettings_LongRunning* release_long_running(); + ::google::api::MethodSettings_LongRunning* mutable_long_running(); + void set_allocated_long_running(::google::api::MethodSettings_LongRunning* long_running); private: - int _internal_codeowner_github_teams_size() const; + const ::google::api::MethodSettings_LongRunning& _internal_long_running() const; + ::google::api::MethodSettings_LongRunning* _internal_mutable_long_running(); + public: + void unsafe_arena_set_allocated_long_running( + ::google::api::MethodSettings_LongRunning* long_running); + ::google::api::MethodSettings_LongRunning* unsafe_arena_release_long_running(); + + // @@protoc_insertion_point(class_scope:google.api.MethodSettings) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField auto_populated_fields_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr selector_; + ::google::api::MethodSettings_LongRunning* long_running_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_google_2fapi_2fclient_2eproto; +}; +// ------------------------------------------------------------------- + +class SelectiveGapicGeneration final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.SelectiveGapicGeneration) */ { + public: + inline SelectiveGapicGeneration() : SelectiveGapicGeneration(nullptr) {} + ~SelectiveGapicGeneration() override; + explicit PROTOBUF_CONSTEXPR SelectiveGapicGeneration(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + SelectiveGapicGeneration(const SelectiveGapicGeneration& from); + SelectiveGapicGeneration(SelectiveGapicGeneration&& from) noexcept + : SelectiveGapicGeneration() { + *this = ::std::move(from); + } + + inline SelectiveGapicGeneration& operator=(const SelectiveGapicGeneration& from) { + CopyFrom(from); + return *this; + } + inline SelectiveGapicGeneration& operator=(SelectiveGapicGeneration&& 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; + } - public: - void clear_codeowner_github_teams() ; - const std::string& codeowner_github_teams(int index) const; - std::string* mutable_codeowner_github_teams(int index); - void set_codeowner_github_teams(int index, const std::string& value); - void set_codeowner_github_teams(int index, std::string&& value); - void set_codeowner_github_teams(int index, const char* value); - void set_codeowner_github_teams(int index, const char* value, std::size_t size); - void set_codeowner_github_teams(int index, absl::string_view value); - std::string* add_codeowner_github_teams(); - void add_codeowner_github_teams(const std::string& value); - void add_codeowner_github_teams(std::string&& value); - void add_codeowner_github_teams(const char* value); - void add_codeowner_github_teams(const char* value, std::size_t size); - void add_codeowner_github_teams(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& codeowner_github_teams() const; - ::google::protobuf::RepeatedPtrField* mutable_codeowner_github_teams(); + 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 SelectiveGapicGeneration& default_instance() { + return *internal_default_instance(); + } + static inline const SelectiveGapicGeneration* internal_default_instance() { + return reinterpret_cast( + &_SelectiveGapicGeneration_default_instance_); + } + static constexpr int kIndexInFileMessages = + 18; - private: - const ::google::protobuf::RepeatedPtrField& _internal_codeowner_github_teams() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_codeowner_github_teams(); + friend void swap(SelectiveGapicGeneration& a, SelectiveGapicGeneration& b) { + a.Swap(&b); + } + inline void Swap(SelectiveGapicGeneration* 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(SelectiveGapicGeneration* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } - public: - // repeated .google.api.ClientLibrarySettings library_settings = 109 [json_name = "librarySettings"]; - int library_settings_size() const; - private: - int _internal_library_settings_size() const; + // implements Message ---------------------------------------------- - public: - void clear_library_settings() ; - ::google::api::ClientLibrarySettings* mutable_library_settings(int index); - ::google::protobuf::RepeatedPtrField< ::google::api::ClientLibrarySettings >* - mutable_library_settings(); + SelectiveGapicGeneration* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SelectiveGapicGeneration& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const SelectiveGapicGeneration& from); private: - const ::google::protobuf::RepeatedPtrField<::google::api::ClientLibrarySettings>& _internal_library_settings() const; - ::google::protobuf::RepeatedPtrField<::google::api::ClientLibrarySettings>* _internal_mutable_library_settings(); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: - const ::google::api::ClientLibrarySettings& library_settings(int index) const; - ::google::api::ClientLibrarySettings* add_library_settings(); - const ::google::protobuf::RepeatedPtrField< ::google::api::ClientLibrarySettings >& - library_settings() const; - // string new_issue_uri = 101 [json_name = "newIssueUri"]; - void clear_new_issue_uri() ; - const std::string& new_issue_uri() const; - template - void set_new_issue_uri(Arg_&& arg, Args_... args); - std::string* mutable_new_issue_uri(); - PROTOBUF_NODISCARD std::string* release_new_issue_uri(); - void set_allocated_new_issue_uri(std::string* value); - - private: - const std::string& _internal_new_issue_uri() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_new_issue_uri( - const std::string& value); - std::string* _internal_mutable_new_issue_uri(); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - public: - // string documentation_uri = 102 [json_name = "documentationUri"]; - void clear_documentation_uri() ; - const std::string& documentation_uri() const; - template - void set_documentation_uri(Arg_&& arg, Args_... args); - std::string* mutable_documentation_uri(); - PROTOBUF_NODISCARD std::string* release_documentation_uri(); - void set_allocated_documentation_uri(std::string* value); + 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: - const std::string& _internal_documentation_uri() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_documentation_uri( - const std::string& value); - std::string* _internal_mutable_documentation_uri(); - - public: - // string api_short_name = 103 [json_name = "apiShortName"]; - void clear_api_short_name() ; - const std::string& api_short_name() const; - template - void set_api_short_name(Arg_&& arg, Args_... args); - std::string* mutable_api_short_name(); - PROTOBUF_NODISCARD std::string* release_api_short_name(); - void set_allocated_api_short_name(std::string* value); + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SelectiveGapicGeneration* other); private: - const std::string& _internal_api_short_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_api_short_name( - const std::string& value); - std::string* _internal_mutable_api_short_name(); - + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.SelectiveGapicGeneration"; + } + protected: + explicit SelectiveGapicGeneration(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - // string github_label = 104 [json_name = "githubLabel"]; - void clear_github_label() ; - const std::string& github_label() const; - template - void set_github_label(Arg_&& arg, Args_... args); - std::string* mutable_github_label(); - PROTOBUF_NODISCARD std::string* release_github_label(); - void set_allocated_github_label(std::string* value); - private: - const std::string& _internal_github_label() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_github_label( - const std::string& value); - std::string* _internal_mutable_github_label(); + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: - // string doc_tag_prefix = 106 [json_name = "docTagPrefix"]; - void clear_doc_tag_prefix() ; - const std::string& doc_tag_prefix() const; - template - void set_doc_tag_prefix(Arg_&& arg, Args_... args); - std::string* mutable_doc_tag_prefix(); - PROTOBUF_NODISCARD std::string* release_doc_tag_prefix(); - void set_allocated_doc_tag_prefix(std::string* value); + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - const std::string& _internal_doc_tag_prefix() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_doc_tag_prefix( - const std::string& value); - std::string* _internal_mutable_doc_tag_prefix(); + // nested types ---------------------------------------------------- - public: - // string proto_reference_documentation_uri = 110 [json_name = "protoReferenceDocumentationUri"]; - void clear_proto_reference_documentation_uri() ; - const std::string& proto_reference_documentation_uri() const; - template - void set_proto_reference_documentation_uri(Arg_&& arg, Args_... args); - std::string* mutable_proto_reference_documentation_uri(); - PROTOBUF_NODISCARD std::string* release_proto_reference_documentation_uri(); - void set_allocated_proto_reference_documentation_uri(std::string* value); + // accessors ------------------------------------------------------- + enum : int { + kMethodsFieldNumber = 1, + }; + // repeated string methods = 1 [json_name = "methods"]; + int methods_size() const; private: - const std::string& _internal_proto_reference_documentation_uri() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_proto_reference_documentation_uri( - const std::string& value); - std::string* _internal_mutable_proto_reference_documentation_uri(); - + int _internal_methods_size() const; public: - // string rest_reference_documentation_uri = 111 [json_name = "restReferenceDocumentationUri"]; - void clear_rest_reference_documentation_uri() ; - const std::string& rest_reference_documentation_uri() const; - template - void set_rest_reference_documentation_uri(Arg_&& arg, Args_... args); - std::string* mutable_rest_reference_documentation_uri(); - PROTOBUF_NODISCARD std::string* release_rest_reference_documentation_uri(); - void set_allocated_rest_reference_documentation_uri(std::string* value); - + void clear_methods(); + const std::string& methods(int index) const; + std::string* mutable_methods(int index); + void set_methods(int index, const std::string& value); + void set_methods(int index, std::string&& value); + void set_methods(int index, const char* value); + void set_methods(int index, const char* value, size_t size); + std::string* add_methods(); + void add_methods(const std::string& value); + void add_methods(std::string&& value); + void add_methods(const char* value); + void add_methods(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& methods() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_methods(); private: - const std::string& _internal_rest_reference_documentation_uri() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_rest_reference_documentation_uri( - const std::string& value); - std::string* _internal_mutable_rest_reference_documentation_uri(); - + const std::string& _internal_methods(int index) const; + std::string* _internal_add_methods(); public: - // .google.api.ClientLibraryOrganization organization = 107 [json_name = "organization"]; - void clear_organization() ; - ::google::api::ClientLibraryOrganization organization() const; - void set_organization(::google::api::ClientLibraryOrganization value); - - private: - ::google::api::ClientLibraryOrganization _internal_organization() const; - void _internal_set_organization(::google::api::ClientLibraryOrganization value); - public: - // @@protoc_insertion_point(class_scope:google.api.Publishing) + // @@protoc_insertion_point(class_scope:google.api.SelectiveGapicGeneration) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 4, 11, 2, - 195, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::google::api::MethodSettings > method_settings_; - ::google::protobuf::RepeatedPtrField codeowner_github_teams_; - ::google::protobuf::RepeatedPtrField< ::google::api::ClientLibrarySettings > library_settings_; - ::google::protobuf::internal::ArenaStringPtr new_issue_uri_; - ::google::protobuf::internal::ArenaStringPtr documentation_uri_; - ::google::protobuf::internal::ArenaStringPtr api_short_name_; - ::google::protobuf::internal::ArenaStringPtr github_label_; - ::google::protobuf::internal::ArenaStringPtr doc_tag_prefix_; - ::google::protobuf::internal::ArenaStringPtr proto_reference_documentation_uri_; - ::google::protobuf::internal::ArenaStringPtr rest_reference_documentation_uri_; - int organization_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField methods_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fclient_2eproto; }; - // =================================================================== - - static const int kMethodSignatureFieldNumber = 1051; -extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MethodOptions, - ::google::protobuf::internal::RepeatedStringTypeTraits, 9, false > +extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::MethodOptions, + ::PROTOBUF_NAMESPACE_ID::internal::RepeatedStringTypeTraits, 9, false > method_signature; static const int kDefaultHostFieldNumber = 1049; -extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::ServiceOptions, - ::google::protobuf::internal::StringTypeTraits, 9, false > +extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::ServiceOptions, + ::PROTOBUF_NAMESPACE_ID::internal::StringTypeTraits, 9, false > default_host; static const int kOauthScopesFieldNumber = 1050; -extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::ServiceOptions, - ::google::protobuf::internal::StringTypeTraits, 9, false > +extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::ServiceOptions, + ::PROTOBUF_NAMESPACE_ID::internal::StringTypeTraits, 9, false > oauth_scopes; static const int kApiVersionFieldNumber = 525000001; -extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::ServiceOptions, - ::google::protobuf::internal::StringTypeTraits, 9, false > +extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::ServiceOptions, + ::PROTOBUF_NAMESPACE_ID::internal::StringTypeTraits, 9, false > api_version; // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ -// ------------------------------------------------------------------- - // CommonLanguageSettings // string reference_docs_uri = 1 [json_name = "referenceDocsUri", deprecated = true]; inline void CommonLanguageSettings::clear_reference_docs_uri() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.reference_docs_uri_.ClearToEmpty(); + reference_docs_uri_.ClearToEmpty(); } -inline const std::string& CommonLanguageSettings::reference_docs_uri() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& CommonLanguageSettings::reference_docs_uri() const { // @@protoc_insertion_point(field_get:google.api.CommonLanguageSettings.reference_docs_uri) return _internal_reference_docs_uri(); } -template -inline PROTOBUF_ALWAYS_INLINE void CommonLanguageSettings::set_reference_docs_uri(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.reference_docs_uri_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void CommonLanguageSettings::set_reference_docs_uri(ArgT0&& arg0, ArgT... args) { + + reference_docs_uri_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.CommonLanguageSettings.reference_docs_uri) } -inline std::string* CommonLanguageSettings::mutable_reference_docs_uri() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* CommonLanguageSettings::mutable_reference_docs_uri() { std::string* _s = _internal_mutable_reference_docs_uri(); // @@protoc_insertion_point(field_mutable:google.api.CommonLanguageSettings.reference_docs_uri) return _s; } inline const std::string& CommonLanguageSettings::_internal_reference_docs_uri() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.reference_docs_uri_.Get(); + return reference_docs_uri_.Get(); } inline void CommonLanguageSettings::_internal_set_reference_docs_uri(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.reference_docs_uri_.Set(value, GetArena()); + + reference_docs_uri_.Set(value, GetArenaForAllocation()); } inline std::string* CommonLanguageSettings::_internal_mutable_reference_docs_uri() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.reference_docs_uri_.Mutable( GetArena()); + + return reference_docs_uri_.Mutable(GetArenaForAllocation()); } inline std::string* CommonLanguageSettings::release_reference_docs_uri() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.CommonLanguageSettings.reference_docs_uri) - return _impl_.reference_docs_uri_.Release(); -} -inline void CommonLanguageSettings::set_allocated_reference_docs_uri(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.reference_docs_uri_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.reference_docs_uri_.IsDefault()) { - _impl_.reference_docs_uri_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return reference_docs_uri_.Release(); +} +inline void CommonLanguageSettings::set_allocated_reference_docs_uri(std::string* reference_docs_uri) { + if (reference_docs_uri != nullptr) { + + } else { + + } + reference_docs_uri_.SetAllocated(reference_docs_uri, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (reference_docs_uri_.IsDefault()) { + reference_docs_uri_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.api.CommonLanguageSettings.reference_docs_uri) } // repeated .google.api.ClientLibraryDestination destinations = 2 [json_name = "destinations"]; inline int CommonLanguageSettings::_internal_destinations_size() const { - return _internal_destinations().size(); + return destinations_.size(); } inline int CommonLanguageSettings::destinations_size() const { return _internal_destinations_size(); } inline void CommonLanguageSettings::clear_destinations() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.destinations_.Clear(); + destinations_.Clear(); +} +inline ::google::api::ClientLibraryDestination CommonLanguageSettings::_internal_destinations(int index) const { + return static_cast< ::google::api::ClientLibraryDestination >(destinations_.Get(index)); } inline ::google::api::ClientLibraryDestination CommonLanguageSettings::destinations(int index) const { // @@protoc_insertion_point(field_get:google.api.CommonLanguageSettings.destinations) - return static_cast<::google::api::ClientLibraryDestination>(_internal_destinations().Get(index)); + return _internal_destinations(index); } inline void CommonLanguageSettings::set_destinations(int index, ::google::api::ClientLibraryDestination value) { - _internal_mutable_destinations()->Set(index, value); + destinations_.Set(index, value); // @@protoc_insertion_point(field_set:google.api.CommonLanguageSettings.destinations) } +inline void CommonLanguageSettings::_internal_add_destinations(::google::api::ClientLibraryDestination value) { + destinations_.Add(value); +} inline void CommonLanguageSettings::add_destinations(::google::api::ClientLibraryDestination value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_destinations()->Add(value); + _internal_add_destinations(value); // @@protoc_insertion_point(field_add:google.api.CommonLanguageSettings.destinations) } -inline const ::google::protobuf::RepeatedField& CommonLanguageSettings::destinations() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField& +CommonLanguageSettings::destinations() const { // @@protoc_insertion_point(field_list:google.api.CommonLanguageSettings.destinations) - return _internal_destinations(); + return destinations_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* +CommonLanguageSettings::_internal_mutable_destinations() { + return &destinations_; } -inline ::google::protobuf::RepeatedField* CommonLanguageSettings::mutable_destinations() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* +CommonLanguageSettings::mutable_destinations() { // @@protoc_insertion_point(field_mutable_list:google.api.CommonLanguageSettings.destinations) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _internal_mutable_destinations(); } -inline const ::google::protobuf::RepeatedField& CommonLanguageSettings::_internal_destinations() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.destinations_; -} -inline ::google::protobuf::RepeatedField* CommonLanguageSettings::_internal_mutable_destinations() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.destinations_; -} // .google.api.SelectiveGapicGeneration selective_gapic_generation = 3 [json_name = "selectiveGapicGeneration"]; +inline bool CommonLanguageSettings::_internal_has_selective_gapic_generation() const { + return this != internal_default_instance() && selective_gapic_generation_ != nullptr; +} inline bool CommonLanguageSettings::has_selective_gapic_generation() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.selective_gapic_generation_ != nullptr); - return value; + return _internal_has_selective_gapic_generation(); } inline void CommonLanguageSettings::clear_selective_gapic_generation() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.selective_gapic_generation_ != nullptr) _impl_.selective_gapic_generation_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && selective_gapic_generation_ != nullptr) { + delete selective_gapic_generation_; + } + selective_gapic_generation_ = nullptr; } inline const ::google::api::SelectiveGapicGeneration& CommonLanguageSettings::_internal_selective_gapic_generation() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::SelectiveGapicGeneration* p = _impl_.selective_gapic_generation_; - return p != nullptr ? *p : reinterpret_cast(::google::api::_SelectiveGapicGeneration_default_instance_); + const ::google::api::SelectiveGapicGeneration* p = selective_gapic_generation_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::_SelectiveGapicGeneration_default_instance_); } -inline const ::google::api::SelectiveGapicGeneration& CommonLanguageSettings::selective_gapic_generation() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::SelectiveGapicGeneration& CommonLanguageSettings::selective_gapic_generation() const { // @@protoc_insertion_point(field_get:google.api.CommonLanguageSettings.selective_gapic_generation) return _internal_selective_gapic_generation(); } -inline void CommonLanguageSettings::unsafe_arena_set_allocated_selective_gapic_generation(::google::api::SelectiveGapicGeneration* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.selective_gapic_generation_); +inline void CommonLanguageSettings::unsafe_arena_set_allocated_selective_gapic_generation( + ::google::api::SelectiveGapicGeneration* selective_gapic_generation) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(selective_gapic_generation_); } - _impl_.selective_gapic_generation_ = reinterpret_cast<::google::api::SelectiveGapicGeneration*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + selective_gapic_generation_ = selective_gapic_generation; + if (selective_gapic_generation) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.CommonLanguageSettings.selective_gapic_generation) } inline ::google::api::SelectiveGapicGeneration* CommonLanguageSettings::release_selective_gapic_generation() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::SelectiveGapicGeneration* released = _impl_.selective_gapic_generation_; - _impl_.selective_gapic_generation_ = nullptr; + + ::google::api::SelectiveGapicGeneration* temp = selective_gapic_generation_; + selective_gapic_generation_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::SelectiveGapicGeneration* CommonLanguageSettings::unsafe_arena_release_selective_gapic_generation() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.CommonLanguageSettings.selective_gapic_generation) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::SelectiveGapicGeneration* temp = _impl_.selective_gapic_generation_; - _impl_.selective_gapic_generation_ = nullptr; + + ::google::api::SelectiveGapicGeneration* temp = selective_gapic_generation_; + selective_gapic_generation_ = nullptr; return temp; } inline ::google::api::SelectiveGapicGeneration* CommonLanguageSettings::_internal_mutable_selective_gapic_generation() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.selective_gapic_generation_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::SelectiveGapicGeneration>(GetArena()); - _impl_.selective_gapic_generation_ = reinterpret_cast<::google::api::SelectiveGapicGeneration*>(p); + + if (selective_gapic_generation_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::SelectiveGapicGeneration>(GetArenaForAllocation()); + selective_gapic_generation_ = p; } - return _impl_.selective_gapic_generation_; + return selective_gapic_generation_; } -inline ::google::api::SelectiveGapicGeneration* CommonLanguageSettings::mutable_selective_gapic_generation() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::SelectiveGapicGeneration* CommonLanguageSettings::mutable_selective_gapic_generation() { ::google::api::SelectiveGapicGeneration* _msg = _internal_mutable_selective_gapic_generation(); // @@protoc_insertion_point(field_mutable:google.api.CommonLanguageSettings.selective_gapic_generation) return _msg; } -inline void CommonLanguageSettings::set_allocated_selective_gapic_generation(::google::api::SelectiveGapicGeneration* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void CommonLanguageSettings::set_allocated_selective_gapic_generation(::google::api::SelectiveGapicGeneration* selective_gapic_generation) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::api::SelectiveGapicGeneration*>(_impl_.selective_gapic_generation_); + delete selective_gapic_generation_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::api::SelectiveGapicGeneration*>(value)->GetArena(); + if (selective_gapic_generation) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(selective_gapic_generation); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + selective_gapic_generation = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, selective_gapic_generation, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.selective_gapic_generation_ = reinterpret_cast<::google::api::SelectiveGapicGeneration*>(value); + selective_gapic_generation_ = selective_gapic_generation; // @@protoc_insertion_point(field_set_allocated:google.api.CommonLanguageSettings.selective_gapic_generation) } @@ -3928,868 +3504,811 @@ inline void CommonLanguageSettings::set_allocated_selective_gapic_generation(::g // string version = 1 [json_name = "version"]; inline void ClientLibrarySettings::clear_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.version_.ClearToEmpty(); + version_.ClearToEmpty(); } -inline const std::string& ClientLibrarySettings::version() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ClientLibrarySettings::version() const { // @@protoc_insertion_point(field_get:google.api.ClientLibrarySettings.version) return _internal_version(); } -template -inline PROTOBUF_ALWAYS_INLINE void ClientLibrarySettings::set_version(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.version_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ClientLibrarySettings::set_version(ArgT0&& arg0, ArgT... args) { + + version_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.ClientLibrarySettings.version) } -inline std::string* ClientLibrarySettings::mutable_version() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ClientLibrarySettings::mutable_version() { std::string* _s = _internal_mutable_version(); // @@protoc_insertion_point(field_mutable:google.api.ClientLibrarySettings.version) return _s; } inline const std::string& ClientLibrarySettings::_internal_version() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.version_.Get(); + return version_.Get(); } inline void ClientLibrarySettings::_internal_set_version(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.version_.Set(value, GetArena()); + + version_.Set(value, GetArenaForAllocation()); } inline std::string* ClientLibrarySettings::_internal_mutable_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.version_.Mutable( GetArena()); + + return version_.Mutable(GetArenaForAllocation()); } inline std::string* ClientLibrarySettings::release_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.ClientLibrarySettings.version) - return _impl_.version_.Release(); -} -inline void ClientLibrarySettings::set_allocated_version(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.version_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.version_.IsDefault()) { - _impl_.version_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return version_.Release(); +} +inline void ClientLibrarySettings::set_allocated_version(std::string* version) { + if (version != nullptr) { + + } else { + + } + version_.SetAllocated(version, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (version_.IsDefault()) { + version_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.api.ClientLibrarySettings.version) } // .google.api.LaunchStage launch_stage = 2 [json_name = "launchStage"]; inline void ClientLibrarySettings::clear_launch_stage() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.launch_stage_ = 0; + launch_stage_ = 0; +} +inline ::google::api::LaunchStage ClientLibrarySettings::_internal_launch_stage() const { + return static_cast< ::google::api::LaunchStage >(launch_stage_); } inline ::google::api::LaunchStage ClientLibrarySettings::launch_stage() const { // @@protoc_insertion_point(field_get:google.api.ClientLibrarySettings.launch_stage) return _internal_launch_stage(); } +inline void ClientLibrarySettings::_internal_set_launch_stage(::google::api::LaunchStage value) { + + launch_stage_ = value; +} inline void ClientLibrarySettings::set_launch_stage(::google::api::LaunchStage value) { _internal_set_launch_stage(value); // @@protoc_insertion_point(field_set:google.api.ClientLibrarySettings.launch_stage) } -inline ::google::api::LaunchStage ClientLibrarySettings::_internal_launch_stage() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::google::api::LaunchStage>(_impl_.launch_stage_); -} -inline void ClientLibrarySettings::_internal_set_launch_stage(::google::api::LaunchStage value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.launch_stage_ = value; -} // bool rest_numeric_enums = 3 [json_name = "restNumericEnums"]; inline void ClientLibrarySettings::clear_rest_numeric_enums() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.rest_numeric_enums_ = false; + rest_numeric_enums_ = false; +} +inline bool ClientLibrarySettings::_internal_rest_numeric_enums() const { + return rest_numeric_enums_; } inline bool ClientLibrarySettings::rest_numeric_enums() const { // @@protoc_insertion_point(field_get:google.api.ClientLibrarySettings.rest_numeric_enums) return _internal_rest_numeric_enums(); } +inline void ClientLibrarySettings::_internal_set_rest_numeric_enums(bool value) { + + rest_numeric_enums_ = value; +} inline void ClientLibrarySettings::set_rest_numeric_enums(bool value) { _internal_set_rest_numeric_enums(value); // @@protoc_insertion_point(field_set:google.api.ClientLibrarySettings.rest_numeric_enums) } -inline bool ClientLibrarySettings::_internal_rest_numeric_enums() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.rest_numeric_enums_; -} -inline void ClientLibrarySettings::_internal_set_rest_numeric_enums(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.rest_numeric_enums_ = value; -} // .google.api.JavaSettings java_settings = 21 [json_name = "javaSettings"]; +inline bool ClientLibrarySettings::_internal_has_java_settings() const { + return this != internal_default_instance() && java_settings_ != nullptr; +} inline bool ClientLibrarySettings::has_java_settings() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.java_settings_ != nullptr); - return value; + return _internal_has_java_settings(); } inline void ClientLibrarySettings::clear_java_settings() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.java_settings_ != nullptr) _impl_.java_settings_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && java_settings_ != nullptr) { + delete java_settings_; + } + java_settings_ = nullptr; } inline const ::google::api::JavaSettings& ClientLibrarySettings::_internal_java_settings() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::JavaSettings* p = _impl_.java_settings_; - return p != nullptr ? *p : reinterpret_cast(::google::api::_JavaSettings_default_instance_); + const ::google::api::JavaSettings* p = java_settings_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::_JavaSettings_default_instance_); } -inline const ::google::api::JavaSettings& ClientLibrarySettings::java_settings() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::JavaSettings& ClientLibrarySettings::java_settings() const { // @@protoc_insertion_point(field_get:google.api.ClientLibrarySettings.java_settings) return _internal_java_settings(); } -inline void ClientLibrarySettings::unsafe_arena_set_allocated_java_settings(::google::api::JavaSettings* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.java_settings_); +inline void ClientLibrarySettings::unsafe_arena_set_allocated_java_settings( + ::google::api::JavaSettings* java_settings) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(java_settings_); } - _impl_.java_settings_ = reinterpret_cast<::google::api::JavaSettings*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + java_settings_ = java_settings; + if (java_settings) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.ClientLibrarySettings.java_settings) } inline ::google::api::JavaSettings* ClientLibrarySettings::release_java_settings() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::JavaSettings* released = _impl_.java_settings_; - _impl_.java_settings_ = nullptr; + + ::google::api::JavaSettings* temp = java_settings_; + java_settings_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::JavaSettings* ClientLibrarySettings::unsafe_arena_release_java_settings() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.ClientLibrarySettings.java_settings) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::JavaSettings* temp = _impl_.java_settings_; - _impl_.java_settings_ = nullptr; + + ::google::api::JavaSettings* temp = java_settings_; + java_settings_ = nullptr; return temp; } inline ::google::api::JavaSettings* ClientLibrarySettings::_internal_mutable_java_settings() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.java_settings_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::JavaSettings>(GetArena()); - _impl_.java_settings_ = reinterpret_cast<::google::api::JavaSettings*>(p); + + if (java_settings_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::JavaSettings>(GetArenaForAllocation()); + java_settings_ = p; } - return _impl_.java_settings_; + return java_settings_; } -inline ::google::api::JavaSettings* ClientLibrarySettings::mutable_java_settings() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::JavaSettings* ClientLibrarySettings::mutable_java_settings() { ::google::api::JavaSettings* _msg = _internal_mutable_java_settings(); // @@protoc_insertion_point(field_mutable:google.api.ClientLibrarySettings.java_settings) return _msg; } -inline void ClientLibrarySettings::set_allocated_java_settings(::google::api::JavaSettings* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ClientLibrarySettings::set_allocated_java_settings(::google::api::JavaSettings* java_settings) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::api::JavaSettings*>(_impl_.java_settings_); + delete java_settings_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::api::JavaSettings*>(value)->GetArena(); + if (java_settings) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(java_settings); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + java_settings = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, java_settings, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.java_settings_ = reinterpret_cast<::google::api::JavaSettings*>(value); + java_settings_ = java_settings; // @@protoc_insertion_point(field_set_allocated:google.api.ClientLibrarySettings.java_settings) } // .google.api.CppSettings cpp_settings = 22 [json_name = "cppSettings"]; +inline bool ClientLibrarySettings::_internal_has_cpp_settings() const { + return this != internal_default_instance() && cpp_settings_ != nullptr; +} inline bool ClientLibrarySettings::has_cpp_settings() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.cpp_settings_ != nullptr); - return value; + return _internal_has_cpp_settings(); } inline void ClientLibrarySettings::clear_cpp_settings() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.cpp_settings_ != nullptr) _impl_.cpp_settings_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && cpp_settings_ != nullptr) { + delete cpp_settings_; + } + cpp_settings_ = nullptr; } inline const ::google::api::CppSettings& ClientLibrarySettings::_internal_cpp_settings() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::CppSettings* p = _impl_.cpp_settings_; - return p != nullptr ? *p : reinterpret_cast(::google::api::_CppSettings_default_instance_); + const ::google::api::CppSettings* p = cpp_settings_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::_CppSettings_default_instance_); } -inline const ::google::api::CppSettings& ClientLibrarySettings::cpp_settings() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::CppSettings& ClientLibrarySettings::cpp_settings() const { // @@protoc_insertion_point(field_get:google.api.ClientLibrarySettings.cpp_settings) return _internal_cpp_settings(); } -inline void ClientLibrarySettings::unsafe_arena_set_allocated_cpp_settings(::google::api::CppSettings* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.cpp_settings_); +inline void ClientLibrarySettings::unsafe_arena_set_allocated_cpp_settings( + ::google::api::CppSettings* cpp_settings) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(cpp_settings_); } - _impl_.cpp_settings_ = reinterpret_cast<::google::api::CppSettings*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + cpp_settings_ = cpp_settings; + if (cpp_settings) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.ClientLibrarySettings.cpp_settings) } inline ::google::api::CppSettings* ClientLibrarySettings::release_cpp_settings() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::api::CppSettings* released = _impl_.cpp_settings_; - _impl_.cpp_settings_ = nullptr; + + ::google::api::CppSettings* temp = cpp_settings_; + cpp_settings_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::CppSettings* ClientLibrarySettings::unsafe_arena_release_cpp_settings() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.ClientLibrarySettings.cpp_settings) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::api::CppSettings* temp = _impl_.cpp_settings_; - _impl_.cpp_settings_ = nullptr; + + ::google::api::CppSettings* temp = cpp_settings_; + cpp_settings_ = nullptr; return temp; } inline ::google::api::CppSettings* ClientLibrarySettings::_internal_mutable_cpp_settings() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.cpp_settings_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::CppSettings>(GetArena()); - _impl_.cpp_settings_ = reinterpret_cast<::google::api::CppSettings*>(p); + + if (cpp_settings_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::CppSettings>(GetArenaForAllocation()); + cpp_settings_ = p; } - return _impl_.cpp_settings_; + return cpp_settings_; } -inline ::google::api::CppSettings* ClientLibrarySettings::mutable_cpp_settings() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::CppSettings* ClientLibrarySettings::mutable_cpp_settings() { ::google::api::CppSettings* _msg = _internal_mutable_cpp_settings(); // @@protoc_insertion_point(field_mutable:google.api.ClientLibrarySettings.cpp_settings) return _msg; } -inline void ClientLibrarySettings::set_allocated_cpp_settings(::google::api::CppSettings* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ClientLibrarySettings::set_allocated_cpp_settings(::google::api::CppSettings* cpp_settings) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::api::CppSettings*>(_impl_.cpp_settings_); + delete cpp_settings_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::api::CppSettings*>(value)->GetArena(); + if (cpp_settings) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(cpp_settings); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + cpp_settings = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, cpp_settings, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.cpp_settings_ = reinterpret_cast<::google::api::CppSettings*>(value); + cpp_settings_ = cpp_settings; // @@protoc_insertion_point(field_set_allocated:google.api.ClientLibrarySettings.cpp_settings) } // .google.api.PhpSettings php_settings = 23 [json_name = "phpSettings"]; +inline bool ClientLibrarySettings::_internal_has_php_settings() const { + return this != internal_default_instance() && php_settings_ != nullptr; +} inline bool ClientLibrarySettings::has_php_settings() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || _impl_.php_settings_ != nullptr); - return value; + return _internal_has_php_settings(); } inline void ClientLibrarySettings::clear_php_settings() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.php_settings_ != nullptr) _impl_.php_settings_->Clear(); - _impl_._has_bits_[0] &= ~0x00000004u; + if (GetArenaForAllocation() == nullptr && php_settings_ != nullptr) { + delete php_settings_; + } + php_settings_ = nullptr; } inline const ::google::api::PhpSettings& ClientLibrarySettings::_internal_php_settings() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::PhpSettings* p = _impl_.php_settings_; - return p != nullptr ? *p : reinterpret_cast(::google::api::_PhpSettings_default_instance_); + const ::google::api::PhpSettings* p = php_settings_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::_PhpSettings_default_instance_); } -inline const ::google::api::PhpSettings& ClientLibrarySettings::php_settings() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::PhpSettings& ClientLibrarySettings::php_settings() const { // @@protoc_insertion_point(field_get:google.api.ClientLibrarySettings.php_settings) return _internal_php_settings(); } -inline void ClientLibrarySettings::unsafe_arena_set_allocated_php_settings(::google::api::PhpSettings* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.php_settings_); +inline void ClientLibrarySettings::unsafe_arena_set_allocated_php_settings( + ::google::api::PhpSettings* php_settings) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(php_settings_); } - _impl_.php_settings_ = reinterpret_cast<::google::api::PhpSettings*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000004u; + php_settings_ = php_settings; + if (php_settings) { + } else { - _impl_._has_bits_[0] &= ~0x00000004u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.ClientLibrarySettings.php_settings) } inline ::google::api::PhpSettings* ClientLibrarySettings::release_php_settings() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000004u; - ::google::api::PhpSettings* released = _impl_.php_settings_; - _impl_.php_settings_ = nullptr; + + ::google::api::PhpSettings* temp = php_settings_; + php_settings_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::PhpSettings* ClientLibrarySettings::unsafe_arena_release_php_settings() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.ClientLibrarySettings.php_settings) - - _impl_._has_bits_[0] &= ~0x00000004u; - ::google::api::PhpSettings* temp = _impl_.php_settings_; - _impl_.php_settings_ = nullptr; + + ::google::api::PhpSettings* temp = php_settings_; + php_settings_ = nullptr; return temp; } inline ::google::api::PhpSettings* ClientLibrarySettings::_internal_mutable_php_settings() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - if (_impl_.php_settings_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::PhpSettings>(GetArena()); - _impl_.php_settings_ = reinterpret_cast<::google::api::PhpSettings*>(p); + + if (php_settings_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::PhpSettings>(GetArenaForAllocation()); + php_settings_ = p; } - return _impl_.php_settings_; + return php_settings_; } -inline ::google::api::PhpSettings* ClientLibrarySettings::mutable_php_settings() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::PhpSettings* ClientLibrarySettings::mutable_php_settings() { ::google::api::PhpSettings* _msg = _internal_mutable_php_settings(); // @@protoc_insertion_point(field_mutable:google.api.ClientLibrarySettings.php_settings) return _msg; } -inline void ClientLibrarySettings::set_allocated_php_settings(::google::api::PhpSettings* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ClientLibrarySettings::set_allocated_php_settings(::google::api::PhpSettings* php_settings) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::api::PhpSettings*>(_impl_.php_settings_); + delete php_settings_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::api::PhpSettings*>(value)->GetArena(); + if (php_settings) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(php_settings); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + php_settings = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, php_settings, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000004u; + } else { - _impl_._has_bits_[0] &= ~0x00000004u; + } - - _impl_.php_settings_ = reinterpret_cast<::google::api::PhpSettings*>(value); + php_settings_ = php_settings; // @@protoc_insertion_point(field_set_allocated:google.api.ClientLibrarySettings.php_settings) } // .google.api.PythonSettings python_settings = 24 [json_name = "pythonSettings"]; +inline bool ClientLibrarySettings::_internal_has_python_settings() const { + return this != internal_default_instance() && python_settings_ != nullptr; +} inline bool ClientLibrarySettings::has_python_settings() const { - bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; - PROTOBUF_ASSUME(!value || _impl_.python_settings_ != nullptr); - return value; + return _internal_has_python_settings(); } inline void ClientLibrarySettings::clear_python_settings() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.python_settings_ != nullptr) _impl_.python_settings_->Clear(); - _impl_._has_bits_[0] &= ~0x00000008u; + if (GetArenaForAllocation() == nullptr && python_settings_ != nullptr) { + delete python_settings_; + } + python_settings_ = nullptr; } inline const ::google::api::PythonSettings& ClientLibrarySettings::_internal_python_settings() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::PythonSettings* p = _impl_.python_settings_; - return p != nullptr ? *p : reinterpret_cast(::google::api::_PythonSettings_default_instance_); + const ::google::api::PythonSettings* p = python_settings_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::_PythonSettings_default_instance_); } -inline const ::google::api::PythonSettings& ClientLibrarySettings::python_settings() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::PythonSettings& ClientLibrarySettings::python_settings() const { // @@protoc_insertion_point(field_get:google.api.ClientLibrarySettings.python_settings) return _internal_python_settings(); } -inline void ClientLibrarySettings::unsafe_arena_set_allocated_python_settings(::google::api::PythonSettings* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.python_settings_); +inline void ClientLibrarySettings::unsafe_arena_set_allocated_python_settings( + ::google::api::PythonSettings* python_settings) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(python_settings_); } - _impl_.python_settings_ = reinterpret_cast<::google::api::PythonSettings*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000008u; + python_settings_ = python_settings; + if (python_settings) { + } else { - _impl_._has_bits_[0] &= ~0x00000008u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.ClientLibrarySettings.python_settings) } inline ::google::api::PythonSettings* ClientLibrarySettings::release_python_settings() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000008u; - ::google::api::PythonSettings* released = _impl_.python_settings_; - _impl_.python_settings_ = nullptr; + + ::google::api::PythonSettings* temp = python_settings_; + python_settings_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::PythonSettings* ClientLibrarySettings::unsafe_arena_release_python_settings() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.ClientLibrarySettings.python_settings) - - _impl_._has_bits_[0] &= ~0x00000008u; - ::google::api::PythonSettings* temp = _impl_.python_settings_; - _impl_.python_settings_ = nullptr; + + ::google::api::PythonSettings* temp = python_settings_; + python_settings_ = nullptr; return temp; } inline ::google::api::PythonSettings* ClientLibrarySettings::_internal_mutable_python_settings() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000008u; - if (_impl_.python_settings_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::PythonSettings>(GetArena()); - _impl_.python_settings_ = reinterpret_cast<::google::api::PythonSettings*>(p); + + if (python_settings_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::PythonSettings>(GetArenaForAllocation()); + python_settings_ = p; } - return _impl_.python_settings_; + return python_settings_; } -inline ::google::api::PythonSettings* ClientLibrarySettings::mutable_python_settings() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::PythonSettings* ClientLibrarySettings::mutable_python_settings() { ::google::api::PythonSettings* _msg = _internal_mutable_python_settings(); // @@protoc_insertion_point(field_mutable:google.api.ClientLibrarySettings.python_settings) return _msg; } -inline void ClientLibrarySettings::set_allocated_python_settings(::google::api::PythonSettings* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ClientLibrarySettings::set_allocated_python_settings(::google::api::PythonSettings* python_settings) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::api::PythonSettings*>(_impl_.python_settings_); + delete python_settings_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::api::PythonSettings*>(value)->GetArena(); + if (python_settings) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(python_settings); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + python_settings = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, python_settings, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000008u; + } else { - _impl_._has_bits_[0] &= ~0x00000008u; + } - - _impl_.python_settings_ = reinterpret_cast<::google::api::PythonSettings*>(value); + python_settings_ = python_settings; // @@protoc_insertion_point(field_set_allocated:google.api.ClientLibrarySettings.python_settings) } // .google.api.NodeSettings node_settings = 25 [json_name = "nodeSettings"]; +inline bool ClientLibrarySettings::_internal_has_node_settings() const { + return this != internal_default_instance() && node_settings_ != nullptr; +} inline bool ClientLibrarySettings::has_node_settings() const { - bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; - PROTOBUF_ASSUME(!value || _impl_.node_settings_ != nullptr); - return value; + return _internal_has_node_settings(); } inline void ClientLibrarySettings::clear_node_settings() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.node_settings_ != nullptr) _impl_.node_settings_->Clear(); - _impl_._has_bits_[0] &= ~0x00000010u; + if (GetArenaForAllocation() == nullptr && node_settings_ != nullptr) { + delete node_settings_; + } + node_settings_ = nullptr; } inline const ::google::api::NodeSettings& ClientLibrarySettings::_internal_node_settings() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::NodeSettings* p = _impl_.node_settings_; - return p != nullptr ? *p : reinterpret_cast(::google::api::_NodeSettings_default_instance_); + const ::google::api::NodeSettings* p = node_settings_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::_NodeSettings_default_instance_); } -inline const ::google::api::NodeSettings& ClientLibrarySettings::node_settings() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::NodeSettings& ClientLibrarySettings::node_settings() const { // @@protoc_insertion_point(field_get:google.api.ClientLibrarySettings.node_settings) return _internal_node_settings(); } -inline void ClientLibrarySettings::unsafe_arena_set_allocated_node_settings(::google::api::NodeSettings* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.node_settings_); +inline void ClientLibrarySettings::unsafe_arena_set_allocated_node_settings( + ::google::api::NodeSettings* node_settings) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(node_settings_); } - _impl_.node_settings_ = reinterpret_cast<::google::api::NodeSettings*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000010u; + node_settings_ = node_settings; + if (node_settings) { + } else { - _impl_._has_bits_[0] &= ~0x00000010u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.ClientLibrarySettings.node_settings) } inline ::google::api::NodeSettings* ClientLibrarySettings::release_node_settings() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000010u; - ::google::api::NodeSettings* released = _impl_.node_settings_; - _impl_.node_settings_ = nullptr; + + ::google::api::NodeSettings* temp = node_settings_; + node_settings_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::NodeSettings* ClientLibrarySettings::unsafe_arena_release_node_settings() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.ClientLibrarySettings.node_settings) - - _impl_._has_bits_[0] &= ~0x00000010u; - ::google::api::NodeSettings* temp = _impl_.node_settings_; - _impl_.node_settings_ = nullptr; + + ::google::api::NodeSettings* temp = node_settings_; + node_settings_ = nullptr; return temp; } inline ::google::api::NodeSettings* ClientLibrarySettings::_internal_mutable_node_settings() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000010u; - if (_impl_.node_settings_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::NodeSettings>(GetArena()); - _impl_.node_settings_ = reinterpret_cast<::google::api::NodeSettings*>(p); + + if (node_settings_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::NodeSettings>(GetArenaForAllocation()); + node_settings_ = p; } - return _impl_.node_settings_; + return node_settings_; } -inline ::google::api::NodeSettings* ClientLibrarySettings::mutable_node_settings() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::NodeSettings* ClientLibrarySettings::mutable_node_settings() { ::google::api::NodeSettings* _msg = _internal_mutable_node_settings(); // @@protoc_insertion_point(field_mutable:google.api.ClientLibrarySettings.node_settings) return _msg; } -inline void ClientLibrarySettings::set_allocated_node_settings(::google::api::NodeSettings* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ClientLibrarySettings::set_allocated_node_settings(::google::api::NodeSettings* node_settings) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::api::NodeSettings*>(_impl_.node_settings_); + delete node_settings_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::api::NodeSettings*>(value)->GetArena(); + if (node_settings) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(node_settings); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + node_settings = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, node_settings, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000010u; + } else { - _impl_._has_bits_[0] &= ~0x00000010u; + } - - _impl_.node_settings_ = reinterpret_cast<::google::api::NodeSettings*>(value); + node_settings_ = node_settings; // @@protoc_insertion_point(field_set_allocated:google.api.ClientLibrarySettings.node_settings) } // .google.api.DotnetSettings dotnet_settings = 26 [json_name = "dotnetSettings"]; +inline bool ClientLibrarySettings::_internal_has_dotnet_settings() const { + return this != internal_default_instance() && dotnet_settings_ != nullptr; +} inline bool ClientLibrarySettings::has_dotnet_settings() const { - bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0; - PROTOBUF_ASSUME(!value || _impl_.dotnet_settings_ != nullptr); - return value; + return _internal_has_dotnet_settings(); } inline void ClientLibrarySettings::clear_dotnet_settings() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.dotnet_settings_ != nullptr) _impl_.dotnet_settings_->Clear(); - _impl_._has_bits_[0] &= ~0x00000020u; + if (GetArenaForAllocation() == nullptr && dotnet_settings_ != nullptr) { + delete dotnet_settings_; + } + dotnet_settings_ = nullptr; } inline const ::google::api::DotnetSettings& ClientLibrarySettings::_internal_dotnet_settings() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::DotnetSettings* p = _impl_.dotnet_settings_; - return p != nullptr ? *p : reinterpret_cast(::google::api::_DotnetSettings_default_instance_); + const ::google::api::DotnetSettings* p = dotnet_settings_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::_DotnetSettings_default_instance_); } -inline const ::google::api::DotnetSettings& ClientLibrarySettings::dotnet_settings() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::DotnetSettings& ClientLibrarySettings::dotnet_settings() const { // @@protoc_insertion_point(field_get:google.api.ClientLibrarySettings.dotnet_settings) return _internal_dotnet_settings(); } -inline void ClientLibrarySettings::unsafe_arena_set_allocated_dotnet_settings(::google::api::DotnetSettings* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.dotnet_settings_); +inline void ClientLibrarySettings::unsafe_arena_set_allocated_dotnet_settings( + ::google::api::DotnetSettings* dotnet_settings) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(dotnet_settings_); } - _impl_.dotnet_settings_ = reinterpret_cast<::google::api::DotnetSettings*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000020u; + dotnet_settings_ = dotnet_settings; + if (dotnet_settings) { + } else { - _impl_._has_bits_[0] &= ~0x00000020u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.ClientLibrarySettings.dotnet_settings) } inline ::google::api::DotnetSettings* ClientLibrarySettings::release_dotnet_settings() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000020u; - ::google::api::DotnetSettings* released = _impl_.dotnet_settings_; - _impl_.dotnet_settings_ = nullptr; + + ::google::api::DotnetSettings* temp = dotnet_settings_; + dotnet_settings_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::DotnetSettings* ClientLibrarySettings::unsafe_arena_release_dotnet_settings() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.ClientLibrarySettings.dotnet_settings) - - _impl_._has_bits_[0] &= ~0x00000020u; - ::google::api::DotnetSettings* temp = _impl_.dotnet_settings_; - _impl_.dotnet_settings_ = nullptr; + + ::google::api::DotnetSettings* temp = dotnet_settings_; + dotnet_settings_ = nullptr; return temp; } inline ::google::api::DotnetSettings* ClientLibrarySettings::_internal_mutable_dotnet_settings() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000020u; - if (_impl_.dotnet_settings_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::DotnetSettings>(GetArena()); - _impl_.dotnet_settings_ = reinterpret_cast<::google::api::DotnetSettings*>(p); + + if (dotnet_settings_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::DotnetSettings>(GetArenaForAllocation()); + dotnet_settings_ = p; } - return _impl_.dotnet_settings_; + return dotnet_settings_; } -inline ::google::api::DotnetSettings* ClientLibrarySettings::mutable_dotnet_settings() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::DotnetSettings* ClientLibrarySettings::mutable_dotnet_settings() { ::google::api::DotnetSettings* _msg = _internal_mutable_dotnet_settings(); // @@protoc_insertion_point(field_mutable:google.api.ClientLibrarySettings.dotnet_settings) return _msg; } -inline void ClientLibrarySettings::set_allocated_dotnet_settings(::google::api::DotnetSettings* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ClientLibrarySettings::set_allocated_dotnet_settings(::google::api::DotnetSettings* dotnet_settings) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::api::DotnetSettings*>(_impl_.dotnet_settings_); + delete dotnet_settings_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::api::DotnetSettings*>(value)->GetArena(); + if (dotnet_settings) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(dotnet_settings); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + dotnet_settings = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, dotnet_settings, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000020u; + } else { - _impl_._has_bits_[0] &= ~0x00000020u; + } - - _impl_.dotnet_settings_ = reinterpret_cast<::google::api::DotnetSettings*>(value); + dotnet_settings_ = dotnet_settings; // @@protoc_insertion_point(field_set_allocated:google.api.ClientLibrarySettings.dotnet_settings) } // .google.api.RubySettings ruby_settings = 27 [json_name = "rubySettings"]; +inline bool ClientLibrarySettings::_internal_has_ruby_settings() const { + return this != internal_default_instance() && ruby_settings_ != nullptr; +} inline bool ClientLibrarySettings::has_ruby_settings() const { - bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0; - PROTOBUF_ASSUME(!value || _impl_.ruby_settings_ != nullptr); - return value; + return _internal_has_ruby_settings(); } inline void ClientLibrarySettings::clear_ruby_settings() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.ruby_settings_ != nullptr) _impl_.ruby_settings_->Clear(); - _impl_._has_bits_[0] &= ~0x00000040u; + if (GetArenaForAllocation() == nullptr && ruby_settings_ != nullptr) { + delete ruby_settings_; + } + ruby_settings_ = nullptr; } inline const ::google::api::RubySettings& ClientLibrarySettings::_internal_ruby_settings() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::RubySettings* p = _impl_.ruby_settings_; - return p != nullptr ? *p : reinterpret_cast(::google::api::_RubySettings_default_instance_); + const ::google::api::RubySettings* p = ruby_settings_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::_RubySettings_default_instance_); } -inline const ::google::api::RubySettings& ClientLibrarySettings::ruby_settings() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::RubySettings& ClientLibrarySettings::ruby_settings() const { // @@protoc_insertion_point(field_get:google.api.ClientLibrarySettings.ruby_settings) return _internal_ruby_settings(); } -inline void ClientLibrarySettings::unsafe_arena_set_allocated_ruby_settings(::google::api::RubySettings* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.ruby_settings_); +inline void ClientLibrarySettings::unsafe_arena_set_allocated_ruby_settings( + ::google::api::RubySettings* ruby_settings) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(ruby_settings_); } - _impl_.ruby_settings_ = reinterpret_cast<::google::api::RubySettings*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000040u; + ruby_settings_ = ruby_settings; + if (ruby_settings) { + } else { - _impl_._has_bits_[0] &= ~0x00000040u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.ClientLibrarySettings.ruby_settings) } inline ::google::api::RubySettings* ClientLibrarySettings::release_ruby_settings() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000040u; - ::google::api::RubySettings* released = _impl_.ruby_settings_; - _impl_.ruby_settings_ = nullptr; + + ::google::api::RubySettings* temp = ruby_settings_; + ruby_settings_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::RubySettings* ClientLibrarySettings::unsafe_arena_release_ruby_settings() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.ClientLibrarySettings.ruby_settings) - - _impl_._has_bits_[0] &= ~0x00000040u; - ::google::api::RubySettings* temp = _impl_.ruby_settings_; - _impl_.ruby_settings_ = nullptr; + + ::google::api::RubySettings* temp = ruby_settings_; + ruby_settings_ = nullptr; return temp; } inline ::google::api::RubySettings* ClientLibrarySettings::_internal_mutable_ruby_settings() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000040u; - if (_impl_.ruby_settings_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::RubySettings>(GetArena()); - _impl_.ruby_settings_ = reinterpret_cast<::google::api::RubySettings*>(p); + + if (ruby_settings_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::RubySettings>(GetArenaForAllocation()); + ruby_settings_ = p; } - return _impl_.ruby_settings_; + return ruby_settings_; } -inline ::google::api::RubySettings* ClientLibrarySettings::mutable_ruby_settings() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::RubySettings* ClientLibrarySettings::mutable_ruby_settings() { ::google::api::RubySettings* _msg = _internal_mutable_ruby_settings(); // @@protoc_insertion_point(field_mutable:google.api.ClientLibrarySettings.ruby_settings) return _msg; } -inline void ClientLibrarySettings::set_allocated_ruby_settings(::google::api::RubySettings* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ClientLibrarySettings::set_allocated_ruby_settings(::google::api::RubySettings* ruby_settings) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::api::RubySettings*>(_impl_.ruby_settings_); + delete ruby_settings_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::api::RubySettings*>(value)->GetArena(); + if (ruby_settings) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(ruby_settings); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + ruby_settings = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, ruby_settings, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000040u; + } else { - _impl_._has_bits_[0] &= ~0x00000040u; + } - - _impl_.ruby_settings_ = reinterpret_cast<::google::api::RubySettings*>(value); + ruby_settings_ = ruby_settings; // @@protoc_insertion_point(field_set_allocated:google.api.ClientLibrarySettings.ruby_settings) } // .google.api.GoSettings go_settings = 28 [json_name = "goSettings"]; +inline bool ClientLibrarySettings::_internal_has_go_settings() const { + return this != internal_default_instance() && go_settings_ != nullptr; +} inline bool ClientLibrarySettings::has_go_settings() const { - bool value = (_impl_._has_bits_[0] & 0x00000080u) != 0; - PROTOBUF_ASSUME(!value || _impl_.go_settings_ != nullptr); - return value; + return _internal_has_go_settings(); } inline void ClientLibrarySettings::clear_go_settings() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.go_settings_ != nullptr) _impl_.go_settings_->Clear(); - _impl_._has_bits_[0] &= ~0x00000080u; + if (GetArenaForAllocation() == nullptr && go_settings_ != nullptr) { + delete go_settings_; + } + go_settings_ = nullptr; } inline const ::google::api::GoSettings& ClientLibrarySettings::_internal_go_settings() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::GoSettings* p = _impl_.go_settings_; - return p != nullptr ? *p : reinterpret_cast(::google::api::_GoSettings_default_instance_); + const ::google::api::GoSettings* p = go_settings_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::_GoSettings_default_instance_); } -inline const ::google::api::GoSettings& ClientLibrarySettings::go_settings() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::GoSettings& ClientLibrarySettings::go_settings() const { // @@protoc_insertion_point(field_get:google.api.ClientLibrarySettings.go_settings) return _internal_go_settings(); } -inline void ClientLibrarySettings::unsafe_arena_set_allocated_go_settings(::google::api::GoSettings* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.go_settings_); +inline void ClientLibrarySettings::unsafe_arena_set_allocated_go_settings( + ::google::api::GoSettings* go_settings) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(go_settings_); } - _impl_.go_settings_ = reinterpret_cast<::google::api::GoSettings*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000080u; + go_settings_ = go_settings; + if (go_settings) { + } else { - _impl_._has_bits_[0] &= ~0x00000080u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.ClientLibrarySettings.go_settings) } inline ::google::api::GoSettings* ClientLibrarySettings::release_go_settings() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000080u; - ::google::api::GoSettings* released = _impl_.go_settings_; - _impl_.go_settings_ = nullptr; + + ::google::api::GoSettings* temp = go_settings_; + go_settings_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::GoSettings* ClientLibrarySettings::unsafe_arena_release_go_settings() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.ClientLibrarySettings.go_settings) - - _impl_._has_bits_[0] &= ~0x00000080u; - ::google::api::GoSettings* temp = _impl_.go_settings_; - _impl_.go_settings_ = nullptr; + + ::google::api::GoSettings* temp = go_settings_; + go_settings_ = nullptr; return temp; } inline ::google::api::GoSettings* ClientLibrarySettings::_internal_mutable_go_settings() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000080u; - if (_impl_.go_settings_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::GoSettings>(GetArena()); - _impl_.go_settings_ = reinterpret_cast<::google::api::GoSettings*>(p); + + if (go_settings_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::GoSettings>(GetArenaForAllocation()); + go_settings_ = p; } - return _impl_.go_settings_; + return go_settings_; } -inline ::google::api::GoSettings* ClientLibrarySettings::mutable_go_settings() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::GoSettings* ClientLibrarySettings::mutable_go_settings() { ::google::api::GoSettings* _msg = _internal_mutable_go_settings(); // @@protoc_insertion_point(field_mutable:google.api.ClientLibrarySettings.go_settings) return _msg; } -inline void ClientLibrarySettings::set_allocated_go_settings(::google::api::GoSettings* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ClientLibrarySettings::set_allocated_go_settings(::google::api::GoSettings* go_settings) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::api::GoSettings*>(_impl_.go_settings_); + delete go_settings_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::api::GoSettings*>(value)->GetArena(); + if (go_settings) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(go_settings); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + go_settings = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, go_settings, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000080u; + } else { - _impl_._has_bits_[0] &= ~0x00000080u; + } - - _impl_.go_settings_ = reinterpret_cast<::google::api::GoSettings*>(value); + go_settings_ = go_settings; // @@protoc_insertion_point(field_set_allocated:google.api.ClientLibrarySettings.go_settings) } @@ -4799,594 +4318,526 @@ inline void ClientLibrarySettings::set_allocated_go_settings(::google::api::GoSe // repeated .google.api.MethodSettings method_settings = 2 [json_name = "methodSettings"]; inline int Publishing::_internal_method_settings_size() const { - return _internal_method_settings().size(); + return method_settings_.size(); } inline int Publishing::method_settings_size() const { return _internal_method_settings_size(); } inline void Publishing::clear_method_settings() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.method_settings_.Clear(); + method_settings_.Clear(); } -inline ::google::api::MethodSettings* Publishing::mutable_method_settings(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::MethodSettings* Publishing::mutable_method_settings(int index) { // @@protoc_insertion_point(field_mutable:google.api.Publishing.method_settings) - return _internal_mutable_method_settings()->Mutable(index); + return method_settings_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::google::api::MethodSettings>* Publishing::mutable_method_settings() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::MethodSettings >* +Publishing::mutable_method_settings() { // @@protoc_insertion_point(field_mutable_list:google.api.Publishing.method_settings) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_method_settings(); + return &method_settings_; } -inline const ::google::api::MethodSettings& Publishing::method_settings(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::MethodSettings& Publishing::_internal_method_settings(int index) const { + return method_settings_.Get(index); +} +inline const ::google::api::MethodSettings& Publishing::method_settings(int index) const { // @@protoc_insertion_point(field_get:google.api.Publishing.method_settings) - return _internal_method_settings().Get(index); + return _internal_method_settings(index); +} +inline ::google::api::MethodSettings* Publishing::_internal_add_method_settings() { + return method_settings_.Add(); } -inline ::google::api::MethodSettings* Publishing::add_method_settings() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::google::api::MethodSettings* _add = _internal_mutable_method_settings()->Add(); +inline ::google::api::MethodSettings* Publishing::add_method_settings() { + ::google::api::MethodSettings* _add = _internal_add_method_settings(); // @@protoc_insertion_point(field_add:google.api.Publishing.method_settings) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::google::api::MethodSettings>& Publishing::method_settings() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::MethodSettings >& +Publishing::method_settings() const { // @@protoc_insertion_point(field_list:google.api.Publishing.method_settings) - return _internal_method_settings(); -} -inline const ::google::protobuf::RepeatedPtrField<::google::api::MethodSettings>& -Publishing::_internal_method_settings() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.method_settings_; -} -inline ::google::protobuf::RepeatedPtrField<::google::api::MethodSettings>* -Publishing::_internal_mutable_method_settings() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.method_settings_; + return method_settings_; } // string new_issue_uri = 101 [json_name = "newIssueUri"]; inline void Publishing::clear_new_issue_uri() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.new_issue_uri_.ClearToEmpty(); + new_issue_uri_.ClearToEmpty(); } -inline const std::string& Publishing::new_issue_uri() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Publishing::new_issue_uri() const { // @@protoc_insertion_point(field_get:google.api.Publishing.new_issue_uri) return _internal_new_issue_uri(); } -template -inline PROTOBUF_ALWAYS_INLINE void Publishing::set_new_issue_uri(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.new_issue_uri_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Publishing::set_new_issue_uri(ArgT0&& arg0, ArgT... args) { + + new_issue_uri_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.Publishing.new_issue_uri) } -inline std::string* Publishing::mutable_new_issue_uri() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Publishing::mutable_new_issue_uri() { std::string* _s = _internal_mutable_new_issue_uri(); // @@protoc_insertion_point(field_mutable:google.api.Publishing.new_issue_uri) return _s; } inline const std::string& Publishing::_internal_new_issue_uri() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.new_issue_uri_.Get(); + return new_issue_uri_.Get(); } inline void Publishing::_internal_set_new_issue_uri(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.new_issue_uri_.Set(value, GetArena()); + + new_issue_uri_.Set(value, GetArenaForAllocation()); } inline std::string* Publishing::_internal_mutable_new_issue_uri() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.new_issue_uri_.Mutable( GetArena()); + + return new_issue_uri_.Mutable(GetArenaForAllocation()); } inline std::string* Publishing::release_new_issue_uri() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.Publishing.new_issue_uri) - return _impl_.new_issue_uri_.Release(); -} -inline void Publishing::set_allocated_new_issue_uri(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.new_issue_uri_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.new_issue_uri_.IsDefault()) { - _impl_.new_issue_uri_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return new_issue_uri_.Release(); +} +inline void Publishing::set_allocated_new_issue_uri(std::string* new_issue_uri) { + if (new_issue_uri != nullptr) { + + } else { + + } + new_issue_uri_.SetAllocated(new_issue_uri, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (new_issue_uri_.IsDefault()) { + new_issue_uri_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.api.Publishing.new_issue_uri) } // string documentation_uri = 102 [json_name = "documentationUri"]; inline void Publishing::clear_documentation_uri() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.documentation_uri_.ClearToEmpty(); + documentation_uri_.ClearToEmpty(); } -inline const std::string& Publishing::documentation_uri() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Publishing::documentation_uri() const { // @@protoc_insertion_point(field_get:google.api.Publishing.documentation_uri) return _internal_documentation_uri(); } -template -inline PROTOBUF_ALWAYS_INLINE void Publishing::set_documentation_uri(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.documentation_uri_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Publishing::set_documentation_uri(ArgT0&& arg0, ArgT... args) { + + documentation_uri_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.Publishing.documentation_uri) } -inline std::string* Publishing::mutable_documentation_uri() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Publishing::mutable_documentation_uri() { std::string* _s = _internal_mutable_documentation_uri(); // @@protoc_insertion_point(field_mutable:google.api.Publishing.documentation_uri) return _s; } inline const std::string& Publishing::_internal_documentation_uri() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.documentation_uri_.Get(); + return documentation_uri_.Get(); } inline void Publishing::_internal_set_documentation_uri(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.documentation_uri_.Set(value, GetArena()); + + documentation_uri_.Set(value, GetArenaForAllocation()); } inline std::string* Publishing::_internal_mutable_documentation_uri() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.documentation_uri_.Mutable( GetArena()); + + return documentation_uri_.Mutable(GetArenaForAllocation()); } inline std::string* Publishing::release_documentation_uri() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.Publishing.documentation_uri) - return _impl_.documentation_uri_.Release(); -} -inline void Publishing::set_allocated_documentation_uri(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.documentation_uri_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.documentation_uri_.IsDefault()) { - _impl_.documentation_uri_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return documentation_uri_.Release(); +} +inline void Publishing::set_allocated_documentation_uri(std::string* documentation_uri) { + if (documentation_uri != nullptr) { + + } else { + + } + documentation_uri_.SetAllocated(documentation_uri, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (documentation_uri_.IsDefault()) { + documentation_uri_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.api.Publishing.documentation_uri) } // string api_short_name = 103 [json_name = "apiShortName"]; inline void Publishing::clear_api_short_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.api_short_name_.ClearToEmpty(); + api_short_name_.ClearToEmpty(); } -inline const std::string& Publishing::api_short_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Publishing::api_short_name() const { // @@protoc_insertion_point(field_get:google.api.Publishing.api_short_name) return _internal_api_short_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void Publishing::set_api_short_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.api_short_name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Publishing::set_api_short_name(ArgT0&& arg0, ArgT... args) { + + api_short_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.Publishing.api_short_name) } -inline std::string* Publishing::mutable_api_short_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Publishing::mutable_api_short_name() { std::string* _s = _internal_mutable_api_short_name(); // @@protoc_insertion_point(field_mutable:google.api.Publishing.api_short_name) return _s; } inline const std::string& Publishing::_internal_api_short_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.api_short_name_.Get(); + return api_short_name_.Get(); } inline void Publishing::_internal_set_api_short_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.api_short_name_.Set(value, GetArena()); + + api_short_name_.Set(value, GetArenaForAllocation()); } inline std::string* Publishing::_internal_mutable_api_short_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.api_short_name_.Mutable( GetArena()); + + return api_short_name_.Mutable(GetArenaForAllocation()); } inline std::string* Publishing::release_api_short_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.Publishing.api_short_name) - return _impl_.api_short_name_.Release(); -} -inline void Publishing::set_allocated_api_short_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.api_short_name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.api_short_name_.IsDefault()) { - _impl_.api_short_name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return api_short_name_.Release(); +} +inline void Publishing::set_allocated_api_short_name(std::string* api_short_name) { + if (api_short_name != nullptr) { + + } else { + + } + api_short_name_.SetAllocated(api_short_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (api_short_name_.IsDefault()) { + api_short_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.api.Publishing.api_short_name) } // string github_label = 104 [json_name = "githubLabel"]; inline void Publishing::clear_github_label() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.github_label_.ClearToEmpty(); + github_label_.ClearToEmpty(); } -inline const std::string& Publishing::github_label() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Publishing::github_label() const { // @@protoc_insertion_point(field_get:google.api.Publishing.github_label) return _internal_github_label(); } -template -inline PROTOBUF_ALWAYS_INLINE void Publishing::set_github_label(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.github_label_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Publishing::set_github_label(ArgT0&& arg0, ArgT... args) { + + github_label_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.Publishing.github_label) } -inline std::string* Publishing::mutable_github_label() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Publishing::mutable_github_label() { std::string* _s = _internal_mutable_github_label(); // @@protoc_insertion_point(field_mutable:google.api.Publishing.github_label) return _s; } inline const std::string& Publishing::_internal_github_label() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.github_label_.Get(); + return github_label_.Get(); } inline void Publishing::_internal_set_github_label(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.github_label_.Set(value, GetArena()); + + github_label_.Set(value, GetArenaForAllocation()); } inline std::string* Publishing::_internal_mutable_github_label() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.github_label_.Mutable( GetArena()); + + return github_label_.Mutable(GetArenaForAllocation()); } inline std::string* Publishing::release_github_label() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.Publishing.github_label) - return _impl_.github_label_.Release(); -} -inline void Publishing::set_allocated_github_label(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.github_label_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.github_label_.IsDefault()) { - _impl_.github_label_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return github_label_.Release(); +} +inline void Publishing::set_allocated_github_label(std::string* github_label) { + if (github_label != nullptr) { + + } else { + + } + github_label_.SetAllocated(github_label, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (github_label_.IsDefault()) { + github_label_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.api.Publishing.github_label) } // repeated string codeowner_github_teams = 105 [json_name = "codeownerGithubTeams"]; inline int Publishing::_internal_codeowner_github_teams_size() const { - return _internal_codeowner_github_teams().size(); + return codeowner_github_teams_.size(); } inline int Publishing::codeowner_github_teams_size() const { return _internal_codeowner_github_teams_size(); } inline void Publishing::clear_codeowner_github_teams() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.codeowner_github_teams_.Clear(); + codeowner_github_teams_.Clear(); } -inline std::string* Publishing::add_codeowner_github_teams() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_codeowner_github_teams()->Add(); +inline std::string* Publishing::add_codeowner_github_teams() { + std::string* _s = _internal_add_codeowner_github_teams(); // @@protoc_insertion_point(field_add_mutable:google.api.Publishing.codeowner_github_teams) return _s; } -inline const std::string& Publishing::codeowner_github_teams(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Publishing::_internal_codeowner_github_teams(int index) const { + return codeowner_github_teams_.Get(index); +} +inline const std::string& Publishing::codeowner_github_teams(int index) const { // @@protoc_insertion_point(field_get:google.api.Publishing.codeowner_github_teams) - return _internal_codeowner_github_teams().Get(index); + return _internal_codeowner_github_teams(index); } -inline std::string* Publishing::mutable_codeowner_github_teams(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Publishing::mutable_codeowner_github_teams(int index) { // @@protoc_insertion_point(field_mutable:google.api.Publishing.codeowner_github_teams) - return _internal_mutable_codeowner_github_teams()->Mutable(index); + return codeowner_github_teams_.Mutable(index); } inline void Publishing::set_codeowner_github_teams(int index, const std::string& value) { - _internal_mutable_codeowner_github_teams()->Mutable(index)->assign(value); + codeowner_github_teams_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set:google.api.Publishing.codeowner_github_teams) } inline void Publishing::set_codeowner_github_teams(int index, std::string&& value) { - _internal_mutable_codeowner_github_teams()->Mutable(index)->assign(std::move(value)); + codeowner_github_teams_.Mutable(index)->assign(std::move(value)); // @@protoc_insertion_point(field_set:google.api.Publishing.codeowner_github_teams) } inline void Publishing::set_codeowner_github_teams(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_codeowner_github_teams()->Mutable(index)->assign(value); + GOOGLE_DCHECK(value != nullptr); + codeowner_github_teams_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:google.api.Publishing.codeowner_github_teams) } -inline void Publishing::set_codeowner_github_teams(int index, const char* value, - std::size_t size) { - _internal_mutable_codeowner_github_teams()->Mutable(index)->assign( - reinterpret_cast(value), size); +inline void Publishing::set_codeowner_github_teams(int index, const char* value, size_t size) { + codeowner_github_teams_.Mutable(index)->assign( + reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:google.api.Publishing.codeowner_github_teams) } -inline void Publishing::set_codeowner_github_teams(int index, absl::string_view value) { - _internal_mutable_codeowner_github_teams()->Mutable(index)->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_set_string_piece:google.api.Publishing.codeowner_github_teams) +inline std::string* Publishing::_internal_add_codeowner_github_teams() { + return codeowner_github_teams_.Add(); } inline void Publishing::add_codeowner_github_teams(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_codeowner_github_teams()->Add()->assign(value); + codeowner_github_teams_.Add()->assign(value); // @@protoc_insertion_point(field_add:google.api.Publishing.codeowner_github_teams) } inline void Publishing::add_codeowner_github_teams(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_codeowner_github_teams()->Add(std::move(value)); + codeowner_github_teams_.Add(std::move(value)); // @@protoc_insertion_point(field_add:google.api.Publishing.codeowner_github_teams) } inline void Publishing::add_codeowner_github_teams(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_codeowner_github_teams()->Add()->assign(value); + GOOGLE_DCHECK(value != nullptr); + codeowner_github_teams_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:google.api.Publishing.codeowner_github_teams) } -inline void Publishing::add_codeowner_github_teams(const char* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_codeowner_github_teams()->Add()->assign( - reinterpret_cast(value), size); +inline void Publishing::add_codeowner_github_teams(const char* value, size_t size) { + codeowner_github_teams_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:google.api.Publishing.codeowner_github_teams) } -inline void Publishing::add_codeowner_github_teams(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_codeowner_github_teams()->Add()->assign(value.data(), value.size()); - // @@protoc_insertion_point(field_add_string_piece:google.api.Publishing.codeowner_github_teams) -} -inline const ::google::protobuf::RepeatedPtrField& -Publishing::codeowner_github_teams() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +Publishing::codeowner_github_teams() const { // @@protoc_insertion_point(field_list:google.api.Publishing.codeowner_github_teams) - return _internal_codeowner_github_teams(); + return codeowner_github_teams_; } -inline ::google::protobuf::RepeatedPtrField* -Publishing::mutable_codeowner_github_teams() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +Publishing::mutable_codeowner_github_teams() { // @@protoc_insertion_point(field_mutable_list:google.api.Publishing.codeowner_github_teams) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_codeowner_github_teams(); -} -inline const ::google::protobuf::RepeatedPtrField& -Publishing::_internal_codeowner_github_teams() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.codeowner_github_teams_; -} -inline ::google::protobuf::RepeatedPtrField* -Publishing::_internal_mutable_codeowner_github_teams() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.codeowner_github_teams_; + return &codeowner_github_teams_; } // string doc_tag_prefix = 106 [json_name = "docTagPrefix"]; inline void Publishing::clear_doc_tag_prefix() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.doc_tag_prefix_.ClearToEmpty(); + doc_tag_prefix_.ClearToEmpty(); } -inline const std::string& Publishing::doc_tag_prefix() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Publishing::doc_tag_prefix() const { // @@protoc_insertion_point(field_get:google.api.Publishing.doc_tag_prefix) return _internal_doc_tag_prefix(); } -template -inline PROTOBUF_ALWAYS_INLINE void Publishing::set_doc_tag_prefix(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.doc_tag_prefix_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Publishing::set_doc_tag_prefix(ArgT0&& arg0, ArgT... args) { + + doc_tag_prefix_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.Publishing.doc_tag_prefix) } -inline std::string* Publishing::mutable_doc_tag_prefix() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Publishing::mutable_doc_tag_prefix() { std::string* _s = _internal_mutable_doc_tag_prefix(); // @@protoc_insertion_point(field_mutable:google.api.Publishing.doc_tag_prefix) return _s; } inline const std::string& Publishing::_internal_doc_tag_prefix() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.doc_tag_prefix_.Get(); + return doc_tag_prefix_.Get(); } inline void Publishing::_internal_set_doc_tag_prefix(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.doc_tag_prefix_.Set(value, GetArena()); + + doc_tag_prefix_.Set(value, GetArenaForAllocation()); } inline std::string* Publishing::_internal_mutable_doc_tag_prefix() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.doc_tag_prefix_.Mutable( GetArena()); + + return doc_tag_prefix_.Mutable(GetArenaForAllocation()); } inline std::string* Publishing::release_doc_tag_prefix() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.Publishing.doc_tag_prefix) - return _impl_.doc_tag_prefix_.Release(); -} -inline void Publishing::set_allocated_doc_tag_prefix(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.doc_tag_prefix_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.doc_tag_prefix_.IsDefault()) { - _impl_.doc_tag_prefix_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return doc_tag_prefix_.Release(); +} +inline void Publishing::set_allocated_doc_tag_prefix(std::string* doc_tag_prefix) { + if (doc_tag_prefix != nullptr) { + + } else { + + } + doc_tag_prefix_.SetAllocated(doc_tag_prefix, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (doc_tag_prefix_.IsDefault()) { + doc_tag_prefix_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.api.Publishing.doc_tag_prefix) } // .google.api.ClientLibraryOrganization organization = 107 [json_name = "organization"]; inline void Publishing::clear_organization() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.organization_ = 0; + organization_ = 0; +} +inline ::google::api::ClientLibraryOrganization Publishing::_internal_organization() const { + return static_cast< ::google::api::ClientLibraryOrganization >(organization_); } inline ::google::api::ClientLibraryOrganization Publishing::organization() const { // @@protoc_insertion_point(field_get:google.api.Publishing.organization) return _internal_organization(); } +inline void Publishing::_internal_set_organization(::google::api::ClientLibraryOrganization value) { + + organization_ = value; +} inline void Publishing::set_organization(::google::api::ClientLibraryOrganization value) { _internal_set_organization(value); // @@protoc_insertion_point(field_set:google.api.Publishing.organization) } -inline ::google::api::ClientLibraryOrganization Publishing::_internal_organization() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::google::api::ClientLibraryOrganization>(_impl_.organization_); -} -inline void Publishing::_internal_set_organization(::google::api::ClientLibraryOrganization value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.organization_ = value; -} // repeated .google.api.ClientLibrarySettings library_settings = 109 [json_name = "librarySettings"]; inline int Publishing::_internal_library_settings_size() const { - return _internal_library_settings().size(); + return library_settings_.size(); } inline int Publishing::library_settings_size() const { return _internal_library_settings_size(); } inline void Publishing::clear_library_settings() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.library_settings_.Clear(); + library_settings_.Clear(); } -inline ::google::api::ClientLibrarySettings* Publishing::mutable_library_settings(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::ClientLibrarySettings* Publishing::mutable_library_settings(int index) { // @@protoc_insertion_point(field_mutable:google.api.Publishing.library_settings) - return _internal_mutable_library_settings()->Mutable(index); + return library_settings_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::google::api::ClientLibrarySettings>* Publishing::mutable_library_settings() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::ClientLibrarySettings >* +Publishing::mutable_library_settings() { // @@protoc_insertion_point(field_mutable_list:google.api.Publishing.library_settings) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_library_settings(); + return &library_settings_; } -inline const ::google::api::ClientLibrarySettings& Publishing::library_settings(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::ClientLibrarySettings& Publishing::_internal_library_settings(int index) const { + return library_settings_.Get(index); +} +inline const ::google::api::ClientLibrarySettings& Publishing::library_settings(int index) const { // @@protoc_insertion_point(field_get:google.api.Publishing.library_settings) - return _internal_library_settings().Get(index); + return _internal_library_settings(index); +} +inline ::google::api::ClientLibrarySettings* Publishing::_internal_add_library_settings() { + return library_settings_.Add(); } -inline ::google::api::ClientLibrarySettings* Publishing::add_library_settings() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::google::api::ClientLibrarySettings* _add = _internal_mutable_library_settings()->Add(); +inline ::google::api::ClientLibrarySettings* Publishing::add_library_settings() { + ::google::api::ClientLibrarySettings* _add = _internal_add_library_settings(); // @@protoc_insertion_point(field_add:google.api.Publishing.library_settings) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::google::api::ClientLibrarySettings>& Publishing::library_settings() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::ClientLibrarySettings >& +Publishing::library_settings() const { // @@protoc_insertion_point(field_list:google.api.Publishing.library_settings) - return _internal_library_settings(); -} -inline const ::google::protobuf::RepeatedPtrField<::google::api::ClientLibrarySettings>& -Publishing::_internal_library_settings() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.library_settings_; -} -inline ::google::protobuf::RepeatedPtrField<::google::api::ClientLibrarySettings>* -Publishing::_internal_mutable_library_settings() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.library_settings_; + return library_settings_; } // string proto_reference_documentation_uri = 110 [json_name = "protoReferenceDocumentationUri"]; inline void Publishing::clear_proto_reference_documentation_uri() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.proto_reference_documentation_uri_.ClearToEmpty(); + proto_reference_documentation_uri_.ClearToEmpty(); } -inline const std::string& Publishing::proto_reference_documentation_uri() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Publishing::proto_reference_documentation_uri() const { // @@protoc_insertion_point(field_get:google.api.Publishing.proto_reference_documentation_uri) return _internal_proto_reference_documentation_uri(); } -template -inline PROTOBUF_ALWAYS_INLINE void Publishing::set_proto_reference_documentation_uri(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.proto_reference_documentation_uri_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Publishing::set_proto_reference_documentation_uri(ArgT0&& arg0, ArgT... args) { + + proto_reference_documentation_uri_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.Publishing.proto_reference_documentation_uri) } -inline std::string* Publishing::mutable_proto_reference_documentation_uri() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Publishing::mutable_proto_reference_documentation_uri() { std::string* _s = _internal_mutable_proto_reference_documentation_uri(); // @@protoc_insertion_point(field_mutable:google.api.Publishing.proto_reference_documentation_uri) return _s; } inline const std::string& Publishing::_internal_proto_reference_documentation_uri() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.proto_reference_documentation_uri_.Get(); + return proto_reference_documentation_uri_.Get(); } inline void Publishing::_internal_set_proto_reference_documentation_uri(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.proto_reference_documentation_uri_.Set(value, GetArena()); + + proto_reference_documentation_uri_.Set(value, GetArenaForAllocation()); } inline std::string* Publishing::_internal_mutable_proto_reference_documentation_uri() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.proto_reference_documentation_uri_.Mutable( GetArena()); + + return proto_reference_documentation_uri_.Mutable(GetArenaForAllocation()); } inline std::string* Publishing::release_proto_reference_documentation_uri() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.Publishing.proto_reference_documentation_uri) - return _impl_.proto_reference_documentation_uri_.Release(); -} -inline void Publishing::set_allocated_proto_reference_documentation_uri(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.proto_reference_documentation_uri_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.proto_reference_documentation_uri_.IsDefault()) { - _impl_.proto_reference_documentation_uri_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return proto_reference_documentation_uri_.Release(); +} +inline void Publishing::set_allocated_proto_reference_documentation_uri(std::string* proto_reference_documentation_uri) { + if (proto_reference_documentation_uri != nullptr) { + + } else { + + } + proto_reference_documentation_uri_.SetAllocated(proto_reference_documentation_uri, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (proto_reference_documentation_uri_.IsDefault()) { + proto_reference_documentation_uri_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.api.Publishing.proto_reference_documentation_uri) } // string rest_reference_documentation_uri = 111 [json_name = "restReferenceDocumentationUri"]; inline void Publishing::clear_rest_reference_documentation_uri() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.rest_reference_documentation_uri_.ClearToEmpty(); + rest_reference_documentation_uri_.ClearToEmpty(); } -inline const std::string& Publishing::rest_reference_documentation_uri() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Publishing::rest_reference_documentation_uri() const { // @@protoc_insertion_point(field_get:google.api.Publishing.rest_reference_documentation_uri) return _internal_rest_reference_documentation_uri(); } -template -inline PROTOBUF_ALWAYS_INLINE void Publishing::set_rest_reference_documentation_uri(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.rest_reference_documentation_uri_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Publishing::set_rest_reference_documentation_uri(ArgT0&& arg0, ArgT... args) { + + rest_reference_documentation_uri_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.Publishing.rest_reference_documentation_uri) } -inline std::string* Publishing::mutable_rest_reference_documentation_uri() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Publishing::mutable_rest_reference_documentation_uri() { std::string* _s = _internal_mutable_rest_reference_documentation_uri(); // @@protoc_insertion_point(field_mutable:google.api.Publishing.rest_reference_documentation_uri) return _s; } inline const std::string& Publishing::_internal_rest_reference_documentation_uri() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.rest_reference_documentation_uri_.Get(); + return rest_reference_documentation_uri_.Get(); } inline void Publishing::_internal_set_rest_reference_documentation_uri(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.rest_reference_documentation_uri_.Set(value, GetArena()); + + rest_reference_documentation_uri_.Set(value, GetArenaForAllocation()); } inline std::string* Publishing::_internal_mutable_rest_reference_documentation_uri() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.rest_reference_documentation_uri_.Mutable( GetArena()); + + return rest_reference_documentation_uri_.Mutable(GetArenaForAllocation()); } inline std::string* Publishing::release_rest_reference_documentation_uri() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.Publishing.rest_reference_documentation_uri) - return _impl_.rest_reference_documentation_uri_.Release(); -} -inline void Publishing::set_allocated_rest_reference_documentation_uri(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.rest_reference_documentation_uri_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.rest_reference_documentation_uri_.IsDefault()) { - _impl_.rest_reference_documentation_uri_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return rest_reference_documentation_uri_.Release(); +} +inline void Publishing::set_allocated_rest_reference_documentation_uri(std::string* rest_reference_documentation_uri) { + if (rest_reference_documentation_uri != nullptr) { + + } else { + + } + rest_reference_documentation_uri_.SetAllocated(rest_reference_documentation_uri, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (rest_reference_documentation_uri_.IsDefault()) { + rest_reference_documentation_uri_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.api.Publishing.rest_reference_documentation_uri) } @@ -5398,178 +4849,170 @@ inline void Publishing::set_allocated_rest_reference_documentation_uri(std::stri // string library_package = 1 [json_name = "libraryPackage"]; inline void JavaSettings::clear_library_package() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.library_package_.ClearToEmpty(); + library_package_.ClearToEmpty(); } -inline const std::string& JavaSettings::library_package() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& JavaSettings::library_package() const { // @@protoc_insertion_point(field_get:google.api.JavaSettings.library_package) return _internal_library_package(); } -template -inline PROTOBUF_ALWAYS_INLINE void JavaSettings::set_library_package(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.library_package_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void JavaSettings::set_library_package(ArgT0&& arg0, ArgT... args) { + + library_package_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.JavaSettings.library_package) } -inline std::string* JavaSettings::mutable_library_package() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* JavaSettings::mutable_library_package() { std::string* _s = _internal_mutable_library_package(); // @@protoc_insertion_point(field_mutable:google.api.JavaSettings.library_package) return _s; } inline const std::string& JavaSettings::_internal_library_package() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.library_package_.Get(); + return library_package_.Get(); } inline void JavaSettings::_internal_set_library_package(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.library_package_.Set(value, GetArena()); + + library_package_.Set(value, GetArenaForAllocation()); } inline std::string* JavaSettings::_internal_mutable_library_package() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.library_package_.Mutable( GetArena()); + + return library_package_.Mutable(GetArenaForAllocation()); } inline std::string* JavaSettings::release_library_package() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.JavaSettings.library_package) - return _impl_.library_package_.Release(); -} -inline void JavaSettings::set_allocated_library_package(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.library_package_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.library_package_.IsDefault()) { - _impl_.library_package_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return library_package_.Release(); +} +inline void JavaSettings::set_allocated_library_package(std::string* library_package) { + if (library_package != nullptr) { + + } else { + + } + library_package_.SetAllocated(library_package, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (library_package_.IsDefault()) { + library_package_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.api.JavaSettings.library_package) } // map service_class_names = 2 [json_name = "serviceClassNames"]; inline int JavaSettings::_internal_service_class_names_size() const { - return _internal_service_class_names().size(); + return service_class_names_.size(); } inline int JavaSettings::service_class_names_size() const { return _internal_service_class_names_size(); } inline void JavaSettings::clear_service_class_names() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.service_class_names_.Clear(); + service_class_names_.Clear(); } -inline const ::google::protobuf::Map& JavaSettings::_internal_service_class_names() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.service_class_names_.GetMap(); +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +JavaSettings::_internal_service_class_names() const { + return service_class_names_.GetMap(); } -inline const ::google::protobuf::Map& JavaSettings::service_class_names() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +JavaSettings::service_class_names() const { // @@protoc_insertion_point(field_map:google.api.JavaSettings.service_class_names) return _internal_service_class_names(); } -inline ::google::protobuf::Map* JavaSettings::_internal_mutable_service_class_names() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.service_class_names_.MutableMap(); +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +JavaSettings::_internal_mutable_service_class_names() { + return service_class_names_.MutableMap(); } -inline ::google::protobuf::Map* JavaSettings::mutable_service_class_names() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +JavaSettings::mutable_service_class_names() { // @@protoc_insertion_point(field_mutable_map:google.api.JavaSettings.service_class_names) return _internal_mutable_service_class_names(); } // .google.api.CommonLanguageSettings common = 3 [json_name = "common"]; +inline bool JavaSettings::_internal_has_common() const { + return this != internal_default_instance() && common_ != nullptr; +} inline bool JavaSettings::has_common() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.common_ != nullptr); - return value; + return _internal_has_common(); } inline void JavaSettings::clear_common() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.common_ != nullptr) _impl_.common_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && common_ != nullptr) { + delete common_; + } + common_ = nullptr; } inline const ::google::api::CommonLanguageSettings& JavaSettings::_internal_common() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::CommonLanguageSettings* p = _impl_.common_; - return p != nullptr ? *p : reinterpret_cast(::google::api::_CommonLanguageSettings_default_instance_); + const ::google::api::CommonLanguageSettings* p = common_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::_CommonLanguageSettings_default_instance_); } -inline const ::google::api::CommonLanguageSettings& JavaSettings::common() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::CommonLanguageSettings& JavaSettings::common() const { // @@protoc_insertion_point(field_get:google.api.JavaSettings.common) return _internal_common(); } -inline void JavaSettings::unsafe_arena_set_allocated_common(::google::api::CommonLanguageSettings* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.common_); +inline void JavaSettings::unsafe_arena_set_allocated_common( + ::google::api::CommonLanguageSettings* common) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(common_); } - _impl_.common_ = reinterpret_cast<::google::api::CommonLanguageSettings*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + common_ = common; + if (common) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.JavaSettings.common) } inline ::google::api::CommonLanguageSettings* JavaSettings::release_common() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::CommonLanguageSettings* released = _impl_.common_; - _impl_.common_ = nullptr; + + ::google::api::CommonLanguageSettings* temp = common_; + common_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::CommonLanguageSettings* JavaSettings::unsafe_arena_release_common() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.JavaSettings.common) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::CommonLanguageSettings* temp = _impl_.common_; - _impl_.common_ = nullptr; + + ::google::api::CommonLanguageSettings* temp = common_; + common_ = nullptr; return temp; } inline ::google::api::CommonLanguageSettings* JavaSettings::_internal_mutable_common() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.common_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::CommonLanguageSettings>(GetArena()); - _impl_.common_ = reinterpret_cast<::google::api::CommonLanguageSettings*>(p); + + if (common_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::CommonLanguageSettings>(GetArenaForAllocation()); + common_ = p; } - return _impl_.common_; + return common_; } -inline ::google::api::CommonLanguageSettings* JavaSettings::mutable_common() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::CommonLanguageSettings* JavaSettings::mutable_common() { ::google::api::CommonLanguageSettings* _msg = _internal_mutable_common(); // @@protoc_insertion_point(field_mutable:google.api.JavaSettings.common) return _msg; } -inline void JavaSettings::set_allocated_common(::google::api::CommonLanguageSettings* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void JavaSettings::set_allocated_common(::google::api::CommonLanguageSettings* common) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::api::CommonLanguageSettings*>(_impl_.common_); + delete common_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::api::CommonLanguageSettings*>(value)->GetArena(); + if (common) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(common); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + common = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, common, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.common_ = reinterpret_cast<::google::api::CommonLanguageSettings*>(value); + common_ = common; // @@protoc_insertion_point(field_set_allocated:google.api.JavaSettings.common) } @@ -5578,98 +5021,92 @@ inline void JavaSettings::set_allocated_common(::google::api::CommonLanguageSett // CppSettings // .google.api.CommonLanguageSettings common = 1 [json_name = "common"]; +inline bool CppSettings::_internal_has_common() const { + return this != internal_default_instance() && common_ != nullptr; +} inline bool CppSettings::has_common() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.common_ != nullptr); - return value; + return _internal_has_common(); } inline void CppSettings::clear_common() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.common_ != nullptr) _impl_.common_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && common_ != nullptr) { + delete common_; + } + common_ = nullptr; } inline const ::google::api::CommonLanguageSettings& CppSettings::_internal_common() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::CommonLanguageSettings* p = _impl_.common_; - return p != nullptr ? *p : reinterpret_cast(::google::api::_CommonLanguageSettings_default_instance_); + const ::google::api::CommonLanguageSettings* p = common_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::_CommonLanguageSettings_default_instance_); } -inline const ::google::api::CommonLanguageSettings& CppSettings::common() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::CommonLanguageSettings& CppSettings::common() const { // @@protoc_insertion_point(field_get:google.api.CppSettings.common) return _internal_common(); } -inline void CppSettings::unsafe_arena_set_allocated_common(::google::api::CommonLanguageSettings* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.common_); +inline void CppSettings::unsafe_arena_set_allocated_common( + ::google::api::CommonLanguageSettings* common) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(common_); } - _impl_.common_ = reinterpret_cast<::google::api::CommonLanguageSettings*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + common_ = common; + if (common) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.CppSettings.common) } inline ::google::api::CommonLanguageSettings* CppSettings::release_common() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::CommonLanguageSettings* released = _impl_.common_; - _impl_.common_ = nullptr; + + ::google::api::CommonLanguageSettings* temp = common_; + common_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::CommonLanguageSettings* CppSettings::unsafe_arena_release_common() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.CppSettings.common) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::CommonLanguageSettings* temp = _impl_.common_; - _impl_.common_ = nullptr; + + ::google::api::CommonLanguageSettings* temp = common_; + common_ = nullptr; return temp; } inline ::google::api::CommonLanguageSettings* CppSettings::_internal_mutable_common() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.common_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::CommonLanguageSettings>(GetArena()); - _impl_.common_ = reinterpret_cast<::google::api::CommonLanguageSettings*>(p); + + if (common_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::CommonLanguageSettings>(GetArenaForAllocation()); + common_ = p; } - return _impl_.common_; + return common_; } -inline ::google::api::CommonLanguageSettings* CppSettings::mutable_common() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::CommonLanguageSettings* CppSettings::mutable_common() { ::google::api::CommonLanguageSettings* _msg = _internal_mutable_common(); // @@protoc_insertion_point(field_mutable:google.api.CppSettings.common) return _msg; } -inline void CppSettings::set_allocated_common(::google::api::CommonLanguageSettings* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void CppSettings::set_allocated_common(::google::api::CommonLanguageSettings* common) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::api::CommonLanguageSettings*>(_impl_.common_); + delete common_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::api::CommonLanguageSettings*>(value)->GetArena(); + if (common) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(common); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + common = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, common, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.common_ = reinterpret_cast<::google::api::CommonLanguageSettings*>(value); + common_ = common; // @@protoc_insertion_point(field_set_allocated:google.api.CppSettings.common) } @@ -5678,98 +5115,92 @@ inline void CppSettings::set_allocated_common(::google::api::CommonLanguageSetti // PhpSettings // .google.api.CommonLanguageSettings common = 1 [json_name = "common"]; +inline bool PhpSettings::_internal_has_common() const { + return this != internal_default_instance() && common_ != nullptr; +} inline bool PhpSettings::has_common() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.common_ != nullptr); - return value; + return _internal_has_common(); } inline void PhpSettings::clear_common() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.common_ != nullptr) _impl_.common_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && common_ != nullptr) { + delete common_; + } + common_ = nullptr; } inline const ::google::api::CommonLanguageSettings& PhpSettings::_internal_common() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::CommonLanguageSettings* p = _impl_.common_; - return p != nullptr ? *p : reinterpret_cast(::google::api::_CommonLanguageSettings_default_instance_); + const ::google::api::CommonLanguageSettings* p = common_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::_CommonLanguageSettings_default_instance_); } -inline const ::google::api::CommonLanguageSettings& PhpSettings::common() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::CommonLanguageSettings& PhpSettings::common() const { // @@protoc_insertion_point(field_get:google.api.PhpSettings.common) return _internal_common(); } -inline void PhpSettings::unsafe_arena_set_allocated_common(::google::api::CommonLanguageSettings* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.common_); +inline void PhpSettings::unsafe_arena_set_allocated_common( + ::google::api::CommonLanguageSettings* common) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(common_); } - _impl_.common_ = reinterpret_cast<::google::api::CommonLanguageSettings*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + common_ = common; + if (common) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.PhpSettings.common) } inline ::google::api::CommonLanguageSettings* PhpSettings::release_common() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::CommonLanguageSettings* released = _impl_.common_; - _impl_.common_ = nullptr; + + ::google::api::CommonLanguageSettings* temp = common_; + common_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::CommonLanguageSettings* PhpSettings::unsafe_arena_release_common() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.PhpSettings.common) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::CommonLanguageSettings* temp = _impl_.common_; - _impl_.common_ = nullptr; + + ::google::api::CommonLanguageSettings* temp = common_; + common_ = nullptr; return temp; } inline ::google::api::CommonLanguageSettings* PhpSettings::_internal_mutable_common() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.common_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::CommonLanguageSettings>(GetArena()); - _impl_.common_ = reinterpret_cast<::google::api::CommonLanguageSettings*>(p); + + if (common_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::CommonLanguageSettings>(GetArenaForAllocation()); + common_ = p; } - return _impl_.common_; + return common_; } -inline ::google::api::CommonLanguageSettings* PhpSettings::mutable_common() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::CommonLanguageSettings* PhpSettings::mutable_common() { ::google::api::CommonLanguageSettings* _msg = _internal_mutable_common(); // @@protoc_insertion_point(field_mutable:google.api.PhpSettings.common) return _msg; } -inline void PhpSettings::set_allocated_common(::google::api::CommonLanguageSettings* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void PhpSettings::set_allocated_common(::google::api::CommonLanguageSettings* common) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::api::CommonLanguageSettings*>(_impl_.common_); + delete common_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::api::CommonLanguageSettings*>(value)->GetArena(); + if (common) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(common); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + common = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, common, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.common_ = reinterpret_cast<::google::api::CommonLanguageSettings*>(value); + common_ = common; // @@protoc_insertion_point(field_set_allocated:google.api.PhpSettings.common) } @@ -5779,243 +5210,225 @@ inline void PhpSettings::set_allocated_common(::google::api::CommonLanguageSetti // bool rest_async_io_enabled = 1 [json_name = "restAsyncIoEnabled"]; inline void PythonSettings_ExperimentalFeatures::clear_rest_async_io_enabled() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.rest_async_io_enabled_ = false; + rest_async_io_enabled_ = false; +} +inline bool PythonSettings_ExperimentalFeatures::_internal_rest_async_io_enabled() const { + return rest_async_io_enabled_; } inline bool PythonSettings_ExperimentalFeatures::rest_async_io_enabled() const { // @@protoc_insertion_point(field_get:google.api.PythonSettings.ExperimentalFeatures.rest_async_io_enabled) return _internal_rest_async_io_enabled(); } +inline void PythonSettings_ExperimentalFeatures::_internal_set_rest_async_io_enabled(bool value) { + + rest_async_io_enabled_ = value; +} inline void PythonSettings_ExperimentalFeatures::set_rest_async_io_enabled(bool value) { _internal_set_rest_async_io_enabled(value); // @@protoc_insertion_point(field_set:google.api.PythonSettings.ExperimentalFeatures.rest_async_io_enabled) } -inline bool PythonSettings_ExperimentalFeatures::_internal_rest_async_io_enabled() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.rest_async_io_enabled_; -} -inline void PythonSettings_ExperimentalFeatures::_internal_set_rest_async_io_enabled(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.rest_async_io_enabled_ = value; -} // bool protobuf_pythonic_types_enabled = 2 [json_name = "protobufPythonicTypesEnabled"]; inline void PythonSettings_ExperimentalFeatures::clear_protobuf_pythonic_types_enabled() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.protobuf_pythonic_types_enabled_ = false; + protobuf_pythonic_types_enabled_ = false; +} +inline bool PythonSettings_ExperimentalFeatures::_internal_protobuf_pythonic_types_enabled() const { + return protobuf_pythonic_types_enabled_; } inline bool PythonSettings_ExperimentalFeatures::protobuf_pythonic_types_enabled() const { // @@protoc_insertion_point(field_get:google.api.PythonSettings.ExperimentalFeatures.protobuf_pythonic_types_enabled) return _internal_protobuf_pythonic_types_enabled(); } +inline void PythonSettings_ExperimentalFeatures::_internal_set_protobuf_pythonic_types_enabled(bool value) { + + protobuf_pythonic_types_enabled_ = value; +} inline void PythonSettings_ExperimentalFeatures::set_protobuf_pythonic_types_enabled(bool value) { _internal_set_protobuf_pythonic_types_enabled(value); // @@protoc_insertion_point(field_set:google.api.PythonSettings.ExperimentalFeatures.protobuf_pythonic_types_enabled) } -inline bool PythonSettings_ExperimentalFeatures::_internal_protobuf_pythonic_types_enabled() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.protobuf_pythonic_types_enabled_; -} -inline void PythonSettings_ExperimentalFeatures::_internal_set_protobuf_pythonic_types_enabled(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.protobuf_pythonic_types_enabled_ = value; -} // ------------------------------------------------------------------- // PythonSettings // .google.api.CommonLanguageSettings common = 1 [json_name = "common"]; +inline bool PythonSettings::_internal_has_common() const { + return this != internal_default_instance() && common_ != nullptr; +} inline bool PythonSettings::has_common() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.common_ != nullptr); - return value; + return _internal_has_common(); } inline void PythonSettings::clear_common() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.common_ != nullptr) _impl_.common_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && common_ != nullptr) { + delete common_; + } + common_ = nullptr; } inline const ::google::api::CommonLanguageSettings& PythonSettings::_internal_common() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::CommonLanguageSettings* p = _impl_.common_; - return p != nullptr ? *p : reinterpret_cast(::google::api::_CommonLanguageSettings_default_instance_); + const ::google::api::CommonLanguageSettings* p = common_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::_CommonLanguageSettings_default_instance_); } -inline const ::google::api::CommonLanguageSettings& PythonSettings::common() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::CommonLanguageSettings& PythonSettings::common() const { // @@protoc_insertion_point(field_get:google.api.PythonSettings.common) return _internal_common(); } -inline void PythonSettings::unsafe_arena_set_allocated_common(::google::api::CommonLanguageSettings* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.common_); +inline void PythonSettings::unsafe_arena_set_allocated_common( + ::google::api::CommonLanguageSettings* common) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(common_); } - _impl_.common_ = reinterpret_cast<::google::api::CommonLanguageSettings*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + common_ = common; + if (common) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.PythonSettings.common) } inline ::google::api::CommonLanguageSettings* PythonSettings::release_common() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::CommonLanguageSettings* released = _impl_.common_; - _impl_.common_ = nullptr; + + ::google::api::CommonLanguageSettings* temp = common_; + common_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::CommonLanguageSettings* PythonSettings::unsafe_arena_release_common() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.PythonSettings.common) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::CommonLanguageSettings* temp = _impl_.common_; - _impl_.common_ = nullptr; + + ::google::api::CommonLanguageSettings* temp = common_; + common_ = nullptr; return temp; } inline ::google::api::CommonLanguageSettings* PythonSettings::_internal_mutable_common() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.common_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::CommonLanguageSettings>(GetArena()); - _impl_.common_ = reinterpret_cast<::google::api::CommonLanguageSettings*>(p); + + if (common_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::CommonLanguageSettings>(GetArenaForAllocation()); + common_ = p; } - return _impl_.common_; + return common_; } -inline ::google::api::CommonLanguageSettings* PythonSettings::mutable_common() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::CommonLanguageSettings* PythonSettings::mutable_common() { ::google::api::CommonLanguageSettings* _msg = _internal_mutable_common(); // @@protoc_insertion_point(field_mutable:google.api.PythonSettings.common) return _msg; } -inline void PythonSettings::set_allocated_common(::google::api::CommonLanguageSettings* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void PythonSettings::set_allocated_common(::google::api::CommonLanguageSettings* common) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::api::CommonLanguageSettings*>(_impl_.common_); + delete common_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::api::CommonLanguageSettings*>(value)->GetArena(); + if (common) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(common); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + common = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, common, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.common_ = reinterpret_cast<::google::api::CommonLanguageSettings*>(value); + common_ = common; // @@protoc_insertion_point(field_set_allocated:google.api.PythonSettings.common) } // .google.api.PythonSettings.ExperimentalFeatures experimental_features = 2 [json_name = "experimentalFeatures"]; +inline bool PythonSettings::_internal_has_experimental_features() const { + return this != internal_default_instance() && experimental_features_ != nullptr; +} inline bool PythonSettings::has_experimental_features() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.experimental_features_ != nullptr); - return value; + return _internal_has_experimental_features(); } inline void PythonSettings::clear_experimental_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.experimental_features_ != nullptr) _impl_.experimental_features_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && experimental_features_ != nullptr) { + delete experimental_features_; + } + experimental_features_ = nullptr; } inline const ::google::api::PythonSettings_ExperimentalFeatures& PythonSettings::_internal_experimental_features() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::PythonSettings_ExperimentalFeatures* p = _impl_.experimental_features_; - return p != nullptr ? *p : reinterpret_cast(::google::api::_PythonSettings_ExperimentalFeatures_default_instance_); + const ::google::api::PythonSettings_ExperimentalFeatures* p = experimental_features_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::_PythonSettings_ExperimentalFeatures_default_instance_); } -inline const ::google::api::PythonSettings_ExperimentalFeatures& PythonSettings::experimental_features() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::PythonSettings_ExperimentalFeatures& PythonSettings::experimental_features() const { // @@protoc_insertion_point(field_get:google.api.PythonSettings.experimental_features) return _internal_experimental_features(); } -inline void PythonSettings::unsafe_arena_set_allocated_experimental_features(::google::api::PythonSettings_ExperimentalFeatures* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.experimental_features_); +inline void PythonSettings::unsafe_arena_set_allocated_experimental_features( + ::google::api::PythonSettings_ExperimentalFeatures* experimental_features) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(experimental_features_); } - _impl_.experimental_features_ = reinterpret_cast<::google::api::PythonSettings_ExperimentalFeatures*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + experimental_features_ = experimental_features; + if (experimental_features) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.PythonSettings.experimental_features) } inline ::google::api::PythonSettings_ExperimentalFeatures* PythonSettings::release_experimental_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::api::PythonSettings_ExperimentalFeatures* released = _impl_.experimental_features_; - _impl_.experimental_features_ = nullptr; + + ::google::api::PythonSettings_ExperimentalFeatures* temp = experimental_features_; + experimental_features_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::PythonSettings_ExperimentalFeatures* PythonSettings::unsafe_arena_release_experimental_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.PythonSettings.experimental_features) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::api::PythonSettings_ExperimentalFeatures* temp = _impl_.experimental_features_; - _impl_.experimental_features_ = nullptr; + + ::google::api::PythonSettings_ExperimentalFeatures* temp = experimental_features_; + experimental_features_ = nullptr; return temp; } inline ::google::api::PythonSettings_ExperimentalFeatures* PythonSettings::_internal_mutable_experimental_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.experimental_features_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::PythonSettings_ExperimentalFeatures>(GetArena()); - _impl_.experimental_features_ = reinterpret_cast<::google::api::PythonSettings_ExperimentalFeatures*>(p); + + if (experimental_features_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::PythonSettings_ExperimentalFeatures>(GetArenaForAllocation()); + experimental_features_ = p; } - return _impl_.experimental_features_; + return experimental_features_; } -inline ::google::api::PythonSettings_ExperimentalFeatures* PythonSettings::mutable_experimental_features() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::PythonSettings_ExperimentalFeatures* PythonSettings::mutable_experimental_features() { ::google::api::PythonSettings_ExperimentalFeatures* _msg = _internal_mutable_experimental_features(); // @@protoc_insertion_point(field_mutable:google.api.PythonSettings.experimental_features) return _msg; } -inline void PythonSettings::set_allocated_experimental_features(::google::api::PythonSettings_ExperimentalFeatures* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void PythonSettings::set_allocated_experimental_features(::google::api::PythonSettings_ExperimentalFeatures* experimental_features) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::api::PythonSettings_ExperimentalFeatures*>(_impl_.experimental_features_); + delete experimental_features_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::api::PythonSettings_ExperimentalFeatures*>(value)->GetArena(); + if (experimental_features) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(experimental_features); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + experimental_features = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, experimental_features, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.experimental_features_ = reinterpret_cast<::google::api::PythonSettings_ExperimentalFeatures*>(value); + experimental_features_ = experimental_features; // @@protoc_insertion_point(field_set_allocated:google.api.PythonSettings.experimental_features) } @@ -6024,98 +5437,92 @@ inline void PythonSettings::set_allocated_experimental_features(::google::api::P // NodeSettings // .google.api.CommonLanguageSettings common = 1 [json_name = "common"]; +inline bool NodeSettings::_internal_has_common() const { + return this != internal_default_instance() && common_ != nullptr; +} inline bool NodeSettings::has_common() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.common_ != nullptr); - return value; + return _internal_has_common(); } inline void NodeSettings::clear_common() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.common_ != nullptr) _impl_.common_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && common_ != nullptr) { + delete common_; + } + common_ = nullptr; } inline const ::google::api::CommonLanguageSettings& NodeSettings::_internal_common() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::CommonLanguageSettings* p = _impl_.common_; - return p != nullptr ? *p : reinterpret_cast(::google::api::_CommonLanguageSettings_default_instance_); + const ::google::api::CommonLanguageSettings* p = common_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::_CommonLanguageSettings_default_instance_); } -inline const ::google::api::CommonLanguageSettings& NodeSettings::common() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::CommonLanguageSettings& NodeSettings::common() const { // @@protoc_insertion_point(field_get:google.api.NodeSettings.common) return _internal_common(); } -inline void NodeSettings::unsafe_arena_set_allocated_common(::google::api::CommonLanguageSettings* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.common_); +inline void NodeSettings::unsafe_arena_set_allocated_common( + ::google::api::CommonLanguageSettings* common) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(common_); } - _impl_.common_ = reinterpret_cast<::google::api::CommonLanguageSettings*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + common_ = common; + if (common) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.NodeSettings.common) } inline ::google::api::CommonLanguageSettings* NodeSettings::release_common() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::CommonLanguageSettings* released = _impl_.common_; - _impl_.common_ = nullptr; + + ::google::api::CommonLanguageSettings* temp = common_; + common_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::CommonLanguageSettings* NodeSettings::unsafe_arena_release_common() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.NodeSettings.common) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::CommonLanguageSettings* temp = _impl_.common_; - _impl_.common_ = nullptr; + + ::google::api::CommonLanguageSettings* temp = common_; + common_ = nullptr; return temp; } inline ::google::api::CommonLanguageSettings* NodeSettings::_internal_mutable_common() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.common_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::CommonLanguageSettings>(GetArena()); - _impl_.common_ = reinterpret_cast<::google::api::CommonLanguageSettings*>(p); + + if (common_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::CommonLanguageSettings>(GetArenaForAllocation()); + common_ = p; } - return _impl_.common_; + return common_; } -inline ::google::api::CommonLanguageSettings* NodeSettings::mutable_common() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::CommonLanguageSettings* NodeSettings::mutable_common() { ::google::api::CommonLanguageSettings* _msg = _internal_mutable_common(); // @@protoc_insertion_point(field_mutable:google.api.NodeSettings.common) return _msg; } -inline void NodeSettings::set_allocated_common(::google::api::CommonLanguageSettings* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void NodeSettings::set_allocated_common(::google::api::CommonLanguageSettings* common) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::api::CommonLanguageSettings*>(_impl_.common_); + delete common_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::api::CommonLanguageSettings*>(value)->GetArena(); + if (common) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(common); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + common = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, common, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.common_ = reinterpret_cast<::google::api::CommonLanguageSettings*>(value); + common_ = common; // @@protoc_insertion_point(field_set_allocated:google.api.NodeSettings.common) } @@ -6128,458 +5535,376 @@ inline void NodeSettings::set_allocated_common(::google::api::CommonLanguageSett // DotnetSettings // .google.api.CommonLanguageSettings common = 1 [json_name = "common"]; +inline bool DotnetSettings::_internal_has_common() const { + return this != internal_default_instance() && common_ != nullptr; +} inline bool DotnetSettings::has_common() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.common_ != nullptr); - return value; + return _internal_has_common(); } inline void DotnetSettings::clear_common() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.common_ != nullptr) _impl_.common_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && common_ != nullptr) { + delete common_; + } + common_ = nullptr; } inline const ::google::api::CommonLanguageSettings& DotnetSettings::_internal_common() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::CommonLanguageSettings* p = _impl_.common_; - return p != nullptr ? *p : reinterpret_cast(::google::api::_CommonLanguageSettings_default_instance_); + const ::google::api::CommonLanguageSettings* p = common_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::_CommonLanguageSettings_default_instance_); } -inline const ::google::api::CommonLanguageSettings& DotnetSettings::common() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::CommonLanguageSettings& DotnetSettings::common() const { // @@protoc_insertion_point(field_get:google.api.DotnetSettings.common) return _internal_common(); } -inline void DotnetSettings::unsafe_arena_set_allocated_common(::google::api::CommonLanguageSettings* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.common_); +inline void DotnetSettings::unsafe_arena_set_allocated_common( + ::google::api::CommonLanguageSettings* common) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(common_); } - _impl_.common_ = reinterpret_cast<::google::api::CommonLanguageSettings*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + common_ = common; + if (common) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.DotnetSettings.common) } inline ::google::api::CommonLanguageSettings* DotnetSettings::release_common() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::CommonLanguageSettings* released = _impl_.common_; - _impl_.common_ = nullptr; + + ::google::api::CommonLanguageSettings* temp = common_; + common_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::CommonLanguageSettings* DotnetSettings::unsafe_arena_release_common() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.DotnetSettings.common) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::CommonLanguageSettings* temp = _impl_.common_; - _impl_.common_ = nullptr; + + ::google::api::CommonLanguageSettings* temp = common_; + common_ = nullptr; return temp; } inline ::google::api::CommonLanguageSettings* DotnetSettings::_internal_mutable_common() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.common_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::CommonLanguageSettings>(GetArena()); - _impl_.common_ = reinterpret_cast<::google::api::CommonLanguageSettings*>(p); + + if (common_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::CommonLanguageSettings>(GetArenaForAllocation()); + common_ = p; } - return _impl_.common_; + return common_; } -inline ::google::api::CommonLanguageSettings* DotnetSettings::mutable_common() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::CommonLanguageSettings* DotnetSettings::mutable_common() { ::google::api::CommonLanguageSettings* _msg = _internal_mutable_common(); // @@protoc_insertion_point(field_mutable:google.api.DotnetSettings.common) return _msg; } -inline void DotnetSettings::set_allocated_common(::google::api::CommonLanguageSettings* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void DotnetSettings::set_allocated_common(::google::api::CommonLanguageSettings* common) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::api::CommonLanguageSettings*>(_impl_.common_); + delete common_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::api::CommonLanguageSettings*>(value)->GetArena(); + if (common) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(common); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + common = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, common, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.common_ = reinterpret_cast<::google::api::CommonLanguageSettings*>(value); + common_ = common; // @@protoc_insertion_point(field_set_allocated:google.api.DotnetSettings.common) } // map renamed_services = 2 [json_name = "renamedServices"]; inline int DotnetSettings::_internal_renamed_services_size() const { - return _internal_renamed_services().size(); + return renamed_services_.size(); } inline int DotnetSettings::renamed_services_size() const { return _internal_renamed_services_size(); } inline void DotnetSettings::clear_renamed_services() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.renamed_services_.Clear(); + renamed_services_.Clear(); } -inline const ::google::protobuf::Map& DotnetSettings::_internal_renamed_services() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.renamed_services_.GetMap(); +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +DotnetSettings::_internal_renamed_services() const { + return renamed_services_.GetMap(); } -inline const ::google::protobuf::Map& DotnetSettings::renamed_services() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +DotnetSettings::renamed_services() const { // @@protoc_insertion_point(field_map:google.api.DotnetSettings.renamed_services) return _internal_renamed_services(); } -inline ::google::protobuf::Map* DotnetSettings::_internal_mutable_renamed_services() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.renamed_services_.MutableMap(); +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +DotnetSettings::_internal_mutable_renamed_services() { + return renamed_services_.MutableMap(); } -inline ::google::protobuf::Map* DotnetSettings::mutable_renamed_services() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +DotnetSettings::mutable_renamed_services() { // @@protoc_insertion_point(field_mutable_map:google.api.DotnetSettings.renamed_services) return _internal_mutable_renamed_services(); } // map renamed_resources = 3 [json_name = "renamedResources"]; inline int DotnetSettings::_internal_renamed_resources_size() const { - return _internal_renamed_resources().size(); + return renamed_resources_.size(); } inline int DotnetSettings::renamed_resources_size() const { return _internal_renamed_resources_size(); } inline void DotnetSettings::clear_renamed_resources() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.renamed_resources_.Clear(); + renamed_resources_.Clear(); } -inline const ::google::protobuf::Map& DotnetSettings::_internal_renamed_resources() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.renamed_resources_.GetMap(); +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +DotnetSettings::_internal_renamed_resources() const { + return renamed_resources_.GetMap(); } -inline const ::google::protobuf::Map& DotnetSettings::renamed_resources() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +DotnetSettings::renamed_resources() const { // @@protoc_insertion_point(field_map:google.api.DotnetSettings.renamed_resources) return _internal_renamed_resources(); } -inline ::google::protobuf::Map* DotnetSettings::_internal_mutable_renamed_resources() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.renamed_resources_.MutableMap(); +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +DotnetSettings::_internal_mutable_renamed_resources() { + return renamed_resources_.MutableMap(); } -inline ::google::protobuf::Map* DotnetSettings::mutable_renamed_resources() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +DotnetSettings::mutable_renamed_resources() { // @@protoc_insertion_point(field_mutable_map:google.api.DotnetSettings.renamed_resources) return _internal_mutable_renamed_resources(); } // repeated string ignored_resources = 4 [json_name = "ignoredResources"]; inline int DotnetSettings::_internal_ignored_resources_size() const { - return _internal_ignored_resources().size(); + return ignored_resources_.size(); } inline int DotnetSettings::ignored_resources_size() const { return _internal_ignored_resources_size(); } inline void DotnetSettings::clear_ignored_resources() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.ignored_resources_.Clear(); + ignored_resources_.Clear(); } -inline std::string* DotnetSettings::add_ignored_resources() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_ignored_resources()->Add(); +inline std::string* DotnetSettings::add_ignored_resources() { + std::string* _s = _internal_add_ignored_resources(); // @@protoc_insertion_point(field_add_mutable:google.api.DotnetSettings.ignored_resources) return _s; } -inline const std::string& DotnetSettings::ignored_resources(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& DotnetSettings::_internal_ignored_resources(int index) const { + return ignored_resources_.Get(index); +} +inline const std::string& DotnetSettings::ignored_resources(int index) const { // @@protoc_insertion_point(field_get:google.api.DotnetSettings.ignored_resources) - return _internal_ignored_resources().Get(index); + return _internal_ignored_resources(index); } -inline std::string* DotnetSettings::mutable_ignored_resources(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* DotnetSettings::mutable_ignored_resources(int index) { // @@protoc_insertion_point(field_mutable:google.api.DotnetSettings.ignored_resources) - return _internal_mutable_ignored_resources()->Mutable(index); + return ignored_resources_.Mutable(index); } inline void DotnetSettings::set_ignored_resources(int index, const std::string& value) { - _internal_mutable_ignored_resources()->Mutable(index)->assign(value); + ignored_resources_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set:google.api.DotnetSettings.ignored_resources) } inline void DotnetSettings::set_ignored_resources(int index, std::string&& value) { - _internal_mutable_ignored_resources()->Mutable(index)->assign(std::move(value)); + ignored_resources_.Mutable(index)->assign(std::move(value)); // @@protoc_insertion_point(field_set:google.api.DotnetSettings.ignored_resources) } inline void DotnetSettings::set_ignored_resources(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_ignored_resources()->Mutable(index)->assign(value); + GOOGLE_DCHECK(value != nullptr); + ignored_resources_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:google.api.DotnetSettings.ignored_resources) } -inline void DotnetSettings::set_ignored_resources(int index, const char* value, - std::size_t size) { - _internal_mutable_ignored_resources()->Mutable(index)->assign( - reinterpret_cast(value), size); +inline void DotnetSettings::set_ignored_resources(int index, const char* value, size_t size) { + ignored_resources_.Mutable(index)->assign( + reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:google.api.DotnetSettings.ignored_resources) } -inline void DotnetSettings::set_ignored_resources(int index, absl::string_view value) { - _internal_mutable_ignored_resources()->Mutable(index)->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_set_string_piece:google.api.DotnetSettings.ignored_resources) +inline std::string* DotnetSettings::_internal_add_ignored_resources() { + return ignored_resources_.Add(); } inline void DotnetSettings::add_ignored_resources(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_ignored_resources()->Add()->assign(value); + ignored_resources_.Add()->assign(value); // @@protoc_insertion_point(field_add:google.api.DotnetSettings.ignored_resources) } inline void DotnetSettings::add_ignored_resources(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_ignored_resources()->Add(std::move(value)); + ignored_resources_.Add(std::move(value)); // @@protoc_insertion_point(field_add:google.api.DotnetSettings.ignored_resources) } inline void DotnetSettings::add_ignored_resources(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_ignored_resources()->Add()->assign(value); + GOOGLE_DCHECK(value != nullptr); + ignored_resources_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:google.api.DotnetSettings.ignored_resources) } -inline void DotnetSettings::add_ignored_resources(const char* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_ignored_resources()->Add()->assign( - reinterpret_cast(value), size); +inline void DotnetSettings::add_ignored_resources(const char* value, size_t size) { + ignored_resources_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:google.api.DotnetSettings.ignored_resources) } -inline void DotnetSettings::add_ignored_resources(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_ignored_resources()->Add()->assign(value.data(), value.size()); - // @@protoc_insertion_point(field_add_string_piece:google.api.DotnetSettings.ignored_resources) -} -inline const ::google::protobuf::RepeatedPtrField& -DotnetSettings::ignored_resources() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +DotnetSettings::ignored_resources() const { // @@protoc_insertion_point(field_list:google.api.DotnetSettings.ignored_resources) - return _internal_ignored_resources(); + return ignored_resources_; } -inline ::google::protobuf::RepeatedPtrField* -DotnetSettings::mutable_ignored_resources() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +DotnetSettings::mutable_ignored_resources() { // @@protoc_insertion_point(field_mutable_list:google.api.DotnetSettings.ignored_resources) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_ignored_resources(); -} -inline const ::google::protobuf::RepeatedPtrField& -DotnetSettings::_internal_ignored_resources() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.ignored_resources_; -} -inline ::google::protobuf::RepeatedPtrField* -DotnetSettings::_internal_mutable_ignored_resources() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.ignored_resources_; + return &ignored_resources_; } // repeated string forced_namespace_aliases = 5 [json_name = "forcedNamespaceAliases"]; inline int DotnetSettings::_internal_forced_namespace_aliases_size() const { - return _internal_forced_namespace_aliases().size(); + return forced_namespace_aliases_.size(); } inline int DotnetSettings::forced_namespace_aliases_size() const { return _internal_forced_namespace_aliases_size(); } inline void DotnetSettings::clear_forced_namespace_aliases() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.forced_namespace_aliases_.Clear(); + forced_namespace_aliases_.Clear(); } -inline std::string* DotnetSettings::add_forced_namespace_aliases() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_forced_namespace_aliases()->Add(); +inline std::string* DotnetSettings::add_forced_namespace_aliases() { + std::string* _s = _internal_add_forced_namespace_aliases(); // @@protoc_insertion_point(field_add_mutable:google.api.DotnetSettings.forced_namespace_aliases) return _s; } -inline const std::string& DotnetSettings::forced_namespace_aliases(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& DotnetSettings::_internal_forced_namespace_aliases(int index) const { + return forced_namespace_aliases_.Get(index); +} +inline const std::string& DotnetSettings::forced_namespace_aliases(int index) const { // @@protoc_insertion_point(field_get:google.api.DotnetSettings.forced_namespace_aliases) - return _internal_forced_namespace_aliases().Get(index); + return _internal_forced_namespace_aliases(index); } -inline std::string* DotnetSettings::mutable_forced_namespace_aliases(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* DotnetSettings::mutable_forced_namespace_aliases(int index) { // @@protoc_insertion_point(field_mutable:google.api.DotnetSettings.forced_namespace_aliases) - return _internal_mutable_forced_namespace_aliases()->Mutable(index); + return forced_namespace_aliases_.Mutable(index); } inline void DotnetSettings::set_forced_namespace_aliases(int index, const std::string& value) { - _internal_mutable_forced_namespace_aliases()->Mutable(index)->assign(value); + forced_namespace_aliases_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set:google.api.DotnetSettings.forced_namespace_aliases) } inline void DotnetSettings::set_forced_namespace_aliases(int index, std::string&& value) { - _internal_mutable_forced_namespace_aliases()->Mutable(index)->assign(std::move(value)); + forced_namespace_aliases_.Mutable(index)->assign(std::move(value)); // @@protoc_insertion_point(field_set:google.api.DotnetSettings.forced_namespace_aliases) } inline void DotnetSettings::set_forced_namespace_aliases(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_forced_namespace_aliases()->Mutable(index)->assign(value); + GOOGLE_DCHECK(value != nullptr); + forced_namespace_aliases_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:google.api.DotnetSettings.forced_namespace_aliases) } -inline void DotnetSettings::set_forced_namespace_aliases(int index, const char* value, - std::size_t size) { - _internal_mutable_forced_namespace_aliases()->Mutable(index)->assign( - reinterpret_cast(value), size); +inline void DotnetSettings::set_forced_namespace_aliases(int index, const char* value, size_t size) { + forced_namespace_aliases_.Mutable(index)->assign( + reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:google.api.DotnetSettings.forced_namespace_aliases) } -inline void DotnetSettings::set_forced_namespace_aliases(int index, absl::string_view value) { - _internal_mutable_forced_namespace_aliases()->Mutable(index)->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_set_string_piece:google.api.DotnetSettings.forced_namespace_aliases) +inline std::string* DotnetSettings::_internal_add_forced_namespace_aliases() { + return forced_namespace_aliases_.Add(); } inline void DotnetSettings::add_forced_namespace_aliases(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_forced_namespace_aliases()->Add()->assign(value); + forced_namespace_aliases_.Add()->assign(value); // @@protoc_insertion_point(field_add:google.api.DotnetSettings.forced_namespace_aliases) } inline void DotnetSettings::add_forced_namespace_aliases(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_forced_namespace_aliases()->Add(std::move(value)); + forced_namespace_aliases_.Add(std::move(value)); // @@protoc_insertion_point(field_add:google.api.DotnetSettings.forced_namespace_aliases) } inline void DotnetSettings::add_forced_namespace_aliases(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_forced_namespace_aliases()->Add()->assign(value); + GOOGLE_DCHECK(value != nullptr); + forced_namespace_aliases_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:google.api.DotnetSettings.forced_namespace_aliases) } -inline void DotnetSettings::add_forced_namespace_aliases(const char* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_forced_namespace_aliases()->Add()->assign( - reinterpret_cast(value), size); +inline void DotnetSettings::add_forced_namespace_aliases(const char* value, size_t size) { + forced_namespace_aliases_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:google.api.DotnetSettings.forced_namespace_aliases) } -inline void DotnetSettings::add_forced_namespace_aliases(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_forced_namespace_aliases()->Add()->assign(value.data(), value.size()); - // @@protoc_insertion_point(field_add_string_piece:google.api.DotnetSettings.forced_namespace_aliases) -} -inline const ::google::protobuf::RepeatedPtrField& -DotnetSettings::forced_namespace_aliases() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +DotnetSettings::forced_namespace_aliases() const { // @@protoc_insertion_point(field_list:google.api.DotnetSettings.forced_namespace_aliases) - return _internal_forced_namespace_aliases(); + return forced_namespace_aliases_; } -inline ::google::protobuf::RepeatedPtrField* -DotnetSettings::mutable_forced_namespace_aliases() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +DotnetSettings::mutable_forced_namespace_aliases() { // @@protoc_insertion_point(field_mutable_list:google.api.DotnetSettings.forced_namespace_aliases) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_forced_namespace_aliases(); -} -inline const ::google::protobuf::RepeatedPtrField& -DotnetSettings::_internal_forced_namespace_aliases() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.forced_namespace_aliases_; -} -inline ::google::protobuf::RepeatedPtrField* -DotnetSettings::_internal_mutable_forced_namespace_aliases() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.forced_namespace_aliases_; + return &forced_namespace_aliases_; } // repeated string handwritten_signatures = 6 [json_name = "handwrittenSignatures"]; inline int DotnetSettings::_internal_handwritten_signatures_size() const { - return _internal_handwritten_signatures().size(); + return handwritten_signatures_.size(); } inline int DotnetSettings::handwritten_signatures_size() const { return _internal_handwritten_signatures_size(); } inline void DotnetSettings::clear_handwritten_signatures() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.handwritten_signatures_.Clear(); + handwritten_signatures_.Clear(); } -inline std::string* DotnetSettings::add_handwritten_signatures() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_handwritten_signatures()->Add(); +inline std::string* DotnetSettings::add_handwritten_signatures() { + std::string* _s = _internal_add_handwritten_signatures(); // @@protoc_insertion_point(field_add_mutable:google.api.DotnetSettings.handwritten_signatures) return _s; } -inline const std::string& DotnetSettings::handwritten_signatures(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& DotnetSettings::_internal_handwritten_signatures(int index) const { + return handwritten_signatures_.Get(index); +} +inline const std::string& DotnetSettings::handwritten_signatures(int index) const { // @@protoc_insertion_point(field_get:google.api.DotnetSettings.handwritten_signatures) - return _internal_handwritten_signatures().Get(index); + return _internal_handwritten_signatures(index); } -inline std::string* DotnetSettings::mutable_handwritten_signatures(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* DotnetSettings::mutable_handwritten_signatures(int index) { // @@protoc_insertion_point(field_mutable:google.api.DotnetSettings.handwritten_signatures) - return _internal_mutable_handwritten_signatures()->Mutable(index); + return handwritten_signatures_.Mutable(index); } inline void DotnetSettings::set_handwritten_signatures(int index, const std::string& value) { - _internal_mutable_handwritten_signatures()->Mutable(index)->assign(value); + handwritten_signatures_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set:google.api.DotnetSettings.handwritten_signatures) } inline void DotnetSettings::set_handwritten_signatures(int index, std::string&& value) { - _internal_mutable_handwritten_signatures()->Mutable(index)->assign(std::move(value)); + handwritten_signatures_.Mutable(index)->assign(std::move(value)); // @@protoc_insertion_point(field_set:google.api.DotnetSettings.handwritten_signatures) } inline void DotnetSettings::set_handwritten_signatures(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_handwritten_signatures()->Mutable(index)->assign(value); + GOOGLE_DCHECK(value != nullptr); + handwritten_signatures_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:google.api.DotnetSettings.handwritten_signatures) } -inline void DotnetSettings::set_handwritten_signatures(int index, const char* value, - std::size_t size) { - _internal_mutable_handwritten_signatures()->Mutable(index)->assign( - reinterpret_cast(value), size); +inline void DotnetSettings::set_handwritten_signatures(int index, const char* value, size_t size) { + handwritten_signatures_.Mutable(index)->assign( + reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:google.api.DotnetSettings.handwritten_signatures) } -inline void DotnetSettings::set_handwritten_signatures(int index, absl::string_view value) { - _internal_mutable_handwritten_signatures()->Mutable(index)->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_set_string_piece:google.api.DotnetSettings.handwritten_signatures) +inline std::string* DotnetSettings::_internal_add_handwritten_signatures() { + return handwritten_signatures_.Add(); } inline void DotnetSettings::add_handwritten_signatures(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_handwritten_signatures()->Add()->assign(value); + handwritten_signatures_.Add()->assign(value); // @@protoc_insertion_point(field_add:google.api.DotnetSettings.handwritten_signatures) } inline void DotnetSettings::add_handwritten_signatures(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_handwritten_signatures()->Add(std::move(value)); + handwritten_signatures_.Add(std::move(value)); // @@protoc_insertion_point(field_add:google.api.DotnetSettings.handwritten_signatures) } inline void DotnetSettings::add_handwritten_signatures(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_handwritten_signatures()->Add()->assign(value); + GOOGLE_DCHECK(value != nullptr); + handwritten_signatures_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:google.api.DotnetSettings.handwritten_signatures) } -inline void DotnetSettings::add_handwritten_signatures(const char* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_handwritten_signatures()->Add()->assign( - reinterpret_cast(value), size); +inline void DotnetSettings::add_handwritten_signatures(const char* value, size_t size) { + handwritten_signatures_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:google.api.DotnetSettings.handwritten_signatures) } -inline void DotnetSettings::add_handwritten_signatures(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_handwritten_signatures()->Add()->assign(value.data(), value.size()); - // @@protoc_insertion_point(field_add_string_piece:google.api.DotnetSettings.handwritten_signatures) -} -inline const ::google::protobuf::RepeatedPtrField& -DotnetSettings::handwritten_signatures() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +DotnetSettings::handwritten_signatures() const { // @@protoc_insertion_point(field_list:google.api.DotnetSettings.handwritten_signatures) - return _internal_handwritten_signatures(); + return handwritten_signatures_; } -inline ::google::protobuf::RepeatedPtrField* -DotnetSettings::mutable_handwritten_signatures() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +DotnetSettings::mutable_handwritten_signatures() { // @@protoc_insertion_point(field_mutable_list:google.api.DotnetSettings.handwritten_signatures) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_handwritten_signatures(); -} -inline const ::google::protobuf::RepeatedPtrField& -DotnetSettings::_internal_handwritten_signatures() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.handwritten_signatures_; -} -inline ::google::protobuf::RepeatedPtrField* -DotnetSettings::_internal_mutable_handwritten_signatures() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.handwritten_signatures_; + return &handwritten_signatures_; } // ------------------------------------------------------------------- @@ -6587,498 +5912,496 @@ DotnetSettings::_internal_mutable_handwritten_signatures() { // RubySettings // .google.api.CommonLanguageSettings common = 1 [json_name = "common"]; +inline bool RubySettings::_internal_has_common() const { + return this != internal_default_instance() && common_ != nullptr; +} inline bool RubySettings::has_common() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.common_ != nullptr); - return value; + return _internal_has_common(); } inline void RubySettings::clear_common() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.common_ != nullptr) _impl_.common_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && common_ != nullptr) { + delete common_; + } + common_ = nullptr; } inline const ::google::api::CommonLanguageSettings& RubySettings::_internal_common() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::CommonLanguageSettings* p = _impl_.common_; - return p != nullptr ? *p : reinterpret_cast(::google::api::_CommonLanguageSettings_default_instance_); + const ::google::api::CommonLanguageSettings* p = common_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::_CommonLanguageSettings_default_instance_); } -inline const ::google::api::CommonLanguageSettings& RubySettings::common() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::CommonLanguageSettings& RubySettings::common() const { // @@protoc_insertion_point(field_get:google.api.RubySettings.common) return _internal_common(); } -inline void RubySettings::unsafe_arena_set_allocated_common(::google::api::CommonLanguageSettings* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.common_); +inline void RubySettings::unsafe_arena_set_allocated_common( + ::google::api::CommonLanguageSettings* common) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(common_); } - _impl_.common_ = reinterpret_cast<::google::api::CommonLanguageSettings*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + common_ = common; + if (common) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.RubySettings.common) } inline ::google::api::CommonLanguageSettings* RubySettings::release_common() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::CommonLanguageSettings* released = _impl_.common_; - _impl_.common_ = nullptr; + + ::google::api::CommonLanguageSettings* temp = common_; + common_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::CommonLanguageSettings* RubySettings::unsafe_arena_release_common() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.RubySettings.common) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::CommonLanguageSettings* temp = _impl_.common_; - _impl_.common_ = nullptr; + + ::google::api::CommonLanguageSettings* temp = common_; + common_ = nullptr; return temp; } inline ::google::api::CommonLanguageSettings* RubySettings::_internal_mutable_common() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.common_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::CommonLanguageSettings>(GetArena()); - _impl_.common_ = reinterpret_cast<::google::api::CommonLanguageSettings*>(p); + + if (common_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::CommonLanguageSettings>(GetArenaForAllocation()); + common_ = p; } - return _impl_.common_; + return common_; } -inline ::google::api::CommonLanguageSettings* RubySettings::mutable_common() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::CommonLanguageSettings* RubySettings::mutable_common() { ::google::api::CommonLanguageSettings* _msg = _internal_mutable_common(); // @@protoc_insertion_point(field_mutable:google.api.RubySettings.common) return _msg; } -inline void RubySettings::set_allocated_common(::google::api::CommonLanguageSettings* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void RubySettings::set_allocated_common(::google::api::CommonLanguageSettings* common) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::api::CommonLanguageSettings*>(_impl_.common_); + delete common_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::api::CommonLanguageSettings*>(value)->GetArena(); + if (common) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(common); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + common = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, common, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.common_ = reinterpret_cast<::google::api::CommonLanguageSettings*>(value); + common_ = common; // @@protoc_insertion_point(field_set_allocated:google.api.RubySettings.common) } // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + // GoSettings // .google.api.CommonLanguageSettings common = 1 [json_name = "common"]; +inline bool GoSettings::_internal_has_common() const { + return this != internal_default_instance() && common_ != nullptr; +} inline bool GoSettings::has_common() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.common_ != nullptr); - return value; + return _internal_has_common(); } inline void GoSettings::clear_common() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.common_ != nullptr) _impl_.common_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && common_ != nullptr) { + delete common_; + } + common_ = nullptr; } inline const ::google::api::CommonLanguageSettings& GoSettings::_internal_common() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::CommonLanguageSettings* p = _impl_.common_; - return p != nullptr ? *p : reinterpret_cast(::google::api::_CommonLanguageSettings_default_instance_); + const ::google::api::CommonLanguageSettings* p = common_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::_CommonLanguageSettings_default_instance_); } -inline const ::google::api::CommonLanguageSettings& GoSettings::common() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::CommonLanguageSettings& GoSettings::common() const { // @@protoc_insertion_point(field_get:google.api.GoSettings.common) return _internal_common(); } -inline void GoSettings::unsafe_arena_set_allocated_common(::google::api::CommonLanguageSettings* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.common_); +inline void GoSettings::unsafe_arena_set_allocated_common( + ::google::api::CommonLanguageSettings* common) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(common_); } - _impl_.common_ = reinterpret_cast<::google::api::CommonLanguageSettings*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + common_ = common; + if (common) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.GoSettings.common) } inline ::google::api::CommonLanguageSettings* GoSettings::release_common() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::CommonLanguageSettings* released = _impl_.common_; - _impl_.common_ = nullptr; + + ::google::api::CommonLanguageSettings* temp = common_; + common_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::CommonLanguageSettings* GoSettings::unsafe_arena_release_common() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.GoSettings.common) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::CommonLanguageSettings* temp = _impl_.common_; - _impl_.common_ = nullptr; + + ::google::api::CommonLanguageSettings* temp = common_; + common_ = nullptr; return temp; } inline ::google::api::CommonLanguageSettings* GoSettings::_internal_mutable_common() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.common_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::CommonLanguageSettings>(GetArena()); - _impl_.common_ = reinterpret_cast<::google::api::CommonLanguageSettings*>(p); + + if (common_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::CommonLanguageSettings>(GetArenaForAllocation()); + common_ = p; } - return _impl_.common_; + return common_; } -inline ::google::api::CommonLanguageSettings* GoSettings::mutable_common() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::CommonLanguageSettings* GoSettings::mutable_common() { ::google::api::CommonLanguageSettings* _msg = _internal_mutable_common(); // @@protoc_insertion_point(field_mutable:google.api.GoSettings.common) return _msg; } -inline void GoSettings::set_allocated_common(::google::api::CommonLanguageSettings* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GoSettings::set_allocated_common(::google::api::CommonLanguageSettings* common) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::api::CommonLanguageSettings*>(_impl_.common_); + delete common_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::api::CommonLanguageSettings*>(value)->GetArena(); + if (common) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(common); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + common = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, common, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.common_ = reinterpret_cast<::google::api::CommonLanguageSettings*>(value); + common_ = common; // @@protoc_insertion_point(field_set_allocated:google.api.GoSettings.common) } +// map renamed_services = 2 [json_name = "renamedServices"]; +inline int GoSettings::_internal_renamed_services_size() const { + return renamed_services_.size(); +} +inline int GoSettings::renamed_services_size() const { + return _internal_renamed_services_size(); +} +inline void GoSettings::clear_renamed_services() { + renamed_services_.Clear(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +GoSettings::_internal_renamed_services() const { + return renamed_services_.GetMap(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +GoSettings::renamed_services() const { + // @@protoc_insertion_point(field_map:google.api.GoSettings.renamed_services) + return _internal_renamed_services(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +GoSettings::_internal_mutable_renamed_services() { + return renamed_services_.MutableMap(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +GoSettings::mutable_renamed_services() { + // @@protoc_insertion_point(field_mutable_map:google.api.GoSettings.renamed_services) + return _internal_mutable_renamed_services(); +} + // ------------------------------------------------------------------- // MethodSettings_LongRunning // .google.protobuf.Duration initial_poll_delay = 1 [json_name = "initialPollDelay"]; +inline bool MethodSettings_LongRunning::_internal_has_initial_poll_delay() const { + return this != internal_default_instance() && initial_poll_delay_ != nullptr; +} inline bool MethodSettings_LongRunning::has_initial_poll_delay() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.initial_poll_delay_ != nullptr); - return value; + return _internal_has_initial_poll_delay(); } -inline const ::google::protobuf::Duration& MethodSettings_LongRunning::_internal_initial_poll_delay() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Duration* p = _impl_.initial_poll_delay_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Duration_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Duration& MethodSettings_LongRunning::_internal_initial_poll_delay() const { + const ::PROTOBUF_NAMESPACE_ID::Duration* p = initial_poll_delay_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Duration_default_instance_); } -inline const ::google::protobuf::Duration& MethodSettings_LongRunning::initial_poll_delay() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Duration& MethodSettings_LongRunning::initial_poll_delay() const { // @@protoc_insertion_point(field_get:google.api.MethodSettings.LongRunning.initial_poll_delay) return _internal_initial_poll_delay(); } -inline void MethodSettings_LongRunning::unsafe_arena_set_allocated_initial_poll_delay(::google::protobuf::Duration* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.initial_poll_delay_); +inline void MethodSettings_LongRunning::unsafe_arena_set_allocated_initial_poll_delay( + ::PROTOBUF_NAMESPACE_ID::Duration* initial_poll_delay) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(initial_poll_delay_); } - _impl_.initial_poll_delay_ = reinterpret_cast<::google::protobuf::Duration*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + initial_poll_delay_ = initial_poll_delay; + if (initial_poll_delay) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.MethodSettings.LongRunning.initial_poll_delay) } -inline ::google::protobuf::Duration* MethodSettings_LongRunning::release_initial_poll_delay() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Duration* released = _impl_.initial_poll_delay_; - _impl_.initial_poll_delay_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Duration* MethodSettings_LongRunning::release_initial_poll_delay() { + + ::PROTOBUF_NAMESPACE_ID::Duration* temp = initial_poll_delay_; + initial_poll_delay_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Duration* MethodSettings_LongRunning::unsafe_arena_release_initial_poll_delay() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Duration* MethodSettings_LongRunning::unsafe_arena_release_initial_poll_delay() { // @@protoc_insertion_point(field_release:google.api.MethodSettings.LongRunning.initial_poll_delay) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Duration* temp = _impl_.initial_poll_delay_; - _impl_.initial_poll_delay_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Duration* temp = initial_poll_delay_; + initial_poll_delay_ = nullptr; return temp; } -inline ::google::protobuf::Duration* MethodSettings_LongRunning::_internal_mutable_initial_poll_delay() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.initial_poll_delay_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArena()); - _impl_.initial_poll_delay_ = reinterpret_cast<::google::protobuf::Duration*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Duration* MethodSettings_LongRunning::_internal_mutable_initial_poll_delay() { + + if (initial_poll_delay_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Duration>(GetArenaForAllocation()); + initial_poll_delay_ = p; } - return _impl_.initial_poll_delay_; + return initial_poll_delay_; } -inline ::google::protobuf::Duration* MethodSettings_LongRunning::mutable_initial_poll_delay() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Duration* _msg = _internal_mutable_initial_poll_delay(); +inline ::PROTOBUF_NAMESPACE_ID::Duration* MethodSettings_LongRunning::mutable_initial_poll_delay() { + ::PROTOBUF_NAMESPACE_ID::Duration* _msg = _internal_mutable_initial_poll_delay(); // @@protoc_insertion_point(field_mutable:google.api.MethodSettings.LongRunning.initial_poll_delay) return _msg; } -inline void MethodSettings_LongRunning::set_allocated_initial_poll_delay(::google::protobuf::Duration* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void MethodSettings_LongRunning::set_allocated_initial_poll_delay(::PROTOBUF_NAMESPACE_ID::Duration* initial_poll_delay) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.initial_poll_delay_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(initial_poll_delay_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (initial_poll_delay) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(initial_poll_delay)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + initial_poll_delay = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, initial_poll_delay, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.initial_poll_delay_ = reinterpret_cast<::google::protobuf::Duration*>(value); + initial_poll_delay_ = initial_poll_delay; // @@protoc_insertion_point(field_set_allocated:google.api.MethodSettings.LongRunning.initial_poll_delay) } // float poll_delay_multiplier = 2 [json_name = "pollDelayMultiplier"]; inline void MethodSettings_LongRunning::clear_poll_delay_multiplier() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.poll_delay_multiplier_ = 0; + poll_delay_multiplier_ = 0; +} +inline float MethodSettings_LongRunning::_internal_poll_delay_multiplier() const { + return poll_delay_multiplier_; } inline float MethodSettings_LongRunning::poll_delay_multiplier() const { // @@protoc_insertion_point(field_get:google.api.MethodSettings.LongRunning.poll_delay_multiplier) return _internal_poll_delay_multiplier(); } +inline void MethodSettings_LongRunning::_internal_set_poll_delay_multiplier(float value) { + + poll_delay_multiplier_ = value; +} inline void MethodSettings_LongRunning::set_poll_delay_multiplier(float value) { _internal_set_poll_delay_multiplier(value); // @@protoc_insertion_point(field_set:google.api.MethodSettings.LongRunning.poll_delay_multiplier) } -inline float MethodSettings_LongRunning::_internal_poll_delay_multiplier() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.poll_delay_multiplier_; -} -inline void MethodSettings_LongRunning::_internal_set_poll_delay_multiplier(float value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.poll_delay_multiplier_ = value; -} // .google.protobuf.Duration max_poll_delay = 3 [json_name = "maxPollDelay"]; +inline bool MethodSettings_LongRunning::_internal_has_max_poll_delay() const { + return this != internal_default_instance() && max_poll_delay_ != nullptr; +} inline bool MethodSettings_LongRunning::has_max_poll_delay() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.max_poll_delay_ != nullptr); - return value; + return _internal_has_max_poll_delay(); } -inline const ::google::protobuf::Duration& MethodSettings_LongRunning::_internal_max_poll_delay() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Duration* p = _impl_.max_poll_delay_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Duration_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Duration& MethodSettings_LongRunning::_internal_max_poll_delay() const { + const ::PROTOBUF_NAMESPACE_ID::Duration* p = max_poll_delay_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Duration_default_instance_); } -inline const ::google::protobuf::Duration& MethodSettings_LongRunning::max_poll_delay() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Duration& MethodSettings_LongRunning::max_poll_delay() const { // @@protoc_insertion_point(field_get:google.api.MethodSettings.LongRunning.max_poll_delay) return _internal_max_poll_delay(); } -inline void MethodSettings_LongRunning::unsafe_arena_set_allocated_max_poll_delay(::google::protobuf::Duration* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.max_poll_delay_); +inline void MethodSettings_LongRunning::unsafe_arena_set_allocated_max_poll_delay( + ::PROTOBUF_NAMESPACE_ID::Duration* max_poll_delay) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(max_poll_delay_); } - _impl_.max_poll_delay_ = reinterpret_cast<::google::protobuf::Duration*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + max_poll_delay_ = max_poll_delay; + if (max_poll_delay) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.MethodSettings.LongRunning.max_poll_delay) } -inline ::google::protobuf::Duration* MethodSettings_LongRunning::release_max_poll_delay() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Duration* released = _impl_.max_poll_delay_; - _impl_.max_poll_delay_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Duration* MethodSettings_LongRunning::release_max_poll_delay() { + + ::PROTOBUF_NAMESPACE_ID::Duration* temp = max_poll_delay_; + max_poll_delay_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Duration* MethodSettings_LongRunning::unsafe_arena_release_max_poll_delay() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Duration* MethodSettings_LongRunning::unsafe_arena_release_max_poll_delay() { // @@protoc_insertion_point(field_release:google.api.MethodSettings.LongRunning.max_poll_delay) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Duration* temp = _impl_.max_poll_delay_; - _impl_.max_poll_delay_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Duration* temp = max_poll_delay_; + max_poll_delay_ = nullptr; return temp; } -inline ::google::protobuf::Duration* MethodSettings_LongRunning::_internal_mutable_max_poll_delay() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.max_poll_delay_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArena()); - _impl_.max_poll_delay_ = reinterpret_cast<::google::protobuf::Duration*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Duration* MethodSettings_LongRunning::_internal_mutable_max_poll_delay() { + + if (max_poll_delay_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Duration>(GetArenaForAllocation()); + max_poll_delay_ = p; } - return _impl_.max_poll_delay_; + return max_poll_delay_; } -inline ::google::protobuf::Duration* MethodSettings_LongRunning::mutable_max_poll_delay() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Duration* _msg = _internal_mutable_max_poll_delay(); +inline ::PROTOBUF_NAMESPACE_ID::Duration* MethodSettings_LongRunning::mutable_max_poll_delay() { + ::PROTOBUF_NAMESPACE_ID::Duration* _msg = _internal_mutable_max_poll_delay(); // @@protoc_insertion_point(field_mutable:google.api.MethodSettings.LongRunning.max_poll_delay) return _msg; } -inline void MethodSettings_LongRunning::set_allocated_max_poll_delay(::google::protobuf::Duration* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void MethodSettings_LongRunning::set_allocated_max_poll_delay(::PROTOBUF_NAMESPACE_ID::Duration* max_poll_delay) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.max_poll_delay_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(max_poll_delay_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (max_poll_delay) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(max_poll_delay)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + max_poll_delay = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, max_poll_delay, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.max_poll_delay_ = reinterpret_cast<::google::protobuf::Duration*>(value); + max_poll_delay_ = max_poll_delay; // @@protoc_insertion_point(field_set_allocated:google.api.MethodSettings.LongRunning.max_poll_delay) } // .google.protobuf.Duration total_poll_timeout = 4 [json_name = "totalPollTimeout"]; +inline bool MethodSettings_LongRunning::_internal_has_total_poll_timeout() const { + return this != internal_default_instance() && total_poll_timeout_ != nullptr; +} inline bool MethodSettings_LongRunning::has_total_poll_timeout() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || _impl_.total_poll_timeout_ != nullptr); - return value; + return _internal_has_total_poll_timeout(); } -inline const ::google::protobuf::Duration& MethodSettings_LongRunning::_internal_total_poll_timeout() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Duration* p = _impl_.total_poll_timeout_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Duration_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Duration& MethodSettings_LongRunning::_internal_total_poll_timeout() const { + const ::PROTOBUF_NAMESPACE_ID::Duration* p = total_poll_timeout_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Duration_default_instance_); } -inline const ::google::protobuf::Duration& MethodSettings_LongRunning::total_poll_timeout() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Duration& MethodSettings_LongRunning::total_poll_timeout() const { // @@protoc_insertion_point(field_get:google.api.MethodSettings.LongRunning.total_poll_timeout) return _internal_total_poll_timeout(); } -inline void MethodSettings_LongRunning::unsafe_arena_set_allocated_total_poll_timeout(::google::protobuf::Duration* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.total_poll_timeout_); +inline void MethodSettings_LongRunning::unsafe_arena_set_allocated_total_poll_timeout( + ::PROTOBUF_NAMESPACE_ID::Duration* total_poll_timeout) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(total_poll_timeout_); } - _impl_.total_poll_timeout_ = reinterpret_cast<::google::protobuf::Duration*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000004u; + total_poll_timeout_ = total_poll_timeout; + if (total_poll_timeout) { + } else { - _impl_._has_bits_[0] &= ~0x00000004u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.MethodSettings.LongRunning.total_poll_timeout) } -inline ::google::protobuf::Duration* MethodSettings_LongRunning::release_total_poll_timeout() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000004u; - ::google::protobuf::Duration* released = _impl_.total_poll_timeout_; - _impl_.total_poll_timeout_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Duration* MethodSettings_LongRunning::release_total_poll_timeout() { + + ::PROTOBUF_NAMESPACE_ID::Duration* temp = total_poll_timeout_; + total_poll_timeout_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Duration* MethodSettings_LongRunning::unsafe_arena_release_total_poll_timeout() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Duration* MethodSettings_LongRunning::unsafe_arena_release_total_poll_timeout() { // @@protoc_insertion_point(field_release:google.api.MethodSettings.LongRunning.total_poll_timeout) - - _impl_._has_bits_[0] &= ~0x00000004u; - ::google::protobuf::Duration* temp = _impl_.total_poll_timeout_; - _impl_.total_poll_timeout_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Duration* temp = total_poll_timeout_; + total_poll_timeout_ = nullptr; return temp; } -inline ::google::protobuf::Duration* MethodSettings_LongRunning::_internal_mutable_total_poll_timeout() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - if (_impl_.total_poll_timeout_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArena()); - _impl_.total_poll_timeout_ = reinterpret_cast<::google::protobuf::Duration*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Duration* MethodSettings_LongRunning::_internal_mutable_total_poll_timeout() { + + if (total_poll_timeout_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Duration>(GetArenaForAllocation()); + total_poll_timeout_ = p; } - return _impl_.total_poll_timeout_; + return total_poll_timeout_; } -inline ::google::protobuf::Duration* MethodSettings_LongRunning::mutable_total_poll_timeout() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Duration* _msg = _internal_mutable_total_poll_timeout(); +inline ::PROTOBUF_NAMESPACE_ID::Duration* MethodSettings_LongRunning::mutable_total_poll_timeout() { + ::PROTOBUF_NAMESPACE_ID::Duration* _msg = _internal_mutable_total_poll_timeout(); // @@protoc_insertion_point(field_mutable:google.api.MethodSettings.LongRunning.total_poll_timeout) return _msg; } -inline void MethodSettings_LongRunning::set_allocated_total_poll_timeout(::google::protobuf::Duration* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void MethodSettings_LongRunning::set_allocated_total_poll_timeout(::PROTOBUF_NAMESPACE_ID::Duration* total_poll_timeout) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.total_poll_timeout_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(total_poll_timeout_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (total_poll_timeout) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(total_poll_timeout)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + total_poll_timeout = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, total_poll_timeout, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000004u; + } else { - _impl_._has_bits_[0] &= ~0x00000004u; + } - - _impl_.total_poll_timeout_ = reinterpret_cast<::google::protobuf::Duration*>(value); + total_poll_timeout_ = total_poll_timeout; // @@protoc_insertion_point(field_set_allocated:google.api.MethodSettings.LongRunning.total_poll_timeout) } @@ -7088,252 +6411,217 @@ inline void MethodSettings_LongRunning::set_allocated_total_poll_timeout(::googl // string selector = 1 [json_name = "selector"]; inline void MethodSettings::clear_selector() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.selector_.ClearToEmpty(); + selector_.ClearToEmpty(); } -inline const std::string& MethodSettings::selector() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& MethodSettings::selector() const { // @@protoc_insertion_point(field_get:google.api.MethodSettings.selector) return _internal_selector(); } -template -inline PROTOBUF_ALWAYS_INLINE void MethodSettings::set_selector(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.selector_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void MethodSettings::set_selector(ArgT0&& arg0, ArgT... args) { + + selector_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.MethodSettings.selector) } -inline std::string* MethodSettings::mutable_selector() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* MethodSettings::mutable_selector() { std::string* _s = _internal_mutable_selector(); // @@protoc_insertion_point(field_mutable:google.api.MethodSettings.selector) return _s; } inline const std::string& MethodSettings::_internal_selector() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.selector_.Get(); + return selector_.Get(); } inline void MethodSettings::_internal_set_selector(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.selector_.Set(value, GetArena()); + + selector_.Set(value, GetArenaForAllocation()); } inline std::string* MethodSettings::_internal_mutable_selector() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.selector_.Mutable( GetArena()); + + return selector_.Mutable(GetArenaForAllocation()); } inline std::string* MethodSettings::release_selector() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.MethodSettings.selector) - return _impl_.selector_.Release(); -} -inline void MethodSettings::set_allocated_selector(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.selector_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.selector_.IsDefault()) { - _impl_.selector_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return selector_.Release(); +} +inline void MethodSettings::set_allocated_selector(std::string* selector) { + if (selector != nullptr) { + + } else { + + } + selector_.SetAllocated(selector, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (selector_.IsDefault()) { + selector_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.api.MethodSettings.selector) } // .google.api.MethodSettings.LongRunning long_running = 2 [json_name = "longRunning"]; +inline bool MethodSettings::_internal_has_long_running() const { + return this != internal_default_instance() && long_running_ != nullptr; +} inline bool MethodSettings::has_long_running() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.long_running_ != nullptr); - return value; + return _internal_has_long_running(); } inline void MethodSettings::clear_long_running() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.long_running_ != nullptr) _impl_.long_running_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && long_running_ != nullptr) { + delete long_running_; + } + long_running_ = nullptr; } inline const ::google::api::MethodSettings_LongRunning& MethodSettings::_internal_long_running() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::MethodSettings_LongRunning* p = _impl_.long_running_; - return p != nullptr ? *p : reinterpret_cast(::google::api::_MethodSettings_LongRunning_default_instance_); + const ::google::api::MethodSettings_LongRunning* p = long_running_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::_MethodSettings_LongRunning_default_instance_); } -inline const ::google::api::MethodSettings_LongRunning& MethodSettings::long_running() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::MethodSettings_LongRunning& MethodSettings::long_running() const { // @@protoc_insertion_point(field_get:google.api.MethodSettings.long_running) return _internal_long_running(); } -inline void MethodSettings::unsafe_arena_set_allocated_long_running(::google::api::MethodSettings_LongRunning* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.long_running_); +inline void MethodSettings::unsafe_arena_set_allocated_long_running( + ::google::api::MethodSettings_LongRunning* long_running) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(long_running_); } - _impl_.long_running_ = reinterpret_cast<::google::api::MethodSettings_LongRunning*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + long_running_ = long_running; + if (long_running) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.MethodSettings.long_running) } inline ::google::api::MethodSettings_LongRunning* MethodSettings::release_long_running() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::MethodSettings_LongRunning* released = _impl_.long_running_; - _impl_.long_running_ = nullptr; + + ::google::api::MethodSettings_LongRunning* temp = long_running_; + long_running_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::MethodSettings_LongRunning* MethodSettings::unsafe_arena_release_long_running() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.MethodSettings.long_running) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::MethodSettings_LongRunning* temp = _impl_.long_running_; - _impl_.long_running_ = nullptr; + + ::google::api::MethodSettings_LongRunning* temp = long_running_; + long_running_ = nullptr; return temp; } inline ::google::api::MethodSettings_LongRunning* MethodSettings::_internal_mutable_long_running() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.long_running_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::MethodSettings_LongRunning>(GetArena()); - _impl_.long_running_ = reinterpret_cast<::google::api::MethodSettings_LongRunning*>(p); + + if (long_running_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::MethodSettings_LongRunning>(GetArenaForAllocation()); + long_running_ = p; } - return _impl_.long_running_; + return long_running_; } -inline ::google::api::MethodSettings_LongRunning* MethodSettings::mutable_long_running() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::MethodSettings_LongRunning* MethodSettings::mutable_long_running() { ::google::api::MethodSettings_LongRunning* _msg = _internal_mutable_long_running(); // @@protoc_insertion_point(field_mutable:google.api.MethodSettings.long_running) return _msg; } -inline void MethodSettings::set_allocated_long_running(::google::api::MethodSettings_LongRunning* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void MethodSettings::set_allocated_long_running(::google::api::MethodSettings_LongRunning* long_running) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::api::MethodSettings_LongRunning*>(_impl_.long_running_); + delete long_running_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::api::MethodSettings_LongRunning*>(value)->GetArena(); + if (long_running) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(long_running); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + long_running = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, long_running, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.long_running_ = reinterpret_cast<::google::api::MethodSettings_LongRunning*>(value); + long_running_ = long_running; // @@protoc_insertion_point(field_set_allocated:google.api.MethodSettings.long_running) } // repeated string auto_populated_fields = 3 [json_name = "autoPopulatedFields"]; inline int MethodSettings::_internal_auto_populated_fields_size() const { - return _internal_auto_populated_fields().size(); + return auto_populated_fields_.size(); } inline int MethodSettings::auto_populated_fields_size() const { return _internal_auto_populated_fields_size(); } inline void MethodSettings::clear_auto_populated_fields() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.auto_populated_fields_.Clear(); + auto_populated_fields_.Clear(); } -inline std::string* MethodSettings::add_auto_populated_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_auto_populated_fields()->Add(); +inline std::string* MethodSettings::add_auto_populated_fields() { + std::string* _s = _internal_add_auto_populated_fields(); // @@protoc_insertion_point(field_add_mutable:google.api.MethodSettings.auto_populated_fields) return _s; } -inline const std::string& MethodSettings::auto_populated_fields(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& MethodSettings::_internal_auto_populated_fields(int index) const { + return auto_populated_fields_.Get(index); +} +inline const std::string& MethodSettings::auto_populated_fields(int index) const { // @@protoc_insertion_point(field_get:google.api.MethodSettings.auto_populated_fields) - return _internal_auto_populated_fields().Get(index); + return _internal_auto_populated_fields(index); } -inline std::string* MethodSettings::mutable_auto_populated_fields(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* MethodSettings::mutable_auto_populated_fields(int index) { // @@protoc_insertion_point(field_mutable:google.api.MethodSettings.auto_populated_fields) - return _internal_mutable_auto_populated_fields()->Mutable(index); + return auto_populated_fields_.Mutable(index); } inline void MethodSettings::set_auto_populated_fields(int index, const std::string& value) { - _internal_mutable_auto_populated_fields()->Mutable(index)->assign(value); + auto_populated_fields_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set:google.api.MethodSettings.auto_populated_fields) } inline void MethodSettings::set_auto_populated_fields(int index, std::string&& value) { - _internal_mutable_auto_populated_fields()->Mutable(index)->assign(std::move(value)); + auto_populated_fields_.Mutable(index)->assign(std::move(value)); // @@protoc_insertion_point(field_set:google.api.MethodSettings.auto_populated_fields) } inline void MethodSettings::set_auto_populated_fields(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_auto_populated_fields()->Mutable(index)->assign(value); + GOOGLE_DCHECK(value != nullptr); + auto_populated_fields_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:google.api.MethodSettings.auto_populated_fields) } -inline void MethodSettings::set_auto_populated_fields(int index, const char* value, - std::size_t size) { - _internal_mutable_auto_populated_fields()->Mutable(index)->assign( - reinterpret_cast(value), size); +inline void MethodSettings::set_auto_populated_fields(int index, const char* value, size_t size) { + auto_populated_fields_.Mutable(index)->assign( + reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:google.api.MethodSettings.auto_populated_fields) } -inline void MethodSettings::set_auto_populated_fields(int index, absl::string_view value) { - _internal_mutable_auto_populated_fields()->Mutable(index)->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_set_string_piece:google.api.MethodSettings.auto_populated_fields) +inline std::string* MethodSettings::_internal_add_auto_populated_fields() { + return auto_populated_fields_.Add(); } inline void MethodSettings::add_auto_populated_fields(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_auto_populated_fields()->Add()->assign(value); + auto_populated_fields_.Add()->assign(value); // @@protoc_insertion_point(field_add:google.api.MethodSettings.auto_populated_fields) } inline void MethodSettings::add_auto_populated_fields(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_auto_populated_fields()->Add(std::move(value)); + auto_populated_fields_.Add(std::move(value)); // @@protoc_insertion_point(field_add:google.api.MethodSettings.auto_populated_fields) } inline void MethodSettings::add_auto_populated_fields(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_auto_populated_fields()->Add()->assign(value); + GOOGLE_DCHECK(value != nullptr); + auto_populated_fields_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:google.api.MethodSettings.auto_populated_fields) } -inline void MethodSettings::add_auto_populated_fields(const char* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_auto_populated_fields()->Add()->assign( - reinterpret_cast(value), size); +inline void MethodSettings::add_auto_populated_fields(const char* value, size_t size) { + auto_populated_fields_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:google.api.MethodSettings.auto_populated_fields) } -inline void MethodSettings::add_auto_populated_fields(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_auto_populated_fields()->Add()->assign(value.data(), value.size()); - // @@protoc_insertion_point(field_add_string_piece:google.api.MethodSettings.auto_populated_fields) -} -inline const ::google::protobuf::RepeatedPtrField& -MethodSettings::auto_populated_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +MethodSettings::auto_populated_fields() const { // @@protoc_insertion_point(field_list:google.api.MethodSettings.auto_populated_fields) - return _internal_auto_populated_fields(); + return auto_populated_fields_; } -inline ::google::protobuf::RepeatedPtrField* -MethodSettings::mutable_auto_populated_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +MethodSettings::mutable_auto_populated_fields() { // @@protoc_insertion_point(field_mutable_list:google.api.MethodSettings.auto_populated_fields) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_auto_populated_fields(); -} -inline const ::google::protobuf::RepeatedPtrField& -MethodSettings::_internal_auto_populated_fields() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.auto_populated_fields_; -} -inline ::google::protobuf::RepeatedPtrField* -MethodSettings::_internal_mutable_auto_populated_fields() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.auto_populated_fields_; + return &auto_populated_fields_; } // ------------------------------------------------------------------- @@ -7342,135 +6630,140 @@ MethodSettings::_internal_mutable_auto_populated_fields() { // repeated string methods = 1 [json_name = "methods"]; inline int SelectiveGapicGeneration::_internal_methods_size() const { - return _internal_methods().size(); + return methods_.size(); } inline int SelectiveGapicGeneration::methods_size() const { return _internal_methods_size(); } inline void SelectiveGapicGeneration::clear_methods() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.methods_.Clear(); + methods_.Clear(); } -inline std::string* SelectiveGapicGeneration::add_methods() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_methods()->Add(); +inline std::string* SelectiveGapicGeneration::add_methods() { + std::string* _s = _internal_add_methods(); // @@protoc_insertion_point(field_add_mutable:google.api.SelectiveGapicGeneration.methods) return _s; } -inline const std::string& SelectiveGapicGeneration::methods(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& SelectiveGapicGeneration::_internal_methods(int index) const { + return methods_.Get(index); +} +inline const std::string& SelectiveGapicGeneration::methods(int index) const { // @@protoc_insertion_point(field_get:google.api.SelectiveGapicGeneration.methods) - return _internal_methods().Get(index); + return _internal_methods(index); } -inline std::string* SelectiveGapicGeneration::mutable_methods(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* SelectiveGapicGeneration::mutable_methods(int index) { // @@protoc_insertion_point(field_mutable:google.api.SelectiveGapicGeneration.methods) - return _internal_mutable_methods()->Mutable(index); + return methods_.Mutable(index); } inline void SelectiveGapicGeneration::set_methods(int index, const std::string& value) { - _internal_mutable_methods()->Mutable(index)->assign(value); + methods_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set:google.api.SelectiveGapicGeneration.methods) } inline void SelectiveGapicGeneration::set_methods(int index, std::string&& value) { - _internal_mutable_methods()->Mutable(index)->assign(std::move(value)); + methods_.Mutable(index)->assign(std::move(value)); // @@protoc_insertion_point(field_set:google.api.SelectiveGapicGeneration.methods) } inline void SelectiveGapicGeneration::set_methods(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_methods()->Mutable(index)->assign(value); + GOOGLE_DCHECK(value != nullptr); + methods_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:google.api.SelectiveGapicGeneration.methods) } -inline void SelectiveGapicGeneration::set_methods(int index, const char* value, - std::size_t size) { - _internal_mutable_methods()->Mutable(index)->assign( - reinterpret_cast(value), size); +inline void SelectiveGapicGeneration::set_methods(int index, const char* value, size_t size) { + methods_.Mutable(index)->assign( + reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:google.api.SelectiveGapicGeneration.methods) } -inline void SelectiveGapicGeneration::set_methods(int index, absl::string_view value) { - _internal_mutable_methods()->Mutable(index)->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_set_string_piece:google.api.SelectiveGapicGeneration.methods) +inline std::string* SelectiveGapicGeneration::_internal_add_methods() { + return methods_.Add(); } inline void SelectiveGapicGeneration::add_methods(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_methods()->Add()->assign(value); + methods_.Add()->assign(value); // @@protoc_insertion_point(field_add:google.api.SelectiveGapicGeneration.methods) } inline void SelectiveGapicGeneration::add_methods(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_methods()->Add(std::move(value)); + methods_.Add(std::move(value)); // @@protoc_insertion_point(field_add:google.api.SelectiveGapicGeneration.methods) } inline void SelectiveGapicGeneration::add_methods(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_methods()->Add()->assign(value); + GOOGLE_DCHECK(value != nullptr); + methods_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:google.api.SelectiveGapicGeneration.methods) } -inline void SelectiveGapicGeneration::add_methods(const char* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_methods()->Add()->assign( - reinterpret_cast(value), size); +inline void SelectiveGapicGeneration::add_methods(const char* value, size_t size) { + methods_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:google.api.SelectiveGapicGeneration.methods) } -inline void SelectiveGapicGeneration::add_methods(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_methods()->Add()->assign(value.data(), value.size()); - // @@protoc_insertion_point(field_add_string_piece:google.api.SelectiveGapicGeneration.methods) -} -inline const ::google::protobuf::RepeatedPtrField& -SelectiveGapicGeneration::methods() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +SelectiveGapicGeneration::methods() const { // @@protoc_insertion_point(field_list:google.api.SelectiveGapicGeneration.methods) - return _internal_methods(); + return methods_; } -inline ::google::protobuf::RepeatedPtrField* -SelectiveGapicGeneration::mutable_methods() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +SelectiveGapicGeneration::mutable_methods() { // @@protoc_insertion_point(field_mutable_list:google.api.SelectiveGapicGeneration.methods) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_methods(); -} -inline const ::google::protobuf::RepeatedPtrField& -SelectiveGapicGeneration::_internal_methods() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.methods_; -} -inline ::google::protobuf::RepeatedPtrField* -SelectiveGapicGeneration::_internal_mutable_methods() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.methods_; + return &methods_; } #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) + } // namespace api } // namespace google +PROTOBUF_NAMESPACE_OPEN -namespace google { -namespace protobuf { - +template <> struct is_proto_enum< ::google::api::ClientLibraryOrganization> : ::std::true_type {}; template <> -struct is_proto_enum<::google::api::ClientLibraryOrganization> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::google::api::ClientLibraryOrganization>() { +inline const EnumDescriptor* GetEnumDescriptor< ::google::api::ClientLibraryOrganization>() { return ::google::api::ClientLibraryOrganization_descriptor(); } +template <> struct is_proto_enum< ::google::api::ClientLibraryDestination> : ::std::true_type {}; template <> -struct is_proto_enum<::google::api::ClientLibraryDestination> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::google::api::ClientLibraryDestination>() { +inline const EnumDescriptor* GetEnumDescriptor< ::google::api::ClientLibraryDestination>() { return ::google::api::ClientLibraryDestination_descriptor(); } -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fclient_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fclient_2eproto diff --git a/src/viam/api/google/api/expr/v1alpha1/checked.grpc.pb.cc b/src/viam/api/google/api/expr/v1alpha1/checked.grpc.pb.cc index 1da244758..69ceebad4 100644 --- a/src/viam/api/google/api/expr/v1alpha1/checked.grpc.pb.cc +++ b/src/viam/api/google/api/expr/v1alpha1/checked.grpc.pb.cc @@ -6,19 +6,19 @@ #include "google/api/expr/v1alpha1/checked.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace google { namespace api { namespace expr { diff --git a/src/viam/api/google/api/expr/v1alpha1/checked.grpc.pb.h b/src/viam/api/google/api/expr/v1alpha1/checked.grpc.pb.h index c96fed67f..daaee42d3 100644 --- a/src/viam/api/google/api/expr/v1alpha1/checked.grpc.pb.h +++ b/src/viam/api/google/api/expr/v1alpha1/checked.grpc.pb.h @@ -22,23 +22,24 @@ #include "google/api/expr/v1alpha1/checked.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace google { namespace api { diff --git a/src/viam/api/google/api/expr/v1alpha1/checked.pb.cc b/src/viam/api/google/api/expr/v1alpha1/checked.pb.cc index 0acd259dc..5382005e8 100644 --- a/src/viam/api/google/api/expr/v1alpha1/checked.pb.cc +++ b/src/viam/api/google/api/expr/v1alpha1/checked.pb.cc @@ -4,655 +4,493 @@ #include "google/api/expr/v1alpha1/checked.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace google { namespace api { namespace expr { namespace v1alpha1 { - -inline constexpr Type::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : type_kind_{}, - _cached_size_{0}, - _oneof_case_{} {} - -template -PROTOBUF_CONSTEXPR Type::Type(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct TypeDefaultTypeInternal { - PROTOBUF_CONSTEXPR TypeDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TypeDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR CheckedExpr_ReferenceMapEntry_DoNotUse::CheckedExpr_ReferenceMapEntry_DoNotUse( + ::_pbi::ConstantInitialized){} +struct CheckedExpr_ReferenceMapEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR CheckedExpr_ReferenceMapEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CheckedExpr_ReferenceMapEntry_DoNotUseDefaultTypeInternal() {} union { - Type _instance; + CheckedExpr_ReferenceMapEntry_DoNotUse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TypeDefaultTypeInternal _Type_default_instance_; - -inline constexpr Type_AbstractType::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : parameter_types_{}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR Type_AbstractType::Type_AbstractType(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct Type_AbstractTypeDefaultTypeInternal { - PROTOBUF_CONSTEXPR Type_AbstractTypeDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~Type_AbstractTypeDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CheckedExpr_ReferenceMapEntry_DoNotUseDefaultTypeInternal _CheckedExpr_ReferenceMapEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR CheckedExpr_TypeMapEntry_DoNotUse::CheckedExpr_TypeMapEntry_DoNotUse( + ::_pbi::ConstantInitialized){} +struct CheckedExpr_TypeMapEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR CheckedExpr_TypeMapEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CheckedExpr_TypeMapEntry_DoNotUseDefaultTypeInternal() {} union { - Type_AbstractType _instance; + CheckedExpr_TypeMapEntry_DoNotUse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Type_AbstractTypeDefaultTypeInternal _Type_AbstractType_default_instance_; - -inline constexpr Type_FunctionType::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - arg_types_{}, - result_type_{nullptr} {} - -template -PROTOBUF_CONSTEXPR Type_FunctionType::Type_FunctionType(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct Type_FunctionTypeDefaultTypeInternal { - PROTOBUF_CONSTEXPR Type_FunctionTypeDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~Type_FunctionTypeDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CheckedExpr_TypeMapEntry_DoNotUseDefaultTypeInternal _CheckedExpr_TypeMapEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR CheckedExpr::CheckedExpr( + ::_pbi::ConstantInitialized) + : reference_map_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + , type_map_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + , expr_version_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , expr_(nullptr) + , source_info_(nullptr){} +struct CheckedExprDefaultTypeInternal { + PROTOBUF_CONSTEXPR CheckedExprDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CheckedExprDefaultTypeInternal() {} union { - Type_FunctionType _instance; + CheckedExpr _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Type_FunctionTypeDefaultTypeInternal _Type_FunctionType_default_instance_; - -inline constexpr Type_ListType::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - elem_type_{nullptr} {} - -template -PROTOBUF_CONSTEXPR Type_ListType::Type_ListType(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CheckedExprDefaultTypeInternal _CheckedExpr_default_instance_; +PROTOBUF_CONSTEXPR Type_ListType::Type_ListType( + ::_pbi::ConstantInitialized) + : elem_type_(nullptr){} struct Type_ListTypeDefaultTypeInternal { - PROTOBUF_CONSTEXPR Type_ListTypeDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR Type_ListTypeDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~Type_ListTypeDefaultTypeInternal() {} union { Type_ListType _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Type_ListTypeDefaultTypeInternal _Type_ListType_default_instance_; - -inline constexpr Type_MapType::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - key_type_{nullptr}, - value_type_{nullptr} {} - -template -PROTOBUF_CONSTEXPR Type_MapType::Type_MapType(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Type_ListTypeDefaultTypeInternal _Type_ListType_default_instance_; +PROTOBUF_CONSTEXPR Type_MapType::Type_MapType( + ::_pbi::ConstantInitialized) + : key_type_(nullptr) + , value_type_(nullptr){} struct Type_MapTypeDefaultTypeInternal { - PROTOBUF_CONSTEXPR Type_MapTypeDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR Type_MapTypeDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~Type_MapTypeDefaultTypeInternal() {} union { Type_MapType _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Type_MapTypeDefaultTypeInternal _Type_MapType_default_instance_; - -inline constexpr Reference::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - overload_id_{}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - value_{nullptr} {} - -template -PROTOBUF_CONSTEXPR Reference::Reference(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ReferenceDefaultTypeInternal { - PROTOBUF_CONSTEXPR ReferenceDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ReferenceDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Type_MapTypeDefaultTypeInternal _Type_MapType_default_instance_; +PROTOBUF_CONSTEXPR Type_FunctionType::Type_FunctionType( + ::_pbi::ConstantInitialized) + : arg_types_() + , result_type_(nullptr){} +struct Type_FunctionTypeDefaultTypeInternal { + PROTOBUF_CONSTEXPR Type_FunctionTypeDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Type_FunctionTypeDefaultTypeInternal() {} union { - Reference _instance; + Type_FunctionType _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ReferenceDefaultTypeInternal _Reference_default_instance_; - -inline constexpr Decl_IdentDecl::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - doc_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - type_{nullptr}, - value_{nullptr} {} - -template -PROTOBUF_CONSTEXPR Decl_IdentDecl::Decl_IdentDecl(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Type_FunctionTypeDefaultTypeInternal _Type_FunctionType_default_instance_; +PROTOBUF_CONSTEXPR Type_AbstractType::Type_AbstractType( + ::_pbi::ConstantInitialized) + : parameter_types_() + , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct Type_AbstractTypeDefaultTypeInternal { + PROTOBUF_CONSTEXPR Type_AbstractTypeDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Type_AbstractTypeDefaultTypeInternal() {} + union { + Type_AbstractType _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Type_AbstractTypeDefaultTypeInternal _Type_AbstractType_default_instance_; +PROTOBUF_CONSTEXPR Type::Type( + ::_pbi::ConstantInitialized) + : _oneof_case_{}{} +struct TypeDefaultTypeInternal { + PROTOBUF_CONSTEXPR TypeDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~TypeDefaultTypeInternal() {} + union { + Type _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TypeDefaultTypeInternal _Type_default_instance_; +PROTOBUF_CONSTEXPR Decl_IdentDecl::Decl_IdentDecl( + ::_pbi::ConstantInitialized) + : doc_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , type_(nullptr) + , value_(nullptr){} struct Decl_IdentDeclDefaultTypeInternal { - PROTOBUF_CONSTEXPR Decl_IdentDeclDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR Decl_IdentDeclDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~Decl_IdentDeclDefaultTypeInternal() {} union { Decl_IdentDecl _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Decl_IdentDeclDefaultTypeInternal _Decl_IdentDecl_default_instance_; - -inline constexpr Decl_FunctionDecl_Overload::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - params_{}, - type_params_{}, - overload_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - doc_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - result_type_{nullptr}, - is_instance_function_{false} {} - -template -PROTOBUF_CONSTEXPR Decl_FunctionDecl_Overload::Decl_FunctionDecl_Overload(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Decl_IdentDeclDefaultTypeInternal _Decl_IdentDecl_default_instance_; +PROTOBUF_CONSTEXPR Decl_FunctionDecl_Overload::Decl_FunctionDecl_Overload( + ::_pbi::ConstantInitialized) + : params_() + , type_params_() + , overload_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , doc_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , result_type_(nullptr) + , is_instance_function_(false){} struct Decl_FunctionDecl_OverloadDefaultTypeInternal { - PROTOBUF_CONSTEXPR Decl_FunctionDecl_OverloadDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR Decl_FunctionDecl_OverloadDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~Decl_FunctionDecl_OverloadDefaultTypeInternal() {} union { Decl_FunctionDecl_Overload _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Decl_FunctionDecl_OverloadDefaultTypeInternal _Decl_FunctionDecl_Overload_default_instance_; - template -PROTOBUF_CONSTEXPR CheckedExpr_TypeMapEntry_DoNotUse::CheckedExpr_TypeMapEntry_DoNotUse(::_pbi::ConstantInitialized) {} -struct CheckedExpr_TypeMapEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR CheckedExpr_TypeMapEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CheckedExpr_TypeMapEntry_DoNotUseDefaultTypeInternal() {} - union { - CheckedExpr_TypeMapEntry_DoNotUse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CheckedExpr_TypeMapEntry_DoNotUseDefaultTypeInternal _CheckedExpr_TypeMapEntry_DoNotUse_default_instance_; - -inline constexpr Decl_FunctionDecl::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : overloads_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR Decl_FunctionDecl::Decl_FunctionDecl(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Decl_FunctionDecl_OverloadDefaultTypeInternal _Decl_FunctionDecl_Overload_default_instance_; +PROTOBUF_CONSTEXPR Decl_FunctionDecl::Decl_FunctionDecl( + ::_pbi::ConstantInitialized) + : overloads_(){} struct Decl_FunctionDeclDefaultTypeInternal { - PROTOBUF_CONSTEXPR Decl_FunctionDeclDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR Decl_FunctionDeclDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~Decl_FunctionDeclDefaultTypeInternal() {} union { Decl_FunctionDecl _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Decl_FunctionDeclDefaultTypeInternal _Decl_FunctionDecl_default_instance_; - template -PROTOBUF_CONSTEXPR CheckedExpr_ReferenceMapEntry_DoNotUse::CheckedExpr_ReferenceMapEntry_DoNotUse(::_pbi::ConstantInitialized) {} -struct CheckedExpr_ReferenceMapEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR CheckedExpr_ReferenceMapEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CheckedExpr_ReferenceMapEntry_DoNotUseDefaultTypeInternal() {} - union { - CheckedExpr_ReferenceMapEntry_DoNotUse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CheckedExpr_ReferenceMapEntry_DoNotUseDefaultTypeInternal _CheckedExpr_ReferenceMapEntry_DoNotUse_default_instance_; - -inline constexpr Decl::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - decl_kind_{}, - _cached_size_{0}, - _oneof_case_{} {} - -template -PROTOBUF_CONSTEXPR Decl::Decl(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Decl_FunctionDeclDefaultTypeInternal _Decl_FunctionDecl_default_instance_; +PROTOBUF_CONSTEXPR Decl::Decl( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , _oneof_case_{}{} struct DeclDefaultTypeInternal { - PROTOBUF_CONSTEXPR DeclDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR DeclDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~DeclDefaultTypeInternal() {} union { Decl _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeclDefaultTypeInternal _Decl_default_instance_; - -inline constexpr CheckedExpr::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - reference_map_{}, - type_map_{}, - expr_version_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - expr_{nullptr}, - source_info_{nullptr} {} - -template -PROTOBUF_CONSTEXPR CheckedExpr::CheckedExpr(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct CheckedExprDefaultTypeInternal { - PROTOBUF_CONSTEXPR CheckedExprDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CheckedExprDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeclDefaultTypeInternal _Decl_default_instance_; +PROTOBUF_CONSTEXPR Reference::Reference( + ::_pbi::ConstantInitialized) + : overload_id_() + , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , value_(nullptr){} +struct ReferenceDefaultTypeInternal { + PROTOBUF_CONSTEXPR ReferenceDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ReferenceDefaultTypeInternal() {} union { - CheckedExpr _instance; + Reference _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CheckedExprDefaultTypeInternal _CheckedExpr_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ReferenceDefaultTypeInternal _Reference_default_instance_; } // namespace v1alpha1 } // namespace expr } // namespace api } // namespace google static ::_pb::Metadata file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto[13]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto[2]; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto = nullptr; -const ::uint32_t TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::CheckedExpr_ReferenceMapEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::CheckedExpr_ReferenceMapEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::CheckedExpr_ReferenceMapEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::CheckedExpr_ReferenceMapEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::CheckedExpr_TypeMapEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::CheckedExpr_TypeMapEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::CheckedExpr_TypeMapEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::CheckedExpr_TypeMapEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::CheckedExpr, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::CheckedExpr, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::CheckedExpr, _impl_.reference_map_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::CheckedExpr, _impl_.type_map_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::CheckedExpr, _impl_.source_info_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::CheckedExpr, _impl_.expr_version_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::CheckedExpr, _impl_.expr_), - ~0u, - ~0u, - 1, - ~0u, - 0, - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Type_ListType, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Type_ListType, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Type_ListType, _impl_.elem_type_), - 0, - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Type_MapType, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Type_MapType, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Type_MapType, _impl_.key_type_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Type_MapType, _impl_.value_type_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Type_FunctionType, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Type_FunctionType, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Type_FunctionType, _impl_.result_type_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Type_FunctionType, _impl_.arg_types_), - 0, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Type_AbstractType, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Type_AbstractType, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Type_AbstractType, _impl_.parameter_types_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Type, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Type, _impl_._oneof_case_[0]), - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Type, _impl_.type_kind_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Decl_IdentDecl, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Decl_IdentDecl, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Decl_IdentDecl, _impl_.type_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Decl_IdentDecl, _impl_.value_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Decl_IdentDecl, _impl_.doc_), - 0, - 1, - ~0u, - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload, _impl_.overload_id_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload, _impl_.params_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload, _impl_.type_params_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload, _impl_.result_type_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload, _impl_.is_instance_function_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload, _impl_.doc_), - ~0u, - ~0u, - ~0u, - 0, - ~0u, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Decl_FunctionDecl, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Decl_FunctionDecl, _impl_.overloads_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Decl, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Decl, _impl_._oneof_case_[0]), - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Decl, _impl_.name_), - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Decl, _impl_.decl_kind_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Reference, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Reference, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Reference, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Reference, _impl_.overload_id_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Reference, _impl_.value_), - ~0u, - ~0u, - 0, +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto = nullptr; + +const uint32_t TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::CheckedExpr_ReferenceMapEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::CheckedExpr_ReferenceMapEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::CheckedExpr_ReferenceMapEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::CheckedExpr_ReferenceMapEntry_DoNotUse, value_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::CheckedExpr_TypeMapEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::CheckedExpr_TypeMapEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::CheckedExpr_TypeMapEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::CheckedExpr_TypeMapEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::CheckedExpr, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::CheckedExpr, reference_map_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::CheckedExpr, type_map_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::CheckedExpr, source_info_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::CheckedExpr, expr_version_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::CheckedExpr, expr_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Type_ListType, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Type_ListType, elem_type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Type_MapType, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Type_MapType, key_type_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Type_MapType, value_type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Type_FunctionType, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Type_FunctionType, result_type_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Type_FunctionType, arg_types_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Type_AbstractType, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Type_AbstractType, name_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Type_AbstractType, parameter_types_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Type, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Type, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Type, type_kind_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Decl_IdentDecl, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Decl_IdentDecl, type_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Decl_IdentDecl, value_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Decl_IdentDecl, doc_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload, overload_id_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload, params_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload, type_params_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload, result_type_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload, is_instance_function_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload, doc_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Decl_FunctionDecl, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Decl_FunctionDecl, overloads_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Decl, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Decl, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Decl, name_), + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Decl, decl_kind_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Reference, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Reference, name_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Reference, overload_id_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Reference, value_), }; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, 10, -1, sizeof(::google::api::expr::v1alpha1::CheckedExpr_ReferenceMapEntry_DoNotUse)}, - {12, 22, -1, sizeof(::google::api::expr::v1alpha1::CheckedExpr_TypeMapEntry_DoNotUse)}, - {24, 37, -1, sizeof(::google::api::expr::v1alpha1::CheckedExpr)}, - {42, 51, -1, sizeof(::google::api::expr::v1alpha1::Type_ListType)}, - {52, 62, -1, sizeof(::google::api::expr::v1alpha1::Type_MapType)}, - {64, 74, -1, sizeof(::google::api::expr::v1alpha1::Type_FunctionType)}, - {76, -1, -1, sizeof(::google::api::expr::v1alpha1::Type_AbstractType)}, - {86, -1, -1, sizeof(::google::api::expr::v1alpha1::Type)}, - {108, 119, -1, sizeof(::google::api::expr::v1alpha1::Decl_IdentDecl)}, - {122, 136, -1, sizeof(::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload)}, - {142, -1, -1, sizeof(::google::api::expr::v1alpha1::Decl_FunctionDecl)}, - {151, -1, -1, sizeof(::google::api::expr::v1alpha1::Decl)}, - {163, 174, -1, sizeof(::google::api::expr::v1alpha1::Reference)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, 8, -1, sizeof(::google::api::expr::v1alpha1::CheckedExpr_ReferenceMapEntry_DoNotUse)}, + { 10, 18, -1, sizeof(::google::api::expr::v1alpha1::CheckedExpr_TypeMapEntry_DoNotUse)}, + { 20, -1, -1, sizeof(::google::api::expr::v1alpha1::CheckedExpr)}, + { 31, -1, -1, sizeof(::google::api::expr::v1alpha1::Type_ListType)}, + { 38, -1, -1, sizeof(::google::api::expr::v1alpha1::Type_MapType)}, + { 46, -1, -1, sizeof(::google::api::expr::v1alpha1::Type_FunctionType)}, + { 54, -1, -1, sizeof(::google::api::expr::v1alpha1::Type_AbstractType)}, + { 62, -1, -1, sizeof(::google::api::expr::v1alpha1::Type)}, + { 82, -1, -1, sizeof(::google::api::expr::v1alpha1::Decl_IdentDecl)}, + { 91, -1, -1, sizeof(::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload)}, + { 103, -1, -1, sizeof(::google::api::expr::v1alpha1::Decl_FunctionDecl)}, + { 110, -1, -1, sizeof(::google::api::expr::v1alpha1::Decl)}, + { 120, -1, -1, sizeof(::google::api::expr::v1alpha1::Reference)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::google::api::expr::v1alpha1::_CheckedExpr_ReferenceMapEntry_DoNotUse_default_instance_._instance, - &::google::api::expr::v1alpha1::_CheckedExpr_TypeMapEntry_DoNotUse_default_instance_._instance, - &::google::api::expr::v1alpha1::_CheckedExpr_default_instance_._instance, - &::google::api::expr::v1alpha1::_Type_ListType_default_instance_._instance, - &::google::api::expr::v1alpha1::_Type_MapType_default_instance_._instance, - &::google::api::expr::v1alpha1::_Type_FunctionType_default_instance_._instance, - &::google::api::expr::v1alpha1::_Type_AbstractType_default_instance_._instance, - &::google::api::expr::v1alpha1::_Type_default_instance_._instance, - &::google::api::expr::v1alpha1::_Decl_IdentDecl_default_instance_._instance, - &::google::api::expr::v1alpha1::_Decl_FunctionDecl_Overload_default_instance_._instance, - &::google::api::expr::v1alpha1::_Decl_FunctionDecl_default_instance_._instance, - &::google::api::expr::v1alpha1::_Decl_default_instance_._instance, - &::google::api::expr::v1alpha1::_Reference_default_instance_._instance, -}; -const char descriptor_table_protodef_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n&google/api/expr/v1alpha1/checked.proto" - "\022\030google.api.expr.v1alpha1\032%google/api/e" - "xpr/v1alpha1/syntax.proto\032\033google/protob" - "uf/empty.proto\032\034google/protobuf/struct.p" - "roto\"\232\004\n\013CheckedExpr\022\\\n\rreference_map\030\002 " - "\003(\01327.google.api.expr.v1alpha1.CheckedEx" - "pr.ReferenceMapEntryR\014referenceMap\022M\n\010ty" - "pe_map\030\003 \003(\01322.google.api.expr.v1alpha1." - "CheckedExpr.TypeMapEntryR\007typeMap\022E\n\013sou" - "rce_info\030\005 \001(\0132$.google.api.expr.v1alpha" - "1.SourceInfoR\nsourceInfo\022!\n\014expr_version" - "\030\006 \001(\tR\013exprVersion\0222\n\004expr\030\004 \001(\0132\036.goog" - "le.api.expr.v1alpha1.ExprR\004expr\032d\n\021Refer" - "enceMapEntry\022\020\n\003key\030\001 \001(\003R\003key\0229\n\005value\030" - "\002 \001(\0132#.google.api.expr.v1alpha1.Referen" - "ceR\005value:\0028\001\032Z\n\014TypeMapEntry\022\020\n\003key\030\001 \001" - "(\003R\003key\0224\n\005value\030\002 \001(\0132\036.google.api.expr" - ".v1alpha1.TypeR\005value:\0028\001\"\310\013\n\004Type\022*\n\003dy" - "n\030\001 \001(\0132\026.google.protobuf.EmptyH\000R\003dyn\0220" - "\n\004null\030\002 \001(\0162\032.google.protobuf.NullValue" - "H\000R\004null\022L\n\tprimitive\030\003 \001(\0162,.google.api" - ".expr.v1alpha1.Type.PrimitiveTypeH\000R\tpri" - "mitive\022H\n\007wrapper\030\004 \001(\0162,.google.api.exp" - "r.v1alpha1.Type.PrimitiveTypeH\000R\007wrapper" - "\022M\n\nwell_known\030\005 \001(\0162,.google.api.expr.v" - "1alpha1.Type.WellKnownTypeH\000R\twellKnown\022" - "F\n\tlist_type\030\006 \001(\0132\'.google.api.expr.v1a" - "lpha1.Type.ListTypeH\000R\010listType\022C\n\010map_t" - "ype\030\007 \001(\0132&.google.api.expr.v1alpha1.Typ" - "e.MapTypeH\000R\007mapType\022I\n\010function\030\010 \001(\0132+" - ".google.api.expr.v1alpha1.Type.FunctionT" - "ypeH\000R\010function\022#\n\014message_type\030\t \001(\tH\000R" - "\013messageType\022\037\n\ntype_param\030\n \001(\tH\000R\ttype" - "Param\0224\n\004type\030\013 \001(\0132\036.google.api.expr.v1" - "alpha1.TypeH\000R\004type\022.\n\005error\030\014 \001(\0132\026.goo" - "gle.protobuf.EmptyH\000R\005error\022R\n\rabstract_" - "type\030\016 \001(\0132+.google.api.expr.v1alpha1.Ty" - "pe.AbstractTypeH\000R\014abstractType\032G\n\010ListT" - "ype\022;\n\telem_type\030\001 \001(\0132\036.google.api.expr" - ".v1alpha1.TypeR\010elemType\032\203\001\n\007MapType\0229\n\010" - "key_type\030\001 \001(\0132\036.google.api.expr.v1alpha" - "1.TypeR\007keyType\022=\n\nvalue_type\030\002 \001(\0132\036.go" - "ogle.api.expr.v1alpha1.TypeR\tvalueType\032\214" - "\001\n\014FunctionType\022\?\n\013result_type\030\001 \001(\0132\036.g" - "oogle.api.expr.v1alpha1.TypeR\nresultType" - "\022;\n\targ_types\030\002 \003(\0132\036.google.api.expr.v1" - "alpha1.TypeR\010argTypes\032k\n\014AbstractType\022\022\n" - "\004name\030\001 \001(\tR\004name\022G\n\017parameter_types\030\002 \003" - "(\0132\036.google.api.expr.v1alpha1.TypeR\016para" - "meterTypes\"s\n\rPrimitiveType\022\036\n\032PRIMITIVE" - "_TYPE_UNSPECIFIED\020\000\022\010\n\004BOOL\020\001\022\t\n\005INT64\020\002" - "\022\n\n\006UINT64\020\003\022\n\n\006DOUBLE\020\004\022\n\n\006STRING\020\005\022\t\n\005" - "BYTES\020\006\"V\n\rWellKnownType\022\037\n\033WELL_KNOWN_T" - "YPE_UNSPECIFIED\020\000\022\007\n\003ANY\020\001\022\r\n\tTIMESTAMP\020" - "\002\022\014\n\010DURATION\020\003B\013\n\ttype_kind\"\263\005\n\004Decl\022\022\n" - "\004name\030\001 \001(\tR\004name\022@\n\005ident\030\002 \001(\0132(.googl" - "e.api.expr.v1alpha1.Decl.IdentDeclH\000R\005id" - "ent\022I\n\010function\030\003 \001(\0132+.google.api.expr." - "v1alpha1.Decl.FunctionDeclH\000R\010function\032\213" - "\001\n\tIdentDecl\0222\n\004type\030\001 \001(\0132\036.google.api." - "expr.v1alpha1.TypeR\004type\0228\n\005value\030\002 \001(\0132" - "\".google.api.expr.v1alpha1.ConstantR\005val" - "ue\022\020\n\003doc\030\003 \001(\tR\003doc\032\356\002\n\014FunctionDecl\022R\n" - "\toverloads\030\001 \003(\01324.google.api.expr.v1alp" - "ha1.Decl.FunctionDecl.OverloadR\toverload" - "s\032\211\002\n\010Overload\022\037\n\013overload_id\030\001 \001(\tR\nove" - "rloadId\0226\n\006params\030\002 \003(\0132\036.google.api.exp" - "r.v1alpha1.TypeR\006params\022\037\n\013type_params\030\003" - " \003(\tR\ntypeParams\022\?\n\013result_type\030\004 \001(\0132\036." - "google.api.expr.v1alpha1.TypeR\nresultTyp" - "e\0220\n\024is_instance_function\030\005 \001(\010R\022isInsta" - "nceFunction\022\020\n\003doc\030\006 \001(\tR\003docB\013\n\tdecl_ki" - "nd\"z\n\tReference\022\022\n\004name\030\001 \001(\tR\004name\022\037\n\013o" - "verload_id\030\003 \003(\tR\noverloadId\0228\n\005value\030\004 " - "\001(\0132\".google.api.expr.v1alpha1.ConstantR" - "\005valueB\360\001\n\034com.google.api.expr.v1alpha1B" - "\014CheckedProtoP\001Z descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto_getter() { return &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto(&descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto(&descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto); namespace google { namespace api { namespace expr { namespace v1alpha1 { -const ::google::protobuf::EnumDescriptor* Type_PrimitiveType_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto); +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Type_PrimitiveType_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto); return file_level_enum_descriptors_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto[0]; } -PROTOBUF_CONSTINIT const uint32_t Type_PrimitiveType_internal_data_[] = { - 458752u, 0u, }; bool Type_PrimitiveType_IsValid(int value) { - return 0 <= value && value <= 6; + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + return true; + default: + return false; + } } -#if (__cplusplus < 201703) && \ - (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr Type_PrimitiveType Type::PRIMITIVE_TYPE_UNSPECIFIED; constexpr Type_PrimitiveType Type::BOOL; constexpr Type_PrimitiveType Type::INT64; @@ -663,21 +501,24 @@ constexpr Type_PrimitiveType Type::BYTES; constexpr Type_PrimitiveType Type::PrimitiveType_MIN; constexpr Type_PrimitiveType Type::PrimitiveType_MAX; constexpr int Type::PrimitiveType_ARRAYSIZE; - -#endif // (__cplusplus < 201703) && - // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -const ::google::protobuf::EnumDescriptor* Type_WellKnownType_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto); +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Type_WellKnownType_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto); return file_level_enum_descriptors_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto[1]; } -PROTOBUF_CONSTINIT const uint32_t Type_WellKnownType_internal_data_[] = { - 262144u, 0u, }; bool Type_WellKnownType_IsValid(int value) { - return 0 <= value && value <= 3; + switch (value) { + case 0: + case 1: + case 2: + case 3: + return true; + default: + return false; + } } -#if (__cplusplus < 201703) && \ - (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr Type_WellKnownType Type::WELL_KNOWN_TYPE_UNSPECIFIED; constexpr Type_WellKnownType Type::ANY; constexpr Type_WellKnownType Type::TIMESTAMP; @@ -685,380 +526,394 @@ constexpr Type_WellKnownType Type::DURATION; constexpr Type_WellKnownType Type::WellKnownType_MIN; constexpr Type_WellKnownType Type::WellKnownType_MAX; constexpr int Type::WellKnownType_ARRAYSIZE; +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -#endif // (__cplusplus < 201703) && - // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) // =================================================================== CheckedExpr_ReferenceMapEntry_DoNotUse::CheckedExpr_ReferenceMapEntry_DoNotUse() {} -CheckedExpr_ReferenceMapEntry_DoNotUse::CheckedExpr_ReferenceMapEntry_DoNotUse(::google::protobuf::Arena* arena) +CheckedExpr_ReferenceMapEntry_DoNotUse::CheckedExpr_ReferenceMapEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) : SuperType(arena) {} -::google::protobuf::Metadata CheckedExpr_ReferenceMapEntry_DoNotUse::GetMetadata() const { +void CheckedExpr_ReferenceMapEntry_DoNotUse::MergeFrom(const CheckedExpr_ReferenceMapEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata CheckedExpr_ReferenceMapEntry_DoNotUse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto[0]); } + // =================================================================== CheckedExpr_TypeMapEntry_DoNotUse::CheckedExpr_TypeMapEntry_DoNotUse() {} -CheckedExpr_TypeMapEntry_DoNotUse::CheckedExpr_TypeMapEntry_DoNotUse(::google::protobuf::Arena* arena) +CheckedExpr_TypeMapEntry_DoNotUse::CheckedExpr_TypeMapEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) : SuperType(arena) {} -::google::protobuf::Metadata CheckedExpr_TypeMapEntry_DoNotUse::GetMetadata() const { +void CheckedExpr_TypeMapEntry_DoNotUse::MergeFrom(const CheckedExpr_TypeMapEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata CheckedExpr_TypeMapEntry_DoNotUse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto[1]); } + // =================================================================== class CheckedExpr::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(CheckedExpr, _impl_._has_bits_); static const ::google::api::expr::v1alpha1::SourceInfo& source_info(const CheckedExpr* msg); - static void set_has_source_info(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } static const ::google::api::expr::v1alpha1::Expr& expr(const CheckedExpr* msg); - static void set_has_expr(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::google::api::expr::v1alpha1::SourceInfo& CheckedExpr::_Internal::source_info(const CheckedExpr* msg) { - return *msg->_impl_.source_info_; +const ::google::api::expr::v1alpha1::SourceInfo& +CheckedExpr::_Internal::source_info(const CheckedExpr* msg) { + return *msg->source_info_; } -const ::google::api::expr::v1alpha1::Expr& CheckedExpr::_Internal::expr(const CheckedExpr* msg) { - return *msg->_impl_.expr_; +const ::google::api::expr::v1alpha1::Expr& +CheckedExpr::_Internal::expr(const CheckedExpr* msg) { + return *msg->expr_; } void CheckedExpr::clear_source_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.source_info_ != nullptr) _impl_.source_info_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && source_info_ != nullptr) { + delete source_info_; + } + source_info_ = nullptr; } void CheckedExpr::clear_expr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.expr_ != nullptr) _impl_.expr_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -CheckedExpr::CheckedExpr(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); + if (GetArenaForAllocation() == nullptr && expr_ != nullptr) { + delete expr_; + } + expr_ = nullptr; +} +CheckedExpr::CheckedExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + reference_map_(arena), + type_map_(arena) { + SharedCtor(); + if (arena != nullptr && !is_message_owned) { + arena->OwnCustomDestructor(this, &CheckedExpr::ArenaDtor); + } // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.CheckedExpr) } -inline PROTOBUF_NDEBUG_INLINE CheckedExpr::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - reference_map_{visibility, arena, from.reference_map_}, - type_map_{visibility, arena, from.type_map_}, - expr_version_(arena, from.expr_version_) {} - -CheckedExpr::CheckedExpr( - ::google::protobuf::Arena* arena, - const CheckedExpr& from) - : ::google::protobuf::Message(arena) { - CheckedExpr* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.expr_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::api::expr::v1alpha1::Expr>(arena, *from._impl_.expr_) - : nullptr; - _impl_.source_info_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::google::api::expr::v1alpha1::SourceInfo>(arena, *from._impl_.source_info_) - : nullptr; - +CheckedExpr::CheckedExpr(const CheckedExpr& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + reference_map_.MergeFrom(from.reference_map_); + type_map_.MergeFrom(from.type_map_); + expr_version_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + expr_version_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_expr_version().empty()) { + expr_version_.Set(from._internal_expr_version(), + GetArenaForAllocation()); + } + if (from._internal_has_expr()) { + expr_ = new ::google::api::expr::v1alpha1::Expr(*from.expr_); + } else { + expr_ = nullptr; + } + if (from._internal_has_source_info()) { + source_info_ = new ::google::api::expr::v1alpha1::SourceInfo(*from.source_info_); + } else { + source_info_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.CheckedExpr) } -inline PROTOBUF_NDEBUG_INLINE CheckedExpr::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - reference_map_{visibility, arena}, - type_map_{visibility, arena}, - expr_version_(arena) {} - -inline void CheckedExpr::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, expr_), - 0, - offsetof(Impl_, source_info_) - - offsetof(Impl_, expr_) + - sizeof(Impl_::source_info_)); + +inline void CheckedExpr::SharedCtor() { +expr_version_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + expr_version_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&expr_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&source_info_) - + reinterpret_cast(&expr_)) + sizeof(source_info_)); } + CheckedExpr::~CheckedExpr() { // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.CheckedExpr) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + ArenaDtor(this); + return; + } SharedDtor(); } + inline void CheckedExpr::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.expr_version_.Destroy(); - delete _impl_.expr_; - delete _impl_.source_info_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + reference_map_.Destruct(); + type_map_.Destruct(); + expr_version_.Destroy(); + if (this != internal_default_instance()) delete expr_; + if (this != internal_default_instance()) delete source_info_; } -PROTOBUF_NOINLINE void CheckedExpr::Clear() { +void CheckedExpr::ArenaDtor(void* object) { + CheckedExpr* _this = reinterpret_cast< CheckedExpr* >(object); + _this->reference_map_.Destruct(); + _this->type_map_.Destruct(); +} +void CheckedExpr::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void CheckedExpr::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.CheckedExpr) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.reference_map_.Clear(); - _impl_.type_map_.Clear(); - _impl_.expr_version_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.expr_ != nullptr); - _impl_.expr_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.source_info_ != nullptr); - _impl_.source_info_->Clear(); - } + reference_map_.Clear(); + type_map_.Clear(); + expr_version_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && expr_ != nullptr) { + delete expr_; } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* CheckedExpr::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + expr_ = nullptr; + if (GetArenaForAllocation() == nullptr && source_info_ != nullptr) { + delete source_info_; + } + source_info_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CheckedExpr::_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 reference_map = 2 [json_name = "referenceMap"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&reference_map_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } else + goto handle_unusual; + continue; + // map type_map = 3 [json_name = "typeMap"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&type_map_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Expr expr = 4 [json_name = "expr"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_expr(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.SourceInfo source_info = 5 [json_name = "sourceInfo"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_source_info(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string expr_version = 6 [json_name = "exprVersion"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + auto str = _internal_mutable_expr_version(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1alpha1.CheckedExpr.expr_version")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 5, 6, 57, 2> CheckedExpr::_table_ = { - { - PROTOBUF_FIELD_OFFSET(CheckedExpr, _impl_._has_bits_), - 0, // no _extensions_ - 6, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967233, // skipmap - offsetof(decltype(_table_), field_entries), - 5, // num_field_entries - 6, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_CheckedExpr_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .google.api.expr.v1alpha1.Expr expr = 4 [json_name = "expr"]; - {::_pbi::TcParser::FastMtS1, - {34, 0, 4, PROTOBUF_FIELD_OFFSET(CheckedExpr, _impl_.expr_)}}, - // .google.api.expr.v1alpha1.SourceInfo source_info = 5 [json_name = "sourceInfo"]; - {::_pbi::TcParser::FastMtS1, - {42, 1, 5, PROTOBUF_FIELD_OFFSET(CheckedExpr, _impl_.source_info_)}}, - // string expr_version = 6 [json_name = "exprVersion"]; - {::_pbi::TcParser::FastUS1, - {50, 63, 0, PROTOBUF_FIELD_OFFSET(CheckedExpr, _impl_.expr_version_)}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // map reference_map = 2 [json_name = "referenceMap"]; - {PROTOBUF_FIELD_OFFSET(CheckedExpr, _impl_.reference_map_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, - // map type_map = 3 [json_name = "typeMap"]; - {PROTOBUF_FIELD_OFFSET(CheckedExpr, _impl_.type_map_), -1, 2, - (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, - // .google.api.expr.v1alpha1.Expr expr = 4 [json_name = "expr"]; - {PROTOBUF_FIELD_OFFSET(CheckedExpr, _impl_.expr_), _Internal::kHasBitsOffset + 0, 4, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.api.expr.v1alpha1.SourceInfo source_info = 5 [json_name = "sourceInfo"]; - {PROTOBUF_FIELD_OFFSET(CheckedExpr, _impl_.source_info_), _Internal::kHasBitsOffset + 1, 5, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // string expr_version = 6 [json_name = "exprVersion"]; - {PROTOBUF_FIELD_OFFSET(CheckedExpr, _impl_.expr_version_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetMapAuxInfo< - decltype(CheckedExpr()._impl_.reference_map_)>( - 1, 0, 0, 3, - 11)}, - {::_pbi::TcParser::CreateInArenaStorageCb<::google::api::expr::v1alpha1::Reference>}, - {::_pbi::TcParser::GetMapAuxInfo< - decltype(CheckedExpr()._impl_.type_map_)>( - 1, 0, 0, 3, - 11)}, - {::_pbi::TcParser::CreateInArenaStorageCb<::google::api::expr::v1alpha1::Type>}, - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::Expr>()}, - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::SourceInfo>()}, - }}, {{ - "\44\0\0\0\0\14\0\0" - "google.api.expr.v1alpha1.CheckedExpr" - "expr_version" - }}, -}; - -::uint8_t* CheckedExpr::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* CheckedExpr::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.CheckedExpr) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // map reference_map = 2 [json_name = "referenceMap"]; - if (!_internal_reference_map().empty()) { - using MapType = ::google::protobuf::Map<::int64_t, ::google::api::expr::v1alpha1::Reference>; - using WireHelper = _pbi::MapEntryFuncs<::int64_t, ::google::api::expr::v1alpha1::Reference, - _pbi::WireFormatLite::TYPE_INT64, - _pbi::WireFormatLite::TYPE_MESSAGE>; - const auto& field = _internal_reference_map(); - - if (stream->IsSerializationDeterministic() && field.size() > 1) { - for (const auto& entry : ::google::protobuf::internal::MapSorterFlat(field)) { - target = WireHelper::InternalSerialize( - 2, entry.first, entry.second, target, stream); + if (!this->_internal_reference_map().empty()) { + using MapType = ::_pb::Map; + using WireHelper = CheckedExpr_ReferenceMapEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_reference_map(); + + if (stream->IsSerializationDeterministic() && map_field.size() > 1) { + for (const auto& entry : ::_pbi::MapSorterFlat(map_field)) { + target = WireHelper::InternalSerialize(2, entry.first, entry.second, target, stream); } } else { - for (const auto& entry : field) { - target = WireHelper::InternalSerialize( - 2, entry.first, entry.second, target, stream); + for (const auto& entry : map_field) { + target = WireHelper::InternalSerialize(2, entry.first, entry.second, target, stream); } } } // map type_map = 3 [json_name = "typeMap"]; - if (!_internal_type_map().empty()) { - using MapType = ::google::protobuf::Map<::int64_t, ::google::api::expr::v1alpha1::Type>; - using WireHelper = _pbi::MapEntryFuncs<::int64_t, ::google::api::expr::v1alpha1::Type, - _pbi::WireFormatLite::TYPE_INT64, - _pbi::WireFormatLite::TYPE_MESSAGE>; - const auto& field = _internal_type_map(); - - if (stream->IsSerializationDeterministic() && field.size() > 1) { - for (const auto& entry : ::google::protobuf::internal::MapSorterFlat(field)) { - target = WireHelper::InternalSerialize( - 3, entry.first, entry.second, target, stream); + if (!this->_internal_type_map().empty()) { + using MapType = ::_pb::Map; + using WireHelper = CheckedExpr_TypeMapEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_type_map(); + + if (stream->IsSerializationDeterministic() && map_field.size() > 1) { + for (const auto& entry : ::_pbi::MapSorterFlat(map_field)) { + target = WireHelper::InternalSerialize(3, entry.first, entry.second, target, stream); } } else { - for (const auto& entry : field) { - target = WireHelper::InternalSerialize( - 3, entry.first, entry.second, target, stream); + for (const auto& entry : map_field) { + target = WireHelper::InternalSerialize(3, entry.first, entry.second, target, stream); } } } - cached_has_bits = _impl_._has_bits_[0]; // .google.api.expr.v1alpha1.Expr expr = 4 [json_name = "expr"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, _Internal::expr(this), + if (this->_internal_has_expr()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::expr(this), _Internal::expr(this).GetCachedSize(), target, stream); } // .google.api.expr.v1alpha1.SourceInfo source_info = 5 [json_name = "sourceInfo"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 5, _Internal::source_info(this), + if (this->_internal_has_source_info()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(5, _Internal::source_info(this), _Internal::source_info(this).GetCachedSize(), target, stream); } // string expr_version = 6 [json_name = "exprVersion"]; if (!this->_internal_expr_version().empty()) { - const std::string& _s = this->_internal_expr_version(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.expr.v1alpha1.CheckedExpr.expr_version"); - target = stream->WriteStringMaybeAliased(6, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_expr_version().data(), static_cast(this->_internal_expr_version().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1alpha1.CheckedExpr.expr_version"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_expr_version(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1alpha1.CheckedExpr) return target; } -::size_t CheckedExpr::ByteSizeLong() const { +size_t CheckedExpr::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.CheckedExpr) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // map reference_map = 2 [json_name = "referenceMap"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_reference_map_size()); - for (const auto& entry : _internal_reference_map()) { - total_size += _pbi::MapEntryFuncs<::int64_t, ::google::api::expr::v1alpha1::Reference, - _pbi::WireFormatLite::TYPE_INT64, - _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_reference_map_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< int64_t, ::google::api::expr::v1alpha1::Reference >::const_iterator + it = this->_internal_reference_map().begin(); + it != this->_internal_reference_map().end(); ++it) { + total_size += CheckedExpr_ReferenceMapEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); } + // map type_map = 3 [json_name = "typeMap"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_type_map_size()); - for (const auto& entry : _internal_type_map()) { - total_size += _pbi::MapEntryFuncs<::int64_t, ::google::api::expr::v1alpha1::Type, - _pbi::WireFormatLite::TYPE_INT64, - _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_type_map_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< int64_t, ::google::api::expr::v1alpha1::Type >::const_iterator + it = this->_internal_type_map().begin(); + it != this->_internal_type_map().end(); ++it) { + total_size += CheckedExpr_TypeMapEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); } + // string expr_version = 6 [json_name = "exprVersion"]; if (!this->_internal_expr_version().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_expr_version()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_expr_version()); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // .google.api.expr.v1alpha1.Expr expr = 4 [json_name = "expr"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.expr_); - } - - // .google.api.expr.v1alpha1.SourceInfo source_info = 5 [json_name = "sourceInfo"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.source_info_); - } + // .google.api.expr.v1alpha1.Expr expr = 4 [json_name = "expr"]; + if (this->_internal_has_expr()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *expr_); + } + // .google.api.expr.v1alpha1.SourceInfo source_info = 5 [json_name = "sourceInfo"]; + if (this->_internal_has_source_info()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *source_info_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData CheckedExpr::_class_data_ = { - CheckedExpr::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CheckedExpr::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CheckedExpr::MergeImpl }; -const ::google::protobuf::Message::ClassData* CheckedExpr::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CheckedExpr::GetClassData() const { return &_class_data_; } + +void CheckedExpr::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void CheckedExpr::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.CheckedExpr) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void CheckedExpr::MergeFrom(const CheckedExpr& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.CheckedExpr) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.reference_map_.MergeFrom(from._impl_.reference_map_); - _this->_impl_.type_map_.MergeFrom(from._impl_.type_map_); + reference_map_.MergeFrom(from.reference_map_); + type_map_.MergeFrom(from.type_map_); if (!from._internal_expr_version().empty()) { - _this->_internal_set_expr_version(from._internal_expr_version()); + _internal_set_expr_version(from._internal_expr_version()); } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_expr()->::google::api::expr::v1alpha1::Expr::MergeFrom( - from._internal_expr()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_source_info()->::google::api::expr::v1alpha1::SourceInfo::MergeFrom( - from._internal_source_info()); - } + if (from._internal_has_expr()) { + _internal_mutable_expr()->::google::api::expr::v1alpha1::Expr::MergeFrom(from._internal_expr()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_source_info()) { + _internal_mutable_source_info()->::google::api::expr::v1alpha1::SourceInfo::MergeFrom(from._internal_source_info()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CheckedExpr::CopyFrom(const CheckedExpr& from) { @@ -1068,214 +923,197 @@ void CheckedExpr::CopyFrom(const CheckedExpr& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool CheckedExpr::IsInitialized() const { +bool CheckedExpr::IsInitialized() const { return true; } -::_pbi::CachedSize* CheckedExpr::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void CheckedExpr::InternalSwap(CheckedExpr* PROTOBUF_RESTRICT other) { +void CheckedExpr::InternalSwap(CheckedExpr* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.reference_map_.InternalSwap(&other->_impl_.reference_map_); - _impl_.type_map_.InternalSwap(&other->_impl_.type_map_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.expr_version_, &other->_impl_.expr_version_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(CheckedExpr, _impl_.source_info_) - + sizeof(CheckedExpr::_impl_.source_info_) - - PROTOBUF_FIELD_OFFSET(CheckedExpr, _impl_.expr_)>( - reinterpret_cast(&_impl_.expr_), - reinterpret_cast(&other->_impl_.expr_)); -} - -::google::protobuf::Metadata CheckedExpr::GetMetadata() const { + reference_map_.InternalSwap(&other->reference_map_); + type_map_.InternalSwap(&other->type_map_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &expr_version_, lhs_arena, + &other->expr_version_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(CheckedExpr, source_info_) + + sizeof(CheckedExpr::source_info_) + - PROTOBUF_FIELD_OFFSET(CheckedExpr, expr_)>( + reinterpret_cast(&expr_), + reinterpret_cast(&other->expr_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata CheckedExpr::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto[2]); } + // =================================================================== class Type_ListType::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Type_ListType, _impl_._has_bits_); static const ::google::api::expr::v1alpha1::Type& elem_type(const Type_ListType* msg); - static void set_has_elem_type(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::google::api::expr::v1alpha1::Type& Type_ListType::_Internal::elem_type(const Type_ListType* msg) { - return *msg->_impl_.elem_type_; +const ::google::api::expr::v1alpha1::Type& +Type_ListType::_Internal::elem_type(const Type_ListType* msg) { + return *msg->elem_type_; } -Type_ListType::Type_ListType(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Type_ListType::Type_ListType(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.Type.ListType) } -inline PROTOBUF_NDEBUG_INLINE Type_ListType::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -Type_ListType::Type_ListType( - ::google::protobuf::Arena* arena, - const Type_ListType& from) - : ::google::protobuf::Message(arena) { - Type_ListType* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.elem_type_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::api::expr::v1alpha1::Type>(arena, *from._impl_.elem_type_) - : nullptr; - +Type_ListType::Type_ListType(const Type_ListType& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_elem_type()) { + elem_type_ = new ::google::api::expr::v1alpha1::Type(*from.elem_type_); + } else { + elem_type_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.Type.ListType) } -inline PROTOBUF_NDEBUG_INLINE Type_ListType::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void Type_ListType::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.elem_type_ = {}; +inline void Type_ListType::SharedCtor() { +elem_type_ = nullptr; } + Type_ListType::~Type_ListType() { // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.Type.ListType) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Type_ListType::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.elem_type_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete elem_type_; +} + +void Type_ListType::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void Type_ListType::Clear() { +void Type_ListType::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.Type.ListType) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.elem_type_ != nullptr); - _impl_.elem_type_->Clear(); + if (GetArenaForAllocation() == nullptr && elem_type_ != nullptr) { + delete elem_type_; } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Type_ListType::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + elem_type_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Type_ListType::_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) { + // .google.api.expr.v1alpha1.Type elem_type = 1 [json_name = "elemType"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_elem_type(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> Type_ListType::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Type_ListType, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Type_ListType_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .google.api.expr.v1alpha1.Type elem_type = 1 [json_name = "elemType"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(Type_ListType, _impl_.elem_type_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .google.api.expr.v1alpha1.Type elem_type = 1 [json_name = "elemType"]; - {PROTOBUF_FIELD_OFFSET(Type_ListType, _impl_.elem_type_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::Type>()}, - }}, {{ - }}, -}; - -::uint8_t* Type_ListType::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Type_ListType::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.Type.ListType) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .google.api.expr.v1alpha1.Type elem_type = 1 [json_name = "elemType"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::elem_type(this), + if (this->_internal_has_elem_type()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::elem_type(this), _Internal::elem_type(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1alpha1.Type.ListType) return target; } -::size_t Type_ListType::ByteSizeLong() const { +size_t Type_ListType::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.Type.ListType) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .google.api.expr.v1alpha1.Type elem_type = 1 [json_name = "elemType"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.elem_type_); + if (this->_internal_has_elem_type()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *elem_type_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Type_ListType::_class_data_ = { - Type_ListType::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Type_ListType::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Type_ListType::MergeImpl }; -const ::google::protobuf::Message::ClassData* Type_ListType::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Type_ListType::GetClassData() const { return &_class_data_; } + +void Type_ListType::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Type_ListType::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Type.ListType) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Type_ListType::MergeFrom(const Type_ListType& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Type.ListType) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_elem_type()->::google::api::expr::v1alpha1::Type::MergeFrom( - from._internal_elem_type()); + if (from._internal_has_elem_type()) { + _internal_mutable_elem_type()->::google::api::expr::v1alpha1::Type::MergeFrom(from._internal_elem_type()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Type_ListType::CopyFrom(const Type_ListType& from) { @@ -1285,255 +1123,227 @@ void Type_ListType::CopyFrom(const Type_ListType& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Type_ListType::IsInitialized() const { +bool Type_ListType::IsInitialized() const { return true; } -::_pbi::CachedSize* Type_ListType::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Type_ListType::InternalSwap(Type_ListType* PROTOBUF_RESTRICT other) { +void Type_ListType::InternalSwap(Type_ListType* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.elem_type_, other->_impl_.elem_type_); + swap(elem_type_, other->elem_type_); } -::google::protobuf::Metadata Type_ListType::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Type_ListType::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto[3]); } + // =================================================================== class Type_MapType::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Type_MapType, _impl_._has_bits_); static const ::google::api::expr::v1alpha1::Type& key_type(const Type_MapType* msg); - static void set_has_key_type(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } static const ::google::api::expr::v1alpha1::Type& value_type(const Type_MapType* msg); - static void set_has_value_type(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } }; -const ::google::api::expr::v1alpha1::Type& Type_MapType::_Internal::key_type(const Type_MapType* msg) { - return *msg->_impl_.key_type_; +const ::google::api::expr::v1alpha1::Type& +Type_MapType::_Internal::key_type(const Type_MapType* msg) { + return *msg->key_type_; } -const ::google::api::expr::v1alpha1::Type& Type_MapType::_Internal::value_type(const Type_MapType* msg) { - return *msg->_impl_.value_type_; +const ::google::api::expr::v1alpha1::Type& +Type_MapType::_Internal::value_type(const Type_MapType* msg) { + return *msg->value_type_; } -Type_MapType::Type_MapType(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Type_MapType::Type_MapType(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.Type.MapType) } -inline PROTOBUF_NDEBUG_INLINE Type_MapType::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -Type_MapType::Type_MapType( - ::google::protobuf::Arena* arena, - const Type_MapType& from) - : ::google::protobuf::Message(arena) { - Type_MapType* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.key_type_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::api::expr::v1alpha1::Type>(arena, *from._impl_.key_type_) - : nullptr; - _impl_.value_type_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::google::api::expr::v1alpha1::Type>(arena, *from._impl_.value_type_) - : nullptr; - +Type_MapType::Type_MapType(const Type_MapType& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_key_type()) { + key_type_ = new ::google::api::expr::v1alpha1::Type(*from.key_type_); + } else { + key_type_ = nullptr; + } + if (from._internal_has_value_type()) { + value_type_ = new ::google::api::expr::v1alpha1::Type(*from.value_type_); + } else { + value_type_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.Type.MapType) } -inline PROTOBUF_NDEBUG_INLINE Type_MapType::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void Type_MapType::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, key_type_), - 0, - offsetof(Impl_, value_type_) - - offsetof(Impl_, key_type_) + - sizeof(Impl_::value_type_)); +inline void Type_MapType::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&key_type_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&value_type_) - + reinterpret_cast(&key_type_)) + sizeof(value_type_)); } + Type_MapType::~Type_MapType() { // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.Type.MapType) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Type_MapType::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.key_type_; - delete _impl_.value_type_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete key_type_; + if (this != internal_default_instance()) delete value_type_; +} + +void Type_MapType::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void Type_MapType::Clear() { +void Type_MapType::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.Type.MapType) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.key_type_ != nullptr); - _impl_.key_type_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.value_type_ != nullptr); - _impl_.value_type_->Clear(); - } + if (GetArenaForAllocation() == nullptr && key_type_ != nullptr) { + delete key_type_; } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Type_MapType::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + key_type_ = nullptr; + if (GetArenaForAllocation() == nullptr && value_type_ != nullptr) { + delete value_type_; + } + value_type_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Type_MapType::_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) { + // .google.api.expr.v1alpha1.Type key_type = 1 [json_name = "keyType"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_key_type(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Type value_type = 2 [json_name = "valueType"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_value_type(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 2, 0, 2> Type_MapType::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Type_MapType, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Type_MapType_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .google.api.expr.v1alpha1.Type value_type = 2 [json_name = "valueType"]; - {::_pbi::TcParser::FastMtS1, - {18, 1, 1, PROTOBUF_FIELD_OFFSET(Type_MapType, _impl_.value_type_)}}, - // .google.api.expr.v1alpha1.Type key_type = 1 [json_name = "keyType"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(Type_MapType, _impl_.key_type_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .google.api.expr.v1alpha1.Type key_type = 1 [json_name = "keyType"]; - {PROTOBUF_FIELD_OFFSET(Type_MapType, _impl_.key_type_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.api.expr.v1alpha1.Type value_type = 2 [json_name = "valueType"]; - {PROTOBUF_FIELD_OFFSET(Type_MapType, _impl_.value_type_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::Type>()}, - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::Type>()}, - }}, {{ - }}, -}; - -::uint8_t* Type_MapType::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Type_MapType::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.Type.MapType) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .google.api.expr.v1alpha1.Type key_type = 1 [json_name = "keyType"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::key_type(this), + if (this->_internal_has_key_type()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::key_type(this), _Internal::key_type(this).GetCachedSize(), target, stream); } // .google.api.expr.v1alpha1.Type value_type = 2 [json_name = "valueType"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::value_type(this), + if (this->_internal_has_value_type()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::value_type(this), _Internal::value_type(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1alpha1.Type.MapType) return target; } -::size_t Type_MapType::ByteSizeLong() const { +size_t Type_MapType::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.Type.MapType) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // .google.api.expr.v1alpha1.Type key_type = 1 [json_name = "keyType"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.key_type_); - } - - // .google.api.expr.v1alpha1.Type value_type = 2 [json_name = "valueType"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.value_type_); - } + // .google.api.expr.v1alpha1.Type key_type = 1 [json_name = "keyType"]; + if (this->_internal_has_key_type()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *key_type_); + } + // .google.api.expr.v1alpha1.Type value_type = 2 [json_name = "valueType"]; + if (this->_internal_has_value_type()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *value_type_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Type_MapType::_class_data_ = { - Type_MapType::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Type_MapType::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Type_MapType::MergeImpl }; -const ::google::protobuf::Message::ClassData* Type_MapType::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Type_MapType::GetClassData() const { return &_class_data_; } + +void Type_MapType::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Type_MapType::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Type.MapType) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Type_MapType::MergeFrom(const Type_MapType& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Type.MapType) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_key_type()->::google::api::expr::v1alpha1::Type::MergeFrom( - from._internal_key_type()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_value_type()->::google::api::expr::v1alpha1::Type::MergeFrom( - from._internal_value_type()); - } + if (from._internal_has_key_type()) { + _internal_mutable_key_type()->::google::api::expr::v1alpha1::Type::MergeFrom(from._internal_key_type()); + } + if (from._internal_has_value_type()) { + _internal_mutable_value_type()->::google::api::expr::v1alpha1::Type::MergeFrom(from._internal_value_type()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Type_MapType::CopyFrom(const Type_MapType& from) { @@ -1543,235 +1353,221 @@ void Type_MapType::CopyFrom(const Type_MapType& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Type_MapType::IsInitialized() const { +bool Type_MapType::IsInitialized() const { return true; } -::_pbi::CachedSize* Type_MapType::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Type_MapType::InternalSwap(Type_MapType* PROTOBUF_RESTRICT other) { +void Type_MapType::InternalSwap(Type_MapType* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(Type_MapType, _impl_.value_type_) - + sizeof(Type_MapType::_impl_.value_type_) - - PROTOBUF_FIELD_OFFSET(Type_MapType, _impl_.key_type_)>( - reinterpret_cast(&_impl_.key_type_), - reinterpret_cast(&other->_impl_.key_type_)); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Type_MapType, value_type_) + + sizeof(Type_MapType::value_type_) + - PROTOBUF_FIELD_OFFSET(Type_MapType, key_type_)>( + reinterpret_cast(&key_type_), + reinterpret_cast(&other->key_type_)); } -::google::protobuf::Metadata Type_MapType::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Type_MapType::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto[4]); } + // =================================================================== class Type_FunctionType::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Type_FunctionType, _impl_._has_bits_); static const ::google::api::expr::v1alpha1::Type& result_type(const Type_FunctionType* msg); - static void set_has_result_type(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::google::api::expr::v1alpha1::Type& Type_FunctionType::_Internal::result_type(const Type_FunctionType* msg) { - return *msg->_impl_.result_type_; +const ::google::api::expr::v1alpha1::Type& +Type_FunctionType::_Internal::result_type(const Type_FunctionType* msg) { + return *msg->result_type_; } -Type_FunctionType::Type_FunctionType(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Type_FunctionType::Type_FunctionType(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + arg_types_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.Type.FunctionType) } -inline PROTOBUF_NDEBUG_INLINE Type_FunctionType::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - arg_types_{visibility, arena, from.arg_types_} {} - -Type_FunctionType::Type_FunctionType( - ::google::protobuf::Arena* arena, - const Type_FunctionType& from) - : ::google::protobuf::Message(arena) { - Type_FunctionType* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.result_type_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::api::expr::v1alpha1::Type>(arena, *from._impl_.result_type_) - : nullptr; - +Type_FunctionType::Type_FunctionType(const Type_FunctionType& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + arg_types_(from.arg_types_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_result_type()) { + result_type_ = new ::google::api::expr::v1alpha1::Type(*from.result_type_); + } else { + result_type_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.Type.FunctionType) } -inline PROTOBUF_NDEBUG_INLINE Type_FunctionType::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - arg_types_{visibility, arena} {} -inline void Type_FunctionType::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.result_type_ = {}; +inline void Type_FunctionType::SharedCtor() { +result_type_ = nullptr; } + Type_FunctionType::~Type_FunctionType() { // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.Type.FunctionType) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Type_FunctionType::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.result_type_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete result_type_; } -PROTOBUF_NOINLINE void Type_FunctionType::Clear() { +void Type_FunctionType::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void Type_FunctionType::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.Type.FunctionType) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.arg_types_.Clear(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.result_type_ != nullptr); - _impl_.result_type_->Clear(); + arg_types_.Clear(); + if (GetArenaForAllocation() == nullptr && result_type_ != nullptr) { + delete result_type_; } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Type_FunctionType::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + result_type_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Type_FunctionType::_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) { + // .google.api.expr.v1alpha1.Type result_type = 1 [json_name = "resultType"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_result_type(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // repeated .google.api.expr.v1alpha1.Type arg_types = 2 [json_name = "argTypes"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_arg_types(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 2, 0, 2> Type_FunctionType::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Type_FunctionType, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Type_FunctionType_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .google.api.expr.v1alpha1.Type arg_types = 2 [json_name = "argTypes"]; - {::_pbi::TcParser::FastMtR1, - {18, 63, 1, PROTOBUF_FIELD_OFFSET(Type_FunctionType, _impl_.arg_types_)}}, - // .google.api.expr.v1alpha1.Type result_type = 1 [json_name = "resultType"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(Type_FunctionType, _impl_.result_type_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .google.api.expr.v1alpha1.Type result_type = 1 [json_name = "resultType"]; - {PROTOBUF_FIELD_OFFSET(Type_FunctionType, _impl_.result_type_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated .google.api.expr.v1alpha1.Type arg_types = 2 [json_name = "argTypes"]; - {PROTOBUF_FIELD_OFFSET(Type_FunctionType, _impl_.arg_types_), -1, 1, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::Type>()}, - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::Type>()}, - }}, {{ - }}, -}; - -::uint8_t* Type_FunctionType::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Type_FunctionType::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.Type.FunctionType) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .google.api.expr.v1alpha1.Type result_type = 1 [json_name = "resultType"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::result_type(this), + if (this->_internal_has_result_type()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::result_type(this), _Internal::result_type(this).GetCachedSize(), target, stream); } // repeated .google.api.expr.v1alpha1.Type arg_types = 2 [json_name = "argTypes"]; for (unsigned i = 0, n = static_cast(this->_internal_arg_types_size()); i < n; i++) { - const auto& repfield = this->_internal_arg_types().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_arg_types(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1alpha1.Type.FunctionType) return target; } -::size_t Type_FunctionType::ByteSizeLong() const { +size_t Type_FunctionType::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.Type.FunctionType) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .google.api.expr.v1alpha1.Type arg_types = 2 [json_name = "argTypes"]; total_size += 1UL * this->_internal_arg_types_size(); - for (const auto& msg : this->_internal_arg_types()) { + for (const auto& msg : this->arg_types_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // .google.api.expr.v1alpha1.Type result_type = 1 [json_name = "resultType"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.result_type_); + if (this->_internal_has_result_type()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *result_type_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Type_FunctionType::_class_data_ = { - Type_FunctionType::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Type_FunctionType::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Type_FunctionType::MergeImpl }; -const ::google::protobuf::Message::ClassData* Type_FunctionType::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Type_FunctionType::GetClassData() const { return &_class_data_; } + +void Type_FunctionType::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Type_FunctionType::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Type.FunctionType) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Type_FunctionType::MergeFrom(const Type_FunctionType& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Type.FunctionType) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_arg_types()->MergeFrom( - from._internal_arg_types()); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_result_type()->::google::api::expr::v1alpha1::Type::MergeFrom( - from._internal_result_type()); + arg_types_.MergeFrom(from.arg_types_); + if (from._internal_has_result_type()) { + _internal_mutable_result_type()->::google::api::expr::v1alpha1::Type::MergeFrom(from._internal_result_type()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Type_FunctionType::CopyFrom(const Type_FunctionType& from) { @@ -1781,212 +1577,220 @@ void Type_FunctionType::CopyFrom(const Type_FunctionType& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Type_FunctionType::IsInitialized() const { +bool Type_FunctionType::IsInitialized() const { return true; } -::_pbi::CachedSize* Type_FunctionType::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Type_FunctionType::InternalSwap(Type_FunctionType* PROTOBUF_RESTRICT other) { +void Type_FunctionType::InternalSwap(Type_FunctionType* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.arg_types_.InternalSwap(&other->_impl_.arg_types_); - swap(_impl_.result_type_, other->_impl_.result_type_); + arg_types_.InternalSwap(&other->arg_types_); + swap(result_type_, other->result_type_); } -::google::protobuf::Metadata Type_FunctionType::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Type_FunctionType::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto[5]); } + // =================================================================== class Type_AbstractType::_Internal { public: }; -Type_AbstractType::Type_AbstractType(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Type_AbstractType::Type_AbstractType(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + parameter_types_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.Type.AbstractType) } -inline PROTOBUF_NDEBUG_INLINE Type_AbstractType::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : parameter_types_{visibility, arena, from.parameter_types_}, - name_(arena, from.name_), - _cached_size_{0} {} - -Type_AbstractType::Type_AbstractType( - ::google::protobuf::Arena* arena, - const Type_AbstractType& from) - : ::google::protobuf::Message(arena) { - Type_AbstractType* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +Type_AbstractType::Type_AbstractType(const Type_AbstractType& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + parameter_types_(from.parameter_types_) { + _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()); + } // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.Type.AbstractType) } -inline PROTOBUF_NDEBUG_INLINE Type_AbstractType::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : parameter_types_{visibility, arena}, - name_(arena), - _cached_size_{0} {} -inline void Type_AbstractType::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void Type_AbstractType::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + Type_AbstractType::~Type_AbstractType() { // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.Type.AbstractType) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Type_AbstractType::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); } -PROTOBUF_NOINLINE void Type_AbstractType::Clear() { +void Type_AbstractType::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void Type_AbstractType::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.Type.AbstractType) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.parameter_types_.Clear(); - _impl_.name_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Type_AbstractType::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + parameter_types_.Clear(); + name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Type_AbstractType::_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, "google.api.expr.v1alpha1.Type.AbstractType.name")); + } else + goto handle_unusual; + continue; + // repeated .google.api.expr.v1alpha1.Type parameter_types = 2 [json_name = "parameterTypes"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_parameter_types(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 55, 2> Type_AbstractType::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Type_AbstractType_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .google.api.expr.v1alpha1.Type parameter_types = 2 [json_name = "parameterTypes"]; - {::_pbi::TcParser::FastMtR1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(Type_AbstractType, _impl_.parameter_types_)}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Type_AbstractType, _impl_.name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(Type_AbstractType, _impl_.name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated .google.api.expr.v1alpha1.Type parameter_types = 2 [json_name = "parameterTypes"]; - {PROTOBUF_FIELD_OFFSET(Type_AbstractType, _impl_.parameter_types_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::Type>()}, - }}, {{ - "\52\4\0\0\0\0\0\0" - "google.api.expr.v1alpha1.Type.AbstractType" - "name" - }}, -}; - -::uint8_t* Type_AbstractType::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Type_AbstractType::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.Type.AbstractType) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.expr.v1alpha1.Type.AbstractType.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1alpha1.Type.AbstractType.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // repeated .google.api.expr.v1alpha1.Type parameter_types = 2 [json_name = "parameterTypes"]; for (unsigned i = 0, n = static_cast(this->_internal_parameter_types_size()); i < n; i++) { - const auto& repfield = this->_internal_parameter_types().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_parameter_types(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1alpha1.Type.AbstractType) return target; } -::size_t Type_AbstractType::ByteSizeLong() const { +size_t Type_AbstractType::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.Type.AbstractType) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .google.api.expr.v1alpha1.Type parameter_types = 2 [json_name = "parameterTypes"]; total_size += 1UL * this->_internal_parameter_types_size(); - for (const auto& msg : this->_internal_parameter_types()) { + for (const auto& msg : this->parameter_types_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Type_AbstractType::_class_data_ = { - Type_AbstractType::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Type_AbstractType::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Type_AbstractType::MergeImpl }; -const ::google::protobuf::Message::ClassData* Type_AbstractType::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Type_AbstractType::GetClassData() const { return &_class_data_; } + +void Type_AbstractType::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Type_AbstractType::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Type.AbstractType) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Type_AbstractType::MergeFrom(const Type_AbstractType& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Type.AbstractType) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_parameter_types()->MergeFrom( - from._internal_parameter_types()); + parameter_types_.MergeFrom(from.parameter_types_); if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Type_AbstractType::CopyFrom(const Type_AbstractType& from) { @@ -1996,707 +1800,805 @@ void Type_AbstractType::CopyFrom(const Type_AbstractType& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Type_AbstractType::IsInitialized() const { +bool Type_AbstractType::IsInitialized() const { return true; } -::_pbi::CachedSize* Type_AbstractType::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Type_AbstractType::InternalSwap(Type_AbstractType* PROTOBUF_RESTRICT other) { +void Type_AbstractType::InternalSwap(Type_AbstractType* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.parameter_types_.InternalSwap(&other->_impl_.parameter_types_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); + parameter_types_.InternalSwap(&other->parameter_types_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); } -::google::protobuf::Metadata Type_AbstractType::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Type_AbstractType::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto[6]); } + // =================================================================== class Type::_Internal { public: - static constexpr ::int32_t kOneofCaseOffset = - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Type, _impl_._oneof_case_); - static const ::google::protobuf::Empty& dyn(const Type* msg); + static const ::PROTOBUF_NAMESPACE_ID::Empty& dyn(const Type* msg); static const ::google::api::expr::v1alpha1::Type_ListType& list_type(const Type* msg); static const ::google::api::expr::v1alpha1::Type_MapType& map_type(const Type* msg); static const ::google::api::expr::v1alpha1::Type_FunctionType& function(const Type* msg); static const ::google::api::expr::v1alpha1::Type& type(const Type* msg); - static const ::google::protobuf::Empty& error(const Type* msg); + static const ::PROTOBUF_NAMESPACE_ID::Empty& error(const Type* msg); static const ::google::api::expr::v1alpha1::Type_AbstractType& abstract_type(const Type* msg); }; -const ::google::protobuf::Empty& Type::_Internal::dyn(const Type* msg) { - return *msg->_impl_.type_kind_.dyn_; +const ::PROTOBUF_NAMESPACE_ID::Empty& +Type::_Internal::dyn(const Type* msg) { + return *msg->type_kind_.dyn_; } -const ::google::api::expr::v1alpha1::Type_ListType& Type::_Internal::list_type(const Type* msg) { - return *msg->_impl_.type_kind_.list_type_; +const ::google::api::expr::v1alpha1::Type_ListType& +Type::_Internal::list_type(const Type* msg) { + return *msg->type_kind_.list_type_; } -const ::google::api::expr::v1alpha1::Type_MapType& Type::_Internal::map_type(const Type* msg) { - return *msg->_impl_.type_kind_.map_type_; +const ::google::api::expr::v1alpha1::Type_MapType& +Type::_Internal::map_type(const Type* msg) { + return *msg->type_kind_.map_type_; } -const ::google::api::expr::v1alpha1::Type_FunctionType& Type::_Internal::function(const Type* msg) { - return *msg->_impl_.type_kind_.function_; +const ::google::api::expr::v1alpha1::Type_FunctionType& +Type::_Internal::function(const Type* msg) { + return *msg->type_kind_.function_; } -const ::google::api::expr::v1alpha1::Type& Type::_Internal::type(const Type* msg) { - return *msg->_impl_.type_kind_.type_; +const ::google::api::expr::v1alpha1::Type& +Type::_Internal::type(const Type* msg) { + return *msg->type_kind_.type_; } -const ::google::protobuf::Empty& Type::_Internal::error(const Type* msg) { - return *msg->_impl_.type_kind_.error_; +const ::PROTOBUF_NAMESPACE_ID::Empty& +Type::_Internal::error(const Type* msg) { + return *msg->type_kind_.error_; } -const ::google::api::expr::v1alpha1::Type_AbstractType& Type::_Internal::abstract_type(const Type* msg) { - return *msg->_impl_.type_kind_.abstract_type_; +const ::google::api::expr::v1alpha1::Type_AbstractType& +Type::_Internal::abstract_type(const Type* msg) { + return *msg->type_kind_.abstract_type_; } -void Type::set_allocated_dyn(::google::protobuf::Empty* dyn) { - ::google::protobuf::Arena* message_arena = GetArena(); +void Type::set_allocated_dyn(::PROTOBUF_NAMESPACE_ID::Empty* dyn) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_type_kind(); if (dyn) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(dyn)->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(dyn)); if (message_arena != submessage_arena) { - dyn = ::google::protobuf::internal::GetOwnedMessage(message_arena, dyn, submessage_arena); + dyn = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, dyn, submessage_arena); } set_has_dyn(); - _impl_.type_kind_.dyn_ = dyn; + type_kind_.dyn_ = dyn; } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Type.dyn) } void Type::clear_dyn() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (type_kind_case() == kDyn) { - if (GetArena() == nullptr) { - delete _impl_.type_kind_.dyn_; + if (_internal_has_dyn()) { + if (GetArenaForAllocation() == nullptr) { + delete type_kind_.dyn_; } clear_has_type_kind(); } } void Type::set_allocated_list_type(::google::api::expr::v1alpha1::Type_ListType* list_type) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_type_kind(); if (list_type) { - ::google::protobuf::Arena* submessage_arena = list_type->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(list_type); if (message_arena != submessage_arena) { - list_type = ::google::protobuf::internal::GetOwnedMessage(message_arena, list_type, submessage_arena); + list_type = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, list_type, submessage_arena); } set_has_list_type(); - _impl_.type_kind_.list_type_ = list_type; + type_kind_.list_type_ = list_type; } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Type.list_type) } void Type::set_allocated_map_type(::google::api::expr::v1alpha1::Type_MapType* map_type) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_type_kind(); if (map_type) { - ::google::protobuf::Arena* submessage_arena = map_type->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(map_type); if (message_arena != submessage_arena) { - map_type = ::google::protobuf::internal::GetOwnedMessage(message_arena, map_type, submessage_arena); + map_type = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, map_type, submessage_arena); } set_has_map_type(); - _impl_.type_kind_.map_type_ = map_type; + type_kind_.map_type_ = map_type; } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Type.map_type) } void Type::set_allocated_function(::google::api::expr::v1alpha1::Type_FunctionType* function) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_type_kind(); if (function) { - ::google::protobuf::Arena* submessage_arena = function->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(function); if (message_arena != submessage_arena) { - function = ::google::protobuf::internal::GetOwnedMessage(message_arena, function, submessage_arena); + function = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, function, submessage_arena); } set_has_function(); - _impl_.type_kind_.function_ = function; + type_kind_.function_ = function; } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Type.function) } void Type::set_allocated_type(::google::api::expr::v1alpha1::Type* type) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_type_kind(); if (type) { - ::google::protobuf::Arena* submessage_arena = type->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(type); if (message_arena != submessage_arena) { - type = ::google::protobuf::internal::GetOwnedMessage(message_arena, type, submessage_arena); + type = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, type, submessage_arena); } set_has_type(); - _impl_.type_kind_.type_ = type; + type_kind_.type_ = type; } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Type.type) } -void Type::set_allocated_error(::google::protobuf::Empty* error) { - ::google::protobuf::Arena* message_arena = GetArena(); +void Type::set_allocated_error(::PROTOBUF_NAMESPACE_ID::Empty* error) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_type_kind(); if (error) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(error)->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(error)); if (message_arena != submessage_arena) { - error = ::google::protobuf::internal::GetOwnedMessage(message_arena, error, submessage_arena); + error = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, error, submessage_arena); } set_has_error(); - _impl_.type_kind_.error_ = error; + type_kind_.error_ = error; } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Type.error) } void Type::clear_error() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (type_kind_case() == kError) { - if (GetArena() == nullptr) { - delete _impl_.type_kind_.error_; + if (_internal_has_error()) { + if (GetArenaForAllocation() == nullptr) { + delete type_kind_.error_; } clear_has_type_kind(); } } void Type::set_allocated_abstract_type(::google::api::expr::v1alpha1::Type_AbstractType* abstract_type) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_type_kind(); if (abstract_type) { - ::google::protobuf::Arena* submessage_arena = abstract_type->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(abstract_type); if (message_arena != submessage_arena) { - abstract_type = ::google::protobuf::internal::GetOwnedMessage(message_arena, abstract_type, submessage_arena); + abstract_type = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, abstract_type, submessage_arena); } set_has_abstract_type(); - _impl_.type_kind_.abstract_type_ = abstract_type; + type_kind_.abstract_type_ = abstract_type; } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Type.abstract_type) } -Type::Type(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Type::Type(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.Type) } -inline PROTOBUF_NDEBUG_INLINE Type::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : type_kind_{}, - _cached_size_{0}, - _oneof_case_{from._oneof_case_[0]} {} - -Type::Type( - ::google::protobuf::Arena* arena, - const Type& from) - : ::google::protobuf::Message(arena) { - Type* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - switch (type_kind_case()) { - case TYPE_KIND_NOT_SET: - break; - case kDyn: - _impl_.type_kind_.dyn_ = CreateMaybeMessage<::google::protobuf::Empty>(arena, *from._impl_.type_kind_.dyn_); - break; - case kNull: - _impl_.type_kind_.null_ = from._impl_.type_kind_.null_; - break; - case kPrimitive: - _impl_.type_kind_.primitive_ = from._impl_.type_kind_.primitive_; - break; - case kWrapper: - _impl_.type_kind_.wrapper_ = from._impl_.type_kind_.wrapper_; - break; - case kWellKnown: - _impl_.type_kind_.well_known_ = from._impl_.type_kind_.well_known_; - break; - case kListType: - _impl_.type_kind_.list_type_ = CreateMaybeMessage<::google::api::expr::v1alpha1::Type_ListType>(arena, *from._impl_.type_kind_.list_type_); - break; - case kMapType: - _impl_.type_kind_.map_type_ = CreateMaybeMessage<::google::api::expr::v1alpha1::Type_MapType>(arena, *from._impl_.type_kind_.map_type_); - break; - case kFunction: - _impl_.type_kind_.function_ = CreateMaybeMessage<::google::api::expr::v1alpha1::Type_FunctionType>(arena, *from._impl_.type_kind_.function_); - break; - case kMessageType: - new (&_impl_.type_kind_.message_type_) decltype(_impl_.type_kind_.message_type_){arena, from._impl_.type_kind_.message_type_}; - break; - case kTypeParam: - new (&_impl_.type_kind_.type_param_) decltype(_impl_.type_kind_.type_param_){arena, from._impl_.type_kind_.type_param_}; - break; - case kType: - _impl_.type_kind_.type_ = CreateMaybeMessage<::google::api::expr::v1alpha1::Type>(arena, *from._impl_.type_kind_.type_); - break; - case kError: - _impl_.type_kind_.error_ = CreateMaybeMessage<::google::protobuf::Empty>(arena, *from._impl_.type_kind_.error_); - break; - case kAbstractType: - _impl_.type_kind_.abstract_type_ = CreateMaybeMessage<::google::api::expr::v1alpha1::Type_AbstractType>(arena, *from._impl_.type_kind_.abstract_type_); - break; - } - - // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.Type) -} -inline PROTOBUF_NDEBUG_INLINE Type::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : type_kind_{}, - _cached_size_{0}, - _oneof_case_{} {} - -inline void Type::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -Type::~Type() { - // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.Type) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void Type::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - if (has_type_kind()) { - clear_type_kind(); - } - _impl_.~Impl_(); -} - -void Type::clear_type_kind() { -// @@protoc_insertion_point(one_of_clear_start:google.api.expr.v1alpha1.Type) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - switch (type_kind_case()) { +Type::Type(const Type& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + clear_has_type_kind(); + switch (from.type_kind_case()) { case kDyn: { - if (GetArena() == nullptr) { - delete _impl_.type_kind_.dyn_; - } + _internal_mutable_dyn()->::PROTOBUF_NAMESPACE_ID::Empty::MergeFrom(from._internal_dyn()); break; } case kNull: { - // No need to clear + _internal_set_null(from._internal_null()); break; } case kPrimitive: { - // No need to clear + _internal_set_primitive(from._internal_primitive()); break; } case kWrapper: { - // No need to clear + _internal_set_wrapper(from._internal_wrapper()); break; } case kWellKnown: { - // No need to clear + _internal_set_well_known(from._internal_well_known()); break; } case kListType: { - if (GetArena() == nullptr) { - delete _impl_.type_kind_.list_type_; - } + _internal_mutable_list_type()->::google::api::expr::v1alpha1::Type_ListType::MergeFrom(from._internal_list_type()); break; } case kMapType: { - if (GetArena() == nullptr) { - delete _impl_.type_kind_.map_type_; - } + _internal_mutable_map_type()->::google::api::expr::v1alpha1::Type_MapType::MergeFrom(from._internal_map_type()); break; } case kFunction: { - if (GetArena() == nullptr) { - delete _impl_.type_kind_.function_; - } + _internal_mutable_function()->::google::api::expr::v1alpha1::Type_FunctionType::MergeFrom(from._internal_function()); break; } case kMessageType: { - _impl_.type_kind_.message_type_.Destroy(); + _internal_set_message_type(from._internal_message_type()); break; } case kTypeParam: { - _impl_.type_kind_.type_param_.Destroy(); + _internal_set_type_param(from._internal_type_param()); break; } case kType: { - if (GetArena() == nullptr) { - delete _impl_.type_kind_.type_; - } + _internal_mutable_type()->::google::api::expr::v1alpha1::Type::MergeFrom(from._internal_type()); break; } case kError: { - if (GetArena() == nullptr) { - delete _impl_.type_kind_.error_; - } + _internal_mutable_error()->::PROTOBUF_NAMESPACE_ID::Empty::MergeFrom(from._internal_error()); break; } case kAbstractType: { - if (GetArena() == nullptr) { - delete _impl_.type_kind_.abstract_type_; - } + _internal_mutable_abstract_type()->::google::api::expr::v1alpha1::Type_AbstractType::MergeFrom(from._internal_abstract_type()); break; } case TYPE_KIND_NOT_SET: { break; } } - _impl_._oneof_case_[0] = TYPE_KIND_NOT_SET; -} - - -PROTOBUF_NOINLINE void Type::Clear() { -// @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.Type) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - clear_type_kind(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.Type) } -const char* Type::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +inline void Type::SharedCtor() { +clear_has_type_kind(); } +Type::~Type() { + // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.Type) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 13, 7, 68, 2> Type::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 14, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294955008, // skipmap - offsetof(decltype(_table_), field_entries), - 13, // num_field_entries - 7, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Type_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // .google.protobuf.Empty dyn = 1 [json_name = "dyn"]; - {PROTOBUF_FIELD_OFFSET(Type, _impl_.type_kind_.dyn_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvDefault)}, - // .google.protobuf.NullValue null = 2 [json_name = "null"]; - {PROTOBUF_FIELD_OFFSET(Type, _impl_.type_kind_.null_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kOpenEnum)}, - // .google.api.expr.v1alpha1.Type.PrimitiveType primitive = 3 [json_name = "primitive"]; - {PROTOBUF_FIELD_OFFSET(Type, _impl_.type_kind_.primitive_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kOpenEnum)}, - // .google.api.expr.v1alpha1.Type.PrimitiveType wrapper = 4 [json_name = "wrapper"]; - {PROTOBUF_FIELD_OFFSET(Type, _impl_.type_kind_.wrapper_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kOpenEnum)}, - // .google.api.expr.v1alpha1.Type.WellKnownType well_known = 5 [json_name = "wellKnown"]; - {PROTOBUF_FIELD_OFFSET(Type, _impl_.type_kind_.well_known_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kOpenEnum)}, - // .google.api.expr.v1alpha1.Type.ListType list_type = 6 [json_name = "listType"]; - {PROTOBUF_FIELD_OFFSET(Type, _impl_.type_kind_.list_type_), _Internal::kOneofCaseOffset + 0, 1, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.api.expr.v1alpha1.Type.MapType map_type = 7 [json_name = "mapType"]; - {PROTOBUF_FIELD_OFFSET(Type, _impl_.type_kind_.map_type_), _Internal::kOneofCaseOffset + 0, 2, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.api.expr.v1alpha1.Type.FunctionType function = 8 [json_name = "function"]; - {PROTOBUF_FIELD_OFFSET(Type, _impl_.type_kind_.function_), _Internal::kOneofCaseOffset + 0, 3, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // string message_type = 9 [json_name = "messageType"]; - {PROTOBUF_FIELD_OFFSET(Type, _impl_.type_kind_.message_type_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string type_param = 10 [json_name = "typeParam"]; - {PROTOBUF_FIELD_OFFSET(Type, _impl_.type_kind_.type_param_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.api.expr.v1alpha1.Type type = 11 [json_name = "type"]; - {PROTOBUF_FIELD_OFFSET(Type, _impl_.type_kind_.type_), _Internal::kOneofCaseOffset + 0, 4, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.protobuf.Empty error = 12 [json_name = "error"]; - {PROTOBUF_FIELD_OFFSET(Type, _impl_.type_kind_.error_), _Internal::kOneofCaseOffset + 0, 5, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvDefault)}, - // .google.api.expr.v1alpha1.Type.AbstractType abstract_type = 14 [json_name = "abstractType"]; - {PROTOBUF_FIELD_OFFSET(Type, _impl_.type_kind_.abstract_type_), _Internal::kOneofCaseOffset + 0, 6, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::FieldAuxDefaultMessage{}, &::google::protobuf::_Empty_default_instance_}, - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::Type_ListType>()}, - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::Type_MapType>()}, - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::Type_FunctionType>()}, - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::Type>()}, - {::_pbi::FieldAuxDefaultMessage{}, &::google::protobuf::_Empty_default_instance_}, - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::Type_AbstractType>()}, - }}, {{ - "\35\0\0\0\0\0\0\0\0\14\12\0\0\0\0\0" - "google.api.expr.v1alpha1.Type" - "message_type" - "type_param" - }}, -}; - -::uint8_t* Type::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.Type) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; +inline void Type::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (has_type_kind()) { + clear_type_kind(); + } +} + +void Type::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +void Type::clear_type_kind() { +// @@protoc_insertion_point(one_of_clear_start:google.api.expr.v1alpha1.Type) switch (type_kind_case()) { case kDyn: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::dyn(this), - _Internal::dyn(this).GetCachedSize(), target, stream); + if (GetArenaForAllocation() == nullptr) { + delete type_kind_.dyn_; + } break; } case kNull: { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 2, this->_internal_null(), target); + // No need to clear break; } case kPrimitive: { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 3, this->_internal_primitive(), target); + // No need to clear break; } case kWrapper: { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 4, this->_internal_wrapper(), target); + // No need to clear break; } case kWellKnown: { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 5, this->_internal_well_known(), target); + // No need to clear break; } case kListType: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 6, _Internal::list_type(this), - _Internal::list_type(this).GetCachedSize(), target, stream); + if (GetArenaForAllocation() == nullptr) { + delete type_kind_.list_type_; + } break; } case kMapType: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 7, _Internal::map_type(this), - _Internal::map_type(this).GetCachedSize(), target, stream); + if (GetArenaForAllocation() == nullptr) { + delete type_kind_.map_type_; + } break; } case kFunction: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 8, _Internal::function(this), - _Internal::function(this).GetCachedSize(), target, stream); + if (GetArenaForAllocation() == nullptr) { + delete type_kind_.function_; + } break; } case kMessageType: { - const std::string& _s = this->_internal_message_type(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.expr.v1alpha1.Type.message_type"); - target = stream->WriteStringMaybeAliased(9, _s, target); + type_kind_.message_type_.Destroy(); break; } case kTypeParam: { - const std::string& _s = this->_internal_type_param(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.expr.v1alpha1.Type.type_param"); - target = stream->WriteStringMaybeAliased(10, _s, target); + type_kind_.type_param_.Destroy(); break; } case kType: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 11, _Internal::type(this), - _Internal::type(this).GetCachedSize(), target, stream); + if (GetArenaForAllocation() == nullptr) { + delete type_kind_.type_; + } break; } case kError: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 12, _Internal::error(this), - _Internal::error(this).GetCachedSize(), target, stream); + if (GetArenaForAllocation() == nullptr) { + delete type_kind_.error_; + } break; } case kAbstractType: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 14, _Internal::abstract_type(this), - _Internal::abstract_type(this).GetCachedSize(), target, stream); + if (GetArenaForAllocation() == nullptr) { + delete type_kind_.abstract_type_; + } break; } - default: + case TYPE_KIND_NOT_SET: { break; + } + } + _oneof_case_[0] = TYPE_KIND_NOT_SET; +} + + +void Type::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.Type) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_type_kind(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Type::_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) { + // .google.protobuf.Empty dyn = 1 [json_name = "dyn"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_dyn(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.NullValue null = 2 [json_name = "null"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_null(static_cast<::PROTOBUF_NAMESPACE_ID::NullValue>(val)); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Type.PrimitiveType primitive = 3 [json_name = "primitive"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_primitive(static_cast<::google::api::expr::v1alpha1::Type_PrimitiveType>(val)); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Type.PrimitiveType wrapper = 4 [json_name = "wrapper"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_wrapper(static_cast<::google::api::expr::v1alpha1::Type_PrimitiveType>(val)); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Type.WellKnownType well_known = 5 [json_name = "wellKnown"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_well_known(static_cast<::google::api::expr::v1alpha1::Type_WellKnownType>(val)); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Type.ListType list_type = 6 [json_name = "listType"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr = ctx->ParseMessage(_internal_mutable_list_type(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Type.MapType map_type = 7 [json_name = "mapType"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + ptr = ctx->ParseMessage(_internal_mutable_map_type(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Type.FunctionType function = 8 [json_name = "function"]; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { + ptr = ctx->ParseMessage(_internal_mutable_function(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string message_type = 9 [json_name = "messageType"]; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { + auto str = _internal_mutable_message_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1alpha1.Type.message_type")); + } else + goto handle_unusual; + continue; + // string type_param = 10 [json_name = "typeParam"]; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { + auto str = _internal_mutable_type_param(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1alpha1.Type.type_param")); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Type type = 11 [json_name = "type"]; + case 11: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 90)) { + ptr = ctx->ParseMessage(_internal_mutable_type(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Empty error = 12 [json_name = "error"]; + case 12: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 98)) { + ptr = ctx->ParseMessage(_internal_mutable_error(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Type.AbstractType abstract_type = 14 [json_name = "abstractType"]; + case 14: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 114)) { + ptr = ctx->ParseMessage(_internal_mutable_abstract_type(), 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* Type::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.Type) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .google.protobuf.Empty dyn = 1 [json_name = "dyn"]; + if (_internal_has_dyn()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::dyn(this), + _Internal::dyn(this).GetCachedSize(), target, stream); + } + + // .google.protobuf.NullValue null = 2 [json_name = "null"]; + if (_internal_has_null()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this->_internal_null(), target); + } + + // .google.api.expr.v1alpha1.Type.PrimitiveType primitive = 3 [json_name = "primitive"]; + if (_internal_has_primitive()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 3, this->_internal_primitive(), target); + } + + // .google.api.expr.v1alpha1.Type.PrimitiveType wrapper = 4 [json_name = "wrapper"]; + if (_internal_has_wrapper()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 4, this->_internal_wrapper(), target); + } + + // .google.api.expr.v1alpha1.Type.WellKnownType well_known = 5 [json_name = "wellKnown"]; + if (_internal_has_well_known()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 5, this->_internal_well_known(), target); + } + + // .google.api.expr.v1alpha1.Type.ListType list_type = 6 [json_name = "listType"]; + if (_internal_has_list_type()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(6, _Internal::list_type(this), + _Internal::list_type(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1alpha1.Type.MapType map_type = 7 [json_name = "mapType"]; + if (_internal_has_map_type()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(7, _Internal::map_type(this), + _Internal::map_type(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1alpha1.Type.FunctionType function = 8 [json_name = "function"]; + if (_internal_has_function()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(8, _Internal::function(this), + _Internal::function(this).GetCachedSize(), target, stream); + } + + // string message_type = 9 [json_name = "messageType"]; + if (_internal_has_message_type()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_message_type().data(), static_cast(this->_internal_message_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1alpha1.Type.message_type"); + target = stream->WriteStringMaybeAliased( + 9, this->_internal_message_type(), target); + } + + // string type_param = 10 [json_name = "typeParam"]; + if (_internal_has_type_param()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_type_param().data(), static_cast(this->_internal_type_param().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1alpha1.Type.type_param"); + target = stream->WriteStringMaybeAliased( + 10, this->_internal_type_param(), target); + } + + // .google.api.expr.v1alpha1.Type type = 11 [json_name = "type"]; + if (_internal_has_type()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(11, _Internal::type(this), + _Internal::type(this).GetCachedSize(), target, stream); + } + + // .google.protobuf.Empty error = 12 [json_name = "error"]; + if (_internal_has_error()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(12, _Internal::error(this), + _Internal::error(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1alpha1.Type.AbstractType abstract_type = 14 [json_name = "abstractType"]; + if (_internal_has_abstract_type()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(14, _Internal::abstract_type(this), + _Internal::abstract_type(this).GetCachedSize(), target, stream); } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1alpha1.Type) return target; } -::size_t Type::ByteSizeLong() const { +size_t Type::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.Type) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; switch (type_kind_case()) { // .google.protobuf.Empty dyn = 1 [json_name = "dyn"]; case kDyn: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.type_kind_.dyn_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *type_kind_.dyn_); break; } // .google.protobuf.NullValue null = 2 [json_name = "null"]; case kNull: { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_null()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_null()); break; } // .google.api.expr.v1alpha1.Type.PrimitiveType primitive = 3 [json_name = "primitive"]; case kPrimitive: { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_primitive()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_primitive()); break; } // .google.api.expr.v1alpha1.Type.PrimitiveType wrapper = 4 [json_name = "wrapper"]; case kWrapper: { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_wrapper()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_wrapper()); break; } // .google.api.expr.v1alpha1.Type.WellKnownType well_known = 5 [json_name = "wellKnown"]; case kWellKnown: { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_well_known()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_well_known()); break; } // .google.api.expr.v1alpha1.Type.ListType list_type = 6 [json_name = "listType"]; case kListType: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.type_kind_.list_type_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *type_kind_.list_type_); break; } // .google.api.expr.v1alpha1.Type.MapType map_type = 7 [json_name = "mapType"]; case kMapType: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.type_kind_.map_type_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *type_kind_.map_type_); break; } // .google.api.expr.v1alpha1.Type.FunctionType function = 8 [json_name = "function"]; case kFunction: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.type_kind_.function_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *type_kind_.function_); break; } // string message_type = 9 [json_name = "messageType"]; case kMessageType: { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_message_type()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_message_type()); break; } // string type_param = 10 [json_name = "typeParam"]; case kTypeParam: { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_type_param()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_type_param()); break; } // .google.api.expr.v1alpha1.Type type = 11 [json_name = "type"]; case kType: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.type_kind_.type_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *type_kind_.type_); break; } // .google.protobuf.Empty error = 12 [json_name = "error"]; case kError: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.type_kind_.error_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *type_kind_.error_); break; } // .google.api.expr.v1alpha1.Type.AbstractType abstract_type = 14 [json_name = "abstractType"]; case kAbstractType: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.type_kind_.abstract_type_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *type_kind_.abstract_type_); break; } case TYPE_KIND_NOT_SET: { break; } } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Type::_class_data_ = { - Type::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Type::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Type::MergeImpl }; -const ::google::protobuf::Message::ClassData* Type::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Type::GetClassData() const { return &_class_data_; } + +void Type::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Type::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Type) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Type::MergeFrom(const Type& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Type) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; switch (from.type_kind_case()) { case kDyn: { - _this->_internal_mutable_dyn()->::google::protobuf::Empty::MergeFrom( - from._internal_dyn()); + _internal_mutable_dyn()->::PROTOBUF_NAMESPACE_ID::Empty::MergeFrom(from._internal_dyn()); break; } case kNull: { - _this->_internal_set_null(from._internal_null()); + _internal_set_null(from._internal_null()); break; } case kPrimitive: { - _this->_internal_set_primitive(from._internal_primitive()); + _internal_set_primitive(from._internal_primitive()); break; } case kWrapper: { - _this->_internal_set_wrapper(from._internal_wrapper()); + _internal_set_wrapper(from._internal_wrapper()); break; } case kWellKnown: { - _this->_internal_set_well_known(from._internal_well_known()); + _internal_set_well_known(from._internal_well_known()); break; } case kListType: { - _this->_internal_mutable_list_type()->::google::api::expr::v1alpha1::Type_ListType::MergeFrom( - from._internal_list_type()); + _internal_mutable_list_type()->::google::api::expr::v1alpha1::Type_ListType::MergeFrom(from._internal_list_type()); break; } case kMapType: { - _this->_internal_mutable_map_type()->::google::api::expr::v1alpha1::Type_MapType::MergeFrom( - from._internal_map_type()); + _internal_mutable_map_type()->::google::api::expr::v1alpha1::Type_MapType::MergeFrom(from._internal_map_type()); break; } case kFunction: { - _this->_internal_mutable_function()->::google::api::expr::v1alpha1::Type_FunctionType::MergeFrom( - from._internal_function()); + _internal_mutable_function()->::google::api::expr::v1alpha1::Type_FunctionType::MergeFrom(from._internal_function()); break; } case kMessageType: { - _this->_internal_set_message_type(from._internal_message_type()); + _internal_set_message_type(from._internal_message_type()); break; } case kTypeParam: { - _this->_internal_set_type_param(from._internal_type_param()); + _internal_set_type_param(from._internal_type_param()); break; } case kType: { - _this->_internal_mutable_type()->::google::api::expr::v1alpha1::Type::MergeFrom( - from._internal_type()); + _internal_mutable_type()->::google::api::expr::v1alpha1::Type::MergeFrom(from._internal_type()); break; } case kError: { - _this->_internal_mutable_error()->::google::protobuf::Empty::MergeFrom( - from._internal_error()); + _internal_mutable_error()->::PROTOBUF_NAMESPACE_ID::Empty::MergeFrom(from._internal_error()); break; } case kAbstractType: { - _this->_internal_mutable_abstract_type()->::google::api::expr::v1alpha1::Type_AbstractType::MergeFrom( - from._internal_abstract_type()); + _internal_mutable_abstract_type()->::google::api::expr::v1alpha1::Type_AbstractType::MergeFrom(from._internal_abstract_type()); break; } case TYPE_KIND_NOT_SET: { break; } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Type::CopyFrom(const Type& from) { @@ -2706,291 +2608,278 @@ void Type::CopyFrom(const Type& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Type::IsInitialized() const { +bool Type::IsInitialized() const { return true; } -::_pbi::CachedSize* Type::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Type::InternalSwap(Type* PROTOBUF_RESTRICT other) { +void Type::InternalSwap(Type* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.type_kind_, other->_impl_.type_kind_); - swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); + swap(type_kind_, other->type_kind_); + swap(_oneof_case_[0], other->_oneof_case_[0]); } -::google::protobuf::Metadata Type::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Type::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto[7]); } + // =================================================================== class Decl_IdentDecl::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Decl_IdentDecl, _impl_._has_bits_); static const ::google::api::expr::v1alpha1::Type& type(const Decl_IdentDecl* msg); - static void set_has_type(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } static const ::google::api::expr::v1alpha1::Constant& value(const Decl_IdentDecl* msg); - static void set_has_value(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } }; -const ::google::api::expr::v1alpha1::Type& Decl_IdentDecl::_Internal::type(const Decl_IdentDecl* msg) { - return *msg->_impl_.type_; +const ::google::api::expr::v1alpha1::Type& +Decl_IdentDecl::_Internal::type(const Decl_IdentDecl* msg) { + return *msg->type_; } -const ::google::api::expr::v1alpha1::Constant& Decl_IdentDecl::_Internal::value(const Decl_IdentDecl* msg) { - return *msg->_impl_.value_; +const ::google::api::expr::v1alpha1::Constant& +Decl_IdentDecl::_Internal::value(const Decl_IdentDecl* msg) { + return *msg->value_; } void Decl_IdentDecl::clear_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.value_ != nullptr) _impl_.value_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && value_ != nullptr) { + delete value_; + } + value_ = nullptr; } -Decl_IdentDecl::Decl_IdentDecl(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Decl_IdentDecl::Decl_IdentDecl(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.Decl.IdentDecl) } -inline PROTOBUF_NDEBUG_INLINE Decl_IdentDecl::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - doc_(arena, from.doc_) {} - -Decl_IdentDecl::Decl_IdentDecl( - ::google::protobuf::Arena* arena, - const Decl_IdentDecl& from) - : ::google::protobuf::Message(arena) { - Decl_IdentDecl* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.type_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::api::expr::v1alpha1::Type>(arena, *from._impl_.type_) - : nullptr; - _impl_.value_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::google::api::expr::v1alpha1::Constant>(arena, *from._impl_.value_) - : nullptr; - +Decl_IdentDecl::Decl_IdentDecl(const Decl_IdentDecl& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + doc_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + doc_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_doc().empty()) { + doc_.Set(from._internal_doc(), + GetArenaForAllocation()); + } + if (from._internal_has_type()) { + type_ = new ::google::api::expr::v1alpha1::Type(*from.type_); + } else { + type_ = nullptr; + } + if (from._internal_has_value()) { + value_ = new ::google::api::expr::v1alpha1::Constant(*from.value_); + } else { + value_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.Decl.IdentDecl) } -inline PROTOBUF_NDEBUG_INLINE Decl_IdentDecl::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - doc_(arena) {} - -inline void Decl_IdentDecl::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, type_), - 0, - offsetof(Impl_, value_) - - offsetof(Impl_, type_) + - sizeof(Impl_::value_)); + +inline void Decl_IdentDecl::SharedCtor() { +doc_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + doc_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&type_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&value_) - + reinterpret_cast(&type_)) + sizeof(value_)); } + Decl_IdentDecl::~Decl_IdentDecl() { // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.Decl.IdentDecl) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Decl_IdentDecl::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.doc_.Destroy(); - delete _impl_.type_; - delete _impl_.value_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + doc_.Destroy(); + if (this != internal_default_instance()) delete type_; + if (this != internal_default_instance()) delete value_; +} + +void Decl_IdentDecl::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void Decl_IdentDecl::Clear() { +void Decl_IdentDecl::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.Decl.IdentDecl) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.doc_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.type_ != nullptr); - _impl_.type_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.value_ != nullptr); - _impl_.value_->Clear(); - } + doc_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && type_ != nullptr) { + delete type_; } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Decl_IdentDecl::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + type_ = nullptr; + if (GetArenaForAllocation() == nullptr && value_ != nullptr) { + delete value_; + } + value_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Decl_IdentDecl::_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) { + // .google.api.expr.v1alpha1.Type type = 1 [json_name = "type"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_type(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Constant value = 2 [json_name = "value"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_value(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string doc = 3 [json_name = "doc"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_doc(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1alpha1.Decl.IdentDecl.doc")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 2, 51, 2> Decl_IdentDecl::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Decl_IdentDecl, _impl_._has_bits_), - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Decl_IdentDecl_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // .google.api.expr.v1alpha1.Type type = 1 [json_name = "type"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(Decl_IdentDecl, _impl_.type_)}}, - // .google.api.expr.v1alpha1.Constant value = 2 [json_name = "value"]; - {::_pbi::TcParser::FastMtS1, - {18, 1, 1, PROTOBUF_FIELD_OFFSET(Decl_IdentDecl, _impl_.value_)}}, - // string doc = 3 [json_name = "doc"]; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(Decl_IdentDecl, _impl_.doc_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .google.api.expr.v1alpha1.Type type = 1 [json_name = "type"]; - {PROTOBUF_FIELD_OFFSET(Decl_IdentDecl, _impl_.type_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.api.expr.v1alpha1.Constant value = 2 [json_name = "value"]; - {PROTOBUF_FIELD_OFFSET(Decl_IdentDecl, _impl_.value_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // string doc = 3 [json_name = "doc"]; - {PROTOBUF_FIELD_OFFSET(Decl_IdentDecl, _impl_.doc_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::Type>()}, - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::Constant>()}, - }}, {{ - "\47\0\0\3\0\0\0\0" - "google.api.expr.v1alpha1.Decl.IdentDecl" - "doc" - }}, -}; - -::uint8_t* Decl_IdentDecl::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Decl_IdentDecl::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.Decl.IdentDecl) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .google.api.expr.v1alpha1.Type type = 1 [json_name = "type"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::type(this), + if (this->_internal_has_type()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::type(this), _Internal::type(this).GetCachedSize(), target, stream); } // .google.api.expr.v1alpha1.Constant value = 2 [json_name = "value"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::value(this), + if (this->_internal_has_value()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::value(this), _Internal::value(this).GetCachedSize(), target, stream); } // string doc = 3 [json_name = "doc"]; if (!this->_internal_doc().empty()) { - const std::string& _s = this->_internal_doc(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.expr.v1alpha1.Decl.IdentDecl.doc"); - target = stream->WriteStringMaybeAliased(3, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_doc().data(), static_cast(this->_internal_doc().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1alpha1.Decl.IdentDecl.doc"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_doc(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1alpha1.Decl.IdentDecl) return target; } -::size_t Decl_IdentDecl::ByteSizeLong() const { +size_t Decl_IdentDecl::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.Decl.IdentDecl) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string doc = 3 [json_name = "doc"]; if (!this->_internal_doc().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_doc()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_doc()); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // .google.api.expr.v1alpha1.Type type = 1 [json_name = "type"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.type_); - } - - // .google.api.expr.v1alpha1.Constant value = 2 [json_name = "value"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.value_); - } + // .google.api.expr.v1alpha1.Type type = 1 [json_name = "type"]; + if (this->_internal_has_type()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *type_); + } + // .google.api.expr.v1alpha1.Constant value = 2 [json_name = "value"]; + if (this->_internal_has_value()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *value_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Decl_IdentDecl::_class_data_ = { - Decl_IdentDecl::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Decl_IdentDecl::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Decl_IdentDecl::MergeImpl }; -const ::google::protobuf::Message::ClassData* Decl_IdentDecl::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Decl_IdentDecl::GetClassData() const { return &_class_data_; } + +void Decl_IdentDecl::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Decl_IdentDecl::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Decl.IdentDecl) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Decl_IdentDecl::MergeFrom(const Decl_IdentDecl& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Decl.IdentDecl) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_doc().empty()) { - _this->_internal_set_doc(from._internal_doc()); + _internal_set_doc(from._internal_doc()); } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_type()->::google::api::expr::v1alpha1::Type::MergeFrom( - from._internal_type()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_value()->::google::api::expr::v1alpha1::Constant::MergeFrom( - from._internal_value()); - } + if (from._internal_has_type()) { + _internal_mutable_type()->::google::api::expr::v1alpha1::Type::MergeFrom(from._internal_type()); + } + if (from._internal_has_value()) { + _internal_mutable_value()->::google::api::expr::v1alpha1::Constant::MergeFrom(from._internal_value()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Decl_IdentDecl::CopyFrom(const Decl_IdentDecl& from) { @@ -3000,351 +2889,379 @@ void Decl_IdentDecl::CopyFrom(const Decl_IdentDecl& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Decl_IdentDecl::IsInitialized() const { +bool Decl_IdentDecl::IsInitialized() const { return true; } -::_pbi::CachedSize* Decl_IdentDecl::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Decl_IdentDecl::InternalSwap(Decl_IdentDecl* PROTOBUF_RESTRICT other) { +void Decl_IdentDecl::InternalSwap(Decl_IdentDecl* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.doc_, &other->_impl_.doc_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(Decl_IdentDecl, _impl_.value_) - + sizeof(Decl_IdentDecl::_impl_.value_) - - PROTOBUF_FIELD_OFFSET(Decl_IdentDecl, _impl_.type_)>( - reinterpret_cast(&_impl_.type_), - reinterpret_cast(&other->_impl_.type_)); -} - -::google::protobuf::Metadata Decl_IdentDecl::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &doc_, lhs_arena, + &other->doc_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Decl_IdentDecl, value_) + + sizeof(Decl_IdentDecl::value_) + - PROTOBUF_FIELD_OFFSET(Decl_IdentDecl, type_)>( + reinterpret_cast(&type_), + reinterpret_cast(&other->type_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Decl_IdentDecl::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto[8]); } + // =================================================================== class Decl_FunctionDecl_Overload::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Decl_FunctionDecl_Overload, _impl_._has_bits_); static const ::google::api::expr::v1alpha1::Type& result_type(const Decl_FunctionDecl_Overload* msg); - static void set_has_result_type(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::google::api::expr::v1alpha1::Type& Decl_FunctionDecl_Overload::_Internal::result_type(const Decl_FunctionDecl_Overload* msg) { - return *msg->_impl_.result_type_; +const ::google::api::expr::v1alpha1::Type& +Decl_FunctionDecl_Overload::_Internal::result_type(const Decl_FunctionDecl_Overload* msg) { + return *msg->result_type_; } -Decl_FunctionDecl_Overload::Decl_FunctionDecl_Overload(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Decl_FunctionDecl_Overload::Decl_FunctionDecl_Overload(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + params_(arena), + type_params_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload) } -inline PROTOBUF_NDEBUG_INLINE Decl_FunctionDecl_Overload::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - params_{visibility, arena, from.params_}, - type_params_{visibility, arena, from.type_params_}, - overload_id_(arena, from.overload_id_), - doc_(arena, from.doc_) {} - -Decl_FunctionDecl_Overload::Decl_FunctionDecl_Overload( - ::google::protobuf::Arena* arena, - const Decl_FunctionDecl_Overload& from) - : ::google::protobuf::Message(arena) { - Decl_FunctionDecl_Overload* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.result_type_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::api::expr::v1alpha1::Type>(arena, *from._impl_.result_type_) - : nullptr; - _impl_.is_instance_function_ = from._impl_.is_instance_function_; - +Decl_FunctionDecl_Overload::Decl_FunctionDecl_Overload(const Decl_FunctionDecl_Overload& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + params_(from.params_), + type_params_(from.type_params_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + overload_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + overload_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_overload_id().empty()) { + overload_id_.Set(from._internal_overload_id(), + GetArenaForAllocation()); + } + doc_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + doc_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_doc().empty()) { + doc_.Set(from._internal_doc(), + GetArenaForAllocation()); + } + if (from._internal_has_result_type()) { + result_type_ = new ::google::api::expr::v1alpha1::Type(*from.result_type_); + } else { + result_type_ = nullptr; + } + is_instance_function_ = from.is_instance_function_; // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload) } -inline PROTOBUF_NDEBUG_INLINE Decl_FunctionDecl_Overload::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - params_{visibility, arena}, - type_params_{visibility, arena}, - overload_id_(arena), - doc_(arena) {} - -inline void Decl_FunctionDecl_Overload::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, result_type_), - 0, - offsetof(Impl_, is_instance_function_) - - offsetof(Impl_, result_type_) + - sizeof(Impl_::is_instance_function_)); + +inline void Decl_FunctionDecl_Overload::SharedCtor() { +overload_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + overload_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +doc_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + doc_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&result_type_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&is_instance_function_) - + reinterpret_cast(&result_type_)) + sizeof(is_instance_function_)); } + Decl_FunctionDecl_Overload::~Decl_FunctionDecl_Overload() { // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Decl_FunctionDecl_Overload::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.overload_id_.Destroy(); - _impl_.doc_.Destroy(); - delete _impl_.result_type_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + overload_id_.Destroy(); + doc_.Destroy(); + if (this != internal_default_instance()) delete result_type_; +} + +void Decl_FunctionDecl_Overload::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void Decl_FunctionDecl_Overload::Clear() { +void Decl_FunctionDecl_Overload::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.params_.Clear(); - _impl_.type_params_.Clear(); - _impl_.overload_id_.ClearToEmpty(); - _impl_.doc_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.result_type_ != nullptr); - _impl_.result_type_->Clear(); + params_.Clear(); + type_params_.Clear(); + overload_id_.ClearToEmpty(); + doc_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && result_type_ != nullptr) { + delete result_type_; } - _impl_.is_instance_function_ = false; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Decl_FunctionDecl_Overload::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + result_type_ = nullptr; + is_instance_function_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Decl_FunctionDecl_Overload::_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 overload_id = 1 [json_name = "overloadId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_overload_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.overload_id")); + } else + goto handle_unusual; + continue; + // repeated .google.api.expr.v1alpha1.Type params = 2 [json_name = "params"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_params(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } else + goto handle_unusual; + continue; + // repeated string type_params = 3 [json_name = "typeParams"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_type_params(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.type_params")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Type result_type = 4 [json_name = "resultType"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_result_type(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool is_instance_function = 5 [json_name = "isInstanceFunction"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { + is_instance_function_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string doc = 6 [json_name = "doc"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + auto str = _internal_mutable_doc(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.doc")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 6, 2, 85, 2> Decl_FunctionDecl_Overload::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Decl_FunctionDecl_Overload, _impl_._has_bits_), - 0, // no _extensions_ - 6, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967232, // skipmap - offsetof(decltype(_table_), field_entries), - 6, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Decl_FunctionDecl_Overload_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string overload_id = 1 [json_name = "overloadId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Decl_FunctionDecl_Overload, _impl_.overload_id_)}}, - // repeated .google.api.expr.v1alpha1.Type params = 2 [json_name = "params"]; - {::_pbi::TcParser::FastMtR1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(Decl_FunctionDecl_Overload, _impl_.params_)}}, - // repeated string type_params = 3 [json_name = "typeParams"]; - {::_pbi::TcParser::FastUR1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(Decl_FunctionDecl_Overload, _impl_.type_params_)}}, - // .google.api.expr.v1alpha1.Type result_type = 4 [json_name = "resultType"]; - {::_pbi::TcParser::FastMtS1, - {34, 0, 1, PROTOBUF_FIELD_OFFSET(Decl_FunctionDecl_Overload, _impl_.result_type_)}}, - // bool is_instance_function = 5 [json_name = "isInstanceFunction"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {40, 63, 0, PROTOBUF_FIELD_OFFSET(Decl_FunctionDecl_Overload, _impl_.is_instance_function_)}}, - // string doc = 6 [json_name = "doc"]; - {::_pbi::TcParser::FastUS1, - {50, 63, 0, PROTOBUF_FIELD_OFFSET(Decl_FunctionDecl_Overload, _impl_.doc_)}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string overload_id = 1 [json_name = "overloadId"]; - {PROTOBUF_FIELD_OFFSET(Decl_FunctionDecl_Overload, _impl_.overload_id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated .google.api.expr.v1alpha1.Type params = 2 [json_name = "params"]; - {PROTOBUF_FIELD_OFFSET(Decl_FunctionDecl_Overload, _impl_.params_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated string type_params = 3 [json_name = "typeParams"]; - {PROTOBUF_FIELD_OFFSET(Decl_FunctionDecl_Overload, _impl_.type_params_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - // .google.api.expr.v1alpha1.Type result_type = 4 [json_name = "resultType"]; - {PROTOBUF_FIELD_OFFSET(Decl_FunctionDecl_Overload, _impl_.result_type_), _Internal::kHasBitsOffset + 0, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // bool is_instance_function = 5 [json_name = "isInstanceFunction"]; - {PROTOBUF_FIELD_OFFSET(Decl_FunctionDecl_Overload, _impl_.is_instance_function_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // string doc = 6 [json_name = "doc"]; - {PROTOBUF_FIELD_OFFSET(Decl_FunctionDecl_Overload, _impl_.doc_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::Type>()}, - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::Type>()}, - }}, {{ - "\63\13\0\13\0\0\3\0" - "google.api.expr.v1alpha1.Decl.FunctionDecl.Overload" - "overload_id" - "type_params" - "doc" - }}, -}; - -::uint8_t* Decl_FunctionDecl_Overload::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Decl_FunctionDecl_Overload::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string overload_id = 1 [json_name = "overloadId"]; if (!this->_internal_overload_id().empty()) { - const std::string& _s = this->_internal_overload_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.overload_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_overload_id().data(), static_cast(this->_internal_overload_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.overload_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_overload_id(), target); } // repeated .google.api.expr.v1alpha1.Type params = 2 [json_name = "params"]; for (unsigned i = 0, n = static_cast(this->_internal_params_size()); i < n; i++) { - const auto& repfield = this->_internal_params().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_params(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); } // repeated string type_params = 3 [json_name = "typeParams"]; - for (int i = 0, n = this->_internal_type_params_size(); i < n; ++i) { - const auto& s = this->_internal_type_params().Get(i); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.type_params"); + for (int i = 0, n = this->_internal_type_params_size(); i < n; i++) { + const auto& s = this->_internal_type_params(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.type_params"); target = stream->WriteString(3, s, target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.api.expr.v1alpha1.Type result_type = 4 [json_name = "resultType"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, _Internal::result_type(this), + if (this->_internal_has_result_type()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::result_type(this), _Internal::result_type(this).GetCachedSize(), target, stream); } // bool is_instance_function = 5 [json_name = "isInstanceFunction"]; if (this->_internal_is_instance_function() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 5, this->_internal_is_instance_function(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(5, this->_internal_is_instance_function(), target); } // string doc = 6 [json_name = "doc"]; if (!this->_internal_doc().empty()) { - const std::string& _s = this->_internal_doc(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.doc"); - target = stream->WriteStringMaybeAliased(6, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_doc().data(), static_cast(this->_internal_doc().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.doc"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_doc(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload) return target; } -::size_t Decl_FunctionDecl_Overload::ByteSizeLong() const { +size_t Decl_FunctionDecl_Overload::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .google.api.expr.v1alpha1.Type params = 2 [json_name = "params"]; total_size += 1UL * this->_internal_params_size(); - for (const auto& msg : this->_internal_params()) { + for (const auto& msg : this->params_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // repeated string type_params = 3 [json_name = "typeParams"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_type_params().size()); - for (int i = 0, n = _internal_type_params().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - _internal_type_params().Get(i)); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(type_params_.size()); + for (int i = 0, n = type_params_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + type_params_.Get(i)); } + // string overload_id = 1 [json_name = "overloadId"]; if (!this->_internal_overload_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_overload_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_overload_id()); } // string doc = 6 [json_name = "doc"]; if (!this->_internal_doc().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_doc()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_doc()); } // .google.api.expr.v1alpha1.Type result_type = 4 [json_name = "resultType"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.result_type_); + if (this->_internal_has_result_type()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *result_type_); } // bool is_instance_function = 5 [json_name = "isInstanceFunction"]; if (this->_internal_is_instance_function() != 0) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Decl_FunctionDecl_Overload::_class_data_ = { - Decl_FunctionDecl_Overload::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Decl_FunctionDecl_Overload::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Decl_FunctionDecl_Overload::MergeImpl }; -const ::google::protobuf::Message::ClassData* Decl_FunctionDecl_Overload::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Decl_FunctionDecl_Overload::GetClassData() const { return &_class_data_; } + +void Decl_FunctionDecl_Overload::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Decl_FunctionDecl_Overload::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Decl_FunctionDecl_Overload::MergeFrom(const Decl_FunctionDecl_Overload& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_params()->MergeFrom( - from._internal_params()); - _this->_internal_mutable_type_params()->MergeFrom(from._internal_type_params()); + params_.MergeFrom(from.params_); + type_params_.MergeFrom(from.type_params_); if (!from._internal_overload_id().empty()) { - _this->_internal_set_overload_id(from._internal_overload_id()); + _internal_set_overload_id(from._internal_overload_id()); } if (!from._internal_doc().empty()) { - _this->_internal_set_doc(from._internal_doc()); + _internal_set_doc(from._internal_doc()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_result_type()->::google::api::expr::v1alpha1::Type::MergeFrom( - from._internal_result_type()); + if (from._internal_has_result_type()) { + _internal_mutable_result_type()->::google::api::expr::v1alpha1::Type::MergeFrom(from._internal_result_type()); } if (from._internal_is_instance_function() != 0) { - _this->_internal_set_is_instance_function(from._internal_is_instance_function()); + _internal_set_is_instance_function(from._internal_is_instance_function()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Decl_FunctionDecl_Overload::CopyFrom(const Decl_FunctionDecl_Overload& from) { @@ -3354,192 +3271,192 @@ void Decl_FunctionDecl_Overload::CopyFrom(const Decl_FunctionDecl_Overload& from MergeFrom(from); } -PROTOBUF_NOINLINE bool Decl_FunctionDecl_Overload::IsInitialized() const { +bool Decl_FunctionDecl_Overload::IsInitialized() const { return true; } -::_pbi::CachedSize* Decl_FunctionDecl_Overload::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Decl_FunctionDecl_Overload::InternalSwap(Decl_FunctionDecl_Overload* PROTOBUF_RESTRICT other) { +void Decl_FunctionDecl_Overload::InternalSwap(Decl_FunctionDecl_Overload* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.params_.InternalSwap(&other->_impl_.params_); - _impl_.type_params_.InternalSwap(&other->_impl_.type_params_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.overload_id_, &other->_impl_.overload_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.doc_, &other->_impl_.doc_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(Decl_FunctionDecl_Overload, _impl_.is_instance_function_) - + sizeof(Decl_FunctionDecl_Overload::_impl_.is_instance_function_) - - PROTOBUF_FIELD_OFFSET(Decl_FunctionDecl_Overload, _impl_.result_type_)>( - reinterpret_cast(&_impl_.result_type_), - reinterpret_cast(&other->_impl_.result_type_)); -} - -::google::protobuf::Metadata Decl_FunctionDecl_Overload::GetMetadata() const { + params_.InternalSwap(&other->params_); + type_params_.InternalSwap(&other->type_params_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &overload_id_, lhs_arena, + &other->overload_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &doc_, lhs_arena, + &other->doc_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Decl_FunctionDecl_Overload, is_instance_function_) + + sizeof(Decl_FunctionDecl_Overload::is_instance_function_) + - PROTOBUF_FIELD_OFFSET(Decl_FunctionDecl_Overload, result_type_)>( + reinterpret_cast(&result_type_), + reinterpret_cast(&other->result_type_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Decl_FunctionDecl_Overload::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto[9]); } + // =================================================================== class Decl_FunctionDecl::_Internal { public: }; -Decl_FunctionDecl::Decl_FunctionDecl(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Decl_FunctionDecl::Decl_FunctionDecl(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + overloads_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.Decl.FunctionDecl) } -inline PROTOBUF_NDEBUG_INLINE Decl_FunctionDecl::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : overloads_{visibility, arena, from.overloads_}, - _cached_size_{0} {} - -Decl_FunctionDecl::Decl_FunctionDecl( - ::google::protobuf::Arena* arena, - const Decl_FunctionDecl& from) - : ::google::protobuf::Message(arena) { - Decl_FunctionDecl* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +Decl_FunctionDecl::Decl_FunctionDecl(const Decl_FunctionDecl& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + overloads_(from.overloads_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.Decl.FunctionDecl) } -inline PROTOBUF_NDEBUG_INLINE Decl_FunctionDecl::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : overloads_{visibility, arena}, - _cached_size_{0} {} -inline void Decl_FunctionDecl::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void Decl_FunctionDecl::SharedCtor() { } + Decl_FunctionDecl::~Decl_FunctionDecl() { // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.Decl.FunctionDecl) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Decl_FunctionDecl::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void Decl_FunctionDecl::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void Decl_FunctionDecl::Clear() { +void Decl_FunctionDecl::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.Decl.FunctionDecl) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.overloads_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Decl_FunctionDecl::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + overloads_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Decl_FunctionDecl::_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) { + // repeated .google.api.expr.v1alpha1.Decl.FunctionDecl.Overload overloads = 1 [json_name = "overloads"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_overloads(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> Decl_FunctionDecl::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Decl_FunctionDecl_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .google.api.expr.v1alpha1.Decl.FunctionDecl.Overload overloads = 1 [json_name = "overloads"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Decl_FunctionDecl, _impl_.overloads_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .google.api.expr.v1alpha1.Decl.FunctionDecl.Overload overloads = 1 [json_name = "overloads"]; - {PROTOBUF_FIELD_OFFSET(Decl_FunctionDecl, _impl_.overloads_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload>()}, - }}, {{ - }}, -}; - -::uint8_t* Decl_FunctionDecl::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Decl_FunctionDecl::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.Decl.FunctionDecl) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .google.api.expr.v1alpha1.Decl.FunctionDecl.Overload overloads = 1 [json_name = "overloads"]; for (unsigned i = 0, n = static_cast(this->_internal_overloads_size()); i < n; i++) { - const auto& repfield = this->_internal_overloads().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_overloads(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1alpha1.Decl.FunctionDecl) return target; } -::size_t Decl_FunctionDecl::ByteSizeLong() const { +size_t Decl_FunctionDecl::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.Decl.FunctionDecl) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .google.api.expr.v1alpha1.Decl.FunctionDecl.Overload overloads = 1 [json_name = "overloads"]; total_size += 1UL * this->_internal_overloads_size(); - for (const auto& msg : this->_internal_overloads()) { + for (const auto& msg : this->overloads_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Decl_FunctionDecl::_class_data_ = { - Decl_FunctionDecl::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Decl_FunctionDecl::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Decl_FunctionDecl::MergeImpl }; -const ::google::protobuf::Message::ClassData* Decl_FunctionDecl::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Decl_FunctionDecl::GetClassData() const { return &_class_data_; } + +void Decl_FunctionDecl::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Decl_FunctionDecl::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Decl.FunctionDecl) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Decl_FunctionDecl::MergeFrom(const Decl_FunctionDecl& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Decl.FunctionDecl) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_overloads()->MergeFrom( - from._internal_overloads()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + overloads_.MergeFrom(from.overloads_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Decl_FunctionDecl::CopyFrom(const Decl_FunctionDecl& from) { @@ -3549,139 +3466,143 @@ void Decl_FunctionDecl::CopyFrom(const Decl_FunctionDecl& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Decl_FunctionDecl::IsInitialized() const { +bool Decl_FunctionDecl::IsInitialized() const { return true; } -::_pbi::CachedSize* Decl_FunctionDecl::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Decl_FunctionDecl::InternalSwap(Decl_FunctionDecl* PROTOBUF_RESTRICT other) { +void Decl_FunctionDecl::InternalSwap(Decl_FunctionDecl* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.overloads_.InternalSwap(&other->_impl_.overloads_); + overloads_.InternalSwap(&other->overloads_); } -::google::protobuf::Metadata Decl_FunctionDecl::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Decl_FunctionDecl::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto[10]); } + // =================================================================== class Decl::_Internal { public: - static constexpr ::int32_t kOneofCaseOffset = - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Decl, _impl_._oneof_case_); static const ::google::api::expr::v1alpha1::Decl_IdentDecl& ident(const Decl* msg); static const ::google::api::expr::v1alpha1::Decl_FunctionDecl& function(const Decl* msg); }; -const ::google::api::expr::v1alpha1::Decl_IdentDecl& Decl::_Internal::ident(const Decl* msg) { - return *msg->_impl_.decl_kind_.ident_; +const ::google::api::expr::v1alpha1::Decl_IdentDecl& +Decl::_Internal::ident(const Decl* msg) { + return *msg->decl_kind_.ident_; } -const ::google::api::expr::v1alpha1::Decl_FunctionDecl& Decl::_Internal::function(const Decl* msg) { - return *msg->_impl_.decl_kind_.function_; +const ::google::api::expr::v1alpha1::Decl_FunctionDecl& +Decl::_Internal::function(const Decl* msg) { + return *msg->decl_kind_.function_; } void Decl::set_allocated_ident(::google::api::expr::v1alpha1::Decl_IdentDecl* ident) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_decl_kind(); if (ident) { - ::google::protobuf::Arena* submessage_arena = ident->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(ident); if (message_arena != submessage_arena) { - ident = ::google::protobuf::internal::GetOwnedMessage(message_arena, ident, submessage_arena); + ident = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, ident, submessage_arena); } set_has_ident(); - _impl_.decl_kind_.ident_ = ident; + decl_kind_.ident_ = ident; } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Decl.ident) } void Decl::set_allocated_function(::google::api::expr::v1alpha1::Decl_FunctionDecl* function) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_decl_kind(); if (function) { - ::google::protobuf::Arena* submessage_arena = function->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(function); if (message_arena != submessage_arena) { - function = ::google::protobuf::internal::GetOwnedMessage(message_arena, function, submessage_arena); + function = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, function, submessage_arena); } set_has_function(); - _impl_.decl_kind_.function_ = function; + decl_kind_.function_ = function; } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Decl.function) } -Decl::Decl(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Decl::Decl(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.Decl) } -inline PROTOBUF_NDEBUG_INLINE Decl::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : name_(arena, from.name_), - decl_kind_{}, - _cached_size_{0}, - _oneof_case_{from._oneof_case_[0]} {} - -Decl::Decl( - ::google::protobuf::Arena* arena, - const Decl& from) - : ::google::protobuf::Message(arena) { - Decl* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - switch (decl_kind_case()) { - case DECL_KIND_NOT_SET: +Decl::Decl(const Decl& 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()); + } + clear_has_decl_kind(); + switch (from.decl_kind_case()) { + case kIdent: { + _internal_mutable_ident()->::google::api::expr::v1alpha1::Decl_IdentDecl::MergeFrom(from._internal_ident()); break; - case kIdent: - _impl_.decl_kind_.ident_ = CreateMaybeMessage<::google::api::expr::v1alpha1::Decl_IdentDecl>(arena, *from._impl_.decl_kind_.ident_); - break; - case kFunction: - _impl_.decl_kind_.function_ = CreateMaybeMessage<::google::api::expr::v1alpha1::Decl_FunctionDecl>(arena, *from._impl_.decl_kind_.function_); - break; + } + case kFunction: { + _internal_mutable_function()->::google::api::expr::v1alpha1::Decl_FunctionDecl::MergeFrom(from._internal_function()); + break; + } + case DECL_KIND_NOT_SET: { + break; + } } - // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.Decl) } -inline PROTOBUF_NDEBUG_INLINE Decl::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : name_(arena), - decl_kind_{}, - _cached_size_{0}, - _oneof_case_{} {} -inline void Decl::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void Decl::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +clear_has_decl_kind(); } + Decl::~Decl() { // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.Decl) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Decl::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); if (has_decl_kind()) { clear_decl_kind(); } - _impl_.~Impl_(); +} + +void Decl::SetCachedSize(int size) const { + _cached_size_.Set(size); } void Decl::clear_decl_kind() { // @@protoc_insertion_point(one_of_clear_start:google.api.expr.v1alpha1.Decl) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); switch (decl_kind_case()) { case kIdent: { - if (GetArena() == nullptr) { - delete _impl_.decl_kind_.ident_; + if (GetArenaForAllocation() == nullptr) { + delete decl_kind_.ident_; } break; } case kFunction: { - if (GetArena() == nullptr) { - delete _impl_.decl_kind_.function_; + if (GetArenaForAllocation() == nullptr) { + delete decl_kind_.function_; } break; } @@ -3689,178 +3610,187 @@ void Decl::clear_decl_kind() { break; } } - _impl_._oneof_case_[0] = DECL_KIND_NOT_SET; + _oneof_case_[0] = DECL_KIND_NOT_SET; } -PROTOBUF_NOINLINE void Decl::Clear() { +void Decl::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.Decl) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); clear_decl_kind(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Decl::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Decl::_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, "google.api.expr.v1alpha1.Decl.name")); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Decl.IdentDecl ident = 2 [json_name = "ident"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_ident(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Decl.FunctionDecl function = 3 [json_name = "function"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_function(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 3, 2, 42, 2> Decl::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Decl_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Decl, _impl_.name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(Decl, _impl_.name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.api.expr.v1alpha1.Decl.IdentDecl ident = 2 [json_name = "ident"]; - {PROTOBUF_FIELD_OFFSET(Decl, _impl_.decl_kind_.ident_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.api.expr.v1alpha1.Decl.FunctionDecl function = 3 [json_name = "function"]; - {PROTOBUF_FIELD_OFFSET(Decl, _impl_.decl_kind_.function_), _Internal::kOneofCaseOffset + 0, 1, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::Decl_IdentDecl>()}, - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::Decl_FunctionDecl>()}, - }}, {{ - "\35\4\0\0\0\0\0\0" - "google.api.expr.v1alpha1.Decl" - "name" - }}, -}; - -::uint8_t* Decl::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Decl::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.Decl) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.expr.v1alpha1.Decl.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1alpha1.Decl.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - switch (decl_kind_case()) { - case kIdent: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::ident(this), - _Internal::ident(this).GetCachedSize(), target, stream); - break; - } - case kFunction: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::function(this), - _Internal::function(this).GetCachedSize(), target, stream); - break; - } - default: - break; + // .google.api.expr.v1alpha1.Decl.IdentDecl ident = 2 [json_name = "ident"]; + if (_internal_has_ident()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::ident(this), + _Internal::ident(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1alpha1.Decl.FunctionDecl function = 3 [json_name = "function"]; + if (_internal_has_function()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::function(this), + _Internal::function(this).GetCachedSize(), target, stream); } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1alpha1.Decl) return target; } -::size_t Decl::ByteSizeLong() const { +size_t Decl::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.Decl) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } switch (decl_kind_case()) { // .google.api.expr.v1alpha1.Decl.IdentDecl ident = 2 [json_name = "ident"]; case kIdent: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.decl_kind_.ident_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *decl_kind_.ident_); break; } // .google.api.expr.v1alpha1.Decl.FunctionDecl function = 3 [json_name = "function"]; case kFunction: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.decl_kind_.function_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *decl_kind_.function_); break; } case DECL_KIND_NOT_SET: { break; } } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Decl::_class_data_ = { - Decl::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Decl::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Decl::MergeImpl }; -const ::google::protobuf::Message::ClassData* Decl::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Decl::GetClassData() const { return &_class_data_; } + +void Decl::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Decl::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Decl) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Decl::MergeFrom(const Decl& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Decl) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } switch (from.decl_kind_case()) { case kIdent: { - _this->_internal_mutable_ident()->::google::api::expr::v1alpha1::Decl_IdentDecl::MergeFrom( - from._internal_ident()); + _internal_mutable_ident()->::google::api::expr::v1alpha1::Decl_IdentDecl::MergeFrom(from._internal_ident()); break; } case kFunction: { - _this->_internal_mutable_function()->::google::api::expr::v1alpha1::Decl_FunctionDecl::MergeFrom( - from._internal_function()); + _internal_mutable_function()->::google::api::expr::v1alpha1::Decl_FunctionDecl::MergeFrom(from._internal_function()); break; } case DECL_KIND_NOT_SET: { break; } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Decl::CopyFrom(const Decl& from) { @@ -3870,268 +3800,278 @@ void Decl::CopyFrom(const Decl& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Decl::IsInitialized() const { +bool Decl::IsInitialized() const { return true; } -::_pbi::CachedSize* Decl::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Decl::InternalSwap(Decl* PROTOBUF_RESTRICT other) { +void Decl::InternalSwap(Decl* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.decl_kind_, other->_impl_.decl_kind_); - swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(decl_kind_, other->decl_kind_); + swap(_oneof_case_[0], other->_oneof_case_[0]); } -::google::protobuf::Metadata Decl::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Decl::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto[11]); } + // =================================================================== class Reference::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Reference, _impl_._has_bits_); static const ::google::api::expr::v1alpha1::Constant& value(const Reference* msg); - static void set_has_value(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::google::api::expr::v1alpha1::Constant& Reference::_Internal::value(const Reference* msg) { - return *msg->_impl_.value_; +const ::google::api::expr::v1alpha1::Constant& +Reference::_Internal::value(const Reference* msg) { + return *msg->value_; } void Reference::clear_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.value_ != nullptr) _impl_.value_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && value_ != nullptr) { + delete value_; + } + value_ = nullptr; } -Reference::Reference(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Reference::Reference(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + overload_id_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.Reference) } -inline PROTOBUF_NDEBUG_INLINE Reference::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - overload_id_{visibility, arena, from.overload_id_}, - name_(arena, from.name_) {} - -Reference::Reference( - ::google::protobuf::Arena* arena, - const Reference& from) - : ::google::protobuf::Message(arena) { - Reference* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.value_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::api::expr::v1alpha1::Constant>(arena, *from._impl_.value_) - : nullptr; - +Reference::Reference(const Reference& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + overload_id_(from.overload_id_) { + _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_value()) { + value_ = new ::google::api::expr::v1alpha1::Constant(*from.value_); + } else { + value_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.Reference) } -inline PROTOBUF_NDEBUG_INLINE Reference::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - overload_id_{visibility, arena}, - name_(arena) {} -inline void Reference::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.value_ = {}; +inline void Reference::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +value_ = nullptr; } + Reference::~Reference() { // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.Reference) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Reference::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.value_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete value_; +} + +void Reference::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void Reference::Clear() { +void Reference::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.Reference) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.overload_id_.Clear(); - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.value_ != nullptr); - _impl_.value_->Clear(); + overload_id_.Clear(); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && value_ != nullptr) { + delete value_; } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Reference::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + value_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Reference::_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, "google.api.expr.v1alpha1.Reference.name")); + } else + goto handle_unusual; + continue; + // repeated string overload_id = 3 [json_name = "overloadId"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_overload_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1alpha1.Reference.overload_id")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Constant value = 4 [json_name = "value"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_value(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 1, 58, 2> Reference::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Reference, _impl_._has_bits_), - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967282, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Reference_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .google.api.expr.v1alpha1.Constant value = 4 [json_name = "value"]; - {::_pbi::TcParser::FastMtS1, - {34, 0, 0, PROTOBUF_FIELD_OFFSET(Reference, _impl_.value_)}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Reference, _impl_.name_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // repeated string overload_id = 3 [json_name = "overloadId"]; - {::_pbi::TcParser::FastUR1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(Reference, _impl_.overload_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(Reference, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated string overload_id = 3 [json_name = "overloadId"]; - {PROTOBUF_FIELD_OFFSET(Reference, _impl_.overload_id_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - // .google.api.expr.v1alpha1.Constant value = 4 [json_name = "value"]; - {PROTOBUF_FIELD_OFFSET(Reference, _impl_.value_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::Constant>()}, - }}, {{ - "\42\4\13\0\0\0\0\0" - "google.api.expr.v1alpha1.Reference" - "name" - "overload_id" - }}, -}; - -::uint8_t* Reference::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Reference::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.Reference) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.expr.v1alpha1.Reference.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1alpha1.Reference.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // repeated string overload_id = 3 [json_name = "overloadId"]; - for (int i = 0, n = this->_internal_overload_id_size(); i < n; ++i) { - const auto& s = this->_internal_overload_id().Get(i); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.expr.v1alpha1.Reference.overload_id"); + for (int i = 0, n = this->_internal_overload_id_size(); i < n; i++) { + const auto& s = this->_internal_overload_id(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1alpha1.Reference.overload_id"); target = stream->WriteString(3, s, target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.api.expr.v1alpha1.Constant value = 4 [json_name = "value"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, _Internal::value(this), + if (this->_internal_has_value()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::value(this), _Internal::value(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1alpha1.Reference) return target; } -::size_t Reference::ByteSizeLong() const { +size_t Reference::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.Reference) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated string overload_id = 3 [json_name = "overloadId"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_overload_id().size()); - for (int i = 0, n = _internal_overload_id().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - _internal_overload_id().Get(i)); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(overload_id_.size()); + for (int i = 0, n = overload_id_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + overload_id_.Get(i)); } + // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.api.expr.v1alpha1.Constant value = 4 [json_name = "value"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.value_); + if (this->_internal_has_value()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *value_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Reference::_class_data_ = { - Reference::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Reference::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Reference::MergeImpl }; -const ::google::protobuf::Message::ClassData* Reference::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Reference::GetClassData() const { return &_class_data_; } + +void Reference::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Reference::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Reference) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Reference::MergeFrom(const Reference& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Reference) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_overload_id()->MergeFrom(from._internal_overload_id()); + overload_id_.MergeFrom(from.overload_id_); if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_value()->::google::api::expr::v1alpha1::Constant::MergeFrom( - from._internal_value()); + if (from._internal_has_value()) { + _internal_mutable_value()->::google::api::expr::v1alpha1::Constant::MergeFrom(from._internal_value()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Reference::CopyFrom(const Reference& from) { @@ -4141,37 +4081,88 @@ void Reference::CopyFrom(const Reference& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Reference::IsInitialized() const { +bool Reference::IsInitialized() const { return true; } -::_pbi::CachedSize* Reference::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Reference::InternalSwap(Reference* PROTOBUF_RESTRICT other) { +void Reference::InternalSwap(Reference* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.overload_id_.InternalSwap(&other->_impl_.overload_id_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.value_, other->_impl_.value_); + overload_id_.InternalSwap(&other->overload_id_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(value_, other->value_); } -::google::protobuf::Metadata Reference::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Reference::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto[12]); } + // @@protoc_insertion_point(namespace_scope) } // namespace v1alpha1 } // namespace expr } // namespace api } // namespace google -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::CheckedExpr_ReferenceMapEntry_DoNotUse* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::CheckedExpr_ReferenceMapEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::CheckedExpr_ReferenceMapEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::CheckedExpr_TypeMapEntry_DoNotUse* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::CheckedExpr_TypeMapEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::CheckedExpr_TypeMapEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::CheckedExpr* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::CheckedExpr >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::CheckedExpr >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::Type_ListType* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::Type_ListType >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::Type_ListType >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::Type_MapType* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::Type_MapType >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::Type_MapType >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::Type_FunctionType* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::Type_FunctionType >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::Type_FunctionType >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::Type_AbstractType* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::Type_AbstractType >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::Type_AbstractType >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::Type* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::Type >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::Type >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::Decl_IdentDecl* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::Decl_IdentDecl >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::Decl_IdentDecl >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::Decl_FunctionDecl* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::Decl_FunctionDecl >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::Decl_FunctionDecl >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::Decl* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::Decl >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::Decl >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::Reference* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::Reference >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::Reference >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/google/api/expr/v1alpha1/checked.pb.h b/src/viam/api/google/api/expr/v1alpha1/checked.pb.h index 983a4ba74..0a11185f5 100644 --- a/src/viam/api/google/api/expr/v1alpha1/checked.pb.h +++ b/src/viam/api/google/api/expr/v1alpha1/checked.pb.h @@ -1,67 +1,56 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/expr/v1alpha1/checked.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/map.h" // IWYU pragma: export -#include "google/protobuf/map_entry.h" -#include "google/protobuf/map_field_inl.h" -#include "google/protobuf/generated_enum_reflection.h" -#include "google/protobuf/unknown_field_set.h" + +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include +#include #include "google/api/expr/v1alpha1/syntax.pb.h" -#include "google/protobuf/empty.pb.h" -#include "google/protobuf/struct.pb.h" +#include +#include // @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - +#include #define PROTOBUF_INTERNAL_EXPORT_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto; namespace google { namespace api { namespace expr { @@ -108,14 +97,27 @@ extern Type_MapTypeDefaultTypeInternal _Type_MapType_default_instance_; } // namespace v1alpha1 } // namespace expr } // namespace api -namespace protobuf { -} // namespace protobuf } // namespace google - +PROTOBUF_NAMESPACE_OPEN +template<> ::google::api::expr::v1alpha1::CheckedExpr* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::CheckedExpr>(Arena*); +template<> ::google::api::expr::v1alpha1::CheckedExpr_ReferenceMapEntry_DoNotUse* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::CheckedExpr_ReferenceMapEntry_DoNotUse>(Arena*); +template<> ::google::api::expr::v1alpha1::CheckedExpr_TypeMapEntry_DoNotUse* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::CheckedExpr_TypeMapEntry_DoNotUse>(Arena*); +template<> ::google::api::expr::v1alpha1::Decl* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::Decl>(Arena*); +template<> ::google::api::expr::v1alpha1::Decl_FunctionDecl* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::Decl_FunctionDecl>(Arena*); +template<> ::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload>(Arena*); +template<> ::google::api::expr::v1alpha1::Decl_IdentDecl* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::Decl_IdentDecl>(Arena*); +template<> ::google::api::expr::v1alpha1::Reference* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::Reference>(Arena*); +template<> ::google::api::expr::v1alpha1::Type* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::Type>(Arena*); +template<> ::google::api::expr::v1alpha1::Type_AbstractType* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::Type_AbstractType>(Arena*); +template<> ::google::api::expr::v1alpha1::Type_FunctionType* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::Type_FunctionType>(Arena*); +template<> ::google::api::expr::v1alpha1::Type_ListType* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::Type_ListType>(Arena*); +template<> ::google::api::expr::v1alpha1::Type_MapType* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::Type_MapType>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace google { namespace api { namespace expr { namespace v1alpha1 { + enum Type_PrimitiveType : int { Type_PrimitiveType_PRIMITIVE_TYPE_UNSPECIFIED = 0, Type_PrimitiveType_BOOL = 1, @@ -124,101 +126,127 @@ enum Type_PrimitiveType : int { Type_PrimitiveType_DOUBLE = 4, Type_PrimitiveType_STRING = 5, Type_PrimitiveType_BYTES = 6, - Type_PrimitiveType_Type_PrimitiveType_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - Type_PrimitiveType_Type_PrimitiveType_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), + Type_PrimitiveType_Type_PrimitiveType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + Type_PrimitiveType_Type_PrimitiveType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() }; - bool Type_PrimitiveType_IsValid(int value); -extern const uint32_t Type_PrimitiveType_internal_data_[]; -constexpr Type_PrimitiveType Type_PrimitiveType_PrimitiveType_MIN = static_cast(0); -constexpr Type_PrimitiveType Type_PrimitiveType_PrimitiveType_MAX = static_cast(6); -constexpr int Type_PrimitiveType_PrimitiveType_ARRAYSIZE = 6 + 1; -const ::google::protobuf::EnumDescriptor* -Type_PrimitiveType_descriptor(); -template -const std::string& Type_PrimitiveType_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to PrimitiveType_Name()."); - return Type_PrimitiveType_Name(static_cast(value)); -} -template <> -inline const std::string& Type_PrimitiveType_Name(Type_PrimitiveType value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool Type_PrimitiveType_Parse(absl::string_view name, Type_PrimitiveType* value) { - return ::google::protobuf::internal::ParseNamedEnum( - Type_PrimitiveType_descriptor(), name, value); +constexpr Type_PrimitiveType Type_PrimitiveType_PrimitiveType_MIN = Type_PrimitiveType_PRIMITIVE_TYPE_UNSPECIFIED; +constexpr Type_PrimitiveType Type_PrimitiveType_PrimitiveType_MAX = Type_PrimitiveType_BYTES; +constexpr int Type_PrimitiveType_PrimitiveType_ARRAYSIZE = Type_PrimitiveType_PrimitiveType_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Type_PrimitiveType_descriptor(); +template +inline const std::string& Type_PrimitiveType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function Type_PrimitiveType_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + Type_PrimitiveType_descriptor(), enum_t_value); +} +inline bool Type_PrimitiveType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Type_PrimitiveType* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + Type_PrimitiveType_descriptor(), name, value); } enum Type_WellKnownType : int { Type_WellKnownType_WELL_KNOWN_TYPE_UNSPECIFIED = 0, Type_WellKnownType_ANY = 1, Type_WellKnownType_TIMESTAMP = 2, Type_WellKnownType_DURATION = 3, - Type_WellKnownType_Type_WellKnownType_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - Type_WellKnownType_Type_WellKnownType_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), + Type_WellKnownType_Type_WellKnownType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + Type_WellKnownType_Type_WellKnownType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() }; - bool Type_WellKnownType_IsValid(int value); -extern const uint32_t Type_WellKnownType_internal_data_[]; -constexpr Type_WellKnownType Type_WellKnownType_WellKnownType_MIN = static_cast(0); -constexpr Type_WellKnownType Type_WellKnownType_WellKnownType_MAX = static_cast(3); -constexpr int Type_WellKnownType_WellKnownType_ARRAYSIZE = 3 + 1; -const ::google::protobuf::EnumDescriptor* -Type_WellKnownType_descriptor(); -template -const std::string& Type_WellKnownType_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to WellKnownType_Name()."); - return Type_WellKnownType_Name(static_cast(value)); -} -template <> -inline const std::string& Type_WellKnownType_Name(Type_WellKnownType value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool Type_WellKnownType_Parse(absl::string_view name, Type_WellKnownType* value) { - return ::google::protobuf::internal::ParseNamedEnum( - Type_WellKnownType_descriptor(), name, value); +constexpr Type_WellKnownType Type_WellKnownType_WellKnownType_MIN = Type_WellKnownType_WELL_KNOWN_TYPE_UNSPECIFIED; +constexpr Type_WellKnownType Type_WellKnownType_WellKnownType_MAX = Type_WellKnownType_DURATION; +constexpr int Type_WellKnownType_WellKnownType_ARRAYSIZE = Type_WellKnownType_WellKnownType_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Type_WellKnownType_descriptor(); +template +inline const std::string& Type_WellKnownType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function Type_WellKnownType_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + Type_WellKnownType_descriptor(), enum_t_value); +} +inline bool Type_WellKnownType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Type_WellKnownType* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + Type_WellKnownType_descriptor(), name, value); } - // =================================================================== +class CheckedExpr_ReferenceMapEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + CheckedExpr_ReferenceMapEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR CheckedExpr_ReferenceMapEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit CheckedExpr_ReferenceMapEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const CheckedExpr_ReferenceMapEntry_DoNotUse& other); + static const CheckedExpr_ReferenceMapEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_CheckedExpr_ReferenceMapEntry_DoNotUse_default_instance_); } + static bool ValidateKey(void*) { return true; } + static bool ValidateValue(void*) { return true; } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto; +}; // ------------------------------------------------------------------- -class Type final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Type) */ { +class CheckedExpr_TypeMapEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + CheckedExpr_TypeMapEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR CheckedExpr_TypeMapEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit CheckedExpr_TypeMapEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const CheckedExpr_TypeMapEntry_DoNotUse& other); + static const CheckedExpr_TypeMapEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_CheckedExpr_TypeMapEntry_DoNotUse_default_instance_); } + static bool ValidateKey(void*) { return true; } + static bool ValidateValue(void*) { return true; } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto; +}; + +// ------------------------------------------------------------------- + +class CheckedExpr final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.CheckedExpr) */ { public: - inline Type() : Type(nullptr) {} - ~Type() override; - template - explicit PROTOBUF_CONSTEXPR Type(::google::protobuf::internal::ConstantInitialized); + inline CheckedExpr() : CheckedExpr(nullptr) {} + ~CheckedExpr() override; + explicit PROTOBUF_CONSTEXPR CheckedExpr(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Type(const Type& from) - : Type(nullptr, from) {} - Type(Type&& from) noexcept - : Type() { + CheckedExpr(const CheckedExpr& from); + CheckedExpr(CheckedExpr&& from) noexcept + : CheckedExpr() { *this = ::std::move(from); } - inline Type& operator=(const Type& from) { + inline CheckedExpr& operator=(const CheckedExpr& from) { CopyFrom(from); return *this; } - inline Type& operator=(Type&& from) noexcept { + inline CheckedExpr& operator=(CheckedExpr&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -228,490 +256,386 @@ class Type final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Type& default_instance() { + static const CheckedExpr& default_instance() { return *internal_default_instance(); } - enum TypeKindCase { - kDyn = 1, - kNull = 2, - kPrimitive = 3, - kWrapper = 4, - kWellKnown = 5, - kListType = 6, - kMapType = 7, - kFunction = 8, - kMessageType = 9, - kTypeParam = 10, - kType = 11, - kError = 12, - kAbstractType = 14, - TYPE_KIND_NOT_SET = 0, - }; - - static inline const Type* internal_default_instance() { - return reinterpret_cast( - &_Type_default_instance_); + static inline const CheckedExpr* internal_default_instance() { + return reinterpret_cast( + &_CheckedExpr_default_instance_); } static constexpr int kIndexInFileMessages = - 7; + 2; - friend void swap(Type& a, Type& b) { + friend void swap(CheckedExpr& a, CheckedExpr& b) { a.Swap(&b); } - inline void Swap(Type* other) { + inline void Swap(CheckedExpr* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Type* other) { + void UnsafeArenaSwap(CheckedExpr* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Type* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Type& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Type& from) { - Type::MergeImpl(*this, from); + CheckedExpr* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CheckedExpr& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CheckedExpr& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Type* other); + void SetCachedSize(int size) const final; + void InternalSwap(CheckedExpr* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.expr.v1alpha1.Type"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.CheckedExpr"; } protected: - explicit Type(::google::protobuf::Arena* arena); - Type(::google::protobuf::Arena* arena, const Type& from); + explicit CheckedExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- - using ListType = Type_ListType; - using MapType = Type_MapType; - using FunctionType = Type_FunctionType; - using AbstractType = Type_AbstractType; - - using PrimitiveType = Type_PrimitiveType; - static constexpr PrimitiveType PRIMITIVE_TYPE_UNSPECIFIED = Type_PrimitiveType_PRIMITIVE_TYPE_UNSPECIFIED; - static constexpr PrimitiveType BOOL = Type_PrimitiveType_BOOL; - static constexpr PrimitiveType INT64 = Type_PrimitiveType_INT64; - static constexpr PrimitiveType UINT64 = Type_PrimitiveType_UINT64; - static constexpr PrimitiveType DOUBLE = Type_PrimitiveType_DOUBLE; - static constexpr PrimitiveType STRING = Type_PrimitiveType_STRING; - static constexpr PrimitiveType BYTES = Type_PrimitiveType_BYTES; - static inline bool PrimitiveType_IsValid(int value) { - return Type_PrimitiveType_IsValid(value); - } - static constexpr PrimitiveType PrimitiveType_MIN = Type_PrimitiveType_PrimitiveType_MIN; - static constexpr PrimitiveType PrimitiveType_MAX = Type_PrimitiveType_PrimitiveType_MAX; - static constexpr int PrimitiveType_ARRAYSIZE = Type_PrimitiveType_PrimitiveType_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* PrimitiveType_descriptor() { - return Type_PrimitiveType_descriptor(); - } - template - static inline const std::string& PrimitiveType_Name(T value) { - return Type_PrimitiveType_Name(value); - } - static inline bool PrimitiveType_Parse(absl::string_view name, PrimitiveType* value) { - return Type_PrimitiveType_Parse(name, value); - } - - using WellKnownType = Type_WellKnownType; - static constexpr WellKnownType WELL_KNOWN_TYPE_UNSPECIFIED = Type_WellKnownType_WELL_KNOWN_TYPE_UNSPECIFIED; - static constexpr WellKnownType ANY = Type_WellKnownType_ANY; - static constexpr WellKnownType TIMESTAMP = Type_WellKnownType_TIMESTAMP; - static constexpr WellKnownType DURATION = Type_WellKnownType_DURATION; - static inline bool WellKnownType_IsValid(int value) { - return Type_WellKnownType_IsValid(value); - } - static constexpr WellKnownType WellKnownType_MIN = Type_WellKnownType_WellKnownType_MIN; - static constexpr WellKnownType WellKnownType_MAX = Type_WellKnownType_WellKnownType_MAX; - static constexpr int WellKnownType_ARRAYSIZE = Type_WellKnownType_WellKnownType_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* WellKnownType_descriptor() { - return Type_WellKnownType_descriptor(); - } - template - static inline const std::string& WellKnownType_Name(T value) { - return Type_WellKnownType_Name(value); - } - static inline bool WellKnownType_Parse(absl::string_view name, WellKnownType* value) { - return Type_WellKnownType_Parse(name, value); - } // accessors ------------------------------------------------------- enum : int { - kDynFieldNumber = 1, - kNullFieldNumber = 2, - kPrimitiveFieldNumber = 3, - kWrapperFieldNumber = 4, - kWellKnownFieldNumber = 5, - kListTypeFieldNumber = 6, - kMapTypeFieldNumber = 7, - kFunctionFieldNumber = 8, - kMessageTypeFieldNumber = 9, - kTypeParamFieldNumber = 10, - kTypeFieldNumber = 11, - kErrorFieldNumber = 12, - kAbstractTypeFieldNumber = 14, + kReferenceMapFieldNumber = 2, + kTypeMapFieldNumber = 3, + kExprVersionFieldNumber = 6, + kExprFieldNumber = 4, + kSourceInfoFieldNumber = 5, }; - // .google.protobuf.Empty dyn = 1 [json_name = "dyn"]; - bool has_dyn() const; + // map reference_map = 2 [json_name = "referenceMap"]; + int reference_map_size() const; private: - bool _internal_has_dyn() const; - + int _internal_reference_map_size() const; public: - void clear_dyn() ; - const ::google::protobuf::Empty& dyn() const; - PROTOBUF_NODISCARD ::google::protobuf::Empty* release_dyn(); - ::google::protobuf::Empty* mutable_dyn(); - void set_allocated_dyn(::google::protobuf::Empty* value); - void unsafe_arena_set_allocated_dyn(::google::protobuf::Empty* value); - ::google::protobuf::Empty* unsafe_arena_release_dyn(); - + void clear_reference_map(); private: - const ::google::protobuf::Empty& _internal_dyn() const; - ::google::protobuf::Empty* _internal_mutable_dyn(); - + const ::PROTOBUF_NAMESPACE_ID::Map< int64_t, ::google::api::expr::v1alpha1::Reference >& + _internal_reference_map() const; + ::PROTOBUF_NAMESPACE_ID::Map< int64_t, ::google::api::expr::v1alpha1::Reference >* + _internal_mutable_reference_map(); public: - // .google.protobuf.NullValue null = 2 [json_name = "null"]; - bool has_null() const; - void clear_null() ; - ::google::protobuf::NullValue null() const; - void set_null(::google::protobuf::NullValue value); + const ::PROTOBUF_NAMESPACE_ID::Map< int64_t, ::google::api::expr::v1alpha1::Reference >& + reference_map() const; + ::PROTOBUF_NAMESPACE_ID::Map< int64_t, ::google::api::expr::v1alpha1::Reference >* + mutable_reference_map(); + // map type_map = 3 [json_name = "typeMap"]; + int type_map_size() const; private: - ::google::protobuf::NullValue _internal_null() const; - void _internal_set_null(::google::protobuf::NullValue value); - + int _internal_type_map_size() const; public: - // .google.api.expr.v1alpha1.Type.PrimitiveType primitive = 3 [json_name = "primitive"]; - bool has_primitive() const; - void clear_primitive() ; - ::google::api::expr::v1alpha1::Type_PrimitiveType primitive() const; - void set_primitive(::google::api::expr::v1alpha1::Type_PrimitiveType value); - + void clear_type_map(); private: - ::google::api::expr::v1alpha1::Type_PrimitiveType _internal_primitive() const; - void _internal_set_primitive(::google::api::expr::v1alpha1::Type_PrimitiveType value); - + const ::PROTOBUF_NAMESPACE_ID::Map< int64_t, ::google::api::expr::v1alpha1::Type >& + _internal_type_map() const; + ::PROTOBUF_NAMESPACE_ID::Map< int64_t, ::google::api::expr::v1alpha1::Type >* + _internal_mutable_type_map(); public: - // .google.api.expr.v1alpha1.Type.PrimitiveType wrapper = 4 [json_name = "wrapper"]; - bool has_wrapper() const; - void clear_wrapper() ; - ::google::api::expr::v1alpha1::Type_PrimitiveType wrapper() const; - void set_wrapper(::google::api::expr::v1alpha1::Type_PrimitiveType value); + const ::PROTOBUF_NAMESPACE_ID::Map< int64_t, ::google::api::expr::v1alpha1::Type >& + type_map() const; + ::PROTOBUF_NAMESPACE_ID::Map< int64_t, ::google::api::expr::v1alpha1::Type >* + mutable_type_map(); + // string expr_version = 6 [json_name = "exprVersion"]; + void clear_expr_version(); + const std::string& expr_version() const; + template + void set_expr_version(ArgT0&& arg0, ArgT... args); + std::string* mutable_expr_version(); + PROTOBUF_NODISCARD std::string* release_expr_version(); + void set_allocated_expr_version(std::string* expr_version); private: - ::google::api::expr::v1alpha1::Type_PrimitiveType _internal_wrapper() const; - void _internal_set_wrapper(::google::api::expr::v1alpha1::Type_PrimitiveType value); - + const std::string& _internal_expr_version() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_expr_version(const std::string& value); + std::string* _internal_mutable_expr_version(); public: - // .google.api.expr.v1alpha1.Type.WellKnownType well_known = 5 [json_name = "wellKnown"]; - bool has_well_known() const; - void clear_well_known() ; - ::google::api::expr::v1alpha1::Type_WellKnownType well_known() const; - void set_well_known(::google::api::expr::v1alpha1::Type_WellKnownType value); + // .google.api.expr.v1alpha1.Expr expr = 4 [json_name = "expr"]; + bool has_expr() const; private: - ::google::api::expr::v1alpha1::Type_WellKnownType _internal_well_known() const; - void _internal_set_well_known(::google::api::expr::v1alpha1::Type_WellKnownType value); - + bool _internal_has_expr() const; public: - // .google.api.expr.v1alpha1.Type.ListType list_type = 6 [json_name = "listType"]; - bool has_list_type() const; + void clear_expr(); + const ::google::api::expr::v1alpha1::Expr& expr() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Expr* release_expr(); + ::google::api::expr::v1alpha1::Expr* mutable_expr(); + void set_allocated_expr(::google::api::expr::v1alpha1::Expr* expr); private: - bool _internal_has_list_type() const; - + const ::google::api::expr::v1alpha1::Expr& _internal_expr() const; + ::google::api::expr::v1alpha1::Expr* _internal_mutable_expr(); public: - void clear_list_type() ; - const ::google::api::expr::v1alpha1::Type_ListType& list_type() const; - PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Type_ListType* release_list_type(); - ::google::api::expr::v1alpha1::Type_ListType* mutable_list_type(); - void set_allocated_list_type(::google::api::expr::v1alpha1::Type_ListType* value); - void unsafe_arena_set_allocated_list_type(::google::api::expr::v1alpha1::Type_ListType* value); - ::google::api::expr::v1alpha1::Type_ListType* unsafe_arena_release_list_type(); + void unsafe_arena_set_allocated_expr( + ::google::api::expr::v1alpha1::Expr* expr); + ::google::api::expr::v1alpha1::Expr* unsafe_arena_release_expr(); + // .google.api.expr.v1alpha1.SourceInfo source_info = 5 [json_name = "sourceInfo"]; + bool has_source_info() const; private: - const ::google::api::expr::v1alpha1::Type_ListType& _internal_list_type() const; - ::google::api::expr::v1alpha1::Type_ListType* _internal_mutable_list_type(); - + bool _internal_has_source_info() const; public: - // .google.api.expr.v1alpha1.Type.MapType map_type = 7 [json_name = "mapType"]; - bool has_map_type() const; + void clear_source_info(); + const ::google::api::expr::v1alpha1::SourceInfo& source_info() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::SourceInfo* release_source_info(); + ::google::api::expr::v1alpha1::SourceInfo* mutable_source_info(); + void set_allocated_source_info(::google::api::expr::v1alpha1::SourceInfo* source_info); private: - bool _internal_has_map_type() const; - + const ::google::api::expr::v1alpha1::SourceInfo& _internal_source_info() const; + ::google::api::expr::v1alpha1::SourceInfo* _internal_mutable_source_info(); public: - void clear_map_type() ; - const ::google::api::expr::v1alpha1::Type_MapType& map_type() const; - PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Type_MapType* release_map_type(); - ::google::api::expr::v1alpha1::Type_MapType* mutable_map_type(); - void set_allocated_map_type(::google::api::expr::v1alpha1::Type_MapType* value); - void unsafe_arena_set_allocated_map_type(::google::api::expr::v1alpha1::Type_MapType* value); - ::google::api::expr::v1alpha1::Type_MapType* unsafe_arena_release_map_type(); + void unsafe_arena_set_allocated_source_info( + ::google::api::expr::v1alpha1::SourceInfo* source_info); + ::google::api::expr::v1alpha1::SourceInfo* unsafe_arena_release_source_info(); - private: - const ::google::api::expr::v1alpha1::Type_MapType& _internal_map_type() const; - ::google::api::expr::v1alpha1::Type_MapType* _internal_mutable_map_type(); + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.CheckedExpr) + private: + class _Internal; - public: - // .google.api.expr.v1alpha1.Type.FunctionType function = 8 [json_name = "function"]; - bool has_function() const; - private: - bool _internal_has_function() const; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + CheckedExpr_ReferenceMapEntry_DoNotUse, + int64_t, ::google::api::expr::v1alpha1::Reference, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> reference_map_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + CheckedExpr_TypeMapEntry_DoNotUse, + int64_t, ::google::api::expr::v1alpha1::Type, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> type_map_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr expr_version_; + ::google::api::expr::v1alpha1::Expr* expr_; + ::google::api::expr::v1alpha1::SourceInfo* source_info_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto; +}; +// ------------------------------------------------------------------- - public: - void clear_function() ; - const ::google::api::expr::v1alpha1::Type_FunctionType& function() const; - PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Type_FunctionType* release_function(); - ::google::api::expr::v1alpha1::Type_FunctionType* mutable_function(); - void set_allocated_function(::google::api::expr::v1alpha1::Type_FunctionType* value); - void unsafe_arena_set_allocated_function(::google::api::expr::v1alpha1::Type_FunctionType* value); - ::google::api::expr::v1alpha1::Type_FunctionType* unsafe_arena_release_function(); +class Type_ListType final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Type.ListType) */ { + public: + inline Type_ListType() : Type_ListType(nullptr) {} + ~Type_ListType() override; + explicit PROTOBUF_CONSTEXPR Type_ListType(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - private: - const ::google::api::expr::v1alpha1::Type_FunctionType& _internal_function() const; - ::google::api::expr::v1alpha1::Type_FunctionType* _internal_mutable_function(); + Type_ListType(const Type_ListType& from); + Type_ListType(Type_ListType&& from) noexcept + : Type_ListType() { + *this = ::std::move(from); + } - public: - // string message_type = 9 [json_name = "messageType"]; - bool has_message_type() const; - void clear_message_type() ; - const std::string& message_type() const; - template - void set_message_type(Arg_&& arg, Args_... args); - std::string* mutable_message_type(); - PROTOBUF_NODISCARD std::string* release_message_type(); - void set_allocated_message_type(std::string* value); + inline Type_ListType& operator=(const Type_ListType& from) { + CopyFrom(from); + return *this; + } + inline Type_ListType& operator=(Type_ListType&& 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; + } - private: - const std::string& _internal_message_type() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_message_type( - const std::string& value); - std::string* _internal_mutable_message_type(); + 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 Type_ListType& default_instance() { + return *internal_default_instance(); + } + static inline const Type_ListType* internal_default_instance() { + return reinterpret_cast( + &_Type_ListType_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; - public: - // string type_param = 10 [json_name = "typeParam"]; - bool has_type_param() const; - void clear_type_param() ; - const std::string& type_param() const; - template - void set_type_param(Arg_&& arg, Args_... args); - std::string* mutable_type_param(); - PROTOBUF_NODISCARD std::string* release_type_param(); - void set_allocated_type_param(std::string* value); + friend void swap(Type_ListType& a, Type_ListType& b) { + a.Swap(&b); + } + inline void Swap(Type_ListType* 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(Type_ListType* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } - private: - const std::string& _internal_type_param() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_type_param( - const std::string& value); - std::string* _internal_mutable_type_param(); + // implements Message ---------------------------------------------- - public: - // .google.api.expr.v1alpha1.Type type = 11 [json_name = "type"]; - bool has_type() const; + Type_ListType* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Type_ListType& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Type_ListType& from); private: - bool _internal_has_type() const; - + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: - void clear_type() ; - const ::google::api::expr::v1alpha1::Type& type() const; - PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Type* release_type(); - ::google::api::expr::v1alpha1::Type* mutable_type(); - void set_allocated_type(::google::api::expr::v1alpha1::Type* value); - void unsafe_arena_set_allocated_type(::google::api::expr::v1alpha1::Type* value); - ::google::api::expr::v1alpha1::Type* unsafe_arena_release_type(); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - private: - const ::google::api::expr::v1alpha1::Type& _internal_type() const; - ::google::api::expr::v1alpha1::Type* _internal_mutable_type(); + 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(); } - public: - // .google.protobuf.Empty error = 12 [json_name = "error"]; - bool has_error() const; private: - bool _internal_has_error() const; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Type_ListType* other); + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.Type.ListType"; + } + protected: + explicit Type_ListType(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - void clear_error() ; - const ::google::protobuf::Empty& error() const; - PROTOBUF_NODISCARD ::google::protobuf::Empty* release_error(); - ::google::protobuf::Empty* mutable_error(); - void set_allocated_error(::google::protobuf::Empty* value); - void unsafe_arena_set_allocated_error(::google::protobuf::Empty* value); - ::google::protobuf::Empty* unsafe_arena_release_error(); - private: - const ::google::protobuf::Empty& _internal_error() const; - ::google::protobuf::Empty* _internal_mutable_error(); + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: - // .google.api.expr.v1alpha1.Type.AbstractType abstract_type = 14 [json_name = "abstractType"]; - bool has_abstract_type() const; - private: - bool _internal_has_abstract_type() const; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - public: - void clear_abstract_type() ; - const ::google::api::expr::v1alpha1::Type_AbstractType& abstract_type() const; - PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Type_AbstractType* release_abstract_type(); - ::google::api::expr::v1alpha1::Type_AbstractType* mutable_abstract_type(); - void set_allocated_abstract_type(::google::api::expr::v1alpha1::Type_AbstractType* value); - void unsafe_arena_set_allocated_abstract_type(::google::api::expr::v1alpha1::Type_AbstractType* value); - ::google::api::expr::v1alpha1::Type_AbstractType* unsafe_arena_release_abstract_type(); + // nested types ---------------------------------------------------- - private: - const ::google::api::expr::v1alpha1::Type_AbstractType& _internal_abstract_type() const; - ::google::api::expr::v1alpha1::Type_AbstractType* _internal_mutable_abstract_type(); + // accessors ------------------------------------------------------- + enum : int { + kElemTypeFieldNumber = 1, + }; + // .google.api.expr.v1alpha1.Type elem_type = 1 [json_name = "elemType"]; + bool has_elem_type() const; + private: + bool _internal_has_elem_type() const; public: - void clear_type_kind(); - TypeKindCase type_kind_case() const; - // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Type) + void clear_elem_type(); + const ::google::api::expr::v1alpha1::Type& elem_type() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Type* release_elem_type(); + ::google::api::expr::v1alpha1::Type* mutable_elem_type(); + void set_allocated_elem_type(::google::api::expr::v1alpha1::Type* elem_type); + private: + const ::google::api::expr::v1alpha1::Type& _internal_elem_type() const; + ::google::api::expr::v1alpha1::Type* _internal_mutable_elem_type(); + public: + void unsafe_arena_set_allocated_elem_type( + ::google::api::expr::v1alpha1::Type* elem_type); + ::google::api::expr::v1alpha1::Type* unsafe_arena_release_elem_type(); + + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Type.ListType) private: class _Internal; - void set_has_dyn(); - void set_has_null(); - void set_has_primitive(); - void set_has_wrapper(); - void set_has_well_known(); - void set_has_list_type(); - void set_has_map_type(); - void set_has_function(); - void set_has_message_type(); - void set_has_type_param(); - void set_has_type(); - void set_has_error(); - void set_has_abstract_type(); - inline bool has_type_kind() const; - inline void clear_has_type_kind(); - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 13, 7, - 68, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - union TypeKindUnion { - constexpr TypeKindUnion() : _constinit_{} {} - ::google::protobuf::internal::ConstantInitialized _constinit_; - ::google::protobuf::Empty* dyn_; - int null_; - int primitive_; - int wrapper_; - int well_known_; - ::google::api::expr::v1alpha1::Type_ListType* list_type_; - ::google::api::expr::v1alpha1::Type_MapType* map_type_; - ::google::api::expr::v1alpha1::Type_FunctionType* function_; - ::google::protobuf::internal::ArenaStringPtr message_type_; - ::google::protobuf::internal::ArenaStringPtr type_param_; - ::google::api::expr::v1alpha1::Type* type_; - ::google::protobuf::Empty* error_; - ::google::api::expr::v1alpha1::Type_AbstractType* abstract_type_; - } type_kind_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t _oneof_case_[1]; - - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::google::api::expr::v1alpha1::Type* elem_type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Type_AbstractType final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Type.AbstractType) */ { +class Type_MapType final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Type.MapType) */ { public: - inline Type_AbstractType() : Type_AbstractType(nullptr) {} - ~Type_AbstractType() override; - template - explicit PROTOBUF_CONSTEXPR Type_AbstractType(::google::protobuf::internal::ConstantInitialized); + inline Type_MapType() : Type_MapType(nullptr) {} + ~Type_MapType() override; + explicit PROTOBUF_CONSTEXPR Type_MapType(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Type_AbstractType(const Type_AbstractType& from) - : Type_AbstractType(nullptr, from) {} - Type_AbstractType(Type_AbstractType&& from) noexcept - : Type_AbstractType() { + Type_MapType(const Type_MapType& from); + Type_MapType(Type_MapType&& from) noexcept + : Type_MapType() { *this = ::std::move(from); } - inline Type_AbstractType& operator=(const Type_AbstractType& from) { + inline Type_MapType& operator=(const Type_MapType& from) { CopyFrom(from); return *this; } - inline Type_AbstractType& operator=(Type_AbstractType&& from) noexcept { + inline Type_MapType& operator=(Type_MapType&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -721,184 +645,155 @@ class Type_AbstractType final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Type_AbstractType& default_instance() { + static const Type_MapType& default_instance() { return *internal_default_instance(); } - static inline const Type_AbstractType* internal_default_instance() { - return reinterpret_cast( - &_Type_AbstractType_default_instance_); + static inline const Type_MapType* internal_default_instance() { + return reinterpret_cast( + &_Type_MapType_default_instance_); } static constexpr int kIndexInFileMessages = - 6; + 4; - friend void swap(Type_AbstractType& a, Type_AbstractType& b) { + friend void swap(Type_MapType& a, Type_MapType& b) { a.Swap(&b); } - inline void Swap(Type_AbstractType* other) { + inline void Swap(Type_MapType* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Type_AbstractType* other) { + void UnsafeArenaSwap(Type_MapType* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Type_AbstractType* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Type_AbstractType& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Type_AbstractType& from) { - Type_AbstractType::MergeImpl(*this, from); + Type_MapType* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Type_MapType& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Type_MapType& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Type_AbstractType* other); + void SetCachedSize(int size) const final; + void InternalSwap(Type_MapType* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.expr.v1alpha1.Type.AbstractType"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.Type.MapType"; } protected: - explicit Type_AbstractType(::google::protobuf::Arena* arena); - Type_AbstractType(::google::protobuf::Arena* arena, const Type_AbstractType& from); + explicit Type_MapType(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kParameterTypesFieldNumber = 2, - kNameFieldNumber = 1, + kKeyTypeFieldNumber = 1, + kValueTypeFieldNumber = 2, }; - // repeated .google.api.expr.v1alpha1.Type parameter_types = 2 [json_name = "parameterTypes"]; - int parameter_types_size() const; + // .google.api.expr.v1alpha1.Type key_type = 1 [json_name = "keyType"]; + bool has_key_type() const; private: - int _internal_parameter_types_size() const; - + bool _internal_has_key_type() const; public: - void clear_parameter_types() ; - ::google::api::expr::v1alpha1::Type* mutable_parameter_types(int index); - ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1alpha1::Type >* - mutable_parameter_types(); + void clear_key_type(); + const ::google::api::expr::v1alpha1::Type& key_type() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Type* release_key_type(); + ::google::api::expr::v1alpha1::Type* mutable_key_type(); + void set_allocated_key_type(::google::api::expr::v1alpha1::Type* key_type); private: - const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Type>& _internal_parameter_types() const; - ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Type>* _internal_mutable_parameter_types(); + const ::google::api::expr::v1alpha1::Type& _internal_key_type() const; + ::google::api::expr::v1alpha1::Type* _internal_mutable_key_type(); public: - const ::google::api::expr::v1alpha1::Type& parameter_types(int index) const; - ::google::api::expr::v1alpha1::Type* add_parameter_types(); - const ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1alpha1::Type >& - parameter_types() const; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); + void unsafe_arena_set_allocated_key_type( + ::google::api::expr::v1alpha1::Type* key_type); + ::google::api::expr::v1alpha1::Type* unsafe_arena_release_key_type(); + // .google.api.expr.v1alpha1.Type value_type = 2 [json_name = "valueType"]; + bool has_value_type() const; private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - + bool _internal_has_value_type() const; public: - // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Type.AbstractType) + void clear_value_type(); + const ::google::api::expr::v1alpha1::Type& value_type() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Type* release_value_type(); + ::google::api::expr::v1alpha1::Type* mutable_value_type(); + void set_allocated_value_type(::google::api::expr::v1alpha1::Type* value_type); + private: + const ::google::api::expr::v1alpha1::Type& _internal_value_type() const; + ::google::api::expr::v1alpha1::Type* _internal_mutable_value_type(); + public: + void unsafe_arena_set_allocated_value_type( + ::google::api::expr::v1alpha1::Type* value_type); + ::google::api::expr::v1alpha1::Type* unsafe_arena_release_value_type(); + + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Type.MapType) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 55, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1alpha1::Type > parameter_types_; - ::google::protobuf::internal::ArenaStringPtr name_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::google::api::expr::v1alpha1::Type* key_type_; + ::google::api::expr::v1alpha1::Type* value_type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class Type_FunctionType final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Type.FunctionType) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Type.FunctionType) */ { public: inline Type_FunctionType() : Type_FunctionType(nullptr) {} ~Type_FunctionType() override; - template - explicit PROTOBUF_CONSTEXPR Type_FunctionType(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR Type_FunctionType(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Type_FunctionType(const Type_FunctionType& from) - : Type_FunctionType(nullptr, from) {} + Type_FunctionType(const Type_FunctionType& from); Type_FunctionType(Type_FunctionType&& from) noexcept : Type_FunctionType() { *this = ::std::move(from); @@ -910,9 +805,9 @@ class Type_FunctionType final : } inline Type_FunctionType& operator=(Type_FunctionType&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -922,22 +817,13 @@ class Type_FunctionType final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const Type_FunctionType& default_instance() { @@ -956,65 +842,63 @@ class Type_FunctionType final : inline void Swap(Type_FunctionType* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(Type_FunctionType* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Type_FunctionType* New(::google::protobuf::Arena* arena = nullptr) const final { + Type_FunctionType* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const Type_FunctionType& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Type_FunctionType& from) { - Type_FunctionType::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Type_FunctionType& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(Type_FunctionType* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "google.api.expr.v1alpha1.Type.FunctionType"; } protected: - explicit Type_FunctionType(::google::protobuf::Arena* arena); - Type_FunctionType(::google::protobuf::Arena* arena, const Type_FunctionType& from); + explicit Type_FunctionType(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1028,92 +912,74 @@ class Type_FunctionType final : int arg_types_size() const; private: int _internal_arg_types_size() const; - public: - void clear_arg_types() ; + void clear_arg_types(); ::google::api::expr::v1alpha1::Type* mutable_arg_types(int index); - ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1alpha1::Type >* + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Type >* mutable_arg_types(); private: - const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Type>& _internal_arg_types() const; - ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Type>* _internal_mutable_arg_types(); + const ::google::api::expr::v1alpha1::Type& _internal_arg_types(int index) const; + ::google::api::expr::v1alpha1::Type* _internal_add_arg_types(); public: const ::google::api::expr::v1alpha1::Type& arg_types(int index) const; ::google::api::expr::v1alpha1::Type* add_arg_types(); - const ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1alpha1::Type >& + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Type >& arg_types() const; + // .google.api.expr.v1alpha1.Type result_type = 1 [json_name = "resultType"]; bool has_result_type() const; - void clear_result_type() ; + private: + bool _internal_has_result_type() const; + public: + void clear_result_type(); const ::google::api::expr::v1alpha1::Type& result_type() const; PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Type* release_result_type(); ::google::api::expr::v1alpha1::Type* mutable_result_type(); - void set_allocated_result_type(::google::api::expr::v1alpha1::Type* value); - void unsafe_arena_set_allocated_result_type(::google::api::expr::v1alpha1::Type* value); - ::google::api::expr::v1alpha1::Type* unsafe_arena_release_result_type(); - + void set_allocated_result_type(::google::api::expr::v1alpha1::Type* result_type); private: const ::google::api::expr::v1alpha1::Type& _internal_result_type() const; ::google::api::expr::v1alpha1::Type* _internal_mutable_result_type(); - public: + void unsafe_arena_set_allocated_result_type( + ::google::api::expr::v1alpha1::Type* result_type); + ::google::api::expr::v1alpha1::Type* unsafe_arena_release_result_type(); + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Type.FunctionType) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 2, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1alpha1::Type > arg_types_; - ::google::api::expr::v1alpha1::Type* result_type_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Type > arg_types_; + ::google::api::expr::v1alpha1::Type* result_type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Type_ListType final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Type.ListType) */ { +class Type_AbstractType final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Type.AbstractType) */ { public: - inline Type_ListType() : Type_ListType(nullptr) {} - ~Type_ListType() override; - template - explicit PROTOBUF_CONSTEXPR Type_ListType(::google::protobuf::internal::ConstantInitialized); + inline Type_AbstractType() : Type_AbstractType(nullptr) {} + ~Type_AbstractType() override; + explicit PROTOBUF_CONSTEXPR Type_AbstractType(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Type_ListType(const Type_ListType& from) - : Type_ListType(nullptr, from) {} - Type_ListType(Type_ListType&& from) noexcept - : Type_ListType() { + Type_AbstractType(const Type_AbstractType& from); + Type_AbstractType(Type_AbstractType&& from) noexcept + : Type_AbstractType() { *this = ::std::move(from); } - inline Type_ListType& operator=(const Type_ListType& from) { + inline Type_AbstractType& operator=(const Type_AbstractType& from) { CopyFrom(from); return *this; } - inline Type_ListType& operator=(Type_ListType&& from) noexcept { + inline Type_AbstractType& operator=(Type_AbstractType&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1123,178 +989,165 @@ class Type_ListType final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Type_ListType& default_instance() { + static const Type_AbstractType& default_instance() { return *internal_default_instance(); } - static inline const Type_ListType* internal_default_instance() { - return reinterpret_cast( - &_Type_ListType_default_instance_); + static inline const Type_AbstractType* internal_default_instance() { + return reinterpret_cast( + &_Type_AbstractType_default_instance_); } static constexpr int kIndexInFileMessages = - 3; + 6; - friend void swap(Type_ListType& a, Type_ListType& b) { + friend void swap(Type_AbstractType& a, Type_AbstractType& b) { a.Swap(&b); } - inline void Swap(Type_ListType* other) { + inline void Swap(Type_AbstractType* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Type_ListType* other) { + void UnsafeArenaSwap(Type_AbstractType* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Type_ListType* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Type_ListType& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Type_ListType& from) { - Type_ListType::MergeImpl(*this, from); + Type_AbstractType* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Type_AbstractType& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Type_AbstractType& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Type_ListType* other); + void SetCachedSize(int size) const final; + void InternalSwap(Type_AbstractType* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.expr.v1alpha1.Type.ListType"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.Type.AbstractType"; } protected: - explicit Type_ListType(::google::protobuf::Arena* arena); - Type_ListType(::google::protobuf::Arena* arena, const Type_ListType& from); + explicit Type_AbstractType(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kElemTypeFieldNumber = 1, + kParameterTypesFieldNumber = 2, + kNameFieldNumber = 1, }; - // .google.api.expr.v1alpha1.Type elem_type = 1 [json_name = "elemType"]; - bool has_elem_type() const; - void clear_elem_type() ; - const ::google::api::expr::v1alpha1::Type& elem_type() const; - PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Type* release_elem_type(); - ::google::api::expr::v1alpha1::Type* mutable_elem_type(); - void set_allocated_elem_type(::google::api::expr::v1alpha1::Type* value); - void unsafe_arena_set_allocated_elem_type(::google::api::expr::v1alpha1::Type* value); - ::google::api::expr::v1alpha1::Type* unsafe_arena_release_elem_type(); - + // repeated .google.api.expr.v1alpha1.Type parameter_types = 2 [json_name = "parameterTypes"]; + int parameter_types_size() const; private: - const ::google::api::expr::v1alpha1::Type& _internal_elem_type() const; - ::google::api::expr::v1alpha1::Type* _internal_mutable_elem_type(); + int _internal_parameter_types_size() const; + public: + void clear_parameter_types(); + ::google::api::expr::v1alpha1::Type* mutable_parameter_types(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Type >* + mutable_parameter_types(); + private: + const ::google::api::expr::v1alpha1::Type& _internal_parameter_types(int index) const; + ::google::api::expr::v1alpha1::Type* _internal_add_parameter_types(); + public: + const ::google::api::expr::v1alpha1::Type& parameter_types(int index) const; + ::google::api::expr::v1alpha1::Type* add_parameter_types(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Type >& + parameter_types() const; + // 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: - // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Type.ListType) + + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Type.AbstractType) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::api::expr::v1alpha1::Type* elem_type_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Type > parameter_types_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Type_MapType final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Type.MapType) */ { +class Type final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Type) */ { public: - inline Type_MapType() : Type_MapType(nullptr) {} - ~Type_MapType() override; - template - explicit PROTOBUF_CONSTEXPR Type_MapType(::google::protobuf::internal::ConstantInitialized); + inline Type() : Type(nullptr) {} + ~Type() override; + explicit PROTOBUF_CONSTEXPR Type(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Type_MapType(const Type_MapType& from) - : Type_MapType(nullptr, from) {} - Type_MapType(Type_MapType&& from) noexcept - : Type_MapType() { + Type(const Type& from); + Type(Type&& from) noexcept + : Type() { *this = ::std::move(from); } - inline Type_MapType& operator=(const Type_MapType& from) { + inline Type& operator=(const Type& from) { CopyFrom(from); return *this; } - inline Type_MapType& operator=(Type_MapType&& from) noexcept { + inline Type& operator=(Type&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1304,410 +1157,475 @@ class Type_MapType final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Type_MapType& default_instance() { + static const Type& default_instance() { return *internal_default_instance(); } - static inline const Type_MapType* internal_default_instance() { - return reinterpret_cast( - &_Type_MapType_default_instance_); + enum TypeKindCase { + kDyn = 1, + kNull = 2, + kPrimitive = 3, + kWrapper = 4, + kWellKnown = 5, + kListType = 6, + kMapType = 7, + kFunction = 8, + kMessageType = 9, + kTypeParam = 10, + kType = 11, + kError = 12, + kAbstractType = 14, + TYPE_KIND_NOT_SET = 0, + }; + + static inline const Type* internal_default_instance() { + return reinterpret_cast( + &_Type_default_instance_); } static constexpr int kIndexInFileMessages = - 4; + 7; - friend void swap(Type_MapType& a, Type_MapType& b) { + friend void swap(Type& a, Type& b) { a.Swap(&b); } - inline void Swap(Type_MapType* other) { + inline void Swap(Type* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Type_MapType* other) { + void UnsafeArenaSwap(Type* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Type_MapType* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Type_MapType& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Type_MapType& from) { - Type_MapType::MergeImpl(*this, from); + Type* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Type& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Type& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Type_MapType* other); + void SetCachedSize(int size) const final; + void InternalSwap(Type* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.expr.v1alpha1.Type.MapType"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.Type"; } protected: - explicit Type_MapType(::google::protobuf::Arena* arena); - Type_MapType(::google::protobuf::Arena* arena, const Type_MapType& from); + explicit Type(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- - // accessors ------------------------------------------------------- - - enum : int { - kKeyTypeFieldNumber = 1, - kValueTypeFieldNumber = 2, - }; - // .google.api.expr.v1alpha1.Type key_type = 1 [json_name = "keyType"]; - bool has_key_type() const; - void clear_key_type() ; - const ::google::api::expr::v1alpha1::Type& key_type() const; - PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Type* release_key_type(); - ::google::api::expr::v1alpha1::Type* mutable_key_type(); - void set_allocated_key_type(::google::api::expr::v1alpha1::Type* value); - void unsafe_arena_set_allocated_key_type(::google::api::expr::v1alpha1::Type* value); - ::google::api::expr::v1alpha1::Type* unsafe_arena_release_key_type(); - - private: - const ::google::api::expr::v1alpha1::Type& _internal_key_type() const; - ::google::api::expr::v1alpha1::Type* _internal_mutable_key_type(); - - public: - // .google.api.expr.v1alpha1.Type value_type = 2 [json_name = "valueType"]; - bool has_value_type() const; - void clear_value_type() ; - const ::google::api::expr::v1alpha1::Type& value_type() const; - PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Type* release_value_type(); - ::google::api::expr::v1alpha1::Type* mutable_value_type(); - void set_allocated_value_type(::google::api::expr::v1alpha1::Type* value); - void unsafe_arena_set_allocated_value_type(::google::api::expr::v1alpha1::Type* value); - ::google::api::expr::v1alpha1::Type* unsafe_arena_release_value_type(); - - private: - const ::google::api::expr::v1alpha1::Type& _internal_value_type() const; - ::google::api::expr::v1alpha1::Type* _internal_mutable_value_type(); - - public: - // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Type.MapType) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 2, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::api::expr::v1alpha1::Type* key_type_; - ::google::api::expr::v1alpha1::Type* value_type_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto; -};// ------------------------------------------------------------------- - -class Reference final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Reference) */ { - public: - inline Reference() : Reference(nullptr) {} - ~Reference() override; - template - explicit PROTOBUF_CONSTEXPR Reference(::google::protobuf::internal::ConstantInitialized); - - inline Reference(const Reference& from) - : Reference(nullptr, from) {} - Reference(Reference&& from) noexcept - : Reference() { - *this = ::std::move(from); - } - - inline Reference& operator=(const Reference& from) { - CopyFrom(from); - return *this; + typedef Type_ListType ListType; + typedef Type_MapType MapType; + typedef Type_FunctionType FunctionType; + typedef Type_AbstractType AbstractType; + + typedef Type_PrimitiveType PrimitiveType; + static constexpr PrimitiveType PRIMITIVE_TYPE_UNSPECIFIED = + Type_PrimitiveType_PRIMITIVE_TYPE_UNSPECIFIED; + static constexpr PrimitiveType BOOL = + Type_PrimitiveType_BOOL; + static constexpr PrimitiveType INT64 = + Type_PrimitiveType_INT64; + static constexpr PrimitiveType UINT64 = + Type_PrimitiveType_UINT64; + static constexpr PrimitiveType DOUBLE = + Type_PrimitiveType_DOUBLE; + static constexpr PrimitiveType STRING = + Type_PrimitiveType_STRING; + static constexpr PrimitiveType BYTES = + Type_PrimitiveType_BYTES; + static inline bool PrimitiveType_IsValid(int value) { + return Type_PrimitiveType_IsValid(value); } - inline Reference& operator=(Reference&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; + static constexpr PrimitiveType PrimitiveType_MIN = + Type_PrimitiveType_PrimitiveType_MIN; + static constexpr PrimitiveType PrimitiveType_MAX = + Type_PrimitiveType_PrimitiveType_MAX; + static constexpr int PrimitiveType_ARRAYSIZE = + Type_PrimitiveType_PrimitiveType_ARRAYSIZE; + static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* + PrimitiveType_descriptor() { + return Type_PrimitiveType_descriptor(); } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + template + static inline const std::string& PrimitiveType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function PrimitiveType_Name."); + return Type_PrimitiveType_Name(enum_t_value); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + static inline bool PrimitiveType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, + PrimitiveType* value) { + return Type_PrimitiveType_Parse(name, value); } - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const Reference& default_instance() { - return *internal_default_instance(); + typedef Type_WellKnownType WellKnownType; + static constexpr WellKnownType WELL_KNOWN_TYPE_UNSPECIFIED = + Type_WellKnownType_WELL_KNOWN_TYPE_UNSPECIFIED; + static constexpr WellKnownType ANY = + Type_WellKnownType_ANY; + static constexpr WellKnownType TIMESTAMP = + Type_WellKnownType_TIMESTAMP; + static constexpr WellKnownType DURATION = + Type_WellKnownType_DURATION; + static inline bool WellKnownType_IsValid(int value) { + return Type_WellKnownType_IsValid(value); } - static inline const Reference* internal_default_instance() { - return reinterpret_cast( - &_Reference_default_instance_); + static constexpr WellKnownType WellKnownType_MIN = + Type_WellKnownType_WellKnownType_MIN; + static constexpr WellKnownType WellKnownType_MAX = + Type_WellKnownType_WellKnownType_MAX; + static constexpr int WellKnownType_ARRAYSIZE = + Type_WellKnownType_WellKnownType_ARRAYSIZE; + static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* + WellKnownType_descriptor() { + return Type_WellKnownType_descriptor(); } - static constexpr int kIndexInFileMessages = - 12; - - friend void swap(Reference& a, Reference& b) { - a.Swap(&b); + template + static inline const std::string& WellKnownType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function WellKnownType_Name."); + return Type_WellKnownType_Name(enum_t_value); } - inline void Swap(Reference* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Reference* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); + static inline bool WellKnownType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, + WellKnownType* value) { + return Type_WellKnownType_Parse(name, value); } - // implements Message ---------------------------------------------- + // accessors ------------------------------------------------------- - Reference* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Reference& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Reference& from) { - Reference::MergeImpl(*this, from); - } + enum : int { + kDynFieldNumber = 1, + kNullFieldNumber = 2, + kPrimitiveFieldNumber = 3, + kWrapperFieldNumber = 4, + kWellKnownFieldNumber = 5, + kListTypeFieldNumber = 6, + kMapTypeFieldNumber = 7, + kFunctionFieldNumber = 8, + kMessageTypeFieldNumber = 9, + kTypeParamFieldNumber = 10, + kTypeFieldNumber = 11, + kErrorFieldNumber = 12, + kAbstractTypeFieldNumber = 14, + }; + // .google.protobuf.Empty dyn = 1 [json_name = "dyn"]; + bool has_dyn() const; private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + bool _internal_has_dyn() const; public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - + void clear_dyn(); + const ::PROTOBUF_NAMESPACE_ID::Empty& dyn() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Empty* release_dyn(); + ::PROTOBUF_NAMESPACE_ID::Empty* mutable_dyn(); + void set_allocated_dyn(::PROTOBUF_NAMESPACE_ID::Empty* dyn); private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(Reference* other); + const ::PROTOBUF_NAMESPACE_ID::Empty& _internal_dyn() const; + ::PROTOBUF_NAMESPACE_ID::Empty* _internal_mutable_dyn(); + public: + void unsafe_arena_set_allocated_dyn( + ::PROTOBUF_NAMESPACE_ID::Empty* dyn); + ::PROTOBUF_NAMESPACE_ID::Empty* unsafe_arena_release_dyn(); + // .google.protobuf.NullValue null = 2 [json_name = "null"]; + bool has_null() const; private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.expr.v1alpha1.Reference"; - } - protected: - explicit Reference(::google::protobuf::Arena* arena); - Reference(::google::protobuf::Arena* arena, const Reference& from); + bool _internal_has_null() const; + public: + void clear_null(); + ::PROTOBUF_NAMESPACE_ID::NullValue null() const; + void set_null(::PROTOBUF_NAMESPACE_ID::NullValue value); + private: + ::PROTOBUF_NAMESPACE_ID::NullValue _internal_null() const; + void _internal_set_null(::PROTOBUF_NAMESPACE_ID::NullValue value); public: - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + // .google.api.expr.v1alpha1.Type.PrimitiveType primitive = 3 [json_name = "primitive"]; + bool has_primitive() const; + private: + bool _internal_has_primitive() const; + public: + void clear_primitive(); + ::google::api::expr::v1alpha1::Type_PrimitiveType primitive() const; + void set_primitive(::google::api::expr::v1alpha1::Type_PrimitiveType value); + private: + ::google::api::expr::v1alpha1::Type_PrimitiveType _internal_primitive() const; + void _internal_set_primitive(::google::api::expr::v1alpha1::Type_PrimitiveType value); + public: - // nested types ---------------------------------------------------- + // .google.api.expr.v1alpha1.Type.PrimitiveType wrapper = 4 [json_name = "wrapper"]; + bool has_wrapper() const; + private: + bool _internal_has_wrapper() const; + public: + void clear_wrapper(); + ::google::api::expr::v1alpha1::Type_PrimitiveType wrapper() const; + void set_wrapper(::google::api::expr::v1alpha1::Type_PrimitiveType value); + private: + ::google::api::expr::v1alpha1::Type_PrimitiveType _internal_wrapper() const; + void _internal_set_wrapper(::google::api::expr::v1alpha1::Type_PrimitiveType value); + public: - // accessors ------------------------------------------------------- + // .google.api.expr.v1alpha1.Type.WellKnownType well_known = 5 [json_name = "wellKnown"]; + bool has_well_known() const; + private: + bool _internal_has_well_known() const; + public: + void clear_well_known(); + ::google::api::expr::v1alpha1::Type_WellKnownType well_known() const; + void set_well_known(::google::api::expr::v1alpha1::Type_WellKnownType value); + private: + ::google::api::expr::v1alpha1::Type_WellKnownType _internal_well_known() const; + void _internal_set_well_known(::google::api::expr::v1alpha1::Type_WellKnownType value); + public: - enum : int { - kOverloadIdFieldNumber = 3, - kNameFieldNumber = 1, - kValueFieldNumber = 4, - }; - // repeated string overload_id = 3 [json_name = "overloadId"]; - int overload_id_size() const; + // .google.api.expr.v1alpha1.Type.ListType list_type = 6 [json_name = "listType"]; + bool has_list_type() const; private: - int _internal_overload_id_size() const; + bool _internal_has_list_type() const; + public: + void clear_list_type(); + const ::google::api::expr::v1alpha1::Type_ListType& list_type() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Type_ListType* release_list_type(); + ::google::api::expr::v1alpha1::Type_ListType* mutable_list_type(); + void set_allocated_list_type(::google::api::expr::v1alpha1::Type_ListType* list_type); + private: + const ::google::api::expr::v1alpha1::Type_ListType& _internal_list_type() const; + ::google::api::expr::v1alpha1::Type_ListType* _internal_mutable_list_type(); + public: + void unsafe_arena_set_allocated_list_type( + ::google::api::expr::v1alpha1::Type_ListType* list_type); + ::google::api::expr::v1alpha1::Type_ListType* unsafe_arena_release_list_type(); + // .google.api.expr.v1alpha1.Type.MapType map_type = 7 [json_name = "mapType"]; + bool has_map_type() const; + private: + bool _internal_has_map_type() const; public: - void clear_overload_id() ; - const std::string& overload_id(int index) const; - std::string* mutable_overload_id(int index); - void set_overload_id(int index, const std::string& value); - void set_overload_id(int index, std::string&& value); - void set_overload_id(int index, const char* value); - void set_overload_id(int index, const char* value, std::size_t size); - void set_overload_id(int index, absl::string_view value); - std::string* add_overload_id(); - void add_overload_id(const std::string& value); - void add_overload_id(std::string&& value); - void add_overload_id(const char* value); - void add_overload_id(const char* value, std::size_t size); - void add_overload_id(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& overload_id() const; - ::google::protobuf::RepeatedPtrField* mutable_overload_id(); + void clear_map_type(); + const ::google::api::expr::v1alpha1::Type_MapType& map_type() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Type_MapType* release_map_type(); + ::google::api::expr::v1alpha1::Type_MapType* mutable_map_type(); + void set_allocated_map_type(::google::api::expr::v1alpha1::Type_MapType* map_type); + private: + const ::google::api::expr::v1alpha1::Type_MapType& _internal_map_type() const; + ::google::api::expr::v1alpha1::Type_MapType* _internal_mutable_map_type(); + public: + void unsafe_arena_set_allocated_map_type( + ::google::api::expr::v1alpha1::Type_MapType* map_type); + ::google::api::expr::v1alpha1::Type_MapType* unsafe_arena_release_map_type(); + // .google.api.expr.v1alpha1.Type.FunctionType function = 8 [json_name = "function"]; + bool has_function() const; + private: + bool _internal_has_function() const; + public: + void clear_function(); + const ::google::api::expr::v1alpha1::Type_FunctionType& function() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Type_FunctionType* release_function(); + ::google::api::expr::v1alpha1::Type_FunctionType* mutable_function(); + void set_allocated_function(::google::api::expr::v1alpha1::Type_FunctionType* function); private: - const ::google::protobuf::RepeatedPtrField& _internal_overload_id() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_overload_id(); + const ::google::api::expr::v1alpha1::Type_FunctionType& _internal_function() const; + ::google::api::expr::v1alpha1::Type_FunctionType* _internal_mutable_function(); + public: + void unsafe_arena_set_allocated_function( + ::google::api::expr::v1alpha1::Type_FunctionType* function); + ::google::api::expr::v1alpha1::Type_FunctionType* unsafe_arena_release_function(); + // string message_type = 9 [json_name = "messageType"]; + bool has_message_type() const; + private: + bool _internal_has_message_type() const; + public: + void clear_message_type(); + const std::string& message_type() const; + template + void set_message_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_message_type(); + PROTOBUF_NODISCARD std::string* release_message_type(); + void set_allocated_message_type(std::string* message_type); + private: + const std::string& _internal_message_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_message_type(const std::string& value); + std::string* _internal_mutable_message_type(); public: - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); + // string type_param = 10 [json_name = "typeParam"]; + bool has_type_param() const; private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); + bool _internal_has_type_param() const; + public: + void clear_type_param(); + const std::string& type_param() const; + template + void set_type_param(ArgT0&& arg0, ArgT... args); + std::string* mutable_type_param(); + PROTOBUF_NODISCARD std::string* release_type_param(); + void set_allocated_type_param(std::string* type_param); + private: + const std::string& _internal_type_param() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_type_param(const std::string& value); + std::string* _internal_mutable_type_param(); + public: + // .google.api.expr.v1alpha1.Type type = 11 [json_name = "type"]; + bool has_type() const; + private: + bool _internal_has_type() const; public: - // .google.api.expr.v1alpha1.Constant value = 4 [json_name = "value"]; - bool has_value() const; - void clear_value() ; - const ::google::api::expr::v1alpha1::Constant& value() const; - PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Constant* release_value(); - ::google::api::expr::v1alpha1::Constant* mutable_value(); - void set_allocated_value(::google::api::expr::v1alpha1::Constant* value); - void unsafe_arena_set_allocated_value(::google::api::expr::v1alpha1::Constant* value); - ::google::api::expr::v1alpha1::Constant* unsafe_arena_release_value(); + void clear_type(); + const ::google::api::expr::v1alpha1::Type& type() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Type* release_type(); + ::google::api::expr::v1alpha1::Type* mutable_type(); + void set_allocated_type(::google::api::expr::v1alpha1::Type* type); + private: + const ::google::api::expr::v1alpha1::Type& _internal_type() const; + ::google::api::expr::v1alpha1::Type* _internal_mutable_type(); + public: + void unsafe_arena_set_allocated_type( + ::google::api::expr::v1alpha1::Type* type); + ::google::api::expr::v1alpha1::Type* unsafe_arena_release_type(); + // .google.protobuf.Empty error = 12 [json_name = "error"]; + bool has_error() const; private: - const ::google::api::expr::v1alpha1::Constant& _internal_value() const; - ::google::api::expr::v1alpha1::Constant* _internal_mutable_value(); + bool _internal_has_error() const; + public: + void clear_error(); + const ::PROTOBUF_NAMESPACE_ID::Empty& error() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Empty* release_error(); + ::PROTOBUF_NAMESPACE_ID::Empty* mutable_error(); + void set_allocated_error(::PROTOBUF_NAMESPACE_ID::Empty* error); + private: + const ::PROTOBUF_NAMESPACE_ID::Empty& _internal_error() const; + ::PROTOBUF_NAMESPACE_ID::Empty* _internal_mutable_error(); + public: + void unsafe_arena_set_allocated_error( + ::PROTOBUF_NAMESPACE_ID::Empty* error); + ::PROTOBUF_NAMESPACE_ID::Empty* unsafe_arena_release_error(); + // .google.api.expr.v1alpha1.Type.AbstractType abstract_type = 14 [json_name = "abstractType"]; + bool has_abstract_type() const; + private: + bool _internal_has_abstract_type() const; public: - // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Reference) + void clear_abstract_type(); + const ::google::api::expr::v1alpha1::Type_AbstractType& abstract_type() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Type_AbstractType* release_abstract_type(); + ::google::api::expr::v1alpha1::Type_AbstractType* mutable_abstract_type(); + void set_allocated_abstract_type(::google::api::expr::v1alpha1::Type_AbstractType* abstract_type); + private: + const ::google::api::expr::v1alpha1::Type_AbstractType& _internal_abstract_type() const; + ::google::api::expr::v1alpha1::Type_AbstractType* _internal_mutable_abstract_type(); + public: + void unsafe_arena_set_allocated_abstract_type( + ::google::api::expr::v1alpha1::Type_AbstractType* abstract_type); + ::google::api::expr::v1alpha1::Type_AbstractType* unsafe_arena_release_abstract_type(); + + void clear_type_kind(); + TypeKindCase type_kind_case() const; + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Type) private: class _Internal; + void set_has_dyn(); + void set_has_null(); + void set_has_primitive(); + void set_has_wrapper(); + void set_has_well_known(); + void set_has_list_type(); + void set_has_map_type(); + void set_has_function(); + void set_has_message_type(); + void set_has_type_param(); + void set_has_type(); + void set_has_error(); + void set_has_abstract_type(); + + inline bool has_type_kind() const; + inline void clear_has_type_kind(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + union TypeKindUnion { + constexpr TypeKindUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::PROTOBUF_NAMESPACE_ID::Empty* dyn_; + int null_; + int primitive_; + int wrapper_; + int well_known_; + ::google::api::expr::v1alpha1::Type_ListType* list_type_; + ::google::api::expr::v1alpha1::Type_MapType* map_type_; + ::google::api::expr::v1alpha1::Type_FunctionType* function_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_type_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_param_; + ::google::api::expr::v1alpha1::Type* type_; + ::PROTOBUF_NAMESPACE_ID::Empty* error_; + ::google::api::expr::v1alpha1::Type_AbstractType* abstract_type_; + } type_kind_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 1, - 58, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField overload_id_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::api::expr::v1alpha1::Constant* value_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class Decl_IdentDecl final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Decl.IdentDecl) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Decl.IdentDecl) */ { public: inline Decl_IdentDecl() : Decl_IdentDecl(nullptr) {} ~Decl_IdentDecl() override; - template - explicit PROTOBUF_CONSTEXPR Decl_IdentDecl(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR Decl_IdentDecl(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Decl_IdentDecl(const Decl_IdentDecl& from) - : Decl_IdentDecl(nullptr, from) {} + Decl_IdentDecl(const Decl_IdentDecl& from); Decl_IdentDecl(Decl_IdentDecl&& from) noexcept : Decl_IdentDecl() { *this = ::std::move(from); @@ -1719,9 +1637,9 @@ class Decl_IdentDecl final : } inline Decl_IdentDecl& operator=(Decl_IdentDecl&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1731,22 +1649,13 @@ class Decl_IdentDecl final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const Decl_IdentDecl& default_instance() { @@ -1765,65 +1674,63 @@ class Decl_IdentDecl final : inline void Swap(Decl_IdentDecl* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(Decl_IdentDecl* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Decl_IdentDecl* New(::google::protobuf::Arena* arena = nullptr) const final { + Decl_IdentDecl* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const Decl_IdentDecl& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Decl_IdentDecl& from) { - Decl_IdentDecl::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Decl_IdentDecl& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(Decl_IdentDecl* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "google.api.expr.v1alpha1.Decl.IdentDecl"; } protected: - explicit Decl_IdentDecl(::google::protobuf::Arena* arena); - Decl_IdentDecl(::google::protobuf::Arena* arena, const Decl_IdentDecl& from); + explicit Decl_IdentDecl(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1835,95 +1742,78 @@ class Decl_IdentDecl final : kValueFieldNumber = 2, }; // string doc = 3 [json_name = "doc"]; - void clear_doc() ; + void clear_doc(); const std::string& doc() const; - template - void set_doc(Arg_&& arg, Args_... args); + template + void set_doc(ArgT0&& arg0, ArgT... args); std::string* mutable_doc(); PROTOBUF_NODISCARD std::string* release_doc(); - void set_allocated_doc(std::string* value); - + void set_allocated_doc(std::string* doc); private: const std::string& _internal_doc() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_doc( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_doc(const std::string& value); std::string* _internal_mutable_doc(); - public: + // .google.api.expr.v1alpha1.Type type = 1 [json_name = "type"]; bool has_type() const; - void clear_type() ; + private: + bool _internal_has_type() const; + public: + void clear_type(); const ::google::api::expr::v1alpha1::Type& type() const; PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Type* release_type(); ::google::api::expr::v1alpha1::Type* mutable_type(); - void set_allocated_type(::google::api::expr::v1alpha1::Type* value); - void unsafe_arena_set_allocated_type(::google::api::expr::v1alpha1::Type* value); - ::google::api::expr::v1alpha1::Type* unsafe_arena_release_type(); - + void set_allocated_type(::google::api::expr::v1alpha1::Type* type); private: const ::google::api::expr::v1alpha1::Type& _internal_type() const; ::google::api::expr::v1alpha1::Type* _internal_mutable_type(); - public: + void unsafe_arena_set_allocated_type( + ::google::api::expr::v1alpha1::Type* type); + ::google::api::expr::v1alpha1::Type* unsafe_arena_release_type(); + // .google.api.expr.v1alpha1.Constant value = 2 [json_name = "value"]; bool has_value() const; - void clear_value() ; + private: + bool _internal_has_value() const; + public: + void clear_value(); const ::google::api::expr::v1alpha1::Constant& value() const; PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Constant* release_value(); ::google::api::expr::v1alpha1::Constant* mutable_value(); void set_allocated_value(::google::api::expr::v1alpha1::Constant* value); - void unsafe_arena_set_allocated_value(::google::api::expr::v1alpha1::Constant* value); - ::google::api::expr::v1alpha1::Constant* unsafe_arena_release_value(); - private: const ::google::api::expr::v1alpha1::Constant& _internal_value() const; ::google::api::expr::v1alpha1::Constant* _internal_mutable_value(); + public: + void unsafe_arena_set_allocated_value( + ::google::api::expr::v1alpha1::Constant* value); + ::google::api::expr::v1alpha1::Constant* unsafe_arena_release_value(); - public: // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Decl.IdentDecl) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 2, - 51, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr doc_; - ::google::api::expr::v1alpha1::Type* type_; - ::google::api::expr::v1alpha1::Constant* value_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr doc_; + ::google::api::expr::v1alpha1::Type* type_; + ::google::api::expr::v1alpha1::Constant* value_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class Decl_FunctionDecl_Overload final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload) */ { public: inline Decl_FunctionDecl_Overload() : Decl_FunctionDecl_Overload(nullptr) {} ~Decl_FunctionDecl_Overload() override; - template - explicit PROTOBUF_CONSTEXPR Decl_FunctionDecl_Overload(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR Decl_FunctionDecl_Overload(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Decl_FunctionDecl_Overload(const Decl_FunctionDecl_Overload& from) - : Decl_FunctionDecl_Overload(nullptr, from) {} + Decl_FunctionDecl_Overload(const Decl_FunctionDecl_Overload& from); Decl_FunctionDecl_Overload(Decl_FunctionDecl_Overload&& from) noexcept : Decl_FunctionDecl_Overload() { *this = ::std::move(from); @@ -1935,9 +1825,9 @@ class Decl_FunctionDecl_Overload final : } inline Decl_FunctionDecl_Overload& operator=(Decl_FunctionDecl_Overload&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1947,22 +1837,13 @@ class Decl_FunctionDecl_Overload final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const Decl_FunctionDecl_Overload& default_instance() { @@ -1981,65 +1862,63 @@ class Decl_FunctionDecl_Overload final : inline void Swap(Decl_FunctionDecl_Overload* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(Decl_FunctionDecl_Overload* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Decl_FunctionDecl_Overload* New(::google::protobuf::Arena* arena = nullptr) const final { + Decl_FunctionDecl_Overload* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const Decl_FunctionDecl_Overload& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Decl_FunctionDecl_Overload& from) { - Decl_FunctionDecl_Overload::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Decl_FunctionDecl_Overload& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(Decl_FunctionDecl_Overload* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "google.api.expr.v1alpha1.Decl.FunctionDecl.Overload"; } protected: - explicit Decl_FunctionDecl_Overload(::google::protobuf::Arena* arena); - Decl_FunctionDecl_Overload(::google::protobuf::Arena* arena, const Decl_FunctionDecl_Overload& from); + explicit Decl_FunctionDecl_Overload(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -2057,178 +1936,125 @@ class Decl_FunctionDecl_Overload final : int params_size() const; private: int _internal_params_size() const; - public: - void clear_params() ; + void clear_params(); ::google::api::expr::v1alpha1::Type* mutable_params(int index); - ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1alpha1::Type >* + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Type >* mutable_params(); private: - const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Type>& _internal_params() const; - ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Type>* _internal_mutable_params(); + const ::google::api::expr::v1alpha1::Type& _internal_params(int index) const; + ::google::api::expr::v1alpha1::Type* _internal_add_params(); public: const ::google::api::expr::v1alpha1::Type& params(int index) const; ::google::api::expr::v1alpha1::Type* add_params(); - const ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1alpha1::Type >& + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Type >& params() const; + // repeated string type_params = 3 [json_name = "typeParams"]; int type_params_size() const; private: int _internal_type_params_size() const; - public: - void clear_type_params() ; + void clear_type_params(); const std::string& type_params(int index) const; std::string* mutable_type_params(int index); void set_type_params(int index, const std::string& value); void set_type_params(int index, std::string&& value); void set_type_params(int index, const char* value); - void set_type_params(int index, const char* value, std::size_t size); - void set_type_params(int index, absl::string_view value); + void set_type_params(int index, const char* value, size_t size); std::string* add_type_params(); void add_type_params(const std::string& value); void add_type_params(std::string&& value); void add_type_params(const char* value); - void add_type_params(const char* value, std::size_t size); - void add_type_params(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& type_params() const; - ::google::protobuf::RepeatedPtrField* mutable_type_params(); - + void add_type_params(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& type_params() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_type_params(); private: - const ::google::protobuf::RepeatedPtrField& _internal_type_params() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_type_params(); - + const std::string& _internal_type_params(int index) const; + std::string* _internal_add_type_params(); public: + // string overload_id = 1 [json_name = "overloadId"]; - void clear_overload_id() ; + void clear_overload_id(); const std::string& overload_id() const; - template - void set_overload_id(Arg_&& arg, Args_... args); + template + void set_overload_id(ArgT0&& arg0, ArgT... args); std::string* mutable_overload_id(); PROTOBUF_NODISCARD std::string* release_overload_id(); - void set_allocated_overload_id(std::string* value); - + void set_allocated_overload_id(std::string* overload_id); private: const std::string& _internal_overload_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_overload_id( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_overload_id(const std::string& value); std::string* _internal_mutable_overload_id(); - public: + // string doc = 6 [json_name = "doc"]; - void clear_doc() ; + void clear_doc(); const std::string& doc() const; - template - void set_doc(Arg_&& arg, Args_... args); + template + void set_doc(ArgT0&& arg0, ArgT... args); std::string* mutable_doc(); PROTOBUF_NODISCARD std::string* release_doc(); - void set_allocated_doc(std::string* value); - + void set_allocated_doc(std::string* doc); private: const std::string& _internal_doc() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_doc( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_doc(const std::string& value); std::string* _internal_mutable_doc(); - public: + // .google.api.expr.v1alpha1.Type result_type = 4 [json_name = "resultType"]; bool has_result_type() const; - void clear_result_type() ; + private: + bool _internal_has_result_type() const; + public: + void clear_result_type(); const ::google::api::expr::v1alpha1::Type& result_type() const; PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Type* release_result_type(); ::google::api::expr::v1alpha1::Type* mutable_result_type(); - void set_allocated_result_type(::google::api::expr::v1alpha1::Type* value); - void unsafe_arena_set_allocated_result_type(::google::api::expr::v1alpha1::Type* value); - ::google::api::expr::v1alpha1::Type* unsafe_arena_release_result_type(); - + void set_allocated_result_type(::google::api::expr::v1alpha1::Type* result_type); private: const ::google::api::expr::v1alpha1::Type& _internal_result_type() const; ::google::api::expr::v1alpha1::Type* _internal_mutable_result_type(); - public: + void unsafe_arena_set_allocated_result_type( + ::google::api::expr::v1alpha1::Type* result_type); + ::google::api::expr::v1alpha1::Type* unsafe_arena_release_result_type(); + // bool is_instance_function = 5 [json_name = "isInstanceFunction"]; - void clear_is_instance_function() ; + void clear_is_instance_function(); bool is_instance_function() const; void set_is_instance_function(bool value); - private: bool _internal_is_instance_function() const; void _internal_set_is_instance_function(bool value); - public: + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 6, 2, - 85, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1alpha1::Type > params_; - ::google::protobuf::RepeatedPtrField type_params_; - ::google::protobuf::internal::ArenaStringPtr overload_id_; - ::google::protobuf::internal::ArenaStringPtr doc_; - ::google::api::expr::v1alpha1::Type* result_type_; - bool is_instance_function_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto; -};// ------------------------------------------------------------------- - -class CheckedExpr_TypeMapEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry< - CheckedExpr_TypeMapEntry_DoNotUse, ::int64_t, ::google::api::expr::v1alpha1::Type, - ::google::protobuf::internal::WireFormatLite::TYPE_INT64, - ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE> { - public: - using SuperType = ::google::protobuf::internal::MapEntry< - CheckedExpr_TypeMapEntry_DoNotUse, ::int64_t, ::google::api::expr::v1alpha1::Type, - ::google::protobuf::internal::WireFormatLite::TYPE_INT64, - ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>; - CheckedExpr_TypeMapEntry_DoNotUse(); - template - explicit PROTOBUF_CONSTEXPR CheckedExpr_TypeMapEntry_DoNotUse( - ::google::protobuf::internal::ConstantInitialized); - explicit CheckedExpr_TypeMapEntry_DoNotUse(::google::protobuf::Arena* arena); - static const CheckedExpr_TypeMapEntry_DoNotUse* internal_default_instance() { - return reinterpret_cast( - &_CheckedExpr_TypeMapEntry_DoNotUse_default_instance_); - } - static bool ValidateKey(void*) { return true; } - static bool ValidateValue(void*) { return true; } - ::google::protobuf::Metadata GetMetadata() const final; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Type > params_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField type_params_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr overload_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr doc_; + ::google::api::expr::v1alpha1::Type* result_type_; + bool is_instance_function_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto; }; // ------------------------------------------------------------------- class Decl_FunctionDecl final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Decl.FunctionDecl) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Decl.FunctionDecl) */ { public: inline Decl_FunctionDecl() : Decl_FunctionDecl(nullptr) {} ~Decl_FunctionDecl() override; - template - explicit PROTOBUF_CONSTEXPR Decl_FunctionDecl(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR Decl_FunctionDecl(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Decl_FunctionDecl(const Decl_FunctionDecl& from) - : Decl_FunctionDecl(nullptr, from) {} + Decl_FunctionDecl(const Decl_FunctionDecl& from); Decl_FunctionDecl(Decl_FunctionDecl&& from) noexcept : Decl_FunctionDecl() { *this = ::std::move(from); @@ -2240,9 +2066,9 @@ class Decl_FunctionDecl final : } inline Decl_FunctionDecl& operator=(Decl_FunctionDecl&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2252,22 +2078,13 @@ class Decl_FunctionDecl final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const Decl_FunctionDecl& default_instance() { @@ -2286,69 +2103,67 @@ class Decl_FunctionDecl final : inline void Swap(Decl_FunctionDecl* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(Decl_FunctionDecl* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Decl_FunctionDecl* New(::google::protobuf::Arena* arena = nullptr) const final { + Decl_FunctionDecl* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const Decl_FunctionDecl& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Decl_FunctionDecl& from) { - Decl_FunctionDecl::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Decl_FunctionDecl& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(Decl_FunctionDecl* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "google.api.expr.v1alpha1.Decl.FunctionDecl"; } protected: - explicit Decl_FunctionDecl(::google::protobuf::Arena* arena); - Decl_FunctionDecl(::google::protobuf::Arena* arena, const Decl_FunctionDecl& from); + explicit Decl_FunctionDecl(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- - using Overload = Decl_FunctionDecl_Overload; + typedef Decl_FunctionDecl_Overload Overload; // accessors ------------------------------------------------------- @@ -2359,87 +2174,41 @@ class Decl_FunctionDecl final : int overloads_size() const; private: int _internal_overloads_size() const; - public: - void clear_overloads() ; + void clear_overloads(); ::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload* mutable_overloads(int index); - ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload >* + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload >* mutable_overloads(); private: - const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload>& _internal_overloads() const; - ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload>* _internal_mutable_overloads(); + const ::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload& _internal_overloads(int index) const; + ::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload* _internal_add_overloads(); public: const ::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload& overloads(int index) const; ::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload* add_overloads(); - const ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload >& + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload >& overloads() const; + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Decl.FunctionDecl) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload > overloads_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto; -};// ------------------------------------------------------------------- - -class CheckedExpr_ReferenceMapEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry< - CheckedExpr_ReferenceMapEntry_DoNotUse, ::int64_t, ::google::api::expr::v1alpha1::Reference, - ::google::protobuf::internal::WireFormatLite::TYPE_INT64, - ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE> { - public: - using SuperType = ::google::protobuf::internal::MapEntry< - CheckedExpr_ReferenceMapEntry_DoNotUse, ::int64_t, ::google::api::expr::v1alpha1::Reference, - ::google::protobuf::internal::WireFormatLite::TYPE_INT64, - ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>; - CheckedExpr_ReferenceMapEntry_DoNotUse(); - template - explicit PROTOBUF_CONSTEXPR CheckedExpr_ReferenceMapEntry_DoNotUse( - ::google::protobuf::internal::ConstantInitialized); - explicit CheckedExpr_ReferenceMapEntry_DoNotUse(::google::protobuf::Arena* arena); - static const CheckedExpr_ReferenceMapEntry_DoNotUse* internal_default_instance() { - return reinterpret_cast( - &_CheckedExpr_ReferenceMapEntry_DoNotUse_default_instance_); - } - static bool ValidateKey(void*) { return true; } - static bool ValidateValue(void*) { return true; } - ::google::protobuf::Metadata GetMetadata() const final; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload > overloads_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto; }; // ------------------------------------------------------------------- class Decl final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Decl) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Decl) */ { public: inline Decl() : Decl(nullptr) {} ~Decl() override; - template - explicit PROTOBUF_CONSTEXPR Decl(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR Decl(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Decl(const Decl& from) - : Decl(nullptr, from) {} + Decl(const Decl& from); Decl(Decl&& from) noexcept : Decl() { *this = ::std::move(from); @@ -2451,9 +2220,9 @@ class Decl final : } inline Decl& operator=(Decl&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2463,22 +2232,13 @@ class Decl final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const Decl& default_instance() { @@ -2503,70 +2263,68 @@ class Decl final : inline void Swap(Decl* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(Decl* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Decl* New(::google::protobuf::Arena* arena = nullptr) const final { + Decl* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const Decl& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Decl& from) { - Decl::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Decl& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(Decl* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "google.api.expr.v1alpha1.Decl"; } protected: - explicit Decl(::google::protobuf::Arena* arena); - Decl(::google::protobuf::Arena* arena, const Decl& from); + explicit Decl(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- - using IdentDecl = Decl_IdentDecl; - using FunctionDecl = Decl_FunctionDecl; + typedef Decl_IdentDecl IdentDecl; + typedef Decl_FunctionDecl FunctionDecl; // accessors ------------------------------------------------------- @@ -2576,59 +2334,55 @@ class Decl final : kFunctionFieldNumber = 3, }; // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); std::string* _internal_mutable_name(); - public: + // .google.api.expr.v1alpha1.Decl.IdentDecl ident = 2 [json_name = "ident"]; bool has_ident() const; private: bool _internal_has_ident() const; - public: - void clear_ident() ; + void clear_ident(); const ::google::api::expr::v1alpha1::Decl_IdentDecl& ident() const; PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Decl_IdentDecl* release_ident(); ::google::api::expr::v1alpha1::Decl_IdentDecl* mutable_ident(); - void set_allocated_ident(::google::api::expr::v1alpha1::Decl_IdentDecl* value); - void unsafe_arena_set_allocated_ident(::google::api::expr::v1alpha1::Decl_IdentDecl* value); - ::google::api::expr::v1alpha1::Decl_IdentDecl* unsafe_arena_release_ident(); - + void set_allocated_ident(::google::api::expr::v1alpha1::Decl_IdentDecl* ident); private: const ::google::api::expr::v1alpha1::Decl_IdentDecl& _internal_ident() const; ::google::api::expr::v1alpha1::Decl_IdentDecl* _internal_mutable_ident(); - public: + void unsafe_arena_set_allocated_ident( + ::google::api::expr::v1alpha1::Decl_IdentDecl* ident); + ::google::api::expr::v1alpha1::Decl_IdentDecl* unsafe_arena_release_ident(); + // .google.api.expr.v1alpha1.Decl.FunctionDecl function = 3 [json_name = "function"]; bool has_function() const; private: bool _internal_has_function() const; - public: - void clear_function() ; + void clear_function(); const ::google::api::expr::v1alpha1::Decl_FunctionDecl& function() const; PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Decl_FunctionDecl* release_function(); ::google::api::expr::v1alpha1::Decl_FunctionDecl* mutable_function(); - void set_allocated_function(::google::api::expr::v1alpha1::Decl_FunctionDecl* value); - void unsafe_arena_set_allocated_function(::google::api::expr::v1alpha1::Decl_FunctionDecl* value); - ::google::api::expr::v1alpha1::Decl_FunctionDecl* unsafe_arena_release_function(); - + void set_allocated_function(::google::api::expr::v1alpha1::Decl_FunctionDecl* function); private: const ::google::api::expr::v1alpha1::Decl_FunctionDecl& _internal_function() const; ::google::api::expr::v1alpha1::Decl_FunctionDecl* _internal_mutable_function(); - public: + void unsafe_arena_set_allocated_function( + ::google::api::expr::v1alpha1::Decl_FunctionDecl* function); + ::google::api::expr::v1alpha1::Decl_FunctionDecl* unsafe_arena_release_function(); + void clear_decl_kind(); DeclKindCase decl_kind_case() const; // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Decl) @@ -2640,65 +2394,45 @@ class Decl final : inline bool has_decl_kind() const; inline void clear_has_decl_kind(); - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 3, 2, - 42, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr name_; - union DeclKindUnion { - constexpr DeclKindUnion() : _constinit_{} {} - ::google::protobuf::internal::ConstantInitialized _constinit_; - ::google::api::expr::v1alpha1::Decl_IdentDecl* ident_; - ::google::api::expr::v1alpha1::Decl_FunctionDecl* function_; - } decl_kind_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t _oneof_case_[1]; - - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + union DeclKindUnion { + constexpr DeclKindUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::google::api::expr::v1alpha1::Decl_IdentDecl* ident_; + ::google::api::expr::v1alpha1::Decl_FunctionDecl* function_; + } decl_kind_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class CheckedExpr final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.CheckedExpr) */ { +class Reference final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Reference) */ { public: - inline CheckedExpr() : CheckedExpr(nullptr) {} - ~CheckedExpr() override; - template - explicit PROTOBUF_CONSTEXPR CheckedExpr(::google::protobuf::internal::ConstantInitialized); + inline Reference() : Reference(nullptr) {} + ~Reference() override; + explicit PROTOBUF_CONSTEXPR Reference(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline CheckedExpr(const CheckedExpr& from) - : CheckedExpr(nullptr, from) {} - CheckedExpr(CheckedExpr&& from) noexcept - : CheckedExpr() { + Reference(const Reference& from); + Reference(Reference&& from) noexcept + : Reference() { *this = ::std::move(from); } - inline CheckedExpr& operator=(const CheckedExpr& from) { + inline Reference& operator=(const Reference& from) { CopyFrom(from); return *this; } - inline CheckedExpr& operator=(CheckedExpr&& from) noexcept { + inline Reference& operator=(Reference&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2708,538 +2442,457 @@ class CheckedExpr final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CheckedExpr& default_instance() { + static const Reference& default_instance() { return *internal_default_instance(); } - static inline const CheckedExpr* internal_default_instance() { - return reinterpret_cast( - &_CheckedExpr_default_instance_); + static inline const Reference* internal_default_instance() { + return reinterpret_cast( + &_Reference_default_instance_); } static constexpr int kIndexInFileMessages = - 2; + 12; - friend void swap(CheckedExpr& a, CheckedExpr& b) { + friend void swap(Reference& a, Reference& b) { a.Swap(&b); } - inline void Swap(CheckedExpr* other) { + inline void Swap(Reference* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CheckedExpr* other) { + void UnsafeArenaSwap(Reference* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CheckedExpr* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const CheckedExpr& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CheckedExpr& from) { - CheckedExpr::MergeImpl(*this, from); + Reference* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Reference& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Reference& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(CheckedExpr* other); + void SetCachedSize(int size) const final; + void InternalSwap(Reference* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.expr.v1alpha1.CheckedExpr"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.Reference"; } protected: - explicit CheckedExpr(::google::protobuf::Arena* arena); - CheckedExpr(::google::protobuf::Arena* arena, const CheckedExpr& from); + explicit Reference(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- - // accessors ------------------------------------------------------- enum : int { - kReferenceMapFieldNumber = 2, - kTypeMapFieldNumber = 3, - kExprVersionFieldNumber = 6, - kExprFieldNumber = 4, - kSourceInfoFieldNumber = 5, + kOverloadIdFieldNumber = 3, + kNameFieldNumber = 1, + kValueFieldNumber = 4, }; - // map reference_map = 2 [json_name = "referenceMap"]; - int reference_map_size() const; - private: - int _internal_reference_map_size() const; - - public: - void clear_reference_map() ; - const ::google::protobuf::Map<::int64_t, ::google::api::expr::v1alpha1::Reference>& reference_map() const; - ::google::protobuf::Map<::int64_t, ::google::api::expr::v1alpha1::Reference>* mutable_reference_map(); - + // repeated string overload_id = 3 [json_name = "overloadId"]; + int overload_id_size() const; private: - const ::google::protobuf::Map<::int64_t, ::google::api::expr::v1alpha1::Reference>& _internal_reference_map() const; - ::google::protobuf::Map<::int64_t, ::google::api::expr::v1alpha1::Reference>* _internal_mutable_reference_map(); - + int _internal_overload_id_size() const; public: - // map type_map = 3 [json_name = "typeMap"]; - int type_map_size() const; + void clear_overload_id(); + const std::string& overload_id(int index) const; + std::string* mutable_overload_id(int index); + void set_overload_id(int index, const std::string& value); + void set_overload_id(int index, std::string&& value); + void set_overload_id(int index, const char* value); + void set_overload_id(int index, const char* value, size_t size); + std::string* add_overload_id(); + void add_overload_id(const std::string& value); + void add_overload_id(std::string&& value); + void add_overload_id(const char* value); + void add_overload_id(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& overload_id() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_overload_id(); private: - int _internal_type_map_size() const; - + const std::string& _internal_overload_id(int index) const; + std::string* _internal_add_overload_id(); public: - void clear_type_map() ; - const ::google::protobuf::Map<::int64_t, ::google::api::expr::v1alpha1::Type>& type_map() const; - ::google::protobuf::Map<::int64_t, ::google::api::expr::v1alpha1::Type>* mutable_type_map(); + // 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 ::google::protobuf::Map<::int64_t, ::google::api::expr::v1alpha1::Type>& _internal_type_map() const; - ::google::protobuf::Map<::int64_t, ::google::api::expr::v1alpha1::Type>* _internal_mutable_type_map(); - + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); public: - // string expr_version = 6 [json_name = "exprVersion"]; - void clear_expr_version() ; - const std::string& expr_version() const; - template - void set_expr_version(Arg_&& arg, Args_... args); - std::string* mutable_expr_version(); - PROTOBUF_NODISCARD std::string* release_expr_version(); - void set_allocated_expr_version(std::string* value); + // .google.api.expr.v1alpha1.Constant value = 4 [json_name = "value"]; + bool has_value() const; private: - const std::string& _internal_expr_version() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_expr_version( - const std::string& value); - std::string* _internal_mutable_expr_version(); - + bool _internal_has_value() const; public: - // .google.api.expr.v1alpha1.Expr expr = 4 [json_name = "expr"]; - bool has_expr() const; - void clear_expr() ; - const ::google::api::expr::v1alpha1::Expr& expr() const; - PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Expr* release_expr(); - ::google::api::expr::v1alpha1::Expr* mutable_expr(); - void set_allocated_expr(::google::api::expr::v1alpha1::Expr* value); - void unsafe_arena_set_allocated_expr(::google::api::expr::v1alpha1::Expr* value); - ::google::api::expr::v1alpha1::Expr* unsafe_arena_release_expr(); - + void clear_value(); + const ::google::api::expr::v1alpha1::Constant& value() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Constant* release_value(); + ::google::api::expr::v1alpha1::Constant* mutable_value(); + void set_allocated_value(::google::api::expr::v1alpha1::Constant* value); private: - const ::google::api::expr::v1alpha1::Expr& _internal_expr() const; - ::google::api::expr::v1alpha1::Expr* _internal_mutable_expr(); - + const ::google::api::expr::v1alpha1::Constant& _internal_value() const; + ::google::api::expr::v1alpha1::Constant* _internal_mutable_value(); public: - // .google.api.expr.v1alpha1.SourceInfo source_info = 5 [json_name = "sourceInfo"]; - bool has_source_info() const; - void clear_source_info() ; - const ::google::api::expr::v1alpha1::SourceInfo& source_info() const; - PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::SourceInfo* release_source_info(); - ::google::api::expr::v1alpha1::SourceInfo* mutable_source_info(); - void set_allocated_source_info(::google::api::expr::v1alpha1::SourceInfo* value); - void unsafe_arena_set_allocated_source_info(::google::api::expr::v1alpha1::SourceInfo* value); - ::google::api::expr::v1alpha1::SourceInfo* unsafe_arena_release_source_info(); - - private: - const ::google::api::expr::v1alpha1::SourceInfo& _internal_source_info() const; - ::google::api::expr::v1alpha1::SourceInfo* _internal_mutable_source_info(); + void unsafe_arena_set_allocated_value( + ::google::api::expr::v1alpha1::Constant* value); + ::google::api::expr::v1alpha1::Constant* unsafe_arena_release_value(); - public: - // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.CheckedExpr) + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Reference) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 5, 6, - 57, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::MapField - reference_map_; - ::google::protobuf::internal::MapField - type_map_; - ::google::protobuf::internal::ArenaStringPtr expr_version_; - ::google::api::expr::v1alpha1::Expr* expr_; - ::google::api::expr::v1alpha1::SourceInfo* source_info_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField overload_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::google::api::expr::v1alpha1::Constant* value_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto; }; - // =================================================================== - - // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ // ------------------------------------------------------------------- // ------------------------------------------------------------------- -// ------------------------------------------------------------------- - // CheckedExpr // map reference_map = 2 [json_name = "referenceMap"]; inline int CheckedExpr::_internal_reference_map_size() const { - return _internal_reference_map().size(); + return reference_map_.size(); } inline int CheckedExpr::reference_map_size() const { return _internal_reference_map_size(); } inline void CheckedExpr::clear_reference_map() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.reference_map_.Clear(); + reference_map_.Clear(); } -inline const ::google::protobuf::Map<::int64_t, ::google::api::expr::v1alpha1::Reference>& CheckedExpr::_internal_reference_map() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.reference_map_.GetMap(); +inline const ::PROTOBUF_NAMESPACE_ID::Map< int64_t, ::google::api::expr::v1alpha1::Reference >& +CheckedExpr::_internal_reference_map() const { + return reference_map_.GetMap(); } -inline const ::google::protobuf::Map<::int64_t, ::google::api::expr::v1alpha1::Reference>& CheckedExpr::reference_map() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Map< int64_t, ::google::api::expr::v1alpha1::Reference >& +CheckedExpr::reference_map() const { // @@protoc_insertion_point(field_map:google.api.expr.v1alpha1.CheckedExpr.reference_map) return _internal_reference_map(); } -inline ::google::protobuf::Map<::int64_t, ::google::api::expr::v1alpha1::Reference>* CheckedExpr::_internal_mutable_reference_map() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.reference_map_.MutableMap(); +inline ::PROTOBUF_NAMESPACE_ID::Map< int64_t, ::google::api::expr::v1alpha1::Reference >* +CheckedExpr::_internal_mutable_reference_map() { + return reference_map_.MutableMap(); } -inline ::google::protobuf::Map<::int64_t, ::google::api::expr::v1alpha1::Reference>* CheckedExpr::mutable_reference_map() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::Map< int64_t, ::google::api::expr::v1alpha1::Reference >* +CheckedExpr::mutable_reference_map() { // @@protoc_insertion_point(field_mutable_map:google.api.expr.v1alpha1.CheckedExpr.reference_map) return _internal_mutable_reference_map(); } // map type_map = 3 [json_name = "typeMap"]; inline int CheckedExpr::_internal_type_map_size() const { - return _internal_type_map().size(); + return type_map_.size(); } inline int CheckedExpr::type_map_size() const { return _internal_type_map_size(); } inline void CheckedExpr::clear_type_map() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_map_.Clear(); + type_map_.Clear(); } -inline const ::google::protobuf::Map<::int64_t, ::google::api::expr::v1alpha1::Type>& CheckedExpr::_internal_type_map() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.type_map_.GetMap(); +inline const ::PROTOBUF_NAMESPACE_ID::Map< int64_t, ::google::api::expr::v1alpha1::Type >& +CheckedExpr::_internal_type_map() const { + return type_map_.GetMap(); } -inline const ::google::protobuf::Map<::int64_t, ::google::api::expr::v1alpha1::Type>& CheckedExpr::type_map() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Map< int64_t, ::google::api::expr::v1alpha1::Type >& +CheckedExpr::type_map() const { // @@protoc_insertion_point(field_map:google.api.expr.v1alpha1.CheckedExpr.type_map) return _internal_type_map(); } -inline ::google::protobuf::Map<::int64_t, ::google::api::expr::v1alpha1::Type>* CheckedExpr::_internal_mutable_type_map() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.type_map_.MutableMap(); +inline ::PROTOBUF_NAMESPACE_ID::Map< int64_t, ::google::api::expr::v1alpha1::Type >* +CheckedExpr::_internal_mutable_type_map() { + return type_map_.MutableMap(); } -inline ::google::protobuf::Map<::int64_t, ::google::api::expr::v1alpha1::Type>* CheckedExpr::mutable_type_map() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::Map< int64_t, ::google::api::expr::v1alpha1::Type >* +CheckedExpr::mutable_type_map() { // @@protoc_insertion_point(field_mutable_map:google.api.expr.v1alpha1.CheckedExpr.type_map) return _internal_mutable_type_map(); } // .google.api.expr.v1alpha1.SourceInfo source_info = 5 [json_name = "sourceInfo"]; +inline bool CheckedExpr::_internal_has_source_info() const { + return this != internal_default_instance() && source_info_ != nullptr; +} inline bool CheckedExpr::has_source_info() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.source_info_ != nullptr); - return value; + return _internal_has_source_info(); } inline const ::google::api::expr::v1alpha1::SourceInfo& CheckedExpr::_internal_source_info() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::expr::v1alpha1::SourceInfo* p = _impl_.source_info_; - return p != nullptr ? *p : reinterpret_cast(::google::api::expr::v1alpha1::_SourceInfo_default_instance_); + const ::google::api::expr::v1alpha1::SourceInfo* p = source_info_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1alpha1::_SourceInfo_default_instance_); } -inline const ::google::api::expr::v1alpha1::SourceInfo& CheckedExpr::source_info() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::SourceInfo& CheckedExpr::source_info() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.CheckedExpr.source_info) return _internal_source_info(); } -inline void CheckedExpr::unsafe_arena_set_allocated_source_info(::google::api::expr::v1alpha1::SourceInfo* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.source_info_); +inline void CheckedExpr::unsafe_arena_set_allocated_source_info( + ::google::api::expr::v1alpha1::SourceInfo* source_info) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(source_info_); } - _impl_.source_info_ = reinterpret_cast<::google::api::expr::v1alpha1::SourceInfo*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + source_info_ = source_info; + if (source_info) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.CheckedExpr.source_info) } inline ::google::api::expr::v1alpha1::SourceInfo* CheckedExpr::release_source_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::api::expr::v1alpha1::SourceInfo* released = _impl_.source_info_; - _impl_.source_info_ = nullptr; + + ::google::api::expr::v1alpha1::SourceInfo* temp = source_info_; + source_info_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::expr::v1alpha1::SourceInfo* CheckedExpr::unsafe_arena_release_source_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.CheckedExpr.source_info) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::api::expr::v1alpha1::SourceInfo* temp = _impl_.source_info_; - _impl_.source_info_ = nullptr; + + ::google::api::expr::v1alpha1::SourceInfo* temp = source_info_; + source_info_ = nullptr; return temp; } inline ::google::api::expr::v1alpha1::SourceInfo* CheckedExpr::_internal_mutable_source_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.source_info_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::SourceInfo>(GetArena()); - _impl_.source_info_ = reinterpret_cast<::google::api::expr::v1alpha1::SourceInfo*>(p); + + if (source_info_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::SourceInfo>(GetArenaForAllocation()); + source_info_ = p; } - return _impl_.source_info_; + return source_info_; } -inline ::google::api::expr::v1alpha1::SourceInfo* CheckedExpr::mutable_source_info() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::SourceInfo* CheckedExpr::mutable_source_info() { ::google::api::expr::v1alpha1::SourceInfo* _msg = _internal_mutable_source_info(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.CheckedExpr.source_info) return _msg; } -inline void CheckedExpr::set_allocated_source_info(::google::api::expr::v1alpha1::SourceInfo* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void CheckedExpr::set_allocated_source_info(::google::api::expr::v1alpha1::SourceInfo* source_info) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.source_info_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(source_info_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (source_info) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(source_info)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + source_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, source_info, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.source_info_ = reinterpret_cast<::google::api::expr::v1alpha1::SourceInfo*>(value); + source_info_ = source_info; // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.CheckedExpr.source_info) } // string expr_version = 6 [json_name = "exprVersion"]; inline void CheckedExpr::clear_expr_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.expr_version_.ClearToEmpty(); + expr_version_.ClearToEmpty(); } -inline const std::string& CheckedExpr::expr_version() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& CheckedExpr::expr_version() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.CheckedExpr.expr_version) return _internal_expr_version(); } -template -inline PROTOBUF_ALWAYS_INLINE void CheckedExpr::set_expr_version(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.expr_version_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void CheckedExpr::set_expr_version(ArgT0&& arg0, ArgT... args) { + + expr_version_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.CheckedExpr.expr_version) } -inline std::string* CheckedExpr::mutable_expr_version() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* CheckedExpr::mutable_expr_version() { std::string* _s = _internal_mutable_expr_version(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.CheckedExpr.expr_version) return _s; } inline const std::string& CheckedExpr::_internal_expr_version() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.expr_version_.Get(); + return expr_version_.Get(); } inline void CheckedExpr::_internal_set_expr_version(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.expr_version_.Set(value, GetArena()); + + expr_version_.Set(value, GetArenaForAllocation()); } inline std::string* CheckedExpr::_internal_mutable_expr_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.expr_version_.Mutable( GetArena()); + + return expr_version_.Mutable(GetArenaForAllocation()); } inline std::string* CheckedExpr::release_expr_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.CheckedExpr.expr_version) - return _impl_.expr_version_.Release(); -} -inline void CheckedExpr::set_allocated_expr_version(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.expr_version_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.expr_version_.IsDefault()) { - _impl_.expr_version_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return expr_version_.Release(); +} +inline void CheckedExpr::set_allocated_expr_version(std::string* expr_version) { + if (expr_version != nullptr) { + + } else { + + } + expr_version_.SetAllocated(expr_version, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (expr_version_.IsDefault()) { + expr_version_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.CheckedExpr.expr_version) } // .google.api.expr.v1alpha1.Expr expr = 4 [json_name = "expr"]; +inline bool CheckedExpr::_internal_has_expr() const { + return this != internal_default_instance() && expr_ != nullptr; +} inline bool CheckedExpr::has_expr() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.expr_ != nullptr); - return value; + return _internal_has_expr(); } inline const ::google::api::expr::v1alpha1::Expr& CheckedExpr::_internal_expr() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::expr::v1alpha1::Expr* p = _impl_.expr_; - return p != nullptr ? *p : reinterpret_cast(::google::api::expr::v1alpha1::_Expr_default_instance_); + const ::google::api::expr::v1alpha1::Expr* p = expr_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1alpha1::_Expr_default_instance_); } -inline const ::google::api::expr::v1alpha1::Expr& CheckedExpr::expr() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::Expr& CheckedExpr::expr() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.CheckedExpr.expr) return _internal_expr(); } -inline void CheckedExpr::unsafe_arena_set_allocated_expr(::google::api::expr::v1alpha1::Expr* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.expr_); +inline void CheckedExpr::unsafe_arena_set_allocated_expr( + ::google::api::expr::v1alpha1::Expr* expr) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(expr_); } - _impl_.expr_ = reinterpret_cast<::google::api::expr::v1alpha1::Expr*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + expr_ = expr; + if (expr) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.CheckedExpr.expr) } inline ::google::api::expr::v1alpha1::Expr* CheckedExpr::release_expr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::expr::v1alpha1::Expr* released = _impl_.expr_; - _impl_.expr_ = nullptr; + + ::google::api::expr::v1alpha1::Expr* temp = expr_; + expr_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::expr::v1alpha1::Expr* CheckedExpr::unsafe_arena_release_expr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.CheckedExpr.expr) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::expr::v1alpha1::Expr* temp = _impl_.expr_; - _impl_.expr_ = nullptr; + + ::google::api::expr::v1alpha1::Expr* temp = expr_; + expr_ = nullptr; return temp; } inline ::google::api::expr::v1alpha1::Expr* CheckedExpr::_internal_mutable_expr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.expr_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Expr>(GetArena()); - _impl_.expr_ = reinterpret_cast<::google::api::expr::v1alpha1::Expr*>(p); + + if (expr_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Expr>(GetArenaForAllocation()); + expr_ = p; } - return _impl_.expr_; + return expr_; } -inline ::google::api::expr::v1alpha1::Expr* CheckedExpr::mutable_expr() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::Expr* CheckedExpr::mutable_expr() { ::google::api::expr::v1alpha1::Expr* _msg = _internal_mutable_expr(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.CheckedExpr.expr) return _msg; } -inline void CheckedExpr::set_allocated_expr(::google::api::expr::v1alpha1::Expr* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void CheckedExpr::set_allocated_expr(::google::api::expr::v1alpha1::Expr* expr) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.expr_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(expr_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (expr) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(expr)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + expr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, expr, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.expr_ = reinterpret_cast<::google::api::expr::v1alpha1::Expr*>(value); + expr_ = expr; // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.CheckedExpr.expr) } @@ -3248,98 +2901,92 @@ inline void CheckedExpr::set_allocated_expr(::google::api::expr::v1alpha1::Expr* // Type_ListType // .google.api.expr.v1alpha1.Type elem_type = 1 [json_name = "elemType"]; +inline bool Type_ListType::_internal_has_elem_type() const { + return this != internal_default_instance() && elem_type_ != nullptr; +} inline bool Type_ListType::has_elem_type() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.elem_type_ != nullptr); - return value; + return _internal_has_elem_type(); } inline void Type_ListType::clear_elem_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.elem_type_ != nullptr) _impl_.elem_type_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && elem_type_ != nullptr) { + delete elem_type_; + } + elem_type_ = nullptr; } inline const ::google::api::expr::v1alpha1::Type& Type_ListType::_internal_elem_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::expr::v1alpha1::Type* p = _impl_.elem_type_; - return p != nullptr ? *p : reinterpret_cast(::google::api::expr::v1alpha1::_Type_default_instance_); + const ::google::api::expr::v1alpha1::Type* p = elem_type_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1alpha1::_Type_default_instance_); } -inline const ::google::api::expr::v1alpha1::Type& Type_ListType::elem_type() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::Type& Type_ListType::elem_type() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Type.ListType.elem_type) return _internal_elem_type(); } -inline void Type_ListType::unsafe_arena_set_allocated_elem_type(::google::api::expr::v1alpha1::Type* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.elem_type_); +inline void Type_ListType::unsafe_arena_set_allocated_elem_type( + ::google::api::expr::v1alpha1::Type* elem_type) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(elem_type_); } - _impl_.elem_type_ = reinterpret_cast<::google::api::expr::v1alpha1::Type*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + elem_type_ = elem_type; + if (elem_type) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Type.ListType.elem_type) } inline ::google::api::expr::v1alpha1::Type* Type_ListType::release_elem_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::expr::v1alpha1::Type* released = _impl_.elem_type_; - _impl_.elem_type_ = nullptr; + + ::google::api::expr::v1alpha1::Type* temp = elem_type_; + elem_type_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::expr::v1alpha1::Type* Type_ListType::unsafe_arena_release_elem_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Type.ListType.elem_type) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::expr::v1alpha1::Type* temp = _impl_.elem_type_; - _impl_.elem_type_ = nullptr; + + ::google::api::expr::v1alpha1::Type* temp = elem_type_; + elem_type_ = nullptr; return temp; } inline ::google::api::expr::v1alpha1::Type* Type_ListType::_internal_mutable_elem_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.elem_type_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Type>(GetArena()); - _impl_.elem_type_ = reinterpret_cast<::google::api::expr::v1alpha1::Type*>(p); + + if (elem_type_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Type>(GetArenaForAllocation()); + elem_type_ = p; } - return _impl_.elem_type_; + return elem_type_; } -inline ::google::api::expr::v1alpha1::Type* Type_ListType::mutable_elem_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::Type* Type_ListType::mutable_elem_type() { ::google::api::expr::v1alpha1::Type* _msg = _internal_mutable_elem_type(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Type.ListType.elem_type) return _msg; } -inline void Type_ListType::set_allocated_elem_type(::google::api::expr::v1alpha1::Type* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Type_ListType::set_allocated_elem_type(::google::api::expr::v1alpha1::Type* elem_type) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::api::expr::v1alpha1::Type*>(_impl_.elem_type_); + delete elem_type_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::api::expr::v1alpha1::Type*>(value)->GetArena(); + if (elem_type) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(elem_type); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + elem_type = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, elem_type, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.elem_type_ = reinterpret_cast<::google::api::expr::v1alpha1::Type*>(value); + elem_type_ = elem_type; // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Type.ListType.elem_type) } @@ -3348,194 +2995,182 @@ inline void Type_ListType::set_allocated_elem_type(::google::api::expr::v1alpha1 // Type_MapType // .google.api.expr.v1alpha1.Type key_type = 1 [json_name = "keyType"]; +inline bool Type_MapType::_internal_has_key_type() const { + return this != internal_default_instance() && key_type_ != nullptr; +} inline bool Type_MapType::has_key_type() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.key_type_ != nullptr); - return value; + return _internal_has_key_type(); } inline void Type_MapType::clear_key_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.key_type_ != nullptr) _impl_.key_type_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && key_type_ != nullptr) { + delete key_type_; + } + key_type_ = nullptr; } inline const ::google::api::expr::v1alpha1::Type& Type_MapType::_internal_key_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::expr::v1alpha1::Type* p = _impl_.key_type_; - return p != nullptr ? *p : reinterpret_cast(::google::api::expr::v1alpha1::_Type_default_instance_); + const ::google::api::expr::v1alpha1::Type* p = key_type_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1alpha1::_Type_default_instance_); } -inline const ::google::api::expr::v1alpha1::Type& Type_MapType::key_type() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::Type& Type_MapType::key_type() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Type.MapType.key_type) return _internal_key_type(); } -inline void Type_MapType::unsafe_arena_set_allocated_key_type(::google::api::expr::v1alpha1::Type* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.key_type_); +inline void Type_MapType::unsafe_arena_set_allocated_key_type( + ::google::api::expr::v1alpha1::Type* key_type) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(key_type_); } - _impl_.key_type_ = reinterpret_cast<::google::api::expr::v1alpha1::Type*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + key_type_ = key_type; + if (key_type) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Type.MapType.key_type) } inline ::google::api::expr::v1alpha1::Type* Type_MapType::release_key_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::expr::v1alpha1::Type* released = _impl_.key_type_; - _impl_.key_type_ = nullptr; + + ::google::api::expr::v1alpha1::Type* temp = key_type_; + key_type_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::expr::v1alpha1::Type* Type_MapType::unsafe_arena_release_key_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Type.MapType.key_type) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::expr::v1alpha1::Type* temp = _impl_.key_type_; - _impl_.key_type_ = nullptr; + + ::google::api::expr::v1alpha1::Type* temp = key_type_; + key_type_ = nullptr; return temp; } inline ::google::api::expr::v1alpha1::Type* Type_MapType::_internal_mutable_key_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.key_type_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Type>(GetArena()); - _impl_.key_type_ = reinterpret_cast<::google::api::expr::v1alpha1::Type*>(p); + + if (key_type_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Type>(GetArenaForAllocation()); + key_type_ = p; } - return _impl_.key_type_; + return key_type_; } -inline ::google::api::expr::v1alpha1::Type* Type_MapType::mutable_key_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::Type* Type_MapType::mutable_key_type() { ::google::api::expr::v1alpha1::Type* _msg = _internal_mutable_key_type(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Type.MapType.key_type) return _msg; } -inline void Type_MapType::set_allocated_key_type(::google::api::expr::v1alpha1::Type* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Type_MapType::set_allocated_key_type(::google::api::expr::v1alpha1::Type* key_type) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::api::expr::v1alpha1::Type*>(_impl_.key_type_); + delete key_type_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::api::expr::v1alpha1::Type*>(value)->GetArena(); + if (key_type) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(key_type); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + key_type = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, key_type, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.key_type_ = reinterpret_cast<::google::api::expr::v1alpha1::Type*>(value); + key_type_ = key_type; // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Type.MapType.key_type) } // .google.api.expr.v1alpha1.Type value_type = 2 [json_name = "valueType"]; +inline bool Type_MapType::_internal_has_value_type() const { + return this != internal_default_instance() && value_type_ != nullptr; +} inline bool Type_MapType::has_value_type() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.value_type_ != nullptr); - return value; + return _internal_has_value_type(); } inline void Type_MapType::clear_value_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.value_type_ != nullptr) _impl_.value_type_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && value_type_ != nullptr) { + delete value_type_; + } + value_type_ = nullptr; } inline const ::google::api::expr::v1alpha1::Type& Type_MapType::_internal_value_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::expr::v1alpha1::Type* p = _impl_.value_type_; - return p != nullptr ? *p : reinterpret_cast(::google::api::expr::v1alpha1::_Type_default_instance_); + const ::google::api::expr::v1alpha1::Type* p = value_type_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1alpha1::_Type_default_instance_); } -inline const ::google::api::expr::v1alpha1::Type& Type_MapType::value_type() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::Type& Type_MapType::value_type() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Type.MapType.value_type) return _internal_value_type(); } -inline void Type_MapType::unsafe_arena_set_allocated_value_type(::google::api::expr::v1alpha1::Type* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.value_type_); +inline void Type_MapType::unsafe_arena_set_allocated_value_type( + ::google::api::expr::v1alpha1::Type* value_type) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(value_type_); } - _impl_.value_type_ = reinterpret_cast<::google::api::expr::v1alpha1::Type*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + value_type_ = value_type; + if (value_type) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Type.MapType.value_type) } inline ::google::api::expr::v1alpha1::Type* Type_MapType::release_value_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::api::expr::v1alpha1::Type* released = _impl_.value_type_; - _impl_.value_type_ = nullptr; + + ::google::api::expr::v1alpha1::Type* temp = value_type_; + value_type_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::expr::v1alpha1::Type* Type_MapType::unsafe_arena_release_value_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Type.MapType.value_type) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::api::expr::v1alpha1::Type* temp = _impl_.value_type_; - _impl_.value_type_ = nullptr; + + ::google::api::expr::v1alpha1::Type* temp = value_type_; + value_type_ = nullptr; return temp; } inline ::google::api::expr::v1alpha1::Type* Type_MapType::_internal_mutable_value_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.value_type_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Type>(GetArena()); - _impl_.value_type_ = reinterpret_cast<::google::api::expr::v1alpha1::Type*>(p); + + if (value_type_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Type>(GetArenaForAllocation()); + value_type_ = p; } - return _impl_.value_type_; + return value_type_; } -inline ::google::api::expr::v1alpha1::Type* Type_MapType::mutable_value_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::Type* Type_MapType::mutable_value_type() { ::google::api::expr::v1alpha1::Type* _msg = _internal_mutable_value_type(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Type.MapType.value_type) return _msg; } -inline void Type_MapType::set_allocated_value_type(::google::api::expr::v1alpha1::Type* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Type_MapType::set_allocated_value_type(::google::api::expr::v1alpha1::Type* value_type) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::api::expr::v1alpha1::Type*>(_impl_.value_type_); + delete value_type_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::api::expr::v1alpha1::Type*>(value)->GetArena(); + if (value_type) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(value_type); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + value_type = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, value_type, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.value_type_ = reinterpret_cast<::google::api::expr::v1alpha1::Type*>(value); + value_type_ = value_type; // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Type.MapType.value_type) } @@ -3544,148 +3179,133 @@ inline void Type_MapType::set_allocated_value_type(::google::api::expr::v1alpha1 // Type_FunctionType // .google.api.expr.v1alpha1.Type result_type = 1 [json_name = "resultType"]; +inline bool Type_FunctionType::_internal_has_result_type() const { + return this != internal_default_instance() && result_type_ != nullptr; +} inline bool Type_FunctionType::has_result_type() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.result_type_ != nullptr); - return value; + return _internal_has_result_type(); } inline void Type_FunctionType::clear_result_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.result_type_ != nullptr) _impl_.result_type_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && result_type_ != nullptr) { + delete result_type_; + } + result_type_ = nullptr; } inline const ::google::api::expr::v1alpha1::Type& Type_FunctionType::_internal_result_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::expr::v1alpha1::Type* p = _impl_.result_type_; - return p != nullptr ? *p : reinterpret_cast(::google::api::expr::v1alpha1::_Type_default_instance_); + const ::google::api::expr::v1alpha1::Type* p = result_type_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1alpha1::_Type_default_instance_); } -inline const ::google::api::expr::v1alpha1::Type& Type_FunctionType::result_type() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::Type& Type_FunctionType::result_type() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Type.FunctionType.result_type) return _internal_result_type(); } -inline void Type_FunctionType::unsafe_arena_set_allocated_result_type(::google::api::expr::v1alpha1::Type* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.result_type_); +inline void Type_FunctionType::unsafe_arena_set_allocated_result_type( + ::google::api::expr::v1alpha1::Type* result_type) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(result_type_); } - _impl_.result_type_ = reinterpret_cast<::google::api::expr::v1alpha1::Type*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + result_type_ = result_type; + if (result_type) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Type.FunctionType.result_type) } inline ::google::api::expr::v1alpha1::Type* Type_FunctionType::release_result_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::expr::v1alpha1::Type* released = _impl_.result_type_; - _impl_.result_type_ = nullptr; + + ::google::api::expr::v1alpha1::Type* temp = result_type_; + result_type_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::expr::v1alpha1::Type* Type_FunctionType::unsafe_arena_release_result_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Type.FunctionType.result_type) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::expr::v1alpha1::Type* temp = _impl_.result_type_; - _impl_.result_type_ = nullptr; + + ::google::api::expr::v1alpha1::Type* temp = result_type_; + result_type_ = nullptr; return temp; } inline ::google::api::expr::v1alpha1::Type* Type_FunctionType::_internal_mutable_result_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.result_type_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Type>(GetArena()); - _impl_.result_type_ = reinterpret_cast<::google::api::expr::v1alpha1::Type*>(p); + + if (result_type_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Type>(GetArenaForAllocation()); + result_type_ = p; } - return _impl_.result_type_; + return result_type_; } -inline ::google::api::expr::v1alpha1::Type* Type_FunctionType::mutable_result_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::Type* Type_FunctionType::mutable_result_type() { ::google::api::expr::v1alpha1::Type* _msg = _internal_mutable_result_type(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Type.FunctionType.result_type) return _msg; } -inline void Type_FunctionType::set_allocated_result_type(::google::api::expr::v1alpha1::Type* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Type_FunctionType::set_allocated_result_type(::google::api::expr::v1alpha1::Type* result_type) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::api::expr::v1alpha1::Type*>(_impl_.result_type_); + delete result_type_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::api::expr::v1alpha1::Type*>(value)->GetArena(); + if (result_type) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(result_type); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + result_type = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, result_type, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.result_type_ = reinterpret_cast<::google::api::expr::v1alpha1::Type*>(value); + result_type_ = result_type; // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Type.FunctionType.result_type) } // repeated .google.api.expr.v1alpha1.Type arg_types = 2 [json_name = "argTypes"]; inline int Type_FunctionType::_internal_arg_types_size() const { - return _internal_arg_types().size(); + return arg_types_.size(); } inline int Type_FunctionType::arg_types_size() const { return _internal_arg_types_size(); } inline void Type_FunctionType::clear_arg_types() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.arg_types_.Clear(); + arg_types_.Clear(); } -inline ::google::api::expr::v1alpha1::Type* Type_FunctionType::mutable_arg_types(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::Type* Type_FunctionType::mutable_arg_types(int index) { // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Type.FunctionType.arg_types) - return _internal_mutable_arg_types()->Mutable(index); + return arg_types_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Type>* Type_FunctionType::mutable_arg_types() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Type >* +Type_FunctionType::mutable_arg_types() { // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1alpha1.Type.FunctionType.arg_types) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_arg_types(); + return &arg_types_; } -inline const ::google::api::expr::v1alpha1::Type& Type_FunctionType::arg_types(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::Type& Type_FunctionType::_internal_arg_types(int index) const { + return arg_types_.Get(index); +} +inline const ::google::api::expr::v1alpha1::Type& Type_FunctionType::arg_types(int index) const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Type.FunctionType.arg_types) - return _internal_arg_types().Get(index); + return _internal_arg_types(index); +} +inline ::google::api::expr::v1alpha1::Type* Type_FunctionType::_internal_add_arg_types() { + return arg_types_.Add(); } -inline ::google::api::expr::v1alpha1::Type* Type_FunctionType::add_arg_types() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::google::api::expr::v1alpha1::Type* _add = _internal_mutable_arg_types()->Add(); +inline ::google::api::expr::v1alpha1::Type* Type_FunctionType::add_arg_types() { + ::google::api::expr::v1alpha1::Type* _add = _internal_add_arg_types(); // @@protoc_insertion_point(field_add:google.api.expr.v1alpha1.Type.FunctionType.arg_types) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Type>& Type_FunctionType::arg_types() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Type >& +Type_FunctionType::arg_types() const { // @@protoc_insertion_point(field_list:google.api.expr.v1alpha1.Type.FunctionType.arg_types) - return _internal_arg_types(); -} -inline const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Type>& -Type_FunctionType::_internal_arg_types() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.arg_types_; -} -inline ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Type>* -Type_FunctionType::_internal_mutable_arg_types() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.arg_types_; + return arg_types_; } // ------------------------------------------------------------------- @@ -3694,104 +3314,92 @@ Type_FunctionType::_internal_mutable_arg_types() { // string name = 1 [json_name = "name"]; inline void Type_AbstractType::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& Type_AbstractType::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Type_AbstractType::name() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Type.AbstractType.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void Type_AbstractType::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Type_AbstractType::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Type.AbstractType.name) } -inline std::string* Type_AbstractType::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Type_AbstractType::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Type.AbstractType.name) return _s; } inline const std::string& Type_AbstractType::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void Type_AbstractType::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* Type_AbstractType::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* Type_AbstractType::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Type.AbstractType.name) - return _impl_.name_.Release(); -} -inline void Type_AbstractType::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void Type_AbstractType::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:google.api.expr.v1alpha1.Type.AbstractType.name) } // repeated .google.api.expr.v1alpha1.Type parameter_types = 2 [json_name = "parameterTypes"]; inline int Type_AbstractType::_internal_parameter_types_size() const { - return _internal_parameter_types().size(); + return parameter_types_.size(); } inline int Type_AbstractType::parameter_types_size() const { return _internal_parameter_types_size(); } inline void Type_AbstractType::clear_parameter_types() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.parameter_types_.Clear(); + parameter_types_.Clear(); } -inline ::google::api::expr::v1alpha1::Type* Type_AbstractType::mutable_parameter_types(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::Type* Type_AbstractType::mutable_parameter_types(int index) { // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Type.AbstractType.parameter_types) - return _internal_mutable_parameter_types()->Mutable(index); + return parameter_types_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Type>* Type_AbstractType::mutable_parameter_types() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Type >* +Type_AbstractType::mutable_parameter_types() { // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1alpha1.Type.AbstractType.parameter_types) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_parameter_types(); + return ¶meter_types_; } -inline const ::google::api::expr::v1alpha1::Type& Type_AbstractType::parameter_types(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::Type& Type_AbstractType::_internal_parameter_types(int index) const { + return parameter_types_.Get(index); +} +inline const ::google::api::expr::v1alpha1::Type& Type_AbstractType::parameter_types(int index) const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Type.AbstractType.parameter_types) - return _internal_parameter_types().Get(index); + return _internal_parameter_types(index); +} +inline ::google::api::expr::v1alpha1::Type* Type_AbstractType::_internal_add_parameter_types() { + return parameter_types_.Add(); } -inline ::google::api::expr::v1alpha1::Type* Type_AbstractType::add_parameter_types() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::google::api::expr::v1alpha1::Type* _add = _internal_mutable_parameter_types()->Add(); +inline ::google::api::expr::v1alpha1::Type* Type_AbstractType::add_parameter_types() { + ::google::api::expr::v1alpha1::Type* _add = _internal_add_parameter_types(); // @@protoc_insertion_point(field_add:google.api.expr.v1alpha1.Type.AbstractType.parameter_types) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Type>& Type_AbstractType::parameter_types() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Type >& +Type_AbstractType::parameter_types() const { // @@protoc_insertion_point(field_list:google.api.expr.v1alpha1.Type.AbstractType.parameter_types) - return _internal_parameter_types(); -} -inline const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Type>& -Type_AbstractType::_internal_parameter_types() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.parameter_types_; -} -inline ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Type>* -Type_AbstractType::_internal_mutable_parameter_types() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.parameter_types_; + return parameter_types_; } // ------------------------------------------------------------------- @@ -3799,828 +3407,808 @@ Type_AbstractType::_internal_mutable_parameter_types() { // Type // .google.protobuf.Empty dyn = 1 [json_name = "dyn"]; -inline bool Type::has_dyn() const { - return type_kind_case() == kDyn; -} inline bool Type::_internal_has_dyn() const { return type_kind_case() == kDyn; } +inline bool Type::has_dyn() const { + return _internal_has_dyn(); +} inline void Type::set_has_dyn() { - _impl_._oneof_case_[0] = kDyn; + _oneof_case_[0] = kDyn; } -inline ::google::protobuf::Empty* Type::release_dyn() { +inline ::PROTOBUF_NAMESPACE_ID::Empty* Type::release_dyn() { // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Type.dyn) - if (type_kind_case() == kDyn) { + if (_internal_has_dyn()) { clear_has_type_kind(); - auto* temp = _impl_.type_kind_.dyn_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::PROTOBUF_NAMESPACE_ID::Empty* temp = type_kind_.dyn_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.type_kind_.dyn_ = nullptr; + type_kind_.dyn_ = nullptr; return temp; } else { return nullptr; } } -inline const ::google::protobuf::Empty& Type::_internal_dyn() const { - return type_kind_case() == kDyn ? *_impl_.type_kind_.dyn_ : reinterpret_cast<::google::protobuf::Empty&>(::google::protobuf::_Empty_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Empty& Type::_internal_dyn() const { + return _internal_has_dyn() + ? *type_kind_.dyn_ + : reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::Empty&>(::PROTOBUF_NAMESPACE_ID::_Empty_default_instance_); } -inline const ::google::protobuf::Empty& Type::dyn() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Empty& Type::dyn() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Type.dyn) return _internal_dyn(); } -inline ::google::protobuf::Empty* Type::unsafe_arena_release_dyn() { +inline ::PROTOBUF_NAMESPACE_ID::Empty* Type::unsafe_arena_release_dyn() { // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1alpha1.Type.dyn) - if (type_kind_case() == kDyn) { + if (_internal_has_dyn()) { clear_has_type_kind(); - auto* temp = _impl_.type_kind_.dyn_; - _impl_.type_kind_.dyn_ = nullptr; + ::PROTOBUF_NAMESPACE_ID::Empty* temp = type_kind_.dyn_; + type_kind_.dyn_ = nullptr; return temp; } else { return nullptr; } } -inline void Type::unsafe_arena_set_allocated_dyn(::google::protobuf::Empty* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void Type::unsafe_arena_set_allocated_dyn(::PROTOBUF_NAMESPACE_ID::Empty* dyn) { clear_type_kind(); - if (value) { + if (dyn) { set_has_dyn(); - _impl_.type_kind_.dyn_ = value; + type_kind_.dyn_ = dyn; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Type.dyn) } -inline ::google::protobuf::Empty* Type::_internal_mutable_dyn() { - if (type_kind_case() != kDyn) { +inline ::PROTOBUF_NAMESPACE_ID::Empty* Type::_internal_mutable_dyn() { + if (!_internal_has_dyn()) { clear_type_kind(); set_has_dyn(); - _impl_.type_kind_.dyn_ = CreateMaybeMessage<::google::protobuf::Empty>(GetArena()); + type_kind_.dyn_ = CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::Empty >(GetArenaForAllocation()); } - return _impl_.type_kind_.dyn_; + return type_kind_.dyn_; } -inline ::google::protobuf::Empty* Type::mutable_dyn() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Empty* _msg = _internal_mutable_dyn(); +inline ::PROTOBUF_NAMESPACE_ID::Empty* Type::mutable_dyn() { + ::PROTOBUF_NAMESPACE_ID::Empty* _msg = _internal_mutable_dyn(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Type.dyn) return _msg; } // .google.protobuf.NullValue null = 2 [json_name = "null"]; -inline bool Type::has_null() const { +inline bool Type::_internal_has_null() const { return type_kind_case() == kNull; } +inline bool Type::has_null() const { + return _internal_has_null(); +} inline void Type::set_has_null() { - _impl_._oneof_case_[0] = kNull; + _oneof_case_[0] = kNull; } inline void Type::clear_null() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (type_kind_case() == kNull) { - _impl_.type_kind_.null_ = 0; + if (_internal_has_null()) { + type_kind_.null_ = 0; clear_has_type_kind(); } } -inline ::google::protobuf::NullValue Type::null() const { +inline ::PROTOBUF_NAMESPACE_ID::NullValue Type::_internal_null() const { + if (_internal_has_null()) { + return static_cast< ::PROTOBUF_NAMESPACE_ID::NullValue >(type_kind_.null_); + } + return static_cast< ::PROTOBUF_NAMESPACE_ID::NullValue >(0); +} +inline ::PROTOBUF_NAMESPACE_ID::NullValue Type::null() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Type.null) return _internal_null(); } -inline void Type::set_null(::google::protobuf::NullValue value) { - _internal_set_null(value); - // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Type.null) -} -inline ::google::protobuf::NullValue Type::_internal_null() const { - if (type_kind_case() == kNull) { - return static_cast<::google::protobuf::NullValue>(_impl_.type_kind_.null_); - } - return static_cast<::google::protobuf::NullValue>(0); -} -inline void Type::_internal_set_null(::google::protobuf::NullValue value) { - if (type_kind_case() != kNull) { +inline void Type::_internal_set_null(::PROTOBUF_NAMESPACE_ID::NullValue value) { + if (!_internal_has_null()) { clear_type_kind(); set_has_null(); } - _impl_.type_kind_.null_ = value; + type_kind_.null_ = value; +} +inline void Type::set_null(::PROTOBUF_NAMESPACE_ID::NullValue value) { + _internal_set_null(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Type.null) } // .google.api.expr.v1alpha1.Type.PrimitiveType primitive = 3 [json_name = "primitive"]; -inline bool Type::has_primitive() const { +inline bool Type::_internal_has_primitive() const { return type_kind_case() == kPrimitive; } +inline bool Type::has_primitive() const { + return _internal_has_primitive(); +} inline void Type::set_has_primitive() { - _impl_._oneof_case_[0] = kPrimitive; + _oneof_case_[0] = kPrimitive; } inline void Type::clear_primitive() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (type_kind_case() == kPrimitive) { - _impl_.type_kind_.primitive_ = 0; + if (_internal_has_primitive()) { + type_kind_.primitive_ = 0; clear_has_type_kind(); } } +inline ::google::api::expr::v1alpha1::Type_PrimitiveType Type::_internal_primitive() const { + if (_internal_has_primitive()) { + return static_cast< ::google::api::expr::v1alpha1::Type_PrimitiveType >(type_kind_.primitive_); + } + return static_cast< ::google::api::expr::v1alpha1::Type_PrimitiveType >(0); +} inline ::google::api::expr::v1alpha1::Type_PrimitiveType Type::primitive() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Type.primitive) return _internal_primitive(); } -inline void Type::set_primitive(::google::api::expr::v1alpha1::Type_PrimitiveType value) { - _internal_set_primitive(value); - // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Type.primitive) -} -inline ::google::api::expr::v1alpha1::Type_PrimitiveType Type::_internal_primitive() const { - if (type_kind_case() == kPrimitive) { - return static_cast<::google::api::expr::v1alpha1::Type_PrimitiveType>(_impl_.type_kind_.primitive_); - } - return static_cast<::google::api::expr::v1alpha1::Type_PrimitiveType>(0); -} inline void Type::_internal_set_primitive(::google::api::expr::v1alpha1::Type_PrimitiveType value) { - if (type_kind_case() != kPrimitive) { + if (!_internal_has_primitive()) { clear_type_kind(); set_has_primitive(); } - _impl_.type_kind_.primitive_ = value; + type_kind_.primitive_ = value; +} +inline void Type::set_primitive(::google::api::expr::v1alpha1::Type_PrimitiveType value) { + _internal_set_primitive(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Type.primitive) } // .google.api.expr.v1alpha1.Type.PrimitiveType wrapper = 4 [json_name = "wrapper"]; -inline bool Type::has_wrapper() const { +inline bool Type::_internal_has_wrapper() const { return type_kind_case() == kWrapper; } +inline bool Type::has_wrapper() const { + return _internal_has_wrapper(); +} inline void Type::set_has_wrapper() { - _impl_._oneof_case_[0] = kWrapper; + _oneof_case_[0] = kWrapper; } inline void Type::clear_wrapper() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (type_kind_case() == kWrapper) { - _impl_.type_kind_.wrapper_ = 0; + if (_internal_has_wrapper()) { + type_kind_.wrapper_ = 0; clear_has_type_kind(); } } +inline ::google::api::expr::v1alpha1::Type_PrimitiveType Type::_internal_wrapper() const { + if (_internal_has_wrapper()) { + return static_cast< ::google::api::expr::v1alpha1::Type_PrimitiveType >(type_kind_.wrapper_); + } + return static_cast< ::google::api::expr::v1alpha1::Type_PrimitiveType >(0); +} inline ::google::api::expr::v1alpha1::Type_PrimitiveType Type::wrapper() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Type.wrapper) return _internal_wrapper(); } -inline void Type::set_wrapper(::google::api::expr::v1alpha1::Type_PrimitiveType value) { - _internal_set_wrapper(value); - // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Type.wrapper) -} -inline ::google::api::expr::v1alpha1::Type_PrimitiveType Type::_internal_wrapper() const { - if (type_kind_case() == kWrapper) { - return static_cast<::google::api::expr::v1alpha1::Type_PrimitiveType>(_impl_.type_kind_.wrapper_); - } - return static_cast<::google::api::expr::v1alpha1::Type_PrimitiveType>(0); -} inline void Type::_internal_set_wrapper(::google::api::expr::v1alpha1::Type_PrimitiveType value) { - if (type_kind_case() != kWrapper) { + if (!_internal_has_wrapper()) { clear_type_kind(); set_has_wrapper(); } - _impl_.type_kind_.wrapper_ = value; + type_kind_.wrapper_ = value; +} +inline void Type::set_wrapper(::google::api::expr::v1alpha1::Type_PrimitiveType value) { + _internal_set_wrapper(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Type.wrapper) } // .google.api.expr.v1alpha1.Type.WellKnownType well_known = 5 [json_name = "wellKnown"]; -inline bool Type::has_well_known() const { +inline bool Type::_internal_has_well_known() const { return type_kind_case() == kWellKnown; } +inline bool Type::has_well_known() const { + return _internal_has_well_known(); +} inline void Type::set_has_well_known() { - _impl_._oneof_case_[0] = kWellKnown; + _oneof_case_[0] = kWellKnown; } inline void Type::clear_well_known() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (type_kind_case() == kWellKnown) { - _impl_.type_kind_.well_known_ = 0; + if (_internal_has_well_known()) { + type_kind_.well_known_ = 0; clear_has_type_kind(); } } +inline ::google::api::expr::v1alpha1::Type_WellKnownType Type::_internal_well_known() const { + if (_internal_has_well_known()) { + return static_cast< ::google::api::expr::v1alpha1::Type_WellKnownType >(type_kind_.well_known_); + } + return static_cast< ::google::api::expr::v1alpha1::Type_WellKnownType >(0); +} inline ::google::api::expr::v1alpha1::Type_WellKnownType Type::well_known() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Type.well_known) return _internal_well_known(); } -inline void Type::set_well_known(::google::api::expr::v1alpha1::Type_WellKnownType value) { - _internal_set_well_known(value); - // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Type.well_known) -} -inline ::google::api::expr::v1alpha1::Type_WellKnownType Type::_internal_well_known() const { - if (type_kind_case() == kWellKnown) { - return static_cast<::google::api::expr::v1alpha1::Type_WellKnownType>(_impl_.type_kind_.well_known_); - } - return static_cast<::google::api::expr::v1alpha1::Type_WellKnownType>(0); -} inline void Type::_internal_set_well_known(::google::api::expr::v1alpha1::Type_WellKnownType value) { - if (type_kind_case() != kWellKnown) { + if (!_internal_has_well_known()) { clear_type_kind(); set_has_well_known(); } - _impl_.type_kind_.well_known_ = value; + type_kind_.well_known_ = value; +} +inline void Type::set_well_known(::google::api::expr::v1alpha1::Type_WellKnownType value) { + _internal_set_well_known(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Type.well_known) } // .google.api.expr.v1alpha1.Type.ListType list_type = 6 [json_name = "listType"]; -inline bool Type::has_list_type() const { - return type_kind_case() == kListType; -} inline bool Type::_internal_has_list_type() const { return type_kind_case() == kListType; } +inline bool Type::has_list_type() const { + return _internal_has_list_type(); +} inline void Type::set_has_list_type() { - _impl_._oneof_case_[0] = kListType; + _oneof_case_[0] = kListType; } inline void Type::clear_list_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (type_kind_case() == kListType) { - if (GetArena() == nullptr) { - delete _impl_.type_kind_.list_type_; + if (_internal_has_list_type()) { + if (GetArenaForAllocation() == nullptr) { + delete type_kind_.list_type_; } clear_has_type_kind(); } } inline ::google::api::expr::v1alpha1::Type_ListType* Type::release_list_type() { // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Type.list_type) - if (type_kind_case() == kListType) { + if (_internal_has_list_type()) { clear_has_type_kind(); - auto* temp = _impl_.type_kind_.list_type_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::google::api::expr::v1alpha1::Type_ListType* temp = type_kind_.list_type_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.type_kind_.list_type_ = nullptr; + type_kind_.list_type_ = nullptr; return temp; } else { return nullptr; } } inline const ::google::api::expr::v1alpha1::Type_ListType& Type::_internal_list_type() const { - return type_kind_case() == kListType ? *_impl_.type_kind_.list_type_ : reinterpret_cast<::google::api::expr::v1alpha1::Type_ListType&>(::google::api::expr::v1alpha1::_Type_ListType_default_instance_); + return _internal_has_list_type() + ? *type_kind_.list_type_ + : reinterpret_cast< ::google::api::expr::v1alpha1::Type_ListType&>(::google::api::expr::v1alpha1::_Type_ListType_default_instance_); } -inline const ::google::api::expr::v1alpha1::Type_ListType& Type::list_type() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::Type_ListType& Type::list_type() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Type.list_type) return _internal_list_type(); } inline ::google::api::expr::v1alpha1::Type_ListType* Type::unsafe_arena_release_list_type() { // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1alpha1.Type.list_type) - if (type_kind_case() == kListType) { + if (_internal_has_list_type()) { clear_has_type_kind(); - auto* temp = _impl_.type_kind_.list_type_; - _impl_.type_kind_.list_type_ = nullptr; + ::google::api::expr::v1alpha1::Type_ListType* temp = type_kind_.list_type_; + type_kind_.list_type_ = nullptr; return temp; } else { return nullptr; } } -inline void Type::unsafe_arena_set_allocated_list_type(::google::api::expr::v1alpha1::Type_ListType* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void Type::unsafe_arena_set_allocated_list_type(::google::api::expr::v1alpha1::Type_ListType* list_type) { clear_type_kind(); - if (value) { + if (list_type) { set_has_list_type(); - _impl_.type_kind_.list_type_ = value; + type_kind_.list_type_ = list_type; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Type.list_type) } inline ::google::api::expr::v1alpha1::Type_ListType* Type::_internal_mutable_list_type() { - if (type_kind_case() != kListType) { + if (!_internal_has_list_type()) { clear_type_kind(); set_has_list_type(); - _impl_.type_kind_.list_type_ = CreateMaybeMessage<::google::api::expr::v1alpha1::Type_ListType>(GetArena()); + type_kind_.list_type_ = CreateMaybeMessage< ::google::api::expr::v1alpha1::Type_ListType >(GetArenaForAllocation()); } - return _impl_.type_kind_.list_type_; + return type_kind_.list_type_; } -inline ::google::api::expr::v1alpha1::Type_ListType* Type::mutable_list_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::Type_ListType* Type::mutable_list_type() { ::google::api::expr::v1alpha1::Type_ListType* _msg = _internal_mutable_list_type(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Type.list_type) return _msg; } // .google.api.expr.v1alpha1.Type.MapType map_type = 7 [json_name = "mapType"]; -inline bool Type::has_map_type() const { - return type_kind_case() == kMapType; -} inline bool Type::_internal_has_map_type() const { return type_kind_case() == kMapType; } +inline bool Type::has_map_type() const { + return _internal_has_map_type(); +} inline void Type::set_has_map_type() { - _impl_._oneof_case_[0] = kMapType; + _oneof_case_[0] = kMapType; } inline void Type::clear_map_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (type_kind_case() == kMapType) { - if (GetArena() == nullptr) { - delete _impl_.type_kind_.map_type_; + if (_internal_has_map_type()) { + if (GetArenaForAllocation() == nullptr) { + delete type_kind_.map_type_; } clear_has_type_kind(); } } inline ::google::api::expr::v1alpha1::Type_MapType* Type::release_map_type() { // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Type.map_type) - if (type_kind_case() == kMapType) { + if (_internal_has_map_type()) { clear_has_type_kind(); - auto* temp = _impl_.type_kind_.map_type_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::google::api::expr::v1alpha1::Type_MapType* temp = type_kind_.map_type_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.type_kind_.map_type_ = nullptr; + type_kind_.map_type_ = nullptr; return temp; } else { return nullptr; } } inline const ::google::api::expr::v1alpha1::Type_MapType& Type::_internal_map_type() const { - return type_kind_case() == kMapType ? *_impl_.type_kind_.map_type_ : reinterpret_cast<::google::api::expr::v1alpha1::Type_MapType&>(::google::api::expr::v1alpha1::_Type_MapType_default_instance_); + return _internal_has_map_type() + ? *type_kind_.map_type_ + : reinterpret_cast< ::google::api::expr::v1alpha1::Type_MapType&>(::google::api::expr::v1alpha1::_Type_MapType_default_instance_); } -inline const ::google::api::expr::v1alpha1::Type_MapType& Type::map_type() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::Type_MapType& Type::map_type() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Type.map_type) return _internal_map_type(); } inline ::google::api::expr::v1alpha1::Type_MapType* Type::unsafe_arena_release_map_type() { // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1alpha1.Type.map_type) - if (type_kind_case() == kMapType) { + if (_internal_has_map_type()) { clear_has_type_kind(); - auto* temp = _impl_.type_kind_.map_type_; - _impl_.type_kind_.map_type_ = nullptr; + ::google::api::expr::v1alpha1::Type_MapType* temp = type_kind_.map_type_; + type_kind_.map_type_ = nullptr; return temp; } else { return nullptr; } } -inline void Type::unsafe_arena_set_allocated_map_type(::google::api::expr::v1alpha1::Type_MapType* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void Type::unsafe_arena_set_allocated_map_type(::google::api::expr::v1alpha1::Type_MapType* map_type) { clear_type_kind(); - if (value) { + if (map_type) { set_has_map_type(); - _impl_.type_kind_.map_type_ = value; + type_kind_.map_type_ = map_type; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Type.map_type) } inline ::google::api::expr::v1alpha1::Type_MapType* Type::_internal_mutable_map_type() { - if (type_kind_case() != kMapType) { + if (!_internal_has_map_type()) { clear_type_kind(); set_has_map_type(); - _impl_.type_kind_.map_type_ = CreateMaybeMessage<::google::api::expr::v1alpha1::Type_MapType>(GetArena()); + type_kind_.map_type_ = CreateMaybeMessage< ::google::api::expr::v1alpha1::Type_MapType >(GetArenaForAllocation()); } - return _impl_.type_kind_.map_type_; + return type_kind_.map_type_; } -inline ::google::api::expr::v1alpha1::Type_MapType* Type::mutable_map_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::Type_MapType* Type::mutable_map_type() { ::google::api::expr::v1alpha1::Type_MapType* _msg = _internal_mutable_map_type(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Type.map_type) return _msg; } // .google.api.expr.v1alpha1.Type.FunctionType function = 8 [json_name = "function"]; -inline bool Type::has_function() const { - return type_kind_case() == kFunction; -} inline bool Type::_internal_has_function() const { return type_kind_case() == kFunction; } +inline bool Type::has_function() const { + return _internal_has_function(); +} inline void Type::set_has_function() { - _impl_._oneof_case_[0] = kFunction; + _oneof_case_[0] = kFunction; } inline void Type::clear_function() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (type_kind_case() == kFunction) { - if (GetArena() == nullptr) { - delete _impl_.type_kind_.function_; + if (_internal_has_function()) { + if (GetArenaForAllocation() == nullptr) { + delete type_kind_.function_; } clear_has_type_kind(); } } inline ::google::api::expr::v1alpha1::Type_FunctionType* Type::release_function() { // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Type.function) - if (type_kind_case() == kFunction) { + if (_internal_has_function()) { clear_has_type_kind(); - auto* temp = _impl_.type_kind_.function_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::google::api::expr::v1alpha1::Type_FunctionType* temp = type_kind_.function_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.type_kind_.function_ = nullptr; + type_kind_.function_ = nullptr; return temp; } else { return nullptr; } } inline const ::google::api::expr::v1alpha1::Type_FunctionType& Type::_internal_function() const { - return type_kind_case() == kFunction ? *_impl_.type_kind_.function_ : reinterpret_cast<::google::api::expr::v1alpha1::Type_FunctionType&>(::google::api::expr::v1alpha1::_Type_FunctionType_default_instance_); + return _internal_has_function() + ? *type_kind_.function_ + : reinterpret_cast< ::google::api::expr::v1alpha1::Type_FunctionType&>(::google::api::expr::v1alpha1::_Type_FunctionType_default_instance_); } -inline const ::google::api::expr::v1alpha1::Type_FunctionType& Type::function() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::Type_FunctionType& Type::function() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Type.function) return _internal_function(); } inline ::google::api::expr::v1alpha1::Type_FunctionType* Type::unsafe_arena_release_function() { // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1alpha1.Type.function) - if (type_kind_case() == kFunction) { + if (_internal_has_function()) { clear_has_type_kind(); - auto* temp = _impl_.type_kind_.function_; - _impl_.type_kind_.function_ = nullptr; + ::google::api::expr::v1alpha1::Type_FunctionType* temp = type_kind_.function_; + type_kind_.function_ = nullptr; return temp; } else { return nullptr; } } -inline void Type::unsafe_arena_set_allocated_function(::google::api::expr::v1alpha1::Type_FunctionType* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void Type::unsafe_arena_set_allocated_function(::google::api::expr::v1alpha1::Type_FunctionType* function) { clear_type_kind(); - if (value) { + if (function) { set_has_function(); - _impl_.type_kind_.function_ = value; + type_kind_.function_ = function; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Type.function) } inline ::google::api::expr::v1alpha1::Type_FunctionType* Type::_internal_mutable_function() { - if (type_kind_case() != kFunction) { + if (!_internal_has_function()) { clear_type_kind(); set_has_function(); - _impl_.type_kind_.function_ = CreateMaybeMessage<::google::api::expr::v1alpha1::Type_FunctionType>(GetArena()); + type_kind_.function_ = CreateMaybeMessage< ::google::api::expr::v1alpha1::Type_FunctionType >(GetArenaForAllocation()); } - return _impl_.type_kind_.function_; + return type_kind_.function_; } -inline ::google::api::expr::v1alpha1::Type_FunctionType* Type::mutable_function() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::Type_FunctionType* Type::mutable_function() { ::google::api::expr::v1alpha1::Type_FunctionType* _msg = _internal_mutable_function(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Type.function) return _msg; } // string message_type = 9 [json_name = "messageType"]; -inline bool Type::has_message_type() const { +inline bool Type::_internal_has_message_type() const { return type_kind_case() == kMessageType; } +inline bool Type::has_message_type() const { + return _internal_has_message_type(); +} inline void Type::set_has_message_type() { - _impl_._oneof_case_[0] = kMessageType; + _oneof_case_[0] = kMessageType; } inline void Type::clear_message_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (type_kind_case() == kMessageType) { - _impl_.type_kind_.message_type_.Destroy(); + if (_internal_has_message_type()) { + type_kind_.message_type_.Destroy(); clear_has_type_kind(); } } -inline const std::string& Type::message_type() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Type::message_type() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Type.message_type) return _internal_message_type(); } -template -inline PROTOBUF_ALWAYS_INLINE void Type::set_message_type(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (type_kind_case() != kMessageType) { +template +inline void Type::set_message_type(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_message_type()) { clear_type_kind(); - set_has_message_type(); - _impl_.type_kind_.message_type_.InitDefault(); + type_kind_.message_type_.InitDefault(); } - _impl_.type_kind_.message_type_.Set(static_cast(arg), args..., GetArena()); + type_kind_.message_type_.Set( static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Type.message_type) } -inline std::string* Type::mutable_message_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Type::mutable_message_type() { std::string* _s = _internal_mutable_message_type(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Type.message_type) return _s; } inline const std::string& Type::_internal_message_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - if (type_kind_case() != kMessageType) { - return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); + if (_internal_has_message_type()) { + return type_kind_.message_type_.Get(); } - return _impl_.type_kind_.message_type_.Get(); + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } inline void Type::_internal_set_message_type(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (type_kind_case() != kMessageType) { + if (!_internal_has_message_type()) { clear_type_kind(); - set_has_message_type(); - _impl_.type_kind_.message_type_.InitDefault(); + type_kind_.message_type_.InitDefault(); } - _impl_.type_kind_.message_type_.Set(value, GetArena()); + type_kind_.message_type_.Set(value, GetArenaForAllocation()); } inline std::string* Type::_internal_mutable_message_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (type_kind_case() != kMessageType) { + if (!_internal_has_message_type()) { clear_type_kind(); - set_has_message_type(); - _impl_.type_kind_.message_type_.InitDefault(); + type_kind_.message_type_.InitDefault(); } - return _impl_.type_kind_.message_type_.Mutable( GetArena()); + return type_kind_.message_type_.Mutable( GetArenaForAllocation()); } inline std::string* Type::release_message_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Type.message_type) - if (type_kind_case() != kMessageType) { + if (_internal_has_message_type()) { + clear_has_type_kind(); + return type_kind_.message_type_.Release(); + } else { return nullptr; } - clear_has_type_kind(); - return _impl_.type_kind_.message_type_.Release(); } -inline void Type::set_allocated_message_type(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Type::set_allocated_message_type(std::string* message_type) { if (has_type_kind()) { clear_type_kind(); } - if (value != nullptr) { + if (message_type != nullptr) { set_has_message_type(); - _impl_.type_kind_.message_type_.InitAllocated(value, GetArena()); + type_kind_.message_type_.InitAllocated(message_type, GetArenaForAllocation()); } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Type.message_type) } // string type_param = 10 [json_name = "typeParam"]; -inline bool Type::has_type_param() const { +inline bool Type::_internal_has_type_param() const { return type_kind_case() == kTypeParam; } +inline bool Type::has_type_param() const { + return _internal_has_type_param(); +} inline void Type::set_has_type_param() { - _impl_._oneof_case_[0] = kTypeParam; + _oneof_case_[0] = kTypeParam; } inline void Type::clear_type_param() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (type_kind_case() == kTypeParam) { - _impl_.type_kind_.type_param_.Destroy(); + if (_internal_has_type_param()) { + type_kind_.type_param_.Destroy(); clear_has_type_kind(); } } -inline const std::string& Type::type_param() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Type::type_param() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Type.type_param) return _internal_type_param(); } -template -inline PROTOBUF_ALWAYS_INLINE void Type::set_type_param(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (type_kind_case() != kTypeParam) { +template +inline void Type::set_type_param(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_type_param()) { clear_type_kind(); - set_has_type_param(); - _impl_.type_kind_.type_param_.InitDefault(); + type_kind_.type_param_.InitDefault(); } - _impl_.type_kind_.type_param_.Set(static_cast(arg), args..., GetArena()); + type_kind_.type_param_.Set( static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Type.type_param) } -inline std::string* Type::mutable_type_param() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Type::mutable_type_param() { std::string* _s = _internal_mutable_type_param(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Type.type_param) return _s; } inline const std::string& Type::_internal_type_param() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - if (type_kind_case() != kTypeParam) { - return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); + if (_internal_has_type_param()) { + return type_kind_.type_param_.Get(); } - return _impl_.type_kind_.type_param_.Get(); + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } inline void Type::_internal_set_type_param(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (type_kind_case() != kTypeParam) { + if (!_internal_has_type_param()) { clear_type_kind(); - set_has_type_param(); - _impl_.type_kind_.type_param_.InitDefault(); + type_kind_.type_param_.InitDefault(); } - _impl_.type_kind_.type_param_.Set(value, GetArena()); + type_kind_.type_param_.Set(value, GetArenaForAllocation()); } inline std::string* Type::_internal_mutable_type_param() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (type_kind_case() != kTypeParam) { + if (!_internal_has_type_param()) { clear_type_kind(); - set_has_type_param(); - _impl_.type_kind_.type_param_.InitDefault(); + type_kind_.type_param_.InitDefault(); } - return _impl_.type_kind_.type_param_.Mutable( GetArena()); + return type_kind_.type_param_.Mutable( GetArenaForAllocation()); } inline std::string* Type::release_type_param() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Type.type_param) - if (type_kind_case() != kTypeParam) { + if (_internal_has_type_param()) { + clear_has_type_kind(); + return type_kind_.type_param_.Release(); + } else { return nullptr; } - clear_has_type_kind(); - return _impl_.type_kind_.type_param_.Release(); } -inline void Type::set_allocated_type_param(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Type::set_allocated_type_param(std::string* type_param) { if (has_type_kind()) { clear_type_kind(); } - if (value != nullptr) { + if (type_param != nullptr) { set_has_type_param(); - _impl_.type_kind_.type_param_.InitAllocated(value, GetArena()); + type_kind_.type_param_.InitAllocated(type_param, GetArenaForAllocation()); } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Type.type_param) } // .google.api.expr.v1alpha1.Type type = 11 [json_name = "type"]; -inline bool Type::has_type() const { - return type_kind_case() == kType; -} inline bool Type::_internal_has_type() const { return type_kind_case() == kType; } +inline bool Type::has_type() const { + return _internal_has_type(); +} inline void Type::set_has_type() { - _impl_._oneof_case_[0] = kType; + _oneof_case_[0] = kType; } inline void Type::clear_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (type_kind_case() == kType) { - if (GetArena() == nullptr) { - delete _impl_.type_kind_.type_; + if (_internal_has_type()) { + if (GetArenaForAllocation() == nullptr) { + delete type_kind_.type_; } clear_has_type_kind(); } } inline ::google::api::expr::v1alpha1::Type* Type::release_type() { // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Type.type) - if (type_kind_case() == kType) { + if (_internal_has_type()) { clear_has_type_kind(); - auto* temp = _impl_.type_kind_.type_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::google::api::expr::v1alpha1::Type* temp = type_kind_.type_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.type_kind_.type_ = nullptr; + type_kind_.type_ = nullptr; return temp; } else { return nullptr; } } inline const ::google::api::expr::v1alpha1::Type& Type::_internal_type() const { - return type_kind_case() == kType ? *_impl_.type_kind_.type_ : reinterpret_cast<::google::api::expr::v1alpha1::Type&>(::google::api::expr::v1alpha1::_Type_default_instance_); + return _internal_has_type() + ? *type_kind_.type_ + : reinterpret_cast< ::google::api::expr::v1alpha1::Type&>(::google::api::expr::v1alpha1::_Type_default_instance_); } -inline const ::google::api::expr::v1alpha1::Type& Type::type() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::Type& Type::type() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Type.type) return _internal_type(); } inline ::google::api::expr::v1alpha1::Type* Type::unsafe_arena_release_type() { // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1alpha1.Type.type) - if (type_kind_case() == kType) { + if (_internal_has_type()) { clear_has_type_kind(); - auto* temp = _impl_.type_kind_.type_; - _impl_.type_kind_.type_ = nullptr; + ::google::api::expr::v1alpha1::Type* temp = type_kind_.type_; + type_kind_.type_ = nullptr; return temp; } else { return nullptr; } } -inline void Type::unsafe_arena_set_allocated_type(::google::api::expr::v1alpha1::Type* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void Type::unsafe_arena_set_allocated_type(::google::api::expr::v1alpha1::Type* type) { clear_type_kind(); - if (value) { + if (type) { set_has_type(); - _impl_.type_kind_.type_ = value; + type_kind_.type_ = type; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Type.type) } inline ::google::api::expr::v1alpha1::Type* Type::_internal_mutable_type() { - if (type_kind_case() != kType) { + if (!_internal_has_type()) { clear_type_kind(); set_has_type(); - _impl_.type_kind_.type_ = CreateMaybeMessage<::google::api::expr::v1alpha1::Type>(GetArena()); + type_kind_.type_ = CreateMaybeMessage< ::google::api::expr::v1alpha1::Type >(GetArenaForAllocation()); } - return _impl_.type_kind_.type_; + return type_kind_.type_; } -inline ::google::api::expr::v1alpha1::Type* Type::mutable_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::Type* Type::mutable_type() { ::google::api::expr::v1alpha1::Type* _msg = _internal_mutable_type(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Type.type) return _msg; } // .google.protobuf.Empty error = 12 [json_name = "error"]; -inline bool Type::has_error() const { - return type_kind_case() == kError; -} inline bool Type::_internal_has_error() const { return type_kind_case() == kError; } +inline bool Type::has_error() const { + return _internal_has_error(); +} inline void Type::set_has_error() { - _impl_._oneof_case_[0] = kError; + _oneof_case_[0] = kError; } -inline ::google::protobuf::Empty* Type::release_error() { +inline ::PROTOBUF_NAMESPACE_ID::Empty* Type::release_error() { // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Type.error) - if (type_kind_case() == kError) { + if (_internal_has_error()) { clear_has_type_kind(); - auto* temp = _impl_.type_kind_.error_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::PROTOBUF_NAMESPACE_ID::Empty* temp = type_kind_.error_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.type_kind_.error_ = nullptr; + type_kind_.error_ = nullptr; return temp; } else { return nullptr; } } -inline const ::google::protobuf::Empty& Type::_internal_error() const { - return type_kind_case() == kError ? *_impl_.type_kind_.error_ : reinterpret_cast<::google::protobuf::Empty&>(::google::protobuf::_Empty_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Empty& Type::_internal_error() const { + return _internal_has_error() + ? *type_kind_.error_ + : reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::Empty&>(::PROTOBUF_NAMESPACE_ID::_Empty_default_instance_); } -inline const ::google::protobuf::Empty& Type::error() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Empty& Type::error() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Type.error) return _internal_error(); } -inline ::google::protobuf::Empty* Type::unsafe_arena_release_error() { +inline ::PROTOBUF_NAMESPACE_ID::Empty* Type::unsafe_arena_release_error() { // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1alpha1.Type.error) - if (type_kind_case() == kError) { + if (_internal_has_error()) { clear_has_type_kind(); - auto* temp = _impl_.type_kind_.error_; - _impl_.type_kind_.error_ = nullptr; + ::PROTOBUF_NAMESPACE_ID::Empty* temp = type_kind_.error_; + type_kind_.error_ = nullptr; return temp; } else { return nullptr; } } -inline void Type::unsafe_arena_set_allocated_error(::google::protobuf::Empty* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void Type::unsafe_arena_set_allocated_error(::PROTOBUF_NAMESPACE_ID::Empty* error) { clear_type_kind(); - if (value) { + if (error) { set_has_error(); - _impl_.type_kind_.error_ = value; + type_kind_.error_ = error; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Type.error) } -inline ::google::protobuf::Empty* Type::_internal_mutable_error() { - if (type_kind_case() != kError) { +inline ::PROTOBUF_NAMESPACE_ID::Empty* Type::_internal_mutable_error() { + if (!_internal_has_error()) { clear_type_kind(); set_has_error(); - _impl_.type_kind_.error_ = CreateMaybeMessage<::google::protobuf::Empty>(GetArena()); + type_kind_.error_ = CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::Empty >(GetArenaForAllocation()); } - return _impl_.type_kind_.error_; + return type_kind_.error_; } -inline ::google::protobuf::Empty* Type::mutable_error() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Empty* _msg = _internal_mutable_error(); +inline ::PROTOBUF_NAMESPACE_ID::Empty* Type::mutable_error() { + ::PROTOBUF_NAMESPACE_ID::Empty* _msg = _internal_mutable_error(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Type.error) return _msg; } // .google.api.expr.v1alpha1.Type.AbstractType abstract_type = 14 [json_name = "abstractType"]; -inline bool Type::has_abstract_type() const { - return type_kind_case() == kAbstractType; -} inline bool Type::_internal_has_abstract_type() const { return type_kind_case() == kAbstractType; } +inline bool Type::has_abstract_type() const { + return _internal_has_abstract_type(); +} inline void Type::set_has_abstract_type() { - _impl_._oneof_case_[0] = kAbstractType; + _oneof_case_[0] = kAbstractType; } inline void Type::clear_abstract_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (type_kind_case() == kAbstractType) { - if (GetArena() == nullptr) { - delete _impl_.type_kind_.abstract_type_; + if (_internal_has_abstract_type()) { + if (GetArenaForAllocation() == nullptr) { + delete type_kind_.abstract_type_; } clear_has_type_kind(); } } inline ::google::api::expr::v1alpha1::Type_AbstractType* Type::release_abstract_type() { // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Type.abstract_type) - if (type_kind_case() == kAbstractType) { + if (_internal_has_abstract_type()) { clear_has_type_kind(); - auto* temp = _impl_.type_kind_.abstract_type_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::google::api::expr::v1alpha1::Type_AbstractType* temp = type_kind_.abstract_type_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.type_kind_.abstract_type_ = nullptr; + type_kind_.abstract_type_ = nullptr; return temp; } else { return nullptr; } } inline const ::google::api::expr::v1alpha1::Type_AbstractType& Type::_internal_abstract_type() const { - return type_kind_case() == kAbstractType ? *_impl_.type_kind_.abstract_type_ : reinterpret_cast<::google::api::expr::v1alpha1::Type_AbstractType&>(::google::api::expr::v1alpha1::_Type_AbstractType_default_instance_); + return _internal_has_abstract_type() + ? *type_kind_.abstract_type_ + : reinterpret_cast< ::google::api::expr::v1alpha1::Type_AbstractType&>(::google::api::expr::v1alpha1::_Type_AbstractType_default_instance_); } -inline const ::google::api::expr::v1alpha1::Type_AbstractType& Type::abstract_type() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::Type_AbstractType& Type::abstract_type() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Type.abstract_type) return _internal_abstract_type(); } inline ::google::api::expr::v1alpha1::Type_AbstractType* Type::unsafe_arena_release_abstract_type() { // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1alpha1.Type.abstract_type) - if (type_kind_case() == kAbstractType) { + if (_internal_has_abstract_type()) { clear_has_type_kind(); - auto* temp = _impl_.type_kind_.abstract_type_; - _impl_.type_kind_.abstract_type_ = nullptr; + ::google::api::expr::v1alpha1::Type_AbstractType* temp = type_kind_.abstract_type_; + type_kind_.abstract_type_ = nullptr; return temp; } else { return nullptr; } } -inline void Type::unsafe_arena_set_allocated_abstract_type(::google::api::expr::v1alpha1::Type_AbstractType* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void Type::unsafe_arena_set_allocated_abstract_type(::google::api::expr::v1alpha1::Type_AbstractType* abstract_type) { clear_type_kind(); - if (value) { + if (abstract_type) { set_has_abstract_type(); - _impl_.type_kind_.abstract_type_ = value; + type_kind_.abstract_type_ = abstract_type; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Type.abstract_type) } inline ::google::api::expr::v1alpha1::Type_AbstractType* Type::_internal_mutable_abstract_type() { - if (type_kind_case() != kAbstractType) { + if (!_internal_has_abstract_type()) { clear_type_kind(); set_has_abstract_type(); - _impl_.type_kind_.abstract_type_ = CreateMaybeMessage<::google::api::expr::v1alpha1::Type_AbstractType>(GetArena()); + type_kind_.abstract_type_ = CreateMaybeMessage< ::google::api::expr::v1alpha1::Type_AbstractType >(GetArenaForAllocation()); } - return _impl_.type_kind_.abstract_type_; + return type_kind_.abstract_type_; } -inline ::google::api::expr::v1alpha1::Type_AbstractType* Type::mutable_abstract_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::Type_AbstractType* Type::mutable_abstract_type() { ::google::api::expr::v1alpha1::Type_AbstractType* _msg = _internal_mutable_abstract_type(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Type.abstract_type) return _msg; @@ -4630,252 +4218,237 @@ inline bool Type::has_type_kind() const { return type_kind_case() != TYPE_KIND_NOT_SET; } inline void Type::clear_has_type_kind() { - _impl_._oneof_case_[0] = TYPE_KIND_NOT_SET; + _oneof_case_[0] = TYPE_KIND_NOT_SET; } inline Type::TypeKindCase Type::type_kind_case() const { - return Type::TypeKindCase(_impl_._oneof_case_[0]); + return Type::TypeKindCase(_oneof_case_[0]); } // ------------------------------------------------------------------- // Decl_IdentDecl // .google.api.expr.v1alpha1.Type type = 1 [json_name = "type"]; +inline bool Decl_IdentDecl::_internal_has_type() const { + return this != internal_default_instance() && type_ != nullptr; +} inline bool Decl_IdentDecl::has_type() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.type_ != nullptr); - return value; + return _internal_has_type(); } inline void Decl_IdentDecl::clear_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.type_ != nullptr) _impl_.type_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && type_ != nullptr) { + delete type_; + } + type_ = nullptr; } inline const ::google::api::expr::v1alpha1::Type& Decl_IdentDecl::_internal_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::expr::v1alpha1::Type* p = _impl_.type_; - return p != nullptr ? *p : reinterpret_cast(::google::api::expr::v1alpha1::_Type_default_instance_); + const ::google::api::expr::v1alpha1::Type* p = type_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1alpha1::_Type_default_instance_); } -inline const ::google::api::expr::v1alpha1::Type& Decl_IdentDecl::type() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::Type& Decl_IdentDecl::type() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Decl.IdentDecl.type) return _internal_type(); } -inline void Decl_IdentDecl::unsafe_arena_set_allocated_type(::google::api::expr::v1alpha1::Type* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.type_); +inline void Decl_IdentDecl::unsafe_arena_set_allocated_type( + ::google::api::expr::v1alpha1::Type* type) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(type_); } - _impl_.type_ = reinterpret_cast<::google::api::expr::v1alpha1::Type*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + type_ = type; + if (type) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Decl.IdentDecl.type) } inline ::google::api::expr::v1alpha1::Type* Decl_IdentDecl::release_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::expr::v1alpha1::Type* released = _impl_.type_; - _impl_.type_ = nullptr; + + ::google::api::expr::v1alpha1::Type* temp = type_; + type_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::expr::v1alpha1::Type* Decl_IdentDecl::unsafe_arena_release_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Decl.IdentDecl.type) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::expr::v1alpha1::Type* temp = _impl_.type_; - _impl_.type_ = nullptr; + + ::google::api::expr::v1alpha1::Type* temp = type_; + type_ = nullptr; return temp; } inline ::google::api::expr::v1alpha1::Type* Decl_IdentDecl::_internal_mutable_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.type_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Type>(GetArena()); - _impl_.type_ = reinterpret_cast<::google::api::expr::v1alpha1::Type*>(p); + + if (type_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Type>(GetArenaForAllocation()); + type_ = p; } - return _impl_.type_; + return type_; } -inline ::google::api::expr::v1alpha1::Type* Decl_IdentDecl::mutable_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::Type* Decl_IdentDecl::mutable_type() { ::google::api::expr::v1alpha1::Type* _msg = _internal_mutable_type(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Decl.IdentDecl.type) return _msg; } -inline void Decl_IdentDecl::set_allocated_type(::google::api::expr::v1alpha1::Type* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Decl_IdentDecl::set_allocated_type(::google::api::expr::v1alpha1::Type* type) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::api::expr::v1alpha1::Type*>(_impl_.type_); + delete type_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::api::expr::v1alpha1::Type*>(value)->GetArena(); + if (type) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(type); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + type = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, type, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.type_ = reinterpret_cast<::google::api::expr::v1alpha1::Type*>(value); + type_ = type; // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Decl.IdentDecl.type) } // .google.api.expr.v1alpha1.Constant value = 2 [json_name = "value"]; +inline bool Decl_IdentDecl::_internal_has_value() const { + return this != internal_default_instance() && value_ != nullptr; +} inline bool Decl_IdentDecl::has_value() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.value_ != nullptr); - return value; + return _internal_has_value(); } inline const ::google::api::expr::v1alpha1::Constant& Decl_IdentDecl::_internal_value() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::expr::v1alpha1::Constant* p = _impl_.value_; - return p != nullptr ? *p : reinterpret_cast(::google::api::expr::v1alpha1::_Constant_default_instance_); + const ::google::api::expr::v1alpha1::Constant* p = value_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1alpha1::_Constant_default_instance_); } -inline const ::google::api::expr::v1alpha1::Constant& Decl_IdentDecl::value() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::Constant& Decl_IdentDecl::value() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Decl.IdentDecl.value) return _internal_value(); } -inline void Decl_IdentDecl::unsafe_arena_set_allocated_value(::google::api::expr::v1alpha1::Constant* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.value_); +inline void Decl_IdentDecl::unsafe_arena_set_allocated_value( + ::google::api::expr::v1alpha1::Constant* value) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(value_); } - _impl_.value_ = reinterpret_cast<::google::api::expr::v1alpha1::Constant*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + value_ = value; + if (value) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Decl.IdentDecl.value) } inline ::google::api::expr::v1alpha1::Constant* Decl_IdentDecl::release_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::api::expr::v1alpha1::Constant* released = _impl_.value_; - _impl_.value_ = nullptr; + + ::google::api::expr::v1alpha1::Constant* temp = value_; + value_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::expr::v1alpha1::Constant* Decl_IdentDecl::unsafe_arena_release_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Decl.IdentDecl.value) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::api::expr::v1alpha1::Constant* temp = _impl_.value_; - _impl_.value_ = nullptr; + + ::google::api::expr::v1alpha1::Constant* temp = value_; + value_ = nullptr; return temp; } inline ::google::api::expr::v1alpha1::Constant* Decl_IdentDecl::_internal_mutable_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.value_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Constant>(GetArena()); - _impl_.value_ = reinterpret_cast<::google::api::expr::v1alpha1::Constant*>(p); + + if (value_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Constant>(GetArenaForAllocation()); + value_ = p; } - return _impl_.value_; + return value_; } -inline ::google::api::expr::v1alpha1::Constant* Decl_IdentDecl::mutable_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::Constant* Decl_IdentDecl::mutable_value() { ::google::api::expr::v1alpha1::Constant* _msg = _internal_mutable_value(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Decl.IdentDecl.value) return _msg; } inline void Decl_IdentDecl::set_allocated_value(::google::api::expr::v1alpha1::Constant* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.value_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(value_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (value) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(value)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, value, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.value_ = reinterpret_cast<::google::api::expr::v1alpha1::Constant*>(value); + value_ = value; // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Decl.IdentDecl.value) } // string doc = 3 [json_name = "doc"]; inline void Decl_IdentDecl::clear_doc() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.doc_.ClearToEmpty(); + doc_.ClearToEmpty(); } -inline const std::string& Decl_IdentDecl::doc() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Decl_IdentDecl::doc() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Decl.IdentDecl.doc) return _internal_doc(); } -template -inline PROTOBUF_ALWAYS_INLINE void Decl_IdentDecl::set_doc(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.doc_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Decl_IdentDecl::set_doc(ArgT0&& arg0, ArgT... args) { + + doc_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Decl.IdentDecl.doc) } -inline std::string* Decl_IdentDecl::mutable_doc() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Decl_IdentDecl::mutable_doc() { std::string* _s = _internal_mutable_doc(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Decl.IdentDecl.doc) return _s; } inline const std::string& Decl_IdentDecl::_internal_doc() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.doc_.Get(); + return doc_.Get(); } inline void Decl_IdentDecl::_internal_set_doc(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.doc_.Set(value, GetArena()); + + doc_.Set(value, GetArenaForAllocation()); } inline std::string* Decl_IdentDecl::_internal_mutable_doc() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.doc_.Mutable( GetArena()); + + return doc_.Mutable(GetArenaForAllocation()); } inline std::string* Decl_IdentDecl::release_doc() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Decl.IdentDecl.doc) - return _impl_.doc_.Release(); -} -inline void Decl_IdentDecl::set_allocated_doc(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.doc_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.doc_.IsDefault()) { - _impl_.doc_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return doc_.Release(); +} +inline void Decl_IdentDecl::set_allocated_doc(std::string* doc) { + if (doc != nullptr) { + + } else { + + } + doc_.SetAllocated(doc, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (doc_.IsDefault()) { + doc_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Decl.IdentDecl.doc) } @@ -4885,376 +4458,326 @@ inline void Decl_IdentDecl::set_allocated_doc(std::string* value) { // string overload_id = 1 [json_name = "overloadId"]; inline void Decl_FunctionDecl_Overload::clear_overload_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.overload_id_.ClearToEmpty(); + overload_id_.ClearToEmpty(); } -inline const std::string& Decl_FunctionDecl_Overload::overload_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Decl_FunctionDecl_Overload::overload_id() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.overload_id) return _internal_overload_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void Decl_FunctionDecl_Overload::set_overload_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.overload_id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Decl_FunctionDecl_Overload::set_overload_id(ArgT0&& arg0, ArgT... args) { + + overload_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.overload_id) } -inline std::string* Decl_FunctionDecl_Overload::mutable_overload_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Decl_FunctionDecl_Overload::mutable_overload_id() { std::string* _s = _internal_mutable_overload_id(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.overload_id) return _s; } inline const std::string& Decl_FunctionDecl_Overload::_internal_overload_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.overload_id_.Get(); + return overload_id_.Get(); } inline void Decl_FunctionDecl_Overload::_internal_set_overload_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.overload_id_.Set(value, GetArena()); + + overload_id_.Set(value, GetArenaForAllocation()); } inline std::string* Decl_FunctionDecl_Overload::_internal_mutable_overload_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.overload_id_.Mutable( GetArena()); + + return overload_id_.Mutable(GetArenaForAllocation()); } inline std::string* Decl_FunctionDecl_Overload::release_overload_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.overload_id) - return _impl_.overload_id_.Release(); -} -inline void Decl_FunctionDecl_Overload::set_allocated_overload_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.overload_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.overload_id_.IsDefault()) { - _impl_.overload_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return overload_id_.Release(); +} +inline void Decl_FunctionDecl_Overload::set_allocated_overload_id(std::string* overload_id) { + if (overload_id != nullptr) { + + } else { + + } + overload_id_.SetAllocated(overload_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (overload_id_.IsDefault()) { + overload_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.overload_id) } // repeated .google.api.expr.v1alpha1.Type params = 2 [json_name = "params"]; inline int Decl_FunctionDecl_Overload::_internal_params_size() const { - return _internal_params().size(); + return params_.size(); } inline int Decl_FunctionDecl_Overload::params_size() const { return _internal_params_size(); } inline void Decl_FunctionDecl_Overload::clear_params() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.params_.Clear(); + params_.Clear(); } -inline ::google::api::expr::v1alpha1::Type* Decl_FunctionDecl_Overload::mutable_params(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::Type* Decl_FunctionDecl_Overload::mutable_params(int index) { // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.params) - return _internal_mutable_params()->Mutable(index); + return params_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Type>* Decl_FunctionDecl_Overload::mutable_params() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Type >* +Decl_FunctionDecl_Overload::mutable_params() { // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.params) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_params(); + return ¶ms_; +} +inline const ::google::api::expr::v1alpha1::Type& Decl_FunctionDecl_Overload::_internal_params(int index) const { + return params_.Get(index); } -inline const ::google::api::expr::v1alpha1::Type& Decl_FunctionDecl_Overload::params(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::Type& Decl_FunctionDecl_Overload::params(int index) const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.params) - return _internal_params().Get(index); + return _internal_params(index); } -inline ::google::api::expr::v1alpha1::Type* Decl_FunctionDecl_Overload::add_params() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::google::api::expr::v1alpha1::Type* _add = _internal_mutable_params()->Add(); +inline ::google::api::expr::v1alpha1::Type* Decl_FunctionDecl_Overload::_internal_add_params() { + return params_.Add(); +} +inline ::google::api::expr::v1alpha1::Type* Decl_FunctionDecl_Overload::add_params() { + ::google::api::expr::v1alpha1::Type* _add = _internal_add_params(); // @@protoc_insertion_point(field_add:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.params) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Type>& Decl_FunctionDecl_Overload::params() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Type >& +Decl_FunctionDecl_Overload::params() const { // @@protoc_insertion_point(field_list:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.params) - return _internal_params(); -} -inline const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Type>& -Decl_FunctionDecl_Overload::_internal_params() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.params_; -} -inline ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Type>* -Decl_FunctionDecl_Overload::_internal_mutable_params() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.params_; + return params_; } // repeated string type_params = 3 [json_name = "typeParams"]; inline int Decl_FunctionDecl_Overload::_internal_type_params_size() const { - return _internal_type_params().size(); + return type_params_.size(); } inline int Decl_FunctionDecl_Overload::type_params_size() const { return _internal_type_params_size(); } inline void Decl_FunctionDecl_Overload::clear_type_params() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_params_.Clear(); + type_params_.Clear(); } -inline std::string* Decl_FunctionDecl_Overload::add_type_params() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_type_params()->Add(); +inline std::string* Decl_FunctionDecl_Overload::add_type_params() { + std::string* _s = _internal_add_type_params(); // @@protoc_insertion_point(field_add_mutable:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.type_params) return _s; } -inline const std::string& Decl_FunctionDecl_Overload::type_params(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Decl_FunctionDecl_Overload::_internal_type_params(int index) const { + return type_params_.Get(index); +} +inline const std::string& Decl_FunctionDecl_Overload::type_params(int index) const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.type_params) - return _internal_type_params().Get(index); + return _internal_type_params(index); } -inline std::string* Decl_FunctionDecl_Overload::mutable_type_params(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Decl_FunctionDecl_Overload::mutable_type_params(int index) { // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.type_params) - return _internal_mutable_type_params()->Mutable(index); + return type_params_.Mutable(index); } inline void Decl_FunctionDecl_Overload::set_type_params(int index, const std::string& value) { - _internal_mutable_type_params()->Mutable(index)->assign(value); + type_params_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.type_params) } inline void Decl_FunctionDecl_Overload::set_type_params(int index, std::string&& value) { - _internal_mutable_type_params()->Mutable(index)->assign(std::move(value)); + type_params_.Mutable(index)->assign(std::move(value)); // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.type_params) } inline void Decl_FunctionDecl_Overload::set_type_params(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_type_params()->Mutable(index)->assign(value); + GOOGLE_DCHECK(value != nullptr); + type_params_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.type_params) } -inline void Decl_FunctionDecl_Overload::set_type_params(int index, const char* value, - std::size_t size) { - _internal_mutable_type_params()->Mutable(index)->assign( - reinterpret_cast(value), size); +inline void Decl_FunctionDecl_Overload::set_type_params(int index, const char* value, size_t size) { + type_params_.Mutable(index)->assign( + reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.type_params) } -inline void Decl_FunctionDecl_Overload::set_type_params(int index, absl::string_view value) { - _internal_mutable_type_params()->Mutable(index)->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_set_string_piece:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.type_params) +inline std::string* Decl_FunctionDecl_Overload::_internal_add_type_params() { + return type_params_.Add(); } inline void Decl_FunctionDecl_Overload::add_type_params(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_type_params()->Add()->assign(value); + type_params_.Add()->assign(value); // @@protoc_insertion_point(field_add:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.type_params) } inline void Decl_FunctionDecl_Overload::add_type_params(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_type_params()->Add(std::move(value)); + type_params_.Add(std::move(value)); // @@protoc_insertion_point(field_add:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.type_params) } inline void Decl_FunctionDecl_Overload::add_type_params(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_type_params()->Add()->assign(value); + GOOGLE_DCHECK(value != nullptr); + type_params_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.type_params) } -inline void Decl_FunctionDecl_Overload::add_type_params(const char* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_type_params()->Add()->assign( - reinterpret_cast(value), size); +inline void Decl_FunctionDecl_Overload::add_type_params(const char* value, size_t size) { + type_params_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.type_params) } -inline void Decl_FunctionDecl_Overload::add_type_params(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_type_params()->Add()->assign(value.data(), value.size()); - // @@protoc_insertion_point(field_add_string_piece:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.type_params) -} -inline const ::google::protobuf::RepeatedPtrField& -Decl_FunctionDecl_Overload::type_params() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +Decl_FunctionDecl_Overload::type_params() const { // @@protoc_insertion_point(field_list:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.type_params) - return _internal_type_params(); + return type_params_; } -inline ::google::protobuf::RepeatedPtrField* -Decl_FunctionDecl_Overload::mutable_type_params() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +Decl_FunctionDecl_Overload::mutable_type_params() { // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.type_params) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_type_params(); -} -inline const ::google::protobuf::RepeatedPtrField& -Decl_FunctionDecl_Overload::_internal_type_params() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.type_params_; -} -inline ::google::protobuf::RepeatedPtrField* -Decl_FunctionDecl_Overload::_internal_mutable_type_params() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.type_params_; + return &type_params_; } // .google.api.expr.v1alpha1.Type result_type = 4 [json_name = "resultType"]; +inline bool Decl_FunctionDecl_Overload::_internal_has_result_type() const { + return this != internal_default_instance() && result_type_ != nullptr; +} inline bool Decl_FunctionDecl_Overload::has_result_type() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.result_type_ != nullptr); - return value; + return _internal_has_result_type(); } inline void Decl_FunctionDecl_Overload::clear_result_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.result_type_ != nullptr) _impl_.result_type_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && result_type_ != nullptr) { + delete result_type_; + } + result_type_ = nullptr; } inline const ::google::api::expr::v1alpha1::Type& Decl_FunctionDecl_Overload::_internal_result_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::expr::v1alpha1::Type* p = _impl_.result_type_; - return p != nullptr ? *p : reinterpret_cast(::google::api::expr::v1alpha1::_Type_default_instance_); + const ::google::api::expr::v1alpha1::Type* p = result_type_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1alpha1::_Type_default_instance_); } -inline const ::google::api::expr::v1alpha1::Type& Decl_FunctionDecl_Overload::result_type() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::Type& Decl_FunctionDecl_Overload::result_type() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.result_type) return _internal_result_type(); } -inline void Decl_FunctionDecl_Overload::unsafe_arena_set_allocated_result_type(::google::api::expr::v1alpha1::Type* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.result_type_); +inline void Decl_FunctionDecl_Overload::unsafe_arena_set_allocated_result_type( + ::google::api::expr::v1alpha1::Type* result_type) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(result_type_); } - _impl_.result_type_ = reinterpret_cast<::google::api::expr::v1alpha1::Type*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + result_type_ = result_type; + if (result_type) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.result_type) } inline ::google::api::expr::v1alpha1::Type* Decl_FunctionDecl_Overload::release_result_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::expr::v1alpha1::Type* released = _impl_.result_type_; - _impl_.result_type_ = nullptr; + + ::google::api::expr::v1alpha1::Type* temp = result_type_; + result_type_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::expr::v1alpha1::Type* Decl_FunctionDecl_Overload::unsafe_arena_release_result_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.result_type) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::expr::v1alpha1::Type* temp = _impl_.result_type_; - _impl_.result_type_ = nullptr; + + ::google::api::expr::v1alpha1::Type* temp = result_type_; + result_type_ = nullptr; return temp; } inline ::google::api::expr::v1alpha1::Type* Decl_FunctionDecl_Overload::_internal_mutable_result_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.result_type_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Type>(GetArena()); - _impl_.result_type_ = reinterpret_cast<::google::api::expr::v1alpha1::Type*>(p); + + if (result_type_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Type>(GetArenaForAllocation()); + result_type_ = p; } - return _impl_.result_type_; + return result_type_; } -inline ::google::api::expr::v1alpha1::Type* Decl_FunctionDecl_Overload::mutable_result_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::Type* Decl_FunctionDecl_Overload::mutable_result_type() { ::google::api::expr::v1alpha1::Type* _msg = _internal_mutable_result_type(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.result_type) return _msg; } -inline void Decl_FunctionDecl_Overload::set_allocated_result_type(::google::api::expr::v1alpha1::Type* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Decl_FunctionDecl_Overload::set_allocated_result_type(::google::api::expr::v1alpha1::Type* result_type) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::api::expr::v1alpha1::Type*>(_impl_.result_type_); + delete result_type_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::api::expr::v1alpha1::Type*>(value)->GetArena(); + if (result_type) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(result_type); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + result_type = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, result_type, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.result_type_ = reinterpret_cast<::google::api::expr::v1alpha1::Type*>(value); + result_type_ = result_type; // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.result_type) } // bool is_instance_function = 5 [json_name = "isInstanceFunction"]; inline void Decl_FunctionDecl_Overload::clear_is_instance_function() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.is_instance_function_ = false; + is_instance_function_ = false; +} +inline bool Decl_FunctionDecl_Overload::_internal_is_instance_function() const { + return is_instance_function_; } inline bool Decl_FunctionDecl_Overload::is_instance_function() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.is_instance_function) return _internal_is_instance_function(); } +inline void Decl_FunctionDecl_Overload::_internal_set_is_instance_function(bool value) { + + is_instance_function_ = value; +} inline void Decl_FunctionDecl_Overload::set_is_instance_function(bool value) { _internal_set_is_instance_function(value); // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.is_instance_function) } -inline bool Decl_FunctionDecl_Overload::_internal_is_instance_function() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.is_instance_function_; -} -inline void Decl_FunctionDecl_Overload::_internal_set_is_instance_function(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.is_instance_function_ = value; -} // string doc = 6 [json_name = "doc"]; inline void Decl_FunctionDecl_Overload::clear_doc() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.doc_.ClearToEmpty(); + doc_.ClearToEmpty(); } -inline const std::string& Decl_FunctionDecl_Overload::doc() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Decl_FunctionDecl_Overload::doc() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.doc) return _internal_doc(); } -template -inline PROTOBUF_ALWAYS_INLINE void Decl_FunctionDecl_Overload::set_doc(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.doc_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Decl_FunctionDecl_Overload::set_doc(ArgT0&& arg0, ArgT... args) { + + doc_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.doc) } -inline std::string* Decl_FunctionDecl_Overload::mutable_doc() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Decl_FunctionDecl_Overload::mutable_doc() { std::string* _s = _internal_mutable_doc(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.doc) return _s; } inline const std::string& Decl_FunctionDecl_Overload::_internal_doc() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.doc_.Get(); + return doc_.Get(); } inline void Decl_FunctionDecl_Overload::_internal_set_doc(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.doc_.Set(value, GetArena()); + + doc_.Set(value, GetArenaForAllocation()); } inline std::string* Decl_FunctionDecl_Overload::_internal_mutable_doc() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.doc_.Mutable( GetArena()); + + return doc_.Mutable(GetArenaForAllocation()); } inline std::string* Decl_FunctionDecl_Overload::release_doc() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.doc) - return _impl_.doc_.Release(); -} -inline void Decl_FunctionDecl_Overload::set_allocated_doc(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.doc_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.doc_.IsDefault()) { - _impl_.doc_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return doc_.Release(); +} +inline void Decl_FunctionDecl_Overload::set_allocated_doc(std::string* doc) { + if (doc != nullptr) { + + } else { + + } + doc_.SetAllocated(doc, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (doc_.IsDefault()) { + doc_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.doc) } @@ -5264,51 +4787,42 @@ inline void Decl_FunctionDecl_Overload::set_allocated_doc(std::string* value) { // repeated .google.api.expr.v1alpha1.Decl.FunctionDecl.Overload overloads = 1 [json_name = "overloads"]; inline int Decl_FunctionDecl::_internal_overloads_size() const { - return _internal_overloads().size(); + return overloads_.size(); } inline int Decl_FunctionDecl::overloads_size() const { return _internal_overloads_size(); } inline void Decl_FunctionDecl::clear_overloads() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.overloads_.Clear(); + overloads_.Clear(); } -inline ::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload* Decl_FunctionDecl::mutable_overloads(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload* Decl_FunctionDecl::mutable_overloads(int index) { // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Decl.FunctionDecl.overloads) - return _internal_mutable_overloads()->Mutable(index); + return overloads_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload>* Decl_FunctionDecl::mutable_overloads() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload >* +Decl_FunctionDecl::mutable_overloads() { // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1alpha1.Decl.FunctionDecl.overloads) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_overloads(); + return &overloads_; +} +inline const ::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload& Decl_FunctionDecl::_internal_overloads(int index) const { + return overloads_.Get(index); } -inline const ::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload& Decl_FunctionDecl::overloads(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload& Decl_FunctionDecl::overloads(int index) const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Decl.FunctionDecl.overloads) - return _internal_overloads().Get(index); + return _internal_overloads(index); } -inline ::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload* Decl_FunctionDecl::add_overloads() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload* _add = _internal_mutable_overloads()->Add(); +inline ::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload* Decl_FunctionDecl::_internal_add_overloads() { + return overloads_.Add(); +} +inline ::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload* Decl_FunctionDecl::add_overloads() { + ::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload* _add = _internal_add_overloads(); // @@protoc_insertion_point(field_add:google.api.expr.v1alpha1.Decl.FunctionDecl.overloads) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload>& Decl_FunctionDecl::overloads() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload >& +Decl_FunctionDecl::overloads() const { // @@protoc_insertion_point(field_list:google.api.expr.v1alpha1.Decl.FunctionDecl.overloads) - return _internal_overloads(); -} -inline const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload>& -Decl_FunctionDecl::_internal_overloads() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.overloads_; -} -inline ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Decl_FunctionDecl_Overload>* -Decl_FunctionDecl::_internal_mutable_overloads() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.overloads_; + return overloads_; } // ------------------------------------------------------------------- @@ -5317,204 +4831,197 @@ Decl_FunctionDecl::_internal_mutable_overloads() { // string name = 1 [json_name = "name"]; inline void Decl::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& Decl::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Decl::name() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Decl.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void Decl::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Decl::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Decl.name) } -inline std::string* Decl::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Decl::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Decl.name) return _s; } inline const std::string& Decl::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void Decl::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* Decl::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* Decl::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Decl.name) - return _impl_.name_.Release(); -} -inline void Decl::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void Decl::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:google.api.expr.v1alpha1.Decl.name) } // .google.api.expr.v1alpha1.Decl.IdentDecl ident = 2 [json_name = "ident"]; -inline bool Decl::has_ident() const { - return decl_kind_case() == kIdent; -} inline bool Decl::_internal_has_ident() const { return decl_kind_case() == kIdent; } +inline bool Decl::has_ident() const { + return _internal_has_ident(); +} inline void Decl::set_has_ident() { - _impl_._oneof_case_[0] = kIdent; + _oneof_case_[0] = kIdent; } inline void Decl::clear_ident() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (decl_kind_case() == kIdent) { - if (GetArena() == nullptr) { - delete _impl_.decl_kind_.ident_; + if (_internal_has_ident()) { + if (GetArenaForAllocation() == nullptr) { + delete decl_kind_.ident_; } clear_has_decl_kind(); } } inline ::google::api::expr::v1alpha1::Decl_IdentDecl* Decl::release_ident() { // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Decl.ident) - if (decl_kind_case() == kIdent) { + if (_internal_has_ident()) { clear_has_decl_kind(); - auto* temp = _impl_.decl_kind_.ident_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::google::api::expr::v1alpha1::Decl_IdentDecl* temp = decl_kind_.ident_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.decl_kind_.ident_ = nullptr; + decl_kind_.ident_ = nullptr; return temp; } else { return nullptr; } } inline const ::google::api::expr::v1alpha1::Decl_IdentDecl& Decl::_internal_ident() const { - return decl_kind_case() == kIdent ? *_impl_.decl_kind_.ident_ : reinterpret_cast<::google::api::expr::v1alpha1::Decl_IdentDecl&>(::google::api::expr::v1alpha1::_Decl_IdentDecl_default_instance_); + return _internal_has_ident() + ? *decl_kind_.ident_ + : reinterpret_cast< ::google::api::expr::v1alpha1::Decl_IdentDecl&>(::google::api::expr::v1alpha1::_Decl_IdentDecl_default_instance_); } -inline const ::google::api::expr::v1alpha1::Decl_IdentDecl& Decl::ident() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::Decl_IdentDecl& Decl::ident() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Decl.ident) return _internal_ident(); } inline ::google::api::expr::v1alpha1::Decl_IdentDecl* Decl::unsafe_arena_release_ident() { // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1alpha1.Decl.ident) - if (decl_kind_case() == kIdent) { + if (_internal_has_ident()) { clear_has_decl_kind(); - auto* temp = _impl_.decl_kind_.ident_; - _impl_.decl_kind_.ident_ = nullptr; + ::google::api::expr::v1alpha1::Decl_IdentDecl* temp = decl_kind_.ident_; + decl_kind_.ident_ = nullptr; return temp; } else { return nullptr; } } -inline void Decl::unsafe_arena_set_allocated_ident(::google::api::expr::v1alpha1::Decl_IdentDecl* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void Decl::unsafe_arena_set_allocated_ident(::google::api::expr::v1alpha1::Decl_IdentDecl* ident) { clear_decl_kind(); - if (value) { + if (ident) { set_has_ident(); - _impl_.decl_kind_.ident_ = value; + decl_kind_.ident_ = ident; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Decl.ident) } inline ::google::api::expr::v1alpha1::Decl_IdentDecl* Decl::_internal_mutable_ident() { - if (decl_kind_case() != kIdent) { + if (!_internal_has_ident()) { clear_decl_kind(); set_has_ident(); - _impl_.decl_kind_.ident_ = CreateMaybeMessage<::google::api::expr::v1alpha1::Decl_IdentDecl>(GetArena()); + decl_kind_.ident_ = CreateMaybeMessage< ::google::api::expr::v1alpha1::Decl_IdentDecl >(GetArenaForAllocation()); } - return _impl_.decl_kind_.ident_; + return decl_kind_.ident_; } -inline ::google::api::expr::v1alpha1::Decl_IdentDecl* Decl::mutable_ident() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::Decl_IdentDecl* Decl::mutable_ident() { ::google::api::expr::v1alpha1::Decl_IdentDecl* _msg = _internal_mutable_ident(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Decl.ident) return _msg; } // .google.api.expr.v1alpha1.Decl.FunctionDecl function = 3 [json_name = "function"]; -inline bool Decl::has_function() const { - return decl_kind_case() == kFunction; -} inline bool Decl::_internal_has_function() const { return decl_kind_case() == kFunction; } +inline bool Decl::has_function() const { + return _internal_has_function(); +} inline void Decl::set_has_function() { - _impl_._oneof_case_[0] = kFunction; + _oneof_case_[0] = kFunction; } inline void Decl::clear_function() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (decl_kind_case() == kFunction) { - if (GetArena() == nullptr) { - delete _impl_.decl_kind_.function_; + if (_internal_has_function()) { + if (GetArenaForAllocation() == nullptr) { + delete decl_kind_.function_; } clear_has_decl_kind(); } } inline ::google::api::expr::v1alpha1::Decl_FunctionDecl* Decl::release_function() { // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Decl.function) - if (decl_kind_case() == kFunction) { + if (_internal_has_function()) { clear_has_decl_kind(); - auto* temp = _impl_.decl_kind_.function_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::google::api::expr::v1alpha1::Decl_FunctionDecl* temp = decl_kind_.function_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.decl_kind_.function_ = nullptr; + decl_kind_.function_ = nullptr; return temp; } else { return nullptr; } } inline const ::google::api::expr::v1alpha1::Decl_FunctionDecl& Decl::_internal_function() const { - return decl_kind_case() == kFunction ? *_impl_.decl_kind_.function_ : reinterpret_cast<::google::api::expr::v1alpha1::Decl_FunctionDecl&>(::google::api::expr::v1alpha1::_Decl_FunctionDecl_default_instance_); + return _internal_has_function() + ? *decl_kind_.function_ + : reinterpret_cast< ::google::api::expr::v1alpha1::Decl_FunctionDecl&>(::google::api::expr::v1alpha1::_Decl_FunctionDecl_default_instance_); } -inline const ::google::api::expr::v1alpha1::Decl_FunctionDecl& Decl::function() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::Decl_FunctionDecl& Decl::function() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Decl.function) return _internal_function(); } inline ::google::api::expr::v1alpha1::Decl_FunctionDecl* Decl::unsafe_arena_release_function() { // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1alpha1.Decl.function) - if (decl_kind_case() == kFunction) { + if (_internal_has_function()) { clear_has_decl_kind(); - auto* temp = _impl_.decl_kind_.function_; - _impl_.decl_kind_.function_ = nullptr; + ::google::api::expr::v1alpha1::Decl_FunctionDecl* temp = decl_kind_.function_; + decl_kind_.function_ = nullptr; return temp; } else { return nullptr; } } -inline void Decl::unsafe_arena_set_allocated_function(::google::api::expr::v1alpha1::Decl_FunctionDecl* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void Decl::unsafe_arena_set_allocated_function(::google::api::expr::v1alpha1::Decl_FunctionDecl* function) { clear_decl_kind(); - if (value) { + if (function) { set_has_function(); - _impl_.decl_kind_.function_ = value; + decl_kind_.function_ = function; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Decl.function) } inline ::google::api::expr::v1alpha1::Decl_FunctionDecl* Decl::_internal_mutable_function() { - if (decl_kind_case() != kFunction) { + if (!_internal_has_function()) { clear_decl_kind(); set_has_function(); - _impl_.decl_kind_.function_ = CreateMaybeMessage<::google::api::expr::v1alpha1::Decl_FunctionDecl>(GetArena()); + decl_kind_.function_ = CreateMaybeMessage< ::google::api::expr::v1alpha1::Decl_FunctionDecl >(GetArenaForAllocation()); } - return _impl_.decl_kind_.function_; + return decl_kind_.function_; } -inline ::google::api::expr::v1alpha1::Decl_FunctionDecl* Decl::mutable_function() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::Decl_FunctionDecl* Decl::mutable_function() { ::google::api::expr::v1alpha1::Decl_FunctionDecl* _msg = _internal_mutable_function(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Decl.function) return _msg; @@ -5524,10 +5031,10 @@ inline bool Decl::has_decl_kind() const { return decl_kind_case() != DECL_KIND_NOT_SET; } inline void Decl::clear_has_decl_kind() { - _impl_._oneof_case_[0] = DECL_KIND_NOT_SET; + _oneof_case_[0] = DECL_KIND_NOT_SET; } inline Decl::DeclKindCase Decl::decl_kind_case() const { - return Decl::DeclKindCase(_impl_._oneof_case_[0]); + return Decl::DeclKindCase(_oneof_case_[0]); } // ------------------------------------------------------------------- @@ -5535,281 +5042,265 @@ inline Decl::DeclKindCase Decl::decl_kind_case() const { // string name = 1 [json_name = "name"]; inline void Reference::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& Reference::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Reference::name() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Reference.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void Reference::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Reference::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Reference.name) } -inline std::string* Reference::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Reference::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Reference.name) return _s; } inline const std::string& Reference::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void Reference::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* Reference::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* Reference::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Reference.name) - return _impl_.name_.Release(); -} -inline void Reference::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void Reference::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:google.api.expr.v1alpha1.Reference.name) } // repeated string overload_id = 3 [json_name = "overloadId"]; inline int Reference::_internal_overload_id_size() const { - return _internal_overload_id().size(); + return overload_id_.size(); } inline int Reference::overload_id_size() const { return _internal_overload_id_size(); } inline void Reference::clear_overload_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.overload_id_.Clear(); + overload_id_.Clear(); } -inline std::string* Reference::add_overload_id() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_overload_id()->Add(); +inline std::string* Reference::add_overload_id() { + std::string* _s = _internal_add_overload_id(); // @@protoc_insertion_point(field_add_mutable:google.api.expr.v1alpha1.Reference.overload_id) return _s; } -inline const std::string& Reference::overload_id(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Reference::_internal_overload_id(int index) const { + return overload_id_.Get(index); +} +inline const std::string& Reference::overload_id(int index) const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Reference.overload_id) - return _internal_overload_id().Get(index); + return _internal_overload_id(index); } -inline std::string* Reference::mutable_overload_id(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Reference::mutable_overload_id(int index) { // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Reference.overload_id) - return _internal_mutable_overload_id()->Mutable(index); + return overload_id_.Mutable(index); } inline void Reference::set_overload_id(int index, const std::string& value) { - _internal_mutable_overload_id()->Mutable(index)->assign(value); + overload_id_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Reference.overload_id) } inline void Reference::set_overload_id(int index, std::string&& value) { - _internal_mutable_overload_id()->Mutable(index)->assign(std::move(value)); + overload_id_.Mutable(index)->assign(std::move(value)); // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Reference.overload_id) } inline void Reference::set_overload_id(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_overload_id()->Mutable(index)->assign(value); + GOOGLE_DCHECK(value != nullptr); + overload_id_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:google.api.expr.v1alpha1.Reference.overload_id) } -inline void Reference::set_overload_id(int index, const char* value, - std::size_t size) { - _internal_mutable_overload_id()->Mutable(index)->assign( - reinterpret_cast(value), size); +inline void Reference::set_overload_id(int index, const char* value, size_t size) { + overload_id_.Mutable(index)->assign( + reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:google.api.expr.v1alpha1.Reference.overload_id) } -inline void Reference::set_overload_id(int index, absl::string_view value) { - _internal_mutable_overload_id()->Mutable(index)->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_set_string_piece:google.api.expr.v1alpha1.Reference.overload_id) +inline std::string* Reference::_internal_add_overload_id() { + return overload_id_.Add(); } inline void Reference::add_overload_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_overload_id()->Add()->assign(value); + overload_id_.Add()->assign(value); // @@protoc_insertion_point(field_add:google.api.expr.v1alpha1.Reference.overload_id) } inline void Reference::add_overload_id(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_overload_id()->Add(std::move(value)); + overload_id_.Add(std::move(value)); // @@protoc_insertion_point(field_add:google.api.expr.v1alpha1.Reference.overload_id) } inline void Reference::add_overload_id(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_overload_id()->Add()->assign(value); + GOOGLE_DCHECK(value != nullptr); + overload_id_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:google.api.expr.v1alpha1.Reference.overload_id) } -inline void Reference::add_overload_id(const char* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_overload_id()->Add()->assign( - reinterpret_cast(value), size); +inline void Reference::add_overload_id(const char* value, size_t size) { + overload_id_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:google.api.expr.v1alpha1.Reference.overload_id) } -inline void Reference::add_overload_id(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_overload_id()->Add()->assign(value.data(), value.size()); - // @@protoc_insertion_point(field_add_string_piece:google.api.expr.v1alpha1.Reference.overload_id) -} -inline const ::google::protobuf::RepeatedPtrField& -Reference::overload_id() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +Reference::overload_id() const { // @@protoc_insertion_point(field_list:google.api.expr.v1alpha1.Reference.overload_id) - return _internal_overload_id(); + return overload_id_; } -inline ::google::protobuf::RepeatedPtrField* -Reference::mutable_overload_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +Reference::mutable_overload_id() { // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1alpha1.Reference.overload_id) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_overload_id(); -} -inline const ::google::protobuf::RepeatedPtrField& -Reference::_internal_overload_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.overload_id_; -} -inline ::google::protobuf::RepeatedPtrField* -Reference::_internal_mutable_overload_id() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.overload_id_; + return &overload_id_; } // .google.api.expr.v1alpha1.Constant value = 4 [json_name = "value"]; +inline bool Reference::_internal_has_value() const { + return this != internal_default_instance() && value_ != nullptr; +} inline bool Reference::has_value() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.value_ != nullptr); - return value; + return _internal_has_value(); } inline const ::google::api::expr::v1alpha1::Constant& Reference::_internal_value() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::expr::v1alpha1::Constant* p = _impl_.value_; - return p != nullptr ? *p : reinterpret_cast(::google::api::expr::v1alpha1::_Constant_default_instance_); + const ::google::api::expr::v1alpha1::Constant* p = value_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1alpha1::_Constant_default_instance_); } -inline const ::google::api::expr::v1alpha1::Constant& Reference::value() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::Constant& Reference::value() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Reference.value) return _internal_value(); } -inline void Reference::unsafe_arena_set_allocated_value(::google::api::expr::v1alpha1::Constant* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.value_); +inline void Reference::unsafe_arena_set_allocated_value( + ::google::api::expr::v1alpha1::Constant* value) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(value_); } - _impl_.value_ = reinterpret_cast<::google::api::expr::v1alpha1::Constant*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + value_ = value; + if (value) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Reference.value) } inline ::google::api::expr::v1alpha1::Constant* Reference::release_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::expr::v1alpha1::Constant* released = _impl_.value_; - _impl_.value_ = nullptr; + + ::google::api::expr::v1alpha1::Constant* temp = value_; + value_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::expr::v1alpha1::Constant* Reference::unsafe_arena_release_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Reference.value) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::expr::v1alpha1::Constant* temp = _impl_.value_; - _impl_.value_ = nullptr; + + ::google::api::expr::v1alpha1::Constant* temp = value_; + value_ = nullptr; return temp; } inline ::google::api::expr::v1alpha1::Constant* Reference::_internal_mutable_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.value_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Constant>(GetArena()); - _impl_.value_ = reinterpret_cast<::google::api::expr::v1alpha1::Constant*>(p); + + if (value_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Constant>(GetArenaForAllocation()); + value_ = p; } - return _impl_.value_; + return value_; } -inline ::google::api::expr::v1alpha1::Constant* Reference::mutable_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::Constant* Reference::mutable_value() { ::google::api::expr::v1alpha1::Constant* _msg = _internal_mutable_value(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Reference.value) return _msg; } inline void Reference::set_allocated_value(::google::api::expr::v1alpha1::Constant* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.value_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(value_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (value) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(value)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, value, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.value_ = reinterpret_cast<::google::api::expr::v1alpha1::Constant*>(value); + value_ = value; // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Reference.value) } #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) + } // namespace v1alpha1 } // namespace expr } // namespace api } // namespace google +PROTOBUF_NAMESPACE_OPEN -namespace google { -namespace protobuf { - +template <> struct is_proto_enum< ::google::api::expr::v1alpha1::Type_PrimitiveType> : ::std::true_type {}; template <> -struct is_proto_enum<::google::api::expr::v1alpha1::Type_PrimitiveType> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::google::api::expr::v1alpha1::Type_PrimitiveType>() { +inline const EnumDescriptor* GetEnumDescriptor< ::google::api::expr::v1alpha1::Type_PrimitiveType>() { return ::google::api::expr::v1alpha1::Type_PrimitiveType_descriptor(); } +template <> struct is_proto_enum< ::google::api::expr::v1alpha1::Type_WellKnownType> : ::std::true_type {}; template <> -struct is_proto_enum<::google::api::expr::v1alpha1::Type_WellKnownType> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::google::api::expr::v1alpha1::Type_WellKnownType>() { +inline const EnumDescriptor* GetEnumDescriptor< ::google::api::expr::v1alpha1::Type_WellKnownType>() { return ::google::api::expr::v1alpha1::Type_WellKnownType_descriptor(); } -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1alpha1_2fchecked_2eproto diff --git a/src/viam/api/google/api/expr/v1alpha1/eval.grpc.pb.cc b/src/viam/api/google/api/expr/v1alpha1/eval.grpc.pb.cc index cfc00c125..d43111af7 100644 --- a/src/viam/api/google/api/expr/v1alpha1/eval.grpc.pb.cc +++ b/src/viam/api/google/api/expr/v1alpha1/eval.grpc.pb.cc @@ -6,19 +6,19 @@ #include "google/api/expr/v1alpha1/eval.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace google { namespace api { namespace expr { diff --git a/src/viam/api/google/api/expr/v1alpha1/eval.grpc.pb.h b/src/viam/api/google/api/expr/v1alpha1/eval.grpc.pb.h index f736d6f7c..9fe33a73b 100644 --- a/src/viam/api/google/api/expr/v1alpha1/eval.grpc.pb.h +++ b/src/viam/api/google/api/expr/v1alpha1/eval.grpc.pb.h @@ -22,23 +22,24 @@ #include "google/api/expr/v1alpha1/eval.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace google { namespace api { diff --git a/src/viam/api/google/api/expr/v1alpha1/eval.pb.cc b/src/viam/api/google/api/expr/v1alpha1/eval.pb.cc index b8dba486e..aa6584a24 100644 --- a/src/viam/api/google/api/expr/v1alpha1/eval.pb.cc +++ b/src/viam/api/google/api/expr/v1alpha1/eval.pb.cc @@ -4,445 +4,375 @@ #include "google/api/expr/v1alpha1/eval.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace google { namespace api { namespace expr { namespace v1alpha1 { - -inline constexpr UnknownSet::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : exprs_{}, - _exprs_cached_byte_size_{0}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR UnknownSet::UnknownSet(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct UnknownSetDefaultTypeInternal { - PROTOBUF_CONSTEXPR UnknownSetDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~UnknownSetDefaultTypeInternal() {} - union { - UnknownSet _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UnknownSetDefaultTypeInternal _UnknownSet_default_instance_; - -inline constexpr EvalState_Result::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : expr_{::int64_t{0}}, - value_{::int64_t{0}}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR EvalState_Result::EvalState_Result(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_CONSTEXPR EvalState_Result::EvalState_Result( + ::_pbi::ConstantInitialized) + : expr_(int64_t{0}) + , value_(int64_t{0}){} struct EvalState_ResultDefaultTypeInternal { - PROTOBUF_CONSTEXPR EvalState_ResultDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR EvalState_ResultDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~EvalState_ResultDefaultTypeInternal() {} union { EvalState_Result _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EvalState_ResultDefaultTypeInternal _EvalState_Result_default_instance_; - -inline constexpr ErrorSet::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : errors_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR ErrorSet::ErrorSet(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ErrorSetDefaultTypeInternal { - PROTOBUF_CONSTEXPR ErrorSetDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ErrorSetDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EvalState_ResultDefaultTypeInternal _EvalState_Result_default_instance_; +PROTOBUF_CONSTEXPR EvalState::EvalState( + ::_pbi::ConstantInitialized) + : values_() + , results_(){} +struct EvalStateDefaultTypeInternal { + PROTOBUF_CONSTEXPR EvalStateDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~EvalStateDefaultTypeInternal() {} union { - ErrorSet _instance; + EvalState _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ErrorSetDefaultTypeInternal _ErrorSet_default_instance_; - -inline constexpr ExprValue::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : kind_{}, - _cached_size_{0}, - _oneof_case_{} {} - -template -PROTOBUF_CONSTEXPR ExprValue::ExprValue(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EvalStateDefaultTypeInternal _EvalState_default_instance_; +PROTOBUF_CONSTEXPR ExprValue::ExprValue( + ::_pbi::ConstantInitialized) + : _oneof_case_{}{} struct ExprValueDefaultTypeInternal { - PROTOBUF_CONSTEXPR ExprValueDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ExprValueDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~ExprValueDefaultTypeInternal() {} union { ExprValue _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ExprValueDefaultTypeInternal _ExprValue_default_instance_; - -inline constexpr EvalState::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : values_{}, - results_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR EvalState::EvalState(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct EvalStateDefaultTypeInternal { - PROTOBUF_CONSTEXPR EvalStateDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~EvalStateDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ExprValueDefaultTypeInternal _ExprValue_default_instance_; +PROTOBUF_CONSTEXPR ErrorSet::ErrorSet( + ::_pbi::ConstantInitialized) + : errors_(){} +struct ErrorSetDefaultTypeInternal { + PROTOBUF_CONSTEXPR ErrorSetDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ErrorSetDefaultTypeInternal() {} union { - EvalState _instance; + ErrorSet _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EvalStateDefaultTypeInternal _EvalState_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ErrorSetDefaultTypeInternal _ErrorSet_default_instance_; +PROTOBUF_CONSTEXPR UnknownSet::UnknownSet( + ::_pbi::ConstantInitialized) + : exprs_() + , _exprs_cached_byte_size_(0){} +struct UnknownSetDefaultTypeInternal { + PROTOBUF_CONSTEXPR UnknownSetDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~UnknownSetDefaultTypeInternal() {} + union { + UnknownSet _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UnknownSetDefaultTypeInternal _UnknownSet_default_instance_; } // namespace v1alpha1 } // namespace expr } // namespace api } // namespace google static ::_pb::Metadata file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto[5]; -static constexpr const ::_pb::EnumDescriptor** - file_level_enum_descriptors_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto = nullptr; -const ::uint32_t TableStruct_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::EvalState_Result, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::EvalState_Result, _impl_.expr_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::EvalState_Result, _impl_.value_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::EvalState, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::EvalState, _impl_.values_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::EvalState, _impl_.results_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::ExprValue, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::ExprValue, _impl_._oneof_case_[0]), - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::ExprValue, _impl_.kind_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::ErrorSet, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::ErrorSet, _impl_.errors_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::UnknownSet, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::UnknownSet, _impl_.exprs_), +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto = nullptr; + +const uint32_t TableStruct_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::EvalState_Result, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::EvalState_Result, expr_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::EvalState_Result, value_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::EvalState, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::EvalState, values_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::EvalState, results_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::ExprValue, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::ExprValue, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::ExprValue, kind_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::ErrorSet, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::ErrorSet, errors_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::UnknownSet, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::UnknownSet, exprs_), }; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, -1, -1, sizeof(::google::api::expr::v1alpha1::EvalState_Result)}, - {10, -1, -1, sizeof(::google::api::expr::v1alpha1::EvalState)}, - {20, -1, -1, sizeof(::google::api::expr::v1alpha1::ExprValue)}, - {32, -1, -1, sizeof(::google::api::expr::v1alpha1::ErrorSet)}, - {41, -1, -1, sizeof(::google::api::expr::v1alpha1::UnknownSet)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::google::api::expr::v1alpha1::EvalState_Result)}, + { 8, -1, -1, sizeof(::google::api::expr::v1alpha1::EvalState)}, + { 16, -1, -1, sizeof(::google::api::expr::v1alpha1::ExprValue)}, + { 26, -1, -1, sizeof(::google::api::expr::v1alpha1::ErrorSet)}, + { 33, -1, -1, sizeof(::google::api::expr::v1alpha1::UnknownSet)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::google::api::expr::v1alpha1::_EvalState_Result_default_instance_._instance, - &::google::api::expr::v1alpha1::_EvalState_default_instance_._instance, - &::google::api::expr::v1alpha1::_ExprValue_default_instance_._instance, - &::google::api::expr::v1alpha1::_ErrorSet_default_instance_._instance, - &::google::api::expr::v1alpha1::_UnknownSet_default_instance_._instance, -}; -const char descriptor_table_protodef_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n#google/api/expr/v1alpha1/eval.proto\022\030g" - "oogle.api.expr.v1alpha1\032$google/api/expr" - "/v1alpha1/value.proto\032\027google/rpc/status" - ".proto\"\302\001\n\tEvalState\022;\n\006values\030\001 \003(\0132#.g" - "oogle.api.expr.v1alpha1.ExprValueR\006value" - "s\022D\n\007results\030\003 \003(\0132*.google.api.expr.v1a" - "lpha1.EvalState.ResultR\007results\0322\n\006Resul" - "t\022\022\n\004expr\030\001 \001(\003R\004expr\022\024\n\005value\030\002 \001(\003R\005va" - "lue\"\312\001\n\tExprValue\0227\n\005value\030\001 \001(\0132\037.googl" - "e.api.expr.v1alpha1.ValueH\000R\005value\022:\n\005er" - "ror\030\002 \001(\0132\".google.api.expr.v1alpha1.Err" - "orSetH\000R\005error\022@\n\007unknown\030\003 \001(\0132$.google" - ".api.expr.v1alpha1.UnknownSetH\000R\007unknown" - "B\006\n\004kind\"6\n\010ErrorSet\022*\n\006errors\030\001 \003(\0132\022.g" - "oogle.rpc.StatusR\006errors\"\"\n\nUnknownSet\022\024" - "\n\005exprs\030\001 \003(\003R\005exprsB\355\001\n\034com.google.api." - "expr.v1alpha1B\tEvalProtoP\001Z descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto_getter() { return &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto(&descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto(&descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto); namespace google { namespace api { namespace expr { namespace v1alpha1 { + // =================================================================== class EvalState_Result::_Internal { public: }; -EvalState_Result::EvalState_Result(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +EvalState_Result::EvalState_Result(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.EvalState.Result) } -EvalState_Result::EvalState_Result( - ::google::protobuf::Arena* arena, const EvalState_Result& from) - : EvalState_Result(arena) { - MergeFrom(from); +EvalState_Result::EvalState_Result(const EvalState_Result& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&expr_, &from.expr_, + static_cast(reinterpret_cast(&value_) - + reinterpret_cast(&expr_)) + sizeof(value_)); + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.EvalState.Result) } -inline PROTOBUF_NDEBUG_INLINE EvalState_Result::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void EvalState_Result::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, expr_), - 0, - offsetof(Impl_, value_) - - offsetof(Impl_, expr_) + - sizeof(Impl_::value_)); +inline void EvalState_Result::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&expr_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&value_) - + reinterpret_cast(&expr_)) + sizeof(value_)); } + EvalState_Result::~EvalState_Result() { // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.EvalState.Result) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void EvalState_Result::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void EvalState_Result::Clear() { +void EvalState_Result::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void EvalState_Result::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.EvalState.Result) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&_impl_.expr_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.value_) - - reinterpret_cast(&_impl_.expr_)) + sizeof(_impl_.value_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* EvalState_Result::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + ::memset(&expr_, 0, static_cast( + reinterpret_cast(&value_) - + reinterpret_cast(&expr_)) + sizeof(value_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* EvalState_Result::_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) { + // int64 expr = 1 [json_name = "expr"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + expr_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int64 value = 2 [json_name = "value"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + value_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> EvalState_Result::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_EvalState_Result_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // int64 value = 2 [json_name = "value"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(EvalState_Result, _impl_.value_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(EvalState_Result, _impl_.value_)}}, - // int64 expr = 1 [json_name = "expr"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(EvalState_Result, _impl_.expr_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(EvalState_Result, _impl_.expr_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // int64 expr = 1 [json_name = "expr"]; - {PROTOBUF_FIELD_OFFSET(EvalState_Result, _impl_.expr_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - // int64 value = 2 [json_name = "value"]; - {PROTOBUF_FIELD_OFFSET(EvalState_Result, _impl_.value_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* EvalState_Result::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* EvalState_Result::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.EvalState.Result) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // int64 expr = 1 [json_name = "expr"]; if (this->_internal_expr() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<1>( - stream, this->_internal_expr(), target); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_expr(), target); } // int64 value = 2 [json_name = "value"]; if (this->_internal_value() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<2>( - stream, this->_internal_value(), target); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_value(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1alpha1.EvalState.Result) return target; } -::size_t EvalState_Result::ByteSizeLong() const { +size_t EvalState_Result::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.EvalState.Result) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // int64 expr = 1 [json_name = "expr"]; if (this->_internal_expr() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( - this->_internal_expr()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_expr()); } // int64 value = 2 [json_name = "value"]; if (this->_internal_value() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( - this->_internal_value()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_value()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData EvalState_Result::_class_data_ = { - EvalState_Result::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EvalState_Result::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + EvalState_Result::MergeImpl }; -const ::google::protobuf::Message::ClassData* EvalState_Result::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EvalState_Result::GetClassData() const { return &_class_data_; } + +void EvalState_Result::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void EvalState_Result::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.EvalState.Result) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void EvalState_Result::MergeFrom(const EvalState_Result& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.EvalState.Result) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_expr() != 0) { - _this->_internal_set_expr(from._internal_expr()); + _internal_set_expr(from._internal_expr()); } if (from._internal_value() != 0) { - _this->_internal_set_value(from._internal_value()); + _internal_set_value(from._internal_value()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void EvalState_Result::CopyFrom(const EvalState_Result& from) { @@ -452,213 +382,212 @@ void EvalState_Result::CopyFrom(const EvalState_Result& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool EvalState_Result::IsInitialized() const { +bool EvalState_Result::IsInitialized() const { return true; } -::_pbi::CachedSize* EvalState_Result::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void EvalState_Result::InternalSwap(EvalState_Result* PROTOBUF_RESTRICT other) { +void EvalState_Result::InternalSwap(EvalState_Result* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(EvalState_Result, _impl_.value_) - + sizeof(EvalState_Result::_impl_.value_) - - PROTOBUF_FIELD_OFFSET(EvalState_Result, _impl_.expr_)>( - reinterpret_cast(&_impl_.expr_), - reinterpret_cast(&other->_impl_.expr_)); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(EvalState_Result, value_) + + sizeof(EvalState_Result::value_) + - PROTOBUF_FIELD_OFFSET(EvalState_Result, expr_)>( + reinterpret_cast(&expr_), + reinterpret_cast(&other->expr_)); } -::google::protobuf::Metadata EvalState_Result::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata EvalState_Result::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto[0]); } + // =================================================================== class EvalState::_Internal { public: }; -EvalState::EvalState(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +EvalState::EvalState(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + values_(arena), + results_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.EvalState) } -inline PROTOBUF_NDEBUG_INLINE EvalState::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : values_{visibility, arena, from.values_}, - results_{visibility, arena, from.results_}, - _cached_size_{0} {} - -EvalState::EvalState( - ::google::protobuf::Arena* arena, - const EvalState& from) - : ::google::protobuf::Message(arena) { - EvalState* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +EvalState::EvalState(const EvalState& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + values_(from.values_), + results_(from.results_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.EvalState) } -inline PROTOBUF_NDEBUG_INLINE EvalState::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : values_{visibility, arena}, - results_{visibility, arena}, - _cached_size_{0} {} -inline void EvalState::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void EvalState::SharedCtor() { } + EvalState::~EvalState() { // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.EvalState) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void EvalState::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void EvalState::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void EvalState::Clear() { +void EvalState::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.EvalState) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.values_.Clear(); - _impl_.results_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* EvalState::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + values_.Clear(); + results_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* EvalState::_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) { + // repeated .google.api.expr.v1alpha1.ExprValue values = 1 [json_name = "values"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_values(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + // repeated .google.api.expr.v1alpha1.EvalState.Result results = 3 [json_name = "results"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_results(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 2, 2, 0, 2> EvalState::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967290, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_EvalState_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // repeated .google.api.expr.v1alpha1.ExprValue values = 1 [json_name = "values"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(EvalState, _impl_.values_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // repeated .google.api.expr.v1alpha1.EvalState.Result results = 3 [json_name = "results"]; - {::_pbi::TcParser::FastMtR1, - {26, 63, 1, PROTOBUF_FIELD_OFFSET(EvalState, _impl_.results_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .google.api.expr.v1alpha1.ExprValue values = 1 [json_name = "values"]; - {PROTOBUF_FIELD_OFFSET(EvalState, _impl_.values_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated .google.api.expr.v1alpha1.EvalState.Result results = 3 [json_name = "results"]; - {PROTOBUF_FIELD_OFFSET(EvalState, _impl_.results_), 0, 1, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::ExprValue>()}, - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::EvalState_Result>()}, - }}, {{ - }}, -}; - -::uint8_t* EvalState::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* EvalState::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.EvalState) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .google.api.expr.v1alpha1.ExprValue values = 1 [json_name = "values"]; for (unsigned i = 0, n = static_cast(this->_internal_values_size()); i < n; i++) { - const auto& repfield = this->_internal_values().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_values(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } // repeated .google.api.expr.v1alpha1.EvalState.Result results = 3 [json_name = "results"]; for (unsigned i = 0, n = static_cast(this->_internal_results_size()); i < n; i++) { - const auto& repfield = this->_internal_results().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_results(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1alpha1.EvalState) return target; } -::size_t EvalState::ByteSizeLong() const { +size_t EvalState::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.EvalState) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .google.api.expr.v1alpha1.ExprValue values = 1 [json_name = "values"]; total_size += 1UL * this->_internal_values_size(); - for (const auto& msg : this->_internal_values()) { + for (const auto& msg : this->values_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // repeated .google.api.expr.v1alpha1.EvalState.Result results = 3 [json_name = "results"]; total_size += 1UL * this->_internal_results_size(); - for (const auto& msg : this->_internal_results()) { + for (const auto& msg : this->results_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData EvalState::_class_data_ = { - EvalState::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EvalState::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + EvalState::MergeImpl }; -const ::google::protobuf::Message::ClassData* EvalState::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EvalState::GetClassData() const { return &_class_data_; } + +void EvalState::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void EvalState::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.EvalState) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void EvalState::MergeFrom(const EvalState& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.EvalState) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_values()->MergeFrom( - from._internal_values()); - _this->_internal_mutable_results()->MergeFrom( - from._internal_results()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + values_.MergeFrom(from.values_); + results_.MergeFrom(from.results_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void EvalState::CopyFrom(const EvalState& from) { @@ -668,172 +597,170 @@ void EvalState::CopyFrom(const EvalState& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool EvalState::IsInitialized() const { +bool EvalState::IsInitialized() const { return true; } -::_pbi::CachedSize* EvalState::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void EvalState::InternalSwap(EvalState* PROTOBUF_RESTRICT other) { +void EvalState::InternalSwap(EvalState* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.values_.InternalSwap(&other->_impl_.values_); - _impl_.results_.InternalSwap(&other->_impl_.results_); + values_.InternalSwap(&other->values_); + results_.InternalSwap(&other->results_); } -::google::protobuf::Metadata EvalState::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata EvalState::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto[1]); } + // =================================================================== class ExprValue::_Internal { public: - static constexpr ::int32_t kOneofCaseOffset = - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::ExprValue, _impl_._oneof_case_); static const ::google::api::expr::v1alpha1::Value& value(const ExprValue* msg); static const ::google::api::expr::v1alpha1::ErrorSet& error(const ExprValue* msg); static const ::google::api::expr::v1alpha1::UnknownSet& unknown(const ExprValue* msg); }; -const ::google::api::expr::v1alpha1::Value& ExprValue::_Internal::value(const ExprValue* msg) { - return *msg->_impl_.kind_.value_; +const ::google::api::expr::v1alpha1::Value& +ExprValue::_Internal::value(const ExprValue* msg) { + return *msg->kind_.value_; } -const ::google::api::expr::v1alpha1::ErrorSet& ExprValue::_Internal::error(const ExprValue* msg) { - return *msg->_impl_.kind_.error_; +const ::google::api::expr::v1alpha1::ErrorSet& +ExprValue::_Internal::error(const ExprValue* msg) { + return *msg->kind_.error_; } -const ::google::api::expr::v1alpha1::UnknownSet& ExprValue::_Internal::unknown(const ExprValue* msg) { - return *msg->_impl_.kind_.unknown_; +const ::google::api::expr::v1alpha1::UnknownSet& +ExprValue::_Internal::unknown(const ExprValue* msg) { + return *msg->kind_.unknown_; } void ExprValue::set_allocated_value(::google::api::expr::v1alpha1::Value* value) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_kind(); if (value) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(value)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, value, submessage_arena); } set_has_value(); - _impl_.kind_.value_ = value; + kind_.value_ = value; } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.ExprValue.value) } void ExprValue::clear_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() == kValue) { - if (GetArena() == nullptr) { - delete _impl_.kind_.value_; + if (_internal_has_value()) { + if (GetArenaForAllocation() == nullptr) { + delete kind_.value_; } clear_has_kind(); } } void ExprValue::set_allocated_error(::google::api::expr::v1alpha1::ErrorSet* error) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_kind(); if (error) { - ::google::protobuf::Arena* submessage_arena = error->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(error); if (message_arena != submessage_arena) { - error = ::google::protobuf::internal::GetOwnedMessage(message_arena, error, submessage_arena); + error = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, error, submessage_arena); } set_has_error(); - _impl_.kind_.error_ = error; + kind_.error_ = error; } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.ExprValue.error) } void ExprValue::set_allocated_unknown(::google::api::expr::v1alpha1::UnknownSet* unknown) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_kind(); if (unknown) { - ::google::protobuf::Arena* submessage_arena = unknown->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(unknown); if (message_arena != submessage_arena) { - unknown = ::google::protobuf::internal::GetOwnedMessage(message_arena, unknown, submessage_arena); + unknown = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, unknown, submessage_arena); } set_has_unknown(); - _impl_.kind_.unknown_ = unknown; + kind_.unknown_ = unknown; } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.ExprValue.unknown) } -ExprValue::ExprValue(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ExprValue::ExprValue(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.ExprValue) } -inline PROTOBUF_NDEBUG_INLINE ExprValue::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : kind_{}, - _cached_size_{0}, - _oneof_case_{from._oneof_case_[0]} {} - -ExprValue::ExprValue( - ::google::protobuf::Arena* arena, - const ExprValue& from) - : ::google::protobuf::Message(arena) { - ExprValue* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - switch (kind_case()) { - case KIND_NOT_SET: +ExprValue::ExprValue(const ExprValue& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + clear_has_kind(); + switch (from.kind_case()) { + case kValue: { + _internal_mutable_value()->::google::api::expr::v1alpha1::Value::MergeFrom(from._internal_value()); break; - case kValue: - _impl_.kind_.value_ = CreateMaybeMessage<::google::api::expr::v1alpha1::Value>(arena, *from._impl_.kind_.value_); - break; - case kError: - _impl_.kind_.error_ = CreateMaybeMessage<::google::api::expr::v1alpha1::ErrorSet>(arena, *from._impl_.kind_.error_); - break; - case kUnknown: - _impl_.kind_.unknown_ = CreateMaybeMessage<::google::api::expr::v1alpha1::UnknownSet>(arena, *from._impl_.kind_.unknown_); - break; + } + case kError: { + _internal_mutable_error()->::google::api::expr::v1alpha1::ErrorSet::MergeFrom(from._internal_error()); + break; + } + case kUnknown: { + _internal_mutable_unknown()->::google::api::expr::v1alpha1::UnknownSet::MergeFrom(from._internal_unknown()); + break; + } + case KIND_NOT_SET: { + break; + } } - // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.ExprValue) } -inline PROTOBUF_NDEBUG_INLINE ExprValue::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : kind_{}, - _cached_size_{0}, - _oneof_case_{} {} -inline void ExprValue::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void ExprValue::SharedCtor() { +clear_has_kind(); } + ExprValue::~ExprValue() { // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.ExprValue) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ExprValue::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); if (has_kind()) { clear_kind(); } - _impl_.~Impl_(); +} + +void ExprValue::SetCachedSize(int size) const { + _cached_size_.Set(size); } void ExprValue::clear_kind() { // @@protoc_insertion_point(one_of_clear_start:google.api.expr.v1alpha1.ExprValue) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); switch (kind_case()) { case kValue: { - if (GetArena() == nullptr) { - delete _impl_.kind_.value_; + if (GetArenaForAllocation() == nullptr) { + delete kind_.value_; } break; } case kError: { - if (GetArena() == nullptr) { - delete _impl_.kind_.error_; + if (GetArenaForAllocation() == nullptr) { + delete kind_.error_; } break; } case kUnknown: { - if (GetArena() == nullptr) { - delete _impl_.kind_.unknown_; + if (GetArenaForAllocation() == nullptr) { + delete kind_.unknown_; } break; } @@ -841,173 +768,182 @@ void ExprValue::clear_kind() { break; } } - _impl_._oneof_case_[0] = KIND_NOT_SET; + _oneof_case_[0] = KIND_NOT_SET; } -PROTOBUF_NOINLINE void ExprValue::Clear() { +void ExprValue::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.ExprValue) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; clear_kind(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ExprValue::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ExprValue::_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) { + // .google.api.expr.v1alpha1.Value value = 1 [json_name = "value"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_value(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.ErrorSet error = 2 [json_name = "error"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_error(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.UnknownSet unknown = 3 [json_name = "unknown"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_unknown(), 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* ExprValue::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.ExprValue) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 3, 3, 0, 2> ExprValue::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 3, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ExprValue_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // .google.api.expr.v1alpha1.Value value = 1 [json_name = "value"]; - {PROTOBUF_FIELD_OFFSET(ExprValue, _impl_.kind_.value_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.api.expr.v1alpha1.ErrorSet error = 2 [json_name = "error"]; - {PROTOBUF_FIELD_OFFSET(ExprValue, _impl_.kind_.error_), _Internal::kOneofCaseOffset + 0, 1, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.api.expr.v1alpha1.UnknownSet unknown = 3 [json_name = "unknown"]; - {PROTOBUF_FIELD_OFFSET(ExprValue, _impl_.kind_.unknown_), _Internal::kOneofCaseOffset + 0, 2, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::Value>()}, - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::ErrorSet>()}, - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::UnknownSet>()}, - }}, {{ - }}, -}; + // .google.api.expr.v1alpha1.Value value = 1 [json_name = "value"]; + if (_internal_has_value()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::value(this), + _Internal::value(this).GetCachedSize(), target, stream); + } -::uint8_t* ExprValue::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.ExprValue) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + // .google.api.expr.v1alpha1.ErrorSet error = 2 [json_name = "error"]; + if (_internal_has_error()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::error(this), + _Internal::error(this).GetCachedSize(), target, stream); + } - switch (kind_case()) { - case kValue: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::value(this), - _Internal::value(this).GetCachedSize(), target, stream); - break; - } - case kError: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::error(this), - _Internal::error(this).GetCachedSize(), target, stream); - break; - } - case kUnknown: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::unknown(this), - _Internal::unknown(this).GetCachedSize(), target, stream); - break; - } - default: - break; + // .google.api.expr.v1alpha1.UnknownSet unknown = 3 [json_name = "unknown"]; + if (_internal_has_unknown()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::unknown(this), + _Internal::unknown(this).GetCachedSize(), target, stream); } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1alpha1.ExprValue) return target; } -::size_t ExprValue::ByteSizeLong() const { +size_t ExprValue::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.ExprValue) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; switch (kind_case()) { // .google.api.expr.v1alpha1.Value value = 1 [json_name = "value"]; case kValue: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.kind_.value_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *kind_.value_); break; } // .google.api.expr.v1alpha1.ErrorSet error = 2 [json_name = "error"]; case kError: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.kind_.error_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *kind_.error_); break; } // .google.api.expr.v1alpha1.UnknownSet unknown = 3 [json_name = "unknown"]; case kUnknown: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.kind_.unknown_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *kind_.unknown_); break; } case KIND_NOT_SET: { break; } } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ExprValue::_class_data_ = { - ExprValue::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ExprValue::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ExprValue::MergeImpl }; -const ::google::protobuf::Message::ClassData* ExprValue::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ExprValue::GetClassData() const { return &_class_data_; } + +void ExprValue::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ExprValue::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.ExprValue) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ExprValue::MergeFrom(const ExprValue& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.ExprValue) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; switch (from.kind_case()) { case kValue: { - _this->_internal_mutable_value()->::google::api::expr::v1alpha1::Value::MergeFrom( - from._internal_value()); + _internal_mutable_value()->::google::api::expr::v1alpha1::Value::MergeFrom(from._internal_value()); break; } case kError: { - _this->_internal_mutable_error()->::google::api::expr::v1alpha1::ErrorSet::MergeFrom( - from._internal_error()); + _internal_mutable_error()->::google::api::expr::v1alpha1::ErrorSet::MergeFrom(from._internal_error()); break; } case kUnknown: { - _this->_internal_mutable_unknown()->::google::api::expr::v1alpha1::UnknownSet::MergeFrom( - from._internal_unknown()); + _internal_mutable_unknown()->::google::api::expr::v1alpha1::UnknownSet::MergeFrom(from._internal_unknown()); break; } case KIND_NOT_SET: { break; } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ExprValue::CopyFrom(const ExprValue& from) { @@ -1017,25 +953,23 @@ void ExprValue::CopyFrom(const ExprValue& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ExprValue::IsInitialized() const { +bool ExprValue::IsInitialized() const { return true; } -::_pbi::CachedSize* ExprValue::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ExprValue::InternalSwap(ExprValue* PROTOBUF_RESTRICT other) { +void ExprValue::InternalSwap(ExprValue* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.kind_, other->_impl_.kind_); - swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); + swap(kind_, other->kind_); + swap(_oneof_case_[0], other->_oneof_case_[0]); } -::google::protobuf::Metadata ExprValue::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ExprValue::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto[2]); } + // =================================================================== class ErrorSet::_Internal { @@ -1043,159 +977,155 @@ class ErrorSet::_Internal { }; void ErrorSet::clear_errors() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.errors_.Clear(); + errors_.Clear(); } -ErrorSet::ErrorSet(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ErrorSet::ErrorSet(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + errors_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.ErrorSet) } -inline PROTOBUF_NDEBUG_INLINE ErrorSet::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : errors_{visibility, arena, from.errors_}, - _cached_size_{0} {} - -ErrorSet::ErrorSet( - ::google::protobuf::Arena* arena, - const ErrorSet& from) - : ::google::protobuf::Message(arena) { - ErrorSet* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +ErrorSet::ErrorSet(const ErrorSet& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + errors_(from.errors_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.ErrorSet) } -inline PROTOBUF_NDEBUG_INLINE ErrorSet::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : errors_{visibility, arena}, - _cached_size_{0} {} -inline void ErrorSet::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void ErrorSet::SharedCtor() { } + ErrorSet::~ErrorSet() { // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.ErrorSet) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ErrorSet::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void ErrorSet::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void ErrorSet::Clear() { +void ErrorSet::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.ErrorSet) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.errors_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ErrorSet::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + errors_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ErrorSet::_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) { + // repeated .google.rpc.Status errors = 1 [json_name = "errors"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_errors(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ErrorSet::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ErrorSet_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .google.rpc.Status errors = 1 [json_name = "errors"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ErrorSet, _impl_.errors_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .google.rpc.Status errors = 1 [json_name = "errors"]; - {PROTOBUF_FIELD_OFFSET(ErrorSet, _impl_.errors_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::rpc::Status>()}, - }}, {{ - }}, -}; - -::uint8_t* ErrorSet::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ErrorSet::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.ErrorSet) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .google.rpc.Status errors = 1 [json_name = "errors"]; for (unsigned i = 0, n = static_cast(this->_internal_errors_size()); i < n; i++) { - const auto& repfield = this->_internal_errors().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_errors(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1alpha1.ErrorSet) return target; } -::size_t ErrorSet::ByteSizeLong() const { +size_t ErrorSet::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.ErrorSet) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .google.rpc.Status errors = 1 [json_name = "errors"]; total_size += 1UL * this->_internal_errors_size(); - for (const auto& msg : this->_internal_errors()) { + for (const auto& msg : this->errors_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ErrorSet::_class_data_ = { - ErrorSet::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ErrorSet::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ErrorSet::MergeImpl }; -const ::google::protobuf::Message::ClassData* ErrorSet::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ErrorSet::GetClassData() const { return &_class_data_; } + +void ErrorSet::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ErrorSet::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.ErrorSet) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ErrorSet::MergeFrom(const ErrorSet& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.ErrorSet) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_errors()->MergeFrom( - from._internal_errors()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + errors_.MergeFrom(from.errors_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ErrorSet::CopyFrom(const ErrorSet& from) { @@ -1205,132 +1135,121 @@ void ErrorSet::CopyFrom(const ErrorSet& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ErrorSet::IsInitialized() const { +bool ErrorSet::IsInitialized() const { return true; } -::_pbi::CachedSize* ErrorSet::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ErrorSet::InternalSwap(ErrorSet* PROTOBUF_RESTRICT other) { +void ErrorSet::InternalSwap(ErrorSet* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.errors_.InternalSwap(&other->_impl_.errors_); + errors_.InternalSwap(&other->errors_); } -::google::protobuf::Metadata ErrorSet::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ErrorSet::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto[3]); } + // =================================================================== class UnknownSet::_Internal { public: }; -UnknownSet::UnknownSet(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +UnknownSet::UnknownSet(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + exprs_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.UnknownSet) } -inline PROTOBUF_NDEBUG_INLINE UnknownSet::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : exprs_{visibility, arena, from.exprs_}, - _exprs_cached_byte_size_{0}, - _cached_size_{0} {} - -UnknownSet::UnknownSet( - ::google::protobuf::Arena* arena, - const UnknownSet& from) - : ::google::protobuf::Message(arena) { - UnknownSet* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +UnknownSet::UnknownSet(const UnknownSet& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + exprs_(from.exprs_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.UnknownSet) } -inline PROTOBUF_NDEBUG_INLINE UnknownSet::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : exprs_{visibility, arena}, - _exprs_cached_byte_size_{0}, - _cached_size_{0} {} -inline void UnknownSet::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void UnknownSet::SharedCtor() { } + UnknownSet::~UnknownSet() { // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.UnknownSet) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void UnknownSet::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void UnknownSet::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void UnknownSet::Clear() { +void UnknownSet::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.UnknownSet) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.exprs_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* UnknownSet::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + exprs_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* UnknownSet::_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) { + // repeated int64 exprs = 1 [json_name = "exprs"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(_internal_mutable_exprs(), ptr, ctx); + CHK_(ptr); + } else if (static_cast(tag) == 8) { + _internal_add_exprs(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> UnknownSet::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_UnknownSet_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated int64 exprs = 1 [json_name = "exprs"]; - {::_pbi::TcParser::FastV64P1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(UnknownSet, _impl_.exprs_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated int64 exprs = 1 [json_name = "exprs"]; - {PROTOBUF_FIELD_OFFSET(UnknownSet, _impl_.exprs_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt64)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* UnknownSet::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* UnknownSet::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.UnknownSet) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated int64 exprs = 1 [json_name = "exprs"]; { - int byte_size = _impl_._exprs_cached_byte_size_.Get(); + int byte_size = _exprs_cached_byte_size_.load(std::memory_order_relaxed); if (byte_size > 0) { target = stream->WriteInt64Packed( 1, _internal_exprs(), byte_size, target); @@ -1338,56 +1257,59 @@ ::uint8_t* UnknownSet::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1alpha1.UnknownSet) return target; } -::size_t UnknownSet::ByteSizeLong() const { +size_t UnknownSet::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.UnknownSet) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated int64 exprs = 1 [json_name = "exprs"]; { - std::size_t data_size = ::_pbi::WireFormatLite::Int64Size( - this->_internal_exprs()) - ; - _impl_._exprs_cached_byte_size_.Set(::_pbi::ToCachedSize(data_size)); - std::size_t tag_size = data_size == 0 - ? 0 - : 1 + ::_pbi::WireFormatLite::Int32Size( - static_cast(data_size)) - ; - total_size += tag_size + data_size; + size_t data_size = ::_pbi::WireFormatLite:: + Int64Size(this->exprs_); + if (data_size > 0) { + total_size += 1 + + ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); + } + int cached_size = ::_pbi::ToCachedSize(data_size); + _exprs_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); + total_size += data_size; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData UnknownSet::_class_data_ = { - UnknownSet::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UnknownSet::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + UnknownSet::MergeImpl }; -const ::google::protobuf::Message::ClassData* UnknownSet::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UnknownSet::GetClassData() const { return &_class_data_; } + +void UnknownSet::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void UnknownSet::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.UnknownSet) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void UnknownSet::MergeFrom(const UnknownSet& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.UnknownSet) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_exprs()->MergeFrom(from._internal_exprs()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + exprs_.MergeFrom(from.exprs_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void UnknownSet::CopyFrom(const UnknownSet& from) { @@ -1397,32 +1319,49 @@ void UnknownSet::CopyFrom(const UnknownSet& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool UnknownSet::IsInitialized() const { +bool UnknownSet::IsInitialized() const { return true; } -::_pbi::CachedSize* UnknownSet::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void UnknownSet::InternalSwap(UnknownSet* PROTOBUF_RESTRICT other) { +void UnknownSet::InternalSwap(UnknownSet* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.exprs_.InternalSwap(&other->_impl_.exprs_); + exprs_.InternalSwap(&other->exprs_); } -::google::protobuf::Metadata UnknownSet::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata UnknownSet::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto[4]); } + // @@protoc_insertion_point(namespace_scope) } // namespace v1alpha1 } // namespace expr } // namespace api } // namespace google -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::EvalState_Result* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::EvalState_Result >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::EvalState_Result >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::EvalState* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::EvalState >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::EvalState >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::ExprValue* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::ExprValue >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::ExprValue >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::ErrorSet* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::ErrorSet >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::ErrorSet >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::UnknownSet* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::UnknownSet >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::UnknownSet >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/google/api/expr/v1alpha1/eval.pb.h b/src/viam/api/google/api/expr/v1alpha1/eval.pb.h index c2af1388b..fa6c14ccd 100644 --- a/src/viam/api/google/api/expr/v1alpha1/eval.pb.h +++ b/src/viam/api/google/api/expr/v1alpha1/eval.pb.h @@ -1,62 +1,51 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/expr/v1alpha1/eval.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/unknown_field_set.h" + +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include #include "google/api/expr/v1alpha1/value.pb.h" #include "google/rpc/status.pb.h" // @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - +#include #define PROTOBUF_INTERNAL_EXPORT_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto; namespace google { namespace api { namespace expr { @@ -79,10 +68,14 @@ extern UnknownSetDefaultTypeInternal _UnknownSet_default_instance_; } // namespace v1alpha1 } // namespace expr } // namespace api -namespace protobuf { -} // namespace protobuf } // namespace google - +PROTOBUF_NAMESPACE_OPEN +template<> ::google::api::expr::v1alpha1::ErrorSet* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::ErrorSet>(Arena*); +template<> ::google::api::expr::v1alpha1::EvalState* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::EvalState>(Arena*); +template<> ::google::api::expr::v1alpha1::EvalState_Result* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::EvalState_Result>(Arena*); +template<> ::google::api::expr::v1alpha1::ExprValue* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::ExprValue>(Arena*); +template<> ::google::api::expr::v1alpha1::UnknownSet* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::UnknownSet>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace google { namespace api { namespace expr { @@ -90,203 +83,14 @@ namespace v1alpha1 { // =================================================================== - -// ------------------------------------------------------------------- - -class UnknownSet final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.UnknownSet) */ { - public: - inline UnknownSet() : UnknownSet(nullptr) {} - ~UnknownSet() override; - template - explicit PROTOBUF_CONSTEXPR UnknownSet(::google::protobuf::internal::ConstantInitialized); - - inline UnknownSet(const UnknownSet& from) - : UnknownSet(nullptr, from) {} - UnknownSet(UnknownSet&& from) noexcept - : UnknownSet() { - *this = ::std::move(from); - } - - inline UnknownSet& operator=(const UnknownSet& from) { - CopyFrom(from); - return *this; - } - inline UnknownSet& operator=(UnknownSet&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const UnknownSet& default_instance() { - return *internal_default_instance(); - } - static inline const UnknownSet* internal_default_instance() { - return reinterpret_cast( - &_UnknownSet_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - friend void swap(UnknownSet& a, UnknownSet& b) { - a.Swap(&b); - } - inline void Swap(UnknownSet* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(UnknownSet* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - UnknownSet* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const UnknownSet& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const UnknownSet& from) { - UnknownSet::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(UnknownSet* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.expr.v1alpha1.UnknownSet"; - } - protected: - explicit UnknownSet(::google::protobuf::Arena* arena); - UnknownSet(::google::protobuf::Arena* arena, const UnknownSet& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kExprsFieldNumber = 1, - }; - // repeated int64 exprs = 1 [json_name = "exprs"]; - int exprs_size() const; - private: - int _internal_exprs_size() const; - - public: - void clear_exprs() ; - ::int64_t exprs(int index) const; - void set_exprs(int index, ::int64_t value); - void add_exprs(::int64_t value); - const ::google::protobuf::RepeatedField<::int64_t>& exprs() const; - ::google::protobuf::RepeatedField<::int64_t>* mutable_exprs(); - - private: - const ::google::protobuf::RepeatedField<::int64_t>& _internal_exprs() const; - ::google::protobuf::RepeatedField<::int64_t>* _internal_mutable_exprs(); - - public: - // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.UnknownSet) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedField<::int64_t> exprs_; - mutable ::google::protobuf::internal::CachedSize _exprs_cached_byte_size_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto; -};// ------------------------------------------------------------------- - class EvalState_Result final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.EvalState.Result) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.EvalState.Result) */ { public: inline EvalState_Result() : EvalState_Result(nullptr) {} ~EvalState_Result() override; - template - explicit PROTOBUF_CONSTEXPR EvalState_Result(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR EvalState_Result(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline EvalState_Result(const EvalState_Result& from) - : EvalState_Result(nullptr, from) {} + EvalState_Result(const EvalState_Result& from); EvalState_Result(EvalState_Result&& from) noexcept : EvalState_Result() { *this = ::std::move(from); @@ -298,9 +102,9 @@ class EvalState_Result final : } inline EvalState_Result& operator=(EvalState_Result&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -310,22 +114,13 @@ class EvalState_Result final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const EvalState_Result& default_instance() { @@ -344,65 +139,63 @@ class EvalState_Result final : inline void Swap(EvalState_Result* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(EvalState_Result* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - EvalState_Result* New(::google::protobuf::Arena* arena = nullptr) const final { + EvalState_Result* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const EvalState_Result& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const EvalState_Result& from) { - EvalState_Result::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const EvalState_Result& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(EvalState_Result* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "google.api.expr.v1alpha1.EvalState.Result"; } protected: - explicit EvalState_Result(::google::protobuf::Arena* arena); - EvalState_Result(::google::protobuf::Arena* arena, const EvalState_Result& from); + explicit EvalState_Result(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -413,81 +206,59 @@ class EvalState_Result final : kValueFieldNumber = 2, }; // int64 expr = 1 [json_name = "expr"]; - void clear_expr() ; - ::int64_t expr() const; - void set_expr(::int64_t value); - + void clear_expr(); + int64_t expr() const; + void set_expr(int64_t value); private: - ::int64_t _internal_expr() const; - void _internal_set_expr(::int64_t value); - + int64_t _internal_expr() const; + void _internal_set_expr(int64_t value); public: - // int64 value = 2 [json_name = "value"]; - void clear_value() ; - ::int64_t value() const; - void set_value(::int64_t value); + // int64 value = 2 [json_name = "value"]; + void clear_value(); + int64_t value() const; + void set_value(int64_t value); private: - ::int64_t _internal_value() const; - void _internal_set_value(::int64_t value); - + int64_t _internal_value() const; + void _internal_set_value(int64_t value); public: + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.EvalState.Result) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::int64_t expr_; - ::int64_t value_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + int64_t expr_; + int64_t value_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ErrorSet final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.ErrorSet) */ { +class EvalState final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.EvalState) */ { public: - inline ErrorSet() : ErrorSet(nullptr) {} - ~ErrorSet() override; - template - explicit PROTOBUF_CONSTEXPR ErrorSet(::google::protobuf::internal::ConstantInitialized); + inline EvalState() : EvalState(nullptr) {} + ~EvalState() override; + explicit PROTOBUF_CONSTEXPR EvalState(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ErrorSet(const ErrorSet& from) - : ErrorSet(nullptr, from) {} - ErrorSet(ErrorSet&& from) noexcept - : ErrorSet() { + EvalState(const EvalState& from); + EvalState(EvalState&& from) noexcept + : EvalState() { *this = ::std::move(from); } - inline ErrorSet& operator=(const ErrorSet& from) { + inline EvalState& operator=(const EvalState& from) { CopyFrom(from); return *this; } - inline ErrorSet& operator=(ErrorSet&& from) noexcept { + inline EvalState& operator=(EvalState&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -497,166 +268,157 @@ class ErrorSet final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ErrorSet& default_instance() { + static const EvalState& default_instance() { return *internal_default_instance(); } - static inline const ErrorSet* internal_default_instance() { - return reinterpret_cast( - &_ErrorSet_default_instance_); + static inline const EvalState* internal_default_instance() { + return reinterpret_cast( + &_EvalState_default_instance_); } static constexpr int kIndexInFileMessages = - 3; + 1; - friend void swap(ErrorSet& a, ErrorSet& b) { + friend void swap(EvalState& a, EvalState& b) { a.Swap(&b); } - inline void Swap(ErrorSet* other) { + inline void Swap(EvalState* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ErrorSet* other) { + void UnsafeArenaSwap(EvalState* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ErrorSet* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ErrorSet& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ErrorSet& from) { - ErrorSet::MergeImpl(*this, from); + EvalState* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const EvalState& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const EvalState& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ErrorSet* other); + void SetCachedSize(int size) const final; + void InternalSwap(EvalState* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.expr.v1alpha1.ErrorSet"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.EvalState"; } protected: - explicit ErrorSet(::google::protobuf::Arena* arena); - ErrorSet(::google::protobuf::Arena* arena, const ErrorSet& from); + explicit EvalState(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- + typedef EvalState_Result Result; + // accessors ------------------------------------------------------- enum : int { - kErrorsFieldNumber = 1, + kValuesFieldNumber = 1, + kResultsFieldNumber = 3, }; - // repeated .google.rpc.Status errors = 1 [json_name = "errors"]; - int errors_size() const; + // repeated .google.api.expr.v1alpha1.ExprValue values = 1 [json_name = "values"]; + int values_size() const; private: - int _internal_errors_size() const; + int _internal_values_size() const; + public: + void clear_values(); + ::google::api::expr::v1alpha1::ExprValue* mutable_values(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::ExprValue >* + mutable_values(); + private: + const ::google::api::expr::v1alpha1::ExprValue& _internal_values(int index) const; + ::google::api::expr::v1alpha1::ExprValue* _internal_add_values(); + public: + const ::google::api::expr::v1alpha1::ExprValue& values(int index) const; + ::google::api::expr::v1alpha1::ExprValue* add_values(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::ExprValue >& + values() const; + // repeated .google.api.expr.v1alpha1.EvalState.Result results = 3 [json_name = "results"]; + int results_size() const; + private: + int _internal_results_size() const; public: - void clear_errors() ; - ::google::rpc::Status* mutable_errors(int index); - ::google::protobuf::RepeatedPtrField< ::google::rpc::Status >* - mutable_errors(); + void clear_results(); + ::google::api::expr::v1alpha1::EvalState_Result* mutable_results(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::EvalState_Result >* + mutable_results(); private: - const ::google::protobuf::RepeatedPtrField<::google::rpc::Status>& _internal_errors() const; - ::google::protobuf::RepeatedPtrField<::google::rpc::Status>* _internal_mutable_errors(); + const ::google::api::expr::v1alpha1::EvalState_Result& _internal_results(int index) const; + ::google::api::expr::v1alpha1::EvalState_Result* _internal_add_results(); public: - const ::google::rpc::Status& errors(int index) const; - ::google::rpc::Status* add_errors(); - const ::google::protobuf::RepeatedPtrField< ::google::rpc::Status >& - errors() const; - // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.ErrorSet) + const ::google::api::expr::v1alpha1::EvalState_Result& results(int index) const; + ::google::api::expr::v1alpha1::EvalState_Result* add_results(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::EvalState_Result >& + results() const; + + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.EvalState) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::google::rpc::Status > errors_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::ExprValue > values_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::EvalState_Result > results_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class ExprValue final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.ExprValue) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.ExprValue) */ { public: inline ExprValue() : ExprValue(nullptr) {} ~ExprValue() override; - template - explicit PROTOBUF_CONSTEXPR ExprValue(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR ExprValue(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ExprValue(const ExprValue& from) - : ExprValue(nullptr, from) {} + ExprValue(const ExprValue& from); ExprValue(ExprValue&& from) noexcept : ExprValue() { *this = ::std::move(from); @@ -668,9 +430,9 @@ class ExprValue final : } inline ExprValue& operator=(ExprValue&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -680,22 +442,13 @@ class ExprValue final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const ExprValue& default_instance() { @@ -721,65 +474,63 @@ class ExprValue final : inline void Swap(ExprValue* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(ExprValue* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ExprValue* New(::google::protobuf::Arena* arena = nullptr) const final { + ExprValue* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const ExprValue& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ExprValue& from) { - ExprValue::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ExprValue& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(ExprValue* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "google.api.expr.v1alpha1.ExprValue"; } protected: - explicit ExprValue(::google::protobuf::Arena* arena); - ExprValue(::google::protobuf::Arena* arena, const ExprValue& from); + explicit ExprValue(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -794,59 +545,56 @@ class ExprValue final : bool has_value() const; private: bool _internal_has_value() const; - public: - void clear_value() ; + void clear_value(); const ::google::api::expr::v1alpha1::Value& value() const; PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Value* release_value(); ::google::api::expr::v1alpha1::Value* mutable_value(); void set_allocated_value(::google::api::expr::v1alpha1::Value* value); - void unsafe_arena_set_allocated_value(::google::api::expr::v1alpha1::Value* value); - ::google::api::expr::v1alpha1::Value* unsafe_arena_release_value(); - private: const ::google::api::expr::v1alpha1::Value& _internal_value() const; ::google::api::expr::v1alpha1::Value* _internal_mutable_value(); - public: + void unsafe_arena_set_allocated_value( + ::google::api::expr::v1alpha1::Value* value); + ::google::api::expr::v1alpha1::Value* unsafe_arena_release_value(); + // .google.api.expr.v1alpha1.ErrorSet error = 2 [json_name = "error"]; bool has_error() const; private: bool _internal_has_error() const; - public: - void clear_error() ; + void clear_error(); const ::google::api::expr::v1alpha1::ErrorSet& error() const; PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::ErrorSet* release_error(); ::google::api::expr::v1alpha1::ErrorSet* mutable_error(); - void set_allocated_error(::google::api::expr::v1alpha1::ErrorSet* value); - void unsafe_arena_set_allocated_error(::google::api::expr::v1alpha1::ErrorSet* value); - ::google::api::expr::v1alpha1::ErrorSet* unsafe_arena_release_error(); - + void set_allocated_error(::google::api::expr::v1alpha1::ErrorSet* error); private: const ::google::api::expr::v1alpha1::ErrorSet& _internal_error() const; ::google::api::expr::v1alpha1::ErrorSet* _internal_mutable_error(); - public: + void unsafe_arena_set_allocated_error( + ::google::api::expr::v1alpha1::ErrorSet* error); + ::google::api::expr::v1alpha1::ErrorSet* unsafe_arena_release_error(); + // .google.api.expr.v1alpha1.UnknownSet unknown = 3 [json_name = "unknown"]; bool has_unknown() const; private: bool _internal_has_unknown() const; - public: - void clear_unknown() ; + void clear_unknown(); const ::google::api::expr::v1alpha1::UnknownSet& unknown() const; PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::UnknownSet* release_unknown(); ::google::api::expr::v1alpha1::UnknownSet* mutable_unknown(); - void set_allocated_unknown(::google::api::expr::v1alpha1::UnknownSet* value); - void unsafe_arena_set_allocated_unknown(::google::api::expr::v1alpha1::UnknownSet* value); - ::google::api::expr::v1alpha1::UnknownSet* unsafe_arena_release_unknown(); - + void set_allocated_unknown(::google::api::expr::v1alpha1::UnknownSet* unknown); private: const ::google::api::expr::v1alpha1::UnknownSet& _internal_unknown() const; ::google::api::expr::v1alpha1::UnknownSet* _internal_mutable_unknown(); - public: + void unsafe_arena_set_allocated_unknown( + ::google::api::expr::v1alpha1::UnknownSet* unknown); + ::google::api::expr::v1alpha1::UnknownSet* unsafe_arena_release_unknown(); + void clear_kind(); KindCase kind_case() const; // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.ExprValue) @@ -859,65 +607,45 @@ class ExprValue final : inline bool has_kind() const; inline void clear_has_kind(); - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 3, 3, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - union KindUnion { - constexpr KindUnion() : _constinit_{} {} - ::google::protobuf::internal::ConstantInitialized _constinit_; - ::google::api::expr::v1alpha1::Value* value_; - ::google::api::expr::v1alpha1::ErrorSet* error_; - ::google::api::expr::v1alpha1::UnknownSet* unknown_; - } kind_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t _oneof_case_[1]; - - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + union KindUnion { + constexpr KindUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::google::api::expr::v1alpha1::Value* value_; + ::google::api::expr::v1alpha1::ErrorSet* error_; + ::google::api::expr::v1alpha1::UnknownSet* unknown_; + } kind_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class EvalState final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.EvalState) */ { +class ErrorSet final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.ErrorSet) */ { public: - inline EvalState() : EvalState(nullptr) {} - ~EvalState() override; - template - explicit PROTOBUF_CONSTEXPR EvalState(::google::protobuf::internal::ConstantInitialized); + inline ErrorSet() : ErrorSet(nullptr) {} + ~ErrorSet() override; + explicit PROTOBUF_CONSTEXPR ErrorSet(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline EvalState(const EvalState& from) - : EvalState(nullptr, from) {} - EvalState(EvalState&& from) noexcept - : EvalState() { + ErrorSet(const ErrorSet& from); + ErrorSet(ErrorSet&& from) noexcept + : ErrorSet() { *this = ::std::move(from); } - inline EvalState& operator=(const EvalState& from) { + inline ErrorSet& operator=(const ErrorSet& from) { CopyFrom(from); return *this; } - inline EvalState& operator=(EvalState&& from) noexcept { + inline ErrorSet& operator=(ErrorSet&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -927,239 +655,332 @@ class EvalState final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const EvalState& default_instance() { + static const ErrorSet& default_instance() { return *internal_default_instance(); } - static inline const EvalState* internal_default_instance() { - return reinterpret_cast( - &_EvalState_default_instance_); + static inline const ErrorSet* internal_default_instance() { + return reinterpret_cast( + &_ErrorSet_default_instance_); } static constexpr int kIndexInFileMessages = - 1; + 3; - friend void swap(EvalState& a, EvalState& b) { + friend void swap(ErrorSet& a, ErrorSet& b) { a.Swap(&b); } - inline void Swap(EvalState* other) { + inline void Swap(ErrorSet* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(EvalState* other) { + void UnsafeArenaSwap(ErrorSet* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - EvalState* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const EvalState& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const EvalState& from) { - EvalState::MergeImpl(*this, from); + ErrorSet* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ErrorSet& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ErrorSet& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(EvalState* other); + void SetCachedSize(int size) const final; + void InternalSwap(ErrorSet* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.expr.v1alpha1.EvalState"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.ErrorSet"; } protected: - explicit EvalState(::google::protobuf::Arena* arena); - EvalState(::google::protobuf::Arena* arena, const EvalState& from); + explicit ErrorSet(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- - using Result = EvalState_Result; - // accessors ------------------------------------------------------- enum : int { - kValuesFieldNumber = 1, - kResultsFieldNumber = 3, + kErrorsFieldNumber = 1, }; - // repeated .google.api.expr.v1alpha1.ExprValue values = 1 [json_name = "values"]; - int values_size() const; + // repeated .google.rpc.Status errors = 1 [json_name = "errors"]; + int errors_size() const; private: - int _internal_values_size() const; - + int _internal_errors_size() const; public: - void clear_values() ; - ::google::api::expr::v1alpha1::ExprValue* mutable_values(int index); - ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1alpha1::ExprValue >* - mutable_values(); + void clear_errors(); + ::google::rpc::Status* mutable_errors(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::Status >* + mutable_errors(); private: - const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::ExprValue>& _internal_values() const; - ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::ExprValue>* _internal_mutable_values(); + const ::google::rpc::Status& _internal_errors(int index) const; + ::google::rpc::Status* _internal_add_errors(); public: - const ::google::api::expr::v1alpha1::ExprValue& values(int index) const; - ::google::api::expr::v1alpha1::ExprValue* add_values(); - const ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1alpha1::ExprValue >& - values() const; - // repeated .google.api.expr.v1alpha1.EvalState.Result results = 3 [json_name = "results"]; - int results_size() const; + const ::google::rpc::Status& errors(int index) const; + ::google::rpc::Status* add_errors(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::Status >& + errors() const; + + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.ErrorSet) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::Status > errors_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto; +}; +// ------------------------------------------------------------------- + +class UnknownSet final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.UnknownSet) */ { + public: + inline UnknownSet() : UnknownSet(nullptr) {} + ~UnknownSet() override; + explicit PROTOBUF_CONSTEXPR UnknownSet(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + UnknownSet(const UnknownSet& from); + UnknownSet(UnknownSet&& from) noexcept + : UnknownSet() { + *this = ::std::move(from); + } + + inline UnknownSet& operator=(const UnknownSet& from) { + CopyFrom(from); + return *this; + } + inline UnknownSet& operator=(UnknownSet&& 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 UnknownSet& default_instance() { + return *internal_default_instance(); + } + static inline const UnknownSet* internal_default_instance() { + return reinterpret_cast( + &_UnknownSet_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(UnknownSet& a, UnknownSet& b) { + a.Swap(&b); + } + inline void Swap(UnknownSet* 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(UnknownSet* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + UnknownSet* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const UnknownSet& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const UnknownSet& from); private: - int _internal_results_size() const; + 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(UnknownSet* other); + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.UnknownSet"; + } + protected: + explicit UnknownSet(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - void clear_results() ; - ::google::api::expr::v1alpha1::EvalState_Result* mutable_results(int index); - ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1alpha1::EvalState_Result >* - mutable_results(); + + 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 { + kExprsFieldNumber = 1, + }; + // repeated int64 exprs = 1 [json_name = "exprs"]; + int exprs_size() const; private: - const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::EvalState_Result>& _internal_results() const; - ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::EvalState_Result>* _internal_mutable_results(); + int _internal_exprs_size() const; public: - const ::google::api::expr::v1alpha1::EvalState_Result& results(int index) const; - ::google::api::expr::v1alpha1::EvalState_Result* add_results(); - const ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1alpha1::EvalState_Result >& - results() const; - // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.EvalState) + void clear_exprs(); + private: + int64_t _internal_exprs(int index) const; + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >& + _internal_exprs() const; + void _internal_add_exprs(int64_t value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >* + _internal_mutable_exprs(); + public: + int64_t exprs(int index) const; + void set_exprs(int index, int64_t value); + void add_exprs(int64_t value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >& + exprs() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >* + mutable_exprs(); + + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.UnknownSet) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 2, 2, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1alpha1::ExprValue > values_; - ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1alpha1::EvalState_Result > results_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t > exprs_; + mutable std::atomic _exprs_cached_byte_size_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto; }; - // =================================================================== - - // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ -// ------------------------------------------------------------------- - // EvalState_Result // int64 expr = 1 [json_name = "expr"]; inline void EvalState_Result::clear_expr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.expr_ = ::int64_t{0}; + expr_ = int64_t{0}; +} +inline int64_t EvalState_Result::_internal_expr() const { + return expr_; } -inline ::int64_t EvalState_Result::expr() const { +inline int64_t EvalState_Result::expr() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.EvalState.Result.expr) return _internal_expr(); } -inline void EvalState_Result::set_expr(::int64_t value) { +inline void EvalState_Result::_internal_set_expr(int64_t value) { + + expr_ = value; +} +inline void EvalState_Result::set_expr(int64_t value) { _internal_set_expr(value); // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.EvalState.Result.expr) } -inline ::int64_t EvalState_Result::_internal_expr() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.expr_; -} -inline void EvalState_Result::_internal_set_expr(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.expr_ = value; -} // int64 value = 2 [json_name = "value"]; inline void EvalState_Result::clear_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.value_ = ::int64_t{0}; + value_ = int64_t{0}; +} +inline int64_t EvalState_Result::_internal_value() const { + return value_; } -inline ::int64_t EvalState_Result::value() const { +inline int64_t EvalState_Result::value() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.EvalState.Result.value) return _internal_value(); } -inline void EvalState_Result::set_value(::int64_t value) { +inline void EvalState_Result::_internal_set_value(int64_t value) { + + value_ = value; +} +inline void EvalState_Result::set_value(int64_t value) { _internal_set_value(value); // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.EvalState.Result.value) } -inline ::int64_t EvalState_Result::_internal_value() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.value_; -} -inline void EvalState_Result::_internal_set_value(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.value_ = value; -} // ------------------------------------------------------------------- @@ -1167,100 +988,82 @@ inline void EvalState_Result::_internal_set_value(::int64_t value) { // repeated .google.api.expr.v1alpha1.ExprValue values = 1 [json_name = "values"]; inline int EvalState::_internal_values_size() const { - return _internal_values().size(); + return values_.size(); } inline int EvalState::values_size() const { return _internal_values_size(); } inline void EvalState::clear_values() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.values_.Clear(); + values_.Clear(); } -inline ::google::api::expr::v1alpha1::ExprValue* EvalState::mutable_values(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::ExprValue* EvalState::mutable_values(int index) { // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.EvalState.values) - return _internal_mutable_values()->Mutable(index); + return values_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::ExprValue>* EvalState::mutable_values() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::ExprValue >* +EvalState::mutable_values() { // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1alpha1.EvalState.values) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_values(); + return &values_; +} +inline const ::google::api::expr::v1alpha1::ExprValue& EvalState::_internal_values(int index) const { + return values_.Get(index); } -inline const ::google::api::expr::v1alpha1::ExprValue& EvalState::values(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::ExprValue& EvalState::values(int index) const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.EvalState.values) - return _internal_values().Get(index); + return _internal_values(index); +} +inline ::google::api::expr::v1alpha1::ExprValue* EvalState::_internal_add_values() { + return values_.Add(); } -inline ::google::api::expr::v1alpha1::ExprValue* EvalState::add_values() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::google::api::expr::v1alpha1::ExprValue* _add = _internal_mutable_values()->Add(); +inline ::google::api::expr::v1alpha1::ExprValue* EvalState::add_values() { + ::google::api::expr::v1alpha1::ExprValue* _add = _internal_add_values(); // @@protoc_insertion_point(field_add:google.api.expr.v1alpha1.EvalState.values) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::ExprValue>& EvalState::values() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::ExprValue >& +EvalState::values() const { // @@protoc_insertion_point(field_list:google.api.expr.v1alpha1.EvalState.values) - return _internal_values(); -} -inline const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::ExprValue>& -EvalState::_internal_values() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.values_; -} -inline ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::ExprValue>* -EvalState::_internal_mutable_values() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.values_; + return values_; } // repeated .google.api.expr.v1alpha1.EvalState.Result results = 3 [json_name = "results"]; inline int EvalState::_internal_results_size() const { - return _internal_results().size(); + return results_.size(); } inline int EvalState::results_size() const { return _internal_results_size(); } inline void EvalState::clear_results() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.results_.Clear(); + results_.Clear(); } -inline ::google::api::expr::v1alpha1::EvalState_Result* EvalState::mutable_results(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::EvalState_Result* EvalState::mutable_results(int index) { // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.EvalState.results) - return _internal_mutable_results()->Mutable(index); + return results_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::EvalState_Result>* EvalState::mutable_results() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::EvalState_Result >* +EvalState::mutable_results() { // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1alpha1.EvalState.results) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_results(); + return &results_; } -inline const ::google::api::expr::v1alpha1::EvalState_Result& EvalState::results(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::EvalState_Result& EvalState::_internal_results(int index) const { + return results_.Get(index); +} +inline const ::google::api::expr::v1alpha1::EvalState_Result& EvalState::results(int index) const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.EvalState.results) - return _internal_results().Get(index); + return _internal_results(index); +} +inline ::google::api::expr::v1alpha1::EvalState_Result* EvalState::_internal_add_results() { + return results_.Add(); } -inline ::google::api::expr::v1alpha1::EvalState_Result* EvalState::add_results() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::google::api::expr::v1alpha1::EvalState_Result* _add = _internal_mutable_results()->Add(); +inline ::google::api::expr::v1alpha1::EvalState_Result* EvalState::add_results() { + ::google::api::expr::v1alpha1::EvalState_Result* _add = _internal_add_results(); // @@protoc_insertion_point(field_add:google.api.expr.v1alpha1.EvalState.results) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::EvalState_Result>& EvalState::results() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::EvalState_Result >& +EvalState::results() const { // @@protoc_insertion_point(field_list:google.api.expr.v1alpha1.EvalState.results) - return _internal_results(); -} -inline const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::EvalState_Result>& -EvalState::_internal_results() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.results_; -} -inline ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::EvalState_Result>* -EvalState::_internal_mutable_results() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.results_; + return results_; } // ------------------------------------------------------------------- @@ -1268,219 +1071,214 @@ EvalState::_internal_mutable_results() { // ExprValue // .google.api.expr.v1alpha1.Value value = 1 [json_name = "value"]; -inline bool ExprValue::has_value() const { - return kind_case() == kValue; -} inline bool ExprValue::_internal_has_value() const { return kind_case() == kValue; } +inline bool ExprValue::has_value() const { + return _internal_has_value(); +} inline void ExprValue::set_has_value() { - _impl_._oneof_case_[0] = kValue; + _oneof_case_[0] = kValue; } inline ::google::api::expr::v1alpha1::Value* ExprValue::release_value() { // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.ExprValue.value) - if (kind_case() == kValue) { + if (_internal_has_value()) { clear_has_kind(); - auto* temp = _impl_.kind_.value_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::google::api::expr::v1alpha1::Value* temp = kind_.value_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.kind_.value_ = nullptr; + kind_.value_ = nullptr; return temp; } else { return nullptr; } } inline const ::google::api::expr::v1alpha1::Value& ExprValue::_internal_value() const { - return kind_case() == kValue ? *_impl_.kind_.value_ : reinterpret_cast<::google::api::expr::v1alpha1::Value&>(::google::api::expr::v1alpha1::_Value_default_instance_); + return _internal_has_value() + ? *kind_.value_ + : reinterpret_cast< ::google::api::expr::v1alpha1::Value&>(::google::api::expr::v1alpha1::_Value_default_instance_); } -inline const ::google::api::expr::v1alpha1::Value& ExprValue::value() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::Value& ExprValue::value() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.ExprValue.value) return _internal_value(); } inline ::google::api::expr::v1alpha1::Value* ExprValue::unsafe_arena_release_value() { // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1alpha1.ExprValue.value) - if (kind_case() == kValue) { + if (_internal_has_value()) { clear_has_kind(); - auto* temp = _impl_.kind_.value_; - _impl_.kind_.value_ = nullptr; + ::google::api::expr::v1alpha1::Value* temp = kind_.value_; + kind_.value_ = nullptr; return temp; } else { return nullptr; } } inline void ExprValue::unsafe_arena_set_allocated_value(::google::api::expr::v1alpha1::Value* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. clear_kind(); if (value) { set_has_value(); - _impl_.kind_.value_ = value; + kind_.value_ = value; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.ExprValue.value) } inline ::google::api::expr::v1alpha1::Value* ExprValue::_internal_mutable_value() { - if (kind_case() != kValue) { + if (!_internal_has_value()) { clear_kind(); set_has_value(); - _impl_.kind_.value_ = CreateMaybeMessage<::google::api::expr::v1alpha1::Value>(GetArena()); + kind_.value_ = CreateMaybeMessage< ::google::api::expr::v1alpha1::Value >(GetArenaForAllocation()); } - return _impl_.kind_.value_; + return kind_.value_; } -inline ::google::api::expr::v1alpha1::Value* ExprValue::mutable_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::Value* ExprValue::mutable_value() { ::google::api::expr::v1alpha1::Value* _msg = _internal_mutable_value(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.ExprValue.value) return _msg; } // .google.api.expr.v1alpha1.ErrorSet error = 2 [json_name = "error"]; -inline bool ExprValue::has_error() const { - return kind_case() == kError; -} inline bool ExprValue::_internal_has_error() const { return kind_case() == kError; } +inline bool ExprValue::has_error() const { + return _internal_has_error(); +} inline void ExprValue::set_has_error() { - _impl_._oneof_case_[0] = kError; + _oneof_case_[0] = kError; } inline void ExprValue::clear_error() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() == kError) { - if (GetArena() == nullptr) { - delete _impl_.kind_.error_; + if (_internal_has_error()) { + if (GetArenaForAllocation() == nullptr) { + delete kind_.error_; } clear_has_kind(); } } inline ::google::api::expr::v1alpha1::ErrorSet* ExprValue::release_error() { // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.ExprValue.error) - if (kind_case() == kError) { + if (_internal_has_error()) { clear_has_kind(); - auto* temp = _impl_.kind_.error_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::google::api::expr::v1alpha1::ErrorSet* temp = kind_.error_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.kind_.error_ = nullptr; + kind_.error_ = nullptr; return temp; } else { return nullptr; } } inline const ::google::api::expr::v1alpha1::ErrorSet& ExprValue::_internal_error() const { - return kind_case() == kError ? *_impl_.kind_.error_ : reinterpret_cast<::google::api::expr::v1alpha1::ErrorSet&>(::google::api::expr::v1alpha1::_ErrorSet_default_instance_); + return _internal_has_error() + ? *kind_.error_ + : reinterpret_cast< ::google::api::expr::v1alpha1::ErrorSet&>(::google::api::expr::v1alpha1::_ErrorSet_default_instance_); } -inline const ::google::api::expr::v1alpha1::ErrorSet& ExprValue::error() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::ErrorSet& ExprValue::error() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.ExprValue.error) return _internal_error(); } inline ::google::api::expr::v1alpha1::ErrorSet* ExprValue::unsafe_arena_release_error() { // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1alpha1.ExprValue.error) - if (kind_case() == kError) { + if (_internal_has_error()) { clear_has_kind(); - auto* temp = _impl_.kind_.error_; - _impl_.kind_.error_ = nullptr; + ::google::api::expr::v1alpha1::ErrorSet* temp = kind_.error_; + kind_.error_ = nullptr; return temp; } else { return nullptr; } } -inline void ExprValue::unsafe_arena_set_allocated_error(::google::api::expr::v1alpha1::ErrorSet* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void ExprValue::unsafe_arena_set_allocated_error(::google::api::expr::v1alpha1::ErrorSet* error) { clear_kind(); - if (value) { + if (error) { set_has_error(); - _impl_.kind_.error_ = value; + kind_.error_ = error; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.ExprValue.error) } inline ::google::api::expr::v1alpha1::ErrorSet* ExprValue::_internal_mutable_error() { - if (kind_case() != kError) { + if (!_internal_has_error()) { clear_kind(); set_has_error(); - _impl_.kind_.error_ = CreateMaybeMessage<::google::api::expr::v1alpha1::ErrorSet>(GetArena()); + kind_.error_ = CreateMaybeMessage< ::google::api::expr::v1alpha1::ErrorSet >(GetArenaForAllocation()); } - return _impl_.kind_.error_; + return kind_.error_; } -inline ::google::api::expr::v1alpha1::ErrorSet* ExprValue::mutable_error() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::ErrorSet* ExprValue::mutable_error() { ::google::api::expr::v1alpha1::ErrorSet* _msg = _internal_mutable_error(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.ExprValue.error) return _msg; } // .google.api.expr.v1alpha1.UnknownSet unknown = 3 [json_name = "unknown"]; -inline bool ExprValue::has_unknown() const { - return kind_case() == kUnknown; -} inline bool ExprValue::_internal_has_unknown() const { return kind_case() == kUnknown; } +inline bool ExprValue::has_unknown() const { + return _internal_has_unknown(); +} inline void ExprValue::set_has_unknown() { - _impl_._oneof_case_[0] = kUnknown; + _oneof_case_[0] = kUnknown; } inline void ExprValue::clear_unknown() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() == kUnknown) { - if (GetArena() == nullptr) { - delete _impl_.kind_.unknown_; + if (_internal_has_unknown()) { + if (GetArenaForAllocation() == nullptr) { + delete kind_.unknown_; } clear_has_kind(); } } inline ::google::api::expr::v1alpha1::UnknownSet* ExprValue::release_unknown() { // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.ExprValue.unknown) - if (kind_case() == kUnknown) { + if (_internal_has_unknown()) { clear_has_kind(); - auto* temp = _impl_.kind_.unknown_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::google::api::expr::v1alpha1::UnknownSet* temp = kind_.unknown_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.kind_.unknown_ = nullptr; + kind_.unknown_ = nullptr; return temp; } else { return nullptr; } } inline const ::google::api::expr::v1alpha1::UnknownSet& ExprValue::_internal_unknown() const { - return kind_case() == kUnknown ? *_impl_.kind_.unknown_ : reinterpret_cast<::google::api::expr::v1alpha1::UnknownSet&>(::google::api::expr::v1alpha1::_UnknownSet_default_instance_); + return _internal_has_unknown() + ? *kind_.unknown_ + : reinterpret_cast< ::google::api::expr::v1alpha1::UnknownSet&>(::google::api::expr::v1alpha1::_UnknownSet_default_instance_); } -inline const ::google::api::expr::v1alpha1::UnknownSet& ExprValue::unknown() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::UnknownSet& ExprValue::unknown() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.ExprValue.unknown) return _internal_unknown(); } inline ::google::api::expr::v1alpha1::UnknownSet* ExprValue::unsafe_arena_release_unknown() { // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1alpha1.ExprValue.unknown) - if (kind_case() == kUnknown) { + if (_internal_has_unknown()) { clear_has_kind(); - auto* temp = _impl_.kind_.unknown_; - _impl_.kind_.unknown_ = nullptr; + ::google::api::expr::v1alpha1::UnknownSet* temp = kind_.unknown_; + kind_.unknown_ = nullptr; return temp; } else { return nullptr; } } -inline void ExprValue::unsafe_arena_set_allocated_unknown(::google::api::expr::v1alpha1::UnknownSet* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void ExprValue::unsafe_arena_set_allocated_unknown(::google::api::expr::v1alpha1::UnknownSet* unknown) { clear_kind(); - if (value) { + if (unknown) { set_has_unknown(); - _impl_.kind_.unknown_ = value; + kind_.unknown_ = unknown; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.ExprValue.unknown) } inline ::google::api::expr::v1alpha1::UnknownSet* ExprValue::_internal_mutable_unknown() { - if (kind_case() != kUnknown) { + if (!_internal_has_unknown()) { clear_kind(); set_has_unknown(); - _impl_.kind_.unknown_ = CreateMaybeMessage<::google::api::expr::v1alpha1::UnknownSet>(GetArena()); + kind_.unknown_ = CreateMaybeMessage< ::google::api::expr::v1alpha1::UnknownSet >(GetArenaForAllocation()); } - return _impl_.kind_.unknown_; + return kind_.unknown_; } -inline ::google::api::expr::v1alpha1::UnknownSet* ExprValue::mutable_unknown() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::UnknownSet* ExprValue::mutable_unknown() { ::google::api::expr::v1alpha1::UnknownSet* _msg = _internal_mutable_unknown(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.ExprValue.unknown) return _msg; @@ -1490,10 +1288,10 @@ inline bool ExprValue::has_kind() const { return kind_case() != KIND_NOT_SET; } inline void ExprValue::clear_has_kind() { - _impl_._oneof_case_[0] = KIND_NOT_SET; + _oneof_case_[0] = KIND_NOT_SET; } inline ExprValue::KindCase ExprValue::kind_case() const { - return ExprValue::KindCase(_impl_._oneof_case_[0]); + return ExprValue::KindCase(_oneof_case_[0]); } // ------------------------------------------------------------------- @@ -1501,47 +1299,39 @@ inline ExprValue::KindCase ExprValue::kind_case() const { // repeated .google.rpc.Status errors = 1 [json_name = "errors"]; inline int ErrorSet::_internal_errors_size() const { - return _internal_errors().size(); + return errors_.size(); } inline int ErrorSet::errors_size() const { return _internal_errors_size(); } -inline ::google::rpc::Status* ErrorSet::mutable_errors(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::rpc::Status* ErrorSet::mutable_errors(int index) { // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.ErrorSet.errors) - return _internal_mutable_errors()->Mutable(index); + return errors_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::google::rpc::Status>* ErrorSet::mutable_errors() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::Status >* +ErrorSet::mutable_errors() { // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1alpha1.ErrorSet.errors) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_errors(); + return &errors_; } -inline const ::google::rpc::Status& ErrorSet::errors(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::rpc::Status& ErrorSet::_internal_errors(int index) const { + return errors_.Get(index); +} +inline const ::google::rpc::Status& ErrorSet::errors(int index) const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.ErrorSet.errors) - return _internal_errors().Get(index); + return _internal_errors(index); +} +inline ::google::rpc::Status* ErrorSet::_internal_add_errors() { + return errors_.Add(); } -inline ::google::rpc::Status* ErrorSet::add_errors() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::google::rpc::Status* _add = _internal_mutable_errors()->Add(); +inline ::google::rpc::Status* ErrorSet::add_errors() { + ::google::rpc::Status* _add = _internal_add_errors(); // @@protoc_insertion_point(field_add:google.api.expr.v1alpha1.ErrorSet.errors) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::google::rpc::Status>& ErrorSet::errors() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::Status >& +ErrorSet::errors() const { // @@protoc_insertion_point(field_list:google.api.expr.v1alpha1.ErrorSet.errors) - return _internal_errors(); -} -inline const ::google::protobuf::RepeatedPtrField<::google::rpc::Status>& -ErrorSet::_internal_errors() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.errors_; -} -inline ::google::protobuf::RepeatedPtrField<::google::rpc::Status>* -ErrorSet::_internal_mutable_errors() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.errors_; + return errors_; } // ------------------------------------------------------------------- @@ -1550,62 +1340,71 @@ ErrorSet::_internal_mutable_errors() { // repeated int64 exprs = 1 [json_name = "exprs"]; inline int UnknownSet::_internal_exprs_size() const { - return _internal_exprs().size(); + return exprs_.size(); } inline int UnknownSet::exprs_size() const { return _internal_exprs_size(); } inline void UnknownSet::clear_exprs() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.exprs_.Clear(); + exprs_.Clear(); } -inline ::int64_t UnknownSet::exprs(int index) const { +inline int64_t UnknownSet::_internal_exprs(int index) const { + return exprs_.Get(index); +} +inline int64_t UnknownSet::exprs(int index) const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.UnknownSet.exprs) - return _internal_exprs().Get(index); + return _internal_exprs(index); } -inline void UnknownSet::set_exprs(int index, ::int64_t value) { - _internal_mutable_exprs()->Set(index, value); +inline void UnknownSet::set_exprs(int index, int64_t value) { + exprs_.Set(index, value); // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.UnknownSet.exprs) } -inline void UnknownSet::add_exprs(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_exprs()->Add(value); +inline void UnknownSet::_internal_add_exprs(int64_t value) { + exprs_.Add(value); +} +inline void UnknownSet::add_exprs(int64_t value) { + _internal_add_exprs(value); // @@protoc_insertion_point(field_add:google.api.expr.v1alpha1.UnknownSet.exprs) } -inline const ::google::protobuf::RepeatedField<::int64_t>& UnknownSet::exprs() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >& +UnknownSet::_internal_exprs() const { + return exprs_; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >& +UnknownSet::exprs() const { // @@protoc_insertion_point(field_list:google.api.expr.v1alpha1.UnknownSet.exprs) return _internal_exprs(); } -inline ::google::protobuf::RepeatedField<::int64_t>* UnknownSet::mutable_exprs() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >* +UnknownSet::_internal_mutable_exprs() { + return &exprs_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >* +UnknownSet::mutable_exprs() { // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1alpha1.UnknownSet.exprs) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _internal_mutable_exprs(); } -inline const ::google::protobuf::RepeatedField<::int64_t>& UnknownSet::_internal_exprs() - const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.exprs_; -} -inline ::google::protobuf::RepeatedField<::int64_t>* UnknownSet::_internal_mutable_exprs() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.exprs_; -} #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) + } // namespace v1alpha1 } // namespace expr } // namespace api } // namespace google - // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1alpha1_2feval_2eproto diff --git a/src/viam/api/google/api/expr/v1alpha1/explain.grpc.pb.cc b/src/viam/api/google/api/expr/v1alpha1/explain.grpc.pb.cc index 1edd84ab7..748984b27 100644 --- a/src/viam/api/google/api/expr/v1alpha1/explain.grpc.pb.cc +++ b/src/viam/api/google/api/expr/v1alpha1/explain.grpc.pb.cc @@ -6,19 +6,19 @@ #include "google/api/expr/v1alpha1/explain.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace google { namespace api { namespace expr { diff --git a/src/viam/api/google/api/expr/v1alpha1/explain.grpc.pb.h b/src/viam/api/google/api/expr/v1alpha1/explain.grpc.pb.h index f6224a47f..eca0fffe7 100644 --- a/src/viam/api/google/api/expr/v1alpha1/explain.grpc.pb.h +++ b/src/viam/api/google/api/expr/v1alpha1/explain.grpc.pb.h @@ -22,23 +22,24 @@ #include "google/api/expr/v1alpha1/explain.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace google { namespace api { diff --git a/src/viam/api/google/api/expr/v1alpha1/explain.pb.cc b/src/viam/api/google/api/expr/v1alpha1/explain.pb.cc index c47d34bb1..e4cefc234 100644 --- a/src/viam/api/google/api/expr/v1alpha1/explain.pb.cc +++ b/src/viam/api/google/api/expr/v1alpha1/explain.pb.cc @@ -4,342 +4,299 @@ #include "google/api/expr/v1alpha1/explain.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace google { namespace api { namespace expr { namespace v1alpha1 { - -inline constexpr Explain_ExprStep::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : id_{::int64_t{0}}, - value_index_{0}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR Explain_ExprStep::Explain_ExprStep(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_CONSTEXPR Explain_ExprStep::Explain_ExprStep( + ::_pbi::ConstantInitialized) + : id_(int64_t{0}) + , value_index_(0){} struct Explain_ExprStepDefaultTypeInternal { - PROTOBUF_CONSTEXPR Explain_ExprStepDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR Explain_ExprStepDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~Explain_ExprStepDefaultTypeInternal() {} union { Explain_ExprStep _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Explain_ExprStepDefaultTypeInternal _Explain_ExprStep_default_instance_; - -inline constexpr Explain::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : values_{}, - expr_steps_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR Explain::Explain(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Explain_ExprStepDefaultTypeInternal _Explain_ExprStep_default_instance_; +PROTOBUF_CONSTEXPR Explain::Explain( + ::_pbi::ConstantInitialized) + : values_() + , expr_steps_(){} struct ExplainDefaultTypeInternal { - PROTOBUF_CONSTEXPR ExplainDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ExplainDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~ExplainDefaultTypeInternal() {} union { Explain _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ExplainDefaultTypeInternal _Explain_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ExplainDefaultTypeInternal _Explain_default_instance_; } // namespace v1alpha1 } // namespace expr } // namespace api } // namespace google static ::_pb::Metadata file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fexplain_2eproto[2]; -static constexpr const ::_pb::EnumDescriptor** - file_level_enum_descriptors_google_2fapi_2fexpr_2fv1alpha1_2fexplain_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_google_2fapi_2fexpr_2fv1alpha1_2fexplain_2eproto = nullptr; -const ::uint32_t TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fexplain_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Explain_ExprStep, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Explain_ExprStep, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Explain_ExprStep, _impl_.value_index_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Explain, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Explain, _impl_.values_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Explain, _impl_.expr_steps_), +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_google_2fapi_2fexpr_2fv1alpha1_2fexplain_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_google_2fapi_2fexpr_2fv1alpha1_2fexplain_2eproto = nullptr; + +const uint32_t TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fexplain_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Explain_ExprStep, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Explain_ExprStep, id_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Explain_ExprStep, value_index_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Explain, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Explain, values_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Explain, expr_steps_), }; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, -1, -1, sizeof(::google::api::expr::v1alpha1::Explain_ExprStep)}, - {10, -1, -1, sizeof(::google::api::expr::v1alpha1::Explain)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::google::api::expr::v1alpha1::Explain_ExprStep)}, + { 8, -1, -1, sizeof(::google::api::expr::v1alpha1::Explain)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::google::api::expr::v1alpha1::_Explain_ExprStep_default_instance_._instance, - &::google::api::expr::v1alpha1::_Explain_default_instance_._instance, -}; -const char descriptor_table_protodef_google_2fapi_2fexpr_2fv1alpha1_2fexplain_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n&google/api/expr/v1alpha1/explain.proto" - "\022\030google.api.expr.v1alpha1\032$google/api/e" - "xpr/v1alpha1/value.proto\"\316\001\n\007Explain\0227\n\006" - "values\030\001 \003(\0132\037.google.api.expr.v1alpha1." - "ValueR\006values\022I\n\nexpr_steps\030\002 \003(\0132*.goog" - "le.api.expr.v1alpha1.Explain.ExprStepR\te" - "xprSteps\032;\n\010ExprStep\022\016\n\002id\030\001 \001(\003R\002id\022\037\n\013" - "value_index\030\002 \001(\005R\nvalueIndex:\002\030\001B\360\001\n\034co" - "m.google.api.expr.v1alpha1B\014ExplainProto" - "P\001Z descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fexplain_2eproto_getter() { return &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fexplain_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fapi_2fexpr_2fv1alpha1_2fexplain_2eproto(&descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fexplain_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fapi_2fexpr_2fv1alpha1_2fexplain_2eproto(&descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fexplain_2eproto); namespace google { namespace api { namespace expr { namespace v1alpha1 { + // =================================================================== class Explain_ExprStep::_Internal { public: }; -Explain_ExprStep::Explain_ExprStep(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Explain_ExprStep::Explain_ExprStep(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.Explain.ExprStep) } -Explain_ExprStep::Explain_ExprStep( - ::google::protobuf::Arena* arena, const Explain_ExprStep& from) - : Explain_ExprStep(arena) { - MergeFrom(from); +Explain_ExprStep::Explain_ExprStep(const Explain_ExprStep& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&id_, &from.id_, + static_cast(reinterpret_cast(&value_index_) - + reinterpret_cast(&id_)) + sizeof(value_index_)); + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.Explain.ExprStep) } -inline PROTOBUF_NDEBUG_INLINE Explain_ExprStep::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void Explain_ExprStep::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, id_), - 0, - offsetof(Impl_, value_index_) - - offsetof(Impl_, id_) + - sizeof(Impl_::value_index_)); +inline void Explain_ExprStep::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&id_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&value_index_) - + reinterpret_cast(&id_)) + sizeof(value_index_)); } + Explain_ExprStep::~Explain_ExprStep() { // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.Explain.ExprStep) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Explain_ExprStep::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void Explain_ExprStep::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void Explain_ExprStep::Clear() { +void Explain_ExprStep::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.Explain.ExprStep) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&_impl_.id_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.value_index_) - - reinterpret_cast(&_impl_.id_)) + sizeof(_impl_.value_index_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Explain_ExprStep::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + ::memset(&id_, 0, static_cast( + reinterpret_cast(&value_index_) - + reinterpret_cast(&id_)) + sizeof(value_index_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Explain_ExprStep::_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) { + // int64 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int32 value_index = 2 [json_name = "valueIndex"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + value_index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> Explain_ExprStep::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_Explain_ExprStep_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // int32 value_index = 2 [json_name = "valueIndex"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Explain_ExprStep, _impl_.value_index_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(Explain_ExprStep, _impl_.value_index_)}}, - // int64 id = 1 [json_name = "id"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(Explain_ExprStep, _impl_.id_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(Explain_ExprStep, _impl_.id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // int64 id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(Explain_ExprStep, _impl_.id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - // int32 value_index = 2 [json_name = "valueIndex"]; - {PROTOBUF_FIELD_OFFSET(Explain_ExprStep, _impl_.value_index_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* Explain_ExprStep::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Explain_ExprStep::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.Explain.ExprStep) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // int64 id = 1 [json_name = "id"]; if (this->_internal_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<1>( - stream, this->_internal_id(), target); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_id(), target); } // int32 value_index = 2 [json_name = "valueIndex"]; if (this->_internal_value_index() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<2>( - stream, this->_internal_value_index(), target); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_value_index(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1alpha1.Explain.ExprStep) return target; } -::size_t Explain_ExprStep::ByteSizeLong() const { +size_t Explain_ExprStep::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.Explain.ExprStep) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // int64 id = 1 [json_name = "id"]; if (this->_internal_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( - this->_internal_id()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_id()); } // int32 value_index = 2 [json_name = "valueIndex"]; if (this->_internal_value_index() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_value_index()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_value_index()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Explain_ExprStep::_class_data_ = { - Explain_ExprStep::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Explain_ExprStep::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Explain_ExprStep::MergeImpl }; -const ::google::protobuf::Message::ClassData* Explain_ExprStep::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Explain_ExprStep::GetClassData() const { return &_class_data_; } + +void Explain_ExprStep::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Explain_ExprStep::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Explain.ExprStep) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Explain_ExprStep::MergeFrom(const Explain_ExprStep& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Explain.ExprStep) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_id() != 0) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } if (from._internal_value_index() != 0) { - _this->_internal_set_value_index(from._internal_value_index()); + _internal_set_value_index(from._internal_value_index()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Explain_ExprStep::CopyFrom(const Explain_ExprStep& from) { @@ -349,29 +306,27 @@ void Explain_ExprStep::CopyFrom(const Explain_ExprStep& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Explain_ExprStep::IsInitialized() const { +bool Explain_ExprStep::IsInitialized() const { return true; } -::_pbi::CachedSize* Explain_ExprStep::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Explain_ExprStep::InternalSwap(Explain_ExprStep* PROTOBUF_RESTRICT other) { +void Explain_ExprStep::InternalSwap(Explain_ExprStep* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(Explain_ExprStep, _impl_.value_index_) - + sizeof(Explain_ExprStep::_impl_.value_index_) - - PROTOBUF_FIELD_OFFSET(Explain_ExprStep, _impl_.id_)>( - reinterpret_cast(&_impl_.id_), - reinterpret_cast(&other->_impl_.id_)); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Explain_ExprStep, value_index_) + + sizeof(Explain_ExprStep::value_index_) + - PROTOBUF_FIELD_OFFSET(Explain_ExprStep, id_)>( + reinterpret_cast(&id_), + reinterpret_cast(&other->id_)); } -::google::protobuf::Metadata Explain_ExprStep::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Explain_ExprStep::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fexplain_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fexplain_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fexplain_2eproto[0]); } + // =================================================================== class Explain::_Internal { @@ -379,185 +334,187 @@ class Explain::_Internal { }; void Explain::clear_values() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.values_.Clear(); -} -Explain::Explain(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); + values_.Clear(); +} +Explain::Explain(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + values_(arena), + expr_steps_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.Explain) } -inline PROTOBUF_NDEBUG_INLINE Explain::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : values_{visibility, arena, from.values_}, - expr_steps_{visibility, arena, from.expr_steps_}, - _cached_size_{0} {} - -Explain::Explain( - ::google::protobuf::Arena* arena, - const Explain& from) - : ::google::protobuf::Message(arena) { - Explain* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +Explain::Explain(const Explain& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + values_(from.values_), + expr_steps_(from.expr_steps_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.Explain) } -inline PROTOBUF_NDEBUG_INLINE Explain::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : values_{visibility, arena}, - expr_steps_{visibility, arena}, - _cached_size_{0} {} -inline void Explain::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void Explain::SharedCtor() { } + Explain::~Explain() { // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.Explain) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Explain::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void Explain::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void Explain::Clear() { +void Explain::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.Explain) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.values_.Clear(); - _impl_.expr_steps_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Explain::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + values_.Clear(); + expr_steps_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Explain::_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) { + // repeated .google.api.expr.v1alpha1.Value values = 1 [json_name = "values"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_values(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + // repeated .google.api.expr.v1alpha1.Explain.ExprStep expr_steps = 2 [json_name = "exprSteps"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_expr_steps(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 2, 0, 2> Explain::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Explain_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .google.api.expr.v1alpha1.Explain.ExprStep expr_steps = 2 [json_name = "exprSteps"]; - {::_pbi::TcParser::FastMtR1, - {18, 63, 1, PROTOBUF_FIELD_OFFSET(Explain, _impl_.expr_steps_)}}, - // repeated .google.api.expr.v1alpha1.Value values = 1 [json_name = "values"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Explain, _impl_.values_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .google.api.expr.v1alpha1.Value values = 1 [json_name = "values"]; - {PROTOBUF_FIELD_OFFSET(Explain, _impl_.values_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated .google.api.expr.v1alpha1.Explain.ExprStep expr_steps = 2 [json_name = "exprSteps"]; - {PROTOBUF_FIELD_OFFSET(Explain, _impl_.expr_steps_), 0, 1, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::Value>()}, - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::Explain_ExprStep>()}, - }}, {{ - }}, -}; - -::uint8_t* Explain::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Explain::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.Explain) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .google.api.expr.v1alpha1.Value values = 1 [json_name = "values"]; for (unsigned i = 0, n = static_cast(this->_internal_values_size()); i < n; i++) { - const auto& repfield = this->_internal_values().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_values(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } // repeated .google.api.expr.v1alpha1.Explain.ExprStep expr_steps = 2 [json_name = "exprSteps"]; for (unsigned i = 0, n = static_cast(this->_internal_expr_steps_size()); i < n; i++) { - const auto& repfield = this->_internal_expr_steps().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_expr_steps(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1alpha1.Explain) return target; } -::size_t Explain::ByteSizeLong() const { +size_t Explain::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.Explain) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .google.api.expr.v1alpha1.Value values = 1 [json_name = "values"]; total_size += 1UL * this->_internal_values_size(); - for (const auto& msg : this->_internal_values()) { + for (const auto& msg : this->values_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // repeated .google.api.expr.v1alpha1.Explain.ExprStep expr_steps = 2 [json_name = "exprSteps"]; total_size += 1UL * this->_internal_expr_steps_size(); - for (const auto& msg : this->_internal_expr_steps()) { + for (const auto& msg : this->expr_steps_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Explain::_class_data_ = { - Explain::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Explain::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Explain::MergeImpl }; -const ::google::protobuf::Message::ClassData* Explain::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Explain::GetClassData() const { return &_class_data_; } + +void Explain::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Explain::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Explain) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Explain::MergeFrom(const Explain& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Explain) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_values()->MergeFrom( - from._internal_values()); - _this->_internal_mutable_expr_steps()->MergeFrom( - from._internal_expr_steps()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + values_.MergeFrom(from.values_); + expr_steps_.MergeFrom(from.expr_steps_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Explain::CopyFrom(const Explain& from) { @@ -567,33 +524,38 @@ void Explain::CopyFrom(const Explain& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Explain::IsInitialized() const { +bool Explain::IsInitialized() const { return true; } -::_pbi::CachedSize* Explain::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Explain::InternalSwap(Explain* PROTOBUF_RESTRICT other) { +void Explain::InternalSwap(Explain* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.values_.InternalSwap(&other->_impl_.values_); - _impl_.expr_steps_.InternalSwap(&other->_impl_.expr_steps_); + values_.InternalSwap(&other->values_); + expr_steps_.InternalSwap(&other->expr_steps_); } -::google::protobuf::Metadata Explain::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Explain::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fexplain_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fexplain_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fexplain_2eproto[1]); } + // @@protoc_insertion_point(namespace_scope) } // namespace v1alpha1 } // namespace expr } // namespace api } // namespace google -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::Explain_ExprStep* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::Explain_ExprStep >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::Explain_ExprStep >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::Explain* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::Explain >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::Explain >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/google/api/expr/v1alpha1/explain.pb.h b/src/viam/api/google/api/expr/v1alpha1/explain.pb.h index 9a52eff2c..dd2e594c0 100644 --- a/src/viam/api/google/api/expr/v1alpha1/explain.pb.h +++ b/src/viam/api/google/api/expr/v1alpha1/explain.pb.h @@ -1,61 +1,50 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/expr/v1alpha1/explain.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1alpha1_2fexplain_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1alpha1_2fexplain_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1alpha1_2fexplain_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1alpha1_2fexplain_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/unknown_field_set.h" + +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include #include "google/api/expr/v1alpha1/value.pb.h" // @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - +#include #define PROTOBUF_INTERNAL_EXPORT_google_2fapi_2fexpr_2fv1alpha1_2fexplain_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fexplain_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fexplain_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fexplain_2eproto; namespace google { namespace api { namespace expr { @@ -69,10 +58,11 @@ extern Explain_ExprStepDefaultTypeInternal _Explain_ExprStep_default_instance_; } // namespace v1alpha1 } // namespace expr } // namespace api -namespace protobuf { -} // namespace protobuf } // namespace google - +PROTOBUF_NAMESPACE_OPEN +template<> ::google::api::expr::v1alpha1::Explain* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::Explain>(Arena*); +template<> ::google::api::expr::v1alpha1::Explain_ExprStep* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::Explain_ExprStep>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace google { namespace api { namespace expr { @@ -80,19 +70,14 @@ namespace v1alpha1 { // =================================================================== - -// ------------------------------------------------------------------- - class Explain_ExprStep final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Explain.ExprStep) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Explain.ExprStep) */ { public: inline Explain_ExprStep() : Explain_ExprStep(nullptr) {} ~Explain_ExprStep() override; - template - explicit PROTOBUF_CONSTEXPR Explain_ExprStep(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR Explain_ExprStep(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Explain_ExprStep(const Explain_ExprStep& from) - : Explain_ExprStep(nullptr, from) {} + Explain_ExprStep(const Explain_ExprStep& from); Explain_ExprStep(Explain_ExprStep&& from) noexcept : Explain_ExprStep() { *this = ::std::move(from); @@ -104,9 +89,9 @@ class Explain_ExprStep final : } inline Explain_ExprStep& operator=(Explain_ExprStep&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -116,22 +101,13 @@ class Explain_ExprStep final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const Explain_ExprStep& default_instance() { @@ -150,65 +126,63 @@ class Explain_ExprStep final : inline void Swap(Explain_ExprStep* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(Explain_ExprStep* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Explain_ExprStep* New(::google::protobuf::Arena* arena = nullptr) const final { + Explain_ExprStep* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const Explain_ExprStep& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Explain_ExprStep& from) { - Explain_ExprStep::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Explain_ExprStep& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(Explain_ExprStep* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "google.api.expr.v1alpha1.Explain.ExprStep"; } protected: - explicit Explain_ExprStep(::google::protobuf::Arena* arena); - Explain_ExprStep(::google::protobuf::Arena* arena, const Explain_ExprStep& from); + explicit Explain_ExprStep(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -219,67 +193,45 @@ class Explain_ExprStep final : kValueIndexFieldNumber = 2, }; // int64 id = 1 [json_name = "id"]; - void clear_id() ; - ::int64_t id() const; - void set_id(::int64_t value); - + void clear_id(); + int64_t id() const; + void set_id(int64_t value); private: - ::int64_t _internal_id() const; - void _internal_set_id(::int64_t value); - + int64_t _internal_id() const; + void _internal_set_id(int64_t value); public: - // int32 value_index = 2 [json_name = "valueIndex"]; - void clear_value_index() ; - ::int32_t value_index() const; - void set_value_index(::int32_t value); + // int32 value_index = 2 [json_name = "valueIndex"]; + void clear_value_index(); + int32_t value_index() const; + void set_value_index(int32_t value); private: - ::int32_t _internal_value_index() const; - void _internal_set_value_index(::int32_t value); - + int32_t _internal_value_index() const; + void _internal_set_value_index(int32_t value); public: + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Explain.ExprStep) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::int64_t id_; - ::int32_t value_index_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + int64_t id_; + int32_t value_index_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fexplain_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class Explain final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Explain) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Explain) */ { public: inline Explain() : Explain(nullptr) {} ~Explain() override; - template - explicit PROTOBUF_CONSTEXPR Explain(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR Explain(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Explain(const Explain& from) - : Explain(nullptr, from) {} + Explain(const Explain& from); Explain(Explain&& from) noexcept : Explain() { *this = ::std::move(from); @@ -291,9 +243,9 @@ class Explain final : } inline Explain& operator=(Explain&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -303,22 +255,13 @@ class Explain final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const Explain& default_instance() { @@ -337,69 +280,67 @@ class Explain final : inline void Swap(Explain* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(Explain* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Explain* New(::google::protobuf::Arena* arena = nullptr) const final { + Explain* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const Explain& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Explain& from) { - Explain::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Explain& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(Explain* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "google.api.expr.v1alpha1.Explain"; } protected: - explicit Explain(::google::protobuf::Arena* arena); - Explain(::google::protobuf::Arena* arena, const Explain& from); + explicit Explain(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- - using ExprStep = Explain_ExprStep; + typedef Explain_ExprStep ExprStep; // accessors ------------------------------------------------------- @@ -411,131 +352,100 @@ class Explain final : int values_size() const; private: int _internal_values_size() const; - public: - void clear_values() ; + void clear_values(); ::google::api::expr::v1alpha1::Value* mutable_values(int index); - ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1alpha1::Value >* + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Value >* mutable_values(); private: - const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Value>& _internal_values() const; - ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Value>* _internal_mutable_values(); + const ::google::api::expr::v1alpha1::Value& _internal_values(int index) const; + ::google::api::expr::v1alpha1::Value* _internal_add_values(); public: const ::google::api::expr::v1alpha1::Value& values(int index) const; ::google::api::expr::v1alpha1::Value* add_values(); - const ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1alpha1::Value >& + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Value >& values() const; + // repeated .google.api.expr.v1alpha1.Explain.ExprStep expr_steps = 2 [json_name = "exprSteps"]; int expr_steps_size() const; private: int _internal_expr_steps_size() const; - public: - void clear_expr_steps() ; + void clear_expr_steps(); ::google::api::expr::v1alpha1::Explain_ExprStep* mutable_expr_steps(int index); - ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1alpha1::Explain_ExprStep >* + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Explain_ExprStep >* mutable_expr_steps(); private: - const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Explain_ExprStep>& _internal_expr_steps() const; - ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Explain_ExprStep>* _internal_mutable_expr_steps(); + const ::google::api::expr::v1alpha1::Explain_ExprStep& _internal_expr_steps(int index) const; + ::google::api::expr::v1alpha1::Explain_ExprStep* _internal_add_expr_steps(); public: const ::google::api::expr::v1alpha1::Explain_ExprStep& expr_steps(int index) const; ::google::api::expr::v1alpha1::Explain_ExprStep* add_expr_steps(); - const ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1alpha1::Explain_ExprStep >& + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Explain_ExprStep >& expr_steps() const; + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Explain) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 2, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1alpha1::Value > values_; - ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1alpha1::Explain_ExprStep > expr_steps_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Value > values_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Explain_ExprStep > expr_steps_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fexplain_2eproto; }; - // =================================================================== - - // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ -// ------------------------------------------------------------------- - // Explain_ExprStep // int64 id = 1 [json_name = "id"]; inline void Explain_ExprStep::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_ = ::int64_t{0}; + id_ = int64_t{0}; } -inline ::int64_t Explain_ExprStep::id() const { +inline int64_t Explain_ExprStep::_internal_id() const { + return id_; +} +inline int64_t Explain_ExprStep::id() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Explain.ExprStep.id) return _internal_id(); } -inline void Explain_ExprStep::set_id(::int64_t value) { +inline void Explain_ExprStep::_internal_set_id(int64_t value) { + + id_ = value; +} +inline void Explain_ExprStep::set_id(int64_t value) { _internal_set_id(value); // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Explain.ExprStep.id) } -inline ::int64_t Explain_ExprStep::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_; -} -inline void Explain_ExprStep::_internal_set_id(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_ = value; -} // int32 value_index = 2 [json_name = "valueIndex"]; inline void Explain_ExprStep::clear_value_index() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.value_index_ = 0; + value_index_ = 0; } -inline ::int32_t Explain_ExprStep::value_index() const { +inline int32_t Explain_ExprStep::_internal_value_index() const { + return value_index_; +} +inline int32_t Explain_ExprStep::value_index() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Explain.ExprStep.value_index) return _internal_value_index(); } -inline void Explain_ExprStep::set_value_index(::int32_t value) { +inline void Explain_ExprStep::_internal_set_value_index(int32_t value) { + + value_index_ = value; +} +inline void Explain_ExprStep::set_value_index(int32_t value) { _internal_set_value_index(value); // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Explain.ExprStep.value_index) } -inline ::int32_t Explain_ExprStep::_internal_value_index() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.value_index_; -} -inline void Explain_ExprStep::_internal_set_value_index(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.value_index_ = value; -} // ------------------------------------------------------------------- @@ -543,111 +453,95 @@ inline void Explain_ExprStep::_internal_set_value_index(::int32_t value) { // repeated .google.api.expr.v1alpha1.Value values = 1 [json_name = "values"]; inline int Explain::_internal_values_size() const { - return _internal_values().size(); + return values_.size(); } inline int Explain::values_size() const { return _internal_values_size(); } -inline ::google::api::expr::v1alpha1::Value* Explain::mutable_values(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::Value* Explain::mutable_values(int index) { // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Explain.values) - return _internal_mutable_values()->Mutable(index); + return values_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Value>* Explain::mutable_values() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Value >* +Explain::mutable_values() { // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1alpha1.Explain.values) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_values(); + return &values_; +} +inline const ::google::api::expr::v1alpha1::Value& Explain::_internal_values(int index) const { + return values_.Get(index); } -inline const ::google::api::expr::v1alpha1::Value& Explain::values(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::Value& Explain::values(int index) const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Explain.values) - return _internal_values().Get(index); + return _internal_values(index); } -inline ::google::api::expr::v1alpha1::Value* Explain::add_values() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::google::api::expr::v1alpha1::Value* _add = _internal_mutable_values()->Add(); +inline ::google::api::expr::v1alpha1::Value* Explain::_internal_add_values() { + return values_.Add(); +} +inline ::google::api::expr::v1alpha1::Value* Explain::add_values() { + ::google::api::expr::v1alpha1::Value* _add = _internal_add_values(); // @@protoc_insertion_point(field_add:google.api.expr.v1alpha1.Explain.values) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Value>& Explain::values() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Value >& +Explain::values() const { // @@protoc_insertion_point(field_list:google.api.expr.v1alpha1.Explain.values) - return _internal_values(); -} -inline const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Value>& -Explain::_internal_values() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.values_; -} -inline ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Value>* -Explain::_internal_mutable_values() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.values_; + return values_; } // repeated .google.api.expr.v1alpha1.Explain.ExprStep expr_steps = 2 [json_name = "exprSteps"]; inline int Explain::_internal_expr_steps_size() const { - return _internal_expr_steps().size(); + return expr_steps_.size(); } inline int Explain::expr_steps_size() const { return _internal_expr_steps_size(); } inline void Explain::clear_expr_steps() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.expr_steps_.Clear(); + expr_steps_.Clear(); } -inline ::google::api::expr::v1alpha1::Explain_ExprStep* Explain::mutable_expr_steps(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::Explain_ExprStep* Explain::mutable_expr_steps(int index) { // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Explain.expr_steps) - return _internal_mutable_expr_steps()->Mutable(index); + return expr_steps_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Explain_ExprStep>* Explain::mutable_expr_steps() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Explain_ExprStep >* +Explain::mutable_expr_steps() { // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1alpha1.Explain.expr_steps) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_expr_steps(); + return &expr_steps_; +} +inline const ::google::api::expr::v1alpha1::Explain_ExprStep& Explain::_internal_expr_steps(int index) const { + return expr_steps_.Get(index); } -inline const ::google::api::expr::v1alpha1::Explain_ExprStep& Explain::expr_steps(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::Explain_ExprStep& Explain::expr_steps(int index) const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Explain.expr_steps) - return _internal_expr_steps().Get(index); + return _internal_expr_steps(index); +} +inline ::google::api::expr::v1alpha1::Explain_ExprStep* Explain::_internal_add_expr_steps() { + return expr_steps_.Add(); } -inline ::google::api::expr::v1alpha1::Explain_ExprStep* Explain::add_expr_steps() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::google::api::expr::v1alpha1::Explain_ExprStep* _add = _internal_mutable_expr_steps()->Add(); +inline ::google::api::expr::v1alpha1::Explain_ExprStep* Explain::add_expr_steps() { + ::google::api::expr::v1alpha1::Explain_ExprStep* _add = _internal_add_expr_steps(); // @@protoc_insertion_point(field_add:google.api.expr.v1alpha1.Explain.expr_steps) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Explain_ExprStep>& Explain::expr_steps() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Explain_ExprStep >& +Explain::expr_steps() const { // @@protoc_insertion_point(field_list:google.api.expr.v1alpha1.Explain.expr_steps) - return _internal_expr_steps(); -} -inline const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Explain_ExprStep>& -Explain::_internal_expr_steps() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.expr_steps_; -} -inline ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Explain_ExprStep>* -Explain::_internal_mutable_expr_steps() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.expr_steps_; + return expr_steps_; } #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) + } // namespace v1alpha1 } // namespace expr } // namespace api } // namespace google - // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1alpha1_2fexplain_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1alpha1_2fexplain_2eproto diff --git a/src/viam/api/google/api/expr/v1alpha1/syntax.grpc.pb.cc b/src/viam/api/google/api/expr/v1alpha1/syntax.grpc.pb.cc index 698c3b9e3..d0ef274bc 100644 --- a/src/viam/api/google/api/expr/v1alpha1/syntax.grpc.pb.cc +++ b/src/viam/api/google/api/expr/v1alpha1/syntax.grpc.pb.cc @@ -6,19 +6,19 @@ #include "google/api/expr/v1alpha1/syntax.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace google { namespace api { namespace expr { diff --git a/src/viam/api/google/api/expr/v1alpha1/syntax.grpc.pb.h b/src/viam/api/google/api/expr/v1alpha1/syntax.grpc.pb.h index db3432ff2..20ec21fee 100644 --- a/src/viam/api/google/api/expr/v1alpha1/syntax.grpc.pb.h +++ b/src/viam/api/google/api/expr/v1alpha1/syntax.grpc.pb.h @@ -22,23 +22,24 @@ #include "google/api/expr/v1alpha1/syntax.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace google { namespace api { diff --git a/src/viam/api/google/api/expr/v1alpha1/syntax.pb.cc b/src/viam/api/google/api/expr/v1alpha1/syntax.pb.cc index 90eb4f16e..68f6c735e 100644 --- a/src/viam/api/google/api/expr/v1alpha1/syntax.pb.cc +++ b/src/viam/api/google/api/expr/v1alpha1/syntax.pb.cc @@ -4,799 +4,595 @@ #include "google/api/expr/v1alpha1/syntax.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace google { namespace api { namespace expr { namespace v1alpha1 { - -inline constexpr SourcePosition::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : location_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - offset_{0}, - line_{0}, - column_{0}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR SourcePosition::SourcePosition(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct SourcePositionDefaultTypeInternal { - PROTOBUF_CONSTEXPR SourcePositionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SourcePositionDefaultTypeInternal() {} - union { - SourcePosition _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SourcePositionDefaultTypeInternal _SourcePosition_default_instance_; - template -PROTOBUF_CONSTEXPR SourceInfo_PositionsEntry_DoNotUse::SourceInfo_PositionsEntry_DoNotUse(::_pbi::ConstantInitialized) {} -struct SourceInfo_PositionsEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SourceInfo_PositionsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SourceInfo_PositionsEntry_DoNotUseDefaultTypeInternal() {} - union { - SourceInfo_PositionsEntry_DoNotUse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SourceInfo_PositionsEntry_DoNotUseDefaultTypeInternal _SourceInfo_PositionsEntry_DoNotUse_default_instance_; - -inline constexpr SourceInfo_Extension_Version::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : major_{::int64_t{0}}, - minor_{::int64_t{0}}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR SourceInfo_Extension_Version::SourceInfo_Extension_Version(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct SourceInfo_Extension_VersionDefaultTypeInternal { - PROTOBUF_CONSTEXPR SourceInfo_Extension_VersionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SourceInfo_Extension_VersionDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR ParsedExpr::ParsedExpr( + ::_pbi::ConstantInitialized) + : expr_(nullptr) + , source_info_(nullptr){} +struct ParsedExprDefaultTypeInternal { + PROTOBUF_CONSTEXPR ParsedExprDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ParsedExprDefaultTypeInternal() {} union { - SourceInfo_Extension_Version _instance; + ParsedExpr _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SourceInfo_Extension_VersionDefaultTypeInternal _SourceInfo_Extension_Version_default_instance_; - -inline constexpr Expr_Ident::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR Expr_Ident::Expr_Ident(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ParsedExprDefaultTypeInternal _ParsedExpr_default_instance_; +PROTOBUF_CONSTEXPR Expr_Ident::Expr_Ident( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} struct Expr_IdentDefaultTypeInternal { - PROTOBUF_CONSTEXPR Expr_IdentDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR Expr_IdentDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~Expr_IdentDefaultTypeInternal() {} union { Expr_Ident _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Expr_IdentDefaultTypeInternal _Expr_Ident_default_instance_; - -inline constexpr SourceInfo_Extension::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - affected_components_{}, - _affected_components_cached_byte_size_{0}, - id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - version_{nullptr} {} - -template -PROTOBUF_CONSTEXPR SourceInfo_Extension::SourceInfo_Extension(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct SourceInfo_ExtensionDefaultTypeInternal { - PROTOBUF_CONSTEXPR SourceInfo_ExtensionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SourceInfo_ExtensionDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Expr_IdentDefaultTypeInternal _Expr_Ident_default_instance_; +PROTOBUF_CONSTEXPR Expr_Select::Expr_Select( + ::_pbi::ConstantInitialized) + : field_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , operand_(nullptr) + , test_only_(false){} +struct Expr_SelectDefaultTypeInternal { + PROTOBUF_CONSTEXPR Expr_SelectDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Expr_SelectDefaultTypeInternal() {} union { - SourceInfo_Extension _instance; + Expr_Select _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SourceInfo_ExtensionDefaultTypeInternal _SourceInfo_Extension_default_instance_; - -inline constexpr Constant::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : constant_kind_{}, - _cached_size_{0}, - _oneof_case_{} {} - -template -PROTOBUF_CONSTEXPR Constant::Constant(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ConstantDefaultTypeInternal { - PROTOBUF_CONSTEXPR ConstantDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ConstantDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Expr_SelectDefaultTypeInternal _Expr_Select_default_instance_; +PROTOBUF_CONSTEXPR Expr_Call::Expr_Call( + ::_pbi::ConstantInitialized) + : args_() + , function_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , target_(nullptr){} +struct Expr_CallDefaultTypeInternal { + PROTOBUF_CONSTEXPR Expr_CallDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Expr_CallDefaultTypeInternal() {} union { - Constant _instance; + Expr_Call _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConstantDefaultTypeInternal _Constant_default_instance_; - -inline constexpr Expr::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : id_{::int64_t{0}}, - expr_kind_{}, - _cached_size_{0}, - _oneof_case_{} {} - -template -PROTOBUF_CONSTEXPR Expr::Expr(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ExprDefaultTypeInternal { - PROTOBUF_CONSTEXPR ExprDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ExprDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Expr_CallDefaultTypeInternal _Expr_Call_default_instance_; +PROTOBUF_CONSTEXPR Expr_CreateList::Expr_CreateList( + ::_pbi::ConstantInitialized) + : elements_() + , optional_indices_() + , _optional_indices_cached_byte_size_(0){} +struct Expr_CreateListDefaultTypeInternal { + PROTOBUF_CONSTEXPR Expr_CreateListDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Expr_CreateListDefaultTypeInternal() {} union { - Expr _instance; + Expr_CreateList _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ExprDefaultTypeInternal _Expr_default_instance_; - -inline constexpr Expr_Call::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - args_{}, - function_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - target_{nullptr} {} - -template -PROTOBUF_CONSTEXPR Expr_Call::Expr_Call(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct Expr_CallDefaultTypeInternal { - PROTOBUF_CONSTEXPR Expr_CallDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~Expr_CallDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Expr_CreateListDefaultTypeInternal _Expr_CreateList_default_instance_; +PROTOBUF_CONSTEXPR Expr_CreateStruct_Entry::Expr_CreateStruct_Entry( + ::_pbi::ConstantInitialized) + : value_(nullptr) + , id_(int64_t{0}) + , optional_entry_(false) + , _oneof_case_{}{} +struct Expr_CreateStruct_EntryDefaultTypeInternal { + PROTOBUF_CONSTEXPR Expr_CreateStruct_EntryDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Expr_CreateStruct_EntryDefaultTypeInternal() {} union { - Expr_Call _instance; + Expr_CreateStruct_Entry _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Expr_CallDefaultTypeInternal _Expr_Call_default_instance_; - -inline constexpr Expr_Comprehension::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - iter_var_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - accu_var_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - iter_var2_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - iter_range_{nullptr}, - accu_init_{nullptr}, - loop_condition_{nullptr}, - loop_step_{nullptr}, - result_{nullptr} {} - -template -PROTOBUF_CONSTEXPR Expr_Comprehension::Expr_Comprehension(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Expr_CreateStruct_EntryDefaultTypeInternal _Expr_CreateStruct_Entry_default_instance_; +PROTOBUF_CONSTEXPR Expr_CreateStruct::Expr_CreateStruct( + ::_pbi::ConstantInitialized) + : entries_() + , message_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct Expr_CreateStructDefaultTypeInternal { + PROTOBUF_CONSTEXPR Expr_CreateStructDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Expr_CreateStructDefaultTypeInternal() {} + union { + Expr_CreateStruct _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Expr_CreateStructDefaultTypeInternal _Expr_CreateStruct_default_instance_; +PROTOBUF_CONSTEXPR Expr_Comprehension::Expr_Comprehension( + ::_pbi::ConstantInitialized) + : iter_var_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , accu_var_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , iter_var2_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , iter_range_(nullptr) + , accu_init_(nullptr) + , loop_condition_(nullptr) + , loop_step_(nullptr) + , result_(nullptr){} struct Expr_ComprehensionDefaultTypeInternal { - PROTOBUF_CONSTEXPR Expr_ComprehensionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR Expr_ComprehensionDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~Expr_ComprehensionDefaultTypeInternal() {} union { Expr_Comprehension _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Expr_ComprehensionDefaultTypeInternal _Expr_Comprehension_default_instance_; - -inline constexpr Expr_CreateList::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : elements_{}, - optional_indices_{}, - _optional_indices_cached_byte_size_{0}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR Expr_CreateList::Expr_CreateList(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct Expr_CreateListDefaultTypeInternal { - PROTOBUF_CONSTEXPR Expr_CreateListDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~Expr_CreateListDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Expr_ComprehensionDefaultTypeInternal _Expr_Comprehension_default_instance_; +PROTOBUF_CONSTEXPR Expr::Expr( + ::_pbi::ConstantInitialized) + : id_(int64_t{0}) + , _oneof_case_{}{} +struct ExprDefaultTypeInternal { + PROTOBUF_CONSTEXPR ExprDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ExprDefaultTypeInternal() {} union { - Expr_CreateList _instance; + Expr _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Expr_CreateListDefaultTypeInternal _Expr_CreateList_default_instance_; - -inline constexpr Expr_CreateStruct::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : entries_{}, - message_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR Expr_CreateStruct::Expr_CreateStruct(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct Expr_CreateStructDefaultTypeInternal { - PROTOBUF_CONSTEXPR Expr_CreateStructDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~Expr_CreateStructDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ExprDefaultTypeInternal _Expr_default_instance_; +PROTOBUF_CONSTEXPR Constant::Constant( + ::_pbi::ConstantInitialized) + : _oneof_case_{}{} +struct ConstantDefaultTypeInternal { + PROTOBUF_CONSTEXPR ConstantDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ConstantDefaultTypeInternal() {} union { - Expr_CreateStruct _instance; + Constant _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Expr_CreateStructDefaultTypeInternal _Expr_CreateStruct_default_instance_; - -inline constexpr Expr_CreateStruct_Entry::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - value_{nullptr}, - id_{::int64_t{0}}, - optional_entry_{false}, - key_kind_{}, - _oneof_case_{} {} - -template -PROTOBUF_CONSTEXPR Expr_CreateStruct_Entry::Expr_CreateStruct_Entry(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct Expr_CreateStruct_EntryDefaultTypeInternal { - PROTOBUF_CONSTEXPR Expr_CreateStruct_EntryDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~Expr_CreateStruct_EntryDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConstantDefaultTypeInternal _Constant_default_instance_; +PROTOBUF_CONSTEXPR SourceInfo_Extension_Version::SourceInfo_Extension_Version( + ::_pbi::ConstantInitialized) + : major_(int64_t{0}) + , minor_(int64_t{0}){} +struct SourceInfo_Extension_VersionDefaultTypeInternal { + PROTOBUF_CONSTEXPR SourceInfo_Extension_VersionDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SourceInfo_Extension_VersionDefaultTypeInternal() {} union { - Expr_CreateStruct_Entry _instance; + SourceInfo_Extension_Version _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Expr_CreateStruct_EntryDefaultTypeInternal _Expr_CreateStruct_Entry_default_instance_; - -inline constexpr Expr_Select::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - field_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - operand_{nullptr}, - test_only_{false} {} - -template -PROTOBUF_CONSTEXPR Expr_Select::Expr_Select(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct Expr_SelectDefaultTypeInternal { - PROTOBUF_CONSTEXPR Expr_SelectDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~Expr_SelectDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SourceInfo_Extension_VersionDefaultTypeInternal _SourceInfo_Extension_Version_default_instance_; +PROTOBUF_CONSTEXPR SourceInfo_Extension::SourceInfo_Extension( + ::_pbi::ConstantInitialized) + : affected_components_() + , _affected_components_cached_byte_size_(0) + , id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , version_(nullptr){} +struct SourceInfo_ExtensionDefaultTypeInternal { + PROTOBUF_CONSTEXPR SourceInfo_ExtensionDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SourceInfo_ExtensionDefaultTypeInternal() {} union { - Expr_Select _instance; + SourceInfo_Extension _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Expr_SelectDefaultTypeInternal _Expr_Select_default_instance_; - template -PROTOBUF_CONSTEXPR SourceInfo_MacroCallsEntry_DoNotUse::SourceInfo_MacroCallsEntry_DoNotUse(::_pbi::ConstantInitialized) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SourceInfo_ExtensionDefaultTypeInternal _SourceInfo_Extension_default_instance_; +PROTOBUF_CONSTEXPR SourceInfo_PositionsEntry_DoNotUse::SourceInfo_PositionsEntry_DoNotUse( + ::_pbi::ConstantInitialized){} +struct SourceInfo_PositionsEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR SourceInfo_PositionsEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SourceInfo_PositionsEntry_DoNotUseDefaultTypeInternal() {} + union { + SourceInfo_PositionsEntry_DoNotUse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SourceInfo_PositionsEntry_DoNotUseDefaultTypeInternal _SourceInfo_PositionsEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR SourceInfo_MacroCallsEntry_DoNotUse::SourceInfo_MacroCallsEntry_DoNotUse( + ::_pbi::ConstantInitialized){} struct SourceInfo_MacroCallsEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SourceInfo_MacroCallsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SourceInfo_MacroCallsEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~SourceInfo_MacroCallsEntry_DoNotUseDefaultTypeInternal() {} union { SourceInfo_MacroCallsEntry_DoNotUse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SourceInfo_MacroCallsEntry_DoNotUseDefaultTypeInternal _SourceInfo_MacroCallsEntry_DoNotUse_default_instance_; - -inline constexpr SourceInfo::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : line_offsets_{}, - _line_offsets_cached_byte_size_{0}, - positions_{}, - macro_calls_{}, - extensions_{}, - syntax_version_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - location_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR SourceInfo::SourceInfo(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SourceInfo_MacroCallsEntry_DoNotUseDefaultTypeInternal _SourceInfo_MacroCallsEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR SourceInfo::SourceInfo( + ::_pbi::ConstantInitialized) + : line_offsets_() + , _line_offsets_cached_byte_size_(0) + , positions_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + , macro_calls_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + , extensions_() + , syntax_version_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , location_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} struct SourceInfoDefaultTypeInternal { - PROTOBUF_CONSTEXPR SourceInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SourceInfoDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~SourceInfoDefaultTypeInternal() {} union { SourceInfo _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SourceInfoDefaultTypeInternal _SourceInfo_default_instance_; - -inline constexpr ParsedExpr::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - expr_{nullptr}, - source_info_{nullptr} {} - -template -PROTOBUF_CONSTEXPR ParsedExpr::ParsedExpr(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ParsedExprDefaultTypeInternal { - PROTOBUF_CONSTEXPR ParsedExprDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ParsedExprDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SourceInfoDefaultTypeInternal _SourceInfo_default_instance_; +PROTOBUF_CONSTEXPR SourcePosition::SourcePosition( + ::_pbi::ConstantInitialized) + : location_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , offset_(0) + , line_(0) + , column_(0){} +struct SourcePositionDefaultTypeInternal { + PROTOBUF_CONSTEXPR SourcePositionDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SourcePositionDefaultTypeInternal() {} union { - ParsedExpr _instance; + SourcePosition _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ParsedExprDefaultTypeInternal _ParsedExpr_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SourcePositionDefaultTypeInternal _SourcePosition_default_instance_; } // namespace v1alpha1 } // namespace expr } // namespace api } // namespace google static ::_pb::Metadata file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto[16]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto[1]; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto = nullptr; -const ::uint32_t TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::ParsedExpr, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::ParsedExpr, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::ParsedExpr, _impl_.expr_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::ParsedExpr, _impl_.source_info_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Ident, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Ident, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Select, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Select, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Select, _impl_.operand_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Select, _impl_.field_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Select, _impl_.test_only_), - 0, - ~0u, - ~0u, - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Call, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Call, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Call, _impl_.target_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Call, _impl_.function_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Call, _impl_.args_), - 0, - ~0u, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_CreateList, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_CreateList, _impl_.elements_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_CreateList, _impl_.optional_indices_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_CreateStruct_Entry, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_CreateStruct_Entry, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_CreateStruct_Entry, _impl_._oneof_case_[0]), - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_CreateStruct_Entry, _impl_.id_), - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_CreateStruct_Entry, _impl_.value_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_CreateStruct_Entry, _impl_.optional_entry_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_CreateStruct_Entry, _impl_.key_kind_), - ~0u, - ~0u, - ~0u, - 0, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_CreateStruct, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_CreateStruct, _impl_.message_name_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_CreateStruct, _impl_.entries_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Comprehension, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Comprehension, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Comprehension, _impl_.iter_var_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Comprehension, _impl_.iter_var2_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Comprehension, _impl_.iter_range_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Comprehension, _impl_.accu_var_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Comprehension, _impl_.accu_init_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Comprehension, _impl_.loop_condition_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Comprehension, _impl_.loop_step_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Comprehension, _impl_.result_), - ~0u, - ~0u, - 0, - ~0u, - 1, - 2, - 3, - 4, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr, _impl_._oneof_case_[0]), - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr, _impl_.id_), - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr, _impl_.expr_kind_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Constant, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Constant, _impl_._oneof_case_[0]), - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Constant, _impl_.constant_kind_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo_Extension_Version, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo_Extension_Version, _impl_.major_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo_Extension_Version, _impl_.minor_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo_Extension, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo_Extension, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo_Extension, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo_Extension, _impl_.affected_components_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo_Extension, _impl_.version_), - ~0u, - ~0u, - 0, - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo_PositionsEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo_PositionsEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo_PositionsEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo_PositionsEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo_MacroCallsEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo_MacroCallsEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo_MacroCallsEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo_MacroCallsEntry_DoNotUse, value_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo, _impl_.syntax_version_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo, _impl_.location_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo, _impl_.line_offsets_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo, _impl_.positions_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo, _impl_.macro_calls_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo, _impl_.extensions_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourcePosition, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourcePosition, _impl_.location_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourcePosition, _impl_.offset_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourcePosition, _impl_.line_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourcePosition, _impl_.column_), +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto = nullptr; + +const uint32_t TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::ParsedExpr, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::ParsedExpr, expr_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::ParsedExpr, source_info_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Ident, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Ident, name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Select, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Select, operand_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Select, field_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Select, test_only_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Call, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Call, target_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Call, function_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Call, args_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_CreateList, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_CreateList, elements_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_CreateList, optional_indices_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_CreateStruct_Entry, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_CreateStruct_Entry, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_CreateStruct_Entry, id_), + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_CreateStruct_Entry, value_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_CreateStruct_Entry, optional_entry_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_CreateStruct_Entry, key_kind_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_CreateStruct, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_CreateStruct, message_name_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_CreateStruct, entries_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Comprehension, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Comprehension, iter_var_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Comprehension, iter_var2_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Comprehension, iter_range_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Comprehension, accu_var_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Comprehension, accu_init_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Comprehension, loop_condition_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Comprehension, loop_step_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_Comprehension, result_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr, id_), + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr, expr_kind_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Constant, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Constant, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Constant, constant_kind_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo_Extension_Version, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo_Extension_Version, major_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo_Extension_Version, minor_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo_Extension, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo_Extension, id_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo_Extension, affected_components_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo_Extension, version_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo_PositionsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo_PositionsEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo_PositionsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo_PositionsEntry_DoNotUse, value_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo_MacroCallsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo_MacroCallsEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo_MacroCallsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo_MacroCallsEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo, syntax_version_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo, location_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo, line_offsets_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo, positions_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo, macro_calls_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourceInfo, extensions_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourcePosition, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourcePosition, location_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourcePosition, offset_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourcePosition, line_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::SourcePosition, column_), }; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, 10, -1, sizeof(::google::api::expr::v1alpha1::ParsedExpr)}, - {12, -1, -1, sizeof(::google::api::expr::v1alpha1::Expr_Ident)}, - {21, 32, -1, sizeof(::google::api::expr::v1alpha1::Expr_Select)}, - {35, 46, -1, sizeof(::google::api::expr::v1alpha1::Expr_Call)}, - {49, -1, -1, sizeof(::google::api::expr::v1alpha1::Expr_CreateList)}, - {59, 73, -1, sizeof(::google::api::expr::v1alpha1::Expr_CreateStruct_Entry)}, - {78, -1, -1, sizeof(::google::api::expr::v1alpha1::Expr_CreateStruct)}, - {88, 104, -1, sizeof(::google::api::expr::v1alpha1::Expr_Comprehension)}, - {112, -1, -1, sizeof(::google::api::expr::v1alpha1::Expr)}, - {129, -1, -1, sizeof(::google::api::expr::v1alpha1::Constant)}, - {147, -1, -1, sizeof(::google::api::expr::v1alpha1::SourceInfo_Extension_Version)}, - {157, 168, -1, sizeof(::google::api::expr::v1alpha1::SourceInfo_Extension)}, - {171, 181, -1, sizeof(::google::api::expr::v1alpha1::SourceInfo_PositionsEntry_DoNotUse)}, - {183, 193, -1, sizeof(::google::api::expr::v1alpha1::SourceInfo_MacroCallsEntry_DoNotUse)}, - {195, -1, -1, sizeof(::google::api::expr::v1alpha1::SourceInfo)}, - {209, -1, -1, sizeof(::google::api::expr::v1alpha1::SourcePosition)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::google::api::expr::v1alpha1::ParsedExpr)}, + { 8, -1, -1, sizeof(::google::api::expr::v1alpha1::Expr_Ident)}, + { 15, -1, -1, sizeof(::google::api::expr::v1alpha1::Expr_Select)}, + { 24, -1, -1, sizeof(::google::api::expr::v1alpha1::Expr_Call)}, + { 33, -1, -1, sizeof(::google::api::expr::v1alpha1::Expr_CreateList)}, + { 41, -1, -1, sizeof(::google::api::expr::v1alpha1::Expr_CreateStruct_Entry)}, + { 53, -1, -1, sizeof(::google::api::expr::v1alpha1::Expr_CreateStruct)}, + { 61, -1, -1, sizeof(::google::api::expr::v1alpha1::Expr_Comprehension)}, + { 75, -1, -1, sizeof(::google::api::expr::v1alpha1::Expr)}, + { 90, -1, -1, sizeof(::google::api::expr::v1alpha1::Constant)}, + { 106, -1, -1, sizeof(::google::api::expr::v1alpha1::SourceInfo_Extension_Version)}, + { 114, -1, -1, sizeof(::google::api::expr::v1alpha1::SourceInfo_Extension)}, + { 123, 131, -1, sizeof(::google::api::expr::v1alpha1::SourceInfo_PositionsEntry_DoNotUse)}, + { 133, 141, -1, sizeof(::google::api::expr::v1alpha1::SourceInfo_MacroCallsEntry_DoNotUse)}, + { 143, -1, -1, sizeof(::google::api::expr::v1alpha1::SourceInfo)}, + { 155, -1, -1, sizeof(::google::api::expr::v1alpha1::SourcePosition)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::google::api::expr::v1alpha1::_ParsedExpr_default_instance_._instance, - &::google::api::expr::v1alpha1::_Expr_Ident_default_instance_._instance, - &::google::api::expr::v1alpha1::_Expr_Select_default_instance_._instance, - &::google::api::expr::v1alpha1::_Expr_Call_default_instance_._instance, - &::google::api::expr::v1alpha1::_Expr_CreateList_default_instance_._instance, - &::google::api::expr::v1alpha1::_Expr_CreateStruct_Entry_default_instance_._instance, - &::google::api::expr::v1alpha1::_Expr_CreateStruct_default_instance_._instance, - &::google::api::expr::v1alpha1::_Expr_Comprehension_default_instance_._instance, - &::google::api::expr::v1alpha1::_Expr_default_instance_._instance, - &::google::api::expr::v1alpha1::_Constant_default_instance_._instance, - &::google::api::expr::v1alpha1::_SourceInfo_Extension_Version_default_instance_._instance, - &::google::api::expr::v1alpha1::_SourceInfo_Extension_default_instance_._instance, - &::google::api::expr::v1alpha1::_SourceInfo_PositionsEntry_DoNotUse_default_instance_._instance, - &::google::api::expr::v1alpha1::_SourceInfo_MacroCallsEntry_DoNotUse_default_instance_._instance, - &::google::api::expr::v1alpha1::_SourceInfo_default_instance_._instance, - &::google::api::expr::v1alpha1::_SourcePosition_default_instance_._instance, + &::google::api::expr::v1alpha1::_ParsedExpr_default_instance_._instance, + &::google::api::expr::v1alpha1::_Expr_Ident_default_instance_._instance, + &::google::api::expr::v1alpha1::_Expr_Select_default_instance_._instance, + &::google::api::expr::v1alpha1::_Expr_Call_default_instance_._instance, + &::google::api::expr::v1alpha1::_Expr_CreateList_default_instance_._instance, + &::google::api::expr::v1alpha1::_Expr_CreateStruct_Entry_default_instance_._instance, + &::google::api::expr::v1alpha1::_Expr_CreateStruct_default_instance_._instance, + &::google::api::expr::v1alpha1::_Expr_Comprehension_default_instance_._instance, + &::google::api::expr::v1alpha1::_Expr_default_instance_._instance, + &::google::api::expr::v1alpha1::_Constant_default_instance_._instance, + &::google::api::expr::v1alpha1::_SourceInfo_Extension_Version_default_instance_._instance, + &::google::api::expr::v1alpha1::_SourceInfo_Extension_default_instance_._instance, + &::google::api::expr::v1alpha1::_SourceInfo_PositionsEntry_DoNotUse_default_instance_._instance, + &::google::api::expr::v1alpha1::_SourceInfo_MacroCallsEntry_DoNotUse_default_instance_._instance, + &::google::api::expr::v1alpha1::_SourceInfo_default_instance_._instance, + &::google::api::expr::v1alpha1::_SourcePosition_default_instance_._instance, }; -const char descriptor_table_protodef_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n%google/api/expr/v1alpha1/syntax.proto\022" - "\030google.api.expr.v1alpha1\032\036google/protob" - "uf/duration.proto\032\034google/protobuf/struc" - "t.proto\032\037google/protobuf/timestamp.proto" - "\"\207\001\n\nParsedExpr\0222\n\004expr\030\002 \001(\0132\036.google.a" - "pi.expr.v1alpha1.ExprR\004expr\022E\n\013source_in" - "fo\030\003 \001(\0132$.google.api.expr.v1alpha1.Sour" - "ceInfoR\nsourceInfo\"\313\r\n\004Expr\022\016\n\002id\030\002 \001(\003R" - "\002id\022C\n\nconst_expr\030\003 \001(\0132\".google.api.exp" - "r.v1alpha1.ConstantH\000R\tconstExpr\022E\n\niden" - "t_expr\030\004 \001(\0132$.google.api.expr.v1alpha1." - "Expr.IdentH\000R\tidentExpr\022H\n\013select_expr\030\005" - " \001(\0132%.google.api.expr.v1alpha1.Expr.Sel" - "ectH\000R\nselectExpr\022B\n\tcall_expr\030\006 \001(\0132#.g" - "oogle.api.expr.v1alpha1.Expr.CallH\000R\010cal" - "lExpr\022H\n\tlist_expr\030\007 \001(\0132).google.api.ex" - "pr.v1alpha1.Expr.CreateListH\000R\010listExpr\022" - "N\n\013struct_expr\030\010 \001(\0132+.google.api.expr.v" - "1alpha1.Expr.CreateStructH\000R\nstructExpr\022" - "]\n\022comprehension_expr\030\t \001(\0132,.google.api" - ".expr.v1alpha1.Expr.ComprehensionH\000R\021com" - "prehensionExpr\032\033\n\005Ident\022\022\n\004name\030\001 \001(\tR\004n" - "ame\032u\n\006Select\0228\n\007operand\030\001 \001(\0132\036.google." - "api.expr.v1alpha1.ExprR\007operand\022\024\n\005field" - "\030\002 \001(\tR\005field\022\033\n\ttest_only\030\003 \001(\010R\010testOn" - "ly\032\216\001\n\004Call\0226\n\006target\030\001 \001(\0132\036.google.api" - ".expr.v1alpha1.ExprR\006target\022\032\n\010function\030" - "\002 \001(\tR\010function\0222\n\004args\030\003 \003(\0132\036.google.a" - "pi.expr.v1alpha1.ExprR\004args\032s\n\nCreateLis" - "t\022:\n\010elements\030\001 \003(\0132\036.google.api.expr.v1" - "alpha1.ExprR\010elements\022)\n\020optional_indice" - "s\030\002 \003(\005R\017optionalIndices\032\333\002\n\014CreateStruc" - "t\022!\n\014message_name\030\001 \001(\tR\013messageName\022K\n\007" - "entries\030\002 \003(\01321.google.api.expr.v1alpha1" - ".Expr.CreateStruct.EntryR\007entries\032\332\001\n\005En" - "try\022\016\n\002id\030\001 \001(\003R\002id\022\035\n\tfield_key\030\002 \001(\tH\000" - "R\010fieldKey\0229\n\007map_key\030\003 \001(\0132\036.google.api" - ".expr.v1alpha1.ExprH\000R\006mapKey\0224\n\005value\030\004" - " \001(\0132\036.google.api.expr.v1alpha1.ExprR\005va" - "lue\022%\n\016optional_entry\030\005 \001(\010R\roptionalEnt" - "ryB\n\n\010key_kind\032\232\003\n\rComprehension\022\031\n\010iter" - "_var\030\001 \001(\tR\007iterVar\022\033\n\titer_var2\030\010 \001(\tR\010" - "iterVar2\022=\n\niter_range\030\002 \001(\0132\036.google.ap" - "i.expr.v1alpha1.ExprR\titerRange\022\031\n\010accu_" - "var\030\003 \001(\tR\007accuVar\022;\n\taccu_init\030\004 \001(\0132\036." - "google.api.expr.v1alpha1.ExprR\010accuInit\022" - "E\n\016loop_condition\030\005 \001(\0132\036.google.api.exp" - "r.v1alpha1.ExprR\rloopCondition\022;\n\tloop_s" - "tep\030\006 \001(\0132\036.google.api.expr.v1alpha1.Exp" - "rR\010loopStep\0226\n\006result\030\007 \001(\0132\036.google.api" - ".expr.v1alpha1.ExprR\006resultB\013\n\texpr_kind" - "\"\301\003\n\010Constant\022;\n\nnull_value\030\001 \001(\0162\032.goog" - "le.protobuf.NullValueH\000R\tnullValue\022\037\n\nbo" - "ol_value\030\002 \001(\010H\000R\tboolValue\022!\n\013int64_val" - "ue\030\003 \001(\003H\000R\nint64Value\022#\n\014uint64_value\030\004" - " \001(\004H\000R\013uint64Value\022#\n\014double_value\030\005 \001(" - "\001H\000R\013doubleValue\022#\n\014string_value\030\006 \001(\tH\000" - "R\013stringValue\022!\n\013bytes_value\030\007 \001(\014H\000R\nby" - "tesValue\022F\n\016duration_value\030\010 \001(\0132\031.googl" - "e.protobuf.DurationB\002\030\001H\000R\rdurationValue" - "\022I\n\017timestamp_value\030\t \001(\0132\032.google.proto" - "buf.TimestampB\002\030\001H\000R\016timestampValueB\017\n\rc" - "onstant_kind\"\214\007\n\nSourceInfo\022%\n\016syntax_ve" - "rsion\030\001 \001(\tR\rsyntaxVersion\022\032\n\010location\030\002" - " \001(\tR\010location\022!\n\014line_offsets\030\003 \003(\005R\013li" - "neOffsets\022Q\n\tpositions\030\004 \003(\01323.google.ap" - "i.expr.v1alpha1.SourceInfo.PositionsEntr" - "yR\tpositions\022U\n\013macro_calls\030\005 \003(\01324.goog" - "le.api.expr.v1alpha1.SourceInfo.MacroCal" - "lsEntryR\nmacroCalls\022N\n\nextensions\030\006 \003(\0132" - "..google.api.expr.v1alpha1.SourceInfo.Ex" - "tensionR\nextensions\032\200\003\n\tExtension\022\016\n\002id\030" - "\001 \001(\tR\002id\022i\n\023affected_components\030\002 \003(\01628" - ".google.api.expr.v1alpha1.SourceInfo.Ext" - "ension.ComponentR\022affectedComponents\022P\n\007" - "version\030\003 \001(\01326.google.api.expr.v1alpha1" - ".SourceInfo.Extension.VersionR\007version\0325" - "\n\007Version\022\024\n\005major\030\001 \001(\003R\005major\022\024\n\005minor" - "\030\002 \001(\003R\005minor\"o\n\tComponent\022\031\n\025COMPONENT_" - "UNSPECIFIED\020\000\022\024\n\020COMPONENT_PARSER\020\001\022\032\n\026C" - "OMPONENT_TYPE_CHECKER\020\002\022\025\n\021COMPONENT_RUN" - "TIME\020\003\032<\n\016PositionsEntry\022\020\n\003key\030\001 \001(\003R\003k" - "ey\022\024\n\005value\030\002 \001(\005R\005value:\0028\001\032]\n\017MacroCal" - "lsEntry\022\020\n\003key\030\001 \001(\003R\003key\0224\n\005value\030\002 \001(\013" - "2\036.google.api.expr.v1alpha1.ExprR\005value:" - "\0028\001\"p\n\016SourcePosition\022\032\n\010location\030\001 \001(\tR" - "\010location\022\026\n\006offset\030\002 \001(\005R\006offset\022\022\n\004lin" - "e\030\003 \001(\005R\004line\022\026\n\006column\030\004 \001(\005R\006columnB\357\001" - "\n\034com.google.api.expr.v1alpha1B\013SyntaxPr" - "otoP\001Z descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_getter() { return &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto(&descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto(&descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto); namespace google { namespace api { namespace expr { namespace v1alpha1 { -const ::google::protobuf::EnumDescriptor* SourceInfo_Extension_Component_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto); +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SourceInfo_Extension_Component_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto); return file_level_enum_descriptors_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto[0]; } -PROTOBUF_CONSTINIT const uint32_t SourceInfo_Extension_Component_internal_data_[] = { - 262144u, 0u, }; bool SourceInfo_Extension_Component_IsValid(int value) { - return 0 <= value && value <= 3; + switch (value) { + case 0: + case 1: + case 2: + case 3: + return true; + default: + return false; + } } -#if (__cplusplus < 201703) && \ - (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr SourceInfo_Extension_Component SourceInfo_Extension::COMPONENT_UNSPECIFIED; constexpr SourceInfo_Extension_Component SourceInfo_Extension::COMPONENT_PARSER; constexpr SourceInfo_Extension_Component SourceInfo_Extension::COMPONENT_TYPE_CHECKER; @@ -804,239 +600,213 @@ constexpr SourceInfo_Extension_Component SourceInfo_Extension::COMPONENT_RUNTIME constexpr SourceInfo_Extension_Component SourceInfo_Extension::Component_MIN; constexpr SourceInfo_Extension_Component SourceInfo_Extension::Component_MAX; constexpr int SourceInfo_Extension::Component_ARRAYSIZE; +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -#endif // (__cplusplus < 201703) && - // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) // =================================================================== class ParsedExpr::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ParsedExpr, _impl_._has_bits_); static const ::google::api::expr::v1alpha1::Expr& expr(const ParsedExpr* msg); - static void set_has_expr(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } static const ::google::api::expr::v1alpha1::SourceInfo& source_info(const ParsedExpr* msg); - static void set_has_source_info(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } }; -const ::google::api::expr::v1alpha1::Expr& ParsedExpr::_Internal::expr(const ParsedExpr* msg) { - return *msg->_impl_.expr_; +const ::google::api::expr::v1alpha1::Expr& +ParsedExpr::_Internal::expr(const ParsedExpr* msg) { + return *msg->expr_; } -const ::google::api::expr::v1alpha1::SourceInfo& ParsedExpr::_Internal::source_info(const ParsedExpr* msg) { - return *msg->_impl_.source_info_; +const ::google::api::expr::v1alpha1::SourceInfo& +ParsedExpr::_Internal::source_info(const ParsedExpr* msg) { + return *msg->source_info_; } -ParsedExpr::ParsedExpr(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ParsedExpr::ParsedExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.ParsedExpr) } -inline PROTOBUF_NDEBUG_INLINE ParsedExpr::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -ParsedExpr::ParsedExpr( - ::google::protobuf::Arena* arena, - const ParsedExpr& from) - : ::google::protobuf::Message(arena) { - ParsedExpr* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.expr_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::api::expr::v1alpha1::Expr>(arena, *from._impl_.expr_) - : nullptr; - _impl_.source_info_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::google::api::expr::v1alpha1::SourceInfo>(arena, *from._impl_.source_info_) - : nullptr; - +ParsedExpr::ParsedExpr(const ParsedExpr& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_expr()) { + expr_ = new ::google::api::expr::v1alpha1::Expr(*from.expr_); + } else { + expr_ = nullptr; + } + if (from._internal_has_source_info()) { + source_info_ = new ::google::api::expr::v1alpha1::SourceInfo(*from.source_info_); + } else { + source_info_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.ParsedExpr) } -inline PROTOBUF_NDEBUG_INLINE ParsedExpr::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void ParsedExpr::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, expr_), - 0, - offsetof(Impl_, source_info_) - - offsetof(Impl_, expr_) + - sizeof(Impl_::source_info_)); +inline void ParsedExpr::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&expr_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&source_info_) - + reinterpret_cast(&expr_)) + sizeof(source_info_)); } + ParsedExpr::~ParsedExpr() { // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.ParsedExpr) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ParsedExpr::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.expr_; - delete _impl_.source_info_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete expr_; + if (this != internal_default_instance()) delete source_info_; +} + +void ParsedExpr::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void ParsedExpr::Clear() { +void ParsedExpr::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.ParsedExpr) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.expr_ != nullptr); - _impl_.expr_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.source_info_ != nullptr); - _impl_.source_info_->Clear(); + if (GetArenaForAllocation() == nullptr && expr_ != nullptr) { + delete expr_; + } + expr_ = nullptr; + if (GetArenaForAllocation() == nullptr && source_info_ != nullptr) { + delete source_info_; + } + source_info_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ParsedExpr::_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) { + // .google.api.expr.v1alpha1.Expr expr = 2 [json_name = "expr"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_expr(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.SourceInfo source_info = 3 [json_name = "sourceInfo"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_source_info(), 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; } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ParsedExpr::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 2, 0, 2> ParsedExpr::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ParsedExpr, _impl_._has_bits_), - 0, // no _extensions_ - 3, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967289, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ParsedExpr_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .google.api.expr.v1alpha1.Expr expr = 2 [json_name = "expr"]; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(ParsedExpr, _impl_.expr_)}}, - // .google.api.expr.v1alpha1.SourceInfo source_info = 3 [json_name = "sourceInfo"]; - {::_pbi::TcParser::FastMtS1, - {26, 1, 1, PROTOBUF_FIELD_OFFSET(ParsedExpr, _impl_.source_info_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .google.api.expr.v1alpha1.Expr expr = 2 [json_name = "expr"]; - {PROTOBUF_FIELD_OFFSET(ParsedExpr, _impl_.expr_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.api.expr.v1alpha1.SourceInfo source_info = 3 [json_name = "sourceInfo"]; - {PROTOBUF_FIELD_OFFSET(ParsedExpr, _impl_.source_info_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::Expr>()}, - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::SourceInfo>()}, - }}, {{ - }}, -}; - -::uint8_t* ParsedExpr::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ParsedExpr::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.ParsedExpr) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .google.api.expr.v1alpha1.Expr expr = 2 [json_name = "expr"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::expr(this), + if (this->_internal_has_expr()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::expr(this), _Internal::expr(this).GetCachedSize(), target, stream); } // .google.api.expr.v1alpha1.SourceInfo source_info = 3 [json_name = "sourceInfo"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::source_info(this), + if (this->_internal_has_source_info()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::source_info(this), _Internal::source_info(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1alpha1.ParsedExpr) return target; } -::size_t ParsedExpr::ByteSizeLong() const { +size_t ParsedExpr::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.ParsedExpr) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // .google.api.expr.v1alpha1.Expr expr = 2 [json_name = "expr"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.expr_); - } - - // .google.api.expr.v1alpha1.SourceInfo source_info = 3 [json_name = "sourceInfo"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.source_info_); - } + // .google.api.expr.v1alpha1.Expr expr = 2 [json_name = "expr"]; + if (this->_internal_has_expr()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *expr_); + } + // .google.api.expr.v1alpha1.SourceInfo source_info = 3 [json_name = "sourceInfo"]; + if (this->_internal_has_source_info()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *source_info_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ParsedExpr::_class_data_ = { - ParsedExpr::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ParsedExpr::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ParsedExpr::MergeImpl }; -const ::google::protobuf::Message::ClassData* ParsedExpr::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ParsedExpr::GetClassData() const { return &_class_data_; } + +void ParsedExpr::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ParsedExpr::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.ParsedExpr) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ParsedExpr::MergeFrom(const ParsedExpr& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.ParsedExpr) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_expr()->::google::api::expr::v1alpha1::Expr::MergeFrom( - from._internal_expr()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_source_info()->::google::api::expr::v1alpha1::SourceInfo::MergeFrom( - from._internal_source_info()); - } + if (from._internal_has_expr()) { + _internal_mutable_expr()->::google::api::expr::v1alpha1::Expr::MergeFrom(from._internal_expr()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_source_info()) { + _internal_mutable_source_info()->::google::api::expr::v1alpha1::SourceInfo::MergeFrom(from._internal_source_info()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ParsedExpr::CopyFrom(const ParsedExpr& from) { @@ -1046,191 +816,192 @@ void ParsedExpr::CopyFrom(const ParsedExpr& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ParsedExpr::IsInitialized() const { +bool ParsedExpr::IsInitialized() const { return true; } -::_pbi::CachedSize* ParsedExpr::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ParsedExpr::InternalSwap(ParsedExpr* PROTOBUF_RESTRICT other) { +void ParsedExpr::InternalSwap(ParsedExpr* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(ParsedExpr, _impl_.source_info_) - + sizeof(ParsedExpr::_impl_.source_info_) - - PROTOBUF_FIELD_OFFSET(ParsedExpr, _impl_.expr_)>( - reinterpret_cast(&_impl_.expr_), - reinterpret_cast(&other->_impl_.expr_)); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(ParsedExpr, source_info_) + + sizeof(ParsedExpr::source_info_) + - PROTOBUF_FIELD_OFFSET(ParsedExpr, expr_)>( + reinterpret_cast(&expr_), + reinterpret_cast(&other->expr_)); } -::google::protobuf::Metadata ParsedExpr::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ParsedExpr::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto[0]); } + // =================================================================== class Expr_Ident::_Internal { public: }; -Expr_Ident::Expr_Ident(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Expr_Ident::Expr_Ident(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.Expr.Ident) } -inline PROTOBUF_NDEBUG_INLINE Expr_Ident::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : name_(arena, from.name_), - _cached_size_{0} {} - -Expr_Ident::Expr_Ident( - ::google::protobuf::Arena* arena, - const Expr_Ident& from) - : ::google::protobuf::Message(arena) { - Expr_Ident* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +Expr_Ident::Expr_Ident(const Expr_Ident& 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()); + } // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.Expr.Ident) } -inline PROTOBUF_NDEBUG_INLINE Expr_Ident::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : name_(arena), - _cached_size_{0} {} -inline void Expr_Ident::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void Expr_Ident::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + Expr_Ident::~Expr_Ident() { // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.Expr.Ident) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Expr_Ident::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); } -PROTOBUF_NOINLINE void Expr_Ident::Clear() { +void Expr_Ident::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void Expr_Ident::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.Expr.Ident) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Expr_Ident::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Expr_Ident::_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, "google.api.expr.v1alpha1.Expr.Ident.name")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 48, 2> Expr_Ident::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_Expr_Ident_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Expr_Ident, _impl_.name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(Expr_Ident, _impl_.name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\43\4\0\0\0\0\0\0" - "google.api.expr.v1alpha1.Expr.Ident" - "name" - }}, -}; - -::uint8_t* Expr_Ident::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Expr_Ident::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.Expr.Ident) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.expr.v1alpha1.Expr.Ident.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1alpha1.Expr.Ident.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1alpha1.Expr.Ident) return target; } -::size_t Expr_Ident::ByteSizeLong() const { +size_t Expr_Ident::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.Expr.Ident) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Expr_Ident::_class_data_ = { - Expr_Ident::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Expr_Ident::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Expr_Ident::MergeImpl }; -const ::google::protobuf::Message::ClassData* Expr_Ident::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Expr_Ident::GetClassData() const { return &_class_data_; } + +void Expr_Ident::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Expr_Ident::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Expr.Ident) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Expr_Ident::MergeFrom(const Expr_Ident& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Expr.Ident) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Expr_Ident::CopyFrom(const Expr_Ident& from) { @@ -1240,264 +1011,260 @@ void Expr_Ident::CopyFrom(const Expr_Ident& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Expr_Ident::IsInitialized() const { +bool Expr_Ident::IsInitialized() const { return true; } -::_pbi::CachedSize* Expr_Ident::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Expr_Ident::InternalSwap(Expr_Ident* PROTOBUF_RESTRICT other) { +void Expr_Ident::InternalSwap(Expr_Ident* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); } -::google::protobuf::Metadata Expr_Ident::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Expr_Ident::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto[1]); } + // =================================================================== class Expr_Select::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Expr_Select, _impl_._has_bits_); static const ::google::api::expr::v1alpha1::Expr& operand(const Expr_Select* msg); - static void set_has_operand(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::google::api::expr::v1alpha1::Expr& Expr_Select::_Internal::operand(const Expr_Select* msg) { - return *msg->_impl_.operand_; +const ::google::api::expr::v1alpha1::Expr& +Expr_Select::_Internal::operand(const Expr_Select* msg) { + return *msg->operand_; } -Expr_Select::Expr_Select(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Expr_Select::Expr_Select(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.Expr.Select) } -inline PROTOBUF_NDEBUG_INLINE Expr_Select::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - field_(arena, from.field_) {} - -Expr_Select::Expr_Select( - ::google::protobuf::Arena* arena, - const Expr_Select& from) - : ::google::protobuf::Message(arena) { - Expr_Select* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.operand_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::api::expr::v1alpha1::Expr>(arena, *from._impl_.operand_) - : nullptr; - _impl_.test_only_ = from._impl_.test_only_; - +Expr_Select::Expr_Select(const Expr_Select& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + field_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + field_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_field().empty()) { + field_.Set(from._internal_field(), + GetArenaForAllocation()); + } + if (from._internal_has_operand()) { + operand_ = new ::google::api::expr::v1alpha1::Expr(*from.operand_); + } else { + operand_ = nullptr; + } + test_only_ = from.test_only_; // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.Expr.Select) } -inline PROTOBUF_NDEBUG_INLINE Expr_Select::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - field_(arena) {} - -inline void Expr_Select::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, operand_), - 0, - offsetof(Impl_, test_only_) - - offsetof(Impl_, operand_) + - sizeof(Impl_::test_only_)); + +inline void Expr_Select::SharedCtor() { +field_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + field_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&operand_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&test_only_) - + reinterpret_cast(&operand_)) + sizeof(test_only_)); } + Expr_Select::~Expr_Select() { // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.Expr.Select) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Expr_Select::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.field_.Destroy(); - delete _impl_.operand_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + field_.Destroy(); + if (this != internal_default_instance()) delete operand_; } -PROTOBUF_NOINLINE void Expr_Select::Clear() { +void Expr_Select::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void Expr_Select::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.Expr.Select) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.field_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.operand_ != nullptr); - _impl_.operand_->Clear(); - } - _impl_.test_only_ = false; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Expr_Select::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + field_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && operand_ != nullptr) { + delete operand_; + } + operand_ = nullptr; + test_only_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Expr_Select::_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) { + // .google.api.expr.v1alpha1.Expr operand = 1 [json_name = "operand"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_operand(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string field = 2 [json_name = "field"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_field(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1alpha1.Expr.Select.field")); + } else + goto handle_unusual; + continue; + // bool test_only = 3 [json_name = "testOnly"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + test_only_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 1, 50, 2> Expr_Select::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Expr_Select, _impl_._has_bits_), - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Expr_Select_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // .google.api.expr.v1alpha1.Expr operand = 1 [json_name = "operand"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(Expr_Select, _impl_.operand_)}}, - // string field = 2 [json_name = "field"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(Expr_Select, _impl_.field_)}}, - // bool test_only = 3 [json_name = "testOnly"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(Expr_Select, _impl_.test_only_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .google.api.expr.v1alpha1.Expr operand = 1 [json_name = "operand"]; - {PROTOBUF_FIELD_OFFSET(Expr_Select, _impl_.operand_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // string field = 2 [json_name = "field"]; - {PROTOBUF_FIELD_OFFSET(Expr_Select, _impl_.field_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // bool test_only = 3 [json_name = "testOnly"]; - {PROTOBUF_FIELD_OFFSET(Expr_Select, _impl_.test_only_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::Expr>()}, - }}, {{ - "\44\0\5\0\0\0\0\0" - "google.api.expr.v1alpha1.Expr.Select" - "field" - }}, -}; - -::uint8_t* Expr_Select::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Expr_Select::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.Expr.Select) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .google.api.expr.v1alpha1.Expr operand = 1 [json_name = "operand"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::operand(this), + if (this->_internal_has_operand()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::operand(this), _Internal::operand(this).GetCachedSize(), target, stream); } // string field = 2 [json_name = "field"]; if (!this->_internal_field().empty()) { - const std::string& _s = this->_internal_field(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.expr.v1alpha1.Expr.Select.field"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_field().data(), static_cast(this->_internal_field().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1alpha1.Expr.Select.field"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_field(), target); } // bool test_only = 3 [json_name = "testOnly"]; if (this->_internal_test_only() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 3, this->_internal_test_only(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_test_only(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1alpha1.Expr.Select) return target; } -::size_t Expr_Select::ByteSizeLong() const { +size_t Expr_Select::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.Expr.Select) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string field = 2 [json_name = "field"]; if (!this->_internal_field().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_field()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_field()); } // .google.api.expr.v1alpha1.Expr operand = 1 [json_name = "operand"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.operand_); + if (this->_internal_has_operand()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *operand_); } // bool test_only = 3 [json_name = "testOnly"]; if (this->_internal_test_only() != 0) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Expr_Select::_class_data_ = { - Expr_Select::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Expr_Select::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Expr_Select::MergeImpl }; -const ::google::protobuf::Message::ClassData* Expr_Select::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Expr_Select::GetClassData() const { return &_class_data_; } + +void Expr_Select::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Expr_Select::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Expr.Select) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Expr_Select::MergeFrom(const Expr_Select& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Expr.Select) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_field().empty()) { - _this->_internal_set_field(from._internal_field()); + _internal_set_field(from._internal_field()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_operand()->::google::api::expr::v1alpha1::Expr::MergeFrom( - from._internal_operand()); + if (from._internal_has_operand()) { + _internal_mutable_operand()->::google::api::expr::v1alpha1::Expr::MergeFrom(from._internal_operand()); } if (from._internal_test_only() != 0) { - _this->_internal_set_test_only(from._internal_test_only()); + _internal_set_test_only(from._internal_test_only()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Expr_Select::CopyFrom(const Expr_Select& from) { @@ -1507,269 +1274,271 @@ void Expr_Select::CopyFrom(const Expr_Select& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Expr_Select::IsInitialized() const { +bool Expr_Select::IsInitialized() const { return true; } -::_pbi::CachedSize* Expr_Select::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Expr_Select::InternalSwap(Expr_Select* PROTOBUF_RESTRICT other) { +void Expr_Select::InternalSwap(Expr_Select* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.field_, &other->_impl_.field_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(Expr_Select, _impl_.test_only_) - + sizeof(Expr_Select::_impl_.test_only_) - - PROTOBUF_FIELD_OFFSET(Expr_Select, _impl_.operand_)>( - reinterpret_cast(&_impl_.operand_), - reinterpret_cast(&other->_impl_.operand_)); -} - -::google::protobuf::Metadata Expr_Select::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &field_, lhs_arena, + &other->field_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Expr_Select, test_only_) + + sizeof(Expr_Select::test_only_) + - PROTOBUF_FIELD_OFFSET(Expr_Select, operand_)>( + reinterpret_cast(&operand_), + reinterpret_cast(&other->operand_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Expr_Select::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto[2]); } + // =================================================================== class Expr_Call::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Expr_Call, _impl_._has_bits_); static const ::google::api::expr::v1alpha1::Expr& target(const Expr_Call* msg); - static void set_has_target(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::google::api::expr::v1alpha1::Expr& Expr_Call::_Internal::target(const Expr_Call* msg) { - return *msg->_impl_.target_; +const ::google::api::expr::v1alpha1::Expr& +Expr_Call::_Internal::target(const Expr_Call* msg) { + return *msg->target_; } -Expr_Call::Expr_Call(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Expr_Call::Expr_Call(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + args_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.Expr.Call) } -inline PROTOBUF_NDEBUG_INLINE Expr_Call::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - args_{visibility, arena, from.args_}, - function_(arena, from.function_) {} - -Expr_Call::Expr_Call( - ::google::protobuf::Arena* arena, - const Expr_Call& from) - : ::google::protobuf::Message(arena) { - Expr_Call* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.target_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::api::expr::v1alpha1::Expr>(arena, *from._impl_.target_) - : nullptr; - +Expr_Call::Expr_Call(const Expr_Call& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + args_(from.args_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + function_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + function_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_function().empty()) { + function_.Set(from._internal_function(), + GetArenaForAllocation()); + } + if (from._internal_has_target()) { + target_ = new ::google::api::expr::v1alpha1::Expr(*from.target_); + } else { + target_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.Expr.Call) } -inline PROTOBUF_NDEBUG_INLINE Expr_Call::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - args_{visibility, arena}, - function_(arena) {} -inline void Expr_Call::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.target_ = {}; +inline void Expr_Call::SharedCtor() { +function_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + function_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +target_ = nullptr; } + Expr_Call::~Expr_Call() { // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.Expr.Call) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Expr_Call::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.function_.Destroy(); - delete _impl_.target_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + function_.Destroy(); + if (this != internal_default_instance()) delete target_; } -PROTOBUF_NOINLINE void Expr_Call::Clear() { +void Expr_Call::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void Expr_Call::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.Expr.Call) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.args_.Clear(); - _impl_.function_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.target_ != nullptr); - _impl_.target_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Expr_Call::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + args_.Clear(); + function_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && target_ != nullptr) { + delete target_; + } + target_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Expr_Call::_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) { + // .google.api.expr.v1alpha1.Expr target = 1 [json_name = "target"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_target(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string function = 2 [json_name = "function"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_function(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1alpha1.Expr.Call.function")); + } else + goto handle_unusual; + continue; + // repeated .google.api.expr.v1alpha1.Expr args = 3 [json_name = "args"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_args(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 2, 51, 2> Expr_Call::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Expr_Call, _impl_._has_bits_), - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Expr_Call_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // .google.api.expr.v1alpha1.Expr target = 1 [json_name = "target"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(Expr_Call, _impl_.target_)}}, - // string function = 2 [json_name = "function"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(Expr_Call, _impl_.function_)}}, - // repeated .google.api.expr.v1alpha1.Expr args = 3 [json_name = "args"]; - {::_pbi::TcParser::FastMtR1, - {26, 63, 1, PROTOBUF_FIELD_OFFSET(Expr_Call, _impl_.args_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .google.api.expr.v1alpha1.Expr target = 1 [json_name = "target"]; - {PROTOBUF_FIELD_OFFSET(Expr_Call, _impl_.target_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // string function = 2 [json_name = "function"]; - {PROTOBUF_FIELD_OFFSET(Expr_Call, _impl_.function_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated .google.api.expr.v1alpha1.Expr args = 3 [json_name = "args"]; - {PROTOBUF_FIELD_OFFSET(Expr_Call, _impl_.args_), -1, 1, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::Expr>()}, - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::Expr>()}, - }}, {{ - "\42\0\10\0\0\0\0\0" - "google.api.expr.v1alpha1.Expr.Call" - "function" - }}, -}; - -::uint8_t* Expr_Call::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Expr_Call::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.Expr.Call) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .google.api.expr.v1alpha1.Expr target = 1 [json_name = "target"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::target(this), + if (this->_internal_has_target()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::target(this), _Internal::target(this).GetCachedSize(), target, stream); } // string function = 2 [json_name = "function"]; if (!this->_internal_function().empty()) { - const std::string& _s = this->_internal_function(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.expr.v1alpha1.Expr.Call.function"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_function().data(), static_cast(this->_internal_function().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1alpha1.Expr.Call.function"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_function(), target); } // repeated .google.api.expr.v1alpha1.Expr args = 3 [json_name = "args"]; for (unsigned i = 0, n = static_cast(this->_internal_args_size()); i < n; i++) { - const auto& repfield = this->_internal_args().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_args(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1alpha1.Expr.Call) return target; } -::size_t Expr_Call::ByteSizeLong() const { +size_t Expr_Call::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.Expr.Call) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .google.api.expr.v1alpha1.Expr args = 3 [json_name = "args"]; total_size += 1UL * this->_internal_args_size(); - for (const auto& msg : this->_internal_args()) { + for (const auto& msg : this->args_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // string function = 2 [json_name = "function"]; if (!this->_internal_function().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_function()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_function()); } // .google.api.expr.v1alpha1.Expr target = 1 [json_name = "target"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.target_); + if (this->_internal_has_target()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *target_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Expr_Call::_class_data_ = { - Expr_Call::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Expr_Call::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Expr_Call::MergeImpl }; -const ::google::protobuf::Message::ClassData* Expr_Call::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Expr_Call::GetClassData() const { return &_class_data_; } + +void Expr_Call::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Expr_Call::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Expr.Call) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Expr_Call::MergeFrom(const Expr_Call& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Expr.Call) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_args()->MergeFrom( - from._internal_args()); + args_.MergeFrom(from.args_); if (!from._internal_function().empty()) { - _this->_internal_set_function(from._internal_function()); + _internal_set_function(from._internal_function()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_target()->::google::api::expr::v1alpha1::Expr::MergeFrom( - from._internal_target()); + if (from._internal_has_target()) { + _internal_mutable_target()->::google::api::expr::v1alpha1::Expr::MergeFrom(from._internal_target()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Expr_Call::CopyFrom(const Expr_Call& from) { @@ -1779,154 +1548,152 @@ void Expr_Call::CopyFrom(const Expr_Call& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Expr_Call::IsInitialized() const { +bool Expr_Call::IsInitialized() const { return true; } -::_pbi::CachedSize* Expr_Call::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Expr_Call::InternalSwap(Expr_Call* PROTOBUF_RESTRICT other) { +void Expr_Call::InternalSwap(Expr_Call* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.args_.InternalSwap(&other->_impl_.args_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.function_, &other->_impl_.function_, arena); - swap(_impl_.target_, other->_impl_.target_); + args_.InternalSwap(&other->args_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &function_, lhs_arena, + &other->function_, rhs_arena + ); + swap(target_, other->target_); } -::google::protobuf::Metadata Expr_Call::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Expr_Call::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto[3]); } + // =================================================================== class Expr_CreateList::_Internal { public: }; -Expr_CreateList::Expr_CreateList(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Expr_CreateList::Expr_CreateList(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + elements_(arena), + optional_indices_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.Expr.CreateList) } -inline PROTOBUF_NDEBUG_INLINE Expr_CreateList::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : elements_{visibility, arena, from.elements_}, - optional_indices_{visibility, arena, from.optional_indices_}, - _optional_indices_cached_byte_size_{0}, - _cached_size_{0} {} - -Expr_CreateList::Expr_CreateList( - ::google::protobuf::Arena* arena, - const Expr_CreateList& from) - : ::google::protobuf::Message(arena) { - Expr_CreateList* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +Expr_CreateList::Expr_CreateList(const Expr_CreateList& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + elements_(from.elements_), + optional_indices_(from.optional_indices_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.Expr.CreateList) } -inline PROTOBUF_NDEBUG_INLINE Expr_CreateList::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : elements_{visibility, arena}, - optional_indices_{visibility, arena}, - _optional_indices_cached_byte_size_{0}, - _cached_size_{0} {} -inline void Expr_CreateList::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void Expr_CreateList::SharedCtor() { } + Expr_CreateList::~Expr_CreateList() { // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.Expr.CreateList) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Expr_CreateList::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void Expr_CreateList::Clear() { +void Expr_CreateList::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void Expr_CreateList::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.Expr.CreateList) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.elements_.Clear(); - _impl_.optional_indices_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Expr_CreateList::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + elements_.Clear(); + optional_indices_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Expr_CreateList::_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) { + // repeated .google.api.expr.v1alpha1.Expr elements = 1 [json_name = "elements"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_elements(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + // repeated int32 optional_indices = 2 [json_name = "optionalIndices"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(_internal_mutable_optional_indices(), ptr, ctx); + CHK_(ptr); + } else if (static_cast(tag) == 16) { + _internal_add_optional_indices(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 0, 2> Expr_CreateList::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Expr_CreateList_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated int32 optional_indices = 2 [json_name = "optionalIndices"]; - {::_pbi::TcParser::FastV32P1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(Expr_CreateList, _impl_.optional_indices_)}}, - // repeated .google.api.expr.v1alpha1.Expr elements = 1 [json_name = "elements"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Expr_CreateList, _impl_.elements_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .google.api.expr.v1alpha1.Expr elements = 1 [json_name = "elements"]; - {PROTOBUF_FIELD_OFFSET(Expr_CreateList, _impl_.elements_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated int32 optional_indices = 2 [json_name = "optionalIndices"]; - {PROTOBUF_FIELD_OFFSET(Expr_CreateList, _impl_.optional_indices_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::Expr>()}, - }}, {{ - }}, -}; - -::uint8_t* Expr_CreateList::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Expr_CreateList::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.Expr.CreateList) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .google.api.expr.v1alpha1.Expr elements = 1 [json_name = "elements"]; for (unsigned i = 0, n = static_cast(this->_internal_elements_size()); i < n; i++) { - const auto& repfield = this->_internal_elements().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_elements(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } // repeated int32 optional_indices = 2 [json_name = "optionalIndices"]; { - int byte_size = _impl_._optional_indices_cached_byte_size_.Get(); + int byte_size = _optional_indices_cached_byte_size_.load(std::memory_order_relaxed); if (byte_size > 0) { target = stream->WriteInt32Packed( 2, _internal_optional_indices(), byte_size, target); @@ -1934,64 +1701,67 @@ ::uint8_t* Expr_CreateList::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1alpha1.Expr.CreateList) return target; } -::size_t Expr_CreateList::ByteSizeLong() const { +size_t Expr_CreateList::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.Expr.CreateList) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .google.api.expr.v1alpha1.Expr elements = 1 [json_name = "elements"]; total_size += 1UL * this->_internal_elements_size(); - for (const auto& msg : this->_internal_elements()) { + for (const auto& msg : this->elements_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // repeated int32 optional_indices = 2 [json_name = "optionalIndices"]; { - std::size_t data_size = ::_pbi::WireFormatLite::Int32Size( - this->_internal_optional_indices()) - ; - _impl_._optional_indices_cached_byte_size_.Set(::_pbi::ToCachedSize(data_size)); - std::size_t tag_size = data_size == 0 - ? 0 - : 1 + ::_pbi::WireFormatLite::Int32Size( - static_cast(data_size)) - ; - total_size += tag_size + data_size; - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData Expr_CreateList::_class_data_ = { - Expr_CreateList::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor + size_t data_size = ::_pbi::WireFormatLite:: + Int32Size(this->optional_indices_); + if (data_size > 0) { + total_size += 1 + + ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); + } + int cached_size = ::_pbi::ToCachedSize(data_size); + _optional_indices_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); + total_size += data_size; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Expr_CreateList::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Expr_CreateList::MergeImpl }; -const ::google::protobuf::Message::ClassData* Expr_CreateList::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Expr_CreateList::GetClassData() const { return &_class_data_; } + +void Expr_CreateList::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Expr_CreateList::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Expr.CreateList) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Expr_CreateList::MergeFrom(const Expr_CreateList& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Expr.CreateList) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_elements()->MergeFrom( - from._internal_elements()); - _this->_internal_mutable_optional_indices()->MergeFrom(from._internal_optional_indices()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + elements_.MergeFrom(from.elements_); + optional_indices_.MergeFrom(from.optional_indices_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Expr_CreateList::CopyFrom(const Expr_CreateList& from) { @@ -2001,147 +1771,127 @@ void Expr_CreateList::CopyFrom(const Expr_CreateList& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Expr_CreateList::IsInitialized() const { +bool Expr_CreateList::IsInitialized() const { return true; } -::_pbi::CachedSize* Expr_CreateList::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Expr_CreateList::InternalSwap(Expr_CreateList* PROTOBUF_RESTRICT other) { +void Expr_CreateList::InternalSwap(Expr_CreateList* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.elements_.InternalSwap(&other->_impl_.elements_); - _impl_.optional_indices_.InternalSwap(&other->_impl_.optional_indices_); + elements_.InternalSwap(&other->elements_); + optional_indices_.InternalSwap(&other->optional_indices_); } -::google::protobuf::Metadata Expr_CreateList::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Expr_CreateList::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto[4]); } + // =================================================================== class Expr_CreateStruct_Entry::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Expr_CreateStruct_Entry, _impl_._has_bits_); - static constexpr ::int32_t kOneofCaseOffset = - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr_CreateStruct_Entry, _impl_._oneof_case_); static const ::google::api::expr::v1alpha1::Expr& map_key(const Expr_CreateStruct_Entry* msg); static const ::google::api::expr::v1alpha1::Expr& value(const Expr_CreateStruct_Entry* msg); - static void set_has_value(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::google::api::expr::v1alpha1::Expr& Expr_CreateStruct_Entry::_Internal::map_key(const Expr_CreateStruct_Entry* msg) { - return *msg->_impl_.key_kind_.map_key_; +const ::google::api::expr::v1alpha1::Expr& +Expr_CreateStruct_Entry::_Internal::map_key(const Expr_CreateStruct_Entry* msg) { + return *msg->key_kind_.map_key_; } -const ::google::api::expr::v1alpha1::Expr& Expr_CreateStruct_Entry::_Internal::value(const Expr_CreateStruct_Entry* msg) { - return *msg->_impl_.value_; +const ::google::api::expr::v1alpha1::Expr& +Expr_CreateStruct_Entry::_Internal::value(const Expr_CreateStruct_Entry* msg) { + return *msg->value_; } void Expr_CreateStruct_Entry::set_allocated_map_key(::google::api::expr::v1alpha1::Expr* map_key) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_key_kind(); if (map_key) { - ::google::protobuf::Arena* submessage_arena = map_key->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(map_key); if (message_arena != submessage_arena) { - map_key = ::google::protobuf::internal::GetOwnedMessage(message_arena, map_key, submessage_arena); + map_key = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, map_key, submessage_arena); } set_has_map_key(); - _impl_.key_kind_.map_key_ = map_key; + key_kind_.map_key_ = map_key; } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Expr.CreateStruct.Entry.map_key) } -Expr_CreateStruct_Entry::Expr_CreateStruct_Entry(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Expr_CreateStruct_Entry::Expr_CreateStruct_Entry(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.Expr.CreateStruct.Entry) } -inline PROTOBUF_NDEBUG_INLINE Expr_CreateStruct_Entry::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - key_kind_{}, - _oneof_case_{from._oneof_case_[0]} {} - -Expr_CreateStruct_Entry::Expr_CreateStruct_Entry( - ::google::protobuf::Arena* arena, - const Expr_CreateStruct_Entry& from) - : ::google::protobuf::Message(arena) { - Expr_CreateStruct_Entry* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.value_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::api::expr::v1alpha1::Expr>(arena, *from._impl_.value_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, id_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, id_), - offsetof(Impl_, optional_entry_) - - offsetof(Impl_, id_) + - sizeof(Impl_::optional_entry_)); - switch (key_kind_case()) { - case KEY_KIND_NOT_SET: +Expr_CreateStruct_Entry::Expr_CreateStruct_Entry(const Expr_CreateStruct_Entry& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_value()) { + value_ = new ::google::api::expr::v1alpha1::Expr(*from.value_); + } else { + value_ = nullptr; + } + ::memcpy(&id_, &from.id_, + static_cast(reinterpret_cast(&optional_entry_) - + reinterpret_cast(&id_)) + sizeof(optional_entry_)); + clear_has_key_kind(); + switch (from.key_kind_case()) { + case kFieldKey: { + _internal_set_field_key(from._internal_field_key()); break; - case kFieldKey: - new (&_impl_.key_kind_.field_key_) decltype(_impl_.key_kind_.field_key_){arena, from._impl_.key_kind_.field_key_}; - break; - case kMapKey: - _impl_.key_kind_.map_key_ = CreateMaybeMessage<::google::api::expr::v1alpha1::Expr>(arena, *from._impl_.key_kind_.map_key_); - break; + } + case kMapKey: { + _internal_mutable_map_key()->::google::api::expr::v1alpha1::Expr::MergeFrom(from._internal_map_key()); + break; + } + case KEY_KIND_NOT_SET: { + break; + } } - // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.Expr.CreateStruct.Entry) } -inline PROTOBUF_NDEBUG_INLINE Expr_CreateStruct_Entry::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - key_kind_{}, - _oneof_case_{} {} - -inline void Expr_CreateStruct_Entry::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, value_), - 0, - offsetof(Impl_, optional_entry_) - - offsetof(Impl_, value_) + - sizeof(Impl_::optional_entry_)); + +inline void Expr_CreateStruct_Entry::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&value_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&optional_entry_) - + reinterpret_cast(&value_)) + sizeof(optional_entry_)); +clear_has_key_kind(); } + Expr_CreateStruct_Entry::~Expr_CreateStruct_Entry() { // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.Expr.CreateStruct.Entry) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Expr_CreateStruct_Entry::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.value_; + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete value_; if (has_key_kind()) { clear_key_kind(); } - _impl_.~Impl_(); +} + +void Expr_CreateStruct_Entry::SetCachedSize(int size) const { + _cached_size_.Set(size); } void Expr_CreateStruct_Entry::clear_key_kind() { // @@protoc_insertion_point(one_of_clear_start:google.api.expr.v1alpha1.Expr.CreateStruct.Entry) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); switch (key_kind_case()) { case kFieldKey: { - _impl_.key_kind_.field_key_.Destroy(); + key_kind_.field_key_.Destroy(); break; } case kMapKey: { - if (GetArena() == nullptr) { - delete _impl_.key_kind_.map_key_; + if (GetArenaForAllocation() == nullptr) { + delete key_kind_.map_key_; } break; } @@ -2149,236 +1899,237 @@ void Expr_CreateStruct_Entry::clear_key_kind() { break; } } - _impl_._oneof_case_[0] = KEY_KIND_NOT_SET; + _oneof_case_[0] = KEY_KIND_NOT_SET; } -PROTOBUF_NOINLINE void Expr_CreateStruct_Entry::Clear() { +void Expr_CreateStruct_Entry::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.Expr.CreateStruct.Entry) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.value_ != nullptr); - _impl_.value_->Clear(); + if (GetArenaForAllocation() == nullptr && value_ != nullptr) { + delete value_; } - ::memset(&_impl_.id_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.optional_entry_) - - reinterpret_cast(&_impl_.id_)) + sizeof(_impl_.optional_entry_)); + value_ = nullptr; + ::memset(&id_, 0, static_cast( + reinterpret_cast(&optional_entry_) - + reinterpret_cast(&id_)) + sizeof(optional_entry_)); clear_key_kind(); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Expr_CreateStruct_Entry::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Expr_CreateStruct_Entry::_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) { + // int64 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string field_key = 2 [json_name = "fieldKey"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_field_key(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1alpha1.Expr.CreateStruct.Entry.field_key")); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Expr map_key = 3 [json_name = "mapKey"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_map_key(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Expr value = 4 [json_name = "value"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_value(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool optional_entry = 5 [json_name = "optionalEntry"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { + optional_entry_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 5, 2, 66, 2> Expr_CreateStruct_Entry::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Expr_CreateStruct_Entry, _impl_._has_bits_), - 0, // no _extensions_ - 5, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967264, // skipmap - offsetof(decltype(_table_), field_entries), - 5, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Expr_CreateStruct_Entry_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // int64 id = 1 [json_name = "id"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(Expr_CreateStruct_Entry, _impl_.id_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(Expr_CreateStruct_Entry, _impl_.id_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - // .google.api.expr.v1alpha1.Expr value = 4 [json_name = "value"]; - {::_pbi::TcParser::FastMtS1, - {34, 0, 1, PROTOBUF_FIELD_OFFSET(Expr_CreateStruct_Entry, _impl_.value_)}}, - // bool optional_entry = 5 [json_name = "optionalEntry"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {40, 63, 0, PROTOBUF_FIELD_OFFSET(Expr_CreateStruct_Entry, _impl_.optional_entry_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // int64 id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(Expr_CreateStruct_Entry, _impl_.id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - // string field_key = 2 [json_name = "fieldKey"]; - {PROTOBUF_FIELD_OFFSET(Expr_CreateStruct_Entry, _impl_.key_kind_.field_key_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.api.expr.v1alpha1.Expr map_key = 3 [json_name = "mapKey"]; - {PROTOBUF_FIELD_OFFSET(Expr_CreateStruct_Entry, _impl_.key_kind_.map_key_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.api.expr.v1alpha1.Expr value = 4 [json_name = "value"]; - {PROTOBUF_FIELD_OFFSET(Expr_CreateStruct_Entry, _impl_.value_), _Internal::kHasBitsOffset + 0, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // bool optional_entry = 5 [json_name = "optionalEntry"]; - {PROTOBUF_FIELD_OFFSET(Expr_CreateStruct_Entry, _impl_.optional_entry_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::Expr>()}, - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::Expr>()}, - }}, {{ - "\60\0\11\0\0\0\0\0" - "google.api.expr.v1alpha1.Expr.CreateStruct.Entry" - "field_key" - }}, -}; - -::uint8_t* Expr_CreateStruct_Entry::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Expr_CreateStruct_Entry::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.Expr.CreateStruct.Entry) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // int64 id = 1 [json_name = "id"]; if (this->_internal_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<1>( - stream, this->_internal_id(), target); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_id(), target); } - switch (key_kind_case()) { - case kFieldKey: { - const std::string& _s = this->_internal_field_key(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.expr.v1alpha1.Expr.CreateStruct.Entry.field_key"); - target = stream->WriteStringMaybeAliased(2, _s, target); - break; - } - case kMapKey: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::map_key(this), - _Internal::map_key(this).GetCachedSize(), target, stream); - break; - } - default: - break; + // string field_key = 2 [json_name = "fieldKey"]; + if (_internal_has_field_key()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_field_key().data(), static_cast(this->_internal_field_key().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1alpha1.Expr.CreateStruct.Entry.field_key"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_field_key(), target); } - cached_has_bits = _impl_._has_bits_[0]; + + // .google.api.expr.v1alpha1.Expr map_key = 3 [json_name = "mapKey"]; + if (_internal_has_map_key()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::map_key(this), + _Internal::map_key(this).GetCachedSize(), target, stream); + } + // .google.api.expr.v1alpha1.Expr value = 4 [json_name = "value"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, _Internal::value(this), + if (this->_internal_has_value()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::value(this), _Internal::value(this).GetCachedSize(), target, stream); } // bool optional_entry = 5 [json_name = "optionalEntry"]; if (this->_internal_optional_entry() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 5, this->_internal_optional_entry(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(5, this->_internal_optional_entry(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1alpha1.Expr.CreateStruct.Entry) return target; } -::size_t Expr_CreateStruct_Entry::ByteSizeLong() const { +size_t Expr_CreateStruct_Entry::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.Expr.CreateStruct.Entry) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .google.api.expr.v1alpha1.Expr value = 4 [json_name = "value"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.value_); + if (this->_internal_has_value()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *value_); } // int64 id = 1 [json_name = "id"]; if (this->_internal_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( - this->_internal_id()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_id()); } // bool optional_entry = 5 [json_name = "optionalEntry"]; if (this->_internal_optional_entry() != 0) { - total_size += 2; + total_size += 1 + 1; } switch (key_kind_case()) { // string field_key = 2 [json_name = "fieldKey"]; case kFieldKey: { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_field_key()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_field_key()); break; } // .google.api.expr.v1alpha1.Expr map_key = 3 [json_name = "mapKey"]; case kMapKey: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.key_kind_.map_key_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *key_kind_.map_key_); break; } case KEY_KIND_NOT_SET: { break; } } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Expr_CreateStruct_Entry::_class_data_ = { - Expr_CreateStruct_Entry::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Expr_CreateStruct_Entry::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Expr_CreateStruct_Entry::MergeImpl }; -const ::google::protobuf::Message::ClassData* Expr_CreateStruct_Entry::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Expr_CreateStruct_Entry::GetClassData() const { return &_class_data_; } + +void Expr_CreateStruct_Entry::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Expr_CreateStruct_Entry::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Expr.CreateStruct.Entry) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Expr_CreateStruct_Entry::MergeFrom(const Expr_CreateStruct_Entry& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Expr.CreateStruct.Entry) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_value()->::google::api::expr::v1alpha1::Expr::MergeFrom( - from._internal_value()); + if (from._internal_has_value()) { + _internal_mutable_value()->::google::api::expr::v1alpha1::Expr::MergeFrom(from._internal_value()); } if (from._internal_id() != 0) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } if (from._internal_optional_entry() != 0) { - _this->_internal_set_optional_entry(from._internal_optional_entry()); + _internal_set_optional_entry(from._internal_optional_entry()); } switch (from.key_kind_case()) { case kFieldKey: { - _this->_internal_set_field_key(from._internal_field_key()); + _internal_set_field_key(from._internal_field_key()); break; } case kMapKey: { - _this->_internal_mutable_map_key()->::google::api::expr::v1alpha1::Expr::MergeFrom( - from._internal_map_key()); + _internal_mutable_map_key()->::google::api::expr::v1alpha1::Expr::MergeFrom(from._internal_map_key()); break; } case KEY_KIND_NOT_SET: { break; } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Expr_CreateStruct_Entry::CopyFrom(const Expr_CreateStruct_Entry& from) { @@ -2388,218 +2139,226 @@ void Expr_CreateStruct_Entry::CopyFrom(const Expr_CreateStruct_Entry& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Expr_CreateStruct_Entry::IsInitialized() const { +bool Expr_CreateStruct_Entry::IsInitialized() const { return true; } -::_pbi::CachedSize* Expr_CreateStruct_Entry::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Expr_CreateStruct_Entry::InternalSwap(Expr_CreateStruct_Entry* PROTOBUF_RESTRICT other) { +void Expr_CreateStruct_Entry::InternalSwap(Expr_CreateStruct_Entry* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(Expr_CreateStruct_Entry, _impl_.optional_entry_) - + sizeof(Expr_CreateStruct_Entry::_impl_.optional_entry_) - - PROTOBUF_FIELD_OFFSET(Expr_CreateStruct_Entry, _impl_.value_)>( - reinterpret_cast(&_impl_.value_), - reinterpret_cast(&other->_impl_.value_)); - swap(_impl_.key_kind_, other->_impl_.key_kind_); - swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); -} - -::google::protobuf::Metadata Expr_CreateStruct_Entry::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Expr_CreateStruct_Entry, optional_entry_) + + sizeof(Expr_CreateStruct_Entry::optional_entry_) + - PROTOBUF_FIELD_OFFSET(Expr_CreateStruct_Entry, value_)>( + reinterpret_cast(&value_), + reinterpret_cast(&other->value_)); + swap(key_kind_, other->key_kind_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Expr_CreateStruct_Entry::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto[5]); } + // =================================================================== class Expr_CreateStruct::_Internal { public: }; -Expr_CreateStruct::Expr_CreateStruct(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Expr_CreateStruct::Expr_CreateStruct(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + entries_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.Expr.CreateStruct) } -inline PROTOBUF_NDEBUG_INLINE Expr_CreateStruct::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : entries_{visibility, arena, from.entries_}, - message_name_(arena, from.message_name_), - _cached_size_{0} {} - -Expr_CreateStruct::Expr_CreateStruct( - ::google::protobuf::Arena* arena, - const Expr_CreateStruct& from) - : ::google::protobuf::Message(arena) { - Expr_CreateStruct* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +Expr_CreateStruct::Expr_CreateStruct(const Expr_CreateStruct& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + entries_(from.entries_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + message_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + message_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_message_name().empty()) { + message_name_.Set(from._internal_message_name(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.Expr.CreateStruct) } -inline PROTOBUF_NDEBUG_INLINE Expr_CreateStruct::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : entries_{visibility, arena}, - message_name_(arena), - _cached_size_{0} {} -inline void Expr_CreateStruct::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void Expr_CreateStruct::SharedCtor() { +message_name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + message_name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + Expr_CreateStruct::~Expr_CreateStruct() { // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.Expr.CreateStruct) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Expr_CreateStruct::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.message_name_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + message_name_.Destroy(); +} + +void Expr_CreateStruct::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void Expr_CreateStruct::Clear() { +void Expr_CreateStruct::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.Expr.CreateStruct) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.entries_.Clear(); - _impl_.message_name_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Expr_CreateStruct::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + entries_.Clear(); + message_name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Expr_CreateStruct::_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 message_name = 1 [json_name = "messageName"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_message_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1alpha1.Expr.CreateStruct.message_name")); + } else + goto handle_unusual; + continue; + // repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_entries(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 63, 2> Expr_CreateStruct::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Expr_CreateStruct_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"]; - {::_pbi::TcParser::FastMtR1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(Expr_CreateStruct, _impl_.entries_)}}, - // string message_name = 1 [json_name = "messageName"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Expr_CreateStruct, _impl_.message_name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string message_name = 1 [json_name = "messageName"]; - {PROTOBUF_FIELD_OFFSET(Expr_CreateStruct, _impl_.message_name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"]; - {PROTOBUF_FIELD_OFFSET(Expr_CreateStruct, _impl_.entries_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::Expr_CreateStruct_Entry>()}, - }}, {{ - "\52\14\0\0\0\0\0\0" - "google.api.expr.v1alpha1.Expr.CreateStruct" - "message_name" - }}, -}; - -::uint8_t* Expr_CreateStruct::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Expr_CreateStruct::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.Expr.CreateStruct) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string message_name = 1 [json_name = "messageName"]; if (!this->_internal_message_name().empty()) { - const std::string& _s = this->_internal_message_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.expr.v1alpha1.Expr.CreateStruct.message_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_message_name().data(), static_cast(this->_internal_message_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1alpha1.Expr.CreateStruct.message_name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_message_name(), target); } // repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"]; for (unsigned i = 0, n = static_cast(this->_internal_entries_size()); i < n; i++) { - const auto& repfield = this->_internal_entries().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_entries(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1alpha1.Expr.CreateStruct) return target; } -::size_t Expr_CreateStruct::ByteSizeLong() const { +size_t Expr_CreateStruct::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.Expr.CreateStruct) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"]; total_size += 1UL * this->_internal_entries_size(); - for (const auto& msg : this->_internal_entries()) { + for (const auto& msg : this->entries_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // string message_name = 1 [json_name = "messageName"]; if (!this->_internal_message_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_message_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_message_name()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Expr_CreateStruct::_class_data_ = { - Expr_CreateStruct::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Expr_CreateStruct::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Expr_CreateStruct::MergeImpl }; -const ::google::protobuf::Message::ClassData* Expr_CreateStruct::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Expr_CreateStruct::GetClassData() const { return &_class_data_; } + +void Expr_CreateStruct::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Expr_CreateStruct::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Expr.CreateStruct) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Expr_CreateStruct::MergeFrom(const Expr_CreateStruct& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Expr.CreateStruct) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_entries()->MergeFrom( - from._internal_entries()); + entries_.MergeFrom(from.entries_); if (!from._internal_message_name().empty()) { - _this->_internal_set_message_name(from._internal_message_name()); + _internal_set_message_name(from._internal_message_name()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Expr_CreateStruct::CopyFrom(const Expr_CreateStruct& from) { @@ -2609,460 +2368,485 @@ void Expr_CreateStruct::CopyFrom(const Expr_CreateStruct& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Expr_CreateStruct::IsInitialized() const { +bool Expr_CreateStruct::IsInitialized() const { return true; } -::_pbi::CachedSize* Expr_CreateStruct::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Expr_CreateStruct::InternalSwap(Expr_CreateStruct* PROTOBUF_RESTRICT other) { +void Expr_CreateStruct::InternalSwap(Expr_CreateStruct* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.entries_.InternalSwap(&other->_impl_.entries_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.message_name_, &other->_impl_.message_name_, arena); + entries_.InternalSwap(&other->entries_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &message_name_, lhs_arena, + &other->message_name_, rhs_arena + ); } -::google::protobuf::Metadata Expr_CreateStruct::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Expr_CreateStruct::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto[6]); } + // =================================================================== class Expr_Comprehension::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Expr_Comprehension, _impl_._has_bits_); static const ::google::api::expr::v1alpha1::Expr& iter_range(const Expr_Comprehension* msg); - static void set_has_iter_range(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } static const ::google::api::expr::v1alpha1::Expr& accu_init(const Expr_Comprehension* msg); - static void set_has_accu_init(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } static const ::google::api::expr::v1alpha1::Expr& loop_condition(const Expr_Comprehension* msg); - static void set_has_loop_condition(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } static const ::google::api::expr::v1alpha1::Expr& loop_step(const Expr_Comprehension* msg); - static void set_has_loop_step(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } static const ::google::api::expr::v1alpha1::Expr& result(const Expr_Comprehension* msg); - static void set_has_result(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } }; -const ::google::api::expr::v1alpha1::Expr& Expr_Comprehension::_Internal::iter_range(const Expr_Comprehension* msg) { - return *msg->_impl_.iter_range_; +const ::google::api::expr::v1alpha1::Expr& +Expr_Comprehension::_Internal::iter_range(const Expr_Comprehension* msg) { + return *msg->iter_range_; } -const ::google::api::expr::v1alpha1::Expr& Expr_Comprehension::_Internal::accu_init(const Expr_Comprehension* msg) { - return *msg->_impl_.accu_init_; +const ::google::api::expr::v1alpha1::Expr& +Expr_Comprehension::_Internal::accu_init(const Expr_Comprehension* msg) { + return *msg->accu_init_; } -const ::google::api::expr::v1alpha1::Expr& Expr_Comprehension::_Internal::loop_condition(const Expr_Comprehension* msg) { - return *msg->_impl_.loop_condition_; +const ::google::api::expr::v1alpha1::Expr& +Expr_Comprehension::_Internal::loop_condition(const Expr_Comprehension* msg) { + return *msg->loop_condition_; } -const ::google::api::expr::v1alpha1::Expr& Expr_Comprehension::_Internal::loop_step(const Expr_Comprehension* msg) { - return *msg->_impl_.loop_step_; +const ::google::api::expr::v1alpha1::Expr& +Expr_Comprehension::_Internal::loop_step(const Expr_Comprehension* msg) { + return *msg->loop_step_; } -const ::google::api::expr::v1alpha1::Expr& Expr_Comprehension::_Internal::result(const Expr_Comprehension* msg) { - return *msg->_impl_.result_; +const ::google::api::expr::v1alpha1::Expr& +Expr_Comprehension::_Internal::result(const Expr_Comprehension* msg) { + return *msg->result_; } -Expr_Comprehension::Expr_Comprehension(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Expr_Comprehension::Expr_Comprehension(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.Expr.Comprehension) } -inline PROTOBUF_NDEBUG_INLINE Expr_Comprehension::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - iter_var_(arena, from.iter_var_), - accu_var_(arena, from.accu_var_), - iter_var2_(arena, from.iter_var2_) {} - -Expr_Comprehension::Expr_Comprehension( - ::google::protobuf::Arena* arena, - const Expr_Comprehension& from) - : ::google::protobuf::Message(arena) { - Expr_Comprehension* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.iter_range_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::api::expr::v1alpha1::Expr>(arena, *from._impl_.iter_range_) - : nullptr; - _impl_.accu_init_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::google::api::expr::v1alpha1::Expr>(arena, *from._impl_.accu_init_) - : nullptr; - _impl_.loop_condition_ = (cached_has_bits & 0x00000004u) - ? CreateMaybeMessage<::google::api::expr::v1alpha1::Expr>(arena, *from._impl_.loop_condition_) - : nullptr; - _impl_.loop_step_ = (cached_has_bits & 0x00000008u) - ? CreateMaybeMessage<::google::api::expr::v1alpha1::Expr>(arena, *from._impl_.loop_step_) - : nullptr; - _impl_.result_ = (cached_has_bits & 0x00000010u) - ? CreateMaybeMessage<::google::api::expr::v1alpha1::Expr>(arena, *from._impl_.result_) - : nullptr; - +Expr_Comprehension::Expr_Comprehension(const Expr_Comprehension& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + iter_var_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + iter_var_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_iter_var().empty()) { + iter_var_.Set(from._internal_iter_var(), + GetArenaForAllocation()); + } + accu_var_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + accu_var_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_accu_var().empty()) { + accu_var_.Set(from._internal_accu_var(), + GetArenaForAllocation()); + } + iter_var2_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + iter_var2_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_iter_var2().empty()) { + iter_var2_.Set(from._internal_iter_var2(), + GetArenaForAllocation()); + } + if (from._internal_has_iter_range()) { + iter_range_ = new ::google::api::expr::v1alpha1::Expr(*from.iter_range_); + } else { + iter_range_ = nullptr; + } + if (from._internal_has_accu_init()) { + accu_init_ = new ::google::api::expr::v1alpha1::Expr(*from.accu_init_); + } else { + accu_init_ = nullptr; + } + if (from._internal_has_loop_condition()) { + loop_condition_ = new ::google::api::expr::v1alpha1::Expr(*from.loop_condition_); + } else { + loop_condition_ = nullptr; + } + if (from._internal_has_loop_step()) { + loop_step_ = new ::google::api::expr::v1alpha1::Expr(*from.loop_step_); + } else { + loop_step_ = nullptr; + } + if (from._internal_has_result()) { + result_ = new ::google::api::expr::v1alpha1::Expr(*from.result_); + } else { + result_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.Expr.Comprehension) } -inline PROTOBUF_NDEBUG_INLINE Expr_Comprehension::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - iter_var_(arena), - accu_var_(arena), - iter_var2_(arena) {} - -inline void Expr_Comprehension::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, iter_range_), - 0, - offsetof(Impl_, result_) - - offsetof(Impl_, iter_range_) + - sizeof(Impl_::result_)); + +inline void Expr_Comprehension::SharedCtor() { +iter_var_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + iter_var_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +accu_var_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + accu_var_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +iter_var2_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + iter_var2_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&iter_range_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&result_) - + reinterpret_cast(&iter_range_)) + sizeof(result_)); } + Expr_Comprehension::~Expr_Comprehension() { // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.Expr.Comprehension) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Expr_Comprehension::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.iter_var_.Destroy(); - _impl_.accu_var_.Destroy(); - _impl_.iter_var2_.Destroy(); - delete _impl_.iter_range_; - delete _impl_.accu_init_; - delete _impl_.loop_condition_; - delete _impl_.loop_step_; - delete _impl_.result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void Expr_Comprehension::Clear() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + iter_var_.Destroy(); + accu_var_.Destroy(); + iter_var2_.Destroy(); + if (this != internal_default_instance()) delete iter_range_; + if (this != internal_default_instance()) delete accu_init_; + if (this != internal_default_instance()) delete loop_condition_; + if (this != internal_default_instance()) delete loop_step_; + if (this != internal_default_instance()) delete result_; +} + +void Expr_Comprehension::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void Expr_Comprehension::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.Expr.Comprehension) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.iter_var_.ClearToEmpty(); - _impl_.accu_var_.ClearToEmpty(); - _impl_.iter_var2_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.iter_range_ != nullptr); - _impl_.iter_range_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.accu_init_ != nullptr); - _impl_.accu_init_->Clear(); + iter_var_.ClearToEmpty(); + accu_var_.ClearToEmpty(); + iter_var2_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && iter_range_ != nullptr) { + delete iter_range_; + } + iter_range_ = nullptr; + if (GetArenaForAllocation() == nullptr && accu_init_ != nullptr) { + delete accu_init_; + } + accu_init_ = nullptr; + if (GetArenaForAllocation() == nullptr && loop_condition_ != nullptr) { + delete loop_condition_; + } + loop_condition_ = nullptr; + if (GetArenaForAllocation() == nullptr && loop_step_ != nullptr) { + delete loop_step_; + } + loop_step_ = nullptr; + if (GetArenaForAllocation() == nullptr && result_ != nullptr) { + delete result_; + } + result_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Expr_Comprehension::_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 iter_var = 1 [json_name = "iterVar"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_iter_var(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1alpha1.Expr.Comprehension.iter_var")); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Expr iter_range = 2 [json_name = "iterRange"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_iter_range(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string accu_var = 3 [json_name = "accuVar"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_accu_var(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1alpha1.Expr.Comprehension.accu_var")); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Expr accu_init = 4 [json_name = "accuInit"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_accu_init(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Expr loop_condition = 5 [json_name = "loopCondition"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_loop_condition(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Expr loop_step = 6 [json_name = "loopStep"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr = ctx->ParseMessage(_internal_mutable_loop_step(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Expr result = 7 [json_name = "result"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + ptr = ctx->ParseMessage(_internal_mutable_result(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string iter_var2 = 8 [json_name = "iterVar2"]; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { + auto str = _internal_mutable_iter_var2(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1alpha1.Expr.Comprehension.iter_var2")); + } 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; } - if (cached_has_bits & 0x00000004u) { - ABSL_DCHECK(_impl_.loop_condition_ != nullptr); - _impl_.loop_condition_->Clear(); - } - if (cached_has_bits & 0x00000008u) { - ABSL_DCHECK(_impl_.loop_step_ != nullptr); - _impl_.loop_step_->Clear(); - } - if (cached_has_bits & 0x00000010u) { - ABSL_DCHECK(_impl_.result_ != nullptr); - _impl_.result_->Clear(); - } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Expr_Comprehension::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 8, 5, 85, 2> Expr_Comprehension::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Expr_Comprehension, _impl_._has_bits_), - 0, // no _extensions_ - 8, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967040, // skipmap - offsetof(decltype(_table_), field_entries), - 8, // num_field_entries - 5, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Expr_Comprehension_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string iter_var2 = 8 [json_name = "iterVar2"]; - {::_pbi::TcParser::FastUS1, - {66, 63, 0, PROTOBUF_FIELD_OFFSET(Expr_Comprehension, _impl_.iter_var2_)}}, - // string iter_var = 1 [json_name = "iterVar"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Expr_Comprehension, _impl_.iter_var_)}}, - // .google.api.expr.v1alpha1.Expr iter_range = 2 [json_name = "iterRange"]; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(Expr_Comprehension, _impl_.iter_range_)}}, - // string accu_var = 3 [json_name = "accuVar"]; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(Expr_Comprehension, _impl_.accu_var_)}}, - // .google.api.expr.v1alpha1.Expr accu_init = 4 [json_name = "accuInit"]; - {::_pbi::TcParser::FastMtS1, - {34, 1, 1, PROTOBUF_FIELD_OFFSET(Expr_Comprehension, _impl_.accu_init_)}}, - // .google.api.expr.v1alpha1.Expr loop_condition = 5 [json_name = "loopCondition"]; - {::_pbi::TcParser::FastMtS1, - {42, 2, 2, PROTOBUF_FIELD_OFFSET(Expr_Comprehension, _impl_.loop_condition_)}}, - // .google.api.expr.v1alpha1.Expr loop_step = 6 [json_name = "loopStep"]; - {::_pbi::TcParser::FastMtS1, - {50, 3, 3, PROTOBUF_FIELD_OFFSET(Expr_Comprehension, _impl_.loop_step_)}}, - // .google.api.expr.v1alpha1.Expr result = 7 [json_name = "result"]; - {::_pbi::TcParser::FastMtS1, - {58, 4, 4, PROTOBUF_FIELD_OFFSET(Expr_Comprehension, _impl_.result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string iter_var = 1 [json_name = "iterVar"]; - {PROTOBUF_FIELD_OFFSET(Expr_Comprehension, _impl_.iter_var_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.api.expr.v1alpha1.Expr iter_range = 2 [json_name = "iterRange"]; - {PROTOBUF_FIELD_OFFSET(Expr_Comprehension, _impl_.iter_range_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // string accu_var = 3 [json_name = "accuVar"]; - {PROTOBUF_FIELD_OFFSET(Expr_Comprehension, _impl_.accu_var_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.api.expr.v1alpha1.Expr accu_init = 4 [json_name = "accuInit"]; - {PROTOBUF_FIELD_OFFSET(Expr_Comprehension, _impl_.accu_init_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.api.expr.v1alpha1.Expr loop_condition = 5 [json_name = "loopCondition"]; - {PROTOBUF_FIELD_OFFSET(Expr_Comprehension, _impl_.loop_condition_), _Internal::kHasBitsOffset + 2, 2, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.api.expr.v1alpha1.Expr loop_step = 6 [json_name = "loopStep"]; - {PROTOBUF_FIELD_OFFSET(Expr_Comprehension, _impl_.loop_step_), _Internal::kHasBitsOffset + 3, 3, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.api.expr.v1alpha1.Expr result = 7 [json_name = "result"]; - {PROTOBUF_FIELD_OFFSET(Expr_Comprehension, _impl_.result_), _Internal::kHasBitsOffset + 4, 4, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // string iter_var2 = 8 [json_name = "iterVar2"]; - {PROTOBUF_FIELD_OFFSET(Expr_Comprehension, _impl_.iter_var2_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::Expr>()}, - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::Expr>()}, - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::Expr>()}, - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::Expr>()}, - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::Expr>()}, - }}, {{ - "\53\10\0\10\0\0\0\0\11\0\0\0\0\0\0\0" - "google.api.expr.v1alpha1.Expr.Comprehension" - "iter_var" - "accu_var" - "iter_var2" - }}, -}; - -::uint8_t* Expr_Comprehension::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Expr_Comprehension::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.Expr.Comprehension) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string iter_var = 1 [json_name = "iterVar"]; if (!this->_internal_iter_var().empty()) { - const std::string& _s = this->_internal_iter_var(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.expr.v1alpha1.Expr.Comprehension.iter_var"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_iter_var().data(), static_cast(this->_internal_iter_var().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1alpha1.Expr.Comprehension.iter_var"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_iter_var(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.api.expr.v1alpha1.Expr iter_range = 2 [json_name = "iterRange"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::iter_range(this), + if (this->_internal_has_iter_range()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::iter_range(this), _Internal::iter_range(this).GetCachedSize(), target, stream); } // string accu_var = 3 [json_name = "accuVar"]; if (!this->_internal_accu_var().empty()) { - const std::string& _s = this->_internal_accu_var(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.expr.v1alpha1.Expr.Comprehension.accu_var"); - target = stream->WriteStringMaybeAliased(3, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_accu_var().data(), static_cast(this->_internal_accu_var().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1alpha1.Expr.Comprehension.accu_var"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_accu_var(), target); } // .google.api.expr.v1alpha1.Expr accu_init = 4 [json_name = "accuInit"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, _Internal::accu_init(this), + if (this->_internal_has_accu_init()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::accu_init(this), _Internal::accu_init(this).GetCachedSize(), target, stream); } // .google.api.expr.v1alpha1.Expr loop_condition = 5 [json_name = "loopCondition"]; - if (cached_has_bits & 0x00000004u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 5, _Internal::loop_condition(this), + if (this->_internal_has_loop_condition()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(5, _Internal::loop_condition(this), _Internal::loop_condition(this).GetCachedSize(), target, stream); } // .google.api.expr.v1alpha1.Expr loop_step = 6 [json_name = "loopStep"]; - if (cached_has_bits & 0x00000008u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 6, _Internal::loop_step(this), + if (this->_internal_has_loop_step()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(6, _Internal::loop_step(this), _Internal::loop_step(this).GetCachedSize(), target, stream); } // .google.api.expr.v1alpha1.Expr result = 7 [json_name = "result"]; - if (cached_has_bits & 0x00000010u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 7, _Internal::result(this), + if (this->_internal_has_result()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(7, _Internal::result(this), _Internal::result(this).GetCachedSize(), target, stream); } // string iter_var2 = 8 [json_name = "iterVar2"]; if (!this->_internal_iter_var2().empty()) { - const std::string& _s = this->_internal_iter_var2(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.expr.v1alpha1.Expr.Comprehension.iter_var2"); - target = stream->WriteStringMaybeAliased(8, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_iter_var2().data(), static_cast(this->_internal_iter_var2().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1alpha1.Expr.Comprehension.iter_var2"); + target = stream->WriteStringMaybeAliased( + 8, this->_internal_iter_var2(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1alpha1.Expr.Comprehension) return target; } -::size_t Expr_Comprehension::ByteSizeLong() const { +size_t Expr_Comprehension::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.Expr.Comprehension) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string iter_var = 1 [json_name = "iterVar"]; if (!this->_internal_iter_var().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_iter_var()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_iter_var()); } // string accu_var = 3 [json_name = "accuVar"]; if (!this->_internal_accu_var().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_accu_var()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_accu_var()); } // string iter_var2 = 8 [json_name = "iterVar2"]; if (!this->_internal_iter_var2().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_iter_var2()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_iter_var2()); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { - // .google.api.expr.v1alpha1.Expr iter_range = 2 [json_name = "iterRange"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.iter_range_); - } - - // .google.api.expr.v1alpha1.Expr accu_init = 4 [json_name = "accuInit"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.accu_init_); - } + // .google.api.expr.v1alpha1.Expr iter_range = 2 [json_name = "iterRange"]; + if (this->_internal_has_iter_range()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *iter_range_); + } - // .google.api.expr.v1alpha1.Expr loop_condition = 5 [json_name = "loopCondition"]; - if (cached_has_bits & 0x00000004u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.loop_condition_); - } + // .google.api.expr.v1alpha1.Expr accu_init = 4 [json_name = "accuInit"]; + if (this->_internal_has_accu_init()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *accu_init_); + } - // .google.api.expr.v1alpha1.Expr loop_step = 6 [json_name = "loopStep"]; - if (cached_has_bits & 0x00000008u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.loop_step_); - } + // .google.api.expr.v1alpha1.Expr loop_condition = 5 [json_name = "loopCondition"]; + if (this->_internal_has_loop_condition()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *loop_condition_); + } - // .google.api.expr.v1alpha1.Expr result = 7 [json_name = "result"]; - if (cached_has_bits & 0x00000010u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.result_); - } + // .google.api.expr.v1alpha1.Expr loop_step = 6 [json_name = "loopStep"]; + if (this->_internal_has_loop_step()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *loop_step_); + } + // .google.api.expr.v1alpha1.Expr result = 7 [json_name = "result"]; + if (this->_internal_has_result()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *result_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Expr_Comprehension::_class_data_ = { - Expr_Comprehension::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Expr_Comprehension::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Expr_Comprehension::MergeImpl }; -const ::google::protobuf::Message::ClassData* Expr_Comprehension::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Expr_Comprehension::GetClassData() const { return &_class_data_; } + +void Expr_Comprehension::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Expr_Comprehension::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Expr.Comprehension) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Expr_Comprehension::MergeFrom(const Expr_Comprehension& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Expr.Comprehension) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_iter_var().empty()) { - _this->_internal_set_iter_var(from._internal_iter_var()); + _internal_set_iter_var(from._internal_iter_var()); } if (!from._internal_accu_var().empty()) { - _this->_internal_set_accu_var(from._internal_accu_var()); + _internal_set_accu_var(from._internal_accu_var()); } if (!from._internal_iter_var2().empty()) { - _this->_internal_set_iter_var2(from._internal_iter_var2()); + _internal_set_iter_var2(from._internal_iter_var2()); } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_iter_range()->::google::api::expr::v1alpha1::Expr::MergeFrom( - from._internal_iter_range()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_accu_init()->::google::api::expr::v1alpha1::Expr::MergeFrom( - from._internal_accu_init()); - } - if (cached_has_bits & 0x00000004u) { - _this->_internal_mutable_loop_condition()->::google::api::expr::v1alpha1::Expr::MergeFrom( - from._internal_loop_condition()); - } - if (cached_has_bits & 0x00000008u) { - _this->_internal_mutable_loop_step()->::google::api::expr::v1alpha1::Expr::MergeFrom( - from._internal_loop_step()); - } - if (cached_has_bits & 0x00000010u) { - _this->_internal_mutable_result()->::google::api::expr::v1alpha1::Expr::MergeFrom( - from._internal_result()); - } + if (from._internal_has_iter_range()) { + _internal_mutable_iter_range()->::google::api::expr::v1alpha1::Expr::MergeFrom(from._internal_iter_range()); + } + if (from._internal_has_accu_init()) { + _internal_mutable_accu_init()->::google::api::expr::v1alpha1::Expr::MergeFrom(from._internal_accu_init()); + } + if (from._internal_has_loop_condition()) { + _internal_mutable_loop_condition()->::google::api::expr::v1alpha1::Expr::MergeFrom(from._internal_loop_condition()); + } + if (from._internal_has_loop_step()) { + _internal_mutable_loop_step()->::google::api::expr::v1alpha1::Expr::MergeFrom(from._internal_loop_step()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_result()) { + _internal_mutable_result()->::google::api::expr::v1alpha1::Expr::MergeFrom(from._internal_result()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Expr_Comprehension::CopyFrom(const Expr_Comprehension& from) { @@ -3072,41 +2856,45 @@ void Expr_Comprehension::CopyFrom(const Expr_Comprehension& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Expr_Comprehension::IsInitialized() const { +bool Expr_Comprehension::IsInitialized() const { return true; } -::_pbi::CachedSize* Expr_Comprehension::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Expr_Comprehension::InternalSwap(Expr_Comprehension* PROTOBUF_RESTRICT other) { +void Expr_Comprehension::InternalSwap(Expr_Comprehension* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.iter_var_, &other->_impl_.iter_var_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.accu_var_, &other->_impl_.accu_var_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.iter_var2_, &other->_impl_.iter_var2_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(Expr_Comprehension, _impl_.result_) - + sizeof(Expr_Comprehension::_impl_.result_) - - PROTOBUF_FIELD_OFFSET(Expr_Comprehension, _impl_.iter_range_)>( - reinterpret_cast(&_impl_.iter_range_), - reinterpret_cast(&other->_impl_.iter_range_)); -} - -::google::protobuf::Metadata Expr_Comprehension::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &iter_var_, lhs_arena, + &other->iter_var_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &accu_var_, lhs_arena, + &other->accu_var_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &iter_var2_, lhs_arena, + &other->iter_var2_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Expr_Comprehension, result_) + + sizeof(Expr_Comprehension::result_) + - PROTOBUF_FIELD_OFFSET(Expr_Comprehension, iter_range_)>( + reinterpret_cast(&iter_range_), + reinterpret_cast(&other->iter_range_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Expr_Comprehension::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto[7]); } + // =================================================================== class Expr::_Internal { public: - static constexpr ::int32_t kOneofCaseOffset = - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Expr, _impl_._oneof_case_); static const ::google::api::expr::v1alpha1::Constant& const_expr(const Expr* msg); static const ::google::api::expr::v1alpha1::Expr_Ident& ident_expr(const Expr* msg); static const ::google::api::expr::v1alpha1::Expr_Select& select_expr(const Expr* msg); @@ -3116,235 +2904,253 @@ class Expr::_Internal { static const ::google::api::expr::v1alpha1::Expr_Comprehension& comprehension_expr(const Expr* msg); }; -const ::google::api::expr::v1alpha1::Constant& Expr::_Internal::const_expr(const Expr* msg) { - return *msg->_impl_.expr_kind_.const_expr_; +const ::google::api::expr::v1alpha1::Constant& +Expr::_Internal::const_expr(const Expr* msg) { + return *msg->expr_kind_.const_expr_; } -const ::google::api::expr::v1alpha1::Expr_Ident& Expr::_Internal::ident_expr(const Expr* msg) { - return *msg->_impl_.expr_kind_.ident_expr_; +const ::google::api::expr::v1alpha1::Expr_Ident& +Expr::_Internal::ident_expr(const Expr* msg) { + return *msg->expr_kind_.ident_expr_; } -const ::google::api::expr::v1alpha1::Expr_Select& Expr::_Internal::select_expr(const Expr* msg) { - return *msg->_impl_.expr_kind_.select_expr_; +const ::google::api::expr::v1alpha1::Expr_Select& +Expr::_Internal::select_expr(const Expr* msg) { + return *msg->expr_kind_.select_expr_; } -const ::google::api::expr::v1alpha1::Expr_Call& Expr::_Internal::call_expr(const Expr* msg) { - return *msg->_impl_.expr_kind_.call_expr_; +const ::google::api::expr::v1alpha1::Expr_Call& +Expr::_Internal::call_expr(const Expr* msg) { + return *msg->expr_kind_.call_expr_; } -const ::google::api::expr::v1alpha1::Expr_CreateList& Expr::_Internal::list_expr(const Expr* msg) { - return *msg->_impl_.expr_kind_.list_expr_; +const ::google::api::expr::v1alpha1::Expr_CreateList& +Expr::_Internal::list_expr(const Expr* msg) { + return *msg->expr_kind_.list_expr_; } -const ::google::api::expr::v1alpha1::Expr_CreateStruct& Expr::_Internal::struct_expr(const Expr* msg) { - return *msg->_impl_.expr_kind_.struct_expr_; +const ::google::api::expr::v1alpha1::Expr_CreateStruct& +Expr::_Internal::struct_expr(const Expr* msg) { + return *msg->expr_kind_.struct_expr_; } -const ::google::api::expr::v1alpha1::Expr_Comprehension& Expr::_Internal::comprehension_expr(const Expr* msg) { - return *msg->_impl_.expr_kind_.comprehension_expr_; +const ::google::api::expr::v1alpha1::Expr_Comprehension& +Expr::_Internal::comprehension_expr(const Expr* msg) { + return *msg->expr_kind_.comprehension_expr_; } void Expr::set_allocated_const_expr(::google::api::expr::v1alpha1::Constant* const_expr) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_expr_kind(); if (const_expr) { - ::google::protobuf::Arena* submessage_arena = const_expr->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(const_expr); if (message_arena != submessage_arena) { - const_expr = ::google::protobuf::internal::GetOwnedMessage(message_arena, const_expr, submessage_arena); + const_expr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, const_expr, submessage_arena); } set_has_const_expr(); - _impl_.expr_kind_.const_expr_ = const_expr; + expr_kind_.const_expr_ = const_expr; } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Expr.const_expr) } void Expr::set_allocated_ident_expr(::google::api::expr::v1alpha1::Expr_Ident* ident_expr) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_expr_kind(); if (ident_expr) { - ::google::protobuf::Arena* submessage_arena = ident_expr->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(ident_expr); if (message_arena != submessage_arena) { - ident_expr = ::google::protobuf::internal::GetOwnedMessage(message_arena, ident_expr, submessage_arena); + ident_expr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, ident_expr, submessage_arena); } set_has_ident_expr(); - _impl_.expr_kind_.ident_expr_ = ident_expr; + expr_kind_.ident_expr_ = ident_expr; } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Expr.ident_expr) } void Expr::set_allocated_select_expr(::google::api::expr::v1alpha1::Expr_Select* select_expr) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_expr_kind(); if (select_expr) { - ::google::protobuf::Arena* submessage_arena = select_expr->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(select_expr); if (message_arena != submessage_arena) { - select_expr = ::google::protobuf::internal::GetOwnedMessage(message_arena, select_expr, submessage_arena); + select_expr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, select_expr, submessage_arena); } set_has_select_expr(); - _impl_.expr_kind_.select_expr_ = select_expr; + expr_kind_.select_expr_ = select_expr; } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Expr.select_expr) } void Expr::set_allocated_call_expr(::google::api::expr::v1alpha1::Expr_Call* call_expr) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_expr_kind(); if (call_expr) { - ::google::protobuf::Arena* submessage_arena = call_expr->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(call_expr); if (message_arena != submessage_arena) { - call_expr = ::google::protobuf::internal::GetOwnedMessage(message_arena, call_expr, submessage_arena); + call_expr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, call_expr, submessage_arena); } set_has_call_expr(); - _impl_.expr_kind_.call_expr_ = call_expr; + expr_kind_.call_expr_ = call_expr; } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Expr.call_expr) } void Expr::set_allocated_list_expr(::google::api::expr::v1alpha1::Expr_CreateList* list_expr) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_expr_kind(); if (list_expr) { - ::google::protobuf::Arena* submessage_arena = list_expr->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(list_expr); if (message_arena != submessage_arena) { - list_expr = ::google::protobuf::internal::GetOwnedMessage(message_arena, list_expr, submessage_arena); + list_expr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, list_expr, submessage_arena); } set_has_list_expr(); - _impl_.expr_kind_.list_expr_ = list_expr; + expr_kind_.list_expr_ = list_expr; } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Expr.list_expr) } void Expr::set_allocated_struct_expr(::google::api::expr::v1alpha1::Expr_CreateStruct* struct_expr) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_expr_kind(); if (struct_expr) { - ::google::protobuf::Arena* submessage_arena = struct_expr->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(struct_expr); if (message_arena != submessage_arena) { - struct_expr = ::google::protobuf::internal::GetOwnedMessage(message_arena, struct_expr, submessage_arena); + struct_expr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, struct_expr, submessage_arena); } set_has_struct_expr(); - _impl_.expr_kind_.struct_expr_ = struct_expr; + expr_kind_.struct_expr_ = struct_expr; } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Expr.struct_expr) } void Expr::set_allocated_comprehension_expr(::google::api::expr::v1alpha1::Expr_Comprehension* comprehension_expr) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_expr_kind(); if (comprehension_expr) { - ::google::protobuf::Arena* submessage_arena = comprehension_expr->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(comprehension_expr); if (message_arena != submessage_arena) { - comprehension_expr = ::google::protobuf::internal::GetOwnedMessage(message_arena, comprehension_expr, submessage_arena); + comprehension_expr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, comprehension_expr, submessage_arena); } set_has_comprehension_expr(); - _impl_.expr_kind_.comprehension_expr_ = comprehension_expr; + expr_kind_.comprehension_expr_ = comprehension_expr; } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Expr.comprehension_expr) } -Expr::Expr(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Expr::Expr(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.Expr) } -inline PROTOBUF_NDEBUG_INLINE Expr::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : expr_kind_{}, - _cached_size_{0}, - _oneof_case_{from._oneof_case_[0]} {} - -Expr::Expr( - ::google::protobuf::Arena* arena, - const Expr& from) - : ::google::protobuf::Message(arena) { - Expr* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.id_ = from._impl_.id_; - switch (expr_kind_case()) { - case EXPR_KIND_NOT_SET: +Expr::Expr(const Expr& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_ = from.id_; + clear_has_expr_kind(); + switch (from.expr_kind_case()) { + case kConstExpr: { + _internal_mutable_const_expr()->::google::api::expr::v1alpha1::Constant::MergeFrom(from._internal_const_expr()); + break; + } + case kIdentExpr: { + _internal_mutable_ident_expr()->::google::api::expr::v1alpha1::Expr_Ident::MergeFrom(from._internal_ident_expr()); + break; + } + case kSelectExpr: { + _internal_mutable_select_expr()->::google::api::expr::v1alpha1::Expr_Select::MergeFrom(from._internal_select_expr()); + break; + } + case kCallExpr: { + _internal_mutable_call_expr()->::google::api::expr::v1alpha1::Expr_Call::MergeFrom(from._internal_call_expr()); break; - case kConstExpr: - _impl_.expr_kind_.const_expr_ = CreateMaybeMessage<::google::api::expr::v1alpha1::Constant>(arena, *from._impl_.expr_kind_.const_expr_); - break; - case kIdentExpr: - _impl_.expr_kind_.ident_expr_ = CreateMaybeMessage<::google::api::expr::v1alpha1::Expr_Ident>(arena, *from._impl_.expr_kind_.ident_expr_); - break; - case kSelectExpr: - _impl_.expr_kind_.select_expr_ = CreateMaybeMessage<::google::api::expr::v1alpha1::Expr_Select>(arena, *from._impl_.expr_kind_.select_expr_); - break; - case kCallExpr: - _impl_.expr_kind_.call_expr_ = CreateMaybeMessage<::google::api::expr::v1alpha1::Expr_Call>(arena, *from._impl_.expr_kind_.call_expr_); - break; - case kListExpr: - _impl_.expr_kind_.list_expr_ = CreateMaybeMessage<::google::api::expr::v1alpha1::Expr_CreateList>(arena, *from._impl_.expr_kind_.list_expr_); - break; - case kStructExpr: - _impl_.expr_kind_.struct_expr_ = CreateMaybeMessage<::google::api::expr::v1alpha1::Expr_CreateStruct>(arena, *from._impl_.expr_kind_.struct_expr_); - break; - case kComprehensionExpr: - _impl_.expr_kind_.comprehension_expr_ = CreateMaybeMessage<::google::api::expr::v1alpha1::Expr_Comprehension>(arena, *from._impl_.expr_kind_.comprehension_expr_); - break; + } + case kListExpr: { + _internal_mutable_list_expr()->::google::api::expr::v1alpha1::Expr_CreateList::MergeFrom(from._internal_list_expr()); + break; + } + case kStructExpr: { + _internal_mutable_struct_expr()->::google::api::expr::v1alpha1::Expr_CreateStruct::MergeFrom(from._internal_struct_expr()); + break; + } + case kComprehensionExpr: { + _internal_mutable_comprehension_expr()->::google::api::expr::v1alpha1::Expr_Comprehension::MergeFrom(from._internal_comprehension_expr()); + break; + } + case EXPR_KIND_NOT_SET: { + break; + } } - // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.Expr) } -inline PROTOBUF_NDEBUG_INLINE Expr::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : expr_kind_{}, - _cached_size_{0}, - _oneof_case_{} {} -inline void Expr::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.id_ = {}; +inline void Expr::SharedCtor() { +id_ = int64_t{0}; +clear_has_expr_kind(); } + Expr::~Expr() { // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.Expr) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Expr::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); if (has_expr_kind()) { clear_expr_kind(); } - _impl_.~Impl_(); +} + +void Expr::SetCachedSize(int size) const { + _cached_size_.Set(size); } void Expr::clear_expr_kind() { // @@protoc_insertion_point(one_of_clear_start:google.api.expr.v1alpha1.Expr) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); switch (expr_kind_case()) { case kConstExpr: { - if (GetArena() == nullptr) { - delete _impl_.expr_kind_.const_expr_; + if (GetArenaForAllocation() == nullptr) { + delete expr_kind_.const_expr_; } break; } case kIdentExpr: { - if (GetArena() == nullptr) { - delete _impl_.expr_kind_.ident_expr_; + if (GetArenaForAllocation() == nullptr) { + delete expr_kind_.ident_expr_; } break; } case kSelectExpr: { - if (GetArena() == nullptr) { - delete _impl_.expr_kind_.select_expr_; + if (GetArenaForAllocation() == nullptr) { + delete expr_kind_.select_expr_; } break; } case kCallExpr: { - if (GetArena() == nullptr) { - delete _impl_.expr_kind_.call_expr_; + if (GetArenaForAllocation() == nullptr) { + delete expr_kind_.call_expr_; } break; } case kListExpr: { - if (GetArena() == nullptr) { - delete _impl_.expr_kind_.list_expr_; + if (GetArenaForAllocation() == nullptr) { + delete expr_kind_.list_expr_; } break; } case kStructExpr: { - if (GetArena() == nullptr) { - delete _impl_.expr_kind_.struct_expr_; + if (GetArenaForAllocation() == nullptr) { + delete expr_kind_.struct_expr_; } break; } case kComprehensionExpr: { - if (GetArena() == nullptr) { - delete _impl_.expr_kind_.comprehension_expr_; + if (GetArenaForAllocation() == nullptr) { + delete expr_kind_.comprehension_expr_; } break; } @@ -3352,279 +3158,309 @@ void Expr::clear_expr_kind() { break; } } - _impl_._oneof_case_[0] = EXPR_KIND_NOT_SET; + _oneof_case_[0] = EXPR_KIND_NOT_SET; } -PROTOBUF_NOINLINE void Expr::Clear() { +void Expr::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.Expr) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.id_ = ::int64_t{0}; + id_ = int64_t{0}; clear_expr_kind(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Expr::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Expr::_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) { + // int64 id = 2 [json_name = "id"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Constant const_expr = 3 [json_name = "constExpr"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_const_expr(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Expr.Ident ident_expr = 4 [json_name = "identExpr"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_ident_expr(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Expr.Select select_expr = 5 [json_name = "selectExpr"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_select_expr(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Expr.Call call_expr = 6 [json_name = "callExpr"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr = ctx->ParseMessage(_internal_mutable_call_expr(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Expr.CreateList list_expr = 7 [json_name = "listExpr"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + ptr = ctx->ParseMessage(_internal_mutable_list_expr(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Expr.CreateStruct struct_expr = 8 [json_name = "structExpr"]; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { + ptr = ctx->ParseMessage(_internal_mutable_struct_expr(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Expr.Comprehension comprehension_expr = 9 [json_name = "comprehensionExpr"]; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { + ptr = ctx->ParseMessage(_internal_mutable_comprehension_expr(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 8, 7, 0, 2> Expr::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 9, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294966785, // skipmap - offsetof(decltype(_table_), field_entries), - 8, // num_field_entries - 7, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Expr_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // int64 id = 2 [json_name = "id"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(Expr, _impl_.id_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(Expr, _impl_.id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // int64 id = 2 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(Expr, _impl_.id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - // .google.api.expr.v1alpha1.Constant const_expr = 3 [json_name = "constExpr"]; - {PROTOBUF_FIELD_OFFSET(Expr, _impl_.expr_kind_.const_expr_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.api.expr.v1alpha1.Expr.Ident ident_expr = 4 [json_name = "identExpr"]; - {PROTOBUF_FIELD_OFFSET(Expr, _impl_.expr_kind_.ident_expr_), _Internal::kOneofCaseOffset + 0, 1, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.api.expr.v1alpha1.Expr.Select select_expr = 5 [json_name = "selectExpr"]; - {PROTOBUF_FIELD_OFFSET(Expr, _impl_.expr_kind_.select_expr_), _Internal::kOneofCaseOffset + 0, 2, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.api.expr.v1alpha1.Expr.Call call_expr = 6 [json_name = "callExpr"]; - {PROTOBUF_FIELD_OFFSET(Expr, _impl_.expr_kind_.call_expr_), _Internal::kOneofCaseOffset + 0, 3, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.api.expr.v1alpha1.Expr.CreateList list_expr = 7 [json_name = "listExpr"]; - {PROTOBUF_FIELD_OFFSET(Expr, _impl_.expr_kind_.list_expr_), _Internal::kOneofCaseOffset + 0, 4, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.api.expr.v1alpha1.Expr.CreateStruct struct_expr = 8 [json_name = "structExpr"]; - {PROTOBUF_FIELD_OFFSET(Expr, _impl_.expr_kind_.struct_expr_), _Internal::kOneofCaseOffset + 0, 5, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.api.expr.v1alpha1.Expr.Comprehension comprehension_expr = 9 [json_name = "comprehensionExpr"]; - {PROTOBUF_FIELD_OFFSET(Expr, _impl_.expr_kind_.comprehension_expr_), _Internal::kOneofCaseOffset + 0, 6, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::Constant>()}, - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::Expr_Ident>()}, - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::Expr_Select>()}, - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::Expr_Call>()}, - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::Expr_CreateList>()}, - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::Expr_CreateStruct>()}, - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::Expr_Comprehension>()}, - }}, {{ - }}, -}; - -::uint8_t* Expr::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Expr::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.Expr) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // int64 id = 2 [json_name = "id"]; if (this->_internal_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<2>( - stream, this->_internal_id(), target); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_id(), target); } - switch (expr_kind_case()) { - case kConstExpr: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::const_expr(this), - _Internal::const_expr(this).GetCachedSize(), target, stream); - break; - } - case kIdentExpr: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, _Internal::ident_expr(this), - _Internal::ident_expr(this).GetCachedSize(), target, stream); - break; - } - case kSelectExpr: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 5, _Internal::select_expr(this), - _Internal::select_expr(this).GetCachedSize(), target, stream); - break; - } - case kCallExpr: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 6, _Internal::call_expr(this), - _Internal::call_expr(this).GetCachedSize(), target, stream); - break; - } - case kListExpr: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 7, _Internal::list_expr(this), - _Internal::list_expr(this).GetCachedSize(), target, stream); - break; - } - case kStructExpr: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 8, _Internal::struct_expr(this), - _Internal::struct_expr(this).GetCachedSize(), target, stream); - break; - } - case kComprehensionExpr: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 9, _Internal::comprehension_expr(this), - _Internal::comprehension_expr(this).GetCachedSize(), target, stream); - break; - } - default: - break; + // .google.api.expr.v1alpha1.Constant const_expr = 3 [json_name = "constExpr"]; + if (_internal_has_const_expr()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::const_expr(this), + _Internal::const_expr(this).GetCachedSize(), target, stream); } + + // .google.api.expr.v1alpha1.Expr.Ident ident_expr = 4 [json_name = "identExpr"]; + if (_internal_has_ident_expr()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::ident_expr(this), + _Internal::ident_expr(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1alpha1.Expr.Select select_expr = 5 [json_name = "selectExpr"]; + if (_internal_has_select_expr()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(5, _Internal::select_expr(this), + _Internal::select_expr(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1alpha1.Expr.Call call_expr = 6 [json_name = "callExpr"]; + if (_internal_has_call_expr()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(6, _Internal::call_expr(this), + _Internal::call_expr(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1alpha1.Expr.CreateList list_expr = 7 [json_name = "listExpr"]; + if (_internal_has_list_expr()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(7, _Internal::list_expr(this), + _Internal::list_expr(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1alpha1.Expr.CreateStruct struct_expr = 8 [json_name = "structExpr"]; + if (_internal_has_struct_expr()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(8, _Internal::struct_expr(this), + _Internal::struct_expr(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1alpha1.Expr.Comprehension comprehension_expr = 9 [json_name = "comprehensionExpr"]; + if (_internal_has_comprehension_expr()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(9, _Internal::comprehension_expr(this), + _Internal::comprehension_expr(this).GetCachedSize(), target, stream); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1alpha1.Expr) return target; } -::size_t Expr::ByteSizeLong() const { +size_t Expr::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.Expr) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // int64 id = 2 [json_name = "id"]; if (this->_internal_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( - this->_internal_id()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_id()); } switch (expr_kind_case()) { // .google.api.expr.v1alpha1.Constant const_expr = 3 [json_name = "constExpr"]; case kConstExpr: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.expr_kind_.const_expr_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *expr_kind_.const_expr_); break; } // .google.api.expr.v1alpha1.Expr.Ident ident_expr = 4 [json_name = "identExpr"]; case kIdentExpr: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.expr_kind_.ident_expr_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *expr_kind_.ident_expr_); break; } // .google.api.expr.v1alpha1.Expr.Select select_expr = 5 [json_name = "selectExpr"]; case kSelectExpr: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.expr_kind_.select_expr_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *expr_kind_.select_expr_); break; } // .google.api.expr.v1alpha1.Expr.Call call_expr = 6 [json_name = "callExpr"]; case kCallExpr: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.expr_kind_.call_expr_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *expr_kind_.call_expr_); break; } // .google.api.expr.v1alpha1.Expr.CreateList list_expr = 7 [json_name = "listExpr"]; case kListExpr: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.expr_kind_.list_expr_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *expr_kind_.list_expr_); break; } // .google.api.expr.v1alpha1.Expr.CreateStruct struct_expr = 8 [json_name = "structExpr"]; case kStructExpr: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.expr_kind_.struct_expr_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *expr_kind_.struct_expr_); break; } // .google.api.expr.v1alpha1.Expr.Comprehension comprehension_expr = 9 [json_name = "comprehensionExpr"]; case kComprehensionExpr: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.expr_kind_.comprehension_expr_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *expr_kind_.comprehension_expr_); break; } case EXPR_KIND_NOT_SET: { break; } } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Expr::_class_data_ = { - Expr::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Expr::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Expr::MergeImpl }; -const ::google::protobuf::Message::ClassData* Expr::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Expr::GetClassData() const { return &_class_data_; } + +void Expr::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Expr::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Expr) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Expr::MergeFrom(const Expr& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Expr) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_id() != 0) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } switch (from.expr_kind_case()) { case kConstExpr: { - _this->_internal_mutable_const_expr()->::google::api::expr::v1alpha1::Constant::MergeFrom( - from._internal_const_expr()); + _internal_mutable_const_expr()->::google::api::expr::v1alpha1::Constant::MergeFrom(from._internal_const_expr()); break; } case kIdentExpr: { - _this->_internal_mutable_ident_expr()->::google::api::expr::v1alpha1::Expr_Ident::MergeFrom( - from._internal_ident_expr()); + _internal_mutable_ident_expr()->::google::api::expr::v1alpha1::Expr_Ident::MergeFrom(from._internal_ident_expr()); break; } case kSelectExpr: { - _this->_internal_mutable_select_expr()->::google::api::expr::v1alpha1::Expr_Select::MergeFrom( - from._internal_select_expr()); + _internal_mutable_select_expr()->::google::api::expr::v1alpha1::Expr_Select::MergeFrom(from._internal_select_expr()); break; } case kCallExpr: { - _this->_internal_mutable_call_expr()->::google::api::expr::v1alpha1::Expr_Call::MergeFrom( - from._internal_call_expr()); + _internal_mutable_call_expr()->::google::api::expr::v1alpha1::Expr_Call::MergeFrom(from._internal_call_expr()); break; } case kListExpr: { - _this->_internal_mutable_list_expr()->::google::api::expr::v1alpha1::Expr_CreateList::MergeFrom( - from._internal_list_expr()); + _internal_mutable_list_expr()->::google::api::expr::v1alpha1::Expr_CreateList::MergeFrom(from._internal_list_expr()); break; } case kStructExpr: { - _this->_internal_mutable_struct_expr()->::google::api::expr::v1alpha1::Expr_CreateStruct::MergeFrom( - from._internal_struct_expr()); + _internal_mutable_struct_expr()->::google::api::expr::v1alpha1::Expr_CreateStruct::MergeFrom(from._internal_struct_expr()); break; } case kComprehensionExpr: { - _this->_internal_mutable_comprehension_expr()->::google::api::expr::v1alpha1::Expr_Comprehension::MergeFrom( - from._internal_comprehension_expr()); + _internal_mutable_comprehension_expr()->::google::api::expr::v1alpha1::Expr_Comprehension::MergeFrom(from._internal_comprehension_expr()); break; } case EXPR_KIND_NOT_SET: { break; } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Expr::CopyFrom(const Expr& from) { @@ -3634,167 +3470,168 @@ void Expr::CopyFrom(const Expr& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Expr::IsInitialized() const { +bool Expr::IsInitialized() const { return true; } -::_pbi::CachedSize* Expr::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Expr::InternalSwap(Expr* PROTOBUF_RESTRICT other) { +void Expr::InternalSwap(Expr* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.id_, other->_impl_.id_); - swap(_impl_.expr_kind_, other->_impl_.expr_kind_); - swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); + swap(id_, other->id_); + swap(expr_kind_, other->expr_kind_); + swap(_oneof_case_[0], other->_oneof_case_[0]); } -::google::protobuf::Metadata Expr::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Expr::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto[8]); } + // =================================================================== class Constant::_Internal { public: - static constexpr ::int32_t kOneofCaseOffset = - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Constant, _impl_._oneof_case_); - static const ::google::protobuf::Duration& duration_value(const Constant* msg); - static const ::google::protobuf::Timestamp& timestamp_value(const Constant* msg); + static const ::PROTOBUF_NAMESPACE_ID::Duration& duration_value(const Constant* msg); + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& timestamp_value(const Constant* msg); }; -const ::google::protobuf::Duration& Constant::_Internal::duration_value(const Constant* msg) { - return *msg->_impl_.constant_kind_.duration_value_; +const ::PROTOBUF_NAMESPACE_ID::Duration& +Constant::_Internal::duration_value(const Constant* msg) { + return *msg->constant_kind_.duration_value_; } -const ::google::protobuf::Timestamp& Constant::_Internal::timestamp_value(const Constant* msg) { - return *msg->_impl_.constant_kind_.timestamp_value_; +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +Constant::_Internal::timestamp_value(const Constant* msg) { + return *msg->constant_kind_.timestamp_value_; } -void Constant::set_allocated_duration_value(::google::protobuf::Duration* duration_value) { - ::google::protobuf::Arena* message_arena = GetArena(); +void Constant::set_allocated_duration_value(::PROTOBUF_NAMESPACE_ID::Duration* duration_value) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_constant_kind(); if (duration_value) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(duration_value)->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(duration_value)); if (message_arena != submessage_arena) { - duration_value = ::google::protobuf::internal::GetOwnedMessage(message_arena, duration_value, submessage_arena); + duration_value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, duration_value, submessage_arena); } set_has_duration_value(); - _impl_.constant_kind_.duration_value_ = duration_value; + constant_kind_.duration_value_ = duration_value; } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Constant.duration_value) } void Constant::clear_duration_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (constant_kind_case() == kDurationValue) { - if (GetArena() == nullptr) { - delete _impl_.constant_kind_.duration_value_; + if (_internal_has_duration_value()) { + if (GetArenaForAllocation() == nullptr) { + delete constant_kind_.duration_value_; } clear_has_constant_kind(); } } -void Constant::set_allocated_timestamp_value(::google::protobuf::Timestamp* timestamp_value) { - ::google::protobuf::Arena* message_arena = GetArena(); +void Constant::set_allocated_timestamp_value(::PROTOBUF_NAMESPACE_ID::Timestamp* timestamp_value) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_constant_kind(); if (timestamp_value) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(timestamp_value)->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(timestamp_value)); if (message_arena != submessage_arena) { - timestamp_value = ::google::protobuf::internal::GetOwnedMessage(message_arena, timestamp_value, submessage_arena); + timestamp_value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, timestamp_value, submessage_arena); } set_has_timestamp_value(); - _impl_.constant_kind_.timestamp_value_ = timestamp_value; + constant_kind_.timestamp_value_ = timestamp_value; } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Constant.timestamp_value) } void Constant::clear_timestamp_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (constant_kind_case() == kTimestampValue) { - if (GetArena() == nullptr) { - delete _impl_.constant_kind_.timestamp_value_; + if (_internal_has_timestamp_value()) { + if (GetArenaForAllocation() == nullptr) { + delete constant_kind_.timestamp_value_; } clear_has_constant_kind(); } } -Constant::Constant(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Constant::Constant(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.Constant) } -inline PROTOBUF_NDEBUG_INLINE Constant::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : constant_kind_{}, - _cached_size_{0}, - _oneof_case_{from._oneof_case_[0]} {} - -Constant::Constant( - ::google::protobuf::Arena* arena, - const Constant& from) - : ::google::protobuf::Message(arena) { - Constant* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - switch (constant_kind_case()) { - case CONSTANT_KIND_NOT_SET: +Constant::Constant(const Constant& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + clear_has_constant_kind(); + switch (from.constant_kind_case()) { + case kNullValue: { + _internal_set_null_value(from._internal_null_value()); + break; + } + case kBoolValue: { + _internal_set_bool_value(from._internal_bool_value()); + break; + } + case kInt64Value: { + _internal_set_int64_value(from._internal_int64_value()); + break; + } + case kUint64Value: { + _internal_set_uint64_value(from._internal_uint64_value()); + break; + } + case kDoubleValue: { + _internal_set_double_value(from._internal_double_value()); + break; + } + case kStringValue: { + _internal_set_string_value(from._internal_string_value()); + break; + } + case kBytesValue: { + _internal_set_bytes_value(from._internal_bytes_value()); + break; + } + case kDurationValue: { + _internal_mutable_duration_value()->::PROTOBUF_NAMESPACE_ID::Duration::MergeFrom(from._internal_duration_value()); + break; + } + case kTimestampValue: { + _internal_mutable_timestamp_value()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_timestamp_value()); + break; + } + case CONSTANT_KIND_NOT_SET: { break; - case kNullValue: - _impl_.constant_kind_.null_value_ = from._impl_.constant_kind_.null_value_; - break; - case kBoolValue: - _impl_.constant_kind_.bool_value_ = from._impl_.constant_kind_.bool_value_; - break; - case kInt64Value: - _impl_.constant_kind_.int64_value_ = from._impl_.constant_kind_.int64_value_; - break; - case kUint64Value: - _impl_.constant_kind_.uint64_value_ = from._impl_.constant_kind_.uint64_value_; - break; - case kDoubleValue: - _impl_.constant_kind_.double_value_ = from._impl_.constant_kind_.double_value_; - break; - case kStringValue: - new (&_impl_.constant_kind_.string_value_) decltype(_impl_.constant_kind_.string_value_){arena, from._impl_.constant_kind_.string_value_}; - break; - case kBytesValue: - new (&_impl_.constant_kind_.bytes_value_) decltype(_impl_.constant_kind_.bytes_value_){arena, from._impl_.constant_kind_.bytes_value_}; - break; - case kDurationValue: - _impl_.constant_kind_.duration_value_ = CreateMaybeMessage<::google::protobuf::Duration>(arena, *from._impl_.constant_kind_.duration_value_); - break; - case kTimestampValue: - _impl_.constant_kind_.timestamp_value_ = CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.constant_kind_.timestamp_value_); - break; + } } - // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.Constant) } -inline PROTOBUF_NDEBUG_INLINE Constant::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : constant_kind_{}, - _cached_size_{0}, - _oneof_case_{} {} -inline void Constant::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void Constant::SharedCtor() { +clear_has_constant_kind(); } + Constant::~Constant() { // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.Constant) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Constant::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); if (has_constant_kind()) { clear_constant_kind(); } - _impl_.~Impl_(); +} + +void Constant::SetCachedSize(int size) const { + _cached_size_.Set(size); } void Constant::clear_constant_kind() { // @@protoc_insertion_point(one_of_clear_start:google.api.expr.v1alpha1.Constant) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); switch (constant_kind_case()) { case kNullValue: { // No need to clear @@ -3817,22 +3654,22 @@ void Constant::clear_constant_kind() { break; } case kStringValue: { - _impl_.constant_kind_.string_value_.Destroy(); + constant_kind_.string_value_.Destroy(); break; } case kBytesValue: { - _impl_.constant_kind_.bytes_value_.Destroy(); + constant_kind_.bytes_value_.Destroy(); break; } case kDurationValue: { - if (GetArena() == nullptr) { - delete _impl_.constant_kind_.duration_value_; + if (GetArenaForAllocation() == nullptr) { + delete constant_kind_.duration_value_; } break; } case kTimestampValue: { - if (GetArena() == nullptr) { - delete _impl_.constant_kind_.timestamp_value_; + if (GetArenaForAllocation() == nullptr) { + delete constant_kind_.timestamp_value_; } break; } @@ -3840,163 +3677,205 @@ void Constant::clear_constant_kind() { break; } } - _impl_._oneof_case_[0] = CONSTANT_KIND_NOT_SET; + _oneof_case_[0] = CONSTANT_KIND_NOT_SET; } -PROTOBUF_NOINLINE void Constant::Clear() { +void Constant::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.Constant) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; clear_constant_kind(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Constant::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Constant::_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) { + // .google.protobuf.NullValue null_value = 1 [json_name = "nullValue"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_null_value(static_cast<::PROTOBUF_NAMESPACE_ID::NullValue>(val)); + } else + goto handle_unusual; + continue; + // bool bool_value = 2 [json_name = "boolValue"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _internal_set_bool_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int64 int64_value = 3 [json_name = "int64Value"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + _internal_set_int64_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // uint64 uint64_value = 4 [json_name = "uint64Value"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + _internal_set_uint64_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // double double_value = 5 [json_name = "doubleValue"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 41)) { + _internal_set_double_value(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // string string_value = 6 [json_name = "stringValue"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + auto str = _internal_mutable_string_value(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1alpha1.Constant.string_value")); + } else + goto handle_unusual; + continue; + // bytes bytes_value = 7 [json_name = "bytesValue"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + auto str = _internal_mutable_bytes_value(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Duration duration_value = 8 [json_name = "durationValue", deprecated = true]; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { + ptr = ctx->ParseMessage(_internal_mutable_duration_value(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp timestamp_value = 9 [json_name = "timestampValue", deprecated = true]; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { + ptr = ctx->ParseMessage(_internal_mutable_timestamp_value(), 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* Constant::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.Constant) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 9, 2, 62, 2> Constant::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 9, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294966784, // skipmap - offsetof(decltype(_table_), field_entries), - 9, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Constant_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // .google.protobuf.NullValue null_value = 1 [json_name = "nullValue"]; - {PROTOBUF_FIELD_OFFSET(Constant, _impl_.constant_kind_.null_value_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kOpenEnum)}, - // bool bool_value = 2 [json_name = "boolValue"]; - {PROTOBUF_FIELD_OFFSET(Constant, _impl_.constant_kind_.bool_value_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kBool)}, - // int64 int64_value = 3 [json_name = "int64Value"]; - {PROTOBUF_FIELD_OFFSET(Constant, _impl_.constant_kind_.int64_value_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kInt64)}, - // uint64 uint64_value = 4 [json_name = "uint64Value"]; - {PROTOBUF_FIELD_OFFSET(Constant, _impl_.constant_kind_.uint64_value_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kUInt64)}, - // double double_value = 5 [json_name = "doubleValue"]; - {PROTOBUF_FIELD_OFFSET(Constant, _impl_.constant_kind_.double_value_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kDouble)}, - // string string_value = 6 [json_name = "stringValue"]; - {PROTOBUF_FIELD_OFFSET(Constant, _impl_.constant_kind_.string_value_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // bytes bytes_value = 7 [json_name = "bytesValue"]; - {PROTOBUF_FIELD_OFFSET(Constant, _impl_.constant_kind_.bytes_value_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kBytes | ::_fl::kRepAString)}, - // .google.protobuf.Duration duration_value = 8 [json_name = "durationValue", deprecated = true]; - {PROTOBUF_FIELD_OFFSET(Constant, _impl_.constant_kind_.duration_value_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.protobuf.Timestamp timestamp_value = 9 [json_name = "timestampValue", deprecated = true]; - {PROTOBUF_FIELD_OFFSET(Constant, _impl_.constant_kind_.timestamp_value_), _Internal::kOneofCaseOffset + 0, 1, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Duration>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, - }}, {{ - "\41\0\0\0\0\0\14\0\0\0\0\0\0\0\0\0" - "google.api.expr.v1alpha1.Constant" - "string_value" - }}, -}; + // .google.protobuf.NullValue null_value = 1 [json_name = "nullValue"]; + if (_internal_has_null_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this->_internal_null_value(), target); + } -::uint8_t* Constant::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.Constant) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + // bool bool_value = 2 [json_name = "boolValue"]; + if (_internal_has_bool_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_bool_value(), target); + } - switch (constant_kind_case()) { - case kNullValue: { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_null_value(), target); - break; - } - case kBoolValue: { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 2, this->_internal_bool_value(), target); - break; - } - case kInt64Value: { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<3>( - stream, this->_internal_int64_value(), target); - break; - } - case kUint64Value: { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 4, this->_internal_uint64_value(), target); - break; - } - case kDoubleValue: { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 5, this->_internal_double_value(), target); - break; - } - case kStringValue: { - const std::string& _s = this->_internal_string_value(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.expr.v1alpha1.Constant.string_value"); - target = stream->WriteStringMaybeAliased(6, _s, target); - break; - } - case kBytesValue: { - const std::string& _s = this->_internal_bytes_value(); - target = stream->WriteBytesMaybeAliased(7, _s, target); - break; - } - case kDurationValue: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 8, _Internal::duration_value(this), - _Internal::duration_value(this).GetCachedSize(), target, stream); - break; - } - case kTimestampValue: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 9, _Internal::timestamp_value(this), - _Internal::timestamp_value(this).GetCachedSize(), target, stream); - break; - } - default: - break; + // int64 int64_value = 3 [json_name = "int64Value"]; + if (_internal_has_int64_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(3, this->_internal_int64_value(), target); + } + + // uint64 uint64_value = 4 [json_name = "uint64Value"]; + if (_internal_has_uint64_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(4, this->_internal_uint64_value(), target); + } + + // double double_value = 5 [json_name = "doubleValue"]; + if (_internal_has_double_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(5, this->_internal_double_value(), target); + } + + // string string_value = 6 [json_name = "stringValue"]; + if (_internal_has_string_value()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_string_value().data(), static_cast(this->_internal_string_value().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1alpha1.Constant.string_value"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_string_value(), target); + } + + // bytes bytes_value = 7 [json_name = "bytesValue"]; + if (_internal_has_bytes_value()) { + target = stream->WriteBytesMaybeAliased( + 7, this->_internal_bytes_value(), target); + } + + // .google.protobuf.Duration duration_value = 8 [json_name = "durationValue", deprecated = true]; + if (_internal_has_duration_value()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(8, _Internal::duration_value(this), + _Internal::duration_value(this).GetCachedSize(), target, stream); + } + + // .google.protobuf.Timestamp timestamp_value = 9 [json_name = "timestampValue", deprecated = true]; + if (_internal_has_timestamp_value()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(9, _Internal::timestamp_value(this), + _Internal::timestamp_value(this).GetCachedSize(), target, stream); } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1alpha1.Constant) return target; } -::size_t Constant::ByteSizeLong() const { +size_t Constant::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.Constant) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -4004,122 +3883,125 @@ ::size_t Constant::ByteSizeLong() const { // .google.protobuf.NullValue null_value = 1 [json_name = "nullValue"]; case kNullValue: { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_null_value()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_null_value()); break; } // bool bool_value = 2 [json_name = "boolValue"]; case kBoolValue: { - total_size += 2; + total_size += 1 + 1; break; } // int64 int64_value = 3 [json_name = "int64Value"]; case kInt64Value: { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( - this->_internal_int64_value()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_int64_value()); break; } // uint64 uint64_value = 4 [json_name = "uint64Value"]; case kUint64Value: { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_uint64_value()); + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_uint64_value()); break; } // double double_value = 5 [json_name = "doubleValue"]; case kDoubleValue: { - total_size += 9; + total_size += 1 + 8; break; } // string string_value = 6 [json_name = "stringValue"]; case kStringValue: { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_string_value()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_string_value()); break; } // bytes bytes_value = 7 [json_name = "bytesValue"]; case kBytesValue: { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_bytes_value()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_bytes_value()); break; } // .google.protobuf.Duration duration_value = 8 [json_name = "durationValue", deprecated = true]; case kDurationValue: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.constant_kind_.duration_value_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *constant_kind_.duration_value_); break; } // .google.protobuf.Timestamp timestamp_value = 9 [json_name = "timestampValue", deprecated = true]; case kTimestampValue: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.constant_kind_.timestamp_value_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *constant_kind_.timestamp_value_); break; } case CONSTANT_KIND_NOT_SET: { break; } } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Constant::_class_data_ = { - Constant::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Constant::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Constant::MergeImpl }; -const ::google::protobuf::Message::ClassData* Constant::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Constant::GetClassData() const { return &_class_data_; } + +void Constant::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Constant::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Constant) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Constant::MergeFrom(const Constant& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Constant) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; switch (from.constant_kind_case()) { case kNullValue: { - _this->_internal_set_null_value(from._internal_null_value()); + _internal_set_null_value(from._internal_null_value()); break; } case kBoolValue: { - _this->_internal_set_bool_value(from._internal_bool_value()); + _internal_set_bool_value(from._internal_bool_value()); break; } case kInt64Value: { - _this->_internal_set_int64_value(from._internal_int64_value()); + _internal_set_int64_value(from._internal_int64_value()); break; } case kUint64Value: { - _this->_internal_set_uint64_value(from._internal_uint64_value()); + _internal_set_uint64_value(from._internal_uint64_value()); break; } case kDoubleValue: { - _this->_internal_set_double_value(from._internal_double_value()); + _internal_set_double_value(from._internal_double_value()); break; } case kStringValue: { - _this->_internal_set_string_value(from._internal_string_value()); + _internal_set_string_value(from._internal_string_value()); break; } case kBytesValue: { - _this->_internal_set_bytes_value(from._internal_bytes_value()); + _internal_set_bytes_value(from._internal_bytes_value()); break; } case kDurationValue: { - _this->_internal_mutable_duration_value()->::google::protobuf::Duration::MergeFrom( - from._internal_duration_value()); + _internal_mutable_duration_value()->::PROTOBUF_NAMESPACE_ID::Duration::MergeFrom(from._internal_duration_value()); break; } case kTimestampValue: { - _this->_internal_mutable_timestamp_value()->::google::protobuf::Timestamp::MergeFrom( - from._internal_timestamp_value()); + _internal_mutable_timestamp_value()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_timestamp_value()); break; } case CONSTANT_KIND_NOT_SET: { break; } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Constant::CopyFrom(const Constant& from) { @@ -4129,197 +4011,198 @@ void Constant::CopyFrom(const Constant& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Constant::IsInitialized() const { +bool Constant::IsInitialized() const { return true; } -::_pbi::CachedSize* Constant::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Constant::InternalSwap(Constant* PROTOBUF_RESTRICT other) { +void Constant::InternalSwap(Constant* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.constant_kind_, other->_impl_.constant_kind_); - swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); + swap(constant_kind_, other->constant_kind_); + swap(_oneof_case_[0], other->_oneof_case_[0]); } -::google::protobuf::Metadata Constant::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Constant::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto[9]); } + // =================================================================== class SourceInfo_Extension_Version::_Internal { public: }; -SourceInfo_Extension_Version::SourceInfo_Extension_Version(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +SourceInfo_Extension_Version::SourceInfo_Extension_Version(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.SourceInfo.Extension.Version) } -SourceInfo_Extension_Version::SourceInfo_Extension_Version( - ::google::protobuf::Arena* arena, const SourceInfo_Extension_Version& from) - : SourceInfo_Extension_Version(arena) { - MergeFrom(from); +SourceInfo_Extension_Version::SourceInfo_Extension_Version(const SourceInfo_Extension_Version& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&major_, &from.major_, + static_cast(reinterpret_cast(&minor_) - + reinterpret_cast(&major_)) + sizeof(minor_)); + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.SourceInfo.Extension.Version) } -inline PROTOBUF_NDEBUG_INLINE SourceInfo_Extension_Version::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void SourceInfo_Extension_Version::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, major_), - 0, - offsetof(Impl_, minor_) - - offsetof(Impl_, major_) + - sizeof(Impl_::minor_)); +inline void SourceInfo_Extension_Version::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&major_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&minor_) - + reinterpret_cast(&major_)) + sizeof(minor_)); } + SourceInfo_Extension_Version::~SourceInfo_Extension_Version() { // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.SourceInfo.Extension.Version) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void SourceInfo_Extension_Version::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void SourceInfo_Extension_Version::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void SourceInfo_Extension_Version::Clear() { +void SourceInfo_Extension_Version::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.SourceInfo.Extension.Version) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&_impl_.major_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.minor_) - - reinterpret_cast(&_impl_.major_)) + sizeof(_impl_.minor_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SourceInfo_Extension_Version::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + ::memset(&major_, 0, static_cast( + reinterpret_cast(&minor_) - + reinterpret_cast(&major_)) + sizeof(minor_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SourceInfo_Extension_Version::_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) { + // int64 major = 1 [json_name = "major"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + major_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int64 minor = 2 [json_name = "minor"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + minor_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> SourceInfo_Extension_Version::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_SourceInfo_Extension_Version_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // int64 minor = 2 [json_name = "minor"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(SourceInfo_Extension_Version, _impl_.minor_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(SourceInfo_Extension_Version, _impl_.minor_)}}, - // int64 major = 1 [json_name = "major"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(SourceInfo_Extension_Version, _impl_.major_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(SourceInfo_Extension_Version, _impl_.major_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // int64 major = 1 [json_name = "major"]; - {PROTOBUF_FIELD_OFFSET(SourceInfo_Extension_Version, _impl_.major_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - // int64 minor = 2 [json_name = "minor"]; - {PROTOBUF_FIELD_OFFSET(SourceInfo_Extension_Version, _impl_.minor_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* SourceInfo_Extension_Version::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* SourceInfo_Extension_Version::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.SourceInfo.Extension.Version) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // int64 major = 1 [json_name = "major"]; if (this->_internal_major() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<1>( - stream, this->_internal_major(), target); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_major(), target); } // int64 minor = 2 [json_name = "minor"]; if (this->_internal_minor() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<2>( - stream, this->_internal_minor(), target); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_minor(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1alpha1.SourceInfo.Extension.Version) return target; } -::size_t SourceInfo_Extension_Version::ByteSizeLong() const { +size_t SourceInfo_Extension_Version::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.SourceInfo.Extension.Version) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // int64 major = 1 [json_name = "major"]; if (this->_internal_major() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( - this->_internal_major()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_major()); } // int64 minor = 2 [json_name = "minor"]; if (this->_internal_minor() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( - this->_internal_minor()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_minor()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData SourceInfo_Extension_Version::_class_data_ = { - SourceInfo_Extension_Version::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SourceInfo_Extension_Version::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + SourceInfo_Extension_Version::MergeImpl }; -const ::google::protobuf::Message::ClassData* SourceInfo_Extension_Version::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SourceInfo_Extension_Version::GetClassData() const { return &_class_data_; } + +void SourceInfo_Extension_Version::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void SourceInfo_Extension_Version::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.SourceInfo.Extension.Version) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void SourceInfo_Extension_Version::MergeFrom(const SourceInfo_Extension_Version& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.SourceInfo.Extension.Version) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_major() != 0) { - _this->_internal_set_major(from._internal_major()); + _internal_set_major(from._internal_major()); } if (from._internal_minor() != 0) { - _this->_internal_set_minor(from._internal_minor()); + _internal_set_minor(from._internal_minor()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SourceInfo_Extension_Version::CopyFrom(const SourceInfo_Extension_Version& from) { @@ -4329,277 +4212,275 @@ void SourceInfo_Extension_Version::CopyFrom(const SourceInfo_Extension_Version& MergeFrom(from); } -PROTOBUF_NOINLINE bool SourceInfo_Extension_Version::IsInitialized() const { +bool SourceInfo_Extension_Version::IsInitialized() const { return true; } -::_pbi::CachedSize* SourceInfo_Extension_Version::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void SourceInfo_Extension_Version::InternalSwap(SourceInfo_Extension_Version* PROTOBUF_RESTRICT other) { +void SourceInfo_Extension_Version::InternalSwap(SourceInfo_Extension_Version* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(SourceInfo_Extension_Version, _impl_.minor_) - + sizeof(SourceInfo_Extension_Version::_impl_.minor_) - - PROTOBUF_FIELD_OFFSET(SourceInfo_Extension_Version, _impl_.major_)>( - reinterpret_cast(&_impl_.major_), - reinterpret_cast(&other->_impl_.major_)); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(SourceInfo_Extension_Version, minor_) + + sizeof(SourceInfo_Extension_Version::minor_) + - PROTOBUF_FIELD_OFFSET(SourceInfo_Extension_Version, major_)>( + reinterpret_cast(&major_), + reinterpret_cast(&other->major_)); } -::google::protobuf::Metadata SourceInfo_Extension_Version::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata SourceInfo_Extension_Version::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto[10]); } + // =================================================================== class SourceInfo_Extension::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SourceInfo_Extension, _impl_._has_bits_); static const ::google::api::expr::v1alpha1::SourceInfo_Extension_Version& version(const SourceInfo_Extension* msg); - static void set_has_version(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::google::api::expr::v1alpha1::SourceInfo_Extension_Version& SourceInfo_Extension::_Internal::version(const SourceInfo_Extension* msg) { - return *msg->_impl_.version_; +const ::google::api::expr::v1alpha1::SourceInfo_Extension_Version& +SourceInfo_Extension::_Internal::version(const SourceInfo_Extension* msg) { + return *msg->version_; } -SourceInfo_Extension::SourceInfo_Extension(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +SourceInfo_Extension::SourceInfo_Extension(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + affected_components_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.SourceInfo.Extension) } -inline PROTOBUF_NDEBUG_INLINE SourceInfo_Extension::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - affected_components_{visibility, arena, from.affected_components_}, - _affected_components_cached_byte_size_{0}, - id_(arena, from.id_) {} - -SourceInfo_Extension::SourceInfo_Extension( - ::google::protobuf::Arena* arena, - const SourceInfo_Extension& from) - : ::google::protobuf::Message(arena) { - SourceInfo_Extension* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.version_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::api::expr::v1alpha1::SourceInfo_Extension_Version>(arena, *from._impl_.version_) - : nullptr; - +SourceInfo_Extension::SourceInfo_Extension(const SourceInfo_Extension& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + affected_components_(from.affected_components_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } + if (from._internal_has_version()) { + version_ = new ::google::api::expr::v1alpha1::SourceInfo_Extension_Version(*from.version_); + } else { + version_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.SourceInfo.Extension) } -inline PROTOBUF_NDEBUG_INLINE SourceInfo_Extension::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - affected_components_{visibility, arena}, - _affected_components_cached_byte_size_{0}, - id_(arena) {} -inline void SourceInfo_Extension::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.version_ = {}; +inline void SourceInfo_Extension::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +version_ = nullptr; } + SourceInfo_Extension::~SourceInfo_Extension() { // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.SourceInfo.Extension) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void SourceInfo_Extension::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - delete _impl_.version_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); + if (this != internal_default_instance()) delete version_; +} + +void SourceInfo_Extension::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void SourceInfo_Extension::Clear() { +void SourceInfo_Extension::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.SourceInfo.Extension) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.affected_components_.Clear(); - _impl_.id_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.version_ != nullptr); - _impl_.version_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SourceInfo_Extension::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + affected_components_.Clear(); + id_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && version_ != nullptr) { + delete version_; + } + version_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SourceInfo_Extension::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1alpha1.SourceInfo.Extension.id")); + } else + goto handle_unusual; + continue; + // repeated .google.api.expr.v1alpha1.SourceInfo.Extension.Component affected_components = 2 [json_name = "affectedComponents"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_affected_components(), ptr, ctx); + CHK_(ptr); + } else if (static_cast(tag) == 16) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_add_affected_components(static_cast<::google::api::expr::v1alpha1::SourceInfo_Extension_Component>(val)); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.SourceInfo.Extension.Version version = 3 [json_name = "version"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_version(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 1, 56, 2> SourceInfo_Extension::_table_ = { - { - PROTOBUF_FIELD_OFFSET(SourceInfo_Extension, _impl_._has_bits_), - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_SourceInfo_Extension_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string id = 1 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(SourceInfo_Extension, _impl_.id_)}}, - // repeated .google.api.expr.v1alpha1.SourceInfo.Extension.Component affected_components = 2 [json_name = "affectedComponents"]; - {::_pbi::TcParser::FastV32P1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(SourceInfo_Extension, _impl_.affected_components_)}}, - // .google.api.expr.v1alpha1.SourceInfo.Extension.Version version = 3 [json_name = "version"]; - {::_pbi::TcParser::FastMtS1, - {26, 0, 0, PROTOBUF_FIELD_OFFSET(SourceInfo_Extension, _impl_.version_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(SourceInfo_Extension, _impl_.id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated .google.api.expr.v1alpha1.SourceInfo.Extension.Component affected_components = 2 [json_name = "affectedComponents"]; - {PROTOBUF_FIELD_OFFSET(SourceInfo_Extension, _impl_.affected_components_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kPackedOpenEnum)}, - // .google.api.expr.v1alpha1.SourceInfo.Extension.Version version = 3 [json_name = "version"]; - {PROTOBUF_FIELD_OFFSET(SourceInfo_Extension, _impl_.version_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::SourceInfo_Extension_Version>()}, - }}, {{ - "\55\2\0\0\0\0\0\0" - "google.api.expr.v1alpha1.SourceInfo.Extension" - "id" - }}, -}; - -::uint8_t* SourceInfo_Extension::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* SourceInfo_Extension::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.SourceInfo.Extension) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.expr.v1alpha1.SourceInfo.Extension.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1alpha1.SourceInfo.Extension.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); } // repeated .google.api.expr.v1alpha1.SourceInfo.Extension.Component affected_components = 2 [json_name = "affectedComponents"]; { - std::size_t byte_size = _impl_._affected_components_cached_byte_size_.Get(); + int byte_size = _affected_components_cached_byte_size_.load(std::memory_order_relaxed); if (byte_size > 0) { - target = stream->WriteEnumPacked(2, _internal_affected_components(), - byte_size, target); + target = stream->WriteEnumPacked( + 2, affected_components_, byte_size, target); } } - cached_has_bits = _impl_._has_bits_[0]; // .google.api.expr.v1alpha1.SourceInfo.Extension.Version version = 3 [json_name = "version"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::version(this), + if (this->_internal_has_version()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::version(this), _Internal::version(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1alpha1.SourceInfo.Extension) return target; } -::size_t SourceInfo_Extension::ByteSizeLong() const { +size_t SourceInfo_Extension::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.SourceInfo.Extension) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .google.api.expr.v1alpha1.SourceInfo.Extension.Component affected_components = 2 [json_name = "affectedComponents"]; { - std::size_t data_size = 0; - auto count = static_cast(this->_internal_affected_components_size()); - - for (std::size_t i = 0; i < count; ++i) { + size_t data_size = 0; + unsigned int count = static_cast(this->_internal_affected_components_size());for (unsigned int i = 0; i < count; i++) { data_size += ::_pbi::WireFormatLite::EnumSize( - this->_internal_affected_components().Get(static_cast(i))); + this->_internal_affected_components(static_cast(i))); } - total_size += data_size; if (data_size > 0) { - total_size += 1; - total_size += ::_pbi::WireFormatLite::Int32Size( - static_cast(data_size)); + total_size += 1 + + ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); } - _impl_._affected_components_cached_byte_size_.Set(::_pbi::ToCachedSize(data_size)); + int cached_size = ::_pbi::ToCachedSize(data_size); + _affected_components_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); + total_size += data_size; } + // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } // .google.api.expr.v1alpha1.SourceInfo.Extension.Version version = 3 [json_name = "version"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.version_); + if (this->_internal_has_version()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *version_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData SourceInfo_Extension::_class_data_ = { - SourceInfo_Extension::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SourceInfo_Extension::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + SourceInfo_Extension::MergeImpl }; -const ::google::protobuf::Message::ClassData* SourceInfo_Extension::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SourceInfo_Extension::GetClassData() const { return &_class_data_; } + +void SourceInfo_Extension::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void SourceInfo_Extension::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.SourceInfo.Extension) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void SourceInfo_Extension::MergeFrom(const SourceInfo_Extension& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.SourceInfo.Extension) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_affected_components()->MergeFrom(from._internal_affected_components()); + affected_components_.MergeFrom(from.affected_components_); if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_version()->::google::api::expr::v1alpha1::SourceInfo_Extension_Version::MergeFrom( - from._internal_version()); + if (from._internal_has_version()) { + _internal_mutable_version()->::google::api::expr::v1alpha1::SourceInfo_Extension_Version::MergeFrom(from._internal_version()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SourceInfo_Extension::CopyFrom(const SourceInfo_Extension& from) { @@ -4609,231 +4490,283 @@ void SourceInfo_Extension::CopyFrom(const SourceInfo_Extension& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool SourceInfo_Extension::IsInitialized() const { +bool SourceInfo_Extension::IsInitialized() const { return true; } -::_pbi::CachedSize* SourceInfo_Extension::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void SourceInfo_Extension::InternalSwap(SourceInfo_Extension* PROTOBUF_RESTRICT other) { +void SourceInfo_Extension::InternalSwap(SourceInfo_Extension* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.affected_components_.InternalSwap(&other->_impl_.affected_components_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); - swap(_impl_.version_, other->_impl_.version_); + affected_components_.InternalSwap(&other->affected_components_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); + swap(version_, other->version_); } -::google::protobuf::Metadata SourceInfo_Extension::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata SourceInfo_Extension::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto[11]); } + // =================================================================== SourceInfo_PositionsEntry_DoNotUse::SourceInfo_PositionsEntry_DoNotUse() {} -SourceInfo_PositionsEntry_DoNotUse::SourceInfo_PositionsEntry_DoNotUse(::google::protobuf::Arena* arena) +SourceInfo_PositionsEntry_DoNotUse::SourceInfo_PositionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) : SuperType(arena) {} -::google::protobuf::Metadata SourceInfo_PositionsEntry_DoNotUse::GetMetadata() const { +void SourceInfo_PositionsEntry_DoNotUse::MergeFrom(const SourceInfo_PositionsEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata SourceInfo_PositionsEntry_DoNotUse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto[12]); } + // =================================================================== SourceInfo_MacroCallsEntry_DoNotUse::SourceInfo_MacroCallsEntry_DoNotUse() {} -SourceInfo_MacroCallsEntry_DoNotUse::SourceInfo_MacroCallsEntry_DoNotUse(::google::protobuf::Arena* arena) +SourceInfo_MacroCallsEntry_DoNotUse::SourceInfo_MacroCallsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) : SuperType(arena) {} -::google::protobuf::Metadata SourceInfo_MacroCallsEntry_DoNotUse::GetMetadata() const { +void SourceInfo_MacroCallsEntry_DoNotUse::MergeFrom(const SourceInfo_MacroCallsEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata SourceInfo_MacroCallsEntry_DoNotUse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto[13]); } + // =================================================================== class SourceInfo::_Internal { public: }; -SourceInfo::SourceInfo(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +SourceInfo::SourceInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + line_offsets_(arena), + positions_(arena), + macro_calls_(arena), + extensions_(arena) { + SharedCtor(); + if (arena != nullptr && !is_message_owned) { + arena->OwnCustomDestructor(this, &SourceInfo::ArenaDtor); + } // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.SourceInfo) } -inline PROTOBUF_NDEBUG_INLINE SourceInfo::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : line_offsets_{visibility, arena, from.line_offsets_}, - _line_offsets_cached_byte_size_{0}, - positions_{visibility, arena, from.positions_}, - macro_calls_{visibility, arena, from.macro_calls_}, - extensions_{visibility, arena, from.extensions_}, - syntax_version_(arena, from.syntax_version_), - location_(arena, from.location_), - _cached_size_{0} {} - -SourceInfo::SourceInfo( - ::google::protobuf::Arena* arena, - const SourceInfo& from) - : ::google::protobuf::Message(arena) { - SourceInfo* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +SourceInfo::SourceInfo(const SourceInfo& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + line_offsets_(from.line_offsets_), + extensions_(from.extensions_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + positions_.MergeFrom(from.positions_); + macro_calls_.MergeFrom(from.macro_calls_); + syntax_version_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + syntax_version_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_syntax_version().empty()) { + syntax_version_.Set(from._internal_syntax_version(), + GetArenaForAllocation()); + } + location_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + location_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_location().empty()) { + location_.Set(from._internal_location(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.SourceInfo) } -inline PROTOBUF_NDEBUG_INLINE SourceInfo::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : line_offsets_{visibility, arena}, - _line_offsets_cached_byte_size_{0}, - positions_{visibility, arena}, - macro_calls_{visibility, arena}, - extensions_{visibility, arena}, - syntax_version_(arena), - location_(arena), - _cached_size_{0} {} - -inline void SourceInfo::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); + +inline void SourceInfo::SharedCtor() { +syntax_version_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + syntax_version_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +location_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + location_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + SourceInfo::~SourceInfo() { // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.SourceInfo) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + ArenaDtor(this); + return; + } SharedDtor(); } + inline void SourceInfo::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.syntax_version_.Destroy(); - _impl_.location_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + positions_.Destruct(); + macro_calls_.Destruct(); + syntax_version_.Destroy(); + location_.Destroy(); +} + +void SourceInfo::ArenaDtor(void* object) { + SourceInfo* _this = reinterpret_cast< SourceInfo* >(object); + _this->positions_.Destruct(); + _this->macro_calls_.Destruct(); +} +void SourceInfo::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void SourceInfo::Clear() { +void SourceInfo::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.SourceInfo) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.line_offsets_.Clear(); - _impl_.positions_.Clear(); - _impl_.macro_calls_.Clear(); - _impl_.extensions_.Clear(); - _impl_.syntax_version_.ClearToEmpty(); - _impl_.location_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SourceInfo::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + line_offsets_.Clear(); + positions_.Clear(); + macro_calls_.Clear(); + extensions_.Clear(); + syntax_version_.ClearToEmpty(); + location_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SourceInfo::_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 syntax_version = 1 [json_name = "syntaxVersion"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_syntax_version(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1alpha1.SourceInfo.syntax_version")); + } else + goto handle_unusual; + continue; + // string location = 2 [json_name = "location"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_location(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1alpha1.SourceInfo.location")); + } else + goto handle_unusual; + continue; + // repeated int32 line_offsets = 3 [json_name = "lineOffsets"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(_internal_mutable_line_offsets(), ptr, ctx); + CHK_(ptr); + } else if (static_cast(tag) == 24) { + _internal_add_line_offsets(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // map positions = 4 [json_name = "positions"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&positions_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr)); + } else + goto handle_unusual; + continue; + // map macro_calls = 5 [json_name = "macroCalls"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(¯o_calls_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr)); + } else + goto handle_unusual; + continue; + // repeated .google.api.expr.v1alpha1.SourceInfo.Extension extensions = 6 [json_name = "extensions"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_extensions(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 6, 4, 66, 2> SourceInfo::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 6, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967232, // skipmap - offsetof(decltype(_table_), field_entries), - 6, // num_field_entries - 4, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_SourceInfo_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string syntax_version = 1 [json_name = "syntaxVersion"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(SourceInfo, _impl_.syntax_version_)}}, - // string location = 2 [json_name = "location"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(SourceInfo, _impl_.location_)}}, - // repeated int32 line_offsets = 3 [json_name = "lineOffsets"]; - {::_pbi::TcParser::FastV32P1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(SourceInfo, _impl_.line_offsets_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - // repeated .google.api.expr.v1alpha1.SourceInfo.Extension extensions = 6 [json_name = "extensions"]; - {::_pbi::TcParser::FastMtR1, - {50, 63, 3, PROTOBUF_FIELD_OFFSET(SourceInfo, _impl_.extensions_)}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string syntax_version = 1 [json_name = "syntaxVersion"]; - {PROTOBUF_FIELD_OFFSET(SourceInfo, _impl_.syntax_version_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string location = 2 [json_name = "location"]; - {PROTOBUF_FIELD_OFFSET(SourceInfo, _impl_.location_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated int32 line_offsets = 3 [json_name = "lineOffsets"]; - {PROTOBUF_FIELD_OFFSET(SourceInfo, _impl_.line_offsets_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)}, - // map positions = 4 [json_name = "positions"]; - {PROTOBUF_FIELD_OFFSET(SourceInfo, _impl_.positions_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, - // map macro_calls = 5 [json_name = "macroCalls"]; - {PROTOBUF_FIELD_OFFSET(SourceInfo, _impl_.macro_calls_), 0, 1, - (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, - // repeated .google.api.expr.v1alpha1.SourceInfo.Extension extensions = 6 [json_name = "extensions"]; - {PROTOBUF_FIELD_OFFSET(SourceInfo, _impl_.extensions_), 0, 3, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetMapAuxInfo< - decltype(SourceInfo()._impl_.positions_)>( - 1, 0, 0, 3, - 5)}, - {::_pbi::TcParser::GetMapAuxInfo< - decltype(SourceInfo()._impl_.macro_calls_)>( - 1, 0, 0, 3, - 11)}, - {::_pbi::TcParser::CreateInArenaStorageCb<::google::api::expr::v1alpha1::Expr>}, - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::SourceInfo_Extension>()}, - }}, {{ - "\43\16\10\0\0\0\0\0" - "google.api.expr.v1alpha1.SourceInfo" - "syntax_version" - "location" - }}, -}; - -::uint8_t* SourceInfo::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* SourceInfo::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.SourceInfo) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string syntax_version = 1 [json_name = "syntaxVersion"]; if (!this->_internal_syntax_version().empty()) { - const std::string& _s = this->_internal_syntax_version(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.expr.v1alpha1.SourceInfo.syntax_version"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_syntax_version().data(), static_cast(this->_internal_syntax_version().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1alpha1.SourceInfo.syntax_version"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_syntax_version(), target); } // string location = 2 [json_name = "location"]; if (!this->_internal_location().empty()) { - const std::string& _s = this->_internal_location(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.expr.v1alpha1.SourceInfo.location"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_location().data(), static_cast(this->_internal_location().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1alpha1.SourceInfo.location"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_location(), target); } // repeated int32 line_offsets = 3 [json_name = "lineOffsets"]; { - int byte_size = _impl_._line_offsets_cached_byte_size_.Get(); + int byte_size = _line_offsets_cached_byte_size_.load(std::memory_order_relaxed); if (byte_size > 0) { target = stream->WriteInt32Packed( 3, _internal_line_offsets(), byte_size, target); @@ -4841,43 +4774,35 @@ ::uint8_t* SourceInfo::_InternalSerialize( } // map positions = 4 [json_name = "positions"]; - if (!_internal_positions().empty()) { - using MapType = ::google::protobuf::Map<::int64_t, ::int32_t>; - using WireHelper = _pbi::MapEntryFuncs<::int64_t, ::int32_t, - _pbi::WireFormatLite::TYPE_INT64, - _pbi::WireFormatLite::TYPE_INT32>; - const auto& field = _internal_positions(); - - if (stream->IsSerializationDeterministic() && field.size() > 1) { - for (const auto& entry : ::google::protobuf::internal::MapSorterFlat(field)) { - target = WireHelper::InternalSerialize( - 4, entry.first, entry.second, target, stream); + if (!this->_internal_positions().empty()) { + using MapType = ::_pb::Map; + using WireHelper = SourceInfo_PositionsEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_positions(); + + if (stream->IsSerializationDeterministic() && map_field.size() > 1) { + for (const auto& entry : ::_pbi::MapSorterFlat(map_field)) { + target = WireHelper::InternalSerialize(4, entry.first, entry.second, target, stream); } } else { - for (const auto& entry : field) { - target = WireHelper::InternalSerialize( - 4, entry.first, entry.second, target, stream); + for (const auto& entry : map_field) { + target = WireHelper::InternalSerialize(4, entry.first, entry.second, target, stream); } } } // map macro_calls = 5 [json_name = "macroCalls"]; - if (!_internal_macro_calls().empty()) { - using MapType = ::google::protobuf::Map<::int64_t, ::google::api::expr::v1alpha1::Expr>; - using WireHelper = _pbi::MapEntryFuncs<::int64_t, ::google::api::expr::v1alpha1::Expr, - _pbi::WireFormatLite::TYPE_INT64, - _pbi::WireFormatLite::TYPE_MESSAGE>; - const auto& field = _internal_macro_calls(); - - if (stream->IsSerializationDeterministic() && field.size() > 1) { - for (const auto& entry : ::google::protobuf::internal::MapSorterFlat(field)) { - target = WireHelper::InternalSerialize( - 5, entry.first, entry.second, target, stream); + if (!this->_internal_macro_calls().empty()) { + using MapType = ::_pb::Map; + using WireHelper = SourceInfo_MacroCallsEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_macro_calls(); + + if (stream->IsSerializationDeterministic() && map_field.size() > 1) { + for (const auto& entry : ::_pbi::MapSorterFlat(map_field)) { + target = WireHelper::InternalSerialize(5, entry.first, entry.second, target, stream); } } else { - for (const auto& entry : field) { - target = WireHelper::InternalSerialize( - 5, entry.first, entry.second, target, stream); + for (const auto& entry : map_field) { + target = WireHelper::InternalSerialize(5, entry.first, entry.second, target, stream); } } } @@ -4885,104 +4810,113 @@ ::uint8_t* SourceInfo::_InternalSerialize( // repeated .google.api.expr.v1alpha1.SourceInfo.Extension extensions = 6 [json_name = "extensions"]; for (unsigned i = 0, n = static_cast(this->_internal_extensions_size()); i < n; i++) { - const auto& repfield = this->_internal_extensions().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_extensions(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(6, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1alpha1.SourceInfo) return target; } -::size_t SourceInfo::ByteSizeLong() const { +size_t SourceInfo::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.SourceInfo) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated int32 line_offsets = 3 [json_name = "lineOffsets"]; { - std::size_t data_size = ::_pbi::WireFormatLite::Int32Size( - this->_internal_line_offsets()) - ; - _impl_._line_offsets_cached_byte_size_.Set(::_pbi::ToCachedSize(data_size)); - std::size_t tag_size = data_size == 0 - ? 0 - : 1 + ::_pbi::WireFormatLite::Int32Size( - static_cast(data_size)) - ; - total_size += tag_size + data_size; + size_t data_size = ::_pbi::WireFormatLite:: + Int32Size(this->line_offsets_); + if (data_size > 0) { + total_size += 1 + + ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); + } + int cached_size = ::_pbi::ToCachedSize(data_size); + _line_offsets_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); + total_size += data_size; } + // map positions = 4 [json_name = "positions"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_positions_size()); - for (const auto& entry : _internal_positions()) { - total_size += _pbi::MapEntryFuncs<::int64_t, ::int32_t, - _pbi::WireFormatLite::TYPE_INT64, - _pbi::WireFormatLite::TYPE_INT32>::ByteSizeLong(entry.first, entry.second); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_positions_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< int64_t, int32_t >::const_iterator + it = this->_internal_positions().begin(); + it != this->_internal_positions().end(); ++it) { + total_size += SourceInfo_PositionsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); } + // map macro_calls = 5 [json_name = "macroCalls"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_macro_calls_size()); - for (const auto& entry : _internal_macro_calls()) { - total_size += _pbi::MapEntryFuncs<::int64_t, ::google::api::expr::v1alpha1::Expr, - _pbi::WireFormatLite::TYPE_INT64, - _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_macro_calls_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< int64_t, ::google::api::expr::v1alpha1::Expr >::const_iterator + it = this->_internal_macro_calls().begin(); + it != this->_internal_macro_calls().end(); ++it) { + total_size += SourceInfo_MacroCallsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); } + // repeated .google.api.expr.v1alpha1.SourceInfo.Extension extensions = 6 [json_name = "extensions"]; total_size += 1UL * this->_internal_extensions_size(); - for (const auto& msg : this->_internal_extensions()) { + for (const auto& msg : this->extensions_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // string syntax_version = 1 [json_name = "syntaxVersion"]; if (!this->_internal_syntax_version().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_syntax_version()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_syntax_version()); } // string location = 2 [json_name = "location"]; if (!this->_internal_location().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_location()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_location()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData SourceInfo::_class_data_ = { - SourceInfo::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SourceInfo::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + SourceInfo::MergeImpl }; -const ::google::protobuf::Message::ClassData* SourceInfo::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SourceInfo::GetClassData() const { return &_class_data_; } + +void SourceInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void SourceInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.SourceInfo) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void SourceInfo::MergeFrom(const SourceInfo& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.SourceInfo) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_line_offsets()->MergeFrom(from._internal_line_offsets()); - _this->_impl_.positions_.MergeFrom(from._impl_.positions_); - _this->_impl_.macro_calls_.MergeFrom(from._impl_.macro_calls_); - _this->_internal_mutable_extensions()->MergeFrom( - from._internal_extensions()); + line_offsets_.MergeFrom(from.line_offsets_); + positions_.MergeFrom(from.positions_); + macro_calls_.MergeFrom(from.macro_calls_); + extensions_.MergeFrom(from.extensions_); if (!from._internal_syntax_version().empty()) { - _this->_internal_set_syntax_version(from._internal_syntax_version()); + _internal_set_syntax_version(from._internal_syntax_version()); } if (!from._internal_location().empty()) { - _this->_internal_set_location(from._internal_location()); + _internal_set_location(from._internal_location()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SourceInfo::CopyFrom(const SourceInfo& from) { @@ -4992,274 +4926,276 @@ void SourceInfo::CopyFrom(const SourceInfo& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool SourceInfo::IsInitialized() const { +bool SourceInfo::IsInitialized() const { return true; } -::_pbi::CachedSize* SourceInfo::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void SourceInfo::InternalSwap(SourceInfo* PROTOBUF_RESTRICT other) { +void SourceInfo::InternalSwap(SourceInfo* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.line_offsets_.InternalSwap(&other->_impl_.line_offsets_); - _impl_.positions_.InternalSwap(&other->_impl_.positions_); - _impl_.macro_calls_.InternalSwap(&other->_impl_.macro_calls_); - _impl_.extensions_.InternalSwap(&other->_impl_.extensions_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.syntax_version_, &other->_impl_.syntax_version_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.location_, &other->_impl_.location_, arena); -} - -::google::protobuf::Metadata SourceInfo::GetMetadata() const { + line_offsets_.InternalSwap(&other->line_offsets_); + positions_.InternalSwap(&other->positions_); + macro_calls_.InternalSwap(&other->macro_calls_); + extensions_.InternalSwap(&other->extensions_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &syntax_version_, lhs_arena, + &other->syntax_version_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &location_, lhs_arena, + &other->location_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SourceInfo::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto[14]); } + // =================================================================== class SourcePosition::_Internal { public: }; -SourcePosition::SourcePosition(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +SourcePosition::SourcePosition(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.SourcePosition) } -inline PROTOBUF_NDEBUG_INLINE SourcePosition::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : location_(arena, from.location_), - _cached_size_{0} {} - -SourcePosition::SourcePosition( - ::google::protobuf::Arena* arena, - const SourcePosition& from) - : ::google::protobuf::Message(arena) { - SourcePosition* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, offset_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, offset_), - offsetof(Impl_, column_) - - offsetof(Impl_, offset_) + - sizeof(Impl_::column_)); - +SourcePosition::SourcePosition(const SourcePosition& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + location_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + location_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_location().empty()) { + location_.Set(from._internal_location(), + GetArenaForAllocation()); + } + ::memcpy(&offset_, &from.offset_, + static_cast(reinterpret_cast(&column_) - + reinterpret_cast(&offset_)) + sizeof(column_)); // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.SourcePosition) } -inline PROTOBUF_NDEBUG_INLINE SourcePosition::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : location_(arena), - _cached_size_{0} {} - -inline void SourcePosition::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, offset_), - 0, - offsetof(Impl_, column_) - - offsetof(Impl_, offset_) + - sizeof(Impl_::column_)); + +inline void SourcePosition::SharedCtor() { +location_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + location_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&offset_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&column_) - + reinterpret_cast(&offset_)) + sizeof(column_)); } + SourcePosition::~SourcePosition() { // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.SourcePosition) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void SourcePosition::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.location_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + location_.Destroy(); +} + +void SourcePosition::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void SourcePosition::Clear() { +void SourcePosition::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.SourcePosition) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.location_.ClearToEmpty(); - ::memset(&_impl_.offset_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.column_) - - reinterpret_cast(&_impl_.offset_)) + sizeof(_impl_.column_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SourcePosition::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + location_.ClearToEmpty(); + ::memset(&offset_, 0, static_cast( + reinterpret_cast(&column_) - + reinterpret_cast(&offset_)) + sizeof(column_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SourcePosition::_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 location = 1 [json_name = "location"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_location(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1alpha1.SourcePosition.location")); + } else + goto handle_unusual; + continue; + // int32 offset = 2 [json_name = "offset"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + offset_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int32 line = 3 [json_name = "line"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + line_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int32 column = 4 [json_name = "column"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + column_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 0, 56, 2> SourcePosition::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_SourcePosition_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // int32 column = 4 [json_name = "column"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SourcePosition, _impl_.column_), 63>(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(SourcePosition, _impl_.column_)}}, - // string location = 1 [json_name = "location"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(SourcePosition, _impl_.location_)}}, - // int32 offset = 2 [json_name = "offset"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SourcePosition, _impl_.offset_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(SourcePosition, _impl_.offset_)}}, - // int32 line = 3 [json_name = "line"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SourcePosition, _impl_.line_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(SourcePosition, _impl_.line_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string location = 1 [json_name = "location"]; - {PROTOBUF_FIELD_OFFSET(SourcePosition, _impl_.location_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // int32 offset = 2 [json_name = "offset"]; - {PROTOBUF_FIELD_OFFSET(SourcePosition, _impl_.offset_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // int32 line = 3 [json_name = "line"]; - {PROTOBUF_FIELD_OFFSET(SourcePosition, _impl_.line_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // int32 column = 4 [json_name = "column"]; - {PROTOBUF_FIELD_OFFSET(SourcePosition, _impl_.column_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - }}, - // no aux_entries - {{ - "\47\10\0\0\0\0\0\0" - "google.api.expr.v1alpha1.SourcePosition" - "location" - }}, -}; - -::uint8_t* SourcePosition::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* SourcePosition::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.SourcePosition) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string location = 1 [json_name = "location"]; if (!this->_internal_location().empty()) { - const std::string& _s = this->_internal_location(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.expr.v1alpha1.SourcePosition.location"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_location().data(), static_cast(this->_internal_location().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1alpha1.SourcePosition.location"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_location(), target); } // int32 offset = 2 [json_name = "offset"]; if (this->_internal_offset() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<2>( - stream, this->_internal_offset(), target); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_offset(), target); } // int32 line = 3 [json_name = "line"]; if (this->_internal_line() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<3>( - stream, this->_internal_line(), target); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_line(), target); } // int32 column = 4 [json_name = "column"]; if (this->_internal_column() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<4>( - stream, this->_internal_column(), target); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(4, this->_internal_column(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1alpha1.SourcePosition) return target; } -::size_t SourcePosition::ByteSizeLong() const { +size_t SourcePosition::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.SourcePosition) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string location = 1 [json_name = "location"]; if (!this->_internal_location().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_location()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_location()); } // int32 offset = 2 [json_name = "offset"]; if (this->_internal_offset() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_offset()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_offset()); } // int32 line = 3 [json_name = "line"]; if (this->_internal_line() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_line()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_line()); } // int32 column = 4 [json_name = "column"]; if (this->_internal_column() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_column()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_column()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData SourcePosition::_class_data_ = { - SourcePosition::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SourcePosition::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + SourcePosition::MergeImpl }; -const ::google::protobuf::Message::ClassData* SourcePosition::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SourcePosition::GetClassData() const { return &_class_data_; } + +void SourcePosition::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void SourcePosition::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.SourcePosition) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void SourcePosition::MergeFrom(const SourcePosition& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.SourcePosition) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_location().empty()) { - _this->_internal_set_location(from._internal_location()); + _internal_set_location(from._internal_location()); } if (from._internal_offset() != 0) { - _this->_internal_set_offset(from._internal_offset()); + _internal_set_offset(from._internal_offset()); } if (from._internal_line() != 0) { - _this->_internal_set_line(from._internal_line()); + _internal_set_line(from._internal_line()); } if (from._internal_column() != 0) { - _this->_internal_set_column(from._internal_column()); + _internal_set_column(from._internal_column()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SourcePosition::CopyFrom(const SourcePosition& from) { @@ -5269,40 +5205,104 @@ void SourcePosition::CopyFrom(const SourcePosition& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool SourcePosition::IsInitialized() const { +bool SourcePosition::IsInitialized() const { return true; } -::_pbi::CachedSize* SourcePosition::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void SourcePosition::InternalSwap(SourcePosition* PROTOBUF_RESTRICT other) { +void SourcePosition::InternalSwap(SourcePosition* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.location_, &other->_impl_.location_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(SourcePosition, _impl_.column_) - + sizeof(SourcePosition::_impl_.column_) - - PROTOBUF_FIELD_OFFSET(SourcePosition, _impl_.offset_)>( - reinterpret_cast(&_impl_.offset_), - reinterpret_cast(&other->_impl_.offset_)); -} - -::google::protobuf::Metadata SourcePosition::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &location_, lhs_arena, + &other->location_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(SourcePosition, column_) + + sizeof(SourcePosition::column_) + - PROTOBUF_FIELD_OFFSET(SourcePosition, offset_)>( + reinterpret_cast(&offset_), + reinterpret_cast(&other->offset_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SourcePosition::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto[15]); } + // @@protoc_insertion_point(namespace_scope) } // namespace v1alpha1 } // namespace expr } // namespace api } // namespace google -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::ParsedExpr* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::ParsedExpr >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::ParsedExpr >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::Expr_Ident* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::Expr_Ident >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::Expr_Ident >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::Expr_Select* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::Expr_Select >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::Expr_Select >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::Expr_Call* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::Expr_Call >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::Expr_Call >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::Expr_CreateList* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::Expr_CreateList >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::Expr_CreateList >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::Expr_CreateStruct_Entry* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::Expr_CreateStruct_Entry >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::Expr_CreateStruct_Entry >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::Expr_CreateStruct* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::Expr_CreateStruct >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::Expr_CreateStruct >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::Expr_Comprehension* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::Expr_Comprehension >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::Expr_Comprehension >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::Expr* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::Expr >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::Expr >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::Constant* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::Constant >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::Constant >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::SourceInfo_Extension_Version* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::SourceInfo_Extension_Version >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::SourceInfo_Extension_Version >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::SourceInfo_Extension* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::SourceInfo_Extension >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::SourceInfo_Extension >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::SourceInfo_PositionsEntry_DoNotUse* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::SourceInfo_PositionsEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::SourceInfo_PositionsEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::SourceInfo_MacroCallsEntry_DoNotUse* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::SourceInfo_MacroCallsEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::SourceInfo_MacroCallsEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::SourceInfo* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::SourceInfo >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::SourceInfo >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::SourcePosition* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::SourcePosition >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::SourcePosition >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/google/api/expr/v1alpha1/syntax.pb.h b/src/viam/api/google/api/expr/v1alpha1/syntax.pb.h index 8b5cca7ac..348de2091 100644 --- a/src/viam/api/google/api/expr/v1alpha1/syntax.pb.h +++ b/src/viam/api/google/api/expr/v1alpha1/syntax.pb.h @@ -1,67 +1,56 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/expr/v1alpha1/syntax.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/map.h" // IWYU pragma: export -#include "google/protobuf/map_entry.h" -#include "google/protobuf/map_field_inl.h" -#include "google/protobuf/generated_enum_reflection.h" -#include "google/protobuf/unknown_field_set.h" -#include "google/protobuf/duration.pb.h" -#include "google/protobuf/struct.pb.h" -#include "google/protobuf/timestamp.pb.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include #define PROTOBUF_INTERNAL_EXPORT_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto; namespace google { namespace api { namespace expr { @@ -117,79 +106,81 @@ extern SourcePositionDefaultTypeInternal _SourcePosition_default_instance_; } // namespace v1alpha1 } // namespace expr } // namespace api -namespace protobuf { -} // namespace protobuf } // namespace google - +PROTOBUF_NAMESPACE_OPEN +template<> ::google::api::expr::v1alpha1::Constant* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::Constant>(Arena*); +template<> ::google::api::expr::v1alpha1::Expr* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::Expr>(Arena*); +template<> ::google::api::expr::v1alpha1::Expr_Call* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::Expr_Call>(Arena*); +template<> ::google::api::expr::v1alpha1::Expr_Comprehension* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::Expr_Comprehension>(Arena*); +template<> ::google::api::expr::v1alpha1::Expr_CreateList* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::Expr_CreateList>(Arena*); +template<> ::google::api::expr::v1alpha1::Expr_CreateStruct* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::Expr_CreateStruct>(Arena*); +template<> ::google::api::expr::v1alpha1::Expr_CreateStruct_Entry* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::Expr_CreateStruct_Entry>(Arena*); +template<> ::google::api::expr::v1alpha1::Expr_Ident* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::Expr_Ident>(Arena*); +template<> ::google::api::expr::v1alpha1::Expr_Select* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::Expr_Select>(Arena*); +template<> ::google::api::expr::v1alpha1::ParsedExpr* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::ParsedExpr>(Arena*); +template<> ::google::api::expr::v1alpha1::SourceInfo* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::SourceInfo>(Arena*); +template<> ::google::api::expr::v1alpha1::SourceInfo_Extension* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::SourceInfo_Extension>(Arena*); +template<> ::google::api::expr::v1alpha1::SourceInfo_Extension_Version* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::SourceInfo_Extension_Version>(Arena*); +template<> ::google::api::expr::v1alpha1::SourceInfo_MacroCallsEntry_DoNotUse* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::SourceInfo_MacroCallsEntry_DoNotUse>(Arena*); +template<> ::google::api::expr::v1alpha1::SourceInfo_PositionsEntry_DoNotUse* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::SourceInfo_PositionsEntry_DoNotUse>(Arena*); +template<> ::google::api::expr::v1alpha1::SourcePosition* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::SourcePosition>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace google { namespace api { namespace expr { namespace v1alpha1 { + enum SourceInfo_Extension_Component : int { SourceInfo_Extension_Component_COMPONENT_UNSPECIFIED = 0, SourceInfo_Extension_Component_COMPONENT_PARSER = 1, SourceInfo_Extension_Component_COMPONENT_TYPE_CHECKER = 2, SourceInfo_Extension_Component_COMPONENT_RUNTIME = 3, - SourceInfo_Extension_Component_SourceInfo_Extension_Component_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - SourceInfo_Extension_Component_SourceInfo_Extension_Component_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), + SourceInfo_Extension_Component_SourceInfo_Extension_Component_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + SourceInfo_Extension_Component_SourceInfo_Extension_Component_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() }; - bool SourceInfo_Extension_Component_IsValid(int value); -extern const uint32_t SourceInfo_Extension_Component_internal_data_[]; -constexpr SourceInfo_Extension_Component SourceInfo_Extension_Component_Component_MIN = static_cast(0); -constexpr SourceInfo_Extension_Component SourceInfo_Extension_Component_Component_MAX = static_cast(3); -constexpr int SourceInfo_Extension_Component_Component_ARRAYSIZE = 3 + 1; -const ::google::protobuf::EnumDescriptor* -SourceInfo_Extension_Component_descriptor(); -template -const std::string& SourceInfo_Extension_Component_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to Component_Name()."); - return SourceInfo_Extension_Component_Name(static_cast(value)); -} -template <> -inline const std::string& SourceInfo_Extension_Component_Name(SourceInfo_Extension_Component value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool SourceInfo_Extension_Component_Parse(absl::string_view name, SourceInfo_Extension_Component* value) { - return ::google::protobuf::internal::ParseNamedEnum( - SourceInfo_Extension_Component_descriptor(), name, value); +constexpr SourceInfo_Extension_Component SourceInfo_Extension_Component_Component_MIN = SourceInfo_Extension_Component_COMPONENT_UNSPECIFIED; +constexpr SourceInfo_Extension_Component SourceInfo_Extension_Component_Component_MAX = SourceInfo_Extension_Component_COMPONENT_RUNTIME; +constexpr int SourceInfo_Extension_Component_Component_ARRAYSIZE = SourceInfo_Extension_Component_Component_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SourceInfo_Extension_Component_descriptor(); +template +inline const std::string& SourceInfo_Extension_Component_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function SourceInfo_Extension_Component_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + SourceInfo_Extension_Component_descriptor(), enum_t_value); +} +inline bool SourceInfo_Extension_Component_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SourceInfo_Extension_Component* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + SourceInfo_Extension_Component_descriptor(), name, value); } - // =================================================================== - -// ------------------------------------------------------------------- - -class SourcePosition final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.SourcePosition) */ { +class ParsedExpr final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.ParsedExpr) */ { public: - inline SourcePosition() : SourcePosition(nullptr) {} - ~SourcePosition() override; - template - explicit PROTOBUF_CONSTEXPR SourcePosition(::google::protobuf::internal::ConstantInitialized); + inline ParsedExpr() : ParsedExpr(nullptr) {} + ~ParsedExpr() override; + explicit PROTOBUF_CONSTEXPR ParsedExpr(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline SourcePosition(const SourcePosition& from) - : SourcePosition(nullptr, from) {} - SourcePosition(SourcePosition&& from) noexcept - : SourcePosition() { + ParsedExpr(const ParsedExpr& from); + ParsedExpr(ParsedExpr&& from) noexcept + : ParsedExpr() { *this = ::std::move(from); } - inline SourcePosition& operator=(const SourcePosition& from) { + inline ParsedExpr& operator=(const ParsedExpr& from) { CopyFrom(from); return *this; } - inline SourcePosition& operator=(SourcePosition&& from) noexcept { + inline ParsedExpr& operator=(ParsedExpr&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -199,240 +190,169 @@ class SourcePosition final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SourcePosition& default_instance() { + static const ParsedExpr& default_instance() { return *internal_default_instance(); } - static inline const SourcePosition* internal_default_instance() { - return reinterpret_cast( - &_SourcePosition_default_instance_); + static inline const ParsedExpr* internal_default_instance() { + return reinterpret_cast( + &_ParsedExpr_default_instance_); } static constexpr int kIndexInFileMessages = - 15; + 0; - friend void swap(SourcePosition& a, SourcePosition& b) { + friend void swap(ParsedExpr& a, ParsedExpr& b) { a.Swap(&b); } - inline void Swap(SourcePosition* other) { + inline void Swap(ParsedExpr* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SourcePosition* other) { + void UnsafeArenaSwap(ParsedExpr* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SourcePosition* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SourcePosition& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SourcePosition& from) { - SourcePosition::MergeImpl(*this, from); + ParsedExpr* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ParsedExpr& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ParsedExpr& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(SourcePosition* other); + void SetCachedSize(int size) const final; + void InternalSwap(ParsedExpr* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.expr.v1alpha1.SourcePosition"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.ParsedExpr"; } protected: - explicit SourcePosition(::google::protobuf::Arena* arena); - SourcePosition(::google::protobuf::Arena* arena, const SourcePosition& from); + explicit ParsedExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kLocationFieldNumber = 1, - kOffsetFieldNumber = 2, - kLineFieldNumber = 3, - kColumnFieldNumber = 4, + kExprFieldNumber = 2, + kSourceInfoFieldNumber = 3, }; - // string location = 1 [json_name = "location"]; - void clear_location() ; - const std::string& location() const; - template - void set_location(Arg_&& arg, Args_... args); - std::string* mutable_location(); - PROTOBUF_NODISCARD std::string* release_location(); - void set_allocated_location(std::string* value); - + // .google.api.expr.v1alpha1.Expr expr = 2 [json_name = "expr"]; + bool has_expr() const; private: - const std::string& _internal_location() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_location( - const std::string& value); - std::string* _internal_mutable_location(); - + bool _internal_has_expr() const; public: - // int32 offset = 2 [json_name = "offset"]; - void clear_offset() ; - ::int32_t offset() const; - void set_offset(::int32_t value); - + void clear_expr(); + const ::google::api::expr::v1alpha1::Expr& expr() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Expr* release_expr(); + ::google::api::expr::v1alpha1::Expr* mutable_expr(); + void set_allocated_expr(::google::api::expr::v1alpha1::Expr* expr); private: - ::int32_t _internal_offset() const; - void _internal_set_offset(::int32_t value); - + const ::google::api::expr::v1alpha1::Expr& _internal_expr() const; + ::google::api::expr::v1alpha1::Expr* _internal_mutable_expr(); public: - // int32 line = 3 [json_name = "line"]; - void clear_line() ; - ::int32_t line() const; - void set_line(::int32_t value); + void unsafe_arena_set_allocated_expr( + ::google::api::expr::v1alpha1::Expr* expr); + ::google::api::expr::v1alpha1::Expr* unsafe_arena_release_expr(); + // .google.api.expr.v1alpha1.SourceInfo source_info = 3 [json_name = "sourceInfo"]; + bool has_source_info() const; private: - ::int32_t _internal_line() const; - void _internal_set_line(::int32_t value); - + bool _internal_has_source_info() const; public: - // int32 column = 4 [json_name = "column"]; - void clear_column() ; - ::int32_t column() const; - void set_column(::int32_t value); - + void clear_source_info(); + const ::google::api::expr::v1alpha1::SourceInfo& source_info() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::SourceInfo* release_source_info(); + ::google::api::expr::v1alpha1::SourceInfo* mutable_source_info(); + void set_allocated_source_info(::google::api::expr::v1alpha1::SourceInfo* source_info); private: - ::int32_t _internal_column() const; - void _internal_set_column(::int32_t value); - + const ::google::api::expr::v1alpha1::SourceInfo& _internal_source_info() const; + ::google::api::expr::v1alpha1::SourceInfo* _internal_mutable_source_info(); public: - // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.SourcePosition) + void unsafe_arena_set_allocated_source_info( + ::google::api::expr::v1alpha1::SourceInfo* source_info); + ::google::api::expr::v1alpha1::SourceInfo* unsafe_arena_release_source_info(); + + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.ParsedExpr) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 0, - 56, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr location_; - ::int32_t offset_; - ::int32_t line_; - ::int32_t column_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto; -};// ------------------------------------------------------------------- - -class SourceInfo_PositionsEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry< - SourceInfo_PositionsEntry_DoNotUse, ::int64_t, ::int32_t, - ::google::protobuf::internal::WireFormatLite::TYPE_INT64, - ::google::protobuf::internal::WireFormatLite::TYPE_INT32> { - public: - using SuperType = ::google::protobuf::internal::MapEntry< - SourceInfo_PositionsEntry_DoNotUse, ::int64_t, ::int32_t, - ::google::protobuf::internal::WireFormatLite::TYPE_INT64, - ::google::protobuf::internal::WireFormatLite::TYPE_INT32>; - SourceInfo_PositionsEntry_DoNotUse(); - template - explicit PROTOBUF_CONSTEXPR SourceInfo_PositionsEntry_DoNotUse( - ::google::protobuf::internal::ConstantInitialized); - explicit SourceInfo_PositionsEntry_DoNotUse(::google::protobuf::Arena* arena); - static const SourceInfo_PositionsEntry_DoNotUse* internal_default_instance() { - return reinterpret_cast( - &_SourceInfo_PositionsEntry_DoNotUse_default_instance_); - } - static bool ValidateKey(void*) { return true; } - static bool ValidateValue(void*) { return true; } - ::google::protobuf::Metadata GetMetadata() const final; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::google::api::expr::v1alpha1::Expr* expr_; + ::google::api::expr::v1alpha1::SourceInfo* source_info_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto; }; // ------------------------------------------------------------------- -class SourceInfo_Extension_Version final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.SourceInfo.Extension.Version) */ { +class Expr_Ident final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Expr.Ident) */ { public: - inline SourceInfo_Extension_Version() : SourceInfo_Extension_Version(nullptr) {} - ~SourceInfo_Extension_Version() override; - template - explicit PROTOBUF_CONSTEXPR SourceInfo_Extension_Version(::google::protobuf::internal::ConstantInitialized); + inline Expr_Ident() : Expr_Ident(nullptr) {} + ~Expr_Ident() override; + explicit PROTOBUF_CONSTEXPR Expr_Ident(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline SourceInfo_Extension_Version(const SourceInfo_Extension_Version& from) - : SourceInfo_Extension_Version(nullptr, from) {} - SourceInfo_Extension_Version(SourceInfo_Extension_Version&& from) noexcept - : SourceInfo_Extension_Version() { + Expr_Ident(const Expr_Ident& from); + Expr_Ident(Expr_Ident&& from) noexcept + : Expr_Ident() { *this = ::std::move(from); } - inline SourceInfo_Extension_Version& operator=(const SourceInfo_Extension_Version& from) { + inline Expr_Ident& operator=(const Expr_Ident& from) { CopyFrom(from); return *this; } - inline SourceInfo_Extension_Version& operator=(SourceInfo_Extension_Version&& from) noexcept { + inline Expr_Ident& operator=(Expr_Ident&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -442,184 +362,145 @@ class SourceInfo_Extension_Version final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SourceInfo_Extension_Version& default_instance() { + static const Expr_Ident& default_instance() { return *internal_default_instance(); } - static inline const SourceInfo_Extension_Version* internal_default_instance() { - return reinterpret_cast( - &_SourceInfo_Extension_Version_default_instance_); + static inline const Expr_Ident* internal_default_instance() { + return reinterpret_cast( + &_Expr_Ident_default_instance_); } static constexpr int kIndexInFileMessages = - 10; + 1; - friend void swap(SourceInfo_Extension_Version& a, SourceInfo_Extension_Version& b) { + friend void swap(Expr_Ident& a, Expr_Ident& b) { a.Swap(&b); } - inline void Swap(SourceInfo_Extension_Version* other) { + inline void Swap(Expr_Ident* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SourceInfo_Extension_Version* other) { + void UnsafeArenaSwap(Expr_Ident* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SourceInfo_Extension_Version* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SourceInfo_Extension_Version& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SourceInfo_Extension_Version& from) { - SourceInfo_Extension_Version::MergeImpl(*this, from); + Expr_Ident* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Expr_Ident& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Expr_Ident& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(SourceInfo_Extension_Version* other); + void SetCachedSize(int size) const final; + void InternalSwap(Expr_Ident* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.expr.v1alpha1.SourceInfo.Extension.Version"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.Expr.Ident"; } protected: - explicit SourceInfo_Extension_Version(::google::protobuf::Arena* arena); - SourceInfo_Extension_Version(::google::protobuf::Arena* arena, const SourceInfo_Extension_Version& from); + explicit Expr_Ident(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kMajorFieldNumber = 1, - kMinorFieldNumber = 2, + kNameFieldNumber = 1, }; - // int64 major = 1 [json_name = "major"]; - void clear_major() ; - ::int64_t major() const; - void set_major(::int64_t value); - + // 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: - ::int64_t _internal_major() const; - void _internal_set_major(::int64_t value); - + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); public: - // int64 minor = 2 [json_name = "minor"]; - void clear_minor() ; - ::int64_t minor() const; - void set_minor(::int64_t value); - - private: - ::int64_t _internal_minor() const; - void _internal_set_minor(::int64_t value); - public: - // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.SourceInfo.Extension.Version) + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Expr.Ident) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::int64_t major_; - ::int64_t minor_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Expr_Ident final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Expr.Ident) */ { +class Expr_Select final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Expr.Select) */ { public: - inline Expr_Ident() : Expr_Ident(nullptr) {} - ~Expr_Ident() override; - template - explicit PROTOBUF_CONSTEXPR Expr_Ident(::google::protobuf::internal::ConstantInitialized); + inline Expr_Select() : Expr_Select(nullptr) {} + ~Expr_Select() override; + explicit PROTOBUF_CONSTEXPR Expr_Select(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Expr_Ident(const Expr_Ident& from) - : Expr_Ident(nullptr, from) {} - Expr_Ident(Expr_Ident&& from) noexcept - : Expr_Ident() { + Expr_Select(const Expr_Select& from); + Expr_Select(Expr_Select&& from) noexcept + : Expr_Select() { *this = ::std::move(from); } - inline Expr_Ident& operator=(const Expr_Ident& from) { + inline Expr_Select& operator=(const Expr_Select& from) { CopyFrom(from); return *this; } - inline Expr_Ident& operator=(Expr_Ident&& from) noexcept { + inline Expr_Select& operator=(Expr_Select&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -629,178 +510,176 @@ class Expr_Ident final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Expr_Ident& default_instance() { + static const Expr_Select& default_instance() { return *internal_default_instance(); } - static inline const Expr_Ident* internal_default_instance() { - return reinterpret_cast( - &_Expr_Ident_default_instance_); + static inline const Expr_Select* internal_default_instance() { + return reinterpret_cast( + &_Expr_Select_default_instance_); } static constexpr int kIndexInFileMessages = - 1; + 2; - friend void swap(Expr_Ident& a, Expr_Ident& b) { + friend void swap(Expr_Select& a, Expr_Select& b) { a.Swap(&b); } - inline void Swap(Expr_Ident* other) { + inline void Swap(Expr_Select* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Expr_Ident* other) { + void UnsafeArenaSwap(Expr_Select* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Expr_Ident* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Expr_Ident& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Expr_Ident& from) { - Expr_Ident::MergeImpl(*this, from); + Expr_Select* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Expr_Select& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Expr_Select& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Expr_Ident* other); + void SetCachedSize(int size) const final; + void InternalSwap(Expr_Select* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.expr.v1alpha1.Expr.Ident"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.Expr.Select"; } protected: - explicit Expr_Ident(::google::protobuf::Arena* arena); - Expr_Ident(::google::protobuf::Arena* arena, const Expr_Ident& from); + explicit Expr_Select(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kNameFieldNumber = 1, + kFieldFieldNumber = 2, + kOperandFieldNumber = 1, + kTestOnlyFieldNumber = 3, }; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); + // string field = 2 [json_name = "field"]; + void clear_field(); + const std::string& field() const; + template + void set_field(ArgT0&& arg0, ArgT... args); + std::string* mutable_field(); + PROTOBUF_NODISCARD std::string* release_field(); + void set_allocated_field(std::string* field); + private: + const std::string& _internal_field() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_field(const std::string& value); + std::string* _internal_mutable_field(); + public: + // .google.api.expr.v1alpha1.Expr operand = 1 [json_name = "operand"]; + bool has_operand() const; private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); + bool _internal_has_operand() const; + public: + void clear_operand(); + const ::google::api::expr::v1alpha1::Expr& operand() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Expr* release_operand(); + ::google::api::expr::v1alpha1::Expr* mutable_operand(); + void set_allocated_operand(::google::api::expr::v1alpha1::Expr* operand); + private: + const ::google::api::expr::v1alpha1::Expr& _internal_operand() const; + ::google::api::expr::v1alpha1::Expr* _internal_mutable_operand(); + public: + void unsafe_arena_set_allocated_operand( + ::google::api::expr::v1alpha1::Expr* operand); + ::google::api::expr::v1alpha1::Expr* unsafe_arena_release_operand(); + // bool test_only = 3 [json_name = "testOnly"]; + void clear_test_only(); + bool test_only() const; + void set_test_only(bool value); + private: + bool _internal_test_only() const; + void _internal_set_test_only(bool value); public: - // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Expr.Ident) + + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Expr.Select) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 48, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr name_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr field_; + ::google::api::expr::v1alpha1::Expr* operand_; + bool test_only_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SourceInfo_Extension final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.SourceInfo.Extension) */ { +class Expr_Call final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Expr.Call) */ { public: - inline SourceInfo_Extension() : SourceInfo_Extension(nullptr) {} - ~SourceInfo_Extension() override; - template - explicit PROTOBUF_CONSTEXPR SourceInfo_Extension(::google::protobuf::internal::ConstantInitialized); + inline Expr_Call() : Expr_Call(nullptr) {} + ~Expr_Call() override; + explicit PROTOBUF_CONSTEXPR Expr_Call(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline SourceInfo_Extension(const SourceInfo_Extension& from) - : SourceInfo_Extension(nullptr, from) {} - SourceInfo_Extension(SourceInfo_Extension&& from) noexcept - : SourceInfo_Extension() { + Expr_Call(const Expr_Call& from); + Expr_Call(Expr_Call&& from) noexcept + : Expr_Call() { *this = ::std::move(from); } - inline SourceInfo_Extension& operator=(const SourceInfo_Extension& from) { + inline Expr_Call& operator=(const Expr_Call& from) { CopyFrom(from); return *this; } - inline SourceInfo_Extension& operator=(SourceInfo_Extension&& from) noexcept { + inline Expr_Call& operator=(Expr_Call&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -810,242 +689,185 @@ class SourceInfo_Extension final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SourceInfo_Extension& default_instance() { + static const Expr_Call& default_instance() { return *internal_default_instance(); } - static inline const SourceInfo_Extension* internal_default_instance() { - return reinterpret_cast( - &_SourceInfo_Extension_default_instance_); + static inline const Expr_Call* internal_default_instance() { + return reinterpret_cast( + &_Expr_Call_default_instance_); } static constexpr int kIndexInFileMessages = - 11; + 3; - friend void swap(SourceInfo_Extension& a, SourceInfo_Extension& b) { + friend void swap(Expr_Call& a, Expr_Call& b) { a.Swap(&b); } - inline void Swap(SourceInfo_Extension* other) { + inline void Swap(Expr_Call* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SourceInfo_Extension* other) { + void UnsafeArenaSwap(Expr_Call* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SourceInfo_Extension* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SourceInfo_Extension& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SourceInfo_Extension& from) { - SourceInfo_Extension::MergeImpl(*this, from); + Expr_Call* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Expr_Call& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Expr_Call& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(SourceInfo_Extension* other); + void SetCachedSize(int size) const final; + void InternalSwap(Expr_Call* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.expr.v1alpha1.SourceInfo.Extension"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.Expr.Call"; } protected: - explicit SourceInfo_Extension(::google::protobuf::Arena* arena); - SourceInfo_Extension(::google::protobuf::Arena* arena, const SourceInfo_Extension& from); + explicit Expr_Call(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- - using Version = SourceInfo_Extension_Version; - - using Component = SourceInfo_Extension_Component; - static constexpr Component COMPONENT_UNSPECIFIED = SourceInfo_Extension_Component_COMPONENT_UNSPECIFIED; - static constexpr Component COMPONENT_PARSER = SourceInfo_Extension_Component_COMPONENT_PARSER; - static constexpr Component COMPONENT_TYPE_CHECKER = SourceInfo_Extension_Component_COMPONENT_TYPE_CHECKER; - static constexpr Component COMPONENT_RUNTIME = SourceInfo_Extension_Component_COMPONENT_RUNTIME; - static inline bool Component_IsValid(int value) { - return SourceInfo_Extension_Component_IsValid(value); - } - static constexpr Component Component_MIN = SourceInfo_Extension_Component_Component_MIN; - static constexpr Component Component_MAX = SourceInfo_Extension_Component_Component_MAX; - static constexpr int Component_ARRAYSIZE = SourceInfo_Extension_Component_Component_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* Component_descriptor() { - return SourceInfo_Extension_Component_descriptor(); - } - template - static inline const std::string& Component_Name(T value) { - return SourceInfo_Extension_Component_Name(value); - } - static inline bool Component_Parse(absl::string_view name, Component* value) { - return SourceInfo_Extension_Component_Parse(name, value); - } - // accessors ------------------------------------------------------- enum : int { - kAffectedComponentsFieldNumber = 2, - kIdFieldNumber = 1, - kVersionFieldNumber = 3, + kArgsFieldNumber = 3, + kFunctionFieldNumber = 2, + kTargetFieldNumber = 1, }; - // repeated .google.api.expr.v1alpha1.SourceInfo.Extension.Component affected_components = 2 [json_name = "affectedComponents"]; - int affected_components_size() const; + // repeated .google.api.expr.v1alpha1.Expr args = 3 [json_name = "args"]; + int args_size() const; private: - int _internal_affected_components_size() const; - + int _internal_args_size() const; public: - void clear_affected_components() ; + void clear_args(); + ::google::api::expr::v1alpha1::Expr* mutable_args(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Expr >* + mutable_args(); + private: + const ::google::api::expr::v1alpha1::Expr& _internal_args(int index) const; + ::google::api::expr::v1alpha1::Expr* _internal_add_args(); public: - ::google::api::expr::v1alpha1::SourceInfo_Extension_Component affected_components(int index) const; - void set_affected_components(int index, ::google::api::expr::v1alpha1::SourceInfo_Extension_Component value); - void add_affected_components(::google::api::expr::v1alpha1::SourceInfo_Extension_Component value); - const ::google::protobuf::RepeatedField& affected_components() const; - ::google::protobuf::RepeatedField* mutable_affected_components(); + const ::google::api::expr::v1alpha1::Expr& args(int index) const; + ::google::api::expr::v1alpha1::Expr* add_args(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Expr >& + args() const; + // string function = 2 [json_name = "function"]; + void clear_function(); + const std::string& function() const; + template + void set_function(ArgT0&& arg0, ArgT... args); + std::string* mutable_function(); + PROTOBUF_NODISCARD std::string* release_function(); + void set_allocated_function(std::string* function); private: - const ::google::protobuf::RepeatedField& _internal_affected_components() const; - ::google::protobuf::RepeatedField* _internal_mutable_affected_components(); - + const std::string& _internal_function() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_function(const std::string& value); + std::string* _internal_mutable_function(); public: - // string id = 1 [json_name = "id"]; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); + // .google.api.expr.v1alpha1.Expr target = 1 [json_name = "target"]; + bool has_target() const; private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); - + bool _internal_has_target() const; public: - // .google.api.expr.v1alpha1.SourceInfo.Extension.Version version = 3 [json_name = "version"]; - bool has_version() const; - void clear_version() ; - const ::google::api::expr::v1alpha1::SourceInfo_Extension_Version& version() const; - PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::SourceInfo_Extension_Version* release_version(); - ::google::api::expr::v1alpha1::SourceInfo_Extension_Version* mutable_version(); - void set_allocated_version(::google::api::expr::v1alpha1::SourceInfo_Extension_Version* value); - void unsafe_arena_set_allocated_version(::google::api::expr::v1alpha1::SourceInfo_Extension_Version* value); - ::google::api::expr::v1alpha1::SourceInfo_Extension_Version* unsafe_arena_release_version(); - + void clear_target(); + const ::google::api::expr::v1alpha1::Expr& target() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Expr* release_target(); + ::google::api::expr::v1alpha1::Expr* mutable_target(); + void set_allocated_target(::google::api::expr::v1alpha1::Expr* target); private: - const ::google::api::expr::v1alpha1::SourceInfo_Extension_Version& _internal_version() const; - ::google::api::expr::v1alpha1::SourceInfo_Extension_Version* _internal_mutable_version(); - + const ::google::api::expr::v1alpha1::Expr& _internal_target() const; + ::google::api::expr::v1alpha1::Expr* _internal_mutable_target(); public: - // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.SourceInfo.Extension) + void unsafe_arena_set_allocated_target( + ::google::api::expr::v1alpha1::Expr* target); + ::google::api::expr::v1alpha1::Expr* unsafe_arena_release_target(); + + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Expr.Call) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 1, - 56, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedField affected_components_; - mutable ::google::protobuf::internal::CachedSize _affected_components_cached_byte_size_; - ::google::protobuf::internal::ArenaStringPtr id_; - ::google::api::expr::v1alpha1::SourceInfo_Extension_Version* version_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Expr > args_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr function_; + ::google::api::expr::v1alpha1::Expr* target_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Constant final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Constant) */ { +class Expr_CreateList final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Expr.CreateList) */ { public: - inline Constant() : Constant(nullptr) {} - ~Constant() override; - template - explicit PROTOBUF_CONSTEXPR Constant(::google::protobuf::internal::ConstantInitialized); + inline Expr_CreateList() : Expr_CreateList(nullptr) {} + ~Expr_CreateList() override; + explicit PROTOBUF_CONSTEXPR Expr_CreateList(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Constant(const Constant& from) - : Constant(nullptr, from) {} - Constant(Constant&& from) noexcept - : Constant() { + Expr_CreateList(const Expr_CreateList& from); + Expr_CreateList(Expr_CreateList&& from) noexcept + : Expr_CreateList() { *this = ::std::move(from); } - inline Constant& operator=(const Constant& from) { + inline Expr_CreateList& operator=(const Expr_CreateList& from) { CopyFrom(from); return *this; } - inline Constant& operator=(Constant&& from) noexcept { + inline Expr_CreateList& operator=(Expr_CreateList&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1055,338 +877,174 @@ class Constant final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Constant& default_instance() { + static const Expr_CreateList& default_instance() { return *internal_default_instance(); } - enum ConstantKindCase { - kNullValue = 1, - kBoolValue = 2, - kInt64Value = 3, - kUint64Value = 4, - kDoubleValue = 5, - kStringValue = 6, - kBytesValue = 7, - kDurationValue = 8, - kTimestampValue = 9, - CONSTANT_KIND_NOT_SET = 0, - }; - - static inline const Constant* internal_default_instance() { - return reinterpret_cast( - &_Constant_default_instance_); + static inline const Expr_CreateList* internal_default_instance() { + return reinterpret_cast( + &_Expr_CreateList_default_instance_); } static constexpr int kIndexInFileMessages = - 9; + 4; - friend void swap(Constant& a, Constant& b) { + friend void swap(Expr_CreateList& a, Expr_CreateList& b) { a.Swap(&b); } - inline void Swap(Constant* other) { + inline void Swap(Expr_CreateList* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Constant* other) { + void UnsafeArenaSwap(Expr_CreateList* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Constant* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Constant& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Constant& from) { - Constant::MergeImpl(*this, from); + Expr_CreateList* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Expr_CreateList& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Expr_CreateList& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Constant* other); + void SetCachedSize(int size) const final; + void InternalSwap(Expr_CreateList* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.expr.v1alpha1.Constant"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.Expr.CreateList"; } protected: - explicit Constant(::google::protobuf::Arena* arena); - Constant(::google::protobuf::Arena* arena, const Constant& from); + explicit Expr_CreateList(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kNullValueFieldNumber = 1, - kBoolValueFieldNumber = 2, - kInt64ValueFieldNumber = 3, - kUint64ValueFieldNumber = 4, - kDoubleValueFieldNumber = 5, - kStringValueFieldNumber = 6, - kBytesValueFieldNumber = 7, - kDurationValueFieldNumber = 8, - kTimestampValueFieldNumber = 9, + kElementsFieldNumber = 1, + kOptionalIndicesFieldNumber = 2, }; - // .google.protobuf.NullValue null_value = 1 [json_name = "nullValue"]; - bool has_null_value() const; - void clear_null_value() ; - ::google::protobuf::NullValue null_value() const; - void set_null_value(::google::protobuf::NullValue value); - - private: - ::google::protobuf::NullValue _internal_null_value() const; - void _internal_set_null_value(::google::protobuf::NullValue value); - - public: - // bool bool_value = 2 [json_name = "boolValue"]; - bool has_bool_value() const; - void clear_bool_value() ; - bool bool_value() const; - void set_bool_value(bool value); - - private: - bool _internal_bool_value() const; - void _internal_set_bool_value(bool value); - - public: - // int64 int64_value = 3 [json_name = "int64Value"]; - bool has_int64_value() const; - void clear_int64_value() ; - ::int64_t int64_value() const; - void set_int64_value(::int64_t value); - + // repeated .google.api.expr.v1alpha1.Expr elements = 1 [json_name = "elements"]; + int elements_size() const; private: - ::int64_t _internal_int64_value() const; - void _internal_set_int64_value(::int64_t value); - + int _internal_elements_size() const; public: - // uint64 uint64_value = 4 [json_name = "uint64Value"]; - bool has_uint64_value() const; - void clear_uint64_value() ; - ::uint64_t uint64_value() const; - void set_uint64_value(::uint64_t value); - + void clear_elements(); + ::google::api::expr::v1alpha1::Expr* mutable_elements(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Expr >* + mutable_elements(); private: - ::uint64_t _internal_uint64_value() const; - void _internal_set_uint64_value(::uint64_t value); - + const ::google::api::expr::v1alpha1::Expr& _internal_elements(int index) const; + ::google::api::expr::v1alpha1::Expr* _internal_add_elements(); public: - // double double_value = 5 [json_name = "doubleValue"]; - bool has_double_value() const; - void clear_double_value() ; - double double_value() const; - void set_double_value(double value); + const ::google::api::expr::v1alpha1::Expr& elements(int index) const; + ::google::api::expr::v1alpha1::Expr* add_elements(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Expr >& + elements() const; + // repeated int32 optional_indices = 2 [json_name = "optionalIndices"]; + int optional_indices_size() const; private: - double _internal_double_value() const; - void _internal_set_double_value(double value); - + int _internal_optional_indices_size() const; public: - // string string_value = 6 [json_name = "stringValue"]; - bool has_string_value() const; - void clear_string_value() ; - const std::string& string_value() const; - template - void set_string_value(Arg_&& arg, Args_... args); - std::string* mutable_string_value(); - PROTOBUF_NODISCARD std::string* release_string_value(); - void set_allocated_string_value(std::string* value); - + void clear_optional_indices(); private: - const std::string& _internal_string_value() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_string_value( - const std::string& value); - std::string* _internal_mutable_string_value(); - + int32_t _internal_optional_indices(int index) const; + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& + _internal_optional_indices() const; + void _internal_add_optional_indices(int32_t value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* + _internal_mutable_optional_indices(); public: - // bytes bytes_value = 7 [json_name = "bytesValue"]; - bool has_bytes_value() const; - void clear_bytes_value() ; - const std::string& bytes_value() const; - template - void set_bytes_value(Arg_&& arg, Args_... args); - std::string* mutable_bytes_value(); - PROTOBUF_NODISCARD std::string* release_bytes_value(); - void set_allocated_bytes_value(std::string* value); + int32_t optional_indices(int index) const; + void set_optional_indices(int index, int32_t value); + void add_optional_indices(int32_t value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& + optional_indices() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* + mutable_optional_indices(); - private: - const std::string& _internal_bytes_value() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_bytes_value( - const std::string& value); - std::string* _internal_mutable_bytes_value(); + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Expr.CreateList) + private: + class _Internal; - public: - // .google.protobuf.Duration duration_value = 8 [json_name = "durationValue", deprecated = true]; - [[deprecated]] bool has_duration_value() const; - private: - bool _internal_has_duration_value() const; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Expr > elements_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > optional_indices_; + mutable std::atomic _optional_indices_cached_byte_size_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto; +}; +// ------------------------------------------------------------------- - public: - [[deprecated]] void clear_duration_value() ; - [[deprecated]] const ::google::protobuf::Duration& duration_value() const; - [[deprecated]] PROTOBUF_NODISCARD ::google::protobuf::Duration* release_duration_value(); - [[deprecated]] ::google::protobuf::Duration* mutable_duration_value(); - [[deprecated]] void set_allocated_duration_value(::google::protobuf::Duration* value); - [[deprecated]] void unsafe_arena_set_allocated_duration_value(::google::protobuf::Duration* value); - [[deprecated]] ::google::protobuf::Duration* unsafe_arena_release_duration_value(); +class Expr_CreateStruct_Entry final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Expr.CreateStruct.Entry) */ { + public: + inline Expr_CreateStruct_Entry() : Expr_CreateStruct_Entry(nullptr) {} + ~Expr_CreateStruct_Entry() override; + explicit PROTOBUF_CONSTEXPR Expr_CreateStruct_Entry(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - private: - const ::google::protobuf::Duration& _internal_duration_value() const; - ::google::protobuf::Duration* _internal_mutable_duration_value(); + Expr_CreateStruct_Entry(const Expr_CreateStruct_Entry& from); + Expr_CreateStruct_Entry(Expr_CreateStruct_Entry&& from) noexcept + : Expr_CreateStruct_Entry() { + *this = ::std::move(from); + } - public: - // .google.protobuf.Timestamp timestamp_value = 9 [json_name = "timestampValue", deprecated = true]; - [[deprecated]] bool has_timestamp_value() const; - private: - bool _internal_has_timestamp_value() const; - - public: - [[deprecated]] void clear_timestamp_value() ; - [[deprecated]] const ::google::protobuf::Timestamp& timestamp_value() const; - [[deprecated]] PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_timestamp_value(); - [[deprecated]] ::google::protobuf::Timestamp* mutable_timestamp_value(); - [[deprecated]] void set_allocated_timestamp_value(::google::protobuf::Timestamp* value); - [[deprecated]] void unsafe_arena_set_allocated_timestamp_value(::google::protobuf::Timestamp* value); - [[deprecated]] ::google::protobuf::Timestamp* unsafe_arena_release_timestamp_value(); - - private: - const ::google::protobuf::Timestamp& _internal_timestamp_value() const; - ::google::protobuf::Timestamp* _internal_mutable_timestamp_value(); - - public: - void clear_constant_kind(); - ConstantKindCase constant_kind_case() const; - // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Constant) - private: - class _Internal; - void set_has_null_value(); - void set_has_bool_value(); - void set_has_int64_value(); - void set_has_uint64_value(); - void set_has_double_value(); - void set_has_string_value(); - void set_has_bytes_value(); - void set_has_duration_value(); - void set_has_timestamp_value(); - - inline bool has_constant_kind() const; - inline void clear_has_constant_kind(); - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 9, 2, - 62, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - union ConstantKindUnion { - constexpr ConstantKindUnion() : _constinit_{} {} - ::google::protobuf::internal::ConstantInitialized _constinit_; - int null_value_; - bool bool_value_; - ::int64_t int64_value_; - ::uint64_t uint64_value_; - double double_value_; - ::google::protobuf::internal::ArenaStringPtr string_value_; - ::google::protobuf::internal::ArenaStringPtr bytes_value_; - ::google::protobuf::Duration* duration_value_; - ::google::protobuf::Timestamp* timestamp_value_; - } constant_kind_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t _oneof_case_[1]; - - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto; -};// ------------------------------------------------------------------- - -class Expr final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Expr) */ { - public: - inline Expr() : Expr(nullptr) {} - ~Expr() override; - template - explicit PROTOBUF_CONSTEXPR Expr(::google::protobuf::internal::ConstantInitialized); - - inline Expr(const Expr& from) - : Expr(nullptr, from) {} - Expr(Expr&& from) noexcept - : Expr() { - *this = ::std::move(from); - } - - inline Expr& operator=(const Expr& from) { + inline Expr_CreateStruct_Entry& operator=(const Expr_CreateStruct_Entry& from) { CopyFrom(from); return *this; } - inline Expr& operator=(Expr&& from) noexcept { + inline Expr_CreateStruct_Entry& operator=(Expr_CreateStruct_Entry&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1396,355 +1054,230 @@ class Expr final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Expr& default_instance() { + static const Expr_CreateStruct_Entry& default_instance() { return *internal_default_instance(); } - enum ExprKindCase { - kConstExpr = 3, - kIdentExpr = 4, - kSelectExpr = 5, - kCallExpr = 6, - kListExpr = 7, - kStructExpr = 8, - kComprehensionExpr = 9, - EXPR_KIND_NOT_SET = 0, + enum KeyKindCase { + kFieldKey = 2, + kMapKey = 3, + KEY_KIND_NOT_SET = 0, }; - static inline const Expr* internal_default_instance() { - return reinterpret_cast( - &_Expr_default_instance_); + static inline const Expr_CreateStruct_Entry* internal_default_instance() { + return reinterpret_cast( + &_Expr_CreateStruct_Entry_default_instance_); } static constexpr int kIndexInFileMessages = - 8; + 5; - friend void swap(Expr& a, Expr& b) { + friend void swap(Expr_CreateStruct_Entry& a, Expr_CreateStruct_Entry& b) { a.Swap(&b); } - inline void Swap(Expr* other) { + inline void Swap(Expr_CreateStruct_Entry* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Expr* other) { + void UnsafeArenaSwap(Expr_CreateStruct_Entry* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Expr* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Expr& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Expr& from) { - Expr::MergeImpl(*this, from); + Expr_CreateStruct_Entry* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Expr_CreateStruct_Entry& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Expr_CreateStruct_Entry& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Expr* other); + void SetCachedSize(int size) const final; + void InternalSwap(Expr_CreateStruct_Entry* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.expr.v1alpha1.Expr"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.Expr.CreateStruct.Entry"; } protected: - explicit Expr(::google::protobuf::Arena* arena); - Expr(::google::protobuf::Arena* arena, const Expr& from); + explicit Expr_CreateStruct_Entry(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- - using Ident = Expr_Ident; - using Select = Expr_Select; - using Call = Expr_Call; - using CreateList = Expr_CreateList; - using CreateStruct = Expr_CreateStruct; - using Comprehension = Expr_Comprehension; - // accessors ------------------------------------------------------- enum : int { - kIdFieldNumber = 2, - kConstExprFieldNumber = 3, - kIdentExprFieldNumber = 4, - kSelectExprFieldNumber = 5, - kCallExprFieldNumber = 6, - kListExprFieldNumber = 7, - kStructExprFieldNumber = 8, - kComprehensionExprFieldNumber = 9, + kValueFieldNumber = 4, + kIdFieldNumber = 1, + kOptionalEntryFieldNumber = 5, + kFieldKeyFieldNumber = 2, + kMapKeyFieldNumber = 3, }; - // int64 id = 2 [json_name = "id"]; - void clear_id() ; - ::int64_t id() const; - void set_id(::int64_t value); - - private: - ::int64_t _internal_id() const; - void _internal_set_id(::int64_t value); - - public: - // .google.api.expr.v1alpha1.Constant const_expr = 3 [json_name = "constExpr"]; - bool has_const_expr() const; - private: - bool _internal_has_const_expr() const; - - public: - void clear_const_expr() ; - const ::google::api::expr::v1alpha1::Constant& const_expr() const; - PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Constant* release_const_expr(); - ::google::api::expr::v1alpha1::Constant* mutable_const_expr(); - void set_allocated_const_expr(::google::api::expr::v1alpha1::Constant* value); - void unsafe_arena_set_allocated_const_expr(::google::api::expr::v1alpha1::Constant* value); - ::google::api::expr::v1alpha1::Constant* unsafe_arena_release_const_expr(); - - private: - const ::google::api::expr::v1alpha1::Constant& _internal_const_expr() const; - ::google::api::expr::v1alpha1::Constant* _internal_mutable_const_expr(); - - public: - // .google.api.expr.v1alpha1.Expr.Ident ident_expr = 4 [json_name = "identExpr"]; - bool has_ident_expr() const; - private: - bool _internal_has_ident_expr() const; - - public: - void clear_ident_expr() ; - const ::google::api::expr::v1alpha1::Expr_Ident& ident_expr() const; - PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Expr_Ident* release_ident_expr(); - ::google::api::expr::v1alpha1::Expr_Ident* mutable_ident_expr(); - void set_allocated_ident_expr(::google::api::expr::v1alpha1::Expr_Ident* value); - void unsafe_arena_set_allocated_ident_expr(::google::api::expr::v1alpha1::Expr_Ident* value); - ::google::api::expr::v1alpha1::Expr_Ident* unsafe_arena_release_ident_expr(); - + // .google.api.expr.v1alpha1.Expr value = 4 [json_name = "value"]; + bool has_value() const; private: - const ::google::api::expr::v1alpha1::Expr_Ident& _internal_ident_expr() const; - ::google::api::expr::v1alpha1::Expr_Ident* _internal_mutable_ident_expr(); - + bool _internal_has_value() const; public: - // .google.api.expr.v1alpha1.Expr.Select select_expr = 5 [json_name = "selectExpr"]; - bool has_select_expr() const; + void clear_value(); + const ::google::api::expr::v1alpha1::Expr& value() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Expr* release_value(); + ::google::api::expr::v1alpha1::Expr* mutable_value(); + void set_allocated_value(::google::api::expr::v1alpha1::Expr* value); private: - bool _internal_has_select_expr() const; - + const ::google::api::expr::v1alpha1::Expr& _internal_value() const; + ::google::api::expr::v1alpha1::Expr* _internal_mutable_value(); public: - void clear_select_expr() ; - const ::google::api::expr::v1alpha1::Expr_Select& select_expr() const; - PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Expr_Select* release_select_expr(); - ::google::api::expr::v1alpha1::Expr_Select* mutable_select_expr(); - void set_allocated_select_expr(::google::api::expr::v1alpha1::Expr_Select* value); - void unsafe_arena_set_allocated_select_expr(::google::api::expr::v1alpha1::Expr_Select* value); - ::google::api::expr::v1alpha1::Expr_Select* unsafe_arena_release_select_expr(); - - private: - const ::google::api::expr::v1alpha1::Expr_Select& _internal_select_expr() const; - ::google::api::expr::v1alpha1::Expr_Select* _internal_mutable_select_expr(); + void unsafe_arena_set_allocated_value( + ::google::api::expr::v1alpha1::Expr* value); + ::google::api::expr::v1alpha1::Expr* unsafe_arena_release_value(); - public: - // .google.api.expr.v1alpha1.Expr.Call call_expr = 6 [json_name = "callExpr"]; - bool has_call_expr() const; + // int64 id = 1 [json_name = "id"]; + void clear_id(); + int64_t id() const; + void set_id(int64_t value); private: - bool _internal_has_call_expr() const; - + int64_t _internal_id() const; + void _internal_set_id(int64_t value); public: - void clear_call_expr() ; - const ::google::api::expr::v1alpha1::Expr_Call& call_expr() const; - PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Expr_Call* release_call_expr(); - ::google::api::expr::v1alpha1::Expr_Call* mutable_call_expr(); - void set_allocated_call_expr(::google::api::expr::v1alpha1::Expr_Call* value); - void unsafe_arena_set_allocated_call_expr(::google::api::expr::v1alpha1::Expr_Call* value); - ::google::api::expr::v1alpha1::Expr_Call* unsafe_arena_release_call_expr(); + // bool optional_entry = 5 [json_name = "optionalEntry"]; + void clear_optional_entry(); + bool optional_entry() const; + void set_optional_entry(bool value); private: - const ::google::api::expr::v1alpha1::Expr_Call& _internal_call_expr() const; - ::google::api::expr::v1alpha1::Expr_Call* _internal_mutable_call_expr(); - - public: - // .google.api.expr.v1alpha1.Expr.CreateList list_expr = 7 [json_name = "listExpr"]; - bool has_list_expr() const; - private: - bool _internal_has_list_expr() const; - + bool _internal_optional_entry() const; + void _internal_set_optional_entry(bool value); public: - void clear_list_expr() ; - const ::google::api::expr::v1alpha1::Expr_CreateList& list_expr() const; - PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Expr_CreateList* release_list_expr(); - ::google::api::expr::v1alpha1::Expr_CreateList* mutable_list_expr(); - void set_allocated_list_expr(::google::api::expr::v1alpha1::Expr_CreateList* value); - void unsafe_arena_set_allocated_list_expr(::google::api::expr::v1alpha1::Expr_CreateList* value); - ::google::api::expr::v1alpha1::Expr_CreateList* unsafe_arena_release_list_expr(); + // string field_key = 2 [json_name = "fieldKey"]; + bool has_field_key() const; private: - const ::google::api::expr::v1alpha1::Expr_CreateList& _internal_list_expr() const; - ::google::api::expr::v1alpha1::Expr_CreateList* _internal_mutable_list_expr(); - + bool _internal_has_field_key() const; public: - // .google.api.expr.v1alpha1.Expr.CreateStruct struct_expr = 8 [json_name = "structExpr"]; - bool has_struct_expr() const; + void clear_field_key(); + const std::string& field_key() const; + template + void set_field_key(ArgT0&& arg0, ArgT... args); + std::string* mutable_field_key(); + PROTOBUF_NODISCARD std::string* release_field_key(); + void set_allocated_field_key(std::string* field_key); private: - bool _internal_has_struct_expr() const; - + const std::string& _internal_field_key() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_field_key(const std::string& value); + std::string* _internal_mutable_field_key(); public: - void clear_struct_expr() ; - const ::google::api::expr::v1alpha1::Expr_CreateStruct& struct_expr() const; - PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Expr_CreateStruct* release_struct_expr(); - ::google::api::expr::v1alpha1::Expr_CreateStruct* mutable_struct_expr(); - void set_allocated_struct_expr(::google::api::expr::v1alpha1::Expr_CreateStruct* value); - void unsafe_arena_set_allocated_struct_expr(::google::api::expr::v1alpha1::Expr_CreateStruct* value); - ::google::api::expr::v1alpha1::Expr_CreateStruct* unsafe_arena_release_struct_expr(); + // .google.api.expr.v1alpha1.Expr map_key = 3 [json_name = "mapKey"]; + bool has_map_key() const; private: - const ::google::api::expr::v1alpha1::Expr_CreateStruct& _internal_struct_expr() const; - ::google::api::expr::v1alpha1::Expr_CreateStruct* _internal_mutable_struct_expr(); - + bool _internal_has_map_key() const; public: - // .google.api.expr.v1alpha1.Expr.Comprehension comprehension_expr = 9 [json_name = "comprehensionExpr"]; - bool has_comprehension_expr() const; + void clear_map_key(); + const ::google::api::expr::v1alpha1::Expr& map_key() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Expr* release_map_key(); + ::google::api::expr::v1alpha1::Expr* mutable_map_key(); + void set_allocated_map_key(::google::api::expr::v1alpha1::Expr* map_key); private: - bool _internal_has_comprehension_expr() const; - + const ::google::api::expr::v1alpha1::Expr& _internal_map_key() const; + ::google::api::expr::v1alpha1::Expr* _internal_mutable_map_key(); public: - void clear_comprehension_expr() ; - const ::google::api::expr::v1alpha1::Expr_Comprehension& comprehension_expr() const; - PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Expr_Comprehension* release_comprehension_expr(); - ::google::api::expr::v1alpha1::Expr_Comprehension* mutable_comprehension_expr(); - void set_allocated_comprehension_expr(::google::api::expr::v1alpha1::Expr_Comprehension* value); - void unsafe_arena_set_allocated_comprehension_expr(::google::api::expr::v1alpha1::Expr_Comprehension* value); - ::google::api::expr::v1alpha1::Expr_Comprehension* unsafe_arena_release_comprehension_expr(); - - private: - const ::google::api::expr::v1alpha1::Expr_Comprehension& _internal_comprehension_expr() const; - ::google::api::expr::v1alpha1::Expr_Comprehension* _internal_mutable_comprehension_expr(); + void unsafe_arena_set_allocated_map_key( + ::google::api::expr::v1alpha1::Expr* map_key); + ::google::api::expr::v1alpha1::Expr* unsafe_arena_release_map_key(); - public: - void clear_expr_kind(); - ExprKindCase expr_kind_case() const; - // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Expr) + void clear_key_kind(); + KeyKindCase key_kind_case() const; + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Expr.CreateStruct.Entry) private: class _Internal; - void set_has_const_expr(); - void set_has_ident_expr(); - void set_has_select_expr(); - void set_has_call_expr(); - void set_has_list_expr(); - void set_has_struct_expr(); - void set_has_comprehension_expr(); + void set_has_field_key(); + void set_has_map_key(); - inline bool has_expr_kind() const; - inline void clear_has_expr_kind(); + inline bool has_key_kind() const; + inline void clear_has_key_kind(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::google::api::expr::v1alpha1::Expr* value_; + int64_t id_; + bool optional_entry_; + union KeyKindUnion { + constexpr KeyKindUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr field_key_; + ::google::api::expr::v1alpha1::Expr* map_key_; + } key_kind_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 8, 7, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::int64_t id_; - union ExprKindUnion { - constexpr ExprKindUnion() : _constinit_{} {} - ::google::protobuf::internal::ConstantInitialized _constinit_; - ::google::api::expr::v1alpha1::Constant* const_expr_; - ::google::api::expr::v1alpha1::Expr_Ident* ident_expr_; - ::google::api::expr::v1alpha1::Expr_Select* select_expr_; - ::google::api::expr::v1alpha1::Expr_Call* call_expr_; - ::google::api::expr::v1alpha1::Expr_CreateList* list_expr_; - ::google::api::expr::v1alpha1::Expr_CreateStruct* struct_expr_; - ::google::api::expr::v1alpha1::Expr_Comprehension* comprehension_expr_; - } expr_kind_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t _oneof_case_[1]; - - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Expr_Call final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Expr.Call) */ { +class Expr_CreateStruct final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Expr.CreateStruct) */ { public: - inline Expr_Call() : Expr_Call(nullptr) {} - ~Expr_Call() override; - template - explicit PROTOBUF_CONSTEXPR Expr_Call(::google::protobuf::internal::ConstantInitialized); + inline Expr_CreateStruct() : Expr_CreateStruct(nullptr) {} + ~Expr_CreateStruct() override; + explicit PROTOBUF_CONSTEXPR Expr_CreateStruct(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Expr_Call(const Expr_Call& from) - : Expr_Call(nullptr, from) {} - Expr_Call(Expr_Call&& from) noexcept - : Expr_Call() { + Expr_CreateStruct(const Expr_CreateStruct& from); + Expr_CreateStruct(Expr_CreateStruct&& from) noexcept + : Expr_CreateStruct() { *this = ::std::move(from); } - inline Expr_Call& operator=(const Expr_Call& from) { + inline Expr_CreateStruct& operator=(const Expr_CreateStruct& from) { CopyFrom(from); return *this; } - inline Expr_Call& operator=(Expr_Call&& from) noexcept { + inline Expr_CreateStruct& operator=(Expr_CreateStruct&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1754,202 +1287,153 @@ class Expr_Call final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Expr_Call& default_instance() { + static const Expr_CreateStruct& default_instance() { return *internal_default_instance(); } - static inline const Expr_Call* internal_default_instance() { - return reinterpret_cast( - &_Expr_Call_default_instance_); + static inline const Expr_CreateStruct* internal_default_instance() { + return reinterpret_cast( + &_Expr_CreateStruct_default_instance_); } static constexpr int kIndexInFileMessages = - 3; + 6; - friend void swap(Expr_Call& a, Expr_Call& b) { + friend void swap(Expr_CreateStruct& a, Expr_CreateStruct& b) { a.Swap(&b); } - inline void Swap(Expr_Call* other) { + inline void Swap(Expr_CreateStruct* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Expr_Call* other) { + void UnsafeArenaSwap(Expr_CreateStruct* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Expr_Call* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Expr_Call& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Expr_Call& from) { - Expr_Call::MergeImpl(*this, from); + Expr_CreateStruct* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Expr_CreateStruct& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Expr_CreateStruct& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Expr_Call* other); + void SetCachedSize(int size) const final; + void InternalSwap(Expr_CreateStruct* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.expr.v1alpha1.Expr.Call"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.Expr.CreateStruct"; } protected: - explicit Expr_Call(::google::protobuf::Arena* arena); - Expr_Call(::google::protobuf::Arena* arena, const Expr_Call& from); + explicit Expr_CreateStruct(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- + typedef Expr_CreateStruct_Entry Entry; + // accessors ------------------------------------------------------- enum : int { - kArgsFieldNumber = 3, - kFunctionFieldNumber = 2, - kTargetFieldNumber = 1, + kEntriesFieldNumber = 2, + kMessageNameFieldNumber = 1, }; - // repeated .google.api.expr.v1alpha1.Expr args = 3 [json_name = "args"]; - int args_size() const; + // repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"]; + int entries_size() const; private: - int _internal_args_size() const; - + int _internal_entries_size() const; public: - void clear_args() ; - ::google::api::expr::v1alpha1::Expr* mutable_args(int index); - ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1alpha1::Expr >* - mutable_args(); + void clear_entries(); + ::google::api::expr::v1alpha1::Expr_CreateStruct_Entry* mutable_entries(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Expr_CreateStruct_Entry >* + mutable_entries(); private: - const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Expr>& _internal_args() const; - ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Expr>* _internal_mutable_args(); + const ::google::api::expr::v1alpha1::Expr_CreateStruct_Entry& _internal_entries(int index) const; + ::google::api::expr::v1alpha1::Expr_CreateStruct_Entry* _internal_add_entries(); public: - const ::google::api::expr::v1alpha1::Expr& args(int index) const; - ::google::api::expr::v1alpha1::Expr* add_args(); - const ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1alpha1::Expr >& - args() const; - // string function = 2 [json_name = "function"]; - void clear_function() ; - const std::string& function() const; - template - void set_function(Arg_&& arg, Args_... args); - std::string* mutable_function(); - PROTOBUF_NODISCARD std::string* release_function(); - void set_allocated_function(std::string* value); + const ::google::api::expr::v1alpha1::Expr_CreateStruct_Entry& entries(int index) const; + ::google::api::expr::v1alpha1::Expr_CreateStruct_Entry* add_entries(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Expr_CreateStruct_Entry >& + entries() const; + // string message_name = 1 [json_name = "messageName"]; + void clear_message_name(); + const std::string& message_name() const; + template + void set_message_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_message_name(); + PROTOBUF_NODISCARD std::string* release_message_name(); + void set_allocated_message_name(std::string* message_name); private: - const std::string& _internal_function() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_function( - const std::string& value); - std::string* _internal_mutable_function(); - + const std::string& _internal_message_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_message_name(const std::string& value); + std::string* _internal_mutable_message_name(); public: - // .google.api.expr.v1alpha1.Expr target = 1 [json_name = "target"]; - bool has_target() const; - void clear_target() ; - const ::google::api::expr::v1alpha1::Expr& target() const; - PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Expr* release_target(); - ::google::api::expr::v1alpha1::Expr* mutable_target(); - void set_allocated_target(::google::api::expr::v1alpha1::Expr* value); - void unsafe_arena_set_allocated_target(::google::api::expr::v1alpha1::Expr* value); - ::google::api::expr::v1alpha1::Expr* unsafe_arena_release_target(); - - private: - const ::google::api::expr::v1alpha1::Expr& _internal_target() const; - ::google::api::expr::v1alpha1::Expr* _internal_mutable_target(); - public: - // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Expr.Call) + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Expr.CreateStruct) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 2, - 51, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1alpha1::Expr > args_; - ::google::protobuf::internal::ArenaStringPtr function_; - ::google::api::expr::v1alpha1::Expr* target_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Expr_CreateStruct_Entry > entries_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class Expr_Comprehension final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Expr.Comprehension) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Expr.Comprehension) */ { public: inline Expr_Comprehension() : Expr_Comprehension(nullptr) {} ~Expr_Comprehension() override; - template - explicit PROTOBUF_CONSTEXPR Expr_Comprehension(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR Expr_Comprehension(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Expr_Comprehension(const Expr_Comprehension& from) - : Expr_Comprehension(nullptr, from) {} + Expr_Comprehension(const Expr_Comprehension& from); Expr_Comprehension(Expr_Comprehension&& from) noexcept : Expr_Comprehension() { *this = ::std::move(from); @@ -1961,9 +1445,9 @@ class Expr_Comprehension final : } inline Expr_Comprehension& operator=(Expr_Comprehension&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1973,22 +1457,13 @@ class Expr_Comprehension final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const Expr_Comprehension& default_instance() { @@ -2007,65 +1482,63 @@ class Expr_Comprehension final : inline void Swap(Expr_Comprehension* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(Expr_Comprehension* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Expr_Comprehension* New(::google::protobuf::Arena* arena = nullptr) const final { + Expr_Comprehension* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const Expr_Comprehension& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Expr_Comprehension& from) { - Expr_Comprehension::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Expr_Comprehension& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(Expr_Comprehension* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "google.api.expr.v1alpha1.Expr.Comprehension"; } protected: - explicit Expr_Comprehension(::google::protobuf::Arena* arena); - Expr_Comprehension(::google::protobuf::Arena* arena, const Expr_Comprehension& from); + explicit Expr_Comprehension(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -2082,191 +1555,179 @@ class Expr_Comprehension final : kResultFieldNumber = 7, }; // string iter_var = 1 [json_name = "iterVar"]; - void clear_iter_var() ; + void clear_iter_var(); const std::string& iter_var() const; - template - void set_iter_var(Arg_&& arg, Args_... args); + template + void set_iter_var(ArgT0&& arg0, ArgT... args); std::string* mutable_iter_var(); PROTOBUF_NODISCARD std::string* release_iter_var(); - void set_allocated_iter_var(std::string* value); - + void set_allocated_iter_var(std::string* iter_var); private: const std::string& _internal_iter_var() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_iter_var( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_iter_var(const std::string& value); std::string* _internal_mutable_iter_var(); - public: + // string accu_var = 3 [json_name = "accuVar"]; - void clear_accu_var() ; + void clear_accu_var(); const std::string& accu_var() const; - template - void set_accu_var(Arg_&& arg, Args_... args); + template + void set_accu_var(ArgT0&& arg0, ArgT... args); std::string* mutable_accu_var(); PROTOBUF_NODISCARD std::string* release_accu_var(); - void set_allocated_accu_var(std::string* value); - + void set_allocated_accu_var(std::string* accu_var); private: const std::string& _internal_accu_var() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_accu_var( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_accu_var(const std::string& value); std::string* _internal_mutable_accu_var(); - public: + // string iter_var2 = 8 [json_name = "iterVar2"]; - void clear_iter_var2() ; + void clear_iter_var2(); const std::string& iter_var2() const; - template - void set_iter_var2(Arg_&& arg, Args_... args); + template + void set_iter_var2(ArgT0&& arg0, ArgT... args); std::string* mutable_iter_var2(); PROTOBUF_NODISCARD std::string* release_iter_var2(); - void set_allocated_iter_var2(std::string* value); - + void set_allocated_iter_var2(std::string* iter_var2); private: const std::string& _internal_iter_var2() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_iter_var2( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_iter_var2(const std::string& value); std::string* _internal_mutable_iter_var2(); - public: + // .google.api.expr.v1alpha1.Expr iter_range = 2 [json_name = "iterRange"]; bool has_iter_range() const; - void clear_iter_range() ; + private: + bool _internal_has_iter_range() const; + public: + void clear_iter_range(); const ::google::api::expr::v1alpha1::Expr& iter_range() const; PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Expr* release_iter_range(); ::google::api::expr::v1alpha1::Expr* mutable_iter_range(); - void set_allocated_iter_range(::google::api::expr::v1alpha1::Expr* value); - void unsafe_arena_set_allocated_iter_range(::google::api::expr::v1alpha1::Expr* value); - ::google::api::expr::v1alpha1::Expr* unsafe_arena_release_iter_range(); - + void set_allocated_iter_range(::google::api::expr::v1alpha1::Expr* iter_range); private: const ::google::api::expr::v1alpha1::Expr& _internal_iter_range() const; ::google::api::expr::v1alpha1::Expr* _internal_mutable_iter_range(); - public: + void unsafe_arena_set_allocated_iter_range( + ::google::api::expr::v1alpha1::Expr* iter_range); + ::google::api::expr::v1alpha1::Expr* unsafe_arena_release_iter_range(); + // .google.api.expr.v1alpha1.Expr accu_init = 4 [json_name = "accuInit"]; bool has_accu_init() const; - void clear_accu_init() ; + private: + bool _internal_has_accu_init() const; + public: + void clear_accu_init(); const ::google::api::expr::v1alpha1::Expr& accu_init() const; PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Expr* release_accu_init(); ::google::api::expr::v1alpha1::Expr* mutable_accu_init(); - void set_allocated_accu_init(::google::api::expr::v1alpha1::Expr* value); - void unsafe_arena_set_allocated_accu_init(::google::api::expr::v1alpha1::Expr* value); - ::google::api::expr::v1alpha1::Expr* unsafe_arena_release_accu_init(); - + void set_allocated_accu_init(::google::api::expr::v1alpha1::Expr* accu_init); private: const ::google::api::expr::v1alpha1::Expr& _internal_accu_init() const; ::google::api::expr::v1alpha1::Expr* _internal_mutable_accu_init(); - public: + void unsafe_arena_set_allocated_accu_init( + ::google::api::expr::v1alpha1::Expr* accu_init); + ::google::api::expr::v1alpha1::Expr* unsafe_arena_release_accu_init(); + // .google.api.expr.v1alpha1.Expr loop_condition = 5 [json_name = "loopCondition"]; bool has_loop_condition() const; - void clear_loop_condition() ; + private: + bool _internal_has_loop_condition() const; + public: + void clear_loop_condition(); const ::google::api::expr::v1alpha1::Expr& loop_condition() const; PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Expr* release_loop_condition(); ::google::api::expr::v1alpha1::Expr* mutable_loop_condition(); - void set_allocated_loop_condition(::google::api::expr::v1alpha1::Expr* value); - void unsafe_arena_set_allocated_loop_condition(::google::api::expr::v1alpha1::Expr* value); - ::google::api::expr::v1alpha1::Expr* unsafe_arena_release_loop_condition(); - + void set_allocated_loop_condition(::google::api::expr::v1alpha1::Expr* loop_condition); private: const ::google::api::expr::v1alpha1::Expr& _internal_loop_condition() const; ::google::api::expr::v1alpha1::Expr* _internal_mutable_loop_condition(); - public: + void unsafe_arena_set_allocated_loop_condition( + ::google::api::expr::v1alpha1::Expr* loop_condition); + ::google::api::expr::v1alpha1::Expr* unsafe_arena_release_loop_condition(); + // .google.api.expr.v1alpha1.Expr loop_step = 6 [json_name = "loopStep"]; bool has_loop_step() const; - void clear_loop_step() ; + private: + bool _internal_has_loop_step() const; + public: + void clear_loop_step(); const ::google::api::expr::v1alpha1::Expr& loop_step() const; PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Expr* release_loop_step(); ::google::api::expr::v1alpha1::Expr* mutable_loop_step(); - void set_allocated_loop_step(::google::api::expr::v1alpha1::Expr* value); - void unsafe_arena_set_allocated_loop_step(::google::api::expr::v1alpha1::Expr* value); - ::google::api::expr::v1alpha1::Expr* unsafe_arena_release_loop_step(); - + void set_allocated_loop_step(::google::api::expr::v1alpha1::Expr* loop_step); private: const ::google::api::expr::v1alpha1::Expr& _internal_loop_step() const; ::google::api::expr::v1alpha1::Expr* _internal_mutable_loop_step(); - public: + void unsafe_arena_set_allocated_loop_step( + ::google::api::expr::v1alpha1::Expr* loop_step); + ::google::api::expr::v1alpha1::Expr* unsafe_arena_release_loop_step(); + // .google.api.expr.v1alpha1.Expr result = 7 [json_name = "result"]; bool has_result() const; - void clear_result() ; + private: + bool _internal_has_result() const; + public: + void clear_result(); const ::google::api::expr::v1alpha1::Expr& result() const; PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Expr* release_result(); ::google::api::expr::v1alpha1::Expr* mutable_result(); - void set_allocated_result(::google::api::expr::v1alpha1::Expr* value); - void unsafe_arena_set_allocated_result(::google::api::expr::v1alpha1::Expr* value); - ::google::api::expr::v1alpha1::Expr* unsafe_arena_release_result(); - + void set_allocated_result(::google::api::expr::v1alpha1::Expr* result); private: const ::google::api::expr::v1alpha1::Expr& _internal_result() const; ::google::api::expr::v1alpha1::Expr* _internal_mutable_result(); - public: + void unsafe_arena_set_allocated_result( + ::google::api::expr::v1alpha1::Expr* result); + ::google::api::expr::v1alpha1::Expr* unsafe_arena_release_result(); + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Expr.Comprehension) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 8, 5, - 85, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr iter_var_; - ::google::protobuf::internal::ArenaStringPtr accu_var_; - ::google::protobuf::internal::ArenaStringPtr iter_var2_; - ::google::api::expr::v1alpha1::Expr* iter_range_; - ::google::api::expr::v1alpha1::Expr* accu_init_; - ::google::api::expr::v1alpha1::Expr* loop_condition_; - ::google::api::expr::v1alpha1::Expr* loop_step_; - ::google::api::expr::v1alpha1::Expr* result_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr iter_var_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr accu_var_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr iter_var2_; + ::google::api::expr::v1alpha1::Expr* iter_range_; + ::google::api::expr::v1alpha1::Expr* accu_init_; + ::google::api::expr::v1alpha1::Expr* loop_condition_; + ::google::api::expr::v1alpha1::Expr* loop_step_; + ::google::api::expr::v1alpha1::Expr* result_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Expr_CreateList final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Expr.CreateList) */ { +class Expr final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Expr) */ { public: - inline Expr_CreateList() : Expr_CreateList(nullptr) {} - ~Expr_CreateList() override; - template - explicit PROTOBUF_CONSTEXPR Expr_CreateList(::google::protobuf::internal::ConstantInitialized); + inline Expr() : Expr(nullptr) {} + ~Expr() override; + explicit PROTOBUF_CONSTEXPR Expr(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Expr_CreateList(const Expr_CreateList& from) - : Expr_CreateList(nullptr, from) {} - Expr_CreateList(Expr_CreateList&& from) noexcept - : Expr_CreateList() { + Expr(const Expr& from); + Expr(Expr&& from) noexcept + : Expr() { *this = ::std::move(from); } - inline Expr_CreateList& operator=(const Expr_CreateList& from) { + inline Expr& operator=(const Expr& from) { CopyFrom(from); return *this; } - inline Expr_CreateList& operator=(Expr_CreateList&& from) noexcept { + inline Expr& operator=(Expr&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2276,201 +1737,316 @@ class Expr_CreateList final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Expr_CreateList& default_instance() { + static const Expr& default_instance() { return *internal_default_instance(); } - static inline const Expr_CreateList* internal_default_instance() { - return reinterpret_cast( - &_Expr_CreateList_default_instance_); + enum ExprKindCase { + kConstExpr = 3, + kIdentExpr = 4, + kSelectExpr = 5, + kCallExpr = 6, + kListExpr = 7, + kStructExpr = 8, + kComprehensionExpr = 9, + EXPR_KIND_NOT_SET = 0, + }; + + static inline const Expr* internal_default_instance() { + return reinterpret_cast( + &_Expr_default_instance_); } static constexpr int kIndexInFileMessages = - 4; + 8; - friend void swap(Expr_CreateList& a, Expr_CreateList& b) { + friend void swap(Expr& a, Expr& b) { a.Swap(&b); } - inline void Swap(Expr_CreateList* other) { + inline void Swap(Expr* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Expr_CreateList* other) { + void UnsafeArenaSwap(Expr* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Expr_CreateList* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + Expr* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Expr_CreateList& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Expr_CreateList& from) { - Expr_CreateList::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Expr& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Expr& 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(Expr* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.Expr"; } + protected: + explicit Expr(::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 ---------------------------------------------------- + + typedef Expr_Ident Ident; + typedef Expr_Select Select; + typedef Expr_Call Call; + typedef Expr_CreateList CreateList; + typedef Expr_CreateStruct CreateStruct; + typedef Expr_Comprehension Comprehension; + + // accessors ------------------------------------------------------- + + enum : int { + kIdFieldNumber = 2, + kConstExprFieldNumber = 3, + kIdentExprFieldNumber = 4, + kSelectExprFieldNumber = 5, + kCallExprFieldNumber = 6, + kListExprFieldNumber = 7, + kStructExprFieldNumber = 8, + kComprehensionExprFieldNumber = 9, + }; + // int64 id = 2 [json_name = "id"]; + void clear_id(); + int64_t id() const; + void set_id(int64_t value); + private: + int64_t _internal_id() const; + void _internal_set_id(int64_t value); + public: + + // .google.api.expr.v1alpha1.Constant const_expr = 3 [json_name = "constExpr"]; + bool has_const_expr() const; + private: + bool _internal_has_const_expr() const; + public: + void clear_const_expr(); + const ::google::api::expr::v1alpha1::Constant& const_expr() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Constant* release_const_expr(); + ::google::api::expr::v1alpha1::Constant* mutable_const_expr(); + void set_allocated_const_expr(::google::api::expr::v1alpha1::Constant* const_expr); + private: + const ::google::api::expr::v1alpha1::Constant& _internal_const_expr() const; + ::google::api::expr::v1alpha1::Constant* _internal_mutable_const_expr(); + public: + void unsafe_arena_set_allocated_const_expr( + ::google::api::expr::v1alpha1::Constant* const_expr); + ::google::api::expr::v1alpha1::Constant* unsafe_arena_release_const_expr(); + + // .google.api.expr.v1alpha1.Expr.Ident ident_expr = 4 [json_name = "identExpr"]; + bool has_ident_expr() const; + private: + bool _internal_has_ident_expr() const; + public: + void clear_ident_expr(); + const ::google::api::expr::v1alpha1::Expr_Ident& ident_expr() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Expr_Ident* release_ident_expr(); + ::google::api::expr::v1alpha1::Expr_Ident* mutable_ident_expr(); + void set_allocated_ident_expr(::google::api::expr::v1alpha1::Expr_Ident* ident_expr); + private: + const ::google::api::expr::v1alpha1::Expr_Ident& _internal_ident_expr() const; + ::google::api::expr::v1alpha1::Expr_Ident* _internal_mutable_ident_expr(); + public: + void unsafe_arena_set_allocated_ident_expr( + ::google::api::expr::v1alpha1::Expr_Ident* ident_expr); + ::google::api::expr::v1alpha1::Expr_Ident* unsafe_arena_release_ident_expr(); + + // .google.api.expr.v1alpha1.Expr.Select select_expr = 5 [json_name = "selectExpr"]; + bool has_select_expr() const; + private: + bool _internal_has_select_expr() const; + public: + void clear_select_expr(); + const ::google::api::expr::v1alpha1::Expr_Select& select_expr() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Expr_Select* release_select_expr(); + ::google::api::expr::v1alpha1::Expr_Select* mutable_select_expr(); + void set_allocated_select_expr(::google::api::expr::v1alpha1::Expr_Select* select_expr); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + const ::google::api::expr::v1alpha1::Expr_Select& _internal_select_expr() const; + ::google::api::expr::v1alpha1::Expr_Select* _internal_mutable_select_expr(); + public: + void unsafe_arena_set_allocated_select_expr( + ::google::api::expr::v1alpha1::Expr_Select* select_expr); + ::google::api::expr::v1alpha1::Expr_Select* unsafe_arena_release_select_expr(); + + // .google.api.expr.v1alpha1.Expr.Call call_expr = 6 [json_name = "callExpr"]; + bool has_call_expr() const; + private: + bool _internal_has_call_expr() const; + public: + void clear_call_expr(); + const ::google::api::expr::v1alpha1::Expr_Call& call_expr() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Expr_Call* release_call_expr(); + ::google::api::expr::v1alpha1::Expr_Call* mutable_call_expr(); + void set_allocated_call_expr(::google::api::expr::v1alpha1::Expr_Call* call_expr); + private: + const ::google::api::expr::v1alpha1::Expr_Call& _internal_call_expr() const; + ::google::api::expr::v1alpha1::Expr_Call* _internal_mutable_call_expr(); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + void unsafe_arena_set_allocated_call_expr( + ::google::api::expr::v1alpha1::Expr_Call* call_expr); + ::google::api::expr::v1alpha1::Expr_Call* unsafe_arena_release_call_expr(); + // .google.api.expr.v1alpha1.Expr.CreateList list_expr = 7 [json_name = "listExpr"]; + bool has_list_expr() const; private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(Expr_CreateList* other); - + bool _internal_has_list_expr() const; + public: + void clear_list_expr(); + const ::google::api::expr::v1alpha1::Expr_CreateList& list_expr() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Expr_CreateList* release_list_expr(); + ::google::api::expr::v1alpha1::Expr_CreateList* mutable_list_expr(); + void set_allocated_list_expr(::google::api::expr::v1alpha1::Expr_CreateList* list_expr); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.expr.v1alpha1.Expr.CreateList"; - } - protected: - explicit Expr_CreateList(::google::protobuf::Arena* arena); - Expr_CreateList(::google::protobuf::Arena* arena, const Expr_CreateList& from); + const ::google::api::expr::v1alpha1::Expr_CreateList& _internal_list_expr() const; + ::google::api::expr::v1alpha1::Expr_CreateList* _internal_mutable_list_expr(); public: + void unsafe_arena_set_allocated_list_expr( + ::google::api::expr::v1alpha1::Expr_CreateList* list_expr); + ::google::api::expr::v1alpha1::Expr_CreateList* unsafe_arena_release_list_expr(); - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kElementsFieldNumber = 1, - kOptionalIndicesFieldNumber = 2, - }; - // repeated .google.api.expr.v1alpha1.Expr elements = 1 [json_name = "elements"]; - int elements_size() const; + // .google.api.expr.v1alpha1.Expr.CreateStruct struct_expr = 8 [json_name = "structExpr"]; + bool has_struct_expr() const; private: - int _internal_elements_size() const; - + bool _internal_has_struct_expr() const; public: - void clear_elements() ; - ::google::api::expr::v1alpha1::Expr* mutable_elements(int index); - ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1alpha1::Expr >* - mutable_elements(); + void clear_struct_expr(); + const ::google::api::expr::v1alpha1::Expr_CreateStruct& struct_expr() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Expr_CreateStruct* release_struct_expr(); + ::google::api::expr::v1alpha1::Expr_CreateStruct* mutable_struct_expr(); + void set_allocated_struct_expr(::google::api::expr::v1alpha1::Expr_CreateStruct* struct_expr); private: - const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Expr>& _internal_elements() const; - ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Expr>* _internal_mutable_elements(); + const ::google::api::expr::v1alpha1::Expr_CreateStruct& _internal_struct_expr() const; + ::google::api::expr::v1alpha1::Expr_CreateStruct* _internal_mutable_struct_expr(); public: - const ::google::api::expr::v1alpha1::Expr& elements(int index) const; - ::google::api::expr::v1alpha1::Expr* add_elements(); - const ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1alpha1::Expr >& - elements() const; - // repeated int32 optional_indices = 2 [json_name = "optionalIndices"]; - int optional_indices_size() const; - private: - int _internal_optional_indices_size() const; + void unsafe_arena_set_allocated_struct_expr( + ::google::api::expr::v1alpha1::Expr_CreateStruct* struct_expr); + ::google::api::expr::v1alpha1::Expr_CreateStruct* unsafe_arena_release_struct_expr(); + // .google.api.expr.v1alpha1.Expr.Comprehension comprehension_expr = 9 [json_name = "comprehensionExpr"]; + bool has_comprehension_expr() const; + private: + bool _internal_has_comprehension_expr() const; public: - void clear_optional_indices() ; - ::int32_t optional_indices(int index) const; - void set_optional_indices(int index, ::int32_t value); - void add_optional_indices(::int32_t value); - const ::google::protobuf::RepeatedField<::int32_t>& optional_indices() const; - ::google::protobuf::RepeatedField<::int32_t>* mutable_optional_indices(); - + void clear_comprehension_expr(); + const ::google::api::expr::v1alpha1::Expr_Comprehension& comprehension_expr() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Expr_Comprehension* release_comprehension_expr(); + ::google::api::expr::v1alpha1::Expr_Comprehension* mutable_comprehension_expr(); + void set_allocated_comprehension_expr(::google::api::expr::v1alpha1::Expr_Comprehension* comprehension_expr); private: - const ::google::protobuf::RepeatedField<::int32_t>& _internal_optional_indices() const; - ::google::protobuf::RepeatedField<::int32_t>* _internal_mutable_optional_indices(); - + const ::google::api::expr::v1alpha1::Expr_Comprehension& _internal_comprehension_expr() const; + ::google::api::expr::v1alpha1::Expr_Comprehension* _internal_mutable_comprehension_expr(); public: - // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Expr.CreateList) + void unsafe_arena_set_allocated_comprehension_expr( + ::google::api::expr::v1alpha1::Expr_Comprehension* comprehension_expr); + ::google::api::expr::v1alpha1::Expr_Comprehension* unsafe_arena_release_comprehension_expr(); + + void clear_expr_kind(); + ExprKindCase expr_kind_case() const; + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Expr) private: class _Internal; + void set_has_const_expr(); + void set_has_ident_expr(); + void set_has_select_expr(); + void set_has_call_expr(); + void set_has_list_expr(); + void set_has_struct_expr(); + void set_has_comprehension_expr(); + + inline bool has_expr_kind() const; + inline void clear_has_expr_kind(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + int64_t id_; + union ExprKindUnion { + constexpr ExprKindUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::google::api::expr::v1alpha1::Constant* const_expr_; + ::google::api::expr::v1alpha1::Expr_Ident* ident_expr_; + ::google::api::expr::v1alpha1::Expr_Select* select_expr_; + ::google::api::expr::v1alpha1::Expr_Call* call_expr_; + ::google::api::expr::v1alpha1::Expr_CreateList* list_expr_; + ::google::api::expr::v1alpha1::Expr_CreateStruct* struct_expr_; + ::google::api::expr::v1alpha1::Expr_Comprehension* comprehension_expr_; + } expr_kind_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1alpha1::Expr > elements_; - ::google::protobuf::RepeatedField<::int32_t> optional_indices_; - mutable ::google::protobuf::internal::CachedSize _optional_indices_cached_byte_size_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Expr_CreateStruct final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Expr.CreateStruct) */ { +class Constant final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Constant) */ { public: - inline Expr_CreateStruct() : Expr_CreateStruct(nullptr) {} - ~Expr_CreateStruct() override; - template - explicit PROTOBUF_CONSTEXPR Expr_CreateStruct(::google::protobuf::internal::ConstantInitialized); + inline Constant() : Constant(nullptr) {} + ~Constant() override; + explicit PROTOBUF_CONSTEXPR Constant(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Expr_CreateStruct(const Expr_CreateStruct& from) - : Expr_CreateStruct(nullptr, from) {} - Expr_CreateStruct(Expr_CreateStruct&& from) noexcept - : Expr_CreateStruct() { + Constant(const Constant& from); + Constant(Constant&& from) noexcept + : Constant() { *this = ::std::move(from); } - inline Expr_CreateStruct& operator=(const Expr_CreateStruct& from) { + inline Constant& operator=(const Constant& from) { CopyFrom(from); return *this; } - inline Expr_CreateStruct& operator=(Expr_CreateStruct&& from) noexcept { + inline Constant& operator=(Constant&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2480,200 +2056,317 @@ class Expr_CreateStruct final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Expr_CreateStruct& default_instance() { + static const Constant& default_instance() { return *internal_default_instance(); } - static inline const Expr_CreateStruct* internal_default_instance() { - return reinterpret_cast( - &_Expr_CreateStruct_default_instance_); + enum ConstantKindCase { + kNullValue = 1, + kBoolValue = 2, + kInt64Value = 3, + kUint64Value = 4, + kDoubleValue = 5, + kStringValue = 6, + kBytesValue = 7, + kDurationValue = 8, + kTimestampValue = 9, + CONSTANT_KIND_NOT_SET = 0, + }; + + static inline const Constant* internal_default_instance() { + return reinterpret_cast( + &_Constant_default_instance_); } static constexpr int kIndexInFileMessages = - 6; + 9; - friend void swap(Expr_CreateStruct& a, Expr_CreateStruct& b) { + friend void swap(Constant& a, Constant& b) { a.Swap(&b); } - inline void Swap(Expr_CreateStruct* other) { + inline void Swap(Constant* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Expr_CreateStruct* other) { + void UnsafeArenaSwap(Constant* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Expr_CreateStruct* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Expr_CreateStruct& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Expr_CreateStruct& from) { - Expr_CreateStruct::MergeImpl(*this, from); + Constant* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Constant& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Constant& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Expr_CreateStruct* other); + void SetCachedSize(int size) const final; + void InternalSwap(Constant* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.expr.v1alpha1.Expr.CreateStruct"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.Constant"; } protected: - explicit Expr_CreateStruct(::google::protobuf::Arena* arena); - Expr_CreateStruct(::google::protobuf::Arena* arena, const Expr_CreateStruct& from); + explicit Constant(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- - using Entry = Expr_CreateStruct_Entry; - // accessors ------------------------------------------------------- enum : int { - kEntriesFieldNumber = 2, - kMessageNameFieldNumber = 1, + kNullValueFieldNumber = 1, + kBoolValueFieldNumber = 2, + kInt64ValueFieldNumber = 3, + kUint64ValueFieldNumber = 4, + kDoubleValueFieldNumber = 5, + kStringValueFieldNumber = 6, + kBytesValueFieldNumber = 7, + kDurationValueFieldNumber = 8, + kTimestampValueFieldNumber = 9, }; - // repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"]; - int entries_size() const; + // .google.protobuf.NullValue null_value = 1 [json_name = "nullValue"]; + bool has_null_value() const; private: - int _internal_entries_size() const; + bool _internal_has_null_value() const; + public: + void clear_null_value(); + ::PROTOBUF_NAMESPACE_ID::NullValue null_value() const; + void set_null_value(::PROTOBUF_NAMESPACE_ID::NullValue value); + private: + ::PROTOBUF_NAMESPACE_ID::NullValue _internal_null_value() const; + void _internal_set_null_value(::PROTOBUF_NAMESPACE_ID::NullValue value); + public: + // bool bool_value = 2 [json_name = "boolValue"]; + bool has_bool_value() const; + private: + bool _internal_has_bool_value() const; public: - void clear_entries() ; - ::google::api::expr::v1alpha1::Expr_CreateStruct_Entry* mutable_entries(int index); - ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1alpha1::Expr_CreateStruct_Entry >* - mutable_entries(); + void clear_bool_value(); + bool bool_value() const; + void set_bool_value(bool value); private: - const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Expr_CreateStruct_Entry>& _internal_entries() const; - ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Expr_CreateStruct_Entry>* _internal_mutable_entries(); + bool _internal_bool_value() const; + void _internal_set_bool_value(bool value); public: - const ::google::api::expr::v1alpha1::Expr_CreateStruct_Entry& entries(int index) const; - ::google::api::expr::v1alpha1::Expr_CreateStruct_Entry* add_entries(); - const ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1alpha1::Expr_CreateStruct_Entry >& - entries() const; - // string message_name = 1 [json_name = "messageName"]; - void clear_message_name() ; - const std::string& message_name() const; - template - void set_message_name(Arg_&& arg, Args_... args); - std::string* mutable_message_name(); - PROTOBUF_NODISCARD std::string* release_message_name(); - void set_allocated_message_name(std::string* value); + // int64 int64_value = 3 [json_name = "int64Value"]; + bool has_int64_value() const; private: - const std::string& _internal_message_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_message_name( - const std::string& value); - std::string* _internal_mutable_message_name(); + bool _internal_has_int64_value() const; + public: + void clear_int64_value(); + int64_t int64_value() const; + void set_int64_value(int64_t value); + private: + int64_t _internal_int64_value() const; + void _internal_set_int64_value(int64_t value); + public: + // uint64 uint64_value = 4 [json_name = "uint64Value"]; + bool has_uint64_value() const; + private: + bool _internal_has_uint64_value() const; public: - // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Expr.CreateStruct) + void clear_uint64_value(); + uint64_t uint64_value() const; + void set_uint64_value(uint64_t value); + private: + uint64_t _internal_uint64_value() const; + void _internal_set_uint64_value(uint64_t value); + public: + + // double double_value = 5 [json_name = "doubleValue"]; + bool has_double_value() const; + private: + bool _internal_has_double_value() const; + public: + void clear_double_value(); + double double_value() const; + void set_double_value(double value); + private: + double _internal_double_value() const; + void _internal_set_double_value(double value); + public: + + // string string_value = 6 [json_name = "stringValue"]; + bool has_string_value() const; + private: + bool _internal_has_string_value() const; + public: + void clear_string_value(); + const std::string& string_value() const; + template + void set_string_value(ArgT0&& arg0, ArgT... args); + std::string* mutable_string_value(); + PROTOBUF_NODISCARD std::string* release_string_value(); + void set_allocated_string_value(std::string* string_value); + private: + const std::string& _internal_string_value() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_string_value(const std::string& value); + std::string* _internal_mutable_string_value(); + public: + + // bytes bytes_value = 7 [json_name = "bytesValue"]; + bool has_bytes_value() const; + private: + bool _internal_has_bytes_value() const; + public: + void clear_bytes_value(); + const std::string& bytes_value() const; + template + void set_bytes_value(ArgT0&& arg0, ArgT... args); + std::string* mutable_bytes_value(); + PROTOBUF_NODISCARD std::string* release_bytes_value(); + void set_allocated_bytes_value(std::string* bytes_value); + private: + const std::string& _internal_bytes_value() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_bytes_value(const std::string& value); + std::string* _internal_mutable_bytes_value(); + public: + + // .google.protobuf.Duration duration_value = 8 [json_name = "durationValue", deprecated = true]; + PROTOBUF_DEPRECATED bool has_duration_value() const; + private: + bool _internal_has_duration_value() const; + public: + PROTOBUF_DEPRECATED void clear_duration_value(); + PROTOBUF_DEPRECATED const ::PROTOBUF_NAMESPACE_ID::Duration& duration_value() const; + PROTOBUF_NODISCARD PROTOBUF_DEPRECATED ::PROTOBUF_NAMESPACE_ID::Duration* release_duration_value(); + PROTOBUF_DEPRECATED ::PROTOBUF_NAMESPACE_ID::Duration* mutable_duration_value(); + PROTOBUF_DEPRECATED void set_allocated_duration_value(::PROTOBUF_NAMESPACE_ID::Duration* duration_value); + private: + const ::PROTOBUF_NAMESPACE_ID::Duration& _internal_duration_value() const; + ::PROTOBUF_NAMESPACE_ID::Duration* _internal_mutable_duration_value(); + public: + PROTOBUF_DEPRECATED void unsafe_arena_set_allocated_duration_value( + ::PROTOBUF_NAMESPACE_ID::Duration* duration_value); + PROTOBUF_DEPRECATED ::PROTOBUF_NAMESPACE_ID::Duration* unsafe_arena_release_duration_value(); + + // .google.protobuf.Timestamp timestamp_value = 9 [json_name = "timestampValue", deprecated = true]; + PROTOBUF_DEPRECATED bool has_timestamp_value() const; + private: + bool _internal_has_timestamp_value() const; + public: + PROTOBUF_DEPRECATED void clear_timestamp_value(); + PROTOBUF_DEPRECATED const ::PROTOBUF_NAMESPACE_ID::Timestamp& timestamp_value() const; + PROTOBUF_NODISCARD PROTOBUF_DEPRECATED ::PROTOBUF_NAMESPACE_ID::Timestamp* release_timestamp_value(); + PROTOBUF_DEPRECATED ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_timestamp_value(); + PROTOBUF_DEPRECATED void set_allocated_timestamp_value(::PROTOBUF_NAMESPACE_ID::Timestamp* timestamp_value); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_timestamp_value() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_timestamp_value(); + public: + PROTOBUF_DEPRECATED void unsafe_arena_set_allocated_timestamp_value( + ::PROTOBUF_NAMESPACE_ID::Timestamp* timestamp_value); + PROTOBUF_DEPRECATED ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_timestamp_value(); + + void clear_constant_kind(); + ConstantKindCase constant_kind_case() const; + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Constant) private: class _Internal; + void set_has_null_value(); + void set_has_bool_value(); + void set_has_int64_value(); + void set_has_uint64_value(); + void set_has_double_value(); + void set_has_string_value(); + void set_has_bytes_value(); + void set_has_duration_value(); + void set_has_timestamp_value(); + + inline bool has_constant_kind() const; + inline void clear_has_constant_kind(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + union ConstantKindUnion { + constexpr ConstantKindUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + int null_value_; + bool bool_value_; + int64_t int64_value_; + uint64_t uint64_value_; + double double_value_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr string_value_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr bytes_value_; + ::PROTOBUF_NAMESPACE_ID::Duration* duration_value_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* timestamp_value_; + } constant_kind_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 63, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1alpha1::Expr_CreateStruct_Entry > entries_; - ::google::protobuf::internal::ArenaStringPtr message_name_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Expr_CreateStruct_Entry final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Expr.CreateStruct.Entry) */ { +class SourceInfo_Extension_Version final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.SourceInfo.Extension.Version) */ { public: - inline Expr_CreateStruct_Entry() : Expr_CreateStruct_Entry(nullptr) {} - ~Expr_CreateStruct_Entry() override; - template - explicit PROTOBUF_CONSTEXPR Expr_CreateStruct_Entry(::google::protobuf::internal::ConstantInitialized); + inline SourceInfo_Extension_Version() : SourceInfo_Extension_Version(nullptr) {} + ~SourceInfo_Extension_Version() override; + explicit PROTOBUF_CONSTEXPR SourceInfo_Extension_Version(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Expr_CreateStruct_Entry(const Expr_CreateStruct_Entry& from) - : Expr_CreateStruct_Entry(nullptr, from) {} - Expr_CreateStruct_Entry(Expr_CreateStruct_Entry&& from) noexcept - : Expr_CreateStruct_Entry() { + SourceInfo_Extension_Version(const SourceInfo_Extension_Version& from); + SourceInfo_Extension_Version(SourceInfo_Extension_Version&& from) noexcept + : SourceInfo_Extension_Version() { *this = ::std::move(from); } - inline Expr_CreateStruct_Entry& operator=(const Expr_CreateStruct_Entry& from) { + inline SourceInfo_Extension_Version& operator=(const SourceInfo_Extension_Version& from) { CopyFrom(from); return *this; } - inline Expr_CreateStruct_Entry& operator=(Expr_CreateStruct_Entry&& from) noexcept { + inline SourceInfo_Extension_Version& operator=(SourceInfo_Extension_Version&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2683,261 +2376,151 @@ class Expr_CreateStruct_Entry final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Expr_CreateStruct_Entry& default_instance() { + static const SourceInfo_Extension_Version& default_instance() { return *internal_default_instance(); } - enum KeyKindCase { - kFieldKey = 2, - kMapKey = 3, - KEY_KIND_NOT_SET = 0, - }; - - static inline const Expr_CreateStruct_Entry* internal_default_instance() { - return reinterpret_cast( - &_Expr_CreateStruct_Entry_default_instance_); + static inline const SourceInfo_Extension_Version* internal_default_instance() { + return reinterpret_cast( + &_SourceInfo_Extension_Version_default_instance_); } static constexpr int kIndexInFileMessages = - 5; + 10; - friend void swap(Expr_CreateStruct_Entry& a, Expr_CreateStruct_Entry& b) { + friend void swap(SourceInfo_Extension_Version& a, SourceInfo_Extension_Version& b) { a.Swap(&b); } - inline void Swap(Expr_CreateStruct_Entry* other) { + inline void Swap(SourceInfo_Extension_Version* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Expr_CreateStruct_Entry* other) { + void UnsafeArenaSwap(SourceInfo_Extension_Version* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Expr_CreateStruct_Entry* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Expr_CreateStruct_Entry& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Expr_CreateStruct_Entry& from) { - Expr_CreateStruct_Entry::MergeImpl(*this, from); + SourceInfo_Extension_Version* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SourceInfo_Extension_Version& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const SourceInfo_Extension_Version& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Expr_CreateStruct_Entry* other); + void SetCachedSize(int size) const final; + void InternalSwap(SourceInfo_Extension_Version* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.expr.v1alpha1.Expr.CreateStruct.Entry"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.SourceInfo.Extension.Version"; } protected: - explicit Expr_CreateStruct_Entry(::google::protobuf::Arena* arena); - Expr_CreateStruct_Entry(::google::protobuf::Arena* arena, const Expr_CreateStruct_Entry& from); + explicit SourceInfo_Extension_Version(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kValueFieldNumber = 4, - kIdFieldNumber = 1, - kOptionalEntryFieldNumber = 5, - kFieldKeyFieldNumber = 2, - kMapKeyFieldNumber = 3, + kMajorFieldNumber = 1, + kMinorFieldNumber = 2, }; - // .google.api.expr.v1alpha1.Expr value = 4 [json_name = "value"]; - bool has_value() const; - void clear_value() ; - const ::google::api::expr::v1alpha1::Expr& value() const; - PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Expr* release_value(); - ::google::api::expr::v1alpha1::Expr* mutable_value(); - void set_allocated_value(::google::api::expr::v1alpha1::Expr* value); - void unsafe_arena_set_allocated_value(::google::api::expr::v1alpha1::Expr* value); - ::google::api::expr::v1alpha1::Expr* unsafe_arena_release_value(); - - private: - const ::google::api::expr::v1alpha1::Expr& _internal_value() const; - ::google::api::expr::v1alpha1::Expr* _internal_mutable_value(); - - public: - // int64 id = 1 [json_name = "id"]; - void clear_id() ; - ::int64_t id() const; - void set_id(::int64_t value); - - private: - ::int64_t _internal_id() const; - void _internal_set_id(::int64_t value); - - public: - // bool optional_entry = 5 [json_name = "optionalEntry"]; - void clear_optional_entry() ; - bool optional_entry() const; - void set_optional_entry(bool value); - + // int64 major = 1 [json_name = "major"]; + void clear_major(); + int64_t major() const; + void set_major(int64_t value); private: - bool _internal_optional_entry() const; - void _internal_set_optional_entry(bool value); - + int64_t _internal_major() const; + void _internal_set_major(int64_t value); public: - // string field_key = 2 [json_name = "fieldKey"]; - bool has_field_key() const; - void clear_field_key() ; - const std::string& field_key() const; - template - void set_field_key(Arg_&& arg, Args_... args); - std::string* mutable_field_key(); - PROTOBUF_NODISCARD std::string* release_field_key(); - void set_allocated_field_key(std::string* value); - - private: - const std::string& _internal_field_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_field_key( - const std::string& value); - std::string* _internal_mutable_field_key(); - public: - // .google.api.expr.v1alpha1.Expr map_key = 3 [json_name = "mapKey"]; - bool has_map_key() const; + // int64 minor = 2 [json_name = "minor"]; + void clear_minor(); + int64_t minor() const; + void set_minor(int64_t value); private: - bool _internal_has_map_key() const; - + int64_t _internal_minor() const; + void _internal_set_minor(int64_t value); public: - void clear_map_key() ; - const ::google::api::expr::v1alpha1::Expr& map_key() const; - PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Expr* release_map_key(); - ::google::api::expr::v1alpha1::Expr* mutable_map_key(); - void set_allocated_map_key(::google::api::expr::v1alpha1::Expr* value); - void unsafe_arena_set_allocated_map_key(::google::api::expr::v1alpha1::Expr* value); - ::google::api::expr::v1alpha1::Expr* unsafe_arena_release_map_key(); - - private: - const ::google::api::expr::v1alpha1::Expr& _internal_map_key() const; - ::google::api::expr::v1alpha1::Expr* _internal_mutable_map_key(); - public: - void clear_key_kind(); - KeyKindCase key_kind_case() const; - // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Expr.CreateStruct.Entry) + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.SourceInfo.Extension.Version) private: class _Internal; - void set_has_field_key(); - void set_has_map_key(); - inline bool has_key_kind() const; - inline void clear_has_key_kind(); - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 5, 2, - 66, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::api::expr::v1alpha1::Expr* value_; - ::int64_t id_; - bool optional_entry_; - union KeyKindUnion { - constexpr KeyKindUnion() : _constinit_{} {} - ::google::protobuf::internal::ConstantInitialized _constinit_; - ::google::protobuf::internal::ArenaStringPtr field_key_; - ::google::api::expr::v1alpha1::Expr* map_key_; - } key_kind_; - ::uint32_t _oneof_case_[1]; - - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + int64_t major_; + int64_t minor_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Expr_Select final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Expr.Select) */ { +class SourceInfo_Extension final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.SourceInfo.Extension) */ { public: - inline Expr_Select() : Expr_Select(nullptr) {} - ~Expr_Select() override; - template - explicit PROTOBUF_CONSTEXPR Expr_Select(::google::protobuf::internal::ConstantInitialized); + inline SourceInfo_Extension() : SourceInfo_Extension(nullptr) {} + ~SourceInfo_Extension() override; + explicit PROTOBUF_CONSTEXPR SourceInfo_Extension(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Expr_Select(const Expr_Select& from) - : Expr_Select(nullptr, from) {} - Expr_Select(Expr_Select&& from) noexcept - : Expr_Select() { + SourceInfo_Extension(const SourceInfo_Extension& from); + SourceInfo_Extension(SourceInfo_Extension&& from) noexcept + : SourceInfo_Extension() { *this = ::std::move(from); } - inline Expr_Select& operator=(const Expr_Select& from) { + inline SourceInfo_Extension& operator=(const SourceInfo_Extension& from) { CopyFrom(from); return *this; } - inline Expr_Select& operator=(Expr_Select&& from) noexcept { + inline SourceInfo_Extension& operator=(SourceInfo_Extension&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2947,220 +2530,255 @@ class Expr_Select final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Expr_Select& default_instance() { + static const SourceInfo_Extension& default_instance() { return *internal_default_instance(); } - static inline const Expr_Select* internal_default_instance() { - return reinterpret_cast( - &_Expr_Select_default_instance_); + static inline const SourceInfo_Extension* internal_default_instance() { + return reinterpret_cast( + &_SourceInfo_Extension_default_instance_); } static constexpr int kIndexInFileMessages = - 2; + 11; - friend void swap(Expr_Select& a, Expr_Select& b) { + friend void swap(SourceInfo_Extension& a, SourceInfo_Extension& b) { a.Swap(&b); } - inline void Swap(Expr_Select* other) { + inline void Swap(SourceInfo_Extension* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Expr_Select* other) { + void UnsafeArenaSwap(SourceInfo_Extension* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Expr_Select* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Expr_Select& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Expr_Select& from) { - Expr_Select::MergeImpl(*this, from); + SourceInfo_Extension* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SourceInfo_Extension& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const SourceInfo_Extension& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Expr_Select* other); + void SetCachedSize(int size) const final; + void InternalSwap(SourceInfo_Extension* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.expr.v1alpha1.Expr.Select"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.SourceInfo.Extension"; } protected: - explicit Expr_Select(::google::protobuf::Arena* arena); - Expr_Select(::google::protobuf::Arena* arena, const Expr_Select& from); + explicit SourceInfo_Extension(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- + typedef SourceInfo_Extension_Version Version; + + typedef SourceInfo_Extension_Component Component; + static constexpr Component COMPONENT_UNSPECIFIED = + SourceInfo_Extension_Component_COMPONENT_UNSPECIFIED; + static constexpr Component COMPONENT_PARSER = + SourceInfo_Extension_Component_COMPONENT_PARSER; + static constexpr Component COMPONENT_TYPE_CHECKER = + SourceInfo_Extension_Component_COMPONENT_TYPE_CHECKER; + static constexpr Component COMPONENT_RUNTIME = + SourceInfo_Extension_Component_COMPONENT_RUNTIME; + static inline bool Component_IsValid(int value) { + return SourceInfo_Extension_Component_IsValid(value); + } + static constexpr Component Component_MIN = + SourceInfo_Extension_Component_Component_MIN; + static constexpr Component Component_MAX = + SourceInfo_Extension_Component_Component_MAX; + static constexpr int Component_ARRAYSIZE = + SourceInfo_Extension_Component_Component_ARRAYSIZE; + static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* + Component_descriptor() { + return SourceInfo_Extension_Component_descriptor(); + } + template + static inline const std::string& Component_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function Component_Name."); + return SourceInfo_Extension_Component_Name(enum_t_value); + } + static inline bool Component_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, + Component* value) { + return SourceInfo_Extension_Component_Parse(name, value); + } + // accessors ------------------------------------------------------- enum : int { - kFieldFieldNumber = 2, - kOperandFieldNumber = 1, - kTestOnlyFieldNumber = 3, + kAffectedComponentsFieldNumber = 2, + kIdFieldNumber = 1, + kVersionFieldNumber = 3, }; - // string field = 2 [json_name = "field"]; - void clear_field() ; - const std::string& field() const; - template - void set_field(Arg_&& arg, Args_... args); - std::string* mutable_field(); - PROTOBUF_NODISCARD std::string* release_field(); - void set_allocated_field(std::string* value); - + // repeated .google.api.expr.v1alpha1.SourceInfo.Extension.Component affected_components = 2 [json_name = "affectedComponents"]; + int affected_components_size() const; private: - const std::string& _internal_field() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_field( - const std::string& value); - std::string* _internal_mutable_field(); - + int _internal_affected_components_size() const; public: - // .google.api.expr.v1alpha1.Expr operand = 1 [json_name = "operand"]; - bool has_operand() const; - void clear_operand() ; - const ::google::api::expr::v1alpha1::Expr& operand() const; - PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Expr* release_operand(); - ::google::api::expr::v1alpha1::Expr* mutable_operand(); - void set_allocated_operand(::google::api::expr::v1alpha1::Expr* value); - void unsafe_arena_set_allocated_operand(::google::api::expr::v1alpha1::Expr* value); - ::google::api::expr::v1alpha1::Expr* unsafe_arena_release_operand(); - + void clear_affected_components(); private: - const ::google::api::expr::v1alpha1::Expr& _internal_operand() const; - ::google::api::expr::v1alpha1::Expr* _internal_mutable_operand(); - + ::google::api::expr::v1alpha1::SourceInfo_Extension_Component _internal_affected_components(int index) const; + void _internal_add_affected_components(::google::api::expr::v1alpha1::SourceInfo_Extension_Component value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField* _internal_mutable_affected_components(); public: - // bool test_only = 3 [json_name = "testOnly"]; - void clear_test_only() ; - bool test_only() const; - void set_test_only(bool value); + ::google::api::expr::v1alpha1::SourceInfo_Extension_Component affected_components(int index) const; + void set_affected_components(int index, ::google::api::expr::v1alpha1::SourceInfo_Extension_Component value); + void add_affected_components(::google::api::expr::v1alpha1::SourceInfo_Extension_Component value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField& affected_components() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField* mutable_affected_components(); + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); private: - bool _internal_test_only() const; - void _internal_set_test_only(bool value); + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + // .google.api.expr.v1alpha1.SourceInfo.Extension.Version version = 3 [json_name = "version"]; + bool has_version() const; + private: + bool _internal_has_version() const; public: - // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Expr.Select) + void clear_version(); + const ::google::api::expr::v1alpha1::SourceInfo_Extension_Version& version() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::SourceInfo_Extension_Version* release_version(); + ::google::api::expr::v1alpha1::SourceInfo_Extension_Version* mutable_version(); + void set_allocated_version(::google::api::expr::v1alpha1::SourceInfo_Extension_Version* version); + private: + const ::google::api::expr::v1alpha1::SourceInfo_Extension_Version& _internal_version() const; + ::google::api::expr::v1alpha1::SourceInfo_Extension_Version* _internal_mutable_version(); + public: + void unsafe_arena_set_allocated_version( + ::google::api::expr::v1alpha1::SourceInfo_Extension_Version* version); + ::google::api::expr::v1alpha1::SourceInfo_Extension_Version* unsafe_arena_release_version(); + + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.SourceInfo.Extension) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 1, - 50, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr field_; - ::google::api::expr::v1alpha1::Expr* operand_; - bool test_only_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField affected_components_; + mutable std::atomic _affected_components_cached_byte_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::google::api::expr::v1alpha1::SourceInfo_Extension_Version* version_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SourceInfo_MacroCallsEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry< - SourceInfo_MacroCallsEntry_DoNotUse, ::int64_t, ::google::api::expr::v1alpha1::Expr, - ::google::protobuf::internal::WireFormatLite::TYPE_INT64, - ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE> { - public: - using SuperType = ::google::protobuf::internal::MapEntry< - SourceInfo_MacroCallsEntry_DoNotUse, ::int64_t, ::google::api::expr::v1alpha1::Expr, - ::google::protobuf::internal::WireFormatLite::TYPE_INT64, - ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>; +class SourceInfo_PositionsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + SourceInfo_PositionsEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR SourceInfo_PositionsEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit SourceInfo_PositionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const SourceInfo_PositionsEntry_DoNotUse& other); + static const SourceInfo_PositionsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_SourceInfo_PositionsEntry_DoNotUse_default_instance_); } + static bool ValidateKey(void*) { return true; } + static bool ValidateValue(void*) { return true; } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto; +}; + +// ------------------------------------------------------------------- + +class SourceInfo_MacroCallsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; SourceInfo_MacroCallsEntry_DoNotUse(); - template explicit PROTOBUF_CONSTEXPR SourceInfo_MacroCallsEntry_DoNotUse( - ::google::protobuf::internal::ConstantInitialized); - explicit SourceInfo_MacroCallsEntry_DoNotUse(::google::protobuf::Arena* arena); - static const SourceInfo_MacroCallsEntry_DoNotUse* internal_default_instance() { - return reinterpret_cast( - &_SourceInfo_MacroCallsEntry_DoNotUse_default_instance_); - } + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit SourceInfo_MacroCallsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const SourceInfo_MacroCallsEntry_DoNotUse& other); + static const SourceInfo_MacroCallsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_SourceInfo_MacroCallsEntry_DoNotUse_default_instance_); } static bool ValidateKey(void*) { return true; } static bool ValidateValue(void*) { return true; } - ::google::protobuf::Metadata GetMetadata() const final; + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto; }; + // ------------------------------------------------------------------- class SourceInfo final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.SourceInfo) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.SourceInfo) */ { public: inline SourceInfo() : SourceInfo(nullptr) {} ~SourceInfo() override; - template - explicit PROTOBUF_CONSTEXPR SourceInfo(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR SourceInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline SourceInfo(const SourceInfo& from) - : SourceInfo(nullptr, from) {} + SourceInfo(const SourceInfo& from); SourceInfo(SourceInfo&& from) noexcept : SourceInfo() { *this = ::std::move(from); @@ -3172,9 +2790,9 @@ class SourceInfo final : } inline SourceInfo& operator=(SourceInfo&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3184,22 +2802,13 @@ class SourceInfo final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const SourceInfo& default_instance() { @@ -3218,69 +2827,69 @@ class SourceInfo final : inline void Swap(SourceInfo* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(SourceInfo* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SourceInfo* New(::google::protobuf::Arena* arena = nullptr) const final { + SourceInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const SourceInfo& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SourceInfo& from) { - SourceInfo::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const SourceInfo& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(SourceInfo* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "google.api.expr.v1alpha1.SourceInfo"; } protected: - explicit SourceInfo(::google::protobuf::Arena* arena); - SourceInfo(::google::protobuf::Arena* arena, const SourceInfo& from); + explicit SourceInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- - using Extension = SourceInfo_Extension; + typedef SourceInfo_Extension Extension; // accessors ------------------------------------------------------- @@ -3296,167 +2905,153 @@ class SourceInfo final : int line_offsets_size() const; private: int _internal_line_offsets_size() const; - public: - void clear_line_offsets() ; - ::int32_t line_offsets(int index) const; - void set_line_offsets(int index, ::int32_t value); - void add_line_offsets(::int32_t value); - const ::google::protobuf::RepeatedField<::int32_t>& line_offsets() const; - ::google::protobuf::RepeatedField<::int32_t>* mutable_line_offsets(); - + void clear_line_offsets(); private: - const ::google::protobuf::RepeatedField<::int32_t>& _internal_line_offsets() const; - ::google::protobuf::RepeatedField<::int32_t>* _internal_mutable_line_offsets(); - + int32_t _internal_line_offsets(int index) const; + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& + _internal_line_offsets() const; + void _internal_add_line_offsets(int32_t value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* + _internal_mutable_line_offsets(); public: + int32_t line_offsets(int index) const; + void set_line_offsets(int index, int32_t value); + void add_line_offsets(int32_t value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& + line_offsets() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* + mutable_line_offsets(); + // map positions = 4 [json_name = "positions"]; int positions_size() const; private: int _internal_positions_size() const; - public: - void clear_positions() ; - const ::google::protobuf::Map<::int64_t, ::int32_t>& positions() const; - ::google::protobuf::Map<::int64_t, ::int32_t>* mutable_positions(); - + void clear_positions(); private: - const ::google::protobuf::Map<::int64_t, ::int32_t>& _internal_positions() const; - ::google::protobuf::Map<::int64_t, ::int32_t>* _internal_mutable_positions(); - + const ::PROTOBUF_NAMESPACE_ID::Map< int64_t, int32_t >& + _internal_positions() const; + ::PROTOBUF_NAMESPACE_ID::Map< int64_t, int32_t >* + _internal_mutable_positions(); public: + const ::PROTOBUF_NAMESPACE_ID::Map< int64_t, int32_t >& + positions() const; + ::PROTOBUF_NAMESPACE_ID::Map< int64_t, int32_t >* + mutable_positions(); + // map macro_calls = 5 [json_name = "macroCalls"]; int macro_calls_size() const; private: int _internal_macro_calls_size() const; - public: - void clear_macro_calls() ; - const ::google::protobuf::Map<::int64_t, ::google::api::expr::v1alpha1::Expr>& macro_calls() const; - ::google::protobuf::Map<::int64_t, ::google::api::expr::v1alpha1::Expr>* mutable_macro_calls(); - + void clear_macro_calls(); private: - const ::google::protobuf::Map<::int64_t, ::google::api::expr::v1alpha1::Expr>& _internal_macro_calls() const; - ::google::protobuf::Map<::int64_t, ::google::api::expr::v1alpha1::Expr>* _internal_mutable_macro_calls(); - + const ::PROTOBUF_NAMESPACE_ID::Map< int64_t, ::google::api::expr::v1alpha1::Expr >& + _internal_macro_calls() const; + ::PROTOBUF_NAMESPACE_ID::Map< int64_t, ::google::api::expr::v1alpha1::Expr >* + _internal_mutable_macro_calls(); public: + const ::PROTOBUF_NAMESPACE_ID::Map< int64_t, ::google::api::expr::v1alpha1::Expr >& + macro_calls() const; + ::PROTOBUF_NAMESPACE_ID::Map< int64_t, ::google::api::expr::v1alpha1::Expr >* + mutable_macro_calls(); + // repeated .google.api.expr.v1alpha1.SourceInfo.Extension extensions = 6 [json_name = "extensions"]; int extensions_size() const; private: int _internal_extensions_size() const; - public: - void clear_extensions() ; + void clear_extensions(); ::google::api::expr::v1alpha1::SourceInfo_Extension* mutable_extensions(int index); - ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1alpha1::SourceInfo_Extension >* + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::SourceInfo_Extension >* mutable_extensions(); private: - const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::SourceInfo_Extension>& _internal_extensions() const; - ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::SourceInfo_Extension>* _internal_mutable_extensions(); + const ::google::api::expr::v1alpha1::SourceInfo_Extension& _internal_extensions(int index) const; + ::google::api::expr::v1alpha1::SourceInfo_Extension* _internal_add_extensions(); public: const ::google::api::expr::v1alpha1::SourceInfo_Extension& extensions(int index) const; ::google::api::expr::v1alpha1::SourceInfo_Extension* add_extensions(); - const ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1alpha1::SourceInfo_Extension >& + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::SourceInfo_Extension >& extensions() const; + // string syntax_version = 1 [json_name = "syntaxVersion"]; - void clear_syntax_version() ; + void clear_syntax_version(); const std::string& syntax_version() const; - template - void set_syntax_version(Arg_&& arg, Args_... args); + template + void set_syntax_version(ArgT0&& arg0, ArgT... args); std::string* mutable_syntax_version(); PROTOBUF_NODISCARD std::string* release_syntax_version(); - void set_allocated_syntax_version(std::string* value); - + void set_allocated_syntax_version(std::string* syntax_version); private: const std::string& _internal_syntax_version() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_syntax_version( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_syntax_version(const std::string& value); std::string* _internal_mutable_syntax_version(); - public: + // string location = 2 [json_name = "location"]; - void clear_location() ; + void clear_location(); const std::string& location() const; - template - void set_location(Arg_&& arg, Args_... args); + template + void set_location(ArgT0&& arg0, ArgT... args); std::string* mutable_location(); PROTOBUF_NODISCARD std::string* release_location(); - void set_allocated_location(std::string* value); - + void set_allocated_location(std::string* location); private: const std::string& _internal_location() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_location( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_location(const std::string& value); std::string* _internal_mutable_location(); - public: + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.SourceInfo) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 6, 4, - 66, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedField<::int32_t> line_offsets_; - mutable ::google::protobuf::internal::CachedSize _line_offsets_cached_byte_size_; - ::google::protobuf::internal::MapField - positions_; - ::google::protobuf::internal::MapField - macro_calls_; - ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1alpha1::SourceInfo_Extension > extensions_; - ::google::protobuf::internal::ArenaStringPtr syntax_version_; - ::google::protobuf::internal::ArenaStringPtr location_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > line_offsets_; + mutable std::atomic _line_offsets_cached_byte_size_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + SourceInfo_PositionsEntry_DoNotUse, + int64_t, int32_t, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32> positions_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + SourceInfo_MacroCallsEntry_DoNotUse, + int64_t, ::google::api::expr::v1alpha1::Expr, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> macro_calls_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::SourceInfo_Extension > extensions_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr syntax_version_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr location_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ParsedExpr final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.ParsedExpr) */ { +class SourcePosition final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.SourcePosition) */ { public: - inline ParsedExpr() : ParsedExpr(nullptr) {} - ~ParsedExpr() override; - template - explicit PROTOBUF_CONSTEXPR ParsedExpr(::google::protobuf::internal::ConstantInitialized); + inline SourcePosition() : SourcePosition(nullptr) {} + ~SourcePosition() override; + explicit PROTOBUF_CONSTEXPR SourcePosition(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ParsedExpr(const ParsedExpr& from) - : ParsedExpr(nullptr, from) {} - ParsedExpr(ParsedExpr&& from) noexcept - : ParsedExpr() { + SourcePosition(const SourcePosition& from); + SourcePosition(SourcePosition&& from) noexcept + : SourcePosition() { *this = ::std::move(from); } - inline ParsedExpr& operator=(const ParsedExpr& from) { + inline SourcePosition& operator=(const SourcePosition& from) { CopyFrom(from); return *this; } - inline ParsedExpr& operator=(ParsedExpr&& from) noexcept { + inline SourcePosition& operator=(SourcePosition&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3466,376 +3061,342 @@ class ParsedExpr final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ParsedExpr& default_instance() { + static const SourcePosition& default_instance() { return *internal_default_instance(); } - static inline const ParsedExpr* internal_default_instance() { - return reinterpret_cast( - &_ParsedExpr_default_instance_); + static inline const SourcePosition* internal_default_instance() { + return reinterpret_cast( + &_SourcePosition_default_instance_); } static constexpr int kIndexInFileMessages = - 0; + 15; - friend void swap(ParsedExpr& a, ParsedExpr& b) { + friend void swap(SourcePosition& a, SourcePosition& b) { a.Swap(&b); } - inline void Swap(ParsedExpr* other) { + inline void Swap(SourcePosition* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ParsedExpr* other) { + void UnsafeArenaSwap(SourcePosition* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ParsedExpr* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ParsedExpr& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ParsedExpr& from) { - ParsedExpr::MergeImpl(*this, from); + SourcePosition* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SourcePosition& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const SourcePosition& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ParsedExpr* other); + void SetCachedSize(int size) const final; + void InternalSwap(SourcePosition* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.expr.v1alpha1.ParsedExpr"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.SourcePosition"; } protected: - explicit ParsedExpr(::google::protobuf::Arena* arena); - ParsedExpr(::google::protobuf::Arena* arena, const ParsedExpr& from); + explicit SourcePosition(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kExprFieldNumber = 2, - kSourceInfoFieldNumber = 3, + kLocationFieldNumber = 1, + kOffsetFieldNumber = 2, + kLineFieldNumber = 3, + kColumnFieldNumber = 4, }; - // .google.api.expr.v1alpha1.Expr expr = 2 [json_name = "expr"]; - bool has_expr() const; - void clear_expr() ; - const ::google::api::expr::v1alpha1::Expr& expr() const; - PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Expr* release_expr(); - ::google::api::expr::v1alpha1::Expr* mutable_expr(); - void set_allocated_expr(::google::api::expr::v1alpha1::Expr* value); - void unsafe_arena_set_allocated_expr(::google::api::expr::v1alpha1::Expr* value); - ::google::api::expr::v1alpha1::Expr* unsafe_arena_release_expr(); - + // string location = 1 [json_name = "location"]; + void clear_location(); + const std::string& location() const; + template + void set_location(ArgT0&& arg0, ArgT... args); + std::string* mutable_location(); + PROTOBUF_NODISCARD std::string* release_location(); + void set_allocated_location(std::string* location); private: - const ::google::api::expr::v1alpha1::Expr& _internal_expr() const; - ::google::api::expr::v1alpha1::Expr* _internal_mutable_expr(); + const std::string& _internal_location() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_location(const std::string& value); + std::string* _internal_mutable_location(); + public: + // int32 offset = 2 [json_name = "offset"]; + void clear_offset(); + int32_t offset() const; + void set_offset(int32_t value); + private: + int32_t _internal_offset() const; + void _internal_set_offset(int32_t value); public: - // .google.api.expr.v1alpha1.SourceInfo source_info = 3 [json_name = "sourceInfo"]; - bool has_source_info() const; - void clear_source_info() ; - const ::google::api::expr::v1alpha1::SourceInfo& source_info() const; - PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::SourceInfo* release_source_info(); - ::google::api::expr::v1alpha1::SourceInfo* mutable_source_info(); - void set_allocated_source_info(::google::api::expr::v1alpha1::SourceInfo* value); - void unsafe_arena_set_allocated_source_info(::google::api::expr::v1alpha1::SourceInfo* value); - ::google::api::expr::v1alpha1::SourceInfo* unsafe_arena_release_source_info(); + // int32 line = 3 [json_name = "line"]; + void clear_line(); + int32_t line() const; + void set_line(int32_t value); private: - const ::google::api::expr::v1alpha1::SourceInfo& _internal_source_info() const; - ::google::api::expr::v1alpha1::SourceInfo* _internal_mutable_source_info(); + int32_t _internal_line() const; + void _internal_set_line(int32_t value); + public: + // int32 column = 4 [json_name = "column"]; + void clear_column(); + int32_t column() const; + void set_column(int32_t value); + private: + int32_t _internal_column() const; + void _internal_set_column(int32_t value); public: - // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.ParsedExpr) + + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.SourcePosition) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 2, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::api::expr::v1alpha1::Expr* expr_; - ::google::api::expr::v1alpha1::SourceInfo* source_info_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr location_; + int32_t offset_; + int32_t line_; + int32_t column_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto; }; - // =================================================================== - - // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ -// ------------------------------------------------------------------- - // ParsedExpr // .google.api.expr.v1alpha1.Expr expr = 2 [json_name = "expr"]; +inline bool ParsedExpr::_internal_has_expr() const { + return this != internal_default_instance() && expr_ != nullptr; +} inline bool ParsedExpr::has_expr() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.expr_ != nullptr); - return value; + return _internal_has_expr(); } inline void ParsedExpr::clear_expr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.expr_ != nullptr) _impl_.expr_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && expr_ != nullptr) { + delete expr_; + } + expr_ = nullptr; } inline const ::google::api::expr::v1alpha1::Expr& ParsedExpr::_internal_expr() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::expr::v1alpha1::Expr* p = _impl_.expr_; - return p != nullptr ? *p : reinterpret_cast(::google::api::expr::v1alpha1::_Expr_default_instance_); + const ::google::api::expr::v1alpha1::Expr* p = expr_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1alpha1::_Expr_default_instance_); } -inline const ::google::api::expr::v1alpha1::Expr& ParsedExpr::expr() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::Expr& ParsedExpr::expr() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.ParsedExpr.expr) return _internal_expr(); } -inline void ParsedExpr::unsafe_arena_set_allocated_expr(::google::api::expr::v1alpha1::Expr* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.expr_); +inline void ParsedExpr::unsafe_arena_set_allocated_expr( + ::google::api::expr::v1alpha1::Expr* expr) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(expr_); } - _impl_.expr_ = reinterpret_cast<::google::api::expr::v1alpha1::Expr*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + expr_ = expr; + if (expr) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.ParsedExpr.expr) } inline ::google::api::expr::v1alpha1::Expr* ParsedExpr::release_expr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::expr::v1alpha1::Expr* released = _impl_.expr_; - _impl_.expr_ = nullptr; + + ::google::api::expr::v1alpha1::Expr* temp = expr_; + expr_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::expr::v1alpha1::Expr* ParsedExpr::unsafe_arena_release_expr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.ParsedExpr.expr) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::expr::v1alpha1::Expr* temp = _impl_.expr_; - _impl_.expr_ = nullptr; + + ::google::api::expr::v1alpha1::Expr* temp = expr_; + expr_ = nullptr; return temp; } inline ::google::api::expr::v1alpha1::Expr* ParsedExpr::_internal_mutable_expr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.expr_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Expr>(GetArena()); - _impl_.expr_ = reinterpret_cast<::google::api::expr::v1alpha1::Expr*>(p); + + if (expr_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Expr>(GetArenaForAllocation()); + expr_ = p; } - return _impl_.expr_; + return expr_; } -inline ::google::api::expr::v1alpha1::Expr* ParsedExpr::mutable_expr() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::Expr* ParsedExpr::mutable_expr() { ::google::api::expr::v1alpha1::Expr* _msg = _internal_mutable_expr(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.ParsedExpr.expr) return _msg; } -inline void ParsedExpr::set_allocated_expr(::google::api::expr::v1alpha1::Expr* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ParsedExpr::set_allocated_expr(::google::api::expr::v1alpha1::Expr* expr) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::api::expr::v1alpha1::Expr*>(_impl_.expr_); + delete expr_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::api::expr::v1alpha1::Expr*>(value)->GetArena(); + if (expr) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(expr); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + expr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, expr, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.expr_ = reinterpret_cast<::google::api::expr::v1alpha1::Expr*>(value); + expr_ = expr; // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.ParsedExpr.expr) } // .google.api.expr.v1alpha1.SourceInfo source_info = 3 [json_name = "sourceInfo"]; +inline bool ParsedExpr::_internal_has_source_info() const { + return this != internal_default_instance() && source_info_ != nullptr; +} inline bool ParsedExpr::has_source_info() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.source_info_ != nullptr); - return value; + return _internal_has_source_info(); } inline void ParsedExpr::clear_source_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.source_info_ != nullptr) _impl_.source_info_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && source_info_ != nullptr) { + delete source_info_; + } + source_info_ = nullptr; } inline const ::google::api::expr::v1alpha1::SourceInfo& ParsedExpr::_internal_source_info() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::expr::v1alpha1::SourceInfo* p = _impl_.source_info_; - return p != nullptr ? *p : reinterpret_cast(::google::api::expr::v1alpha1::_SourceInfo_default_instance_); + const ::google::api::expr::v1alpha1::SourceInfo* p = source_info_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1alpha1::_SourceInfo_default_instance_); } -inline const ::google::api::expr::v1alpha1::SourceInfo& ParsedExpr::source_info() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::SourceInfo& ParsedExpr::source_info() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.ParsedExpr.source_info) return _internal_source_info(); } -inline void ParsedExpr::unsafe_arena_set_allocated_source_info(::google::api::expr::v1alpha1::SourceInfo* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.source_info_); +inline void ParsedExpr::unsafe_arena_set_allocated_source_info( + ::google::api::expr::v1alpha1::SourceInfo* source_info) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(source_info_); } - _impl_.source_info_ = reinterpret_cast<::google::api::expr::v1alpha1::SourceInfo*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + source_info_ = source_info; + if (source_info) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.ParsedExpr.source_info) } inline ::google::api::expr::v1alpha1::SourceInfo* ParsedExpr::release_source_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::api::expr::v1alpha1::SourceInfo* released = _impl_.source_info_; - _impl_.source_info_ = nullptr; + + ::google::api::expr::v1alpha1::SourceInfo* temp = source_info_; + source_info_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::expr::v1alpha1::SourceInfo* ParsedExpr::unsafe_arena_release_source_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.ParsedExpr.source_info) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::api::expr::v1alpha1::SourceInfo* temp = _impl_.source_info_; - _impl_.source_info_ = nullptr; + + ::google::api::expr::v1alpha1::SourceInfo* temp = source_info_; + source_info_ = nullptr; return temp; } inline ::google::api::expr::v1alpha1::SourceInfo* ParsedExpr::_internal_mutable_source_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.source_info_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::SourceInfo>(GetArena()); - _impl_.source_info_ = reinterpret_cast<::google::api::expr::v1alpha1::SourceInfo*>(p); + + if (source_info_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::SourceInfo>(GetArenaForAllocation()); + source_info_ = p; } - return _impl_.source_info_; + return source_info_; } -inline ::google::api::expr::v1alpha1::SourceInfo* ParsedExpr::mutable_source_info() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::SourceInfo* ParsedExpr::mutable_source_info() { ::google::api::expr::v1alpha1::SourceInfo* _msg = _internal_mutable_source_info(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.ParsedExpr.source_info) return _msg; } -inline void ParsedExpr::set_allocated_source_info(::google::api::expr::v1alpha1::SourceInfo* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ParsedExpr::set_allocated_source_info(::google::api::expr::v1alpha1::SourceInfo* source_info) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::api::expr::v1alpha1::SourceInfo*>(_impl_.source_info_); + delete source_info_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::api::expr::v1alpha1::SourceInfo*>(value)->GetArena(); + if (source_info) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(source_info); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + source_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, source_info, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.source_info_ = reinterpret_cast<::google::api::expr::v1alpha1::SourceInfo*>(value); + source_info_ = source_info; // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.ParsedExpr.source_info) } @@ -3845,54 +3406,51 @@ inline void ParsedExpr::set_allocated_source_info(::google::api::expr::v1alpha1: // string name = 1 [json_name = "name"]; inline void Expr_Ident::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& Expr_Ident::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Expr_Ident::name() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.Ident.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void Expr_Ident::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Expr_Ident::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Expr.Ident.name) } -inline std::string* Expr_Ident::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Expr_Ident::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Expr.Ident.name) return _s; } inline const std::string& Expr_Ident::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void Expr_Ident::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* Expr_Ident::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* Expr_Ident::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Expr.Ident.name) - return _impl_.name_.Release(); -} -inline void Expr_Ident::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void Expr_Ident::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:google.api.expr.v1alpha1.Expr.Ident.name) } @@ -3901,377 +3459,347 @@ inline void Expr_Ident::set_allocated_name(std::string* value) { // Expr_Select // .google.api.expr.v1alpha1.Expr operand = 1 [json_name = "operand"]; +inline bool Expr_Select::_internal_has_operand() const { + return this != internal_default_instance() && operand_ != nullptr; +} inline bool Expr_Select::has_operand() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.operand_ != nullptr); - return value; + return _internal_has_operand(); } inline void Expr_Select::clear_operand() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.operand_ != nullptr) _impl_.operand_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && operand_ != nullptr) { + delete operand_; + } + operand_ = nullptr; } inline const ::google::api::expr::v1alpha1::Expr& Expr_Select::_internal_operand() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::expr::v1alpha1::Expr* p = _impl_.operand_; - return p != nullptr ? *p : reinterpret_cast(::google::api::expr::v1alpha1::_Expr_default_instance_); + const ::google::api::expr::v1alpha1::Expr* p = operand_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1alpha1::_Expr_default_instance_); } -inline const ::google::api::expr::v1alpha1::Expr& Expr_Select::operand() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::Expr& Expr_Select::operand() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.Select.operand) return _internal_operand(); } -inline void Expr_Select::unsafe_arena_set_allocated_operand(::google::api::expr::v1alpha1::Expr* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.operand_); +inline void Expr_Select::unsafe_arena_set_allocated_operand( + ::google::api::expr::v1alpha1::Expr* operand) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(operand_); } - _impl_.operand_ = reinterpret_cast<::google::api::expr::v1alpha1::Expr*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + operand_ = operand; + if (operand) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Expr.Select.operand) } inline ::google::api::expr::v1alpha1::Expr* Expr_Select::release_operand() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::expr::v1alpha1::Expr* released = _impl_.operand_; - _impl_.operand_ = nullptr; + + ::google::api::expr::v1alpha1::Expr* temp = operand_; + operand_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::expr::v1alpha1::Expr* Expr_Select::unsafe_arena_release_operand() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Expr.Select.operand) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::expr::v1alpha1::Expr* temp = _impl_.operand_; - _impl_.operand_ = nullptr; + + ::google::api::expr::v1alpha1::Expr* temp = operand_; + operand_ = nullptr; return temp; } inline ::google::api::expr::v1alpha1::Expr* Expr_Select::_internal_mutable_operand() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.operand_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Expr>(GetArena()); - _impl_.operand_ = reinterpret_cast<::google::api::expr::v1alpha1::Expr*>(p); + + if (operand_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Expr>(GetArenaForAllocation()); + operand_ = p; } - return _impl_.operand_; + return operand_; } -inline ::google::api::expr::v1alpha1::Expr* Expr_Select::mutable_operand() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::Expr* Expr_Select::mutable_operand() { ::google::api::expr::v1alpha1::Expr* _msg = _internal_mutable_operand(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Expr.Select.operand) return _msg; } -inline void Expr_Select::set_allocated_operand(::google::api::expr::v1alpha1::Expr* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Expr_Select::set_allocated_operand(::google::api::expr::v1alpha1::Expr* operand) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::api::expr::v1alpha1::Expr*>(_impl_.operand_); + delete operand_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::api::expr::v1alpha1::Expr*>(value)->GetArena(); + if (operand) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(operand); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + operand = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, operand, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.operand_ = reinterpret_cast<::google::api::expr::v1alpha1::Expr*>(value); + operand_ = operand; // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Expr.Select.operand) } // string field = 2 [json_name = "field"]; inline void Expr_Select::clear_field() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.field_.ClearToEmpty(); + field_.ClearToEmpty(); } -inline const std::string& Expr_Select::field() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Expr_Select::field() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.Select.field) return _internal_field(); } -template -inline PROTOBUF_ALWAYS_INLINE void Expr_Select::set_field(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.field_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Expr_Select::set_field(ArgT0&& arg0, ArgT... args) { + + field_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Expr.Select.field) } -inline std::string* Expr_Select::mutable_field() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Expr_Select::mutable_field() { std::string* _s = _internal_mutable_field(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Expr.Select.field) return _s; } inline const std::string& Expr_Select::_internal_field() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.field_.Get(); + return field_.Get(); } inline void Expr_Select::_internal_set_field(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.field_.Set(value, GetArena()); + + field_.Set(value, GetArenaForAllocation()); } inline std::string* Expr_Select::_internal_mutable_field() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.field_.Mutable( GetArena()); + + return field_.Mutable(GetArenaForAllocation()); } inline std::string* Expr_Select::release_field() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Expr.Select.field) - return _impl_.field_.Release(); -} -inline void Expr_Select::set_allocated_field(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.field_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.field_.IsDefault()) { - _impl_.field_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return field_.Release(); +} +inline void Expr_Select::set_allocated_field(std::string* field) { + if (field != nullptr) { + + } else { + + } + field_.SetAllocated(field, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (field_.IsDefault()) { + field_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Expr.Select.field) } // bool test_only = 3 [json_name = "testOnly"]; inline void Expr_Select::clear_test_only() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.test_only_ = false; + test_only_ = false; +} +inline bool Expr_Select::_internal_test_only() const { + return test_only_; } inline bool Expr_Select::test_only() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.Select.test_only) return _internal_test_only(); } +inline void Expr_Select::_internal_set_test_only(bool value) { + + test_only_ = value; +} inline void Expr_Select::set_test_only(bool value) { _internal_set_test_only(value); // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Expr.Select.test_only) } -inline bool Expr_Select::_internal_test_only() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.test_only_; -} -inline void Expr_Select::_internal_set_test_only(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.test_only_ = value; -} // ------------------------------------------------------------------- // Expr_Call // .google.api.expr.v1alpha1.Expr target = 1 [json_name = "target"]; +inline bool Expr_Call::_internal_has_target() const { + return this != internal_default_instance() && target_ != nullptr; +} inline bool Expr_Call::has_target() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.target_ != nullptr); - return value; + return _internal_has_target(); } inline void Expr_Call::clear_target() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.target_ != nullptr) _impl_.target_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && target_ != nullptr) { + delete target_; + } + target_ = nullptr; } inline const ::google::api::expr::v1alpha1::Expr& Expr_Call::_internal_target() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::expr::v1alpha1::Expr* p = _impl_.target_; - return p != nullptr ? *p : reinterpret_cast(::google::api::expr::v1alpha1::_Expr_default_instance_); + const ::google::api::expr::v1alpha1::Expr* p = target_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1alpha1::_Expr_default_instance_); } -inline const ::google::api::expr::v1alpha1::Expr& Expr_Call::target() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::Expr& Expr_Call::target() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.Call.target) return _internal_target(); } -inline void Expr_Call::unsafe_arena_set_allocated_target(::google::api::expr::v1alpha1::Expr* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.target_); +inline void Expr_Call::unsafe_arena_set_allocated_target( + ::google::api::expr::v1alpha1::Expr* target) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(target_); } - _impl_.target_ = reinterpret_cast<::google::api::expr::v1alpha1::Expr*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + target_ = target; + if (target) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Expr.Call.target) } inline ::google::api::expr::v1alpha1::Expr* Expr_Call::release_target() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::expr::v1alpha1::Expr* released = _impl_.target_; - _impl_.target_ = nullptr; + + ::google::api::expr::v1alpha1::Expr* temp = target_; + target_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::expr::v1alpha1::Expr* Expr_Call::unsafe_arena_release_target() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Expr.Call.target) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::expr::v1alpha1::Expr* temp = _impl_.target_; - _impl_.target_ = nullptr; + + ::google::api::expr::v1alpha1::Expr* temp = target_; + target_ = nullptr; return temp; } inline ::google::api::expr::v1alpha1::Expr* Expr_Call::_internal_mutable_target() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.target_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Expr>(GetArena()); - _impl_.target_ = reinterpret_cast<::google::api::expr::v1alpha1::Expr*>(p); + + if (target_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Expr>(GetArenaForAllocation()); + target_ = p; } - return _impl_.target_; + return target_; } -inline ::google::api::expr::v1alpha1::Expr* Expr_Call::mutable_target() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::Expr* Expr_Call::mutable_target() { ::google::api::expr::v1alpha1::Expr* _msg = _internal_mutable_target(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Expr.Call.target) return _msg; } -inline void Expr_Call::set_allocated_target(::google::api::expr::v1alpha1::Expr* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Expr_Call::set_allocated_target(::google::api::expr::v1alpha1::Expr* target) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::api::expr::v1alpha1::Expr*>(_impl_.target_); + delete target_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::api::expr::v1alpha1::Expr*>(value)->GetArena(); + if (target) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(target); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + target = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, target, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.target_ = reinterpret_cast<::google::api::expr::v1alpha1::Expr*>(value); + target_ = target; // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Expr.Call.target) } // string function = 2 [json_name = "function"]; inline void Expr_Call::clear_function() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.function_.ClearToEmpty(); + function_.ClearToEmpty(); } -inline const std::string& Expr_Call::function() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Expr_Call::function() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.Call.function) return _internal_function(); } -template -inline PROTOBUF_ALWAYS_INLINE void Expr_Call::set_function(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.function_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Expr_Call::set_function(ArgT0&& arg0, ArgT... args) { + + function_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Expr.Call.function) } -inline std::string* Expr_Call::mutable_function() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Expr_Call::mutable_function() { std::string* _s = _internal_mutable_function(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Expr.Call.function) return _s; } inline const std::string& Expr_Call::_internal_function() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.function_.Get(); + return function_.Get(); } inline void Expr_Call::_internal_set_function(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.function_.Set(value, GetArena()); + + function_.Set(value, GetArenaForAllocation()); } inline std::string* Expr_Call::_internal_mutable_function() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.function_.Mutable( GetArena()); + + return function_.Mutable(GetArenaForAllocation()); } inline std::string* Expr_Call::release_function() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Expr.Call.function) - return _impl_.function_.Release(); -} -inline void Expr_Call::set_allocated_function(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.function_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.function_.IsDefault()) { - _impl_.function_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return function_.Release(); +} +inline void Expr_Call::set_allocated_function(std::string* function) { + if (function != nullptr) { + + } else { + + } + function_.SetAllocated(function, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (function_.IsDefault()) { + function_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Expr.Call.function) } // repeated .google.api.expr.v1alpha1.Expr args = 3 [json_name = "args"]; inline int Expr_Call::_internal_args_size() const { - return _internal_args().size(); + return args_.size(); } inline int Expr_Call::args_size() const { return _internal_args_size(); } inline void Expr_Call::clear_args() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.args_.Clear(); + args_.Clear(); } -inline ::google::api::expr::v1alpha1::Expr* Expr_Call::mutable_args(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::Expr* Expr_Call::mutable_args(int index) { // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Expr.Call.args) - return _internal_mutable_args()->Mutable(index); + return args_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Expr>* Expr_Call::mutable_args() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Expr >* +Expr_Call::mutable_args() { // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1alpha1.Expr.Call.args) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_args(); + return &args_; } -inline const ::google::api::expr::v1alpha1::Expr& Expr_Call::args(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::Expr& Expr_Call::_internal_args(int index) const { + return args_.Get(index); +} +inline const ::google::api::expr::v1alpha1::Expr& Expr_Call::args(int index) const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.Call.args) - return _internal_args().Get(index); + return _internal_args(index); +} +inline ::google::api::expr::v1alpha1::Expr* Expr_Call::_internal_add_args() { + return args_.Add(); } -inline ::google::api::expr::v1alpha1::Expr* Expr_Call::add_args() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::google::api::expr::v1alpha1::Expr* _add = _internal_mutable_args()->Add(); +inline ::google::api::expr::v1alpha1::Expr* Expr_Call::add_args() { + ::google::api::expr::v1alpha1::Expr* _add = _internal_add_args(); // @@protoc_insertion_point(field_add:google.api.expr.v1alpha1.Expr.Call.args) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Expr>& Expr_Call::args() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Expr >& +Expr_Call::args() const { // @@protoc_insertion_point(field_list:google.api.expr.v1alpha1.Expr.Call.args) - return _internal_args(); -} -inline const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Expr>& -Expr_Call::_internal_args() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.args_; -} -inline ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Expr>* -Expr_Call::_internal_mutable_args() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.args_; + return args_; } // ------------------------------------------------------------------- @@ -4280,97 +3808,90 @@ Expr_Call::_internal_mutable_args() { // repeated .google.api.expr.v1alpha1.Expr elements = 1 [json_name = "elements"]; inline int Expr_CreateList::_internal_elements_size() const { - return _internal_elements().size(); + return elements_.size(); } inline int Expr_CreateList::elements_size() const { return _internal_elements_size(); } inline void Expr_CreateList::clear_elements() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.elements_.Clear(); + elements_.Clear(); } -inline ::google::api::expr::v1alpha1::Expr* Expr_CreateList::mutable_elements(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::Expr* Expr_CreateList::mutable_elements(int index) { // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Expr.CreateList.elements) - return _internal_mutable_elements()->Mutable(index); + return elements_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Expr>* Expr_CreateList::mutable_elements() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Expr >* +Expr_CreateList::mutable_elements() { // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1alpha1.Expr.CreateList.elements) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_elements(); + return &elements_; } -inline const ::google::api::expr::v1alpha1::Expr& Expr_CreateList::elements(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::Expr& Expr_CreateList::_internal_elements(int index) const { + return elements_.Get(index); +} +inline const ::google::api::expr::v1alpha1::Expr& Expr_CreateList::elements(int index) const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.CreateList.elements) - return _internal_elements().Get(index); + return _internal_elements(index); +} +inline ::google::api::expr::v1alpha1::Expr* Expr_CreateList::_internal_add_elements() { + return elements_.Add(); } -inline ::google::api::expr::v1alpha1::Expr* Expr_CreateList::add_elements() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::google::api::expr::v1alpha1::Expr* _add = _internal_mutable_elements()->Add(); +inline ::google::api::expr::v1alpha1::Expr* Expr_CreateList::add_elements() { + ::google::api::expr::v1alpha1::Expr* _add = _internal_add_elements(); // @@protoc_insertion_point(field_add:google.api.expr.v1alpha1.Expr.CreateList.elements) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Expr>& Expr_CreateList::elements() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Expr >& +Expr_CreateList::elements() const { // @@protoc_insertion_point(field_list:google.api.expr.v1alpha1.Expr.CreateList.elements) - return _internal_elements(); -} -inline const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Expr>& -Expr_CreateList::_internal_elements() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.elements_; -} -inline ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Expr>* -Expr_CreateList::_internal_mutable_elements() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.elements_; + return elements_; } // repeated int32 optional_indices = 2 [json_name = "optionalIndices"]; inline int Expr_CreateList::_internal_optional_indices_size() const { - return _internal_optional_indices().size(); + return optional_indices_.size(); } inline int Expr_CreateList::optional_indices_size() const { return _internal_optional_indices_size(); } inline void Expr_CreateList::clear_optional_indices() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.optional_indices_.Clear(); + optional_indices_.Clear(); } -inline ::int32_t Expr_CreateList::optional_indices(int index) const { +inline int32_t Expr_CreateList::_internal_optional_indices(int index) const { + return optional_indices_.Get(index); +} +inline int32_t Expr_CreateList::optional_indices(int index) const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.CreateList.optional_indices) - return _internal_optional_indices().Get(index); + return _internal_optional_indices(index); } -inline void Expr_CreateList::set_optional_indices(int index, ::int32_t value) { - _internal_mutable_optional_indices()->Set(index, value); +inline void Expr_CreateList::set_optional_indices(int index, int32_t value) { + optional_indices_.Set(index, value); // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Expr.CreateList.optional_indices) } -inline void Expr_CreateList::add_optional_indices(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_optional_indices()->Add(value); +inline void Expr_CreateList::_internal_add_optional_indices(int32_t value) { + optional_indices_.Add(value); +} +inline void Expr_CreateList::add_optional_indices(int32_t value) { + _internal_add_optional_indices(value); // @@protoc_insertion_point(field_add:google.api.expr.v1alpha1.Expr.CreateList.optional_indices) } -inline const ::google::protobuf::RepeatedField<::int32_t>& Expr_CreateList::optional_indices() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& +Expr_CreateList::_internal_optional_indices() const { + return optional_indices_; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& +Expr_CreateList::optional_indices() const { // @@protoc_insertion_point(field_list:google.api.expr.v1alpha1.Expr.CreateList.optional_indices) return _internal_optional_indices(); } -inline ::google::protobuf::RepeatedField<::int32_t>* Expr_CreateList::mutable_optional_indices() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* +Expr_CreateList::_internal_mutable_optional_indices() { + return &optional_indices_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* +Expr_CreateList::mutable_optional_indices() { // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1alpha1.Expr.CreateList.optional_indices) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _internal_mutable_optional_indices(); } -inline const ::google::protobuf::RepeatedField<::int32_t>& Expr_CreateList::_internal_optional_indices() - const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.optional_indices_; -} -inline ::google::protobuf::RepeatedField<::int32_t>* Expr_CreateList::_internal_mutable_optional_indices() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.optional_indices_; -} // ------------------------------------------------------------------- @@ -4378,315 +3899,293 @@ inline ::google::protobuf::RepeatedField<::int32_t>* Expr_CreateList::_internal_ // int64 id = 1 [json_name = "id"]; inline void Expr_CreateStruct_Entry::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_ = ::int64_t{0}; + id_ = int64_t{0}; } -inline ::int64_t Expr_CreateStruct_Entry::id() const { +inline int64_t Expr_CreateStruct_Entry::_internal_id() const { + return id_; +} +inline int64_t Expr_CreateStruct_Entry::id() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.CreateStruct.Entry.id) return _internal_id(); } -inline void Expr_CreateStruct_Entry::set_id(::int64_t value) { +inline void Expr_CreateStruct_Entry::_internal_set_id(int64_t value) { + + id_ = value; +} +inline void Expr_CreateStruct_Entry::set_id(int64_t value) { _internal_set_id(value); // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Expr.CreateStruct.Entry.id) } -inline ::int64_t Expr_CreateStruct_Entry::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_; -} -inline void Expr_CreateStruct_Entry::_internal_set_id(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_ = value; -} // string field_key = 2 [json_name = "fieldKey"]; -inline bool Expr_CreateStruct_Entry::has_field_key() const { +inline bool Expr_CreateStruct_Entry::_internal_has_field_key() const { return key_kind_case() == kFieldKey; } +inline bool Expr_CreateStruct_Entry::has_field_key() const { + return _internal_has_field_key(); +} inline void Expr_CreateStruct_Entry::set_has_field_key() { - _impl_._oneof_case_[0] = kFieldKey; + _oneof_case_[0] = kFieldKey; } inline void Expr_CreateStruct_Entry::clear_field_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (key_kind_case() == kFieldKey) { - _impl_.key_kind_.field_key_.Destroy(); + if (_internal_has_field_key()) { + key_kind_.field_key_.Destroy(); clear_has_key_kind(); } } -inline const std::string& Expr_CreateStruct_Entry::field_key() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Expr_CreateStruct_Entry::field_key() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.CreateStruct.Entry.field_key) return _internal_field_key(); } -template -inline PROTOBUF_ALWAYS_INLINE void Expr_CreateStruct_Entry::set_field_key(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (key_kind_case() != kFieldKey) { +template +inline void Expr_CreateStruct_Entry::set_field_key(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_field_key()) { clear_key_kind(); - set_has_field_key(); - _impl_.key_kind_.field_key_.InitDefault(); + key_kind_.field_key_.InitDefault(); } - _impl_.key_kind_.field_key_.Set(static_cast(arg), args..., GetArena()); + key_kind_.field_key_.Set( static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Expr.CreateStruct.Entry.field_key) } -inline std::string* Expr_CreateStruct_Entry::mutable_field_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Expr_CreateStruct_Entry::mutable_field_key() { std::string* _s = _internal_mutable_field_key(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Expr.CreateStruct.Entry.field_key) return _s; } inline const std::string& Expr_CreateStruct_Entry::_internal_field_key() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - if (key_kind_case() != kFieldKey) { - return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); + if (_internal_has_field_key()) { + return key_kind_.field_key_.Get(); } - return _impl_.key_kind_.field_key_.Get(); + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } inline void Expr_CreateStruct_Entry::_internal_set_field_key(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (key_kind_case() != kFieldKey) { + if (!_internal_has_field_key()) { clear_key_kind(); - set_has_field_key(); - _impl_.key_kind_.field_key_.InitDefault(); + key_kind_.field_key_.InitDefault(); } - _impl_.key_kind_.field_key_.Set(value, GetArena()); + key_kind_.field_key_.Set(value, GetArenaForAllocation()); } inline std::string* Expr_CreateStruct_Entry::_internal_mutable_field_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (key_kind_case() != kFieldKey) { + if (!_internal_has_field_key()) { clear_key_kind(); - set_has_field_key(); - _impl_.key_kind_.field_key_.InitDefault(); + key_kind_.field_key_.InitDefault(); } - return _impl_.key_kind_.field_key_.Mutable( GetArena()); + return key_kind_.field_key_.Mutable( GetArenaForAllocation()); } inline std::string* Expr_CreateStruct_Entry::release_field_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Expr.CreateStruct.Entry.field_key) - if (key_kind_case() != kFieldKey) { + if (_internal_has_field_key()) { + clear_has_key_kind(); + return key_kind_.field_key_.Release(); + } else { return nullptr; } - clear_has_key_kind(); - return _impl_.key_kind_.field_key_.Release(); } -inline void Expr_CreateStruct_Entry::set_allocated_field_key(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Expr_CreateStruct_Entry::set_allocated_field_key(std::string* field_key) { if (has_key_kind()) { clear_key_kind(); } - if (value != nullptr) { + if (field_key != nullptr) { set_has_field_key(); - _impl_.key_kind_.field_key_.InitAllocated(value, GetArena()); + key_kind_.field_key_.InitAllocated(field_key, GetArenaForAllocation()); } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Expr.CreateStruct.Entry.field_key) } // .google.api.expr.v1alpha1.Expr map_key = 3 [json_name = "mapKey"]; -inline bool Expr_CreateStruct_Entry::has_map_key() const { - return key_kind_case() == kMapKey; -} inline bool Expr_CreateStruct_Entry::_internal_has_map_key() const { return key_kind_case() == kMapKey; } +inline bool Expr_CreateStruct_Entry::has_map_key() const { + return _internal_has_map_key(); +} inline void Expr_CreateStruct_Entry::set_has_map_key() { - _impl_._oneof_case_[0] = kMapKey; + _oneof_case_[0] = kMapKey; } inline void Expr_CreateStruct_Entry::clear_map_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (key_kind_case() == kMapKey) { - if (GetArena() == nullptr) { - delete _impl_.key_kind_.map_key_; + if (_internal_has_map_key()) { + if (GetArenaForAllocation() == nullptr) { + delete key_kind_.map_key_; } clear_has_key_kind(); } } inline ::google::api::expr::v1alpha1::Expr* Expr_CreateStruct_Entry::release_map_key() { // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Expr.CreateStruct.Entry.map_key) - if (key_kind_case() == kMapKey) { + if (_internal_has_map_key()) { clear_has_key_kind(); - auto* temp = _impl_.key_kind_.map_key_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::google::api::expr::v1alpha1::Expr* temp = key_kind_.map_key_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.key_kind_.map_key_ = nullptr; + key_kind_.map_key_ = nullptr; return temp; } else { return nullptr; } } inline const ::google::api::expr::v1alpha1::Expr& Expr_CreateStruct_Entry::_internal_map_key() const { - return key_kind_case() == kMapKey ? *_impl_.key_kind_.map_key_ : reinterpret_cast<::google::api::expr::v1alpha1::Expr&>(::google::api::expr::v1alpha1::_Expr_default_instance_); + return _internal_has_map_key() + ? *key_kind_.map_key_ + : reinterpret_cast< ::google::api::expr::v1alpha1::Expr&>(::google::api::expr::v1alpha1::_Expr_default_instance_); } -inline const ::google::api::expr::v1alpha1::Expr& Expr_CreateStruct_Entry::map_key() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::Expr& Expr_CreateStruct_Entry::map_key() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.CreateStruct.Entry.map_key) return _internal_map_key(); } inline ::google::api::expr::v1alpha1::Expr* Expr_CreateStruct_Entry::unsafe_arena_release_map_key() { // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1alpha1.Expr.CreateStruct.Entry.map_key) - if (key_kind_case() == kMapKey) { + if (_internal_has_map_key()) { clear_has_key_kind(); - auto* temp = _impl_.key_kind_.map_key_; - _impl_.key_kind_.map_key_ = nullptr; + ::google::api::expr::v1alpha1::Expr* temp = key_kind_.map_key_; + key_kind_.map_key_ = nullptr; return temp; } else { return nullptr; } } -inline void Expr_CreateStruct_Entry::unsafe_arena_set_allocated_map_key(::google::api::expr::v1alpha1::Expr* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void Expr_CreateStruct_Entry::unsafe_arena_set_allocated_map_key(::google::api::expr::v1alpha1::Expr* map_key) { clear_key_kind(); - if (value) { + if (map_key) { set_has_map_key(); - _impl_.key_kind_.map_key_ = value; + key_kind_.map_key_ = map_key; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Expr.CreateStruct.Entry.map_key) } inline ::google::api::expr::v1alpha1::Expr* Expr_CreateStruct_Entry::_internal_mutable_map_key() { - if (key_kind_case() != kMapKey) { + if (!_internal_has_map_key()) { clear_key_kind(); set_has_map_key(); - _impl_.key_kind_.map_key_ = CreateMaybeMessage<::google::api::expr::v1alpha1::Expr>(GetArena()); + key_kind_.map_key_ = CreateMaybeMessage< ::google::api::expr::v1alpha1::Expr >(GetArenaForAllocation()); } - return _impl_.key_kind_.map_key_; + return key_kind_.map_key_; } -inline ::google::api::expr::v1alpha1::Expr* Expr_CreateStruct_Entry::mutable_map_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::Expr* Expr_CreateStruct_Entry::mutable_map_key() { ::google::api::expr::v1alpha1::Expr* _msg = _internal_mutable_map_key(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Expr.CreateStruct.Entry.map_key) return _msg; } // .google.api.expr.v1alpha1.Expr value = 4 [json_name = "value"]; +inline bool Expr_CreateStruct_Entry::_internal_has_value() const { + return this != internal_default_instance() && value_ != nullptr; +} inline bool Expr_CreateStruct_Entry::has_value() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.value_ != nullptr); - return value; + return _internal_has_value(); } inline void Expr_CreateStruct_Entry::clear_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.value_ != nullptr) _impl_.value_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && value_ != nullptr) { + delete value_; + } + value_ = nullptr; } inline const ::google::api::expr::v1alpha1::Expr& Expr_CreateStruct_Entry::_internal_value() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::expr::v1alpha1::Expr* p = _impl_.value_; - return p != nullptr ? *p : reinterpret_cast(::google::api::expr::v1alpha1::_Expr_default_instance_); + const ::google::api::expr::v1alpha1::Expr* p = value_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1alpha1::_Expr_default_instance_); } -inline const ::google::api::expr::v1alpha1::Expr& Expr_CreateStruct_Entry::value() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::Expr& Expr_CreateStruct_Entry::value() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.CreateStruct.Entry.value) return _internal_value(); } -inline void Expr_CreateStruct_Entry::unsafe_arena_set_allocated_value(::google::api::expr::v1alpha1::Expr* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.value_); +inline void Expr_CreateStruct_Entry::unsafe_arena_set_allocated_value( + ::google::api::expr::v1alpha1::Expr* value) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(value_); } - _impl_.value_ = reinterpret_cast<::google::api::expr::v1alpha1::Expr*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + value_ = value; + if (value) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Expr.CreateStruct.Entry.value) } inline ::google::api::expr::v1alpha1::Expr* Expr_CreateStruct_Entry::release_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::expr::v1alpha1::Expr* released = _impl_.value_; - _impl_.value_ = nullptr; + + ::google::api::expr::v1alpha1::Expr* temp = value_; + value_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::expr::v1alpha1::Expr* Expr_CreateStruct_Entry::unsafe_arena_release_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Expr.CreateStruct.Entry.value) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::expr::v1alpha1::Expr* temp = _impl_.value_; - _impl_.value_ = nullptr; + + ::google::api::expr::v1alpha1::Expr* temp = value_; + value_ = nullptr; return temp; } inline ::google::api::expr::v1alpha1::Expr* Expr_CreateStruct_Entry::_internal_mutable_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.value_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Expr>(GetArena()); - _impl_.value_ = reinterpret_cast<::google::api::expr::v1alpha1::Expr*>(p); + + if (value_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Expr>(GetArenaForAllocation()); + value_ = p; } - return _impl_.value_; + return value_; } -inline ::google::api::expr::v1alpha1::Expr* Expr_CreateStruct_Entry::mutable_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::Expr* Expr_CreateStruct_Entry::mutable_value() { ::google::api::expr::v1alpha1::Expr* _msg = _internal_mutable_value(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Expr.CreateStruct.Entry.value) return _msg; } inline void Expr_CreateStruct_Entry::set_allocated_value(::google::api::expr::v1alpha1::Expr* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::api::expr::v1alpha1::Expr*>(_impl_.value_); + delete value_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::api::expr::v1alpha1::Expr*>(value)->GetArena(); + if (value) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(value); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, value, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.value_ = reinterpret_cast<::google::api::expr::v1alpha1::Expr*>(value); + value_ = value; // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Expr.CreateStruct.Entry.value) } // bool optional_entry = 5 [json_name = "optionalEntry"]; inline void Expr_CreateStruct_Entry::clear_optional_entry() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.optional_entry_ = false; + optional_entry_ = false; +} +inline bool Expr_CreateStruct_Entry::_internal_optional_entry() const { + return optional_entry_; } inline bool Expr_CreateStruct_Entry::optional_entry() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.CreateStruct.Entry.optional_entry) return _internal_optional_entry(); } +inline void Expr_CreateStruct_Entry::_internal_set_optional_entry(bool value) { + + optional_entry_ = value; +} inline void Expr_CreateStruct_Entry::set_optional_entry(bool value) { _internal_set_optional_entry(value); // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Expr.CreateStruct.Entry.optional_entry) } -inline bool Expr_CreateStruct_Entry::_internal_optional_entry() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.optional_entry_; -} -inline void Expr_CreateStruct_Entry::_internal_set_optional_entry(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.optional_entry_ = value; -} inline bool Expr_CreateStruct_Entry::has_key_kind() const { return key_kind_case() != KEY_KIND_NOT_SET; } inline void Expr_CreateStruct_Entry::clear_has_key_kind() { - _impl_._oneof_case_[0] = KEY_KIND_NOT_SET; + _oneof_case_[0] = KEY_KIND_NOT_SET; } inline Expr_CreateStruct_Entry::KeyKindCase Expr_CreateStruct_Entry::key_kind_case() const { - return Expr_CreateStruct_Entry::KeyKindCase(_impl_._oneof_case_[0]); + return Expr_CreateStruct_Entry::KeyKindCase(_oneof_case_[0]); } // ------------------------------------------------------------------- @@ -4694,104 +4193,92 @@ inline Expr_CreateStruct_Entry::KeyKindCase Expr_CreateStruct_Entry::key_kind_ca // string message_name = 1 [json_name = "messageName"]; inline void Expr_CreateStruct::clear_message_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.message_name_.ClearToEmpty(); + message_name_.ClearToEmpty(); } -inline const std::string& Expr_CreateStruct::message_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Expr_CreateStruct::message_name() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.CreateStruct.message_name) return _internal_message_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void Expr_CreateStruct::set_message_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.message_name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Expr_CreateStruct::set_message_name(ArgT0&& arg0, ArgT... args) { + + message_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Expr.CreateStruct.message_name) } -inline std::string* Expr_CreateStruct::mutable_message_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Expr_CreateStruct::mutable_message_name() { std::string* _s = _internal_mutable_message_name(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Expr.CreateStruct.message_name) return _s; } inline const std::string& Expr_CreateStruct::_internal_message_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.message_name_.Get(); + return message_name_.Get(); } inline void Expr_CreateStruct::_internal_set_message_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.message_name_.Set(value, GetArena()); + + message_name_.Set(value, GetArenaForAllocation()); } inline std::string* Expr_CreateStruct::_internal_mutable_message_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.message_name_.Mutable( GetArena()); + + return message_name_.Mutable(GetArenaForAllocation()); } inline std::string* Expr_CreateStruct::release_message_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Expr.CreateStruct.message_name) - return _impl_.message_name_.Release(); -} -inline void Expr_CreateStruct::set_allocated_message_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.message_name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.message_name_.IsDefault()) { - _impl_.message_name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return message_name_.Release(); +} +inline void Expr_CreateStruct::set_allocated_message_name(std::string* message_name) { + if (message_name != nullptr) { + + } else { + + } + message_name_.SetAllocated(message_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (message_name_.IsDefault()) { + message_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Expr.CreateStruct.message_name) } // repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"]; inline int Expr_CreateStruct::_internal_entries_size() const { - return _internal_entries().size(); + return entries_.size(); } inline int Expr_CreateStruct::entries_size() const { return _internal_entries_size(); } inline void Expr_CreateStruct::clear_entries() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.entries_.Clear(); + entries_.Clear(); } -inline ::google::api::expr::v1alpha1::Expr_CreateStruct_Entry* Expr_CreateStruct::mutable_entries(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::Expr_CreateStruct_Entry* Expr_CreateStruct::mutable_entries(int index) { // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Expr.CreateStruct.entries) - return _internal_mutable_entries()->Mutable(index); + return entries_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Expr_CreateStruct_Entry>* Expr_CreateStruct::mutable_entries() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Expr_CreateStruct_Entry >* +Expr_CreateStruct::mutable_entries() { // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1alpha1.Expr.CreateStruct.entries) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_entries(); + return &entries_; } -inline const ::google::api::expr::v1alpha1::Expr_CreateStruct_Entry& Expr_CreateStruct::entries(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::Expr_CreateStruct_Entry& Expr_CreateStruct::_internal_entries(int index) const { + return entries_.Get(index); +} +inline const ::google::api::expr::v1alpha1::Expr_CreateStruct_Entry& Expr_CreateStruct::entries(int index) const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.CreateStruct.entries) - return _internal_entries().Get(index); + return _internal_entries(index); +} +inline ::google::api::expr::v1alpha1::Expr_CreateStruct_Entry* Expr_CreateStruct::_internal_add_entries() { + return entries_.Add(); } -inline ::google::api::expr::v1alpha1::Expr_CreateStruct_Entry* Expr_CreateStruct::add_entries() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::google::api::expr::v1alpha1::Expr_CreateStruct_Entry* _add = _internal_mutable_entries()->Add(); +inline ::google::api::expr::v1alpha1::Expr_CreateStruct_Entry* Expr_CreateStruct::add_entries() { + ::google::api::expr::v1alpha1::Expr_CreateStruct_Entry* _add = _internal_add_entries(); // @@protoc_insertion_point(field_add:google.api.expr.v1alpha1.Expr.CreateStruct.entries) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Expr_CreateStruct_Entry>& Expr_CreateStruct::entries() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Expr_CreateStruct_Entry >& +Expr_CreateStruct::entries() const { // @@protoc_insertion_point(field_list:google.api.expr.v1alpha1.Expr.CreateStruct.entries) - return _internal_entries(); -} -inline const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Expr_CreateStruct_Entry>& -Expr_CreateStruct::_internal_entries() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.entries_; -} -inline ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Expr_CreateStruct_Entry>* -Expr_CreateStruct::_internal_mutable_entries() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.entries_; + return entries_; } // ------------------------------------------------------------------- @@ -4800,640 +4287,601 @@ Expr_CreateStruct::_internal_mutable_entries() { // string iter_var = 1 [json_name = "iterVar"]; inline void Expr_Comprehension::clear_iter_var() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.iter_var_.ClearToEmpty(); + iter_var_.ClearToEmpty(); } -inline const std::string& Expr_Comprehension::iter_var() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Expr_Comprehension::iter_var() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.Comprehension.iter_var) return _internal_iter_var(); } -template -inline PROTOBUF_ALWAYS_INLINE void Expr_Comprehension::set_iter_var(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.iter_var_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Expr_Comprehension::set_iter_var(ArgT0&& arg0, ArgT... args) { + + iter_var_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Expr.Comprehension.iter_var) } -inline std::string* Expr_Comprehension::mutable_iter_var() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Expr_Comprehension::mutable_iter_var() { std::string* _s = _internal_mutable_iter_var(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Expr.Comprehension.iter_var) return _s; } inline const std::string& Expr_Comprehension::_internal_iter_var() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.iter_var_.Get(); + return iter_var_.Get(); } inline void Expr_Comprehension::_internal_set_iter_var(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.iter_var_.Set(value, GetArena()); + + iter_var_.Set(value, GetArenaForAllocation()); } inline std::string* Expr_Comprehension::_internal_mutable_iter_var() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.iter_var_.Mutable( GetArena()); + + return iter_var_.Mutable(GetArenaForAllocation()); } inline std::string* Expr_Comprehension::release_iter_var() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Expr.Comprehension.iter_var) - return _impl_.iter_var_.Release(); -} -inline void Expr_Comprehension::set_allocated_iter_var(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.iter_var_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.iter_var_.IsDefault()) { - _impl_.iter_var_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return iter_var_.Release(); +} +inline void Expr_Comprehension::set_allocated_iter_var(std::string* iter_var) { + if (iter_var != nullptr) { + + } else { + + } + iter_var_.SetAllocated(iter_var, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (iter_var_.IsDefault()) { + iter_var_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Expr.Comprehension.iter_var) } // string iter_var2 = 8 [json_name = "iterVar2"]; inline void Expr_Comprehension::clear_iter_var2() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.iter_var2_.ClearToEmpty(); + iter_var2_.ClearToEmpty(); } -inline const std::string& Expr_Comprehension::iter_var2() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Expr_Comprehension::iter_var2() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.Comprehension.iter_var2) return _internal_iter_var2(); } -template -inline PROTOBUF_ALWAYS_INLINE void Expr_Comprehension::set_iter_var2(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.iter_var2_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Expr_Comprehension::set_iter_var2(ArgT0&& arg0, ArgT... args) { + + iter_var2_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Expr.Comprehension.iter_var2) } -inline std::string* Expr_Comprehension::mutable_iter_var2() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Expr_Comprehension::mutable_iter_var2() { std::string* _s = _internal_mutable_iter_var2(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Expr.Comprehension.iter_var2) return _s; } inline const std::string& Expr_Comprehension::_internal_iter_var2() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.iter_var2_.Get(); + return iter_var2_.Get(); } inline void Expr_Comprehension::_internal_set_iter_var2(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.iter_var2_.Set(value, GetArena()); + + iter_var2_.Set(value, GetArenaForAllocation()); } inline std::string* Expr_Comprehension::_internal_mutable_iter_var2() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.iter_var2_.Mutable( GetArena()); + + return iter_var2_.Mutable(GetArenaForAllocation()); } inline std::string* Expr_Comprehension::release_iter_var2() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Expr.Comprehension.iter_var2) - return _impl_.iter_var2_.Release(); -} -inline void Expr_Comprehension::set_allocated_iter_var2(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.iter_var2_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.iter_var2_.IsDefault()) { - _impl_.iter_var2_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return iter_var2_.Release(); +} +inline void Expr_Comprehension::set_allocated_iter_var2(std::string* iter_var2) { + if (iter_var2 != nullptr) { + + } else { + + } + iter_var2_.SetAllocated(iter_var2, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (iter_var2_.IsDefault()) { + iter_var2_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Expr.Comprehension.iter_var2) } // .google.api.expr.v1alpha1.Expr iter_range = 2 [json_name = "iterRange"]; +inline bool Expr_Comprehension::_internal_has_iter_range() const { + return this != internal_default_instance() && iter_range_ != nullptr; +} inline bool Expr_Comprehension::has_iter_range() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.iter_range_ != nullptr); - return value; + return _internal_has_iter_range(); } inline void Expr_Comprehension::clear_iter_range() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.iter_range_ != nullptr) _impl_.iter_range_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && iter_range_ != nullptr) { + delete iter_range_; + } + iter_range_ = nullptr; } inline const ::google::api::expr::v1alpha1::Expr& Expr_Comprehension::_internal_iter_range() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::expr::v1alpha1::Expr* p = _impl_.iter_range_; - return p != nullptr ? *p : reinterpret_cast(::google::api::expr::v1alpha1::_Expr_default_instance_); + const ::google::api::expr::v1alpha1::Expr* p = iter_range_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1alpha1::_Expr_default_instance_); } -inline const ::google::api::expr::v1alpha1::Expr& Expr_Comprehension::iter_range() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::Expr& Expr_Comprehension::iter_range() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.Comprehension.iter_range) return _internal_iter_range(); } -inline void Expr_Comprehension::unsafe_arena_set_allocated_iter_range(::google::api::expr::v1alpha1::Expr* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.iter_range_); +inline void Expr_Comprehension::unsafe_arena_set_allocated_iter_range( + ::google::api::expr::v1alpha1::Expr* iter_range) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(iter_range_); } - _impl_.iter_range_ = reinterpret_cast<::google::api::expr::v1alpha1::Expr*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + iter_range_ = iter_range; + if (iter_range) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Expr.Comprehension.iter_range) } inline ::google::api::expr::v1alpha1::Expr* Expr_Comprehension::release_iter_range() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::expr::v1alpha1::Expr* released = _impl_.iter_range_; - _impl_.iter_range_ = nullptr; + + ::google::api::expr::v1alpha1::Expr* temp = iter_range_; + iter_range_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::expr::v1alpha1::Expr* Expr_Comprehension::unsafe_arena_release_iter_range() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Expr.Comprehension.iter_range) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::expr::v1alpha1::Expr* temp = _impl_.iter_range_; - _impl_.iter_range_ = nullptr; + + ::google::api::expr::v1alpha1::Expr* temp = iter_range_; + iter_range_ = nullptr; return temp; } inline ::google::api::expr::v1alpha1::Expr* Expr_Comprehension::_internal_mutable_iter_range() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.iter_range_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Expr>(GetArena()); - _impl_.iter_range_ = reinterpret_cast<::google::api::expr::v1alpha1::Expr*>(p); + + if (iter_range_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Expr>(GetArenaForAllocation()); + iter_range_ = p; } - return _impl_.iter_range_; + return iter_range_; } -inline ::google::api::expr::v1alpha1::Expr* Expr_Comprehension::mutable_iter_range() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::Expr* Expr_Comprehension::mutable_iter_range() { ::google::api::expr::v1alpha1::Expr* _msg = _internal_mutable_iter_range(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Expr.Comprehension.iter_range) return _msg; } -inline void Expr_Comprehension::set_allocated_iter_range(::google::api::expr::v1alpha1::Expr* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Expr_Comprehension::set_allocated_iter_range(::google::api::expr::v1alpha1::Expr* iter_range) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::api::expr::v1alpha1::Expr*>(_impl_.iter_range_); + delete iter_range_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::api::expr::v1alpha1::Expr*>(value)->GetArena(); + if (iter_range) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(iter_range); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + iter_range = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, iter_range, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.iter_range_ = reinterpret_cast<::google::api::expr::v1alpha1::Expr*>(value); + iter_range_ = iter_range; // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Expr.Comprehension.iter_range) } // string accu_var = 3 [json_name = "accuVar"]; inline void Expr_Comprehension::clear_accu_var() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.accu_var_.ClearToEmpty(); + accu_var_.ClearToEmpty(); } -inline const std::string& Expr_Comprehension::accu_var() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Expr_Comprehension::accu_var() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.Comprehension.accu_var) return _internal_accu_var(); } -template -inline PROTOBUF_ALWAYS_INLINE void Expr_Comprehension::set_accu_var(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.accu_var_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Expr_Comprehension::set_accu_var(ArgT0&& arg0, ArgT... args) { + + accu_var_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Expr.Comprehension.accu_var) } -inline std::string* Expr_Comprehension::mutable_accu_var() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Expr_Comprehension::mutable_accu_var() { std::string* _s = _internal_mutable_accu_var(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Expr.Comprehension.accu_var) return _s; } inline const std::string& Expr_Comprehension::_internal_accu_var() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.accu_var_.Get(); + return accu_var_.Get(); } inline void Expr_Comprehension::_internal_set_accu_var(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.accu_var_.Set(value, GetArena()); + + accu_var_.Set(value, GetArenaForAllocation()); } inline std::string* Expr_Comprehension::_internal_mutable_accu_var() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.accu_var_.Mutable( GetArena()); + + return accu_var_.Mutable(GetArenaForAllocation()); } inline std::string* Expr_Comprehension::release_accu_var() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Expr.Comprehension.accu_var) - return _impl_.accu_var_.Release(); -} -inline void Expr_Comprehension::set_allocated_accu_var(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.accu_var_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.accu_var_.IsDefault()) { - _impl_.accu_var_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return accu_var_.Release(); +} +inline void Expr_Comprehension::set_allocated_accu_var(std::string* accu_var) { + if (accu_var != nullptr) { + + } else { + + } + accu_var_.SetAllocated(accu_var, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (accu_var_.IsDefault()) { + accu_var_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Expr.Comprehension.accu_var) } // .google.api.expr.v1alpha1.Expr accu_init = 4 [json_name = "accuInit"]; +inline bool Expr_Comprehension::_internal_has_accu_init() const { + return this != internal_default_instance() && accu_init_ != nullptr; +} inline bool Expr_Comprehension::has_accu_init() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.accu_init_ != nullptr); - return value; + return _internal_has_accu_init(); } inline void Expr_Comprehension::clear_accu_init() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.accu_init_ != nullptr) _impl_.accu_init_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && accu_init_ != nullptr) { + delete accu_init_; + } + accu_init_ = nullptr; } inline const ::google::api::expr::v1alpha1::Expr& Expr_Comprehension::_internal_accu_init() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::expr::v1alpha1::Expr* p = _impl_.accu_init_; - return p != nullptr ? *p : reinterpret_cast(::google::api::expr::v1alpha1::_Expr_default_instance_); + const ::google::api::expr::v1alpha1::Expr* p = accu_init_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1alpha1::_Expr_default_instance_); } -inline const ::google::api::expr::v1alpha1::Expr& Expr_Comprehension::accu_init() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::Expr& Expr_Comprehension::accu_init() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.Comprehension.accu_init) return _internal_accu_init(); } -inline void Expr_Comprehension::unsafe_arena_set_allocated_accu_init(::google::api::expr::v1alpha1::Expr* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.accu_init_); +inline void Expr_Comprehension::unsafe_arena_set_allocated_accu_init( + ::google::api::expr::v1alpha1::Expr* accu_init) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(accu_init_); } - _impl_.accu_init_ = reinterpret_cast<::google::api::expr::v1alpha1::Expr*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + accu_init_ = accu_init; + if (accu_init) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Expr.Comprehension.accu_init) } inline ::google::api::expr::v1alpha1::Expr* Expr_Comprehension::release_accu_init() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::api::expr::v1alpha1::Expr* released = _impl_.accu_init_; - _impl_.accu_init_ = nullptr; + + ::google::api::expr::v1alpha1::Expr* temp = accu_init_; + accu_init_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::expr::v1alpha1::Expr* Expr_Comprehension::unsafe_arena_release_accu_init() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Expr.Comprehension.accu_init) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::api::expr::v1alpha1::Expr* temp = _impl_.accu_init_; - _impl_.accu_init_ = nullptr; + + ::google::api::expr::v1alpha1::Expr* temp = accu_init_; + accu_init_ = nullptr; return temp; } inline ::google::api::expr::v1alpha1::Expr* Expr_Comprehension::_internal_mutable_accu_init() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.accu_init_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Expr>(GetArena()); - _impl_.accu_init_ = reinterpret_cast<::google::api::expr::v1alpha1::Expr*>(p); + + if (accu_init_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Expr>(GetArenaForAllocation()); + accu_init_ = p; } - return _impl_.accu_init_; + return accu_init_; } -inline ::google::api::expr::v1alpha1::Expr* Expr_Comprehension::mutable_accu_init() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::Expr* Expr_Comprehension::mutable_accu_init() { ::google::api::expr::v1alpha1::Expr* _msg = _internal_mutable_accu_init(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Expr.Comprehension.accu_init) return _msg; } -inline void Expr_Comprehension::set_allocated_accu_init(::google::api::expr::v1alpha1::Expr* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Expr_Comprehension::set_allocated_accu_init(::google::api::expr::v1alpha1::Expr* accu_init) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::api::expr::v1alpha1::Expr*>(_impl_.accu_init_); + delete accu_init_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::api::expr::v1alpha1::Expr*>(value)->GetArena(); + if (accu_init) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(accu_init); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + accu_init = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, accu_init, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.accu_init_ = reinterpret_cast<::google::api::expr::v1alpha1::Expr*>(value); + accu_init_ = accu_init; // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Expr.Comprehension.accu_init) } // .google.api.expr.v1alpha1.Expr loop_condition = 5 [json_name = "loopCondition"]; +inline bool Expr_Comprehension::_internal_has_loop_condition() const { + return this != internal_default_instance() && loop_condition_ != nullptr; +} inline bool Expr_Comprehension::has_loop_condition() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || _impl_.loop_condition_ != nullptr); - return value; + return _internal_has_loop_condition(); } inline void Expr_Comprehension::clear_loop_condition() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.loop_condition_ != nullptr) _impl_.loop_condition_->Clear(); - _impl_._has_bits_[0] &= ~0x00000004u; + if (GetArenaForAllocation() == nullptr && loop_condition_ != nullptr) { + delete loop_condition_; + } + loop_condition_ = nullptr; } inline const ::google::api::expr::v1alpha1::Expr& Expr_Comprehension::_internal_loop_condition() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::expr::v1alpha1::Expr* p = _impl_.loop_condition_; - return p != nullptr ? *p : reinterpret_cast(::google::api::expr::v1alpha1::_Expr_default_instance_); + const ::google::api::expr::v1alpha1::Expr* p = loop_condition_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1alpha1::_Expr_default_instance_); } -inline const ::google::api::expr::v1alpha1::Expr& Expr_Comprehension::loop_condition() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::Expr& Expr_Comprehension::loop_condition() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.Comprehension.loop_condition) return _internal_loop_condition(); } -inline void Expr_Comprehension::unsafe_arena_set_allocated_loop_condition(::google::api::expr::v1alpha1::Expr* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.loop_condition_); +inline void Expr_Comprehension::unsafe_arena_set_allocated_loop_condition( + ::google::api::expr::v1alpha1::Expr* loop_condition) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(loop_condition_); } - _impl_.loop_condition_ = reinterpret_cast<::google::api::expr::v1alpha1::Expr*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000004u; + loop_condition_ = loop_condition; + if (loop_condition) { + } else { - _impl_._has_bits_[0] &= ~0x00000004u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Expr.Comprehension.loop_condition) } inline ::google::api::expr::v1alpha1::Expr* Expr_Comprehension::release_loop_condition() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000004u; - ::google::api::expr::v1alpha1::Expr* released = _impl_.loop_condition_; - _impl_.loop_condition_ = nullptr; + + ::google::api::expr::v1alpha1::Expr* temp = loop_condition_; + loop_condition_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::expr::v1alpha1::Expr* Expr_Comprehension::unsafe_arena_release_loop_condition() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Expr.Comprehension.loop_condition) - - _impl_._has_bits_[0] &= ~0x00000004u; - ::google::api::expr::v1alpha1::Expr* temp = _impl_.loop_condition_; - _impl_.loop_condition_ = nullptr; + + ::google::api::expr::v1alpha1::Expr* temp = loop_condition_; + loop_condition_ = nullptr; return temp; } inline ::google::api::expr::v1alpha1::Expr* Expr_Comprehension::_internal_mutable_loop_condition() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - if (_impl_.loop_condition_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Expr>(GetArena()); - _impl_.loop_condition_ = reinterpret_cast<::google::api::expr::v1alpha1::Expr*>(p); + + if (loop_condition_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Expr>(GetArenaForAllocation()); + loop_condition_ = p; } - return _impl_.loop_condition_; + return loop_condition_; } -inline ::google::api::expr::v1alpha1::Expr* Expr_Comprehension::mutable_loop_condition() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::Expr* Expr_Comprehension::mutable_loop_condition() { ::google::api::expr::v1alpha1::Expr* _msg = _internal_mutable_loop_condition(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Expr.Comprehension.loop_condition) return _msg; } -inline void Expr_Comprehension::set_allocated_loop_condition(::google::api::expr::v1alpha1::Expr* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Expr_Comprehension::set_allocated_loop_condition(::google::api::expr::v1alpha1::Expr* loop_condition) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::api::expr::v1alpha1::Expr*>(_impl_.loop_condition_); + delete loop_condition_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::api::expr::v1alpha1::Expr*>(value)->GetArena(); + if (loop_condition) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(loop_condition); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + loop_condition = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, loop_condition, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000004u; + } else { - _impl_._has_bits_[0] &= ~0x00000004u; + } - - _impl_.loop_condition_ = reinterpret_cast<::google::api::expr::v1alpha1::Expr*>(value); + loop_condition_ = loop_condition; // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Expr.Comprehension.loop_condition) } // .google.api.expr.v1alpha1.Expr loop_step = 6 [json_name = "loopStep"]; +inline bool Expr_Comprehension::_internal_has_loop_step() const { + return this != internal_default_instance() && loop_step_ != nullptr; +} inline bool Expr_Comprehension::has_loop_step() const { - bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; - PROTOBUF_ASSUME(!value || _impl_.loop_step_ != nullptr); - return value; + return _internal_has_loop_step(); } inline void Expr_Comprehension::clear_loop_step() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.loop_step_ != nullptr) _impl_.loop_step_->Clear(); - _impl_._has_bits_[0] &= ~0x00000008u; + if (GetArenaForAllocation() == nullptr && loop_step_ != nullptr) { + delete loop_step_; + } + loop_step_ = nullptr; } inline const ::google::api::expr::v1alpha1::Expr& Expr_Comprehension::_internal_loop_step() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::expr::v1alpha1::Expr* p = _impl_.loop_step_; - return p != nullptr ? *p : reinterpret_cast(::google::api::expr::v1alpha1::_Expr_default_instance_); + const ::google::api::expr::v1alpha1::Expr* p = loop_step_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1alpha1::_Expr_default_instance_); } -inline const ::google::api::expr::v1alpha1::Expr& Expr_Comprehension::loop_step() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::Expr& Expr_Comprehension::loop_step() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.Comprehension.loop_step) return _internal_loop_step(); } -inline void Expr_Comprehension::unsafe_arena_set_allocated_loop_step(::google::api::expr::v1alpha1::Expr* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.loop_step_); +inline void Expr_Comprehension::unsafe_arena_set_allocated_loop_step( + ::google::api::expr::v1alpha1::Expr* loop_step) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(loop_step_); } - _impl_.loop_step_ = reinterpret_cast<::google::api::expr::v1alpha1::Expr*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000008u; + loop_step_ = loop_step; + if (loop_step) { + } else { - _impl_._has_bits_[0] &= ~0x00000008u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Expr.Comprehension.loop_step) } inline ::google::api::expr::v1alpha1::Expr* Expr_Comprehension::release_loop_step() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000008u; - ::google::api::expr::v1alpha1::Expr* released = _impl_.loop_step_; - _impl_.loop_step_ = nullptr; + + ::google::api::expr::v1alpha1::Expr* temp = loop_step_; + loop_step_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::expr::v1alpha1::Expr* Expr_Comprehension::unsafe_arena_release_loop_step() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Expr.Comprehension.loop_step) - - _impl_._has_bits_[0] &= ~0x00000008u; - ::google::api::expr::v1alpha1::Expr* temp = _impl_.loop_step_; - _impl_.loop_step_ = nullptr; + + ::google::api::expr::v1alpha1::Expr* temp = loop_step_; + loop_step_ = nullptr; return temp; } inline ::google::api::expr::v1alpha1::Expr* Expr_Comprehension::_internal_mutable_loop_step() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000008u; - if (_impl_.loop_step_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Expr>(GetArena()); - _impl_.loop_step_ = reinterpret_cast<::google::api::expr::v1alpha1::Expr*>(p); + + if (loop_step_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Expr>(GetArenaForAllocation()); + loop_step_ = p; } - return _impl_.loop_step_; + return loop_step_; } -inline ::google::api::expr::v1alpha1::Expr* Expr_Comprehension::mutable_loop_step() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::Expr* Expr_Comprehension::mutable_loop_step() { ::google::api::expr::v1alpha1::Expr* _msg = _internal_mutable_loop_step(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Expr.Comprehension.loop_step) return _msg; } -inline void Expr_Comprehension::set_allocated_loop_step(::google::api::expr::v1alpha1::Expr* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Expr_Comprehension::set_allocated_loop_step(::google::api::expr::v1alpha1::Expr* loop_step) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::api::expr::v1alpha1::Expr*>(_impl_.loop_step_); + delete loop_step_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::api::expr::v1alpha1::Expr*>(value)->GetArena(); + if (loop_step) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(loop_step); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + loop_step = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, loop_step, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000008u; + } else { - _impl_._has_bits_[0] &= ~0x00000008u; + } - - _impl_.loop_step_ = reinterpret_cast<::google::api::expr::v1alpha1::Expr*>(value); + loop_step_ = loop_step; // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Expr.Comprehension.loop_step) } // .google.api.expr.v1alpha1.Expr result = 7 [json_name = "result"]; +inline bool Expr_Comprehension::_internal_has_result() const { + return this != internal_default_instance() && result_ != nullptr; +} inline bool Expr_Comprehension::has_result() const { - bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; - PROTOBUF_ASSUME(!value || _impl_.result_ != nullptr); - return value; + return _internal_has_result(); } inline void Expr_Comprehension::clear_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.result_ != nullptr) _impl_.result_->Clear(); - _impl_._has_bits_[0] &= ~0x00000010u; + if (GetArenaForAllocation() == nullptr && result_ != nullptr) { + delete result_; + } + result_ = nullptr; } inline const ::google::api::expr::v1alpha1::Expr& Expr_Comprehension::_internal_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::expr::v1alpha1::Expr* p = _impl_.result_; - return p != nullptr ? *p : reinterpret_cast(::google::api::expr::v1alpha1::_Expr_default_instance_); + const ::google::api::expr::v1alpha1::Expr* p = result_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1alpha1::_Expr_default_instance_); } -inline const ::google::api::expr::v1alpha1::Expr& Expr_Comprehension::result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::Expr& Expr_Comprehension::result() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.Comprehension.result) return _internal_result(); } -inline void Expr_Comprehension::unsafe_arena_set_allocated_result(::google::api::expr::v1alpha1::Expr* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.result_); +inline void Expr_Comprehension::unsafe_arena_set_allocated_result( + ::google::api::expr::v1alpha1::Expr* result) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(result_); } - _impl_.result_ = reinterpret_cast<::google::api::expr::v1alpha1::Expr*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000010u; + result_ = result; + if (result) { + } else { - _impl_._has_bits_[0] &= ~0x00000010u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Expr.Comprehension.result) } inline ::google::api::expr::v1alpha1::Expr* Expr_Comprehension::release_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000010u; - ::google::api::expr::v1alpha1::Expr* released = _impl_.result_; - _impl_.result_ = nullptr; + + ::google::api::expr::v1alpha1::Expr* temp = result_; + result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::expr::v1alpha1::Expr* Expr_Comprehension::unsafe_arena_release_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Expr.Comprehension.result) - - _impl_._has_bits_[0] &= ~0x00000010u; - ::google::api::expr::v1alpha1::Expr* temp = _impl_.result_; - _impl_.result_ = nullptr; + + ::google::api::expr::v1alpha1::Expr* temp = result_; + result_ = nullptr; return temp; } inline ::google::api::expr::v1alpha1::Expr* Expr_Comprehension::_internal_mutable_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000010u; - if (_impl_.result_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Expr>(GetArena()); - _impl_.result_ = reinterpret_cast<::google::api::expr::v1alpha1::Expr*>(p); + + if (result_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Expr>(GetArenaForAllocation()); + result_ = p; } - return _impl_.result_; + return result_; } -inline ::google::api::expr::v1alpha1::Expr* Expr_Comprehension::mutable_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::Expr* Expr_Comprehension::mutable_result() { ::google::api::expr::v1alpha1::Expr* _msg = _internal_mutable_result(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Expr.Comprehension.result) return _msg; } -inline void Expr_Comprehension::set_allocated_result(::google::api::expr::v1alpha1::Expr* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Expr_Comprehension::set_allocated_result(::google::api::expr::v1alpha1::Expr* result) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::api::expr::v1alpha1::Expr*>(_impl_.result_); + delete result_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::api::expr::v1alpha1::Expr*>(value)->GetArena(); + if (result) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(result); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, result, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000010u; + } else { - _impl_._has_bits_[0] &= ~0x00000010u; + } - - _impl_.result_ = reinterpret_cast<::google::api::expr::v1alpha1::Expr*>(value); + result_ = result; // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Expr.Comprehension.result) } @@ -5443,554 +4891,537 @@ inline void Expr_Comprehension::set_allocated_result(::google::api::expr::v1alph // int64 id = 2 [json_name = "id"]; inline void Expr::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_ = ::int64_t{0}; + id_ = int64_t{0}; } -inline ::int64_t Expr::id() const { +inline int64_t Expr::_internal_id() const { + return id_; +} +inline int64_t Expr::id() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.id) return _internal_id(); } -inline void Expr::set_id(::int64_t value) { +inline void Expr::_internal_set_id(int64_t value) { + + id_ = value; +} +inline void Expr::set_id(int64_t value) { _internal_set_id(value); // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Expr.id) } -inline ::int64_t Expr::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_; -} -inline void Expr::_internal_set_id(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_ = value; -} // .google.api.expr.v1alpha1.Constant const_expr = 3 [json_name = "constExpr"]; -inline bool Expr::has_const_expr() const { - return expr_kind_case() == kConstExpr; -} inline bool Expr::_internal_has_const_expr() const { return expr_kind_case() == kConstExpr; } +inline bool Expr::has_const_expr() const { + return _internal_has_const_expr(); +} inline void Expr::set_has_const_expr() { - _impl_._oneof_case_[0] = kConstExpr; + _oneof_case_[0] = kConstExpr; } inline void Expr::clear_const_expr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (expr_kind_case() == kConstExpr) { - if (GetArena() == nullptr) { - delete _impl_.expr_kind_.const_expr_; + if (_internal_has_const_expr()) { + if (GetArenaForAllocation() == nullptr) { + delete expr_kind_.const_expr_; } clear_has_expr_kind(); } } inline ::google::api::expr::v1alpha1::Constant* Expr::release_const_expr() { // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Expr.const_expr) - if (expr_kind_case() == kConstExpr) { + if (_internal_has_const_expr()) { clear_has_expr_kind(); - auto* temp = _impl_.expr_kind_.const_expr_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::google::api::expr::v1alpha1::Constant* temp = expr_kind_.const_expr_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.expr_kind_.const_expr_ = nullptr; + expr_kind_.const_expr_ = nullptr; return temp; } else { return nullptr; } } inline const ::google::api::expr::v1alpha1::Constant& Expr::_internal_const_expr() const { - return expr_kind_case() == kConstExpr ? *_impl_.expr_kind_.const_expr_ : reinterpret_cast<::google::api::expr::v1alpha1::Constant&>(::google::api::expr::v1alpha1::_Constant_default_instance_); + return _internal_has_const_expr() + ? *expr_kind_.const_expr_ + : reinterpret_cast< ::google::api::expr::v1alpha1::Constant&>(::google::api::expr::v1alpha1::_Constant_default_instance_); } -inline const ::google::api::expr::v1alpha1::Constant& Expr::const_expr() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::Constant& Expr::const_expr() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.const_expr) return _internal_const_expr(); } inline ::google::api::expr::v1alpha1::Constant* Expr::unsafe_arena_release_const_expr() { // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1alpha1.Expr.const_expr) - if (expr_kind_case() == kConstExpr) { + if (_internal_has_const_expr()) { clear_has_expr_kind(); - auto* temp = _impl_.expr_kind_.const_expr_; - _impl_.expr_kind_.const_expr_ = nullptr; + ::google::api::expr::v1alpha1::Constant* temp = expr_kind_.const_expr_; + expr_kind_.const_expr_ = nullptr; return temp; } else { return nullptr; } } -inline void Expr::unsafe_arena_set_allocated_const_expr(::google::api::expr::v1alpha1::Constant* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void Expr::unsafe_arena_set_allocated_const_expr(::google::api::expr::v1alpha1::Constant* const_expr) { clear_expr_kind(); - if (value) { + if (const_expr) { set_has_const_expr(); - _impl_.expr_kind_.const_expr_ = value; + expr_kind_.const_expr_ = const_expr; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Expr.const_expr) } inline ::google::api::expr::v1alpha1::Constant* Expr::_internal_mutable_const_expr() { - if (expr_kind_case() != kConstExpr) { + if (!_internal_has_const_expr()) { clear_expr_kind(); set_has_const_expr(); - _impl_.expr_kind_.const_expr_ = CreateMaybeMessage<::google::api::expr::v1alpha1::Constant>(GetArena()); + expr_kind_.const_expr_ = CreateMaybeMessage< ::google::api::expr::v1alpha1::Constant >(GetArenaForAllocation()); } - return _impl_.expr_kind_.const_expr_; + return expr_kind_.const_expr_; } -inline ::google::api::expr::v1alpha1::Constant* Expr::mutable_const_expr() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::Constant* Expr::mutable_const_expr() { ::google::api::expr::v1alpha1::Constant* _msg = _internal_mutable_const_expr(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Expr.const_expr) return _msg; } // .google.api.expr.v1alpha1.Expr.Ident ident_expr = 4 [json_name = "identExpr"]; -inline bool Expr::has_ident_expr() const { - return expr_kind_case() == kIdentExpr; -} inline bool Expr::_internal_has_ident_expr() const { return expr_kind_case() == kIdentExpr; } +inline bool Expr::has_ident_expr() const { + return _internal_has_ident_expr(); +} inline void Expr::set_has_ident_expr() { - _impl_._oneof_case_[0] = kIdentExpr; + _oneof_case_[0] = kIdentExpr; } inline void Expr::clear_ident_expr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (expr_kind_case() == kIdentExpr) { - if (GetArena() == nullptr) { - delete _impl_.expr_kind_.ident_expr_; + if (_internal_has_ident_expr()) { + if (GetArenaForAllocation() == nullptr) { + delete expr_kind_.ident_expr_; } clear_has_expr_kind(); } } inline ::google::api::expr::v1alpha1::Expr_Ident* Expr::release_ident_expr() { // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Expr.ident_expr) - if (expr_kind_case() == kIdentExpr) { + if (_internal_has_ident_expr()) { clear_has_expr_kind(); - auto* temp = _impl_.expr_kind_.ident_expr_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::google::api::expr::v1alpha1::Expr_Ident* temp = expr_kind_.ident_expr_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.expr_kind_.ident_expr_ = nullptr; + expr_kind_.ident_expr_ = nullptr; return temp; } else { return nullptr; } } inline const ::google::api::expr::v1alpha1::Expr_Ident& Expr::_internal_ident_expr() const { - return expr_kind_case() == kIdentExpr ? *_impl_.expr_kind_.ident_expr_ : reinterpret_cast<::google::api::expr::v1alpha1::Expr_Ident&>(::google::api::expr::v1alpha1::_Expr_Ident_default_instance_); + return _internal_has_ident_expr() + ? *expr_kind_.ident_expr_ + : reinterpret_cast< ::google::api::expr::v1alpha1::Expr_Ident&>(::google::api::expr::v1alpha1::_Expr_Ident_default_instance_); } -inline const ::google::api::expr::v1alpha1::Expr_Ident& Expr::ident_expr() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::Expr_Ident& Expr::ident_expr() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.ident_expr) return _internal_ident_expr(); } inline ::google::api::expr::v1alpha1::Expr_Ident* Expr::unsafe_arena_release_ident_expr() { // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1alpha1.Expr.ident_expr) - if (expr_kind_case() == kIdentExpr) { + if (_internal_has_ident_expr()) { clear_has_expr_kind(); - auto* temp = _impl_.expr_kind_.ident_expr_; - _impl_.expr_kind_.ident_expr_ = nullptr; + ::google::api::expr::v1alpha1::Expr_Ident* temp = expr_kind_.ident_expr_; + expr_kind_.ident_expr_ = nullptr; return temp; } else { return nullptr; } } -inline void Expr::unsafe_arena_set_allocated_ident_expr(::google::api::expr::v1alpha1::Expr_Ident* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void Expr::unsafe_arena_set_allocated_ident_expr(::google::api::expr::v1alpha1::Expr_Ident* ident_expr) { clear_expr_kind(); - if (value) { + if (ident_expr) { set_has_ident_expr(); - _impl_.expr_kind_.ident_expr_ = value; + expr_kind_.ident_expr_ = ident_expr; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Expr.ident_expr) } inline ::google::api::expr::v1alpha1::Expr_Ident* Expr::_internal_mutable_ident_expr() { - if (expr_kind_case() != kIdentExpr) { + if (!_internal_has_ident_expr()) { clear_expr_kind(); set_has_ident_expr(); - _impl_.expr_kind_.ident_expr_ = CreateMaybeMessage<::google::api::expr::v1alpha1::Expr_Ident>(GetArena()); + expr_kind_.ident_expr_ = CreateMaybeMessage< ::google::api::expr::v1alpha1::Expr_Ident >(GetArenaForAllocation()); } - return _impl_.expr_kind_.ident_expr_; + return expr_kind_.ident_expr_; } -inline ::google::api::expr::v1alpha1::Expr_Ident* Expr::mutable_ident_expr() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::Expr_Ident* Expr::mutable_ident_expr() { ::google::api::expr::v1alpha1::Expr_Ident* _msg = _internal_mutable_ident_expr(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Expr.ident_expr) return _msg; } // .google.api.expr.v1alpha1.Expr.Select select_expr = 5 [json_name = "selectExpr"]; -inline bool Expr::has_select_expr() const { - return expr_kind_case() == kSelectExpr; -} inline bool Expr::_internal_has_select_expr() const { return expr_kind_case() == kSelectExpr; } +inline bool Expr::has_select_expr() const { + return _internal_has_select_expr(); +} inline void Expr::set_has_select_expr() { - _impl_._oneof_case_[0] = kSelectExpr; + _oneof_case_[0] = kSelectExpr; } inline void Expr::clear_select_expr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (expr_kind_case() == kSelectExpr) { - if (GetArena() == nullptr) { - delete _impl_.expr_kind_.select_expr_; + if (_internal_has_select_expr()) { + if (GetArenaForAllocation() == nullptr) { + delete expr_kind_.select_expr_; } clear_has_expr_kind(); } } inline ::google::api::expr::v1alpha1::Expr_Select* Expr::release_select_expr() { // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Expr.select_expr) - if (expr_kind_case() == kSelectExpr) { + if (_internal_has_select_expr()) { clear_has_expr_kind(); - auto* temp = _impl_.expr_kind_.select_expr_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::google::api::expr::v1alpha1::Expr_Select* temp = expr_kind_.select_expr_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.expr_kind_.select_expr_ = nullptr; + expr_kind_.select_expr_ = nullptr; return temp; } else { return nullptr; } } inline const ::google::api::expr::v1alpha1::Expr_Select& Expr::_internal_select_expr() const { - return expr_kind_case() == kSelectExpr ? *_impl_.expr_kind_.select_expr_ : reinterpret_cast<::google::api::expr::v1alpha1::Expr_Select&>(::google::api::expr::v1alpha1::_Expr_Select_default_instance_); + return _internal_has_select_expr() + ? *expr_kind_.select_expr_ + : reinterpret_cast< ::google::api::expr::v1alpha1::Expr_Select&>(::google::api::expr::v1alpha1::_Expr_Select_default_instance_); } -inline const ::google::api::expr::v1alpha1::Expr_Select& Expr::select_expr() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::Expr_Select& Expr::select_expr() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.select_expr) return _internal_select_expr(); } inline ::google::api::expr::v1alpha1::Expr_Select* Expr::unsafe_arena_release_select_expr() { // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1alpha1.Expr.select_expr) - if (expr_kind_case() == kSelectExpr) { + if (_internal_has_select_expr()) { clear_has_expr_kind(); - auto* temp = _impl_.expr_kind_.select_expr_; - _impl_.expr_kind_.select_expr_ = nullptr; + ::google::api::expr::v1alpha1::Expr_Select* temp = expr_kind_.select_expr_; + expr_kind_.select_expr_ = nullptr; return temp; } else { return nullptr; } } -inline void Expr::unsafe_arena_set_allocated_select_expr(::google::api::expr::v1alpha1::Expr_Select* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void Expr::unsafe_arena_set_allocated_select_expr(::google::api::expr::v1alpha1::Expr_Select* select_expr) { clear_expr_kind(); - if (value) { + if (select_expr) { set_has_select_expr(); - _impl_.expr_kind_.select_expr_ = value; + expr_kind_.select_expr_ = select_expr; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Expr.select_expr) } inline ::google::api::expr::v1alpha1::Expr_Select* Expr::_internal_mutable_select_expr() { - if (expr_kind_case() != kSelectExpr) { + if (!_internal_has_select_expr()) { clear_expr_kind(); set_has_select_expr(); - _impl_.expr_kind_.select_expr_ = CreateMaybeMessage<::google::api::expr::v1alpha1::Expr_Select>(GetArena()); + expr_kind_.select_expr_ = CreateMaybeMessage< ::google::api::expr::v1alpha1::Expr_Select >(GetArenaForAllocation()); } - return _impl_.expr_kind_.select_expr_; + return expr_kind_.select_expr_; } -inline ::google::api::expr::v1alpha1::Expr_Select* Expr::mutable_select_expr() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::Expr_Select* Expr::mutable_select_expr() { ::google::api::expr::v1alpha1::Expr_Select* _msg = _internal_mutable_select_expr(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Expr.select_expr) return _msg; } // .google.api.expr.v1alpha1.Expr.Call call_expr = 6 [json_name = "callExpr"]; -inline bool Expr::has_call_expr() const { - return expr_kind_case() == kCallExpr; -} inline bool Expr::_internal_has_call_expr() const { return expr_kind_case() == kCallExpr; } +inline bool Expr::has_call_expr() const { + return _internal_has_call_expr(); +} inline void Expr::set_has_call_expr() { - _impl_._oneof_case_[0] = kCallExpr; + _oneof_case_[0] = kCallExpr; } inline void Expr::clear_call_expr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (expr_kind_case() == kCallExpr) { - if (GetArena() == nullptr) { - delete _impl_.expr_kind_.call_expr_; + if (_internal_has_call_expr()) { + if (GetArenaForAllocation() == nullptr) { + delete expr_kind_.call_expr_; } clear_has_expr_kind(); } } inline ::google::api::expr::v1alpha1::Expr_Call* Expr::release_call_expr() { // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Expr.call_expr) - if (expr_kind_case() == kCallExpr) { + if (_internal_has_call_expr()) { clear_has_expr_kind(); - auto* temp = _impl_.expr_kind_.call_expr_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::google::api::expr::v1alpha1::Expr_Call* temp = expr_kind_.call_expr_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.expr_kind_.call_expr_ = nullptr; + expr_kind_.call_expr_ = nullptr; return temp; } else { return nullptr; } } inline const ::google::api::expr::v1alpha1::Expr_Call& Expr::_internal_call_expr() const { - return expr_kind_case() == kCallExpr ? *_impl_.expr_kind_.call_expr_ : reinterpret_cast<::google::api::expr::v1alpha1::Expr_Call&>(::google::api::expr::v1alpha1::_Expr_Call_default_instance_); + return _internal_has_call_expr() + ? *expr_kind_.call_expr_ + : reinterpret_cast< ::google::api::expr::v1alpha1::Expr_Call&>(::google::api::expr::v1alpha1::_Expr_Call_default_instance_); } -inline const ::google::api::expr::v1alpha1::Expr_Call& Expr::call_expr() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::Expr_Call& Expr::call_expr() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.call_expr) return _internal_call_expr(); } inline ::google::api::expr::v1alpha1::Expr_Call* Expr::unsafe_arena_release_call_expr() { // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1alpha1.Expr.call_expr) - if (expr_kind_case() == kCallExpr) { + if (_internal_has_call_expr()) { clear_has_expr_kind(); - auto* temp = _impl_.expr_kind_.call_expr_; - _impl_.expr_kind_.call_expr_ = nullptr; + ::google::api::expr::v1alpha1::Expr_Call* temp = expr_kind_.call_expr_; + expr_kind_.call_expr_ = nullptr; return temp; } else { return nullptr; } } -inline void Expr::unsafe_arena_set_allocated_call_expr(::google::api::expr::v1alpha1::Expr_Call* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void Expr::unsafe_arena_set_allocated_call_expr(::google::api::expr::v1alpha1::Expr_Call* call_expr) { clear_expr_kind(); - if (value) { + if (call_expr) { set_has_call_expr(); - _impl_.expr_kind_.call_expr_ = value; + expr_kind_.call_expr_ = call_expr; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Expr.call_expr) } inline ::google::api::expr::v1alpha1::Expr_Call* Expr::_internal_mutable_call_expr() { - if (expr_kind_case() != kCallExpr) { + if (!_internal_has_call_expr()) { clear_expr_kind(); set_has_call_expr(); - _impl_.expr_kind_.call_expr_ = CreateMaybeMessage<::google::api::expr::v1alpha1::Expr_Call>(GetArena()); + expr_kind_.call_expr_ = CreateMaybeMessage< ::google::api::expr::v1alpha1::Expr_Call >(GetArenaForAllocation()); } - return _impl_.expr_kind_.call_expr_; + return expr_kind_.call_expr_; } -inline ::google::api::expr::v1alpha1::Expr_Call* Expr::mutable_call_expr() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::Expr_Call* Expr::mutable_call_expr() { ::google::api::expr::v1alpha1::Expr_Call* _msg = _internal_mutable_call_expr(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Expr.call_expr) return _msg; } // .google.api.expr.v1alpha1.Expr.CreateList list_expr = 7 [json_name = "listExpr"]; -inline bool Expr::has_list_expr() const { - return expr_kind_case() == kListExpr; -} inline bool Expr::_internal_has_list_expr() const { return expr_kind_case() == kListExpr; } +inline bool Expr::has_list_expr() const { + return _internal_has_list_expr(); +} inline void Expr::set_has_list_expr() { - _impl_._oneof_case_[0] = kListExpr; + _oneof_case_[0] = kListExpr; } inline void Expr::clear_list_expr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (expr_kind_case() == kListExpr) { - if (GetArena() == nullptr) { - delete _impl_.expr_kind_.list_expr_; + if (_internal_has_list_expr()) { + if (GetArenaForAllocation() == nullptr) { + delete expr_kind_.list_expr_; } clear_has_expr_kind(); } } inline ::google::api::expr::v1alpha1::Expr_CreateList* Expr::release_list_expr() { // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Expr.list_expr) - if (expr_kind_case() == kListExpr) { + if (_internal_has_list_expr()) { clear_has_expr_kind(); - auto* temp = _impl_.expr_kind_.list_expr_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::google::api::expr::v1alpha1::Expr_CreateList* temp = expr_kind_.list_expr_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.expr_kind_.list_expr_ = nullptr; + expr_kind_.list_expr_ = nullptr; return temp; } else { return nullptr; } } inline const ::google::api::expr::v1alpha1::Expr_CreateList& Expr::_internal_list_expr() const { - return expr_kind_case() == kListExpr ? *_impl_.expr_kind_.list_expr_ : reinterpret_cast<::google::api::expr::v1alpha1::Expr_CreateList&>(::google::api::expr::v1alpha1::_Expr_CreateList_default_instance_); + return _internal_has_list_expr() + ? *expr_kind_.list_expr_ + : reinterpret_cast< ::google::api::expr::v1alpha1::Expr_CreateList&>(::google::api::expr::v1alpha1::_Expr_CreateList_default_instance_); } -inline const ::google::api::expr::v1alpha1::Expr_CreateList& Expr::list_expr() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::Expr_CreateList& Expr::list_expr() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.list_expr) return _internal_list_expr(); } inline ::google::api::expr::v1alpha1::Expr_CreateList* Expr::unsafe_arena_release_list_expr() { // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1alpha1.Expr.list_expr) - if (expr_kind_case() == kListExpr) { + if (_internal_has_list_expr()) { clear_has_expr_kind(); - auto* temp = _impl_.expr_kind_.list_expr_; - _impl_.expr_kind_.list_expr_ = nullptr; + ::google::api::expr::v1alpha1::Expr_CreateList* temp = expr_kind_.list_expr_; + expr_kind_.list_expr_ = nullptr; return temp; } else { return nullptr; } } -inline void Expr::unsafe_arena_set_allocated_list_expr(::google::api::expr::v1alpha1::Expr_CreateList* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void Expr::unsafe_arena_set_allocated_list_expr(::google::api::expr::v1alpha1::Expr_CreateList* list_expr) { clear_expr_kind(); - if (value) { + if (list_expr) { set_has_list_expr(); - _impl_.expr_kind_.list_expr_ = value; + expr_kind_.list_expr_ = list_expr; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Expr.list_expr) } inline ::google::api::expr::v1alpha1::Expr_CreateList* Expr::_internal_mutable_list_expr() { - if (expr_kind_case() != kListExpr) { + if (!_internal_has_list_expr()) { clear_expr_kind(); set_has_list_expr(); - _impl_.expr_kind_.list_expr_ = CreateMaybeMessage<::google::api::expr::v1alpha1::Expr_CreateList>(GetArena()); + expr_kind_.list_expr_ = CreateMaybeMessage< ::google::api::expr::v1alpha1::Expr_CreateList >(GetArenaForAllocation()); } - return _impl_.expr_kind_.list_expr_; + return expr_kind_.list_expr_; } -inline ::google::api::expr::v1alpha1::Expr_CreateList* Expr::mutable_list_expr() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::Expr_CreateList* Expr::mutable_list_expr() { ::google::api::expr::v1alpha1::Expr_CreateList* _msg = _internal_mutable_list_expr(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Expr.list_expr) return _msg; } // .google.api.expr.v1alpha1.Expr.CreateStruct struct_expr = 8 [json_name = "structExpr"]; -inline bool Expr::has_struct_expr() const { - return expr_kind_case() == kStructExpr; -} inline bool Expr::_internal_has_struct_expr() const { return expr_kind_case() == kStructExpr; } +inline bool Expr::has_struct_expr() const { + return _internal_has_struct_expr(); +} inline void Expr::set_has_struct_expr() { - _impl_._oneof_case_[0] = kStructExpr; + _oneof_case_[0] = kStructExpr; } inline void Expr::clear_struct_expr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (expr_kind_case() == kStructExpr) { - if (GetArena() == nullptr) { - delete _impl_.expr_kind_.struct_expr_; + if (_internal_has_struct_expr()) { + if (GetArenaForAllocation() == nullptr) { + delete expr_kind_.struct_expr_; } clear_has_expr_kind(); } } inline ::google::api::expr::v1alpha1::Expr_CreateStruct* Expr::release_struct_expr() { // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Expr.struct_expr) - if (expr_kind_case() == kStructExpr) { + if (_internal_has_struct_expr()) { clear_has_expr_kind(); - auto* temp = _impl_.expr_kind_.struct_expr_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::google::api::expr::v1alpha1::Expr_CreateStruct* temp = expr_kind_.struct_expr_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.expr_kind_.struct_expr_ = nullptr; + expr_kind_.struct_expr_ = nullptr; return temp; } else { return nullptr; } } inline const ::google::api::expr::v1alpha1::Expr_CreateStruct& Expr::_internal_struct_expr() const { - return expr_kind_case() == kStructExpr ? *_impl_.expr_kind_.struct_expr_ : reinterpret_cast<::google::api::expr::v1alpha1::Expr_CreateStruct&>(::google::api::expr::v1alpha1::_Expr_CreateStruct_default_instance_); + return _internal_has_struct_expr() + ? *expr_kind_.struct_expr_ + : reinterpret_cast< ::google::api::expr::v1alpha1::Expr_CreateStruct&>(::google::api::expr::v1alpha1::_Expr_CreateStruct_default_instance_); } -inline const ::google::api::expr::v1alpha1::Expr_CreateStruct& Expr::struct_expr() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::Expr_CreateStruct& Expr::struct_expr() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.struct_expr) return _internal_struct_expr(); } inline ::google::api::expr::v1alpha1::Expr_CreateStruct* Expr::unsafe_arena_release_struct_expr() { // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1alpha1.Expr.struct_expr) - if (expr_kind_case() == kStructExpr) { + if (_internal_has_struct_expr()) { clear_has_expr_kind(); - auto* temp = _impl_.expr_kind_.struct_expr_; - _impl_.expr_kind_.struct_expr_ = nullptr; + ::google::api::expr::v1alpha1::Expr_CreateStruct* temp = expr_kind_.struct_expr_; + expr_kind_.struct_expr_ = nullptr; return temp; } else { return nullptr; } } -inline void Expr::unsafe_arena_set_allocated_struct_expr(::google::api::expr::v1alpha1::Expr_CreateStruct* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void Expr::unsafe_arena_set_allocated_struct_expr(::google::api::expr::v1alpha1::Expr_CreateStruct* struct_expr) { clear_expr_kind(); - if (value) { + if (struct_expr) { set_has_struct_expr(); - _impl_.expr_kind_.struct_expr_ = value; + expr_kind_.struct_expr_ = struct_expr; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Expr.struct_expr) } inline ::google::api::expr::v1alpha1::Expr_CreateStruct* Expr::_internal_mutable_struct_expr() { - if (expr_kind_case() != kStructExpr) { + if (!_internal_has_struct_expr()) { clear_expr_kind(); set_has_struct_expr(); - _impl_.expr_kind_.struct_expr_ = CreateMaybeMessage<::google::api::expr::v1alpha1::Expr_CreateStruct>(GetArena()); + expr_kind_.struct_expr_ = CreateMaybeMessage< ::google::api::expr::v1alpha1::Expr_CreateStruct >(GetArenaForAllocation()); } - return _impl_.expr_kind_.struct_expr_; + return expr_kind_.struct_expr_; } -inline ::google::api::expr::v1alpha1::Expr_CreateStruct* Expr::mutable_struct_expr() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::Expr_CreateStruct* Expr::mutable_struct_expr() { ::google::api::expr::v1alpha1::Expr_CreateStruct* _msg = _internal_mutable_struct_expr(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Expr.struct_expr) return _msg; } // .google.api.expr.v1alpha1.Expr.Comprehension comprehension_expr = 9 [json_name = "comprehensionExpr"]; -inline bool Expr::has_comprehension_expr() const { - return expr_kind_case() == kComprehensionExpr; -} inline bool Expr::_internal_has_comprehension_expr() const { return expr_kind_case() == kComprehensionExpr; } +inline bool Expr::has_comprehension_expr() const { + return _internal_has_comprehension_expr(); +} inline void Expr::set_has_comprehension_expr() { - _impl_._oneof_case_[0] = kComprehensionExpr; + _oneof_case_[0] = kComprehensionExpr; } inline void Expr::clear_comprehension_expr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (expr_kind_case() == kComprehensionExpr) { - if (GetArena() == nullptr) { - delete _impl_.expr_kind_.comprehension_expr_; + if (_internal_has_comprehension_expr()) { + if (GetArenaForAllocation() == nullptr) { + delete expr_kind_.comprehension_expr_; } clear_has_expr_kind(); } } inline ::google::api::expr::v1alpha1::Expr_Comprehension* Expr::release_comprehension_expr() { // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Expr.comprehension_expr) - if (expr_kind_case() == kComprehensionExpr) { + if (_internal_has_comprehension_expr()) { clear_has_expr_kind(); - auto* temp = _impl_.expr_kind_.comprehension_expr_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::google::api::expr::v1alpha1::Expr_Comprehension* temp = expr_kind_.comprehension_expr_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.expr_kind_.comprehension_expr_ = nullptr; + expr_kind_.comprehension_expr_ = nullptr; return temp; } else { return nullptr; } } inline const ::google::api::expr::v1alpha1::Expr_Comprehension& Expr::_internal_comprehension_expr() const { - return expr_kind_case() == kComprehensionExpr ? *_impl_.expr_kind_.comprehension_expr_ : reinterpret_cast<::google::api::expr::v1alpha1::Expr_Comprehension&>(::google::api::expr::v1alpha1::_Expr_Comprehension_default_instance_); + return _internal_has_comprehension_expr() + ? *expr_kind_.comprehension_expr_ + : reinterpret_cast< ::google::api::expr::v1alpha1::Expr_Comprehension&>(::google::api::expr::v1alpha1::_Expr_Comprehension_default_instance_); } -inline const ::google::api::expr::v1alpha1::Expr_Comprehension& Expr::comprehension_expr() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::Expr_Comprehension& Expr::comprehension_expr() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Expr.comprehension_expr) return _internal_comprehension_expr(); } inline ::google::api::expr::v1alpha1::Expr_Comprehension* Expr::unsafe_arena_release_comprehension_expr() { // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1alpha1.Expr.comprehension_expr) - if (expr_kind_case() == kComprehensionExpr) { + if (_internal_has_comprehension_expr()) { clear_has_expr_kind(); - auto* temp = _impl_.expr_kind_.comprehension_expr_; - _impl_.expr_kind_.comprehension_expr_ = nullptr; + ::google::api::expr::v1alpha1::Expr_Comprehension* temp = expr_kind_.comprehension_expr_; + expr_kind_.comprehension_expr_ = nullptr; return temp; } else { return nullptr; } } -inline void Expr::unsafe_arena_set_allocated_comprehension_expr(::google::api::expr::v1alpha1::Expr_Comprehension* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void Expr::unsafe_arena_set_allocated_comprehension_expr(::google::api::expr::v1alpha1::Expr_Comprehension* comprehension_expr) { clear_expr_kind(); - if (value) { + if (comprehension_expr) { set_has_comprehension_expr(); - _impl_.expr_kind_.comprehension_expr_ = value; + expr_kind_.comprehension_expr_ = comprehension_expr; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Expr.comprehension_expr) } inline ::google::api::expr::v1alpha1::Expr_Comprehension* Expr::_internal_mutable_comprehension_expr() { - if (expr_kind_case() != kComprehensionExpr) { + if (!_internal_has_comprehension_expr()) { clear_expr_kind(); set_has_comprehension_expr(); - _impl_.expr_kind_.comprehension_expr_ = CreateMaybeMessage<::google::api::expr::v1alpha1::Expr_Comprehension>(GetArena()); + expr_kind_.comprehension_expr_ = CreateMaybeMessage< ::google::api::expr::v1alpha1::Expr_Comprehension >(GetArenaForAllocation()); } - return _impl_.expr_kind_.comprehension_expr_; + return expr_kind_.comprehension_expr_; } -inline ::google::api::expr::v1alpha1::Expr_Comprehension* Expr::mutable_comprehension_expr() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::Expr_Comprehension* Expr::mutable_comprehension_expr() { ::google::api::expr::v1alpha1::Expr_Comprehension* _msg = _internal_mutable_comprehension_expr(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Expr.comprehension_expr) return _msg; @@ -6000,495 +5431,487 @@ inline bool Expr::has_expr_kind() const { return expr_kind_case() != EXPR_KIND_NOT_SET; } inline void Expr::clear_has_expr_kind() { - _impl_._oneof_case_[0] = EXPR_KIND_NOT_SET; + _oneof_case_[0] = EXPR_KIND_NOT_SET; } inline Expr::ExprKindCase Expr::expr_kind_case() const { - return Expr::ExprKindCase(_impl_._oneof_case_[0]); + return Expr::ExprKindCase(_oneof_case_[0]); } // ------------------------------------------------------------------- // Constant // .google.protobuf.NullValue null_value = 1 [json_name = "nullValue"]; -inline bool Constant::has_null_value() const { +inline bool Constant::_internal_has_null_value() const { return constant_kind_case() == kNullValue; } +inline bool Constant::has_null_value() const { + return _internal_has_null_value(); +} inline void Constant::set_has_null_value() { - _impl_._oneof_case_[0] = kNullValue; + _oneof_case_[0] = kNullValue; } inline void Constant::clear_null_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (constant_kind_case() == kNullValue) { - _impl_.constant_kind_.null_value_ = 0; + if (_internal_has_null_value()) { + constant_kind_.null_value_ = 0; clear_has_constant_kind(); } } -inline ::google::protobuf::NullValue Constant::null_value() const { +inline ::PROTOBUF_NAMESPACE_ID::NullValue Constant::_internal_null_value() const { + if (_internal_has_null_value()) { + return static_cast< ::PROTOBUF_NAMESPACE_ID::NullValue >(constant_kind_.null_value_); + } + return static_cast< ::PROTOBUF_NAMESPACE_ID::NullValue >(0); +} +inline ::PROTOBUF_NAMESPACE_ID::NullValue Constant::null_value() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Constant.null_value) return _internal_null_value(); } -inline void Constant::set_null_value(::google::protobuf::NullValue value) { - _internal_set_null_value(value); - // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Constant.null_value) -} -inline ::google::protobuf::NullValue Constant::_internal_null_value() const { - if (constant_kind_case() == kNullValue) { - return static_cast<::google::protobuf::NullValue>(_impl_.constant_kind_.null_value_); - } - return static_cast<::google::protobuf::NullValue>(0); -} -inline void Constant::_internal_set_null_value(::google::protobuf::NullValue value) { - if (constant_kind_case() != kNullValue) { +inline void Constant::_internal_set_null_value(::PROTOBUF_NAMESPACE_ID::NullValue value) { + if (!_internal_has_null_value()) { clear_constant_kind(); set_has_null_value(); } - _impl_.constant_kind_.null_value_ = value; + constant_kind_.null_value_ = value; +} +inline void Constant::set_null_value(::PROTOBUF_NAMESPACE_ID::NullValue value) { + _internal_set_null_value(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Constant.null_value) } // bool bool_value = 2 [json_name = "boolValue"]; -inline bool Constant::has_bool_value() const { +inline bool Constant::_internal_has_bool_value() const { return constant_kind_case() == kBoolValue; } +inline bool Constant::has_bool_value() const { + return _internal_has_bool_value(); +} inline void Constant::set_has_bool_value() { - _impl_._oneof_case_[0] = kBoolValue; + _oneof_case_[0] = kBoolValue; } inline void Constant::clear_bool_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (constant_kind_case() == kBoolValue) { - _impl_.constant_kind_.bool_value_ = false; + if (_internal_has_bool_value()) { + constant_kind_.bool_value_ = false; clear_has_constant_kind(); } } -inline bool Constant::bool_value() const { - // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Constant.bool_value) - return _internal_bool_value(); -} -inline void Constant::set_bool_value(bool value) { - _internal_set_bool_value(value); - // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Constant.bool_value) -} inline bool Constant::_internal_bool_value() const { - if (constant_kind_case() == kBoolValue) { - return _impl_.constant_kind_.bool_value_; + if (_internal_has_bool_value()) { + return constant_kind_.bool_value_; } return false; } inline void Constant::_internal_set_bool_value(bool value) { - if (constant_kind_case() != kBoolValue) { + if (!_internal_has_bool_value()) { clear_constant_kind(); set_has_bool_value(); } - _impl_.constant_kind_.bool_value_ = value; + constant_kind_.bool_value_ = value; +} +inline bool Constant::bool_value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Constant.bool_value) + return _internal_bool_value(); +} +inline void Constant::set_bool_value(bool value) { + _internal_set_bool_value(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Constant.bool_value) } // int64 int64_value = 3 [json_name = "int64Value"]; -inline bool Constant::has_int64_value() const { +inline bool Constant::_internal_has_int64_value() const { return constant_kind_case() == kInt64Value; } +inline bool Constant::has_int64_value() const { + return _internal_has_int64_value(); +} inline void Constant::set_has_int64_value() { - _impl_._oneof_case_[0] = kInt64Value; + _oneof_case_[0] = kInt64Value; } inline void Constant::clear_int64_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (constant_kind_case() == kInt64Value) { - _impl_.constant_kind_.int64_value_ = ::int64_t{0}; + if (_internal_has_int64_value()) { + constant_kind_.int64_value_ = int64_t{0}; clear_has_constant_kind(); } } -inline ::int64_t Constant::int64_value() const { - // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Constant.int64_value) - return _internal_int64_value(); -} -inline void Constant::set_int64_value(::int64_t value) { - _internal_set_int64_value(value); - // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Constant.int64_value) -} -inline ::int64_t Constant::_internal_int64_value() const { - if (constant_kind_case() == kInt64Value) { - return _impl_.constant_kind_.int64_value_; +inline int64_t Constant::_internal_int64_value() const { + if (_internal_has_int64_value()) { + return constant_kind_.int64_value_; } - return ::int64_t{0}; + return int64_t{0}; } -inline void Constant::_internal_set_int64_value(::int64_t value) { - if (constant_kind_case() != kInt64Value) { +inline void Constant::_internal_set_int64_value(int64_t value) { + if (!_internal_has_int64_value()) { clear_constant_kind(); set_has_int64_value(); } - _impl_.constant_kind_.int64_value_ = value; + constant_kind_.int64_value_ = value; +} +inline int64_t Constant::int64_value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Constant.int64_value) + return _internal_int64_value(); +} +inline void Constant::set_int64_value(int64_t value) { + _internal_set_int64_value(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Constant.int64_value) } // uint64 uint64_value = 4 [json_name = "uint64Value"]; -inline bool Constant::has_uint64_value() const { +inline bool Constant::_internal_has_uint64_value() const { return constant_kind_case() == kUint64Value; } +inline bool Constant::has_uint64_value() const { + return _internal_has_uint64_value(); +} inline void Constant::set_has_uint64_value() { - _impl_._oneof_case_[0] = kUint64Value; + _oneof_case_[0] = kUint64Value; } inline void Constant::clear_uint64_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (constant_kind_case() == kUint64Value) { - _impl_.constant_kind_.uint64_value_ = ::uint64_t{0u}; + if (_internal_has_uint64_value()) { + constant_kind_.uint64_value_ = uint64_t{0u}; clear_has_constant_kind(); } } -inline ::uint64_t Constant::uint64_value() const { - // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Constant.uint64_value) - return _internal_uint64_value(); -} -inline void Constant::set_uint64_value(::uint64_t value) { - _internal_set_uint64_value(value); - // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Constant.uint64_value) -} -inline ::uint64_t Constant::_internal_uint64_value() const { - if (constant_kind_case() == kUint64Value) { - return _impl_.constant_kind_.uint64_value_; +inline uint64_t Constant::_internal_uint64_value() const { + if (_internal_has_uint64_value()) { + return constant_kind_.uint64_value_; } - return ::uint64_t{0u}; + return uint64_t{0u}; } -inline void Constant::_internal_set_uint64_value(::uint64_t value) { - if (constant_kind_case() != kUint64Value) { +inline void Constant::_internal_set_uint64_value(uint64_t value) { + if (!_internal_has_uint64_value()) { clear_constant_kind(); set_has_uint64_value(); } - _impl_.constant_kind_.uint64_value_ = value; + constant_kind_.uint64_value_ = value; +} +inline uint64_t Constant::uint64_value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Constant.uint64_value) + return _internal_uint64_value(); +} +inline void Constant::set_uint64_value(uint64_t value) { + _internal_set_uint64_value(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Constant.uint64_value) } // double double_value = 5 [json_name = "doubleValue"]; -inline bool Constant::has_double_value() const { +inline bool Constant::_internal_has_double_value() const { return constant_kind_case() == kDoubleValue; } +inline bool Constant::has_double_value() const { + return _internal_has_double_value(); +} inline void Constant::set_has_double_value() { - _impl_._oneof_case_[0] = kDoubleValue; + _oneof_case_[0] = kDoubleValue; } inline void Constant::clear_double_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (constant_kind_case() == kDoubleValue) { - _impl_.constant_kind_.double_value_ = 0; + if (_internal_has_double_value()) { + constant_kind_.double_value_ = 0; clear_has_constant_kind(); } } -inline double Constant::double_value() const { - // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Constant.double_value) - return _internal_double_value(); -} -inline void Constant::set_double_value(double value) { - _internal_set_double_value(value); - // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Constant.double_value) -} inline double Constant::_internal_double_value() const { - if (constant_kind_case() == kDoubleValue) { - return _impl_.constant_kind_.double_value_; + if (_internal_has_double_value()) { + return constant_kind_.double_value_; } return 0; } inline void Constant::_internal_set_double_value(double value) { - if (constant_kind_case() != kDoubleValue) { + if (!_internal_has_double_value()) { clear_constant_kind(); set_has_double_value(); } - _impl_.constant_kind_.double_value_ = value; + constant_kind_.double_value_ = value; +} +inline double Constant::double_value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Constant.double_value) + return _internal_double_value(); +} +inline void Constant::set_double_value(double value) { + _internal_set_double_value(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Constant.double_value) } // string string_value = 6 [json_name = "stringValue"]; -inline bool Constant::has_string_value() const { +inline bool Constant::_internal_has_string_value() const { return constant_kind_case() == kStringValue; } +inline bool Constant::has_string_value() const { + return _internal_has_string_value(); +} inline void Constant::set_has_string_value() { - _impl_._oneof_case_[0] = kStringValue; + _oneof_case_[0] = kStringValue; } inline void Constant::clear_string_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (constant_kind_case() == kStringValue) { - _impl_.constant_kind_.string_value_.Destroy(); + if (_internal_has_string_value()) { + constant_kind_.string_value_.Destroy(); clear_has_constant_kind(); } } -inline const std::string& Constant::string_value() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Constant::string_value() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Constant.string_value) return _internal_string_value(); } -template -inline PROTOBUF_ALWAYS_INLINE void Constant::set_string_value(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (constant_kind_case() != kStringValue) { +template +inline void Constant::set_string_value(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_string_value()) { clear_constant_kind(); - set_has_string_value(); - _impl_.constant_kind_.string_value_.InitDefault(); + constant_kind_.string_value_.InitDefault(); } - _impl_.constant_kind_.string_value_.Set(static_cast(arg), args..., GetArena()); + constant_kind_.string_value_.Set( static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Constant.string_value) } -inline std::string* Constant::mutable_string_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Constant::mutable_string_value() { std::string* _s = _internal_mutable_string_value(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Constant.string_value) return _s; } inline const std::string& Constant::_internal_string_value() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - if (constant_kind_case() != kStringValue) { - return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); + if (_internal_has_string_value()) { + return constant_kind_.string_value_.Get(); } - return _impl_.constant_kind_.string_value_.Get(); + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } inline void Constant::_internal_set_string_value(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (constant_kind_case() != kStringValue) { + if (!_internal_has_string_value()) { clear_constant_kind(); - set_has_string_value(); - _impl_.constant_kind_.string_value_.InitDefault(); + constant_kind_.string_value_.InitDefault(); } - _impl_.constant_kind_.string_value_.Set(value, GetArena()); + constant_kind_.string_value_.Set(value, GetArenaForAllocation()); } inline std::string* Constant::_internal_mutable_string_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (constant_kind_case() != kStringValue) { + if (!_internal_has_string_value()) { clear_constant_kind(); - set_has_string_value(); - _impl_.constant_kind_.string_value_.InitDefault(); + constant_kind_.string_value_.InitDefault(); } - return _impl_.constant_kind_.string_value_.Mutable( GetArena()); + return constant_kind_.string_value_.Mutable( GetArenaForAllocation()); } inline std::string* Constant::release_string_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Constant.string_value) - if (constant_kind_case() != kStringValue) { + if (_internal_has_string_value()) { + clear_has_constant_kind(); + return constant_kind_.string_value_.Release(); + } else { return nullptr; } - clear_has_constant_kind(); - return _impl_.constant_kind_.string_value_.Release(); } -inline void Constant::set_allocated_string_value(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Constant::set_allocated_string_value(std::string* string_value) { if (has_constant_kind()) { clear_constant_kind(); } - if (value != nullptr) { + if (string_value != nullptr) { set_has_string_value(); - _impl_.constant_kind_.string_value_.InitAllocated(value, GetArena()); + constant_kind_.string_value_.InitAllocated(string_value, GetArenaForAllocation()); } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Constant.string_value) } // bytes bytes_value = 7 [json_name = "bytesValue"]; -inline bool Constant::has_bytes_value() const { +inline bool Constant::_internal_has_bytes_value() const { return constant_kind_case() == kBytesValue; } +inline bool Constant::has_bytes_value() const { + return _internal_has_bytes_value(); +} inline void Constant::set_has_bytes_value() { - _impl_._oneof_case_[0] = kBytesValue; + _oneof_case_[0] = kBytesValue; } inline void Constant::clear_bytes_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (constant_kind_case() == kBytesValue) { - _impl_.constant_kind_.bytes_value_.Destroy(); + if (_internal_has_bytes_value()) { + constant_kind_.bytes_value_.Destroy(); clear_has_constant_kind(); } } -inline const std::string& Constant::bytes_value() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Constant::bytes_value() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Constant.bytes_value) return _internal_bytes_value(); } -template -inline PROTOBUF_ALWAYS_INLINE void Constant::set_bytes_value(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (constant_kind_case() != kBytesValue) { +template +inline void Constant::set_bytes_value(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_bytes_value()) { clear_constant_kind(); - set_has_bytes_value(); - _impl_.constant_kind_.bytes_value_.InitDefault(); + constant_kind_.bytes_value_.InitDefault(); } - _impl_.constant_kind_.bytes_value_.SetBytes(static_cast(arg), args..., GetArena()); + constant_kind_.bytes_value_.SetBytes( static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Constant.bytes_value) } -inline std::string* Constant::mutable_bytes_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Constant::mutable_bytes_value() { std::string* _s = _internal_mutable_bytes_value(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Constant.bytes_value) return _s; } inline const std::string& Constant::_internal_bytes_value() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - if (constant_kind_case() != kBytesValue) { - return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); + if (_internal_has_bytes_value()) { + return constant_kind_.bytes_value_.Get(); } - return _impl_.constant_kind_.bytes_value_.Get(); + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } inline void Constant::_internal_set_bytes_value(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (constant_kind_case() != kBytesValue) { + if (!_internal_has_bytes_value()) { clear_constant_kind(); - set_has_bytes_value(); - _impl_.constant_kind_.bytes_value_.InitDefault(); + constant_kind_.bytes_value_.InitDefault(); } - _impl_.constant_kind_.bytes_value_.Set(value, GetArena()); + constant_kind_.bytes_value_.Set(value, GetArenaForAllocation()); } inline std::string* Constant::_internal_mutable_bytes_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (constant_kind_case() != kBytesValue) { + if (!_internal_has_bytes_value()) { clear_constant_kind(); - set_has_bytes_value(); - _impl_.constant_kind_.bytes_value_.InitDefault(); + constant_kind_.bytes_value_.InitDefault(); } - return _impl_.constant_kind_.bytes_value_.Mutable( GetArena()); + return constant_kind_.bytes_value_.Mutable( GetArenaForAllocation()); } inline std::string* Constant::release_bytes_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Constant.bytes_value) - if (constant_kind_case() != kBytesValue) { + if (_internal_has_bytes_value()) { + clear_has_constant_kind(); + return constant_kind_.bytes_value_.Release(); + } else { return nullptr; } - clear_has_constant_kind(); - return _impl_.constant_kind_.bytes_value_.Release(); } -inline void Constant::set_allocated_bytes_value(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Constant::set_allocated_bytes_value(std::string* bytes_value) { if (has_constant_kind()) { clear_constant_kind(); } - if (value != nullptr) { + if (bytes_value != nullptr) { set_has_bytes_value(); - _impl_.constant_kind_.bytes_value_.InitAllocated(value, GetArena()); + constant_kind_.bytes_value_.InitAllocated(bytes_value, GetArenaForAllocation()); } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Constant.bytes_value) } // .google.protobuf.Duration duration_value = 8 [json_name = "durationValue", deprecated = true]; -inline bool Constant::has_duration_value() const { - return constant_kind_case() == kDurationValue; -} inline bool Constant::_internal_has_duration_value() const { return constant_kind_case() == kDurationValue; } +inline bool Constant::has_duration_value() const { + return _internal_has_duration_value(); +} inline void Constant::set_has_duration_value() { - _impl_._oneof_case_[0] = kDurationValue; + _oneof_case_[0] = kDurationValue; } -inline ::google::protobuf::Duration* Constant::release_duration_value() { +inline ::PROTOBUF_NAMESPACE_ID::Duration* Constant::release_duration_value() { // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Constant.duration_value) - if (constant_kind_case() == kDurationValue) { + if (_internal_has_duration_value()) { clear_has_constant_kind(); - auto* temp = _impl_.constant_kind_.duration_value_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::PROTOBUF_NAMESPACE_ID::Duration* temp = constant_kind_.duration_value_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.constant_kind_.duration_value_ = nullptr; + constant_kind_.duration_value_ = nullptr; return temp; } else { return nullptr; } } -inline const ::google::protobuf::Duration& Constant::_internal_duration_value() const { - return constant_kind_case() == kDurationValue ? *_impl_.constant_kind_.duration_value_ : reinterpret_cast<::google::protobuf::Duration&>(::google::protobuf::_Duration_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Duration& Constant::_internal_duration_value() const { + return _internal_has_duration_value() + ? *constant_kind_.duration_value_ + : reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::Duration&>(::PROTOBUF_NAMESPACE_ID::_Duration_default_instance_); } -inline const ::google::protobuf::Duration& Constant::duration_value() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Duration& Constant::duration_value() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Constant.duration_value) return _internal_duration_value(); } -inline ::google::protobuf::Duration* Constant::unsafe_arena_release_duration_value() { +inline ::PROTOBUF_NAMESPACE_ID::Duration* Constant::unsafe_arena_release_duration_value() { // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1alpha1.Constant.duration_value) - if (constant_kind_case() == kDurationValue) { + if (_internal_has_duration_value()) { clear_has_constant_kind(); - auto* temp = _impl_.constant_kind_.duration_value_; - _impl_.constant_kind_.duration_value_ = nullptr; + ::PROTOBUF_NAMESPACE_ID::Duration* temp = constant_kind_.duration_value_; + constant_kind_.duration_value_ = nullptr; return temp; } else { return nullptr; } } -inline void Constant::unsafe_arena_set_allocated_duration_value(::google::protobuf::Duration* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void Constant::unsafe_arena_set_allocated_duration_value(::PROTOBUF_NAMESPACE_ID::Duration* duration_value) { clear_constant_kind(); - if (value) { + if (duration_value) { set_has_duration_value(); - _impl_.constant_kind_.duration_value_ = value; + constant_kind_.duration_value_ = duration_value; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Constant.duration_value) } -inline ::google::protobuf::Duration* Constant::_internal_mutable_duration_value() { - if (constant_kind_case() != kDurationValue) { +inline ::PROTOBUF_NAMESPACE_ID::Duration* Constant::_internal_mutable_duration_value() { + if (!_internal_has_duration_value()) { clear_constant_kind(); set_has_duration_value(); - _impl_.constant_kind_.duration_value_ = CreateMaybeMessage<::google::protobuf::Duration>(GetArena()); + constant_kind_.duration_value_ = CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::Duration >(GetArenaForAllocation()); } - return _impl_.constant_kind_.duration_value_; + return constant_kind_.duration_value_; } -inline ::google::protobuf::Duration* Constant::mutable_duration_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Duration* _msg = _internal_mutable_duration_value(); +inline ::PROTOBUF_NAMESPACE_ID::Duration* Constant::mutable_duration_value() { + ::PROTOBUF_NAMESPACE_ID::Duration* _msg = _internal_mutable_duration_value(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Constant.duration_value) return _msg; } // .google.protobuf.Timestamp timestamp_value = 9 [json_name = "timestampValue", deprecated = true]; -inline bool Constant::has_timestamp_value() const { - return constant_kind_case() == kTimestampValue; -} inline bool Constant::_internal_has_timestamp_value() const { return constant_kind_case() == kTimestampValue; } +inline bool Constant::has_timestamp_value() const { + return _internal_has_timestamp_value(); +} inline void Constant::set_has_timestamp_value() { - _impl_._oneof_case_[0] = kTimestampValue; + _oneof_case_[0] = kTimestampValue; } -inline ::google::protobuf::Timestamp* Constant::release_timestamp_value() { +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Constant::release_timestamp_value() { // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Constant.timestamp_value) - if (constant_kind_case() == kTimestampValue) { + if (_internal_has_timestamp_value()) { clear_has_constant_kind(); - auto* temp = _impl_.constant_kind_.timestamp_value_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = constant_kind_.timestamp_value_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.constant_kind_.timestamp_value_ = nullptr; + constant_kind_.timestamp_value_ = nullptr; return temp; } else { return nullptr; } } -inline const ::google::protobuf::Timestamp& Constant::_internal_timestamp_value() const { - return constant_kind_case() == kTimestampValue ? *_impl_.constant_kind_.timestamp_value_ : reinterpret_cast<::google::protobuf::Timestamp&>(::google::protobuf::_Timestamp_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& Constant::_internal_timestamp_value() const { + return _internal_has_timestamp_value() + ? *constant_kind_.timestamp_value_ + : reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::Timestamp&>(::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); } -inline const ::google::protobuf::Timestamp& Constant::timestamp_value() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& Constant::timestamp_value() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Constant.timestamp_value) return _internal_timestamp_value(); } -inline ::google::protobuf::Timestamp* Constant::unsafe_arena_release_timestamp_value() { +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Constant::unsafe_arena_release_timestamp_value() { // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1alpha1.Constant.timestamp_value) - if (constant_kind_case() == kTimestampValue) { + if (_internal_has_timestamp_value()) { clear_has_constant_kind(); - auto* temp = _impl_.constant_kind_.timestamp_value_; - _impl_.constant_kind_.timestamp_value_ = nullptr; + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = constant_kind_.timestamp_value_; + constant_kind_.timestamp_value_ = nullptr; return temp; } else { return nullptr; } } -inline void Constant::unsafe_arena_set_allocated_timestamp_value(::google::protobuf::Timestamp* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void Constant::unsafe_arena_set_allocated_timestamp_value(::PROTOBUF_NAMESPACE_ID::Timestamp* timestamp_value) { clear_constant_kind(); - if (value) { + if (timestamp_value) { set_has_timestamp_value(); - _impl_.constant_kind_.timestamp_value_ = value; + constant_kind_.timestamp_value_ = timestamp_value; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Constant.timestamp_value) } -inline ::google::protobuf::Timestamp* Constant::_internal_mutable_timestamp_value() { - if (constant_kind_case() != kTimestampValue) { +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Constant::_internal_mutable_timestamp_value() { + if (!_internal_has_timestamp_value()) { clear_constant_kind(); set_has_timestamp_value(); - _impl_.constant_kind_.timestamp_value_ = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena()); + constant_kind_.timestamp_value_ = CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::Timestamp >(GetArenaForAllocation()); } - return _impl_.constant_kind_.timestamp_value_; + return constant_kind_.timestamp_value_; } -inline ::google::protobuf::Timestamp* Constant::mutable_timestamp_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Timestamp* _msg = _internal_mutable_timestamp_value(); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Constant::mutable_timestamp_value() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_timestamp_value(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Constant.timestamp_value) return _msg; } @@ -6497,10 +5920,10 @@ inline bool Constant::has_constant_kind() const { return constant_kind_case() != CONSTANT_KIND_NOT_SET; } inline void Constant::clear_has_constant_kind() { - _impl_._oneof_case_[0] = CONSTANT_KIND_NOT_SET; + _oneof_case_[0] = CONSTANT_KIND_NOT_SET; } inline Constant::ConstantKindCase Constant::constant_kind_case() const { - return Constant::ConstantKindCase(_impl_._oneof_case_[0]); + return Constant::ConstantKindCase(_oneof_case_[0]); } // ------------------------------------------------------------------- @@ -6508,49 +5931,43 @@ inline Constant::ConstantKindCase Constant::constant_kind_case() const { // int64 major = 1 [json_name = "major"]; inline void SourceInfo_Extension_Version::clear_major() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.major_ = ::int64_t{0}; + major_ = int64_t{0}; +} +inline int64_t SourceInfo_Extension_Version::_internal_major() const { + return major_; } -inline ::int64_t SourceInfo_Extension_Version::major() const { +inline int64_t SourceInfo_Extension_Version::major() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.SourceInfo.Extension.Version.major) return _internal_major(); } -inline void SourceInfo_Extension_Version::set_major(::int64_t value) { +inline void SourceInfo_Extension_Version::_internal_set_major(int64_t value) { + + major_ = value; +} +inline void SourceInfo_Extension_Version::set_major(int64_t value) { _internal_set_major(value); // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.SourceInfo.Extension.Version.major) } -inline ::int64_t SourceInfo_Extension_Version::_internal_major() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.major_; -} -inline void SourceInfo_Extension_Version::_internal_set_major(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.major_ = value; -} // int64 minor = 2 [json_name = "minor"]; inline void SourceInfo_Extension_Version::clear_minor() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.minor_ = ::int64_t{0}; + minor_ = int64_t{0}; +} +inline int64_t SourceInfo_Extension_Version::_internal_minor() const { + return minor_; } -inline ::int64_t SourceInfo_Extension_Version::minor() const { +inline int64_t SourceInfo_Extension_Version::minor() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.SourceInfo.Extension.Version.minor) return _internal_minor(); } -inline void SourceInfo_Extension_Version::set_minor(::int64_t value) { +inline void SourceInfo_Extension_Version::_internal_set_minor(int64_t value) { + + minor_ = value; +} +inline void SourceInfo_Extension_Version::set_minor(int64_t value) { _internal_set_minor(value); // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.SourceInfo.Extension.Version.minor) } -inline ::int64_t SourceInfo_Extension_Version::_internal_minor() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.minor_; -} -inline void SourceInfo_Extension_Version::_internal_set_minor(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.minor_ = value; -} // ------------------------------------------------------------------- @@ -6558,194 +5975,184 @@ inline void SourceInfo_Extension_Version::_internal_set_minor(::int64_t value) { // string id = 1 [json_name = "id"]; inline void SourceInfo_Extension::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); + id_.ClearToEmpty(); } -inline const std::string& SourceInfo_Extension::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& SourceInfo_Extension::id() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.SourceInfo.Extension.id) return _internal_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void SourceInfo_Extension::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void SourceInfo_Extension::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.SourceInfo.Extension.id) } -inline std::string* SourceInfo_Extension::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* SourceInfo_Extension::mutable_id() { std::string* _s = _internal_mutable_id(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.SourceInfo.Extension.id) return _s; } inline const std::string& SourceInfo_Extension::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); + return id_.Get(); } inline void SourceInfo_Extension::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); + + id_.Set(value, GetArenaForAllocation()); } inline std::string* SourceInfo_Extension::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); + + return id_.Mutable(GetArenaForAllocation()); } inline std::string* SourceInfo_Extension::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.SourceInfo.Extension.id) - return _impl_.id_.Release(); -} -inline void SourceInfo_Extension::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return id_.Release(); +} +inline void SourceInfo_Extension::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.SourceInfo.Extension.id) } // repeated .google.api.expr.v1alpha1.SourceInfo.Extension.Component affected_components = 2 [json_name = "affectedComponents"]; inline int SourceInfo_Extension::_internal_affected_components_size() const { - return _internal_affected_components().size(); + return affected_components_.size(); } inline int SourceInfo_Extension::affected_components_size() const { return _internal_affected_components_size(); } inline void SourceInfo_Extension::clear_affected_components() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.affected_components_.Clear(); + affected_components_.Clear(); +} +inline ::google::api::expr::v1alpha1::SourceInfo_Extension_Component SourceInfo_Extension::_internal_affected_components(int index) const { + return static_cast< ::google::api::expr::v1alpha1::SourceInfo_Extension_Component >(affected_components_.Get(index)); } inline ::google::api::expr::v1alpha1::SourceInfo_Extension_Component SourceInfo_Extension::affected_components(int index) const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.SourceInfo.Extension.affected_components) - return static_cast<::google::api::expr::v1alpha1::SourceInfo_Extension_Component>(_internal_affected_components().Get(index)); + return _internal_affected_components(index); } inline void SourceInfo_Extension::set_affected_components(int index, ::google::api::expr::v1alpha1::SourceInfo_Extension_Component value) { - _internal_mutable_affected_components()->Set(index, value); + affected_components_.Set(index, value); // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.SourceInfo.Extension.affected_components) } +inline void SourceInfo_Extension::_internal_add_affected_components(::google::api::expr::v1alpha1::SourceInfo_Extension_Component value) { + affected_components_.Add(value); +} inline void SourceInfo_Extension::add_affected_components(::google::api::expr::v1alpha1::SourceInfo_Extension_Component value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_affected_components()->Add(value); + _internal_add_affected_components(value); // @@protoc_insertion_point(field_add:google.api.expr.v1alpha1.SourceInfo.Extension.affected_components) } -inline const ::google::protobuf::RepeatedField& SourceInfo_Extension::affected_components() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField& +SourceInfo_Extension::affected_components() const { // @@protoc_insertion_point(field_list:google.api.expr.v1alpha1.SourceInfo.Extension.affected_components) - return _internal_affected_components(); + return affected_components_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* +SourceInfo_Extension::_internal_mutable_affected_components() { + return &affected_components_; } -inline ::google::protobuf::RepeatedField* SourceInfo_Extension::mutable_affected_components() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* +SourceInfo_Extension::mutable_affected_components() { // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1alpha1.SourceInfo.Extension.affected_components) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _internal_mutable_affected_components(); } -inline const ::google::protobuf::RepeatedField& SourceInfo_Extension::_internal_affected_components() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.affected_components_; -} -inline ::google::protobuf::RepeatedField* SourceInfo_Extension::_internal_mutable_affected_components() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.affected_components_; -} // .google.api.expr.v1alpha1.SourceInfo.Extension.Version version = 3 [json_name = "version"]; +inline bool SourceInfo_Extension::_internal_has_version() const { + return this != internal_default_instance() && version_ != nullptr; +} inline bool SourceInfo_Extension::has_version() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.version_ != nullptr); - return value; + return _internal_has_version(); } inline void SourceInfo_Extension::clear_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.version_ != nullptr) _impl_.version_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && version_ != nullptr) { + delete version_; + } + version_ = nullptr; } inline const ::google::api::expr::v1alpha1::SourceInfo_Extension_Version& SourceInfo_Extension::_internal_version() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::expr::v1alpha1::SourceInfo_Extension_Version* p = _impl_.version_; - return p != nullptr ? *p : reinterpret_cast(::google::api::expr::v1alpha1::_SourceInfo_Extension_Version_default_instance_); + const ::google::api::expr::v1alpha1::SourceInfo_Extension_Version* p = version_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1alpha1::_SourceInfo_Extension_Version_default_instance_); } -inline const ::google::api::expr::v1alpha1::SourceInfo_Extension_Version& SourceInfo_Extension::version() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::SourceInfo_Extension_Version& SourceInfo_Extension::version() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.SourceInfo.Extension.version) return _internal_version(); } -inline void SourceInfo_Extension::unsafe_arena_set_allocated_version(::google::api::expr::v1alpha1::SourceInfo_Extension_Version* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.version_); +inline void SourceInfo_Extension::unsafe_arena_set_allocated_version( + ::google::api::expr::v1alpha1::SourceInfo_Extension_Version* version) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(version_); } - _impl_.version_ = reinterpret_cast<::google::api::expr::v1alpha1::SourceInfo_Extension_Version*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + version_ = version; + if (version) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.SourceInfo.Extension.version) } inline ::google::api::expr::v1alpha1::SourceInfo_Extension_Version* SourceInfo_Extension::release_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::expr::v1alpha1::SourceInfo_Extension_Version* released = _impl_.version_; - _impl_.version_ = nullptr; + + ::google::api::expr::v1alpha1::SourceInfo_Extension_Version* temp = version_; + version_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::expr::v1alpha1::SourceInfo_Extension_Version* SourceInfo_Extension::unsafe_arena_release_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.SourceInfo.Extension.version) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::expr::v1alpha1::SourceInfo_Extension_Version* temp = _impl_.version_; - _impl_.version_ = nullptr; + + ::google::api::expr::v1alpha1::SourceInfo_Extension_Version* temp = version_; + version_ = nullptr; return temp; } inline ::google::api::expr::v1alpha1::SourceInfo_Extension_Version* SourceInfo_Extension::_internal_mutable_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.version_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::SourceInfo_Extension_Version>(GetArena()); - _impl_.version_ = reinterpret_cast<::google::api::expr::v1alpha1::SourceInfo_Extension_Version*>(p); + + if (version_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::SourceInfo_Extension_Version>(GetArenaForAllocation()); + version_ = p; } - return _impl_.version_; + return version_; } -inline ::google::api::expr::v1alpha1::SourceInfo_Extension_Version* SourceInfo_Extension::mutable_version() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::SourceInfo_Extension_Version* SourceInfo_Extension::mutable_version() { ::google::api::expr::v1alpha1::SourceInfo_Extension_Version* _msg = _internal_mutable_version(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.SourceInfo.Extension.version) return _msg; } -inline void SourceInfo_Extension::set_allocated_version(::google::api::expr::v1alpha1::SourceInfo_Extension_Version* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void SourceInfo_Extension::set_allocated_version(::google::api::expr::v1alpha1::SourceInfo_Extension_Version* version) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::api::expr::v1alpha1::SourceInfo_Extension_Version*>(_impl_.version_); + delete version_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::api::expr::v1alpha1::SourceInfo_Extension_Version*>(value)->GetArena(); + if (version) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(version); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + version = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, version, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.version_ = reinterpret_cast<::google::api::expr::v1alpha1::SourceInfo_Extension_Version*>(value); + version_ = version; // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.SourceInfo.Extension.version) } @@ -6759,258 +6166,247 @@ inline void SourceInfo_Extension::set_allocated_version(::google::api::expr::v1a // string syntax_version = 1 [json_name = "syntaxVersion"]; inline void SourceInfo::clear_syntax_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.syntax_version_.ClearToEmpty(); + syntax_version_.ClearToEmpty(); } -inline const std::string& SourceInfo::syntax_version() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& SourceInfo::syntax_version() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.SourceInfo.syntax_version) return _internal_syntax_version(); } -template -inline PROTOBUF_ALWAYS_INLINE void SourceInfo::set_syntax_version(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.syntax_version_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void SourceInfo::set_syntax_version(ArgT0&& arg0, ArgT... args) { + + syntax_version_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.SourceInfo.syntax_version) } -inline std::string* SourceInfo::mutable_syntax_version() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* SourceInfo::mutable_syntax_version() { std::string* _s = _internal_mutable_syntax_version(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.SourceInfo.syntax_version) return _s; } inline const std::string& SourceInfo::_internal_syntax_version() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.syntax_version_.Get(); + return syntax_version_.Get(); } inline void SourceInfo::_internal_set_syntax_version(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.syntax_version_.Set(value, GetArena()); + + syntax_version_.Set(value, GetArenaForAllocation()); } inline std::string* SourceInfo::_internal_mutable_syntax_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.syntax_version_.Mutable( GetArena()); + + return syntax_version_.Mutable(GetArenaForAllocation()); } inline std::string* SourceInfo::release_syntax_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.SourceInfo.syntax_version) - return _impl_.syntax_version_.Release(); -} -inline void SourceInfo::set_allocated_syntax_version(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.syntax_version_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.syntax_version_.IsDefault()) { - _impl_.syntax_version_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return syntax_version_.Release(); +} +inline void SourceInfo::set_allocated_syntax_version(std::string* syntax_version) { + if (syntax_version != nullptr) { + + } else { + + } + syntax_version_.SetAllocated(syntax_version, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (syntax_version_.IsDefault()) { + syntax_version_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.SourceInfo.syntax_version) } // string location = 2 [json_name = "location"]; inline void SourceInfo::clear_location() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.location_.ClearToEmpty(); + location_.ClearToEmpty(); } -inline const std::string& SourceInfo::location() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& SourceInfo::location() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.SourceInfo.location) return _internal_location(); } -template -inline PROTOBUF_ALWAYS_INLINE void SourceInfo::set_location(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.location_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void SourceInfo::set_location(ArgT0&& arg0, ArgT... args) { + + location_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.SourceInfo.location) } -inline std::string* SourceInfo::mutable_location() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* SourceInfo::mutable_location() { std::string* _s = _internal_mutable_location(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.SourceInfo.location) return _s; } inline const std::string& SourceInfo::_internal_location() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.location_.Get(); + return location_.Get(); } inline void SourceInfo::_internal_set_location(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.location_.Set(value, GetArena()); + + location_.Set(value, GetArenaForAllocation()); } inline std::string* SourceInfo::_internal_mutable_location() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.location_.Mutable( GetArena()); + + return location_.Mutable(GetArenaForAllocation()); } inline std::string* SourceInfo::release_location() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.SourceInfo.location) - return _impl_.location_.Release(); -} -inline void SourceInfo::set_allocated_location(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.location_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.location_.IsDefault()) { - _impl_.location_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return location_.Release(); +} +inline void SourceInfo::set_allocated_location(std::string* location) { + if (location != nullptr) { + + } else { + + } + location_.SetAllocated(location, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (location_.IsDefault()) { + location_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.SourceInfo.location) } // repeated int32 line_offsets = 3 [json_name = "lineOffsets"]; inline int SourceInfo::_internal_line_offsets_size() const { - return _internal_line_offsets().size(); + return line_offsets_.size(); } inline int SourceInfo::line_offsets_size() const { return _internal_line_offsets_size(); } inline void SourceInfo::clear_line_offsets() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.line_offsets_.Clear(); + line_offsets_.Clear(); } -inline ::int32_t SourceInfo::line_offsets(int index) const { +inline int32_t SourceInfo::_internal_line_offsets(int index) const { + return line_offsets_.Get(index); +} +inline int32_t SourceInfo::line_offsets(int index) const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.SourceInfo.line_offsets) - return _internal_line_offsets().Get(index); + return _internal_line_offsets(index); } -inline void SourceInfo::set_line_offsets(int index, ::int32_t value) { - _internal_mutable_line_offsets()->Set(index, value); +inline void SourceInfo::set_line_offsets(int index, int32_t value) { + line_offsets_.Set(index, value); // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.SourceInfo.line_offsets) } -inline void SourceInfo::add_line_offsets(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_line_offsets()->Add(value); +inline void SourceInfo::_internal_add_line_offsets(int32_t value) { + line_offsets_.Add(value); +} +inline void SourceInfo::add_line_offsets(int32_t value) { + _internal_add_line_offsets(value); // @@protoc_insertion_point(field_add:google.api.expr.v1alpha1.SourceInfo.line_offsets) } -inline const ::google::protobuf::RepeatedField<::int32_t>& SourceInfo::line_offsets() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& +SourceInfo::_internal_line_offsets() const { + return line_offsets_; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& +SourceInfo::line_offsets() const { // @@protoc_insertion_point(field_list:google.api.expr.v1alpha1.SourceInfo.line_offsets) return _internal_line_offsets(); } -inline ::google::protobuf::RepeatedField<::int32_t>* SourceInfo::mutable_line_offsets() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* +SourceInfo::_internal_mutable_line_offsets() { + return &line_offsets_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* +SourceInfo::mutable_line_offsets() { // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1alpha1.SourceInfo.line_offsets) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _internal_mutable_line_offsets(); } -inline const ::google::protobuf::RepeatedField<::int32_t>& SourceInfo::_internal_line_offsets() - const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.line_offsets_; -} -inline ::google::protobuf::RepeatedField<::int32_t>* SourceInfo::_internal_mutable_line_offsets() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.line_offsets_; -} // map positions = 4 [json_name = "positions"]; inline int SourceInfo::_internal_positions_size() const { - return _internal_positions().size(); + return positions_.size(); } inline int SourceInfo::positions_size() const { return _internal_positions_size(); } inline void SourceInfo::clear_positions() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.positions_.Clear(); + positions_.Clear(); } -inline const ::google::protobuf::Map<::int64_t, ::int32_t>& SourceInfo::_internal_positions() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.positions_.GetMap(); +inline const ::PROTOBUF_NAMESPACE_ID::Map< int64_t, int32_t >& +SourceInfo::_internal_positions() const { + return positions_.GetMap(); } -inline const ::google::protobuf::Map<::int64_t, ::int32_t>& SourceInfo::positions() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Map< int64_t, int32_t >& +SourceInfo::positions() const { // @@protoc_insertion_point(field_map:google.api.expr.v1alpha1.SourceInfo.positions) return _internal_positions(); } -inline ::google::protobuf::Map<::int64_t, ::int32_t>* SourceInfo::_internal_mutable_positions() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.positions_.MutableMap(); +inline ::PROTOBUF_NAMESPACE_ID::Map< int64_t, int32_t >* +SourceInfo::_internal_mutable_positions() { + return positions_.MutableMap(); } -inline ::google::protobuf::Map<::int64_t, ::int32_t>* SourceInfo::mutable_positions() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::Map< int64_t, int32_t >* +SourceInfo::mutable_positions() { // @@protoc_insertion_point(field_mutable_map:google.api.expr.v1alpha1.SourceInfo.positions) return _internal_mutable_positions(); } // map macro_calls = 5 [json_name = "macroCalls"]; inline int SourceInfo::_internal_macro_calls_size() const { - return _internal_macro_calls().size(); + return macro_calls_.size(); } inline int SourceInfo::macro_calls_size() const { return _internal_macro_calls_size(); } inline void SourceInfo::clear_macro_calls() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.macro_calls_.Clear(); + macro_calls_.Clear(); } -inline const ::google::protobuf::Map<::int64_t, ::google::api::expr::v1alpha1::Expr>& SourceInfo::_internal_macro_calls() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.macro_calls_.GetMap(); +inline const ::PROTOBUF_NAMESPACE_ID::Map< int64_t, ::google::api::expr::v1alpha1::Expr >& +SourceInfo::_internal_macro_calls() const { + return macro_calls_.GetMap(); } -inline const ::google::protobuf::Map<::int64_t, ::google::api::expr::v1alpha1::Expr>& SourceInfo::macro_calls() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Map< int64_t, ::google::api::expr::v1alpha1::Expr >& +SourceInfo::macro_calls() const { // @@protoc_insertion_point(field_map:google.api.expr.v1alpha1.SourceInfo.macro_calls) return _internal_macro_calls(); } -inline ::google::protobuf::Map<::int64_t, ::google::api::expr::v1alpha1::Expr>* SourceInfo::_internal_mutable_macro_calls() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.macro_calls_.MutableMap(); +inline ::PROTOBUF_NAMESPACE_ID::Map< int64_t, ::google::api::expr::v1alpha1::Expr >* +SourceInfo::_internal_mutable_macro_calls() { + return macro_calls_.MutableMap(); } -inline ::google::protobuf::Map<::int64_t, ::google::api::expr::v1alpha1::Expr>* SourceInfo::mutable_macro_calls() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::Map< int64_t, ::google::api::expr::v1alpha1::Expr >* +SourceInfo::mutable_macro_calls() { // @@protoc_insertion_point(field_mutable_map:google.api.expr.v1alpha1.SourceInfo.macro_calls) return _internal_mutable_macro_calls(); } // repeated .google.api.expr.v1alpha1.SourceInfo.Extension extensions = 6 [json_name = "extensions"]; inline int SourceInfo::_internal_extensions_size() const { - return _internal_extensions().size(); + return extensions_.size(); } inline int SourceInfo::extensions_size() const { return _internal_extensions_size(); } inline void SourceInfo::clear_extensions() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.extensions_.Clear(); + extensions_.Clear(); } -inline ::google::api::expr::v1alpha1::SourceInfo_Extension* SourceInfo::mutable_extensions(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::SourceInfo_Extension* SourceInfo::mutable_extensions(int index) { // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.SourceInfo.extensions) - return _internal_mutable_extensions()->Mutable(index); + return extensions_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::SourceInfo_Extension>* SourceInfo::mutable_extensions() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::SourceInfo_Extension >* +SourceInfo::mutable_extensions() { // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1alpha1.SourceInfo.extensions) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_extensions(); + return &extensions_; } -inline const ::google::api::expr::v1alpha1::SourceInfo_Extension& SourceInfo::extensions(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::SourceInfo_Extension& SourceInfo::_internal_extensions(int index) const { + return extensions_.Get(index); +} +inline const ::google::api::expr::v1alpha1::SourceInfo_Extension& SourceInfo::extensions(int index) const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.SourceInfo.extensions) - return _internal_extensions().Get(index); + return _internal_extensions(index); +} +inline ::google::api::expr::v1alpha1::SourceInfo_Extension* SourceInfo::_internal_add_extensions() { + return extensions_.Add(); } -inline ::google::api::expr::v1alpha1::SourceInfo_Extension* SourceInfo::add_extensions() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::google::api::expr::v1alpha1::SourceInfo_Extension* _add = _internal_mutable_extensions()->Add(); +inline ::google::api::expr::v1alpha1::SourceInfo_Extension* SourceInfo::add_extensions() { + ::google::api::expr::v1alpha1::SourceInfo_Extension* _add = _internal_add_extensions(); // @@protoc_insertion_point(field_add:google.api.expr.v1alpha1.SourceInfo.extensions) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::SourceInfo_Extension>& SourceInfo::extensions() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::SourceInfo_Extension >& +SourceInfo::extensions() const { // @@protoc_insertion_point(field_list:google.api.expr.v1alpha1.SourceInfo.extensions) - return _internal_extensions(); -} -inline const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::SourceInfo_Extension>& -SourceInfo::_internal_extensions() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.extensions_; -} -inline ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::SourceInfo_Extension>* -SourceInfo::_internal_mutable_extensions() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.extensions_; + return extensions_; } // ------------------------------------------------------------------- @@ -7019,152 +6415,166 @@ SourceInfo::_internal_mutable_extensions() { // string location = 1 [json_name = "location"]; inline void SourcePosition::clear_location() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.location_.ClearToEmpty(); + location_.ClearToEmpty(); } -inline const std::string& SourcePosition::location() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& SourcePosition::location() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.SourcePosition.location) return _internal_location(); } -template -inline PROTOBUF_ALWAYS_INLINE void SourcePosition::set_location(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.location_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void SourcePosition::set_location(ArgT0&& arg0, ArgT... args) { + + location_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.SourcePosition.location) } -inline std::string* SourcePosition::mutable_location() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* SourcePosition::mutable_location() { std::string* _s = _internal_mutable_location(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.SourcePosition.location) return _s; } inline const std::string& SourcePosition::_internal_location() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.location_.Get(); + return location_.Get(); } inline void SourcePosition::_internal_set_location(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.location_.Set(value, GetArena()); + + location_.Set(value, GetArenaForAllocation()); } inline std::string* SourcePosition::_internal_mutable_location() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.location_.Mutable( GetArena()); + + return location_.Mutable(GetArenaForAllocation()); } inline std::string* SourcePosition::release_location() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.SourcePosition.location) - return _impl_.location_.Release(); -} -inline void SourcePosition::set_allocated_location(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.location_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.location_.IsDefault()) { - _impl_.location_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return location_.Release(); +} +inline void SourcePosition::set_allocated_location(std::string* location) { + if (location != nullptr) { + + } else { + + } + location_.SetAllocated(location, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (location_.IsDefault()) { + location_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.SourcePosition.location) } // int32 offset = 2 [json_name = "offset"]; inline void SourcePosition::clear_offset() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.offset_ = 0; + offset_ = 0; } -inline ::int32_t SourcePosition::offset() const { +inline int32_t SourcePosition::_internal_offset() const { + return offset_; +} +inline int32_t SourcePosition::offset() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.SourcePosition.offset) return _internal_offset(); } -inline void SourcePosition::set_offset(::int32_t value) { +inline void SourcePosition::_internal_set_offset(int32_t value) { + + offset_ = value; +} +inline void SourcePosition::set_offset(int32_t value) { _internal_set_offset(value); // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.SourcePosition.offset) } -inline ::int32_t SourcePosition::_internal_offset() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.offset_; -} -inline void SourcePosition::_internal_set_offset(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.offset_ = value; -} // int32 line = 3 [json_name = "line"]; inline void SourcePosition::clear_line() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.line_ = 0; + line_ = 0; } -inline ::int32_t SourcePosition::line() const { +inline int32_t SourcePosition::_internal_line() const { + return line_; +} +inline int32_t SourcePosition::line() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.SourcePosition.line) return _internal_line(); } -inline void SourcePosition::set_line(::int32_t value) { +inline void SourcePosition::_internal_set_line(int32_t value) { + + line_ = value; +} +inline void SourcePosition::set_line(int32_t value) { _internal_set_line(value); // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.SourcePosition.line) } -inline ::int32_t SourcePosition::_internal_line() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.line_; -} -inline void SourcePosition::_internal_set_line(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.line_ = value; -} // int32 column = 4 [json_name = "column"]; inline void SourcePosition::clear_column() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.column_ = 0; + column_ = 0; } -inline ::int32_t SourcePosition::column() const { +inline int32_t SourcePosition::_internal_column() const { + return column_; +} +inline int32_t SourcePosition::column() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.SourcePosition.column) return _internal_column(); } -inline void SourcePosition::set_column(::int32_t value) { +inline void SourcePosition::_internal_set_column(int32_t value) { + + column_ = value; +} +inline void SourcePosition::set_column(int32_t value) { _internal_set_column(value); // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.SourcePosition.column) } -inline ::int32_t SourcePosition::_internal_column() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.column_; -} -inline void SourcePosition::_internal_set_column(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.column_ = value; -} #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) + } // namespace v1alpha1 } // namespace expr } // namespace api } // namespace google +PROTOBUF_NAMESPACE_OPEN -namespace google { -namespace protobuf { - -template <> -struct is_proto_enum<::google::api::expr::v1alpha1::SourceInfo_Extension_Component> : std::true_type {}; +template <> struct is_proto_enum< ::google::api::expr::v1alpha1::SourceInfo_Extension_Component> : ::std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor<::google::api::expr::v1alpha1::SourceInfo_Extension_Component>() { +inline const EnumDescriptor* GetEnumDescriptor< ::google::api::expr::v1alpha1::SourceInfo_Extension_Component>() { return ::google::api::expr::v1alpha1::SourceInfo_Extension_Component_descriptor(); } -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1alpha1_2fsyntax_2eproto diff --git a/src/viam/api/google/api/expr/v1alpha1/value.grpc.pb.cc b/src/viam/api/google/api/expr/v1alpha1/value.grpc.pb.cc index e61a5d991..dcc5e1930 100644 --- a/src/viam/api/google/api/expr/v1alpha1/value.grpc.pb.cc +++ b/src/viam/api/google/api/expr/v1alpha1/value.grpc.pb.cc @@ -6,19 +6,19 @@ #include "google/api/expr/v1alpha1/value.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace google { namespace api { namespace expr { diff --git a/src/viam/api/google/api/expr/v1alpha1/value.grpc.pb.h b/src/viam/api/google/api/expr/v1alpha1/value.grpc.pb.h index 3b9a2b7b6..8d3b5314b 100644 --- a/src/viam/api/google/api/expr/v1alpha1/value.grpc.pb.h +++ b/src/viam/api/google/api/expr/v1alpha1/value.grpc.pb.h @@ -22,23 +22,24 @@ #include "google/api/expr/v1alpha1/value.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace google { namespace api { diff --git a/src/viam/api/google/api/expr/v1alpha1/value.pb.cc b/src/viam/api/google/api/expr/v1alpha1/value.pb.cc index 20d9383fe..a1311a491 100644 --- a/src/viam/api/google/api/expr/v1alpha1/value.pb.cc +++ b/src/viam/api/google/api/expr/v1alpha1/value.pb.cc @@ -4,720 +4,715 @@ #include "google/api/expr/v1alpha1/value.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace google { namespace api { namespace expr { namespace v1alpha1 { - -inline constexpr EnumValue::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : type_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - value_{0}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR EnumValue::EnumValue(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_CONSTEXPR Value::Value( + ::_pbi::ConstantInitialized) + : _oneof_case_{}{} +struct ValueDefaultTypeInternal { + PROTOBUF_CONSTEXPR ValueDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ValueDefaultTypeInternal() {} + union { + Value _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ValueDefaultTypeInternal _Value_default_instance_; +PROTOBUF_CONSTEXPR EnumValue::EnumValue( + ::_pbi::ConstantInitialized) + : type_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , value_(0){} struct EnumValueDefaultTypeInternal { - PROTOBUF_CONSTEXPR EnumValueDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR EnumValueDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~EnumValueDefaultTypeInternal() {} union { EnumValue _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EnumValueDefaultTypeInternal _EnumValue_default_instance_; - -inline constexpr ListValue::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : values_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR ListValue::ListValue(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EnumValueDefaultTypeInternal _EnumValue_default_instance_; +PROTOBUF_CONSTEXPR ListValue::ListValue( + ::_pbi::ConstantInitialized) + : values_(){} struct ListValueDefaultTypeInternal { - PROTOBUF_CONSTEXPR ListValueDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ListValueDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~ListValueDefaultTypeInternal() {} union { ListValue _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListValueDefaultTypeInternal _ListValue_default_instance_; - -inline constexpr MapValue::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : entries_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR MapValue::MapValue(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct MapValueDefaultTypeInternal { - PROTOBUF_CONSTEXPR MapValueDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~MapValueDefaultTypeInternal() {} - union { - MapValue _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MapValueDefaultTypeInternal _MapValue_default_instance_; - -inline constexpr MapValue_Entry::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - key_{nullptr}, - value_{nullptr} {} - -template -PROTOBUF_CONSTEXPR MapValue_Entry::MapValue_Entry(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListValueDefaultTypeInternal _ListValue_default_instance_; +PROTOBUF_CONSTEXPR MapValue_Entry::MapValue_Entry( + ::_pbi::ConstantInitialized) + : key_(nullptr) + , value_(nullptr){} struct MapValue_EntryDefaultTypeInternal { - PROTOBUF_CONSTEXPR MapValue_EntryDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR MapValue_EntryDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~MapValue_EntryDefaultTypeInternal() {} union { MapValue_Entry _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MapValue_EntryDefaultTypeInternal _MapValue_Entry_default_instance_; - -inline constexpr Value::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : kind_{}, - _cached_size_{0}, - _oneof_case_{} {} - -template -PROTOBUF_CONSTEXPR Value::Value(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ValueDefaultTypeInternal { - PROTOBUF_CONSTEXPR ValueDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ValueDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MapValue_EntryDefaultTypeInternal _MapValue_Entry_default_instance_; +PROTOBUF_CONSTEXPR MapValue::MapValue( + ::_pbi::ConstantInitialized) + : entries_(){} +struct MapValueDefaultTypeInternal { + PROTOBUF_CONSTEXPR MapValueDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~MapValueDefaultTypeInternal() {} union { - Value _instance; + MapValue _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ValueDefaultTypeInternal _Value_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MapValueDefaultTypeInternal _MapValue_default_instance_; } // namespace v1alpha1 } // namespace expr } // namespace api } // namespace google static ::_pb::Metadata file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto[5]; -static constexpr const ::_pb::EnumDescriptor** - file_level_enum_descriptors_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto = nullptr; -const ::uint32_t TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Value, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Value, _impl_._oneof_case_[0]), - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Value, _impl_.kind_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::EnumValue, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::EnumValue, _impl_.type_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::EnumValue, _impl_.value_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::ListValue, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::ListValue, _impl_.values_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::MapValue_Entry, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::MapValue_Entry, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::MapValue_Entry, _impl_.key_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::MapValue_Entry, _impl_.value_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::MapValue, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::MapValue, _impl_.entries_), +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto = nullptr; + +const uint32_t TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Value, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Value, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Value, kind_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::EnumValue, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::EnumValue, type_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::EnumValue, value_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::ListValue, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::ListValue, values_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::MapValue_Entry, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::MapValue_Entry, key_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::MapValue_Entry, value_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::MapValue, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::MapValue, entries_), }; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, -1, -1, sizeof(::google::api::expr::v1alpha1::Value)}, - {21, -1, -1, sizeof(::google::api::expr::v1alpha1::EnumValue)}, - {31, -1, -1, sizeof(::google::api::expr::v1alpha1::ListValue)}, - {40, 50, -1, sizeof(::google::api::expr::v1alpha1::MapValue_Entry)}, - {52, -1, -1, sizeof(::google::api::expr::v1alpha1::MapValue)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::google::api::expr::v1alpha1::Value)}, + { 19, -1, -1, sizeof(::google::api::expr::v1alpha1::EnumValue)}, + { 27, -1, -1, sizeof(::google::api::expr::v1alpha1::ListValue)}, + { 34, -1, -1, sizeof(::google::api::expr::v1alpha1::MapValue_Entry)}, + { 42, -1, -1, sizeof(::google::api::expr::v1alpha1::MapValue)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::google::api::expr::v1alpha1::_Value_default_instance_._instance, - &::google::api::expr::v1alpha1::_EnumValue_default_instance_._instance, - &::google::api::expr::v1alpha1::_ListValue_default_instance_._instance, - &::google::api::expr::v1alpha1::_MapValue_Entry_default_instance_._instance, - &::google::api::expr::v1alpha1::_MapValue_default_instance_._instance, -}; -const char descriptor_table_protodef_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n$google/api/expr/v1alpha1/value.proto\022\030" - "google.api.expr.v1alpha1\032\031google/protobu" - "f/any.proto\032\034google/protobuf/struct.prot" - "o\"\315\004\n\005Value\022;\n\nnull_value\030\001 \001(\0162\032.google" - ".protobuf.NullValueH\000R\tnullValue\022\037\n\nbool" - "_value\030\002 \001(\010H\000R\tboolValue\022!\n\013int64_value" - "\030\003 \001(\003H\000R\nint64Value\022#\n\014uint64_value\030\004 \001" - "(\004H\000R\013uint64Value\022#\n\014double_value\030\005 \001(\001H" - "\000R\013doubleValue\022#\n\014string_value\030\006 \001(\tH\000R\013" - "stringValue\022!\n\013bytes_value\030\007 \001(\014H\000R\nbyte" - "sValue\022D\n\nenum_value\030\t \001(\0132#.google.api." - "expr.v1alpha1.EnumValueH\000R\tenumValue\0229\n\014" - "object_value\030\n \001(\0132\024.google.protobuf.Any" - "H\000R\013objectValue\022A\n\tmap_value\030\013 \001(\0132\".goo" - "gle.api.expr.v1alpha1.MapValueH\000R\010mapVal" - "ue\022D\n\nlist_value\030\014 \001(\0132#.google.api.expr" - ".v1alpha1.ListValueH\000R\tlistValue\022\037\n\ntype" - "_value\030\017 \001(\tH\000R\ttypeValueB\006\n\004kind\"5\n\tEnu" - "mValue\022\022\n\004type\030\001 \001(\tR\004type\022\024\n\005value\030\002 \001(" - "\005R\005value\"D\n\tListValue\0227\n\006values\030\001 \003(\0132\037." - "google.api.expr.v1alpha1.ValueR\006values\"\301" - "\001\n\010MapValue\022B\n\007entries\030\001 \003(\0132(.google.ap" - "i.expr.v1alpha1.MapValue.EntryR\007entries\032" - "q\n\005Entry\0221\n\003key\030\001 \001(\0132\037.google.api.expr." - "v1alpha1.ValueR\003key\0225\n\005value\030\002 \001(\0132\037.goo" - "gle.api.expr.v1alpha1.ValueR\005valueB\356\001\n\034c" - "om.google.api.expr.v1alpha1B\nValueProtoP" - "\001Z descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto_getter() { return &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto(&descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto(&descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto); namespace google { namespace api { namespace expr { namespace v1alpha1 { + // =================================================================== class Value::_Internal { public: - static constexpr ::int32_t kOneofCaseOffset = - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1alpha1::Value, _impl_._oneof_case_); static const ::google::api::expr::v1alpha1::EnumValue& enum_value(const Value* msg); - static const ::google::protobuf::Any& object_value(const Value* msg); + static const ::PROTOBUF_NAMESPACE_ID::Any& object_value(const Value* msg); static const ::google::api::expr::v1alpha1::MapValue& map_value(const Value* msg); static const ::google::api::expr::v1alpha1::ListValue& list_value(const Value* msg); }; -const ::google::api::expr::v1alpha1::EnumValue& Value::_Internal::enum_value(const Value* msg) { - return *msg->_impl_.kind_.enum_value_; +const ::google::api::expr::v1alpha1::EnumValue& +Value::_Internal::enum_value(const Value* msg) { + return *msg->kind_.enum_value_; } -const ::google::protobuf::Any& Value::_Internal::object_value(const Value* msg) { - return *msg->_impl_.kind_.object_value_; +const ::PROTOBUF_NAMESPACE_ID::Any& +Value::_Internal::object_value(const Value* msg) { + return *msg->kind_.object_value_; } -const ::google::api::expr::v1alpha1::MapValue& Value::_Internal::map_value(const Value* msg) { - return *msg->_impl_.kind_.map_value_; +const ::google::api::expr::v1alpha1::MapValue& +Value::_Internal::map_value(const Value* msg) { + return *msg->kind_.map_value_; } -const ::google::api::expr::v1alpha1::ListValue& Value::_Internal::list_value(const Value* msg) { - return *msg->_impl_.kind_.list_value_; +const ::google::api::expr::v1alpha1::ListValue& +Value::_Internal::list_value(const Value* msg) { + return *msg->kind_.list_value_; } void Value::set_allocated_enum_value(::google::api::expr::v1alpha1::EnumValue* enum_value) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_kind(); if (enum_value) { - ::google::protobuf::Arena* submessage_arena = enum_value->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(enum_value); if (message_arena != submessage_arena) { - enum_value = ::google::protobuf::internal::GetOwnedMessage(message_arena, enum_value, submessage_arena); + enum_value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, enum_value, submessage_arena); } set_has_enum_value(); - _impl_.kind_.enum_value_ = enum_value; + kind_.enum_value_ = enum_value; } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Value.enum_value) } -void Value::set_allocated_object_value(::google::protobuf::Any* object_value) { - ::google::protobuf::Arena* message_arena = GetArena(); +void Value::set_allocated_object_value(::PROTOBUF_NAMESPACE_ID::Any* object_value) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_kind(); if (object_value) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(object_value)->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(object_value)); if (message_arena != submessage_arena) { - object_value = ::google::protobuf::internal::GetOwnedMessage(message_arena, object_value, submessage_arena); + object_value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, object_value, submessage_arena); } set_has_object_value(); - _impl_.kind_.object_value_ = object_value; + kind_.object_value_ = object_value; } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Value.object_value) } void Value::clear_object_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() == kObjectValue) { - if (GetArena() == nullptr) { - delete _impl_.kind_.object_value_; + if (_internal_has_object_value()) { + if (GetArenaForAllocation() == nullptr) { + delete kind_.object_value_; } clear_has_kind(); } } void Value::set_allocated_map_value(::google::api::expr::v1alpha1::MapValue* map_value) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_kind(); if (map_value) { - ::google::protobuf::Arena* submessage_arena = map_value->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(map_value); if (message_arena != submessage_arena) { - map_value = ::google::protobuf::internal::GetOwnedMessage(message_arena, map_value, submessage_arena); + map_value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, map_value, submessage_arena); } set_has_map_value(); - _impl_.kind_.map_value_ = map_value; + kind_.map_value_ = map_value; } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Value.map_value) } void Value::set_allocated_list_value(::google::api::expr::v1alpha1::ListValue* list_value) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_kind(); if (list_value) { - ::google::protobuf::Arena* submessage_arena = list_value->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(list_value); if (message_arena != submessage_arena) { - list_value = ::google::protobuf::internal::GetOwnedMessage(message_arena, list_value, submessage_arena); + list_value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, list_value, submessage_arena); } set_has_list_value(); - _impl_.kind_.list_value_ = list_value; + kind_.list_value_ = list_value; } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Value.list_value) } -Value::Value(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Value::Value(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.Value) } -inline PROTOBUF_NDEBUG_INLINE Value::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : kind_{}, - _cached_size_{0}, - _oneof_case_{from._oneof_case_[0]} {} - -Value::Value( - ::google::protobuf::Arena* arena, - const Value& from) - : ::google::protobuf::Message(arena) { - Value* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - switch (kind_case()) { - case KIND_NOT_SET: - break; - case kNullValue: - _impl_.kind_.null_value_ = from._impl_.kind_.null_value_; - break; - case kBoolValue: - _impl_.kind_.bool_value_ = from._impl_.kind_.bool_value_; - break; - case kInt64Value: - _impl_.kind_.int64_value_ = from._impl_.kind_.int64_value_; - break; - case kUint64Value: - _impl_.kind_.uint64_value_ = from._impl_.kind_.uint64_value_; - break; - case kDoubleValue: - _impl_.kind_.double_value_ = from._impl_.kind_.double_value_; - break; - case kStringValue: - new (&_impl_.kind_.string_value_) decltype(_impl_.kind_.string_value_){arena, from._impl_.kind_.string_value_}; - break; - case kBytesValue: - new (&_impl_.kind_.bytes_value_) decltype(_impl_.kind_.bytes_value_){arena, from._impl_.kind_.bytes_value_}; - break; - case kEnumValue: - _impl_.kind_.enum_value_ = CreateMaybeMessage<::google::api::expr::v1alpha1::EnumValue>(arena, *from._impl_.kind_.enum_value_); - break; - case kObjectValue: - _impl_.kind_.object_value_ = CreateMaybeMessage<::google::protobuf::Any>(arena, *from._impl_.kind_.object_value_); - break; - case kMapValue: - _impl_.kind_.map_value_ = CreateMaybeMessage<::google::api::expr::v1alpha1::MapValue>(arena, *from._impl_.kind_.map_value_); - break; - case kListValue: - _impl_.kind_.list_value_ = CreateMaybeMessage<::google::api::expr::v1alpha1::ListValue>(arena, *from._impl_.kind_.list_value_); - break; - case kTypeValue: - new (&_impl_.kind_.type_value_) decltype(_impl_.kind_.type_value_){arena, from._impl_.kind_.type_value_}; - break; - } - - // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.Value) -} -inline PROTOBUF_NDEBUG_INLINE Value::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : kind_{}, - _cached_size_{0}, - _oneof_case_{} {} - -inline void Value::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -Value::~Value() { - // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.Value) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void Value::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - if (has_kind()) { - clear_kind(); - } - _impl_.~Impl_(); -} - -void Value::clear_kind() { -// @@protoc_insertion_point(one_of_clear_start:google.api.expr.v1alpha1.Value) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - switch (kind_case()) { +Value::Value(const Value& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + clear_has_kind(); + switch (from.kind_case()) { case kNullValue: { - // No need to clear + _internal_set_null_value(from._internal_null_value()); break; } case kBoolValue: { - // No need to clear + _internal_set_bool_value(from._internal_bool_value()); break; } case kInt64Value: { - // No need to clear + _internal_set_int64_value(from._internal_int64_value()); break; } case kUint64Value: { - // No need to clear + _internal_set_uint64_value(from._internal_uint64_value()); break; } case kDoubleValue: { - // No need to clear + _internal_set_double_value(from._internal_double_value()); break; } case kStringValue: { - _impl_.kind_.string_value_.Destroy(); + _internal_set_string_value(from._internal_string_value()); break; } case kBytesValue: { - _impl_.kind_.bytes_value_.Destroy(); + _internal_set_bytes_value(from._internal_bytes_value()); break; } case kEnumValue: { - if (GetArena() == nullptr) { - delete _impl_.kind_.enum_value_; - } + _internal_mutable_enum_value()->::google::api::expr::v1alpha1::EnumValue::MergeFrom(from._internal_enum_value()); break; } case kObjectValue: { - if (GetArena() == nullptr) { - delete _impl_.kind_.object_value_; - } + _internal_mutable_object_value()->::PROTOBUF_NAMESPACE_ID::Any::MergeFrom(from._internal_object_value()); break; } case kMapValue: { - if (GetArena() == nullptr) { - delete _impl_.kind_.map_value_; - } + _internal_mutable_map_value()->::google::api::expr::v1alpha1::MapValue::MergeFrom(from._internal_map_value()); break; } case kListValue: { - if (GetArena() == nullptr) { - delete _impl_.kind_.list_value_; - } + _internal_mutable_list_value()->::google::api::expr::v1alpha1::ListValue::MergeFrom(from._internal_list_value()); break; } case kTypeValue: { - _impl_.kind_.type_value_.Destroy(); + _internal_set_type_value(from._internal_type_value()); break; } case KIND_NOT_SET: { break; } } - _impl_._oneof_case_[0] = KIND_NOT_SET; + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.Value) } - -PROTOBUF_NOINLINE void Value::Clear() { -// @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.Value) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - clear_kind(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +inline void Value::SharedCtor() { +clear_has_kind(); } -const char* Value::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +Value::~Value() { + // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.Value) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); } +inline void Value::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (has_kind()) { + clear_kind(); + } +} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 12, 4, 69, 2> Value::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 15, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294946944, // skipmap - offsetof(decltype(_table_), field_entries), - 12, // num_field_entries - 4, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Value_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // .google.protobuf.NullValue null_value = 1 [json_name = "nullValue"]; - {PROTOBUF_FIELD_OFFSET(Value, _impl_.kind_.null_value_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kOpenEnum)}, - // bool bool_value = 2 [json_name = "boolValue"]; - {PROTOBUF_FIELD_OFFSET(Value, _impl_.kind_.bool_value_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kBool)}, - // int64 int64_value = 3 [json_name = "int64Value"]; - {PROTOBUF_FIELD_OFFSET(Value, _impl_.kind_.int64_value_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kInt64)}, - // uint64 uint64_value = 4 [json_name = "uint64Value"]; - {PROTOBUF_FIELD_OFFSET(Value, _impl_.kind_.uint64_value_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kUInt64)}, - // double double_value = 5 [json_name = "doubleValue"]; - {PROTOBUF_FIELD_OFFSET(Value, _impl_.kind_.double_value_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kDouble)}, - // string string_value = 6 [json_name = "stringValue"]; - {PROTOBUF_FIELD_OFFSET(Value, _impl_.kind_.string_value_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // bytes bytes_value = 7 [json_name = "bytesValue"]; - {PROTOBUF_FIELD_OFFSET(Value, _impl_.kind_.bytes_value_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kBytes | ::_fl::kRepAString)}, - // .google.api.expr.v1alpha1.EnumValue enum_value = 9 [json_name = "enumValue"]; - {PROTOBUF_FIELD_OFFSET(Value, _impl_.kind_.enum_value_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.protobuf.Any object_value = 10 [json_name = "objectValue"]; - {PROTOBUF_FIELD_OFFSET(Value, _impl_.kind_.object_value_), _Internal::kOneofCaseOffset + 0, 1, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.api.expr.v1alpha1.MapValue map_value = 11 [json_name = "mapValue"]; - {PROTOBUF_FIELD_OFFSET(Value, _impl_.kind_.map_value_), _Internal::kOneofCaseOffset + 0, 2, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.api.expr.v1alpha1.ListValue list_value = 12 [json_name = "listValue"]; - {PROTOBUF_FIELD_OFFSET(Value, _impl_.kind_.list_value_), _Internal::kOneofCaseOffset + 0, 3, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // string type_value = 15 [json_name = "typeValue"]; - {PROTOBUF_FIELD_OFFSET(Value, _impl_.kind_.type_value_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::EnumValue>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Any>()}, - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::MapValue>()}, - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::ListValue>()}, - }}, {{ - "\36\0\0\0\0\0\14\0\0\0\0\0\12\0\0\0" - "google.api.expr.v1alpha1.Value" - "string_value" - "type_value" - }}, -}; - -::uint8_t* Value::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.Value) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; +void Value::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +void Value::clear_kind() { +// @@protoc_insertion_point(one_of_clear_start:google.api.expr.v1alpha1.Value) switch (kind_case()) { case kNullValue: { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_null_value(), target); + // No need to clear break; } case kBoolValue: { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 2, this->_internal_bool_value(), target); + // No need to clear break; } case kInt64Value: { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<3>( - stream, this->_internal_int64_value(), target); + // No need to clear break; } case kUint64Value: { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 4, this->_internal_uint64_value(), target); + // No need to clear break; } case kDoubleValue: { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 5, this->_internal_double_value(), target); + // No need to clear break; } case kStringValue: { - const std::string& _s = this->_internal_string_value(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.expr.v1alpha1.Value.string_value"); - target = stream->WriteStringMaybeAliased(6, _s, target); + kind_.string_value_.Destroy(); break; } case kBytesValue: { - const std::string& _s = this->_internal_bytes_value(); - target = stream->WriteBytesMaybeAliased(7, _s, target); + kind_.bytes_value_.Destroy(); break; } case kEnumValue: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 9, _Internal::enum_value(this), - _Internal::enum_value(this).GetCachedSize(), target, stream); + if (GetArenaForAllocation() == nullptr) { + delete kind_.enum_value_; + } break; } case kObjectValue: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 10, _Internal::object_value(this), - _Internal::object_value(this).GetCachedSize(), target, stream); + if (GetArenaForAllocation() == nullptr) { + delete kind_.object_value_; + } break; } case kMapValue: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 11, _Internal::map_value(this), - _Internal::map_value(this).GetCachedSize(), target, stream); + if (GetArenaForAllocation() == nullptr) { + delete kind_.map_value_; + } break; } case kListValue: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 12, _Internal::list_value(this), - _Internal::list_value(this).GetCachedSize(), target, stream); + if (GetArenaForAllocation() == nullptr) { + delete kind_.list_value_; + } break; } case kTypeValue: { - const std::string& _s = this->_internal_type_value(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.expr.v1alpha1.Value.type_value"); - target = stream->WriteStringMaybeAliased(15, _s, target); + kind_.type_value_.Destroy(); break; } - default: + case KIND_NOT_SET: { break; + } } + _oneof_case_[0] = KIND_NOT_SET; +} + + +void Value::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.Value) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_kind(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Value::_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) { + // .google.protobuf.NullValue null_value = 1 [json_name = "nullValue"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_null_value(static_cast<::PROTOBUF_NAMESPACE_ID::NullValue>(val)); + } else + goto handle_unusual; + continue; + // bool bool_value = 2 [json_name = "boolValue"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _internal_set_bool_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int64 int64_value = 3 [json_name = "int64Value"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + _internal_set_int64_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // uint64 uint64_value = 4 [json_name = "uint64Value"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + _internal_set_uint64_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // double double_value = 5 [json_name = "doubleValue"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 41)) { + _internal_set_double_value(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // string string_value = 6 [json_name = "stringValue"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + auto str = _internal_mutable_string_value(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1alpha1.Value.string_value")); + } else + goto handle_unusual; + continue; + // bytes bytes_value = 7 [json_name = "bytesValue"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + auto str = _internal_mutable_bytes_value(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.EnumValue enum_value = 9 [json_name = "enumValue"]; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { + ptr = ctx->ParseMessage(_internal_mutable_enum_value(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Any object_value = 10 [json_name = "objectValue"]; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { + ptr = ctx->ParseMessage(_internal_mutable_object_value(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.MapValue map_value = 11 [json_name = "mapValue"]; + case 11: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 90)) { + ptr = ctx->ParseMessage(_internal_mutable_map_value(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.ListValue list_value = 12 [json_name = "listValue"]; + case 12: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 98)) { + ptr = ctx->ParseMessage(_internal_mutable_list_value(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string type_value = 15 [json_name = "typeValue"]; + case 15: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 122)) { + auto str = _internal_mutable_type_value(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1alpha1.Value.type_value")); + } 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* Value::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.Value) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .google.protobuf.NullValue null_value = 1 [json_name = "nullValue"]; + if (_internal_has_null_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this->_internal_null_value(), target); + } + + // bool bool_value = 2 [json_name = "boolValue"]; + if (_internal_has_bool_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_bool_value(), target); + } + + // int64 int64_value = 3 [json_name = "int64Value"]; + if (_internal_has_int64_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(3, this->_internal_int64_value(), target); + } + + // uint64 uint64_value = 4 [json_name = "uint64Value"]; + if (_internal_has_uint64_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(4, this->_internal_uint64_value(), target); + } + + // double double_value = 5 [json_name = "doubleValue"]; + if (_internal_has_double_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(5, this->_internal_double_value(), target); + } + + // string string_value = 6 [json_name = "stringValue"]; + if (_internal_has_string_value()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_string_value().data(), static_cast(this->_internal_string_value().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1alpha1.Value.string_value"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_string_value(), target); + } + + // bytes bytes_value = 7 [json_name = "bytesValue"]; + if (_internal_has_bytes_value()) { + target = stream->WriteBytesMaybeAliased( + 7, this->_internal_bytes_value(), target); + } + + // .google.api.expr.v1alpha1.EnumValue enum_value = 9 [json_name = "enumValue"]; + if (_internal_has_enum_value()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(9, _Internal::enum_value(this), + _Internal::enum_value(this).GetCachedSize(), target, stream); + } + + // .google.protobuf.Any object_value = 10 [json_name = "objectValue"]; + if (_internal_has_object_value()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(10, _Internal::object_value(this), + _Internal::object_value(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1alpha1.MapValue map_value = 11 [json_name = "mapValue"]; + if (_internal_has_map_value()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(11, _Internal::map_value(this), + _Internal::map_value(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1alpha1.ListValue list_value = 12 [json_name = "listValue"]; + if (_internal_has_list_value()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(12, _Internal::list_value(this), + _Internal::list_value(this).GetCachedSize(), target, stream); + } + + // string type_value = 15 [json_name = "typeValue"]; + if (_internal_has_type_value()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_type_value().data(), static_cast(this->_internal_type_value().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1alpha1.Value.type_value"); + target = stream->WriteStringMaybeAliased( + 15, this->_internal_type_value(), target); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1alpha1.Value) return target; } -::size_t Value::ByteSizeLong() const { +size_t Value::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.Value) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -725,154 +720,158 @@ ::size_t Value::ByteSizeLong() const { // .google.protobuf.NullValue null_value = 1 [json_name = "nullValue"]; case kNullValue: { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_null_value()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_null_value()); break; } // bool bool_value = 2 [json_name = "boolValue"]; case kBoolValue: { - total_size += 2; + total_size += 1 + 1; break; } // int64 int64_value = 3 [json_name = "int64Value"]; case kInt64Value: { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( - this->_internal_int64_value()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_int64_value()); break; } // uint64 uint64_value = 4 [json_name = "uint64Value"]; case kUint64Value: { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_uint64_value()); + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_uint64_value()); break; } // double double_value = 5 [json_name = "doubleValue"]; case kDoubleValue: { - total_size += 9; + total_size += 1 + 8; break; } // string string_value = 6 [json_name = "stringValue"]; case kStringValue: { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_string_value()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_string_value()); break; } // bytes bytes_value = 7 [json_name = "bytesValue"]; case kBytesValue: { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_bytes_value()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_bytes_value()); break; } // .google.api.expr.v1alpha1.EnumValue enum_value = 9 [json_name = "enumValue"]; case kEnumValue: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.kind_.enum_value_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *kind_.enum_value_); break; } // .google.protobuf.Any object_value = 10 [json_name = "objectValue"]; case kObjectValue: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.kind_.object_value_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *kind_.object_value_); break; } // .google.api.expr.v1alpha1.MapValue map_value = 11 [json_name = "mapValue"]; case kMapValue: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.kind_.map_value_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *kind_.map_value_); break; } // .google.api.expr.v1alpha1.ListValue list_value = 12 [json_name = "listValue"]; case kListValue: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.kind_.list_value_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *kind_.list_value_); break; } // string type_value = 15 [json_name = "typeValue"]; case kTypeValue: { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_type_value()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_type_value()); break; } case KIND_NOT_SET: { break; } } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Value::_class_data_ = { - Value::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Value::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Value::MergeImpl }; -const ::google::protobuf::Message::ClassData* Value::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Value::GetClassData() const { return &_class_data_; } + +void Value::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Value::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Value) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Value::MergeFrom(const Value& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.Value) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; switch (from.kind_case()) { case kNullValue: { - _this->_internal_set_null_value(from._internal_null_value()); + _internal_set_null_value(from._internal_null_value()); break; } case kBoolValue: { - _this->_internal_set_bool_value(from._internal_bool_value()); + _internal_set_bool_value(from._internal_bool_value()); break; } case kInt64Value: { - _this->_internal_set_int64_value(from._internal_int64_value()); + _internal_set_int64_value(from._internal_int64_value()); break; } case kUint64Value: { - _this->_internal_set_uint64_value(from._internal_uint64_value()); + _internal_set_uint64_value(from._internal_uint64_value()); break; } case kDoubleValue: { - _this->_internal_set_double_value(from._internal_double_value()); + _internal_set_double_value(from._internal_double_value()); break; } case kStringValue: { - _this->_internal_set_string_value(from._internal_string_value()); + _internal_set_string_value(from._internal_string_value()); break; } case kBytesValue: { - _this->_internal_set_bytes_value(from._internal_bytes_value()); + _internal_set_bytes_value(from._internal_bytes_value()); break; } case kEnumValue: { - _this->_internal_mutable_enum_value()->::google::api::expr::v1alpha1::EnumValue::MergeFrom( - from._internal_enum_value()); + _internal_mutable_enum_value()->::google::api::expr::v1alpha1::EnumValue::MergeFrom(from._internal_enum_value()); break; } case kObjectValue: { - _this->_internal_mutable_object_value()->::google::protobuf::Any::MergeFrom( - from._internal_object_value()); + _internal_mutable_object_value()->::PROTOBUF_NAMESPACE_ID::Any::MergeFrom(from._internal_object_value()); break; } case kMapValue: { - _this->_internal_mutable_map_value()->::google::api::expr::v1alpha1::MapValue::MergeFrom( - from._internal_map_value()); + _internal_mutable_map_value()->::google::api::expr::v1alpha1::MapValue::MergeFrom(from._internal_map_value()); break; } case kListValue: { - _this->_internal_mutable_list_value()->::google::api::expr::v1alpha1::ListValue::MergeFrom( - from._internal_list_value()); + _internal_mutable_list_value()->::google::api::expr::v1alpha1::ListValue::MergeFrom(from._internal_list_value()); break; } case kTypeValue: { - _this->_internal_set_type_value(from._internal_type_value()); + _internal_set_type_value(from._internal_type_value()); break; } case KIND_NOT_SET: { break; } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Value::CopyFrom(const Value& from) { @@ -882,211 +881,213 @@ void Value::CopyFrom(const Value& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Value::IsInitialized() const { +bool Value::IsInitialized() const { return true; } -::_pbi::CachedSize* Value::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Value::InternalSwap(Value* PROTOBUF_RESTRICT other) { +void Value::InternalSwap(Value* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.kind_, other->_impl_.kind_); - swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); + swap(kind_, other->kind_); + swap(_oneof_case_[0], other->_oneof_case_[0]); } -::google::protobuf::Metadata Value::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Value::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto[0]); } + // =================================================================== class EnumValue::_Internal { public: }; -EnumValue::EnumValue(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +EnumValue::EnumValue(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.EnumValue) } -inline PROTOBUF_NDEBUG_INLINE EnumValue::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : type_(arena, from.type_), - _cached_size_{0} {} - -EnumValue::EnumValue( - ::google::protobuf::Arena* arena, - const EnumValue& from) - : ::google::protobuf::Message(arena) { - EnumValue* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.value_ = from._impl_.value_; - +EnumValue::EnumValue(const EnumValue& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + 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()); + } + value_ = from.value_; // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.EnumValue) } -inline PROTOBUF_NDEBUG_INLINE EnumValue::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : type_(arena), - _cached_size_{0} {} -inline void EnumValue::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.value_ = {}; +inline void EnumValue::SharedCtor() { +type_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + type_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +value_ = 0; } + EnumValue::~EnumValue() { // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.EnumValue) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void EnumValue::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.type_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + type_.Destroy(); } -PROTOBUF_NOINLINE void EnumValue::Clear() { +void EnumValue::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void EnumValue::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.EnumValue) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.type_.ClearToEmpty(); - _impl_.value_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* EnumValue::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + type_.ClearToEmpty(); + value_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* EnumValue::_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 type = 1 [json_name = "type"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1alpha1.EnumValue.type")); + } else + goto handle_unusual; + continue; + // int32 value = 2 [json_name = "value"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + value_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 47, 2> EnumValue::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_EnumValue_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // int32 value = 2 [json_name = "value"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(EnumValue, _impl_.value_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(EnumValue, _impl_.value_)}}, - // string type = 1 [json_name = "type"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(EnumValue, _impl_.type_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string type = 1 [json_name = "type"]; - {PROTOBUF_FIELD_OFFSET(EnumValue, _impl_.type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // int32 value = 2 [json_name = "value"]; - {PROTOBUF_FIELD_OFFSET(EnumValue, _impl_.value_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - }}, - // no aux_entries - {{ - "\42\4\0\0\0\0\0\0" - "google.api.expr.v1alpha1.EnumValue" - "type" - }}, -}; - -::uint8_t* EnumValue::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* EnumValue::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.EnumValue) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string type = 1 [json_name = "type"]; if (!this->_internal_type().empty()) { - const std::string& _s = this->_internal_type(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.expr.v1alpha1.EnumValue.type"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_type().data(), static_cast(this->_internal_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1alpha1.EnumValue.type"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_type(), target); } // int32 value = 2 [json_name = "value"]; if (this->_internal_value() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<2>( - stream, this->_internal_value(), target); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_value(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1alpha1.EnumValue) return target; } -::size_t EnumValue::ByteSizeLong() const { +size_t EnumValue::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.EnumValue) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string type = 1 [json_name = "type"]; if (!this->_internal_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_type()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_type()); } // int32 value = 2 [json_name = "value"]; if (this->_internal_value() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_value()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_value()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData EnumValue::_class_data_ = { - EnumValue::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EnumValue::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + EnumValue::MergeImpl }; -const ::google::protobuf::Message::ClassData* EnumValue::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EnumValue::GetClassData() const { return &_class_data_; } + +void EnumValue::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void EnumValue::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.EnumValue) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void EnumValue::MergeFrom(const EnumValue& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.EnumValue) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_type().empty()) { - _this->_internal_set_type(from._internal_type()); + _internal_set_type(from._internal_type()); } if (from._internal_value() != 0) { - _this->_internal_set_value(from._internal_value()); + _internal_set_value(from._internal_value()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void EnumValue::CopyFrom(const EnumValue& from) { @@ -1096,183 +1097,181 @@ void EnumValue::CopyFrom(const EnumValue& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool EnumValue::IsInitialized() const { +bool EnumValue::IsInitialized() const { return true; } -::_pbi::CachedSize* EnumValue::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void EnumValue::InternalSwap(EnumValue* PROTOBUF_RESTRICT other) { +void EnumValue::InternalSwap(EnumValue* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.type_, &other->_impl_.type_, arena); - swap(_impl_.value_, other->_impl_.value_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &type_, lhs_arena, + &other->type_, rhs_arena + ); + swap(value_, other->value_); } -::google::protobuf::Metadata EnumValue::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata EnumValue::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto[1]); } + // =================================================================== class ListValue::_Internal { public: }; -ListValue::ListValue(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ListValue::ListValue(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + values_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.ListValue) } -inline PROTOBUF_NDEBUG_INLINE ListValue::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : values_{visibility, arena, from.values_}, - _cached_size_{0} {} - -ListValue::ListValue( - ::google::protobuf::Arena* arena, - const ListValue& from) - : ::google::protobuf::Message(arena) { - ListValue* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +ListValue::ListValue(const ListValue& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + values_(from.values_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.ListValue) } -inline PROTOBUF_NDEBUG_INLINE ListValue::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : values_{visibility, arena}, - _cached_size_{0} {} -inline void ListValue::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void ListValue::SharedCtor() { } + ListValue::~ListValue() { // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.ListValue) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ListValue::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void ListValue::Clear() { +void ListValue::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ListValue::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.ListValue) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.values_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ListValue::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + values_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListValue::_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) { + // repeated .google.api.expr.v1alpha1.Value values = 1 [json_name = "values"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_values(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ListValue::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ListValue_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .google.api.expr.v1alpha1.Value values = 1 [json_name = "values"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ListValue, _impl_.values_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .google.api.expr.v1alpha1.Value values = 1 [json_name = "values"]; - {PROTOBUF_FIELD_OFFSET(ListValue, _impl_.values_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::Value>()}, - }}, {{ - }}, -}; - -::uint8_t* ListValue::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ListValue::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.ListValue) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .google.api.expr.v1alpha1.Value values = 1 [json_name = "values"]; for (unsigned i = 0, n = static_cast(this->_internal_values_size()); i < n; i++) { - const auto& repfield = this->_internal_values().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_values(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1alpha1.ListValue) return target; } -::size_t ListValue::ByteSizeLong() const { +size_t ListValue::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.ListValue) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .google.api.expr.v1alpha1.Value values = 1 [json_name = "values"]; total_size += 1UL * this->_internal_values_size(); - for (const auto& msg : this->_internal_values()) { + for (const auto& msg : this->values_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ListValue::_class_data_ = { - ListValue::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListValue::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ListValue::MergeImpl }; -const ::google::protobuf::Message::ClassData* ListValue::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListValue::GetClassData() const { return &_class_data_; } + +void ListValue::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ListValue::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.ListValue) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ListValue::MergeFrom(const ListValue& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.ListValue) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_values()->MergeFrom( - from._internal_values()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + values_.MergeFrom(from.values_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ListValue::CopyFrom(const ListValue& from) { @@ -1282,254 +1281,227 @@ void ListValue::CopyFrom(const ListValue& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ListValue::IsInitialized() const { +bool ListValue::IsInitialized() const { return true; } -::_pbi::CachedSize* ListValue::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ListValue::InternalSwap(ListValue* PROTOBUF_RESTRICT other) { +void ListValue::InternalSwap(ListValue* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.values_.InternalSwap(&other->_impl_.values_); + values_.InternalSwap(&other->values_); } -::google::protobuf::Metadata ListValue::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ListValue::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto[2]); } + // =================================================================== class MapValue_Entry::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(MapValue_Entry, _impl_._has_bits_); static const ::google::api::expr::v1alpha1::Value& key(const MapValue_Entry* msg); - static void set_has_key(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } static const ::google::api::expr::v1alpha1::Value& value(const MapValue_Entry* msg); - static void set_has_value(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } }; -const ::google::api::expr::v1alpha1::Value& MapValue_Entry::_Internal::key(const MapValue_Entry* msg) { - return *msg->_impl_.key_; +const ::google::api::expr::v1alpha1::Value& +MapValue_Entry::_Internal::key(const MapValue_Entry* msg) { + return *msg->key_; } -const ::google::api::expr::v1alpha1::Value& MapValue_Entry::_Internal::value(const MapValue_Entry* msg) { - return *msg->_impl_.value_; +const ::google::api::expr::v1alpha1::Value& +MapValue_Entry::_Internal::value(const MapValue_Entry* msg) { + return *msg->value_; } -MapValue_Entry::MapValue_Entry(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +MapValue_Entry::MapValue_Entry(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.MapValue.Entry) } -inline PROTOBUF_NDEBUG_INLINE MapValue_Entry::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -MapValue_Entry::MapValue_Entry( - ::google::protobuf::Arena* arena, - const MapValue_Entry& from) - : ::google::protobuf::Message(arena) { - MapValue_Entry* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.key_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::api::expr::v1alpha1::Value>(arena, *from._impl_.key_) - : nullptr; - _impl_.value_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::google::api::expr::v1alpha1::Value>(arena, *from._impl_.value_) - : nullptr; - +MapValue_Entry::MapValue_Entry(const MapValue_Entry& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_key()) { + key_ = new ::google::api::expr::v1alpha1::Value(*from.key_); + } else { + key_ = nullptr; + } + if (from._internal_has_value()) { + value_ = new ::google::api::expr::v1alpha1::Value(*from.value_); + } else { + value_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.MapValue.Entry) } -inline PROTOBUF_NDEBUG_INLINE MapValue_Entry::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void MapValue_Entry::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, key_), - 0, - offsetof(Impl_, value_) - - offsetof(Impl_, key_) + - sizeof(Impl_::value_)); +inline void MapValue_Entry::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&key_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&value_) - + reinterpret_cast(&key_)) + sizeof(value_)); } + MapValue_Entry::~MapValue_Entry() { // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.MapValue.Entry) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void MapValue_Entry::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.key_; - delete _impl_.value_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete key_; + if (this != internal_default_instance()) delete value_; +} + +void MapValue_Entry::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void MapValue_Entry::Clear() { +void MapValue_Entry::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.MapValue.Entry) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.key_ != nullptr); - _impl_.key_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.value_ != nullptr); - _impl_.value_->Clear(); - } + if (GetArenaForAllocation() == nullptr && key_ != nullptr) { + delete key_; } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* MapValue_Entry::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + key_ = nullptr; + if (GetArenaForAllocation() == nullptr && value_ != nullptr) { + delete value_; + } + value_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* MapValue_Entry::_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) { + // .google.api.expr.v1alpha1.Value key = 1 [json_name = "key"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_key(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1alpha1.Value value = 2 [json_name = "value"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_value(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 2, 0, 2> MapValue_Entry::_table_ = { - { - PROTOBUF_FIELD_OFFSET(MapValue_Entry, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_MapValue_Entry_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .google.api.expr.v1alpha1.Value value = 2 [json_name = "value"]; - {::_pbi::TcParser::FastMtS1, - {18, 1, 1, PROTOBUF_FIELD_OFFSET(MapValue_Entry, _impl_.value_)}}, - // .google.api.expr.v1alpha1.Value key = 1 [json_name = "key"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(MapValue_Entry, _impl_.key_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .google.api.expr.v1alpha1.Value key = 1 [json_name = "key"]; - {PROTOBUF_FIELD_OFFSET(MapValue_Entry, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.api.expr.v1alpha1.Value value = 2 [json_name = "value"]; - {PROTOBUF_FIELD_OFFSET(MapValue_Entry, _impl_.value_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::Value>()}, - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::Value>()}, - }}, {{ - }}, -}; - -::uint8_t* MapValue_Entry::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* MapValue_Entry::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.MapValue.Entry) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .google.api.expr.v1alpha1.Value key = 1 [json_name = "key"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::key(this), + if (this->_internal_has_key()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::key(this), _Internal::key(this).GetCachedSize(), target, stream); } // .google.api.expr.v1alpha1.Value value = 2 [json_name = "value"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::value(this), + if (this->_internal_has_value()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::value(this), _Internal::value(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1alpha1.MapValue.Entry) return target; } -::size_t MapValue_Entry::ByteSizeLong() const { +size_t MapValue_Entry::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.MapValue.Entry) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // .google.api.expr.v1alpha1.Value key = 1 [json_name = "key"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.key_); - } - - // .google.api.expr.v1alpha1.Value value = 2 [json_name = "value"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.value_); - } + // .google.api.expr.v1alpha1.Value key = 1 [json_name = "key"]; + if (this->_internal_has_key()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *key_); + } + // .google.api.expr.v1alpha1.Value value = 2 [json_name = "value"]; + if (this->_internal_has_value()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *value_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData MapValue_Entry::_class_data_ = { - MapValue_Entry::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MapValue_Entry::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + MapValue_Entry::MergeImpl }; -const ::google::protobuf::Message::ClassData* MapValue_Entry::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MapValue_Entry::GetClassData() const { return &_class_data_; } + +void MapValue_Entry::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void MapValue_Entry::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.MapValue.Entry) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void MapValue_Entry::MergeFrom(const MapValue_Entry& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.MapValue.Entry) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_key()->::google::api::expr::v1alpha1::Value::MergeFrom( - from._internal_key()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_value()->::google::api::expr::v1alpha1::Value::MergeFrom( - from._internal_value()); - } + if (from._internal_has_key()) { + _internal_mutable_key()->::google::api::expr::v1alpha1::Value::MergeFrom(from._internal_key()); + } + if (from._internal_has_value()) { + _internal_mutable_value()->::google::api::expr::v1alpha1::Value::MergeFrom(from._internal_value()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MapValue_Entry::CopyFrom(const MapValue_Entry& from) { @@ -1539,186 +1511,180 @@ void MapValue_Entry::CopyFrom(const MapValue_Entry& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool MapValue_Entry::IsInitialized() const { +bool MapValue_Entry::IsInitialized() const { return true; } -::_pbi::CachedSize* MapValue_Entry::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void MapValue_Entry::InternalSwap(MapValue_Entry* PROTOBUF_RESTRICT other) { +void MapValue_Entry::InternalSwap(MapValue_Entry* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(MapValue_Entry, _impl_.value_) - + sizeof(MapValue_Entry::_impl_.value_) - - PROTOBUF_FIELD_OFFSET(MapValue_Entry, _impl_.key_)>( - reinterpret_cast(&_impl_.key_), - reinterpret_cast(&other->_impl_.key_)); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(MapValue_Entry, value_) + + sizeof(MapValue_Entry::value_) + - PROTOBUF_FIELD_OFFSET(MapValue_Entry, key_)>( + reinterpret_cast(&key_), + reinterpret_cast(&other->key_)); } -::google::protobuf::Metadata MapValue_Entry::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata MapValue_Entry::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto[3]); } + // =================================================================== class MapValue::_Internal { public: }; -MapValue::MapValue(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +MapValue::MapValue(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + entries_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1alpha1.MapValue) } -inline PROTOBUF_NDEBUG_INLINE MapValue::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : entries_{visibility, arena, from.entries_}, - _cached_size_{0} {} - -MapValue::MapValue( - ::google::protobuf::Arena* arena, - const MapValue& from) - : ::google::protobuf::Message(arena) { - MapValue* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +MapValue::MapValue(const MapValue& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + entries_(from.entries_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:google.api.expr.v1alpha1.MapValue) } -inline PROTOBUF_NDEBUG_INLINE MapValue::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : entries_{visibility, arena}, - _cached_size_{0} {} -inline void MapValue::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void MapValue::SharedCtor() { } + MapValue::~MapValue() { // @@protoc_insertion_point(destructor:google.api.expr.v1alpha1.MapValue) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void MapValue::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void MapValue::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void MapValue::Clear() { +void MapValue::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1alpha1.MapValue) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.entries_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* MapValue::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + entries_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* MapValue::_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) { + // repeated .google.api.expr.v1alpha1.MapValue.Entry entries = 1 [json_name = "entries"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_entries(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> MapValue::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_MapValue_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .google.api.expr.v1alpha1.MapValue.Entry entries = 1 [json_name = "entries"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(MapValue, _impl_.entries_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .google.api.expr.v1alpha1.MapValue.Entry entries = 1 [json_name = "entries"]; - {PROTOBUF_FIELD_OFFSET(MapValue, _impl_.entries_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::expr::v1alpha1::MapValue_Entry>()}, - }}, {{ - }}, -}; - -::uint8_t* MapValue::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* MapValue::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1alpha1.MapValue) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .google.api.expr.v1alpha1.MapValue.Entry entries = 1 [json_name = "entries"]; for (unsigned i = 0, n = static_cast(this->_internal_entries_size()); i < n; i++) { - const auto& repfield = this->_internal_entries().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_entries(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1alpha1.MapValue) return target; } -::size_t MapValue::ByteSizeLong() const { +size_t MapValue::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1alpha1.MapValue) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .google.api.expr.v1alpha1.MapValue.Entry entries = 1 [json_name = "entries"]; total_size += 1UL * this->_internal_entries_size(); - for (const auto& msg : this->_internal_entries()) { + for (const auto& msg : this->entries_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData MapValue::_class_data_ = { - MapValue::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MapValue::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + MapValue::MergeImpl }; -const ::google::protobuf::Message::ClassData* MapValue::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MapValue::GetClassData() const { return &_class_data_; } + +void MapValue::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void MapValue::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.MapValue) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void MapValue::MergeFrom(const MapValue& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1alpha1.MapValue) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_entries()->MergeFrom( - from._internal_entries()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + entries_.MergeFrom(from.entries_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MapValue::CopyFrom(const MapValue& from) { @@ -1728,32 +1694,49 @@ void MapValue::CopyFrom(const MapValue& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool MapValue::IsInitialized() const { +bool MapValue::IsInitialized() const { return true; } -::_pbi::CachedSize* MapValue::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void MapValue::InternalSwap(MapValue* PROTOBUF_RESTRICT other) { +void MapValue::InternalSwap(MapValue* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.entries_.InternalSwap(&other->_impl_.entries_); + entries_.InternalSwap(&other->entries_); } -::google::protobuf::Metadata MapValue::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata MapValue::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto[4]); } + // @@protoc_insertion_point(namespace_scope) } // namespace v1alpha1 } // namespace expr } // namespace api } // namespace google -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::Value* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::Value >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::Value >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::EnumValue* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::EnumValue >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::EnumValue >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::ListValue* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::ListValue >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::ListValue >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::MapValue_Entry* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::MapValue_Entry >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::MapValue_Entry >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1alpha1::MapValue* +Arena::CreateMaybeMessage< ::google::api::expr::v1alpha1::MapValue >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1alpha1::MapValue >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/google/api/expr/v1alpha1/value.pb.h b/src/viam/api/google/api/expr/v1alpha1/value.pb.h index f9748aa2b..a53f8a9d5 100644 --- a/src/viam/api/google/api/expr/v1alpha1/value.pb.h +++ b/src/viam/api/google/api/expr/v1alpha1/value.pb.h @@ -1,62 +1,51 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/expr/v1alpha1/value.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/unknown_field_set.h" -#include "google/protobuf/any.pb.h" -#include "google/protobuf/struct.pb.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include +// @@protoc_insertion_point(includes) +#include #define PROTOBUF_INTERNAL_EXPORT_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto; namespace google { namespace api { namespace expr { @@ -79,10 +68,14 @@ extern ValueDefaultTypeInternal _Value_default_instance_; } // namespace v1alpha1 } // namespace expr } // namespace api -namespace protobuf { -} // namespace protobuf } // namespace google - +PROTOBUF_NAMESPACE_OPEN +template<> ::google::api::expr::v1alpha1::EnumValue* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::EnumValue>(Arena*); +template<> ::google::api::expr::v1alpha1::ListValue* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::ListValue>(Arena*); +template<> ::google::api::expr::v1alpha1::MapValue* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::MapValue>(Arena*); +template<> ::google::api::expr::v1alpha1::MapValue_Entry* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::MapValue_Entry>(Arena*); +template<> ::google::api::expr::v1alpha1::Value* Arena::CreateMaybeMessage<::google::api::expr::v1alpha1::Value>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace google { namespace api { namespace expr { @@ -90,33 +83,28 @@ namespace v1alpha1 { // =================================================================== - -// ------------------------------------------------------------------- - -class EnumValue final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.EnumValue) */ { +class Value final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Value) */ { public: - inline EnumValue() : EnumValue(nullptr) {} - ~EnumValue() override; - template - explicit PROTOBUF_CONSTEXPR EnumValue(::google::protobuf::internal::ConstantInitialized); + inline Value() : Value(nullptr) {} + ~Value() override; + explicit PROTOBUF_CONSTEXPR Value(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline EnumValue(const EnumValue& from) - : EnumValue(nullptr, from) {} - EnumValue(EnumValue&& from) noexcept - : EnumValue() { + Value(const Value& from); + Value(Value&& from) noexcept + : Value() { *this = ::std::move(from); } - inline EnumValue& operator=(const EnumValue& from) { + inline Value& operator=(const Value& from) { CopyFrom(from); return *this; } - inline EnumValue& operator=(EnumValue&& from) noexcept { + inline Value& operator=(Value&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -126,190 +114,383 @@ class EnumValue final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const EnumValue& default_instance() { + static const Value& default_instance() { return *internal_default_instance(); } - static inline const EnumValue* internal_default_instance() { - return reinterpret_cast( - &_EnumValue_default_instance_); + enum KindCase { + kNullValue = 1, + kBoolValue = 2, + kInt64Value = 3, + kUint64Value = 4, + kDoubleValue = 5, + kStringValue = 6, + kBytesValue = 7, + kEnumValue = 9, + kObjectValue = 10, + kMapValue = 11, + kListValue = 12, + kTypeValue = 15, + KIND_NOT_SET = 0, + }; + + static inline const Value* internal_default_instance() { + return reinterpret_cast( + &_Value_default_instance_); } static constexpr int kIndexInFileMessages = - 1; + 0; - friend void swap(EnumValue& a, EnumValue& b) { + friend void swap(Value& a, Value& b) { a.Swap(&b); } - inline void Swap(EnumValue* other) { + inline void Swap(Value* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(EnumValue* other) { + void UnsafeArenaSwap(Value* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - EnumValue* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const EnumValue& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const EnumValue& from) { - EnumValue::MergeImpl(*this, from); + Value* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Value& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Value& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(EnumValue* other); + void SetCachedSize(int size) const final; + void InternalSwap(Value* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.expr.v1alpha1.EnumValue"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.Value"; } protected: - explicit EnumValue(::google::protobuf::Arena* arena); - EnumValue(::google::protobuf::Arena* arena, const EnumValue& from); + explicit Value(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kTypeFieldNumber = 1, - kValueFieldNumber = 2, + kNullValueFieldNumber = 1, + kBoolValueFieldNumber = 2, + kInt64ValueFieldNumber = 3, + kUint64ValueFieldNumber = 4, + kDoubleValueFieldNumber = 5, + kStringValueFieldNumber = 6, + kBytesValueFieldNumber = 7, + kEnumValueFieldNumber = 9, + kObjectValueFieldNumber = 10, + kMapValueFieldNumber = 11, + kListValueFieldNumber = 12, + kTypeValueFieldNumber = 15, }; - // string type = 1 [json_name = "type"]; - void clear_type() ; - const std::string& type() const; - template - void set_type(Arg_&& arg, Args_... args); - std::string* mutable_type(); - PROTOBUF_NODISCARD std::string* release_type(); - void set_allocated_type(std::string* value); + // .google.protobuf.NullValue null_value = 1 [json_name = "nullValue"]; + bool has_null_value() const; + private: + bool _internal_has_null_value() const; + public: + void clear_null_value(); + ::PROTOBUF_NAMESPACE_ID::NullValue null_value() const; + void set_null_value(::PROTOBUF_NAMESPACE_ID::NullValue value); + private: + ::PROTOBUF_NAMESPACE_ID::NullValue _internal_null_value() const; + void _internal_set_null_value(::PROTOBUF_NAMESPACE_ID::NullValue value); + public: + // bool bool_value = 2 [json_name = "boolValue"]; + bool has_bool_value() const; private: - const std::string& _internal_type() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_type( - const std::string& value); - std::string* _internal_mutable_type(); + bool _internal_has_bool_value() const; + public: + void clear_bool_value(); + bool bool_value() const; + void set_bool_value(bool value); + private: + bool _internal_bool_value() const; + void _internal_set_bool_value(bool value); + public: + // int64 int64_value = 3 [json_name = "int64Value"]; + bool has_int64_value() const; + private: + bool _internal_has_int64_value() const; + public: + void clear_int64_value(); + int64_t int64_value() const; + void set_int64_value(int64_t value); + private: + int64_t _internal_int64_value() const; + void _internal_set_int64_value(int64_t value); public: - // int32 value = 2 [json_name = "value"]; - void clear_value() ; - ::int32_t value() const; - void set_value(::int32_t value); + // uint64 uint64_value = 4 [json_name = "uint64Value"]; + bool has_uint64_value() const; + private: + bool _internal_has_uint64_value() const; + public: + void clear_uint64_value(); + uint64_t uint64_value() const; + void set_uint64_value(uint64_t value); private: - ::int32_t _internal_value() const; - void _internal_set_value(::int32_t value); + uint64_t _internal_uint64_value() const; + void _internal_set_uint64_value(uint64_t value); + public: + // double double_value = 5 [json_name = "doubleValue"]; + bool has_double_value() const; + private: + bool _internal_has_double_value() const; public: - // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.EnumValue) + void clear_double_value(); + double double_value() const; + void set_double_value(double value); + private: + double _internal_double_value() const; + void _internal_set_double_value(double value); + public: + + // string string_value = 6 [json_name = "stringValue"]; + bool has_string_value() const; + private: + bool _internal_has_string_value() const; + public: + void clear_string_value(); + const std::string& string_value() const; + template + void set_string_value(ArgT0&& arg0, ArgT... args); + std::string* mutable_string_value(); + PROTOBUF_NODISCARD std::string* release_string_value(); + void set_allocated_string_value(std::string* string_value); + private: + const std::string& _internal_string_value() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_string_value(const std::string& value); + std::string* _internal_mutable_string_value(); + public: + + // bytes bytes_value = 7 [json_name = "bytesValue"]; + bool has_bytes_value() const; + private: + bool _internal_has_bytes_value() const; + public: + void clear_bytes_value(); + const std::string& bytes_value() const; + template + void set_bytes_value(ArgT0&& arg0, ArgT... args); + std::string* mutable_bytes_value(); + PROTOBUF_NODISCARD std::string* release_bytes_value(); + void set_allocated_bytes_value(std::string* bytes_value); + private: + const std::string& _internal_bytes_value() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_bytes_value(const std::string& value); + std::string* _internal_mutable_bytes_value(); + public: + + // .google.api.expr.v1alpha1.EnumValue enum_value = 9 [json_name = "enumValue"]; + bool has_enum_value() const; + private: + bool _internal_has_enum_value() const; + public: + void clear_enum_value(); + const ::google::api::expr::v1alpha1::EnumValue& enum_value() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::EnumValue* release_enum_value(); + ::google::api::expr::v1alpha1::EnumValue* mutable_enum_value(); + void set_allocated_enum_value(::google::api::expr::v1alpha1::EnumValue* enum_value); + private: + const ::google::api::expr::v1alpha1::EnumValue& _internal_enum_value() const; + ::google::api::expr::v1alpha1::EnumValue* _internal_mutable_enum_value(); + public: + void unsafe_arena_set_allocated_enum_value( + ::google::api::expr::v1alpha1::EnumValue* enum_value); + ::google::api::expr::v1alpha1::EnumValue* unsafe_arena_release_enum_value(); + + // .google.protobuf.Any object_value = 10 [json_name = "objectValue"]; + bool has_object_value() const; + private: + bool _internal_has_object_value() const; + public: + void clear_object_value(); + const ::PROTOBUF_NAMESPACE_ID::Any& object_value() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Any* release_object_value(); + ::PROTOBUF_NAMESPACE_ID::Any* mutable_object_value(); + void set_allocated_object_value(::PROTOBUF_NAMESPACE_ID::Any* object_value); + private: + const ::PROTOBUF_NAMESPACE_ID::Any& _internal_object_value() const; + ::PROTOBUF_NAMESPACE_ID::Any* _internal_mutable_object_value(); + public: + void unsafe_arena_set_allocated_object_value( + ::PROTOBUF_NAMESPACE_ID::Any* object_value); + ::PROTOBUF_NAMESPACE_ID::Any* unsafe_arena_release_object_value(); + + // .google.api.expr.v1alpha1.MapValue map_value = 11 [json_name = "mapValue"]; + bool has_map_value() const; + private: + bool _internal_has_map_value() const; + public: + void clear_map_value(); + const ::google::api::expr::v1alpha1::MapValue& map_value() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::MapValue* release_map_value(); + ::google::api::expr::v1alpha1::MapValue* mutable_map_value(); + void set_allocated_map_value(::google::api::expr::v1alpha1::MapValue* map_value); + private: + const ::google::api::expr::v1alpha1::MapValue& _internal_map_value() const; + ::google::api::expr::v1alpha1::MapValue* _internal_mutable_map_value(); + public: + void unsafe_arena_set_allocated_map_value( + ::google::api::expr::v1alpha1::MapValue* map_value); + ::google::api::expr::v1alpha1::MapValue* unsafe_arena_release_map_value(); + + // .google.api.expr.v1alpha1.ListValue list_value = 12 [json_name = "listValue"]; + bool has_list_value() const; + private: + bool _internal_has_list_value() const; + public: + void clear_list_value(); + const ::google::api::expr::v1alpha1::ListValue& list_value() const; + PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::ListValue* release_list_value(); + ::google::api::expr::v1alpha1::ListValue* mutable_list_value(); + void set_allocated_list_value(::google::api::expr::v1alpha1::ListValue* list_value); + private: + const ::google::api::expr::v1alpha1::ListValue& _internal_list_value() const; + ::google::api::expr::v1alpha1::ListValue* _internal_mutable_list_value(); + public: + void unsafe_arena_set_allocated_list_value( + ::google::api::expr::v1alpha1::ListValue* list_value); + ::google::api::expr::v1alpha1::ListValue* unsafe_arena_release_list_value(); + + // string type_value = 15 [json_name = "typeValue"]; + bool has_type_value() const; + private: + bool _internal_has_type_value() const; + public: + void clear_type_value(); + const std::string& type_value() const; + template + void set_type_value(ArgT0&& arg0, ArgT... args); + std::string* mutable_type_value(); + PROTOBUF_NODISCARD std::string* release_type_value(); + void set_allocated_type_value(std::string* type_value); + private: + const std::string& _internal_type_value() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_type_value(const std::string& value); + std::string* _internal_mutable_type_value(); + public: + + void clear_kind(); + KindCase kind_case() const; + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Value) private: class _Internal; + void set_has_null_value(); + void set_has_bool_value(); + void set_has_int64_value(); + void set_has_uint64_value(); + void set_has_double_value(); + void set_has_string_value(); + void set_has_bytes_value(); + void set_has_enum_value(); + void set_has_object_value(); + void set_has_map_value(); + void set_has_list_value(); + void set_has_type_value(); + + inline bool has_kind() const; + inline void clear_has_kind(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + union KindUnion { + constexpr KindUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + int null_value_; + bool bool_value_; + int64_t int64_value_; + uint64_t uint64_value_; + double double_value_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr string_value_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr bytes_value_; + ::google::api::expr::v1alpha1::EnumValue* enum_value_; + ::PROTOBUF_NAMESPACE_ID::Any* object_value_; + ::google::api::expr::v1alpha1::MapValue* map_value_; + ::google::api::expr::v1alpha1::ListValue* list_value_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_value_; + } kind_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 47, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr type_; - ::int32_t value_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ListValue final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.ListValue) */ { +class EnumValue final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.EnumValue) */ { public: - inline ListValue() : ListValue(nullptr) {} - ~ListValue() override; - template - explicit PROTOBUF_CONSTEXPR ListValue(::google::protobuf::internal::ConstantInitialized); + inline EnumValue() : EnumValue(nullptr) {} + ~EnumValue() override; + explicit PROTOBUF_CONSTEXPR EnumValue(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ListValue(const ListValue& from) - : ListValue(nullptr, from) {} - ListValue(ListValue&& from) noexcept - : ListValue() { + EnumValue(const EnumValue& from); + EnumValue(EnumValue&& from) noexcept + : EnumValue() { *this = ::std::move(from); } - inline ListValue& operator=(const ListValue& from) { + inline EnumValue& operator=(const EnumValue& from) { CopyFrom(from); return *this; } - inline ListValue& operator=(ListValue&& from) noexcept { + inline EnumValue& operator=(EnumValue&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -319,180 +500,156 @@ class ListValue final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ListValue& default_instance() { + static const EnumValue& default_instance() { return *internal_default_instance(); } - static inline const ListValue* internal_default_instance() { - return reinterpret_cast( - &_ListValue_default_instance_); + static inline const EnumValue* internal_default_instance() { + return reinterpret_cast( + &_EnumValue_default_instance_); } static constexpr int kIndexInFileMessages = - 2; + 1; - friend void swap(ListValue& a, ListValue& b) { + friend void swap(EnumValue& a, EnumValue& b) { a.Swap(&b); } - inline void Swap(ListValue* other) { + inline void Swap(EnumValue* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ListValue* other) { + void UnsafeArenaSwap(EnumValue* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ListValue* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ListValue& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ListValue& from) { - ListValue::MergeImpl(*this, from); + EnumValue* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const EnumValue& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const EnumValue& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ListValue* other); + void SetCachedSize(int size) const final; + void InternalSwap(EnumValue* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.expr.v1alpha1.ListValue"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.EnumValue"; } protected: - explicit ListValue(::google::protobuf::Arena* arena); - ListValue(::google::protobuf::Arena* arena, const ListValue& from); + explicit EnumValue(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kValuesFieldNumber = 1, + kTypeFieldNumber = 1, + kValueFieldNumber = 2, }; - // repeated .google.api.expr.v1alpha1.Value values = 1 [json_name = "values"]; - int values_size() const; + // string type = 1 [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: - int _internal_values_size() const; - + const std::string& _internal_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_type(const std::string& value); + std::string* _internal_mutable_type(); public: - void clear_values() ; - ::google::api::expr::v1alpha1::Value* mutable_values(int index); - ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1alpha1::Value >* - mutable_values(); + + // int32 value = 2 [json_name = "value"]; + void clear_value(); + int32_t value() const; + void set_value(int32_t value); private: - const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Value>& _internal_values() const; - ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Value>* _internal_mutable_values(); + int32_t _internal_value() const; + void _internal_set_value(int32_t value); public: - const ::google::api::expr::v1alpha1::Value& values(int index) const; - ::google::api::expr::v1alpha1::Value* add_values(); - const ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1alpha1::Value >& - values() const; - // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.ListValue) + + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.EnumValue) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1alpha1::Value > values_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_; + int32_t value_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class MapValue final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.MapValue) */ { +class ListValue final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.ListValue) */ { public: - inline MapValue() : MapValue(nullptr) {} - ~MapValue() override; - template - explicit PROTOBUF_CONSTEXPR MapValue(::google::protobuf::internal::ConstantInitialized); + inline ListValue() : ListValue(nullptr) {} + ~ListValue() override; + explicit PROTOBUF_CONSTEXPR ListValue(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline MapValue(const MapValue& from) - : MapValue(nullptr, from) {} - MapValue(MapValue&& from) noexcept - : MapValue() { + ListValue(const ListValue& from); + ListValue(ListValue&& from) noexcept + : ListValue() { *this = ::std::move(from); } - inline MapValue& operator=(const MapValue& from) { + inline ListValue& operator=(const ListValue& from) { CopyFrom(from); return *this; } - inline MapValue& operator=(MapValue&& from) noexcept { + inline ListValue& operator=(ListValue&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -502,168 +659,135 @@ class MapValue final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MapValue& default_instance() { + static const ListValue& default_instance() { return *internal_default_instance(); } - static inline const MapValue* internal_default_instance() { - return reinterpret_cast( - &_MapValue_default_instance_); + static inline const ListValue* internal_default_instance() { + return reinterpret_cast( + &_ListValue_default_instance_); } static constexpr int kIndexInFileMessages = - 4; + 2; - friend void swap(MapValue& a, MapValue& b) { + friend void swap(ListValue& a, ListValue& b) { a.Swap(&b); } - inline void Swap(MapValue* other) { + inline void Swap(ListValue* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MapValue* other) { + void UnsafeArenaSwap(ListValue* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MapValue* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const MapValue& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const MapValue& from) { - MapValue::MergeImpl(*this, from); + ListValue* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ListValue& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ListValue& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(MapValue* other); + void SetCachedSize(int size) const final; + void InternalSwap(ListValue* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.expr.v1alpha1.MapValue"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.ListValue"; } protected: - explicit MapValue(::google::protobuf::Arena* arena); - MapValue(::google::protobuf::Arena* arena, const MapValue& from); + explicit ListValue(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- - using Entry = MapValue_Entry; - // accessors ------------------------------------------------------- enum : int { - kEntriesFieldNumber = 1, + kValuesFieldNumber = 1, }; - // repeated .google.api.expr.v1alpha1.MapValue.Entry entries = 1 [json_name = "entries"]; - int entries_size() const; + // repeated .google.api.expr.v1alpha1.Value values = 1 [json_name = "values"]; + int values_size() const; private: - int _internal_entries_size() const; - + int _internal_values_size() const; public: - void clear_entries() ; - ::google::api::expr::v1alpha1::MapValue_Entry* mutable_entries(int index); - ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1alpha1::MapValue_Entry >* - mutable_entries(); + void clear_values(); + ::google::api::expr::v1alpha1::Value* mutable_values(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Value >* + mutable_values(); private: - const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::MapValue_Entry>& _internal_entries() const; - ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::MapValue_Entry>* _internal_mutable_entries(); + const ::google::api::expr::v1alpha1::Value& _internal_values(int index) const; + ::google::api::expr::v1alpha1::Value* _internal_add_values(); public: - const ::google::api::expr::v1alpha1::MapValue_Entry& entries(int index) const; - ::google::api::expr::v1alpha1::MapValue_Entry* add_entries(); - const ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1alpha1::MapValue_Entry >& - entries() const; - // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.MapValue) + const ::google::api::expr::v1alpha1::Value& values(int index) const; + ::google::api::expr::v1alpha1::Value* add_values(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Value >& + values() const; + + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.ListValue) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1alpha1::MapValue_Entry > entries_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Value > values_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class MapValue_Entry final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.MapValue.Entry) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.MapValue.Entry) */ { public: inline MapValue_Entry() : MapValue_Entry(nullptr) {} ~MapValue_Entry() override; - template - explicit PROTOBUF_CONSTEXPR MapValue_Entry(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR MapValue_Entry(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline MapValue_Entry(const MapValue_Entry& from) - : MapValue_Entry(nullptr, from) {} + MapValue_Entry(const MapValue_Entry& from); MapValue_Entry(MapValue_Entry&& from) noexcept : MapValue_Entry() { *this = ::std::move(from); @@ -675,9 +799,9 @@ class MapValue_Entry final : } inline MapValue_Entry& operator=(MapValue_Entry&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -687,22 +811,13 @@ class MapValue_Entry final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const MapValue_Entry& default_instance() { @@ -721,65 +836,63 @@ class MapValue_Entry final : inline void Swap(MapValue_Entry* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(MapValue_Entry* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MapValue_Entry* New(::google::protobuf::Arena* arena = nullptr) const final { + MapValue_Entry* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const MapValue_Entry& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const MapValue_Entry& from) { - MapValue_Entry::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MapValue_Entry& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(MapValue_Entry* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "google.api.expr.v1alpha1.MapValue.Entry"; } protected: - explicit MapValue_Entry(::google::protobuf::Arena* arena); - MapValue_Entry(::google::protobuf::Arena* arena, const MapValue_Entry& from); + explicit MapValue_Entry(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -791,91 +904,76 @@ class MapValue_Entry final : }; // .google.api.expr.v1alpha1.Value key = 1 [json_name = "key"]; bool has_key() const; - void clear_key() ; + private: + bool _internal_has_key() const; + public: + void clear_key(); const ::google::api::expr::v1alpha1::Value& key() const; PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Value* release_key(); ::google::api::expr::v1alpha1::Value* mutable_key(); - void set_allocated_key(::google::api::expr::v1alpha1::Value* value); - void unsafe_arena_set_allocated_key(::google::api::expr::v1alpha1::Value* value); - ::google::api::expr::v1alpha1::Value* unsafe_arena_release_key(); - + void set_allocated_key(::google::api::expr::v1alpha1::Value* key); private: const ::google::api::expr::v1alpha1::Value& _internal_key() const; ::google::api::expr::v1alpha1::Value* _internal_mutable_key(); - public: + void unsafe_arena_set_allocated_key( + ::google::api::expr::v1alpha1::Value* key); + ::google::api::expr::v1alpha1::Value* unsafe_arena_release_key(); + // .google.api.expr.v1alpha1.Value value = 2 [json_name = "value"]; bool has_value() const; - void clear_value() ; + private: + bool _internal_has_value() const; + public: + void clear_value(); const ::google::api::expr::v1alpha1::Value& value() const; PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::Value* release_value(); ::google::api::expr::v1alpha1::Value* mutable_value(); void set_allocated_value(::google::api::expr::v1alpha1::Value* value); - void unsafe_arena_set_allocated_value(::google::api::expr::v1alpha1::Value* value); - ::google::api::expr::v1alpha1::Value* unsafe_arena_release_value(); - private: const ::google::api::expr::v1alpha1::Value& _internal_value() const; ::google::api::expr::v1alpha1::Value* _internal_mutable_value(); - public: + void unsafe_arena_set_allocated_value( + ::google::api::expr::v1alpha1::Value* value); + ::google::api::expr::v1alpha1::Value* unsafe_arena_release_value(); + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.MapValue.Entry) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 2, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::api::expr::v1alpha1::Value* key_; - ::google::api::expr::v1alpha1::Value* value_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::google::api::expr::v1alpha1::Value* key_; + ::google::api::expr::v1alpha1::Value* value_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Value final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.Value) */ { +class MapValue final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1alpha1.MapValue) */ { public: - inline Value() : Value(nullptr) {} - ~Value() override; - template - explicit PROTOBUF_CONSTEXPR Value(::google::protobuf::internal::ConstantInitialized); + inline MapValue() : MapValue(nullptr) {} + ~MapValue() override; + explicit PROTOBUF_CONSTEXPR MapValue(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Value(const Value& from) - : Value(nullptr, from) {} - Value(Value&& from) noexcept - : Value() { + MapValue(const MapValue& from); + MapValue(MapValue&& from) noexcept + : MapValue() { *this = ::std::move(from); } - inline Value& operator=(const Value& from) { + inline MapValue& operator=(const MapValue& from) { CopyFrom(from); return *this; } - inline Value& operator=(Value&& from) noexcept { + inline MapValue& operator=(MapValue&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -885,1123 +983,843 @@ class Value final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Value& default_instance() { + static const MapValue& default_instance() { return *internal_default_instance(); } - enum KindCase { - kNullValue = 1, - kBoolValue = 2, - kInt64Value = 3, - kUint64Value = 4, - kDoubleValue = 5, - kStringValue = 6, - kBytesValue = 7, - kEnumValue = 9, - kObjectValue = 10, - kMapValue = 11, - kListValue = 12, - kTypeValue = 15, - KIND_NOT_SET = 0, - }; - - static inline const Value* internal_default_instance() { - return reinterpret_cast( - &_Value_default_instance_); + static inline const MapValue* internal_default_instance() { + return reinterpret_cast( + &_MapValue_default_instance_); } static constexpr int kIndexInFileMessages = - 0; + 4; - friend void swap(Value& a, Value& b) { + friend void swap(MapValue& a, MapValue& b) { a.Swap(&b); } - inline void Swap(Value* other) { + inline void Swap(MapValue* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Value* other) { + void UnsafeArenaSwap(MapValue* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Value* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Value& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Value& from) { - Value::MergeImpl(*this, from); + MapValue* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MapValue& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MapValue& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(Value* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.expr.v1alpha1.Value"; - } - protected: - explicit Value(::google::protobuf::Arena* arena); - Value(::google::protobuf::Arena* arena, const Value& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kNullValueFieldNumber = 1, - kBoolValueFieldNumber = 2, - kInt64ValueFieldNumber = 3, - kUint64ValueFieldNumber = 4, - kDoubleValueFieldNumber = 5, - kStringValueFieldNumber = 6, - kBytesValueFieldNumber = 7, - kEnumValueFieldNumber = 9, - kObjectValueFieldNumber = 10, - kMapValueFieldNumber = 11, - kListValueFieldNumber = 12, - kTypeValueFieldNumber = 15, - }; - // .google.protobuf.NullValue null_value = 1 [json_name = "nullValue"]; - bool has_null_value() const; - void clear_null_value() ; - ::google::protobuf::NullValue null_value() const; - void set_null_value(::google::protobuf::NullValue value); - - private: - ::google::protobuf::NullValue _internal_null_value() const; - void _internal_set_null_value(::google::protobuf::NullValue value); - - public: - // bool bool_value = 2 [json_name = "boolValue"]; - bool has_bool_value() const; - void clear_bool_value() ; - bool bool_value() const; - void set_bool_value(bool value); - - private: - bool _internal_bool_value() const; - void _internal_set_bool_value(bool value); - - public: - // int64 int64_value = 3 [json_name = "int64Value"]; - bool has_int64_value() const; - void clear_int64_value() ; - ::int64_t int64_value() const; - void set_int64_value(::int64_t value); - - private: - ::int64_t _internal_int64_value() const; - void _internal_set_int64_value(::int64_t value); - - public: - // uint64 uint64_value = 4 [json_name = "uint64Value"]; - bool has_uint64_value() const; - void clear_uint64_value() ; - ::uint64_t uint64_value() const; - void set_uint64_value(::uint64_t value); - - private: - ::uint64_t _internal_uint64_value() const; - void _internal_set_uint64_value(::uint64_t value); - - public: - // double double_value = 5 [json_name = "doubleValue"]; - bool has_double_value() const; - void clear_double_value() ; - double double_value() const; - void set_double_value(double value); - - private: - double _internal_double_value() const; - void _internal_set_double_value(double value); - - public: - // string string_value = 6 [json_name = "stringValue"]; - bool has_string_value() const; - void clear_string_value() ; - const std::string& string_value() const; - template - void set_string_value(Arg_&& arg, Args_... args); - std::string* mutable_string_value(); - PROTOBUF_NODISCARD std::string* release_string_value(); - void set_allocated_string_value(std::string* value); - - private: - const std::string& _internal_string_value() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_string_value( - const std::string& value); - std::string* _internal_mutable_string_value(); - - public: - // bytes bytes_value = 7 [json_name = "bytesValue"]; - bool has_bytes_value() const; - void clear_bytes_value() ; - const std::string& bytes_value() const; - template - void set_bytes_value(Arg_&& arg, Args_... args); - std::string* mutable_bytes_value(); - PROTOBUF_NODISCARD std::string* release_bytes_value(); - void set_allocated_bytes_value(std::string* value); - - private: - const std::string& _internal_bytes_value() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_bytes_value( - const std::string& value); - std::string* _internal_mutable_bytes_value(); - - public: - // .google.api.expr.v1alpha1.EnumValue enum_value = 9 [json_name = "enumValue"]; - bool has_enum_value() const; - private: - bool _internal_has_enum_value() const; - - public: - void clear_enum_value() ; - const ::google::api::expr::v1alpha1::EnumValue& enum_value() const; - PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::EnumValue* release_enum_value(); - ::google::api::expr::v1alpha1::EnumValue* mutable_enum_value(); - void set_allocated_enum_value(::google::api::expr::v1alpha1::EnumValue* value); - void unsafe_arena_set_allocated_enum_value(::google::api::expr::v1alpha1::EnumValue* value); - ::google::api::expr::v1alpha1::EnumValue* unsafe_arena_release_enum_value(); - - private: - const ::google::api::expr::v1alpha1::EnumValue& _internal_enum_value() const; - ::google::api::expr::v1alpha1::EnumValue* _internal_mutable_enum_value(); - - public: - // .google.protobuf.Any object_value = 10 [json_name = "objectValue"]; - bool has_object_value() const; - private: - bool _internal_has_object_value() const; - - public: - void clear_object_value() ; - const ::google::protobuf::Any& object_value() const; - PROTOBUF_NODISCARD ::google::protobuf::Any* release_object_value(); - ::google::protobuf::Any* mutable_object_value(); - void set_allocated_object_value(::google::protobuf::Any* value); - void unsafe_arena_set_allocated_object_value(::google::protobuf::Any* value); - ::google::protobuf::Any* unsafe_arena_release_object_value(); + 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: - const ::google::protobuf::Any& _internal_object_value() const; - ::google::protobuf::Any* _internal_mutable_object_value(); + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MapValue* other); - public: - // .google.api.expr.v1alpha1.MapValue map_value = 11 [json_name = "mapValue"]; - bool has_map_value() const; private: - bool _internal_has_map_value() const; - + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1alpha1.MapValue"; + } + protected: + explicit MapValue(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - void clear_map_value() ; - const ::google::api::expr::v1alpha1::MapValue& map_value() const; - PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::MapValue* release_map_value(); - ::google::api::expr::v1alpha1::MapValue* mutable_map_value(); - void set_allocated_map_value(::google::api::expr::v1alpha1::MapValue* value); - void unsafe_arena_set_allocated_map_value(::google::api::expr::v1alpha1::MapValue* value); - ::google::api::expr::v1alpha1::MapValue* unsafe_arena_release_map_value(); - private: - const ::google::api::expr::v1alpha1::MapValue& _internal_map_value() const; - ::google::api::expr::v1alpha1::MapValue* _internal_mutable_map_value(); + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: - // .google.api.expr.v1alpha1.ListValue list_value = 12 [json_name = "listValue"]; - bool has_list_value() const; - private: - bool _internal_has_list_value() const; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - public: - void clear_list_value() ; - const ::google::api::expr::v1alpha1::ListValue& list_value() const; - PROTOBUF_NODISCARD ::google::api::expr::v1alpha1::ListValue* release_list_value(); - ::google::api::expr::v1alpha1::ListValue* mutable_list_value(); - void set_allocated_list_value(::google::api::expr::v1alpha1::ListValue* value); - void unsafe_arena_set_allocated_list_value(::google::api::expr::v1alpha1::ListValue* value); - ::google::api::expr::v1alpha1::ListValue* unsafe_arena_release_list_value(); + // nested types ---------------------------------------------------- - private: - const ::google::api::expr::v1alpha1::ListValue& _internal_list_value() const; - ::google::api::expr::v1alpha1::ListValue* _internal_mutable_list_value(); + typedef MapValue_Entry Entry; - public: - // string type_value = 15 [json_name = "typeValue"]; - bool has_type_value() const; - void clear_type_value() ; - const std::string& type_value() const; - template - void set_type_value(Arg_&& arg, Args_... args); - std::string* mutable_type_value(); - PROTOBUF_NODISCARD std::string* release_type_value(); - void set_allocated_type_value(std::string* value); + // accessors ------------------------------------------------------- + enum : int { + kEntriesFieldNumber = 1, + }; + // repeated .google.api.expr.v1alpha1.MapValue.Entry entries = 1 [json_name = "entries"]; + int entries_size() const; private: - const std::string& _internal_type_value() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_type_value( - const std::string& value); - std::string* _internal_mutable_type_value(); - + int _internal_entries_size() const; public: - void clear_kind(); - KindCase kind_case() const; - // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Value) + void clear_entries(); + ::google::api::expr::v1alpha1::MapValue_Entry* mutable_entries(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::MapValue_Entry >* + mutable_entries(); + private: + const ::google::api::expr::v1alpha1::MapValue_Entry& _internal_entries(int index) const; + ::google::api::expr::v1alpha1::MapValue_Entry* _internal_add_entries(); + public: + const ::google::api::expr::v1alpha1::MapValue_Entry& entries(int index) const; + ::google::api::expr::v1alpha1::MapValue_Entry* add_entries(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::MapValue_Entry >& + entries() const; + + // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.MapValue) private: class _Internal; - void set_has_null_value(); - void set_has_bool_value(); - void set_has_int64_value(); - void set_has_uint64_value(); - void set_has_double_value(); - void set_has_string_value(); - void set_has_bytes_value(); - void set_has_enum_value(); - void set_has_object_value(); - void set_has_map_value(); - void set_has_list_value(); - void set_has_type_value(); - inline bool has_kind() const; - inline void clear_has_kind(); - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 12, 4, - 69, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - union KindUnion { - constexpr KindUnion() : _constinit_{} {} - ::google::protobuf::internal::ConstantInitialized _constinit_; - int null_value_; - bool bool_value_; - ::int64_t int64_value_; - ::uint64_t uint64_value_; - double double_value_; - ::google::protobuf::internal::ArenaStringPtr string_value_; - ::google::protobuf::internal::ArenaStringPtr bytes_value_; - ::google::api::expr::v1alpha1::EnumValue* enum_value_; - ::google::protobuf::Any* object_value_; - ::google::api::expr::v1alpha1::MapValue* map_value_; - ::google::api::expr::v1alpha1::ListValue* list_value_; - ::google::protobuf::internal::ArenaStringPtr type_value_; - } kind_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t _oneof_case_[1]; - - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::MapValue_Entry > entries_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto; }; - // =================================================================== - - // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ -// ------------------------------------------------------------------- - // Value // .google.protobuf.NullValue null_value = 1 [json_name = "nullValue"]; -inline bool Value::has_null_value() const { +inline bool Value::_internal_has_null_value() const { return kind_case() == kNullValue; } +inline bool Value::has_null_value() const { + return _internal_has_null_value(); +} inline void Value::set_has_null_value() { - _impl_._oneof_case_[0] = kNullValue; + _oneof_case_[0] = kNullValue; } inline void Value::clear_null_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() == kNullValue) { - _impl_.kind_.null_value_ = 0; + if (_internal_has_null_value()) { + kind_.null_value_ = 0; clear_has_kind(); } } -inline ::google::protobuf::NullValue Value::null_value() const { +inline ::PROTOBUF_NAMESPACE_ID::NullValue Value::_internal_null_value() const { + if (_internal_has_null_value()) { + return static_cast< ::PROTOBUF_NAMESPACE_ID::NullValue >(kind_.null_value_); + } + return static_cast< ::PROTOBUF_NAMESPACE_ID::NullValue >(0); +} +inline ::PROTOBUF_NAMESPACE_ID::NullValue Value::null_value() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Value.null_value) return _internal_null_value(); } -inline void Value::set_null_value(::google::protobuf::NullValue value) { - _internal_set_null_value(value); - // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Value.null_value) -} -inline ::google::protobuf::NullValue Value::_internal_null_value() const { - if (kind_case() == kNullValue) { - return static_cast<::google::protobuf::NullValue>(_impl_.kind_.null_value_); - } - return static_cast<::google::protobuf::NullValue>(0); -} -inline void Value::_internal_set_null_value(::google::protobuf::NullValue value) { - if (kind_case() != kNullValue) { +inline void Value::_internal_set_null_value(::PROTOBUF_NAMESPACE_ID::NullValue value) { + if (!_internal_has_null_value()) { clear_kind(); set_has_null_value(); } - _impl_.kind_.null_value_ = value; + kind_.null_value_ = value; +} +inline void Value::set_null_value(::PROTOBUF_NAMESPACE_ID::NullValue value) { + _internal_set_null_value(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Value.null_value) } // bool bool_value = 2 [json_name = "boolValue"]; -inline bool Value::has_bool_value() const { +inline bool Value::_internal_has_bool_value() const { return kind_case() == kBoolValue; } +inline bool Value::has_bool_value() const { + return _internal_has_bool_value(); +} inline void Value::set_has_bool_value() { - _impl_._oneof_case_[0] = kBoolValue; + _oneof_case_[0] = kBoolValue; } inline void Value::clear_bool_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() == kBoolValue) { - _impl_.kind_.bool_value_ = false; + if (_internal_has_bool_value()) { + kind_.bool_value_ = false; clear_has_kind(); } } -inline bool Value::bool_value() const { - // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Value.bool_value) - return _internal_bool_value(); -} -inline void Value::set_bool_value(bool value) { - _internal_set_bool_value(value); - // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Value.bool_value) -} inline bool Value::_internal_bool_value() const { - if (kind_case() == kBoolValue) { - return _impl_.kind_.bool_value_; + if (_internal_has_bool_value()) { + return kind_.bool_value_; } return false; } inline void Value::_internal_set_bool_value(bool value) { - if (kind_case() != kBoolValue) { + if (!_internal_has_bool_value()) { clear_kind(); set_has_bool_value(); } - _impl_.kind_.bool_value_ = value; + kind_.bool_value_ = value; +} +inline bool Value::bool_value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Value.bool_value) + return _internal_bool_value(); +} +inline void Value::set_bool_value(bool value) { + _internal_set_bool_value(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Value.bool_value) } // int64 int64_value = 3 [json_name = "int64Value"]; -inline bool Value::has_int64_value() const { +inline bool Value::_internal_has_int64_value() const { return kind_case() == kInt64Value; } +inline bool Value::has_int64_value() const { + return _internal_has_int64_value(); +} inline void Value::set_has_int64_value() { - _impl_._oneof_case_[0] = kInt64Value; + _oneof_case_[0] = kInt64Value; } inline void Value::clear_int64_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() == kInt64Value) { - _impl_.kind_.int64_value_ = ::int64_t{0}; + if (_internal_has_int64_value()) { + kind_.int64_value_ = int64_t{0}; clear_has_kind(); } } -inline ::int64_t Value::int64_value() const { - // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Value.int64_value) - return _internal_int64_value(); -} -inline void Value::set_int64_value(::int64_t value) { - _internal_set_int64_value(value); - // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Value.int64_value) -} -inline ::int64_t Value::_internal_int64_value() const { - if (kind_case() == kInt64Value) { - return _impl_.kind_.int64_value_; +inline int64_t Value::_internal_int64_value() const { + if (_internal_has_int64_value()) { + return kind_.int64_value_; } - return ::int64_t{0}; + return int64_t{0}; } -inline void Value::_internal_set_int64_value(::int64_t value) { - if (kind_case() != kInt64Value) { +inline void Value::_internal_set_int64_value(int64_t value) { + if (!_internal_has_int64_value()) { clear_kind(); set_has_int64_value(); } - _impl_.kind_.int64_value_ = value; + kind_.int64_value_ = value; +} +inline int64_t Value::int64_value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Value.int64_value) + return _internal_int64_value(); +} +inline void Value::set_int64_value(int64_t value) { + _internal_set_int64_value(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Value.int64_value) } // uint64 uint64_value = 4 [json_name = "uint64Value"]; -inline bool Value::has_uint64_value() const { +inline bool Value::_internal_has_uint64_value() const { return kind_case() == kUint64Value; } +inline bool Value::has_uint64_value() const { + return _internal_has_uint64_value(); +} inline void Value::set_has_uint64_value() { - _impl_._oneof_case_[0] = kUint64Value; + _oneof_case_[0] = kUint64Value; } inline void Value::clear_uint64_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() == kUint64Value) { - _impl_.kind_.uint64_value_ = ::uint64_t{0u}; + if (_internal_has_uint64_value()) { + kind_.uint64_value_ = uint64_t{0u}; clear_has_kind(); } } -inline ::uint64_t Value::uint64_value() const { - // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Value.uint64_value) - return _internal_uint64_value(); -} -inline void Value::set_uint64_value(::uint64_t value) { - _internal_set_uint64_value(value); - // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Value.uint64_value) -} -inline ::uint64_t Value::_internal_uint64_value() const { - if (kind_case() == kUint64Value) { - return _impl_.kind_.uint64_value_; +inline uint64_t Value::_internal_uint64_value() const { + if (_internal_has_uint64_value()) { + return kind_.uint64_value_; } - return ::uint64_t{0u}; + return uint64_t{0u}; } -inline void Value::_internal_set_uint64_value(::uint64_t value) { - if (kind_case() != kUint64Value) { +inline void Value::_internal_set_uint64_value(uint64_t value) { + if (!_internal_has_uint64_value()) { clear_kind(); set_has_uint64_value(); } - _impl_.kind_.uint64_value_ = value; + kind_.uint64_value_ = value; +} +inline uint64_t Value::uint64_value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Value.uint64_value) + return _internal_uint64_value(); +} +inline void Value::set_uint64_value(uint64_t value) { + _internal_set_uint64_value(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Value.uint64_value) } // double double_value = 5 [json_name = "doubleValue"]; -inline bool Value::has_double_value() const { +inline bool Value::_internal_has_double_value() const { return kind_case() == kDoubleValue; } +inline bool Value::has_double_value() const { + return _internal_has_double_value(); +} inline void Value::set_has_double_value() { - _impl_._oneof_case_[0] = kDoubleValue; + _oneof_case_[0] = kDoubleValue; } inline void Value::clear_double_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() == kDoubleValue) { - _impl_.kind_.double_value_ = 0; + if (_internal_has_double_value()) { + kind_.double_value_ = 0; clear_has_kind(); } } -inline double Value::double_value() const { - // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Value.double_value) - return _internal_double_value(); -} -inline void Value::set_double_value(double value) { - _internal_set_double_value(value); - // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Value.double_value) -} inline double Value::_internal_double_value() const { - if (kind_case() == kDoubleValue) { - return _impl_.kind_.double_value_; + if (_internal_has_double_value()) { + return kind_.double_value_; } return 0; } inline void Value::_internal_set_double_value(double value) { - if (kind_case() != kDoubleValue) { + if (!_internal_has_double_value()) { clear_kind(); set_has_double_value(); } - _impl_.kind_.double_value_ = value; + kind_.double_value_ = value; +} +inline double Value::double_value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Value.double_value) + return _internal_double_value(); +} +inline void Value::set_double_value(double value) { + _internal_set_double_value(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Value.double_value) } // string string_value = 6 [json_name = "stringValue"]; -inline bool Value::has_string_value() const { +inline bool Value::_internal_has_string_value() const { return kind_case() == kStringValue; } +inline bool Value::has_string_value() const { + return _internal_has_string_value(); +} inline void Value::set_has_string_value() { - _impl_._oneof_case_[0] = kStringValue; + _oneof_case_[0] = kStringValue; } inline void Value::clear_string_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() == kStringValue) { - _impl_.kind_.string_value_.Destroy(); + if (_internal_has_string_value()) { + kind_.string_value_.Destroy(); clear_has_kind(); } } -inline const std::string& Value::string_value() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Value::string_value() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Value.string_value) return _internal_string_value(); } -template -inline PROTOBUF_ALWAYS_INLINE void Value::set_string_value(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() != kStringValue) { +template +inline void Value::set_string_value(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_string_value()) { clear_kind(); - set_has_string_value(); - _impl_.kind_.string_value_.InitDefault(); + kind_.string_value_.InitDefault(); } - _impl_.kind_.string_value_.Set(static_cast(arg), args..., GetArena()); + kind_.string_value_.Set( static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Value.string_value) } -inline std::string* Value::mutable_string_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Value::mutable_string_value() { std::string* _s = _internal_mutable_string_value(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Value.string_value) return _s; } inline const std::string& Value::_internal_string_value() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - if (kind_case() != kStringValue) { - return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); + if (_internal_has_string_value()) { + return kind_.string_value_.Get(); } - return _impl_.kind_.string_value_.Get(); + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } inline void Value::_internal_set_string_value(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() != kStringValue) { + if (!_internal_has_string_value()) { clear_kind(); - set_has_string_value(); - _impl_.kind_.string_value_.InitDefault(); + kind_.string_value_.InitDefault(); } - _impl_.kind_.string_value_.Set(value, GetArena()); + kind_.string_value_.Set(value, GetArenaForAllocation()); } inline std::string* Value::_internal_mutable_string_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() != kStringValue) { + if (!_internal_has_string_value()) { clear_kind(); - set_has_string_value(); - _impl_.kind_.string_value_.InitDefault(); + kind_.string_value_.InitDefault(); } - return _impl_.kind_.string_value_.Mutable( GetArena()); + return kind_.string_value_.Mutable( GetArenaForAllocation()); } inline std::string* Value::release_string_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Value.string_value) - if (kind_case() != kStringValue) { + if (_internal_has_string_value()) { + clear_has_kind(); + return kind_.string_value_.Release(); + } else { return nullptr; } - clear_has_kind(); - return _impl_.kind_.string_value_.Release(); } -inline void Value::set_allocated_string_value(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Value::set_allocated_string_value(std::string* string_value) { if (has_kind()) { clear_kind(); } - if (value != nullptr) { + if (string_value != nullptr) { set_has_string_value(); - _impl_.kind_.string_value_.InitAllocated(value, GetArena()); + kind_.string_value_.InitAllocated(string_value, GetArenaForAllocation()); } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Value.string_value) } // bytes bytes_value = 7 [json_name = "bytesValue"]; -inline bool Value::has_bytes_value() const { +inline bool Value::_internal_has_bytes_value() const { return kind_case() == kBytesValue; } +inline bool Value::has_bytes_value() const { + return _internal_has_bytes_value(); +} inline void Value::set_has_bytes_value() { - _impl_._oneof_case_[0] = kBytesValue; + _oneof_case_[0] = kBytesValue; } inline void Value::clear_bytes_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() == kBytesValue) { - _impl_.kind_.bytes_value_.Destroy(); + if (_internal_has_bytes_value()) { + kind_.bytes_value_.Destroy(); clear_has_kind(); } } -inline const std::string& Value::bytes_value() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Value::bytes_value() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Value.bytes_value) return _internal_bytes_value(); } -template -inline PROTOBUF_ALWAYS_INLINE void Value::set_bytes_value(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() != kBytesValue) { +template +inline void Value::set_bytes_value(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_bytes_value()) { clear_kind(); - set_has_bytes_value(); - _impl_.kind_.bytes_value_.InitDefault(); + kind_.bytes_value_.InitDefault(); } - _impl_.kind_.bytes_value_.SetBytes(static_cast(arg), args..., GetArena()); + kind_.bytes_value_.SetBytes( static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Value.bytes_value) } -inline std::string* Value::mutable_bytes_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Value::mutable_bytes_value() { std::string* _s = _internal_mutable_bytes_value(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Value.bytes_value) return _s; } inline const std::string& Value::_internal_bytes_value() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - if (kind_case() != kBytesValue) { - return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); + if (_internal_has_bytes_value()) { + return kind_.bytes_value_.Get(); } - return _impl_.kind_.bytes_value_.Get(); + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } inline void Value::_internal_set_bytes_value(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() != kBytesValue) { + if (!_internal_has_bytes_value()) { clear_kind(); - set_has_bytes_value(); - _impl_.kind_.bytes_value_.InitDefault(); + kind_.bytes_value_.InitDefault(); } - _impl_.kind_.bytes_value_.Set(value, GetArena()); + kind_.bytes_value_.Set(value, GetArenaForAllocation()); } inline std::string* Value::_internal_mutable_bytes_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() != kBytesValue) { + if (!_internal_has_bytes_value()) { clear_kind(); - set_has_bytes_value(); - _impl_.kind_.bytes_value_.InitDefault(); + kind_.bytes_value_.InitDefault(); } - return _impl_.kind_.bytes_value_.Mutable( GetArena()); + return kind_.bytes_value_.Mutable( GetArenaForAllocation()); } inline std::string* Value::release_bytes_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Value.bytes_value) - if (kind_case() != kBytesValue) { + if (_internal_has_bytes_value()) { + clear_has_kind(); + return kind_.bytes_value_.Release(); + } else { return nullptr; } - clear_has_kind(); - return _impl_.kind_.bytes_value_.Release(); } -inline void Value::set_allocated_bytes_value(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Value::set_allocated_bytes_value(std::string* bytes_value) { if (has_kind()) { clear_kind(); } - if (value != nullptr) { + if (bytes_value != nullptr) { set_has_bytes_value(); - _impl_.kind_.bytes_value_.InitAllocated(value, GetArena()); + kind_.bytes_value_.InitAllocated(bytes_value, GetArenaForAllocation()); } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Value.bytes_value) } // .google.api.expr.v1alpha1.EnumValue enum_value = 9 [json_name = "enumValue"]; -inline bool Value::has_enum_value() const { - return kind_case() == kEnumValue; -} inline bool Value::_internal_has_enum_value() const { return kind_case() == kEnumValue; } +inline bool Value::has_enum_value() const { + return _internal_has_enum_value(); +} inline void Value::set_has_enum_value() { - _impl_._oneof_case_[0] = kEnumValue; + _oneof_case_[0] = kEnumValue; } inline void Value::clear_enum_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() == kEnumValue) { - if (GetArena() == nullptr) { - delete _impl_.kind_.enum_value_; + if (_internal_has_enum_value()) { + if (GetArenaForAllocation() == nullptr) { + delete kind_.enum_value_; } clear_has_kind(); } } inline ::google::api::expr::v1alpha1::EnumValue* Value::release_enum_value() { // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Value.enum_value) - if (kind_case() == kEnumValue) { + if (_internal_has_enum_value()) { clear_has_kind(); - auto* temp = _impl_.kind_.enum_value_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::google::api::expr::v1alpha1::EnumValue* temp = kind_.enum_value_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.kind_.enum_value_ = nullptr; + kind_.enum_value_ = nullptr; return temp; } else { return nullptr; } } inline const ::google::api::expr::v1alpha1::EnumValue& Value::_internal_enum_value() const { - return kind_case() == kEnumValue ? *_impl_.kind_.enum_value_ : reinterpret_cast<::google::api::expr::v1alpha1::EnumValue&>(::google::api::expr::v1alpha1::_EnumValue_default_instance_); + return _internal_has_enum_value() + ? *kind_.enum_value_ + : reinterpret_cast< ::google::api::expr::v1alpha1::EnumValue&>(::google::api::expr::v1alpha1::_EnumValue_default_instance_); } -inline const ::google::api::expr::v1alpha1::EnumValue& Value::enum_value() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::EnumValue& Value::enum_value() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Value.enum_value) return _internal_enum_value(); } inline ::google::api::expr::v1alpha1::EnumValue* Value::unsafe_arena_release_enum_value() { // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1alpha1.Value.enum_value) - if (kind_case() == kEnumValue) { + if (_internal_has_enum_value()) { clear_has_kind(); - auto* temp = _impl_.kind_.enum_value_; - _impl_.kind_.enum_value_ = nullptr; + ::google::api::expr::v1alpha1::EnumValue* temp = kind_.enum_value_; + kind_.enum_value_ = nullptr; return temp; } else { return nullptr; } } -inline void Value::unsafe_arena_set_allocated_enum_value(::google::api::expr::v1alpha1::EnumValue* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void Value::unsafe_arena_set_allocated_enum_value(::google::api::expr::v1alpha1::EnumValue* enum_value) { clear_kind(); - if (value) { + if (enum_value) { set_has_enum_value(); - _impl_.kind_.enum_value_ = value; + kind_.enum_value_ = enum_value; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Value.enum_value) } inline ::google::api::expr::v1alpha1::EnumValue* Value::_internal_mutable_enum_value() { - if (kind_case() != kEnumValue) { + if (!_internal_has_enum_value()) { clear_kind(); set_has_enum_value(); - _impl_.kind_.enum_value_ = CreateMaybeMessage<::google::api::expr::v1alpha1::EnumValue>(GetArena()); + kind_.enum_value_ = CreateMaybeMessage< ::google::api::expr::v1alpha1::EnumValue >(GetArenaForAllocation()); } - return _impl_.kind_.enum_value_; + return kind_.enum_value_; } -inline ::google::api::expr::v1alpha1::EnumValue* Value::mutable_enum_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::EnumValue* Value::mutable_enum_value() { ::google::api::expr::v1alpha1::EnumValue* _msg = _internal_mutable_enum_value(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Value.enum_value) return _msg; } // .google.protobuf.Any object_value = 10 [json_name = "objectValue"]; -inline bool Value::has_object_value() const { - return kind_case() == kObjectValue; -} inline bool Value::_internal_has_object_value() const { return kind_case() == kObjectValue; } +inline bool Value::has_object_value() const { + return _internal_has_object_value(); +} inline void Value::set_has_object_value() { - _impl_._oneof_case_[0] = kObjectValue; + _oneof_case_[0] = kObjectValue; } -inline ::google::protobuf::Any* Value::release_object_value() { +inline ::PROTOBUF_NAMESPACE_ID::Any* Value::release_object_value() { // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Value.object_value) - if (kind_case() == kObjectValue) { + if (_internal_has_object_value()) { clear_has_kind(); - auto* temp = _impl_.kind_.object_value_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::PROTOBUF_NAMESPACE_ID::Any* temp = kind_.object_value_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.kind_.object_value_ = nullptr; + kind_.object_value_ = nullptr; return temp; } else { return nullptr; } } -inline const ::google::protobuf::Any& Value::_internal_object_value() const { - return kind_case() == kObjectValue ? *_impl_.kind_.object_value_ : reinterpret_cast<::google::protobuf::Any&>(::google::protobuf::_Any_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Any& Value::_internal_object_value() const { + return _internal_has_object_value() + ? *kind_.object_value_ + : reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::Any&>(::PROTOBUF_NAMESPACE_ID::_Any_default_instance_); } -inline const ::google::protobuf::Any& Value::object_value() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Any& Value::object_value() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Value.object_value) return _internal_object_value(); } -inline ::google::protobuf::Any* Value::unsafe_arena_release_object_value() { +inline ::PROTOBUF_NAMESPACE_ID::Any* Value::unsafe_arena_release_object_value() { // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1alpha1.Value.object_value) - if (kind_case() == kObjectValue) { + if (_internal_has_object_value()) { clear_has_kind(); - auto* temp = _impl_.kind_.object_value_; - _impl_.kind_.object_value_ = nullptr; + ::PROTOBUF_NAMESPACE_ID::Any* temp = kind_.object_value_; + kind_.object_value_ = nullptr; return temp; } else { return nullptr; } } -inline void Value::unsafe_arena_set_allocated_object_value(::google::protobuf::Any* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void Value::unsafe_arena_set_allocated_object_value(::PROTOBUF_NAMESPACE_ID::Any* object_value) { clear_kind(); - if (value) { + if (object_value) { set_has_object_value(); - _impl_.kind_.object_value_ = value; + kind_.object_value_ = object_value; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Value.object_value) } -inline ::google::protobuf::Any* Value::_internal_mutable_object_value() { - if (kind_case() != kObjectValue) { +inline ::PROTOBUF_NAMESPACE_ID::Any* Value::_internal_mutable_object_value() { + if (!_internal_has_object_value()) { clear_kind(); set_has_object_value(); - _impl_.kind_.object_value_ = CreateMaybeMessage<::google::protobuf::Any>(GetArena()); + kind_.object_value_ = CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::Any >(GetArenaForAllocation()); } - return _impl_.kind_.object_value_; + return kind_.object_value_; } -inline ::google::protobuf::Any* Value::mutable_object_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Any* _msg = _internal_mutable_object_value(); +inline ::PROTOBUF_NAMESPACE_ID::Any* Value::mutable_object_value() { + ::PROTOBUF_NAMESPACE_ID::Any* _msg = _internal_mutable_object_value(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Value.object_value) return _msg; } // .google.api.expr.v1alpha1.MapValue map_value = 11 [json_name = "mapValue"]; -inline bool Value::has_map_value() const { - return kind_case() == kMapValue; -} inline bool Value::_internal_has_map_value() const { return kind_case() == kMapValue; } +inline bool Value::has_map_value() const { + return _internal_has_map_value(); +} inline void Value::set_has_map_value() { - _impl_._oneof_case_[0] = kMapValue; + _oneof_case_[0] = kMapValue; } inline void Value::clear_map_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() == kMapValue) { - if (GetArena() == nullptr) { - delete _impl_.kind_.map_value_; + if (_internal_has_map_value()) { + if (GetArenaForAllocation() == nullptr) { + delete kind_.map_value_; } clear_has_kind(); } } inline ::google::api::expr::v1alpha1::MapValue* Value::release_map_value() { // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Value.map_value) - if (kind_case() == kMapValue) { + if (_internal_has_map_value()) { clear_has_kind(); - auto* temp = _impl_.kind_.map_value_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::google::api::expr::v1alpha1::MapValue* temp = kind_.map_value_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.kind_.map_value_ = nullptr; + kind_.map_value_ = nullptr; return temp; } else { return nullptr; } } inline const ::google::api::expr::v1alpha1::MapValue& Value::_internal_map_value() const { - return kind_case() == kMapValue ? *_impl_.kind_.map_value_ : reinterpret_cast<::google::api::expr::v1alpha1::MapValue&>(::google::api::expr::v1alpha1::_MapValue_default_instance_); + return _internal_has_map_value() + ? *kind_.map_value_ + : reinterpret_cast< ::google::api::expr::v1alpha1::MapValue&>(::google::api::expr::v1alpha1::_MapValue_default_instance_); } -inline const ::google::api::expr::v1alpha1::MapValue& Value::map_value() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::MapValue& Value::map_value() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Value.map_value) return _internal_map_value(); } inline ::google::api::expr::v1alpha1::MapValue* Value::unsafe_arena_release_map_value() { // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1alpha1.Value.map_value) - if (kind_case() == kMapValue) { + if (_internal_has_map_value()) { clear_has_kind(); - auto* temp = _impl_.kind_.map_value_; - _impl_.kind_.map_value_ = nullptr; + ::google::api::expr::v1alpha1::MapValue* temp = kind_.map_value_; + kind_.map_value_ = nullptr; return temp; } else { return nullptr; } } -inline void Value::unsafe_arena_set_allocated_map_value(::google::api::expr::v1alpha1::MapValue* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void Value::unsafe_arena_set_allocated_map_value(::google::api::expr::v1alpha1::MapValue* map_value) { clear_kind(); - if (value) { + if (map_value) { set_has_map_value(); - _impl_.kind_.map_value_ = value; + kind_.map_value_ = map_value; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Value.map_value) } inline ::google::api::expr::v1alpha1::MapValue* Value::_internal_mutable_map_value() { - if (kind_case() != kMapValue) { + if (!_internal_has_map_value()) { clear_kind(); set_has_map_value(); - _impl_.kind_.map_value_ = CreateMaybeMessage<::google::api::expr::v1alpha1::MapValue>(GetArena()); + kind_.map_value_ = CreateMaybeMessage< ::google::api::expr::v1alpha1::MapValue >(GetArenaForAllocation()); } - return _impl_.kind_.map_value_; + return kind_.map_value_; } -inline ::google::api::expr::v1alpha1::MapValue* Value::mutable_map_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::MapValue* Value::mutable_map_value() { ::google::api::expr::v1alpha1::MapValue* _msg = _internal_mutable_map_value(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Value.map_value) return _msg; } // .google.api.expr.v1alpha1.ListValue list_value = 12 [json_name = "listValue"]; -inline bool Value::has_list_value() const { - return kind_case() == kListValue; -} inline bool Value::_internal_has_list_value() const { return kind_case() == kListValue; } +inline bool Value::has_list_value() const { + return _internal_has_list_value(); +} inline void Value::set_has_list_value() { - _impl_._oneof_case_[0] = kListValue; + _oneof_case_[0] = kListValue; } inline void Value::clear_list_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() == kListValue) { - if (GetArena() == nullptr) { - delete _impl_.kind_.list_value_; + if (_internal_has_list_value()) { + if (GetArenaForAllocation() == nullptr) { + delete kind_.list_value_; } clear_has_kind(); } } inline ::google::api::expr::v1alpha1::ListValue* Value::release_list_value() { // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Value.list_value) - if (kind_case() == kListValue) { + if (_internal_has_list_value()) { clear_has_kind(); - auto* temp = _impl_.kind_.list_value_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::google::api::expr::v1alpha1::ListValue* temp = kind_.list_value_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.kind_.list_value_ = nullptr; + kind_.list_value_ = nullptr; return temp; } else { return nullptr; } } inline const ::google::api::expr::v1alpha1::ListValue& Value::_internal_list_value() const { - return kind_case() == kListValue ? *_impl_.kind_.list_value_ : reinterpret_cast<::google::api::expr::v1alpha1::ListValue&>(::google::api::expr::v1alpha1::_ListValue_default_instance_); + return _internal_has_list_value() + ? *kind_.list_value_ + : reinterpret_cast< ::google::api::expr::v1alpha1::ListValue&>(::google::api::expr::v1alpha1::_ListValue_default_instance_); } -inline const ::google::api::expr::v1alpha1::ListValue& Value::list_value() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::ListValue& Value::list_value() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Value.list_value) return _internal_list_value(); } inline ::google::api::expr::v1alpha1::ListValue* Value::unsafe_arena_release_list_value() { // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1alpha1.Value.list_value) - if (kind_case() == kListValue) { + if (_internal_has_list_value()) { clear_has_kind(); - auto* temp = _impl_.kind_.list_value_; - _impl_.kind_.list_value_ = nullptr; + ::google::api::expr::v1alpha1::ListValue* temp = kind_.list_value_; + kind_.list_value_ = nullptr; return temp; } else { return nullptr; } } -inline void Value::unsafe_arena_set_allocated_list_value(::google::api::expr::v1alpha1::ListValue* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void Value::unsafe_arena_set_allocated_list_value(::google::api::expr::v1alpha1::ListValue* list_value) { clear_kind(); - if (value) { + if (list_value) { set_has_list_value(); - _impl_.kind_.list_value_ = value; + kind_.list_value_ = list_value; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.Value.list_value) } inline ::google::api::expr::v1alpha1::ListValue* Value::_internal_mutable_list_value() { - if (kind_case() != kListValue) { + if (!_internal_has_list_value()) { clear_kind(); set_has_list_value(); - _impl_.kind_.list_value_ = CreateMaybeMessage<::google::api::expr::v1alpha1::ListValue>(GetArena()); + kind_.list_value_ = CreateMaybeMessage< ::google::api::expr::v1alpha1::ListValue >(GetArenaForAllocation()); } - return _impl_.kind_.list_value_; + return kind_.list_value_; } -inline ::google::api::expr::v1alpha1::ListValue* Value::mutable_list_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::ListValue* Value::mutable_list_value() { ::google::api::expr::v1alpha1::ListValue* _msg = _internal_mutable_list_value(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Value.list_value) return _msg; } // string type_value = 15 [json_name = "typeValue"]; -inline bool Value::has_type_value() const { +inline bool Value::_internal_has_type_value() const { return kind_case() == kTypeValue; } +inline bool Value::has_type_value() const { + return _internal_has_type_value(); +} inline void Value::set_has_type_value() { - _impl_._oneof_case_[0] = kTypeValue; + _oneof_case_[0] = kTypeValue; } inline void Value::clear_type_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() == kTypeValue) { - _impl_.kind_.type_value_.Destroy(); + if (_internal_has_type_value()) { + kind_.type_value_.Destroy(); clear_has_kind(); } } -inline const std::string& Value::type_value() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Value::type_value() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.Value.type_value) return _internal_type_value(); } -template -inline PROTOBUF_ALWAYS_INLINE void Value::set_type_value(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() != kTypeValue) { +template +inline void Value::set_type_value(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_type_value()) { clear_kind(); - set_has_type_value(); - _impl_.kind_.type_value_.InitDefault(); + kind_.type_value_.InitDefault(); } - _impl_.kind_.type_value_.Set(static_cast(arg), args..., GetArena()); + kind_.type_value_.Set( static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.Value.type_value) } -inline std::string* Value::mutable_type_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Value::mutable_type_value() { std::string* _s = _internal_mutable_type_value(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.Value.type_value) return _s; } inline const std::string& Value::_internal_type_value() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - if (kind_case() != kTypeValue) { - return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); + if (_internal_has_type_value()) { + return kind_.type_value_.Get(); } - return _impl_.kind_.type_value_.Get(); + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } inline void Value::_internal_set_type_value(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() != kTypeValue) { + if (!_internal_has_type_value()) { clear_kind(); - set_has_type_value(); - _impl_.kind_.type_value_.InitDefault(); + kind_.type_value_.InitDefault(); } - _impl_.kind_.type_value_.Set(value, GetArena()); + kind_.type_value_.Set(value, GetArenaForAllocation()); } inline std::string* Value::_internal_mutable_type_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() != kTypeValue) { + if (!_internal_has_type_value()) { clear_kind(); - set_has_type_value(); - _impl_.kind_.type_value_.InitDefault(); + kind_.type_value_.InitDefault(); } - return _impl_.kind_.type_value_.Mutable( GetArena()); + return kind_.type_value_.Mutable( GetArenaForAllocation()); } inline std::string* Value::release_type_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.Value.type_value) - if (kind_case() != kTypeValue) { + if (_internal_has_type_value()) { + clear_has_kind(); + return kind_.type_value_.Release(); + } else { return nullptr; } - clear_has_kind(); - return _impl_.kind_.type_value_.Release(); } -inline void Value::set_allocated_type_value(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Value::set_allocated_type_value(std::string* type_value) { if (has_kind()) { clear_kind(); } - if (value != nullptr) { + if (type_value != nullptr) { set_has_type_value(); - _impl_.kind_.type_value_.InitAllocated(value, GetArena()); + kind_.type_value_.InitAllocated(type_value, GetArenaForAllocation()); } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.Value.type_value) } @@ -2010,10 +1828,10 @@ inline bool Value::has_kind() const { return kind_case() != KIND_NOT_SET; } inline void Value::clear_has_kind() { - _impl_._oneof_case_[0] = KIND_NOT_SET; + _oneof_case_[0] = KIND_NOT_SET; } inline Value::KindCase Value::kind_case() const { - return Value::KindCase(_impl_._oneof_case_[0]); + return Value::KindCase(_oneof_case_[0]); } // ------------------------------------------------------------------- @@ -2021,79 +1839,73 @@ inline Value::KindCase Value::kind_case() const { // string type = 1 [json_name = "type"]; inline void EnumValue::clear_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_.ClearToEmpty(); + type_.ClearToEmpty(); } -inline const std::string& EnumValue::type() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& EnumValue::type() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.EnumValue.type) return _internal_type(); } -template -inline PROTOBUF_ALWAYS_INLINE void EnumValue::set_type(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.type_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void EnumValue::set_type(ArgT0&& arg0, ArgT... args) { + + type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.EnumValue.type) } -inline std::string* EnumValue::mutable_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* EnumValue::mutable_type() { std::string* _s = _internal_mutable_type(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.EnumValue.type) return _s; } inline const std::string& EnumValue::_internal_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.type_.Get(); + return type_.Get(); } inline void EnumValue::_internal_set_type(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.type_.Set(value, GetArena()); + + type_.Set(value, GetArenaForAllocation()); } inline std::string* EnumValue::_internal_mutable_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.type_.Mutable( GetArena()); + + return type_.Mutable(GetArenaForAllocation()); } inline std::string* EnumValue::release_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.EnumValue.type) - return _impl_.type_.Release(); -} -inline void EnumValue::set_allocated_type(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.type_.IsDefault()) { - _impl_.type_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return type_.Release(); +} +inline void EnumValue::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:google.api.expr.v1alpha1.EnumValue.type) } // int32 value = 2 [json_name = "value"]; inline void EnumValue::clear_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.value_ = 0; + value_ = 0; +} +inline int32_t EnumValue::_internal_value() const { + return value_; } -inline ::int32_t EnumValue::value() const { +inline int32_t EnumValue::value() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.EnumValue.value) return _internal_value(); } -inline void EnumValue::set_value(::int32_t value) { +inline void EnumValue::_internal_set_value(int32_t value) { + + value_ = value; +} +inline void EnumValue::set_value(int32_t value) { _internal_set_value(value); // @@protoc_insertion_point(field_set:google.api.expr.v1alpha1.EnumValue.value) } -inline ::int32_t EnumValue::_internal_value() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.value_; -} -inline void EnumValue::_internal_set_value(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.value_ = value; -} // ------------------------------------------------------------------- @@ -2101,51 +1913,42 @@ inline void EnumValue::_internal_set_value(::int32_t value) { // repeated .google.api.expr.v1alpha1.Value values = 1 [json_name = "values"]; inline int ListValue::_internal_values_size() const { - return _internal_values().size(); + return values_.size(); } inline int ListValue::values_size() const { return _internal_values_size(); } inline void ListValue::clear_values() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.values_.Clear(); + values_.Clear(); } -inline ::google::api::expr::v1alpha1::Value* ListValue::mutable_values(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::Value* ListValue::mutable_values(int index) { // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.ListValue.values) - return _internal_mutable_values()->Mutable(index); + return values_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Value>* ListValue::mutable_values() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Value >* +ListValue::mutable_values() { // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1alpha1.ListValue.values) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_values(); + return &values_; +} +inline const ::google::api::expr::v1alpha1::Value& ListValue::_internal_values(int index) const { + return values_.Get(index); } -inline const ::google::api::expr::v1alpha1::Value& ListValue::values(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::Value& ListValue::values(int index) const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.ListValue.values) - return _internal_values().Get(index); + return _internal_values(index); } -inline ::google::api::expr::v1alpha1::Value* ListValue::add_values() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::google::api::expr::v1alpha1::Value* _add = _internal_mutable_values()->Add(); +inline ::google::api::expr::v1alpha1::Value* ListValue::_internal_add_values() { + return values_.Add(); +} +inline ::google::api::expr::v1alpha1::Value* ListValue::add_values() { + ::google::api::expr::v1alpha1::Value* _add = _internal_add_values(); // @@protoc_insertion_point(field_add:google.api.expr.v1alpha1.ListValue.values) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Value>& ListValue::values() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::Value >& +ListValue::values() const { // @@protoc_insertion_point(field_list:google.api.expr.v1alpha1.ListValue.values) - return _internal_values(); -} -inline const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Value>& -ListValue::_internal_values() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.values_; -} -inline ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::Value>* -ListValue::_internal_mutable_values() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.values_; + return values_; } // ------------------------------------------------------------------- @@ -2153,194 +1956,182 @@ ListValue::_internal_mutable_values() { // MapValue_Entry // .google.api.expr.v1alpha1.Value key = 1 [json_name = "key"]; +inline bool MapValue_Entry::_internal_has_key() const { + return this != internal_default_instance() && key_ != nullptr; +} inline bool MapValue_Entry::has_key() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.key_ != nullptr); - return value; + return _internal_has_key(); } inline void MapValue_Entry::clear_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.key_ != nullptr) _impl_.key_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && key_ != nullptr) { + delete key_; + } + key_ = nullptr; } inline const ::google::api::expr::v1alpha1::Value& MapValue_Entry::_internal_key() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::expr::v1alpha1::Value* p = _impl_.key_; - return p != nullptr ? *p : reinterpret_cast(::google::api::expr::v1alpha1::_Value_default_instance_); + const ::google::api::expr::v1alpha1::Value* p = key_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1alpha1::_Value_default_instance_); } -inline const ::google::api::expr::v1alpha1::Value& MapValue_Entry::key() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::Value& MapValue_Entry::key() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.MapValue.Entry.key) return _internal_key(); } -inline void MapValue_Entry::unsafe_arena_set_allocated_key(::google::api::expr::v1alpha1::Value* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.key_); +inline void MapValue_Entry::unsafe_arena_set_allocated_key( + ::google::api::expr::v1alpha1::Value* key) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(key_); } - _impl_.key_ = reinterpret_cast<::google::api::expr::v1alpha1::Value*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + key_ = key; + if (key) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.MapValue.Entry.key) } inline ::google::api::expr::v1alpha1::Value* MapValue_Entry::release_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::expr::v1alpha1::Value* released = _impl_.key_; - _impl_.key_ = nullptr; + + ::google::api::expr::v1alpha1::Value* temp = key_; + key_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::expr::v1alpha1::Value* MapValue_Entry::unsafe_arena_release_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.MapValue.Entry.key) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::expr::v1alpha1::Value* temp = _impl_.key_; - _impl_.key_ = nullptr; + + ::google::api::expr::v1alpha1::Value* temp = key_; + key_ = nullptr; return temp; } inline ::google::api::expr::v1alpha1::Value* MapValue_Entry::_internal_mutable_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.key_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Value>(GetArena()); - _impl_.key_ = reinterpret_cast<::google::api::expr::v1alpha1::Value*>(p); + + if (key_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Value>(GetArenaForAllocation()); + key_ = p; } - return _impl_.key_; + return key_; } -inline ::google::api::expr::v1alpha1::Value* MapValue_Entry::mutable_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::Value* MapValue_Entry::mutable_key() { ::google::api::expr::v1alpha1::Value* _msg = _internal_mutable_key(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.MapValue.Entry.key) return _msg; } -inline void MapValue_Entry::set_allocated_key(::google::api::expr::v1alpha1::Value* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void MapValue_Entry::set_allocated_key(::google::api::expr::v1alpha1::Value* key) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::api::expr::v1alpha1::Value*>(_impl_.key_); + delete key_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::api::expr::v1alpha1::Value*>(value)->GetArena(); + if (key) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(key); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + key = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, key, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.key_ = reinterpret_cast<::google::api::expr::v1alpha1::Value*>(value); + key_ = key; // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.MapValue.Entry.key) } // .google.api.expr.v1alpha1.Value value = 2 [json_name = "value"]; +inline bool MapValue_Entry::_internal_has_value() const { + return this != internal_default_instance() && value_ != nullptr; +} inline bool MapValue_Entry::has_value() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.value_ != nullptr); - return value; + return _internal_has_value(); } inline void MapValue_Entry::clear_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.value_ != nullptr) _impl_.value_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && value_ != nullptr) { + delete value_; + } + value_ = nullptr; } inline const ::google::api::expr::v1alpha1::Value& MapValue_Entry::_internal_value() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::expr::v1alpha1::Value* p = _impl_.value_; - return p != nullptr ? *p : reinterpret_cast(::google::api::expr::v1alpha1::_Value_default_instance_); + const ::google::api::expr::v1alpha1::Value* p = value_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1alpha1::_Value_default_instance_); } -inline const ::google::api::expr::v1alpha1::Value& MapValue_Entry::value() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::Value& MapValue_Entry::value() const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.MapValue.Entry.value) return _internal_value(); } -inline void MapValue_Entry::unsafe_arena_set_allocated_value(::google::api::expr::v1alpha1::Value* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.value_); +inline void MapValue_Entry::unsafe_arena_set_allocated_value( + ::google::api::expr::v1alpha1::Value* value) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(value_); } - _impl_.value_ = reinterpret_cast<::google::api::expr::v1alpha1::Value*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + value_ = value; + if (value) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1alpha1.MapValue.Entry.value) } inline ::google::api::expr::v1alpha1::Value* MapValue_Entry::release_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::api::expr::v1alpha1::Value* released = _impl_.value_; - _impl_.value_ = nullptr; + + ::google::api::expr::v1alpha1::Value* temp = value_; + value_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::expr::v1alpha1::Value* MapValue_Entry::unsafe_arena_release_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1alpha1.MapValue.Entry.value) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::api::expr::v1alpha1::Value* temp = _impl_.value_; - _impl_.value_ = nullptr; + + ::google::api::expr::v1alpha1::Value* temp = value_; + value_ = nullptr; return temp; } inline ::google::api::expr::v1alpha1::Value* MapValue_Entry::_internal_mutable_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.value_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Value>(GetArena()); - _impl_.value_ = reinterpret_cast<::google::api::expr::v1alpha1::Value*>(p); + + if (value_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1alpha1::Value>(GetArenaForAllocation()); + value_ = p; } - return _impl_.value_; + return value_; } -inline ::google::api::expr::v1alpha1::Value* MapValue_Entry::mutable_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::Value* MapValue_Entry::mutable_value() { ::google::api::expr::v1alpha1::Value* _msg = _internal_mutable_value(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.MapValue.Entry.value) return _msg; } inline void MapValue_Entry::set_allocated_value(::google::api::expr::v1alpha1::Value* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::api::expr::v1alpha1::Value*>(_impl_.value_); + delete value_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::api::expr::v1alpha1::Value*>(value)->GetArena(); + if (value) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(value); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, value, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.value_ = reinterpret_cast<::google::api::expr::v1alpha1::Value*>(value); + value_ = value; // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1alpha1.MapValue.Entry.value) } @@ -2350,66 +2141,64 @@ inline void MapValue_Entry::set_allocated_value(::google::api::expr::v1alpha1::V // repeated .google.api.expr.v1alpha1.MapValue.Entry entries = 1 [json_name = "entries"]; inline int MapValue::_internal_entries_size() const { - return _internal_entries().size(); + return entries_.size(); } inline int MapValue::entries_size() const { return _internal_entries_size(); } inline void MapValue::clear_entries() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.entries_.Clear(); + entries_.Clear(); } -inline ::google::api::expr::v1alpha1::MapValue_Entry* MapValue::mutable_entries(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1alpha1::MapValue_Entry* MapValue::mutable_entries(int index) { // @@protoc_insertion_point(field_mutable:google.api.expr.v1alpha1.MapValue.entries) - return _internal_mutable_entries()->Mutable(index); + return entries_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::MapValue_Entry>* MapValue::mutable_entries() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::MapValue_Entry >* +MapValue::mutable_entries() { // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1alpha1.MapValue.entries) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_entries(); + return &entries_; +} +inline const ::google::api::expr::v1alpha1::MapValue_Entry& MapValue::_internal_entries(int index) const { + return entries_.Get(index); } -inline const ::google::api::expr::v1alpha1::MapValue_Entry& MapValue::entries(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1alpha1::MapValue_Entry& MapValue::entries(int index) const { // @@protoc_insertion_point(field_get:google.api.expr.v1alpha1.MapValue.entries) - return _internal_entries().Get(index); + return _internal_entries(index); } -inline ::google::api::expr::v1alpha1::MapValue_Entry* MapValue::add_entries() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::google::api::expr::v1alpha1::MapValue_Entry* _add = _internal_mutable_entries()->Add(); +inline ::google::api::expr::v1alpha1::MapValue_Entry* MapValue::_internal_add_entries() { + return entries_.Add(); +} +inline ::google::api::expr::v1alpha1::MapValue_Entry* MapValue::add_entries() { + ::google::api::expr::v1alpha1::MapValue_Entry* _add = _internal_add_entries(); // @@protoc_insertion_point(field_add:google.api.expr.v1alpha1.MapValue.entries) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::MapValue_Entry>& MapValue::entries() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1alpha1::MapValue_Entry >& +MapValue::entries() const { // @@protoc_insertion_point(field_list:google.api.expr.v1alpha1.MapValue.entries) - return _internal_entries(); -} -inline const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::MapValue_Entry>& -MapValue::_internal_entries() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.entries_; -} -inline ::google::protobuf::RepeatedPtrField<::google::api::expr::v1alpha1::MapValue_Entry>* -MapValue::_internal_mutable_entries() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.entries_; + return entries_; } #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) + } // namespace v1alpha1 } // namespace expr } // namespace api } // namespace google - // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1alpha1_2fvalue_2eproto diff --git a/src/viam/api/google/api/expr/v1beta1/decl.grpc.pb.cc b/src/viam/api/google/api/expr/v1beta1/decl.grpc.pb.cc index e6d62d1d0..42e91e261 100644 --- a/src/viam/api/google/api/expr/v1beta1/decl.grpc.pb.cc +++ b/src/viam/api/google/api/expr/v1beta1/decl.grpc.pb.cc @@ -6,19 +6,19 @@ #include "google/api/expr/v1beta1/decl.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace google { namespace api { namespace expr { diff --git a/src/viam/api/google/api/expr/v1beta1/decl.grpc.pb.h b/src/viam/api/google/api/expr/v1beta1/decl.grpc.pb.h index 7435f213c..86fb0f711 100644 --- a/src/viam/api/google/api/expr/v1beta1/decl.grpc.pb.h +++ b/src/viam/api/google/api/expr/v1beta1/decl.grpc.pb.h @@ -23,23 +23,24 @@ #include "google/api/expr/v1beta1/decl.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace google { namespace api { diff --git a/src/viam/api/google/api/expr/v1beta1/decl.pb.cc b/src/viam/api/google/api/expr/v1beta1/decl.pb.cc index 133bdb998..946106392 100644 --- a/src/viam/api/google/api/expr/v1beta1/decl.pb.cc +++ b/src/viam/api/google/api/expr/v1beta1/decl.pb.cc @@ -4,386 +4,326 @@ #include "google/api/expr/v1beta1/decl.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace google { namespace api { namespace expr { namespace v1beta1 { - -inline constexpr DeclType::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : type_params_{}, - type_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - id_{0}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR DeclType::DeclType(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_CONSTEXPR Decl::Decl( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , doc_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , id_(0) + , _oneof_case_{}{} +struct DeclDefaultTypeInternal { + PROTOBUF_CONSTEXPR DeclDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DeclDefaultTypeInternal() {} + union { + Decl _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeclDefaultTypeInternal _Decl_default_instance_; +PROTOBUF_CONSTEXPR DeclType::DeclType( + ::_pbi::ConstantInitialized) + : type_params_() + , type_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , id_(0){} struct DeclTypeDefaultTypeInternal { - PROTOBUF_CONSTEXPR DeclTypeDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR DeclTypeDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~DeclTypeDefaultTypeInternal() {} union { DeclType _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeclTypeDefaultTypeInternal _DeclType_default_instance_; - -inline constexpr IdentDecl::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - type_{nullptr}, - value_{nullptr} {} - -template -PROTOBUF_CONSTEXPR IdentDecl::IdentDecl(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeclTypeDefaultTypeInternal _DeclType_default_instance_; +PROTOBUF_CONSTEXPR IdentDecl::IdentDecl( + ::_pbi::ConstantInitialized) + : type_(nullptr) + , value_(nullptr){} struct IdentDeclDefaultTypeInternal { - PROTOBUF_CONSTEXPR IdentDeclDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR IdentDeclDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~IdentDeclDefaultTypeInternal() {} union { IdentDecl _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IdentDeclDefaultTypeInternal _IdentDecl_default_instance_; - -inline constexpr FunctionDecl::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - args_{}, - return_type_{nullptr}, - receiver_function_{false} {} - -template -PROTOBUF_CONSTEXPR FunctionDecl::FunctionDecl(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IdentDeclDefaultTypeInternal _IdentDecl_default_instance_; +PROTOBUF_CONSTEXPR FunctionDecl::FunctionDecl( + ::_pbi::ConstantInitialized) + : args_() + , return_type_(nullptr) + , receiver_function_(false){} struct FunctionDeclDefaultTypeInternal { - PROTOBUF_CONSTEXPR FunctionDeclDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR FunctionDeclDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~FunctionDeclDefaultTypeInternal() {} union { FunctionDecl _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FunctionDeclDefaultTypeInternal _FunctionDecl_default_instance_; - -inline constexpr Decl::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - doc_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - id_{0}, - kind_{}, - _cached_size_{0}, - _oneof_case_{} {} - -template -PROTOBUF_CONSTEXPR Decl::Decl(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct DeclDefaultTypeInternal { - PROTOBUF_CONSTEXPR DeclDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~DeclDefaultTypeInternal() {} - union { - Decl _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeclDefaultTypeInternal _Decl_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FunctionDeclDefaultTypeInternal _FunctionDecl_default_instance_; } // namespace v1beta1 } // namespace expr } // namespace api } // namespace google static ::_pb::Metadata file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto[4]; -static constexpr const ::_pb::EnumDescriptor** - file_level_enum_descriptors_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto = nullptr; -const ::uint32_t TableStruct_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Decl, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Decl, _impl_._oneof_case_[0]), - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Decl, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Decl, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Decl, _impl_.doc_), - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Decl, _impl_.kind_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::DeclType, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::DeclType, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::DeclType, _impl_.type_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::DeclType, _impl_.type_params_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::IdentDecl, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::IdentDecl, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::IdentDecl, _impl_.type_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::IdentDecl, _impl_.value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::FunctionDecl, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::FunctionDecl, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::FunctionDecl, _impl_.args_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::FunctionDecl, _impl_.return_type_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::FunctionDecl, _impl_.receiver_function_), - ~0u, - 0, - ~0u, +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto = nullptr; + +const uint32_t TableStruct_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Decl, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Decl, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Decl, id_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Decl, name_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Decl, doc_), + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Decl, kind_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::DeclType, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::DeclType, id_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::DeclType, type_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::DeclType, type_params_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::IdentDecl, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::IdentDecl, type_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::IdentDecl, value_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::FunctionDecl, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::FunctionDecl, args_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::FunctionDecl, return_type_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::FunctionDecl, receiver_function_), }; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, -1, -1, sizeof(::google::api::expr::v1beta1::Decl)}, - {14, -1, -1, sizeof(::google::api::expr::v1beta1::DeclType)}, - {25, 35, -1, sizeof(::google::api::expr::v1beta1::IdentDecl)}, - {37, 48, -1, sizeof(::google::api::expr::v1beta1::FunctionDecl)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::google::api::expr::v1beta1::Decl)}, + { 12, -1, -1, sizeof(::google::api::expr::v1beta1::DeclType)}, + { 21, -1, -1, sizeof(::google::api::expr::v1beta1::IdentDecl)}, + { 29, -1, -1, sizeof(::google::api::expr::v1beta1::FunctionDecl)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::google::api::expr::v1beta1::_Decl_default_instance_._instance, - &::google::api::expr::v1beta1::_DeclType_default_instance_._instance, - &::google::api::expr::v1beta1::_IdentDecl_default_instance_._instance, - &::google::api::expr::v1beta1::_FunctionDecl_default_instance_._instance, -}; -const char descriptor_table_protodef_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n\"google/api/expr/v1beta1/decl.proto\022\027go" - "ogle.api.expr.v1beta1\032\"google/api/expr/v" - "1beta1/expr.proto\"\305\001\n\004Decl\022\016\n\002id\030\001 \001(\005R\002" - "id\022\022\n\004name\030\002 \001(\tR\004name\022\020\n\003doc\030\003 \001(\tR\003doc" - "\022:\n\005ident\030\004 \001(\0132\".google.api.expr.v1beta" - "1.IdentDeclH\000R\005ident\022C\n\010function\030\005 \001(\0132%" - ".google.api.expr.v1beta1.FunctionDeclH\000R" - "\010functionB\006\n\004kind\"r\n\010DeclType\022\016\n\002id\030\001 \001(" - "\005R\002id\022\022\n\004type\030\002 \001(\tR\004type\022B\n\013type_params" - "\030\004 \003(\0132!.google.api.expr.v1beta1.DeclTyp" - "eR\ntypeParams\"w\n\tIdentDecl\0225\n\004type\030\003 \001(\013" - "2!.google.api.expr.v1beta1.DeclTypeR\004typ" - "e\0223\n\005value\030\004 \001(\0132\035.google.api.expr.v1bet" - "a1.ExprR\005value\"\267\001\n\014FunctionDecl\0226\n\004args\030" - "\001 \003(\0132\".google.api.expr.v1beta1.IdentDec" - "lR\004args\022B\n\013return_type\030\002 \001(\0132!.google.ap" - "i.expr.v1beta1.DeclTypeR\nreturnType\022+\n\021r" - "eceiver_function\030\003 \001(\010R\020receiverFunction" - "B\347\001\n\033com.google.api.expr.v1beta1B\tDeclPr" - "otoP\001Z;google.golang.org/genproto/google" - "apis/api/expr/v1beta1;expr\370\001\001\242\002\003GAE\252\002\027Go" - "ogle.Api.Expr.V1beta1\312\002\027Google\\Api\\Expr\\" - "V1beta1\342\002#Google\\Api\\Expr\\V1beta1\\GPBMet" - "adata\352\002\032Google::Api::Expr::V1beta1b\006prot" - "o3" + &::google::api::expr::v1beta1::_Decl_default_instance_._instance, + &::google::api::expr::v1beta1::_DeclType_default_instance_._instance, + &::google::api::expr::v1beta1::_IdentDecl_default_instance_._instance, + &::google::api::expr::v1beta1::_FunctionDecl_default_instance_._instance, }; -static const ::_pbi::DescriptorTable* const descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto_deps[1] = - { - &::descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto, + +const char descriptor_table_protodef_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\"google/api/expr/v1beta1/decl.proto\022\027go" + "ogle.api.expr.v1beta1\032\"google/api/expr/v" + "1beta1/expr.proto\"\305\001\n\004Decl\022\016\n\002id\030\001 \001(\005R\002" + "id\022\022\n\004name\030\002 \001(\tR\004name\022\020\n\003doc\030\003 \001(\tR\003doc" + "\022:\n\005ident\030\004 \001(\0132\".google.api.expr.v1beta" + "1.IdentDeclH\000R\005ident\022C\n\010function\030\005 \001(\0132%" + ".google.api.expr.v1beta1.FunctionDeclH\000R" + "\010functionB\006\n\004kind\"r\n\010DeclType\022\016\n\002id\030\001 \001(" + "\005R\002id\022\022\n\004type\030\002 \001(\tR\004type\022B\n\013type_params" + "\030\004 \003(\0132!.google.api.expr.v1beta1.DeclTyp" + "eR\ntypeParams\"w\n\tIdentDecl\0225\n\004type\030\003 \001(\013" + "2!.google.api.expr.v1beta1.DeclTypeR\004typ" + "e\0223\n\005value\030\004 \001(\0132\035.google.api.expr.v1bet" + "a1.ExprR\005value\"\267\001\n\014FunctionDecl\0226\n\004args\030" + "\001 \003(\0132\".google.api.expr.v1beta1.IdentDec" + "lR\004args\022B\n\013return_type\030\002 \001(\0132!.google.ap" + "i.expr.v1beta1.DeclTypeR\nreturnType\022+\n\021r" + "eceiver_function\030\003 \001(\010R\020receiverFunction" + "Bj\n\033com.google.api.expr.v1beta1B\tDeclPro" + "toP\001Z;google.golang.org/genproto/googlea" + "pis/api/expr/v1beta1;expr\370\001\001b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto_deps[1] = { + &::descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto, }; -static ::absl::once_flag descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto_once; +static ::_pbi::once_flag descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto = { - false, - false, - 962, - descriptor_table_protodef_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto, + false, false, 836, descriptor_table_protodef_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto, "google/api/expr/v1beta1/decl.proto", - &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto_once, - descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto_deps, - 1, - 4, - schemas, - file_default_instances, - TableStruct_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto::offsets, - file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto, - file_level_enum_descriptors_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto, + &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto_once, descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto_deps, 1, 4, + schemas, file_default_instances, TableStruct_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto::offsets, + file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto, file_level_enum_descriptors_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto, file_level_service_descriptors_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto_getter() { return &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto(&descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto(&descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto); namespace google { namespace api { namespace expr { namespace v1beta1 { + // =================================================================== class Decl::_Internal { public: - static constexpr ::int32_t kOneofCaseOffset = - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Decl, _impl_._oneof_case_); static const ::google::api::expr::v1beta1::IdentDecl& ident(const Decl* msg); static const ::google::api::expr::v1beta1::FunctionDecl& function(const Decl* msg); }; -const ::google::api::expr::v1beta1::IdentDecl& Decl::_Internal::ident(const Decl* msg) { - return *msg->_impl_.kind_.ident_; +const ::google::api::expr::v1beta1::IdentDecl& +Decl::_Internal::ident(const Decl* msg) { + return *msg->kind_.ident_; } -const ::google::api::expr::v1beta1::FunctionDecl& Decl::_Internal::function(const Decl* msg) { - return *msg->_impl_.kind_.function_; +const ::google::api::expr::v1beta1::FunctionDecl& +Decl::_Internal::function(const Decl* msg) { + return *msg->kind_.function_; } void Decl::set_allocated_ident(::google::api::expr::v1beta1::IdentDecl* ident) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_kind(); if (ident) { - ::google::protobuf::Arena* submessage_arena = ident->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(ident); if (message_arena != submessage_arena) { - ident = ::google::protobuf::internal::GetOwnedMessage(message_arena, ident, submessage_arena); + ident = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, ident, submessage_arena); } set_has_ident(); - _impl_.kind_.ident_ = ident; + kind_.ident_ = ident; } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Decl.ident) } void Decl::set_allocated_function(::google::api::expr::v1beta1::FunctionDecl* function) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_kind(); if (function) { - ::google::protobuf::Arena* submessage_arena = function->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(function); if (message_arena != submessage_arena) { - function = ::google::protobuf::internal::GetOwnedMessage(message_arena, function, submessage_arena); + function = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, function, submessage_arena); } set_has_function(); - _impl_.kind_.function_ = function; + kind_.function_ = function; } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Decl.function) } -Decl::Decl(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Decl::Decl(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1beta1.Decl) } -inline PROTOBUF_NDEBUG_INLINE Decl::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : name_(arena, from.name_), - doc_(arena, from.doc_), - kind_{}, - _cached_size_{0}, - _oneof_case_{from._oneof_case_[0]} {} - -Decl::Decl( - ::google::protobuf::Arena* arena, - const Decl& from) - : ::google::protobuf::Message(arena) { - Decl* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.id_ = from._impl_.id_; - switch (kind_case()) { - case KIND_NOT_SET: +Decl::Decl(const Decl& 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()); + } + doc_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + doc_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_doc().empty()) { + doc_.Set(from._internal_doc(), + GetArenaForAllocation()); + } + id_ = from.id_; + clear_has_kind(); + switch (from.kind_case()) { + case kIdent: { + _internal_mutable_ident()->::google::api::expr::v1beta1::IdentDecl::MergeFrom(from._internal_ident()); break; - case kIdent: - _impl_.kind_.ident_ = CreateMaybeMessage<::google::api::expr::v1beta1::IdentDecl>(arena, *from._impl_.kind_.ident_); - break; - case kFunction: - _impl_.kind_.function_ = CreateMaybeMessage<::google::api::expr::v1beta1::FunctionDecl>(arena, *from._impl_.kind_.function_); - break; + } + case kFunction: { + _internal_mutable_function()->::google::api::expr::v1beta1::FunctionDecl::MergeFrom(from._internal_function()); + break; + } + case KIND_NOT_SET: { + break; + } } - // @@protoc_insertion_point(copy_constructor:google.api.expr.v1beta1.Decl) } -inline PROTOBUF_NDEBUG_INLINE Decl::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : name_(arena), - doc_(arena), - kind_{}, - _cached_size_{0}, - _oneof_case_{} {} -inline void Decl::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.id_ = {}; +inline void Decl::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +doc_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + doc_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +id_ = 0; +clear_has_kind(); } + Decl::~Decl() { // @@protoc_insertion_point(destructor:google.api.expr.v1beta1.Decl) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Decl::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.doc_.Destroy(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + doc_.Destroy(); if (has_kind()) { clear_kind(); } - _impl_.~Impl_(); +} + +void Decl::SetCachedSize(int size) const { + _cached_size_.Set(size); } void Decl::clear_kind() { // @@protoc_insertion_point(one_of_clear_start:google.api.expr.v1beta1.Decl) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); switch (kind_case()) { case kIdent: { - if (GetArena() == nullptr) { - delete _impl_.kind_.ident_; + if (GetArenaForAllocation() == nullptr) { + delete kind_.ident_; } break; } case kFunction: { - if (GetArena() == nullptr) { - delete _impl_.kind_.function_; + if (GetArenaForAllocation() == nullptr) { + delete kind_.function_; } break; } @@ -391,227 +331,241 @@ void Decl::clear_kind() { break; } } - _impl_._oneof_case_[0] = KIND_NOT_SET; + _oneof_case_[0] = KIND_NOT_SET; } -PROTOBUF_NOINLINE void Decl::Clear() { +void Decl::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1beta1.Decl) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _impl_.doc_.ClearToEmpty(); - _impl_.id_ = 0; + name_.ClearToEmpty(); + doc_.ClearToEmpty(); + id_ = 0; clear_kind(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Decl::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Decl::_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) { + // int32 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string name = 2 [json_name = "name"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1beta1.Decl.name")); + } else + goto handle_unusual; + continue; + // string doc = 3 [json_name = "doc"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_doc(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1beta1.Decl.doc")); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1beta1.IdentDecl ident = 4 [json_name = "ident"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_ident(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1beta1.FunctionDecl function = 5 [json_name = "function"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_function(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 5, 2, 44, 2> Decl::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 5, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967264, // skipmap - offsetof(decltype(_table_), field_entries), - 5, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Decl_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // int32 id = 1 [json_name = "id"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Decl, _impl_.id_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(Decl, _impl_.id_)}}, - // string name = 2 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(Decl, _impl_.name_)}}, - // string doc = 3 [json_name = "doc"]; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(Decl, _impl_.doc_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // int32 id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(Decl, _impl_.id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // string name = 2 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(Decl, _impl_.name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string doc = 3 [json_name = "doc"]; - {PROTOBUF_FIELD_OFFSET(Decl, _impl_.doc_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.api.expr.v1beta1.IdentDecl ident = 4 [json_name = "ident"]; - {PROTOBUF_FIELD_OFFSET(Decl, _impl_.kind_.ident_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.api.expr.v1beta1.FunctionDecl function = 5 [json_name = "function"]; - {PROTOBUF_FIELD_OFFSET(Decl, _impl_.kind_.function_), _Internal::kOneofCaseOffset + 0, 1, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::expr::v1beta1::IdentDecl>()}, - {::_pbi::TcParser::GetTable<::google::api::expr::v1beta1::FunctionDecl>()}, - }}, {{ - "\34\0\4\3\0\0\0\0" - "google.api.expr.v1beta1.Decl" - "name" - "doc" - }}, -}; - -::uint8_t* Decl::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Decl::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.Decl) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // int32 id = 1 [json_name = "id"]; if (this->_internal_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<1>( - stream, this->_internal_id(), target); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_id(), target); } // string name = 2 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.expr.v1beta1.Decl.name"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1beta1.Decl.name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_name(), target); } // string doc = 3 [json_name = "doc"]; if (!this->_internal_doc().empty()) { - const std::string& _s = this->_internal_doc(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.expr.v1beta1.Decl.doc"); - target = stream->WriteStringMaybeAliased(3, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_doc().data(), static_cast(this->_internal_doc().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1beta1.Decl.doc"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_doc(), target); } - switch (kind_case()) { - case kIdent: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, _Internal::ident(this), - _Internal::ident(this).GetCachedSize(), target, stream); - break; - } - case kFunction: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 5, _Internal::function(this), - _Internal::function(this).GetCachedSize(), target, stream); - break; - } - default: - break; + // .google.api.expr.v1beta1.IdentDecl ident = 4 [json_name = "ident"]; + if (_internal_has_ident()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::ident(this), + _Internal::ident(this).GetCachedSize(), target, stream); } + + // .google.api.expr.v1beta1.FunctionDecl function = 5 [json_name = "function"]; + if (_internal_has_function()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(5, _Internal::function(this), + _Internal::function(this).GetCachedSize(), target, stream); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1beta1.Decl) return target; } -::size_t Decl::ByteSizeLong() const { +size_t Decl::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1beta1.Decl) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string name = 2 [json_name = "name"]; if (!this->_internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // string doc = 3 [json_name = "doc"]; if (!this->_internal_doc().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_doc()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_doc()); } // int32 id = 1 [json_name = "id"]; if (this->_internal_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_id()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_id()); } switch (kind_case()) { // .google.api.expr.v1beta1.IdentDecl ident = 4 [json_name = "ident"]; case kIdent: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.kind_.ident_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *kind_.ident_); break; } // .google.api.expr.v1beta1.FunctionDecl function = 5 [json_name = "function"]; case kFunction: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.kind_.function_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *kind_.function_); break; } case KIND_NOT_SET: { break; } } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Decl::_class_data_ = { - Decl::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Decl::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Decl::MergeImpl }; -const ::google::protobuf::Message::ClassData* Decl::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Decl::GetClassData() const { return &_class_data_; } + +void Decl::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Decl::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.Decl) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Decl::MergeFrom(const Decl& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.Decl) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (!from._internal_doc().empty()) { - _this->_internal_set_doc(from._internal_doc()); + _internal_set_doc(from._internal_doc()); } if (from._internal_id() != 0) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } switch (from.kind_case()) { case kIdent: { - _this->_internal_mutable_ident()->::google::api::expr::v1beta1::IdentDecl::MergeFrom( - from._internal_ident()); + _internal_mutable_ident()->::google::api::expr::v1beta1::IdentDecl::MergeFrom(from._internal_ident()); break; } case kFunction: { - _this->_internal_mutable_function()->::google::api::expr::v1beta1::FunctionDecl::MergeFrom( - from._internal_function()); + _internal_mutable_function()->::google::api::expr::v1beta1::FunctionDecl::MergeFrom(from._internal_function()); break; } case KIND_NOT_SET: { break; } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Decl::CopyFrom(const Decl& from) { @@ -621,242 +575,256 @@ void Decl::CopyFrom(const Decl& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Decl::IsInitialized() const { +bool Decl::IsInitialized() const { return true; } -::_pbi::CachedSize* Decl::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Decl::InternalSwap(Decl* PROTOBUF_RESTRICT other) { +void Decl::InternalSwap(Decl* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.doc_, &other->_impl_.doc_, arena); - swap(_impl_.id_, other->_impl_.id_); - swap(_impl_.kind_, other->_impl_.kind_); - swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); -} - -::google::protobuf::Metadata Decl::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &doc_, lhs_arena, + &other->doc_, rhs_arena + ); + swap(id_, other->id_); + swap(kind_, other->kind_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Decl::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto[0]); } + // =================================================================== class DeclType::_Internal { public: }; -DeclType::DeclType(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +DeclType::DeclType(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + type_params_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1beta1.DeclType) } -inline PROTOBUF_NDEBUG_INLINE DeclType::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : type_params_{visibility, arena, from.type_params_}, - type_(arena, from.type_), - _cached_size_{0} {} - -DeclType::DeclType( - ::google::protobuf::Arena* arena, - const DeclType& from) - : ::google::protobuf::Message(arena) { - DeclType* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.id_ = from._impl_.id_; - +DeclType::DeclType(const DeclType& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + type_params_(from.type_params_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + 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()); + } + id_ = from.id_; // @@protoc_insertion_point(copy_constructor:google.api.expr.v1beta1.DeclType) } -inline PROTOBUF_NDEBUG_INLINE DeclType::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : type_params_{visibility, arena}, - type_(arena), - _cached_size_{0} {} -inline void DeclType::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.id_ = {}; +inline void DeclType::SharedCtor() { +type_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + type_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +id_ = 0; } + DeclType::~DeclType() { // @@protoc_insertion_point(destructor:google.api.expr.v1beta1.DeclType) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void DeclType::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.type_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + type_.Destroy(); +} + +void DeclType::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void DeclType::Clear() { +void DeclType::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1beta1.DeclType) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.type_params_.Clear(); - _impl_.type_.ClearToEmpty(); - _impl_.id_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* DeclType::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + type_params_.Clear(); + type_.ClearToEmpty(); + id_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DeclType::_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) { + // int32 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string type = 2 [json_name = "type"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1beta1.DeclType.type")); + } else + goto handle_unusual; + continue; + // repeated .google.api.expr.v1beta1.DeclType type_params = 4 [json_name = "typeParams"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_type_params(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 1, 45, 2> DeclType::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967284, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_DeclType_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .google.api.expr.v1beta1.DeclType type_params = 4 [json_name = "typeParams"]; - {::_pbi::TcParser::FastMtR1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(DeclType, _impl_.type_params_)}}, - // int32 id = 1 [json_name = "id"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(DeclType, _impl_.id_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(DeclType, _impl_.id_)}}, - // string type = 2 [json_name = "type"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(DeclType, _impl_.type_)}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // int32 id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(DeclType, _impl_.id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // string type = 2 [json_name = "type"]; - {PROTOBUF_FIELD_OFFSET(DeclType, _impl_.type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated .google.api.expr.v1beta1.DeclType type_params = 4 [json_name = "typeParams"]; - {PROTOBUF_FIELD_OFFSET(DeclType, _impl_.type_params_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::expr::v1beta1::DeclType>()}, - }}, {{ - "\40\0\4\0\0\0\0\0" - "google.api.expr.v1beta1.DeclType" - "type" - }}, -}; - -::uint8_t* DeclType::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* DeclType::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.DeclType) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // int32 id = 1 [json_name = "id"]; if (this->_internal_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<1>( - stream, this->_internal_id(), target); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_id(), target); } // string type = 2 [json_name = "type"]; if (!this->_internal_type().empty()) { - const std::string& _s = this->_internal_type(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.expr.v1beta1.DeclType.type"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_type().data(), static_cast(this->_internal_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1beta1.DeclType.type"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_type(), target); } // repeated .google.api.expr.v1beta1.DeclType type_params = 4 [json_name = "typeParams"]; for (unsigned i = 0, n = static_cast(this->_internal_type_params_size()); i < n; i++) { - const auto& repfield = this->_internal_type_params().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_type_params(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(4, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1beta1.DeclType) return target; } -::size_t DeclType::ByteSizeLong() const { +size_t DeclType::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1beta1.DeclType) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .google.api.expr.v1beta1.DeclType type_params = 4 [json_name = "typeParams"]; total_size += 1UL * this->_internal_type_params_size(); - for (const auto& msg : this->_internal_type_params()) { + for (const auto& msg : this->type_params_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // string type = 2 [json_name = "type"]; if (!this->_internal_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_type()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_type()); } // int32 id = 1 [json_name = "id"]; if (this->_internal_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_id()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData DeclType::_class_data_ = { - DeclType::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeclType::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + DeclType::MergeImpl }; -const ::google::protobuf::Message::ClassData* DeclType::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeclType::GetClassData() const { return &_class_data_; } + +void DeclType::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void DeclType::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.DeclType) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void DeclType::MergeFrom(const DeclType& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.DeclType) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_type_params()->MergeFrom( - from._internal_type_params()); + type_params_.MergeFrom(from.type_params_); if (!from._internal_type().empty()) { - _this->_internal_set_type(from._internal_type()); + _internal_set_type(from._internal_type()); } if (from._internal_id() != 0) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void DeclType::CopyFrom(const DeclType& from) { @@ -866,263 +834,240 @@ void DeclType::CopyFrom(const DeclType& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool DeclType::IsInitialized() const { +bool DeclType::IsInitialized() const { return true; } -::_pbi::CachedSize* DeclType::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void DeclType::InternalSwap(DeclType* PROTOBUF_RESTRICT other) { +void DeclType::InternalSwap(DeclType* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.type_params_.InternalSwap(&other->_impl_.type_params_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.type_, &other->_impl_.type_, arena); - swap(_impl_.id_, other->_impl_.id_); + type_params_.InternalSwap(&other->type_params_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &type_, lhs_arena, + &other->type_, rhs_arena + ); + swap(id_, other->id_); } -::google::protobuf::Metadata DeclType::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata DeclType::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto[1]); } + // =================================================================== class IdentDecl::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(IdentDecl, _impl_._has_bits_); static const ::google::api::expr::v1beta1::DeclType& type(const IdentDecl* msg); - static void set_has_type(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } static const ::google::api::expr::v1beta1::Expr& value(const IdentDecl* msg); - static void set_has_value(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } }; -const ::google::api::expr::v1beta1::DeclType& IdentDecl::_Internal::type(const IdentDecl* msg) { - return *msg->_impl_.type_; +const ::google::api::expr::v1beta1::DeclType& +IdentDecl::_Internal::type(const IdentDecl* msg) { + return *msg->type_; } -const ::google::api::expr::v1beta1::Expr& IdentDecl::_Internal::value(const IdentDecl* msg) { - return *msg->_impl_.value_; +const ::google::api::expr::v1beta1::Expr& +IdentDecl::_Internal::value(const IdentDecl* msg) { + return *msg->value_; } void IdentDecl::clear_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.value_ != nullptr) _impl_.value_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && value_ != nullptr) { + delete value_; + } + value_ = nullptr; } -IdentDecl::IdentDecl(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +IdentDecl::IdentDecl(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1beta1.IdentDecl) } -inline PROTOBUF_NDEBUG_INLINE IdentDecl::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -IdentDecl::IdentDecl( - ::google::protobuf::Arena* arena, - const IdentDecl& from) - : ::google::protobuf::Message(arena) { - IdentDecl* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.type_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::api::expr::v1beta1::DeclType>(arena, *from._impl_.type_) - : nullptr; - _impl_.value_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::google::api::expr::v1beta1::Expr>(arena, *from._impl_.value_) - : nullptr; - +IdentDecl::IdentDecl(const IdentDecl& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_type()) { + type_ = new ::google::api::expr::v1beta1::DeclType(*from.type_); + } else { + type_ = nullptr; + } + if (from._internal_has_value()) { + value_ = new ::google::api::expr::v1beta1::Expr(*from.value_); + } else { + value_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:google.api.expr.v1beta1.IdentDecl) } -inline PROTOBUF_NDEBUG_INLINE IdentDecl::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void IdentDecl::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, type_), - 0, - offsetof(Impl_, value_) - - offsetof(Impl_, type_) + - sizeof(Impl_::value_)); +inline void IdentDecl::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&type_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&value_) - + reinterpret_cast(&type_)) + sizeof(value_)); } + IdentDecl::~IdentDecl() { // @@protoc_insertion_point(destructor:google.api.expr.v1beta1.IdentDecl) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void IdentDecl::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.type_; - delete _impl_.value_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete type_; + if (this != internal_default_instance()) delete value_; } -PROTOBUF_NOINLINE void IdentDecl::Clear() { +void IdentDecl::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void IdentDecl::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1beta1.IdentDecl) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.type_ != nullptr); - _impl_.type_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.value_ != nullptr); - _impl_.value_->Clear(); - } + if (GetArenaForAllocation() == nullptr && type_ != nullptr) { + delete type_; } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* IdentDecl::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + type_ = nullptr; + if (GetArenaForAllocation() == nullptr && value_ != nullptr) { + delete value_; + } + value_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* IdentDecl::_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) { + // .google.api.expr.v1beta1.DeclType type = 3 [json_name = "type"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_type(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1beta1.Expr value = 4 [json_name = "value"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_value(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 2, 0, 2> IdentDecl::_table_ = { - { - PROTOBUF_FIELD_OFFSET(IdentDecl, _impl_._has_bits_), - 0, // no _extensions_ - 4, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967283, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_IdentDecl_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .google.api.expr.v1beta1.Expr value = 4 [json_name = "value"]; - {::_pbi::TcParser::FastMtS1, - {34, 1, 1, PROTOBUF_FIELD_OFFSET(IdentDecl, _impl_.value_)}}, - // .google.api.expr.v1beta1.DeclType type = 3 [json_name = "type"]; - {::_pbi::TcParser::FastMtS1, - {26, 0, 0, PROTOBUF_FIELD_OFFSET(IdentDecl, _impl_.type_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .google.api.expr.v1beta1.DeclType type = 3 [json_name = "type"]; - {PROTOBUF_FIELD_OFFSET(IdentDecl, _impl_.type_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.api.expr.v1beta1.Expr value = 4 [json_name = "value"]; - {PROTOBUF_FIELD_OFFSET(IdentDecl, _impl_.value_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::expr::v1beta1::DeclType>()}, - {::_pbi::TcParser::GetTable<::google::api::expr::v1beta1::Expr>()}, - }}, {{ - }}, -}; - -::uint8_t* IdentDecl::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* IdentDecl::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.IdentDecl) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .google.api.expr.v1beta1.DeclType type = 3 [json_name = "type"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::type(this), + if (this->_internal_has_type()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::type(this), _Internal::type(this).GetCachedSize(), target, stream); } // .google.api.expr.v1beta1.Expr value = 4 [json_name = "value"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, _Internal::value(this), + if (this->_internal_has_value()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::value(this), _Internal::value(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1beta1.IdentDecl) return target; } -::size_t IdentDecl::ByteSizeLong() const { +size_t IdentDecl::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1beta1.IdentDecl) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // .google.api.expr.v1beta1.DeclType type = 3 [json_name = "type"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.type_); - } - - // .google.api.expr.v1beta1.Expr value = 4 [json_name = "value"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.value_); - } + // .google.api.expr.v1beta1.DeclType type = 3 [json_name = "type"]; + if (this->_internal_has_type()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *type_); + } + // .google.api.expr.v1beta1.Expr value = 4 [json_name = "value"]; + if (this->_internal_has_value()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *value_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData IdentDecl::_class_data_ = { - IdentDecl::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData IdentDecl::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + IdentDecl::MergeImpl }; -const ::google::protobuf::Message::ClassData* IdentDecl::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*IdentDecl::GetClassData() const { return &_class_data_; } + +void IdentDecl::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void IdentDecl::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.IdentDecl) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void IdentDecl::MergeFrom(const IdentDecl& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.IdentDecl) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_type()->::google::api::expr::v1beta1::DeclType::MergeFrom( - from._internal_type()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_value()->::google::api::expr::v1beta1::Expr::MergeFrom( - from._internal_value()); - } + if (from._internal_has_type()) { + _internal_mutable_type()->::google::api::expr::v1beta1::DeclType::MergeFrom(from._internal_type()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_value()) { + _internal_mutable_value()->::google::api::expr::v1beta1::Expr::MergeFrom(from._internal_value()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void IdentDecl::CopyFrom(const IdentDecl& from) { @@ -1132,264 +1077,248 @@ void IdentDecl::CopyFrom(const IdentDecl& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool IdentDecl::IsInitialized() const { +bool IdentDecl::IsInitialized() const { return true; } -::_pbi::CachedSize* IdentDecl::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void IdentDecl::InternalSwap(IdentDecl* PROTOBUF_RESTRICT other) { +void IdentDecl::InternalSwap(IdentDecl* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(IdentDecl, _impl_.value_) - + sizeof(IdentDecl::_impl_.value_) - - PROTOBUF_FIELD_OFFSET(IdentDecl, _impl_.type_)>( - reinterpret_cast(&_impl_.type_), - reinterpret_cast(&other->_impl_.type_)); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(IdentDecl, value_) + + sizeof(IdentDecl::value_) + - PROTOBUF_FIELD_OFFSET(IdentDecl, type_)>( + reinterpret_cast(&type_), + reinterpret_cast(&other->type_)); } -::google::protobuf::Metadata IdentDecl::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata IdentDecl::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto[2]); } + // =================================================================== class FunctionDecl::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(FunctionDecl, _impl_._has_bits_); static const ::google::api::expr::v1beta1::DeclType& return_type(const FunctionDecl* msg); - static void set_has_return_type(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::google::api::expr::v1beta1::DeclType& FunctionDecl::_Internal::return_type(const FunctionDecl* msg) { - return *msg->_impl_.return_type_; +const ::google::api::expr::v1beta1::DeclType& +FunctionDecl::_Internal::return_type(const FunctionDecl* msg) { + return *msg->return_type_; } -FunctionDecl::FunctionDecl(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +FunctionDecl::FunctionDecl(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + args_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1beta1.FunctionDecl) } -inline PROTOBUF_NDEBUG_INLINE FunctionDecl::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - args_{visibility, arena, from.args_} {} - -FunctionDecl::FunctionDecl( - ::google::protobuf::Arena* arena, - const FunctionDecl& from) - : ::google::protobuf::Message(arena) { - FunctionDecl* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.return_type_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::api::expr::v1beta1::DeclType>(arena, *from._impl_.return_type_) - : nullptr; - _impl_.receiver_function_ = from._impl_.receiver_function_; - +FunctionDecl::FunctionDecl(const FunctionDecl& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + args_(from.args_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_return_type()) { + return_type_ = new ::google::api::expr::v1beta1::DeclType(*from.return_type_); + } else { + return_type_ = nullptr; + } + receiver_function_ = from.receiver_function_; // @@protoc_insertion_point(copy_constructor:google.api.expr.v1beta1.FunctionDecl) } -inline PROTOBUF_NDEBUG_INLINE FunctionDecl::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - args_{visibility, arena} {} - -inline void FunctionDecl::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, return_type_), - 0, - offsetof(Impl_, receiver_function_) - - offsetof(Impl_, return_type_) + - sizeof(Impl_::receiver_function_)); + +inline void FunctionDecl::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&return_type_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&receiver_function_) - + reinterpret_cast(&return_type_)) + sizeof(receiver_function_)); } + FunctionDecl::~FunctionDecl() { // @@protoc_insertion_point(destructor:google.api.expr.v1beta1.FunctionDecl) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void FunctionDecl::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.return_type_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete return_type_; +} + +void FunctionDecl::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void FunctionDecl::Clear() { +void FunctionDecl::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1beta1.FunctionDecl) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.args_.Clear(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.return_type_ != nullptr); - _impl_.return_type_->Clear(); + args_.Clear(); + if (GetArenaForAllocation() == nullptr && return_type_ != nullptr) { + delete return_type_; } - _impl_.receiver_function_ = false; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* FunctionDecl::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return_type_ = nullptr; + receiver_function_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* FunctionDecl::_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) { + // repeated .google.api.expr.v1beta1.IdentDecl args = 1 [json_name = "args"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_args(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1beta1.DeclType return_type = 2 [json_name = "returnType"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_return_type(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool receiver_function = 3 [json_name = "receiverFunction"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + receiver_function_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 2, 0, 2> FunctionDecl::_table_ = { - { - PROTOBUF_FIELD_OFFSET(FunctionDecl, _impl_._has_bits_), - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_FunctionDecl_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // repeated .google.api.expr.v1beta1.IdentDecl args = 1 [json_name = "args"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(FunctionDecl, _impl_.args_)}}, - // .google.api.expr.v1beta1.DeclType return_type = 2 [json_name = "returnType"]; - {::_pbi::TcParser::FastMtS1, - {18, 0, 1, PROTOBUF_FIELD_OFFSET(FunctionDecl, _impl_.return_type_)}}, - // bool receiver_function = 3 [json_name = "receiverFunction"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(FunctionDecl, _impl_.receiver_function_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .google.api.expr.v1beta1.IdentDecl args = 1 [json_name = "args"]; - {PROTOBUF_FIELD_OFFSET(FunctionDecl, _impl_.args_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.api.expr.v1beta1.DeclType return_type = 2 [json_name = "returnType"]; - {PROTOBUF_FIELD_OFFSET(FunctionDecl, _impl_.return_type_), _Internal::kHasBitsOffset + 0, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // bool receiver_function = 3 [json_name = "receiverFunction"]; - {PROTOBUF_FIELD_OFFSET(FunctionDecl, _impl_.receiver_function_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::expr::v1beta1::IdentDecl>()}, - {::_pbi::TcParser::GetTable<::google::api::expr::v1beta1::DeclType>()}, - }}, {{ - }}, -}; - -::uint8_t* FunctionDecl::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* FunctionDecl::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.FunctionDecl) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .google.api.expr.v1beta1.IdentDecl args = 1 [json_name = "args"]; for (unsigned i = 0, n = static_cast(this->_internal_args_size()); i < n; i++) { - const auto& repfield = this->_internal_args().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_args(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } - cached_has_bits = _impl_._has_bits_[0]; // .google.api.expr.v1beta1.DeclType return_type = 2 [json_name = "returnType"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::return_type(this), + if (this->_internal_has_return_type()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::return_type(this), _Internal::return_type(this).GetCachedSize(), target, stream); } // bool receiver_function = 3 [json_name = "receiverFunction"]; if (this->_internal_receiver_function() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 3, this->_internal_receiver_function(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_receiver_function(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1beta1.FunctionDecl) return target; } -::size_t FunctionDecl::ByteSizeLong() const { +size_t FunctionDecl::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1beta1.FunctionDecl) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .google.api.expr.v1beta1.IdentDecl args = 1 [json_name = "args"]; total_size += 1UL * this->_internal_args_size(); - for (const auto& msg : this->_internal_args()) { + for (const auto& msg : this->args_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // .google.api.expr.v1beta1.DeclType return_type = 2 [json_name = "returnType"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.return_type_); + if (this->_internal_has_return_type()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *return_type_); } // bool receiver_function = 3 [json_name = "receiverFunction"]; if (this->_internal_receiver_function() != 0) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData FunctionDecl::_class_data_ = { - FunctionDecl::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FunctionDecl::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + FunctionDecl::MergeImpl }; -const ::google::protobuf::Message::ClassData* FunctionDecl::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FunctionDecl::GetClassData() const { return &_class_data_; } + +void FunctionDecl::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void FunctionDecl::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.FunctionDecl) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void FunctionDecl::MergeFrom(const FunctionDecl& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.FunctionDecl) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_args()->MergeFrom( - from._internal_args()); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_return_type()->::google::api::expr::v1beta1::DeclType::MergeFrom( - from._internal_return_type()); + args_.MergeFrom(from.args_); + if (from._internal_has_return_type()) { + _internal_mutable_return_type()->::google::api::expr::v1beta1::DeclType::MergeFrom(from._internal_return_type()); } if (from._internal_receiver_function() != 0) { - _this->_internal_set_receiver_function(from._internal_receiver_function()); + _internal_set_receiver_function(from._internal_receiver_function()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void FunctionDecl::CopyFrom(const FunctionDecl& from) { @@ -1399,39 +1328,51 @@ void FunctionDecl::CopyFrom(const FunctionDecl& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool FunctionDecl::IsInitialized() const { +bool FunctionDecl::IsInitialized() const { return true; } -::_pbi::CachedSize* FunctionDecl::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void FunctionDecl::InternalSwap(FunctionDecl* PROTOBUF_RESTRICT other) { +void FunctionDecl::InternalSwap(FunctionDecl* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.args_.InternalSwap(&other->_impl_.args_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(FunctionDecl, _impl_.receiver_function_) - + sizeof(FunctionDecl::_impl_.receiver_function_) - - PROTOBUF_FIELD_OFFSET(FunctionDecl, _impl_.return_type_)>( - reinterpret_cast(&_impl_.return_type_), - reinterpret_cast(&other->_impl_.return_type_)); + args_.InternalSwap(&other->args_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(FunctionDecl, receiver_function_) + + sizeof(FunctionDecl::receiver_function_) + - PROTOBUF_FIELD_OFFSET(FunctionDecl, return_type_)>( + reinterpret_cast(&return_type_), + reinterpret_cast(&other->return_type_)); } -::google::protobuf::Metadata FunctionDecl::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata FunctionDecl::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto[3]); } + // @@protoc_insertion_point(namespace_scope) } // namespace v1beta1 } // namespace expr } // namespace api } // namespace google -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::google::api::expr::v1beta1::Decl* +Arena::CreateMaybeMessage< ::google::api::expr::v1beta1::Decl >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1beta1::Decl >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1beta1::DeclType* +Arena::CreateMaybeMessage< ::google::api::expr::v1beta1::DeclType >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1beta1::DeclType >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1beta1::IdentDecl* +Arena::CreateMaybeMessage< ::google::api::expr::v1beta1::IdentDecl >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1beta1::IdentDecl >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1beta1::FunctionDecl* +Arena::CreateMaybeMessage< ::google::api::expr::v1beta1::FunctionDecl >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1beta1::FunctionDecl >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/google/api/expr/v1beta1/decl.pb.h b/src/viam/api/google/api/expr/v1beta1/decl.pb.h index f019f8e21..fa7932631 100644 --- a/src/viam/api/google/api/expr/v1beta1/decl.pb.h +++ b/src/viam/api/google/api/expr/v1beta1/decl.pb.h @@ -1,61 +1,50 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/expr/v1beta1/decl.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/unknown_field_set.h" + +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include #include "google/api/expr/v1beta1/expr.pb.h" // @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - +#include #define PROTOBUF_INTERNAL_EXPORT_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto; namespace google { namespace api { namespace expr { @@ -75,10 +64,13 @@ extern IdentDeclDefaultTypeInternal _IdentDecl_default_instance_; } // namespace v1beta1 } // namespace expr } // namespace api -namespace protobuf { -} // namespace protobuf } // namespace google - +PROTOBUF_NAMESPACE_OPEN +template<> ::google::api::expr::v1beta1::Decl* Arena::CreateMaybeMessage<::google::api::expr::v1beta1::Decl>(Arena*); +template<> ::google::api::expr::v1beta1::DeclType* Arena::CreateMaybeMessage<::google::api::expr::v1beta1::DeclType>(Arena*); +template<> ::google::api::expr::v1beta1::FunctionDecl* Arena::CreateMaybeMessage<::google::api::expr::v1beta1::FunctionDecl>(Arena*); +template<> ::google::api::expr::v1beta1::IdentDecl* Arena::CreateMaybeMessage<::google::api::expr::v1beta1::IdentDecl>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace google { namespace api { namespace expr { @@ -86,19 +78,248 @@ namespace v1beta1 { // =================================================================== +class Decl final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.Decl) */ { + public: + inline Decl() : Decl(nullptr) {} + ~Decl() override; + explicit PROTOBUF_CONSTEXPR Decl(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Decl(const Decl& from); + Decl(Decl&& from) noexcept + : Decl() { + *this = ::std::move(from); + } + + inline Decl& operator=(const Decl& from) { + CopyFrom(from); + return *this; + } + inline Decl& operator=(Decl&& 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 Decl& default_instance() { + return *internal_default_instance(); + } + enum KindCase { + kIdent = 4, + kFunction = 5, + KIND_NOT_SET = 0, + }; + + static inline const Decl* internal_default_instance() { + return reinterpret_cast( + &_Decl_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(Decl& a, Decl& b) { + a.Swap(&b); + } + inline void Swap(Decl* 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(Decl* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Decl* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Decl& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Decl& 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(Decl* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1beta1.Decl"; + } + protected: + explicit Decl(::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 = 2, + kDocFieldNumber = 3, + kIdFieldNumber = 1, + kIdentFieldNumber = 4, + kFunctionFieldNumber = 5, + }; + // string name = 2 [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: + + // string doc = 3 [json_name = "doc"]; + void clear_doc(); + const std::string& doc() const; + template + void set_doc(ArgT0&& arg0, ArgT... args); + std::string* mutable_doc(); + PROTOBUF_NODISCARD std::string* release_doc(); + void set_allocated_doc(std::string* doc); + private: + const std::string& _internal_doc() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_doc(const std::string& value); + std::string* _internal_mutable_doc(); + public: + + // int32 id = 1 [json_name = "id"]; + void clear_id(); + int32_t id() const; + void set_id(int32_t value); + private: + int32_t _internal_id() const; + void _internal_set_id(int32_t value); + public: + + // .google.api.expr.v1beta1.IdentDecl ident = 4 [json_name = "ident"]; + bool has_ident() const; + private: + bool _internal_has_ident() const; + public: + void clear_ident(); + const ::google::api::expr::v1beta1::IdentDecl& ident() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::IdentDecl* release_ident(); + ::google::api::expr::v1beta1::IdentDecl* mutable_ident(); + void set_allocated_ident(::google::api::expr::v1beta1::IdentDecl* ident); + private: + const ::google::api::expr::v1beta1::IdentDecl& _internal_ident() const; + ::google::api::expr::v1beta1::IdentDecl* _internal_mutable_ident(); + public: + void unsafe_arena_set_allocated_ident( + ::google::api::expr::v1beta1::IdentDecl* ident); + ::google::api::expr::v1beta1::IdentDecl* unsafe_arena_release_ident(); + + // .google.api.expr.v1beta1.FunctionDecl function = 5 [json_name = "function"]; + bool has_function() const; + private: + bool _internal_has_function() const; + public: + void clear_function(); + const ::google::api::expr::v1beta1::FunctionDecl& function() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::FunctionDecl* release_function(); + ::google::api::expr::v1beta1::FunctionDecl* mutable_function(); + void set_allocated_function(::google::api::expr::v1beta1::FunctionDecl* function); + private: + const ::google::api::expr::v1beta1::FunctionDecl& _internal_function() const; + ::google::api::expr::v1beta1::FunctionDecl* _internal_mutable_function(); + public: + void unsafe_arena_set_allocated_function( + ::google::api::expr::v1beta1::FunctionDecl* function); + ::google::api::expr::v1beta1::FunctionDecl* unsafe_arena_release_function(); + + void clear_kind(); + KindCase kind_case() const; + // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.Decl) + private: + class _Internal; + void set_has_ident(); + void set_has_function(); + + inline bool has_kind() const; + inline void clear_has_kind(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr doc_; + int32_t id_; + union KindUnion { + constexpr KindUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::google::api::expr::v1beta1::IdentDecl* ident_; + ::google::api::expr::v1beta1::FunctionDecl* function_; + } kind_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; + + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto; +}; // ------------------------------------------------------------------- class DeclType final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.DeclType) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.DeclType) */ { public: inline DeclType() : DeclType(nullptr) {} ~DeclType() override; - template - explicit PROTOBUF_CONSTEXPR DeclType(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR DeclType(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline DeclType(const DeclType& from) - : DeclType(nullptr, from) {} + DeclType(const DeclType& from); DeclType(DeclType&& from) noexcept : DeclType() { *this = ::std::move(from); @@ -110,9 +331,9 @@ class DeclType final : } inline DeclType& operator=(DeclType&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -122,22 +343,13 @@ class DeclType final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const DeclType& default_instance() { @@ -156,65 +368,63 @@ class DeclType final : inline void Swap(DeclType* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(DeclType* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - DeclType* New(::google::protobuf::Arena* arena = nullptr) const final { + DeclType* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const DeclType& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const DeclType& from) { - DeclType::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const DeclType& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(DeclType* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "google.api.expr.v1beta1.DeclType"; } protected: - explicit DeclType(::google::protobuf::Arena* arena); - DeclType(::google::protobuf::Arena* arena, const DeclType& from); + explicit DeclType(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -229,89 +439,66 @@ class DeclType final : int type_params_size() const; private: int _internal_type_params_size() const; - public: - void clear_type_params() ; + void clear_type_params(); ::google::api::expr::v1beta1::DeclType* mutable_type_params(int index); - ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1beta1::DeclType >* + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::DeclType >* mutable_type_params(); private: - const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::DeclType>& _internal_type_params() const; - ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::DeclType>* _internal_mutable_type_params(); + const ::google::api::expr::v1beta1::DeclType& _internal_type_params(int index) const; + ::google::api::expr::v1beta1::DeclType* _internal_add_type_params(); public: const ::google::api::expr::v1beta1::DeclType& type_params(int index) const; ::google::api::expr::v1beta1::DeclType* add_type_params(); - const ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1beta1::DeclType >& + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::DeclType >& type_params() const; + // string type = 2 [json_name = "type"]; - void clear_type() ; + void clear_type(); const std::string& type() const; - template - void set_type(Arg_&& arg, Args_... args); + template + void set_type(ArgT0&& arg0, ArgT... args); std::string* mutable_type(); PROTOBUF_NODISCARD std::string* release_type(); - void set_allocated_type(std::string* value); - + 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_type(const std::string& value); std::string* _internal_mutable_type(); - public: - // int32 id = 1 [json_name = "id"]; - void clear_id() ; - ::int32_t id() const; - void set_id(::int32_t value); + // int32 id = 1 [json_name = "id"]; + void clear_id(); + int32_t id() const; + void set_id(int32_t value); private: - ::int32_t _internal_id() const; - void _internal_set_id(::int32_t value); - + int32_t _internal_id() const; + void _internal_set_id(int32_t value); public: + // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.DeclType) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 1, - 45, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1beta1::DeclType > type_params_; - ::google::protobuf::internal::ArenaStringPtr type_; - ::int32_t id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::DeclType > type_params_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_; + int32_t id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class IdentDecl final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.IdentDecl) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.IdentDecl) */ { public: inline IdentDecl() : IdentDecl(nullptr) {} ~IdentDecl() override; - template - explicit PROTOBUF_CONSTEXPR IdentDecl(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR IdentDecl(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline IdentDecl(const IdentDecl& from) - : IdentDecl(nullptr, from) {} + IdentDecl(const IdentDecl& from); IdentDecl(IdentDecl&& from) noexcept : IdentDecl() { *this = ::std::move(from); @@ -323,9 +510,9 @@ class IdentDecl final : } inline IdentDecl& operator=(IdentDecl&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -335,22 +522,13 @@ class IdentDecl final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const IdentDecl& default_instance() { @@ -369,65 +547,63 @@ class IdentDecl final : inline void Swap(IdentDecl* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(IdentDecl* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - IdentDecl* New(::google::protobuf::Arena* arena = nullptr) const final { + IdentDecl* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const IdentDecl& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const IdentDecl& from) { - IdentDecl::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const IdentDecl& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(IdentDecl* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "google.api.expr.v1beta1.IdentDecl"; } protected: - explicit IdentDecl(::google::protobuf::Arena* arena); - IdentDecl(::google::protobuf::Arena* arena, const IdentDecl& from); + explicit IdentDecl(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -439,77 +615,62 @@ class IdentDecl final : }; // .google.api.expr.v1beta1.DeclType type = 3 [json_name = "type"]; bool has_type() const; - void clear_type() ; + private: + bool _internal_has_type() const; + public: + void clear_type(); const ::google::api::expr::v1beta1::DeclType& type() const; PROTOBUF_NODISCARD ::google::api::expr::v1beta1::DeclType* release_type(); ::google::api::expr::v1beta1::DeclType* mutable_type(); - void set_allocated_type(::google::api::expr::v1beta1::DeclType* value); - void unsafe_arena_set_allocated_type(::google::api::expr::v1beta1::DeclType* value); - ::google::api::expr::v1beta1::DeclType* unsafe_arena_release_type(); - + void set_allocated_type(::google::api::expr::v1beta1::DeclType* type); private: const ::google::api::expr::v1beta1::DeclType& _internal_type() const; ::google::api::expr::v1beta1::DeclType* _internal_mutable_type(); - public: + void unsafe_arena_set_allocated_type( + ::google::api::expr::v1beta1::DeclType* type); + ::google::api::expr::v1beta1::DeclType* unsafe_arena_release_type(); + // .google.api.expr.v1beta1.Expr value = 4 [json_name = "value"]; bool has_value() const; - void clear_value() ; + private: + bool _internal_has_value() const; + public: + void clear_value(); const ::google::api::expr::v1beta1::Expr& value() const; PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Expr* release_value(); ::google::api::expr::v1beta1::Expr* mutable_value(); void set_allocated_value(::google::api::expr::v1beta1::Expr* value); - void unsafe_arena_set_allocated_value(::google::api::expr::v1beta1::Expr* value); - ::google::api::expr::v1beta1::Expr* unsafe_arena_release_value(); - private: const ::google::api::expr::v1beta1::Expr& _internal_value() const; ::google::api::expr::v1beta1::Expr* _internal_mutable_value(); - public: + void unsafe_arena_set_allocated_value( + ::google::api::expr::v1beta1::Expr* value); + ::google::api::expr::v1beta1::Expr* unsafe_arena_release_value(); + // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.IdentDecl) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 2, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::api::expr::v1beta1::DeclType* type_; - ::google::api::expr::v1beta1::Expr* value_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::google::api::expr::v1beta1::DeclType* type_; + ::google::api::expr::v1beta1::Expr* value_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class FunctionDecl final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.FunctionDecl) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.FunctionDecl) */ { public: inline FunctionDecl() : FunctionDecl(nullptr) {} ~FunctionDecl() override; - template - explicit PROTOBUF_CONSTEXPR FunctionDecl(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR FunctionDecl(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline FunctionDecl(const FunctionDecl& from) - : FunctionDecl(nullptr, from) {} + FunctionDecl(const FunctionDecl& from); FunctionDecl(FunctionDecl&& from) noexcept : FunctionDecl() { *this = ::std::move(from); @@ -521,9 +682,9 @@ class FunctionDecl final : } inline FunctionDecl& operator=(FunctionDecl&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -533,22 +694,13 @@ class FunctionDecl final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const FunctionDecl& default_instance() { @@ -567,65 +719,63 @@ class FunctionDecl final : inline void Swap(FunctionDecl* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(FunctionDecl* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - FunctionDecl* New(::google::protobuf::Arena* arena = nullptr) const final { + FunctionDecl* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const FunctionDecl& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const FunctionDecl& from) { - FunctionDecl::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const FunctionDecl& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(FunctionDecl* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "google.api.expr.v1beta1.FunctionDecl"; } protected: - explicit FunctionDecl(::google::protobuf::Arena* arena); - FunctionDecl(::google::protobuf::Arena* arena, const FunctionDecl& from); + explicit FunctionDecl(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -640,643 +790,334 @@ class FunctionDecl final : int args_size() const; private: int _internal_args_size() const; - public: - void clear_args() ; + void clear_args(); ::google::api::expr::v1beta1::IdentDecl* mutable_args(int index); - ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1beta1::IdentDecl >* + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::IdentDecl >* mutable_args(); private: - const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::IdentDecl>& _internal_args() const; - ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::IdentDecl>* _internal_mutable_args(); + const ::google::api::expr::v1beta1::IdentDecl& _internal_args(int index) const; + ::google::api::expr::v1beta1::IdentDecl* _internal_add_args(); public: const ::google::api::expr::v1beta1::IdentDecl& args(int index) const; ::google::api::expr::v1beta1::IdentDecl* add_args(); - const ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1beta1::IdentDecl >& + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::IdentDecl >& args() const; + // .google.api.expr.v1beta1.DeclType return_type = 2 [json_name = "returnType"]; bool has_return_type() const; - void clear_return_type() ; + private: + bool _internal_has_return_type() const; + public: + void clear_return_type(); const ::google::api::expr::v1beta1::DeclType& return_type() const; PROTOBUF_NODISCARD ::google::api::expr::v1beta1::DeclType* release_return_type(); ::google::api::expr::v1beta1::DeclType* mutable_return_type(); - void set_allocated_return_type(::google::api::expr::v1beta1::DeclType* value); - void unsafe_arena_set_allocated_return_type(::google::api::expr::v1beta1::DeclType* value); - ::google::api::expr::v1beta1::DeclType* unsafe_arena_release_return_type(); - + void set_allocated_return_type(::google::api::expr::v1beta1::DeclType* return_type); private: const ::google::api::expr::v1beta1::DeclType& _internal_return_type() const; ::google::api::expr::v1beta1::DeclType* _internal_mutable_return_type(); - public: + void unsafe_arena_set_allocated_return_type( + ::google::api::expr::v1beta1::DeclType* return_type); + ::google::api::expr::v1beta1::DeclType* unsafe_arena_release_return_type(); + // bool receiver_function = 3 [json_name = "receiverFunction"]; - void clear_receiver_function() ; + void clear_receiver_function(); bool receiver_function() const; void set_receiver_function(bool value); - private: bool _internal_receiver_function() const; void _internal_set_receiver_function(bool value); - - public: - // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.FunctionDecl) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 2, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1beta1::IdentDecl > args_; - ::google::api::expr::v1beta1::DeclType* return_type_; - bool receiver_function_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto; -};// ------------------------------------------------------------------- - -class Decl final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.Decl) */ { - public: - inline Decl() : Decl(nullptr) {} - ~Decl() override; - template - explicit PROTOBUF_CONSTEXPR Decl(::google::protobuf::internal::ConstantInitialized); - - inline Decl(const Decl& from) - : Decl(nullptr, from) {} - Decl(Decl&& from) noexcept - : Decl() { - *this = ::std::move(from); - } - - inline Decl& operator=(const Decl& from) { - CopyFrom(from); - return *this; - } - inline Decl& operator=(Decl&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const Decl& default_instance() { - return *internal_default_instance(); - } - enum KindCase { - kIdent = 4, - kFunction = 5, - KIND_NOT_SET = 0, - }; - - static inline const Decl* internal_default_instance() { - return reinterpret_cast( - &_Decl_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(Decl& a, Decl& b) { - a.Swap(&b); - } - inline void Swap(Decl* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Decl* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Decl* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Decl& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Decl& from) { - Decl::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(Decl* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.expr.v1beta1.Decl"; - } - protected: - explicit Decl(::google::protobuf::Arena* arena); - Decl(::google::protobuf::Arena* arena, const Decl& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kNameFieldNumber = 2, - kDocFieldNumber = 3, - kIdFieldNumber = 1, - kIdentFieldNumber = 4, - kFunctionFieldNumber = 5, - }; - // string name = 2 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - - public: - // string doc = 3 [json_name = "doc"]; - void clear_doc() ; - const std::string& doc() const; - template - void set_doc(Arg_&& arg, Args_... args); - std::string* mutable_doc(); - PROTOBUF_NODISCARD std::string* release_doc(); - void set_allocated_doc(std::string* value); - - private: - const std::string& _internal_doc() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_doc( - const std::string& value); - std::string* _internal_mutable_doc(); - - public: - // int32 id = 1 [json_name = "id"]; - void clear_id() ; - ::int32_t id() const; - void set_id(::int32_t value); - - private: - ::int32_t _internal_id() const; - void _internal_set_id(::int32_t value); - - public: - // .google.api.expr.v1beta1.IdentDecl ident = 4 [json_name = "ident"]; - bool has_ident() const; - private: - bool _internal_has_ident() const; - - public: - void clear_ident() ; - const ::google::api::expr::v1beta1::IdentDecl& ident() const; - PROTOBUF_NODISCARD ::google::api::expr::v1beta1::IdentDecl* release_ident(); - ::google::api::expr::v1beta1::IdentDecl* mutable_ident(); - void set_allocated_ident(::google::api::expr::v1beta1::IdentDecl* value); - void unsafe_arena_set_allocated_ident(::google::api::expr::v1beta1::IdentDecl* value); - ::google::api::expr::v1beta1::IdentDecl* unsafe_arena_release_ident(); - - private: - const ::google::api::expr::v1beta1::IdentDecl& _internal_ident() const; - ::google::api::expr::v1beta1::IdentDecl* _internal_mutable_ident(); - - public: - // .google.api.expr.v1beta1.FunctionDecl function = 5 [json_name = "function"]; - bool has_function() const; - private: - bool _internal_has_function() const; - - public: - void clear_function() ; - const ::google::api::expr::v1beta1::FunctionDecl& function() const; - PROTOBUF_NODISCARD ::google::api::expr::v1beta1::FunctionDecl* release_function(); - ::google::api::expr::v1beta1::FunctionDecl* mutable_function(); - void set_allocated_function(::google::api::expr::v1beta1::FunctionDecl* value); - void unsafe_arena_set_allocated_function(::google::api::expr::v1beta1::FunctionDecl* value); - ::google::api::expr::v1beta1::FunctionDecl* unsafe_arena_release_function(); - - private: - const ::google::api::expr::v1beta1::FunctionDecl& _internal_function() const; - ::google::api::expr::v1beta1::FunctionDecl* _internal_mutable_function(); - - public: - void clear_kind(); - KindCase kind_case() const; - // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.Decl) + // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.FunctionDecl) private: class _Internal; - void set_has_ident(); - void set_has_function(); - inline bool has_kind() const; - inline void clear_has_kind(); - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 5, 2, - 44, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr doc_; - ::int32_t id_; - union KindUnion { - constexpr KindUnion() : _constinit_{} {} - ::google::protobuf::internal::ConstantInitialized _constinit_; - ::google::api::expr::v1beta1::IdentDecl* ident_; - ::google::api::expr::v1beta1::FunctionDecl* function_; - } kind_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t _oneof_case_[1]; - - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::IdentDecl > args_; + ::google::api::expr::v1beta1::DeclType* return_type_; + bool receiver_function_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto; }; - // =================================================================== - - // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ -// ------------------------------------------------------------------- - // Decl // int32 id = 1 [json_name = "id"]; inline void Decl::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_ = 0; + id_ = 0; } -inline ::int32_t Decl::id() const { +inline int32_t Decl::_internal_id() const { + return id_; +} +inline int32_t Decl::id() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Decl.id) return _internal_id(); } -inline void Decl::set_id(::int32_t value) { +inline void Decl::_internal_set_id(int32_t value) { + + id_ = value; +} +inline void Decl::set_id(int32_t value) { _internal_set_id(value); // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Decl.id) } -inline ::int32_t Decl::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_; -} -inline void Decl::_internal_set_id(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_ = value; -} // string name = 2 [json_name = "name"]; inline void Decl::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& Decl::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Decl::name() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Decl.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void Decl::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Decl::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Decl.name) } -inline std::string* Decl::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Decl::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Decl.name) return _s; } inline const std::string& Decl::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void Decl::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* Decl::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* Decl::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Decl.name) - return _impl_.name_.Release(); -} -inline void Decl::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void Decl::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:google.api.expr.v1beta1.Decl.name) } // string doc = 3 [json_name = "doc"]; inline void Decl::clear_doc() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.doc_.ClearToEmpty(); + doc_.ClearToEmpty(); } -inline const std::string& Decl::doc() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Decl::doc() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Decl.doc) return _internal_doc(); } -template -inline PROTOBUF_ALWAYS_INLINE void Decl::set_doc(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.doc_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Decl::set_doc(ArgT0&& arg0, ArgT... args) { + + doc_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Decl.doc) } -inline std::string* Decl::mutable_doc() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Decl::mutable_doc() { std::string* _s = _internal_mutable_doc(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Decl.doc) return _s; } inline const std::string& Decl::_internal_doc() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.doc_.Get(); + return doc_.Get(); } inline void Decl::_internal_set_doc(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.doc_.Set(value, GetArena()); + + doc_.Set(value, GetArenaForAllocation()); } inline std::string* Decl::_internal_mutable_doc() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.doc_.Mutable( GetArena()); + + return doc_.Mutable(GetArenaForAllocation()); } inline std::string* Decl::release_doc() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Decl.doc) - return _impl_.doc_.Release(); -} -inline void Decl::set_allocated_doc(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.doc_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.doc_.IsDefault()) { - _impl_.doc_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return doc_.Release(); +} +inline void Decl::set_allocated_doc(std::string* doc) { + if (doc != nullptr) { + + } else { + + } + doc_.SetAllocated(doc, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (doc_.IsDefault()) { + doc_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Decl.doc) } // .google.api.expr.v1beta1.IdentDecl ident = 4 [json_name = "ident"]; -inline bool Decl::has_ident() const { - return kind_case() == kIdent; -} inline bool Decl::_internal_has_ident() const { return kind_case() == kIdent; } +inline bool Decl::has_ident() const { + return _internal_has_ident(); +} inline void Decl::set_has_ident() { - _impl_._oneof_case_[0] = kIdent; + _oneof_case_[0] = kIdent; } inline void Decl::clear_ident() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() == kIdent) { - if (GetArena() == nullptr) { - delete _impl_.kind_.ident_; + if (_internal_has_ident()) { + if (GetArenaForAllocation() == nullptr) { + delete kind_.ident_; } clear_has_kind(); } } inline ::google::api::expr::v1beta1::IdentDecl* Decl::release_ident() { // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Decl.ident) - if (kind_case() == kIdent) { + if (_internal_has_ident()) { clear_has_kind(); - auto* temp = _impl_.kind_.ident_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::google::api::expr::v1beta1::IdentDecl* temp = kind_.ident_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.kind_.ident_ = nullptr; + kind_.ident_ = nullptr; return temp; } else { return nullptr; } } inline const ::google::api::expr::v1beta1::IdentDecl& Decl::_internal_ident() const { - return kind_case() == kIdent ? *_impl_.kind_.ident_ : reinterpret_cast<::google::api::expr::v1beta1::IdentDecl&>(::google::api::expr::v1beta1::_IdentDecl_default_instance_); + return _internal_has_ident() + ? *kind_.ident_ + : reinterpret_cast< ::google::api::expr::v1beta1::IdentDecl&>(::google::api::expr::v1beta1::_IdentDecl_default_instance_); } -inline const ::google::api::expr::v1beta1::IdentDecl& Decl::ident() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1beta1::IdentDecl& Decl::ident() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Decl.ident) return _internal_ident(); } inline ::google::api::expr::v1beta1::IdentDecl* Decl::unsafe_arena_release_ident() { // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1beta1.Decl.ident) - if (kind_case() == kIdent) { + if (_internal_has_ident()) { clear_has_kind(); - auto* temp = _impl_.kind_.ident_; - _impl_.kind_.ident_ = nullptr; + ::google::api::expr::v1beta1::IdentDecl* temp = kind_.ident_; + kind_.ident_ = nullptr; return temp; } else { return nullptr; } } -inline void Decl::unsafe_arena_set_allocated_ident(::google::api::expr::v1beta1::IdentDecl* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void Decl::unsafe_arena_set_allocated_ident(::google::api::expr::v1beta1::IdentDecl* ident) { clear_kind(); - if (value) { + if (ident) { set_has_ident(); - _impl_.kind_.ident_ = value; + kind_.ident_ = ident; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.Decl.ident) } inline ::google::api::expr::v1beta1::IdentDecl* Decl::_internal_mutable_ident() { - if (kind_case() != kIdent) { + if (!_internal_has_ident()) { clear_kind(); set_has_ident(); - _impl_.kind_.ident_ = CreateMaybeMessage<::google::api::expr::v1beta1::IdentDecl>(GetArena()); + kind_.ident_ = CreateMaybeMessage< ::google::api::expr::v1beta1::IdentDecl >(GetArenaForAllocation()); } - return _impl_.kind_.ident_; + return kind_.ident_; } -inline ::google::api::expr::v1beta1::IdentDecl* Decl::mutable_ident() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1beta1::IdentDecl* Decl::mutable_ident() { ::google::api::expr::v1beta1::IdentDecl* _msg = _internal_mutable_ident(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Decl.ident) return _msg; } // .google.api.expr.v1beta1.FunctionDecl function = 5 [json_name = "function"]; -inline bool Decl::has_function() const { - return kind_case() == kFunction; -} inline bool Decl::_internal_has_function() const { return kind_case() == kFunction; } +inline bool Decl::has_function() const { + return _internal_has_function(); +} inline void Decl::set_has_function() { - _impl_._oneof_case_[0] = kFunction; + _oneof_case_[0] = kFunction; } inline void Decl::clear_function() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() == kFunction) { - if (GetArena() == nullptr) { - delete _impl_.kind_.function_; + if (_internal_has_function()) { + if (GetArenaForAllocation() == nullptr) { + delete kind_.function_; } clear_has_kind(); } } inline ::google::api::expr::v1beta1::FunctionDecl* Decl::release_function() { // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Decl.function) - if (kind_case() == kFunction) { + if (_internal_has_function()) { clear_has_kind(); - auto* temp = _impl_.kind_.function_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::google::api::expr::v1beta1::FunctionDecl* temp = kind_.function_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.kind_.function_ = nullptr; + kind_.function_ = nullptr; return temp; } else { return nullptr; } } inline const ::google::api::expr::v1beta1::FunctionDecl& Decl::_internal_function() const { - return kind_case() == kFunction ? *_impl_.kind_.function_ : reinterpret_cast<::google::api::expr::v1beta1::FunctionDecl&>(::google::api::expr::v1beta1::_FunctionDecl_default_instance_); + return _internal_has_function() + ? *kind_.function_ + : reinterpret_cast< ::google::api::expr::v1beta1::FunctionDecl&>(::google::api::expr::v1beta1::_FunctionDecl_default_instance_); } -inline const ::google::api::expr::v1beta1::FunctionDecl& Decl::function() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1beta1::FunctionDecl& Decl::function() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Decl.function) return _internal_function(); } inline ::google::api::expr::v1beta1::FunctionDecl* Decl::unsafe_arena_release_function() { // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1beta1.Decl.function) - if (kind_case() == kFunction) { + if (_internal_has_function()) { clear_has_kind(); - auto* temp = _impl_.kind_.function_; - _impl_.kind_.function_ = nullptr; + ::google::api::expr::v1beta1::FunctionDecl* temp = kind_.function_; + kind_.function_ = nullptr; return temp; } else { return nullptr; } } -inline void Decl::unsafe_arena_set_allocated_function(::google::api::expr::v1beta1::FunctionDecl* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void Decl::unsafe_arena_set_allocated_function(::google::api::expr::v1beta1::FunctionDecl* function) { clear_kind(); - if (value) { + if (function) { set_has_function(); - _impl_.kind_.function_ = value; + kind_.function_ = function; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.Decl.function) } inline ::google::api::expr::v1beta1::FunctionDecl* Decl::_internal_mutable_function() { - if (kind_case() != kFunction) { + if (!_internal_has_function()) { clear_kind(); set_has_function(); - _impl_.kind_.function_ = CreateMaybeMessage<::google::api::expr::v1beta1::FunctionDecl>(GetArena()); + kind_.function_ = CreateMaybeMessage< ::google::api::expr::v1beta1::FunctionDecl >(GetArenaForAllocation()); } - return _impl_.kind_.function_; + return kind_.function_; } -inline ::google::api::expr::v1beta1::FunctionDecl* Decl::mutable_function() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1beta1::FunctionDecl* Decl::mutable_function() { ::google::api::expr::v1beta1::FunctionDecl* _msg = _internal_mutable_function(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Decl.function) return _msg; @@ -1286,10 +1127,10 @@ inline bool Decl::has_kind() const { return kind_case() != KIND_NOT_SET; } inline void Decl::clear_has_kind() { - _impl_._oneof_case_[0] = KIND_NOT_SET; + _oneof_case_[0] = KIND_NOT_SET; } inline Decl::KindCase Decl::kind_case() const { - return Decl::KindCase(_impl_._oneof_case_[0]); + return Decl::KindCase(_oneof_case_[0]); } // ------------------------------------------------------------------- @@ -1297,127 +1138,112 @@ inline Decl::KindCase Decl::kind_case() const { // int32 id = 1 [json_name = "id"]; inline void DeclType::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_ = 0; + id_ = 0; } -inline ::int32_t DeclType::id() const { +inline int32_t DeclType::_internal_id() const { + return id_; +} +inline int32_t DeclType::id() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.DeclType.id) return _internal_id(); } -inline void DeclType::set_id(::int32_t value) { +inline void DeclType::_internal_set_id(int32_t value) { + + id_ = value; +} +inline void DeclType::set_id(int32_t value) { _internal_set_id(value); // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.DeclType.id) } -inline ::int32_t DeclType::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_; -} -inline void DeclType::_internal_set_id(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_ = value; -} // string type = 2 [json_name = "type"]; inline void DeclType::clear_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_.ClearToEmpty(); + type_.ClearToEmpty(); } -inline const std::string& DeclType::type() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& DeclType::type() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.DeclType.type) return _internal_type(); } -template -inline PROTOBUF_ALWAYS_INLINE void DeclType::set_type(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.type_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void DeclType::set_type(ArgT0&& arg0, ArgT... args) { + + type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.DeclType.type) } -inline std::string* DeclType::mutable_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* DeclType::mutable_type() { std::string* _s = _internal_mutable_type(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.DeclType.type) return _s; } inline const std::string& DeclType::_internal_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.type_.Get(); + return type_.Get(); } inline void DeclType::_internal_set_type(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.type_.Set(value, GetArena()); + + type_.Set(value, GetArenaForAllocation()); } inline std::string* DeclType::_internal_mutable_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.type_.Mutable( GetArena()); + + return type_.Mutable(GetArenaForAllocation()); } inline std::string* DeclType::release_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.DeclType.type) - return _impl_.type_.Release(); -} -inline void DeclType::set_allocated_type(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.type_.IsDefault()) { - _impl_.type_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return type_.Release(); +} +inline void DeclType::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:google.api.expr.v1beta1.DeclType.type) } // repeated .google.api.expr.v1beta1.DeclType type_params = 4 [json_name = "typeParams"]; inline int DeclType::_internal_type_params_size() const { - return _internal_type_params().size(); + return type_params_.size(); } inline int DeclType::type_params_size() const { return _internal_type_params_size(); } inline void DeclType::clear_type_params() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_params_.Clear(); + type_params_.Clear(); } -inline ::google::api::expr::v1beta1::DeclType* DeclType::mutable_type_params(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1beta1::DeclType* DeclType::mutable_type_params(int index) { // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.DeclType.type_params) - return _internal_mutable_type_params()->Mutable(index); + return type_params_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::DeclType>* DeclType::mutable_type_params() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::DeclType >* +DeclType::mutable_type_params() { // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1beta1.DeclType.type_params) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_type_params(); + return &type_params_; } -inline const ::google::api::expr::v1beta1::DeclType& DeclType::type_params(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1beta1::DeclType& DeclType::_internal_type_params(int index) const { + return type_params_.Get(index); +} +inline const ::google::api::expr::v1beta1::DeclType& DeclType::type_params(int index) const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.DeclType.type_params) - return _internal_type_params().Get(index); + return _internal_type_params(index); +} +inline ::google::api::expr::v1beta1::DeclType* DeclType::_internal_add_type_params() { + return type_params_.Add(); } -inline ::google::api::expr::v1beta1::DeclType* DeclType::add_type_params() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::google::api::expr::v1beta1::DeclType* _add = _internal_mutable_type_params()->Add(); +inline ::google::api::expr::v1beta1::DeclType* DeclType::add_type_params() { + ::google::api::expr::v1beta1::DeclType* _add = _internal_add_type_params(); // @@protoc_insertion_point(field_add:google.api.expr.v1beta1.DeclType.type_params) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::DeclType>& DeclType::type_params() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::DeclType >& +DeclType::type_params() const { // @@protoc_insertion_point(field_list:google.api.expr.v1beta1.DeclType.type_params) - return _internal_type_params(); -} -inline const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::DeclType>& -DeclType::_internal_type_params() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.type_params_; -} -inline ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::DeclType>* -DeclType::_internal_mutable_type_params() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.type_params_; + return type_params_; } // ------------------------------------------------------------------- @@ -1425,189 +1251,177 @@ DeclType::_internal_mutable_type_params() { // IdentDecl // .google.api.expr.v1beta1.DeclType type = 3 [json_name = "type"]; +inline bool IdentDecl::_internal_has_type() const { + return this != internal_default_instance() && type_ != nullptr; +} inline bool IdentDecl::has_type() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.type_ != nullptr); - return value; + return _internal_has_type(); } inline void IdentDecl::clear_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.type_ != nullptr) _impl_.type_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && type_ != nullptr) { + delete type_; + } + type_ = nullptr; } inline const ::google::api::expr::v1beta1::DeclType& IdentDecl::_internal_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::expr::v1beta1::DeclType* p = _impl_.type_; - return p != nullptr ? *p : reinterpret_cast(::google::api::expr::v1beta1::_DeclType_default_instance_); + const ::google::api::expr::v1beta1::DeclType* p = type_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1beta1::_DeclType_default_instance_); } -inline const ::google::api::expr::v1beta1::DeclType& IdentDecl::type() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1beta1::DeclType& IdentDecl::type() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.IdentDecl.type) return _internal_type(); } -inline void IdentDecl::unsafe_arena_set_allocated_type(::google::api::expr::v1beta1::DeclType* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.type_); +inline void IdentDecl::unsafe_arena_set_allocated_type( + ::google::api::expr::v1beta1::DeclType* type) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(type_); } - _impl_.type_ = reinterpret_cast<::google::api::expr::v1beta1::DeclType*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + type_ = type; + if (type) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.IdentDecl.type) } inline ::google::api::expr::v1beta1::DeclType* IdentDecl::release_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::expr::v1beta1::DeclType* released = _impl_.type_; - _impl_.type_ = nullptr; + + ::google::api::expr::v1beta1::DeclType* temp = type_; + type_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::expr::v1beta1::DeclType* IdentDecl::unsafe_arena_release_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.IdentDecl.type) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::expr::v1beta1::DeclType* temp = _impl_.type_; - _impl_.type_ = nullptr; + + ::google::api::expr::v1beta1::DeclType* temp = type_; + type_ = nullptr; return temp; } inline ::google::api::expr::v1beta1::DeclType* IdentDecl::_internal_mutable_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.type_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::expr::v1beta1::DeclType>(GetArena()); - _impl_.type_ = reinterpret_cast<::google::api::expr::v1beta1::DeclType*>(p); + + if (type_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1beta1::DeclType>(GetArenaForAllocation()); + type_ = p; } - return _impl_.type_; + return type_; } -inline ::google::api::expr::v1beta1::DeclType* IdentDecl::mutable_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1beta1::DeclType* IdentDecl::mutable_type() { ::google::api::expr::v1beta1::DeclType* _msg = _internal_mutable_type(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.IdentDecl.type) return _msg; } -inline void IdentDecl::set_allocated_type(::google::api::expr::v1beta1::DeclType* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void IdentDecl::set_allocated_type(::google::api::expr::v1beta1::DeclType* type) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::api::expr::v1beta1::DeclType*>(_impl_.type_); + delete type_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::api::expr::v1beta1::DeclType*>(value)->GetArena(); + if (type) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(type); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + type = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, type, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.type_ = reinterpret_cast<::google::api::expr::v1beta1::DeclType*>(value); + type_ = type; // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.IdentDecl.type) } // .google.api.expr.v1beta1.Expr value = 4 [json_name = "value"]; +inline bool IdentDecl::_internal_has_value() const { + return this != internal_default_instance() && value_ != nullptr; +} inline bool IdentDecl::has_value() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.value_ != nullptr); - return value; + return _internal_has_value(); } inline const ::google::api::expr::v1beta1::Expr& IdentDecl::_internal_value() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::expr::v1beta1::Expr* p = _impl_.value_; - return p != nullptr ? *p : reinterpret_cast(::google::api::expr::v1beta1::_Expr_default_instance_); + const ::google::api::expr::v1beta1::Expr* p = value_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1beta1::_Expr_default_instance_); } -inline const ::google::api::expr::v1beta1::Expr& IdentDecl::value() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1beta1::Expr& IdentDecl::value() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.IdentDecl.value) return _internal_value(); } -inline void IdentDecl::unsafe_arena_set_allocated_value(::google::api::expr::v1beta1::Expr* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.value_); +inline void IdentDecl::unsafe_arena_set_allocated_value( + ::google::api::expr::v1beta1::Expr* value) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(value_); } - _impl_.value_ = reinterpret_cast<::google::api::expr::v1beta1::Expr*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + value_ = value; + if (value) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.IdentDecl.value) } inline ::google::api::expr::v1beta1::Expr* IdentDecl::release_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::api::expr::v1beta1::Expr* released = _impl_.value_; - _impl_.value_ = nullptr; + + ::google::api::expr::v1beta1::Expr* temp = value_; + value_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::expr::v1beta1::Expr* IdentDecl::unsafe_arena_release_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.IdentDecl.value) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::api::expr::v1beta1::Expr* temp = _impl_.value_; - _impl_.value_ = nullptr; + + ::google::api::expr::v1beta1::Expr* temp = value_; + value_ = nullptr; return temp; } inline ::google::api::expr::v1beta1::Expr* IdentDecl::_internal_mutable_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.value_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::expr::v1beta1::Expr>(GetArena()); - _impl_.value_ = reinterpret_cast<::google::api::expr::v1beta1::Expr*>(p); + + if (value_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1beta1::Expr>(GetArenaForAllocation()); + value_ = p; } - return _impl_.value_; + return value_; } -inline ::google::api::expr::v1beta1::Expr* IdentDecl::mutable_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1beta1::Expr* IdentDecl::mutable_value() { ::google::api::expr::v1beta1::Expr* _msg = _internal_mutable_value(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.IdentDecl.value) return _msg; } inline void IdentDecl::set_allocated_value(::google::api::expr::v1beta1::Expr* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.value_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(value_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (value) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(value)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, value, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.value_ = reinterpret_cast<::google::api::expr::v1beta1::Expr*>(value); + value_ = value; // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.IdentDecl.value) } @@ -1617,185 +1431,172 @@ inline void IdentDecl::set_allocated_value(::google::api::expr::v1beta1::Expr* v // repeated .google.api.expr.v1beta1.IdentDecl args = 1 [json_name = "args"]; inline int FunctionDecl::_internal_args_size() const { - return _internal_args().size(); + return args_.size(); } inline int FunctionDecl::args_size() const { return _internal_args_size(); } inline void FunctionDecl::clear_args() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.args_.Clear(); + args_.Clear(); } -inline ::google::api::expr::v1beta1::IdentDecl* FunctionDecl::mutable_args(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1beta1::IdentDecl* FunctionDecl::mutable_args(int index) { // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.FunctionDecl.args) - return _internal_mutable_args()->Mutable(index); + return args_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::IdentDecl>* FunctionDecl::mutable_args() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::IdentDecl >* +FunctionDecl::mutable_args() { // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1beta1.FunctionDecl.args) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_args(); + return &args_; +} +inline const ::google::api::expr::v1beta1::IdentDecl& FunctionDecl::_internal_args(int index) const { + return args_.Get(index); } -inline const ::google::api::expr::v1beta1::IdentDecl& FunctionDecl::args(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1beta1::IdentDecl& FunctionDecl::args(int index) const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.FunctionDecl.args) - return _internal_args().Get(index); + return _internal_args(index); } -inline ::google::api::expr::v1beta1::IdentDecl* FunctionDecl::add_args() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::google::api::expr::v1beta1::IdentDecl* _add = _internal_mutable_args()->Add(); +inline ::google::api::expr::v1beta1::IdentDecl* FunctionDecl::_internal_add_args() { + return args_.Add(); +} +inline ::google::api::expr::v1beta1::IdentDecl* FunctionDecl::add_args() { + ::google::api::expr::v1beta1::IdentDecl* _add = _internal_add_args(); // @@protoc_insertion_point(field_add:google.api.expr.v1beta1.FunctionDecl.args) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::IdentDecl>& FunctionDecl::args() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::IdentDecl >& +FunctionDecl::args() const { // @@protoc_insertion_point(field_list:google.api.expr.v1beta1.FunctionDecl.args) - return _internal_args(); -} -inline const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::IdentDecl>& -FunctionDecl::_internal_args() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.args_; -} -inline ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::IdentDecl>* -FunctionDecl::_internal_mutable_args() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.args_; + return args_; } // .google.api.expr.v1beta1.DeclType return_type = 2 [json_name = "returnType"]; +inline bool FunctionDecl::_internal_has_return_type() const { + return this != internal_default_instance() && return_type_ != nullptr; +} inline bool FunctionDecl::has_return_type() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.return_type_ != nullptr); - return value; + return _internal_has_return_type(); } inline void FunctionDecl::clear_return_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.return_type_ != nullptr) _impl_.return_type_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && return_type_ != nullptr) { + delete return_type_; + } + return_type_ = nullptr; } inline const ::google::api::expr::v1beta1::DeclType& FunctionDecl::_internal_return_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::expr::v1beta1::DeclType* p = _impl_.return_type_; - return p != nullptr ? *p : reinterpret_cast(::google::api::expr::v1beta1::_DeclType_default_instance_); + const ::google::api::expr::v1beta1::DeclType* p = return_type_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1beta1::_DeclType_default_instance_); } -inline const ::google::api::expr::v1beta1::DeclType& FunctionDecl::return_type() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1beta1::DeclType& FunctionDecl::return_type() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.FunctionDecl.return_type) return _internal_return_type(); } -inline void FunctionDecl::unsafe_arena_set_allocated_return_type(::google::api::expr::v1beta1::DeclType* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.return_type_); +inline void FunctionDecl::unsafe_arena_set_allocated_return_type( + ::google::api::expr::v1beta1::DeclType* return_type) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(return_type_); } - _impl_.return_type_ = reinterpret_cast<::google::api::expr::v1beta1::DeclType*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + return_type_ = return_type; + if (return_type) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.FunctionDecl.return_type) } inline ::google::api::expr::v1beta1::DeclType* FunctionDecl::release_return_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::expr::v1beta1::DeclType* released = _impl_.return_type_; - _impl_.return_type_ = nullptr; + + ::google::api::expr::v1beta1::DeclType* temp = return_type_; + return_type_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::expr::v1beta1::DeclType* FunctionDecl::unsafe_arena_release_return_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.FunctionDecl.return_type) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::expr::v1beta1::DeclType* temp = _impl_.return_type_; - _impl_.return_type_ = nullptr; + + ::google::api::expr::v1beta1::DeclType* temp = return_type_; + return_type_ = nullptr; return temp; } inline ::google::api::expr::v1beta1::DeclType* FunctionDecl::_internal_mutable_return_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.return_type_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::expr::v1beta1::DeclType>(GetArena()); - _impl_.return_type_ = reinterpret_cast<::google::api::expr::v1beta1::DeclType*>(p); + + if (return_type_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1beta1::DeclType>(GetArenaForAllocation()); + return_type_ = p; } - return _impl_.return_type_; + return return_type_; } -inline ::google::api::expr::v1beta1::DeclType* FunctionDecl::mutable_return_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1beta1::DeclType* FunctionDecl::mutable_return_type() { ::google::api::expr::v1beta1::DeclType* _msg = _internal_mutable_return_type(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.FunctionDecl.return_type) return _msg; } -inline void FunctionDecl::set_allocated_return_type(::google::api::expr::v1beta1::DeclType* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void FunctionDecl::set_allocated_return_type(::google::api::expr::v1beta1::DeclType* return_type) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::api::expr::v1beta1::DeclType*>(_impl_.return_type_); + delete return_type_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::api::expr::v1beta1::DeclType*>(value)->GetArena(); + if (return_type) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(return_type); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + return_type = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, return_type, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.return_type_ = reinterpret_cast<::google::api::expr::v1beta1::DeclType*>(value); + return_type_ = return_type; // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.FunctionDecl.return_type) } // bool receiver_function = 3 [json_name = "receiverFunction"]; inline void FunctionDecl::clear_receiver_function() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.receiver_function_ = false; + receiver_function_ = false; +} +inline bool FunctionDecl::_internal_receiver_function() const { + return receiver_function_; } inline bool FunctionDecl::receiver_function() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.FunctionDecl.receiver_function) return _internal_receiver_function(); } +inline void FunctionDecl::_internal_set_receiver_function(bool value) { + + receiver_function_ = value; +} inline void FunctionDecl::set_receiver_function(bool value) { _internal_set_receiver_function(value); // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.FunctionDecl.receiver_function) } -inline bool FunctionDecl::_internal_receiver_function() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.receiver_function_; -} -inline void FunctionDecl::_internal_set_receiver_function(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.receiver_function_ = value; -} #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) + } // namespace v1beta1 } // namespace expr } // namespace api } // namespace google - // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1beta1_2fdecl_2eproto diff --git a/src/viam/api/google/api/expr/v1beta1/eval.grpc.pb.cc b/src/viam/api/google/api/expr/v1beta1/eval.grpc.pb.cc index eb289ca03..458a0995c 100644 --- a/src/viam/api/google/api/expr/v1beta1/eval.grpc.pb.cc +++ b/src/viam/api/google/api/expr/v1beta1/eval.grpc.pb.cc @@ -6,19 +6,19 @@ #include "google/api/expr/v1beta1/eval.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace google { namespace api { namespace expr { diff --git a/src/viam/api/google/api/expr/v1beta1/eval.grpc.pb.h b/src/viam/api/google/api/expr/v1beta1/eval.grpc.pb.h index 6fa3475fe..064aec5fa 100644 --- a/src/viam/api/google/api/expr/v1beta1/eval.grpc.pb.h +++ b/src/viam/api/google/api/expr/v1beta1/eval.grpc.pb.h @@ -23,23 +23,24 @@ #include "google/api/expr/v1beta1/eval.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace google { namespace api { diff --git a/src/viam/api/google/api/expr/v1beta1/eval.pb.cc b/src/viam/api/google/api/expr/v1beta1/eval.pb.cc index a1ef9618a..b7fd1a14e 100644 --- a/src/viam/api/google/api/expr/v1beta1/eval.pb.cc +++ b/src/viam/api/google/api/expr/v1beta1/eval.pb.cc @@ -4,514 +4,411 @@ #include "google/api/expr/v1beta1/eval.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace google { namespace api { namespace expr { namespace v1beta1 { - -inline constexpr IdRef::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : id_{0}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR IdRef::IdRef(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct IdRefDefaultTypeInternal { - PROTOBUF_CONSTEXPR IdRefDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~IdRefDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR EvalState_Result::EvalState_Result( + ::_pbi::ConstantInitialized) + : expr_(nullptr) + , value_(0){} +struct EvalState_ResultDefaultTypeInternal { + PROTOBUF_CONSTEXPR EvalState_ResultDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~EvalState_ResultDefaultTypeInternal() {} union { - IdRef _instance; + EvalState_Result _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IdRefDefaultTypeInternal _IdRef_default_instance_; - -inline constexpr UnknownSet::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : exprs_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR UnknownSet::UnknownSet(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct UnknownSetDefaultTypeInternal { - PROTOBUF_CONSTEXPR UnknownSetDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~UnknownSetDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EvalState_ResultDefaultTypeInternal _EvalState_Result_default_instance_; +PROTOBUF_CONSTEXPR EvalState::EvalState( + ::_pbi::ConstantInitialized) + : values_() + , results_(){} +struct EvalStateDefaultTypeInternal { + PROTOBUF_CONSTEXPR EvalStateDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~EvalStateDefaultTypeInternal() {} union { - UnknownSet _instance; + EvalState _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UnknownSetDefaultTypeInternal _UnknownSet_default_instance_; - -inline constexpr EvalState_Result::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - expr_{nullptr}, - value_{0} {} - -template -PROTOBUF_CONSTEXPR EvalState_Result::EvalState_Result(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct EvalState_ResultDefaultTypeInternal { - PROTOBUF_CONSTEXPR EvalState_ResultDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~EvalState_ResultDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EvalStateDefaultTypeInternal _EvalState_default_instance_; +PROTOBUF_CONSTEXPR ExprValue::ExprValue( + ::_pbi::ConstantInitialized) + : _oneof_case_{}{} +struct ExprValueDefaultTypeInternal { + PROTOBUF_CONSTEXPR ExprValueDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ExprValueDefaultTypeInternal() {} union { - EvalState_Result _instance; + ExprValue _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EvalState_ResultDefaultTypeInternal _EvalState_Result_default_instance_; - -inline constexpr ErrorSet::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : errors_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR ErrorSet::ErrorSet(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ExprValueDefaultTypeInternal _ExprValue_default_instance_; +PROTOBUF_CONSTEXPR ErrorSet::ErrorSet( + ::_pbi::ConstantInitialized) + : errors_(){} struct ErrorSetDefaultTypeInternal { - PROTOBUF_CONSTEXPR ErrorSetDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ErrorSetDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~ErrorSetDefaultTypeInternal() {} union { ErrorSet _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ErrorSetDefaultTypeInternal _ErrorSet_default_instance_; - -inline constexpr ExprValue::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : kind_{}, - _cached_size_{0}, - _oneof_case_{} {} - -template -PROTOBUF_CONSTEXPR ExprValue::ExprValue(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ExprValueDefaultTypeInternal { - PROTOBUF_CONSTEXPR ExprValueDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ExprValueDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ErrorSetDefaultTypeInternal _ErrorSet_default_instance_; +PROTOBUF_CONSTEXPR UnknownSet::UnknownSet( + ::_pbi::ConstantInitialized) + : exprs_(){} +struct UnknownSetDefaultTypeInternal { + PROTOBUF_CONSTEXPR UnknownSetDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~UnknownSetDefaultTypeInternal() {} union { - ExprValue _instance; + UnknownSet _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ExprValueDefaultTypeInternal _ExprValue_default_instance_; - -inline constexpr EvalState::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : values_{}, - results_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR EvalState::EvalState(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct EvalStateDefaultTypeInternal { - PROTOBUF_CONSTEXPR EvalStateDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~EvalStateDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UnknownSetDefaultTypeInternal _UnknownSet_default_instance_; +PROTOBUF_CONSTEXPR IdRef::IdRef( + ::_pbi::ConstantInitialized) + : id_(0){} +struct IdRefDefaultTypeInternal { + PROTOBUF_CONSTEXPR IdRefDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~IdRefDefaultTypeInternal() {} union { - EvalState _instance; + IdRef _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EvalStateDefaultTypeInternal _EvalState_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IdRefDefaultTypeInternal _IdRef_default_instance_; } // namespace v1beta1 } // namespace expr } // namespace api } // namespace google static ::_pb::Metadata file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto[6]; -static constexpr const ::_pb::EnumDescriptor** - file_level_enum_descriptors_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto = nullptr; -const ::uint32_t TableStruct_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::EvalState_Result, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::EvalState_Result, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::EvalState_Result, _impl_.expr_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::EvalState_Result, _impl_.value_), - 0, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::EvalState, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::EvalState, _impl_.values_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::EvalState, _impl_.results_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::ExprValue, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::ExprValue, _impl_._oneof_case_[0]), - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::ExprValue, _impl_.kind_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::ErrorSet, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::ErrorSet, _impl_.errors_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::UnknownSet, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::UnknownSet, _impl_.exprs_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::IdRef, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::IdRef, _impl_.id_), +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto = nullptr; + +const uint32_t TableStruct_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::EvalState_Result, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::EvalState_Result, expr_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::EvalState_Result, value_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::EvalState, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::EvalState, values_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::EvalState, results_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::ExprValue, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::ExprValue, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::ExprValue, kind_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::ErrorSet, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::ErrorSet, errors_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::UnknownSet, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::UnknownSet, exprs_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::IdRef, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::IdRef, id_), }; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, 10, -1, sizeof(::google::api::expr::v1beta1::EvalState_Result)}, - {12, -1, -1, sizeof(::google::api::expr::v1beta1::EvalState)}, - {22, -1, -1, sizeof(::google::api::expr::v1beta1::ExprValue)}, - {34, -1, -1, sizeof(::google::api::expr::v1beta1::ErrorSet)}, - {43, -1, -1, sizeof(::google::api::expr::v1beta1::UnknownSet)}, - {52, -1, -1, sizeof(::google::api::expr::v1beta1::IdRef)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::google::api::expr::v1beta1::EvalState_Result)}, + { 8, -1, -1, sizeof(::google::api::expr::v1beta1::EvalState)}, + { 16, -1, -1, sizeof(::google::api::expr::v1beta1::ExprValue)}, + { 26, -1, -1, sizeof(::google::api::expr::v1beta1::ErrorSet)}, + { 33, -1, -1, sizeof(::google::api::expr::v1beta1::UnknownSet)}, + { 40, -1, -1, sizeof(::google::api::expr::v1beta1::IdRef)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::google::api::expr::v1beta1::_EvalState_Result_default_instance_._instance, - &::google::api::expr::v1beta1::_EvalState_default_instance_._instance, - &::google::api::expr::v1beta1::_ExprValue_default_instance_._instance, - &::google::api::expr::v1beta1::_ErrorSet_default_instance_._instance, - &::google::api::expr::v1beta1::_UnknownSet_default_instance_._instance, - &::google::api::expr::v1beta1::_IdRef_default_instance_._instance, + &::google::api::expr::v1beta1::_EvalState_Result_default_instance_._instance, + &::google::api::expr::v1beta1::_EvalState_default_instance_._instance, + &::google::api::expr::v1beta1::_ExprValue_default_instance_._instance, + &::google::api::expr::v1beta1::_ErrorSet_default_instance_._instance, + &::google::api::expr::v1beta1::_UnknownSet_default_instance_._instance, + &::google::api::expr::v1beta1::_IdRef_default_instance_._instance, }; -const char descriptor_table_protodef_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n\"google/api/expr/v1beta1/eval.proto\022\027go" - "ogle.api.expr.v1beta1\032#google/api/expr/v" - "1beta1/value.proto\032\027google/rpc/status.pr" - "oto\"\340\001\n\tEvalState\022:\n\006values\030\001 \003(\0132\".goog" - "le.api.expr.v1beta1.ExprValueR\006values\022C\n" - "\007results\030\003 \003(\0132).google.api.expr.v1beta1" - ".EvalState.ResultR\007results\032R\n\006Result\0222\n\004" - "expr\030\001 \001(\0132\036.google.api.expr.v1beta1.IdR" - "efR\004expr\022\024\n\005value\030\002 \001(\005R\005value\"\307\001\n\tExprV" - "alue\0226\n\005value\030\001 \001(\0132\036.google.api.expr.v1" - "beta1.ValueH\000R\005value\0229\n\005error\030\002 \001(\0132!.go" - "ogle.api.expr.v1beta1.ErrorSetH\000R\005error\022" - "\?\n\007unknown\030\003 \001(\0132#.google.api.expr.v1bet" - "a1.UnknownSetH\000R\007unknownB\006\n\004kind\"6\n\010Erro" - "rSet\022*\n\006errors\030\001 \003(\0132\022.google.rpc.Status" - "R\006errors\"B\n\nUnknownSet\0224\n\005exprs\030\001 \003(\0132\036." - "google.api.expr.v1beta1.IdRefR\005exprs\"\027\n\005" - "IdRef\022\016\n\002id\030\001 \001(\005R\002idB\347\001\n\033com.google.api" - ".expr.v1beta1B\tEvalProtoP\001Z;google.golan" - "g.org/genproto/googleapis/api/expr/v1bet" - "a1;expr\370\001\001\242\002\003GAE\252\002\027Google.Api.Expr.V1bet" - "a1\312\002\027Google\\Api\\Expr\\V1beta1\342\002#Google\\Ap" - "i\\Expr\\V1beta1\\GPBMetadata\352\002\032Google::Api" - "::Expr::V1beta1b\006proto3" -}; -static const ::_pbi::DescriptorTable* const descriptor_table_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto_deps[2] = - { - &::descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto, - &::descriptor_table_google_2frpc_2fstatus_2eproto, + +const char descriptor_table_protodef_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\"google/api/expr/v1beta1/eval.proto\022\027go" + "ogle.api.expr.v1beta1\032#google/api/expr/v" + "1beta1/value.proto\032\027google/rpc/status.pr" + "oto\"\340\001\n\tEvalState\022:\n\006values\030\001 \003(\0132\".goog" + "le.api.expr.v1beta1.ExprValueR\006values\022C\n" + "\007results\030\003 \003(\0132).google.api.expr.v1beta1" + ".EvalState.ResultR\007results\032R\n\006Result\0222\n\004" + "expr\030\001 \001(\0132\036.google.api.expr.v1beta1.IdR" + "efR\004expr\022\024\n\005value\030\002 \001(\005R\005value\"\307\001\n\tExprV" + "alue\0226\n\005value\030\001 \001(\0132\036.google.api.expr.v1" + "beta1.ValueH\000R\005value\0229\n\005error\030\002 \001(\0132!.go" + "ogle.api.expr.v1beta1.ErrorSetH\000R\005error\022" + "\?\n\007unknown\030\003 \001(\0132#.google.api.expr.v1bet" + "a1.UnknownSetH\000R\007unknownB\006\n\004kind\"6\n\010Erro" + "rSet\022*\n\006errors\030\001 \003(\0132\022.google.rpc.Status" + "R\006errors\"B\n\nUnknownSet\0224\n\005exprs\030\001 \003(\0132\036." + "google.api.expr.v1beta1.IdRefR\005exprs\"\027\n\005" + "IdRef\022\016\n\002id\030\001 \001(\005R\002idBj\n\033com.google.api." + "expr.v1beta1B\tEvalProtoP\001Z;google.golang" + ".org/genproto/googleapis/api/expr/v1beta" + "1;expr\370\001\001b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto_deps[2] = { + &::descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto, + &::descriptor_table_google_2frpc_2fstatus_2eproto, }; -static ::absl::once_flag descriptor_table_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto_once; +static ::_pbi::once_flag descriptor_table_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto = { - false, - false, - 943, - descriptor_table_protodef_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto, + false, false, 817, descriptor_table_protodef_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto, "google/api/expr/v1beta1/eval.proto", - &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto_once, - descriptor_table_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto_deps, - 2, - 6, - schemas, - file_default_instances, - TableStruct_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto::offsets, - file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto, - file_level_enum_descriptors_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto, + &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto_once, descriptor_table_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto_deps, 2, 6, + schemas, file_default_instances, TableStruct_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto::offsets, + file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto, file_level_enum_descriptors_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto, file_level_service_descriptors_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto_getter() { return &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto(&descriptor_table_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto(&descriptor_table_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto); namespace google { namespace api { namespace expr { namespace v1beta1 { + // =================================================================== class EvalState_Result::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(EvalState_Result, _impl_._has_bits_); static const ::google::api::expr::v1beta1::IdRef& expr(const EvalState_Result* msg); - static void set_has_expr(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::google::api::expr::v1beta1::IdRef& EvalState_Result::_Internal::expr(const EvalState_Result* msg) { - return *msg->_impl_.expr_; +const ::google::api::expr::v1beta1::IdRef& +EvalState_Result::_Internal::expr(const EvalState_Result* msg) { + return *msg->expr_; } -EvalState_Result::EvalState_Result(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +EvalState_Result::EvalState_Result(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1beta1.EvalState.Result) } -inline PROTOBUF_NDEBUG_INLINE EvalState_Result::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -EvalState_Result::EvalState_Result( - ::google::protobuf::Arena* arena, - const EvalState_Result& from) - : ::google::protobuf::Message(arena) { - EvalState_Result* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.expr_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::api::expr::v1beta1::IdRef>(arena, *from._impl_.expr_) - : nullptr; - _impl_.value_ = from._impl_.value_; - +EvalState_Result::EvalState_Result(const EvalState_Result& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_expr()) { + expr_ = new ::google::api::expr::v1beta1::IdRef(*from.expr_); + } else { + expr_ = nullptr; + } + value_ = from.value_; // @@protoc_insertion_point(copy_constructor:google.api.expr.v1beta1.EvalState.Result) } -inline PROTOBUF_NDEBUG_INLINE EvalState_Result::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void EvalState_Result::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, expr_), - 0, - offsetof(Impl_, value_) - - offsetof(Impl_, expr_) + - sizeof(Impl_::value_)); +inline void EvalState_Result::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&expr_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&value_) - + reinterpret_cast(&expr_)) + sizeof(value_)); } + EvalState_Result::~EvalState_Result() { // @@protoc_insertion_point(destructor:google.api.expr.v1beta1.EvalState.Result) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void EvalState_Result::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.expr_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete expr_; +} + +void EvalState_Result::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void EvalState_Result::Clear() { +void EvalState_Result::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1beta1.EvalState.Result) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.expr_ != nullptr); - _impl_.expr_->Clear(); + if (GetArenaForAllocation() == nullptr && expr_ != nullptr) { + delete expr_; } - _impl_.value_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* EvalState_Result::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + expr_ = nullptr; + value_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* EvalState_Result::_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) { + // .google.api.expr.v1beta1.IdRef expr = 1 [json_name = "expr"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_expr(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int32 value = 2 [json_name = "value"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + value_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 0, 2> EvalState_Result::_table_ = { - { - PROTOBUF_FIELD_OFFSET(EvalState_Result, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_EvalState_Result_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // int32 value = 2 [json_name = "value"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(EvalState_Result, _impl_.value_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(EvalState_Result, _impl_.value_)}}, - // .google.api.expr.v1beta1.IdRef expr = 1 [json_name = "expr"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(EvalState_Result, _impl_.expr_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .google.api.expr.v1beta1.IdRef expr = 1 [json_name = "expr"]; - {PROTOBUF_FIELD_OFFSET(EvalState_Result, _impl_.expr_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // int32 value = 2 [json_name = "value"]; - {PROTOBUF_FIELD_OFFSET(EvalState_Result, _impl_.value_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::expr::v1beta1::IdRef>()}, - }}, {{ - }}, -}; - -::uint8_t* EvalState_Result::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* EvalState_Result::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.EvalState.Result) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .google.api.expr.v1beta1.IdRef expr = 1 [json_name = "expr"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::expr(this), + if (this->_internal_has_expr()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::expr(this), _Internal::expr(this).GetCachedSize(), target, stream); } // int32 value = 2 [json_name = "value"]; if (this->_internal_value() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<2>( - stream, this->_internal_value(), target); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_value(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1beta1.EvalState.Result) return target; } -::size_t EvalState_Result::ByteSizeLong() const { +size_t EvalState_Result::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1beta1.EvalState.Result) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .google.api.expr.v1beta1.IdRef expr = 1 [json_name = "expr"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.expr_); + if (this->_internal_has_expr()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *expr_); } // int32 value = 2 [json_name = "value"]; if (this->_internal_value() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_value()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_value()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData EvalState_Result::_class_data_ = { - EvalState_Result::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EvalState_Result::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + EvalState_Result::MergeImpl }; -const ::google::protobuf::Message::ClassData* EvalState_Result::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EvalState_Result::GetClassData() const { return &_class_data_; } + +void EvalState_Result::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void EvalState_Result::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.EvalState.Result) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void EvalState_Result::MergeFrom(const EvalState_Result& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.EvalState.Result) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_expr()->::google::api::expr::v1beta1::IdRef::MergeFrom( - from._internal_expr()); + if (from._internal_has_expr()) { + _internal_mutable_expr()->::google::api::expr::v1beta1::IdRef::MergeFrom(from._internal_expr()); } if (from._internal_value() != 0) { - _this->_internal_set_value(from._internal_value()); + _internal_set_value(from._internal_value()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void EvalState_Result::CopyFrom(const EvalState_Result& from) { @@ -521,214 +418,212 @@ void EvalState_Result::CopyFrom(const EvalState_Result& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool EvalState_Result::IsInitialized() const { +bool EvalState_Result::IsInitialized() const { return true; } -::_pbi::CachedSize* EvalState_Result::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void EvalState_Result::InternalSwap(EvalState_Result* PROTOBUF_RESTRICT other) { +void EvalState_Result::InternalSwap(EvalState_Result* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(EvalState_Result, _impl_.value_) - + sizeof(EvalState_Result::_impl_.value_) - - PROTOBUF_FIELD_OFFSET(EvalState_Result, _impl_.expr_)>( - reinterpret_cast(&_impl_.expr_), - reinterpret_cast(&other->_impl_.expr_)); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(EvalState_Result, value_) + + sizeof(EvalState_Result::value_) + - PROTOBUF_FIELD_OFFSET(EvalState_Result, expr_)>( + reinterpret_cast(&expr_), + reinterpret_cast(&other->expr_)); } -::google::protobuf::Metadata EvalState_Result::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata EvalState_Result::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto[0]); } + // =================================================================== class EvalState::_Internal { public: }; -EvalState::EvalState(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +EvalState::EvalState(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + values_(arena), + results_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1beta1.EvalState) } -inline PROTOBUF_NDEBUG_INLINE EvalState::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : values_{visibility, arena, from.values_}, - results_{visibility, arena, from.results_}, - _cached_size_{0} {} - -EvalState::EvalState( - ::google::protobuf::Arena* arena, - const EvalState& from) - : ::google::protobuf::Message(arena) { - EvalState* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +EvalState::EvalState(const EvalState& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + values_(from.values_), + results_(from.results_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:google.api.expr.v1beta1.EvalState) } -inline PROTOBUF_NDEBUG_INLINE EvalState::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : values_{visibility, arena}, - results_{visibility, arena}, - _cached_size_{0} {} -inline void EvalState::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void EvalState::SharedCtor() { } + EvalState::~EvalState() { // @@protoc_insertion_point(destructor:google.api.expr.v1beta1.EvalState) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void EvalState::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void EvalState::Clear() { +void EvalState::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void EvalState::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1beta1.EvalState) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.values_.Clear(); - _impl_.results_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* EvalState::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + values_.Clear(); + results_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* EvalState::_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) { + // repeated .google.api.expr.v1beta1.ExprValue values = 1 [json_name = "values"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_values(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + // repeated .google.api.expr.v1beta1.EvalState.Result results = 3 [json_name = "results"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_results(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 2, 2, 0, 2> EvalState::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967290, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_EvalState_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // repeated .google.api.expr.v1beta1.ExprValue values = 1 [json_name = "values"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(EvalState, _impl_.values_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // repeated .google.api.expr.v1beta1.EvalState.Result results = 3 [json_name = "results"]; - {::_pbi::TcParser::FastMtR1, - {26, 63, 1, PROTOBUF_FIELD_OFFSET(EvalState, _impl_.results_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .google.api.expr.v1beta1.ExprValue values = 1 [json_name = "values"]; - {PROTOBUF_FIELD_OFFSET(EvalState, _impl_.values_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated .google.api.expr.v1beta1.EvalState.Result results = 3 [json_name = "results"]; - {PROTOBUF_FIELD_OFFSET(EvalState, _impl_.results_), 0, 1, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::expr::v1beta1::ExprValue>()}, - {::_pbi::TcParser::GetTable<::google::api::expr::v1beta1::EvalState_Result>()}, - }}, {{ - }}, -}; - -::uint8_t* EvalState::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* EvalState::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.EvalState) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .google.api.expr.v1beta1.ExprValue values = 1 [json_name = "values"]; for (unsigned i = 0, n = static_cast(this->_internal_values_size()); i < n; i++) { - const auto& repfield = this->_internal_values().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_values(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } // repeated .google.api.expr.v1beta1.EvalState.Result results = 3 [json_name = "results"]; for (unsigned i = 0, n = static_cast(this->_internal_results_size()); i < n; i++) { - const auto& repfield = this->_internal_results().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_results(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1beta1.EvalState) return target; } -::size_t EvalState::ByteSizeLong() const { +size_t EvalState::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1beta1.EvalState) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .google.api.expr.v1beta1.ExprValue values = 1 [json_name = "values"]; total_size += 1UL * this->_internal_values_size(); - for (const auto& msg : this->_internal_values()) { + for (const auto& msg : this->values_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // repeated .google.api.expr.v1beta1.EvalState.Result results = 3 [json_name = "results"]; total_size += 1UL * this->_internal_results_size(); - for (const auto& msg : this->_internal_results()) { + for (const auto& msg : this->results_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData EvalState::_class_data_ = { - EvalState::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EvalState::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + EvalState::MergeImpl }; -const ::google::protobuf::Message::ClassData* EvalState::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EvalState::GetClassData() const { return &_class_data_; } + +void EvalState::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void EvalState::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.EvalState) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void EvalState::MergeFrom(const EvalState& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.EvalState) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_values()->MergeFrom( - from._internal_values()); - _this->_internal_mutable_results()->MergeFrom( - from._internal_results()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + values_.MergeFrom(from.values_); + results_.MergeFrom(from.results_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void EvalState::CopyFrom(const EvalState& from) { @@ -738,172 +633,170 @@ void EvalState::CopyFrom(const EvalState& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool EvalState::IsInitialized() const { +bool EvalState::IsInitialized() const { return true; } -::_pbi::CachedSize* EvalState::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void EvalState::InternalSwap(EvalState* PROTOBUF_RESTRICT other) { +void EvalState::InternalSwap(EvalState* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.values_.InternalSwap(&other->_impl_.values_); - _impl_.results_.InternalSwap(&other->_impl_.results_); + values_.InternalSwap(&other->values_); + results_.InternalSwap(&other->results_); } -::google::protobuf::Metadata EvalState::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata EvalState::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto[1]); } + // =================================================================== class ExprValue::_Internal { public: - static constexpr ::int32_t kOneofCaseOffset = - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::ExprValue, _impl_._oneof_case_); static const ::google::api::expr::v1beta1::Value& value(const ExprValue* msg); static const ::google::api::expr::v1beta1::ErrorSet& error(const ExprValue* msg); static const ::google::api::expr::v1beta1::UnknownSet& unknown(const ExprValue* msg); }; -const ::google::api::expr::v1beta1::Value& ExprValue::_Internal::value(const ExprValue* msg) { - return *msg->_impl_.kind_.value_; +const ::google::api::expr::v1beta1::Value& +ExprValue::_Internal::value(const ExprValue* msg) { + return *msg->kind_.value_; } -const ::google::api::expr::v1beta1::ErrorSet& ExprValue::_Internal::error(const ExprValue* msg) { - return *msg->_impl_.kind_.error_; +const ::google::api::expr::v1beta1::ErrorSet& +ExprValue::_Internal::error(const ExprValue* msg) { + return *msg->kind_.error_; } -const ::google::api::expr::v1beta1::UnknownSet& ExprValue::_Internal::unknown(const ExprValue* msg) { - return *msg->_impl_.kind_.unknown_; +const ::google::api::expr::v1beta1::UnknownSet& +ExprValue::_Internal::unknown(const ExprValue* msg) { + return *msg->kind_.unknown_; } void ExprValue::set_allocated_value(::google::api::expr::v1beta1::Value* value) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_kind(); if (value) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(value)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, value, submessage_arena); } set_has_value(); - _impl_.kind_.value_ = value; + kind_.value_ = value; } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.ExprValue.value) } void ExprValue::clear_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() == kValue) { - if (GetArena() == nullptr) { - delete _impl_.kind_.value_; + if (_internal_has_value()) { + if (GetArenaForAllocation() == nullptr) { + delete kind_.value_; } clear_has_kind(); } } void ExprValue::set_allocated_error(::google::api::expr::v1beta1::ErrorSet* error) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_kind(); if (error) { - ::google::protobuf::Arena* submessage_arena = error->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(error); if (message_arena != submessage_arena) { - error = ::google::protobuf::internal::GetOwnedMessage(message_arena, error, submessage_arena); + error = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, error, submessage_arena); } set_has_error(); - _impl_.kind_.error_ = error; + kind_.error_ = error; } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.ExprValue.error) } void ExprValue::set_allocated_unknown(::google::api::expr::v1beta1::UnknownSet* unknown) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_kind(); if (unknown) { - ::google::protobuf::Arena* submessage_arena = unknown->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(unknown); if (message_arena != submessage_arena) { - unknown = ::google::protobuf::internal::GetOwnedMessage(message_arena, unknown, submessage_arena); + unknown = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, unknown, submessage_arena); } set_has_unknown(); - _impl_.kind_.unknown_ = unknown; + kind_.unknown_ = unknown; } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.ExprValue.unknown) } -ExprValue::ExprValue(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ExprValue::ExprValue(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1beta1.ExprValue) } -inline PROTOBUF_NDEBUG_INLINE ExprValue::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : kind_{}, - _cached_size_{0}, - _oneof_case_{from._oneof_case_[0]} {} - -ExprValue::ExprValue( - ::google::protobuf::Arena* arena, - const ExprValue& from) - : ::google::protobuf::Message(arena) { - ExprValue* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - switch (kind_case()) { - case KIND_NOT_SET: +ExprValue::ExprValue(const ExprValue& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + clear_has_kind(); + switch (from.kind_case()) { + case kValue: { + _internal_mutable_value()->::google::api::expr::v1beta1::Value::MergeFrom(from._internal_value()); + break; + } + case kError: { + _internal_mutable_error()->::google::api::expr::v1beta1::ErrorSet::MergeFrom(from._internal_error()); break; - case kValue: - _impl_.kind_.value_ = CreateMaybeMessage<::google::api::expr::v1beta1::Value>(arena, *from._impl_.kind_.value_); - break; - case kError: - _impl_.kind_.error_ = CreateMaybeMessage<::google::api::expr::v1beta1::ErrorSet>(arena, *from._impl_.kind_.error_); - break; - case kUnknown: - _impl_.kind_.unknown_ = CreateMaybeMessage<::google::api::expr::v1beta1::UnknownSet>(arena, *from._impl_.kind_.unknown_); - break; + } + case kUnknown: { + _internal_mutable_unknown()->::google::api::expr::v1beta1::UnknownSet::MergeFrom(from._internal_unknown()); + break; + } + case KIND_NOT_SET: { + break; + } } - // @@protoc_insertion_point(copy_constructor:google.api.expr.v1beta1.ExprValue) } -inline PROTOBUF_NDEBUG_INLINE ExprValue::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : kind_{}, - _cached_size_{0}, - _oneof_case_{} {} -inline void ExprValue::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void ExprValue::SharedCtor() { +clear_has_kind(); } + ExprValue::~ExprValue() { // @@protoc_insertion_point(destructor:google.api.expr.v1beta1.ExprValue) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ExprValue::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); if (has_kind()) { clear_kind(); } - _impl_.~Impl_(); +} + +void ExprValue::SetCachedSize(int size) const { + _cached_size_.Set(size); } void ExprValue::clear_kind() { // @@protoc_insertion_point(one_of_clear_start:google.api.expr.v1beta1.ExprValue) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); switch (kind_case()) { case kValue: { - if (GetArena() == nullptr) { - delete _impl_.kind_.value_; + if (GetArenaForAllocation() == nullptr) { + delete kind_.value_; } break; } case kError: { - if (GetArena() == nullptr) { - delete _impl_.kind_.error_; + if (GetArenaForAllocation() == nullptr) { + delete kind_.error_; } break; } case kUnknown: { - if (GetArena() == nullptr) { - delete _impl_.kind_.unknown_; + if (GetArenaForAllocation() == nullptr) { + delete kind_.unknown_; } break; } @@ -911,173 +804,182 @@ void ExprValue::clear_kind() { break; } } - _impl_._oneof_case_[0] = KIND_NOT_SET; + _oneof_case_[0] = KIND_NOT_SET; } -PROTOBUF_NOINLINE void ExprValue::Clear() { +void ExprValue::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1beta1.ExprValue) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; clear_kind(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ExprValue::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ExprValue::_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) { + // .google.api.expr.v1beta1.Value value = 1 [json_name = "value"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_value(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1beta1.ErrorSet error = 2 [json_name = "error"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_error(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1beta1.UnknownSet unknown = 3 [json_name = "unknown"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_unknown(), 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* ExprValue::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.ExprValue) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 3, 3, 0, 2> ExprValue::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 3, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ExprValue_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // .google.api.expr.v1beta1.Value value = 1 [json_name = "value"]; - {PROTOBUF_FIELD_OFFSET(ExprValue, _impl_.kind_.value_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.api.expr.v1beta1.ErrorSet error = 2 [json_name = "error"]; - {PROTOBUF_FIELD_OFFSET(ExprValue, _impl_.kind_.error_), _Internal::kOneofCaseOffset + 0, 1, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.api.expr.v1beta1.UnknownSet unknown = 3 [json_name = "unknown"]; - {PROTOBUF_FIELD_OFFSET(ExprValue, _impl_.kind_.unknown_), _Internal::kOneofCaseOffset + 0, 2, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::expr::v1beta1::Value>()}, - {::_pbi::TcParser::GetTable<::google::api::expr::v1beta1::ErrorSet>()}, - {::_pbi::TcParser::GetTable<::google::api::expr::v1beta1::UnknownSet>()}, - }}, {{ - }}, -}; + // .google.api.expr.v1beta1.Value value = 1 [json_name = "value"]; + if (_internal_has_value()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::value(this), + _Internal::value(this).GetCachedSize(), target, stream); + } -::uint8_t* ExprValue::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.ExprValue) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + // .google.api.expr.v1beta1.ErrorSet error = 2 [json_name = "error"]; + if (_internal_has_error()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::error(this), + _Internal::error(this).GetCachedSize(), target, stream); + } - switch (kind_case()) { - case kValue: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::value(this), - _Internal::value(this).GetCachedSize(), target, stream); - break; - } - case kError: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::error(this), - _Internal::error(this).GetCachedSize(), target, stream); - break; - } - case kUnknown: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::unknown(this), - _Internal::unknown(this).GetCachedSize(), target, stream); - break; - } - default: - break; + // .google.api.expr.v1beta1.UnknownSet unknown = 3 [json_name = "unknown"]; + if (_internal_has_unknown()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::unknown(this), + _Internal::unknown(this).GetCachedSize(), target, stream); } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1beta1.ExprValue) return target; } -::size_t ExprValue::ByteSizeLong() const { +size_t ExprValue::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1beta1.ExprValue) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; switch (kind_case()) { // .google.api.expr.v1beta1.Value value = 1 [json_name = "value"]; case kValue: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.kind_.value_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *kind_.value_); break; } // .google.api.expr.v1beta1.ErrorSet error = 2 [json_name = "error"]; case kError: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.kind_.error_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *kind_.error_); break; } // .google.api.expr.v1beta1.UnknownSet unknown = 3 [json_name = "unknown"]; case kUnknown: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.kind_.unknown_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *kind_.unknown_); break; } case KIND_NOT_SET: { break; } } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ExprValue::_class_data_ = { - ExprValue::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ExprValue::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ExprValue::MergeImpl }; -const ::google::protobuf::Message::ClassData* ExprValue::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ExprValue::GetClassData() const { return &_class_data_; } + +void ExprValue::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ExprValue::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.ExprValue) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ExprValue::MergeFrom(const ExprValue& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.ExprValue) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; switch (from.kind_case()) { case kValue: { - _this->_internal_mutable_value()->::google::api::expr::v1beta1::Value::MergeFrom( - from._internal_value()); + _internal_mutable_value()->::google::api::expr::v1beta1::Value::MergeFrom(from._internal_value()); break; } case kError: { - _this->_internal_mutable_error()->::google::api::expr::v1beta1::ErrorSet::MergeFrom( - from._internal_error()); + _internal_mutable_error()->::google::api::expr::v1beta1::ErrorSet::MergeFrom(from._internal_error()); break; } case kUnknown: { - _this->_internal_mutable_unknown()->::google::api::expr::v1beta1::UnknownSet::MergeFrom( - from._internal_unknown()); + _internal_mutable_unknown()->::google::api::expr::v1beta1::UnknownSet::MergeFrom(from._internal_unknown()); break; } case KIND_NOT_SET: { break; } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ExprValue::CopyFrom(const ExprValue& from) { @@ -1087,25 +989,23 @@ void ExprValue::CopyFrom(const ExprValue& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ExprValue::IsInitialized() const { +bool ExprValue::IsInitialized() const { return true; } -::_pbi::CachedSize* ExprValue::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ExprValue::InternalSwap(ExprValue* PROTOBUF_RESTRICT other) { +void ExprValue::InternalSwap(ExprValue* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.kind_, other->_impl_.kind_); - swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); + swap(kind_, other->kind_); + swap(_oneof_case_[0], other->_oneof_case_[0]); } -::google::protobuf::Metadata ExprValue::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ExprValue::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto[2]); } + // =================================================================== class ErrorSet::_Internal { @@ -1113,159 +1013,155 @@ class ErrorSet::_Internal { }; void ErrorSet::clear_errors() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.errors_.Clear(); + errors_.Clear(); } -ErrorSet::ErrorSet(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ErrorSet::ErrorSet(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + errors_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1beta1.ErrorSet) } -inline PROTOBUF_NDEBUG_INLINE ErrorSet::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : errors_{visibility, arena, from.errors_}, - _cached_size_{0} {} - -ErrorSet::ErrorSet( - ::google::protobuf::Arena* arena, - const ErrorSet& from) - : ::google::protobuf::Message(arena) { - ErrorSet* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +ErrorSet::ErrorSet(const ErrorSet& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + errors_(from.errors_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:google.api.expr.v1beta1.ErrorSet) } -inline PROTOBUF_NDEBUG_INLINE ErrorSet::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : errors_{visibility, arena}, - _cached_size_{0} {} -inline void ErrorSet::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void ErrorSet::SharedCtor() { } + ErrorSet::~ErrorSet() { // @@protoc_insertion_point(destructor:google.api.expr.v1beta1.ErrorSet) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ErrorSet::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void ErrorSet::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void ErrorSet::Clear() { +void ErrorSet::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1beta1.ErrorSet) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.errors_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ErrorSet::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + errors_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ErrorSet::_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) { + // repeated .google.rpc.Status errors = 1 [json_name = "errors"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_errors(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ErrorSet::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ErrorSet_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .google.rpc.Status errors = 1 [json_name = "errors"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ErrorSet, _impl_.errors_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .google.rpc.Status errors = 1 [json_name = "errors"]; - {PROTOBUF_FIELD_OFFSET(ErrorSet, _impl_.errors_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::rpc::Status>()}, - }}, {{ - }}, -}; - -::uint8_t* ErrorSet::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ErrorSet::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.ErrorSet) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .google.rpc.Status errors = 1 [json_name = "errors"]; for (unsigned i = 0, n = static_cast(this->_internal_errors_size()); i < n; i++) { - const auto& repfield = this->_internal_errors().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_errors(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1beta1.ErrorSet) return target; } -::size_t ErrorSet::ByteSizeLong() const { +size_t ErrorSet::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1beta1.ErrorSet) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .google.rpc.Status errors = 1 [json_name = "errors"]; total_size += 1UL * this->_internal_errors_size(); - for (const auto& msg : this->_internal_errors()) { + for (const auto& msg : this->errors_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ErrorSet::_class_data_ = { - ErrorSet::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ErrorSet::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ErrorSet::MergeImpl }; -const ::google::protobuf::Message::ClassData* ErrorSet::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ErrorSet::GetClassData() const { return &_class_data_; } + +void ErrorSet::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ErrorSet::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.ErrorSet) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ErrorSet::MergeFrom(const ErrorSet& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.ErrorSet) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_errors()->MergeFrom( - from._internal_errors()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + errors_.MergeFrom(from.errors_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ErrorSet::CopyFrom(const ErrorSet& from) { @@ -1275,180 +1171,175 @@ void ErrorSet::CopyFrom(const ErrorSet& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ErrorSet::IsInitialized() const { +bool ErrorSet::IsInitialized() const { return true; } -::_pbi::CachedSize* ErrorSet::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ErrorSet::InternalSwap(ErrorSet* PROTOBUF_RESTRICT other) { +void ErrorSet::InternalSwap(ErrorSet* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.errors_.InternalSwap(&other->_impl_.errors_); + errors_.InternalSwap(&other->errors_); } -::google::protobuf::Metadata ErrorSet::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ErrorSet::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto[3]); } + // =================================================================== class UnknownSet::_Internal { public: }; -UnknownSet::UnknownSet(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +UnknownSet::UnknownSet(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + exprs_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1beta1.UnknownSet) } -inline PROTOBUF_NDEBUG_INLINE UnknownSet::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : exprs_{visibility, arena, from.exprs_}, - _cached_size_{0} {} - -UnknownSet::UnknownSet( - ::google::protobuf::Arena* arena, - const UnknownSet& from) - : ::google::protobuf::Message(arena) { - UnknownSet* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +UnknownSet::UnknownSet(const UnknownSet& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + exprs_(from.exprs_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:google.api.expr.v1beta1.UnknownSet) } -inline PROTOBUF_NDEBUG_INLINE UnknownSet::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : exprs_{visibility, arena}, - _cached_size_{0} {} -inline void UnknownSet::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void UnknownSet::SharedCtor() { } + UnknownSet::~UnknownSet() { // @@protoc_insertion_point(destructor:google.api.expr.v1beta1.UnknownSet) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void UnknownSet::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void UnknownSet::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void UnknownSet::Clear() { +void UnknownSet::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1beta1.UnknownSet) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.exprs_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* UnknownSet::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + exprs_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* UnknownSet::_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) { + // repeated .google.api.expr.v1beta1.IdRef exprs = 1 [json_name = "exprs"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_exprs(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> UnknownSet::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_UnknownSet_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .google.api.expr.v1beta1.IdRef exprs = 1 [json_name = "exprs"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(UnknownSet, _impl_.exprs_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .google.api.expr.v1beta1.IdRef exprs = 1 [json_name = "exprs"]; - {PROTOBUF_FIELD_OFFSET(UnknownSet, _impl_.exprs_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::expr::v1beta1::IdRef>()}, - }}, {{ - }}, -}; - -::uint8_t* UnknownSet::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* UnknownSet::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.UnknownSet) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .google.api.expr.v1beta1.IdRef exprs = 1 [json_name = "exprs"]; for (unsigned i = 0, n = static_cast(this->_internal_exprs_size()); i < n; i++) { - const auto& repfield = this->_internal_exprs().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_exprs(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1beta1.UnknownSet) return target; } -::size_t UnknownSet::ByteSizeLong() const { +size_t UnknownSet::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1beta1.UnknownSet) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .google.api.expr.v1beta1.IdRef exprs = 1 [json_name = "exprs"]; total_size += 1UL * this->_internal_exprs_size(); - for (const auto& msg : this->_internal_exprs()) { + for (const auto& msg : this->exprs_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData UnknownSet::_class_data_ = { - UnknownSet::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UnknownSet::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + UnknownSet::MergeImpl }; -const ::google::protobuf::Message::ClassData* UnknownSet::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UnknownSet::GetClassData() const { return &_class_data_; } + +void UnknownSet::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void UnknownSet::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.UnknownSet) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void UnknownSet::MergeFrom(const UnknownSet& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.UnknownSet) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_exprs()->MergeFrom( - from._internal_exprs()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + exprs_.MergeFrom(from.exprs_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void UnknownSet::CopyFrom(const UnknownSet& from) { @@ -1458,167 +1349,168 @@ void UnknownSet::CopyFrom(const UnknownSet& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool UnknownSet::IsInitialized() const { +bool UnknownSet::IsInitialized() const { return true; } -::_pbi::CachedSize* UnknownSet::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void UnknownSet::InternalSwap(UnknownSet* PROTOBUF_RESTRICT other) { +void UnknownSet::InternalSwap(UnknownSet* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.exprs_.InternalSwap(&other->_impl_.exprs_); + exprs_.InternalSwap(&other->exprs_); } -::google::protobuf::Metadata UnknownSet::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata UnknownSet::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto[4]); } + // =================================================================== class IdRef::_Internal { public: }; -IdRef::IdRef(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +IdRef::IdRef(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1beta1.IdRef) } -IdRef::IdRef( - ::google::protobuf::Arena* arena, const IdRef& from) - : IdRef(arena) { - MergeFrom(from); +IdRef::IdRef(const IdRef& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_ = from.id_; + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1beta1.IdRef) } -inline PROTOBUF_NDEBUG_INLINE IdRef::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void IdRef::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.id_ = {}; +inline void IdRef::SharedCtor() { +id_ = 0; } + IdRef::~IdRef() { // @@protoc_insertion_point(destructor:google.api.expr.v1beta1.IdRef) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void IdRef::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void IdRef::Clear() { +void IdRef::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void IdRef::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1beta1.IdRef) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.id_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* IdRef::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + id_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* IdRef::_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) { + // int32 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> IdRef::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_IdRef_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // int32 id = 1 [json_name = "id"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(IdRef, _impl_.id_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(IdRef, _impl_.id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // int32 id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(IdRef, _impl_.id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* IdRef::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* IdRef::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.IdRef) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // int32 id = 1 [json_name = "id"]; if (this->_internal_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<1>( - stream, this->_internal_id(), target); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1beta1.IdRef) return target; } -::size_t IdRef::ByteSizeLong() const { +size_t IdRef::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1beta1.IdRef) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // int32 id = 1 [json_name = "id"]; if (this->_internal_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_id()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData IdRef::_class_data_ = { - IdRef::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData IdRef::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + IdRef::MergeImpl }; -const ::google::protobuf::Message::ClassData* IdRef::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*IdRef::GetClassData() const { return &_class_data_; } + +void IdRef::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void IdRef::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.IdRef) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void IdRef::MergeFrom(const IdRef& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.IdRef) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_id() != 0) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void IdRef::CopyFrom(const IdRef& from) { @@ -1628,32 +1520,53 @@ void IdRef::CopyFrom(const IdRef& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool IdRef::IsInitialized() const { +bool IdRef::IsInitialized() const { return true; } -::_pbi::CachedSize* IdRef::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void IdRef::InternalSwap(IdRef* PROTOBUF_RESTRICT other) { +void IdRef::InternalSwap(IdRef* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.id_, other->_impl_.id_); + swap(id_, other->id_); } -::google::protobuf::Metadata IdRef::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata IdRef::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto[5]); } + // @@protoc_insertion_point(namespace_scope) } // namespace v1beta1 } // namespace expr } // namespace api } // namespace google -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::google::api::expr::v1beta1::EvalState_Result* +Arena::CreateMaybeMessage< ::google::api::expr::v1beta1::EvalState_Result >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1beta1::EvalState_Result >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1beta1::EvalState* +Arena::CreateMaybeMessage< ::google::api::expr::v1beta1::EvalState >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1beta1::EvalState >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1beta1::ExprValue* +Arena::CreateMaybeMessage< ::google::api::expr::v1beta1::ExprValue >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1beta1::ExprValue >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1beta1::ErrorSet* +Arena::CreateMaybeMessage< ::google::api::expr::v1beta1::ErrorSet >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1beta1::ErrorSet >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1beta1::UnknownSet* +Arena::CreateMaybeMessage< ::google::api::expr::v1beta1::UnknownSet >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1beta1::UnknownSet >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1beta1::IdRef* +Arena::CreateMaybeMessage< ::google::api::expr::v1beta1::IdRef >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1beta1::IdRef >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/google/api/expr/v1beta1/eval.pb.h b/src/viam/api/google/api/expr/v1beta1/eval.pb.h index 62dc8481c..68e74816d 100644 --- a/src/viam/api/google/api/expr/v1beta1/eval.pb.h +++ b/src/viam/api/google/api/expr/v1beta1/eval.pb.h @@ -1,62 +1,51 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/expr/v1beta1/eval.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/unknown_field_set.h" + +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include #include "google/api/expr/v1beta1/value.pb.h" #include "google/rpc/status.pb.h" // @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - +#include #define PROTOBUF_INTERNAL_EXPORT_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto; namespace google { namespace api { namespace expr { @@ -82,10 +71,15 @@ extern UnknownSetDefaultTypeInternal _UnknownSet_default_instance_; } // namespace v1beta1 } // namespace expr } // namespace api -namespace protobuf { -} // namespace protobuf } // namespace google - +PROTOBUF_NAMESPACE_OPEN +template<> ::google::api::expr::v1beta1::ErrorSet* Arena::CreateMaybeMessage<::google::api::expr::v1beta1::ErrorSet>(Arena*); +template<> ::google::api::expr::v1beta1::EvalState* Arena::CreateMaybeMessage<::google::api::expr::v1beta1::EvalState>(Arena*); +template<> ::google::api::expr::v1beta1::EvalState_Result* Arena::CreateMaybeMessage<::google::api::expr::v1beta1::EvalState_Result>(Arena*); +template<> ::google::api::expr::v1beta1::ExprValue* Arena::CreateMaybeMessage<::google::api::expr::v1beta1::ExprValue>(Arena*); +template<> ::google::api::expr::v1beta1::IdRef* Arena::CreateMaybeMessage<::google::api::expr::v1beta1::IdRef>(Arena*); +template<> ::google::api::expr::v1beta1::UnknownSet* Arena::CreateMaybeMessage<::google::api::expr::v1beta1::UnknownSet>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace google { namespace api { namespace expr { @@ -93,33 +87,28 @@ namespace v1beta1 { // =================================================================== - -// ------------------------------------------------------------------- - -class IdRef final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.IdRef) */ { +class EvalState_Result final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.EvalState.Result) */ { public: - inline IdRef() : IdRef(nullptr) {} - ~IdRef() override; - template - explicit PROTOBUF_CONSTEXPR IdRef(::google::protobuf::internal::ConstantInitialized); + inline EvalState_Result() : EvalState_Result(nullptr) {} + ~EvalState_Result() override; + explicit PROTOBUF_CONSTEXPR EvalState_Result(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline IdRef(const IdRef& from) - : IdRef(nullptr, from) {} - IdRef(IdRef&& from) noexcept - : IdRef() { + EvalState_Result(const EvalState_Result& from); + EvalState_Result(EvalState_Result&& from) noexcept + : EvalState_Result() { *this = ::std::move(from); } - inline IdRef& operator=(const IdRef& from) { + inline EvalState_Result& operator=(const EvalState_Result& from) { CopyFrom(from); return *this; } - inline IdRef& operator=(IdRef&& from) noexcept { + inline EvalState_Result& operator=(EvalState_Result&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -129,172 +118,160 @@ class IdRef final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const IdRef& default_instance() { + static const EvalState_Result& default_instance() { return *internal_default_instance(); } - static inline const IdRef* internal_default_instance() { - return reinterpret_cast( - &_IdRef_default_instance_); + static inline const EvalState_Result* internal_default_instance() { + return reinterpret_cast( + &_EvalState_Result_default_instance_); } static constexpr int kIndexInFileMessages = - 5; + 0; - friend void swap(IdRef& a, IdRef& b) { + friend void swap(EvalState_Result& a, EvalState_Result& b) { a.Swap(&b); } - inline void Swap(IdRef* other) { + inline void Swap(EvalState_Result* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(IdRef* other) { + void UnsafeArenaSwap(EvalState_Result* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - IdRef* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const IdRef& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const IdRef& from) { - IdRef::MergeImpl(*this, from); + EvalState_Result* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const EvalState_Result& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const EvalState_Result& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(IdRef* other); + void SetCachedSize(int size) const final; + void InternalSwap(EvalState_Result* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.expr.v1beta1.IdRef"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1beta1.EvalState.Result"; } protected: - explicit IdRef(::google::protobuf::Arena* arena); - IdRef(::google::protobuf::Arena* arena, const IdRef& from); + explicit EvalState_Result(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kIdFieldNumber = 1, + kExprFieldNumber = 1, + kValueFieldNumber = 2, }; - // int32 id = 1 [json_name = "id"]; - void clear_id() ; - ::int32_t id() const; - void set_id(::int32_t value); - + // .google.api.expr.v1beta1.IdRef expr = 1 [json_name = "expr"]; + bool has_expr() const; + private: + bool _internal_has_expr() const; + public: + void clear_expr(); + const ::google::api::expr::v1beta1::IdRef& expr() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::IdRef* release_expr(); + ::google::api::expr::v1beta1::IdRef* mutable_expr(); + void set_allocated_expr(::google::api::expr::v1beta1::IdRef* expr); private: - ::int32_t _internal_id() const; - void _internal_set_id(::int32_t value); + const ::google::api::expr::v1beta1::IdRef& _internal_expr() const; + ::google::api::expr::v1beta1::IdRef* _internal_mutable_expr(); + public: + void unsafe_arena_set_allocated_expr( + ::google::api::expr::v1beta1::IdRef* expr); + ::google::api::expr::v1beta1::IdRef* unsafe_arena_release_expr(); + // int32 value = 2 [json_name = "value"]; + void clear_value(); + int32_t value() const; + void set_value(int32_t value); + private: + int32_t _internal_value() const; + void _internal_set_value(int32_t value); public: - // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.IdRef) + + // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.EvalState.Result) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::int32_t id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::google::api::expr::v1beta1::IdRef* expr_; + int32_t value_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class UnknownSet final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.UnknownSet) */ { +class EvalState final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.EvalState) */ { public: - inline UnknownSet() : UnknownSet(nullptr) {} - ~UnknownSet() override; - template - explicit PROTOBUF_CONSTEXPR UnknownSet(::google::protobuf::internal::ConstantInitialized); + inline EvalState() : EvalState(nullptr) {} + ~EvalState() override; + explicit PROTOBUF_CONSTEXPR EvalState(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline UnknownSet(const UnknownSet& from) - : UnknownSet(nullptr, from) {} - UnknownSet(UnknownSet&& from) noexcept - : UnknownSet() { + EvalState(const EvalState& from); + EvalState(EvalState&& from) noexcept + : EvalState() { *this = ::std::move(from); } - inline UnknownSet& operator=(const UnknownSet& from) { + inline EvalState& operator=(const EvalState& from) { CopyFrom(from); return *this; } - inline UnknownSet& operator=(UnknownSet&& from) noexcept { + inline EvalState& operator=(EvalState&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -304,180 +281,171 @@ class UnknownSet final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const UnknownSet& default_instance() { + static const EvalState& default_instance() { return *internal_default_instance(); } - static inline const UnknownSet* internal_default_instance() { - return reinterpret_cast( - &_UnknownSet_default_instance_); + static inline const EvalState* internal_default_instance() { + return reinterpret_cast( + &_EvalState_default_instance_); } static constexpr int kIndexInFileMessages = - 4; + 1; - friend void swap(UnknownSet& a, UnknownSet& b) { + friend void swap(EvalState& a, EvalState& b) { a.Swap(&b); } - inline void Swap(UnknownSet* other) { + inline void Swap(EvalState* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(UnknownSet* other) { + void UnsafeArenaSwap(EvalState* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - UnknownSet* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const UnknownSet& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const UnknownSet& from) { - UnknownSet::MergeImpl(*this, from); + EvalState* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const EvalState& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const EvalState& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(UnknownSet* other); + void SetCachedSize(int size) const final; + void InternalSwap(EvalState* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.expr.v1beta1.UnknownSet"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1beta1.EvalState"; } protected: - explicit UnknownSet(::google::protobuf::Arena* arena); - UnknownSet(::google::protobuf::Arena* arena, const UnknownSet& from); + explicit EvalState(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- + typedef EvalState_Result Result; + // accessors ------------------------------------------------------- enum : int { - kExprsFieldNumber = 1, + kValuesFieldNumber = 1, + kResultsFieldNumber = 3, }; - // repeated .google.api.expr.v1beta1.IdRef exprs = 1 [json_name = "exprs"]; - int exprs_size() const; + // repeated .google.api.expr.v1beta1.ExprValue values = 1 [json_name = "values"]; + int values_size() const; private: - int _internal_exprs_size() const; + int _internal_values_size() const; + public: + void clear_values(); + ::google::api::expr::v1beta1::ExprValue* mutable_values(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::ExprValue >* + mutable_values(); + private: + const ::google::api::expr::v1beta1::ExprValue& _internal_values(int index) const; + ::google::api::expr::v1beta1::ExprValue* _internal_add_values(); + public: + const ::google::api::expr::v1beta1::ExprValue& values(int index) const; + ::google::api::expr::v1beta1::ExprValue* add_values(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::ExprValue >& + values() const; + // repeated .google.api.expr.v1beta1.EvalState.Result results = 3 [json_name = "results"]; + int results_size() const; + private: + int _internal_results_size() const; public: - void clear_exprs() ; - ::google::api::expr::v1beta1::IdRef* mutable_exprs(int index); - ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1beta1::IdRef >* - mutable_exprs(); + void clear_results(); + ::google::api::expr::v1beta1::EvalState_Result* mutable_results(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::EvalState_Result >* + mutable_results(); private: - const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::IdRef>& _internal_exprs() const; - ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::IdRef>* _internal_mutable_exprs(); + const ::google::api::expr::v1beta1::EvalState_Result& _internal_results(int index) const; + ::google::api::expr::v1beta1::EvalState_Result* _internal_add_results(); public: - const ::google::api::expr::v1beta1::IdRef& exprs(int index) const; - ::google::api::expr::v1beta1::IdRef* add_exprs(); - const ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1beta1::IdRef >& - exprs() const; - // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.UnknownSet) + const ::google::api::expr::v1beta1::EvalState_Result& results(int index) const; + ::google::api::expr::v1beta1::EvalState_Result* add_results(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::EvalState_Result >& + results() const; + + // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.EvalState) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1beta1::IdRef > exprs_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::ExprValue > values_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::EvalState_Result > results_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class EvalState_Result final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.EvalState.Result) */ { +class ExprValue final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.ExprValue) */ { public: - inline EvalState_Result() : EvalState_Result(nullptr) {} - ~EvalState_Result() override; - template - explicit PROTOBUF_CONSTEXPR EvalState_Result(::google::protobuf::internal::ConstantInitialized); + inline ExprValue() : ExprValue(nullptr) {} + ~ExprValue() override; + explicit PROTOBUF_CONSTEXPR ExprValue(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline EvalState_Result(const EvalState_Result& from) - : EvalState_Result(nullptr, from) {} - EvalState_Result(EvalState_Result&& from) noexcept - : EvalState_Result() { + ExprValue(const ExprValue& from); + ExprValue(ExprValue&& from) noexcept + : ExprValue() { *this = ::std::move(from); } - inline EvalState_Result& operator=(const EvalState_Result& from) { + inline ExprValue& operator=(const ExprValue& from) { CopyFrom(from); return *this; } - inline EvalState_Result& operator=(EvalState_Result&& from) noexcept { + inline ExprValue& operator=(ExprValue&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -487,176 +455,196 @@ class EvalState_Result final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const EvalState_Result& default_instance() { + static const ExprValue& default_instance() { return *internal_default_instance(); } - static inline const EvalState_Result* internal_default_instance() { - return reinterpret_cast( - &_EvalState_Result_default_instance_); + enum KindCase { + kValue = 1, + kError = 2, + kUnknown = 3, + KIND_NOT_SET = 0, + }; + + static inline const ExprValue* internal_default_instance() { + return reinterpret_cast( + &_ExprValue_default_instance_); } static constexpr int kIndexInFileMessages = - 0; + 2; - friend void swap(EvalState_Result& a, EvalState_Result& b) { + friend void swap(ExprValue& a, ExprValue& b) { a.Swap(&b); } - inline void Swap(EvalState_Result* other) { + inline void Swap(ExprValue* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(EvalState_Result* other) { + void UnsafeArenaSwap(ExprValue* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - EvalState_Result* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const EvalState_Result& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const EvalState_Result& from) { - EvalState_Result::MergeImpl(*this, from); + ExprValue* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ExprValue& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ExprValue& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(EvalState_Result* other); + void SetCachedSize(int size) const final; + void InternalSwap(ExprValue* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.expr.v1beta1.EvalState.Result"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1beta1.ExprValue"; } protected: - explicit EvalState_Result(::google::protobuf::Arena* arena); - EvalState_Result(::google::protobuf::Arena* arena, const EvalState_Result& from); + explicit ExprValue(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kExprFieldNumber = 1, - kValueFieldNumber = 2, + kValueFieldNumber = 1, + kErrorFieldNumber = 2, + kUnknownFieldNumber = 3, }; - // .google.api.expr.v1beta1.IdRef expr = 1 [json_name = "expr"]; - bool has_expr() const; - void clear_expr() ; - const ::google::api::expr::v1beta1::IdRef& expr() const; - PROTOBUF_NODISCARD ::google::api::expr::v1beta1::IdRef* release_expr(); - ::google::api::expr::v1beta1::IdRef* mutable_expr(); - void set_allocated_expr(::google::api::expr::v1beta1::IdRef* value); - void unsafe_arena_set_allocated_expr(::google::api::expr::v1beta1::IdRef* value); - ::google::api::expr::v1beta1::IdRef* unsafe_arena_release_expr(); - + // .google.api.expr.v1beta1.Value value = 1 [json_name = "value"]; + bool has_value() const; private: - const ::google::api::expr::v1beta1::IdRef& _internal_expr() const; - ::google::api::expr::v1beta1::IdRef* _internal_mutable_expr(); - + bool _internal_has_value() const; public: - // int32 value = 2 [json_name = "value"]; - void clear_value() ; - ::int32_t value() const; - void set_value(::int32_t value); + void clear_value(); + const ::google::api::expr::v1beta1::Value& value() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Value* release_value(); + ::google::api::expr::v1beta1::Value* mutable_value(); + void set_allocated_value(::google::api::expr::v1beta1::Value* value); + private: + const ::google::api::expr::v1beta1::Value& _internal_value() const; + ::google::api::expr::v1beta1::Value* _internal_mutable_value(); + public: + void unsafe_arena_set_allocated_value( + ::google::api::expr::v1beta1::Value* value); + ::google::api::expr::v1beta1::Value* unsafe_arena_release_value(); + // .google.api.expr.v1beta1.ErrorSet error = 2 [json_name = "error"]; + bool has_error() const; private: - ::int32_t _internal_value() const; - void _internal_set_value(::int32_t value); + bool _internal_has_error() const; + public: + void clear_error(); + const ::google::api::expr::v1beta1::ErrorSet& error() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::ErrorSet* release_error(); + ::google::api::expr::v1beta1::ErrorSet* mutable_error(); + void set_allocated_error(::google::api::expr::v1beta1::ErrorSet* error); + private: + const ::google::api::expr::v1beta1::ErrorSet& _internal_error() const; + ::google::api::expr::v1beta1::ErrorSet* _internal_mutable_error(); + public: + void unsafe_arena_set_allocated_error( + ::google::api::expr::v1beta1::ErrorSet* error); + ::google::api::expr::v1beta1::ErrorSet* unsafe_arena_release_error(); + // .google.api.expr.v1beta1.UnknownSet unknown = 3 [json_name = "unknown"]; + bool has_unknown() const; + private: + bool _internal_has_unknown() const; public: - // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.EvalState.Result) + void clear_unknown(); + const ::google::api::expr::v1beta1::UnknownSet& unknown() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::UnknownSet* release_unknown(); + ::google::api::expr::v1beta1::UnknownSet* mutable_unknown(); + void set_allocated_unknown(::google::api::expr::v1beta1::UnknownSet* unknown); + private: + const ::google::api::expr::v1beta1::UnknownSet& _internal_unknown() const; + ::google::api::expr::v1beta1::UnknownSet* _internal_mutable_unknown(); + public: + void unsafe_arena_set_allocated_unknown( + ::google::api::expr::v1beta1::UnknownSet* unknown); + ::google::api::expr::v1beta1::UnknownSet* unsafe_arena_release_unknown(); + + void clear_kind(); + KindCase kind_case() const; + // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.ExprValue) private: class _Internal; + void set_has_value(); + void set_has_error(); + void set_has_unknown(); + + inline bool has_kind() const; + inline void clear_has_kind(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + union KindUnion { + constexpr KindUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::google::api::expr::v1beta1::Value* value_; + ::google::api::expr::v1beta1::ErrorSet* error_; + ::google::api::expr::v1beta1::UnknownSet* unknown_; + } kind_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::api::expr::v1beta1::IdRef* expr_; - ::int32_t value_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class ErrorSet final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.ErrorSet) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.ErrorSet) */ { public: inline ErrorSet() : ErrorSet(nullptr) {} ~ErrorSet() override; - template - explicit PROTOBUF_CONSTEXPR ErrorSet(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR ErrorSet(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ErrorSet(const ErrorSet& from) - : ErrorSet(nullptr, from) {} + ErrorSet(const ErrorSet& from); ErrorSet(ErrorSet&& from) noexcept : ErrorSet() { *this = ::std::move(from); @@ -668,9 +656,9 @@ class ErrorSet final : } inline ErrorSet& operator=(ErrorSet&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -680,22 +668,13 @@ class ErrorSet final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const ErrorSet& default_instance() { @@ -714,65 +693,63 @@ class ErrorSet final : inline void Swap(ErrorSet* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(ErrorSet* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ErrorSet* New(::google::protobuf::Arena* arena = nullptr) const final { + ErrorSet* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const ErrorSet& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ErrorSet& from) { - ErrorSet::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ErrorSet& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(ErrorSet* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "google.api.expr.v1beta1.ErrorSet"; } protected: - explicit ErrorSet(::google::protobuf::Arena* arena); - ErrorSet(::google::protobuf::Arena* arena, const ErrorSet& from); + explicit ErrorSet(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -785,75 +762,55 @@ class ErrorSet final : int errors_size() const; private: int _internal_errors_size() const; - public: - void clear_errors() ; + void clear_errors(); ::google::rpc::Status* mutable_errors(int index); - ::google::protobuf::RepeatedPtrField< ::google::rpc::Status >* + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::Status >* mutable_errors(); private: - const ::google::protobuf::RepeatedPtrField<::google::rpc::Status>& _internal_errors() const; - ::google::protobuf::RepeatedPtrField<::google::rpc::Status>* _internal_mutable_errors(); + const ::google::rpc::Status& _internal_errors(int index) const; + ::google::rpc::Status* _internal_add_errors(); public: const ::google::rpc::Status& errors(int index) const; ::google::rpc::Status* add_errors(); - const ::google::protobuf::RepeatedPtrField< ::google::rpc::Status >& + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::Status >& errors() const; + // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.ErrorSet) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::google::rpc::Status > errors_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::Status > errors_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ExprValue final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.ExprValue) */ { - public: - inline ExprValue() : ExprValue(nullptr) {} - ~ExprValue() override; - template - explicit PROTOBUF_CONSTEXPR ExprValue(::google::protobuf::internal::ConstantInitialized); +class UnknownSet final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.UnknownSet) */ { + public: + inline UnknownSet() : UnknownSet(nullptr) {} + ~UnknownSet() override; + explicit PROTOBUF_CONSTEXPR UnknownSet(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ExprValue(const ExprValue& from) - : ExprValue(nullptr, from) {} - ExprValue(ExprValue&& from) noexcept - : ExprValue() { + UnknownSet(const UnknownSet& from); + UnknownSet(UnknownSet&& from) noexcept + : UnknownSet() { *this = ::std::move(from); } - inline ExprValue& operator=(const ExprValue& from) { + inline UnknownSet& operator=(const UnknownSet& from) { CopyFrom(from); return *this; } - inline ExprValue& operator=(ExprValue&& from) noexcept { + inline UnknownSet& operator=(UnknownSet&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -863,244 +820,149 @@ class ExprValue final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ExprValue& default_instance() { + static const UnknownSet& default_instance() { return *internal_default_instance(); } - enum KindCase { - kValue = 1, - kError = 2, - kUnknown = 3, - KIND_NOT_SET = 0, - }; - - static inline const ExprValue* internal_default_instance() { - return reinterpret_cast( - &_ExprValue_default_instance_); + static inline const UnknownSet* internal_default_instance() { + return reinterpret_cast( + &_UnknownSet_default_instance_); } static constexpr int kIndexInFileMessages = - 2; + 4; - friend void swap(ExprValue& a, ExprValue& b) { + friend void swap(UnknownSet& a, UnknownSet& b) { a.Swap(&b); } - inline void Swap(ExprValue* other) { + inline void Swap(UnknownSet* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ExprValue* other) { + void UnsafeArenaSwap(UnknownSet* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ExprValue* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ExprValue& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ExprValue& from) { - ExprValue::MergeImpl(*this, from); + UnknownSet* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const UnknownSet& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const UnknownSet& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ExprValue* other); + void SetCachedSize(int size) const final; + void InternalSwap(UnknownSet* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.expr.v1beta1.ExprValue"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1beta1.UnknownSet"; } protected: - explicit ExprValue(::google::protobuf::Arena* arena); - ExprValue(::google::protobuf::Arena* arena, const ExprValue& from); + explicit UnknownSet(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kValueFieldNumber = 1, - kErrorFieldNumber = 2, - kUnknownFieldNumber = 3, + kExprsFieldNumber = 1, }; - // .google.api.expr.v1beta1.Value value = 1 [json_name = "value"]; - bool has_value() const; - private: - bool _internal_has_value() const; - - public: - void clear_value() ; - const ::google::api::expr::v1beta1::Value& value() const; - PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Value* release_value(); - ::google::api::expr::v1beta1::Value* mutable_value(); - void set_allocated_value(::google::api::expr::v1beta1::Value* value); - void unsafe_arena_set_allocated_value(::google::api::expr::v1beta1::Value* value); - ::google::api::expr::v1beta1::Value* unsafe_arena_release_value(); - - private: - const ::google::api::expr::v1beta1::Value& _internal_value() const; - ::google::api::expr::v1beta1::Value* _internal_mutable_value(); - - public: - // .google.api.expr.v1beta1.ErrorSet error = 2 [json_name = "error"]; - bool has_error() const; - private: - bool _internal_has_error() const; - - public: - void clear_error() ; - const ::google::api::expr::v1beta1::ErrorSet& error() const; - PROTOBUF_NODISCARD ::google::api::expr::v1beta1::ErrorSet* release_error(); - ::google::api::expr::v1beta1::ErrorSet* mutable_error(); - void set_allocated_error(::google::api::expr::v1beta1::ErrorSet* value); - void unsafe_arena_set_allocated_error(::google::api::expr::v1beta1::ErrorSet* value); - ::google::api::expr::v1beta1::ErrorSet* unsafe_arena_release_error(); - + // repeated .google.api.expr.v1beta1.IdRef exprs = 1 [json_name = "exprs"]; + int exprs_size() const; private: - const ::google::api::expr::v1beta1::ErrorSet& _internal_error() const; - ::google::api::expr::v1beta1::ErrorSet* _internal_mutable_error(); - + int _internal_exprs_size() const; public: - // .google.api.expr.v1beta1.UnknownSet unknown = 3 [json_name = "unknown"]; - bool has_unknown() const; + void clear_exprs(); + ::google::api::expr::v1beta1::IdRef* mutable_exprs(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::IdRef >* + mutable_exprs(); private: - bool _internal_has_unknown() const; - + const ::google::api::expr::v1beta1::IdRef& _internal_exprs(int index) const; + ::google::api::expr::v1beta1::IdRef* _internal_add_exprs(); public: - void clear_unknown() ; - const ::google::api::expr::v1beta1::UnknownSet& unknown() const; - PROTOBUF_NODISCARD ::google::api::expr::v1beta1::UnknownSet* release_unknown(); - ::google::api::expr::v1beta1::UnknownSet* mutable_unknown(); - void set_allocated_unknown(::google::api::expr::v1beta1::UnknownSet* value); - void unsafe_arena_set_allocated_unknown(::google::api::expr::v1beta1::UnknownSet* value); - ::google::api::expr::v1beta1::UnknownSet* unsafe_arena_release_unknown(); - - private: - const ::google::api::expr::v1beta1::UnknownSet& _internal_unknown() const; - ::google::api::expr::v1beta1::UnknownSet* _internal_mutable_unknown(); + const ::google::api::expr::v1beta1::IdRef& exprs(int index) const; + ::google::api::expr::v1beta1::IdRef* add_exprs(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::IdRef >& + exprs() const; - public: - void clear_kind(); - KindCase kind_case() const; - // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.ExprValue) + // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.UnknownSet) private: class _Internal; - void set_has_value(); - void set_has_error(); - void set_has_unknown(); - - inline bool has_kind() const; - inline void clear_has_kind(); - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 3, 3, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - union KindUnion { - constexpr KindUnion() : _constinit_{} {} - ::google::protobuf::internal::ConstantInitialized _constinit_; - ::google::api::expr::v1beta1::Value* value_; - ::google::api::expr::v1beta1::ErrorSet* error_; - ::google::api::expr::v1beta1::UnknownSet* unknown_; - } kind_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t _oneof_case_[1]; - - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::IdRef > exprs_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class EvalState final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.EvalState) */ { +class IdRef final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.IdRef) */ { public: - inline EvalState() : EvalState(nullptr) {} - ~EvalState() override; - template - explicit PROTOBUF_CONSTEXPR EvalState(::google::protobuf::internal::ConstantInitialized); + inline IdRef() : IdRef(nullptr) {} + ~IdRef() override; + explicit PROTOBUF_CONSTEXPR IdRef(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline EvalState(const EvalState& from) - : EvalState(nullptr, from) {} - EvalState(EvalState&& from) noexcept - : EvalState() { + IdRef(const IdRef& from); + IdRef(IdRef&& from) noexcept + : IdRef() { *this = ::std::move(from); } - inline EvalState& operator=(const EvalState& from) { + inline IdRef& operator=(const IdRef& from) { CopyFrom(from); return *this; } - inline EvalState& operator=(EvalState&& from) noexcept { + inline IdRef& operator=(IdRef&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1110,312 +972,236 @@ class EvalState final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const EvalState& default_instance() { + static const IdRef& default_instance() { return *internal_default_instance(); } - static inline const EvalState* internal_default_instance() { - return reinterpret_cast( - &_EvalState_default_instance_); + static inline const IdRef* internal_default_instance() { + return reinterpret_cast( + &_IdRef_default_instance_); } static constexpr int kIndexInFileMessages = - 1; + 5; - friend void swap(EvalState& a, EvalState& b) { + friend void swap(IdRef& a, IdRef& b) { a.Swap(&b); } - inline void Swap(EvalState* other) { + inline void Swap(IdRef* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(EvalState* other) { + void UnsafeArenaSwap(IdRef* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - EvalState* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const EvalState& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const EvalState& from) { - EvalState::MergeImpl(*this, from); + IdRef* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const IdRef& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const IdRef& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(EvalState* other); + void SetCachedSize(int size) const final; + void InternalSwap(IdRef* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.expr.v1beta1.EvalState"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1beta1.IdRef"; } protected: - explicit EvalState(::google::protobuf::Arena* arena); - EvalState(::google::protobuf::Arena* arena, const EvalState& from); + explicit IdRef(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- - using Result = EvalState_Result; - // accessors ------------------------------------------------------- enum : int { - kValuesFieldNumber = 1, - kResultsFieldNumber = 3, + kIdFieldNumber = 1, }; - // repeated .google.api.expr.v1beta1.ExprValue values = 1 [json_name = "values"]; - int values_size() const; - private: - int _internal_values_size() const; - - public: - void clear_values() ; - ::google::api::expr::v1beta1::ExprValue* mutable_values(int index); - ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1beta1::ExprValue >* - mutable_values(); + // int32 id = 1 [json_name = "id"]; + void clear_id(); + int32_t id() const; + void set_id(int32_t value); private: - const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::ExprValue>& _internal_values() const; - ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::ExprValue>* _internal_mutable_values(); + int32_t _internal_id() const; + void _internal_set_id(int32_t value); public: - const ::google::api::expr::v1beta1::ExprValue& values(int index) const; - ::google::api::expr::v1beta1::ExprValue* add_values(); - const ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1beta1::ExprValue >& - values() const; - // repeated .google.api.expr.v1beta1.EvalState.Result results = 3 [json_name = "results"]; - int results_size() const; - private: - int _internal_results_size() const; - public: - void clear_results() ; - ::google::api::expr::v1beta1::EvalState_Result* mutable_results(int index); - ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1beta1::EvalState_Result >* - mutable_results(); - private: - const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::EvalState_Result>& _internal_results() const; - ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::EvalState_Result>* _internal_mutable_results(); - public: - const ::google::api::expr::v1beta1::EvalState_Result& results(int index) const; - ::google::api::expr::v1beta1::EvalState_Result* add_results(); - const ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1beta1::EvalState_Result >& - results() const; - // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.EvalState) + // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.IdRef) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 2, 2, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1beta1::ExprValue > values_; - ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1beta1::EvalState_Result > results_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + int32_t id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto; }; - // =================================================================== - - // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ -// ------------------------------------------------------------------- - // EvalState_Result // .google.api.expr.v1beta1.IdRef expr = 1 [json_name = "expr"]; +inline bool EvalState_Result::_internal_has_expr() const { + return this != internal_default_instance() && expr_ != nullptr; +} inline bool EvalState_Result::has_expr() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.expr_ != nullptr); - return value; + return _internal_has_expr(); } inline void EvalState_Result::clear_expr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.expr_ != nullptr) _impl_.expr_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && expr_ != nullptr) { + delete expr_; + } + expr_ = nullptr; } inline const ::google::api::expr::v1beta1::IdRef& EvalState_Result::_internal_expr() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::expr::v1beta1::IdRef* p = _impl_.expr_; - return p != nullptr ? *p : reinterpret_cast(::google::api::expr::v1beta1::_IdRef_default_instance_); + const ::google::api::expr::v1beta1::IdRef* p = expr_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1beta1::_IdRef_default_instance_); } -inline const ::google::api::expr::v1beta1::IdRef& EvalState_Result::expr() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1beta1::IdRef& EvalState_Result::expr() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.EvalState.Result.expr) return _internal_expr(); } -inline void EvalState_Result::unsafe_arena_set_allocated_expr(::google::api::expr::v1beta1::IdRef* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.expr_); +inline void EvalState_Result::unsafe_arena_set_allocated_expr( + ::google::api::expr::v1beta1::IdRef* expr) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(expr_); } - _impl_.expr_ = reinterpret_cast<::google::api::expr::v1beta1::IdRef*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + expr_ = expr; + if (expr) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.EvalState.Result.expr) } inline ::google::api::expr::v1beta1::IdRef* EvalState_Result::release_expr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::expr::v1beta1::IdRef* released = _impl_.expr_; - _impl_.expr_ = nullptr; + + ::google::api::expr::v1beta1::IdRef* temp = expr_; + expr_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::expr::v1beta1::IdRef* EvalState_Result::unsafe_arena_release_expr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.EvalState.Result.expr) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::expr::v1beta1::IdRef* temp = _impl_.expr_; - _impl_.expr_ = nullptr; + + ::google::api::expr::v1beta1::IdRef* temp = expr_; + expr_ = nullptr; return temp; } inline ::google::api::expr::v1beta1::IdRef* EvalState_Result::_internal_mutable_expr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.expr_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::expr::v1beta1::IdRef>(GetArena()); - _impl_.expr_ = reinterpret_cast<::google::api::expr::v1beta1::IdRef*>(p); + + if (expr_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1beta1::IdRef>(GetArenaForAllocation()); + expr_ = p; } - return _impl_.expr_; + return expr_; } -inline ::google::api::expr::v1beta1::IdRef* EvalState_Result::mutable_expr() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1beta1::IdRef* EvalState_Result::mutable_expr() { ::google::api::expr::v1beta1::IdRef* _msg = _internal_mutable_expr(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.EvalState.Result.expr) return _msg; } -inline void EvalState_Result::set_allocated_expr(::google::api::expr::v1beta1::IdRef* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void EvalState_Result::set_allocated_expr(::google::api::expr::v1beta1::IdRef* expr) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::api::expr::v1beta1::IdRef*>(_impl_.expr_); + delete expr_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::api::expr::v1beta1::IdRef*>(value)->GetArena(); + if (expr) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(expr); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + expr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, expr, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.expr_ = reinterpret_cast<::google::api::expr::v1beta1::IdRef*>(value); + expr_ = expr; // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.EvalState.Result.expr) } // int32 value = 2 [json_name = "value"]; inline void EvalState_Result::clear_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.value_ = 0; + value_ = 0; } -inline ::int32_t EvalState_Result::value() const { +inline int32_t EvalState_Result::_internal_value() const { + return value_; +} +inline int32_t EvalState_Result::value() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.EvalState.Result.value) return _internal_value(); } -inline void EvalState_Result::set_value(::int32_t value) { +inline void EvalState_Result::_internal_set_value(int32_t value) { + + value_ = value; +} +inline void EvalState_Result::set_value(int32_t value) { _internal_set_value(value); // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.EvalState.Result.value) } -inline ::int32_t EvalState_Result::_internal_value() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.value_; -} -inline void EvalState_Result::_internal_set_value(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.value_ = value; -} // ------------------------------------------------------------------- @@ -1423,100 +1209,82 @@ inline void EvalState_Result::_internal_set_value(::int32_t value) { // repeated .google.api.expr.v1beta1.ExprValue values = 1 [json_name = "values"]; inline int EvalState::_internal_values_size() const { - return _internal_values().size(); + return values_.size(); } inline int EvalState::values_size() const { return _internal_values_size(); } inline void EvalState::clear_values() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.values_.Clear(); + values_.Clear(); } -inline ::google::api::expr::v1beta1::ExprValue* EvalState::mutable_values(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1beta1::ExprValue* EvalState::mutable_values(int index) { // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.EvalState.values) - return _internal_mutable_values()->Mutable(index); + return values_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::ExprValue>* EvalState::mutable_values() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::ExprValue >* +EvalState::mutable_values() { // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1beta1.EvalState.values) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_values(); + return &values_; } -inline const ::google::api::expr::v1beta1::ExprValue& EvalState::values(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1beta1::ExprValue& EvalState::_internal_values(int index) const { + return values_.Get(index); +} +inline const ::google::api::expr::v1beta1::ExprValue& EvalState::values(int index) const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.EvalState.values) - return _internal_values().Get(index); + return _internal_values(index); +} +inline ::google::api::expr::v1beta1::ExprValue* EvalState::_internal_add_values() { + return values_.Add(); } -inline ::google::api::expr::v1beta1::ExprValue* EvalState::add_values() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::google::api::expr::v1beta1::ExprValue* _add = _internal_mutable_values()->Add(); +inline ::google::api::expr::v1beta1::ExprValue* EvalState::add_values() { + ::google::api::expr::v1beta1::ExprValue* _add = _internal_add_values(); // @@protoc_insertion_point(field_add:google.api.expr.v1beta1.EvalState.values) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::ExprValue>& EvalState::values() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::ExprValue >& +EvalState::values() const { // @@protoc_insertion_point(field_list:google.api.expr.v1beta1.EvalState.values) - return _internal_values(); -} -inline const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::ExprValue>& -EvalState::_internal_values() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.values_; -} -inline ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::ExprValue>* -EvalState::_internal_mutable_values() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.values_; + return values_; } // repeated .google.api.expr.v1beta1.EvalState.Result results = 3 [json_name = "results"]; inline int EvalState::_internal_results_size() const { - return _internal_results().size(); + return results_.size(); } inline int EvalState::results_size() const { return _internal_results_size(); } inline void EvalState::clear_results() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.results_.Clear(); + results_.Clear(); } -inline ::google::api::expr::v1beta1::EvalState_Result* EvalState::mutable_results(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1beta1::EvalState_Result* EvalState::mutable_results(int index) { // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.EvalState.results) - return _internal_mutable_results()->Mutable(index); + return results_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::EvalState_Result>* EvalState::mutable_results() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::EvalState_Result >* +EvalState::mutable_results() { // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1beta1.EvalState.results) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_results(); + return &results_; } -inline const ::google::api::expr::v1beta1::EvalState_Result& EvalState::results(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1beta1::EvalState_Result& EvalState::_internal_results(int index) const { + return results_.Get(index); +} +inline const ::google::api::expr::v1beta1::EvalState_Result& EvalState::results(int index) const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.EvalState.results) - return _internal_results().Get(index); + return _internal_results(index); +} +inline ::google::api::expr::v1beta1::EvalState_Result* EvalState::_internal_add_results() { + return results_.Add(); } -inline ::google::api::expr::v1beta1::EvalState_Result* EvalState::add_results() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::google::api::expr::v1beta1::EvalState_Result* _add = _internal_mutable_results()->Add(); +inline ::google::api::expr::v1beta1::EvalState_Result* EvalState::add_results() { + ::google::api::expr::v1beta1::EvalState_Result* _add = _internal_add_results(); // @@protoc_insertion_point(field_add:google.api.expr.v1beta1.EvalState.results) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::EvalState_Result>& EvalState::results() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::EvalState_Result >& +EvalState::results() const { // @@protoc_insertion_point(field_list:google.api.expr.v1beta1.EvalState.results) - return _internal_results(); -} -inline const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::EvalState_Result>& -EvalState::_internal_results() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.results_; -} -inline ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::EvalState_Result>* -EvalState::_internal_mutable_results() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.results_; + return results_; } // ------------------------------------------------------------------- @@ -1524,219 +1292,214 @@ EvalState::_internal_mutable_results() { // ExprValue // .google.api.expr.v1beta1.Value value = 1 [json_name = "value"]; -inline bool ExprValue::has_value() const { - return kind_case() == kValue; -} inline bool ExprValue::_internal_has_value() const { return kind_case() == kValue; } +inline bool ExprValue::has_value() const { + return _internal_has_value(); +} inline void ExprValue::set_has_value() { - _impl_._oneof_case_[0] = kValue; + _oneof_case_[0] = kValue; } inline ::google::api::expr::v1beta1::Value* ExprValue::release_value() { // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.ExprValue.value) - if (kind_case() == kValue) { + if (_internal_has_value()) { clear_has_kind(); - auto* temp = _impl_.kind_.value_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::google::api::expr::v1beta1::Value* temp = kind_.value_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.kind_.value_ = nullptr; + kind_.value_ = nullptr; return temp; } else { return nullptr; } } inline const ::google::api::expr::v1beta1::Value& ExprValue::_internal_value() const { - return kind_case() == kValue ? *_impl_.kind_.value_ : reinterpret_cast<::google::api::expr::v1beta1::Value&>(::google::api::expr::v1beta1::_Value_default_instance_); + return _internal_has_value() + ? *kind_.value_ + : reinterpret_cast< ::google::api::expr::v1beta1::Value&>(::google::api::expr::v1beta1::_Value_default_instance_); } -inline const ::google::api::expr::v1beta1::Value& ExprValue::value() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1beta1::Value& ExprValue::value() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.ExprValue.value) return _internal_value(); } inline ::google::api::expr::v1beta1::Value* ExprValue::unsafe_arena_release_value() { // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1beta1.ExprValue.value) - if (kind_case() == kValue) { + if (_internal_has_value()) { clear_has_kind(); - auto* temp = _impl_.kind_.value_; - _impl_.kind_.value_ = nullptr; + ::google::api::expr::v1beta1::Value* temp = kind_.value_; + kind_.value_ = nullptr; return temp; } else { return nullptr; } } inline void ExprValue::unsafe_arena_set_allocated_value(::google::api::expr::v1beta1::Value* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. clear_kind(); if (value) { set_has_value(); - _impl_.kind_.value_ = value; + kind_.value_ = value; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.ExprValue.value) } inline ::google::api::expr::v1beta1::Value* ExprValue::_internal_mutable_value() { - if (kind_case() != kValue) { + if (!_internal_has_value()) { clear_kind(); set_has_value(); - _impl_.kind_.value_ = CreateMaybeMessage<::google::api::expr::v1beta1::Value>(GetArena()); + kind_.value_ = CreateMaybeMessage< ::google::api::expr::v1beta1::Value >(GetArenaForAllocation()); } - return _impl_.kind_.value_; + return kind_.value_; } -inline ::google::api::expr::v1beta1::Value* ExprValue::mutable_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1beta1::Value* ExprValue::mutable_value() { ::google::api::expr::v1beta1::Value* _msg = _internal_mutable_value(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.ExprValue.value) return _msg; } // .google.api.expr.v1beta1.ErrorSet error = 2 [json_name = "error"]; -inline bool ExprValue::has_error() const { - return kind_case() == kError; -} inline bool ExprValue::_internal_has_error() const { return kind_case() == kError; } +inline bool ExprValue::has_error() const { + return _internal_has_error(); +} inline void ExprValue::set_has_error() { - _impl_._oneof_case_[0] = kError; + _oneof_case_[0] = kError; } inline void ExprValue::clear_error() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() == kError) { - if (GetArena() == nullptr) { - delete _impl_.kind_.error_; + if (_internal_has_error()) { + if (GetArenaForAllocation() == nullptr) { + delete kind_.error_; } clear_has_kind(); } } inline ::google::api::expr::v1beta1::ErrorSet* ExprValue::release_error() { // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.ExprValue.error) - if (kind_case() == kError) { + if (_internal_has_error()) { clear_has_kind(); - auto* temp = _impl_.kind_.error_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::google::api::expr::v1beta1::ErrorSet* temp = kind_.error_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.kind_.error_ = nullptr; + kind_.error_ = nullptr; return temp; } else { return nullptr; } } inline const ::google::api::expr::v1beta1::ErrorSet& ExprValue::_internal_error() const { - return kind_case() == kError ? *_impl_.kind_.error_ : reinterpret_cast<::google::api::expr::v1beta1::ErrorSet&>(::google::api::expr::v1beta1::_ErrorSet_default_instance_); + return _internal_has_error() + ? *kind_.error_ + : reinterpret_cast< ::google::api::expr::v1beta1::ErrorSet&>(::google::api::expr::v1beta1::_ErrorSet_default_instance_); } -inline const ::google::api::expr::v1beta1::ErrorSet& ExprValue::error() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1beta1::ErrorSet& ExprValue::error() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.ExprValue.error) return _internal_error(); } inline ::google::api::expr::v1beta1::ErrorSet* ExprValue::unsafe_arena_release_error() { // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1beta1.ExprValue.error) - if (kind_case() == kError) { + if (_internal_has_error()) { clear_has_kind(); - auto* temp = _impl_.kind_.error_; - _impl_.kind_.error_ = nullptr; + ::google::api::expr::v1beta1::ErrorSet* temp = kind_.error_; + kind_.error_ = nullptr; return temp; } else { return nullptr; } } -inline void ExprValue::unsafe_arena_set_allocated_error(::google::api::expr::v1beta1::ErrorSet* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void ExprValue::unsafe_arena_set_allocated_error(::google::api::expr::v1beta1::ErrorSet* error) { clear_kind(); - if (value) { + if (error) { set_has_error(); - _impl_.kind_.error_ = value; + kind_.error_ = error; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.ExprValue.error) } inline ::google::api::expr::v1beta1::ErrorSet* ExprValue::_internal_mutable_error() { - if (kind_case() != kError) { + if (!_internal_has_error()) { clear_kind(); set_has_error(); - _impl_.kind_.error_ = CreateMaybeMessage<::google::api::expr::v1beta1::ErrorSet>(GetArena()); + kind_.error_ = CreateMaybeMessage< ::google::api::expr::v1beta1::ErrorSet >(GetArenaForAllocation()); } - return _impl_.kind_.error_; + return kind_.error_; } -inline ::google::api::expr::v1beta1::ErrorSet* ExprValue::mutable_error() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1beta1::ErrorSet* ExprValue::mutable_error() { ::google::api::expr::v1beta1::ErrorSet* _msg = _internal_mutable_error(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.ExprValue.error) return _msg; } // .google.api.expr.v1beta1.UnknownSet unknown = 3 [json_name = "unknown"]; -inline bool ExprValue::has_unknown() const { - return kind_case() == kUnknown; -} inline bool ExprValue::_internal_has_unknown() const { return kind_case() == kUnknown; } +inline bool ExprValue::has_unknown() const { + return _internal_has_unknown(); +} inline void ExprValue::set_has_unknown() { - _impl_._oneof_case_[0] = kUnknown; + _oneof_case_[0] = kUnknown; } inline void ExprValue::clear_unknown() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() == kUnknown) { - if (GetArena() == nullptr) { - delete _impl_.kind_.unknown_; + if (_internal_has_unknown()) { + if (GetArenaForAllocation() == nullptr) { + delete kind_.unknown_; } clear_has_kind(); } } inline ::google::api::expr::v1beta1::UnknownSet* ExprValue::release_unknown() { // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.ExprValue.unknown) - if (kind_case() == kUnknown) { + if (_internal_has_unknown()) { clear_has_kind(); - auto* temp = _impl_.kind_.unknown_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::google::api::expr::v1beta1::UnknownSet* temp = kind_.unknown_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.kind_.unknown_ = nullptr; + kind_.unknown_ = nullptr; return temp; } else { return nullptr; } } inline const ::google::api::expr::v1beta1::UnknownSet& ExprValue::_internal_unknown() const { - return kind_case() == kUnknown ? *_impl_.kind_.unknown_ : reinterpret_cast<::google::api::expr::v1beta1::UnknownSet&>(::google::api::expr::v1beta1::_UnknownSet_default_instance_); + return _internal_has_unknown() + ? *kind_.unknown_ + : reinterpret_cast< ::google::api::expr::v1beta1::UnknownSet&>(::google::api::expr::v1beta1::_UnknownSet_default_instance_); } -inline const ::google::api::expr::v1beta1::UnknownSet& ExprValue::unknown() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1beta1::UnknownSet& ExprValue::unknown() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.ExprValue.unknown) return _internal_unknown(); } inline ::google::api::expr::v1beta1::UnknownSet* ExprValue::unsafe_arena_release_unknown() { // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1beta1.ExprValue.unknown) - if (kind_case() == kUnknown) { + if (_internal_has_unknown()) { clear_has_kind(); - auto* temp = _impl_.kind_.unknown_; - _impl_.kind_.unknown_ = nullptr; + ::google::api::expr::v1beta1::UnknownSet* temp = kind_.unknown_; + kind_.unknown_ = nullptr; return temp; } else { return nullptr; } } -inline void ExprValue::unsafe_arena_set_allocated_unknown(::google::api::expr::v1beta1::UnknownSet* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void ExprValue::unsafe_arena_set_allocated_unknown(::google::api::expr::v1beta1::UnknownSet* unknown) { clear_kind(); - if (value) { + if (unknown) { set_has_unknown(); - _impl_.kind_.unknown_ = value; + kind_.unknown_ = unknown; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.ExprValue.unknown) } inline ::google::api::expr::v1beta1::UnknownSet* ExprValue::_internal_mutable_unknown() { - if (kind_case() != kUnknown) { + if (!_internal_has_unknown()) { clear_kind(); set_has_unknown(); - _impl_.kind_.unknown_ = CreateMaybeMessage<::google::api::expr::v1beta1::UnknownSet>(GetArena()); + kind_.unknown_ = CreateMaybeMessage< ::google::api::expr::v1beta1::UnknownSet >(GetArenaForAllocation()); } - return _impl_.kind_.unknown_; + return kind_.unknown_; } -inline ::google::api::expr::v1beta1::UnknownSet* ExprValue::mutable_unknown() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1beta1::UnknownSet* ExprValue::mutable_unknown() { ::google::api::expr::v1beta1::UnknownSet* _msg = _internal_mutable_unknown(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.ExprValue.unknown) return _msg; @@ -1746,10 +1509,10 @@ inline bool ExprValue::has_kind() const { return kind_case() != KIND_NOT_SET; } inline void ExprValue::clear_has_kind() { - _impl_._oneof_case_[0] = KIND_NOT_SET; + _oneof_case_[0] = KIND_NOT_SET; } inline ExprValue::KindCase ExprValue::kind_case() const { - return ExprValue::KindCase(_impl_._oneof_case_[0]); + return ExprValue::KindCase(_oneof_case_[0]); } // ------------------------------------------------------------------- @@ -1757,47 +1520,39 @@ inline ExprValue::KindCase ExprValue::kind_case() const { // repeated .google.rpc.Status errors = 1 [json_name = "errors"]; inline int ErrorSet::_internal_errors_size() const { - return _internal_errors().size(); + return errors_.size(); } inline int ErrorSet::errors_size() const { return _internal_errors_size(); } -inline ::google::rpc::Status* ErrorSet::mutable_errors(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::rpc::Status* ErrorSet::mutable_errors(int index) { // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.ErrorSet.errors) - return _internal_mutable_errors()->Mutable(index); + return errors_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::google::rpc::Status>* ErrorSet::mutable_errors() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::Status >* +ErrorSet::mutable_errors() { // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1beta1.ErrorSet.errors) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_errors(); + return &errors_; +} +inline const ::google::rpc::Status& ErrorSet::_internal_errors(int index) const { + return errors_.Get(index); } -inline const ::google::rpc::Status& ErrorSet::errors(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::rpc::Status& ErrorSet::errors(int index) const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.ErrorSet.errors) - return _internal_errors().Get(index); + return _internal_errors(index); } -inline ::google::rpc::Status* ErrorSet::add_errors() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::google::rpc::Status* _add = _internal_mutable_errors()->Add(); +inline ::google::rpc::Status* ErrorSet::_internal_add_errors() { + return errors_.Add(); +} +inline ::google::rpc::Status* ErrorSet::add_errors() { + ::google::rpc::Status* _add = _internal_add_errors(); // @@protoc_insertion_point(field_add:google.api.expr.v1beta1.ErrorSet.errors) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::google::rpc::Status>& ErrorSet::errors() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::Status >& +ErrorSet::errors() const { // @@protoc_insertion_point(field_list:google.api.expr.v1beta1.ErrorSet.errors) - return _internal_errors(); -} -inline const ::google::protobuf::RepeatedPtrField<::google::rpc::Status>& -ErrorSet::_internal_errors() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.errors_; -} -inline ::google::protobuf::RepeatedPtrField<::google::rpc::Status>* -ErrorSet::_internal_mutable_errors() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.errors_; + return errors_; } // ------------------------------------------------------------------- @@ -1806,51 +1561,42 @@ ErrorSet::_internal_mutable_errors() { // repeated .google.api.expr.v1beta1.IdRef exprs = 1 [json_name = "exprs"]; inline int UnknownSet::_internal_exprs_size() const { - return _internal_exprs().size(); + return exprs_.size(); } inline int UnknownSet::exprs_size() const { return _internal_exprs_size(); } inline void UnknownSet::clear_exprs() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.exprs_.Clear(); + exprs_.Clear(); } -inline ::google::api::expr::v1beta1::IdRef* UnknownSet::mutable_exprs(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1beta1::IdRef* UnknownSet::mutable_exprs(int index) { // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.UnknownSet.exprs) - return _internal_mutable_exprs()->Mutable(index); + return exprs_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::IdRef>* UnknownSet::mutable_exprs() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::IdRef >* +UnknownSet::mutable_exprs() { // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1beta1.UnknownSet.exprs) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_exprs(); + return &exprs_; +} +inline const ::google::api::expr::v1beta1::IdRef& UnknownSet::_internal_exprs(int index) const { + return exprs_.Get(index); } -inline const ::google::api::expr::v1beta1::IdRef& UnknownSet::exprs(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1beta1::IdRef& UnknownSet::exprs(int index) const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.UnknownSet.exprs) - return _internal_exprs().Get(index); + return _internal_exprs(index); } -inline ::google::api::expr::v1beta1::IdRef* UnknownSet::add_exprs() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::google::api::expr::v1beta1::IdRef* _add = _internal_mutable_exprs()->Add(); +inline ::google::api::expr::v1beta1::IdRef* UnknownSet::_internal_add_exprs() { + return exprs_.Add(); +} +inline ::google::api::expr::v1beta1::IdRef* UnknownSet::add_exprs() { + ::google::api::expr::v1beta1::IdRef* _add = _internal_add_exprs(); // @@protoc_insertion_point(field_add:google.api.expr.v1beta1.UnknownSet.exprs) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::IdRef>& UnknownSet::exprs() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::IdRef >& +UnknownSet::exprs() const { // @@protoc_insertion_point(field_list:google.api.expr.v1beta1.UnknownSet.exprs) - return _internal_exprs(); -} -inline const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::IdRef>& -UnknownSet::_internal_exprs() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.exprs_; -} -inline ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::IdRef>* -UnknownSet::_internal_mutable_exprs() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.exprs_; + return exprs_; } // ------------------------------------------------------------------- @@ -1859,40 +1605,46 @@ UnknownSet::_internal_mutable_exprs() { // int32 id = 1 [json_name = "id"]; inline void IdRef::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_ = 0; + id_ = 0; +} +inline int32_t IdRef::_internal_id() const { + return id_; } -inline ::int32_t IdRef::id() const { +inline int32_t IdRef::id() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.IdRef.id) return _internal_id(); } -inline void IdRef::set_id(::int32_t value) { +inline void IdRef::_internal_set_id(int32_t value) { + + id_ = value; +} +inline void IdRef::set_id(int32_t value) { _internal_set_id(value); // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.IdRef.id) } -inline ::int32_t IdRef::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_; -} -inline void IdRef::_internal_set_id(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_ = value; -} #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) + } // namespace v1beta1 } // namespace expr } // namespace api } // namespace google - // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1beta1_2feval_2eproto diff --git a/src/viam/api/google/api/expr/v1beta1/expr.grpc.pb.cc b/src/viam/api/google/api/expr/v1beta1/expr.grpc.pb.cc index 938663d72..a422ae259 100644 --- a/src/viam/api/google/api/expr/v1beta1/expr.grpc.pb.cc +++ b/src/viam/api/google/api/expr/v1beta1/expr.grpc.pb.cc @@ -6,19 +6,19 @@ #include "google/api/expr/v1beta1/expr.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace google { namespace api { namespace expr { diff --git a/src/viam/api/google/api/expr/v1beta1/expr.grpc.pb.h b/src/viam/api/google/api/expr/v1beta1/expr.grpc.pb.h index 5f1933c5b..97798496b 100644 --- a/src/viam/api/google/api/expr/v1beta1/expr.grpc.pb.h +++ b/src/viam/api/google/api/expr/v1beta1/expr.grpc.pb.h @@ -23,23 +23,24 @@ #include "google/api/expr/v1beta1/expr.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace google { namespace api { diff --git a/src/viam/api/google/api/expr/v1beta1/expr.pb.cc b/src/viam/api/google/api/expr/v1beta1/expr.pb.cc index 0439426b3..be76f2643 100644 --- a/src/viam/api/google/api/expr/v1beta1/expr.pb.cc +++ b/src/viam/api/google/api/expr/v1beta1/expr.pb.cc @@ -4,805 +4,640 @@ #include "google/api/expr/v1beta1/expr.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace google { namespace api { namespace expr { namespace v1beta1 { - -inline constexpr Literal::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : constant_kind_{}, - _cached_size_{0}, - _oneof_case_{} {} - -template -PROTOBUF_CONSTEXPR Literal::Literal(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct LiteralDefaultTypeInternal { - PROTOBUF_CONSTEXPR LiteralDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~LiteralDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR ParsedExpr::ParsedExpr( + ::_pbi::ConstantInitialized) + : syntax_version_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , expr_(nullptr) + , source_info_(nullptr){} +struct ParsedExprDefaultTypeInternal { + PROTOBUF_CONSTEXPR ParsedExprDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ParsedExprDefaultTypeInternal() {} union { - Literal _instance; + ParsedExpr _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LiteralDefaultTypeInternal _Literal_default_instance_; - -inline constexpr Expr_Ident::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR Expr_Ident::Expr_Ident(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ParsedExprDefaultTypeInternal _ParsedExpr_default_instance_; +PROTOBUF_CONSTEXPR Expr_Ident::Expr_Ident( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} struct Expr_IdentDefaultTypeInternal { - PROTOBUF_CONSTEXPR Expr_IdentDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR Expr_IdentDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~Expr_IdentDefaultTypeInternal() {} union { Expr_Ident _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Expr_IdentDefaultTypeInternal _Expr_Ident_default_instance_; - -inline constexpr Expr::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : id_{0}, - expr_kind_{}, - _cached_size_{0}, - _oneof_case_{} {} - -template -PROTOBUF_CONSTEXPR Expr::Expr(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ExprDefaultTypeInternal { - PROTOBUF_CONSTEXPR ExprDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ExprDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Expr_IdentDefaultTypeInternal _Expr_Ident_default_instance_; +PROTOBUF_CONSTEXPR Expr_Select::Expr_Select( + ::_pbi::ConstantInitialized) + : field_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , operand_(nullptr) + , test_only_(false){} +struct Expr_SelectDefaultTypeInternal { + PROTOBUF_CONSTEXPR Expr_SelectDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Expr_SelectDefaultTypeInternal() {} union { - Expr _instance; + Expr_Select _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ExprDefaultTypeInternal _Expr_default_instance_; - -inline constexpr Expr_Call::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - args_{}, - function_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - target_{nullptr} {} - -template -PROTOBUF_CONSTEXPR Expr_Call::Expr_Call(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Expr_SelectDefaultTypeInternal _Expr_Select_default_instance_; +PROTOBUF_CONSTEXPR Expr_Call::Expr_Call( + ::_pbi::ConstantInitialized) + : args_() + , function_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , target_(nullptr){} struct Expr_CallDefaultTypeInternal { - PROTOBUF_CONSTEXPR Expr_CallDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR Expr_CallDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~Expr_CallDefaultTypeInternal() {} union { Expr_Call _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Expr_CallDefaultTypeInternal _Expr_Call_default_instance_; - -inline constexpr Expr_Comprehension::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - iter_var_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - accu_var_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - iter_range_{nullptr}, - accu_init_{nullptr}, - loop_condition_{nullptr}, - loop_step_{nullptr}, - result_{nullptr} {} - -template -PROTOBUF_CONSTEXPR Expr_Comprehension::Expr_Comprehension(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct Expr_ComprehensionDefaultTypeInternal { - PROTOBUF_CONSTEXPR Expr_ComprehensionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~Expr_ComprehensionDefaultTypeInternal() {} - union { - Expr_Comprehension _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Expr_ComprehensionDefaultTypeInternal _Expr_Comprehension_default_instance_; - -inline constexpr Expr_CreateList::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : elements_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR Expr_CreateList::Expr_CreateList(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Expr_CallDefaultTypeInternal _Expr_Call_default_instance_; +PROTOBUF_CONSTEXPR Expr_CreateList::Expr_CreateList( + ::_pbi::ConstantInitialized) + : elements_(){} struct Expr_CreateListDefaultTypeInternal { - PROTOBUF_CONSTEXPR Expr_CreateListDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR Expr_CreateListDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~Expr_CreateListDefaultTypeInternal() {} union { Expr_CreateList _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Expr_CreateListDefaultTypeInternal _Expr_CreateList_default_instance_; - -inline constexpr Expr_CreateStruct::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : entries_{}, - type_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR Expr_CreateStruct::Expr_CreateStruct(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Expr_CreateListDefaultTypeInternal _Expr_CreateList_default_instance_; +PROTOBUF_CONSTEXPR Expr_CreateStruct_Entry::Expr_CreateStruct_Entry( + ::_pbi::ConstantInitialized) + : value_(nullptr) + , id_(0) + , _oneof_case_{}{} +struct Expr_CreateStruct_EntryDefaultTypeInternal { + PROTOBUF_CONSTEXPR Expr_CreateStruct_EntryDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Expr_CreateStruct_EntryDefaultTypeInternal() {} + union { + Expr_CreateStruct_Entry _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Expr_CreateStruct_EntryDefaultTypeInternal _Expr_CreateStruct_Entry_default_instance_; +PROTOBUF_CONSTEXPR Expr_CreateStruct::Expr_CreateStruct( + ::_pbi::ConstantInitialized) + : entries_() + , type_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} struct Expr_CreateStructDefaultTypeInternal { - PROTOBUF_CONSTEXPR Expr_CreateStructDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR Expr_CreateStructDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~Expr_CreateStructDefaultTypeInternal() {} union { Expr_CreateStruct _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Expr_CreateStructDefaultTypeInternal _Expr_CreateStruct_default_instance_; - -inline constexpr Expr_CreateStruct_Entry::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - value_{nullptr}, - id_{0}, - key_kind_{}, - _oneof_case_{} {} - -template -PROTOBUF_CONSTEXPR Expr_CreateStruct_Entry::Expr_CreateStruct_Entry(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct Expr_CreateStruct_EntryDefaultTypeInternal { - PROTOBUF_CONSTEXPR Expr_CreateStruct_EntryDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~Expr_CreateStruct_EntryDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Expr_CreateStructDefaultTypeInternal _Expr_CreateStruct_default_instance_; +PROTOBUF_CONSTEXPR Expr_Comprehension::Expr_Comprehension( + ::_pbi::ConstantInitialized) + : iter_var_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , accu_var_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , iter_range_(nullptr) + , accu_init_(nullptr) + , loop_condition_(nullptr) + , loop_step_(nullptr) + , result_(nullptr){} +struct Expr_ComprehensionDefaultTypeInternal { + PROTOBUF_CONSTEXPR Expr_ComprehensionDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Expr_ComprehensionDefaultTypeInternal() {} union { - Expr_CreateStruct_Entry _instance; + Expr_Comprehension _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Expr_CreateStruct_EntryDefaultTypeInternal _Expr_CreateStruct_Entry_default_instance_; - -inline constexpr Expr_Select::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - field_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - operand_{nullptr}, - test_only_{false} {} - -template -PROTOBUF_CONSTEXPR Expr_Select::Expr_Select(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct Expr_SelectDefaultTypeInternal { - PROTOBUF_CONSTEXPR Expr_SelectDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~Expr_SelectDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Expr_ComprehensionDefaultTypeInternal _Expr_Comprehension_default_instance_; +PROTOBUF_CONSTEXPR Expr::Expr( + ::_pbi::ConstantInitialized) + : id_(0) + , _oneof_case_{}{} +struct ExprDefaultTypeInternal { + PROTOBUF_CONSTEXPR ExprDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ExprDefaultTypeInternal() {} union { - Expr_Select _instance; + Expr _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Expr_SelectDefaultTypeInternal _Expr_Select_default_instance_; - -inline constexpr ParsedExpr::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - syntax_version_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - expr_{nullptr}, - source_info_{nullptr} {} - -template -PROTOBUF_CONSTEXPR ParsedExpr::ParsedExpr(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ParsedExprDefaultTypeInternal { - PROTOBUF_CONSTEXPR ParsedExprDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ParsedExprDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ExprDefaultTypeInternal _Expr_default_instance_; +PROTOBUF_CONSTEXPR Literal::Literal( + ::_pbi::ConstantInitialized) + : _oneof_case_{}{} +struct LiteralDefaultTypeInternal { + PROTOBUF_CONSTEXPR LiteralDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~LiteralDefaultTypeInternal() {} union { - ParsedExpr _instance; + Literal _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ParsedExprDefaultTypeInternal _ParsedExpr_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LiteralDefaultTypeInternal _Literal_default_instance_; } // namespace v1beta1 } // namespace expr } // namespace api } // namespace google static ::_pb::Metadata file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto[10]; -static constexpr const ::_pb::EnumDescriptor** - file_level_enum_descriptors_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto = nullptr; -const ::uint32_t TableStruct_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::ParsedExpr, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::ParsedExpr, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::ParsedExpr, _impl_.expr_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::ParsedExpr, _impl_.source_info_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::ParsedExpr, _impl_.syntax_version_), - 0, - 1, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Ident, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Ident, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Select, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Select, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Select, _impl_.operand_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Select, _impl_.field_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Select, _impl_.test_only_), - 0, - ~0u, - ~0u, - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Call, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Call, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Call, _impl_.target_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Call, _impl_.function_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Call, _impl_.args_), - 0, - ~0u, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_CreateList, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_CreateList, _impl_.elements_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_CreateStruct_Entry, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_CreateStruct_Entry, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_CreateStruct_Entry, _impl_._oneof_case_[0]), - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_CreateStruct_Entry, _impl_.id_), - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_CreateStruct_Entry, _impl_.value_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_CreateStruct_Entry, _impl_.key_kind_), - ~0u, - ~0u, - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_CreateStruct, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_CreateStruct, _impl_.type_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_CreateStruct, _impl_.entries_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Comprehension, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Comprehension, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Comprehension, _impl_.iter_var_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Comprehension, _impl_.iter_range_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Comprehension, _impl_.accu_var_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Comprehension, _impl_.accu_init_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Comprehension, _impl_.loop_condition_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Comprehension, _impl_.loop_step_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Comprehension, _impl_.result_), - ~0u, - 0, - ~0u, - 1, - 2, - 3, - 4, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr, _impl_._oneof_case_[0]), - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr, _impl_.id_), - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr, _impl_.expr_kind_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Literal, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Literal, _impl_._oneof_case_[0]), - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Literal, _impl_.constant_kind_), +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto = nullptr; + +const uint32_t TableStruct_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::ParsedExpr, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::ParsedExpr, expr_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::ParsedExpr, source_info_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::ParsedExpr, syntax_version_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Ident, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Ident, name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Select, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Select, operand_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Select, field_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Select, test_only_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Call, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Call, target_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Call, function_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Call, args_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_CreateList, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_CreateList, elements_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_CreateStruct_Entry, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_CreateStruct_Entry, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_CreateStruct_Entry, id_), + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_CreateStruct_Entry, value_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_CreateStruct_Entry, key_kind_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_CreateStruct, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_CreateStruct, type_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_CreateStruct, entries_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Comprehension, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Comprehension, iter_var_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Comprehension, iter_range_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Comprehension, accu_var_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Comprehension, accu_init_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Comprehension, loop_condition_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Comprehension, loop_step_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_Comprehension, result_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr, id_), + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr, expr_kind_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Literal, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Literal, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Literal, constant_kind_), }; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, 11, -1, sizeof(::google::api::expr::v1beta1::ParsedExpr)}, - {14, -1, -1, sizeof(::google::api::expr::v1beta1::Expr_Ident)}, - {23, 34, -1, sizeof(::google::api::expr::v1beta1::Expr_Select)}, - {37, 48, -1, sizeof(::google::api::expr::v1beta1::Expr_Call)}, - {51, -1, -1, sizeof(::google::api::expr::v1beta1::Expr_CreateList)}, - {60, 73, -1, sizeof(::google::api::expr::v1beta1::Expr_CreateStruct_Entry)}, - {77, -1, -1, sizeof(::google::api::expr::v1beta1::Expr_CreateStruct)}, - {87, 102, -1, sizeof(::google::api::expr::v1beta1::Expr_Comprehension)}, - {109, -1, -1, sizeof(::google::api::expr::v1beta1::Expr)}, - {126, -1, -1, sizeof(::google::api::expr::v1beta1::Literal)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::google::api::expr::v1beta1::ParsedExpr)}, + { 9, -1, -1, sizeof(::google::api::expr::v1beta1::Expr_Ident)}, + { 16, -1, -1, sizeof(::google::api::expr::v1beta1::Expr_Select)}, + { 25, -1, -1, sizeof(::google::api::expr::v1beta1::Expr_Call)}, + { 34, -1, -1, sizeof(::google::api::expr::v1beta1::Expr_CreateList)}, + { 41, -1, -1, sizeof(::google::api::expr::v1beta1::Expr_CreateStruct_Entry)}, + { 52, -1, -1, sizeof(::google::api::expr::v1beta1::Expr_CreateStruct)}, + { 60, -1, -1, sizeof(::google::api::expr::v1beta1::Expr_Comprehension)}, + { 73, -1, -1, sizeof(::google::api::expr::v1beta1::Expr)}, + { 88, -1, -1, sizeof(::google::api::expr::v1beta1::Literal)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::google::api::expr::v1beta1::_ParsedExpr_default_instance_._instance, - &::google::api::expr::v1beta1::_Expr_Ident_default_instance_._instance, - &::google::api::expr::v1beta1::_Expr_Select_default_instance_._instance, - &::google::api::expr::v1beta1::_Expr_Call_default_instance_._instance, - &::google::api::expr::v1beta1::_Expr_CreateList_default_instance_._instance, - &::google::api::expr::v1beta1::_Expr_CreateStruct_Entry_default_instance_._instance, - &::google::api::expr::v1beta1::_Expr_CreateStruct_default_instance_._instance, - &::google::api::expr::v1beta1::_Expr_Comprehension_default_instance_._instance, - &::google::api::expr::v1beta1::_Expr_default_instance_._instance, - &::google::api::expr::v1beta1::_Literal_default_instance_._instance, + &::google::api::expr::v1beta1::_ParsedExpr_default_instance_._instance, + &::google::api::expr::v1beta1::_Expr_Ident_default_instance_._instance, + &::google::api::expr::v1beta1::_Expr_Select_default_instance_._instance, + &::google::api::expr::v1beta1::_Expr_Call_default_instance_._instance, + &::google::api::expr::v1beta1::_Expr_CreateList_default_instance_._instance, + &::google::api::expr::v1beta1::_Expr_CreateStruct_Entry_default_instance_._instance, + &::google::api::expr::v1beta1::_Expr_CreateStruct_default_instance_._instance, + &::google::api::expr::v1beta1::_Expr_Comprehension_default_instance_._instance, + &::google::api::expr::v1beta1::_Expr_default_instance_._instance, + &::google::api::expr::v1beta1::_Literal_default_instance_._instance, }; -const char descriptor_table_protodef_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n\"google/api/expr/v1beta1/expr.proto\022\027go" - "ogle.api.expr.v1beta1\032$google/api/expr/v" - "1beta1/source.proto\032\034google/protobuf/str" - "uct.proto\"\254\001\n\nParsedExpr\0221\n\004expr\030\002 \001(\0132\035" - ".google.api.expr.v1beta1.ExprR\004expr\022D\n\013s" - "ource_info\030\003 \001(\0132#.google.api.expr.v1bet" - "a1.SourceInfoR\nsourceInfo\022%\n\016syntax_vers" - "ion\030\004 \001(\tR\rsyntaxVersion\"\275\014\n\004Expr\022\016\n\002id\030" - "\002 \001(\005R\002id\022E\n\014literal_expr\030\003 \001(\0132 .google" - ".api.expr.v1beta1.LiteralH\000R\013literalExpr" - "\022D\n\nident_expr\030\004 \001(\0132#.google.api.expr.v" - "1beta1.Expr.IdentH\000R\tidentExpr\022G\n\013select" - "_expr\030\005 \001(\0132$.google.api.expr.v1beta1.Ex" - "pr.SelectH\000R\nselectExpr\022A\n\tcall_expr\030\006 \001" - "(\0132\".google.api.expr.v1beta1.Expr.CallH\000" - "R\010callExpr\022G\n\tlist_expr\030\007 \001(\0132(.google.a" - "pi.expr.v1beta1.Expr.CreateListH\000R\010listE" - "xpr\022M\n\013struct_expr\030\010 \001(\0132*.google.api.ex" - "pr.v1beta1.Expr.CreateStructH\000R\nstructEx" - "pr\022\\\n\022comprehension_expr\030\t \001(\0132+.google." - "api.expr.v1beta1.Expr.ComprehensionH\000R\021c" - "omprehensionExpr\032\033\n\005Ident\022\022\n\004name\030\001 \001(\tR" - "\004name\032t\n\006Select\0227\n\007operand\030\001 \001(\0132\035.googl" - "e.api.expr.v1beta1.ExprR\007operand\022\024\n\005fiel" - "d\030\002 \001(\tR\005field\022\033\n\ttest_only\030\003 \001(\010R\010testO" - "nly\032\214\001\n\004Call\0225\n\006target\030\001 \001(\0132\035.google.ap" - "i.expr.v1beta1.ExprR\006target\022\032\n\010function\030" - "\002 \001(\tR\010function\0221\n\004args\030\003 \003(\0132\035.google.a" - "pi.expr.v1beta1.ExprR\004args\032G\n\nCreateList" - "\0229\n\010elements\030\001 \003(\0132\035.google.api.expr.v1b" - "eta1.ExprR\010elements\032\242\002\n\014CreateStruct\022\022\n\004" - "type\030\001 \001(\tR\004type\022J\n\007entries\030\002 \003(\01320.goog" - "le.api.expr.v1beta1.Expr.CreateStruct.En" - "tryR\007entries\032\261\001\n\005Entry\022\016\n\002id\030\001 \001(\005R\002id\022\035" - "\n\tfield_key\030\002 \001(\tH\000R\010fieldKey\0228\n\007map_key" - "\030\003 \001(\0132\035.google.api.expr.v1beta1.ExprH\000R" - "\006mapKey\0223\n\005value\030\004 \001(\0132\035.google.api.expr" - ".v1beta1.ExprR\005valueB\n\n\010key_kind\032\370\002\n\rCom" - "prehension\022\031\n\010iter_var\030\001 \001(\tR\007iterVar\022<\n" - "\niter_range\030\002 \001(\0132\035.google.api.expr.v1be" - "ta1.ExprR\titerRange\022\031\n\010accu_var\030\003 \001(\tR\007a" - "ccuVar\022:\n\taccu_init\030\004 \001(\0132\035.google.api.e" - "xpr.v1beta1.ExprR\010accuInit\022D\n\016loop_condi" - "tion\030\005 \001(\0132\035.google.api.expr.v1beta1.Exp" - "rR\rloopCondition\022:\n\tloop_step\030\006 \001(\0132\035.go" - "ogle.api.expr.v1beta1.ExprR\010loopStep\0225\n\006" - "result\030\007 \001(\0132\035.google.api.expr.v1beta1.E" - "xprR\006resultB\013\n\texpr_kind\"\255\002\n\007Literal\022;\n\n" - "null_value\030\001 \001(\0162\032.google.protobuf.NullV" - "alueH\000R\tnullValue\022\037\n\nbool_value\030\002 \001(\010H\000R" - "\tboolValue\022!\n\013int64_value\030\003 \001(\003H\000R\nint64" - "Value\022#\n\014uint64_value\030\004 \001(\004H\000R\013uint64Val" - "ue\022#\n\014double_value\030\005 \001(\001H\000R\013doubleValue\022" - "#\n\014string_value\030\006 \001(\tH\000R\013stringValue\022!\n\013" - "bytes_value\030\007 \001(\014H\000R\nbytesValueB\017\n\rconst" - "ant_kindB\347\001\n\033com.google.api.expr.v1beta1" - "B\tExprProtoP\001Z;google.golang.org/genprot" - "o/googleapis/api/expr/v1beta1;expr\370\001\001\242\002\003" - "GAE\252\002\027Google.Api.Expr.V1beta1\312\002\027Google\\A" - "pi\\Expr\\V1beta1\342\002#Google\\Api\\Expr\\V1beta" - "1\\GPBMetadata\352\002\032Google::Api::Expr::V1bet" - "a1b\006proto3" -}; -static const ::_pbi::DescriptorTable* const descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_deps[2] = - { - &::descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto, - &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, + +const char descriptor_table_protodef_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\"google/api/expr/v1beta1/expr.proto\022\027go" + "ogle.api.expr.v1beta1\032$google/api/expr/v" + "1beta1/source.proto\032\034google/protobuf/str" + "uct.proto\"\254\001\n\nParsedExpr\0221\n\004expr\030\002 \001(\0132\035" + ".google.api.expr.v1beta1.ExprR\004expr\022D\n\013s" + "ource_info\030\003 \001(\0132#.google.api.expr.v1bet" + "a1.SourceInfoR\nsourceInfo\022%\n\016syntax_vers" + "ion\030\004 \001(\tR\rsyntaxVersion\"\275\014\n\004Expr\022\016\n\002id\030" + "\002 \001(\005R\002id\022E\n\014literal_expr\030\003 \001(\0132 .google" + ".api.expr.v1beta1.LiteralH\000R\013literalExpr" + "\022D\n\nident_expr\030\004 \001(\0132#.google.api.expr.v" + "1beta1.Expr.IdentH\000R\tidentExpr\022G\n\013select" + "_expr\030\005 \001(\0132$.google.api.expr.v1beta1.Ex" + "pr.SelectH\000R\nselectExpr\022A\n\tcall_expr\030\006 \001" + "(\0132\".google.api.expr.v1beta1.Expr.CallH\000" + "R\010callExpr\022G\n\tlist_expr\030\007 \001(\0132(.google.a" + "pi.expr.v1beta1.Expr.CreateListH\000R\010listE" + "xpr\022M\n\013struct_expr\030\010 \001(\0132*.google.api.ex" + "pr.v1beta1.Expr.CreateStructH\000R\nstructEx" + "pr\022\\\n\022comprehension_expr\030\t \001(\0132+.google." + "api.expr.v1beta1.Expr.ComprehensionH\000R\021c" + "omprehensionExpr\032\033\n\005Ident\022\022\n\004name\030\001 \001(\tR" + "\004name\032t\n\006Select\0227\n\007operand\030\001 \001(\0132\035.googl" + "e.api.expr.v1beta1.ExprR\007operand\022\024\n\005fiel" + "d\030\002 \001(\tR\005field\022\033\n\ttest_only\030\003 \001(\010R\010testO" + "nly\032\214\001\n\004Call\0225\n\006target\030\001 \001(\0132\035.google.ap" + "i.expr.v1beta1.ExprR\006target\022\032\n\010function\030" + "\002 \001(\tR\010function\0221\n\004args\030\003 \003(\0132\035.google.a" + "pi.expr.v1beta1.ExprR\004args\032G\n\nCreateList" + "\0229\n\010elements\030\001 \003(\0132\035.google.api.expr.v1b" + "eta1.ExprR\010elements\032\242\002\n\014CreateStruct\022\022\n\004" + "type\030\001 \001(\tR\004type\022J\n\007entries\030\002 \003(\01320.goog" + "le.api.expr.v1beta1.Expr.CreateStruct.En" + "tryR\007entries\032\261\001\n\005Entry\022\016\n\002id\030\001 \001(\005R\002id\022\035" + "\n\tfield_key\030\002 \001(\tH\000R\010fieldKey\0228\n\007map_key" + "\030\003 \001(\0132\035.google.api.expr.v1beta1.ExprH\000R" + "\006mapKey\0223\n\005value\030\004 \001(\0132\035.google.api.expr" + ".v1beta1.ExprR\005valueB\n\n\010key_kind\032\370\002\n\rCom" + "prehension\022\031\n\010iter_var\030\001 \001(\tR\007iterVar\022<\n" + "\niter_range\030\002 \001(\0132\035.google.api.expr.v1be" + "ta1.ExprR\titerRange\022\031\n\010accu_var\030\003 \001(\tR\007a" + "ccuVar\022:\n\taccu_init\030\004 \001(\0132\035.google.api.e" + "xpr.v1beta1.ExprR\010accuInit\022D\n\016loop_condi" + "tion\030\005 \001(\0132\035.google.api.expr.v1beta1.Exp" + "rR\rloopCondition\022:\n\tloop_step\030\006 \001(\0132\035.go" + "ogle.api.expr.v1beta1.ExprR\010loopStep\0225\n\006" + "result\030\007 \001(\0132\035.google.api.expr.v1beta1.E" + "xprR\006resultB\013\n\texpr_kind\"\255\002\n\007Literal\022;\n\n" + "null_value\030\001 \001(\0162\032.google.protobuf.NullV" + "alueH\000R\tnullValue\022\037\n\nbool_value\030\002 \001(\010H\000R" + "\tboolValue\022!\n\013int64_value\030\003 \001(\003H\000R\nint64" + "Value\022#\n\014uint64_value\030\004 \001(\004H\000R\013uint64Val" + "ue\022#\n\014double_value\030\005 \001(\001H\000R\013doubleValue\022" + "#\n\014string_value\030\006 \001(\tH\000R\013stringValue\022!\n\013" + "bytes_value\030\007 \001(\014H\000R\nbytesValueB\017\n\rconst" + "ant_kindBj\n\033com.google.api.expr.v1beta1B" + "\tExprProtoP\001Z;google.golang.org/genproto" + "/googleapis/api/expr/v1beta1;expr\370\001\001b\006pr" + "oto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_deps[2] = { + &::descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto, + &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, }; -static ::absl::once_flag descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_once; +static ::_pbi::once_flag descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto = { - false, - false, - 2450, - descriptor_table_protodef_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto, + false, false, 2324, descriptor_table_protodef_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto, "google/api/expr/v1beta1/expr.proto", - &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_once, - descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_deps, - 2, - 10, - schemas, - file_default_instances, - TableStruct_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto::offsets, - file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto, - file_level_enum_descriptors_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto, + &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_once, descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_deps, 2, 10, + schemas, file_default_instances, TableStruct_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto::offsets, + file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto, file_level_enum_descriptors_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto, file_level_service_descriptors_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_getter() { return &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto(&descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto(&descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto); namespace google { namespace api { namespace expr { namespace v1beta1 { + // =================================================================== class ParsedExpr::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ParsedExpr, _impl_._has_bits_); static const ::google::api::expr::v1beta1::Expr& expr(const ParsedExpr* msg); - static void set_has_expr(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } static const ::google::api::expr::v1beta1::SourceInfo& source_info(const ParsedExpr* msg); - static void set_has_source_info(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } }; -const ::google::api::expr::v1beta1::Expr& ParsedExpr::_Internal::expr(const ParsedExpr* msg) { - return *msg->_impl_.expr_; +const ::google::api::expr::v1beta1::Expr& +ParsedExpr::_Internal::expr(const ParsedExpr* msg) { + return *msg->expr_; } -const ::google::api::expr::v1beta1::SourceInfo& ParsedExpr::_Internal::source_info(const ParsedExpr* msg) { - return *msg->_impl_.source_info_; +const ::google::api::expr::v1beta1::SourceInfo& +ParsedExpr::_Internal::source_info(const ParsedExpr* msg) { + return *msg->source_info_; } void ParsedExpr::clear_source_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.source_info_ != nullptr) _impl_.source_info_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && source_info_ != nullptr) { + delete source_info_; + } + source_info_ = nullptr; } -ParsedExpr::ParsedExpr(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ParsedExpr::ParsedExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1beta1.ParsedExpr) } -inline PROTOBUF_NDEBUG_INLINE ParsedExpr::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - syntax_version_(arena, from.syntax_version_) {} - -ParsedExpr::ParsedExpr( - ::google::protobuf::Arena* arena, - const ParsedExpr& from) - : ::google::protobuf::Message(arena) { - ParsedExpr* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.expr_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::api::expr::v1beta1::Expr>(arena, *from._impl_.expr_) - : nullptr; - _impl_.source_info_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::google::api::expr::v1beta1::SourceInfo>(arena, *from._impl_.source_info_) - : nullptr; - +ParsedExpr::ParsedExpr(const ParsedExpr& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + syntax_version_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + syntax_version_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_syntax_version().empty()) { + syntax_version_.Set(from._internal_syntax_version(), + GetArenaForAllocation()); + } + if (from._internal_has_expr()) { + expr_ = new ::google::api::expr::v1beta1::Expr(*from.expr_); + } else { + expr_ = nullptr; + } + if (from._internal_has_source_info()) { + source_info_ = new ::google::api::expr::v1beta1::SourceInfo(*from.source_info_); + } else { + source_info_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:google.api.expr.v1beta1.ParsedExpr) } -inline PROTOBUF_NDEBUG_INLINE ParsedExpr::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - syntax_version_(arena) {} - -inline void ParsedExpr::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, expr_), - 0, - offsetof(Impl_, source_info_) - - offsetof(Impl_, expr_) + - sizeof(Impl_::source_info_)); + +inline void ParsedExpr::SharedCtor() { +syntax_version_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + syntax_version_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&expr_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&source_info_) - + reinterpret_cast(&expr_)) + sizeof(source_info_)); } + ParsedExpr::~ParsedExpr() { // @@protoc_insertion_point(destructor:google.api.expr.v1beta1.ParsedExpr) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ParsedExpr::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.syntax_version_.Destroy(); - delete _impl_.expr_; - delete _impl_.source_info_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + syntax_version_.Destroy(); + if (this != internal_default_instance()) delete expr_; + if (this != internal_default_instance()) delete source_info_; +} + +void ParsedExpr::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void ParsedExpr::Clear() { +void ParsedExpr::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1beta1.ParsedExpr) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.syntax_version_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.expr_ != nullptr); - _impl_.expr_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.source_info_ != nullptr); - _impl_.source_info_->Clear(); - } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ParsedExpr::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + syntax_version_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && expr_ != nullptr) { + delete expr_; + } + expr_ = nullptr; + if (GetArenaForAllocation() == nullptr && source_info_ != nullptr) { + delete source_info_; + } + source_info_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ParsedExpr::_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) { + // .google.api.expr.v1beta1.Expr expr = 2 [json_name = "expr"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_expr(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1beta1.SourceInfo source_info = 3 [json_name = "sourceInfo"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_source_info(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string syntax_version = 4 [json_name = "syntaxVersion"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_syntax_version(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1beta1.ParsedExpr.syntax_version")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 2, 57, 2> ParsedExpr::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ParsedExpr, _impl_._has_bits_), - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967281, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ParsedExpr_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string syntax_version = 4 [json_name = "syntaxVersion"]; - {::_pbi::TcParser::FastUS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(ParsedExpr, _impl_.syntax_version_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .google.api.expr.v1beta1.Expr expr = 2 [json_name = "expr"]; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(ParsedExpr, _impl_.expr_)}}, - // .google.api.expr.v1beta1.SourceInfo source_info = 3 [json_name = "sourceInfo"]; - {::_pbi::TcParser::FastMtS1, - {26, 1, 1, PROTOBUF_FIELD_OFFSET(ParsedExpr, _impl_.source_info_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .google.api.expr.v1beta1.Expr expr = 2 [json_name = "expr"]; - {PROTOBUF_FIELD_OFFSET(ParsedExpr, _impl_.expr_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.api.expr.v1beta1.SourceInfo source_info = 3 [json_name = "sourceInfo"]; - {PROTOBUF_FIELD_OFFSET(ParsedExpr, _impl_.source_info_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // string syntax_version = 4 [json_name = "syntaxVersion"]; - {PROTOBUF_FIELD_OFFSET(ParsedExpr, _impl_.syntax_version_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::expr::v1beta1::Expr>()}, - {::_pbi::TcParser::GetTable<::google::api::expr::v1beta1::SourceInfo>()}, - }}, {{ - "\42\0\0\16\0\0\0\0" - "google.api.expr.v1beta1.ParsedExpr" - "syntax_version" - }}, -}; - -::uint8_t* ParsedExpr::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ParsedExpr::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.ParsedExpr) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .google.api.expr.v1beta1.Expr expr = 2 [json_name = "expr"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::expr(this), + if (this->_internal_has_expr()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::expr(this), _Internal::expr(this).GetCachedSize(), target, stream); } // .google.api.expr.v1beta1.SourceInfo source_info = 3 [json_name = "sourceInfo"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::source_info(this), + if (this->_internal_has_source_info()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::source_info(this), _Internal::source_info(this).GetCachedSize(), target, stream); } // string syntax_version = 4 [json_name = "syntaxVersion"]; if (!this->_internal_syntax_version().empty()) { - const std::string& _s = this->_internal_syntax_version(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.expr.v1beta1.ParsedExpr.syntax_version"); - target = stream->WriteStringMaybeAliased(4, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_syntax_version().data(), static_cast(this->_internal_syntax_version().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1beta1.ParsedExpr.syntax_version"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_syntax_version(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1beta1.ParsedExpr) return target; } -::size_t ParsedExpr::ByteSizeLong() const { +size_t ParsedExpr::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1beta1.ParsedExpr) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string syntax_version = 4 [json_name = "syntaxVersion"]; if (!this->_internal_syntax_version().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_syntax_version()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_syntax_version()); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // .google.api.expr.v1beta1.Expr expr = 2 [json_name = "expr"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.expr_); - } - - // .google.api.expr.v1beta1.SourceInfo source_info = 3 [json_name = "sourceInfo"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.source_info_); - } + // .google.api.expr.v1beta1.Expr expr = 2 [json_name = "expr"]; + if (this->_internal_has_expr()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *expr_); + } + // .google.api.expr.v1beta1.SourceInfo source_info = 3 [json_name = "sourceInfo"]; + if (this->_internal_has_source_info()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *source_info_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ParsedExpr::_class_data_ = { - ParsedExpr::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ParsedExpr::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ParsedExpr::MergeImpl }; -const ::google::protobuf::Message::ClassData* ParsedExpr::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ParsedExpr::GetClassData() const { return &_class_data_; } + +void ParsedExpr::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ParsedExpr::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.ParsedExpr) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ParsedExpr::MergeFrom(const ParsedExpr& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.ParsedExpr) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_syntax_version().empty()) { - _this->_internal_set_syntax_version(from._internal_syntax_version()); + _internal_set_syntax_version(from._internal_syntax_version()); } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_expr()->::google::api::expr::v1beta1::Expr::MergeFrom( - from._internal_expr()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_source_info()->::google::api::expr::v1beta1::SourceInfo::MergeFrom( - from._internal_source_info()); - } + if (from._internal_has_expr()) { + _internal_mutable_expr()->::google::api::expr::v1beta1::Expr::MergeFrom(from._internal_expr()); + } + if (from._internal_has_source_info()) { + _internal_mutable_source_info()->::google::api::expr::v1beta1::SourceInfo::MergeFrom(from._internal_source_info()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ParsedExpr::CopyFrom(const ParsedExpr& from) { @@ -812,194 +647,198 @@ void ParsedExpr::CopyFrom(const ParsedExpr& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ParsedExpr::IsInitialized() const { +bool ParsedExpr::IsInitialized() const { return true; } -::_pbi::CachedSize* ParsedExpr::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ParsedExpr::InternalSwap(ParsedExpr* PROTOBUF_RESTRICT other) { +void ParsedExpr::InternalSwap(ParsedExpr* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.syntax_version_, &other->_impl_.syntax_version_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(ParsedExpr, _impl_.source_info_) - + sizeof(ParsedExpr::_impl_.source_info_) - - PROTOBUF_FIELD_OFFSET(ParsedExpr, _impl_.expr_)>( - reinterpret_cast(&_impl_.expr_), - reinterpret_cast(&other->_impl_.expr_)); -} - -::google::protobuf::Metadata ParsedExpr::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &syntax_version_, lhs_arena, + &other->syntax_version_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(ParsedExpr, source_info_) + + sizeof(ParsedExpr::source_info_) + - PROTOBUF_FIELD_OFFSET(ParsedExpr, expr_)>( + reinterpret_cast(&expr_), + reinterpret_cast(&other->expr_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ParsedExpr::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto[0]); } + // =================================================================== class Expr_Ident::_Internal { public: }; -Expr_Ident::Expr_Ident(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Expr_Ident::Expr_Ident(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1beta1.Expr.Ident) } -inline PROTOBUF_NDEBUG_INLINE Expr_Ident::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : name_(arena, from.name_), - _cached_size_{0} {} - -Expr_Ident::Expr_Ident( - ::google::protobuf::Arena* arena, - const Expr_Ident& from) - : ::google::protobuf::Message(arena) { - Expr_Ident* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +Expr_Ident::Expr_Ident(const Expr_Ident& 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()); + } // @@protoc_insertion_point(copy_constructor:google.api.expr.v1beta1.Expr.Ident) } -inline PROTOBUF_NDEBUG_INLINE Expr_Ident::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : name_(arena), - _cached_size_{0} {} -inline void Expr_Ident::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void Expr_Ident::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + Expr_Ident::~Expr_Ident() { // @@protoc_insertion_point(destructor:google.api.expr.v1beta1.Expr.Ident) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Expr_Ident::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); +} + +void Expr_Ident::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void Expr_Ident::Clear() { +void Expr_Ident::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1beta1.Expr.Ident) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Expr_Ident::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Expr_Ident::_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, "google.api.expr.v1beta1.Expr.Ident.name")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 47, 2> Expr_Ident::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_Expr_Ident_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Expr_Ident, _impl_.name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(Expr_Ident, _impl_.name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\42\4\0\0\0\0\0\0" - "google.api.expr.v1beta1.Expr.Ident" - "name" - }}, -}; - -::uint8_t* Expr_Ident::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Expr_Ident::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.Expr.Ident) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.expr.v1beta1.Expr.Ident.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1beta1.Expr.Ident.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1beta1.Expr.Ident) return target; } -::size_t Expr_Ident::ByteSizeLong() const { +size_t Expr_Ident::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1beta1.Expr.Ident) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Expr_Ident::_class_data_ = { - Expr_Ident::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Expr_Ident::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Expr_Ident::MergeImpl }; -const ::google::protobuf::Message::ClassData* Expr_Ident::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Expr_Ident::GetClassData() const { return &_class_data_; } + +void Expr_Ident::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Expr_Ident::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.Expr.Ident) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Expr_Ident::MergeFrom(const Expr_Ident& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.Expr.Ident) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Expr_Ident::CopyFrom(const Expr_Ident& from) { @@ -1009,264 +848,260 @@ void Expr_Ident::CopyFrom(const Expr_Ident& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Expr_Ident::IsInitialized() const { +bool Expr_Ident::IsInitialized() const { return true; } -::_pbi::CachedSize* Expr_Ident::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Expr_Ident::InternalSwap(Expr_Ident* PROTOBUF_RESTRICT other) { +void Expr_Ident::InternalSwap(Expr_Ident* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); } -::google::protobuf::Metadata Expr_Ident::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Expr_Ident::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto[1]); } + // =================================================================== class Expr_Select::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Expr_Select, _impl_._has_bits_); static const ::google::api::expr::v1beta1::Expr& operand(const Expr_Select* msg); - static void set_has_operand(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::google::api::expr::v1beta1::Expr& Expr_Select::_Internal::operand(const Expr_Select* msg) { - return *msg->_impl_.operand_; +const ::google::api::expr::v1beta1::Expr& +Expr_Select::_Internal::operand(const Expr_Select* msg) { + return *msg->operand_; } -Expr_Select::Expr_Select(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Expr_Select::Expr_Select(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1beta1.Expr.Select) } -inline PROTOBUF_NDEBUG_INLINE Expr_Select::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - field_(arena, from.field_) {} - -Expr_Select::Expr_Select( - ::google::protobuf::Arena* arena, - const Expr_Select& from) - : ::google::protobuf::Message(arena) { - Expr_Select* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.operand_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::api::expr::v1beta1::Expr>(arena, *from._impl_.operand_) - : nullptr; - _impl_.test_only_ = from._impl_.test_only_; - +Expr_Select::Expr_Select(const Expr_Select& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + field_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + field_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_field().empty()) { + field_.Set(from._internal_field(), + GetArenaForAllocation()); + } + if (from._internal_has_operand()) { + operand_ = new ::google::api::expr::v1beta1::Expr(*from.operand_); + } else { + operand_ = nullptr; + } + test_only_ = from.test_only_; // @@protoc_insertion_point(copy_constructor:google.api.expr.v1beta1.Expr.Select) } -inline PROTOBUF_NDEBUG_INLINE Expr_Select::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - field_(arena) {} - -inline void Expr_Select::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, operand_), - 0, - offsetof(Impl_, test_only_) - - offsetof(Impl_, operand_) + - sizeof(Impl_::test_only_)); + +inline void Expr_Select::SharedCtor() { +field_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + field_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&operand_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&test_only_) - + reinterpret_cast(&operand_)) + sizeof(test_only_)); } + Expr_Select::~Expr_Select() { // @@protoc_insertion_point(destructor:google.api.expr.v1beta1.Expr.Select) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Expr_Select::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.field_.Destroy(); - delete _impl_.operand_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + field_.Destroy(); + if (this != internal_default_instance()) delete operand_; +} + +void Expr_Select::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void Expr_Select::Clear() { +void Expr_Select::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1beta1.Expr.Select) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.field_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.operand_ != nullptr); - _impl_.operand_->Clear(); - } - _impl_.test_only_ = false; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Expr_Select::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + field_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && operand_ != nullptr) { + delete operand_; + } + operand_ = nullptr; + test_only_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Expr_Select::_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) { + // .google.api.expr.v1beta1.Expr operand = 1 [json_name = "operand"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_operand(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string field = 2 [json_name = "field"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_field(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1beta1.Expr.Select.field")); + } else + goto handle_unusual; + continue; + // bool test_only = 3 [json_name = "testOnly"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + test_only_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 1, 49, 2> Expr_Select::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Expr_Select, _impl_._has_bits_), - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Expr_Select_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // .google.api.expr.v1beta1.Expr operand = 1 [json_name = "operand"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(Expr_Select, _impl_.operand_)}}, - // string field = 2 [json_name = "field"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(Expr_Select, _impl_.field_)}}, - // bool test_only = 3 [json_name = "testOnly"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(Expr_Select, _impl_.test_only_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .google.api.expr.v1beta1.Expr operand = 1 [json_name = "operand"]; - {PROTOBUF_FIELD_OFFSET(Expr_Select, _impl_.operand_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // string field = 2 [json_name = "field"]; - {PROTOBUF_FIELD_OFFSET(Expr_Select, _impl_.field_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // bool test_only = 3 [json_name = "testOnly"]; - {PROTOBUF_FIELD_OFFSET(Expr_Select, _impl_.test_only_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::expr::v1beta1::Expr>()}, - }}, {{ - "\43\0\5\0\0\0\0\0" - "google.api.expr.v1beta1.Expr.Select" - "field" - }}, -}; - -::uint8_t* Expr_Select::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Expr_Select::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.Expr.Select) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .google.api.expr.v1beta1.Expr operand = 1 [json_name = "operand"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::operand(this), + if (this->_internal_has_operand()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::operand(this), _Internal::operand(this).GetCachedSize(), target, stream); } // string field = 2 [json_name = "field"]; if (!this->_internal_field().empty()) { - const std::string& _s = this->_internal_field(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.expr.v1beta1.Expr.Select.field"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_field().data(), static_cast(this->_internal_field().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1beta1.Expr.Select.field"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_field(), target); } // bool test_only = 3 [json_name = "testOnly"]; if (this->_internal_test_only() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 3, this->_internal_test_only(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_test_only(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1beta1.Expr.Select) return target; } -::size_t Expr_Select::ByteSizeLong() const { +size_t Expr_Select::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1beta1.Expr.Select) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string field = 2 [json_name = "field"]; if (!this->_internal_field().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_field()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_field()); } // .google.api.expr.v1beta1.Expr operand = 1 [json_name = "operand"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.operand_); + if (this->_internal_has_operand()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *operand_); } // bool test_only = 3 [json_name = "testOnly"]; if (this->_internal_test_only() != 0) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Expr_Select::_class_data_ = { - Expr_Select::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Expr_Select::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Expr_Select::MergeImpl }; -const ::google::protobuf::Message::ClassData* Expr_Select::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Expr_Select::GetClassData() const { return &_class_data_; } + +void Expr_Select::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Expr_Select::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.Expr.Select) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Expr_Select::MergeFrom(const Expr_Select& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.Expr.Select) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_field().empty()) { - _this->_internal_set_field(from._internal_field()); + _internal_set_field(from._internal_field()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_operand()->::google::api::expr::v1beta1::Expr::MergeFrom( - from._internal_operand()); + if (from._internal_has_operand()) { + _internal_mutable_operand()->::google::api::expr::v1beta1::Expr::MergeFrom(from._internal_operand()); } if (from._internal_test_only() != 0) { - _this->_internal_set_test_only(from._internal_test_only()); + _internal_set_test_only(from._internal_test_only()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Expr_Select::CopyFrom(const Expr_Select& from) { @@ -1276,269 +1111,271 @@ void Expr_Select::CopyFrom(const Expr_Select& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Expr_Select::IsInitialized() const { +bool Expr_Select::IsInitialized() const { return true; } -::_pbi::CachedSize* Expr_Select::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Expr_Select::InternalSwap(Expr_Select* PROTOBUF_RESTRICT other) { +void Expr_Select::InternalSwap(Expr_Select* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.field_, &other->_impl_.field_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(Expr_Select, _impl_.test_only_) - + sizeof(Expr_Select::_impl_.test_only_) - - PROTOBUF_FIELD_OFFSET(Expr_Select, _impl_.operand_)>( - reinterpret_cast(&_impl_.operand_), - reinterpret_cast(&other->_impl_.operand_)); -} - -::google::protobuf::Metadata Expr_Select::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &field_, lhs_arena, + &other->field_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Expr_Select, test_only_) + + sizeof(Expr_Select::test_only_) + - PROTOBUF_FIELD_OFFSET(Expr_Select, operand_)>( + reinterpret_cast(&operand_), + reinterpret_cast(&other->operand_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Expr_Select::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto[2]); } + // =================================================================== class Expr_Call::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Expr_Call, _impl_._has_bits_); static const ::google::api::expr::v1beta1::Expr& target(const Expr_Call* msg); - static void set_has_target(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::google::api::expr::v1beta1::Expr& Expr_Call::_Internal::target(const Expr_Call* msg) { - return *msg->_impl_.target_; +const ::google::api::expr::v1beta1::Expr& +Expr_Call::_Internal::target(const Expr_Call* msg) { + return *msg->target_; } -Expr_Call::Expr_Call(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Expr_Call::Expr_Call(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + args_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1beta1.Expr.Call) } -inline PROTOBUF_NDEBUG_INLINE Expr_Call::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - args_{visibility, arena, from.args_}, - function_(arena, from.function_) {} - -Expr_Call::Expr_Call( - ::google::protobuf::Arena* arena, - const Expr_Call& from) - : ::google::protobuf::Message(arena) { - Expr_Call* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.target_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::api::expr::v1beta1::Expr>(arena, *from._impl_.target_) - : nullptr; - +Expr_Call::Expr_Call(const Expr_Call& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + args_(from.args_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + function_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + function_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_function().empty()) { + function_.Set(from._internal_function(), + GetArenaForAllocation()); + } + if (from._internal_has_target()) { + target_ = new ::google::api::expr::v1beta1::Expr(*from.target_); + } else { + target_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:google.api.expr.v1beta1.Expr.Call) } -inline PROTOBUF_NDEBUG_INLINE Expr_Call::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - args_{visibility, arena}, - function_(arena) {} -inline void Expr_Call::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.target_ = {}; +inline void Expr_Call::SharedCtor() { +function_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + function_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +target_ = nullptr; } + Expr_Call::~Expr_Call() { // @@protoc_insertion_point(destructor:google.api.expr.v1beta1.Expr.Call) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Expr_Call::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.function_.Destroy(); - delete _impl_.target_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + function_.Destroy(); + if (this != internal_default_instance()) delete target_; +} + +void Expr_Call::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void Expr_Call::Clear() { +void Expr_Call::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1beta1.Expr.Call) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.args_.Clear(); - _impl_.function_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.target_ != nullptr); - _impl_.target_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Expr_Call::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + args_.Clear(); + function_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && target_ != nullptr) { + delete target_; + } + target_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Expr_Call::_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) { + // .google.api.expr.v1beta1.Expr target = 1 [json_name = "target"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_target(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string function = 2 [json_name = "function"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_function(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1beta1.Expr.Call.function")); + } else + goto handle_unusual; + continue; + // repeated .google.api.expr.v1beta1.Expr args = 3 [json_name = "args"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_args(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 2, 50, 2> Expr_Call::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Expr_Call, _impl_._has_bits_), - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Expr_Call_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // .google.api.expr.v1beta1.Expr target = 1 [json_name = "target"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(Expr_Call, _impl_.target_)}}, - // string function = 2 [json_name = "function"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(Expr_Call, _impl_.function_)}}, - // repeated .google.api.expr.v1beta1.Expr args = 3 [json_name = "args"]; - {::_pbi::TcParser::FastMtR1, - {26, 63, 1, PROTOBUF_FIELD_OFFSET(Expr_Call, _impl_.args_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .google.api.expr.v1beta1.Expr target = 1 [json_name = "target"]; - {PROTOBUF_FIELD_OFFSET(Expr_Call, _impl_.target_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // string function = 2 [json_name = "function"]; - {PROTOBUF_FIELD_OFFSET(Expr_Call, _impl_.function_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated .google.api.expr.v1beta1.Expr args = 3 [json_name = "args"]; - {PROTOBUF_FIELD_OFFSET(Expr_Call, _impl_.args_), -1, 1, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::expr::v1beta1::Expr>()}, - {::_pbi::TcParser::GetTable<::google::api::expr::v1beta1::Expr>()}, - }}, {{ - "\41\0\10\0\0\0\0\0" - "google.api.expr.v1beta1.Expr.Call" - "function" - }}, -}; - -::uint8_t* Expr_Call::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Expr_Call::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.Expr.Call) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .google.api.expr.v1beta1.Expr target = 1 [json_name = "target"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::target(this), + if (this->_internal_has_target()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::target(this), _Internal::target(this).GetCachedSize(), target, stream); } // string function = 2 [json_name = "function"]; if (!this->_internal_function().empty()) { - const std::string& _s = this->_internal_function(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.expr.v1beta1.Expr.Call.function"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_function().data(), static_cast(this->_internal_function().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1beta1.Expr.Call.function"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_function(), target); } // repeated .google.api.expr.v1beta1.Expr args = 3 [json_name = "args"]; for (unsigned i = 0, n = static_cast(this->_internal_args_size()); i < n; i++) { - const auto& repfield = this->_internal_args().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_args(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1beta1.Expr.Call) return target; } -::size_t Expr_Call::ByteSizeLong() const { +size_t Expr_Call::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1beta1.Expr.Call) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .google.api.expr.v1beta1.Expr args = 3 [json_name = "args"]; total_size += 1UL * this->_internal_args_size(); - for (const auto& msg : this->_internal_args()) { + for (const auto& msg : this->args_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // string function = 2 [json_name = "function"]; if (!this->_internal_function().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_function()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_function()); } // .google.api.expr.v1beta1.Expr target = 1 [json_name = "target"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.target_); + if (this->_internal_has_target()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *target_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Expr_Call::_class_data_ = { - Expr_Call::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Expr_Call::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Expr_Call::MergeImpl }; -const ::google::protobuf::Message::ClassData* Expr_Call::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Expr_Call::GetClassData() const { return &_class_data_; } + +void Expr_Call::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Expr_Call::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.Expr.Call) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Expr_Call::MergeFrom(const Expr_Call& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.Expr.Call) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_args()->MergeFrom( - from._internal_args()); + args_.MergeFrom(from.args_); if (!from._internal_function().empty()) { - _this->_internal_set_function(from._internal_function()); + _internal_set_function(from._internal_function()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_target()->::google::api::expr::v1beta1::Expr::MergeFrom( - from._internal_target()); + if (from._internal_has_target()) { + _internal_mutable_target()->::google::api::expr::v1beta1::Expr::MergeFrom(from._internal_target()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Expr_Call::CopyFrom(const Expr_Call& from) { @@ -1548,185 +1385,182 @@ void Expr_Call::CopyFrom(const Expr_Call& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Expr_Call::IsInitialized() const { +bool Expr_Call::IsInitialized() const { return true; } -::_pbi::CachedSize* Expr_Call::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Expr_Call::InternalSwap(Expr_Call* PROTOBUF_RESTRICT other) { +void Expr_Call::InternalSwap(Expr_Call* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.args_.InternalSwap(&other->_impl_.args_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.function_, &other->_impl_.function_, arena); - swap(_impl_.target_, other->_impl_.target_); + args_.InternalSwap(&other->args_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &function_, lhs_arena, + &other->function_, rhs_arena + ); + swap(target_, other->target_); } -::google::protobuf::Metadata Expr_Call::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Expr_Call::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto[3]); } + // =================================================================== class Expr_CreateList::_Internal { public: }; -Expr_CreateList::Expr_CreateList(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Expr_CreateList::Expr_CreateList(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + elements_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1beta1.Expr.CreateList) } -inline PROTOBUF_NDEBUG_INLINE Expr_CreateList::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : elements_{visibility, arena, from.elements_}, - _cached_size_{0} {} - -Expr_CreateList::Expr_CreateList( - ::google::protobuf::Arena* arena, - const Expr_CreateList& from) - : ::google::protobuf::Message(arena) { - Expr_CreateList* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +Expr_CreateList::Expr_CreateList(const Expr_CreateList& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + elements_(from.elements_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:google.api.expr.v1beta1.Expr.CreateList) } -inline PROTOBUF_NDEBUG_INLINE Expr_CreateList::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : elements_{visibility, arena}, - _cached_size_{0} {} -inline void Expr_CreateList::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void Expr_CreateList::SharedCtor() { } + Expr_CreateList::~Expr_CreateList() { // @@protoc_insertion_point(destructor:google.api.expr.v1beta1.Expr.CreateList) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Expr_CreateList::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void Expr_CreateList::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void Expr_CreateList::Clear() { +void Expr_CreateList::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1beta1.Expr.CreateList) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.elements_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Expr_CreateList::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + elements_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Expr_CreateList::_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) { + // repeated .google.api.expr.v1beta1.Expr elements = 1 [json_name = "elements"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_elements(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> Expr_CreateList::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Expr_CreateList_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .google.api.expr.v1beta1.Expr elements = 1 [json_name = "elements"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Expr_CreateList, _impl_.elements_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .google.api.expr.v1beta1.Expr elements = 1 [json_name = "elements"]; - {PROTOBUF_FIELD_OFFSET(Expr_CreateList, _impl_.elements_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::expr::v1beta1::Expr>()}, - }}, {{ - }}, -}; - -::uint8_t* Expr_CreateList::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Expr_CreateList::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.Expr.CreateList) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .google.api.expr.v1beta1.Expr elements = 1 [json_name = "elements"]; for (unsigned i = 0, n = static_cast(this->_internal_elements_size()); i < n; i++) { - const auto& repfield = this->_internal_elements().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_elements(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1beta1.Expr.CreateList) return target; } -::size_t Expr_CreateList::ByteSizeLong() const { +size_t Expr_CreateList::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1beta1.Expr.CreateList) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .google.api.expr.v1beta1.Expr elements = 1 [json_name = "elements"]; total_size += 1UL * this->_internal_elements_size(); - for (const auto& msg : this->_internal_elements()) { + for (const auto& msg : this->elements_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Expr_CreateList::_class_data_ = { - Expr_CreateList::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Expr_CreateList::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Expr_CreateList::MergeImpl }; -const ::google::protobuf::Message::ClassData* Expr_CreateList::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Expr_CreateList::GetClassData() const { return &_class_data_; } + +void Expr_CreateList::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Expr_CreateList::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.Expr.CreateList) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Expr_CreateList::MergeFrom(const Expr_CreateList& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.Expr.CreateList) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_elements()->MergeFrom( - from._internal_elements()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + elements_.MergeFrom(from.elements_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Expr_CreateList::CopyFrom(const Expr_CreateList& from) { @@ -1736,140 +1570,124 @@ void Expr_CreateList::CopyFrom(const Expr_CreateList& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Expr_CreateList::IsInitialized() const { +bool Expr_CreateList::IsInitialized() const { return true; } -::_pbi::CachedSize* Expr_CreateList::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Expr_CreateList::InternalSwap(Expr_CreateList* PROTOBUF_RESTRICT other) { +void Expr_CreateList::InternalSwap(Expr_CreateList* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.elements_.InternalSwap(&other->_impl_.elements_); + elements_.InternalSwap(&other->elements_); } -::google::protobuf::Metadata Expr_CreateList::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Expr_CreateList::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto[4]); } + // =================================================================== class Expr_CreateStruct_Entry::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Expr_CreateStruct_Entry, _impl_._has_bits_); - static constexpr ::int32_t kOneofCaseOffset = - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr_CreateStruct_Entry, _impl_._oneof_case_); static const ::google::api::expr::v1beta1::Expr& map_key(const Expr_CreateStruct_Entry* msg); static const ::google::api::expr::v1beta1::Expr& value(const Expr_CreateStruct_Entry* msg); - static void set_has_value(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::google::api::expr::v1beta1::Expr& Expr_CreateStruct_Entry::_Internal::map_key(const Expr_CreateStruct_Entry* msg) { - return *msg->_impl_.key_kind_.map_key_; +const ::google::api::expr::v1beta1::Expr& +Expr_CreateStruct_Entry::_Internal::map_key(const Expr_CreateStruct_Entry* msg) { + return *msg->key_kind_.map_key_; } -const ::google::api::expr::v1beta1::Expr& Expr_CreateStruct_Entry::_Internal::value(const Expr_CreateStruct_Entry* msg) { - return *msg->_impl_.value_; +const ::google::api::expr::v1beta1::Expr& +Expr_CreateStruct_Entry::_Internal::value(const Expr_CreateStruct_Entry* msg) { + return *msg->value_; } void Expr_CreateStruct_Entry::set_allocated_map_key(::google::api::expr::v1beta1::Expr* map_key) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_key_kind(); if (map_key) { - ::google::protobuf::Arena* submessage_arena = map_key->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(map_key); if (message_arena != submessage_arena) { - map_key = ::google::protobuf::internal::GetOwnedMessage(message_arena, map_key, submessage_arena); + map_key = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, map_key, submessage_arena); } set_has_map_key(); - _impl_.key_kind_.map_key_ = map_key; + key_kind_.map_key_ = map_key; } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Expr.CreateStruct.Entry.map_key) } -Expr_CreateStruct_Entry::Expr_CreateStruct_Entry(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Expr_CreateStruct_Entry::Expr_CreateStruct_Entry(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1beta1.Expr.CreateStruct.Entry) } -inline PROTOBUF_NDEBUG_INLINE Expr_CreateStruct_Entry::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - key_kind_{}, - _oneof_case_{from._oneof_case_[0]} {} - -Expr_CreateStruct_Entry::Expr_CreateStruct_Entry( - ::google::protobuf::Arena* arena, - const Expr_CreateStruct_Entry& from) - : ::google::protobuf::Message(arena) { - Expr_CreateStruct_Entry* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.value_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::api::expr::v1beta1::Expr>(arena, *from._impl_.value_) - : nullptr; - _impl_.id_ = from._impl_.id_; - switch (key_kind_case()) { - case KEY_KIND_NOT_SET: +Expr_CreateStruct_Entry::Expr_CreateStruct_Entry(const Expr_CreateStruct_Entry& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_value()) { + value_ = new ::google::api::expr::v1beta1::Expr(*from.value_); + } else { + value_ = nullptr; + } + id_ = from.id_; + clear_has_key_kind(); + switch (from.key_kind_case()) { + case kFieldKey: { + _internal_set_field_key(from._internal_field_key()); break; - case kFieldKey: - new (&_impl_.key_kind_.field_key_) decltype(_impl_.key_kind_.field_key_){arena, from._impl_.key_kind_.field_key_}; - break; - case kMapKey: - _impl_.key_kind_.map_key_ = CreateMaybeMessage<::google::api::expr::v1beta1::Expr>(arena, *from._impl_.key_kind_.map_key_); - break; + } + case kMapKey: { + _internal_mutable_map_key()->::google::api::expr::v1beta1::Expr::MergeFrom(from._internal_map_key()); + break; + } + case KEY_KIND_NOT_SET: { + break; + } } - // @@protoc_insertion_point(copy_constructor:google.api.expr.v1beta1.Expr.CreateStruct.Entry) } -inline PROTOBUF_NDEBUG_INLINE Expr_CreateStruct_Entry::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - key_kind_{}, - _oneof_case_{} {} - -inline void Expr_CreateStruct_Entry::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, value_), - 0, - offsetof(Impl_, id_) - - offsetof(Impl_, value_) + - sizeof(Impl_::id_)); + +inline void Expr_CreateStruct_Entry::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&value_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&id_) - + reinterpret_cast(&value_)) + sizeof(id_)); +clear_has_key_kind(); } + Expr_CreateStruct_Entry::~Expr_CreateStruct_Entry() { // @@protoc_insertion_point(destructor:google.api.expr.v1beta1.Expr.CreateStruct.Entry) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Expr_CreateStruct_Entry::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.value_; + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete value_; if (has_key_kind()) { clear_key_kind(); } - _impl_.~Impl_(); +} + +void Expr_CreateStruct_Entry::SetCachedSize(int size) const { + _cached_size_.Set(size); } void Expr_CreateStruct_Entry::clear_key_kind() { // @@protoc_insertion_point(one_of_clear_start:google.api.expr.v1beta1.Expr.CreateStruct.Entry) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); switch (key_kind_case()) { case kFieldKey: { - _impl_.key_kind_.field_key_.Destroy(); + key_kind_.field_key_.Destroy(); break; } case kMapKey: { - if (GetArena() == nullptr) { - delete _impl_.key_kind_.map_key_; + if (GetArenaForAllocation() == nullptr) { + delete key_kind_.map_key_; } break; } @@ -1877,208 +1695,213 @@ void Expr_CreateStruct_Entry::clear_key_kind() { break; } } - _impl_._oneof_case_[0] = KEY_KIND_NOT_SET; + _oneof_case_[0] = KEY_KIND_NOT_SET; } -PROTOBUF_NOINLINE void Expr_CreateStruct_Entry::Clear() { +void Expr_CreateStruct_Entry::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1beta1.Expr.CreateStruct.Entry) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.value_ != nullptr); - _impl_.value_->Clear(); + if (GetArenaForAllocation() == nullptr && value_ != nullptr) { + delete value_; } - _impl_.id_ = 0; + value_ = nullptr; + id_ = 0; clear_key_kind(); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Expr_CreateStruct_Entry::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Expr_CreateStruct_Entry::_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) { + // int32 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string field_key = 2 [json_name = "fieldKey"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_field_key(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1beta1.Expr.CreateStruct.Entry.field_key")); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1beta1.Expr map_key = 3 [json_name = "mapKey"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_map_key(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1beta1.Expr value = 4 [json_name = "value"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_value(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 4, 2, 65, 2> Expr_CreateStruct_Entry::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Expr_CreateStruct_Entry, _impl_._has_bits_), - 0, // no _extensions_ - 4, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Expr_CreateStruct_Entry_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .google.api.expr.v1beta1.Expr value = 4 [json_name = "value"]; - {::_pbi::TcParser::FastMtS1, - {34, 0, 1, PROTOBUF_FIELD_OFFSET(Expr_CreateStruct_Entry, _impl_.value_)}}, - // int32 id = 1 [json_name = "id"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Expr_CreateStruct_Entry, _impl_.id_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(Expr_CreateStruct_Entry, _impl_.id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // int32 id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(Expr_CreateStruct_Entry, _impl_.id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // string field_key = 2 [json_name = "fieldKey"]; - {PROTOBUF_FIELD_OFFSET(Expr_CreateStruct_Entry, _impl_.key_kind_.field_key_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.api.expr.v1beta1.Expr map_key = 3 [json_name = "mapKey"]; - {PROTOBUF_FIELD_OFFSET(Expr_CreateStruct_Entry, _impl_.key_kind_.map_key_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.api.expr.v1beta1.Expr value = 4 [json_name = "value"]; - {PROTOBUF_FIELD_OFFSET(Expr_CreateStruct_Entry, _impl_.value_), _Internal::kHasBitsOffset + 0, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::expr::v1beta1::Expr>()}, - {::_pbi::TcParser::GetTable<::google::api::expr::v1beta1::Expr>()}, - }}, {{ - "\57\0\11\0\0\0\0\0" - "google.api.expr.v1beta1.Expr.CreateStruct.Entry" - "field_key" - }}, -}; - -::uint8_t* Expr_CreateStruct_Entry::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Expr_CreateStruct_Entry::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.Expr.CreateStruct.Entry) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // int32 id = 1 [json_name = "id"]; if (this->_internal_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<1>( - stream, this->_internal_id(), target); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_id(), target); } - switch (key_kind_case()) { - case kFieldKey: { - const std::string& _s = this->_internal_field_key(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.expr.v1beta1.Expr.CreateStruct.Entry.field_key"); - target = stream->WriteStringMaybeAliased(2, _s, target); - break; - } - case kMapKey: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::map_key(this), - _Internal::map_key(this).GetCachedSize(), target, stream); - break; - } - default: - break; + // string field_key = 2 [json_name = "fieldKey"]; + if (_internal_has_field_key()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_field_key().data(), static_cast(this->_internal_field_key().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1beta1.Expr.CreateStruct.Entry.field_key"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_field_key(), target); + } + + // .google.api.expr.v1beta1.Expr map_key = 3 [json_name = "mapKey"]; + if (_internal_has_map_key()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::map_key(this), + _Internal::map_key(this).GetCachedSize(), target, stream); } - cached_has_bits = _impl_._has_bits_[0]; + // .google.api.expr.v1beta1.Expr value = 4 [json_name = "value"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, _Internal::value(this), + if (this->_internal_has_value()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::value(this), _Internal::value(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1beta1.Expr.CreateStruct.Entry) return target; } -::size_t Expr_CreateStruct_Entry::ByteSizeLong() const { +size_t Expr_CreateStruct_Entry::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1beta1.Expr.CreateStruct.Entry) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .google.api.expr.v1beta1.Expr value = 4 [json_name = "value"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.value_); + if (this->_internal_has_value()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *value_); } // int32 id = 1 [json_name = "id"]; if (this->_internal_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_id()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_id()); } switch (key_kind_case()) { // string field_key = 2 [json_name = "fieldKey"]; case kFieldKey: { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_field_key()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_field_key()); break; } // .google.api.expr.v1beta1.Expr map_key = 3 [json_name = "mapKey"]; case kMapKey: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.key_kind_.map_key_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *key_kind_.map_key_); break; } case KEY_KIND_NOT_SET: { break; } } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Expr_CreateStruct_Entry::_class_data_ = { - Expr_CreateStruct_Entry::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Expr_CreateStruct_Entry::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Expr_CreateStruct_Entry::MergeImpl }; -const ::google::protobuf::Message::ClassData* Expr_CreateStruct_Entry::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Expr_CreateStruct_Entry::GetClassData() const { return &_class_data_; } + +void Expr_CreateStruct_Entry::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Expr_CreateStruct_Entry::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.Expr.CreateStruct.Entry) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Expr_CreateStruct_Entry::MergeFrom(const Expr_CreateStruct_Entry& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.Expr.CreateStruct.Entry) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_value()->::google::api::expr::v1beta1::Expr::MergeFrom( - from._internal_value()); + if (from._internal_has_value()) { + _internal_mutable_value()->::google::api::expr::v1beta1::Expr::MergeFrom(from._internal_value()); } if (from._internal_id() != 0) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } switch (from.key_kind_case()) { case kFieldKey: { - _this->_internal_set_field_key(from._internal_field_key()); + _internal_set_field_key(from._internal_field_key()); break; } case kMapKey: { - _this->_internal_mutable_map_key()->::google::api::expr::v1beta1::Expr::MergeFrom( - from._internal_map_key()); + _internal_mutable_map_key()->::google::api::expr::v1beta1::Expr::MergeFrom(from._internal_map_key()); break; } case KEY_KIND_NOT_SET: { break; } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Expr_CreateStruct_Entry::CopyFrom(const Expr_CreateStruct_Entry& from) { @@ -2088,218 +1911,226 @@ void Expr_CreateStruct_Entry::CopyFrom(const Expr_CreateStruct_Entry& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Expr_CreateStruct_Entry::IsInitialized() const { +bool Expr_CreateStruct_Entry::IsInitialized() const { return true; } -::_pbi::CachedSize* Expr_CreateStruct_Entry::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Expr_CreateStruct_Entry::InternalSwap(Expr_CreateStruct_Entry* PROTOBUF_RESTRICT other) { +void Expr_CreateStruct_Entry::InternalSwap(Expr_CreateStruct_Entry* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(Expr_CreateStruct_Entry, _impl_.id_) - + sizeof(Expr_CreateStruct_Entry::_impl_.id_) - - PROTOBUF_FIELD_OFFSET(Expr_CreateStruct_Entry, _impl_.value_)>( - reinterpret_cast(&_impl_.value_), - reinterpret_cast(&other->_impl_.value_)); - swap(_impl_.key_kind_, other->_impl_.key_kind_); - swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); -} - -::google::protobuf::Metadata Expr_CreateStruct_Entry::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Expr_CreateStruct_Entry, id_) + + sizeof(Expr_CreateStruct_Entry::id_) + - PROTOBUF_FIELD_OFFSET(Expr_CreateStruct_Entry, value_)>( + reinterpret_cast(&value_), + reinterpret_cast(&other->value_)); + swap(key_kind_, other->key_kind_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Expr_CreateStruct_Entry::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto[5]); } + // =================================================================== class Expr_CreateStruct::_Internal { public: }; -Expr_CreateStruct::Expr_CreateStruct(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Expr_CreateStruct::Expr_CreateStruct(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + entries_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1beta1.Expr.CreateStruct) } -inline PROTOBUF_NDEBUG_INLINE Expr_CreateStruct::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : entries_{visibility, arena, from.entries_}, - type_(arena, from.type_), - _cached_size_{0} {} - -Expr_CreateStruct::Expr_CreateStruct( - ::google::protobuf::Arena* arena, - const Expr_CreateStruct& from) - : ::google::protobuf::Message(arena) { - Expr_CreateStruct* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +Expr_CreateStruct::Expr_CreateStruct(const Expr_CreateStruct& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + entries_(from.entries_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + 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()); + } // @@protoc_insertion_point(copy_constructor:google.api.expr.v1beta1.Expr.CreateStruct) } -inline PROTOBUF_NDEBUG_INLINE Expr_CreateStruct::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : entries_{visibility, arena}, - type_(arena), - _cached_size_{0} {} -inline void Expr_CreateStruct::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void Expr_CreateStruct::SharedCtor() { +type_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + type_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + Expr_CreateStruct::~Expr_CreateStruct() { // @@protoc_insertion_point(destructor:google.api.expr.v1beta1.Expr.CreateStruct) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Expr_CreateStruct::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.type_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + type_.Destroy(); +} + +void Expr_CreateStruct::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void Expr_CreateStruct::Clear() { +void Expr_CreateStruct::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1beta1.Expr.CreateStruct) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.entries_.Clear(); - _impl_.type_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Expr_CreateStruct::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + entries_.Clear(); + type_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Expr_CreateStruct::_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 type = 1 [json_name = "type"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1beta1.Expr.CreateStruct.type")); + } else + goto handle_unusual; + continue; + // repeated .google.api.expr.v1beta1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_entries(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 54, 2> Expr_CreateStruct::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Expr_CreateStruct_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .google.api.expr.v1beta1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"]; - {::_pbi::TcParser::FastMtR1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(Expr_CreateStruct, _impl_.entries_)}}, - // string type = 1 [json_name = "type"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Expr_CreateStruct, _impl_.type_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string type = 1 [json_name = "type"]; - {PROTOBUF_FIELD_OFFSET(Expr_CreateStruct, _impl_.type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated .google.api.expr.v1beta1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"]; - {PROTOBUF_FIELD_OFFSET(Expr_CreateStruct, _impl_.entries_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::expr::v1beta1::Expr_CreateStruct_Entry>()}, - }}, {{ - "\51\4\0\0\0\0\0\0" - "google.api.expr.v1beta1.Expr.CreateStruct" - "type" - }}, -}; - -::uint8_t* Expr_CreateStruct::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Expr_CreateStruct::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.Expr.CreateStruct) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string type = 1 [json_name = "type"]; if (!this->_internal_type().empty()) { - const std::string& _s = this->_internal_type(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.expr.v1beta1.Expr.CreateStruct.type"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_type().data(), static_cast(this->_internal_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1beta1.Expr.CreateStruct.type"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_type(), target); } // repeated .google.api.expr.v1beta1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"]; for (unsigned i = 0, n = static_cast(this->_internal_entries_size()); i < n; i++) { - const auto& repfield = this->_internal_entries().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_entries(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1beta1.Expr.CreateStruct) return target; } -::size_t Expr_CreateStruct::ByteSizeLong() const { +size_t Expr_CreateStruct::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1beta1.Expr.CreateStruct) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .google.api.expr.v1beta1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"]; total_size += 1UL * this->_internal_entries_size(); - for (const auto& msg : this->_internal_entries()) { + for (const auto& msg : this->entries_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // string type = 1 [json_name = "type"]; if (!this->_internal_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_type()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_type()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Expr_CreateStruct::_class_data_ = { - Expr_CreateStruct::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Expr_CreateStruct::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Expr_CreateStruct::MergeImpl }; -const ::google::protobuf::Message::ClassData* Expr_CreateStruct::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Expr_CreateStruct::GetClassData() const { return &_class_data_; } + +void Expr_CreateStruct::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Expr_CreateStruct::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.Expr.CreateStruct) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Expr_CreateStruct::MergeFrom(const Expr_CreateStruct& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.Expr.CreateStruct) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_entries()->MergeFrom( - from._internal_entries()); + entries_.MergeFrom(from.entries_); if (!from._internal_type().empty()) { - _this->_internal_set_type(from._internal_type()); + _internal_set_type(from._internal_type()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Expr_CreateStruct::CopyFrom(const Expr_CreateStruct& from) { @@ -2309,433 +2140,441 @@ void Expr_CreateStruct::CopyFrom(const Expr_CreateStruct& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Expr_CreateStruct::IsInitialized() const { +bool Expr_CreateStruct::IsInitialized() const { return true; } -::_pbi::CachedSize* Expr_CreateStruct::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Expr_CreateStruct::InternalSwap(Expr_CreateStruct* PROTOBUF_RESTRICT other) { +void Expr_CreateStruct::InternalSwap(Expr_CreateStruct* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.entries_.InternalSwap(&other->_impl_.entries_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.type_, &other->_impl_.type_, arena); + entries_.InternalSwap(&other->entries_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &type_, lhs_arena, + &other->type_, rhs_arena + ); } -::google::protobuf::Metadata Expr_CreateStruct::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Expr_CreateStruct::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto[6]); } + // =================================================================== class Expr_Comprehension::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Expr_Comprehension, _impl_._has_bits_); static const ::google::api::expr::v1beta1::Expr& iter_range(const Expr_Comprehension* msg); - static void set_has_iter_range(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } static const ::google::api::expr::v1beta1::Expr& accu_init(const Expr_Comprehension* msg); - static void set_has_accu_init(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } static const ::google::api::expr::v1beta1::Expr& loop_condition(const Expr_Comprehension* msg); - static void set_has_loop_condition(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } static const ::google::api::expr::v1beta1::Expr& loop_step(const Expr_Comprehension* msg); - static void set_has_loop_step(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } static const ::google::api::expr::v1beta1::Expr& result(const Expr_Comprehension* msg); - static void set_has_result(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } }; -const ::google::api::expr::v1beta1::Expr& Expr_Comprehension::_Internal::iter_range(const Expr_Comprehension* msg) { - return *msg->_impl_.iter_range_; +const ::google::api::expr::v1beta1::Expr& +Expr_Comprehension::_Internal::iter_range(const Expr_Comprehension* msg) { + return *msg->iter_range_; } -const ::google::api::expr::v1beta1::Expr& Expr_Comprehension::_Internal::accu_init(const Expr_Comprehension* msg) { - return *msg->_impl_.accu_init_; +const ::google::api::expr::v1beta1::Expr& +Expr_Comprehension::_Internal::accu_init(const Expr_Comprehension* msg) { + return *msg->accu_init_; } -const ::google::api::expr::v1beta1::Expr& Expr_Comprehension::_Internal::loop_condition(const Expr_Comprehension* msg) { - return *msg->_impl_.loop_condition_; +const ::google::api::expr::v1beta1::Expr& +Expr_Comprehension::_Internal::loop_condition(const Expr_Comprehension* msg) { + return *msg->loop_condition_; } -const ::google::api::expr::v1beta1::Expr& Expr_Comprehension::_Internal::loop_step(const Expr_Comprehension* msg) { - return *msg->_impl_.loop_step_; +const ::google::api::expr::v1beta1::Expr& +Expr_Comprehension::_Internal::loop_step(const Expr_Comprehension* msg) { + return *msg->loop_step_; } -const ::google::api::expr::v1beta1::Expr& Expr_Comprehension::_Internal::result(const Expr_Comprehension* msg) { - return *msg->_impl_.result_; +const ::google::api::expr::v1beta1::Expr& +Expr_Comprehension::_Internal::result(const Expr_Comprehension* msg) { + return *msg->result_; } -Expr_Comprehension::Expr_Comprehension(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Expr_Comprehension::Expr_Comprehension(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1beta1.Expr.Comprehension) } -inline PROTOBUF_NDEBUG_INLINE Expr_Comprehension::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - iter_var_(arena, from.iter_var_), - accu_var_(arena, from.accu_var_) {} - -Expr_Comprehension::Expr_Comprehension( - ::google::protobuf::Arena* arena, - const Expr_Comprehension& from) - : ::google::protobuf::Message(arena) { - Expr_Comprehension* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.iter_range_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::api::expr::v1beta1::Expr>(arena, *from._impl_.iter_range_) - : nullptr; - _impl_.accu_init_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::google::api::expr::v1beta1::Expr>(arena, *from._impl_.accu_init_) - : nullptr; - _impl_.loop_condition_ = (cached_has_bits & 0x00000004u) - ? CreateMaybeMessage<::google::api::expr::v1beta1::Expr>(arena, *from._impl_.loop_condition_) - : nullptr; - _impl_.loop_step_ = (cached_has_bits & 0x00000008u) - ? CreateMaybeMessage<::google::api::expr::v1beta1::Expr>(arena, *from._impl_.loop_step_) - : nullptr; - _impl_.result_ = (cached_has_bits & 0x00000010u) - ? CreateMaybeMessage<::google::api::expr::v1beta1::Expr>(arena, *from._impl_.result_) - : nullptr; - +Expr_Comprehension::Expr_Comprehension(const Expr_Comprehension& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + iter_var_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + iter_var_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_iter_var().empty()) { + iter_var_.Set(from._internal_iter_var(), + GetArenaForAllocation()); + } + accu_var_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + accu_var_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_accu_var().empty()) { + accu_var_.Set(from._internal_accu_var(), + GetArenaForAllocation()); + } + if (from._internal_has_iter_range()) { + iter_range_ = new ::google::api::expr::v1beta1::Expr(*from.iter_range_); + } else { + iter_range_ = nullptr; + } + if (from._internal_has_accu_init()) { + accu_init_ = new ::google::api::expr::v1beta1::Expr(*from.accu_init_); + } else { + accu_init_ = nullptr; + } + if (from._internal_has_loop_condition()) { + loop_condition_ = new ::google::api::expr::v1beta1::Expr(*from.loop_condition_); + } else { + loop_condition_ = nullptr; + } + if (from._internal_has_loop_step()) { + loop_step_ = new ::google::api::expr::v1beta1::Expr(*from.loop_step_); + } else { + loop_step_ = nullptr; + } + if (from._internal_has_result()) { + result_ = new ::google::api::expr::v1beta1::Expr(*from.result_); + } else { + result_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:google.api.expr.v1beta1.Expr.Comprehension) } -inline PROTOBUF_NDEBUG_INLINE Expr_Comprehension::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - iter_var_(arena), - accu_var_(arena) {} - -inline void Expr_Comprehension::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, iter_range_), - 0, - offsetof(Impl_, result_) - - offsetof(Impl_, iter_range_) + - sizeof(Impl_::result_)); + +inline void Expr_Comprehension::SharedCtor() { +iter_var_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + iter_var_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +accu_var_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + accu_var_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&iter_range_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&result_) - + reinterpret_cast(&iter_range_)) + sizeof(result_)); } + Expr_Comprehension::~Expr_Comprehension() { // @@protoc_insertion_point(destructor:google.api.expr.v1beta1.Expr.Comprehension) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Expr_Comprehension::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.iter_var_.Destroy(); - _impl_.accu_var_.Destroy(); - delete _impl_.iter_range_; - delete _impl_.accu_init_; - delete _impl_.loop_condition_; - delete _impl_.loop_step_; - delete _impl_.result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void Expr_Comprehension::Clear() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + iter_var_.Destroy(); + accu_var_.Destroy(); + if (this != internal_default_instance()) delete iter_range_; + if (this != internal_default_instance()) delete accu_init_; + if (this != internal_default_instance()) delete loop_condition_; + if (this != internal_default_instance()) delete loop_step_; + if (this != internal_default_instance()) delete result_; +} + +void Expr_Comprehension::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void Expr_Comprehension::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1beta1.Expr.Comprehension) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.iter_var_.ClearToEmpty(); - _impl_.accu_var_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.iter_range_ != nullptr); - _impl_.iter_range_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.accu_init_ != nullptr); - _impl_.accu_init_->Clear(); - } - if (cached_has_bits & 0x00000004u) { - ABSL_DCHECK(_impl_.loop_condition_ != nullptr); - _impl_.loop_condition_->Clear(); - } - if (cached_has_bits & 0x00000008u) { - ABSL_DCHECK(_impl_.loop_step_ != nullptr); - _impl_.loop_step_->Clear(); - } - if (cached_has_bits & 0x00000010u) { - ABSL_DCHECK(_impl_.result_ != nullptr); - _impl_.result_->Clear(); - } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Expr_Comprehension::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + iter_var_.ClearToEmpty(); + accu_var_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && iter_range_ != nullptr) { + delete iter_range_; + } + iter_range_ = nullptr; + if (GetArenaForAllocation() == nullptr && accu_init_ != nullptr) { + delete accu_init_; + } + accu_init_ = nullptr; + if (GetArenaForAllocation() == nullptr && loop_condition_ != nullptr) { + delete loop_condition_; + } + loop_condition_ = nullptr; + if (GetArenaForAllocation() == nullptr && loop_step_ != nullptr) { + delete loop_step_; + } + loop_step_ = nullptr; + if (GetArenaForAllocation() == nullptr && result_ != nullptr) { + delete result_; + } + result_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Expr_Comprehension::_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 iter_var = 1 [json_name = "iterVar"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_iter_var(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1beta1.Expr.Comprehension.iter_var")); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1beta1.Expr iter_range = 2 [json_name = "iterRange"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_iter_range(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string accu_var = 3 [json_name = "accuVar"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_accu_var(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1beta1.Expr.Comprehension.accu_var")); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1beta1.Expr accu_init = 4 [json_name = "accuInit"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_accu_init(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1beta1.Expr loop_condition = 5 [json_name = "loopCondition"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_loop_condition(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1beta1.Expr loop_step = 6 [json_name = "loopStep"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr = ctx->ParseMessage(_internal_mutable_loop_step(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1beta1.Expr result = 7 [json_name = "result"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + ptr = ctx->ParseMessage(_internal_mutable_result(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 7, 5, 67, 2> Expr_Comprehension::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Expr_Comprehension, _impl_._has_bits_), - 0, // no _extensions_ - 7, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967168, // skipmap - offsetof(decltype(_table_), field_entries), - 7, // num_field_entries - 5, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Expr_Comprehension_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string iter_var = 1 [json_name = "iterVar"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Expr_Comprehension, _impl_.iter_var_)}}, - // .google.api.expr.v1beta1.Expr iter_range = 2 [json_name = "iterRange"]; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(Expr_Comprehension, _impl_.iter_range_)}}, - // string accu_var = 3 [json_name = "accuVar"]; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(Expr_Comprehension, _impl_.accu_var_)}}, - // .google.api.expr.v1beta1.Expr accu_init = 4 [json_name = "accuInit"]; - {::_pbi::TcParser::FastMtS1, - {34, 1, 1, PROTOBUF_FIELD_OFFSET(Expr_Comprehension, _impl_.accu_init_)}}, - // .google.api.expr.v1beta1.Expr loop_condition = 5 [json_name = "loopCondition"]; - {::_pbi::TcParser::FastMtS1, - {42, 2, 2, PROTOBUF_FIELD_OFFSET(Expr_Comprehension, _impl_.loop_condition_)}}, - // .google.api.expr.v1beta1.Expr loop_step = 6 [json_name = "loopStep"]; - {::_pbi::TcParser::FastMtS1, - {50, 3, 3, PROTOBUF_FIELD_OFFSET(Expr_Comprehension, _impl_.loop_step_)}}, - // .google.api.expr.v1beta1.Expr result = 7 [json_name = "result"]; - {::_pbi::TcParser::FastMtS1, - {58, 4, 4, PROTOBUF_FIELD_OFFSET(Expr_Comprehension, _impl_.result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string iter_var = 1 [json_name = "iterVar"]; - {PROTOBUF_FIELD_OFFSET(Expr_Comprehension, _impl_.iter_var_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.api.expr.v1beta1.Expr iter_range = 2 [json_name = "iterRange"]; - {PROTOBUF_FIELD_OFFSET(Expr_Comprehension, _impl_.iter_range_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // string accu_var = 3 [json_name = "accuVar"]; - {PROTOBUF_FIELD_OFFSET(Expr_Comprehension, _impl_.accu_var_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.api.expr.v1beta1.Expr accu_init = 4 [json_name = "accuInit"]; - {PROTOBUF_FIELD_OFFSET(Expr_Comprehension, _impl_.accu_init_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.api.expr.v1beta1.Expr loop_condition = 5 [json_name = "loopCondition"]; - {PROTOBUF_FIELD_OFFSET(Expr_Comprehension, _impl_.loop_condition_), _Internal::kHasBitsOffset + 2, 2, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.api.expr.v1beta1.Expr loop_step = 6 [json_name = "loopStep"]; - {PROTOBUF_FIELD_OFFSET(Expr_Comprehension, _impl_.loop_step_), _Internal::kHasBitsOffset + 3, 3, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.api.expr.v1beta1.Expr result = 7 [json_name = "result"]; - {PROTOBUF_FIELD_OFFSET(Expr_Comprehension, _impl_.result_), _Internal::kHasBitsOffset + 4, 4, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::expr::v1beta1::Expr>()}, - {::_pbi::TcParser::GetTable<::google::api::expr::v1beta1::Expr>()}, - {::_pbi::TcParser::GetTable<::google::api::expr::v1beta1::Expr>()}, - {::_pbi::TcParser::GetTable<::google::api::expr::v1beta1::Expr>()}, - {::_pbi::TcParser::GetTable<::google::api::expr::v1beta1::Expr>()}, - }}, {{ - "\52\10\0\10\0\0\0\0" - "google.api.expr.v1beta1.Expr.Comprehension" - "iter_var" - "accu_var" - }}, -}; - -::uint8_t* Expr_Comprehension::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Expr_Comprehension::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.Expr.Comprehension) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string iter_var = 1 [json_name = "iterVar"]; if (!this->_internal_iter_var().empty()) { - const std::string& _s = this->_internal_iter_var(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.expr.v1beta1.Expr.Comprehension.iter_var"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_iter_var().data(), static_cast(this->_internal_iter_var().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1beta1.Expr.Comprehension.iter_var"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_iter_var(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.api.expr.v1beta1.Expr iter_range = 2 [json_name = "iterRange"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::iter_range(this), + if (this->_internal_has_iter_range()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::iter_range(this), _Internal::iter_range(this).GetCachedSize(), target, stream); } // string accu_var = 3 [json_name = "accuVar"]; if (!this->_internal_accu_var().empty()) { - const std::string& _s = this->_internal_accu_var(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.expr.v1beta1.Expr.Comprehension.accu_var"); - target = stream->WriteStringMaybeAliased(3, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_accu_var().data(), static_cast(this->_internal_accu_var().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1beta1.Expr.Comprehension.accu_var"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_accu_var(), target); } // .google.api.expr.v1beta1.Expr accu_init = 4 [json_name = "accuInit"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, _Internal::accu_init(this), + if (this->_internal_has_accu_init()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::accu_init(this), _Internal::accu_init(this).GetCachedSize(), target, stream); } // .google.api.expr.v1beta1.Expr loop_condition = 5 [json_name = "loopCondition"]; - if (cached_has_bits & 0x00000004u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 5, _Internal::loop_condition(this), + if (this->_internal_has_loop_condition()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(5, _Internal::loop_condition(this), _Internal::loop_condition(this).GetCachedSize(), target, stream); } // .google.api.expr.v1beta1.Expr loop_step = 6 [json_name = "loopStep"]; - if (cached_has_bits & 0x00000008u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 6, _Internal::loop_step(this), + if (this->_internal_has_loop_step()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(6, _Internal::loop_step(this), _Internal::loop_step(this).GetCachedSize(), target, stream); } // .google.api.expr.v1beta1.Expr result = 7 [json_name = "result"]; - if (cached_has_bits & 0x00000010u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 7, _Internal::result(this), + if (this->_internal_has_result()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(7, _Internal::result(this), _Internal::result(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1beta1.Expr.Comprehension) return target; } -::size_t Expr_Comprehension::ByteSizeLong() const { +size_t Expr_Comprehension::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1beta1.Expr.Comprehension) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string iter_var = 1 [json_name = "iterVar"]; if (!this->_internal_iter_var().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_iter_var()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_iter_var()); } // string accu_var = 3 [json_name = "accuVar"]; if (!this->_internal_accu_var().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_accu_var()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_accu_var()); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { - // .google.api.expr.v1beta1.Expr iter_range = 2 [json_name = "iterRange"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.iter_range_); - } - - // .google.api.expr.v1beta1.Expr accu_init = 4 [json_name = "accuInit"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.accu_init_); - } + // .google.api.expr.v1beta1.Expr iter_range = 2 [json_name = "iterRange"]; + if (this->_internal_has_iter_range()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *iter_range_); + } - // .google.api.expr.v1beta1.Expr loop_condition = 5 [json_name = "loopCondition"]; - if (cached_has_bits & 0x00000004u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.loop_condition_); - } + // .google.api.expr.v1beta1.Expr accu_init = 4 [json_name = "accuInit"]; + if (this->_internal_has_accu_init()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *accu_init_); + } - // .google.api.expr.v1beta1.Expr loop_step = 6 [json_name = "loopStep"]; - if (cached_has_bits & 0x00000008u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.loop_step_); - } + // .google.api.expr.v1beta1.Expr loop_condition = 5 [json_name = "loopCondition"]; + if (this->_internal_has_loop_condition()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *loop_condition_); + } - // .google.api.expr.v1beta1.Expr result = 7 [json_name = "result"]; - if (cached_has_bits & 0x00000010u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.result_); - } + // .google.api.expr.v1beta1.Expr loop_step = 6 [json_name = "loopStep"]; + if (this->_internal_has_loop_step()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *loop_step_); + } + // .google.api.expr.v1beta1.Expr result = 7 [json_name = "result"]; + if (this->_internal_has_result()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *result_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Expr_Comprehension::_class_data_ = { - Expr_Comprehension::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Expr_Comprehension::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Expr_Comprehension::MergeImpl }; -const ::google::protobuf::Message::ClassData* Expr_Comprehension::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Expr_Comprehension::GetClassData() const { return &_class_data_; } + +void Expr_Comprehension::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Expr_Comprehension::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.Expr.Comprehension) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Expr_Comprehension::MergeFrom(const Expr_Comprehension& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.Expr.Comprehension) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_iter_var().empty()) { - _this->_internal_set_iter_var(from._internal_iter_var()); + _internal_set_iter_var(from._internal_iter_var()); } if (!from._internal_accu_var().empty()) { - _this->_internal_set_accu_var(from._internal_accu_var()); + _internal_set_accu_var(from._internal_accu_var()); } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_iter_range()->::google::api::expr::v1beta1::Expr::MergeFrom( - from._internal_iter_range()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_accu_init()->::google::api::expr::v1beta1::Expr::MergeFrom( - from._internal_accu_init()); - } - if (cached_has_bits & 0x00000004u) { - _this->_internal_mutable_loop_condition()->::google::api::expr::v1beta1::Expr::MergeFrom( - from._internal_loop_condition()); - } - if (cached_has_bits & 0x00000008u) { - _this->_internal_mutable_loop_step()->::google::api::expr::v1beta1::Expr::MergeFrom( - from._internal_loop_step()); - } - if (cached_has_bits & 0x00000010u) { - _this->_internal_mutable_result()->::google::api::expr::v1beta1::Expr::MergeFrom( - from._internal_result()); - } + if (from._internal_has_iter_range()) { + _internal_mutable_iter_range()->::google::api::expr::v1beta1::Expr::MergeFrom(from._internal_iter_range()); + } + if (from._internal_has_accu_init()) { + _internal_mutable_accu_init()->::google::api::expr::v1beta1::Expr::MergeFrom(from._internal_accu_init()); + } + if (from._internal_has_loop_condition()) { + _internal_mutable_loop_condition()->::google::api::expr::v1beta1::Expr::MergeFrom(from._internal_loop_condition()); + } + if (from._internal_has_loop_step()) { + _internal_mutable_loop_step()->::google::api::expr::v1beta1::Expr::MergeFrom(from._internal_loop_step()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_result()) { + _internal_mutable_result()->::google::api::expr::v1beta1::Expr::MergeFrom(from._internal_result()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Expr_Comprehension::CopyFrom(const Expr_Comprehension& from) { @@ -2745,40 +2584,41 @@ void Expr_Comprehension::CopyFrom(const Expr_Comprehension& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Expr_Comprehension::IsInitialized() const { +bool Expr_Comprehension::IsInitialized() const { return true; } -::_pbi::CachedSize* Expr_Comprehension::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Expr_Comprehension::InternalSwap(Expr_Comprehension* PROTOBUF_RESTRICT other) { +void Expr_Comprehension::InternalSwap(Expr_Comprehension* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.iter_var_, &other->_impl_.iter_var_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.accu_var_, &other->_impl_.accu_var_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(Expr_Comprehension, _impl_.result_) - + sizeof(Expr_Comprehension::_impl_.result_) - - PROTOBUF_FIELD_OFFSET(Expr_Comprehension, _impl_.iter_range_)>( - reinterpret_cast(&_impl_.iter_range_), - reinterpret_cast(&other->_impl_.iter_range_)); -} - -::google::protobuf::Metadata Expr_Comprehension::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &iter_var_, lhs_arena, + &other->iter_var_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &accu_var_, lhs_arena, + &other->accu_var_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Expr_Comprehension, result_) + + sizeof(Expr_Comprehension::result_) + - PROTOBUF_FIELD_OFFSET(Expr_Comprehension, iter_range_)>( + reinterpret_cast(&iter_range_), + reinterpret_cast(&other->iter_range_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Expr_Comprehension::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto[7]); } + // =================================================================== class Expr::_Internal { public: - static constexpr ::int32_t kOneofCaseOffset = - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Expr, _impl_._oneof_case_); static const ::google::api::expr::v1beta1::Literal& literal_expr(const Expr* msg); static const ::google::api::expr::v1beta1::Expr_Ident& ident_expr(const Expr* msg); static const ::google::api::expr::v1beta1::Expr_Select& select_expr(const Expr* msg); @@ -2788,235 +2628,253 @@ class Expr::_Internal { static const ::google::api::expr::v1beta1::Expr_Comprehension& comprehension_expr(const Expr* msg); }; -const ::google::api::expr::v1beta1::Literal& Expr::_Internal::literal_expr(const Expr* msg) { - return *msg->_impl_.expr_kind_.literal_expr_; +const ::google::api::expr::v1beta1::Literal& +Expr::_Internal::literal_expr(const Expr* msg) { + return *msg->expr_kind_.literal_expr_; } -const ::google::api::expr::v1beta1::Expr_Ident& Expr::_Internal::ident_expr(const Expr* msg) { - return *msg->_impl_.expr_kind_.ident_expr_; +const ::google::api::expr::v1beta1::Expr_Ident& +Expr::_Internal::ident_expr(const Expr* msg) { + return *msg->expr_kind_.ident_expr_; } -const ::google::api::expr::v1beta1::Expr_Select& Expr::_Internal::select_expr(const Expr* msg) { - return *msg->_impl_.expr_kind_.select_expr_; +const ::google::api::expr::v1beta1::Expr_Select& +Expr::_Internal::select_expr(const Expr* msg) { + return *msg->expr_kind_.select_expr_; } -const ::google::api::expr::v1beta1::Expr_Call& Expr::_Internal::call_expr(const Expr* msg) { - return *msg->_impl_.expr_kind_.call_expr_; +const ::google::api::expr::v1beta1::Expr_Call& +Expr::_Internal::call_expr(const Expr* msg) { + return *msg->expr_kind_.call_expr_; } -const ::google::api::expr::v1beta1::Expr_CreateList& Expr::_Internal::list_expr(const Expr* msg) { - return *msg->_impl_.expr_kind_.list_expr_; +const ::google::api::expr::v1beta1::Expr_CreateList& +Expr::_Internal::list_expr(const Expr* msg) { + return *msg->expr_kind_.list_expr_; } -const ::google::api::expr::v1beta1::Expr_CreateStruct& Expr::_Internal::struct_expr(const Expr* msg) { - return *msg->_impl_.expr_kind_.struct_expr_; +const ::google::api::expr::v1beta1::Expr_CreateStruct& +Expr::_Internal::struct_expr(const Expr* msg) { + return *msg->expr_kind_.struct_expr_; } -const ::google::api::expr::v1beta1::Expr_Comprehension& Expr::_Internal::comprehension_expr(const Expr* msg) { - return *msg->_impl_.expr_kind_.comprehension_expr_; +const ::google::api::expr::v1beta1::Expr_Comprehension& +Expr::_Internal::comprehension_expr(const Expr* msg) { + return *msg->expr_kind_.comprehension_expr_; } void Expr::set_allocated_literal_expr(::google::api::expr::v1beta1::Literal* literal_expr) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_expr_kind(); if (literal_expr) { - ::google::protobuf::Arena* submessage_arena = literal_expr->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(literal_expr); if (message_arena != submessage_arena) { - literal_expr = ::google::protobuf::internal::GetOwnedMessage(message_arena, literal_expr, submessage_arena); + literal_expr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, literal_expr, submessage_arena); } set_has_literal_expr(); - _impl_.expr_kind_.literal_expr_ = literal_expr; + expr_kind_.literal_expr_ = literal_expr; } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Expr.literal_expr) } void Expr::set_allocated_ident_expr(::google::api::expr::v1beta1::Expr_Ident* ident_expr) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_expr_kind(); if (ident_expr) { - ::google::protobuf::Arena* submessage_arena = ident_expr->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(ident_expr); if (message_arena != submessage_arena) { - ident_expr = ::google::protobuf::internal::GetOwnedMessage(message_arena, ident_expr, submessage_arena); + ident_expr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, ident_expr, submessage_arena); } set_has_ident_expr(); - _impl_.expr_kind_.ident_expr_ = ident_expr; + expr_kind_.ident_expr_ = ident_expr; } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Expr.ident_expr) } void Expr::set_allocated_select_expr(::google::api::expr::v1beta1::Expr_Select* select_expr) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_expr_kind(); if (select_expr) { - ::google::protobuf::Arena* submessage_arena = select_expr->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(select_expr); if (message_arena != submessage_arena) { - select_expr = ::google::protobuf::internal::GetOwnedMessage(message_arena, select_expr, submessage_arena); + select_expr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, select_expr, submessage_arena); } set_has_select_expr(); - _impl_.expr_kind_.select_expr_ = select_expr; + expr_kind_.select_expr_ = select_expr; } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Expr.select_expr) } void Expr::set_allocated_call_expr(::google::api::expr::v1beta1::Expr_Call* call_expr) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_expr_kind(); if (call_expr) { - ::google::protobuf::Arena* submessage_arena = call_expr->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(call_expr); if (message_arena != submessage_arena) { - call_expr = ::google::protobuf::internal::GetOwnedMessage(message_arena, call_expr, submessage_arena); + call_expr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, call_expr, submessage_arena); } set_has_call_expr(); - _impl_.expr_kind_.call_expr_ = call_expr; + expr_kind_.call_expr_ = call_expr; } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Expr.call_expr) } void Expr::set_allocated_list_expr(::google::api::expr::v1beta1::Expr_CreateList* list_expr) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_expr_kind(); if (list_expr) { - ::google::protobuf::Arena* submessage_arena = list_expr->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(list_expr); if (message_arena != submessage_arena) { - list_expr = ::google::protobuf::internal::GetOwnedMessage(message_arena, list_expr, submessage_arena); + list_expr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, list_expr, submessage_arena); } set_has_list_expr(); - _impl_.expr_kind_.list_expr_ = list_expr; + expr_kind_.list_expr_ = list_expr; } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Expr.list_expr) } void Expr::set_allocated_struct_expr(::google::api::expr::v1beta1::Expr_CreateStruct* struct_expr) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_expr_kind(); if (struct_expr) { - ::google::protobuf::Arena* submessage_arena = struct_expr->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(struct_expr); if (message_arena != submessage_arena) { - struct_expr = ::google::protobuf::internal::GetOwnedMessage(message_arena, struct_expr, submessage_arena); + struct_expr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, struct_expr, submessage_arena); } set_has_struct_expr(); - _impl_.expr_kind_.struct_expr_ = struct_expr; + expr_kind_.struct_expr_ = struct_expr; } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Expr.struct_expr) } void Expr::set_allocated_comprehension_expr(::google::api::expr::v1beta1::Expr_Comprehension* comprehension_expr) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_expr_kind(); if (comprehension_expr) { - ::google::protobuf::Arena* submessage_arena = comprehension_expr->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(comprehension_expr); if (message_arena != submessage_arena) { - comprehension_expr = ::google::protobuf::internal::GetOwnedMessage(message_arena, comprehension_expr, submessage_arena); + comprehension_expr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, comprehension_expr, submessage_arena); } set_has_comprehension_expr(); - _impl_.expr_kind_.comprehension_expr_ = comprehension_expr; + expr_kind_.comprehension_expr_ = comprehension_expr; } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Expr.comprehension_expr) } -Expr::Expr(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Expr::Expr(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1beta1.Expr) } -inline PROTOBUF_NDEBUG_INLINE Expr::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : expr_kind_{}, - _cached_size_{0}, - _oneof_case_{from._oneof_case_[0]} {} - -Expr::Expr( - ::google::protobuf::Arena* arena, - const Expr& from) - : ::google::protobuf::Message(arena) { - Expr* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.id_ = from._impl_.id_; - switch (expr_kind_case()) { - case EXPR_KIND_NOT_SET: - break; - case kLiteralExpr: - _impl_.expr_kind_.literal_expr_ = CreateMaybeMessage<::google::api::expr::v1beta1::Literal>(arena, *from._impl_.expr_kind_.literal_expr_); - break; - case kIdentExpr: - _impl_.expr_kind_.ident_expr_ = CreateMaybeMessage<::google::api::expr::v1beta1::Expr_Ident>(arena, *from._impl_.expr_kind_.ident_expr_); - break; - case kSelectExpr: - _impl_.expr_kind_.select_expr_ = CreateMaybeMessage<::google::api::expr::v1beta1::Expr_Select>(arena, *from._impl_.expr_kind_.select_expr_); - break; - case kCallExpr: - _impl_.expr_kind_.call_expr_ = CreateMaybeMessage<::google::api::expr::v1beta1::Expr_Call>(arena, *from._impl_.expr_kind_.call_expr_); - break; - case kListExpr: - _impl_.expr_kind_.list_expr_ = CreateMaybeMessage<::google::api::expr::v1beta1::Expr_CreateList>(arena, *from._impl_.expr_kind_.list_expr_); - break; - case kStructExpr: - _impl_.expr_kind_.struct_expr_ = CreateMaybeMessage<::google::api::expr::v1beta1::Expr_CreateStruct>(arena, *from._impl_.expr_kind_.struct_expr_); - break; - case kComprehensionExpr: - _impl_.expr_kind_.comprehension_expr_ = CreateMaybeMessage<::google::api::expr::v1beta1::Expr_Comprehension>(arena, *from._impl_.expr_kind_.comprehension_expr_); - break; +Expr::Expr(const Expr& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_ = from.id_; + clear_has_expr_kind(); + switch (from.expr_kind_case()) { + case kLiteralExpr: { + _internal_mutable_literal_expr()->::google::api::expr::v1beta1::Literal::MergeFrom(from._internal_literal_expr()); + break; + } + case kIdentExpr: { + _internal_mutable_ident_expr()->::google::api::expr::v1beta1::Expr_Ident::MergeFrom(from._internal_ident_expr()); + break; + } + case kSelectExpr: { + _internal_mutable_select_expr()->::google::api::expr::v1beta1::Expr_Select::MergeFrom(from._internal_select_expr()); + break; + } + case kCallExpr: { + _internal_mutable_call_expr()->::google::api::expr::v1beta1::Expr_Call::MergeFrom(from._internal_call_expr()); + break; + } + case kListExpr: { + _internal_mutable_list_expr()->::google::api::expr::v1beta1::Expr_CreateList::MergeFrom(from._internal_list_expr()); + break; + } + case kStructExpr: { + _internal_mutable_struct_expr()->::google::api::expr::v1beta1::Expr_CreateStruct::MergeFrom(from._internal_struct_expr()); + break; + } + case kComprehensionExpr: { + _internal_mutable_comprehension_expr()->::google::api::expr::v1beta1::Expr_Comprehension::MergeFrom(from._internal_comprehension_expr()); + break; + } + case EXPR_KIND_NOT_SET: { + break; + } } - // @@protoc_insertion_point(copy_constructor:google.api.expr.v1beta1.Expr) } -inline PROTOBUF_NDEBUG_INLINE Expr::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : expr_kind_{}, - _cached_size_{0}, - _oneof_case_{} {} -inline void Expr::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.id_ = {}; +inline void Expr::SharedCtor() { +id_ = 0; +clear_has_expr_kind(); } + Expr::~Expr() { // @@protoc_insertion_point(destructor:google.api.expr.v1beta1.Expr) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Expr::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); if (has_expr_kind()) { clear_expr_kind(); } - _impl_.~Impl_(); +} + +void Expr::SetCachedSize(int size) const { + _cached_size_.Set(size); } void Expr::clear_expr_kind() { // @@protoc_insertion_point(one_of_clear_start:google.api.expr.v1beta1.Expr) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); switch (expr_kind_case()) { case kLiteralExpr: { - if (GetArena() == nullptr) { - delete _impl_.expr_kind_.literal_expr_; + if (GetArenaForAllocation() == nullptr) { + delete expr_kind_.literal_expr_; } break; } case kIdentExpr: { - if (GetArena() == nullptr) { - delete _impl_.expr_kind_.ident_expr_; + if (GetArenaForAllocation() == nullptr) { + delete expr_kind_.ident_expr_; } break; } case kSelectExpr: { - if (GetArena() == nullptr) { - delete _impl_.expr_kind_.select_expr_; + if (GetArenaForAllocation() == nullptr) { + delete expr_kind_.select_expr_; } break; } case kCallExpr: { - if (GetArena() == nullptr) { - delete _impl_.expr_kind_.call_expr_; + if (GetArenaForAllocation() == nullptr) { + delete expr_kind_.call_expr_; } break; } case kListExpr: { - if (GetArena() == nullptr) { - delete _impl_.expr_kind_.list_expr_; + if (GetArenaForAllocation() == nullptr) { + delete expr_kind_.list_expr_; } break; } case kStructExpr: { - if (GetArena() == nullptr) { - delete _impl_.expr_kind_.struct_expr_; + if (GetArenaForAllocation() == nullptr) { + delete expr_kind_.struct_expr_; } break; } case kComprehensionExpr: { - if (GetArena() == nullptr) { - delete _impl_.expr_kind_.comprehension_expr_; + if (GetArenaForAllocation() == nullptr) { + delete expr_kind_.comprehension_expr_; } break; } @@ -3024,279 +2882,309 @@ void Expr::clear_expr_kind() { break; } } - _impl_._oneof_case_[0] = EXPR_KIND_NOT_SET; + _oneof_case_[0] = EXPR_KIND_NOT_SET; } -PROTOBUF_NOINLINE void Expr::Clear() { +void Expr::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1beta1.Expr) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.id_ = 0; + id_ = 0; clear_expr_kind(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Expr::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Expr::_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) { + // int32 id = 2 [json_name = "id"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1beta1.Literal literal_expr = 3 [json_name = "literalExpr"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_literal_expr(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1beta1.Expr.Ident ident_expr = 4 [json_name = "identExpr"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_ident_expr(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1beta1.Expr.Select select_expr = 5 [json_name = "selectExpr"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_select_expr(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1beta1.Expr.Call call_expr = 6 [json_name = "callExpr"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr = ctx->ParseMessage(_internal_mutable_call_expr(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1beta1.Expr.CreateList list_expr = 7 [json_name = "listExpr"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + ptr = ctx->ParseMessage(_internal_mutable_list_expr(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1beta1.Expr.CreateStruct struct_expr = 8 [json_name = "structExpr"]; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { + ptr = ctx->ParseMessage(_internal_mutable_struct_expr(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1beta1.Expr.Comprehension comprehension_expr = 9 [json_name = "comprehensionExpr"]; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { + ptr = ctx->ParseMessage(_internal_mutable_comprehension_expr(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 8, 7, 0, 2> Expr::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 9, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294966785, // skipmap - offsetof(decltype(_table_), field_entries), - 8, // num_field_entries - 7, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Expr_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // int32 id = 2 [json_name = "id"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Expr, _impl_.id_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(Expr, _impl_.id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // int32 id = 2 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(Expr, _impl_.id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // .google.api.expr.v1beta1.Literal literal_expr = 3 [json_name = "literalExpr"]; - {PROTOBUF_FIELD_OFFSET(Expr, _impl_.expr_kind_.literal_expr_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.api.expr.v1beta1.Expr.Ident ident_expr = 4 [json_name = "identExpr"]; - {PROTOBUF_FIELD_OFFSET(Expr, _impl_.expr_kind_.ident_expr_), _Internal::kOneofCaseOffset + 0, 1, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.api.expr.v1beta1.Expr.Select select_expr = 5 [json_name = "selectExpr"]; - {PROTOBUF_FIELD_OFFSET(Expr, _impl_.expr_kind_.select_expr_), _Internal::kOneofCaseOffset + 0, 2, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.api.expr.v1beta1.Expr.Call call_expr = 6 [json_name = "callExpr"]; - {PROTOBUF_FIELD_OFFSET(Expr, _impl_.expr_kind_.call_expr_), _Internal::kOneofCaseOffset + 0, 3, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.api.expr.v1beta1.Expr.CreateList list_expr = 7 [json_name = "listExpr"]; - {PROTOBUF_FIELD_OFFSET(Expr, _impl_.expr_kind_.list_expr_), _Internal::kOneofCaseOffset + 0, 4, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.api.expr.v1beta1.Expr.CreateStruct struct_expr = 8 [json_name = "structExpr"]; - {PROTOBUF_FIELD_OFFSET(Expr, _impl_.expr_kind_.struct_expr_), _Internal::kOneofCaseOffset + 0, 5, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.api.expr.v1beta1.Expr.Comprehension comprehension_expr = 9 [json_name = "comprehensionExpr"]; - {PROTOBUF_FIELD_OFFSET(Expr, _impl_.expr_kind_.comprehension_expr_), _Internal::kOneofCaseOffset + 0, 6, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::expr::v1beta1::Literal>()}, - {::_pbi::TcParser::GetTable<::google::api::expr::v1beta1::Expr_Ident>()}, - {::_pbi::TcParser::GetTable<::google::api::expr::v1beta1::Expr_Select>()}, - {::_pbi::TcParser::GetTable<::google::api::expr::v1beta1::Expr_Call>()}, - {::_pbi::TcParser::GetTable<::google::api::expr::v1beta1::Expr_CreateList>()}, - {::_pbi::TcParser::GetTable<::google::api::expr::v1beta1::Expr_CreateStruct>()}, - {::_pbi::TcParser::GetTable<::google::api::expr::v1beta1::Expr_Comprehension>()}, - }}, {{ - }}, -}; - -::uint8_t* Expr::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Expr::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.Expr) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // int32 id = 2 [json_name = "id"]; if (this->_internal_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<2>( - stream, this->_internal_id(), target); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_id(), target); } - switch (expr_kind_case()) { - case kLiteralExpr: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::literal_expr(this), - _Internal::literal_expr(this).GetCachedSize(), target, stream); - break; - } - case kIdentExpr: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, _Internal::ident_expr(this), - _Internal::ident_expr(this).GetCachedSize(), target, stream); - break; - } - case kSelectExpr: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 5, _Internal::select_expr(this), - _Internal::select_expr(this).GetCachedSize(), target, stream); - break; - } - case kCallExpr: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 6, _Internal::call_expr(this), - _Internal::call_expr(this).GetCachedSize(), target, stream); - break; - } - case kListExpr: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 7, _Internal::list_expr(this), - _Internal::list_expr(this).GetCachedSize(), target, stream); - break; - } - case kStructExpr: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 8, _Internal::struct_expr(this), - _Internal::struct_expr(this).GetCachedSize(), target, stream); - break; - } - case kComprehensionExpr: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 9, _Internal::comprehension_expr(this), - _Internal::comprehension_expr(this).GetCachedSize(), target, stream); - break; - } - default: - break; + // .google.api.expr.v1beta1.Literal literal_expr = 3 [json_name = "literalExpr"]; + if (_internal_has_literal_expr()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::literal_expr(this), + _Internal::literal_expr(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1beta1.Expr.Ident ident_expr = 4 [json_name = "identExpr"]; + if (_internal_has_ident_expr()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::ident_expr(this), + _Internal::ident_expr(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1beta1.Expr.Select select_expr = 5 [json_name = "selectExpr"]; + if (_internal_has_select_expr()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(5, _Internal::select_expr(this), + _Internal::select_expr(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1beta1.Expr.Call call_expr = 6 [json_name = "callExpr"]; + if (_internal_has_call_expr()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(6, _Internal::call_expr(this), + _Internal::call_expr(this).GetCachedSize(), target, stream); } + + // .google.api.expr.v1beta1.Expr.CreateList list_expr = 7 [json_name = "listExpr"]; + if (_internal_has_list_expr()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(7, _Internal::list_expr(this), + _Internal::list_expr(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1beta1.Expr.CreateStruct struct_expr = 8 [json_name = "structExpr"]; + if (_internal_has_struct_expr()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(8, _Internal::struct_expr(this), + _Internal::struct_expr(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1beta1.Expr.Comprehension comprehension_expr = 9 [json_name = "comprehensionExpr"]; + if (_internal_has_comprehension_expr()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(9, _Internal::comprehension_expr(this), + _Internal::comprehension_expr(this).GetCachedSize(), target, stream); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1beta1.Expr) return target; } -::size_t Expr::ByteSizeLong() const { +size_t Expr::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1beta1.Expr) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // int32 id = 2 [json_name = "id"]; if (this->_internal_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_id()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_id()); } switch (expr_kind_case()) { // .google.api.expr.v1beta1.Literal literal_expr = 3 [json_name = "literalExpr"]; case kLiteralExpr: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.expr_kind_.literal_expr_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *expr_kind_.literal_expr_); break; } // .google.api.expr.v1beta1.Expr.Ident ident_expr = 4 [json_name = "identExpr"]; case kIdentExpr: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.expr_kind_.ident_expr_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *expr_kind_.ident_expr_); break; } // .google.api.expr.v1beta1.Expr.Select select_expr = 5 [json_name = "selectExpr"]; case kSelectExpr: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.expr_kind_.select_expr_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *expr_kind_.select_expr_); break; } // .google.api.expr.v1beta1.Expr.Call call_expr = 6 [json_name = "callExpr"]; case kCallExpr: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.expr_kind_.call_expr_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *expr_kind_.call_expr_); break; } // .google.api.expr.v1beta1.Expr.CreateList list_expr = 7 [json_name = "listExpr"]; case kListExpr: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.expr_kind_.list_expr_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *expr_kind_.list_expr_); break; } // .google.api.expr.v1beta1.Expr.CreateStruct struct_expr = 8 [json_name = "structExpr"]; case kStructExpr: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.expr_kind_.struct_expr_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *expr_kind_.struct_expr_); break; } // .google.api.expr.v1beta1.Expr.Comprehension comprehension_expr = 9 [json_name = "comprehensionExpr"]; case kComprehensionExpr: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.expr_kind_.comprehension_expr_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *expr_kind_.comprehension_expr_); break; } case EXPR_KIND_NOT_SET: { break; } } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Expr::_class_data_ = { - Expr::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Expr::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Expr::MergeImpl }; -const ::google::protobuf::Message::ClassData* Expr::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Expr::GetClassData() const { return &_class_data_; } + +void Expr::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Expr::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.Expr) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Expr::MergeFrom(const Expr& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.Expr) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_id() != 0) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } switch (from.expr_kind_case()) { case kLiteralExpr: { - _this->_internal_mutable_literal_expr()->::google::api::expr::v1beta1::Literal::MergeFrom( - from._internal_literal_expr()); + _internal_mutable_literal_expr()->::google::api::expr::v1beta1::Literal::MergeFrom(from._internal_literal_expr()); break; } case kIdentExpr: { - _this->_internal_mutable_ident_expr()->::google::api::expr::v1beta1::Expr_Ident::MergeFrom( - from._internal_ident_expr()); + _internal_mutable_ident_expr()->::google::api::expr::v1beta1::Expr_Ident::MergeFrom(from._internal_ident_expr()); break; } case kSelectExpr: { - _this->_internal_mutable_select_expr()->::google::api::expr::v1beta1::Expr_Select::MergeFrom( - from._internal_select_expr()); + _internal_mutable_select_expr()->::google::api::expr::v1beta1::Expr_Select::MergeFrom(from._internal_select_expr()); break; } case kCallExpr: { - _this->_internal_mutable_call_expr()->::google::api::expr::v1beta1::Expr_Call::MergeFrom( - from._internal_call_expr()); + _internal_mutable_call_expr()->::google::api::expr::v1beta1::Expr_Call::MergeFrom(from._internal_call_expr()); break; } case kListExpr: { - _this->_internal_mutable_list_expr()->::google::api::expr::v1beta1::Expr_CreateList::MergeFrom( - from._internal_list_expr()); + _internal_mutable_list_expr()->::google::api::expr::v1beta1::Expr_CreateList::MergeFrom(from._internal_list_expr()); break; } case kStructExpr: { - _this->_internal_mutable_struct_expr()->::google::api::expr::v1beta1::Expr_CreateStruct::MergeFrom( - from._internal_struct_expr()); + _internal_mutable_struct_expr()->::google::api::expr::v1beta1::Expr_CreateStruct::MergeFrom(from._internal_struct_expr()); break; } case kComprehensionExpr: { - _this->_internal_mutable_comprehension_expr()->::google::api::expr::v1beta1::Expr_Comprehension::MergeFrom( - from._internal_comprehension_expr()); + _internal_mutable_comprehension_expr()->::google::api::expr::v1beta1::Expr_Comprehension::MergeFrom(from._internal_comprehension_expr()); break; } case EXPR_KIND_NOT_SET: { break; } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Expr::CopyFrom(const Expr& from) { @@ -3306,109 +3194,102 @@ void Expr::CopyFrom(const Expr& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Expr::IsInitialized() const { +bool Expr::IsInitialized() const { return true; } -::_pbi::CachedSize* Expr::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Expr::InternalSwap(Expr* PROTOBUF_RESTRICT other) { +void Expr::InternalSwap(Expr* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.id_, other->_impl_.id_); - swap(_impl_.expr_kind_, other->_impl_.expr_kind_); - swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); + swap(id_, other->id_); + swap(expr_kind_, other->expr_kind_); + swap(_oneof_case_[0], other->_oneof_case_[0]); } -::google::protobuf::Metadata Expr::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Expr::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto[8]); } + // =================================================================== class Literal::_Internal { public: - static constexpr ::int32_t kOneofCaseOffset = - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Literal, _impl_._oneof_case_); }; -Literal::Literal(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Literal::Literal(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1beta1.Literal) } -inline PROTOBUF_NDEBUG_INLINE Literal::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : constant_kind_{}, - _cached_size_{0}, - _oneof_case_{from._oneof_case_[0]} {} - -Literal::Literal( - ::google::protobuf::Arena* arena, - const Literal& from) - : ::google::protobuf::Message(arena) { - Literal* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - switch (constant_kind_case()) { - case CONSTANT_KIND_NOT_SET: - break; - case kNullValue: - _impl_.constant_kind_.null_value_ = from._impl_.constant_kind_.null_value_; - break; - case kBoolValue: - _impl_.constant_kind_.bool_value_ = from._impl_.constant_kind_.bool_value_; - break; - case kInt64Value: - _impl_.constant_kind_.int64_value_ = from._impl_.constant_kind_.int64_value_; - break; - case kUint64Value: - _impl_.constant_kind_.uint64_value_ = from._impl_.constant_kind_.uint64_value_; - break; - case kDoubleValue: - _impl_.constant_kind_.double_value_ = from._impl_.constant_kind_.double_value_; - break; - case kStringValue: - new (&_impl_.constant_kind_.string_value_) decltype(_impl_.constant_kind_.string_value_){arena, from._impl_.constant_kind_.string_value_}; - break; - case kBytesValue: - new (&_impl_.constant_kind_.bytes_value_) decltype(_impl_.constant_kind_.bytes_value_){arena, from._impl_.constant_kind_.bytes_value_}; - break; +Literal::Literal(const Literal& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + clear_has_constant_kind(); + switch (from.constant_kind_case()) { + case kNullValue: { + _internal_set_null_value(from._internal_null_value()); + break; + } + case kBoolValue: { + _internal_set_bool_value(from._internal_bool_value()); + break; + } + case kInt64Value: { + _internal_set_int64_value(from._internal_int64_value()); + break; + } + case kUint64Value: { + _internal_set_uint64_value(from._internal_uint64_value()); + break; + } + case kDoubleValue: { + _internal_set_double_value(from._internal_double_value()); + break; + } + case kStringValue: { + _internal_set_string_value(from._internal_string_value()); + break; + } + case kBytesValue: { + _internal_set_bytes_value(from._internal_bytes_value()); + break; + } + case CONSTANT_KIND_NOT_SET: { + break; + } } - // @@protoc_insertion_point(copy_constructor:google.api.expr.v1beta1.Literal) } -inline PROTOBUF_NDEBUG_INLINE Literal::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : constant_kind_{}, - _cached_size_{0}, - _oneof_case_{} {} -inline void Literal::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void Literal::SharedCtor() { +clear_has_constant_kind(); } + Literal::~Literal() { // @@protoc_insertion_point(destructor:google.api.expr.v1beta1.Literal) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Literal::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); if (has_constant_kind()) { clear_constant_kind(); } - _impl_.~Impl_(); +} + +void Literal::SetCachedSize(int size) const { + _cached_size_.Set(size); } void Literal::clear_constant_kind() { // @@protoc_insertion_point(one_of_clear_start:google.api.expr.v1beta1.Literal) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); switch (constant_kind_case()) { case kNullValue: { // No need to clear @@ -3431,155 +3312,186 @@ void Literal::clear_constant_kind() { break; } case kStringValue: { - _impl_.constant_kind_.string_value_.Destroy(); + constant_kind_.string_value_.Destroy(); break; } case kBytesValue: { - _impl_.constant_kind_.bytes_value_.Destroy(); + constant_kind_.bytes_value_.Destroy(); break; } case CONSTANT_KIND_NOT_SET: { break; } } - _impl_._oneof_case_[0] = CONSTANT_KIND_NOT_SET; + _oneof_case_[0] = CONSTANT_KIND_NOT_SET; } -PROTOBUF_NOINLINE void Literal::Clear() { +void Literal::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1beta1.Literal) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; clear_constant_kind(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Literal::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Literal::_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) { + // .google.protobuf.NullValue null_value = 1 [json_name = "nullValue"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_null_value(static_cast<::PROTOBUF_NAMESPACE_ID::NullValue>(val)); + } else + goto handle_unusual; + continue; + // bool bool_value = 2 [json_name = "boolValue"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _internal_set_bool_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int64 int64_value = 3 [json_name = "int64Value"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + _internal_set_int64_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // uint64 uint64_value = 4 [json_name = "uint64Value"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + _internal_set_uint64_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // double double_value = 5 [json_name = "doubleValue"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 41)) { + _internal_set_double_value(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // string string_value = 6 [json_name = "stringValue"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + auto str = _internal_mutable_string_value(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1beta1.Literal.string_value")); + } else + goto handle_unusual; + continue; + // bytes bytes_value = 7 [json_name = "bytesValue"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + auto str = _internal_mutable_bytes_value(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + 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* Literal::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.Literal) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 7, 0, 52, 2> Literal::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 7, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967168, // skipmap - offsetof(decltype(_table_), field_entries), - 7, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_Literal_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // .google.protobuf.NullValue null_value = 1 [json_name = "nullValue"]; - {PROTOBUF_FIELD_OFFSET(Literal, _impl_.constant_kind_.null_value_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kOpenEnum)}, - // bool bool_value = 2 [json_name = "boolValue"]; - {PROTOBUF_FIELD_OFFSET(Literal, _impl_.constant_kind_.bool_value_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kBool)}, - // int64 int64_value = 3 [json_name = "int64Value"]; - {PROTOBUF_FIELD_OFFSET(Literal, _impl_.constant_kind_.int64_value_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kInt64)}, - // uint64 uint64_value = 4 [json_name = "uint64Value"]; - {PROTOBUF_FIELD_OFFSET(Literal, _impl_.constant_kind_.uint64_value_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kUInt64)}, - // double double_value = 5 [json_name = "doubleValue"]; - {PROTOBUF_FIELD_OFFSET(Literal, _impl_.constant_kind_.double_value_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kDouble)}, - // string string_value = 6 [json_name = "stringValue"]; - {PROTOBUF_FIELD_OFFSET(Literal, _impl_.constant_kind_.string_value_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // bytes bytes_value = 7 [json_name = "bytesValue"]; - {PROTOBUF_FIELD_OFFSET(Literal, _impl_.constant_kind_.bytes_value_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\37\0\0\0\0\0\14\0" - "google.api.expr.v1beta1.Literal" - "string_value" - }}, -}; + // .google.protobuf.NullValue null_value = 1 [json_name = "nullValue"]; + if (_internal_has_null_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this->_internal_null_value(), target); + } -::uint8_t* Literal::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.Literal) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + // bool bool_value = 2 [json_name = "boolValue"]; + if (_internal_has_bool_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_bool_value(), target); + } - switch (constant_kind_case()) { - case kNullValue: { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_null_value(), target); - break; - } - case kBoolValue: { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 2, this->_internal_bool_value(), target); - break; - } - case kInt64Value: { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<3>( - stream, this->_internal_int64_value(), target); - break; - } - case kUint64Value: { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 4, this->_internal_uint64_value(), target); - break; - } - case kDoubleValue: { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 5, this->_internal_double_value(), target); - break; - } - case kStringValue: { - const std::string& _s = this->_internal_string_value(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.expr.v1beta1.Literal.string_value"); - target = stream->WriteStringMaybeAliased(6, _s, target); - break; - } - case kBytesValue: { - const std::string& _s = this->_internal_bytes_value(); - target = stream->WriteBytesMaybeAliased(7, _s, target); - break; - } - default: - break; + // int64 int64_value = 3 [json_name = "int64Value"]; + if (_internal_has_int64_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(3, this->_internal_int64_value(), target); + } + + // uint64 uint64_value = 4 [json_name = "uint64Value"]; + if (_internal_has_uint64_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(4, this->_internal_uint64_value(), target); + } + + // double double_value = 5 [json_name = "doubleValue"]; + if (_internal_has_double_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(5, this->_internal_double_value(), target); } + + // string string_value = 6 [json_name = "stringValue"]; + if (_internal_has_string_value()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_string_value().data(), static_cast(this->_internal_string_value().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1beta1.Literal.string_value"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_string_value(), target); + } + + // bytes bytes_value = 7 [json_name = "bytesValue"]; + if (_internal_has_bytes_value()) { + target = stream->WriteBytesMaybeAliased( + 7, this->_internal_bytes_value(), target); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1beta1.Literal) return target; } -::size_t Literal::ByteSizeLong() const { +size_t Literal::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1beta1.Literal) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -3587,100 +3499,103 @@ ::size_t Literal::ByteSizeLong() const { // .google.protobuf.NullValue null_value = 1 [json_name = "nullValue"]; case kNullValue: { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_null_value()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_null_value()); break; } // bool bool_value = 2 [json_name = "boolValue"]; case kBoolValue: { - total_size += 2; + total_size += 1 + 1; break; } // int64 int64_value = 3 [json_name = "int64Value"]; case kInt64Value: { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( - this->_internal_int64_value()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_int64_value()); break; } // uint64 uint64_value = 4 [json_name = "uint64Value"]; case kUint64Value: { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_uint64_value()); + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_uint64_value()); break; } // double double_value = 5 [json_name = "doubleValue"]; case kDoubleValue: { - total_size += 9; + total_size += 1 + 8; break; } // string string_value = 6 [json_name = "stringValue"]; case kStringValue: { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_string_value()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_string_value()); break; } // bytes bytes_value = 7 [json_name = "bytesValue"]; case kBytesValue: { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_bytes_value()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_bytes_value()); break; } case CONSTANT_KIND_NOT_SET: { break; } } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Literal::_class_data_ = { - Literal::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Literal::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Literal::MergeImpl }; -const ::google::protobuf::Message::ClassData* Literal::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Literal::GetClassData() const { return &_class_data_; } + +void Literal::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Literal::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.Literal) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Literal::MergeFrom(const Literal& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.Literal) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; switch (from.constant_kind_case()) { case kNullValue: { - _this->_internal_set_null_value(from._internal_null_value()); + _internal_set_null_value(from._internal_null_value()); break; } case kBoolValue: { - _this->_internal_set_bool_value(from._internal_bool_value()); + _internal_set_bool_value(from._internal_bool_value()); break; } case kInt64Value: { - _this->_internal_set_int64_value(from._internal_int64_value()); + _internal_set_int64_value(from._internal_int64_value()); break; } case kUint64Value: { - _this->_internal_set_uint64_value(from._internal_uint64_value()); + _internal_set_uint64_value(from._internal_uint64_value()); break; } case kDoubleValue: { - _this->_internal_set_double_value(from._internal_double_value()); + _internal_set_double_value(from._internal_double_value()); break; } case kStringValue: { - _this->_internal_set_string_value(from._internal_string_value()); + _internal_set_string_value(from._internal_string_value()); break; } case kBytesValue: { - _this->_internal_set_bytes_value(from._internal_bytes_value()); + _internal_set_bytes_value(from._internal_bytes_value()); break; } case CONSTANT_KIND_NOT_SET: { break; } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Literal::CopyFrom(const Literal& from) { @@ -3690,33 +3605,70 @@ void Literal::CopyFrom(const Literal& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Literal::IsInitialized() const { +bool Literal::IsInitialized() const { return true; } -::_pbi::CachedSize* Literal::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Literal::InternalSwap(Literal* PROTOBUF_RESTRICT other) { +void Literal::InternalSwap(Literal* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.constant_kind_, other->_impl_.constant_kind_); - swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); + swap(constant_kind_, other->constant_kind_); + swap(_oneof_case_[0], other->_oneof_case_[0]); } -::google::protobuf::Metadata Literal::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Literal::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto[9]); } + // @@protoc_insertion_point(namespace_scope) } // namespace v1beta1 } // namespace expr } // namespace api } // namespace google -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::google::api::expr::v1beta1::ParsedExpr* +Arena::CreateMaybeMessage< ::google::api::expr::v1beta1::ParsedExpr >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1beta1::ParsedExpr >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1beta1::Expr_Ident* +Arena::CreateMaybeMessage< ::google::api::expr::v1beta1::Expr_Ident >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1beta1::Expr_Ident >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1beta1::Expr_Select* +Arena::CreateMaybeMessage< ::google::api::expr::v1beta1::Expr_Select >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1beta1::Expr_Select >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1beta1::Expr_Call* +Arena::CreateMaybeMessage< ::google::api::expr::v1beta1::Expr_Call >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1beta1::Expr_Call >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1beta1::Expr_CreateList* +Arena::CreateMaybeMessage< ::google::api::expr::v1beta1::Expr_CreateList >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1beta1::Expr_CreateList >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1beta1::Expr_CreateStruct_Entry* +Arena::CreateMaybeMessage< ::google::api::expr::v1beta1::Expr_CreateStruct_Entry >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1beta1::Expr_CreateStruct_Entry >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1beta1::Expr_CreateStruct* +Arena::CreateMaybeMessage< ::google::api::expr::v1beta1::Expr_CreateStruct >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1beta1::Expr_CreateStruct >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1beta1::Expr_Comprehension* +Arena::CreateMaybeMessage< ::google::api::expr::v1beta1::Expr_Comprehension >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1beta1::Expr_Comprehension >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1beta1::Expr* +Arena::CreateMaybeMessage< ::google::api::expr::v1beta1::Expr >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1beta1::Expr >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1beta1::Literal* +Arena::CreateMaybeMessage< ::google::api::expr::v1beta1::Literal >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1beta1::Literal >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/google/api/expr/v1beta1/expr.pb.h b/src/viam/api/google/api/expr/v1beta1/expr.pb.h index 92b7302ab..e0735facb 100644 --- a/src/viam/api/google/api/expr/v1beta1/expr.pb.h +++ b/src/viam/api/google/api/expr/v1beta1/expr.pb.h @@ -1,62 +1,51 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/expr/v1beta1/expr.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/unknown_field_set.h" + +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include #include "google/api/expr/v1beta1/source.pb.h" -#include "google/protobuf/struct.pb.h" +#include // @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - +#include #define PROTOBUF_INTERNAL_EXPORT_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto; namespace google { namespace api { namespace expr { @@ -94,10 +83,19 @@ extern ParsedExprDefaultTypeInternal _ParsedExpr_default_instance_; } // namespace v1beta1 } // namespace expr } // namespace api -namespace protobuf { -} // namespace protobuf } // namespace google - +PROTOBUF_NAMESPACE_OPEN +template<> ::google::api::expr::v1beta1::Expr* Arena::CreateMaybeMessage<::google::api::expr::v1beta1::Expr>(Arena*); +template<> ::google::api::expr::v1beta1::Expr_Call* Arena::CreateMaybeMessage<::google::api::expr::v1beta1::Expr_Call>(Arena*); +template<> ::google::api::expr::v1beta1::Expr_Comprehension* Arena::CreateMaybeMessage<::google::api::expr::v1beta1::Expr_Comprehension>(Arena*); +template<> ::google::api::expr::v1beta1::Expr_CreateList* Arena::CreateMaybeMessage<::google::api::expr::v1beta1::Expr_CreateList>(Arena*); +template<> ::google::api::expr::v1beta1::Expr_CreateStruct* Arena::CreateMaybeMessage<::google::api::expr::v1beta1::Expr_CreateStruct>(Arena*); +template<> ::google::api::expr::v1beta1::Expr_CreateStruct_Entry* Arena::CreateMaybeMessage<::google::api::expr::v1beta1::Expr_CreateStruct_Entry>(Arena*); +template<> ::google::api::expr::v1beta1::Expr_Ident* Arena::CreateMaybeMessage<::google::api::expr::v1beta1::Expr_Ident>(Arena*); +template<> ::google::api::expr::v1beta1::Expr_Select* Arena::CreateMaybeMessage<::google::api::expr::v1beta1::Expr_Select>(Arena*); +template<> ::google::api::expr::v1beta1::Literal* Arena::CreateMaybeMessage<::google::api::expr::v1beta1::Literal>(Arena*); +template<> ::google::api::expr::v1beta1::ParsedExpr* Arena::CreateMaybeMessage<::google::api::expr::v1beta1::ParsedExpr>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace google { namespace api { namespace expr { @@ -105,33 +103,28 @@ namespace v1beta1 { // =================================================================== - -// ------------------------------------------------------------------- - -class Literal final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.Literal) */ { +class ParsedExpr final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.ParsedExpr) */ { public: - inline Literal() : Literal(nullptr) {} - ~Literal() override; - template - explicit PROTOBUF_CONSTEXPR Literal(::google::protobuf::internal::ConstantInitialized); + inline ParsedExpr() : ParsedExpr(nullptr) {} + ~ParsedExpr() override; + explicit PROTOBUF_CONSTEXPR ParsedExpr(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Literal(const Literal& from) - : Literal(nullptr, from) {} - Literal(Literal&& from) noexcept - : Literal() { + ParsedExpr(const ParsedExpr& from); + ParsedExpr(ParsedExpr&& from) noexcept + : ParsedExpr() { *this = ::std::move(from); } - inline Literal& operator=(const Literal& from) { + inline ParsedExpr& operator=(const ParsedExpr& from) { CopyFrom(from); return *this; } - inline Literal& operator=(Literal&& from) noexcept { + inline ParsedExpr& operator=(ParsedExpr&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -141,278 +134,171 @@ class Literal final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Literal& default_instance() { + static const ParsedExpr& default_instance() { return *internal_default_instance(); } - enum ConstantKindCase { - kNullValue = 1, - kBoolValue = 2, - kInt64Value = 3, - kUint64Value = 4, - kDoubleValue = 5, - kStringValue = 6, - kBytesValue = 7, - CONSTANT_KIND_NOT_SET = 0, - }; - - static inline const Literal* internal_default_instance() { - return reinterpret_cast( - &_Literal_default_instance_); + static inline const ParsedExpr* internal_default_instance() { + return reinterpret_cast( + &_ParsedExpr_default_instance_); } static constexpr int kIndexInFileMessages = - 9; + 0; - friend void swap(Literal& a, Literal& b) { + friend void swap(ParsedExpr& a, ParsedExpr& b) { a.Swap(&b); } - inline void Swap(Literal* other) { + inline void Swap(ParsedExpr* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Literal* other) { + void UnsafeArenaSwap(ParsedExpr* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Literal* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Literal& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Literal& from) { - Literal::MergeImpl(*this, from); + ParsedExpr* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ParsedExpr& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ParsedExpr& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Literal* other); + void SetCachedSize(int size) const final; + void InternalSwap(ParsedExpr* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.expr.v1beta1.Literal"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1beta1.ParsedExpr"; } protected: - explicit Literal(::google::protobuf::Arena* arena); - Literal(::google::protobuf::Arena* arena, const Literal& from); + explicit ParsedExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kNullValueFieldNumber = 1, - kBoolValueFieldNumber = 2, - kInt64ValueFieldNumber = 3, - kUint64ValueFieldNumber = 4, - kDoubleValueFieldNumber = 5, - kStringValueFieldNumber = 6, - kBytesValueFieldNumber = 7, + kSyntaxVersionFieldNumber = 4, + kExprFieldNumber = 2, + kSourceInfoFieldNumber = 3, }; - // .google.protobuf.NullValue null_value = 1 [json_name = "nullValue"]; - bool has_null_value() const; - void clear_null_value() ; - ::google::protobuf::NullValue null_value() const; - void set_null_value(::google::protobuf::NullValue value); - - private: - ::google::protobuf::NullValue _internal_null_value() const; - void _internal_set_null_value(::google::protobuf::NullValue value); - - public: - // bool bool_value = 2 [json_name = "boolValue"]; - bool has_bool_value() const; - void clear_bool_value() ; - bool bool_value() const; - void set_bool_value(bool value); - + // string syntax_version = 4 [json_name = "syntaxVersion"]; + void clear_syntax_version(); + const std::string& syntax_version() const; + template + void set_syntax_version(ArgT0&& arg0, ArgT... args); + std::string* mutable_syntax_version(); + PROTOBUF_NODISCARD std::string* release_syntax_version(); + void set_allocated_syntax_version(std::string* syntax_version); private: - bool _internal_bool_value() const; - void _internal_set_bool_value(bool value); - + const std::string& _internal_syntax_version() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_syntax_version(const std::string& value); + std::string* _internal_mutable_syntax_version(); public: - // int64 int64_value = 3 [json_name = "int64Value"]; - bool has_int64_value() const; - void clear_int64_value() ; - ::int64_t int64_value() const; - void set_int64_value(::int64_t value); + // .google.api.expr.v1beta1.Expr expr = 2 [json_name = "expr"]; + bool has_expr() const; private: - ::int64_t _internal_int64_value() const; - void _internal_set_int64_value(::int64_t value); - + bool _internal_has_expr() const; public: - // uint64 uint64_value = 4 [json_name = "uint64Value"]; - bool has_uint64_value() const; - void clear_uint64_value() ; - ::uint64_t uint64_value() const; - void set_uint64_value(::uint64_t value); - + void clear_expr(); + const ::google::api::expr::v1beta1::Expr& expr() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Expr* release_expr(); + ::google::api::expr::v1beta1::Expr* mutable_expr(); + void set_allocated_expr(::google::api::expr::v1beta1::Expr* expr); private: - ::uint64_t _internal_uint64_value() const; - void _internal_set_uint64_value(::uint64_t value); - + const ::google::api::expr::v1beta1::Expr& _internal_expr() const; + ::google::api::expr::v1beta1::Expr* _internal_mutable_expr(); public: - // double double_value = 5 [json_name = "doubleValue"]; - bool has_double_value() const; - void clear_double_value() ; - double double_value() const; - void set_double_value(double value); + void unsafe_arena_set_allocated_expr( + ::google::api::expr::v1beta1::Expr* expr); + ::google::api::expr::v1beta1::Expr* unsafe_arena_release_expr(); + // .google.api.expr.v1beta1.SourceInfo source_info = 3 [json_name = "sourceInfo"]; + bool has_source_info() const; private: - double _internal_double_value() const; - void _internal_set_double_value(double value); - + bool _internal_has_source_info() const; public: - // string string_value = 6 [json_name = "stringValue"]; - bool has_string_value() const; - void clear_string_value() ; - const std::string& string_value() const; - template - void set_string_value(Arg_&& arg, Args_... args); - std::string* mutable_string_value(); - PROTOBUF_NODISCARD std::string* release_string_value(); - void set_allocated_string_value(std::string* value); - + void clear_source_info(); + const ::google::api::expr::v1beta1::SourceInfo& source_info() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::SourceInfo* release_source_info(); + ::google::api::expr::v1beta1::SourceInfo* mutable_source_info(); + void set_allocated_source_info(::google::api::expr::v1beta1::SourceInfo* source_info); private: - const std::string& _internal_string_value() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_string_value( - const std::string& value); - std::string* _internal_mutable_string_value(); - + const ::google::api::expr::v1beta1::SourceInfo& _internal_source_info() const; + ::google::api::expr::v1beta1::SourceInfo* _internal_mutable_source_info(); public: - // bytes bytes_value = 7 [json_name = "bytesValue"]; - bool has_bytes_value() const; - void clear_bytes_value() ; - const std::string& bytes_value() const; - template - void set_bytes_value(Arg_&& arg, Args_... args); - std::string* mutable_bytes_value(); - PROTOBUF_NODISCARD std::string* release_bytes_value(); - void set_allocated_bytes_value(std::string* value); - - private: - const std::string& _internal_bytes_value() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_bytes_value( - const std::string& value); - std::string* _internal_mutable_bytes_value(); + void unsafe_arena_set_allocated_source_info( + ::google::api::expr::v1beta1::SourceInfo* source_info); + ::google::api::expr::v1beta1::SourceInfo* unsafe_arena_release_source_info(); - public: - void clear_constant_kind(); - ConstantKindCase constant_kind_case() const; - // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.Literal) + // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.ParsedExpr) private: class _Internal; - void set_has_null_value(); - void set_has_bool_value(); - void set_has_int64_value(); - void set_has_uint64_value(); - void set_has_double_value(); - void set_has_string_value(); - void set_has_bytes_value(); - - inline bool has_constant_kind() const; - inline void clear_has_constant_kind(); - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 7, 0, - 52, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - union ConstantKindUnion { - constexpr ConstantKindUnion() : _constinit_{} {} - ::google::protobuf::internal::ConstantInitialized _constinit_; - int null_value_; - bool bool_value_; - ::int64_t int64_value_; - ::uint64_t uint64_value_; - double double_value_; - ::google::protobuf::internal::ArenaStringPtr string_value_; - ::google::protobuf::internal::ArenaStringPtr bytes_value_; - } constant_kind_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t _oneof_case_[1]; - - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr syntax_version_; + ::google::api::expr::v1beta1::Expr* expr_; + ::google::api::expr::v1beta1::SourceInfo* source_info_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class Expr_Ident final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.Expr.Ident) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.Expr.Ident) */ { public: inline Expr_Ident() : Expr_Ident(nullptr) {} ~Expr_Ident() override; - template - explicit PROTOBUF_CONSTEXPR Expr_Ident(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR Expr_Ident(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Expr_Ident(const Expr_Ident& from) - : Expr_Ident(nullptr, from) {} + Expr_Ident(const Expr_Ident& from); Expr_Ident(Expr_Ident&& from) noexcept : Expr_Ident() { *this = ::std::move(from); @@ -424,9 +310,9 @@ class Expr_Ident final : } inline Expr_Ident& operator=(Expr_Ident&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -436,22 +322,13 @@ class Expr_Ident final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const Expr_Ident& default_instance() { @@ -470,65 +347,63 @@ class Expr_Ident final : inline void Swap(Expr_Ident* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(Expr_Ident* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Expr_Ident* New(::google::protobuf::Arena* arena = nullptr) const final { + Expr_Ident* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const Expr_Ident& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Expr_Ident& from) { - Expr_Ident::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Expr_Ident& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(Expr_Ident* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "google.api.expr.v1beta1.Expr.Ident"; } protected: - explicit Expr_Ident(::google::protobuf::Arena* arena); - Expr_Ident(::google::protobuf::Arena* arena, const Expr_Ident& from); + explicit Expr_Ident(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -538,76 +413,54 @@ class Expr_Ident final : kNameFieldNumber = 1, }; // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); std::string* _internal_mutable_name(); - public: + // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.Expr.Ident) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 47, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr name_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Expr final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.Expr) */ { +class Expr_Select final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.Expr.Select) */ { public: - inline Expr() : Expr(nullptr) {} - ~Expr() override; - template - explicit PROTOBUF_CONSTEXPR Expr(::google::protobuf::internal::ConstantInitialized); + inline Expr_Select() : Expr_Select(nullptr) {} + ~Expr_Select() override; + explicit PROTOBUF_CONSTEXPR Expr_Select(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Expr(const Expr& from) - : Expr(nullptr, from) {} - Expr(Expr&& from) noexcept - : Expr() { + Expr_Select(const Expr_Select& from); + Expr_Select(Expr_Select&& from) noexcept + : Expr_Select() { *this = ::std::move(from); } - inline Expr& operator=(const Expr& from) { + inline Expr_Select& operator=(const Expr_Select& from) { CopyFrom(from); return *this; } - inline Expr& operator=(Expr&& from) noexcept { + inline Expr_Select& operator=(Expr_Select&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -617,341 +470,162 @@ class Expr final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Expr& default_instance() { + static const Expr_Select& default_instance() { return *internal_default_instance(); } - enum ExprKindCase { - kLiteralExpr = 3, - kIdentExpr = 4, - kSelectExpr = 5, - kCallExpr = 6, - kListExpr = 7, - kStructExpr = 8, - kComprehensionExpr = 9, - EXPR_KIND_NOT_SET = 0, - }; - - static inline const Expr* internal_default_instance() { - return reinterpret_cast( - &_Expr_default_instance_); + static inline const Expr_Select* internal_default_instance() { + return reinterpret_cast( + &_Expr_Select_default_instance_); } static constexpr int kIndexInFileMessages = - 8; + 2; - friend void swap(Expr& a, Expr& b) { + friend void swap(Expr_Select& a, Expr_Select& b) { a.Swap(&b); } - inline void Swap(Expr* other) { + inline void Swap(Expr_Select* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Expr* other) { + void UnsafeArenaSwap(Expr_Select* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Expr* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Expr& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Expr& from) { - Expr::MergeImpl(*this, from); + Expr_Select* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Expr_Select& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Expr_Select& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Expr* other); + void SetCachedSize(int size) const final; + void InternalSwap(Expr_Select* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.expr.v1beta1.Expr"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1beta1.Expr.Select"; } protected: - explicit Expr(::google::protobuf::Arena* arena); - Expr(::google::protobuf::Arena* arena, const Expr& from); + explicit Expr_Select(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- - using Ident = Expr_Ident; - using Select = Expr_Select; - using Call = Expr_Call; - using CreateList = Expr_CreateList; - using CreateStruct = Expr_CreateStruct; - using Comprehension = Expr_Comprehension; - // accessors ------------------------------------------------------- enum : int { - kIdFieldNumber = 2, - kLiteralExprFieldNumber = 3, - kIdentExprFieldNumber = 4, - kSelectExprFieldNumber = 5, - kCallExprFieldNumber = 6, - kListExprFieldNumber = 7, - kStructExprFieldNumber = 8, - kComprehensionExprFieldNumber = 9, + kFieldFieldNumber = 2, + kOperandFieldNumber = 1, + kTestOnlyFieldNumber = 3, }; - // int32 id = 2 [json_name = "id"]; - void clear_id() ; - ::int32_t id() const; - void set_id(::int32_t value); - + // string field = 2 [json_name = "field"]; + void clear_field(); + const std::string& field() const; + template + void set_field(ArgT0&& arg0, ArgT... args); + std::string* mutable_field(); + PROTOBUF_NODISCARD std::string* release_field(); + void set_allocated_field(std::string* field); private: - ::int32_t _internal_id() const; - void _internal_set_id(::int32_t value); + const std::string& _internal_field() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_field(const std::string& value); + std::string* _internal_mutable_field(); + public: + // .google.api.expr.v1beta1.Expr operand = 1 [json_name = "operand"]; + bool has_operand() const; + private: + bool _internal_has_operand() const; public: - // .google.api.expr.v1beta1.Literal literal_expr = 3 [json_name = "literalExpr"]; - bool has_literal_expr() const; + void clear_operand(); + const ::google::api::expr::v1beta1::Expr& operand() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Expr* release_operand(); + ::google::api::expr::v1beta1::Expr* mutable_operand(); + void set_allocated_operand(::google::api::expr::v1beta1::Expr* operand); private: - bool _internal_has_literal_expr() const; - + const ::google::api::expr::v1beta1::Expr& _internal_operand() const; + ::google::api::expr::v1beta1::Expr* _internal_mutable_operand(); public: - void clear_literal_expr() ; - const ::google::api::expr::v1beta1::Literal& literal_expr() const; - PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Literal* release_literal_expr(); - ::google::api::expr::v1beta1::Literal* mutable_literal_expr(); - void set_allocated_literal_expr(::google::api::expr::v1beta1::Literal* value); - void unsafe_arena_set_allocated_literal_expr(::google::api::expr::v1beta1::Literal* value); - ::google::api::expr::v1beta1::Literal* unsafe_arena_release_literal_expr(); - - private: - const ::google::api::expr::v1beta1::Literal& _internal_literal_expr() const; - ::google::api::expr::v1beta1::Literal* _internal_mutable_literal_expr(); - - public: - // .google.api.expr.v1beta1.Expr.Ident ident_expr = 4 [json_name = "identExpr"]; - bool has_ident_expr() const; - private: - bool _internal_has_ident_expr() const; - - public: - void clear_ident_expr() ; - const ::google::api::expr::v1beta1::Expr_Ident& ident_expr() const; - PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Expr_Ident* release_ident_expr(); - ::google::api::expr::v1beta1::Expr_Ident* mutable_ident_expr(); - void set_allocated_ident_expr(::google::api::expr::v1beta1::Expr_Ident* value); - void unsafe_arena_set_allocated_ident_expr(::google::api::expr::v1beta1::Expr_Ident* value); - ::google::api::expr::v1beta1::Expr_Ident* unsafe_arena_release_ident_expr(); - - private: - const ::google::api::expr::v1beta1::Expr_Ident& _internal_ident_expr() const; - ::google::api::expr::v1beta1::Expr_Ident* _internal_mutable_ident_expr(); - - public: - // .google.api.expr.v1beta1.Expr.Select select_expr = 5 [json_name = "selectExpr"]; - bool has_select_expr() const; - private: - bool _internal_has_select_expr() const; - - public: - void clear_select_expr() ; - const ::google::api::expr::v1beta1::Expr_Select& select_expr() const; - PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Expr_Select* release_select_expr(); - ::google::api::expr::v1beta1::Expr_Select* mutable_select_expr(); - void set_allocated_select_expr(::google::api::expr::v1beta1::Expr_Select* value); - void unsafe_arena_set_allocated_select_expr(::google::api::expr::v1beta1::Expr_Select* value); - ::google::api::expr::v1beta1::Expr_Select* unsafe_arena_release_select_expr(); - - private: - const ::google::api::expr::v1beta1::Expr_Select& _internal_select_expr() const; - ::google::api::expr::v1beta1::Expr_Select* _internal_mutable_select_expr(); - - public: - // .google.api.expr.v1beta1.Expr.Call call_expr = 6 [json_name = "callExpr"]; - bool has_call_expr() const; - private: - bool _internal_has_call_expr() const; - - public: - void clear_call_expr() ; - const ::google::api::expr::v1beta1::Expr_Call& call_expr() const; - PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Expr_Call* release_call_expr(); - ::google::api::expr::v1beta1::Expr_Call* mutable_call_expr(); - void set_allocated_call_expr(::google::api::expr::v1beta1::Expr_Call* value); - void unsafe_arena_set_allocated_call_expr(::google::api::expr::v1beta1::Expr_Call* value); - ::google::api::expr::v1beta1::Expr_Call* unsafe_arena_release_call_expr(); - - private: - const ::google::api::expr::v1beta1::Expr_Call& _internal_call_expr() const; - ::google::api::expr::v1beta1::Expr_Call* _internal_mutable_call_expr(); - - public: - // .google.api.expr.v1beta1.Expr.CreateList list_expr = 7 [json_name = "listExpr"]; - bool has_list_expr() const; - private: - bool _internal_has_list_expr() const; - - public: - void clear_list_expr() ; - const ::google::api::expr::v1beta1::Expr_CreateList& list_expr() const; - PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Expr_CreateList* release_list_expr(); - ::google::api::expr::v1beta1::Expr_CreateList* mutable_list_expr(); - void set_allocated_list_expr(::google::api::expr::v1beta1::Expr_CreateList* value); - void unsafe_arena_set_allocated_list_expr(::google::api::expr::v1beta1::Expr_CreateList* value); - ::google::api::expr::v1beta1::Expr_CreateList* unsafe_arena_release_list_expr(); - - private: - const ::google::api::expr::v1beta1::Expr_CreateList& _internal_list_expr() const; - ::google::api::expr::v1beta1::Expr_CreateList* _internal_mutable_list_expr(); - - public: - // .google.api.expr.v1beta1.Expr.CreateStruct struct_expr = 8 [json_name = "structExpr"]; - bool has_struct_expr() const; - private: - bool _internal_has_struct_expr() const; - - public: - void clear_struct_expr() ; - const ::google::api::expr::v1beta1::Expr_CreateStruct& struct_expr() const; - PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Expr_CreateStruct* release_struct_expr(); - ::google::api::expr::v1beta1::Expr_CreateStruct* mutable_struct_expr(); - void set_allocated_struct_expr(::google::api::expr::v1beta1::Expr_CreateStruct* value); - void unsafe_arena_set_allocated_struct_expr(::google::api::expr::v1beta1::Expr_CreateStruct* value); - ::google::api::expr::v1beta1::Expr_CreateStruct* unsafe_arena_release_struct_expr(); - - private: - const ::google::api::expr::v1beta1::Expr_CreateStruct& _internal_struct_expr() const; - ::google::api::expr::v1beta1::Expr_CreateStruct* _internal_mutable_struct_expr(); + void unsafe_arena_set_allocated_operand( + ::google::api::expr::v1beta1::Expr* operand); + ::google::api::expr::v1beta1::Expr* unsafe_arena_release_operand(); - public: - // .google.api.expr.v1beta1.Expr.Comprehension comprehension_expr = 9 [json_name = "comprehensionExpr"]; - bool has_comprehension_expr() const; + // bool test_only = 3 [json_name = "testOnly"]; + void clear_test_only(); + bool test_only() const; + void set_test_only(bool value); private: - bool _internal_has_comprehension_expr() const; - + bool _internal_test_only() const; + void _internal_set_test_only(bool value); public: - void clear_comprehension_expr() ; - const ::google::api::expr::v1beta1::Expr_Comprehension& comprehension_expr() const; - PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Expr_Comprehension* release_comprehension_expr(); - ::google::api::expr::v1beta1::Expr_Comprehension* mutable_comprehension_expr(); - void set_allocated_comprehension_expr(::google::api::expr::v1beta1::Expr_Comprehension* value); - void unsafe_arena_set_allocated_comprehension_expr(::google::api::expr::v1beta1::Expr_Comprehension* value); - ::google::api::expr::v1beta1::Expr_Comprehension* unsafe_arena_release_comprehension_expr(); - - private: - const ::google::api::expr::v1beta1::Expr_Comprehension& _internal_comprehension_expr() const; - ::google::api::expr::v1beta1::Expr_Comprehension* _internal_mutable_comprehension_expr(); - public: - void clear_expr_kind(); - ExprKindCase expr_kind_case() const; - // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.Expr) + // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.Expr.Select) private: class _Internal; - void set_has_literal_expr(); - void set_has_ident_expr(); - void set_has_select_expr(); - void set_has_call_expr(); - void set_has_list_expr(); - void set_has_struct_expr(); - void set_has_comprehension_expr(); - - inline bool has_expr_kind() const; - inline void clear_has_expr_kind(); - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 8, 7, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::int32_t id_; - union ExprKindUnion { - constexpr ExprKindUnion() : _constinit_{} {} - ::google::protobuf::internal::ConstantInitialized _constinit_; - ::google::api::expr::v1beta1::Literal* literal_expr_; - ::google::api::expr::v1beta1::Expr_Ident* ident_expr_; - ::google::api::expr::v1beta1::Expr_Select* select_expr_; - ::google::api::expr::v1beta1::Expr_Call* call_expr_; - ::google::api::expr::v1beta1::Expr_CreateList* list_expr_; - ::google::api::expr::v1beta1::Expr_CreateStruct* struct_expr_; - ::google::api::expr::v1beta1::Expr_Comprehension* comprehension_expr_; - } expr_kind_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t _oneof_case_[1]; - - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr field_; + ::google::api::expr::v1beta1::Expr* operand_; + bool test_only_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class Expr_Call final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.Expr.Call) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.Expr.Call) */ { public: inline Expr_Call() : Expr_Call(nullptr) {} ~Expr_Call() override; - template - explicit PROTOBUF_CONSTEXPR Expr_Call(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR Expr_Call(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Expr_Call(const Expr_Call& from) - : Expr_Call(nullptr, from) {} + Expr_Call(const Expr_Call& from); Expr_Call(Expr_Call&& from) noexcept : Expr_Call() { *this = ::std::move(from); @@ -963,9 +637,9 @@ class Expr_Call final : } inline Expr_Call& operator=(Expr_Call&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -975,22 +649,13 @@ class Expr_Call final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const Expr_Call& default_instance() { @@ -1009,65 +674,63 @@ class Expr_Call final : inline void Swap(Expr_Call* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(Expr_Call* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Expr_Call* New(::google::protobuf::Arena* arena = nullptr) const final { + Expr_Call* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const Expr_Call& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Expr_Call& from) { - Expr_Call::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Expr_Call& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(Expr_Call* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "google.api.expr.v1beta1.Expr.Call"; } protected: - explicit Expr_Call(::google::protobuf::Arena* arena); - Expr_Call(::google::protobuf::Arena* arena, const Expr_Call& from); + explicit Expr_Call(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1082,109 +745,89 @@ class Expr_Call final : int args_size() const; private: int _internal_args_size() const; - public: - void clear_args() ; + void clear_args(); ::google::api::expr::v1beta1::Expr* mutable_args(int index); - ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1beta1::Expr >* + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::Expr >* mutable_args(); private: - const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::Expr>& _internal_args() const; - ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::Expr>* _internal_mutable_args(); + const ::google::api::expr::v1beta1::Expr& _internal_args(int index) const; + ::google::api::expr::v1beta1::Expr* _internal_add_args(); public: const ::google::api::expr::v1beta1::Expr& args(int index) const; ::google::api::expr::v1beta1::Expr* add_args(); - const ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1beta1::Expr >& + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::Expr >& args() const; + // string function = 2 [json_name = "function"]; - void clear_function() ; + void clear_function(); const std::string& function() const; - template - void set_function(Arg_&& arg, Args_... args); + template + void set_function(ArgT0&& arg0, ArgT... args); std::string* mutable_function(); PROTOBUF_NODISCARD std::string* release_function(); - void set_allocated_function(std::string* value); - + void set_allocated_function(std::string* function); private: const std::string& _internal_function() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_function( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_function(const std::string& value); std::string* _internal_mutable_function(); - public: + // .google.api.expr.v1beta1.Expr target = 1 [json_name = "target"]; bool has_target() const; - void clear_target() ; + private: + bool _internal_has_target() const; + public: + void clear_target(); const ::google::api::expr::v1beta1::Expr& target() const; PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Expr* release_target(); ::google::api::expr::v1beta1::Expr* mutable_target(); - void set_allocated_target(::google::api::expr::v1beta1::Expr* value); - void unsafe_arena_set_allocated_target(::google::api::expr::v1beta1::Expr* value); - ::google::api::expr::v1beta1::Expr* unsafe_arena_release_target(); - + void set_allocated_target(::google::api::expr::v1beta1::Expr* target); private: const ::google::api::expr::v1beta1::Expr& _internal_target() const; ::google::api::expr::v1beta1::Expr* _internal_mutable_target(); - public: + void unsafe_arena_set_allocated_target( + ::google::api::expr::v1beta1::Expr* target); + ::google::api::expr::v1beta1::Expr* unsafe_arena_release_target(); + // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.Expr.Call) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 2, - 50, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1beta1::Expr > args_; - ::google::protobuf::internal::ArenaStringPtr function_; - ::google::api::expr::v1beta1::Expr* target_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::Expr > args_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr function_; + ::google::api::expr::v1beta1::Expr* target_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Expr_Comprehension final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.Expr.Comprehension) */ { +class Expr_CreateList final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.Expr.CreateList) */ { public: - inline Expr_Comprehension() : Expr_Comprehension(nullptr) {} - ~Expr_Comprehension() override; - template - explicit PROTOBUF_CONSTEXPR Expr_Comprehension(::google::protobuf::internal::ConstantInitialized); + inline Expr_CreateList() : Expr_CreateList(nullptr) {} + ~Expr_CreateList() override; + explicit PROTOBUF_CONSTEXPR Expr_CreateList(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Expr_Comprehension(const Expr_Comprehension& from) - : Expr_Comprehension(nullptr, from) {} - Expr_Comprehension(Expr_Comprehension&& from) noexcept - : Expr_Comprehension() { + Expr_CreateList(const Expr_CreateList& from); + Expr_CreateList(Expr_CreateList&& from) noexcept + : Expr_CreateList() { *this = ::std::move(from); } - inline Expr_Comprehension& operator=(const Expr_Comprehension& from) { + inline Expr_CreateList& operator=(const Expr_CreateList& from) { CopyFrom(from); return *this; } - inline Expr_Comprehension& operator=(Expr_Comprehension&& from) noexcept { + inline Expr_CreateList& operator=(Expr_CreateList&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1194,282 +837,149 @@ class Expr_Comprehension final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Expr_Comprehension& default_instance() { + static const Expr_CreateList& default_instance() { return *internal_default_instance(); } - static inline const Expr_Comprehension* internal_default_instance() { - return reinterpret_cast( - &_Expr_Comprehension_default_instance_); + static inline const Expr_CreateList* internal_default_instance() { + return reinterpret_cast( + &_Expr_CreateList_default_instance_); } static constexpr int kIndexInFileMessages = - 7; + 4; - friend void swap(Expr_Comprehension& a, Expr_Comprehension& b) { + friend void swap(Expr_CreateList& a, Expr_CreateList& b) { a.Swap(&b); } - inline void Swap(Expr_Comprehension* other) { + inline void Swap(Expr_CreateList* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Expr_Comprehension* other) { + void UnsafeArenaSwap(Expr_CreateList* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Expr_Comprehension* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Expr_Comprehension& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Expr_Comprehension& from) { - Expr_Comprehension::MergeImpl(*this, from); + Expr_CreateList* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Expr_CreateList& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Expr_CreateList& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Expr_Comprehension* other); + void SetCachedSize(int size) const final; + void InternalSwap(Expr_CreateList* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.expr.v1beta1.Expr.Comprehension"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1beta1.Expr.CreateList"; } protected: - explicit Expr_Comprehension(::google::protobuf::Arena* arena); - Expr_Comprehension(::google::protobuf::Arena* arena, const Expr_Comprehension& from); + explicit Expr_CreateList(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kIterVarFieldNumber = 1, - kAccuVarFieldNumber = 3, - kIterRangeFieldNumber = 2, - kAccuInitFieldNumber = 4, - kLoopConditionFieldNumber = 5, - kLoopStepFieldNumber = 6, - kResultFieldNumber = 7, + kElementsFieldNumber = 1, }; - // string iter_var = 1 [json_name = "iterVar"]; - void clear_iter_var() ; - const std::string& iter_var() const; - template - void set_iter_var(Arg_&& arg, Args_... args); - std::string* mutable_iter_var(); - PROTOBUF_NODISCARD std::string* release_iter_var(); - void set_allocated_iter_var(std::string* value); - + // repeated .google.api.expr.v1beta1.Expr elements = 1 [json_name = "elements"]; + int elements_size() const; private: - const std::string& _internal_iter_var() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_iter_var( - const std::string& value); - std::string* _internal_mutable_iter_var(); - + int _internal_elements_size() const; public: - // string accu_var = 3 [json_name = "accuVar"]; - void clear_accu_var() ; - const std::string& accu_var() const; - template - void set_accu_var(Arg_&& arg, Args_... args); - std::string* mutable_accu_var(); - PROTOBUF_NODISCARD std::string* release_accu_var(); - void set_allocated_accu_var(std::string* value); - + void clear_elements(); + ::google::api::expr::v1beta1::Expr* mutable_elements(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::Expr >* + mutable_elements(); private: - const std::string& _internal_accu_var() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_accu_var( - const std::string& value); - std::string* _internal_mutable_accu_var(); - + const ::google::api::expr::v1beta1::Expr& _internal_elements(int index) const; + ::google::api::expr::v1beta1::Expr* _internal_add_elements(); public: - // .google.api.expr.v1beta1.Expr iter_range = 2 [json_name = "iterRange"]; - bool has_iter_range() const; - void clear_iter_range() ; - const ::google::api::expr::v1beta1::Expr& iter_range() const; - PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Expr* release_iter_range(); - ::google::api::expr::v1beta1::Expr* mutable_iter_range(); - void set_allocated_iter_range(::google::api::expr::v1beta1::Expr* value); - void unsafe_arena_set_allocated_iter_range(::google::api::expr::v1beta1::Expr* value); - ::google::api::expr::v1beta1::Expr* unsafe_arena_release_iter_range(); - - private: - const ::google::api::expr::v1beta1::Expr& _internal_iter_range() const; - ::google::api::expr::v1beta1::Expr* _internal_mutable_iter_range(); + const ::google::api::expr::v1beta1::Expr& elements(int index) const; + ::google::api::expr::v1beta1::Expr* add_elements(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::Expr >& + elements() const; - public: - // .google.api.expr.v1beta1.Expr accu_init = 4 [json_name = "accuInit"]; - bool has_accu_init() const; - void clear_accu_init() ; - const ::google::api::expr::v1beta1::Expr& accu_init() const; - PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Expr* release_accu_init(); - ::google::api::expr::v1beta1::Expr* mutable_accu_init(); - void set_allocated_accu_init(::google::api::expr::v1beta1::Expr* value); - void unsafe_arena_set_allocated_accu_init(::google::api::expr::v1beta1::Expr* value); - ::google::api::expr::v1beta1::Expr* unsafe_arena_release_accu_init(); + // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.Expr.CreateList) + private: + class _Internal; - private: - const ::google::api::expr::v1beta1::Expr& _internal_accu_init() const; - ::google::api::expr::v1beta1::Expr* _internal_mutable_accu_init(); + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::Expr > elements_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto; +}; +// ------------------------------------------------------------------- - public: - // .google.api.expr.v1beta1.Expr loop_condition = 5 [json_name = "loopCondition"]; - bool has_loop_condition() const; - void clear_loop_condition() ; - const ::google::api::expr::v1beta1::Expr& loop_condition() const; - PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Expr* release_loop_condition(); - ::google::api::expr::v1beta1::Expr* mutable_loop_condition(); - void set_allocated_loop_condition(::google::api::expr::v1beta1::Expr* value); - void unsafe_arena_set_allocated_loop_condition(::google::api::expr::v1beta1::Expr* value); - ::google::api::expr::v1beta1::Expr* unsafe_arena_release_loop_condition(); +class Expr_CreateStruct_Entry final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.Expr.CreateStruct.Entry) */ { + public: + inline Expr_CreateStruct_Entry() : Expr_CreateStruct_Entry(nullptr) {} + ~Expr_CreateStruct_Entry() override; + explicit PROTOBUF_CONSTEXPR Expr_CreateStruct_Entry(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - private: - const ::google::api::expr::v1beta1::Expr& _internal_loop_condition() const; - ::google::api::expr::v1beta1::Expr* _internal_mutable_loop_condition(); - - public: - // .google.api.expr.v1beta1.Expr loop_step = 6 [json_name = "loopStep"]; - bool has_loop_step() const; - void clear_loop_step() ; - const ::google::api::expr::v1beta1::Expr& loop_step() const; - PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Expr* release_loop_step(); - ::google::api::expr::v1beta1::Expr* mutable_loop_step(); - void set_allocated_loop_step(::google::api::expr::v1beta1::Expr* value); - void unsafe_arena_set_allocated_loop_step(::google::api::expr::v1beta1::Expr* value); - ::google::api::expr::v1beta1::Expr* unsafe_arena_release_loop_step(); - - private: - const ::google::api::expr::v1beta1::Expr& _internal_loop_step() const; - ::google::api::expr::v1beta1::Expr* _internal_mutable_loop_step(); - - public: - // .google.api.expr.v1beta1.Expr result = 7 [json_name = "result"]; - bool has_result() const; - void clear_result() ; - const ::google::api::expr::v1beta1::Expr& result() const; - PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Expr* release_result(); - ::google::api::expr::v1beta1::Expr* mutable_result(); - void set_allocated_result(::google::api::expr::v1beta1::Expr* value); - void unsafe_arena_set_allocated_result(::google::api::expr::v1beta1::Expr* value); - ::google::api::expr::v1beta1::Expr* unsafe_arena_release_result(); - - private: - const ::google::api::expr::v1beta1::Expr& _internal_result() const; - ::google::api::expr::v1beta1::Expr* _internal_mutable_result(); - - public: - // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.Expr.Comprehension) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 7, 5, - 67, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr iter_var_; - ::google::protobuf::internal::ArenaStringPtr accu_var_; - ::google::api::expr::v1beta1::Expr* iter_range_; - ::google::api::expr::v1beta1::Expr* accu_init_; - ::google::api::expr::v1beta1::Expr* loop_condition_; - ::google::api::expr::v1beta1::Expr* loop_step_; - ::google::api::expr::v1beta1::Expr* result_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto; -};// ------------------------------------------------------------------- - -class Expr_CreateList final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.Expr.CreateList) */ { - public: - inline Expr_CreateList() : Expr_CreateList(nullptr) {} - ~Expr_CreateList() override; - template - explicit PROTOBUF_CONSTEXPR Expr_CreateList(::google::protobuf::internal::ConstantInitialized); - - inline Expr_CreateList(const Expr_CreateList& from) - : Expr_CreateList(nullptr, from) {} - Expr_CreateList(Expr_CreateList&& from) noexcept - : Expr_CreateList() { + Expr_CreateStruct_Entry(const Expr_CreateStruct_Entry& from); + Expr_CreateStruct_Entry(Expr_CreateStruct_Entry&& from) noexcept + : Expr_CreateStruct_Entry() { *this = ::std::move(from); } - inline Expr_CreateList& operator=(const Expr_CreateList& from) { + inline Expr_CreateStruct_Entry& operator=(const Expr_CreateStruct_Entry& from) { CopyFrom(from); return *this; } - inline Expr_CreateList& operator=(Expr_CreateList&& from) noexcept { + inline Expr_CreateStruct_Entry& operator=(Expr_CreateStruct_Entry&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1479,166 +989,205 @@ class Expr_CreateList final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Expr_CreateList& default_instance() { + static const Expr_CreateStruct_Entry& default_instance() { return *internal_default_instance(); } - static inline const Expr_CreateList* internal_default_instance() { - return reinterpret_cast( - &_Expr_CreateList_default_instance_); + enum KeyKindCase { + kFieldKey = 2, + kMapKey = 3, + KEY_KIND_NOT_SET = 0, + }; + + static inline const Expr_CreateStruct_Entry* internal_default_instance() { + return reinterpret_cast( + &_Expr_CreateStruct_Entry_default_instance_); } static constexpr int kIndexInFileMessages = - 4; + 5; - friend void swap(Expr_CreateList& a, Expr_CreateList& b) { + friend void swap(Expr_CreateStruct_Entry& a, Expr_CreateStruct_Entry& b) { a.Swap(&b); } - inline void Swap(Expr_CreateList* other) { + inline void Swap(Expr_CreateStruct_Entry* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Expr_CreateList* other) { + void UnsafeArenaSwap(Expr_CreateStruct_Entry* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Expr_CreateList* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Expr_CreateList& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Expr_CreateList& from) { - Expr_CreateList::MergeImpl(*this, from); + Expr_CreateStruct_Entry* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Expr_CreateStruct_Entry& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Expr_CreateStruct_Entry& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Expr_CreateList* other); + void SetCachedSize(int size) const final; + void InternalSwap(Expr_CreateStruct_Entry* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.expr.v1beta1.Expr.CreateList"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1beta1.Expr.CreateStruct.Entry"; } protected: - explicit Expr_CreateList(::google::protobuf::Arena* arena); - Expr_CreateList(::google::protobuf::Arena* arena, const Expr_CreateList& from); + explicit Expr_CreateStruct_Entry(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kElementsFieldNumber = 1, + kValueFieldNumber = 4, + kIdFieldNumber = 1, + kFieldKeyFieldNumber = 2, + kMapKeyFieldNumber = 3, }; - // repeated .google.api.expr.v1beta1.Expr elements = 1 [json_name = "elements"]; - int elements_size() const; + // .google.api.expr.v1beta1.Expr value = 4 [json_name = "value"]; + bool has_value() const; private: - int _internal_elements_size() const; + bool _internal_has_value() const; + public: + void clear_value(); + const ::google::api::expr::v1beta1::Expr& value() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Expr* release_value(); + ::google::api::expr::v1beta1::Expr* mutable_value(); + void set_allocated_value(::google::api::expr::v1beta1::Expr* value); + private: + const ::google::api::expr::v1beta1::Expr& _internal_value() const; + ::google::api::expr::v1beta1::Expr* _internal_mutable_value(); + public: + void unsafe_arena_set_allocated_value( + ::google::api::expr::v1beta1::Expr* value); + ::google::api::expr::v1beta1::Expr* unsafe_arena_release_value(); + // int32 id = 1 [json_name = "id"]; + void clear_id(); + int32_t id() const; + void set_id(int32_t value); + private: + int32_t _internal_id() const; + void _internal_set_id(int32_t value); public: - void clear_elements() ; - ::google::api::expr::v1beta1::Expr* mutable_elements(int index); - ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1beta1::Expr >* - mutable_elements(); + + // string field_key = 2 [json_name = "fieldKey"]; + bool has_field_key() const; private: - const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::Expr>& _internal_elements() const; - ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::Expr>* _internal_mutable_elements(); + bool _internal_has_field_key() const; public: - const ::google::api::expr::v1beta1::Expr& elements(int index) const; - ::google::api::expr::v1beta1::Expr* add_elements(); - const ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1beta1::Expr >& - elements() const; - // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.Expr.CreateList) + void clear_field_key(); + const std::string& field_key() const; + template + void set_field_key(ArgT0&& arg0, ArgT... args); + std::string* mutable_field_key(); + PROTOBUF_NODISCARD std::string* release_field_key(); + void set_allocated_field_key(std::string* field_key); + private: + const std::string& _internal_field_key() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_field_key(const std::string& value); + std::string* _internal_mutable_field_key(); + public: + + // .google.api.expr.v1beta1.Expr map_key = 3 [json_name = "mapKey"]; + bool has_map_key() const; + private: + bool _internal_has_map_key() const; + public: + void clear_map_key(); + const ::google::api::expr::v1beta1::Expr& map_key() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Expr* release_map_key(); + ::google::api::expr::v1beta1::Expr* mutable_map_key(); + void set_allocated_map_key(::google::api::expr::v1beta1::Expr* map_key); + private: + const ::google::api::expr::v1beta1::Expr& _internal_map_key() const; + ::google::api::expr::v1beta1::Expr* _internal_mutable_map_key(); + public: + void unsafe_arena_set_allocated_map_key( + ::google::api::expr::v1beta1::Expr* map_key); + ::google::api::expr::v1beta1::Expr* unsafe_arena_release_map_key(); + + void clear_key_kind(); + KeyKindCase key_kind_case() const; + // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.Expr.CreateStruct.Entry) private: class _Internal; + void set_has_field_key(); + void set_has_map_key(); + + inline bool has_key_kind() const; + inline void clear_has_key_kind(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::google::api::expr::v1beta1::Expr* value_; + int32_t id_; + union KeyKindUnion { + constexpr KeyKindUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr field_key_; + ::google::api::expr::v1beta1::Expr* map_key_; + } key_kind_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1beta1::Expr > elements_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class Expr_CreateStruct final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.Expr.CreateStruct) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.Expr.CreateStruct) */ { public: inline Expr_CreateStruct() : Expr_CreateStruct(nullptr) {} ~Expr_CreateStruct() override; - template - explicit PROTOBUF_CONSTEXPR Expr_CreateStruct(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR Expr_CreateStruct(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Expr_CreateStruct(const Expr_CreateStruct& from) - : Expr_CreateStruct(nullptr, from) {} + Expr_CreateStruct(const Expr_CreateStruct& from); Expr_CreateStruct(Expr_CreateStruct&& from) noexcept : Expr_CreateStruct() { *this = ::std::move(from); @@ -1650,9 +1199,9 @@ class Expr_CreateStruct final : } inline Expr_CreateStruct& operator=(Expr_CreateStruct&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1662,22 +1211,13 @@ class Expr_CreateStruct final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const Expr_CreateStruct& default_instance() { @@ -1696,69 +1236,67 @@ class Expr_CreateStruct final : inline void Swap(Expr_CreateStruct* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(Expr_CreateStruct* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Expr_CreateStruct* New(::google::protobuf::Arena* arena = nullptr) const final { + Expr_CreateStruct* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const Expr_CreateStruct& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Expr_CreateStruct& from) { - Expr_CreateStruct::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Expr_CreateStruct& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(Expr_CreateStruct* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "google.api.expr.v1beta1.Expr.CreateStruct"; } protected: - explicit Expr_CreateStruct(::google::protobuf::Arena* arena); - Expr_CreateStruct(::google::protobuf::Arena* arena, const Expr_CreateStruct& from); + explicit Expr_CreateStruct(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- - using Entry = Expr_CreateStruct_Entry; + typedef Expr_CreateStruct_Entry Entry; // accessors ------------------------------------------------------- @@ -1770,92 +1308,70 @@ class Expr_CreateStruct final : int entries_size() const; private: int _internal_entries_size() const; - public: - void clear_entries() ; + void clear_entries(); ::google::api::expr::v1beta1::Expr_CreateStruct_Entry* mutable_entries(int index); - ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1beta1::Expr_CreateStruct_Entry >* + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::Expr_CreateStruct_Entry >* mutable_entries(); private: - const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::Expr_CreateStruct_Entry>& _internal_entries() const; - ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::Expr_CreateStruct_Entry>* _internal_mutable_entries(); + const ::google::api::expr::v1beta1::Expr_CreateStruct_Entry& _internal_entries(int index) const; + ::google::api::expr::v1beta1::Expr_CreateStruct_Entry* _internal_add_entries(); public: const ::google::api::expr::v1beta1::Expr_CreateStruct_Entry& entries(int index) const; ::google::api::expr::v1beta1::Expr_CreateStruct_Entry* add_entries(); - const ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1beta1::Expr_CreateStruct_Entry >& + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::Expr_CreateStruct_Entry >& entries() const; + // string type = 1 [json_name = "type"]; - void clear_type() ; + void clear_type(); const std::string& type() const; - template - void set_type(Arg_&& arg, Args_... args); + template + void set_type(ArgT0&& arg0, ArgT... args); std::string* mutable_type(); PROTOBUF_NODISCARD std::string* release_type(); - void set_allocated_type(std::string* value); - + 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_type(const std::string& value); std::string* _internal_mutable_type(); - public: + // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.Expr.CreateStruct) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 54, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1beta1::Expr_CreateStruct_Entry > entries_; - ::google::protobuf::internal::ArenaStringPtr type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::Expr_CreateStruct_Entry > entries_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Expr_CreateStruct_Entry final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.Expr.CreateStruct.Entry) */ { +class Expr_Comprehension final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.Expr.Comprehension) */ { public: - inline Expr_CreateStruct_Entry() : Expr_CreateStruct_Entry(nullptr) {} - ~Expr_CreateStruct_Entry() override; - template - explicit PROTOBUF_CONSTEXPR Expr_CreateStruct_Entry(::google::protobuf::internal::ConstantInitialized); + inline Expr_Comprehension() : Expr_Comprehension(nullptr) {} + ~Expr_Comprehension() override; + explicit PROTOBUF_CONSTEXPR Expr_Comprehension(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Expr_CreateStruct_Entry(const Expr_CreateStruct_Entry& from) - : Expr_CreateStruct_Entry(nullptr, from) {} - Expr_CreateStruct_Entry(Expr_CreateStruct_Entry&& from) noexcept - : Expr_CreateStruct_Entry() { + Expr_Comprehension(const Expr_Comprehension& from); + Expr_Comprehension(Expr_Comprehension&& from) noexcept + : Expr_Comprehension() { *this = ::std::move(from); } - inline Expr_CreateStruct_Entry& operator=(const Expr_CreateStruct_Entry& from) { + inline Expr_Comprehension& operator=(const Expr_Comprehension& from) { CopyFrom(from); return *this; } - inline Expr_CreateStruct_Entry& operator=(Expr_CreateStruct_Entry&& from) noexcept { + inline Expr_Comprehension& operator=(Expr_Comprehension&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1865,249 +1381,261 @@ class Expr_CreateStruct_Entry final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Expr_CreateStruct_Entry& default_instance() { + static const Expr_Comprehension& default_instance() { return *internal_default_instance(); } - enum KeyKindCase { - kFieldKey = 2, - kMapKey = 3, - KEY_KIND_NOT_SET = 0, - }; - - static inline const Expr_CreateStruct_Entry* internal_default_instance() { - return reinterpret_cast( - &_Expr_CreateStruct_Entry_default_instance_); + static inline const Expr_Comprehension* internal_default_instance() { + return reinterpret_cast( + &_Expr_Comprehension_default_instance_); } static constexpr int kIndexInFileMessages = - 5; + 7; - friend void swap(Expr_CreateStruct_Entry& a, Expr_CreateStruct_Entry& b) { + friend void swap(Expr_Comprehension& a, Expr_Comprehension& b) { a.Swap(&b); } - inline void Swap(Expr_CreateStruct_Entry* other) { + inline void Swap(Expr_Comprehension* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Expr_CreateStruct_Entry* other) { + void UnsafeArenaSwap(Expr_Comprehension* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Expr_CreateStruct_Entry* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Expr_CreateStruct_Entry& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Expr_CreateStruct_Entry& from) { - Expr_CreateStruct_Entry::MergeImpl(*this, from); + Expr_Comprehension* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Expr_Comprehension& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Expr_Comprehension& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Expr_CreateStruct_Entry* other); + void SetCachedSize(int size) const final; + void InternalSwap(Expr_Comprehension* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.expr.v1beta1.Expr.CreateStruct.Entry"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1beta1.Expr.Comprehension"; } protected: - explicit Expr_CreateStruct_Entry(::google::protobuf::Arena* arena); - Expr_CreateStruct_Entry(::google::protobuf::Arena* arena, const Expr_CreateStruct_Entry& from); + explicit Expr_Comprehension(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kValueFieldNumber = 4, - kIdFieldNumber = 1, - kFieldKeyFieldNumber = 2, - kMapKeyFieldNumber = 3, + kIterVarFieldNumber = 1, + kAccuVarFieldNumber = 3, + kIterRangeFieldNumber = 2, + kAccuInitFieldNumber = 4, + kLoopConditionFieldNumber = 5, + kLoopStepFieldNumber = 6, + kResultFieldNumber = 7, }; - // .google.api.expr.v1beta1.Expr value = 4 [json_name = "value"]; - bool has_value() const; - void clear_value() ; - const ::google::api::expr::v1beta1::Expr& value() const; - PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Expr* release_value(); - ::google::api::expr::v1beta1::Expr* mutable_value(); - void set_allocated_value(::google::api::expr::v1beta1::Expr* value); - void unsafe_arena_set_allocated_value(::google::api::expr::v1beta1::Expr* value); - ::google::api::expr::v1beta1::Expr* unsafe_arena_release_value(); - + // string iter_var = 1 [json_name = "iterVar"]; + void clear_iter_var(); + const std::string& iter_var() const; + template + void set_iter_var(ArgT0&& arg0, ArgT... args); + std::string* mutable_iter_var(); + PROTOBUF_NODISCARD std::string* release_iter_var(); + void set_allocated_iter_var(std::string* iter_var); private: - const ::google::api::expr::v1beta1::Expr& _internal_value() const; - ::google::api::expr::v1beta1::Expr* _internal_mutable_value(); - + const std::string& _internal_iter_var() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_iter_var(const std::string& value); + std::string* _internal_mutable_iter_var(); public: - // int32 id = 1 [json_name = "id"]; - void clear_id() ; - ::int32_t id() const; - void set_id(::int32_t value); + // string accu_var = 3 [json_name = "accuVar"]; + void clear_accu_var(); + const std::string& accu_var() const; + template + void set_accu_var(ArgT0&& arg0, ArgT... args); + std::string* mutable_accu_var(); + PROTOBUF_NODISCARD std::string* release_accu_var(); + void set_allocated_accu_var(std::string* accu_var); private: - ::int32_t _internal_id() const; - void _internal_set_id(::int32_t value); - + const std::string& _internal_accu_var() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_accu_var(const std::string& value); + std::string* _internal_mutable_accu_var(); public: - // string field_key = 2 [json_name = "fieldKey"]; - bool has_field_key() const; - void clear_field_key() ; - const std::string& field_key() const; - template - void set_field_key(Arg_&& arg, Args_... args); - std::string* mutable_field_key(); - PROTOBUF_NODISCARD std::string* release_field_key(); - void set_allocated_field_key(std::string* value); + // .google.api.expr.v1beta1.Expr iter_range = 2 [json_name = "iterRange"]; + bool has_iter_range() const; private: - const std::string& _internal_field_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_field_key( - const std::string& value); - std::string* _internal_mutable_field_key(); + bool _internal_has_iter_range() const; + public: + void clear_iter_range(); + const ::google::api::expr::v1beta1::Expr& iter_range() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Expr* release_iter_range(); + ::google::api::expr::v1beta1::Expr* mutable_iter_range(); + void set_allocated_iter_range(::google::api::expr::v1beta1::Expr* iter_range); + private: + const ::google::api::expr::v1beta1::Expr& _internal_iter_range() const; + ::google::api::expr::v1beta1::Expr* _internal_mutable_iter_range(); + public: + void unsafe_arena_set_allocated_iter_range( + ::google::api::expr::v1beta1::Expr* iter_range); + ::google::api::expr::v1beta1::Expr* unsafe_arena_release_iter_range(); + // .google.api.expr.v1beta1.Expr accu_init = 4 [json_name = "accuInit"]; + bool has_accu_init() const; + private: + bool _internal_has_accu_init() const; public: - // .google.api.expr.v1beta1.Expr map_key = 3 [json_name = "mapKey"]; - bool has_map_key() const; + void clear_accu_init(); + const ::google::api::expr::v1beta1::Expr& accu_init() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Expr* release_accu_init(); + ::google::api::expr::v1beta1::Expr* mutable_accu_init(); + void set_allocated_accu_init(::google::api::expr::v1beta1::Expr* accu_init); private: - bool _internal_has_map_key() const; + const ::google::api::expr::v1beta1::Expr& _internal_accu_init() const; + ::google::api::expr::v1beta1::Expr* _internal_mutable_accu_init(); + public: + void unsafe_arena_set_allocated_accu_init( + ::google::api::expr::v1beta1::Expr* accu_init); + ::google::api::expr::v1beta1::Expr* unsafe_arena_release_accu_init(); + // .google.api.expr.v1beta1.Expr loop_condition = 5 [json_name = "loopCondition"]; + bool has_loop_condition() const; + private: + bool _internal_has_loop_condition() const; public: - void clear_map_key() ; - const ::google::api::expr::v1beta1::Expr& map_key() const; - PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Expr* release_map_key(); - ::google::api::expr::v1beta1::Expr* mutable_map_key(); - void set_allocated_map_key(::google::api::expr::v1beta1::Expr* value); - void unsafe_arena_set_allocated_map_key(::google::api::expr::v1beta1::Expr* value); - ::google::api::expr::v1beta1::Expr* unsafe_arena_release_map_key(); + void clear_loop_condition(); + const ::google::api::expr::v1beta1::Expr& loop_condition() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Expr* release_loop_condition(); + ::google::api::expr::v1beta1::Expr* mutable_loop_condition(); + void set_allocated_loop_condition(::google::api::expr::v1beta1::Expr* loop_condition); + private: + const ::google::api::expr::v1beta1::Expr& _internal_loop_condition() const; + ::google::api::expr::v1beta1::Expr* _internal_mutable_loop_condition(); + public: + void unsafe_arena_set_allocated_loop_condition( + ::google::api::expr::v1beta1::Expr* loop_condition); + ::google::api::expr::v1beta1::Expr* unsafe_arena_release_loop_condition(); + // .google.api.expr.v1beta1.Expr loop_step = 6 [json_name = "loopStep"]; + bool has_loop_step() const; private: - const ::google::api::expr::v1beta1::Expr& _internal_map_key() const; - ::google::api::expr::v1beta1::Expr* _internal_mutable_map_key(); + bool _internal_has_loop_step() const; + public: + void clear_loop_step(); + const ::google::api::expr::v1beta1::Expr& loop_step() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Expr* release_loop_step(); + ::google::api::expr::v1beta1::Expr* mutable_loop_step(); + void set_allocated_loop_step(::google::api::expr::v1beta1::Expr* loop_step); + private: + const ::google::api::expr::v1beta1::Expr& _internal_loop_step() const; + ::google::api::expr::v1beta1::Expr* _internal_mutable_loop_step(); + public: + void unsafe_arena_set_allocated_loop_step( + ::google::api::expr::v1beta1::Expr* loop_step); + ::google::api::expr::v1beta1::Expr* unsafe_arena_release_loop_step(); + // .google.api.expr.v1beta1.Expr result = 7 [json_name = "result"]; + bool has_result() const; + private: + bool _internal_has_result() const; public: - void clear_key_kind(); - KeyKindCase key_kind_case() const; - // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.Expr.CreateStruct.Entry) + void clear_result(); + const ::google::api::expr::v1beta1::Expr& result() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Expr* release_result(); + ::google::api::expr::v1beta1::Expr* mutable_result(); + void set_allocated_result(::google::api::expr::v1beta1::Expr* result); + private: + const ::google::api::expr::v1beta1::Expr& _internal_result() const; + ::google::api::expr::v1beta1::Expr* _internal_mutable_result(); + public: + void unsafe_arena_set_allocated_result( + ::google::api::expr::v1beta1::Expr* result); + ::google::api::expr::v1beta1::Expr* unsafe_arena_release_result(); + + // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.Expr.Comprehension) private: class _Internal; - void set_has_field_key(); - void set_has_map_key(); - - inline bool has_key_kind() const; - inline void clear_has_key_kind(); - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 4, 2, - 65, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::api::expr::v1beta1::Expr* value_; - ::int32_t id_; - union KeyKindUnion { - constexpr KeyKindUnion() : _constinit_{} {} - ::google::protobuf::internal::ConstantInitialized _constinit_; - ::google::protobuf::internal::ArenaStringPtr field_key_; - ::google::api::expr::v1beta1::Expr* map_key_; - } key_kind_; - ::uint32_t _oneof_case_[1]; - - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr iter_var_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr accu_var_; + ::google::api::expr::v1beta1::Expr* iter_range_; + ::google::api::expr::v1beta1::Expr* accu_init_; + ::google::api::expr::v1beta1::Expr* loop_condition_; + ::google::api::expr::v1beta1::Expr* loop_step_; + ::google::api::expr::v1beta1::Expr* result_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Expr_Select final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.Expr.Select) */ { +class Expr final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.Expr) */ { public: - inline Expr_Select() : Expr_Select(nullptr) {} - ~Expr_Select() override; - template - explicit PROTOBUF_CONSTEXPR Expr_Select(::google::protobuf::internal::ConstantInitialized); + inline Expr() : Expr(nullptr) {} + ~Expr() override; + explicit PROTOBUF_CONSTEXPR Expr(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Expr_Select(const Expr_Select& from) - : Expr_Select(nullptr, from) {} - Expr_Select(Expr_Select&& from) noexcept - : Expr_Select() { + Expr(const Expr& from); + Expr(Expr&& from) noexcept + : Expr() { *this = ::std::move(from); } - inline Expr_Select& operator=(const Expr_Select& from) { + inline Expr& operator=(const Expr& from) { CopyFrom(from); return *this; } - inline Expr_Select& operator=(Expr_Select&& from) noexcept { + inline Expr& operator=(Expr&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2117,208 +1645,316 @@ class Expr_Select final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Expr_Select& default_instance() { + static const Expr& default_instance() { return *internal_default_instance(); } - static inline const Expr_Select* internal_default_instance() { - return reinterpret_cast( - &_Expr_Select_default_instance_); + enum ExprKindCase { + kLiteralExpr = 3, + kIdentExpr = 4, + kSelectExpr = 5, + kCallExpr = 6, + kListExpr = 7, + kStructExpr = 8, + kComprehensionExpr = 9, + EXPR_KIND_NOT_SET = 0, + }; + + static inline const Expr* internal_default_instance() { + return reinterpret_cast( + &_Expr_default_instance_); } static constexpr int kIndexInFileMessages = - 2; + 8; - friend void swap(Expr_Select& a, Expr_Select& b) { + friend void swap(Expr& a, Expr& b) { a.Swap(&b); } - inline void Swap(Expr_Select* other) { + inline void Swap(Expr* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Expr_Select* other) { + void UnsafeArenaSwap(Expr* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Expr_Select* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Expr_Select& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Expr_Select& from) { - Expr_Select::MergeImpl(*this, from); + Expr* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Expr& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Expr& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Expr_Select* other); + void SetCachedSize(int size) const final; + void InternalSwap(Expr* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.expr.v1beta1.Expr.Select"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1beta1.Expr"; } protected: - explicit Expr_Select(::google::protobuf::Arena* arena); - Expr_Select(::google::protobuf::Arena* arena, const Expr_Select& from); + explicit Expr(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- + typedef Expr_Ident Ident; + typedef Expr_Select Select; + typedef Expr_Call Call; + typedef Expr_CreateList CreateList; + typedef Expr_CreateStruct CreateStruct; + typedef Expr_Comprehension Comprehension; + // accessors ------------------------------------------------------- enum : int { - kFieldFieldNumber = 2, - kOperandFieldNumber = 1, - kTestOnlyFieldNumber = 3, + kIdFieldNumber = 2, + kLiteralExprFieldNumber = 3, + kIdentExprFieldNumber = 4, + kSelectExprFieldNumber = 5, + kCallExprFieldNumber = 6, + kListExprFieldNumber = 7, + kStructExprFieldNumber = 8, + kComprehensionExprFieldNumber = 9, }; - // string field = 2 [json_name = "field"]; - void clear_field() ; - const std::string& field() const; - template - void set_field(Arg_&& arg, Args_... args); - std::string* mutable_field(); - PROTOBUF_NODISCARD std::string* release_field(); - void set_allocated_field(std::string* value); + // int32 id = 2 [json_name = "id"]; + void clear_id(); + int32_t id() const; + void set_id(int32_t value); + private: + int32_t _internal_id() const; + void _internal_set_id(int32_t value); + public: + // .google.api.expr.v1beta1.Literal literal_expr = 3 [json_name = "literalExpr"]; + bool has_literal_expr() const; private: - const std::string& _internal_field() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_field( - const std::string& value); - std::string* _internal_mutable_field(); + bool _internal_has_literal_expr() const; + public: + void clear_literal_expr(); + const ::google::api::expr::v1beta1::Literal& literal_expr() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Literal* release_literal_expr(); + ::google::api::expr::v1beta1::Literal* mutable_literal_expr(); + void set_allocated_literal_expr(::google::api::expr::v1beta1::Literal* literal_expr); + private: + const ::google::api::expr::v1beta1::Literal& _internal_literal_expr() const; + ::google::api::expr::v1beta1::Literal* _internal_mutable_literal_expr(); + public: + void unsafe_arena_set_allocated_literal_expr( + ::google::api::expr::v1beta1::Literal* literal_expr); + ::google::api::expr::v1beta1::Literal* unsafe_arena_release_literal_expr(); + // .google.api.expr.v1beta1.Expr.Ident ident_expr = 4 [json_name = "identExpr"]; + bool has_ident_expr() const; + private: + bool _internal_has_ident_expr() const; public: - // .google.api.expr.v1beta1.Expr operand = 1 [json_name = "operand"]; - bool has_operand() const; - void clear_operand() ; - const ::google::api::expr::v1beta1::Expr& operand() const; - PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Expr* release_operand(); - ::google::api::expr::v1beta1::Expr* mutable_operand(); - void set_allocated_operand(::google::api::expr::v1beta1::Expr* value); - void unsafe_arena_set_allocated_operand(::google::api::expr::v1beta1::Expr* value); - ::google::api::expr::v1beta1::Expr* unsafe_arena_release_operand(); + void clear_ident_expr(); + const ::google::api::expr::v1beta1::Expr_Ident& ident_expr() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Expr_Ident* release_ident_expr(); + ::google::api::expr::v1beta1::Expr_Ident* mutable_ident_expr(); + void set_allocated_ident_expr(::google::api::expr::v1beta1::Expr_Ident* ident_expr); + private: + const ::google::api::expr::v1beta1::Expr_Ident& _internal_ident_expr() const; + ::google::api::expr::v1beta1::Expr_Ident* _internal_mutable_ident_expr(); + public: + void unsafe_arena_set_allocated_ident_expr( + ::google::api::expr::v1beta1::Expr_Ident* ident_expr); + ::google::api::expr::v1beta1::Expr_Ident* unsafe_arena_release_ident_expr(); + + // .google.api.expr.v1beta1.Expr.Select select_expr = 5 [json_name = "selectExpr"]; + bool has_select_expr() const; + private: + bool _internal_has_select_expr() const; + public: + void clear_select_expr(); + const ::google::api::expr::v1beta1::Expr_Select& select_expr() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Expr_Select* release_select_expr(); + ::google::api::expr::v1beta1::Expr_Select* mutable_select_expr(); + void set_allocated_select_expr(::google::api::expr::v1beta1::Expr_Select* select_expr); + private: + const ::google::api::expr::v1beta1::Expr_Select& _internal_select_expr() const; + ::google::api::expr::v1beta1::Expr_Select* _internal_mutable_select_expr(); + public: + void unsafe_arena_set_allocated_select_expr( + ::google::api::expr::v1beta1::Expr_Select* select_expr); + ::google::api::expr::v1beta1::Expr_Select* unsafe_arena_release_select_expr(); + + // .google.api.expr.v1beta1.Expr.Call call_expr = 6 [json_name = "callExpr"]; + bool has_call_expr() const; + private: + bool _internal_has_call_expr() const; + public: + void clear_call_expr(); + const ::google::api::expr::v1beta1::Expr_Call& call_expr() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Expr_Call* release_call_expr(); + ::google::api::expr::v1beta1::Expr_Call* mutable_call_expr(); + void set_allocated_call_expr(::google::api::expr::v1beta1::Expr_Call* call_expr); + private: + const ::google::api::expr::v1beta1::Expr_Call& _internal_call_expr() const; + ::google::api::expr::v1beta1::Expr_Call* _internal_mutable_call_expr(); + public: + void unsafe_arena_set_allocated_call_expr( + ::google::api::expr::v1beta1::Expr_Call* call_expr); + ::google::api::expr::v1beta1::Expr_Call* unsafe_arena_release_call_expr(); + + // .google.api.expr.v1beta1.Expr.CreateList list_expr = 7 [json_name = "listExpr"]; + bool has_list_expr() const; + private: + bool _internal_has_list_expr() const; + public: + void clear_list_expr(); + const ::google::api::expr::v1beta1::Expr_CreateList& list_expr() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Expr_CreateList* release_list_expr(); + ::google::api::expr::v1beta1::Expr_CreateList* mutable_list_expr(); + void set_allocated_list_expr(::google::api::expr::v1beta1::Expr_CreateList* list_expr); + private: + const ::google::api::expr::v1beta1::Expr_CreateList& _internal_list_expr() const; + ::google::api::expr::v1beta1::Expr_CreateList* _internal_mutable_list_expr(); + public: + void unsafe_arena_set_allocated_list_expr( + ::google::api::expr::v1beta1::Expr_CreateList* list_expr); + ::google::api::expr::v1beta1::Expr_CreateList* unsafe_arena_release_list_expr(); + + // .google.api.expr.v1beta1.Expr.CreateStruct struct_expr = 8 [json_name = "structExpr"]; + bool has_struct_expr() const; + private: + bool _internal_has_struct_expr() const; + public: + void clear_struct_expr(); + const ::google::api::expr::v1beta1::Expr_CreateStruct& struct_expr() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Expr_CreateStruct* release_struct_expr(); + ::google::api::expr::v1beta1::Expr_CreateStruct* mutable_struct_expr(); + void set_allocated_struct_expr(::google::api::expr::v1beta1::Expr_CreateStruct* struct_expr); + private: + const ::google::api::expr::v1beta1::Expr_CreateStruct& _internal_struct_expr() const; + ::google::api::expr::v1beta1::Expr_CreateStruct* _internal_mutable_struct_expr(); + public: + void unsafe_arena_set_allocated_struct_expr( + ::google::api::expr::v1beta1::Expr_CreateStruct* struct_expr); + ::google::api::expr::v1beta1::Expr_CreateStruct* unsafe_arena_release_struct_expr(); + // .google.api.expr.v1beta1.Expr.Comprehension comprehension_expr = 9 [json_name = "comprehensionExpr"]; + bool has_comprehension_expr() const; private: - const ::google::api::expr::v1beta1::Expr& _internal_operand() const; - ::google::api::expr::v1beta1::Expr* _internal_mutable_operand(); - + bool _internal_has_comprehension_expr() const; public: - // bool test_only = 3 [json_name = "testOnly"]; - void clear_test_only() ; - bool test_only() const; - void set_test_only(bool value); - + void clear_comprehension_expr(); + const ::google::api::expr::v1beta1::Expr_Comprehension& comprehension_expr() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Expr_Comprehension* release_comprehension_expr(); + ::google::api::expr::v1beta1::Expr_Comprehension* mutable_comprehension_expr(); + void set_allocated_comprehension_expr(::google::api::expr::v1beta1::Expr_Comprehension* comprehension_expr); private: - bool _internal_test_only() const; - void _internal_set_test_only(bool value); - + const ::google::api::expr::v1beta1::Expr_Comprehension& _internal_comprehension_expr() const; + ::google::api::expr::v1beta1::Expr_Comprehension* _internal_mutable_comprehension_expr(); public: - // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.Expr.Select) + void unsafe_arena_set_allocated_comprehension_expr( + ::google::api::expr::v1beta1::Expr_Comprehension* comprehension_expr); + ::google::api::expr::v1beta1::Expr_Comprehension* unsafe_arena_release_comprehension_expr(); + + void clear_expr_kind(); + ExprKindCase expr_kind_case() const; + // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.Expr) private: class _Internal; + void set_has_literal_expr(); + void set_has_ident_expr(); + void set_has_select_expr(); + void set_has_call_expr(); + void set_has_list_expr(); + void set_has_struct_expr(); + void set_has_comprehension_expr(); + + inline bool has_expr_kind() const; + inline void clear_has_expr_kind(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + int32_t id_; + union ExprKindUnion { + constexpr ExprKindUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::google::api::expr::v1beta1::Literal* literal_expr_; + ::google::api::expr::v1beta1::Expr_Ident* ident_expr_; + ::google::api::expr::v1beta1::Expr_Select* select_expr_; + ::google::api::expr::v1beta1::Expr_Call* call_expr_; + ::google::api::expr::v1beta1::Expr_CreateList* list_expr_; + ::google::api::expr::v1beta1::Expr_CreateStruct* struct_expr_; + ::google::api::expr::v1beta1::Expr_Comprehension* comprehension_expr_; + } expr_kind_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 1, - 49, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr field_; - ::google::api::expr::v1beta1::Expr* operand_; - bool test_only_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ParsedExpr final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.ParsedExpr) */ { +class Literal final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.Literal) */ { public: - inline ParsedExpr() : ParsedExpr(nullptr) {} - ~ParsedExpr() override; - template - explicit PROTOBUF_CONSTEXPR ParsedExpr(::google::protobuf::internal::ConstantInitialized); + inline Literal() : Literal(nullptr) {} + ~Literal() override; + explicit PROTOBUF_CONSTEXPR Literal(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ParsedExpr(const ParsedExpr& from) - : ParsedExpr(nullptr, from) {} - ParsedExpr(ParsedExpr&& from) noexcept - : ParsedExpr() { + Literal(const Literal& from); + Literal(Literal&& from) noexcept + : Literal() { *this = ::std::move(from); } - inline ParsedExpr& operator=(const ParsedExpr& from) { + inline Literal& operator=(const Literal& from) { CopyFrom(from); return *this; } - inline ParsedExpr& operator=(ParsedExpr&& from) noexcept { + inline Literal& operator=(Literal&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2328,442 +1964,482 @@ class ParsedExpr final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ParsedExpr& default_instance() { + static const Literal& default_instance() { return *internal_default_instance(); } - static inline const ParsedExpr* internal_default_instance() { - return reinterpret_cast( - &_ParsedExpr_default_instance_); + enum ConstantKindCase { + kNullValue = 1, + kBoolValue = 2, + kInt64Value = 3, + kUint64Value = 4, + kDoubleValue = 5, + kStringValue = 6, + kBytesValue = 7, + CONSTANT_KIND_NOT_SET = 0, + }; + + static inline const Literal* internal_default_instance() { + return reinterpret_cast( + &_Literal_default_instance_); } static constexpr int kIndexInFileMessages = - 0; + 9; - friend void swap(ParsedExpr& a, ParsedExpr& b) { + friend void swap(Literal& a, Literal& b) { a.Swap(&b); } - inline void Swap(ParsedExpr* other) { + inline void Swap(Literal* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ParsedExpr* other) { + void UnsafeArenaSwap(Literal* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ParsedExpr* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ParsedExpr& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ParsedExpr& from) { - ParsedExpr::MergeImpl(*this, from); + Literal* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Literal& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Literal& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ParsedExpr* other); + void SetCachedSize(int size) const final; + void InternalSwap(Literal* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.expr.v1beta1.ParsedExpr"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1beta1.Literal"; } protected: - explicit ParsedExpr(::google::protobuf::Arena* arena); - ParsedExpr(::google::protobuf::Arena* arena, const ParsedExpr& from); + explicit Literal(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kSyntaxVersionFieldNumber = 4, - kExprFieldNumber = 2, - kSourceInfoFieldNumber = 3, + kNullValueFieldNumber = 1, + kBoolValueFieldNumber = 2, + kInt64ValueFieldNumber = 3, + kUint64ValueFieldNumber = 4, + kDoubleValueFieldNumber = 5, + kStringValueFieldNumber = 6, + kBytesValueFieldNumber = 7, }; - // string syntax_version = 4 [json_name = "syntaxVersion"]; - void clear_syntax_version() ; - const std::string& syntax_version() const; - template - void set_syntax_version(Arg_&& arg, Args_... args); - std::string* mutable_syntax_version(); - PROTOBUF_NODISCARD std::string* release_syntax_version(); - void set_allocated_syntax_version(std::string* value); + // .google.protobuf.NullValue null_value = 1 [json_name = "nullValue"]; + bool has_null_value() const; + private: + bool _internal_has_null_value() const; + public: + void clear_null_value(); + ::PROTOBUF_NAMESPACE_ID::NullValue null_value() const; + void set_null_value(::PROTOBUF_NAMESPACE_ID::NullValue value); + private: + ::PROTOBUF_NAMESPACE_ID::NullValue _internal_null_value() const; + void _internal_set_null_value(::PROTOBUF_NAMESPACE_ID::NullValue value); + public: + // bool bool_value = 2 [json_name = "boolValue"]; + bool has_bool_value() const; private: - const std::string& _internal_syntax_version() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_syntax_version( - const std::string& value); - std::string* _internal_mutable_syntax_version(); + bool _internal_has_bool_value() const; + public: + void clear_bool_value(); + bool bool_value() const; + void set_bool_value(bool value); + private: + bool _internal_bool_value() const; + void _internal_set_bool_value(bool value); + public: + // int64 int64_value = 3 [json_name = "int64Value"]; + bool has_int64_value() const; + private: + bool _internal_has_int64_value() const; + public: + void clear_int64_value(); + int64_t int64_value() const; + void set_int64_value(int64_t value); + private: + int64_t _internal_int64_value() const; + void _internal_set_int64_value(int64_t value); public: - // .google.api.expr.v1beta1.Expr expr = 2 [json_name = "expr"]; - bool has_expr() const; - void clear_expr() ; - const ::google::api::expr::v1beta1::Expr& expr() const; - PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Expr* release_expr(); - ::google::api::expr::v1beta1::Expr* mutable_expr(); - void set_allocated_expr(::google::api::expr::v1beta1::Expr* value); - void unsafe_arena_set_allocated_expr(::google::api::expr::v1beta1::Expr* value); - ::google::api::expr::v1beta1::Expr* unsafe_arena_release_expr(); + // uint64 uint64_value = 4 [json_name = "uint64Value"]; + bool has_uint64_value() const; private: - const ::google::api::expr::v1beta1::Expr& _internal_expr() const; - ::google::api::expr::v1beta1::Expr* _internal_mutable_expr(); + bool _internal_has_uint64_value() const; + public: + void clear_uint64_value(); + uint64_t uint64_value() const; + void set_uint64_value(uint64_t value); + private: + uint64_t _internal_uint64_value() const; + void _internal_set_uint64_value(uint64_t value); + public: + // double double_value = 5 [json_name = "doubleValue"]; + bool has_double_value() const; + private: + bool _internal_has_double_value() const; + public: + void clear_double_value(); + double double_value() const; + void set_double_value(double value); + private: + double _internal_double_value() const; + void _internal_set_double_value(double value); public: - // .google.api.expr.v1beta1.SourceInfo source_info = 3 [json_name = "sourceInfo"]; - bool has_source_info() const; - void clear_source_info() ; - const ::google::api::expr::v1beta1::SourceInfo& source_info() const; - PROTOBUF_NODISCARD ::google::api::expr::v1beta1::SourceInfo* release_source_info(); - ::google::api::expr::v1beta1::SourceInfo* mutable_source_info(); - void set_allocated_source_info(::google::api::expr::v1beta1::SourceInfo* value); - void unsafe_arena_set_allocated_source_info(::google::api::expr::v1beta1::SourceInfo* value); - ::google::api::expr::v1beta1::SourceInfo* unsafe_arena_release_source_info(); + // string string_value = 6 [json_name = "stringValue"]; + bool has_string_value() const; private: - const ::google::api::expr::v1beta1::SourceInfo& _internal_source_info() const; - ::google::api::expr::v1beta1::SourceInfo* _internal_mutable_source_info(); + bool _internal_has_string_value() const; + public: + void clear_string_value(); + const std::string& string_value() const; + template + void set_string_value(ArgT0&& arg0, ArgT... args); + std::string* mutable_string_value(); + PROTOBUF_NODISCARD std::string* release_string_value(); + void set_allocated_string_value(std::string* string_value); + private: + const std::string& _internal_string_value() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_string_value(const std::string& value); + std::string* _internal_mutable_string_value(); + public: + // bytes bytes_value = 7 [json_name = "bytesValue"]; + bool has_bytes_value() const; + private: + bool _internal_has_bytes_value() const; public: - // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.ParsedExpr) + void clear_bytes_value(); + const std::string& bytes_value() const; + template + void set_bytes_value(ArgT0&& arg0, ArgT... args); + std::string* mutable_bytes_value(); + PROTOBUF_NODISCARD std::string* release_bytes_value(); + void set_allocated_bytes_value(std::string* bytes_value); + private: + const std::string& _internal_bytes_value() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_bytes_value(const std::string& value); + std::string* _internal_mutable_bytes_value(); + public: + + void clear_constant_kind(); + ConstantKindCase constant_kind_case() const; + // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.Literal) private: class _Internal; + void set_has_null_value(); + void set_has_bool_value(); + void set_has_int64_value(); + void set_has_uint64_value(); + void set_has_double_value(); + void set_has_string_value(); + void set_has_bytes_value(); + + inline bool has_constant_kind() const; + inline void clear_has_constant_kind(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + union ConstantKindUnion { + constexpr ConstantKindUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + int null_value_; + bool bool_value_; + int64_t int64_value_; + uint64_t uint64_value_; + double double_value_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr string_value_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr bytes_value_; + } constant_kind_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 2, - 57, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr syntax_version_; - ::google::api::expr::v1beta1::Expr* expr_; - ::google::api::expr::v1beta1::SourceInfo* source_info_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto; }; - // =================================================================== - - // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ -// ------------------------------------------------------------------- - // ParsedExpr // .google.api.expr.v1beta1.Expr expr = 2 [json_name = "expr"]; +inline bool ParsedExpr::_internal_has_expr() const { + return this != internal_default_instance() && expr_ != nullptr; +} inline bool ParsedExpr::has_expr() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.expr_ != nullptr); - return value; + return _internal_has_expr(); } inline void ParsedExpr::clear_expr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.expr_ != nullptr) _impl_.expr_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && expr_ != nullptr) { + delete expr_; + } + expr_ = nullptr; } inline const ::google::api::expr::v1beta1::Expr& ParsedExpr::_internal_expr() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::expr::v1beta1::Expr* p = _impl_.expr_; - return p != nullptr ? *p : reinterpret_cast(::google::api::expr::v1beta1::_Expr_default_instance_); + const ::google::api::expr::v1beta1::Expr* p = expr_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1beta1::_Expr_default_instance_); } -inline const ::google::api::expr::v1beta1::Expr& ParsedExpr::expr() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1beta1::Expr& ParsedExpr::expr() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.ParsedExpr.expr) return _internal_expr(); } -inline void ParsedExpr::unsafe_arena_set_allocated_expr(::google::api::expr::v1beta1::Expr* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.expr_); +inline void ParsedExpr::unsafe_arena_set_allocated_expr( + ::google::api::expr::v1beta1::Expr* expr) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(expr_); } - _impl_.expr_ = reinterpret_cast<::google::api::expr::v1beta1::Expr*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + expr_ = expr; + if (expr) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.ParsedExpr.expr) } inline ::google::api::expr::v1beta1::Expr* ParsedExpr::release_expr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::expr::v1beta1::Expr* released = _impl_.expr_; - _impl_.expr_ = nullptr; + + ::google::api::expr::v1beta1::Expr* temp = expr_; + expr_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::expr::v1beta1::Expr* ParsedExpr::unsafe_arena_release_expr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.ParsedExpr.expr) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::expr::v1beta1::Expr* temp = _impl_.expr_; - _impl_.expr_ = nullptr; + + ::google::api::expr::v1beta1::Expr* temp = expr_; + expr_ = nullptr; return temp; } inline ::google::api::expr::v1beta1::Expr* ParsedExpr::_internal_mutable_expr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.expr_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::expr::v1beta1::Expr>(GetArena()); - _impl_.expr_ = reinterpret_cast<::google::api::expr::v1beta1::Expr*>(p); + + if (expr_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1beta1::Expr>(GetArenaForAllocation()); + expr_ = p; } - return _impl_.expr_; + return expr_; } -inline ::google::api::expr::v1beta1::Expr* ParsedExpr::mutable_expr() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1beta1::Expr* ParsedExpr::mutable_expr() { ::google::api::expr::v1beta1::Expr* _msg = _internal_mutable_expr(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.ParsedExpr.expr) return _msg; } -inline void ParsedExpr::set_allocated_expr(::google::api::expr::v1beta1::Expr* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ParsedExpr::set_allocated_expr(::google::api::expr::v1beta1::Expr* expr) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::api::expr::v1beta1::Expr*>(_impl_.expr_); + delete expr_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::api::expr::v1beta1::Expr*>(value)->GetArena(); + if (expr) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(expr); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + expr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, expr, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.expr_ = reinterpret_cast<::google::api::expr::v1beta1::Expr*>(value); + expr_ = expr; // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.ParsedExpr.expr) } // .google.api.expr.v1beta1.SourceInfo source_info = 3 [json_name = "sourceInfo"]; +inline bool ParsedExpr::_internal_has_source_info() const { + return this != internal_default_instance() && source_info_ != nullptr; +} inline bool ParsedExpr::has_source_info() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.source_info_ != nullptr); - return value; + return _internal_has_source_info(); } inline const ::google::api::expr::v1beta1::SourceInfo& ParsedExpr::_internal_source_info() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::expr::v1beta1::SourceInfo* p = _impl_.source_info_; - return p != nullptr ? *p : reinterpret_cast(::google::api::expr::v1beta1::_SourceInfo_default_instance_); + const ::google::api::expr::v1beta1::SourceInfo* p = source_info_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1beta1::_SourceInfo_default_instance_); } -inline const ::google::api::expr::v1beta1::SourceInfo& ParsedExpr::source_info() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1beta1::SourceInfo& ParsedExpr::source_info() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.ParsedExpr.source_info) return _internal_source_info(); } -inline void ParsedExpr::unsafe_arena_set_allocated_source_info(::google::api::expr::v1beta1::SourceInfo* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.source_info_); +inline void ParsedExpr::unsafe_arena_set_allocated_source_info( + ::google::api::expr::v1beta1::SourceInfo* source_info) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(source_info_); } - _impl_.source_info_ = reinterpret_cast<::google::api::expr::v1beta1::SourceInfo*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + source_info_ = source_info; + if (source_info) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.ParsedExpr.source_info) } inline ::google::api::expr::v1beta1::SourceInfo* ParsedExpr::release_source_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::api::expr::v1beta1::SourceInfo* released = _impl_.source_info_; - _impl_.source_info_ = nullptr; + + ::google::api::expr::v1beta1::SourceInfo* temp = source_info_; + source_info_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::expr::v1beta1::SourceInfo* ParsedExpr::unsafe_arena_release_source_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.ParsedExpr.source_info) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::api::expr::v1beta1::SourceInfo* temp = _impl_.source_info_; - _impl_.source_info_ = nullptr; + + ::google::api::expr::v1beta1::SourceInfo* temp = source_info_; + source_info_ = nullptr; return temp; } inline ::google::api::expr::v1beta1::SourceInfo* ParsedExpr::_internal_mutable_source_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.source_info_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::expr::v1beta1::SourceInfo>(GetArena()); - _impl_.source_info_ = reinterpret_cast<::google::api::expr::v1beta1::SourceInfo*>(p); + + if (source_info_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1beta1::SourceInfo>(GetArenaForAllocation()); + source_info_ = p; } - return _impl_.source_info_; + return source_info_; } -inline ::google::api::expr::v1beta1::SourceInfo* ParsedExpr::mutable_source_info() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1beta1::SourceInfo* ParsedExpr::mutable_source_info() { ::google::api::expr::v1beta1::SourceInfo* _msg = _internal_mutable_source_info(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.ParsedExpr.source_info) return _msg; } -inline void ParsedExpr::set_allocated_source_info(::google::api::expr::v1beta1::SourceInfo* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ParsedExpr::set_allocated_source_info(::google::api::expr::v1beta1::SourceInfo* source_info) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.source_info_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(source_info_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (source_info) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(source_info)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + source_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, source_info, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.source_info_ = reinterpret_cast<::google::api::expr::v1beta1::SourceInfo*>(value); + source_info_ = source_info; // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.ParsedExpr.source_info) } // string syntax_version = 4 [json_name = "syntaxVersion"]; inline void ParsedExpr::clear_syntax_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.syntax_version_.ClearToEmpty(); + syntax_version_.ClearToEmpty(); } -inline const std::string& ParsedExpr::syntax_version() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ParsedExpr::syntax_version() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.ParsedExpr.syntax_version) return _internal_syntax_version(); } -template -inline PROTOBUF_ALWAYS_INLINE void ParsedExpr::set_syntax_version(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.syntax_version_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ParsedExpr::set_syntax_version(ArgT0&& arg0, ArgT... args) { + + syntax_version_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.ParsedExpr.syntax_version) } -inline std::string* ParsedExpr::mutable_syntax_version() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ParsedExpr::mutable_syntax_version() { std::string* _s = _internal_mutable_syntax_version(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.ParsedExpr.syntax_version) return _s; } inline const std::string& ParsedExpr::_internal_syntax_version() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.syntax_version_.Get(); + return syntax_version_.Get(); } inline void ParsedExpr::_internal_set_syntax_version(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.syntax_version_.Set(value, GetArena()); + + syntax_version_.Set(value, GetArenaForAllocation()); } inline std::string* ParsedExpr::_internal_mutable_syntax_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.syntax_version_.Mutable( GetArena()); + + return syntax_version_.Mutable(GetArenaForAllocation()); } inline std::string* ParsedExpr::release_syntax_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.ParsedExpr.syntax_version) - return _impl_.syntax_version_.Release(); -} -inline void ParsedExpr::set_allocated_syntax_version(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.syntax_version_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.syntax_version_.IsDefault()) { - _impl_.syntax_version_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return syntax_version_.Release(); +} +inline void ParsedExpr::set_allocated_syntax_version(std::string* syntax_version) { + if (syntax_version != nullptr) { + + } else { + + } + syntax_version_.SetAllocated(syntax_version, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (syntax_version_.IsDefault()) { + syntax_version_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.ParsedExpr.syntax_version) } @@ -2773,54 +2449,51 @@ inline void ParsedExpr::set_allocated_syntax_version(std::string* value) { // string name = 1 [json_name = "name"]; inline void Expr_Ident::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& Expr_Ident::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Expr_Ident::name() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.Ident.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void Expr_Ident::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Expr_Ident::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Expr.Ident.name) } -inline std::string* Expr_Ident::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Expr_Ident::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Expr.Ident.name) return _s; } inline const std::string& Expr_Ident::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void Expr_Ident::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* Expr_Ident::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* Expr_Ident::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Expr.Ident.name) - return _impl_.name_.Release(); -} -inline void Expr_Ident::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void Expr_Ident::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:google.api.expr.v1beta1.Expr.Ident.name) } @@ -2829,377 +2502,347 @@ inline void Expr_Ident::set_allocated_name(std::string* value) { // Expr_Select // .google.api.expr.v1beta1.Expr operand = 1 [json_name = "operand"]; +inline bool Expr_Select::_internal_has_operand() const { + return this != internal_default_instance() && operand_ != nullptr; +} inline bool Expr_Select::has_operand() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.operand_ != nullptr); - return value; + return _internal_has_operand(); } inline void Expr_Select::clear_operand() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.operand_ != nullptr) _impl_.operand_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && operand_ != nullptr) { + delete operand_; + } + operand_ = nullptr; } inline const ::google::api::expr::v1beta1::Expr& Expr_Select::_internal_operand() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::expr::v1beta1::Expr* p = _impl_.operand_; - return p != nullptr ? *p : reinterpret_cast(::google::api::expr::v1beta1::_Expr_default_instance_); + const ::google::api::expr::v1beta1::Expr* p = operand_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1beta1::_Expr_default_instance_); } -inline const ::google::api::expr::v1beta1::Expr& Expr_Select::operand() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1beta1::Expr& Expr_Select::operand() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.Select.operand) return _internal_operand(); } -inline void Expr_Select::unsafe_arena_set_allocated_operand(::google::api::expr::v1beta1::Expr* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.operand_); +inline void Expr_Select::unsafe_arena_set_allocated_operand( + ::google::api::expr::v1beta1::Expr* operand) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(operand_); } - _impl_.operand_ = reinterpret_cast<::google::api::expr::v1beta1::Expr*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + operand_ = operand; + if (operand) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.Expr.Select.operand) } inline ::google::api::expr::v1beta1::Expr* Expr_Select::release_operand() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::expr::v1beta1::Expr* released = _impl_.operand_; - _impl_.operand_ = nullptr; + + ::google::api::expr::v1beta1::Expr* temp = operand_; + operand_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::expr::v1beta1::Expr* Expr_Select::unsafe_arena_release_operand() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Expr.Select.operand) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::expr::v1beta1::Expr* temp = _impl_.operand_; - _impl_.operand_ = nullptr; + + ::google::api::expr::v1beta1::Expr* temp = operand_; + operand_ = nullptr; return temp; } inline ::google::api::expr::v1beta1::Expr* Expr_Select::_internal_mutable_operand() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.operand_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::expr::v1beta1::Expr>(GetArena()); - _impl_.operand_ = reinterpret_cast<::google::api::expr::v1beta1::Expr*>(p); + + if (operand_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1beta1::Expr>(GetArenaForAllocation()); + operand_ = p; } - return _impl_.operand_; + return operand_; } -inline ::google::api::expr::v1beta1::Expr* Expr_Select::mutable_operand() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1beta1::Expr* Expr_Select::mutable_operand() { ::google::api::expr::v1beta1::Expr* _msg = _internal_mutable_operand(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Expr.Select.operand) return _msg; } -inline void Expr_Select::set_allocated_operand(::google::api::expr::v1beta1::Expr* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Expr_Select::set_allocated_operand(::google::api::expr::v1beta1::Expr* operand) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::api::expr::v1beta1::Expr*>(_impl_.operand_); + delete operand_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::api::expr::v1beta1::Expr*>(value)->GetArena(); + if (operand) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(operand); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + operand = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, operand, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.operand_ = reinterpret_cast<::google::api::expr::v1beta1::Expr*>(value); + operand_ = operand; // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Expr.Select.operand) } // string field = 2 [json_name = "field"]; inline void Expr_Select::clear_field() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.field_.ClearToEmpty(); + field_.ClearToEmpty(); } -inline const std::string& Expr_Select::field() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Expr_Select::field() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.Select.field) return _internal_field(); } -template -inline PROTOBUF_ALWAYS_INLINE void Expr_Select::set_field(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.field_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Expr_Select::set_field(ArgT0&& arg0, ArgT... args) { + + field_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Expr.Select.field) } -inline std::string* Expr_Select::mutable_field() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Expr_Select::mutable_field() { std::string* _s = _internal_mutable_field(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Expr.Select.field) return _s; } inline const std::string& Expr_Select::_internal_field() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.field_.Get(); + return field_.Get(); } inline void Expr_Select::_internal_set_field(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.field_.Set(value, GetArena()); + + field_.Set(value, GetArenaForAllocation()); } inline std::string* Expr_Select::_internal_mutable_field() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.field_.Mutable( GetArena()); + + return field_.Mutable(GetArenaForAllocation()); } inline std::string* Expr_Select::release_field() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Expr.Select.field) - return _impl_.field_.Release(); -} -inline void Expr_Select::set_allocated_field(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.field_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.field_.IsDefault()) { - _impl_.field_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return field_.Release(); +} +inline void Expr_Select::set_allocated_field(std::string* field) { + if (field != nullptr) { + + } else { + + } + field_.SetAllocated(field, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (field_.IsDefault()) { + field_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Expr.Select.field) } // bool test_only = 3 [json_name = "testOnly"]; inline void Expr_Select::clear_test_only() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.test_only_ = false; + test_only_ = false; +} +inline bool Expr_Select::_internal_test_only() const { + return test_only_; } inline bool Expr_Select::test_only() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.Select.test_only) return _internal_test_only(); } +inline void Expr_Select::_internal_set_test_only(bool value) { + + test_only_ = value; +} inline void Expr_Select::set_test_only(bool value) { _internal_set_test_only(value); // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Expr.Select.test_only) } -inline bool Expr_Select::_internal_test_only() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.test_only_; -} -inline void Expr_Select::_internal_set_test_only(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.test_only_ = value; -} // ------------------------------------------------------------------- // Expr_Call // .google.api.expr.v1beta1.Expr target = 1 [json_name = "target"]; +inline bool Expr_Call::_internal_has_target() const { + return this != internal_default_instance() && target_ != nullptr; +} inline bool Expr_Call::has_target() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.target_ != nullptr); - return value; + return _internal_has_target(); } inline void Expr_Call::clear_target() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.target_ != nullptr) _impl_.target_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && target_ != nullptr) { + delete target_; + } + target_ = nullptr; } inline const ::google::api::expr::v1beta1::Expr& Expr_Call::_internal_target() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::expr::v1beta1::Expr* p = _impl_.target_; - return p != nullptr ? *p : reinterpret_cast(::google::api::expr::v1beta1::_Expr_default_instance_); + const ::google::api::expr::v1beta1::Expr* p = target_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1beta1::_Expr_default_instance_); } -inline const ::google::api::expr::v1beta1::Expr& Expr_Call::target() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1beta1::Expr& Expr_Call::target() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.Call.target) return _internal_target(); } -inline void Expr_Call::unsafe_arena_set_allocated_target(::google::api::expr::v1beta1::Expr* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.target_); +inline void Expr_Call::unsafe_arena_set_allocated_target( + ::google::api::expr::v1beta1::Expr* target) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(target_); } - _impl_.target_ = reinterpret_cast<::google::api::expr::v1beta1::Expr*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + target_ = target; + if (target) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.Expr.Call.target) } inline ::google::api::expr::v1beta1::Expr* Expr_Call::release_target() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::expr::v1beta1::Expr* released = _impl_.target_; - _impl_.target_ = nullptr; + + ::google::api::expr::v1beta1::Expr* temp = target_; + target_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::expr::v1beta1::Expr* Expr_Call::unsafe_arena_release_target() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Expr.Call.target) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::expr::v1beta1::Expr* temp = _impl_.target_; - _impl_.target_ = nullptr; + + ::google::api::expr::v1beta1::Expr* temp = target_; + target_ = nullptr; return temp; } inline ::google::api::expr::v1beta1::Expr* Expr_Call::_internal_mutable_target() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.target_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::expr::v1beta1::Expr>(GetArena()); - _impl_.target_ = reinterpret_cast<::google::api::expr::v1beta1::Expr*>(p); + + if (target_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1beta1::Expr>(GetArenaForAllocation()); + target_ = p; } - return _impl_.target_; + return target_; } -inline ::google::api::expr::v1beta1::Expr* Expr_Call::mutable_target() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1beta1::Expr* Expr_Call::mutable_target() { ::google::api::expr::v1beta1::Expr* _msg = _internal_mutable_target(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Expr.Call.target) return _msg; } -inline void Expr_Call::set_allocated_target(::google::api::expr::v1beta1::Expr* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Expr_Call::set_allocated_target(::google::api::expr::v1beta1::Expr* target) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::api::expr::v1beta1::Expr*>(_impl_.target_); + delete target_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::api::expr::v1beta1::Expr*>(value)->GetArena(); + if (target) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(target); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + target = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, target, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.target_ = reinterpret_cast<::google::api::expr::v1beta1::Expr*>(value); + target_ = target; // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Expr.Call.target) } // string function = 2 [json_name = "function"]; inline void Expr_Call::clear_function() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.function_.ClearToEmpty(); + function_.ClearToEmpty(); } -inline const std::string& Expr_Call::function() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Expr_Call::function() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.Call.function) return _internal_function(); } -template -inline PROTOBUF_ALWAYS_INLINE void Expr_Call::set_function(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.function_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Expr_Call::set_function(ArgT0&& arg0, ArgT... args) { + + function_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Expr.Call.function) } -inline std::string* Expr_Call::mutable_function() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Expr_Call::mutable_function() { std::string* _s = _internal_mutable_function(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Expr.Call.function) return _s; } inline const std::string& Expr_Call::_internal_function() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.function_.Get(); + return function_.Get(); } inline void Expr_Call::_internal_set_function(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.function_.Set(value, GetArena()); + + function_.Set(value, GetArenaForAllocation()); } inline std::string* Expr_Call::_internal_mutable_function() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.function_.Mutable( GetArena()); + + return function_.Mutable(GetArenaForAllocation()); } inline std::string* Expr_Call::release_function() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Expr.Call.function) - return _impl_.function_.Release(); -} -inline void Expr_Call::set_allocated_function(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.function_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.function_.IsDefault()) { - _impl_.function_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return function_.Release(); +} +inline void Expr_Call::set_allocated_function(std::string* function) { + if (function != nullptr) { + + } else { + + } + function_.SetAllocated(function, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (function_.IsDefault()) { + function_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Expr.Call.function) } // repeated .google.api.expr.v1beta1.Expr args = 3 [json_name = "args"]; inline int Expr_Call::_internal_args_size() const { - return _internal_args().size(); + return args_.size(); } inline int Expr_Call::args_size() const { return _internal_args_size(); } inline void Expr_Call::clear_args() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.args_.Clear(); + args_.Clear(); } -inline ::google::api::expr::v1beta1::Expr* Expr_Call::mutable_args(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1beta1::Expr* Expr_Call::mutable_args(int index) { // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Expr.Call.args) - return _internal_mutable_args()->Mutable(index); + return args_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::Expr>* Expr_Call::mutable_args() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::Expr >* +Expr_Call::mutable_args() { // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1beta1.Expr.Call.args) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_args(); + return &args_; } -inline const ::google::api::expr::v1beta1::Expr& Expr_Call::args(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1beta1::Expr& Expr_Call::_internal_args(int index) const { + return args_.Get(index); +} +inline const ::google::api::expr::v1beta1::Expr& Expr_Call::args(int index) const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.Call.args) - return _internal_args().Get(index); + return _internal_args(index); +} +inline ::google::api::expr::v1beta1::Expr* Expr_Call::_internal_add_args() { + return args_.Add(); } -inline ::google::api::expr::v1beta1::Expr* Expr_Call::add_args() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::google::api::expr::v1beta1::Expr* _add = _internal_mutable_args()->Add(); +inline ::google::api::expr::v1beta1::Expr* Expr_Call::add_args() { + ::google::api::expr::v1beta1::Expr* _add = _internal_add_args(); // @@protoc_insertion_point(field_add:google.api.expr.v1beta1.Expr.Call.args) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::Expr>& Expr_Call::args() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::Expr >& +Expr_Call::args() const { // @@protoc_insertion_point(field_list:google.api.expr.v1beta1.Expr.Call.args) - return _internal_args(); -} -inline const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::Expr>& -Expr_Call::_internal_args() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.args_; -} -inline ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::Expr>* -Expr_Call::_internal_mutable_args() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.args_; + return args_; } // ------------------------------------------------------------------- @@ -3208,51 +2851,42 @@ Expr_Call::_internal_mutable_args() { // repeated .google.api.expr.v1beta1.Expr elements = 1 [json_name = "elements"]; inline int Expr_CreateList::_internal_elements_size() const { - return _internal_elements().size(); + return elements_.size(); } inline int Expr_CreateList::elements_size() const { return _internal_elements_size(); } inline void Expr_CreateList::clear_elements() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.elements_.Clear(); + elements_.Clear(); } -inline ::google::api::expr::v1beta1::Expr* Expr_CreateList::mutable_elements(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1beta1::Expr* Expr_CreateList::mutable_elements(int index) { // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Expr.CreateList.elements) - return _internal_mutable_elements()->Mutable(index); + return elements_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::Expr>* Expr_CreateList::mutable_elements() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::Expr >* +Expr_CreateList::mutable_elements() { // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1beta1.Expr.CreateList.elements) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_elements(); + return &elements_; } -inline const ::google::api::expr::v1beta1::Expr& Expr_CreateList::elements(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1beta1::Expr& Expr_CreateList::_internal_elements(int index) const { + return elements_.Get(index); +} +inline const ::google::api::expr::v1beta1::Expr& Expr_CreateList::elements(int index) const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.CreateList.elements) - return _internal_elements().Get(index); + return _internal_elements(index); +} +inline ::google::api::expr::v1beta1::Expr* Expr_CreateList::_internal_add_elements() { + return elements_.Add(); } -inline ::google::api::expr::v1beta1::Expr* Expr_CreateList::add_elements() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::google::api::expr::v1beta1::Expr* _add = _internal_mutable_elements()->Add(); +inline ::google::api::expr::v1beta1::Expr* Expr_CreateList::add_elements() { + ::google::api::expr::v1beta1::Expr* _add = _internal_add_elements(); // @@protoc_insertion_point(field_add:google.api.expr.v1beta1.Expr.CreateList.elements) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::Expr>& Expr_CreateList::elements() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::Expr >& +Expr_CreateList::elements() const { // @@protoc_insertion_point(field_list:google.api.expr.v1beta1.Expr.CreateList.elements) - return _internal_elements(); -} -inline const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::Expr>& -Expr_CreateList::_internal_elements() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.elements_; -} -inline ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::Expr>* -Expr_CreateList::_internal_mutable_elements() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.elements_; + return elements_; } // ------------------------------------------------------------------- @@ -3261,281 +2895,262 @@ Expr_CreateList::_internal_mutable_elements() { // int32 id = 1 [json_name = "id"]; inline void Expr_CreateStruct_Entry::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_ = 0; + id_ = 0; } -inline ::int32_t Expr_CreateStruct_Entry::id() const { +inline int32_t Expr_CreateStruct_Entry::_internal_id() const { + return id_; +} +inline int32_t Expr_CreateStruct_Entry::id() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.CreateStruct.Entry.id) return _internal_id(); } -inline void Expr_CreateStruct_Entry::set_id(::int32_t value) { +inline void Expr_CreateStruct_Entry::_internal_set_id(int32_t value) { + + id_ = value; +} +inline void Expr_CreateStruct_Entry::set_id(int32_t value) { _internal_set_id(value); // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Expr.CreateStruct.Entry.id) } -inline ::int32_t Expr_CreateStruct_Entry::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_; -} -inline void Expr_CreateStruct_Entry::_internal_set_id(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_ = value; -} // string field_key = 2 [json_name = "fieldKey"]; -inline bool Expr_CreateStruct_Entry::has_field_key() const { +inline bool Expr_CreateStruct_Entry::_internal_has_field_key() const { return key_kind_case() == kFieldKey; } +inline bool Expr_CreateStruct_Entry::has_field_key() const { + return _internal_has_field_key(); +} inline void Expr_CreateStruct_Entry::set_has_field_key() { - _impl_._oneof_case_[0] = kFieldKey; + _oneof_case_[0] = kFieldKey; } inline void Expr_CreateStruct_Entry::clear_field_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (key_kind_case() == kFieldKey) { - _impl_.key_kind_.field_key_.Destroy(); + if (_internal_has_field_key()) { + key_kind_.field_key_.Destroy(); clear_has_key_kind(); } } -inline const std::string& Expr_CreateStruct_Entry::field_key() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Expr_CreateStruct_Entry::field_key() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.CreateStruct.Entry.field_key) return _internal_field_key(); } -template -inline PROTOBUF_ALWAYS_INLINE void Expr_CreateStruct_Entry::set_field_key(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (key_kind_case() != kFieldKey) { +template +inline void Expr_CreateStruct_Entry::set_field_key(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_field_key()) { clear_key_kind(); - set_has_field_key(); - _impl_.key_kind_.field_key_.InitDefault(); + key_kind_.field_key_.InitDefault(); } - _impl_.key_kind_.field_key_.Set(static_cast(arg), args..., GetArena()); + key_kind_.field_key_.Set( static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Expr.CreateStruct.Entry.field_key) } -inline std::string* Expr_CreateStruct_Entry::mutable_field_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Expr_CreateStruct_Entry::mutable_field_key() { std::string* _s = _internal_mutable_field_key(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Expr.CreateStruct.Entry.field_key) return _s; } inline const std::string& Expr_CreateStruct_Entry::_internal_field_key() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - if (key_kind_case() != kFieldKey) { - return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); + if (_internal_has_field_key()) { + return key_kind_.field_key_.Get(); } - return _impl_.key_kind_.field_key_.Get(); + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } inline void Expr_CreateStruct_Entry::_internal_set_field_key(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (key_kind_case() != kFieldKey) { + if (!_internal_has_field_key()) { clear_key_kind(); - set_has_field_key(); - _impl_.key_kind_.field_key_.InitDefault(); + key_kind_.field_key_.InitDefault(); } - _impl_.key_kind_.field_key_.Set(value, GetArena()); + key_kind_.field_key_.Set(value, GetArenaForAllocation()); } inline std::string* Expr_CreateStruct_Entry::_internal_mutable_field_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (key_kind_case() != kFieldKey) { + if (!_internal_has_field_key()) { clear_key_kind(); - set_has_field_key(); - _impl_.key_kind_.field_key_.InitDefault(); + key_kind_.field_key_.InitDefault(); } - return _impl_.key_kind_.field_key_.Mutable( GetArena()); + return key_kind_.field_key_.Mutable( GetArenaForAllocation()); } inline std::string* Expr_CreateStruct_Entry::release_field_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Expr.CreateStruct.Entry.field_key) - if (key_kind_case() != kFieldKey) { + if (_internal_has_field_key()) { + clear_has_key_kind(); + return key_kind_.field_key_.Release(); + } else { return nullptr; } - clear_has_key_kind(); - return _impl_.key_kind_.field_key_.Release(); } -inline void Expr_CreateStruct_Entry::set_allocated_field_key(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Expr_CreateStruct_Entry::set_allocated_field_key(std::string* field_key) { if (has_key_kind()) { clear_key_kind(); } - if (value != nullptr) { + if (field_key != nullptr) { set_has_field_key(); - _impl_.key_kind_.field_key_.InitAllocated(value, GetArena()); + key_kind_.field_key_.InitAllocated(field_key, GetArenaForAllocation()); } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Expr.CreateStruct.Entry.field_key) } // .google.api.expr.v1beta1.Expr map_key = 3 [json_name = "mapKey"]; -inline bool Expr_CreateStruct_Entry::has_map_key() const { - return key_kind_case() == kMapKey; -} inline bool Expr_CreateStruct_Entry::_internal_has_map_key() const { return key_kind_case() == kMapKey; } +inline bool Expr_CreateStruct_Entry::has_map_key() const { + return _internal_has_map_key(); +} inline void Expr_CreateStruct_Entry::set_has_map_key() { - _impl_._oneof_case_[0] = kMapKey; + _oneof_case_[0] = kMapKey; } inline void Expr_CreateStruct_Entry::clear_map_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (key_kind_case() == kMapKey) { - if (GetArena() == nullptr) { - delete _impl_.key_kind_.map_key_; + if (_internal_has_map_key()) { + if (GetArenaForAllocation() == nullptr) { + delete key_kind_.map_key_; } clear_has_key_kind(); } } inline ::google::api::expr::v1beta1::Expr* Expr_CreateStruct_Entry::release_map_key() { // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Expr.CreateStruct.Entry.map_key) - if (key_kind_case() == kMapKey) { + if (_internal_has_map_key()) { clear_has_key_kind(); - auto* temp = _impl_.key_kind_.map_key_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::google::api::expr::v1beta1::Expr* temp = key_kind_.map_key_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.key_kind_.map_key_ = nullptr; + key_kind_.map_key_ = nullptr; return temp; } else { return nullptr; } } inline const ::google::api::expr::v1beta1::Expr& Expr_CreateStruct_Entry::_internal_map_key() const { - return key_kind_case() == kMapKey ? *_impl_.key_kind_.map_key_ : reinterpret_cast<::google::api::expr::v1beta1::Expr&>(::google::api::expr::v1beta1::_Expr_default_instance_); + return _internal_has_map_key() + ? *key_kind_.map_key_ + : reinterpret_cast< ::google::api::expr::v1beta1::Expr&>(::google::api::expr::v1beta1::_Expr_default_instance_); } -inline const ::google::api::expr::v1beta1::Expr& Expr_CreateStruct_Entry::map_key() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1beta1::Expr& Expr_CreateStruct_Entry::map_key() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.CreateStruct.Entry.map_key) return _internal_map_key(); } inline ::google::api::expr::v1beta1::Expr* Expr_CreateStruct_Entry::unsafe_arena_release_map_key() { // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1beta1.Expr.CreateStruct.Entry.map_key) - if (key_kind_case() == kMapKey) { + if (_internal_has_map_key()) { clear_has_key_kind(); - auto* temp = _impl_.key_kind_.map_key_; - _impl_.key_kind_.map_key_ = nullptr; + ::google::api::expr::v1beta1::Expr* temp = key_kind_.map_key_; + key_kind_.map_key_ = nullptr; return temp; } else { return nullptr; } } -inline void Expr_CreateStruct_Entry::unsafe_arena_set_allocated_map_key(::google::api::expr::v1beta1::Expr* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void Expr_CreateStruct_Entry::unsafe_arena_set_allocated_map_key(::google::api::expr::v1beta1::Expr* map_key) { clear_key_kind(); - if (value) { + if (map_key) { set_has_map_key(); - _impl_.key_kind_.map_key_ = value; + key_kind_.map_key_ = map_key; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.Expr.CreateStruct.Entry.map_key) } inline ::google::api::expr::v1beta1::Expr* Expr_CreateStruct_Entry::_internal_mutable_map_key() { - if (key_kind_case() != kMapKey) { + if (!_internal_has_map_key()) { clear_key_kind(); set_has_map_key(); - _impl_.key_kind_.map_key_ = CreateMaybeMessage<::google::api::expr::v1beta1::Expr>(GetArena()); + key_kind_.map_key_ = CreateMaybeMessage< ::google::api::expr::v1beta1::Expr >(GetArenaForAllocation()); } - return _impl_.key_kind_.map_key_; + return key_kind_.map_key_; } -inline ::google::api::expr::v1beta1::Expr* Expr_CreateStruct_Entry::mutable_map_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1beta1::Expr* Expr_CreateStruct_Entry::mutable_map_key() { ::google::api::expr::v1beta1::Expr* _msg = _internal_mutable_map_key(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Expr.CreateStruct.Entry.map_key) return _msg; } // .google.api.expr.v1beta1.Expr value = 4 [json_name = "value"]; +inline bool Expr_CreateStruct_Entry::_internal_has_value() const { + return this != internal_default_instance() && value_ != nullptr; +} inline bool Expr_CreateStruct_Entry::has_value() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.value_ != nullptr); - return value; + return _internal_has_value(); } inline void Expr_CreateStruct_Entry::clear_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.value_ != nullptr) _impl_.value_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && value_ != nullptr) { + delete value_; + } + value_ = nullptr; } inline const ::google::api::expr::v1beta1::Expr& Expr_CreateStruct_Entry::_internal_value() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::expr::v1beta1::Expr* p = _impl_.value_; - return p != nullptr ? *p : reinterpret_cast(::google::api::expr::v1beta1::_Expr_default_instance_); + const ::google::api::expr::v1beta1::Expr* p = value_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1beta1::_Expr_default_instance_); } -inline const ::google::api::expr::v1beta1::Expr& Expr_CreateStruct_Entry::value() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1beta1::Expr& Expr_CreateStruct_Entry::value() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.CreateStruct.Entry.value) return _internal_value(); } -inline void Expr_CreateStruct_Entry::unsafe_arena_set_allocated_value(::google::api::expr::v1beta1::Expr* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.value_); +inline void Expr_CreateStruct_Entry::unsafe_arena_set_allocated_value( + ::google::api::expr::v1beta1::Expr* value) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(value_); } - _impl_.value_ = reinterpret_cast<::google::api::expr::v1beta1::Expr*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + value_ = value; + if (value) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.Expr.CreateStruct.Entry.value) } inline ::google::api::expr::v1beta1::Expr* Expr_CreateStruct_Entry::release_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::expr::v1beta1::Expr* released = _impl_.value_; - _impl_.value_ = nullptr; + + ::google::api::expr::v1beta1::Expr* temp = value_; + value_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::expr::v1beta1::Expr* Expr_CreateStruct_Entry::unsafe_arena_release_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Expr.CreateStruct.Entry.value) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::expr::v1beta1::Expr* temp = _impl_.value_; - _impl_.value_ = nullptr; + + ::google::api::expr::v1beta1::Expr* temp = value_; + value_ = nullptr; return temp; } inline ::google::api::expr::v1beta1::Expr* Expr_CreateStruct_Entry::_internal_mutable_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.value_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::expr::v1beta1::Expr>(GetArena()); - _impl_.value_ = reinterpret_cast<::google::api::expr::v1beta1::Expr*>(p); + + if (value_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1beta1::Expr>(GetArenaForAllocation()); + value_ = p; } - return _impl_.value_; + return value_; } -inline ::google::api::expr::v1beta1::Expr* Expr_CreateStruct_Entry::mutable_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1beta1::Expr* Expr_CreateStruct_Entry::mutable_value() { ::google::api::expr::v1beta1::Expr* _msg = _internal_mutable_value(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Expr.CreateStruct.Entry.value) return _msg; } inline void Expr_CreateStruct_Entry::set_allocated_value(::google::api::expr::v1beta1::Expr* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::api::expr::v1beta1::Expr*>(_impl_.value_); + delete value_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::api::expr::v1beta1::Expr*>(value)->GetArena(); + if (value) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(value); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, value, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.value_ = reinterpret_cast<::google::api::expr::v1beta1::Expr*>(value); + value_ = value; // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Expr.CreateStruct.Entry.value) } @@ -3543,10 +3158,10 @@ inline bool Expr_CreateStruct_Entry::has_key_kind() const { return key_kind_case() != KEY_KIND_NOT_SET; } inline void Expr_CreateStruct_Entry::clear_has_key_kind() { - _impl_._oneof_case_[0] = KEY_KIND_NOT_SET; + _oneof_case_[0] = KEY_KIND_NOT_SET; } inline Expr_CreateStruct_Entry::KeyKindCase Expr_CreateStruct_Entry::key_kind_case() const { - return Expr_CreateStruct_Entry::KeyKindCase(_impl_._oneof_case_[0]); + return Expr_CreateStruct_Entry::KeyKindCase(_oneof_case_[0]); } // ------------------------------------------------------------------- @@ -3554,104 +3169,92 @@ inline Expr_CreateStruct_Entry::KeyKindCase Expr_CreateStruct_Entry::key_kind_ca // string type = 1 [json_name = "type"]; inline void Expr_CreateStruct::clear_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_.ClearToEmpty(); + type_.ClearToEmpty(); } -inline const std::string& Expr_CreateStruct::type() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Expr_CreateStruct::type() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.CreateStruct.type) return _internal_type(); } -template -inline PROTOBUF_ALWAYS_INLINE void Expr_CreateStruct::set_type(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.type_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Expr_CreateStruct::set_type(ArgT0&& arg0, ArgT... args) { + + type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Expr.CreateStruct.type) } -inline std::string* Expr_CreateStruct::mutable_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Expr_CreateStruct::mutable_type() { std::string* _s = _internal_mutable_type(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Expr.CreateStruct.type) return _s; } inline const std::string& Expr_CreateStruct::_internal_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.type_.Get(); + return type_.Get(); } inline void Expr_CreateStruct::_internal_set_type(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.type_.Set(value, GetArena()); + + type_.Set(value, GetArenaForAllocation()); } inline std::string* Expr_CreateStruct::_internal_mutable_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.type_.Mutable( GetArena()); + + return type_.Mutable(GetArenaForAllocation()); } inline std::string* Expr_CreateStruct::release_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Expr.CreateStruct.type) - return _impl_.type_.Release(); -} -inline void Expr_CreateStruct::set_allocated_type(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.type_.IsDefault()) { - _impl_.type_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return type_.Release(); +} +inline void Expr_CreateStruct::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:google.api.expr.v1beta1.Expr.CreateStruct.type) } // repeated .google.api.expr.v1beta1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"]; inline int Expr_CreateStruct::_internal_entries_size() const { - return _internal_entries().size(); + return entries_.size(); } inline int Expr_CreateStruct::entries_size() const { return _internal_entries_size(); } inline void Expr_CreateStruct::clear_entries() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.entries_.Clear(); + entries_.Clear(); } -inline ::google::api::expr::v1beta1::Expr_CreateStruct_Entry* Expr_CreateStruct::mutable_entries(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1beta1::Expr_CreateStruct_Entry* Expr_CreateStruct::mutable_entries(int index) { // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Expr.CreateStruct.entries) - return _internal_mutable_entries()->Mutable(index); + return entries_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::Expr_CreateStruct_Entry>* Expr_CreateStruct::mutable_entries() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::Expr_CreateStruct_Entry >* +Expr_CreateStruct::mutable_entries() { // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1beta1.Expr.CreateStruct.entries) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_entries(); + return &entries_; } -inline const ::google::api::expr::v1beta1::Expr_CreateStruct_Entry& Expr_CreateStruct::entries(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1beta1::Expr_CreateStruct_Entry& Expr_CreateStruct::_internal_entries(int index) const { + return entries_.Get(index); +} +inline const ::google::api::expr::v1beta1::Expr_CreateStruct_Entry& Expr_CreateStruct::entries(int index) const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.CreateStruct.entries) - return _internal_entries().Get(index); + return _internal_entries(index); +} +inline ::google::api::expr::v1beta1::Expr_CreateStruct_Entry* Expr_CreateStruct::_internal_add_entries() { + return entries_.Add(); } -inline ::google::api::expr::v1beta1::Expr_CreateStruct_Entry* Expr_CreateStruct::add_entries() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::google::api::expr::v1beta1::Expr_CreateStruct_Entry* _add = _internal_mutable_entries()->Add(); +inline ::google::api::expr::v1beta1::Expr_CreateStruct_Entry* Expr_CreateStruct::add_entries() { + ::google::api::expr::v1beta1::Expr_CreateStruct_Entry* _add = _internal_add_entries(); // @@protoc_insertion_point(field_add:google.api.expr.v1beta1.Expr.CreateStruct.entries) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::Expr_CreateStruct_Entry>& Expr_CreateStruct::entries() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::Expr_CreateStruct_Entry >& +Expr_CreateStruct::entries() const { // @@protoc_insertion_point(field_list:google.api.expr.v1beta1.Expr.CreateStruct.entries) - return _internal_entries(); -} -inline const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::Expr_CreateStruct_Entry>& -Expr_CreateStruct::_internal_entries() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.entries_; -} -inline ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::Expr_CreateStruct_Entry>* -Expr_CreateStruct::_internal_mutable_entries() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.entries_; + return entries_; } // ------------------------------------------------------------------- @@ -3660,587 +3263,551 @@ Expr_CreateStruct::_internal_mutable_entries() { // string iter_var = 1 [json_name = "iterVar"]; inline void Expr_Comprehension::clear_iter_var() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.iter_var_.ClearToEmpty(); + iter_var_.ClearToEmpty(); } -inline const std::string& Expr_Comprehension::iter_var() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Expr_Comprehension::iter_var() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.Comprehension.iter_var) return _internal_iter_var(); } -template -inline PROTOBUF_ALWAYS_INLINE void Expr_Comprehension::set_iter_var(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.iter_var_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Expr_Comprehension::set_iter_var(ArgT0&& arg0, ArgT... args) { + + iter_var_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Expr.Comprehension.iter_var) } -inline std::string* Expr_Comprehension::mutable_iter_var() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Expr_Comprehension::mutable_iter_var() { std::string* _s = _internal_mutable_iter_var(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Expr.Comprehension.iter_var) return _s; } inline const std::string& Expr_Comprehension::_internal_iter_var() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.iter_var_.Get(); + return iter_var_.Get(); } inline void Expr_Comprehension::_internal_set_iter_var(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.iter_var_.Set(value, GetArena()); + + iter_var_.Set(value, GetArenaForAllocation()); } inline std::string* Expr_Comprehension::_internal_mutable_iter_var() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.iter_var_.Mutable( GetArena()); + + return iter_var_.Mutable(GetArenaForAllocation()); } inline std::string* Expr_Comprehension::release_iter_var() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Expr.Comprehension.iter_var) - return _impl_.iter_var_.Release(); -} -inline void Expr_Comprehension::set_allocated_iter_var(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.iter_var_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.iter_var_.IsDefault()) { - _impl_.iter_var_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return iter_var_.Release(); +} +inline void Expr_Comprehension::set_allocated_iter_var(std::string* iter_var) { + if (iter_var != nullptr) { + + } else { + + } + iter_var_.SetAllocated(iter_var, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (iter_var_.IsDefault()) { + iter_var_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Expr.Comprehension.iter_var) } // .google.api.expr.v1beta1.Expr iter_range = 2 [json_name = "iterRange"]; +inline bool Expr_Comprehension::_internal_has_iter_range() const { + return this != internal_default_instance() && iter_range_ != nullptr; +} inline bool Expr_Comprehension::has_iter_range() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.iter_range_ != nullptr); - return value; + return _internal_has_iter_range(); } inline void Expr_Comprehension::clear_iter_range() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.iter_range_ != nullptr) _impl_.iter_range_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && iter_range_ != nullptr) { + delete iter_range_; + } + iter_range_ = nullptr; } inline const ::google::api::expr::v1beta1::Expr& Expr_Comprehension::_internal_iter_range() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::expr::v1beta1::Expr* p = _impl_.iter_range_; - return p != nullptr ? *p : reinterpret_cast(::google::api::expr::v1beta1::_Expr_default_instance_); + const ::google::api::expr::v1beta1::Expr* p = iter_range_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1beta1::_Expr_default_instance_); } -inline const ::google::api::expr::v1beta1::Expr& Expr_Comprehension::iter_range() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1beta1::Expr& Expr_Comprehension::iter_range() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.Comprehension.iter_range) return _internal_iter_range(); } -inline void Expr_Comprehension::unsafe_arena_set_allocated_iter_range(::google::api::expr::v1beta1::Expr* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.iter_range_); +inline void Expr_Comprehension::unsafe_arena_set_allocated_iter_range( + ::google::api::expr::v1beta1::Expr* iter_range) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(iter_range_); } - _impl_.iter_range_ = reinterpret_cast<::google::api::expr::v1beta1::Expr*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + iter_range_ = iter_range; + if (iter_range) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.Expr.Comprehension.iter_range) } inline ::google::api::expr::v1beta1::Expr* Expr_Comprehension::release_iter_range() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::expr::v1beta1::Expr* released = _impl_.iter_range_; - _impl_.iter_range_ = nullptr; + + ::google::api::expr::v1beta1::Expr* temp = iter_range_; + iter_range_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::expr::v1beta1::Expr* Expr_Comprehension::unsafe_arena_release_iter_range() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Expr.Comprehension.iter_range) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::expr::v1beta1::Expr* temp = _impl_.iter_range_; - _impl_.iter_range_ = nullptr; + + ::google::api::expr::v1beta1::Expr* temp = iter_range_; + iter_range_ = nullptr; return temp; } inline ::google::api::expr::v1beta1::Expr* Expr_Comprehension::_internal_mutable_iter_range() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.iter_range_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::expr::v1beta1::Expr>(GetArena()); - _impl_.iter_range_ = reinterpret_cast<::google::api::expr::v1beta1::Expr*>(p); + + if (iter_range_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1beta1::Expr>(GetArenaForAllocation()); + iter_range_ = p; } - return _impl_.iter_range_; + return iter_range_; } -inline ::google::api::expr::v1beta1::Expr* Expr_Comprehension::mutable_iter_range() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1beta1::Expr* Expr_Comprehension::mutable_iter_range() { ::google::api::expr::v1beta1::Expr* _msg = _internal_mutable_iter_range(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Expr.Comprehension.iter_range) return _msg; } -inline void Expr_Comprehension::set_allocated_iter_range(::google::api::expr::v1beta1::Expr* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Expr_Comprehension::set_allocated_iter_range(::google::api::expr::v1beta1::Expr* iter_range) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::api::expr::v1beta1::Expr*>(_impl_.iter_range_); + delete iter_range_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::api::expr::v1beta1::Expr*>(value)->GetArena(); + if (iter_range) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(iter_range); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + iter_range = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, iter_range, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.iter_range_ = reinterpret_cast<::google::api::expr::v1beta1::Expr*>(value); + iter_range_ = iter_range; // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Expr.Comprehension.iter_range) } // string accu_var = 3 [json_name = "accuVar"]; inline void Expr_Comprehension::clear_accu_var() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.accu_var_.ClearToEmpty(); + accu_var_.ClearToEmpty(); } -inline const std::string& Expr_Comprehension::accu_var() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Expr_Comprehension::accu_var() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.Comprehension.accu_var) return _internal_accu_var(); } -template -inline PROTOBUF_ALWAYS_INLINE void Expr_Comprehension::set_accu_var(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.accu_var_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Expr_Comprehension::set_accu_var(ArgT0&& arg0, ArgT... args) { + + accu_var_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Expr.Comprehension.accu_var) } -inline std::string* Expr_Comprehension::mutable_accu_var() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Expr_Comprehension::mutable_accu_var() { std::string* _s = _internal_mutable_accu_var(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Expr.Comprehension.accu_var) return _s; } inline const std::string& Expr_Comprehension::_internal_accu_var() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.accu_var_.Get(); + return accu_var_.Get(); } inline void Expr_Comprehension::_internal_set_accu_var(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.accu_var_.Set(value, GetArena()); + + accu_var_.Set(value, GetArenaForAllocation()); } inline std::string* Expr_Comprehension::_internal_mutable_accu_var() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.accu_var_.Mutable( GetArena()); + + return accu_var_.Mutable(GetArenaForAllocation()); } inline std::string* Expr_Comprehension::release_accu_var() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Expr.Comprehension.accu_var) - return _impl_.accu_var_.Release(); -} -inline void Expr_Comprehension::set_allocated_accu_var(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.accu_var_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.accu_var_.IsDefault()) { - _impl_.accu_var_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return accu_var_.Release(); +} +inline void Expr_Comprehension::set_allocated_accu_var(std::string* accu_var) { + if (accu_var != nullptr) { + + } else { + + } + accu_var_.SetAllocated(accu_var, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (accu_var_.IsDefault()) { + accu_var_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Expr.Comprehension.accu_var) } // .google.api.expr.v1beta1.Expr accu_init = 4 [json_name = "accuInit"]; +inline bool Expr_Comprehension::_internal_has_accu_init() const { + return this != internal_default_instance() && accu_init_ != nullptr; +} inline bool Expr_Comprehension::has_accu_init() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.accu_init_ != nullptr); - return value; + return _internal_has_accu_init(); } inline void Expr_Comprehension::clear_accu_init() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.accu_init_ != nullptr) _impl_.accu_init_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && accu_init_ != nullptr) { + delete accu_init_; + } + accu_init_ = nullptr; } inline const ::google::api::expr::v1beta1::Expr& Expr_Comprehension::_internal_accu_init() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::expr::v1beta1::Expr* p = _impl_.accu_init_; - return p != nullptr ? *p : reinterpret_cast(::google::api::expr::v1beta1::_Expr_default_instance_); + const ::google::api::expr::v1beta1::Expr* p = accu_init_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1beta1::_Expr_default_instance_); } -inline const ::google::api::expr::v1beta1::Expr& Expr_Comprehension::accu_init() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1beta1::Expr& Expr_Comprehension::accu_init() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.Comprehension.accu_init) return _internal_accu_init(); } -inline void Expr_Comprehension::unsafe_arena_set_allocated_accu_init(::google::api::expr::v1beta1::Expr* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.accu_init_); +inline void Expr_Comprehension::unsafe_arena_set_allocated_accu_init( + ::google::api::expr::v1beta1::Expr* accu_init) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(accu_init_); } - _impl_.accu_init_ = reinterpret_cast<::google::api::expr::v1beta1::Expr*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + accu_init_ = accu_init; + if (accu_init) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.Expr.Comprehension.accu_init) } inline ::google::api::expr::v1beta1::Expr* Expr_Comprehension::release_accu_init() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::api::expr::v1beta1::Expr* released = _impl_.accu_init_; - _impl_.accu_init_ = nullptr; + + ::google::api::expr::v1beta1::Expr* temp = accu_init_; + accu_init_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::expr::v1beta1::Expr* Expr_Comprehension::unsafe_arena_release_accu_init() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Expr.Comprehension.accu_init) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::api::expr::v1beta1::Expr* temp = _impl_.accu_init_; - _impl_.accu_init_ = nullptr; + + ::google::api::expr::v1beta1::Expr* temp = accu_init_; + accu_init_ = nullptr; return temp; } inline ::google::api::expr::v1beta1::Expr* Expr_Comprehension::_internal_mutable_accu_init() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.accu_init_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::expr::v1beta1::Expr>(GetArena()); - _impl_.accu_init_ = reinterpret_cast<::google::api::expr::v1beta1::Expr*>(p); + + if (accu_init_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1beta1::Expr>(GetArenaForAllocation()); + accu_init_ = p; } - return _impl_.accu_init_; + return accu_init_; } -inline ::google::api::expr::v1beta1::Expr* Expr_Comprehension::mutable_accu_init() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1beta1::Expr* Expr_Comprehension::mutable_accu_init() { ::google::api::expr::v1beta1::Expr* _msg = _internal_mutable_accu_init(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Expr.Comprehension.accu_init) return _msg; } -inline void Expr_Comprehension::set_allocated_accu_init(::google::api::expr::v1beta1::Expr* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Expr_Comprehension::set_allocated_accu_init(::google::api::expr::v1beta1::Expr* accu_init) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::api::expr::v1beta1::Expr*>(_impl_.accu_init_); + delete accu_init_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::api::expr::v1beta1::Expr*>(value)->GetArena(); + if (accu_init) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(accu_init); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + accu_init = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, accu_init, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.accu_init_ = reinterpret_cast<::google::api::expr::v1beta1::Expr*>(value); + accu_init_ = accu_init; // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Expr.Comprehension.accu_init) } // .google.api.expr.v1beta1.Expr loop_condition = 5 [json_name = "loopCondition"]; +inline bool Expr_Comprehension::_internal_has_loop_condition() const { + return this != internal_default_instance() && loop_condition_ != nullptr; +} inline bool Expr_Comprehension::has_loop_condition() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || _impl_.loop_condition_ != nullptr); - return value; + return _internal_has_loop_condition(); } inline void Expr_Comprehension::clear_loop_condition() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.loop_condition_ != nullptr) _impl_.loop_condition_->Clear(); - _impl_._has_bits_[0] &= ~0x00000004u; + if (GetArenaForAllocation() == nullptr && loop_condition_ != nullptr) { + delete loop_condition_; + } + loop_condition_ = nullptr; } inline const ::google::api::expr::v1beta1::Expr& Expr_Comprehension::_internal_loop_condition() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::expr::v1beta1::Expr* p = _impl_.loop_condition_; - return p != nullptr ? *p : reinterpret_cast(::google::api::expr::v1beta1::_Expr_default_instance_); + const ::google::api::expr::v1beta1::Expr* p = loop_condition_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1beta1::_Expr_default_instance_); } -inline const ::google::api::expr::v1beta1::Expr& Expr_Comprehension::loop_condition() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1beta1::Expr& Expr_Comprehension::loop_condition() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.Comprehension.loop_condition) return _internal_loop_condition(); } -inline void Expr_Comprehension::unsafe_arena_set_allocated_loop_condition(::google::api::expr::v1beta1::Expr* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.loop_condition_); +inline void Expr_Comprehension::unsafe_arena_set_allocated_loop_condition( + ::google::api::expr::v1beta1::Expr* loop_condition) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(loop_condition_); } - _impl_.loop_condition_ = reinterpret_cast<::google::api::expr::v1beta1::Expr*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000004u; + loop_condition_ = loop_condition; + if (loop_condition) { + } else { - _impl_._has_bits_[0] &= ~0x00000004u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.Expr.Comprehension.loop_condition) } inline ::google::api::expr::v1beta1::Expr* Expr_Comprehension::release_loop_condition() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000004u; - ::google::api::expr::v1beta1::Expr* released = _impl_.loop_condition_; - _impl_.loop_condition_ = nullptr; + + ::google::api::expr::v1beta1::Expr* temp = loop_condition_; + loop_condition_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::expr::v1beta1::Expr* Expr_Comprehension::unsafe_arena_release_loop_condition() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Expr.Comprehension.loop_condition) - - _impl_._has_bits_[0] &= ~0x00000004u; - ::google::api::expr::v1beta1::Expr* temp = _impl_.loop_condition_; - _impl_.loop_condition_ = nullptr; + + ::google::api::expr::v1beta1::Expr* temp = loop_condition_; + loop_condition_ = nullptr; return temp; } inline ::google::api::expr::v1beta1::Expr* Expr_Comprehension::_internal_mutable_loop_condition() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - if (_impl_.loop_condition_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::expr::v1beta1::Expr>(GetArena()); - _impl_.loop_condition_ = reinterpret_cast<::google::api::expr::v1beta1::Expr*>(p); + + if (loop_condition_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1beta1::Expr>(GetArenaForAllocation()); + loop_condition_ = p; } - return _impl_.loop_condition_; + return loop_condition_; } -inline ::google::api::expr::v1beta1::Expr* Expr_Comprehension::mutable_loop_condition() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1beta1::Expr* Expr_Comprehension::mutable_loop_condition() { ::google::api::expr::v1beta1::Expr* _msg = _internal_mutable_loop_condition(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Expr.Comprehension.loop_condition) return _msg; } -inline void Expr_Comprehension::set_allocated_loop_condition(::google::api::expr::v1beta1::Expr* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Expr_Comprehension::set_allocated_loop_condition(::google::api::expr::v1beta1::Expr* loop_condition) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::api::expr::v1beta1::Expr*>(_impl_.loop_condition_); + delete loop_condition_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::api::expr::v1beta1::Expr*>(value)->GetArena(); + if (loop_condition) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(loop_condition); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + loop_condition = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, loop_condition, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000004u; + } else { - _impl_._has_bits_[0] &= ~0x00000004u; + } - - _impl_.loop_condition_ = reinterpret_cast<::google::api::expr::v1beta1::Expr*>(value); + loop_condition_ = loop_condition; // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Expr.Comprehension.loop_condition) } // .google.api.expr.v1beta1.Expr loop_step = 6 [json_name = "loopStep"]; +inline bool Expr_Comprehension::_internal_has_loop_step() const { + return this != internal_default_instance() && loop_step_ != nullptr; +} inline bool Expr_Comprehension::has_loop_step() const { - bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; - PROTOBUF_ASSUME(!value || _impl_.loop_step_ != nullptr); - return value; + return _internal_has_loop_step(); } inline void Expr_Comprehension::clear_loop_step() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.loop_step_ != nullptr) _impl_.loop_step_->Clear(); - _impl_._has_bits_[0] &= ~0x00000008u; + if (GetArenaForAllocation() == nullptr && loop_step_ != nullptr) { + delete loop_step_; + } + loop_step_ = nullptr; } inline const ::google::api::expr::v1beta1::Expr& Expr_Comprehension::_internal_loop_step() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::expr::v1beta1::Expr* p = _impl_.loop_step_; - return p != nullptr ? *p : reinterpret_cast(::google::api::expr::v1beta1::_Expr_default_instance_); + const ::google::api::expr::v1beta1::Expr* p = loop_step_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1beta1::_Expr_default_instance_); } -inline const ::google::api::expr::v1beta1::Expr& Expr_Comprehension::loop_step() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1beta1::Expr& Expr_Comprehension::loop_step() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.Comprehension.loop_step) return _internal_loop_step(); } -inline void Expr_Comprehension::unsafe_arena_set_allocated_loop_step(::google::api::expr::v1beta1::Expr* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.loop_step_); +inline void Expr_Comprehension::unsafe_arena_set_allocated_loop_step( + ::google::api::expr::v1beta1::Expr* loop_step) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(loop_step_); } - _impl_.loop_step_ = reinterpret_cast<::google::api::expr::v1beta1::Expr*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000008u; + loop_step_ = loop_step; + if (loop_step) { + } else { - _impl_._has_bits_[0] &= ~0x00000008u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.Expr.Comprehension.loop_step) } inline ::google::api::expr::v1beta1::Expr* Expr_Comprehension::release_loop_step() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000008u; - ::google::api::expr::v1beta1::Expr* released = _impl_.loop_step_; - _impl_.loop_step_ = nullptr; + + ::google::api::expr::v1beta1::Expr* temp = loop_step_; + loop_step_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::expr::v1beta1::Expr* Expr_Comprehension::unsafe_arena_release_loop_step() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Expr.Comprehension.loop_step) - - _impl_._has_bits_[0] &= ~0x00000008u; - ::google::api::expr::v1beta1::Expr* temp = _impl_.loop_step_; - _impl_.loop_step_ = nullptr; + + ::google::api::expr::v1beta1::Expr* temp = loop_step_; + loop_step_ = nullptr; return temp; } inline ::google::api::expr::v1beta1::Expr* Expr_Comprehension::_internal_mutable_loop_step() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000008u; - if (_impl_.loop_step_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::expr::v1beta1::Expr>(GetArena()); - _impl_.loop_step_ = reinterpret_cast<::google::api::expr::v1beta1::Expr*>(p); + + if (loop_step_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1beta1::Expr>(GetArenaForAllocation()); + loop_step_ = p; } - return _impl_.loop_step_; + return loop_step_; } -inline ::google::api::expr::v1beta1::Expr* Expr_Comprehension::mutable_loop_step() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1beta1::Expr* Expr_Comprehension::mutable_loop_step() { ::google::api::expr::v1beta1::Expr* _msg = _internal_mutable_loop_step(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Expr.Comprehension.loop_step) return _msg; } -inline void Expr_Comprehension::set_allocated_loop_step(::google::api::expr::v1beta1::Expr* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Expr_Comprehension::set_allocated_loop_step(::google::api::expr::v1beta1::Expr* loop_step) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::api::expr::v1beta1::Expr*>(_impl_.loop_step_); + delete loop_step_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::api::expr::v1beta1::Expr*>(value)->GetArena(); + if (loop_step) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(loop_step); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + loop_step = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, loop_step, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000008u; + } else { - _impl_._has_bits_[0] &= ~0x00000008u; + } - - _impl_.loop_step_ = reinterpret_cast<::google::api::expr::v1beta1::Expr*>(value); + loop_step_ = loop_step; // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Expr.Comprehension.loop_step) } // .google.api.expr.v1beta1.Expr result = 7 [json_name = "result"]; +inline bool Expr_Comprehension::_internal_has_result() const { + return this != internal_default_instance() && result_ != nullptr; +} inline bool Expr_Comprehension::has_result() const { - bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; - PROTOBUF_ASSUME(!value || _impl_.result_ != nullptr); - return value; + return _internal_has_result(); } inline void Expr_Comprehension::clear_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.result_ != nullptr) _impl_.result_->Clear(); - _impl_._has_bits_[0] &= ~0x00000010u; + if (GetArenaForAllocation() == nullptr && result_ != nullptr) { + delete result_; + } + result_ = nullptr; } inline const ::google::api::expr::v1beta1::Expr& Expr_Comprehension::_internal_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::expr::v1beta1::Expr* p = _impl_.result_; - return p != nullptr ? *p : reinterpret_cast(::google::api::expr::v1beta1::_Expr_default_instance_); + const ::google::api::expr::v1beta1::Expr* p = result_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1beta1::_Expr_default_instance_); } -inline const ::google::api::expr::v1beta1::Expr& Expr_Comprehension::result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1beta1::Expr& Expr_Comprehension::result() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.Comprehension.result) return _internal_result(); } -inline void Expr_Comprehension::unsafe_arena_set_allocated_result(::google::api::expr::v1beta1::Expr* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.result_); +inline void Expr_Comprehension::unsafe_arena_set_allocated_result( + ::google::api::expr::v1beta1::Expr* result) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(result_); } - _impl_.result_ = reinterpret_cast<::google::api::expr::v1beta1::Expr*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000010u; + result_ = result; + if (result) { + } else { - _impl_._has_bits_[0] &= ~0x00000010u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.Expr.Comprehension.result) } inline ::google::api::expr::v1beta1::Expr* Expr_Comprehension::release_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000010u; - ::google::api::expr::v1beta1::Expr* released = _impl_.result_; - _impl_.result_ = nullptr; + + ::google::api::expr::v1beta1::Expr* temp = result_; + result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::expr::v1beta1::Expr* Expr_Comprehension::unsafe_arena_release_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Expr.Comprehension.result) - - _impl_._has_bits_[0] &= ~0x00000010u; - ::google::api::expr::v1beta1::Expr* temp = _impl_.result_; - _impl_.result_ = nullptr; + + ::google::api::expr::v1beta1::Expr* temp = result_; + result_ = nullptr; return temp; } inline ::google::api::expr::v1beta1::Expr* Expr_Comprehension::_internal_mutable_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000010u; - if (_impl_.result_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::expr::v1beta1::Expr>(GetArena()); - _impl_.result_ = reinterpret_cast<::google::api::expr::v1beta1::Expr*>(p); + + if (result_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1beta1::Expr>(GetArenaForAllocation()); + result_ = p; } - return _impl_.result_; + return result_; } -inline ::google::api::expr::v1beta1::Expr* Expr_Comprehension::mutable_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1beta1::Expr* Expr_Comprehension::mutable_result() { ::google::api::expr::v1beta1::Expr* _msg = _internal_mutable_result(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Expr.Comprehension.result) return _msg; } -inline void Expr_Comprehension::set_allocated_result(::google::api::expr::v1beta1::Expr* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Expr_Comprehension::set_allocated_result(::google::api::expr::v1beta1::Expr* result) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::api::expr::v1beta1::Expr*>(_impl_.result_); + delete result_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::api::expr::v1beta1::Expr*>(value)->GetArena(); + if (result) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(result); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, result, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000010u; + } else { - _impl_._has_bits_[0] &= ~0x00000010u; + } - - _impl_.result_ = reinterpret_cast<::google::api::expr::v1beta1::Expr*>(value); + result_ = result; // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Expr.Comprehension.result) } @@ -4250,554 +3817,537 @@ inline void Expr_Comprehension::set_allocated_result(::google::api::expr::v1beta // int32 id = 2 [json_name = "id"]; inline void Expr::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_ = 0; + id_ = 0; } -inline ::int32_t Expr::id() const { +inline int32_t Expr::_internal_id() const { + return id_; +} +inline int32_t Expr::id() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.id) return _internal_id(); } -inline void Expr::set_id(::int32_t value) { +inline void Expr::_internal_set_id(int32_t value) { + + id_ = value; +} +inline void Expr::set_id(int32_t value) { _internal_set_id(value); // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Expr.id) } -inline ::int32_t Expr::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_; -} -inline void Expr::_internal_set_id(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_ = value; -} // .google.api.expr.v1beta1.Literal literal_expr = 3 [json_name = "literalExpr"]; -inline bool Expr::has_literal_expr() const { - return expr_kind_case() == kLiteralExpr; -} inline bool Expr::_internal_has_literal_expr() const { return expr_kind_case() == kLiteralExpr; } +inline bool Expr::has_literal_expr() const { + return _internal_has_literal_expr(); +} inline void Expr::set_has_literal_expr() { - _impl_._oneof_case_[0] = kLiteralExpr; + _oneof_case_[0] = kLiteralExpr; } inline void Expr::clear_literal_expr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (expr_kind_case() == kLiteralExpr) { - if (GetArena() == nullptr) { - delete _impl_.expr_kind_.literal_expr_; + if (_internal_has_literal_expr()) { + if (GetArenaForAllocation() == nullptr) { + delete expr_kind_.literal_expr_; } clear_has_expr_kind(); } } inline ::google::api::expr::v1beta1::Literal* Expr::release_literal_expr() { // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Expr.literal_expr) - if (expr_kind_case() == kLiteralExpr) { + if (_internal_has_literal_expr()) { clear_has_expr_kind(); - auto* temp = _impl_.expr_kind_.literal_expr_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::google::api::expr::v1beta1::Literal* temp = expr_kind_.literal_expr_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.expr_kind_.literal_expr_ = nullptr; + expr_kind_.literal_expr_ = nullptr; return temp; } else { return nullptr; } } inline const ::google::api::expr::v1beta1::Literal& Expr::_internal_literal_expr() const { - return expr_kind_case() == kLiteralExpr ? *_impl_.expr_kind_.literal_expr_ : reinterpret_cast<::google::api::expr::v1beta1::Literal&>(::google::api::expr::v1beta1::_Literal_default_instance_); + return _internal_has_literal_expr() + ? *expr_kind_.literal_expr_ + : reinterpret_cast< ::google::api::expr::v1beta1::Literal&>(::google::api::expr::v1beta1::_Literal_default_instance_); } -inline const ::google::api::expr::v1beta1::Literal& Expr::literal_expr() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1beta1::Literal& Expr::literal_expr() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.literal_expr) return _internal_literal_expr(); } inline ::google::api::expr::v1beta1::Literal* Expr::unsafe_arena_release_literal_expr() { // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1beta1.Expr.literal_expr) - if (expr_kind_case() == kLiteralExpr) { + if (_internal_has_literal_expr()) { clear_has_expr_kind(); - auto* temp = _impl_.expr_kind_.literal_expr_; - _impl_.expr_kind_.literal_expr_ = nullptr; + ::google::api::expr::v1beta1::Literal* temp = expr_kind_.literal_expr_; + expr_kind_.literal_expr_ = nullptr; return temp; } else { return nullptr; } } -inline void Expr::unsafe_arena_set_allocated_literal_expr(::google::api::expr::v1beta1::Literal* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void Expr::unsafe_arena_set_allocated_literal_expr(::google::api::expr::v1beta1::Literal* literal_expr) { clear_expr_kind(); - if (value) { + if (literal_expr) { set_has_literal_expr(); - _impl_.expr_kind_.literal_expr_ = value; + expr_kind_.literal_expr_ = literal_expr; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.Expr.literal_expr) } inline ::google::api::expr::v1beta1::Literal* Expr::_internal_mutable_literal_expr() { - if (expr_kind_case() != kLiteralExpr) { + if (!_internal_has_literal_expr()) { clear_expr_kind(); set_has_literal_expr(); - _impl_.expr_kind_.literal_expr_ = CreateMaybeMessage<::google::api::expr::v1beta1::Literal>(GetArena()); + expr_kind_.literal_expr_ = CreateMaybeMessage< ::google::api::expr::v1beta1::Literal >(GetArenaForAllocation()); } - return _impl_.expr_kind_.literal_expr_; + return expr_kind_.literal_expr_; } -inline ::google::api::expr::v1beta1::Literal* Expr::mutable_literal_expr() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1beta1::Literal* Expr::mutable_literal_expr() { ::google::api::expr::v1beta1::Literal* _msg = _internal_mutable_literal_expr(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Expr.literal_expr) return _msg; } // .google.api.expr.v1beta1.Expr.Ident ident_expr = 4 [json_name = "identExpr"]; -inline bool Expr::has_ident_expr() const { - return expr_kind_case() == kIdentExpr; -} inline bool Expr::_internal_has_ident_expr() const { return expr_kind_case() == kIdentExpr; } +inline bool Expr::has_ident_expr() const { + return _internal_has_ident_expr(); +} inline void Expr::set_has_ident_expr() { - _impl_._oneof_case_[0] = kIdentExpr; + _oneof_case_[0] = kIdentExpr; } inline void Expr::clear_ident_expr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (expr_kind_case() == kIdentExpr) { - if (GetArena() == nullptr) { - delete _impl_.expr_kind_.ident_expr_; + if (_internal_has_ident_expr()) { + if (GetArenaForAllocation() == nullptr) { + delete expr_kind_.ident_expr_; } clear_has_expr_kind(); } } inline ::google::api::expr::v1beta1::Expr_Ident* Expr::release_ident_expr() { // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Expr.ident_expr) - if (expr_kind_case() == kIdentExpr) { + if (_internal_has_ident_expr()) { clear_has_expr_kind(); - auto* temp = _impl_.expr_kind_.ident_expr_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::google::api::expr::v1beta1::Expr_Ident* temp = expr_kind_.ident_expr_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.expr_kind_.ident_expr_ = nullptr; + expr_kind_.ident_expr_ = nullptr; return temp; } else { return nullptr; } } inline const ::google::api::expr::v1beta1::Expr_Ident& Expr::_internal_ident_expr() const { - return expr_kind_case() == kIdentExpr ? *_impl_.expr_kind_.ident_expr_ : reinterpret_cast<::google::api::expr::v1beta1::Expr_Ident&>(::google::api::expr::v1beta1::_Expr_Ident_default_instance_); + return _internal_has_ident_expr() + ? *expr_kind_.ident_expr_ + : reinterpret_cast< ::google::api::expr::v1beta1::Expr_Ident&>(::google::api::expr::v1beta1::_Expr_Ident_default_instance_); } -inline const ::google::api::expr::v1beta1::Expr_Ident& Expr::ident_expr() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1beta1::Expr_Ident& Expr::ident_expr() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.ident_expr) return _internal_ident_expr(); } inline ::google::api::expr::v1beta1::Expr_Ident* Expr::unsafe_arena_release_ident_expr() { // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1beta1.Expr.ident_expr) - if (expr_kind_case() == kIdentExpr) { + if (_internal_has_ident_expr()) { clear_has_expr_kind(); - auto* temp = _impl_.expr_kind_.ident_expr_; - _impl_.expr_kind_.ident_expr_ = nullptr; + ::google::api::expr::v1beta1::Expr_Ident* temp = expr_kind_.ident_expr_; + expr_kind_.ident_expr_ = nullptr; return temp; } else { return nullptr; } } -inline void Expr::unsafe_arena_set_allocated_ident_expr(::google::api::expr::v1beta1::Expr_Ident* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void Expr::unsafe_arena_set_allocated_ident_expr(::google::api::expr::v1beta1::Expr_Ident* ident_expr) { clear_expr_kind(); - if (value) { + if (ident_expr) { set_has_ident_expr(); - _impl_.expr_kind_.ident_expr_ = value; + expr_kind_.ident_expr_ = ident_expr; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.Expr.ident_expr) } inline ::google::api::expr::v1beta1::Expr_Ident* Expr::_internal_mutable_ident_expr() { - if (expr_kind_case() != kIdentExpr) { + if (!_internal_has_ident_expr()) { clear_expr_kind(); set_has_ident_expr(); - _impl_.expr_kind_.ident_expr_ = CreateMaybeMessage<::google::api::expr::v1beta1::Expr_Ident>(GetArena()); + expr_kind_.ident_expr_ = CreateMaybeMessage< ::google::api::expr::v1beta1::Expr_Ident >(GetArenaForAllocation()); } - return _impl_.expr_kind_.ident_expr_; + return expr_kind_.ident_expr_; } -inline ::google::api::expr::v1beta1::Expr_Ident* Expr::mutable_ident_expr() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1beta1::Expr_Ident* Expr::mutable_ident_expr() { ::google::api::expr::v1beta1::Expr_Ident* _msg = _internal_mutable_ident_expr(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Expr.ident_expr) return _msg; } // .google.api.expr.v1beta1.Expr.Select select_expr = 5 [json_name = "selectExpr"]; -inline bool Expr::has_select_expr() const { - return expr_kind_case() == kSelectExpr; -} inline bool Expr::_internal_has_select_expr() const { return expr_kind_case() == kSelectExpr; } +inline bool Expr::has_select_expr() const { + return _internal_has_select_expr(); +} inline void Expr::set_has_select_expr() { - _impl_._oneof_case_[0] = kSelectExpr; + _oneof_case_[0] = kSelectExpr; } inline void Expr::clear_select_expr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (expr_kind_case() == kSelectExpr) { - if (GetArena() == nullptr) { - delete _impl_.expr_kind_.select_expr_; + if (_internal_has_select_expr()) { + if (GetArenaForAllocation() == nullptr) { + delete expr_kind_.select_expr_; } clear_has_expr_kind(); } } inline ::google::api::expr::v1beta1::Expr_Select* Expr::release_select_expr() { // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Expr.select_expr) - if (expr_kind_case() == kSelectExpr) { + if (_internal_has_select_expr()) { clear_has_expr_kind(); - auto* temp = _impl_.expr_kind_.select_expr_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::google::api::expr::v1beta1::Expr_Select* temp = expr_kind_.select_expr_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.expr_kind_.select_expr_ = nullptr; + expr_kind_.select_expr_ = nullptr; return temp; } else { return nullptr; } } inline const ::google::api::expr::v1beta1::Expr_Select& Expr::_internal_select_expr() const { - return expr_kind_case() == kSelectExpr ? *_impl_.expr_kind_.select_expr_ : reinterpret_cast<::google::api::expr::v1beta1::Expr_Select&>(::google::api::expr::v1beta1::_Expr_Select_default_instance_); + return _internal_has_select_expr() + ? *expr_kind_.select_expr_ + : reinterpret_cast< ::google::api::expr::v1beta1::Expr_Select&>(::google::api::expr::v1beta1::_Expr_Select_default_instance_); } -inline const ::google::api::expr::v1beta1::Expr_Select& Expr::select_expr() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1beta1::Expr_Select& Expr::select_expr() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.select_expr) return _internal_select_expr(); } inline ::google::api::expr::v1beta1::Expr_Select* Expr::unsafe_arena_release_select_expr() { // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1beta1.Expr.select_expr) - if (expr_kind_case() == kSelectExpr) { + if (_internal_has_select_expr()) { clear_has_expr_kind(); - auto* temp = _impl_.expr_kind_.select_expr_; - _impl_.expr_kind_.select_expr_ = nullptr; + ::google::api::expr::v1beta1::Expr_Select* temp = expr_kind_.select_expr_; + expr_kind_.select_expr_ = nullptr; return temp; } else { return nullptr; } } -inline void Expr::unsafe_arena_set_allocated_select_expr(::google::api::expr::v1beta1::Expr_Select* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void Expr::unsafe_arena_set_allocated_select_expr(::google::api::expr::v1beta1::Expr_Select* select_expr) { clear_expr_kind(); - if (value) { + if (select_expr) { set_has_select_expr(); - _impl_.expr_kind_.select_expr_ = value; + expr_kind_.select_expr_ = select_expr; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.Expr.select_expr) } inline ::google::api::expr::v1beta1::Expr_Select* Expr::_internal_mutable_select_expr() { - if (expr_kind_case() != kSelectExpr) { + if (!_internal_has_select_expr()) { clear_expr_kind(); set_has_select_expr(); - _impl_.expr_kind_.select_expr_ = CreateMaybeMessage<::google::api::expr::v1beta1::Expr_Select>(GetArena()); + expr_kind_.select_expr_ = CreateMaybeMessage< ::google::api::expr::v1beta1::Expr_Select >(GetArenaForAllocation()); } - return _impl_.expr_kind_.select_expr_; + return expr_kind_.select_expr_; } -inline ::google::api::expr::v1beta1::Expr_Select* Expr::mutable_select_expr() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1beta1::Expr_Select* Expr::mutable_select_expr() { ::google::api::expr::v1beta1::Expr_Select* _msg = _internal_mutable_select_expr(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Expr.select_expr) return _msg; } // .google.api.expr.v1beta1.Expr.Call call_expr = 6 [json_name = "callExpr"]; -inline bool Expr::has_call_expr() const { - return expr_kind_case() == kCallExpr; -} inline bool Expr::_internal_has_call_expr() const { return expr_kind_case() == kCallExpr; } +inline bool Expr::has_call_expr() const { + return _internal_has_call_expr(); +} inline void Expr::set_has_call_expr() { - _impl_._oneof_case_[0] = kCallExpr; + _oneof_case_[0] = kCallExpr; } inline void Expr::clear_call_expr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (expr_kind_case() == kCallExpr) { - if (GetArena() == nullptr) { - delete _impl_.expr_kind_.call_expr_; + if (_internal_has_call_expr()) { + if (GetArenaForAllocation() == nullptr) { + delete expr_kind_.call_expr_; } clear_has_expr_kind(); } } inline ::google::api::expr::v1beta1::Expr_Call* Expr::release_call_expr() { // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Expr.call_expr) - if (expr_kind_case() == kCallExpr) { + if (_internal_has_call_expr()) { clear_has_expr_kind(); - auto* temp = _impl_.expr_kind_.call_expr_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::google::api::expr::v1beta1::Expr_Call* temp = expr_kind_.call_expr_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.expr_kind_.call_expr_ = nullptr; + expr_kind_.call_expr_ = nullptr; return temp; } else { return nullptr; } } inline const ::google::api::expr::v1beta1::Expr_Call& Expr::_internal_call_expr() const { - return expr_kind_case() == kCallExpr ? *_impl_.expr_kind_.call_expr_ : reinterpret_cast<::google::api::expr::v1beta1::Expr_Call&>(::google::api::expr::v1beta1::_Expr_Call_default_instance_); + return _internal_has_call_expr() + ? *expr_kind_.call_expr_ + : reinterpret_cast< ::google::api::expr::v1beta1::Expr_Call&>(::google::api::expr::v1beta1::_Expr_Call_default_instance_); } -inline const ::google::api::expr::v1beta1::Expr_Call& Expr::call_expr() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1beta1::Expr_Call& Expr::call_expr() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.call_expr) return _internal_call_expr(); } inline ::google::api::expr::v1beta1::Expr_Call* Expr::unsafe_arena_release_call_expr() { // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1beta1.Expr.call_expr) - if (expr_kind_case() == kCallExpr) { + if (_internal_has_call_expr()) { clear_has_expr_kind(); - auto* temp = _impl_.expr_kind_.call_expr_; - _impl_.expr_kind_.call_expr_ = nullptr; + ::google::api::expr::v1beta1::Expr_Call* temp = expr_kind_.call_expr_; + expr_kind_.call_expr_ = nullptr; return temp; } else { return nullptr; } } -inline void Expr::unsafe_arena_set_allocated_call_expr(::google::api::expr::v1beta1::Expr_Call* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void Expr::unsafe_arena_set_allocated_call_expr(::google::api::expr::v1beta1::Expr_Call* call_expr) { clear_expr_kind(); - if (value) { + if (call_expr) { set_has_call_expr(); - _impl_.expr_kind_.call_expr_ = value; + expr_kind_.call_expr_ = call_expr; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.Expr.call_expr) } inline ::google::api::expr::v1beta1::Expr_Call* Expr::_internal_mutable_call_expr() { - if (expr_kind_case() != kCallExpr) { + if (!_internal_has_call_expr()) { clear_expr_kind(); set_has_call_expr(); - _impl_.expr_kind_.call_expr_ = CreateMaybeMessage<::google::api::expr::v1beta1::Expr_Call>(GetArena()); + expr_kind_.call_expr_ = CreateMaybeMessage< ::google::api::expr::v1beta1::Expr_Call >(GetArenaForAllocation()); } - return _impl_.expr_kind_.call_expr_; + return expr_kind_.call_expr_; } -inline ::google::api::expr::v1beta1::Expr_Call* Expr::mutable_call_expr() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1beta1::Expr_Call* Expr::mutable_call_expr() { ::google::api::expr::v1beta1::Expr_Call* _msg = _internal_mutable_call_expr(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Expr.call_expr) return _msg; } // .google.api.expr.v1beta1.Expr.CreateList list_expr = 7 [json_name = "listExpr"]; -inline bool Expr::has_list_expr() const { - return expr_kind_case() == kListExpr; -} inline bool Expr::_internal_has_list_expr() const { return expr_kind_case() == kListExpr; } +inline bool Expr::has_list_expr() const { + return _internal_has_list_expr(); +} inline void Expr::set_has_list_expr() { - _impl_._oneof_case_[0] = kListExpr; + _oneof_case_[0] = kListExpr; } inline void Expr::clear_list_expr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (expr_kind_case() == kListExpr) { - if (GetArena() == nullptr) { - delete _impl_.expr_kind_.list_expr_; + if (_internal_has_list_expr()) { + if (GetArenaForAllocation() == nullptr) { + delete expr_kind_.list_expr_; } clear_has_expr_kind(); } } inline ::google::api::expr::v1beta1::Expr_CreateList* Expr::release_list_expr() { // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Expr.list_expr) - if (expr_kind_case() == kListExpr) { + if (_internal_has_list_expr()) { clear_has_expr_kind(); - auto* temp = _impl_.expr_kind_.list_expr_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::google::api::expr::v1beta1::Expr_CreateList* temp = expr_kind_.list_expr_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.expr_kind_.list_expr_ = nullptr; + expr_kind_.list_expr_ = nullptr; return temp; } else { return nullptr; } } inline const ::google::api::expr::v1beta1::Expr_CreateList& Expr::_internal_list_expr() const { - return expr_kind_case() == kListExpr ? *_impl_.expr_kind_.list_expr_ : reinterpret_cast<::google::api::expr::v1beta1::Expr_CreateList&>(::google::api::expr::v1beta1::_Expr_CreateList_default_instance_); + return _internal_has_list_expr() + ? *expr_kind_.list_expr_ + : reinterpret_cast< ::google::api::expr::v1beta1::Expr_CreateList&>(::google::api::expr::v1beta1::_Expr_CreateList_default_instance_); } -inline const ::google::api::expr::v1beta1::Expr_CreateList& Expr::list_expr() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1beta1::Expr_CreateList& Expr::list_expr() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.list_expr) return _internal_list_expr(); } inline ::google::api::expr::v1beta1::Expr_CreateList* Expr::unsafe_arena_release_list_expr() { // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1beta1.Expr.list_expr) - if (expr_kind_case() == kListExpr) { + if (_internal_has_list_expr()) { clear_has_expr_kind(); - auto* temp = _impl_.expr_kind_.list_expr_; - _impl_.expr_kind_.list_expr_ = nullptr; + ::google::api::expr::v1beta1::Expr_CreateList* temp = expr_kind_.list_expr_; + expr_kind_.list_expr_ = nullptr; return temp; } else { return nullptr; } } -inline void Expr::unsafe_arena_set_allocated_list_expr(::google::api::expr::v1beta1::Expr_CreateList* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void Expr::unsafe_arena_set_allocated_list_expr(::google::api::expr::v1beta1::Expr_CreateList* list_expr) { clear_expr_kind(); - if (value) { + if (list_expr) { set_has_list_expr(); - _impl_.expr_kind_.list_expr_ = value; + expr_kind_.list_expr_ = list_expr; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.Expr.list_expr) } inline ::google::api::expr::v1beta1::Expr_CreateList* Expr::_internal_mutable_list_expr() { - if (expr_kind_case() != kListExpr) { + if (!_internal_has_list_expr()) { clear_expr_kind(); set_has_list_expr(); - _impl_.expr_kind_.list_expr_ = CreateMaybeMessage<::google::api::expr::v1beta1::Expr_CreateList>(GetArena()); + expr_kind_.list_expr_ = CreateMaybeMessage< ::google::api::expr::v1beta1::Expr_CreateList >(GetArenaForAllocation()); } - return _impl_.expr_kind_.list_expr_; + return expr_kind_.list_expr_; } -inline ::google::api::expr::v1beta1::Expr_CreateList* Expr::mutable_list_expr() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1beta1::Expr_CreateList* Expr::mutable_list_expr() { ::google::api::expr::v1beta1::Expr_CreateList* _msg = _internal_mutable_list_expr(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Expr.list_expr) return _msg; } // .google.api.expr.v1beta1.Expr.CreateStruct struct_expr = 8 [json_name = "structExpr"]; -inline bool Expr::has_struct_expr() const { - return expr_kind_case() == kStructExpr; -} inline bool Expr::_internal_has_struct_expr() const { return expr_kind_case() == kStructExpr; } +inline bool Expr::has_struct_expr() const { + return _internal_has_struct_expr(); +} inline void Expr::set_has_struct_expr() { - _impl_._oneof_case_[0] = kStructExpr; + _oneof_case_[0] = kStructExpr; } inline void Expr::clear_struct_expr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (expr_kind_case() == kStructExpr) { - if (GetArena() == nullptr) { - delete _impl_.expr_kind_.struct_expr_; + if (_internal_has_struct_expr()) { + if (GetArenaForAllocation() == nullptr) { + delete expr_kind_.struct_expr_; } clear_has_expr_kind(); } } inline ::google::api::expr::v1beta1::Expr_CreateStruct* Expr::release_struct_expr() { // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Expr.struct_expr) - if (expr_kind_case() == kStructExpr) { + if (_internal_has_struct_expr()) { clear_has_expr_kind(); - auto* temp = _impl_.expr_kind_.struct_expr_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::google::api::expr::v1beta1::Expr_CreateStruct* temp = expr_kind_.struct_expr_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.expr_kind_.struct_expr_ = nullptr; + expr_kind_.struct_expr_ = nullptr; return temp; } else { return nullptr; } } inline const ::google::api::expr::v1beta1::Expr_CreateStruct& Expr::_internal_struct_expr() const { - return expr_kind_case() == kStructExpr ? *_impl_.expr_kind_.struct_expr_ : reinterpret_cast<::google::api::expr::v1beta1::Expr_CreateStruct&>(::google::api::expr::v1beta1::_Expr_CreateStruct_default_instance_); + return _internal_has_struct_expr() + ? *expr_kind_.struct_expr_ + : reinterpret_cast< ::google::api::expr::v1beta1::Expr_CreateStruct&>(::google::api::expr::v1beta1::_Expr_CreateStruct_default_instance_); } -inline const ::google::api::expr::v1beta1::Expr_CreateStruct& Expr::struct_expr() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1beta1::Expr_CreateStruct& Expr::struct_expr() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.struct_expr) return _internal_struct_expr(); } inline ::google::api::expr::v1beta1::Expr_CreateStruct* Expr::unsafe_arena_release_struct_expr() { // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1beta1.Expr.struct_expr) - if (expr_kind_case() == kStructExpr) { + if (_internal_has_struct_expr()) { clear_has_expr_kind(); - auto* temp = _impl_.expr_kind_.struct_expr_; - _impl_.expr_kind_.struct_expr_ = nullptr; + ::google::api::expr::v1beta1::Expr_CreateStruct* temp = expr_kind_.struct_expr_; + expr_kind_.struct_expr_ = nullptr; return temp; } else { return nullptr; } } -inline void Expr::unsafe_arena_set_allocated_struct_expr(::google::api::expr::v1beta1::Expr_CreateStruct* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void Expr::unsafe_arena_set_allocated_struct_expr(::google::api::expr::v1beta1::Expr_CreateStruct* struct_expr) { clear_expr_kind(); - if (value) { + if (struct_expr) { set_has_struct_expr(); - _impl_.expr_kind_.struct_expr_ = value; + expr_kind_.struct_expr_ = struct_expr; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.Expr.struct_expr) } inline ::google::api::expr::v1beta1::Expr_CreateStruct* Expr::_internal_mutable_struct_expr() { - if (expr_kind_case() != kStructExpr) { + if (!_internal_has_struct_expr()) { clear_expr_kind(); set_has_struct_expr(); - _impl_.expr_kind_.struct_expr_ = CreateMaybeMessage<::google::api::expr::v1beta1::Expr_CreateStruct>(GetArena()); + expr_kind_.struct_expr_ = CreateMaybeMessage< ::google::api::expr::v1beta1::Expr_CreateStruct >(GetArenaForAllocation()); } - return _impl_.expr_kind_.struct_expr_; + return expr_kind_.struct_expr_; } -inline ::google::api::expr::v1beta1::Expr_CreateStruct* Expr::mutable_struct_expr() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1beta1::Expr_CreateStruct* Expr::mutable_struct_expr() { ::google::api::expr::v1beta1::Expr_CreateStruct* _msg = _internal_mutable_struct_expr(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Expr.struct_expr) return _msg; } // .google.api.expr.v1beta1.Expr.Comprehension comprehension_expr = 9 [json_name = "comprehensionExpr"]; -inline bool Expr::has_comprehension_expr() const { - return expr_kind_case() == kComprehensionExpr; -} inline bool Expr::_internal_has_comprehension_expr() const { return expr_kind_case() == kComprehensionExpr; } +inline bool Expr::has_comprehension_expr() const { + return _internal_has_comprehension_expr(); +} inline void Expr::set_has_comprehension_expr() { - _impl_._oneof_case_[0] = kComprehensionExpr; + _oneof_case_[0] = kComprehensionExpr; } inline void Expr::clear_comprehension_expr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (expr_kind_case() == kComprehensionExpr) { - if (GetArena() == nullptr) { - delete _impl_.expr_kind_.comprehension_expr_; + if (_internal_has_comprehension_expr()) { + if (GetArenaForAllocation() == nullptr) { + delete expr_kind_.comprehension_expr_; } clear_has_expr_kind(); } } inline ::google::api::expr::v1beta1::Expr_Comprehension* Expr::release_comprehension_expr() { // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Expr.comprehension_expr) - if (expr_kind_case() == kComprehensionExpr) { + if (_internal_has_comprehension_expr()) { clear_has_expr_kind(); - auto* temp = _impl_.expr_kind_.comprehension_expr_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::google::api::expr::v1beta1::Expr_Comprehension* temp = expr_kind_.comprehension_expr_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.expr_kind_.comprehension_expr_ = nullptr; + expr_kind_.comprehension_expr_ = nullptr; return temp; } else { return nullptr; } } inline const ::google::api::expr::v1beta1::Expr_Comprehension& Expr::_internal_comprehension_expr() const { - return expr_kind_case() == kComprehensionExpr ? *_impl_.expr_kind_.comprehension_expr_ : reinterpret_cast<::google::api::expr::v1beta1::Expr_Comprehension&>(::google::api::expr::v1beta1::_Expr_Comprehension_default_instance_); + return _internal_has_comprehension_expr() + ? *expr_kind_.comprehension_expr_ + : reinterpret_cast< ::google::api::expr::v1beta1::Expr_Comprehension&>(::google::api::expr::v1beta1::_Expr_Comprehension_default_instance_); } -inline const ::google::api::expr::v1beta1::Expr_Comprehension& Expr::comprehension_expr() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1beta1::Expr_Comprehension& Expr::comprehension_expr() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Expr.comprehension_expr) return _internal_comprehension_expr(); } inline ::google::api::expr::v1beta1::Expr_Comprehension* Expr::unsafe_arena_release_comprehension_expr() { // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1beta1.Expr.comprehension_expr) - if (expr_kind_case() == kComprehensionExpr) { + if (_internal_has_comprehension_expr()) { clear_has_expr_kind(); - auto* temp = _impl_.expr_kind_.comprehension_expr_; - _impl_.expr_kind_.comprehension_expr_ = nullptr; + ::google::api::expr::v1beta1::Expr_Comprehension* temp = expr_kind_.comprehension_expr_; + expr_kind_.comprehension_expr_ = nullptr; return temp; } else { return nullptr; } } -inline void Expr::unsafe_arena_set_allocated_comprehension_expr(::google::api::expr::v1beta1::Expr_Comprehension* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void Expr::unsafe_arena_set_allocated_comprehension_expr(::google::api::expr::v1beta1::Expr_Comprehension* comprehension_expr) { clear_expr_kind(); - if (value) { + if (comprehension_expr) { set_has_comprehension_expr(); - _impl_.expr_kind_.comprehension_expr_ = value; + expr_kind_.comprehension_expr_ = comprehension_expr; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.Expr.comprehension_expr) } inline ::google::api::expr::v1beta1::Expr_Comprehension* Expr::_internal_mutable_comprehension_expr() { - if (expr_kind_case() != kComprehensionExpr) { + if (!_internal_has_comprehension_expr()) { clear_expr_kind(); set_has_comprehension_expr(); - _impl_.expr_kind_.comprehension_expr_ = CreateMaybeMessage<::google::api::expr::v1beta1::Expr_Comprehension>(GetArena()); + expr_kind_.comprehension_expr_ = CreateMaybeMessage< ::google::api::expr::v1beta1::Expr_Comprehension >(GetArenaForAllocation()); } - return _impl_.expr_kind_.comprehension_expr_; + return expr_kind_.comprehension_expr_; } -inline ::google::api::expr::v1beta1::Expr_Comprehension* Expr::mutable_comprehension_expr() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1beta1::Expr_Comprehension* Expr::mutable_comprehension_expr() { ::google::api::expr::v1beta1::Expr_Comprehension* _msg = _internal_mutable_comprehension_expr(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Expr.comprehension_expr) return _msg; @@ -4807,361 +4357,355 @@ inline bool Expr::has_expr_kind() const { return expr_kind_case() != EXPR_KIND_NOT_SET; } inline void Expr::clear_has_expr_kind() { - _impl_._oneof_case_[0] = EXPR_KIND_NOT_SET; + _oneof_case_[0] = EXPR_KIND_NOT_SET; } inline Expr::ExprKindCase Expr::expr_kind_case() const { - return Expr::ExprKindCase(_impl_._oneof_case_[0]); + return Expr::ExprKindCase(_oneof_case_[0]); } // ------------------------------------------------------------------- // Literal // .google.protobuf.NullValue null_value = 1 [json_name = "nullValue"]; -inline bool Literal::has_null_value() const { +inline bool Literal::_internal_has_null_value() const { return constant_kind_case() == kNullValue; } +inline bool Literal::has_null_value() const { + return _internal_has_null_value(); +} inline void Literal::set_has_null_value() { - _impl_._oneof_case_[0] = kNullValue; + _oneof_case_[0] = kNullValue; } inline void Literal::clear_null_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (constant_kind_case() == kNullValue) { - _impl_.constant_kind_.null_value_ = 0; + if (_internal_has_null_value()) { + constant_kind_.null_value_ = 0; clear_has_constant_kind(); } } -inline ::google::protobuf::NullValue Literal::null_value() const { +inline ::PROTOBUF_NAMESPACE_ID::NullValue Literal::_internal_null_value() const { + if (_internal_has_null_value()) { + return static_cast< ::PROTOBUF_NAMESPACE_ID::NullValue >(constant_kind_.null_value_); + } + return static_cast< ::PROTOBUF_NAMESPACE_ID::NullValue >(0); +} +inline ::PROTOBUF_NAMESPACE_ID::NullValue Literal::null_value() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Literal.null_value) return _internal_null_value(); } -inline void Literal::set_null_value(::google::protobuf::NullValue value) { - _internal_set_null_value(value); - // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Literal.null_value) -} -inline ::google::protobuf::NullValue Literal::_internal_null_value() const { - if (constant_kind_case() == kNullValue) { - return static_cast<::google::protobuf::NullValue>(_impl_.constant_kind_.null_value_); - } - return static_cast<::google::protobuf::NullValue>(0); -} -inline void Literal::_internal_set_null_value(::google::protobuf::NullValue value) { - if (constant_kind_case() != kNullValue) { +inline void Literal::_internal_set_null_value(::PROTOBUF_NAMESPACE_ID::NullValue value) { + if (!_internal_has_null_value()) { clear_constant_kind(); set_has_null_value(); } - _impl_.constant_kind_.null_value_ = value; + constant_kind_.null_value_ = value; +} +inline void Literal::set_null_value(::PROTOBUF_NAMESPACE_ID::NullValue value) { + _internal_set_null_value(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Literal.null_value) } // bool bool_value = 2 [json_name = "boolValue"]; -inline bool Literal::has_bool_value() const { +inline bool Literal::_internal_has_bool_value() const { return constant_kind_case() == kBoolValue; } +inline bool Literal::has_bool_value() const { + return _internal_has_bool_value(); +} inline void Literal::set_has_bool_value() { - _impl_._oneof_case_[0] = kBoolValue; + _oneof_case_[0] = kBoolValue; } inline void Literal::clear_bool_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (constant_kind_case() == kBoolValue) { - _impl_.constant_kind_.bool_value_ = false; + if (_internal_has_bool_value()) { + constant_kind_.bool_value_ = false; clear_has_constant_kind(); } } -inline bool Literal::bool_value() const { - // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Literal.bool_value) - return _internal_bool_value(); -} -inline void Literal::set_bool_value(bool value) { - _internal_set_bool_value(value); - // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Literal.bool_value) -} inline bool Literal::_internal_bool_value() const { - if (constant_kind_case() == kBoolValue) { - return _impl_.constant_kind_.bool_value_; + if (_internal_has_bool_value()) { + return constant_kind_.bool_value_; } return false; } inline void Literal::_internal_set_bool_value(bool value) { - if (constant_kind_case() != kBoolValue) { + if (!_internal_has_bool_value()) { clear_constant_kind(); set_has_bool_value(); } - _impl_.constant_kind_.bool_value_ = value; + constant_kind_.bool_value_ = value; +} +inline bool Literal::bool_value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Literal.bool_value) + return _internal_bool_value(); +} +inline void Literal::set_bool_value(bool value) { + _internal_set_bool_value(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Literal.bool_value) } // int64 int64_value = 3 [json_name = "int64Value"]; -inline bool Literal::has_int64_value() const { +inline bool Literal::_internal_has_int64_value() const { return constant_kind_case() == kInt64Value; } +inline bool Literal::has_int64_value() const { + return _internal_has_int64_value(); +} inline void Literal::set_has_int64_value() { - _impl_._oneof_case_[0] = kInt64Value; + _oneof_case_[0] = kInt64Value; } inline void Literal::clear_int64_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (constant_kind_case() == kInt64Value) { - _impl_.constant_kind_.int64_value_ = ::int64_t{0}; + if (_internal_has_int64_value()) { + constant_kind_.int64_value_ = int64_t{0}; clear_has_constant_kind(); } } -inline ::int64_t Literal::int64_value() const { - // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Literal.int64_value) - return _internal_int64_value(); -} -inline void Literal::set_int64_value(::int64_t value) { - _internal_set_int64_value(value); - // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Literal.int64_value) -} -inline ::int64_t Literal::_internal_int64_value() const { - if (constant_kind_case() == kInt64Value) { - return _impl_.constant_kind_.int64_value_; +inline int64_t Literal::_internal_int64_value() const { + if (_internal_has_int64_value()) { + return constant_kind_.int64_value_; } - return ::int64_t{0}; + return int64_t{0}; } -inline void Literal::_internal_set_int64_value(::int64_t value) { - if (constant_kind_case() != kInt64Value) { +inline void Literal::_internal_set_int64_value(int64_t value) { + if (!_internal_has_int64_value()) { clear_constant_kind(); set_has_int64_value(); } - _impl_.constant_kind_.int64_value_ = value; + constant_kind_.int64_value_ = value; +} +inline int64_t Literal::int64_value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Literal.int64_value) + return _internal_int64_value(); +} +inline void Literal::set_int64_value(int64_t value) { + _internal_set_int64_value(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Literal.int64_value) } // uint64 uint64_value = 4 [json_name = "uint64Value"]; -inline bool Literal::has_uint64_value() const { +inline bool Literal::_internal_has_uint64_value() const { return constant_kind_case() == kUint64Value; } +inline bool Literal::has_uint64_value() const { + return _internal_has_uint64_value(); +} inline void Literal::set_has_uint64_value() { - _impl_._oneof_case_[0] = kUint64Value; + _oneof_case_[0] = kUint64Value; } inline void Literal::clear_uint64_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (constant_kind_case() == kUint64Value) { - _impl_.constant_kind_.uint64_value_ = ::uint64_t{0u}; + if (_internal_has_uint64_value()) { + constant_kind_.uint64_value_ = uint64_t{0u}; clear_has_constant_kind(); } } -inline ::uint64_t Literal::uint64_value() const { - // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Literal.uint64_value) - return _internal_uint64_value(); -} -inline void Literal::set_uint64_value(::uint64_t value) { - _internal_set_uint64_value(value); - // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Literal.uint64_value) -} -inline ::uint64_t Literal::_internal_uint64_value() const { - if (constant_kind_case() == kUint64Value) { - return _impl_.constant_kind_.uint64_value_; +inline uint64_t Literal::_internal_uint64_value() const { + if (_internal_has_uint64_value()) { + return constant_kind_.uint64_value_; } - return ::uint64_t{0u}; + return uint64_t{0u}; } -inline void Literal::_internal_set_uint64_value(::uint64_t value) { - if (constant_kind_case() != kUint64Value) { +inline void Literal::_internal_set_uint64_value(uint64_t value) { + if (!_internal_has_uint64_value()) { clear_constant_kind(); set_has_uint64_value(); } - _impl_.constant_kind_.uint64_value_ = value; + constant_kind_.uint64_value_ = value; +} +inline uint64_t Literal::uint64_value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Literal.uint64_value) + return _internal_uint64_value(); +} +inline void Literal::set_uint64_value(uint64_t value) { + _internal_set_uint64_value(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Literal.uint64_value) } // double double_value = 5 [json_name = "doubleValue"]; -inline bool Literal::has_double_value() const { +inline bool Literal::_internal_has_double_value() const { return constant_kind_case() == kDoubleValue; } +inline bool Literal::has_double_value() const { + return _internal_has_double_value(); +} inline void Literal::set_has_double_value() { - _impl_._oneof_case_[0] = kDoubleValue; + _oneof_case_[0] = kDoubleValue; } inline void Literal::clear_double_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (constant_kind_case() == kDoubleValue) { - _impl_.constant_kind_.double_value_ = 0; + if (_internal_has_double_value()) { + constant_kind_.double_value_ = 0; clear_has_constant_kind(); } } -inline double Literal::double_value() const { - // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Literal.double_value) - return _internal_double_value(); -} -inline void Literal::set_double_value(double value) { - _internal_set_double_value(value); - // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Literal.double_value) -} inline double Literal::_internal_double_value() const { - if (constant_kind_case() == kDoubleValue) { - return _impl_.constant_kind_.double_value_; + if (_internal_has_double_value()) { + return constant_kind_.double_value_; } return 0; } inline void Literal::_internal_set_double_value(double value) { - if (constant_kind_case() != kDoubleValue) { + if (!_internal_has_double_value()) { clear_constant_kind(); set_has_double_value(); } - _impl_.constant_kind_.double_value_ = value; + constant_kind_.double_value_ = value; +} +inline double Literal::double_value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Literal.double_value) + return _internal_double_value(); +} +inline void Literal::set_double_value(double value) { + _internal_set_double_value(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Literal.double_value) } // string string_value = 6 [json_name = "stringValue"]; -inline bool Literal::has_string_value() const { +inline bool Literal::_internal_has_string_value() const { return constant_kind_case() == kStringValue; } +inline bool Literal::has_string_value() const { + return _internal_has_string_value(); +} inline void Literal::set_has_string_value() { - _impl_._oneof_case_[0] = kStringValue; + _oneof_case_[0] = kStringValue; } inline void Literal::clear_string_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (constant_kind_case() == kStringValue) { - _impl_.constant_kind_.string_value_.Destroy(); + if (_internal_has_string_value()) { + constant_kind_.string_value_.Destroy(); clear_has_constant_kind(); } } -inline const std::string& Literal::string_value() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Literal::string_value() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Literal.string_value) return _internal_string_value(); } -template -inline PROTOBUF_ALWAYS_INLINE void Literal::set_string_value(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (constant_kind_case() != kStringValue) { +template +inline void Literal::set_string_value(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_string_value()) { clear_constant_kind(); - set_has_string_value(); - _impl_.constant_kind_.string_value_.InitDefault(); + constant_kind_.string_value_.InitDefault(); } - _impl_.constant_kind_.string_value_.Set(static_cast(arg), args..., GetArena()); + constant_kind_.string_value_.Set( static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Literal.string_value) } -inline std::string* Literal::mutable_string_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Literal::mutable_string_value() { std::string* _s = _internal_mutable_string_value(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Literal.string_value) return _s; } inline const std::string& Literal::_internal_string_value() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - if (constant_kind_case() != kStringValue) { - return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); + if (_internal_has_string_value()) { + return constant_kind_.string_value_.Get(); } - return _impl_.constant_kind_.string_value_.Get(); + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } inline void Literal::_internal_set_string_value(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (constant_kind_case() != kStringValue) { + if (!_internal_has_string_value()) { clear_constant_kind(); - set_has_string_value(); - _impl_.constant_kind_.string_value_.InitDefault(); + constant_kind_.string_value_.InitDefault(); } - _impl_.constant_kind_.string_value_.Set(value, GetArena()); + constant_kind_.string_value_.Set(value, GetArenaForAllocation()); } inline std::string* Literal::_internal_mutable_string_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (constant_kind_case() != kStringValue) { + if (!_internal_has_string_value()) { clear_constant_kind(); - set_has_string_value(); - _impl_.constant_kind_.string_value_.InitDefault(); + constant_kind_.string_value_.InitDefault(); } - return _impl_.constant_kind_.string_value_.Mutable( GetArena()); + return constant_kind_.string_value_.Mutable( GetArenaForAllocation()); } inline std::string* Literal::release_string_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Literal.string_value) - if (constant_kind_case() != kStringValue) { + if (_internal_has_string_value()) { + clear_has_constant_kind(); + return constant_kind_.string_value_.Release(); + } else { return nullptr; } - clear_has_constant_kind(); - return _impl_.constant_kind_.string_value_.Release(); } -inline void Literal::set_allocated_string_value(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Literal::set_allocated_string_value(std::string* string_value) { if (has_constant_kind()) { clear_constant_kind(); } - if (value != nullptr) { + if (string_value != nullptr) { set_has_string_value(); - _impl_.constant_kind_.string_value_.InitAllocated(value, GetArena()); + constant_kind_.string_value_.InitAllocated(string_value, GetArenaForAllocation()); } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Literal.string_value) } // bytes bytes_value = 7 [json_name = "bytesValue"]; -inline bool Literal::has_bytes_value() const { +inline bool Literal::_internal_has_bytes_value() const { return constant_kind_case() == kBytesValue; } +inline bool Literal::has_bytes_value() const { + return _internal_has_bytes_value(); +} inline void Literal::set_has_bytes_value() { - _impl_._oneof_case_[0] = kBytesValue; + _oneof_case_[0] = kBytesValue; } inline void Literal::clear_bytes_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (constant_kind_case() == kBytesValue) { - _impl_.constant_kind_.bytes_value_.Destroy(); + if (_internal_has_bytes_value()) { + constant_kind_.bytes_value_.Destroy(); clear_has_constant_kind(); } } -inline const std::string& Literal::bytes_value() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Literal::bytes_value() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Literal.bytes_value) return _internal_bytes_value(); } -template -inline PROTOBUF_ALWAYS_INLINE void Literal::set_bytes_value(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (constant_kind_case() != kBytesValue) { +template +inline void Literal::set_bytes_value(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_bytes_value()) { clear_constant_kind(); - set_has_bytes_value(); - _impl_.constant_kind_.bytes_value_.InitDefault(); + constant_kind_.bytes_value_.InitDefault(); } - _impl_.constant_kind_.bytes_value_.SetBytes(static_cast(arg), args..., GetArena()); + constant_kind_.bytes_value_.SetBytes( static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Literal.bytes_value) } -inline std::string* Literal::mutable_bytes_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Literal::mutable_bytes_value() { std::string* _s = _internal_mutable_bytes_value(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Literal.bytes_value) return _s; } inline const std::string& Literal::_internal_bytes_value() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - if (constant_kind_case() != kBytesValue) { - return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); + if (_internal_has_bytes_value()) { + return constant_kind_.bytes_value_.Get(); } - return _impl_.constant_kind_.bytes_value_.Get(); + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } inline void Literal::_internal_set_bytes_value(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (constant_kind_case() != kBytesValue) { + if (!_internal_has_bytes_value()) { clear_constant_kind(); - set_has_bytes_value(); - _impl_.constant_kind_.bytes_value_.InitDefault(); + constant_kind_.bytes_value_.InitDefault(); } - _impl_.constant_kind_.bytes_value_.Set(value, GetArena()); + constant_kind_.bytes_value_.Set(value, GetArenaForAllocation()); } inline std::string* Literal::_internal_mutable_bytes_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (constant_kind_case() != kBytesValue) { + if (!_internal_has_bytes_value()) { clear_constant_kind(); - set_has_bytes_value(); - _impl_.constant_kind_.bytes_value_.InitDefault(); + constant_kind_.bytes_value_.InitDefault(); } - return _impl_.constant_kind_.bytes_value_.Mutable( GetArena()); + return constant_kind_.bytes_value_.Mutable( GetArenaForAllocation()); } inline std::string* Literal::release_bytes_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Literal.bytes_value) - if (constant_kind_case() != kBytesValue) { + if (_internal_has_bytes_value()) { + clear_has_constant_kind(); + return constant_kind_.bytes_value_.Release(); + } else { return nullptr; } - clear_has_constant_kind(); - return _impl_.constant_kind_.bytes_value_.Release(); } -inline void Literal::set_allocated_bytes_value(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Literal::set_allocated_bytes_value(std::string* bytes_value) { if (has_constant_kind()) { clear_constant_kind(); } - if (value != nullptr) { + if (bytes_value != nullptr) { set_has_bytes_value(); - _impl_.constant_kind_.bytes_value_.InitAllocated(value, GetArena()); + constant_kind_.bytes_value_.InitAllocated(bytes_value, GetArenaForAllocation()); } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Literal.bytes_value) } @@ -5170,24 +4714,41 @@ inline bool Literal::has_constant_kind() const { return constant_kind_case() != CONSTANT_KIND_NOT_SET; } inline void Literal::clear_has_constant_kind() { - _impl_._oneof_case_[0] = CONSTANT_KIND_NOT_SET; + _oneof_case_[0] = CONSTANT_KIND_NOT_SET; } inline Literal::ConstantKindCase Literal::constant_kind_case() const { - return Literal::ConstantKindCase(_impl_._oneof_case_[0]); + return Literal::ConstantKindCase(_oneof_case_[0]); } #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) + } // namespace v1beta1 } // namespace expr } // namespace api } // namespace google - // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1beta1_2fexpr_2eproto diff --git a/src/viam/api/google/api/expr/v1beta1/source.grpc.pb.cc b/src/viam/api/google/api/expr/v1beta1/source.grpc.pb.cc index 90f93929e..82b6ac2c5 100644 --- a/src/viam/api/google/api/expr/v1beta1/source.grpc.pb.cc +++ b/src/viam/api/google/api/expr/v1beta1/source.grpc.pb.cc @@ -6,19 +6,19 @@ #include "google/api/expr/v1beta1/source.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace google { namespace api { namespace expr { diff --git a/src/viam/api/google/api/expr/v1beta1/source.grpc.pb.h b/src/viam/api/google/api/expr/v1beta1/source.grpc.pb.h index 95d19c9da..d30fd8df0 100644 --- a/src/viam/api/google/api/expr/v1beta1/source.grpc.pb.h +++ b/src/viam/api/google/api/expr/v1beta1/source.grpc.pb.h @@ -23,23 +23,24 @@ #include "google/api/expr/v1beta1/source.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace google { namespace api { diff --git a/src/viam/api/google/api/expr/v1beta1/source.pb.cc b/src/viam/api/google/api/expr/v1beta1/source.pb.cc index eabaff5e0..ccfec1cf9 100644 --- a/src/viam/api/google/api/expr/v1beta1/source.pb.cc +++ b/src/viam/api/google/api/expr/v1beta1/source.pb.cc @@ -4,353 +4,325 @@ #include "google/api/expr/v1beta1/source.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace google { namespace api { namespace expr { namespace v1beta1 { - -inline constexpr SourcePosition::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : location_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - offset_{0}, - line_{0}, - column_{0}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR SourcePosition::SourcePosition(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct SourcePositionDefaultTypeInternal { - PROTOBUF_CONSTEXPR SourcePositionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SourcePositionDefaultTypeInternal() {} - union { - SourcePosition _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SourcePositionDefaultTypeInternal _SourcePosition_default_instance_; - template -PROTOBUF_CONSTEXPR SourceInfo_PositionsEntry_DoNotUse::SourceInfo_PositionsEntry_DoNotUse(::_pbi::ConstantInitialized) {} +PROTOBUF_CONSTEXPR SourceInfo_PositionsEntry_DoNotUse::SourceInfo_PositionsEntry_DoNotUse( + ::_pbi::ConstantInitialized){} struct SourceInfo_PositionsEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SourceInfo_PositionsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SourceInfo_PositionsEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~SourceInfo_PositionsEntry_DoNotUseDefaultTypeInternal() {} union { SourceInfo_PositionsEntry_DoNotUse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SourceInfo_PositionsEntry_DoNotUseDefaultTypeInternal _SourceInfo_PositionsEntry_DoNotUse_default_instance_; - -inline constexpr SourceInfo::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : line_offsets_{}, - _line_offsets_cached_byte_size_{0}, - positions_{}, - location_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR SourceInfo::SourceInfo(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SourceInfo_PositionsEntry_DoNotUseDefaultTypeInternal _SourceInfo_PositionsEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR SourceInfo::SourceInfo( + ::_pbi::ConstantInitialized) + : line_offsets_() + , _line_offsets_cached_byte_size_(0) + , positions_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + , location_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} struct SourceInfoDefaultTypeInternal { - PROTOBUF_CONSTEXPR SourceInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SourceInfoDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~SourceInfoDefaultTypeInternal() {} union { SourceInfo _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SourceInfoDefaultTypeInternal _SourceInfo_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SourceInfoDefaultTypeInternal _SourceInfo_default_instance_; +PROTOBUF_CONSTEXPR SourcePosition::SourcePosition( + ::_pbi::ConstantInitialized) + : location_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , offset_(0) + , line_(0) + , column_(0){} +struct SourcePositionDefaultTypeInternal { + PROTOBUF_CONSTEXPR SourcePositionDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SourcePositionDefaultTypeInternal() {} + union { + SourcePosition _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SourcePositionDefaultTypeInternal _SourcePosition_default_instance_; } // namespace v1beta1 } // namespace expr } // namespace api } // namespace google static ::_pb::Metadata file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto[3]; -static constexpr const ::_pb::EnumDescriptor** - file_level_enum_descriptors_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto = nullptr; -const ::uint32_t TableStruct_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::SourceInfo_PositionsEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::SourceInfo_PositionsEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::SourceInfo_PositionsEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::SourceInfo_PositionsEntry_DoNotUse, value_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::SourceInfo, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::SourceInfo, _impl_.location_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::SourceInfo, _impl_.line_offsets_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::SourceInfo, _impl_.positions_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::SourcePosition, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::SourcePosition, _impl_.location_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::SourcePosition, _impl_.offset_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::SourcePosition, _impl_.line_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::SourcePosition, _impl_.column_), +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto = nullptr; + +const uint32_t TableStruct_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::SourceInfo_PositionsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::SourceInfo_PositionsEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::SourceInfo_PositionsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::SourceInfo_PositionsEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::SourceInfo, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::SourceInfo, location_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::SourceInfo, line_offsets_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::SourceInfo, positions_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::SourcePosition, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::SourcePosition, location_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::SourcePosition, offset_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::SourcePosition, line_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::SourcePosition, column_), }; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, 10, -1, sizeof(::google::api::expr::v1beta1::SourceInfo_PositionsEntry_DoNotUse)}, - {12, -1, -1, sizeof(::google::api::expr::v1beta1::SourceInfo)}, - {23, -1, -1, sizeof(::google::api::expr::v1beta1::SourcePosition)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, 8, -1, sizeof(::google::api::expr::v1beta1::SourceInfo_PositionsEntry_DoNotUse)}, + { 10, -1, -1, sizeof(::google::api::expr::v1beta1::SourceInfo)}, + { 19, -1, -1, sizeof(::google::api::expr::v1beta1::SourcePosition)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::google::api::expr::v1beta1::_SourceInfo_PositionsEntry_DoNotUse_default_instance_._instance, - &::google::api::expr::v1beta1::_SourceInfo_default_instance_._instance, - &::google::api::expr::v1beta1::_SourcePosition_default_instance_._instance, -}; -const char descriptor_table_protodef_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n$google/api/expr/v1beta1/source.proto\022\027" - "google.api.expr.v1beta1\"\333\001\n\nSourceInfo\022\032" - "\n\010location\030\002 \001(\tR\010location\022!\n\014line_offse" - "ts\030\003 \003(\005R\013lineOffsets\022P\n\tpositions\030\004 \003(\013" - "22.google.api.expr.v1beta1.SourceInfo.Po" - "sitionsEntryR\tpositions\032<\n\016PositionsEntr" - "y\022\020\n\003key\030\001 \001(\005R\003key\022\024\n\005value\030\002 \001(\005R\005valu" - "e:\0028\001\"p\n\016SourcePosition\022\032\n\010location\030\001 \001(" - "\tR\010location\022\026\n\006offset\030\002 \001(\005R\006offset\022\022\n\004l" - "ine\030\003 \001(\005R\004line\022\026\n\006column\030\004 \001(\005R\006columnB" - "\351\001\n\033com.google.api.expr.v1beta1B\013SourceP" - "rotoP\001Z;google.golang.org/genproto/googl" - "eapis/api/expr/v1beta1;expr\370\001\001\242\002\003GAE\252\002\027G" - "oogle.Api.Expr.V1beta1\312\002\027Google\\Api\\Expr" - "\\V1beta1\342\002#Google\\Api\\Expr\\V1beta1\\GPBMe" - "tadata\352\002\032Google::Api::Expr::V1beta1b\006pro" - "to3" + &::google::api::expr::v1beta1::_SourceInfo_PositionsEntry_DoNotUse_default_instance_._instance, + &::google::api::expr::v1beta1::_SourceInfo_default_instance_._instance, + &::google::api::expr::v1beta1::_SourcePosition_default_instance_._instance, }; -static ::absl::once_flag descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto_once; + +const char descriptor_table_protodef_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n$google/api/expr/v1beta1/source.proto\022\027" + "google.api.expr.v1beta1\"\333\001\n\nSourceInfo\022\032" + "\n\010location\030\002 \001(\tR\010location\022!\n\014line_offse" + "ts\030\003 \003(\005R\013lineOffsets\022P\n\tpositions\030\004 \003(\013" + "22.google.api.expr.v1beta1.SourceInfo.Po" + "sitionsEntryR\tpositions\032<\n\016PositionsEntr" + "y\022\020\n\003key\030\001 \001(\005R\003key\022\024\n\005value\030\002 \001(\005R\005valu" + "e:\0028\001\"p\n\016SourcePosition\022\032\n\010location\030\001 \001(" + "\tR\010location\022\026\n\006offset\030\002 \001(\005R\006offset\022\022\n\004l" + "ine\030\003 \001(\005R\004line\022\026\n\006column\030\004 \001(\005R\006columnB" + "l\n\033com.google.api.expr.v1beta1B\013SourcePr" + "otoP\001Z;google.golang.org/genproto/google" + "apis/api/expr/v1beta1;expr\370\001\001b\006proto3" + ; +static ::_pbi::once_flag descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto = { - false, - false, - 643, - descriptor_table_protodef_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto, + false, false, 517, descriptor_table_protodef_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto, "google/api/expr/v1beta1/source.proto", - &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto_once, - nullptr, - 0, - 3, - schemas, - file_default_instances, - TableStruct_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto::offsets, - file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto, - file_level_enum_descriptors_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto, + &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto_once, nullptr, 0, 3, + schemas, file_default_instances, TableStruct_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto::offsets, + file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto, file_level_enum_descriptors_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto, file_level_service_descriptors_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto_getter() { return &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto(&descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto(&descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto); namespace google { namespace api { namespace expr { namespace v1beta1 { + // =================================================================== SourceInfo_PositionsEntry_DoNotUse::SourceInfo_PositionsEntry_DoNotUse() {} -SourceInfo_PositionsEntry_DoNotUse::SourceInfo_PositionsEntry_DoNotUse(::google::protobuf::Arena* arena) +SourceInfo_PositionsEntry_DoNotUse::SourceInfo_PositionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) : SuperType(arena) {} -::google::protobuf::Metadata SourceInfo_PositionsEntry_DoNotUse::GetMetadata() const { +void SourceInfo_PositionsEntry_DoNotUse::MergeFrom(const SourceInfo_PositionsEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata SourceInfo_PositionsEntry_DoNotUse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto[0]); } + // =================================================================== class SourceInfo::_Internal { public: }; -SourceInfo::SourceInfo(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +SourceInfo::SourceInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + line_offsets_(arena), + positions_(arena) { + SharedCtor(); + if (arena != nullptr && !is_message_owned) { + arena->OwnCustomDestructor(this, &SourceInfo::ArenaDtor); + } // @@protoc_insertion_point(arena_constructor:google.api.expr.v1beta1.SourceInfo) } -inline PROTOBUF_NDEBUG_INLINE SourceInfo::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : line_offsets_{visibility, arena, from.line_offsets_}, - _line_offsets_cached_byte_size_{0}, - positions_{visibility, arena, from.positions_}, - location_(arena, from.location_), - _cached_size_{0} {} - -SourceInfo::SourceInfo( - ::google::protobuf::Arena* arena, - const SourceInfo& from) - : ::google::protobuf::Message(arena) { - SourceInfo* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +SourceInfo::SourceInfo(const SourceInfo& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + line_offsets_(from.line_offsets_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + positions_.MergeFrom(from.positions_); + location_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + location_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_location().empty()) { + location_.Set(from._internal_location(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:google.api.expr.v1beta1.SourceInfo) } -inline PROTOBUF_NDEBUG_INLINE SourceInfo::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : line_offsets_{visibility, arena}, - _line_offsets_cached_byte_size_{0}, - positions_{visibility, arena}, - location_(arena), - _cached_size_{0} {} -inline void SourceInfo::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void SourceInfo::SharedCtor() { +location_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + location_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + SourceInfo::~SourceInfo() { // @@protoc_insertion_point(destructor:google.api.expr.v1beta1.SourceInfo) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + ArenaDtor(this); + return; + } SharedDtor(); } + inline void SourceInfo::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.location_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + positions_.Destruct(); + location_.Destroy(); +} + +void SourceInfo::ArenaDtor(void* object) { + SourceInfo* _this = reinterpret_cast< SourceInfo* >(object); + _this->positions_.Destruct(); +} +void SourceInfo::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void SourceInfo::Clear() { +void SourceInfo::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1beta1.SourceInfo) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.line_offsets_.Clear(); - _impl_.positions_.Clear(); - _impl_.location_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SourceInfo::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + line_offsets_.Clear(); + positions_.Clear(); + location_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SourceInfo::_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 location = 2 [json_name = "location"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_location(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1beta1.SourceInfo.location")); + } else + goto handle_unusual; + continue; + // repeated int32 line_offsets = 3 [json_name = "lineOffsets"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(_internal_mutable_line_offsets(), ptr, ctx); + CHK_(ptr); + } else if (static_cast(tag) == 24) { + _internal_add_line_offsets(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // map positions = 4 [json_name = "positions"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&positions_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 3, 1, 51, 2> SourceInfo::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 4, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967281, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_SourceInfo_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string location = 2 [json_name = "location"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(SourceInfo, _impl_.location_)}}, - // repeated int32 line_offsets = 3 [json_name = "lineOffsets"]; - {::_pbi::TcParser::FastV32P1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(SourceInfo, _impl_.line_offsets_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string location = 2 [json_name = "location"]; - {PROTOBUF_FIELD_OFFSET(SourceInfo, _impl_.location_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated int32 line_offsets = 3 [json_name = "lineOffsets"]; - {PROTOBUF_FIELD_OFFSET(SourceInfo, _impl_.line_offsets_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)}, - // map positions = 4 [json_name = "positions"]; - {PROTOBUF_FIELD_OFFSET(SourceInfo, _impl_.positions_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, - }}, {{ - {::_pbi::TcParser::GetMapAuxInfo< - decltype(SourceInfo()._impl_.positions_)>( - 1, 0, 0, 5, - 5)}, - }}, {{ - "\42\10\0\0\0\0\0\0" - "google.api.expr.v1beta1.SourceInfo" - "location" - }}, -}; - -::uint8_t* SourceInfo::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* SourceInfo::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.SourceInfo) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string location = 2 [json_name = "location"]; if (!this->_internal_location().empty()) { - const std::string& _s = this->_internal_location(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.expr.v1beta1.SourceInfo.location"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_location().data(), static_cast(this->_internal_location().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1beta1.SourceInfo.location"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_location(), target); } // repeated int32 line_offsets = 3 [json_name = "lineOffsets"]; { - int byte_size = _impl_._line_offsets_cached_byte_size_.Get(); + int byte_size = _line_offsets_cached_byte_size_.load(std::memory_order_relaxed); if (byte_size > 0) { target = stream->WriteInt32Packed( 3, _internal_line_offsets(), byte_size, target); @@ -358,94 +330,96 @@ ::uint8_t* SourceInfo::_InternalSerialize( } // map positions = 4 [json_name = "positions"]; - if (!_internal_positions().empty()) { - using MapType = ::google::protobuf::Map<::int32_t, ::int32_t>; - using WireHelper = _pbi::MapEntryFuncs<::int32_t, ::int32_t, - _pbi::WireFormatLite::TYPE_INT32, - _pbi::WireFormatLite::TYPE_INT32>; - const auto& field = _internal_positions(); - - if (stream->IsSerializationDeterministic() && field.size() > 1) { - for (const auto& entry : ::google::protobuf::internal::MapSorterFlat(field)) { - target = WireHelper::InternalSerialize( - 4, entry.first, entry.second, target, stream); + if (!this->_internal_positions().empty()) { + using MapType = ::_pb::Map; + using WireHelper = SourceInfo_PositionsEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_positions(); + + if (stream->IsSerializationDeterministic() && map_field.size() > 1) { + for (const auto& entry : ::_pbi::MapSorterFlat(map_field)) { + target = WireHelper::InternalSerialize(4, entry.first, entry.second, target, stream); } } else { - for (const auto& entry : field) { - target = WireHelper::InternalSerialize( - 4, entry.first, entry.second, target, stream); + for (const auto& entry : map_field) { + target = WireHelper::InternalSerialize(4, entry.first, entry.second, target, stream); } } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1beta1.SourceInfo) return target; } -::size_t SourceInfo::ByteSizeLong() const { +size_t SourceInfo::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1beta1.SourceInfo) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated int32 line_offsets = 3 [json_name = "lineOffsets"]; { - std::size_t data_size = ::_pbi::WireFormatLite::Int32Size( - this->_internal_line_offsets()) - ; - _impl_._line_offsets_cached_byte_size_.Set(::_pbi::ToCachedSize(data_size)); - std::size_t tag_size = data_size == 0 - ? 0 - : 1 + ::_pbi::WireFormatLite::Int32Size( - static_cast(data_size)) - ; - total_size += tag_size + data_size; + size_t data_size = ::_pbi::WireFormatLite:: + Int32Size(this->line_offsets_); + if (data_size > 0) { + total_size += 1 + + ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); + } + int cached_size = ::_pbi::ToCachedSize(data_size); + _line_offsets_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); + total_size += data_size; } + // map positions = 4 [json_name = "positions"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_positions_size()); - for (const auto& entry : _internal_positions()) { - total_size += _pbi::MapEntryFuncs<::int32_t, ::int32_t, - _pbi::WireFormatLite::TYPE_INT32, - _pbi::WireFormatLite::TYPE_INT32>::ByteSizeLong(entry.first, entry.second); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_positions_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< int32_t, int32_t >::const_iterator + it = this->_internal_positions().begin(); + it != this->_internal_positions().end(); ++it) { + total_size += SourceInfo_PositionsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); } + // string location = 2 [json_name = "location"]; if (!this->_internal_location().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_location()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_location()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData SourceInfo::_class_data_ = { - SourceInfo::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SourceInfo::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + SourceInfo::MergeImpl }; -const ::google::protobuf::Message::ClassData* SourceInfo::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SourceInfo::GetClassData() const { return &_class_data_; } + +void SourceInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void SourceInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.SourceInfo) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void SourceInfo::MergeFrom(const SourceInfo& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.SourceInfo) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_line_offsets()->MergeFrom(from._internal_line_offsets()); - _this->_impl_.positions_.MergeFrom(from._impl_.positions_); + line_offsets_.MergeFrom(from.line_offsets_); + positions_.MergeFrom(from.positions_); if (!from._internal_location().empty()) { - _this->_internal_set_location(from._internal_location()); + _internal_set_location(from._internal_location()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SourceInfo::CopyFrom(const SourceInfo& from) { @@ -455,271 +429,270 @@ void SourceInfo::CopyFrom(const SourceInfo& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool SourceInfo::IsInitialized() const { +bool SourceInfo::IsInitialized() const { return true; } -::_pbi::CachedSize* SourceInfo::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void SourceInfo::InternalSwap(SourceInfo* PROTOBUF_RESTRICT other) { +void SourceInfo::InternalSwap(SourceInfo* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.line_offsets_.InternalSwap(&other->_impl_.line_offsets_); - _impl_.positions_.InternalSwap(&other->_impl_.positions_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.location_, &other->_impl_.location_, arena); + line_offsets_.InternalSwap(&other->line_offsets_); + positions_.InternalSwap(&other->positions_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &location_, lhs_arena, + &other->location_, rhs_arena + ); } -::google::protobuf::Metadata SourceInfo::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata SourceInfo::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto[1]); } + // =================================================================== class SourcePosition::_Internal { public: }; -SourcePosition::SourcePosition(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +SourcePosition::SourcePosition(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1beta1.SourcePosition) } -inline PROTOBUF_NDEBUG_INLINE SourcePosition::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : location_(arena, from.location_), - _cached_size_{0} {} - -SourcePosition::SourcePosition( - ::google::protobuf::Arena* arena, - const SourcePosition& from) - : ::google::protobuf::Message(arena) { - SourcePosition* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, offset_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, offset_), - offsetof(Impl_, column_) - - offsetof(Impl_, offset_) + - sizeof(Impl_::column_)); - +SourcePosition::SourcePosition(const SourcePosition& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + location_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + location_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_location().empty()) { + location_.Set(from._internal_location(), + GetArenaForAllocation()); + } + ::memcpy(&offset_, &from.offset_, + static_cast(reinterpret_cast(&column_) - + reinterpret_cast(&offset_)) + sizeof(column_)); // @@protoc_insertion_point(copy_constructor:google.api.expr.v1beta1.SourcePosition) } -inline PROTOBUF_NDEBUG_INLINE SourcePosition::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : location_(arena), - _cached_size_{0} {} - -inline void SourcePosition::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, offset_), - 0, - offsetof(Impl_, column_) - - offsetof(Impl_, offset_) + - sizeof(Impl_::column_)); + +inline void SourcePosition::SharedCtor() { +location_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + location_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&offset_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&column_) - + reinterpret_cast(&offset_)) + sizeof(column_)); } + SourcePosition::~SourcePosition() { // @@protoc_insertion_point(destructor:google.api.expr.v1beta1.SourcePosition) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void SourcePosition::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.location_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + location_.Destroy(); +} + +void SourcePosition::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void SourcePosition::Clear() { +void SourcePosition::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1beta1.SourcePosition) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.location_.ClearToEmpty(); - ::memset(&_impl_.offset_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.column_) - - reinterpret_cast(&_impl_.offset_)) + sizeof(_impl_.column_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SourcePosition::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + location_.ClearToEmpty(); + ::memset(&offset_, 0, static_cast( + reinterpret_cast(&column_) - + reinterpret_cast(&offset_)) + sizeof(column_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SourcePosition::_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 location = 1 [json_name = "location"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_location(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1beta1.SourcePosition.location")); + } else + goto handle_unusual; + continue; + // int32 offset = 2 [json_name = "offset"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + offset_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int32 line = 3 [json_name = "line"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + line_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int32 column = 4 [json_name = "column"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + column_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 0, 55, 2> SourcePosition::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_SourcePosition_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // int32 column = 4 [json_name = "column"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SourcePosition, _impl_.column_), 63>(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(SourcePosition, _impl_.column_)}}, - // string location = 1 [json_name = "location"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(SourcePosition, _impl_.location_)}}, - // int32 offset = 2 [json_name = "offset"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SourcePosition, _impl_.offset_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(SourcePosition, _impl_.offset_)}}, - // int32 line = 3 [json_name = "line"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SourcePosition, _impl_.line_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(SourcePosition, _impl_.line_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string location = 1 [json_name = "location"]; - {PROTOBUF_FIELD_OFFSET(SourcePosition, _impl_.location_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // int32 offset = 2 [json_name = "offset"]; - {PROTOBUF_FIELD_OFFSET(SourcePosition, _impl_.offset_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // int32 line = 3 [json_name = "line"]; - {PROTOBUF_FIELD_OFFSET(SourcePosition, _impl_.line_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // int32 column = 4 [json_name = "column"]; - {PROTOBUF_FIELD_OFFSET(SourcePosition, _impl_.column_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - }}, - // no aux_entries - {{ - "\46\10\0\0\0\0\0\0" - "google.api.expr.v1beta1.SourcePosition" - "location" - }}, -}; - -::uint8_t* SourcePosition::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* SourcePosition::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.SourcePosition) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string location = 1 [json_name = "location"]; if (!this->_internal_location().empty()) { - const std::string& _s = this->_internal_location(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.expr.v1beta1.SourcePosition.location"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_location().data(), static_cast(this->_internal_location().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1beta1.SourcePosition.location"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_location(), target); } // int32 offset = 2 [json_name = "offset"]; if (this->_internal_offset() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<2>( - stream, this->_internal_offset(), target); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_offset(), target); } // int32 line = 3 [json_name = "line"]; if (this->_internal_line() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<3>( - stream, this->_internal_line(), target); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_line(), target); } // int32 column = 4 [json_name = "column"]; if (this->_internal_column() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<4>( - stream, this->_internal_column(), target); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(4, this->_internal_column(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1beta1.SourcePosition) return target; } -::size_t SourcePosition::ByteSizeLong() const { +size_t SourcePosition::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1beta1.SourcePosition) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string location = 1 [json_name = "location"]; if (!this->_internal_location().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_location()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_location()); } // int32 offset = 2 [json_name = "offset"]; if (this->_internal_offset() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_offset()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_offset()); } // int32 line = 3 [json_name = "line"]; if (this->_internal_line() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_line()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_line()); } // int32 column = 4 [json_name = "column"]; if (this->_internal_column() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_column()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_column()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData SourcePosition::_class_data_ = { - SourcePosition::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SourcePosition::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + SourcePosition::MergeImpl }; -const ::google::protobuf::Message::ClassData* SourcePosition::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SourcePosition::GetClassData() const { return &_class_data_; } + +void SourcePosition::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void SourcePosition::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.SourcePosition) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void SourcePosition::MergeFrom(const SourcePosition& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.SourcePosition) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_location().empty()) { - _this->_internal_set_location(from._internal_location()); + _internal_set_location(from._internal_location()); } if (from._internal_offset() != 0) { - _this->_internal_set_offset(from._internal_offset()); + _internal_set_offset(from._internal_offset()); } if (from._internal_line() != 0) { - _this->_internal_set_line(from._internal_line()); + _internal_set_line(from._internal_line()); } if (from._internal_column() != 0) { - _this->_internal_set_column(from._internal_column()); + _internal_set_column(from._internal_column()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SourcePosition::CopyFrom(const SourcePosition& from) { @@ -729,40 +702,52 @@ void SourcePosition::CopyFrom(const SourcePosition& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool SourcePosition::IsInitialized() const { +bool SourcePosition::IsInitialized() const { return true; } -::_pbi::CachedSize* SourcePosition::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void SourcePosition::InternalSwap(SourcePosition* PROTOBUF_RESTRICT other) { +void SourcePosition::InternalSwap(SourcePosition* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.location_, &other->_impl_.location_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(SourcePosition, _impl_.column_) - + sizeof(SourcePosition::_impl_.column_) - - PROTOBUF_FIELD_OFFSET(SourcePosition, _impl_.offset_)>( - reinterpret_cast(&_impl_.offset_), - reinterpret_cast(&other->_impl_.offset_)); -} - -::google::protobuf::Metadata SourcePosition::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &location_, lhs_arena, + &other->location_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(SourcePosition, column_) + + sizeof(SourcePosition::column_) + - PROTOBUF_FIELD_OFFSET(SourcePosition, offset_)>( + reinterpret_cast(&offset_), + reinterpret_cast(&other->offset_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SourcePosition::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto[2]); } + // @@protoc_insertion_point(namespace_scope) } // namespace v1beta1 } // namespace expr } // namespace api } // namespace google -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::google::api::expr::v1beta1::SourceInfo_PositionsEntry_DoNotUse* +Arena::CreateMaybeMessage< ::google::api::expr::v1beta1::SourceInfo_PositionsEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1beta1::SourceInfo_PositionsEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1beta1::SourceInfo* +Arena::CreateMaybeMessage< ::google::api::expr::v1beta1::SourceInfo >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1beta1::SourceInfo >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1beta1::SourcePosition* +Arena::CreateMaybeMessage< ::google::api::expr::v1beta1::SourcePosition >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1beta1::SourcePosition >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/google/api/expr/v1beta1/source.pb.h b/src/viam/api/google/api/expr/v1beta1/source.pb.h index 4260c1ddd..eac87e10b 100644 --- a/src/viam/api/google/api/expr/v1beta1/source.pb.h +++ b/src/viam/api/google/api/expr/v1beta1/source.pb.h @@ -1,63 +1,52 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/expr/v1beta1/source.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/map.h" // IWYU pragma: export -#include "google/protobuf/map_entry.h" -#include "google/protobuf/map_field_inl.h" -#include "google/protobuf/unknown_field_set.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include +// @@protoc_insertion_point(includes) +#include #define PROTOBUF_INTERNAL_EXPORT_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto; namespace google { namespace api { namespace expr { @@ -74,10 +63,12 @@ extern SourcePositionDefaultTypeInternal _SourcePosition_default_instance_; } // namespace v1beta1 } // namespace expr } // namespace api -namespace protobuf { -} // namespace protobuf } // namespace google - +PROTOBUF_NAMESPACE_OPEN +template<> ::google::api::expr::v1beta1::SourceInfo* Arena::CreateMaybeMessage<::google::api::expr::v1beta1::SourceInfo>(Arena*); +template<> ::google::api::expr::v1beta1::SourceInfo_PositionsEntry_DoNotUse* Arena::CreateMaybeMessage<::google::api::expr::v1beta1::SourceInfo_PositionsEntry_DoNotUse>(Arena*); +template<> ::google::api::expr::v1beta1::SourcePosition* Arena::CreateMaybeMessage<::google::api::expr::v1beta1::SourcePosition>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace google { namespace api { namespace expr { @@ -85,33 +76,52 @@ namespace v1beta1 { // =================================================================== +class SourceInfo_PositionsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + SourceInfo_PositionsEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR SourceInfo_PositionsEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit SourceInfo_PositionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const SourceInfo_PositionsEntry_DoNotUse& other); + static const SourceInfo_PositionsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_SourceInfo_PositionsEntry_DoNotUse_default_instance_); } + static bool ValidateKey(void*) { return true; } + static bool ValidateValue(void*) { return true; } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto; +}; // ------------------------------------------------------------------- -class SourcePosition final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.SourcePosition) */ { +class SourceInfo final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.SourceInfo) */ { public: - inline SourcePosition() : SourcePosition(nullptr) {} - ~SourcePosition() override; - template - explicit PROTOBUF_CONSTEXPR SourcePosition(::google::protobuf::internal::ConstantInitialized); + inline SourceInfo() : SourceInfo(nullptr) {} + ~SourceInfo() override; + explicit PROTOBUF_CONSTEXPR SourceInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline SourcePosition(const SourcePosition& from) - : SourcePosition(nullptr, from) {} - SourcePosition(SourcePosition&& from) noexcept - : SourcePosition() { + SourceInfo(const SourceInfo& from); + SourceInfo(SourceInfo&& from) noexcept + : SourceInfo() { *this = ::std::move(from); } - inline SourcePosition& operator=(const SourcePosition& from) { + inline SourceInfo& operator=(const SourceInfo& from) { CopyFrom(from); return *this; } - inline SourcePosition& operator=(SourcePosition&& from) noexcept { + inline SourceInfo& operator=(SourceInfo&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -121,240 +131,196 @@ class SourcePosition final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SourcePosition& default_instance() { + static const SourceInfo& default_instance() { return *internal_default_instance(); } - static inline const SourcePosition* internal_default_instance() { - return reinterpret_cast( - &_SourcePosition_default_instance_); + static inline const SourceInfo* internal_default_instance() { + return reinterpret_cast( + &_SourceInfo_default_instance_); } static constexpr int kIndexInFileMessages = - 2; + 1; - friend void swap(SourcePosition& a, SourcePosition& b) { + friend void swap(SourceInfo& a, SourceInfo& b) { a.Swap(&b); } - inline void Swap(SourcePosition* other) { + inline void Swap(SourceInfo* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SourcePosition* other) { + void UnsafeArenaSwap(SourceInfo* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SourcePosition* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SourcePosition& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SourcePosition& from) { - SourcePosition::MergeImpl(*this, from); + SourceInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SourceInfo& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const SourceInfo& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(SourcePosition* other); + void SetCachedSize(int size) const final; + void InternalSwap(SourceInfo* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.expr.v1beta1.SourcePosition"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1beta1.SourceInfo"; } protected: - explicit SourcePosition(::google::protobuf::Arena* arena); - SourcePosition(::google::protobuf::Arena* arena, const SourcePosition& from); + explicit SourceInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- + // accessors ------------------------------------------------------- enum : int { - kLocationFieldNumber = 1, - kOffsetFieldNumber = 2, - kLineFieldNumber = 3, - kColumnFieldNumber = 4, + kLineOffsetsFieldNumber = 3, + kPositionsFieldNumber = 4, + kLocationFieldNumber = 2, }; - // string location = 1 [json_name = "location"]; - void clear_location() ; - const std::string& location() const; - template - void set_location(Arg_&& arg, Args_... args); - std::string* mutable_location(); - PROTOBUF_NODISCARD std::string* release_location(); - void set_allocated_location(std::string* value); - + // repeated int32 line_offsets = 3 [json_name = "lineOffsets"]; + int line_offsets_size() const; private: - const std::string& _internal_location() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_location( - const std::string& value); - std::string* _internal_mutable_location(); - + int _internal_line_offsets_size() const; public: - // int32 offset = 2 [json_name = "offset"]; - void clear_offset() ; - ::int32_t offset() const; - void set_offset(::int32_t value); - + void clear_line_offsets(); private: - ::int32_t _internal_offset() const; - void _internal_set_offset(::int32_t value); - + int32_t _internal_line_offsets(int index) const; + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& + _internal_line_offsets() const; + void _internal_add_line_offsets(int32_t value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* + _internal_mutable_line_offsets(); public: - // int32 line = 3 [json_name = "line"]; - void clear_line() ; - ::int32_t line() const; - void set_line(::int32_t value); + int32_t line_offsets(int index) const; + void set_line_offsets(int index, int32_t value); + void add_line_offsets(int32_t value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& + line_offsets() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* + mutable_line_offsets(); + // map positions = 4 [json_name = "positions"]; + int positions_size() const; private: - ::int32_t _internal_line() const; - void _internal_set_line(::int32_t value); - + int _internal_positions_size() const; public: - // int32 column = 4 [json_name = "column"]; - void clear_column() ; - ::int32_t column() const; - void set_column(::int32_t value); - + void clear_positions(); private: - ::int32_t _internal_column() const; - void _internal_set_column(::int32_t value); + const ::PROTOBUF_NAMESPACE_ID::Map< int32_t, int32_t >& + _internal_positions() const; + ::PROTOBUF_NAMESPACE_ID::Map< int32_t, int32_t >* + _internal_mutable_positions(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< int32_t, int32_t >& + positions() const; + ::PROTOBUF_NAMESPACE_ID::Map< int32_t, int32_t >* + mutable_positions(); + // string location = 2 [json_name = "location"]; + void clear_location(); + const std::string& location() const; + template + void set_location(ArgT0&& arg0, ArgT... args); + std::string* mutable_location(); + PROTOBUF_NODISCARD std::string* release_location(); + void set_allocated_location(std::string* location); + private: + const std::string& _internal_location() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_location(const std::string& value); + std::string* _internal_mutable_location(); public: - // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.SourcePosition) + + // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.SourceInfo) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 0, - 55, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr location_; - ::int32_t offset_; - ::int32_t line_; - ::int32_t column_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto; -};// ------------------------------------------------------------------- - -class SourceInfo_PositionsEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry< - SourceInfo_PositionsEntry_DoNotUse, ::int32_t, ::int32_t, - ::google::protobuf::internal::WireFormatLite::TYPE_INT32, - ::google::protobuf::internal::WireFormatLite::TYPE_INT32> { - public: - using SuperType = ::google::protobuf::internal::MapEntry< - SourceInfo_PositionsEntry_DoNotUse, ::int32_t, ::int32_t, - ::google::protobuf::internal::WireFormatLite::TYPE_INT32, - ::google::protobuf::internal::WireFormatLite::TYPE_INT32>; - SourceInfo_PositionsEntry_DoNotUse(); - template - explicit PROTOBUF_CONSTEXPR SourceInfo_PositionsEntry_DoNotUse( - ::google::protobuf::internal::ConstantInitialized); - explicit SourceInfo_PositionsEntry_DoNotUse(::google::protobuf::Arena* arena); - static const SourceInfo_PositionsEntry_DoNotUse* internal_default_instance() { - return reinterpret_cast( - &_SourceInfo_PositionsEntry_DoNotUse_default_instance_); - } - static bool ValidateKey(void*) { return true; } - static bool ValidateValue(void*) { return true; } - ::google::protobuf::Metadata GetMetadata() const final; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > line_offsets_; + mutable std::atomic _line_offsets_cached_byte_size_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + SourceInfo_PositionsEntry_DoNotUse, + int32_t, int32_t, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32> positions_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr location_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto; }; // ------------------------------------------------------------------- -class SourceInfo final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.SourceInfo) */ { +class SourcePosition final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.SourcePosition) */ { public: - inline SourceInfo() : SourceInfo(nullptr) {} - ~SourceInfo() override; - template - explicit PROTOBUF_CONSTEXPR SourceInfo(::google::protobuf::internal::ConstantInitialized); + inline SourcePosition() : SourcePosition(nullptr) {} + ~SourcePosition() override; + explicit PROTOBUF_CONSTEXPR SourcePosition(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline SourceInfo(const SourceInfo& from) - : SourceInfo(nullptr, from) {} - SourceInfo(SourceInfo&& from) noexcept - : SourceInfo() { + SourcePosition(const SourcePosition& from); + SourcePosition(SourcePosition&& from) noexcept + : SourcePosition() { *this = ::std::move(from); } - inline SourceInfo& operator=(const SourceInfo& from) { + inline SourcePosition& operator=(const SourcePosition& from) { CopyFrom(from); return *this; } - inline SourceInfo& operator=(SourceInfo&& from) noexcept { + inline SourcePosition& operator=(SourcePosition&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -364,336 +330,289 @@ class SourceInfo final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SourceInfo& default_instance() { + static const SourcePosition& default_instance() { return *internal_default_instance(); } - static inline const SourceInfo* internal_default_instance() { - return reinterpret_cast( - &_SourceInfo_default_instance_); + static inline const SourcePosition* internal_default_instance() { + return reinterpret_cast( + &_SourcePosition_default_instance_); } static constexpr int kIndexInFileMessages = - 1; + 2; - friend void swap(SourceInfo& a, SourceInfo& b) { + friend void swap(SourcePosition& a, SourcePosition& b) { a.Swap(&b); } - inline void Swap(SourceInfo* other) { + inline void Swap(SourcePosition* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SourceInfo* other) { + void UnsafeArenaSwap(SourcePosition* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SourceInfo* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SourceInfo& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SourceInfo& from) { - SourceInfo::MergeImpl(*this, from); + SourcePosition* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SourcePosition& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const SourcePosition& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(SourceInfo* other); + void SetCachedSize(int size) const final; + void InternalSwap(SourcePosition* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.expr.v1beta1.SourceInfo"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1beta1.SourcePosition"; } protected: - explicit SourceInfo(::google::protobuf::Arena* arena); - SourceInfo(::google::protobuf::Arena* arena, const SourceInfo& from); + explicit SourcePosition(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- - // accessors ------------------------------------------------------- enum : int { - kLineOffsetsFieldNumber = 3, - kPositionsFieldNumber = 4, - kLocationFieldNumber = 2, + kLocationFieldNumber = 1, + kOffsetFieldNumber = 2, + kLineFieldNumber = 3, + kColumnFieldNumber = 4, }; - // repeated int32 line_offsets = 3 [json_name = "lineOffsets"]; - int line_offsets_size() const; + // string location = 1 [json_name = "location"]; + void clear_location(); + const std::string& location() const; + template + void set_location(ArgT0&& arg0, ArgT... args); + std::string* mutable_location(); + PROTOBUF_NODISCARD std::string* release_location(); + void set_allocated_location(std::string* location); private: - int _internal_line_offsets_size() const; - + const std::string& _internal_location() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_location(const std::string& value); + std::string* _internal_mutable_location(); public: - void clear_line_offsets() ; - ::int32_t line_offsets(int index) const; - void set_line_offsets(int index, ::int32_t value); - void add_line_offsets(::int32_t value); - const ::google::protobuf::RepeatedField<::int32_t>& line_offsets() const; - ::google::protobuf::RepeatedField<::int32_t>* mutable_line_offsets(); + // int32 offset = 2 [json_name = "offset"]; + void clear_offset(); + int32_t offset() const; + void set_offset(int32_t value); private: - const ::google::protobuf::RepeatedField<::int32_t>& _internal_line_offsets() const; - ::google::protobuf::RepeatedField<::int32_t>* _internal_mutable_line_offsets(); - - public: - // map positions = 4 [json_name = "positions"]; - int positions_size() const; - private: - int _internal_positions_size() const; - + int32_t _internal_offset() const; + void _internal_set_offset(int32_t value); public: - void clear_positions() ; - const ::google::protobuf::Map<::int32_t, ::int32_t>& positions() const; - ::google::protobuf::Map<::int32_t, ::int32_t>* mutable_positions(); + // int32 line = 3 [json_name = "line"]; + void clear_line(); + int32_t line() const; + void set_line(int32_t value); private: - const ::google::protobuf::Map<::int32_t, ::int32_t>& _internal_positions() const; - ::google::protobuf::Map<::int32_t, ::int32_t>* _internal_mutable_positions(); - + int32_t _internal_line() const; + void _internal_set_line(int32_t value); public: - // string location = 2 [json_name = "location"]; - void clear_location() ; - const std::string& location() const; - template - void set_location(Arg_&& arg, Args_... args); - std::string* mutable_location(); - PROTOBUF_NODISCARD std::string* release_location(); - void set_allocated_location(std::string* value); + // int32 column = 4 [json_name = "column"]; + void clear_column(); + int32_t column() const; + void set_column(int32_t value); private: - const std::string& _internal_location() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_location( - const std::string& value); - std::string* _internal_mutable_location(); - + int32_t _internal_column() const; + void _internal_set_column(int32_t value); public: - // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.SourceInfo) + + // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.SourcePosition) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 3, 1, - 51, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedField<::int32_t> line_offsets_; - mutable ::google::protobuf::internal::CachedSize _line_offsets_cached_byte_size_; - ::google::protobuf::internal::MapField - positions_; - ::google::protobuf::internal::ArenaStringPtr location_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr location_; + int32_t offset_; + int32_t line_; + int32_t column_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto; }; - // =================================================================== - - // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ // ------------------------------------------------------------------- -// ------------------------------------------------------------------- - // SourceInfo // string location = 2 [json_name = "location"]; inline void SourceInfo::clear_location() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.location_.ClearToEmpty(); + location_.ClearToEmpty(); } -inline const std::string& SourceInfo::location() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& SourceInfo::location() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.SourceInfo.location) return _internal_location(); } -template -inline PROTOBUF_ALWAYS_INLINE void SourceInfo::set_location(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.location_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void SourceInfo::set_location(ArgT0&& arg0, ArgT... args) { + + location_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.SourceInfo.location) } -inline std::string* SourceInfo::mutable_location() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* SourceInfo::mutable_location() { std::string* _s = _internal_mutable_location(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.SourceInfo.location) return _s; } inline const std::string& SourceInfo::_internal_location() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.location_.Get(); + return location_.Get(); } inline void SourceInfo::_internal_set_location(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.location_.Set(value, GetArena()); + + location_.Set(value, GetArenaForAllocation()); } inline std::string* SourceInfo::_internal_mutable_location() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.location_.Mutable( GetArena()); + + return location_.Mutable(GetArenaForAllocation()); } inline std::string* SourceInfo::release_location() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.SourceInfo.location) - return _impl_.location_.Release(); -} -inline void SourceInfo::set_allocated_location(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.location_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.location_.IsDefault()) { - _impl_.location_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return location_.Release(); +} +inline void SourceInfo::set_allocated_location(std::string* location) { + if (location != nullptr) { + + } else { + + } + location_.SetAllocated(location, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (location_.IsDefault()) { + location_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.SourceInfo.location) } // repeated int32 line_offsets = 3 [json_name = "lineOffsets"]; inline int SourceInfo::_internal_line_offsets_size() const { - return _internal_line_offsets().size(); + return line_offsets_.size(); } inline int SourceInfo::line_offsets_size() const { return _internal_line_offsets_size(); } inline void SourceInfo::clear_line_offsets() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.line_offsets_.Clear(); + line_offsets_.Clear(); } -inline ::int32_t SourceInfo::line_offsets(int index) const { +inline int32_t SourceInfo::_internal_line_offsets(int index) const { + return line_offsets_.Get(index); +} +inline int32_t SourceInfo::line_offsets(int index) const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.SourceInfo.line_offsets) - return _internal_line_offsets().Get(index); + return _internal_line_offsets(index); } -inline void SourceInfo::set_line_offsets(int index, ::int32_t value) { - _internal_mutable_line_offsets()->Set(index, value); +inline void SourceInfo::set_line_offsets(int index, int32_t value) { + line_offsets_.Set(index, value); // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.SourceInfo.line_offsets) } -inline void SourceInfo::add_line_offsets(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_line_offsets()->Add(value); +inline void SourceInfo::_internal_add_line_offsets(int32_t value) { + line_offsets_.Add(value); +} +inline void SourceInfo::add_line_offsets(int32_t value) { + _internal_add_line_offsets(value); // @@protoc_insertion_point(field_add:google.api.expr.v1beta1.SourceInfo.line_offsets) } -inline const ::google::protobuf::RepeatedField<::int32_t>& SourceInfo::line_offsets() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& +SourceInfo::_internal_line_offsets() const { + return line_offsets_; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& +SourceInfo::line_offsets() const { // @@protoc_insertion_point(field_list:google.api.expr.v1beta1.SourceInfo.line_offsets) return _internal_line_offsets(); } -inline ::google::protobuf::RepeatedField<::int32_t>* SourceInfo::mutable_line_offsets() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* +SourceInfo::_internal_mutable_line_offsets() { + return &line_offsets_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* +SourceInfo::mutable_line_offsets() { // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1beta1.SourceInfo.line_offsets) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _internal_mutable_line_offsets(); } -inline const ::google::protobuf::RepeatedField<::int32_t>& SourceInfo::_internal_line_offsets() - const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.line_offsets_; -} -inline ::google::protobuf::RepeatedField<::int32_t>* SourceInfo::_internal_mutable_line_offsets() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.line_offsets_; -} // map positions = 4 [json_name = "positions"]; inline int SourceInfo::_internal_positions_size() const { - return _internal_positions().size(); + return positions_.size(); } inline int SourceInfo::positions_size() const { return _internal_positions_size(); } inline void SourceInfo::clear_positions() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.positions_.Clear(); + positions_.Clear(); } -inline const ::google::protobuf::Map<::int32_t, ::int32_t>& SourceInfo::_internal_positions() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.positions_.GetMap(); +inline const ::PROTOBUF_NAMESPACE_ID::Map< int32_t, int32_t >& +SourceInfo::_internal_positions() const { + return positions_.GetMap(); } -inline const ::google::protobuf::Map<::int32_t, ::int32_t>& SourceInfo::positions() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Map< int32_t, int32_t >& +SourceInfo::positions() const { // @@protoc_insertion_point(field_map:google.api.expr.v1beta1.SourceInfo.positions) return _internal_positions(); } -inline ::google::protobuf::Map<::int32_t, ::int32_t>* SourceInfo::_internal_mutable_positions() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.positions_.MutableMap(); +inline ::PROTOBUF_NAMESPACE_ID::Map< int32_t, int32_t >* +SourceInfo::_internal_mutable_positions() { + return positions_.MutableMap(); } -inline ::google::protobuf::Map<::int32_t, ::int32_t>* SourceInfo::mutable_positions() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::Map< int32_t, int32_t >* +SourceInfo::mutable_positions() { // @@protoc_insertion_point(field_mutable_map:google.api.expr.v1beta1.SourceInfo.positions) return _internal_mutable_positions(); } @@ -704,139 +623,130 @@ inline ::google::protobuf::Map<::int32_t, ::int32_t>* SourceInfo::mutable_positi // string location = 1 [json_name = "location"]; inline void SourcePosition::clear_location() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.location_.ClearToEmpty(); + location_.ClearToEmpty(); } -inline const std::string& SourcePosition::location() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& SourcePosition::location() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.SourcePosition.location) return _internal_location(); } -template -inline PROTOBUF_ALWAYS_INLINE void SourcePosition::set_location(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.location_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void SourcePosition::set_location(ArgT0&& arg0, ArgT... args) { + + location_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.SourcePosition.location) } -inline std::string* SourcePosition::mutable_location() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* SourcePosition::mutable_location() { std::string* _s = _internal_mutable_location(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.SourcePosition.location) return _s; } inline const std::string& SourcePosition::_internal_location() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.location_.Get(); + return location_.Get(); } inline void SourcePosition::_internal_set_location(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.location_.Set(value, GetArena()); + + location_.Set(value, GetArenaForAllocation()); } inline std::string* SourcePosition::_internal_mutable_location() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.location_.Mutable( GetArena()); + + return location_.Mutable(GetArenaForAllocation()); } inline std::string* SourcePosition::release_location() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.SourcePosition.location) - return _impl_.location_.Release(); -} -inline void SourcePosition::set_allocated_location(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.location_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.location_.IsDefault()) { - _impl_.location_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return location_.Release(); +} +inline void SourcePosition::set_allocated_location(std::string* location) { + if (location != nullptr) { + + } else { + + } + location_.SetAllocated(location, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (location_.IsDefault()) { + location_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.SourcePosition.location) } // int32 offset = 2 [json_name = "offset"]; inline void SourcePosition::clear_offset() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.offset_ = 0; + offset_ = 0; } -inline ::int32_t SourcePosition::offset() const { +inline int32_t SourcePosition::_internal_offset() const { + return offset_; +} +inline int32_t SourcePosition::offset() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.SourcePosition.offset) return _internal_offset(); } -inline void SourcePosition::set_offset(::int32_t value) { +inline void SourcePosition::_internal_set_offset(int32_t value) { + + offset_ = value; +} +inline void SourcePosition::set_offset(int32_t value) { _internal_set_offset(value); // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.SourcePosition.offset) } -inline ::int32_t SourcePosition::_internal_offset() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.offset_; -} -inline void SourcePosition::_internal_set_offset(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.offset_ = value; -} // int32 line = 3 [json_name = "line"]; inline void SourcePosition::clear_line() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.line_ = 0; + line_ = 0; +} +inline int32_t SourcePosition::_internal_line() const { + return line_; } -inline ::int32_t SourcePosition::line() const { +inline int32_t SourcePosition::line() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.SourcePosition.line) return _internal_line(); } -inline void SourcePosition::set_line(::int32_t value) { +inline void SourcePosition::_internal_set_line(int32_t value) { + + line_ = value; +} +inline void SourcePosition::set_line(int32_t value) { _internal_set_line(value); // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.SourcePosition.line) } -inline ::int32_t SourcePosition::_internal_line() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.line_; -} -inline void SourcePosition::_internal_set_line(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.line_ = value; -} // int32 column = 4 [json_name = "column"]; inline void SourcePosition::clear_column() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.column_ = 0; + column_ = 0; +} +inline int32_t SourcePosition::_internal_column() const { + return column_; } -inline ::int32_t SourcePosition::column() const { +inline int32_t SourcePosition::column() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.SourcePosition.column) return _internal_column(); } -inline void SourcePosition::set_column(::int32_t value) { +inline void SourcePosition::_internal_set_column(int32_t value) { + + column_ = value; +} +inline void SourcePosition::set_column(int32_t value) { _internal_set_column(value); // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.SourcePosition.column) } -inline ::int32_t SourcePosition::_internal_column() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.column_; -} -inline void SourcePosition::_internal_set_column(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.column_ = value; -} #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) + } // namespace v1beta1 } // namespace expr } // namespace api } // namespace google - // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1beta1_2fsource_2eproto diff --git a/src/viam/api/google/api/expr/v1beta1/value.grpc.pb.cc b/src/viam/api/google/api/expr/v1beta1/value.grpc.pb.cc index 800e6fc2e..3f9c3d6a5 100644 --- a/src/viam/api/google/api/expr/v1beta1/value.grpc.pb.cc +++ b/src/viam/api/google/api/expr/v1beta1/value.grpc.pb.cc @@ -6,19 +6,19 @@ #include "google/api/expr/v1beta1/value.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace google { namespace api { namespace expr { diff --git a/src/viam/api/google/api/expr/v1beta1/value.grpc.pb.h b/src/viam/api/google/api/expr/v1beta1/value.grpc.pb.h index d351e4f6d..fe4788f51 100644 --- a/src/viam/api/google/api/expr/v1beta1/value.grpc.pb.h +++ b/src/viam/api/google/api/expr/v1beta1/value.grpc.pb.h @@ -23,23 +23,24 @@ #include "google/api/expr/v1beta1/value.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace google { namespace api { diff --git a/src/viam/api/google/api/expr/v1beta1/value.pb.cc b/src/viam/api/google/api/expr/v1beta1/value.pb.cc index 51f6c4aa7..5ace5272b 100644 --- a/src/viam/api/google/api/expr/v1beta1/value.pb.cc +++ b/src/viam/api/google/api/expr/v1beta1/value.pb.cc @@ -4,719 +4,715 @@ #include "google/api/expr/v1beta1/value.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace google { namespace api { namespace expr { namespace v1beta1 { - -inline constexpr EnumValue::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : type_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - value_{0}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR EnumValue::EnumValue(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_CONSTEXPR Value::Value( + ::_pbi::ConstantInitialized) + : _oneof_case_{}{} +struct ValueDefaultTypeInternal { + PROTOBUF_CONSTEXPR ValueDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ValueDefaultTypeInternal() {} + union { + Value _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ValueDefaultTypeInternal _Value_default_instance_; +PROTOBUF_CONSTEXPR EnumValue::EnumValue( + ::_pbi::ConstantInitialized) + : type_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , value_(0){} struct EnumValueDefaultTypeInternal { - PROTOBUF_CONSTEXPR EnumValueDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR EnumValueDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~EnumValueDefaultTypeInternal() {} union { EnumValue _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EnumValueDefaultTypeInternal _EnumValue_default_instance_; - -inline constexpr ListValue::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : values_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR ListValue::ListValue(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EnumValueDefaultTypeInternal _EnumValue_default_instance_; +PROTOBUF_CONSTEXPR ListValue::ListValue( + ::_pbi::ConstantInitialized) + : values_(){} struct ListValueDefaultTypeInternal { - PROTOBUF_CONSTEXPR ListValueDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ListValueDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~ListValueDefaultTypeInternal() {} union { ListValue _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListValueDefaultTypeInternal _ListValue_default_instance_; - -inline constexpr MapValue::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : entries_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR MapValue::MapValue(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct MapValueDefaultTypeInternal { - PROTOBUF_CONSTEXPR MapValueDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~MapValueDefaultTypeInternal() {} - union { - MapValue _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MapValueDefaultTypeInternal _MapValue_default_instance_; - -inline constexpr MapValue_Entry::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - key_{nullptr}, - value_{nullptr} {} - -template -PROTOBUF_CONSTEXPR MapValue_Entry::MapValue_Entry(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListValueDefaultTypeInternal _ListValue_default_instance_; +PROTOBUF_CONSTEXPR MapValue_Entry::MapValue_Entry( + ::_pbi::ConstantInitialized) + : key_(nullptr) + , value_(nullptr){} struct MapValue_EntryDefaultTypeInternal { - PROTOBUF_CONSTEXPR MapValue_EntryDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR MapValue_EntryDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~MapValue_EntryDefaultTypeInternal() {} union { MapValue_Entry _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MapValue_EntryDefaultTypeInternal _MapValue_Entry_default_instance_; - -inline constexpr Value::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : kind_{}, - _cached_size_{0}, - _oneof_case_{} {} - -template -PROTOBUF_CONSTEXPR Value::Value(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ValueDefaultTypeInternal { - PROTOBUF_CONSTEXPR ValueDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ValueDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MapValue_EntryDefaultTypeInternal _MapValue_Entry_default_instance_; +PROTOBUF_CONSTEXPR MapValue::MapValue( + ::_pbi::ConstantInitialized) + : entries_(){} +struct MapValueDefaultTypeInternal { + PROTOBUF_CONSTEXPR MapValueDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~MapValueDefaultTypeInternal() {} union { - Value _instance; + MapValue _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ValueDefaultTypeInternal _Value_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MapValueDefaultTypeInternal _MapValue_default_instance_; } // namespace v1beta1 } // namespace expr } // namespace api } // namespace google static ::_pb::Metadata file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto[5]; -static constexpr const ::_pb::EnumDescriptor** - file_level_enum_descriptors_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto = nullptr; -const ::uint32_t TableStruct_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Value, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Value, _impl_._oneof_case_[0]), - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Value, _impl_.kind_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::EnumValue, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::EnumValue, _impl_.type_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::EnumValue, _impl_.value_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::ListValue, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::ListValue, _impl_.values_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::MapValue_Entry, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::MapValue_Entry, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::MapValue_Entry, _impl_.key_), - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::MapValue_Entry, _impl_.value_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::MapValue, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::MapValue, _impl_.entries_), +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto = nullptr; + +const uint32_t TableStruct_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Value, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Value, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Value, kind_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::EnumValue, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::EnumValue, type_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::EnumValue, value_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::ListValue, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::ListValue, values_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::MapValue_Entry, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::MapValue_Entry, key_), + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::MapValue_Entry, value_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::MapValue, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::MapValue, entries_), }; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, -1, -1, sizeof(::google::api::expr::v1beta1::Value)}, - {21, -1, -1, sizeof(::google::api::expr::v1beta1::EnumValue)}, - {31, -1, -1, sizeof(::google::api::expr::v1beta1::ListValue)}, - {40, 50, -1, sizeof(::google::api::expr::v1beta1::MapValue_Entry)}, - {52, -1, -1, sizeof(::google::api::expr::v1beta1::MapValue)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::google::api::expr::v1beta1::Value)}, + { 19, -1, -1, sizeof(::google::api::expr::v1beta1::EnumValue)}, + { 27, -1, -1, sizeof(::google::api::expr::v1beta1::ListValue)}, + { 34, -1, -1, sizeof(::google::api::expr::v1beta1::MapValue_Entry)}, + { 42, -1, -1, sizeof(::google::api::expr::v1beta1::MapValue)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::google::api::expr::v1beta1::_Value_default_instance_._instance, - &::google::api::expr::v1beta1::_EnumValue_default_instance_._instance, - &::google::api::expr::v1beta1::_ListValue_default_instance_._instance, - &::google::api::expr::v1beta1::_MapValue_Entry_default_instance_._instance, - &::google::api::expr::v1beta1::_MapValue_default_instance_._instance, -}; -const char descriptor_table_protodef_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n#google/api/expr/v1beta1/value.proto\022\027g" - "oogle.api.expr.v1beta1\032\031google/protobuf/" - "any.proto\032\034google/protobuf/struct.proto\"" - "\312\004\n\005Value\022;\n\nnull_value\030\001 \001(\0162\032.google.p" - "rotobuf.NullValueH\000R\tnullValue\022\037\n\nbool_v" - "alue\030\002 \001(\010H\000R\tboolValue\022!\n\013int64_value\030\003" - " \001(\003H\000R\nint64Value\022#\n\014uint64_value\030\004 \001(\004" - "H\000R\013uint64Value\022#\n\014double_value\030\005 \001(\001H\000R" - "\013doubleValue\022#\n\014string_value\030\006 \001(\tH\000R\013st" - "ringValue\022!\n\013bytes_value\030\007 \001(\014H\000R\nbytesV" - "alue\022C\n\nenum_value\030\t \001(\0132\".google.api.ex" - "pr.v1beta1.EnumValueH\000R\tenumValue\0229\n\014obj" - "ect_value\030\n \001(\0132\024.google.protobuf.AnyH\000R" - "\013objectValue\022@\n\tmap_value\030\013 \001(\0132!.google" - ".api.expr.v1beta1.MapValueH\000R\010mapValue\022C" - "\n\nlist_value\030\014 \001(\0132\".google.api.expr.v1b" - "eta1.ListValueH\000R\tlistValue\022\037\n\ntype_valu" - "e\030\017 \001(\tH\000R\ttypeValueB\006\n\004kind\"5\n\tEnumValu" - "e\022\022\n\004type\030\001 \001(\tR\004type\022\024\n\005value\030\002 \001(\005R\005va" - "lue\"C\n\tListValue\0226\n\006values\030\001 \003(\0132\036.googl" - "e.api.expr.v1beta1.ValueR\006values\"\276\001\n\010Map" - "Value\022A\n\007entries\030\001 \003(\0132\'.google.api.expr" - ".v1beta1.MapValue.EntryR\007entries\032o\n\005Entr" - "y\0220\n\003key\030\001 \001(\0132\036.google.api.expr.v1beta1" - ".ValueR\003key\0224\n\005value\030\002 \001(\0132\036.google.api." - "expr.v1beta1.ValueR\005valueB\350\001\n\033com.google" - ".api.expr.v1beta1B\nValueProtoP\001Z;google." - "golang.org/genproto/googleapis/api/expr/" - "v1beta1;expr\370\001\001\242\002\003GAE\252\002\027Google.Api.Expr." - "V1beta1\312\002\027Google\\Api\\Expr\\V1beta1\342\002#Goog" - "le\\Api\\Expr\\V1beta1\\GPBMetadata\352\002\032Google" - "::Api::Expr::V1beta1b\006proto3" + &::google::api::expr::v1beta1::_Value_default_instance_._instance, + &::google::api::expr::v1beta1::_EnumValue_default_instance_._instance, + &::google::api::expr::v1beta1::_ListValue_default_instance_._instance, + &::google::api::expr::v1beta1::_MapValue_Entry_default_instance_._instance, + &::google::api::expr::v1beta1::_MapValue_default_instance_._instance, }; -static const ::_pbi::DescriptorTable* const descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto_deps[2] = - { - &::descriptor_table_google_2fprotobuf_2fany_2eproto, - &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, + +const char descriptor_table_protodef_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n#google/api/expr/v1beta1/value.proto\022\027g" + "oogle.api.expr.v1beta1\032\031google/protobuf/" + "any.proto\032\034google/protobuf/struct.proto\"" + "\312\004\n\005Value\022;\n\nnull_value\030\001 \001(\0162\032.google.p" + "rotobuf.NullValueH\000R\tnullValue\022\037\n\nbool_v" + "alue\030\002 \001(\010H\000R\tboolValue\022!\n\013int64_value\030\003" + " \001(\003H\000R\nint64Value\022#\n\014uint64_value\030\004 \001(\004" + "H\000R\013uint64Value\022#\n\014double_value\030\005 \001(\001H\000R" + "\013doubleValue\022#\n\014string_value\030\006 \001(\tH\000R\013st" + "ringValue\022!\n\013bytes_value\030\007 \001(\014H\000R\nbytesV" + "alue\022C\n\nenum_value\030\t \001(\0132\".google.api.ex" + "pr.v1beta1.EnumValueH\000R\tenumValue\0229\n\014obj" + "ect_value\030\n \001(\0132\024.google.protobuf.AnyH\000R" + "\013objectValue\022@\n\tmap_value\030\013 \001(\0132!.google" + ".api.expr.v1beta1.MapValueH\000R\010mapValue\022C" + "\n\nlist_value\030\014 \001(\0132\".google.api.expr.v1b" + "eta1.ListValueH\000R\tlistValue\022\037\n\ntype_valu" + "e\030\017 \001(\tH\000R\ttypeValueB\006\n\004kind\"5\n\tEnumValu" + "e\022\022\n\004type\030\001 \001(\tR\004type\022\024\n\005value\030\002 \001(\005R\005va" + "lue\"C\n\tListValue\0226\n\006values\030\001 \003(\0132\036.googl" + "e.api.expr.v1beta1.ValueR\006values\"\276\001\n\010Map" + "Value\022A\n\007entries\030\001 \003(\0132\'.google.api.expr" + ".v1beta1.MapValue.EntryR\007entries\032o\n\005Entr" + "y\0220\n\003key\030\001 \001(\0132\036.google.api.expr.v1beta1" + ".ValueR\003key\0224\n\005value\030\002 \001(\0132\036.google.api." + "expr.v1beta1.ValueR\005valueBk\n\033com.google." + "api.expr.v1beta1B\nValueProtoP\001Z;google.g" + "olang.org/genproto/googleapis/api/expr/v" + "1beta1;expr\370\001\001b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto_deps[2] = { + &::descriptor_table_google_2fprotobuf_2fany_2eproto, + &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, }; -static ::absl::once_flag descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto_once; +static ::_pbi::once_flag descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto = { - false, - false, - 1268, - descriptor_table_protodef_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto, + false, false, 1142, descriptor_table_protodef_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto, "google/api/expr/v1beta1/value.proto", - &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto_once, - descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto_deps, - 2, - 5, - schemas, - file_default_instances, - TableStruct_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto::offsets, - file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto, - file_level_enum_descriptors_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto, + &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto_once, descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto_deps, 2, 5, + schemas, file_default_instances, TableStruct_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto::offsets, + file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto, file_level_enum_descriptors_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto, file_level_service_descriptors_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto_getter() { return &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto(&descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto(&descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto); namespace google { namespace api { namespace expr { namespace v1beta1 { + // =================================================================== class Value::_Internal { public: - static constexpr ::int32_t kOneofCaseOffset = - PROTOBUF_FIELD_OFFSET(::google::api::expr::v1beta1::Value, _impl_._oneof_case_); static const ::google::api::expr::v1beta1::EnumValue& enum_value(const Value* msg); - static const ::google::protobuf::Any& object_value(const Value* msg); + static const ::PROTOBUF_NAMESPACE_ID::Any& object_value(const Value* msg); static const ::google::api::expr::v1beta1::MapValue& map_value(const Value* msg); static const ::google::api::expr::v1beta1::ListValue& list_value(const Value* msg); }; -const ::google::api::expr::v1beta1::EnumValue& Value::_Internal::enum_value(const Value* msg) { - return *msg->_impl_.kind_.enum_value_; +const ::google::api::expr::v1beta1::EnumValue& +Value::_Internal::enum_value(const Value* msg) { + return *msg->kind_.enum_value_; } -const ::google::protobuf::Any& Value::_Internal::object_value(const Value* msg) { - return *msg->_impl_.kind_.object_value_; +const ::PROTOBUF_NAMESPACE_ID::Any& +Value::_Internal::object_value(const Value* msg) { + return *msg->kind_.object_value_; } -const ::google::api::expr::v1beta1::MapValue& Value::_Internal::map_value(const Value* msg) { - return *msg->_impl_.kind_.map_value_; +const ::google::api::expr::v1beta1::MapValue& +Value::_Internal::map_value(const Value* msg) { + return *msg->kind_.map_value_; } -const ::google::api::expr::v1beta1::ListValue& Value::_Internal::list_value(const Value* msg) { - return *msg->_impl_.kind_.list_value_; +const ::google::api::expr::v1beta1::ListValue& +Value::_Internal::list_value(const Value* msg) { + return *msg->kind_.list_value_; } void Value::set_allocated_enum_value(::google::api::expr::v1beta1::EnumValue* enum_value) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_kind(); if (enum_value) { - ::google::protobuf::Arena* submessage_arena = enum_value->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(enum_value); if (message_arena != submessage_arena) { - enum_value = ::google::protobuf::internal::GetOwnedMessage(message_arena, enum_value, submessage_arena); + enum_value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, enum_value, submessage_arena); } set_has_enum_value(); - _impl_.kind_.enum_value_ = enum_value; + kind_.enum_value_ = enum_value; } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Value.enum_value) } -void Value::set_allocated_object_value(::google::protobuf::Any* object_value) { - ::google::protobuf::Arena* message_arena = GetArena(); +void Value::set_allocated_object_value(::PROTOBUF_NAMESPACE_ID::Any* object_value) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_kind(); if (object_value) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(object_value)->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(object_value)); if (message_arena != submessage_arena) { - object_value = ::google::protobuf::internal::GetOwnedMessage(message_arena, object_value, submessage_arena); + object_value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, object_value, submessage_arena); } set_has_object_value(); - _impl_.kind_.object_value_ = object_value; + kind_.object_value_ = object_value; } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Value.object_value) } void Value::clear_object_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() == kObjectValue) { - if (GetArena() == nullptr) { - delete _impl_.kind_.object_value_; + if (_internal_has_object_value()) { + if (GetArenaForAllocation() == nullptr) { + delete kind_.object_value_; } clear_has_kind(); } } void Value::set_allocated_map_value(::google::api::expr::v1beta1::MapValue* map_value) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_kind(); if (map_value) { - ::google::protobuf::Arena* submessage_arena = map_value->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(map_value); if (message_arena != submessage_arena) { - map_value = ::google::protobuf::internal::GetOwnedMessage(message_arena, map_value, submessage_arena); + map_value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, map_value, submessage_arena); } set_has_map_value(); - _impl_.kind_.map_value_ = map_value; + kind_.map_value_ = map_value; } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Value.map_value) } void Value::set_allocated_list_value(::google::api::expr::v1beta1::ListValue* list_value) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_kind(); if (list_value) { - ::google::protobuf::Arena* submessage_arena = list_value->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(list_value); if (message_arena != submessage_arena) { - list_value = ::google::protobuf::internal::GetOwnedMessage(message_arena, list_value, submessage_arena); + list_value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, list_value, submessage_arena); } set_has_list_value(); - _impl_.kind_.list_value_ = list_value; + kind_.list_value_ = list_value; } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Value.list_value) } -Value::Value(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Value::Value(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1beta1.Value) } -inline PROTOBUF_NDEBUG_INLINE Value::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : kind_{}, - _cached_size_{0}, - _oneof_case_{from._oneof_case_[0]} {} - -Value::Value( - ::google::protobuf::Arena* arena, - const Value& from) - : ::google::protobuf::Message(arena) { - Value* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - switch (kind_case()) { - case KIND_NOT_SET: - break; - case kNullValue: - _impl_.kind_.null_value_ = from._impl_.kind_.null_value_; - break; - case kBoolValue: - _impl_.kind_.bool_value_ = from._impl_.kind_.bool_value_; - break; - case kInt64Value: - _impl_.kind_.int64_value_ = from._impl_.kind_.int64_value_; - break; - case kUint64Value: - _impl_.kind_.uint64_value_ = from._impl_.kind_.uint64_value_; - break; - case kDoubleValue: - _impl_.kind_.double_value_ = from._impl_.kind_.double_value_; - break; - case kStringValue: - new (&_impl_.kind_.string_value_) decltype(_impl_.kind_.string_value_){arena, from._impl_.kind_.string_value_}; - break; - case kBytesValue: - new (&_impl_.kind_.bytes_value_) decltype(_impl_.kind_.bytes_value_){arena, from._impl_.kind_.bytes_value_}; - break; - case kEnumValue: - _impl_.kind_.enum_value_ = CreateMaybeMessage<::google::api::expr::v1beta1::EnumValue>(arena, *from._impl_.kind_.enum_value_); - break; - case kObjectValue: - _impl_.kind_.object_value_ = CreateMaybeMessage<::google::protobuf::Any>(arena, *from._impl_.kind_.object_value_); - break; - case kMapValue: - _impl_.kind_.map_value_ = CreateMaybeMessage<::google::api::expr::v1beta1::MapValue>(arena, *from._impl_.kind_.map_value_); - break; - case kListValue: - _impl_.kind_.list_value_ = CreateMaybeMessage<::google::api::expr::v1beta1::ListValue>(arena, *from._impl_.kind_.list_value_); - break; - case kTypeValue: - new (&_impl_.kind_.type_value_) decltype(_impl_.kind_.type_value_){arena, from._impl_.kind_.type_value_}; - break; - } - - // @@protoc_insertion_point(copy_constructor:google.api.expr.v1beta1.Value) -} -inline PROTOBUF_NDEBUG_INLINE Value::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : kind_{}, - _cached_size_{0}, - _oneof_case_{} {} - -inline void Value::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -Value::~Value() { - // @@protoc_insertion_point(destructor:google.api.expr.v1beta1.Value) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void Value::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - if (has_kind()) { - clear_kind(); - } - _impl_.~Impl_(); -} - -void Value::clear_kind() { -// @@protoc_insertion_point(one_of_clear_start:google.api.expr.v1beta1.Value) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - switch (kind_case()) { +Value::Value(const Value& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + clear_has_kind(); + switch (from.kind_case()) { case kNullValue: { - // No need to clear + _internal_set_null_value(from._internal_null_value()); break; } case kBoolValue: { - // No need to clear + _internal_set_bool_value(from._internal_bool_value()); break; } case kInt64Value: { - // No need to clear + _internal_set_int64_value(from._internal_int64_value()); break; } case kUint64Value: { - // No need to clear + _internal_set_uint64_value(from._internal_uint64_value()); break; } case kDoubleValue: { - // No need to clear + _internal_set_double_value(from._internal_double_value()); break; } case kStringValue: { - _impl_.kind_.string_value_.Destroy(); + _internal_set_string_value(from._internal_string_value()); break; } case kBytesValue: { - _impl_.kind_.bytes_value_.Destroy(); + _internal_set_bytes_value(from._internal_bytes_value()); break; } case kEnumValue: { - if (GetArena() == nullptr) { - delete _impl_.kind_.enum_value_; - } + _internal_mutable_enum_value()->::google::api::expr::v1beta1::EnumValue::MergeFrom(from._internal_enum_value()); break; } case kObjectValue: { - if (GetArena() == nullptr) { - delete _impl_.kind_.object_value_; - } + _internal_mutable_object_value()->::PROTOBUF_NAMESPACE_ID::Any::MergeFrom(from._internal_object_value()); break; } case kMapValue: { - if (GetArena() == nullptr) { - delete _impl_.kind_.map_value_; - } + _internal_mutable_map_value()->::google::api::expr::v1beta1::MapValue::MergeFrom(from._internal_map_value()); break; } case kListValue: { - if (GetArena() == nullptr) { - delete _impl_.kind_.list_value_; - } + _internal_mutable_list_value()->::google::api::expr::v1beta1::ListValue::MergeFrom(from._internal_list_value()); break; } case kTypeValue: { - _impl_.kind_.type_value_.Destroy(); + _internal_set_type_value(from._internal_type_value()); break; } case KIND_NOT_SET: { break; } } - _impl_._oneof_case_[0] = KIND_NOT_SET; + // @@protoc_insertion_point(copy_constructor:google.api.expr.v1beta1.Value) } - -PROTOBUF_NOINLINE void Value::Clear() { -// @@protoc_insertion_point(message_clear_start:google.api.expr.v1beta1.Value) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - clear_kind(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +inline void Value::SharedCtor() { +clear_has_kind(); } -const char* Value::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +Value::~Value() { + // @@protoc_insertion_point(destructor:google.api.expr.v1beta1.Value) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); } +inline void Value::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (has_kind()) { + clear_kind(); + } +} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 12, 4, 68, 2> Value::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 15, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294946944, // skipmap - offsetof(decltype(_table_), field_entries), - 12, // num_field_entries - 4, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Value_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // .google.protobuf.NullValue null_value = 1 [json_name = "nullValue"]; - {PROTOBUF_FIELD_OFFSET(Value, _impl_.kind_.null_value_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kOpenEnum)}, - // bool bool_value = 2 [json_name = "boolValue"]; - {PROTOBUF_FIELD_OFFSET(Value, _impl_.kind_.bool_value_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kBool)}, - // int64 int64_value = 3 [json_name = "int64Value"]; - {PROTOBUF_FIELD_OFFSET(Value, _impl_.kind_.int64_value_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kInt64)}, - // uint64 uint64_value = 4 [json_name = "uint64Value"]; - {PROTOBUF_FIELD_OFFSET(Value, _impl_.kind_.uint64_value_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kUInt64)}, - // double double_value = 5 [json_name = "doubleValue"]; - {PROTOBUF_FIELD_OFFSET(Value, _impl_.kind_.double_value_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kDouble)}, - // string string_value = 6 [json_name = "stringValue"]; - {PROTOBUF_FIELD_OFFSET(Value, _impl_.kind_.string_value_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // bytes bytes_value = 7 [json_name = "bytesValue"]; - {PROTOBUF_FIELD_OFFSET(Value, _impl_.kind_.bytes_value_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kBytes | ::_fl::kRepAString)}, - // .google.api.expr.v1beta1.EnumValue enum_value = 9 [json_name = "enumValue"]; - {PROTOBUF_FIELD_OFFSET(Value, _impl_.kind_.enum_value_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.protobuf.Any object_value = 10 [json_name = "objectValue"]; - {PROTOBUF_FIELD_OFFSET(Value, _impl_.kind_.object_value_), _Internal::kOneofCaseOffset + 0, 1, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.api.expr.v1beta1.MapValue map_value = 11 [json_name = "mapValue"]; - {PROTOBUF_FIELD_OFFSET(Value, _impl_.kind_.map_value_), _Internal::kOneofCaseOffset + 0, 2, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.api.expr.v1beta1.ListValue list_value = 12 [json_name = "listValue"]; - {PROTOBUF_FIELD_OFFSET(Value, _impl_.kind_.list_value_), _Internal::kOneofCaseOffset + 0, 3, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // string type_value = 15 [json_name = "typeValue"]; - {PROTOBUF_FIELD_OFFSET(Value, _impl_.kind_.type_value_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::expr::v1beta1::EnumValue>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Any>()}, - {::_pbi::TcParser::GetTable<::google::api::expr::v1beta1::MapValue>()}, - {::_pbi::TcParser::GetTable<::google::api::expr::v1beta1::ListValue>()}, - }}, {{ - "\35\0\0\0\0\0\14\0\0\0\0\0\12\0\0\0" - "google.api.expr.v1beta1.Value" - "string_value" - "type_value" - }}, -}; - -::uint8_t* Value::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.Value) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; +void Value::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +void Value::clear_kind() { +// @@protoc_insertion_point(one_of_clear_start:google.api.expr.v1beta1.Value) switch (kind_case()) { case kNullValue: { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_null_value(), target); + // No need to clear break; } case kBoolValue: { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 2, this->_internal_bool_value(), target); + // No need to clear break; } case kInt64Value: { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<3>( - stream, this->_internal_int64_value(), target); + // No need to clear break; } case kUint64Value: { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 4, this->_internal_uint64_value(), target); + // No need to clear break; } case kDoubleValue: { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 5, this->_internal_double_value(), target); + // No need to clear break; } case kStringValue: { - const std::string& _s = this->_internal_string_value(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.expr.v1beta1.Value.string_value"); - target = stream->WriteStringMaybeAliased(6, _s, target); + kind_.string_value_.Destroy(); break; } case kBytesValue: { - const std::string& _s = this->_internal_bytes_value(); - target = stream->WriteBytesMaybeAliased(7, _s, target); + kind_.bytes_value_.Destroy(); break; } case kEnumValue: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 9, _Internal::enum_value(this), - _Internal::enum_value(this).GetCachedSize(), target, stream); + if (GetArenaForAllocation() == nullptr) { + delete kind_.enum_value_; + } break; } case kObjectValue: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 10, _Internal::object_value(this), - _Internal::object_value(this).GetCachedSize(), target, stream); + if (GetArenaForAllocation() == nullptr) { + delete kind_.object_value_; + } break; } case kMapValue: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 11, _Internal::map_value(this), - _Internal::map_value(this).GetCachedSize(), target, stream); + if (GetArenaForAllocation() == nullptr) { + delete kind_.map_value_; + } break; } case kListValue: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 12, _Internal::list_value(this), - _Internal::list_value(this).GetCachedSize(), target, stream); + if (GetArenaForAllocation() == nullptr) { + delete kind_.list_value_; + } break; } case kTypeValue: { - const std::string& _s = this->_internal_type_value(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.expr.v1beta1.Value.type_value"); - target = stream->WriteStringMaybeAliased(15, _s, target); + kind_.type_value_.Destroy(); break; } - default: + case KIND_NOT_SET: { break; + } } + _oneof_case_[0] = KIND_NOT_SET; +} + + +void Value::Clear() { +// @@protoc_insertion_point(message_clear_start:google.api.expr.v1beta1.Value) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_kind(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Value::_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) { + // .google.protobuf.NullValue null_value = 1 [json_name = "nullValue"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_null_value(static_cast<::PROTOBUF_NAMESPACE_ID::NullValue>(val)); + } else + goto handle_unusual; + continue; + // bool bool_value = 2 [json_name = "boolValue"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _internal_set_bool_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int64 int64_value = 3 [json_name = "int64Value"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + _internal_set_int64_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // uint64 uint64_value = 4 [json_name = "uint64Value"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + _internal_set_uint64_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // double double_value = 5 [json_name = "doubleValue"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 41)) { + _internal_set_double_value(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // string string_value = 6 [json_name = "stringValue"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + auto str = _internal_mutable_string_value(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1beta1.Value.string_value")); + } else + goto handle_unusual; + continue; + // bytes bytes_value = 7 [json_name = "bytesValue"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + auto str = _internal_mutable_bytes_value(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1beta1.EnumValue enum_value = 9 [json_name = "enumValue"]; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { + ptr = ctx->ParseMessage(_internal_mutable_enum_value(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Any object_value = 10 [json_name = "objectValue"]; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { + ptr = ctx->ParseMessage(_internal_mutable_object_value(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1beta1.MapValue map_value = 11 [json_name = "mapValue"]; + case 11: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 90)) { + ptr = ctx->ParseMessage(_internal_mutable_map_value(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1beta1.ListValue list_value = 12 [json_name = "listValue"]; + case 12: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 98)) { + ptr = ctx->ParseMessage(_internal_mutable_list_value(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string type_value = 15 [json_name = "typeValue"]; + case 15: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 122)) { + auto str = _internal_mutable_type_value(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1beta1.Value.type_value")); + } 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* Value::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.Value) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .google.protobuf.NullValue null_value = 1 [json_name = "nullValue"]; + if (_internal_has_null_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this->_internal_null_value(), target); + } + + // bool bool_value = 2 [json_name = "boolValue"]; + if (_internal_has_bool_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_bool_value(), target); + } + + // int64 int64_value = 3 [json_name = "int64Value"]; + if (_internal_has_int64_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(3, this->_internal_int64_value(), target); + } + + // uint64 uint64_value = 4 [json_name = "uint64Value"]; + if (_internal_has_uint64_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(4, this->_internal_uint64_value(), target); + } + + // double double_value = 5 [json_name = "doubleValue"]; + if (_internal_has_double_value()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(5, this->_internal_double_value(), target); + } + + // string string_value = 6 [json_name = "stringValue"]; + if (_internal_has_string_value()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_string_value().data(), static_cast(this->_internal_string_value().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1beta1.Value.string_value"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_string_value(), target); + } + + // bytes bytes_value = 7 [json_name = "bytesValue"]; + if (_internal_has_bytes_value()) { + target = stream->WriteBytesMaybeAliased( + 7, this->_internal_bytes_value(), target); + } + + // .google.api.expr.v1beta1.EnumValue enum_value = 9 [json_name = "enumValue"]; + if (_internal_has_enum_value()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(9, _Internal::enum_value(this), + _Internal::enum_value(this).GetCachedSize(), target, stream); + } + + // .google.protobuf.Any object_value = 10 [json_name = "objectValue"]; + if (_internal_has_object_value()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(10, _Internal::object_value(this), + _Internal::object_value(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1beta1.MapValue map_value = 11 [json_name = "mapValue"]; + if (_internal_has_map_value()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(11, _Internal::map_value(this), + _Internal::map_value(this).GetCachedSize(), target, stream); + } + + // .google.api.expr.v1beta1.ListValue list_value = 12 [json_name = "listValue"]; + if (_internal_has_list_value()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(12, _Internal::list_value(this), + _Internal::list_value(this).GetCachedSize(), target, stream); + } + + // string type_value = 15 [json_name = "typeValue"]; + if (_internal_has_type_value()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_type_value().data(), static_cast(this->_internal_type_value().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1beta1.Value.type_value"); + target = stream->WriteStringMaybeAliased( + 15, this->_internal_type_value(), target); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1beta1.Value) return target; } -::size_t Value::ByteSizeLong() const { +size_t Value::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1beta1.Value) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -724,154 +720,158 @@ ::size_t Value::ByteSizeLong() const { // .google.protobuf.NullValue null_value = 1 [json_name = "nullValue"]; case kNullValue: { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_null_value()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_null_value()); break; } // bool bool_value = 2 [json_name = "boolValue"]; case kBoolValue: { - total_size += 2; + total_size += 1 + 1; break; } // int64 int64_value = 3 [json_name = "int64Value"]; case kInt64Value: { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( - this->_internal_int64_value()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_int64_value()); break; } // uint64 uint64_value = 4 [json_name = "uint64Value"]; case kUint64Value: { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_uint64_value()); + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_uint64_value()); break; } // double double_value = 5 [json_name = "doubleValue"]; case kDoubleValue: { - total_size += 9; + total_size += 1 + 8; break; } // string string_value = 6 [json_name = "stringValue"]; case kStringValue: { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_string_value()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_string_value()); break; } // bytes bytes_value = 7 [json_name = "bytesValue"]; case kBytesValue: { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_bytes_value()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_bytes_value()); break; } // .google.api.expr.v1beta1.EnumValue enum_value = 9 [json_name = "enumValue"]; case kEnumValue: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.kind_.enum_value_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *kind_.enum_value_); break; } // .google.protobuf.Any object_value = 10 [json_name = "objectValue"]; case kObjectValue: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.kind_.object_value_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *kind_.object_value_); break; } // .google.api.expr.v1beta1.MapValue map_value = 11 [json_name = "mapValue"]; case kMapValue: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.kind_.map_value_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *kind_.map_value_); break; } // .google.api.expr.v1beta1.ListValue list_value = 12 [json_name = "listValue"]; case kListValue: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.kind_.list_value_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *kind_.list_value_); break; } // string type_value = 15 [json_name = "typeValue"]; case kTypeValue: { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_type_value()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_type_value()); break; } case KIND_NOT_SET: { break; } } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Value::_class_data_ = { - Value::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Value::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Value::MergeImpl }; -const ::google::protobuf::Message::ClassData* Value::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Value::GetClassData() const { return &_class_data_; } + +void Value::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Value::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.Value) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Value::MergeFrom(const Value& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.Value) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; switch (from.kind_case()) { case kNullValue: { - _this->_internal_set_null_value(from._internal_null_value()); + _internal_set_null_value(from._internal_null_value()); break; } case kBoolValue: { - _this->_internal_set_bool_value(from._internal_bool_value()); + _internal_set_bool_value(from._internal_bool_value()); break; } case kInt64Value: { - _this->_internal_set_int64_value(from._internal_int64_value()); + _internal_set_int64_value(from._internal_int64_value()); break; } case kUint64Value: { - _this->_internal_set_uint64_value(from._internal_uint64_value()); + _internal_set_uint64_value(from._internal_uint64_value()); break; } case kDoubleValue: { - _this->_internal_set_double_value(from._internal_double_value()); + _internal_set_double_value(from._internal_double_value()); break; } case kStringValue: { - _this->_internal_set_string_value(from._internal_string_value()); + _internal_set_string_value(from._internal_string_value()); break; } case kBytesValue: { - _this->_internal_set_bytes_value(from._internal_bytes_value()); + _internal_set_bytes_value(from._internal_bytes_value()); break; } case kEnumValue: { - _this->_internal_mutable_enum_value()->::google::api::expr::v1beta1::EnumValue::MergeFrom( - from._internal_enum_value()); + _internal_mutable_enum_value()->::google::api::expr::v1beta1::EnumValue::MergeFrom(from._internal_enum_value()); break; } case kObjectValue: { - _this->_internal_mutable_object_value()->::google::protobuf::Any::MergeFrom( - from._internal_object_value()); + _internal_mutable_object_value()->::PROTOBUF_NAMESPACE_ID::Any::MergeFrom(from._internal_object_value()); break; } case kMapValue: { - _this->_internal_mutable_map_value()->::google::api::expr::v1beta1::MapValue::MergeFrom( - from._internal_map_value()); + _internal_mutable_map_value()->::google::api::expr::v1beta1::MapValue::MergeFrom(from._internal_map_value()); break; } case kListValue: { - _this->_internal_mutable_list_value()->::google::api::expr::v1beta1::ListValue::MergeFrom( - from._internal_list_value()); + _internal_mutable_list_value()->::google::api::expr::v1beta1::ListValue::MergeFrom(from._internal_list_value()); break; } case kTypeValue: { - _this->_internal_set_type_value(from._internal_type_value()); + _internal_set_type_value(from._internal_type_value()); break; } case KIND_NOT_SET: { break; } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Value::CopyFrom(const Value& from) { @@ -881,211 +881,213 @@ void Value::CopyFrom(const Value& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Value::IsInitialized() const { +bool Value::IsInitialized() const { return true; } -::_pbi::CachedSize* Value::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Value::InternalSwap(Value* PROTOBUF_RESTRICT other) { +void Value::InternalSwap(Value* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.kind_, other->_impl_.kind_); - swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); + swap(kind_, other->kind_); + swap(_oneof_case_[0], other->_oneof_case_[0]); } -::google::protobuf::Metadata Value::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Value::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto[0]); } + // =================================================================== class EnumValue::_Internal { public: }; -EnumValue::EnumValue(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +EnumValue::EnumValue(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1beta1.EnumValue) } -inline PROTOBUF_NDEBUG_INLINE EnumValue::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : type_(arena, from.type_), - _cached_size_{0} {} - -EnumValue::EnumValue( - ::google::protobuf::Arena* arena, - const EnumValue& from) - : ::google::protobuf::Message(arena) { - EnumValue* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.value_ = from._impl_.value_; - +EnumValue::EnumValue(const EnumValue& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + 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()); + } + value_ = from.value_; // @@protoc_insertion_point(copy_constructor:google.api.expr.v1beta1.EnumValue) } -inline PROTOBUF_NDEBUG_INLINE EnumValue::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : type_(arena), - _cached_size_{0} {} -inline void EnumValue::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.value_ = {}; +inline void EnumValue::SharedCtor() { +type_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + type_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +value_ = 0; } + EnumValue::~EnumValue() { // @@protoc_insertion_point(destructor:google.api.expr.v1beta1.EnumValue) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void EnumValue::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.type_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + type_.Destroy(); } -PROTOBUF_NOINLINE void EnumValue::Clear() { +void EnumValue::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void EnumValue::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1beta1.EnumValue) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.type_.ClearToEmpty(); - _impl_.value_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* EnumValue::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + type_.ClearToEmpty(); + value_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* EnumValue::_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 type = 1 [json_name = "type"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.expr.v1beta1.EnumValue.type")); + } else + goto handle_unusual; + continue; + // int32 value = 2 [json_name = "value"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + value_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 46, 2> EnumValue::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_EnumValue_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // int32 value = 2 [json_name = "value"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(EnumValue, _impl_.value_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(EnumValue, _impl_.value_)}}, - // string type = 1 [json_name = "type"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(EnumValue, _impl_.type_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string type = 1 [json_name = "type"]; - {PROTOBUF_FIELD_OFFSET(EnumValue, _impl_.type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // int32 value = 2 [json_name = "value"]; - {PROTOBUF_FIELD_OFFSET(EnumValue, _impl_.value_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - }}, - // no aux_entries - {{ - "\41\4\0\0\0\0\0\0" - "google.api.expr.v1beta1.EnumValue" - "type" - }}, -}; - -::uint8_t* EnumValue::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* EnumValue::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.EnumValue) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string type = 1 [json_name = "type"]; if (!this->_internal_type().empty()) { - const std::string& _s = this->_internal_type(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.expr.v1beta1.EnumValue.type"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_type().data(), static_cast(this->_internal_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.expr.v1beta1.EnumValue.type"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_type(), target); } // int32 value = 2 [json_name = "value"]; if (this->_internal_value() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<2>( - stream, this->_internal_value(), target); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_value(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1beta1.EnumValue) return target; } -::size_t EnumValue::ByteSizeLong() const { +size_t EnumValue::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1beta1.EnumValue) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string type = 1 [json_name = "type"]; if (!this->_internal_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_type()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_type()); } // int32 value = 2 [json_name = "value"]; if (this->_internal_value() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_value()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_value()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData EnumValue::_class_data_ = { - EnumValue::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EnumValue::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + EnumValue::MergeImpl }; -const ::google::protobuf::Message::ClassData* EnumValue::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EnumValue::GetClassData() const { return &_class_data_; } + +void EnumValue::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void EnumValue::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.EnumValue) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void EnumValue::MergeFrom(const EnumValue& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.EnumValue) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_type().empty()) { - _this->_internal_set_type(from._internal_type()); + _internal_set_type(from._internal_type()); } if (from._internal_value() != 0) { - _this->_internal_set_value(from._internal_value()); + _internal_set_value(from._internal_value()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void EnumValue::CopyFrom(const EnumValue& from) { @@ -1095,183 +1097,181 @@ void EnumValue::CopyFrom(const EnumValue& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool EnumValue::IsInitialized() const { +bool EnumValue::IsInitialized() const { return true; } -::_pbi::CachedSize* EnumValue::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void EnumValue::InternalSwap(EnumValue* PROTOBUF_RESTRICT other) { +void EnumValue::InternalSwap(EnumValue* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.type_, &other->_impl_.type_, arena); - swap(_impl_.value_, other->_impl_.value_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &type_, lhs_arena, + &other->type_, rhs_arena + ); + swap(value_, other->value_); } -::google::protobuf::Metadata EnumValue::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata EnumValue::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto[1]); } + // =================================================================== class ListValue::_Internal { public: }; -ListValue::ListValue(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ListValue::ListValue(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + values_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1beta1.ListValue) } -inline PROTOBUF_NDEBUG_INLINE ListValue::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : values_{visibility, arena, from.values_}, - _cached_size_{0} {} - -ListValue::ListValue( - ::google::protobuf::Arena* arena, - const ListValue& from) - : ::google::protobuf::Message(arena) { - ListValue* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +ListValue::ListValue(const ListValue& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + values_(from.values_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:google.api.expr.v1beta1.ListValue) } -inline PROTOBUF_NDEBUG_INLINE ListValue::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : values_{visibility, arena}, - _cached_size_{0} {} -inline void ListValue::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void ListValue::SharedCtor() { } + ListValue::~ListValue() { // @@protoc_insertion_point(destructor:google.api.expr.v1beta1.ListValue) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ListValue::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void ListValue::Clear() { +void ListValue::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ListValue::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1beta1.ListValue) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.values_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ListValue::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + values_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListValue::_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) { + // repeated .google.api.expr.v1beta1.Value values = 1 [json_name = "values"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_values(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ListValue::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ListValue_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .google.api.expr.v1beta1.Value values = 1 [json_name = "values"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ListValue, _impl_.values_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .google.api.expr.v1beta1.Value values = 1 [json_name = "values"]; - {PROTOBUF_FIELD_OFFSET(ListValue, _impl_.values_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::expr::v1beta1::Value>()}, - }}, {{ - }}, -}; - -::uint8_t* ListValue::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ListValue::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.ListValue) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .google.api.expr.v1beta1.Value values = 1 [json_name = "values"]; for (unsigned i = 0, n = static_cast(this->_internal_values_size()); i < n; i++) { - const auto& repfield = this->_internal_values().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_values(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1beta1.ListValue) return target; } -::size_t ListValue::ByteSizeLong() const { +size_t ListValue::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1beta1.ListValue) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .google.api.expr.v1beta1.Value values = 1 [json_name = "values"]; total_size += 1UL * this->_internal_values_size(); - for (const auto& msg : this->_internal_values()) { + for (const auto& msg : this->values_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ListValue::_class_data_ = { - ListValue::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListValue::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ListValue::MergeImpl }; -const ::google::protobuf::Message::ClassData* ListValue::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListValue::GetClassData() const { return &_class_data_; } + +void ListValue::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ListValue::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.ListValue) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ListValue::MergeFrom(const ListValue& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.ListValue) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_values()->MergeFrom( - from._internal_values()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + values_.MergeFrom(from.values_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ListValue::CopyFrom(const ListValue& from) { @@ -1281,254 +1281,227 @@ void ListValue::CopyFrom(const ListValue& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ListValue::IsInitialized() const { +bool ListValue::IsInitialized() const { return true; } -::_pbi::CachedSize* ListValue::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ListValue::InternalSwap(ListValue* PROTOBUF_RESTRICT other) { +void ListValue::InternalSwap(ListValue* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.values_.InternalSwap(&other->_impl_.values_); + values_.InternalSwap(&other->values_); } -::google::protobuf::Metadata ListValue::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ListValue::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto[2]); } + // =================================================================== class MapValue_Entry::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(MapValue_Entry, _impl_._has_bits_); static const ::google::api::expr::v1beta1::Value& key(const MapValue_Entry* msg); - static void set_has_key(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } static const ::google::api::expr::v1beta1::Value& value(const MapValue_Entry* msg); - static void set_has_value(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } }; -const ::google::api::expr::v1beta1::Value& MapValue_Entry::_Internal::key(const MapValue_Entry* msg) { - return *msg->_impl_.key_; +const ::google::api::expr::v1beta1::Value& +MapValue_Entry::_Internal::key(const MapValue_Entry* msg) { + return *msg->key_; } -const ::google::api::expr::v1beta1::Value& MapValue_Entry::_Internal::value(const MapValue_Entry* msg) { - return *msg->_impl_.value_; +const ::google::api::expr::v1beta1::Value& +MapValue_Entry::_Internal::value(const MapValue_Entry* msg) { + return *msg->value_; } -MapValue_Entry::MapValue_Entry(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +MapValue_Entry::MapValue_Entry(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1beta1.MapValue.Entry) } -inline PROTOBUF_NDEBUG_INLINE MapValue_Entry::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -MapValue_Entry::MapValue_Entry( - ::google::protobuf::Arena* arena, - const MapValue_Entry& from) - : ::google::protobuf::Message(arena) { - MapValue_Entry* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.key_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::api::expr::v1beta1::Value>(arena, *from._impl_.key_) - : nullptr; - _impl_.value_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::google::api::expr::v1beta1::Value>(arena, *from._impl_.value_) - : nullptr; - +MapValue_Entry::MapValue_Entry(const MapValue_Entry& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_key()) { + key_ = new ::google::api::expr::v1beta1::Value(*from.key_); + } else { + key_ = nullptr; + } + if (from._internal_has_value()) { + value_ = new ::google::api::expr::v1beta1::Value(*from.value_); + } else { + value_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:google.api.expr.v1beta1.MapValue.Entry) } -inline PROTOBUF_NDEBUG_INLINE MapValue_Entry::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void MapValue_Entry::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, key_), - 0, - offsetof(Impl_, value_) - - offsetof(Impl_, key_) + - sizeof(Impl_::value_)); +inline void MapValue_Entry::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&key_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&value_) - + reinterpret_cast(&key_)) + sizeof(value_)); } + MapValue_Entry::~MapValue_Entry() { // @@protoc_insertion_point(destructor:google.api.expr.v1beta1.MapValue.Entry) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void MapValue_Entry::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.key_; - delete _impl_.value_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete key_; + if (this != internal_default_instance()) delete value_; +} + +void MapValue_Entry::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void MapValue_Entry::Clear() { +void MapValue_Entry::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1beta1.MapValue.Entry) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.key_ != nullptr); - _impl_.key_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.value_ != nullptr); - _impl_.value_->Clear(); - } + if (GetArenaForAllocation() == nullptr && key_ != nullptr) { + delete key_; } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* MapValue_Entry::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + key_ = nullptr; + if (GetArenaForAllocation() == nullptr && value_ != nullptr) { + delete value_; + } + value_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* MapValue_Entry::_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) { + // .google.api.expr.v1beta1.Value key = 1 [json_name = "key"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_key(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.api.expr.v1beta1.Value value = 2 [json_name = "value"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_value(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 2, 0, 2> MapValue_Entry::_table_ = { - { - PROTOBUF_FIELD_OFFSET(MapValue_Entry, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_MapValue_Entry_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .google.api.expr.v1beta1.Value value = 2 [json_name = "value"]; - {::_pbi::TcParser::FastMtS1, - {18, 1, 1, PROTOBUF_FIELD_OFFSET(MapValue_Entry, _impl_.value_)}}, - // .google.api.expr.v1beta1.Value key = 1 [json_name = "key"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(MapValue_Entry, _impl_.key_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .google.api.expr.v1beta1.Value key = 1 [json_name = "key"]; - {PROTOBUF_FIELD_OFFSET(MapValue_Entry, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.api.expr.v1beta1.Value value = 2 [json_name = "value"]; - {PROTOBUF_FIELD_OFFSET(MapValue_Entry, _impl_.value_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::expr::v1beta1::Value>()}, - {::_pbi::TcParser::GetTable<::google::api::expr::v1beta1::Value>()}, - }}, {{ - }}, -}; - -::uint8_t* MapValue_Entry::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* MapValue_Entry::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.MapValue.Entry) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .google.api.expr.v1beta1.Value key = 1 [json_name = "key"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::key(this), + if (this->_internal_has_key()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::key(this), _Internal::key(this).GetCachedSize(), target, stream); } // .google.api.expr.v1beta1.Value value = 2 [json_name = "value"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::value(this), + if (this->_internal_has_value()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::value(this), _Internal::value(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1beta1.MapValue.Entry) return target; } -::size_t MapValue_Entry::ByteSizeLong() const { +size_t MapValue_Entry::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1beta1.MapValue.Entry) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // .google.api.expr.v1beta1.Value key = 1 [json_name = "key"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.key_); - } - - // .google.api.expr.v1beta1.Value value = 2 [json_name = "value"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.value_); - } + // .google.api.expr.v1beta1.Value key = 1 [json_name = "key"]; + if (this->_internal_has_key()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *key_); + } + // .google.api.expr.v1beta1.Value value = 2 [json_name = "value"]; + if (this->_internal_has_value()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *value_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData MapValue_Entry::_class_data_ = { - MapValue_Entry::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MapValue_Entry::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + MapValue_Entry::MergeImpl }; -const ::google::protobuf::Message::ClassData* MapValue_Entry::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MapValue_Entry::GetClassData() const { return &_class_data_; } + +void MapValue_Entry::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void MapValue_Entry::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.MapValue.Entry) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void MapValue_Entry::MergeFrom(const MapValue_Entry& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.MapValue.Entry) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_key()->::google::api::expr::v1beta1::Value::MergeFrom( - from._internal_key()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_value()->::google::api::expr::v1beta1::Value::MergeFrom( - from._internal_value()); - } + if (from._internal_has_key()) { + _internal_mutable_key()->::google::api::expr::v1beta1::Value::MergeFrom(from._internal_key()); + } + if (from._internal_has_value()) { + _internal_mutable_value()->::google::api::expr::v1beta1::Value::MergeFrom(from._internal_value()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MapValue_Entry::CopyFrom(const MapValue_Entry& from) { @@ -1538,186 +1511,180 @@ void MapValue_Entry::CopyFrom(const MapValue_Entry& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool MapValue_Entry::IsInitialized() const { +bool MapValue_Entry::IsInitialized() const { return true; } -::_pbi::CachedSize* MapValue_Entry::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void MapValue_Entry::InternalSwap(MapValue_Entry* PROTOBUF_RESTRICT other) { +void MapValue_Entry::InternalSwap(MapValue_Entry* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(MapValue_Entry, _impl_.value_) - + sizeof(MapValue_Entry::_impl_.value_) - - PROTOBUF_FIELD_OFFSET(MapValue_Entry, _impl_.key_)>( - reinterpret_cast(&_impl_.key_), - reinterpret_cast(&other->_impl_.key_)); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(MapValue_Entry, value_) + + sizeof(MapValue_Entry::value_) + - PROTOBUF_FIELD_OFFSET(MapValue_Entry, key_)>( + reinterpret_cast(&key_), + reinterpret_cast(&other->key_)); } -::google::protobuf::Metadata MapValue_Entry::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata MapValue_Entry::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto[3]); } + // =================================================================== class MapValue::_Internal { public: }; -MapValue::MapValue(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +MapValue::MapValue(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + entries_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.expr.v1beta1.MapValue) } -inline PROTOBUF_NDEBUG_INLINE MapValue::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : entries_{visibility, arena, from.entries_}, - _cached_size_{0} {} - -MapValue::MapValue( - ::google::protobuf::Arena* arena, - const MapValue& from) - : ::google::protobuf::Message(arena) { - MapValue* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +MapValue::MapValue(const MapValue& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + entries_(from.entries_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:google.api.expr.v1beta1.MapValue) } -inline PROTOBUF_NDEBUG_INLINE MapValue::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : entries_{visibility, arena}, - _cached_size_{0} {} -inline void MapValue::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void MapValue::SharedCtor() { } + MapValue::~MapValue() { // @@protoc_insertion_point(destructor:google.api.expr.v1beta1.MapValue) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void MapValue::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void MapValue::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void MapValue::Clear() { +void MapValue::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.expr.v1beta1.MapValue) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.entries_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* MapValue::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + entries_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* MapValue::_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) { + // repeated .google.api.expr.v1beta1.MapValue.Entry entries = 1 [json_name = "entries"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_entries(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> MapValue::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_MapValue_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .google.api.expr.v1beta1.MapValue.Entry entries = 1 [json_name = "entries"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(MapValue, _impl_.entries_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .google.api.expr.v1beta1.MapValue.Entry entries = 1 [json_name = "entries"]; - {PROTOBUF_FIELD_OFFSET(MapValue, _impl_.entries_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::expr::v1beta1::MapValue_Entry>()}, - }}, {{ - }}, -}; - -::uint8_t* MapValue::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* MapValue::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.expr.v1beta1.MapValue) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .google.api.expr.v1beta1.MapValue.Entry entries = 1 [json_name = "entries"]; for (unsigned i = 0, n = static_cast(this->_internal_entries_size()); i < n; i++) { - const auto& repfield = this->_internal_entries().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_entries(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.expr.v1beta1.MapValue) return target; } -::size_t MapValue::ByteSizeLong() const { +size_t MapValue::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.expr.v1beta1.MapValue) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .google.api.expr.v1beta1.MapValue.Entry entries = 1 [json_name = "entries"]; total_size += 1UL * this->_internal_entries_size(); - for (const auto& msg : this->_internal_entries()) { + for (const auto& msg : this->entries_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData MapValue::_class_data_ = { - MapValue::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MapValue::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + MapValue::MergeImpl }; -const ::google::protobuf::Message::ClassData* MapValue::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MapValue::GetClassData() const { return &_class_data_; } + +void MapValue::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void MapValue::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.MapValue) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void MapValue::MergeFrom(const MapValue& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.expr.v1beta1.MapValue) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_entries()->MergeFrom( - from._internal_entries()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + entries_.MergeFrom(from.entries_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MapValue::CopyFrom(const MapValue& from) { @@ -1727,32 +1694,49 @@ void MapValue::CopyFrom(const MapValue& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool MapValue::IsInitialized() const { +bool MapValue::IsInitialized() const { return true; } -::_pbi::CachedSize* MapValue::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void MapValue::InternalSwap(MapValue* PROTOBUF_RESTRICT other) { +void MapValue::InternalSwap(MapValue* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.entries_.InternalSwap(&other->_impl_.entries_); + entries_.InternalSwap(&other->entries_); } -::google::protobuf::Metadata MapValue::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata MapValue::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto_getter, &descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto_once, file_level_metadata_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto[4]); } + // @@protoc_insertion_point(namespace_scope) } // namespace v1beta1 } // namespace expr } // namespace api } // namespace google -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::google::api::expr::v1beta1::Value* +Arena::CreateMaybeMessage< ::google::api::expr::v1beta1::Value >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1beta1::Value >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1beta1::EnumValue* +Arena::CreateMaybeMessage< ::google::api::expr::v1beta1::EnumValue >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1beta1::EnumValue >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1beta1::ListValue* +Arena::CreateMaybeMessage< ::google::api::expr::v1beta1::ListValue >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1beta1::ListValue >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1beta1::MapValue_Entry* +Arena::CreateMaybeMessage< ::google::api::expr::v1beta1::MapValue_Entry >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1beta1::MapValue_Entry >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::expr::v1beta1::MapValue* +Arena::CreateMaybeMessage< ::google::api::expr::v1beta1::MapValue >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::expr::v1beta1::MapValue >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/google/api/expr/v1beta1/value.pb.h b/src/viam/api/google/api/expr/v1beta1/value.pb.h index 4645d0dc5..4ed5336bf 100644 --- a/src/viam/api/google/api/expr/v1beta1/value.pb.h +++ b/src/viam/api/google/api/expr/v1beta1/value.pb.h @@ -1,62 +1,51 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/expr/v1beta1/value.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/unknown_field_set.h" -#include "google/protobuf/any.pb.h" -#include "google/protobuf/struct.pb.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include +// @@protoc_insertion_point(includes) +#include #define PROTOBUF_INTERNAL_EXPORT_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto; namespace google { namespace api { namespace expr { @@ -79,10 +68,14 @@ extern ValueDefaultTypeInternal _Value_default_instance_; } // namespace v1beta1 } // namespace expr } // namespace api -namespace protobuf { -} // namespace protobuf } // namespace google - +PROTOBUF_NAMESPACE_OPEN +template<> ::google::api::expr::v1beta1::EnumValue* Arena::CreateMaybeMessage<::google::api::expr::v1beta1::EnumValue>(Arena*); +template<> ::google::api::expr::v1beta1::ListValue* Arena::CreateMaybeMessage<::google::api::expr::v1beta1::ListValue>(Arena*); +template<> ::google::api::expr::v1beta1::MapValue* Arena::CreateMaybeMessage<::google::api::expr::v1beta1::MapValue>(Arena*); +template<> ::google::api::expr::v1beta1::MapValue_Entry* Arena::CreateMaybeMessage<::google::api::expr::v1beta1::MapValue_Entry>(Arena*); +template<> ::google::api::expr::v1beta1::Value* Arena::CreateMaybeMessage<::google::api::expr::v1beta1::Value>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace google { namespace api { namespace expr { @@ -90,33 +83,28 @@ namespace v1beta1 { // =================================================================== - -// ------------------------------------------------------------------- - -class EnumValue final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.EnumValue) */ { +class Value final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.Value) */ { public: - inline EnumValue() : EnumValue(nullptr) {} - ~EnumValue() override; - template - explicit PROTOBUF_CONSTEXPR EnumValue(::google::protobuf::internal::ConstantInitialized); + inline Value() : Value(nullptr) {} + ~Value() override; + explicit PROTOBUF_CONSTEXPR Value(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline EnumValue(const EnumValue& from) - : EnumValue(nullptr, from) {} - EnumValue(EnumValue&& from) noexcept - : EnumValue() { + Value(const Value& from); + Value(Value&& from) noexcept + : Value() { *this = ::std::move(from); } - inline EnumValue& operator=(const EnumValue& from) { + inline Value& operator=(const Value& from) { CopyFrom(from); return *this; } - inline EnumValue& operator=(EnumValue&& from) noexcept { + inline Value& operator=(Value&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -126,190 +114,383 @@ class EnumValue final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const EnumValue& default_instance() { + static const Value& default_instance() { return *internal_default_instance(); } - static inline const EnumValue* internal_default_instance() { - return reinterpret_cast( - &_EnumValue_default_instance_); + enum KindCase { + kNullValue = 1, + kBoolValue = 2, + kInt64Value = 3, + kUint64Value = 4, + kDoubleValue = 5, + kStringValue = 6, + kBytesValue = 7, + kEnumValue = 9, + kObjectValue = 10, + kMapValue = 11, + kListValue = 12, + kTypeValue = 15, + KIND_NOT_SET = 0, + }; + + static inline const Value* internal_default_instance() { + return reinterpret_cast( + &_Value_default_instance_); } static constexpr int kIndexInFileMessages = - 1; + 0; - friend void swap(EnumValue& a, EnumValue& b) { + friend void swap(Value& a, Value& b) { a.Swap(&b); } - inline void Swap(EnumValue* other) { + inline void Swap(Value* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(EnumValue* other) { + void UnsafeArenaSwap(Value* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - EnumValue* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const EnumValue& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const EnumValue& from) { - EnumValue::MergeImpl(*this, from); + Value* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Value& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Value& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(EnumValue* other); + void SetCachedSize(int size) const final; + void InternalSwap(Value* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.expr.v1beta1.EnumValue"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1beta1.Value"; } protected: - explicit EnumValue(::google::protobuf::Arena* arena); - EnumValue(::google::protobuf::Arena* arena, const EnumValue& from); + explicit Value(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kTypeFieldNumber = 1, - kValueFieldNumber = 2, + kNullValueFieldNumber = 1, + kBoolValueFieldNumber = 2, + kInt64ValueFieldNumber = 3, + kUint64ValueFieldNumber = 4, + kDoubleValueFieldNumber = 5, + kStringValueFieldNumber = 6, + kBytesValueFieldNumber = 7, + kEnumValueFieldNumber = 9, + kObjectValueFieldNumber = 10, + kMapValueFieldNumber = 11, + kListValueFieldNumber = 12, + kTypeValueFieldNumber = 15, }; - // string type = 1 [json_name = "type"]; - void clear_type() ; - const std::string& type() const; - template - void set_type(Arg_&& arg, Args_... args); - std::string* mutable_type(); - PROTOBUF_NODISCARD std::string* release_type(); - void set_allocated_type(std::string* value); + // .google.protobuf.NullValue null_value = 1 [json_name = "nullValue"]; + bool has_null_value() const; + private: + bool _internal_has_null_value() const; + public: + void clear_null_value(); + ::PROTOBUF_NAMESPACE_ID::NullValue null_value() const; + void set_null_value(::PROTOBUF_NAMESPACE_ID::NullValue value); + private: + ::PROTOBUF_NAMESPACE_ID::NullValue _internal_null_value() const; + void _internal_set_null_value(::PROTOBUF_NAMESPACE_ID::NullValue value); + public: + // bool bool_value = 2 [json_name = "boolValue"]; + bool has_bool_value() const; private: - const std::string& _internal_type() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_type( - const std::string& value); - std::string* _internal_mutable_type(); + bool _internal_has_bool_value() const; + public: + void clear_bool_value(); + bool bool_value() const; + void set_bool_value(bool value); + private: + bool _internal_bool_value() const; + void _internal_set_bool_value(bool value); + public: + // int64 int64_value = 3 [json_name = "int64Value"]; + bool has_int64_value() const; + private: + bool _internal_has_int64_value() const; + public: + void clear_int64_value(); + int64_t int64_value() const; + void set_int64_value(int64_t value); + private: + int64_t _internal_int64_value() const; + void _internal_set_int64_value(int64_t value); public: - // int32 value = 2 [json_name = "value"]; - void clear_value() ; - ::int32_t value() const; - void set_value(::int32_t value); + // uint64 uint64_value = 4 [json_name = "uint64Value"]; + bool has_uint64_value() const; + private: + bool _internal_has_uint64_value() const; + public: + void clear_uint64_value(); + uint64_t uint64_value() const; + void set_uint64_value(uint64_t value); private: - ::int32_t _internal_value() const; - void _internal_set_value(::int32_t value); + uint64_t _internal_uint64_value() const; + void _internal_set_uint64_value(uint64_t value); + public: + // double double_value = 5 [json_name = "doubleValue"]; + bool has_double_value() const; + private: + bool _internal_has_double_value() const; public: - // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.EnumValue) + void clear_double_value(); + double double_value() const; + void set_double_value(double value); + private: + double _internal_double_value() const; + void _internal_set_double_value(double value); + public: + + // string string_value = 6 [json_name = "stringValue"]; + bool has_string_value() const; + private: + bool _internal_has_string_value() const; + public: + void clear_string_value(); + const std::string& string_value() const; + template + void set_string_value(ArgT0&& arg0, ArgT... args); + std::string* mutable_string_value(); + PROTOBUF_NODISCARD std::string* release_string_value(); + void set_allocated_string_value(std::string* string_value); + private: + const std::string& _internal_string_value() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_string_value(const std::string& value); + std::string* _internal_mutable_string_value(); + public: + + // bytes bytes_value = 7 [json_name = "bytesValue"]; + bool has_bytes_value() const; + private: + bool _internal_has_bytes_value() const; + public: + void clear_bytes_value(); + const std::string& bytes_value() const; + template + void set_bytes_value(ArgT0&& arg0, ArgT... args); + std::string* mutable_bytes_value(); + PROTOBUF_NODISCARD std::string* release_bytes_value(); + void set_allocated_bytes_value(std::string* bytes_value); + private: + const std::string& _internal_bytes_value() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_bytes_value(const std::string& value); + std::string* _internal_mutable_bytes_value(); + public: + + // .google.api.expr.v1beta1.EnumValue enum_value = 9 [json_name = "enumValue"]; + bool has_enum_value() const; + private: + bool _internal_has_enum_value() const; + public: + void clear_enum_value(); + const ::google::api::expr::v1beta1::EnumValue& enum_value() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::EnumValue* release_enum_value(); + ::google::api::expr::v1beta1::EnumValue* mutable_enum_value(); + void set_allocated_enum_value(::google::api::expr::v1beta1::EnumValue* enum_value); + private: + const ::google::api::expr::v1beta1::EnumValue& _internal_enum_value() const; + ::google::api::expr::v1beta1::EnumValue* _internal_mutable_enum_value(); + public: + void unsafe_arena_set_allocated_enum_value( + ::google::api::expr::v1beta1::EnumValue* enum_value); + ::google::api::expr::v1beta1::EnumValue* unsafe_arena_release_enum_value(); + + // .google.protobuf.Any object_value = 10 [json_name = "objectValue"]; + bool has_object_value() const; + private: + bool _internal_has_object_value() const; + public: + void clear_object_value(); + const ::PROTOBUF_NAMESPACE_ID::Any& object_value() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Any* release_object_value(); + ::PROTOBUF_NAMESPACE_ID::Any* mutable_object_value(); + void set_allocated_object_value(::PROTOBUF_NAMESPACE_ID::Any* object_value); + private: + const ::PROTOBUF_NAMESPACE_ID::Any& _internal_object_value() const; + ::PROTOBUF_NAMESPACE_ID::Any* _internal_mutable_object_value(); + public: + void unsafe_arena_set_allocated_object_value( + ::PROTOBUF_NAMESPACE_ID::Any* object_value); + ::PROTOBUF_NAMESPACE_ID::Any* unsafe_arena_release_object_value(); + + // .google.api.expr.v1beta1.MapValue map_value = 11 [json_name = "mapValue"]; + bool has_map_value() const; + private: + bool _internal_has_map_value() const; + public: + void clear_map_value(); + const ::google::api::expr::v1beta1::MapValue& map_value() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::MapValue* release_map_value(); + ::google::api::expr::v1beta1::MapValue* mutable_map_value(); + void set_allocated_map_value(::google::api::expr::v1beta1::MapValue* map_value); + private: + const ::google::api::expr::v1beta1::MapValue& _internal_map_value() const; + ::google::api::expr::v1beta1::MapValue* _internal_mutable_map_value(); + public: + void unsafe_arena_set_allocated_map_value( + ::google::api::expr::v1beta1::MapValue* map_value); + ::google::api::expr::v1beta1::MapValue* unsafe_arena_release_map_value(); + + // .google.api.expr.v1beta1.ListValue list_value = 12 [json_name = "listValue"]; + bool has_list_value() const; + private: + bool _internal_has_list_value() const; + public: + void clear_list_value(); + const ::google::api::expr::v1beta1::ListValue& list_value() const; + PROTOBUF_NODISCARD ::google::api::expr::v1beta1::ListValue* release_list_value(); + ::google::api::expr::v1beta1::ListValue* mutable_list_value(); + void set_allocated_list_value(::google::api::expr::v1beta1::ListValue* list_value); + private: + const ::google::api::expr::v1beta1::ListValue& _internal_list_value() const; + ::google::api::expr::v1beta1::ListValue* _internal_mutable_list_value(); + public: + void unsafe_arena_set_allocated_list_value( + ::google::api::expr::v1beta1::ListValue* list_value); + ::google::api::expr::v1beta1::ListValue* unsafe_arena_release_list_value(); + + // string type_value = 15 [json_name = "typeValue"]; + bool has_type_value() const; + private: + bool _internal_has_type_value() const; + public: + void clear_type_value(); + const std::string& type_value() const; + template + void set_type_value(ArgT0&& arg0, ArgT... args); + std::string* mutable_type_value(); + PROTOBUF_NODISCARD std::string* release_type_value(); + void set_allocated_type_value(std::string* type_value); + private: + const std::string& _internal_type_value() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_type_value(const std::string& value); + std::string* _internal_mutable_type_value(); + public: + + void clear_kind(); + KindCase kind_case() const; + // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.Value) private: class _Internal; + void set_has_null_value(); + void set_has_bool_value(); + void set_has_int64_value(); + void set_has_uint64_value(); + void set_has_double_value(); + void set_has_string_value(); + void set_has_bytes_value(); + void set_has_enum_value(); + void set_has_object_value(); + void set_has_map_value(); + void set_has_list_value(); + void set_has_type_value(); + + inline bool has_kind() const; + inline void clear_has_kind(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + union KindUnion { + constexpr KindUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + int null_value_; + bool bool_value_; + int64_t int64_value_; + uint64_t uint64_value_; + double double_value_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr string_value_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr bytes_value_; + ::google::api::expr::v1beta1::EnumValue* enum_value_; + ::PROTOBUF_NAMESPACE_ID::Any* object_value_; + ::google::api::expr::v1beta1::MapValue* map_value_; + ::google::api::expr::v1beta1::ListValue* list_value_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_value_; + } kind_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 46, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr type_; - ::int32_t value_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ListValue final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.ListValue) */ { +class EnumValue final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.EnumValue) */ { public: - inline ListValue() : ListValue(nullptr) {} - ~ListValue() override; - template - explicit PROTOBUF_CONSTEXPR ListValue(::google::protobuf::internal::ConstantInitialized); + inline EnumValue() : EnumValue(nullptr) {} + ~EnumValue() override; + explicit PROTOBUF_CONSTEXPR EnumValue(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ListValue(const ListValue& from) - : ListValue(nullptr, from) {} - ListValue(ListValue&& from) noexcept - : ListValue() { + EnumValue(const EnumValue& from); + EnumValue(EnumValue&& from) noexcept + : EnumValue() { *this = ::std::move(from); } - inline ListValue& operator=(const ListValue& from) { + inline EnumValue& operator=(const EnumValue& from) { CopyFrom(from); return *this; } - inline ListValue& operator=(ListValue&& from) noexcept { + inline EnumValue& operator=(EnumValue&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -319,180 +500,156 @@ class ListValue final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ListValue& default_instance() { + static const EnumValue& default_instance() { return *internal_default_instance(); } - static inline const ListValue* internal_default_instance() { - return reinterpret_cast( - &_ListValue_default_instance_); + static inline const EnumValue* internal_default_instance() { + return reinterpret_cast( + &_EnumValue_default_instance_); } static constexpr int kIndexInFileMessages = - 2; + 1; - friend void swap(ListValue& a, ListValue& b) { + friend void swap(EnumValue& a, EnumValue& b) { a.Swap(&b); } - inline void Swap(ListValue* other) { + inline void Swap(EnumValue* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ListValue* other) { + void UnsafeArenaSwap(EnumValue* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ListValue* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ListValue& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ListValue& from) { - ListValue::MergeImpl(*this, from); + EnumValue* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const EnumValue& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const EnumValue& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ListValue* other); + void SetCachedSize(int size) const final; + void InternalSwap(EnumValue* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.expr.v1beta1.ListValue"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1beta1.EnumValue"; } protected: - explicit ListValue(::google::protobuf::Arena* arena); - ListValue(::google::protobuf::Arena* arena, const ListValue& from); + explicit EnumValue(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kValuesFieldNumber = 1, + kTypeFieldNumber = 1, + kValueFieldNumber = 2, }; - // repeated .google.api.expr.v1beta1.Value values = 1 [json_name = "values"]; - int values_size() const; + // string type = 1 [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: - int _internal_values_size() const; - + const std::string& _internal_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_type(const std::string& value); + std::string* _internal_mutable_type(); public: - void clear_values() ; - ::google::api::expr::v1beta1::Value* mutable_values(int index); - ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1beta1::Value >* - mutable_values(); + + // int32 value = 2 [json_name = "value"]; + void clear_value(); + int32_t value() const; + void set_value(int32_t value); private: - const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::Value>& _internal_values() const; - ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::Value>* _internal_mutable_values(); + int32_t _internal_value() const; + void _internal_set_value(int32_t value); public: - const ::google::api::expr::v1beta1::Value& values(int index) const; - ::google::api::expr::v1beta1::Value* add_values(); - const ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1beta1::Value >& - values() const; - // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.ListValue) + + // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.EnumValue) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1beta1::Value > values_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_; + int32_t value_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class MapValue final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.MapValue) */ { +class ListValue final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.ListValue) */ { public: - inline MapValue() : MapValue(nullptr) {} - ~MapValue() override; - template - explicit PROTOBUF_CONSTEXPR MapValue(::google::protobuf::internal::ConstantInitialized); + inline ListValue() : ListValue(nullptr) {} + ~ListValue() override; + explicit PROTOBUF_CONSTEXPR ListValue(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline MapValue(const MapValue& from) - : MapValue(nullptr, from) {} - MapValue(MapValue&& from) noexcept - : MapValue() { + ListValue(const ListValue& from); + ListValue(ListValue&& from) noexcept + : ListValue() { *this = ::std::move(from); } - inline MapValue& operator=(const MapValue& from) { + inline ListValue& operator=(const ListValue& from) { CopyFrom(from); return *this; } - inline MapValue& operator=(MapValue&& from) noexcept { + inline ListValue& operator=(ListValue&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -502,168 +659,135 @@ class MapValue final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MapValue& default_instance() { + static const ListValue& default_instance() { return *internal_default_instance(); } - static inline const MapValue* internal_default_instance() { - return reinterpret_cast( - &_MapValue_default_instance_); + static inline const ListValue* internal_default_instance() { + return reinterpret_cast( + &_ListValue_default_instance_); } static constexpr int kIndexInFileMessages = - 4; + 2; - friend void swap(MapValue& a, MapValue& b) { + friend void swap(ListValue& a, ListValue& b) { a.Swap(&b); } - inline void Swap(MapValue* other) { + inline void Swap(ListValue* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MapValue* other) { + void UnsafeArenaSwap(ListValue* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MapValue* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const MapValue& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const MapValue& from) { - MapValue::MergeImpl(*this, from); + ListValue* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ListValue& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ListValue& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(MapValue* other); + void SetCachedSize(int size) const final; + void InternalSwap(ListValue* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.expr.v1beta1.MapValue"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1beta1.ListValue"; } protected: - explicit MapValue(::google::protobuf::Arena* arena); - MapValue(::google::protobuf::Arena* arena, const MapValue& from); + explicit ListValue(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- - using Entry = MapValue_Entry; - // accessors ------------------------------------------------------- enum : int { - kEntriesFieldNumber = 1, + kValuesFieldNumber = 1, }; - // repeated .google.api.expr.v1beta1.MapValue.Entry entries = 1 [json_name = "entries"]; - int entries_size() const; + // repeated .google.api.expr.v1beta1.Value values = 1 [json_name = "values"]; + int values_size() const; private: - int _internal_entries_size() const; - + int _internal_values_size() const; public: - void clear_entries() ; - ::google::api::expr::v1beta1::MapValue_Entry* mutable_entries(int index); - ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1beta1::MapValue_Entry >* - mutable_entries(); + void clear_values(); + ::google::api::expr::v1beta1::Value* mutable_values(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::Value >* + mutable_values(); private: - const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::MapValue_Entry>& _internal_entries() const; - ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::MapValue_Entry>* _internal_mutable_entries(); + const ::google::api::expr::v1beta1::Value& _internal_values(int index) const; + ::google::api::expr::v1beta1::Value* _internal_add_values(); public: - const ::google::api::expr::v1beta1::MapValue_Entry& entries(int index) const; - ::google::api::expr::v1beta1::MapValue_Entry* add_entries(); - const ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1beta1::MapValue_Entry >& - entries() const; - // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.MapValue) + const ::google::api::expr::v1beta1::Value& values(int index) const; + ::google::api::expr::v1beta1::Value* add_values(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::Value >& + values() const; + + // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.ListValue) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::google::api::expr::v1beta1::MapValue_Entry > entries_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::Value > values_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class MapValue_Entry final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.MapValue.Entry) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.MapValue.Entry) */ { public: inline MapValue_Entry() : MapValue_Entry(nullptr) {} ~MapValue_Entry() override; - template - explicit PROTOBUF_CONSTEXPR MapValue_Entry(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR MapValue_Entry(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline MapValue_Entry(const MapValue_Entry& from) - : MapValue_Entry(nullptr, from) {} + MapValue_Entry(const MapValue_Entry& from); MapValue_Entry(MapValue_Entry&& from) noexcept : MapValue_Entry() { *this = ::std::move(from); @@ -675,9 +799,9 @@ class MapValue_Entry final : } inline MapValue_Entry& operator=(MapValue_Entry&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -687,22 +811,13 @@ class MapValue_Entry final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const MapValue_Entry& default_instance() { @@ -721,65 +836,63 @@ class MapValue_Entry final : inline void Swap(MapValue_Entry* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(MapValue_Entry* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MapValue_Entry* New(::google::protobuf::Arena* arena = nullptr) const final { + MapValue_Entry* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const MapValue_Entry& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const MapValue_Entry& from) { - MapValue_Entry::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MapValue_Entry& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(MapValue_Entry* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "google.api.expr.v1beta1.MapValue.Entry"; } protected: - explicit MapValue_Entry(::google::protobuf::Arena* arena); - MapValue_Entry(::google::protobuf::Arena* arena, const MapValue_Entry& from); + explicit MapValue_Entry(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -791,91 +904,76 @@ class MapValue_Entry final : }; // .google.api.expr.v1beta1.Value key = 1 [json_name = "key"]; bool has_key() const; - void clear_key() ; + private: + bool _internal_has_key() const; + public: + void clear_key(); const ::google::api::expr::v1beta1::Value& key() const; PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Value* release_key(); ::google::api::expr::v1beta1::Value* mutable_key(); - void set_allocated_key(::google::api::expr::v1beta1::Value* value); - void unsafe_arena_set_allocated_key(::google::api::expr::v1beta1::Value* value); - ::google::api::expr::v1beta1::Value* unsafe_arena_release_key(); - + void set_allocated_key(::google::api::expr::v1beta1::Value* key); private: const ::google::api::expr::v1beta1::Value& _internal_key() const; ::google::api::expr::v1beta1::Value* _internal_mutable_key(); - public: + void unsafe_arena_set_allocated_key( + ::google::api::expr::v1beta1::Value* key); + ::google::api::expr::v1beta1::Value* unsafe_arena_release_key(); + // .google.api.expr.v1beta1.Value value = 2 [json_name = "value"]; bool has_value() const; - void clear_value() ; + private: + bool _internal_has_value() const; + public: + void clear_value(); const ::google::api::expr::v1beta1::Value& value() const; PROTOBUF_NODISCARD ::google::api::expr::v1beta1::Value* release_value(); ::google::api::expr::v1beta1::Value* mutable_value(); void set_allocated_value(::google::api::expr::v1beta1::Value* value); - void unsafe_arena_set_allocated_value(::google::api::expr::v1beta1::Value* value); - ::google::api::expr::v1beta1::Value* unsafe_arena_release_value(); - private: const ::google::api::expr::v1beta1::Value& _internal_value() const; ::google::api::expr::v1beta1::Value* _internal_mutable_value(); - public: + void unsafe_arena_set_allocated_value( + ::google::api::expr::v1beta1::Value* value); + ::google::api::expr::v1beta1::Value* unsafe_arena_release_value(); + // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.MapValue.Entry) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 2, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::api::expr::v1beta1::Value* key_; - ::google::api::expr::v1beta1::Value* value_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::google::api::expr::v1beta1::Value* key_; + ::google::api::expr::v1beta1::Value* value_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Value final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.Value) */ { +class MapValue final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.expr.v1beta1.MapValue) */ { public: - inline Value() : Value(nullptr) {} - ~Value() override; - template - explicit PROTOBUF_CONSTEXPR Value(::google::protobuf::internal::ConstantInitialized); + inline MapValue() : MapValue(nullptr) {} + ~MapValue() override; + explicit PROTOBUF_CONSTEXPR MapValue(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Value(const Value& from) - : Value(nullptr, from) {} - Value(Value&& from) noexcept - : Value() { + MapValue(const MapValue& from); + MapValue(MapValue&& from) noexcept + : MapValue() { *this = ::std::move(from); } - inline Value& operator=(const Value& from) { + inline MapValue& operator=(const MapValue& from) { CopyFrom(from); return *this; } - inline Value& operator=(Value&& from) noexcept { + inline MapValue& operator=(MapValue&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -885,1123 +983,843 @@ class Value final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Value& default_instance() { + static const MapValue& default_instance() { return *internal_default_instance(); } - enum KindCase { - kNullValue = 1, - kBoolValue = 2, - kInt64Value = 3, - kUint64Value = 4, - kDoubleValue = 5, - kStringValue = 6, - kBytesValue = 7, - kEnumValue = 9, - kObjectValue = 10, - kMapValue = 11, - kListValue = 12, - kTypeValue = 15, - KIND_NOT_SET = 0, - }; - - static inline const Value* internal_default_instance() { - return reinterpret_cast( - &_Value_default_instance_); + static inline const MapValue* internal_default_instance() { + return reinterpret_cast( + &_MapValue_default_instance_); } static constexpr int kIndexInFileMessages = - 0; + 4; - friend void swap(Value& a, Value& b) { + friend void swap(MapValue& a, MapValue& b) { a.Swap(&b); } - inline void Swap(Value* other) { + inline void Swap(MapValue* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Value* other) { + void UnsafeArenaSwap(MapValue* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Value* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Value& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Value& from) { - Value::MergeImpl(*this, from); + MapValue* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MapValue& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MapValue& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(Value* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.expr.v1beta1.Value"; - } - protected: - explicit Value(::google::protobuf::Arena* arena); - Value(::google::protobuf::Arena* arena, const Value& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kNullValueFieldNumber = 1, - kBoolValueFieldNumber = 2, - kInt64ValueFieldNumber = 3, - kUint64ValueFieldNumber = 4, - kDoubleValueFieldNumber = 5, - kStringValueFieldNumber = 6, - kBytesValueFieldNumber = 7, - kEnumValueFieldNumber = 9, - kObjectValueFieldNumber = 10, - kMapValueFieldNumber = 11, - kListValueFieldNumber = 12, - kTypeValueFieldNumber = 15, - }; - // .google.protobuf.NullValue null_value = 1 [json_name = "nullValue"]; - bool has_null_value() const; - void clear_null_value() ; - ::google::protobuf::NullValue null_value() const; - void set_null_value(::google::protobuf::NullValue value); - - private: - ::google::protobuf::NullValue _internal_null_value() const; - void _internal_set_null_value(::google::protobuf::NullValue value); - - public: - // bool bool_value = 2 [json_name = "boolValue"]; - bool has_bool_value() const; - void clear_bool_value() ; - bool bool_value() const; - void set_bool_value(bool value); - - private: - bool _internal_bool_value() const; - void _internal_set_bool_value(bool value); - - public: - // int64 int64_value = 3 [json_name = "int64Value"]; - bool has_int64_value() const; - void clear_int64_value() ; - ::int64_t int64_value() const; - void set_int64_value(::int64_t value); - - private: - ::int64_t _internal_int64_value() const; - void _internal_set_int64_value(::int64_t value); - - public: - // uint64 uint64_value = 4 [json_name = "uint64Value"]; - bool has_uint64_value() const; - void clear_uint64_value() ; - ::uint64_t uint64_value() const; - void set_uint64_value(::uint64_t value); - - private: - ::uint64_t _internal_uint64_value() const; - void _internal_set_uint64_value(::uint64_t value); - - public: - // double double_value = 5 [json_name = "doubleValue"]; - bool has_double_value() const; - void clear_double_value() ; - double double_value() const; - void set_double_value(double value); - - private: - double _internal_double_value() const; - void _internal_set_double_value(double value); - - public: - // string string_value = 6 [json_name = "stringValue"]; - bool has_string_value() const; - void clear_string_value() ; - const std::string& string_value() const; - template - void set_string_value(Arg_&& arg, Args_... args); - std::string* mutable_string_value(); - PROTOBUF_NODISCARD std::string* release_string_value(); - void set_allocated_string_value(std::string* value); - - private: - const std::string& _internal_string_value() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_string_value( - const std::string& value); - std::string* _internal_mutable_string_value(); - - public: - // bytes bytes_value = 7 [json_name = "bytesValue"]; - bool has_bytes_value() const; - void clear_bytes_value() ; - const std::string& bytes_value() const; - template - void set_bytes_value(Arg_&& arg, Args_... args); - std::string* mutable_bytes_value(); - PROTOBUF_NODISCARD std::string* release_bytes_value(); - void set_allocated_bytes_value(std::string* value); - - private: - const std::string& _internal_bytes_value() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_bytes_value( - const std::string& value); - std::string* _internal_mutable_bytes_value(); - - public: - // .google.api.expr.v1beta1.EnumValue enum_value = 9 [json_name = "enumValue"]; - bool has_enum_value() const; - private: - bool _internal_has_enum_value() const; - - public: - void clear_enum_value() ; - const ::google::api::expr::v1beta1::EnumValue& enum_value() const; - PROTOBUF_NODISCARD ::google::api::expr::v1beta1::EnumValue* release_enum_value(); - ::google::api::expr::v1beta1::EnumValue* mutable_enum_value(); - void set_allocated_enum_value(::google::api::expr::v1beta1::EnumValue* value); - void unsafe_arena_set_allocated_enum_value(::google::api::expr::v1beta1::EnumValue* value); - ::google::api::expr::v1beta1::EnumValue* unsafe_arena_release_enum_value(); - - private: - const ::google::api::expr::v1beta1::EnumValue& _internal_enum_value() const; - ::google::api::expr::v1beta1::EnumValue* _internal_mutable_enum_value(); - - public: - // .google.protobuf.Any object_value = 10 [json_name = "objectValue"]; - bool has_object_value() const; - private: - bool _internal_has_object_value() const; - - public: - void clear_object_value() ; - const ::google::protobuf::Any& object_value() const; - PROTOBUF_NODISCARD ::google::protobuf::Any* release_object_value(); - ::google::protobuf::Any* mutable_object_value(); - void set_allocated_object_value(::google::protobuf::Any* value); - void unsafe_arena_set_allocated_object_value(::google::protobuf::Any* value); - ::google::protobuf::Any* unsafe_arena_release_object_value(); + 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: - const ::google::protobuf::Any& _internal_object_value() const; - ::google::protobuf::Any* _internal_mutable_object_value(); + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MapValue* other); - public: - // .google.api.expr.v1beta1.MapValue map_value = 11 [json_name = "mapValue"]; - bool has_map_value() const; private: - bool _internal_has_map_value() const; - + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.expr.v1beta1.MapValue"; + } + protected: + explicit MapValue(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - void clear_map_value() ; - const ::google::api::expr::v1beta1::MapValue& map_value() const; - PROTOBUF_NODISCARD ::google::api::expr::v1beta1::MapValue* release_map_value(); - ::google::api::expr::v1beta1::MapValue* mutable_map_value(); - void set_allocated_map_value(::google::api::expr::v1beta1::MapValue* value); - void unsafe_arena_set_allocated_map_value(::google::api::expr::v1beta1::MapValue* value); - ::google::api::expr::v1beta1::MapValue* unsafe_arena_release_map_value(); - private: - const ::google::api::expr::v1beta1::MapValue& _internal_map_value() const; - ::google::api::expr::v1beta1::MapValue* _internal_mutable_map_value(); + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: - // .google.api.expr.v1beta1.ListValue list_value = 12 [json_name = "listValue"]; - bool has_list_value() const; - private: - bool _internal_has_list_value() const; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - public: - void clear_list_value() ; - const ::google::api::expr::v1beta1::ListValue& list_value() const; - PROTOBUF_NODISCARD ::google::api::expr::v1beta1::ListValue* release_list_value(); - ::google::api::expr::v1beta1::ListValue* mutable_list_value(); - void set_allocated_list_value(::google::api::expr::v1beta1::ListValue* value); - void unsafe_arena_set_allocated_list_value(::google::api::expr::v1beta1::ListValue* value); - ::google::api::expr::v1beta1::ListValue* unsafe_arena_release_list_value(); + // nested types ---------------------------------------------------- - private: - const ::google::api::expr::v1beta1::ListValue& _internal_list_value() const; - ::google::api::expr::v1beta1::ListValue* _internal_mutable_list_value(); + typedef MapValue_Entry Entry; - public: - // string type_value = 15 [json_name = "typeValue"]; - bool has_type_value() const; - void clear_type_value() ; - const std::string& type_value() const; - template - void set_type_value(Arg_&& arg, Args_... args); - std::string* mutable_type_value(); - PROTOBUF_NODISCARD std::string* release_type_value(); - void set_allocated_type_value(std::string* value); + // accessors ------------------------------------------------------- + enum : int { + kEntriesFieldNumber = 1, + }; + // repeated .google.api.expr.v1beta1.MapValue.Entry entries = 1 [json_name = "entries"]; + int entries_size() const; private: - const std::string& _internal_type_value() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_type_value( - const std::string& value); - std::string* _internal_mutable_type_value(); - + int _internal_entries_size() const; public: - void clear_kind(); - KindCase kind_case() const; - // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.Value) + void clear_entries(); + ::google::api::expr::v1beta1::MapValue_Entry* mutable_entries(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::MapValue_Entry >* + mutable_entries(); + private: + const ::google::api::expr::v1beta1::MapValue_Entry& _internal_entries(int index) const; + ::google::api::expr::v1beta1::MapValue_Entry* _internal_add_entries(); + public: + const ::google::api::expr::v1beta1::MapValue_Entry& entries(int index) const; + ::google::api::expr::v1beta1::MapValue_Entry* add_entries(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::MapValue_Entry >& + entries() const; + + // @@protoc_insertion_point(class_scope:google.api.expr.v1beta1.MapValue) private: class _Internal; - void set_has_null_value(); - void set_has_bool_value(); - void set_has_int64_value(); - void set_has_uint64_value(); - void set_has_double_value(); - void set_has_string_value(); - void set_has_bytes_value(); - void set_has_enum_value(); - void set_has_object_value(); - void set_has_map_value(); - void set_has_list_value(); - void set_has_type_value(); - inline bool has_kind() const; - inline void clear_has_kind(); - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 12, 4, - 68, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - union KindUnion { - constexpr KindUnion() : _constinit_{} {} - ::google::protobuf::internal::ConstantInitialized _constinit_; - int null_value_; - bool bool_value_; - ::int64_t int64_value_; - ::uint64_t uint64_value_; - double double_value_; - ::google::protobuf::internal::ArenaStringPtr string_value_; - ::google::protobuf::internal::ArenaStringPtr bytes_value_; - ::google::api::expr::v1beta1::EnumValue* enum_value_; - ::google::protobuf::Any* object_value_; - ::google::api::expr::v1beta1::MapValue* map_value_; - ::google::api::expr::v1beta1::ListValue* list_value_; - ::google::protobuf::internal::ArenaStringPtr type_value_; - } kind_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t _oneof_case_[1]; - - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::MapValue_Entry > entries_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto; }; - // =================================================================== - - // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ -// ------------------------------------------------------------------- - // Value // .google.protobuf.NullValue null_value = 1 [json_name = "nullValue"]; -inline bool Value::has_null_value() const { +inline bool Value::_internal_has_null_value() const { return kind_case() == kNullValue; } +inline bool Value::has_null_value() const { + return _internal_has_null_value(); +} inline void Value::set_has_null_value() { - _impl_._oneof_case_[0] = kNullValue; + _oneof_case_[0] = kNullValue; } inline void Value::clear_null_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() == kNullValue) { - _impl_.kind_.null_value_ = 0; + if (_internal_has_null_value()) { + kind_.null_value_ = 0; clear_has_kind(); } } -inline ::google::protobuf::NullValue Value::null_value() const { +inline ::PROTOBUF_NAMESPACE_ID::NullValue Value::_internal_null_value() const { + if (_internal_has_null_value()) { + return static_cast< ::PROTOBUF_NAMESPACE_ID::NullValue >(kind_.null_value_); + } + return static_cast< ::PROTOBUF_NAMESPACE_ID::NullValue >(0); +} +inline ::PROTOBUF_NAMESPACE_ID::NullValue Value::null_value() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Value.null_value) return _internal_null_value(); } -inline void Value::set_null_value(::google::protobuf::NullValue value) { - _internal_set_null_value(value); - // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Value.null_value) -} -inline ::google::protobuf::NullValue Value::_internal_null_value() const { - if (kind_case() == kNullValue) { - return static_cast<::google::protobuf::NullValue>(_impl_.kind_.null_value_); - } - return static_cast<::google::protobuf::NullValue>(0); -} -inline void Value::_internal_set_null_value(::google::protobuf::NullValue value) { - if (kind_case() != kNullValue) { +inline void Value::_internal_set_null_value(::PROTOBUF_NAMESPACE_ID::NullValue value) { + if (!_internal_has_null_value()) { clear_kind(); set_has_null_value(); } - _impl_.kind_.null_value_ = value; + kind_.null_value_ = value; +} +inline void Value::set_null_value(::PROTOBUF_NAMESPACE_ID::NullValue value) { + _internal_set_null_value(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Value.null_value) } // bool bool_value = 2 [json_name = "boolValue"]; -inline bool Value::has_bool_value() const { +inline bool Value::_internal_has_bool_value() const { return kind_case() == kBoolValue; } +inline bool Value::has_bool_value() const { + return _internal_has_bool_value(); +} inline void Value::set_has_bool_value() { - _impl_._oneof_case_[0] = kBoolValue; + _oneof_case_[0] = kBoolValue; } inline void Value::clear_bool_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() == kBoolValue) { - _impl_.kind_.bool_value_ = false; + if (_internal_has_bool_value()) { + kind_.bool_value_ = false; clear_has_kind(); } } -inline bool Value::bool_value() const { - // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Value.bool_value) - return _internal_bool_value(); -} -inline void Value::set_bool_value(bool value) { - _internal_set_bool_value(value); - // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Value.bool_value) -} inline bool Value::_internal_bool_value() const { - if (kind_case() == kBoolValue) { - return _impl_.kind_.bool_value_; + if (_internal_has_bool_value()) { + return kind_.bool_value_; } return false; } inline void Value::_internal_set_bool_value(bool value) { - if (kind_case() != kBoolValue) { + if (!_internal_has_bool_value()) { clear_kind(); set_has_bool_value(); } - _impl_.kind_.bool_value_ = value; + kind_.bool_value_ = value; +} +inline bool Value::bool_value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Value.bool_value) + return _internal_bool_value(); +} +inline void Value::set_bool_value(bool value) { + _internal_set_bool_value(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Value.bool_value) } // int64 int64_value = 3 [json_name = "int64Value"]; -inline bool Value::has_int64_value() const { +inline bool Value::_internal_has_int64_value() const { return kind_case() == kInt64Value; } +inline bool Value::has_int64_value() const { + return _internal_has_int64_value(); +} inline void Value::set_has_int64_value() { - _impl_._oneof_case_[0] = kInt64Value; + _oneof_case_[0] = kInt64Value; } inline void Value::clear_int64_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() == kInt64Value) { - _impl_.kind_.int64_value_ = ::int64_t{0}; + if (_internal_has_int64_value()) { + kind_.int64_value_ = int64_t{0}; clear_has_kind(); } } -inline ::int64_t Value::int64_value() const { - // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Value.int64_value) - return _internal_int64_value(); -} -inline void Value::set_int64_value(::int64_t value) { - _internal_set_int64_value(value); - // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Value.int64_value) -} -inline ::int64_t Value::_internal_int64_value() const { - if (kind_case() == kInt64Value) { - return _impl_.kind_.int64_value_; +inline int64_t Value::_internal_int64_value() const { + if (_internal_has_int64_value()) { + return kind_.int64_value_; } - return ::int64_t{0}; + return int64_t{0}; } -inline void Value::_internal_set_int64_value(::int64_t value) { - if (kind_case() != kInt64Value) { +inline void Value::_internal_set_int64_value(int64_t value) { + if (!_internal_has_int64_value()) { clear_kind(); set_has_int64_value(); } - _impl_.kind_.int64_value_ = value; + kind_.int64_value_ = value; +} +inline int64_t Value::int64_value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Value.int64_value) + return _internal_int64_value(); +} +inline void Value::set_int64_value(int64_t value) { + _internal_set_int64_value(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Value.int64_value) } // uint64 uint64_value = 4 [json_name = "uint64Value"]; -inline bool Value::has_uint64_value() const { +inline bool Value::_internal_has_uint64_value() const { return kind_case() == kUint64Value; } +inline bool Value::has_uint64_value() const { + return _internal_has_uint64_value(); +} inline void Value::set_has_uint64_value() { - _impl_._oneof_case_[0] = kUint64Value; + _oneof_case_[0] = kUint64Value; } inline void Value::clear_uint64_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() == kUint64Value) { - _impl_.kind_.uint64_value_ = ::uint64_t{0u}; + if (_internal_has_uint64_value()) { + kind_.uint64_value_ = uint64_t{0u}; clear_has_kind(); } } -inline ::uint64_t Value::uint64_value() const { - // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Value.uint64_value) - return _internal_uint64_value(); -} -inline void Value::set_uint64_value(::uint64_t value) { - _internal_set_uint64_value(value); - // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Value.uint64_value) -} -inline ::uint64_t Value::_internal_uint64_value() const { - if (kind_case() == kUint64Value) { - return _impl_.kind_.uint64_value_; +inline uint64_t Value::_internal_uint64_value() const { + if (_internal_has_uint64_value()) { + return kind_.uint64_value_; } - return ::uint64_t{0u}; + return uint64_t{0u}; } -inline void Value::_internal_set_uint64_value(::uint64_t value) { - if (kind_case() != kUint64Value) { +inline void Value::_internal_set_uint64_value(uint64_t value) { + if (!_internal_has_uint64_value()) { clear_kind(); set_has_uint64_value(); } - _impl_.kind_.uint64_value_ = value; + kind_.uint64_value_ = value; +} +inline uint64_t Value::uint64_value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Value.uint64_value) + return _internal_uint64_value(); +} +inline void Value::set_uint64_value(uint64_t value) { + _internal_set_uint64_value(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Value.uint64_value) } // double double_value = 5 [json_name = "doubleValue"]; -inline bool Value::has_double_value() const { +inline bool Value::_internal_has_double_value() const { return kind_case() == kDoubleValue; } +inline bool Value::has_double_value() const { + return _internal_has_double_value(); +} inline void Value::set_has_double_value() { - _impl_._oneof_case_[0] = kDoubleValue; + _oneof_case_[0] = kDoubleValue; } inline void Value::clear_double_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() == kDoubleValue) { - _impl_.kind_.double_value_ = 0; + if (_internal_has_double_value()) { + kind_.double_value_ = 0; clear_has_kind(); } } -inline double Value::double_value() const { - // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Value.double_value) - return _internal_double_value(); -} -inline void Value::set_double_value(double value) { - _internal_set_double_value(value); - // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Value.double_value) -} inline double Value::_internal_double_value() const { - if (kind_case() == kDoubleValue) { - return _impl_.kind_.double_value_; + if (_internal_has_double_value()) { + return kind_.double_value_; } return 0; } inline void Value::_internal_set_double_value(double value) { - if (kind_case() != kDoubleValue) { + if (!_internal_has_double_value()) { clear_kind(); set_has_double_value(); } - _impl_.kind_.double_value_ = value; + kind_.double_value_ = value; +} +inline double Value::double_value() const { + // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Value.double_value) + return _internal_double_value(); +} +inline void Value::set_double_value(double value) { + _internal_set_double_value(value); + // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Value.double_value) } // string string_value = 6 [json_name = "stringValue"]; -inline bool Value::has_string_value() const { +inline bool Value::_internal_has_string_value() const { return kind_case() == kStringValue; } +inline bool Value::has_string_value() const { + return _internal_has_string_value(); +} inline void Value::set_has_string_value() { - _impl_._oneof_case_[0] = kStringValue; + _oneof_case_[0] = kStringValue; } inline void Value::clear_string_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() == kStringValue) { - _impl_.kind_.string_value_.Destroy(); + if (_internal_has_string_value()) { + kind_.string_value_.Destroy(); clear_has_kind(); } } -inline const std::string& Value::string_value() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Value::string_value() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Value.string_value) return _internal_string_value(); } -template -inline PROTOBUF_ALWAYS_INLINE void Value::set_string_value(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() != kStringValue) { +template +inline void Value::set_string_value(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_string_value()) { clear_kind(); - set_has_string_value(); - _impl_.kind_.string_value_.InitDefault(); + kind_.string_value_.InitDefault(); } - _impl_.kind_.string_value_.Set(static_cast(arg), args..., GetArena()); + kind_.string_value_.Set( static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Value.string_value) } -inline std::string* Value::mutable_string_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Value::mutable_string_value() { std::string* _s = _internal_mutable_string_value(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Value.string_value) return _s; } inline const std::string& Value::_internal_string_value() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - if (kind_case() != kStringValue) { - return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); + if (_internal_has_string_value()) { + return kind_.string_value_.Get(); } - return _impl_.kind_.string_value_.Get(); + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } inline void Value::_internal_set_string_value(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() != kStringValue) { + if (!_internal_has_string_value()) { clear_kind(); - set_has_string_value(); - _impl_.kind_.string_value_.InitDefault(); + kind_.string_value_.InitDefault(); } - _impl_.kind_.string_value_.Set(value, GetArena()); + kind_.string_value_.Set(value, GetArenaForAllocation()); } inline std::string* Value::_internal_mutable_string_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() != kStringValue) { + if (!_internal_has_string_value()) { clear_kind(); - set_has_string_value(); - _impl_.kind_.string_value_.InitDefault(); + kind_.string_value_.InitDefault(); } - return _impl_.kind_.string_value_.Mutable( GetArena()); + return kind_.string_value_.Mutable( GetArenaForAllocation()); } inline std::string* Value::release_string_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Value.string_value) - if (kind_case() != kStringValue) { + if (_internal_has_string_value()) { + clear_has_kind(); + return kind_.string_value_.Release(); + } else { return nullptr; } - clear_has_kind(); - return _impl_.kind_.string_value_.Release(); } -inline void Value::set_allocated_string_value(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Value::set_allocated_string_value(std::string* string_value) { if (has_kind()) { clear_kind(); } - if (value != nullptr) { + if (string_value != nullptr) { set_has_string_value(); - _impl_.kind_.string_value_.InitAllocated(value, GetArena()); + kind_.string_value_.InitAllocated(string_value, GetArenaForAllocation()); } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Value.string_value) } // bytes bytes_value = 7 [json_name = "bytesValue"]; -inline bool Value::has_bytes_value() const { +inline bool Value::_internal_has_bytes_value() const { return kind_case() == kBytesValue; } +inline bool Value::has_bytes_value() const { + return _internal_has_bytes_value(); +} inline void Value::set_has_bytes_value() { - _impl_._oneof_case_[0] = kBytesValue; + _oneof_case_[0] = kBytesValue; } inline void Value::clear_bytes_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() == kBytesValue) { - _impl_.kind_.bytes_value_.Destroy(); + if (_internal_has_bytes_value()) { + kind_.bytes_value_.Destroy(); clear_has_kind(); } } -inline const std::string& Value::bytes_value() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Value::bytes_value() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Value.bytes_value) return _internal_bytes_value(); } -template -inline PROTOBUF_ALWAYS_INLINE void Value::set_bytes_value(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() != kBytesValue) { +template +inline void Value::set_bytes_value(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_bytes_value()) { clear_kind(); - set_has_bytes_value(); - _impl_.kind_.bytes_value_.InitDefault(); + kind_.bytes_value_.InitDefault(); } - _impl_.kind_.bytes_value_.SetBytes(static_cast(arg), args..., GetArena()); + kind_.bytes_value_.SetBytes( static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Value.bytes_value) } -inline std::string* Value::mutable_bytes_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Value::mutable_bytes_value() { std::string* _s = _internal_mutable_bytes_value(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Value.bytes_value) return _s; } inline const std::string& Value::_internal_bytes_value() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - if (kind_case() != kBytesValue) { - return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); + if (_internal_has_bytes_value()) { + return kind_.bytes_value_.Get(); } - return _impl_.kind_.bytes_value_.Get(); + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } inline void Value::_internal_set_bytes_value(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() != kBytesValue) { + if (!_internal_has_bytes_value()) { clear_kind(); - set_has_bytes_value(); - _impl_.kind_.bytes_value_.InitDefault(); + kind_.bytes_value_.InitDefault(); } - _impl_.kind_.bytes_value_.Set(value, GetArena()); + kind_.bytes_value_.Set(value, GetArenaForAllocation()); } inline std::string* Value::_internal_mutable_bytes_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() != kBytesValue) { + if (!_internal_has_bytes_value()) { clear_kind(); - set_has_bytes_value(); - _impl_.kind_.bytes_value_.InitDefault(); + kind_.bytes_value_.InitDefault(); } - return _impl_.kind_.bytes_value_.Mutable( GetArena()); + return kind_.bytes_value_.Mutable( GetArenaForAllocation()); } inline std::string* Value::release_bytes_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Value.bytes_value) - if (kind_case() != kBytesValue) { + if (_internal_has_bytes_value()) { + clear_has_kind(); + return kind_.bytes_value_.Release(); + } else { return nullptr; } - clear_has_kind(); - return _impl_.kind_.bytes_value_.Release(); } -inline void Value::set_allocated_bytes_value(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Value::set_allocated_bytes_value(std::string* bytes_value) { if (has_kind()) { clear_kind(); } - if (value != nullptr) { + if (bytes_value != nullptr) { set_has_bytes_value(); - _impl_.kind_.bytes_value_.InitAllocated(value, GetArena()); + kind_.bytes_value_.InitAllocated(bytes_value, GetArenaForAllocation()); } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Value.bytes_value) } // .google.api.expr.v1beta1.EnumValue enum_value = 9 [json_name = "enumValue"]; -inline bool Value::has_enum_value() const { - return kind_case() == kEnumValue; -} inline bool Value::_internal_has_enum_value() const { return kind_case() == kEnumValue; } +inline bool Value::has_enum_value() const { + return _internal_has_enum_value(); +} inline void Value::set_has_enum_value() { - _impl_._oneof_case_[0] = kEnumValue; + _oneof_case_[0] = kEnumValue; } inline void Value::clear_enum_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() == kEnumValue) { - if (GetArena() == nullptr) { - delete _impl_.kind_.enum_value_; + if (_internal_has_enum_value()) { + if (GetArenaForAllocation() == nullptr) { + delete kind_.enum_value_; } clear_has_kind(); } } inline ::google::api::expr::v1beta1::EnumValue* Value::release_enum_value() { // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Value.enum_value) - if (kind_case() == kEnumValue) { + if (_internal_has_enum_value()) { clear_has_kind(); - auto* temp = _impl_.kind_.enum_value_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::google::api::expr::v1beta1::EnumValue* temp = kind_.enum_value_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.kind_.enum_value_ = nullptr; + kind_.enum_value_ = nullptr; return temp; } else { return nullptr; } } inline const ::google::api::expr::v1beta1::EnumValue& Value::_internal_enum_value() const { - return kind_case() == kEnumValue ? *_impl_.kind_.enum_value_ : reinterpret_cast<::google::api::expr::v1beta1::EnumValue&>(::google::api::expr::v1beta1::_EnumValue_default_instance_); + return _internal_has_enum_value() + ? *kind_.enum_value_ + : reinterpret_cast< ::google::api::expr::v1beta1::EnumValue&>(::google::api::expr::v1beta1::_EnumValue_default_instance_); } -inline const ::google::api::expr::v1beta1::EnumValue& Value::enum_value() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1beta1::EnumValue& Value::enum_value() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Value.enum_value) return _internal_enum_value(); } inline ::google::api::expr::v1beta1::EnumValue* Value::unsafe_arena_release_enum_value() { // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1beta1.Value.enum_value) - if (kind_case() == kEnumValue) { + if (_internal_has_enum_value()) { clear_has_kind(); - auto* temp = _impl_.kind_.enum_value_; - _impl_.kind_.enum_value_ = nullptr; + ::google::api::expr::v1beta1::EnumValue* temp = kind_.enum_value_; + kind_.enum_value_ = nullptr; return temp; } else { return nullptr; } } -inline void Value::unsafe_arena_set_allocated_enum_value(::google::api::expr::v1beta1::EnumValue* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void Value::unsafe_arena_set_allocated_enum_value(::google::api::expr::v1beta1::EnumValue* enum_value) { clear_kind(); - if (value) { + if (enum_value) { set_has_enum_value(); - _impl_.kind_.enum_value_ = value; + kind_.enum_value_ = enum_value; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.Value.enum_value) } inline ::google::api::expr::v1beta1::EnumValue* Value::_internal_mutable_enum_value() { - if (kind_case() != kEnumValue) { + if (!_internal_has_enum_value()) { clear_kind(); set_has_enum_value(); - _impl_.kind_.enum_value_ = CreateMaybeMessage<::google::api::expr::v1beta1::EnumValue>(GetArena()); + kind_.enum_value_ = CreateMaybeMessage< ::google::api::expr::v1beta1::EnumValue >(GetArenaForAllocation()); } - return _impl_.kind_.enum_value_; + return kind_.enum_value_; } -inline ::google::api::expr::v1beta1::EnumValue* Value::mutable_enum_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1beta1::EnumValue* Value::mutable_enum_value() { ::google::api::expr::v1beta1::EnumValue* _msg = _internal_mutable_enum_value(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Value.enum_value) return _msg; } // .google.protobuf.Any object_value = 10 [json_name = "objectValue"]; -inline bool Value::has_object_value() const { - return kind_case() == kObjectValue; -} inline bool Value::_internal_has_object_value() const { return kind_case() == kObjectValue; } +inline bool Value::has_object_value() const { + return _internal_has_object_value(); +} inline void Value::set_has_object_value() { - _impl_._oneof_case_[0] = kObjectValue; + _oneof_case_[0] = kObjectValue; } -inline ::google::protobuf::Any* Value::release_object_value() { +inline ::PROTOBUF_NAMESPACE_ID::Any* Value::release_object_value() { // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Value.object_value) - if (kind_case() == kObjectValue) { + if (_internal_has_object_value()) { clear_has_kind(); - auto* temp = _impl_.kind_.object_value_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::PROTOBUF_NAMESPACE_ID::Any* temp = kind_.object_value_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.kind_.object_value_ = nullptr; + kind_.object_value_ = nullptr; return temp; } else { return nullptr; } } -inline const ::google::protobuf::Any& Value::_internal_object_value() const { - return kind_case() == kObjectValue ? *_impl_.kind_.object_value_ : reinterpret_cast<::google::protobuf::Any&>(::google::protobuf::_Any_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Any& Value::_internal_object_value() const { + return _internal_has_object_value() + ? *kind_.object_value_ + : reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::Any&>(::PROTOBUF_NAMESPACE_ID::_Any_default_instance_); } -inline const ::google::protobuf::Any& Value::object_value() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Any& Value::object_value() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Value.object_value) return _internal_object_value(); } -inline ::google::protobuf::Any* Value::unsafe_arena_release_object_value() { +inline ::PROTOBUF_NAMESPACE_ID::Any* Value::unsafe_arena_release_object_value() { // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1beta1.Value.object_value) - if (kind_case() == kObjectValue) { + if (_internal_has_object_value()) { clear_has_kind(); - auto* temp = _impl_.kind_.object_value_; - _impl_.kind_.object_value_ = nullptr; + ::PROTOBUF_NAMESPACE_ID::Any* temp = kind_.object_value_; + kind_.object_value_ = nullptr; return temp; } else { return nullptr; } } -inline void Value::unsafe_arena_set_allocated_object_value(::google::protobuf::Any* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void Value::unsafe_arena_set_allocated_object_value(::PROTOBUF_NAMESPACE_ID::Any* object_value) { clear_kind(); - if (value) { + if (object_value) { set_has_object_value(); - _impl_.kind_.object_value_ = value; + kind_.object_value_ = object_value; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.Value.object_value) } -inline ::google::protobuf::Any* Value::_internal_mutable_object_value() { - if (kind_case() != kObjectValue) { +inline ::PROTOBUF_NAMESPACE_ID::Any* Value::_internal_mutable_object_value() { + if (!_internal_has_object_value()) { clear_kind(); set_has_object_value(); - _impl_.kind_.object_value_ = CreateMaybeMessage<::google::protobuf::Any>(GetArena()); + kind_.object_value_ = CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::Any >(GetArenaForAllocation()); } - return _impl_.kind_.object_value_; + return kind_.object_value_; } -inline ::google::protobuf::Any* Value::mutable_object_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Any* _msg = _internal_mutable_object_value(); +inline ::PROTOBUF_NAMESPACE_ID::Any* Value::mutable_object_value() { + ::PROTOBUF_NAMESPACE_ID::Any* _msg = _internal_mutable_object_value(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Value.object_value) return _msg; } // .google.api.expr.v1beta1.MapValue map_value = 11 [json_name = "mapValue"]; -inline bool Value::has_map_value() const { - return kind_case() == kMapValue; -} inline bool Value::_internal_has_map_value() const { return kind_case() == kMapValue; } +inline bool Value::has_map_value() const { + return _internal_has_map_value(); +} inline void Value::set_has_map_value() { - _impl_._oneof_case_[0] = kMapValue; + _oneof_case_[0] = kMapValue; } inline void Value::clear_map_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() == kMapValue) { - if (GetArena() == nullptr) { - delete _impl_.kind_.map_value_; + if (_internal_has_map_value()) { + if (GetArenaForAllocation() == nullptr) { + delete kind_.map_value_; } clear_has_kind(); } } inline ::google::api::expr::v1beta1::MapValue* Value::release_map_value() { // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Value.map_value) - if (kind_case() == kMapValue) { + if (_internal_has_map_value()) { clear_has_kind(); - auto* temp = _impl_.kind_.map_value_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::google::api::expr::v1beta1::MapValue* temp = kind_.map_value_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.kind_.map_value_ = nullptr; + kind_.map_value_ = nullptr; return temp; } else { return nullptr; } } inline const ::google::api::expr::v1beta1::MapValue& Value::_internal_map_value() const { - return kind_case() == kMapValue ? *_impl_.kind_.map_value_ : reinterpret_cast<::google::api::expr::v1beta1::MapValue&>(::google::api::expr::v1beta1::_MapValue_default_instance_); + return _internal_has_map_value() + ? *kind_.map_value_ + : reinterpret_cast< ::google::api::expr::v1beta1::MapValue&>(::google::api::expr::v1beta1::_MapValue_default_instance_); } -inline const ::google::api::expr::v1beta1::MapValue& Value::map_value() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1beta1::MapValue& Value::map_value() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Value.map_value) return _internal_map_value(); } inline ::google::api::expr::v1beta1::MapValue* Value::unsafe_arena_release_map_value() { // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1beta1.Value.map_value) - if (kind_case() == kMapValue) { + if (_internal_has_map_value()) { clear_has_kind(); - auto* temp = _impl_.kind_.map_value_; - _impl_.kind_.map_value_ = nullptr; + ::google::api::expr::v1beta1::MapValue* temp = kind_.map_value_; + kind_.map_value_ = nullptr; return temp; } else { return nullptr; } } -inline void Value::unsafe_arena_set_allocated_map_value(::google::api::expr::v1beta1::MapValue* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void Value::unsafe_arena_set_allocated_map_value(::google::api::expr::v1beta1::MapValue* map_value) { clear_kind(); - if (value) { + if (map_value) { set_has_map_value(); - _impl_.kind_.map_value_ = value; + kind_.map_value_ = map_value; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.Value.map_value) } inline ::google::api::expr::v1beta1::MapValue* Value::_internal_mutable_map_value() { - if (kind_case() != kMapValue) { + if (!_internal_has_map_value()) { clear_kind(); set_has_map_value(); - _impl_.kind_.map_value_ = CreateMaybeMessage<::google::api::expr::v1beta1::MapValue>(GetArena()); + kind_.map_value_ = CreateMaybeMessage< ::google::api::expr::v1beta1::MapValue >(GetArenaForAllocation()); } - return _impl_.kind_.map_value_; + return kind_.map_value_; } -inline ::google::api::expr::v1beta1::MapValue* Value::mutable_map_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1beta1::MapValue* Value::mutable_map_value() { ::google::api::expr::v1beta1::MapValue* _msg = _internal_mutable_map_value(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Value.map_value) return _msg; } // .google.api.expr.v1beta1.ListValue list_value = 12 [json_name = "listValue"]; -inline bool Value::has_list_value() const { - return kind_case() == kListValue; -} inline bool Value::_internal_has_list_value() const { return kind_case() == kListValue; } +inline bool Value::has_list_value() const { + return _internal_has_list_value(); +} inline void Value::set_has_list_value() { - _impl_._oneof_case_[0] = kListValue; + _oneof_case_[0] = kListValue; } inline void Value::clear_list_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() == kListValue) { - if (GetArena() == nullptr) { - delete _impl_.kind_.list_value_; + if (_internal_has_list_value()) { + if (GetArenaForAllocation() == nullptr) { + delete kind_.list_value_; } clear_has_kind(); } } inline ::google::api::expr::v1beta1::ListValue* Value::release_list_value() { // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Value.list_value) - if (kind_case() == kListValue) { + if (_internal_has_list_value()) { clear_has_kind(); - auto* temp = _impl_.kind_.list_value_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::google::api::expr::v1beta1::ListValue* temp = kind_.list_value_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.kind_.list_value_ = nullptr; + kind_.list_value_ = nullptr; return temp; } else { return nullptr; } } inline const ::google::api::expr::v1beta1::ListValue& Value::_internal_list_value() const { - return kind_case() == kListValue ? *_impl_.kind_.list_value_ : reinterpret_cast<::google::api::expr::v1beta1::ListValue&>(::google::api::expr::v1beta1::_ListValue_default_instance_); + return _internal_has_list_value() + ? *kind_.list_value_ + : reinterpret_cast< ::google::api::expr::v1beta1::ListValue&>(::google::api::expr::v1beta1::_ListValue_default_instance_); } -inline const ::google::api::expr::v1beta1::ListValue& Value::list_value() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1beta1::ListValue& Value::list_value() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Value.list_value) return _internal_list_value(); } inline ::google::api::expr::v1beta1::ListValue* Value::unsafe_arena_release_list_value() { // @@protoc_insertion_point(field_unsafe_arena_release:google.api.expr.v1beta1.Value.list_value) - if (kind_case() == kListValue) { + if (_internal_has_list_value()) { clear_has_kind(); - auto* temp = _impl_.kind_.list_value_; - _impl_.kind_.list_value_ = nullptr; + ::google::api::expr::v1beta1::ListValue* temp = kind_.list_value_; + kind_.list_value_ = nullptr; return temp; } else { return nullptr; } } -inline void Value::unsafe_arena_set_allocated_list_value(::google::api::expr::v1beta1::ListValue* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void Value::unsafe_arena_set_allocated_list_value(::google::api::expr::v1beta1::ListValue* list_value) { clear_kind(); - if (value) { + if (list_value) { set_has_list_value(); - _impl_.kind_.list_value_ = value; + kind_.list_value_ = list_value; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.Value.list_value) } inline ::google::api::expr::v1beta1::ListValue* Value::_internal_mutable_list_value() { - if (kind_case() != kListValue) { + if (!_internal_has_list_value()) { clear_kind(); set_has_list_value(); - _impl_.kind_.list_value_ = CreateMaybeMessage<::google::api::expr::v1beta1::ListValue>(GetArena()); + kind_.list_value_ = CreateMaybeMessage< ::google::api::expr::v1beta1::ListValue >(GetArenaForAllocation()); } - return _impl_.kind_.list_value_; + return kind_.list_value_; } -inline ::google::api::expr::v1beta1::ListValue* Value::mutable_list_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1beta1::ListValue* Value::mutable_list_value() { ::google::api::expr::v1beta1::ListValue* _msg = _internal_mutable_list_value(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Value.list_value) return _msg; } // string type_value = 15 [json_name = "typeValue"]; -inline bool Value::has_type_value() const { +inline bool Value::_internal_has_type_value() const { return kind_case() == kTypeValue; } +inline bool Value::has_type_value() const { + return _internal_has_type_value(); +} inline void Value::set_has_type_value() { - _impl_._oneof_case_[0] = kTypeValue; + _oneof_case_[0] = kTypeValue; } inline void Value::clear_type_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() == kTypeValue) { - _impl_.kind_.type_value_.Destroy(); + if (_internal_has_type_value()) { + kind_.type_value_.Destroy(); clear_has_kind(); } } -inline const std::string& Value::type_value() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Value::type_value() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.Value.type_value) return _internal_type_value(); } -template -inline PROTOBUF_ALWAYS_INLINE void Value::set_type_value(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() != kTypeValue) { +template +inline void Value::set_type_value(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_type_value()) { clear_kind(); - set_has_type_value(); - _impl_.kind_.type_value_.InitDefault(); + kind_.type_value_.InitDefault(); } - _impl_.kind_.type_value_.Set(static_cast(arg), args..., GetArena()); + kind_.type_value_.Set( static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.Value.type_value) } -inline std::string* Value::mutable_type_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Value::mutable_type_value() { std::string* _s = _internal_mutable_type_value(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.Value.type_value) return _s; } inline const std::string& Value::_internal_type_value() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - if (kind_case() != kTypeValue) { - return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); + if (_internal_has_type_value()) { + return kind_.type_value_.Get(); } - return _impl_.kind_.type_value_.Get(); + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } inline void Value::_internal_set_type_value(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() != kTypeValue) { + if (!_internal_has_type_value()) { clear_kind(); - set_has_type_value(); - _impl_.kind_.type_value_.InitDefault(); + kind_.type_value_.InitDefault(); } - _impl_.kind_.type_value_.Set(value, GetArena()); + kind_.type_value_.Set(value, GetArenaForAllocation()); } inline std::string* Value::_internal_mutable_type_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() != kTypeValue) { + if (!_internal_has_type_value()) { clear_kind(); - set_has_type_value(); - _impl_.kind_.type_value_.InitDefault(); + kind_.type_value_.InitDefault(); } - return _impl_.kind_.type_value_.Mutable( GetArena()); + return kind_.type_value_.Mutable( GetArenaForAllocation()); } inline std::string* Value::release_type_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.Value.type_value) - if (kind_case() != kTypeValue) { + if (_internal_has_type_value()) { + clear_has_kind(); + return kind_.type_value_.Release(); + } else { return nullptr; } - clear_has_kind(); - return _impl_.kind_.type_value_.Release(); } -inline void Value::set_allocated_type_value(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Value::set_allocated_type_value(std::string* type_value) { if (has_kind()) { clear_kind(); } - if (value != nullptr) { + if (type_value != nullptr) { set_has_type_value(); - _impl_.kind_.type_value_.InitAllocated(value, GetArena()); + kind_.type_value_.InitAllocated(type_value, GetArenaForAllocation()); } // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.Value.type_value) } @@ -2010,10 +1828,10 @@ inline bool Value::has_kind() const { return kind_case() != KIND_NOT_SET; } inline void Value::clear_has_kind() { - _impl_._oneof_case_[0] = KIND_NOT_SET; + _oneof_case_[0] = KIND_NOT_SET; } inline Value::KindCase Value::kind_case() const { - return Value::KindCase(_impl_._oneof_case_[0]); + return Value::KindCase(_oneof_case_[0]); } // ------------------------------------------------------------------- @@ -2021,79 +1839,73 @@ inline Value::KindCase Value::kind_case() const { // string type = 1 [json_name = "type"]; inline void EnumValue::clear_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_.ClearToEmpty(); + type_.ClearToEmpty(); } -inline const std::string& EnumValue::type() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& EnumValue::type() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.EnumValue.type) return _internal_type(); } -template -inline PROTOBUF_ALWAYS_INLINE void EnumValue::set_type(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.type_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void EnumValue::set_type(ArgT0&& arg0, ArgT... args) { + + type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.EnumValue.type) } -inline std::string* EnumValue::mutable_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* EnumValue::mutable_type() { std::string* _s = _internal_mutable_type(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.EnumValue.type) return _s; } inline const std::string& EnumValue::_internal_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.type_.Get(); + return type_.Get(); } inline void EnumValue::_internal_set_type(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.type_.Set(value, GetArena()); + + type_.Set(value, GetArenaForAllocation()); } inline std::string* EnumValue::_internal_mutable_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.type_.Mutable( GetArena()); + + return type_.Mutable(GetArenaForAllocation()); } inline std::string* EnumValue::release_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.EnumValue.type) - return _impl_.type_.Release(); -} -inline void EnumValue::set_allocated_type(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.type_.IsDefault()) { - _impl_.type_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return type_.Release(); +} +inline void EnumValue::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:google.api.expr.v1beta1.EnumValue.type) } // int32 value = 2 [json_name = "value"]; inline void EnumValue::clear_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.value_ = 0; + value_ = 0; +} +inline int32_t EnumValue::_internal_value() const { + return value_; } -inline ::int32_t EnumValue::value() const { +inline int32_t EnumValue::value() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.EnumValue.value) return _internal_value(); } -inline void EnumValue::set_value(::int32_t value) { +inline void EnumValue::_internal_set_value(int32_t value) { + + value_ = value; +} +inline void EnumValue::set_value(int32_t value) { _internal_set_value(value); // @@protoc_insertion_point(field_set:google.api.expr.v1beta1.EnumValue.value) } -inline ::int32_t EnumValue::_internal_value() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.value_; -} -inline void EnumValue::_internal_set_value(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.value_ = value; -} // ------------------------------------------------------------------- @@ -2101,51 +1913,42 @@ inline void EnumValue::_internal_set_value(::int32_t value) { // repeated .google.api.expr.v1beta1.Value values = 1 [json_name = "values"]; inline int ListValue::_internal_values_size() const { - return _internal_values().size(); + return values_.size(); } inline int ListValue::values_size() const { return _internal_values_size(); } inline void ListValue::clear_values() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.values_.Clear(); + values_.Clear(); } -inline ::google::api::expr::v1beta1::Value* ListValue::mutable_values(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1beta1::Value* ListValue::mutable_values(int index) { // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.ListValue.values) - return _internal_mutable_values()->Mutable(index); + return values_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::Value>* ListValue::mutable_values() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::Value >* +ListValue::mutable_values() { // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1beta1.ListValue.values) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_values(); + return &values_; +} +inline const ::google::api::expr::v1beta1::Value& ListValue::_internal_values(int index) const { + return values_.Get(index); } -inline const ::google::api::expr::v1beta1::Value& ListValue::values(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1beta1::Value& ListValue::values(int index) const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.ListValue.values) - return _internal_values().Get(index); + return _internal_values(index); } -inline ::google::api::expr::v1beta1::Value* ListValue::add_values() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::google::api::expr::v1beta1::Value* _add = _internal_mutable_values()->Add(); +inline ::google::api::expr::v1beta1::Value* ListValue::_internal_add_values() { + return values_.Add(); +} +inline ::google::api::expr::v1beta1::Value* ListValue::add_values() { + ::google::api::expr::v1beta1::Value* _add = _internal_add_values(); // @@protoc_insertion_point(field_add:google.api.expr.v1beta1.ListValue.values) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::Value>& ListValue::values() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::Value >& +ListValue::values() const { // @@protoc_insertion_point(field_list:google.api.expr.v1beta1.ListValue.values) - return _internal_values(); -} -inline const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::Value>& -ListValue::_internal_values() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.values_; -} -inline ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::Value>* -ListValue::_internal_mutable_values() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.values_; + return values_; } // ------------------------------------------------------------------- @@ -2153,194 +1956,182 @@ ListValue::_internal_mutable_values() { // MapValue_Entry // .google.api.expr.v1beta1.Value key = 1 [json_name = "key"]; +inline bool MapValue_Entry::_internal_has_key() const { + return this != internal_default_instance() && key_ != nullptr; +} inline bool MapValue_Entry::has_key() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.key_ != nullptr); - return value; + return _internal_has_key(); } inline void MapValue_Entry::clear_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.key_ != nullptr) _impl_.key_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && key_ != nullptr) { + delete key_; + } + key_ = nullptr; } inline const ::google::api::expr::v1beta1::Value& MapValue_Entry::_internal_key() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::expr::v1beta1::Value* p = _impl_.key_; - return p != nullptr ? *p : reinterpret_cast(::google::api::expr::v1beta1::_Value_default_instance_); + const ::google::api::expr::v1beta1::Value* p = key_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1beta1::_Value_default_instance_); } -inline const ::google::api::expr::v1beta1::Value& MapValue_Entry::key() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1beta1::Value& MapValue_Entry::key() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.MapValue.Entry.key) return _internal_key(); } -inline void MapValue_Entry::unsafe_arena_set_allocated_key(::google::api::expr::v1beta1::Value* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.key_); +inline void MapValue_Entry::unsafe_arena_set_allocated_key( + ::google::api::expr::v1beta1::Value* key) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(key_); } - _impl_.key_ = reinterpret_cast<::google::api::expr::v1beta1::Value*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + key_ = key; + if (key) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.MapValue.Entry.key) } inline ::google::api::expr::v1beta1::Value* MapValue_Entry::release_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::expr::v1beta1::Value* released = _impl_.key_; - _impl_.key_ = nullptr; + + ::google::api::expr::v1beta1::Value* temp = key_; + key_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::expr::v1beta1::Value* MapValue_Entry::unsafe_arena_release_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.MapValue.Entry.key) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::api::expr::v1beta1::Value* temp = _impl_.key_; - _impl_.key_ = nullptr; + + ::google::api::expr::v1beta1::Value* temp = key_; + key_ = nullptr; return temp; } inline ::google::api::expr::v1beta1::Value* MapValue_Entry::_internal_mutable_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.key_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::expr::v1beta1::Value>(GetArena()); - _impl_.key_ = reinterpret_cast<::google::api::expr::v1beta1::Value*>(p); + + if (key_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1beta1::Value>(GetArenaForAllocation()); + key_ = p; } - return _impl_.key_; + return key_; } -inline ::google::api::expr::v1beta1::Value* MapValue_Entry::mutable_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1beta1::Value* MapValue_Entry::mutable_key() { ::google::api::expr::v1beta1::Value* _msg = _internal_mutable_key(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.MapValue.Entry.key) return _msg; } -inline void MapValue_Entry::set_allocated_key(::google::api::expr::v1beta1::Value* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void MapValue_Entry::set_allocated_key(::google::api::expr::v1beta1::Value* key) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::api::expr::v1beta1::Value*>(_impl_.key_); + delete key_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::api::expr::v1beta1::Value*>(value)->GetArena(); + if (key) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(key); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + key = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, key, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.key_ = reinterpret_cast<::google::api::expr::v1beta1::Value*>(value); + key_ = key; // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.MapValue.Entry.key) } // .google.api.expr.v1beta1.Value value = 2 [json_name = "value"]; +inline bool MapValue_Entry::_internal_has_value() const { + return this != internal_default_instance() && value_ != nullptr; +} inline bool MapValue_Entry::has_value() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.value_ != nullptr); - return value; + return _internal_has_value(); } inline void MapValue_Entry::clear_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.value_ != nullptr) _impl_.value_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && value_ != nullptr) { + delete value_; + } + value_ = nullptr; } inline const ::google::api::expr::v1beta1::Value& MapValue_Entry::_internal_value() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::api::expr::v1beta1::Value* p = _impl_.value_; - return p != nullptr ? *p : reinterpret_cast(::google::api::expr::v1beta1::_Value_default_instance_); + const ::google::api::expr::v1beta1::Value* p = value_; + return p != nullptr ? *p : reinterpret_cast( + ::google::api::expr::v1beta1::_Value_default_instance_); } -inline const ::google::api::expr::v1beta1::Value& MapValue_Entry::value() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1beta1::Value& MapValue_Entry::value() const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.MapValue.Entry.value) return _internal_value(); } -inline void MapValue_Entry::unsafe_arena_set_allocated_value(::google::api::expr::v1beta1::Value* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.value_); +inline void MapValue_Entry::unsafe_arena_set_allocated_value( + ::google::api::expr::v1beta1::Value* value) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(value_); } - _impl_.value_ = reinterpret_cast<::google::api::expr::v1beta1::Value*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + value_ = value; + if (value) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.expr.v1beta1.MapValue.Entry.value) } inline ::google::api::expr::v1beta1::Value* MapValue_Entry::release_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::api::expr::v1beta1::Value* released = _impl_.value_; - _impl_.value_ = nullptr; + + ::google::api::expr::v1beta1::Value* temp = value_; + value_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::api::expr::v1beta1::Value* MapValue_Entry::unsafe_arena_release_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.expr.v1beta1.MapValue.Entry.value) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::api::expr::v1beta1::Value* temp = _impl_.value_; - _impl_.value_ = nullptr; + + ::google::api::expr::v1beta1::Value* temp = value_; + value_ = nullptr; return temp; } inline ::google::api::expr::v1beta1::Value* MapValue_Entry::_internal_mutable_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.value_ == nullptr) { - auto* p = CreateMaybeMessage<::google::api::expr::v1beta1::Value>(GetArena()); - _impl_.value_ = reinterpret_cast<::google::api::expr::v1beta1::Value*>(p); + + if (value_ == nullptr) { + auto* p = CreateMaybeMessage<::google::api::expr::v1beta1::Value>(GetArenaForAllocation()); + value_ = p; } - return _impl_.value_; + return value_; } -inline ::google::api::expr::v1beta1::Value* MapValue_Entry::mutable_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1beta1::Value* MapValue_Entry::mutable_value() { ::google::api::expr::v1beta1::Value* _msg = _internal_mutable_value(); // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.MapValue.Entry.value) return _msg; } inline void MapValue_Entry::set_allocated_value(::google::api::expr::v1beta1::Value* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::api::expr::v1beta1::Value*>(_impl_.value_); + delete value_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::api::expr::v1beta1::Value*>(value)->GetArena(); + if (value) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(value); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, value, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.value_ = reinterpret_cast<::google::api::expr::v1beta1::Value*>(value); + value_ = value; // @@protoc_insertion_point(field_set_allocated:google.api.expr.v1beta1.MapValue.Entry.value) } @@ -2350,66 +2141,64 @@ inline void MapValue_Entry::set_allocated_value(::google::api::expr::v1beta1::Va // repeated .google.api.expr.v1beta1.MapValue.Entry entries = 1 [json_name = "entries"]; inline int MapValue::_internal_entries_size() const { - return _internal_entries().size(); + return entries_.size(); } inline int MapValue::entries_size() const { return _internal_entries_size(); } inline void MapValue::clear_entries() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.entries_.Clear(); + entries_.Clear(); } -inline ::google::api::expr::v1beta1::MapValue_Entry* MapValue::mutable_entries(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::expr::v1beta1::MapValue_Entry* MapValue::mutable_entries(int index) { // @@protoc_insertion_point(field_mutable:google.api.expr.v1beta1.MapValue.entries) - return _internal_mutable_entries()->Mutable(index); + return entries_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::MapValue_Entry>* MapValue::mutable_entries() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::MapValue_Entry >* +MapValue::mutable_entries() { // @@protoc_insertion_point(field_mutable_list:google.api.expr.v1beta1.MapValue.entries) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_entries(); + return &entries_; +} +inline const ::google::api::expr::v1beta1::MapValue_Entry& MapValue::_internal_entries(int index) const { + return entries_.Get(index); } -inline const ::google::api::expr::v1beta1::MapValue_Entry& MapValue::entries(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::expr::v1beta1::MapValue_Entry& MapValue::entries(int index) const { // @@protoc_insertion_point(field_get:google.api.expr.v1beta1.MapValue.entries) - return _internal_entries().Get(index); + return _internal_entries(index); } -inline ::google::api::expr::v1beta1::MapValue_Entry* MapValue::add_entries() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::google::api::expr::v1beta1::MapValue_Entry* _add = _internal_mutable_entries()->Add(); +inline ::google::api::expr::v1beta1::MapValue_Entry* MapValue::_internal_add_entries() { + return entries_.Add(); +} +inline ::google::api::expr::v1beta1::MapValue_Entry* MapValue::add_entries() { + ::google::api::expr::v1beta1::MapValue_Entry* _add = _internal_add_entries(); // @@protoc_insertion_point(field_add:google.api.expr.v1beta1.MapValue.entries) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::MapValue_Entry>& MapValue::entries() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::expr::v1beta1::MapValue_Entry >& +MapValue::entries() const { // @@protoc_insertion_point(field_list:google.api.expr.v1beta1.MapValue.entries) - return _internal_entries(); -} -inline const ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::MapValue_Entry>& -MapValue::_internal_entries() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.entries_; -} -inline ::google::protobuf::RepeatedPtrField<::google::api::expr::v1beta1::MapValue_Entry>* -MapValue::_internal_mutable_entries() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.entries_; + return entries_; } #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) + } // namespace v1beta1 } // namespace expr } // namespace api } // namespace google - // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fexpr_2fv1beta1_2fvalue_2eproto diff --git a/src/viam/api/google/api/field_behavior.grpc.pb.cc b/src/viam/api/google/api/field_behavior.grpc.pb.cc index c09b0be08..4c2a4b9ef 100644 --- a/src/viam/api/google/api/field_behavior.grpc.pb.cc +++ b/src/viam/api/google/api/field_behavior.grpc.pb.cc @@ -6,19 +6,19 @@ #include "google/api/field_behavior.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace google { namespace api { diff --git a/src/viam/api/google/api/field_behavior.grpc.pb.h b/src/viam/api/google/api/field_behavior.grpc.pb.h index 62b2b3189..97c9faa60 100644 --- a/src/viam/api/google/api/field_behavior.grpc.pb.h +++ b/src/viam/api/google/api/field_behavior.grpc.pb.h @@ -22,23 +22,24 @@ #include "google/api/field_behavior.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace google { namespace api { diff --git a/src/viam/api/google/api/field_behavior.pb.cc b/src/viam/api/google/api/field_behavior.pb.cc index 60f414c0e..2d3c65d82 100644 --- a/src/viam/api/google/api/field_behavior.pb.cc +++ b/src/viam/api/google/api/field_behavior.pb.cc @@ -4,108 +4,97 @@ #include "google/api/field_behavior.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace google { namespace api { } // namespace api } // namespace google static const ::_pb::EnumDescriptor* file_level_enum_descriptors_google_2fapi_2ffield_5fbehavior_2eproto[1]; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_google_2fapi_2ffield_5fbehavior_2eproto = nullptr; -const ::uint32_t TableStruct_google_2fapi_2ffield_5fbehavior_2eproto::offsets[1] = {}; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_google_2fapi_2ffield_5fbehavior_2eproto = nullptr; +const uint32_t TableStruct_google_2fapi_2ffield_5fbehavior_2eproto::offsets[1] = {}; static constexpr ::_pbi::MigrationSchema* schemas = nullptr; static constexpr ::_pb::Message* const* file_default_instances = nullptr; -const char descriptor_table_protodef_google_2fapi_2ffield_5fbehavior_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n\037google/api/field_behavior.proto\022\ngoogl" - "e.api\032 google/protobuf/descriptor.proto*" - "\266\001\n\rFieldBehavior\022\036\n\032FIELD_BEHAVIOR_UNSP" - "ECIFIED\020\000\022\014\n\010OPTIONAL\020\001\022\014\n\010REQUIRED\020\002\022\017\n" - "\013OUTPUT_ONLY\020\003\022\016\n\nINPUT_ONLY\020\004\022\r\n\tIMMUTA" - "BLE\020\005\022\022\n\016UNORDERED_LIST\020\006\022\025\n\021NON_EMPTY_D" - "EFAULT\020\007\022\016\n\nIDENTIFIER\020\010:d\n\016field_behavi" - "or\022\035.google.protobuf.FieldOptions\030\234\010 \003(\016" - "2\031.google.api.FieldBehaviorB\002\020\000R\rfieldBe" - "haviorB\260\001\n\016com.google.apiB\022FieldBehavior" - "ProtoP\001ZAgoogle.golang.org/genproto/goog" - "leapis/api/annotations;annotations\242\002\003GAX" - "\252\002\nGoogle.Api\312\002\nGoogle\\Api\342\002\026Google\\Api\\" - "GPBMetadata\352\002\013Google::Apib\006proto3" -}; -static const ::_pbi::DescriptorTable* const descriptor_table_google_2fapi_2ffield_5fbehavior_2eproto_deps[1] = - { - &::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto, + +const char descriptor_table_protodef_google_2fapi_2ffield_5fbehavior_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\037google/api/field_behavior.proto\022\ngoogl" + "e.api\032 google/protobuf/descriptor.proto*" + "\266\001\n\rFieldBehavior\022\036\n\032FIELD_BEHAVIOR_UNSP" + "ECIFIED\020\000\022\014\n\010OPTIONAL\020\001\022\014\n\010REQUIRED\020\002\022\017\n" + "\013OUTPUT_ONLY\020\003\022\016\n\nINPUT_ONLY\020\004\022\r\n\tIMMUTA" + "BLE\020\005\022\022\n\016UNORDERED_LIST\020\006\022\025\n\021NON_EMPTY_D" + "EFAULT\020\007\022\016\n\nIDENTIFIER\020\010:d\n\016field_behavi" + "or\022\035.google.protobuf.FieldOptions\030\234\010 \003(\016" + "2\031.google.api.FieldBehaviorB\002\020\000R\rfieldBe" + "haviorBp\n\016com.google.apiB\022FieldBehaviorP" + "rotoP\001ZAgoogle.golang.org/genproto/googl" + "eapis/api/annotations;annotations\242\002\004GAPI" + "b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_google_2fapi_2ffield_5fbehavior_2eproto_deps[1] = { + &::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto, }; -static ::absl::once_flag descriptor_table_google_2fapi_2ffield_5fbehavior_2eproto_once; +static ::_pbi::once_flag descriptor_table_google_2fapi_2ffield_5fbehavior_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_google_2fapi_2ffield_5fbehavior_2eproto = { - false, - false, - 553, - descriptor_table_protodef_google_2fapi_2ffield_5fbehavior_2eproto, + false, false, 488, descriptor_table_protodef_google_2fapi_2ffield_5fbehavior_2eproto, "google/api/field_behavior.proto", - &descriptor_table_google_2fapi_2ffield_5fbehavior_2eproto_once, - descriptor_table_google_2fapi_2ffield_5fbehavior_2eproto_deps, - 1, - 0, - schemas, - file_default_instances, - TableStruct_google_2fapi_2ffield_5fbehavior_2eproto::offsets, - nullptr, - file_level_enum_descriptors_google_2fapi_2ffield_5fbehavior_2eproto, + &descriptor_table_google_2fapi_2ffield_5fbehavior_2eproto_once, descriptor_table_google_2fapi_2ffield_5fbehavior_2eproto_deps, 1, 0, + schemas, file_default_instances, TableStruct_google_2fapi_2ffield_5fbehavior_2eproto::offsets, + nullptr, file_level_enum_descriptors_google_2fapi_2ffield_5fbehavior_2eproto, file_level_service_descriptors_google_2fapi_2ffield_5fbehavior_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2fapi_2ffield_5fbehavior_2eproto_getter() { return &descriptor_table_google_2fapi_2ffield_5fbehavior_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fapi_2ffield_5fbehavior_2eproto(&descriptor_table_google_2fapi_2ffield_5fbehavior_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fapi_2ffield_5fbehavior_2eproto(&descriptor_table_google_2fapi_2ffield_5fbehavior_2eproto); namespace google { namespace api { -const ::google::protobuf::EnumDescriptor* FieldBehavior_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_google_2fapi_2ffield_5fbehavior_2eproto); +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FieldBehavior_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_google_2fapi_2ffield_5fbehavior_2eproto); return file_level_enum_descriptors_google_2fapi_2ffield_5fbehavior_2eproto[0]; } -PROTOBUF_CONSTINIT const uint32_t FieldBehavior_internal_data_[] = { - 589824u, 0u, }; bool FieldBehavior_IsValid(int value) { - return 0 <= value && value <= 8; + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + return true; + default: + return false; + } } -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::FieldOptions, - ::google::protobuf::internal::RepeatedEnumTypeTraits< ::google::api::FieldBehavior, ::google::api::FieldBehavior_IsValid>, 14, false> + +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::FieldOptions, + ::PROTOBUF_NAMESPACE_ID::internal::RepeatedEnumTypeTraits< ::google::api::FieldBehavior, ::google::api::FieldBehavior_IsValid>, 14, false> field_behavior(kFieldBehaviorFieldNumber, static_cast< ::google::api::FieldBehavior >(0), nullptr); + // @@protoc_insertion_point(namespace_scope) } // namespace api } // namespace google -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/google/api/field_behavior.pb.h b/src/viam/api/google/api/field_behavior.pb.h index 76d24ee26..b0cc68eeb 100644 --- a/src/viam/api/google/api/field_behavior.pb.h +++ b/src/viam/api/google/api/field_behavior.pb.h @@ -1,67 +1,54 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/field_behavior.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2ffield_5fbehavior_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2ffield_5fbehavior_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2ffield_5fbehavior_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2ffield_5fbehavior_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/generated_enum_reflection.h" -#include "google/protobuf/descriptor.pb.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +// @@protoc_insertion_point(includes) +#include #define PROTOBUF_INTERNAL_EXPORT_google_2fapi_2ffield_5fbehavior_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_google_2fapi_2ffield_5fbehavior_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_google_2fapi_2ffield_5fbehavior_2eproto; -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fapi_2ffield_5fbehavior_2eproto; +PROTOBUF_NAMESPACE_OPEN +PROTOBUF_NAMESPACE_CLOSE namespace google { namespace api { + enum FieldBehavior : int { FIELD_BEHAVIOR_UNSPECIFIED = 0, OPTIONAL = 1, @@ -72,81 +59,64 @@ enum FieldBehavior : int { UNORDERED_LIST = 6, NON_EMPTY_DEFAULT = 7, IDENTIFIER = 8, - FieldBehavior_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - FieldBehavior_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), + FieldBehavior_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + FieldBehavior_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() }; - bool FieldBehavior_IsValid(int value); -extern const uint32_t FieldBehavior_internal_data_[]; -constexpr FieldBehavior FieldBehavior_MIN = static_cast(0); -constexpr FieldBehavior FieldBehavior_MAX = static_cast(8); -constexpr int FieldBehavior_ARRAYSIZE = 8 + 1; -const ::google::protobuf::EnumDescriptor* -FieldBehavior_descriptor(); -template -const std::string& FieldBehavior_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to FieldBehavior_Name()."); - return FieldBehavior_Name(static_cast(value)); -} -template <> -inline const std::string& FieldBehavior_Name(FieldBehavior value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); +constexpr FieldBehavior FieldBehavior_MIN = FIELD_BEHAVIOR_UNSPECIFIED; +constexpr FieldBehavior FieldBehavior_MAX = IDENTIFIER; +constexpr int FieldBehavior_ARRAYSIZE = FieldBehavior_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FieldBehavior_descriptor(); +template +inline const std::string& FieldBehavior_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function FieldBehavior_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + FieldBehavior_descriptor(), enum_t_value); } -inline bool FieldBehavior_Parse(absl::string_view name, FieldBehavior* value) { - return ::google::protobuf::internal::ParseNamedEnum( - FieldBehavior_descriptor(), name, value); +inline bool FieldBehavior_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FieldBehavior* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + FieldBehavior_descriptor(), name, value); } - // =================================================================== - // =================================================================== - - static const int kFieldBehaviorFieldNumber = 1052; -extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::FieldOptions, - ::google::protobuf::internal::RepeatedEnumTypeTraits< ::google::api::FieldBehavior, ::google::api::FieldBehavior_IsValid>, 14, false > +extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::FieldOptions, + ::PROTOBUF_NAMESPACE_ID::internal::RepeatedEnumTypeTraits< ::google::api::FieldBehavior, ::google::api::FieldBehavior_IsValid>, 14, false > field_behavior; // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ // @@protoc_insertion_point(namespace_scope) + } // namespace api } // namespace google +PROTOBUF_NAMESPACE_OPEN -namespace google { -namespace protobuf { - +template <> struct is_proto_enum< ::google::api::FieldBehavior> : ::std::true_type {}; template <> -struct is_proto_enum<::google::api::FieldBehavior> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::google::api::FieldBehavior>() { +inline const EnumDescriptor* GetEnumDescriptor< ::google::api::FieldBehavior>() { return ::google::api::FieldBehavior_descriptor(); } -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2ffield_5fbehavior_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2ffield_5fbehavior_2eproto diff --git a/src/viam/api/google/api/field_info.grpc.pb.cc b/src/viam/api/google/api/field_info.grpc.pb.cc index ed5edd5e8..428d22caa 100644 --- a/src/viam/api/google/api/field_info.grpc.pb.cc +++ b/src/viam/api/google/api/field_info.grpc.pb.cc @@ -6,19 +6,19 @@ #include "google/api/field_info.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace google { namespace api { diff --git a/src/viam/api/google/api/field_info.grpc.pb.h b/src/viam/api/google/api/field_info.grpc.pb.h index d2fb7c506..45671c612 100644 --- a/src/viam/api/google/api/field_info.grpc.pb.h +++ b/src/viam/api/google/api/field_info.grpc.pb.h @@ -22,23 +22,24 @@ #include "google/api/field_info.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace google { namespace api { diff --git a/src/viam/api/google/api/field_info.pb.cc b/src/viam/api/google/api/field_info.pb.cc index 7237a96d2..19e5f58f5 100644 --- a/src/viam/api/google/api/field_info.pb.cc +++ b/src/viam/api/google/api/field_info.pb.cc @@ -4,176 +4,137 @@ #include "google/api/field_info.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; -namespace google { -namespace api { -inline constexpr TypeReference::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : type_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; -template -PROTOBUF_CONSTEXPR TypeReference::TypeReference(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct TypeReferenceDefaultTypeInternal { - PROTOBUF_CONSTEXPR TypeReferenceDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TypeReferenceDefaultTypeInternal() {} - union { - TypeReference _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TypeReferenceDefaultTypeInternal _TypeReference_default_instance_; - -inline constexpr FieldInfo::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : referenced_types_{}, - format_{static_cast< ::google::api::FieldInfo_Format >(0)}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR FieldInfo::FieldInfo(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +namespace google { +namespace api { +PROTOBUF_CONSTEXPR FieldInfo::FieldInfo( + ::_pbi::ConstantInitialized) + : referenced_types_() + , format_(0) +{} struct FieldInfoDefaultTypeInternal { - PROTOBUF_CONSTEXPR FieldInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR FieldInfoDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~FieldInfoDefaultTypeInternal() {} union { FieldInfo _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FieldInfoDefaultTypeInternal _FieldInfo_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FieldInfoDefaultTypeInternal _FieldInfo_default_instance_; +PROTOBUF_CONSTEXPR TypeReference::TypeReference( + ::_pbi::ConstantInitialized) + : type_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct TypeReferenceDefaultTypeInternal { + PROTOBUF_CONSTEXPR TypeReferenceDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~TypeReferenceDefaultTypeInternal() {} + union { + TypeReference _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TypeReferenceDefaultTypeInternal _TypeReference_default_instance_; } // namespace api } // namespace google static ::_pb::Metadata file_level_metadata_google_2fapi_2ffield_5finfo_2eproto[2]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_google_2fapi_2ffield_5finfo_2eproto[1]; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_google_2fapi_2ffield_5finfo_2eproto = nullptr; -const ::uint32_t TableStruct_google_2fapi_2ffield_5finfo_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::FieldInfo, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::FieldInfo, _impl_.format_), - PROTOBUF_FIELD_OFFSET(::google::api::FieldInfo, _impl_.referenced_types_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::TypeReference, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::TypeReference, _impl_.type_name_), +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_google_2fapi_2ffield_5finfo_2eproto = nullptr; + +const uint32_t TableStruct_google_2fapi_2ffield_5finfo_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::FieldInfo, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::FieldInfo, format_), + PROTOBUF_FIELD_OFFSET(::google::api::FieldInfo, referenced_types_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::TypeReference, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::TypeReference, type_name_), }; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, -1, -1, sizeof(::google::api::FieldInfo)}, - {10, -1, -1, sizeof(::google::api::TypeReference)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::google::api::FieldInfo)}, + { 8, -1, -1, sizeof(::google::api::TypeReference)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::google::api::_FieldInfo_default_instance_._instance, - &::google::api::_TypeReference_default_instance_._instance, + &::google::api::_FieldInfo_default_instance_._instance, + &::google::api::_TypeReference_default_instance_._instance, }; -const char descriptor_table_protodef_google_2fapi_2ffield_5finfo_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n\033google/api/field_info.proto\022\ngoogle.ap" - "i\032 google/protobuf/descriptor.proto\"\332\001\n\t" - "FieldInfo\0224\n\006format\030\001 \001(\0162\034.google.api.F" - "ieldInfo.FormatR\006format\022D\n\020referenced_ty" - "pes\030\002 \003(\0132\031.google.api.TypeReferenceR\017re" - "ferencedTypes\"Q\n\006Format\022\026\n\022FORMAT_UNSPEC" - "IFIED\020\000\022\t\n\005UUID4\020\001\022\010\n\004IPV4\020\002\022\010\n\004IPV6\020\003\022\020" - "\n\014IPV4_OR_IPV6\020\004\",\n\rTypeReference\022\033\n\ttyp" - "e_name\030\001 \001(\tR\010typeName:W\n\nfield_info\022\035.g" - "oogle.protobuf.FieldOptions\030\314\361\371\212\001 \001(\0132\025." - "google.api.FieldInfoR\tfieldInfoB\254\001\n\016com." - "google.apiB\016FieldInfoProtoP\001ZAgoogle.gol" - "ang.org/genproto/googleapis/api/annotati" - "ons;annotations\242\002\003GAX\252\002\nGoogle.Api\312\002\nGoo" - "gle\\Api\342\002\026Google\\Api\\GPBMetadata\352\002\013Googl" - "e::Apib\006proto3" -}; -static const ::_pbi::DescriptorTable* const descriptor_table_google_2fapi_2ffield_5finfo_2eproto_deps[1] = - { - &::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto, + +const char descriptor_table_protodef_google_2fapi_2ffield_5finfo_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\033google/api/field_info.proto\022\ngoogle.ap" + "i\032 google/protobuf/descriptor.proto\"\332\001\n\t" + "FieldInfo\0224\n\006format\030\001 \001(\0162\034.google.api.F" + "ieldInfo.FormatR\006format\022D\n\020referenced_ty" + "pes\030\002 \003(\0132\031.google.api.TypeReferenceR\017re" + "ferencedTypes\"Q\n\006Format\022\026\n\022FORMAT_UNSPEC" + "IFIED\020\000\022\t\n\005UUID4\020\001\022\010\n\004IPV4\020\002\022\010\n\004IPV6\020\003\022\020" + "\n\014IPV4_OR_IPV6\020\004\",\n\rTypeReference\022\033\n\ttyp" + "e_name\030\001 \001(\tR\010typeName:W\n\nfield_info\022\035.g" + "oogle.protobuf.FieldOptions\030\314\361\371\212\001 \001(\0132\025." + "google.api.FieldInfoR\tfieldInfoBl\n\016com.g" + "oogle.apiB\016FieldInfoProtoP\001ZAgoogle.gola" + "ng.org/genproto/googleapis/api/annotatio" + "ns;annotations\242\002\004GAPIb\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_google_2fapi_2ffield_5finfo_2eproto_deps[1] = { + &::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto, }; -static ::absl::once_flag descriptor_table_google_2fapi_2ffield_5finfo_2eproto_once; +static ::_pbi::once_flag descriptor_table_google_2fapi_2ffield_5finfo_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_google_2fapi_2ffield_5finfo_2eproto = { - false, - false, - 614, - descriptor_table_protodef_google_2fapi_2ffield_5finfo_2eproto, + false, false, 549, descriptor_table_protodef_google_2fapi_2ffield_5finfo_2eproto, "google/api/field_info.proto", - &descriptor_table_google_2fapi_2ffield_5finfo_2eproto_once, - descriptor_table_google_2fapi_2ffield_5finfo_2eproto_deps, - 1, - 2, - schemas, - file_default_instances, - TableStruct_google_2fapi_2ffield_5finfo_2eproto::offsets, - file_level_metadata_google_2fapi_2ffield_5finfo_2eproto, - file_level_enum_descriptors_google_2fapi_2ffield_5finfo_2eproto, + &descriptor_table_google_2fapi_2ffield_5finfo_2eproto_once, descriptor_table_google_2fapi_2ffield_5finfo_2eproto_deps, 1, 2, + schemas, file_default_instances, TableStruct_google_2fapi_2ffield_5finfo_2eproto::offsets, + file_level_metadata_google_2fapi_2ffield_5finfo_2eproto, file_level_enum_descriptors_google_2fapi_2ffield_5finfo_2eproto, file_level_service_descriptors_google_2fapi_2ffield_5finfo_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2fapi_2ffield_5finfo_2eproto_getter() { return &descriptor_table_google_2fapi_2ffield_5finfo_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fapi_2ffield_5finfo_2eproto(&descriptor_table_google_2fapi_2ffield_5finfo_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fapi_2ffield_5finfo_2eproto(&descriptor_table_google_2fapi_2ffield_5finfo_2eproto); namespace google { namespace api { -const ::google::protobuf::EnumDescriptor* FieldInfo_Format_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_google_2fapi_2ffield_5finfo_2eproto); +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FieldInfo_Format_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_google_2fapi_2ffield_5finfo_2eproto); return file_level_enum_descriptors_google_2fapi_2ffield_5finfo_2eproto[0]; } -PROTOBUF_CONSTINIT const uint32_t FieldInfo_Format_internal_data_[] = { - 327680u, 0u, }; bool FieldInfo_Format_IsValid(int value) { - return 0 <= value && value <= 4; + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + return true; + default: + return false; + } } -#if (__cplusplus < 201703) && \ - (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr FieldInfo_Format FieldInfo::FORMAT_UNSPECIFIED; constexpr FieldInfo_Format FieldInfo::UUID4; constexpr FieldInfo_Format FieldInfo::IPV4; @@ -182,190 +143,189 @@ constexpr FieldInfo_Format FieldInfo::IPV4_OR_IPV6; constexpr FieldInfo_Format FieldInfo::Format_MIN; constexpr FieldInfo_Format FieldInfo::Format_MAX; constexpr int FieldInfo::Format_ARRAYSIZE; +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -#endif // (__cplusplus < 201703) && - // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) // =================================================================== class FieldInfo::_Internal { public: }; -FieldInfo::FieldInfo(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +FieldInfo::FieldInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + referenced_types_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.FieldInfo) } -inline PROTOBUF_NDEBUG_INLINE FieldInfo::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : referenced_types_{visibility, arena, from.referenced_types_}, - _cached_size_{0} {} - -FieldInfo::FieldInfo( - ::google::protobuf::Arena* arena, - const FieldInfo& from) - : ::google::protobuf::Message(arena) { - FieldInfo* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.format_ = from._impl_.format_; - +FieldInfo::FieldInfo(const FieldInfo& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + referenced_types_(from.referenced_types_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + format_ = from.format_; // @@protoc_insertion_point(copy_constructor:google.api.FieldInfo) } -inline PROTOBUF_NDEBUG_INLINE FieldInfo::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : referenced_types_{visibility, arena}, - _cached_size_{0} {} -inline void FieldInfo::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.format_ = {}; +inline void FieldInfo::SharedCtor() { +format_ = 0; } + FieldInfo::~FieldInfo() { // @@protoc_insertion_point(destructor:google.api.FieldInfo) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void FieldInfo::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void FieldInfo::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void FieldInfo::Clear() { +void FieldInfo::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.FieldInfo) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.referenced_types_.Clear(); - _impl_.format_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* FieldInfo::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + referenced_types_.Clear(); + format_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* FieldInfo::_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) { + // .google.api.FieldInfo.Format format = 1 [json_name = "format"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_format(static_cast<::google::api::FieldInfo_Format>(val)); + } else + goto handle_unusual; + continue; + // repeated .google.api.TypeReference referenced_types = 2 [json_name = "referencedTypes"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_referenced_types(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 0, 2> FieldInfo::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_FieldInfo_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .google.api.TypeReference referenced_types = 2 [json_name = "referencedTypes"]; - {::_pbi::TcParser::FastMtR1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(FieldInfo, _impl_.referenced_types_)}}, - // .google.api.FieldInfo.Format format = 1 [json_name = "format"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(FieldInfo, _impl_.format_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(FieldInfo, _impl_.format_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .google.api.FieldInfo.Format format = 1 [json_name = "format"]; - {PROTOBUF_FIELD_OFFSET(FieldInfo, _impl_.format_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // repeated .google.api.TypeReference referenced_types = 2 [json_name = "referencedTypes"]; - {PROTOBUF_FIELD_OFFSET(FieldInfo, _impl_.referenced_types_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::TypeReference>()}, - }}, {{ - }}, -}; - -::uint8_t* FieldInfo::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* FieldInfo::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.FieldInfo) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // .google.api.FieldInfo.Format format = 1 [json_name = "format"]; if (this->_internal_format() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_format(), target); + 1, this->_internal_format(), target); } // repeated .google.api.TypeReference referenced_types = 2 [json_name = "referencedTypes"]; for (unsigned i = 0, n = static_cast(this->_internal_referenced_types_size()); i < n; i++) { - const auto& repfield = this->_internal_referenced_types().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_referenced_types(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.FieldInfo) return target; } -::size_t FieldInfo::ByteSizeLong() const { +size_t FieldInfo::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.FieldInfo) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .google.api.TypeReference referenced_types = 2 [json_name = "referencedTypes"]; total_size += 1UL * this->_internal_referenced_types_size(); - for (const auto& msg : this->_internal_referenced_types()) { + for (const auto& msg : this->referenced_types_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // .google.api.FieldInfo.Format format = 1 [json_name = "format"]; if (this->_internal_format() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_format()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_format()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData FieldInfo::_class_data_ = { - FieldInfo::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FieldInfo::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + FieldInfo::MergeImpl }; -const ::google::protobuf::Message::ClassData* FieldInfo::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FieldInfo::GetClassData() const { return &_class_data_; } + +void FieldInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void FieldInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.FieldInfo) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void FieldInfo::MergeFrom(const FieldInfo& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.FieldInfo) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_referenced_types()->MergeFrom( - from._internal_referenced_types()); + referenced_types_.MergeFrom(from.referenced_types_); if (from._internal_format() != 0) { - _this->_internal_set_format(from._internal_format()); + _internal_set_format(from._internal_format()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void FieldInfo::CopyFrom(const FieldInfo& from) { @@ -375,186 +335,188 @@ void FieldInfo::CopyFrom(const FieldInfo& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool FieldInfo::IsInitialized() const { +bool FieldInfo::IsInitialized() const { return true; } -::_pbi::CachedSize* FieldInfo::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void FieldInfo::InternalSwap(FieldInfo* PROTOBUF_RESTRICT other) { +void FieldInfo::InternalSwap(FieldInfo* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.referenced_types_.InternalSwap(&other->_impl_.referenced_types_); - swap(_impl_.format_, other->_impl_.format_); + referenced_types_.InternalSwap(&other->referenced_types_); + swap(format_, other->format_); } -::google::protobuf::Metadata FieldInfo::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata FieldInfo::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2ffield_5finfo_2eproto_getter, &descriptor_table_google_2fapi_2ffield_5finfo_2eproto_once, file_level_metadata_google_2fapi_2ffield_5finfo_2eproto[0]); } + // =================================================================== class TypeReference::_Internal { public: }; -TypeReference::TypeReference(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +TypeReference::TypeReference(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.TypeReference) } -inline PROTOBUF_NDEBUG_INLINE TypeReference::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : type_name_(arena, from.type_name_), - _cached_size_{0} {} - -TypeReference::TypeReference( - ::google::protobuf::Arena* arena, - const TypeReference& from) - : ::google::protobuf::Message(arena) { - TypeReference* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +TypeReference::TypeReference(const TypeReference& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + type_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + type_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_type_name().empty()) { + type_name_.Set(from._internal_type_name(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:google.api.TypeReference) } -inline PROTOBUF_NDEBUG_INLINE TypeReference::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : type_name_(arena), - _cached_size_{0} {} -inline void TypeReference::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void TypeReference::SharedCtor() { +type_name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + type_name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + TypeReference::~TypeReference() { // @@protoc_insertion_point(destructor:google.api.TypeReference) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void TypeReference::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.type_name_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + type_name_.Destroy(); +} + +void TypeReference::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void TypeReference::Clear() { +void TypeReference::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.TypeReference) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.type_name_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* TypeReference::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + type_name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* TypeReference::_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 type_name = 1 [json_name = "typeName"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_type_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.TypeReference.type_name")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 42, 2> TypeReference::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_TypeReference_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string type_name = 1 [json_name = "typeName"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(TypeReference, _impl_.type_name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string type_name = 1 [json_name = "typeName"]; - {PROTOBUF_FIELD_OFFSET(TypeReference, _impl_.type_name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\30\11\0\0\0\0\0\0" - "google.api.TypeReference" - "type_name" - }}, -}; - -::uint8_t* TypeReference::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* TypeReference::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.TypeReference) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string type_name = 1 [json_name = "typeName"]; if (!this->_internal_type_name().empty()) { - const std::string& _s = this->_internal_type_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.TypeReference.type_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_type_name().data(), static_cast(this->_internal_type_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.TypeReference.type_name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_type_name(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.TypeReference) return target; } -::size_t TypeReference::ByteSizeLong() const { +size_t TypeReference::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.TypeReference) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string type_name = 1 [json_name = "typeName"]; if (!this->_internal_type_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_type_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_type_name()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData TypeReference::_class_data_ = { - TypeReference::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TypeReference::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + TypeReference::MergeImpl }; -const ::google::protobuf::Message::ClassData* TypeReference::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TypeReference::GetClassData() const { return &_class_data_; } + +void TypeReference::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void TypeReference::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.TypeReference) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void TypeReference::MergeFrom(const TypeReference& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.TypeReference) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_type_name().empty()) { - _this->_internal_set_type_name(from._internal_type_name()); + _internal_set_type_name(from._internal_type_name()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void TypeReference::CopyFrom(const TypeReference& from) { @@ -564,35 +526,43 @@ void TypeReference::CopyFrom(const TypeReference& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool TypeReference::IsInitialized() const { +bool TypeReference::IsInitialized() const { return true; } -::_pbi::CachedSize* TypeReference::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void TypeReference::InternalSwap(TypeReference* PROTOBUF_RESTRICT other) { +void TypeReference::InternalSwap(TypeReference* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.type_name_, &other->_impl_.type_name_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &type_name_, lhs_arena, + &other->type_name_, rhs_arena + ); } -::google::protobuf::Metadata TypeReference::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata TypeReference::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2ffield_5finfo_2eproto_getter, &descriptor_table_google_2fapi_2ffield_5finfo_2eproto_once, file_level_metadata_google_2fapi_2ffield_5finfo_2eproto[1]); } -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::FieldOptions, - ::google::protobuf::internal::MessageTypeTraits< ::google::api::FieldInfo >, 11, false> +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::FieldOptions, + ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::google::api::FieldInfo >, 11, false> field_info(kFieldInfoFieldNumber, ::google::api::FieldInfo::default_instance(), nullptr); + // @@protoc_insertion_point(namespace_scope) } // namespace api } // namespace google -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::google::api::FieldInfo* +Arena::CreateMaybeMessage< ::google::api::FieldInfo >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::FieldInfo >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::TypeReference* +Arena::CreateMaybeMessage< ::google::api::TypeReference >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::TypeReference >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/google/api/field_info.pb.h b/src/viam/api/google/api/field_info.pb.h index 758d3be4d..06c85db60 100644 --- a/src/viam/api/google/api/field_info.pb.h +++ b/src/viam/api/google/api/field_info.pb.h @@ -1,62 +1,51 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/field_info.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2ffield_5finfo_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2ffield_5finfo_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2ffield_5finfo_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2ffield_5finfo_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/generated_enum_reflection.h" -#include "google/protobuf/unknown_field_set.h" -#include "google/protobuf/descriptor.pb.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include +// @@protoc_insertion_point(includes) +#include #define PROTOBUF_INTERNAL_EXPORT_google_2fapi_2ffield_5finfo_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_google_2fapi_2ffield_5finfo_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_google_2fapi_2ffield_5finfo_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fapi_2ffield_5finfo_2eproto; namespace google { namespace api { class FieldInfo; @@ -66,78 +55,66 @@ class TypeReference; struct TypeReferenceDefaultTypeInternal; extern TypeReferenceDefaultTypeInternal _TypeReference_default_instance_; } // namespace api -namespace protobuf { -} // namespace protobuf } // namespace google - +PROTOBUF_NAMESPACE_OPEN +template<> ::google::api::FieldInfo* Arena::CreateMaybeMessage<::google::api::FieldInfo>(Arena*); +template<> ::google::api::TypeReference* Arena::CreateMaybeMessage<::google::api::TypeReference>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace google { namespace api { + enum FieldInfo_Format : int { FieldInfo_Format_FORMAT_UNSPECIFIED = 0, FieldInfo_Format_UUID4 = 1, FieldInfo_Format_IPV4 = 2, FieldInfo_Format_IPV6 = 3, FieldInfo_Format_IPV4_OR_IPV6 = 4, - FieldInfo_Format_FieldInfo_Format_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - FieldInfo_Format_FieldInfo_Format_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), + FieldInfo_Format_FieldInfo_Format_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + FieldInfo_Format_FieldInfo_Format_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() }; - bool FieldInfo_Format_IsValid(int value); -extern const uint32_t FieldInfo_Format_internal_data_[]; -constexpr FieldInfo_Format FieldInfo_Format_Format_MIN = static_cast(0); -constexpr FieldInfo_Format FieldInfo_Format_Format_MAX = static_cast(4); -constexpr int FieldInfo_Format_Format_ARRAYSIZE = 4 + 1; -const ::google::protobuf::EnumDescriptor* -FieldInfo_Format_descriptor(); -template -const std::string& FieldInfo_Format_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to Format_Name()."); - return FieldInfo_Format_Name(static_cast(value)); -} -template <> -inline const std::string& FieldInfo_Format_Name(FieldInfo_Format value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); +constexpr FieldInfo_Format FieldInfo_Format_Format_MIN = FieldInfo_Format_FORMAT_UNSPECIFIED; +constexpr FieldInfo_Format FieldInfo_Format_Format_MAX = FieldInfo_Format_IPV4_OR_IPV6; +constexpr int FieldInfo_Format_Format_ARRAYSIZE = FieldInfo_Format_Format_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FieldInfo_Format_descriptor(); +template +inline const std::string& FieldInfo_Format_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function FieldInfo_Format_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + FieldInfo_Format_descriptor(), enum_t_value); } -inline bool FieldInfo_Format_Parse(absl::string_view name, FieldInfo_Format* value) { - return ::google::protobuf::internal::ParseNamedEnum( - FieldInfo_Format_descriptor(), name, value); +inline bool FieldInfo_Format_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FieldInfo_Format* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + FieldInfo_Format_descriptor(), name, value); } - // =================================================================== - -// ------------------------------------------------------------------- - -class TypeReference final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.TypeReference) */ { +class FieldInfo final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.FieldInfo) */ { public: - inline TypeReference() : TypeReference(nullptr) {} - ~TypeReference() override; - template - explicit PROTOBUF_CONSTEXPR TypeReference(::google::protobuf::internal::ConstantInitialized); + inline FieldInfo() : FieldInfo(nullptr) {} + ~FieldInfo() override; + explicit PROTOBUF_CONSTEXPR FieldInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline TypeReference(const TypeReference& from) - : TypeReference(nullptr, from) {} - TypeReference(TypeReference&& from) noexcept - : TypeReference() { + FieldInfo(const FieldInfo& from); + FieldInfo(FieldInfo&& from) noexcept + : FieldInfo() { *this = ::std::move(from); } - inline TypeReference& operator=(const TypeReference& from) { + inline FieldInfo& operator=(const FieldInfo& from) { CopyFrom(from); return *this; } - inline TypeReference& operator=(TypeReference&& from) noexcept { + inline FieldInfo& operator=(FieldInfo&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -147,178 +124,196 @@ class TypeReference final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const TypeReference& default_instance() { + static const FieldInfo& default_instance() { return *internal_default_instance(); } - static inline const TypeReference* internal_default_instance() { - return reinterpret_cast( - &_TypeReference_default_instance_); + static inline const FieldInfo* internal_default_instance() { + return reinterpret_cast( + &_FieldInfo_default_instance_); } static constexpr int kIndexInFileMessages = - 1; + 0; - friend void swap(TypeReference& a, TypeReference& b) { + friend void swap(FieldInfo& a, FieldInfo& b) { a.Swap(&b); } - inline void Swap(TypeReference* other) { + inline void Swap(FieldInfo* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(TypeReference* other) { + void UnsafeArenaSwap(FieldInfo* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - TypeReference* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const TypeReference& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const TypeReference& from) { - TypeReference::MergeImpl(*this, from); + FieldInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const FieldInfo& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const FieldInfo& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(TypeReference* other); + void SetCachedSize(int size) const final; + void InternalSwap(FieldInfo* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.TypeReference"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.FieldInfo"; } protected: - explicit TypeReference(::google::protobuf::Arena* arena); - TypeReference(::google::protobuf::Arena* arena, const TypeReference& from); + explicit FieldInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- + typedef FieldInfo_Format Format; + static constexpr Format FORMAT_UNSPECIFIED = + FieldInfo_Format_FORMAT_UNSPECIFIED; + static constexpr Format UUID4 = + FieldInfo_Format_UUID4; + static constexpr Format IPV4 = + FieldInfo_Format_IPV4; + static constexpr Format IPV6 = + FieldInfo_Format_IPV6; + static constexpr Format IPV4_OR_IPV6 = + FieldInfo_Format_IPV4_OR_IPV6; + static inline bool Format_IsValid(int value) { + return FieldInfo_Format_IsValid(value); + } + static constexpr Format Format_MIN = + FieldInfo_Format_Format_MIN; + static constexpr Format Format_MAX = + FieldInfo_Format_Format_MAX; + static constexpr int Format_ARRAYSIZE = + FieldInfo_Format_Format_ARRAYSIZE; + static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* + Format_descriptor() { + return FieldInfo_Format_descriptor(); + } + template + static inline const std::string& Format_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function Format_Name."); + return FieldInfo_Format_Name(enum_t_value); + } + static inline bool Format_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, + Format* value) { + return FieldInfo_Format_Parse(name, value); + } + // accessors ------------------------------------------------------- enum : int { - kTypeNameFieldNumber = 1, + kReferencedTypesFieldNumber = 2, + kFormatFieldNumber = 1, }; - // string type_name = 1 [json_name = "typeName"]; - void clear_type_name() ; - const std::string& type_name() const; - template - void set_type_name(Arg_&& arg, Args_... args); - std::string* mutable_type_name(); - PROTOBUF_NODISCARD std::string* release_type_name(); - void set_allocated_type_name(std::string* value); - + // repeated .google.api.TypeReference referenced_types = 2 [json_name = "referencedTypes"]; + int referenced_types_size() const; private: - const std::string& _internal_type_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_type_name( - const std::string& value); - std::string* _internal_mutable_type_name(); + int _internal_referenced_types_size() const; + public: + void clear_referenced_types(); + ::google::api::TypeReference* mutable_referenced_types(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::TypeReference >* + mutable_referenced_types(); + private: + const ::google::api::TypeReference& _internal_referenced_types(int index) const; + ::google::api::TypeReference* _internal_add_referenced_types(); + public: + const ::google::api::TypeReference& referenced_types(int index) const; + ::google::api::TypeReference* add_referenced_types(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::TypeReference >& + referenced_types() const; + // .google.api.FieldInfo.Format format = 1 [json_name = "format"]; + void clear_format(); + ::google::api::FieldInfo_Format format() const; + void set_format(::google::api::FieldInfo_Format value); + private: + ::google::api::FieldInfo_Format _internal_format() const; + void _internal_set_format(::google::api::FieldInfo_Format value); public: - // @@protoc_insertion_point(class_scope:google.api.TypeReference) + + // @@protoc_insertion_point(class_scope:google.api.FieldInfo) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 42, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr type_name_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::TypeReference > referenced_types_; + int format_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2ffield_5finfo_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class FieldInfo final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.FieldInfo) */ { +class TypeReference final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.TypeReference) */ { public: - inline FieldInfo() : FieldInfo(nullptr) {} - ~FieldInfo() override; - template - explicit PROTOBUF_CONSTEXPR FieldInfo(::google::protobuf::internal::ConstantInitialized); + inline TypeReference() : TypeReference(nullptr) {} + ~TypeReference() override; + explicit PROTOBUF_CONSTEXPR TypeReference(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline FieldInfo(const FieldInfo& from) - : FieldInfo(nullptr, from) {} - FieldInfo(FieldInfo&& from) noexcept - : FieldInfo() { + TypeReference(const TypeReference& from); + TypeReference(TypeReference&& from) noexcept + : TypeReference() { *this = ::std::move(from); } - inline FieldInfo& operator=(const FieldInfo& from) { + inline TypeReference& operator=(const TypeReference& from) { CopyFrom(from); return *this; } - inline FieldInfo& operator=(FieldInfo&& from) noexcept { + inline TypeReference& operator=(TypeReference&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -328,281 +323,194 @@ class FieldInfo final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const FieldInfo& default_instance() { + static const TypeReference& default_instance() { return *internal_default_instance(); } - static inline const FieldInfo* internal_default_instance() { - return reinterpret_cast( - &_FieldInfo_default_instance_); + static inline const TypeReference* internal_default_instance() { + return reinterpret_cast( + &_TypeReference_default_instance_); } static constexpr int kIndexInFileMessages = - 0; + 1; - friend void swap(FieldInfo& a, FieldInfo& b) { + friend void swap(TypeReference& a, TypeReference& b) { a.Swap(&b); } - inline void Swap(FieldInfo* other) { + inline void Swap(TypeReference* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(FieldInfo* other) { + void UnsafeArenaSwap(TypeReference* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - FieldInfo* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const FieldInfo& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const FieldInfo& from) { - FieldInfo::MergeImpl(*this, from); + TypeReference* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const TypeReference& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const TypeReference& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(FieldInfo* other); + void SetCachedSize(int size) const final; + void InternalSwap(TypeReference* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.FieldInfo"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.TypeReference"; } protected: - explicit FieldInfo(::google::protobuf::Arena* arena); - FieldInfo(::google::protobuf::Arena* arena, const FieldInfo& from); + explicit TypeReference(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- - using Format = FieldInfo_Format; - static constexpr Format FORMAT_UNSPECIFIED = FieldInfo_Format_FORMAT_UNSPECIFIED; - static constexpr Format UUID4 = FieldInfo_Format_UUID4; - static constexpr Format IPV4 = FieldInfo_Format_IPV4; - static constexpr Format IPV6 = FieldInfo_Format_IPV6; - static constexpr Format IPV4_OR_IPV6 = FieldInfo_Format_IPV4_OR_IPV6; - static inline bool Format_IsValid(int value) { - return FieldInfo_Format_IsValid(value); - } - static constexpr Format Format_MIN = FieldInfo_Format_Format_MIN; - static constexpr Format Format_MAX = FieldInfo_Format_Format_MAX; - static constexpr int Format_ARRAYSIZE = FieldInfo_Format_Format_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* Format_descriptor() { - return FieldInfo_Format_descriptor(); - } - template - static inline const std::string& Format_Name(T value) { - return FieldInfo_Format_Name(value); - } - static inline bool Format_Parse(absl::string_view name, Format* value) { - return FieldInfo_Format_Parse(name, value); - } - // accessors ------------------------------------------------------- enum : int { - kReferencedTypesFieldNumber = 2, - kFormatFieldNumber = 1, + kTypeNameFieldNumber = 1, }; - // repeated .google.api.TypeReference referenced_types = 2 [json_name = "referencedTypes"]; - int referenced_types_size() const; - private: - int _internal_referenced_types_size() const; - - public: - void clear_referenced_types() ; - ::google::api::TypeReference* mutable_referenced_types(int index); - ::google::protobuf::RepeatedPtrField< ::google::api::TypeReference >* - mutable_referenced_types(); + // string type_name = 1 [json_name = "typeName"]; + void clear_type_name(); + const std::string& type_name() const; + template + void set_type_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_type_name(); + PROTOBUF_NODISCARD std::string* release_type_name(); + void set_allocated_type_name(std::string* type_name); private: - const ::google::protobuf::RepeatedPtrField<::google::api::TypeReference>& _internal_referenced_types() const; - ::google::protobuf::RepeatedPtrField<::google::api::TypeReference>* _internal_mutable_referenced_types(); + const std::string& _internal_type_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_type_name(const std::string& value); + std::string* _internal_mutable_type_name(); public: - const ::google::api::TypeReference& referenced_types(int index) const; - ::google::api::TypeReference* add_referenced_types(); - const ::google::protobuf::RepeatedPtrField< ::google::api::TypeReference >& - referenced_types() const; - // .google.api.FieldInfo.Format format = 1 [json_name = "format"]; - void clear_format() ; - ::google::api::FieldInfo_Format format() const; - void set_format(::google::api::FieldInfo_Format value); - private: - ::google::api::FieldInfo_Format _internal_format() const; - void _internal_set_format(::google::api::FieldInfo_Format value); - - public: - // @@protoc_insertion_point(class_scope:google.api.FieldInfo) + // @@protoc_insertion_point(class_scope:google.api.TypeReference) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::google::api::TypeReference > referenced_types_; - int format_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2ffield_5finfo_2eproto; }; - // =================================================================== - - static const int kFieldInfoFieldNumber = 291403980; -extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::FieldOptions, - ::google::protobuf::internal::MessageTypeTraits< ::google::api::FieldInfo >, 11, false > +extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::FieldOptions, + ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::google::api::FieldInfo >, 11, false > field_info; // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ -// ------------------------------------------------------------------- - // FieldInfo // .google.api.FieldInfo.Format format = 1 [json_name = "format"]; inline void FieldInfo::clear_format() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.format_ = 0; + format_ = 0; +} +inline ::google::api::FieldInfo_Format FieldInfo::_internal_format() const { + return static_cast< ::google::api::FieldInfo_Format >(format_); } inline ::google::api::FieldInfo_Format FieldInfo::format() const { // @@protoc_insertion_point(field_get:google.api.FieldInfo.format) return _internal_format(); } +inline void FieldInfo::_internal_set_format(::google::api::FieldInfo_Format value) { + + format_ = value; +} inline void FieldInfo::set_format(::google::api::FieldInfo_Format value) { _internal_set_format(value); // @@protoc_insertion_point(field_set:google.api.FieldInfo.format) } -inline ::google::api::FieldInfo_Format FieldInfo::_internal_format() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::google::api::FieldInfo_Format>(_impl_.format_); -} -inline void FieldInfo::_internal_set_format(::google::api::FieldInfo_Format value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.format_ = value; -} // repeated .google.api.TypeReference referenced_types = 2 [json_name = "referencedTypes"]; inline int FieldInfo::_internal_referenced_types_size() const { - return _internal_referenced_types().size(); + return referenced_types_.size(); } inline int FieldInfo::referenced_types_size() const { return _internal_referenced_types_size(); } inline void FieldInfo::clear_referenced_types() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.referenced_types_.Clear(); + referenced_types_.Clear(); } -inline ::google::api::TypeReference* FieldInfo::mutable_referenced_types(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::TypeReference* FieldInfo::mutable_referenced_types(int index) { // @@protoc_insertion_point(field_mutable:google.api.FieldInfo.referenced_types) - return _internal_mutable_referenced_types()->Mutable(index); + return referenced_types_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::google::api::TypeReference>* FieldInfo::mutable_referenced_types() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::TypeReference >* +FieldInfo::mutable_referenced_types() { // @@protoc_insertion_point(field_mutable_list:google.api.FieldInfo.referenced_types) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_referenced_types(); + return &referenced_types_; } -inline const ::google::api::TypeReference& FieldInfo::referenced_types(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::TypeReference& FieldInfo::_internal_referenced_types(int index) const { + return referenced_types_.Get(index); +} +inline const ::google::api::TypeReference& FieldInfo::referenced_types(int index) const { // @@protoc_insertion_point(field_get:google.api.FieldInfo.referenced_types) - return _internal_referenced_types().Get(index); + return _internal_referenced_types(index); +} +inline ::google::api::TypeReference* FieldInfo::_internal_add_referenced_types() { + return referenced_types_.Add(); } -inline ::google::api::TypeReference* FieldInfo::add_referenced_types() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::google::api::TypeReference* _add = _internal_mutable_referenced_types()->Add(); +inline ::google::api::TypeReference* FieldInfo::add_referenced_types() { + ::google::api::TypeReference* _add = _internal_add_referenced_types(); // @@protoc_insertion_point(field_add:google.api.FieldInfo.referenced_types) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::google::api::TypeReference>& FieldInfo::referenced_types() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::TypeReference >& +FieldInfo::referenced_types() const { // @@protoc_insertion_point(field_list:google.api.FieldInfo.referenced_types) - return _internal_referenced_types(); -} -inline const ::google::protobuf::RepeatedPtrField<::google::api::TypeReference>& -FieldInfo::_internal_referenced_types() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.referenced_types_; -} -inline ::google::protobuf::RepeatedPtrField<::google::api::TypeReference>* -FieldInfo::_internal_mutable_referenced_types() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.referenced_types_; + return referenced_types_; } // ------------------------------------------------------------------- @@ -611,81 +519,76 @@ FieldInfo::_internal_mutable_referenced_types() { // string type_name = 1 [json_name = "typeName"]; inline void TypeReference::clear_type_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_name_.ClearToEmpty(); + type_name_.ClearToEmpty(); } -inline const std::string& TypeReference::type_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& TypeReference::type_name() const { // @@protoc_insertion_point(field_get:google.api.TypeReference.type_name) return _internal_type_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void TypeReference::set_type_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.type_name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void TypeReference::set_type_name(ArgT0&& arg0, ArgT... args) { + + type_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.TypeReference.type_name) } -inline std::string* TypeReference::mutable_type_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* TypeReference::mutable_type_name() { std::string* _s = _internal_mutable_type_name(); // @@protoc_insertion_point(field_mutable:google.api.TypeReference.type_name) return _s; } inline const std::string& TypeReference::_internal_type_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.type_name_.Get(); + return type_name_.Get(); } inline void TypeReference::_internal_set_type_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.type_name_.Set(value, GetArena()); + + type_name_.Set(value, GetArenaForAllocation()); } inline std::string* TypeReference::_internal_mutable_type_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.type_name_.Mutable( GetArena()); + + return type_name_.Mutable(GetArenaForAllocation()); } inline std::string* TypeReference::release_type_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.TypeReference.type_name) - return _impl_.type_name_.Release(); + return type_name_.Release(); } -inline void TypeReference::set_allocated_type_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.type_name_.IsDefault()) { - _impl_.type_name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline void TypeReference::set_allocated_type_name(std::string* type_name) { + if (type_name != nullptr) { + + } else { + + } + type_name_.SetAllocated(type_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (type_name_.IsDefault()) { + type_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.api.TypeReference.type_name) } #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) + } // namespace api } // namespace google +PROTOBUF_NAMESPACE_OPEN -namespace google { -namespace protobuf { - +template <> struct is_proto_enum< ::google::api::FieldInfo_Format> : ::std::true_type {}; template <> -struct is_proto_enum<::google::api::FieldInfo_Format> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::google::api::FieldInfo_Format>() { +inline const EnumDescriptor* GetEnumDescriptor< ::google::api::FieldInfo_Format>() { return ::google::api::FieldInfo_Format_descriptor(); } -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2ffield_5finfo_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2ffield_5finfo_2eproto diff --git a/src/viam/api/google/api/http.grpc.pb.cc b/src/viam/api/google/api/http.grpc.pb.cc index 84201a467..5a18289f4 100644 --- a/src/viam/api/google/api/http.grpc.pb.cc +++ b/src/viam/api/google/api/http.grpc.pb.cc @@ -6,19 +6,19 @@ #include "google/api/http.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace google { namespace api { diff --git a/src/viam/api/google/api/http.grpc.pb.h b/src/viam/api/google/api/http.grpc.pb.h index 36d869a9e..ddba0348e 100644 --- a/src/viam/api/google/api/http.grpc.pb.h +++ b/src/viam/api/google/api/http.grpc.pb.h @@ -22,23 +22,24 @@ #include "google/api/http.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace google { namespace api { diff --git a/src/viam/api/google/api/http.pb.cc b/src/viam/api/google/api/http.pb.cc index 880d4c12f..4e7e9107c 100644 --- a/src/viam/api/google/api/http.pb.cc +++ b/src/viam/api/google/api/http.pb.cc @@ -4,399 +4,335 @@ #include "google/api/http.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace google { namespace api { - -inline constexpr CustomHttpPattern::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : kind_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - path_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR CustomHttpPattern::CustomHttpPattern(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct CustomHttpPatternDefaultTypeInternal { - PROTOBUF_CONSTEXPR CustomHttpPatternDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CustomHttpPatternDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR Http::Http( + ::_pbi::ConstantInitialized) + : rules_() + , fully_decode_reserved_expansion_(false){} +struct HttpDefaultTypeInternal { + PROTOBUF_CONSTEXPR HttpDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~HttpDefaultTypeInternal() {} union { - CustomHttpPattern _instance; + Http _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CustomHttpPatternDefaultTypeInternal _CustomHttpPattern_default_instance_; - -inline constexpr HttpRule::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : additional_bindings_{}, - selector_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - body_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - response_body_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - pattern_{}, - _cached_size_{0}, - _oneof_case_{} {} - -template -PROTOBUF_CONSTEXPR HttpRule::HttpRule(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HttpDefaultTypeInternal _Http_default_instance_; +PROTOBUF_CONSTEXPR HttpRule::HttpRule( + ::_pbi::ConstantInitialized) + : additional_bindings_() + , selector_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , body_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , response_body_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , _oneof_case_{}{} struct HttpRuleDefaultTypeInternal { - PROTOBUF_CONSTEXPR HttpRuleDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR HttpRuleDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~HttpRuleDefaultTypeInternal() {} union { HttpRule _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HttpRuleDefaultTypeInternal _HttpRule_default_instance_; - -inline constexpr Http::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : rules_{}, - fully_decode_reserved_expansion_{false}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR Http::Http(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct HttpDefaultTypeInternal { - PROTOBUF_CONSTEXPR HttpDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~HttpDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HttpRuleDefaultTypeInternal _HttpRule_default_instance_; +PROTOBUF_CONSTEXPR CustomHttpPattern::CustomHttpPattern( + ::_pbi::ConstantInitialized) + : kind_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , path_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct CustomHttpPatternDefaultTypeInternal { + PROTOBUF_CONSTEXPR CustomHttpPatternDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CustomHttpPatternDefaultTypeInternal() {} union { - Http _instance; + CustomHttpPattern _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HttpDefaultTypeInternal _Http_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CustomHttpPatternDefaultTypeInternal _CustomHttpPattern_default_instance_; } // namespace api } // namespace google static ::_pb::Metadata file_level_metadata_google_2fapi_2fhttp_2eproto[3]; -static constexpr const ::_pb::EnumDescriptor** - file_level_enum_descriptors_google_2fapi_2fhttp_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_google_2fapi_2fhttp_2eproto = nullptr; -const ::uint32_t TableStruct_google_2fapi_2fhttp_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::Http, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::Http, _impl_.rules_), - PROTOBUF_FIELD_OFFSET(::google::api::Http, _impl_.fully_decode_reserved_expansion_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_._oneof_case_[0]), - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_.selector_), - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_.body_), - PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_.response_body_), - PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_.additional_bindings_), - PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_.pattern_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::CustomHttpPattern, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::CustomHttpPattern, _impl_.kind_), - PROTOBUF_FIELD_OFFSET(::google::api::CustomHttpPattern, _impl_.path_), +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_google_2fapi_2fhttp_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_google_2fapi_2fhttp_2eproto = nullptr; + +const uint32_t TableStruct_google_2fapi_2fhttp_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::Http, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::Http, rules_), + PROTOBUF_FIELD_OFFSET(::google::api::Http, fully_decode_reserved_expansion_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, selector_), + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, body_), + PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, response_body_), + PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, additional_bindings_), + PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, pattern_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::CustomHttpPattern, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::CustomHttpPattern, kind_), + PROTOBUF_FIELD_OFFSET(::google::api::CustomHttpPattern, path_), }; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, -1, -1, sizeof(::google::api::Http)}, - {10, -1, -1, sizeof(::google::api::HttpRule)}, - {29, -1, -1, sizeof(::google::api::CustomHttpPattern)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::google::api::Http)}, + { 8, -1, -1, sizeof(::google::api::HttpRule)}, + { 25, -1, -1, sizeof(::google::api::CustomHttpPattern)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::google::api::_Http_default_instance_._instance, - &::google::api::_HttpRule_default_instance_._instance, - &::google::api::_CustomHttpPattern_default_instance_._instance, + &::google::api::_Http_default_instance_._instance, + &::google::api::_HttpRule_default_instance_._instance, + &::google::api::_CustomHttpPattern_default_instance_._instance, }; -const char descriptor_table_protodef_google_2fapi_2fhttp_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n\025google/api/http.proto\022\ngoogle.api\"y\n\004H" - "ttp\022*\n\005rules\030\001 \003(\0132\024.google.api.HttpRule" - "R\005rules\022E\n\037fully_decode_reserved_expansi" - "on\030\002 \001(\010R\034fullyDecodeReservedExpansion\"\332" - "\002\n\010HttpRule\022\032\n\010selector\030\001 \001(\tR\010selector\022" - "\022\n\003get\030\002 \001(\tH\000R\003get\022\022\n\003put\030\003 \001(\tH\000R\003put\022" - "\024\n\004post\030\004 \001(\tH\000R\004post\022\030\n\006delete\030\005 \001(\tH\000R" - "\006delete\022\026\n\005patch\030\006 \001(\tH\000R\005patch\0227\n\006custo" - "m\030\010 \001(\0132\035.google.api.CustomHttpPatternH\000" - "R\006custom\022\022\n\004body\030\007 \001(\tR\004body\022#\n\rresponse" - "_body\030\014 \001(\tR\014responseBody\022E\n\023additional_" - "bindings\030\013 \003(\0132\024.google.api.HttpRuleR\022ad" - "ditionalBindingsB\t\n\007pattern\";\n\021CustomHtt" - "pPattern\022\022\n\004kind\030\001 \001(\tR\004kind\022\022\n\004path\030\002 \001" - "(\tR\004pathB\252\001\n\016com.google.apiB\tHttpProtoP\001" - "ZAgoogle.golang.org/genproto/googleapis/" - "api/annotations;annotations\370\001\001\242\002\003GAX\252\002\nG" - "oogle.Api\312\002\nGoogle\\Api\342\002\026Google\\Api\\GPBM" - "etadata\352\002\013Google::Apib\006proto3" -}; -static ::absl::once_flag descriptor_table_google_2fapi_2fhttp_2eproto_once; + +const char descriptor_table_protodef_google_2fapi_2fhttp_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\025google/api/http.proto\022\ngoogle.api\"y\n\004H" + "ttp\022*\n\005rules\030\001 \003(\0132\024.google.api.HttpRule" + "R\005rules\022E\n\037fully_decode_reserved_expansi" + "on\030\002 \001(\010R\034fullyDecodeReservedExpansion\"\332" + "\002\n\010HttpRule\022\032\n\010selector\030\001 \001(\tR\010selector\022" + "\022\n\003get\030\002 \001(\tH\000R\003get\022\022\n\003put\030\003 \001(\tH\000R\003put\022" + "\024\n\004post\030\004 \001(\tH\000R\004post\022\030\n\006delete\030\005 \001(\tH\000R" + "\006delete\022\026\n\005patch\030\006 \001(\tH\000R\005patch\0227\n\006custo" + "m\030\010 \001(\0132\035.google.api.CustomHttpPatternH\000" + "R\006custom\022\022\n\004body\030\007 \001(\tR\004body\022#\n\rresponse" + "_body\030\014 \001(\tR\014responseBody\022E\n\023additional_" + "bindings\030\013 \003(\0132\024.google.api.HttpRuleR\022ad" + "ditionalBindingsB\t\n\007pattern\";\n\021CustomHtt" + "pPattern\022\022\n\004kind\030\001 \001(\tR\004kind\022\022\n\004path\030\002 \001" + "(\tR\004pathBj\n\016com.google.apiB\tHttpProtoP\001Z" + "Agoogle.golang.org/genproto/googleapis/a" + "pi/annotations;annotations\370\001\001\242\002\004GAPIb\006pr" + "oto3" + ; +static ::_pbi::once_flag descriptor_table_google_2fapi_2fhttp_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_google_2fapi_2fhttp_2eproto = { - false, - false, - 749, - descriptor_table_protodef_google_2fapi_2fhttp_2eproto, + false, false, 684, descriptor_table_protodef_google_2fapi_2fhttp_2eproto, "google/api/http.proto", - &descriptor_table_google_2fapi_2fhttp_2eproto_once, - nullptr, - 0, - 3, - schemas, - file_default_instances, - TableStruct_google_2fapi_2fhttp_2eproto::offsets, - file_level_metadata_google_2fapi_2fhttp_2eproto, - file_level_enum_descriptors_google_2fapi_2fhttp_2eproto, + &descriptor_table_google_2fapi_2fhttp_2eproto_once, nullptr, 0, 3, + schemas, file_default_instances, TableStruct_google_2fapi_2fhttp_2eproto::offsets, + file_level_metadata_google_2fapi_2fhttp_2eproto, file_level_enum_descriptors_google_2fapi_2fhttp_2eproto, file_level_service_descriptors_google_2fapi_2fhttp_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2fapi_2fhttp_2eproto_getter() { return &descriptor_table_google_2fapi_2fhttp_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fapi_2fhttp_2eproto(&descriptor_table_google_2fapi_2fhttp_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fapi_2fhttp_2eproto(&descriptor_table_google_2fapi_2fhttp_2eproto); namespace google { namespace api { + // =================================================================== class Http::_Internal { public: }; -Http::Http(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Http::Http(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + rules_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.Http) } -inline PROTOBUF_NDEBUG_INLINE Http::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : rules_{visibility, arena, from.rules_}, - _cached_size_{0} {} - -Http::Http( - ::google::protobuf::Arena* arena, - const Http& from) - : ::google::protobuf::Message(arena) { - Http* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.fully_decode_reserved_expansion_ = from._impl_.fully_decode_reserved_expansion_; - +Http::Http(const Http& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + rules_(from.rules_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + fully_decode_reserved_expansion_ = from.fully_decode_reserved_expansion_; // @@protoc_insertion_point(copy_constructor:google.api.Http) } -inline PROTOBUF_NDEBUG_INLINE Http::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : rules_{visibility, arena}, - _cached_size_{0} {} - -inline void Http::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.fully_decode_reserved_expansion_ = {}; + +inline void Http::SharedCtor() { +fully_decode_reserved_expansion_ = false; } + Http::~Http() { // @@protoc_insertion_point(destructor:google.api.Http) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Http::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void Http::Clear() { +void Http::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void Http::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.Http) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.rules_.Clear(); - _impl_.fully_decode_reserved_expansion_ = false; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + rules_.Clear(); + fully_decode_reserved_expansion_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* Http::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +const char* Http::_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) { + // repeated .google.api.HttpRule rules = 1 [json_name = "rules"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_rules(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + // bool fully_decode_reserved_expansion = 2 [json_name = "fullyDecodeReservedExpansion"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + fully_decode_reserved_expansion_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 0, 2> Http::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Http_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // bool fully_decode_reserved_expansion = 2 [json_name = "fullyDecodeReservedExpansion"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(Http, _impl_.fully_decode_reserved_expansion_)}}, - // repeated .google.api.HttpRule rules = 1 [json_name = "rules"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Http, _impl_.rules_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .google.api.HttpRule rules = 1 [json_name = "rules"]; - {PROTOBUF_FIELD_OFFSET(Http, _impl_.rules_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // bool fully_decode_reserved_expansion = 2 [json_name = "fullyDecodeReservedExpansion"]; - {PROTOBUF_FIELD_OFFSET(Http, _impl_.fully_decode_reserved_expansion_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::HttpRule>()}, - }}, {{ - }}, -}; - -::uint8_t* Http::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Http::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.Http) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .google.api.HttpRule rules = 1 [json_name = "rules"]; for (unsigned i = 0, n = static_cast(this->_internal_rules_size()); i < n; i++) { - const auto& repfield = this->_internal_rules().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_rules(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } // bool fully_decode_reserved_expansion = 2 [json_name = "fullyDecodeReservedExpansion"]; if (this->_internal_fully_decode_reserved_expansion() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 2, this->_internal_fully_decode_reserved_expansion(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_fully_decode_reserved_expansion(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.Http) return target; } -::size_t Http::ByteSizeLong() const { +size_t Http::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.Http) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .google.api.HttpRule rules = 1 [json_name = "rules"]; total_size += 1UL * this->_internal_rules_size(); - for (const auto& msg : this->_internal_rules()) { + for (const auto& msg : this->rules_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // bool fully_decode_reserved_expansion = 2 [json_name = "fullyDecodeReservedExpansion"]; if (this->_internal_fully_decode_reserved_expansion() != 0) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Http::_class_data_ = { - Http::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Http::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Http::MergeImpl }; -const ::google::protobuf::Message::ClassData* Http::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Http::GetClassData() const { return &_class_data_; } + +void Http::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Http::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.Http) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Http::MergeFrom(const Http& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.Http) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_rules()->MergeFrom( - from._internal_rules()); + rules_.MergeFrom(from.rules_); if (from._internal_fully_decode_reserved_expansion() != 0) { - _this->_internal_set_fully_decode_reserved_expansion(from._internal_fully_decode_reserved_expansion()); + _internal_set_fully_decode_reserved_expansion(from._internal_fully_decode_reserved_expansion()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Http::CopyFrom(const Http& from) { @@ -406,157 +342,182 @@ void Http::CopyFrom(const Http& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Http::IsInitialized() const { +bool Http::IsInitialized() const { return true; } -::_pbi::CachedSize* Http::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Http::InternalSwap(Http* PROTOBUF_RESTRICT other) { +void Http::InternalSwap(Http* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.rules_.InternalSwap(&other->_impl_.rules_); - swap(_impl_.fully_decode_reserved_expansion_, other->_impl_.fully_decode_reserved_expansion_); + rules_.InternalSwap(&other->rules_); + swap(fully_decode_reserved_expansion_, other->fully_decode_reserved_expansion_); } -::google::protobuf::Metadata Http::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Http::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fhttp_2eproto_getter, &descriptor_table_google_2fapi_2fhttp_2eproto_once, file_level_metadata_google_2fapi_2fhttp_2eproto[0]); } + // =================================================================== class HttpRule::_Internal { public: - static constexpr ::int32_t kOneofCaseOffset = - PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_._oneof_case_); static const ::google::api::CustomHttpPattern& custom(const HttpRule* msg); }; -const ::google::api::CustomHttpPattern& HttpRule::_Internal::custom(const HttpRule* msg) { - return *msg->_impl_.pattern_.custom_; +const ::google::api::CustomHttpPattern& +HttpRule::_Internal::custom(const HttpRule* msg) { + return *msg->pattern_.custom_; } void HttpRule::set_allocated_custom(::google::api::CustomHttpPattern* custom) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_pattern(); if (custom) { - ::google::protobuf::Arena* submessage_arena = custom->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(custom); if (message_arena != submessage_arena) { - custom = ::google::protobuf::internal::GetOwnedMessage(message_arena, custom, submessage_arena); + custom = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, custom, submessage_arena); } set_has_custom(); - _impl_.pattern_.custom_ = custom; + pattern_.custom_ = custom; } // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.custom) } -HttpRule::HttpRule(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +HttpRule::HttpRule(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + additional_bindings_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.HttpRule) } -inline PROTOBUF_NDEBUG_INLINE HttpRule::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : additional_bindings_{visibility, arena, from.additional_bindings_}, - selector_(arena, from.selector_), - body_(arena, from.body_), - response_body_(arena, from.response_body_), - pattern_{}, - _cached_size_{0}, - _oneof_case_{from._oneof_case_[0]} {} - -HttpRule::HttpRule( - ::google::protobuf::Arena* arena, - const HttpRule& from) - : ::google::protobuf::Message(arena) { - HttpRule* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - switch (pattern_case()) { - case PATTERN_NOT_SET: +HttpRule::HttpRule(const HttpRule& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + additional_bindings_(from.additional_bindings_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + selector_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + selector_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_selector().empty()) { + selector_.Set(from._internal_selector(), + GetArenaForAllocation()); + } + body_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + body_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_body().empty()) { + body_.Set(from._internal_body(), + GetArenaForAllocation()); + } + response_body_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + response_body_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_response_body().empty()) { + response_body_.Set(from._internal_response_body(), + GetArenaForAllocation()); + } + clear_has_pattern(); + switch (from.pattern_case()) { + case kGet: { + _internal_set_get(from._internal_get()); + break; + } + case kPut: { + _internal_set_put(from._internal_put()); break; - case kGet: - new (&_impl_.pattern_.get_) decltype(_impl_.pattern_.get_){arena, from._impl_.pattern_.get_}; - break; - case kPut: - new (&_impl_.pattern_.put_) decltype(_impl_.pattern_.put_){arena, from._impl_.pattern_.put_}; - break; - case kPost: - new (&_impl_.pattern_.post_) decltype(_impl_.pattern_.post_){arena, from._impl_.pattern_.post_}; - break; - case kDelete: - new (&_impl_.pattern_.delete__) decltype(_impl_.pattern_.delete__){arena, from._impl_.pattern_.delete__}; - break; - case kPatch: - new (&_impl_.pattern_.patch_) decltype(_impl_.pattern_.patch_){arena, from._impl_.pattern_.patch_}; - break; - case kCustom: - _impl_.pattern_.custom_ = CreateMaybeMessage<::google::api::CustomHttpPattern>(arena, *from._impl_.pattern_.custom_); - break; + } + case kPost: { + _internal_set_post(from._internal_post()); + break; + } + case kDelete: { + _internal_set_delete_(from._internal_delete_()); + break; + } + case kPatch: { + _internal_set_patch(from._internal_patch()); + break; + } + case kCustom: { + _internal_mutable_custom()->::google::api::CustomHttpPattern::MergeFrom(from._internal_custom()); + break; + } + case PATTERN_NOT_SET: { + break; + } } - // @@protoc_insertion_point(copy_constructor:google.api.HttpRule) } -inline PROTOBUF_NDEBUG_INLINE HttpRule::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : additional_bindings_{visibility, arena}, - selector_(arena), - body_(arena), - response_body_(arena), - pattern_{}, - _cached_size_{0}, - _oneof_case_{} {} - -inline void HttpRule::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); + +inline void HttpRule::SharedCtor() { +selector_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + selector_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +body_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + body_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +response_body_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + response_body_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +clear_has_pattern(); } + HttpRule::~HttpRule() { // @@protoc_insertion_point(destructor:google.api.HttpRule) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void HttpRule::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.selector_.Destroy(); - _impl_.body_.Destroy(); - _impl_.response_body_.Destroy(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + selector_.Destroy(); + body_.Destroy(); + response_body_.Destroy(); if (has_pattern()) { clear_pattern(); } - _impl_.~Impl_(); +} + +void HttpRule::SetCachedSize(int size) const { + _cached_size_.Set(size); } void HttpRule::clear_pattern() { // @@protoc_insertion_point(one_of_clear_start:google.api.HttpRule) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); switch (pattern_case()) { case kGet: { - _impl_.pattern_.get_.Destroy(); + pattern_.get_.Destroy(); break; } case kPut: { - _impl_.pattern_.put_.Destroy(); + pattern_.put_.Destroy(); break; } case kPost: { - _impl_.pattern_.post_.Destroy(); + pattern_.post_.Destroy(); break; } case kDelete: { - _impl_.pattern_.delete__.Destroy(); + pattern_.delete__.Destroy(); break; } case kPatch: { - _impl_.pattern_.patch_.Destroy(); + pattern_.patch_.Destroy(); break; } case kCustom: { - if (GetArena() == nullptr) { - delete _impl_.pattern_.custom_; + if (GetArenaForAllocation() == nullptr) { + delete pattern_.custom_; } break; } @@ -564,341 +525,408 @@ void HttpRule::clear_pattern() { break; } } - _impl_._oneof_case_[0] = PATTERN_NOT_SET; + _oneof_case_[0] = PATTERN_NOT_SET; } -PROTOBUF_NOINLINE void HttpRule::Clear() { +void HttpRule::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.HttpRule) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.additional_bindings_.Clear(); - _impl_.selector_.ClearToEmpty(); - _impl_.body_.ClearToEmpty(); - _impl_.response_body_.ClearToEmpty(); + additional_bindings_.Clear(); + selector_.ClearToEmpty(); + body_.ClearToEmpty(); + response_body_.ClearToEmpty(); clear_pattern(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* HttpRule::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +const char* HttpRule::_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 selector = 1 [json_name = "selector"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_selector(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.HttpRule.selector")); + } else + goto handle_unusual; + continue; + // string get = 2 [json_name = "get"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_get(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.HttpRule.get")); + } else + goto handle_unusual; + continue; + // string put = 3 [json_name = "put"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_put(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.HttpRule.put")); + } else + goto handle_unusual; + continue; + // string post = 4 [json_name = "post"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_post(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.HttpRule.post")); + } else + goto handle_unusual; + continue; + // string delete = 5 [json_name = "delete"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + auto str = _internal_mutable_delete_(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.HttpRule.delete")); + } else + goto handle_unusual; + continue; + // string patch = 6 [json_name = "patch"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + auto str = _internal_mutable_patch(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.HttpRule.patch")); + } else + goto handle_unusual; + continue; + // string body = 7 [json_name = "body"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + auto str = _internal_mutable_body(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.HttpRule.body")); + } else + goto handle_unusual; + continue; + // .google.api.CustomHttpPattern custom = 8 [json_name = "custom"]; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { + ptr = ctx->ParseMessage(_internal_mutable_custom(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // repeated .google.api.HttpRule additional_bindings = 11 [json_name = "additionalBindings"]; + case 11: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 90)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_additional_bindings(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<90>(ptr)); + } else + goto handle_unusual; + continue; + // string response_body = 12 [json_name = "responseBody"]; + case 12: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 98)) { + auto str = _internal_mutable_response_body(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.HttpRule.response_body")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 10, 2, 82, 2> HttpRule::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 12, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294963968, // skipmap - offsetof(decltype(_table_), field_entries), - 10, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_HttpRule_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string selector = 1 [json_name = "selector"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(HttpRule, _impl_.selector_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // repeated .google.api.HttpRule additional_bindings = 11 [json_name = "additionalBindings"]; - {::_pbi::TcParser::FastMtR1, - {90, 63, 1, PROTOBUF_FIELD_OFFSET(HttpRule, _impl_.additional_bindings_)}}, - // string response_body = 12 [json_name = "responseBody"]; - {::_pbi::TcParser::FastUS1, - {98, 63, 0, PROTOBUF_FIELD_OFFSET(HttpRule, _impl_.response_body_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - // string body = 7 [json_name = "body"]; - {::_pbi::TcParser::FastUS1, - {58, 63, 0, PROTOBUF_FIELD_OFFSET(HttpRule, _impl_.body_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string selector = 1 [json_name = "selector"]; - {PROTOBUF_FIELD_OFFSET(HttpRule, _impl_.selector_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string get = 2 [json_name = "get"]; - {PROTOBUF_FIELD_OFFSET(HttpRule, _impl_.pattern_.get_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string put = 3 [json_name = "put"]; - {PROTOBUF_FIELD_OFFSET(HttpRule, _impl_.pattern_.put_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string post = 4 [json_name = "post"]; - {PROTOBUF_FIELD_OFFSET(HttpRule, _impl_.pattern_.post_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string delete = 5 [json_name = "delete"]; - {PROTOBUF_FIELD_OFFSET(HttpRule, _impl_.pattern_.delete__), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string patch = 6 [json_name = "patch"]; - {PROTOBUF_FIELD_OFFSET(HttpRule, _impl_.pattern_.patch_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string body = 7 [json_name = "body"]; - {PROTOBUF_FIELD_OFFSET(HttpRule, _impl_.body_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.api.CustomHttpPattern custom = 8 [json_name = "custom"]; - {PROTOBUF_FIELD_OFFSET(HttpRule, _impl_.pattern_.custom_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated .google.api.HttpRule additional_bindings = 11 [json_name = "additionalBindings"]; - {PROTOBUF_FIELD_OFFSET(HttpRule, _impl_.additional_bindings_), 0, 1, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // string response_body = 12 [json_name = "responseBody"]; - {PROTOBUF_FIELD_OFFSET(HttpRule, _impl_.response_body_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::CustomHttpPattern>()}, - {::_pbi::TcParser::GetTable<::google::api::HttpRule>()}, - }}, {{ - "\23\10\3\3\4\6\5\4\0\0\15\0\0\0\0\0" - "google.api.HttpRule" - "selector" - "get" - "put" - "post" - "delete" - "patch" - "body" - "response_body" - }}, -}; - -::uint8_t* HttpRule::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* HttpRule::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.HttpRule) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string selector = 1 [json_name = "selector"]; if (!this->_internal_selector().empty()) { - const std::string& _s = this->_internal_selector(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.HttpRule.selector"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_selector().data(), static_cast(this->_internal_selector().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.HttpRule.selector"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_selector(), target); } - switch (pattern_case()) { - case kGet: { - const std::string& _s = this->_internal_get(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.HttpRule.get"); - target = stream->WriteStringMaybeAliased(2, _s, target); - break; - } - case kPut: { - const std::string& _s = this->_internal_put(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.HttpRule.put"); - target = stream->WriteStringMaybeAliased(3, _s, target); - break; - } - case kPost: { - const std::string& _s = this->_internal_post(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.HttpRule.post"); - target = stream->WriteStringMaybeAliased(4, _s, target); - break; - } - case kDelete: { - const std::string& _s = this->_internal_delete_(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.HttpRule.delete"); - target = stream->WriteStringMaybeAliased(5, _s, target); - break; - } - case kPatch: { - const std::string& _s = this->_internal_patch(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.HttpRule.patch"); - target = stream->WriteStringMaybeAliased(6, _s, target); - break; - } - default: - break; + // string get = 2 [json_name = "get"]; + if (_internal_has_get()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_get().data(), static_cast(this->_internal_get().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.HttpRule.get"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_get(), target); + } + + // string put = 3 [json_name = "put"]; + if (_internal_has_put()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_put().data(), static_cast(this->_internal_put().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.HttpRule.put"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_put(), target); + } + + // string post = 4 [json_name = "post"]; + if (_internal_has_post()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_post().data(), static_cast(this->_internal_post().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.HttpRule.post"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_post(), target); } + + // string delete = 5 [json_name = "delete"]; + if (_internal_has_delete_()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_delete_().data(), static_cast(this->_internal_delete_().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.HttpRule.delete"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_delete_(), target); + } + + // string patch = 6 [json_name = "patch"]; + if (_internal_has_patch()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_patch().data(), static_cast(this->_internal_patch().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.HttpRule.patch"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_patch(), target); + } + // string body = 7 [json_name = "body"]; if (!this->_internal_body().empty()) { - const std::string& _s = this->_internal_body(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.HttpRule.body"); - target = stream->WriteStringMaybeAliased(7, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_body().data(), static_cast(this->_internal_body().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.HttpRule.body"); + target = stream->WriteStringMaybeAliased( + 7, this->_internal_body(), target); } // .google.api.CustomHttpPattern custom = 8 [json_name = "custom"]; - if (pattern_case() == kCustom) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 8, _Internal::custom(this), + if (_internal_has_custom()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(8, _Internal::custom(this), _Internal::custom(this).GetCachedSize(), target, stream); } // repeated .google.api.HttpRule additional_bindings = 11 [json_name = "additionalBindings"]; for (unsigned i = 0, n = static_cast(this->_internal_additional_bindings_size()); i < n; i++) { - const auto& repfield = this->_internal_additional_bindings().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_additional_bindings(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(11, repfield, repfield.GetCachedSize(), target, stream); } // string response_body = 12 [json_name = "responseBody"]; if (!this->_internal_response_body().empty()) { - const std::string& _s = this->_internal_response_body(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.HttpRule.response_body"); - target = stream->WriteStringMaybeAliased(12, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_response_body().data(), static_cast(this->_internal_response_body().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.HttpRule.response_body"); + target = stream->WriteStringMaybeAliased( + 12, this->_internal_response_body(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.HttpRule) return target; } -::size_t HttpRule::ByteSizeLong() const { +size_t HttpRule::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.HttpRule) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .google.api.HttpRule additional_bindings = 11 [json_name = "additionalBindings"]; total_size += 1UL * this->_internal_additional_bindings_size(); - for (const auto& msg : this->_internal_additional_bindings()) { + for (const auto& msg : this->additional_bindings_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // string selector = 1 [json_name = "selector"]; if (!this->_internal_selector().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_selector()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_selector()); } // string body = 7 [json_name = "body"]; if (!this->_internal_body().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_body()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_body()); } // string response_body = 12 [json_name = "responseBody"]; if (!this->_internal_response_body().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_response_body()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_response_body()); } switch (pattern_case()) { // string get = 2 [json_name = "get"]; case kGet: { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_get()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_get()); break; } // string put = 3 [json_name = "put"]; case kPut: { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_put()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_put()); break; } // string post = 4 [json_name = "post"]; case kPost: { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_post()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_post()); break; } // string delete = 5 [json_name = "delete"]; case kDelete: { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_delete_()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_delete_()); break; } // string patch = 6 [json_name = "patch"]; case kPatch: { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_patch()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_patch()); break; } // .google.api.CustomHttpPattern custom = 8 [json_name = "custom"]; case kCustom: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.pattern_.custom_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *pattern_.custom_); break; } case PATTERN_NOT_SET: { break; } } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData HttpRule::_class_data_ = { - HttpRule::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData HttpRule::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + HttpRule::MergeImpl }; -const ::google::protobuf::Message::ClassData* HttpRule::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*HttpRule::GetClassData() const { return &_class_data_; } + +void HttpRule::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void HttpRule::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.HttpRule) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void HttpRule::MergeFrom(const HttpRule& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.HttpRule) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_additional_bindings()->MergeFrom( - from._internal_additional_bindings()); + additional_bindings_.MergeFrom(from.additional_bindings_); if (!from._internal_selector().empty()) { - _this->_internal_set_selector(from._internal_selector()); + _internal_set_selector(from._internal_selector()); } if (!from._internal_body().empty()) { - _this->_internal_set_body(from._internal_body()); + _internal_set_body(from._internal_body()); } if (!from._internal_response_body().empty()) { - _this->_internal_set_response_body(from._internal_response_body()); + _internal_set_response_body(from._internal_response_body()); } switch (from.pattern_case()) { case kGet: { - _this->_internal_set_get(from._internal_get()); + _internal_set_get(from._internal_get()); break; } case kPut: { - _this->_internal_set_put(from._internal_put()); + _internal_set_put(from._internal_put()); break; } case kPost: { - _this->_internal_set_post(from._internal_post()); + _internal_set_post(from._internal_post()); break; } case kDelete: { - _this->_internal_set_delete_(from._internal_delete_()); + _internal_set_delete_(from._internal_delete_()); break; } case kPatch: { - _this->_internal_set_patch(from._internal_patch()); + _internal_set_patch(from._internal_patch()); break; } case kCustom: { - _this->_internal_mutable_custom()->::google::api::CustomHttpPattern::MergeFrom( - from._internal_custom()); + _internal_mutable_custom()->::google::api::CustomHttpPattern::MergeFrom(from._internal_custom()); break; } case PATTERN_NOT_SET: { break; } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void HttpRule::CopyFrom(const HttpRule& from) { @@ -908,220 +936,247 @@ void HttpRule::CopyFrom(const HttpRule& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool HttpRule::IsInitialized() const { +bool HttpRule::IsInitialized() const { return true; } -::_pbi::CachedSize* HttpRule::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void HttpRule::InternalSwap(HttpRule* PROTOBUF_RESTRICT other) { +void HttpRule::InternalSwap(HttpRule* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.additional_bindings_.InternalSwap(&other->_impl_.additional_bindings_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.selector_, &other->_impl_.selector_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.body_, &other->_impl_.body_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.response_body_, &other->_impl_.response_body_, arena); - swap(_impl_.pattern_, other->_impl_.pattern_); - swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); + additional_bindings_.InternalSwap(&other->additional_bindings_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &selector_, lhs_arena, + &other->selector_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &body_, lhs_arena, + &other->body_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &response_body_, lhs_arena, + &other->response_body_, rhs_arena + ); + swap(pattern_, other->pattern_); + swap(_oneof_case_[0], other->_oneof_case_[0]); } -::google::protobuf::Metadata HttpRule::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata HttpRule::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fhttp_2eproto_getter, &descriptor_table_google_2fapi_2fhttp_2eproto_once, file_level_metadata_google_2fapi_2fhttp_2eproto[1]); } + // =================================================================== class CustomHttpPattern::_Internal { public: }; -CustomHttpPattern::CustomHttpPattern(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +CustomHttpPattern::CustomHttpPattern(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.CustomHttpPattern) } -inline PROTOBUF_NDEBUG_INLINE CustomHttpPattern::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : kind_(arena, from.kind_), - path_(arena, from.path_), - _cached_size_{0} {} - -CustomHttpPattern::CustomHttpPattern( - ::google::protobuf::Arena* arena, - const CustomHttpPattern& from) - : ::google::protobuf::Message(arena) { - CustomHttpPattern* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +CustomHttpPattern::CustomHttpPattern(const CustomHttpPattern& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + kind_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + kind_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_kind().empty()) { + kind_.Set(from._internal_kind(), + GetArenaForAllocation()); + } + path_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + path_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_path().empty()) { + path_.Set(from._internal_path(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:google.api.CustomHttpPattern) } -inline PROTOBUF_NDEBUG_INLINE CustomHttpPattern::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : kind_(arena), - path_(arena), - _cached_size_{0} {} - -inline void CustomHttpPattern::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); + +inline void CustomHttpPattern::SharedCtor() { +kind_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + kind_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +path_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + path_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + CustomHttpPattern::~CustomHttpPattern() { // @@protoc_insertion_point(destructor:google.api.CustomHttpPattern) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void CustomHttpPattern::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.kind_.Destroy(); - _impl_.path_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + kind_.Destroy(); + path_.Destroy(); +} + +void CustomHttpPattern::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void CustomHttpPattern::Clear() { +void CustomHttpPattern::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.CustomHttpPattern) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.kind_.ClearToEmpty(); - _impl_.path_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + kind_.ClearToEmpty(); + path_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* CustomHttpPattern::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +const char* CustomHttpPattern::_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 kind = 1 [json_name = "kind"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_kind(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.CustomHttpPattern.kind")); + } else + goto handle_unusual; + continue; + // string path = 2 [json_name = "path"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_path(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.CustomHttpPattern.path")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 45, 2> CustomHttpPattern::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_CustomHttpPattern_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string path = 2 [json_name = "path"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(CustomHttpPattern, _impl_.path_)}}, - // string kind = 1 [json_name = "kind"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(CustomHttpPattern, _impl_.kind_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string kind = 1 [json_name = "kind"]; - {PROTOBUF_FIELD_OFFSET(CustomHttpPattern, _impl_.kind_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string path = 2 [json_name = "path"]; - {PROTOBUF_FIELD_OFFSET(CustomHttpPattern, _impl_.path_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\34\4\4\0\0\0\0\0" - "google.api.CustomHttpPattern" - "kind" - "path" - }}, -}; - -::uint8_t* CustomHttpPattern::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* CustomHttpPattern::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.CustomHttpPattern) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string kind = 1 [json_name = "kind"]; if (!this->_internal_kind().empty()) { - const std::string& _s = this->_internal_kind(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.CustomHttpPattern.kind"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_kind().data(), static_cast(this->_internal_kind().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.CustomHttpPattern.kind"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_kind(), target); } // string path = 2 [json_name = "path"]; if (!this->_internal_path().empty()) { - const std::string& _s = this->_internal_path(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.CustomHttpPattern.path"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_path().data(), static_cast(this->_internal_path().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.CustomHttpPattern.path"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_path(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.CustomHttpPattern) return target; } -::size_t CustomHttpPattern::ByteSizeLong() const { +size_t CustomHttpPattern::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.CustomHttpPattern) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string kind = 1 [json_name = "kind"]; if (!this->_internal_kind().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_kind()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_kind()); } // string path = 2 [json_name = "path"]; if (!this->_internal_path().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_path()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_path()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData CustomHttpPattern::_class_data_ = { - CustomHttpPattern::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CustomHttpPattern::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CustomHttpPattern::MergeImpl }; -const ::google::protobuf::Message::ClassData* CustomHttpPattern::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CustomHttpPattern::GetClassData() const { return &_class_data_; } + +void CustomHttpPattern::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void CustomHttpPattern::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.CustomHttpPattern) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void CustomHttpPattern::MergeFrom(const CustomHttpPattern& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.CustomHttpPattern) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_kind().empty()) { - _this->_internal_set_kind(from._internal_kind()); + _internal_set_kind(from._internal_kind()); } if (!from._internal_path().empty()) { - _this->_internal_set_path(from._internal_path()); + _internal_set_path(from._internal_path()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CustomHttpPattern::CopyFrom(const CustomHttpPattern& from) { @@ -1131,33 +1186,48 @@ void CustomHttpPattern::CopyFrom(const CustomHttpPattern& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool CustomHttpPattern::IsInitialized() const { +bool CustomHttpPattern::IsInitialized() const { return true; } -::_pbi::CachedSize* CustomHttpPattern::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void CustomHttpPattern::InternalSwap(CustomHttpPattern* PROTOBUF_RESTRICT other) { +void CustomHttpPattern::InternalSwap(CustomHttpPattern* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.kind_, &other->_impl_.kind_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.path_, &other->_impl_.path_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &kind_, lhs_arena, + &other->kind_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &path_, lhs_arena, + &other->path_, rhs_arena + ); } -::google::protobuf::Metadata CustomHttpPattern::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata CustomHttpPattern::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fhttp_2eproto_getter, &descriptor_table_google_2fapi_2fhttp_2eproto_once, file_level_metadata_google_2fapi_2fhttp_2eproto[2]); } + // @@protoc_insertion_point(namespace_scope) } // namespace api } // namespace google -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::google::api::Http* +Arena::CreateMaybeMessage< ::google::api::Http >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::Http >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::HttpRule* +Arena::CreateMaybeMessage< ::google::api::HttpRule >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::HttpRule >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::CustomHttpPattern* +Arena::CreateMaybeMessage< ::google::api::CustomHttpPattern >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::CustomHttpPattern >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/google/api/http.pb.h b/src/viam/api/google/api/http.pb.h index 0550bb931..c5b528007 100644 --- a/src/viam/api/google/api/http.pb.h +++ b/src/viam/api/google/api/http.pb.h @@ -1,60 +1,49 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/http.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fhttp_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fhttp_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fhttp_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fhttp_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/unknown_field_set.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +// @@protoc_insertion_point(includes) +#include #define PROTOBUF_INTERNAL_EXPORT_google_2fapi_2fhttp_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_google_2fapi_2fhttp_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_google_2fapi_2fhttp_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fapi_2fhttp_2eproto; namespace google { namespace api { class CustomHttpPattern; @@ -67,42 +56,39 @@ class HttpRule; struct HttpRuleDefaultTypeInternal; extern HttpRuleDefaultTypeInternal _HttpRule_default_instance_; } // namespace api -namespace protobuf { -} // namespace protobuf } // namespace google - +PROTOBUF_NAMESPACE_OPEN +template<> ::google::api::CustomHttpPattern* Arena::CreateMaybeMessage<::google::api::CustomHttpPattern>(Arena*); +template<> ::google::api::Http* Arena::CreateMaybeMessage<::google::api::Http>(Arena*); +template<> ::google::api::HttpRule* Arena::CreateMaybeMessage<::google::api::HttpRule>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace google { namespace api { // =================================================================== - -// ------------------------------------------------------------------- - -class CustomHttpPattern final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.CustomHttpPattern) */ { +class Http final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.Http) */ { public: - inline CustomHttpPattern() : CustomHttpPattern(nullptr) {} - ~CustomHttpPattern() override; - template - explicit PROTOBUF_CONSTEXPR CustomHttpPattern(::google::protobuf::internal::ConstantInitialized); + inline Http() : Http(nullptr) {} + ~Http() override; + explicit PROTOBUF_CONSTEXPR Http(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline CustomHttpPattern(const CustomHttpPattern& from) - : CustomHttpPattern(nullptr, from) {} - CustomHttpPattern(CustomHttpPattern&& from) noexcept - : CustomHttpPattern() { + Http(const Http& from); + Http(Http&& from) noexcept + : Http() { *this = ::std::move(from); } - inline CustomHttpPattern& operator=(const CustomHttpPattern& from) { + inline Http& operator=(const Http& from) { CopyFrom(from); return *this; } - inline CustomHttpPattern& operator=(CustomHttpPattern&& from) noexcept { + inline Http& operator=(Http&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -112,182 +98,146 @@ class CustomHttpPattern final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CustomHttpPattern& default_instance() { + static const Http& default_instance() { return *internal_default_instance(); } - static inline const CustomHttpPattern* internal_default_instance() { - return reinterpret_cast( - &_CustomHttpPattern_default_instance_); + static inline const Http* internal_default_instance() { + return reinterpret_cast( + &_Http_default_instance_); } static constexpr int kIndexInFileMessages = - 2; + 0; - friend void swap(CustomHttpPattern& a, CustomHttpPattern& b) { + friend void swap(Http& a, Http& b) { a.Swap(&b); } - inline void Swap(CustomHttpPattern* other) { + inline void Swap(Http* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CustomHttpPattern* other) { + void UnsafeArenaSwap(Http* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CustomHttpPattern* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const CustomHttpPattern& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CustomHttpPattern& from) { - CustomHttpPattern::MergeImpl(*this, from); + Http* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Http& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Http& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(CustomHttpPattern* other); + void SetCachedSize(int size) const final; + void InternalSwap(Http* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.CustomHttpPattern"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.Http"; } protected: - explicit CustomHttpPattern(::google::protobuf::Arena* arena); - CustomHttpPattern(::google::protobuf::Arena* arena, const CustomHttpPattern& from); + explicit Http(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kKindFieldNumber = 1, - kPathFieldNumber = 2, + kRulesFieldNumber = 1, + kFullyDecodeReservedExpansionFieldNumber = 2, }; - // string kind = 1 [json_name = "kind"]; - void clear_kind() ; - const std::string& kind() const; - template - void set_kind(Arg_&& arg, Args_... args); - std::string* mutable_kind(); - PROTOBUF_NODISCARD std::string* release_kind(); - void set_allocated_kind(std::string* value); - + // repeated .google.api.HttpRule rules = 1 [json_name = "rules"]; + int rules_size() const; private: - const std::string& _internal_kind() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_kind( - const std::string& value); - std::string* _internal_mutable_kind(); - + int _internal_rules_size() const; public: - // string path = 2 [json_name = "path"]; - void clear_path() ; - const std::string& path() const; - template - void set_path(Arg_&& arg, Args_... args); - std::string* mutable_path(); - PROTOBUF_NODISCARD std::string* release_path(); - void set_allocated_path(std::string* value); - + void clear_rules(); + ::google::api::HttpRule* mutable_rules(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::HttpRule >* + mutable_rules(); private: - const std::string& _internal_path() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_path( - const std::string& value); - std::string* _internal_mutable_path(); + const ::google::api::HttpRule& _internal_rules(int index) const; + ::google::api::HttpRule* _internal_add_rules(); + public: + const ::google::api::HttpRule& rules(int index) const; + ::google::api::HttpRule* add_rules(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::HttpRule >& + rules() const; + // bool fully_decode_reserved_expansion = 2 [json_name = "fullyDecodeReservedExpansion"]; + void clear_fully_decode_reserved_expansion(); + bool fully_decode_reserved_expansion() const; + void set_fully_decode_reserved_expansion(bool value); + private: + bool _internal_fully_decode_reserved_expansion() const; + void _internal_set_fully_decode_reserved_expansion(bool value); public: - // @@protoc_insertion_point(class_scope:google.api.CustomHttpPattern) + + // @@protoc_insertion_point(class_scope:google.api.Http) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 45, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr kind_; - ::google::protobuf::internal::ArenaStringPtr path_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::HttpRule > rules_; + bool fully_decode_reserved_expansion_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fhttp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class HttpRule final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.HttpRule) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.HttpRule) */ { public: inline HttpRule() : HttpRule(nullptr) {} ~HttpRule() override; - template - explicit PROTOBUF_CONSTEXPR HttpRule(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR HttpRule(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline HttpRule(const HttpRule& from) - : HttpRule(nullptr, from) {} + HttpRule(const HttpRule& from); HttpRule(HttpRule&& from) noexcept : HttpRule() { *this = ::std::move(from); @@ -299,9 +249,9 @@ class HttpRule final : } inline HttpRule& operator=(HttpRule&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -311,22 +261,13 @@ class HttpRule final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const HttpRule& default_instance() { @@ -355,65 +296,63 @@ class HttpRule final : inline void Swap(HttpRule* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(HttpRule* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - HttpRule* New(::google::protobuf::Arena* arena = nullptr) const final { + HttpRule* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const HttpRule& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const HttpRule& from) { - HttpRule::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const HttpRule& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(HttpRule* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "google.api.HttpRule"; } protected: - explicit HttpRule(::google::protobuf::Arena* arena); - HttpRule(::google::protobuf::Arena* arena, const HttpRule& from); + explicit HttpRule(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -435,172 +374,170 @@ class HttpRule final : int additional_bindings_size() const; private: int _internal_additional_bindings_size() const; - public: - void clear_additional_bindings() ; + void clear_additional_bindings(); ::google::api::HttpRule* mutable_additional_bindings(int index); - ::google::protobuf::RepeatedPtrField< ::google::api::HttpRule >* + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::HttpRule >* mutable_additional_bindings(); private: - const ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>& _internal_additional_bindings() const; - ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>* _internal_mutable_additional_bindings(); + const ::google::api::HttpRule& _internal_additional_bindings(int index) const; + ::google::api::HttpRule* _internal_add_additional_bindings(); public: const ::google::api::HttpRule& additional_bindings(int index) const; ::google::api::HttpRule* add_additional_bindings(); - const ::google::protobuf::RepeatedPtrField< ::google::api::HttpRule >& + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::HttpRule >& additional_bindings() const; + // string selector = 1 [json_name = "selector"]; - void clear_selector() ; + void clear_selector(); const std::string& selector() const; - template - void set_selector(Arg_&& arg, Args_... args); + template + void set_selector(ArgT0&& arg0, ArgT... args); std::string* mutable_selector(); PROTOBUF_NODISCARD std::string* release_selector(); - void set_allocated_selector(std::string* value); - + void set_allocated_selector(std::string* selector); private: const std::string& _internal_selector() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_selector( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_selector(const std::string& value); std::string* _internal_mutable_selector(); - public: + // string body = 7 [json_name = "body"]; - void clear_body() ; + void clear_body(); const std::string& body() const; - template - void set_body(Arg_&& arg, Args_... args); + template + void set_body(ArgT0&& arg0, ArgT... args); std::string* mutable_body(); PROTOBUF_NODISCARD std::string* release_body(); - void set_allocated_body(std::string* value); - + void set_allocated_body(std::string* body); private: const std::string& _internal_body() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_body( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_body(const std::string& value); std::string* _internal_mutable_body(); - public: + // string response_body = 12 [json_name = "responseBody"]; - void clear_response_body() ; + void clear_response_body(); const std::string& response_body() const; - template - void set_response_body(Arg_&& arg, Args_... args); + template + void set_response_body(ArgT0&& arg0, ArgT... args); std::string* mutable_response_body(); PROTOBUF_NODISCARD std::string* release_response_body(); - void set_allocated_response_body(std::string* value); - + void set_allocated_response_body(std::string* response_body); private: const std::string& _internal_response_body() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_response_body( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_response_body(const std::string& value); std::string* _internal_mutable_response_body(); - public: + // string get = 2 [json_name = "get"]; bool has_get() const; - void clear_get() ; + private: + bool _internal_has_get() const; + public: + void clear_get(); const std::string& get() const; - template - void set_get(Arg_&& arg, Args_... args); + template + void set_get(ArgT0&& arg0, ArgT... args); std::string* mutable_get(); PROTOBUF_NODISCARD std::string* release_get(); - void set_allocated_get(std::string* value); - + void set_allocated_get(std::string* get); private: const std::string& _internal_get() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_get( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_get(const std::string& value); std::string* _internal_mutable_get(); - public: + // string put = 3 [json_name = "put"]; bool has_put() const; - void clear_put() ; + private: + bool _internal_has_put() const; + public: + void clear_put(); const std::string& put() const; - template - void set_put(Arg_&& arg, Args_... args); + template + void set_put(ArgT0&& arg0, ArgT... args); std::string* mutable_put(); PROTOBUF_NODISCARD std::string* release_put(); - void set_allocated_put(std::string* value); - + void set_allocated_put(std::string* put); private: const std::string& _internal_put() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_put( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_put(const std::string& value); std::string* _internal_mutable_put(); - public: + // string post = 4 [json_name = "post"]; bool has_post() const; - void clear_post() ; + private: + bool _internal_has_post() const; + public: + void clear_post(); const std::string& post() const; - template - void set_post(Arg_&& arg, Args_... args); + template + void set_post(ArgT0&& arg0, ArgT... args); std::string* mutable_post(); PROTOBUF_NODISCARD std::string* release_post(); - void set_allocated_post(std::string* value); - + void set_allocated_post(std::string* post); private: const std::string& _internal_post() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_post( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_post(const std::string& value); std::string* _internal_mutable_post(); - public: + // string delete = 5 [json_name = "delete"]; bool has_delete_() const; - void clear_delete_() ; + private: + bool _internal_has_delete_() const; + public: + void clear_delete_(); const std::string& delete_() const; - template - void set_delete_(Arg_&& arg, Args_... args); + template + void set_delete_(ArgT0&& arg0, ArgT... args); std::string* mutable_delete_(); PROTOBUF_NODISCARD std::string* release_delete_(); - void set_allocated_delete_(std::string* value); - + void set_allocated_delete_(std::string* delete_); private: const std::string& _internal_delete_() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_delete_( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_delete_(const std::string& value); std::string* _internal_mutable_delete_(); - public: + // string patch = 6 [json_name = "patch"]; bool has_patch() const; - void clear_patch() ; + private: + bool _internal_has_patch() const; + public: + void clear_patch(); const std::string& patch() const; - template - void set_patch(Arg_&& arg, Args_... args); + template + void set_patch(ArgT0&& arg0, ArgT... args); std::string* mutable_patch(); PROTOBUF_NODISCARD std::string* release_patch(); - void set_allocated_patch(std::string* value); - + void set_allocated_patch(std::string* patch); private: const std::string& _internal_patch() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_patch( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_patch(const std::string& value); std::string* _internal_mutable_patch(); - public: + // .google.api.CustomHttpPattern custom = 8 [json_name = "custom"]; bool has_custom() const; private: bool _internal_has_custom() const; - public: - void clear_custom() ; + void clear_custom(); const ::google::api::CustomHttpPattern& custom() const; PROTOBUF_NODISCARD ::google::api::CustomHttpPattern* release_custom(); ::google::api::CustomHttpPattern* mutable_custom(); - void set_allocated_custom(::google::api::CustomHttpPattern* value); - void unsafe_arena_set_allocated_custom(::google::api::CustomHttpPattern* value); - ::google::api::CustomHttpPattern* unsafe_arena_release_custom(); - + void set_allocated_custom(::google::api::CustomHttpPattern* custom); private: const ::google::api::CustomHttpPattern& _internal_custom() const; ::google::api::CustomHttpPattern* _internal_mutable_custom(); - public: + void unsafe_arena_set_allocated_custom( + ::google::api::CustomHttpPattern* custom); + ::google::api::CustomHttpPattern* unsafe_arena_release_custom(); + void clear_pattern(); PatternCase pattern_case() const; // @@protoc_insertion_point(class_scope:google.api.HttpRule) @@ -616,72 +553,52 @@ class HttpRule final : inline bool has_pattern() const; inline void clear_has_pattern(); - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 10, 2, - 82, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::google::api::HttpRule > additional_bindings_; - ::google::protobuf::internal::ArenaStringPtr selector_; - ::google::protobuf::internal::ArenaStringPtr body_; - ::google::protobuf::internal::ArenaStringPtr response_body_; - union PatternUnion { - constexpr PatternUnion() : _constinit_{} {} - ::google::protobuf::internal::ConstantInitialized _constinit_; - ::google::protobuf::internal::ArenaStringPtr get_; - ::google::protobuf::internal::ArenaStringPtr put_; - ::google::protobuf::internal::ArenaStringPtr post_; - ::google::protobuf::internal::ArenaStringPtr delete__; - ::google::protobuf::internal::ArenaStringPtr patch_; - ::google::api::CustomHttpPattern* custom_; - } pattern_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t _oneof_case_[1]; - - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::HttpRule > additional_bindings_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr selector_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr body_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr response_body_; + union PatternUnion { + constexpr PatternUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr get_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr put_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr post_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr delete__; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr patch_; + ::google::api::CustomHttpPattern* custom_; + } pattern_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; + friend struct ::TableStruct_google_2fapi_2fhttp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Http final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.Http) */ { +class CustomHttpPattern final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.CustomHttpPattern) */ { public: - inline Http() : Http(nullptr) {} - ~Http() override; - template - explicit PROTOBUF_CONSTEXPR Http(::google::protobuf::internal::ConstantInitialized); + inline CustomHttpPattern() : CustomHttpPattern(nullptr) {} + ~CustomHttpPattern() override; + explicit PROTOBUF_CONSTEXPR CustomHttpPattern(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Http(const Http& from) - : Http(nullptr, from) {} - Http(Http&& from) noexcept - : Http() { + CustomHttpPattern(const CustomHttpPattern& from); + CustomHttpPattern(CustomHttpPattern&& from) noexcept + : CustomHttpPattern() { *this = ::std::move(from); } - inline Http& operator=(const Http& from) { + inline CustomHttpPattern& operator=(const CustomHttpPattern& from) { CopyFrom(from); return *this; } - inline Http& operator=(Http&& from) noexcept { + inline CustomHttpPattern& operator=(CustomHttpPattern&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -691,255 +608,207 @@ class Http final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Http& default_instance() { + static const CustomHttpPattern& default_instance() { return *internal_default_instance(); } - static inline const Http* internal_default_instance() { - return reinterpret_cast( - &_Http_default_instance_); + static inline const CustomHttpPattern* internal_default_instance() { + return reinterpret_cast( + &_CustomHttpPattern_default_instance_); } static constexpr int kIndexInFileMessages = - 0; + 2; - friend void swap(Http& a, Http& b) { + friend void swap(CustomHttpPattern& a, CustomHttpPattern& b) { a.Swap(&b); } - inline void Swap(Http* other) { + inline void Swap(CustomHttpPattern* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Http* other) { + void UnsafeArenaSwap(CustomHttpPattern* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Http* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Http& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Http& from) { - Http::MergeImpl(*this, from); + CustomHttpPattern* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CustomHttpPattern& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CustomHttpPattern& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Http* other); + void SetCachedSize(int size) const final; + void InternalSwap(CustomHttpPattern* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.Http"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.CustomHttpPattern"; } protected: - explicit Http(::google::protobuf::Arena* arena); - Http(::google::protobuf::Arena* arena, const Http& from); + explicit CustomHttpPattern(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kRulesFieldNumber = 1, - kFullyDecodeReservedExpansionFieldNumber = 2, + kKindFieldNumber = 1, + kPathFieldNumber = 2, }; - // repeated .google.api.HttpRule rules = 1 [json_name = "rules"]; - int rules_size() const; - private: - int _internal_rules_size() const; - - public: - void clear_rules() ; - ::google::api::HttpRule* mutable_rules(int index); - ::google::protobuf::RepeatedPtrField< ::google::api::HttpRule >* - mutable_rules(); + // string kind = 1 [json_name = "kind"]; + void clear_kind(); + const std::string& kind() const; + template + void set_kind(ArgT0&& arg0, ArgT... args); + std::string* mutable_kind(); + PROTOBUF_NODISCARD std::string* release_kind(); + void set_allocated_kind(std::string* kind); private: - const ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>& _internal_rules() const; - ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>* _internal_mutable_rules(); + const std::string& _internal_kind() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_kind(const std::string& value); + std::string* _internal_mutable_kind(); public: - const ::google::api::HttpRule& rules(int index) const; - ::google::api::HttpRule* add_rules(); - const ::google::protobuf::RepeatedPtrField< ::google::api::HttpRule >& - rules() const; - // bool fully_decode_reserved_expansion = 2 [json_name = "fullyDecodeReservedExpansion"]; - void clear_fully_decode_reserved_expansion() ; - bool fully_decode_reserved_expansion() const; - void set_fully_decode_reserved_expansion(bool value); + // string path = 2 [json_name = "path"]; + void clear_path(); + const std::string& path() const; + template + void set_path(ArgT0&& arg0, ArgT... args); + std::string* mutable_path(); + PROTOBUF_NODISCARD std::string* release_path(); + void set_allocated_path(std::string* path); private: - bool _internal_fully_decode_reserved_expansion() const; - void _internal_set_fully_decode_reserved_expansion(bool value); - + const std::string& _internal_path() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_path(const std::string& value); + std::string* _internal_mutable_path(); public: - // @@protoc_insertion_point(class_scope:google.api.Http) + + // @@protoc_insertion_point(class_scope:google.api.CustomHttpPattern) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::google::api::HttpRule > rules_; - bool fully_decode_reserved_expansion_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr kind_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr path_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fhttp_2eproto; }; - // =================================================================== - - // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ -// ------------------------------------------------------------------- - // Http // repeated .google.api.HttpRule rules = 1 [json_name = "rules"]; inline int Http::_internal_rules_size() const { - return _internal_rules().size(); + return rules_.size(); } inline int Http::rules_size() const { return _internal_rules_size(); } inline void Http::clear_rules() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.rules_.Clear(); + rules_.Clear(); } -inline ::google::api::HttpRule* Http::mutable_rules(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::HttpRule* Http::mutable_rules(int index) { // @@protoc_insertion_point(field_mutable:google.api.Http.rules) - return _internal_mutable_rules()->Mutable(index); + return rules_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>* Http::mutable_rules() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::HttpRule >* +Http::mutable_rules() { // @@protoc_insertion_point(field_mutable_list:google.api.Http.rules) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_rules(); + return &rules_; +} +inline const ::google::api::HttpRule& Http::_internal_rules(int index) const { + return rules_.Get(index); } -inline const ::google::api::HttpRule& Http::rules(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::HttpRule& Http::rules(int index) const { // @@protoc_insertion_point(field_get:google.api.Http.rules) - return _internal_rules().Get(index); + return _internal_rules(index); } -inline ::google::api::HttpRule* Http::add_rules() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::google::api::HttpRule* _add = _internal_mutable_rules()->Add(); +inline ::google::api::HttpRule* Http::_internal_add_rules() { + return rules_.Add(); +} +inline ::google::api::HttpRule* Http::add_rules() { + ::google::api::HttpRule* _add = _internal_add_rules(); // @@protoc_insertion_point(field_add:google.api.Http.rules) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>& Http::rules() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::HttpRule >& +Http::rules() const { // @@protoc_insertion_point(field_list:google.api.Http.rules) - return _internal_rules(); -} -inline const ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>& -Http::_internal_rules() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.rules_; -} -inline ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>* -Http::_internal_mutable_rules() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.rules_; + return rules_; } // bool fully_decode_reserved_expansion = 2 [json_name = "fullyDecodeReservedExpansion"]; inline void Http::clear_fully_decode_reserved_expansion() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.fully_decode_reserved_expansion_ = false; + fully_decode_reserved_expansion_ = false; +} +inline bool Http::_internal_fully_decode_reserved_expansion() const { + return fully_decode_reserved_expansion_; } inline bool Http::fully_decode_reserved_expansion() const { // @@protoc_insertion_point(field_get:google.api.Http.fully_decode_reserved_expansion) return _internal_fully_decode_reserved_expansion(); } +inline void Http::_internal_set_fully_decode_reserved_expansion(bool value) { + + fully_decode_reserved_expansion_ = value; +} inline void Http::set_fully_decode_reserved_expansion(bool value) { _internal_set_fully_decode_reserved_expansion(value); // @@protoc_insertion_point(field_set:google.api.Http.fully_decode_reserved_expansion) } -inline bool Http::_internal_fully_decode_reserved_expansion() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.fully_decode_reserved_expansion_; -} -inline void Http::_internal_set_fully_decode_reserved_expansion(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.fully_decode_reserved_expansion_ = value; -} // ------------------------------------------------------------------- @@ -947,553 +816,508 @@ inline void Http::_internal_set_fully_decode_reserved_expansion(bool value) { // string selector = 1 [json_name = "selector"]; inline void HttpRule::clear_selector() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.selector_.ClearToEmpty(); + selector_.ClearToEmpty(); } -inline const std::string& HttpRule::selector() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& HttpRule::selector() const { // @@protoc_insertion_point(field_get:google.api.HttpRule.selector) return _internal_selector(); } -template -inline PROTOBUF_ALWAYS_INLINE void HttpRule::set_selector(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.selector_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void HttpRule::set_selector(ArgT0&& arg0, ArgT... args) { + + selector_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.HttpRule.selector) } -inline std::string* HttpRule::mutable_selector() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* HttpRule::mutable_selector() { std::string* _s = _internal_mutable_selector(); // @@protoc_insertion_point(field_mutable:google.api.HttpRule.selector) return _s; } inline const std::string& HttpRule::_internal_selector() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.selector_.Get(); + return selector_.Get(); } inline void HttpRule::_internal_set_selector(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.selector_.Set(value, GetArena()); + + selector_.Set(value, GetArenaForAllocation()); } inline std::string* HttpRule::_internal_mutable_selector() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.selector_.Mutable( GetArena()); + + return selector_.Mutable(GetArenaForAllocation()); } inline std::string* HttpRule::release_selector() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.HttpRule.selector) - return _impl_.selector_.Release(); -} -inline void HttpRule::set_allocated_selector(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.selector_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.selector_.IsDefault()) { - _impl_.selector_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return selector_.Release(); +} +inline void HttpRule::set_allocated_selector(std::string* selector) { + if (selector != nullptr) { + + } else { + + } + selector_.SetAllocated(selector, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (selector_.IsDefault()) { + selector_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.selector) } // string get = 2 [json_name = "get"]; -inline bool HttpRule::has_get() const { +inline bool HttpRule::_internal_has_get() const { return pattern_case() == kGet; } +inline bool HttpRule::has_get() const { + return _internal_has_get(); +} inline void HttpRule::set_has_get() { - _impl_._oneof_case_[0] = kGet; + _oneof_case_[0] = kGet; } inline void HttpRule::clear_get() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (pattern_case() == kGet) { - _impl_.pattern_.get_.Destroy(); + if (_internal_has_get()) { + pattern_.get_.Destroy(); clear_has_pattern(); } } -inline const std::string& HttpRule::get() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& HttpRule::get() const { // @@protoc_insertion_point(field_get:google.api.HttpRule.get) return _internal_get(); } -template -inline PROTOBUF_ALWAYS_INLINE void HttpRule::set_get(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (pattern_case() != kGet) { +template +inline void HttpRule::set_get(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_get()) { clear_pattern(); - set_has_get(); - _impl_.pattern_.get_.InitDefault(); + pattern_.get_.InitDefault(); } - _impl_.pattern_.get_.Set(static_cast(arg), args..., GetArena()); + pattern_.get_.Set( static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.HttpRule.get) } -inline std::string* HttpRule::mutable_get() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* HttpRule::mutable_get() { std::string* _s = _internal_mutable_get(); // @@protoc_insertion_point(field_mutable:google.api.HttpRule.get) return _s; } inline const std::string& HttpRule::_internal_get() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - if (pattern_case() != kGet) { - return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); + if (_internal_has_get()) { + return pattern_.get_.Get(); } - return _impl_.pattern_.get_.Get(); + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } inline void HttpRule::_internal_set_get(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (pattern_case() != kGet) { + if (!_internal_has_get()) { clear_pattern(); - set_has_get(); - _impl_.pattern_.get_.InitDefault(); + pattern_.get_.InitDefault(); } - _impl_.pattern_.get_.Set(value, GetArena()); + pattern_.get_.Set(value, GetArenaForAllocation()); } inline std::string* HttpRule::_internal_mutable_get() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (pattern_case() != kGet) { + if (!_internal_has_get()) { clear_pattern(); - set_has_get(); - _impl_.pattern_.get_.InitDefault(); + pattern_.get_.InitDefault(); } - return _impl_.pattern_.get_.Mutable( GetArena()); + return pattern_.get_.Mutable( GetArenaForAllocation()); } inline std::string* HttpRule::release_get() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.HttpRule.get) - if (pattern_case() != kGet) { + if (_internal_has_get()) { + clear_has_pattern(); + return pattern_.get_.Release(); + } else { return nullptr; } - clear_has_pattern(); - return _impl_.pattern_.get_.Release(); } -inline void HttpRule::set_allocated_get(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void HttpRule::set_allocated_get(std::string* get) { if (has_pattern()) { clear_pattern(); } - if (value != nullptr) { + if (get != nullptr) { set_has_get(); - _impl_.pattern_.get_.InitAllocated(value, GetArena()); + pattern_.get_.InitAllocated(get, GetArenaForAllocation()); } // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.get) } // string put = 3 [json_name = "put"]; -inline bool HttpRule::has_put() const { +inline bool HttpRule::_internal_has_put() const { return pattern_case() == kPut; } +inline bool HttpRule::has_put() const { + return _internal_has_put(); +} inline void HttpRule::set_has_put() { - _impl_._oneof_case_[0] = kPut; + _oneof_case_[0] = kPut; } inline void HttpRule::clear_put() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (pattern_case() == kPut) { - _impl_.pattern_.put_.Destroy(); + if (_internal_has_put()) { + pattern_.put_.Destroy(); clear_has_pattern(); } } -inline const std::string& HttpRule::put() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& HttpRule::put() const { // @@protoc_insertion_point(field_get:google.api.HttpRule.put) return _internal_put(); } -template -inline PROTOBUF_ALWAYS_INLINE void HttpRule::set_put(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (pattern_case() != kPut) { +template +inline void HttpRule::set_put(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_put()) { clear_pattern(); - set_has_put(); - _impl_.pattern_.put_.InitDefault(); + pattern_.put_.InitDefault(); } - _impl_.pattern_.put_.Set(static_cast(arg), args..., GetArena()); + pattern_.put_.Set( static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.HttpRule.put) } -inline std::string* HttpRule::mutable_put() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* HttpRule::mutable_put() { std::string* _s = _internal_mutable_put(); // @@protoc_insertion_point(field_mutable:google.api.HttpRule.put) return _s; } inline const std::string& HttpRule::_internal_put() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - if (pattern_case() != kPut) { - return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); + if (_internal_has_put()) { + return pattern_.put_.Get(); } - return _impl_.pattern_.put_.Get(); + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } inline void HttpRule::_internal_set_put(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (pattern_case() != kPut) { + if (!_internal_has_put()) { clear_pattern(); - set_has_put(); - _impl_.pattern_.put_.InitDefault(); + pattern_.put_.InitDefault(); } - _impl_.pattern_.put_.Set(value, GetArena()); + pattern_.put_.Set(value, GetArenaForAllocation()); } inline std::string* HttpRule::_internal_mutable_put() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (pattern_case() != kPut) { + if (!_internal_has_put()) { clear_pattern(); - set_has_put(); - _impl_.pattern_.put_.InitDefault(); + pattern_.put_.InitDefault(); } - return _impl_.pattern_.put_.Mutable( GetArena()); + return pattern_.put_.Mutable( GetArenaForAllocation()); } inline std::string* HttpRule::release_put() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.HttpRule.put) - if (pattern_case() != kPut) { + if (_internal_has_put()) { + clear_has_pattern(); + return pattern_.put_.Release(); + } else { return nullptr; } - clear_has_pattern(); - return _impl_.pattern_.put_.Release(); } -inline void HttpRule::set_allocated_put(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void HttpRule::set_allocated_put(std::string* put) { if (has_pattern()) { clear_pattern(); } - if (value != nullptr) { + if (put != nullptr) { set_has_put(); - _impl_.pattern_.put_.InitAllocated(value, GetArena()); + pattern_.put_.InitAllocated(put, GetArenaForAllocation()); } // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.put) } // string post = 4 [json_name = "post"]; -inline bool HttpRule::has_post() const { +inline bool HttpRule::_internal_has_post() const { return pattern_case() == kPost; } +inline bool HttpRule::has_post() const { + return _internal_has_post(); +} inline void HttpRule::set_has_post() { - _impl_._oneof_case_[0] = kPost; + _oneof_case_[0] = kPost; } inline void HttpRule::clear_post() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (pattern_case() == kPost) { - _impl_.pattern_.post_.Destroy(); + if (_internal_has_post()) { + pattern_.post_.Destroy(); clear_has_pattern(); } } -inline const std::string& HttpRule::post() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& HttpRule::post() const { // @@protoc_insertion_point(field_get:google.api.HttpRule.post) return _internal_post(); } -template -inline PROTOBUF_ALWAYS_INLINE void HttpRule::set_post(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (pattern_case() != kPost) { +template +inline void HttpRule::set_post(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_post()) { clear_pattern(); - set_has_post(); - _impl_.pattern_.post_.InitDefault(); + pattern_.post_.InitDefault(); } - _impl_.pattern_.post_.Set(static_cast(arg), args..., GetArena()); + pattern_.post_.Set( static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.HttpRule.post) } -inline std::string* HttpRule::mutable_post() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* HttpRule::mutable_post() { std::string* _s = _internal_mutable_post(); // @@protoc_insertion_point(field_mutable:google.api.HttpRule.post) return _s; } inline const std::string& HttpRule::_internal_post() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - if (pattern_case() != kPost) { - return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); + if (_internal_has_post()) { + return pattern_.post_.Get(); } - return _impl_.pattern_.post_.Get(); + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } inline void HttpRule::_internal_set_post(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (pattern_case() != kPost) { + if (!_internal_has_post()) { clear_pattern(); - set_has_post(); - _impl_.pattern_.post_.InitDefault(); + pattern_.post_.InitDefault(); } - _impl_.pattern_.post_.Set(value, GetArena()); + pattern_.post_.Set(value, GetArenaForAllocation()); } inline std::string* HttpRule::_internal_mutable_post() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (pattern_case() != kPost) { + if (!_internal_has_post()) { clear_pattern(); - set_has_post(); - _impl_.pattern_.post_.InitDefault(); + pattern_.post_.InitDefault(); } - return _impl_.pattern_.post_.Mutable( GetArena()); + return pattern_.post_.Mutable( GetArenaForAllocation()); } inline std::string* HttpRule::release_post() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.HttpRule.post) - if (pattern_case() != kPost) { + if (_internal_has_post()) { + clear_has_pattern(); + return pattern_.post_.Release(); + } else { return nullptr; } - clear_has_pattern(); - return _impl_.pattern_.post_.Release(); } -inline void HttpRule::set_allocated_post(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void HttpRule::set_allocated_post(std::string* post) { if (has_pattern()) { clear_pattern(); } - if (value != nullptr) { + if (post != nullptr) { set_has_post(); - _impl_.pattern_.post_.InitAllocated(value, GetArena()); + pattern_.post_.InitAllocated(post, GetArenaForAllocation()); } // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.post) } // string delete = 5 [json_name = "delete"]; -inline bool HttpRule::has_delete_() const { +inline bool HttpRule::_internal_has_delete_() const { return pattern_case() == kDelete; } +inline bool HttpRule::has_delete_() const { + return _internal_has_delete_(); +} inline void HttpRule::set_has_delete_() { - _impl_._oneof_case_[0] = kDelete; + _oneof_case_[0] = kDelete; } inline void HttpRule::clear_delete_() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (pattern_case() == kDelete) { - _impl_.pattern_.delete__.Destroy(); + if (_internal_has_delete_()) { + pattern_.delete__.Destroy(); clear_has_pattern(); } } -inline const std::string& HttpRule::delete_() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& HttpRule::delete_() const { // @@protoc_insertion_point(field_get:google.api.HttpRule.delete) return _internal_delete_(); } -template -inline PROTOBUF_ALWAYS_INLINE void HttpRule::set_delete_(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (pattern_case() != kDelete) { +template +inline void HttpRule::set_delete_(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_delete_()) { clear_pattern(); - set_has_delete_(); - _impl_.pattern_.delete__.InitDefault(); + pattern_.delete__.InitDefault(); } - _impl_.pattern_.delete__.Set(static_cast(arg), args..., GetArena()); + pattern_.delete__.Set( static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.HttpRule.delete) } -inline std::string* HttpRule::mutable_delete_() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* HttpRule::mutable_delete_() { std::string* _s = _internal_mutable_delete_(); // @@protoc_insertion_point(field_mutable:google.api.HttpRule.delete) return _s; } inline const std::string& HttpRule::_internal_delete_() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - if (pattern_case() != kDelete) { - return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); + if (_internal_has_delete_()) { + return pattern_.delete__.Get(); } - return _impl_.pattern_.delete__.Get(); + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } inline void HttpRule::_internal_set_delete_(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (pattern_case() != kDelete) { + if (!_internal_has_delete_()) { clear_pattern(); - set_has_delete_(); - _impl_.pattern_.delete__.InitDefault(); + pattern_.delete__.InitDefault(); } - _impl_.pattern_.delete__.Set(value, GetArena()); + pattern_.delete__.Set(value, GetArenaForAllocation()); } inline std::string* HttpRule::_internal_mutable_delete_() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (pattern_case() != kDelete) { + if (!_internal_has_delete_()) { clear_pattern(); - set_has_delete_(); - _impl_.pattern_.delete__.InitDefault(); + pattern_.delete__.InitDefault(); } - return _impl_.pattern_.delete__.Mutable( GetArena()); + return pattern_.delete__.Mutable( GetArenaForAllocation()); } inline std::string* HttpRule::release_delete_() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.HttpRule.delete) - if (pattern_case() != kDelete) { + if (_internal_has_delete_()) { + clear_has_pattern(); + return pattern_.delete__.Release(); + } else { return nullptr; } - clear_has_pattern(); - return _impl_.pattern_.delete__.Release(); } -inline void HttpRule::set_allocated_delete_(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void HttpRule::set_allocated_delete_(std::string* delete_) { if (has_pattern()) { clear_pattern(); } - if (value != nullptr) { + if (delete_ != nullptr) { set_has_delete_(); - _impl_.pattern_.delete__.InitAllocated(value, GetArena()); + pattern_.delete__.InitAllocated(delete_, GetArenaForAllocation()); } // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.delete) } // string patch = 6 [json_name = "patch"]; -inline bool HttpRule::has_patch() const { +inline bool HttpRule::_internal_has_patch() const { return pattern_case() == kPatch; } +inline bool HttpRule::has_patch() const { + return _internal_has_patch(); +} inline void HttpRule::set_has_patch() { - _impl_._oneof_case_[0] = kPatch; + _oneof_case_[0] = kPatch; } inline void HttpRule::clear_patch() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (pattern_case() == kPatch) { - _impl_.pattern_.patch_.Destroy(); + if (_internal_has_patch()) { + pattern_.patch_.Destroy(); clear_has_pattern(); } } -inline const std::string& HttpRule::patch() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& HttpRule::patch() const { // @@protoc_insertion_point(field_get:google.api.HttpRule.patch) return _internal_patch(); } -template -inline PROTOBUF_ALWAYS_INLINE void HttpRule::set_patch(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (pattern_case() != kPatch) { +template +inline void HttpRule::set_patch(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_patch()) { clear_pattern(); - set_has_patch(); - _impl_.pattern_.patch_.InitDefault(); + pattern_.patch_.InitDefault(); } - _impl_.pattern_.patch_.Set(static_cast(arg), args..., GetArena()); + pattern_.patch_.Set( static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.HttpRule.patch) } -inline std::string* HttpRule::mutable_patch() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* HttpRule::mutable_patch() { std::string* _s = _internal_mutable_patch(); // @@protoc_insertion_point(field_mutable:google.api.HttpRule.patch) return _s; } inline const std::string& HttpRule::_internal_patch() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - if (pattern_case() != kPatch) { - return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); + if (_internal_has_patch()) { + return pattern_.patch_.Get(); } - return _impl_.pattern_.patch_.Get(); + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } inline void HttpRule::_internal_set_patch(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (pattern_case() != kPatch) { + if (!_internal_has_patch()) { clear_pattern(); - set_has_patch(); - _impl_.pattern_.patch_.InitDefault(); + pattern_.patch_.InitDefault(); } - _impl_.pattern_.patch_.Set(value, GetArena()); + pattern_.patch_.Set(value, GetArenaForAllocation()); } inline std::string* HttpRule::_internal_mutable_patch() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (pattern_case() != kPatch) { + if (!_internal_has_patch()) { clear_pattern(); - set_has_patch(); - _impl_.pattern_.patch_.InitDefault(); + pattern_.patch_.InitDefault(); } - return _impl_.pattern_.patch_.Mutable( GetArena()); + return pattern_.patch_.Mutable( GetArenaForAllocation()); } inline std::string* HttpRule::release_patch() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.HttpRule.patch) - if (pattern_case() != kPatch) { + if (_internal_has_patch()) { + clear_has_pattern(); + return pattern_.patch_.Release(); + } else { return nullptr; } - clear_has_pattern(); - return _impl_.pattern_.patch_.Release(); } -inline void HttpRule::set_allocated_patch(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void HttpRule::set_allocated_patch(std::string* patch) { if (has_pattern()) { clear_pattern(); } - if (value != nullptr) { + if (patch != nullptr) { set_has_patch(); - _impl_.pattern_.patch_.InitAllocated(value, GetArena()); + pattern_.patch_.InitAllocated(patch, GetArenaForAllocation()); } // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.patch) } // .google.api.CustomHttpPattern custom = 8 [json_name = "custom"]; -inline bool HttpRule::has_custom() const { - return pattern_case() == kCustom; -} inline bool HttpRule::_internal_has_custom() const { return pattern_case() == kCustom; } +inline bool HttpRule::has_custom() const { + return _internal_has_custom(); +} inline void HttpRule::set_has_custom() { - _impl_._oneof_case_[0] = kCustom; + _oneof_case_[0] = kCustom; } inline void HttpRule::clear_custom() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (pattern_case() == kCustom) { - if (GetArena() == nullptr) { - delete _impl_.pattern_.custom_; + if (_internal_has_custom()) { + if (GetArenaForAllocation() == nullptr) { + delete pattern_.custom_; } clear_has_pattern(); } } inline ::google::api::CustomHttpPattern* HttpRule::release_custom() { // @@protoc_insertion_point(field_release:google.api.HttpRule.custom) - if (pattern_case() == kCustom) { + if (_internal_has_custom()) { clear_has_pattern(); - auto* temp = _impl_.pattern_.custom_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::google::api::CustomHttpPattern* temp = pattern_.custom_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.pattern_.custom_ = nullptr; + pattern_.custom_ = nullptr; return temp; } else { return nullptr; } } inline const ::google::api::CustomHttpPattern& HttpRule::_internal_custom() const { - return pattern_case() == kCustom ? *_impl_.pattern_.custom_ : reinterpret_cast<::google::api::CustomHttpPattern&>(::google::api::_CustomHttpPattern_default_instance_); + return _internal_has_custom() + ? *pattern_.custom_ + : reinterpret_cast< ::google::api::CustomHttpPattern&>(::google::api::_CustomHttpPattern_default_instance_); } -inline const ::google::api::CustomHttpPattern& HttpRule::custom() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::CustomHttpPattern& HttpRule::custom() const { // @@protoc_insertion_point(field_get:google.api.HttpRule.custom) return _internal_custom(); } inline ::google::api::CustomHttpPattern* HttpRule::unsafe_arena_release_custom() { // @@protoc_insertion_point(field_unsafe_arena_release:google.api.HttpRule.custom) - if (pattern_case() == kCustom) { + if (_internal_has_custom()) { clear_has_pattern(); - auto* temp = _impl_.pattern_.custom_; - _impl_.pattern_.custom_ = nullptr; + ::google::api::CustomHttpPattern* temp = pattern_.custom_; + pattern_.custom_ = nullptr; return temp; } else { return nullptr; } } -inline void HttpRule::unsafe_arena_set_allocated_custom(::google::api::CustomHttpPattern* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void HttpRule::unsafe_arena_set_allocated_custom(::google::api::CustomHttpPattern* custom) { clear_pattern(); - if (value) { + if (custom) { set_has_custom(); - _impl_.pattern_.custom_ = value; + pattern_.custom_ = custom; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.custom) } inline ::google::api::CustomHttpPattern* HttpRule::_internal_mutable_custom() { - if (pattern_case() != kCustom) { + if (!_internal_has_custom()) { clear_pattern(); set_has_custom(); - _impl_.pattern_.custom_ = CreateMaybeMessage<::google::api::CustomHttpPattern>(GetArena()); + pattern_.custom_ = CreateMaybeMessage< ::google::api::CustomHttpPattern >(GetArenaForAllocation()); } - return _impl_.pattern_.custom_; + return pattern_.custom_; } -inline ::google::api::CustomHttpPattern* HttpRule::mutable_custom() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::CustomHttpPattern* HttpRule::mutable_custom() { ::google::api::CustomHttpPattern* _msg = _internal_mutable_custom(); // @@protoc_insertion_point(field_mutable:google.api.HttpRule.custom) return _msg; @@ -1501,167 +1325,152 @@ inline ::google::api::CustomHttpPattern* HttpRule::mutable_custom() ABSL_ATTRIBU // string body = 7 [json_name = "body"]; inline void HttpRule::clear_body() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.body_.ClearToEmpty(); + body_.ClearToEmpty(); } -inline const std::string& HttpRule::body() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& HttpRule::body() const { // @@protoc_insertion_point(field_get:google.api.HttpRule.body) return _internal_body(); } -template -inline PROTOBUF_ALWAYS_INLINE void HttpRule::set_body(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.body_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void HttpRule::set_body(ArgT0&& arg0, ArgT... args) { + + body_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.HttpRule.body) } -inline std::string* HttpRule::mutable_body() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* HttpRule::mutable_body() { std::string* _s = _internal_mutable_body(); // @@protoc_insertion_point(field_mutable:google.api.HttpRule.body) return _s; } inline const std::string& HttpRule::_internal_body() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.body_.Get(); + return body_.Get(); } inline void HttpRule::_internal_set_body(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.body_.Set(value, GetArena()); + + body_.Set(value, GetArenaForAllocation()); } inline std::string* HttpRule::_internal_mutable_body() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.body_.Mutable( GetArena()); + + return body_.Mutable(GetArenaForAllocation()); } inline std::string* HttpRule::release_body() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.HttpRule.body) - return _impl_.body_.Release(); -} -inline void HttpRule::set_allocated_body(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.body_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.body_.IsDefault()) { - _impl_.body_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return body_.Release(); +} +inline void HttpRule::set_allocated_body(std::string* body) { + if (body != nullptr) { + + } else { + + } + body_.SetAllocated(body, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (body_.IsDefault()) { + body_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.body) } // string response_body = 12 [json_name = "responseBody"]; inline void HttpRule::clear_response_body() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.response_body_.ClearToEmpty(); + response_body_.ClearToEmpty(); } -inline const std::string& HttpRule::response_body() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& HttpRule::response_body() const { // @@protoc_insertion_point(field_get:google.api.HttpRule.response_body) return _internal_response_body(); } -template -inline PROTOBUF_ALWAYS_INLINE void HttpRule::set_response_body(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.response_body_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void HttpRule::set_response_body(ArgT0&& arg0, ArgT... args) { + + response_body_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.HttpRule.response_body) } -inline std::string* HttpRule::mutable_response_body() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* HttpRule::mutable_response_body() { std::string* _s = _internal_mutable_response_body(); // @@protoc_insertion_point(field_mutable:google.api.HttpRule.response_body) return _s; } inline const std::string& HttpRule::_internal_response_body() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.response_body_.Get(); + return response_body_.Get(); } inline void HttpRule::_internal_set_response_body(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.response_body_.Set(value, GetArena()); + + response_body_.Set(value, GetArenaForAllocation()); } inline std::string* HttpRule::_internal_mutable_response_body() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.response_body_.Mutable( GetArena()); + + return response_body_.Mutable(GetArenaForAllocation()); } inline std::string* HttpRule::release_response_body() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.HttpRule.response_body) - return _impl_.response_body_.Release(); -} -inline void HttpRule::set_allocated_response_body(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.response_body_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.response_body_.IsDefault()) { - _impl_.response_body_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return response_body_.Release(); +} +inline void HttpRule::set_allocated_response_body(std::string* response_body) { + if (response_body != nullptr) { + + } else { + + } + response_body_.SetAllocated(response_body, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (response_body_.IsDefault()) { + response_body_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.response_body) } // repeated .google.api.HttpRule additional_bindings = 11 [json_name = "additionalBindings"]; inline int HttpRule::_internal_additional_bindings_size() const { - return _internal_additional_bindings().size(); + return additional_bindings_.size(); } inline int HttpRule::additional_bindings_size() const { return _internal_additional_bindings_size(); } inline void HttpRule::clear_additional_bindings() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.additional_bindings_.Clear(); + additional_bindings_.Clear(); } -inline ::google::api::HttpRule* HttpRule::mutable_additional_bindings(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::HttpRule* HttpRule::mutable_additional_bindings(int index) { // @@protoc_insertion_point(field_mutable:google.api.HttpRule.additional_bindings) - return _internal_mutable_additional_bindings()->Mutable(index); + return additional_bindings_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>* HttpRule::mutable_additional_bindings() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::HttpRule >* +HttpRule::mutable_additional_bindings() { // @@protoc_insertion_point(field_mutable_list:google.api.HttpRule.additional_bindings) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_additional_bindings(); + return &additional_bindings_; } -inline const ::google::api::HttpRule& HttpRule::additional_bindings(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::HttpRule& HttpRule::_internal_additional_bindings(int index) const { + return additional_bindings_.Get(index); +} +inline const ::google::api::HttpRule& HttpRule::additional_bindings(int index) const { // @@protoc_insertion_point(field_get:google.api.HttpRule.additional_bindings) - return _internal_additional_bindings().Get(index); + return _internal_additional_bindings(index); +} +inline ::google::api::HttpRule* HttpRule::_internal_add_additional_bindings() { + return additional_bindings_.Add(); } -inline ::google::api::HttpRule* HttpRule::add_additional_bindings() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::google::api::HttpRule* _add = _internal_mutable_additional_bindings()->Add(); +inline ::google::api::HttpRule* HttpRule::add_additional_bindings() { + ::google::api::HttpRule* _add = _internal_add_additional_bindings(); // @@protoc_insertion_point(field_add:google.api.HttpRule.additional_bindings) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>& HttpRule::additional_bindings() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::HttpRule >& +HttpRule::additional_bindings() const { // @@protoc_insertion_point(field_list:google.api.HttpRule.additional_bindings) - return _internal_additional_bindings(); -} -inline const ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>& -HttpRule::_internal_additional_bindings() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.additional_bindings_; -} -inline ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>* -HttpRule::_internal_mutable_additional_bindings() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.additional_bindings_; + return additional_bindings_; } inline bool HttpRule::has_pattern() const { return pattern_case() != PATTERN_NOT_SET; } inline void HttpRule::clear_has_pattern() { - _impl_._oneof_case_[0] = PATTERN_NOT_SET; + _oneof_case_[0] = PATTERN_NOT_SET; } inline HttpRule::PatternCase HttpRule::pattern_case() const { - return HttpRule::PatternCase(_impl_._oneof_case_[0]); + return HttpRule::PatternCase(_oneof_case_[0]); } // ------------------------------------------------------------------- @@ -1669,121 +1478,118 @@ inline HttpRule::PatternCase HttpRule::pattern_case() const { // string kind = 1 [json_name = "kind"]; inline void CustomHttpPattern::clear_kind() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.kind_.ClearToEmpty(); + kind_.ClearToEmpty(); } -inline const std::string& CustomHttpPattern::kind() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& CustomHttpPattern::kind() const { // @@protoc_insertion_point(field_get:google.api.CustomHttpPattern.kind) return _internal_kind(); } -template -inline PROTOBUF_ALWAYS_INLINE void CustomHttpPattern::set_kind(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.kind_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void CustomHttpPattern::set_kind(ArgT0&& arg0, ArgT... args) { + + kind_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.CustomHttpPattern.kind) } -inline std::string* CustomHttpPattern::mutable_kind() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* CustomHttpPattern::mutable_kind() { std::string* _s = _internal_mutable_kind(); // @@protoc_insertion_point(field_mutable:google.api.CustomHttpPattern.kind) return _s; } inline const std::string& CustomHttpPattern::_internal_kind() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.kind_.Get(); + return kind_.Get(); } inline void CustomHttpPattern::_internal_set_kind(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.kind_.Set(value, GetArena()); + + kind_.Set(value, GetArenaForAllocation()); } inline std::string* CustomHttpPattern::_internal_mutable_kind() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.kind_.Mutable( GetArena()); + + return kind_.Mutable(GetArenaForAllocation()); } inline std::string* CustomHttpPattern::release_kind() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.CustomHttpPattern.kind) - return _impl_.kind_.Release(); -} -inline void CustomHttpPattern::set_allocated_kind(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.kind_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.kind_.IsDefault()) { - _impl_.kind_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return kind_.Release(); +} +inline void CustomHttpPattern::set_allocated_kind(std::string* kind) { + if (kind != nullptr) { + + } else { + + } + kind_.SetAllocated(kind, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (kind_.IsDefault()) { + kind_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.api.CustomHttpPattern.kind) } // string path = 2 [json_name = "path"]; inline void CustomHttpPattern::clear_path() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.path_.ClearToEmpty(); + path_.ClearToEmpty(); } -inline const std::string& CustomHttpPattern::path() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& CustomHttpPattern::path() const { // @@protoc_insertion_point(field_get:google.api.CustomHttpPattern.path) return _internal_path(); } -template -inline PROTOBUF_ALWAYS_INLINE void CustomHttpPattern::set_path(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.path_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void CustomHttpPattern::set_path(ArgT0&& arg0, ArgT... args) { + + path_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.CustomHttpPattern.path) } -inline std::string* CustomHttpPattern::mutable_path() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* CustomHttpPattern::mutable_path() { std::string* _s = _internal_mutable_path(); // @@protoc_insertion_point(field_mutable:google.api.CustomHttpPattern.path) return _s; } inline const std::string& CustomHttpPattern::_internal_path() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.path_.Get(); + return path_.Get(); } inline void CustomHttpPattern::_internal_set_path(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.path_.Set(value, GetArena()); + + path_.Set(value, GetArenaForAllocation()); } inline std::string* CustomHttpPattern::_internal_mutable_path() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.path_.Mutable( GetArena()); + + return path_.Mutable(GetArenaForAllocation()); } inline std::string* CustomHttpPattern::release_path() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.CustomHttpPattern.path) - return _impl_.path_.Release(); -} -inline void CustomHttpPattern::set_allocated_path(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.path_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.path_.IsDefault()) { - _impl_.path_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return path_.Release(); +} +inline void CustomHttpPattern::set_allocated_path(std::string* path) { + if (path != nullptr) { + + } else { + + } + path_.SetAllocated(path, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (path_.IsDefault()) { + path_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.api.CustomHttpPattern.path) } #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) + } // namespace api } // namespace google - // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fhttp_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fhttp_2eproto diff --git a/src/viam/api/google/api/httpbody.grpc.pb.cc b/src/viam/api/google/api/httpbody.grpc.pb.cc index c864a876f..b52b972c5 100644 --- a/src/viam/api/google/api/httpbody.grpc.pb.cc +++ b/src/viam/api/google/api/httpbody.grpc.pb.cc @@ -6,19 +6,19 @@ #include "google/api/httpbody.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace google { namespace api { diff --git a/src/viam/api/google/api/httpbody.grpc.pb.h b/src/viam/api/google/api/httpbody.grpc.pb.h index f3c0aff70..5a88a5948 100644 --- a/src/viam/api/google/api/httpbody.grpc.pb.h +++ b/src/viam/api/google/api/httpbody.grpc.pb.h @@ -22,23 +22,24 @@ #include "google/api/httpbody.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace google { namespace api { diff --git a/src/viam/api/google/api/httpbody.pb.cc b/src/viam/api/google/api/httpbody.pb.cc index 4d416253e..0f15c1dea 100644 --- a/src/viam/api/google/api/httpbody.pb.cc +++ b/src/viam/api/google/api/httpbody.pb.cc @@ -4,133 +4,94 @@ #include "google/api/httpbody.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace google { namespace api { - -inline constexpr HttpBody::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : extensions_{}, - content_type_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - data_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR HttpBody::HttpBody(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_CONSTEXPR HttpBody::HttpBody( + ::_pbi::ConstantInitialized) + : extensions_() + , content_type_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , data_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} struct HttpBodyDefaultTypeInternal { - PROTOBUF_CONSTEXPR HttpBodyDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR HttpBodyDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~HttpBodyDefaultTypeInternal() {} union { HttpBody _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HttpBodyDefaultTypeInternal _HttpBody_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HttpBodyDefaultTypeInternal _HttpBody_default_instance_; } // namespace api } // namespace google static ::_pb::Metadata file_level_metadata_google_2fapi_2fhttpbody_2eproto[1]; -static constexpr const ::_pb::EnumDescriptor** - file_level_enum_descriptors_google_2fapi_2fhttpbody_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_google_2fapi_2fhttpbody_2eproto = nullptr; -const ::uint32_t TableStruct_google_2fapi_2fhttpbody_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::HttpBody, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::HttpBody, _impl_.content_type_), - PROTOBUF_FIELD_OFFSET(::google::api::HttpBody, _impl_.data_), - PROTOBUF_FIELD_OFFSET(::google::api::HttpBody, _impl_.extensions_), +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_google_2fapi_2fhttpbody_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_google_2fapi_2fhttpbody_2eproto = nullptr; + +const uint32_t TableStruct_google_2fapi_2fhttpbody_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::HttpBody, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::HttpBody, content_type_), + PROTOBUF_FIELD_OFFSET(::google::api::HttpBody, data_), + PROTOBUF_FIELD_OFFSET(::google::api::HttpBody, extensions_), }; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, -1, -1, sizeof(::google::api::HttpBody)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::google::api::HttpBody)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::google::api::_HttpBody_default_instance_._instance, -}; -const char descriptor_table_protodef_google_2fapi_2fhttpbody_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n\031google/api/httpbody.proto\022\ngoogle.api\032" - "\031google/protobuf/any.proto\"w\n\010HttpBody\022!" - "\n\014content_type\030\001 \001(\tR\013contentType\022\022\n\004dat" - "a\030\002 \001(\014R\004data\0224\n\nextensions\030\003 \003(\0132\024.goog" - "le.protobuf.AnyR\nextensionsB\245\001\n\016com.goog" - "le.apiB\rHttpbodyProtoP\001Z;google.golang.o" - "rg/genproto/googleapis/api/httpbody;http" - "body\242\002\003GAX\252\002\nGoogle.Api\312\002\nGoogle\\Api\342\002\026G" - "oogle\\Api\\GPBMetadata\352\002\013Google::Apib\006pro" - "to3" + &::google::api::_HttpBody_default_instance_._instance, }; -static const ::_pbi::DescriptorTable* const descriptor_table_google_2fapi_2fhttpbody_2eproto_deps[1] = - { - &::descriptor_table_google_2fprotobuf_2fany_2eproto, + +const char descriptor_table_protodef_google_2fapi_2fhttpbody_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\031google/api/httpbody.proto\022\ngoogle.api\032" + "\031google/protobuf/any.proto\"w\n\010HttpBody\022!" + "\n\014content_type\030\001 \001(\tR\013contentType\022\022\n\004dat" + "a\030\002 \001(\014R\004data\0224\n\nextensions\030\003 \003(\0132\024.goog" + "le.protobuf.AnyR\nextensionsBe\n\016com.googl" + "e.apiB\rHttpBodyProtoP\001Z;google.golang.or" + "g/genproto/googleapis/api/httpbody;httpb" + "ody\242\002\004GAPIb\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_google_2fapi_2fhttpbody_2eproto_deps[1] = { + &::descriptor_table_google_2fprotobuf_2fany_2eproto, }; -static ::absl::once_flag descriptor_table_google_2fapi_2fhttpbody_2eproto_once; +static ::_pbi::once_flag descriptor_table_google_2fapi_2fhttpbody_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_google_2fapi_2fhttpbody_2eproto = { - false, - false, - 363, - descriptor_table_protodef_google_2fapi_2fhttpbody_2eproto, + false, false, 298, descriptor_table_protodef_google_2fapi_2fhttpbody_2eproto, "google/api/httpbody.proto", - &descriptor_table_google_2fapi_2fhttpbody_2eproto_once, - descriptor_table_google_2fapi_2fhttpbody_2eproto_deps, - 1, - 1, - schemas, - file_default_instances, - TableStruct_google_2fapi_2fhttpbody_2eproto::offsets, - file_level_metadata_google_2fapi_2fhttpbody_2eproto, - file_level_enum_descriptors_google_2fapi_2fhttpbody_2eproto, + &descriptor_table_google_2fapi_2fhttpbody_2eproto_once, descriptor_table_google_2fapi_2fhttpbody_2eproto_deps, 1, 1, + schemas, file_default_instances, TableStruct_google_2fapi_2fhttpbody_2eproto::offsets, + file_level_metadata_google_2fapi_2fhttpbody_2eproto, file_level_enum_descriptors_google_2fapi_2fhttpbody_2eproto, file_level_service_descriptors_google_2fapi_2fhttpbody_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2fapi_2fhttpbody_2eproto_getter() { return &descriptor_table_google_2fapi_2fhttpbody_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fapi_2fhttpbody_2eproto(&descriptor_table_google_2fapi_2fhttpbody_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fapi_2fhttpbody_2eproto(&descriptor_table_google_2fapi_2fhttpbody_2eproto); namespace google { namespace api { + // =================================================================== class HttpBody::_Internal { @@ -138,215 +99,238 @@ class HttpBody::_Internal { }; void HttpBody::clear_extensions() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.extensions_.Clear(); + extensions_.Clear(); } -HttpBody::HttpBody(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +HttpBody::HttpBody(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + extensions_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.HttpBody) } -inline PROTOBUF_NDEBUG_INLINE HttpBody::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : extensions_{visibility, arena, from.extensions_}, - content_type_(arena, from.content_type_), - data_(arena, from.data_), - _cached_size_{0} {} - -HttpBody::HttpBody( - ::google::protobuf::Arena* arena, - const HttpBody& from) - : ::google::protobuf::Message(arena) { - HttpBody* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +HttpBody::HttpBody(const HttpBody& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + extensions_(from.extensions_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + content_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + content_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_content_type().empty()) { + content_type_.Set(from._internal_content_type(), + GetArenaForAllocation()); + } + data_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + data_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_data().empty()) { + data_.Set(from._internal_data(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:google.api.HttpBody) } -inline PROTOBUF_NDEBUG_INLINE HttpBody::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : extensions_{visibility, arena}, - content_type_(arena), - data_(arena), - _cached_size_{0} {} - -inline void HttpBody::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); + +inline void HttpBody::SharedCtor() { +content_type_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + content_type_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +data_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + data_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + HttpBody::~HttpBody() { // @@protoc_insertion_point(destructor:google.api.HttpBody) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void HttpBody::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.content_type_.Destroy(); - _impl_.data_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + content_type_.Destroy(); + data_.Destroy(); } -PROTOBUF_NOINLINE void HttpBody::Clear() { +void HttpBody::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void HttpBody::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.HttpBody) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.extensions_.Clear(); - _impl_.content_type_.ClearToEmpty(); - _impl_.data_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + extensions_.Clear(); + content_type_.ClearToEmpty(); + data_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* HttpBody::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +const char* HttpBody::_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 content_type = 1 [json_name = "contentType"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_content_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.HttpBody.content_type")); + } else + goto handle_unusual; + continue; + // bytes data = 2 [json_name = "data"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_data(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // repeated .google.protobuf.Any extensions = 3 [json_name = "extensions"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_extensions(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 1, 40, 2> HttpBody::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_HttpBody_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string content_type = 1 [json_name = "contentType"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(HttpBody, _impl_.content_type_)}}, - // bytes data = 2 [json_name = "data"]; - {::_pbi::TcParser::FastBS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(HttpBody, _impl_.data_)}}, - // repeated .google.protobuf.Any extensions = 3 [json_name = "extensions"]; - {::_pbi::TcParser::FastMtR1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(HttpBody, _impl_.extensions_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string content_type = 1 [json_name = "contentType"]; - {PROTOBUF_FIELD_OFFSET(HttpBody, _impl_.content_type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // bytes data = 2 [json_name = "data"]; - {PROTOBUF_FIELD_OFFSET(HttpBody, _impl_.data_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // repeated .google.protobuf.Any extensions = 3 [json_name = "extensions"]; - {PROTOBUF_FIELD_OFFSET(HttpBody, _impl_.extensions_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Any>()}, - }}, {{ - "\23\14\0\0\0\0\0\0" - "google.api.HttpBody" - "content_type" - }}, -}; - -::uint8_t* HttpBody::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* HttpBody::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.HttpBody) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string content_type = 1 [json_name = "contentType"]; if (!this->_internal_content_type().empty()) { - const std::string& _s = this->_internal_content_type(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.HttpBody.content_type"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_content_type().data(), static_cast(this->_internal_content_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.HttpBody.content_type"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_content_type(), target); } // bytes data = 2 [json_name = "data"]; if (!this->_internal_data().empty()) { - const std::string& _s = this->_internal_data(); - target = stream->WriteBytesMaybeAliased(2, _s, target); + target = stream->WriteBytesMaybeAliased( + 2, this->_internal_data(), target); } // repeated .google.protobuf.Any extensions = 3 [json_name = "extensions"]; for (unsigned i = 0, n = static_cast(this->_internal_extensions_size()); i < n; i++) { - const auto& repfield = this->_internal_extensions().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_extensions(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.HttpBody) return target; } -::size_t HttpBody::ByteSizeLong() const { +size_t HttpBody::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.HttpBody) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .google.protobuf.Any extensions = 3 [json_name = "extensions"]; total_size += 1UL * this->_internal_extensions_size(); - for (const auto& msg : this->_internal_extensions()) { + for (const auto& msg : this->extensions_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // string content_type = 1 [json_name = "contentType"]; if (!this->_internal_content_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_content_type()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_content_type()); } // bytes data = 2 [json_name = "data"]; if (!this->_internal_data().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_data()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_data()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData HttpBody::_class_data_ = { - HttpBody::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData HttpBody::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + HttpBody::MergeImpl }; -const ::google::protobuf::Message::ClassData* HttpBody::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*HttpBody::GetClassData() const { return &_class_data_; } + +void HttpBody::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void HttpBody::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.HttpBody) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void HttpBody::MergeFrom(const HttpBody& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.HttpBody) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_extensions()->MergeFrom( - from._internal_extensions()); + extensions_.MergeFrom(from.extensions_); if (!from._internal_content_type().empty()) { - _this->_internal_set_content_type(from._internal_content_type()); + _internal_set_content_type(from._internal_content_type()); } if (!from._internal_data().empty()) { - _this->_internal_set_data(from._internal_data()); + _internal_set_data(from._internal_data()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void HttpBody::CopyFrom(const HttpBody& from) { @@ -356,34 +340,41 @@ void HttpBody::CopyFrom(const HttpBody& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool HttpBody::IsInitialized() const { +bool HttpBody::IsInitialized() const { return true; } -::_pbi::CachedSize* HttpBody::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void HttpBody::InternalSwap(HttpBody* PROTOBUF_RESTRICT other) { +void HttpBody::InternalSwap(HttpBody* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.extensions_.InternalSwap(&other->_impl_.extensions_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.content_type_, &other->_impl_.content_type_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.data_, &other->_impl_.data_, arena); + extensions_.InternalSwap(&other->extensions_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &content_type_, lhs_arena, + &other->content_type_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &data_, lhs_arena, + &other->data_, rhs_arena + ); } -::google::protobuf::Metadata HttpBody::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata HttpBody::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fhttpbody_2eproto_getter, &descriptor_table_google_2fapi_2fhttpbody_2eproto_once, file_level_metadata_google_2fapi_2fhttpbody_2eproto[0]); } + // @@protoc_insertion_point(namespace_scope) } // namespace api } // namespace google -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::google::api::HttpBody* +Arena::CreateMaybeMessage< ::google::api::HttpBody >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::HttpBody >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/google/api/httpbody.pb.h b/src/viam/api/google/api/httpbody.pb.h index a2d4304ba..1cec5b3ea 100644 --- a/src/viam/api/google/api/httpbody.pb.h +++ b/src/viam/api/google/api/httpbody.pb.h @@ -1,89 +1,73 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/httpbody.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fhttpbody_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fhttpbody_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fhttpbody_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fhttpbody_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/unknown_field_set.h" -#include "google/protobuf/any.pb.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +// @@protoc_insertion_point(includes) +#include #define PROTOBUF_INTERNAL_EXPORT_google_2fapi_2fhttpbody_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_google_2fapi_2fhttpbody_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_google_2fapi_2fhttpbody_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fapi_2fhttpbody_2eproto; namespace google { namespace api { class HttpBody; struct HttpBodyDefaultTypeInternal; extern HttpBodyDefaultTypeInternal _HttpBody_default_instance_; } // namespace api -namespace protobuf { -} // namespace protobuf } // namespace google - +PROTOBUF_NAMESPACE_OPEN +template<> ::google::api::HttpBody* Arena::CreateMaybeMessage<::google::api::HttpBody>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace google { namespace api { // =================================================================== - -// ------------------------------------------------------------------- - class HttpBody final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.HttpBody) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.HttpBody) */ { public: inline HttpBody() : HttpBody(nullptr) {} ~HttpBody() override; - template - explicit PROTOBUF_CONSTEXPR HttpBody(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR HttpBody(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline HttpBody(const HttpBody& from) - : HttpBody(nullptr, from) {} + HttpBody(const HttpBody& from); HttpBody(HttpBody&& from) noexcept : HttpBody() { *this = ::std::move(from); @@ -95,9 +79,9 @@ class HttpBody final : } inline HttpBody& operator=(HttpBody&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -107,22 +91,13 @@ class HttpBody final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const HttpBody& default_instance() { @@ -141,65 +116,63 @@ class HttpBody final : inline void Swap(HttpBody* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(HttpBody* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - HttpBody* New(::google::protobuf::Arena* arena = nullptr) const final { + HttpBody* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const HttpBody& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const HttpBody& from) { - HttpBody::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const HttpBody& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(HttpBody* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "google.api.HttpBody"; } protected: - explicit HttpBody(::google::protobuf::Arena* arena); - HttpBody(::google::protobuf::Arena* arena, const HttpBody& from); + explicit HttpBody(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -214,263 +187,219 @@ class HttpBody final : int extensions_size() const; private: int _internal_extensions_size() const; - public: - void clear_extensions() ; - ::google::protobuf::Any* mutable_extensions(int index); - ::google::protobuf::RepeatedPtrField< ::google::protobuf::Any >* + void clear_extensions(); + ::PROTOBUF_NAMESPACE_ID::Any* mutable_extensions(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Any >* mutable_extensions(); private: - const ::google::protobuf::RepeatedPtrField<::google::protobuf::Any>& _internal_extensions() const; - ::google::protobuf::RepeatedPtrField<::google::protobuf::Any>* _internal_mutable_extensions(); + const ::PROTOBUF_NAMESPACE_ID::Any& _internal_extensions(int index) const; + ::PROTOBUF_NAMESPACE_ID::Any* _internal_add_extensions(); public: - const ::google::protobuf::Any& extensions(int index) const; - ::google::protobuf::Any* add_extensions(); - const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Any >& + const ::PROTOBUF_NAMESPACE_ID::Any& extensions(int index) const; + ::PROTOBUF_NAMESPACE_ID::Any* add_extensions(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Any >& extensions() const; + // string content_type = 1 [json_name = "contentType"]; - void clear_content_type() ; + void clear_content_type(); const std::string& content_type() const; - template - void set_content_type(Arg_&& arg, Args_... args); + template + void set_content_type(ArgT0&& arg0, ArgT... args); std::string* mutable_content_type(); PROTOBUF_NODISCARD std::string* release_content_type(); - void set_allocated_content_type(std::string* value); - + void set_allocated_content_type(std::string* content_type); private: const std::string& _internal_content_type() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_content_type( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_content_type(const std::string& value); std::string* _internal_mutable_content_type(); - public: + // bytes data = 2 [json_name = "data"]; - void clear_data() ; + void clear_data(); const std::string& data() const; - template - void set_data(Arg_&& arg, Args_... args); + template + void set_data(ArgT0&& arg0, ArgT... args); std::string* mutable_data(); PROTOBUF_NODISCARD std::string* release_data(); - void set_allocated_data(std::string* value); - + void set_allocated_data(std::string* data); private: const std::string& _internal_data() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_data( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_data(const std::string& value); std::string* _internal_mutable_data(); - public: + // @@protoc_insertion_point(class_scope:google.api.HttpBody) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 1, - 40, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::google::protobuf::Any > extensions_; - ::google::protobuf::internal::ArenaStringPtr content_type_; - ::google::protobuf::internal::ArenaStringPtr data_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Any > extensions_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr content_type_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr data_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fhttpbody_2eproto; }; - // =================================================================== - - // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ -// ------------------------------------------------------------------- - // HttpBody // string content_type = 1 [json_name = "contentType"]; inline void HttpBody::clear_content_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.content_type_.ClearToEmpty(); + content_type_.ClearToEmpty(); } -inline const std::string& HttpBody::content_type() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& HttpBody::content_type() const { // @@protoc_insertion_point(field_get:google.api.HttpBody.content_type) return _internal_content_type(); } -template -inline PROTOBUF_ALWAYS_INLINE void HttpBody::set_content_type(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.content_type_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void HttpBody::set_content_type(ArgT0&& arg0, ArgT... args) { + + content_type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.HttpBody.content_type) } -inline std::string* HttpBody::mutable_content_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* HttpBody::mutable_content_type() { std::string* _s = _internal_mutable_content_type(); // @@protoc_insertion_point(field_mutable:google.api.HttpBody.content_type) return _s; } inline const std::string& HttpBody::_internal_content_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.content_type_.Get(); + return content_type_.Get(); } inline void HttpBody::_internal_set_content_type(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.content_type_.Set(value, GetArena()); + + content_type_.Set(value, GetArenaForAllocation()); } inline std::string* HttpBody::_internal_mutable_content_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.content_type_.Mutable( GetArena()); + + return content_type_.Mutable(GetArenaForAllocation()); } inline std::string* HttpBody::release_content_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.HttpBody.content_type) - return _impl_.content_type_.Release(); + return content_type_.Release(); } -inline void HttpBody::set_allocated_content_type(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.content_type_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.content_type_.IsDefault()) { - _impl_.content_type_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline void HttpBody::set_allocated_content_type(std::string* content_type) { + if (content_type != nullptr) { + + } else { + + } + content_type_.SetAllocated(content_type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (content_type_.IsDefault()) { + content_type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.api.HttpBody.content_type) } // bytes data = 2 [json_name = "data"]; inline void HttpBody::clear_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.data_.ClearToEmpty(); + data_.ClearToEmpty(); } -inline const std::string& HttpBody::data() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& HttpBody::data() const { // @@protoc_insertion_point(field_get:google.api.HttpBody.data) return _internal_data(); } -template -inline PROTOBUF_ALWAYS_INLINE void HttpBody::set_data(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.data_.SetBytes(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void HttpBody::set_data(ArgT0&& arg0, ArgT... args) { + + data_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.HttpBody.data) } -inline std::string* HttpBody::mutable_data() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* HttpBody::mutable_data() { std::string* _s = _internal_mutable_data(); // @@protoc_insertion_point(field_mutable:google.api.HttpBody.data) return _s; } inline const std::string& HttpBody::_internal_data() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.data_.Get(); + return data_.Get(); } inline void HttpBody::_internal_set_data(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.data_.Set(value, GetArena()); + + data_.Set(value, GetArenaForAllocation()); } inline std::string* HttpBody::_internal_mutable_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.data_.Mutable( GetArena()); + + return data_.Mutable(GetArenaForAllocation()); } inline std::string* HttpBody::release_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.HttpBody.data) - return _impl_.data_.Release(); + return data_.Release(); } -inline void HttpBody::set_allocated_data(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.data_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.data_.IsDefault()) { - _impl_.data_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline void HttpBody::set_allocated_data(std::string* data) { + if (data != nullptr) { + + } else { + + } + data_.SetAllocated(data, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (data_.IsDefault()) { + data_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.api.HttpBody.data) } // repeated .google.protobuf.Any extensions = 3 [json_name = "extensions"]; inline int HttpBody::_internal_extensions_size() const { - return _internal_extensions().size(); + return extensions_.size(); } inline int HttpBody::extensions_size() const { return _internal_extensions_size(); } -inline ::google::protobuf::Any* HttpBody::mutable_extensions(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::Any* HttpBody::mutable_extensions(int index) { // @@protoc_insertion_point(field_mutable:google.api.HttpBody.extensions) - return _internal_mutable_extensions()->Mutable(index); + return extensions_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::google::protobuf::Any>* HttpBody::mutable_extensions() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Any >* +HttpBody::mutable_extensions() { // @@protoc_insertion_point(field_mutable_list:google.api.HttpBody.extensions) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_extensions(); + return &extensions_; +} +inline const ::PROTOBUF_NAMESPACE_ID::Any& HttpBody::_internal_extensions(int index) const { + return extensions_.Get(index); } -inline const ::google::protobuf::Any& HttpBody::extensions(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Any& HttpBody::extensions(int index) const { // @@protoc_insertion_point(field_get:google.api.HttpBody.extensions) - return _internal_extensions().Get(index); + return _internal_extensions(index); } -inline ::google::protobuf::Any* HttpBody::add_extensions() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::google::protobuf::Any* _add = _internal_mutable_extensions()->Add(); +inline ::PROTOBUF_NAMESPACE_ID::Any* HttpBody::_internal_add_extensions() { + return extensions_.Add(); +} +inline ::PROTOBUF_NAMESPACE_ID::Any* HttpBody::add_extensions() { + ::PROTOBUF_NAMESPACE_ID::Any* _add = _internal_add_extensions(); // @@protoc_insertion_point(field_add:google.api.HttpBody.extensions) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::google::protobuf::Any>& HttpBody::extensions() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Any >& +HttpBody::extensions() const { // @@protoc_insertion_point(field_list:google.api.HttpBody.extensions) - return _internal_extensions(); -} -inline const ::google::protobuf::RepeatedPtrField<::google::protobuf::Any>& -HttpBody::_internal_extensions() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.extensions_; -} -inline ::google::protobuf::RepeatedPtrField<::google::protobuf::Any>* -HttpBody::_internal_mutable_extensions() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.extensions_; + return extensions_; } #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ // @@protoc_insertion_point(namespace_scope) + } // namespace api } // namespace google - // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fhttpbody_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fhttpbody_2eproto diff --git a/src/viam/api/google/api/launch_stage.grpc.pb.cc b/src/viam/api/google/api/launch_stage.grpc.pb.cc index b2b078f6d..0b68de7ae 100644 --- a/src/viam/api/google/api/launch_stage.grpc.pb.cc +++ b/src/viam/api/google/api/launch_stage.grpc.pb.cc @@ -6,19 +6,19 @@ #include "google/api/launch_stage.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace google { namespace api { diff --git a/src/viam/api/google/api/launch_stage.grpc.pb.h b/src/viam/api/google/api/launch_stage.grpc.pb.h index e2c2e6e7d..3a77b1073 100644 --- a/src/viam/api/google/api/launch_stage.grpc.pb.h +++ b/src/viam/api/google/api/launch_stage.grpc.pb.h @@ -22,23 +22,24 @@ #include "google/api/launch_stage.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace google { namespace api { diff --git a/src/viam/api/google/api/launch_stage.pb.cc b/src/viam/api/google/api/launch_stage.pb.cc index 08abdcdc2..73984b971 100644 --- a/src/viam/api/google/api/launch_stage.pb.cc +++ b/src/viam/api/google/api/launch_stage.pb.cc @@ -4,96 +4,85 @@ #include "google/api/launch_stage.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace google { namespace api { } // namespace api } // namespace google static const ::_pb::EnumDescriptor* file_level_enum_descriptors_google_2fapi_2flaunch_5fstage_2eproto[1]; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_google_2fapi_2flaunch_5fstage_2eproto = nullptr; -const ::uint32_t TableStruct_google_2fapi_2flaunch_5fstage_2eproto::offsets[1] = {}; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_google_2fapi_2flaunch_5fstage_2eproto = nullptr; +const uint32_t TableStruct_google_2fapi_2flaunch_5fstage_2eproto::offsets[1] = {}; static constexpr ::_pbi::MigrationSchema* schemas = nullptr; static constexpr ::_pb::Message* const* file_default_instances = nullptr; -const char descriptor_table_protodef_google_2fapi_2flaunch_5fstage_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n\035google/api/launch_stage.proto\022\ngoogle." - "api*\214\001\n\013LaunchStage\022\034\n\030LAUNCH_STAGE_UNSP" - "ECIFIED\020\000\022\021\n\rUNIMPLEMENTED\020\006\022\r\n\tPRELAUNC" - "H\020\007\022\020\n\014EARLY_ACCESS\020\001\022\t\n\005ALPHA\020\002\022\010\n\004BETA" - "\020\003\022\006\n\002GA\020\004\022\016\n\nDEPRECATED\020\005B\232\001\n\016com.googl" - "e.apiB\020LaunchStageProtoP\001Z-google.golang" - ".org/genproto/googleapis/api;api\242\002\003GAX\252\002" - "\nGoogle.Api\312\002\nGoogle\\Api\342\002\026Google\\Api\\GP" - "BMetadata\352\002\013Google::Apib\006proto3" -}; -static ::absl::once_flag descriptor_table_google_2fapi_2flaunch_5fstage_2eproto_once; + +const char descriptor_table_protodef_google_2fapi_2flaunch_5fstage_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\035google/api/launch_stage.proto\022\ngoogle." + "api*\214\001\n\013LaunchStage\022\034\n\030LAUNCH_STAGE_UNSP" + "ECIFIED\020\000\022\021\n\rUNIMPLEMENTED\020\006\022\r\n\tPRELAUNC" + "H\020\007\022\020\n\014EARLY_ACCESS\020\001\022\t\n\005ALPHA\020\002\022\010\n\004BETA" + "\020\003\022\006\n\002GA\020\004\022\016\n\nDEPRECATED\020\005BZ\n\016com.google" + ".apiB\020LaunchStageProtoP\001Z-google.golang." + "org/genproto/googleapis/api;api\242\002\004GAPIb\006" + "proto3" + ; +static ::_pbi::once_flag descriptor_table_google_2fapi_2flaunch_5fstage_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_google_2fapi_2flaunch_5fstage_2eproto = { - false, - false, - 351, - descriptor_table_protodef_google_2fapi_2flaunch_5fstage_2eproto, + false, false, 286, descriptor_table_protodef_google_2fapi_2flaunch_5fstage_2eproto, "google/api/launch_stage.proto", - &descriptor_table_google_2fapi_2flaunch_5fstage_2eproto_once, - nullptr, - 0, - 0, - schemas, - file_default_instances, - TableStruct_google_2fapi_2flaunch_5fstage_2eproto::offsets, - nullptr, - file_level_enum_descriptors_google_2fapi_2flaunch_5fstage_2eproto, + &descriptor_table_google_2fapi_2flaunch_5fstage_2eproto_once, nullptr, 0, 0, + schemas, file_default_instances, TableStruct_google_2fapi_2flaunch_5fstage_2eproto::offsets, + nullptr, file_level_enum_descriptors_google_2fapi_2flaunch_5fstage_2eproto, file_level_service_descriptors_google_2fapi_2flaunch_5fstage_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2fapi_2flaunch_5fstage_2eproto_getter() { return &descriptor_table_google_2fapi_2flaunch_5fstage_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fapi_2flaunch_5fstage_2eproto(&descriptor_table_google_2fapi_2flaunch_5fstage_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fapi_2flaunch_5fstage_2eproto(&descriptor_table_google_2fapi_2flaunch_5fstage_2eproto); namespace google { namespace api { -const ::google::protobuf::EnumDescriptor* LaunchStage_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_google_2fapi_2flaunch_5fstage_2eproto); +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* LaunchStage_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_google_2fapi_2flaunch_5fstage_2eproto); return file_level_enum_descriptors_google_2fapi_2flaunch_5fstage_2eproto[0]; } -PROTOBUF_CONSTINIT const uint32_t LaunchStage_internal_data_[] = { - 524288u, 0u, }; bool LaunchStage_IsValid(int value) { - return 0 <= value && value <= 7; + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + return true; + default: + return false; + } } + + // @@protoc_insertion_point(namespace_scope) } // namespace api } // namespace google -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/google/api/launch_stage.pb.h b/src/viam/api/google/api/launch_stage.pb.h index 3eb4df276..7ea146c48 100644 --- a/src/viam/api/google/api/launch_stage.pb.h +++ b/src/viam/api/google/api/launch_stage.pb.h @@ -1,66 +1,53 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/launch_stage.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2flaunch_5fstage_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2flaunch_5fstage_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2flaunch_5fstage_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2flaunch_5fstage_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/generated_enum_reflection.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +// @@protoc_insertion_point(includes) +#include #define PROTOBUF_INTERNAL_EXPORT_google_2fapi_2flaunch_5fstage_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_google_2fapi_2flaunch_5fstage_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_google_2fapi_2flaunch_5fstage_2eproto; -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fapi_2flaunch_5fstage_2eproto; +PROTOBUF_NAMESPACE_OPEN +PROTOBUF_NAMESPACE_CLOSE namespace google { namespace api { + enum LaunchStage : int { LAUNCH_STAGE_UNSPECIFIED = 0, UNIMPLEMENTED = 6, @@ -70,77 +57,60 @@ enum LaunchStage : int { BETA = 3, GA = 4, DEPRECATED = 5, - LaunchStage_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - LaunchStage_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), + LaunchStage_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + LaunchStage_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() }; - bool LaunchStage_IsValid(int value); -extern const uint32_t LaunchStage_internal_data_[]; -constexpr LaunchStage LaunchStage_MIN = static_cast(0); -constexpr LaunchStage LaunchStage_MAX = static_cast(7); -constexpr int LaunchStage_ARRAYSIZE = 7 + 1; -const ::google::protobuf::EnumDescriptor* -LaunchStage_descriptor(); -template -const std::string& LaunchStage_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to LaunchStage_Name()."); - return LaunchStage_Name(static_cast(value)); -} -template <> -inline const std::string& LaunchStage_Name(LaunchStage value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); +constexpr LaunchStage LaunchStage_MIN = LAUNCH_STAGE_UNSPECIFIED; +constexpr LaunchStage LaunchStage_MAX = PRELAUNCH; +constexpr int LaunchStage_ARRAYSIZE = LaunchStage_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* LaunchStage_descriptor(); +template +inline const std::string& LaunchStage_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function LaunchStage_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + LaunchStage_descriptor(), enum_t_value); } -inline bool LaunchStage_Parse(absl::string_view name, LaunchStage* value) { - return ::google::protobuf::internal::ParseNamedEnum( - LaunchStage_descriptor(), name, value); +inline bool LaunchStage_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, LaunchStage* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + LaunchStage_descriptor(), name, value); } - // =================================================================== - // =================================================================== - - // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ // @@protoc_insertion_point(namespace_scope) + } // namespace api } // namespace google +PROTOBUF_NAMESPACE_OPEN -namespace google { -namespace protobuf { - +template <> struct is_proto_enum< ::google::api::LaunchStage> : ::std::true_type {}; template <> -struct is_proto_enum<::google::api::LaunchStage> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::google::api::LaunchStage>() { +inline const EnumDescriptor* GetEnumDescriptor< ::google::api::LaunchStage>() { return ::google::api::LaunchStage_descriptor(); } -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2flaunch_5fstage_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2flaunch_5fstage_2eproto diff --git a/src/viam/api/google/api/resource.grpc.pb.cc b/src/viam/api/google/api/resource.grpc.pb.cc index c66932d67..b73205ef8 100644 --- a/src/viam/api/google/api/resource.grpc.pb.cc +++ b/src/viam/api/google/api/resource.grpc.pb.cc @@ -6,19 +6,19 @@ #include "google/api/resource.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace google { namespace api { diff --git a/src/viam/api/google/api/resource.grpc.pb.h b/src/viam/api/google/api/resource.grpc.pb.h index 4f3c6e623..46ac5c294 100644 --- a/src/viam/api/google/api/resource.grpc.pb.h +++ b/src/viam/api/google/api/resource.grpc.pb.h @@ -22,23 +22,24 @@ #include "google/api/resource.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace google { namespace api { diff --git a/src/viam/api/google/api/resource.pb.cc b/src/viam/api/google/api/resource.pb.cc index e0b6fbe25..d2f1d2920 100644 --- a/src/viam/api/google/api/resource.pb.cc +++ b/src/viam/api/google/api/resource.pb.cc @@ -4,571 +4,593 @@ #include "google/api/resource.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; -namespace google { -namespace api { -inline constexpr ResourceReference::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : type_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - child_type_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR ResourceReference::ResourceReference(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ResourceReferenceDefaultTypeInternal { - PROTOBUF_CONSTEXPR ResourceReferenceDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ResourceReferenceDefaultTypeInternal() {} - union { - ResourceReference _instance; - }; -}; +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResourceReferenceDefaultTypeInternal _ResourceReference_default_instance_; - -inline constexpr ResourceDescriptor::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : pattern_{}, - style_{}, - _style_cached_byte_size_{0}, - type_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - name_field_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - plural_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - singular_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - history_{static_cast< ::google::api::ResourceDescriptor_History >(0)}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR ResourceDescriptor::ResourceDescriptor(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +namespace google { +namespace api { +PROTOBUF_CONSTEXPR ResourceDescriptor::ResourceDescriptor( + ::_pbi::ConstantInitialized) + : pattern_() + , style_() + , _style_cached_byte_size_(0) + , type_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , name_field_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , plural_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , singular_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , history_(0) +{} struct ResourceDescriptorDefaultTypeInternal { - PROTOBUF_CONSTEXPR ResourceDescriptorDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ResourceDescriptorDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~ResourceDescriptorDefaultTypeInternal() {} union { ResourceDescriptor _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResourceDescriptorDefaultTypeInternal _ResourceDescriptor_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResourceDescriptorDefaultTypeInternal _ResourceDescriptor_default_instance_; +PROTOBUF_CONSTEXPR ResourceReference::ResourceReference( + ::_pbi::ConstantInitialized) + : type_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , child_type_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct ResourceReferenceDefaultTypeInternal { + PROTOBUF_CONSTEXPR ResourceReferenceDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ResourceReferenceDefaultTypeInternal() {} + union { + ResourceReference _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResourceReferenceDefaultTypeInternal _ResourceReference_default_instance_; } // namespace api } // namespace google static ::_pb::Metadata file_level_metadata_google_2fapi_2fresource_2eproto[2]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_google_2fapi_2fresource_2eproto[2]; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_google_2fapi_2fresource_2eproto = nullptr; -const ::uint32_t TableStruct_google_2fapi_2fresource_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::ResourceDescriptor, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::ResourceDescriptor, _impl_.type_), - PROTOBUF_FIELD_OFFSET(::google::api::ResourceDescriptor, _impl_.pattern_), - PROTOBUF_FIELD_OFFSET(::google::api::ResourceDescriptor, _impl_.name_field_), - PROTOBUF_FIELD_OFFSET(::google::api::ResourceDescriptor, _impl_.history_), - PROTOBUF_FIELD_OFFSET(::google::api::ResourceDescriptor, _impl_.plural_), - PROTOBUF_FIELD_OFFSET(::google::api::ResourceDescriptor, _impl_.singular_), - PROTOBUF_FIELD_OFFSET(::google::api::ResourceDescriptor, _impl_.style_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::ResourceReference, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::ResourceReference, _impl_.type_), - PROTOBUF_FIELD_OFFSET(::google::api::ResourceReference, _impl_.child_type_), +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_google_2fapi_2fresource_2eproto = nullptr; + +const uint32_t TableStruct_google_2fapi_2fresource_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::ResourceDescriptor, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::ResourceDescriptor, type_), + PROTOBUF_FIELD_OFFSET(::google::api::ResourceDescriptor, pattern_), + PROTOBUF_FIELD_OFFSET(::google::api::ResourceDescriptor, name_field_), + PROTOBUF_FIELD_OFFSET(::google::api::ResourceDescriptor, history_), + PROTOBUF_FIELD_OFFSET(::google::api::ResourceDescriptor, plural_), + PROTOBUF_FIELD_OFFSET(::google::api::ResourceDescriptor, singular_), + PROTOBUF_FIELD_OFFSET(::google::api::ResourceDescriptor, style_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::ResourceReference, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::ResourceReference, type_), + PROTOBUF_FIELD_OFFSET(::google::api::ResourceReference, child_type_), }; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, -1, -1, sizeof(::google::api::ResourceDescriptor)}, - {15, -1, -1, sizeof(::google::api::ResourceReference)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::google::api::ResourceDescriptor)}, + { 13, -1, -1, sizeof(::google::api::ResourceReference)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::google::api::_ResourceDescriptor_default_instance_._instance, - &::google::api::_ResourceReference_default_instance_._instance, -}; -const char descriptor_table_protodef_google_2fapi_2fresource_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n\031google/api/resource.proto\022\ngoogle.api\032" - " google/protobuf/descriptor.proto\"\252\003\n\022Re" - "sourceDescriptor\022\022\n\004type\030\001 \001(\tR\004type\022\030\n\007" - "pattern\030\002 \003(\tR\007pattern\022\035\n\nname_field\030\003 \001" - "(\tR\tnameField\022@\n\007history\030\004 \001(\0162&.google." - "api.ResourceDescriptor.HistoryR\007history\022" - "\026\n\006plural\030\005 \001(\tR\006plural\022\032\n\010singular\030\006 \001(" - "\tR\010singular\022:\n\005style\030\n \003(\0162$.google.api." - "ResourceDescriptor.StyleR\005style\"[\n\007Histo" - "ry\022\027\n\023HISTORY_UNSPECIFIED\020\000\022\035\n\031ORIGINALL" - "Y_SINGLE_PATTERN\020\001\022\030\n\024FUTURE_MULTI_PATTE" - "RN\020\002\"8\n\005Style\022\025\n\021STYLE_UNSPECIFIED\020\000\022\030\n\024" - "DECLARATIVE_FRIENDLY\020\001\"F\n\021ResourceRefere" - "nce\022\022\n\004type\030\001 \001(\tR\004type\022\035\n\nchild_type\030\002 " - "\001(\tR\tchildType:l\n\022resource_reference\022\035.g" - "oogle.protobuf.FieldOptions\030\237\010 \001(\0132\035.goo" - "gle.api.ResourceReferenceR\021resourceRefer" - "ence:n\n\023resource_definition\022\034.google.pro" - "tobuf.FileOptions\030\235\010 \003(\0132\036.google.api.Re" - "sourceDescriptorR\022resourceDefinition:\\\n\010" - "resource\022\037.google.protobuf.MessageOption" - "s\030\235\010 \001(\0132\036.google.api.ResourceDescriptor" - "R\010resourceB\256\001\n\016com.google.apiB\rResourceP" - "rotoP\001ZAgoogle.golang.org/genproto/googl" - "eapis/api/annotations;annotations\370\001\001\242\002\003G" - "AX\252\002\nGoogle.Api\312\002\nGoogle\\Api\342\002\026Google\\Ap" - "i\\GPBMetadata\352\002\013Google::Apib\006proto3" + &::google::api::_ResourceDescriptor_default_instance_._instance, + &::google::api::_ResourceReference_default_instance_._instance, }; -static const ::_pbi::DescriptorTable* const descriptor_table_google_2fapi_2fresource_2eproto_deps[1] = - { - &::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto, + +const char descriptor_table_protodef_google_2fapi_2fresource_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\031google/api/resource.proto\022\ngoogle.api\032" + " google/protobuf/descriptor.proto\"\252\003\n\022Re" + "sourceDescriptor\022\022\n\004type\030\001 \001(\tR\004type\022\030\n\007" + "pattern\030\002 \003(\tR\007pattern\022\035\n\nname_field\030\003 \001" + "(\tR\tnameField\022@\n\007history\030\004 \001(\0162&.google." + "api.ResourceDescriptor.HistoryR\007history\022" + "\026\n\006plural\030\005 \001(\tR\006plural\022\032\n\010singular\030\006 \001(" + "\tR\010singular\022:\n\005style\030\n \003(\0162$.google.api." + "ResourceDescriptor.StyleR\005style\"[\n\007Histo" + "ry\022\027\n\023HISTORY_UNSPECIFIED\020\000\022\035\n\031ORIGINALL" + "Y_SINGLE_PATTERN\020\001\022\030\n\024FUTURE_MULTI_PATTE" + "RN\020\002\"8\n\005Style\022\025\n\021STYLE_UNSPECIFIED\020\000\022\030\n\024" + "DECLARATIVE_FRIENDLY\020\001\"F\n\021ResourceRefere" + "nce\022\022\n\004type\030\001 \001(\tR\004type\022\035\n\nchild_type\030\002 " + "\001(\tR\tchildType:l\n\022resource_reference\022\035.g" + "oogle.protobuf.FieldOptions\030\237\010 \001(\0132\035.goo" + "gle.api.ResourceReferenceR\021resourceRefer" + "ence:n\n\023resource_definition\022\034.google.pro" + "tobuf.FileOptions\030\235\010 \003(\0132\036.google.api.Re" + "sourceDescriptorR\022resourceDefinition:\\\n\010" + "resource\022\037.google.protobuf.MessageOption" + "s\030\235\010 \001(\0132\036.google.api.ResourceDescriptor" + "R\010resourceBn\n\016com.google.apiB\rResourcePr" + "otoP\001ZAgoogle.golang.org/genproto/google" + "apis/api/annotations;annotations\370\001\001\242\002\004GA" + "PIb\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_google_2fapi_2fresource_2eproto_deps[1] = { + &::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto, }; -static ::absl::once_flag descriptor_table_google_2fapi_2fresource_2eproto_once; +static ::_pbi::once_flag descriptor_table_google_2fapi_2fresource_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_google_2fapi_2fresource_2eproto = { - false, - false, - 1075, - descriptor_table_protodef_google_2fapi_2fresource_2eproto, + false, false, 1010, descriptor_table_protodef_google_2fapi_2fresource_2eproto, "google/api/resource.proto", - &descriptor_table_google_2fapi_2fresource_2eproto_once, - descriptor_table_google_2fapi_2fresource_2eproto_deps, - 1, - 2, - schemas, - file_default_instances, - TableStruct_google_2fapi_2fresource_2eproto::offsets, - file_level_metadata_google_2fapi_2fresource_2eproto, - file_level_enum_descriptors_google_2fapi_2fresource_2eproto, + &descriptor_table_google_2fapi_2fresource_2eproto_once, descriptor_table_google_2fapi_2fresource_2eproto_deps, 1, 2, + schemas, file_default_instances, TableStruct_google_2fapi_2fresource_2eproto::offsets, + file_level_metadata_google_2fapi_2fresource_2eproto, file_level_enum_descriptors_google_2fapi_2fresource_2eproto, file_level_service_descriptors_google_2fapi_2fresource_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2fapi_2fresource_2eproto_getter() { return &descriptor_table_google_2fapi_2fresource_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fapi_2fresource_2eproto(&descriptor_table_google_2fapi_2fresource_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fapi_2fresource_2eproto(&descriptor_table_google_2fapi_2fresource_2eproto); namespace google { namespace api { -const ::google::protobuf::EnumDescriptor* ResourceDescriptor_History_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_google_2fapi_2fresource_2eproto); +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ResourceDescriptor_History_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_google_2fapi_2fresource_2eproto); return file_level_enum_descriptors_google_2fapi_2fresource_2eproto[0]; } -PROTOBUF_CONSTINIT const uint32_t ResourceDescriptor_History_internal_data_[] = { - 196608u, 0u, }; bool ResourceDescriptor_History_IsValid(int value) { - return 0 <= value && value <= 2; + switch (value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } } -#if (__cplusplus < 201703) && \ - (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr ResourceDescriptor_History ResourceDescriptor::HISTORY_UNSPECIFIED; constexpr ResourceDescriptor_History ResourceDescriptor::ORIGINALLY_SINGLE_PATTERN; constexpr ResourceDescriptor_History ResourceDescriptor::FUTURE_MULTI_PATTERN; constexpr ResourceDescriptor_History ResourceDescriptor::History_MIN; constexpr ResourceDescriptor_History ResourceDescriptor::History_MAX; constexpr int ResourceDescriptor::History_ARRAYSIZE; - -#endif // (__cplusplus < 201703) && - // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -const ::google::protobuf::EnumDescriptor* ResourceDescriptor_Style_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_google_2fapi_2fresource_2eproto); +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ResourceDescriptor_Style_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_google_2fapi_2fresource_2eproto); return file_level_enum_descriptors_google_2fapi_2fresource_2eproto[1]; } -PROTOBUF_CONSTINIT const uint32_t ResourceDescriptor_Style_internal_data_[] = { - 131072u, 0u, }; bool ResourceDescriptor_Style_IsValid(int value) { - return 0 <= value && value <= 1; + switch (value) { + case 0: + case 1: + return true; + default: + return false; + } } -#if (__cplusplus < 201703) && \ - (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr ResourceDescriptor_Style ResourceDescriptor::STYLE_UNSPECIFIED; constexpr ResourceDescriptor_Style ResourceDescriptor::DECLARATIVE_FRIENDLY; constexpr ResourceDescriptor_Style ResourceDescriptor::Style_MIN; constexpr ResourceDescriptor_Style ResourceDescriptor::Style_MAX; constexpr int ResourceDescriptor::Style_ARRAYSIZE; +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -#endif // (__cplusplus < 201703) && - // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) // =================================================================== class ResourceDescriptor::_Internal { public: }; -ResourceDescriptor::ResourceDescriptor(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ResourceDescriptor::ResourceDescriptor(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + pattern_(arena), + style_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.ResourceDescriptor) } -inline PROTOBUF_NDEBUG_INLINE ResourceDescriptor::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : pattern_{visibility, arena, from.pattern_}, - style_{visibility, arena, from.style_}, - _style_cached_byte_size_{0}, - type_(arena, from.type_), - name_field_(arena, from.name_field_), - plural_(arena, from.plural_), - singular_(arena, from.singular_), - _cached_size_{0} {} - -ResourceDescriptor::ResourceDescriptor( - ::google::protobuf::Arena* arena, - const ResourceDescriptor& from) - : ::google::protobuf::Message(arena) { - ResourceDescriptor* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.history_ = from._impl_.history_; - +ResourceDescriptor::ResourceDescriptor(const ResourceDescriptor& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + pattern_(from.pattern_), + style_(from.style_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + 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()); + } + name_field_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_field_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name_field().empty()) { + name_field_.Set(from._internal_name_field(), + GetArenaForAllocation()); + } + plural_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + plural_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_plural().empty()) { + plural_.Set(from._internal_plural(), + GetArenaForAllocation()); + } + singular_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + singular_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_singular().empty()) { + singular_.Set(from._internal_singular(), + GetArenaForAllocation()); + } + history_ = from.history_; // @@protoc_insertion_point(copy_constructor:google.api.ResourceDescriptor) } -inline PROTOBUF_NDEBUG_INLINE ResourceDescriptor::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : pattern_{visibility, arena}, - style_{visibility, arena}, - _style_cached_byte_size_{0}, - type_(arena), - name_field_(arena), - plural_(arena), - singular_(arena), - _cached_size_{0} {} - -inline void ResourceDescriptor::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.history_ = {}; + +inline void ResourceDescriptor::SharedCtor() { +type_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + type_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +name_field_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_field_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +plural_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + plural_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +singular_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + singular_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +history_ = 0; } + ResourceDescriptor::~ResourceDescriptor() { // @@protoc_insertion_point(destructor:google.api.ResourceDescriptor) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ResourceDescriptor::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.type_.Destroy(); - _impl_.name_field_.Destroy(); - _impl_.plural_.Destroy(); - _impl_.singular_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + type_.Destroy(); + name_field_.Destroy(); + plural_.Destroy(); + singular_.Destroy(); } -PROTOBUF_NOINLINE void ResourceDescriptor::Clear() { +void ResourceDescriptor::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ResourceDescriptor::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.ResourceDescriptor) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.pattern_.Clear(); - _impl_.style_.Clear(); - _impl_.type_.ClearToEmpty(); - _impl_.name_field_.ClearToEmpty(); - _impl_.plural_.ClearToEmpty(); - _impl_.singular_.ClearToEmpty(); - _impl_.history_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ResourceDescriptor::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + pattern_.Clear(); + style_.Clear(); + type_.ClearToEmpty(); + name_field_.ClearToEmpty(); + plural_.ClearToEmpty(); + singular_.ClearToEmpty(); + history_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ResourceDescriptor::_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 type = 1 [json_name = "type"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.ResourceDescriptor.type")); + } else + goto handle_unusual; + continue; + // repeated string pattern = 2 [json_name = "pattern"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_pattern(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.ResourceDescriptor.pattern")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } else + goto handle_unusual; + continue; + // string name_field = 3 [json_name = "nameField"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_name_field(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.ResourceDescriptor.name_field")); + } else + goto handle_unusual; + continue; + // .google.api.ResourceDescriptor.History history = 4 [json_name = "history"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_history(static_cast<::google::api::ResourceDescriptor_History>(val)); + } else + goto handle_unusual; + continue; + // string plural = 5 [json_name = "plural"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + auto str = _internal_mutable_plural(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.ResourceDescriptor.plural")); + } else + goto handle_unusual; + continue; + // string singular = 6 [json_name = "singular"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + auto str = _internal_mutable_singular(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.ResourceDescriptor.singular")); + } else + goto handle_unusual; + continue; + // repeated .google.api.ResourceDescriptor.Style style = 10 [json_name = "style"]; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_style(), ptr, ctx); + CHK_(ptr); + } else if (static_cast(tag) == 80) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_add_style(static_cast<::google::api::ResourceDescriptor_Style>(val)); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 7, 0, 73, 2> ResourceDescriptor::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 10, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294966720, // skipmap - offsetof(decltype(_table_), field_entries), - 7, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_ResourceDescriptor_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string type = 1 [json_name = "type"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ResourceDescriptor, _impl_.type_)}}, - // repeated string pattern = 2 [json_name = "pattern"]; - {::_pbi::TcParser::FastUR1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(ResourceDescriptor, _impl_.pattern_)}}, - // string name_field = 3 [json_name = "nameField"]; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(ResourceDescriptor, _impl_.name_field_)}}, - // .google.api.ResourceDescriptor.History history = 4 [json_name = "history"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ResourceDescriptor, _impl_.history_), 63>(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(ResourceDescriptor, _impl_.history_)}}, - // string plural = 5 [json_name = "plural"]; - {::_pbi::TcParser::FastUS1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(ResourceDescriptor, _impl_.plural_)}}, - // string singular = 6 [json_name = "singular"]; - {::_pbi::TcParser::FastUS1, - {50, 63, 0, PROTOBUF_FIELD_OFFSET(ResourceDescriptor, _impl_.singular_)}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string type = 1 [json_name = "type"]; - {PROTOBUF_FIELD_OFFSET(ResourceDescriptor, _impl_.type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated string pattern = 2 [json_name = "pattern"]; - {PROTOBUF_FIELD_OFFSET(ResourceDescriptor, _impl_.pattern_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - // string name_field = 3 [json_name = "nameField"]; - {PROTOBUF_FIELD_OFFSET(ResourceDescriptor, _impl_.name_field_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.api.ResourceDescriptor.History history = 4 [json_name = "history"]; - {PROTOBUF_FIELD_OFFSET(ResourceDescriptor, _impl_.history_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // string plural = 5 [json_name = "plural"]; - {PROTOBUF_FIELD_OFFSET(ResourceDescriptor, _impl_.plural_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string singular = 6 [json_name = "singular"]; - {PROTOBUF_FIELD_OFFSET(ResourceDescriptor, _impl_.singular_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated .google.api.ResourceDescriptor.Style style = 10 [json_name = "style"]; - {PROTOBUF_FIELD_OFFSET(ResourceDescriptor, _impl_.style_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kPackedOpenEnum)}, - }}, - // no aux_entries - {{ - "\35\4\7\12\0\6\10\0" - "google.api.ResourceDescriptor" - "type" - "pattern" - "name_field" - "plural" - "singular" - }}, -}; - -::uint8_t* ResourceDescriptor::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ResourceDescriptor::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.ResourceDescriptor) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string type = 1 [json_name = "type"]; if (!this->_internal_type().empty()) { - const std::string& _s = this->_internal_type(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.ResourceDescriptor.type"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_type().data(), static_cast(this->_internal_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.ResourceDescriptor.type"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_type(), target); } // repeated string pattern = 2 [json_name = "pattern"]; - for (int i = 0, n = this->_internal_pattern_size(); i < n; ++i) { - const auto& s = this->_internal_pattern().Get(i); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.ResourceDescriptor.pattern"); + for (int i = 0, n = this->_internal_pattern_size(); i < n; i++) { + const auto& s = this->_internal_pattern(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.ResourceDescriptor.pattern"); target = stream->WriteString(2, s, target); } // string name_field = 3 [json_name = "nameField"]; if (!this->_internal_name_field().empty()) { - const std::string& _s = this->_internal_name_field(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.ResourceDescriptor.name_field"); - target = stream->WriteStringMaybeAliased(3, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name_field().data(), static_cast(this->_internal_name_field().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.ResourceDescriptor.name_field"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_name_field(), target); } // .google.api.ResourceDescriptor.History history = 4 [json_name = "history"]; if (this->_internal_history() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 4, this->_internal_history(), target); + 4, this->_internal_history(), target); } // string plural = 5 [json_name = "plural"]; if (!this->_internal_plural().empty()) { - const std::string& _s = this->_internal_plural(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.ResourceDescriptor.plural"); - target = stream->WriteStringMaybeAliased(5, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_plural().data(), static_cast(this->_internal_plural().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.ResourceDescriptor.plural"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_plural(), target); } // string singular = 6 [json_name = "singular"]; if (!this->_internal_singular().empty()) { - const std::string& _s = this->_internal_singular(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.ResourceDescriptor.singular"); - target = stream->WriteStringMaybeAliased(6, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_singular().data(), static_cast(this->_internal_singular().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.ResourceDescriptor.singular"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_singular(), target); } // repeated .google.api.ResourceDescriptor.Style style = 10 [json_name = "style"]; { - std::size_t byte_size = _impl_._style_cached_byte_size_.Get(); + int byte_size = _style_cached_byte_size_.load(std::memory_order_relaxed); if (byte_size > 0) { - target = stream->WriteEnumPacked(10, _internal_style(), - byte_size, target); + target = stream->WriteEnumPacked( + 10, style_, byte_size, target); } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.ResourceDescriptor) return target; } -::size_t ResourceDescriptor::ByteSizeLong() const { +size_t ResourceDescriptor::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.ResourceDescriptor) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated string pattern = 2 [json_name = "pattern"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_pattern().size()); - for (int i = 0, n = _internal_pattern().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - _internal_pattern().Get(i)); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(pattern_.size()); + for (int i = 0, n = pattern_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + pattern_.Get(i)); } + // repeated .google.api.ResourceDescriptor.Style style = 10 [json_name = "style"]; { - std::size_t data_size = 0; - auto count = static_cast(this->_internal_style_size()); - - for (std::size_t i = 0; i < count; ++i) { + size_t data_size = 0; + unsigned int count = static_cast(this->_internal_style_size());for (unsigned int i = 0; i < count; i++) { data_size += ::_pbi::WireFormatLite::EnumSize( - this->_internal_style().Get(static_cast(i))); + this->_internal_style(static_cast(i))); } - total_size += data_size; if (data_size > 0) { - total_size += 1; - total_size += ::_pbi::WireFormatLite::Int32Size( - static_cast(data_size)); + total_size += 1 + + ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); } - _impl_._style_cached_byte_size_.Set(::_pbi::ToCachedSize(data_size)); + int cached_size = ::_pbi::ToCachedSize(data_size); + _style_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); + total_size += data_size; } + // string type = 1 [json_name = "type"]; if (!this->_internal_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_type()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_type()); } // string name_field = 3 [json_name = "nameField"]; if (!this->_internal_name_field().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name_field()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name_field()); } // string plural = 5 [json_name = "plural"]; if (!this->_internal_plural().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_plural()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_plural()); } // string singular = 6 [json_name = "singular"]; if (!this->_internal_singular().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_singular()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_singular()); } // .google.api.ResourceDescriptor.History history = 4 [json_name = "history"]; if (this->_internal_history() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_history()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_history()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ResourceDescriptor::_class_data_ = { - ResourceDescriptor::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ResourceDescriptor::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ResourceDescriptor::MergeImpl }; -const ::google::protobuf::Message::ClassData* ResourceDescriptor::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ResourceDescriptor::GetClassData() const { return &_class_data_; } + +void ResourceDescriptor::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ResourceDescriptor::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.ResourceDescriptor) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ResourceDescriptor::MergeFrom(const ResourceDescriptor& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.ResourceDescriptor) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_pattern()->MergeFrom(from._internal_pattern()); - _this->_internal_mutable_style()->MergeFrom(from._internal_style()); + pattern_.MergeFrom(from.pattern_); + style_.MergeFrom(from.style_); if (!from._internal_type().empty()) { - _this->_internal_set_type(from._internal_type()); + _internal_set_type(from._internal_type()); } if (!from._internal_name_field().empty()) { - _this->_internal_set_name_field(from._internal_name_field()); + _internal_set_name_field(from._internal_name_field()); } if (!from._internal_plural().empty()) { - _this->_internal_set_plural(from._internal_plural()); + _internal_set_plural(from._internal_plural()); } if (!from._internal_singular().empty()) { - _this->_internal_set_singular(from._internal_singular()); + _internal_set_singular(from._internal_singular()); } if (from._internal_history() != 0) { - _this->_internal_set_history(from._internal_history()); + _internal_set_history(from._internal_history()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ResourceDescriptor::CopyFrom(const ResourceDescriptor& from) { @@ -578,221 +600,251 @@ void ResourceDescriptor::CopyFrom(const ResourceDescriptor& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ResourceDescriptor::IsInitialized() const { +bool ResourceDescriptor::IsInitialized() const { return true; } -::_pbi::CachedSize* ResourceDescriptor::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ResourceDescriptor::InternalSwap(ResourceDescriptor* PROTOBUF_RESTRICT other) { +void ResourceDescriptor::InternalSwap(ResourceDescriptor* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.pattern_.InternalSwap(&other->_impl_.pattern_); - _impl_.style_.InternalSwap(&other->_impl_.style_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.type_, &other->_impl_.type_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_field_, &other->_impl_.name_field_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.plural_, &other->_impl_.plural_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.singular_, &other->_impl_.singular_, arena); - swap(_impl_.history_, other->_impl_.history_); -} - -::google::protobuf::Metadata ResourceDescriptor::GetMetadata() const { + pattern_.InternalSwap(&other->pattern_); + style_.InternalSwap(&other->style_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &type_, lhs_arena, + &other->type_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_field_, lhs_arena, + &other->name_field_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &plural_, lhs_arena, + &other->plural_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &singular_, lhs_arena, + &other->singular_, rhs_arena + ); + swap(history_, other->history_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ResourceDescriptor::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fresource_2eproto_getter, &descriptor_table_google_2fapi_2fresource_2eproto_once, file_level_metadata_google_2fapi_2fresource_2eproto[0]); } + // =================================================================== class ResourceReference::_Internal { public: }; -ResourceReference::ResourceReference(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ResourceReference::ResourceReference(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.ResourceReference) } -inline PROTOBUF_NDEBUG_INLINE ResourceReference::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : type_(arena, from.type_), - child_type_(arena, from.child_type_), - _cached_size_{0} {} - -ResourceReference::ResourceReference( - ::google::protobuf::Arena* arena, - const ResourceReference& from) - : ::google::protobuf::Message(arena) { - ResourceReference* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +ResourceReference::ResourceReference(const ResourceReference& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + 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()); + } + child_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + child_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_child_type().empty()) { + child_type_.Set(from._internal_child_type(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:google.api.ResourceReference) } -inline PROTOBUF_NDEBUG_INLINE ResourceReference::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : type_(arena), - child_type_(arena), - _cached_size_{0} {} -inline void ResourceReference::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void ResourceReference::SharedCtor() { +type_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + type_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +child_type_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + child_type_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + ResourceReference::~ResourceReference() { // @@protoc_insertion_point(destructor:google.api.ResourceReference) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ResourceReference::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.type_.Destroy(); - _impl_.child_type_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + type_.Destroy(); + child_type_.Destroy(); +} + +void ResourceReference::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void ResourceReference::Clear() { +void ResourceReference::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.ResourceReference) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.type_.ClearToEmpty(); - _impl_.child_type_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ResourceReference::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + type_.ClearToEmpty(); + child_type_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ResourceReference::_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 type = 1 [json_name = "type"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.ResourceReference.type")); + } else + goto handle_unusual; + continue; + // string child_type = 2 [json_name = "childType"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_child_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.ResourceReference.child_type")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 51, 2> ResourceReference::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_ResourceReference_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string child_type = 2 [json_name = "childType"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(ResourceReference, _impl_.child_type_)}}, - // string type = 1 [json_name = "type"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ResourceReference, _impl_.type_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string type = 1 [json_name = "type"]; - {PROTOBUF_FIELD_OFFSET(ResourceReference, _impl_.type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string child_type = 2 [json_name = "childType"]; - {PROTOBUF_FIELD_OFFSET(ResourceReference, _impl_.child_type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\34\4\12\0\0\0\0\0" - "google.api.ResourceReference" - "type" - "child_type" - }}, -}; - -::uint8_t* ResourceReference::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ResourceReference::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.ResourceReference) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string type = 1 [json_name = "type"]; if (!this->_internal_type().empty()) { - const std::string& _s = this->_internal_type(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.ResourceReference.type"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_type().data(), static_cast(this->_internal_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.ResourceReference.type"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_type(), target); } // string child_type = 2 [json_name = "childType"]; if (!this->_internal_child_type().empty()) { - const std::string& _s = this->_internal_child_type(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.ResourceReference.child_type"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_child_type().data(), static_cast(this->_internal_child_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.ResourceReference.child_type"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_child_type(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.ResourceReference) return target; } -::size_t ResourceReference::ByteSizeLong() const { +size_t ResourceReference::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.ResourceReference) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string type = 1 [json_name = "type"]; if (!this->_internal_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_type()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_type()); } // string child_type = 2 [json_name = "childType"]; if (!this->_internal_child_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_child_type()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_child_type()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ResourceReference::_class_data_ = { - ResourceReference::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ResourceReference::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ResourceReference::MergeImpl }; -const ::google::protobuf::Message::ClassData* ResourceReference::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ResourceReference::GetClassData() const { return &_class_data_; } + +void ResourceReference::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ResourceReference::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.ResourceReference) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ResourceReference::MergeFrom(const ResourceReference& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.ResourceReference) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_type().empty()) { - _this->_internal_set_type(from._internal_type()); + _internal_set_type(from._internal_type()); } if (!from._internal_child_type().empty()) { - _this->_internal_set_child_type(from._internal_child_type()); + _internal_set_child_type(from._internal_child_type()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ResourceReference::CopyFrom(const ResourceReference& from) { @@ -802,42 +854,53 @@ void ResourceReference::CopyFrom(const ResourceReference& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ResourceReference::IsInitialized() const { +bool ResourceReference::IsInitialized() const { return true; } -::_pbi::CachedSize* ResourceReference::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ResourceReference::InternalSwap(ResourceReference* PROTOBUF_RESTRICT other) { +void ResourceReference::InternalSwap(ResourceReference* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.type_, &other->_impl_.type_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.child_type_, &other->_impl_.child_type_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &type_, lhs_arena, + &other->type_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &child_type_, lhs_arena, + &other->child_type_, rhs_arena + ); } -::google::protobuf::Metadata ResourceReference::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ResourceReference::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fresource_2eproto_getter, &descriptor_table_google_2fapi_2fresource_2eproto_once, file_level_metadata_google_2fapi_2fresource_2eproto[1]); } -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::FieldOptions, - ::google::protobuf::internal::MessageTypeTraits< ::google::api::ResourceReference >, 11, false> +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::FieldOptions, + ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::google::api::ResourceReference >, 11, false> resource_reference(kResourceReferenceFieldNumber, ::google::api::ResourceReference::default_instance(), nullptr); -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::FileOptions, - ::google::protobuf::internal::RepeatedMessageTypeTraits< ::google::api::ResourceDescriptor >, 11, false> +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::FileOptions, + ::PROTOBUF_NAMESPACE_ID::internal::RepeatedMessageTypeTraits< ::google::api::ResourceDescriptor >, 11, false> resource_definition(kResourceDefinitionFieldNumber, ::google::api::ResourceDescriptor::default_instance(), nullptr); -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions, - ::google::protobuf::internal::MessageTypeTraits< ::google::api::ResourceDescriptor >, 11, false> +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::MessageOptions, + ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::google::api::ResourceDescriptor >, 11, false> resource(kResourceFieldNumber, ::google::api::ResourceDescriptor::default_instance(), nullptr); + // @@protoc_insertion_point(namespace_scope) } // namespace api } // namespace google -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::google::api::ResourceDescriptor* +Arena::CreateMaybeMessage< ::google::api::ResourceDescriptor >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::ResourceDescriptor >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::ResourceReference* +Arena::CreateMaybeMessage< ::google::api::ResourceReference >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::ResourceReference >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/google/api/resource.pb.h b/src/viam/api/google/api/resource.pb.h index 128d0e2c7..abe9a3ab2 100644 --- a/src/viam/api/google/api/resource.pb.h +++ b/src/viam/api/google/api/resource.pb.h @@ -1,62 +1,51 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/resource.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fresource_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fresource_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fresource_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fresource_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/generated_enum_reflection.h" -#include "google/protobuf/unknown_field_set.h" -#include "google/protobuf/descriptor.pb.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include +// @@protoc_insertion_point(includes) +#include #define PROTOBUF_INTERNAL_EXPORT_google_2fapi_2fresource_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_google_2fapi_2fresource_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_google_2fapi_2fresource_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fapi_2fresource_2eproto; namespace google { namespace api { class ResourceDescriptor; @@ -66,294 +55,75 @@ class ResourceReference; struct ResourceReferenceDefaultTypeInternal; extern ResourceReferenceDefaultTypeInternal _ResourceReference_default_instance_; } // namespace api -namespace protobuf { -} // namespace protobuf } // namespace google - +PROTOBUF_NAMESPACE_OPEN +template<> ::google::api::ResourceDescriptor* Arena::CreateMaybeMessage<::google::api::ResourceDescriptor>(Arena*); +template<> ::google::api::ResourceReference* Arena::CreateMaybeMessage<::google::api::ResourceReference>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace google { namespace api { + enum ResourceDescriptor_History : int { ResourceDescriptor_History_HISTORY_UNSPECIFIED = 0, ResourceDescriptor_History_ORIGINALLY_SINGLE_PATTERN = 1, ResourceDescriptor_History_FUTURE_MULTI_PATTERN = 2, - ResourceDescriptor_History_ResourceDescriptor_History_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - ResourceDescriptor_History_ResourceDescriptor_History_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), + ResourceDescriptor_History_ResourceDescriptor_History_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + ResourceDescriptor_History_ResourceDescriptor_History_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() }; - bool ResourceDescriptor_History_IsValid(int value); -extern const uint32_t ResourceDescriptor_History_internal_data_[]; -constexpr ResourceDescriptor_History ResourceDescriptor_History_History_MIN = static_cast(0); -constexpr ResourceDescriptor_History ResourceDescriptor_History_History_MAX = static_cast(2); -constexpr int ResourceDescriptor_History_History_ARRAYSIZE = 2 + 1; -const ::google::protobuf::EnumDescriptor* -ResourceDescriptor_History_descriptor(); -template -const std::string& ResourceDescriptor_History_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to History_Name()."); - return ResourceDescriptor_History_Name(static_cast(value)); -} -template <> -inline const std::string& ResourceDescriptor_History_Name(ResourceDescriptor_History value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool ResourceDescriptor_History_Parse(absl::string_view name, ResourceDescriptor_History* value) { - return ::google::protobuf::internal::ParseNamedEnum( - ResourceDescriptor_History_descriptor(), name, value); +constexpr ResourceDescriptor_History ResourceDescriptor_History_History_MIN = ResourceDescriptor_History_HISTORY_UNSPECIFIED; +constexpr ResourceDescriptor_History ResourceDescriptor_History_History_MAX = ResourceDescriptor_History_FUTURE_MULTI_PATTERN; +constexpr int ResourceDescriptor_History_History_ARRAYSIZE = ResourceDescriptor_History_History_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ResourceDescriptor_History_descriptor(); +template +inline const std::string& ResourceDescriptor_History_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function ResourceDescriptor_History_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + ResourceDescriptor_History_descriptor(), enum_t_value); +} +inline bool ResourceDescriptor_History_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ResourceDescriptor_History* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + ResourceDescriptor_History_descriptor(), name, value); } enum ResourceDescriptor_Style : int { ResourceDescriptor_Style_STYLE_UNSPECIFIED = 0, ResourceDescriptor_Style_DECLARATIVE_FRIENDLY = 1, - ResourceDescriptor_Style_ResourceDescriptor_Style_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - ResourceDescriptor_Style_ResourceDescriptor_Style_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), + ResourceDescriptor_Style_ResourceDescriptor_Style_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + ResourceDescriptor_Style_ResourceDescriptor_Style_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() }; - bool ResourceDescriptor_Style_IsValid(int value); -extern const uint32_t ResourceDescriptor_Style_internal_data_[]; -constexpr ResourceDescriptor_Style ResourceDescriptor_Style_Style_MIN = static_cast(0); -constexpr ResourceDescriptor_Style ResourceDescriptor_Style_Style_MAX = static_cast(1); -constexpr int ResourceDescriptor_Style_Style_ARRAYSIZE = 1 + 1; -const ::google::protobuf::EnumDescriptor* -ResourceDescriptor_Style_descriptor(); -template -const std::string& ResourceDescriptor_Style_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to Style_Name()."); - return ResourceDescriptor_Style_Name(static_cast(value)); -} -template <> -inline const std::string& ResourceDescriptor_Style_Name(ResourceDescriptor_Style value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool ResourceDescriptor_Style_Parse(absl::string_view name, ResourceDescriptor_Style* value) { - return ::google::protobuf::internal::ParseNamedEnum( - ResourceDescriptor_Style_descriptor(), name, value); +constexpr ResourceDescriptor_Style ResourceDescriptor_Style_Style_MIN = ResourceDescriptor_Style_STYLE_UNSPECIFIED; +constexpr ResourceDescriptor_Style ResourceDescriptor_Style_Style_MAX = ResourceDescriptor_Style_DECLARATIVE_FRIENDLY; +constexpr int ResourceDescriptor_Style_Style_ARRAYSIZE = ResourceDescriptor_Style_Style_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ResourceDescriptor_Style_descriptor(); +template +inline const std::string& ResourceDescriptor_Style_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function ResourceDescriptor_Style_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + ResourceDescriptor_Style_descriptor(), enum_t_value); +} +inline bool ResourceDescriptor_Style_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ResourceDescriptor_Style* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + ResourceDescriptor_Style_descriptor(), name, value); } - // =================================================================== - -// ------------------------------------------------------------------- - -class ResourceReference final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.ResourceReference) */ { - public: - inline ResourceReference() : ResourceReference(nullptr) {} - ~ResourceReference() override; - template - explicit PROTOBUF_CONSTEXPR ResourceReference(::google::protobuf::internal::ConstantInitialized); - - inline ResourceReference(const ResourceReference& from) - : ResourceReference(nullptr, from) {} - ResourceReference(ResourceReference&& from) noexcept - : ResourceReference() { - *this = ::std::move(from); - } - - inline ResourceReference& operator=(const ResourceReference& from) { - CopyFrom(from); - return *this; - } - inline ResourceReference& operator=(ResourceReference&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ResourceReference& default_instance() { - return *internal_default_instance(); - } - static inline const ResourceReference* internal_default_instance() { - return reinterpret_cast( - &_ResourceReference_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(ResourceReference& a, ResourceReference& b) { - a.Swap(&b); - } - inline void Swap(ResourceReference* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ResourceReference* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ResourceReference* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ResourceReference& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ResourceReference& from) { - ResourceReference::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(ResourceReference* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.ResourceReference"; - } - protected: - explicit ResourceReference(::google::protobuf::Arena* arena); - ResourceReference(::google::protobuf::Arena* arena, const ResourceReference& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kTypeFieldNumber = 1, - kChildTypeFieldNumber = 2, - }; - // string type = 1 [json_name = "type"]; - void clear_type() ; - const std::string& type() const; - template - void set_type(Arg_&& arg, Args_... args); - std::string* mutable_type(); - PROTOBUF_NODISCARD std::string* release_type(); - void set_allocated_type(std::string* value); - - 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 child_type = 2 [json_name = "childType"]; - void clear_child_type() ; - const std::string& child_type() const; - template - void set_child_type(Arg_&& arg, Args_... args); - std::string* mutable_child_type(); - PROTOBUF_NODISCARD std::string* release_child_type(); - void set_allocated_child_type(std::string* value); - - private: - const std::string& _internal_child_type() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_child_type( - const std::string& value); - std::string* _internal_mutable_child_type(); - - public: - // @@protoc_insertion_point(class_scope:google.api.ResourceReference) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 51, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr type_; - ::google::protobuf::internal::ArenaStringPtr child_type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_google_2fapi_2fresource_2eproto; -};// ------------------------------------------------------------------- - class ResourceDescriptor final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.ResourceDescriptor) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.ResourceDescriptor) */ { public: inline ResourceDescriptor() : ResourceDescriptor(nullptr) {} ~ResourceDescriptor() override; - template - explicit PROTOBUF_CONSTEXPR ResourceDescriptor(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR ResourceDescriptor(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ResourceDescriptor(const ResourceDescriptor& from) - : ResourceDescriptor(nullptr, from) {} + ResourceDescriptor(const ResourceDescriptor& from); ResourceDescriptor(ResourceDescriptor&& from) noexcept : ResourceDescriptor() { *this = ::std::move(from); @@ -365,9 +135,9 @@ class ResourceDescriptor final : } inline ResourceDescriptor& operator=(ResourceDescriptor&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -377,22 +147,13 @@ class ResourceDescriptor final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const ResourceDescriptor& default_instance() { @@ -411,106 +172,125 @@ class ResourceDescriptor final : inline void Swap(ResourceDescriptor* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(ResourceDescriptor* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ResourceDescriptor* New(::google::protobuf::Arena* arena = nullptr) const final { + ResourceDescriptor* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const ResourceDescriptor& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ResourceDescriptor& from) { - ResourceDescriptor::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ResourceDescriptor& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(ResourceDescriptor* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "google.api.ResourceDescriptor"; } protected: - explicit ResourceDescriptor(::google::protobuf::Arena* arena); - ResourceDescriptor(::google::protobuf::Arena* arena, const ResourceDescriptor& from); + explicit ResourceDescriptor(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- - using History = ResourceDescriptor_History; - static constexpr History HISTORY_UNSPECIFIED = ResourceDescriptor_History_HISTORY_UNSPECIFIED; - static constexpr History ORIGINALLY_SINGLE_PATTERN = ResourceDescriptor_History_ORIGINALLY_SINGLE_PATTERN; - static constexpr History FUTURE_MULTI_PATTERN = ResourceDescriptor_History_FUTURE_MULTI_PATTERN; + typedef ResourceDescriptor_History History; + static constexpr History HISTORY_UNSPECIFIED = + ResourceDescriptor_History_HISTORY_UNSPECIFIED; + static constexpr History ORIGINALLY_SINGLE_PATTERN = + ResourceDescriptor_History_ORIGINALLY_SINGLE_PATTERN; + static constexpr History FUTURE_MULTI_PATTERN = + ResourceDescriptor_History_FUTURE_MULTI_PATTERN; static inline bool History_IsValid(int value) { return ResourceDescriptor_History_IsValid(value); } - static constexpr History History_MIN = ResourceDescriptor_History_History_MIN; - static constexpr History History_MAX = ResourceDescriptor_History_History_MAX; - static constexpr int History_ARRAYSIZE = ResourceDescriptor_History_History_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* History_descriptor() { + static constexpr History History_MIN = + ResourceDescriptor_History_History_MIN; + static constexpr History History_MAX = + ResourceDescriptor_History_History_MAX; + static constexpr int History_ARRAYSIZE = + ResourceDescriptor_History_History_ARRAYSIZE; + static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* + History_descriptor() { return ResourceDescriptor_History_descriptor(); } - template - static inline const std::string& History_Name(T value) { - return ResourceDescriptor_History_Name(value); + template + static inline const std::string& History_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function History_Name."); + return ResourceDescriptor_History_Name(enum_t_value); } - static inline bool History_Parse(absl::string_view name, History* value) { + static inline bool History_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, + History* value) { return ResourceDescriptor_History_Parse(name, value); } - using Style = ResourceDescriptor_Style; - static constexpr Style STYLE_UNSPECIFIED = ResourceDescriptor_Style_STYLE_UNSPECIFIED; - static constexpr Style DECLARATIVE_FRIENDLY = ResourceDescriptor_Style_DECLARATIVE_FRIENDLY; + typedef ResourceDescriptor_Style Style; + static constexpr Style STYLE_UNSPECIFIED = + ResourceDescriptor_Style_STYLE_UNSPECIFIED; + static constexpr Style DECLARATIVE_FRIENDLY = + ResourceDescriptor_Style_DECLARATIVE_FRIENDLY; static inline bool Style_IsValid(int value) { return ResourceDescriptor_Style_IsValid(value); } - static constexpr Style Style_MIN = ResourceDescriptor_Style_Style_MIN; - static constexpr Style Style_MAX = ResourceDescriptor_Style_Style_MAX; - static constexpr int Style_ARRAYSIZE = ResourceDescriptor_Style_Style_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* Style_descriptor() { + static constexpr Style Style_MIN = + ResourceDescriptor_Style_Style_MIN; + static constexpr Style Style_MAX = + ResourceDescriptor_Style_Style_MAX; + static constexpr int Style_ARRAYSIZE = + ResourceDescriptor_Style_Style_ARRAYSIZE; + static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* + Style_descriptor() { return ResourceDescriptor_Style_descriptor(); } - template - static inline const std::string& Style_Name(T value) { - return ResourceDescriptor_Style_Name(value); + template + static inline const std::string& Style_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function Style_Name."); + return ResourceDescriptor_Style_Name(enum_t_value); } - static inline bool Style_Parse(absl::string_view name, Style* value) { + static inline bool Style_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, + Style* value) { return ResourceDescriptor_Style_Parse(name, value); } @@ -529,568 +309,650 @@ class ResourceDescriptor final : int pattern_size() const; private: int _internal_pattern_size() const; - public: - void clear_pattern() ; + void clear_pattern(); const std::string& pattern(int index) const; std::string* mutable_pattern(int index); void set_pattern(int index, const std::string& value); void set_pattern(int index, std::string&& value); void set_pattern(int index, const char* value); - void set_pattern(int index, const char* value, std::size_t size); - void set_pattern(int index, absl::string_view value); + void set_pattern(int index, const char* value, size_t size); std::string* add_pattern(); void add_pattern(const std::string& value); void add_pattern(std::string&& value); void add_pattern(const char* value); - void add_pattern(const char* value, std::size_t size); - void add_pattern(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& pattern() const; - ::google::protobuf::RepeatedPtrField* mutable_pattern(); - + void add_pattern(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& pattern() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_pattern(); private: - const ::google::protobuf::RepeatedPtrField& _internal_pattern() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_pattern(); - + const std::string& _internal_pattern(int index) const; + std::string* _internal_add_pattern(); public: + // repeated .google.api.ResourceDescriptor.Style style = 10 [json_name = "style"]; int style_size() const; private: int _internal_style_size() const; - public: - void clear_style() ; + void clear_style(); + private: + ::google::api::ResourceDescriptor_Style _internal_style(int index) const; + void _internal_add_style(::google::api::ResourceDescriptor_Style value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField* _internal_mutable_style(); public: ::google::api::ResourceDescriptor_Style style(int index) const; void set_style(int index, ::google::api::ResourceDescriptor_Style value); void add_style(::google::api::ResourceDescriptor_Style value); - const ::google::protobuf::RepeatedField& style() const; - ::google::protobuf::RepeatedField* mutable_style(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField& style() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField* mutable_style(); - private: - const ::google::protobuf::RepeatedField& _internal_style() const; - ::google::protobuf::RepeatedField* _internal_mutable_style(); - - public: // string type = 1 [json_name = "type"]; - void clear_type() ; + void clear_type(); const std::string& type() const; - template - void set_type(Arg_&& arg, Args_... args); + template + void set_type(ArgT0&& arg0, ArgT... args); std::string* mutable_type(); PROTOBUF_NODISCARD std::string* release_type(); - void set_allocated_type(std::string* value); - + 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_type(const std::string& value); std::string* _internal_mutable_type(); - public: + // string name_field = 3 [json_name = "nameField"]; - void clear_name_field() ; + void clear_name_field(); const std::string& name_field() const; - template - void set_name_field(Arg_&& arg, Args_... args); + template + void set_name_field(ArgT0&& arg0, ArgT... args); std::string* mutable_name_field(); PROTOBUF_NODISCARD std::string* release_name_field(); - void set_allocated_name_field(std::string* value); - + void set_allocated_name_field(std::string* name_field); private: const std::string& _internal_name_field() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name_field( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name_field(const std::string& value); std::string* _internal_mutable_name_field(); - public: + // string plural = 5 [json_name = "plural"]; - void clear_plural() ; + void clear_plural(); const std::string& plural() const; - template - void set_plural(Arg_&& arg, Args_... args); + template + void set_plural(ArgT0&& arg0, ArgT... args); std::string* mutable_plural(); PROTOBUF_NODISCARD std::string* release_plural(); - void set_allocated_plural(std::string* value); - + void set_allocated_plural(std::string* plural); private: const std::string& _internal_plural() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_plural( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_plural(const std::string& value); std::string* _internal_mutable_plural(); - public: + // string singular = 6 [json_name = "singular"]; - void clear_singular() ; + void clear_singular(); const std::string& singular() const; - template - void set_singular(Arg_&& arg, Args_... args); + template + void set_singular(ArgT0&& arg0, ArgT... args); std::string* mutable_singular(); PROTOBUF_NODISCARD std::string* release_singular(); - void set_allocated_singular(std::string* value); - + void set_allocated_singular(std::string* singular); private: const std::string& _internal_singular() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_singular( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_singular(const std::string& value); std::string* _internal_mutable_singular(); - public: + // .google.api.ResourceDescriptor.History history = 4 [json_name = "history"]; - void clear_history() ; + void clear_history(); ::google::api::ResourceDescriptor_History history() const; void set_history(::google::api::ResourceDescriptor_History value); - private: ::google::api::ResourceDescriptor_History _internal_history() const; void _internal_set_history(::google::api::ResourceDescriptor_History value); - public: + // @@protoc_insertion_point(class_scope:google.api.ResourceDescriptor) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 7, 0, - 73, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField pattern_; - ::google::protobuf::RepeatedField style_; - mutable ::google::protobuf::internal::CachedSize _style_cached_byte_size_; - ::google::protobuf::internal::ArenaStringPtr type_; - ::google::protobuf::internal::ArenaStringPtr name_field_; - ::google::protobuf::internal::ArenaStringPtr plural_; - ::google::protobuf::internal::ArenaStringPtr singular_; - int history_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField pattern_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField style_; + mutable std::atomic _style_cached_byte_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_field_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr plural_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr singular_; + int history_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fresource_2eproto; }; +// ------------------------------------------------------------------- -// =================================================================== +class ResourceReference final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.ResourceReference) */ { + public: + inline ResourceReference() : ResourceReference(nullptr) {} + ~ResourceReference() override; + explicit PROTOBUF_CONSTEXPR ResourceReference(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ResourceReference(const ResourceReference& from); + ResourceReference(ResourceReference&& from) noexcept + : ResourceReference() { + *this = ::std::move(from); + } + + inline ResourceReference& operator=(const ResourceReference& from) { + CopyFrom(from); + return *this; + } + inline ResourceReference& operator=(ResourceReference&& 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 ResourceReference& default_instance() { + return *internal_default_instance(); + } + static inline const ResourceReference* internal_default_instance() { + return reinterpret_cast( + &_ResourceReference_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(ResourceReference& a, ResourceReference& b) { + a.Swap(&b); + } + inline void Swap(ResourceReference* 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(ResourceReference* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + // implements Message ---------------------------------------------- + ResourceReference* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ResourceReference& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ResourceReference& 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(ResourceReference* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.ResourceReference"; + } + protected: + explicit ResourceReference(::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 { + kTypeFieldNumber = 1, + kChildTypeFieldNumber = 2, + }; + // string type = 1 [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 child_type = 2 [json_name = "childType"]; + void clear_child_type(); + const std::string& child_type() const; + template + void set_child_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_child_type(); + PROTOBUF_NODISCARD std::string* release_child_type(); + void set_allocated_child_type(std::string* child_type); + private: + const std::string& _internal_child_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_child_type(const std::string& value); + std::string* _internal_mutable_child_type(); + public: + + // @@protoc_insertion_point(class_scope:google.api.ResourceReference) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr child_type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_google_2fapi_2fresource_2eproto; +}; +// =================================================================== static const int kResourceReferenceFieldNumber = 1055; -extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::FieldOptions, - ::google::protobuf::internal::MessageTypeTraits< ::google::api::ResourceReference >, 11, false > +extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::FieldOptions, + ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::google::api::ResourceReference >, 11, false > resource_reference; static const int kResourceDefinitionFieldNumber = 1053; -extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::FileOptions, - ::google::protobuf::internal::RepeatedMessageTypeTraits< ::google::api::ResourceDescriptor >, 11, false > +extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::FileOptions, + ::PROTOBUF_NAMESPACE_ID::internal::RepeatedMessageTypeTraits< ::google::api::ResourceDescriptor >, 11, false > resource_definition; static const int kResourceFieldNumber = 1053; -extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions, - ::google::protobuf::internal::MessageTypeTraits< ::google::api::ResourceDescriptor >, 11, false > +extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::MessageOptions, + ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::google::api::ResourceDescriptor >, 11, false > resource; // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ -// ------------------------------------------------------------------- - // ResourceDescriptor // string type = 1 [json_name = "type"]; inline void ResourceDescriptor::clear_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_.ClearToEmpty(); + type_.ClearToEmpty(); } -inline const std::string& ResourceDescriptor::type() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ResourceDescriptor::type() const { // @@protoc_insertion_point(field_get:google.api.ResourceDescriptor.type) return _internal_type(); } -template -inline PROTOBUF_ALWAYS_INLINE void ResourceDescriptor::set_type(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.type_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ResourceDescriptor::set_type(ArgT0&& arg0, ArgT... args) { + + type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.ResourceDescriptor.type) } -inline std::string* ResourceDescriptor::mutable_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ResourceDescriptor::mutable_type() { std::string* _s = _internal_mutable_type(); // @@protoc_insertion_point(field_mutable:google.api.ResourceDescriptor.type) return _s; } inline const std::string& ResourceDescriptor::_internal_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.type_.Get(); + return type_.Get(); } inline void ResourceDescriptor::_internal_set_type(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.type_.Set(value, GetArena()); + + type_.Set(value, GetArenaForAllocation()); } inline std::string* ResourceDescriptor::_internal_mutable_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.type_.Mutable( GetArena()); + + return type_.Mutable(GetArenaForAllocation()); } inline std::string* ResourceDescriptor::release_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.ResourceDescriptor.type) - return _impl_.type_.Release(); -} -inline void ResourceDescriptor::set_allocated_type(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.type_.IsDefault()) { - _impl_.type_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return type_.Release(); +} +inline void ResourceDescriptor::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:google.api.ResourceDescriptor.type) } // repeated string pattern = 2 [json_name = "pattern"]; inline int ResourceDescriptor::_internal_pattern_size() const { - return _internal_pattern().size(); + return pattern_.size(); } inline int ResourceDescriptor::pattern_size() const { return _internal_pattern_size(); } inline void ResourceDescriptor::clear_pattern() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.pattern_.Clear(); + pattern_.Clear(); } -inline std::string* ResourceDescriptor::add_pattern() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_pattern()->Add(); +inline std::string* ResourceDescriptor::add_pattern() { + std::string* _s = _internal_add_pattern(); // @@protoc_insertion_point(field_add_mutable:google.api.ResourceDescriptor.pattern) return _s; } -inline const std::string& ResourceDescriptor::pattern(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ResourceDescriptor::_internal_pattern(int index) const { + return pattern_.Get(index); +} +inline const std::string& ResourceDescriptor::pattern(int index) const { // @@protoc_insertion_point(field_get:google.api.ResourceDescriptor.pattern) - return _internal_pattern().Get(index); + return _internal_pattern(index); } -inline std::string* ResourceDescriptor::mutable_pattern(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ResourceDescriptor::mutable_pattern(int index) { // @@protoc_insertion_point(field_mutable:google.api.ResourceDescriptor.pattern) - return _internal_mutable_pattern()->Mutable(index); + return pattern_.Mutable(index); } inline void ResourceDescriptor::set_pattern(int index, const std::string& value) { - _internal_mutable_pattern()->Mutable(index)->assign(value); + pattern_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set:google.api.ResourceDescriptor.pattern) } inline void ResourceDescriptor::set_pattern(int index, std::string&& value) { - _internal_mutable_pattern()->Mutable(index)->assign(std::move(value)); + pattern_.Mutable(index)->assign(std::move(value)); // @@protoc_insertion_point(field_set:google.api.ResourceDescriptor.pattern) } inline void ResourceDescriptor::set_pattern(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_pattern()->Mutable(index)->assign(value); + GOOGLE_DCHECK(value != nullptr); + pattern_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:google.api.ResourceDescriptor.pattern) } -inline void ResourceDescriptor::set_pattern(int index, const char* value, - std::size_t size) { - _internal_mutable_pattern()->Mutable(index)->assign( - reinterpret_cast(value), size); +inline void ResourceDescriptor::set_pattern(int index, const char* value, size_t size) { + pattern_.Mutable(index)->assign( + reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:google.api.ResourceDescriptor.pattern) } -inline void ResourceDescriptor::set_pattern(int index, absl::string_view value) { - _internal_mutable_pattern()->Mutable(index)->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_set_string_piece:google.api.ResourceDescriptor.pattern) +inline std::string* ResourceDescriptor::_internal_add_pattern() { + return pattern_.Add(); } inline void ResourceDescriptor::add_pattern(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_pattern()->Add()->assign(value); + pattern_.Add()->assign(value); // @@protoc_insertion_point(field_add:google.api.ResourceDescriptor.pattern) } inline void ResourceDescriptor::add_pattern(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_pattern()->Add(std::move(value)); + pattern_.Add(std::move(value)); // @@protoc_insertion_point(field_add:google.api.ResourceDescriptor.pattern) } inline void ResourceDescriptor::add_pattern(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_pattern()->Add()->assign(value); + GOOGLE_DCHECK(value != nullptr); + pattern_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:google.api.ResourceDescriptor.pattern) } -inline void ResourceDescriptor::add_pattern(const char* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_pattern()->Add()->assign( - reinterpret_cast(value), size); +inline void ResourceDescriptor::add_pattern(const char* value, size_t size) { + pattern_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:google.api.ResourceDescriptor.pattern) } -inline void ResourceDescriptor::add_pattern(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_pattern()->Add()->assign(value.data(), value.size()); - // @@protoc_insertion_point(field_add_string_piece:google.api.ResourceDescriptor.pattern) -} -inline const ::google::protobuf::RepeatedPtrField& -ResourceDescriptor::pattern() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +ResourceDescriptor::pattern() const { // @@protoc_insertion_point(field_list:google.api.ResourceDescriptor.pattern) - return _internal_pattern(); + return pattern_; } -inline ::google::protobuf::RepeatedPtrField* -ResourceDescriptor::mutable_pattern() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +ResourceDescriptor::mutable_pattern() { // @@protoc_insertion_point(field_mutable_list:google.api.ResourceDescriptor.pattern) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_pattern(); -} -inline const ::google::protobuf::RepeatedPtrField& -ResourceDescriptor::_internal_pattern() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.pattern_; -} -inline ::google::protobuf::RepeatedPtrField* -ResourceDescriptor::_internal_mutable_pattern() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.pattern_; + return &pattern_; } // string name_field = 3 [json_name = "nameField"]; inline void ResourceDescriptor::clear_name_field() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_field_.ClearToEmpty(); + name_field_.ClearToEmpty(); } -inline const std::string& ResourceDescriptor::name_field() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ResourceDescriptor::name_field() const { // @@protoc_insertion_point(field_get:google.api.ResourceDescriptor.name_field) return _internal_name_field(); } -template -inline PROTOBUF_ALWAYS_INLINE void ResourceDescriptor::set_name_field(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_field_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ResourceDescriptor::set_name_field(ArgT0&& arg0, ArgT... args) { + + name_field_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.ResourceDescriptor.name_field) } -inline std::string* ResourceDescriptor::mutable_name_field() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ResourceDescriptor::mutable_name_field() { std::string* _s = _internal_mutable_name_field(); // @@protoc_insertion_point(field_mutable:google.api.ResourceDescriptor.name_field) return _s; } inline const std::string& ResourceDescriptor::_internal_name_field() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_field_.Get(); + return name_field_.Get(); } inline void ResourceDescriptor::_internal_set_name_field(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_field_.Set(value, GetArena()); + + name_field_.Set(value, GetArenaForAllocation()); } inline std::string* ResourceDescriptor::_internal_mutable_name_field() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_field_.Mutable( GetArena()); + + return name_field_.Mutable(GetArenaForAllocation()); } inline std::string* ResourceDescriptor::release_name_field() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.ResourceDescriptor.name_field) - return _impl_.name_field_.Release(); -} -inline void ResourceDescriptor::set_allocated_name_field(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_field_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_field_.IsDefault()) { - _impl_.name_field_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_field_.Release(); +} +inline void ResourceDescriptor::set_allocated_name_field(std::string* name_field) { + if (name_field != nullptr) { + + } else { + + } + name_field_.SetAllocated(name_field, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (name_field_.IsDefault()) { + name_field_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.api.ResourceDescriptor.name_field) } // .google.api.ResourceDescriptor.History history = 4 [json_name = "history"]; inline void ResourceDescriptor::clear_history() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.history_ = 0; + history_ = 0; +} +inline ::google::api::ResourceDescriptor_History ResourceDescriptor::_internal_history() const { + return static_cast< ::google::api::ResourceDescriptor_History >(history_); } inline ::google::api::ResourceDescriptor_History ResourceDescriptor::history() const { // @@protoc_insertion_point(field_get:google.api.ResourceDescriptor.history) return _internal_history(); } +inline void ResourceDescriptor::_internal_set_history(::google::api::ResourceDescriptor_History value) { + + history_ = value; +} inline void ResourceDescriptor::set_history(::google::api::ResourceDescriptor_History value) { _internal_set_history(value); // @@protoc_insertion_point(field_set:google.api.ResourceDescriptor.history) } -inline ::google::api::ResourceDescriptor_History ResourceDescriptor::_internal_history() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::google::api::ResourceDescriptor_History>(_impl_.history_); -} -inline void ResourceDescriptor::_internal_set_history(::google::api::ResourceDescriptor_History value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.history_ = value; -} // string plural = 5 [json_name = "plural"]; inline void ResourceDescriptor::clear_plural() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.plural_.ClearToEmpty(); + plural_.ClearToEmpty(); } -inline const std::string& ResourceDescriptor::plural() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ResourceDescriptor::plural() const { // @@protoc_insertion_point(field_get:google.api.ResourceDescriptor.plural) return _internal_plural(); } -template -inline PROTOBUF_ALWAYS_INLINE void ResourceDescriptor::set_plural(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.plural_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ResourceDescriptor::set_plural(ArgT0&& arg0, ArgT... args) { + + plural_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.ResourceDescriptor.plural) } -inline std::string* ResourceDescriptor::mutable_plural() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ResourceDescriptor::mutable_plural() { std::string* _s = _internal_mutable_plural(); // @@protoc_insertion_point(field_mutable:google.api.ResourceDescriptor.plural) return _s; } inline const std::string& ResourceDescriptor::_internal_plural() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.plural_.Get(); + return plural_.Get(); } inline void ResourceDescriptor::_internal_set_plural(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.plural_.Set(value, GetArena()); + + plural_.Set(value, GetArenaForAllocation()); } inline std::string* ResourceDescriptor::_internal_mutable_plural() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.plural_.Mutable( GetArena()); + + return plural_.Mutable(GetArenaForAllocation()); } inline std::string* ResourceDescriptor::release_plural() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.ResourceDescriptor.plural) - return _impl_.plural_.Release(); -} -inline void ResourceDescriptor::set_allocated_plural(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.plural_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.plural_.IsDefault()) { - _impl_.plural_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return plural_.Release(); +} +inline void ResourceDescriptor::set_allocated_plural(std::string* plural) { + if (plural != nullptr) { + + } else { + + } + plural_.SetAllocated(plural, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (plural_.IsDefault()) { + plural_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.api.ResourceDescriptor.plural) } // string singular = 6 [json_name = "singular"]; inline void ResourceDescriptor::clear_singular() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.singular_.ClearToEmpty(); + singular_.ClearToEmpty(); } -inline const std::string& ResourceDescriptor::singular() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ResourceDescriptor::singular() const { // @@protoc_insertion_point(field_get:google.api.ResourceDescriptor.singular) return _internal_singular(); } -template -inline PROTOBUF_ALWAYS_INLINE void ResourceDescriptor::set_singular(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.singular_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ResourceDescriptor::set_singular(ArgT0&& arg0, ArgT... args) { + + singular_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.ResourceDescriptor.singular) } -inline std::string* ResourceDescriptor::mutable_singular() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ResourceDescriptor::mutable_singular() { std::string* _s = _internal_mutable_singular(); // @@protoc_insertion_point(field_mutable:google.api.ResourceDescriptor.singular) return _s; } inline const std::string& ResourceDescriptor::_internal_singular() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.singular_.Get(); + return singular_.Get(); } inline void ResourceDescriptor::_internal_set_singular(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.singular_.Set(value, GetArena()); + + singular_.Set(value, GetArenaForAllocation()); } inline std::string* ResourceDescriptor::_internal_mutable_singular() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.singular_.Mutable( GetArena()); + + return singular_.Mutable(GetArenaForAllocation()); } inline std::string* ResourceDescriptor::release_singular() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.ResourceDescriptor.singular) - return _impl_.singular_.Release(); -} -inline void ResourceDescriptor::set_allocated_singular(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.singular_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.singular_.IsDefault()) { - _impl_.singular_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return singular_.Release(); +} +inline void ResourceDescriptor::set_allocated_singular(std::string* singular) { + if (singular != nullptr) { + + } else { + + } + singular_.SetAllocated(singular, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (singular_.IsDefault()) { + singular_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.api.ResourceDescriptor.singular) } // repeated .google.api.ResourceDescriptor.Style style = 10 [json_name = "style"]; inline int ResourceDescriptor::_internal_style_size() const { - return _internal_style().size(); + return style_.size(); } inline int ResourceDescriptor::style_size() const { return _internal_style_size(); } inline void ResourceDescriptor::clear_style() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.style_.Clear(); + style_.Clear(); +} +inline ::google::api::ResourceDescriptor_Style ResourceDescriptor::_internal_style(int index) const { + return static_cast< ::google::api::ResourceDescriptor_Style >(style_.Get(index)); } inline ::google::api::ResourceDescriptor_Style ResourceDescriptor::style(int index) const { // @@protoc_insertion_point(field_get:google.api.ResourceDescriptor.style) - return static_cast<::google::api::ResourceDescriptor_Style>(_internal_style().Get(index)); + return _internal_style(index); } inline void ResourceDescriptor::set_style(int index, ::google::api::ResourceDescriptor_Style value) { - _internal_mutable_style()->Set(index, value); + style_.Set(index, value); // @@protoc_insertion_point(field_set:google.api.ResourceDescriptor.style) } +inline void ResourceDescriptor::_internal_add_style(::google::api::ResourceDescriptor_Style value) { + style_.Add(value); +} inline void ResourceDescriptor::add_style(::google::api::ResourceDescriptor_Style value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_style()->Add(value); + _internal_add_style(value); // @@protoc_insertion_point(field_add:google.api.ResourceDescriptor.style) } -inline const ::google::protobuf::RepeatedField& ResourceDescriptor::style() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField& +ResourceDescriptor::style() const { // @@protoc_insertion_point(field_list:google.api.ResourceDescriptor.style) - return _internal_style(); + return style_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* +ResourceDescriptor::_internal_mutable_style() { + return &style_; } -inline ::google::protobuf::RepeatedField* ResourceDescriptor::mutable_style() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* +ResourceDescriptor::mutable_style() { // @@protoc_insertion_point(field_mutable_list:google.api.ResourceDescriptor.style) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _internal_mutable_style(); } -inline const ::google::protobuf::RepeatedField& ResourceDescriptor::_internal_style() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.style_; -} -inline ::google::protobuf::RepeatedField* ResourceDescriptor::_internal_mutable_style() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.style_; -} // ------------------------------------------------------------------- @@ -1098,140 +960,131 @@ inline ::google::protobuf::RepeatedField* ResourceDescriptor::_internal_mut // string type = 1 [json_name = "type"]; inline void ResourceReference::clear_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_.ClearToEmpty(); + type_.ClearToEmpty(); } -inline const std::string& ResourceReference::type() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ResourceReference::type() const { // @@protoc_insertion_point(field_get:google.api.ResourceReference.type) return _internal_type(); } -template -inline PROTOBUF_ALWAYS_INLINE void ResourceReference::set_type(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.type_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ResourceReference::set_type(ArgT0&& arg0, ArgT... args) { + + type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.ResourceReference.type) } -inline std::string* ResourceReference::mutable_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ResourceReference::mutable_type() { std::string* _s = _internal_mutable_type(); // @@protoc_insertion_point(field_mutable:google.api.ResourceReference.type) return _s; } inline const std::string& ResourceReference::_internal_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.type_.Get(); + return type_.Get(); } inline void ResourceReference::_internal_set_type(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.type_.Set(value, GetArena()); + + type_.Set(value, GetArenaForAllocation()); } inline std::string* ResourceReference::_internal_mutable_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.type_.Mutable( GetArena()); + + return type_.Mutable(GetArenaForAllocation()); } inline std::string* ResourceReference::release_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.ResourceReference.type) - return _impl_.type_.Release(); -} -inline void ResourceReference::set_allocated_type(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.type_.IsDefault()) { - _impl_.type_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return type_.Release(); +} +inline void ResourceReference::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:google.api.ResourceReference.type) } // string child_type = 2 [json_name = "childType"]; inline void ResourceReference::clear_child_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.child_type_.ClearToEmpty(); + child_type_.ClearToEmpty(); } -inline const std::string& ResourceReference::child_type() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ResourceReference::child_type() const { // @@protoc_insertion_point(field_get:google.api.ResourceReference.child_type) return _internal_child_type(); } -template -inline PROTOBUF_ALWAYS_INLINE void ResourceReference::set_child_type(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.child_type_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ResourceReference::set_child_type(ArgT0&& arg0, ArgT... args) { + + child_type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.ResourceReference.child_type) } -inline std::string* ResourceReference::mutable_child_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ResourceReference::mutable_child_type() { std::string* _s = _internal_mutable_child_type(); // @@protoc_insertion_point(field_mutable:google.api.ResourceReference.child_type) return _s; } inline const std::string& ResourceReference::_internal_child_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.child_type_.Get(); + return child_type_.Get(); } inline void ResourceReference::_internal_set_child_type(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.child_type_.Set(value, GetArena()); + + child_type_.Set(value, GetArenaForAllocation()); } inline std::string* ResourceReference::_internal_mutable_child_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.child_type_.Mutable( GetArena()); + + return child_type_.Mutable(GetArenaForAllocation()); } inline std::string* ResourceReference::release_child_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.ResourceReference.child_type) - return _impl_.child_type_.Release(); -} -inline void ResourceReference::set_allocated_child_type(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.child_type_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.child_type_.IsDefault()) { - _impl_.child_type_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return child_type_.Release(); +} +inline void ResourceReference::set_allocated_child_type(std::string* child_type) { + if (child_type != nullptr) { + + } else { + + } + child_type_.SetAllocated(child_type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (child_type_.IsDefault()) { + child_type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.api.ResourceReference.child_type) } #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) + } // namespace api } // namespace google +PROTOBUF_NAMESPACE_OPEN -namespace google { -namespace protobuf { - -template <> -struct is_proto_enum<::google::api::ResourceDescriptor_History> : std::true_type {}; +template <> struct is_proto_enum< ::google::api::ResourceDescriptor_History> : ::std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor<::google::api::ResourceDescriptor_History>() { +inline const EnumDescriptor* GetEnumDescriptor< ::google::api::ResourceDescriptor_History>() { return ::google::api::ResourceDescriptor_History_descriptor(); } +template <> struct is_proto_enum< ::google::api::ResourceDescriptor_Style> : ::std::true_type {}; template <> -struct is_proto_enum<::google::api::ResourceDescriptor_Style> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::google::api::ResourceDescriptor_Style>() { +inline const EnumDescriptor* GetEnumDescriptor< ::google::api::ResourceDescriptor_Style>() { return ::google::api::ResourceDescriptor_Style_descriptor(); } -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fresource_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fresource_2eproto diff --git a/src/viam/api/google/api/visibility.grpc.pb.cc b/src/viam/api/google/api/visibility.grpc.pb.cc index 7443f4890..7a3572417 100644 --- a/src/viam/api/google/api/visibility.grpc.pb.cc +++ b/src/viam/api/google/api/visibility.grpc.pb.cc @@ -6,19 +6,19 @@ #include "google/api/visibility.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace google { namespace api { diff --git a/src/viam/api/google/api/visibility.grpc.pb.h b/src/viam/api/google/api/visibility.grpc.pb.h index c962808d2..8a2472c36 100644 --- a/src/viam/api/google/api/visibility.grpc.pb.h +++ b/src/viam/api/google/api/visibility.grpc.pb.h @@ -22,23 +22,24 @@ #include "google/api/visibility.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace google { namespace api { diff --git a/src/viam/api/google/api/visibility.pb.cc b/src/viam/api/google/api/visibility.pb.cc index e025f7da2..66abe8cb5 100644 --- a/src/viam/api/google/api/visibility.pb.cc +++ b/src/viam/api/google/api/visibility.pb.cc @@ -4,334 +4,283 @@ #include "google/api/visibility.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; -namespace google { -namespace api { -inline constexpr VisibilityRule::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : selector_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - restriction_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR VisibilityRule::VisibilityRule(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct VisibilityRuleDefaultTypeInternal { - PROTOBUF_CONSTEXPR VisibilityRuleDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~VisibilityRuleDefaultTypeInternal() {} - union { - VisibilityRule _instance; - }; -}; +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 VisibilityRuleDefaultTypeInternal _VisibilityRule_default_instance_; - -inline constexpr Visibility::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : rules_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR Visibility::Visibility(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +namespace google { +namespace api { +PROTOBUF_CONSTEXPR Visibility::Visibility( + ::_pbi::ConstantInitialized) + : rules_(){} struct VisibilityDefaultTypeInternal { - PROTOBUF_CONSTEXPR VisibilityDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR VisibilityDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~VisibilityDefaultTypeInternal() {} union { Visibility _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 VisibilityDefaultTypeInternal _Visibility_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 VisibilityDefaultTypeInternal _Visibility_default_instance_; +PROTOBUF_CONSTEXPR VisibilityRule::VisibilityRule( + ::_pbi::ConstantInitialized) + : selector_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , restriction_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct VisibilityRuleDefaultTypeInternal { + PROTOBUF_CONSTEXPR VisibilityRuleDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~VisibilityRuleDefaultTypeInternal() {} + union { + VisibilityRule _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 VisibilityRuleDefaultTypeInternal _VisibilityRule_default_instance_; } // namespace api } // namespace google static ::_pb::Metadata file_level_metadata_google_2fapi_2fvisibility_2eproto[2]; -static constexpr const ::_pb::EnumDescriptor** - file_level_enum_descriptors_google_2fapi_2fvisibility_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_google_2fapi_2fvisibility_2eproto = nullptr; -const ::uint32_t TableStruct_google_2fapi_2fvisibility_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::Visibility, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::Visibility, _impl_.rules_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::VisibilityRule, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::VisibilityRule, _impl_.selector_), - PROTOBUF_FIELD_OFFSET(::google::api::VisibilityRule, _impl_.restriction_), +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_google_2fapi_2fvisibility_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_google_2fapi_2fvisibility_2eproto = nullptr; + +const uint32_t TableStruct_google_2fapi_2fvisibility_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::Visibility, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::Visibility, rules_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::VisibilityRule, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::api::VisibilityRule, selector_), + PROTOBUF_FIELD_OFFSET(::google::api::VisibilityRule, restriction_), }; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, -1, -1, sizeof(::google::api::Visibility)}, - {9, -1, -1, sizeof(::google::api::VisibilityRule)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::google::api::Visibility)}, + { 7, -1, -1, sizeof(::google::api::VisibilityRule)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::google::api::_Visibility_default_instance_._instance, - &::google::api::_VisibilityRule_default_instance_._instance, -}; -const char descriptor_table_protodef_google_2fapi_2fvisibility_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n\033google/api/visibility.proto\022\ngoogle.ap" - "i\032 google/protobuf/descriptor.proto\">\n\nV" - "isibility\0220\n\005rules\030\001 \003(\0132\032.google.api.Vi" - "sibilityRuleR\005rules\"N\n\016VisibilityRule\022\032\n" - "\010selector\030\001 \001(\tR\010selector\022 \n\013restriction" - "\030\002 \001(\tR\013restriction:d\n\017enum_visibility\022\034" - ".google.protobuf.EnumOptions\030\257\312\274\" \001(\0132\032." - "google.api.VisibilityRuleR\016enumVisibilit" - "y:k\n\020value_visibility\022!.google.protobuf." - "EnumValueOptions\030\257\312\274\" \001(\0132\032.google.api.V" - "isibilityRuleR\017valueVisibility:g\n\020field_" - "visibility\022\035.google.protobuf.FieldOption" - "s\030\257\312\274\" \001(\0132\032.google.api.VisibilityRuleR\017" - "fieldVisibility:m\n\022message_visibility\022\037." - "google.protobuf.MessageOptions\030\257\312\274\" \001(\0132" - "\032.google.api.VisibilityRuleR\021messageVisi" - "bility:j\n\021method_visibility\022\036.google.pro" - "tobuf.MethodOptions\030\257\312\274\" \001(\0132\032.google.ap" - "i.VisibilityRuleR\020methodVisibility:e\n\016ap" - "i_visibility\022\037.google.protobuf.ServiceOp" - "tions\030\257\312\274\" \001(\0132\032.google.api.VisibilityRu" - "leR\rapiVisibilityB\256\001\n\016com.google.apiB\017Vi" - "sibilityProtoP\001Z\?google.golang.org/genpr" - "oto/googleapis/api/visibility;visibility" - "\370\001\001\242\002\003GAX\252\002\nGoogle.Api\312\002\nGoogle\\Api\342\002\026Go" - "ogle\\Api\\GPBMetadata\352\002\013Google::Apib\006prot" - "o3" + &::google::api::_Visibility_default_instance_._instance, + &::google::api::_VisibilityRule_default_instance_._instance, }; -static const ::_pbi::DescriptorTable* const descriptor_table_google_2fapi_2fvisibility_2eproto_deps[1] = - { - &::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto, + +const char descriptor_table_protodef_google_2fapi_2fvisibility_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\033google/api/visibility.proto\022\ngoogle.ap" + "i\032 google/protobuf/descriptor.proto\">\n\nV" + "isibility\0220\n\005rules\030\001 \003(\0132\032.google.api.Vi" + "sibilityRuleR\005rules\"N\n\016VisibilityRule\022\032\n" + "\010selector\030\001 \001(\tR\010selector\022 \n\013restriction" + "\030\002 \001(\tR\013restriction:d\n\017enum_visibility\022\034" + ".google.protobuf.EnumOptions\030\257\312\274\" \001(\0132\032." + "google.api.VisibilityRuleR\016enumVisibilit" + "y:k\n\020value_visibility\022!.google.protobuf." + "EnumValueOptions\030\257\312\274\" \001(\0132\032.google.api.V" + "isibilityRuleR\017valueVisibility:g\n\020field_" + "visibility\022\035.google.protobuf.FieldOption" + "s\030\257\312\274\" \001(\0132\032.google.api.VisibilityRuleR\017" + "fieldVisibility:m\n\022message_visibility\022\037." + "google.protobuf.MessageOptions\030\257\312\274\" \001(\0132" + "\032.google.api.VisibilityRuleR\021messageVisi" + "bility:j\n\021method_visibility\022\036.google.pro" + "tobuf.MethodOptions\030\257\312\274\" \001(\0132\032.google.ap" + "i.VisibilityRuleR\020methodVisibility:e\n\016ap" + "i_visibility\022\037.google.protobuf.ServiceOp" + "tions\030\257\312\274\" \001(\0132\032.google.api.VisibilityRu" + "leR\rapiVisibilityBn\n\016com.google.apiB\017Vis" + "ibilityProtoP\001Z\?google.golang.org/genpro" + "to/googleapis/api/visibility;visibility\370" + "\001\001\242\002\004GAPIb\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_google_2fapi_2fvisibility_2eproto_deps[1] = { + &::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto, }; -static ::absl::once_flag descriptor_table_google_2fapi_2fvisibility_2eproto_once; +static ::_pbi::once_flag descriptor_table_google_2fapi_2fvisibility_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_google_2fapi_2fvisibility_2eproto = { - false, - false, - 1042, - descriptor_table_protodef_google_2fapi_2fvisibility_2eproto, + false, false, 977, descriptor_table_protodef_google_2fapi_2fvisibility_2eproto, "google/api/visibility.proto", - &descriptor_table_google_2fapi_2fvisibility_2eproto_once, - descriptor_table_google_2fapi_2fvisibility_2eproto_deps, - 1, - 2, - schemas, - file_default_instances, - TableStruct_google_2fapi_2fvisibility_2eproto::offsets, - file_level_metadata_google_2fapi_2fvisibility_2eproto, - file_level_enum_descriptors_google_2fapi_2fvisibility_2eproto, + &descriptor_table_google_2fapi_2fvisibility_2eproto_once, descriptor_table_google_2fapi_2fvisibility_2eproto_deps, 1, 2, + schemas, file_default_instances, TableStruct_google_2fapi_2fvisibility_2eproto::offsets, + file_level_metadata_google_2fapi_2fvisibility_2eproto, file_level_enum_descriptors_google_2fapi_2fvisibility_2eproto, file_level_service_descriptors_google_2fapi_2fvisibility_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2fapi_2fvisibility_2eproto_getter() { return &descriptor_table_google_2fapi_2fvisibility_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fapi_2fvisibility_2eproto(&descriptor_table_google_2fapi_2fvisibility_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fapi_2fvisibility_2eproto(&descriptor_table_google_2fapi_2fvisibility_2eproto); namespace google { namespace api { + // =================================================================== class Visibility::_Internal { public: }; -Visibility::Visibility(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Visibility::Visibility(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + rules_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.Visibility) } -inline PROTOBUF_NDEBUG_INLINE Visibility::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : rules_{visibility, arena, from.rules_}, - _cached_size_{0} {} - -Visibility::Visibility( - ::google::protobuf::Arena* arena, - const Visibility& from) - : ::google::protobuf::Message(arena) { - Visibility* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +Visibility::Visibility(const Visibility& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + rules_(from.rules_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:google.api.Visibility) } -inline PROTOBUF_NDEBUG_INLINE Visibility::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : rules_{visibility, arena}, - _cached_size_{0} {} -inline void Visibility::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void Visibility::SharedCtor() { } + Visibility::~Visibility() { // @@protoc_insertion_point(destructor:google.api.Visibility) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Visibility::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void Visibility::Clear() { +void Visibility::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void Visibility::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.Visibility) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.rules_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Visibility::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + rules_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Visibility::_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) { + // repeated .google.api.VisibilityRule rules = 1 [json_name = "rules"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_rules(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> Visibility::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Visibility_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .google.api.VisibilityRule rules = 1 [json_name = "rules"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Visibility, _impl_.rules_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .google.api.VisibilityRule rules = 1 [json_name = "rules"]; - {PROTOBUF_FIELD_OFFSET(Visibility, _impl_.rules_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::api::VisibilityRule>()}, - }}, {{ - }}, -}; - -::uint8_t* Visibility::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Visibility::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.Visibility) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .google.api.VisibilityRule rules = 1 [json_name = "rules"]; for (unsigned i = 0, n = static_cast(this->_internal_rules_size()); i < n; i++) { - const auto& repfield = this->_internal_rules().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_rules(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.Visibility) return target; } -::size_t Visibility::ByteSizeLong() const { +size_t Visibility::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.Visibility) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .google.api.VisibilityRule rules = 1 [json_name = "rules"]; total_size += 1UL * this->_internal_rules_size(); - for (const auto& msg : this->_internal_rules()) { + for (const auto& msg : this->rules_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Visibility::_class_data_ = { - Visibility::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Visibility::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Visibility::MergeImpl }; -const ::google::protobuf::Message::ClassData* Visibility::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Visibility::GetClassData() const { return &_class_data_; } + +void Visibility::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Visibility::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.Visibility) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Visibility::MergeFrom(const Visibility& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.Visibility) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_rules()->MergeFrom( - from._internal_rules()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + rules_.MergeFrom(from.rules_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Visibility::CopyFrom(const Visibility& from) { @@ -341,213 +290,231 @@ void Visibility::CopyFrom(const Visibility& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Visibility::IsInitialized() const { +bool Visibility::IsInitialized() const { return true; } -::_pbi::CachedSize* Visibility::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Visibility::InternalSwap(Visibility* PROTOBUF_RESTRICT other) { +void Visibility::InternalSwap(Visibility* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.rules_.InternalSwap(&other->_impl_.rules_); + rules_.InternalSwap(&other->rules_); } -::google::protobuf::Metadata Visibility::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Visibility::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fvisibility_2eproto_getter, &descriptor_table_google_2fapi_2fvisibility_2eproto_once, file_level_metadata_google_2fapi_2fvisibility_2eproto[0]); } + // =================================================================== class VisibilityRule::_Internal { public: }; -VisibilityRule::VisibilityRule(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +VisibilityRule::VisibilityRule(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.api.VisibilityRule) } -inline PROTOBUF_NDEBUG_INLINE VisibilityRule::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : selector_(arena, from.selector_), - restriction_(arena, from.restriction_), - _cached_size_{0} {} - -VisibilityRule::VisibilityRule( - ::google::protobuf::Arena* arena, - const VisibilityRule& from) - : ::google::protobuf::Message(arena) { - VisibilityRule* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +VisibilityRule::VisibilityRule(const VisibilityRule& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + selector_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + selector_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_selector().empty()) { + selector_.Set(from._internal_selector(), + GetArenaForAllocation()); + } + restriction_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + restriction_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_restriction().empty()) { + restriction_.Set(from._internal_restriction(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:google.api.VisibilityRule) } -inline PROTOBUF_NDEBUG_INLINE VisibilityRule::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : selector_(arena), - restriction_(arena), - _cached_size_{0} {} -inline void VisibilityRule::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void VisibilityRule::SharedCtor() { +selector_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + selector_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +restriction_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + restriction_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + VisibilityRule::~VisibilityRule() { // @@protoc_insertion_point(destructor:google.api.VisibilityRule) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void VisibilityRule::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.selector_.Destroy(); - _impl_.restriction_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + selector_.Destroy(); + restriction_.Destroy(); } -PROTOBUF_NOINLINE void VisibilityRule::Clear() { +void VisibilityRule::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void VisibilityRule::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.VisibilityRule) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.selector_.ClearToEmpty(); - _impl_.restriction_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* VisibilityRule::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + selector_.ClearToEmpty(); + restriction_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* VisibilityRule::_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 selector = 1 [json_name = "selector"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_selector(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.VisibilityRule.selector")); + } else + goto handle_unusual; + continue; + // string restriction = 2 [json_name = "restriction"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_restriction(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.api.VisibilityRule.restriction")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 53, 2> VisibilityRule::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_VisibilityRule_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string restriction = 2 [json_name = "restriction"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(VisibilityRule, _impl_.restriction_)}}, - // string selector = 1 [json_name = "selector"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(VisibilityRule, _impl_.selector_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string selector = 1 [json_name = "selector"]; - {PROTOBUF_FIELD_OFFSET(VisibilityRule, _impl_.selector_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string restriction = 2 [json_name = "restriction"]; - {PROTOBUF_FIELD_OFFSET(VisibilityRule, _impl_.restriction_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\31\10\13\0\0\0\0\0" - "google.api.VisibilityRule" - "selector" - "restriction" - }}, -}; - -::uint8_t* VisibilityRule::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* VisibilityRule::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.VisibilityRule) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string selector = 1 [json_name = "selector"]; if (!this->_internal_selector().empty()) { - const std::string& _s = this->_internal_selector(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.VisibilityRule.selector"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_selector().data(), static_cast(this->_internal_selector().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.VisibilityRule.selector"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_selector(), target); } // string restriction = 2 [json_name = "restriction"]; if (!this->_internal_restriction().empty()) { - const std::string& _s = this->_internal_restriction(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.VisibilityRule.restriction"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_restriction().data(), static_cast(this->_internal_restriction().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.api.VisibilityRule.restriction"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_restriction(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.api.VisibilityRule) return target; } -::size_t VisibilityRule::ByteSizeLong() const { +size_t VisibilityRule::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.api.VisibilityRule) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string selector = 1 [json_name = "selector"]; if (!this->_internal_selector().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_selector()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_selector()); } // string restriction = 2 [json_name = "restriction"]; if (!this->_internal_restriction().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_restriction()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_restriction()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData VisibilityRule::_class_data_ = { - VisibilityRule::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData VisibilityRule::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + VisibilityRule::MergeImpl }; -const ::google::protobuf::Message::ClassData* VisibilityRule::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*VisibilityRule::GetClassData() const { return &_class_data_; } + +void VisibilityRule::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void VisibilityRule::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.api.VisibilityRule) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void VisibilityRule::MergeFrom(const VisibilityRule& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.api.VisibilityRule) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_selector().empty()) { - _this->_internal_set_selector(from._internal_selector()); + _internal_set_selector(from._internal_selector()); } if (!from._internal_restriction().empty()) { - _this->_internal_set_restriction(from._internal_restriction()); + _internal_set_restriction(from._internal_restriction()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void VisibilityRule::CopyFrom(const VisibilityRule& from) { @@ -557,51 +524,62 @@ void VisibilityRule::CopyFrom(const VisibilityRule& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool VisibilityRule::IsInitialized() const { +bool VisibilityRule::IsInitialized() const { return true; } -::_pbi::CachedSize* VisibilityRule::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void VisibilityRule::InternalSwap(VisibilityRule* PROTOBUF_RESTRICT other) { +void VisibilityRule::InternalSwap(VisibilityRule* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.selector_, &other->_impl_.selector_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.restriction_, &other->_impl_.restriction_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &selector_, lhs_arena, + &other->selector_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &restriction_, lhs_arena, + &other->restriction_, rhs_arena + ); } -::google::protobuf::Metadata VisibilityRule::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata VisibilityRule::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2fapi_2fvisibility_2eproto_getter, &descriptor_table_google_2fapi_2fvisibility_2eproto_once, file_level_metadata_google_2fapi_2fvisibility_2eproto[1]); } -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::EnumOptions, - ::google::protobuf::internal::MessageTypeTraits< ::google::api::VisibilityRule >, 11, false> +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::EnumOptions, + ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::google::api::VisibilityRule >, 11, false> enum_visibility(kEnumVisibilityFieldNumber, ::google::api::VisibilityRule::default_instance(), nullptr); -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::EnumValueOptions, - ::google::protobuf::internal::MessageTypeTraits< ::google::api::VisibilityRule >, 11, false> +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::EnumValueOptions, + ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::google::api::VisibilityRule >, 11, false> value_visibility(kValueVisibilityFieldNumber, ::google::api::VisibilityRule::default_instance(), nullptr); -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::FieldOptions, - ::google::protobuf::internal::MessageTypeTraits< ::google::api::VisibilityRule >, 11, false> +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::FieldOptions, + ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::google::api::VisibilityRule >, 11, false> field_visibility(kFieldVisibilityFieldNumber, ::google::api::VisibilityRule::default_instance(), nullptr); -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions, - ::google::protobuf::internal::MessageTypeTraits< ::google::api::VisibilityRule >, 11, false> +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::MessageOptions, + ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::google::api::VisibilityRule >, 11, false> message_visibility(kMessageVisibilityFieldNumber, ::google::api::VisibilityRule::default_instance(), nullptr); -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MethodOptions, - ::google::protobuf::internal::MessageTypeTraits< ::google::api::VisibilityRule >, 11, false> +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::MethodOptions, + ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::google::api::VisibilityRule >, 11, false> method_visibility(kMethodVisibilityFieldNumber, ::google::api::VisibilityRule::default_instance(), nullptr); -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::ServiceOptions, - ::google::protobuf::internal::MessageTypeTraits< ::google::api::VisibilityRule >, 11, false> +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::ServiceOptions, + ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::google::api::VisibilityRule >, 11, false> api_visibility(kApiVisibilityFieldNumber, ::google::api::VisibilityRule::default_instance(), nullptr); + // @@protoc_insertion_point(namespace_scope) } // namespace api } // namespace google -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::google::api::Visibility* +Arena::CreateMaybeMessage< ::google::api::Visibility >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::Visibility >(arena); +} +template<> PROTOBUF_NOINLINE ::google::api::VisibilityRule* +Arena::CreateMaybeMessage< ::google::api::VisibilityRule >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::api::VisibilityRule >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/google/api/visibility.pb.h b/src/viam/api/google/api/visibility.pb.h index 5d5dae704..c1e072437 100644 --- a/src/viam/api/google/api/visibility.pb.h +++ b/src/viam/api/google/api/visibility.pb.h @@ -1,61 +1,50 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/visibility.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fvisibility_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fvisibility_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fvisibility_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fvisibility_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/unknown_field_set.h" -#include "google/protobuf/descriptor.pb.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +// @@protoc_insertion_point(includes) +#include #define PROTOBUF_INTERNAL_EXPORT_google_2fapi_2fvisibility_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_google_2fapi_2fvisibility_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_google_2fapi_2fvisibility_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fapi_2fvisibility_2eproto; namespace google { namespace api { class Visibility; @@ -65,42 +54,38 @@ class VisibilityRule; struct VisibilityRuleDefaultTypeInternal; extern VisibilityRuleDefaultTypeInternal _VisibilityRule_default_instance_; } // namespace api -namespace protobuf { -} // namespace protobuf } // namespace google - +PROTOBUF_NAMESPACE_OPEN +template<> ::google::api::Visibility* Arena::CreateMaybeMessage<::google::api::Visibility>(Arena*); +template<> ::google::api::VisibilityRule* Arena::CreateMaybeMessage<::google::api::VisibilityRule>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace google { namespace api { // =================================================================== - -// ------------------------------------------------------------------- - -class VisibilityRule final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.VisibilityRule) */ { +class Visibility final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.Visibility) */ { public: - inline VisibilityRule() : VisibilityRule(nullptr) {} - ~VisibilityRule() override; - template - explicit PROTOBUF_CONSTEXPR VisibilityRule(::google::protobuf::internal::ConstantInitialized); + inline Visibility() : Visibility(nullptr) {} + ~Visibility() override; + explicit PROTOBUF_CONSTEXPR Visibility(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline VisibilityRule(const VisibilityRule& from) - : VisibilityRule(nullptr, from) {} - VisibilityRule(VisibilityRule&& from) noexcept - : VisibilityRule() { + Visibility(const Visibility& from); + Visibility(Visibility&& from) noexcept + : Visibility() { *this = ::std::move(from); } - inline VisibilityRule& operator=(const VisibilityRule& from) { + inline Visibility& operator=(const Visibility& from) { CopyFrom(from); return *this; } - inline VisibilityRule& operator=(VisibilityRule&& from) noexcept { + inline Visibility& operator=(Visibility&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -110,196 +95,149 @@ class VisibilityRule final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const VisibilityRule& default_instance() { + static const Visibility& default_instance() { return *internal_default_instance(); } - static inline const VisibilityRule* internal_default_instance() { - return reinterpret_cast( - &_VisibilityRule_default_instance_); + static inline const Visibility* internal_default_instance() { + return reinterpret_cast( + &_Visibility_default_instance_); } static constexpr int kIndexInFileMessages = - 1; + 0; - friend void swap(VisibilityRule& a, VisibilityRule& b) { + friend void swap(Visibility& a, Visibility& b) { a.Swap(&b); } - inline void Swap(VisibilityRule* other) { + inline void Swap(Visibility* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(VisibilityRule* other) { + void UnsafeArenaSwap(Visibility* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - VisibilityRule* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const VisibilityRule& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const VisibilityRule& from) { - VisibilityRule::MergeImpl(*this, from); + Visibility* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Visibility& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Visibility& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(VisibilityRule* other); + void SetCachedSize(int size) const final; + void InternalSwap(Visibility* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.VisibilityRule"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.Visibility"; } protected: - explicit VisibilityRule(::google::protobuf::Arena* arena); - VisibilityRule(::google::protobuf::Arena* arena, const VisibilityRule& from); + explicit Visibility(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kSelectorFieldNumber = 1, - kRestrictionFieldNumber = 2, + kRulesFieldNumber = 1, }; - // string selector = 1 [json_name = "selector"]; - void clear_selector() ; - const std::string& selector() const; - template - void set_selector(Arg_&& arg, Args_... args); - std::string* mutable_selector(); - PROTOBUF_NODISCARD std::string* release_selector(); - void set_allocated_selector(std::string* value); - + // repeated .google.api.VisibilityRule rules = 1 [json_name = "rules"]; + int rules_size() const; private: - const std::string& _internal_selector() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_selector( - const std::string& value); - std::string* _internal_mutable_selector(); - + int _internal_rules_size() const; public: - // string restriction = 2 [json_name = "restriction"]; - void clear_restriction() ; - const std::string& restriction() const; - template - void set_restriction(Arg_&& arg, Args_... args); - std::string* mutable_restriction(); - PROTOBUF_NODISCARD std::string* release_restriction(); - void set_allocated_restriction(std::string* value); - + void clear_rules(); + ::google::api::VisibilityRule* mutable_rules(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::VisibilityRule >* + mutable_rules(); private: - const std::string& _internal_restriction() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_restriction( - const std::string& value); - std::string* _internal_mutable_restriction(); - + const ::google::api::VisibilityRule& _internal_rules(int index) const; + ::google::api::VisibilityRule* _internal_add_rules(); public: - // @@protoc_insertion_point(class_scope:google.api.VisibilityRule) + const ::google::api::VisibilityRule& rules(int index) const; + ::google::api::VisibilityRule* add_rules(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::VisibilityRule >& + rules() const; + + // @@protoc_insertion_point(class_scope:google.api.Visibility) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 53, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr selector_; - ::google::protobuf::internal::ArenaStringPtr restriction_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::VisibilityRule > rules_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fvisibility_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Visibility final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.Visibility) */ { +class VisibilityRule final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.VisibilityRule) */ { public: - inline Visibility() : Visibility(nullptr) {} - ~Visibility() override; - template - explicit PROTOBUF_CONSTEXPR Visibility(::google::protobuf::internal::ConstantInitialized); + inline VisibilityRule() : VisibilityRule(nullptr) {} + ~VisibilityRule() override; + explicit PROTOBUF_CONSTEXPR VisibilityRule(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Visibility(const Visibility& from) - : Visibility(nullptr, from) {} - Visibility(Visibility&& from) noexcept - : Visibility() { + VisibilityRule(const VisibilityRule& from); + VisibilityRule(VisibilityRule&& from) noexcept + : VisibilityRule() { *this = ::std::move(from); } - inline Visibility& operator=(const Visibility& from) { + inline VisibilityRule& operator=(const VisibilityRule& from) { CopyFrom(from); return *this; } - inline Visibility& operator=(Visibility&& from) noexcept { + inline VisibilityRule& operator=(VisibilityRule&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -309,243 +247,210 @@ class Visibility final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Visibility& default_instance() { + static const VisibilityRule& default_instance() { return *internal_default_instance(); } - static inline const Visibility* internal_default_instance() { - return reinterpret_cast( - &_Visibility_default_instance_); + static inline const VisibilityRule* internal_default_instance() { + return reinterpret_cast( + &_VisibilityRule_default_instance_); } static constexpr int kIndexInFileMessages = - 0; + 1; - friend void swap(Visibility& a, Visibility& b) { + friend void swap(VisibilityRule& a, VisibilityRule& b) { a.Swap(&b); } - inline void Swap(Visibility* other) { + inline void Swap(VisibilityRule* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Visibility* other) { + void UnsafeArenaSwap(VisibilityRule* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Visibility* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Visibility& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Visibility& from) { - Visibility::MergeImpl(*this, from); + VisibilityRule* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const VisibilityRule& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const VisibilityRule& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Visibility* other); + void SetCachedSize(int size) const final; + void InternalSwap(VisibilityRule* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.Visibility"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.api.VisibilityRule"; } protected: - explicit Visibility(::google::protobuf::Arena* arena); - Visibility(::google::protobuf::Arena* arena, const Visibility& from); + explicit VisibilityRule(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kRulesFieldNumber = 1, + kSelectorFieldNumber = 1, + kRestrictionFieldNumber = 2, }; - // repeated .google.api.VisibilityRule rules = 1 [json_name = "rules"]; - int rules_size() const; + // string selector = 1 [json_name = "selector"]; + void clear_selector(); + const std::string& selector() const; + template + void set_selector(ArgT0&& arg0, ArgT... args); + std::string* mutable_selector(); + PROTOBUF_NODISCARD std::string* release_selector(); + void set_allocated_selector(std::string* selector); private: - int _internal_rules_size() const; - + const std::string& _internal_selector() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_selector(const std::string& value); + std::string* _internal_mutable_selector(); public: - void clear_rules() ; - ::google::api::VisibilityRule* mutable_rules(int index); - ::google::protobuf::RepeatedPtrField< ::google::api::VisibilityRule >* - mutable_rules(); + + // string restriction = 2 [json_name = "restriction"]; + void clear_restriction(); + const std::string& restriction() const; + template + void set_restriction(ArgT0&& arg0, ArgT... args); + std::string* mutable_restriction(); + PROTOBUF_NODISCARD std::string* release_restriction(); + void set_allocated_restriction(std::string* restriction); private: - const ::google::protobuf::RepeatedPtrField<::google::api::VisibilityRule>& _internal_rules() const; - ::google::protobuf::RepeatedPtrField<::google::api::VisibilityRule>* _internal_mutable_rules(); + const std::string& _internal_restriction() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_restriction(const std::string& value); + std::string* _internal_mutable_restriction(); public: - const ::google::api::VisibilityRule& rules(int index) const; - ::google::api::VisibilityRule* add_rules(); - const ::google::protobuf::RepeatedPtrField< ::google::api::VisibilityRule >& - rules() const; - // @@protoc_insertion_point(class_scope:google.api.Visibility) + + // @@protoc_insertion_point(class_scope:google.api.VisibilityRule) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::google::api::VisibilityRule > rules_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr selector_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr restriction_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2fapi_2fvisibility_2eproto; }; - // =================================================================== - - static const int kEnumVisibilityFieldNumber = 72295727; -extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::EnumOptions, - ::google::protobuf::internal::MessageTypeTraits< ::google::api::VisibilityRule >, 11, false > +extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::EnumOptions, + ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::google::api::VisibilityRule >, 11, false > enum_visibility; static const int kValueVisibilityFieldNumber = 72295727; -extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::EnumValueOptions, - ::google::protobuf::internal::MessageTypeTraits< ::google::api::VisibilityRule >, 11, false > +extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::EnumValueOptions, + ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::google::api::VisibilityRule >, 11, false > value_visibility; static const int kFieldVisibilityFieldNumber = 72295727; -extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::FieldOptions, - ::google::protobuf::internal::MessageTypeTraits< ::google::api::VisibilityRule >, 11, false > +extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::FieldOptions, + ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::google::api::VisibilityRule >, 11, false > field_visibility; static const int kMessageVisibilityFieldNumber = 72295727; -extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions, - ::google::protobuf::internal::MessageTypeTraits< ::google::api::VisibilityRule >, 11, false > +extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::MessageOptions, + ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::google::api::VisibilityRule >, 11, false > message_visibility; static const int kMethodVisibilityFieldNumber = 72295727; -extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MethodOptions, - ::google::protobuf::internal::MessageTypeTraits< ::google::api::VisibilityRule >, 11, false > +extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::MethodOptions, + ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::google::api::VisibilityRule >, 11, false > method_visibility; static const int kApiVisibilityFieldNumber = 72295727; -extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::ServiceOptions, - ::google::protobuf::internal::MessageTypeTraits< ::google::api::VisibilityRule >, 11, false > +extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::ServiceOptions, + ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::google::api::VisibilityRule >, 11, false > api_visibility; // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ -// ------------------------------------------------------------------- - // Visibility // repeated .google.api.VisibilityRule rules = 1 [json_name = "rules"]; inline int Visibility::_internal_rules_size() const { - return _internal_rules().size(); + return rules_.size(); } inline int Visibility::rules_size() const { return _internal_rules_size(); } inline void Visibility::clear_rules() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.rules_.Clear(); + rules_.Clear(); } -inline ::google::api::VisibilityRule* Visibility::mutable_rules(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::api::VisibilityRule* Visibility::mutable_rules(int index) { // @@protoc_insertion_point(field_mutable:google.api.Visibility.rules) - return _internal_mutable_rules()->Mutable(index); + return rules_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::google::api::VisibilityRule>* Visibility::mutable_rules() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::VisibilityRule >* +Visibility::mutable_rules() { // @@protoc_insertion_point(field_mutable_list:google.api.Visibility.rules) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_rules(); + return &rules_; +} +inline const ::google::api::VisibilityRule& Visibility::_internal_rules(int index) const { + return rules_.Get(index); } -inline const ::google::api::VisibilityRule& Visibility::rules(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::api::VisibilityRule& Visibility::rules(int index) const { // @@protoc_insertion_point(field_get:google.api.Visibility.rules) - return _internal_rules().Get(index); + return _internal_rules(index); +} +inline ::google::api::VisibilityRule* Visibility::_internal_add_rules() { + return rules_.Add(); } -inline ::google::api::VisibilityRule* Visibility::add_rules() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::google::api::VisibilityRule* _add = _internal_mutable_rules()->Add(); +inline ::google::api::VisibilityRule* Visibility::add_rules() { + ::google::api::VisibilityRule* _add = _internal_add_rules(); // @@protoc_insertion_point(field_add:google.api.Visibility.rules) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::google::api::VisibilityRule>& Visibility::rules() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::VisibilityRule >& +Visibility::rules() const { // @@protoc_insertion_point(field_list:google.api.Visibility.rules) - return _internal_rules(); -} -inline const ::google::protobuf::RepeatedPtrField<::google::api::VisibilityRule>& -Visibility::_internal_rules() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.rules_; -} -inline ::google::protobuf::RepeatedPtrField<::google::api::VisibilityRule>* -Visibility::_internal_mutable_rules() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.rules_; + return rules_; } // ------------------------------------------------------------------- @@ -554,121 +459,116 @@ Visibility::_internal_mutable_rules() { // string selector = 1 [json_name = "selector"]; inline void VisibilityRule::clear_selector() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.selector_.ClearToEmpty(); + selector_.ClearToEmpty(); } -inline const std::string& VisibilityRule::selector() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& VisibilityRule::selector() const { // @@protoc_insertion_point(field_get:google.api.VisibilityRule.selector) return _internal_selector(); } -template -inline PROTOBUF_ALWAYS_INLINE void VisibilityRule::set_selector(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.selector_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void VisibilityRule::set_selector(ArgT0&& arg0, ArgT... args) { + + selector_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.VisibilityRule.selector) } -inline std::string* VisibilityRule::mutable_selector() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* VisibilityRule::mutable_selector() { std::string* _s = _internal_mutable_selector(); // @@protoc_insertion_point(field_mutable:google.api.VisibilityRule.selector) return _s; } inline const std::string& VisibilityRule::_internal_selector() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.selector_.Get(); + return selector_.Get(); } inline void VisibilityRule::_internal_set_selector(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.selector_.Set(value, GetArena()); + + selector_.Set(value, GetArenaForAllocation()); } inline std::string* VisibilityRule::_internal_mutable_selector() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.selector_.Mutable( GetArena()); + + return selector_.Mutable(GetArenaForAllocation()); } inline std::string* VisibilityRule::release_selector() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.VisibilityRule.selector) - return _impl_.selector_.Release(); + return selector_.Release(); } -inline void VisibilityRule::set_allocated_selector(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.selector_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.selector_.IsDefault()) { - _impl_.selector_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline void VisibilityRule::set_allocated_selector(std::string* selector) { + if (selector != nullptr) { + + } else { + + } + selector_.SetAllocated(selector, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (selector_.IsDefault()) { + selector_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.api.VisibilityRule.selector) } // string restriction = 2 [json_name = "restriction"]; inline void VisibilityRule::clear_restriction() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.restriction_.ClearToEmpty(); + restriction_.ClearToEmpty(); } -inline const std::string& VisibilityRule::restriction() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& VisibilityRule::restriction() const { // @@protoc_insertion_point(field_get:google.api.VisibilityRule.restriction) return _internal_restriction(); } -template -inline PROTOBUF_ALWAYS_INLINE void VisibilityRule::set_restriction(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.restriction_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void VisibilityRule::set_restriction(ArgT0&& arg0, ArgT... args) { + + restriction_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.api.VisibilityRule.restriction) } -inline std::string* VisibilityRule::mutable_restriction() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* VisibilityRule::mutable_restriction() { std::string* _s = _internal_mutable_restriction(); // @@protoc_insertion_point(field_mutable:google.api.VisibilityRule.restriction) return _s; } inline const std::string& VisibilityRule::_internal_restriction() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.restriction_.Get(); + return restriction_.Get(); } inline void VisibilityRule::_internal_set_restriction(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.restriction_.Set(value, GetArena()); + + restriction_.Set(value, GetArenaForAllocation()); } inline std::string* VisibilityRule::_internal_mutable_restriction() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.restriction_.Mutable( GetArena()); + + return restriction_.Mutable(GetArenaForAllocation()); } inline std::string* VisibilityRule::release_restriction() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.VisibilityRule.restriction) - return _impl_.restriction_.Release(); + return restriction_.Release(); } -inline void VisibilityRule::set_allocated_restriction(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.restriction_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.restriction_.IsDefault()) { - _impl_.restriction_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline void VisibilityRule::set_allocated_restriction(std::string* restriction) { + if (restriction != nullptr) { + + } else { + + } + restriction_.SetAllocated(restriction, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (restriction_.IsDefault()) { + restriction_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.api.VisibilityRule.restriction) } #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) + } // namespace api } // namespace google - // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fvisibility_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fvisibility_2eproto diff --git a/src/viam/api/google/rpc/code.grpc.pb.cc b/src/viam/api/google/rpc/code.grpc.pb.cc index a41c1077d..eef6d0c65 100644 --- a/src/viam/api/google/rpc/code.grpc.pb.cc +++ b/src/viam/api/google/rpc/code.grpc.pb.cc @@ -6,19 +6,19 @@ #include "google/rpc/code.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace google { namespace rpc { diff --git a/src/viam/api/google/rpc/code.grpc.pb.h b/src/viam/api/google/rpc/code.grpc.pb.h index 1246045a4..ef2b6dd62 100644 --- a/src/viam/api/google/rpc/code.grpc.pb.h +++ b/src/viam/api/google/rpc/code.grpc.pb.h @@ -22,23 +22,24 @@ #include "google/rpc/code.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace google { namespace rpc { diff --git a/src/viam/api/google/rpc/code.pb.cc b/src/viam/api/google/rpc/code.pb.cc index 661dcce0a..95e337cb4 100644 --- a/src/viam/api/google/rpc/code.pb.cc +++ b/src/viam/api/google/rpc/code.pb.cc @@ -4,100 +4,98 @@ #include "google/rpc/code.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace google { namespace rpc { } // namespace rpc } // namespace google static const ::_pb::EnumDescriptor* file_level_enum_descriptors_google_2frpc_2fcode_2eproto[1]; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_google_2frpc_2fcode_2eproto = nullptr; -const ::uint32_t TableStruct_google_2frpc_2fcode_2eproto::offsets[1] = {}; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_google_2frpc_2fcode_2eproto = nullptr; +const uint32_t TableStruct_google_2frpc_2fcode_2eproto::offsets[1] = {}; static constexpr ::_pbi::MigrationSchema* schemas = nullptr; static constexpr ::_pb::Message* const* file_default_instances = nullptr; -const char descriptor_table_protodef_google_2frpc_2fcode_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n\025google/rpc/code.proto\022\ngoogle.rpc*\267\002\n\004" - "Code\022\006\n\002OK\020\000\022\r\n\tCANCELLED\020\001\022\013\n\007UNKNOWN\020\002" - "\022\024\n\020INVALID_ARGUMENT\020\003\022\025\n\021DEADLINE_EXCEE" - "DED\020\004\022\r\n\tNOT_FOUND\020\005\022\022\n\016ALREADY_EXISTS\020\006" - "\022\025\n\021PERMISSION_DENIED\020\007\022\023\n\017UNAUTHENTICAT" - "ED\020\020\022\026\n\022RESOURCE_EXHAUSTED\020\010\022\027\n\023FAILED_P" - "RECONDITION\020\t\022\013\n\007ABORTED\020\n\022\020\n\014OUT_OF_RAN" - "GE\020\013\022\021\n\rUNIMPLEMENTED\020\014\022\014\n\010INTERNAL\020\r\022\017\n" - "\013UNAVAILABLE\020\016\022\r\n\tDATA_LOSS\020\017B\231\001\n\016com.go" - "ogle.rpcB\tCodeProtoP\001Z3google.golang.org" - "/genproto/googleapis/rpc/code;code\242\002\003GRX" - "\252\002\nGoogle.Rpc\312\002\nGoogle\\Rpc\342\002\026Google\\Rpc\\" - "GPBMetadata\352\002\013Google::Rpcb\006proto3" -}; -static ::absl::once_flag descriptor_table_google_2frpc_2fcode_2eproto_once; + +const char descriptor_table_protodef_google_2frpc_2fcode_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\025google/rpc/code.proto\022\ngoogle.rpc*\267\002\n\004" + "Code\022\006\n\002OK\020\000\022\r\n\tCANCELLED\020\001\022\013\n\007UNKNOWN\020\002" + "\022\024\n\020INVALID_ARGUMENT\020\003\022\025\n\021DEADLINE_EXCEE" + "DED\020\004\022\r\n\tNOT_FOUND\020\005\022\022\n\016ALREADY_EXISTS\020\006" + "\022\025\n\021PERMISSION_DENIED\020\007\022\023\n\017UNAUTHENTICAT" + "ED\020\020\022\026\n\022RESOURCE_EXHAUSTED\020\010\022\027\n\023FAILED_P" + "RECONDITION\020\t\022\013\n\007ABORTED\020\n\022\020\n\014OUT_OF_RAN" + "GE\020\013\022\021\n\rUNIMPLEMENTED\020\014\022\014\n\010INTERNAL\020\r\022\017\n" + "\013UNAVAILABLE\020\016\022\r\n\tDATA_LOSS\020\017BX\n\016com.goo" + "gle.rpcB\tCodeProtoP\001Z3google.golang.org/" + "genproto/googleapis/rpc/code;code\242\002\003RPCb" + "\006proto3" + ; +static ::_pbi::once_flag descriptor_table_google_2frpc_2fcode_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_google_2frpc_2fcode_2eproto = { - false, - false, - 513, - descriptor_table_protodef_google_2frpc_2fcode_2eproto, + false, false, 447, descriptor_table_protodef_google_2frpc_2fcode_2eproto, "google/rpc/code.proto", - &descriptor_table_google_2frpc_2fcode_2eproto_once, - nullptr, - 0, - 0, - schemas, - file_default_instances, - TableStruct_google_2frpc_2fcode_2eproto::offsets, - nullptr, - file_level_enum_descriptors_google_2frpc_2fcode_2eproto, + &descriptor_table_google_2frpc_2fcode_2eproto_once, nullptr, 0, 0, + schemas, file_default_instances, TableStruct_google_2frpc_2fcode_2eproto::offsets, + nullptr, file_level_enum_descriptors_google_2frpc_2fcode_2eproto, file_level_service_descriptors_google_2frpc_2fcode_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2frpc_2fcode_2eproto_getter() { return &descriptor_table_google_2frpc_2fcode_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2frpc_2fcode_2eproto(&descriptor_table_google_2frpc_2fcode_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2frpc_2fcode_2eproto(&descriptor_table_google_2frpc_2fcode_2eproto); namespace google { namespace rpc { -const ::google::protobuf::EnumDescriptor* Code_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_google_2frpc_2fcode_2eproto); +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Code_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_google_2frpc_2fcode_2eproto); return file_level_enum_descriptors_google_2frpc_2fcode_2eproto[0]; } -PROTOBUF_CONSTINIT const uint32_t Code_internal_data_[] = { - 1114112u, 0u, }; bool Code_IsValid(int value) { - return 0 <= value && value <= 16; + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + return true; + default: + return false; + } } + + // @@protoc_insertion_point(namespace_scope) } // namespace rpc } // namespace google -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/google/rpc/code.pb.h b/src/viam/api/google/rpc/code.pb.h index 8ac1d022c..8231cd36f 100644 --- a/src/viam/api/google/rpc/code.pb.h +++ b/src/viam/api/google/rpc/code.pb.h @@ -1,66 +1,53 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/rpc/code.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2frpc_2fcode_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_google_2frpc_2fcode_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2frpc_2fcode_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_google_2frpc_2fcode_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/generated_enum_reflection.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +// @@protoc_insertion_point(includes) +#include #define PROTOBUF_INTERNAL_EXPORT_google_2frpc_2fcode_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_google_2frpc_2fcode_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_google_2frpc_2fcode_2eproto; -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2frpc_2fcode_2eproto; +PROTOBUF_NAMESPACE_OPEN +PROTOBUF_NAMESPACE_CLOSE namespace google { namespace rpc { + enum Code : int { OK = 0, CANCELLED = 1, @@ -79,77 +66,60 @@ enum Code : int { INTERNAL = 13, UNAVAILABLE = 14, DATA_LOSS = 15, - Code_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - Code_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), + Code_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + Code_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() }; - bool Code_IsValid(int value); -extern const uint32_t Code_internal_data_[]; -constexpr Code Code_MIN = static_cast(0); -constexpr Code Code_MAX = static_cast(16); -constexpr int Code_ARRAYSIZE = 16 + 1; -const ::google::protobuf::EnumDescriptor* -Code_descriptor(); -template -const std::string& Code_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to Code_Name()."); - return Code_Name(static_cast(value)); -} -template <> -inline const std::string& Code_Name(Code value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); +constexpr Code Code_MIN = OK; +constexpr Code Code_MAX = UNAUTHENTICATED; +constexpr int Code_ARRAYSIZE = Code_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Code_descriptor(); +template +inline const std::string& Code_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function Code_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + Code_descriptor(), enum_t_value); } -inline bool Code_Parse(absl::string_view name, Code* value) { - return ::google::protobuf::internal::ParseNamedEnum( - Code_descriptor(), name, value); +inline bool Code_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Code* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + Code_descriptor(), name, value); } - // =================================================================== - // =================================================================== - - // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ // @@protoc_insertion_point(namespace_scope) + } // namespace rpc } // namespace google +PROTOBUF_NAMESPACE_OPEN -namespace google { -namespace protobuf { - +template <> struct is_proto_enum< ::google::rpc::Code> : ::std::true_type {}; template <> -struct is_proto_enum<::google::rpc::Code> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::google::rpc::Code>() { +inline const EnumDescriptor* GetEnumDescriptor< ::google::rpc::Code>() { return ::google::rpc::Code_descriptor(); } -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_google_2frpc_2fcode_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2frpc_2fcode_2eproto diff --git a/src/viam/api/google/rpc/context/attribute_context.grpc.pb.cc b/src/viam/api/google/rpc/context/attribute_context.grpc.pb.cc index 478599460..cfcb31dcc 100644 --- a/src/viam/api/google/rpc/context/attribute_context.grpc.pb.cc +++ b/src/viam/api/google/rpc/context/attribute_context.grpc.pb.cc @@ -6,19 +6,19 @@ #include "google/rpc/context/attribute_context.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace google { namespace rpc { namespace context { diff --git a/src/viam/api/google/rpc/context/attribute_context.grpc.pb.h b/src/viam/api/google/rpc/context/attribute_context.grpc.pb.h index 65760e0ba..469c1c51b 100644 --- a/src/viam/api/google/rpc/context/attribute_context.grpc.pb.h +++ b/src/viam/api/google/rpc/context/attribute_context.grpc.pb.h @@ -22,23 +22,24 @@ #include "google/rpc/context/attribute_context.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace google { namespace rpc { diff --git a/src/viam/api/google/rpc/context/attribute_context.pb.cc b/src/viam/api/google/rpc/context/attribute_context.pb.cc index c7a18cd73..9e4018579 100644 --- a/src/viam/api/google/rpc/context/attribute_context.pb.cc +++ b/src/viam/api/google/rpc/context/attribute_context.pb.cc @@ -4,988 +4,847 @@ #include "google/rpc/context/attribute_context.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace google { namespace rpc { namespace context { - template -PROTOBUF_CONSTEXPR AttributeContext_Response_HeadersEntry_DoNotUse::AttributeContext_Response_HeadersEntry_DoNotUse(::_pbi::ConstantInitialized) {} -struct AttributeContext_Response_HeadersEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR AttributeContext_Response_HeadersEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AttributeContext_Response_HeadersEntry_DoNotUseDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR AttributeContext_Peer_LabelsEntry_DoNotUse::AttributeContext_Peer_LabelsEntry_DoNotUse( + ::_pbi::ConstantInitialized){} +struct AttributeContext_Peer_LabelsEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR AttributeContext_Peer_LabelsEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AttributeContext_Peer_LabelsEntry_DoNotUseDefaultTypeInternal() {} union { - AttributeContext_Response_HeadersEntry_DoNotUse _instance; + AttributeContext_Peer_LabelsEntry_DoNotUse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AttributeContext_Response_HeadersEntry_DoNotUseDefaultTypeInternal _AttributeContext_Response_HeadersEntry_DoNotUse_default_instance_; - template -PROTOBUF_CONSTEXPR AttributeContext_Resource_LabelsEntry_DoNotUse::AttributeContext_Resource_LabelsEntry_DoNotUse(::_pbi::ConstantInitialized) {} -struct AttributeContext_Resource_LabelsEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR AttributeContext_Resource_LabelsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AttributeContext_Resource_LabelsEntry_DoNotUseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AttributeContext_Peer_LabelsEntry_DoNotUseDefaultTypeInternal _AttributeContext_Peer_LabelsEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR AttributeContext_Peer::AttributeContext_Peer( + ::_pbi::ConstantInitialized) + : labels_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + , ip_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , principal_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , region_code_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , port_(int64_t{0}){} +struct AttributeContext_PeerDefaultTypeInternal { + PROTOBUF_CONSTEXPR AttributeContext_PeerDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AttributeContext_PeerDefaultTypeInternal() {} union { - AttributeContext_Resource_LabelsEntry_DoNotUse _instance; + AttributeContext_Peer _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AttributeContext_Resource_LabelsEntry_DoNotUseDefaultTypeInternal _AttributeContext_Resource_LabelsEntry_DoNotUse_default_instance_; - template -PROTOBUF_CONSTEXPR AttributeContext_Resource_AnnotationsEntry_DoNotUse::AttributeContext_Resource_AnnotationsEntry_DoNotUse(::_pbi::ConstantInitialized) {} -struct AttributeContext_Resource_AnnotationsEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR AttributeContext_Resource_AnnotationsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AttributeContext_Resource_AnnotationsEntry_DoNotUseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AttributeContext_PeerDefaultTypeInternal _AttributeContext_Peer_default_instance_; +PROTOBUF_CONSTEXPR AttributeContext_Api::AttributeContext_Api( + ::_pbi::ConstantInitialized) + : service_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , operation_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , protocol_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , version_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct AttributeContext_ApiDefaultTypeInternal { + PROTOBUF_CONSTEXPR AttributeContext_ApiDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AttributeContext_ApiDefaultTypeInternal() {} union { - AttributeContext_Resource_AnnotationsEntry_DoNotUse _instance; + AttributeContext_Api _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AttributeContext_Resource_AnnotationsEntry_DoNotUseDefaultTypeInternal _AttributeContext_Resource_AnnotationsEntry_DoNotUse_default_instance_; - template -PROTOBUF_CONSTEXPR AttributeContext_Request_HeadersEntry_DoNotUse::AttributeContext_Request_HeadersEntry_DoNotUse(::_pbi::ConstantInitialized) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AttributeContext_ApiDefaultTypeInternal _AttributeContext_Api_default_instance_; +PROTOBUF_CONSTEXPR AttributeContext_Auth::AttributeContext_Auth( + ::_pbi::ConstantInitialized) + : audiences_() + , access_levels_() + , principal_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , presenter_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , claims_(nullptr){} +struct AttributeContext_AuthDefaultTypeInternal { + PROTOBUF_CONSTEXPR AttributeContext_AuthDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AttributeContext_AuthDefaultTypeInternal() {} + union { + AttributeContext_Auth _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AttributeContext_AuthDefaultTypeInternal _AttributeContext_Auth_default_instance_; +PROTOBUF_CONSTEXPR AttributeContext_Request_HeadersEntry_DoNotUse::AttributeContext_Request_HeadersEntry_DoNotUse( + ::_pbi::ConstantInitialized){} struct AttributeContext_Request_HeadersEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR AttributeContext_Request_HeadersEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR AttributeContext_Request_HeadersEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~AttributeContext_Request_HeadersEntry_DoNotUseDefaultTypeInternal() {} union { AttributeContext_Request_HeadersEntry_DoNotUse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AttributeContext_Request_HeadersEntry_DoNotUseDefaultTypeInternal _AttributeContext_Request_HeadersEntry_DoNotUse_default_instance_; - template -PROTOBUF_CONSTEXPR AttributeContext_Peer_LabelsEntry_DoNotUse::AttributeContext_Peer_LabelsEntry_DoNotUse(::_pbi::ConstantInitialized) {} -struct AttributeContext_Peer_LabelsEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR AttributeContext_Peer_LabelsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AttributeContext_Peer_LabelsEntry_DoNotUseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AttributeContext_Request_HeadersEntry_DoNotUseDefaultTypeInternal _AttributeContext_Request_HeadersEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR AttributeContext_Request::AttributeContext_Request( + ::_pbi::ConstantInitialized) + : headers_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + , id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , method_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , path_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , host_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , scheme_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , query_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , protocol_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , reason_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , time_(nullptr) + , auth_(nullptr) + , size_(int64_t{0}){} +struct AttributeContext_RequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR AttributeContext_RequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AttributeContext_RequestDefaultTypeInternal() {} union { - AttributeContext_Peer_LabelsEntry_DoNotUse _instance; + AttributeContext_Request _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AttributeContext_Peer_LabelsEntry_DoNotUseDefaultTypeInternal _AttributeContext_Peer_LabelsEntry_DoNotUse_default_instance_; - -inline constexpr AttributeContext_Api::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : service_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - operation_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - protocol_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - version_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR AttributeContext_Api::AttributeContext_Api(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct AttributeContext_ApiDefaultTypeInternal { - PROTOBUF_CONSTEXPR AttributeContext_ApiDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AttributeContext_ApiDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AttributeContext_RequestDefaultTypeInternal _AttributeContext_Request_default_instance_; +PROTOBUF_CONSTEXPR AttributeContext_Response_HeadersEntry_DoNotUse::AttributeContext_Response_HeadersEntry_DoNotUse( + ::_pbi::ConstantInitialized){} +struct AttributeContext_Response_HeadersEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR AttributeContext_Response_HeadersEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AttributeContext_Response_HeadersEntry_DoNotUseDefaultTypeInternal() {} union { - AttributeContext_Api _instance; + AttributeContext_Response_HeadersEntry_DoNotUse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AttributeContext_ApiDefaultTypeInternal _AttributeContext_Api_default_instance_; - -inline constexpr AttributeContext_Response::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - headers_{}, - time_{nullptr}, - backend_latency_{nullptr}, - code_{::int64_t{0}}, - size_{::int64_t{0}} {} - -template -PROTOBUF_CONSTEXPR AttributeContext_Response::AttributeContext_Response(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AttributeContext_Response_HeadersEntry_DoNotUseDefaultTypeInternal _AttributeContext_Response_HeadersEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR AttributeContext_Response::AttributeContext_Response( + ::_pbi::ConstantInitialized) + : headers_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + , time_(nullptr) + , backend_latency_(nullptr) + , code_(int64_t{0}) + , size_(int64_t{0}){} struct AttributeContext_ResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR AttributeContext_ResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR AttributeContext_ResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~AttributeContext_ResponseDefaultTypeInternal() {} union { AttributeContext_Response _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AttributeContext_ResponseDefaultTypeInternal _AttributeContext_Response_default_instance_; - -inline constexpr AttributeContext_Resource::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - labels_{}, - annotations_{}, - service_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - type_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - uid_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - display_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - etag_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - location_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - create_time_{nullptr}, - update_time_{nullptr}, - delete_time_{nullptr} {} - -template -PROTOBUF_CONSTEXPR AttributeContext_Resource::AttributeContext_Resource(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct AttributeContext_ResourceDefaultTypeInternal { - PROTOBUF_CONSTEXPR AttributeContext_ResourceDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AttributeContext_ResourceDefaultTypeInternal() {} - union { - AttributeContext_Resource _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AttributeContext_ResourceDefaultTypeInternal _AttributeContext_Resource_default_instance_; - -inline constexpr AttributeContext_Peer::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : labels_{}, - ip_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - principal_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - region_code_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - port_{::int64_t{0}}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR AttributeContext_Peer::AttributeContext_Peer(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct AttributeContext_PeerDefaultTypeInternal { - PROTOBUF_CONSTEXPR AttributeContext_PeerDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AttributeContext_PeerDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AttributeContext_ResponseDefaultTypeInternal _AttributeContext_Response_default_instance_; +PROTOBUF_CONSTEXPR AttributeContext_Resource_LabelsEntry_DoNotUse::AttributeContext_Resource_LabelsEntry_DoNotUse( + ::_pbi::ConstantInitialized){} +struct AttributeContext_Resource_LabelsEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR AttributeContext_Resource_LabelsEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AttributeContext_Resource_LabelsEntry_DoNotUseDefaultTypeInternal() {} union { - AttributeContext_Peer _instance; + AttributeContext_Resource_LabelsEntry_DoNotUse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AttributeContext_PeerDefaultTypeInternal _AttributeContext_Peer_default_instance_; - -inline constexpr AttributeContext_Auth::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - audiences_{}, - access_levels_{}, - principal_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - presenter_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - claims_{nullptr} {} - -template -PROTOBUF_CONSTEXPR AttributeContext_Auth::AttributeContext_Auth(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct AttributeContext_AuthDefaultTypeInternal { - PROTOBUF_CONSTEXPR AttributeContext_AuthDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AttributeContext_AuthDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AttributeContext_Resource_LabelsEntry_DoNotUseDefaultTypeInternal _AttributeContext_Resource_LabelsEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR AttributeContext_Resource_AnnotationsEntry_DoNotUse::AttributeContext_Resource_AnnotationsEntry_DoNotUse( + ::_pbi::ConstantInitialized){} +struct AttributeContext_Resource_AnnotationsEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR AttributeContext_Resource_AnnotationsEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AttributeContext_Resource_AnnotationsEntry_DoNotUseDefaultTypeInternal() {} union { - AttributeContext_Auth _instance; + AttributeContext_Resource_AnnotationsEntry_DoNotUse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AttributeContext_AuthDefaultTypeInternal _AttributeContext_Auth_default_instance_; - -inline constexpr AttributeContext_Request::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - headers_{}, - id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - method_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - path_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - host_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - scheme_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - query_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - protocol_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - reason_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - time_{nullptr}, - auth_{nullptr}, - size_{::int64_t{0}} {} - -template -PROTOBUF_CONSTEXPR AttributeContext_Request::AttributeContext_Request(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct AttributeContext_RequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR AttributeContext_RequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AttributeContext_RequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AttributeContext_Resource_AnnotationsEntry_DoNotUseDefaultTypeInternal _AttributeContext_Resource_AnnotationsEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR AttributeContext_Resource::AttributeContext_Resource( + ::_pbi::ConstantInitialized) + : labels_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + , annotations_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + , service_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , type_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , uid_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , display_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , etag_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , location_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , create_time_(nullptr) + , update_time_(nullptr) + , delete_time_(nullptr){} +struct AttributeContext_ResourceDefaultTypeInternal { + PROTOBUF_CONSTEXPR AttributeContext_ResourceDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AttributeContext_ResourceDefaultTypeInternal() {} union { - AttributeContext_Request _instance; + AttributeContext_Resource _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AttributeContext_RequestDefaultTypeInternal _AttributeContext_Request_default_instance_; - -inline constexpr AttributeContext::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - extensions_{}, - source_{nullptr}, - destination_{nullptr}, - request_{nullptr}, - response_{nullptr}, - resource_{nullptr}, - api_{nullptr}, - origin_{nullptr} {} - -template -PROTOBUF_CONSTEXPR AttributeContext::AttributeContext(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AttributeContext_ResourceDefaultTypeInternal _AttributeContext_Resource_default_instance_; +PROTOBUF_CONSTEXPR AttributeContext::AttributeContext( + ::_pbi::ConstantInitialized) + : extensions_() + , source_(nullptr) + , destination_(nullptr) + , request_(nullptr) + , response_(nullptr) + , resource_(nullptr) + , api_(nullptr) + , origin_(nullptr){} struct AttributeContextDefaultTypeInternal { - PROTOBUF_CONSTEXPR AttributeContextDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR AttributeContextDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~AttributeContextDefaultTypeInternal() {} union { AttributeContext _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AttributeContextDefaultTypeInternal _AttributeContext_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AttributeContextDefaultTypeInternal _AttributeContext_default_instance_; } // namespace context } // namespace rpc } // namespace google static ::_pb::Metadata file_level_metadata_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto[12]; -static constexpr const ::_pb::EnumDescriptor** - file_level_enum_descriptors_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto = nullptr; -const ::uint32_t TableStruct_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Peer_LabelsEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Peer_LabelsEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Peer_LabelsEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Peer_LabelsEntry_DoNotUse, value_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Peer, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Peer, _impl_.ip_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Peer, _impl_.port_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Peer, _impl_.labels_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Peer, _impl_.principal_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Peer, _impl_.region_code_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Api, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Api, _impl_.service_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Api, _impl_.operation_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Api, _impl_.protocol_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Api, _impl_.version_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Auth, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Auth, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Auth, _impl_.principal_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Auth, _impl_.audiences_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Auth, _impl_.presenter_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Auth, _impl_.claims_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Auth, _impl_.access_levels_), - ~0u, - ~0u, - ~0u, - 0, - ~0u, - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Request_HeadersEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Request_HeadersEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Request_HeadersEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Request_HeadersEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Request, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Request, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Request, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Request, _impl_.method_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Request, _impl_.headers_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Request, _impl_.path_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Request, _impl_.host_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Request, _impl_.scheme_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Request, _impl_.query_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Request, _impl_.time_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Request, _impl_.size_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Request, _impl_.protocol_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Request, _impl_.reason_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Request, _impl_.auth_), - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - 0, - ~0u, - ~0u, - ~0u, - 1, - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Response_HeadersEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Response_HeadersEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Response_HeadersEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Response_HeadersEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Response, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Response, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Response, _impl_.code_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Response, _impl_.size_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Response, _impl_.headers_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Response, _impl_.time_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Response, _impl_.backend_latency_), - ~0u, - ~0u, - ~0u, - 0, - 1, - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource_LabelsEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource_LabelsEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource_LabelsEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource_LabelsEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource_AnnotationsEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource_AnnotationsEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource_AnnotationsEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource_AnnotationsEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource, _impl_.service_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource, _impl_.type_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource, _impl_.labels_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource, _impl_.uid_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource, _impl_.annotations_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource, _impl_.display_name_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource, _impl_.create_time_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource, _impl_.update_time_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource, _impl_.delete_time_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource, _impl_.etag_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource, _impl_.location_), - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - 0, - 1, - 2, - ~0u, - ~0u, - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext, _impl_.origin_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext, _impl_.source_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext, _impl_.destination_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext, _impl_.request_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext, _impl_.response_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext, _impl_.resource_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext, _impl_.api_), - PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext, _impl_.extensions_), - 6, - 0, - 1, - 2, - 3, - 4, - 5, - ~0u, +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto = nullptr; + +const uint32_t TableStruct_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Peer_LabelsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Peer_LabelsEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Peer_LabelsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Peer_LabelsEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Peer, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Peer, ip_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Peer, port_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Peer, labels_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Peer, principal_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Peer, region_code_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Api, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Api, service_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Api, operation_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Api, protocol_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Api, version_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Auth, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Auth, principal_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Auth, audiences_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Auth, presenter_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Auth, claims_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Auth, access_levels_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Request_HeadersEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Request_HeadersEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Request_HeadersEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Request_HeadersEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Request, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Request, id_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Request, method_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Request, headers_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Request, path_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Request, host_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Request, scheme_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Request, query_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Request, time_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Request, size_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Request, protocol_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Request, reason_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Request, auth_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Response_HeadersEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Response_HeadersEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Response_HeadersEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Response_HeadersEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Response, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Response, code_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Response, size_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Response, headers_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Response, time_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Response, backend_latency_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource_LabelsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource_LabelsEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource_LabelsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource_LabelsEntry_DoNotUse, value_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource_AnnotationsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource_AnnotationsEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource_AnnotationsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource_AnnotationsEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource, service_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource, name_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource, type_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource, labels_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource, uid_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource, annotations_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource, display_name_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource, create_time_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource, update_time_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource, delete_time_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource, etag_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext_Resource, location_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext, origin_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext, source_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext, destination_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext, request_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext, response_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext, resource_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext, api_), + PROTOBUF_FIELD_OFFSET(::google::rpc::context::AttributeContext, extensions_), }; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, 10, -1, sizeof(::google::rpc::context::AttributeContext_Peer_LabelsEntry_DoNotUse)}, - {12, -1, -1, sizeof(::google::rpc::context::AttributeContext_Peer)}, - {25, -1, -1, sizeof(::google::rpc::context::AttributeContext_Api)}, - {37, 50, -1, sizeof(::google::rpc::context::AttributeContext_Auth)}, - {55, 65, -1, sizeof(::google::rpc::context::AttributeContext_Request_HeadersEntry_DoNotUse)}, - {67, 87, -1, sizeof(::google::rpc::context::AttributeContext_Request)}, - {99, 109, -1, sizeof(::google::rpc::context::AttributeContext_Response_HeadersEntry_DoNotUse)}, - {111, 124, -1, sizeof(::google::rpc::context::AttributeContext_Response)}, - {129, 139, -1, sizeof(::google::rpc::context::AttributeContext_Resource_LabelsEntry_DoNotUse)}, - {141, 151, -1, sizeof(::google::rpc::context::AttributeContext_Resource_AnnotationsEntry_DoNotUse)}, - {153, 173, -1, sizeof(::google::rpc::context::AttributeContext_Resource)}, - {185, 201, -1, sizeof(::google::rpc::context::AttributeContext)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, 8, -1, sizeof(::google::rpc::context::AttributeContext_Peer_LabelsEntry_DoNotUse)}, + { 10, -1, -1, sizeof(::google::rpc::context::AttributeContext_Peer)}, + { 21, -1, -1, sizeof(::google::rpc::context::AttributeContext_Api)}, + { 31, -1, -1, sizeof(::google::rpc::context::AttributeContext_Auth)}, + { 42, 50, -1, sizeof(::google::rpc::context::AttributeContext_Request_HeadersEntry_DoNotUse)}, + { 52, -1, -1, sizeof(::google::rpc::context::AttributeContext_Request)}, + { 70, 78, -1, sizeof(::google::rpc::context::AttributeContext_Response_HeadersEntry_DoNotUse)}, + { 80, -1, -1, sizeof(::google::rpc::context::AttributeContext_Response)}, + { 91, 99, -1, sizeof(::google::rpc::context::AttributeContext_Resource_LabelsEntry_DoNotUse)}, + { 101, 109, -1, sizeof(::google::rpc::context::AttributeContext_Resource_AnnotationsEntry_DoNotUse)}, + { 111, -1, -1, sizeof(::google::rpc::context::AttributeContext_Resource)}, + { 129, -1, -1, sizeof(::google::rpc::context::AttributeContext)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::google::rpc::context::_AttributeContext_Peer_LabelsEntry_DoNotUse_default_instance_._instance, - &::google::rpc::context::_AttributeContext_Peer_default_instance_._instance, - &::google::rpc::context::_AttributeContext_Api_default_instance_._instance, - &::google::rpc::context::_AttributeContext_Auth_default_instance_._instance, - &::google::rpc::context::_AttributeContext_Request_HeadersEntry_DoNotUse_default_instance_._instance, - &::google::rpc::context::_AttributeContext_Request_default_instance_._instance, - &::google::rpc::context::_AttributeContext_Response_HeadersEntry_DoNotUse_default_instance_._instance, - &::google::rpc::context::_AttributeContext_Response_default_instance_._instance, - &::google::rpc::context::_AttributeContext_Resource_LabelsEntry_DoNotUse_default_instance_._instance, - &::google::rpc::context::_AttributeContext_Resource_AnnotationsEntry_DoNotUse_default_instance_._instance, - &::google::rpc::context::_AttributeContext_Resource_default_instance_._instance, - &::google::rpc::context::_AttributeContext_default_instance_._instance, -}; -const char descriptor_table_protodef_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n*google/rpc/context/attribute_context.p" - "roto\022\022google.rpc.context\032\031google/protobu" - "f/any.proto\032\036google/protobuf/duration.pr" - "oto\032\034google/protobuf/struct.proto\032\037googl" - "e/protobuf/timestamp.proto\"\201\024\n\020Attribute" - "Context\022A\n\006origin\030\007 \001(\0132).google.rpc.con" - "text.AttributeContext.PeerR\006origin\022A\n\006so" - "urce\030\001 \001(\0132).google.rpc.context.Attribut" - "eContext.PeerR\006source\022K\n\013destination\030\002 \001" - "(\0132).google.rpc.context.AttributeContext" - ".PeerR\013destination\022F\n\007request\030\003 \001(\0132,.go" - "ogle.rpc.context.AttributeContext.Reques" - "tR\007request\022I\n\010response\030\004 \001(\0132-.google.rp" - "c.context.AttributeContext.ResponseR\010res" - "ponse\022I\n\010resource\030\005 \001(\0132-.google.rpc.con" - "text.AttributeContext.ResourceR\010resource" - "\022:\n\003api\030\006 \001(\0132(.google.rpc.context.Attri" - "buteContext.ApiR\003api\0224\n\nextensions\030\010 \003(\013" - "2\024.google.protobuf.AnyR\nextensions\032\363\001\n\004P" - "eer\022\016\n\002ip\030\001 \001(\tR\002ip\022\022\n\004port\030\002 \001(\003R\004port\022" - "M\n\006labels\030\006 \003(\01325.google.rpc.context.Att" - "ributeContext.Peer.LabelsEntryR\006labels\022\034" - "\n\tprincipal\030\007 \001(\tR\tprincipal\022\037\n\013region_c" - "ode\030\010 \001(\tR\nregionCode\0329\n\013LabelsEntry\022\020\n\003" - "key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\tR\005value:\0028\001" - "\032s\n\003Api\022\030\n\007service\030\001 \001(\tR\007service\022\034\n\tope" - "ration\030\002 \001(\tR\toperation\022\032\n\010protocol\030\003 \001(" - "\tR\010protocol\022\030\n\007version\030\004 \001(\tR\007version\032\266\001" - "\n\004Auth\022\034\n\tprincipal\030\001 \001(\tR\tprincipal\022\034\n\t" - "audiences\030\002 \003(\tR\taudiences\022\034\n\tpresenter\030" - "\003 \001(\tR\tpresenter\022/\n\006claims\030\004 \001(\0132\027.googl" - "e.protobuf.StructR\006claims\022#\n\raccess_leve" - "ls\030\005 \003(\tR\014accessLevels\032\317\003\n\007Request\022\016\n\002id" - "\030\001 \001(\tR\002id\022\026\n\006method\030\002 \001(\tR\006method\022S\n\007he" - "aders\030\003 \003(\01329.google.rpc.context.Attribu" - "teContext.Request.HeadersEntryR\007headers\022" - "\022\n\004path\030\004 \001(\tR\004path\022\022\n\004host\030\005 \001(\tR\004host\022" - "\026\n\006scheme\030\006 \001(\tR\006scheme\022\024\n\005query\030\007 \001(\tR\005" - "query\022.\n\004time\030\t \001(\0132\032.google.protobuf.Ti" - "mestampR\004time\022\022\n\004size\030\n \001(\003R\004size\022\032\n\010pro" - "tocol\030\013 \001(\tR\010protocol\022\026\n\006reason\030\014 \001(\tR\006r" - "eason\022=\n\004auth\030\r \001(\0132).google.rpc.context" - ".AttributeContext.AuthR\004auth\032:\n\014HeadersE" - "ntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\tR\005v" - "alue:\0028\001\032\270\002\n\010Response\022\022\n\004code\030\001 \001(\003R\004cod" - "e\022\022\n\004size\030\002 \001(\003R\004size\022T\n\007headers\030\003 \003(\0132:" - ".google.rpc.context.AttributeContext.Res" - "ponse.HeadersEntryR\007headers\022.\n\004time\030\004 \001(" - "\0132\032.google.protobuf.TimestampR\004time\022B\n\017b" - "ackend_latency\030\005 \001(\0132\031.google.protobuf.D" - "urationR\016backendLatency\032:\n\014HeadersEntry\022" - "\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\tR\005value:" - "\0028\001\032\230\005\n\010Resource\022\030\n\007service\030\001 \001(\tR\007servi" - "ce\022\022\n\004name\030\002 \001(\tR\004name\022\022\n\004type\030\003 \001(\tR\004ty" - "pe\022Q\n\006labels\030\004 \003(\01329.google.rpc.context." - "AttributeContext.Resource.LabelsEntryR\006l" - "abels\022\020\n\003uid\030\005 \001(\tR\003uid\022`\n\013annotations\030\006" - " \003(\0132>.google.rpc.context.AttributeConte" - "xt.Resource.AnnotationsEntryR\013annotation" - "s\022!\n\014display_name\030\007 \001(\tR\013displayName\022;\n\013" - "create_time\030\010 \001(\0132\032.google.protobuf.Time" - "stampR\ncreateTime\022;\n\013update_time\030\t \001(\0132\032" - ".google.protobuf.TimestampR\nupdateTime\022;" - "\n\013delete_time\030\n \001(\0132\032.google.protobuf.Ti" - "mestampR\ndeleteTime\022\022\n\004etag\030\013 \001(\tR\004etag\022" - "\032\n\010location\030\014 \001(\tR\010location\0329\n\013LabelsEnt" - "ry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\tR\005val" - "ue:\0028\001\032>\n\020AnnotationsEntry\022\020\n\003key\030\001 \001(\tR" - "\003key\022\024\n\005value\030\002 \001(\tR\005value:\0028\001B\363\001\n\026com.g" - "oogle.rpc.contextB\025AttributeContextProto" - "P\001ZUgoogle.golang.org/genproto/googleapi" - "s/rpc/context/attribute_context;attribut" - "e_context\370\001\001\242\002\003GRC\252\002\022Google.Rpc.Context\312" - "\002\022Google\\Rpc\\Context\342\002\036Google\\Rpc\\Contex" - "t\\GPBMetadata\352\002\024Google::Rpc::Contextb\006pr" - "oto3" + &::google::rpc::context::_AttributeContext_Peer_LabelsEntry_DoNotUse_default_instance_._instance, + &::google::rpc::context::_AttributeContext_Peer_default_instance_._instance, + &::google::rpc::context::_AttributeContext_Api_default_instance_._instance, + &::google::rpc::context::_AttributeContext_Auth_default_instance_._instance, + &::google::rpc::context::_AttributeContext_Request_HeadersEntry_DoNotUse_default_instance_._instance, + &::google::rpc::context::_AttributeContext_Request_default_instance_._instance, + &::google::rpc::context::_AttributeContext_Response_HeadersEntry_DoNotUse_default_instance_._instance, + &::google::rpc::context::_AttributeContext_Response_default_instance_._instance, + &::google::rpc::context::_AttributeContext_Resource_LabelsEntry_DoNotUse_default_instance_._instance, + &::google::rpc::context::_AttributeContext_Resource_AnnotationsEntry_DoNotUse_default_instance_._instance, + &::google::rpc::context::_AttributeContext_Resource_default_instance_._instance, + &::google::rpc::context::_AttributeContext_default_instance_._instance, }; -static const ::_pbi::DescriptorTable* const descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_deps[4] = - { - &::descriptor_table_google_2fprotobuf_2fany_2eproto, - &::descriptor_table_google_2fprotobuf_2fduration_2eproto, - &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, - &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto, + +const char descriptor_table_protodef_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n*google/rpc/context/attribute_context.p" + "roto\022\022google.rpc.context\032\031google/protobu" + "f/any.proto\032\036google/protobuf/duration.pr" + "oto\032\034google/protobuf/struct.proto\032\037googl" + "e/protobuf/timestamp.proto\"\201\024\n\020Attribute" + "Context\022A\n\006origin\030\007 \001(\0132).google.rpc.con" + "text.AttributeContext.PeerR\006origin\022A\n\006so" + "urce\030\001 \001(\0132).google.rpc.context.Attribut" + "eContext.PeerR\006source\022K\n\013destination\030\002 \001" + "(\0132).google.rpc.context.AttributeContext" + ".PeerR\013destination\022F\n\007request\030\003 \001(\0132,.go" + "ogle.rpc.context.AttributeContext.Reques" + "tR\007request\022I\n\010response\030\004 \001(\0132-.google.rp" + "c.context.AttributeContext.ResponseR\010res" + "ponse\022I\n\010resource\030\005 \001(\0132-.google.rpc.con" + "text.AttributeContext.ResourceR\010resource" + "\022:\n\003api\030\006 \001(\0132(.google.rpc.context.Attri" + "buteContext.ApiR\003api\0224\n\nextensions\030\010 \003(\013" + "2\024.google.protobuf.AnyR\nextensions\032\363\001\n\004P" + "eer\022\016\n\002ip\030\001 \001(\tR\002ip\022\022\n\004port\030\002 \001(\003R\004port\022" + "M\n\006labels\030\006 \003(\01325.google.rpc.context.Att" + "ributeContext.Peer.LabelsEntryR\006labels\022\034" + "\n\tprincipal\030\007 \001(\tR\tprincipal\022\037\n\013region_c" + "ode\030\010 \001(\tR\nregionCode\0329\n\013LabelsEntry\022\020\n\003" + "key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\tR\005value:\0028\001" + "\032s\n\003Api\022\030\n\007service\030\001 \001(\tR\007service\022\034\n\tope" + "ration\030\002 \001(\tR\toperation\022\032\n\010protocol\030\003 \001(" + "\tR\010protocol\022\030\n\007version\030\004 \001(\tR\007version\032\266\001" + "\n\004Auth\022\034\n\tprincipal\030\001 \001(\tR\tprincipal\022\034\n\t" + "audiences\030\002 \003(\tR\taudiences\022\034\n\tpresenter\030" + "\003 \001(\tR\tpresenter\022/\n\006claims\030\004 \001(\0132\027.googl" + "e.protobuf.StructR\006claims\022#\n\raccess_leve" + "ls\030\005 \003(\tR\014accessLevels\032\317\003\n\007Request\022\016\n\002id" + "\030\001 \001(\tR\002id\022\026\n\006method\030\002 \001(\tR\006method\022S\n\007he" + "aders\030\003 \003(\01329.google.rpc.context.Attribu" + "teContext.Request.HeadersEntryR\007headers\022" + "\022\n\004path\030\004 \001(\tR\004path\022\022\n\004host\030\005 \001(\tR\004host\022" + "\026\n\006scheme\030\006 \001(\tR\006scheme\022\024\n\005query\030\007 \001(\tR\005" + "query\022.\n\004time\030\t \001(\0132\032.google.protobuf.Ti" + "mestampR\004time\022\022\n\004size\030\n \001(\003R\004size\022\032\n\010pro" + "tocol\030\013 \001(\tR\010protocol\022\026\n\006reason\030\014 \001(\tR\006r" + "eason\022=\n\004auth\030\r \001(\0132).google.rpc.context" + ".AttributeContext.AuthR\004auth\032:\n\014HeadersE" + "ntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\tR\005v" + "alue:\0028\001\032\270\002\n\010Response\022\022\n\004code\030\001 \001(\003R\004cod" + "e\022\022\n\004size\030\002 \001(\003R\004size\022T\n\007headers\030\003 \003(\0132:" + ".google.rpc.context.AttributeContext.Res" + "ponse.HeadersEntryR\007headers\022.\n\004time\030\004 \001(" + "\0132\032.google.protobuf.TimestampR\004time\022B\n\017b" + "ackend_latency\030\005 \001(\0132\031.google.protobuf.D" + "urationR\016backendLatency\032:\n\014HeadersEntry\022" + "\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\tR\005value:" + "\0028\001\032\230\005\n\010Resource\022\030\n\007service\030\001 \001(\tR\007servi" + "ce\022\022\n\004name\030\002 \001(\tR\004name\022\022\n\004type\030\003 \001(\tR\004ty" + "pe\022Q\n\006labels\030\004 \003(\01329.google.rpc.context." + "AttributeContext.Resource.LabelsEntryR\006l" + "abels\022\020\n\003uid\030\005 \001(\tR\003uid\022`\n\013annotations\030\006" + " \003(\0132>.google.rpc.context.AttributeConte" + "xt.Resource.AnnotationsEntryR\013annotation" + "s\022!\n\014display_name\030\007 \001(\tR\013displayName\022;\n\013" + "create_time\030\010 \001(\0132\032.google.protobuf.Time" + "stampR\ncreateTime\022;\n\013update_time\030\t \001(\0132\032" + ".google.protobuf.TimestampR\nupdateTime\022;" + "\n\013delete_time\030\n \001(\0132\032.google.protobuf.Ti" + "mestampR\ndeleteTime\022\022\n\004etag\030\013 \001(\tR\004etag\022" + "\032\n\010location\030\014 \001(\tR\010location\0329\n\013LabelsEnt" + "ry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\tR\005val" + "ue:\0028\001\032>\n\020AnnotationsEntry\022\020\n\003key\030\001 \001(\tR" + "\003key\022\024\n\005value\030\002 \001(\tR\005value:\0028\001B\213\001\n\026com.g" + "oogle.rpc.contextB\025AttributeContextProto" + "P\001ZUgoogle.golang.org/genproto/googleapi" + "s/rpc/context/attribute_context;attribut" + "e_context\370\001\001b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_deps[4] = { + &::descriptor_table_google_2fprotobuf_2fany_2eproto, + &::descriptor_table_google_2fprotobuf_2fduration_2eproto, + &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, + &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto, }; -static ::absl::once_flag descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_once; +static ::_pbi::once_flag descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto = { - false, - false, - 3004, - descriptor_table_protodef_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto, + false, false, 2900, descriptor_table_protodef_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto, "google/rpc/context/attribute_context.proto", - &descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_once, - descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_deps, - 4, - 12, - schemas, - file_default_instances, - TableStruct_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto::offsets, - file_level_metadata_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto, - file_level_enum_descriptors_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto, + &descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_once, descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_deps, 4, 12, + schemas, file_default_instances, TableStruct_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto::offsets, + file_level_metadata_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto, file_level_enum_descriptors_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto, file_level_service_descriptors_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_getter() { return &descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto(&descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto(&descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto); namespace google { namespace rpc { namespace context { + // =================================================================== AttributeContext_Peer_LabelsEntry_DoNotUse::AttributeContext_Peer_LabelsEntry_DoNotUse() {} -AttributeContext_Peer_LabelsEntry_DoNotUse::AttributeContext_Peer_LabelsEntry_DoNotUse(::google::protobuf::Arena* arena) +AttributeContext_Peer_LabelsEntry_DoNotUse::AttributeContext_Peer_LabelsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) : SuperType(arena) {} -::google::protobuf::Metadata AttributeContext_Peer_LabelsEntry_DoNotUse::GetMetadata() const { +void AttributeContext_Peer_LabelsEntry_DoNotUse::MergeFrom(const AttributeContext_Peer_LabelsEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata AttributeContext_Peer_LabelsEntry_DoNotUse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_getter, &descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_once, file_level_metadata_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto[0]); } + // =================================================================== class AttributeContext_Peer::_Internal { public: }; -AttributeContext_Peer::AttributeContext_Peer(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +AttributeContext_Peer::AttributeContext_Peer(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + labels_(arena) { + SharedCtor(); + if (arena != nullptr && !is_message_owned) { + arena->OwnCustomDestructor(this, &AttributeContext_Peer::ArenaDtor); + } // @@protoc_insertion_point(arena_constructor:google.rpc.context.AttributeContext.Peer) } -inline PROTOBUF_NDEBUG_INLINE AttributeContext_Peer::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : labels_{visibility, arena, from.labels_}, - ip_(arena, from.ip_), - principal_(arena, from.principal_), - region_code_(arena, from.region_code_), - _cached_size_{0} {} - -AttributeContext_Peer::AttributeContext_Peer( - ::google::protobuf::Arena* arena, - const AttributeContext_Peer& from) - : ::google::protobuf::Message(arena) { - AttributeContext_Peer* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.port_ = from._impl_.port_; - +AttributeContext_Peer::AttributeContext_Peer(const AttributeContext_Peer& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + labels_.MergeFrom(from.labels_); + ip_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + ip_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_ip().empty()) { + ip_.Set(from._internal_ip(), + GetArenaForAllocation()); + } + principal_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + principal_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_principal().empty()) { + principal_.Set(from._internal_principal(), + GetArenaForAllocation()); + } + region_code_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + region_code_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_region_code().empty()) { + region_code_.Set(from._internal_region_code(), + GetArenaForAllocation()); + } + port_ = from.port_; // @@protoc_insertion_point(copy_constructor:google.rpc.context.AttributeContext.Peer) } -inline PROTOBUF_NDEBUG_INLINE AttributeContext_Peer::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : labels_{visibility, arena}, - ip_(arena), - principal_(arena), - region_code_(arena), - _cached_size_{0} {} -inline void AttributeContext_Peer::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.port_ = {}; +inline void AttributeContext_Peer::SharedCtor() { +ip_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + ip_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +principal_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + principal_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +region_code_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + region_code_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +port_ = int64_t{0}; } + AttributeContext_Peer::~AttributeContext_Peer() { // @@protoc_insertion_point(destructor:google.rpc.context.AttributeContext.Peer) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + ArenaDtor(this); + return; + } SharedDtor(); } + inline void AttributeContext_Peer::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.ip_.Destroy(); - _impl_.principal_.Destroy(); - _impl_.region_code_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + labels_.Destruct(); + ip_.Destroy(); + principal_.Destroy(); + region_code_.Destroy(); +} + +void AttributeContext_Peer::ArenaDtor(void* object) { + AttributeContext_Peer* _this = reinterpret_cast< AttributeContext_Peer* >(object); + _this->labels_.Destruct(); +} +void AttributeContext_Peer::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void AttributeContext_Peer::Clear() { +void AttributeContext_Peer::Clear() { // @@protoc_insertion_point(message_clear_start:google.rpc.context.AttributeContext.Peer) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.labels_.Clear(); - _impl_.ip_.ClearToEmpty(); - _impl_.principal_.ClearToEmpty(); - _impl_.region_code_.ClearToEmpty(); - _impl_.port_ = ::int64_t{0}; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* AttributeContext_Peer::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + labels_.Clear(); + ip_.ClearToEmpty(); + principal_.ClearToEmpty(); + region_code_.ClearToEmpty(); + port_ = int64_t{0}; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* AttributeContext_Peer::_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 ip = 1 [json_name = "ip"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_ip(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.context.AttributeContext.Peer.ip")); + } else + goto handle_unusual; + continue; + // int64 port = 2 [json_name = "port"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + port_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // map labels = 6 [json_name = "labels"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&labels_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(ptr)); + } else + goto handle_unusual; + continue; + // string principal = 7 [json_name = "principal"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + auto str = _internal_mutable_principal(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.context.AttributeContext.Peer.principal")); + } else + goto handle_unusual; + continue; + // string region_code = 8 [json_name = "regionCode"]; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { + auto str = _internal_mutable_region_code(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.context.AttributeContext.Peer.region_code")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 5, 1, 77, 2> AttributeContext_Peer::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 8, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967068, // skipmap - offsetof(decltype(_table_), field_entries), - 5, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_AttributeContext_Peer_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string region_code = 8 [json_name = "regionCode"]; - {::_pbi::TcParser::FastUS1, - {66, 63, 0, PROTOBUF_FIELD_OFFSET(AttributeContext_Peer, _impl_.region_code_)}}, - // string ip = 1 [json_name = "ip"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(AttributeContext_Peer, _impl_.ip_)}}, - // int64 port = 2 [json_name = "port"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(AttributeContext_Peer, _impl_.port_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(AttributeContext_Peer, _impl_.port_)}}, - // string principal = 7 [json_name = "principal"]; - {::_pbi::TcParser::FastUS1, - {58, 63, 0, PROTOBUF_FIELD_OFFSET(AttributeContext_Peer, _impl_.principal_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string ip = 1 [json_name = "ip"]; - {PROTOBUF_FIELD_OFFSET(AttributeContext_Peer, _impl_.ip_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // int64 port = 2 [json_name = "port"]; - {PROTOBUF_FIELD_OFFSET(AttributeContext_Peer, _impl_.port_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - // map labels = 6 [json_name = "labels"]; - {PROTOBUF_FIELD_OFFSET(AttributeContext_Peer, _impl_.labels_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, - // string principal = 7 [json_name = "principal"]; - {PROTOBUF_FIELD_OFFSET(AttributeContext_Peer, _impl_.principal_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string region_code = 8 [json_name = "regionCode"]; - {PROTOBUF_FIELD_OFFSET(AttributeContext_Peer, _impl_.region_code_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetMapAuxInfo< - decltype(AttributeContext_Peer()._impl_.labels_)>( - 1, 0, 0, 9, - 9)}, - }}, {{ - "\50\2\0\6\11\13\0\0" - "google.rpc.context.AttributeContext.Peer" - "ip" - "labels" - "principal" - "region_code" - }}, -}; - -::uint8_t* AttributeContext_Peer::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* AttributeContext_Peer::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.rpc.context.AttributeContext.Peer) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string ip = 1 [json_name = "ip"]; if (!this->_internal_ip().empty()) { - const std::string& _s = this->_internal_ip(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.context.AttributeContext.Peer.ip"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_ip().data(), static_cast(this->_internal_ip().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Peer.ip"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_ip(), target); } // int64 port = 2 [json_name = "port"]; if (this->_internal_port() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<2>( - stream, this->_internal_port(), target); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_port(), target); } // map labels = 6 [json_name = "labels"]; - if (!_internal_labels().empty()) { - using MapType = ::google::protobuf::Map; - using WireHelper = _pbi::MapEntryFuncs; - const auto& field = _internal_labels(); - - if (stream->IsSerializationDeterministic() && field.size() > 1) { - for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { - target = WireHelper::InternalSerialize( - 6, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.context.AttributeContext.Peer.labels"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.second.data(), static_cast(entry.second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.context.AttributeContext.Peer.labels"); + if (!this->_internal_labels().empty()) { + using MapType = ::_pb::Map; + using WireHelper = AttributeContext_Peer_LabelsEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_labels(); + 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, + "google.rpc.context.AttributeContext.Peer.LabelsEntry.key"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + entry.second.data(), static_cast(entry.second.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Peer.LabelsEntry.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 : field) { - target = WireHelper::InternalSerialize( - 6, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.context.AttributeContext.Peer.labels"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.second.data(), static_cast(entry.second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.context.AttributeContext.Peer.labels"); + for (const auto& entry : map_field) { + target = WireHelper::InternalSerialize(6, entry.first, entry.second, target, stream); + check_utf8(entry); } } } // string principal = 7 [json_name = "principal"]; if (!this->_internal_principal().empty()) { - const std::string& _s = this->_internal_principal(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.context.AttributeContext.Peer.principal"); - target = stream->WriteStringMaybeAliased(7, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_principal().data(), static_cast(this->_internal_principal().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Peer.principal"); + target = stream->WriteStringMaybeAliased( + 7, this->_internal_principal(), target); } // string region_code = 8 [json_name = "regionCode"]; if (!this->_internal_region_code().empty()) { - const std::string& _s = this->_internal_region_code(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.context.AttributeContext.Peer.region_code"); - target = stream->WriteStringMaybeAliased(8, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_region_code().data(), static_cast(this->_internal_region_code().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Peer.region_code"); + target = stream->WriteStringMaybeAliased( + 8, this->_internal_region_code(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.rpc.context.AttributeContext.Peer) return target; } -::size_t AttributeContext_Peer::ByteSizeLong() const { +size_t AttributeContext_Peer::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.rpc.context.AttributeContext.Peer) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // map labels = 6 [json_name = "labels"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_labels_size()); - for (const auto& entry : _internal_labels()) { - total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_labels_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator + it = this->_internal_labels().begin(); + it != this->_internal_labels().end(); ++it) { + total_size += AttributeContext_Peer_LabelsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); } + // string ip = 1 [json_name = "ip"]; if (!this->_internal_ip().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_ip()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_ip()); } // string principal = 7 [json_name = "principal"]; if (!this->_internal_principal().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_principal()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_principal()); } // string region_code = 8 [json_name = "regionCode"]; if (!this->_internal_region_code().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_region_code()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_region_code()); } // int64 port = 2 [json_name = "port"]; if (this->_internal_port() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( - this->_internal_port()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_port()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData AttributeContext_Peer::_class_data_ = { - AttributeContext_Peer::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AttributeContext_Peer::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + AttributeContext_Peer::MergeImpl }; -const ::google::protobuf::Message::ClassData* AttributeContext_Peer::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AttributeContext_Peer::GetClassData() const { return &_class_data_; } + +void AttributeContext_Peer::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void AttributeContext_Peer::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.context.AttributeContext.Peer) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void AttributeContext_Peer::MergeFrom(const AttributeContext_Peer& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.context.AttributeContext.Peer) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.labels_.MergeFrom(from._impl_.labels_); + labels_.MergeFrom(from.labels_); if (!from._internal_ip().empty()) { - _this->_internal_set_ip(from._internal_ip()); + _internal_set_ip(from._internal_ip()); } if (!from._internal_principal().empty()) { - _this->_internal_set_principal(from._internal_principal()); + _internal_set_principal(from._internal_principal()); } if (!from._internal_region_code().empty()) { - _this->_internal_set_region_code(from._internal_region_code()); + _internal_set_region_code(from._internal_region_code()); } if (from._internal_port() != 0) { - _this->_internal_set_port(from._internal_port()); + _internal_set_port(from._internal_port()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void AttributeContext_Peer::CopyFrom(const AttributeContext_Peer& from) { @@ -995,275 +854,334 @@ void AttributeContext_Peer::CopyFrom(const AttributeContext_Peer& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool AttributeContext_Peer::IsInitialized() const { +bool AttributeContext_Peer::IsInitialized() const { return true; } -::_pbi::CachedSize* AttributeContext_Peer::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void AttributeContext_Peer::InternalSwap(AttributeContext_Peer* PROTOBUF_RESTRICT other) { +void AttributeContext_Peer::InternalSwap(AttributeContext_Peer* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.labels_.InternalSwap(&other->_impl_.labels_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.ip_, &other->_impl_.ip_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.principal_, &other->_impl_.principal_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.region_code_, &other->_impl_.region_code_, arena); - swap(_impl_.port_, other->_impl_.port_); -} - -::google::protobuf::Metadata AttributeContext_Peer::GetMetadata() const { + labels_.InternalSwap(&other->labels_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &ip_, lhs_arena, + &other->ip_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &principal_, lhs_arena, + &other->principal_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + ®ion_code_, lhs_arena, + &other->region_code_, rhs_arena + ); + swap(port_, other->port_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata AttributeContext_Peer::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_getter, &descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_once, file_level_metadata_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto[1]); } + // =================================================================== class AttributeContext_Api::_Internal { public: }; -AttributeContext_Api::AttributeContext_Api(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +AttributeContext_Api::AttributeContext_Api(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.rpc.context.AttributeContext.Api) } -inline PROTOBUF_NDEBUG_INLINE AttributeContext_Api::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : service_(arena, from.service_), - operation_(arena, from.operation_), - protocol_(arena, from.protocol_), - version_(arena, from.version_), - _cached_size_{0} {} - -AttributeContext_Api::AttributeContext_Api( - ::google::protobuf::Arena* arena, - const AttributeContext_Api& from) - : ::google::protobuf::Message(arena) { - AttributeContext_Api* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +AttributeContext_Api::AttributeContext_Api(const AttributeContext_Api& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + service_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + service_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_service().empty()) { + service_.Set(from._internal_service(), + GetArenaForAllocation()); + } + operation_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + operation_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_operation().empty()) { + operation_.Set(from._internal_operation(), + GetArenaForAllocation()); + } + protocol_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + protocol_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_protocol().empty()) { + protocol_.Set(from._internal_protocol(), + GetArenaForAllocation()); + } + version_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + version_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_version().empty()) { + version_.Set(from._internal_version(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:google.rpc.context.AttributeContext.Api) } -inline PROTOBUF_NDEBUG_INLINE AttributeContext_Api::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : service_(arena), - operation_(arena), - protocol_(arena), - version_(arena), - _cached_size_{0} {} -inline void AttributeContext_Api::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void AttributeContext_Api::SharedCtor() { +service_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + service_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +operation_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + operation_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +protocol_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + protocol_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +version_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + version_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + AttributeContext_Api::~AttributeContext_Api() { // @@protoc_insertion_point(destructor:google.rpc.context.AttributeContext.Api) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void AttributeContext_Api::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.service_.Destroy(); - _impl_.operation_.Destroy(); - _impl_.protocol_.Destroy(); - _impl_.version_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + service_.Destroy(); + operation_.Destroy(); + protocol_.Destroy(); + version_.Destroy(); } -PROTOBUF_NOINLINE void AttributeContext_Api::Clear() { +void AttributeContext_Api::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void AttributeContext_Api::Clear() { // @@protoc_insertion_point(message_clear_start:google.rpc.context.AttributeContext.Api) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.service_.ClearToEmpty(); - _impl_.operation_.ClearToEmpty(); - _impl_.protocol_.ClearToEmpty(); - _impl_.version_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* AttributeContext_Api::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + service_.ClearToEmpty(); + operation_.ClearToEmpty(); + protocol_.ClearToEmpty(); + version_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* AttributeContext_Api::_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 service = 1 [json_name = "service"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_service(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.context.AttributeContext.Api.service")); + } else + goto handle_unusual; + continue; + // string operation = 2 [json_name = "operation"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_operation(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.context.AttributeContext.Api.operation")); + } else + goto handle_unusual; + continue; + // string protocol = 3 [json_name = "protocol"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_protocol(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.context.AttributeContext.Api.protocol")); + } else + goto handle_unusual; + continue; + // string version = 4 [json_name = "version"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_version(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.context.AttributeContext.Api.version")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 0, 79, 2> AttributeContext_Api::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_AttributeContext_Api_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string version = 4 [json_name = "version"]; - {::_pbi::TcParser::FastUS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(AttributeContext_Api, _impl_.version_)}}, - // string service = 1 [json_name = "service"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(AttributeContext_Api, _impl_.service_)}}, - // string operation = 2 [json_name = "operation"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(AttributeContext_Api, _impl_.operation_)}}, - // string protocol = 3 [json_name = "protocol"]; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(AttributeContext_Api, _impl_.protocol_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string service = 1 [json_name = "service"]; - {PROTOBUF_FIELD_OFFSET(AttributeContext_Api, _impl_.service_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string operation = 2 [json_name = "operation"]; - {PROTOBUF_FIELD_OFFSET(AttributeContext_Api, _impl_.operation_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string protocol = 3 [json_name = "protocol"]; - {PROTOBUF_FIELD_OFFSET(AttributeContext_Api, _impl_.protocol_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string version = 4 [json_name = "version"]; - {PROTOBUF_FIELD_OFFSET(AttributeContext_Api, _impl_.version_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\47\7\11\10\7\0\0\0" - "google.rpc.context.AttributeContext.Api" - "service" - "operation" - "protocol" - "version" - }}, -}; - -::uint8_t* AttributeContext_Api::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* AttributeContext_Api::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.rpc.context.AttributeContext.Api) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string service = 1 [json_name = "service"]; if (!this->_internal_service().empty()) { - const std::string& _s = this->_internal_service(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.context.AttributeContext.Api.service"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_service().data(), static_cast(this->_internal_service().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Api.service"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_service(), target); } // string operation = 2 [json_name = "operation"]; if (!this->_internal_operation().empty()) { - const std::string& _s = this->_internal_operation(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.context.AttributeContext.Api.operation"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_operation().data(), static_cast(this->_internal_operation().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Api.operation"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_operation(), target); } // string protocol = 3 [json_name = "protocol"]; if (!this->_internal_protocol().empty()) { - const std::string& _s = this->_internal_protocol(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.context.AttributeContext.Api.protocol"); - target = stream->WriteStringMaybeAliased(3, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_protocol().data(), static_cast(this->_internal_protocol().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Api.protocol"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_protocol(), target); } // string version = 4 [json_name = "version"]; if (!this->_internal_version().empty()) { - const std::string& _s = this->_internal_version(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.context.AttributeContext.Api.version"); - target = stream->WriteStringMaybeAliased(4, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_version().data(), static_cast(this->_internal_version().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Api.version"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_version(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.rpc.context.AttributeContext.Api) return target; } -::size_t AttributeContext_Api::ByteSizeLong() const { +size_t AttributeContext_Api::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.rpc.context.AttributeContext.Api) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string service = 1 [json_name = "service"]; if (!this->_internal_service().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_service()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_service()); } // string operation = 2 [json_name = "operation"]; if (!this->_internal_operation().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_operation()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_operation()); } // string protocol = 3 [json_name = "protocol"]; if (!this->_internal_protocol().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_protocol()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_protocol()); } // string version = 4 [json_name = "version"]; if (!this->_internal_version().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_version()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_version()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData AttributeContext_Api::_class_data_ = { - AttributeContext_Api::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AttributeContext_Api::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + AttributeContext_Api::MergeImpl }; -const ::google::protobuf::Message::ClassData* AttributeContext_Api::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AttributeContext_Api::GetClassData() const { return &_class_data_; } + +void AttributeContext_Api::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void AttributeContext_Api::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.context.AttributeContext.Api) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void AttributeContext_Api::MergeFrom(const AttributeContext_Api& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.context.AttributeContext.Api) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_service().empty()) { - _this->_internal_set_service(from._internal_service()); + _internal_set_service(from._internal_service()); } if (!from._internal_operation().empty()) { - _this->_internal_set_operation(from._internal_operation()); + _internal_set_operation(from._internal_operation()); } if (!from._internal_protocol().empty()) { - _this->_internal_set_protocol(from._internal_protocol()); + _internal_set_protocol(from._internal_protocol()); } if (!from._internal_version().empty()) { - _this->_internal_set_version(from._internal_version()); + _internal_set_version(from._internal_version()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void AttributeContext_Api::CopyFrom(const AttributeContext_Api& from) { @@ -1273,324 +1191,369 @@ void AttributeContext_Api::CopyFrom(const AttributeContext_Api& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool AttributeContext_Api::IsInitialized() const { +bool AttributeContext_Api::IsInitialized() const { return true; } -::_pbi::CachedSize* AttributeContext_Api::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void AttributeContext_Api::InternalSwap(AttributeContext_Api* PROTOBUF_RESTRICT other) { +void AttributeContext_Api::InternalSwap(AttributeContext_Api* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.service_, &other->_impl_.service_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.operation_, &other->_impl_.operation_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.protocol_, &other->_impl_.protocol_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.version_, &other->_impl_.version_, arena); -} - -::google::protobuf::Metadata AttributeContext_Api::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &service_, lhs_arena, + &other->service_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &operation_, lhs_arena, + &other->operation_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &protocol_, lhs_arena, + &other->protocol_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &version_, lhs_arena, + &other->version_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata AttributeContext_Api::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_getter, &descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_once, file_level_metadata_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto[2]); } + // =================================================================== class AttributeContext_Auth::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(AttributeContext_Auth, _impl_._has_bits_); - static const ::google::protobuf::Struct& claims(const AttributeContext_Auth* msg); - static void set_has_claims(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& claims(const AttributeContext_Auth* msg); }; -const ::google::protobuf::Struct& AttributeContext_Auth::_Internal::claims(const AttributeContext_Auth* msg) { - return *msg->_impl_.claims_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +AttributeContext_Auth::_Internal::claims(const AttributeContext_Auth* msg) { + return *msg->claims_; } void AttributeContext_Auth::clear_claims() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.claims_ != nullptr) _impl_.claims_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && claims_ != nullptr) { + delete claims_; + } + claims_ = nullptr; } -AttributeContext_Auth::AttributeContext_Auth(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +AttributeContext_Auth::AttributeContext_Auth(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + audiences_(arena), + access_levels_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.rpc.context.AttributeContext.Auth) } -inline PROTOBUF_NDEBUG_INLINE AttributeContext_Auth::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - audiences_{visibility, arena, from.audiences_}, - access_levels_{visibility, arena, from.access_levels_}, - principal_(arena, from.principal_), - presenter_(arena, from.presenter_) {} - -AttributeContext_Auth::AttributeContext_Auth( - ::google::protobuf::Arena* arena, - const AttributeContext_Auth& from) - : ::google::protobuf::Message(arena) { - AttributeContext_Auth* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.claims_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.claims_) - : nullptr; - +AttributeContext_Auth::AttributeContext_Auth(const AttributeContext_Auth& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + audiences_(from.audiences_), + access_levels_(from.access_levels_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + principal_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + principal_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_principal().empty()) { + principal_.Set(from._internal_principal(), + GetArenaForAllocation()); + } + presenter_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + presenter_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_presenter().empty()) { + presenter_.Set(from._internal_presenter(), + GetArenaForAllocation()); + } + if (from._internal_has_claims()) { + claims_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.claims_); + } else { + claims_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:google.rpc.context.AttributeContext.Auth) } -inline PROTOBUF_NDEBUG_INLINE AttributeContext_Auth::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - audiences_{visibility, arena}, - access_levels_{visibility, arena}, - principal_(arena), - presenter_(arena) {} -inline void AttributeContext_Auth::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.claims_ = {}; +inline void AttributeContext_Auth::SharedCtor() { +principal_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + principal_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +presenter_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + presenter_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +claims_ = nullptr; } + AttributeContext_Auth::~AttributeContext_Auth() { // @@protoc_insertion_point(destructor:google.rpc.context.AttributeContext.Auth) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void AttributeContext_Auth::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.principal_.Destroy(); - _impl_.presenter_.Destroy(); - delete _impl_.claims_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + principal_.Destroy(); + presenter_.Destroy(); + if (this != internal_default_instance()) delete claims_; +} + +void AttributeContext_Auth::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void AttributeContext_Auth::Clear() { +void AttributeContext_Auth::Clear() { // @@protoc_insertion_point(message_clear_start:google.rpc.context.AttributeContext.Auth) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.audiences_.Clear(); - _impl_.access_levels_.Clear(); - _impl_.principal_.ClearToEmpty(); - _impl_.presenter_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.claims_ != nullptr); - _impl_.claims_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* AttributeContext_Auth::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + audiences_.Clear(); + access_levels_.Clear(); + principal_.ClearToEmpty(); + presenter_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && claims_ != nullptr) { + delete claims_; + } + claims_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* AttributeContext_Auth::_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 principal = 1 [json_name = "principal"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_principal(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.context.AttributeContext.Auth.principal")); + } else + goto handle_unusual; + continue; + // repeated string audiences = 2 [json_name = "audiences"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_audiences(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.context.AttributeContext.Auth.audiences")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } else + goto handle_unusual; + continue; + // string presenter = 3 [json_name = "presenter"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_presenter(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.context.AttributeContext.Auth.presenter")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct claims = 4 [json_name = "claims"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_claims(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // repeated string access_levels = 5 [json_name = "accessLevels"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_access_levels(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.context.AttributeContext.Auth.access_levels")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 5, 1, 89, 2> AttributeContext_Auth::_table_ = { - { - PROTOBUF_FIELD_OFFSET(AttributeContext_Auth, _impl_._has_bits_), - 0, // no _extensions_ - 5, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967264, // skipmap - offsetof(decltype(_table_), field_entries), - 5, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_AttributeContext_Auth_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string principal = 1 [json_name = "principal"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(AttributeContext_Auth, _impl_.principal_)}}, - // repeated string audiences = 2 [json_name = "audiences"]; - {::_pbi::TcParser::FastUR1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(AttributeContext_Auth, _impl_.audiences_)}}, - // string presenter = 3 [json_name = "presenter"]; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(AttributeContext_Auth, _impl_.presenter_)}}, - // .google.protobuf.Struct claims = 4 [json_name = "claims"]; - {::_pbi::TcParser::FastMtS1, - {34, 0, 0, PROTOBUF_FIELD_OFFSET(AttributeContext_Auth, _impl_.claims_)}}, - // repeated string access_levels = 5 [json_name = "accessLevels"]; - {::_pbi::TcParser::FastUR1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(AttributeContext_Auth, _impl_.access_levels_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string principal = 1 [json_name = "principal"]; - {PROTOBUF_FIELD_OFFSET(AttributeContext_Auth, _impl_.principal_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated string audiences = 2 [json_name = "audiences"]; - {PROTOBUF_FIELD_OFFSET(AttributeContext_Auth, _impl_.audiences_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - // string presenter = 3 [json_name = "presenter"]; - {PROTOBUF_FIELD_OFFSET(AttributeContext_Auth, _impl_.presenter_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct claims = 4 [json_name = "claims"]; - {PROTOBUF_FIELD_OFFSET(AttributeContext_Auth, _impl_.claims_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated string access_levels = 5 [json_name = "accessLevels"]; - {PROTOBUF_FIELD_OFFSET(AttributeContext_Auth, _impl_.access_levels_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\50\11\11\11\0\15\0\0" - "google.rpc.context.AttributeContext.Auth" - "principal" - "audiences" - "presenter" - "access_levels" - }}, -}; - -::uint8_t* AttributeContext_Auth::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* AttributeContext_Auth::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.rpc.context.AttributeContext.Auth) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string principal = 1 [json_name = "principal"]; if (!this->_internal_principal().empty()) { - const std::string& _s = this->_internal_principal(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.context.AttributeContext.Auth.principal"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_principal().data(), static_cast(this->_internal_principal().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Auth.principal"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_principal(), target); } // repeated string audiences = 2 [json_name = "audiences"]; - for (int i = 0, n = this->_internal_audiences_size(); i < n; ++i) { - const auto& s = this->_internal_audiences().Get(i); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.context.AttributeContext.Auth.audiences"); + for (int i = 0, n = this->_internal_audiences_size(); i < n; i++) { + const auto& s = this->_internal_audiences(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Auth.audiences"); target = stream->WriteString(2, s, target); } // string presenter = 3 [json_name = "presenter"]; if (!this->_internal_presenter().empty()) { - const std::string& _s = this->_internal_presenter(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.context.AttributeContext.Auth.presenter"); - target = stream->WriteStringMaybeAliased(3, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_presenter().data(), static_cast(this->_internal_presenter().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Auth.presenter"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_presenter(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct claims = 4 [json_name = "claims"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, _Internal::claims(this), + if (this->_internal_has_claims()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::claims(this), _Internal::claims(this).GetCachedSize(), target, stream); } // repeated string access_levels = 5 [json_name = "accessLevels"]; - for (int i = 0, n = this->_internal_access_levels_size(); i < n; ++i) { - const auto& s = this->_internal_access_levels().Get(i); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.context.AttributeContext.Auth.access_levels"); + for (int i = 0, n = this->_internal_access_levels_size(); i < n; i++) { + const auto& s = this->_internal_access_levels(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Auth.access_levels"); target = stream->WriteString(5, s, target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.rpc.context.AttributeContext.Auth) return target; } -::size_t AttributeContext_Auth::ByteSizeLong() const { +size_t AttributeContext_Auth::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.rpc.context.AttributeContext.Auth) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated string audiences = 2 [json_name = "audiences"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_audiences().size()); - for (int i = 0, n = _internal_audiences().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - _internal_audiences().Get(i)); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(audiences_.size()); + for (int i = 0, n = audiences_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + audiences_.Get(i)); } + // repeated string access_levels = 5 [json_name = "accessLevels"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_access_levels().size()); - for (int i = 0, n = _internal_access_levels().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - _internal_access_levels().Get(i)); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(access_levels_.size()); + for (int i = 0, n = access_levels_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + access_levels_.Get(i)); } + // string principal = 1 [json_name = "principal"]; if (!this->_internal_principal().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_principal()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_principal()); } // string presenter = 3 [json_name = "presenter"]; if (!this->_internal_presenter().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_presenter()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_presenter()); } // .google.protobuf.Struct claims = 4 [json_name = "claims"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.claims_); + if (this->_internal_has_claims()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *claims_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData AttributeContext_Auth::_class_data_ = { - AttributeContext_Auth::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AttributeContext_Auth::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + AttributeContext_Auth::MergeImpl }; -const ::google::protobuf::Message::ClassData* AttributeContext_Auth::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AttributeContext_Auth::GetClassData() const { return &_class_data_; } + +void AttributeContext_Auth::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void AttributeContext_Auth::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.context.AttributeContext.Auth) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void AttributeContext_Auth::MergeFrom(const AttributeContext_Auth& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.context.AttributeContext.Auth) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_audiences()->MergeFrom(from._internal_audiences()); - _this->_internal_mutable_access_levels()->MergeFrom(from._internal_access_levels()); + audiences_.MergeFrom(from.audiences_); + access_levels_.MergeFrom(from.access_levels_); if (!from._internal_principal().empty()) { - _this->_internal_set_principal(from._internal_principal()); + _internal_set_principal(from._internal_principal()); } if (!from._internal_presenter().empty()) { - _this->_internal_set_presenter(from._internal_presenter()); + _internal_set_presenter(from._internal_presenter()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_claims()->::google::protobuf::Struct::MergeFrom( - from._internal_claims()); + if (from._internal_has_claims()) { + _internal_mutable_claims()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_claims()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void AttributeContext_Auth::CopyFrom(const AttributeContext_Auth& from) { @@ -1600,583 +1563,700 @@ void AttributeContext_Auth::CopyFrom(const AttributeContext_Auth& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool AttributeContext_Auth::IsInitialized() const { +bool AttributeContext_Auth::IsInitialized() const { return true; } -::_pbi::CachedSize* AttributeContext_Auth::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void AttributeContext_Auth::InternalSwap(AttributeContext_Auth* PROTOBUF_RESTRICT other) { +void AttributeContext_Auth::InternalSwap(AttributeContext_Auth* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.audiences_.InternalSwap(&other->_impl_.audiences_); - _impl_.access_levels_.InternalSwap(&other->_impl_.access_levels_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.principal_, &other->_impl_.principal_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.presenter_, &other->_impl_.presenter_, arena); - swap(_impl_.claims_, other->_impl_.claims_); -} - -::google::protobuf::Metadata AttributeContext_Auth::GetMetadata() const { + audiences_.InternalSwap(&other->audiences_); + access_levels_.InternalSwap(&other->access_levels_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &principal_, lhs_arena, + &other->principal_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &presenter_, lhs_arena, + &other->presenter_, rhs_arena + ); + swap(claims_, other->claims_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata AttributeContext_Auth::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_getter, &descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_once, file_level_metadata_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto[3]); } + // =================================================================== AttributeContext_Request_HeadersEntry_DoNotUse::AttributeContext_Request_HeadersEntry_DoNotUse() {} -AttributeContext_Request_HeadersEntry_DoNotUse::AttributeContext_Request_HeadersEntry_DoNotUse(::google::protobuf::Arena* arena) +AttributeContext_Request_HeadersEntry_DoNotUse::AttributeContext_Request_HeadersEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) : SuperType(arena) {} -::google::protobuf::Metadata AttributeContext_Request_HeadersEntry_DoNotUse::GetMetadata() const { +void AttributeContext_Request_HeadersEntry_DoNotUse::MergeFrom(const AttributeContext_Request_HeadersEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata AttributeContext_Request_HeadersEntry_DoNotUse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_getter, &descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_once, file_level_metadata_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto[4]); } + // =================================================================== class AttributeContext_Request::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(AttributeContext_Request, _impl_._has_bits_); - static const ::google::protobuf::Timestamp& time(const AttributeContext_Request* msg); - static void set_has_time(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& time(const AttributeContext_Request* msg); static const ::google::rpc::context::AttributeContext_Auth& auth(const AttributeContext_Request* msg); - static void set_has_auth(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } }; -const ::google::protobuf::Timestamp& AttributeContext_Request::_Internal::time(const AttributeContext_Request* msg) { - return *msg->_impl_.time_; +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +AttributeContext_Request::_Internal::time(const AttributeContext_Request* msg) { + return *msg->time_; } -const ::google::rpc::context::AttributeContext_Auth& AttributeContext_Request::_Internal::auth(const AttributeContext_Request* msg) { - return *msg->_impl_.auth_; +const ::google::rpc::context::AttributeContext_Auth& +AttributeContext_Request::_Internal::auth(const AttributeContext_Request* msg) { + return *msg->auth_; } void AttributeContext_Request::clear_time() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.time_ != nullptr) _impl_.time_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && time_ != nullptr) { + delete time_; + } + time_ = nullptr; } -AttributeContext_Request::AttributeContext_Request(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +AttributeContext_Request::AttributeContext_Request(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + headers_(arena) { + SharedCtor(); + if (arena != nullptr && !is_message_owned) { + arena->OwnCustomDestructor(this, &AttributeContext_Request::ArenaDtor); + } // @@protoc_insertion_point(arena_constructor:google.rpc.context.AttributeContext.Request) } -inline PROTOBUF_NDEBUG_INLINE AttributeContext_Request::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - headers_{visibility, arena, from.headers_}, - id_(arena, from.id_), - method_(arena, from.method_), - path_(arena, from.path_), - host_(arena, from.host_), - scheme_(arena, from.scheme_), - query_(arena, from.query_), - protocol_(arena, from.protocol_), - reason_(arena, from.reason_) {} - -AttributeContext_Request::AttributeContext_Request( - ::google::protobuf::Arena* arena, - const AttributeContext_Request& from) - : ::google::protobuf::Message(arena) { - AttributeContext_Request* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.time_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.time_) - : nullptr; - _impl_.auth_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::google::rpc::context::AttributeContext_Auth>(arena, *from._impl_.auth_) - : nullptr; - _impl_.size_ = from._impl_.size_; - +AttributeContext_Request::AttributeContext_Request(const AttributeContext_Request& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + headers_.MergeFrom(from.headers_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } + method_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + method_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_method().empty()) { + method_.Set(from._internal_method(), + GetArenaForAllocation()); + } + path_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + path_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_path().empty()) { + path_.Set(from._internal_path(), + GetArenaForAllocation()); + } + host_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + host_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_host().empty()) { + host_.Set(from._internal_host(), + GetArenaForAllocation()); + } + scheme_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + scheme_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_scheme().empty()) { + scheme_.Set(from._internal_scheme(), + GetArenaForAllocation()); + } + query_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + query_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_query().empty()) { + query_.Set(from._internal_query(), + GetArenaForAllocation()); + } + protocol_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + protocol_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_protocol().empty()) { + protocol_.Set(from._internal_protocol(), + GetArenaForAllocation()); + } + reason_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + reason_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_reason().empty()) { + reason_.Set(from._internal_reason(), + GetArenaForAllocation()); + } + if (from._internal_has_time()) { + time_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from.time_); + } else { + time_ = nullptr; + } + if (from._internal_has_auth()) { + auth_ = new ::google::rpc::context::AttributeContext_Auth(*from.auth_); + } else { + auth_ = nullptr; + } + size_ = from.size_; // @@protoc_insertion_point(copy_constructor:google.rpc.context.AttributeContext.Request) } -inline PROTOBUF_NDEBUG_INLINE AttributeContext_Request::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - headers_{visibility, arena}, - id_(arena), - method_(arena), - path_(arena), - host_(arena), - scheme_(arena), - query_(arena), - protocol_(arena), - reason_(arena) {} - -inline void AttributeContext_Request::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, time_), - 0, - offsetof(Impl_, size_) - - offsetof(Impl_, time_) + - sizeof(Impl_::size_)); + +inline void AttributeContext_Request::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +method_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + method_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +path_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + path_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +host_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + host_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +scheme_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + scheme_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +query_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + query_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +protocol_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + protocol_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +reason_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + reason_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&time_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&size_) - + reinterpret_cast(&time_)) + sizeof(size_)); } + AttributeContext_Request::~AttributeContext_Request() { // @@protoc_insertion_point(destructor:google.rpc.context.AttributeContext.Request) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + ArenaDtor(this); + return; + } SharedDtor(); } + inline void AttributeContext_Request::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.method_.Destroy(); - _impl_.path_.Destroy(); - _impl_.host_.Destroy(); - _impl_.scheme_.Destroy(); - _impl_.query_.Destroy(); - _impl_.protocol_.Destroy(); - _impl_.reason_.Destroy(); - delete _impl_.time_; - delete _impl_.auth_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void AttributeContext_Request::Clear() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + headers_.Destruct(); + id_.Destroy(); + method_.Destroy(); + path_.Destroy(); + host_.Destroy(); + scheme_.Destroy(); + query_.Destroy(); + protocol_.Destroy(); + reason_.Destroy(); + if (this != internal_default_instance()) delete time_; + if (this != internal_default_instance()) delete auth_; +} + +void AttributeContext_Request::ArenaDtor(void* object) { + AttributeContext_Request* _this = reinterpret_cast< AttributeContext_Request* >(object); + _this->headers_.Destruct(); +} +void AttributeContext_Request::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void AttributeContext_Request::Clear() { // @@protoc_insertion_point(message_clear_start:google.rpc.context.AttributeContext.Request) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.headers_.Clear(); - _impl_.id_.ClearToEmpty(); - _impl_.method_.ClearToEmpty(); - _impl_.path_.ClearToEmpty(); - _impl_.host_.ClearToEmpty(); - _impl_.scheme_.ClearToEmpty(); - _impl_.query_.ClearToEmpty(); - _impl_.protocol_.ClearToEmpty(); - _impl_.reason_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.time_ != nullptr); - _impl_.time_->Clear(); + headers_.Clear(); + id_.ClearToEmpty(); + method_.ClearToEmpty(); + path_.ClearToEmpty(); + host_.ClearToEmpty(); + scheme_.ClearToEmpty(); + query_.ClearToEmpty(); + protocol_.ClearToEmpty(); + reason_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && time_ != nullptr) { + delete time_; + } + time_ = nullptr; + if (GetArenaForAllocation() == nullptr && auth_ != nullptr) { + delete auth_; + } + auth_ = nullptr; + size_ = int64_t{0}; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* AttributeContext_Request::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.context.AttributeContext.Request.id")); + } else + goto handle_unusual; + continue; + // string method = 2 [json_name = "method"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_method(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.context.AttributeContext.Request.method")); + } else + goto handle_unusual; + continue; + // map headers = 3 [json_name = "headers"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&headers_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); + } else + goto handle_unusual; + continue; + // string path = 4 [json_name = "path"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_path(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.context.AttributeContext.Request.path")); + } else + goto handle_unusual; + continue; + // string host = 5 [json_name = "host"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + auto str = _internal_mutable_host(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.context.AttributeContext.Request.host")); + } else + goto handle_unusual; + continue; + // string scheme = 6 [json_name = "scheme"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + auto str = _internal_mutable_scheme(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.context.AttributeContext.Request.scheme")); + } else + goto handle_unusual; + continue; + // string query = 7 [json_name = "query"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + auto str = _internal_mutable_query(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.context.AttributeContext.Request.query")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp time = 9 [json_name = "time"]; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { + ptr = ctx->ParseMessage(_internal_mutable_time(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int64 size = 10 [json_name = "size"]; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 80)) { + size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string protocol = 11 [json_name = "protocol"]; + case 11: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 90)) { + auto str = _internal_mutable_protocol(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.context.AttributeContext.Request.protocol")); + } else + goto handle_unusual; + continue; + // string reason = 12 [json_name = "reason"]; + case 12: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 98)) { + auto str = _internal_mutable_reason(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.context.AttributeContext.Request.reason")); + } else + goto handle_unusual; + continue; + // .google.rpc.context.AttributeContext.Auth auth = 13 [json_name = "auth"]; + case 13: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 106)) { + ptr = ctx->ParseMessage(_internal_mutable_auth(), 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; } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.auth_ != nullptr); - _impl_.auth_->Clear(); - } - } - _impl_.size_ = ::int64_t{0}; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* AttributeContext_Request::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<4, 12, 3, 108, 2> AttributeContext_Request::_table_ = { - { - PROTOBUF_FIELD_OFFSET(AttributeContext_Request, _impl_._has_bits_), - 0, // no _extensions_ - 13, 120, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294959232, // skipmap - offsetof(decltype(_table_), field_entries), - 12, // num_field_entries - 3, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_AttributeContext_Request_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string id = 1 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(AttributeContext_Request, _impl_.id_)}}, - // string method = 2 [json_name = "method"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(AttributeContext_Request, _impl_.method_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // string path = 4 [json_name = "path"]; - {::_pbi::TcParser::FastUS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(AttributeContext_Request, _impl_.path_)}}, - // string host = 5 [json_name = "host"]; - {::_pbi::TcParser::FastUS1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(AttributeContext_Request, _impl_.host_)}}, - // string scheme = 6 [json_name = "scheme"]; - {::_pbi::TcParser::FastUS1, - {50, 63, 0, PROTOBUF_FIELD_OFFSET(AttributeContext_Request, _impl_.scheme_)}}, - // string query = 7 [json_name = "query"]; - {::_pbi::TcParser::FastUS1, - {58, 63, 0, PROTOBUF_FIELD_OFFSET(AttributeContext_Request, _impl_.query_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .google.protobuf.Timestamp time = 9 [json_name = "time"]; - {::_pbi::TcParser::FastMtS1, - {74, 0, 1, PROTOBUF_FIELD_OFFSET(AttributeContext_Request, _impl_.time_)}}, - // int64 size = 10 [json_name = "size"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(AttributeContext_Request, _impl_.size_), 63>(), - {80, 63, 0, PROTOBUF_FIELD_OFFSET(AttributeContext_Request, _impl_.size_)}}, - // string protocol = 11 [json_name = "protocol"]; - {::_pbi::TcParser::FastUS1, - {90, 63, 0, PROTOBUF_FIELD_OFFSET(AttributeContext_Request, _impl_.protocol_)}}, - // string reason = 12 [json_name = "reason"]; - {::_pbi::TcParser::FastUS1, - {98, 63, 0, PROTOBUF_FIELD_OFFSET(AttributeContext_Request, _impl_.reason_)}}, - // .google.rpc.context.AttributeContext.Auth auth = 13 [json_name = "auth"]; - {::_pbi::TcParser::FastMtS1, - {106, 1, 2, PROTOBUF_FIELD_OFFSET(AttributeContext_Request, _impl_.auth_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(AttributeContext_Request, _impl_.id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string method = 2 [json_name = "method"]; - {PROTOBUF_FIELD_OFFSET(AttributeContext_Request, _impl_.method_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // map headers = 3 [json_name = "headers"]; - {PROTOBUF_FIELD_OFFSET(AttributeContext_Request, _impl_.headers_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, - // string path = 4 [json_name = "path"]; - {PROTOBUF_FIELD_OFFSET(AttributeContext_Request, _impl_.path_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string host = 5 [json_name = "host"]; - {PROTOBUF_FIELD_OFFSET(AttributeContext_Request, _impl_.host_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string scheme = 6 [json_name = "scheme"]; - {PROTOBUF_FIELD_OFFSET(AttributeContext_Request, _impl_.scheme_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string query = 7 [json_name = "query"]; - {PROTOBUF_FIELD_OFFSET(AttributeContext_Request, _impl_.query_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Timestamp time = 9 [json_name = "time"]; - {PROTOBUF_FIELD_OFFSET(AttributeContext_Request, _impl_.time_), _Internal::kHasBitsOffset + 0, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // int64 size = 10 [json_name = "size"]; - {PROTOBUF_FIELD_OFFSET(AttributeContext_Request, _impl_.size_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - // string protocol = 11 [json_name = "protocol"]; - {PROTOBUF_FIELD_OFFSET(AttributeContext_Request, _impl_.protocol_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string reason = 12 [json_name = "reason"]; - {PROTOBUF_FIELD_OFFSET(AttributeContext_Request, _impl_.reason_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.rpc.context.AttributeContext.Auth auth = 13 [json_name = "auth"]; - {PROTOBUF_FIELD_OFFSET(AttributeContext_Request, _impl_.auth_), _Internal::kHasBitsOffset + 1, 2, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetMapAuxInfo< - decltype(AttributeContext_Request()._impl_.headers_)>( - 1, 0, 0, 9, - 9)}, - {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, - {::_pbi::TcParser::GetTable<::google::rpc::context::AttributeContext_Auth>()}, - }}, {{ - "\53\2\6\7\4\4\6\5\0\0\10\6\0\0\0\0" - "google.rpc.context.AttributeContext.Request" - "id" - "method" - "headers" - "path" - "host" - "scheme" - "query" - "protocol" - "reason" - }}, -}; - -::uint8_t* AttributeContext_Request::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* AttributeContext_Request::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.rpc.context.AttributeContext.Request) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.context.AttributeContext.Request.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Request.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); } // string method = 2 [json_name = "method"]; if (!this->_internal_method().empty()) { - const std::string& _s = this->_internal_method(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.context.AttributeContext.Request.method"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_method().data(), static_cast(this->_internal_method().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Request.method"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_method(), target); } // map headers = 3 [json_name = "headers"]; - if (!_internal_headers().empty()) { - using MapType = ::google::protobuf::Map; - using WireHelper = _pbi::MapEntryFuncs; - const auto& field = _internal_headers(); - - if (stream->IsSerializationDeterministic() && field.size() > 1) { - for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { - target = WireHelper::InternalSerialize( - 3, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.context.AttributeContext.Request.headers"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.second.data(), static_cast(entry.second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.context.AttributeContext.Request.headers"); + if (!this->_internal_headers().empty()) { + using MapType = ::_pb::Map; + using WireHelper = AttributeContext_Request_HeadersEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_headers(); + 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, + "google.rpc.context.AttributeContext.Request.HeadersEntry.key"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + entry.second.data(), static_cast(entry.second.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Request.HeadersEntry.value"); + }; + + if (stream->IsSerializationDeterministic() && map_field.size() > 1) { + for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { + target = WireHelper::InternalSerialize(3, entry.first, entry.second, target, stream); + check_utf8(entry); } } else { - for (const auto& entry : field) { - target = WireHelper::InternalSerialize( - 3, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.context.AttributeContext.Request.headers"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.second.data(), static_cast(entry.second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.context.AttributeContext.Request.headers"); + for (const auto& entry : map_field) { + target = WireHelper::InternalSerialize(3, entry.first, entry.second, target, stream); + check_utf8(entry); } } } // string path = 4 [json_name = "path"]; if (!this->_internal_path().empty()) { - const std::string& _s = this->_internal_path(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.context.AttributeContext.Request.path"); - target = stream->WriteStringMaybeAliased(4, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_path().data(), static_cast(this->_internal_path().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Request.path"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_path(), target); } // string host = 5 [json_name = "host"]; if (!this->_internal_host().empty()) { - const std::string& _s = this->_internal_host(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.context.AttributeContext.Request.host"); - target = stream->WriteStringMaybeAliased(5, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_host().data(), static_cast(this->_internal_host().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Request.host"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_host(), target); } // string scheme = 6 [json_name = "scheme"]; if (!this->_internal_scheme().empty()) { - const std::string& _s = this->_internal_scheme(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.context.AttributeContext.Request.scheme"); - target = stream->WriteStringMaybeAliased(6, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_scheme().data(), static_cast(this->_internal_scheme().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Request.scheme"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_scheme(), target); } // string query = 7 [json_name = "query"]; if (!this->_internal_query().empty()) { - const std::string& _s = this->_internal_query(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.context.AttributeContext.Request.query"); - target = stream->WriteStringMaybeAliased(7, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_query().data(), static_cast(this->_internal_query().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Request.query"); + target = stream->WriteStringMaybeAliased( + 7, this->_internal_query(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Timestamp time = 9 [json_name = "time"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 9, _Internal::time(this), + if (this->_internal_has_time()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(9, _Internal::time(this), _Internal::time(this).GetCachedSize(), target, stream); } // int64 size = 10 [json_name = "size"]; if (this->_internal_size() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<10>( - stream, this->_internal_size(), target); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(10, this->_internal_size(), target); } // string protocol = 11 [json_name = "protocol"]; if (!this->_internal_protocol().empty()) { - const std::string& _s = this->_internal_protocol(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.context.AttributeContext.Request.protocol"); - target = stream->WriteStringMaybeAliased(11, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_protocol().data(), static_cast(this->_internal_protocol().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Request.protocol"); + target = stream->WriteStringMaybeAliased( + 11, this->_internal_protocol(), target); } // string reason = 12 [json_name = "reason"]; if (!this->_internal_reason().empty()) { - const std::string& _s = this->_internal_reason(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.context.AttributeContext.Request.reason"); - target = stream->WriteStringMaybeAliased(12, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_reason().data(), static_cast(this->_internal_reason().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Request.reason"); + target = stream->WriteStringMaybeAliased( + 12, this->_internal_reason(), target); } // .google.rpc.context.AttributeContext.Auth auth = 13 [json_name = "auth"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 13, _Internal::auth(this), + if (this->_internal_has_auth()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(13, _Internal::auth(this), _Internal::auth(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.rpc.context.AttributeContext.Request) return target; } -::size_t AttributeContext_Request::ByteSizeLong() const { +size_t AttributeContext_Request::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.rpc.context.AttributeContext.Request) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // map headers = 3 [json_name = "headers"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_headers_size()); - for (const auto& entry : _internal_headers()) { - total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_headers_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator + it = this->_internal_headers().begin(); + it != this->_internal_headers().end(); ++it) { + total_size += AttributeContext_Request_HeadersEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); } + // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } // string method = 2 [json_name = "method"]; if (!this->_internal_method().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_method()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_method()); } // string path = 4 [json_name = "path"]; if (!this->_internal_path().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_path()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_path()); } // string host = 5 [json_name = "host"]; if (!this->_internal_host().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_host()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_host()); } // string scheme = 6 [json_name = "scheme"]; if (!this->_internal_scheme().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_scheme()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_scheme()); } // string query = 7 [json_name = "query"]; if (!this->_internal_query().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_query()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_query()); } // string protocol = 11 [json_name = "protocol"]; if (!this->_internal_protocol().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_protocol()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_protocol()); } // string reason = 12 [json_name = "reason"]; if (!this->_internal_reason().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_reason()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_reason()); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // .google.protobuf.Timestamp time = 9 [json_name = "time"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.time_); - } - - // .google.rpc.context.AttributeContext.Auth auth = 13 [json_name = "auth"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.auth_); - } + // .google.protobuf.Timestamp time = 9 [json_name = "time"]; + if (this->_internal_has_time()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *time_); + } + // .google.rpc.context.AttributeContext.Auth auth = 13 [json_name = "auth"]; + if (this->_internal_has_auth()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *auth_); } + // int64 size = 10 [json_name = "size"]; if (this->_internal_size() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( - this->_internal_size()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_size()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData AttributeContext_Request::_class_data_ = { - AttributeContext_Request::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AttributeContext_Request::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + AttributeContext_Request::MergeImpl }; -const ::google::protobuf::Message::ClassData* AttributeContext_Request::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AttributeContext_Request::GetClassData() const { return &_class_data_; } + +void AttributeContext_Request::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void AttributeContext_Request::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.context.AttributeContext.Request) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void AttributeContext_Request::MergeFrom(const AttributeContext_Request& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.context.AttributeContext.Request) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.headers_.MergeFrom(from._impl_.headers_); + headers_.MergeFrom(from.headers_); if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } if (!from._internal_method().empty()) { - _this->_internal_set_method(from._internal_method()); + _internal_set_method(from._internal_method()); } if (!from._internal_path().empty()) { - _this->_internal_set_path(from._internal_path()); + _internal_set_path(from._internal_path()); } if (!from._internal_host().empty()) { - _this->_internal_set_host(from._internal_host()); + _internal_set_host(from._internal_host()); } if (!from._internal_scheme().empty()) { - _this->_internal_set_scheme(from._internal_scheme()); + _internal_set_scheme(from._internal_scheme()); } if (!from._internal_query().empty()) { - _this->_internal_set_query(from._internal_query()); + _internal_set_query(from._internal_query()); } if (!from._internal_protocol().empty()) { - _this->_internal_set_protocol(from._internal_protocol()); + _internal_set_protocol(from._internal_protocol()); } if (!from._internal_reason().empty()) { - _this->_internal_set_reason(from._internal_reason()); + _internal_set_reason(from._internal_reason()); } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_time()->::google::protobuf::Timestamp::MergeFrom( - from._internal_time()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_auth()->::google::rpc::context::AttributeContext_Auth::MergeFrom( - from._internal_auth()); - } + if (from._internal_has_time()) { + _internal_mutable_time()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_time()); + } + if (from._internal_has_auth()) { + _internal_mutable_auth()->::google::rpc::context::AttributeContext_Auth::MergeFrom(from._internal_auth()); } if (from._internal_size() != 0) { - _this->_internal_set_size(from._internal_size()); + _internal_set_size(from._internal_size()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void AttributeContext_Request::CopyFrom(const AttributeContext_Request& from) { @@ -2186,403 +2266,408 @@ void AttributeContext_Request::CopyFrom(const AttributeContext_Request& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool AttributeContext_Request::IsInitialized() const { +bool AttributeContext_Request::IsInitialized() const { return true; } -::_pbi::CachedSize* AttributeContext_Request::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void AttributeContext_Request::InternalSwap(AttributeContext_Request* PROTOBUF_RESTRICT other) { +void AttributeContext_Request::InternalSwap(AttributeContext_Request* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.headers_.InternalSwap(&other->_impl_.headers_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.method_, &other->_impl_.method_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.path_, &other->_impl_.path_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.host_, &other->_impl_.host_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.scheme_, &other->_impl_.scheme_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.query_, &other->_impl_.query_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.protocol_, &other->_impl_.protocol_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.reason_, &other->_impl_.reason_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(AttributeContext_Request, _impl_.size_) - + sizeof(AttributeContext_Request::_impl_.size_) - - PROTOBUF_FIELD_OFFSET(AttributeContext_Request, _impl_.time_)>( - reinterpret_cast(&_impl_.time_), - reinterpret_cast(&other->_impl_.time_)); -} - -::google::protobuf::Metadata AttributeContext_Request::GetMetadata() const { + headers_.InternalSwap(&other->headers_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &method_, lhs_arena, + &other->method_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &path_, lhs_arena, + &other->path_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &host_, lhs_arena, + &other->host_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &scheme_, lhs_arena, + &other->scheme_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &query_, lhs_arena, + &other->query_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &protocol_, lhs_arena, + &other->protocol_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &reason_, lhs_arena, + &other->reason_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(AttributeContext_Request, size_) + + sizeof(AttributeContext_Request::size_) + - PROTOBUF_FIELD_OFFSET(AttributeContext_Request, time_)>( + reinterpret_cast(&time_), + reinterpret_cast(&other->time_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata AttributeContext_Request::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_getter, &descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_once, file_level_metadata_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto[5]); } + // =================================================================== AttributeContext_Response_HeadersEntry_DoNotUse::AttributeContext_Response_HeadersEntry_DoNotUse() {} -AttributeContext_Response_HeadersEntry_DoNotUse::AttributeContext_Response_HeadersEntry_DoNotUse(::google::protobuf::Arena* arena) +AttributeContext_Response_HeadersEntry_DoNotUse::AttributeContext_Response_HeadersEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) : SuperType(arena) {} -::google::protobuf::Metadata AttributeContext_Response_HeadersEntry_DoNotUse::GetMetadata() const { +void AttributeContext_Response_HeadersEntry_DoNotUse::MergeFrom(const AttributeContext_Response_HeadersEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata AttributeContext_Response_HeadersEntry_DoNotUse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_getter, &descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_once, file_level_metadata_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto[6]); } + // =================================================================== class AttributeContext_Response::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(AttributeContext_Response, _impl_._has_bits_); - static const ::google::protobuf::Timestamp& time(const AttributeContext_Response* msg); - static void set_has_time(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::google::protobuf::Duration& backend_latency(const AttributeContext_Response* msg); - static void set_has_backend_latency(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& time(const AttributeContext_Response* msg); + static const ::PROTOBUF_NAMESPACE_ID::Duration& backend_latency(const AttributeContext_Response* msg); }; -const ::google::protobuf::Timestamp& AttributeContext_Response::_Internal::time(const AttributeContext_Response* msg) { - return *msg->_impl_.time_; +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +AttributeContext_Response::_Internal::time(const AttributeContext_Response* msg) { + return *msg->time_; } -const ::google::protobuf::Duration& AttributeContext_Response::_Internal::backend_latency(const AttributeContext_Response* msg) { - return *msg->_impl_.backend_latency_; +const ::PROTOBUF_NAMESPACE_ID::Duration& +AttributeContext_Response::_Internal::backend_latency(const AttributeContext_Response* msg) { + return *msg->backend_latency_; } void AttributeContext_Response::clear_time() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.time_ != nullptr) _impl_.time_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && time_ != nullptr) { + delete time_; + } + time_ = nullptr; } void AttributeContext_Response::clear_backend_latency() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.backend_latency_ != nullptr) _impl_.backend_latency_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && backend_latency_ != nullptr) { + delete backend_latency_; + } + backend_latency_ = nullptr; } -AttributeContext_Response::AttributeContext_Response(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +AttributeContext_Response::AttributeContext_Response(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + headers_(arena) { + SharedCtor(); + if (arena != nullptr && !is_message_owned) { + arena->OwnCustomDestructor(this, &AttributeContext_Response::ArenaDtor); + } // @@protoc_insertion_point(arena_constructor:google.rpc.context.AttributeContext.Response) } -inline PROTOBUF_NDEBUG_INLINE AttributeContext_Response::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - headers_{visibility, arena, from.headers_} {} - -AttributeContext_Response::AttributeContext_Response( - ::google::protobuf::Arena* arena, - const AttributeContext_Response& from) - : ::google::protobuf::Message(arena) { - AttributeContext_Response* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.time_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.time_) - : nullptr; - _impl_.backend_latency_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::google::protobuf::Duration>(arena, *from._impl_.backend_latency_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, code_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, code_), - offsetof(Impl_, size_) - - offsetof(Impl_, code_) + - sizeof(Impl_::size_)); - +AttributeContext_Response::AttributeContext_Response(const AttributeContext_Response& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + headers_.MergeFrom(from.headers_); + if (from._internal_has_time()) { + time_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from.time_); + } else { + time_ = nullptr; + } + if (from._internal_has_backend_latency()) { + backend_latency_ = new ::PROTOBUF_NAMESPACE_ID::Duration(*from.backend_latency_); + } else { + backend_latency_ = nullptr; + } + ::memcpy(&code_, &from.code_, + static_cast(reinterpret_cast(&size_) - + reinterpret_cast(&code_)) + sizeof(size_)); // @@protoc_insertion_point(copy_constructor:google.rpc.context.AttributeContext.Response) } -inline PROTOBUF_NDEBUG_INLINE AttributeContext_Response::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - headers_{visibility, arena} {} - -inline void AttributeContext_Response::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, time_), - 0, - offsetof(Impl_, size_) - - offsetof(Impl_, time_) + - sizeof(Impl_::size_)); + +inline void AttributeContext_Response::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&time_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&size_) - + reinterpret_cast(&time_)) + sizeof(size_)); } + AttributeContext_Response::~AttributeContext_Response() { // @@protoc_insertion_point(destructor:google.rpc.context.AttributeContext.Response) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + ArenaDtor(this); + return; + } SharedDtor(); } + inline void AttributeContext_Response::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.time_; - delete _impl_.backend_latency_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + headers_.Destruct(); + if (this != internal_default_instance()) delete time_; + if (this != internal_default_instance()) delete backend_latency_; } -PROTOBUF_NOINLINE void AttributeContext_Response::Clear() { +void AttributeContext_Response::ArenaDtor(void* object) { + AttributeContext_Response* _this = reinterpret_cast< AttributeContext_Response* >(object); + _this->headers_.Destruct(); +} +void AttributeContext_Response::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void AttributeContext_Response::Clear() { // @@protoc_insertion_point(message_clear_start:google.rpc.context.AttributeContext.Response) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.headers_.Clear(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.time_ != nullptr); - _impl_.time_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.backend_latency_ != nullptr); - _impl_.backend_latency_->Clear(); + headers_.Clear(); + if (GetArenaForAllocation() == nullptr && time_ != nullptr) { + delete time_; + } + time_ = nullptr; + if (GetArenaForAllocation() == nullptr && backend_latency_ != nullptr) { + delete backend_latency_; + } + backend_latency_ = nullptr; + ::memset(&code_, 0, static_cast( + reinterpret_cast(&size_) - + reinterpret_cast(&code_)) + sizeof(size_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* AttributeContext_Response::_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) { + // int64 code = 1 [json_name = "code"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + code_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int64 size = 2 [json_name = "size"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // map headers = 3 [json_name = "headers"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&headers_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp time = 4 [json_name = "time"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_time(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Duration backend_latency = 5 [json_name = "backendLatency"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_backend_latency(), 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; } - } - ::memset(&_impl_.code_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.size_) - - reinterpret_cast(&_impl_.code_)) + sizeof(_impl_.size_)); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* AttributeContext_Response::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 5, 3, 60, 2> AttributeContext_Response::_table_ = { - { - PROTOBUF_FIELD_OFFSET(AttributeContext_Response, _impl_._has_bits_), - 0, // no _extensions_ - 5, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967264, // skipmap - offsetof(decltype(_table_), field_entries), - 5, // num_field_entries - 3, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_AttributeContext_Response_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // int64 code = 1 [json_name = "code"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(AttributeContext_Response, _impl_.code_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(AttributeContext_Response, _impl_.code_)}}, - // int64 size = 2 [json_name = "size"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(AttributeContext_Response, _impl_.size_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(AttributeContext_Response, _impl_.size_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .google.protobuf.Timestamp time = 4 [json_name = "time"]; - {::_pbi::TcParser::FastMtS1, - {34, 0, 1, PROTOBUF_FIELD_OFFSET(AttributeContext_Response, _impl_.time_)}}, - // .google.protobuf.Duration backend_latency = 5 [json_name = "backendLatency"]; - {::_pbi::TcParser::FastMtS1, - {42, 1, 2, PROTOBUF_FIELD_OFFSET(AttributeContext_Response, _impl_.backend_latency_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // int64 code = 1 [json_name = "code"]; - {PROTOBUF_FIELD_OFFSET(AttributeContext_Response, _impl_.code_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - // int64 size = 2 [json_name = "size"]; - {PROTOBUF_FIELD_OFFSET(AttributeContext_Response, _impl_.size_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - // map headers = 3 [json_name = "headers"]; - {PROTOBUF_FIELD_OFFSET(AttributeContext_Response, _impl_.headers_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, - // .google.protobuf.Timestamp time = 4 [json_name = "time"]; - {PROTOBUF_FIELD_OFFSET(AttributeContext_Response, _impl_.time_), _Internal::kHasBitsOffset + 0, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.protobuf.Duration backend_latency = 5 [json_name = "backendLatency"]; - {PROTOBUF_FIELD_OFFSET(AttributeContext_Response, _impl_.backend_latency_), _Internal::kHasBitsOffset + 1, 2, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetMapAuxInfo< - decltype(AttributeContext_Response()._impl_.headers_)>( - 1, 0, 0, 9, - 9)}, - {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Duration>()}, - }}, {{ - "\54\0\0\7\0\0\0\0" - "google.rpc.context.AttributeContext.Response" - "headers" - }}, -}; - -::uint8_t* AttributeContext_Response::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* AttributeContext_Response::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.rpc.context.AttributeContext.Response) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // int64 code = 1 [json_name = "code"]; if (this->_internal_code() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<1>( - stream, this->_internal_code(), target); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_code(), target); } // int64 size = 2 [json_name = "size"]; if (this->_internal_size() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<2>( - stream, this->_internal_size(), target); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_size(), target); } // map headers = 3 [json_name = "headers"]; - if (!_internal_headers().empty()) { - using MapType = ::google::protobuf::Map; - using WireHelper = _pbi::MapEntryFuncs; - const auto& field = _internal_headers(); - - if (stream->IsSerializationDeterministic() && field.size() > 1) { - for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { - target = WireHelper::InternalSerialize( - 3, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.context.AttributeContext.Response.headers"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.second.data(), static_cast(entry.second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.context.AttributeContext.Response.headers"); + if (!this->_internal_headers().empty()) { + using MapType = ::_pb::Map; + using WireHelper = AttributeContext_Response_HeadersEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_headers(); + 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, + "google.rpc.context.AttributeContext.Response.HeadersEntry.key"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + entry.second.data(), static_cast(entry.second.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Response.HeadersEntry.value"); + }; + + if (stream->IsSerializationDeterministic() && map_field.size() > 1) { + for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { + target = WireHelper::InternalSerialize(3, entry.first, entry.second, target, stream); + check_utf8(entry); } } else { - for (const auto& entry : field) { - target = WireHelper::InternalSerialize( - 3, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.context.AttributeContext.Response.headers"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.second.data(), static_cast(entry.second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.context.AttributeContext.Response.headers"); + for (const auto& entry : map_field) { + target = WireHelper::InternalSerialize(3, entry.first, entry.second, target, stream); + check_utf8(entry); } } } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Timestamp time = 4 [json_name = "time"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, _Internal::time(this), + if (this->_internal_has_time()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::time(this), _Internal::time(this).GetCachedSize(), target, stream); } // .google.protobuf.Duration backend_latency = 5 [json_name = "backendLatency"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 5, _Internal::backend_latency(this), + if (this->_internal_has_backend_latency()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(5, _Internal::backend_latency(this), _Internal::backend_latency(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.rpc.context.AttributeContext.Response) return target; } -::size_t AttributeContext_Response::ByteSizeLong() const { +size_t AttributeContext_Response::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.rpc.context.AttributeContext.Response) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // map headers = 3 [json_name = "headers"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_headers_size()); - for (const auto& entry : _internal_headers()) { - total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); - } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // .google.protobuf.Timestamp time = 4 [json_name = "time"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.time_); - } + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_headers_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator + it = this->_internal_headers().begin(); + it != this->_internal_headers().end(); ++it) { + total_size += AttributeContext_Response_HeadersEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + } - // .google.protobuf.Duration backend_latency = 5 [json_name = "backendLatency"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.backend_latency_); - } + // .google.protobuf.Timestamp time = 4 [json_name = "time"]; + if (this->_internal_has_time()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *time_); + } + // .google.protobuf.Duration backend_latency = 5 [json_name = "backendLatency"]; + if (this->_internal_has_backend_latency()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *backend_latency_); } + // int64 code = 1 [json_name = "code"]; if (this->_internal_code() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( - this->_internal_code()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_code()); } // int64 size = 2 [json_name = "size"]; if (this->_internal_size() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( - this->_internal_size()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_size()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData AttributeContext_Response::_class_data_ = { - AttributeContext_Response::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AttributeContext_Response::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + AttributeContext_Response::MergeImpl }; -const ::google::protobuf::Message::ClassData* AttributeContext_Response::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AttributeContext_Response::GetClassData() const { return &_class_data_; } + +void AttributeContext_Response::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void AttributeContext_Response::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.context.AttributeContext.Response) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void AttributeContext_Response::MergeFrom(const AttributeContext_Response& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.context.AttributeContext.Response) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.headers_.MergeFrom(from._impl_.headers_); - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_time()->::google::protobuf::Timestamp::MergeFrom( - from._internal_time()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_backend_latency()->::google::protobuf::Duration::MergeFrom( - from._internal_backend_latency()); - } + headers_.MergeFrom(from.headers_); + if (from._internal_has_time()) { + _internal_mutable_time()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_time()); + } + if (from._internal_has_backend_latency()) { + _internal_mutable_backend_latency()->::PROTOBUF_NAMESPACE_ID::Duration::MergeFrom(from._internal_backend_latency()); } if (from._internal_code() != 0) { - _this->_internal_set_code(from._internal_code()); + _internal_set_code(from._internal_code()); } if (from._internal_size() != 0) { - _this->_internal_set_size(from._internal_size()); + _internal_set_size(from._internal_size()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void AttributeContext_Response::CopyFrom(const AttributeContext_Response& from) { @@ -2592,643 +2677,750 @@ void AttributeContext_Response::CopyFrom(const AttributeContext_Response& from) MergeFrom(from); } -PROTOBUF_NOINLINE bool AttributeContext_Response::IsInitialized() const { +bool AttributeContext_Response::IsInitialized() const { return true; } -::_pbi::CachedSize* AttributeContext_Response::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void AttributeContext_Response::InternalSwap(AttributeContext_Response* PROTOBUF_RESTRICT other) { +void AttributeContext_Response::InternalSwap(AttributeContext_Response* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.headers_.InternalSwap(&other->_impl_.headers_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(AttributeContext_Response, _impl_.size_) - + sizeof(AttributeContext_Response::_impl_.size_) - - PROTOBUF_FIELD_OFFSET(AttributeContext_Response, _impl_.time_)>( - reinterpret_cast(&_impl_.time_), - reinterpret_cast(&other->_impl_.time_)); + headers_.InternalSwap(&other->headers_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(AttributeContext_Response, size_) + + sizeof(AttributeContext_Response::size_) + - PROTOBUF_FIELD_OFFSET(AttributeContext_Response, time_)>( + reinterpret_cast(&time_), + reinterpret_cast(&other->time_)); } -::google::protobuf::Metadata AttributeContext_Response::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata AttributeContext_Response::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_getter, &descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_once, file_level_metadata_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto[7]); } + // =================================================================== AttributeContext_Resource_LabelsEntry_DoNotUse::AttributeContext_Resource_LabelsEntry_DoNotUse() {} -AttributeContext_Resource_LabelsEntry_DoNotUse::AttributeContext_Resource_LabelsEntry_DoNotUse(::google::protobuf::Arena* arena) +AttributeContext_Resource_LabelsEntry_DoNotUse::AttributeContext_Resource_LabelsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) : SuperType(arena) {} -::google::protobuf::Metadata AttributeContext_Resource_LabelsEntry_DoNotUse::GetMetadata() const { +void AttributeContext_Resource_LabelsEntry_DoNotUse::MergeFrom(const AttributeContext_Resource_LabelsEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata AttributeContext_Resource_LabelsEntry_DoNotUse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_getter, &descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_once, file_level_metadata_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto[8]); } + // =================================================================== AttributeContext_Resource_AnnotationsEntry_DoNotUse::AttributeContext_Resource_AnnotationsEntry_DoNotUse() {} -AttributeContext_Resource_AnnotationsEntry_DoNotUse::AttributeContext_Resource_AnnotationsEntry_DoNotUse(::google::protobuf::Arena* arena) +AttributeContext_Resource_AnnotationsEntry_DoNotUse::AttributeContext_Resource_AnnotationsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) : SuperType(arena) {} -::google::protobuf::Metadata AttributeContext_Resource_AnnotationsEntry_DoNotUse::GetMetadata() const { +void AttributeContext_Resource_AnnotationsEntry_DoNotUse::MergeFrom(const AttributeContext_Resource_AnnotationsEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata AttributeContext_Resource_AnnotationsEntry_DoNotUse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_getter, &descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_once, file_level_metadata_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto[9]); } + // =================================================================== class AttributeContext_Resource::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(AttributeContext_Resource, _impl_._has_bits_); - static const ::google::protobuf::Timestamp& create_time(const AttributeContext_Resource* msg); - static void set_has_create_time(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::google::protobuf::Timestamp& update_time(const AttributeContext_Resource* msg); - static void set_has_update_time(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static const ::google::protobuf::Timestamp& delete_time(const AttributeContext_Resource* msg); - static void set_has_delete_time(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& create_time(const AttributeContext_Resource* msg); + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& update_time(const AttributeContext_Resource* msg); + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& delete_time(const AttributeContext_Resource* msg); }; -const ::google::protobuf::Timestamp& AttributeContext_Resource::_Internal::create_time(const AttributeContext_Resource* msg) { - return *msg->_impl_.create_time_; +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +AttributeContext_Resource::_Internal::create_time(const AttributeContext_Resource* msg) { + return *msg->create_time_; } -const ::google::protobuf::Timestamp& AttributeContext_Resource::_Internal::update_time(const AttributeContext_Resource* msg) { - return *msg->_impl_.update_time_; +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +AttributeContext_Resource::_Internal::update_time(const AttributeContext_Resource* msg) { + return *msg->update_time_; } -const ::google::protobuf::Timestamp& AttributeContext_Resource::_Internal::delete_time(const AttributeContext_Resource* msg) { - return *msg->_impl_.delete_time_; +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +AttributeContext_Resource::_Internal::delete_time(const AttributeContext_Resource* msg) { + return *msg->delete_time_; } void AttributeContext_Resource::clear_create_time() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.create_time_ != nullptr) _impl_.create_time_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && create_time_ != nullptr) { + delete create_time_; + } + create_time_ = nullptr; } void AttributeContext_Resource::clear_update_time() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.update_time_ != nullptr) _impl_.update_time_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && update_time_ != nullptr) { + delete update_time_; + } + update_time_ = nullptr; } void AttributeContext_Resource::clear_delete_time() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.delete_time_ != nullptr) _impl_.delete_time_->Clear(); - _impl_._has_bits_[0] &= ~0x00000004u; + if (GetArenaForAllocation() == nullptr && delete_time_ != nullptr) { + delete delete_time_; + } + delete_time_ = nullptr; } -AttributeContext_Resource::AttributeContext_Resource(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +AttributeContext_Resource::AttributeContext_Resource(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + labels_(arena), + annotations_(arena) { + SharedCtor(); + if (arena != nullptr && !is_message_owned) { + arena->OwnCustomDestructor(this, &AttributeContext_Resource::ArenaDtor); + } // @@protoc_insertion_point(arena_constructor:google.rpc.context.AttributeContext.Resource) } -inline PROTOBUF_NDEBUG_INLINE AttributeContext_Resource::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - labels_{visibility, arena, from.labels_}, - annotations_{visibility, arena, from.annotations_}, - service_(arena, from.service_), - name_(arena, from.name_), - type_(arena, from.type_), - uid_(arena, from.uid_), - display_name_(arena, from.display_name_), - etag_(arena, from.etag_), - location_(arena, from.location_) {} - -AttributeContext_Resource::AttributeContext_Resource( - ::google::protobuf::Arena* arena, - const AttributeContext_Resource& from) - : ::google::protobuf::Message(arena) { - AttributeContext_Resource* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.create_time_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.create_time_) - : nullptr; - _impl_.update_time_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.update_time_) - : nullptr; - _impl_.delete_time_ = (cached_has_bits & 0x00000004u) - ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.delete_time_) - : nullptr; - +AttributeContext_Resource::AttributeContext_Resource(const AttributeContext_Resource& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + labels_.MergeFrom(from.labels_); + annotations_.MergeFrom(from.annotations_); + service_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + service_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_service().empty()) { + service_.Set(from._internal_service(), + GetArenaForAllocation()); + } + 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()); + } + 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()); + } + uid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + uid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_uid().empty()) { + uid_.Set(from._internal_uid(), + GetArenaForAllocation()); + } + display_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + display_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_display_name().empty()) { + display_name_.Set(from._internal_display_name(), + GetArenaForAllocation()); + } + etag_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + etag_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_etag().empty()) { + etag_.Set(from._internal_etag(), + GetArenaForAllocation()); + } + location_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + location_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_location().empty()) { + location_.Set(from._internal_location(), + GetArenaForAllocation()); + } + if (from._internal_has_create_time()) { + create_time_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from.create_time_); + } else { + create_time_ = nullptr; + } + if (from._internal_has_update_time()) { + update_time_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from.update_time_); + } else { + update_time_ = nullptr; + } + if (from._internal_has_delete_time()) { + delete_time_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from.delete_time_); + } else { + delete_time_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:google.rpc.context.AttributeContext.Resource) } -inline PROTOBUF_NDEBUG_INLINE AttributeContext_Resource::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - labels_{visibility, arena}, - annotations_{visibility, arena}, - service_(arena), - name_(arena), - type_(arena), - uid_(arena), - display_name_(arena), - etag_(arena), - location_(arena) {} - -inline void AttributeContext_Resource::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, create_time_), - 0, - offsetof(Impl_, delete_time_) - - offsetof(Impl_, create_time_) + - sizeof(Impl_::delete_time_)); + +inline void AttributeContext_Resource::SharedCtor() { +service_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + service_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.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 +uid_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + uid_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +display_name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + display_name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +etag_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + etag_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +location_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + location_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&create_time_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&delete_time_) - + reinterpret_cast(&create_time_)) + sizeof(delete_time_)); } + AttributeContext_Resource::~AttributeContext_Resource() { // @@protoc_insertion_point(destructor:google.rpc.context.AttributeContext.Resource) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + ArenaDtor(this); + return; + } SharedDtor(); } + inline void AttributeContext_Resource::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.service_.Destroy(); - _impl_.name_.Destroy(); - _impl_.type_.Destroy(); - _impl_.uid_.Destroy(); - _impl_.display_name_.Destroy(); - _impl_.etag_.Destroy(); - _impl_.location_.Destroy(); - delete _impl_.create_time_; - delete _impl_.update_time_; - delete _impl_.delete_time_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void AttributeContext_Resource::Clear() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + labels_.Destruct(); + annotations_.Destruct(); + service_.Destroy(); + name_.Destroy(); + type_.Destroy(); + uid_.Destroy(); + display_name_.Destroy(); + etag_.Destroy(); + location_.Destroy(); + if (this != internal_default_instance()) delete create_time_; + if (this != internal_default_instance()) delete update_time_; + if (this != internal_default_instance()) delete delete_time_; +} + +void AttributeContext_Resource::ArenaDtor(void* object) { + AttributeContext_Resource* _this = reinterpret_cast< AttributeContext_Resource* >(object); + _this->labels_.Destruct(); + _this->annotations_.Destruct(); +} +void AttributeContext_Resource::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void AttributeContext_Resource::Clear() { // @@protoc_insertion_point(message_clear_start:google.rpc.context.AttributeContext.Resource) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.labels_.Clear(); - _impl_.annotations_.Clear(); - _impl_.service_.ClearToEmpty(); - _impl_.name_.ClearToEmpty(); - _impl_.type_.ClearToEmpty(); - _impl_.uid_.ClearToEmpty(); - _impl_.display_name_.ClearToEmpty(); - _impl_.etag_.ClearToEmpty(); - _impl_.location_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.create_time_ != nullptr); - _impl_.create_time_->Clear(); + labels_.Clear(); + annotations_.Clear(); + service_.ClearToEmpty(); + name_.ClearToEmpty(); + type_.ClearToEmpty(); + uid_.ClearToEmpty(); + display_name_.ClearToEmpty(); + etag_.ClearToEmpty(); + location_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && create_time_ != nullptr) { + delete create_time_; + } + create_time_ = nullptr; + if (GetArenaForAllocation() == nullptr && update_time_ != nullptr) { + delete update_time_; + } + update_time_ = nullptr; + if (GetArenaForAllocation() == nullptr && delete_time_ != nullptr) { + delete delete_time_; + } + delete_time_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* AttributeContext_Resource::_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 service = 1 [json_name = "service"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_service(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.context.AttributeContext.Resource.service")); + } else + goto handle_unusual; + continue; + // string name = 2 [json_name = "name"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.context.AttributeContext.Resource.name")); + } else + goto handle_unusual; + continue; + // string type = 3 [json_name = "type"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.context.AttributeContext.Resource.type")); + } else + goto handle_unusual; + continue; + // map labels = 4 [json_name = "labels"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&labels_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr)); + } else + goto handle_unusual; + continue; + // string uid = 5 [json_name = "uid"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + auto str = _internal_mutable_uid(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.context.AttributeContext.Resource.uid")); + } else + goto handle_unusual; + continue; + // map annotations = 6 [json_name = "annotations"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&annotations_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(ptr)); + } else + goto handle_unusual; + continue; + // string display_name = 7 [json_name = "displayName"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + auto str = _internal_mutable_display_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.context.AttributeContext.Resource.display_name")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp create_time = 8 [json_name = "createTime"]; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { + ptr = ctx->ParseMessage(_internal_mutable_create_time(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp update_time = 9 [json_name = "updateTime"]; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { + ptr = ctx->ParseMessage(_internal_mutable_update_time(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp delete_time = 10 [json_name = "deleteTime"]; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { + ptr = ctx->ParseMessage(_internal_mutable_delete_time(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string etag = 11 [json_name = "etag"]; + case 11: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 90)) { + auto str = _internal_mutable_etag(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.context.AttributeContext.Resource.etag")); + } else + goto handle_unusual; + continue; + // string location = 12 [json_name = "location"]; + case 12: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 98)) { + auto str = _internal_mutable_location(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.context.AttributeContext.Resource.location")); + } 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; } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.update_time_ != nullptr); - _impl_.update_time_->Clear(); - } - if (cached_has_bits & 0x00000004u) { - ABSL_DCHECK(_impl_.delete_time_ != nullptr); - _impl_.delete_time_->Clear(); - } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* AttributeContext_Resource::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<4, 12, 5, 120, 2> AttributeContext_Resource::_table_ = { - { - PROTOBUF_FIELD_OFFSET(AttributeContext_Resource, _impl_._has_bits_), - 0, // no _extensions_ - 12, 120, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294963200, // skipmap - offsetof(decltype(_table_), field_entries), - 12, // num_field_entries - 5, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_AttributeContext_Resource_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string service = 1 [json_name = "service"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(AttributeContext_Resource, _impl_.service_)}}, - // string name = 2 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(AttributeContext_Resource, _impl_.name_)}}, - // string type = 3 [json_name = "type"]; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(AttributeContext_Resource, _impl_.type_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // string uid = 5 [json_name = "uid"]; - {::_pbi::TcParser::FastUS1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(AttributeContext_Resource, _impl_.uid_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // string display_name = 7 [json_name = "displayName"]; - {::_pbi::TcParser::FastUS1, - {58, 63, 0, PROTOBUF_FIELD_OFFSET(AttributeContext_Resource, _impl_.display_name_)}}, - // .google.protobuf.Timestamp create_time = 8 [json_name = "createTime"]; - {::_pbi::TcParser::FastMtS1, - {66, 0, 2, PROTOBUF_FIELD_OFFSET(AttributeContext_Resource, _impl_.create_time_)}}, - // .google.protobuf.Timestamp update_time = 9 [json_name = "updateTime"]; - {::_pbi::TcParser::FastMtS1, - {74, 1, 3, PROTOBUF_FIELD_OFFSET(AttributeContext_Resource, _impl_.update_time_)}}, - // .google.protobuf.Timestamp delete_time = 10 [json_name = "deleteTime"]; - {::_pbi::TcParser::FastMtS1, - {82, 2, 4, PROTOBUF_FIELD_OFFSET(AttributeContext_Resource, _impl_.delete_time_)}}, - // string etag = 11 [json_name = "etag"]; - {::_pbi::TcParser::FastUS1, - {90, 63, 0, PROTOBUF_FIELD_OFFSET(AttributeContext_Resource, _impl_.etag_)}}, - // string location = 12 [json_name = "location"]; - {::_pbi::TcParser::FastUS1, - {98, 63, 0, PROTOBUF_FIELD_OFFSET(AttributeContext_Resource, _impl_.location_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string service = 1 [json_name = "service"]; - {PROTOBUF_FIELD_OFFSET(AttributeContext_Resource, _impl_.service_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string name = 2 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(AttributeContext_Resource, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string type = 3 [json_name = "type"]; - {PROTOBUF_FIELD_OFFSET(AttributeContext_Resource, _impl_.type_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // map labels = 4 [json_name = "labels"]; - {PROTOBUF_FIELD_OFFSET(AttributeContext_Resource, _impl_.labels_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, - // string uid = 5 [json_name = "uid"]; - {PROTOBUF_FIELD_OFFSET(AttributeContext_Resource, _impl_.uid_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // map annotations = 6 [json_name = "annotations"]; - {PROTOBUF_FIELD_OFFSET(AttributeContext_Resource, _impl_.annotations_), -1, 1, - (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, - // string display_name = 7 [json_name = "displayName"]; - {PROTOBUF_FIELD_OFFSET(AttributeContext_Resource, _impl_.display_name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Timestamp create_time = 8 [json_name = "createTime"]; - {PROTOBUF_FIELD_OFFSET(AttributeContext_Resource, _impl_.create_time_), _Internal::kHasBitsOffset + 0, 2, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.protobuf.Timestamp update_time = 9 [json_name = "updateTime"]; - {PROTOBUF_FIELD_OFFSET(AttributeContext_Resource, _impl_.update_time_), _Internal::kHasBitsOffset + 1, 3, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.protobuf.Timestamp delete_time = 10 [json_name = "deleteTime"]; - {PROTOBUF_FIELD_OFFSET(AttributeContext_Resource, _impl_.delete_time_), _Internal::kHasBitsOffset + 2, 4, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // string etag = 11 [json_name = "etag"]; - {PROTOBUF_FIELD_OFFSET(AttributeContext_Resource, _impl_.etag_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string location = 12 [json_name = "location"]; - {PROTOBUF_FIELD_OFFSET(AttributeContext_Resource, _impl_.location_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetMapAuxInfo< - decltype(AttributeContext_Resource()._impl_.labels_)>( - 1, 0, 0, 9, - 9)}, - {::_pbi::TcParser::GetMapAuxInfo< - decltype(AttributeContext_Resource()._impl_.annotations_)>( - 1, 0, 0, 9, - 9)}, - {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, - }}, {{ - "\54\7\4\4\6\3\13\14\0\0\0\4\10\0\0\0" - "google.rpc.context.AttributeContext.Resource" - "service" - "name" - "type" - "labels" - "uid" - "annotations" - "display_name" - "etag" - "location" - }}, -}; - -::uint8_t* AttributeContext_Resource::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* AttributeContext_Resource::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.rpc.context.AttributeContext.Resource) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string service = 1 [json_name = "service"]; if (!this->_internal_service().empty()) { - const std::string& _s = this->_internal_service(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.context.AttributeContext.Resource.service"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_service().data(), static_cast(this->_internal_service().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Resource.service"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_service(), target); } // string name = 2 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.context.AttributeContext.Resource.name"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Resource.name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_name(), target); } // string type = 3 [json_name = "type"]; if (!this->_internal_type().empty()) { - const std::string& _s = this->_internal_type(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.context.AttributeContext.Resource.type"); - target = stream->WriteStringMaybeAliased(3, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_type().data(), static_cast(this->_internal_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Resource.type"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_type(), target); } // map labels = 4 [json_name = "labels"]; - if (!_internal_labels().empty()) { - using MapType = ::google::protobuf::Map; - using WireHelper = _pbi::MapEntryFuncs; - const auto& field = _internal_labels(); - - if (stream->IsSerializationDeterministic() && field.size() > 1) { - for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { - target = WireHelper::InternalSerialize( - 4, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.context.AttributeContext.Resource.labels"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.second.data(), static_cast(entry.second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.context.AttributeContext.Resource.labels"); + if (!this->_internal_labels().empty()) { + using MapType = ::_pb::Map; + using WireHelper = AttributeContext_Resource_LabelsEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_labels(); + 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, + "google.rpc.context.AttributeContext.Resource.LabelsEntry.key"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + entry.second.data(), static_cast(entry.second.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Resource.LabelsEntry.value"); + }; + + if (stream->IsSerializationDeterministic() && map_field.size() > 1) { + for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { + target = WireHelper::InternalSerialize(4, entry.first, entry.second, target, stream); + check_utf8(entry); } } else { - for (const auto& entry : field) { - target = WireHelper::InternalSerialize( - 4, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.context.AttributeContext.Resource.labels"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.second.data(), static_cast(entry.second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.context.AttributeContext.Resource.labels"); + for (const auto& entry : map_field) { + target = WireHelper::InternalSerialize(4, entry.first, entry.second, target, stream); + check_utf8(entry); } } } // string uid = 5 [json_name = "uid"]; if (!this->_internal_uid().empty()) { - const std::string& _s = this->_internal_uid(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.context.AttributeContext.Resource.uid"); - target = stream->WriteStringMaybeAliased(5, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_uid().data(), static_cast(this->_internal_uid().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Resource.uid"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_uid(), target); } // map annotations = 6 [json_name = "annotations"]; - if (!_internal_annotations().empty()) { - using MapType = ::google::protobuf::Map; - using WireHelper = _pbi::MapEntryFuncs; - const auto& field = _internal_annotations(); - - if (stream->IsSerializationDeterministic() && field.size() > 1) { - for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { - target = WireHelper::InternalSerialize( - 6, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.context.AttributeContext.Resource.annotations"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.second.data(), static_cast(entry.second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.context.AttributeContext.Resource.annotations"); + if (!this->_internal_annotations().empty()) { + using MapType = ::_pb::Map; + using WireHelper = AttributeContext_Resource_AnnotationsEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_annotations(); + 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, + "google.rpc.context.AttributeContext.Resource.AnnotationsEntry.key"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + entry.second.data(), static_cast(entry.second.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Resource.AnnotationsEntry.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 : field) { - target = WireHelper::InternalSerialize( - 6, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.context.AttributeContext.Resource.annotations"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.second.data(), static_cast(entry.second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.context.AttributeContext.Resource.annotations"); + for (const auto& entry : map_field) { + target = WireHelper::InternalSerialize(6, entry.first, entry.second, target, stream); + check_utf8(entry); } } } // string display_name = 7 [json_name = "displayName"]; if (!this->_internal_display_name().empty()) { - const std::string& _s = this->_internal_display_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.context.AttributeContext.Resource.display_name"); - target = stream->WriteStringMaybeAliased(7, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_display_name().data(), static_cast(this->_internal_display_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Resource.display_name"); + target = stream->WriteStringMaybeAliased( + 7, this->_internal_display_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Timestamp create_time = 8 [json_name = "createTime"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 8, _Internal::create_time(this), + if (this->_internal_has_create_time()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(8, _Internal::create_time(this), _Internal::create_time(this).GetCachedSize(), target, stream); } // .google.protobuf.Timestamp update_time = 9 [json_name = "updateTime"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 9, _Internal::update_time(this), + if (this->_internal_has_update_time()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(9, _Internal::update_time(this), _Internal::update_time(this).GetCachedSize(), target, stream); } // .google.protobuf.Timestamp delete_time = 10 [json_name = "deleteTime"]; - if (cached_has_bits & 0x00000004u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 10, _Internal::delete_time(this), + if (this->_internal_has_delete_time()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(10, _Internal::delete_time(this), _Internal::delete_time(this).GetCachedSize(), target, stream); } // string etag = 11 [json_name = "etag"]; if (!this->_internal_etag().empty()) { - const std::string& _s = this->_internal_etag(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.context.AttributeContext.Resource.etag"); - target = stream->WriteStringMaybeAliased(11, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_etag().data(), static_cast(this->_internal_etag().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Resource.etag"); + target = stream->WriteStringMaybeAliased( + 11, this->_internal_etag(), target); } // string location = 12 [json_name = "location"]; if (!this->_internal_location().empty()) { - const std::string& _s = this->_internal_location(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.context.AttributeContext.Resource.location"); - target = stream->WriteStringMaybeAliased(12, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_location().data(), static_cast(this->_internal_location().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.context.AttributeContext.Resource.location"); + target = stream->WriteStringMaybeAliased( + 12, this->_internal_location(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.rpc.context.AttributeContext.Resource) return target; } -::size_t AttributeContext_Resource::ByteSizeLong() const { +size_t AttributeContext_Resource::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.rpc.context.AttributeContext.Resource) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // map labels = 4 [json_name = "labels"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_labels_size()); - for (const auto& entry : _internal_labels()) { - total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_labels_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator + it = this->_internal_labels().begin(); + it != this->_internal_labels().end(); ++it) { + total_size += AttributeContext_Resource_LabelsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); } + // map annotations = 6 [json_name = "annotations"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_annotations_size()); - for (const auto& entry : _internal_annotations()) { - total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_annotations_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator + it = this->_internal_annotations().begin(); + it != this->_internal_annotations().end(); ++it) { + total_size += AttributeContext_Resource_AnnotationsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); } + // string service = 1 [json_name = "service"]; if (!this->_internal_service().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_service()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_service()); } // string name = 2 [json_name = "name"]; if (!this->_internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // string type = 3 [json_name = "type"]; if (!this->_internal_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_type()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_type()); } // string uid = 5 [json_name = "uid"]; if (!this->_internal_uid().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_uid()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_uid()); } // string display_name = 7 [json_name = "displayName"]; if (!this->_internal_display_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_display_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_display_name()); } // string etag = 11 [json_name = "etag"]; if (!this->_internal_etag().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_etag()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_etag()); } // string location = 12 [json_name = "location"]; if (!this->_internal_location().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_location()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_location()); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - // .google.protobuf.Timestamp create_time = 8 [json_name = "createTime"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.create_time_); - } - - // .google.protobuf.Timestamp update_time = 9 [json_name = "updateTime"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.update_time_); - } + // .google.protobuf.Timestamp create_time = 8 [json_name = "createTime"]; + if (this->_internal_has_create_time()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *create_time_); + } - // .google.protobuf.Timestamp delete_time = 10 [json_name = "deleteTime"]; - if (cached_has_bits & 0x00000004u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.delete_time_); - } + // .google.protobuf.Timestamp update_time = 9 [json_name = "updateTime"]; + if (this->_internal_has_update_time()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *update_time_); + } + // .google.protobuf.Timestamp delete_time = 10 [json_name = "deleteTime"]; + if (this->_internal_has_delete_time()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *delete_time_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData AttributeContext_Resource::_class_data_ = { - AttributeContext_Resource::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AttributeContext_Resource::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + AttributeContext_Resource::MergeImpl }; -const ::google::protobuf::Message::ClassData* AttributeContext_Resource::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AttributeContext_Resource::GetClassData() const { return &_class_data_; } + +void AttributeContext_Resource::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void AttributeContext_Resource::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.context.AttributeContext.Resource) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void AttributeContext_Resource::MergeFrom(const AttributeContext_Resource& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.context.AttributeContext.Resource) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.labels_.MergeFrom(from._impl_.labels_); - _this->_impl_.annotations_.MergeFrom(from._impl_.annotations_); + labels_.MergeFrom(from.labels_); + annotations_.MergeFrom(from.annotations_); if (!from._internal_service().empty()) { - _this->_internal_set_service(from._internal_service()); + _internal_set_service(from._internal_service()); } if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (!from._internal_type().empty()) { - _this->_internal_set_type(from._internal_type()); + _internal_set_type(from._internal_type()); } if (!from._internal_uid().empty()) { - _this->_internal_set_uid(from._internal_uid()); + _internal_set_uid(from._internal_uid()); } if (!from._internal_display_name().empty()) { - _this->_internal_set_display_name(from._internal_display_name()); + _internal_set_display_name(from._internal_display_name()); } if (!from._internal_etag().empty()) { - _this->_internal_set_etag(from._internal_etag()); + _internal_set_etag(from._internal_etag()); } if (!from._internal_location().empty()) { - _this->_internal_set_location(from._internal_location()); + _internal_set_location(from._internal_location()); } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_create_time()->::google::protobuf::Timestamp::MergeFrom( - from._internal_create_time()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_update_time()->::google::protobuf::Timestamp::MergeFrom( - from._internal_update_time()); - } - if (cached_has_bits & 0x00000004u) { - _this->_internal_mutable_delete_time()->::google::protobuf::Timestamp::MergeFrom( - from._internal_delete_time()); - } + if (from._internal_has_create_time()) { + _internal_mutable_create_time()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_create_time()); + } + if (from._internal_has_update_time()) { + _internal_mutable_update_time()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_update_time()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_delete_time()) { + _internal_mutable_delete_time()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_delete_time()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void AttributeContext_Resource::CopyFrom(const AttributeContext_Resource& from) { @@ -3238,496 +3430,499 @@ void AttributeContext_Resource::CopyFrom(const AttributeContext_Resource& from) MergeFrom(from); } -PROTOBUF_NOINLINE bool AttributeContext_Resource::IsInitialized() const { +bool AttributeContext_Resource::IsInitialized() const { return true; } -::_pbi::CachedSize* AttributeContext_Resource::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void AttributeContext_Resource::InternalSwap(AttributeContext_Resource* PROTOBUF_RESTRICT other) { +void AttributeContext_Resource::InternalSwap(AttributeContext_Resource* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.labels_.InternalSwap(&other->_impl_.labels_); - _impl_.annotations_.InternalSwap(&other->_impl_.annotations_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.service_, &other->_impl_.service_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.type_, &other->_impl_.type_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.uid_, &other->_impl_.uid_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.display_name_, &other->_impl_.display_name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.etag_, &other->_impl_.etag_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.location_, &other->_impl_.location_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(AttributeContext_Resource, _impl_.delete_time_) - + sizeof(AttributeContext_Resource::_impl_.delete_time_) - - PROTOBUF_FIELD_OFFSET(AttributeContext_Resource, _impl_.create_time_)>( - reinterpret_cast(&_impl_.create_time_), - reinterpret_cast(&other->_impl_.create_time_)); -} - -::google::protobuf::Metadata AttributeContext_Resource::GetMetadata() const { + labels_.InternalSwap(&other->labels_); + annotations_.InternalSwap(&other->annotations_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &service_, lhs_arena, + &other->service_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &type_, lhs_arena, + &other->type_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &uid_, lhs_arena, + &other->uid_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &display_name_, lhs_arena, + &other->display_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &etag_, lhs_arena, + &other->etag_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &location_, lhs_arena, + &other->location_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(AttributeContext_Resource, delete_time_) + + sizeof(AttributeContext_Resource::delete_time_) + - PROTOBUF_FIELD_OFFSET(AttributeContext_Resource, create_time_)>( + reinterpret_cast(&create_time_), + reinterpret_cast(&other->create_time_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata AttributeContext_Resource::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_getter, &descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_once, file_level_metadata_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto[10]); } + // =================================================================== class AttributeContext::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(AttributeContext, _impl_._has_bits_); static const ::google::rpc::context::AttributeContext_Peer& origin(const AttributeContext* msg); - static void set_has_origin(HasBits* has_bits) { - (*has_bits)[0] |= 64u; - } static const ::google::rpc::context::AttributeContext_Peer& source(const AttributeContext* msg); - static void set_has_source(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } static const ::google::rpc::context::AttributeContext_Peer& destination(const AttributeContext* msg); - static void set_has_destination(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } static const ::google::rpc::context::AttributeContext_Request& request(const AttributeContext* msg); - static void set_has_request(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } static const ::google::rpc::context::AttributeContext_Response& response(const AttributeContext* msg); - static void set_has_response(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } static const ::google::rpc::context::AttributeContext_Resource& resource(const AttributeContext* msg); - static void set_has_resource(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } static const ::google::rpc::context::AttributeContext_Api& api(const AttributeContext* msg); - static void set_has_api(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } }; -const ::google::rpc::context::AttributeContext_Peer& AttributeContext::_Internal::origin(const AttributeContext* msg) { - return *msg->_impl_.origin_; +const ::google::rpc::context::AttributeContext_Peer& +AttributeContext::_Internal::origin(const AttributeContext* msg) { + return *msg->origin_; } -const ::google::rpc::context::AttributeContext_Peer& AttributeContext::_Internal::source(const AttributeContext* msg) { - return *msg->_impl_.source_; +const ::google::rpc::context::AttributeContext_Peer& +AttributeContext::_Internal::source(const AttributeContext* msg) { + return *msg->source_; } -const ::google::rpc::context::AttributeContext_Peer& AttributeContext::_Internal::destination(const AttributeContext* msg) { - return *msg->_impl_.destination_; +const ::google::rpc::context::AttributeContext_Peer& +AttributeContext::_Internal::destination(const AttributeContext* msg) { + return *msg->destination_; } -const ::google::rpc::context::AttributeContext_Request& AttributeContext::_Internal::request(const AttributeContext* msg) { - return *msg->_impl_.request_; +const ::google::rpc::context::AttributeContext_Request& +AttributeContext::_Internal::request(const AttributeContext* msg) { + return *msg->request_; } -const ::google::rpc::context::AttributeContext_Response& AttributeContext::_Internal::response(const AttributeContext* msg) { - return *msg->_impl_.response_; +const ::google::rpc::context::AttributeContext_Response& +AttributeContext::_Internal::response(const AttributeContext* msg) { + return *msg->response_; } -const ::google::rpc::context::AttributeContext_Resource& AttributeContext::_Internal::resource(const AttributeContext* msg) { - return *msg->_impl_.resource_; +const ::google::rpc::context::AttributeContext_Resource& +AttributeContext::_Internal::resource(const AttributeContext* msg) { + return *msg->resource_; } -const ::google::rpc::context::AttributeContext_Api& AttributeContext::_Internal::api(const AttributeContext* msg) { - return *msg->_impl_.api_; +const ::google::rpc::context::AttributeContext_Api& +AttributeContext::_Internal::api(const AttributeContext* msg) { + return *msg->api_; } void AttributeContext::clear_extensions() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.extensions_.Clear(); + extensions_.Clear(); } -AttributeContext::AttributeContext(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +AttributeContext::AttributeContext(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + extensions_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.rpc.context.AttributeContext) } -inline PROTOBUF_NDEBUG_INLINE AttributeContext::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - extensions_{visibility, arena, from.extensions_} {} - -AttributeContext::AttributeContext( - ::google::protobuf::Arena* arena, - const AttributeContext& from) - : ::google::protobuf::Message(arena) { - AttributeContext* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.source_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::rpc::context::AttributeContext_Peer>(arena, *from._impl_.source_) - : nullptr; - _impl_.destination_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::google::rpc::context::AttributeContext_Peer>(arena, *from._impl_.destination_) - : nullptr; - _impl_.request_ = (cached_has_bits & 0x00000004u) - ? CreateMaybeMessage<::google::rpc::context::AttributeContext_Request>(arena, *from._impl_.request_) - : nullptr; - _impl_.response_ = (cached_has_bits & 0x00000008u) - ? CreateMaybeMessage<::google::rpc::context::AttributeContext_Response>(arena, *from._impl_.response_) - : nullptr; - _impl_.resource_ = (cached_has_bits & 0x00000010u) - ? CreateMaybeMessage<::google::rpc::context::AttributeContext_Resource>(arena, *from._impl_.resource_) - : nullptr; - _impl_.api_ = (cached_has_bits & 0x00000020u) - ? CreateMaybeMessage<::google::rpc::context::AttributeContext_Api>(arena, *from._impl_.api_) - : nullptr; - _impl_.origin_ = (cached_has_bits & 0x00000040u) - ? CreateMaybeMessage<::google::rpc::context::AttributeContext_Peer>(arena, *from._impl_.origin_) - : nullptr; - +AttributeContext::AttributeContext(const AttributeContext& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + extensions_(from.extensions_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_source()) { + source_ = new ::google::rpc::context::AttributeContext_Peer(*from.source_); + } else { + source_ = nullptr; + } + if (from._internal_has_destination()) { + destination_ = new ::google::rpc::context::AttributeContext_Peer(*from.destination_); + } else { + destination_ = nullptr; + } + if (from._internal_has_request()) { + request_ = new ::google::rpc::context::AttributeContext_Request(*from.request_); + } else { + request_ = nullptr; + } + if (from._internal_has_response()) { + response_ = new ::google::rpc::context::AttributeContext_Response(*from.response_); + } else { + response_ = nullptr; + } + if (from._internal_has_resource()) { + resource_ = new ::google::rpc::context::AttributeContext_Resource(*from.resource_); + } else { + resource_ = nullptr; + } + if (from._internal_has_api()) { + api_ = new ::google::rpc::context::AttributeContext_Api(*from.api_); + } else { + api_ = nullptr; + } + if (from._internal_has_origin()) { + origin_ = new ::google::rpc::context::AttributeContext_Peer(*from.origin_); + } else { + origin_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:google.rpc.context.AttributeContext) } -inline PROTOBUF_NDEBUG_INLINE AttributeContext::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - extensions_{visibility, arena} {} - -inline void AttributeContext::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, source_), - 0, - offsetof(Impl_, origin_) - - offsetof(Impl_, source_) + - sizeof(Impl_::origin_)); + +inline void AttributeContext::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&source_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&origin_) - + reinterpret_cast(&source_)) + sizeof(origin_)); } + AttributeContext::~AttributeContext() { // @@protoc_insertion_point(destructor:google.rpc.context.AttributeContext) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void AttributeContext::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.source_; - delete _impl_.destination_; - delete _impl_.request_; - delete _impl_.response_; - delete _impl_.resource_; - delete _impl_.api_; - delete _impl_.origin_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void AttributeContext::Clear() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete source_; + if (this != internal_default_instance()) delete destination_; + if (this != internal_default_instance()) delete request_; + if (this != internal_default_instance()) delete response_; + if (this != internal_default_instance()) delete resource_; + if (this != internal_default_instance()) delete api_; + if (this != internal_default_instance()) delete origin_; +} + +void AttributeContext::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void AttributeContext::Clear() { // @@protoc_insertion_point(message_clear_start:google.rpc.context.AttributeContext) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.extensions_.Clear(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x0000007fu) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.source_ != nullptr); - _impl_.source_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.destination_ != nullptr); - _impl_.destination_->Clear(); - } - if (cached_has_bits & 0x00000004u) { - ABSL_DCHECK(_impl_.request_ != nullptr); - _impl_.request_->Clear(); - } - if (cached_has_bits & 0x00000008u) { - ABSL_DCHECK(_impl_.response_ != nullptr); - _impl_.response_->Clear(); - } - if (cached_has_bits & 0x00000010u) { - ABSL_DCHECK(_impl_.resource_ != nullptr); - _impl_.resource_->Clear(); + extensions_.Clear(); + if (GetArenaForAllocation() == nullptr && source_ != nullptr) { + delete source_; + } + source_ = nullptr; + if (GetArenaForAllocation() == nullptr && destination_ != nullptr) { + delete destination_; + } + destination_ = nullptr; + if (GetArenaForAllocation() == nullptr && request_ != nullptr) { + delete request_; + } + request_ = nullptr; + if (GetArenaForAllocation() == nullptr && response_ != nullptr) { + delete response_; + } + response_ = nullptr; + if (GetArenaForAllocation() == nullptr && resource_ != nullptr) { + delete resource_; + } + resource_ = nullptr; + if (GetArenaForAllocation() == nullptr && api_ != nullptr) { + delete api_; + } + api_ = nullptr; + if (GetArenaForAllocation() == nullptr && origin_ != nullptr) { + delete origin_; + } + origin_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* AttributeContext::_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) { + // .google.rpc.context.AttributeContext.Peer source = 1 [json_name = "source"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_source(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.rpc.context.AttributeContext.Peer destination = 2 [json_name = "destination"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_destination(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.rpc.context.AttributeContext.Request request = 3 [json_name = "request"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_request(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.rpc.context.AttributeContext.Response response = 4 [json_name = "response"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_response(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.rpc.context.AttributeContext.Resource resource = 5 [json_name = "resource"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_resource(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.rpc.context.AttributeContext.Api api = 6 [json_name = "api"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr = ctx->ParseMessage(_internal_mutable_api(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.rpc.context.AttributeContext.Peer origin = 7 [json_name = "origin"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + ptr = ctx->ParseMessage(_internal_mutable_origin(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // repeated .google.protobuf.Any extensions = 8 [json_name = "extensions"]; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_extensions(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<66>(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; } - if (cached_has_bits & 0x00000020u) { - ABSL_DCHECK(_impl_.api_ != nullptr); - _impl_.api_->Clear(); - } - if (cached_has_bits & 0x00000040u) { - ABSL_DCHECK(_impl_.origin_ != nullptr); - _impl_.origin_->Clear(); - } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* AttributeContext::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 8, 8, 0, 2> AttributeContext::_table_ = { - { - PROTOBUF_FIELD_OFFSET(AttributeContext, _impl_._has_bits_), - 0, // no _extensions_ - 8, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967040, // skipmap - offsetof(decltype(_table_), field_entries), - 8, // num_field_entries - 8, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_AttributeContext_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .google.protobuf.Any extensions = 8 [json_name = "extensions"]; - {::_pbi::TcParser::FastMtR1, - {66, 63, 7, PROTOBUF_FIELD_OFFSET(AttributeContext, _impl_.extensions_)}}, - // .google.rpc.context.AttributeContext.Peer source = 1 [json_name = "source"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(AttributeContext, _impl_.source_)}}, - // .google.rpc.context.AttributeContext.Peer destination = 2 [json_name = "destination"]; - {::_pbi::TcParser::FastMtS1, - {18, 1, 1, PROTOBUF_FIELD_OFFSET(AttributeContext, _impl_.destination_)}}, - // .google.rpc.context.AttributeContext.Request request = 3 [json_name = "request"]; - {::_pbi::TcParser::FastMtS1, - {26, 2, 2, PROTOBUF_FIELD_OFFSET(AttributeContext, _impl_.request_)}}, - // .google.rpc.context.AttributeContext.Response response = 4 [json_name = "response"]; - {::_pbi::TcParser::FastMtS1, - {34, 3, 3, PROTOBUF_FIELD_OFFSET(AttributeContext, _impl_.response_)}}, - // .google.rpc.context.AttributeContext.Resource resource = 5 [json_name = "resource"]; - {::_pbi::TcParser::FastMtS1, - {42, 4, 4, PROTOBUF_FIELD_OFFSET(AttributeContext, _impl_.resource_)}}, - // .google.rpc.context.AttributeContext.Api api = 6 [json_name = "api"]; - {::_pbi::TcParser::FastMtS1, - {50, 5, 5, PROTOBUF_FIELD_OFFSET(AttributeContext, _impl_.api_)}}, - // .google.rpc.context.AttributeContext.Peer origin = 7 [json_name = "origin"]; - {::_pbi::TcParser::FastMtS1, - {58, 6, 6, PROTOBUF_FIELD_OFFSET(AttributeContext, _impl_.origin_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .google.rpc.context.AttributeContext.Peer source = 1 [json_name = "source"]; - {PROTOBUF_FIELD_OFFSET(AttributeContext, _impl_.source_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.rpc.context.AttributeContext.Peer destination = 2 [json_name = "destination"]; - {PROTOBUF_FIELD_OFFSET(AttributeContext, _impl_.destination_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.rpc.context.AttributeContext.Request request = 3 [json_name = "request"]; - {PROTOBUF_FIELD_OFFSET(AttributeContext, _impl_.request_), _Internal::kHasBitsOffset + 2, 2, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.rpc.context.AttributeContext.Response response = 4 [json_name = "response"]; - {PROTOBUF_FIELD_OFFSET(AttributeContext, _impl_.response_), _Internal::kHasBitsOffset + 3, 3, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.rpc.context.AttributeContext.Resource resource = 5 [json_name = "resource"]; - {PROTOBUF_FIELD_OFFSET(AttributeContext, _impl_.resource_), _Internal::kHasBitsOffset + 4, 4, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.rpc.context.AttributeContext.Api api = 6 [json_name = "api"]; - {PROTOBUF_FIELD_OFFSET(AttributeContext, _impl_.api_), _Internal::kHasBitsOffset + 5, 5, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.rpc.context.AttributeContext.Peer origin = 7 [json_name = "origin"]; - {PROTOBUF_FIELD_OFFSET(AttributeContext, _impl_.origin_), _Internal::kHasBitsOffset + 6, 6, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated .google.protobuf.Any extensions = 8 [json_name = "extensions"]; - {PROTOBUF_FIELD_OFFSET(AttributeContext, _impl_.extensions_), -1, 7, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::rpc::context::AttributeContext_Peer>()}, - {::_pbi::TcParser::GetTable<::google::rpc::context::AttributeContext_Peer>()}, - {::_pbi::TcParser::GetTable<::google::rpc::context::AttributeContext_Request>()}, - {::_pbi::TcParser::GetTable<::google::rpc::context::AttributeContext_Response>()}, - {::_pbi::TcParser::GetTable<::google::rpc::context::AttributeContext_Resource>()}, - {::_pbi::TcParser::GetTable<::google::rpc::context::AttributeContext_Api>()}, - {::_pbi::TcParser::GetTable<::google::rpc::context::AttributeContext_Peer>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Any>()}, - }}, {{ - }}, -}; - -::uint8_t* AttributeContext::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* AttributeContext::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.rpc.context.AttributeContext) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .google.rpc.context.AttributeContext.Peer source = 1 [json_name = "source"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::source(this), + if (this->_internal_has_source()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::source(this), _Internal::source(this).GetCachedSize(), target, stream); } // .google.rpc.context.AttributeContext.Peer destination = 2 [json_name = "destination"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::destination(this), + if (this->_internal_has_destination()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::destination(this), _Internal::destination(this).GetCachedSize(), target, stream); } // .google.rpc.context.AttributeContext.Request request = 3 [json_name = "request"]; - if (cached_has_bits & 0x00000004u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::request(this), + if (this->_internal_has_request()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::request(this), _Internal::request(this).GetCachedSize(), target, stream); } // .google.rpc.context.AttributeContext.Response response = 4 [json_name = "response"]; - if (cached_has_bits & 0x00000008u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, _Internal::response(this), + if (this->_internal_has_response()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::response(this), _Internal::response(this).GetCachedSize(), target, stream); } // .google.rpc.context.AttributeContext.Resource resource = 5 [json_name = "resource"]; - if (cached_has_bits & 0x00000010u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 5, _Internal::resource(this), + if (this->_internal_has_resource()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(5, _Internal::resource(this), _Internal::resource(this).GetCachedSize(), target, stream); } // .google.rpc.context.AttributeContext.Api api = 6 [json_name = "api"]; - if (cached_has_bits & 0x00000020u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 6, _Internal::api(this), + if (this->_internal_has_api()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(6, _Internal::api(this), _Internal::api(this).GetCachedSize(), target, stream); } // .google.rpc.context.AttributeContext.Peer origin = 7 [json_name = "origin"]; - if (cached_has_bits & 0x00000040u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 7, _Internal::origin(this), + if (this->_internal_has_origin()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(7, _Internal::origin(this), _Internal::origin(this).GetCachedSize(), target, stream); } // repeated .google.protobuf.Any extensions = 8 [json_name = "extensions"]; for (unsigned i = 0, n = static_cast(this->_internal_extensions_size()); i < n; i++) { - const auto& repfield = this->_internal_extensions().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_extensions(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(8, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.rpc.context.AttributeContext) return target; } -::size_t AttributeContext::ByteSizeLong() const { +size_t AttributeContext::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.rpc.context.AttributeContext) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .google.protobuf.Any extensions = 8 [json_name = "extensions"]; total_size += 1UL * this->_internal_extensions_size(); - for (const auto& msg : this->_internal_extensions()) { + for (const auto& msg : this->extensions_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); - } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x0000007fu) { - // .google.rpc.context.AttributeContext.Peer source = 1 [json_name = "source"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.source_); - } + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } - // .google.rpc.context.AttributeContext.Peer destination = 2 [json_name = "destination"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.destination_); - } + // .google.rpc.context.AttributeContext.Peer source = 1 [json_name = "source"]; + if (this->_internal_has_source()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *source_); + } - // .google.rpc.context.AttributeContext.Request request = 3 [json_name = "request"]; - if (cached_has_bits & 0x00000004u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.request_); - } + // .google.rpc.context.AttributeContext.Peer destination = 2 [json_name = "destination"]; + if (this->_internal_has_destination()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *destination_); + } - // .google.rpc.context.AttributeContext.Response response = 4 [json_name = "response"]; - if (cached_has_bits & 0x00000008u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.response_); - } + // .google.rpc.context.AttributeContext.Request request = 3 [json_name = "request"]; + if (this->_internal_has_request()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *request_); + } - // .google.rpc.context.AttributeContext.Resource resource = 5 [json_name = "resource"]; - if (cached_has_bits & 0x00000010u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.resource_); - } + // .google.rpc.context.AttributeContext.Response response = 4 [json_name = "response"]; + if (this->_internal_has_response()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *response_); + } - // .google.rpc.context.AttributeContext.Api api = 6 [json_name = "api"]; - if (cached_has_bits & 0x00000020u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.api_); - } + // .google.rpc.context.AttributeContext.Resource resource = 5 [json_name = "resource"]; + if (this->_internal_has_resource()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *resource_); + } - // .google.rpc.context.AttributeContext.Peer origin = 7 [json_name = "origin"]; - if (cached_has_bits & 0x00000040u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.origin_); - } + // .google.rpc.context.AttributeContext.Api api = 6 [json_name = "api"]; + if (this->_internal_has_api()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *api_); + } + // .google.rpc.context.AttributeContext.Peer origin = 7 [json_name = "origin"]; + if (this->_internal_has_origin()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *origin_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData AttributeContext::_class_data_ = { - AttributeContext::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AttributeContext::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + AttributeContext::MergeImpl }; -const ::google::protobuf::Message::ClassData* AttributeContext::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AttributeContext::GetClassData() const { return &_class_data_; } + +void AttributeContext::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void AttributeContext::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.context.AttributeContext) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void AttributeContext::MergeFrom(const AttributeContext& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.context.AttributeContext) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_extensions()->MergeFrom( - from._internal_extensions()); - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x0000007fu) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_source()->::google::rpc::context::AttributeContext_Peer::MergeFrom( - from._internal_source()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_destination()->::google::rpc::context::AttributeContext_Peer::MergeFrom( - from._internal_destination()); - } - if (cached_has_bits & 0x00000004u) { - _this->_internal_mutable_request()->::google::rpc::context::AttributeContext_Request::MergeFrom( - from._internal_request()); - } - if (cached_has_bits & 0x00000008u) { - _this->_internal_mutable_response()->::google::rpc::context::AttributeContext_Response::MergeFrom( - from._internal_response()); - } - if (cached_has_bits & 0x00000010u) { - _this->_internal_mutable_resource()->::google::rpc::context::AttributeContext_Resource::MergeFrom( - from._internal_resource()); - } - if (cached_has_bits & 0x00000020u) { - _this->_internal_mutable_api()->::google::rpc::context::AttributeContext_Api::MergeFrom( - from._internal_api()); - } - if (cached_has_bits & 0x00000040u) { - _this->_internal_mutable_origin()->::google::rpc::context::AttributeContext_Peer::MergeFrom( - from._internal_origin()); - } + extensions_.MergeFrom(from.extensions_); + if (from._internal_has_source()) { + _internal_mutable_source()->::google::rpc::context::AttributeContext_Peer::MergeFrom(from._internal_source()); + } + if (from._internal_has_destination()) { + _internal_mutable_destination()->::google::rpc::context::AttributeContext_Peer::MergeFrom(from._internal_destination()); + } + if (from._internal_has_request()) { + _internal_mutable_request()->::google::rpc::context::AttributeContext_Request::MergeFrom(from._internal_request()); + } + if (from._internal_has_response()) { + _internal_mutable_response()->::google::rpc::context::AttributeContext_Response::MergeFrom(from._internal_response()); + } + if (from._internal_has_resource()) { + _internal_mutable_resource()->::google::rpc::context::AttributeContext_Resource::MergeFrom(from._internal_resource()); + } + if (from._internal_has_api()) { + _internal_mutable_api()->::google::rpc::context::AttributeContext_Api::MergeFrom(from._internal_api()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_origin()) { + _internal_mutable_origin()->::google::rpc::context::AttributeContext_Peer::MergeFrom(from._internal_origin()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void AttributeContext::CopyFrom(const AttributeContext& from) { @@ -3737,38 +3932,82 @@ void AttributeContext::CopyFrom(const AttributeContext& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool AttributeContext::IsInitialized() const { +bool AttributeContext::IsInitialized() const { return true; } -::_pbi::CachedSize* AttributeContext::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void AttributeContext::InternalSwap(AttributeContext* PROTOBUF_RESTRICT other) { +void AttributeContext::InternalSwap(AttributeContext* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.extensions_.InternalSwap(&other->_impl_.extensions_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(AttributeContext, _impl_.origin_) - + sizeof(AttributeContext::_impl_.origin_) - - PROTOBUF_FIELD_OFFSET(AttributeContext, _impl_.source_)>( - reinterpret_cast(&_impl_.source_), - reinterpret_cast(&other->_impl_.source_)); + extensions_.InternalSwap(&other->extensions_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(AttributeContext, origin_) + + sizeof(AttributeContext::origin_) + - PROTOBUF_FIELD_OFFSET(AttributeContext, source_)>( + reinterpret_cast(&source_), + reinterpret_cast(&other->source_)); } -::google::protobuf::Metadata AttributeContext::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata AttributeContext::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_getter, &descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_once, file_level_metadata_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto[11]); } + // @@protoc_insertion_point(namespace_scope) } // namespace context } // namespace rpc } // namespace google -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::google::rpc::context::AttributeContext_Peer_LabelsEntry_DoNotUse* +Arena::CreateMaybeMessage< ::google::rpc::context::AttributeContext_Peer_LabelsEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::rpc::context::AttributeContext_Peer_LabelsEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::google::rpc::context::AttributeContext_Peer* +Arena::CreateMaybeMessage< ::google::rpc::context::AttributeContext_Peer >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::rpc::context::AttributeContext_Peer >(arena); +} +template<> PROTOBUF_NOINLINE ::google::rpc::context::AttributeContext_Api* +Arena::CreateMaybeMessage< ::google::rpc::context::AttributeContext_Api >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::rpc::context::AttributeContext_Api >(arena); +} +template<> PROTOBUF_NOINLINE ::google::rpc::context::AttributeContext_Auth* +Arena::CreateMaybeMessage< ::google::rpc::context::AttributeContext_Auth >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::rpc::context::AttributeContext_Auth >(arena); +} +template<> PROTOBUF_NOINLINE ::google::rpc::context::AttributeContext_Request_HeadersEntry_DoNotUse* +Arena::CreateMaybeMessage< ::google::rpc::context::AttributeContext_Request_HeadersEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::rpc::context::AttributeContext_Request_HeadersEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::google::rpc::context::AttributeContext_Request* +Arena::CreateMaybeMessage< ::google::rpc::context::AttributeContext_Request >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::rpc::context::AttributeContext_Request >(arena); +} +template<> PROTOBUF_NOINLINE ::google::rpc::context::AttributeContext_Response_HeadersEntry_DoNotUse* +Arena::CreateMaybeMessage< ::google::rpc::context::AttributeContext_Response_HeadersEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::rpc::context::AttributeContext_Response_HeadersEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::google::rpc::context::AttributeContext_Response* +Arena::CreateMaybeMessage< ::google::rpc::context::AttributeContext_Response >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::rpc::context::AttributeContext_Response >(arena); +} +template<> PROTOBUF_NOINLINE ::google::rpc::context::AttributeContext_Resource_LabelsEntry_DoNotUse* +Arena::CreateMaybeMessage< ::google::rpc::context::AttributeContext_Resource_LabelsEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::rpc::context::AttributeContext_Resource_LabelsEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::google::rpc::context::AttributeContext_Resource_AnnotationsEntry_DoNotUse* +Arena::CreateMaybeMessage< ::google::rpc::context::AttributeContext_Resource_AnnotationsEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::rpc::context::AttributeContext_Resource_AnnotationsEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::google::rpc::context::AttributeContext_Resource* +Arena::CreateMaybeMessage< ::google::rpc::context::AttributeContext_Resource >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::rpc::context::AttributeContext_Resource >(arena); +} +template<> PROTOBUF_NOINLINE ::google::rpc::context::AttributeContext* +Arena::CreateMaybeMessage< ::google::rpc::context::AttributeContext >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::rpc::context::AttributeContext >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/google/rpc/context/attribute_context.pb.h b/src/viam/api/google/rpc/context/attribute_context.pb.h index be18eb4da..b8a09587f 100644 --- a/src/viam/api/google/rpc/context/attribute_context.pb.h +++ b/src/viam/api/google/rpc/context/attribute_context.pb.h @@ -1,67 +1,56 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/rpc/context/attribute_context.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/map.h" // IWYU pragma: export -#include "google/protobuf/map_entry.h" -#include "google/protobuf/map_field_inl.h" -#include "google/protobuf/unknown_field_set.h" -#include "google/protobuf/any.pb.h" -#include "google/protobuf/duration.pb.h" -#include "google/protobuf/struct.pb.h" -#include "google/protobuf/timestamp.pb.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include #define PROTOBUF_INTERNAL_EXPORT_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto; namespace google { namespace rpc { namespace context { @@ -103,179 +92,280 @@ struct AttributeContext_Response_HeadersEntry_DoNotUseDefaultTypeInternal; extern AttributeContext_Response_HeadersEntry_DoNotUseDefaultTypeInternal _AttributeContext_Response_HeadersEntry_DoNotUse_default_instance_; } // namespace context } // namespace rpc -namespace protobuf { -} // namespace protobuf } // namespace google - +PROTOBUF_NAMESPACE_OPEN +template<> ::google::rpc::context::AttributeContext* Arena::CreateMaybeMessage<::google::rpc::context::AttributeContext>(Arena*); +template<> ::google::rpc::context::AttributeContext_Api* Arena::CreateMaybeMessage<::google::rpc::context::AttributeContext_Api>(Arena*); +template<> ::google::rpc::context::AttributeContext_Auth* Arena::CreateMaybeMessage<::google::rpc::context::AttributeContext_Auth>(Arena*); +template<> ::google::rpc::context::AttributeContext_Peer* Arena::CreateMaybeMessage<::google::rpc::context::AttributeContext_Peer>(Arena*); +template<> ::google::rpc::context::AttributeContext_Peer_LabelsEntry_DoNotUse* Arena::CreateMaybeMessage<::google::rpc::context::AttributeContext_Peer_LabelsEntry_DoNotUse>(Arena*); +template<> ::google::rpc::context::AttributeContext_Request* Arena::CreateMaybeMessage<::google::rpc::context::AttributeContext_Request>(Arena*); +template<> ::google::rpc::context::AttributeContext_Request_HeadersEntry_DoNotUse* Arena::CreateMaybeMessage<::google::rpc::context::AttributeContext_Request_HeadersEntry_DoNotUse>(Arena*); +template<> ::google::rpc::context::AttributeContext_Resource* Arena::CreateMaybeMessage<::google::rpc::context::AttributeContext_Resource>(Arena*); +template<> ::google::rpc::context::AttributeContext_Resource_AnnotationsEntry_DoNotUse* Arena::CreateMaybeMessage<::google::rpc::context::AttributeContext_Resource_AnnotationsEntry_DoNotUse>(Arena*); +template<> ::google::rpc::context::AttributeContext_Resource_LabelsEntry_DoNotUse* Arena::CreateMaybeMessage<::google::rpc::context::AttributeContext_Resource_LabelsEntry_DoNotUse>(Arena*); +template<> ::google::rpc::context::AttributeContext_Response* Arena::CreateMaybeMessage<::google::rpc::context::AttributeContext_Response>(Arena*); +template<> ::google::rpc::context::AttributeContext_Response_HeadersEntry_DoNotUse* Arena::CreateMaybeMessage<::google::rpc::context::AttributeContext_Response_HeadersEntry_DoNotUse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace google { namespace rpc { namespace context { // =================================================================== - -// ------------------------------------------------------------------- - -class AttributeContext_Response_HeadersEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry< - AttributeContext_Response_HeadersEntry_DoNotUse, std::string, std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING> { - public: - using SuperType = ::google::protobuf::internal::MapEntry< - AttributeContext_Response_HeadersEntry_DoNotUse, std::string, std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING>; - AttributeContext_Response_HeadersEntry_DoNotUse(); - template - explicit PROTOBUF_CONSTEXPR AttributeContext_Response_HeadersEntry_DoNotUse( - ::google::protobuf::internal::ConstantInitialized); - explicit AttributeContext_Response_HeadersEntry_DoNotUse(::google::protobuf::Arena* arena); - static const AttributeContext_Response_HeadersEntry_DoNotUse* internal_default_instance() { - return reinterpret_cast( - &_AttributeContext_Response_HeadersEntry_DoNotUse_default_instance_); - } +class AttributeContext_Peer_LabelsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + AttributeContext_Peer_LabelsEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR AttributeContext_Peer_LabelsEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit AttributeContext_Peer_LabelsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const AttributeContext_Peer_LabelsEntry_DoNotUse& other); + static const AttributeContext_Peer_LabelsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_AttributeContext_Peer_LabelsEntry_DoNotUse_default_instance_); } static bool ValidateKey(std::string* s) { - return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "google.rpc.context.AttributeContext.Response.HeadersEntry.key"); + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "google.rpc.context.AttributeContext.Peer.LabelsEntry.key"); } static bool ValidateValue(std::string* s) { - return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "google.rpc.context.AttributeContext.Response.HeadersEntry.value"); + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "google.rpc.context.AttributeContext.Peer.LabelsEntry.value"); } - ::google::protobuf::Metadata GetMetadata() const final; + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; friend struct ::TableStruct_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto; }; + // ------------------------------------------------------------------- -class AttributeContext_Resource_LabelsEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry< - AttributeContext_Resource_LabelsEntry_DoNotUse, std::string, std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING> { +class AttributeContext_Peer final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.rpc.context.AttributeContext.Peer) */ { public: - using SuperType = ::google::protobuf::internal::MapEntry< - AttributeContext_Resource_LabelsEntry_DoNotUse, std::string, std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING>; - AttributeContext_Resource_LabelsEntry_DoNotUse(); - template - explicit PROTOBUF_CONSTEXPR AttributeContext_Resource_LabelsEntry_DoNotUse( - ::google::protobuf::internal::ConstantInitialized); - explicit AttributeContext_Resource_LabelsEntry_DoNotUse(::google::protobuf::Arena* arena); - static const AttributeContext_Resource_LabelsEntry_DoNotUse* internal_default_instance() { - return reinterpret_cast( - &_AttributeContext_Resource_LabelsEntry_DoNotUse_default_instance_); + inline AttributeContext_Peer() : AttributeContext_Peer(nullptr) {} + ~AttributeContext_Peer() override; + explicit PROTOBUF_CONSTEXPR AttributeContext_Peer(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + AttributeContext_Peer(const AttributeContext_Peer& from); + AttributeContext_Peer(AttributeContext_Peer&& from) noexcept + : AttributeContext_Peer() { + *this = ::std::move(from); } - static bool ValidateKey(std::string* s) { - return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "google.rpc.context.AttributeContext.Resource.LabelsEntry.key"); - } - static bool ValidateValue(std::string* s) { - return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "google.rpc.context.AttributeContext.Resource.LabelsEntry.value"); - } - ::google::protobuf::Metadata GetMetadata() const final; - friend struct ::TableStruct_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto; -}; -// ------------------------------------------------------------------- -class AttributeContext_Resource_AnnotationsEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry< - AttributeContext_Resource_AnnotationsEntry_DoNotUse, std::string, std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING> { - public: - using SuperType = ::google::protobuf::internal::MapEntry< - AttributeContext_Resource_AnnotationsEntry_DoNotUse, std::string, std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING>; - AttributeContext_Resource_AnnotationsEntry_DoNotUse(); - template - explicit PROTOBUF_CONSTEXPR AttributeContext_Resource_AnnotationsEntry_DoNotUse( - ::google::protobuf::internal::ConstantInitialized); - explicit AttributeContext_Resource_AnnotationsEntry_DoNotUse(::google::protobuf::Arena* arena); - static const AttributeContext_Resource_AnnotationsEntry_DoNotUse* internal_default_instance() { - return reinterpret_cast( - &_AttributeContext_Resource_AnnotationsEntry_DoNotUse_default_instance_); + inline AttributeContext_Peer& operator=(const AttributeContext_Peer& from) { + CopyFrom(from); + return *this; + } + inline AttributeContext_Peer& operator=(AttributeContext_Peer&& 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 bool ValidateKey(std::string* s) { - return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "google.rpc.context.AttributeContext.Resource.AnnotationsEntry.key"); - } - static bool ValidateValue(std::string* s) { - return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "google.rpc.context.AttributeContext.Resource.AnnotationsEntry.value"); - } - ::google::protobuf::Metadata GetMetadata() const final; - friend struct ::TableStruct_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto; -}; -// ------------------------------------------------------------------- -class AttributeContext_Request_HeadersEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry< - AttributeContext_Request_HeadersEntry_DoNotUse, std::string, std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING> { - public: - using SuperType = ::google::protobuf::internal::MapEntry< - AttributeContext_Request_HeadersEntry_DoNotUse, std::string, std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING>; - AttributeContext_Request_HeadersEntry_DoNotUse(); - template - explicit PROTOBUF_CONSTEXPR AttributeContext_Request_HeadersEntry_DoNotUse( - ::google::protobuf::internal::ConstantInitialized); - explicit AttributeContext_Request_HeadersEntry_DoNotUse(::google::protobuf::Arena* arena); - static const AttributeContext_Request_HeadersEntry_DoNotUse* internal_default_instance() { - return reinterpret_cast( - &_AttributeContext_Request_HeadersEntry_DoNotUse_default_instance_); + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); } - static bool ValidateKey(std::string* s) { - return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "google.rpc.context.AttributeContext.Request.HeadersEntry.key"); - } - static bool ValidateValue(std::string* s) { - return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "google.rpc.context.AttributeContext.Request.HeadersEntry.value"); - } - ::google::protobuf::Metadata GetMetadata() const final; - friend struct ::TableStruct_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto; -}; -// ------------------------------------------------------------------- + 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 AttributeContext_Peer& default_instance() { + return *internal_default_instance(); + } + static inline const AttributeContext_Peer* internal_default_instance() { + return reinterpret_cast( + &_AttributeContext_Peer_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; -class AttributeContext_Peer_LabelsEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry< - AttributeContext_Peer_LabelsEntry_DoNotUse, std::string, std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING> { - public: - using SuperType = ::google::protobuf::internal::MapEntry< - AttributeContext_Peer_LabelsEntry_DoNotUse, std::string, std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING>; - AttributeContext_Peer_LabelsEntry_DoNotUse(); - template - explicit PROTOBUF_CONSTEXPR AttributeContext_Peer_LabelsEntry_DoNotUse( - ::google::protobuf::internal::ConstantInitialized); - explicit AttributeContext_Peer_LabelsEntry_DoNotUse(::google::protobuf::Arena* arena); - static const AttributeContext_Peer_LabelsEntry_DoNotUse* internal_default_instance() { - return reinterpret_cast( - &_AttributeContext_Peer_LabelsEntry_DoNotUse_default_instance_); + friend void swap(AttributeContext_Peer& a, AttributeContext_Peer& b) { + a.Swap(&b); } - static bool ValidateKey(std::string* s) { - return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "google.rpc.context.AttributeContext.Peer.LabelsEntry.key"); - } - static bool ValidateValue(std::string* s) { - return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "google.rpc.context.AttributeContext.Peer.LabelsEntry.value"); - } - ::google::protobuf::Metadata GetMetadata() const final; + inline void Swap(AttributeContext_Peer* 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(AttributeContext_Peer* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + AttributeContext_Peer* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const AttributeContext_Peer& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const AttributeContext_Peer& 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(AttributeContext_Peer* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.rpc.context.AttributeContext.Peer"; + } + protected: + explicit AttributeContext_Peer(::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 { + kLabelsFieldNumber = 6, + kIpFieldNumber = 1, + kPrincipalFieldNumber = 7, + kRegionCodeFieldNumber = 8, + kPortFieldNumber = 2, + }; + // map labels = 6 [json_name = "labels"]; + int labels_size() const; + private: + int _internal_labels_size() const; + public: + void clear_labels(); + private: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + _internal_labels() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + _internal_mutable_labels(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + labels() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + mutable_labels(); + + // string ip = 1 [json_name = "ip"]; + void clear_ip(); + const std::string& ip() const; + template + void set_ip(ArgT0&& arg0, ArgT... args); + std::string* mutable_ip(); + PROTOBUF_NODISCARD std::string* release_ip(); + void set_allocated_ip(std::string* ip); + private: + const std::string& _internal_ip() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_ip(const std::string& value); + std::string* _internal_mutable_ip(); + public: + + // string principal = 7 [json_name = "principal"]; + void clear_principal(); + const std::string& principal() const; + template + void set_principal(ArgT0&& arg0, ArgT... args); + std::string* mutable_principal(); + PROTOBUF_NODISCARD std::string* release_principal(); + void set_allocated_principal(std::string* principal); + private: + const std::string& _internal_principal() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_principal(const std::string& value); + std::string* _internal_mutable_principal(); + public: + + // string region_code = 8 [json_name = "regionCode"]; + void clear_region_code(); + const std::string& region_code() const; + template + void set_region_code(ArgT0&& arg0, ArgT... args); + std::string* mutable_region_code(); + PROTOBUF_NODISCARD std::string* release_region_code(); + void set_allocated_region_code(std::string* region_code); + private: + const std::string& _internal_region_code() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_region_code(const std::string& value); + std::string* _internal_mutable_region_code(); + public: + + // int64 port = 2 [json_name = "port"]; + void clear_port(); + int64_t port() const; + void set_port(int64_t value); + private: + int64_t _internal_port() const; + void _internal_set_port(int64_t value); + public: + + // @@protoc_insertion_point(class_scope:google.rpc.context.AttributeContext.Peer) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + AttributeContext_Peer_LabelsEntry_DoNotUse, + std::string, std::string, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> labels_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ip_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr principal_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr region_code_; + int64_t port_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto; }; // ------------------------------------------------------------------- class AttributeContext_Api final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.rpc.context.AttributeContext.Api) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.rpc.context.AttributeContext.Api) */ { public: inline AttributeContext_Api() : AttributeContext_Api(nullptr) {} ~AttributeContext_Api() override; - template - explicit PROTOBUF_CONSTEXPR AttributeContext_Api(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR AttributeContext_Api(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline AttributeContext_Api(const AttributeContext_Api& from) - : AttributeContext_Api(nullptr, from) {} + AttributeContext_Api(const AttributeContext_Api& from); AttributeContext_Api(AttributeContext_Api&& from) noexcept : AttributeContext_Api() { *this = ::std::move(from); @@ -287,9 +377,9 @@ class AttributeContext_Api final : } inline AttributeContext_Api& operator=(AttributeContext_Api&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -299,22 +389,13 @@ class AttributeContext_Api final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const AttributeContext_Api& default_instance() { @@ -333,65 +414,63 @@ class AttributeContext_Api final : inline void Swap(AttributeContext_Api* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(AttributeContext_Api* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - AttributeContext_Api* New(::google::protobuf::Arena* arena = nullptr) const final { + AttributeContext_Api* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const AttributeContext_Api& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const AttributeContext_Api& from) { - AttributeContext_Api::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const AttributeContext_Api& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(AttributeContext_Api* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "google.rpc.context.AttributeContext.Api"; } protected: - explicit AttributeContext_Api(::google::protobuf::Arena* arena); - AttributeContext_Api(::google::protobuf::Arena* arena, const AttributeContext_Api& from); + explicit AttributeContext_Api(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -404,127 +483,99 @@ class AttributeContext_Api final : kVersionFieldNumber = 4, }; // string service = 1 [json_name = "service"]; - void clear_service() ; + void clear_service(); const std::string& service() const; - template - void set_service(Arg_&& arg, Args_... args); + template + void set_service(ArgT0&& arg0, ArgT... args); std::string* mutable_service(); PROTOBUF_NODISCARD std::string* release_service(); - void set_allocated_service(std::string* value); - + void set_allocated_service(std::string* service); private: const std::string& _internal_service() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_service( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_service(const std::string& value); std::string* _internal_mutable_service(); - public: + // string operation = 2 [json_name = "operation"]; - void clear_operation() ; + void clear_operation(); const std::string& operation() const; - template - void set_operation(Arg_&& arg, Args_... args); + template + void set_operation(ArgT0&& arg0, ArgT... args); std::string* mutable_operation(); PROTOBUF_NODISCARD std::string* release_operation(); - void set_allocated_operation(std::string* value); - + void set_allocated_operation(std::string* operation); private: const std::string& _internal_operation() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_operation( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_operation(const std::string& value); std::string* _internal_mutable_operation(); - public: + // string protocol = 3 [json_name = "protocol"]; - void clear_protocol() ; + void clear_protocol(); const std::string& protocol() const; - template - void set_protocol(Arg_&& arg, Args_... args); + template + void set_protocol(ArgT0&& arg0, ArgT... args); std::string* mutable_protocol(); PROTOBUF_NODISCARD std::string* release_protocol(); - void set_allocated_protocol(std::string* value); - + void set_allocated_protocol(std::string* protocol); private: const std::string& _internal_protocol() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_protocol( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_protocol(const std::string& value); std::string* _internal_mutable_protocol(); - public: + // string version = 4 [json_name = "version"]; - void clear_version() ; + void clear_version(); const std::string& version() const; - template - void set_version(Arg_&& arg, Args_... args); + template + void set_version(ArgT0&& arg0, ArgT... args); std::string* mutable_version(); PROTOBUF_NODISCARD std::string* release_version(); - void set_allocated_version(std::string* value); - + void set_allocated_version(std::string* version); private: const std::string& _internal_version() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_version( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_version(const std::string& value); std::string* _internal_mutable_version(); - public: + // @@protoc_insertion_point(class_scope:google.rpc.context.AttributeContext.Api) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 0, - 79, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr service_; - ::google::protobuf::internal::ArenaStringPtr operation_; - ::google::protobuf::internal::ArenaStringPtr protocol_; - ::google::protobuf::internal::ArenaStringPtr version_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr service_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr operation_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr protocol_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr version_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class AttributeContext_Response final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.rpc.context.AttributeContext.Response) */ { +class AttributeContext_Auth final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.rpc.context.AttributeContext.Auth) */ { public: - inline AttributeContext_Response() : AttributeContext_Response(nullptr) {} - ~AttributeContext_Response() override; - template - explicit PROTOBUF_CONSTEXPR AttributeContext_Response(::google::protobuf::internal::ConstantInitialized); + inline AttributeContext_Auth() : AttributeContext_Auth(nullptr) {} + ~AttributeContext_Auth() override; + explicit PROTOBUF_CONSTEXPR AttributeContext_Auth(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline AttributeContext_Response(const AttributeContext_Response& from) - : AttributeContext_Response(nullptr, from) {} - AttributeContext_Response(AttributeContext_Response&& from) noexcept - : AttributeContext_Response() { + AttributeContext_Auth(const AttributeContext_Auth& from); + AttributeContext_Auth(AttributeContext_Auth&& from) noexcept + : AttributeContext_Auth() { *this = ::std::move(from); } - inline AttributeContext_Response& operator=(const AttributeContext_Response& from) { + inline AttributeContext_Auth& operator=(const AttributeContext_Auth& from) { CopyFrom(from); return *this; } - inline AttributeContext_Response& operator=(AttributeContext_Response&& from) noexcept { + inline AttributeContext_Auth& operator=(AttributeContext_Auth&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -534,240 +585,261 @@ class AttributeContext_Response final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const AttributeContext_Response& default_instance() { + static const AttributeContext_Auth& default_instance() { return *internal_default_instance(); } - static inline const AttributeContext_Response* internal_default_instance() { - return reinterpret_cast( - &_AttributeContext_Response_default_instance_); + static inline const AttributeContext_Auth* internal_default_instance() { + return reinterpret_cast( + &_AttributeContext_Auth_default_instance_); } static constexpr int kIndexInFileMessages = - 7; + 3; - friend void swap(AttributeContext_Response& a, AttributeContext_Response& b) { + friend void swap(AttributeContext_Auth& a, AttributeContext_Auth& b) { a.Swap(&b); } - inline void Swap(AttributeContext_Response* other) { + inline void Swap(AttributeContext_Auth* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(AttributeContext_Response* other) { + void UnsafeArenaSwap(AttributeContext_Auth* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - AttributeContext_Response* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const AttributeContext_Response& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const AttributeContext_Response& from) { - AttributeContext_Response::MergeImpl(*this, from); + AttributeContext_Auth* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const AttributeContext_Auth& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const AttributeContext_Auth& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(AttributeContext_Response* other); + void SetCachedSize(int size) const final; + void InternalSwap(AttributeContext_Auth* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.rpc.context.AttributeContext.Response"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.rpc.context.AttributeContext.Auth"; } protected: - explicit AttributeContext_Response(::google::protobuf::Arena* arena); - AttributeContext_Response(::google::protobuf::Arena* arena, const AttributeContext_Response& from); + explicit AttributeContext_Auth(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- - // accessors ------------------------------------------------------- enum : int { - kHeadersFieldNumber = 3, - kTimeFieldNumber = 4, - kBackendLatencyFieldNumber = 5, - kCodeFieldNumber = 1, - kSizeFieldNumber = 2, + kAudiencesFieldNumber = 2, + kAccessLevelsFieldNumber = 5, + kPrincipalFieldNumber = 1, + kPresenterFieldNumber = 3, + kClaimsFieldNumber = 4, }; - // map headers = 3 [json_name = "headers"]; - int headers_size() const; + // repeated string audiences = 2 [json_name = "audiences"]; + int audiences_size() const; private: - int _internal_headers_size() const; - + int _internal_audiences_size() const; public: - void clear_headers() ; - const ::google::protobuf::Map& headers() const; - ::google::protobuf::Map* mutable_headers(); - + void clear_audiences(); + const std::string& audiences(int index) const; + std::string* mutable_audiences(int index); + void set_audiences(int index, const std::string& value); + void set_audiences(int index, std::string&& value); + void set_audiences(int index, const char* value); + void set_audiences(int index, const char* value, size_t size); + std::string* add_audiences(); + void add_audiences(const std::string& value); + void add_audiences(std::string&& value); + void add_audiences(const char* value); + void add_audiences(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& audiences() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_audiences(); private: - const ::google::protobuf::Map& _internal_headers() const; - ::google::protobuf::Map* _internal_mutable_headers(); - + const std::string& _internal_audiences(int index) const; + std::string* _internal_add_audiences(); public: - // .google.protobuf.Timestamp time = 4 [json_name = "time"]; - bool has_time() const; - void clear_time() ; - const ::google::protobuf::Timestamp& time() const; - PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_time(); - ::google::protobuf::Timestamp* mutable_time(); - void set_allocated_time(::google::protobuf::Timestamp* value); - void unsafe_arena_set_allocated_time(::google::protobuf::Timestamp* value); - ::google::protobuf::Timestamp* unsafe_arena_release_time(); + // repeated string access_levels = 5 [json_name = "accessLevels"]; + int access_levels_size() const; private: - const ::google::protobuf::Timestamp& _internal_time() const; - ::google::protobuf::Timestamp* _internal_mutable_time(); - + int _internal_access_levels_size() const; public: - // .google.protobuf.Duration backend_latency = 5 [json_name = "backendLatency"]; - bool has_backend_latency() const; - void clear_backend_latency() ; - const ::google::protobuf::Duration& backend_latency() const; - PROTOBUF_NODISCARD ::google::protobuf::Duration* release_backend_latency(); - ::google::protobuf::Duration* mutable_backend_latency(); - void set_allocated_backend_latency(::google::protobuf::Duration* value); - void unsafe_arena_set_allocated_backend_latency(::google::protobuf::Duration* value); - ::google::protobuf::Duration* unsafe_arena_release_backend_latency(); - + void clear_access_levels(); + const std::string& access_levels(int index) const; + std::string* mutable_access_levels(int index); + void set_access_levels(int index, const std::string& value); + void set_access_levels(int index, std::string&& value); + void set_access_levels(int index, const char* value); + void set_access_levels(int index, const char* value, size_t size); + std::string* add_access_levels(); + void add_access_levels(const std::string& value); + void add_access_levels(std::string&& value); + void add_access_levels(const char* value); + void add_access_levels(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& access_levels() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_access_levels(); private: - const ::google::protobuf::Duration& _internal_backend_latency() const; - ::google::protobuf::Duration* _internal_mutable_backend_latency(); - + const std::string& _internal_access_levels(int index) const; + std::string* _internal_add_access_levels(); public: - // int64 code = 1 [json_name = "code"]; - void clear_code() ; - ::int64_t code() const; - void set_code(::int64_t value); + // string principal = 1 [json_name = "principal"]; + void clear_principal(); + const std::string& principal() const; + template + void set_principal(ArgT0&& arg0, ArgT... args); + std::string* mutable_principal(); + PROTOBUF_NODISCARD std::string* release_principal(); + void set_allocated_principal(std::string* principal); private: - ::int64_t _internal_code() const; - void _internal_set_code(::int64_t value); - + const std::string& _internal_principal() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_principal(const std::string& value); + std::string* _internal_mutable_principal(); public: - // int64 size = 2 [json_name = "size"]; - void clear_size() ; - ::int64_t size() const; - void set_size(::int64_t value); + // string presenter = 3 [json_name = "presenter"]; + void clear_presenter(); + const std::string& presenter() const; + template + void set_presenter(ArgT0&& arg0, ArgT... args); + std::string* mutable_presenter(); + PROTOBUF_NODISCARD std::string* release_presenter(); + void set_allocated_presenter(std::string* presenter); private: - ::int64_t _internal_size() const; - void _internal_set_size(::int64_t value); + const std::string& _internal_presenter() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_presenter(const std::string& value); + std::string* _internal_mutable_presenter(); + public: + // .google.protobuf.Struct claims = 4 [json_name = "claims"]; + bool has_claims() const; + private: + bool _internal_has_claims() const; public: - // @@protoc_insertion_point(class_scope:google.rpc.context.AttributeContext.Response) + void clear_claims(); + const ::PROTOBUF_NAMESPACE_ID::Struct& claims() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_claims(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_claims(); + void set_allocated_claims(::PROTOBUF_NAMESPACE_ID::Struct* claims); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_claims() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_claims(); + public: + void unsafe_arena_set_allocated_claims( + ::PROTOBUF_NAMESPACE_ID::Struct* claims); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_claims(); + + // @@protoc_insertion_point(class_scope:google.rpc.context.AttributeContext.Auth) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 5, 3, - 60, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::MapField - headers_; - ::google::protobuf::Timestamp* time_; - ::google::protobuf::Duration* backend_latency_; - ::int64_t code_; - ::int64_t size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField audiences_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField access_levels_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr principal_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr presenter_; + ::PROTOBUF_NAMESPACE_ID::Struct* claims_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class AttributeContext_Resource final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.rpc.context.AttributeContext.Resource) */ { +class AttributeContext_Request_HeadersEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + AttributeContext_Request_HeadersEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR AttributeContext_Request_HeadersEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit AttributeContext_Request_HeadersEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const AttributeContext_Request_HeadersEntry_DoNotUse& other); + static const AttributeContext_Request_HeadersEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_AttributeContext_Request_HeadersEntry_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, "google.rpc.context.AttributeContext.Request.HeadersEntry.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, "google.rpc.context.AttributeContext.Request.HeadersEntry.value"); + } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + friend struct ::TableStruct_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto; +}; + +// ------------------------------------------------------------------- + +class AttributeContext_Request final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.rpc.context.AttributeContext.Request) */ { public: - inline AttributeContext_Resource() : AttributeContext_Resource(nullptr) {} - ~AttributeContext_Resource() override; - template - explicit PROTOBUF_CONSTEXPR AttributeContext_Resource(::google::protobuf::internal::ConstantInitialized); + inline AttributeContext_Request() : AttributeContext_Request(nullptr) {} + ~AttributeContext_Request() override; + explicit PROTOBUF_CONSTEXPR AttributeContext_Request(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline AttributeContext_Resource(const AttributeContext_Resource& from) - : AttributeContext_Resource(nullptr, from) {} - AttributeContext_Resource(AttributeContext_Resource&& from) noexcept - : AttributeContext_Resource() { + AttributeContext_Request(const AttributeContext_Request& from); + AttributeContext_Request(AttributeContext_Request&& from) noexcept + : AttributeContext_Request() { *this = ::std::move(from); } - inline AttributeContext_Resource& operator=(const AttributeContext_Resource& from) { + inline AttributeContext_Request& operator=(const AttributeContext_Request& from) { CopyFrom(from); return *this; } - inline AttributeContext_Resource& operator=(AttributeContext_Resource&& from) noexcept { + inline AttributeContext_Request& operator=(AttributeContext_Request&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -777,99 +849,90 @@ class AttributeContext_Resource final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const AttributeContext_Resource& default_instance() { + static const AttributeContext_Request& default_instance() { return *internal_default_instance(); } - static inline const AttributeContext_Resource* internal_default_instance() { - return reinterpret_cast( - &_AttributeContext_Resource_default_instance_); + static inline const AttributeContext_Request* internal_default_instance() { + return reinterpret_cast( + &_AttributeContext_Request_default_instance_); } static constexpr int kIndexInFileMessages = - 10; + 5; - friend void swap(AttributeContext_Resource& a, AttributeContext_Resource& b) { + friend void swap(AttributeContext_Request& a, AttributeContext_Request& b) { a.Swap(&b); } - inline void Swap(AttributeContext_Resource* other) { + inline void Swap(AttributeContext_Request* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(AttributeContext_Resource* other) { + void UnsafeArenaSwap(AttributeContext_Request* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - AttributeContext_Resource* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const AttributeContext_Resource& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const AttributeContext_Resource& from) { - AttributeContext_Resource::MergeImpl(*this, from); + AttributeContext_Request* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const AttributeContext_Request& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const AttributeContext_Request& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(AttributeContext_Resource* other); + void SetCachedSize(int size) const final; + void InternalSwap(AttributeContext_Request* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.rpc.context.AttributeContext.Resource"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.rpc.context.AttributeContext.Request"; } protected: - explicit AttributeContext_Resource(::google::protobuf::Arena* arena); - AttributeContext_Resource(::google::protobuf::Arena* arena, const AttributeContext_Resource& from); + explicit AttributeContext_Request(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -877,529 +940,271 @@ class AttributeContext_Resource final : // accessors ------------------------------------------------------- enum : int { - kLabelsFieldNumber = 4, - kAnnotationsFieldNumber = 6, - kServiceFieldNumber = 1, - kNameFieldNumber = 2, - kTypeFieldNumber = 3, - kUidFieldNumber = 5, - kDisplayNameFieldNumber = 7, - kEtagFieldNumber = 11, - kLocationFieldNumber = 12, - kCreateTimeFieldNumber = 8, - kUpdateTimeFieldNumber = 9, - kDeleteTimeFieldNumber = 10, + kHeadersFieldNumber = 3, + kIdFieldNumber = 1, + kMethodFieldNumber = 2, + kPathFieldNumber = 4, + kHostFieldNumber = 5, + kSchemeFieldNumber = 6, + kQueryFieldNumber = 7, + kProtocolFieldNumber = 11, + kReasonFieldNumber = 12, + kTimeFieldNumber = 9, + kAuthFieldNumber = 13, + kSizeFieldNumber = 10, }; - // map labels = 4 [json_name = "labels"]; - int labels_size() const; - private: - int _internal_labels_size() const; - - public: - void clear_labels() ; - const ::google::protobuf::Map& labels() const; - ::google::protobuf::Map* mutable_labels(); - - private: - const ::google::protobuf::Map& _internal_labels() const; - ::google::protobuf::Map* _internal_mutable_labels(); - - public: - // map annotations = 6 [json_name = "annotations"]; - int annotations_size() const; - private: - int _internal_annotations_size() const; - - public: - void clear_annotations() ; - const ::google::protobuf::Map& annotations() const; - ::google::protobuf::Map* mutable_annotations(); - - private: - const ::google::protobuf::Map& _internal_annotations() const; - ::google::protobuf::Map* _internal_mutable_annotations(); - - public: - // string service = 1 [json_name = "service"]; - void clear_service() ; - const std::string& service() const; - template - void set_service(Arg_&& arg, Args_... args); - std::string* mutable_service(); - PROTOBUF_NODISCARD std::string* release_service(); - void set_allocated_service(std::string* value); - - private: - const std::string& _internal_service() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_service( - const std::string& value); - std::string* _internal_mutable_service(); - - public: - // string name = 2 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - - public: - // string type = 3 [json_name = "type"]; - void clear_type() ; - const std::string& type() const; - template - void set_type(Arg_&& arg, Args_... args); - std::string* mutable_type(); - PROTOBUF_NODISCARD std::string* release_type(); - void set_allocated_type(std::string* value); - - 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 uid = 5 [json_name = "uid"]; - void clear_uid() ; - const std::string& uid() const; - template - void set_uid(Arg_&& arg, Args_... args); - std::string* mutable_uid(); - PROTOBUF_NODISCARD std::string* release_uid(); - void set_allocated_uid(std::string* value); - - private: - const std::string& _internal_uid() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_uid( - const std::string& value); - std::string* _internal_mutable_uid(); - - public: - // string display_name = 7 [json_name = "displayName"]; - void clear_display_name() ; - const std::string& display_name() const; - template - void set_display_name(Arg_&& arg, Args_... args); - std::string* mutable_display_name(); - PROTOBUF_NODISCARD std::string* release_display_name(); - void set_allocated_display_name(std::string* value); - - private: - const std::string& _internal_display_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_display_name( - const std::string& value); - std::string* _internal_mutable_display_name(); - - public: - // string etag = 11 [json_name = "etag"]; - void clear_etag() ; - const std::string& etag() const; - template - void set_etag(Arg_&& arg, Args_... args); - std::string* mutable_etag(); - PROTOBUF_NODISCARD std::string* release_etag(); - void set_allocated_etag(std::string* value); - - private: - const std::string& _internal_etag() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_etag( - const std::string& value); - std::string* _internal_mutable_etag(); - - public: - // string location = 12 [json_name = "location"]; - void clear_location() ; - const std::string& location() const; - template - void set_location(Arg_&& arg, Args_... args); - std::string* mutable_location(); - PROTOBUF_NODISCARD std::string* release_location(); - void set_allocated_location(std::string* value); - - private: - const std::string& _internal_location() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_location( - const std::string& value); - std::string* _internal_mutable_location(); - - public: - // .google.protobuf.Timestamp create_time = 8 [json_name = "createTime"]; - bool has_create_time() const; - void clear_create_time() ; - const ::google::protobuf::Timestamp& create_time() const; - PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_create_time(); - ::google::protobuf::Timestamp* mutable_create_time(); - void set_allocated_create_time(::google::protobuf::Timestamp* value); - void unsafe_arena_set_allocated_create_time(::google::protobuf::Timestamp* value); - ::google::protobuf::Timestamp* unsafe_arena_release_create_time(); - - private: - const ::google::protobuf::Timestamp& _internal_create_time() const; - ::google::protobuf::Timestamp* _internal_mutable_create_time(); - - public: - // .google.protobuf.Timestamp update_time = 9 [json_name = "updateTime"]; - bool has_update_time() const; - void clear_update_time() ; - const ::google::protobuf::Timestamp& update_time() const; - PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_update_time(); - ::google::protobuf::Timestamp* mutable_update_time(); - void set_allocated_update_time(::google::protobuf::Timestamp* value); - void unsafe_arena_set_allocated_update_time(::google::protobuf::Timestamp* value); - ::google::protobuf::Timestamp* unsafe_arena_release_update_time(); - + // map headers = 3 [json_name = "headers"]; + int headers_size() const; private: - const ::google::protobuf::Timestamp& _internal_update_time() const; - ::google::protobuf::Timestamp* _internal_mutable_update_time(); - + int _internal_headers_size() const; public: - // .google.protobuf.Timestamp delete_time = 10 [json_name = "deleteTime"]; - bool has_delete_time() const; - void clear_delete_time() ; - const ::google::protobuf::Timestamp& delete_time() const; - PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_delete_time(); - ::google::protobuf::Timestamp* mutable_delete_time(); - void set_allocated_delete_time(::google::protobuf::Timestamp* value); - void unsafe_arena_set_allocated_delete_time(::google::protobuf::Timestamp* value); - ::google::protobuf::Timestamp* unsafe_arena_release_delete_time(); - + void clear_headers(); private: - const ::google::protobuf::Timestamp& _internal_delete_time() const; - ::google::protobuf::Timestamp* _internal_mutable_delete_time(); - + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + _internal_headers() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + _internal_mutable_headers(); public: - // @@protoc_insertion_point(class_scope:google.rpc.context.AttributeContext.Resource) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 4, 12, 5, - 120, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::MapField - labels_; - ::google::protobuf::internal::MapField - annotations_; - ::google::protobuf::internal::ArenaStringPtr service_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr type_; - ::google::protobuf::internal::ArenaStringPtr uid_; - ::google::protobuf::internal::ArenaStringPtr display_name_; - ::google::protobuf::internal::ArenaStringPtr etag_; - ::google::protobuf::internal::ArenaStringPtr location_; - ::google::protobuf::Timestamp* create_time_; - ::google::protobuf::Timestamp* update_time_; - ::google::protobuf::Timestamp* delete_time_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto; -};// ------------------------------------------------------------------- - -class AttributeContext_Peer final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.rpc.context.AttributeContext.Peer) */ { - public: - inline AttributeContext_Peer() : AttributeContext_Peer(nullptr) {} - ~AttributeContext_Peer() override; - template - explicit PROTOBUF_CONSTEXPR AttributeContext_Peer(::google::protobuf::internal::ConstantInitialized); - - inline AttributeContext_Peer(const AttributeContext_Peer& from) - : AttributeContext_Peer(nullptr, from) {} - AttributeContext_Peer(AttributeContext_Peer&& from) noexcept - : AttributeContext_Peer() { - *this = ::std::move(from); - } - - inline AttributeContext_Peer& operator=(const AttributeContext_Peer& from) { - CopyFrom(from); - return *this; - } - inline AttributeContext_Peer& operator=(AttributeContext_Peer&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AttributeContext_Peer& default_instance() { - return *internal_default_instance(); - } - static inline const AttributeContext_Peer* internal_default_instance() { - return reinterpret_cast( - &_AttributeContext_Peer_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + headers() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + mutable_headers(); - friend void swap(AttributeContext_Peer& a, AttributeContext_Peer& b) { - a.Swap(&b); - } - inline void Swap(AttributeContext_Peer* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AttributeContext_Peer* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AttributeContext_Peer* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const AttributeContext_Peer& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const AttributeContext_Peer& from) { - AttributeContext_Peer::MergeImpl(*this, from); - } + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(AttributeContext_Peer* other); + // string method = 2 [json_name = "method"]; + void clear_method(); + const std::string& method() const; + template + void set_method(ArgT0&& arg0, ArgT... args); + std::string* mutable_method(); + PROTOBUF_NODISCARD std::string* release_method(); + void set_allocated_method(std::string* method); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.rpc.context.AttributeContext.Peer"; - } - protected: - explicit AttributeContext_Peer(::google::protobuf::Arena* arena); - AttributeContext_Peer(::google::protobuf::Arena* arena, const AttributeContext_Peer& from); + const std::string& _internal_method() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_method(const std::string& value); + std::string* _internal_mutable_method(); public: - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - - // accessors ------------------------------------------------------- - - enum : int { - kLabelsFieldNumber = 6, - kIpFieldNumber = 1, - kPrincipalFieldNumber = 7, - kRegionCodeFieldNumber = 8, - kPortFieldNumber = 2, - }; - // map labels = 6 [json_name = "labels"]; - int labels_size() const; + // string path = 4 [json_name = "path"]; + void clear_path(); + const std::string& path() const; + template + void set_path(ArgT0&& arg0, ArgT... args); + std::string* mutable_path(); + PROTOBUF_NODISCARD std::string* release_path(); + void set_allocated_path(std::string* path); private: - int _internal_labels_size() const; - + const std::string& _internal_path() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_path(const std::string& value); + std::string* _internal_mutable_path(); public: - void clear_labels() ; - const ::google::protobuf::Map& labels() const; - ::google::protobuf::Map* mutable_labels(); + // string host = 5 [json_name = "host"]; + void clear_host(); + const std::string& host() const; + template + void set_host(ArgT0&& arg0, ArgT... args); + std::string* mutable_host(); + PROTOBUF_NODISCARD std::string* release_host(); + void set_allocated_host(std::string* host); private: - const ::google::protobuf::Map& _internal_labels() const; - ::google::protobuf::Map* _internal_mutable_labels(); - + const std::string& _internal_host() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_host(const std::string& value); + std::string* _internal_mutable_host(); public: - // string ip = 1 [json_name = "ip"]; - void clear_ip() ; - const std::string& ip() const; - template - void set_ip(Arg_&& arg, Args_... args); - std::string* mutable_ip(); - PROTOBUF_NODISCARD std::string* release_ip(); - void set_allocated_ip(std::string* value); + // string scheme = 6 [json_name = "scheme"]; + void clear_scheme(); + const std::string& scheme() const; + template + void set_scheme(ArgT0&& arg0, ArgT... args); + std::string* mutable_scheme(); + PROTOBUF_NODISCARD std::string* release_scheme(); + void set_allocated_scheme(std::string* scheme); private: - const std::string& _internal_ip() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_ip( - const std::string& value); - std::string* _internal_mutable_ip(); - + const std::string& _internal_scheme() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_scheme(const std::string& value); + std::string* _internal_mutable_scheme(); public: - // string principal = 7 [json_name = "principal"]; - void clear_principal() ; - const std::string& principal() const; - template - void set_principal(Arg_&& arg, Args_... args); - std::string* mutable_principal(); - PROTOBUF_NODISCARD std::string* release_principal(); - void set_allocated_principal(std::string* value); + // string query = 7 [json_name = "query"]; + void clear_query(); + const std::string& query() const; + template + void set_query(ArgT0&& arg0, ArgT... args); + std::string* mutable_query(); + PROTOBUF_NODISCARD std::string* release_query(); + void set_allocated_query(std::string* query); private: - const std::string& _internal_principal() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_principal( - const std::string& value); - std::string* _internal_mutable_principal(); + const std::string& _internal_query() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_query(const std::string& value); + std::string* _internal_mutable_query(); + public: + // string protocol = 11 [json_name = "protocol"]; + void clear_protocol(); + const std::string& protocol() const; + template + void set_protocol(ArgT0&& arg0, ArgT... args); + std::string* mutable_protocol(); + PROTOBUF_NODISCARD std::string* release_protocol(); + void set_allocated_protocol(std::string* protocol); + private: + const std::string& _internal_protocol() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_protocol(const std::string& value); + std::string* _internal_mutable_protocol(); public: - // string region_code = 8 [json_name = "regionCode"]; - void clear_region_code() ; - const std::string& region_code() const; - template - void set_region_code(Arg_&& arg, Args_... args); - std::string* mutable_region_code(); - PROTOBUF_NODISCARD std::string* release_region_code(); - void set_allocated_region_code(std::string* value); + // string reason = 12 [json_name = "reason"]; + void clear_reason(); + const std::string& reason() const; + template + void set_reason(ArgT0&& arg0, ArgT... args); + std::string* mutable_reason(); + PROTOBUF_NODISCARD std::string* release_reason(); + void set_allocated_reason(std::string* reason); private: - const std::string& _internal_region_code() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_region_code( - const std::string& value); - std::string* _internal_mutable_region_code(); + const std::string& _internal_reason() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_reason(const std::string& value); + std::string* _internal_mutable_reason(); + public: + // .google.protobuf.Timestamp time = 9 [json_name = "time"]; + bool has_time() const; + private: + bool _internal_has_time() const; public: - // int64 port = 2 [json_name = "port"]; - void clear_port() ; - ::int64_t port() const; - void set_port(::int64_t value); + void clear_time(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& time() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_time(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_time(); + void set_allocated_time(::PROTOBUF_NAMESPACE_ID::Timestamp* time); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_time() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_time(); + public: + void unsafe_arena_set_allocated_time( + ::PROTOBUF_NAMESPACE_ID::Timestamp* time); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_time(); + // .google.rpc.context.AttributeContext.Auth auth = 13 [json_name = "auth"]; + bool has_auth() const; + private: + bool _internal_has_auth() const; + public: + void clear_auth(); + const ::google::rpc::context::AttributeContext_Auth& auth() const; + PROTOBUF_NODISCARD ::google::rpc::context::AttributeContext_Auth* release_auth(); + ::google::rpc::context::AttributeContext_Auth* mutable_auth(); + void set_allocated_auth(::google::rpc::context::AttributeContext_Auth* auth); private: - ::int64_t _internal_port() const; - void _internal_set_port(::int64_t value); + const ::google::rpc::context::AttributeContext_Auth& _internal_auth() const; + ::google::rpc::context::AttributeContext_Auth* _internal_mutable_auth(); + public: + void unsafe_arena_set_allocated_auth( + ::google::rpc::context::AttributeContext_Auth* auth); + ::google::rpc::context::AttributeContext_Auth* unsafe_arena_release_auth(); + // int64 size = 10 [json_name = "size"]; + void clear_size(); + int64_t size() const; + void set_size(int64_t value); + private: + int64_t _internal_size() const; + void _internal_set_size(int64_t value); public: - // @@protoc_insertion_point(class_scope:google.rpc.context.AttributeContext.Peer) + + // @@protoc_insertion_point(class_scope:google.rpc.context.AttributeContext.Request) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 5, 1, - 77, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::MapField - labels_; - ::google::protobuf::internal::ArenaStringPtr ip_; - ::google::protobuf::internal::ArenaStringPtr principal_; - ::google::protobuf::internal::ArenaStringPtr region_code_; - ::int64_t port_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + AttributeContext_Request_HeadersEntry_DoNotUse, + std::string, std::string, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> headers_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr method_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr path_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr host_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr scheme_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr query_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr protocol_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr reason_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* time_; + ::google::rpc::context::AttributeContext_Auth* auth_; + int64_t size_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class AttributeContext_Auth final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.rpc.context.AttributeContext.Auth) */ { +class AttributeContext_Response_HeadersEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + AttributeContext_Response_HeadersEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR AttributeContext_Response_HeadersEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit AttributeContext_Response_HeadersEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const AttributeContext_Response_HeadersEntry_DoNotUse& other); + static const AttributeContext_Response_HeadersEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_AttributeContext_Response_HeadersEntry_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, "google.rpc.context.AttributeContext.Response.HeadersEntry.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, "google.rpc.context.AttributeContext.Response.HeadersEntry.value"); + } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + friend struct ::TableStruct_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto; +}; + +// ------------------------------------------------------------------- + +class AttributeContext_Response final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.rpc.context.AttributeContext.Response) */ { public: - inline AttributeContext_Auth() : AttributeContext_Auth(nullptr) {} - ~AttributeContext_Auth() override; - template - explicit PROTOBUF_CONSTEXPR AttributeContext_Auth(::google::protobuf::internal::ConstantInitialized); + inline AttributeContext_Response() : AttributeContext_Response(nullptr) {} + ~AttributeContext_Response() override; + explicit PROTOBUF_CONSTEXPR AttributeContext_Response(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline AttributeContext_Auth(const AttributeContext_Auth& from) - : AttributeContext_Auth(nullptr, from) {} - AttributeContext_Auth(AttributeContext_Auth&& from) noexcept - : AttributeContext_Auth() { + AttributeContext_Response(const AttributeContext_Response& from); + AttributeContext_Response(AttributeContext_Response&& from) noexcept + : AttributeContext_Response() { *this = ::std::move(from); } - inline AttributeContext_Auth& operator=(const AttributeContext_Auth& from) { + inline AttributeContext_Response& operator=(const AttributeContext_Response& from) { CopyFrom(from); return *this; } - inline AttributeContext_Auth& operator=(AttributeContext_Auth&& from) noexcept { + inline AttributeContext_Response& operator=(AttributeContext_Response&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1409,274 +1214,273 @@ class AttributeContext_Auth final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const AttributeContext_Auth& default_instance() { + static const AttributeContext_Response& default_instance() { return *internal_default_instance(); } - static inline const AttributeContext_Auth* internal_default_instance() { - return reinterpret_cast( - &_AttributeContext_Auth_default_instance_); + static inline const AttributeContext_Response* internal_default_instance() { + return reinterpret_cast( + &_AttributeContext_Response_default_instance_); } static constexpr int kIndexInFileMessages = - 3; + 7; - friend void swap(AttributeContext_Auth& a, AttributeContext_Auth& b) { + friend void swap(AttributeContext_Response& a, AttributeContext_Response& b) { a.Swap(&b); } - inline void Swap(AttributeContext_Auth* other) { + inline void Swap(AttributeContext_Response* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(AttributeContext_Auth* other) { + void UnsafeArenaSwap(AttributeContext_Response* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - AttributeContext_Auth* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const AttributeContext_Auth& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const AttributeContext_Auth& from) { - AttributeContext_Auth::MergeImpl(*this, from); + AttributeContext_Response* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const AttributeContext_Response& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const AttributeContext_Response& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(AttributeContext_Auth* other); + void SetCachedSize(int size) const final; + void InternalSwap(AttributeContext_Response* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.rpc.context.AttributeContext.Auth"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.rpc.context.AttributeContext.Response"; } protected: - explicit AttributeContext_Auth(::google::protobuf::Arena* arena); - AttributeContext_Auth(::google::protobuf::Arena* arena, const AttributeContext_Auth& from); + explicit AttributeContext_Response(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- + // accessors ------------------------------------------------------- enum : int { - kAudiencesFieldNumber = 2, - kAccessLevelsFieldNumber = 5, - kPrincipalFieldNumber = 1, - kPresenterFieldNumber = 3, - kClaimsFieldNumber = 4, + kHeadersFieldNumber = 3, + kTimeFieldNumber = 4, + kBackendLatencyFieldNumber = 5, + kCodeFieldNumber = 1, + kSizeFieldNumber = 2, }; - // repeated string audiences = 2 [json_name = "audiences"]; - int audiences_size() const; + // map headers = 3 [json_name = "headers"]; + int headers_size() const; private: - int _internal_audiences_size() const; - + int _internal_headers_size() const; public: - void clear_audiences() ; - const std::string& audiences(int index) const; - std::string* mutable_audiences(int index); - void set_audiences(int index, const std::string& value); - void set_audiences(int index, std::string&& value); - void set_audiences(int index, const char* value); - void set_audiences(int index, const char* value, std::size_t size); - void set_audiences(int index, absl::string_view value); - std::string* add_audiences(); - void add_audiences(const std::string& value); - void add_audiences(std::string&& value); - void add_audiences(const char* value); - void add_audiences(const char* value, std::size_t size); - void add_audiences(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& audiences() const; - ::google::protobuf::RepeatedPtrField* mutable_audiences(); - + void clear_headers(); private: - const ::google::protobuf::RepeatedPtrField& _internal_audiences() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_audiences(); + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + _internal_headers() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + _internal_mutable_headers(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + headers() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + mutable_headers(); + // .google.protobuf.Timestamp time = 4 [json_name = "time"]; + bool has_time() const; + private: + bool _internal_has_time() const; public: - // repeated string access_levels = 5 [json_name = "accessLevels"]; - int access_levels_size() const; + void clear_time(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& time() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_time(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_time(); + void set_allocated_time(::PROTOBUF_NAMESPACE_ID::Timestamp* time); private: - int _internal_access_levels_size() const; - + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_time() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_time(); public: - void clear_access_levels() ; - const std::string& access_levels(int index) const; - std::string* mutable_access_levels(int index); - void set_access_levels(int index, const std::string& value); - void set_access_levels(int index, std::string&& value); - void set_access_levels(int index, const char* value); - void set_access_levels(int index, const char* value, std::size_t size); - void set_access_levels(int index, absl::string_view value); - std::string* add_access_levels(); - void add_access_levels(const std::string& value); - void add_access_levels(std::string&& value); - void add_access_levels(const char* value); - void add_access_levels(const char* value, std::size_t size); - void add_access_levels(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& access_levels() const; - ::google::protobuf::RepeatedPtrField* mutable_access_levels(); + void unsafe_arena_set_allocated_time( + ::PROTOBUF_NAMESPACE_ID::Timestamp* time); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_time(); + // .google.protobuf.Duration backend_latency = 5 [json_name = "backendLatency"]; + bool has_backend_latency() const; private: - const ::google::protobuf::RepeatedPtrField& _internal_access_levels() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_access_levels(); - + bool _internal_has_backend_latency() const; public: - // string principal = 1 [json_name = "principal"]; - void clear_principal() ; - const std::string& principal() const; - template - void set_principal(Arg_&& arg, Args_... args); - std::string* mutable_principal(); - PROTOBUF_NODISCARD std::string* release_principal(); - void set_allocated_principal(std::string* value); - + void clear_backend_latency(); + const ::PROTOBUF_NAMESPACE_ID::Duration& backend_latency() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Duration* release_backend_latency(); + ::PROTOBUF_NAMESPACE_ID::Duration* mutable_backend_latency(); + void set_allocated_backend_latency(::PROTOBUF_NAMESPACE_ID::Duration* backend_latency); private: - const std::string& _internal_principal() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_principal( - const std::string& value); - std::string* _internal_mutable_principal(); - + const ::PROTOBUF_NAMESPACE_ID::Duration& _internal_backend_latency() const; + ::PROTOBUF_NAMESPACE_ID::Duration* _internal_mutable_backend_latency(); public: - // string presenter = 3 [json_name = "presenter"]; - void clear_presenter() ; - const std::string& presenter() const; - template - void set_presenter(Arg_&& arg, Args_... args); - std::string* mutable_presenter(); - PROTOBUF_NODISCARD std::string* release_presenter(); - void set_allocated_presenter(std::string* value); + void unsafe_arena_set_allocated_backend_latency( + ::PROTOBUF_NAMESPACE_ID::Duration* backend_latency); + ::PROTOBUF_NAMESPACE_ID::Duration* unsafe_arena_release_backend_latency(); + // int64 code = 1 [json_name = "code"]; + void clear_code(); + int64_t code() const; + void set_code(int64_t value); private: - const std::string& _internal_presenter() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_presenter( - const std::string& value); - std::string* _internal_mutable_presenter(); - + int64_t _internal_code() const; + void _internal_set_code(int64_t value); public: - // .google.protobuf.Struct claims = 4 [json_name = "claims"]; - bool has_claims() const; - void clear_claims() ; - const ::google::protobuf::Struct& claims() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_claims(); - ::google::protobuf::Struct* mutable_claims(); - void set_allocated_claims(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_claims(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_claims(); + // int64 size = 2 [json_name = "size"]; + void clear_size(); + int64_t size() const; + void set_size(int64_t value); private: - const ::google::protobuf::Struct& _internal_claims() const; - ::google::protobuf::Struct* _internal_mutable_claims(); - + int64_t _internal_size() const; + void _internal_set_size(int64_t value); public: - // @@protoc_insertion_point(class_scope:google.rpc.context.AttributeContext.Auth) + + // @@protoc_insertion_point(class_scope:google.rpc.context.AttributeContext.Response) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 5, 1, - 89, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField audiences_; - ::google::protobuf::RepeatedPtrField access_levels_; - ::google::protobuf::internal::ArenaStringPtr principal_; - ::google::protobuf::internal::ArenaStringPtr presenter_; - ::google::protobuf::Struct* claims_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + AttributeContext_Response_HeadersEntry_DoNotUse, + std::string, std::string, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> headers_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* time_; + ::PROTOBUF_NAMESPACE_ID::Duration* backend_latency_; + int64_t code_; + int64_t size_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class AttributeContext_Request final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.rpc.context.AttributeContext.Request) */ { +class AttributeContext_Resource_LabelsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + AttributeContext_Resource_LabelsEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR AttributeContext_Resource_LabelsEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit AttributeContext_Resource_LabelsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const AttributeContext_Resource_LabelsEntry_DoNotUse& other); + static const AttributeContext_Resource_LabelsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_AttributeContext_Resource_LabelsEntry_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, "google.rpc.context.AttributeContext.Resource.LabelsEntry.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, "google.rpc.context.AttributeContext.Resource.LabelsEntry.value"); + } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + friend struct ::TableStruct_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto; +}; + +// ------------------------------------------------------------------- + +class AttributeContext_Resource_AnnotationsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + AttributeContext_Resource_AnnotationsEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR AttributeContext_Resource_AnnotationsEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit AttributeContext_Resource_AnnotationsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const AttributeContext_Resource_AnnotationsEntry_DoNotUse& other); + static const AttributeContext_Resource_AnnotationsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_AttributeContext_Resource_AnnotationsEntry_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, "google.rpc.context.AttributeContext.Resource.AnnotationsEntry.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, "google.rpc.context.AttributeContext.Resource.AnnotationsEntry.value"); + } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + friend struct ::TableStruct_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto; +}; + +// ------------------------------------------------------------------- + +class AttributeContext_Resource final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.rpc.context.AttributeContext.Resource) */ { public: - inline AttributeContext_Request() : AttributeContext_Request(nullptr) {} - ~AttributeContext_Request() override; - template - explicit PROTOBUF_CONSTEXPR AttributeContext_Request(::google::protobuf::internal::ConstantInitialized); + inline AttributeContext_Resource() : AttributeContext_Resource(nullptr) {} + ~AttributeContext_Resource() override; + explicit PROTOBUF_CONSTEXPR AttributeContext_Resource(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline AttributeContext_Request(const AttributeContext_Request& from) - : AttributeContext_Request(nullptr, from) {} - AttributeContext_Request(AttributeContext_Request&& from) noexcept - : AttributeContext_Request() { + AttributeContext_Resource(const AttributeContext_Resource& from); + AttributeContext_Resource(AttributeContext_Resource&& from) noexcept + : AttributeContext_Resource() { *this = ::std::move(from); } - inline AttributeContext_Request& operator=(const AttributeContext_Request& from) { + inline AttributeContext_Resource& operator=(const AttributeContext_Resource& from) { CopyFrom(from); return *this; } - inline AttributeContext_Request& operator=(AttributeContext_Request&& from) noexcept { + inline AttributeContext_Resource& operator=(AttributeContext_Resource&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1686,99 +1490,90 @@ class AttributeContext_Request final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const AttributeContext_Request& default_instance() { + static const AttributeContext_Resource& default_instance() { return *internal_default_instance(); } - static inline const AttributeContext_Request* internal_default_instance() { - return reinterpret_cast( - &_AttributeContext_Request_default_instance_); + static inline const AttributeContext_Resource* internal_default_instance() { + return reinterpret_cast( + &_AttributeContext_Resource_default_instance_); } static constexpr int kIndexInFileMessages = - 5; + 10; - friend void swap(AttributeContext_Request& a, AttributeContext_Request& b) { + friend void swap(AttributeContext_Resource& a, AttributeContext_Resource& b) { a.Swap(&b); } - inline void Swap(AttributeContext_Request* other) { + inline void Swap(AttributeContext_Resource* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(AttributeContext_Request* other) { + void UnsafeArenaSwap(AttributeContext_Resource* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - AttributeContext_Request* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const AttributeContext_Request& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const AttributeContext_Request& from) { - AttributeContext_Request::MergeImpl(*this, from); + AttributeContext_Resource* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const AttributeContext_Resource& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const AttributeContext_Resource& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(AttributeContext_Request* other); + void SetCachedSize(int size) const final; + void InternalSwap(AttributeContext_Resource* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.rpc.context.AttributeContext.Request"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.rpc.context.AttributeContext.Resource"; } protected: - explicit AttributeContext_Request(::google::protobuf::Arena* arena); - AttributeContext_Request(::google::protobuf::Arena* arena, const AttributeContext_Request& from); + explicit AttributeContext_Resource(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1786,258 +1581,245 @@ class AttributeContext_Request final : // accessors ------------------------------------------------------- enum : int { - kHeadersFieldNumber = 3, - kIdFieldNumber = 1, - kMethodFieldNumber = 2, - kPathFieldNumber = 4, - kHostFieldNumber = 5, - kSchemeFieldNumber = 6, - kQueryFieldNumber = 7, - kProtocolFieldNumber = 11, - kReasonFieldNumber = 12, - kTimeFieldNumber = 9, - kAuthFieldNumber = 13, - kSizeFieldNumber = 10, + kLabelsFieldNumber = 4, + kAnnotationsFieldNumber = 6, + kServiceFieldNumber = 1, + kNameFieldNumber = 2, + kTypeFieldNumber = 3, + kUidFieldNumber = 5, + kDisplayNameFieldNumber = 7, + kEtagFieldNumber = 11, + kLocationFieldNumber = 12, + kCreateTimeFieldNumber = 8, + kUpdateTimeFieldNumber = 9, + kDeleteTimeFieldNumber = 10, }; - // map headers = 3 [json_name = "headers"]; - int headers_size() const; + // map labels = 4 [json_name = "labels"]; + int labels_size() const; private: - int _internal_headers_size() const; - + int _internal_labels_size() const; public: - void clear_headers() ; - const ::google::protobuf::Map& headers() const; - ::google::protobuf::Map* mutable_headers(); - + void clear_labels(); private: - const ::google::protobuf::Map& _internal_headers() const; - ::google::protobuf::Map* _internal_mutable_headers(); - + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + _internal_labels() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + _internal_mutable_labels(); public: - // string id = 1 [json_name = "id"]; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + labels() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + mutable_labels(); + // map annotations = 6 [json_name = "annotations"]; + int annotations_size() const; private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); - + int _internal_annotations_size() const; public: - // string method = 2 [json_name = "method"]; - void clear_method() ; - const std::string& method() const; - template - void set_method(Arg_&& arg, Args_... args); - std::string* mutable_method(); - PROTOBUF_NODISCARD std::string* release_method(); - void set_allocated_method(std::string* value); - + void clear_annotations(); private: - const std::string& _internal_method() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_method( - const std::string& value); - std::string* _internal_mutable_method(); - + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + _internal_annotations() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + _internal_mutable_annotations(); public: - // string path = 4 [json_name = "path"]; - void clear_path() ; - const std::string& path() const; - template - void set_path(Arg_&& arg, Args_... args); - std::string* mutable_path(); - PROTOBUF_NODISCARD std::string* release_path(); - void set_allocated_path(std::string* value); + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + annotations() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + mutable_annotations(); + // string service = 1 [json_name = "service"]; + void clear_service(); + const std::string& service() const; + template + void set_service(ArgT0&& arg0, ArgT... args); + std::string* mutable_service(); + PROTOBUF_NODISCARD std::string* release_service(); + void set_allocated_service(std::string* service); private: - const std::string& _internal_path() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_path( - const std::string& value); - std::string* _internal_mutable_path(); - + const std::string& _internal_service() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_service(const std::string& value); + std::string* _internal_mutable_service(); public: - // string host = 5 [json_name = "host"]; - void clear_host() ; - const std::string& host() const; - template - void set_host(Arg_&& arg, Args_... args); - std::string* mutable_host(); - PROTOBUF_NODISCARD std::string* release_host(); - void set_allocated_host(std::string* value); + // string name = 2 [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_host() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_host( - const std::string& value); - std::string* _internal_mutable_host(); - + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); public: - // string scheme = 6 [json_name = "scheme"]; - void clear_scheme() ; - const std::string& scheme() const; - template - void set_scheme(Arg_&& arg, Args_... args); - std::string* mutable_scheme(); - PROTOBUF_NODISCARD std::string* release_scheme(); - void set_allocated_scheme(std::string* value); + // string type = 3 [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_scheme() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_scheme( - const std::string& value); - std::string* _internal_mutable_scheme(); - + 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 query = 7 [json_name = "query"]; - void clear_query() ; - const std::string& query() const; - template - void set_query(Arg_&& arg, Args_... args); - std::string* mutable_query(); - PROTOBUF_NODISCARD std::string* release_query(); - void set_allocated_query(std::string* value); + // string uid = 5 [json_name = "uid"]; + void clear_uid(); + const std::string& uid() const; + template + void set_uid(ArgT0&& arg0, ArgT... args); + std::string* mutable_uid(); + PROTOBUF_NODISCARD std::string* release_uid(); + void set_allocated_uid(std::string* uid); private: - const std::string& _internal_query() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_query( - const std::string& value); - std::string* _internal_mutable_query(); - + const std::string& _internal_uid() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_uid(const std::string& value); + std::string* _internal_mutable_uid(); public: - // string protocol = 11 [json_name = "protocol"]; - void clear_protocol() ; - const std::string& protocol() const; - template - void set_protocol(Arg_&& arg, Args_... args); - std::string* mutable_protocol(); - PROTOBUF_NODISCARD std::string* release_protocol(); - void set_allocated_protocol(std::string* value); + // string display_name = 7 [json_name = "displayName"]; + void clear_display_name(); + const std::string& display_name() const; + template + void set_display_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_display_name(); + PROTOBUF_NODISCARD std::string* release_display_name(); + void set_allocated_display_name(std::string* display_name); private: - const std::string& _internal_protocol() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_protocol( - const std::string& value); - std::string* _internal_mutable_protocol(); - + const std::string& _internal_display_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_display_name(const std::string& value); + std::string* _internal_mutable_display_name(); public: - // string reason = 12 [json_name = "reason"]; - void clear_reason() ; - const std::string& reason() const; - template - void set_reason(Arg_&& arg, Args_... args); - std::string* mutable_reason(); - PROTOBUF_NODISCARD std::string* release_reason(); - void set_allocated_reason(std::string* value); + // string etag = 11 [json_name = "etag"]; + void clear_etag(); + const std::string& etag() const; + template + void set_etag(ArgT0&& arg0, ArgT... args); + std::string* mutable_etag(); + PROTOBUF_NODISCARD std::string* release_etag(); + void set_allocated_etag(std::string* etag); private: - const std::string& _internal_reason() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_reason( - const std::string& value); - std::string* _internal_mutable_reason(); - + const std::string& _internal_etag() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_etag(const std::string& value); + std::string* _internal_mutable_etag(); public: - // .google.protobuf.Timestamp time = 9 [json_name = "time"]; - bool has_time() const; - void clear_time() ; - const ::google::protobuf::Timestamp& time() const; - PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_time(); - ::google::protobuf::Timestamp* mutable_time(); - void set_allocated_time(::google::protobuf::Timestamp* value); - void unsafe_arena_set_allocated_time(::google::protobuf::Timestamp* value); - ::google::protobuf::Timestamp* unsafe_arena_release_time(); + // string location = 12 [json_name = "location"]; + void clear_location(); + const std::string& location() const; + template + void set_location(ArgT0&& arg0, ArgT... args); + std::string* mutable_location(); + PROTOBUF_NODISCARD std::string* release_location(); + void set_allocated_location(std::string* location); private: - const ::google::protobuf::Timestamp& _internal_time() const; - ::google::protobuf::Timestamp* _internal_mutable_time(); - + const std::string& _internal_location() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_location(const std::string& value); + std::string* _internal_mutable_location(); public: - // .google.rpc.context.AttributeContext.Auth auth = 13 [json_name = "auth"]; - bool has_auth() const; - void clear_auth() ; - const ::google::rpc::context::AttributeContext_Auth& auth() const; - PROTOBUF_NODISCARD ::google::rpc::context::AttributeContext_Auth* release_auth(); - ::google::rpc::context::AttributeContext_Auth* mutable_auth(); - void set_allocated_auth(::google::rpc::context::AttributeContext_Auth* value); - void unsafe_arena_set_allocated_auth(::google::rpc::context::AttributeContext_Auth* value); - ::google::rpc::context::AttributeContext_Auth* unsafe_arena_release_auth(); + // .google.protobuf.Timestamp create_time = 8 [json_name = "createTime"]; + bool has_create_time() const; private: - const ::google::rpc::context::AttributeContext_Auth& _internal_auth() const; - ::google::rpc::context::AttributeContext_Auth* _internal_mutable_auth(); - + bool _internal_has_create_time() const; public: - // int64 size = 10 [json_name = "size"]; - void clear_size() ; - ::int64_t size() const; - void set_size(::int64_t value); + void clear_create_time(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& create_time() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_create_time(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_create_time(); + void set_allocated_create_time(::PROTOBUF_NAMESPACE_ID::Timestamp* create_time); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_create_time() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_create_time(); + public: + void unsafe_arena_set_allocated_create_time( + ::PROTOBUF_NAMESPACE_ID::Timestamp* create_time); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_create_time(); + // .google.protobuf.Timestamp update_time = 9 [json_name = "updateTime"]; + bool has_update_time() const; + private: + bool _internal_has_update_time() const; + public: + void clear_update_time(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& update_time() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_update_time(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_update_time(); + void set_allocated_update_time(::PROTOBUF_NAMESPACE_ID::Timestamp* update_time); private: - ::int64_t _internal_size() const; - void _internal_set_size(::int64_t value); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_update_time() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_update_time(); + public: + void unsafe_arena_set_allocated_update_time( + ::PROTOBUF_NAMESPACE_ID::Timestamp* update_time); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_update_time(); + // .google.protobuf.Timestamp delete_time = 10 [json_name = "deleteTime"]; + bool has_delete_time() const; + private: + bool _internal_has_delete_time() const; public: - // @@protoc_insertion_point(class_scope:google.rpc.context.AttributeContext.Request) + void clear_delete_time(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& delete_time() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_delete_time(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_delete_time(); + void set_allocated_delete_time(::PROTOBUF_NAMESPACE_ID::Timestamp* delete_time); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_delete_time() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_delete_time(); + public: + void unsafe_arena_set_allocated_delete_time( + ::PROTOBUF_NAMESPACE_ID::Timestamp* delete_time); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_delete_time(); + + // @@protoc_insertion_point(class_scope:google.rpc.context.AttributeContext.Resource) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 4, 12, 3, - 108, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::MapField - headers_; - ::google::protobuf::internal::ArenaStringPtr id_; - ::google::protobuf::internal::ArenaStringPtr method_; - ::google::protobuf::internal::ArenaStringPtr path_; - ::google::protobuf::internal::ArenaStringPtr host_; - ::google::protobuf::internal::ArenaStringPtr scheme_; - ::google::protobuf::internal::ArenaStringPtr query_; - ::google::protobuf::internal::ArenaStringPtr protocol_; - ::google::protobuf::internal::ArenaStringPtr reason_; - ::google::protobuf::Timestamp* time_; - ::google::rpc::context::AttributeContext_Auth* auth_; - ::int64_t size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + AttributeContext_Resource_LabelsEntry_DoNotUse, + std::string, std::string, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> labels_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + AttributeContext_Resource_AnnotationsEntry_DoNotUse, + std::string, std::string, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> annotations_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr service_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr uid_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr display_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr etag_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr location_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* create_time_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* update_time_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* delete_time_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class AttributeContext final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.rpc.context.AttributeContext) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.rpc.context.AttributeContext) */ { public: inline AttributeContext() : AttributeContext(nullptr) {} ~AttributeContext() override; - template - explicit PROTOBUF_CONSTEXPR AttributeContext(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR AttributeContext(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline AttributeContext(const AttributeContext& from) - : AttributeContext(nullptr, from) {} + AttributeContext(const AttributeContext& from); AttributeContext(AttributeContext&& from) noexcept : AttributeContext() { *this = ::std::move(from); @@ -2049,9 +1831,9 @@ class AttributeContext final : } inline AttributeContext& operator=(AttributeContext&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2061,22 +1843,13 @@ class AttributeContext final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const AttributeContext& default_instance() { @@ -2095,74 +1868,72 @@ class AttributeContext final : inline void Swap(AttributeContext* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(AttributeContext* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - AttributeContext* New(::google::protobuf::Arena* arena = nullptr) const final { + AttributeContext* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const AttributeContext& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const AttributeContext& from) { - AttributeContext::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const AttributeContext& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(AttributeContext* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "google.rpc.context.AttributeContext"; } protected: - explicit AttributeContext(::google::protobuf::Arena* arena); - AttributeContext(::google::protobuf::Arena* arena, const AttributeContext& from); + explicit AttributeContext(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- - using Peer = AttributeContext_Peer; - using Api = AttributeContext_Api; - using Auth = AttributeContext_Auth; - using Request = AttributeContext_Request; - using Response = AttributeContext_Response; - using Resource = AttributeContext_Resource; + typedef AttributeContext_Peer Peer; + typedef AttributeContext_Api Api; + typedef AttributeContext_Auth Auth; + typedef AttributeContext_Request Request; + typedef AttributeContext_Response Response; + typedef AttributeContext_Resource Resource; // accessors ------------------------------------------------------- @@ -2180,389 +1951,373 @@ class AttributeContext final : int extensions_size() const; private: int _internal_extensions_size() const; - public: - void clear_extensions() ; - ::google::protobuf::Any* mutable_extensions(int index); - ::google::protobuf::RepeatedPtrField< ::google::protobuf::Any >* + void clear_extensions(); + ::PROTOBUF_NAMESPACE_ID::Any* mutable_extensions(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Any >* mutable_extensions(); private: - const ::google::protobuf::RepeatedPtrField<::google::protobuf::Any>& _internal_extensions() const; - ::google::protobuf::RepeatedPtrField<::google::protobuf::Any>* _internal_mutable_extensions(); + const ::PROTOBUF_NAMESPACE_ID::Any& _internal_extensions(int index) const; + ::PROTOBUF_NAMESPACE_ID::Any* _internal_add_extensions(); public: - const ::google::protobuf::Any& extensions(int index) const; - ::google::protobuf::Any* add_extensions(); - const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Any >& + const ::PROTOBUF_NAMESPACE_ID::Any& extensions(int index) const; + ::PROTOBUF_NAMESPACE_ID::Any* add_extensions(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Any >& extensions() const; + // .google.rpc.context.AttributeContext.Peer source = 1 [json_name = "source"]; bool has_source() const; - void clear_source() ; + private: + bool _internal_has_source() const; + public: + void clear_source(); const ::google::rpc::context::AttributeContext_Peer& source() const; PROTOBUF_NODISCARD ::google::rpc::context::AttributeContext_Peer* release_source(); ::google::rpc::context::AttributeContext_Peer* mutable_source(); - void set_allocated_source(::google::rpc::context::AttributeContext_Peer* value); - void unsafe_arena_set_allocated_source(::google::rpc::context::AttributeContext_Peer* value); - ::google::rpc::context::AttributeContext_Peer* unsafe_arena_release_source(); - + void set_allocated_source(::google::rpc::context::AttributeContext_Peer* source); private: const ::google::rpc::context::AttributeContext_Peer& _internal_source() const; ::google::rpc::context::AttributeContext_Peer* _internal_mutable_source(); - public: + void unsafe_arena_set_allocated_source( + ::google::rpc::context::AttributeContext_Peer* source); + ::google::rpc::context::AttributeContext_Peer* unsafe_arena_release_source(); + // .google.rpc.context.AttributeContext.Peer destination = 2 [json_name = "destination"]; bool has_destination() const; - void clear_destination() ; + private: + bool _internal_has_destination() const; + public: + void clear_destination(); const ::google::rpc::context::AttributeContext_Peer& destination() const; PROTOBUF_NODISCARD ::google::rpc::context::AttributeContext_Peer* release_destination(); ::google::rpc::context::AttributeContext_Peer* mutable_destination(); - void set_allocated_destination(::google::rpc::context::AttributeContext_Peer* value); - void unsafe_arena_set_allocated_destination(::google::rpc::context::AttributeContext_Peer* value); - ::google::rpc::context::AttributeContext_Peer* unsafe_arena_release_destination(); - + void set_allocated_destination(::google::rpc::context::AttributeContext_Peer* destination); private: const ::google::rpc::context::AttributeContext_Peer& _internal_destination() const; ::google::rpc::context::AttributeContext_Peer* _internal_mutable_destination(); - public: + void unsafe_arena_set_allocated_destination( + ::google::rpc::context::AttributeContext_Peer* destination); + ::google::rpc::context::AttributeContext_Peer* unsafe_arena_release_destination(); + // .google.rpc.context.AttributeContext.Request request = 3 [json_name = "request"]; bool has_request() const; - void clear_request() ; + private: + bool _internal_has_request() const; + public: + void clear_request(); const ::google::rpc::context::AttributeContext_Request& request() const; PROTOBUF_NODISCARD ::google::rpc::context::AttributeContext_Request* release_request(); ::google::rpc::context::AttributeContext_Request* mutable_request(); - void set_allocated_request(::google::rpc::context::AttributeContext_Request* value); - void unsafe_arena_set_allocated_request(::google::rpc::context::AttributeContext_Request* value); - ::google::rpc::context::AttributeContext_Request* unsafe_arena_release_request(); - + void set_allocated_request(::google::rpc::context::AttributeContext_Request* request); private: const ::google::rpc::context::AttributeContext_Request& _internal_request() const; ::google::rpc::context::AttributeContext_Request* _internal_mutable_request(); - public: + void unsafe_arena_set_allocated_request( + ::google::rpc::context::AttributeContext_Request* request); + ::google::rpc::context::AttributeContext_Request* unsafe_arena_release_request(); + // .google.rpc.context.AttributeContext.Response response = 4 [json_name = "response"]; bool has_response() const; - void clear_response() ; + private: + bool _internal_has_response() const; + public: + void clear_response(); const ::google::rpc::context::AttributeContext_Response& response() const; PROTOBUF_NODISCARD ::google::rpc::context::AttributeContext_Response* release_response(); ::google::rpc::context::AttributeContext_Response* mutable_response(); - void set_allocated_response(::google::rpc::context::AttributeContext_Response* value); - void unsafe_arena_set_allocated_response(::google::rpc::context::AttributeContext_Response* value); - ::google::rpc::context::AttributeContext_Response* unsafe_arena_release_response(); - + void set_allocated_response(::google::rpc::context::AttributeContext_Response* response); private: const ::google::rpc::context::AttributeContext_Response& _internal_response() const; ::google::rpc::context::AttributeContext_Response* _internal_mutable_response(); - public: + void unsafe_arena_set_allocated_response( + ::google::rpc::context::AttributeContext_Response* response); + ::google::rpc::context::AttributeContext_Response* unsafe_arena_release_response(); + // .google.rpc.context.AttributeContext.Resource resource = 5 [json_name = "resource"]; bool has_resource() const; - void clear_resource() ; + private: + bool _internal_has_resource() const; + public: + void clear_resource(); const ::google::rpc::context::AttributeContext_Resource& resource() const; PROTOBUF_NODISCARD ::google::rpc::context::AttributeContext_Resource* release_resource(); ::google::rpc::context::AttributeContext_Resource* mutable_resource(); - void set_allocated_resource(::google::rpc::context::AttributeContext_Resource* value); - void unsafe_arena_set_allocated_resource(::google::rpc::context::AttributeContext_Resource* value); - ::google::rpc::context::AttributeContext_Resource* unsafe_arena_release_resource(); - + void set_allocated_resource(::google::rpc::context::AttributeContext_Resource* resource); private: const ::google::rpc::context::AttributeContext_Resource& _internal_resource() const; ::google::rpc::context::AttributeContext_Resource* _internal_mutable_resource(); - public: + void unsafe_arena_set_allocated_resource( + ::google::rpc::context::AttributeContext_Resource* resource); + ::google::rpc::context::AttributeContext_Resource* unsafe_arena_release_resource(); + // .google.rpc.context.AttributeContext.Api api = 6 [json_name = "api"]; bool has_api() const; - void clear_api() ; + private: + bool _internal_has_api() const; + public: + void clear_api(); const ::google::rpc::context::AttributeContext_Api& api() const; PROTOBUF_NODISCARD ::google::rpc::context::AttributeContext_Api* release_api(); ::google::rpc::context::AttributeContext_Api* mutable_api(); - void set_allocated_api(::google::rpc::context::AttributeContext_Api* value); - void unsafe_arena_set_allocated_api(::google::rpc::context::AttributeContext_Api* value); - ::google::rpc::context::AttributeContext_Api* unsafe_arena_release_api(); - + void set_allocated_api(::google::rpc::context::AttributeContext_Api* api); private: const ::google::rpc::context::AttributeContext_Api& _internal_api() const; ::google::rpc::context::AttributeContext_Api* _internal_mutable_api(); - public: + void unsafe_arena_set_allocated_api( + ::google::rpc::context::AttributeContext_Api* api); + ::google::rpc::context::AttributeContext_Api* unsafe_arena_release_api(); + // .google.rpc.context.AttributeContext.Peer origin = 7 [json_name = "origin"]; bool has_origin() const; - void clear_origin() ; + private: + bool _internal_has_origin() const; + public: + void clear_origin(); const ::google::rpc::context::AttributeContext_Peer& origin() const; PROTOBUF_NODISCARD ::google::rpc::context::AttributeContext_Peer* release_origin(); ::google::rpc::context::AttributeContext_Peer* mutable_origin(); - void set_allocated_origin(::google::rpc::context::AttributeContext_Peer* value); - void unsafe_arena_set_allocated_origin(::google::rpc::context::AttributeContext_Peer* value); - ::google::rpc::context::AttributeContext_Peer* unsafe_arena_release_origin(); - + void set_allocated_origin(::google::rpc::context::AttributeContext_Peer* origin); private: const ::google::rpc::context::AttributeContext_Peer& _internal_origin() const; ::google::rpc::context::AttributeContext_Peer* _internal_mutable_origin(); - public: + void unsafe_arena_set_allocated_origin( + ::google::rpc::context::AttributeContext_Peer* origin); + ::google::rpc::context::AttributeContext_Peer* unsafe_arena_release_origin(); + // @@protoc_insertion_point(class_scope:google.rpc.context.AttributeContext) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 8, 8, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::google::protobuf::Any > extensions_; - ::google::rpc::context::AttributeContext_Peer* source_; - ::google::rpc::context::AttributeContext_Peer* destination_; - ::google::rpc::context::AttributeContext_Request* request_; - ::google::rpc::context::AttributeContext_Response* response_; - ::google::rpc::context::AttributeContext_Resource* resource_; - ::google::rpc::context::AttributeContext_Api* api_; - ::google::rpc::context::AttributeContext_Peer* origin_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Any > extensions_; + ::google::rpc::context::AttributeContext_Peer* source_; + ::google::rpc::context::AttributeContext_Peer* destination_; + ::google::rpc::context::AttributeContext_Request* request_; + ::google::rpc::context::AttributeContext_Response* response_; + ::google::rpc::context::AttributeContext_Resource* resource_; + ::google::rpc::context::AttributeContext_Api* api_; + ::google::rpc::context::AttributeContext_Peer* origin_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto; }; - // =================================================================== - - // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ // ------------------------------------------------------------------- -// ------------------------------------------------------------------- - // AttributeContext_Peer // string ip = 1 [json_name = "ip"]; inline void AttributeContext_Peer::clear_ip() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.ip_.ClearToEmpty(); + ip_.ClearToEmpty(); } -inline const std::string& AttributeContext_Peer::ip() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& AttributeContext_Peer::ip() const { // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Peer.ip) return _internal_ip(); } -template -inline PROTOBUF_ALWAYS_INLINE void AttributeContext_Peer::set_ip(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.ip_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void AttributeContext_Peer::set_ip(ArgT0&& arg0, ArgT... args) { + + ip_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Peer.ip) } -inline std::string* AttributeContext_Peer::mutable_ip() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* AttributeContext_Peer::mutable_ip() { std::string* _s = _internal_mutable_ip(); // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Peer.ip) return _s; } inline const std::string& AttributeContext_Peer::_internal_ip() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.ip_.Get(); + return ip_.Get(); } inline void AttributeContext_Peer::_internal_set_ip(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.ip_.Set(value, GetArena()); + + ip_.Set(value, GetArenaForAllocation()); } inline std::string* AttributeContext_Peer::_internal_mutable_ip() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.ip_.Mutable( GetArena()); + + return ip_.Mutable(GetArenaForAllocation()); } inline std::string* AttributeContext_Peer::release_ip() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Peer.ip) - return _impl_.ip_.Release(); -} -inline void AttributeContext_Peer::set_allocated_ip(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.ip_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.ip_.IsDefault()) { - _impl_.ip_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return ip_.Release(); +} +inline void AttributeContext_Peer::set_allocated_ip(std::string* ip) { + if (ip != nullptr) { + + } else { + + } + ip_.SetAllocated(ip, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (ip_.IsDefault()) { + ip_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Peer.ip) } // int64 port = 2 [json_name = "port"]; inline void AttributeContext_Peer::clear_port() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.port_ = ::int64_t{0}; + port_ = int64_t{0}; } -inline ::int64_t AttributeContext_Peer::port() const { +inline int64_t AttributeContext_Peer::_internal_port() const { + return port_; +} +inline int64_t AttributeContext_Peer::port() const { // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Peer.port) return _internal_port(); } -inline void AttributeContext_Peer::set_port(::int64_t value) { +inline void AttributeContext_Peer::_internal_set_port(int64_t value) { + + port_ = value; +} +inline void AttributeContext_Peer::set_port(int64_t value) { _internal_set_port(value); // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Peer.port) } -inline ::int64_t AttributeContext_Peer::_internal_port() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.port_; -} -inline void AttributeContext_Peer::_internal_set_port(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.port_ = value; -} // map labels = 6 [json_name = "labels"]; inline int AttributeContext_Peer::_internal_labels_size() const { - return _internal_labels().size(); + return labels_.size(); } inline int AttributeContext_Peer::labels_size() const { return _internal_labels_size(); } inline void AttributeContext_Peer::clear_labels() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.labels_.Clear(); + labels_.Clear(); } -inline const ::google::protobuf::Map& AttributeContext_Peer::_internal_labels() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.labels_.GetMap(); +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +AttributeContext_Peer::_internal_labels() const { + return labels_.GetMap(); } -inline const ::google::protobuf::Map& AttributeContext_Peer::labels() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +AttributeContext_Peer::labels() const { // @@protoc_insertion_point(field_map:google.rpc.context.AttributeContext.Peer.labels) return _internal_labels(); } -inline ::google::protobuf::Map* AttributeContext_Peer::_internal_mutable_labels() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.labels_.MutableMap(); +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +AttributeContext_Peer::_internal_mutable_labels() { + return labels_.MutableMap(); } -inline ::google::protobuf::Map* AttributeContext_Peer::mutable_labels() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +AttributeContext_Peer::mutable_labels() { // @@protoc_insertion_point(field_mutable_map:google.rpc.context.AttributeContext.Peer.labels) return _internal_mutable_labels(); } // string principal = 7 [json_name = "principal"]; inline void AttributeContext_Peer::clear_principal() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.principal_.ClearToEmpty(); + principal_.ClearToEmpty(); } -inline const std::string& AttributeContext_Peer::principal() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& AttributeContext_Peer::principal() const { // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Peer.principal) return _internal_principal(); } -template -inline PROTOBUF_ALWAYS_INLINE void AttributeContext_Peer::set_principal(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.principal_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void AttributeContext_Peer::set_principal(ArgT0&& arg0, ArgT... args) { + + principal_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Peer.principal) } -inline std::string* AttributeContext_Peer::mutable_principal() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* AttributeContext_Peer::mutable_principal() { std::string* _s = _internal_mutable_principal(); // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Peer.principal) return _s; } inline const std::string& AttributeContext_Peer::_internal_principal() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.principal_.Get(); + return principal_.Get(); } inline void AttributeContext_Peer::_internal_set_principal(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.principal_.Set(value, GetArena()); + + principal_.Set(value, GetArenaForAllocation()); } inline std::string* AttributeContext_Peer::_internal_mutable_principal() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.principal_.Mutable( GetArena()); + + return principal_.Mutable(GetArenaForAllocation()); } inline std::string* AttributeContext_Peer::release_principal() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Peer.principal) - return _impl_.principal_.Release(); -} -inline void AttributeContext_Peer::set_allocated_principal(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.principal_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.principal_.IsDefault()) { - _impl_.principal_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return principal_.Release(); +} +inline void AttributeContext_Peer::set_allocated_principal(std::string* principal) { + if (principal != nullptr) { + + } else { + + } + principal_.SetAllocated(principal, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (principal_.IsDefault()) { + principal_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Peer.principal) } // string region_code = 8 [json_name = "regionCode"]; inline void AttributeContext_Peer::clear_region_code() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.region_code_.ClearToEmpty(); + region_code_.ClearToEmpty(); } -inline const std::string& AttributeContext_Peer::region_code() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& AttributeContext_Peer::region_code() const { // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Peer.region_code) return _internal_region_code(); } -template -inline PROTOBUF_ALWAYS_INLINE void AttributeContext_Peer::set_region_code(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.region_code_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void AttributeContext_Peer::set_region_code(ArgT0&& arg0, ArgT... args) { + + region_code_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Peer.region_code) } -inline std::string* AttributeContext_Peer::mutable_region_code() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* AttributeContext_Peer::mutable_region_code() { std::string* _s = _internal_mutable_region_code(); // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Peer.region_code) return _s; } inline const std::string& AttributeContext_Peer::_internal_region_code() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.region_code_.Get(); + return region_code_.Get(); } inline void AttributeContext_Peer::_internal_set_region_code(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.region_code_.Set(value, GetArena()); + + region_code_.Set(value, GetArenaForAllocation()); } inline std::string* AttributeContext_Peer::_internal_mutable_region_code() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.region_code_.Mutable( GetArena()); + + return region_code_.Mutable(GetArenaForAllocation()); } inline std::string* AttributeContext_Peer::release_region_code() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Peer.region_code) - return _impl_.region_code_.Release(); -} -inline void AttributeContext_Peer::set_allocated_region_code(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.region_code_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.region_code_.IsDefault()) { - _impl_.region_code_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return region_code_.Release(); +} +inline void AttributeContext_Peer::set_allocated_region_code(std::string* region_code) { + if (region_code != nullptr) { + + } else { + + } + region_code_.SetAllocated(region_code, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (region_code_.IsDefault()) { + region_code_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Peer.region_code) } @@ -2572,213 +2327,201 @@ inline void AttributeContext_Peer::set_allocated_region_code(std::string* value) // string service = 1 [json_name = "service"]; inline void AttributeContext_Api::clear_service() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.service_.ClearToEmpty(); + service_.ClearToEmpty(); } -inline const std::string& AttributeContext_Api::service() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& AttributeContext_Api::service() const { // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Api.service) return _internal_service(); } -template -inline PROTOBUF_ALWAYS_INLINE void AttributeContext_Api::set_service(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.service_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void AttributeContext_Api::set_service(ArgT0&& arg0, ArgT... args) { + + service_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Api.service) } -inline std::string* AttributeContext_Api::mutable_service() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* AttributeContext_Api::mutable_service() { std::string* _s = _internal_mutable_service(); // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Api.service) return _s; } inline const std::string& AttributeContext_Api::_internal_service() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.service_.Get(); + return service_.Get(); } inline void AttributeContext_Api::_internal_set_service(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.service_.Set(value, GetArena()); + + service_.Set(value, GetArenaForAllocation()); } inline std::string* AttributeContext_Api::_internal_mutable_service() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.service_.Mutable( GetArena()); + + return service_.Mutable(GetArenaForAllocation()); } inline std::string* AttributeContext_Api::release_service() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Api.service) - return _impl_.service_.Release(); -} -inline void AttributeContext_Api::set_allocated_service(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.service_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.service_.IsDefault()) { - _impl_.service_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return service_.Release(); +} +inline void AttributeContext_Api::set_allocated_service(std::string* service) { + if (service != nullptr) { + + } else { + + } + service_.SetAllocated(service, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (service_.IsDefault()) { + service_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Api.service) } // string operation = 2 [json_name = "operation"]; inline void AttributeContext_Api::clear_operation() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.operation_.ClearToEmpty(); + operation_.ClearToEmpty(); } -inline const std::string& AttributeContext_Api::operation() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& AttributeContext_Api::operation() const { // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Api.operation) return _internal_operation(); } -template -inline PROTOBUF_ALWAYS_INLINE void AttributeContext_Api::set_operation(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.operation_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void AttributeContext_Api::set_operation(ArgT0&& arg0, ArgT... args) { + + operation_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Api.operation) } -inline std::string* AttributeContext_Api::mutable_operation() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* AttributeContext_Api::mutable_operation() { std::string* _s = _internal_mutable_operation(); // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Api.operation) return _s; } inline const std::string& AttributeContext_Api::_internal_operation() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.operation_.Get(); + return operation_.Get(); } inline void AttributeContext_Api::_internal_set_operation(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.operation_.Set(value, GetArena()); + + operation_.Set(value, GetArenaForAllocation()); } inline std::string* AttributeContext_Api::_internal_mutable_operation() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.operation_.Mutable( GetArena()); + + return operation_.Mutable(GetArenaForAllocation()); } inline std::string* AttributeContext_Api::release_operation() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Api.operation) - return _impl_.operation_.Release(); -} -inline void AttributeContext_Api::set_allocated_operation(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.operation_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.operation_.IsDefault()) { - _impl_.operation_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return operation_.Release(); +} +inline void AttributeContext_Api::set_allocated_operation(std::string* operation) { + if (operation != nullptr) { + + } else { + + } + operation_.SetAllocated(operation, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (operation_.IsDefault()) { + operation_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Api.operation) } // string protocol = 3 [json_name = "protocol"]; inline void AttributeContext_Api::clear_protocol() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.protocol_.ClearToEmpty(); + protocol_.ClearToEmpty(); } -inline const std::string& AttributeContext_Api::protocol() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& AttributeContext_Api::protocol() const { // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Api.protocol) return _internal_protocol(); } -template -inline PROTOBUF_ALWAYS_INLINE void AttributeContext_Api::set_protocol(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.protocol_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void AttributeContext_Api::set_protocol(ArgT0&& arg0, ArgT... args) { + + protocol_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Api.protocol) } -inline std::string* AttributeContext_Api::mutable_protocol() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* AttributeContext_Api::mutable_protocol() { std::string* _s = _internal_mutable_protocol(); // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Api.protocol) return _s; } inline const std::string& AttributeContext_Api::_internal_protocol() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.protocol_.Get(); + return protocol_.Get(); } inline void AttributeContext_Api::_internal_set_protocol(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.protocol_.Set(value, GetArena()); + + protocol_.Set(value, GetArenaForAllocation()); } inline std::string* AttributeContext_Api::_internal_mutable_protocol() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.protocol_.Mutable( GetArena()); + + return protocol_.Mutable(GetArenaForAllocation()); } inline std::string* AttributeContext_Api::release_protocol() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Api.protocol) - return _impl_.protocol_.Release(); -} -inline void AttributeContext_Api::set_allocated_protocol(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.protocol_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.protocol_.IsDefault()) { - _impl_.protocol_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return protocol_.Release(); +} +inline void AttributeContext_Api::set_allocated_protocol(std::string* protocol) { + if (protocol != nullptr) { + + } else { + + } + protocol_.SetAllocated(protocol, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (protocol_.IsDefault()) { + protocol_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Api.protocol) } // string version = 4 [json_name = "version"]; inline void AttributeContext_Api::clear_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.version_.ClearToEmpty(); + version_.ClearToEmpty(); } -inline const std::string& AttributeContext_Api::version() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& AttributeContext_Api::version() const { // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Api.version) return _internal_version(); } -template -inline PROTOBUF_ALWAYS_INLINE void AttributeContext_Api::set_version(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.version_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void AttributeContext_Api::set_version(ArgT0&& arg0, ArgT... args) { + + version_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Api.version) } -inline std::string* AttributeContext_Api::mutable_version() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* AttributeContext_Api::mutable_version() { std::string* _s = _internal_mutable_version(); // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Api.version) return _s; } inline const std::string& AttributeContext_Api::_internal_version() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.version_.Get(); + return version_.Get(); } inline void AttributeContext_Api::_internal_set_version(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.version_.Set(value, GetArena()); + + version_.Set(value, GetArenaForAllocation()); } inline std::string* AttributeContext_Api::_internal_mutable_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.version_.Mutable( GetArena()); + + return version_.Mutable(GetArenaForAllocation()); } inline std::string* AttributeContext_Api::release_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Api.version) - return _impl_.version_.Release(); -} -inline void AttributeContext_Api::set_allocated_version(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.version_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.version_.IsDefault()) { - _impl_.version_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return version_.Release(); +} +inline void AttributeContext_Api::set_allocated_version(std::string* version) { + if (version != nullptr) { + + } else { + + } + version_.SetAllocated(version, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (version_.IsDefault()) { + version_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Api.version) } @@ -2788,401 +2531,337 @@ inline void AttributeContext_Api::set_allocated_version(std::string* value) { // string principal = 1 [json_name = "principal"]; inline void AttributeContext_Auth::clear_principal() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.principal_.ClearToEmpty(); + principal_.ClearToEmpty(); } -inline const std::string& AttributeContext_Auth::principal() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& AttributeContext_Auth::principal() const { // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Auth.principal) return _internal_principal(); } -template -inline PROTOBUF_ALWAYS_INLINE void AttributeContext_Auth::set_principal(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.principal_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void AttributeContext_Auth::set_principal(ArgT0&& arg0, ArgT... args) { + + principal_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Auth.principal) } -inline std::string* AttributeContext_Auth::mutable_principal() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* AttributeContext_Auth::mutable_principal() { std::string* _s = _internal_mutable_principal(); // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Auth.principal) return _s; } inline const std::string& AttributeContext_Auth::_internal_principal() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.principal_.Get(); + return principal_.Get(); } inline void AttributeContext_Auth::_internal_set_principal(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.principal_.Set(value, GetArena()); + + principal_.Set(value, GetArenaForAllocation()); } inline std::string* AttributeContext_Auth::_internal_mutable_principal() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.principal_.Mutable( GetArena()); + + return principal_.Mutable(GetArenaForAllocation()); } inline std::string* AttributeContext_Auth::release_principal() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Auth.principal) - return _impl_.principal_.Release(); -} -inline void AttributeContext_Auth::set_allocated_principal(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.principal_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.principal_.IsDefault()) { - _impl_.principal_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return principal_.Release(); +} +inline void AttributeContext_Auth::set_allocated_principal(std::string* principal) { + if (principal != nullptr) { + + } else { + + } + principal_.SetAllocated(principal, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (principal_.IsDefault()) { + principal_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Auth.principal) } // repeated string audiences = 2 [json_name = "audiences"]; inline int AttributeContext_Auth::_internal_audiences_size() const { - return _internal_audiences().size(); + return audiences_.size(); } inline int AttributeContext_Auth::audiences_size() const { return _internal_audiences_size(); } inline void AttributeContext_Auth::clear_audiences() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.audiences_.Clear(); + audiences_.Clear(); } -inline std::string* AttributeContext_Auth::add_audiences() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_audiences()->Add(); +inline std::string* AttributeContext_Auth::add_audiences() { + std::string* _s = _internal_add_audiences(); // @@protoc_insertion_point(field_add_mutable:google.rpc.context.AttributeContext.Auth.audiences) return _s; } -inline const std::string& AttributeContext_Auth::audiences(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& AttributeContext_Auth::_internal_audiences(int index) const { + return audiences_.Get(index); +} +inline const std::string& AttributeContext_Auth::audiences(int index) const { // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Auth.audiences) - return _internal_audiences().Get(index); + return _internal_audiences(index); } -inline std::string* AttributeContext_Auth::mutable_audiences(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* AttributeContext_Auth::mutable_audiences(int index) { // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Auth.audiences) - return _internal_mutable_audiences()->Mutable(index); + return audiences_.Mutable(index); } inline void AttributeContext_Auth::set_audiences(int index, const std::string& value) { - _internal_mutable_audiences()->Mutable(index)->assign(value); + audiences_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Auth.audiences) } inline void AttributeContext_Auth::set_audiences(int index, std::string&& value) { - _internal_mutable_audiences()->Mutable(index)->assign(std::move(value)); + audiences_.Mutable(index)->assign(std::move(value)); // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Auth.audiences) } inline void AttributeContext_Auth::set_audiences(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_audiences()->Mutable(index)->assign(value); + GOOGLE_DCHECK(value != nullptr); + audiences_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:google.rpc.context.AttributeContext.Auth.audiences) } -inline void AttributeContext_Auth::set_audiences(int index, const char* value, - std::size_t size) { - _internal_mutable_audiences()->Mutable(index)->assign( - reinterpret_cast(value), size); +inline void AttributeContext_Auth::set_audiences(int index, const char* value, size_t size) { + audiences_.Mutable(index)->assign( + reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:google.rpc.context.AttributeContext.Auth.audiences) } -inline void AttributeContext_Auth::set_audiences(int index, absl::string_view value) { - _internal_mutable_audiences()->Mutable(index)->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_set_string_piece:google.rpc.context.AttributeContext.Auth.audiences) +inline std::string* AttributeContext_Auth::_internal_add_audiences() { + return audiences_.Add(); } inline void AttributeContext_Auth::add_audiences(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_audiences()->Add()->assign(value); + audiences_.Add()->assign(value); // @@protoc_insertion_point(field_add:google.rpc.context.AttributeContext.Auth.audiences) } inline void AttributeContext_Auth::add_audiences(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_audiences()->Add(std::move(value)); + audiences_.Add(std::move(value)); // @@protoc_insertion_point(field_add:google.rpc.context.AttributeContext.Auth.audiences) } inline void AttributeContext_Auth::add_audiences(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_audiences()->Add()->assign(value); + GOOGLE_DCHECK(value != nullptr); + audiences_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:google.rpc.context.AttributeContext.Auth.audiences) } -inline void AttributeContext_Auth::add_audiences(const char* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_audiences()->Add()->assign( - reinterpret_cast(value), size); +inline void AttributeContext_Auth::add_audiences(const char* value, size_t size) { + audiences_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:google.rpc.context.AttributeContext.Auth.audiences) } -inline void AttributeContext_Auth::add_audiences(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_audiences()->Add()->assign(value.data(), value.size()); - // @@protoc_insertion_point(field_add_string_piece:google.rpc.context.AttributeContext.Auth.audiences) -} -inline const ::google::protobuf::RepeatedPtrField& -AttributeContext_Auth::audiences() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +AttributeContext_Auth::audiences() const { // @@protoc_insertion_point(field_list:google.rpc.context.AttributeContext.Auth.audiences) - return _internal_audiences(); + return audiences_; } -inline ::google::protobuf::RepeatedPtrField* -AttributeContext_Auth::mutable_audiences() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +AttributeContext_Auth::mutable_audiences() { // @@protoc_insertion_point(field_mutable_list:google.rpc.context.AttributeContext.Auth.audiences) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_audiences(); -} -inline const ::google::protobuf::RepeatedPtrField& -AttributeContext_Auth::_internal_audiences() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.audiences_; -} -inline ::google::protobuf::RepeatedPtrField* -AttributeContext_Auth::_internal_mutable_audiences() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.audiences_; + return &audiences_; } // string presenter = 3 [json_name = "presenter"]; inline void AttributeContext_Auth::clear_presenter() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.presenter_.ClearToEmpty(); + presenter_.ClearToEmpty(); } -inline const std::string& AttributeContext_Auth::presenter() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& AttributeContext_Auth::presenter() const { // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Auth.presenter) return _internal_presenter(); } -template -inline PROTOBUF_ALWAYS_INLINE void AttributeContext_Auth::set_presenter(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.presenter_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void AttributeContext_Auth::set_presenter(ArgT0&& arg0, ArgT... args) { + + presenter_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Auth.presenter) } -inline std::string* AttributeContext_Auth::mutable_presenter() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* AttributeContext_Auth::mutable_presenter() { std::string* _s = _internal_mutable_presenter(); // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Auth.presenter) return _s; } inline const std::string& AttributeContext_Auth::_internal_presenter() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.presenter_.Get(); + return presenter_.Get(); } inline void AttributeContext_Auth::_internal_set_presenter(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.presenter_.Set(value, GetArena()); + + presenter_.Set(value, GetArenaForAllocation()); } inline std::string* AttributeContext_Auth::_internal_mutable_presenter() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.presenter_.Mutable( GetArena()); + + return presenter_.Mutable(GetArenaForAllocation()); } inline std::string* AttributeContext_Auth::release_presenter() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Auth.presenter) - return _impl_.presenter_.Release(); -} -inline void AttributeContext_Auth::set_allocated_presenter(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.presenter_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.presenter_.IsDefault()) { - _impl_.presenter_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return presenter_.Release(); +} +inline void AttributeContext_Auth::set_allocated_presenter(std::string* presenter) { + if (presenter != nullptr) { + + } else { + + } + presenter_.SetAllocated(presenter, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (presenter_.IsDefault()) { + presenter_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Auth.presenter) } // .google.protobuf.Struct claims = 4 [json_name = "claims"]; +inline bool AttributeContext_Auth::_internal_has_claims() const { + return this != internal_default_instance() && claims_ != nullptr; +} inline bool AttributeContext_Auth::has_claims() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.claims_ != nullptr); - return value; + return _internal_has_claims(); } -inline const ::google::protobuf::Struct& AttributeContext_Auth::_internal_claims() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.claims_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& AttributeContext_Auth::_internal_claims() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = claims_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& AttributeContext_Auth::claims() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& AttributeContext_Auth::claims() const { // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Auth.claims) return _internal_claims(); } -inline void AttributeContext_Auth::unsafe_arena_set_allocated_claims(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.claims_); +inline void AttributeContext_Auth::unsafe_arena_set_allocated_claims( + ::PROTOBUF_NAMESPACE_ID::Struct* claims) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(claims_); } - _impl_.claims_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + claims_ = claims; + if (claims) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.rpc.context.AttributeContext.Auth.claims) } -inline ::google::protobuf::Struct* AttributeContext_Auth::release_claims() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.claims_; - _impl_.claims_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* AttributeContext_Auth::release_claims() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = claims_; + claims_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* AttributeContext_Auth::unsafe_arena_release_claims() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* AttributeContext_Auth::unsafe_arena_release_claims() { // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Auth.claims) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.claims_; - _impl_.claims_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = claims_; + claims_ = nullptr; return temp; } -inline ::google::protobuf::Struct* AttributeContext_Auth::_internal_mutable_claims() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.claims_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.claims_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* AttributeContext_Auth::_internal_mutable_claims() { + + if (claims_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + claims_ = p; } - return _impl_.claims_; + return claims_; } -inline ::google::protobuf::Struct* AttributeContext_Auth::mutable_claims() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_claims(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* AttributeContext_Auth::mutable_claims() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_claims(); // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Auth.claims) return _msg; } -inline void AttributeContext_Auth::set_allocated_claims(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void AttributeContext_Auth::set_allocated_claims(::PROTOBUF_NAMESPACE_ID::Struct* claims) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.claims_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(claims_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (claims) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(claims)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + claims = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, claims, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.claims_ = reinterpret_cast<::google::protobuf::Struct*>(value); + claims_ = claims; // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Auth.claims) } // repeated string access_levels = 5 [json_name = "accessLevels"]; inline int AttributeContext_Auth::_internal_access_levels_size() const { - return _internal_access_levels().size(); + return access_levels_.size(); } inline int AttributeContext_Auth::access_levels_size() const { return _internal_access_levels_size(); } inline void AttributeContext_Auth::clear_access_levels() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.access_levels_.Clear(); + access_levels_.Clear(); } -inline std::string* AttributeContext_Auth::add_access_levels() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_access_levels()->Add(); +inline std::string* AttributeContext_Auth::add_access_levels() { + std::string* _s = _internal_add_access_levels(); // @@protoc_insertion_point(field_add_mutable:google.rpc.context.AttributeContext.Auth.access_levels) return _s; } -inline const std::string& AttributeContext_Auth::access_levels(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& AttributeContext_Auth::_internal_access_levels(int index) const { + return access_levels_.Get(index); +} +inline const std::string& AttributeContext_Auth::access_levels(int index) const { // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Auth.access_levels) - return _internal_access_levels().Get(index); + return _internal_access_levels(index); } -inline std::string* AttributeContext_Auth::mutable_access_levels(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* AttributeContext_Auth::mutable_access_levels(int index) { // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Auth.access_levels) - return _internal_mutable_access_levels()->Mutable(index); + return access_levels_.Mutable(index); } inline void AttributeContext_Auth::set_access_levels(int index, const std::string& value) { - _internal_mutable_access_levels()->Mutable(index)->assign(value); + access_levels_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Auth.access_levels) } inline void AttributeContext_Auth::set_access_levels(int index, std::string&& value) { - _internal_mutable_access_levels()->Mutable(index)->assign(std::move(value)); + access_levels_.Mutable(index)->assign(std::move(value)); // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Auth.access_levels) } inline void AttributeContext_Auth::set_access_levels(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_access_levels()->Mutable(index)->assign(value); + GOOGLE_DCHECK(value != nullptr); + access_levels_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:google.rpc.context.AttributeContext.Auth.access_levels) } -inline void AttributeContext_Auth::set_access_levels(int index, const char* value, - std::size_t size) { - _internal_mutable_access_levels()->Mutable(index)->assign( - reinterpret_cast(value), size); +inline void AttributeContext_Auth::set_access_levels(int index, const char* value, size_t size) { + access_levels_.Mutable(index)->assign( + reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:google.rpc.context.AttributeContext.Auth.access_levels) } -inline void AttributeContext_Auth::set_access_levels(int index, absl::string_view value) { - _internal_mutable_access_levels()->Mutable(index)->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_set_string_piece:google.rpc.context.AttributeContext.Auth.access_levels) +inline std::string* AttributeContext_Auth::_internal_add_access_levels() { + return access_levels_.Add(); } inline void AttributeContext_Auth::add_access_levels(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_access_levels()->Add()->assign(value); + access_levels_.Add()->assign(value); // @@protoc_insertion_point(field_add:google.rpc.context.AttributeContext.Auth.access_levels) } inline void AttributeContext_Auth::add_access_levels(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_access_levels()->Add(std::move(value)); + access_levels_.Add(std::move(value)); // @@protoc_insertion_point(field_add:google.rpc.context.AttributeContext.Auth.access_levels) } inline void AttributeContext_Auth::add_access_levels(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_access_levels()->Add()->assign(value); + GOOGLE_DCHECK(value != nullptr); + access_levels_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:google.rpc.context.AttributeContext.Auth.access_levels) } -inline void AttributeContext_Auth::add_access_levels(const char* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_access_levels()->Add()->assign( - reinterpret_cast(value), size); +inline void AttributeContext_Auth::add_access_levels(const char* value, size_t size) { + access_levels_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:google.rpc.context.AttributeContext.Auth.access_levels) } -inline void AttributeContext_Auth::add_access_levels(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_access_levels()->Add()->assign(value.data(), value.size()); - // @@protoc_insertion_point(field_add_string_piece:google.rpc.context.AttributeContext.Auth.access_levels) -} -inline const ::google::protobuf::RepeatedPtrField& -AttributeContext_Auth::access_levels() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +AttributeContext_Auth::access_levels() const { // @@protoc_insertion_point(field_list:google.rpc.context.AttributeContext.Auth.access_levels) - return _internal_access_levels(); + return access_levels_; } -inline ::google::protobuf::RepeatedPtrField* -AttributeContext_Auth::mutable_access_levels() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +AttributeContext_Auth::mutable_access_levels() { // @@protoc_insertion_point(field_mutable_list:google.rpc.context.AttributeContext.Auth.access_levels) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_access_levels(); -} -inline const ::google::protobuf::RepeatedPtrField& -AttributeContext_Auth::_internal_access_levels() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.access_levels_; -} -inline ::google::protobuf::RepeatedPtrField* -AttributeContext_Auth::_internal_mutable_access_levels() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.access_levels_; + return &access_levels_; } // ------------------------------------------------------------------- @@ -3193,663 +2872,625 @@ AttributeContext_Auth::_internal_mutable_access_levels() { // string id = 1 [json_name = "id"]; inline void AttributeContext_Request::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); + id_.ClearToEmpty(); } -inline const std::string& AttributeContext_Request::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& AttributeContext_Request::id() const { // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Request.id) return _internal_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void AttributeContext_Request::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void AttributeContext_Request::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Request.id) } -inline std::string* AttributeContext_Request::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* AttributeContext_Request::mutable_id() { std::string* _s = _internal_mutable_id(); // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Request.id) return _s; } inline const std::string& AttributeContext_Request::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); + return id_.Get(); } inline void AttributeContext_Request::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); + + id_.Set(value, GetArenaForAllocation()); } inline std::string* AttributeContext_Request::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); + + return id_.Mutable(GetArenaForAllocation()); } inline std::string* AttributeContext_Request::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Request.id) - return _impl_.id_.Release(); -} -inline void AttributeContext_Request::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return id_.Release(); +} +inline void AttributeContext_Request::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Request.id) } // string method = 2 [json_name = "method"]; inline void AttributeContext_Request::clear_method() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.method_.ClearToEmpty(); + method_.ClearToEmpty(); } -inline const std::string& AttributeContext_Request::method() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& AttributeContext_Request::method() const { // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Request.method) return _internal_method(); } -template -inline PROTOBUF_ALWAYS_INLINE void AttributeContext_Request::set_method(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.method_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void AttributeContext_Request::set_method(ArgT0&& arg0, ArgT... args) { + + method_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Request.method) } -inline std::string* AttributeContext_Request::mutable_method() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* AttributeContext_Request::mutable_method() { std::string* _s = _internal_mutable_method(); // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Request.method) return _s; } inline const std::string& AttributeContext_Request::_internal_method() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.method_.Get(); + return method_.Get(); } inline void AttributeContext_Request::_internal_set_method(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.method_.Set(value, GetArena()); + + method_.Set(value, GetArenaForAllocation()); } inline std::string* AttributeContext_Request::_internal_mutable_method() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.method_.Mutable( GetArena()); + + return method_.Mutable(GetArenaForAllocation()); } inline std::string* AttributeContext_Request::release_method() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Request.method) - return _impl_.method_.Release(); -} -inline void AttributeContext_Request::set_allocated_method(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.method_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.method_.IsDefault()) { - _impl_.method_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return method_.Release(); +} +inline void AttributeContext_Request::set_allocated_method(std::string* method) { + if (method != nullptr) { + + } else { + + } + method_.SetAllocated(method, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (method_.IsDefault()) { + method_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Request.method) } // map headers = 3 [json_name = "headers"]; inline int AttributeContext_Request::_internal_headers_size() const { - return _internal_headers().size(); + return headers_.size(); } inline int AttributeContext_Request::headers_size() const { return _internal_headers_size(); } inline void AttributeContext_Request::clear_headers() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.headers_.Clear(); + headers_.Clear(); } -inline const ::google::protobuf::Map& AttributeContext_Request::_internal_headers() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.headers_.GetMap(); +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +AttributeContext_Request::_internal_headers() const { + return headers_.GetMap(); } -inline const ::google::protobuf::Map& AttributeContext_Request::headers() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +AttributeContext_Request::headers() const { // @@protoc_insertion_point(field_map:google.rpc.context.AttributeContext.Request.headers) return _internal_headers(); } -inline ::google::protobuf::Map* AttributeContext_Request::_internal_mutable_headers() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.headers_.MutableMap(); +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +AttributeContext_Request::_internal_mutable_headers() { + return headers_.MutableMap(); } -inline ::google::protobuf::Map* AttributeContext_Request::mutable_headers() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +AttributeContext_Request::mutable_headers() { // @@protoc_insertion_point(field_mutable_map:google.rpc.context.AttributeContext.Request.headers) return _internal_mutable_headers(); } // string path = 4 [json_name = "path"]; inline void AttributeContext_Request::clear_path() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.path_.ClearToEmpty(); + path_.ClearToEmpty(); } -inline const std::string& AttributeContext_Request::path() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& AttributeContext_Request::path() const { // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Request.path) return _internal_path(); } -template -inline PROTOBUF_ALWAYS_INLINE void AttributeContext_Request::set_path(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.path_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void AttributeContext_Request::set_path(ArgT0&& arg0, ArgT... args) { + + path_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Request.path) } -inline std::string* AttributeContext_Request::mutable_path() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* AttributeContext_Request::mutable_path() { std::string* _s = _internal_mutable_path(); // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Request.path) return _s; } inline const std::string& AttributeContext_Request::_internal_path() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.path_.Get(); + return path_.Get(); } inline void AttributeContext_Request::_internal_set_path(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.path_.Set(value, GetArena()); + + path_.Set(value, GetArenaForAllocation()); } inline std::string* AttributeContext_Request::_internal_mutable_path() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.path_.Mutable( GetArena()); + + return path_.Mutable(GetArenaForAllocation()); } inline std::string* AttributeContext_Request::release_path() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Request.path) - return _impl_.path_.Release(); -} -inline void AttributeContext_Request::set_allocated_path(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.path_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.path_.IsDefault()) { - _impl_.path_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return path_.Release(); +} +inline void AttributeContext_Request::set_allocated_path(std::string* path) { + if (path != nullptr) { + + } else { + + } + path_.SetAllocated(path, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (path_.IsDefault()) { + path_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Request.path) } // string host = 5 [json_name = "host"]; inline void AttributeContext_Request::clear_host() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.host_.ClearToEmpty(); + host_.ClearToEmpty(); } -inline const std::string& AttributeContext_Request::host() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& AttributeContext_Request::host() const { // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Request.host) return _internal_host(); } -template -inline PROTOBUF_ALWAYS_INLINE void AttributeContext_Request::set_host(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.host_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void AttributeContext_Request::set_host(ArgT0&& arg0, ArgT... args) { + + host_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Request.host) } -inline std::string* AttributeContext_Request::mutable_host() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* AttributeContext_Request::mutable_host() { std::string* _s = _internal_mutable_host(); // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Request.host) return _s; } inline const std::string& AttributeContext_Request::_internal_host() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.host_.Get(); + return host_.Get(); } inline void AttributeContext_Request::_internal_set_host(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.host_.Set(value, GetArena()); + + host_.Set(value, GetArenaForAllocation()); } inline std::string* AttributeContext_Request::_internal_mutable_host() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.host_.Mutable( GetArena()); + + return host_.Mutable(GetArenaForAllocation()); } inline std::string* AttributeContext_Request::release_host() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Request.host) - return _impl_.host_.Release(); -} -inline void AttributeContext_Request::set_allocated_host(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.host_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.host_.IsDefault()) { - _impl_.host_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return host_.Release(); +} +inline void AttributeContext_Request::set_allocated_host(std::string* host) { + if (host != nullptr) { + + } else { + + } + host_.SetAllocated(host, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (host_.IsDefault()) { + host_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Request.host) } // string scheme = 6 [json_name = "scheme"]; inline void AttributeContext_Request::clear_scheme() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.scheme_.ClearToEmpty(); + scheme_.ClearToEmpty(); } -inline const std::string& AttributeContext_Request::scheme() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& AttributeContext_Request::scheme() const { // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Request.scheme) return _internal_scheme(); } -template -inline PROTOBUF_ALWAYS_INLINE void AttributeContext_Request::set_scheme(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.scheme_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void AttributeContext_Request::set_scheme(ArgT0&& arg0, ArgT... args) { + + scheme_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Request.scheme) } -inline std::string* AttributeContext_Request::mutable_scheme() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* AttributeContext_Request::mutable_scheme() { std::string* _s = _internal_mutable_scheme(); // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Request.scheme) return _s; } inline const std::string& AttributeContext_Request::_internal_scheme() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.scheme_.Get(); + return scheme_.Get(); } inline void AttributeContext_Request::_internal_set_scheme(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.scheme_.Set(value, GetArena()); + + scheme_.Set(value, GetArenaForAllocation()); } inline std::string* AttributeContext_Request::_internal_mutable_scheme() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.scheme_.Mutable( GetArena()); + + return scheme_.Mutable(GetArenaForAllocation()); } inline std::string* AttributeContext_Request::release_scheme() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Request.scheme) - return _impl_.scheme_.Release(); -} -inline void AttributeContext_Request::set_allocated_scheme(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.scheme_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.scheme_.IsDefault()) { - _impl_.scheme_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return scheme_.Release(); +} +inline void AttributeContext_Request::set_allocated_scheme(std::string* scheme) { + if (scheme != nullptr) { + + } else { + + } + scheme_.SetAllocated(scheme, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (scheme_.IsDefault()) { + scheme_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Request.scheme) } // string query = 7 [json_name = "query"]; inline void AttributeContext_Request::clear_query() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.query_.ClearToEmpty(); + query_.ClearToEmpty(); } -inline const std::string& AttributeContext_Request::query() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& AttributeContext_Request::query() const { // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Request.query) return _internal_query(); } -template -inline PROTOBUF_ALWAYS_INLINE void AttributeContext_Request::set_query(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.query_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void AttributeContext_Request::set_query(ArgT0&& arg0, ArgT... args) { + + query_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Request.query) } -inline std::string* AttributeContext_Request::mutable_query() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* AttributeContext_Request::mutable_query() { std::string* _s = _internal_mutable_query(); // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Request.query) return _s; } inline const std::string& AttributeContext_Request::_internal_query() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.query_.Get(); + return query_.Get(); } inline void AttributeContext_Request::_internal_set_query(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.query_.Set(value, GetArena()); + + query_.Set(value, GetArenaForAllocation()); } inline std::string* AttributeContext_Request::_internal_mutable_query() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.query_.Mutable( GetArena()); + + return query_.Mutable(GetArenaForAllocation()); } inline std::string* AttributeContext_Request::release_query() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Request.query) - return _impl_.query_.Release(); -} -inline void AttributeContext_Request::set_allocated_query(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.query_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.query_.IsDefault()) { - _impl_.query_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return query_.Release(); +} +inline void AttributeContext_Request::set_allocated_query(std::string* query) { + if (query != nullptr) { + + } else { + + } + query_.SetAllocated(query, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (query_.IsDefault()) { + query_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Request.query) } // .google.protobuf.Timestamp time = 9 [json_name = "time"]; +inline bool AttributeContext_Request::_internal_has_time() const { + return this != internal_default_instance() && time_ != nullptr; +} inline bool AttributeContext_Request::has_time() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.time_ != nullptr); - return value; + return _internal_has_time(); } -inline const ::google::protobuf::Timestamp& AttributeContext_Request::_internal_time() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Timestamp* p = _impl_.time_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& AttributeContext_Request::_internal_time() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = time_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); } -inline const ::google::protobuf::Timestamp& AttributeContext_Request::time() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& AttributeContext_Request::time() const { // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Request.time) return _internal_time(); } -inline void AttributeContext_Request::unsafe_arena_set_allocated_time(::google::protobuf::Timestamp* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.time_); +inline void AttributeContext_Request::unsafe_arena_set_allocated_time( + ::PROTOBUF_NAMESPACE_ID::Timestamp* time) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(time_); } - _impl_.time_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + time_ = time; + if (time) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.rpc.context.AttributeContext.Request.time) } -inline ::google::protobuf::Timestamp* AttributeContext_Request::release_time() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Timestamp* released = _impl_.time_; - _impl_.time_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* AttributeContext_Request::release_time() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = time_; + time_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Timestamp* AttributeContext_Request::unsafe_arena_release_time() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* AttributeContext_Request::unsafe_arena_release_time() { // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Request.time) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Timestamp* temp = _impl_.time_; - _impl_.time_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = time_; + time_ = nullptr; return temp; } -inline ::google::protobuf::Timestamp* AttributeContext_Request::_internal_mutable_time() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.time_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena()); - _impl_.time_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* AttributeContext_Request::_internal_mutable_time() { + + if (time_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + time_ = p; } - return _impl_.time_; + return time_; } -inline ::google::protobuf::Timestamp* AttributeContext_Request::mutable_time() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Timestamp* _msg = _internal_mutable_time(); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* AttributeContext_Request::mutable_time() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_time(); // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Request.time) return _msg; } -inline void AttributeContext_Request::set_allocated_time(::google::protobuf::Timestamp* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void AttributeContext_Request::set_allocated_time(::PROTOBUF_NAMESPACE_ID::Timestamp* time) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.time_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(time_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (time) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(time)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, time, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.time_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); + time_ = time; // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Request.time) } // int64 size = 10 [json_name = "size"]; inline void AttributeContext_Request::clear_size() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.size_ = ::int64_t{0}; + size_ = int64_t{0}; } -inline ::int64_t AttributeContext_Request::size() const { +inline int64_t AttributeContext_Request::_internal_size() const { + return size_; +} +inline int64_t AttributeContext_Request::size() const { // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Request.size) return _internal_size(); } -inline void AttributeContext_Request::set_size(::int64_t value) { +inline void AttributeContext_Request::_internal_set_size(int64_t value) { + + size_ = value; +} +inline void AttributeContext_Request::set_size(int64_t value) { _internal_set_size(value); // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Request.size) } -inline ::int64_t AttributeContext_Request::_internal_size() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.size_; -} -inline void AttributeContext_Request::_internal_set_size(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.size_ = value; -} // string protocol = 11 [json_name = "protocol"]; inline void AttributeContext_Request::clear_protocol() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.protocol_.ClearToEmpty(); + protocol_.ClearToEmpty(); } -inline const std::string& AttributeContext_Request::protocol() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& AttributeContext_Request::protocol() const { // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Request.protocol) return _internal_protocol(); } -template -inline PROTOBUF_ALWAYS_INLINE void AttributeContext_Request::set_protocol(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.protocol_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void AttributeContext_Request::set_protocol(ArgT0&& arg0, ArgT... args) { + + protocol_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Request.protocol) } -inline std::string* AttributeContext_Request::mutable_protocol() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* AttributeContext_Request::mutable_protocol() { std::string* _s = _internal_mutable_protocol(); // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Request.protocol) return _s; } inline const std::string& AttributeContext_Request::_internal_protocol() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.protocol_.Get(); + return protocol_.Get(); } inline void AttributeContext_Request::_internal_set_protocol(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.protocol_.Set(value, GetArena()); + + protocol_.Set(value, GetArenaForAllocation()); } inline std::string* AttributeContext_Request::_internal_mutable_protocol() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.protocol_.Mutable( GetArena()); + + return protocol_.Mutable(GetArenaForAllocation()); } inline std::string* AttributeContext_Request::release_protocol() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Request.protocol) - return _impl_.protocol_.Release(); -} -inline void AttributeContext_Request::set_allocated_protocol(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.protocol_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.protocol_.IsDefault()) { - _impl_.protocol_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return protocol_.Release(); +} +inline void AttributeContext_Request::set_allocated_protocol(std::string* protocol) { + if (protocol != nullptr) { + + } else { + + } + protocol_.SetAllocated(protocol, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (protocol_.IsDefault()) { + protocol_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Request.protocol) } // string reason = 12 [json_name = "reason"]; inline void AttributeContext_Request::clear_reason() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.reason_.ClearToEmpty(); + reason_.ClearToEmpty(); } -inline const std::string& AttributeContext_Request::reason() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& AttributeContext_Request::reason() const { // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Request.reason) return _internal_reason(); } -template -inline PROTOBUF_ALWAYS_INLINE void AttributeContext_Request::set_reason(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.reason_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void AttributeContext_Request::set_reason(ArgT0&& arg0, ArgT... args) { + + reason_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Request.reason) } -inline std::string* AttributeContext_Request::mutable_reason() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* AttributeContext_Request::mutable_reason() { std::string* _s = _internal_mutable_reason(); // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Request.reason) return _s; } inline const std::string& AttributeContext_Request::_internal_reason() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.reason_.Get(); + return reason_.Get(); } inline void AttributeContext_Request::_internal_set_reason(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.reason_.Set(value, GetArena()); + + reason_.Set(value, GetArenaForAllocation()); } inline std::string* AttributeContext_Request::_internal_mutable_reason() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.reason_.Mutable( GetArena()); + + return reason_.Mutable(GetArenaForAllocation()); } inline std::string* AttributeContext_Request::release_reason() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Request.reason) - return _impl_.reason_.Release(); -} -inline void AttributeContext_Request::set_allocated_reason(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.reason_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.reason_.IsDefault()) { - _impl_.reason_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return reason_.Release(); +} +inline void AttributeContext_Request::set_allocated_reason(std::string* reason) { + if (reason != nullptr) { + + } else { + + } + reason_.SetAllocated(reason, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (reason_.IsDefault()) { + reason_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Request.reason) } // .google.rpc.context.AttributeContext.Auth auth = 13 [json_name = "auth"]; +inline bool AttributeContext_Request::_internal_has_auth() const { + return this != internal_default_instance() && auth_ != nullptr; +} inline bool AttributeContext_Request::has_auth() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.auth_ != nullptr); - return value; + return _internal_has_auth(); } inline void AttributeContext_Request::clear_auth() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.auth_ != nullptr) _impl_.auth_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && auth_ != nullptr) { + delete auth_; + } + auth_ = nullptr; } inline const ::google::rpc::context::AttributeContext_Auth& AttributeContext_Request::_internal_auth() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::rpc::context::AttributeContext_Auth* p = _impl_.auth_; - return p != nullptr ? *p : reinterpret_cast(::google::rpc::context::_AttributeContext_Auth_default_instance_); + const ::google::rpc::context::AttributeContext_Auth* p = auth_; + return p != nullptr ? *p : reinterpret_cast( + ::google::rpc::context::_AttributeContext_Auth_default_instance_); } -inline const ::google::rpc::context::AttributeContext_Auth& AttributeContext_Request::auth() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::rpc::context::AttributeContext_Auth& AttributeContext_Request::auth() const { // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Request.auth) return _internal_auth(); } -inline void AttributeContext_Request::unsafe_arena_set_allocated_auth(::google::rpc::context::AttributeContext_Auth* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.auth_); +inline void AttributeContext_Request::unsafe_arena_set_allocated_auth( + ::google::rpc::context::AttributeContext_Auth* auth) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(auth_); } - _impl_.auth_ = reinterpret_cast<::google::rpc::context::AttributeContext_Auth*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + auth_ = auth; + if (auth) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.rpc.context.AttributeContext.Request.auth) } inline ::google::rpc::context::AttributeContext_Auth* AttributeContext_Request::release_auth() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::rpc::context::AttributeContext_Auth* released = _impl_.auth_; - _impl_.auth_ = nullptr; + + ::google::rpc::context::AttributeContext_Auth* temp = auth_; + auth_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::rpc::context::AttributeContext_Auth* AttributeContext_Request::unsafe_arena_release_auth() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Request.auth) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::rpc::context::AttributeContext_Auth* temp = _impl_.auth_; - _impl_.auth_ = nullptr; + + ::google::rpc::context::AttributeContext_Auth* temp = auth_; + auth_ = nullptr; return temp; } inline ::google::rpc::context::AttributeContext_Auth* AttributeContext_Request::_internal_mutable_auth() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.auth_ == nullptr) { - auto* p = CreateMaybeMessage<::google::rpc::context::AttributeContext_Auth>(GetArena()); - _impl_.auth_ = reinterpret_cast<::google::rpc::context::AttributeContext_Auth*>(p); + + if (auth_ == nullptr) { + auto* p = CreateMaybeMessage<::google::rpc::context::AttributeContext_Auth>(GetArenaForAllocation()); + auth_ = p; } - return _impl_.auth_; + return auth_; } -inline ::google::rpc::context::AttributeContext_Auth* AttributeContext_Request::mutable_auth() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::rpc::context::AttributeContext_Auth* AttributeContext_Request::mutable_auth() { ::google::rpc::context::AttributeContext_Auth* _msg = _internal_mutable_auth(); // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Request.auth) return _msg; } -inline void AttributeContext_Request::set_allocated_auth(::google::rpc::context::AttributeContext_Auth* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void AttributeContext_Request::set_allocated_auth(::google::rpc::context::AttributeContext_Auth* auth) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::rpc::context::AttributeContext_Auth*>(_impl_.auth_); + delete auth_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::rpc::context::AttributeContext_Auth*>(value)->GetArena(); + if (auth) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(auth); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + auth = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, auth, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.auth_ = reinterpret_cast<::google::rpc::context::AttributeContext_Auth*>(value); + auth_ = auth; // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Request.auth) } @@ -3861,257 +3502,240 @@ inline void AttributeContext_Request::set_allocated_auth(::google::rpc::context: // int64 code = 1 [json_name = "code"]; inline void AttributeContext_Response::clear_code() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.code_ = ::int64_t{0}; + code_ = int64_t{0}; } -inline ::int64_t AttributeContext_Response::code() const { +inline int64_t AttributeContext_Response::_internal_code() const { + return code_; +} +inline int64_t AttributeContext_Response::code() const { // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Response.code) return _internal_code(); } -inline void AttributeContext_Response::set_code(::int64_t value) { +inline void AttributeContext_Response::_internal_set_code(int64_t value) { + + code_ = value; +} +inline void AttributeContext_Response::set_code(int64_t value) { _internal_set_code(value); // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Response.code) } -inline ::int64_t AttributeContext_Response::_internal_code() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.code_; -} -inline void AttributeContext_Response::_internal_set_code(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.code_ = value; -} // int64 size = 2 [json_name = "size"]; inline void AttributeContext_Response::clear_size() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.size_ = ::int64_t{0}; + size_ = int64_t{0}; } -inline ::int64_t AttributeContext_Response::size() const { +inline int64_t AttributeContext_Response::_internal_size() const { + return size_; +} +inline int64_t AttributeContext_Response::size() const { // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Response.size) return _internal_size(); } -inline void AttributeContext_Response::set_size(::int64_t value) { +inline void AttributeContext_Response::_internal_set_size(int64_t value) { + + size_ = value; +} +inline void AttributeContext_Response::set_size(int64_t value) { _internal_set_size(value); // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Response.size) } -inline ::int64_t AttributeContext_Response::_internal_size() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.size_; -} -inline void AttributeContext_Response::_internal_set_size(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.size_ = value; -} // map headers = 3 [json_name = "headers"]; inline int AttributeContext_Response::_internal_headers_size() const { - return _internal_headers().size(); + return headers_.size(); } inline int AttributeContext_Response::headers_size() const { return _internal_headers_size(); } inline void AttributeContext_Response::clear_headers() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.headers_.Clear(); + headers_.Clear(); } -inline const ::google::protobuf::Map& AttributeContext_Response::_internal_headers() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.headers_.GetMap(); +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +AttributeContext_Response::_internal_headers() const { + return headers_.GetMap(); } -inline const ::google::protobuf::Map& AttributeContext_Response::headers() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +AttributeContext_Response::headers() const { // @@protoc_insertion_point(field_map:google.rpc.context.AttributeContext.Response.headers) return _internal_headers(); } -inline ::google::protobuf::Map* AttributeContext_Response::_internal_mutable_headers() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.headers_.MutableMap(); +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +AttributeContext_Response::_internal_mutable_headers() { + return headers_.MutableMap(); } -inline ::google::protobuf::Map* AttributeContext_Response::mutable_headers() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +AttributeContext_Response::mutable_headers() { // @@protoc_insertion_point(field_mutable_map:google.rpc.context.AttributeContext.Response.headers) return _internal_mutable_headers(); } // .google.protobuf.Timestamp time = 4 [json_name = "time"]; +inline bool AttributeContext_Response::_internal_has_time() const { + return this != internal_default_instance() && time_ != nullptr; +} inline bool AttributeContext_Response::has_time() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.time_ != nullptr); - return value; + return _internal_has_time(); } -inline const ::google::protobuf::Timestamp& AttributeContext_Response::_internal_time() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Timestamp* p = _impl_.time_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& AttributeContext_Response::_internal_time() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = time_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); } -inline const ::google::protobuf::Timestamp& AttributeContext_Response::time() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& AttributeContext_Response::time() const { // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Response.time) return _internal_time(); } -inline void AttributeContext_Response::unsafe_arena_set_allocated_time(::google::protobuf::Timestamp* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.time_); +inline void AttributeContext_Response::unsafe_arena_set_allocated_time( + ::PROTOBUF_NAMESPACE_ID::Timestamp* time) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(time_); } - _impl_.time_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + time_ = time; + if (time) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.rpc.context.AttributeContext.Response.time) } -inline ::google::protobuf::Timestamp* AttributeContext_Response::release_time() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Timestamp* released = _impl_.time_; - _impl_.time_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* AttributeContext_Response::release_time() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = time_; + time_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Timestamp* AttributeContext_Response::unsafe_arena_release_time() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* AttributeContext_Response::unsafe_arena_release_time() { // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Response.time) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Timestamp* temp = _impl_.time_; - _impl_.time_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = time_; + time_ = nullptr; return temp; } -inline ::google::protobuf::Timestamp* AttributeContext_Response::_internal_mutable_time() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.time_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena()); - _impl_.time_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* AttributeContext_Response::_internal_mutable_time() { + + if (time_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + time_ = p; } - return _impl_.time_; + return time_; } -inline ::google::protobuf::Timestamp* AttributeContext_Response::mutable_time() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Timestamp* _msg = _internal_mutable_time(); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* AttributeContext_Response::mutable_time() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_time(); // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Response.time) return _msg; } -inline void AttributeContext_Response::set_allocated_time(::google::protobuf::Timestamp* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void AttributeContext_Response::set_allocated_time(::PROTOBUF_NAMESPACE_ID::Timestamp* time) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.time_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(time_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (time) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(time)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, time, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.time_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); + time_ = time; // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Response.time) } // .google.protobuf.Duration backend_latency = 5 [json_name = "backendLatency"]; +inline bool AttributeContext_Response::_internal_has_backend_latency() const { + return this != internal_default_instance() && backend_latency_ != nullptr; +} inline bool AttributeContext_Response::has_backend_latency() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.backend_latency_ != nullptr); - return value; + return _internal_has_backend_latency(); } -inline const ::google::protobuf::Duration& AttributeContext_Response::_internal_backend_latency() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Duration* p = _impl_.backend_latency_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Duration_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Duration& AttributeContext_Response::_internal_backend_latency() const { + const ::PROTOBUF_NAMESPACE_ID::Duration* p = backend_latency_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Duration_default_instance_); } -inline const ::google::protobuf::Duration& AttributeContext_Response::backend_latency() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Duration& AttributeContext_Response::backend_latency() const { // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Response.backend_latency) return _internal_backend_latency(); } -inline void AttributeContext_Response::unsafe_arena_set_allocated_backend_latency(::google::protobuf::Duration* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.backend_latency_); +inline void AttributeContext_Response::unsafe_arena_set_allocated_backend_latency( + ::PROTOBUF_NAMESPACE_ID::Duration* backend_latency) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(backend_latency_); } - _impl_.backend_latency_ = reinterpret_cast<::google::protobuf::Duration*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + backend_latency_ = backend_latency; + if (backend_latency) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.rpc.context.AttributeContext.Response.backend_latency) } -inline ::google::protobuf::Duration* AttributeContext_Response::release_backend_latency() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Duration* released = _impl_.backend_latency_; - _impl_.backend_latency_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Duration* AttributeContext_Response::release_backend_latency() { + + ::PROTOBUF_NAMESPACE_ID::Duration* temp = backend_latency_; + backend_latency_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Duration* AttributeContext_Response::unsafe_arena_release_backend_latency() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Duration* AttributeContext_Response::unsafe_arena_release_backend_latency() { // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Response.backend_latency) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Duration* temp = _impl_.backend_latency_; - _impl_.backend_latency_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Duration* temp = backend_latency_; + backend_latency_ = nullptr; return temp; } -inline ::google::protobuf::Duration* AttributeContext_Response::_internal_mutable_backend_latency() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.backend_latency_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArena()); - _impl_.backend_latency_ = reinterpret_cast<::google::protobuf::Duration*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Duration* AttributeContext_Response::_internal_mutable_backend_latency() { + + if (backend_latency_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Duration>(GetArenaForAllocation()); + backend_latency_ = p; } - return _impl_.backend_latency_; + return backend_latency_; } -inline ::google::protobuf::Duration* AttributeContext_Response::mutable_backend_latency() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Duration* _msg = _internal_mutable_backend_latency(); +inline ::PROTOBUF_NAMESPACE_ID::Duration* AttributeContext_Response::mutable_backend_latency() { + ::PROTOBUF_NAMESPACE_ID::Duration* _msg = _internal_mutable_backend_latency(); // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Response.backend_latency) return _msg; } -inline void AttributeContext_Response::set_allocated_backend_latency(::google::protobuf::Duration* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void AttributeContext_Response::set_allocated_backend_latency(::PROTOBUF_NAMESPACE_ID::Duration* backend_latency) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.backend_latency_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(backend_latency_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (backend_latency) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(backend_latency)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + backend_latency = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, backend_latency, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.backend_latency_ = reinterpret_cast<::google::protobuf::Duration*>(value); + backend_latency_ = backend_latency; // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Response.backend_latency) } @@ -4125,701 +3749,664 @@ inline void AttributeContext_Response::set_allocated_backend_latency(::google::p // string service = 1 [json_name = "service"]; inline void AttributeContext_Resource::clear_service() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.service_.ClearToEmpty(); + service_.ClearToEmpty(); } -inline const std::string& AttributeContext_Resource::service() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& AttributeContext_Resource::service() const { // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Resource.service) return _internal_service(); } -template -inline PROTOBUF_ALWAYS_INLINE void AttributeContext_Resource::set_service(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.service_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void AttributeContext_Resource::set_service(ArgT0&& arg0, ArgT... args) { + + service_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Resource.service) } -inline std::string* AttributeContext_Resource::mutable_service() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* AttributeContext_Resource::mutable_service() { std::string* _s = _internal_mutable_service(); // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Resource.service) return _s; } inline const std::string& AttributeContext_Resource::_internal_service() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.service_.Get(); + return service_.Get(); } inline void AttributeContext_Resource::_internal_set_service(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.service_.Set(value, GetArena()); + + service_.Set(value, GetArenaForAllocation()); } inline std::string* AttributeContext_Resource::_internal_mutable_service() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.service_.Mutable( GetArena()); + + return service_.Mutable(GetArenaForAllocation()); } inline std::string* AttributeContext_Resource::release_service() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Resource.service) - return _impl_.service_.Release(); -} -inline void AttributeContext_Resource::set_allocated_service(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.service_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.service_.IsDefault()) { - _impl_.service_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return service_.Release(); +} +inline void AttributeContext_Resource::set_allocated_service(std::string* service) { + if (service != nullptr) { + + } else { + + } + service_.SetAllocated(service, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (service_.IsDefault()) { + service_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Resource.service) } // string name = 2 [json_name = "name"]; inline void AttributeContext_Resource::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& AttributeContext_Resource::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& AttributeContext_Resource::name() const { // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Resource.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void AttributeContext_Resource::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void AttributeContext_Resource::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Resource.name) } -inline std::string* AttributeContext_Resource::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* AttributeContext_Resource::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Resource.name) return _s; } inline const std::string& AttributeContext_Resource::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void AttributeContext_Resource::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* AttributeContext_Resource::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* AttributeContext_Resource::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Resource.name) - return _impl_.name_.Release(); -} -inline void AttributeContext_Resource::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void AttributeContext_Resource::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:google.rpc.context.AttributeContext.Resource.name) } // string type = 3 [json_name = "type"]; inline void AttributeContext_Resource::clear_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_.ClearToEmpty(); + type_.ClearToEmpty(); } -inline const std::string& AttributeContext_Resource::type() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& AttributeContext_Resource::type() const { // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Resource.type) return _internal_type(); } -template -inline PROTOBUF_ALWAYS_INLINE void AttributeContext_Resource::set_type(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.type_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void AttributeContext_Resource::set_type(ArgT0&& arg0, ArgT... args) { + + type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Resource.type) } -inline std::string* AttributeContext_Resource::mutable_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* AttributeContext_Resource::mutable_type() { std::string* _s = _internal_mutable_type(); // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Resource.type) return _s; } inline const std::string& AttributeContext_Resource::_internal_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.type_.Get(); + return type_.Get(); } inline void AttributeContext_Resource::_internal_set_type(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.type_.Set(value, GetArena()); + + type_.Set(value, GetArenaForAllocation()); } inline std::string* AttributeContext_Resource::_internal_mutable_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.type_.Mutable( GetArena()); + + return type_.Mutable(GetArenaForAllocation()); } inline std::string* AttributeContext_Resource::release_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Resource.type) - return _impl_.type_.Release(); -} -inline void AttributeContext_Resource::set_allocated_type(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.type_.IsDefault()) { - _impl_.type_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return type_.Release(); +} +inline void AttributeContext_Resource::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:google.rpc.context.AttributeContext.Resource.type) } // map labels = 4 [json_name = "labels"]; inline int AttributeContext_Resource::_internal_labels_size() const { - return _internal_labels().size(); + return labels_.size(); } inline int AttributeContext_Resource::labels_size() const { return _internal_labels_size(); } inline void AttributeContext_Resource::clear_labels() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.labels_.Clear(); + labels_.Clear(); } -inline const ::google::protobuf::Map& AttributeContext_Resource::_internal_labels() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.labels_.GetMap(); +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +AttributeContext_Resource::_internal_labels() const { + return labels_.GetMap(); } -inline const ::google::protobuf::Map& AttributeContext_Resource::labels() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +AttributeContext_Resource::labels() const { // @@protoc_insertion_point(field_map:google.rpc.context.AttributeContext.Resource.labels) return _internal_labels(); } -inline ::google::protobuf::Map* AttributeContext_Resource::_internal_mutable_labels() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.labels_.MutableMap(); +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +AttributeContext_Resource::_internal_mutable_labels() { + return labels_.MutableMap(); } -inline ::google::protobuf::Map* AttributeContext_Resource::mutable_labels() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +AttributeContext_Resource::mutable_labels() { // @@protoc_insertion_point(field_mutable_map:google.rpc.context.AttributeContext.Resource.labels) return _internal_mutable_labels(); } // string uid = 5 [json_name = "uid"]; inline void AttributeContext_Resource::clear_uid() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.uid_.ClearToEmpty(); + uid_.ClearToEmpty(); } -inline const std::string& AttributeContext_Resource::uid() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& AttributeContext_Resource::uid() const { // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Resource.uid) return _internal_uid(); } -template -inline PROTOBUF_ALWAYS_INLINE void AttributeContext_Resource::set_uid(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.uid_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void AttributeContext_Resource::set_uid(ArgT0&& arg0, ArgT... args) { + + uid_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Resource.uid) } -inline std::string* AttributeContext_Resource::mutable_uid() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* AttributeContext_Resource::mutable_uid() { std::string* _s = _internal_mutable_uid(); // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Resource.uid) return _s; } inline const std::string& AttributeContext_Resource::_internal_uid() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.uid_.Get(); + return uid_.Get(); } inline void AttributeContext_Resource::_internal_set_uid(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.uid_.Set(value, GetArena()); + + uid_.Set(value, GetArenaForAllocation()); } inline std::string* AttributeContext_Resource::_internal_mutable_uid() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.uid_.Mutable( GetArena()); + + return uid_.Mutable(GetArenaForAllocation()); } inline std::string* AttributeContext_Resource::release_uid() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Resource.uid) - return _impl_.uid_.Release(); -} -inline void AttributeContext_Resource::set_allocated_uid(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.uid_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.uid_.IsDefault()) { - _impl_.uid_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return uid_.Release(); +} +inline void AttributeContext_Resource::set_allocated_uid(std::string* uid) { + if (uid != nullptr) { + + } else { + + } + uid_.SetAllocated(uid, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (uid_.IsDefault()) { + uid_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Resource.uid) } // map annotations = 6 [json_name = "annotations"]; inline int AttributeContext_Resource::_internal_annotations_size() const { - return _internal_annotations().size(); + return annotations_.size(); } inline int AttributeContext_Resource::annotations_size() const { return _internal_annotations_size(); } inline void AttributeContext_Resource::clear_annotations() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.annotations_.Clear(); + annotations_.Clear(); } -inline const ::google::protobuf::Map& AttributeContext_Resource::_internal_annotations() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.annotations_.GetMap(); +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +AttributeContext_Resource::_internal_annotations() const { + return annotations_.GetMap(); } -inline const ::google::protobuf::Map& AttributeContext_Resource::annotations() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +AttributeContext_Resource::annotations() const { // @@protoc_insertion_point(field_map:google.rpc.context.AttributeContext.Resource.annotations) return _internal_annotations(); } -inline ::google::protobuf::Map* AttributeContext_Resource::_internal_mutable_annotations() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.annotations_.MutableMap(); +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +AttributeContext_Resource::_internal_mutable_annotations() { + return annotations_.MutableMap(); } -inline ::google::protobuf::Map* AttributeContext_Resource::mutable_annotations() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +AttributeContext_Resource::mutable_annotations() { // @@protoc_insertion_point(field_mutable_map:google.rpc.context.AttributeContext.Resource.annotations) return _internal_mutable_annotations(); } // string display_name = 7 [json_name = "displayName"]; inline void AttributeContext_Resource::clear_display_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.display_name_.ClearToEmpty(); + display_name_.ClearToEmpty(); } -inline const std::string& AttributeContext_Resource::display_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& AttributeContext_Resource::display_name() const { // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Resource.display_name) return _internal_display_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void AttributeContext_Resource::set_display_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.display_name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void AttributeContext_Resource::set_display_name(ArgT0&& arg0, ArgT... args) { + + display_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Resource.display_name) } -inline std::string* AttributeContext_Resource::mutable_display_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* AttributeContext_Resource::mutable_display_name() { std::string* _s = _internal_mutable_display_name(); // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Resource.display_name) return _s; } inline const std::string& AttributeContext_Resource::_internal_display_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.display_name_.Get(); + return display_name_.Get(); } inline void AttributeContext_Resource::_internal_set_display_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.display_name_.Set(value, GetArena()); + + display_name_.Set(value, GetArenaForAllocation()); } inline std::string* AttributeContext_Resource::_internal_mutable_display_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.display_name_.Mutable( GetArena()); + + return display_name_.Mutable(GetArenaForAllocation()); } inline std::string* AttributeContext_Resource::release_display_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Resource.display_name) - return _impl_.display_name_.Release(); -} -inline void AttributeContext_Resource::set_allocated_display_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.display_name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.display_name_.IsDefault()) { - _impl_.display_name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return display_name_.Release(); +} +inline void AttributeContext_Resource::set_allocated_display_name(std::string* display_name) { + if (display_name != nullptr) { + + } else { + + } + display_name_.SetAllocated(display_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (display_name_.IsDefault()) { + display_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Resource.display_name) } // .google.protobuf.Timestamp create_time = 8 [json_name = "createTime"]; +inline bool AttributeContext_Resource::_internal_has_create_time() const { + return this != internal_default_instance() && create_time_ != nullptr; +} inline bool AttributeContext_Resource::has_create_time() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.create_time_ != nullptr); - return value; + return _internal_has_create_time(); } -inline const ::google::protobuf::Timestamp& AttributeContext_Resource::_internal_create_time() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Timestamp* p = _impl_.create_time_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& AttributeContext_Resource::_internal_create_time() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = create_time_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); } -inline const ::google::protobuf::Timestamp& AttributeContext_Resource::create_time() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& AttributeContext_Resource::create_time() const { // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Resource.create_time) return _internal_create_time(); } -inline void AttributeContext_Resource::unsafe_arena_set_allocated_create_time(::google::protobuf::Timestamp* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.create_time_); +inline void AttributeContext_Resource::unsafe_arena_set_allocated_create_time( + ::PROTOBUF_NAMESPACE_ID::Timestamp* create_time) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(create_time_); } - _impl_.create_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + create_time_ = create_time; + if (create_time) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.rpc.context.AttributeContext.Resource.create_time) } -inline ::google::protobuf::Timestamp* AttributeContext_Resource::release_create_time() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Timestamp* released = _impl_.create_time_; - _impl_.create_time_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* AttributeContext_Resource::release_create_time() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = create_time_; + create_time_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Timestamp* AttributeContext_Resource::unsafe_arena_release_create_time() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* AttributeContext_Resource::unsafe_arena_release_create_time() { // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Resource.create_time) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Timestamp* temp = _impl_.create_time_; - _impl_.create_time_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = create_time_; + create_time_ = nullptr; return temp; } -inline ::google::protobuf::Timestamp* AttributeContext_Resource::_internal_mutable_create_time() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.create_time_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena()); - _impl_.create_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* AttributeContext_Resource::_internal_mutable_create_time() { + + if (create_time_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + create_time_ = p; } - return _impl_.create_time_; + return create_time_; } -inline ::google::protobuf::Timestamp* AttributeContext_Resource::mutable_create_time() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Timestamp* _msg = _internal_mutable_create_time(); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* AttributeContext_Resource::mutable_create_time() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_create_time(); // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Resource.create_time) return _msg; } -inline void AttributeContext_Resource::set_allocated_create_time(::google::protobuf::Timestamp* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void AttributeContext_Resource::set_allocated_create_time(::PROTOBUF_NAMESPACE_ID::Timestamp* create_time) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.create_time_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(create_time_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (create_time) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(create_time)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + create_time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, create_time, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.create_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); + create_time_ = create_time; // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Resource.create_time) } // .google.protobuf.Timestamp update_time = 9 [json_name = "updateTime"]; +inline bool AttributeContext_Resource::_internal_has_update_time() const { + return this != internal_default_instance() && update_time_ != nullptr; +} inline bool AttributeContext_Resource::has_update_time() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.update_time_ != nullptr); - return value; + return _internal_has_update_time(); } -inline const ::google::protobuf::Timestamp& AttributeContext_Resource::_internal_update_time() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Timestamp* p = _impl_.update_time_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& AttributeContext_Resource::_internal_update_time() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = update_time_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); } -inline const ::google::protobuf::Timestamp& AttributeContext_Resource::update_time() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& AttributeContext_Resource::update_time() const { // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Resource.update_time) return _internal_update_time(); } -inline void AttributeContext_Resource::unsafe_arena_set_allocated_update_time(::google::protobuf::Timestamp* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.update_time_); +inline void AttributeContext_Resource::unsafe_arena_set_allocated_update_time( + ::PROTOBUF_NAMESPACE_ID::Timestamp* update_time) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(update_time_); } - _impl_.update_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + update_time_ = update_time; + if (update_time) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.rpc.context.AttributeContext.Resource.update_time) } -inline ::google::protobuf::Timestamp* AttributeContext_Resource::release_update_time() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Timestamp* released = _impl_.update_time_; - _impl_.update_time_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* AttributeContext_Resource::release_update_time() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = update_time_; + update_time_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Timestamp* AttributeContext_Resource::unsafe_arena_release_update_time() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* AttributeContext_Resource::unsafe_arena_release_update_time() { // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Resource.update_time) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Timestamp* temp = _impl_.update_time_; - _impl_.update_time_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = update_time_; + update_time_ = nullptr; return temp; } -inline ::google::protobuf::Timestamp* AttributeContext_Resource::_internal_mutable_update_time() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.update_time_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena()); - _impl_.update_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* AttributeContext_Resource::_internal_mutable_update_time() { + + if (update_time_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + update_time_ = p; } - return _impl_.update_time_; + return update_time_; } -inline ::google::protobuf::Timestamp* AttributeContext_Resource::mutable_update_time() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Timestamp* _msg = _internal_mutable_update_time(); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* AttributeContext_Resource::mutable_update_time() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_update_time(); // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Resource.update_time) return _msg; } -inline void AttributeContext_Resource::set_allocated_update_time(::google::protobuf::Timestamp* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void AttributeContext_Resource::set_allocated_update_time(::PROTOBUF_NAMESPACE_ID::Timestamp* update_time) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.update_time_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(update_time_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (update_time) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(update_time)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + update_time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, update_time, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.update_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); + update_time_ = update_time; // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Resource.update_time) } // .google.protobuf.Timestamp delete_time = 10 [json_name = "deleteTime"]; +inline bool AttributeContext_Resource::_internal_has_delete_time() const { + return this != internal_default_instance() && delete_time_ != nullptr; +} inline bool AttributeContext_Resource::has_delete_time() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || _impl_.delete_time_ != nullptr); - return value; + return _internal_has_delete_time(); } -inline const ::google::protobuf::Timestamp& AttributeContext_Resource::_internal_delete_time() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Timestamp* p = _impl_.delete_time_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& AttributeContext_Resource::_internal_delete_time() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = delete_time_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); } -inline const ::google::protobuf::Timestamp& AttributeContext_Resource::delete_time() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& AttributeContext_Resource::delete_time() const { // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Resource.delete_time) return _internal_delete_time(); } -inline void AttributeContext_Resource::unsafe_arena_set_allocated_delete_time(::google::protobuf::Timestamp* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.delete_time_); +inline void AttributeContext_Resource::unsafe_arena_set_allocated_delete_time( + ::PROTOBUF_NAMESPACE_ID::Timestamp* delete_time) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(delete_time_); } - _impl_.delete_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000004u; + delete_time_ = delete_time; + if (delete_time) { + } else { - _impl_._has_bits_[0] &= ~0x00000004u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.rpc.context.AttributeContext.Resource.delete_time) } -inline ::google::protobuf::Timestamp* AttributeContext_Resource::release_delete_time() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000004u; - ::google::protobuf::Timestamp* released = _impl_.delete_time_; - _impl_.delete_time_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* AttributeContext_Resource::release_delete_time() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = delete_time_; + delete_time_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Timestamp* AttributeContext_Resource::unsafe_arena_release_delete_time() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* AttributeContext_Resource::unsafe_arena_release_delete_time() { // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Resource.delete_time) - - _impl_._has_bits_[0] &= ~0x00000004u; - ::google::protobuf::Timestamp* temp = _impl_.delete_time_; - _impl_.delete_time_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = delete_time_; + delete_time_ = nullptr; return temp; } -inline ::google::protobuf::Timestamp* AttributeContext_Resource::_internal_mutable_delete_time() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - if (_impl_.delete_time_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena()); - _impl_.delete_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* AttributeContext_Resource::_internal_mutable_delete_time() { + + if (delete_time_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + delete_time_ = p; } - return _impl_.delete_time_; + return delete_time_; } -inline ::google::protobuf::Timestamp* AttributeContext_Resource::mutable_delete_time() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Timestamp* _msg = _internal_mutable_delete_time(); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* AttributeContext_Resource::mutable_delete_time() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_delete_time(); // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Resource.delete_time) return _msg; } -inline void AttributeContext_Resource::set_allocated_delete_time(::google::protobuf::Timestamp* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void AttributeContext_Resource::set_allocated_delete_time(::PROTOBUF_NAMESPACE_ID::Timestamp* delete_time) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.delete_time_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(delete_time_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (delete_time) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(delete_time)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + delete_time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, delete_time, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000004u; + } else { - _impl_._has_bits_[0] &= ~0x00000004u; + } - - _impl_.delete_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); + delete_time_ = delete_time; // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Resource.delete_time) } // string etag = 11 [json_name = "etag"]; inline void AttributeContext_Resource::clear_etag() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.etag_.ClearToEmpty(); + etag_.ClearToEmpty(); } -inline const std::string& AttributeContext_Resource::etag() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& AttributeContext_Resource::etag() const { // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Resource.etag) return _internal_etag(); } -template -inline PROTOBUF_ALWAYS_INLINE void AttributeContext_Resource::set_etag(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.etag_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void AttributeContext_Resource::set_etag(ArgT0&& arg0, ArgT... args) { + + etag_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Resource.etag) } -inline std::string* AttributeContext_Resource::mutable_etag() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* AttributeContext_Resource::mutable_etag() { std::string* _s = _internal_mutable_etag(); // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Resource.etag) return _s; } inline const std::string& AttributeContext_Resource::_internal_etag() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.etag_.Get(); + return etag_.Get(); } inline void AttributeContext_Resource::_internal_set_etag(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.etag_.Set(value, GetArena()); + + etag_.Set(value, GetArenaForAllocation()); } inline std::string* AttributeContext_Resource::_internal_mutable_etag() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.etag_.Mutable( GetArena()); + + return etag_.Mutable(GetArenaForAllocation()); } inline std::string* AttributeContext_Resource::release_etag() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Resource.etag) - return _impl_.etag_.Release(); -} -inline void AttributeContext_Resource::set_allocated_etag(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.etag_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.etag_.IsDefault()) { - _impl_.etag_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return etag_.Release(); +} +inline void AttributeContext_Resource::set_allocated_etag(std::string* etag) { + if (etag != nullptr) { + + } else { + + } + etag_.SetAllocated(etag, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (etag_.IsDefault()) { + etag_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Resource.etag) } // string location = 12 [json_name = "location"]; inline void AttributeContext_Resource::clear_location() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.location_.ClearToEmpty(); + location_.ClearToEmpty(); } -inline const std::string& AttributeContext_Resource::location() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& AttributeContext_Resource::location() const { // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.Resource.location) return _internal_location(); } -template -inline PROTOBUF_ALWAYS_INLINE void AttributeContext_Resource::set_location(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.location_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void AttributeContext_Resource::set_location(ArgT0&& arg0, ArgT... args) { + + location_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.rpc.context.AttributeContext.Resource.location) } -inline std::string* AttributeContext_Resource::mutable_location() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* AttributeContext_Resource::mutable_location() { std::string* _s = _internal_mutable_location(); // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.Resource.location) return _s; } inline const std::string& AttributeContext_Resource::_internal_location() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.location_.Get(); + return location_.Get(); } inline void AttributeContext_Resource::_internal_set_location(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.location_.Set(value, GetArena()); + + location_.Set(value, GetArenaForAllocation()); } inline std::string* AttributeContext_Resource::_internal_mutable_location() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.location_.Mutable( GetArena()); + + return location_.Mutable(GetArenaForAllocation()); } inline std::string* AttributeContext_Resource::release_location() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.Resource.location) - return _impl_.location_.Release(); -} -inline void AttributeContext_Resource::set_allocated_location(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.location_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.location_.IsDefault()) { - _impl_.location_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return location_.Release(); +} +inline void AttributeContext_Resource::set_allocated_location(std::string* location) { + if (location != nullptr) { + + } else { + + } + location_.SetAllocated(location, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (location_.IsDefault()) { + location_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.Resource.location) } @@ -4828,734 +4415,705 @@ inline void AttributeContext_Resource::set_allocated_location(std::string* value // AttributeContext // .google.rpc.context.AttributeContext.Peer origin = 7 [json_name = "origin"]; +inline bool AttributeContext::_internal_has_origin() const { + return this != internal_default_instance() && origin_ != nullptr; +} inline bool AttributeContext::has_origin() const { - bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0; - PROTOBUF_ASSUME(!value || _impl_.origin_ != nullptr); - return value; + return _internal_has_origin(); } inline void AttributeContext::clear_origin() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.origin_ != nullptr) _impl_.origin_->Clear(); - _impl_._has_bits_[0] &= ~0x00000040u; + if (GetArenaForAllocation() == nullptr && origin_ != nullptr) { + delete origin_; + } + origin_ = nullptr; } inline const ::google::rpc::context::AttributeContext_Peer& AttributeContext::_internal_origin() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::rpc::context::AttributeContext_Peer* p = _impl_.origin_; - return p != nullptr ? *p : reinterpret_cast(::google::rpc::context::_AttributeContext_Peer_default_instance_); + const ::google::rpc::context::AttributeContext_Peer* p = origin_; + return p != nullptr ? *p : reinterpret_cast( + ::google::rpc::context::_AttributeContext_Peer_default_instance_); } -inline const ::google::rpc::context::AttributeContext_Peer& AttributeContext::origin() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::rpc::context::AttributeContext_Peer& AttributeContext::origin() const { // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.origin) return _internal_origin(); } -inline void AttributeContext::unsafe_arena_set_allocated_origin(::google::rpc::context::AttributeContext_Peer* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.origin_); +inline void AttributeContext::unsafe_arena_set_allocated_origin( + ::google::rpc::context::AttributeContext_Peer* origin) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(origin_); } - _impl_.origin_ = reinterpret_cast<::google::rpc::context::AttributeContext_Peer*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000040u; + origin_ = origin; + if (origin) { + } else { - _impl_._has_bits_[0] &= ~0x00000040u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.rpc.context.AttributeContext.origin) } inline ::google::rpc::context::AttributeContext_Peer* AttributeContext::release_origin() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000040u; - ::google::rpc::context::AttributeContext_Peer* released = _impl_.origin_; - _impl_.origin_ = nullptr; + + ::google::rpc::context::AttributeContext_Peer* temp = origin_; + origin_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::rpc::context::AttributeContext_Peer* AttributeContext::unsafe_arena_release_origin() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.origin) - - _impl_._has_bits_[0] &= ~0x00000040u; - ::google::rpc::context::AttributeContext_Peer* temp = _impl_.origin_; - _impl_.origin_ = nullptr; + + ::google::rpc::context::AttributeContext_Peer* temp = origin_; + origin_ = nullptr; return temp; } inline ::google::rpc::context::AttributeContext_Peer* AttributeContext::_internal_mutable_origin() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000040u; - if (_impl_.origin_ == nullptr) { - auto* p = CreateMaybeMessage<::google::rpc::context::AttributeContext_Peer>(GetArena()); - _impl_.origin_ = reinterpret_cast<::google::rpc::context::AttributeContext_Peer*>(p); + + if (origin_ == nullptr) { + auto* p = CreateMaybeMessage<::google::rpc::context::AttributeContext_Peer>(GetArenaForAllocation()); + origin_ = p; } - return _impl_.origin_; + return origin_; } -inline ::google::rpc::context::AttributeContext_Peer* AttributeContext::mutable_origin() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::rpc::context::AttributeContext_Peer* AttributeContext::mutable_origin() { ::google::rpc::context::AttributeContext_Peer* _msg = _internal_mutable_origin(); // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.origin) return _msg; } -inline void AttributeContext::set_allocated_origin(::google::rpc::context::AttributeContext_Peer* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void AttributeContext::set_allocated_origin(::google::rpc::context::AttributeContext_Peer* origin) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::rpc::context::AttributeContext_Peer*>(_impl_.origin_); + delete origin_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::rpc::context::AttributeContext_Peer*>(value)->GetArena(); + if (origin) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(origin); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + origin = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, origin, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000040u; + } else { - _impl_._has_bits_[0] &= ~0x00000040u; + } - - _impl_.origin_ = reinterpret_cast<::google::rpc::context::AttributeContext_Peer*>(value); + origin_ = origin; // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.origin) } // .google.rpc.context.AttributeContext.Peer source = 1 [json_name = "source"]; +inline bool AttributeContext::_internal_has_source() const { + return this != internal_default_instance() && source_ != nullptr; +} inline bool AttributeContext::has_source() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.source_ != nullptr); - return value; + return _internal_has_source(); } inline void AttributeContext::clear_source() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.source_ != nullptr) _impl_.source_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && source_ != nullptr) { + delete source_; + } + source_ = nullptr; } inline const ::google::rpc::context::AttributeContext_Peer& AttributeContext::_internal_source() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::rpc::context::AttributeContext_Peer* p = _impl_.source_; - return p != nullptr ? *p : reinterpret_cast(::google::rpc::context::_AttributeContext_Peer_default_instance_); + const ::google::rpc::context::AttributeContext_Peer* p = source_; + return p != nullptr ? *p : reinterpret_cast( + ::google::rpc::context::_AttributeContext_Peer_default_instance_); } -inline const ::google::rpc::context::AttributeContext_Peer& AttributeContext::source() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::rpc::context::AttributeContext_Peer& AttributeContext::source() const { // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.source) return _internal_source(); } -inline void AttributeContext::unsafe_arena_set_allocated_source(::google::rpc::context::AttributeContext_Peer* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.source_); +inline void AttributeContext::unsafe_arena_set_allocated_source( + ::google::rpc::context::AttributeContext_Peer* source) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(source_); } - _impl_.source_ = reinterpret_cast<::google::rpc::context::AttributeContext_Peer*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + source_ = source; + if (source) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.rpc.context.AttributeContext.source) } inline ::google::rpc::context::AttributeContext_Peer* AttributeContext::release_source() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::rpc::context::AttributeContext_Peer* released = _impl_.source_; - _impl_.source_ = nullptr; + + ::google::rpc::context::AttributeContext_Peer* temp = source_; + source_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::rpc::context::AttributeContext_Peer* AttributeContext::unsafe_arena_release_source() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.source) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::rpc::context::AttributeContext_Peer* temp = _impl_.source_; - _impl_.source_ = nullptr; + + ::google::rpc::context::AttributeContext_Peer* temp = source_; + source_ = nullptr; return temp; } inline ::google::rpc::context::AttributeContext_Peer* AttributeContext::_internal_mutable_source() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.source_ == nullptr) { - auto* p = CreateMaybeMessage<::google::rpc::context::AttributeContext_Peer>(GetArena()); - _impl_.source_ = reinterpret_cast<::google::rpc::context::AttributeContext_Peer*>(p); + + if (source_ == nullptr) { + auto* p = CreateMaybeMessage<::google::rpc::context::AttributeContext_Peer>(GetArenaForAllocation()); + source_ = p; } - return _impl_.source_; + return source_; } -inline ::google::rpc::context::AttributeContext_Peer* AttributeContext::mutable_source() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::rpc::context::AttributeContext_Peer* AttributeContext::mutable_source() { ::google::rpc::context::AttributeContext_Peer* _msg = _internal_mutable_source(); // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.source) return _msg; } -inline void AttributeContext::set_allocated_source(::google::rpc::context::AttributeContext_Peer* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void AttributeContext::set_allocated_source(::google::rpc::context::AttributeContext_Peer* source) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::rpc::context::AttributeContext_Peer*>(_impl_.source_); + delete source_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::rpc::context::AttributeContext_Peer*>(value)->GetArena(); + if (source) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(source); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + source = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, source, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.source_ = reinterpret_cast<::google::rpc::context::AttributeContext_Peer*>(value); + source_ = source; // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.source) } // .google.rpc.context.AttributeContext.Peer destination = 2 [json_name = "destination"]; +inline bool AttributeContext::_internal_has_destination() const { + return this != internal_default_instance() && destination_ != nullptr; +} inline bool AttributeContext::has_destination() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.destination_ != nullptr); - return value; + return _internal_has_destination(); } inline void AttributeContext::clear_destination() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.destination_ != nullptr) _impl_.destination_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && destination_ != nullptr) { + delete destination_; + } + destination_ = nullptr; } inline const ::google::rpc::context::AttributeContext_Peer& AttributeContext::_internal_destination() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::rpc::context::AttributeContext_Peer* p = _impl_.destination_; - return p != nullptr ? *p : reinterpret_cast(::google::rpc::context::_AttributeContext_Peer_default_instance_); + const ::google::rpc::context::AttributeContext_Peer* p = destination_; + return p != nullptr ? *p : reinterpret_cast( + ::google::rpc::context::_AttributeContext_Peer_default_instance_); } -inline const ::google::rpc::context::AttributeContext_Peer& AttributeContext::destination() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::rpc::context::AttributeContext_Peer& AttributeContext::destination() const { // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.destination) return _internal_destination(); } -inline void AttributeContext::unsafe_arena_set_allocated_destination(::google::rpc::context::AttributeContext_Peer* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.destination_); +inline void AttributeContext::unsafe_arena_set_allocated_destination( + ::google::rpc::context::AttributeContext_Peer* destination) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(destination_); } - _impl_.destination_ = reinterpret_cast<::google::rpc::context::AttributeContext_Peer*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + destination_ = destination; + if (destination) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.rpc.context.AttributeContext.destination) } inline ::google::rpc::context::AttributeContext_Peer* AttributeContext::release_destination() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::rpc::context::AttributeContext_Peer* released = _impl_.destination_; - _impl_.destination_ = nullptr; + + ::google::rpc::context::AttributeContext_Peer* temp = destination_; + destination_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::rpc::context::AttributeContext_Peer* AttributeContext::unsafe_arena_release_destination() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.destination) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::rpc::context::AttributeContext_Peer* temp = _impl_.destination_; - _impl_.destination_ = nullptr; + + ::google::rpc::context::AttributeContext_Peer* temp = destination_; + destination_ = nullptr; return temp; } inline ::google::rpc::context::AttributeContext_Peer* AttributeContext::_internal_mutable_destination() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.destination_ == nullptr) { - auto* p = CreateMaybeMessage<::google::rpc::context::AttributeContext_Peer>(GetArena()); - _impl_.destination_ = reinterpret_cast<::google::rpc::context::AttributeContext_Peer*>(p); + + if (destination_ == nullptr) { + auto* p = CreateMaybeMessage<::google::rpc::context::AttributeContext_Peer>(GetArenaForAllocation()); + destination_ = p; } - return _impl_.destination_; + return destination_; } -inline ::google::rpc::context::AttributeContext_Peer* AttributeContext::mutable_destination() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::rpc::context::AttributeContext_Peer* AttributeContext::mutable_destination() { ::google::rpc::context::AttributeContext_Peer* _msg = _internal_mutable_destination(); // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.destination) return _msg; } -inline void AttributeContext::set_allocated_destination(::google::rpc::context::AttributeContext_Peer* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void AttributeContext::set_allocated_destination(::google::rpc::context::AttributeContext_Peer* destination) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::rpc::context::AttributeContext_Peer*>(_impl_.destination_); + delete destination_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::rpc::context::AttributeContext_Peer*>(value)->GetArena(); + if (destination) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(destination); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + destination = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, destination, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.destination_ = reinterpret_cast<::google::rpc::context::AttributeContext_Peer*>(value); + destination_ = destination; // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.destination) } // .google.rpc.context.AttributeContext.Request request = 3 [json_name = "request"]; +inline bool AttributeContext::_internal_has_request() const { + return this != internal_default_instance() && request_ != nullptr; +} inline bool AttributeContext::has_request() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || _impl_.request_ != nullptr); - return value; + return _internal_has_request(); } inline void AttributeContext::clear_request() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.request_ != nullptr) _impl_.request_->Clear(); - _impl_._has_bits_[0] &= ~0x00000004u; + if (GetArenaForAllocation() == nullptr && request_ != nullptr) { + delete request_; + } + request_ = nullptr; } inline const ::google::rpc::context::AttributeContext_Request& AttributeContext::_internal_request() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::rpc::context::AttributeContext_Request* p = _impl_.request_; - return p != nullptr ? *p : reinterpret_cast(::google::rpc::context::_AttributeContext_Request_default_instance_); + const ::google::rpc::context::AttributeContext_Request* p = request_; + return p != nullptr ? *p : reinterpret_cast( + ::google::rpc::context::_AttributeContext_Request_default_instance_); } -inline const ::google::rpc::context::AttributeContext_Request& AttributeContext::request() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::rpc::context::AttributeContext_Request& AttributeContext::request() const { // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.request) return _internal_request(); } -inline void AttributeContext::unsafe_arena_set_allocated_request(::google::rpc::context::AttributeContext_Request* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.request_); +inline void AttributeContext::unsafe_arena_set_allocated_request( + ::google::rpc::context::AttributeContext_Request* request) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(request_); } - _impl_.request_ = reinterpret_cast<::google::rpc::context::AttributeContext_Request*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000004u; + request_ = request; + if (request) { + } else { - _impl_._has_bits_[0] &= ~0x00000004u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.rpc.context.AttributeContext.request) } inline ::google::rpc::context::AttributeContext_Request* AttributeContext::release_request() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000004u; - ::google::rpc::context::AttributeContext_Request* released = _impl_.request_; - _impl_.request_ = nullptr; + + ::google::rpc::context::AttributeContext_Request* temp = request_; + request_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::rpc::context::AttributeContext_Request* AttributeContext::unsafe_arena_release_request() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.request) - - _impl_._has_bits_[0] &= ~0x00000004u; - ::google::rpc::context::AttributeContext_Request* temp = _impl_.request_; - _impl_.request_ = nullptr; + + ::google::rpc::context::AttributeContext_Request* temp = request_; + request_ = nullptr; return temp; } inline ::google::rpc::context::AttributeContext_Request* AttributeContext::_internal_mutable_request() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - if (_impl_.request_ == nullptr) { - auto* p = CreateMaybeMessage<::google::rpc::context::AttributeContext_Request>(GetArena()); - _impl_.request_ = reinterpret_cast<::google::rpc::context::AttributeContext_Request*>(p); + + if (request_ == nullptr) { + auto* p = CreateMaybeMessage<::google::rpc::context::AttributeContext_Request>(GetArenaForAllocation()); + request_ = p; } - return _impl_.request_; + return request_; } -inline ::google::rpc::context::AttributeContext_Request* AttributeContext::mutable_request() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::rpc::context::AttributeContext_Request* AttributeContext::mutable_request() { ::google::rpc::context::AttributeContext_Request* _msg = _internal_mutable_request(); // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.request) return _msg; } -inline void AttributeContext::set_allocated_request(::google::rpc::context::AttributeContext_Request* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void AttributeContext::set_allocated_request(::google::rpc::context::AttributeContext_Request* request) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::rpc::context::AttributeContext_Request*>(_impl_.request_); + delete request_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::rpc::context::AttributeContext_Request*>(value)->GetArena(); + if (request) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(request); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + request = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, request, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000004u; + } else { - _impl_._has_bits_[0] &= ~0x00000004u; + } - - _impl_.request_ = reinterpret_cast<::google::rpc::context::AttributeContext_Request*>(value); + request_ = request; // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.request) } // .google.rpc.context.AttributeContext.Response response = 4 [json_name = "response"]; +inline bool AttributeContext::_internal_has_response() const { + return this != internal_default_instance() && response_ != nullptr; +} inline bool AttributeContext::has_response() const { - bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; - PROTOBUF_ASSUME(!value || _impl_.response_ != nullptr); - return value; + return _internal_has_response(); } inline void AttributeContext::clear_response() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.response_ != nullptr) _impl_.response_->Clear(); - _impl_._has_bits_[0] &= ~0x00000008u; + if (GetArenaForAllocation() == nullptr && response_ != nullptr) { + delete response_; + } + response_ = nullptr; } inline const ::google::rpc::context::AttributeContext_Response& AttributeContext::_internal_response() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::rpc::context::AttributeContext_Response* p = _impl_.response_; - return p != nullptr ? *p : reinterpret_cast(::google::rpc::context::_AttributeContext_Response_default_instance_); + const ::google::rpc::context::AttributeContext_Response* p = response_; + return p != nullptr ? *p : reinterpret_cast( + ::google::rpc::context::_AttributeContext_Response_default_instance_); } -inline const ::google::rpc::context::AttributeContext_Response& AttributeContext::response() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::rpc::context::AttributeContext_Response& AttributeContext::response() const { // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.response) return _internal_response(); } -inline void AttributeContext::unsafe_arena_set_allocated_response(::google::rpc::context::AttributeContext_Response* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.response_); +inline void AttributeContext::unsafe_arena_set_allocated_response( + ::google::rpc::context::AttributeContext_Response* response) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(response_); } - _impl_.response_ = reinterpret_cast<::google::rpc::context::AttributeContext_Response*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000008u; + response_ = response; + if (response) { + } else { - _impl_._has_bits_[0] &= ~0x00000008u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.rpc.context.AttributeContext.response) } inline ::google::rpc::context::AttributeContext_Response* AttributeContext::release_response() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000008u; - ::google::rpc::context::AttributeContext_Response* released = _impl_.response_; - _impl_.response_ = nullptr; + + ::google::rpc::context::AttributeContext_Response* temp = response_; + response_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::rpc::context::AttributeContext_Response* AttributeContext::unsafe_arena_release_response() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.response) - - _impl_._has_bits_[0] &= ~0x00000008u; - ::google::rpc::context::AttributeContext_Response* temp = _impl_.response_; - _impl_.response_ = nullptr; + + ::google::rpc::context::AttributeContext_Response* temp = response_; + response_ = nullptr; return temp; } inline ::google::rpc::context::AttributeContext_Response* AttributeContext::_internal_mutable_response() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000008u; - if (_impl_.response_ == nullptr) { - auto* p = CreateMaybeMessage<::google::rpc::context::AttributeContext_Response>(GetArena()); - _impl_.response_ = reinterpret_cast<::google::rpc::context::AttributeContext_Response*>(p); + + if (response_ == nullptr) { + auto* p = CreateMaybeMessage<::google::rpc::context::AttributeContext_Response>(GetArenaForAllocation()); + response_ = p; } - return _impl_.response_; + return response_; } -inline ::google::rpc::context::AttributeContext_Response* AttributeContext::mutable_response() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::rpc::context::AttributeContext_Response* AttributeContext::mutable_response() { ::google::rpc::context::AttributeContext_Response* _msg = _internal_mutable_response(); // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.response) return _msg; } -inline void AttributeContext::set_allocated_response(::google::rpc::context::AttributeContext_Response* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void AttributeContext::set_allocated_response(::google::rpc::context::AttributeContext_Response* response) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::rpc::context::AttributeContext_Response*>(_impl_.response_); + delete response_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::rpc::context::AttributeContext_Response*>(value)->GetArena(); + if (response) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(response); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + response = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, response, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000008u; + } else { - _impl_._has_bits_[0] &= ~0x00000008u; + } - - _impl_.response_ = reinterpret_cast<::google::rpc::context::AttributeContext_Response*>(value); + response_ = response; // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.response) } // .google.rpc.context.AttributeContext.Resource resource = 5 [json_name = "resource"]; +inline bool AttributeContext::_internal_has_resource() const { + return this != internal_default_instance() && resource_ != nullptr; +} inline bool AttributeContext::has_resource() const { - bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; - PROTOBUF_ASSUME(!value || _impl_.resource_ != nullptr); - return value; + return _internal_has_resource(); } inline void AttributeContext::clear_resource() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.resource_ != nullptr) _impl_.resource_->Clear(); - _impl_._has_bits_[0] &= ~0x00000010u; + if (GetArenaForAllocation() == nullptr && resource_ != nullptr) { + delete resource_; + } + resource_ = nullptr; } inline const ::google::rpc::context::AttributeContext_Resource& AttributeContext::_internal_resource() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::rpc::context::AttributeContext_Resource* p = _impl_.resource_; - return p != nullptr ? *p : reinterpret_cast(::google::rpc::context::_AttributeContext_Resource_default_instance_); + const ::google::rpc::context::AttributeContext_Resource* p = resource_; + return p != nullptr ? *p : reinterpret_cast( + ::google::rpc::context::_AttributeContext_Resource_default_instance_); } -inline const ::google::rpc::context::AttributeContext_Resource& AttributeContext::resource() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::rpc::context::AttributeContext_Resource& AttributeContext::resource() const { // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.resource) return _internal_resource(); } -inline void AttributeContext::unsafe_arena_set_allocated_resource(::google::rpc::context::AttributeContext_Resource* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.resource_); +inline void AttributeContext::unsafe_arena_set_allocated_resource( + ::google::rpc::context::AttributeContext_Resource* resource) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(resource_); } - _impl_.resource_ = reinterpret_cast<::google::rpc::context::AttributeContext_Resource*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000010u; + resource_ = resource; + if (resource) { + } else { - _impl_._has_bits_[0] &= ~0x00000010u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.rpc.context.AttributeContext.resource) } inline ::google::rpc::context::AttributeContext_Resource* AttributeContext::release_resource() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000010u; - ::google::rpc::context::AttributeContext_Resource* released = _impl_.resource_; - _impl_.resource_ = nullptr; + + ::google::rpc::context::AttributeContext_Resource* temp = resource_; + resource_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::rpc::context::AttributeContext_Resource* AttributeContext::unsafe_arena_release_resource() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.resource) - - _impl_._has_bits_[0] &= ~0x00000010u; - ::google::rpc::context::AttributeContext_Resource* temp = _impl_.resource_; - _impl_.resource_ = nullptr; + + ::google::rpc::context::AttributeContext_Resource* temp = resource_; + resource_ = nullptr; return temp; } inline ::google::rpc::context::AttributeContext_Resource* AttributeContext::_internal_mutable_resource() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000010u; - if (_impl_.resource_ == nullptr) { - auto* p = CreateMaybeMessage<::google::rpc::context::AttributeContext_Resource>(GetArena()); - _impl_.resource_ = reinterpret_cast<::google::rpc::context::AttributeContext_Resource*>(p); + + if (resource_ == nullptr) { + auto* p = CreateMaybeMessage<::google::rpc::context::AttributeContext_Resource>(GetArenaForAllocation()); + resource_ = p; } - return _impl_.resource_; + return resource_; } -inline ::google::rpc::context::AttributeContext_Resource* AttributeContext::mutable_resource() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::rpc::context::AttributeContext_Resource* AttributeContext::mutable_resource() { ::google::rpc::context::AttributeContext_Resource* _msg = _internal_mutable_resource(); // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.resource) return _msg; } -inline void AttributeContext::set_allocated_resource(::google::rpc::context::AttributeContext_Resource* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void AttributeContext::set_allocated_resource(::google::rpc::context::AttributeContext_Resource* resource) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::rpc::context::AttributeContext_Resource*>(_impl_.resource_); + delete resource_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::rpc::context::AttributeContext_Resource*>(value)->GetArena(); + if (resource) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(resource); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + resource = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, resource, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000010u; + } else { - _impl_._has_bits_[0] &= ~0x00000010u; + } - - _impl_.resource_ = reinterpret_cast<::google::rpc::context::AttributeContext_Resource*>(value); + resource_ = resource; // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.resource) } // .google.rpc.context.AttributeContext.Api api = 6 [json_name = "api"]; +inline bool AttributeContext::_internal_has_api() const { + return this != internal_default_instance() && api_ != nullptr; +} inline bool AttributeContext::has_api() const { - bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0; - PROTOBUF_ASSUME(!value || _impl_.api_ != nullptr); - return value; + return _internal_has_api(); } inline void AttributeContext::clear_api() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.api_ != nullptr) _impl_.api_->Clear(); - _impl_._has_bits_[0] &= ~0x00000020u; + if (GetArenaForAllocation() == nullptr && api_ != nullptr) { + delete api_; + } + api_ = nullptr; } inline const ::google::rpc::context::AttributeContext_Api& AttributeContext::_internal_api() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::rpc::context::AttributeContext_Api* p = _impl_.api_; - return p != nullptr ? *p : reinterpret_cast(::google::rpc::context::_AttributeContext_Api_default_instance_); + const ::google::rpc::context::AttributeContext_Api* p = api_; + return p != nullptr ? *p : reinterpret_cast( + ::google::rpc::context::_AttributeContext_Api_default_instance_); } -inline const ::google::rpc::context::AttributeContext_Api& AttributeContext::api() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::rpc::context::AttributeContext_Api& AttributeContext::api() const { // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.api) return _internal_api(); } -inline void AttributeContext::unsafe_arena_set_allocated_api(::google::rpc::context::AttributeContext_Api* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.api_); +inline void AttributeContext::unsafe_arena_set_allocated_api( + ::google::rpc::context::AttributeContext_Api* api) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(api_); } - _impl_.api_ = reinterpret_cast<::google::rpc::context::AttributeContext_Api*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000020u; + api_ = api; + if (api) { + } else { - _impl_._has_bits_[0] &= ~0x00000020u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.rpc.context.AttributeContext.api) } inline ::google::rpc::context::AttributeContext_Api* AttributeContext::release_api() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000020u; - ::google::rpc::context::AttributeContext_Api* released = _impl_.api_; - _impl_.api_ = nullptr; + + ::google::rpc::context::AttributeContext_Api* temp = api_; + api_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::rpc::context::AttributeContext_Api* AttributeContext::unsafe_arena_release_api() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.rpc.context.AttributeContext.api) - - _impl_._has_bits_[0] &= ~0x00000020u; - ::google::rpc::context::AttributeContext_Api* temp = _impl_.api_; - _impl_.api_ = nullptr; + + ::google::rpc::context::AttributeContext_Api* temp = api_; + api_ = nullptr; return temp; } inline ::google::rpc::context::AttributeContext_Api* AttributeContext::_internal_mutable_api() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000020u; - if (_impl_.api_ == nullptr) { - auto* p = CreateMaybeMessage<::google::rpc::context::AttributeContext_Api>(GetArena()); - _impl_.api_ = reinterpret_cast<::google::rpc::context::AttributeContext_Api*>(p); + + if (api_ == nullptr) { + auto* p = CreateMaybeMessage<::google::rpc::context::AttributeContext_Api>(GetArenaForAllocation()); + api_ = p; } - return _impl_.api_; + return api_; } -inline ::google::rpc::context::AttributeContext_Api* AttributeContext::mutable_api() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::rpc::context::AttributeContext_Api* AttributeContext::mutable_api() { ::google::rpc::context::AttributeContext_Api* _msg = _internal_mutable_api(); // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.api) return _msg; } -inline void AttributeContext::set_allocated_api(::google::rpc::context::AttributeContext_Api* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void AttributeContext::set_allocated_api(::google::rpc::context::AttributeContext_Api* api) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::rpc::context::AttributeContext_Api*>(_impl_.api_); + delete api_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::rpc::context::AttributeContext_Api*>(value)->GetArena(); + if (api) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(api); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + api = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, api, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000020u; + } else { - _impl_._has_bits_[0] &= ~0x00000020u; + } - - _impl_.api_ = reinterpret_cast<::google::rpc::context::AttributeContext_Api*>(value); + api_ = api; // @@protoc_insertion_point(field_set_allocated:google.rpc.context.AttributeContext.api) } // repeated .google.protobuf.Any extensions = 8 [json_name = "extensions"]; inline int AttributeContext::_internal_extensions_size() const { - return _internal_extensions().size(); + return extensions_.size(); } inline int AttributeContext::extensions_size() const { return _internal_extensions_size(); } -inline ::google::protobuf::Any* AttributeContext::mutable_extensions(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::Any* AttributeContext::mutable_extensions(int index) { // @@protoc_insertion_point(field_mutable:google.rpc.context.AttributeContext.extensions) - return _internal_mutable_extensions()->Mutable(index); + return extensions_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::google::protobuf::Any>* AttributeContext::mutable_extensions() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Any >* +AttributeContext::mutable_extensions() { // @@protoc_insertion_point(field_mutable_list:google.rpc.context.AttributeContext.extensions) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_extensions(); + return &extensions_; +} +inline const ::PROTOBUF_NAMESPACE_ID::Any& AttributeContext::_internal_extensions(int index) const { + return extensions_.Get(index); } -inline const ::google::protobuf::Any& AttributeContext::extensions(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Any& AttributeContext::extensions(int index) const { // @@protoc_insertion_point(field_get:google.rpc.context.AttributeContext.extensions) - return _internal_extensions().Get(index); + return _internal_extensions(index); } -inline ::google::protobuf::Any* AttributeContext::add_extensions() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::google::protobuf::Any* _add = _internal_mutable_extensions()->Add(); +inline ::PROTOBUF_NAMESPACE_ID::Any* AttributeContext::_internal_add_extensions() { + return extensions_.Add(); +} +inline ::PROTOBUF_NAMESPACE_ID::Any* AttributeContext::add_extensions() { + ::PROTOBUF_NAMESPACE_ID::Any* _add = _internal_add_extensions(); // @@protoc_insertion_point(field_add:google.rpc.context.AttributeContext.extensions) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::google::protobuf::Any>& AttributeContext::extensions() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Any >& +AttributeContext::extensions() const { // @@protoc_insertion_point(field_list:google.rpc.context.AttributeContext.extensions) - return _internal_extensions(); -} -inline const ::google::protobuf::RepeatedPtrField<::google::protobuf::Any>& -AttributeContext::_internal_extensions() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.extensions_; -} -inline ::google::protobuf::RepeatedPtrField<::google::protobuf::Any>* -AttributeContext::_internal_mutable_extensions() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.extensions_; + return extensions_; } #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) + } // namespace context } // namespace rpc } // namespace google - // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2frpc_2fcontext_2fattribute_5fcontext_2eproto diff --git a/src/viam/api/google/rpc/error_details.grpc.pb.cc b/src/viam/api/google/rpc/error_details.grpc.pb.cc index ac43b6b67..282e0b6c5 100644 --- a/src/viam/api/google/rpc/error_details.grpc.pb.cc +++ b/src/viam/api/google/rpc/error_details.grpc.pb.cc @@ -6,19 +6,19 @@ #include "google/rpc/error_details.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace google { namespace rpc { diff --git a/src/viam/api/google/rpc/error_details.grpc.pb.h b/src/viam/api/google/rpc/error_details.grpc.pb.h index f05ee0904..e11df3c57 100644 --- a/src/viam/api/google/rpc/error_details.grpc.pb.h +++ b/src/viam/api/google/rpc/error_details.grpc.pb.h @@ -22,23 +22,24 @@ #include "google/rpc/error_details.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace google { namespace rpc { diff --git a/src/viam/api/google/rpc/error_details.pb.cc b/src/viam/api/google/rpc/error_details.pb.cc index fe6d4a2bd..fa45279ff 100644 --- a/src/viam/api/google/rpc/error_details.pb.cc +++ b/src/viam/api/google/rpc/error_details.pb.cc @@ -4,887 +4,736 @@ #include "google/rpc/error_details.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace google { namespace rpc { - -inline constexpr ResourceInfo::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : resource_type_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - resource_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - owner_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - description_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR ResourceInfo::ResourceInfo(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ResourceInfoDefaultTypeInternal { - PROTOBUF_CONSTEXPR ResourceInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ResourceInfoDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR ErrorInfo_MetadataEntry_DoNotUse::ErrorInfo_MetadataEntry_DoNotUse( + ::_pbi::ConstantInitialized){} +struct ErrorInfo_MetadataEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ErrorInfo_MetadataEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ErrorInfo_MetadataEntry_DoNotUseDefaultTypeInternal() {} union { - ResourceInfo _instance; + ErrorInfo_MetadataEntry_DoNotUse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResourceInfoDefaultTypeInternal _ResourceInfo_default_instance_; - -inline constexpr RequestInfo::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : request_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - serving_data_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR RequestInfo::RequestInfo(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct RequestInfoDefaultTypeInternal { - PROTOBUF_CONSTEXPR RequestInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RequestInfoDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ErrorInfo_MetadataEntry_DoNotUseDefaultTypeInternal _ErrorInfo_MetadataEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR ErrorInfo::ErrorInfo( + ::_pbi::ConstantInitialized) + : metadata_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + , reason_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , domain_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct ErrorInfoDefaultTypeInternal { + PROTOBUF_CONSTEXPR ErrorInfoDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ErrorInfoDefaultTypeInternal() {} union { - RequestInfo _instance; + ErrorInfo _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RequestInfoDefaultTypeInternal _RequestInfo_default_instance_; - -inline constexpr QuotaFailure_Violation::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : subject_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - description_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR QuotaFailure_Violation::QuotaFailure_Violation(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct QuotaFailure_ViolationDefaultTypeInternal { - PROTOBUF_CONSTEXPR QuotaFailure_ViolationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~QuotaFailure_ViolationDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ErrorInfoDefaultTypeInternal _ErrorInfo_default_instance_; +PROTOBUF_CONSTEXPR RetryInfo::RetryInfo( + ::_pbi::ConstantInitialized) + : retry_delay_(nullptr){} +struct RetryInfoDefaultTypeInternal { + PROTOBUF_CONSTEXPR RetryInfoDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RetryInfoDefaultTypeInternal() {} union { - QuotaFailure_Violation _instance; + RetryInfo _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 QuotaFailure_ViolationDefaultTypeInternal _QuotaFailure_Violation_default_instance_; - -inline constexpr PreconditionFailure_Violation::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : type_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - subject_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - description_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR PreconditionFailure_Violation::PreconditionFailure_Violation(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct PreconditionFailure_ViolationDefaultTypeInternal { - PROTOBUF_CONSTEXPR PreconditionFailure_ViolationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~PreconditionFailure_ViolationDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RetryInfoDefaultTypeInternal _RetryInfo_default_instance_; +PROTOBUF_CONSTEXPR DebugInfo::DebugInfo( + ::_pbi::ConstantInitialized) + : stack_entries_() + , detail_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct DebugInfoDefaultTypeInternal { + PROTOBUF_CONSTEXPR DebugInfoDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DebugInfoDefaultTypeInternal() {} union { - PreconditionFailure_Violation _instance; + DebugInfo _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PreconditionFailure_ViolationDefaultTypeInternal _PreconditionFailure_Violation_default_instance_; - -inline constexpr LocalizedMessage::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : locale_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - message_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR LocalizedMessage::LocalizedMessage(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct LocalizedMessageDefaultTypeInternal { - PROTOBUF_CONSTEXPR LocalizedMessageDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~LocalizedMessageDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DebugInfoDefaultTypeInternal _DebugInfo_default_instance_; +PROTOBUF_CONSTEXPR QuotaFailure_Violation::QuotaFailure_Violation( + ::_pbi::ConstantInitialized) + : subject_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , description_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct QuotaFailure_ViolationDefaultTypeInternal { + PROTOBUF_CONSTEXPR QuotaFailure_ViolationDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~QuotaFailure_ViolationDefaultTypeInternal() {} union { - LocalizedMessage _instance; + QuotaFailure_Violation _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LocalizedMessageDefaultTypeInternal _LocalizedMessage_default_instance_; - -inline constexpr Help_Link::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : description_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - url_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR Help_Link::Help_Link(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct Help_LinkDefaultTypeInternal { - PROTOBUF_CONSTEXPR Help_LinkDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~Help_LinkDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 QuotaFailure_ViolationDefaultTypeInternal _QuotaFailure_Violation_default_instance_; +PROTOBUF_CONSTEXPR QuotaFailure::QuotaFailure( + ::_pbi::ConstantInitialized) + : violations_(){} +struct QuotaFailureDefaultTypeInternal { + PROTOBUF_CONSTEXPR QuotaFailureDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~QuotaFailureDefaultTypeInternal() {} union { - Help_Link _instance; + QuotaFailure _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Help_LinkDefaultTypeInternal _Help_Link_default_instance_; - template -PROTOBUF_CONSTEXPR ErrorInfo_MetadataEntry_DoNotUse::ErrorInfo_MetadataEntry_DoNotUse(::_pbi::ConstantInitialized) {} -struct ErrorInfo_MetadataEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ErrorInfo_MetadataEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ErrorInfo_MetadataEntry_DoNotUseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 QuotaFailureDefaultTypeInternal _QuotaFailure_default_instance_; +PROTOBUF_CONSTEXPR PreconditionFailure_Violation::PreconditionFailure_Violation( + ::_pbi::ConstantInitialized) + : type_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , subject_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , description_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct PreconditionFailure_ViolationDefaultTypeInternal { + PROTOBUF_CONSTEXPR PreconditionFailure_ViolationDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~PreconditionFailure_ViolationDefaultTypeInternal() {} union { - ErrorInfo_MetadataEntry_DoNotUse _instance; + PreconditionFailure_Violation _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ErrorInfo_MetadataEntry_DoNotUseDefaultTypeInternal _ErrorInfo_MetadataEntry_DoNotUse_default_instance_; - -inline constexpr DebugInfo::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : stack_entries_{}, - detail_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR DebugInfo::DebugInfo(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct DebugInfoDefaultTypeInternal { - PROTOBUF_CONSTEXPR DebugInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~DebugInfoDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PreconditionFailure_ViolationDefaultTypeInternal _PreconditionFailure_Violation_default_instance_; +PROTOBUF_CONSTEXPR PreconditionFailure::PreconditionFailure( + ::_pbi::ConstantInitialized) + : violations_(){} +struct PreconditionFailureDefaultTypeInternal { + PROTOBUF_CONSTEXPR PreconditionFailureDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~PreconditionFailureDefaultTypeInternal() {} union { - DebugInfo _instance; + PreconditionFailure _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DebugInfoDefaultTypeInternal _DebugInfo_default_instance_; - -inline constexpr BadRequest_FieldViolation::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : field_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - description_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR BadRequest_FieldViolation::BadRequest_FieldViolation(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PreconditionFailureDefaultTypeInternal _PreconditionFailure_default_instance_; +PROTOBUF_CONSTEXPR BadRequest_FieldViolation::BadRequest_FieldViolation( + ::_pbi::ConstantInitialized) + : field_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , description_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , reason_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , localized_message_(nullptr){} struct BadRequest_FieldViolationDefaultTypeInternal { - PROTOBUF_CONSTEXPR BadRequest_FieldViolationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR BadRequest_FieldViolationDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~BadRequest_FieldViolationDefaultTypeInternal() {} union { BadRequest_FieldViolation _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BadRequest_FieldViolationDefaultTypeInternal _BadRequest_FieldViolation_default_instance_; - -inline constexpr RetryInfo::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - retry_delay_{nullptr} {} - -template -PROTOBUF_CONSTEXPR RetryInfo::RetryInfo(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct RetryInfoDefaultTypeInternal { - PROTOBUF_CONSTEXPR RetryInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RetryInfoDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BadRequest_FieldViolationDefaultTypeInternal _BadRequest_FieldViolation_default_instance_; +PROTOBUF_CONSTEXPR BadRequest::BadRequest( + ::_pbi::ConstantInitialized) + : field_violations_(){} +struct BadRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR BadRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~BadRequestDefaultTypeInternal() {} union { - RetryInfo _instance; + BadRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RetryInfoDefaultTypeInternal _RetryInfo_default_instance_; - -inline constexpr QuotaFailure::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : violations_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR QuotaFailure::QuotaFailure(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct QuotaFailureDefaultTypeInternal { - PROTOBUF_CONSTEXPR QuotaFailureDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~QuotaFailureDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BadRequestDefaultTypeInternal _BadRequest_default_instance_; +PROTOBUF_CONSTEXPR RequestInfo::RequestInfo( + ::_pbi::ConstantInitialized) + : request_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , serving_data_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct RequestInfoDefaultTypeInternal { + PROTOBUF_CONSTEXPR RequestInfoDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RequestInfoDefaultTypeInternal() {} union { - QuotaFailure _instance; + RequestInfo _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 QuotaFailureDefaultTypeInternal _QuotaFailure_default_instance_; - -inline constexpr PreconditionFailure::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : violations_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR PreconditionFailure::PreconditionFailure(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct PreconditionFailureDefaultTypeInternal { - PROTOBUF_CONSTEXPR PreconditionFailureDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~PreconditionFailureDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RequestInfoDefaultTypeInternal _RequestInfo_default_instance_; +PROTOBUF_CONSTEXPR ResourceInfo::ResourceInfo( + ::_pbi::ConstantInitialized) + : resource_type_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , resource_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , owner_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , description_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct ResourceInfoDefaultTypeInternal { + PROTOBUF_CONSTEXPR ResourceInfoDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ResourceInfoDefaultTypeInternal() {} union { - PreconditionFailure _instance; + ResourceInfo _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PreconditionFailureDefaultTypeInternal _PreconditionFailure_default_instance_; - -inline constexpr Help::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : links_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR Help::Help(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct HelpDefaultTypeInternal { - PROTOBUF_CONSTEXPR HelpDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~HelpDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResourceInfoDefaultTypeInternal _ResourceInfo_default_instance_; +PROTOBUF_CONSTEXPR Help_Link::Help_Link( + ::_pbi::ConstantInitialized) + : description_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , url_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct Help_LinkDefaultTypeInternal { + PROTOBUF_CONSTEXPR Help_LinkDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Help_LinkDefaultTypeInternal() {} union { - Help _instance; + Help_Link _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HelpDefaultTypeInternal _Help_default_instance_; - -inline constexpr ErrorInfo::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : metadata_{}, - reason_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - domain_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR ErrorInfo::ErrorInfo(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ErrorInfoDefaultTypeInternal { - PROTOBUF_CONSTEXPR ErrorInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ErrorInfoDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Help_LinkDefaultTypeInternal _Help_Link_default_instance_; +PROTOBUF_CONSTEXPR Help::Help( + ::_pbi::ConstantInitialized) + : links_(){} +struct HelpDefaultTypeInternal { + PROTOBUF_CONSTEXPR HelpDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~HelpDefaultTypeInternal() {} union { - ErrorInfo _instance; + Help _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ErrorInfoDefaultTypeInternal _ErrorInfo_default_instance_; - -inline constexpr BadRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : field_violations_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR BadRequest::BadRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct BadRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR BadRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~BadRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HelpDefaultTypeInternal _Help_default_instance_; +PROTOBUF_CONSTEXPR LocalizedMessage::LocalizedMessage( + ::_pbi::ConstantInitialized) + : locale_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , message_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct LocalizedMessageDefaultTypeInternal { + PROTOBUF_CONSTEXPR LocalizedMessageDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~LocalizedMessageDefaultTypeInternal() {} union { - BadRequest _instance; + LocalizedMessage _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BadRequestDefaultTypeInternal _BadRequest_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LocalizedMessageDefaultTypeInternal _LocalizedMessage_default_instance_; } // namespace rpc } // namespace google static ::_pb::Metadata file_level_metadata_google_2frpc_2ferror_5fdetails_2eproto[15]; -static constexpr const ::_pb::EnumDescriptor** - file_level_enum_descriptors_google_2frpc_2ferror_5fdetails_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_google_2frpc_2ferror_5fdetails_2eproto = nullptr; -const ::uint32_t TableStruct_google_2frpc_2ferror_5fdetails_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::google::rpc::ErrorInfo_MetadataEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::google::rpc::ErrorInfo_MetadataEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::rpc::ErrorInfo_MetadataEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::google::rpc::ErrorInfo_MetadataEntry_DoNotUse, value_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::rpc::ErrorInfo, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::rpc::ErrorInfo, _impl_.reason_), - PROTOBUF_FIELD_OFFSET(::google::rpc::ErrorInfo, _impl_.domain_), - PROTOBUF_FIELD_OFFSET(::google::rpc::ErrorInfo, _impl_.metadata_), - PROTOBUF_FIELD_OFFSET(::google::rpc::RetryInfo, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::google::rpc::RetryInfo, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::rpc::RetryInfo, _impl_.retry_delay_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::rpc::DebugInfo, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::rpc::DebugInfo, _impl_.stack_entries_), - PROTOBUF_FIELD_OFFSET(::google::rpc::DebugInfo, _impl_.detail_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::rpc::QuotaFailure_Violation, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::rpc::QuotaFailure_Violation, _impl_.subject_), - PROTOBUF_FIELD_OFFSET(::google::rpc::QuotaFailure_Violation, _impl_.description_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::rpc::QuotaFailure, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::rpc::QuotaFailure, _impl_.violations_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::rpc::PreconditionFailure_Violation, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::rpc::PreconditionFailure_Violation, _impl_.type_), - PROTOBUF_FIELD_OFFSET(::google::rpc::PreconditionFailure_Violation, _impl_.subject_), - PROTOBUF_FIELD_OFFSET(::google::rpc::PreconditionFailure_Violation, _impl_.description_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::rpc::PreconditionFailure, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::rpc::PreconditionFailure, _impl_.violations_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::rpc::BadRequest_FieldViolation, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::rpc::BadRequest_FieldViolation, _impl_.field_), - PROTOBUF_FIELD_OFFSET(::google::rpc::BadRequest_FieldViolation, _impl_.description_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::rpc::BadRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::rpc::BadRequest, _impl_.field_violations_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::rpc::RequestInfo, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::rpc::RequestInfo, _impl_.request_id_), - PROTOBUF_FIELD_OFFSET(::google::rpc::RequestInfo, _impl_.serving_data_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::rpc::ResourceInfo, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::rpc::ResourceInfo, _impl_.resource_type_), - PROTOBUF_FIELD_OFFSET(::google::rpc::ResourceInfo, _impl_.resource_name_), - PROTOBUF_FIELD_OFFSET(::google::rpc::ResourceInfo, _impl_.owner_), - PROTOBUF_FIELD_OFFSET(::google::rpc::ResourceInfo, _impl_.description_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::rpc::Help_Link, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::rpc::Help_Link, _impl_.description_), - PROTOBUF_FIELD_OFFSET(::google::rpc::Help_Link, _impl_.url_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::rpc::Help, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::rpc::Help, _impl_.links_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::rpc::LocalizedMessage, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::rpc::LocalizedMessage, _impl_.locale_), - PROTOBUF_FIELD_OFFSET(::google::rpc::LocalizedMessage, _impl_.message_), +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_google_2frpc_2ferror_5fdetails_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_google_2frpc_2ferror_5fdetails_2eproto = nullptr; + +const uint32_t TableStruct_google_2frpc_2ferror_5fdetails_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + PROTOBUF_FIELD_OFFSET(::google::rpc::ErrorInfo_MetadataEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::google::rpc::ErrorInfo_MetadataEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::rpc::ErrorInfo_MetadataEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::google::rpc::ErrorInfo_MetadataEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::rpc::ErrorInfo, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::rpc::ErrorInfo, reason_), + PROTOBUF_FIELD_OFFSET(::google::rpc::ErrorInfo, domain_), + PROTOBUF_FIELD_OFFSET(::google::rpc::ErrorInfo, metadata_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::rpc::RetryInfo, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::rpc::RetryInfo, retry_delay_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::rpc::DebugInfo, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::rpc::DebugInfo, stack_entries_), + PROTOBUF_FIELD_OFFSET(::google::rpc::DebugInfo, detail_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::rpc::QuotaFailure_Violation, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::rpc::QuotaFailure_Violation, subject_), + PROTOBUF_FIELD_OFFSET(::google::rpc::QuotaFailure_Violation, description_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::rpc::QuotaFailure, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::rpc::QuotaFailure, violations_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::rpc::PreconditionFailure_Violation, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::rpc::PreconditionFailure_Violation, type_), + PROTOBUF_FIELD_OFFSET(::google::rpc::PreconditionFailure_Violation, subject_), + PROTOBUF_FIELD_OFFSET(::google::rpc::PreconditionFailure_Violation, description_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::rpc::PreconditionFailure, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::rpc::PreconditionFailure, violations_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::rpc::BadRequest_FieldViolation, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::rpc::BadRequest_FieldViolation, field_), + PROTOBUF_FIELD_OFFSET(::google::rpc::BadRequest_FieldViolation, description_), + PROTOBUF_FIELD_OFFSET(::google::rpc::BadRequest_FieldViolation, reason_), + PROTOBUF_FIELD_OFFSET(::google::rpc::BadRequest_FieldViolation, localized_message_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::rpc::BadRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::rpc::BadRequest, field_violations_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::rpc::RequestInfo, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::rpc::RequestInfo, request_id_), + PROTOBUF_FIELD_OFFSET(::google::rpc::RequestInfo, serving_data_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::rpc::ResourceInfo, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::rpc::ResourceInfo, resource_type_), + PROTOBUF_FIELD_OFFSET(::google::rpc::ResourceInfo, resource_name_), + PROTOBUF_FIELD_OFFSET(::google::rpc::ResourceInfo, owner_), + PROTOBUF_FIELD_OFFSET(::google::rpc::ResourceInfo, description_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::rpc::Help_Link, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::rpc::Help_Link, description_), + PROTOBUF_FIELD_OFFSET(::google::rpc::Help_Link, url_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::rpc::Help, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::rpc::Help, links_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::rpc::LocalizedMessage, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::rpc::LocalizedMessage, locale_), + PROTOBUF_FIELD_OFFSET(::google::rpc::LocalizedMessage, message_), }; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, 10, -1, sizeof(::google::rpc::ErrorInfo_MetadataEntry_DoNotUse)}, - {12, -1, -1, sizeof(::google::rpc::ErrorInfo)}, - {23, 32, -1, sizeof(::google::rpc::RetryInfo)}, - {33, -1, -1, sizeof(::google::rpc::DebugInfo)}, - {43, -1, -1, sizeof(::google::rpc::QuotaFailure_Violation)}, - {53, -1, -1, sizeof(::google::rpc::QuotaFailure)}, - {62, -1, -1, sizeof(::google::rpc::PreconditionFailure_Violation)}, - {73, -1, -1, sizeof(::google::rpc::PreconditionFailure)}, - {82, -1, -1, sizeof(::google::rpc::BadRequest_FieldViolation)}, - {92, -1, -1, sizeof(::google::rpc::BadRequest)}, - {101, -1, -1, sizeof(::google::rpc::RequestInfo)}, - {111, -1, -1, sizeof(::google::rpc::ResourceInfo)}, - {123, -1, -1, sizeof(::google::rpc::Help_Link)}, - {133, -1, -1, sizeof(::google::rpc::Help)}, - {142, -1, -1, sizeof(::google::rpc::LocalizedMessage)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, 8, -1, sizeof(::google::rpc::ErrorInfo_MetadataEntry_DoNotUse)}, + { 10, -1, -1, sizeof(::google::rpc::ErrorInfo)}, + { 19, -1, -1, sizeof(::google::rpc::RetryInfo)}, + { 26, -1, -1, sizeof(::google::rpc::DebugInfo)}, + { 34, -1, -1, sizeof(::google::rpc::QuotaFailure_Violation)}, + { 42, -1, -1, sizeof(::google::rpc::QuotaFailure)}, + { 49, -1, -1, sizeof(::google::rpc::PreconditionFailure_Violation)}, + { 58, -1, -1, sizeof(::google::rpc::PreconditionFailure)}, + { 65, -1, -1, sizeof(::google::rpc::BadRequest_FieldViolation)}, + { 75, -1, -1, sizeof(::google::rpc::BadRequest)}, + { 82, -1, -1, sizeof(::google::rpc::RequestInfo)}, + { 90, -1, -1, sizeof(::google::rpc::ResourceInfo)}, + { 100, -1, -1, sizeof(::google::rpc::Help_Link)}, + { 108, -1, -1, sizeof(::google::rpc::Help)}, + { 115, -1, -1, sizeof(::google::rpc::LocalizedMessage)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::google::rpc::_ErrorInfo_MetadataEntry_DoNotUse_default_instance_._instance, - &::google::rpc::_ErrorInfo_default_instance_._instance, - &::google::rpc::_RetryInfo_default_instance_._instance, - &::google::rpc::_DebugInfo_default_instance_._instance, - &::google::rpc::_QuotaFailure_Violation_default_instance_._instance, - &::google::rpc::_QuotaFailure_default_instance_._instance, - &::google::rpc::_PreconditionFailure_Violation_default_instance_._instance, - &::google::rpc::_PreconditionFailure_default_instance_._instance, - &::google::rpc::_BadRequest_FieldViolation_default_instance_._instance, - &::google::rpc::_BadRequest_default_instance_._instance, - &::google::rpc::_RequestInfo_default_instance_._instance, - &::google::rpc::_ResourceInfo_default_instance_._instance, - &::google::rpc::_Help_Link_default_instance_._instance, - &::google::rpc::_Help_default_instance_._instance, - &::google::rpc::_LocalizedMessage_default_instance_._instance, -}; -const char descriptor_table_protodef_google_2frpc_2ferror_5fdetails_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n\036google/rpc/error_details.proto\022\ngoogle" - ".rpc\032\036google/protobuf/duration.proto\"\271\001\n" - "\tErrorInfo\022\026\n\006reason\030\001 \001(\tR\006reason\022\026\n\006do" - "main\030\002 \001(\tR\006domain\022\?\n\010metadata\030\003 \003(\0132#.g" - "oogle.rpc.ErrorInfo.MetadataEntryR\010metad" - "ata\032;\n\rMetadataEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024" - "\n\005value\030\002 \001(\tR\005value:\0028\001\"G\n\tRetryInfo\022:\n" - "\013retry_delay\030\001 \001(\0132\031.google.protobuf.Dur" - "ationR\nretryDelay\"H\n\tDebugInfo\022#\n\rstack_" - "entries\030\001 \003(\tR\014stackEntries\022\026\n\006detail\030\002 " - "\001(\tR\006detail\"\233\001\n\014QuotaFailure\022B\n\nviolatio" - "ns\030\001 \003(\0132\".google.rpc.QuotaFailure.Viola" - "tionR\nviolations\032G\n\tViolation\022\030\n\007subject" - "\030\001 \001(\tR\007subject\022 \n\013description\030\002 \001(\tR\013de" - "scription\"\275\001\n\023PreconditionFailure\022I\n\nvio" - "lations\030\001 \003(\0132).google.rpc.PreconditionF" - "ailure.ViolationR\nviolations\032[\n\tViolatio" - "n\022\022\n\004type\030\001 \001(\tR\004type\022\030\n\007subject\030\002 \001(\tR\007" - "subject\022 \n\013description\030\003 \001(\tR\013descriptio" - "n\"\250\001\n\nBadRequest\022P\n\020field_violations\030\001 \003" - "(\0132%.google.rpc.BadRequest.FieldViolatio" - "nR\017fieldViolations\032H\n\016FieldViolation\022\024\n\005" - "field\030\001 \001(\tR\005field\022 \n\013description\030\002 \001(\tR" - "\013description\"O\n\013RequestInfo\022\035\n\nrequest_i" - "d\030\001 \001(\tR\trequestId\022!\n\014serving_data\030\002 \001(\t" - "R\013servingData\"\220\001\n\014ResourceInfo\022#\n\rresour" - "ce_type\030\001 \001(\tR\014resourceType\022#\n\rresource_" - "name\030\002 \001(\tR\014resourceName\022\024\n\005owner\030\003 \001(\tR" - "\005owner\022 \n\013description\030\004 \001(\tR\013description" - "\"o\n\004Help\022+\n\005links\030\001 \003(\0132\025.google.rpc.Hel" - "p.LinkR\005links\032:\n\004Link\022 \n\013description\030\001 \001" - "(\tR\013description\022\020\n\003url\030\002 \001(\tR\003url\"D\n\020Loc" - "alizedMessage\022\026\n\006locale\030\001 \001(\tR\006locale\022\030\n" - "\007message\030\002 \001(\tR\007messageB\255\001\n\016com.google.r" - "pcB\021ErrorDetailsProtoP\001Z\?google.golang.o" - "rg/genproto/googleapis/rpc/errdetails;er" - "rdetails\242\002\003GRX\252\002\nGoogle.Rpc\312\002\nGoogle\\Rpc" - "\342\002\026Google\\Rpc\\GPBMetadata\352\002\013Google::Rpcb" - "\006proto3" + &::google::rpc::_ErrorInfo_MetadataEntry_DoNotUse_default_instance_._instance, + &::google::rpc::_ErrorInfo_default_instance_._instance, + &::google::rpc::_RetryInfo_default_instance_._instance, + &::google::rpc::_DebugInfo_default_instance_._instance, + &::google::rpc::_QuotaFailure_Violation_default_instance_._instance, + &::google::rpc::_QuotaFailure_default_instance_._instance, + &::google::rpc::_PreconditionFailure_Violation_default_instance_._instance, + &::google::rpc::_PreconditionFailure_default_instance_._instance, + &::google::rpc::_BadRequest_FieldViolation_default_instance_._instance, + &::google::rpc::_BadRequest_default_instance_._instance, + &::google::rpc::_RequestInfo_default_instance_._instance, + &::google::rpc::_ResourceInfo_default_instance_._instance, + &::google::rpc::_Help_Link_default_instance_._instance, + &::google::rpc::_Help_default_instance_._instance, + &::google::rpc::_LocalizedMessage_default_instance_._instance, }; -static const ::_pbi::DescriptorTable* const descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_deps[1] = - { - &::descriptor_table_google_2fprotobuf_2fduration_2eproto, + +const char descriptor_table_protodef_google_2frpc_2ferror_5fdetails_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\036google/rpc/error_details.proto\022\ngoogle" + ".rpc\032\036google/protobuf/duration.proto\"\271\001\n" + "\tErrorInfo\022\026\n\006reason\030\001 \001(\tR\006reason\022\026\n\006do" + "main\030\002 \001(\tR\006domain\022\?\n\010metadata\030\003 \003(\0132#.g" + "oogle.rpc.ErrorInfo.MetadataEntryR\010metad" + "ata\032;\n\rMetadataEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024" + "\n\005value\030\002 \001(\tR\005value:\0028\001\"G\n\tRetryInfo\022:\n" + "\013retry_delay\030\001 \001(\0132\031.google.protobuf.Dur" + "ationR\nretryDelay\"H\n\tDebugInfo\022#\n\rstack_" + "entries\030\001 \003(\tR\014stackEntries\022\026\n\006detail\030\002 " + "\001(\tR\006detail\"\233\001\n\014QuotaFailure\022B\n\nviolatio" + "ns\030\001 \003(\0132\".google.rpc.QuotaFailure.Viola" + "tionR\nviolations\032G\n\tViolation\022\030\n\007subject" + "\030\001 \001(\tR\007subject\022 \n\013description\030\002 \001(\tR\013de" + "scription\"\275\001\n\023PreconditionFailure\022I\n\nvio" + "lations\030\001 \003(\0132).google.rpc.PreconditionF" + "ailure.ViolationR\nviolations\032[\n\tViolatio" + "n\022\022\n\004type\030\001 \001(\tR\004type\022\030\n\007subject\030\002 \001(\tR\007" + "subject\022 \n\013description\030\003 \001(\tR\013descriptio" + "n\"\214\002\n\nBadRequest\022P\n\020field_violations\030\001 \003" + "(\0132%.google.rpc.BadRequest.FieldViolatio" + "nR\017fieldViolations\032\253\001\n\016FieldViolation\022\024\n" + "\005field\030\001 \001(\tR\005field\022 \n\013description\030\002 \001(\t" + "R\013description\022\026\n\006reason\030\003 \001(\tR\006reason\022I\n" + "\021localized_message\030\004 \001(\0132\034.google.rpc.Lo" + "calizedMessageR\020localizedMessage\"O\n\013Requ" + "estInfo\022\035\n\nrequest_id\030\001 \001(\tR\trequestId\022!" + "\n\014serving_data\030\002 \001(\tR\013servingData\"\220\001\n\014Re" + "sourceInfo\022#\n\rresource_type\030\001 \001(\tR\014resou" + "rceType\022#\n\rresource_name\030\002 \001(\tR\014resource" + "Name\022\024\n\005owner\030\003 \001(\tR\005owner\022 \n\013descriptio" + "n\030\004 \001(\tR\013description\"o\n\004Help\022+\n\005links\030\001 " + "\003(\0132\025.google.rpc.Help.LinkR\005links\032:\n\004Lin" + "k\022 \n\013description\030\001 \001(\tR\013description\022\020\n\003u" + "rl\030\002 \001(\tR\003url\"D\n\020LocalizedMessage\022\026\n\006loc" + "ale\030\001 \001(\tR\006locale\022\030\n\007message\030\002 \001(\tR\007mess" + "ageBl\n\016com.google.rpcB\021ErrorDetailsProto" + "P\001Z\?google.golang.org/genproto/googleapi" + "s/rpc/errdetails;errdetails\242\002\003RPCb\006proto" + "3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_deps[1] = { + &::descriptor_table_google_2fprotobuf_2fduration_2eproto, }; -static ::absl::once_flag descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_once; +static ::_pbi::once_flag descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_google_2frpc_2ferror_5fdetails_2eproto = { - false, - false, - 1527, - descriptor_table_protodef_google_2frpc_2ferror_5fdetails_2eproto, + false, false, 1561, descriptor_table_protodef_google_2frpc_2ferror_5fdetails_2eproto, "google/rpc/error_details.proto", - &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_once, - descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_deps, - 1, - 15, - schemas, - file_default_instances, - TableStruct_google_2frpc_2ferror_5fdetails_2eproto::offsets, - file_level_metadata_google_2frpc_2ferror_5fdetails_2eproto, - file_level_enum_descriptors_google_2frpc_2ferror_5fdetails_2eproto, + &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_once, descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_deps, 1, 15, + schemas, file_default_instances, TableStruct_google_2frpc_2ferror_5fdetails_2eproto::offsets, + file_level_metadata_google_2frpc_2ferror_5fdetails_2eproto, file_level_enum_descriptors_google_2frpc_2ferror_5fdetails_2eproto, file_level_service_descriptors_google_2frpc_2ferror_5fdetails_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_getter() { return &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2frpc_2ferror_5fdetails_2eproto(&descriptor_table_google_2frpc_2ferror_5fdetails_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2frpc_2ferror_5fdetails_2eproto(&descriptor_table_google_2frpc_2ferror_5fdetails_2eproto); namespace google { namespace rpc { + // =================================================================== ErrorInfo_MetadataEntry_DoNotUse::ErrorInfo_MetadataEntry_DoNotUse() {} -ErrorInfo_MetadataEntry_DoNotUse::ErrorInfo_MetadataEntry_DoNotUse(::google::protobuf::Arena* arena) +ErrorInfo_MetadataEntry_DoNotUse::ErrorInfo_MetadataEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) : SuperType(arena) {} -::google::protobuf::Metadata ErrorInfo_MetadataEntry_DoNotUse::GetMetadata() const { +void ErrorInfo_MetadataEntry_DoNotUse::MergeFrom(const ErrorInfo_MetadataEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata ErrorInfo_MetadataEntry_DoNotUse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_getter, &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_once, file_level_metadata_google_2frpc_2ferror_5fdetails_2eproto[0]); } + // =================================================================== class ErrorInfo::_Internal { public: }; -ErrorInfo::ErrorInfo(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ErrorInfo::ErrorInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + metadata_(arena) { + SharedCtor(); + if (arena != nullptr && !is_message_owned) { + arena->OwnCustomDestructor(this, &ErrorInfo::ArenaDtor); + } // @@protoc_insertion_point(arena_constructor:google.rpc.ErrorInfo) } -inline PROTOBUF_NDEBUG_INLINE ErrorInfo::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : metadata_{visibility, arena, from.metadata_}, - reason_(arena, from.reason_), - domain_(arena, from.domain_), - _cached_size_{0} {} - -ErrorInfo::ErrorInfo( - ::google::protobuf::Arena* arena, - const ErrorInfo& from) - : ::google::protobuf::Message(arena) { - ErrorInfo* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +ErrorInfo::ErrorInfo(const ErrorInfo& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + metadata_.MergeFrom(from.metadata_); + reason_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + reason_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_reason().empty()) { + reason_.Set(from._internal_reason(), + GetArenaForAllocation()); + } + domain_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + domain_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_domain().empty()) { + domain_.Set(from._internal_domain(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:google.rpc.ErrorInfo) } -inline PROTOBUF_NDEBUG_INLINE ErrorInfo::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : metadata_{visibility, arena}, - reason_(arena), - domain_(arena), - _cached_size_{0} {} -inline void ErrorInfo::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void ErrorInfo::SharedCtor() { +reason_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + reason_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +domain_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + domain_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + ErrorInfo::~ErrorInfo() { // @@protoc_insertion_point(destructor:google.rpc.ErrorInfo) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + ArenaDtor(this); + return; + } SharedDtor(); } + inline void ErrorInfo::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.reason_.Destroy(); - _impl_.domain_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + metadata_.Destruct(); + reason_.Destroy(); + domain_.Destroy(); } -PROTOBUF_NOINLINE void ErrorInfo::Clear() { +void ErrorInfo::ArenaDtor(void* object) { + ErrorInfo* _this = reinterpret_cast< ErrorInfo* >(object); + _this->metadata_.Destruct(); +} +void ErrorInfo::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ErrorInfo::Clear() { // @@protoc_insertion_point(message_clear_start:google.rpc.ErrorInfo) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.metadata_.Clear(); - _impl_.reason_.ClearToEmpty(); - _impl_.domain_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ErrorInfo::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + metadata_.Clear(); + reason_.ClearToEmpty(); + domain_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ErrorInfo::_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 reason = 1 [json_name = "reason"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_reason(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.ErrorInfo.reason")); + } else + goto handle_unusual; + continue; + // string domain = 2 [json_name = "domain"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_domain(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.ErrorInfo.domain")); + } else + goto handle_unusual; + continue; + // map metadata = 3 [json_name = "metadata"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&metadata_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 3, 1, 49, 2> ErrorInfo::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ErrorInfo_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string domain = 2 [json_name = "domain"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(ErrorInfo, _impl_.domain_)}}, - // string reason = 1 [json_name = "reason"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ErrorInfo, _impl_.reason_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string reason = 1 [json_name = "reason"]; - {PROTOBUF_FIELD_OFFSET(ErrorInfo, _impl_.reason_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string domain = 2 [json_name = "domain"]; - {PROTOBUF_FIELD_OFFSET(ErrorInfo, _impl_.domain_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // map metadata = 3 [json_name = "metadata"]; - {PROTOBUF_FIELD_OFFSET(ErrorInfo, _impl_.metadata_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, - }}, {{ - {::_pbi::TcParser::GetMapAuxInfo< - decltype(ErrorInfo()._impl_.metadata_)>( - 1, 0, 0, 9, - 9)}, - }}, {{ - "\24\6\6\10\0\0\0\0" - "google.rpc.ErrorInfo" - "reason" - "domain" - "metadata" - }}, -}; - -::uint8_t* ErrorInfo::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ErrorInfo::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.rpc.ErrorInfo) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string reason = 1 [json_name = "reason"]; if (!this->_internal_reason().empty()) { - const std::string& _s = this->_internal_reason(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.ErrorInfo.reason"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_reason().data(), static_cast(this->_internal_reason().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.ErrorInfo.reason"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_reason(), target); } // string domain = 2 [json_name = "domain"]; if (!this->_internal_domain().empty()) { - const std::string& _s = this->_internal_domain(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.ErrorInfo.domain"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_domain().data(), static_cast(this->_internal_domain().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.ErrorInfo.domain"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_domain(), target); } // map metadata = 3 [json_name = "metadata"]; - if (!_internal_metadata().empty()) { - using MapType = ::google::protobuf::Map; - using WireHelper = _pbi::MapEntryFuncs; - const auto& field = _internal_metadata(); - - if (stream->IsSerializationDeterministic() && field.size() > 1) { - for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { - target = WireHelper::InternalSerialize( - 3, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.ErrorInfo.metadata"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.second.data(), static_cast(entry.second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.ErrorInfo.metadata"); + if (!this->_internal_metadata().empty()) { + using MapType = ::_pb::Map; + using WireHelper = ErrorInfo_MetadataEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_metadata(); + 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, + "google.rpc.ErrorInfo.MetadataEntry.key"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + entry.second.data(), static_cast(entry.second.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.ErrorInfo.MetadataEntry.value"); + }; + + if (stream->IsSerializationDeterministic() && map_field.size() > 1) { + for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { + target = WireHelper::InternalSerialize(3, entry.first, entry.second, target, stream); + check_utf8(entry); } } else { - for (const auto& entry : field) { - target = WireHelper::InternalSerialize( - 3, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.ErrorInfo.metadata"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.second.data(), static_cast(entry.second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.ErrorInfo.metadata"); + for (const auto& entry : map_field) { + target = WireHelper::InternalSerialize(3, 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.rpc.ErrorInfo) return target; } -::size_t ErrorInfo::ByteSizeLong() const { +size_t ErrorInfo::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.rpc.ErrorInfo) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // map metadata = 3 [json_name = "metadata"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_metadata_size()); - for (const auto& entry : _internal_metadata()) { - total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_metadata_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator + it = this->_internal_metadata().begin(); + it != this->_internal_metadata().end(); ++it) { + total_size += ErrorInfo_MetadataEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); } + // string reason = 1 [json_name = "reason"]; if (!this->_internal_reason().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_reason()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_reason()); } // string domain = 2 [json_name = "domain"]; if (!this->_internal_domain().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_domain()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_domain()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ErrorInfo::_class_data_ = { - ErrorInfo::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ErrorInfo::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ErrorInfo::MergeImpl }; -const ::google::protobuf::Message::ClassData* ErrorInfo::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ErrorInfo::GetClassData() const { return &_class_data_; } + +void ErrorInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ErrorInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.ErrorInfo) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ErrorInfo::MergeFrom(const ErrorInfo& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.ErrorInfo) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.metadata_.MergeFrom(from._impl_.metadata_); + metadata_.MergeFrom(from.metadata_); if (!from._internal_reason().empty()) { - _this->_internal_set_reason(from._internal_reason()); + _internal_set_reason(from._internal_reason()); } if (!from._internal_domain().empty()) { - _this->_internal_set_domain(from._internal_domain()); + _internal_set_domain(from._internal_domain()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ErrorInfo::CopyFrom(const ErrorInfo& from) { @@ -894,212 +743,200 @@ void ErrorInfo::CopyFrom(const ErrorInfo& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ErrorInfo::IsInitialized() const { +bool ErrorInfo::IsInitialized() const { return true; } -::_pbi::CachedSize* ErrorInfo::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ErrorInfo::InternalSwap(ErrorInfo* PROTOBUF_RESTRICT other) { +void ErrorInfo::InternalSwap(ErrorInfo* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.metadata_.InternalSwap(&other->_impl_.metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.reason_, &other->_impl_.reason_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.domain_, &other->_impl_.domain_, arena); -} - -::google::protobuf::Metadata ErrorInfo::GetMetadata() const { + metadata_.InternalSwap(&other->metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &reason_, lhs_arena, + &other->reason_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &domain_, lhs_arena, + &other->domain_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ErrorInfo::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_getter, &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_once, file_level_metadata_google_2frpc_2ferror_5fdetails_2eproto[1]); } + // =================================================================== class RetryInfo::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(RetryInfo, _impl_._has_bits_); - static const ::google::protobuf::Duration& retry_delay(const RetryInfo* msg); - static void set_has_retry_delay(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Duration& retry_delay(const RetryInfo* msg); }; -const ::google::protobuf::Duration& RetryInfo::_Internal::retry_delay(const RetryInfo* msg) { - return *msg->_impl_.retry_delay_; +const ::PROTOBUF_NAMESPACE_ID::Duration& +RetryInfo::_Internal::retry_delay(const RetryInfo* msg) { + return *msg->retry_delay_; } void RetryInfo::clear_retry_delay() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.retry_delay_ != nullptr) _impl_.retry_delay_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && retry_delay_ != nullptr) { + delete retry_delay_; + } + retry_delay_ = nullptr; } -RetryInfo::RetryInfo(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +RetryInfo::RetryInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.rpc.RetryInfo) } -inline PROTOBUF_NDEBUG_INLINE RetryInfo::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -RetryInfo::RetryInfo( - ::google::protobuf::Arena* arena, - const RetryInfo& from) - : ::google::protobuf::Message(arena) { - RetryInfo* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.retry_delay_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Duration>(arena, *from._impl_.retry_delay_) - : nullptr; - +RetryInfo::RetryInfo(const RetryInfo& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_retry_delay()) { + retry_delay_ = new ::PROTOBUF_NAMESPACE_ID::Duration(*from.retry_delay_); + } else { + retry_delay_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:google.rpc.RetryInfo) } -inline PROTOBUF_NDEBUG_INLINE RetryInfo::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void RetryInfo::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.retry_delay_ = {}; +inline void RetryInfo::SharedCtor() { +retry_delay_ = nullptr; } + RetryInfo::~RetryInfo() { // @@protoc_insertion_point(destructor:google.rpc.RetryInfo) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void RetryInfo::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.retry_delay_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete retry_delay_; +} + +void RetryInfo::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void RetryInfo::Clear() { +void RetryInfo::Clear() { // @@protoc_insertion_point(message_clear_start:google.rpc.RetryInfo) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.retry_delay_ != nullptr); - _impl_.retry_delay_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* RetryInfo::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + if (GetArenaForAllocation() == nullptr && retry_delay_ != nullptr) { + delete retry_delay_; + } + retry_delay_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RetryInfo::_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) { + // .google.protobuf.Duration retry_delay = 1 [json_name = "retryDelay"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_retry_delay(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> RetryInfo::_table_ = { - { - PROTOBUF_FIELD_OFFSET(RetryInfo, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_RetryInfo_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .google.protobuf.Duration retry_delay = 1 [json_name = "retryDelay"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(RetryInfo, _impl_.retry_delay_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .google.protobuf.Duration retry_delay = 1 [json_name = "retryDelay"]; - {PROTOBUF_FIELD_OFFSET(RetryInfo, _impl_.retry_delay_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Duration>()}, - }}, {{ - }}, -}; - -::uint8_t* RetryInfo::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* RetryInfo::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.rpc.RetryInfo) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Duration retry_delay = 1 [json_name = "retryDelay"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::retry_delay(this), + if (this->_internal_has_retry_delay()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::retry_delay(this), _Internal::retry_delay(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.rpc.RetryInfo) return target; } -::size_t RetryInfo::ByteSizeLong() const { +size_t RetryInfo::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.rpc.RetryInfo) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .google.protobuf.Duration retry_delay = 1 [json_name = "retryDelay"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.retry_delay_); + if (this->_internal_has_retry_delay()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *retry_delay_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData RetryInfo::_class_data_ = { - RetryInfo::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RetryInfo::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + RetryInfo::MergeImpl }; -const ::google::protobuf::Message::ClassData* RetryInfo::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RetryInfo::GetClassData() const { return &_class_data_; } + +void RetryInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void RetryInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.RetryInfo) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void RetryInfo::MergeFrom(const RetryInfo& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.RetryInfo) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_retry_delay()->::google::protobuf::Duration::MergeFrom( - from._internal_retry_delay()); + if (from._internal_has_retry_delay()) { + _internal_mutable_retry_delay()->::PROTOBUF_NAMESPACE_ID::Duration::MergeFrom(from._internal_retry_delay()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void RetryInfo::CopyFrom(const RetryInfo& from) { @@ -1109,211 +946,224 @@ void RetryInfo::CopyFrom(const RetryInfo& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool RetryInfo::IsInitialized() const { +bool RetryInfo::IsInitialized() const { return true; } -::_pbi::CachedSize* RetryInfo::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void RetryInfo::InternalSwap(RetryInfo* PROTOBUF_RESTRICT other) { +void RetryInfo::InternalSwap(RetryInfo* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.retry_delay_, other->_impl_.retry_delay_); + swap(retry_delay_, other->retry_delay_); } -::google::protobuf::Metadata RetryInfo::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata RetryInfo::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_getter, &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_once, file_level_metadata_google_2frpc_2ferror_5fdetails_2eproto[2]); } + // =================================================================== class DebugInfo::_Internal { public: }; -DebugInfo::DebugInfo(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +DebugInfo::DebugInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + stack_entries_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.rpc.DebugInfo) } -inline PROTOBUF_NDEBUG_INLINE DebugInfo::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : stack_entries_{visibility, arena, from.stack_entries_}, - detail_(arena, from.detail_), - _cached_size_{0} {} - -DebugInfo::DebugInfo( - ::google::protobuf::Arena* arena, - const DebugInfo& from) - : ::google::protobuf::Message(arena) { - DebugInfo* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +DebugInfo::DebugInfo(const DebugInfo& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + stack_entries_(from.stack_entries_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + detail_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + detail_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_detail().empty()) { + detail_.Set(from._internal_detail(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:google.rpc.DebugInfo) } -inline PROTOBUF_NDEBUG_INLINE DebugInfo::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : stack_entries_{visibility, arena}, - detail_(arena), - _cached_size_{0} {} -inline void DebugInfo::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void DebugInfo::SharedCtor() { +detail_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + detail_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + DebugInfo::~DebugInfo() { // @@protoc_insertion_point(destructor:google.rpc.DebugInfo) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void DebugInfo::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.detail_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + detail_.Destroy(); +} + +void DebugInfo::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void DebugInfo::Clear() { +void DebugInfo::Clear() { // @@protoc_insertion_point(message_clear_start:google.rpc.DebugInfo) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.stack_entries_.Clear(); - _impl_.detail_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* DebugInfo::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + stack_entries_.Clear(); + detail_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DebugInfo::_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) { + // repeated string stack_entries = 1 [json_name = "stackEntries"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_stack_entries(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.DebugInfo.stack_entries")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + // string detail = 2 [json_name = "detail"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_detail(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.DebugInfo.detail")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 48, 2> DebugInfo::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_DebugInfo_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string detail = 2 [json_name = "detail"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(DebugInfo, _impl_.detail_)}}, - // repeated string stack_entries = 1 [json_name = "stackEntries"]; - {::_pbi::TcParser::FastUR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(DebugInfo, _impl_.stack_entries_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated string stack_entries = 1 [json_name = "stackEntries"]; - {PROTOBUF_FIELD_OFFSET(DebugInfo, _impl_.stack_entries_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - // string detail = 2 [json_name = "detail"]; - {PROTOBUF_FIELD_OFFSET(DebugInfo, _impl_.detail_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\24\15\6\0\0\0\0\0" - "google.rpc.DebugInfo" - "stack_entries" - "detail" - }}, -}; - -::uint8_t* DebugInfo::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* DebugInfo::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.rpc.DebugInfo) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated string stack_entries = 1 [json_name = "stackEntries"]; - for (int i = 0, n = this->_internal_stack_entries_size(); i < n; ++i) { - const auto& s = this->_internal_stack_entries().Get(i); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.DebugInfo.stack_entries"); + for (int i = 0, n = this->_internal_stack_entries_size(); i < n; i++) { + const auto& s = this->_internal_stack_entries(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.DebugInfo.stack_entries"); target = stream->WriteString(1, s, target); } // string detail = 2 [json_name = "detail"]; if (!this->_internal_detail().empty()) { - const std::string& _s = this->_internal_detail(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.DebugInfo.detail"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_detail().data(), static_cast(this->_internal_detail().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.DebugInfo.detail"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_detail(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.rpc.DebugInfo) return target; } -::size_t DebugInfo::ByteSizeLong() const { +size_t DebugInfo::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.rpc.DebugInfo) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated string stack_entries = 1 [json_name = "stackEntries"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_stack_entries().size()); - for (int i = 0, n = _internal_stack_entries().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - _internal_stack_entries().Get(i)); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(stack_entries_.size()); + for (int i = 0, n = stack_entries_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + stack_entries_.Get(i)); } + // string detail = 2 [json_name = "detail"]; if (!this->_internal_detail().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_detail()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_detail()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData DebugInfo::_class_data_ = { - DebugInfo::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DebugInfo::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + DebugInfo::MergeImpl }; -const ::google::protobuf::Message::ClassData* DebugInfo::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DebugInfo::GetClassData() const { return &_class_data_; } + +void DebugInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void DebugInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.DebugInfo) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void DebugInfo::MergeFrom(const DebugInfo& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.DebugInfo) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_stack_entries()->MergeFrom(from._internal_stack_entries()); + stack_entries_.MergeFrom(from.stack_entries_); if (!from._internal_detail().empty()) { - _this->_internal_set_detail(from._internal_detail()); + _internal_set_detail(from._internal_detail()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void DebugInfo::CopyFrom(const DebugInfo& from) { @@ -1323,216 +1173,237 @@ void DebugInfo::CopyFrom(const DebugInfo& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool DebugInfo::IsInitialized() const { +bool DebugInfo::IsInitialized() const { return true; } -::_pbi::CachedSize* DebugInfo::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void DebugInfo::InternalSwap(DebugInfo* PROTOBUF_RESTRICT other) { +void DebugInfo::InternalSwap(DebugInfo* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.stack_entries_.InternalSwap(&other->_impl_.stack_entries_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.detail_, &other->_impl_.detail_, arena); + stack_entries_.InternalSwap(&other->stack_entries_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &detail_, lhs_arena, + &other->detail_, rhs_arena + ); } -::google::protobuf::Metadata DebugInfo::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata DebugInfo::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_getter, &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_once, file_level_metadata_google_2frpc_2ferror_5fdetails_2eproto[3]); } + // =================================================================== class QuotaFailure_Violation::_Internal { public: }; -QuotaFailure_Violation::QuotaFailure_Violation(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +QuotaFailure_Violation::QuotaFailure_Violation(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.rpc.QuotaFailure.Violation) } -inline PROTOBUF_NDEBUG_INLINE QuotaFailure_Violation::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : subject_(arena, from.subject_), - description_(arena, from.description_), - _cached_size_{0} {} - -QuotaFailure_Violation::QuotaFailure_Violation( - ::google::protobuf::Arena* arena, - const QuotaFailure_Violation& from) - : ::google::protobuf::Message(arena) { - QuotaFailure_Violation* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +QuotaFailure_Violation::QuotaFailure_Violation(const QuotaFailure_Violation& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + subject_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + subject_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_subject().empty()) { + subject_.Set(from._internal_subject(), + GetArenaForAllocation()); + } + description_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + description_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_description().empty()) { + description_.Set(from._internal_description(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:google.rpc.QuotaFailure.Violation) } -inline PROTOBUF_NDEBUG_INLINE QuotaFailure_Violation::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : subject_(arena), - description_(arena), - _cached_size_{0} {} -inline void QuotaFailure_Violation::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void QuotaFailure_Violation::SharedCtor() { +subject_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + subject_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +description_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + description_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + QuotaFailure_Violation::~QuotaFailure_Violation() { // @@protoc_insertion_point(destructor:google.rpc.QuotaFailure.Violation) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void QuotaFailure_Violation::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.subject_.Destroy(); - _impl_.description_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + subject_.Destroy(); + description_.Destroy(); +} + +void QuotaFailure_Violation::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void QuotaFailure_Violation::Clear() { +void QuotaFailure_Violation::Clear() { // @@protoc_insertion_point(message_clear_start:google.rpc.QuotaFailure.Violation) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.subject_.ClearToEmpty(); - _impl_.description_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* QuotaFailure_Violation::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + subject_.ClearToEmpty(); + description_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* QuotaFailure_Violation::_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 subject = 1 [json_name = "subject"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_subject(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.QuotaFailure.Violation.subject")); + } else + goto handle_unusual; + continue; + // string description = 2 [json_name = "description"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_description(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.QuotaFailure.Violation.description")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 60, 2> QuotaFailure_Violation::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_QuotaFailure_Violation_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string description = 2 [json_name = "description"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(QuotaFailure_Violation, _impl_.description_)}}, - // string subject = 1 [json_name = "subject"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(QuotaFailure_Violation, _impl_.subject_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string subject = 1 [json_name = "subject"]; - {PROTOBUF_FIELD_OFFSET(QuotaFailure_Violation, _impl_.subject_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string description = 2 [json_name = "description"]; - {PROTOBUF_FIELD_OFFSET(QuotaFailure_Violation, _impl_.description_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\41\7\13\0\0\0\0\0" - "google.rpc.QuotaFailure.Violation" - "subject" - "description" - }}, -}; - -::uint8_t* QuotaFailure_Violation::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* QuotaFailure_Violation::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.rpc.QuotaFailure.Violation) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string subject = 1 [json_name = "subject"]; if (!this->_internal_subject().empty()) { - const std::string& _s = this->_internal_subject(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.QuotaFailure.Violation.subject"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_subject().data(), static_cast(this->_internal_subject().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.QuotaFailure.Violation.subject"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_subject(), target); } // string description = 2 [json_name = "description"]; if (!this->_internal_description().empty()) { - const std::string& _s = this->_internal_description(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.QuotaFailure.Violation.description"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_description().data(), static_cast(this->_internal_description().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.QuotaFailure.Violation.description"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_description(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.rpc.QuotaFailure.Violation) return target; } -::size_t QuotaFailure_Violation::ByteSizeLong() const { +size_t QuotaFailure_Violation::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.rpc.QuotaFailure.Violation) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string subject = 1 [json_name = "subject"]; if (!this->_internal_subject().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_subject()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_subject()); } // string description = 2 [json_name = "description"]; if (!this->_internal_description().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_description()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_description()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData QuotaFailure_Violation::_class_data_ = { - QuotaFailure_Violation::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData QuotaFailure_Violation::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + QuotaFailure_Violation::MergeImpl }; -const ::google::protobuf::Message::ClassData* QuotaFailure_Violation::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*QuotaFailure_Violation::GetClassData() const { return &_class_data_; } + +void QuotaFailure_Violation::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void QuotaFailure_Violation::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.QuotaFailure.Violation) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void QuotaFailure_Violation::MergeFrom(const QuotaFailure_Violation& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.QuotaFailure.Violation) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_subject().empty()) { - _this->_internal_set_subject(from._internal_subject()); + _internal_set_subject(from._internal_subject()); } if (!from._internal_description().empty()) { - _this->_internal_set_description(from._internal_description()); + _internal_set_description(from._internal_description()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void QuotaFailure_Violation::CopyFrom(const QuotaFailure_Violation& from) { @@ -1542,183 +1413,184 @@ void QuotaFailure_Violation::CopyFrom(const QuotaFailure_Violation& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool QuotaFailure_Violation::IsInitialized() const { +bool QuotaFailure_Violation::IsInitialized() const { return true; } -::_pbi::CachedSize* QuotaFailure_Violation::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void QuotaFailure_Violation::InternalSwap(QuotaFailure_Violation* PROTOBUF_RESTRICT other) { +void QuotaFailure_Violation::InternalSwap(QuotaFailure_Violation* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.subject_, &other->_impl_.subject_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.description_, &other->_impl_.description_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &subject_, lhs_arena, + &other->subject_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &description_, lhs_arena, + &other->description_, rhs_arena + ); } -::google::protobuf::Metadata QuotaFailure_Violation::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata QuotaFailure_Violation::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_getter, &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_once, file_level_metadata_google_2frpc_2ferror_5fdetails_2eproto[4]); } + // =================================================================== class QuotaFailure::_Internal { public: }; -QuotaFailure::QuotaFailure(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +QuotaFailure::QuotaFailure(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + violations_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.rpc.QuotaFailure) } -inline PROTOBUF_NDEBUG_INLINE QuotaFailure::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : violations_{visibility, arena, from.violations_}, - _cached_size_{0} {} - -QuotaFailure::QuotaFailure( - ::google::protobuf::Arena* arena, - const QuotaFailure& from) - : ::google::protobuf::Message(arena) { - QuotaFailure* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +QuotaFailure::QuotaFailure(const QuotaFailure& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + violations_(from.violations_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:google.rpc.QuotaFailure) } -inline PROTOBUF_NDEBUG_INLINE QuotaFailure::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : violations_{visibility, arena}, - _cached_size_{0} {} -inline void QuotaFailure::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void QuotaFailure::SharedCtor() { } + QuotaFailure::~QuotaFailure() { // @@protoc_insertion_point(destructor:google.rpc.QuotaFailure) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void QuotaFailure::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void QuotaFailure::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void QuotaFailure::Clear() { +void QuotaFailure::Clear() { // @@protoc_insertion_point(message_clear_start:google.rpc.QuotaFailure) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.violations_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* QuotaFailure::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + violations_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* QuotaFailure::_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) { + // repeated .google.rpc.QuotaFailure.Violation violations = 1 [json_name = "violations"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_violations(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> QuotaFailure::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_QuotaFailure_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .google.rpc.QuotaFailure.Violation violations = 1 [json_name = "violations"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(QuotaFailure, _impl_.violations_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .google.rpc.QuotaFailure.Violation violations = 1 [json_name = "violations"]; - {PROTOBUF_FIELD_OFFSET(QuotaFailure, _impl_.violations_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::rpc::QuotaFailure_Violation>()}, - }}, {{ - }}, -}; - -::uint8_t* QuotaFailure::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* QuotaFailure::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.rpc.QuotaFailure) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .google.rpc.QuotaFailure.Violation violations = 1 [json_name = "violations"]; for (unsigned i = 0, n = static_cast(this->_internal_violations_size()); i < n; i++) { - const auto& repfield = this->_internal_violations().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_violations(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.rpc.QuotaFailure) return target; } -::size_t QuotaFailure::ByteSizeLong() const { +size_t QuotaFailure::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.rpc.QuotaFailure) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .google.rpc.QuotaFailure.Violation violations = 1 [json_name = "violations"]; total_size += 1UL * this->_internal_violations_size(); - for (const auto& msg : this->_internal_violations()) { + for (const auto& msg : this->violations_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData QuotaFailure::_class_data_ = { - QuotaFailure::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData QuotaFailure::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + QuotaFailure::MergeImpl }; -const ::google::protobuf::Message::ClassData* QuotaFailure::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*QuotaFailure::GetClassData() const { return &_class_data_; } + +void QuotaFailure::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void QuotaFailure::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.QuotaFailure) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void QuotaFailure::MergeFrom(const QuotaFailure& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.QuotaFailure) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_violations()->MergeFrom( - from._internal_violations()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + violations_.MergeFrom(from.violations_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void QuotaFailure::CopyFrom(const QuotaFailure& from) { @@ -1728,242 +1600,275 @@ void QuotaFailure::CopyFrom(const QuotaFailure& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool QuotaFailure::IsInitialized() const { +bool QuotaFailure::IsInitialized() const { return true; } -::_pbi::CachedSize* QuotaFailure::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void QuotaFailure::InternalSwap(QuotaFailure* PROTOBUF_RESTRICT other) { +void QuotaFailure::InternalSwap(QuotaFailure* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.violations_.InternalSwap(&other->_impl_.violations_); + violations_.InternalSwap(&other->violations_); } -::google::protobuf::Metadata QuotaFailure::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata QuotaFailure::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_getter, &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_once, file_level_metadata_google_2frpc_2ferror_5fdetails_2eproto[5]); } + // =================================================================== class PreconditionFailure_Violation::_Internal { public: }; -PreconditionFailure_Violation::PreconditionFailure_Violation(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +PreconditionFailure_Violation::PreconditionFailure_Violation(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.rpc.PreconditionFailure.Violation) } -inline PROTOBUF_NDEBUG_INLINE PreconditionFailure_Violation::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : type_(arena, from.type_), - subject_(arena, from.subject_), - description_(arena, from.description_), - _cached_size_{0} {} - -PreconditionFailure_Violation::PreconditionFailure_Violation( - ::google::protobuf::Arena* arena, - const PreconditionFailure_Violation& from) - : ::google::protobuf::Message(arena) { - PreconditionFailure_Violation* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +PreconditionFailure_Violation::PreconditionFailure_Violation(const PreconditionFailure_Violation& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + 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()); + } + subject_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + subject_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_subject().empty()) { + subject_.Set(from._internal_subject(), + GetArenaForAllocation()); + } + description_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + description_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_description().empty()) { + description_.Set(from._internal_description(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:google.rpc.PreconditionFailure.Violation) } -inline PROTOBUF_NDEBUG_INLINE PreconditionFailure_Violation::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : type_(arena), - subject_(arena), - description_(arena), - _cached_size_{0} {} -inline void PreconditionFailure_Violation::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void PreconditionFailure_Violation::SharedCtor() { +type_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + type_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +subject_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + subject_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +description_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + description_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + PreconditionFailure_Violation::~PreconditionFailure_Violation() { // @@protoc_insertion_point(destructor:google.rpc.PreconditionFailure.Violation) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void PreconditionFailure_Violation::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.type_.Destroy(); - _impl_.subject_.Destroy(); - _impl_.description_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + type_.Destroy(); + subject_.Destroy(); + description_.Destroy(); } -PROTOBUF_NOINLINE void PreconditionFailure_Violation::Clear() { +void PreconditionFailure_Violation::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void PreconditionFailure_Violation::Clear() { // @@protoc_insertion_point(message_clear_start:google.rpc.PreconditionFailure.Violation) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.type_.ClearToEmpty(); - _impl_.subject_.ClearToEmpty(); - _impl_.description_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* PreconditionFailure_Violation::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + type_.ClearToEmpty(); + subject_.ClearToEmpty(); + description_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* PreconditionFailure_Violation::_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 type = 1 [json_name = "type"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.PreconditionFailure.Violation.type")); + } else + goto handle_unusual; + continue; + // string subject = 2 [json_name = "subject"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_subject(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.PreconditionFailure.Violation.subject")); + } else + goto handle_unusual; + continue; + // string description = 3 [json_name = "description"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_description(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.PreconditionFailure.Violation.description")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 71, 2> PreconditionFailure_Violation::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_PreconditionFailure_Violation_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string type = 1 [json_name = "type"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(PreconditionFailure_Violation, _impl_.type_)}}, - // string subject = 2 [json_name = "subject"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(PreconditionFailure_Violation, _impl_.subject_)}}, - // string description = 3 [json_name = "description"]; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(PreconditionFailure_Violation, _impl_.description_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string type = 1 [json_name = "type"]; - {PROTOBUF_FIELD_OFFSET(PreconditionFailure_Violation, _impl_.type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string subject = 2 [json_name = "subject"]; - {PROTOBUF_FIELD_OFFSET(PreconditionFailure_Violation, _impl_.subject_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string description = 3 [json_name = "description"]; - {PROTOBUF_FIELD_OFFSET(PreconditionFailure_Violation, _impl_.description_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\50\4\7\13\0\0\0\0" - "google.rpc.PreconditionFailure.Violation" - "type" - "subject" - "description" - }}, -}; - -::uint8_t* PreconditionFailure_Violation::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* PreconditionFailure_Violation::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.rpc.PreconditionFailure.Violation) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string type = 1 [json_name = "type"]; if (!this->_internal_type().empty()) { - const std::string& _s = this->_internal_type(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.PreconditionFailure.Violation.type"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_type().data(), static_cast(this->_internal_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.PreconditionFailure.Violation.type"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_type(), target); } // string subject = 2 [json_name = "subject"]; if (!this->_internal_subject().empty()) { - const std::string& _s = this->_internal_subject(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.PreconditionFailure.Violation.subject"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_subject().data(), static_cast(this->_internal_subject().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.PreconditionFailure.Violation.subject"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_subject(), target); } // string description = 3 [json_name = "description"]; if (!this->_internal_description().empty()) { - const std::string& _s = this->_internal_description(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.PreconditionFailure.Violation.description"); - target = stream->WriteStringMaybeAliased(3, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_description().data(), static_cast(this->_internal_description().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.PreconditionFailure.Violation.description"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_description(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.rpc.PreconditionFailure.Violation) return target; } -::size_t PreconditionFailure_Violation::ByteSizeLong() const { +size_t PreconditionFailure_Violation::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.rpc.PreconditionFailure.Violation) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string type = 1 [json_name = "type"]; if (!this->_internal_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_type()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_type()); } // string subject = 2 [json_name = "subject"]; if (!this->_internal_subject().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_subject()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_subject()); } // string description = 3 [json_name = "description"]; if (!this->_internal_description().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_description()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_description()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData PreconditionFailure_Violation::_class_data_ = { - PreconditionFailure_Violation::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PreconditionFailure_Violation::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + PreconditionFailure_Violation::MergeImpl }; -const ::google::protobuf::Message::ClassData* PreconditionFailure_Violation::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PreconditionFailure_Violation::GetClassData() const { return &_class_data_; } + +void PreconditionFailure_Violation::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void PreconditionFailure_Violation::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.PreconditionFailure.Violation) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void PreconditionFailure_Violation::MergeFrom(const PreconditionFailure_Violation& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.PreconditionFailure.Violation) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_type().empty()) { - _this->_internal_set_type(from._internal_type()); + _internal_set_type(from._internal_type()); } if (!from._internal_subject().empty()) { - _this->_internal_set_subject(from._internal_subject()); + _internal_set_subject(from._internal_subject()); } if (!from._internal_description().empty()) { - _this->_internal_set_description(from._internal_description()); + _internal_set_description(from._internal_description()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void PreconditionFailure_Violation::CopyFrom(const PreconditionFailure_Violation& from) { @@ -1973,184 +1878,188 @@ void PreconditionFailure_Violation::CopyFrom(const PreconditionFailure_Violation MergeFrom(from); } -PROTOBUF_NOINLINE bool PreconditionFailure_Violation::IsInitialized() const { +bool PreconditionFailure_Violation::IsInitialized() const { return true; } -::_pbi::CachedSize* PreconditionFailure_Violation::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void PreconditionFailure_Violation::InternalSwap(PreconditionFailure_Violation* PROTOBUF_RESTRICT other) { +void PreconditionFailure_Violation::InternalSwap(PreconditionFailure_Violation* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.type_, &other->_impl_.type_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.subject_, &other->_impl_.subject_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.description_, &other->_impl_.description_, arena); -} - -::google::protobuf::Metadata PreconditionFailure_Violation::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &type_, lhs_arena, + &other->type_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &subject_, lhs_arena, + &other->subject_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &description_, lhs_arena, + &other->description_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata PreconditionFailure_Violation::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_getter, &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_once, file_level_metadata_google_2frpc_2ferror_5fdetails_2eproto[6]); } + // =================================================================== class PreconditionFailure::_Internal { public: }; -PreconditionFailure::PreconditionFailure(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +PreconditionFailure::PreconditionFailure(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + violations_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.rpc.PreconditionFailure) } -inline PROTOBUF_NDEBUG_INLINE PreconditionFailure::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : violations_{visibility, arena, from.violations_}, - _cached_size_{0} {} - -PreconditionFailure::PreconditionFailure( - ::google::protobuf::Arena* arena, - const PreconditionFailure& from) - : ::google::protobuf::Message(arena) { - PreconditionFailure* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +PreconditionFailure::PreconditionFailure(const PreconditionFailure& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + violations_(from.violations_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:google.rpc.PreconditionFailure) } -inline PROTOBUF_NDEBUG_INLINE PreconditionFailure::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : violations_{visibility, arena}, - _cached_size_{0} {} -inline void PreconditionFailure::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void PreconditionFailure::SharedCtor() { } + PreconditionFailure::~PreconditionFailure() { // @@protoc_insertion_point(destructor:google.rpc.PreconditionFailure) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void PreconditionFailure::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void PreconditionFailure::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void PreconditionFailure::Clear() { +void PreconditionFailure::Clear() { // @@protoc_insertion_point(message_clear_start:google.rpc.PreconditionFailure) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.violations_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* PreconditionFailure::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + violations_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* PreconditionFailure::_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) { + // repeated .google.rpc.PreconditionFailure.Violation violations = 1 [json_name = "violations"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_violations(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> PreconditionFailure::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_PreconditionFailure_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .google.rpc.PreconditionFailure.Violation violations = 1 [json_name = "violations"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(PreconditionFailure, _impl_.violations_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .google.rpc.PreconditionFailure.Violation violations = 1 [json_name = "violations"]; - {PROTOBUF_FIELD_OFFSET(PreconditionFailure, _impl_.violations_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::rpc::PreconditionFailure_Violation>()}, - }}, {{ - }}, -}; - -::uint8_t* PreconditionFailure::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* PreconditionFailure::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.rpc.PreconditionFailure) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .google.rpc.PreconditionFailure.Violation violations = 1 [json_name = "violations"]; for (unsigned i = 0, n = static_cast(this->_internal_violations_size()); i < n; i++) { - const auto& repfield = this->_internal_violations().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_violations(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.rpc.PreconditionFailure) return target; } -::size_t PreconditionFailure::ByteSizeLong() const { +size_t PreconditionFailure::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.rpc.PreconditionFailure) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .google.rpc.PreconditionFailure.Violation violations = 1 [json_name = "violations"]; total_size += 1UL * this->_internal_violations_size(); - for (const auto& msg : this->_internal_violations()) { + for (const auto& msg : this->violations_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData PreconditionFailure::_class_data_ = { - PreconditionFailure::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PreconditionFailure::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + PreconditionFailure::MergeImpl }; -const ::google::protobuf::Message::ClassData* PreconditionFailure::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PreconditionFailure::GetClassData() const { return &_class_data_; } + +void PreconditionFailure::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void PreconditionFailure::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.PreconditionFailure) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void PreconditionFailure::MergeFrom(const PreconditionFailure& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.PreconditionFailure) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_violations()->MergeFrom( - from._internal_violations()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + violations_.MergeFrom(from.violations_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void PreconditionFailure::CopyFrom(const PreconditionFailure& from) { @@ -2160,213 +2069,316 @@ void PreconditionFailure::CopyFrom(const PreconditionFailure& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool PreconditionFailure::IsInitialized() const { +bool PreconditionFailure::IsInitialized() const { return true; } -::_pbi::CachedSize* PreconditionFailure::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void PreconditionFailure::InternalSwap(PreconditionFailure* PROTOBUF_RESTRICT other) { +void PreconditionFailure::InternalSwap(PreconditionFailure* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.violations_.InternalSwap(&other->_impl_.violations_); + violations_.InternalSwap(&other->violations_); } -::google::protobuf::Metadata PreconditionFailure::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata PreconditionFailure::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_getter, &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_once, file_level_metadata_google_2frpc_2ferror_5fdetails_2eproto[7]); } + // =================================================================== class BadRequest_FieldViolation::_Internal { public: + static const ::google::rpc::LocalizedMessage& localized_message(const BadRequest_FieldViolation* msg); }; -BadRequest_FieldViolation::BadRequest_FieldViolation(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +const ::google::rpc::LocalizedMessage& +BadRequest_FieldViolation::_Internal::localized_message(const BadRequest_FieldViolation* msg) { + return *msg->localized_message_; +} +BadRequest_FieldViolation::BadRequest_FieldViolation(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.rpc.BadRequest.FieldViolation) } -inline PROTOBUF_NDEBUG_INLINE BadRequest_FieldViolation::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : field_(arena, from.field_), - description_(arena, from.description_), - _cached_size_{0} {} - -BadRequest_FieldViolation::BadRequest_FieldViolation( - ::google::protobuf::Arena* arena, - const BadRequest_FieldViolation& from) - : ::google::protobuf::Message(arena) { - BadRequest_FieldViolation* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +BadRequest_FieldViolation::BadRequest_FieldViolation(const BadRequest_FieldViolation& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + field_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + field_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_field().empty()) { + field_.Set(from._internal_field(), + GetArenaForAllocation()); + } + description_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + description_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_description().empty()) { + description_.Set(from._internal_description(), + GetArenaForAllocation()); + } + reason_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + reason_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_reason().empty()) { + reason_.Set(from._internal_reason(), + GetArenaForAllocation()); + } + if (from._internal_has_localized_message()) { + localized_message_ = new ::google::rpc::LocalizedMessage(*from.localized_message_); + } else { + localized_message_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:google.rpc.BadRequest.FieldViolation) } -inline PROTOBUF_NDEBUG_INLINE BadRequest_FieldViolation::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : field_(arena), - description_(arena), - _cached_size_{0} {} -inline void BadRequest_FieldViolation::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void BadRequest_FieldViolation::SharedCtor() { +field_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + field_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +description_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + description_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +reason_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + reason_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +localized_message_ = nullptr; } + BadRequest_FieldViolation::~BadRequest_FieldViolation() { // @@protoc_insertion_point(destructor:google.rpc.BadRequest.FieldViolation) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void BadRequest_FieldViolation::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.field_.Destroy(); - _impl_.description_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + field_.Destroy(); + description_.Destroy(); + reason_.Destroy(); + if (this != internal_default_instance()) delete localized_message_; +} + +void BadRequest_FieldViolation::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void BadRequest_FieldViolation::Clear() { +void BadRequest_FieldViolation::Clear() { // @@protoc_insertion_point(message_clear_start:google.rpc.BadRequest.FieldViolation) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.field_.ClearToEmpty(); - _impl_.description_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* BadRequest_FieldViolation::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + field_.ClearToEmpty(); + description_.ClearToEmpty(); + reason_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && localized_message_ != nullptr) { + delete localized_message_; + } + localized_message_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* BadRequest_FieldViolation::_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 field = 1 [json_name = "field"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_field(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.BadRequest.FieldViolation.field")); + } else + goto handle_unusual; + continue; + // string description = 2 [json_name = "description"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_description(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.BadRequest.FieldViolation.description")); + } else + goto handle_unusual; + continue; + // string reason = 3 [json_name = "reason"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_reason(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.BadRequest.FieldViolation.reason")); + } else + goto handle_unusual; + continue; + // .google.rpc.LocalizedMessage localized_message = 4 [json_name = "localizedMessage"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_localized_message(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 61, 2> BadRequest_FieldViolation::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_BadRequest_FieldViolation_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string description = 2 [json_name = "description"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(BadRequest_FieldViolation, _impl_.description_)}}, - // string field = 1 [json_name = "field"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(BadRequest_FieldViolation, _impl_.field_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string field = 1 [json_name = "field"]; - {PROTOBUF_FIELD_OFFSET(BadRequest_FieldViolation, _impl_.field_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string description = 2 [json_name = "description"]; - {PROTOBUF_FIELD_OFFSET(BadRequest_FieldViolation, _impl_.description_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\44\5\13\0\0\0\0\0" - "google.rpc.BadRequest.FieldViolation" - "field" - "description" - }}, -}; - -::uint8_t* BadRequest_FieldViolation::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* BadRequest_FieldViolation::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.rpc.BadRequest.FieldViolation) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string field = 1 [json_name = "field"]; if (!this->_internal_field().empty()) { - const std::string& _s = this->_internal_field(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.BadRequest.FieldViolation.field"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_field().data(), static_cast(this->_internal_field().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.BadRequest.FieldViolation.field"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_field(), target); } // string description = 2 [json_name = "description"]; if (!this->_internal_description().empty()) { - const std::string& _s = this->_internal_description(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.BadRequest.FieldViolation.description"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_description().data(), static_cast(this->_internal_description().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.BadRequest.FieldViolation.description"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_description(), target); + } + + // string reason = 3 [json_name = "reason"]; + if (!this->_internal_reason().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_reason().data(), static_cast(this->_internal_reason().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.BadRequest.FieldViolation.reason"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_reason(), target); + } + + // .google.rpc.LocalizedMessage localized_message = 4 [json_name = "localizedMessage"]; + if (this->_internal_has_localized_message()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::localized_message(this), + _Internal::localized_message(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.rpc.BadRequest.FieldViolation) return target; } -::size_t BadRequest_FieldViolation::ByteSizeLong() const { +size_t BadRequest_FieldViolation::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.rpc.BadRequest.FieldViolation) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string field = 1 [json_name = "field"]; if (!this->_internal_field().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_field()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_field()); } // string description = 2 [json_name = "description"]; if (!this->_internal_description().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_description()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_description()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + // string reason = 3 [json_name = "reason"]; + if (!this->_internal_reason().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_reason()); + } + + // .google.rpc.LocalizedMessage localized_message = 4 [json_name = "localizedMessage"]; + if (this->_internal_has_localized_message()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *localized_message_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData BadRequest_FieldViolation::_class_data_ = { - BadRequest_FieldViolation::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData BadRequest_FieldViolation::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + BadRequest_FieldViolation::MergeImpl }; -const ::google::protobuf::Message::ClassData* BadRequest_FieldViolation::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*BadRequest_FieldViolation::GetClassData() const { return &_class_data_; } + +void BadRequest_FieldViolation::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void BadRequest_FieldViolation::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.BadRequest.FieldViolation) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void BadRequest_FieldViolation::MergeFrom(const BadRequest_FieldViolation& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.BadRequest.FieldViolation) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_field().empty()) { - _this->_internal_set_field(from._internal_field()); + _internal_set_field(from._internal_field()); } if (!from._internal_description().empty()) { - _this->_internal_set_description(from._internal_description()); + _internal_set_description(from._internal_description()); + } + if (!from._internal_reason().empty()) { + _internal_set_reason(from._internal_reason()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_localized_message()) { + _internal_mutable_localized_message()->::google::rpc::LocalizedMessage::MergeFrom(from._internal_localized_message()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void BadRequest_FieldViolation::CopyFrom(const BadRequest_FieldViolation& from) { @@ -2376,183 +2388,189 @@ void BadRequest_FieldViolation::CopyFrom(const BadRequest_FieldViolation& from) MergeFrom(from); } -PROTOBUF_NOINLINE bool BadRequest_FieldViolation::IsInitialized() const { +bool BadRequest_FieldViolation::IsInitialized() const { return true; } -::_pbi::CachedSize* BadRequest_FieldViolation::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void BadRequest_FieldViolation::InternalSwap(BadRequest_FieldViolation* PROTOBUF_RESTRICT other) { +void BadRequest_FieldViolation::InternalSwap(BadRequest_FieldViolation* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.field_, &other->_impl_.field_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.description_, &other->_impl_.description_, arena); -} - -::google::protobuf::Metadata BadRequest_FieldViolation::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &field_, lhs_arena, + &other->field_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &description_, lhs_arena, + &other->description_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &reason_, lhs_arena, + &other->reason_, rhs_arena + ); + swap(localized_message_, other->localized_message_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata BadRequest_FieldViolation::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_getter, &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_once, file_level_metadata_google_2frpc_2ferror_5fdetails_2eproto[8]); } + // =================================================================== class BadRequest::_Internal { public: }; -BadRequest::BadRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +BadRequest::BadRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + field_violations_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.rpc.BadRequest) } -inline PROTOBUF_NDEBUG_INLINE BadRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : field_violations_{visibility, arena, from.field_violations_}, - _cached_size_{0} {} - -BadRequest::BadRequest( - ::google::protobuf::Arena* arena, - const BadRequest& from) - : ::google::protobuf::Message(arena) { - BadRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +BadRequest::BadRequest(const BadRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + field_violations_(from.field_violations_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:google.rpc.BadRequest) } -inline PROTOBUF_NDEBUG_INLINE BadRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : field_violations_{visibility, arena}, - _cached_size_{0} {} -inline void BadRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void BadRequest::SharedCtor() { } + BadRequest::~BadRequest() { // @@protoc_insertion_point(destructor:google.rpc.BadRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void BadRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void BadRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void BadRequest::Clear() { +void BadRequest::Clear() { // @@protoc_insertion_point(message_clear_start:google.rpc.BadRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.field_violations_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* BadRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + field_violations_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* BadRequest::_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) { + // repeated .google.rpc.BadRequest.FieldViolation field_violations = 1 [json_name = "fieldViolations"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_field_violations(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> BadRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_BadRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .google.rpc.BadRequest.FieldViolation field_violations = 1 [json_name = "fieldViolations"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(BadRequest, _impl_.field_violations_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .google.rpc.BadRequest.FieldViolation field_violations = 1 [json_name = "fieldViolations"]; - {PROTOBUF_FIELD_OFFSET(BadRequest, _impl_.field_violations_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::rpc::BadRequest_FieldViolation>()}, - }}, {{ - }}, -}; - -::uint8_t* BadRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* BadRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.rpc.BadRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .google.rpc.BadRequest.FieldViolation field_violations = 1 [json_name = "fieldViolations"]; for (unsigned i = 0, n = static_cast(this->_internal_field_violations_size()); i < n; i++) { - const auto& repfield = this->_internal_field_violations().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_field_violations(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.rpc.BadRequest) return target; } -::size_t BadRequest::ByteSizeLong() const { +size_t BadRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.rpc.BadRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .google.rpc.BadRequest.FieldViolation field_violations = 1 [json_name = "fieldViolations"]; total_size += 1UL * this->_internal_field_violations_size(); - for (const auto& msg : this->_internal_field_violations()) { + for (const auto& msg : this->field_violations_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData BadRequest::_class_data_ = { - BadRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData BadRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + BadRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* BadRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*BadRequest::GetClassData() const { return &_class_data_; } + +void BadRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void BadRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.BadRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void BadRequest::MergeFrom(const BadRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.BadRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_field_violations()->MergeFrom( - from._internal_field_violations()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + field_violations_.MergeFrom(from.field_violations_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void BadRequest::CopyFrom(const BadRequest& from) { @@ -2562,213 +2580,231 @@ void BadRequest::CopyFrom(const BadRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool BadRequest::IsInitialized() const { +bool BadRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* BadRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void BadRequest::InternalSwap(BadRequest* PROTOBUF_RESTRICT other) { +void BadRequest::InternalSwap(BadRequest* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.field_violations_.InternalSwap(&other->_impl_.field_violations_); + field_violations_.InternalSwap(&other->field_violations_); } -::google::protobuf::Metadata BadRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata BadRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_getter, &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_once, file_level_metadata_google_2frpc_2ferror_5fdetails_2eproto[9]); } + // =================================================================== class RequestInfo::_Internal { public: }; -RequestInfo::RequestInfo(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +RequestInfo::RequestInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.rpc.RequestInfo) } -inline PROTOBUF_NDEBUG_INLINE RequestInfo::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : request_id_(arena, from.request_id_), - serving_data_(arena, from.serving_data_), - _cached_size_{0} {} - -RequestInfo::RequestInfo( - ::google::protobuf::Arena* arena, - const RequestInfo& from) - : ::google::protobuf::Message(arena) { - RequestInfo* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +RequestInfo::RequestInfo(const RequestInfo& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + request_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + request_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_request_id().empty()) { + request_id_.Set(from._internal_request_id(), + GetArenaForAllocation()); + } + serving_data_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + serving_data_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_serving_data().empty()) { + serving_data_.Set(from._internal_serving_data(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:google.rpc.RequestInfo) } -inline PROTOBUF_NDEBUG_INLINE RequestInfo::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : request_id_(arena), - serving_data_(arena), - _cached_size_{0} {} -inline void RequestInfo::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void RequestInfo::SharedCtor() { +request_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + request_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +serving_data_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + serving_data_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + RequestInfo::~RequestInfo() { // @@protoc_insertion_point(destructor:google.rpc.RequestInfo) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void RequestInfo::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.request_id_.Destroy(); - _impl_.serving_data_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + request_id_.Destroy(); + serving_data_.Destroy(); } -PROTOBUF_NOINLINE void RequestInfo::Clear() { +void RequestInfo::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void RequestInfo::Clear() { // @@protoc_insertion_point(message_clear_start:google.rpc.RequestInfo) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.request_id_.ClearToEmpty(); - _impl_.serving_data_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* RequestInfo::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + request_id_.ClearToEmpty(); + serving_data_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RequestInfo::_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 request_id = 1 [json_name = "requestId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_request_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.RequestInfo.request_id")); + } else + goto handle_unusual; + continue; + // string serving_data = 2 [json_name = "servingData"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_serving_data(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.RequestInfo.serving_data")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 53, 2> RequestInfo::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_RequestInfo_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string serving_data = 2 [json_name = "servingData"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(RequestInfo, _impl_.serving_data_)}}, - // string request_id = 1 [json_name = "requestId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(RequestInfo, _impl_.request_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string request_id = 1 [json_name = "requestId"]; - {PROTOBUF_FIELD_OFFSET(RequestInfo, _impl_.request_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string serving_data = 2 [json_name = "servingData"]; - {PROTOBUF_FIELD_OFFSET(RequestInfo, _impl_.serving_data_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\26\12\14\0\0\0\0\0" - "google.rpc.RequestInfo" - "request_id" - "serving_data" - }}, -}; - -::uint8_t* RequestInfo::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* RequestInfo::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.rpc.RequestInfo) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string request_id = 1 [json_name = "requestId"]; if (!this->_internal_request_id().empty()) { - const std::string& _s = this->_internal_request_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.RequestInfo.request_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_request_id().data(), static_cast(this->_internal_request_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.RequestInfo.request_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_request_id(), target); } // string serving_data = 2 [json_name = "servingData"]; if (!this->_internal_serving_data().empty()) { - const std::string& _s = this->_internal_serving_data(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.RequestInfo.serving_data"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_serving_data().data(), static_cast(this->_internal_serving_data().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.RequestInfo.serving_data"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_serving_data(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.rpc.RequestInfo) return target; } -::size_t RequestInfo::ByteSizeLong() const { +size_t RequestInfo::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.rpc.RequestInfo) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string request_id = 1 [json_name = "requestId"]; if (!this->_internal_request_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_request_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_request_id()); } // string serving_data = 2 [json_name = "servingData"]; if (!this->_internal_serving_data().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_serving_data()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_serving_data()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData RequestInfo::_class_data_ = { - RequestInfo::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RequestInfo::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + RequestInfo::MergeImpl }; -const ::google::protobuf::Message::ClassData* RequestInfo::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RequestInfo::GetClassData() const { return &_class_data_; } + +void RequestInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void RequestInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.RequestInfo) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void RequestInfo::MergeFrom(const RequestInfo& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.RequestInfo) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_request_id().empty()) { - _this->_internal_set_request_id(from._internal_request_id()); + _internal_set_request_id(from._internal_request_id()); } if (!from._internal_serving_data().empty()) { - _this->_internal_set_serving_data(from._internal_serving_data()); + _internal_set_serving_data(from._internal_serving_data()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void RequestInfo::CopyFrom(const RequestInfo& from) { @@ -2778,272 +2814,328 @@ void RequestInfo::CopyFrom(const RequestInfo& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool RequestInfo::IsInitialized() const { +bool RequestInfo::IsInitialized() const { return true; } -::_pbi::CachedSize* RequestInfo::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void RequestInfo::InternalSwap(RequestInfo* PROTOBUF_RESTRICT other) { +void RequestInfo::InternalSwap(RequestInfo* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.request_id_, &other->_impl_.request_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.serving_data_, &other->_impl_.serving_data_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &request_id_, lhs_arena, + &other->request_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &serving_data_, lhs_arena, + &other->serving_data_, rhs_arena + ); } -::google::protobuf::Metadata RequestInfo::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata RequestInfo::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_getter, &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_once, file_level_metadata_google_2frpc_2ferror_5fdetails_2eproto[10]); } + // =================================================================== class ResourceInfo::_Internal { public: }; -ResourceInfo::ResourceInfo(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ResourceInfo::ResourceInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.rpc.ResourceInfo) } -inline PROTOBUF_NDEBUG_INLINE ResourceInfo::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : resource_type_(arena, from.resource_type_), - resource_name_(arena, from.resource_name_), - owner_(arena, from.owner_), - description_(arena, from.description_), - _cached_size_{0} {} - -ResourceInfo::ResourceInfo( - ::google::protobuf::Arena* arena, - const ResourceInfo& from) - : ::google::protobuf::Message(arena) { - ResourceInfo* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +ResourceInfo::ResourceInfo(const ResourceInfo& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + resource_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + resource_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_resource_type().empty()) { + resource_type_.Set(from._internal_resource_type(), + GetArenaForAllocation()); + } + resource_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + resource_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_resource_name().empty()) { + resource_name_.Set(from._internal_resource_name(), + GetArenaForAllocation()); + } + owner_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + owner_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_owner().empty()) { + owner_.Set(from._internal_owner(), + GetArenaForAllocation()); + } + description_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + description_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_description().empty()) { + description_.Set(from._internal_description(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:google.rpc.ResourceInfo) } -inline PROTOBUF_NDEBUG_INLINE ResourceInfo::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : resource_type_(arena), - resource_name_(arena), - owner_(arena), - description_(arena), - _cached_size_{0} {} -inline void ResourceInfo::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void ResourceInfo::SharedCtor() { +resource_type_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + resource_type_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +resource_name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + resource_name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +owner_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + owner_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +description_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + description_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + ResourceInfo::~ResourceInfo() { // @@protoc_insertion_point(destructor:google.rpc.ResourceInfo) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ResourceInfo::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.resource_type_.Destroy(); - _impl_.resource_name_.Destroy(); - _impl_.owner_.Destroy(); - _impl_.description_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + resource_type_.Destroy(); + resource_name_.Destroy(); + owner_.Destroy(); + description_.Destroy(); +} + +void ResourceInfo::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void ResourceInfo::Clear() { +void ResourceInfo::Clear() { // @@protoc_insertion_point(message_clear_start:google.rpc.ResourceInfo) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.resource_type_.ClearToEmpty(); - _impl_.resource_name_.ClearToEmpty(); - _impl_.owner_.ClearToEmpty(); - _impl_.description_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ResourceInfo::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + resource_type_.ClearToEmpty(); + resource_name_.ClearToEmpty(); + owner_.ClearToEmpty(); + description_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ResourceInfo::_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 resource_type = 1 [json_name = "resourceType"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_resource_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.ResourceInfo.resource_type")); + } else + goto handle_unusual; + continue; + // string resource_name = 2 [json_name = "resourceName"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_resource_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.ResourceInfo.resource_name")); + } else + goto handle_unusual; + continue; + // string owner = 3 [json_name = "owner"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_owner(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.ResourceInfo.owner")); + } else + goto handle_unusual; + continue; + // string description = 4 [json_name = "description"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_description(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.ResourceInfo.description")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 0, 74, 2> ResourceInfo::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_ResourceInfo_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string description = 4 [json_name = "description"]; - {::_pbi::TcParser::FastUS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(ResourceInfo, _impl_.description_)}}, - // string resource_type = 1 [json_name = "resourceType"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ResourceInfo, _impl_.resource_type_)}}, - // string resource_name = 2 [json_name = "resourceName"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(ResourceInfo, _impl_.resource_name_)}}, - // string owner = 3 [json_name = "owner"]; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(ResourceInfo, _impl_.owner_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string resource_type = 1 [json_name = "resourceType"]; - {PROTOBUF_FIELD_OFFSET(ResourceInfo, _impl_.resource_type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string resource_name = 2 [json_name = "resourceName"]; - {PROTOBUF_FIELD_OFFSET(ResourceInfo, _impl_.resource_name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string owner = 3 [json_name = "owner"]; - {PROTOBUF_FIELD_OFFSET(ResourceInfo, _impl_.owner_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string description = 4 [json_name = "description"]; - {PROTOBUF_FIELD_OFFSET(ResourceInfo, _impl_.description_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\27\15\15\5\13\0\0\0" - "google.rpc.ResourceInfo" - "resource_type" - "resource_name" - "owner" - "description" - }}, -}; - -::uint8_t* ResourceInfo::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ResourceInfo::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.rpc.ResourceInfo) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string resource_type = 1 [json_name = "resourceType"]; if (!this->_internal_resource_type().empty()) { - const std::string& _s = this->_internal_resource_type(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.ResourceInfo.resource_type"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_resource_type().data(), static_cast(this->_internal_resource_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.ResourceInfo.resource_type"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_resource_type(), target); } // string resource_name = 2 [json_name = "resourceName"]; if (!this->_internal_resource_name().empty()) { - const std::string& _s = this->_internal_resource_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.ResourceInfo.resource_name"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_resource_name().data(), static_cast(this->_internal_resource_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.ResourceInfo.resource_name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_resource_name(), target); } // string owner = 3 [json_name = "owner"]; if (!this->_internal_owner().empty()) { - const std::string& _s = this->_internal_owner(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.ResourceInfo.owner"); - target = stream->WriteStringMaybeAliased(3, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_owner().data(), static_cast(this->_internal_owner().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.ResourceInfo.owner"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_owner(), target); } // string description = 4 [json_name = "description"]; if (!this->_internal_description().empty()) { - const std::string& _s = this->_internal_description(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.ResourceInfo.description"); - target = stream->WriteStringMaybeAliased(4, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_description().data(), static_cast(this->_internal_description().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.ResourceInfo.description"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_description(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.rpc.ResourceInfo) return target; } -::size_t ResourceInfo::ByteSizeLong() const { +size_t ResourceInfo::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.rpc.ResourceInfo) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string resource_type = 1 [json_name = "resourceType"]; if (!this->_internal_resource_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_resource_type()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_resource_type()); } // string resource_name = 2 [json_name = "resourceName"]; if (!this->_internal_resource_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_resource_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_resource_name()); } // string owner = 3 [json_name = "owner"]; if (!this->_internal_owner().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_owner()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_owner()); } // string description = 4 [json_name = "description"]; if (!this->_internal_description().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_description()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_description()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ResourceInfo::_class_data_ = { - ResourceInfo::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ResourceInfo::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ResourceInfo::MergeImpl }; -const ::google::protobuf::Message::ClassData* ResourceInfo::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ResourceInfo::GetClassData() const { return &_class_data_; } + +void ResourceInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ResourceInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.ResourceInfo) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ResourceInfo::MergeFrom(const ResourceInfo& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.ResourceInfo) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_resource_type().empty()) { - _this->_internal_set_resource_type(from._internal_resource_type()); + _internal_set_resource_type(from._internal_resource_type()); } if (!from._internal_resource_name().empty()) { - _this->_internal_set_resource_name(from._internal_resource_name()); + _internal_set_resource_name(from._internal_resource_name()); } if (!from._internal_owner().empty()) { - _this->_internal_set_owner(from._internal_owner()); + _internal_set_owner(from._internal_owner()); } if (!from._internal_description().empty()) { - _this->_internal_set_description(from._internal_description()); + _internal_set_description(from._internal_description()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ResourceInfo::CopyFrom(const ResourceInfo& from) { @@ -3053,218 +3145,248 @@ void ResourceInfo::CopyFrom(const ResourceInfo& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ResourceInfo::IsInitialized() const { +bool ResourceInfo::IsInitialized() const { return true; } -::_pbi::CachedSize* ResourceInfo::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ResourceInfo::InternalSwap(ResourceInfo* PROTOBUF_RESTRICT other) { +void ResourceInfo::InternalSwap(ResourceInfo* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.resource_type_, &other->_impl_.resource_type_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.resource_name_, &other->_impl_.resource_name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.owner_, &other->_impl_.owner_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.description_, &other->_impl_.description_, arena); -} - -::google::protobuf::Metadata ResourceInfo::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &resource_type_, lhs_arena, + &other->resource_type_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &resource_name_, lhs_arena, + &other->resource_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &owner_, lhs_arena, + &other->owner_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &description_, lhs_arena, + &other->description_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ResourceInfo::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_getter, &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_once, file_level_metadata_google_2frpc_2ferror_5fdetails_2eproto[11]); } + // =================================================================== class Help_Link::_Internal { public: }; -Help_Link::Help_Link(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Help_Link::Help_Link(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.rpc.Help.Link) } -inline PROTOBUF_NDEBUG_INLINE Help_Link::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : description_(arena, from.description_), - url_(arena, from.url_), - _cached_size_{0} {} - -Help_Link::Help_Link( - ::google::protobuf::Arena* arena, - const Help_Link& from) - : ::google::protobuf::Message(arena) { - Help_Link* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +Help_Link::Help_Link(const Help_Link& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + description_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + description_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_description().empty()) { + description_.Set(from._internal_description(), + GetArenaForAllocation()); + } + url_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + url_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_url().empty()) { + url_.Set(from._internal_url(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:google.rpc.Help.Link) } -inline PROTOBUF_NDEBUG_INLINE Help_Link::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : description_(arena), - url_(arena), - _cached_size_{0} {} -inline void Help_Link::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void Help_Link::SharedCtor() { +description_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + description_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +url_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + url_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + Help_Link::~Help_Link() { // @@protoc_insertion_point(destructor:google.rpc.Help.Link) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Help_Link::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.description_.Destroy(); - _impl_.url_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + description_.Destroy(); + url_.Destroy(); +} + +void Help_Link::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void Help_Link::Clear() { +void Help_Link::Clear() { // @@protoc_insertion_point(message_clear_start:google.rpc.Help.Link) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.description_.ClearToEmpty(); - _impl_.url_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Help_Link::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + description_.ClearToEmpty(); + url_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Help_Link::_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 description = 1 [json_name = "description"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_description(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.Help.Link.description")); + } else + goto handle_unusual; + continue; + // string url = 2 [json_name = "url"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_url(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.Help.Link.url")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 43, 2> Help_Link::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_Help_Link_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string url = 2 [json_name = "url"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(Help_Link, _impl_.url_)}}, - // string description = 1 [json_name = "description"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Help_Link, _impl_.description_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string description = 1 [json_name = "description"]; - {PROTOBUF_FIELD_OFFSET(Help_Link, _impl_.description_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string url = 2 [json_name = "url"]; - {PROTOBUF_FIELD_OFFSET(Help_Link, _impl_.url_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\24\13\3\0\0\0\0\0" - "google.rpc.Help.Link" - "description" - "url" - }}, -}; - -::uint8_t* Help_Link::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Help_Link::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.rpc.Help.Link) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string description = 1 [json_name = "description"]; if (!this->_internal_description().empty()) { - const std::string& _s = this->_internal_description(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.Help.Link.description"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_description().data(), static_cast(this->_internal_description().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.Help.Link.description"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_description(), target); } // string url = 2 [json_name = "url"]; if (!this->_internal_url().empty()) { - const std::string& _s = this->_internal_url(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.Help.Link.url"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_url().data(), static_cast(this->_internal_url().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.Help.Link.url"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_url(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.rpc.Help.Link) return target; } -::size_t Help_Link::ByteSizeLong() const { +size_t Help_Link::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.rpc.Help.Link) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string description = 1 [json_name = "description"]; if (!this->_internal_description().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_description()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_description()); } // string url = 2 [json_name = "url"]; if (!this->_internal_url().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_url()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_url()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Help_Link::_class_data_ = { - Help_Link::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Help_Link::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Help_Link::MergeImpl }; -const ::google::protobuf::Message::ClassData* Help_Link::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Help_Link::GetClassData() const { return &_class_data_; } + +void Help_Link::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Help_Link::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.Help.Link) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Help_Link::MergeFrom(const Help_Link& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.Help.Link) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_description().empty()) { - _this->_internal_set_description(from._internal_description()); + _internal_set_description(from._internal_description()); } if (!from._internal_url().empty()) { - _this->_internal_set_url(from._internal_url()); + _internal_set_url(from._internal_url()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Help_Link::CopyFrom(const Help_Link& from) { @@ -3274,183 +3396,184 @@ void Help_Link::CopyFrom(const Help_Link& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Help_Link::IsInitialized() const { +bool Help_Link::IsInitialized() const { return true; } -::_pbi::CachedSize* Help_Link::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Help_Link::InternalSwap(Help_Link* PROTOBUF_RESTRICT other) { +void Help_Link::InternalSwap(Help_Link* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.description_, &other->_impl_.description_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.url_, &other->_impl_.url_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &description_, lhs_arena, + &other->description_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &url_, lhs_arena, + &other->url_, rhs_arena + ); } -::google::protobuf::Metadata Help_Link::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Help_Link::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_getter, &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_once, file_level_metadata_google_2frpc_2ferror_5fdetails_2eproto[12]); } + // =================================================================== class Help::_Internal { public: }; -Help::Help(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Help::Help(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + links_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.rpc.Help) } -inline PROTOBUF_NDEBUG_INLINE Help::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : links_{visibility, arena, from.links_}, - _cached_size_{0} {} - -Help::Help( - ::google::protobuf::Arena* arena, - const Help& from) - : ::google::protobuf::Message(arena) { - Help* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +Help::Help(const Help& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + links_(from.links_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:google.rpc.Help) } -inline PROTOBUF_NDEBUG_INLINE Help::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : links_{visibility, arena}, - _cached_size_{0} {} -inline void Help::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void Help::SharedCtor() { } + Help::~Help() { // @@protoc_insertion_point(destructor:google.rpc.Help) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Help::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void Help::Clear() { +void Help::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void Help::Clear() { // @@protoc_insertion_point(message_clear_start:google.rpc.Help) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.links_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Help::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + links_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Help::_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) { + // repeated .google.rpc.Help.Link links = 1 [json_name = "links"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_links(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> Help::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Help_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .google.rpc.Help.Link links = 1 [json_name = "links"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Help, _impl_.links_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .google.rpc.Help.Link links = 1 [json_name = "links"]; - {PROTOBUF_FIELD_OFFSET(Help, _impl_.links_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::rpc::Help_Link>()}, - }}, {{ - }}, -}; - -::uint8_t* Help::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Help::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.rpc.Help) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .google.rpc.Help.Link links = 1 [json_name = "links"]; for (unsigned i = 0, n = static_cast(this->_internal_links_size()); i < n; i++) { - const auto& repfield = this->_internal_links().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_links(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.rpc.Help) return target; } -::size_t Help::ByteSizeLong() const { +size_t Help::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.rpc.Help) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .google.rpc.Help.Link links = 1 [json_name = "links"]; total_size += 1UL * this->_internal_links_size(); - for (const auto& msg : this->_internal_links()) { + for (const auto& msg : this->links_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Help::_class_data_ = { - Help::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Help::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Help::MergeImpl }; -const ::google::protobuf::Message::ClassData* Help::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Help::GetClassData() const { return &_class_data_; } + +void Help::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Help::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.Help) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Help::MergeFrom(const Help& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.Help) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_links()->MergeFrom( - from._internal_links()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + links_.MergeFrom(from.links_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Help::CopyFrom(const Help& from) { @@ -3460,213 +3583,231 @@ void Help::CopyFrom(const Help& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Help::IsInitialized() const { +bool Help::IsInitialized() const { return true; } -::_pbi::CachedSize* Help::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Help::InternalSwap(Help* PROTOBUF_RESTRICT other) { +void Help::InternalSwap(Help* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.links_.InternalSwap(&other->_impl_.links_); + links_.InternalSwap(&other->links_); } -::google::protobuf::Metadata Help::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Help::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_getter, &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_once, file_level_metadata_google_2frpc_2ferror_5fdetails_2eproto[13]); } + // =================================================================== class LocalizedMessage::_Internal { public: }; -LocalizedMessage::LocalizedMessage(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +LocalizedMessage::LocalizedMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.rpc.LocalizedMessage) } -inline PROTOBUF_NDEBUG_INLINE LocalizedMessage::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : locale_(arena, from.locale_), - message_(arena, from.message_), - _cached_size_{0} {} - -LocalizedMessage::LocalizedMessage( - ::google::protobuf::Arena* arena, - const LocalizedMessage& from) - : ::google::protobuf::Message(arena) { - LocalizedMessage* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +LocalizedMessage::LocalizedMessage(const LocalizedMessage& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + locale_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + locale_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_locale().empty()) { + locale_.Set(from._internal_locale(), + GetArenaForAllocation()); + } + message_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + message_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_message().empty()) { + message_.Set(from._internal_message(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:google.rpc.LocalizedMessage) } -inline PROTOBUF_NDEBUG_INLINE LocalizedMessage::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : locale_(arena), - message_(arena), - _cached_size_{0} {} -inline void LocalizedMessage::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void LocalizedMessage::SharedCtor() { +locale_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + locale_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +message_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + message_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + LocalizedMessage::~LocalizedMessage() { // @@protoc_insertion_point(destructor:google.rpc.LocalizedMessage) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void LocalizedMessage::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.locale_.Destroy(); - _impl_.message_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + locale_.Destroy(); + message_.Destroy(); } -PROTOBUF_NOINLINE void LocalizedMessage::Clear() { +void LocalizedMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void LocalizedMessage::Clear() { // @@protoc_insertion_point(message_clear_start:google.rpc.LocalizedMessage) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.locale_.ClearToEmpty(); - _impl_.message_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* LocalizedMessage::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + locale_.ClearToEmpty(); + message_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* LocalizedMessage::_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 locale = 1 [json_name = "locale"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_locale(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.LocalizedMessage.locale")); + } else + goto handle_unusual; + continue; + // string message = 2 [json_name = "message"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_message(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.LocalizedMessage.message")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 49, 2> LocalizedMessage::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_LocalizedMessage_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string message = 2 [json_name = "message"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(LocalizedMessage, _impl_.message_)}}, - // string locale = 1 [json_name = "locale"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(LocalizedMessage, _impl_.locale_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string locale = 1 [json_name = "locale"]; - {PROTOBUF_FIELD_OFFSET(LocalizedMessage, _impl_.locale_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string message = 2 [json_name = "message"]; - {PROTOBUF_FIELD_OFFSET(LocalizedMessage, _impl_.message_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\33\6\7\0\0\0\0\0" - "google.rpc.LocalizedMessage" - "locale" - "message" - }}, -}; - -::uint8_t* LocalizedMessage::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* LocalizedMessage::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.rpc.LocalizedMessage) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string locale = 1 [json_name = "locale"]; if (!this->_internal_locale().empty()) { - const std::string& _s = this->_internal_locale(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.LocalizedMessage.locale"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_locale().data(), static_cast(this->_internal_locale().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.LocalizedMessage.locale"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_locale(), target); } // string message = 2 [json_name = "message"]; if (!this->_internal_message().empty()) { - const std::string& _s = this->_internal_message(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.LocalizedMessage.message"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_message().data(), static_cast(this->_internal_message().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.LocalizedMessage.message"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_message(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.rpc.LocalizedMessage) return target; } -::size_t LocalizedMessage::ByteSizeLong() const { +size_t LocalizedMessage::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.rpc.LocalizedMessage) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string locale = 1 [json_name = "locale"]; if (!this->_internal_locale().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_locale()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_locale()); } // string message = 2 [json_name = "message"]; if (!this->_internal_message().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_message()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_message()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData LocalizedMessage::_class_data_ = { - LocalizedMessage::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LocalizedMessage::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + LocalizedMessage::MergeImpl }; -const ::google::protobuf::Message::ClassData* LocalizedMessage::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LocalizedMessage::GetClassData() const { return &_class_data_; } + +void LocalizedMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void LocalizedMessage::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.LocalizedMessage) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void LocalizedMessage::MergeFrom(const LocalizedMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.LocalizedMessage) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_locale().empty()) { - _this->_internal_set_locale(from._internal_locale()); + _internal_set_locale(from._internal_locale()); } if (!from._internal_message().empty()) { - _this->_internal_set_message(from._internal_message()); + _internal_set_message(from._internal_message()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void LocalizedMessage::CopyFrom(const LocalizedMessage& from) { @@ -3676,33 +3817,96 @@ void LocalizedMessage::CopyFrom(const LocalizedMessage& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool LocalizedMessage::IsInitialized() const { +bool LocalizedMessage::IsInitialized() const { return true; } -::_pbi::CachedSize* LocalizedMessage::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void LocalizedMessage::InternalSwap(LocalizedMessage* PROTOBUF_RESTRICT other) { +void LocalizedMessage::InternalSwap(LocalizedMessage* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.locale_, &other->_impl_.locale_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.message_, &other->_impl_.message_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &locale_, lhs_arena, + &other->locale_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &message_, lhs_arena, + &other->message_, rhs_arena + ); } -::google::protobuf::Metadata LocalizedMessage::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata LocalizedMessage::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_getter, &descriptor_table_google_2frpc_2ferror_5fdetails_2eproto_once, file_level_metadata_google_2frpc_2ferror_5fdetails_2eproto[14]); } + // @@protoc_insertion_point(namespace_scope) } // namespace rpc } // namespace google -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::google::rpc::ErrorInfo_MetadataEntry_DoNotUse* +Arena::CreateMaybeMessage< ::google::rpc::ErrorInfo_MetadataEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::rpc::ErrorInfo_MetadataEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::google::rpc::ErrorInfo* +Arena::CreateMaybeMessage< ::google::rpc::ErrorInfo >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::rpc::ErrorInfo >(arena); +} +template<> PROTOBUF_NOINLINE ::google::rpc::RetryInfo* +Arena::CreateMaybeMessage< ::google::rpc::RetryInfo >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::rpc::RetryInfo >(arena); +} +template<> PROTOBUF_NOINLINE ::google::rpc::DebugInfo* +Arena::CreateMaybeMessage< ::google::rpc::DebugInfo >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::rpc::DebugInfo >(arena); +} +template<> PROTOBUF_NOINLINE ::google::rpc::QuotaFailure_Violation* +Arena::CreateMaybeMessage< ::google::rpc::QuotaFailure_Violation >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::rpc::QuotaFailure_Violation >(arena); +} +template<> PROTOBUF_NOINLINE ::google::rpc::QuotaFailure* +Arena::CreateMaybeMessage< ::google::rpc::QuotaFailure >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::rpc::QuotaFailure >(arena); +} +template<> PROTOBUF_NOINLINE ::google::rpc::PreconditionFailure_Violation* +Arena::CreateMaybeMessage< ::google::rpc::PreconditionFailure_Violation >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::rpc::PreconditionFailure_Violation >(arena); +} +template<> PROTOBUF_NOINLINE ::google::rpc::PreconditionFailure* +Arena::CreateMaybeMessage< ::google::rpc::PreconditionFailure >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::rpc::PreconditionFailure >(arena); +} +template<> PROTOBUF_NOINLINE ::google::rpc::BadRequest_FieldViolation* +Arena::CreateMaybeMessage< ::google::rpc::BadRequest_FieldViolation >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::rpc::BadRequest_FieldViolation >(arena); +} +template<> PROTOBUF_NOINLINE ::google::rpc::BadRequest* +Arena::CreateMaybeMessage< ::google::rpc::BadRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::rpc::BadRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::google::rpc::RequestInfo* +Arena::CreateMaybeMessage< ::google::rpc::RequestInfo >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::rpc::RequestInfo >(arena); +} +template<> PROTOBUF_NOINLINE ::google::rpc::ResourceInfo* +Arena::CreateMaybeMessage< ::google::rpc::ResourceInfo >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::rpc::ResourceInfo >(arena); +} +template<> PROTOBUF_NOINLINE ::google::rpc::Help_Link* +Arena::CreateMaybeMessage< ::google::rpc::Help_Link >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::rpc::Help_Link >(arena); +} +template<> PROTOBUF_NOINLINE ::google::rpc::Help* +Arena::CreateMaybeMessage< ::google::rpc::Help >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::rpc::Help >(arena); +} +template<> PROTOBUF_NOINLINE ::google::rpc::LocalizedMessage* +Arena::CreateMaybeMessage< ::google::rpc::LocalizedMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::rpc::LocalizedMessage >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/google/rpc/error_details.pb.h b/src/viam/api/google/rpc/error_details.pb.h index f9d54417b..96be31f83 100644 --- a/src/viam/api/google/rpc/error_details.pb.h +++ b/src/viam/api/google/rpc/error_details.pb.h @@ -1,64 +1,53 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/rpc/error_details.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2frpc_2ferror_5fdetails_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_google_2frpc_2ferror_5fdetails_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2frpc_2ferror_5fdetails_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_google_2frpc_2ferror_5fdetails_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/map.h" // IWYU pragma: export -#include "google/protobuf/map_entry.h" -#include "google/protobuf/map_field_inl.h" -#include "google/protobuf/unknown_field_set.h" -#include "google/protobuf/duration.pb.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include #define PROTOBUF_INTERNAL_EXPORT_google_2frpc_2ferror_5fdetails_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_google_2frpc_2ferror_5fdetails_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_google_2frpc_2ferror_5fdetails_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2frpc_2ferror_5fdetails_2eproto; namespace google { namespace rpc { class BadRequest; @@ -107,42 +96,79 @@ class RetryInfo; struct RetryInfoDefaultTypeInternal; extern RetryInfoDefaultTypeInternal _RetryInfo_default_instance_; } // namespace rpc -namespace protobuf { -} // namespace protobuf } // namespace google - +PROTOBUF_NAMESPACE_OPEN +template<> ::google::rpc::BadRequest* Arena::CreateMaybeMessage<::google::rpc::BadRequest>(Arena*); +template<> ::google::rpc::BadRequest_FieldViolation* Arena::CreateMaybeMessage<::google::rpc::BadRequest_FieldViolation>(Arena*); +template<> ::google::rpc::DebugInfo* Arena::CreateMaybeMessage<::google::rpc::DebugInfo>(Arena*); +template<> ::google::rpc::ErrorInfo* Arena::CreateMaybeMessage<::google::rpc::ErrorInfo>(Arena*); +template<> ::google::rpc::ErrorInfo_MetadataEntry_DoNotUse* Arena::CreateMaybeMessage<::google::rpc::ErrorInfo_MetadataEntry_DoNotUse>(Arena*); +template<> ::google::rpc::Help* Arena::CreateMaybeMessage<::google::rpc::Help>(Arena*); +template<> ::google::rpc::Help_Link* Arena::CreateMaybeMessage<::google::rpc::Help_Link>(Arena*); +template<> ::google::rpc::LocalizedMessage* Arena::CreateMaybeMessage<::google::rpc::LocalizedMessage>(Arena*); +template<> ::google::rpc::PreconditionFailure* Arena::CreateMaybeMessage<::google::rpc::PreconditionFailure>(Arena*); +template<> ::google::rpc::PreconditionFailure_Violation* Arena::CreateMaybeMessage<::google::rpc::PreconditionFailure_Violation>(Arena*); +template<> ::google::rpc::QuotaFailure* Arena::CreateMaybeMessage<::google::rpc::QuotaFailure>(Arena*); +template<> ::google::rpc::QuotaFailure_Violation* Arena::CreateMaybeMessage<::google::rpc::QuotaFailure_Violation>(Arena*); +template<> ::google::rpc::RequestInfo* Arena::CreateMaybeMessage<::google::rpc::RequestInfo>(Arena*); +template<> ::google::rpc::ResourceInfo* Arena::CreateMaybeMessage<::google::rpc::ResourceInfo>(Arena*); +template<> ::google::rpc::RetryInfo* Arena::CreateMaybeMessage<::google::rpc::RetryInfo>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace google { namespace rpc { // =================================================================== +class ErrorInfo_MetadataEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + ErrorInfo_MetadataEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR ErrorInfo_MetadataEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit ErrorInfo_MetadataEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const ErrorInfo_MetadataEntry_DoNotUse& other); + static const ErrorInfo_MetadataEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_ErrorInfo_MetadataEntry_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, "google.rpc.ErrorInfo.MetadataEntry.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, "google.rpc.ErrorInfo.MetadataEntry.value"); + } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + friend struct ::TableStruct_google_2frpc_2ferror_5fdetails_2eproto; +}; // ------------------------------------------------------------------- -class ResourceInfo final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.rpc.ResourceInfo) */ { +class ErrorInfo final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.rpc.ErrorInfo) */ { public: - inline ResourceInfo() : ResourceInfo(nullptr) {} - ~ResourceInfo() override; - template - explicit PROTOBUF_CONSTEXPR ResourceInfo(::google::protobuf::internal::ConstantInitialized); + inline ErrorInfo() : ErrorInfo(nullptr) {} + ~ErrorInfo() override; + explicit PROTOBUF_CONSTEXPR ErrorInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ResourceInfo(const ResourceInfo& from) - : ResourceInfo(nullptr, from) {} - ResourceInfo(ResourceInfo&& from) noexcept - : ResourceInfo() { + ErrorInfo(const ErrorInfo& from); + ErrorInfo(ErrorInfo&& from) noexcept + : ErrorInfo() { *this = ::std::move(from); } - inline ResourceInfo& operator=(const ResourceInfo& from) { + inline ErrorInfo& operator=(const ErrorInfo& from) { CopyFrom(from); return *this; } - inline ResourceInfo& operator=(ResourceInfo&& from) noexcept { + inline ErrorInfo& operator=(ErrorInfo&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -152,232 +178,187 @@ class ResourceInfo final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ResourceInfo& default_instance() { + static const ErrorInfo& default_instance() { return *internal_default_instance(); } - static inline const ResourceInfo* internal_default_instance() { - return reinterpret_cast( - &_ResourceInfo_default_instance_); + static inline const ErrorInfo* internal_default_instance() { + return reinterpret_cast( + &_ErrorInfo_default_instance_); } static constexpr int kIndexInFileMessages = - 11; + 1; - friend void swap(ResourceInfo& a, ResourceInfo& b) { + friend void swap(ErrorInfo& a, ErrorInfo& b) { a.Swap(&b); } - inline void Swap(ResourceInfo* other) { + inline void Swap(ErrorInfo* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ResourceInfo* other) { + void UnsafeArenaSwap(ErrorInfo* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ResourceInfo* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ResourceInfo& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ResourceInfo& from) { - ResourceInfo::MergeImpl(*this, from); + ErrorInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ErrorInfo& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ErrorInfo& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ResourceInfo* other); + void SetCachedSize(int size) const final; + void InternalSwap(ErrorInfo* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.rpc.ResourceInfo"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.rpc.ErrorInfo"; } protected: - explicit ResourceInfo(::google::protobuf::Arena* arena); - ResourceInfo(::google::protobuf::Arena* arena, const ResourceInfo& from); + explicit ErrorInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- + // accessors ------------------------------------------------------- enum : int { - kResourceTypeFieldNumber = 1, - kResourceNameFieldNumber = 2, - kOwnerFieldNumber = 3, - kDescriptionFieldNumber = 4, + kMetadataFieldNumber = 3, + kReasonFieldNumber = 1, + kDomainFieldNumber = 2, }; - // string resource_type = 1 [json_name = "resourceType"]; - void clear_resource_type() ; - const std::string& resource_type() const; - template - void set_resource_type(Arg_&& arg, Args_... args); - std::string* mutable_resource_type(); - PROTOBUF_NODISCARD std::string* release_resource_type(); - void set_allocated_resource_type(std::string* value); - + // map metadata = 3 [json_name = "metadata"]; + int metadata_size() const; private: - const std::string& _internal_resource_type() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_resource_type( - const std::string& value); - std::string* _internal_mutable_resource_type(); - + int _internal_metadata_size() const; public: - // string resource_name = 2 [json_name = "resourceName"]; - void clear_resource_name() ; - const std::string& resource_name() const; - template - void set_resource_name(Arg_&& arg, Args_... args); - std::string* mutable_resource_name(); - PROTOBUF_NODISCARD std::string* release_resource_name(); - void set_allocated_resource_name(std::string* value); - + void clear_metadata(); private: - const std::string& _internal_resource_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_resource_name( - const std::string& value); - std::string* _internal_mutable_resource_name(); - + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + _internal_metadata() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + _internal_mutable_metadata(); public: - // string owner = 3 [json_name = "owner"]; - void clear_owner() ; - const std::string& owner() const; - template - void set_owner(Arg_&& arg, Args_... args); - std::string* mutable_owner(); - PROTOBUF_NODISCARD std::string* release_owner(); - void set_allocated_owner(std::string* value); + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + metadata() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + mutable_metadata(); + // string reason = 1 [json_name = "reason"]; + void clear_reason(); + const std::string& reason() const; + template + void set_reason(ArgT0&& arg0, ArgT... args); + std::string* mutable_reason(); + PROTOBUF_NODISCARD std::string* release_reason(); + void set_allocated_reason(std::string* reason); private: - const std::string& _internal_owner() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_owner( - const std::string& value); - std::string* _internal_mutable_owner(); - + const std::string& _internal_reason() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_reason(const std::string& value); + std::string* _internal_mutable_reason(); public: - // string description = 4 [json_name = "description"]; - void clear_description() ; - const std::string& description() const; - template - void set_description(Arg_&& arg, Args_... args); - std::string* mutable_description(); - PROTOBUF_NODISCARD std::string* release_description(); - void set_allocated_description(std::string* value); + // string domain = 2 [json_name = "domain"]; + void clear_domain(); + const std::string& domain() const; + template + void set_domain(ArgT0&& arg0, ArgT... args); + std::string* mutable_domain(); + PROTOBUF_NODISCARD std::string* release_domain(); + void set_allocated_domain(std::string* domain); private: - const std::string& _internal_description() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_description( - const std::string& value); - std::string* _internal_mutable_description(); - + const std::string& _internal_domain() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_domain(const std::string& value); + std::string* _internal_mutable_domain(); public: - // @@protoc_insertion_point(class_scope:google.rpc.ResourceInfo) + + // @@protoc_insertion_point(class_scope:google.rpc.ErrorInfo) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 0, - 74, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr resource_type_; - ::google::protobuf::internal::ArenaStringPtr resource_name_; - ::google::protobuf::internal::ArenaStringPtr owner_; - ::google::protobuf::internal::ArenaStringPtr description_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + ErrorInfo_MetadataEntry_DoNotUse, + std::string, std::string, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr reason_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr domain_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2frpc_2ferror_5fdetails_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class RequestInfo final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.rpc.RequestInfo) */ { +class RetryInfo final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.rpc.RetryInfo) */ { public: - inline RequestInfo() : RequestInfo(nullptr) {} - ~RequestInfo() override; - template - explicit PROTOBUF_CONSTEXPR RequestInfo(::google::protobuf::internal::ConstantInitialized); + inline RetryInfo() : RetryInfo(nullptr) {} + ~RetryInfo() override; + explicit PROTOBUF_CONSTEXPR RetryInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline RequestInfo(const RequestInfo& from) - : RequestInfo(nullptr, from) {} - RequestInfo(RequestInfo&& from) noexcept - : RequestInfo() { + RetryInfo(const RetryInfo& from); + RetryInfo(RetryInfo&& from) noexcept + : RetryInfo() { *this = ::std::move(from); } - inline RequestInfo& operator=(const RequestInfo& from) { + inline RetryInfo& operator=(const RetryInfo& from) { CopyFrom(from); return *this; } - inline RequestInfo& operator=(RequestInfo&& from) noexcept { + inline RetryInfo& operator=(RetryInfo&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -387,196 +368,149 @@ class RequestInfo final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const RequestInfo& default_instance() { + static const RetryInfo& default_instance() { return *internal_default_instance(); } - static inline const RequestInfo* internal_default_instance() { - return reinterpret_cast( - &_RequestInfo_default_instance_); + static inline const RetryInfo* internal_default_instance() { + return reinterpret_cast( + &_RetryInfo_default_instance_); } static constexpr int kIndexInFileMessages = - 10; + 2; - friend void swap(RequestInfo& a, RequestInfo& b) { + friend void swap(RetryInfo& a, RetryInfo& b) { a.Swap(&b); } - inline void Swap(RequestInfo* other) { + inline void Swap(RetryInfo* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RequestInfo* other) { + void UnsafeArenaSwap(RetryInfo* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - RequestInfo* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const RequestInfo& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const RequestInfo& from) { - RequestInfo::MergeImpl(*this, from); + RetryInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const RetryInfo& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const RetryInfo& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(RequestInfo* other); + void SetCachedSize(int size) const final; + void InternalSwap(RetryInfo* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.rpc.RequestInfo"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.rpc.RetryInfo"; } protected: - explicit RequestInfo(::google::protobuf::Arena* arena); - RequestInfo(::google::protobuf::Arena* arena, const RequestInfo& from); + explicit RetryInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kRequestIdFieldNumber = 1, - kServingDataFieldNumber = 2, + kRetryDelayFieldNumber = 1, }; - // string request_id = 1 [json_name = "requestId"]; - void clear_request_id() ; - const std::string& request_id() const; - template - void set_request_id(Arg_&& arg, Args_... args); - std::string* mutable_request_id(); - PROTOBUF_NODISCARD std::string* release_request_id(); - void set_allocated_request_id(std::string* value); - + // .google.protobuf.Duration retry_delay = 1 [json_name = "retryDelay"]; + bool has_retry_delay() const; private: - const std::string& _internal_request_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_request_id( - const std::string& value); - std::string* _internal_mutable_request_id(); - + bool _internal_has_retry_delay() const; public: - // string serving_data = 2 [json_name = "servingData"]; - void clear_serving_data() ; - const std::string& serving_data() const; - template - void set_serving_data(Arg_&& arg, Args_... args); - std::string* mutable_serving_data(); - PROTOBUF_NODISCARD std::string* release_serving_data(); - void set_allocated_serving_data(std::string* value); - + void clear_retry_delay(); + const ::PROTOBUF_NAMESPACE_ID::Duration& retry_delay() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Duration* release_retry_delay(); + ::PROTOBUF_NAMESPACE_ID::Duration* mutable_retry_delay(); + void set_allocated_retry_delay(::PROTOBUF_NAMESPACE_ID::Duration* retry_delay); private: - const std::string& _internal_serving_data() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_serving_data( - const std::string& value); - std::string* _internal_mutable_serving_data(); - + const ::PROTOBUF_NAMESPACE_ID::Duration& _internal_retry_delay() const; + ::PROTOBUF_NAMESPACE_ID::Duration* _internal_mutable_retry_delay(); public: - // @@protoc_insertion_point(class_scope:google.rpc.RequestInfo) + void unsafe_arena_set_allocated_retry_delay( + ::PROTOBUF_NAMESPACE_ID::Duration* retry_delay); + ::PROTOBUF_NAMESPACE_ID::Duration* unsafe_arena_release_retry_delay(); + + // @@protoc_insertion_point(class_scope:google.rpc.RetryInfo) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 53, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr request_id_; - ::google::protobuf::internal::ArenaStringPtr serving_data_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::Duration* retry_delay_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2frpc_2ferror_5fdetails_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class QuotaFailure_Violation final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.rpc.QuotaFailure.Violation) */ { +class DebugInfo final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.rpc.DebugInfo) */ { public: - inline QuotaFailure_Violation() : QuotaFailure_Violation(nullptr) {} - ~QuotaFailure_Violation() override; - template - explicit PROTOBUF_CONSTEXPR QuotaFailure_Violation(::google::protobuf::internal::ConstantInitialized); + inline DebugInfo() : DebugInfo(nullptr) {} + ~DebugInfo() override; + explicit PROTOBUF_CONSTEXPR DebugInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline QuotaFailure_Violation(const QuotaFailure_Violation& from) - : QuotaFailure_Violation(nullptr, from) {} - QuotaFailure_Violation(QuotaFailure_Violation&& from) noexcept - : QuotaFailure_Violation() { + DebugInfo(const DebugInfo& from); + DebugInfo(DebugInfo&& from) noexcept + : DebugInfo() { *this = ::std::move(from); } - inline QuotaFailure_Violation& operator=(const QuotaFailure_Violation& from) { + inline DebugInfo& operator=(const DebugInfo& from) { CopyFrom(from); return *this; } - inline QuotaFailure_Violation& operator=(QuotaFailure_Violation&& from) noexcept { + inline DebugInfo& operator=(DebugInfo&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -586,196 +520,171 @@ class QuotaFailure_Violation final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const QuotaFailure_Violation& default_instance() { + static const DebugInfo& default_instance() { return *internal_default_instance(); } - static inline const QuotaFailure_Violation* internal_default_instance() { - return reinterpret_cast( - &_QuotaFailure_Violation_default_instance_); + static inline const DebugInfo* internal_default_instance() { + return reinterpret_cast( + &_DebugInfo_default_instance_); } static constexpr int kIndexInFileMessages = - 4; + 3; - friend void swap(QuotaFailure_Violation& a, QuotaFailure_Violation& b) { + friend void swap(DebugInfo& a, DebugInfo& b) { a.Swap(&b); } - inline void Swap(QuotaFailure_Violation* other) { + inline void Swap(DebugInfo* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(QuotaFailure_Violation* other) { + void UnsafeArenaSwap(DebugInfo* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - QuotaFailure_Violation* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const QuotaFailure_Violation& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const QuotaFailure_Violation& from) { - QuotaFailure_Violation::MergeImpl(*this, from); + DebugInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DebugInfo& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const DebugInfo& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(QuotaFailure_Violation* other); + void SetCachedSize(int size) const final; + void InternalSwap(DebugInfo* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.rpc.QuotaFailure.Violation"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.rpc.DebugInfo"; } protected: - explicit QuotaFailure_Violation(::google::protobuf::Arena* arena); - QuotaFailure_Violation(::google::protobuf::Arena* arena, const QuotaFailure_Violation& from); + explicit DebugInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kSubjectFieldNumber = 1, - kDescriptionFieldNumber = 2, + kStackEntriesFieldNumber = 1, + kDetailFieldNumber = 2, }; - // string subject = 1 [json_name = "subject"]; - void clear_subject() ; - const std::string& subject() const; - template - void set_subject(Arg_&& arg, Args_... args); - std::string* mutable_subject(); - PROTOBUF_NODISCARD std::string* release_subject(); - void set_allocated_subject(std::string* value); - - private: - const std::string& _internal_subject() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_subject( - const std::string& value); - std::string* _internal_mutable_subject(); - - public: - // string description = 2 [json_name = "description"]; - void clear_description() ; - const std::string& description() const; - template - void set_description(Arg_&& arg, Args_... args); - std::string* mutable_description(); - PROTOBUF_NODISCARD std::string* release_description(); - void set_allocated_description(std::string* value); - + // repeated string stack_entries = 1 [json_name = "stackEntries"]; + int stack_entries_size() const; private: - const std::string& _internal_description() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_description( - const std::string& value); - std::string* _internal_mutable_description(); - + int _internal_stack_entries_size() const; + public: + void clear_stack_entries(); + const std::string& stack_entries(int index) const; + std::string* mutable_stack_entries(int index); + void set_stack_entries(int index, const std::string& value); + void set_stack_entries(int index, std::string&& value); + void set_stack_entries(int index, const char* value); + void set_stack_entries(int index, const char* value, size_t size); + std::string* add_stack_entries(); + void add_stack_entries(const std::string& value); + void add_stack_entries(std::string&& value); + void add_stack_entries(const char* value); + void add_stack_entries(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& stack_entries() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_stack_entries(); + private: + const std::string& _internal_stack_entries(int index) const; + std::string* _internal_add_stack_entries(); public: - // @@protoc_insertion_point(class_scope:google.rpc.QuotaFailure.Violation) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 60, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr subject_; - ::google::protobuf::internal::ArenaStringPtr description_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + // string detail = 2 [json_name = "detail"]; + void clear_detail(); + const std::string& detail() const; + template + void set_detail(ArgT0&& arg0, ArgT... args); + std::string* mutable_detail(); + PROTOBUF_NODISCARD std::string* release_detail(); + void set_allocated_detail(std::string* detail); + private: + const std::string& _internal_detail() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_detail(const std::string& value); + std::string* _internal_mutable_detail(); + public: + + // @@protoc_insertion_point(class_scope:google.rpc.DebugInfo) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField stack_entries_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr detail_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2frpc_2ferror_5fdetails_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class PreconditionFailure_Violation final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.rpc.PreconditionFailure.Violation) */ { +class QuotaFailure_Violation final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.rpc.QuotaFailure.Violation) */ { public: - inline PreconditionFailure_Violation() : PreconditionFailure_Violation(nullptr) {} - ~PreconditionFailure_Violation() override; - template - explicit PROTOBUF_CONSTEXPR PreconditionFailure_Violation(::google::protobuf::internal::ConstantInitialized); + inline QuotaFailure_Violation() : QuotaFailure_Violation(nullptr) {} + ~QuotaFailure_Violation() override; + explicit PROTOBUF_CONSTEXPR QuotaFailure_Violation(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline PreconditionFailure_Violation(const PreconditionFailure_Violation& from) - : PreconditionFailure_Violation(nullptr, from) {} - PreconditionFailure_Violation(PreconditionFailure_Violation&& from) noexcept - : PreconditionFailure_Violation() { + QuotaFailure_Violation(const QuotaFailure_Violation& from); + QuotaFailure_Violation(QuotaFailure_Violation&& from) noexcept + : QuotaFailure_Violation() { *this = ::std::move(from); } - inline PreconditionFailure_Violation& operator=(const PreconditionFailure_Violation& from) { + inline QuotaFailure_Violation& operator=(const QuotaFailure_Violation& from) { CopyFrom(from); return *this; } - inline PreconditionFailure_Violation& operator=(PreconditionFailure_Violation&& from) noexcept { + inline QuotaFailure_Violation& operator=(QuotaFailure_Violation&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -785,214 +694,161 @@ class PreconditionFailure_Violation final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const PreconditionFailure_Violation& default_instance() { + static const QuotaFailure_Violation& default_instance() { return *internal_default_instance(); } - static inline const PreconditionFailure_Violation* internal_default_instance() { - return reinterpret_cast( - &_PreconditionFailure_Violation_default_instance_); + static inline const QuotaFailure_Violation* internal_default_instance() { + return reinterpret_cast( + &_QuotaFailure_Violation_default_instance_); } static constexpr int kIndexInFileMessages = - 6; + 4; - friend void swap(PreconditionFailure_Violation& a, PreconditionFailure_Violation& b) { + friend void swap(QuotaFailure_Violation& a, QuotaFailure_Violation& b) { a.Swap(&b); } - inline void Swap(PreconditionFailure_Violation* other) { + inline void Swap(QuotaFailure_Violation* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(PreconditionFailure_Violation* other) { + void UnsafeArenaSwap(QuotaFailure_Violation* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - PreconditionFailure_Violation* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const PreconditionFailure_Violation& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const PreconditionFailure_Violation& from) { - PreconditionFailure_Violation::MergeImpl(*this, from); + QuotaFailure_Violation* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const QuotaFailure_Violation& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const QuotaFailure_Violation& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(PreconditionFailure_Violation* other); + void SetCachedSize(int size) const final; + void InternalSwap(QuotaFailure_Violation* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.rpc.PreconditionFailure.Violation"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.rpc.QuotaFailure.Violation"; } protected: - explicit PreconditionFailure_Violation(::google::protobuf::Arena* arena); - PreconditionFailure_Violation(::google::protobuf::Arena* arena, const PreconditionFailure_Violation& from); + explicit QuotaFailure_Violation(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kTypeFieldNumber = 1, - kSubjectFieldNumber = 2, - kDescriptionFieldNumber = 3, + kSubjectFieldNumber = 1, + kDescriptionFieldNumber = 2, }; - // string type = 1 [json_name = "type"]; - void clear_type() ; - const std::string& type() const; - template - void set_type(Arg_&& arg, Args_... args); - std::string* mutable_type(); - PROTOBUF_NODISCARD std::string* release_type(); - void set_allocated_type(std::string* value); - - 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 subject = 2 [json_name = "subject"]; - void clear_subject() ; + // string subject = 1 [json_name = "subject"]; + void clear_subject(); const std::string& subject() const; - template - void set_subject(Arg_&& arg, Args_... args); + template + void set_subject(ArgT0&& arg0, ArgT... args); std::string* mutable_subject(); PROTOBUF_NODISCARD std::string* release_subject(); - void set_allocated_subject(std::string* value); - + void set_allocated_subject(std::string* subject); private: const std::string& _internal_subject() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_subject( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_subject(const std::string& value); std::string* _internal_mutable_subject(); - public: - // string description = 3 [json_name = "description"]; - void clear_description() ; + + // string description = 2 [json_name = "description"]; + void clear_description(); const std::string& description() const; - template - void set_description(Arg_&& arg, Args_... args); + template + void set_description(ArgT0&& arg0, ArgT... args); std::string* mutable_description(); PROTOBUF_NODISCARD std::string* release_description(); - void set_allocated_description(std::string* value); - + void set_allocated_description(std::string* description); private: const std::string& _internal_description() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_description( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_description(const std::string& value); std::string* _internal_mutable_description(); - public: - // @@protoc_insertion_point(class_scope:google.rpc.PreconditionFailure.Violation) + + // @@protoc_insertion_point(class_scope:google.rpc.QuotaFailure.Violation) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 0, - 71, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr type_; - ::google::protobuf::internal::ArenaStringPtr subject_; - ::google::protobuf::internal::ArenaStringPtr description_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr subject_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr description_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2frpc_2ferror_5fdetails_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class LocalizedMessage final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.rpc.LocalizedMessage) */ { +class QuotaFailure final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.rpc.QuotaFailure) */ { public: - inline LocalizedMessage() : LocalizedMessage(nullptr) {} - ~LocalizedMessage() override; - template - explicit PROTOBUF_CONSTEXPR LocalizedMessage(::google::protobuf::internal::ConstantInitialized); + inline QuotaFailure() : QuotaFailure(nullptr) {} + ~QuotaFailure() override; + explicit PROTOBUF_CONSTEXPR QuotaFailure(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline LocalizedMessage(const LocalizedMessage& from) - : LocalizedMessage(nullptr, from) {} - LocalizedMessage(LocalizedMessage&& from) noexcept - : LocalizedMessage() { + QuotaFailure(const QuotaFailure& from); + QuotaFailure(QuotaFailure&& from) noexcept + : QuotaFailure() { *this = ::std::move(from); } - inline LocalizedMessage& operator=(const LocalizedMessage& from) { + inline QuotaFailure& operator=(const QuotaFailure& from) { CopyFrom(from); return *this; } - inline LocalizedMessage& operator=(LocalizedMessage&& from) noexcept { + inline QuotaFailure& operator=(QuotaFailure&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1002,196 +858,151 @@ class LocalizedMessage final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const LocalizedMessage& default_instance() { + static const QuotaFailure& default_instance() { return *internal_default_instance(); } - static inline const LocalizedMessage* internal_default_instance() { - return reinterpret_cast( - &_LocalizedMessage_default_instance_); + static inline const QuotaFailure* internal_default_instance() { + return reinterpret_cast( + &_QuotaFailure_default_instance_); } static constexpr int kIndexInFileMessages = - 14; + 5; - friend void swap(LocalizedMessage& a, LocalizedMessage& b) { + friend void swap(QuotaFailure& a, QuotaFailure& b) { a.Swap(&b); } - inline void Swap(LocalizedMessage* other) { + inline void Swap(QuotaFailure* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(LocalizedMessage* other) { + void UnsafeArenaSwap(QuotaFailure* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - LocalizedMessage* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const LocalizedMessage& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const LocalizedMessage& from) { - LocalizedMessage::MergeImpl(*this, from); + QuotaFailure* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const QuotaFailure& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const QuotaFailure& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(LocalizedMessage* other); + void SetCachedSize(int size) const final; + void InternalSwap(QuotaFailure* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.rpc.LocalizedMessage"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.rpc.QuotaFailure"; } protected: - explicit LocalizedMessage(::google::protobuf::Arena* arena); - LocalizedMessage(::google::protobuf::Arena* arena, const LocalizedMessage& from); + explicit QuotaFailure(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- + typedef QuotaFailure_Violation Violation; + // accessors ------------------------------------------------------- enum : int { - kLocaleFieldNumber = 1, - kMessageFieldNumber = 2, + kViolationsFieldNumber = 1, }; - // string locale = 1 [json_name = "locale"]; - void clear_locale() ; - const std::string& locale() const; - template - void set_locale(Arg_&& arg, Args_... args); - std::string* mutable_locale(); - PROTOBUF_NODISCARD std::string* release_locale(); - void set_allocated_locale(std::string* value); - + // repeated .google.rpc.QuotaFailure.Violation violations = 1 [json_name = "violations"]; + int violations_size() const; private: - const std::string& _internal_locale() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_locale( - const std::string& value); - std::string* _internal_mutable_locale(); - + int _internal_violations_size() const; public: - // string message = 2 [json_name = "message"]; - void clear_message() ; - const std::string& message() const; - template - void set_message(Arg_&& arg, Args_... args); - std::string* mutable_message(); - PROTOBUF_NODISCARD std::string* release_message(); - void set_allocated_message(std::string* value); - + void clear_violations(); + ::google::rpc::QuotaFailure_Violation* mutable_violations(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::QuotaFailure_Violation >* + mutable_violations(); private: - const std::string& _internal_message() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_message( - const std::string& value); - std::string* _internal_mutable_message(); - + const ::google::rpc::QuotaFailure_Violation& _internal_violations(int index) const; + ::google::rpc::QuotaFailure_Violation* _internal_add_violations(); public: - // @@protoc_insertion_point(class_scope:google.rpc.LocalizedMessage) + const ::google::rpc::QuotaFailure_Violation& violations(int index) const; + ::google::rpc::QuotaFailure_Violation* add_violations(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::QuotaFailure_Violation >& + violations() const; + + // @@protoc_insertion_point(class_scope:google.rpc.QuotaFailure) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 49, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr locale_; - ::google::protobuf::internal::ArenaStringPtr message_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::QuotaFailure_Violation > violations_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2frpc_2ferror_5fdetails_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Help_Link final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.rpc.Help.Link) */ { +class PreconditionFailure_Violation final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.rpc.PreconditionFailure.Violation) */ { public: - inline Help_Link() : Help_Link(nullptr) {} - ~Help_Link() override; - template - explicit PROTOBUF_CONSTEXPR Help_Link(::google::protobuf::internal::ConstantInitialized); + inline PreconditionFailure_Violation() : PreconditionFailure_Violation(nullptr) {} + ~PreconditionFailure_Violation() override; + explicit PROTOBUF_CONSTEXPR PreconditionFailure_Violation(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Help_Link(const Help_Link& from) - : Help_Link(nullptr, from) {} - Help_Link(Help_Link&& from) noexcept - : Help_Link() { + PreconditionFailure_Violation(const PreconditionFailure_Violation& from); + PreconditionFailure_Violation(PreconditionFailure_Violation&& from) noexcept + : PreconditionFailure_Violation() { *this = ::std::move(from); } - inline Help_Link& operator=(const Help_Link& from) { + inline PreconditionFailure_Violation& operator=(const PreconditionFailure_Violation& from) { CopyFrom(from); return *this; } - inline Help_Link& operator=(Help_Link&& from) noexcept { + inline PreconditionFailure_Violation& operator=(PreconditionFailure_Violation&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1201,226 +1012,177 @@ class Help_Link final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Help_Link& default_instance() { + static const PreconditionFailure_Violation& default_instance() { return *internal_default_instance(); } - static inline const Help_Link* internal_default_instance() { - return reinterpret_cast( - &_Help_Link_default_instance_); + static inline const PreconditionFailure_Violation* internal_default_instance() { + return reinterpret_cast( + &_PreconditionFailure_Violation_default_instance_); } static constexpr int kIndexInFileMessages = - 12; + 6; - friend void swap(Help_Link& a, Help_Link& b) { + friend void swap(PreconditionFailure_Violation& a, PreconditionFailure_Violation& b) { a.Swap(&b); } - inline void Swap(Help_Link* other) { + inline void Swap(PreconditionFailure_Violation* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Help_Link* other) { + void UnsafeArenaSwap(PreconditionFailure_Violation* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Help_Link* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Help_Link& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Help_Link& from) { - Help_Link::MergeImpl(*this, from); + PreconditionFailure_Violation* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const PreconditionFailure_Violation& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const PreconditionFailure_Violation& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Help_Link* other); + void SetCachedSize(int size) const final; + void InternalSwap(PreconditionFailure_Violation* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.rpc.Help.Link"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.rpc.PreconditionFailure.Violation"; } protected: - explicit Help_Link(::google::protobuf::Arena* arena); - Help_Link(::google::protobuf::Arena* arena, const Help_Link& from); + explicit PreconditionFailure_Violation(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kDescriptionFieldNumber = 1, - kUrlFieldNumber = 2, + kTypeFieldNumber = 1, + kSubjectFieldNumber = 2, + kDescriptionFieldNumber = 3, }; - // string description = 1 [json_name = "description"]; - void clear_description() ; + // string type = 1 [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 subject = 2 [json_name = "subject"]; + void clear_subject(); + const std::string& subject() const; + template + void set_subject(ArgT0&& arg0, ArgT... args); + std::string* mutable_subject(); + PROTOBUF_NODISCARD std::string* release_subject(); + void set_allocated_subject(std::string* subject); + private: + const std::string& _internal_subject() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_subject(const std::string& value); + std::string* _internal_mutable_subject(); + public: + + // string description = 3 [json_name = "description"]; + void clear_description(); const std::string& description() const; - template - void set_description(Arg_&& arg, Args_... args); + template + void set_description(ArgT0&& arg0, ArgT... args); std::string* mutable_description(); PROTOBUF_NODISCARD std::string* release_description(); - void set_allocated_description(std::string* value); - + void set_allocated_description(std::string* description); private: const std::string& _internal_description() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_description( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_description(const std::string& value); std::string* _internal_mutable_description(); - public: - // string url = 2 [json_name = "url"]; - void clear_url() ; - const std::string& url() const; - template - void set_url(Arg_&& arg, Args_... args); - std::string* mutable_url(); - PROTOBUF_NODISCARD std::string* release_url(); - void set_allocated_url(std::string* value); - private: - const std::string& _internal_url() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_url( - const std::string& value); - std::string* _internal_mutable_url(); - - public: - // @@protoc_insertion_point(class_scope:google.rpc.Help.Link) + // @@protoc_insertion_point(class_scope:google.rpc.PreconditionFailure.Violation) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 43, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr description_; - ::google::protobuf::internal::ArenaStringPtr url_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_google_2frpc_2ferror_5fdetails_2eproto; -};// ------------------------------------------------------------------- - -class ErrorInfo_MetadataEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry< - ErrorInfo_MetadataEntry_DoNotUse, std::string, std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING> { - public: - using SuperType = ::google::protobuf::internal::MapEntry< - ErrorInfo_MetadataEntry_DoNotUse, std::string, std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING>; - ErrorInfo_MetadataEntry_DoNotUse(); - template - explicit PROTOBUF_CONSTEXPR ErrorInfo_MetadataEntry_DoNotUse( - ::google::protobuf::internal::ConstantInitialized); - explicit ErrorInfo_MetadataEntry_DoNotUse(::google::protobuf::Arena* arena); - static const ErrorInfo_MetadataEntry_DoNotUse* internal_default_instance() { - return reinterpret_cast( - &_ErrorInfo_MetadataEntry_DoNotUse_default_instance_); - } - static bool ValidateKey(std::string* s) { - return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "google.rpc.ErrorInfo.MetadataEntry.key"); - } - static bool ValidateValue(std::string* s) { - return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "google.rpc.ErrorInfo.MetadataEntry.value"); - } - ::google::protobuf::Metadata GetMetadata() const final; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr subject_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr description_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2frpc_2ferror_5fdetails_2eproto; }; // ------------------------------------------------------------------- -class DebugInfo final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.rpc.DebugInfo) */ { +class PreconditionFailure final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.rpc.PreconditionFailure) */ { public: - inline DebugInfo() : DebugInfo(nullptr) {} - ~DebugInfo() override; - template - explicit PROTOBUF_CONSTEXPR DebugInfo(::google::protobuf::internal::ConstantInitialized); + inline PreconditionFailure() : PreconditionFailure(nullptr) {} + ~PreconditionFailure() override; + explicit PROTOBUF_CONSTEXPR PreconditionFailure(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline DebugInfo(const DebugInfo& from) - : DebugInfo(nullptr, from) {} - DebugInfo(DebugInfo&& from) noexcept - : DebugInfo() { + PreconditionFailure(const PreconditionFailure& from); + PreconditionFailure(PreconditionFailure&& from) noexcept + : PreconditionFailure() { *this = ::std::move(from); } - inline DebugInfo& operator=(const DebugInfo& from) { + inline PreconditionFailure& operator=(const PreconditionFailure& from) { CopyFrom(from); return *this; } - inline DebugInfo& operator=(DebugInfo&& from) noexcept { + inline PreconditionFailure& operator=(PreconditionFailure&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1430,194 +1192,137 @@ class DebugInfo final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const DebugInfo& default_instance() { + static const PreconditionFailure& default_instance() { return *internal_default_instance(); } - static inline const DebugInfo* internal_default_instance() { - return reinterpret_cast( - &_DebugInfo_default_instance_); + static inline const PreconditionFailure* internal_default_instance() { + return reinterpret_cast( + &_PreconditionFailure_default_instance_); } static constexpr int kIndexInFileMessages = - 3; + 7; - friend void swap(DebugInfo& a, DebugInfo& b) { + friend void swap(PreconditionFailure& a, PreconditionFailure& b) { a.Swap(&b); } - inline void Swap(DebugInfo* other) { + inline void Swap(PreconditionFailure* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(DebugInfo* other) { + void UnsafeArenaSwap(PreconditionFailure* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - DebugInfo* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const DebugInfo& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const DebugInfo& from) { - DebugInfo::MergeImpl(*this, from); + PreconditionFailure* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const PreconditionFailure& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const PreconditionFailure& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(DebugInfo* other); + void SetCachedSize(int size) const final; + void InternalSwap(PreconditionFailure* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.rpc.DebugInfo"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.rpc.PreconditionFailure"; } protected: - explicit DebugInfo(::google::protobuf::Arena* arena); - DebugInfo(::google::protobuf::Arena* arena, const DebugInfo& from); + explicit PreconditionFailure(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- + typedef PreconditionFailure_Violation Violation; + // accessors ------------------------------------------------------- enum : int { - kStackEntriesFieldNumber = 1, - kDetailFieldNumber = 2, + kViolationsFieldNumber = 1, }; - // repeated string stack_entries = 1 [json_name = "stackEntries"]; - int stack_entries_size() const; + // repeated .google.rpc.PreconditionFailure.Violation violations = 1 [json_name = "violations"]; + int violations_size() const; private: - int _internal_stack_entries_size() const; - + int _internal_violations_size() const; public: - void clear_stack_entries() ; - const std::string& stack_entries(int index) const; - std::string* mutable_stack_entries(int index); - void set_stack_entries(int index, const std::string& value); - void set_stack_entries(int index, std::string&& value); - void set_stack_entries(int index, const char* value); - void set_stack_entries(int index, const char* value, std::size_t size); - void set_stack_entries(int index, absl::string_view value); - std::string* add_stack_entries(); - void add_stack_entries(const std::string& value); - void add_stack_entries(std::string&& value); - void add_stack_entries(const char* value); - void add_stack_entries(const char* value, std::size_t size); - void add_stack_entries(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& stack_entries() const; - ::google::protobuf::RepeatedPtrField* mutable_stack_entries(); - + void clear_violations(); + ::google::rpc::PreconditionFailure_Violation* mutable_violations(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::PreconditionFailure_Violation >* + mutable_violations(); private: - const ::google::protobuf::RepeatedPtrField& _internal_stack_entries() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_stack_entries(); - + const ::google::rpc::PreconditionFailure_Violation& _internal_violations(int index) const; + ::google::rpc::PreconditionFailure_Violation* _internal_add_violations(); public: - // string detail = 2 [json_name = "detail"]; - void clear_detail() ; - const std::string& detail() const; - template - void set_detail(Arg_&& arg, Args_... args); - std::string* mutable_detail(); - PROTOBUF_NODISCARD std::string* release_detail(); - void set_allocated_detail(std::string* value); - - private: - const std::string& _internal_detail() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_detail( - const std::string& value); - std::string* _internal_mutable_detail(); + const ::google::rpc::PreconditionFailure_Violation& violations(int index) const; + ::google::rpc::PreconditionFailure_Violation* add_violations(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::PreconditionFailure_Violation >& + violations() const; - public: - // @@protoc_insertion_point(class_scope:google.rpc.DebugInfo) + // @@protoc_insertion_point(class_scope:google.rpc.PreconditionFailure) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 48, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField stack_entries_; - ::google::protobuf::internal::ArenaStringPtr detail_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::PreconditionFailure_Violation > violations_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2frpc_2ferror_5fdetails_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class BadRequest_FieldViolation final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.rpc.BadRequest.FieldViolation) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.rpc.BadRequest.FieldViolation) */ { public: inline BadRequest_FieldViolation() : BadRequest_FieldViolation(nullptr) {} ~BadRequest_FieldViolation() override; - template - explicit PROTOBUF_CONSTEXPR BadRequest_FieldViolation(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR BadRequest_FieldViolation(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline BadRequest_FieldViolation(const BadRequest_FieldViolation& from) - : BadRequest_FieldViolation(nullptr, from) {} + BadRequest_FieldViolation(const BadRequest_FieldViolation& from); BadRequest_FieldViolation(BadRequest_FieldViolation&& from) noexcept : BadRequest_FieldViolation() { *this = ::std::move(from); @@ -1629,9 +1334,9 @@ class BadRequest_FieldViolation final : } inline BadRequest_FieldViolation& operator=(BadRequest_FieldViolation&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1641,22 +1346,13 @@ class BadRequest_FieldViolation final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const BadRequest_FieldViolation& default_instance() { @@ -1675,65 +1371,63 @@ class BadRequest_FieldViolation final : inline void Swap(BadRequest_FieldViolation* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(BadRequest_FieldViolation* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - BadRequest_FieldViolation* New(::google::protobuf::Arena* arena = nullptr) const final { + BadRequest_FieldViolation* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const BadRequest_FieldViolation& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const BadRequest_FieldViolation& from) { - BadRequest_FieldViolation::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const BadRequest_FieldViolation& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(BadRequest_FieldViolation* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "google.rpc.BadRequest.FieldViolation"; } protected: - explicit BadRequest_FieldViolation(::google::protobuf::Arena* arena); - BadRequest_FieldViolation(::google::protobuf::Arena* arena, const BadRequest_FieldViolation& from); + explicit BadRequest_FieldViolation(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1742,95 +1436,107 @@ class BadRequest_FieldViolation final : enum : int { kFieldFieldNumber = 1, kDescriptionFieldNumber = 2, + kReasonFieldNumber = 3, + kLocalizedMessageFieldNumber = 4, }; // string field = 1 [json_name = "field"]; - void clear_field() ; + void clear_field(); const std::string& field() const; - template - void set_field(Arg_&& arg, Args_... args); + template + void set_field(ArgT0&& arg0, ArgT... args); std::string* mutable_field(); PROTOBUF_NODISCARD std::string* release_field(); - void set_allocated_field(std::string* value); - + void set_allocated_field(std::string* field); private: const std::string& _internal_field() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_field( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_field(const std::string& value); std::string* _internal_mutable_field(); - public: + // string description = 2 [json_name = "description"]; - void clear_description() ; + void clear_description(); const std::string& description() const; - template - void set_description(Arg_&& arg, Args_... args); + template + void set_description(ArgT0&& arg0, ArgT... args); std::string* mutable_description(); PROTOBUF_NODISCARD std::string* release_description(); - void set_allocated_description(std::string* value); - + void set_allocated_description(std::string* description); private: const std::string& _internal_description() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_description( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_description(const std::string& value); std::string* _internal_mutable_description(); + public: + + // string reason = 3 [json_name = "reason"]; + void clear_reason(); + const std::string& reason() const; + template + void set_reason(ArgT0&& arg0, ArgT... args); + std::string* mutable_reason(); + PROTOBUF_NODISCARD std::string* release_reason(); + void set_allocated_reason(std::string* reason); + private: + const std::string& _internal_reason() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_reason(const std::string& value); + std::string* _internal_mutable_reason(); + public: + // .google.rpc.LocalizedMessage localized_message = 4 [json_name = "localizedMessage"]; + bool has_localized_message() const; + private: + bool _internal_has_localized_message() const; + public: + void clear_localized_message(); + const ::google::rpc::LocalizedMessage& localized_message() const; + PROTOBUF_NODISCARD ::google::rpc::LocalizedMessage* release_localized_message(); + ::google::rpc::LocalizedMessage* mutable_localized_message(); + void set_allocated_localized_message(::google::rpc::LocalizedMessage* localized_message); + private: + const ::google::rpc::LocalizedMessage& _internal_localized_message() const; + ::google::rpc::LocalizedMessage* _internal_mutable_localized_message(); public: + void unsafe_arena_set_allocated_localized_message( + ::google::rpc::LocalizedMessage* localized_message); + ::google::rpc::LocalizedMessage* unsafe_arena_release_localized_message(); + // @@protoc_insertion_point(class_scope:google.rpc.BadRequest.FieldViolation) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 61, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr field_; - ::google::protobuf::internal::ArenaStringPtr description_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr field_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr description_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr reason_; + ::google::rpc::LocalizedMessage* localized_message_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2frpc_2ferror_5fdetails_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class RetryInfo final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.rpc.RetryInfo) */ { +class BadRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.rpc.BadRequest) */ { public: - inline RetryInfo() : RetryInfo(nullptr) {} - ~RetryInfo() override; - template - explicit PROTOBUF_CONSTEXPR RetryInfo(::google::protobuf::internal::ConstantInitialized); + inline BadRequest() : BadRequest(nullptr) {} + ~BadRequest() override; + explicit PROTOBUF_CONSTEXPR BadRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline RetryInfo(const RetryInfo& from) - : RetryInfo(nullptr, from) {} - RetryInfo(RetryInfo&& from) noexcept - : RetryInfo() { + BadRequest(const BadRequest& from); + BadRequest(BadRequest&& from) noexcept + : BadRequest() { *this = ::std::move(from); } - inline RetryInfo& operator=(const RetryInfo& from) { + inline BadRequest& operator=(const BadRequest& from) { CopyFrom(from); return *this; } - inline RetryInfo& operator=(RetryInfo&& from) noexcept { + inline BadRequest& operator=(BadRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1840,178 +1546,151 @@ class RetryInfo final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const RetryInfo& default_instance() { + static const BadRequest& default_instance() { return *internal_default_instance(); } - static inline const RetryInfo* internal_default_instance() { - return reinterpret_cast( - &_RetryInfo_default_instance_); + static inline const BadRequest* internal_default_instance() { + return reinterpret_cast( + &_BadRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 2; + 9; - friend void swap(RetryInfo& a, RetryInfo& b) { + friend void swap(BadRequest& a, BadRequest& b) { a.Swap(&b); } - inline void Swap(RetryInfo* other) { + inline void Swap(BadRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RetryInfo* other) { + void UnsafeArenaSwap(BadRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - RetryInfo* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const RetryInfo& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const RetryInfo& from) { - RetryInfo::MergeImpl(*this, from); + BadRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const BadRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const BadRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(RetryInfo* other); + void SetCachedSize(int size) const final; + void InternalSwap(BadRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.rpc.RetryInfo"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.rpc.BadRequest"; } protected: - explicit RetryInfo(::google::protobuf::Arena* arena); - RetryInfo(::google::protobuf::Arena* arena, const RetryInfo& from); + explicit BadRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- + typedef BadRequest_FieldViolation FieldViolation; + // accessors ------------------------------------------------------- enum : int { - kRetryDelayFieldNumber = 1, + kFieldViolationsFieldNumber = 1, }; - // .google.protobuf.Duration retry_delay = 1 [json_name = "retryDelay"]; - bool has_retry_delay() const; - void clear_retry_delay() ; - const ::google::protobuf::Duration& retry_delay() const; - PROTOBUF_NODISCARD ::google::protobuf::Duration* release_retry_delay(); - ::google::protobuf::Duration* mutable_retry_delay(); - void set_allocated_retry_delay(::google::protobuf::Duration* value); - void unsafe_arena_set_allocated_retry_delay(::google::protobuf::Duration* value); - ::google::protobuf::Duration* unsafe_arena_release_retry_delay(); - + // repeated .google.rpc.BadRequest.FieldViolation field_violations = 1 [json_name = "fieldViolations"]; + int field_violations_size() const; private: - const ::google::protobuf::Duration& _internal_retry_delay() const; - ::google::protobuf::Duration* _internal_mutable_retry_delay(); - + int _internal_field_violations_size() const; public: - // @@protoc_insertion_point(class_scope:google.rpc.RetryInfo) + void clear_field_violations(); + ::google::rpc::BadRequest_FieldViolation* mutable_field_violations(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::BadRequest_FieldViolation >* + mutable_field_violations(); + private: + const ::google::rpc::BadRequest_FieldViolation& _internal_field_violations(int index) const; + ::google::rpc::BadRequest_FieldViolation* _internal_add_field_violations(); + public: + const ::google::rpc::BadRequest_FieldViolation& field_violations(int index) const; + ::google::rpc::BadRequest_FieldViolation* add_field_violations(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::BadRequest_FieldViolation >& + field_violations() const; + + // @@protoc_insertion_point(class_scope:google.rpc.BadRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::Duration* retry_delay_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::BadRequest_FieldViolation > field_violations_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2frpc_2ferror_5fdetails_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class QuotaFailure final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.rpc.QuotaFailure) */ { +class RequestInfo final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.rpc.RequestInfo) */ { public: - inline QuotaFailure() : QuotaFailure(nullptr) {} - ~QuotaFailure() override; - template - explicit PROTOBUF_CONSTEXPR QuotaFailure(::google::protobuf::internal::ConstantInitialized); + inline RequestInfo() : RequestInfo(nullptr) {} + ~RequestInfo() override; + explicit PROTOBUF_CONSTEXPR RequestInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline QuotaFailure(const QuotaFailure& from) - : QuotaFailure(nullptr, from) {} - QuotaFailure(QuotaFailure&& from) noexcept - : QuotaFailure() { + RequestInfo(const RequestInfo& from); + RequestInfo(RequestInfo&& from) noexcept + : RequestInfo() { *this = ::std::move(from); } - inline QuotaFailure& operator=(const QuotaFailure& from) { + inline RequestInfo& operator=(const RequestInfo& from) { CopyFrom(from); return *this; } - inline QuotaFailure& operator=(QuotaFailure&& from) noexcept { + inline RequestInfo& operator=(RequestInfo&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2021,182 +1700,161 @@ class QuotaFailure final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const QuotaFailure& default_instance() { + static const RequestInfo& default_instance() { return *internal_default_instance(); } - static inline const QuotaFailure* internal_default_instance() { - return reinterpret_cast( - &_QuotaFailure_default_instance_); + static inline const RequestInfo* internal_default_instance() { + return reinterpret_cast( + &_RequestInfo_default_instance_); } static constexpr int kIndexInFileMessages = - 5; + 10; - friend void swap(QuotaFailure& a, QuotaFailure& b) { + friend void swap(RequestInfo& a, RequestInfo& b) { a.Swap(&b); } - inline void Swap(QuotaFailure* other) { + inline void Swap(RequestInfo* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(QuotaFailure* other) { + void UnsafeArenaSwap(RequestInfo* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - QuotaFailure* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const QuotaFailure& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const QuotaFailure& from) { - QuotaFailure::MergeImpl(*this, from); + RequestInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const RequestInfo& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const RequestInfo& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(QuotaFailure* other); + void SetCachedSize(int size) const final; + void InternalSwap(RequestInfo* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.rpc.QuotaFailure"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.rpc.RequestInfo"; } protected: - explicit QuotaFailure(::google::protobuf::Arena* arena); - QuotaFailure(::google::protobuf::Arena* arena, const QuotaFailure& from); + explicit RequestInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- - using Violation = QuotaFailure_Violation; - // accessors ------------------------------------------------------- enum : int { - kViolationsFieldNumber = 1, + kRequestIdFieldNumber = 1, + kServingDataFieldNumber = 2, }; - // repeated .google.rpc.QuotaFailure.Violation violations = 1 [json_name = "violations"]; - int violations_size() const; + // string request_id = 1 [json_name = "requestId"]; + void clear_request_id(); + const std::string& request_id() const; + template + void set_request_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_request_id(); + PROTOBUF_NODISCARD std::string* release_request_id(); + void set_allocated_request_id(std::string* request_id); private: - int _internal_violations_size() const; - + const std::string& _internal_request_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_request_id(const std::string& value); + std::string* _internal_mutable_request_id(); public: - void clear_violations() ; - ::google::rpc::QuotaFailure_Violation* mutable_violations(int index); - ::google::protobuf::RepeatedPtrField< ::google::rpc::QuotaFailure_Violation >* - mutable_violations(); + + // string serving_data = 2 [json_name = "servingData"]; + void clear_serving_data(); + const std::string& serving_data() const; + template + void set_serving_data(ArgT0&& arg0, ArgT... args); + std::string* mutable_serving_data(); + PROTOBUF_NODISCARD std::string* release_serving_data(); + void set_allocated_serving_data(std::string* serving_data); private: - const ::google::protobuf::RepeatedPtrField<::google::rpc::QuotaFailure_Violation>& _internal_violations() const; - ::google::protobuf::RepeatedPtrField<::google::rpc::QuotaFailure_Violation>* _internal_mutable_violations(); + const std::string& _internal_serving_data() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_serving_data(const std::string& value); + std::string* _internal_mutable_serving_data(); public: - const ::google::rpc::QuotaFailure_Violation& violations(int index) const; - ::google::rpc::QuotaFailure_Violation* add_violations(); - const ::google::protobuf::RepeatedPtrField< ::google::rpc::QuotaFailure_Violation >& - violations() const; - // @@protoc_insertion_point(class_scope:google.rpc.QuotaFailure) + + // @@protoc_insertion_point(class_scope:google.rpc.RequestInfo) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::google::rpc::QuotaFailure_Violation > violations_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr request_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr serving_data_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2frpc_2ferror_5fdetails_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class PreconditionFailure final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.rpc.PreconditionFailure) */ { +class ResourceInfo final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.rpc.ResourceInfo) */ { public: - inline PreconditionFailure() : PreconditionFailure(nullptr) {} - ~PreconditionFailure() override; - template - explicit PROTOBUF_CONSTEXPR PreconditionFailure(::google::protobuf::internal::ConstantInitialized); + inline ResourceInfo() : ResourceInfo(nullptr) {} + ~ResourceInfo() override; + explicit PROTOBUF_CONSTEXPR ResourceInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline PreconditionFailure(const PreconditionFailure& from) - : PreconditionFailure(nullptr, from) {} - PreconditionFailure(PreconditionFailure&& from) noexcept - : PreconditionFailure() { + ResourceInfo(const ResourceInfo& from); + ResourceInfo(ResourceInfo&& from) noexcept + : ResourceInfo() { *this = ::std::move(from); } - inline PreconditionFailure& operator=(const PreconditionFailure& from) { + inline ResourceInfo& operator=(const ResourceInfo& from) { CopyFrom(from); return *this; } - inline PreconditionFailure& operator=(PreconditionFailure&& from) noexcept { + inline ResourceInfo& operator=(ResourceInfo&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2206,182 +1864,193 @@ class PreconditionFailure final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const PreconditionFailure& default_instance() { + static const ResourceInfo& default_instance() { return *internal_default_instance(); } - static inline const PreconditionFailure* internal_default_instance() { - return reinterpret_cast( - &_PreconditionFailure_default_instance_); + static inline const ResourceInfo* internal_default_instance() { + return reinterpret_cast( + &_ResourceInfo_default_instance_); } static constexpr int kIndexInFileMessages = - 7; + 11; - friend void swap(PreconditionFailure& a, PreconditionFailure& b) { + friend void swap(ResourceInfo& a, ResourceInfo& b) { a.Swap(&b); } - inline void Swap(PreconditionFailure* other) { + inline void Swap(ResourceInfo* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(PreconditionFailure* other) { + void UnsafeArenaSwap(ResourceInfo* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - PreconditionFailure* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const PreconditionFailure& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const PreconditionFailure& from) { - PreconditionFailure::MergeImpl(*this, from); + ResourceInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ResourceInfo& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ResourceInfo& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(PreconditionFailure* other); + void SetCachedSize(int size) const final; + void InternalSwap(ResourceInfo* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.rpc.PreconditionFailure"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.rpc.ResourceInfo"; } protected: - explicit PreconditionFailure(::google::protobuf::Arena* arena); - PreconditionFailure(::google::protobuf::Arena* arena, const PreconditionFailure& from); + explicit ResourceInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- - using Violation = PreconditionFailure_Violation; - // accessors ------------------------------------------------------- enum : int { - kViolationsFieldNumber = 1, + kResourceTypeFieldNumber = 1, + kResourceNameFieldNumber = 2, + kOwnerFieldNumber = 3, + kDescriptionFieldNumber = 4, }; - // repeated .google.rpc.PreconditionFailure.Violation violations = 1 [json_name = "violations"]; - int violations_size() const; + // string resource_type = 1 [json_name = "resourceType"]; + void clear_resource_type(); + const std::string& resource_type() const; + template + void set_resource_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_resource_type(); + PROTOBUF_NODISCARD std::string* release_resource_type(); + void set_allocated_resource_type(std::string* resource_type); private: - int _internal_violations_size() const; + const std::string& _internal_resource_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_resource_type(const std::string& value); + std::string* _internal_mutable_resource_type(); + public: + + // string resource_name = 2 [json_name = "resourceName"]; + void clear_resource_name(); + const std::string& resource_name() const; + template + void set_resource_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_resource_name(); + PROTOBUF_NODISCARD std::string* release_resource_name(); + void set_allocated_resource_name(std::string* resource_name); + private: + const std::string& _internal_resource_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_resource_name(const std::string& value); + std::string* _internal_mutable_resource_name(); + public: + // string owner = 3 [json_name = "owner"]; + void clear_owner(); + const std::string& owner() const; + template + void set_owner(ArgT0&& arg0, ArgT... args); + std::string* mutable_owner(); + PROTOBUF_NODISCARD std::string* release_owner(); + void set_allocated_owner(std::string* owner); + private: + const std::string& _internal_owner() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_owner(const std::string& value); + std::string* _internal_mutable_owner(); public: - void clear_violations() ; - ::google::rpc::PreconditionFailure_Violation* mutable_violations(int index); - ::google::protobuf::RepeatedPtrField< ::google::rpc::PreconditionFailure_Violation >* - mutable_violations(); + + // string description = 4 [json_name = "description"]; + void clear_description(); + const std::string& description() const; + template + void set_description(ArgT0&& arg0, ArgT... args); + std::string* mutable_description(); + PROTOBUF_NODISCARD std::string* release_description(); + void set_allocated_description(std::string* description); private: - const ::google::protobuf::RepeatedPtrField<::google::rpc::PreconditionFailure_Violation>& _internal_violations() const; - ::google::protobuf::RepeatedPtrField<::google::rpc::PreconditionFailure_Violation>* _internal_mutable_violations(); + const std::string& _internal_description() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_description(const std::string& value); + std::string* _internal_mutable_description(); public: - const ::google::rpc::PreconditionFailure_Violation& violations(int index) const; - ::google::rpc::PreconditionFailure_Violation* add_violations(); - const ::google::protobuf::RepeatedPtrField< ::google::rpc::PreconditionFailure_Violation >& - violations() const; - // @@protoc_insertion_point(class_scope:google.rpc.PreconditionFailure) + + // @@protoc_insertion_point(class_scope:google.rpc.ResourceInfo) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::google::rpc::PreconditionFailure_Violation > violations_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr resource_type_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr resource_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr owner_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr description_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2frpc_2ferror_5fdetails_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Help final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.rpc.Help) */ { +class Help_Link final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.rpc.Help.Link) */ { public: - inline Help() : Help(nullptr) {} - ~Help() override; - template - explicit PROTOBUF_CONSTEXPR Help(::google::protobuf::internal::ConstantInitialized); + inline Help_Link() : Help_Link(nullptr) {} + ~Help_Link() override; + explicit PROTOBUF_CONSTEXPR Help_Link(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Help(const Help& from) - : Help(nullptr, from) {} - Help(Help&& from) noexcept - : Help() { + Help_Link(const Help_Link& from); + Help_Link(Help_Link&& from) noexcept + : Help_Link() { *this = ::std::move(from); } - inline Help& operator=(const Help& from) { + inline Help_Link& operator=(const Help_Link& from) { CopyFrom(from); return *this; } - inline Help& operator=(Help&& from) noexcept { + inline Help_Link& operator=(Help_Link&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2391,182 +2060,161 @@ class Help final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Help& default_instance() { + static const Help_Link& default_instance() { return *internal_default_instance(); } - static inline const Help* internal_default_instance() { - return reinterpret_cast( - &_Help_default_instance_); + static inline const Help_Link* internal_default_instance() { + return reinterpret_cast( + &_Help_Link_default_instance_); } static constexpr int kIndexInFileMessages = - 13; + 12; - friend void swap(Help& a, Help& b) { + friend void swap(Help_Link& a, Help_Link& b) { a.Swap(&b); } - inline void Swap(Help* other) { + inline void Swap(Help_Link* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Help* other) { + void UnsafeArenaSwap(Help_Link* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Help* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Help& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Help& from) { - Help::MergeImpl(*this, from); + Help_Link* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Help_Link& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Help_Link& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Help* other); + void SetCachedSize(int size) const final; + void InternalSwap(Help_Link* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.rpc.Help"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.rpc.Help.Link"; } protected: - explicit Help(::google::protobuf::Arena* arena); - Help(::google::protobuf::Arena* arena, const Help& from); + explicit Help_Link(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- - using Link = Help_Link; - // accessors ------------------------------------------------------- enum : int { - kLinksFieldNumber = 1, + kDescriptionFieldNumber = 1, + kUrlFieldNumber = 2, }; - // repeated .google.rpc.Help.Link links = 1 [json_name = "links"]; - int links_size() const; + // string description = 1 [json_name = "description"]; + void clear_description(); + const std::string& description() const; + template + void set_description(ArgT0&& arg0, ArgT... args); + std::string* mutable_description(); + PROTOBUF_NODISCARD std::string* release_description(); + void set_allocated_description(std::string* description); private: - int _internal_links_size() const; - + const std::string& _internal_description() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_description(const std::string& value); + std::string* _internal_mutable_description(); public: - void clear_links() ; - ::google::rpc::Help_Link* mutable_links(int index); - ::google::protobuf::RepeatedPtrField< ::google::rpc::Help_Link >* - mutable_links(); + + // string url = 2 [json_name = "url"]; + void clear_url(); + const std::string& url() const; + template + void set_url(ArgT0&& arg0, ArgT... args); + std::string* mutable_url(); + PROTOBUF_NODISCARD std::string* release_url(); + void set_allocated_url(std::string* url); private: - const ::google::protobuf::RepeatedPtrField<::google::rpc::Help_Link>& _internal_links() const; - ::google::protobuf::RepeatedPtrField<::google::rpc::Help_Link>* _internal_mutable_links(); + const std::string& _internal_url() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_url(const std::string& value); + std::string* _internal_mutable_url(); public: - const ::google::rpc::Help_Link& links(int index) const; - ::google::rpc::Help_Link* add_links(); - const ::google::protobuf::RepeatedPtrField< ::google::rpc::Help_Link >& - links() const; - // @@protoc_insertion_point(class_scope:google.rpc.Help) + + // @@protoc_insertion_point(class_scope:google.rpc.Help.Link) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::google::rpc::Help_Link > links_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr description_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr url_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2frpc_2ferror_5fdetails_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ErrorInfo final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.rpc.ErrorInfo) */ { +class Help final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.rpc.Help) */ { public: - inline ErrorInfo() : ErrorInfo(nullptr) {} - ~ErrorInfo() override; - template - explicit PROTOBUF_CONSTEXPR ErrorInfo(::google::protobuf::internal::ConstantInitialized); + inline Help() : Help(nullptr) {} + ~Help() override; + explicit PROTOBUF_CONSTEXPR Help(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ErrorInfo(const ErrorInfo& from) - : ErrorInfo(nullptr, from) {} - ErrorInfo(ErrorInfo&& from) noexcept - : ErrorInfo() { + Help(const Help& from); + Help(Help&& from) noexcept + : Help() { *this = ::std::move(from); } - inline ErrorInfo& operator=(const ErrorInfo& from) { + inline Help& operator=(const Help& from) { CopyFrom(from); return *this; } - inline ErrorInfo& operator=(ErrorInfo&& from) noexcept { + inline Help& operator=(Help&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2576,217 +2224,151 @@ class ErrorInfo final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ErrorInfo& default_instance() { + static const Help& default_instance() { return *internal_default_instance(); } - static inline const ErrorInfo* internal_default_instance() { - return reinterpret_cast( - &_ErrorInfo_default_instance_); + static inline const Help* internal_default_instance() { + return reinterpret_cast( + &_Help_default_instance_); } static constexpr int kIndexInFileMessages = - 1; + 13; - friend void swap(ErrorInfo& a, ErrorInfo& b) { + friend void swap(Help& a, Help& b) { a.Swap(&b); } - inline void Swap(ErrorInfo* other) { + inline void Swap(Help* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ErrorInfo* other) { + void UnsafeArenaSwap(Help* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ErrorInfo* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ErrorInfo& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ErrorInfo& from) { - ErrorInfo::MergeImpl(*this, from); + Help* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Help& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Help& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ErrorInfo* other); + void SetCachedSize(int size) const final; + void InternalSwap(Help* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.rpc.ErrorInfo"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.rpc.Help"; } protected: - explicit ErrorInfo(::google::protobuf::Arena* arena); - ErrorInfo(::google::protobuf::Arena* arena, const ErrorInfo& from); + explicit Help(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- + typedef Help_Link Link; // accessors ------------------------------------------------------- enum : int { - kMetadataFieldNumber = 3, - kReasonFieldNumber = 1, - kDomainFieldNumber = 2, + kLinksFieldNumber = 1, }; - // map metadata = 3 [json_name = "metadata"]; - int metadata_size() const; - private: - int _internal_metadata_size() const; - - public: - void clear_metadata() ; - const ::google::protobuf::Map& metadata() const; - ::google::protobuf::Map* mutable_metadata(); - + // repeated .google.rpc.Help.Link links = 1 [json_name = "links"]; + int links_size() const; private: - const ::google::protobuf::Map& _internal_metadata() const; - ::google::protobuf::Map* _internal_mutable_metadata(); - + int _internal_links_size() const; public: - // string reason = 1 [json_name = "reason"]; - void clear_reason() ; - const std::string& reason() const; - template - void set_reason(Arg_&& arg, Args_... args); - std::string* mutable_reason(); - PROTOBUF_NODISCARD std::string* release_reason(); - void set_allocated_reason(std::string* value); - + void clear_links(); + ::google::rpc::Help_Link* mutable_links(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::Help_Link >* + mutable_links(); private: - const std::string& _internal_reason() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_reason( - const std::string& value); - std::string* _internal_mutable_reason(); - + const ::google::rpc::Help_Link& _internal_links(int index) const; + ::google::rpc::Help_Link* _internal_add_links(); public: - // string domain = 2 [json_name = "domain"]; - void clear_domain() ; - const std::string& domain() const; - template - void set_domain(Arg_&& arg, Args_... args); - std::string* mutable_domain(); - PROTOBUF_NODISCARD std::string* release_domain(); - void set_allocated_domain(std::string* value); - - private: - const std::string& _internal_domain() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_domain( - const std::string& value); - std::string* _internal_mutable_domain(); + const ::google::rpc::Help_Link& links(int index) const; + ::google::rpc::Help_Link* add_links(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::Help_Link >& + links() const; - public: - // @@protoc_insertion_point(class_scope:google.rpc.ErrorInfo) + // @@protoc_insertion_point(class_scope:google.rpc.Help) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 3, 1, - 49, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::MapField - metadata_; - ::google::protobuf::internal::ArenaStringPtr reason_; - ::google::protobuf::internal::ArenaStringPtr domain_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::Help_Link > links_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2frpc_2ferror_5fdetails_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class BadRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.rpc.BadRequest) */ { +class LocalizedMessage final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.rpc.LocalizedMessage) */ { public: - inline BadRequest() : BadRequest(nullptr) {} - ~BadRequest() override; - template - explicit PROTOBUF_CONSTEXPR BadRequest(::google::protobuf::internal::ConstantInitialized); + inline LocalizedMessage() : LocalizedMessage(nullptr) {} + ~LocalizedMessage() override; + explicit PROTOBUF_CONSTEXPR LocalizedMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline BadRequest(const BadRequest& from) - : BadRequest(nullptr, from) {} - BadRequest(BadRequest&& from) noexcept - : BadRequest() { + LocalizedMessage(const LocalizedMessage& from); + LocalizedMessage(LocalizedMessage&& from) noexcept + : LocalizedMessage() { *this = ::std::move(from); } - inline BadRequest& operator=(const BadRequest& from) { + inline LocalizedMessage& operator=(const LocalizedMessage& from) { CopyFrom(from); return *this; } - inline BadRequest& operator=(BadRequest&& from) noexcept { + inline LocalizedMessage& operator=(LocalizedMessage&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2796,306 +2378,275 @@ class BadRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const BadRequest& default_instance() { + static const LocalizedMessage& default_instance() { return *internal_default_instance(); } - static inline const BadRequest* internal_default_instance() { - return reinterpret_cast( - &_BadRequest_default_instance_); + static inline const LocalizedMessage* internal_default_instance() { + return reinterpret_cast( + &_LocalizedMessage_default_instance_); } static constexpr int kIndexInFileMessages = - 9; + 14; - friend void swap(BadRequest& a, BadRequest& b) { + friend void swap(LocalizedMessage& a, LocalizedMessage& b) { a.Swap(&b); } - inline void Swap(BadRequest* other) { + inline void Swap(LocalizedMessage* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(BadRequest* other) { + void UnsafeArenaSwap(LocalizedMessage* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - BadRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const BadRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const BadRequest& from) { - BadRequest::MergeImpl(*this, from); + LocalizedMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const LocalizedMessage& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const LocalizedMessage& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(BadRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(LocalizedMessage* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.rpc.BadRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "google.rpc.LocalizedMessage"; } protected: - explicit BadRequest(::google::protobuf::Arena* arena); - BadRequest(::google::protobuf::Arena* arena, const BadRequest& from); + explicit LocalizedMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- - using FieldViolation = BadRequest_FieldViolation; - // accessors ------------------------------------------------------- enum : int { - kFieldViolationsFieldNumber = 1, + kLocaleFieldNumber = 1, + kMessageFieldNumber = 2, }; - // repeated .google.rpc.BadRequest.FieldViolation field_violations = 1 [json_name = "fieldViolations"]; - int field_violations_size() const; + // string locale = 1 [json_name = "locale"]; + void clear_locale(); + const std::string& locale() const; + template + void set_locale(ArgT0&& arg0, ArgT... args); + std::string* mutable_locale(); + PROTOBUF_NODISCARD std::string* release_locale(); + void set_allocated_locale(std::string* locale); private: - int _internal_field_violations_size() const; - + const std::string& _internal_locale() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_locale(const std::string& value); + std::string* _internal_mutable_locale(); public: - void clear_field_violations() ; - ::google::rpc::BadRequest_FieldViolation* mutable_field_violations(int index); - ::google::protobuf::RepeatedPtrField< ::google::rpc::BadRequest_FieldViolation >* - mutable_field_violations(); + + // string message = 2 [json_name = "message"]; + void clear_message(); + const std::string& message() const; + template + void set_message(ArgT0&& arg0, ArgT... args); + std::string* mutable_message(); + PROTOBUF_NODISCARD std::string* release_message(); + void set_allocated_message(std::string* message); private: - const ::google::protobuf::RepeatedPtrField<::google::rpc::BadRequest_FieldViolation>& _internal_field_violations() const; - ::google::protobuf::RepeatedPtrField<::google::rpc::BadRequest_FieldViolation>* _internal_mutable_field_violations(); + const std::string& _internal_message() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_message(const std::string& value); + std::string* _internal_mutable_message(); public: - const ::google::rpc::BadRequest_FieldViolation& field_violations(int index) const; - ::google::rpc::BadRequest_FieldViolation* add_field_violations(); - const ::google::protobuf::RepeatedPtrField< ::google::rpc::BadRequest_FieldViolation >& - field_violations() const; - // @@protoc_insertion_point(class_scope:google.rpc.BadRequest) + + // @@protoc_insertion_point(class_scope:google.rpc.LocalizedMessage) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::google::rpc::BadRequest_FieldViolation > field_violations_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr locale_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2frpc_2ferror_5fdetails_2eproto; }; - // =================================================================== - - // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ // ------------------------------------------------------------------- -// ------------------------------------------------------------------- - // ErrorInfo // string reason = 1 [json_name = "reason"]; inline void ErrorInfo::clear_reason() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.reason_.ClearToEmpty(); + reason_.ClearToEmpty(); } -inline const std::string& ErrorInfo::reason() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ErrorInfo::reason() const { // @@protoc_insertion_point(field_get:google.rpc.ErrorInfo.reason) return _internal_reason(); } -template -inline PROTOBUF_ALWAYS_INLINE void ErrorInfo::set_reason(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.reason_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ErrorInfo::set_reason(ArgT0&& arg0, ArgT... args) { + + reason_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.rpc.ErrorInfo.reason) } -inline std::string* ErrorInfo::mutable_reason() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ErrorInfo::mutable_reason() { std::string* _s = _internal_mutable_reason(); // @@protoc_insertion_point(field_mutable:google.rpc.ErrorInfo.reason) return _s; } inline const std::string& ErrorInfo::_internal_reason() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.reason_.Get(); + return reason_.Get(); } inline void ErrorInfo::_internal_set_reason(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.reason_.Set(value, GetArena()); + + reason_.Set(value, GetArenaForAllocation()); } inline std::string* ErrorInfo::_internal_mutable_reason() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.reason_.Mutable( GetArena()); + + return reason_.Mutable(GetArenaForAllocation()); } inline std::string* ErrorInfo::release_reason() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.rpc.ErrorInfo.reason) - return _impl_.reason_.Release(); -} -inline void ErrorInfo::set_allocated_reason(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.reason_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.reason_.IsDefault()) { - _impl_.reason_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return reason_.Release(); +} +inline void ErrorInfo::set_allocated_reason(std::string* reason) { + if (reason != nullptr) { + + } else { + + } + reason_.SetAllocated(reason, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (reason_.IsDefault()) { + reason_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.rpc.ErrorInfo.reason) } // string domain = 2 [json_name = "domain"]; inline void ErrorInfo::clear_domain() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.domain_.ClearToEmpty(); + domain_.ClearToEmpty(); } -inline const std::string& ErrorInfo::domain() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ErrorInfo::domain() const { // @@protoc_insertion_point(field_get:google.rpc.ErrorInfo.domain) return _internal_domain(); } -template -inline PROTOBUF_ALWAYS_INLINE void ErrorInfo::set_domain(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.domain_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ErrorInfo::set_domain(ArgT0&& arg0, ArgT... args) { + + domain_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.rpc.ErrorInfo.domain) } -inline std::string* ErrorInfo::mutable_domain() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ErrorInfo::mutable_domain() { std::string* _s = _internal_mutable_domain(); // @@protoc_insertion_point(field_mutable:google.rpc.ErrorInfo.domain) return _s; } inline const std::string& ErrorInfo::_internal_domain() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.domain_.Get(); + return domain_.Get(); } inline void ErrorInfo::_internal_set_domain(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.domain_.Set(value, GetArena()); + + domain_.Set(value, GetArenaForAllocation()); } inline std::string* ErrorInfo::_internal_mutable_domain() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.domain_.Mutable( GetArena()); + + return domain_.Mutable(GetArenaForAllocation()); } inline std::string* ErrorInfo::release_domain() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.rpc.ErrorInfo.domain) - return _impl_.domain_.Release(); -} -inline void ErrorInfo::set_allocated_domain(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.domain_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.domain_.IsDefault()) { - _impl_.domain_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return domain_.Release(); +} +inline void ErrorInfo::set_allocated_domain(std::string* domain) { + if (domain != nullptr) { + + } else { + + } + domain_.SetAllocated(domain, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (domain_.IsDefault()) { + domain_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.rpc.ErrorInfo.domain) } // map metadata = 3 [json_name = "metadata"]; inline int ErrorInfo::_internal_metadata_size() const { - return _internal_metadata().size(); + return metadata_.size(); } inline int ErrorInfo::metadata_size() const { return _internal_metadata_size(); } inline void ErrorInfo::clear_metadata() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.metadata_.Clear(); + metadata_.Clear(); } -inline const ::google::protobuf::Map& ErrorInfo::_internal_metadata() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.metadata_.GetMap(); +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +ErrorInfo::_internal_metadata() const { + return metadata_.GetMap(); } -inline const ::google::protobuf::Map& ErrorInfo::metadata() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +ErrorInfo::metadata() const { // @@protoc_insertion_point(field_map:google.rpc.ErrorInfo.metadata) return _internal_metadata(); } -inline ::google::protobuf::Map* ErrorInfo::_internal_mutable_metadata() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.metadata_.MutableMap(); +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +ErrorInfo::_internal_mutable_metadata() { + return metadata_.MutableMap(); } -inline ::google::protobuf::Map* ErrorInfo::mutable_metadata() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +ErrorInfo::mutable_metadata() { // @@protoc_insertion_point(field_mutable_map:google.rpc.ErrorInfo.metadata) return _internal_mutable_metadata(); } @@ -3105,93 +2656,87 @@ inline ::google::protobuf::Map* ErrorInfo::mutable_met // RetryInfo // .google.protobuf.Duration retry_delay = 1 [json_name = "retryDelay"]; +inline bool RetryInfo::_internal_has_retry_delay() const { + return this != internal_default_instance() && retry_delay_ != nullptr; +} inline bool RetryInfo::has_retry_delay() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.retry_delay_ != nullptr); - return value; + return _internal_has_retry_delay(); } -inline const ::google::protobuf::Duration& RetryInfo::_internal_retry_delay() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Duration* p = _impl_.retry_delay_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Duration_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Duration& RetryInfo::_internal_retry_delay() const { + const ::PROTOBUF_NAMESPACE_ID::Duration* p = retry_delay_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Duration_default_instance_); } -inline const ::google::protobuf::Duration& RetryInfo::retry_delay() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Duration& RetryInfo::retry_delay() const { // @@protoc_insertion_point(field_get:google.rpc.RetryInfo.retry_delay) return _internal_retry_delay(); } -inline void RetryInfo::unsafe_arena_set_allocated_retry_delay(::google::protobuf::Duration* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.retry_delay_); +inline void RetryInfo::unsafe_arena_set_allocated_retry_delay( + ::PROTOBUF_NAMESPACE_ID::Duration* retry_delay) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(retry_delay_); } - _impl_.retry_delay_ = reinterpret_cast<::google::protobuf::Duration*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + retry_delay_ = retry_delay; + if (retry_delay) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.rpc.RetryInfo.retry_delay) } -inline ::google::protobuf::Duration* RetryInfo::release_retry_delay() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Duration* released = _impl_.retry_delay_; - _impl_.retry_delay_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Duration* RetryInfo::release_retry_delay() { + + ::PROTOBUF_NAMESPACE_ID::Duration* temp = retry_delay_; + retry_delay_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Duration* RetryInfo::unsafe_arena_release_retry_delay() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Duration* RetryInfo::unsafe_arena_release_retry_delay() { // @@protoc_insertion_point(field_release:google.rpc.RetryInfo.retry_delay) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Duration* temp = _impl_.retry_delay_; - _impl_.retry_delay_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Duration* temp = retry_delay_; + retry_delay_ = nullptr; return temp; } -inline ::google::protobuf::Duration* RetryInfo::_internal_mutable_retry_delay() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.retry_delay_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArena()); - _impl_.retry_delay_ = reinterpret_cast<::google::protobuf::Duration*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Duration* RetryInfo::_internal_mutable_retry_delay() { + + if (retry_delay_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Duration>(GetArenaForAllocation()); + retry_delay_ = p; } - return _impl_.retry_delay_; + return retry_delay_; } -inline ::google::protobuf::Duration* RetryInfo::mutable_retry_delay() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Duration* _msg = _internal_mutable_retry_delay(); +inline ::PROTOBUF_NAMESPACE_ID::Duration* RetryInfo::mutable_retry_delay() { + ::PROTOBUF_NAMESPACE_ID::Duration* _msg = _internal_mutable_retry_delay(); // @@protoc_insertion_point(field_mutable:google.rpc.RetryInfo.retry_delay) return _msg; } -inline void RetryInfo::set_allocated_retry_delay(::google::protobuf::Duration* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void RetryInfo::set_allocated_retry_delay(::PROTOBUF_NAMESPACE_ID::Duration* retry_delay) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.retry_delay_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(retry_delay_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (retry_delay) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(retry_delay)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + retry_delay = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, retry_delay, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.retry_delay_ = reinterpret_cast<::google::protobuf::Duration*>(value); + retry_delay_ = retry_delay; // @@protoc_insertion_point(field_set_allocated:google.rpc.RetryInfo.retry_delay) } @@ -3201,155 +2746,126 @@ inline void RetryInfo::set_allocated_retry_delay(::google::protobuf::Duration* v // repeated string stack_entries = 1 [json_name = "stackEntries"]; inline int DebugInfo::_internal_stack_entries_size() const { - return _internal_stack_entries().size(); + return stack_entries_.size(); } inline int DebugInfo::stack_entries_size() const { return _internal_stack_entries_size(); } inline void DebugInfo::clear_stack_entries() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.stack_entries_.Clear(); + stack_entries_.Clear(); } -inline std::string* DebugInfo::add_stack_entries() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_stack_entries()->Add(); +inline std::string* DebugInfo::add_stack_entries() { + std::string* _s = _internal_add_stack_entries(); // @@protoc_insertion_point(field_add_mutable:google.rpc.DebugInfo.stack_entries) return _s; } -inline const std::string& DebugInfo::stack_entries(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& DebugInfo::_internal_stack_entries(int index) const { + return stack_entries_.Get(index); +} +inline const std::string& DebugInfo::stack_entries(int index) const { // @@protoc_insertion_point(field_get:google.rpc.DebugInfo.stack_entries) - return _internal_stack_entries().Get(index); + return _internal_stack_entries(index); } -inline std::string* DebugInfo::mutable_stack_entries(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* DebugInfo::mutable_stack_entries(int index) { // @@protoc_insertion_point(field_mutable:google.rpc.DebugInfo.stack_entries) - return _internal_mutable_stack_entries()->Mutable(index); + return stack_entries_.Mutable(index); } inline void DebugInfo::set_stack_entries(int index, const std::string& value) { - _internal_mutable_stack_entries()->Mutable(index)->assign(value); + stack_entries_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set:google.rpc.DebugInfo.stack_entries) } inline void DebugInfo::set_stack_entries(int index, std::string&& value) { - _internal_mutable_stack_entries()->Mutable(index)->assign(std::move(value)); + stack_entries_.Mutable(index)->assign(std::move(value)); // @@protoc_insertion_point(field_set:google.rpc.DebugInfo.stack_entries) } inline void DebugInfo::set_stack_entries(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_stack_entries()->Mutable(index)->assign(value); + GOOGLE_DCHECK(value != nullptr); + stack_entries_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:google.rpc.DebugInfo.stack_entries) } -inline void DebugInfo::set_stack_entries(int index, const char* value, - std::size_t size) { - _internal_mutable_stack_entries()->Mutable(index)->assign( - reinterpret_cast(value), size); +inline void DebugInfo::set_stack_entries(int index, const char* value, size_t size) { + stack_entries_.Mutable(index)->assign( + reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:google.rpc.DebugInfo.stack_entries) } -inline void DebugInfo::set_stack_entries(int index, absl::string_view value) { - _internal_mutable_stack_entries()->Mutable(index)->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_set_string_piece:google.rpc.DebugInfo.stack_entries) +inline std::string* DebugInfo::_internal_add_stack_entries() { + return stack_entries_.Add(); } inline void DebugInfo::add_stack_entries(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_stack_entries()->Add()->assign(value); + stack_entries_.Add()->assign(value); // @@protoc_insertion_point(field_add:google.rpc.DebugInfo.stack_entries) } inline void DebugInfo::add_stack_entries(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_stack_entries()->Add(std::move(value)); + stack_entries_.Add(std::move(value)); // @@protoc_insertion_point(field_add:google.rpc.DebugInfo.stack_entries) } inline void DebugInfo::add_stack_entries(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_stack_entries()->Add()->assign(value); + GOOGLE_DCHECK(value != nullptr); + stack_entries_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:google.rpc.DebugInfo.stack_entries) } -inline void DebugInfo::add_stack_entries(const char* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_stack_entries()->Add()->assign( - reinterpret_cast(value), size); +inline void DebugInfo::add_stack_entries(const char* value, size_t size) { + stack_entries_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:google.rpc.DebugInfo.stack_entries) } -inline void DebugInfo::add_stack_entries(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_stack_entries()->Add()->assign(value.data(), value.size()); - // @@protoc_insertion_point(field_add_string_piece:google.rpc.DebugInfo.stack_entries) -} -inline const ::google::protobuf::RepeatedPtrField& -DebugInfo::stack_entries() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +DebugInfo::stack_entries() const { // @@protoc_insertion_point(field_list:google.rpc.DebugInfo.stack_entries) - return _internal_stack_entries(); + return stack_entries_; } -inline ::google::protobuf::RepeatedPtrField* -DebugInfo::mutable_stack_entries() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +DebugInfo::mutable_stack_entries() { // @@protoc_insertion_point(field_mutable_list:google.rpc.DebugInfo.stack_entries) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_stack_entries(); -} -inline const ::google::protobuf::RepeatedPtrField& -DebugInfo::_internal_stack_entries() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.stack_entries_; -} -inline ::google::protobuf::RepeatedPtrField* -DebugInfo::_internal_mutable_stack_entries() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.stack_entries_; + return &stack_entries_; } // string detail = 2 [json_name = "detail"]; inline void DebugInfo::clear_detail() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.detail_.ClearToEmpty(); + detail_.ClearToEmpty(); } -inline const std::string& DebugInfo::detail() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& DebugInfo::detail() const { // @@protoc_insertion_point(field_get:google.rpc.DebugInfo.detail) return _internal_detail(); } -template -inline PROTOBUF_ALWAYS_INLINE void DebugInfo::set_detail(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.detail_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void DebugInfo::set_detail(ArgT0&& arg0, ArgT... args) { + + detail_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.rpc.DebugInfo.detail) } -inline std::string* DebugInfo::mutable_detail() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* DebugInfo::mutable_detail() { std::string* _s = _internal_mutable_detail(); // @@protoc_insertion_point(field_mutable:google.rpc.DebugInfo.detail) return _s; } inline const std::string& DebugInfo::_internal_detail() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.detail_.Get(); + return detail_.Get(); } inline void DebugInfo::_internal_set_detail(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.detail_.Set(value, GetArena()); + + detail_.Set(value, GetArenaForAllocation()); } inline std::string* DebugInfo::_internal_mutable_detail() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.detail_.Mutable( GetArena()); + + return detail_.Mutable(GetArenaForAllocation()); } inline std::string* DebugInfo::release_detail() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.rpc.DebugInfo.detail) - return _impl_.detail_.Release(); -} -inline void DebugInfo::set_allocated_detail(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.detail_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.detail_.IsDefault()) { - _impl_.detail_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return detail_.Release(); +} +inline void DebugInfo::set_allocated_detail(std::string* detail) { + if (detail != nullptr) { + + } else { + + } + detail_.SetAllocated(detail, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (detail_.IsDefault()) { + detail_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.rpc.DebugInfo.detail) } @@ -3359,107 +2875,101 @@ inline void DebugInfo::set_allocated_detail(std::string* value) { // string subject = 1 [json_name = "subject"]; inline void QuotaFailure_Violation::clear_subject() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.subject_.ClearToEmpty(); + subject_.ClearToEmpty(); } -inline const std::string& QuotaFailure_Violation::subject() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& QuotaFailure_Violation::subject() const { // @@protoc_insertion_point(field_get:google.rpc.QuotaFailure.Violation.subject) return _internal_subject(); } -template -inline PROTOBUF_ALWAYS_INLINE void QuotaFailure_Violation::set_subject(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.subject_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void QuotaFailure_Violation::set_subject(ArgT0&& arg0, ArgT... args) { + + subject_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.rpc.QuotaFailure.Violation.subject) } -inline std::string* QuotaFailure_Violation::mutable_subject() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* QuotaFailure_Violation::mutable_subject() { std::string* _s = _internal_mutable_subject(); // @@protoc_insertion_point(field_mutable:google.rpc.QuotaFailure.Violation.subject) return _s; } inline const std::string& QuotaFailure_Violation::_internal_subject() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.subject_.Get(); + return subject_.Get(); } inline void QuotaFailure_Violation::_internal_set_subject(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.subject_.Set(value, GetArena()); + + subject_.Set(value, GetArenaForAllocation()); } inline std::string* QuotaFailure_Violation::_internal_mutable_subject() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.subject_.Mutable( GetArena()); + + return subject_.Mutable(GetArenaForAllocation()); } inline std::string* QuotaFailure_Violation::release_subject() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.rpc.QuotaFailure.Violation.subject) - return _impl_.subject_.Release(); -} -inline void QuotaFailure_Violation::set_allocated_subject(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.subject_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.subject_.IsDefault()) { - _impl_.subject_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return subject_.Release(); +} +inline void QuotaFailure_Violation::set_allocated_subject(std::string* subject) { + if (subject != nullptr) { + + } else { + + } + subject_.SetAllocated(subject, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (subject_.IsDefault()) { + subject_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.rpc.QuotaFailure.Violation.subject) } // string description = 2 [json_name = "description"]; inline void QuotaFailure_Violation::clear_description() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.description_.ClearToEmpty(); + description_.ClearToEmpty(); } -inline const std::string& QuotaFailure_Violation::description() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& QuotaFailure_Violation::description() const { // @@protoc_insertion_point(field_get:google.rpc.QuotaFailure.Violation.description) return _internal_description(); } -template -inline PROTOBUF_ALWAYS_INLINE void QuotaFailure_Violation::set_description(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.description_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void QuotaFailure_Violation::set_description(ArgT0&& arg0, ArgT... args) { + + description_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.rpc.QuotaFailure.Violation.description) } -inline std::string* QuotaFailure_Violation::mutable_description() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* QuotaFailure_Violation::mutable_description() { std::string* _s = _internal_mutable_description(); // @@protoc_insertion_point(field_mutable:google.rpc.QuotaFailure.Violation.description) return _s; } inline const std::string& QuotaFailure_Violation::_internal_description() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.description_.Get(); + return description_.Get(); } inline void QuotaFailure_Violation::_internal_set_description(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.description_.Set(value, GetArena()); + + description_.Set(value, GetArenaForAllocation()); } inline std::string* QuotaFailure_Violation::_internal_mutable_description() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.description_.Mutable( GetArena()); + + return description_.Mutable(GetArenaForAllocation()); } inline std::string* QuotaFailure_Violation::release_description() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.rpc.QuotaFailure.Violation.description) - return _impl_.description_.Release(); -} -inline void QuotaFailure_Violation::set_allocated_description(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.description_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.description_.IsDefault()) { - _impl_.description_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return description_.Release(); +} +inline void QuotaFailure_Violation::set_allocated_description(std::string* description) { + if (description != nullptr) { + + } else { + + } + description_.SetAllocated(description, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (description_.IsDefault()) { + description_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.rpc.QuotaFailure.Violation.description) } @@ -3469,51 +2979,42 @@ inline void QuotaFailure_Violation::set_allocated_description(std::string* value // repeated .google.rpc.QuotaFailure.Violation violations = 1 [json_name = "violations"]; inline int QuotaFailure::_internal_violations_size() const { - return _internal_violations().size(); + return violations_.size(); } inline int QuotaFailure::violations_size() const { return _internal_violations_size(); } inline void QuotaFailure::clear_violations() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.violations_.Clear(); + violations_.Clear(); } -inline ::google::rpc::QuotaFailure_Violation* QuotaFailure::mutable_violations(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::rpc::QuotaFailure_Violation* QuotaFailure::mutable_violations(int index) { // @@protoc_insertion_point(field_mutable:google.rpc.QuotaFailure.violations) - return _internal_mutable_violations()->Mutable(index); + return violations_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::google::rpc::QuotaFailure_Violation>* QuotaFailure::mutable_violations() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::QuotaFailure_Violation >* +QuotaFailure::mutable_violations() { // @@protoc_insertion_point(field_mutable_list:google.rpc.QuotaFailure.violations) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_violations(); + return &violations_; } -inline const ::google::rpc::QuotaFailure_Violation& QuotaFailure::violations(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::rpc::QuotaFailure_Violation& QuotaFailure::_internal_violations(int index) const { + return violations_.Get(index); +} +inline const ::google::rpc::QuotaFailure_Violation& QuotaFailure::violations(int index) const { // @@protoc_insertion_point(field_get:google.rpc.QuotaFailure.violations) - return _internal_violations().Get(index); + return _internal_violations(index); +} +inline ::google::rpc::QuotaFailure_Violation* QuotaFailure::_internal_add_violations() { + return violations_.Add(); } -inline ::google::rpc::QuotaFailure_Violation* QuotaFailure::add_violations() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::google::rpc::QuotaFailure_Violation* _add = _internal_mutable_violations()->Add(); +inline ::google::rpc::QuotaFailure_Violation* QuotaFailure::add_violations() { + ::google::rpc::QuotaFailure_Violation* _add = _internal_add_violations(); // @@protoc_insertion_point(field_add:google.rpc.QuotaFailure.violations) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::google::rpc::QuotaFailure_Violation>& QuotaFailure::violations() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::QuotaFailure_Violation >& +QuotaFailure::violations() const { // @@protoc_insertion_point(field_list:google.rpc.QuotaFailure.violations) - return _internal_violations(); -} -inline const ::google::protobuf::RepeatedPtrField<::google::rpc::QuotaFailure_Violation>& -QuotaFailure::_internal_violations() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.violations_; -} -inline ::google::protobuf::RepeatedPtrField<::google::rpc::QuotaFailure_Violation>* -QuotaFailure::_internal_mutable_violations() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.violations_; + return violations_; } // ------------------------------------------------------------------- @@ -3522,160 +3023,151 @@ QuotaFailure::_internal_mutable_violations() { // string type = 1 [json_name = "type"]; inline void PreconditionFailure_Violation::clear_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_.ClearToEmpty(); + type_.ClearToEmpty(); } -inline const std::string& PreconditionFailure_Violation::type() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& PreconditionFailure_Violation::type() const { // @@protoc_insertion_point(field_get:google.rpc.PreconditionFailure.Violation.type) return _internal_type(); } -template -inline PROTOBUF_ALWAYS_INLINE void PreconditionFailure_Violation::set_type(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.type_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void PreconditionFailure_Violation::set_type(ArgT0&& arg0, ArgT... args) { + + type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.rpc.PreconditionFailure.Violation.type) } -inline std::string* PreconditionFailure_Violation::mutable_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* PreconditionFailure_Violation::mutable_type() { std::string* _s = _internal_mutable_type(); // @@protoc_insertion_point(field_mutable:google.rpc.PreconditionFailure.Violation.type) return _s; } inline const std::string& PreconditionFailure_Violation::_internal_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.type_.Get(); + return type_.Get(); } inline void PreconditionFailure_Violation::_internal_set_type(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.type_.Set(value, GetArena()); + + type_.Set(value, GetArenaForAllocation()); } inline std::string* PreconditionFailure_Violation::_internal_mutable_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.type_.Mutable( GetArena()); + + return type_.Mutable(GetArenaForAllocation()); } inline std::string* PreconditionFailure_Violation::release_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.rpc.PreconditionFailure.Violation.type) - return _impl_.type_.Release(); -} -inline void PreconditionFailure_Violation::set_allocated_type(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.type_.IsDefault()) { - _impl_.type_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return type_.Release(); +} +inline void PreconditionFailure_Violation::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:google.rpc.PreconditionFailure.Violation.type) } // string subject = 2 [json_name = "subject"]; inline void PreconditionFailure_Violation::clear_subject() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.subject_.ClearToEmpty(); + subject_.ClearToEmpty(); } -inline const std::string& PreconditionFailure_Violation::subject() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& PreconditionFailure_Violation::subject() const { // @@protoc_insertion_point(field_get:google.rpc.PreconditionFailure.Violation.subject) return _internal_subject(); } -template -inline PROTOBUF_ALWAYS_INLINE void PreconditionFailure_Violation::set_subject(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.subject_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void PreconditionFailure_Violation::set_subject(ArgT0&& arg0, ArgT... args) { + + subject_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.rpc.PreconditionFailure.Violation.subject) } -inline std::string* PreconditionFailure_Violation::mutable_subject() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* PreconditionFailure_Violation::mutable_subject() { std::string* _s = _internal_mutable_subject(); // @@protoc_insertion_point(field_mutable:google.rpc.PreconditionFailure.Violation.subject) return _s; } inline const std::string& PreconditionFailure_Violation::_internal_subject() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.subject_.Get(); + return subject_.Get(); } inline void PreconditionFailure_Violation::_internal_set_subject(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.subject_.Set(value, GetArena()); + + subject_.Set(value, GetArenaForAllocation()); } inline std::string* PreconditionFailure_Violation::_internal_mutable_subject() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.subject_.Mutable( GetArena()); + + return subject_.Mutable(GetArenaForAllocation()); } inline std::string* PreconditionFailure_Violation::release_subject() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.rpc.PreconditionFailure.Violation.subject) - return _impl_.subject_.Release(); -} -inline void PreconditionFailure_Violation::set_allocated_subject(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.subject_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.subject_.IsDefault()) { - _impl_.subject_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return subject_.Release(); +} +inline void PreconditionFailure_Violation::set_allocated_subject(std::string* subject) { + if (subject != nullptr) { + + } else { + + } + subject_.SetAllocated(subject, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (subject_.IsDefault()) { + subject_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.rpc.PreconditionFailure.Violation.subject) } // string description = 3 [json_name = "description"]; inline void PreconditionFailure_Violation::clear_description() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.description_.ClearToEmpty(); + description_.ClearToEmpty(); } -inline const std::string& PreconditionFailure_Violation::description() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& PreconditionFailure_Violation::description() const { // @@protoc_insertion_point(field_get:google.rpc.PreconditionFailure.Violation.description) return _internal_description(); } -template -inline PROTOBUF_ALWAYS_INLINE void PreconditionFailure_Violation::set_description(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.description_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void PreconditionFailure_Violation::set_description(ArgT0&& arg0, ArgT... args) { + + description_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.rpc.PreconditionFailure.Violation.description) } -inline std::string* PreconditionFailure_Violation::mutable_description() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* PreconditionFailure_Violation::mutable_description() { std::string* _s = _internal_mutable_description(); // @@protoc_insertion_point(field_mutable:google.rpc.PreconditionFailure.Violation.description) return _s; } inline const std::string& PreconditionFailure_Violation::_internal_description() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.description_.Get(); + return description_.Get(); } inline void PreconditionFailure_Violation::_internal_set_description(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.description_.Set(value, GetArena()); + + description_.Set(value, GetArenaForAllocation()); } inline std::string* PreconditionFailure_Violation::_internal_mutable_description() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.description_.Mutable( GetArena()); + + return description_.Mutable(GetArenaForAllocation()); } inline std::string* PreconditionFailure_Violation::release_description() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.rpc.PreconditionFailure.Violation.description) - return _impl_.description_.Release(); -} -inline void PreconditionFailure_Violation::set_allocated_description(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.description_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.description_.IsDefault()) { - _impl_.description_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return description_.Release(); +} +inline void PreconditionFailure_Violation::set_allocated_description(std::string* description) { + if (description != nullptr) { + + } else { + + } + description_.SetAllocated(description, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (description_.IsDefault()) { + description_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.rpc.PreconditionFailure.Violation.description) } @@ -3685,51 +3177,42 @@ inline void PreconditionFailure_Violation::set_allocated_description(std::string // repeated .google.rpc.PreconditionFailure.Violation violations = 1 [json_name = "violations"]; inline int PreconditionFailure::_internal_violations_size() const { - return _internal_violations().size(); + return violations_.size(); } inline int PreconditionFailure::violations_size() const { return _internal_violations_size(); } inline void PreconditionFailure::clear_violations() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.violations_.Clear(); + violations_.Clear(); } -inline ::google::rpc::PreconditionFailure_Violation* PreconditionFailure::mutable_violations(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::rpc::PreconditionFailure_Violation* PreconditionFailure::mutable_violations(int index) { // @@protoc_insertion_point(field_mutable:google.rpc.PreconditionFailure.violations) - return _internal_mutable_violations()->Mutable(index); + return violations_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::google::rpc::PreconditionFailure_Violation>* PreconditionFailure::mutable_violations() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::PreconditionFailure_Violation >* +PreconditionFailure::mutable_violations() { // @@protoc_insertion_point(field_mutable_list:google.rpc.PreconditionFailure.violations) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_violations(); + return &violations_; } -inline const ::google::rpc::PreconditionFailure_Violation& PreconditionFailure::violations(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::rpc::PreconditionFailure_Violation& PreconditionFailure::_internal_violations(int index) const { + return violations_.Get(index); +} +inline const ::google::rpc::PreconditionFailure_Violation& PreconditionFailure::violations(int index) const { // @@protoc_insertion_point(field_get:google.rpc.PreconditionFailure.violations) - return _internal_violations().Get(index); + return _internal_violations(index); +} +inline ::google::rpc::PreconditionFailure_Violation* PreconditionFailure::_internal_add_violations() { + return violations_.Add(); } -inline ::google::rpc::PreconditionFailure_Violation* PreconditionFailure::add_violations() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::google::rpc::PreconditionFailure_Violation* _add = _internal_mutable_violations()->Add(); +inline ::google::rpc::PreconditionFailure_Violation* PreconditionFailure::add_violations() { + ::google::rpc::PreconditionFailure_Violation* _add = _internal_add_violations(); // @@protoc_insertion_point(field_add:google.rpc.PreconditionFailure.violations) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::google::rpc::PreconditionFailure_Violation>& PreconditionFailure::violations() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::PreconditionFailure_Violation >& +PreconditionFailure::violations() const { // @@protoc_insertion_point(field_list:google.rpc.PreconditionFailure.violations) - return _internal_violations(); -} -inline const ::google::protobuf::RepeatedPtrField<::google::rpc::PreconditionFailure_Violation>& -PreconditionFailure::_internal_violations() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.violations_; -} -inline ::google::protobuf::RepeatedPtrField<::google::rpc::PreconditionFailure_Violation>* -PreconditionFailure::_internal_mutable_violations() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.violations_; + return violations_; } // ------------------------------------------------------------------- @@ -3738,161 +3221,286 @@ PreconditionFailure::_internal_mutable_violations() { // string field = 1 [json_name = "field"]; inline void BadRequest_FieldViolation::clear_field() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.field_.ClearToEmpty(); + field_.ClearToEmpty(); } -inline const std::string& BadRequest_FieldViolation::field() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& BadRequest_FieldViolation::field() const { // @@protoc_insertion_point(field_get:google.rpc.BadRequest.FieldViolation.field) return _internal_field(); } -template -inline PROTOBUF_ALWAYS_INLINE void BadRequest_FieldViolation::set_field(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.field_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void BadRequest_FieldViolation::set_field(ArgT0&& arg0, ArgT... args) { + + field_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.rpc.BadRequest.FieldViolation.field) } -inline std::string* BadRequest_FieldViolation::mutable_field() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* BadRequest_FieldViolation::mutable_field() { std::string* _s = _internal_mutable_field(); // @@protoc_insertion_point(field_mutable:google.rpc.BadRequest.FieldViolation.field) return _s; } inline const std::string& BadRequest_FieldViolation::_internal_field() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.field_.Get(); + return field_.Get(); } inline void BadRequest_FieldViolation::_internal_set_field(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.field_.Set(value, GetArena()); + + field_.Set(value, GetArenaForAllocation()); } inline std::string* BadRequest_FieldViolation::_internal_mutable_field() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.field_.Mutable( GetArena()); + + return field_.Mutable(GetArenaForAllocation()); } inline std::string* BadRequest_FieldViolation::release_field() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.rpc.BadRequest.FieldViolation.field) - return _impl_.field_.Release(); -} -inline void BadRequest_FieldViolation::set_allocated_field(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.field_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.field_.IsDefault()) { - _impl_.field_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return field_.Release(); +} +inline void BadRequest_FieldViolation::set_allocated_field(std::string* field) { + if (field != nullptr) { + + } else { + + } + field_.SetAllocated(field, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (field_.IsDefault()) { + field_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.rpc.BadRequest.FieldViolation.field) } // string description = 2 [json_name = "description"]; inline void BadRequest_FieldViolation::clear_description() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.description_.ClearToEmpty(); + description_.ClearToEmpty(); } -inline const std::string& BadRequest_FieldViolation::description() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& BadRequest_FieldViolation::description() const { // @@protoc_insertion_point(field_get:google.rpc.BadRequest.FieldViolation.description) return _internal_description(); } -template -inline PROTOBUF_ALWAYS_INLINE void BadRequest_FieldViolation::set_description(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.description_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void BadRequest_FieldViolation::set_description(ArgT0&& arg0, ArgT... args) { + + description_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.rpc.BadRequest.FieldViolation.description) } -inline std::string* BadRequest_FieldViolation::mutable_description() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* BadRequest_FieldViolation::mutable_description() { std::string* _s = _internal_mutable_description(); // @@protoc_insertion_point(field_mutable:google.rpc.BadRequest.FieldViolation.description) return _s; } inline const std::string& BadRequest_FieldViolation::_internal_description() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.description_.Get(); + return description_.Get(); } inline void BadRequest_FieldViolation::_internal_set_description(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.description_.Set(value, GetArena()); + + description_.Set(value, GetArenaForAllocation()); } inline std::string* BadRequest_FieldViolation::_internal_mutable_description() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.description_.Mutable( GetArena()); + + return description_.Mutable(GetArenaForAllocation()); } inline std::string* BadRequest_FieldViolation::release_description() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.rpc.BadRequest.FieldViolation.description) - return _impl_.description_.Release(); -} -inline void BadRequest_FieldViolation::set_allocated_description(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.description_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.description_.IsDefault()) { - _impl_.description_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return description_.Release(); +} +inline void BadRequest_FieldViolation::set_allocated_description(std::string* description) { + if (description != nullptr) { + + } else { + + } + description_.SetAllocated(description, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (description_.IsDefault()) { + description_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.rpc.BadRequest.FieldViolation.description) } +// string reason = 3 [json_name = "reason"]; +inline void BadRequest_FieldViolation::clear_reason() { + reason_.ClearToEmpty(); +} +inline const std::string& BadRequest_FieldViolation::reason() const { + // @@protoc_insertion_point(field_get:google.rpc.BadRequest.FieldViolation.reason) + return _internal_reason(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void BadRequest_FieldViolation::set_reason(ArgT0&& arg0, ArgT... args) { + + reason_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:google.rpc.BadRequest.FieldViolation.reason) +} +inline std::string* BadRequest_FieldViolation::mutable_reason() { + std::string* _s = _internal_mutable_reason(); + // @@protoc_insertion_point(field_mutable:google.rpc.BadRequest.FieldViolation.reason) + return _s; +} +inline const std::string& BadRequest_FieldViolation::_internal_reason() const { + return reason_.Get(); +} +inline void BadRequest_FieldViolation::_internal_set_reason(const std::string& value) { + + reason_.Set(value, GetArenaForAllocation()); +} +inline std::string* BadRequest_FieldViolation::_internal_mutable_reason() { + + return reason_.Mutable(GetArenaForAllocation()); +} +inline std::string* BadRequest_FieldViolation::release_reason() { + // @@protoc_insertion_point(field_release:google.rpc.BadRequest.FieldViolation.reason) + return reason_.Release(); +} +inline void BadRequest_FieldViolation::set_allocated_reason(std::string* reason) { + if (reason != nullptr) { + + } else { + + } + reason_.SetAllocated(reason, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (reason_.IsDefault()) { + reason_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:google.rpc.BadRequest.FieldViolation.reason) +} + +// .google.rpc.LocalizedMessage localized_message = 4 [json_name = "localizedMessage"]; +inline bool BadRequest_FieldViolation::_internal_has_localized_message() const { + return this != internal_default_instance() && localized_message_ != nullptr; +} +inline bool BadRequest_FieldViolation::has_localized_message() const { + return _internal_has_localized_message(); +} +inline void BadRequest_FieldViolation::clear_localized_message() { + if (GetArenaForAllocation() == nullptr && localized_message_ != nullptr) { + delete localized_message_; + } + localized_message_ = nullptr; +} +inline const ::google::rpc::LocalizedMessage& BadRequest_FieldViolation::_internal_localized_message() const { + const ::google::rpc::LocalizedMessage* p = localized_message_; + return p != nullptr ? *p : reinterpret_cast( + ::google::rpc::_LocalizedMessage_default_instance_); +} +inline const ::google::rpc::LocalizedMessage& BadRequest_FieldViolation::localized_message() const { + // @@protoc_insertion_point(field_get:google.rpc.BadRequest.FieldViolation.localized_message) + return _internal_localized_message(); +} +inline void BadRequest_FieldViolation::unsafe_arena_set_allocated_localized_message( + ::google::rpc::LocalizedMessage* localized_message) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(localized_message_); + } + localized_message_ = localized_message; + if (localized_message) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.rpc.BadRequest.FieldViolation.localized_message) +} +inline ::google::rpc::LocalizedMessage* BadRequest_FieldViolation::release_localized_message() { + + ::google::rpc::LocalizedMessage* temp = localized_message_; + localized_message_ = 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 ::google::rpc::LocalizedMessage* BadRequest_FieldViolation::unsafe_arena_release_localized_message() { + // @@protoc_insertion_point(field_release:google.rpc.BadRequest.FieldViolation.localized_message) + + ::google::rpc::LocalizedMessage* temp = localized_message_; + localized_message_ = nullptr; + return temp; +} +inline ::google::rpc::LocalizedMessage* BadRequest_FieldViolation::_internal_mutable_localized_message() { + + if (localized_message_ == nullptr) { + auto* p = CreateMaybeMessage<::google::rpc::LocalizedMessage>(GetArenaForAllocation()); + localized_message_ = p; + } + return localized_message_; +} +inline ::google::rpc::LocalizedMessage* BadRequest_FieldViolation::mutable_localized_message() { + ::google::rpc::LocalizedMessage* _msg = _internal_mutable_localized_message(); + // @@protoc_insertion_point(field_mutable:google.rpc.BadRequest.FieldViolation.localized_message) + return _msg; +} +inline void BadRequest_FieldViolation::set_allocated_localized_message(::google::rpc::LocalizedMessage* localized_message) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete localized_message_; + } + if (localized_message) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(localized_message); + if (message_arena != submessage_arena) { + localized_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, localized_message, submessage_arena); + } + + } else { + + } + localized_message_ = localized_message; + // @@protoc_insertion_point(field_set_allocated:google.rpc.BadRequest.FieldViolation.localized_message) +} + // ------------------------------------------------------------------- // BadRequest // repeated .google.rpc.BadRequest.FieldViolation field_violations = 1 [json_name = "fieldViolations"]; inline int BadRequest::_internal_field_violations_size() const { - return _internal_field_violations().size(); + return field_violations_.size(); } inline int BadRequest::field_violations_size() const { return _internal_field_violations_size(); } inline void BadRequest::clear_field_violations() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.field_violations_.Clear(); + field_violations_.Clear(); } -inline ::google::rpc::BadRequest_FieldViolation* BadRequest::mutable_field_violations(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::rpc::BadRequest_FieldViolation* BadRequest::mutable_field_violations(int index) { // @@protoc_insertion_point(field_mutable:google.rpc.BadRequest.field_violations) - return _internal_mutable_field_violations()->Mutable(index); + return field_violations_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::google::rpc::BadRequest_FieldViolation>* BadRequest::mutable_field_violations() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::BadRequest_FieldViolation >* +BadRequest::mutable_field_violations() { // @@protoc_insertion_point(field_mutable_list:google.rpc.BadRequest.field_violations) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_field_violations(); + return &field_violations_; +} +inline const ::google::rpc::BadRequest_FieldViolation& BadRequest::_internal_field_violations(int index) const { + return field_violations_.Get(index); } -inline const ::google::rpc::BadRequest_FieldViolation& BadRequest::field_violations(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::rpc::BadRequest_FieldViolation& BadRequest::field_violations(int index) const { // @@protoc_insertion_point(field_get:google.rpc.BadRequest.field_violations) - return _internal_field_violations().Get(index); + return _internal_field_violations(index); } -inline ::google::rpc::BadRequest_FieldViolation* BadRequest::add_field_violations() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::google::rpc::BadRequest_FieldViolation* _add = _internal_mutable_field_violations()->Add(); +inline ::google::rpc::BadRequest_FieldViolation* BadRequest::_internal_add_field_violations() { + return field_violations_.Add(); +} +inline ::google::rpc::BadRequest_FieldViolation* BadRequest::add_field_violations() { + ::google::rpc::BadRequest_FieldViolation* _add = _internal_add_field_violations(); // @@protoc_insertion_point(field_add:google.rpc.BadRequest.field_violations) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::google::rpc::BadRequest_FieldViolation>& BadRequest::field_violations() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::BadRequest_FieldViolation >& +BadRequest::field_violations() const { // @@protoc_insertion_point(field_list:google.rpc.BadRequest.field_violations) - return _internal_field_violations(); -} -inline const ::google::protobuf::RepeatedPtrField<::google::rpc::BadRequest_FieldViolation>& -BadRequest::_internal_field_violations() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.field_violations_; -} -inline ::google::protobuf::RepeatedPtrField<::google::rpc::BadRequest_FieldViolation>* -BadRequest::_internal_mutable_field_violations() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.field_violations_; + return field_violations_; } // ------------------------------------------------------------------- @@ -3901,107 +3509,101 @@ BadRequest::_internal_mutable_field_violations() { // string request_id = 1 [json_name = "requestId"]; inline void RequestInfo::clear_request_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.request_id_.ClearToEmpty(); + request_id_.ClearToEmpty(); } -inline const std::string& RequestInfo::request_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& RequestInfo::request_id() const { // @@protoc_insertion_point(field_get:google.rpc.RequestInfo.request_id) return _internal_request_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void RequestInfo::set_request_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.request_id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void RequestInfo::set_request_id(ArgT0&& arg0, ArgT... args) { + + request_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.rpc.RequestInfo.request_id) } -inline std::string* RequestInfo::mutable_request_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* RequestInfo::mutable_request_id() { std::string* _s = _internal_mutable_request_id(); // @@protoc_insertion_point(field_mutable:google.rpc.RequestInfo.request_id) return _s; } inline const std::string& RequestInfo::_internal_request_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.request_id_.Get(); + return request_id_.Get(); } inline void RequestInfo::_internal_set_request_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.request_id_.Set(value, GetArena()); + + request_id_.Set(value, GetArenaForAllocation()); } inline std::string* RequestInfo::_internal_mutable_request_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.request_id_.Mutable( GetArena()); + + return request_id_.Mutable(GetArenaForAllocation()); } inline std::string* RequestInfo::release_request_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.rpc.RequestInfo.request_id) - return _impl_.request_id_.Release(); -} -inline void RequestInfo::set_allocated_request_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.request_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.request_id_.IsDefault()) { - _impl_.request_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return request_id_.Release(); +} +inline void RequestInfo::set_allocated_request_id(std::string* request_id) { + if (request_id != nullptr) { + + } else { + + } + request_id_.SetAllocated(request_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (request_id_.IsDefault()) { + request_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.rpc.RequestInfo.request_id) } // string serving_data = 2 [json_name = "servingData"]; inline void RequestInfo::clear_serving_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.serving_data_.ClearToEmpty(); + serving_data_.ClearToEmpty(); } -inline const std::string& RequestInfo::serving_data() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& RequestInfo::serving_data() const { // @@protoc_insertion_point(field_get:google.rpc.RequestInfo.serving_data) return _internal_serving_data(); } -template -inline PROTOBUF_ALWAYS_INLINE void RequestInfo::set_serving_data(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.serving_data_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void RequestInfo::set_serving_data(ArgT0&& arg0, ArgT... args) { + + serving_data_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.rpc.RequestInfo.serving_data) } -inline std::string* RequestInfo::mutable_serving_data() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* RequestInfo::mutable_serving_data() { std::string* _s = _internal_mutable_serving_data(); // @@protoc_insertion_point(field_mutable:google.rpc.RequestInfo.serving_data) return _s; } inline const std::string& RequestInfo::_internal_serving_data() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.serving_data_.Get(); + return serving_data_.Get(); } inline void RequestInfo::_internal_set_serving_data(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.serving_data_.Set(value, GetArena()); + + serving_data_.Set(value, GetArenaForAllocation()); } inline std::string* RequestInfo::_internal_mutable_serving_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.serving_data_.Mutable( GetArena()); + + return serving_data_.Mutable(GetArenaForAllocation()); } inline std::string* RequestInfo::release_serving_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.rpc.RequestInfo.serving_data) - return _impl_.serving_data_.Release(); -} -inline void RequestInfo::set_allocated_serving_data(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.serving_data_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.serving_data_.IsDefault()) { - _impl_.serving_data_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return serving_data_.Release(); +} +inline void RequestInfo::set_allocated_serving_data(std::string* serving_data) { + if (serving_data != nullptr) { + + } else { + + } + serving_data_.SetAllocated(serving_data, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (serving_data_.IsDefault()) { + serving_data_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.rpc.RequestInfo.serving_data) } @@ -4011,213 +3613,201 @@ inline void RequestInfo::set_allocated_serving_data(std::string* value) { // string resource_type = 1 [json_name = "resourceType"]; inline void ResourceInfo::clear_resource_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.resource_type_.ClearToEmpty(); + resource_type_.ClearToEmpty(); } -inline const std::string& ResourceInfo::resource_type() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ResourceInfo::resource_type() const { // @@protoc_insertion_point(field_get:google.rpc.ResourceInfo.resource_type) return _internal_resource_type(); } -template -inline PROTOBUF_ALWAYS_INLINE void ResourceInfo::set_resource_type(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.resource_type_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ResourceInfo::set_resource_type(ArgT0&& arg0, ArgT... args) { + + resource_type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.rpc.ResourceInfo.resource_type) } -inline std::string* ResourceInfo::mutable_resource_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ResourceInfo::mutable_resource_type() { std::string* _s = _internal_mutable_resource_type(); // @@protoc_insertion_point(field_mutable:google.rpc.ResourceInfo.resource_type) return _s; } inline const std::string& ResourceInfo::_internal_resource_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.resource_type_.Get(); + return resource_type_.Get(); } inline void ResourceInfo::_internal_set_resource_type(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.resource_type_.Set(value, GetArena()); + + resource_type_.Set(value, GetArenaForAllocation()); } inline std::string* ResourceInfo::_internal_mutable_resource_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.resource_type_.Mutable( GetArena()); + + return resource_type_.Mutable(GetArenaForAllocation()); } inline std::string* ResourceInfo::release_resource_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.rpc.ResourceInfo.resource_type) - return _impl_.resource_type_.Release(); -} -inline void ResourceInfo::set_allocated_resource_type(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.resource_type_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.resource_type_.IsDefault()) { - _impl_.resource_type_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return resource_type_.Release(); +} +inline void ResourceInfo::set_allocated_resource_type(std::string* resource_type) { + if (resource_type != nullptr) { + + } else { + + } + resource_type_.SetAllocated(resource_type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (resource_type_.IsDefault()) { + resource_type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.rpc.ResourceInfo.resource_type) } // string resource_name = 2 [json_name = "resourceName"]; inline void ResourceInfo::clear_resource_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.resource_name_.ClearToEmpty(); + resource_name_.ClearToEmpty(); } -inline const std::string& ResourceInfo::resource_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ResourceInfo::resource_name() const { // @@protoc_insertion_point(field_get:google.rpc.ResourceInfo.resource_name) return _internal_resource_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void ResourceInfo::set_resource_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.resource_name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ResourceInfo::set_resource_name(ArgT0&& arg0, ArgT... args) { + + resource_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.rpc.ResourceInfo.resource_name) } -inline std::string* ResourceInfo::mutable_resource_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ResourceInfo::mutable_resource_name() { std::string* _s = _internal_mutable_resource_name(); // @@protoc_insertion_point(field_mutable:google.rpc.ResourceInfo.resource_name) return _s; } inline const std::string& ResourceInfo::_internal_resource_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.resource_name_.Get(); + return resource_name_.Get(); } inline void ResourceInfo::_internal_set_resource_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.resource_name_.Set(value, GetArena()); + + resource_name_.Set(value, GetArenaForAllocation()); } inline std::string* ResourceInfo::_internal_mutable_resource_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.resource_name_.Mutable( GetArena()); + + return resource_name_.Mutable(GetArenaForAllocation()); } inline std::string* ResourceInfo::release_resource_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.rpc.ResourceInfo.resource_name) - return _impl_.resource_name_.Release(); -} -inline void ResourceInfo::set_allocated_resource_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.resource_name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.resource_name_.IsDefault()) { - _impl_.resource_name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return resource_name_.Release(); +} +inline void ResourceInfo::set_allocated_resource_name(std::string* resource_name) { + if (resource_name != nullptr) { + + } else { + + } + resource_name_.SetAllocated(resource_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (resource_name_.IsDefault()) { + resource_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.rpc.ResourceInfo.resource_name) } // string owner = 3 [json_name = "owner"]; inline void ResourceInfo::clear_owner() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.owner_.ClearToEmpty(); + owner_.ClearToEmpty(); } -inline const std::string& ResourceInfo::owner() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ResourceInfo::owner() const { // @@protoc_insertion_point(field_get:google.rpc.ResourceInfo.owner) return _internal_owner(); } -template -inline PROTOBUF_ALWAYS_INLINE void ResourceInfo::set_owner(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.owner_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ResourceInfo::set_owner(ArgT0&& arg0, ArgT... args) { + + owner_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.rpc.ResourceInfo.owner) } -inline std::string* ResourceInfo::mutable_owner() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ResourceInfo::mutable_owner() { std::string* _s = _internal_mutable_owner(); // @@protoc_insertion_point(field_mutable:google.rpc.ResourceInfo.owner) return _s; } inline const std::string& ResourceInfo::_internal_owner() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.owner_.Get(); + return owner_.Get(); } inline void ResourceInfo::_internal_set_owner(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.owner_.Set(value, GetArena()); + + owner_.Set(value, GetArenaForAllocation()); } inline std::string* ResourceInfo::_internal_mutable_owner() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.owner_.Mutable( GetArena()); + + return owner_.Mutable(GetArenaForAllocation()); } inline std::string* ResourceInfo::release_owner() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.rpc.ResourceInfo.owner) - return _impl_.owner_.Release(); -} -inline void ResourceInfo::set_allocated_owner(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.owner_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.owner_.IsDefault()) { - _impl_.owner_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return owner_.Release(); +} +inline void ResourceInfo::set_allocated_owner(std::string* owner) { + if (owner != nullptr) { + + } else { + + } + owner_.SetAllocated(owner, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (owner_.IsDefault()) { + owner_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.rpc.ResourceInfo.owner) } // string description = 4 [json_name = "description"]; inline void ResourceInfo::clear_description() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.description_.ClearToEmpty(); + description_.ClearToEmpty(); } -inline const std::string& ResourceInfo::description() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ResourceInfo::description() const { // @@protoc_insertion_point(field_get:google.rpc.ResourceInfo.description) return _internal_description(); } -template -inline PROTOBUF_ALWAYS_INLINE void ResourceInfo::set_description(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.description_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ResourceInfo::set_description(ArgT0&& arg0, ArgT... args) { + + description_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.rpc.ResourceInfo.description) } -inline std::string* ResourceInfo::mutable_description() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ResourceInfo::mutable_description() { std::string* _s = _internal_mutable_description(); // @@protoc_insertion_point(field_mutable:google.rpc.ResourceInfo.description) return _s; } inline const std::string& ResourceInfo::_internal_description() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.description_.Get(); + return description_.Get(); } inline void ResourceInfo::_internal_set_description(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.description_.Set(value, GetArena()); + + description_.Set(value, GetArenaForAllocation()); } inline std::string* ResourceInfo::_internal_mutable_description() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.description_.Mutable( GetArena()); + + return description_.Mutable(GetArenaForAllocation()); } inline std::string* ResourceInfo::release_description() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.rpc.ResourceInfo.description) - return _impl_.description_.Release(); -} -inline void ResourceInfo::set_allocated_description(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.description_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.description_.IsDefault()) { - _impl_.description_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return description_.Release(); +} +inline void ResourceInfo::set_allocated_description(std::string* description) { + if (description != nullptr) { + + } else { + + } + description_.SetAllocated(description, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (description_.IsDefault()) { + description_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.rpc.ResourceInfo.description) } @@ -4227,107 +3817,101 @@ inline void ResourceInfo::set_allocated_description(std::string* value) { // string description = 1 [json_name = "description"]; inline void Help_Link::clear_description() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.description_.ClearToEmpty(); + description_.ClearToEmpty(); } -inline const std::string& Help_Link::description() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Help_Link::description() const { // @@protoc_insertion_point(field_get:google.rpc.Help.Link.description) return _internal_description(); } -template -inline PROTOBUF_ALWAYS_INLINE void Help_Link::set_description(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.description_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Help_Link::set_description(ArgT0&& arg0, ArgT... args) { + + description_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.rpc.Help.Link.description) } -inline std::string* Help_Link::mutable_description() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Help_Link::mutable_description() { std::string* _s = _internal_mutable_description(); // @@protoc_insertion_point(field_mutable:google.rpc.Help.Link.description) return _s; } inline const std::string& Help_Link::_internal_description() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.description_.Get(); + return description_.Get(); } inline void Help_Link::_internal_set_description(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.description_.Set(value, GetArena()); + + description_.Set(value, GetArenaForAllocation()); } inline std::string* Help_Link::_internal_mutable_description() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.description_.Mutable( GetArena()); + + return description_.Mutable(GetArenaForAllocation()); } inline std::string* Help_Link::release_description() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.rpc.Help.Link.description) - return _impl_.description_.Release(); -} -inline void Help_Link::set_allocated_description(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.description_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.description_.IsDefault()) { - _impl_.description_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return description_.Release(); +} +inline void Help_Link::set_allocated_description(std::string* description) { + if (description != nullptr) { + + } else { + + } + description_.SetAllocated(description, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (description_.IsDefault()) { + description_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.rpc.Help.Link.description) } // string url = 2 [json_name = "url"]; inline void Help_Link::clear_url() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.url_.ClearToEmpty(); + url_.ClearToEmpty(); } -inline const std::string& Help_Link::url() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Help_Link::url() const { // @@protoc_insertion_point(field_get:google.rpc.Help.Link.url) return _internal_url(); } -template -inline PROTOBUF_ALWAYS_INLINE void Help_Link::set_url(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.url_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Help_Link::set_url(ArgT0&& arg0, ArgT... args) { + + url_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.rpc.Help.Link.url) } -inline std::string* Help_Link::mutable_url() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Help_Link::mutable_url() { std::string* _s = _internal_mutable_url(); // @@protoc_insertion_point(field_mutable:google.rpc.Help.Link.url) return _s; } inline const std::string& Help_Link::_internal_url() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.url_.Get(); + return url_.Get(); } inline void Help_Link::_internal_set_url(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.url_.Set(value, GetArena()); + + url_.Set(value, GetArenaForAllocation()); } inline std::string* Help_Link::_internal_mutable_url() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.url_.Mutable( GetArena()); + + return url_.Mutable(GetArenaForAllocation()); } inline std::string* Help_Link::release_url() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.rpc.Help.Link.url) - return _impl_.url_.Release(); -} -inline void Help_Link::set_allocated_url(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.url_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.url_.IsDefault()) { - _impl_.url_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return url_.Release(); +} +inline void Help_Link::set_allocated_url(std::string* url) { + if (url != nullptr) { + + } else { + + } + url_.SetAllocated(url, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (url_.IsDefault()) { + url_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.rpc.Help.Link.url) } @@ -4337,51 +3921,42 @@ inline void Help_Link::set_allocated_url(std::string* value) { // repeated .google.rpc.Help.Link links = 1 [json_name = "links"]; inline int Help::_internal_links_size() const { - return _internal_links().size(); + return links_.size(); } inline int Help::links_size() const { return _internal_links_size(); } inline void Help::clear_links() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.links_.Clear(); + links_.Clear(); } -inline ::google::rpc::Help_Link* Help::mutable_links(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::rpc::Help_Link* Help::mutable_links(int index) { // @@protoc_insertion_point(field_mutable:google.rpc.Help.links) - return _internal_mutable_links()->Mutable(index); + return links_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::google::rpc::Help_Link>* Help::mutable_links() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::Help_Link >* +Help::mutable_links() { // @@protoc_insertion_point(field_mutable_list:google.rpc.Help.links) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_links(); + return &links_; +} +inline const ::google::rpc::Help_Link& Help::_internal_links(int index) const { + return links_.Get(index); } -inline const ::google::rpc::Help_Link& Help::links(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::rpc::Help_Link& Help::links(int index) const { // @@protoc_insertion_point(field_get:google.rpc.Help.links) - return _internal_links().Get(index); + return _internal_links(index); } -inline ::google::rpc::Help_Link* Help::add_links() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::google::rpc::Help_Link* _add = _internal_mutable_links()->Add(); +inline ::google::rpc::Help_Link* Help::_internal_add_links() { + return links_.Add(); +} +inline ::google::rpc::Help_Link* Help::add_links() { + ::google::rpc::Help_Link* _add = _internal_add_links(); // @@protoc_insertion_point(field_add:google.rpc.Help.links) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::google::rpc::Help_Link>& Help::links() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::rpc::Help_Link >& +Help::links() const { // @@protoc_insertion_point(field_list:google.rpc.Help.links) - return _internal_links(); -} -inline const ::google::protobuf::RepeatedPtrField<::google::rpc::Help_Link>& -Help::_internal_links() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.links_; -} -inline ::google::protobuf::RepeatedPtrField<::google::rpc::Help_Link>* -Help::_internal_mutable_links() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.links_; + return links_; } // ------------------------------------------------------------------- @@ -4390,121 +3965,142 @@ Help::_internal_mutable_links() { // string locale = 1 [json_name = "locale"]; inline void LocalizedMessage::clear_locale() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.locale_.ClearToEmpty(); + locale_.ClearToEmpty(); } -inline const std::string& LocalizedMessage::locale() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& LocalizedMessage::locale() const { // @@protoc_insertion_point(field_get:google.rpc.LocalizedMessage.locale) return _internal_locale(); } -template -inline PROTOBUF_ALWAYS_INLINE void LocalizedMessage::set_locale(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.locale_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void LocalizedMessage::set_locale(ArgT0&& arg0, ArgT... args) { + + locale_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.rpc.LocalizedMessage.locale) } -inline std::string* LocalizedMessage::mutable_locale() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* LocalizedMessage::mutable_locale() { std::string* _s = _internal_mutable_locale(); // @@protoc_insertion_point(field_mutable:google.rpc.LocalizedMessage.locale) return _s; } inline const std::string& LocalizedMessage::_internal_locale() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.locale_.Get(); + return locale_.Get(); } inline void LocalizedMessage::_internal_set_locale(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.locale_.Set(value, GetArena()); + + locale_.Set(value, GetArenaForAllocation()); } inline std::string* LocalizedMessage::_internal_mutable_locale() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.locale_.Mutable( GetArena()); + + return locale_.Mutable(GetArenaForAllocation()); } inline std::string* LocalizedMessage::release_locale() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.rpc.LocalizedMessage.locale) - return _impl_.locale_.Release(); -} -inline void LocalizedMessage::set_allocated_locale(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.locale_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.locale_.IsDefault()) { - _impl_.locale_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return locale_.Release(); +} +inline void LocalizedMessage::set_allocated_locale(std::string* locale) { + if (locale != nullptr) { + + } else { + + } + locale_.SetAllocated(locale, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (locale_.IsDefault()) { + locale_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.rpc.LocalizedMessage.locale) } // string message = 2 [json_name = "message"]; inline void LocalizedMessage::clear_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.message_.ClearToEmpty(); + message_.ClearToEmpty(); } -inline const std::string& LocalizedMessage::message() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& LocalizedMessage::message() const { // @@protoc_insertion_point(field_get:google.rpc.LocalizedMessage.message) return _internal_message(); } -template -inline PROTOBUF_ALWAYS_INLINE void LocalizedMessage::set_message(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.message_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void LocalizedMessage::set_message(ArgT0&& arg0, ArgT... args) { + + message_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.rpc.LocalizedMessage.message) } -inline std::string* LocalizedMessage::mutable_message() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* LocalizedMessage::mutable_message() { std::string* _s = _internal_mutable_message(); // @@protoc_insertion_point(field_mutable:google.rpc.LocalizedMessage.message) return _s; } inline const std::string& LocalizedMessage::_internal_message() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.message_.Get(); + return message_.Get(); } inline void LocalizedMessage::_internal_set_message(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.message_.Set(value, GetArena()); + + message_.Set(value, GetArenaForAllocation()); } inline std::string* LocalizedMessage::_internal_mutable_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.message_.Mutable( GetArena()); + + return message_.Mutable(GetArenaForAllocation()); } inline std::string* LocalizedMessage::release_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.rpc.LocalizedMessage.message) - return _impl_.message_.Release(); -} -inline void LocalizedMessage::set_allocated_message(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.message_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.message_.IsDefault()) { - _impl_.message_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return message_.Release(); +} +inline void LocalizedMessage::set_allocated_message(std::string* message) { + if (message != nullptr) { + + } else { + + } + message_.SetAllocated(message, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (message_.IsDefault()) { + message_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.rpc.LocalizedMessage.message) } #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) + } // namespace rpc } // namespace google - // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_google_2frpc_2ferror_5fdetails_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2frpc_2ferror_5fdetails_2eproto diff --git a/src/viam/api/google/rpc/status.grpc.pb.cc b/src/viam/api/google/rpc/status.grpc.pb.cc index 2f07fd333..db282e2fd 100644 --- a/src/viam/api/google/rpc/status.grpc.pb.cc +++ b/src/viam/api/google/rpc/status.grpc.pb.cc @@ -6,19 +6,19 @@ #include "google/rpc/status.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace google { namespace rpc { diff --git a/src/viam/api/google/rpc/status.grpc.pb.h b/src/viam/api/google/rpc/status.grpc.pb.h index edb1bdc4d..dba51e789 100644 --- a/src/viam/api/google/rpc/status.grpc.pb.h +++ b/src/viam/api/google/rpc/status.grpc.pb.h @@ -22,23 +22,24 @@ #include "google/rpc/status.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace google { namespace rpc { diff --git a/src/viam/api/google/rpc/status.pb.cc b/src/viam/api/google/rpc/status.pb.cc index 86e866651..dc2930fbb 100644 --- a/src/viam/api/google/rpc/status.pb.cc +++ b/src/viam/api/google/rpc/status.pb.cc @@ -4,130 +4,93 @@ #include "google/rpc/status.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace google { namespace rpc { - -inline constexpr Status::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : details_{}, - message_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - code_{0}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR Status::Status(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_CONSTEXPR Status::Status( + ::_pbi::ConstantInitialized) + : details_() + , message_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , code_(0){} struct StatusDefaultTypeInternal { - PROTOBUF_CONSTEXPR StatusDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR StatusDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~StatusDefaultTypeInternal() {} union { Status _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StatusDefaultTypeInternal _Status_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StatusDefaultTypeInternal _Status_default_instance_; } // namespace rpc } // namespace google static ::_pb::Metadata file_level_metadata_google_2frpc_2fstatus_2eproto[1]; -static constexpr const ::_pb::EnumDescriptor** - file_level_enum_descriptors_google_2frpc_2fstatus_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_google_2frpc_2fstatus_2eproto = nullptr; -const ::uint32_t TableStruct_google_2frpc_2fstatus_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::rpc::Status, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::rpc::Status, _impl_.code_), - PROTOBUF_FIELD_OFFSET(::google::rpc::Status, _impl_.message_), - PROTOBUF_FIELD_OFFSET(::google::rpc::Status, _impl_.details_), +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_google_2frpc_2fstatus_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_google_2frpc_2fstatus_2eproto = nullptr; + +const uint32_t TableStruct_google_2frpc_2fstatus_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::rpc::Status, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::google::rpc::Status, code_), + PROTOBUF_FIELD_OFFSET(::google::rpc::Status, message_), + PROTOBUF_FIELD_OFFSET(::google::rpc::Status, details_), }; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, -1, -1, sizeof(::google::rpc::Status)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::google::rpc::Status)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::google::rpc::_Status_default_instance_._instance, -}; -const char descriptor_table_protodef_google_2frpc_2fstatus_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n\027google/rpc/status.proto\022\ngoogle.rpc\032\031g" - "oogle/protobuf/any.proto\"f\n\006Status\022\022\n\004co" - "de\030\001 \001(\005R\004code\022\030\n\007message\030\002 \001(\tR\007message" - "\022.\n\007details\030\003 \003(\0132\024.google.protobuf.AnyR" - "\007detailsB\242\001\n\016com.google.rpcB\013StatusProto" - "P\001Z7google.golang.org/genproto/googleapi" - "s/rpc/status;status\370\001\001\242\002\003GRX\252\002\nGoogle.Rp" - "c\312\002\nGoogle\\Rpc\342\002\026Google\\Rpc\\GPBMetadata\352" - "\002\013Google::Rpcb\006proto3" + &::google::rpc::_Status_default_instance_._instance, }; -static const ::_pbi::DescriptorTable* const descriptor_table_google_2frpc_2fstatus_2eproto_deps[1] = - { - &::descriptor_table_google_2fprotobuf_2fany_2eproto, + +const char descriptor_table_protodef_google_2frpc_2fstatus_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\027google/rpc/status.proto\022\ngoogle.rpc\032\031g" + "oogle/protobuf/any.proto\"f\n\006Status\022\022\n\004co" + "de\030\001 \001(\005R\004code\022\030\n\007message\030\002 \001(\tR\007message" + "\022.\n\007details\030\003 \003(\0132\024.google.protobuf.AnyR" + "\007detailsBa\n\016com.google.rpcB\013StatusProtoP" + "\001Z7google.golang.org/genproto/googleapis" + "/rpc/status;status\370\001\001\242\002\003RPCb\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_google_2frpc_2fstatus_2eproto_deps[1] = { + &::descriptor_table_google_2fprotobuf_2fany_2eproto, }; -static ::absl::once_flag descriptor_table_google_2frpc_2fstatus_2eproto_once; +static ::_pbi::once_flag descriptor_table_google_2frpc_2fstatus_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_google_2frpc_2fstatus_2eproto = { - false, - false, - 341, - descriptor_table_protodef_google_2frpc_2fstatus_2eproto, + false, false, 275, descriptor_table_protodef_google_2frpc_2fstatus_2eproto, "google/rpc/status.proto", - &descriptor_table_google_2frpc_2fstatus_2eproto_once, - descriptor_table_google_2frpc_2fstatus_2eproto_deps, - 1, - 1, - schemas, - file_default_instances, - TableStruct_google_2frpc_2fstatus_2eproto::offsets, - file_level_metadata_google_2frpc_2fstatus_2eproto, - file_level_enum_descriptors_google_2frpc_2fstatus_2eproto, + &descriptor_table_google_2frpc_2fstatus_2eproto_once, descriptor_table_google_2frpc_2fstatus_2eproto_deps, 1, 1, + schemas, file_default_instances, TableStruct_google_2frpc_2fstatus_2eproto::offsets, + file_level_metadata_google_2frpc_2fstatus_2eproto, file_level_enum_descriptors_google_2frpc_2fstatus_2eproto, file_level_service_descriptors_google_2frpc_2fstatus_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2frpc_2fstatus_2eproto_getter() { return &descriptor_table_google_2frpc_2fstatus_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2frpc_2fstatus_2eproto(&descriptor_table_google_2frpc_2fstatus_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2frpc_2fstatus_2eproto(&descriptor_table_google_2frpc_2fstatus_2eproto); namespace google { namespace rpc { + // =================================================================== class Status::_Internal { @@ -135,215 +98,224 @@ class Status::_Internal { }; void Status::clear_details() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.details_.Clear(); + details_.Clear(); } -Status::Status(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Status::Status(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + details_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:google.rpc.Status) } -inline PROTOBUF_NDEBUG_INLINE Status::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : details_{visibility, arena, from.details_}, - message_(arena, from.message_), - _cached_size_{0} {} - -Status::Status( - ::google::protobuf::Arena* arena, - const Status& from) - : ::google::protobuf::Message(arena) { - Status* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.code_ = from._impl_.code_; - +Status::Status(const Status& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + details_(from.details_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + message_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + message_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_message().empty()) { + message_.Set(from._internal_message(), + GetArenaForAllocation()); + } + code_ = from.code_; // @@protoc_insertion_point(copy_constructor:google.rpc.Status) } -inline PROTOBUF_NDEBUG_INLINE Status::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : details_{visibility, arena}, - message_(arena), - _cached_size_{0} {} - -inline void Status::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.code_ = {}; + +inline void Status::SharedCtor() { +message_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + message_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +code_ = 0; } + Status::~Status() { // @@protoc_insertion_point(destructor:google.rpc.Status) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Status::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.message_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + message_.Destroy(); +} + +void Status::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void Status::Clear() { +void Status::Clear() { // @@protoc_insertion_point(message_clear_start:google.rpc.Status) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.details_.Clear(); - _impl_.message_.ClearToEmpty(); - _impl_.code_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + details_.Clear(); + message_.ClearToEmpty(); + code_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* Status::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +const char* Status::_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) { + // int32 code = 1 [json_name = "code"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + code_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string message = 2 [json_name = "message"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_message(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "google.rpc.Status.message")); + } else + goto handle_unusual; + continue; + // repeated .google.protobuf.Any details = 3 [json_name = "details"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_details(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 1, 33, 2> Status::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Status_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // int32 code = 1 [json_name = "code"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Status, _impl_.code_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(Status, _impl_.code_)}}, - // string message = 2 [json_name = "message"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(Status, _impl_.message_)}}, - // repeated .google.protobuf.Any details = 3 [json_name = "details"]; - {::_pbi::TcParser::FastMtR1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(Status, _impl_.details_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // int32 code = 1 [json_name = "code"]; - {PROTOBUF_FIELD_OFFSET(Status, _impl_.code_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // string message = 2 [json_name = "message"]; - {PROTOBUF_FIELD_OFFSET(Status, _impl_.message_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated .google.protobuf.Any details = 3 [json_name = "details"]; - {PROTOBUF_FIELD_OFFSET(Status, _impl_.details_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Any>()}, - }}, {{ - "\21\0\7\0\0\0\0\0" - "google.rpc.Status" - "message" - }}, -}; - -::uint8_t* Status::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Status::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.rpc.Status) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // int32 code = 1 [json_name = "code"]; if (this->_internal_code() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<1>( - stream, this->_internal_code(), target); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_code(), target); } // string message = 2 [json_name = "message"]; if (!this->_internal_message().empty()) { - const std::string& _s = this->_internal_message(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.rpc.Status.message"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_message().data(), static_cast(this->_internal_message().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "google.rpc.Status.message"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_message(), target); } // repeated .google.protobuf.Any details = 3 [json_name = "details"]; for (unsigned i = 0, n = static_cast(this->_internal_details_size()); i < n; i++) { - const auto& repfield = this->_internal_details().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_details(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:google.rpc.Status) return target; } -::size_t Status::ByteSizeLong() const { +size_t Status::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:google.rpc.Status) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .google.protobuf.Any details = 3 [json_name = "details"]; total_size += 1UL * this->_internal_details_size(); - for (const auto& msg : this->_internal_details()) { + for (const auto& msg : this->details_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // string message = 2 [json_name = "message"]; if (!this->_internal_message().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_message()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_message()); } // int32 code = 1 [json_name = "code"]; if (this->_internal_code() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_code()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_code()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Status::_class_data_ = { - Status::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Status::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Status::MergeImpl }; -const ::google::protobuf::Message::ClassData* Status::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Status::GetClassData() const { return &_class_data_; } + +void Status::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Status::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.Status) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Status::MergeFrom(const Status& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.Status) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_details()->MergeFrom( - from._internal_details()); + details_.MergeFrom(from.details_); if (!from._internal_message().empty()) { - _this->_internal_set_message(from._internal_message()); + _internal_set_message(from._internal_message()); } if (from._internal_code() != 0) { - _this->_internal_set_code(from._internal_code()); + _internal_set_code(from._internal_code()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Status::CopyFrom(const Status& from) { @@ -353,34 +325,38 @@ void Status::CopyFrom(const Status& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Status::IsInitialized() const { +bool Status::IsInitialized() const { return true; } -::_pbi::CachedSize* Status::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Status::InternalSwap(Status* PROTOBUF_RESTRICT other) { +void Status::InternalSwap(Status* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.details_.InternalSwap(&other->_impl_.details_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.message_, &other->_impl_.message_, arena); - swap(_impl_.code_, other->_impl_.code_); + details_.InternalSwap(&other->details_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &message_, lhs_arena, + &other->message_, rhs_arena + ); + swap(code_, other->code_); } -::google::protobuf::Metadata Status::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Status::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_google_2frpc_2fstatus_2eproto_getter, &descriptor_table_google_2frpc_2fstatus_2eproto_once, file_level_metadata_google_2frpc_2fstatus_2eproto[0]); } + // @@protoc_insertion_point(namespace_scope) } // namespace rpc } // namespace google -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::google::rpc::Status* +Arena::CreateMaybeMessage< ::google::rpc::Status >(Arena* arena) { + return Arena::CreateMessageInternal< ::google::rpc::Status >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/google/rpc/status.pb.h b/src/viam/api/google/rpc/status.pb.h index 80c3c6b10..770fc21fc 100644 --- a/src/viam/api/google/rpc/status.pb.h +++ b/src/viam/api/google/rpc/status.pb.h @@ -1,89 +1,73 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/rpc/status.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2frpc_2fstatus_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_google_2frpc_2fstatus_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2frpc_2fstatus_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_google_2frpc_2fstatus_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/unknown_field_set.h" -#include "google/protobuf/any.pb.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +// @@protoc_insertion_point(includes) +#include #define PROTOBUF_INTERNAL_EXPORT_google_2frpc_2fstatus_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_google_2frpc_2fstatus_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_google_2frpc_2fstatus_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2frpc_2fstatus_2eproto; namespace google { namespace rpc { class Status; struct StatusDefaultTypeInternal; extern StatusDefaultTypeInternal _Status_default_instance_; } // namespace rpc -namespace protobuf { -} // namespace protobuf } // namespace google - +PROTOBUF_NAMESPACE_OPEN +template<> ::google::rpc::Status* Arena::CreateMaybeMessage<::google::rpc::Status>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace google { namespace rpc { // =================================================================== - -// ------------------------------------------------------------------- - class Status final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.rpc.Status) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.rpc.Status) */ { public: inline Status() : Status(nullptr) {} ~Status() override; - template - explicit PROTOBUF_CONSTEXPR Status(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR Status(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Status(const Status& from) - : Status(nullptr, from) {} + Status(const Status& from); Status(Status&& from) noexcept : Status() { *this = ::std::move(from); @@ -95,9 +79,9 @@ class Status final : } inline Status& operator=(Status&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -107,22 +91,13 @@ class Status final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const Status& default_instance() { @@ -141,65 +116,63 @@ class Status final : inline void Swap(Status* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(Status* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Status* New(::google::protobuf::Arena* arena = nullptr) const final { + Status* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const Status& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Status& from) { - Status::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Status& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(Status* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "google.rpc.Status"; } protected: - explicit Status(::google::protobuf::Arena* arena); - Status(::google::protobuf::Arena* arena, const Status& from); + explicit Status(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -214,227 +187,184 @@ class Status final : int details_size() const; private: int _internal_details_size() const; - public: - void clear_details() ; - ::google::protobuf::Any* mutable_details(int index); - ::google::protobuf::RepeatedPtrField< ::google::protobuf::Any >* + void clear_details(); + ::PROTOBUF_NAMESPACE_ID::Any* mutable_details(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Any >* mutable_details(); private: - const ::google::protobuf::RepeatedPtrField<::google::protobuf::Any>& _internal_details() const; - ::google::protobuf::RepeatedPtrField<::google::protobuf::Any>* _internal_mutable_details(); + const ::PROTOBUF_NAMESPACE_ID::Any& _internal_details(int index) const; + ::PROTOBUF_NAMESPACE_ID::Any* _internal_add_details(); public: - const ::google::protobuf::Any& details(int index) const; - ::google::protobuf::Any* add_details(); - const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Any >& + const ::PROTOBUF_NAMESPACE_ID::Any& details(int index) const; + ::PROTOBUF_NAMESPACE_ID::Any* add_details(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Any >& details() const; + // string message = 2 [json_name = "message"]; - void clear_message() ; + void clear_message(); const std::string& message() const; - template - void set_message(Arg_&& arg, Args_... args); + template + void set_message(ArgT0&& arg0, ArgT... args); std::string* mutable_message(); PROTOBUF_NODISCARD std::string* release_message(); - void set_allocated_message(std::string* value); - + void set_allocated_message(std::string* message); private: const std::string& _internal_message() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_message( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_message(const std::string& value); std::string* _internal_mutable_message(); - public: - // int32 code = 1 [json_name = "code"]; - void clear_code() ; - ::int32_t code() const; - void set_code(::int32_t value); + // int32 code = 1 [json_name = "code"]; + void clear_code(); + int32_t code() const; + void set_code(int32_t value); private: - ::int32_t _internal_code() const; - void _internal_set_code(::int32_t value); - + int32_t _internal_code() const; + void _internal_set_code(int32_t value); public: + // @@protoc_insertion_point(class_scope:google.rpc.Status) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 1, - 33, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::google::protobuf::Any > details_; - ::google::protobuf::internal::ArenaStringPtr message_; - ::int32_t code_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Any > details_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_; + int32_t code_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2frpc_2fstatus_2eproto; }; - // =================================================================== - - // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ -// ------------------------------------------------------------------- - // Status // int32 code = 1 [json_name = "code"]; inline void Status::clear_code() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.code_ = 0; + code_ = 0; +} +inline int32_t Status::_internal_code() const { + return code_; } -inline ::int32_t Status::code() const { +inline int32_t Status::code() const { // @@protoc_insertion_point(field_get:google.rpc.Status.code) return _internal_code(); } -inline void Status::set_code(::int32_t value) { +inline void Status::_internal_set_code(int32_t value) { + + code_ = value; +} +inline void Status::set_code(int32_t value) { _internal_set_code(value); // @@protoc_insertion_point(field_set:google.rpc.Status.code) } -inline ::int32_t Status::_internal_code() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.code_; -} -inline void Status::_internal_set_code(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.code_ = value; -} // string message = 2 [json_name = "message"]; inline void Status::clear_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.message_.ClearToEmpty(); + message_.ClearToEmpty(); } -inline const std::string& Status::message() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Status::message() const { // @@protoc_insertion_point(field_get:google.rpc.Status.message) return _internal_message(); } -template -inline PROTOBUF_ALWAYS_INLINE void Status::set_message(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.message_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Status::set_message(ArgT0&& arg0, ArgT... args) { + + message_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.rpc.Status.message) } -inline std::string* Status::mutable_message() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Status::mutable_message() { std::string* _s = _internal_mutable_message(); // @@protoc_insertion_point(field_mutable:google.rpc.Status.message) return _s; } inline const std::string& Status::_internal_message() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.message_.Get(); + return message_.Get(); } inline void Status::_internal_set_message(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.message_.Set(value, GetArena()); + + message_.Set(value, GetArenaForAllocation()); } inline std::string* Status::_internal_mutable_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.message_.Mutable( GetArena()); + + return message_.Mutable(GetArenaForAllocation()); } inline std::string* Status::release_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.rpc.Status.message) - return _impl_.message_.Release(); + return message_.Release(); } -inline void Status::set_allocated_message(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.message_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.message_.IsDefault()) { - _impl_.message_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline void Status::set_allocated_message(std::string* message) { + if (message != nullptr) { + + } else { + + } + message_.SetAllocated(message, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (message_.IsDefault()) { + message_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.rpc.Status.message) } // repeated .google.protobuf.Any details = 3 [json_name = "details"]; inline int Status::_internal_details_size() const { - return _internal_details().size(); + return details_.size(); } inline int Status::details_size() const { return _internal_details_size(); } -inline ::google::protobuf::Any* Status::mutable_details(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::Any* Status::mutable_details(int index) { // @@protoc_insertion_point(field_mutable:google.rpc.Status.details) - return _internal_mutable_details()->Mutable(index); + return details_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::google::protobuf::Any>* Status::mutable_details() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Any >* +Status::mutable_details() { // @@protoc_insertion_point(field_mutable_list:google.rpc.Status.details) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_details(); + return &details_; } -inline const ::google::protobuf::Any& Status::details(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Any& Status::_internal_details(int index) const { + return details_.Get(index); +} +inline const ::PROTOBUF_NAMESPACE_ID::Any& Status::details(int index) const { // @@protoc_insertion_point(field_get:google.rpc.Status.details) - return _internal_details().Get(index); + return _internal_details(index); +} +inline ::PROTOBUF_NAMESPACE_ID::Any* Status::_internal_add_details() { + return details_.Add(); } -inline ::google::protobuf::Any* Status::add_details() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::google::protobuf::Any* _add = _internal_mutable_details()->Add(); +inline ::PROTOBUF_NAMESPACE_ID::Any* Status::add_details() { + ::PROTOBUF_NAMESPACE_ID::Any* _add = _internal_add_details(); // @@protoc_insertion_point(field_add:google.rpc.Status.details) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::google::protobuf::Any>& Status::details() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::Any >& +Status::details() const { // @@protoc_insertion_point(field_list:google.rpc.Status.details) - return _internal_details(); -} -inline const ::google::protobuf::RepeatedPtrField<::google::protobuf::Any>& -Status::_internal_details() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.details_; -} -inline ::google::protobuf::RepeatedPtrField<::google::protobuf::Any>* -Status::_internal_mutable_details() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.details_; + return details_; } #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ // @@protoc_insertion_point(namespace_scope) + } // namespace rpc } // namespace google - // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_google_2frpc_2fstatus_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2frpc_2fstatus_2eproto diff --git a/src/viam/api/module/v1/module.grpc.pb.cc b/src/viam/api/module/v1/module.grpc.pb.cc index 47c88822d..70c1fb060 100644 --- a/src/viam/api/module/v1/module.grpc.pb.cc +++ b/src/viam/api/module/v1/module.grpc.pb.cc @@ -6,19 +6,19 @@ #include "module/v1/module.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace module { namespace v1 { @@ -33,140 +33,165 @@ static const char* ModuleService_method_names[] = { std::unique_ptr< ModuleService::Stub> ModuleService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { (void)options; - std::unique_ptr< ModuleService::Stub> stub(new ModuleService::Stub(channel, options)); + std::unique_ptr< ModuleService::Stub> stub(new ModuleService::Stub(channel)); return stub; } -ModuleService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) - : channel_(channel), rpcmethod_AddResource_(ModuleService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_ReconfigureResource_(ModuleService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_RemoveResource_(ModuleService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_Ready_(ModuleService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_ValidateConfig_(ModuleService_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) +ModuleService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_AddResource_(ModuleService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ReconfigureResource_(ModuleService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_RemoveResource_(ModuleService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_Ready_(ModuleService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ValidateConfig_(ModuleService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status ModuleService::Stub::AddResource(::grpc::ClientContext* context, const ::viam::module::v1::AddResourceRequest& request, ::viam::module::v1::AddResourceResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::module::v1::AddResourceRequest, ::viam::module::v1::AddResourceResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_AddResource_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_AddResource_, context, request, response); } -void ModuleService::Stub::async::AddResource(::grpc::ClientContext* context, const ::viam::module::v1::AddResourceRequest* request, ::viam::module::v1::AddResourceResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::module::v1::AddResourceRequest, ::viam::module::v1::AddResourceResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_AddResource_, context, request, response, std::move(f)); +void ModuleService::Stub::experimental_async::AddResource(::grpc::ClientContext* context, const ::viam::module::v1::AddResourceRequest* request, ::viam::module::v1::AddResourceResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_AddResource_, context, request, response, std::move(f)); } -void ModuleService::Stub::async::AddResource(::grpc::ClientContext* context, const ::viam::module::v1::AddResourceRequest* request, ::viam::module::v1::AddResourceResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_AddResource_, context, request, response, reactor); +void ModuleService::Stub::experimental_async::AddResource(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::module::v1::AddResourceResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_AddResource_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::module::v1::AddResourceResponse>* ModuleService::Stub::PrepareAsyncAddResourceRaw(::grpc::ClientContext* context, const ::viam::module::v1::AddResourceRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::module::v1::AddResourceResponse, ::viam::module::v1::AddResourceRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_AddResource_, context, request); +void ModuleService::Stub::experimental_async::AddResource(::grpc::ClientContext* context, const ::viam::module::v1::AddResourceRequest* request, ::viam::module::v1::AddResourceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_AddResource_, context, request, response, reactor); +} + +void ModuleService::Stub::experimental_async::AddResource(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::module::v1::AddResourceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_AddResource_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::module::v1::AddResourceResponse>* ModuleService::Stub::AsyncAddResourceRaw(::grpc::ClientContext* context, const ::viam::module::v1::AddResourceRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncAddResourceRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::module::v1::AddResourceResponse>::Create(channel_.get(), cq, rpcmethod_AddResource_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::module::v1::AddResourceResponse>* ModuleService::Stub::PrepareAsyncAddResourceRaw(::grpc::ClientContext* context, const ::viam::module::v1::AddResourceRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::module::v1::AddResourceResponse>::Create(channel_.get(), cq, rpcmethod_AddResource_, context, request, false); } ::grpc::Status ModuleService::Stub::ReconfigureResource(::grpc::ClientContext* context, const ::viam::module::v1::ReconfigureResourceRequest& request, ::viam::module::v1::ReconfigureResourceResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::module::v1::ReconfigureResourceRequest, ::viam::module::v1::ReconfigureResourceResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ReconfigureResource_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ReconfigureResource_, context, request, response); } -void ModuleService::Stub::async::ReconfigureResource(::grpc::ClientContext* context, const ::viam::module::v1::ReconfigureResourceRequest* request, ::viam::module::v1::ReconfigureResourceResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::module::v1::ReconfigureResourceRequest, ::viam::module::v1::ReconfigureResourceResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ReconfigureResource_, context, request, response, std::move(f)); +void ModuleService::Stub::experimental_async::ReconfigureResource(::grpc::ClientContext* context, const ::viam::module::v1::ReconfigureResourceRequest* request, ::viam::module::v1::ReconfigureResourceResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ReconfigureResource_, context, request, response, std::move(f)); } -void ModuleService::Stub::async::ReconfigureResource(::grpc::ClientContext* context, const ::viam::module::v1::ReconfigureResourceRequest* request, ::viam::module::v1::ReconfigureResourceResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ReconfigureResource_, context, request, response, reactor); +void ModuleService::Stub::experimental_async::ReconfigureResource(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::module::v1::ReconfigureResourceResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ReconfigureResource_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::module::v1::ReconfigureResourceResponse>* ModuleService::Stub::PrepareAsyncReconfigureResourceRaw(::grpc::ClientContext* context, const ::viam::module::v1::ReconfigureResourceRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::module::v1::ReconfigureResourceResponse, ::viam::module::v1::ReconfigureResourceRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ReconfigureResource_, context, request); +void ModuleService::Stub::experimental_async::ReconfigureResource(::grpc::ClientContext* context, const ::viam::module::v1::ReconfigureResourceRequest* request, ::viam::module::v1::ReconfigureResourceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ReconfigureResource_, context, request, response, reactor); +} + +void ModuleService::Stub::experimental_async::ReconfigureResource(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::module::v1::ReconfigureResourceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ReconfigureResource_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::module::v1::ReconfigureResourceResponse>* ModuleService::Stub::AsyncReconfigureResourceRaw(::grpc::ClientContext* context, const ::viam::module::v1::ReconfigureResourceRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncReconfigureResourceRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::module::v1::ReconfigureResourceResponse>::Create(channel_.get(), cq, rpcmethod_ReconfigureResource_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::module::v1::ReconfigureResourceResponse>* ModuleService::Stub::PrepareAsyncReconfigureResourceRaw(::grpc::ClientContext* context, const ::viam::module::v1::ReconfigureResourceRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::module::v1::ReconfigureResourceResponse>::Create(channel_.get(), cq, rpcmethod_ReconfigureResource_, context, request, false); } ::grpc::Status ModuleService::Stub::RemoveResource(::grpc::ClientContext* context, const ::viam::module::v1::RemoveResourceRequest& request, ::viam::module::v1::RemoveResourceResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::module::v1::RemoveResourceRequest, ::viam::module::v1::RemoveResourceResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_RemoveResource_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_RemoveResource_, context, request, response); } -void ModuleService::Stub::async::RemoveResource(::grpc::ClientContext* context, const ::viam::module::v1::RemoveResourceRequest* request, ::viam::module::v1::RemoveResourceResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::module::v1::RemoveResourceRequest, ::viam::module::v1::RemoveResourceResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_RemoveResource_, context, request, response, std::move(f)); +void ModuleService::Stub::experimental_async::RemoveResource(::grpc::ClientContext* context, const ::viam::module::v1::RemoveResourceRequest* request, ::viam::module::v1::RemoveResourceResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_RemoveResource_, context, request, response, std::move(f)); } -void ModuleService::Stub::async::RemoveResource(::grpc::ClientContext* context, const ::viam::module::v1::RemoveResourceRequest* request, ::viam::module::v1::RemoveResourceResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_RemoveResource_, context, request, response, reactor); +void ModuleService::Stub::experimental_async::RemoveResource(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::module::v1::RemoveResourceResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_RemoveResource_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::module::v1::RemoveResourceResponse>* ModuleService::Stub::PrepareAsyncRemoveResourceRaw(::grpc::ClientContext* context, const ::viam::module::v1::RemoveResourceRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::module::v1::RemoveResourceResponse, ::viam::module::v1::RemoveResourceRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_RemoveResource_, context, request); +void ModuleService::Stub::experimental_async::RemoveResource(::grpc::ClientContext* context, const ::viam::module::v1::RemoveResourceRequest* request, ::viam::module::v1::RemoveResourceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_RemoveResource_, context, request, response, reactor); +} + +void ModuleService::Stub::experimental_async::RemoveResource(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::module::v1::RemoveResourceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_RemoveResource_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::module::v1::RemoveResourceResponse>* ModuleService::Stub::AsyncRemoveResourceRaw(::grpc::ClientContext* context, const ::viam::module::v1::RemoveResourceRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncRemoveResourceRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::module::v1::RemoveResourceResponse>::Create(channel_.get(), cq, rpcmethod_RemoveResource_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::module::v1::RemoveResourceResponse>* ModuleService::Stub::PrepareAsyncRemoveResourceRaw(::grpc::ClientContext* context, const ::viam::module::v1::RemoveResourceRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::module::v1::RemoveResourceResponse>::Create(channel_.get(), cq, rpcmethod_RemoveResource_, context, request, false); } ::grpc::Status ModuleService::Stub::Ready(::grpc::ClientContext* context, const ::viam::module::v1::ReadyRequest& request, ::viam::module::v1::ReadyResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::module::v1::ReadyRequest, ::viam::module::v1::ReadyResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Ready_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_Ready_, context, request, response); } -void ModuleService::Stub::async::Ready(::grpc::ClientContext* context, const ::viam::module::v1::ReadyRequest* request, ::viam::module::v1::ReadyResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::module::v1::ReadyRequest, ::viam::module::v1::ReadyResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Ready_, context, request, response, std::move(f)); +void ModuleService::Stub::experimental_async::Ready(::grpc::ClientContext* context, const ::viam::module::v1::ReadyRequest* request, ::viam::module::v1::ReadyResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Ready_, context, request, response, std::move(f)); } -void ModuleService::Stub::async::Ready(::grpc::ClientContext* context, const ::viam::module::v1::ReadyRequest* request, ::viam::module::v1::ReadyResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Ready_, context, request, response, reactor); +void ModuleService::Stub::experimental_async::Ready(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::module::v1::ReadyResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Ready_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::module::v1::ReadyResponse>* ModuleService::Stub::PrepareAsyncReadyRaw(::grpc::ClientContext* context, const ::viam::module::v1::ReadyRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::module::v1::ReadyResponse, ::viam::module::v1::ReadyRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Ready_, context, request); +void ModuleService::Stub::experimental_async::Ready(::grpc::ClientContext* context, const ::viam::module::v1::ReadyRequest* request, ::viam::module::v1::ReadyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Ready_, context, request, response, reactor); +} + +void ModuleService::Stub::experimental_async::Ready(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::module::v1::ReadyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Ready_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::module::v1::ReadyResponse>* ModuleService::Stub::AsyncReadyRaw(::grpc::ClientContext* context, const ::viam::module::v1::ReadyRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncReadyRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::module::v1::ReadyResponse>::Create(channel_.get(), cq, rpcmethod_Ready_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::module::v1::ReadyResponse>* ModuleService::Stub::PrepareAsyncReadyRaw(::grpc::ClientContext* context, const ::viam::module::v1::ReadyRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::module::v1::ReadyResponse>::Create(channel_.get(), cq, rpcmethod_Ready_, context, request, false); } ::grpc::Status ModuleService::Stub::ValidateConfig(::grpc::ClientContext* context, const ::viam::module::v1::ValidateConfigRequest& request, ::viam::module::v1::ValidateConfigResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::module::v1::ValidateConfigRequest, ::viam::module::v1::ValidateConfigResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ValidateConfig_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ValidateConfig_, context, request, response); } -void ModuleService::Stub::async::ValidateConfig(::grpc::ClientContext* context, const ::viam::module::v1::ValidateConfigRequest* request, ::viam::module::v1::ValidateConfigResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::module::v1::ValidateConfigRequest, ::viam::module::v1::ValidateConfigResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ValidateConfig_, context, request, response, std::move(f)); +void ModuleService::Stub::experimental_async::ValidateConfig(::grpc::ClientContext* context, const ::viam::module::v1::ValidateConfigRequest* request, ::viam::module::v1::ValidateConfigResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ValidateConfig_, context, request, response, std::move(f)); } -void ModuleService::Stub::async::ValidateConfig(::grpc::ClientContext* context, const ::viam::module::v1::ValidateConfigRequest* request, ::viam::module::v1::ValidateConfigResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ValidateConfig_, context, request, response, reactor); +void ModuleService::Stub::experimental_async::ValidateConfig(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::module::v1::ValidateConfigResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ValidateConfig_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::module::v1::ValidateConfigResponse>* ModuleService::Stub::PrepareAsyncValidateConfigRaw(::grpc::ClientContext* context, const ::viam::module::v1::ValidateConfigRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::module::v1::ValidateConfigResponse, ::viam::module::v1::ValidateConfigRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ValidateConfig_, context, request); +void ModuleService::Stub::experimental_async::ValidateConfig(::grpc::ClientContext* context, const ::viam::module::v1::ValidateConfigRequest* request, ::viam::module::v1::ValidateConfigResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ValidateConfig_, context, request, response, reactor); +} + +void ModuleService::Stub::experimental_async::ValidateConfig(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::module::v1::ValidateConfigResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ValidateConfig_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::module::v1::ValidateConfigResponse>* ModuleService::Stub::AsyncValidateConfigRaw(::grpc::ClientContext* context, const ::viam::module::v1::ValidateConfigRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncValidateConfigRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::module::v1::ValidateConfigResponse>::Create(channel_.get(), cq, rpcmethod_ValidateConfig_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::module::v1::ValidateConfigResponse>* ModuleService::Stub::PrepareAsyncValidateConfigRaw(::grpc::ClientContext* context, const ::viam::module::v1::ValidateConfigRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::module::v1::ValidateConfigResponse>::Create(channel_.get(), cq, rpcmethod_ValidateConfig_, context, request, false); } ModuleService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( ModuleService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< ModuleService::Service, ::viam::module::v1::AddResourceRequest, ::viam::module::v1::AddResourceResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< ModuleService::Service, ::viam::module::v1::AddResourceRequest, ::viam::module::v1::AddResourceResponse>( [](ModuleService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::module::v1::AddResourceRequest* req, ::viam::module::v1::AddResourceResponse* resp) { return service->AddResource(ctx, req, resp); @@ -174,9 +199,9 @@ ModuleService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( ModuleService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< ModuleService::Service, ::viam::module::v1::ReconfigureResourceRequest, ::viam::module::v1::ReconfigureResourceResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< ModuleService::Service, ::viam::module::v1::ReconfigureResourceRequest, ::viam::module::v1::ReconfigureResourceResponse>( [](ModuleService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::module::v1::ReconfigureResourceRequest* req, ::viam::module::v1::ReconfigureResourceResponse* resp) { return service->ReconfigureResource(ctx, req, resp); @@ -184,9 +209,9 @@ ModuleService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( ModuleService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< ModuleService::Service, ::viam::module::v1::RemoveResourceRequest, ::viam::module::v1::RemoveResourceResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< ModuleService::Service, ::viam::module::v1::RemoveResourceRequest, ::viam::module::v1::RemoveResourceResponse>( [](ModuleService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::module::v1::RemoveResourceRequest* req, ::viam::module::v1::RemoveResourceResponse* resp) { return service->RemoveResource(ctx, req, resp); @@ -194,9 +219,9 @@ ModuleService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( ModuleService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< ModuleService::Service, ::viam::module::v1::ReadyRequest, ::viam::module::v1::ReadyResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< ModuleService::Service, ::viam::module::v1::ReadyRequest, ::viam::module::v1::ReadyResponse>( [](ModuleService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::module::v1::ReadyRequest* req, ::viam::module::v1::ReadyResponse* resp) { return service->Ready(ctx, req, resp); @@ -204,9 +229,9 @@ ModuleService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( ModuleService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< ModuleService::Service, ::viam::module::v1::ValidateConfigRequest, ::viam::module::v1::ValidateConfigResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< ModuleService::Service, ::viam::module::v1::ValidateConfigRequest, ::viam::module::v1::ValidateConfigResponse>( [](ModuleService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::module::v1::ValidateConfigRequest* req, ::viam::module::v1::ValidateConfigResponse* resp) { return service->ValidateConfig(ctx, req, resp); diff --git a/src/viam/api/module/v1/module.grpc.pb.h b/src/viam/api/module/v1/module.grpc.pb.h index 5f66eeb16..b504f1b72 100644 --- a/src/viam/api/module/v1/module.grpc.pb.h +++ b/src/viam/api/module/v1/module.grpc.pb.h @@ -7,23 +7,24 @@ #include "module/v1/module.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace module { @@ -79,30 +80,84 @@ class ModuleService final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::module::v1::ValidateConfigResponse>> PrepareAsyncValidateConfig(::grpc::ClientContext* context, const ::viam::module::v1::ValidateConfigRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::module::v1::ValidateConfigResponse>>(PrepareAsyncValidateConfigRaw(context, request, cq)); } - class async_interface { + class experimental_async_interface { public: - virtual ~async_interface() {} + virtual ~experimental_async_interface() {} // AddResource tells a module about a new resource to handle virtual void AddResource(::grpc::ClientContext* context, const ::viam::module::v1::AddResourceRequest* request, ::viam::module::v1::AddResourceResponse* response, std::function) = 0; + virtual void AddResource(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::module::v1::AddResourceResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void AddResource(::grpc::ClientContext* context, const ::viam::module::v1::AddResourceRequest* request, ::viam::module::v1::AddResourceResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void AddResource(::grpc::ClientContext* context, const ::viam::module::v1::AddResourceRequest* request, ::viam::module::v1::AddResourceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void AddResource(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::module::v1::AddResourceResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void AddResource(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::module::v1::AddResourceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // ReconfigureResource tells a module to reconfigure an existing resource virtual void ReconfigureResource(::grpc::ClientContext* context, const ::viam::module::v1::ReconfigureResourceRequest* request, ::viam::module::v1::ReconfigureResourceResponse* response, std::function) = 0; + virtual void ReconfigureResource(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::module::v1::ReconfigureResourceResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void ReconfigureResource(::grpc::ClientContext* context, const ::viam::module::v1::ReconfigureResourceRequest* request, ::viam::module::v1::ReconfigureResourceResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ReconfigureResource(::grpc::ClientContext* context, const ::viam::module::v1::ReconfigureResourceRequest* request, ::viam::module::v1::ReconfigureResourceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void ReconfigureResource(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::module::v1::ReconfigureResourceResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ReconfigureResource(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::module::v1::ReconfigureResourceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // RemoveResource tells a module to close/stop a component/service and remove it virtual void RemoveResource(::grpc::ClientContext* context, const ::viam::module::v1::RemoveResourceRequest* request, ::viam::module::v1::RemoveResourceResponse* response, std::function) = 0; + virtual void RemoveResource(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::module::v1::RemoveResourceResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void RemoveResource(::grpc::ClientContext* context, const ::viam::module::v1::RemoveResourceRequest* request, ::viam::module::v1::RemoveResourceResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void RemoveResource(::grpc::ClientContext* context, const ::viam::module::v1::RemoveResourceRequest* request, ::viam::module::v1::RemoveResourceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void RemoveResource(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::module::v1::RemoveResourceResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void RemoveResource(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::module::v1::RemoveResourceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Ready determines if the server is started and ready to recieve resource configurations. virtual void Ready(::grpc::ClientContext* context, const ::viam::module::v1::ReadyRequest* request, ::viam::module::v1::ReadyResponse* response, std::function) = 0; + virtual void Ready(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::module::v1::ReadyResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void Ready(::grpc::ClientContext* context, const ::viam::module::v1::ReadyRequest* request, ::viam::module::v1::ReadyResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void Ready(::grpc::ClientContext* context, const ::viam::module::v1::ReadyRequest* request, ::viam::module::v1::ReadyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void Ready(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::module::v1::ReadyResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void Ready(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::module::v1::ReadyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // ValidateConfig determines whether the given config is valid and registers/returns implicit // dependencies. virtual void ValidateConfig(::grpc::ClientContext* context, const ::viam::module::v1::ValidateConfigRequest* request, ::viam::module::v1::ValidateConfigResponse* response, std::function) = 0; + virtual void ValidateConfig(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::module::v1::ValidateConfigResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void ValidateConfig(::grpc::ClientContext* context, const ::viam::module::v1::ValidateConfigRequest* request, ::viam::module::v1::ValidateConfigResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ValidateConfig(::grpc::ClientContext* context, const ::viam::module::v1::ValidateConfigRequest* request, ::viam::module::v1::ValidateConfigResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void ValidateConfig(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::module::v1::ValidateConfigResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ValidateConfig(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::module::v1::ValidateConfigResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif }; - typedef class async_interface experimental_async_interface; - virtual class async_interface* async() { return nullptr; } - class async_interface* experimental_async() { return async(); } - private: + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef class experimental_async_interface async_interface; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + async_interface* async() { return experimental_async(); } + #endif + virtual class experimental_async_interface* experimental_async() { return nullptr; } + private: virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::module::v1::AddResourceResponse>* AsyncAddResourceRaw(::grpc::ClientContext* context, const ::viam::module::v1::AddResourceRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::module::v1::AddResourceResponse>* PrepareAsyncAddResourceRaw(::grpc::ClientContext* context, const ::viam::module::v1::AddResourceRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::module::v1::ReconfigureResourceResponse>* AsyncReconfigureResourceRaw(::grpc::ClientContext* context, const ::viam::module::v1::ReconfigureResourceRequest& request, ::grpc::CompletionQueue* cq) = 0; @@ -116,7 +171,7 @@ class ModuleService final { }; class Stub final : public StubInterface { public: - Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); ::grpc::Status AddResource(::grpc::ClientContext* context, const ::viam::module::v1::AddResourceRequest& request, ::viam::module::v1::AddResourceResponse* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::module::v1::AddResourceResponse>> AsyncAddResource(::grpc::ClientContext* context, const ::viam::module::v1::AddResourceRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::module::v1::AddResourceResponse>>(AsyncAddResourceRaw(context, request, cq)); @@ -152,30 +207,80 @@ class ModuleService final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::module::v1::ValidateConfigResponse>> PrepareAsyncValidateConfig(::grpc::ClientContext* context, const ::viam::module::v1::ValidateConfigRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::module::v1::ValidateConfigResponse>>(PrepareAsyncValidateConfigRaw(context, request, cq)); } - class async final : - public StubInterface::async_interface { + class experimental_async final : + public StubInterface::experimental_async_interface { public: void AddResource(::grpc::ClientContext* context, const ::viam::module::v1::AddResourceRequest* request, ::viam::module::v1::AddResourceResponse* response, std::function) override; + void AddResource(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::module::v1::AddResourceResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void AddResource(::grpc::ClientContext* context, const ::viam::module::v1::AddResourceRequest* request, ::viam::module::v1::AddResourceResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void AddResource(::grpc::ClientContext* context, const ::viam::module::v1::AddResourceRequest* request, ::viam::module::v1::AddResourceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void AddResource(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::module::v1::AddResourceResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void AddResource(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::module::v1::AddResourceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void ReconfigureResource(::grpc::ClientContext* context, const ::viam::module::v1::ReconfigureResourceRequest* request, ::viam::module::v1::ReconfigureResourceResponse* response, std::function) override; + void ReconfigureResource(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::module::v1::ReconfigureResourceResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void ReconfigureResource(::grpc::ClientContext* context, const ::viam::module::v1::ReconfigureResourceRequest* request, ::viam::module::v1::ReconfigureResourceResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ReconfigureResource(::grpc::ClientContext* context, const ::viam::module::v1::ReconfigureResourceRequest* request, ::viam::module::v1::ReconfigureResourceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void ReconfigureResource(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::module::v1::ReconfigureResourceResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ReconfigureResource(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::module::v1::ReconfigureResourceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void RemoveResource(::grpc::ClientContext* context, const ::viam::module::v1::RemoveResourceRequest* request, ::viam::module::v1::RemoveResourceResponse* response, std::function) override; + void RemoveResource(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::module::v1::RemoveResourceResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void RemoveResource(::grpc::ClientContext* context, const ::viam::module::v1::RemoveResourceRequest* request, ::viam::module::v1::RemoveResourceResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void RemoveResource(::grpc::ClientContext* context, const ::viam::module::v1::RemoveResourceRequest* request, ::viam::module::v1::RemoveResourceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void RemoveResource(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::module::v1::RemoveResourceResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void RemoveResource(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::module::v1::RemoveResourceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void Ready(::grpc::ClientContext* context, const ::viam::module::v1::ReadyRequest* request, ::viam::module::v1::ReadyResponse* response, std::function) override; + void Ready(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::module::v1::ReadyResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void Ready(::grpc::ClientContext* context, const ::viam::module::v1::ReadyRequest* request, ::viam::module::v1::ReadyResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void Ready(::grpc::ClientContext* context, const ::viam::module::v1::ReadyRequest* request, ::viam::module::v1::ReadyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void Ready(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::module::v1::ReadyResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void Ready(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::module::v1::ReadyResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void ValidateConfig(::grpc::ClientContext* context, const ::viam::module::v1::ValidateConfigRequest* request, ::viam::module::v1::ValidateConfigResponse* response, std::function) override; + void ValidateConfig(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::module::v1::ValidateConfigResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void ValidateConfig(::grpc::ClientContext* context, const ::viam::module::v1::ValidateConfigRequest* request, ::viam::module::v1::ValidateConfigResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ValidateConfig(::grpc::ClientContext* context, const ::viam::module::v1::ValidateConfigRequest* request, ::viam::module::v1::ValidateConfigResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void ValidateConfig(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::module::v1::ValidateConfigResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ValidateConfig(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::module::v1::ValidateConfigResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif private: friend class Stub; - explicit async(Stub* stub): stub_(stub) { } + explicit experimental_async(Stub* stub): stub_(stub) { } Stub* stub() { return stub_; } Stub* stub_; }; - class async* async() override { return &async_stub_; } + class experimental_async_interface* experimental_async() override { return &async_stub_; } private: std::shared_ptr< ::grpc::ChannelInterface> channel_; - class async async_stub_{this}; + class experimental_async async_stub_{this}; ::grpc::ClientAsyncResponseReader< ::viam::module::v1::AddResourceResponse>* AsyncAddResourceRaw(::grpc::ClientContext* context, const ::viam::module::v1::AddResourceRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::module::v1::AddResourceResponse>* PrepareAsyncAddResourceRaw(::grpc::ClientContext* context, const ::viam::module::v1::AddResourceRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::module::v1::ReconfigureResourceResponse>* AsyncReconfigureResourceRaw(::grpc::ClientContext* context, const ::viam::module::v1::ReconfigureResourceRequest& request, ::grpc::CompletionQueue* cq) override; @@ -312,22 +417,36 @@ class ModuleService final { }; typedef WithAsyncMethod_AddResource > > > > AsyncService; template - class WithCallbackMethod_AddResource : public BaseClass { + class ExperimentalWithCallbackMethod_AddResource : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_AddResource() { - ::grpc::Service::MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::viam::module::v1::AddResourceRequest, ::viam::module::v1::AddResourceResponse>( + ExperimentalWithCallbackMethod_AddResource() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::module::v1::AddResourceRequest, ::viam::module::v1::AddResourceResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::module::v1::AddResourceRequest* request, ::viam::module::v1::AddResourceResponse* response) { return this->AddResource(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::module::v1::AddResourceRequest* request, ::viam::module::v1::AddResourceResponse* response) { return this->AddResource(context, request, response); }));} void SetMessageAllocatorFor_AddResource( - ::grpc::MessageAllocator< ::viam::module::v1::AddResourceRequest, ::viam::module::v1::AddResourceResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::module::v1::AddResourceRequest, ::viam::module::v1::AddResourceResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::module::v1::AddResourceRequest, ::viam::module::v1::AddResourceResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(0); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::module::v1::AddResourceRequest, ::viam::module::v1::AddResourceResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_AddResource() override { + ~ExperimentalWithCallbackMethod_AddResource() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -335,26 +454,46 @@ class ModuleService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* AddResource( - ::grpc::CallbackServerContext* /*context*/, const ::viam::module::v1::AddResourceRequest* /*request*/, ::viam::module::v1::AddResourceResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::module::v1::AddResourceRequest* /*request*/, ::viam::module::v1::AddResourceResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* AddResource( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::module::v1::AddResourceRequest* /*request*/, ::viam::module::v1::AddResourceResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_ReconfigureResource : public BaseClass { + class ExperimentalWithCallbackMethod_ReconfigureResource : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_ReconfigureResource() { - ::grpc::Service::MarkMethodCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::viam::module::v1::ReconfigureResourceRequest, ::viam::module::v1::ReconfigureResourceResponse>( + ExperimentalWithCallbackMethod_ReconfigureResource() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::module::v1::ReconfigureResourceRequest, ::viam::module::v1::ReconfigureResourceResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::module::v1::ReconfigureResourceRequest* request, ::viam::module::v1::ReconfigureResourceResponse* response) { return this->ReconfigureResource(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::module::v1::ReconfigureResourceRequest* request, ::viam::module::v1::ReconfigureResourceResponse* response) { return this->ReconfigureResource(context, request, response); }));} void SetMessageAllocatorFor_ReconfigureResource( - ::grpc::MessageAllocator< ::viam::module::v1::ReconfigureResourceRequest, ::viam::module::v1::ReconfigureResourceResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::module::v1::ReconfigureResourceRequest, ::viam::module::v1::ReconfigureResourceResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::module::v1::ReconfigureResourceRequest, ::viam::module::v1::ReconfigureResourceResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(1); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::module::v1::ReconfigureResourceRequest, ::viam::module::v1::ReconfigureResourceResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_ReconfigureResource() override { + ~ExperimentalWithCallbackMethod_ReconfigureResource() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -362,26 +501,46 @@ class ModuleService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* ReconfigureResource( - ::grpc::CallbackServerContext* /*context*/, const ::viam::module::v1::ReconfigureResourceRequest* /*request*/, ::viam::module::v1::ReconfigureResourceResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::module::v1::ReconfigureResourceRequest* /*request*/, ::viam::module::v1::ReconfigureResourceResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ReconfigureResource( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::module::v1::ReconfigureResourceRequest* /*request*/, ::viam::module::v1::ReconfigureResourceResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_RemoveResource : public BaseClass { + class ExperimentalWithCallbackMethod_RemoveResource : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_RemoveResource() { - ::grpc::Service::MarkMethodCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::viam::module::v1::RemoveResourceRequest, ::viam::module::v1::RemoveResourceResponse>( + ExperimentalWithCallbackMethod_RemoveResource() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(2, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::module::v1::RemoveResourceRequest, ::viam::module::v1::RemoveResourceResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::module::v1::RemoveResourceRequest* request, ::viam::module::v1::RemoveResourceResponse* response) { return this->RemoveResource(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::module::v1::RemoveResourceRequest* request, ::viam::module::v1::RemoveResourceResponse* response) { return this->RemoveResource(context, request, response); }));} void SetMessageAllocatorFor_RemoveResource( - ::grpc::MessageAllocator< ::viam::module::v1::RemoveResourceRequest, ::viam::module::v1::RemoveResourceResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::module::v1::RemoveResourceRequest, ::viam::module::v1::RemoveResourceResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::module::v1::RemoveResourceRequest, ::viam::module::v1::RemoveResourceResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(2); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::module::v1::RemoveResourceRequest, ::viam::module::v1::RemoveResourceResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_RemoveResource() override { + ~ExperimentalWithCallbackMethod_RemoveResource() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -389,26 +548,46 @@ class ModuleService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* RemoveResource( - ::grpc::CallbackServerContext* /*context*/, const ::viam::module::v1::RemoveResourceRequest* /*request*/, ::viam::module::v1::RemoveResourceResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::module::v1::RemoveResourceRequest* /*request*/, ::viam::module::v1::RemoveResourceResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* RemoveResource( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::module::v1::RemoveResourceRequest* /*request*/, ::viam::module::v1::RemoveResourceResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_Ready : public BaseClass { + class ExperimentalWithCallbackMethod_Ready : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_Ready() { - ::grpc::Service::MarkMethodCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::viam::module::v1::ReadyRequest, ::viam::module::v1::ReadyResponse>( + ExperimentalWithCallbackMethod_Ready() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(3, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::module::v1::ReadyRequest, ::viam::module::v1::ReadyResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::module::v1::ReadyRequest* request, ::viam::module::v1::ReadyResponse* response) { return this->Ready(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::module::v1::ReadyRequest* request, ::viam::module::v1::ReadyResponse* response) { return this->Ready(context, request, response); }));} void SetMessageAllocatorFor_Ready( - ::grpc::MessageAllocator< ::viam::module::v1::ReadyRequest, ::viam::module::v1::ReadyResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::module::v1::ReadyRequest, ::viam::module::v1::ReadyResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::module::v1::ReadyRequest, ::viam::module::v1::ReadyResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(3); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::module::v1::ReadyRequest, ::viam::module::v1::ReadyResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_Ready() override { + ~ExperimentalWithCallbackMethod_Ready() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -416,26 +595,46 @@ class ModuleService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* Ready( - ::grpc::CallbackServerContext* /*context*/, const ::viam::module::v1::ReadyRequest* /*request*/, ::viam::module::v1::ReadyResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::module::v1::ReadyRequest* /*request*/, ::viam::module::v1::ReadyResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* Ready( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::module::v1::ReadyRequest* /*request*/, ::viam::module::v1::ReadyResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_ValidateConfig : public BaseClass { + class ExperimentalWithCallbackMethod_ValidateConfig : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_ValidateConfig() { - ::grpc::Service::MarkMethodCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::viam::module::v1::ValidateConfigRequest, ::viam::module::v1::ValidateConfigResponse>( + ExperimentalWithCallbackMethod_ValidateConfig() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(4, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::module::v1::ValidateConfigRequest, ::viam::module::v1::ValidateConfigResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::module::v1::ValidateConfigRequest* request, ::viam::module::v1::ValidateConfigResponse* response) { return this->ValidateConfig(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::module::v1::ValidateConfigRequest* request, ::viam::module::v1::ValidateConfigResponse* response) { return this->ValidateConfig(context, request, response); }));} void SetMessageAllocatorFor_ValidateConfig( - ::grpc::MessageAllocator< ::viam::module::v1::ValidateConfigRequest, ::viam::module::v1::ValidateConfigResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::module::v1::ValidateConfigRequest, ::viam::module::v1::ValidateConfigResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::module::v1::ValidateConfigRequest, ::viam::module::v1::ValidateConfigResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(4); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::module::v1::ValidateConfigRequest, ::viam::module::v1::ValidateConfigResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_ValidateConfig() override { + ~ExperimentalWithCallbackMethod_ValidateConfig() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -443,11 +642,20 @@ class ModuleService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* ValidateConfig( - ::grpc::CallbackServerContext* /*context*/, const ::viam::module::v1::ValidateConfigRequest* /*request*/, ::viam::module::v1::ValidateConfigResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::module::v1::ValidateConfigRequest* /*request*/, ::viam::module::v1::ValidateConfigResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ValidateConfig( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::module::v1::ValidateConfigRequest* /*request*/, ::viam::module::v1::ValidateConfigResponse* /*response*/) + #endif + { return nullptr; } }; - typedef WithCallbackMethod_AddResource > > > > CallbackService; - typedef CallbackService ExperimentalCallbackService; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef ExperimentalWithCallbackMethod_AddResource > > > > CallbackService; + #endif + + typedef ExperimentalWithCallbackMethod_AddResource > > > > ExperimentalCallbackService; template class WithGenericMethod_AddResource : public BaseClass { private: @@ -634,17 +842,27 @@ class ModuleService final { } }; template - class WithRawCallbackMethod_AddResource : public BaseClass { + class ExperimentalWithRawCallbackMethod_AddResource : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_AddResource() { - ::grpc::Service::MarkMethodRawCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_AddResource() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->AddResource(context, request, response); })); - } - ~WithRawCallbackMethod_AddResource() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->AddResource(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_AddResource() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -652,21 +870,37 @@ class ModuleService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* AddResource( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* AddResource( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_ReconfigureResource : public BaseClass { + class ExperimentalWithRawCallbackMethod_ReconfigureResource : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_ReconfigureResource() { - ::grpc::Service::MarkMethodRawCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_ReconfigureResource() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ReconfigureResource(context, request, response); })); - } - ~WithRawCallbackMethod_ReconfigureResource() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ReconfigureResource(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_ReconfigureResource() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -674,21 +908,37 @@ class ModuleService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* ReconfigureResource( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ReconfigureResource( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_RemoveResource : public BaseClass { + class ExperimentalWithRawCallbackMethod_RemoveResource : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_RemoveResource() { - ::grpc::Service::MarkMethodRawCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_RemoveResource() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(2, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->RemoveResource(context, request, response); })); - } - ~WithRawCallbackMethod_RemoveResource() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->RemoveResource(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_RemoveResource() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -696,21 +946,37 @@ class ModuleService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* RemoveResource( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* RemoveResource( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_Ready : public BaseClass { + class ExperimentalWithRawCallbackMethod_Ready : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_Ready() { - ::grpc::Service::MarkMethodRawCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_Ready() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(3, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Ready(context, request, response); })); - } - ~WithRawCallbackMethod_Ready() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Ready(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_Ready() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -718,21 +984,37 @@ class ModuleService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* Ready( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* Ready( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_ValidateConfig : public BaseClass { + class ExperimentalWithRawCallbackMethod_ValidateConfig : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_ValidateConfig() { - ::grpc::Service::MarkMethodRawCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_ValidateConfig() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(4, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ValidateConfig(context, request, response); })); - } - ~WithRawCallbackMethod_ValidateConfig() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ValidateConfig(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_ValidateConfig() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -740,8 +1022,14 @@ class ModuleService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* ValidateConfig( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ValidateConfig( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template class WithStreamedUnaryMethod_AddResource : public BaseClass { @@ -752,8 +1040,8 @@ class ModuleService final { ::grpc::Service::MarkMethodStreamed(0, new ::grpc::internal::StreamedUnaryHandler< ::viam::module::v1::AddResourceRequest, ::viam::module::v1::AddResourceResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::module::v1::AddResourceRequest, ::viam::module::v1::AddResourceResponse>* streamer) { return this->StreamedAddResource(context, streamer); @@ -779,8 +1067,8 @@ class ModuleService final { ::grpc::Service::MarkMethodStreamed(1, new ::grpc::internal::StreamedUnaryHandler< ::viam::module::v1::ReconfigureResourceRequest, ::viam::module::v1::ReconfigureResourceResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::module::v1::ReconfigureResourceRequest, ::viam::module::v1::ReconfigureResourceResponse>* streamer) { return this->StreamedReconfigureResource(context, streamer); @@ -806,8 +1094,8 @@ class ModuleService final { ::grpc::Service::MarkMethodStreamed(2, new ::grpc::internal::StreamedUnaryHandler< ::viam::module::v1::RemoveResourceRequest, ::viam::module::v1::RemoveResourceResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::module::v1::RemoveResourceRequest, ::viam::module::v1::RemoveResourceResponse>* streamer) { return this->StreamedRemoveResource(context, streamer); @@ -833,8 +1121,8 @@ class ModuleService final { ::grpc::Service::MarkMethodStreamed(3, new ::grpc::internal::StreamedUnaryHandler< ::viam::module::v1::ReadyRequest, ::viam::module::v1::ReadyResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::module::v1::ReadyRequest, ::viam::module::v1::ReadyResponse>* streamer) { return this->StreamedReady(context, streamer); @@ -860,8 +1148,8 @@ class ModuleService final { ::grpc::Service::MarkMethodStreamed(4, new ::grpc::internal::StreamedUnaryHandler< ::viam::module::v1::ValidateConfigRequest, ::viam::module::v1::ValidateConfigResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::module::v1::ValidateConfigRequest, ::viam::module::v1::ValidateConfigResponse>* streamer) { return this->StreamedValidateConfig(context, streamer); diff --git a/src/viam/api/module/v1/module.pb.cc b/src/viam/api/module/v1/module.pb.cc index 360469ddf..e45a78c35 100644 --- a/src/viam/api/module/v1/module.pb.cc +++ b/src/viam/api/module/v1/module.pb.cc @@ -4,707 +4,566 @@ #include "module/v1/module.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace viam { namespace module { namespace v1 { - -inline constexpr ValidateConfigResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : dependencies_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR ValidateConfigResponse::ValidateConfigResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ValidateConfigResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ValidateConfigResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ValidateConfigResponseDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR AddResourceRequest::AddResourceRequest( + ::_pbi::ConstantInitialized) + : dependencies_() + , config_(nullptr){} +struct AddResourceRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR AddResourceRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AddResourceRequestDefaultTypeInternal() {} union { - ValidateConfigResponse _instance; + AddResourceRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ValidateConfigResponseDefaultTypeInternal _ValidateConfigResponse_default_instance_; - template -PROTOBUF_CONSTEXPR RemoveResourceResponse::RemoveResourceResponse(::_pbi::ConstantInitialized) {} -struct RemoveResourceResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR RemoveResourceResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RemoveResourceResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AddResourceRequestDefaultTypeInternal _AddResourceRequest_default_instance_; +PROTOBUF_CONSTEXPR AddResourceResponse::AddResourceResponse( + ::_pbi::ConstantInitialized){} +struct AddResourceResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR AddResourceResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AddResourceResponseDefaultTypeInternal() {} union { - RemoveResourceResponse _instance; + AddResourceResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RemoveResourceResponseDefaultTypeInternal _RemoveResourceResponse_default_instance_; - -inline constexpr RemoveResourceRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR RemoveResourceRequest::RemoveResourceRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct RemoveResourceRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR RemoveResourceRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RemoveResourceRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AddResourceResponseDefaultTypeInternal _AddResourceResponse_default_instance_; +PROTOBUF_CONSTEXPR ReconfigureResourceRequest::ReconfigureResourceRequest( + ::_pbi::ConstantInitialized) + : dependencies_() + , config_(nullptr){} +struct ReconfigureResourceRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR ReconfigureResourceRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ReconfigureResourceRequestDefaultTypeInternal() {} union { - RemoveResourceRequest _instance; + ReconfigureResourceRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RemoveResourceRequestDefaultTypeInternal _RemoveResourceRequest_default_instance_; - template -PROTOBUF_CONSTEXPR ReconfigureResourceResponse::ReconfigureResourceResponse(::_pbi::ConstantInitialized) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ReconfigureResourceRequestDefaultTypeInternal _ReconfigureResourceRequest_default_instance_; +PROTOBUF_CONSTEXPR ReconfigureResourceResponse::ReconfigureResourceResponse( + ::_pbi::ConstantInitialized){} struct ReconfigureResourceResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ReconfigureResourceResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ReconfigureResourceResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~ReconfigureResourceResponseDefaultTypeInternal() {} union { ReconfigureResourceResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ReconfigureResourceResponseDefaultTypeInternal _ReconfigureResourceResponse_default_instance_; - -inline constexpr ReadyRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : parent_address_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - webrtc_offer_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR ReadyRequest::ReadyRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ReadyRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR ReadyRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ReadyRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ReconfigureResourceResponseDefaultTypeInternal _ReconfigureResourceResponse_default_instance_; +PROTOBUF_CONSTEXPR RemoveResourceRequest::RemoveResourceRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct RemoveResourceRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR RemoveResourceRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RemoveResourceRequestDefaultTypeInternal() {} union { - ReadyRequest _instance; + RemoveResourceRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ReadyRequestDefaultTypeInternal _ReadyRequest_default_instance_; - template -PROTOBUF_CONSTEXPR AddResourceResponse::AddResourceResponse(::_pbi::ConstantInitialized) {} -struct AddResourceResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR AddResourceResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AddResourceResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RemoveResourceRequestDefaultTypeInternal _RemoveResourceRequest_default_instance_; +PROTOBUF_CONSTEXPR RemoveResourceResponse::RemoveResourceResponse( + ::_pbi::ConstantInitialized){} +struct RemoveResourceResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR RemoveResourceResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RemoveResourceResponseDefaultTypeInternal() {} union { - AddResourceResponse _instance; + RemoveResourceResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AddResourceResponseDefaultTypeInternal _AddResourceResponse_default_instance_; - -inline constexpr HandlerDefinition::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - models_{}, - subtype_{nullptr} {} - -template -PROTOBUF_CONSTEXPR HandlerDefinition::HandlerDefinition(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RemoveResourceResponseDefaultTypeInternal _RemoveResourceResponse_default_instance_; +PROTOBUF_CONSTEXPR HandlerDefinition::HandlerDefinition( + ::_pbi::ConstantInitialized) + : models_() + , subtype_(nullptr){} struct HandlerDefinitionDefaultTypeInternal { - PROTOBUF_CONSTEXPR HandlerDefinitionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR HandlerDefinitionDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~HandlerDefinitionDefaultTypeInternal() {} union { HandlerDefinition _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HandlerDefinitionDefaultTypeInternal _HandlerDefinition_default_instance_; - -inline constexpr HandlerMap::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : handlers_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR HandlerMap::HandlerMap(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HandlerDefinitionDefaultTypeInternal _HandlerDefinition_default_instance_; +PROTOBUF_CONSTEXPR HandlerMap::HandlerMap( + ::_pbi::ConstantInitialized) + : handlers_(){} struct HandlerMapDefaultTypeInternal { - PROTOBUF_CONSTEXPR HandlerMapDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR HandlerMapDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~HandlerMapDefaultTypeInternal() {} union { HandlerMap _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HandlerMapDefaultTypeInternal _HandlerMap_default_instance_; - -inline constexpr ReadyResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - webrtc_answer_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - handlermap_{nullptr}, - ready_{false} {} - -template -PROTOBUF_CONSTEXPR ReadyResponse::ReadyResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HandlerMapDefaultTypeInternal _HandlerMap_default_instance_; +PROTOBUF_CONSTEXPR ReadyRequest::ReadyRequest( + ::_pbi::ConstantInitialized) + : parent_address_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , webrtc_offer_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct ReadyRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR ReadyRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ReadyRequestDefaultTypeInternal() {} + union { + ReadyRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ReadyRequestDefaultTypeInternal _ReadyRequest_default_instance_; +PROTOBUF_CONSTEXPR ReadyResponse::ReadyResponse( + ::_pbi::ConstantInitialized) + : webrtc_answer_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , handlermap_(nullptr) + , ready_(false){} struct ReadyResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ReadyResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ReadyResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~ReadyResponseDefaultTypeInternal() {} union { ReadyResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ReadyResponseDefaultTypeInternal _ReadyResponse_default_instance_; - -inline constexpr ValidateConfigRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - config_{nullptr} {} - -template -PROTOBUF_CONSTEXPR ValidateConfigRequest::ValidateConfigRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ReadyResponseDefaultTypeInternal _ReadyResponse_default_instance_; +PROTOBUF_CONSTEXPR ValidateConfigRequest::ValidateConfigRequest( + ::_pbi::ConstantInitialized) + : config_(nullptr){} struct ValidateConfigRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR ValidateConfigRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ValidateConfigRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~ValidateConfigRequestDefaultTypeInternal() {} union { ValidateConfigRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ValidateConfigRequestDefaultTypeInternal _ValidateConfigRequest_default_instance_; - -inline constexpr ReconfigureResourceRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - dependencies_{}, - config_{nullptr} {} - -template -PROTOBUF_CONSTEXPR ReconfigureResourceRequest::ReconfigureResourceRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ReconfigureResourceRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR ReconfigureResourceRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ReconfigureResourceRequestDefaultTypeInternal() {} - union { - ReconfigureResourceRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ReconfigureResourceRequestDefaultTypeInternal _ReconfigureResourceRequest_default_instance_; - -inline constexpr AddResourceRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - dependencies_{}, - config_{nullptr} {} - -template -PROTOBUF_CONSTEXPR AddResourceRequest::AddResourceRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct AddResourceRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR AddResourceRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AddResourceRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ValidateConfigRequestDefaultTypeInternal _ValidateConfigRequest_default_instance_; +PROTOBUF_CONSTEXPR ValidateConfigResponse::ValidateConfigResponse( + ::_pbi::ConstantInitialized) + : dependencies_(){} +struct ValidateConfigResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ValidateConfigResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ValidateConfigResponseDefaultTypeInternal() {} union { - AddResourceRequest _instance; + ValidateConfigResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AddResourceRequestDefaultTypeInternal _AddResourceRequest_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ValidateConfigResponseDefaultTypeInternal _ValidateConfigResponse_default_instance_; } // namespace v1 } // namespace module } // namespace viam static ::_pb::Metadata file_level_metadata_module_2fv1_2fmodule_2eproto[12]; -static constexpr const ::_pb::EnumDescriptor** - file_level_enum_descriptors_module_2fv1_2fmodule_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_module_2fv1_2fmodule_2eproto = nullptr; -const ::uint32_t TableStruct_module_2fv1_2fmodule_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::viam::module::v1::AddResourceRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::module::v1::AddResourceRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::module::v1::AddResourceRequest, _impl_.config_), - PROTOBUF_FIELD_OFFSET(::viam::module::v1::AddResourceRequest, _impl_.dependencies_), - 0, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::module::v1::AddResourceResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::module::v1::ReconfigureResourceRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::module::v1::ReconfigureResourceRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::module::v1::ReconfigureResourceRequest, _impl_.config_), - PROTOBUF_FIELD_OFFSET(::viam::module::v1::ReconfigureResourceRequest, _impl_.dependencies_), - 0, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::module::v1::ReconfigureResourceResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::module::v1::RemoveResourceRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::module::v1::RemoveResourceRequest, _impl_.name_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::module::v1::RemoveResourceResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::module::v1::HandlerDefinition, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::module::v1::HandlerDefinition, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::module::v1::HandlerDefinition, _impl_.subtype_), - PROTOBUF_FIELD_OFFSET(::viam::module::v1::HandlerDefinition, _impl_.models_), - 0, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::module::v1::HandlerMap, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::module::v1::HandlerMap, _impl_.handlers_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::module::v1::ReadyRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::module::v1::ReadyRequest, _impl_.parent_address_), - PROTOBUF_FIELD_OFFSET(::viam::module::v1::ReadyRequest, _impl_.webrtc_offer_), - PROTOBUF_FIELD_OFFSET(::viam::module::v1::ReadyResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::module::v1::ReadyResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::module::v1::ReadyResponse, _impl_.ready_), - PROTOBUF_FIELD_OFFSET(::viam::module::v1::ReadyResponse, _impl_.handlermap_), - PROTOBUF_FIELD_OFFSET(::viam::module::v1::ReadyResponse, _impl_.webrtc_answer_), - ~0u, - 0, - ~0u, - PROTOBUF_FIELD_OFFSET(::viam::module::v1::ValidateConfigRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::module::v1::ValidateConfigRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::module::v1::ValidateConfigRequest, _impl_.config_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::module::v1::ValidateConfigResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::module::v1::ValidateConfigResponse, _impl_.dependencies_), +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_module_2fv1_2fmodule_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_module_2fv1_2fmodule_2eproto = nullptr; + +const uint32_t TableStruct_module_2fv1_2fmodule_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::module::v1::AddResourceRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::module::v1::AddResourceRequest, config_), + PROTOBUF_FIELD_OFFSET(::viam::module::v1::AddResourceRequest, dependencies_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::module::v1::AddResourceResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::module::v1::ReconfigureResourceRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::module::v1::ReconfigureResourceRequest, config_), + PROTOBUF_FIELD_OFFSET(::viam::module::v1::ReconfigureResourceRequest, dependencies_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::module::v1::ReconfigureResourceResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::module::v1::RemoveResourceRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::module::v1::RemoveResourceRequest, name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::module::v1::RemoveResourceResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::module::v1::HandlerDefinition, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::module::v1::HandlerDefinition, subtype_), + PROTOBUF_FIELD_OFFSET(::viam::module::v1::HandlerDefinition, models_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::module::v1::HandlerMap, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::module::v1::HandlerMap, handlers_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::module::v1::ReadyRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::module::v1::ReadyRequest, parent_address_), + PROTOBUF_FIELD_OFFSET(::viam::module::v1::ReadyRequest, webrtc_offer_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::module::v1::ReadyResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::module::v1::ReadyResponse, ready_), + PROTOBUF_FIELD_OFFSET(::viam::module::v1::ReadyResponse, handlermap_), + PROTOBUF_FIELD_OFFSET(::viam::module::v1::ReadyResponse, webrtc_answer_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::module::v1::ValidateConfigRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::module::v1::ValidateConfigRequest, config_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::module::v1::ValidateConfigResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::module::v1::ValidateConfigResponse, dependencies_), }; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, 10, -1, sizeof(::viam::module::v1::AddResourceRequest)}, - {12, -1, -1, sizeof(::viam::module::v1::AddResourceResponse)}, - {20, 30, -1, sizeof(::viam::module::v1::ReconfigureResourceRequest)}, - {32, -1, -1, sizeof(::viam::module::v1::ReconfigureResourceResponse)}, - {40, -1, -1, sizeof(::viam::module::v1::RemoveResourceRequest)}, - {49, -1, -1, sizeof(::viam::module::v1::RemoveResourceResponse)}, - {57, 67, -1, sizeof(::viam::module::v1::HandlerDefinition)}, - {69, -1, -1, sizeof(::viam::module::v1::HandlerMap)}, - {78, -1, -1, sizeof(::viam::module::v1::ReadyRequest)}, - {88, 99, -1, sizeof(::viam::module::v1::ReadyResponse)}, - {102, 111, -1, sizeof(::viam::module::v1::ValidateConfigRequest)}, - {112, -1, -1, sizeof(::viam::module::v1::ValidateConfigResponse)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::module::v1::AddResourceRequest)}, + { 8, -1, -1, sizeof(::viam::module::v1::AddResourceResponse)}, + { 14, -1, -1, sizeof(::viam::module::v1::ReconfigureResourceRequest)}, + { 22, -1, -1, sizeof(::viam::module::v1::ReconfigureResourceResponse)}, + { 28, -1, -1, sizeof(::viam::module::v1::RemoveResourceRequest)}, + { 35, -1, -1, sizeof(::viam::module::v1::RemoveResourceResponse)}, + { 41, -1, -1, sizeof(::viam::module::v1::HandlerDefinition)}, + { 49, -1, -1, sizeof(::viam::module::v1::HandlerMap)}, + { 56, -1, -1, sizeof(::viam::module::v1::ReadyRequest)}, + { 64, -1, -1, sizeof(::viam::module::v1::ReadyResponse)}, + { 73, -1, -1, sizeof(::viam::module::v1::ValidateConfigRequest)}, + { 80, -1, -1, sizeof(::viam::module::v1::ValidateConfigResponse)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::viam::module::v1::_AddResourceRequest_default_instance_._instance, - &::viam::module::v1::_AddResourceResponse_default_instance_._instance, - &::viam::module::v1::_ReconfigureResourceRequest_default_instance_._instance, - &::viam::module::v1::_ReconfigureResourceResponse_default_instance_._instance, - &::viam::module::v1::_RemoveResourceRequest_default_instance_._instance, - &::viam::module::v1::_RemoveResourceResponse_default_instance_._instance, - &::viam::module::v1::_HandlerDefinition_default_instance_._instance, - &::viam::module::v1::_HandlerMap_default_instance_._instance, - &::viam::module::v1::_ReadyRequest_default_instance_._instance, - &::viam::module::v1::_ReadyResponse_default_instance_._instance, - &::viam::module::v1::_ValidateConfigRequest_default_instance_._instance, - &::viam::module::v1::_ValidateConfigResponse_default_instance_._instance, -}; -const char descriptor_table_protodef_module_2fv1_2fmodule_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n\026module/v1/module.proto\022\016viam.module.v1" - "\032\022app/v1/robot.proto\032\024robot/v1/robot.pro" - "to\"n\n\022AddResourceRequest\0224\n\006config\030\001 \001(\013" - "2\034.viam.app.v1.ComponentConfigR\006config\022\"" - "\n\014dependencies\030\002 \003(\tR\014dependencies\"\025\n\023Ad" - "dResourceResponse\"v\n\032ReconfigureResource" - "Request\0224\n\006config\030\001 \001(\0132\034.viam.app.v1.Co" - "mponentConfigR\006config\022\"\n\014dependencies\030\002 " - "\003(\tR\014dependencies\"\035\n\033ReconfigureResource" - "Response\"+\n\025RemoveResourceRequest\022\022\n\004nam" - "e\030\001 \001(\tR\004name\"\030\n\026RemoveResourceResponse\"" - "h\n\021HandlerDefinition\022;\n\007subtype\030\001 \001(\0132!." - "viam.robot.v1.ResourceRPCSubtypeR\007subtyp" - "e\022\026\n\006models\030\002 \003(\tR\006models\"K\n\nHandlerMap\022" - "=\n\010handlers\030\001 \003(\0132!.viam.module.v1.Handl" - "erDefinitionR\010handlers\"X\n\014ReadyRequest\022%" - "\n\016parent_address\030\001 \001(\tR\rparentAddress\022!\n" - "\014webrtc_offer\030\002 \001(\tR\013webrtcOffer\"\206\001\n\rRea" - "dyResponse\022\024\n\005ready\030\001 \001(\010R\005ready\022:\n\nhand" - "lermap\030\002 \001(\0132\032.viam.module.v1.HandlerMap" - "R\nhandlermap\022#\n\rwebrtc_answer\030\003 \001(\tR\014web" - "rtcAnswer\"M\n\025ValidateConfigRequest\0224\n\006co" - "nfig\030\001 \001(\0132\034.viam.app.v1.ComponentConfig" - "R\006config\"<\n\026ValidateConfigResponse\022\"\n\014de" - "pendencies\030\001 \003(\tR\014dependencies2\337\003\n\rModul" - "eService\022V\n\013AddResource\022\".viam.module.v1" - ".AddResourceRequest\032#.viam.module.v1.Add" - "ResourceResponse\022n\n\023ReconfigureResource\022" - "*.viam.module.v1.ReconfigureResourceRequ" - "est\032+.viam.module.v1.ReconfigureResource" - "Response\022_\n\016RemoveResource\022%.viam.module" - ".v1.RemoveResourceRequest\032&.viam.module." - "v1.RemoveResourceResponse\022D\n\005Ready\022\034.via" - "m.module.v1.ReadyRequest\032\035.viam.module.v" - "1.ReadyResponse\022_\n\016ValidateConfig\022%.viam" - ".module.v1.ValidateConfigRequest\032&.viam." - "module.v1.ValidateConfigResponseB\226\001\n\022com" - ".viam.module.v1B\013ModuleProtoP\001Z\031go.viam." - "com/api/module/v1\242\002\003VMX\252\002\016Viam.Module.V1" - "\312\002\016Viam\\Module\\V1\342\002\032Viam\\Module\\V1\\GPBMe" - "tadata\352\002\020Viam::Module::V1b\006proto3" + &::viam::module::v1::_AddResourceRequest_default_instance_._instance, + &::viam::module::v1::_AddResourceResponse_default_instance_._instance, + &::viam::module::v1::_ReconfigureResourceRequest_default_instance_._instance, + &::viam::module::v1::_ReconfigureResourceResponse_default_instance_._instance, + &::viam::module::v1::_RemoveResourceRequest_default_instance_._instance, + &::viam::module::v1::_RemoveResourceResponse_default_instance_._instance, + &::viam::module::v1::_HandlerDefinition_default_instance_._instance, + &::viam::module::v1::_HandlerMap_default_instance_._instance, + &::viam::module::v1::_ReadyRequest_default_instance_._instance, + &::viam::module::v1::_ReadyResponse_default_instance_._instance, + &::viam::module::v1::_ValidateConfigRequest_default_instance_._instance, + &::viam::module::v1::_ValidateConfigResponse_default_instance_._instance, }; -static const ::_pbi::DescriptorTable* const descriptor_table_module_2fv1_2fmodule_2eproto_deps[2] = - { - &::descriptor_table_app_2fv1_2frobot_2eproto, - &::descriptor_table_robot_2fv1_2frobot_2eproto, + +const char descriptor_table_protodef_module_2fv1_2fmodule_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\026module/v1/module.proto\022\016viam.module.v1" + "\032\022app/v1/robot.proto\032\024robot/v1/robot.pro" + "to\"n\n\022AddResourceRequest\0224\n\006config\030\001 \001(\013" + "2\034.viam.app.v1.ComponentConfigR\006config\022\"" + "\n\014dependencies\030\002 \003(\tR\014dependencies\"\025\n\023Ad" + "dResourceResponse\"v\n\032ReconfigureResource" + "Request\0224\n\006config\030\001 \001(\0132\034.viam.app.v1.Co" + "mponentConfigR\006config\022\"\n\014dependencies\030\002 " + "\003(\tR\014dependencies\"\035\n\033ReconfigureResource" + "Response\"+\n\025RemoveResourceRequest\022\022\n\004nam" + "e\030\001 \001(\tR\004name\"\030\n\026RemoveResourceResponse\"" + "h\n\021HandlerDefinition\022;\n\007subtype\030\001 \001(\0132!." + "viam.robot.v1.ResourceRPCSubtypeR\007subtyp" + "e\022\026\n\006models\030\002 \003(\tR\006models\"K\n\nHandlerMap\022" + "=\n\010handlers\030\001 \003(\0132!.viam.module.v1.Handl" + "erDefinitionR\010handlers\"X\n\014ReadyRequest\022%" + "\n\016parent_address\030\001 \001(\tR\rparentAddress\022!\n" + "\014webrtc_offer\030\002 \001(\tR\013webrtcOffer\"\206\001\n\rRea" + "dyResponse\022\024\n\005ready\030\001 \001(\010R\005ready\022:\n\nhand" + "lermap\030\002 \001(\0132\032.viam.module.v1.HandlerMap" + "R\nhandlermap\022#\n\rwebrtc_answer\030\003 \001(\tR\014web" + "rtcAnswer\"M\n\025ValidateConfigRequest\0224\n\006co" + "nfig\030\001 \001(\0132\034.viam.app.v1.ComponentConfig" + "R\006config\"<\n\026ValidateConfigResponse\022\"\n\014de" + "pendencies\030\001 \003(\tR\014dependencies2\337\003\n\rModul" + "eService\022V\n\013AddResource\022\".viam.module.v1" + ".AddResourceRequest\032#.viam.module.v1.Add" + "ResourceResponse\022n\n\023ReconfigureResource\022" + "*.viam.module.v1.ReconfigureResourceRequ" + "est\032+.viam.module.v1.ReconfigureResource" + "Response\022_\n\016RemoveResource\022%.viam.module" + ".v1.RemoveResourceRequest\032&.viam.module." + "v1.RemoveResourceResponse\022D\n\005Ready\022\034.via" + "m.module.v1.ReadyRequest\032\035.viam.module.v" + "1.ReadyResponse\022_\n\016ValidateConfig\022%.viam" + ".module.v1.ValidateConfigRequest\032&.viam." + "module.v1.ValidateConfigResponseB\033Z\031go.v" + "iam.com/api/module/v1b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_module_2fv1_2fmodule_2eproto_deps[2] = { + &::descriptor_table_app_2fv1_2frobot_2eproto, + &::descriptor_table_robot_2fv1_2frobot_2eproto, }; -static ::absl::once_flag descriptor_table_module_2fv1_2fmodule_2eproto_once; +static ::_pbi::once_flag descriptor_table_module_2fv1_2fmodule_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_module_2fv1_2fmodule_2eproto = { - false, - false, - 1633, - descriptor_table_protodef_module_2fv1_2fmodule_2eproto, + false, false, 1509, descriptor_table_protodef_module_2fv1_2fmodule_2eproto, "module/v1/module.proto", - &descriptor_table_module_2fv1_2fmodule_2eproto_once, - descriptor_table_module_2fv1_2fmodule_2eproto_deps, - 2, - 12, - schemas, - file_default_instances, - TableStruct_module_2fv1_2fmodule_2eproto::offsets, - file_level_metadata_module_2fv1_2fmodule_2eproto, - file_level_enum_descriptors_module_2fv1_2fmodule_2eproto, + &descriptor_table_module_2fv1_2fmodule_2eproto_once, descriptor_table_module_2fv1_2fmodule_2eproto_deps, 2, 12, + schemas, file_default_instances, TableStruct_module_2fv1_2fmodule_2eproto::offsets, + file_level_metadata_module_2fv1_2fmodule_2eproto, file_level_enum_descriptors_module_2fv1_2fmodule_2eproto, file_level_service_descriptors_module_2fv1_2fmodule_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_module_2fv1_2fmodule_2eproto_getter() { return &descriptor_table_module_2fv1_2fmodule_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_module_2fv1_2fmodule_2eproto(&descriptor_table_module_2fv1_2fmodule_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_module_2fv1_2fmodule_2eproto(&descriptor_table_module_2fv1_2fmodule_2eproto); namespace viam { namespace module { namespace v1 { + // =================================================================== class AddResourceRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(AddResourceRequest, _impl_._has_bits_); static const ::viam::app::v1::ComponentConfig& config(const AddResourceRequest* msg); - static void set_has_config(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::app::v1::ComponentConfig& AddResourceRequest::_Internal::config(const AddResourceRequest* msg) { - return *msg->_impl_.config_; +const ::viam::app::v1::ComponentConfig& +AddResourceRequest::_Internal::config(const AddResourceRequest* msg) { + return *msg->config_; } void AddResourceRequest::clear_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.config_ != nullptr) _impl_.config_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && config_ != nullptr) { + delete config_; + } + config_ = nullptr; } -AddResourceRequest::AddResourceRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +AddResourceRequest::AddResourceRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + dependencies_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.module.v1.AddResourceRequest) } -inline PROTOBUF_NDEBUG_INLINE AddResourceRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - dependencies_{visibility, arena, from.dependencies_} {} - -AddResourceRequest::AddResourceRequest( - ::google::protobuf::Arena* arena, - const AddResourceRequest& from) - : ::google::protobuf::Message(arena) { - AddResourceRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.config_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::app::v1::ComponentConfig>(arena, *from._impl_.config_) - : nullptr; - +AddResourceRequest::AddResourceRequest(const AddResourceRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + dependencies_(from.dependencies_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_config()) { + config_ = new ::viam::app::v1::ComponentConfig(*from.config_); + } else { + config_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.module.v1.AddResourceRequest) } -inline PROTOBUF_NDEBUG_INLINE AddResourceRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - dependencies_{visibility, arena} {} -inline void AddResourceRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.config_ = {}; +inline void AddResourceRequest::SharedCtor() { +config_ = nullptr; } + AddResourceRequest::~AddResourceRequest() { // @@protoc_insertion_point(destructor:viam.module.v1.AddResourceRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void AddResourceRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.config_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete config_; +} + +void AddResourceRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void AddResourceRequest::Clear() { +void AddResourceRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.module.v1.AddResourceRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.dependencies_.Clear(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.config_ != nullptr); - _impl_.config_->Clear(); + dependencies_.Clear(); + if (GetArenaForAllocation() == nullptr && config_ != nullptr) { + delete config_; } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* AddResourceRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + config_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* AddResourceRequest::_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.app.v1.ComponentConfig config = 1 [json_name = "config"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_config(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // repeated string dependencies = 2 [json_name = "dependencies"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_dependencies(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.module.v1.AddResourceRequest.dependencies")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 54, 2> AddResourceRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(AddResourceRequest, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_AddResourceRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated string dependencies = 2 [json_name = "dependencies"]; - {::_pbi::TcParser::FastUR1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(AddResourceRequest, _impl_.dependencies_)}}, - // .viam.app.v1.ComponentConfig config = 1 [json_name = "config"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(AddResourceRequest, _impl_.config_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.app.v1.ComponentConfig config = 1 [json_name = "config"]; - {PROTOBUF_FIELD_OFFSET(AddResourceRequest, _impl_.config_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated string dependencies = 2 [json_name = "dependencies"]; - {PROTOBUF_FIELD_OFFSET(AddResourceRequest, _impl_.dependencies_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::ComponentConfig>()}, - }}, {{ - "\41\0\14\0\0\0\0\0" - "viam.module.v1.AddResourceRequest" - "dependencies" - }}, -}; - -::uint8_t* AddResourceRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* AddResourceRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.module.v1.AddResourceRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.app.v1.ComponentConfig config = 1 [json_name = "config"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::config(this), + if (this->_internal_has_config()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::config(this), _Internal::config(this).GetCachedSize(), target, stream); } // repeated string dependencies = 2 [json_name = "dependencies"]; - for (int i = 0, n = this->_internal_dependencies_size(); i < n; ++i) { - const auto& s = this->_internal_dependencies().Get(i); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.module.v1.AddResourceRequest.dependencies"); + for (int i = 0, n = this->_internal_dependencies_size(); i < n; i++) { + const auto& s = this->_internal_dependencies(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.module.v1.AddResourceRequest.dependencies"); target = stream->WriteString(2, s, target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.module.v1.AddResourceRequest) return target; } -::size_t AddResourceRequest::ByteSizeLong() const { +size_t AddResourceRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.module.v1.AddResourceRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated string dependencies = 2 [json_name = "dependencies"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_dependencies().size()); - for (int i = 0, n = _internal_dependencies().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - _internal_dependencies().Get(i)); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(dependencies_.size()); + for (int i = 0, n = dependencies_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + dependencies_.Get(i)); } + // .viam.app.v1.ComponentConfig config = 1 [json_name = "config"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.config_); + if (this->_internal_has_config()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *config_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData AddResourceRequest::_class_data_ = { - AddResourceRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AddResourceRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + AddResourceRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* AddResourceRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AddResourceRequest::GetClassData() const { return &_class_data_; } + +void AddResourceRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void AddResourceRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.module.v1.AddResourceRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void AddResourceRequest::MergeFrom(const AddResourceRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.module.v1.AddResourceRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_dependencies()->MergeFrom(from._internal_dependencies()); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_config()->::viam::app::v1::ComponentConfig::MergeFrom( - from._internal_config()); + dependencies_.MergeFrom(from.dependencies_); + if (from._internal_has_config()) { + _internal_mutable_config()->::viam::app::v1::ComponentConfig::MergeFrom(from._internal_config()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void AddResourceRequest::CopyFrom(const AddResourceRequest& from) { @@ -714,45 +573,37 @@ void AddResourceRequest::CopyFrom(const AddResourceRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool AddResourceRequest::IsInitialized() const { +bool AddResourceRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* AddResourceRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void AddResourceRequest::InternalSwap(AddResourceRequest* PROTOBUF_RESTRICT other) { +void AddResourceRequest::InternalSwap(AddResourceRequest* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.dependencies_.InternalSwap(&other->_impl_.dependencies_); - swap(_impl_.config_, other->_impl_.config_); + dependencies_.InternalSwap(&other->dependencies_); + swap(config_, other->config_); } -::google::protobuf::Metadata AddResourceRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata AddResourceRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_module_2fv1_2fmodule_2eproto_getter, &descriptor_table_module_2fv1_2fmodule_2eproto_once, file_level_metadata_module_2fv1_2fmodule_2eproto[0]); } + // =================================================================== class AddResourceResponse::_Internal { public: }; -AddResourceResponse::AddResourceResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +AddResourceResponse::AddResourceResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.module.v1.AddResourceResponse) } -AddResourceResponse::AddResourceResponse( - ::google::protobuf::Arena* arena, - const AddResourceResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - AddResourceResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +AddResourceResponse::AddResourceResponse(const AddResourceResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.module.v1.AddResourceResponse) } @@ -760,226 +611,229 @@ AddResourceResponse::AddResourceResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AddResourceResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AddResourceResponse::GetClassData() const { return &_class_data_; } + -::google::protobuf::Metadata AddResourceResponse::GetMetadata() const { + + +::PROTOBUF_NAMESPACE_ID::Metadata AddResourceResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_module_2fv1_2fmodule_2eproto_getter, &descriptor_table_module_2fv1_2fmodule_2eproto_once, file_level_metadata_module_2fv1_2fmodule_2eproto[1]); } + // =================================================================== class ReconfigureResourceRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ReconfigureResourceRequest, _impl_._has_bits_); static const ::viam::app::v1::ComponentConfig& config(const ReconfigureResourceRequest* msg); - static void set_has_config(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::app::v1::ComponentConfig& ReconfigureResourceRequest::_Internal::config(const ReconfigureResourceRequest* msg) { - return *msg->_impl_.config_; +const ::viam::app::v1::ComponentConfig& +ReconfigureResourceRequest::_Internal::config(const ReconfigureResourceRequest* msg) { + return *msg->config_; } void ReconfigureResourceRequest::clear_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.config_ != nullptr) _impl_.config_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && config_ != nullptr) { + delete config_; + } + config_ = nullptr; } -ReconfigureResourceRequest::ReconfigureResourceRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ReconfigureResourceRequest::ReconfigureResourceRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + dependencies_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.module.v1.ReconfigureResourceRequest) } -inline PROTOBUF_NDEBUG_INLINE ReconfigureResourceRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - dependencies_{visibility, arena, from.dependencies_} {} - -ReconfigureResourceRequest::ReconfigureResourceRequest( - ::google::protobuf::Arena* arena, - const ReconfigureResourceRequest& from) - : ::google::protobuf::Message(arena) { - ReconfigureResourceRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.config_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::app::v1::ComponentConfig>(arena, *from._impl_.config_) - : nullptr; - +ReconfigureResourceRequest::ReconfigureResourceRequest(const ReconfigureResourceRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + dependencies_(from.dependencies_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_config()) { + config_ = new ::viam::app::v1::ComponentConfig(*from.config_); + } else { + config_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.module.v1.ReconfigureResourceRequest) } -inline PROTOBUF_NDEBUG_INLINE ReconfigureResourceRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - dependencies_{visibility, arena} {} -inline void ReconfigureResourceRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.config_ = {}; +inline void ReconfigureResourceRequest::SharedCtor() { +config_ = nullptr; } + ReconfigureResourceRequest::~ReconfigureResourceRequest() { // @@protoc_insertion_point(destructor:viam.module.v1.ReconfigureResourceRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ReconfigureResourceRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.config_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete config_; +} + +void ReconfigureResourceRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void ReconfigureResourceRequest::Clear() { +void ReconfigureResourceRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.module.v1.ReconfigureResourceRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.dependencies_.Clear(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.config_ != nullptr); - _impl_.config_->Clear(); + dependencies_.Clear(); + if (GetArenaForAllocation() == nullptr && config_ != nullptr) { + delete config_; } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ReconfigureResourceRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + config_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ReconfigureResourceRequest::_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.app.v1.ComponentConfig config = 1 [json_name = "config"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_config(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // repeated string dependencies = 2 [json_name = "dependencies"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_dependencies(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.module.v1.ReconfigureResourceRequest.dependencies")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 62, 2> ReconfigureResourceRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ReconfigureResourceRequest, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ReconfigureResourceRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated string dependencies = 2 [json_name = "dependencies"]; - {::_pbi::TcParser::FastUR1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(ReconfigureResourceRequest, _impl_.dependencies_)}}, - // .viam.app.v1.ComponentConfig config = 1 [json_name = "config"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(ReconfigureResourceRequest, _impl_.config_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.app.v1.ComponentConfig config = 1 [json_name = "config"]; - {PROTOBUF_FIELD_OFFSET(ReconfigureResourceRequest, _impl_.config_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated string dependencies = 2 [json_name = "dependencies"]; - {PROTOBUF_FIELD_OFFSET(ReconfigureResourceRequest, _impl_.dependencies_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::ComponentConfig>()}, - }}, {{ - "\51\0\14\0\0\0\0\0" - "viam.module.v1.ReconfigureResourceRequest" - "dependencies" - }}, -}; - -::uint8_t* ReconfigureResourceRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ReconfigureResourceRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.module.v1.ReconfigureResourceRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.app.v1.ComponentConfig config = 1 [json_name = "config"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::config(this), + if (this->_internal_has_config()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::config(this), _Internal::config(this).GetCachedSize(), target, stream); } // repeated string dependencies = 2 [json_name = "dependencies"]; - for (int i = 0, n = this->_internal_dependencies_size(); i < n; ++i) { - const auto& s = this->_internal_dependencies().Get(i); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.module.v1.ReconfigureResourceRequest.dependencies"); + for (int i = 0, n = this->_internal_dependencies_size(); i < n; i++) { + const auto& s = this->_internal_dependencies(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.module.v1.ReconfigureResourceRequest.dependencies"); target = stream->WriteString(2, s, target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.module.v1.ReconfigureResourceRequest) return target; } -::size_t ReconfigureResourceRequest::ByteSizeLong() const { +size_t ReconfigureResourceRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.module.v1.ReconfigureResourceRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated string dependencies = 2 [json_name = "dependencies"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_dependencies().size()); - for (int i = 0, n = _internal_dependencies().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - _internal_dependencies().Get(i)); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(dependencies_.size()); + for (int i = 0, n = dependencies_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + dependencies_.Get(i)); } + // .viam.app.v1.ComponentConfig config = 1 [json_name = "config"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.config_); + if (this->_internal_has_config()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *config_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ReconfigureResourceRequest::_class_data_ = { - ReconfigureResourceRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ReconfigureResourceRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ReconfigureResourceRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* ReconfigureResourceRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ReconfigureResourceRequest::GetClassData() const { return &_class_data_; } + +void ReconfigureResourceRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ReconfigureResourceRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.module.v1.ReconfigureResourceRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ReconfigureResourceRequest::MergeFrom(const ReconfigureResourceRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.module.v1.ReconfigureResourceRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_dependencies()->MergeFrom(from._internal_dependencies()); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_config()->::viam::app::v1::ComponentConfig::MergeFrom( - from._internal_config()); + dependencies_.MergeFrom(from.dependencies_); + if (from._internal_has_config()) { + _internal_mutable_config()->::viam::app::v1::ComponentConfig::MergeFrom(from._internal_config()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ReconfigureResourceRequest::CopyFrom(const ReconfigureResourceRequest& from) { @@ -989,45 +843,37 @@ void ReconfigureResourceRequest::CopyFrom(const ReconfigureResourceRequest& from MergeFrom(from); } -PROTOBUF_NOINLINE bool ReconfigureResourceRequest::IsInitialized() const { +bool ReconfigureResourceRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* ReconfigureResourceRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ReconfigureResourceRequest::InternalSwap(ReconfigureResourceRequest* PROTOBUF_RESTRICT other) { +void ReconfigureResourceRequest::InternalSwap(ReconfigureResourceRequest* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.dependencies_.InternalSwap(&other->_impl_.dependencies_); - swap(_impl_.config_, other->_impl_.config_); + dependencies_.InternalSwap(&other->dependencies_); + swap(config_, other->config_); } -::google::protobuf::Metadata ReconfigureResourceRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ReconfigureResourceRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_module_2fv1_2fmodule_2eproto_getter, &descriptor_table_module_2fv1_2fmodule_2eproto_once, file_level_metadata_module_2fv1_2fmodule_2eproto[2]); } + // =================================================================== class ReconfigureResourceResponse::_Internal { public: }; -ReconfigureResourceResponse::ReconfigureResourceResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +ReconfigureResourceResponse::ReconfigureResourceResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.module.v1.ReconfigureResourceResponse) } -ReconfigureResourceResponse::ReconfigureResourceResponse( - ::google::protobuf::Arena* arena, - const ReconfigureResourceResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - ReconfigureResourceResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +ReconfigureResourceResponse::ReconfigureResourceResponse(const ReconfigureResourceResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.module.v1.ReconfigureResourceResponse) } @@ -1035,176 +881,189 @@ ReconfigureResourceResponse::ReconfigureResourceResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ReconfigureResourceResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ReconfigureResourceResponse::GetClassData() const { return &_class_data_; } + -::google::protobuf::Metadata ReconfigureResourceResponse::GetMetadata() const { + + +::PROTOBUF_NAMESPACE_ID::Metadata ReconfigureResourceResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_module_2fv1_2fmodule_2eproto_getter, &descriptor_table_module_2fv1_2fmodule_2eproto_once, file_level_metadata_module_2fv1_2fmodule_2eproto[3]); } + // =================================================================== class RemoveResourceRequest::_Internal { public: }; -RemoveResourceRequest::RemoveResourceRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +RemoveResourceRequest::RemoveResourceRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.module.v1.RemoveResourceRequest) } -inline PROTOBUF_NDEBUG_INLINE RemoveResourceRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : name_(arena, from.name_), - _cached_size_{0} {} - -RemoveResourceRequest::RemoveResourceRequest( - ::google::protobuf::Arena* arena, - const RemoveResourceRequest& from) - : ::google::protobuf::Message(arena) { - RemoveResourceRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +RemoveResourceRequest::RemoveResourceRequest(const RemoveResourceRequest& 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()); + } // @@protoc_insertion_point(copy_constructor:viam.module.v1.RemoveResourceRequest) } -inline PROTOBUF_NDEBUG_INLINE RemoveResourceRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : name_(arena), - _cached_size_{0} {} -inline void RemoveResourceRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void RemoveResourceRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + RemoveResourceRequest::~RemoveResourceRequest() { // @@protoc_insertion_point(destructor:viam.module.v1.RemoveResourceRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void RemoveResourceRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); } -PROTOBUF_NOINLINE void RemoveResourceRequest::Clear() { +void RemoveResourceRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void RemoveResourceRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.module.v1.RemoveResourceRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* RemoveResourceRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RemoveResourceRequest::_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.module.v1.RemoveResourceRequest.name")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 49, 2> RemoveResourceRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_RemoveResourceRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(RemoveResourceRequest, _impl_.name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(RemoveResourceRequest, _impl_.name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\44\4\0\0\0\0\0\0" - "viam.module.v1.RemoveResourceRequest" - "name" - }}, -}; - -::uint8_t* RemoveResourceRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* RemoveResourceRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.module.v1.RemoveResourceRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.module.v1.RemoveResourceRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.module.v1.RemoveResourceRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.module.v1.RemoveResourceRequest) return target; } -::size_t RemoveResourceRequest::ByteSizeLong() const { +size_t RemoveResourceRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.module.v1.RemoveResourceRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData RemoveResourceRequest::_class_data_ = { - RemoveResourceRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RemoveResourceRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + RemoveResourceRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* RemoveResourceRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RemoveResourceRequest::GetClassData() const { return &_class_data_; } + +void RemoveResourceRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void RemoveResourceRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.module.v1.RemoveResourceRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void RemoveResourceRequest::MergeFrom(const RemoveResourceRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.module.v1.RemoveResourceRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void RemoveResourceRequest::CopyFrom(const RemoveResourceRequest& from) { @@ -1214,45 +1073,41 @@ void RemoveResourceRequest::CopyFrom(const RemoveResourceRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool RemoveResourceRequest::IsInitialized() const { +bool RemoveResourceRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* RemoveResourceRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void RemoveResourceRequest::InternalSwap(RemoveResourceRequest* PROTOBUF_RESTRICT other) { +void RemoveResourceRequest::InternalSwap(RemoveResourceRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); } -::google::protobuf::Metadata RemoveResourceRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata RemoveResourceRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_module_2fv1_2fmodule_2eproto_getter, &descriptor_table_module_2fv1_2fmodule_2eproto_once, file_level_metadata_module_2fv1_2fmodule_2eproto[4]); } + // =================================================================== class RemoveResourceResponse::_Internal { public: }; -RemoveResourceResponse::RemoveResourceResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +RemoveResourceResponse::RemoveResourceResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.module.v1.RemoveResourceResponse) } -RemoveResourceResponse::RemoveResourceResponse( - ::google::protobuf::Arena* arena, - const RemoveResourceResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - RemoveResourceResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +RemoveResourceResponse::RemoveResourceResponse(const RemoveResourceResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.module.v1.RemoveResourceResponse) } @@ -1260,226 +1115,229 @@ RemoveResourceResponse::RemoveResourceResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RemoveResourceResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RemoveResourceResponse::GetClassData() const { return &_class_data_; } -::google::protobuf::Metadata RemoveResourceResponse::GetMetadata() const { + + + +::PROTOBUF_NAMESPACE_ID::Metadata RemoveResourceResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_module_2fv1_2fmodule_2eproto_getter, &descriptor_table_module_2fv1_2fmodule_2eproto_once, file_level_metadata_module_2fv1_2fmodule_2eproto[5]); } + // =================================================================== class HandlerDefinition::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(HandlerDefinition, _impl_._has_bits_); static const ::viam::robot::v1::ResourceRPCSubtype& subtype(const HandlerDefinition* msg); - static void set_has_subtype(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::robot::v1::ResourceRPCSubtype& HandlerDefinition::_Internal::subtype(const HandlerDefinition* msg) { - return *msg->_impl_.subtype_; +const ::viam::robot::v1::ResourceRPCSubtype& +HandlerDefinition::_Internal::subtype(const HandlerDefinition* msg) { + return *msg->subtype_; } void HandlerDefinition::clear_subtype() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.subtype_ != nullptr) _impl_.subtype_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && subtype_ != nullptr) { + delete subtype_; + } + subtype_ = nullptr; } -HandlerDefinition::HandlerDefinition(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +HandlerDefinition::HandlerDefinition(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + models_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.module.v1.HandlerDefinition) } -inline PROTOBUF_NDEBUG_INLINE HandlerDefinition::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - models_{visibility, arena, from.models_} {} - -HandlerDefinition::HandlerDefinition( - ::google::protobuf::Arena* arena, - const HandlerDefinition& from) - : ::google::protobuf::Message(arena) { - HandlerDefinition* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.subtype_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::robot::v1::ResourceRPCSubtype>(arena, *from._impl_.subtype_) - : nullptr; - +HandlerDefinition::HandlerDefinition(const HandlerDefinition& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + models_(from.models_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_subtype()) { + subtype_ = new ::viam::robot::v1::ResourceRPCSubtype(*from.subtype_); + } else { + subtype_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.module.v1.HandlerDefinition) } -inline PROTOBUF_NDEBUG_INLINE HandlerDefinition::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - models_{visibility, arena} {} -inline void HandlerDefinition::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.subtype_ = {}; +inline void HandlerDefinition::SharedCtor() { +subtype_ = nullptr; } + HandlerDefinition::~HandlerDefinition() { // @@protoc_insertion_point(destructor:viam.module.v1.HandlerDefinition) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void HandlerDefinition::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.subtype_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete subtype_; } -PROTOBUF_NOINLINE void HandlerDefinition::Clear() { +void HandlerDefinition::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void HandlerDefinition::Clear() { // @@protoc_insertion_point(message_clear_start:viam.module.v1.HandlerDefinition) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.models_.Clear(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.subtype_ != nullptr); - _impl_.subtype_->Clear(); + models_.Clear(); + if (GetArenaForAllocation() == nullptr && subtype_ != nullptr) { + delete subtype_; } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* HandlerDefinition::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + subtype_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* HandlerDefinition::_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.robot.v1.ResourceRPCSubtype subtype = 1 [json_name = "subtype"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_subtype(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // repeated string models = 2 [json_name = "models"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_models(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.module.v1.HandlerDefinition.models")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 47, 2> HandlerDefinition::_table_ = { - { - PROTOBUF_FIELD_OFFSET(HandlerDefinition, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_HandlerDefinition_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated string models = 2 [json_name = "models"]; - {::_pbi::TcParser::FastUR1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(HandlerDefinition, _impl_.models_)}}, - // .viam.robot.v1.ResourceRPCSubtype subtype = 1 [json_name = "subtype"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(HandlerDefinition, _impl_.subtype_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.robot.v1.ResourceRPCSubtype subtype = 1 [json_name = "subtype"]; - {PROTOBUF_FIELD_OFFSET(HandlerDefinition, _impl_.subtype_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated string models = 2 [json_name = "models"]; - {PROTOBUF_FIELD_OFFSET(HandlerDefinition, _impl_.models_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::robot::v1::ResourceRPCSubtype>()}, - }}, {{ - "\40\0\6\0\0\0\0\0" - "viam.module.v1.HandlerDefinition" - "models" - }}, -}; - -::uint8_t* HandlerDefinition::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* HandlerDefinition::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.module.v1.HandlerDefinition) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.robot.v1.ResourceRPCSubtype subtype = 1 [json_name = "subtype"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::subtype(this), + if (this->_internal_has_subtype()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::subtype(this), _Internal::subtype(this).GetCachedSize(), target, stream); } // repeated string models = 2 [json_name = "models"]; - for (int i = 0, n = this->_internal_models_size(); i < n; ++i) { - const auto& s = this->_internal_models().Get(i); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.module.v1.HandlerDefinition.models"); + for (int i = 0, n = this->_internal_models_size(); i < n; i++) { + const auto& s = this->_internal_models(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.module.v1.HandlerDefinition.models"); target = stream->WriteString(2, s, target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.module.v1.HandlerDefinition) return target; } -::size_t HandlerDefinition::ByteSizeLong() const { +size_t HandlerDefinition::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.module.v1.HandlerDefinition) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated string models = 2 [json_name = "models"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_models().size()); - for (int i = 0, n = _internal_models().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - _internal_models().Get(i)); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(models_.size()); + for (int i = 0, n = models_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + models_.Get(i)); } + // .viam.robot.v1.ResourceRPCSubtype subtype = 1 [json_name = "subtype"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.subtype_); + if (this->_internal_has_subtype()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *subtype_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData HandlerDefinition::_class_data_ = { - HandlerDefinition::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData HandlerDefinition::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + HandlerDefinition::MergeImpl }; -const ::google::protobuf::Message::ClassData* HandlerDefinition::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*HandlerDefinition::GetClassData() const { return &_class_data_; } + +void HandlerDefinition::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void HandlerDefinition::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.module.v1.HandlerDefinition) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void HandlerDefinition::MergeFrom(const HandlerDefinition& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.module.v1.HandlerDefinition) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_models()->MergeFrom(from._internal_models()); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_subtype()->::viam::robot::v1::ResourceRPCSubtype::MergeFrom( - from._internal_subtype()); + models_.MergeFrom(from.models_); + if (from._internal_has_subtype()) { + _internal_mutable_subtype()->::viam::robot::v1::ResourceRPCSubtype::MergeFrom(from._internal_subtype()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void HandlerDefinition::CopyFrom(const HandlerDefinition& from) { @@ -1489,182 +1347,176 @@ void HandlerDefinition::CopyFrom(const HandlerDefinition& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool HandlerDefinition::IsInitialized() const { +bool HandlerDefinition::IsInitialized() const { return true; } -::_pbi::CachedSize* HandlerDefinition::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void HandlerDefinition::InternalSwap(HandlerDefinition* PROTOBUF_RESTRICT other) { +void HandlerDefinition::InternalSwap(HandlerDefinition* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.models_.InternalSwap(&other->_impl_.models_); - swap(_impl_.subtype_, other->_impl_.subtype_); + models_.InternalSwap(&other->models_); + swap(subtype_, other->subtype_); } -::google::protobuf::Metadata HandlerDefinition::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata HandlerDefinition::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_module_2fv1_2fmodule_2eproto_getter, &descriptor_table_module_2fv1_2fmodule_2eproto_once, file_level_metadata_module_2fv1_2fmodule_2eproto[6]); } + // =================================================================== class HandlerMap::_Internal { public: }; -HandlerMap::HandlerMap(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +HandlerMap::HandlerMap(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + handlers_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.module.v1.HandlerMap) } -inline PROTOBUF_NDEBUG_INLINE HandlerMap::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : handlers_{visibility, arena, from.handlers_}, - _cached_size_{0} {} - -HandlerMap::HandlerMap( - ::google::protobuf::Arena* arena, - const HandlerMap& from) - : ::google::protobuf::Message(arena) { - HandlerMap* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +HandlerMap::HandlerMap(const HandlerMap& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + handlers_(from.handlers_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.module.v1.HandlerMap) } -inline PROTOBUF_NDEBUG_INLINE HandlerMap::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : handlers_{visibility, arena}, - _cached_size_{0} {} -inline void HandlerMap::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void HandlerMap::SharedCtor() { } + HandlerMap::~HandlerMap() { // @@protoc_insertion_point(destructor:viam.module.v1.HandlerMap) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void HandlerMap::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void HandlerMap::Clear() { +void HandlerMap::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void HandlerMap::Clear() { // @@protoc_insertion_point(message_clear_start:viam.module.v1.HandlerMap) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.handlers_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* HandlerMap::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + handlers_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* HandlerMap::_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) { + // repeated .viam.module.v1.HandlerDefinition handlers = 1 [json_name = "handlers"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_handlers(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> HandlerMap::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_HandlerMap_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.module.v1.HandlerDefinition handlers = 1 [json_name = "handlers"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(HandlerMap, _impl_.handlers_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.module.v1.HandlerDefinition handlers = 1 [json_name = "handlers"]; - {PROTOBUF_FIELD_OFFSET(HandlerMap, _impl_.handlers_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::module::v1::HandlerDefinition>()}, - }}, {{ - }}, -}; - -::uint8_t* HandlerMap::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* HandlerMap::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.module.v1.HandlerMap) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .viam.module.v1.HandlerDefinition handlers = 1 [json_name = "handlers"]; for (unsigned i = 0, n = static_cast(this->_internal_handlers_size()); i < n; i++) { - const auto& repfield = this->_internal_handlers().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_handlers(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.module.v1.HandlerMap) return target; } -::size_t HandlerMap::ByteSizeLong() const { +size_t HandlerMap::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.module.v1.HandlerMap) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.module.v1.HandlerDefinition handlers = 1 [json_name = "handlers"]; total_size += 1UL * this->_internal_handlers_size(); - for (const auto& msg : this->_internal_handlers()) { + for (const auto& msg : this->handlers_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData HandlerMap::_class_data_ = { - HandlerMap::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData HandlerMap::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + HandlerMap::MergeImpl }; -const ::google::protobuf::Message::ClassData* HandlerMap::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*HandlerMap::GetClassData() const { return &_class_data_; } + +void HandlerMap::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void HandlerMap::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.module.v1.HandlerMap) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void HandlerMap::MergeFrom(const HandlerMap& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.module.v1.HandlerMap) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_handlers()->MergeFrom( - from._internal_handlers()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + handlers_.MergeFrom(from.handlers_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void HandlerMap::CopyFrom(const HandlerMap& from) { @@ -1674,213 +1526,231 @@ void HandlerMap::CopyFrom(const HandlerMap& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool HandlerMap::IsInitialized() const { +bool HandlerMap::IsInitialized() const { return true; } -::_pbi::CachedSize* HandlerMap::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void HandlerMap::InternalSwap(HandlerMap* PROTOBUF_RESTRICT other) { +void HandlerMap::InternalSwap(HandlerMap* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.handlers_.InternalSwap(&other->_impl_.handlers_); + handlers_.InternalSwap(&other->handlers_); } -::google::protobuf::Metadata HandlerMap::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata HandlerMap::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_module_2fv1_2fmodule_2eproto_getter, &descriptor_table_module_2fv1_2fmodule_2eproto_once, file_level_metadata_module_2fv1_2fmodule_2eproto[7]); } + // =================================================================== class ReadyRequest::_Internal { public: }; -ReadyRequest::ReadyRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ReadyRequest::ReadyRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.module.v1.ReadyRequest) } -inline PROTOBUF_NDEBUG_INLINE ReadyRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : parent_address_(arena, from.parent_address_), - webrtc_offer_(arena, from.webrtc_offer_), - _cached_size_{0} {} - -ReadyRequest::ReadyRequest( - ::google::protobuf::Arena* arena, - const ReadyRequest& from) - : ::google::protobuf::Message(arena) { - ReadyRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +ReadyRequest::ReadyRequest(const ReadyRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + parent_address_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + parent_address_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_parent_address().empty()) { + parent_address_.Set(from._internal_parent_address(), + GetArenaForAllocation()); + } + webrtc_offer_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + webrtc_offer_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_webrtc_offer().empty()) { + webrtc_offer_.Set(from._internal_webrtc_offer(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.module.v1.ReadyRequest) } -inline PROTOBUF_NDEBUG_INLINE ReadyRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : parent_address_(arena), - webrtc_offer_(arena), - _cached_size_{0} {} -inline void ReadyRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void ReadyRequest::SharedCtor() { +parent_address_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + parent_address_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +webrtc_offer_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + webrtc_offer_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + ReadyRequest::~ReadyRequest() { // @@protoc_insertion_point(destructor:viam.module.v1.ReadyRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ReadyRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.parent_address_.Destroy(); - _impl_.webrtc_offer_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + parent_address_.Destroy(); + webrtc_offer_.Destroy(); } -PROTOBUF_NOINLINE void ReadyRequest::Clear() { +void ReadyRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ReadyRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.module.v1.ReadyRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.parent_address_.ClearToEmpty(); - _impl_.webrtc_offer_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ReadyRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + parent_address_.ClearToEmpty(); + webrtc_offer_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ReadyRequest::_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 parent_address = 1 [json_name = "parentAddress"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_parent_address(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.module.v1.ReadyRequest.parent_address")); + } else + goto handle_unusual; + continue; + // string webrtc_offer = 2 [json_name = "webrtcOffer"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_webrtc_offer(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.module.v1.ReadyRequest.webrtc_offer")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 62, 2> ReadyRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_ReadyRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string webrtc_offer = 2 [json_name = "webrtcOffer"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(ReadyRequest, _impl_.webrtc_offer_)}}, - // string parent_address = 1 [json_name = "parentAddress"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ReadyRequest, _impl_.parent_address_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string parent_address = 1 [json_name = "parentAddress"]; - {PROTOBUF_FIELD_OFFSET(ReadyRequest, _impl_.parent_address_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string webrtc_offer = 2 [json_name = "webrtcOffer"]; - {PROTOBUF_FIELD_OFFSET(ReadyRequest, _impl_.webrtc_offer_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\33\16\14\0\0\0\0\0" - "viam.module.v1.ReadyRequest" - "parent_address" - "webrtc_offer" - }}, -}; - -::uint8_t* ReadyRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ReadyRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.module.v1.ReadyRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string parent_address = 1 [json_name = "parentAddress"]; if (!this->_internal_parent_address().empty()) { - const std::string& _s = this->_internal_parent_address(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.module.v1.ReadyRequest.parent_address"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_parent_address().data(), static_cast(this->_internal_parent_address().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.module.v1.ReadyRequest.parent_address"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_parent_address(), target); } // string webrtc_offer = 2 [json_name = "webrtcOffer"]; if (!this->_internal_webrtc_offer().empty()) { - const std::string& _s = this->_internal_webrtc_offer(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.module.v1.ReadyRequest.webrtc_offer"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_webrtc_offer().data(), static_cast(this->_internal_webrtc_offer().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.module.v1.ReadyRequest.webrtc_offer"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_webrtc_offer(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.module.v1.ReadyRequest) return target; } -::size_t ReadyRequest::ByteSizeLong() const { +size_t ReadyRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.module.v1.ReadyRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string parent_address = 1 [json_name = "parentAddress"]; if (!this->_internal_parent_address().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_parent_address()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_parent_address()); } // string webrtc_offer = 2 [json_name = "webrtcOffer"]; if (!this->_internal_webrtc_offer().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_webrtc_offer()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_webrtc_offer()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ReadyRequest::_class_data_ = { - ReadyRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ReadyRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ReadyRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* ReadyRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ReadyRequest::GetClassData() const { return &_class_data_; } + +void ReadyRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ReadyRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.module.v1.ReadyRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ReadyRequest::MergeFrom(const ReadyRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.module.v1.ReadyRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_parent_address().empty()) { - _this->_internal_set_parent_address(from._internal_parent_address()); + _internal_set_parent_address(from._internal_parent_address()); } if (!from._internal_webrtc_offer().empty()) { - _this->_internal_set_webrtc_offer(from._internal_webrtc_offer()); + _internal_set_webrtc_offer(from._internal_webrtc_offer()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ReadyRequest::CopyFrom(const ReadyRequest& from) { @@ -1890,265 +1760,264 @@ void ReadyRequest::CopyFrom(const ReadyRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ReadyRequest::IsInitialized() const { +bool ReadyRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* ReadyRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ReadyRequest::InternalSwap(ReadyRequest* PROTOBUF_RESTRICT other) { +void ReadyRequest::InternalSwap(ReadyRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.parent_address_, &other->_impl_.parent_address_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.webrtc_offer_, &other->_impl_.webrtc_offer_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &parent_address_, lhs_arena, + &other->parent_address_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &webrtc_offer_, lhs_arena, + &other->webrtc_offer_, rhs_arena + ); } -::google::protobuf::Metadata ReadyRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ReadyRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_module_2fv1_2fmodule_2eproto_getter, &descriptor_table_module_2fv1_2fmodule_2eproto_once, file_level_metadata_module_2fv1_2fmodule_2eproto[8]); } + // =================================================================== class ReadyResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ReadyResponse, _impl_._has_bits_); static const ::viam::module::v1::HandlerMap& handlermap(const ReadyResponse* msg); - static void set_has_handlermap(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::module::v1::HandlerMap& ReadyResponse::_Internal::handlermap(const ReadyResponse* msg) { - return *msg->_impl_.handlermap_; +const ::viam::module::v1::HandlerMap& +ReadyResponse::_Internal::handlermap(const ReadyResponse* msg) { + return *msg->handlermap_; } -ReadyResponse::ReadyResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ReadyResponse::ReadyResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.module.v1.ReadyResponse) } -inline PROTOBUF_NDEBUG_INLINE ReadyResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - webrtc_answer_(arena, from.webrtc_answer_) {} - -ReadyResponse::ReadyResponse( - ::google::protobuf::Arena* arena, - const ReadyResponse& from) - : ::google::protobuf::Message(arena) { - ReadyResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.handlermap_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::module::v1::HandlerMap>(arena, *from._impl_.handlermap_) - : nullptr; - _impl_.ready_ = from._impl_.ready_; - +ReadyResponse::ReadyResponse(const ReadyResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + webrtc_answer_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + webrtc_answer_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_webrtc_answer().empty()) { + webrtc_answer_.Set(from._internal_webrtc_answer(), + GetArenaForAllocation()); + } + if (from._internal_has_handlermap()) { + handlermap_ = new ::viam::module::v1::HandlerMap(*from.handlermap_); + } else { + handlermap_ = nullptr; + } + ready_ = from.ready_; // @@protoc_insertion_point(copy_constructor:viam.module.v1.ReadyResponse) } -inline PROTOBUF_NDEBUG_INLINE ReadyResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - webrtc_answer_(arena) {} - -inline void ReadyResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, handlermap_), - 0, - offsetof(Impl_, ready_) - - offsetof(Impl_, handlermap_) + - sizeof(Impl_::ready_)); + +inline void ReadyResponse::SharedCtor() { +webrtc_answer_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + webrtc_answer_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&handlermap_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&ready_) - + reinterpret_cast(&handlermap_)) + sizeof(ready_)); } + ReadyResponse::~ReadyResponse() { // @@protoc_insertion_point(destructor:viam.module.v1.ReadyResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ReadyResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.webrtc_answer_.Destroy(); - delete _impl_.handlermap_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + webrtc_answer_.Destroy(); + if (this != internal_default_instance()) delete handlermap_; +} + +void ReadyResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void ReadyResponse::Clear() { +void ReadyResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.module.v1.ReadyResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.webrtc_answer_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.handlermap_ != nullptr); - _impl_.handlermap_->Clear(); + webrtc_answer_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && handlermap_ != nullptr) { + delete handlermap_; } - _impl_.ready_ = false; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ReadyResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + handlermap_ = nullptr; + ready_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ReadyResponse::_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) { + // bool ready = 1 [json_name = "ready"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + ready_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.module.v1.HandlerMap handlermap = 2 [json_name = "handlermap"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_handlermap(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string webrtc_answer = 3 [json_name = "webrtcAnswer"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_webrtc_answer(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.module.v1.ReadyResponse.webrtc_answer")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 1, 50, 2> ReadyResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ReadyResponse, _impl_._has_bits_), - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ReadyResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // bool ready = 1 [json_name = "ready"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(ReadyResponse, _impl_.ready_)}}, - // .viam.module.v1.HandlerMap handlermap = 2 [json_name = "handlermap"]; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(ReadyResponse, _impl_.handlermap_)}}, - // string webrtc_answer = 3 [json_name = "webrtcAnswer"]; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(ReadyResponse, _impl_.webrtc_answer_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bool ready = 1 [json_name = "ready"]; - {PROTOBUF_FIELD_OFFSET(ReadyResponse, _impl_.ready_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // .viam.module.v1.HandlerMap handlermap = 2 [json_name = "handlermap"]; - {PROTOBUF_FIELD_OFFSET(ReadyResponse, _impl_.handlermap_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // string webrtc_answer = 3 [json_name = "webrtcAnswer"]; - {PROTOBUF_FIELD_OFFSET(ReadyResponse, _impl_.webrtc_answer_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::module::v1::HandlerMap>()}, - }}, {{ - "\34\0\0\15\0\0\0\0" - "viam.module.v1.ReadyResponse" - "webrtc_answer" - }}, -}; - -::uint8_t* ReadyResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ReadyResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.module.v1.ReadyResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // bool ready = 1 [json_name = "ready"]; if (this->_internal_ready() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 1, this->_internal_ready(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_ready(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .viam.module.v1.HandlerMap handlermap = 2 [json_name = "handlermap"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::handlermap(this), + if (this->_internal_has_handlermap()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::handlermap(this), _Internal::handlermap(this).GetCachedSize(), target, stream); } // string webrtc_answer = 3 [json_name = "webrtcAnswer"]; if (!this->_internal_webrtc_answer().empty()) { - const std::string& _s = this->_internal_webrtc_answer(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.module.v1.ReadyResponse.webrtc_answer"); - target = stream->WriteStringMaybeAliased(3, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_webrtc_answer().data(), static_cast(this->_internal_webrtc_answer().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.module.v1.ReadyResponse.webrtc_answer"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_webrtc_answer(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.module.v1.ReadyResponse) return target; } -::size_t ReadyResponse::ByteSizeLong() const { +size_t ReadyResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.module.v1.ReadyResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string webrtc_answer = 3 [json_name = "webrtcAnswer"]; if (!this->_internal_webrtc_answer().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_webrtc_answer()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_webrtc_answer()); } // .viam.module.v1.HandlerMap handlermap = 2 [json_name = "handlermap"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.handlermap_); + if (this->_internal_has_handlermap()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *handlermap_); } // bool ready = 1 [json_name = "ready"]; if (this->_internal_ready() != 0) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ReadyResponse::_class_data_ = { - ReadyResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ReadyResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ReadyResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* ReadyResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ReadyResponse::GetClassData() const { return &_class_data_; } + +void ReadyResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ReadyResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.module.v1.ReadyResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ReadyResponse::MergeFrom(const ReadyResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.module.v1.ReadyResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_webrtc_answer().empty()) { - _this->_internal_set_webrtc_answer(from._internal_webrtc_answer()); + _internal_set_webrtc_answer(from._internal_webrtc_answer()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_handlermap()->::viam::module::v1::HandlerMap::MergeFrom( - from._internal_handlermap()); + if (from._internal_has_handlermap()) { + _internal_mutable_handlermap()->::viam::module::v1::HandlerMap::MergeFrom(from._internal_handlermap()); } if (from._internal_ready() != 0) { - _this->_internal_set_ready(from._internal_ready()); + _internal_set_ready(from._internal_ready()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ReadyResponse::CopyFrom(const ReadyResponse& from) { @@ -2158,217 +2027,201 @@ void ReadyResponse::CopyFrom(const ReadyResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ReadyResponse::IsInitialized() const { +bool ReadyResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* ReadyResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ReadyResponse::InternalSwap(ReadyResponse* PROTOBUF_RESTRICT other) { +void ReadyResponse::InternalSwap(ReadyResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.webrtc_answer_, &other->_impl_.webrtc_answer_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(ReadyResponse, _impl_.ready_) - + sizeof(ReadyResponse::_impl_.ready_) - - PROTOBUF_FIELD_OFFSET(ReadyResponse, _impl_.handlermap_)>( - reinterpret_cast(&_impl_.handlermap_), - reinterpret_cast(&other->_impl_.handlermap_)); -} - -::google::protobuf::Metadata ReadyResponse::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &webrtc_answer_, lhs_arena, + &other->webrtc_answer_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(ReadyResponse, ready_) + + sizeof(ReadyResponse::ready_) + - PROTOBUF_FIELD_OFFSET(ReadyResponse, handlermap_)>( + reinterpret_cast(&handlermap_), + reinterpret_cast(&other->handlermap_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ReadyResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_module_2fv1_2fmodule_2eproto_getter, &descriptor_table_module_2fv1_2fmodule_2eproto_once, file_level_metadata_module_2fv1_2fmodule_2eproto[9]); } + // =================================================================== class ValidateConfigRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ValidateConfigRequest, _impl_._has_bits_); static const ::viam::app::v1::ComponentConfig& config(const ValidateConfigRequest* msg); - static void set_has_config(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::app::v1::ComponentConfig& ValidateConfigRequest::_Internal::config(const ValidateConfigRequest* msg) { - return *msg->_impl_.config_; +const ::viam::app::v1::ComponentConfig& +ValidateConfigRequest::_Internal::config(const ValidateConfigRequest* msg) { + return *msg->config_; } void ValidateConfigRequest::clear_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.config_ != nullptr) _impl_.config_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && config_ != nullptr) { + delete config_; + } + config_ = nullptr; } -ValidateConfigRequest::ValidateConfigRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ValidateConfigRequest::ValidateConfigRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.module.v1.ValidateConfigRequest) } -inline PROTOBUF_NDEBUG_INLINE ValidateConfigRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -ValidateConfigRequest::ValidateConfigRequest( - ::google::protobuf::Arena* arena, - const ValidateConfigRequest& from) - : ::google::protobuf::Message(arena) { - ValidateConfigRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.config_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::app::v1::ComponentConfig>(arena, *from._impl_.config_) - : nullptr; - +ValidateConfigRequest::ValidateConfigRequest(const ValidateConfigRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_config()) { + config_ = new ::viam::app::v1::ComponentConfig(*from.config_); + } else { + config_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.module.v1.ValidateConfigRequest) } -inline PROTOBUF_NDEBUG_INLINE ValidateConfigRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void ValidateConfigRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.config_ = {}; +inline void ValidateConfigRequest::SharedCtor() { +config_ = nullptr; } + ValidateConfigRequest::~ValidateConfigRequest() { // @@protoc_insertion_point(destructor:viam.module.v1.ValidateConfigRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ValidateConfigRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.config_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete config_; } -PROTOBUF_NOINLINE void ValidateConfigRequest::Clear() { +void ValidateConfigRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ValidateConfigRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.module.v1.ValidateConfigRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.config_ != nullptr); - _impl_.config_->Clear(); + if (GetArenaForAllocation() == nullptr && config_ != nullptr) { + delete config_; } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ValidateConfigRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + config_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ValidateConfigRequest::_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.app.v1.ComponentConfig config = 1 [json_name = "config"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_config(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ValidateConfigRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ValidateConfigRequest, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ValidateConfigRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.app.v1.ComponentConfig config = 1 [json_name = "config"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(ValidateConfigRequest, _impl_.config_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.app.v1.ComponentConfig config = 1 [json_name = "config"]; - {PROTOBUF_FIELD_OFFSET(ValidateConfigRequest, _impl_.config_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::app::v1::ComponentConfig>()}, - }}, {{ - }}, -}; - -::uint8_t* ValidateConfigRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ValidateConfigRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.module.v1.ValidateConfigRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.app.v1.ComponentConfig config = 1 [json_name = "config"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::config(this), + if (this->_internal_has_config()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::config(this), _Internal::config(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.module.v1.ValidateConfigRequest) return target; } -::size_t ValidateConfigRequest::ByteSizeLong() const { +size_t ValidateConfigRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.module.v1.ValidateConfigRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .viam.app.v1.ComponentConfig config = 1 [json_name = "config"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.config_); + if (this->_internal_has_config()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *config_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ValidateConfigRequest::_class_data_ = { - ValidateConfigRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ValidateConfigRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ValidateConfigRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* ValidateConfigRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ValidateConfigRequest::GetClassData() const { return &_class_data_; } + +void ValidateConfigRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ValidateConfigRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.module.v1.ValidateConfigRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ValidateConfigRequest::MergeFrom(const ValidateConfigRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.module.v1.ValidateConfigRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_config()->::viam::app::v1::ComponentConfig::MergeFrom( - from._internal_config()); + if (from._internal_has_config()) { + _internal_mutable_config()->::viam::app::v1::ComponentConfig::MergeFrom(from._internal_config()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ValidateConfigRequest::CopyFrom(const ValidateConfigRequest& from) { @@ -2378,183 +2231,180 @@ void ValidateConfigRequest::CopyFrom(const ValidateConfigRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ValidateConfigRequest::IsInitialized() const { +bool ValidateConfigRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* ValidateConfigRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ValidateConfigRequest::InternalSwap(ValidateConfigRequest* PROTOBUF_RESTRICT other) { +void ValidateConfigRequest::InternalSwap(ValidateConfigRequest* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.config_, other->_impl_.config_); + swap(config_, other->config_); } -::google::protobuf::Metadata ValidateConfigRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ValidateConfigRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_module_2fv1_2fmodule_2eproto_getter, &descriptor_table_module_2fv1_2fmodule_2eproto_once, file_level_metadata_module_2fv1_2fmodule_2eproto[10]); } + // =================================================================== class ValidateConfigResponse::_Internal { public: }; -ValidateConfigResponse::ValidateConfigResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ValidateConfigResponse::ValidateConfigResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + dependencies_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.module.v1.ValidateConfigResponse) } -inline PROTOBUF_NDEBUG_INLINE ValidateConfigResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : dependencies_{visibility, arena, from.dependencies_}, - _cached_size_{0} {} - -ValidateConfigResponse::ValidateConfigResponse( - ::google::protobuf::Arena* arena, - const ValidateConfigResponse& from) - : ::google::protobuf::Message(arena) { - ValidateConfigResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +ValidateConfigResponse::ValidateConfigResponse(const ValidateConfigResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + dependencies_(from.dependencies_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.module.v1.ValidateConfigResponse) } -inline PROTOBUF_NDEBUG_INLINE ValidateConfigResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : dependencies_{visibility, arena}, - _cached_size_{0} {} -inline void ValidateConfigResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void ValidateConfigResponse::SharedCtor() { } + ValidateConfigResponse::~ValidateConfigResponse() { // @@protoc_insertion_point(destructor:viam.module.v1.ValidateConfigResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ValidateConfigResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void ValidateConfigResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void ValidateConfigResponse::Clear() { +void ValidateConfigResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.module.v1.ValidateConfigResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.dependencies_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ValidateConfigResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + dependencies_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ValidateConfigResponse::_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) { + // repeated string dependencies = 1 [json_name = "dependencies"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_dependencies(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.module.v1.ValidateConfigResponse.dependencies")); + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 58, 2> ValidateConfigResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_ValidateConfigResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated string dependencies = 1 [json_name = "dependencies"]; - {::_pbi::TcParser::FastUR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ValidateConfigResponse, _impl_.dependencies_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated string dependencies = 1 [json_name = "dependencies"]; - {PROTOBUF_FIELD_OFFSET(ValidateConfigResponse, _impl_.dependencies_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - }}, - // no aux_entries - {{ - "\45\14\0\0\0\0\0\0" - "viam.module.v1.ValidateConfigResponse" - "dependencies" - }}, -}; - -::uint8_t* ValidateConfigResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ValidateConfigResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.module.v1.ValidateConfigResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated string dependencies = 1 [json_name = "dependencies"]; - for (int i = 0, n = this->_internal_dependencies_size(); i < n; ++i) { - const auto& s = this->_internal_dependencies().Get(i); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.module.v1.ValidateConfigResponse.dependencies"); + for (int i = 0, n = this->_internal_dependencies_size(); i < n; i++) { + const auto& s = this->_internal_dependencies(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.module.v1.ValidateConfigResponse.dependencies"); target = stream->WriteString(1, s, target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.module.v1.ValidateConfigResponse) return target; } -::size_t ValidateConfigResponse::ByteSizeLong() const { +size_t ValidateConfigResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.module.v1.ValidateConfigResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated string dependencies = 1 [json_name = "dependencies"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_dependencies().size()); - for (int i = 0, n = _internal_dependencies().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - _internal_dependencies().Get(i)); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(dependencies_.size()); + for (int i = 0, n = dependencies_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + dependencies_.Get(i)); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ValidateConfigResponse::_class_data_ = { - ValidateConfigResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ValidateConfigResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ValidateConfigResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* ValidateConfigResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ValidateConfigResponse::GetClassData() const { return &_class_data_; } + +void ValidateConfigResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ValidateConfigResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.module.v1.ValidateConfigResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ValidateConfigResponse::MergeFrom(const ValidateConfigResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.module.v1.ValidateConfigResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_dependencies()->MergeFrom(from._internal_dependencies()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + dependencies_.MergeFrom(from.dependencies_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ValidateConfigResponse::CopyFrom(const ValidateConfigResponse& from) { @@ -2564,31 +2414,76 @@ void ValidateConfigResponse::CopyFrom(const ValidateConfigResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ValidateConfigResponse::IsInitialized() const { +bool ValidateConfigResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* ValidateConfigResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ValidateConfigResponse::InternalSwap(ValidateConfigResponse* PROTOBUF_RESTRICT other) { +void ValidateConfigResponse::InternalSwap(ValidateConfigResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.dependencies_.InternalSwap(&other->_impl_.dependencies_); + dependencies_.InternalSwap(&other->dependencies_); } -::google::protobuf::Metadata ValidateConfigResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ValidateConfigResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_module_2fv1_2fmodule_2eproto_getter, &descriptor_table_module_2fv1_2fmodule_2eproto_once, file_level_metadata_module_2fv1_2fmodule_2eproto[11]); } + // @@protoc_insertion_point(namespace_scope) } // namespace v1 } // namespace module } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::module::v1::AddResourceRequest* +Arena::CreateMaybeMessage< ::viam::module::v1::AddResourceRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::module::v1::AddResourceRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::module::v1::AddResourceResponse* +Arena::CreateMaybeMessage< ::viam::module::v1::AddResourceResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::module::v1::AddResourceResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::module::v1::ReconfigureResourceRequest* +Arena::CreateMaybeMessage< ::viam::module::v1::ReconfigureResourceRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::module::v1::ReconfigureResourceRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::module::v1::ReconfigureResourceResponse* +Arena::CreateMaybeMessage< ::viam::module::v1::ReconfigureResourceResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::module::v1::ReconfigureResourceResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::module::v1::RemoveResourceRequest* +Arena::CreateMaybeMessage< ::viam::module::v1::RemoveResourceRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::module::v1::RemoveResourceRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::module::v1::RemoveResourceResponse* +Arena::CreateMaybeMessage< ::viam::module::v1::RemoveResourceResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::module::v1::RemoveResourceResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::module::v1::HandlerDefinition* +Arena::CreateMaybeMessage< ::viam::module::v1::HandlerDefinition >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::module::v1::HandlerDefinition >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::module::v1::HandlerMap* +Arena::CreateMaybeMessage< ::viam::module::v1::HandlerMap >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::module::v1::HandlerMap >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::module::v1::ReadyRequest* +Arena::CreateMaybeMessage< ::viam::module::v1::ReadyRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::module::v1::ReadyRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::module::v1::ReadyResponse* +Arena::CreateMaybeMessage< ::viam::module::v1::ReadyResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::module::v1::ReadyResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::module::v1::ValidateConfigRequest* +Arena::CreateMaybeMessage< ::viam::module::v1::ValidateConfigRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::module::v1::ValidateConfigRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::module::v1::ValidateConfigResponse* +Arena::CreateMaybeMessage< ::viam::module::v1::ValidateConfigResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::module::v1::ValidateConfigResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/module/v1/module.pb.h b/src/viam/api/module/v1/module.pb.h index 498fd227f..7ef14bb0f 100644 --- a/src/viam/api/module/v1/module.pb.h +++ b/src/viam/api/module/v1/module.pb.h @@ -1,63 +1,52 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: module/v1/module.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_module_2fv1_2fmodule_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_module_2fv1_2fmodule_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_module_2fv1_2fmodule_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_module_2fv1_2fmodule_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_bases.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/unknown_field_set.h" + +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include #include "app/v1/robot.pb.h" #include "robot/v1/robot.pb.h" // @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - +#include #define PROTOBUF_INTERNAL_EXPORT_module_2fv1_2fmodule_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_module_2fv1_2fmodule_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_module_2fv1_2fmodule_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_module_2fv1_2fmodule_2eproto; namespace viam { namespace module { namespace v1 { @@ -100,44 +89,48 @@ extern ValidateConfigResponseDefaultTypeInternal _ValidateConfigResponse_default } // namespace v1 } // namespace module } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::module::v1::AddResourceRequest* Arena::CreateMaybeMessage<::viam::module::v1::AddResourceRequest>(Arena*); +template<> ::viam::module::v1::AddResourceResponse* Arena::CreateMaybeMessage<::viam::module::v1::AddResourceResponse>(Arena*); +template<> ::viam::module::v1::HandlerDefinition* Arena::CreateMaybeMessage<::viam::module::v1::HandlerDefinition>(Arena*); +template<> ::viam::module::v1::HandlerMap* Arena::CreateMaybeMessage<::viam::module::v1::HandlerMap>(Arena*); +template<> ::viam::module::v1::ReadyRequest* Arena::CreateMaybeMessage<::viam::module::v1::ReadyRequest>(Arena*); +template<> ::viam::module::v1::ReadyResponse* Arena::CreateMaybeMessage<::viam::module::v1::ReadyResponse>(Arena*); +template<> ::viam::module::v1::ReconfigureResourceRequest* Arena::CreateMaybeMessage<::viam::module::v1::ReconfigureResourceRequest>(Arena*); +template<> ::viam::module::v1::ReconfigureResourceResponse* Arena::CreateMaybeMessage<::viam::module::v1::ReconfigureResourceResponse>(Arena*); +template<> ::viam::module::v1::RemoveResourceRequest* Arena::CreateMaybeMessage<::viam::module::v1::RemoveResourceRequest>(Arena*); +template<> ::viam::module::v1::RemoveResourceResponse* Arena::CreateMaybeMessage<::viam::module::v1::RemoveResourceResponse>(Arena*); +template<> ::viam::module::v1::ValidateConfigRequest* Arena::CreateMaybeMessage<::viam::module::v1::ValidateConfigRequest>(Arena*); +template<> ::viam::module::v1::ValidateConfigResponse* Arena::CreateMaybeMessage<::viam::module::v1::ValidateConfigResponse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace viam { namespace module { namespace v1 { // =================================================================== - -// ------------------------------------------------------------------- - -class ValidateConfigResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.module.v1.ValidateConfigResponse) */ { +class AddResourceRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.module.v1.AddResourceRequest) */ { public: - inline ValidateConfigResponse() : ValidateConfigResponse(nullptr) {} - ~ValidateConfigResponse() override; - template - explicit PROTOBUF_CONSTEXPR ValidateConfigResponse(::google::protobuf::internal::ConstantInitialized); + inline AddResourceRequest() : AddResourceRequest(nullptr) {} + ~AddResourceRequest() override; + explicit PROTOBUF_CONSTEXPR AddResourceRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ValidateConfigResponse(const ValidateConfigResponse& from) - : ValidateConfigResponse(nullptr, from) {} - ValidateConfigResponse(ValidateConfigResponse&& from) noexcept - : ValidateConfigResponse() { + AddResourceRequest(const AddResourceRequest& from); + AddResourceRequest(AddResourceRequest&& from) noexcept + : AddResourceRequest() { *this = ::std::move(from); } - inline ValidateConfigResponse& operator=(const ValidateConfigResponse& from) { + inline AddResourceRequest& operator=(const AddResourceRequest& from) { CopyFrom(from); return *this; } - inline ValidateConfigResponse& operator=(ValidateConfigResponse&& from) noexcept { + inline AddResourceRequest& operator=(AddResourceRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -147,189 +140,174 @@ class ValidateConfigResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ValidateConfigResponse& default_instance() { + static const AddResourceRequest& default_instance() { return *internal_default_instance(); } - static inline const ValidateConfigResponse* internal_default_instance() { - return reinterpret_cast( - &_ValidateConfigResponse_default_instance_); + static inline const AddResourceRequest* internal_default_instance() { + return reinterpret_cast( + &_AddResourceRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 11; + 0; - friend void swap(ValidateConfigResponse& a, ValidateConfigResponse& b) { + friend void swap(AddResourceRequest& a, AddResourceRequest& b) { a.Swap(&b); } - inline void Swap(ValidateConfigResponse* other) { + inline void Swap(AddResourceRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ValidateConfigResponse* other) { + void UnsafeArenaSwap(AddResourceRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ValidateConfigResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ValidateConfigResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ValidateConfigResponse& from) { - ValidateConfigResponse::MergeImpl(*this, from); + AddResourceRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const AddResourceRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const AddResourceRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ValidateConfigResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(AddResourceRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.module.v1.ValidateConfigResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.module.v1.AddResourceRequest"; } protected: - explicit ValidateConfigResponse(::google::protobuf::Arena* arena); - ValidateConfigResponse(::google::protobuf::Arena* arena, const ValidateConfigResponse& from); + explicit AddResourceRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kDependenciesFieldNumber = 1, + kDependenciesFieldNumber = 2, + kConfigFieldNumber = 1, }; - // repeated string dependencies = 1 [json_name = "dependencies"]; + // repeated string dependencies = 2 [json_name = "dependencies"]; int dependencies_size() const; private: int _internal_dependencies_size() const; - public: - void clear_dependencies() ; + void clear_dependencies(); const std::string& dependencies(int index) const; std::string* mutable_dependencies(int index); void set_dependencies(int index, const std::string& value); void set_dependencies(int index, std::string&& value); void set_dependencies(int index, const char* value); - void set_dependencies(int index, const char* value, std::size_t size); - void set_dependencies(int index, absl::string_view value); + void set_dependencies(int index, const char* value, size_t size); std::string* add_dependencies(); void add_dependencies(const std::string& value); void add_dependencies(std::string&& value); void add_dependencies(const char* value); - void add_dependencies(const char* value, std::size_t size); - void add_dependencies(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& dependencies() const; - ::google::protobuf::RepeatedPtrField* mutable_dependencies(); - + void add_dependencies(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& dependencies() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_dependencies(); private: - const ::google::protobuf::RepeatedPtrField& _internal_dependencies() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_dependencies(); + const std::string& _internal_dependencies(int index) const; + std::string* _internal_add_dependencies(); + public: + // .viam.app.v1.ComponentConfig config = 1 [json_name = "config"]; + bool has_config() const; + private: + bool _internal_has_config() const; public: - // @@protoc_insertion_point(class_scope:viam.module.v1.ValidateConfigResponse) + void clear_config(); + const ::viam::app::v1::ComponentConfig& config() const; + PROTOBUF_NODISCARD ::viam::app::v1::ComponentConfig* release_config(); + ::viam::app::v1::ComponentConfig* mutable_config(); + void set_allocated_config(::viam::app::v1::ComponentConfig* config); + private: + const ::viam::app::v1::ComponentConfig& _internal_config() const; + ::viam::app::v1::ComponentConfig* _internal_mutable_config(); + public: + void unsafe_arena_set_allocated_config( + ::viam::app::v1::ComponentConfig* config); + ::viam::app::v1::ComponentConfig* unsafe_arena_release_config(); + + // @@protoc_insertion_point(class_scope:viam.module.v1.AddResourceRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 58, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField dependencies_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField dependencies_; + ::viam::app::v1::ComponentConfig* config_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_module_2fv1_2fmodule_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class RemoveResourceResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.module.v1.RemoveResourceResponse) */ { +class AddResourceResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.module.v1.AddResourceResponse) */ { public: - inline RemoveResourceResponse() : RemoveResourceResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR RemoveResourceResponse(::google::protobuf::internal::ConstantInitialized); + inline AddResourceResponse() : AddResourceResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR AddResourceResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline RemoveResourceResponse(const RemoveResourceResponse& from) - : RemoveResourceResponse(nullptr, from) {} - RemoveResourceResponse(RemoveResourceResponse&& from) noexcept - : RemoveResourceResponse() { + AddResourceResponse(const AddResourceResponse& from); + AddResourceResponse(AddResourceResponse&& from) noexcept + : AddResourceResponse() { *this = ::std::move(from); } - inline RemoveResourceResponse& operator=(const RemoveResourceResponse& from) { + inline AddResourceResponse& operator=(const AddResourceResponse& from) { CopyFrom(from); return *this; } - inline RemoveResourceResponse& operator=(RemoveResourceResponse&& from) noexcept { + inline AddResourceResponse& operator=(AddResourceResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -339,134 +317,114 @@ class RemoveResourceResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const RemoveResourceResponse& default_instance() { + static const AddResourceResponse& default_instance() { return *internal_default_instance(); } - static inline const RemoveResourceResponse* internal_default_instance() { - return reinterpret_cast( - &_RemoveResourceResponse_default_instance_); + static inline const AddResourceResponse* internal_default_instance() { + return reinterpret_cast( + &_AddResourceResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 5; + 1; - friend void swap(RemoveResourceResponse& a, RemoveResourceResponse& b) { + friend void swap(AddResourceResponse& a, AddResourceResponse& b) { a.Swap(&b); } - inline void Swap(RemoveResourceResponse* other) { + inline void Swap(AddResourceResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RemoveResourceResponse* other) { + void UnsafeArenaSwap(AddResourceResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - RemoveResourceResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + AddResourceResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const RemoveResourceResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const AddResourceResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const RemoveResourceResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const AddResourceResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } public: private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.module.v1.RemoveResourceResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.module.v1.AddResourceResponse"; } protected: - explicit RemoveResourceResponse(::google::protobuf::Arena* arena); - RemoveResourceResponse(::google::protobuf::Arena* arena, const RemoveResourceResponse& from); + explicit AddResourceResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.module.v1.RemoveResourceResponse) + // @@protoc_insertion_point(class_scope:viam.module.v1.AddResourceResponse) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_module_2fv1_2fmodule_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class RemoveResourceRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.module.v1.RemoveResourceRequest) */ { +class ReconfigureResourceRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.module.v1.ReconfigureResourceRequest) */ { public: - inline RemoveResourceRequest() : RemoveResourceRequest(nullptr) {} - ~RemoveResourceRequest() override; - template - explicit PROTOBUF_CONSTEXPR RemoveResourceRequest(::google::protobuf::internal::ConstantInitialized); + inline ReconfigureResourceRequest() : ReconfigureResourceRequest(nullptr) {} + ~ReconfigureResourceRequest() override; + explicit PROTOBUF_CONSTEXPR ReconfigureResourceRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline RemoveResourceRequest(const RemoveResourceRequest& from) - : RemoveResourceRequest(nullptr, from) {} - RemoveResourceRequest(RemoveResourceRequest&& from) noexcept - : RemoveResourceRequest() { + ReconfigureResourceRequest(const ReconfigureResourceRequest& from); + ReconfigureResourceRequest(ReconfigureResourceRequest&& from) noexcept + : ReconfigureResourceRequest() { *this = ::std::move(from); } - inline RemoveResourceRequest& operator=(const RemoveResourceRequest& from) { + inline ReconfigureResourceRequest& operator=(const ReconfigureResourceRequest& from) { CopyFrom(from); return *this; } - inline RemoveResourceRequest& operator=(RemoveResourceRequest&& from) noexcept { + inline ReconfigureResourceRequest& operator=(ReconfigureResourceRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -476,163 +434,160 @@ class RemoveResourceRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const RemoveResourceRequest& default_instance() { + static const ReconfigureResourceRequest& default_instance() { return *internal_default_instance(); } - static inline const RemoveResourceRequest* internal_default_instance() { - return reinterpret_cast( - &_RemoveResourceRequest_default_instance_); + static inline const ReconfigureResourceRequest* internal_default_instance() { + return reinterpret_cast( + &_ReconfigureResourceRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 4; + 2; - friend void swap(RemoveResourceRequest& a, RemoveResourceRequest& b) { + friend void swap(ReconfigureResourceRequest& a, ReconfigureResourceRequest& b) { a.Swap(&b); } - inline void Swap(RemoveResourceRequest* other) { + inline void Swap(ReconfigureResourceRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RemoveResourceRequest* other) { + void UnsafeArenaSwap(ReconfigureResourceRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - RemoveResourceRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const RemoveResourceRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const RemoveResourceRequest& from) { - RemoveResourceRequest::MergeImpl(*this, from); + ReconfigureResourceRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ReconfigureResourceRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ReconfigureResourceRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(RemoveResourceRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(ReconfigureResourceRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.module.v1.RemoveResourceRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.module.v1.ReconfigureResourceRequest"; } protected: - explicit RemoveResourceRequest(::google::protobuf::Arena* arena); - RemoveResourceRequest(::google::protobuf::Arena* arena, const RemoveResourceRequest& from); + explicit ReconfigureResourceRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kNameFieldNumber = 1, + kDependenciesFieldNumber = 2, + kConfigFieldNumber = 1, }; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + // repeated string dependencies = 2 [json_name = "dependencies"]; + int dependencies_size() const; private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); + int _internal_dependencies_size() const; + public: + void clear_dependencies(); + const std::string& dependencies(int index) const; + std::string* mutable_dependencies(int index); + void set_dependencies(int index, const std::string& value); + void set_dependencies(int index, std::string&& value); + void set_dependencies(int index, const char* value); + void set_dependencies(int index, const char* value, size_t size); + std::string* add_dependencies(); + void add_dependencies(const std::string& value); + void add_dependencies(std::string&& value); + void add_dependencies(const char* value); + void add_dependencies(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& dependencies() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_dependencies(); + private: + const std::string& _internal_dependencies(int index) const; + std::string* _internal_add_dependencies(); + public: + // .viam.app.v1.ComponentConfig config = 1 [json_name = "config"]; + bool has_config() const; + private: + bool _internal_has_config() const; public: - // @@protoc_insertion_point(class_scope:viam.module.v1.RemoveResourceRequest) + void clear_config(); + const ::viam::app::v1::ComponentConfig& config() const; + PROTOBUF_NODISCARD ::viam::app::v1::ComponentConfig* release_config(); + ::viam::app::v1::ComponentConfig* mutable_config(); + void set_allocated_config(::viam::app::v1::ComponentConfig* config); + private: + const ::viam::app::v1::ComponentConfig& _internal_config() const; + ::viam::app::v1::ComponentConfig* _internal_mutable_config(); + public: + void unsafe_arena_set_allocated_config( + ::viam::app::v1::ComponentConfig* config); + ::viam::app::v1::ComponentConfig* unsafe_arena_release_config(); + + // @@protoc_insertion_point(class_scope:viam.module.v1.ReconfigureResourceRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 49, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr name_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField dependencies_; + ::viam::app::v1::ComponentConfig* config_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_module_2fv1_2fmodule_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class ReconfigureResourceResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.module.v1.ReconfigureResourceResponse) */ { + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.module.v1.ReconfigureResourceResponse) */ { public: inline ReconfigureResourceResponse() : ReconfigureResourceResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR ReconfigureResourceResponse(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR ReconfigureResourceResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ReconfigureResourceResponse(const ReconfigureResourceResponse& from) - : ReconfigureResourceResponse(nullptr, from) {} + ReconfigureResourceResponse(const ReconfigureResourceResponse& from); ReconfigureResourceResponse(ReconfigureResourceResponse&& from) noexcept : ReconfigureResourceResponse() { *this = ::std::move(from); @@ -644,9 +599,9 @@ class ReconfigureResourceResponse final : } inline ReconfigureResourceResponse& operator=(ReconfigureResourceResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -656,22 +611,13 @@ class ReconfigureResourceResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const ReconfigureResourceResponse& default_instance() { @@ -690,48 +636,51 @@ class ReconfigureResourceResponse final : inline void Swap(ReconfigureResourceResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(ReconfigureResourceResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ReconfigureResourceResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + ReconfigureResourceResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const ReconfigureResourceResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; void MergeFrom(const ReconfigureResourceResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } public: private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "viam.module.v1.ReconfigureResourceResponse"; } protected: - explicit ReconfigureResourceResponse(::google::protobuf::Arena* arena); - ReconfigureResourceResponse(::google::protobuf::Arena* arena, const ReconfigureResourceResponse& from); + explicit ReconfigureResourceResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -741,49 +690,35 @@ class ReconfigureResourceResponse final : private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_module_2fv1_2fmodule_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ReadyRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.module.v1.ReadyRequest) */ { +class RemoveResourceRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.module.v1.RemoveResourceRequest) */ { public: - inline ReadyRequest() : ReadyRequest(nullptr) {} - ~ReadyRequest() override; - template - explicit PROTOBUF_CONSTEXPR ReadyRequest(::google::protobuf::internal::ConstantInitialized); + inline RemoveResourceRequest() : RemoveResourceRequest(nullptr) {} + ~RemoveResourceRequest() override; + explicit PROTOBUF_CONSTEXPR RemoveResourceRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ReadyRequest(const ReadyRequest& from) - : ReadyRequest(nullptr, from) {} - ReadyRequest(ReadyRequest&& from) noexcept - : ReadyRequest() { + RemoveResourceRequest(const RemoveResourceRequest& from); + RemoveResourceRequest(RemoveResourceRequest&& from) noexcept + : RemoveResourceRequest() { *this = ::std::move(from); } - inline ReadyRequest& operator=(const ReadyRequest& from) { + inline RemoveResourceRequest& operator=(const RemoveResourceRequest& from) { CopyFrom(from); return *this; } - inline ReadyRequest& operator=(ReadyRequest&& from) noexcept { + inline RemoveResourceRequest& operator=(RemoveResourceRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -793,195 +728,144 @@ class ReadyRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ReadyRequest& default_instance() { + static const RemoveResourceRequest& default_instance() { return *internal_default_instance(); } - static inline const ReadyRequest* internal_default_instance() { - return reinterpret_cast( - &_ReadyRequest_default_instance_); + static inline const RemoveResourceRequest* internal_default_instance() { + return reinterpret_cast( + &_RemoveResourceRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 8; + 4; - friend void swap(ReadyRequest& a, ReadyRequest& b) { + friend void swap(RemoveResourceRequest& a, RemoveResourceRequest& b) { a.Swap(&b); } - inline void Swap(ReadyRequest* other) { + inline void Swap(RemoveResourceRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ReadyRequest* other) { + void UnsafeArenaSwap(RemoveResourceRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ReadyRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ReadyRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ReadyRequest& from) { - ReadyRequest::MergeImpl(*this, from); + RemoveResourceRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const RemoveResourceRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const RemoveResourceRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ReadyRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(RemoveResourceRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.module.v1.ReadyRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.module.v1.RemoveResourceRequest"; } protected: - explicit ReadyRequest(::google::protobuf::Arena* arena); - ReadyRequest(::google::protobuf::Arena* arena, const ReadyRequest& from); + explicit RemoveResourceRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kParentAddressFieldNumber = 1, - kWebrtcOfferFieldNumber = 2, - }; - // string parent_address = 1 [json_name = "parentAddress"]; - void clear_parent_address() ; - const std::string& parent_address() const; - template - void set_parent_address(Arg_&& arg, Args_... args); - std::string* mutable_parent_address(); - PROTOBUF_NODISCARD std::string* release_parent_address(); - void set_allocated_parent_address(std::string* value); - - private: - const std::string& _internal_parent_address() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_parent_address( - const std::string& value); - std::string* _internal_mutable_parent_address(); - - public: - // string webrtc_offer = 2 [json_name = "webrtcOffer"]; - void clear_webrtc_offer() ; - const std::string& webrtc_offer() const; - template - void set_webrtc_offer(Arg_&& arg, Args_... args); - std::string* mutable_webrtc_offer(); - PROTOBUF_NODISCARD std::string* release_webrtc_offer(); - void set_allocated_webrtc_offer(std::string* value); - - private: - const std::string& _internal_webrtc_offer() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_webrtc_offer( - const std::string& value); - std::string* _internal_mutable_webrtc_offer(); - + enum : int { + kNameFieldNumber = 1, + }; + // 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: - // @@protoc_insertion_point(class_scope:viam.module.v1.ReadyRequest) + + // @@protoc_insertion_point(class_scope:viam.module.v1.RemoveResourceRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 62, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr parent_address_; - ::google::protobuf::internal::ArenaStringPtr webrtc_offer_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_module_2fv1_2fmodule_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class AddResourceResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.module.v1.AddResourceResponse) */ { +class RemoveResourceResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.module.v1.RemoveResourceResponse) */ { public: - inline AddResourceResponse() : AddResourceResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR AddResourceResponse(::google::protobuf::internal::ConstantInitialized); + inline RemoveResourceResponse() : RemoveResourceResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR RemoveResourceResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline AddResourceResponse(const AddResourceResponse& from) - : AddResourceResponse(nullptr, from) {} - AddResourceResponse(AddResourceResponse&& from) noexcept - : AddResourceResponse() { + RemoveResourceResponse(const RemoveResourceResponse& from); + RemoveResourceResponse(RemoveResourceResponse&& from) noexcept + : RemoveResourceResponse() { *this = ::std::move(from); } - inline AddResourceResponse& operator=(const AddResourceResponse& from) { + inline RemoveResourceResponse& operator=(const RemoveResourceResponse& from) { CopyFrom(from); return *this; } - inline AddResourceResponse& operator=(AddResourceResponse&& from) noexcept { + inline RemoveResourceResponse& operator=(RemoveResourceResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -991,120 +875,100 @@ class AddResourceResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const AddResourceResponse& default_instance() { + static const RemoveResourceResponse& default_instance() { return *internal_default_instance(); } - static inline const AddResourceResponse* internal_default_instance() { - return reinterpret_cast( - &_AddResourceResponse_default_instance_); + static inline const RemoveResourceResponse* internal_default_instance() { + return reinterpret_cast( + &_RemoveResourceResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 1; + 5; - friend void swap(AddResourceResponse& a, AddResourceResponse& b) { + friend void swap(RemoveResourceResponse& a, RemoveResourceResponse& b) { a.Swap(&b); } - inline void Swap(AddResourceResponse* other) { + inline void Swap(RemoveResourceResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(AddResourceResponse* other) { + void UnsafeArenaSwap(RemoveResourceResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - AddResourceResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + RemoveResourceResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const AddResourceResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const RemoveResourceResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const AddResourceResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const RemoveResourceResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } public: private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.module.v1.AddResourceResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.module.v1.RemoveResourceResponse"; } protected: - explicit AddResourceResponse(::google::protobuf::Arena* arena); - AddResourceResponse(::google::protobuf::Arena* arena, const AddResourceResponse& from); + explicit RemoveResourceResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.module.v1.AddResourceResponse) + // @@protoc_insertion_point(class_scope:viam.module.v1.RemoveResourceResponse) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_module_2fv1_2fmodule_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class HandlerDefinition final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.module.v1.HandlerDefinition) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.module.v1.HandlerDefinition) */ { public: inline HandlerDefinition() : HandlerDefinition(nullptr) {} ~HandlerDefinition() override; - template - explicit PROTOBUF_CONSTEXPR HandlerDefinition(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR HandlerDefinition(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline HandlerDefinition(const HandlerDefinition& from) - : HandlerDefinition(nullptr, from) {} + HandlerDefinition(const HandlerDefinition& from); HandlerDefinition(HandlerDefinition&& from) noexcept : HandlerDefinition() { *this = ::std::move(from); @@ -1116,9 +980,9 @@ class HandlerDefinition final : } inline HandlerDefinition& operator=(HandlerDefinition&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1128,22 +992,13 @@ class HandlerDefinition final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const HandlerDefinition& default_instance() { @@ -1162,65 +1017,63 @@ class HandlerDefinition final : inline void Swap(HandlerDefinition* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(HandlerDefinition* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - HandlerDefinition* New(::google::protobuf::Arena* arena = nullptr) const final { + HandlerDefinition* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const HandlerDefinition& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const HandlerDefinition& from) { - HandlerDefinition::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const HandlerDefinition& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(HandlerDefinition* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "viam.module.v1.HandlerDefinition"; } protected: - explicit HandlerDefinition(::google::protobuf::Arena* arena); - HandlerDefinition(::google::protobuf::Arena* arena, const HandlerDefinition& from); + explicit HandlerDefinition(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1234,88 +1087,66 @@ class HandlerDefinition final : int models_size() const; private: int _internal_models_size() const; - public: - void clear_models() ; + void clear_models(); const std::string& models(int index) const; std::string* mutable_models(int index); void set_models(int index, const std::string& value); void set_models(int index, std::string&& value); void set_models(int index, const char* value); - void set_models(int index, const char* value, std::size_t size); - void set_models(int index, absl::string_view value); + void set_models(int index, const char* value, size_t size); std::string* add_models(); void add_models(const std::string& value); void add_models(std::string&& value); void add_models(const char* value); - void add_models(const char* value, std::size_t size); - void add_models(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& models() const; - ::google::protobuf::RepeatedPtrField* mutable_models(); - + void add_models(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& models() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_models(); private: - const ::google::protobuf::RepeatedPtrField& _internal_models() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_models(); - + const std::string& _internal_models(int index) const; + std::string* _internal_add_models(); public: + // .viam.robot.v1.ResourceRPCSubtype subtype = 1 [json_name = "subtype"]; bool has_subtype() const; - void clear_subtype() ; + private: + bool _internal_has_subtype() const; + public: + void clear_subtype(); const ::viam::robot::v1::ResourceRPCSubtype& subtype() const; PROTOBUF_NODISCARD ::viam::robot::v1::ResourceRPCSubtype* release_subtype(); ::viam::robot::v1::ResourceRPCSubtype* mutable_subtype(); - void set_allocated_subtype(::viam::robot::v1::ResourceRPCSubtype* value); - void unsafe_arena_set_allocated_subtype(::viam::robot::v1::ResourceRPCSubtype* value); - ::viam::robot::v1::ResourceRPCSubtype* unsafe_arena_release_subtype(); - + void set_allocated_subtype(::viam::robot::v1::ResourceRPCSubtype* subtype); private: const ::viam::robot::v1::ResourceRPCSubtype& _internal_subtype() const; ::viam::robot::v1::ResourceRPCSubtype* _internal_mutable_subtype(); - public: + void unsafe_arena_set_allocated_subtype( + ::viam::robot::v1::ResourceRPCSubtype* subtype); + ::viam::robot::v1::ResourceRPCSubtype* unsafe_arena_release_subtype(); + // @@protoc_insertion_point(class_scope:viam.module.v1.HandlerDefinition) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 47, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField models_; - ::viam::robot::v1::ResourceRPCSubtype* subtype_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField models_; + ::viam::robot::v1::ResourceRPCSubtype* subtype_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_module_2fv1_2fmodule_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class HandlerMap final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.module.v1.HandlerMap) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.module.v1.HandlerMap) */ { public: inline HandlerMap() : HandlerMap(nullptr) {} ~HandlerMap() override; - template - explicit PROTOBUF_CONSTEXPR HandlerMap(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR HandlerMap(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline HandlerMap(const HandlerMap& from) - : HandlerMap(nullptr, from) {} + HandlerMap(const HandlerMap& from); HandlerMap(HandlerMap&& from) noexcept : HandlerMap() { *this = ::std::move(from); @@ -1327,9 +1158,9 @@ class HandlerMap final : } inline HandlerMap& operator=(HandlerMap&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1339,22 +1170,13 @@ class HandlerMap final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const HandlerMap& default_instance() { @@ -1373,65 +1195,63 @@ class HandlerMap final : inline void Swap(HandlerMap* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(HandlerMap* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - HandlerMap* New(::google::protobuf::Arena* arena = nullptr) const final { + HandlerMap* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const HandlerMap& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const HandlerMap& from) { - HandlerMap::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const HandlerMap& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(HandlerMap* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "viam.module.v1.HandlerMap"; } protected: - explicit HandlerMap(::google::protobuf::Arena* arena); - HandlerMap(::google::protobuf::Arena* arena, const HandlerMap& from); + explicit HandlerMap(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1444,75 +1264,55 @@ class HandlerMap final : int handlers_size() const; private: int _internal_handlers_size() const; - public: - void clear_handlers() ; + void clear_handlers(); ::viam::module::v1::HandlerDefinition* mutable_handlers(int index); - ::google::protobuf::RepeatedPtrField< ::viam::module::v1::HandlerDefinition >* + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::module::v1::HandlerDefinition >* mutable_handlers(); private: - const ::google::protobuf::RepeatedPtrField<::viam::module::v1::HandlerDefinition>& _internal_handlers() const; - ::google::protobuf::RepeatedPtrField<::viam::module::v1::HandlerDefinition>* _internal_mutable_handlers(); + const ::viam::module::v1::HandlerDefinition& _internal_handlers(int index) const; + ::viam::module::v1::HandlerDefinition* _internal_add_handlers(); public: const ::viam::module::v1::HandlerDefinition& handlers(int index) const; ::viam::module::v1::HandlerDefinition* add_handlers(); - const ::google::protobuf::RepeatedPtrField< ::viam::module::v1::HandlerDefinition >& + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::module::v1::HandlerDefinition >& handlers() const; + // @@protoc_insertion_point(class_scope:viam.module.v1.HandlerMap) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::module::v1::HandlerDefinition > handlers_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::module::v1::HandlerDefinition > handlers_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_module_2fv1_2fmodule_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ReadyResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.module.v1.ReadyResponse) */ { +class ReadyRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.module.v1.ReadyRequest) */ { public: - inline ReadyResponse() : ReadyResponse(nullptr) {} - ~ReadyResponse() override; - template - explicit PROTOBUF_CONSTEXPR ReadyResponse(::google::protobuf::internal::ConstantInitialized); + inline ReadyRequest() : ReadyRequest(nullptr) {} + ~ReadyRequest() override; + explicit PROTOBUF_CONSTEXPR ReadyRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ReadyResponse(const ReadyResponse& from) - : ReadyResponse(nullptr, from) {} - ReadyResponse(ReadyResponse&& from) noexcept - : ReadyResponse() { + ReadyRequest(const ReadyRequest& from); + ReadyRequest(ReadyRequest&& from) noexcept + : ReadyRequest() { *this = ::std::move(from); } - inline ReadyResponse& operator=(const ReadyResponse& from) { + inline ReadyRequest& operator=(const ReadyRequest& from) { CopyFrom(from); return *this; } - inline ReadyResponse& operator=(ReadyResponse&& from) noexcept { + inline ReadyRequest& operator=(ReadyRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1522,208 +1322,161 @@ class ReadyResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ReadyResponse& default_instance() { + static const ReadyRequest& default_instance() { return *internal_default_instance(); } - static inline const ReadyResponse* internal_default_instance() { - return reinterpret_cast( - &_ReadyResponse_default_instance_); + static inline const ReadyRequest* internal_default_instance() { + return reinterpret_cast( + &_ReadyRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 9; + 8; - friend void swap(ReadyResponse& a, ReadyResponse& b) { + friend void swap(ReadyRequest& a, ReadyRequest& b) { a.Swap(&b); } - inline void Swap(ReadyResponse* other) { + inline void Swap(ReadyRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ReadyResponse* other) { + void UnsafeArenaSwap(ReadyRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ReadyResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ReadyResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ReadyResponse& from) { - ReadyResponse::MergeImpl(*this, from); + ReadyRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ReadyRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ReadyRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ReadyResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(ReadyRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.module.v1.ReadyResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.module.v1.ReadyRequest"; } protected: - explicit ReadyResponse(::google::protobuf::Arena* arena); - ReadyResponse(::google::protobuf::Arena* arena, const ReadyResponse& from); + explicit ReadyRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kWebrtcAnswerFieldNumber = 3, - kHandlermapFieldNumber = 2, - kReadyFieldNumber = 1, + kParentAddressFieldNumber = 1, + kWebrtcOfferFieldNumber = 2, }; - // string webrtc_answer = 3 [json_name = "webrtcAnswer"]; - void clear_webrtc_answer() ; - const std::string& webrtc_answer() const; - template - void set_webrtc_answer(Arg_&& arg, Args_... args); - std::string* mutable_webrtc_answer(); - PROTOBUF_NODISCARD std::string* release_webrtc_answer(); - void set_allocated_webrtc_answer(std::string* value); - + // string parent_address = 1 [json_name = "parentAddress"]; + void clear_parent_address(); + const std::string& parent_address() const; + template + void set_parent_address(ArgT0&& arg0, ArgT... args); + std::string* mutable_parent_address(); + PROTOBUF_NODISCARD std::string* release_parent_address(); + void set_allocated_parent_address(std::string* parent_address); private: - const std::string& _internal_webrtc_answer() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_webrtc_answer( - const std::string& value); - std::string* _internal_mutable_webrtc_answer(); - + const std::string& _internal_parent_address() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_parent_address(const std::string& value); + std::string* _internal_mutable_parent_address(); public: - // .viam.module.v1.HandlerMap handlermap = 2 [json_name = "handlermap"]; - bool has_handlermap() const; - void clear_handlermap() ; - const ::viam::module::v1::HandlerMap& handlermap() const; - PROTOBUF_NODISCARD ::viam::module::v1::HandlerMap* release_handlermap(); - ::viam::module::v1::HandlerMap* mutable_handlermap(); - void set_allocated_handlermap(::viam::module::v1::HandlerMap* value); - void unsafe_arena_set_allocated_handlermap(::viam::module::v1::HandlerMap* value); - ::viam::module::v1::HandlerMap* unsafe_arena_release_handlermap(); + // string webrtc_offer = 2 [json_name = "webrtcOffer"]; + void clear_webrtc_offer(); + const std::string& webrtc_offer() const; + template + void set_webrtc_offer(ArgT0&& arg0, ArgT... args); + std::string* mutable_webrtc_offer(); + PROTOBUF_NODISCARD std::string* release_webrtc_offer(); + void set_allocated_webrtc_offer(std::string* webrtc_offer); private: - const ::viam::module::v1::HandlerMap& _internal_handlermap() const; - ::viam::module::v1::HandlerMap* _internal_mutable_handlermap(); - + const std::string& _internal_webrtc_offer() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_webrtc_offer(const std::string& value); + std::string* _internal_mutable_webrtc_offer(); public: - // bool ready = 1 [json_name = "ready"]; - void clear_ready() ; - bool ready() const; - void set_ready(bool value); - private: - bool _internal_ready() const; - void _internal_set_ready(bool value); - - public: - // @@protoc_insertion_point(class_scope:viam.module.v1.ReadyResponse) + // @@protoc_insertion_point(class_scope:viam.module.v1.ReadyRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 1, - 50, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr webrtc_answer_; - ::viam::module::v1::HandlerMap* handlermap_; - bool ready_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr parent_address_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr webrtc_offer_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_module_2fv1_2fmodule_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ValidateConfigRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.module.v1.ValidateConfigRequest) */ { +class ReadyResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.module.v1.ReadyResponse) */ { public: - inline ValidateConfigRequest() : ValidateConfigRequest(nullptr) {} - ~ValidateConfigRequest() override; - template - explicit PROTOBUF_CONSTEXPR ValidateConfigRequest(::google::protobuf::internal::ConstantInitialized); + inline ReadyResponse() : ReadyResponse(nullptr) {} + ~ReadyResponse() override; + explicit PROTOBUF_CONSTEXPR ReadyResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ValidateConfigRequest(const ValidateConfigRequest& from) - : ValidateConfigRequest(nullptr, from) {} - ValidateConfigRequest(ValidateConfigRequest&& from) noexcept - : ValidateConfigRequest() { + ReadyResponse(const ReadyResponse& from); + ReadyResponse(ReadyResponse&& from) noexcept + : ReadyResponse() { *this = ::std::move(from); } - inline ValidateConfigRequest& operator=(const ValidateConfigRequest& from) { + inline ReadyResponse& operator=(const ReadyResponse& from) { CopyFrom(from); return *this; } - inline ValidateConfigRequest& operator=(ValidateConfigRequest&& from) noexcept { + inline ReadyResponse& operator=(ReadyResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1733,178 +1486,176 @@ class ValidateConfigRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ValidateConfigRequest& default_instance() { + static const ReadyResponse& default_instance() { return *internal_default_instance(); } - static inline const ValidateConfigRequest* internal_default_instance() { - return reinterpret_cast( - &_ValidateConfigRequest_default_instance_); + static inline const ReadyResponse* internal_default_instance() { + return reinterpret_cast( + &_ReadyResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 10; + 9; - friend void swap(ValidateConfigRequest& a, ValidateConfigRequest& b) { + friend void swap(ReadyResponse& a, ReadyResponse& b) { a.Swap(&b); } - inline void Swap(ValidateConfigRequest* other) { + inline void Swap(ReadyResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ValidateConfigRequest* other) { + void UnsafeArenaSwap(ReadyResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ValidateConfigRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ValidateConfigRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ValidateConfigRequest& from) { - ValidateConfigRequest::MergeImpl(*this, from); + ReadyResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ReadyResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ReadyResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ValidateConfigRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(ReadyResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.module.v1.ValidateConfigRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.module.v1.ReadyResponse"; } protected: - explicit ValidateConfigRequest(::google::protobuf::Arena* arena); - ValidateConfigRequest(::google::protobuf::Arena* arena, const ValidateConfigRequest& from); + explicit ReadyResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kConfigFieldNumber = 1, + kWebrtcAnswerFieldNumber = 3, + kHandlermapFieldNumber = 2, + kReadyFieldNumber = 1, }; - // .viam.app.v1.ComponentConfig config = 1 [json_name = "config"]; - bool has_config() const; - void clear_config() ; - const ::viam::app::v1::ComponentConfig& config() const; - PROTOBUF_NODISCARD ::viam::app::v1::ComponentConfig* release_config(); - ::viam::app::v1::ComponentConfig* mutable_config(); - void set_allocated_config(::viam::app::v1::ComponentConfig* value); - void unsafe_arena_set_allocated_config(::viam::app::v1::ComponentConfig* value); - ::viam::app::v1::ComponentConfig* unsafe_arena_release_config(); + // string webrtc_answer = 3 [json_name = "webrtcAnswer"]; + void clear_webrtc_answer(); + const std::string& webrtc_answer() const; + template + void set_webrtc_answer(ArgT0&& arg0, ArgT... args); + std::string* mutable_webrtc_answer(); + PROTOBUF_NODISCARD std::string* release_webrtc_answer(); + void set_allocated_webrtc_answer(std::string* webrtc_answer); + private: + const std::string& _internal_webrtc_answer() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_webrtc_answer(const std::string& value); + std::string* _internal_mutable_webrtc_answer(); + public: + // .viam.module.v1.HandlerMap handlermap = 2 [json_name = "handlermap"]; + bool has_handlermap() const; private: - const ::viam::app::v1::ComponentConfig& _internal_config() const; - ::viam::app::v1::ComponentConfig* _internal_mutable_config(); + bool _internal_has_handlermap() const; + public: + void clear_handlermap(); + const ::viam::module::v1::HandlerMap& handlermap() const; + PROTOBUF_NODISCARD ::viam::module::v1::HandlerMap* release_handlermap(); + ::viam::module::v1::HandlerMap* mutable_handlermap(); + void set_allocated_handlermap(::viam::module::v1::HandlerMap* handlermap); + private: + const ::viam::module::v1::HandlerMap& _internal_handlermap() const; + ::viam::module::v1::HandlerMap* _internal_mutable_handlermap(); + public: + void unsafe_arena_set_allocated_handlermap( + ::viam::module::v1::HandlerMap* handlermap); + ::viam::module::v1::HandlerMap* unsafe_arena_release_handlermap(); + // bool ready = 1 [json_name = "ready"]; + void clear_ready(); + bool ready() const; + void set_ready(bool value); + private: + bool _internal_ready() const; + void _internal_set_ready(bool value); public: - // @@protoc_insertion_point(class_scope:viam.module.v1.ValidateConfigRequest) + + // @@protoc_insertion_point(class_scope:viam.module.v1.ReadyResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::viam::app::v1::ComponentConfig* config_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr webrtc_answer_; + ::viam::module::v1::HandlerMap* handlermap_; + bool ready_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_module_2fv1_2fmodule_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ReconfigureResourceRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.module.v1.ReconfigureResourceRequest) */ { +class ValidateConfigRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.module.v1.ValidateConfigRequest) */ { public: - inline ReconfigureResourceRequest() : ReconfigureResourceRequest(nullptr) {} - ~ReconfigureResourceRequest() override; - template - explicit PROTOBUF_CONSTEXPR ReconfigureResourceRequest(::google::protobuf::internal::ConstantInitialized); + inline ValidateConfigRequest() : ValidateConfigRequest(nullptr) {} + ~ValidateConfigRequest() override; + explicit PROTOBUF_CONSTEXPR ValidateConfigRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ReconfigureResourceRequest(const ReconfigureResourceRequest& from) - : ReconfigureResourceRequest(nullptr, from) {} - ReconfigureResourceRequest(ReconfigureResourceRequest&& from) noexcept - : ReconfigureResourceRequest() { + ValidateConfigRequest(const ValidateConfigRequest& from); + ValidateConfigRequest(ValidateConfigRequest&& from) noexcept + : ValidateConfigRequest() { *this = ::std::move(from); } - inline ReconfigureResourceRequest& operator=(const ReconfigureResourceRequest& from) { + inline ValidateConfigRequest& operator=(const ValidateConfigRequest& from) { CopyFrom(from); return *this; } - inline ReconfigureResourceRequest& operator=(ReconfigureResourceRequest&& from) noexcept { + inline ValidateConfigRequest& operator=(ValidateConfigRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1914,208 +1665,149 @@ class ReconfigureResourceRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ReconfigureResourceRequest& default_instance() { + static const ValidateConfigRequest& default_instance() { return *internal_default_instance(); } - static inline const ReconfigureResourceRequest* internal_default_instance() { - return reinterpret_cast( - &_ReconfigureResourceRequest_default_instance_); + static inline const ValidateConfigRequest* internal_default_instance() { + return reinterpret_cast( + &_ValidateConfigRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 2; + 10; - friend void swap(ReconfigureResourceRequest& a, ReconfigureResourceRequest& b) { + friend void swap(ValidateConfigRequest& a, ValidateConfigRequest& b) { a.Swap(&b); } - inline void Swap(ReconfigureResourceRequest* other) { + inline void Swap(ValidateConfigRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ReconfigureResourceRequest* other) { + void UnsafeArenaSwap(ValidateConfigRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ReconfigureResourceRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ReconfigureResourceRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ReconfigureResourceRequest& from) { - ReconfigureResourceRequest::MergeImpl(*this, from); + ValidateConfigRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ValidateConfigRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ValidateConfigRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ReconfigureResourceRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(ValidateConfigRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.module.v1.ReconfigureResourceRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.module.v1.ValidateConfigRequest"; } protected: - explicit ReconfigureResourceRequest(::google::protobuf::Arena* arena); - ReconfigureResourceRequest(::google::protobuf::Arena* arena, const ReconfigureResourceRequest& from); + explicit ValidateConfigRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kDependenciesFieldNumber = 2, kConfigFieldNumber = 1, }; - // repeated string dependencies = 2 [json_name = "dependencies"]; - int dependencies_size() const; - private: - int _internal_dependencies_size() const; - - public: - void clear_dependencies() ; - const std::string& dependencies(int index) const; - std::string* mutable_dependencies(int index); - void set_dependencies(int index, const std::string& value); - void set_dependencies(int index, std::string&& value); - void set_dependencies(int index, const char* value); - void set_dependencies(int index, const char* value, std::size_t size); - void set_dependencies(int index, absl::string_view value); - std::string* add_dependencies(); - void add_dependencies(const std::string& value); - void add_dependencies(std::string&& value); - void add_dependencies(const char* value); - void add_dependencies(const char* value, std::size_t size); - void add_dependencies(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& dependencies() const; - ::google::protobuf::RepeatedPtrField* mutable_dependencies(); - - private: - const ::google::protobuf::RepeatedPtrField& _internal_dependencies() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_dependencies(); - - public: // .viam.app.v1.ComponentConfig config = 1 [json_name = "config"]; bool has_config() const; - void clear_config() ; + private: + bool _internal_has_config() const; + public: + void clear_config(); const ::viam::app::v1::ComponentConfig& config() const; PROTOBUF_NODISCARD ::viam::app::v1::ComponentConfig* release_config(); ::viam::app::v1::ComponentConfig* mutable_config(); - void set_allocated_config(::viam::app::v1::ComponentConfig* value); - void unsafe_arena_set_allocated_config(::viam::app::v1::ComponentConfig* value); - ::viam::app::v1::ComponentConfig* unsafe_arena_release_config(); - + void set_allocated_config(::viam::app::v1::ComponentConfig* config); private: const ::viam::app::v1::ComponentConfig& _internal_config() const; ::viam::app::v1::ComponentConfig* _internal_mutable_config(); - public: - // @@protoc_insertion_point(class_scope:viam.module.v1.ReconfigureResourceRequest) + void unsafe_arena_set_allocated_config( + ::viam::app::v1::ComponentConfig* config); + ::viam::app::v1::ComponentConfig* unsafe_arena_release_config(); + + // @@protoc_insertion_point(class_scope:viam.module.v1.ValidateConfigRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 62, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField dependencies_; - ::viam::app::v1::ComponentConfig* config_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::viam::app::v1::ComponentConfig* config_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_module_2fv1_2fmodule_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class AddResourceRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.module.v1.AddResourceRequest) */ { +class ValidateConfigResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.module.v1.ValidateConfigResponse) */ { public: - inline AddResourceRequest() : AddResourceRequest(nullptr) {} - ~AddResourceRequest() override; - template - explicit PROTOBUF_CONSTEXPR AddResourceRequest(::google::protobuf::internal::ConstantInitialized); + inline ValidateConfigResponse() : ValidateConfigResponse(nullptr) {} + ~ValidateConfigResponse() override; + explicit PROTOBUF_CONSTEXPR ValidateConfigResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline AddResourceRequest(const AddResourceRequest& from) - : AddResourceRequest(nullptr, from) {} - AddResourceRequest(AddResourceRequest&& from) noexcept - : AddResourceRequest() { + ValidateConfigResponse(const ValidateConfigResponse& from); + ValidateConfigResponse(ValidateConfigResponse&& from) noexcept + : ValidateConfigResponse() { *this = ::std::move(from); } - inline AddResourceRequest& operator=(const AddResourceRequest& from) { + inline ValidateConfigResponse& operator=(const ValidateConfigResponse& from) { CopyFrom(from); return *this; } - inline AddResourceRequest& operator=(AddResourceRequest&& from) noexcept { + inline ValidateConfigResponse& operator=(ValidateConfigResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2125,390 +1817,300 @@ class AddResourceRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const AddResourceRequest& default_instance() { + static const ValidateConfigResponse& default_instance() { return *internal_default_instance(); } - static inline const AddResourceRequest* internal_default_instance() { - return reinterpret_cast( - &_AddResourceRequest_default_instance_); + static inline const ValidateConfigResponse* internal_default_instance() { + return reinterpret_cast( + &_ValidateConfigResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 0; + 11; - friend void swap(AddResourceRequest& a, AddResourceRequest& b) { + friend void swap(ValidateConfigResponse& a, ValidateConfigResponse& b) { a.Swap(&b); } - inline void Swap(AddResourceRequest* other) { + inline void Swap(ValidateConfigResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(AddResourceRequest* other) { + void UnsafeArenaSwap(ValidateConfigResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - AddResourceRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const AddResourceRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const AddResourceRequest& from) { - AddResourceRequest::MergeImpl(*this, from); + ValidateConfigResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ValidateConfigResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ValidateConfigResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(AddResourceRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(ValidateConfigResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.module.v1.AddResourceRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.module.v1.ValidateConfigResponse"; } protected: - explicit AddResourceRequest(::google::protobuf::Arena* arena); - AddResourceRequest(::google::protobuf::Arena* arena, const AddResourceRequest& from); + explicit ValidateConfigResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kDependenciesFieldNumber = 2, - kConfigFieldNumber = 1, + kDependenciesFieldNumber = 1, }; - // repeated string dependencies = 2 [json_name = "dependencies"]; + // repeated string dependencies = 1 [json_name = "dependencies"]; int dependencies_size() const; private: int _internal_dependencies_size() const; - public: - void clear_dependencies() ; + void clear_dependencies(); const std::string& dependencies(int index) const; std::string* mutable_dependencies(int index); void set_dependencies(int index, const std::string& value); void set_dependencies(int index, std::string&& value); void set_dependencies(int index, const char* value); - void set_dependencies(int index, const char* value, std::size_t size); - void set_dependencies(int index, absl::string_view value); + void set_dependencies(int index, const char* value, size_t size); std::string* add_dependencies(); void add_dependencies(const std::string& value); void add_dependencies(std::string&& value); void add_dependencies(const char* value); - void add_dependencies(const char* value, std::size_t size); - void add_dependencies(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& dependencies() const; - ::google::protobuf::RepeatedPtrField* mutable_dependencies(); - + void add_dependencies(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& dependencies() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_dependencies(); private: - const ::google::protobuf::RepeatedPtrField& _internal_dependencies() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_dependencies(); - + const std::string& _internal_dependencies(int index) const; + std::string* _internal_add_dependencies(); public: - // .viam.app.v1.ComponentConfig config = 1 [json_name = "config"]; - bool has_config() const; - void clear_config() ; - const ::viam::app::v1::ComponentConfig& config() const; - PROTOBUF_NODISCARD ::viam::app::v1::ComponentConfig* release_config(); - ::viam::app::v1::ComponentConfig* mutable_config(); - void set_allocated_config(::viam::app::v1::ComponentConfig* value); - void unsafe_arena_set_allocated_config(::viam::app::v1::ComponentConfig* value); - ::viam::app::v1::ComponentConfig* unsafe_arena_release_config(); - - private: - const ::viam::app::v1::ComponentConfig& _internal_config() const; - ::viam::app::v1::ComponentConfig* _internal_mutable_config(); - public: - // @@protoc_insertion_point(class_scope:viam.module.v1.AddResourceRequest) + // @@protoc_insertion_point(class_scope:viam.module.v1.ValidateConfigResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 54, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField dependencies_; - ::viam::app::v1::ComponentConfig* config_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField dependencies_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_module_2fv1_2fmodule_2eproto; }; - // =================================================================== - - // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ -// ------------------------------------------------------------------- - // AddResourceRequest // .viam.app.v1.ComponentConfig config = 1 [json_name = "config"]; +inline bool AddResourceRequest::_internal_has_config() const { + return this != internal_default_instance() && config_ != nullptr; +} inline bool AddResourceRequest::has_config() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.config_ != nullptr); - return value; + return _internal_has_config(); } inline const ::viam::app::v1::ComponentConfig& AddResourceRequest::_internal_config() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::ComponentConfig* p = _impl_.config_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_ComponentConfig_default_instance_); + const ::viam::app::v1::ComponentConfig* p = config_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_ComponentConfig_default_instance_); } -inline const ::viam::app::v1::ComponentConfig& AddResourceRequest::config() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::app::v1::ComponentConfig& AddResourceRequest::config() const { // @@protoc_insertion_point(field_get:viam.module.v1.AddResourceRequest.config) return _internal_config(); } -inline void AddResourceRequest::unsafe_arena_set_allocated_config(::viam::app::v1::ComponentConfig* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.config_); +inline void AddResourceRequest::unsafe_arena_set_allocated_config( + ::viam::app::v1::ComponentConfig* config) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(config_); } - _impl_.config_ = reinterpret_cast<::viam::app::v1::ComponentConfig*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + config_ = config; + if (config) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.module.v1.AddResourceRequest.config) } inline ::viam::app::v1::ComponentConfig* AddResourceRequest::release_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::ComponentConfig* released = _impl_.config_; - _impl_.config_ = nullptr; + + ::viam::app::v1::ComponentConfig* temp = config_; + config_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::app::v1::ComponentConfig* AddResourceRequest::unsafe_arena_release_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.module.v1.AddResourceRequest.config) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::ComponentConfig* temp = _impl_.config_; - _impl_.config_ = nullptr; + + ::viam::app::v1::ComponentConfig* temp = config_; + config_ = nullptr; return temp; } inline ::viam::app::v1::ComponentConfig* AddResourceRequest::_internal_mutable_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.config_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::ComponentConfig>(GetArena()); - _impl_.config_ = reinterpret_cast<::viam::app::v1::ComponentConfig*>(p); + + if (config_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::ComponentConfig>(GetArenaForAllocation()); + config_ = p; } - return _impl_.config_; + return config_; } -inline ::viam::app::v1::ComponentConfig* AddResourceRequest::mutable_config() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::app::v1::ComponentConfig* AddResourceRequest::mutable_config() { ::viam::app::v1::ComponentConfig* _msg = _internal_mutable_config(); // @@protoc_insertion_point(field_mutable:viam.module.v1.AddResourceRequest.config) return _msg; } -inline void AddResourceRequest::set_allocated_config(::viam::app::v1::ComponentConfig* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void AddResourceRequest::set_allocated_config(::viam::app::v1::ComponentConfig* config) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.config_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(config_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (config) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(config)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + config = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, config, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.config_ = reinterpret_cast<::viam::app::v1::ComponentConfig*>(value); + config_ = config; // @@protoc_insertion_point(field_set_allocated:viam.module.v1.AddResourceRequest.config) } // repeated string dependencies = 2 [json_name = "dependencies"]; inline int AddResourceRequest::_internal_dependencies_size() const { - return _internal_dependencies().size(); + return dependencies_.size(); } inline int AddResourceRequest::dependencies_size() const { return _internal_dependencies_size(); } inline void AddResourceRequest::clear_dependencies() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.dependencies_.Clear(); + dependencies_.Clear(); } -inline std::string* AddResourceRequest::add_dependencies() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_dependencies()->Add(); +inline std::string* AddResourceRequest::add_dependencies() { + std::string* _s = _internal_add_dependencies(); // @@protoc_insertion_point(field_add_mutable:viam.module.v1.AddResourceRequest.dependencies) return _s; } -inline const std::string& AddResourceRequest::dependencies(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& AddResourceRequest::_internal_dependencies(int index) const { + return dependencies_.Get(index); +} +inline const std::string& AddResourceRequest::dependencies(int index) const { // @@protoc_insertion_point(field_get:viam.module.v1.AddResourceRequest.dependencies) - return _internal_dependencies().Get(index); + return _internal_dependencies(index); } -inline std::string* AddResourceRequest::mutable_dependencies(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* AddResourceRequest::mutable_dependencies(int index) { // @@protoc_insertion_point(field_mutable:viam.module.v1.AddResourceRequest.dependencies) - return _internal_mutable_dependencies()->Mutable(index); + return dependencies_.Mutable(index); } inline void AddResourceRequest::set_dependencies(int index, const std::string& value) { - _internal_mutable_dependencies()->Mutable(index)->assign(value); + dependencies_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set:viam.module.v1.AddResourceRequest.dependencies) } inline void AddResourceRequest::set_dependencies(int index, std::string&& value) { - _internal_mutable_dependencies()->Mutable(index)->assign(std::move(value)); + dependencies_.Mutable(index)->assign(std::move(value)); // @@protoc_insertion_point(field_set:viam.module.v1.AddResourceRequest.dependencies) } inline void AddResourceRequest::set_dependencies(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_dependencies()->Mutable(index)->assign(value); + GOOGLE_DCHECK(value != nullptr); + dependencies_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:viam.module.v1.AddResourceRequest.dependencies) } -inline void AddResourceRequest::set_dependencies(int index, const char* value, - std::size_t size) { - _internal_mutable_dependencies()->Mutable(index)->assign( - reinterpret_cast(value), size); +inline void AddResourceRequest::set_dependencies(int index, const char* value, size_t size) { + dependencies_.Mutable(index)->assign( + reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:viam.module.v1.AddResourceRequest.dependencies) } -inline void AddResourceRequest::set_dependencies(int index, absl::string_view value) { - _internal_mutable_dependencies()->Mutable(index)->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_set_string_piece:viam.module.v1.AddResourceRequest.dependencies) +inline std::string* AddResourceRequest::_internal_add_dependencies() { + return dependencies_.Add(); } inline void AddResourceRequest::add_dependencies(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_dependencies()->Add()->assign(value); + dependencies_.Add()->assign(value); // @@protoc_insertion_point(field_add:viam.module.v1.AddResourceRequest.dependencies) } inline void AddResourceRequest::add_dependencies(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_dependencies()->Add(std::move(value)); + dependencies_.Add(std::move(value)); // @@protoc_insertion_point(field_add:viam.module.v1.AddResourceRequest.dependencies) } inline void AddResourceRequest::add_dependencies(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_dependencies()->Add()->assign(value); + GOOGLE_DCHECK(value != nullptr); + dependencies_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:viam.module.v1.AddResourceRequest.dependencies) } -inline void AddResourceRequest::add_dependencies(const char* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_dependencies()->Add()->assign( - reinterpret_cast(value), size); +inline void AddResourceRequest::add_dependencies(const char* value, size_t size) { + dependencies_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:viam.module.v1.AddResourceRequest.dependencies) } -inline void AddResourceRequest::add_dependencies(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_dependencies()->Add()->assign(value.data(), value.size()); - // @@protoc_insertion_point(field_add_string_piece:viam.module.v1.AddResourceRequest.dependencies) -} -inline const ::google::protobuf::RepeatedPtrField& -AddResourceRequest::dependencies() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +AddResourceRequest::dependencies() const { // @@protoc_insertion_point(field_list:viam.module.v1.AddResourceRequest.dependencies) - return _internal_dependencies(); + return dependencies_; } -inline ::google::protobuf::RepeatedPtrField* -AddResourceRequest::mutable_dependencies() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +AddResourceRequest::mutable_dependencies() { // @@protoc_insertion_point(field_mutable_list:viam.module.v1.AddResourceRequest.dependencies) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_dependencies(); -} -inline const ::google::protobuf::RepeatedPtrField& -AddResourceRequest::_internal_dependencies() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.dependencies_; -} -inline ::google::protobuf::RepeatedPtrField* -AddResourceRequest::_internal_mutable_dependencies() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.dependencies_; + return &dependencies_; } // ------------------------------------------------------------------- @@ -2520,195 +2122,163 @@ AddResourceRequest::_internal_mutable_dependencies() { // ReconfigureResourceRequest // .viam.app.v1.ComponentConfig config = 1 [json_name = "config"]; +inline bool ReconfigureResourceRequest::_internal_has_config() const { + return this != internal_default_instance() && config_ != nullptr; +} inline bool ReconfigureResourceRequest::has_config() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.config_ != nullptr); - return value; + return _internal_has_config(); } inline const ::viam::app::v1::ComponentConfig& ReconfigureResourceRequest::_internal_config() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::ComponentConfig* p = _impl_.config_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_ComponentConfig_default_instance_); + const ::viam::app::v1::ComponentConfig* p = config_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_ComponentConfig_default_instance_); } -inline const ::viam::app::v1::ComponentConfig& ReconfigureResourceRequest::config() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::app::v1::ComponentConfig& ReconfigureResourceRequest::config() const { // @@protoc_insertion_point(field_get:viam.module.v1.ReconfigureResourceRequest.config) return _internal_config(); } -inline void ReconfigureResourceRequest::unsafe_arena_set_allocated_config(::viam::app::v1::ComponentConfig* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.config_); +inline void ReconfigureResourceRequest::unsafe_arena_set_allocated_config( + ::viam::app::v1::ComponentConfig* config) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(config_); } - _impl_.config_ = reinterpret_cast<::viam::app::v1::ComponentConfig*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + config_ = config; + if (config) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.module.v1.ReconfigureResourceRequest.config) } inline ::viam::app::v1::ComponentConfig* ReconfigureResourceRequest::release_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::ComponentConfig* released = _impl_.config_; - _impl_.config_ = nullptr; + + ::viam::app::v1::ComponentConfig* temp = config_; + config_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::app::v1::ComponentConfig* ReconfigureResourceRequest::unsafe_arena_release_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.module.v1.ReconfigureResourceRequest.config) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::ComponentConfig* temp = _impl_.config_; - _impl_.config_ = nullptr; + + ::viam::app::v1::ComponentConfig* temp = config_; + config_ = nullptr; return temp; } inline ::viam::app::v1::ComponentConfig* ReconfigureResourceRequest::_internal_mutable_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.config_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::ComponentConfig>(GetArena()); - _impl_.config_ = reinterpret_cast<::viam::app::v1::ComponentConfig*>(p); + + if (config_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::ComponentConfig>(GetArenaForAllocation()); + config_ = p; } - return _impl_.config_; + return config_; } -inline ::viam::app::v1::ComponentConfig* ReconfigureResourceRequest::mutable_config() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::app::v1::ComponentConfig* ReconfigureResourceRequest::mutable_config() { ::viam::app::v1::ComponentConfig* _msg = _internal_mutable_config(); // @@protoc_insertion_point(field_mutable:viam.module.v1.ReconfigureResourceRequest.config) return _msg; } -inline void ReconfigureResourceRequest::set_allocated_config(::viam::app::v1::ComponentConfig* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ReconfigureResourceRequest::set_allocated_config(::viam::app::v1::ComponentConfig* config) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.config_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(config_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (config) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(config)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + config = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, config, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.config_ = reinterpret_cast<::viam::app::v1::ComponentConfig*>(value); + config_ = config; // @@protoc_insertion_point(field_set_allocated:viam.module.v1.ReconfigureResourceRequest.config) } // repeated string dependencies = 2 [json_name = "dependencies"]; inline int ReconfigureResourceRequest::_internal_dependencies_size() const { - return _internal_dependencies().size(); + return dependencies_.size(); } inline int ReconfigureResourceRequest::dependencies_size() const { return _internal_dependencies_size(); } inline void ReconfigureResourceRequest::clear_dependencies() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.dependencies_.Clear(); + dependencies_.Clear(); } -inline std::string* ReconfigureResourceRequest::add_dependencies() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_dependencies()->Add(); +inline std::string* ReconfigureResourceRequest::add_dependencies() { + std::string* _s = _internal_add_dependencies(); // @@protoc_insertion_point(field_add_mutable:viam.module.v1.ReconfigureResourceRequest.dependencies) return _s; } -inline const std::string& ReconfigureResourceRequest::dependencies(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ReconfigureResourceRequest::_internal_dependencies(int index) const { + return dependencies_.Get(index); +} +inline const std::string& ReconfigureResourceRequest::dependencies(int index) const { // @@protoc_insertion_point(field_get:viam.module.v1.ReconfigureResourceRequest.dependencies) - return _internal_dependencies().Get(index); + return _internal_dependencies(index); } -inline std::string* ReconfigureResourceRequest::mutable_dependencies(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ReconfigureResourceRequest::mutable_dependencies(int index) { // @@protoc_insertion_point(field_mutable:viam.module.v1.ReconfigureResourceRequest.dependencies) - return _internal_mutable_dependencies()->Mutable(index); + return dependencies_.Mutable(index); } inline void ReconfigureResourceRequest::set_dependencies(int index, const std::string& value) { - _internal_mutable_dependencies()->Mutable(index)->assign(value); + dependencies_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set:viam.module.v1.ReconfigureResourceRequest.dependencies) } inline void ReconfigureResourceRequest::set_dependencies(int index, std::string&& value) { - _internal_mutable_dependencies()->Mutable(index)->assign(std::move(value)); + dependencies_.Mutable(index)->assign(std::move(value)); // @@protoc_insertion_point(field_set:viam.module.v1.ReconfigureResourceRequest.dependencies) } inline void ReconfigureResourceRequest::set_dependencies(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_dependencies()->Mutable(index)->assign(value); + GOOGLE_DCHECK(value != nullptr); + dependencies_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:viam.module.v1.ReconfigureResourceRequest.dependencies) } -inline void ReconfigureResourceRequest::set_dependencies(int index, const char* value, - std::size_t size) { - _internal_mutable_dependencies()->Mutable(index)->assign( - reinterpret_cast(value), size); +inline void ReconfigureResourceRequest::set_dependencies(int index, const char* value, size_t size) { + dependencies_.Mutable(index)->assign( + reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:viam.module.v1.ReconfigureResourceRequest.dependencies) } -inline void ReconfigureResourceRequest::set_dependencies(int index, absl::string_view value) { - _internal_mutable_dependencies()->Mutable(index)->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_set_string_piece:viam.module.v1.ReconfigureResourceRequest.dependencies) +inline std::string* ReconfigureResourceRequest::_internal_add_dependencies() { + return dependencies_.Add(); } inline void ReconfigureResourceRequest::add_dependencies(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_dependencies()->Add()->assign(value); + dependencies_.Add()->assign(value); // @@protoc_insertion_point(field_add:viam.module.v1.ReconfigureResourceRequest.dependencies) } inline void ReconfigureResourceRequest::add_dependencies(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_dependencies()->Add(std::move(value)); + dependencies_.Add(std::move(value)); // @@protoc_insertion_point(field_add:viam.module.v1.ReconfigureResourceRequest.dependencies) } inline void ReconfigureResourceRequest::add_dependencies(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_dependencies()->Add()->assign(value); + GOOGLE_DCHECK(value != nullptr); + dependencies_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:viam.module.v1.ReconfigureResourceRequest.dependencies) } -inline void ReconfigureResourceRequest::add_dependencies(const char* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_dependencies()->Add()->assign( - reinterpret_cast(value), size); +inline void ReconfigureResourceRequest::add_dependencies(const char* value, size_t size) { + dependencies_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:viam.module.v1.ReconfigureResourceRequest.dependencies) } -inline void ReconfigureResourceRequest::add_dependencies(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_dependencies()->Add()->assign(value.data(), value.size()); - // @@protoc_insertion_point(field_add_string_piece:viam.module.v1.ReconfigureResourceRequest.dependencies) -} -inline const ::google::protobuf::RepeatedPtrField& -ReconfigureResourceRequest::dependencies() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +ReconfigureResourceRequest::dependencies() const { // @@protoc_insertion_point(field_list:viam.module.v1.ReconfigureResourceRequest.dependencies) - return _internal_dependencies(); + return dependencies_; } -inline ::google::protobuf::RepeatedPtrField* -ReconfigureResourceRequest::mutable_dependencies() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +ReconfigureResourceRequest::mutable_dependencies() { // @@protoc_insertion_point(field_mutable_list:viam.module.v1.ReconfigureResourceRequest.dependencies) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_dependencies(); -} -inline const ::google::protobuf::RepeatedPtrField& -ReconfigureResourceRequest::_internal_dependencies() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.dependencies_; -} -inline ::google::protobuf::RepeatedPtrField* -ReconfigureResourceRequest::_internal_mutable_dependencies() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.dependencies_; + return &dependencies_; } // ------------------------------------------------------------------- @@ -2721,54 +2291,51 @@ ReconfigureResourceRequest::_internal_mutable_dependencies() { // string name = 1 [json_name = "name"]; inline void RemoveResourceRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& RemoveResourceRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& RemoveResourceRequest::name() const { // @@protoc_insertion_point(field_get:viam.module.v1.RemoveResourceRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void RemoveResourceRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void RemoveResourceRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.module.v1.RemoveResourceRequest.name) } -inline std::string* RemoveResourceRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* RemoveResourceRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.module.v1.RemoveResourceRequest.name) return _s; } inline const std::string& RemoveResourceRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void RemoveResourceRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* RemoveResourceRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* RemoveResourceRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.module.v1.RemoveResourceRequest.name) - return _impl_.name_.Release(); -} -inline void RemoveResourceRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void RemoveResourceRequest::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.module.v1.RemoveResourceRequest.name) } @@ -2781,195 +2348,163 @@ inline void RemoveResourceRequest::set_allocated_name(std::string* value) { // HandlerDefinition // .viam.robot.v1.ResourceRPCSubtype subtype = 1 [json_name = "subtype"]; +inline bool HandlerDefinition::_internal_has_subtype() const { + return this != internal_default_instance() && subtype_ != nullptr; +} inline bool HandlerDefinition::has_subtype() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.subtype_ != nullptr); - return value; + return _internal_has_subtype(); } inline const ::viam::robot::v1::ResourceRPCSubtype& HandlerDefinition::_internal_subtype() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::robot::v1::ResourceRPCSubtype* p = _impl_.subtype_; - return p != nullptr ? *p : reinterpret_cast(::viam::robot::v1::_ResourceRPCSubtype_default_instance_); + const ::viam::robot::v1::ResourceRPCSubtype* p = subtype_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::robot::v1::_ResourceRPCSubtype_default_instance_); } -inline const ::viam::robot::v1::ResourceRPCSubtype& HandlerDefinition::subtype() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::robot::v1::ResourceRPCSubtype& HandlerDefinition::subtype() const { // @@protoc_insertion_point(field_get:viam.module.v1.HandlerDefinition.subtype) return _internal_subtype(); } -inline void HandlerDefinition::unsafe_arena_set_allocated_subtype(::viam::robot::v1::ResourceRPCSubtype* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.subtype_); +inline void HandlerDefinition::unsafe_arena_set_allocated_subtype( + ::viam::robot::v1::ResourceRPCSubtype* subtype) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(subtype_); } - _impl_.subtype_ = reinterpret_cast<::viam::robot::v1::ResourceRPCSubtype*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + subtype_ = subtype; + if (subtype) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.module.v1.HandlerDefinition.subtype) } inline ::viam::robot::v1::ResourceRPCSubtype* HandlerDefinition::release_subtype() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::robot::v1::ResourceRPCSubtype* released = _impl_.subtype_; - _impl_.subtype_ = nullptr; + + ::viam::robot::v1::ResourceRPCSubtype* temp = subtype_; + subtype_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::robot::v1::ResourceRPCSubtype* HandlerDefinition::unsafe_arena_release_subtype() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.module.v1.HandlerDefinition.subtype) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::robot::v1::ResourceRPCSubtype* temp = _impl_.subtype_; - _impl_.subtype_ = nullptr; + + ::viam::robot::v1::ResourceRPCSubtype* temp = subtype_; + subtype_ = nullptr; return temp; } inline ::viam::robot::v1::ResourceRPCSubtype* HandlerDefinition::_internal_mutable_subtype() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.subtype_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::robot::v1::ResourceRPCSubtype>(GetArena()); - _impl_.subtype_ = reinterpret_cast<::viam::robot::v1::ResourceRPCSubtype*>(p); + + if (subtype_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::robot::v1::ResourceRPCSubtype>(GetArenaForAllocation()); + subtype_ = p; } - return _impl_.subtype_; + return subtype_; } -inline ::viam::robot::v1::ResourceRPCSubtype* HandlerDefinition::mutable_subtype() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::robot::v1::ResourceRPCSubtype* HandlerDefinition::mutable_subtype() { ::viam::robot::v1::ResourceRPCSubtype* _msg = _internal_mutable_subtype(); // @@protoc_insertion_point(field_mutable:viam.module.v1.HandlerDefinition.subtype) return _msg; } -inline void HandlerDefinition::set_allocated_subtype(::viam::robot::v1::ResourceRPCSubtype* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void HandlerDefinition::set_allocated_subtype(::viam::robot::v1::ResourceRPCSubtype* subtype) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.subtype_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(subtype_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (subtype) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(subtype)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + subtype = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, subtype, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.subtype_ = reinterpret_cast<::viam::robot::v1::ResourceRPCSubtype*>(value); + subtype_ = subtype; // @@protoc_insertion_point(field_set_allocated:viam.module.v1.HandlerDefinition.subtype) } // repeated string models = 2 [json_name = "models"]; inline int HandlerDefinition::_internal_models_size() const { - return _internal_models().size(); + return models_.size(); } inline int HandlerDefinition::models_size() const { return _internal_models_size(); } inline void HandlerDefinition::clear_models() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.models_.Clear(); + models_.Clear(); } -inline std::string* HandlerDefinition::add_models() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_models()->Add(); +inline std::string* HandlerDefinition::add_models() { + std::string* _s = _internal_add_models(); // @@protoc_insertion_point(field_add_mutable:viam.module.v1.HandlerDefinition.models) return _s; } -inline const std::string& HandlerDefinition::models(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& HandlerDefinition::_internal_models(int index) const { + return models_.Get(index); +} +inline const std::string& HandlerDefinition::models(int index) const { // @@protoc_insertion_point(field_get:viam.module.v1.HandlerDefinition.models) - return _internal_models().Get(index); + return _internal_models(index); } -inline std::string* HandlerDefinition::mutable_models(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* HandlerDefinition::mutable_models(int index) { // @@protoc_insertion_point(field_mutable:viam.module.v1.HandlerDefinition.models) - return _internal_mutable_models()->Mutable(index); + return models_.Mutable(index); } inline void HandlerDefinition::set_models(int index, const std::string& value) { - _internal_mutable_models()->Mutable(index)->assign(value); + models_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set:viam.module.v1.HandlerDefinition.models) } inline void HandlerDefinition::set_models(int index, std::string&& value) { - _internal_mutable_models()->Mutable(index)->assign(std::move(value)); + models_.Mutable(index)->assign(std::move(value)); // @@protoc_insertion_point(field_set:viam.module.v1.HandlerDefinition.models) } inline void HandlerDefinition::set_models(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_models()->Mutable(index)->assign(value); + GOOGLE_DCHECK(value != nullptr); + models_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:viam.module.v1.HandlerDefinition.models) } -inline void HandlerDefinition::set_models(int index, const char* value, - std::size_t size) { - _internal_mutable_models()->Mutable(index)->assign( - reinterpret_cast(value), size); +inline void HandlerDefinition::set_models(int index, const char* value, size_t size) { + models_.Mutable(index)->assign( + reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:viam.module.v1.HandlerDefinition.models) } -inline void HandlerDefinition::set_models(int index, absl::string_view value) { - _internal_mutable_models()->Mutable(index)->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_set_string_piece:viam.module.v1.HandlerDefinition.models) +inline std::string* HandlerDefinition::_internal_add_models() { + return models_.Add(); } inline void HandlerDefinition::add_models(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_models()->Add()->assign(value); + models_.Add()->assign(value); // @@protoc_insertion_point(field_add:viam.module.v1.HandlerDefinition.models) } inline void HandlerDefinition::add_models(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_models()->Add(std::move(value)); + models_.Add(std::move(value)); // @@protoc_insertion_point(field_add:viam.module.v1.HandlerDefinition.models) } inline void HandlerDefinition::add_models(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_models()->Add()->assign(value); + GOOGLE_DCHECK(value != nullptr); + models_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:viam.module.v1.HandlerDefinition.models) } -inline void HandlerDefinition::add_models(const char* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_models()->Add()->assign( - reinterpret_cast(value), size); +inline void HandlerDefinition::add_models(const char* value, size_t size) { + models_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:viam.module.v1.HandlerDefinition.models) } -inline void HandlerDefinition::add_models(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_models()->Add()->assign(value.data(), value.size()); - // @@protoc_insertion_point(field_add_string_piece:viam.module.v1.HandlerDefinition.models) -} -inline const ::google::protobuf::RepeatedPtrField& -HandlerDefinition::models() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +HandlerDefinition::models() const { // @@protoc_insertion_point(field_list:viam.module.v1.HandlerDefinition.models) - return _internal_models(); + return models_; } -inline ::google::protobuf::RepeatedPtrField* -HandlerDefinition::mutable_models() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +HandlerDefinition::mutable_models() { // @@protoc_insertion_point(field_mutable_list:viam.module.v1.HandlerDefinition.models) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_models(); -} -inline const ::google::protobuf::RepeatedPtrField& -HandlerDefinition::_internal_models() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.models_; -} -inline ::google::protobuf::RepeatedPtrField* -HandlerDefinition::_internal_mutable_models() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.models_; + return &models_; } // ------------------------------------------------------------------- @@ -2978,51 +2513,42 @@ HandlerDefinition::_internal_mutable_models() { // repeated .viam.module.v1.HandlerDefinition handlers = 1 [json_name = "handlers"]; inline int HandlerMap::_internal_handlers_size() const { - return _internal_handlers().size(); + return handlers_.size(); } inline int HandlerMap::handlers_size() const { return _internal_handlers_size(); } inline void HandlerMap::clear_handlers() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.handlers_.Clear(); + handlers_.Clear(); } -inline ::viam::module::v1::HandlerDefinition* HandlerMap::mutable_handlers(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::module::v1::HandlerDefinition* HandlerMap::mutable_handlers(int index) { // @@protoc_insertion_point(field_mutable:viam.module.v1.HandlerMap.handlers) - return _internal_mutable_handlers()->Mutable(index); + return handlers_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::module::v1::HandlerDefinition>* HandlerMap::mutable_handlers() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::module::v1::HandlerDefinition >* +HandlerMap::mutable_handlers() { // @@protoc_insertion_point(field_mutable_list:viam.module.v1.HandlerMap.handlers) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_handlers(); + return &handlers_; } -inline const ::viam::module::v1::HandlerDefinition& HandlerMap::handlers(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::module::v1::HandlerDefinition& HandlerMap::_internal_handlers(int index) const { + return handlers_.Get(index); +} +inline const ::viam::module::v1::HandlerDefinition& HandlerMap::handlers(int index) const { // @@protoc_insertion_point(field_get:viam.module.v1.HandlerMap.handlers) - return _internal_handlers().Get(index); + return _internal_handlers(index); +} +inline ::viam::module::v1::HandlerDefinition* HandlerMap::_internal_add_handlers() { + return handlers_.Add(); } -inline ::viam::module::v1::HandlerDefinition* HandlerMap::add_handlers() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::module::v1::HandlerDefinition* _add = _internal_mutable_handlers()->Add(); +inline ::viam::module::v1::HandlerDefinition* HandlerMap::add_handlers() { + ::viam::module::v1::HandlerDefinition* _add = _internal_add_handlers(); // @@protoc_insertion_point(field_add:viam.module.v1.HandlerMap.handlers) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::module::v1::HandlerDefinition>& HandlerMap::handlers() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::module::v1::HandlerDefinition >& +HandlerMap::handlers() const { // @@protoc_insertion_point(field_list:viam.module.v1.HandlerMap.handlers) - return _internal_handlers(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::module::v1::HandlerDefinition>& -HandlerMap::_internal_handlers() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.handlers_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::module::v1::HandlerDefinition>* -HandlerMap::_internal_mutable_handlers() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.handlers_; + return handlers_; } // ------------------------------------------------------------------- @@ -3031,107 +2557,101 @@ HandlerMap::_internal_mutable_handlers() { // string parent_address = 1 [json_name = "parentAddress"]; inline void ReadyRequest::clear_parent_address() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.parent_address_.ClearToEmpty(); + parent_address_.ClearToEmpty(); } -inline const std::string& ReadyRequest::parent_address() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ReadyRequest::parent_address() const { // @@protoc_insertion_point(field_get:viam.module.v1.ReadyRequest.parent_address) return _internal_parent_address(); } -template -inline PROTOBUF_ALWAYS_INLINE void ReadyRequest::set_parent_address(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.parent_address_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ReadyRequest::set_parent_address(ArgT0&& arg0, ArgT... args) { + + parent_address_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.module.v1.ReadyRequest.parent_address) } -inline std::string* ReadyRequest::mutable_parent_address() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ReadyRequest::mutable_parent_address() { std::string* _s = _internal_mutable_parent_address(); // @@protoc_insertion_point(field_mutable:viam.module.v1.ReadyRequest.parent_address) return _s; } inline const std::string& ReadyRequest::_internal_parent_address() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.parent_address_.Get(); + return parent_address_.Get(); } inline void ReadyRequest::_internal_set_parent_address(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.parent_address_.Set(value, GetArena()); + + parent_address_.Set(value, GetArenaForAllocation()); } inline std::string* ReadyRequest::_internal_mutable_parent_address() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.parent_address_.Mutable( GetArena()); + + return parent_address_.Mutable(GetArenaForAllocation()); } inline std::string* ReadyRequest::release_parent_address() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.module.v1.ReadyRequest.parent_address) - return _impl_.parent_address_.Release(); -} -inline void ReadyRequest::set_allocated_parent_address(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.parent_address_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.parent_address_.IsDefault()) { - _impl_.parent_address_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return parent_address_.Release(); +} +inline void ReadyRequest::set_allocated_parent_address(std::string* parent_address) { + if (parent_address != nullptr) { + + } else { + + } + parent_address_.SetAllocated(parent_address, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (parent_address_.IsDefault()) { + parent_address_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.module.v1.ReadyRequest.parent_address) } // string webrtc_offer = 2 [json_name = "webrtcOffer"]; inline void ReadyRequest::clear_webrtc_offer() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.webrtc_offer_.ClearToEmpty(); + webrtc_offer_.ClearToEmpty(); } -inline const std::string& ReadyRequest::webrtc_offer() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ReadyRequest::webrtc_offer() const { // @@protoc_insertion_point(field_get:viam.module.v1.ReadyRequest.webrtc_offer) return _internal_webrtc_offer(); } -template -inline PROTOBUF_ALWAYS_INLINE void ReadyRequest::set_webrtc_offer(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.webrtc_offer_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ReadyRequest::set_webrtc_offer(ArgT0&& arg0, ArgT... args) { + + webrtc_offer_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.module.v1.ReadyRequest.webrtc_offer) } -inline std::string* ReadyRequest::mutable_webrtc_offer() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ReadyRequest::mutable_webrtc_offer() { std::string* _s = _internal_mutable_webrtc_offer(); // @@protoc_insertion_point(field_mutable:viam.module.v1.ReadyRequest.webrtc_offer) return _s; } inline const std::string& ReadyRequest::_internal_webrtc_offer() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.webrtc_offer_.Get(); + return webrtc_offer_.Get(); } inline void ReadyRequest::_internal_set_webrtc_offer(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.webrtc_offer_.Set(value, GetArena()); + + webrtc_offer_.Set(value, GetArenaForAllocation()); } inline std::string* ReadyRequest::_internal_mutable_webrtc_offer() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.webrtc_offer_.Mutable( GetArena()); + + return webrtc_offer_.Mutable(GetArenaForAllocation()); } inline std::string* ReadyRequest::release_webrtc_offer() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.module.v1.ReadyRequest.webrtc_offer) - return _impl_.webrtc_offer_.Release(); -} -inline void ReadyRequest::set_allocated_webrtc_offer(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.webrtc_offer_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.webrtc_offer_.IsDefault()) { - _impl_.webrtc_offer_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return webrtc_offer_.Release(); +} +inline void ReadyRequest::set_allocated_webrtc_offer(std::string* webrtc_offer) { + if (webrtc_offer != nullptr) { + + } else { + + } + webrtc_offer_.SetAllocated(webrtc_offer, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (webrtc_offer_.IsDefault()) { + webrtc_offer_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.module.v1.ReadyRequest.webrtc_offer) } @@ -3141,173 +2661,161 @@ inline void ReadyRequest::set_allocated_webrtc_offer(std::string* value) { // bool ready = 1 [json_name = "ready"]; inline void ReadyResponse::clear_ready() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.ready_ = false; + ready_ = false; +} +inline bool ReadyResponse::_internal_ready() const { + return ready_; } inline bool ReadyResponse::ready() const { // @@protoc_insertion_point(field_get:viam.module.v1.ReadyResponse.ready) return _internal_ready(); } +inline void ReadyResponse::_internal_set_ready(bool value) { + + ready_ = value; +} inline void ReadyResponse::set_ready(bool value) { _internal_set_ready(value); // @@protoc_insertion_point(field_set:viam.module.v1.ReadyResponse.ready) } -inline bool ReadyResponse::_internal_ready() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.ready_; -} -inline void ReadyResponse::_internal_set_ready(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.ready_ = value; -} // .viam.module.v1.HandlerMap handlermap = 2 [json_name = "handlermap"]; +inline bool ReadyResponse::_internal_has_handlermap() const { + return this != internal_default_instance() && handlermap_ != nullptr; +} inline bool ReadyResponse::has_handlermap() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.handlermap_ != nullptr); - return value; + return _internal_has_handlermap(); } inline void ReadyResponse::clear_handlermap() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.handlermap_ != nullptr) _impl_.handlermap_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && handlermap_ != nullptr) { + delete handlermap_; + } + handlermap_ = nullptr; } inline const ::viam::module::v1::HandlerMap& ReadyResponse::_internal_handlermap() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::module::v1::HandlerMap* p = _impl_.handlermap_; - return p != nullptr ? *p : reinterpret_cast(::viam::module::v1::_HandlerMap_default_instance_); + const ::viam::module::v1::HandlerMap* p = handlermap_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::module::v1::_HandlerMap_default_instance_); } -inline const ::viam::module::v1::HandlerMap& ReadyResponse::handlermap() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::module::v1::HandlerMap& ReadyResponse::handlermap() const { // @@protoc_insertion_point(field_get:viam.module.v1.ReadyResponse.handlermap) return _internal_handlermap(); } -inline void ReadyResponse::unsafe_arena_set_allocated_handlermap(::viam::module::v1::HandlerMap* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.handlermap_); +inline void ReadyResponse::unsafe_arena_set_allocated_handlermap( + ::viam::module::v1::HandlerMap* handlermap) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(handlermap_); } - _impl_.handlermap_ = reinterpret_cast<::viam::module::v1::HandlerMap*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + handlermap_ = handlermap; + if (handlermap) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.module.v1.ReadyResponse.handlermap) } inline ::viam::module::v1::HandlerMap* ReadyResponse::release_handlermap() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::module::v1::HandlerMap* released = _impl_.handlermap_; - _impl_.handlermap_ = nullptr; + + ::viam::module::v1::HandlerMap* temp = handlermap_; + handlermap_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::module::v1::HandlerMap* ReadyResponse::unsafe_arena_release_handlermap() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.module.v1.ReadyResponse.handlermap) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::module::v1::HandlerMap* temp = _impl_.handlermap_; - _impl_.handlermap_ = nullptr; + + ::viam::module::v1::HandlerMap* temp = handlermap_; + handlermap_ = nullptr; return temp; } inline ::viam::module::v1::HandlerMap* ReadyResponse::_internal_mutable_handlermap() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.handlermap_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::module::v1::HandlerMap>(GetArena()); - _impl_.handlermap_ = reinterpret_cast<::viam::module::v1::HandlerMap*>(p); + + if (handlermap_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::module::v1::HandlerMap>(GetArenaForAllocation()); + handlermap_ = p; } - return _impl_.handlermap_; + return handlermap_; } -inline ::viam::module::v1::HandlerMap* ReadyResponse::mutable_handlermap() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::module::v1::HandlerMap* ReadyResponse::mutable_handlermap() { ::viam::module::v1::HandlerMap* _msg = _internal_mutable_handlermap(); // @@protoc_insertion_point(field_mutable:viam.module.v1.ReadyResponse.handlermap) return _msg; } -inline void ReadyResponse::set_allocated_handlermap(::viam::module::v1::HandlerMap* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ReadyResponse::set_allocated_handlermap(::viam::module::v1::HandlerMap* handlermap) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::module::v1::HandlerMap*>(_impl_.handlermap_); + delete handlermap_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::module::v1::HandlerMap*>(value)->GetArena(); + if (handlermap) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(handlermap); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + handlermap = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, handlermap, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.handlermap_ = reinterpret_cast<::viam::module::v1::HandlerMap*>(value); + handlermap_ = handlermap; // @@protoc_insertion_point(field_set_allocated:viam.module.v1.ReadyResponse.handlermap) } // string webrtc_answer = 3 [json_name = "webrtcAnswer"]; inline void ReadyResponse::clear_webrtc_answer() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.webrtc_answer_.ClearToEmpty(); + webrtc_answer_.ClearToEmpty(); } -inline const std::string& ReadyResponse::webrtc_answer() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ReadyResponse::webrtc_answer() const { // @@protoc_insertion_point(field_get:viam.module.v1.ReadyResponse.webrtc_answer) return _internal_webrtc_answer(); } -template -inline PROTOBUF_ALWAYS_INLINE void ReadyResponse::set_webrtc_answer(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.webrtc_answer_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ReadyResponse::set_webrtc_answer(ArgT0&& arg0, ArgT... args) { + + webrtc_answer_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.module.v1.ReadyResponse.webrtc_answer) } -inline std::string* ReadyResponse::mutable_webrtc_answer() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ReadyResponse::mutable_webrtc_answer() { std::string* _s = _internal_mutable_webrtc_answer(); // @@protoc_insertion_point(field_mutable:viam.module.v1.ReadyResponse.webrtc_answer) return _s; } inline const std::string& ReadyResponse::_internal_webrtc_answer() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.webrtc_answer_.Get(); + return webrtc_answer_.Get(); } inline void ReadyResponse::_internal_set_webrtc_answer(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.webrtc_answer_.Set(value, GetArena()); + + webrtc_answer_.Set(value, GetArenaForAllocation()); } inline std::string* ReadyResponse::_internal_mutable_webrtc_answer() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.webrtc_answer_.Mutable( GetArena()); + + return webrtc_answer_.Mutable(GetArenaForAllocation()); } inline std::string* ReadyResponse::release_webrtc_answer() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.module.v1.ReadyResponse.webrtc_answer) - return _impl_.webrtc_answer_.Release(); -} -inline void ReadyResponse::set_allocated_webrtc_answer(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.webrtc_answer_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.webrtc_answer_.IsDefault()) { - _impl_.webrtc_answer_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return webrtc_answer_.Release(); +} +inline void ReadyResponse::set_allocated_webrtc_answer(std::string* webrtc_answer) { + if (webrtc_answer != nullptr) { + + } else { + + } + webrtc_answer_.SetAllocated(webrtc_answer, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (webrtc_answer_.IsDefault()) { + webrtc_answer_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.module.v1.ReadyResponse.webrtc_answer) } @@ -3316,93 +2824,87 @@ inline void ReadyResponse::set_allocated_webrtc_answer(std::string* value) { // ValidateConfigRequest // .viam.app.v1.ComponentConfig config = 1 [json_name = "config"]; +inline bool ValidateConfigRequest::_internal_has_config() const { + return this != internal_default_instance() && config_ != nullptr; +} inline bool ValidateConfigRequest::has_config() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.config_ != nullptr); - return value; + return _internal_has_config(); } inline const ::viam::app::v1::ComponentConfig& ValidateConfigRequest::_internal_config() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::app::v1::ComponentConfig* p = _impl_.config_; - return p != nullptr ? *p : reinterpret_cast(::viam::app::v1::_ComponentConfig_default_instance_); + const ::viam::app::v1::ComponentConfig* p = config_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_ComponentConfig_default_instance_); } -inline const ::viam::app::v1::ComponentConfig& ValidateConfigRequest::config() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::app::v1::ComponentConfig& ValidateConfigRequest::config() const { // @@protoc_insertion_point(field_get:viam.module.v1.ValidateConfigRequest.config) return _internal_config(); } -inline void ValidateConfigRequest::unsafe_arena_set_allocated_config(::viam::app::v1::ComponentConfig* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.config_); +inline void ValidateConfigRequest::unsafe_arena_set_allocated_config( + ::viam::app::v1::ComponentConfig* config) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(config_); } - _impl_.config_ = reinterpret_cast<::viam::app::v1::ComponentConfig*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + config_ = config; + if (config) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.module.v1.ValidateConfigRequest.config) } inline ::viam::app::v1::ComponentConfig* ValidateConfigRequest::release_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::ComponentConfig* released = _impl_.config_; - _impl_.config_ = nullptr; + + ::viam::app::v1::ComponentConfig* temp = config_; + config_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::app::v1::ComponentConfig* ValidateConfigRequest::unsafe_arena_release_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.module.v1.ValidateConfigRequest.config) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::app::v1::ComponentConfig* temp = _impl_.config_; - _impl_.config_ = nullptr; + + ::viam::app::v1::ComponentConfig* temp = config_; + config_ = nullptr; return temp; } inline ::viam::app::v1::ComponentConfig* ValidateConfigRequest::_internal_mutable_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.config_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::app::v1::ComponentConfig>(GetArena()); - _impl_.config_ = reinterpret_cast<::viam::app::v1::ComponentConfig*>(p); + + if (config_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::ComponentConfig>(GetArenaForAllocation()); + config_ = p; } - return _impl_.config_; + return config_; } -inline ::viam::app::v1::ComponentConfig* ValidateConfigRequest::mutable_config() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::app::v1::ComponentConfig* ValidateConfigRequest::mutable_config() { ::viam::app::v1::ComponentConfig* _msg = _internal_mutable_config(); // @@protoc_insertion_point(field_mutable:viam.module.v1.ValidateConfigRequest.config) return _msg; } -inline void ValidateConfigRequest::set_allocated_config(::viam::app::v1::ComponentConfig* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ValidateConfigRequest::set_allocated_config(::viam::app::v1::ComponentConfig* config) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.config_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(config_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (config) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(config)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + config = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, config, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.config_ = reinterpret_cast<::viam::app::v1::ComponentConfig*>(value); + config_ = config; // @@protoc_insertion_point(field_set_allocated:viam.module.v1.ValidateConfigRequest.config) } @@ -3412,117 +2914,112 @@ inline void ValidateConfigRequest::set_allocated_config(::viam::app::v1::Compone // repeated string dependencies = 1 [json_name = "dependencies"]; inline int ValidateConfigResponse::_internal_dependencies_size() const { - return _internal_dependencies().size(); + return dependencies_.size(); } inline int ValidateConfigResponse::dependencies_size() const { return _internal_dependencies_size(); } inline void ValidateConfigResponse::clear_dependencies() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.dependencies_.Clear(); + dependencies_.Clear(); } -inline std::string* ValidateConfigResponse::add_dependencies() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_dependencies()->Add(); +inline std::string* ValidateConfigResponse::add_dependencies() { + std::string* _s = _internal_add_dependencies(); // @@protoc_insertion_point(field_add_mutable:viam.module.v1.ValidateConfigResponse.dependencies) return _s; } -inline const std::string& ValidateConfigResponse::dependencies(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ValidateConfigResponse::_internal_dependencies(int index) const { + return dependencies_.Get(index); +} +inline const std::string& ValidateConfigResponse::dependencies(int index) const { // @@protoc_insertion_point(field_get:viam.module.v1.ValidateConfigResponse.dependencies) - return _internal_dependencies().Get(index); + return _internal_dependencies(index); } -inline std::string* ValidateConfigResponse::mutable_dependencies(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ValidateConfigResponse::mutable_dependencies(int index) { // @@protoc_insertion_point(field_mutable:viam.module.v1.ValidateConfigResponse.dependencies) - return _internal_mutable_dependencies()->Mutable(index); + return dependencies_.Mutable(index); } inline void ValidateConfigResponse::set_dependencies(int index, const std::string& value) { - _internal_mutable_dependencies()->Mutable(index)->assign(value); + dependencies_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set:viam.module.v1.ValidateConfigResponse.dependencies) } inline void ValidateConfigResponse::set_dependencies(int index, std::string&& value) { - _internal_mutable_dependencies()->Mutable(index)->assign(std::move(value)); + dependencies_.Mutable(index)->assign(std::move(value)); // @@protoc_insertion_point(field_set:viam.module.v1.ValidateConfigResponse.dependencies) } inline void ValidateConfigResponse::set_dependencies(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_dependencies()->Mutable(index)->assign(value); + GOOGLE_DCHECK(value != nullptr); + dependencies_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:viam.module.v1.ValidateConfigResponse.dependencies) } -inline void ValidateConfigResponse::set_dependencies(int index, const char* value, - std::size_t size) { - _internal_mutable_dependencies()->Mutable(index)->assign( - reinterpret_cast(value), size); +inline void ValidateConfigResponse::set_dependencies(int index, const char* value, size_t size) { + dependencies_.Mutable(index)->assign( + reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:viam.module.v1.ValidateConfigResponse.dependencies) } -inline void ValidateConfigResponse::set_dependencies(int index, absl::string_view value) { - _internal_mutable_dependencies()->Mutable(index)->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_set_string_piece:viam.module.v1.ValidateConfigResponse.dependencies) +inline std::string* ValidateConfigResponse::_internal_add_dependencies() { + return dependencies_.Add(); } inline void ValidateConfigResponse::add_dependencies(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_dependencies()->Add()->assign(value); + dependencies_.Add()->assign(value); // @@protoc_insertion_point(field_add:viam.module.v1.ValidateConfigResponse.dependencies) } inline void ValidateConfigResponse::add_dependencies(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_dependencies()->Add(std::move(value)); + dependencies_.Add(std::move(value)); // @@protoc_insertion_point(field_add:viam.module.v1.ValidateConfigResponse.dependencies) } inline void ValidateConfigResponse::add_dependencies(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_dependencies()->Add()->assign(value); + GOOGLE_DCHECK(value != nullptr); + dependencies_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:viam.module.v1.ValidateConfigResponse.dependencies) } -inline void ValidateConfigResponse::add_dependencies(const char* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_dependencies()->Add()->assign( - reinterpret_cast(value), size); +inline void ValidateConfigResponse::add_dependencies(const char* value, size_t size) { + dependencies_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:viam.module.v1.ValidateConfigResponse.dependencies) } -inline void ValidateConfigResponse::add_dependencies(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_dependencies()->Add()->assign(value.data(), value.size()); - // @@protoc_insertion_point(field_add_string_piece:viam.module.v1.ValidateConfigResponse.dependencies) -} -inline const ::google::protobuf::RepeatedPtrField& -ValidateConfigResponse::dependencies() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +ValidateConfigResponse::dependencies() const { // @@protoc_insertion_point(field_list:viam.module.v1.ValidateConfigResponse.dependencies) - return _internal_dependencies(); + return dependencies_; } -inline ::google::protobuf::RepeatedPtrField* -ValidateConfigResponse::mutable_dependencies() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +ValidateConfigResponse::mutable_dependencies() { // @@protoc_insertion_point(field_mutable_list:viam.module.v1.ValidateConfigResponse.dependencies) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_dependencies(); -} -inline const ::google::protobuf::RepeatedPtrField& -ValidateConfigResponse::_internal_dependencies() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.dependencies_; -} -inline ::google::protobuf::RepeatedPtrField* -ValidateConfigResponse::_internal_mutable_dependencies() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.dependencies_; + return &dependencies_; } #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) + } // namespace v1 } // namespace module } // namespace viam - // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_module_2fv1_2fmodule_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_module_2fv1_2fmodule_2eproto diff --git a/src/viam/api/proto/rpc/examples/echo/v1/echo.grpc.pb.cc b/src/viam/api/proto/rpc/examples/echo/v1/echo.grpc.pb.cc index 9c92f6987..ba3e0c0fe 100644 --- a/src/viam/api/proto/rpc/examples/echo/v1/echo.grpc.pb.cc +++ b/src/viam/api/proto/rpc/examples/echo/v1/echo.grpc.pb.cc @@ -6,19 +6,19 @@ #include "proto/rpc/examples/echo/v1/echo.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace proto { namespace rpc { namespace examples { @@ -33,78 +33,83 @@ static const char* EchoService_method_names[] = { std::unique_ptr< EchoService::Stub> EchoService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { (void)options; - std::unique_ptr< EchoService::Stub> stub(new EchoService::Stub(channel, options)); + std::unique_ptr< EchoService::Stub> stub(new EchoService::Stub(channel)); return stub; } -EchoService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) - : channel_(channel), rpcmethod_Echo_(EchoService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_EchoMultiple_(EchoService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::SERVER_STREAMING, channel) - , rpcmethod_EchoBiDi_(EchoService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::BIDI_STREAMING, channel) +EchoService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_Echo_(EchoService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_EchoMultiple_(EchoService_method_names[1], ::grpc::internal::RpcMethod::SERVER_STREAMING, channel) + , rpcmethod_EchoBiDi_(EchoService_method_names[2], ::grpc::internal::RpcMethod::BIDI_STREAMING, channel) {} ::grpc::Status EchoService::Stub::Echo(::grpc::ClientContext* context, const ::proto::rpc::examples::echo::v1::EchoRequest& request, ::proto::rpc::examples::echo::v1::EchoResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::proto::rpc::examples::echo::v1::EchoRequest, ::proto::rpc::examples::echo::v1::EchoResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Echo_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_Echo_, context, request, response); } -void EchoService::Stub::async::Echo(::grpc::ClientContext* context, const ::proto::rpc::examples::echo::v1::EchoRequest* request, ::proto::rpc::examples::echo::v1::EchoResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::proto::rpc::examples::echo::v1::EchoRequest, ::proto::rpc::examples::echo::v1::EchoResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Echo_, context, request, response, std::move(f)); +void EchoService::Stub::experimental_async::Echo(::grpc::ClientContext* context, const ::proto::rpc::examples::echo::v1::EchoRequest* request, ::proto::rpc::examples::echo::v1::EchoResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Echo_, context, request, response, std::move(f)); } -void EchoService::Stub::async::Echo(::grpc::ClientContext* context, const ::proto::rpc::examples::echo::v1::EchoRequest* request, ::proto::rpc::examples::echo::v1::EchoResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Echo_, context, request, response, reactor); +void EchoService::Stub::experimental_async::Echo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::proto::rpc::examples::echo::v1::EchoResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Echo_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::proto::rpc::examples::echo::v1::EchoResponse>* EchoService::Stub::PrepareAsyncEchoRaw(::grpc::ClientContext* context, const ::proto::rpc::examples::echo::v1::EchoRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::proto::rpc::examples::echo::v1::EchoResponse, ::proto::rpc::examples::echo::v1::EchoRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Echo_, context, request); +void EchoService::Stub::experimental_async::Echo(::grpc::ClientContext* context, const ::proto::rpc::examples::echo::v1::EchoRequest* request, ::proto::rpc::examples::echo::v1::EchoResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Echo_, context, request, response, reactor); +} + +void EchoService::Stub::experimental_async::Echo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::proto::rpc::examples::echo::v1::EchoResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Echo_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::proto::rpc::examples::echo::v1::EchoResponse>* EchoService::Stub::AsyncEchoRaw(::grpc::ClientContext* context, const ::proto::rpc::examples::echo::v1::EchoRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncEchoRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::proto::rpc::examples::echo::v1::EchoResponse>::Create(channel_.get(), cq, rpcmethod_Echo_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::proto::rpc::examples::echo::v1::EchoResponse>* EchoService::Stub::PrepareAsyncEchoRaw(::grpc::ClientContext* context, const ::proto::rpc::examples::echo::v1::EchoRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::proto::rpc::examples::echo::v1::EchoResponse>::Create(channel_.get(), cq, rpcmethod_Echo_, context, request, false); } ::grpc::ClientReader< ::proto::rpc::examples::echo::v1::EchoMultipleResponse>* EchoService::Stub::EchoMultipleRaw(::grpc::ClientContext* context, const ::proto::rpc::examples::echo::v1::EchoMultipleRequest& request) { - return ::grpc::internal::ClientReaderFactory< ::proto::rpc::examples::echo::v1::EchoMultipleResponse>::Create(channel_.get(), rpcmethod_EchoMultiple_, context, request); + return ::grpc_impl::internal::ClientReaderFactory< ::proto::rpc::examples::echo::v1::EchoMultipleResponse>::Create(channel_.get(), rpcmethod_EchoMultiple_, context, request); } -void EchoService::Stub::async::EchoMultiple(::grpc::ClientContext* context, const ::proto::rpc::examples::echo::v1::EchoMultipleRequest* request, ::grpc::ClientReadReactor< ::proto::rpc::examples::echo::v1::EchoMultipleResponse>* reactor) { - ::grpc::internal::ClientCallbackReaderFactory< ::proto::rpc::examples::echo::v1::EchoMultipleResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_EchoMultiple_, context, request, reactor); +void EchoService::Stub::experimental_async::EchoMultiple(::grpc::ClientContext* context, ::proto::rpc::examples::echo::v1::EchoMultipleRequest* request, ::grpc::experimental::ClientReadReactor< ::proto::rpc::examples::echo::v1::EchoMultipleResponse>* reactor) { + ::grpc_impl::internal::ClientCallbackReaderFactory< ::proto::rpc::examples::echo::v1::EchoMultipleResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_EchoMultiple_, context, request, reactor); } ::grpc::ClientAsyncReader< ::proto::rpc::examples::echo::v1::EchoMultipleResponse>* EchoService::Stub::AsyncEchoMultipleRaw(::grpc::ClientContext* context, const ::proto::rpc::examples::echo::v1::EchoMultipleRequest& request, ::grpc::CompletionQueue* cq, void* tag) { - return ::grpc::internal::ClientAsyncReaderFactory< ::proto::rpc::examples::echo::v1::EchoMultipleResponse>::Create(channel_.get(), cq, rpcmethod_EchoMultiple_, context, request, true, tag); + return ::grpc_impl::internal::ClientAsyncReaderFactory< ::proto::rpc::examples::echo::v1::EchoMultipleResponse>::Create(channel_.get(), cq, rpcmethod_EchoMultiple_, context, request, true, tag); } ::grpc::ClientAsyncReader< ::proto::rpc::examples::echo::v1::EchoMultipleResponse>* EchoService::Stub::PrepareAsyncEchoMultipleRaw(::grpc::ClientContext* context, const ::proto::rpc::examples::echo::v1::EchoMultipleRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncReaderFactory< ::proto::rpc::examples::echo::v1::EchoMultipleResponse>::Create(channel_.get(), cq, rpcmethod_EchoMultiple_, context, request, false, nullptr); + return ::grpc_impl::internal::ClientAsyncReaderFactory< ::proto::rpc::examples::echo::v1::EchoMultipleResponse>::Create(channel_.get(), cq, rpcmethod_EchoMultiple_, context, request, false, nullptr); } ::grpc::ClientReaderWriter< ::proto::rpc::examples::echo::v1::EchoBiDiRequest, ::proto::rpc::examples::echo::v1::EchoBiDiResponse>* EchoService::Stub::EchoBiDiRaw(::grpc::ClientContext* context) { - return ::grpc::internal::ClientReaderWriterFactory< ::proto::rpc::examples::echo::v1::EchoBiDiRequest, ::proto::rpc::examples::echo::v1::EchoBiDiResponse>::Create(channel_.get(), rpcmethod_EchoBiDi_, context); + return ::grpc_impl::internal::ClientReaderWriterFactory< ::proto::rpc::examples::echo::v1::EchoBiDiRequest, ::proto::rpc::examples::echo::v1::EchoBiDiResponse>::Create(channel_.get(), rpcmethod_EchoBiDi_, context); } -void EchoService::Stub::async::EchoBiDi(::grpc::ClientContext* context, ::grpc::ClientBidiReactor< ::proto::rpc::examples::echo::v1::EchoBiDiRequest,::proto::rpc::examples::echo::v1::EchoBiDiResponse>* reactor) { - ::grpc::internal::ClientCallbackReaderWriterFactory< ::proto::rpc::examples::echo::v1::EchoBiDiRequest,::proto::rpc::examples::echo::v1::EchoBiDiResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_EchoBiDi_, context, reactor); +void EchoService::Stub::experimental_async::EchoBiDi(::grpc::ClientContext* context, ::grpc::experimental::ClientBidiReactor< ::proto::rpc::examples::echo::v1::EchoBiDiRequest,::proto::rpc::examples::echo::v1::EchoBiDiResponse>* reactor) { + ::grpc_impl::internal::ClientCallbackReaderWriterFactory< ::proto::rpc::examples::echo::v1::EchoBiDiRequest,::proto::rpc::examples::echo::v1::EchoBiDiResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_EchoBiDi_, context, reactor); } ::grpc::ClientAsyncReaderWriter< ::proto::rpc::examples::echo::v1::EchoBiDiRequest, ::proto::rpc::examples::echo::v1::EchoBiDiResponse>* EchoService::Stub::AsyncEchoBiDiRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) { - return ::grpc::internal::ClientAsyncReaderWriterFactory< ::proto::rpc::examples::echo::v1::EchoBiDiRequest, ::proto::rpc::examples::echo::v1::EchoBiDiResponse>::Create(channel_.get(), cq, rpcmethod_EchoBiDi_, context, true, tag); + return ::grpc_impl::internal::ClientAsyncReaderWriterFactory< ::proto::rpc::examples::echo::v1::EchoBiDiRequest, ::proto::rpc::examples::echo::v1::EchoBiDiResponse>::Create(channel_.get(), cq, rpcmethod_EchoBiDi_, context, true, tag); } ::grpc::ClientAsyncReaderWriter< ::proto::rpc::examples::echo::v1::EchoBiDiRequest, ::proto::rpc::examples::echo::v1::EchoBiDiResponse>* EchoService::Stub::PrepareAsyncEchoBiDiRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncReaderWriterFactory< ::proto::rpc::examples::echo::v1::EchoBiDiRequest, ::proto::rpc::examples::echo::v1::EchoBiDiResponse>::Create(channel_.get(), cq, rpcmethod_EchoBiDi_, context, false, nullptr); + return ::grpc_impl::internal::ClientAsyncReaderWriterFactory< ::proto::rpc::examples::echo::v1::EchoBiDiRequest, ::proto::rpc::examples::echo::v1::EchoBiDiResponse>::Create(channel_.get(), cq, rpcmethod_EchoBiDi_, context, false, nullptr); } EchoService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( EchoService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< EchoService::Service, ::proto::rpc::examples::echo::v1::EchoRequest, ::proto::rpc::examples::echo::v1::EchoResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< EchoService::Service, ::proto::rpc::examples::echo::v1::EchoRequest, ::proto::rpc::examples::echo::v1::EchoResponse>( [](EchoService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::proto::rpc::examples::echo::v1::EchoRequest* req, ::proto::rpc::examples::echo::v1::EchoResponse* resp) { return service->Echo(ctx, req, resp); @@ -114,9 +119,9 @@ EchoService::Service::Service() { ::grpc::internal::RpcMethod::SERVER_STREAMING, new ::grpc::internal::ServerStreamingHandler< EchoService::Service, ::proto::rpc::examples::echo::v1::EchoMultipleRequest, ::proto::rpc::examples::echo::v1::EchoMultipleResponse>( [](EchoService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::proto::rpc::examples::echo::v1::EchoMultipleRequest* req, - ::grpc::ServerWriter<::proto::rpc::examples::echo::v1::EchoMultipleResponse>* writer) { + ::grpc_impl::ServerWriter<::proto::rpc::examples::echo::v1::EchoMultipleResponse>* writer) { return service->EchoMultiple(ctx, req, writer); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( @@ -124,8 +129,8 @@ EchoService::Service::Service() { ::grpc::internal::RpcMethod::BIDI_STREAMING, new ::grpc::internal::BidiStreamingHandler< EchoService::Service, ::proto::rpc::examples::echo::v1::EchoBiDiRequest, ::proto::rpc::examples::echo::v1::EchoBiDiResponse>( [](EchoService::Service* service, - ::grpc::ServerContext* ctx, - ::grpc::ServerReaderWriter<::proto::rpc::examples::echo::v1::EchoBiDiResponse, + ::grpc_impl::ServerContext* ctx, + ::grpc_impl::ServerReaderWriter<::proto::rpc::examples::echo::v1::EchoBiDiResponse, ::proto::rpc::examples::echo::v1::EchoBiDiRequest>* stream) { return service->EchoBiDi(ctx, stream); }, this))); diff --git a/src/viam/api/proto/rpc/examples/echo/v1/echo.grpc.pb.h b/src/viam/api/proto/rpc/examples/echo/v1/echo.grpc.pb.h index 12b3ef1c0..3ba97836b 100644 --- a/src/viam/api/proto/rpc/examples/echo/v1/echo.grpc.pb.h +++ b/src/viam/api/proto/rpc/examples/echo/v1/echo.grpc.pb.h @@ -7,23 +7,24 @@ #include "proto/rpc/examples/echo/v1/echo.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace proto { namespace rpc { @@ -64,18 +65,40 @@ class EchoService final { std::unique_ptr< ::grpc::ClientAsyncReaderWriterInterface< ::proto::rpc::examples::echo::v1::EchoBiDiRequest, ::proto::rpc::examples::echo::v1::EchoBiDiResponse>> PrepareAsyncEchoBiDi(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncReaderWriterInterface< ::proto::rpc::examples::echo::v1::EchoBiDiRequest, ::proto::rpc::examples::echo::v1::EchoBiDiResponse>>(PrepareAsyncEchoBiDiRaw(context, cq)); } - class async_interface { + class experimental_async_interface { public: - virtual ~async_interface() {} + virtual ~experimental_async_interface() {} virtual void Echo(::grpc::ClientContext* context, const ::proto::rpc::examples::echo::v1::EchoRequest* request, ::proto::rpc::examples::echo::v1::EchoResponse* response, std::function) = 0; + virtual void Echo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::proto::rpc::examples::echo::v1::EchoResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void Echo(::grpc::ClientContext* context, const ::proto::rpc::examples::echo::v1::EchoRequest* request, ::proto::rpc::examples::echo::v1::EchoResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - virtual void EchoMultiple(::grpc::ClientContext* context, const ::proto::rpc::examples::echo::v1::EchoMultipleRequest* request, ::grpc::ClientReadReactor< ::proto::rpc::examples::echo::v1::EchoMultipleResponse>* reactor) = 0; + #else + virtual void Echo(::grpc::ClientContext* context, const ::proto::rpc::examples::echo::v1::EchoRequest* request, ::proto::rpc::examples::echo::v1::EchoResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void Echo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::proto::rpc::examples::echo::v1::EchoResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void Echo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::proto::rpc::examples::echo::v1::EchoResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void EchoMultiple(::grpc::ClientContext* context, ::proto::rpc::examples::echo::v1::EchoMultipleRequest* request, ::grpc::ClientReadReactor< ::proto::rpc::examples::echo::v1::EchoMultipleResponse>* reactor) = 0; + #else + virtual void EchoMultiple(::grpc::ClientContext* context, ::proto::rpc::examples::echo::v1::EchoMultipleRequest* request, ::grpc::experimental::ClientReadReactor< ::proto::rpc::examples::echo::v1::EchoMultipleResponse>* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void EchoBiDi(::grpc::ClientContext* context, ::grpc::ClientBidiReactor< ::proto::rpc::examples::echo::v1::EchoBiDiRequest,::proto::rpc::examples::echo::v1::EchoBiDiResponse>* reactor) = 0; + #else + virtual void EchoBiDi(::grpc::ClientContext* context, ::grpc::experimental::ClientBidiReactor< ::proto::rpc::examples::echo::v1::EchoBiDiRequest,::proto::rpc::examples::echo::v1::EchoBiDiResponse>* reactor) = 0; + #endif }; - typedef class async_interface experimental_async_interface; - virtual class async_interface* async() { return nullptr; } - class async_interface* experimental_async() { return async(); } - private: + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef class experimental_async_interface async_interface; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + async_interface* async() { return experimental_async(); } + #endif + virtual class experimental_async_interface* experimental_async() { return nullptr; } + private: virtual ::grpc::ClientAsyncResponseReaderInterface< ::proto::rpc::examples::echo::v1::EchoResponse>* AsyncEchoRaw(::grpc::ClientContext* context, const ::proto::rpc::examples::echo::v1::EchoRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::proto::rpc::examples::echo::v1::EchoResponse>* PrepareAsyncEchoRaw(::grpc::ClientContext* context, const ::proto::rpc::examples::echo::v1::EchoRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientReaderInterface< ::proto::rpc::examples::echo::v1::EchoMultipleResponse>* EchoMultipleRaw(::grpc::ClientContext* context, const ::proto::rpc::examples::echo::v1::EchoMultipleRequest& request) = 0; @@ -87,7 +110,7 @@ class EchoService final { }; class Stub final : public StubInterface { public: - Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); ::grpc::Status Echo(::grpc::ClientContext* context, const ::proto::rpc::examples::echo::v1::EchoRequest& request, ::proto::rpc::examples::echo::v1::EchoResponse* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::proto::rpc::examples::echo::v1::EchoResponse>> AsyncEcho(::grpc::ClientContext* context, const ::proto::rpc::examples::echo::v1::EchoRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::proto::rpc::examples::echo::v1::EchoResponse>>(AsyncEchoRaw(context, request, cq)); @@ -113,24 +136,42 @@ class EchoService final { std::unique_ptr< ::grpc::ClientAsyncReaderWriter< ::proto::rpc::examples::echo::v1::EchoBiDiRequest, ::proto::rpc::examples::echo::v1::EchoBiDiResponse>> PrepareAsyncEchoBiDi(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncReaderWriter< ::proto::rpc::examples::echo::v1::EchoBiDiRequest, ::proto::rpc::examples::echo::v1::EchoBiDiResponse>>(PrepareAsyncEchoBiDiRaw(context, cq)); } - class async final : - public StubInterface::async_interface { + class experimental_async final : + public StubInterface::experimental_async_interface { public: void Echo(::grpc::ClientContext* context, const ::proto::rpc::examples::echo::v1::EchoRequest* request, ::proto::rpc::examples::echo::v1::EchoResponse* response, std::function) override; + void Echo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::proto::rpc::examples::echo::v1::EchoResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void Echo(::grpc::ClientContext* context, const ::proto::rpc::examples::echo::v1::EchoRequest* request, ::proto::rpc::examples::echo::v1::EchoResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - void EchoMultiple(::grpc::ClientContext* context, const ::proto::rpc::examples::echo::v1::EchoMultipleRequest* request, ::grpc::ClientReadReactor< ::proto::rpc::examples::echo::v1::EchoMultipleResponse>* reactor) override; + #else + void Echo(::grpc::ClientContext* context, const ::proto::rpc::examples::echo::v1::EchoRequest* request, ::proto::rpc::examples::echo::v1::EchoResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void Echo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::proto::rpc::examples::echo::v1::EchoResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void Echo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::proto::rpc::examples::echo::v1::EchoResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void EchoMultiple(::grpc::ClientContext* context, ::proto::rpc::examples::echo::v1::EchoMultipleRequest* request, ::grpc::ClientReadReactor< ::proto::rpc::examples::echo::v1::EchoMultipleResponse>* reactor) override; + #else + void EchoMultiple(::grpc::ClientContext* context, ::proto::rpc::examples::echo::v1::EchoMultipleRequest* request, ::grpc::experimental::ClientReadReactor< ::proto::rpc::examples::echo::v1::EchoMultipleResponse>* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void EchoBiDi(::grpc::ClientContext* context, ::grpc::ClientBidiReactor< ::proto::rpc::examples::echo::v1::EchoBiDiRequest,::proto::rpc::examples::echo::v1::EchoBiDiResponse>* reactor) override; + #else + void EchoBiDi(::grpc::ClientContext* context, ::grpc::experimental::ClientBidiReactor< ::proto::rpc::examples::echo::v1::EchoBiDiRequest,::proto::rpc::examples::echo::v1::EchoBiDiResponse>* reactor) override; + #endif private: friend class Stub; - explicit async(Stub* stub): stub_(stub) { } + explicit experimental_async(Stub* stub): stub_(stub) { } Stub* stub() { return stub_; } Stub* stub_; }; - class async* async() override { return &async_stub_; } + class experimental_async_interface* experimental_async() override { return &async_stub_; } private: std::shared_ptr< ::grpc::ChannelInterface> channel_; - class async async_stub_{this}; + class experimental_async async_stub_{this}; ::grpc::ClientAsyncResponseReader< ::proto::rpc::examples::echo::v1::EchoResponse>* AsyncEchoRaw(::grpc::ClientContext* context, const ::proto::rpc::examples::echo::v1::EchoRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::proto::rpc::examples::echo::v1::EchoResponse>* PrepareAsyncEchoRaw(::grpc::ClientContext* context, const ::proto::rpc::examples::echo::v1::EchoRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientReader< ::proto::rpc::examples::echo::v1::EchoMultipleResponse>* EchoMultipleRaw(::grpc::ClientContext* context, const ::proto::rpc::examples::echo::v1::EchoMultipleRequest& request) override; @@ -215,22 +256,36 @@ class EchoService final { }; typedef WithAsyncMethod_Echo > > AsyncService; template - class WithCallbackMethod_Echo : public BaseClass { + class ExperimentalWithCallbackMethod_Echo : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_Echo() { - ::grpc::Service::MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::proto::rpc::examples::echo::v1::EchoRequest, ::proto::rpc::examples::echo::v1::EchoResponse>( + ExperimentalWithCallbackMethod_Echo() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::proto::rpc::examples::echo::v1::EchoRequest, ::proto::rpc::examples::echo::v1::EchoResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::proto::rpc::examples::echo::v1::EchoRequest* request, ::proto::rpc::examples::echo::v1::EchoResponse* response) { return this->Echo(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::proto::rpc::examples::echo::v1::EchoRequest* request, ::proto::rpc::examples::echo::v1::EchoResponse* response) { return this->Echo(context, request, response); }));} void SetMessageAllocatorFor_Echo( - ::grpc::MessageAllocator< ::proto::rpc::examples::echo::v1::EchoRequest, ::proto::rpc::examples::echo::v1::EchoResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::proto::rpc::examples::echo::v1::EchoRequest, ::proto::rpc::examples::echo::v1::EchoResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); - static_cast<::grpc::internal::CallbackUnaryHandler< ::proto::rpc::examples::echo::v1::EchoRequest, ::proto::rpc::examples::echo::v1::EchoResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(0); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::proto::rpc::examples::echo::v1::EchoRequest, ::proto::rpc::examples::echo::v1::EchoResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_Echo() override { + ~ExperimentalWithCallbackMethod_Echo() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -238,21 +293,37 @@ class EchoService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* Echo( - ::grpc::CallbackServerContext* /*context*/, const ::proto::rpc::examples::echo::v1::EchoRequest* /*request*/, ::proto::rpc::examples::echo::v1::EchoResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::proto::rpc::examples::echo::v1::EchoRequest* /*request*/, ::proto::rpc::examples::echo::v1::EchoResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* Echo( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::proto::rpc::examples::echo::v1::EchoRequest* /*request*/, ::proto::rpc::examples::echo::v1::EchoResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_EchoMultiple : public BaseClass { + class ExperimentalWithCallbackMethod_EchoMultiple : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_EchoMultiple() { - ::grpc::Service::MarkMethodCallback(1, - new ::grpc::internal::CallbackServerStreamingHandler< ::proto::rpc::examples::echo::v1::EchoMultipleRequest, ::proto::rpc::examples::echo::v1::EchoMultipleResponse>( + ExperimentalWithCallbackMethod_EchoMultiple() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(1, + new ::grpc_impl::internal::CallbackServerStreamingHandler< ::proto::rpc::examples::echo::v1::EchoMultipleRequest, ::proto::rpc::examples::echo::v1::EchoMultipleResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::proto::rpc::examples::echo::v1::EchoMultipleRequest* request) { return this->EchoMultiple(context, request); })); - } - ~WithCallbackMethod_EchoMultiple() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::proto::rpc::examples::echo::v1::EchoMultipleRequest* request) { return this->EchoMultiple(context, request); })); + } + ~ExperimentalWithCallbackMethod_EchoMultiple() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -260,21 +331,37 @@ class EchoService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerWriteReactor< ::proto::rpc::examples::echo::v1::EchoMultipleResponse>* EchoMultiple( - ::grpc::CallbackServerContext* /*context*/, const ::proto::rpc::examples::echo::v1::EchoMultipleRequest* /*request*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::proto::rpc::examples::echo::v1::EchoMultipleRequest* /*request*/) + #else + virtual ::grpc::experimental::ServerWriteReactor< ::proto::rpc::examples::echo::v1::EchoMultipleResponse>* EchoMultiple( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::proto::rpc::examples::echo::v1::EchoMultipleRequest* /*request*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_EchoBiDi : public BaseClass { + class ExperimentalWithCallbackMethod_EchoBiDi : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_EchoBiDi() { - ::grpc::Service::MarkMethodCallback(2, - new ::grpc::internal::CallbackBidiHandler< ::proto::rpc::examples::echo::v1::EchoBiDiRequest, ::proto::rpc::examples::echo::v1::EchoBiDiResponse>( + ExperimentalWithCallbackMethod_EchoBiDi() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(2, + new ::grpc_impl::internal::CallbackBidiHandler< ::proto::rpc::examples::echo::v1::EchoBiDiRequest, ::proto::rpc::examples::echo::v1::EchoBiDiResponse>( [this]( - ::grpc::CallbackServerContext* context) { return this->EchoBiDi(context); })); - } - ~WithCallbackMethod_EchoBiDi() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context) { return this->EchoBiDi(context); })); + } + ~ExperimentalWithCallbackMethod_EchoBiDi() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -282,12 +369,20 @@ class EchoService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerBidiReactor< ::proto::rpc::examples::echo::v1::EchoBiDiRequest, ::proto::rpc::examples::echo::v1::EchoBiDiResponse>* EchoBiDi( ::grpc::CallbackServerContext* /*context*/) + #else + virtual ::grpc::experimental::ServerBidiReactor< ::proto::rpc::examples::echo::v1::EchoBiDiRequest, ::proto::rpc::examples::echo::v1::EchoBiDiResponse>* EchoBiDi( + ::grpc::experimental::CallbackServerContext* /*context*/) + #endif { return nullptr; } }; - typedef WithCallbackMethod_Echo > > CallbackService; - typedef CallbackService ExperimentalCallbackService; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef ExperimentalWithCallbackMethod_Echo > > CallbackService; + #endif + + typedef ExperimentalWithCallbackMethod_Echo > > ExperimentalCallbackService; template class WithGenericMethod_Echo : public BaseClass { private: @@ -400,17 +495,27 @@ class EchoService final { } }; template - class WithRawCallbackMethod_Echo : public BaseClass { + class ExperimentalWithRawCallbackMethod_Echo : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_Echo() { - ::grpc::Service::MarkMethodRawCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_Echo() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Echo(context, request, response); })); - } - ~WithRawCallbackMethod_Echo() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Echo(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_Echo() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -418,21 +523,37 @@ class EchoService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* Echo( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* Echo( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_EchoMultiple : public BaseClass { + class ExperimentalWithRawCallbackMethod_EchoMultiple : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_EchoMultiple() { - ::grpc::Service::MarkMethodRawCallback(1, - new ::grpc::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_EchoMultiple() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(1, + new ::grpc_impl::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const::grpc::ByteBuffer* request) { return this->EchoMultiple(context, request); })); - } - ~WithRawCallbackMethod_EchoMultiple() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const::grpc::ByteBuffer* request) { return this->EchoMultiple(context, request); })); + } + ~ExperimentalWithRawCallbackMethod_EchoMultiple() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -440,21 +561,37 @@ class EchoService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerWriteReactor< ::grpc::ByteBuffer>* EchoMultiple( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) + #else + virtual ::grpc::experimental::ServerWriteReactor< ::grpc::ByteBuffer>* EchoMultiple( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_EchoBiDi : public BaseClass { + class ExperimentalWithRawCallbackMethod_EchoBiDi : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_EchoBiDi() { - ::grpc::Service::MarkMethodRawCallback(2, - new ::grpc::internal::CallbackBidiHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_EchoBiDi() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(2, + new ::grpc_impl::internal::CallbackBidiHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context) { return this->EchoBiDi(context); })); - } - ~WithRawCallbackMethod_EchoBiDi() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context) { return this->EchoBiDi(context); })); + } + ~ExperimentalWithRawCallbackMethod_EchoBiDi() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -462,8 +599,13 @@ class EchoService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerBidiReactor< ::grpc::ByteBuffer, ::grpc::ByteBuffer>* EchoBiDi( ::grpc::CallbackServerContext* /*context*/) + #else + virtual ::grpc::experimental::ServerBidiReactor< ::grpc::ByteBuffer, ::grpc::ByteBuffer>* EchoBiDi( + ::grpc::experimental::CallbackServerContext* /*context*/) + #endif { return nullptr; } }; template @@ -475,8 +617,8 @@ class EchoService final { ::grpc::Service::MarkMethodStreamed(0, new ::grpc::internal::StreamedUnaryHandler< ::proto::rpc::examples::echo::v1::EchoRequest, ::proto::rpc::examples::echo::v1::EchoResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::proto::rpc::examples::echo::v1::EchoRequest, ::proto::rpc::examples::echo::v1::EchoResponse>* streamer) { return this->StreamedEcho(context, streamer); @@ -503,8 +645,8 @@ class EchoService final { ::grpc::Service::MarkMethodStreamed(1, new ::grpc::internal::SplitServerStreamingHandler< ::proto::rpc::examples::echo::v1::EchoMultipleRequest, ::proto::rpc::examples::echo::v1::EchoMultipleResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerSplitStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerSplitStreamer< ::proto::rpc::examples::echo::v1::EchoMultipleRequest, ::proto::rpc::examples::echo::v1::EchoMultipleResponse>* streamer) { return this->StreamedEchoMultiple(context, streamer); diff --git a/src/viam/api/proto/rpc/examples/echo/v1/echo.pb.cc b/src/viam/api/proto/rpc/examples/echo/v1/echo.pb.cc index 375bedf93..513c192f5 100644 --- a/src/viam/api/proto/rpc/examples/echo/v1/echo.pb.cc +++ b/src/viam/api/proto/rpc/examples/echo/v1/echo.pb.cc @@ -4,472 +4,382 @@ #include "proto/rpc/examples/echo/v1/echo.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace proto { namespace rpc { namespace examples { namespace echo { namespace v1 { - -inline constexpr EchoResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : message_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR EchoResponse::EchoResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct EchoResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR EchoResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~EchoResponseDefaultTypeInternal() {} - union { - EchoResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EchoResponseDefaultTypeInternal _EchoResponse_default_instance_; - -inline constexpr EchoRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : message_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR EchoRequest::EchoRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_CONSTEXPR EchoRequest::EchoRequest( + ::_pbi::ConstantInitialized) + : message_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} struct EchoRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR EchoRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR EchoRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~EchoRequestDefaultTypeInternal() {} union { EchoRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EchoRequestDefaultTypeInternal _EchoRequest_default_instance_; - -inline constexpr EchoMultipleResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : message_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR EchoMultipleResponse::EchoMultipleResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct EchoMultipleResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR EchoMultipleResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~EchoMultipleResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EchoRequestDefaultTypeInternal _EchoRequest_default_instance_; +PROTOBUF_CONSTEXPR EchoResponse::EchoResponse( + ::_pbi::ConstantInitialized) + : message_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct EchoResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR EchoResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~EchoResponseDefaultTypeInternal() {} union { - EchoMultipleResponse _instance; + EchoResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EchoMultipleResponseDefaultTypeInternal _EchoMultipleResponse_default_instance_; - -inline constexpr EchoMultipleRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : message_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR EchoMultipleRequest::EchoMultipleRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EchoResponseDefaultTypeInternal _EchoResponse_default_instance_; +PROTOBUF_CONSTEXPR EchoMultipleRequest::EchoMultipleRequest( + ::_pbi::ConstantInitialized) + : message_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} struct EchoMultipleRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR EchoMultipleRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR EchoMultipleRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~EchoMultipleRequestDefaultTypeInternal() {} union { EchoMultipleRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EchoMultipleRequestDefaultTypeInternal _EchoMultipleRequest_default_instance_; - -inline constexpr EchoBiDiResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : message_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR EchoBiDiResponse::EchoBiDiResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct EchoBiDiResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR EchoBiDiResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~EchoBiDiResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EchoMultipleRequestDefaultTypeInternal _EchoMultipleRequest_default_instance_; +PROTOBUF_CONSTEXPR EchoMultipleResponse::EchoMultipleResponse( + ::_pbi::ConstantInitialized) + : message_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct EchoMultipleResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR EchoMultipleResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~EchoMultipleResponseDefaultTypeInternal() {} union { - EchoBiDiResponse _instance; + EchoMultipleResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EchoBiDiResponseDefaultTypeInternal _EchoBiDiResponse_default_instance_; - -inline constexpr EchoBiDiRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : message_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR EchoBiDiRequest::EchoBiDiRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EchoMultipleResponseDefaultTypeInternal _EchoMultipleResponse_default_instance_; +PROTOBUF_CONSTEXPR EchoBiDiRequest::EchoBiDiRequest( + ::_pbi::ConstantInitialized) + : message_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} struct EchoBiDiRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR EchoBiDiRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR EchoBiDiRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~EchoBiDiRequestDefaultTypeInternal() {} union { EchoBiDiRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EchoBiDiRequestDefaultTypeInternal _EchoBiDiRequest_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EchoBiDiRequestDefaultTypeInternal _EchoBiDiRequest_default_instance_; +PROTOBUF_CONSTEXPR EchoBiDiResponse::EchoBiDiResponse( + ::_pbi::ConstantInitialized) + : message_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct EchoBiDiResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR EchoBiDiResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~EchoBiDiResponseDefaultTypeInternal() {} + union { + EchoBiDiResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EchoBiDiResponseDefaultTypeInternal _EchoBiDiResponse_default_instance_; } // namespace v1 } // namespace echo } // namespace examples } // namespace rpc } // namespace proto static ::_pb::Metadata file_level_metadata_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto[6]; -static constexpr const ::_pb::EnumDescriptor** - file_level_enum_descriptors_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto = nullptr; -const ::uint32_t TableStruct_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::proto::rpc::examples::echo::v1::EchoRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::proto::rpc::examples::echo::v1::EchoRequest, _impl_.message_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::proto::rpc::examples::echo::v1::EchoResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::proto::rpc::examples::echo::v1::EchoResponse, _impl_.message_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::proto::rpc::examples::echo::v1::EchoMultipleRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::proto::rpc::examples::echo::v1::EchoMultipleRequest, _impl_.message_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::proto::rpc::examples::echo::v1::EchoMultipleResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::proto::rpc::examples::echo::v1::EchoMultipleResponse, _impl_.message_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::proto::rpc::examples::echo::v1::EchoBiDiRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::proto::rpc::examples::echo::v1::EchoBiDiRequest, _impl_.message_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::proto::rpc::examples::echo::v1::EchoBiDiResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::proto::rpc::examples::echo::v1::EchoBiDiResponse, _impl_.message_), +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto = nullptr; + +const uint32_t TableStruct_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::examples::echo::v1::EchoRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::examples::echo::v1::EchoRequest, message_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::examples::echo::v1::EchoResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::examples::echo::v1::EchoResponse, message_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::examples::echo::v1::EchoMultipleRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::examples::echo::v1::EchoMultipleRequest, message_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::examples::echo::v1::EchoMultipleResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::examples::echo::v1::EchoMultipleResponse, message_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::examples::echo::v1::EchoBiDiRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::examples::echo::v1::EchoBiDiRequest, message_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::examples::echo::v1::EchoBiDiResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::examples::echo::v1::EchoBiDiResponse, message_), }; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, -1, -1, sizeof(::proto::rpc::examples::echo::v1::EchoRequest)}, - {9, -1, -1, sizeof(::proto::rpc::examples::echo::v1::EchoResponse)}, - {18, -1, -1, sizeof(::proto::rpc::examples::echo::v1::EchoMultipleRequest)}, - {27, -1, -1, sizeof(::proto::rpc::examples::echo::v1::EchoMultipleResponse)}, - {36, -1, -1, sizeof(::proto::rpc::examples::echo::v1::EchoBiDiRequest)}, - {45, -1, -1, sizeof(::proto::rpc::examples::echo::v1::EchoBiDiResponse)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::proto::rpc::examples::echo::v1::EchoRequest)}, + { 7, -1, -1, sizeof(::proto::rpc::examples::echo::v1::EchoResponse)}, + { 14, -1, -1, sizeof(::proto::rpc::examples::echo::v1::EchoMultipleRequest)}, + { 21, -1, -1, sizeof(::proto::rpc::examples::echo::v1::EchoMultipleResponse)}, + { 28, -1, -1, sizeof(::proto::rpc::examples::echo::v1::EchoBiDiRequest)}, + { 35, -1, -1, sizeof(::proto::rpc::examples::echo::v1::EchoBiDiResponse)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::proto::rpc::examples::echo::v1::_EchoRequest_default_instance_._instance, - &::proto::rpc::examples::echo::v1::_EchoResponse_default_instance_._instance, - &::proto::rpc::examples::echo::v1::_EchoMultipleRequest_default_instance_._instance, - &::proto::rpc::examples::echo::v1::_EchoMultipleResponse_default_instance_._instance, - &::proto::rpc::examples::echo::v1::_EchoBiDiRequest_default_instance_._instance, - &::proto::rpc::examples::echo::v1::_EchoBiDiResponse_default_instance_._instance, -}; -const char descriptor_table_protodef_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n%proto/rpc/examples/echo/v1/echo.proto\022" - "\032proto.rpc.examples.echo.v1\032\034google/api/" - "annotations.proto\"\'\n\013EchoRequest\022\030\n\007mess" - "age\030\001 \001(\tR\007message\"(\n\014EchoResponse\022\030\n\007me" - "ssage\030\001 \001(\tR\007message\"/\n\023EchoMultipleRequ" - "est\022\030\n\007message\030\001 \001(\tR\007message\"0\n\024EchoMul" - "tipleResponse\022\030\n\007message\030\001 \001(\tR\007message\"" - "+\n\017EchoBiDiRequest\022\030\n\007message\030\001 \001(\tR\007mes" - "sage\",\n\020EchoBiDiResponse\022\030\n\007message\030\001 \001(" - "\tR\007message2\364\002\n\013EchoService\022\200\001\n\004Echo\022\'.pr" - "oto.rpc.examples.echo.v1.EchoRequest\032(.p" - "roto.rpc.examples.echo.v1.EchoResponse\"%" - "\202\323\344\223\002\037\"\032/rpc/examples/echo/v1/echo:\001*\022u\n" - "\014EchoMultiple\022/.proto.rpc.examples.echo." - "v1.EchoMultipleRequest\0320.proto.rpc.examp" - "les.echo.v1.EchoMultipleResponse\"\0000\001\022k\n\010" - "EchoBiDi\022+.proto.rpc.examples.echo.v1.Ec" - "hoBiDiRequest\032,.proto.rpc.examples.echo." - "v1.EchoBiDiResponse\"\000(\0010\001B\350\001\n\036com.proto." - "rpc.examples.echo.v1B\tEchoProtoP\001Z,go.vi" - "am.com/utils/proto/rpc/examples/echo/v1\242" - "\002\004PREE\252\002\032Proto.Rpc.Examples.Echo.V1\312\002\033Pr" - "oto\\Rpc\\Examples\\Echo_\\V1\342\002\'Proto\\Rpc\\Ex" - "amples\\Echo_\\V1\\GPBMetadata\352\002\036Proto::Rpc" - "::Examples::Echo::V1b\006proto3" + &::proto::rpc::examples::echo::v1::_EchoRequest_default_instance_._instance, + &::proto::rpc::examples::echo::v1::_EchoResponse_default_instance_._instance, + &::proto::rpc::examples::echo::v1::_EchoMultipleRequest_default_instance_._instance, + &::proto::rpc::examples::echo::v1::_EchoMultipleResponse_default_instance_._instance, + &::proto::rpc::examples::echo::v1::_EchoBiDiRequest_default_instance_._instance, + &::proto::rpc::examples::echo::v1::_EchoBiDiResponse_default_instance_._instance, }; -static const ::_pbi::DescriptorTable* const descriptor_table_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto_deps[1] = - { - &::descriptor_table_google_2fapi_2fannotations_2eproto, + +const char descriptor_table_protodef_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n%proto/rpc/examples/echo/v1/echo.proto\022" + "\032proto.rpc.examples.echo.v1\032\034google/api/" + "annotations.proto\"\'\n\013EchoRequest\022\030\n\007mess" + "age\030\001 \001(\tR\007message\"(\n\014EchoResponse\022\030\n\007me" + "ssage\030\001 \001(\tR\007message\"/\n\023EchoMultipleRequ" + "est\022\030\n\007message\030\001 \001(\tR\007message\"0\n\024EchoMul" + "tipleResponse\022\030\n\007message\030\001 \001(\tR\007message\"" + "+\n\017EchoBiDiRequest\022\030\n\007message\030\001 \001(\tR\007mes" + "sage\",\n\020EchoBiDiResponse\022\030\n\007message\030\001 \001(" + "\tR\007message2\364\002\n\013EchoService\022\200\001\n\004Echo\022\'.pr" + "oto.rpc.examples.echo.v1.EchoRequest\032(.p" + "roto.rpc.examples.echo.v1.EchoResponse\"%" + "\202\323\344\223\002\037:\001*\"\032/rpc/examples/echo/v1/echo\022u\n" + "\014EchoMultiple\022/.proto.rpc.examples.echo." + "v1.EchoMultipleRequest\0320.proto.rpc.examp" + "les.echo.v1.EchoMultipleResponse\"\0000\001\022k\n\010" + "EchoBiDi\022+.proto.rpc.examples.echo.v1.Ec" + "hoBiDiRequest\032,.proto.rpc.examples.echo." + "v1.EchoBiDiResponse\"\000(\0010\001B.Z,go.viam.com" + "/utils/proto/rpc/examples/echo/v1b\006proto" + "3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto_deps[1] = { + &::descriptor_table_google_2fapi_2fannotations_2eproto, }; -static ::absl::once_flag descriptor_table_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto_once; +static ::_pbi::once_flag descriptor_table_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto = { - false, - false, - 988, - descriptor_table_protodef_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto, + false, false, 801, descriptor_table_protodef_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto, "proto/rpc/examples/echo/v1/echo.proto", - &descriptor_table_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto_once, - descriptor_table_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto_deps, - 1, - 6, - schemas, - file_default_instances, - TableStruct_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto::offsets, - file_level_metadata_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto, - file_level_enum_descriptors_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto, + &descriptor_table_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto_once, descriptor_table_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto_deps, 1, 6, + schemas, file_default_instances, TableStruct_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto::offsets, + file_level_metadata_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto, file_level_enum_descriptors_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto, file_level_service_descriptors_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto_getter() { return &descriptor_table_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto(&descriptor_table_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto(&descriptor_table_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto); namespace proto { namespace rpc { namespace examples { namespace echo { namespace v1 { + // =================================================================== class EchoRequest::_Internal { public: }; -EchoRequest::EchoRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +EchoRequest::EchoRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:proto.rpc.examples.echo.v1.EchoRequest) } -inline PROTOBUF_NDEBUG_INLINE EchoRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : message_(arena, from.message_), - _cached_size_{0} {} - -EchoRequest::EchoRequest( - ::google::protobuf::Arena* arena, - const EchoRequest& from) - : ::google::protobuf::Message(arena) { - EchoRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +EchoRequest::EchoRequest(const EchoRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + message_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + message_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_message().empty()) { + message_.Set(from._internal_message(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:proto.rpc.examples.echo.v1.EchoRequest) } -inline PROTOBUF_NDEBUG_INLINE EchoRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : message_(arena), - _cached_size_{0} {} -inline void EchoRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void EchoRequest::SharedCtor() { +message_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + message_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + EchoRequest::~EchoRequest() { // @@protoc_insertion_point(destructor:proto.rpc.examples.echo.v1.EchoRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void EchoRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.message_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + message_.Destroy(); +} + +void EchoRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void EchoRequest::Clear() { +void EchoRequest::Clear() { // @@protoc_insertion_point(message_clear_start:proto.rpc.examples.echo.v1.EchoRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.message_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* EchoRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + message_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* EchoRequest::_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 message = 1 [json_name = "message"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_message(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "proto.rpc.examples.echo.v1.EchoRequest.message")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 54, 2> EchoRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_EchoRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string message = 1 [json_name = "message"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(EchoRequest, _impl_.message_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string message = 1 [json_name = "message"]; - {PROTOBUF_FIELD_OFFSET(EchoRequest, _impl_.message_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\46\7\0\0\0\0\0\0" - "proto.rpc.examples.echo.v1.EchoRequest" - "message" - }}, -}; - -::uint8_t* EchoRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* EchoRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.rpc.examples.echo.v1.EchoRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string message = 1 [json_name = "message"]; if (!this->_internal_message().empty()) { - const std::string& _s = this->_internal_message(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "proto.rpc.examples.echo.v1.EchoRequest.message"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_message().data(), static_cast(this->_internal_message().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "proto.rpc.examples.echo.v1.EchoRequest.message"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_message(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:proto.rpc.examples.echo.v1.EchoRequest) return target; } -::size_t EchoRequest::ByteSizeLong() const { +size_t EchoRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.rpc.examples.echo.v1.EchoRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string message = 1 [json_name = "message"]; if (!this->_internal_message().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_message()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_message()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData EchoRequest::_class_data_ = { - EchoRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EchoRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + EchoRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* EchoRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EchoRequest::GetClassData() const { return &_class_data_; } + +void EchoRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void EchoRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.examples.echo.v1.EchoRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void EchoRequest::MergeFrom(const EchoRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.examples.echo.v1.EchoRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_message().empty()) { - _this->_internal_set_message(from._internal_message()); + _internal_set_message(from._internal_message()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void EchoRequest::CopyFrom(const EchoRequest& from) { @@ -479,187 +389,192 @@ void EchoRequest::CopyFrom(const EchoRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool EchoRequest::IsInitialized() const { +bool EchoRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* EchoRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void EchoRequest::InternalSwap(EchoRequest* PROTOBUF_RESTRICT other) { +void EchoRequest::InternalSwap(EchoRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.message_, &other->_impl_.message_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &message_, lhs_arena, + &other->message_, rhs_arena + ); } -::google::protobuf::Metadata EchoRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata EchoRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto_getter, &descriptor_table_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto_once, file_level_metadata_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto[0]); } + // =================================================================== class EchoResponse::_Internal { public: }; -EchoResponse::EchoResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +EchoResponse::EchoResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:proto.rpc.examples.echo.v1.EchoResponse) } -inline PROTOBUF_NDEBUG_INLINE EchoResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : message_(arena, from.message_), - _cached_size_{0} {} - -EchoResponse::EchoResponse( - ::google::protobuf::Arena* arena, - const EchoResponse& from) - : ::google::protobuf::Message(arena) { - EchoResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +EchoResponse::EchoResponse(const EchoResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + message_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + message_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_message().empty()) { + message_.Set(from._internal_message(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:proto.rpc.examples.echo.v1.EchoResponse) } -inline PROTOBUF_NDEBUG_INLINE EchoResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : message_(arena), - _cached_size_{0} {} -inline void EchoResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void EchoResponse::SharedCtor() { +message_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + message_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + EchoResponse::~EchoResponse() { // @@protoc_insertion_point(destructor:proto.rpc.examples.echo.v1.EchoResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void EchoResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.message_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + message_.Destroy(); } -PROTOBUF_NOINLINE void EchoResponse::Clear() { +void EchoResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void EchoResponse::Clear() { // @@protoc_insertion_point(message_clear_start:proto.rpc.examples.echo.v1.EchoResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.message_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* EchoResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + message_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* EchoResponse::_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 message = 1 [json_name = "message"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_message(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "proto.rpc.examples.echo.v1.EchoResponse.message")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 55, 2> EchoResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_EchoResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string message = 1 [json_name = "message"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(EchoResponse, _impl_.message_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string message = 1 [json_name = "message"]; - {PROTOBUF_FIELD_OFFSET(EchoResponse, _impl_.message_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\47\7\0\0\0\0\0\0" - "proto.rpc.examples.echo.v1.EchoResponse" - "message" - }}, -}; - -::uint8_t* EchoResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* EchoResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.rpc.examples.echo.v1.EchoResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string message = 1 [json_name = "message"]; if (!this->_internal_message().empty()) { - const std::string& _s = this->_internal_message(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "proto.rpc.examples.echo.v1.EchoResponse.message"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_message().data(), static_cast(this->_internal_message().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "proto.rpc.examples.echo.v1.EchoResponse.message"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_message(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:proto.rpc.examples.echo.v1.EchoResponse) return target; } -::size_t EchoResponse::ByteSizeLong() const { +size_t EchoResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.rpc.examples.echo.v1.EchoResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string message = 1 [json_name = "message"]; if (!this->_internal_message().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_message()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_message()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData EchoResponse::_class_data_ = { - EchoResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EchoResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + EchoResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* EchoResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EchoResponse::GetClassData() const { return &_class_data_; } + +void EchoResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void EchoResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.examples.echo.v1.EchoResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void EchoResponse::MergeFrom(const EchoResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.examples.echo.v1.EchoResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_message().empty()) { - _this->_internal_set_message(from._internal_message()); + _internal_set_message(from._internal_message()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void EchoResponse::CopyFrom(const EchoResponse& from) { @@ -669,187 +584,192 @@ void EchoResponse::CopyFrom(const EchoResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool EchoResponse::IsInitialized() const { +bool EchoResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* EchoResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void EchoResponse::InternalSwap(EchoResponse* PROTOBUF_RESTRICT other) { +void EchoResponse::InternalSwap(EchoResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.message_, &other->_impl_.message_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &message_, lhs_arena, + &other->message_, rhs_arena + ); } -::google::protobuf::Metadata EchoResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata EchoResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto_getter, &descriptor_table_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto_once, file_level_metadata_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto[1]); } + // =================================================================== class EchoMultipleRequest::_Internal { public: }; -EchoMultipleRequest::EchoMultipleRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +EchoMultipleRequest::EchoMultipleRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:proto.rpc.examples.echo.v1.EchoMultipleRequest) } -inline PROTOBUF_NDEBUG_INLINE EchoMultipleRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : message_(arena, from.message_), - _cached_size_{0} {} - -EchoMultipleRequest::EchoMultipleRequest( - ::google::protobuf::Arena* arena, - const EchoMultipleRequest& from) - : ::google::protobuf::Message(arena) { - EchoMultipleRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +EchoMultipleRequest::EchoMultipleRequest(const EchoMultipleRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + message_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + message_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_message().empty()) { + message_.Set(from._internal_message(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:proto.rpc.examples.echo.v1.EchoMultipleRequest) } -inline PROTOBUF_NDEBUG_INLINE EchoMultipleRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : message_(arena), - _cached_size_{0} {} -inline void EchoMultipleRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void EchoMultipleRequest::SharedCtor() { +message_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + message_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + EchoMultipleRequest::~EchoMultipleRequest() { // @@protoc_insertion_point(destructor:proto.rpc.examples.echo.v1.EchoMultipleRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void EchoMultipleRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.message_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + message_.Destroy(); } -PROTOBUF_NOINLINE void EchoMultipleRequest::Clear() { +void EchoMultipleRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void EchoMultipleRequest::Clear() { // @@protoc_insertion_point(message_clear_start:proto.rpc.examples.echo.v1.EchoMultipleRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.message_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* EchoMultipleRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + message_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* EchoMultipleRequest::_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 message = 1 [json_name = "message"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_message(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "proto.rpc.examples.echo.v1.EchoMultipleRequest.message")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 62, 2> EchoMultipleRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_EchoMultipleRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string message = 1 [json_name = "message"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(EchoMultipleRequest, _impl_.message_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string message = 1 [json_name = "message"]; - {PROTOBUF_FIELD_OFFSET(EchoMultipleRequest, _impl_.message_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\56\7\0\0\0\0\0\0" - "proto.rpc.examples.echo.v1.EchoMultipleRequest" - "message" - }}, -}; - -::uint8_t* EchoMultipleRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* EchoMultipleRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.rpc.examples.echo.v1.EchoMultipleRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string message = 1 [json_name = "message"]; if (!this->_internal_message().empty()) { - const std::string& _s = this->_internal_message(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "proto.rpc.examples.echo.v1.EchoMultipleRequest.message"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_message().data(), static_cast(this->_internal_message().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "proto.rpc.examples.echo.v1.EchoMultipleRequest.message"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_message(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:proto.rpc.examples.echo.v1.EchoMultipleRequest) return target; } -::size_t EchoMultipleRequest::ByteSizeLong() const { +size_t EchoMultipleRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.rpc.examples.echo.v1.EchoMultipleRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string message = 1 [json_name = "message"]; if (!this->_internal_message().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_message()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_message()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData EchoMultipleRequest::_class_data_ = { - EchoMultipleRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EchoMultipleRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + EchoMultipleRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* EchoMultipleRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EchoMultipleRequest::GetClassData() const { return &_class_data_; } + +void EchoMultipleRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void EchoMultipleRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.examples.echo.v1.EchoMultipleRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void EchoMultipleRequest::MergeFrom(const EchoMultipleRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.examples.echo.v1.EchoMultipleRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_message().empty()) { - _this->_internal_set_message(from._internal_message()); + _internal_set_message(from._internal_message()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void EchoMultipleRequest::CopyFrom(const EchoMultipleRequest& from) { @@ -859,187 +779,192 @@ void EchoMultipleRequest::CopyFrom(const EchoMultipleRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool EchoMultipleRequest::IsInitialized() const { +bool EchoMultipleRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* EchoMultipleRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void EchoMultipleRequest::InternalSwap(EchoMultipleRequest* PROTOBUF_RESTRICT other) { +void EchoMultipleRequest::InternalSwap(EchoMultipleRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.message_, &other->_impl_.message_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &message_, lhs_arena, + &other->message_, rhs_arena + ); } -::google::protobuf::Metadata EchoMultipleRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata EchoMultipleRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto_getter, &descriptor_table_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto_once, file_level_metadata_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto[2]); } + // =================================================================== class EchoMultipleResponse::_Internal { public: }; -EchoMultipleResponse::EchoMultipleResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +EchoMultipleResponse::EchoMultipleResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:proto.rpc.examples.echo.v1.EchoMultipleResponse) } -inline PROTOBUF_NDEBUG_INLINE EchoMultipleResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : message_(arena, from.message_), - _cached_size_{0} {} - -EchoMultipleResponse::EchoMultipleResponse( - ::google::protobuf::Arena* arena, - const EchoMultipleResponse& from) - : ::google::protobuf::Message(arena) { - EchoMultipleResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +EchoMultipleResponse::EchoMultipleResponse(const EchoMultipleResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + message_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + message_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_message().empty()) { + message_.Set(from._internal_message(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:proto.rpc.examples.echo.v1.EchoMultipleResponse) } -inline PROTOBUF_NDEBUG_INLINE EchoMultipleResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : message_(arena), - _cached_size_{0} {} -inline void EchoMultipleResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void EchoMultipleResponse::SharedCtor() { +message_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + message_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + EchoMultipleResponse::~EchoMultipleResponse() { // @@protoc_insertion_point(destructor:proto.rpc.examples.echo.v1.EchoMultipleResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void EchoMultipleResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.message_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + message_.Destroy(); +} + +void EchoMultipleResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void EchoMultipleResponse::Clear() { +void EchoMultipleResponse::Clear() { // @@protoc_insertion_point(message_clear_start:proto.rpc.examples.echo.v1.EchoMultipleResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.message_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* EchoMultipleResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + message_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* EchoMultipleResponse::_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 message = 1 [json_name = "message"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_message(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "proto.rpc.examples.echo.v1.EchoMultipleResponse.message")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 63, 2> EchoMultipleResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_EchoMultipleResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string message = 1 [json_name = "message"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(EchoMultipleResponse, _impl_.message_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string message = 1 [json_name = "message"]; - {PROTOBUF_FIELD_OFFSET(EchoMultipleResponse, _impl_.message_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\57\7\0\0\0\0\0\0" - "proto.rpc.examples.echo.v1.EchoMultipleResponse" - "message" - }}, -}; - -::uint8_t* EchoMultipleResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* EchoMultipleResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.rpc.examples.echo.v1.EchoMultipleResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string message = 1 [json_name = "message"]; if (!this->_internal_message().empty()) { - const std::string& _s = this->_internal_message(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "proto.rpc.examples.echo.v1.EchoMultipleResponse.message"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_message().data(), static_cast(this->_internal_message().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "proto.rpc.examples.echo.v1.EchoMultipleResponse.message"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_message(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:proto.rpc.examples.echo.v1.EchoMultipleResponse) return target; } -::size_t EchoMultipleResponse::ByteSizeLong() const { +size_t EchoMultipleResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.rpc.examples.echo.v1.EchoMultipleResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string message = 1 [json_name = "message"]; if (!this->_internal_message().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_message()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_message()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData EchoMultipleResponse::_class_data_ = { - EchoMultipleResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EchoMultipleResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + EchoMultipleResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* EchoMultipleResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EchoMultipleResponse::GetClassData() const { return &_class_data_; } + +void EchoMultipleResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void EchoMultipleResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.examples.echo.v1.EchoMultipleResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void EchoMultipleResponse::MergeFrom(const EchoMultipleResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.examples.echo.v1.EchoMultipleResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_message().empty()) { - _this->_internal_set_message(from._internal_message()); + _internal_set_message(from._internal_message()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void EchoMultipleResponse::CopyFrom(const EchoMultipleResponse& from) { @@ -1049,187 +974,192 @@ void EchoMultipleResponse::CopyFrom(const EchoMultipleResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool EchoMultipleResponse::IsInitialized() const { +bool EchoMultipleResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* EchoMultipleResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void EchoMultipleResponse::InternalSwap(EchoMultipleResponse* PROTOBUF_RESTRICT other) { +void EchoMultipleResponse::InternalSwap(EchoMultipleResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.message_, &other->_impl_.message_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &message_, lhs_arena, + &other->message_, rhs_arena + ); } -::google::protobuf::Metadata EchoMultipleResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata EchoMultipleResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto_getter, &descriptor_table_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto_once, file_level_metadata_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto[3]); } + // =================================================================== class EchoBiDiRequest::_Internal { public: }; -EchoBiDiRequest::EchoBiDiRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +EchoBiDiRequest::EchoBiDiRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:proto.rpc.examples.echo.v1.EchoBiDiRequest) } -inline PROTOBUF_NDEBUG_INLINE EchoBiDiRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : message_(arena, from.message_), - _cached_size_{0} {} - -EchoBiDiRequest::EchoBiDiRequest( - ::google::protobuf::Arena* arena, - const EchoBiDiRequest& from) - : ::google::protobuf::Message(arena) { - EchoBiDiRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +EchoBiDiRequest::EchoBiDiRequest(const EchoBiDiRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + message_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + message_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_message().empty()) { + message_.Set(from._internal_message(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:proto.rpc.examples.echo.v1.EchoBiDiRequest) } -inline PROTOBUF_NDEBUG_INLINE EchoBiDiRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : message_(arena), - _cached_size_{0} {} -inline void EchoBiDiRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void EchoBiDiRequest::SharedCtor() { +message_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + message_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + EchoBiDiRequest::~EchoBiDiRequest() { // @@protoc_insertion_point(destructor:proto.rpc.examples.echo.v1.EchoBiDiRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void EchoBiDiRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.message_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + message_.Destroy(); +} + +void EchoBiDiRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void EchoBiDiRequest::Clear() { +void EchoBiDiRequest::Clear() { // @@protoc_insertion_point(message_clear_start:proto.rpc.examples.echo.v1.EchoBiDiRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.message_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* EchoBiDiRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + message_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* EchoBiDiRequest::_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 message = 1 [json_name = "message"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_message(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "proto.rpc.examples.echo.v1.EchoBiDiRequest.message")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 58, 2> EchoBiDiRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_EchoBiDiRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string message = 1 [json_name = "message"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(EchoBiDiRequest, _impl_.message_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string message = 1 [json_name = "message"]; - {PROTOBUF_FIELD_OFFSET(EchoBiDiRequest, _impl_.message_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\52\7\0\0\0\0\0\0" - "proto.rpc.examples.echo.v1.EchoBiDiRequest" - "message" - }}, -}; - -::uint8_t* EchoBiDiRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* EchoBiDiRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.rpc.examples.echo.v1.EchoBiDiRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string message = 1 [json_name = "message"]; if (!this->_internal_message().empty()) { - const std::string& _s = this->_internal_message(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "proto.rpc.examples.echo.v1.EchoBiDiRequest.message"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_message().data(), static_cast(this->_internal_message().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "proto.rpc.examples.echo.v1.EchoBiDiRequest.message"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_message(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:proto.rpc.examples.echo.v1.EchoBiDiRequest) return target; } -::size_t EchoBiDiRequest::ByteSizeLong() const { +size_t EchoBiDiRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.rpc.examples.echo.v1.EchoBiDiRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string message = 1 [json_name = "message"]; if (!this->_internal_message().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_message()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_message()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData EchoBiDiRequest::_class_data_ = { - EchoBiDiRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EchoBiDiRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + EchoBiDiRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* EchoBiDiRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EchoBiDiRequest::GetClassData() const { return &_class_data_; } + +void EchoBiDiRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void EchoBiDiRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.examples.echo.v1.EchoBiDiRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void EchoBiDiRequest::MergeFrom(const EchoBiDiRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.examples.echo.v1.EchoBiDiRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_message().empty()) { - _this->_internal_set_message(from._internal_message()); + _internal_set_message(from._internal_message()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void EchoBiDiRequest::CopyFrom(const EchoBiDiRequest& from) { @@ -1239,187 +1169,192 @@ void EchoBiDiRequest::CopyFrom(const EchoBiDiRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool EchoBiDiRequest::IsInitialized() const { +bool EchoBiDiRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* EchoBiDiRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void EchoBiDiRequest::InternalSwap(EchoBiDiRequest* PROTOBUF_RESTRICT other) { +void EchoBiDiRequest::InternalSwap(EchoBiDiRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.message_, &other->_impl_.message_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &message_, lhs_arena, + &other->message_, rhs_arena + ); } -::google::protobuf::Metadata EchoBiDiRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata EchoBiDiRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto_getter, &descriptor_table_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto_once, file_level_metadata_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto[4]); } + // =================================================================== class EchoBiDiResponse::_Internal { public: }; -EchoBiDiResponse::EchoBiDiResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +EchoBiDiResponse::EchoBiDiResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:proto.rpc.examples.echo.v1.EchoBiDiResponse) } -inline PROTOBUF_NDEBUG_INLINE EchoBiDiResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : message_(arena, from.message_), - _cached_size_{0} {} - -EchoBiDiResponse::EchoBiDiResponse( - ::google::protobuf::Arena* arena, - const EchoBiDiResponse& from) - : ::google::protobuf::Message(arena) { - EchoBiDiResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +EchoBiDiResponse::EchoBiDiResponse(const EchoBiDiResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + message_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + message_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_message().empty()) { + message_.Set(from._internal_message(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:proto.rpc.examples.echo.v1.EchoBiDiResponse) } -inline PROTOBUF_NDEBUG_INLINE EchoBiDiResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : message_(arena), - _cached_size_{0} {} -inline void EchoBiDiResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void EchoBiDiResponse::SharedCtor() { +message_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + message_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + EchoBiDiResponse::~EchoBiDiResponse() { // @@protoc_insertion_point(destructor:proto.rpc.examples.echo.v1.EchoBiDiResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void EchoBiDiResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.message_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + message_.Destroy(); +} + +void EchoBiDiResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void EchoBiDiResponse::Clear() { +void EchoBiDiResponse::Clear() { // @@protoc_insertion_point(message_clear_start:proto.rpc.examples.echo.v1.EchoBiDiResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.message_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* EchoBiDiResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + message_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* EchoBiDiResponse::_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 message = 1 [json_name = "message"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_message(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "proto.rpc.examples.echo.v1.EchoBiDiResponse.message")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 59, 2> EchoBiDiResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_EchoBiDiResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string message = 1 [json_name = "message"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(EchoBiDiResponse, _impl_.message_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string message = 1 [json_name = "message"]; - {PROTOBUF_FIELD_OFFSET(EchoBiDiResponse, _impl_.message_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\53\7\0\0\0\0\0\0" - "proto.rpc.examples.echo.v1.EchoBiDiResponse" - "message" - }}, -}; - -::uint8_t* EchoBiDiResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* EchoBiDiResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.rpc.examples.echo.v1.EchoBiDiResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string message = 1 [json_name = "message"]; if (!this->_internal_message().empty()) { - const std::string& _s = this->_internal_message(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "proto.rpc.examples.echo.v1.EchoBiDiResponse.message"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_message().data(), static_cast(this->_internal_message().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "proto.rpc.examples.echo.v1.EchoBiDiResponse.message"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_message(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:proto.rpc.examples.echo.v1.EchoBiDiResponse) return target; } -::size_t EchoBiDiResponse::ByteSizeLong() const { +size_t EchoBiDiResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.rpc.examples.echo.v1.EchoBiDiResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string message = 1 [json_name = "message"]; if (!this->_internal_message().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_message()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_message()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData EchoBiDiResponse::_class_data_ = { - EchoBiDiResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EchoBiDiResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + EchoBiDiResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* EchoBiDiResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EchoBiDiResponse::GetClassData() const { return &_class_data_; } + +void EchoBiDiResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void EchoBiDiResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.examples.echo.v1.EchoBiDiResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void EchoBiDiResponse::MergeFrom(const EchoBiDiResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.examples.echo.v1.EchoBiDiResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_message().empty()) { - _this->_internal_set_message(from._internal_message()); + _internal_set_message(from._internal_message()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void EchoBiDiResponse::CopyFrom(const EchoBiDiResponse& from) { @@ -1429,35 +1364,59 @@ void EchoBiDiResponse::CopyFrom(const EchoBiDiResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool EchoBiDiResponse::IsInitialized() const { +bool EchoBiDiResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* EchoBiDiResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void EchoBiDiResponse::InternalSwap(EchoBiDiResponse* PROTOBUF_RESTRICT other) { +void EchoBiDiResponse::InternalSwap(EchoBiDiResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.message_, &other->_impl_.message_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &message_, lhs_arena, + &other->message_, rhs_arena + ); } -::google::protobuf::Metadata EchoBiDiResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata EchoBiDiResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto_getter, &descriptor_table_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto_once, file_level_metadata_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto[5]); } + // @@protoc_insertion_point(namespace_scope) } // namespace v1 } // namespace echo } // namespace examples } // namespace rpc } // namespace proto -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::proto::rpc::examples::echo::v1::EchoRequest* +Arena::CreateMaybeMessage< ::proto::rpc::examples::echo::v1::EchoRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::rpc::examples::echo::v1::EchoRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::rpc::examples::echo::v1::EchoResponse* +Arena::CreateMaybeMessage< ::proto::rpc::examples::echo::v1::EchoResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::rpc::examples::echo::v1::EchoResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::rpc::examples::echo::v1::EchoMultipleRequest* +Arena::CreateMaybeMessage< ::proto::rpc::examples::echo::v1::EchoMultipleRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::rpc::examples::echo::v1::EchoMultipleRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::rpc::examples::echo::v1::EchoMultipleResponse* +Arena::CreateMaybeMessage< ::proto::rpc::examples::echo::v1::EchoMultipleResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::rpc::examples::echo::v1::EchoMultipleResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::rpc::examples::echo::v1::EchoBiDiRequest* +Arena::CreateMaybeMessage< ::proto::rpc::examples::echo::v1::EchoBiDiRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::rpc::examples::echo::v1::EchoBiDiRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::rpc::examples::echo::v1::EchoBiDiResponse* +Arena::CreateMaybeMessage< ::proto::rpc::examples::echo::v1::EchoBiDiResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::rpc::examples::echo::v1::EchoBiDiResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/proto/rpc/examples/echo/v1/echo.pb.h b/src/viam/api/proto/rpc/examples/echo/v1/echo.pb.h index 0444b6bf9..c2d213ece 100644 --- a/src/viam/api/proto/rpc/examples/echo/v1/echo.pb.h +++ b/src/viam/api/proto/rpc/examples/echo/v1/echo.pb.h @@ -1,61 +1,50 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: proto/rpc/examples/echo/v1/echo.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/unknown_field_set.h" + +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include #include "google/api/annotations.pb.h" // @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - +#include #define PROTOBUF_INTERNAL_EXPORT_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto; namespace proto { namespace rpc { namespace examples { @@ -84,11 +73,14 @@ extern EchoResponseDefaultTypeInternal _EchoResponse_default_instance_; } // namespace examples } // namespace rpc } // namespace proto -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - +PROTOBUF_NAMESPACE_OPEN +template<> ::proto::rpc::examples::echo::v1::EchoBiDiRequest* Arena::CreateMaybeMessage<::proto::rpc::examples::echo::v1::EchoBiDiRequest>(Arena*); +template<> ::proto::rpc::examples::echo::v1::EchoBiDiResponse* Arena::CreateMaybeMessage<::proto::rpc::examples::echo::v1::EchoBiDiResponse>(Arena*); +template<> ::proto::rpc::examples::echo::v1::EchoMultipleRequest* Arena::CreateMaybeMessage<::proto::rpc::examples::echo::v1::EchoMultipleRequest>(Arena*); +template<> ::proto::rpc::examples::echo::v1::EchoMultipleResponse* Arena::CreateMaybeMessage<::proto::rpc::examples::echo::v1::EchoMultipleResponse>(Arena*); +template<> ::proto::rpc::examples::echo::v1::EchoRequest* Arena::CreateMaybeMessage<::proto::rpc::examples::echo::v1::EchoRequest>(Arena*); +template<> ::proto::rpc::examples::echo::v1::EchoResponse* Arena::CreateMaybeMessage<::proto::rpc::examples::echo::v1::EchoResponse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace proto { namespace rpc { namespace examples { @@ -97,33 +89,28 @@ namespace v1 { // =================================================================== - -// ------------------------------------------------------------------- - -class EchoResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto.rpc.examples.echo.v1.EchoResponse) */ { +class EchoRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.rpc.examples.echo.v1.EchoRequest) */ { public: - inline EchoResponse() : EchoResponse(nullptr) {} - ~EchoResponse() override; - template - explicit PROTOBUF_CONSTEXPR EchoResponse(::google::protobuf::internal::ConstantInitialized); + inline EchoRequest() : EchoRequest(nullptr) {} + ~EchoRequest() override; + explicit PROTOBUF_CONSTEXPR EchoRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline EchoResponse(const EchoResponse& from) - : EchoResponse(nullptr, from) {} - EchoResponse(EchoResponse&& from) noexcept - : EchoResponse() { + EchoRequest(const EchoRequest& from); + EchoRequest(EchoRequest&& from) noexcept + : EchoRequest() { *this = ::std::move(from); } - inline EchoResponse& operator=(const EchoResponse& from) { + inline EchoRequest& operator=(const EchoRequest& from) { CopyFrom(from); return *this; } - inline EchoResponse& operator=(EchoResponse&& from) noexcept { + inline EchoRequest& operator=(EchoRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -133,99 +120,88 @@ class EchoResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const EchoResponse& default_instance() { + static const EchoRequest& default_instance() { return *internal_default_instance(); } - static inline const EchoResponse* internal_default_instance() { - return reinterpret_cast( - &_EchoResponse_default_instance_); + static inline const EchoRequest* internal_default_instance() { + return reinterpret_cast( + &_EchoRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 1; + 0; - friend void swap(EchoResponse& a, EchoResponse& b) { + friend void swap(EchoRequest& a, EchoRequest& b) { a.Swap(&b); } - inline void Swap(EchoResponse* other) { + inline void Swap(EchoRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(EchoResponse* other) { + void UnsafeArenaSwap(EchoRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - EchoResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const EchoResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const EchoResponse& from) { - EchoResponse::MergeImpl(*this, from); + EchoRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const EchoRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const EchoRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(EchoResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(EchoRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "proto.rpc.examples.echo.v1.EchoResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.rpc.examples.echo.v1.EchoRequest"; } protected: - explicit EchoResponse(::google::protobuf::Arena* arena); - EchoResponse(::google::protobuf::Arena* arena, const EchoResponse& from); + explicit EchoRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -235,76 +211,54 @@ class EchoResponse final : kMessageFieldNumber = 1, }; // string message = 1 [json_name = "message"]; - void clear_message() ; + void clear_message(); const std::string& message() const; - template - void set_message(Arg_&& arg, Args_... args); + template + void set_message(ArgT0&& arg0, ArgT... args); std::string* mutable_message(); PROTOBUF_NODISCARD std::string* release_message(); - void set_allocated_message(std::string* value); - + void set_allocated_message(std::string* message); private: const std::string& _internal_message() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_message( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_message(const std::string& value); std::string* _internal_mutable_message(); - public: - // @@protoc_insertion_point(class_scope:proto.rpc.examples.echo.v1.EchoResponse) + + // @@protoc_insertion_point(class_scope:proto.rpc.examples.echo.v1.EchoRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 55, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr message_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class EchoRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto.rpc.examples.echo.v1.EchoRequest) */ { +class EchoResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.rpc.examples.echo.v1.EchoResponse) */ { public: - inline EchoRequest() : EchoRequest(nullptr) {} - ~EchoRequest() override; - template - explicit PROTOBUF_CONSTEXPR EchoRequest(::google::protobuf::internal::ConstantInitialized); + inline EchoResponse() : EchoResponse(nullptr) {} + ~EchoResponse() override; + explicit PROTOBUF_CONSTEXPR EchoResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline EchoRequest(const EchoRequest& from) - : EchoRequest(nullptr, from) {} - EchoRequest(EchoRequest&& from) noexcept - : EchoRequest() { + EchoResponse(const EchoResponse& from); + EchoResponse(EchoResponse&& from) noexcept + : EchoResponse() { *this = ::std::move(from); } - inline EchoRequest& operator=(const EchoRequest& from) { + inline EchoResponse& operator=(const EchoResponse& from) { CopyFrom(from); return *this; } - inline EchoRequest& operator=(EchoRequest&& from) noexcept { + inline EchoResponse& operator=(EchoResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -314,99 +268,88 @@ class EchoRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const EchoRequest& default_instance() { + static const EchoResponse& default_instance() { return *internal_default_instance(); } - static inline const EchoRequest* internal_default_instance() { - return reinterpret_cast( - &_EchoRequest_default_instance_); + static inline const EchoResponse* internal_default_instance() { + return reinterpret_cast( + &_EchoResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 0; + 1; - friend void swap(EchoRequest& a, EchoRequest& b) { + friend void swap(EchoResponse& a, EchoResponse& b) { a.Swap(&b); } - inline void Swap(EchoRequest* other) { + inline void Swap(EchoResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(EchoRequest* other) { + void UnsafeArenaSwap(EchoResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - EchoRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const EchoRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const EchoRequest& from) { - EchoRequest::MergeImpl(*this, from); + EchoResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const EchoResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const EchoResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(EchoRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(EchoResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "proto.rpc.examples.echo.v1.EchoRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.rpc.examples.echo.v1.EchoResponse"; } protected: - explicit EchoRequest(::google::protobuf::Arena* arena); - EchoRequest(::google::protobuf::Arena* arena, const EchoRequest& from); + explicit EchoResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -416,76 +359,54 @@ class EchoRequest final : kMessageFieldNumber = 1, }; // string message = 1 [json_name = "message"]; - void clear_message() ; + void clear_message(); const std::string& message() const; - template - void set_message(Arg_&& arg, Args_... args); + template + void set_message(ArgT0&& arg0, ArgT... args); std::string* mutable_message(); PROTOBUF_NODISCARD std::string* release_message(); - void set_allocated_message(std::string* value); - + void set_allocated_message(std::string* message); private: const std::string& _internal_message() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_message( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_message(const std::string& value); std::string* _internal_mutable_message(); - public: - // @@protoc_insertion_point(class_scope:proto.rpc.examples.echo.v1.EchoRequest) + + // @@protoc_insertion_point(class_scope:proto.rpc.examples.echo.v1.EchoResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 54, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr message_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class EchoMultipleResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto.rpc.examples.echo.v1.EchoMultipleResponse) */ { +class EchoMultipleRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.rpc.examples.echo.v1.EchoMultipleRequest) */ { public: - inline EchoMultipleResponse() : EchoMultipleResponse(nullptr) {} - ~EchoMultipleResponse() override; - template - explicit PROTOBUF_CONSTEXPR EchoMultipleResponse(::google::protobuf::internal::ConstantInitialized); + inline EchoMultipleRequest() : EchoMultipleRequest(nullptr) {} + ~EchoMultipleRequest() override; + explicit PROTOBUF_CONSTEXPR EchoMultipleRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline EchoMultipleResponse(const EchoMultipleResponse& from) - : EchoMultipleResponse(nullptr, from) {} - EchoMultipleResponse(EchoMultipleResponse&& from) noexcept - : EchoMultipleResponse() { + EchoMultipleRequest(const EchoMultipleRequest& from); + EchoMultipleRequest(EchoMultipleRequest&& from) noexcept + : EchoMultipleRequest() { *this = ::std::move(from); } - inline EchoMultipleResponse& operator=(const EchoMultipleResponse& from) { + inline EchoMultipleRequest& operator=(const EchoMultipleRequest& from) { CopyFrom(from); return *this; } - inline EchoMultipleResponse& operator=(EchoMultipleResponse&& from) noexcept { + inline EchoMultipleRequest& operator=(EchoMultipleRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -495,99 +416,88 @@ class EchoMultipleResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const EchoMultipleResponse& default_instance() { + static const EchoMultipleRequest& default_instance() { return *internal_default_instance(); } - static inline const EchoMultipleResponse* internal_default_instance() { - return reinterpret_cast( - &_EchoMultipleResponse_default_instance_); + static inline const EchoMultipleRequest* internal_default_instance() { + return reinterpret_cast( + &_EchoMultipleRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 3; + 2; - friend void swap(EchoMultipleResponse& a, EchoMultipleResponse& b) { + friend void swap(EchoMultipleRequest& a, EchoMultipleRequest& b) { a.Swap(&b); } - inline void Swap(EchoMultipleResponse* other) { + inline void Swap(EchoMultipleRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(EchoMultipleResponse* other) { + void UnsafeArenaSwap(EchoMultipleRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - EchoMultipleResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const EchoMultipleResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const EchoMultipleResponse& from) { - EchoMultipleResponse::MergeImpl(*this, from); + EchoMultipleRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const EchoMultipleRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const EchoMultipleRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(EchoMultipleResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(EchoMultipleRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "proto.rpc.examples.echo.v1.EchoMultipleResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.rpc.examples.echo.v1.EchoMultipleRequest"; } protected: - explicit EchoMultipleResponse(::google::protobuf::Arena* arena); - EchoMultipleResponse(::google::protobuf::Arena* arena, const EchoMultipleResponse& from); + explicit EchoMultipleRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -597,76 +507,54 @@ class EchoMultipleResponse final : kMessageFieldNumber = 1, }; // string message = 1 [json_name = "message"]; - void clear_message() ; + void clear_message(); const std::string& message() const; - template - void set_message(Arg_&& arg, Args_... args); + template + void set_message(ArgT0&& arg0, ArgT... args); std::string* mutable_message(); PROTOBUF_NODISCARD std::string* release_message(); - void set_allocated_message(std::string* value); - + void set_allocated_message(std::string* message); private: const std::string& _internal_message() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_message( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_message(const std::string& value); std::string* _internal_mutable_message(); - public: - // @@protoc_insertion_point(class_scope:proto.rpc.examples.echo.v1.EchoMultipleResponse) + + // @@protoc_insertion_point(class_scope:proto.rpc.examples.echo.v1.EchoMultipleRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 63, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr message_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class EchoMultipleRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto.rpc.examples.echo.v1.EchoMultipleRequest) */ { +class EchoMultipleResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.rpc.examples.echo.v1.EchoMultipleResponse) */ { public: - inline EchoMultipleRequest() : EchoMultipleRequest(nullptr) {} - ~EchoMultipleRequest() override; - template - explicit PROTOBUF_CONSTEXPR EchoMultipleRequest(::google::protobuf::internal::ConstantInitialized); + inline EchoMultipleResponse() : EchoMultipleResponse(nullptr) {} + ~EchoMultipleResponse() override; + explicit PROTOBUF_CONSTEXPR EchoMultipleResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline EchoMultipleRequest(const EchoMultipleRequest& from) - : EchoMultipleRequest(nullptr, from) {} - EchoMultipleRequest(EchoMultipleRequest&& from) noexcept - : EchoMultipleRequest() { + EchoMultipleResponse(const EchoMultipleResponse& from); + EchoMultipleResponse(EchoMultipleResponse&& from) noexcept + : EchoMultipleResponse() { *this = ::std::move(from); } - inline EchoMultipleRequest& operator=(const EchoMultipleRequest& from) { + inline EchoMultipleResponse& operator=(const EchoMultipleResponse& from) { CopyFrom(from); return *this; } - inline EchoMultipleRequest& operator=(EchoMultipleRequest&& from) noexcept { + inline EchoMultipleResponse& operator=(EchoMultipleResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -676,99 +564,88 @@ class EchoMultipleRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const EchoMultipleRequest& default_instance() { + static const EchoMultipleResponse& default_instance() { return *internal_default_instance(); } - static inline const EchoMultipleRequest* internal_default_instance() { - return reinterpret_cast( - &_EchoMultipleRequest_default_instance_); + static inline const EchoMultipleResponse* internal_default_instance() { + return reinterpret_cast( + &_EchoMultipleResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 2; + 3; - friend void swap(EchoMultipleRequest& a, EchoMultipleRequest& b) { + friend void swap(EchoMultipleResponse& a, EchoMultipleResponse& b) { a.Swap(&b); } - inline void Swap(EchoMultipleRequest* other) { + inline void Swap(EchoMultipleResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(EchoMultipleRequest* other) { + void UnsafeArenaSwap(EchoMultipleResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - EchoMultipleRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const EchoMultipleRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const EchoMultipleRequest& from) { - EchoMultipleRequest::MergeImpl(*this, from); + EchoMultipleResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const EchoMultipleResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const EchoMultipleResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(EchoMultipleRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(EchoMultipleResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "proto.rpc.examples.echo.v1.EchoMultipleRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.rpc.examples.echo.v1.EchoMultipleResponse"; } protected: - explicit EchoMultipleRequest(::google::protobuf::Arena* arena); - EchoMultipleRequest(::google::protobuf::Arena* arena, const EchoMultipleRequest& from); + explicit EchoMultipleResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -778,76 +655,54 @@ class EchoMultipleRequest final : kMessageFieldNumber = 1, }; // string message = 1 [json_name = "message"]; - void clear_message() ; + void clear_message(); const std::string& message() const; - template - void set_message(Arg_&& arg, Args_... args); + template + void set_message(ArgT0&& arg0, ArgT... args); std::string* mutable_message(); PROTOBUF_NODISCARD std::string* release_message(); - void set_allocated_message(std::string* value); - + void set_allocated_message(std::string* message); private: const std::string& _internal_message() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_message( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_message(const std::string& value); std::string* _internal_mutable_message(); - public: - // @@protoc_insertion_point(class_scope:proto.rpc.examples.echo.v1.EchoMultipleRequest) + + // @@protoc_insertion_point(class_scope:proto.rpc.examples.echo.v1.EchoMultipleResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 62, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr message_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class EchoBiDiResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto.rpc.examples.echo.v1.EchoBiDiResponse) */ { +class EchoBiDiRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.rpc.examples.echo.v1.EchoBiDiRequest) */ { public: - inline EchoBiDiResponse() : EchoBiDiResponse(nullptr) {} - ~EchoBiDiResponse() override; - template - explicit PROTOBUF_CONSTEXPR EchoBiDiResponse(::google::protobuf::internal::ConstantInitialized); + inline EchoBiDiRequest() : EchoBiDiRequest(nullptr) {} + ~EchoBiDiRequest() override; + explicit PROTOBUF_CONSTEXPR EchoBiDiRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline EchoBiDiResponse(const EchoBiDiResponse& from) - : EchoBiDiResponse(nullptr, from) {} - EchoBiDiResponse(EchoBiDiResponse&& from) noexcept - : EchoBiDiResponse() { + EchoBiDiRequest(const EchoBiDiRequest& from); + EchoBiDiRequest(EchoBiDiRequest&& from) noexcept + : EchoBiDiRequest() { *this = ::std::move(from); } - inline EchoBiDiResponse& operator=(const EchoBiDiResponse& from) { + inline EchoBiDiRequest& operator=(const EchoBiDiRequest& from) { CopyFrom(from); return *this; } - inline EchoBiDiResponse& operator=(EchoBiDiResponse&& from) noexcept { + inline EchoBiDiRequest& operator=(EchoBiDiRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -857,99 +712,88 @@ class EchoBiDiResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const EchoBiDiResponse& default_instance() { + static const EchoBiDiRequest& default_instance() { return *internal_default_instance(); } - static inline const EchoBiDiResponse* internal_default_instance() { - return reinterpret_cast( - &_EchoBiDiResponse_default_instance_); + static inline const EchoBiDiRequest* internal_default_instance() { + return reinterpret_cast( + &_EchoBiDiRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 5; + 4; - friend void swap(EchoBiDiResponse& a, EchoBiDiResponse& b) { + friend void swap(EchoBiDiRequest& a, EchoBiDiRequest& b) { a.Swap(&b); } - inline void Swap(EchoBiDiResponse* other) { + inline void Swap(EchoBiDiRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(EchoBiDiResponse* other) { + void UnsafeArenaSwap(EchoBiDiRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - EchoBiDiResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const EchoBiDiResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const EchoBiDiResponse& from) { - EchoBiDiResponse::MergeImpl(*this, from); + EchoBiDiRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const EchoBiDiRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const EchoBiDiRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(EchoBiDiResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(EchoBiDiRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "proto.rpc.examples.echo.v1.EchoBiDiResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.rpc.examples.echo.v1.EchoBiDiRequest"; } protected: - explicit EchoBiDiResponse(::google::protobuf::Arena* arena); - EchoBiDiResponse(::google::protobuf::Arena* arena, const EchoBiDiResponse& from); + explicit EchoBiDiRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -959,76 +803,54 @@ class EchoBiDiResponse final : kMessageFieldNumber = 1, }; // string message = 1 [json_name = "message"]; - void clear_message() ; + void clear_message(); const std::string& message() const; - template - void set_message(Arg_&& arg, Args_... args); + template + void set_message(ArgT0&& arg0, ArgT... args); std::string* mutable_message(); PROTOBUF_NODISCARD std::string* release_message(); - void set_allocated_message(std::string* value); - + void set_allocated_message(std::string* message); private: const std::string& _internal_message() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_message( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_message(const std::string& value); std::string* _internal_mutable_message(); - public: - // @@protoc_insertion_point(class_scope:proto.rpc.examples.echo.v1.EchoBiDiResponse) + + // @@protoc_insertion_point(class_scope:proto.rpc.examples.echo.v1.EchoBiDiRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 59, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr message_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class EchoBiDiRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto.rpc.examples.echo.v1.EchoBiDiRequest) */ { +class EchoBiDiResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.rpc.examples.echo.v1.EchoBiDiResponse) */ { public: - inline EchoBiDiRequest() : EchoBiDiRequest(nullptr) {} - ~EchoBiDiRequest() override; - template - explicit PROTOBUF_CONSTEXPR EchoBiDiRequest(::google::protobuf::internal::ConstantInitialized); + inline EchoBiDiResponse() : EchoBiDiResponse(nullptr) {} + ~EchoBiDiResponse() override; + explicit PROTOBUF_CONSTEXPR EchoBiDiResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline EchoBiDiRequest(const EchoBiDiRequest& from) - : EchoBiDiRequest(nullptr, from) {} - EchoBiDiRequest(EchoBiDiRequest&& from) noexcept - : EchoBiDiRequest() { + EchoBiDiResponse(const EchoBiDiResponse& from); + EchoBiDiResponse(EchoBiDiResponse&& from) noexcept + : EchoBiDiResponse() { *this = ::std::move(from); } - inline EchoBiDiRequest& operator=(const EchoBiDiRequest& from) { + inline EchoBiDiResponse& operator=(const EchoBiDiResponse& from) { CopyFrom(from); return *this; } - inline EchoBiDiRequest& operator=(EchoBiDiRequest&& from) noexcept { + inline EchoBiDiResponse& operator=(EchoBiDiResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1038,99 +860,88 @@ class EchoBiDiRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const EchoBiDiRequest& default_instance() { + static const EchoBiDiResponse& default_instance() { return *internal_default_instance(); } - static inline const EchoBiDiRequest* internal_default_instance() { - return reinterpret_cast( - &_EchoBiDiRequest_default_instance_); + static inline const EchoBiDiResponse* internal_default_instance() { + return reinterpret_cast( + &_EchoBiDiResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 4; + 5; - friend void swap(EchoBiDiRequest& a, EchoBiDiRequest& b) { + friend void swap(EchoBiDiResponse& a, EchoBiDiResponse& b) { a.Swap(&b); } - inline void Swap(EchoBiDiRequest* other) { + inline void Swap(EchoBiDiResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(EchoBiDiRequest* other) { + void UnsafeArenaSwap(EchoBiDiResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - EchoBiDiRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const EchoBiDiRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const EchoBiDiRequest& from) { - EchoBiDiRequest::MergeImpl(*this, from); + EchoBiDiResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const EchoBiDiResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const EchoBiDiResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(EchoBiDiRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(EchoBiDiResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "proto.rpc.examples.echo.v1.EchoBiDiRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.rpc.examples.echo.v1.EchoBiDiResponse"; } protected: - explicit EchoBiDiRequest(::google::protobuf::Arena* arena); - EchoBiDiRequest(::google::protobuf::Arena* arena, const EchoBiDiRequest& from); + explicit EchoBiDiResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1140,118 +951,88 @@ class EchoBiDiRequest final : kMessageFieldNumber = 1, }; // string message = 1 [json_name = "message"]; - void clear_message() ; + void clear_message(); const std::string& message() const; - template - void set_message(Arg_&& arg, Args_... args); + template + void set_message(ArgT0&& arg0, ArgT... args); std::string* mutable_message(); PROTOBUF_NODISCARD std::string* release_message(); - void set_allocated_message(std::string* value); - + void set_allocated_message(std::string* message); private: const std::string& _internal_message() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_message( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_message(const std::string& value); std::string* _internal_mutable_message(); - public: - // @@protoc_insertion_point(class_scope:proto.rpc.examples.echo.v1.EchoBiDiRequest) + + // @@protoc_insertion_point(class_scope:proto.rpc.examples.echo.v1.EchoBiDiResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 58, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr message_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto; }; - // =================================================================== - - // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ -// ------------------------------------------------------------------- - // EchoRequest // string message = 1 [json_name = "message"]; inline void EchoRequest::clear_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.message_.ClearToEmpty(); + message_.ClearToEmpty(); } -inline const std::string& EchoRequest::message() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& EchoRequest::message() const { // @@protoc_insertion_point(field_get:proto.rpc.examples.echo.v1.EchoRequest.message) return _internal_message(); } -template -inline PROTOBUF_ALWAYS_INLINE void EchoRequest::set_message(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.message_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void EchoRequest::set_message(ArgT0&& arg0, ArgT... args) { + + message_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.rpc.examples.echo.v1.EchoRequest.message) } -inline std::string* EchoRequest::mutable_message() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* EchoRequest::mutable_message() { std::string* _s = _internal_mutable_message(); // @@protoc_insertion_point(field_mutable:proto.rpc.examples.echo.v1.EchoRequest.message) return _s; } inline const std::string& EchoRequest::_internal_message() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.message_.Get(); + return message_.Get(); } inline void EchoRequest::_internal_set_message(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.message_.Set(value, GetArena()); + + message_.Set(value, GetArenaForAllocation()); } inline std::string* EchoRequest::_internal_mutable_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.message_.Mutable( GetArena()); + + return message_.Mutable(GetArenaForAllocation()); } inline std::string* EchoRequest::release_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:proto.rpc.examples.echo.v1.EchoRequest.message) - return _impl_.message_.Release(); + return message_.Release(); } -inline void EchoRequest::set_allocated_message(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.message_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.message_.IsDefault()) { - _impl_.message_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline void EchoRequest::set_allocated_message(std::string* message) { + if (message != nullptr) { + + } else { + + } + message_.SetAllocated(message, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (message_.IsDefault()) { + message_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:proto.rpc.examples.echo.v1.EchoRequest.message) } @@ -1261,54 +1042,51 @@ inline void EchoRequest::set_allocated_message(std::string* value) { // string message = 1 [json_name = "message"]; inline void EchoResponse::clear_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.message_.ClearToEmpty(); + message_.ClearToEmpty(); } -inline const std::string& EchoResponse::message() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& EchoResponse::message() const { // @@protoc_insertion_point(field_get:proto.rpc.examples.echo.v1.EchoResponse.message) return _internal_message(); } -template -inline PROTOBUF_ALWAYS_INLINE void EchoResponse::set_message(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.message_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void EchoResponse::set_message(ArgT0&& arg0, ArgT... args) { + + message_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.rpc.examples.echo.v1.EchoResponse.message) } -inline std::string* EchoResponse::mutable_message() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* EchoResponse::mutable_message() { std::string* _s = _internal_mutable_message(); // @@protoc_insertion_point(field_mutable:proto.rpc.examples.echo.v1.EchoResponse.message) return _s; } inline const std::string& EchoResponse::_internal_message() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.message_.Get(); + return message_.Get(); } inline void EchoResponse::_internal_set_message(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.message_.Set(value, GetArena()); + + message_.Set(value, GetArenaForAllocation()); } inline std::string* EchoResponse::_internal_mutable_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.message_.Mutable( GetArena()); + + return message_.Mutable(GetArenaForAllocation()); } inline std::string* EchoResponse::release_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:proto.rpc.examples.echo.v1.EchoResponse.message) - return _impl_.message_.Release(); + return message_.Release(); } -inline void EchoResponse::set_allocated_message(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.message_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.message_.IsDefault()) { - _impl_.message_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline void EchoResponse::set_allocated_message(std::string* message) { + if (message != nullptr) { + + } else { + + } + message_.SetAllocated(message, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (message_.IsDefault()) { + message_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:proto.rpc.examples.echo.v1.EchoResponse.message) } @@ -1318,54 +1096,51 @@ inline void EchoResponse::set_allocated_message(std::string* value) { // string message = 1 [json_name = "message"]; inline void EchoMultipleRequest::clear_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.message_.ClearToEmpty(); + message_.ClearToEmpty(); } -inline const std::string& EchoMultipleRequest::message() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& EchoMultipleRequest::message() const { // @@protoc_insertion_point(field_get:proto.rpc.examples.echo.v1.EchoMultipleRequest.message) return _internal_message(); } -template -inline PROTOBUF_ALWAYS_INLINE void EchoMultipleRequest::set_message(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.message_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void EchoMultipleRequest::set_message(ArgT0&& arg0, ArgT... args) { + + message_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.rpc.examples.echo.v1.EchoMultipleRequest.message) } -inline std::string* EchoMultipleRequest::mutable_message() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* EchoMultipleRequest::mutable_message() { std::string* _s = _internal_mutable_message(); // @@protoc_insertion_point(field_mutable:proto.rpc.examples.echo.v1.EchoMultipleRequest.message) return _s; } inline const std::string& EchoMultipleRequest::_internal_message() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.message_.Get(); + return message_.Get(); } inline void EchoMultipleRequest::_internal_set_message(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.message_.Set(value, GetArena()); + + message_.Set(value, GetArenaForAllocation()); } inline std::string* EchoMultipleRequest::_internal_mutable_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.message_.Mutable( GetArena()); + + return message_.Mutable(GetArenaForAllocation()); } inline std::string* EchoMultipleRequest::release_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:proto.rpc.examples.echo.v1.EchoMultipleRequest.message) - return _impl_.message_.Release(); + return message_.Release(); } -inline void EchoMultipleRequest::set_allocated_message(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.message_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.message_.IsDefault()) { - _impl_.message_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline void EchoMultipleRequest::set_allocated_message(std::string* message) { + if (message != nullptr) { + + } else { + + } + message_.SetAllocated(message, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (message_.IsDefault()) { + message_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:proto.rpc.examples.echo.v1.EchoMultipleRequest.message) } @@ -1375,54 +1150,51 @@ inline void EchoMultipleRequest::set_allocated_message(std::string* value) { // string message = 1 [json_name = "message"]; inline void EchoMultipleResponse::clear_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.message_.ClearToEmpty(); + message_.ClearToEmpty(); } -inline const std::string& EchoMultipleResponse::message() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& EchoMultipleResponse::message() const { // @@protoc_insertion_point(field_get:proto.rpc.examples.echo.v1.EchoMultipleResponse.message) return _internal_message(); } -template -inline PROTOBUF_ALWAYS_INLINE void EchoMultipleResponse::set_message(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.message_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void EchoMultipleResponse::set_message(ArgT0&& arg0, ArgT... args) { + + message_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.rpc.examples.echo.v1.EchoMultipleResponse.message) } -inline std::string* EchoMultipleResponse::mutable_message() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* EchoMultipleResponse::mutable_message() { std::string* _s = _internal_mutable_message(); // @@protoc_insertion_point(field_mutable:proto.rpc.examples.echo.v1.EchoMultipleResponse.message) return _s; } inline const std::string& EchoMultipleResponse::_internal_message() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.message_.Get(); + return message_.Get(); } inline void EchoMultipleResponse::_internal_set_message(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.message_.Set(value, GetArena()); + + message_.Set(value, GetArenaForAllocation()); } inline std::string* EchoMultipleResponse::_internal_mutable_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.message_.Mutable( GetArena()); + + return message_.Mutable(GetArenaForAllocation()); } inline std::string* EchoMultipleResponse::release_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:proto.rpc.examples.echo.v1.EchoMultipleResponse.message) - return _impl_.message_.Release(); + return message_.Release(); } -inline void EchoMultipleResponse::set_allocated_message(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.message_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.message_.IsDefault()) { - _impl_.message_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline void EchoMultipleResponse::set_allocated_message(std::string* message) { + if (message != nullptr) { + + } else { + + } + message_.SetAllocated(message, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (message_.IsDefault()) { + message_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:proto.rpc.examples.echo.v1.EchoMultipleResponse.message) } @@ -1432,54 +1204,51 @@ inline void EchoMultipleResponse::set_allocated_message(std::string* value) { // string message = 1 [json_name = "message"]; inline void EchoBiDiRequest::clear_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.message_.ClearToEmpty(); + message_.ClearToEmpty(); } -inline const std::string& EchoBiDiRequest::message() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& EchoBiDiRequest::message() const { // @@protoc_insertion_point(field_get:proto.rpc.examples.echo.v1.EchoBiDiRequest.message) return _internal_message(); } -template -inline PROTOBUF_ALWAYS_INLINE void EchoBiDiRequest::set_message(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.message_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void EchoBiDiRequest::set_message(ArgT0&& arg0, ArgT... args) { + + message_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.rpc.examples.echo.v1.EchoBiDiRequest.message) } -inline std::string* EchoBiDiRequest::mutable_message() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* EchoBiDiRequest::mutable_message() { std::string* _s = _internal_mutable_message(); // @@protoc_insertion_point(field_mutable:proto.rpc.examples.echo.v1.EchoBiDiRequest.message) return _s; } inline const std::string& EchoBiDiRequest::_internal_message() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.message_.Get(); + return message_.Get(); } inline void EchoBiDiRequest::_internal_set_message(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.message_.Set(value, GetArena()); + + message_.Set(value, GetArenaForAllocation()); } inline std::string* EchoBiDiRequest::_internal_mutable_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.message_.Mutable( GetArena()); + + return message_.Mutable(GetArenaForAllocation()); } inline std::string* EchoBiDiRequest::release_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:proto.rpc.examples.echo.v1.EchoBiDiRequest.message) - return _impl_.message_.Release(); + return message_.Release(); } -inline void EchoBiDiRequest::set_allocated_message(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.message_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.message_.IsDefault()) { - _impl_.message_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline void EchoBiDiRequest::set_allocated_message(std::string* message) { + if (message != nullptr) { + + } else { + + } + message_.SetAllocated(message, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (message_.IsDefault()) { + message_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:proto.rpc.examples.echo.v1.EchoBiDiRequest.message) } @@ -1489,71 +1258,77 @@ inline void EchoBiDiRequest::set_allocated_message(std::string* value) { // string message = 1 [json_name = "message"]; inline void EchoBiDiResponse::clear_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.message_.ClearToEmpty(); + message_.ClearToEmpty(); } -inline const std::string& EchoBiDiResponse::message() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& EchoBiDiResponse::message() const { // @@protoc_insertion_point(field_get:proto.rpc.examples.echo.v1.EchoBiDiResponse.message) return _internal_message(); } -template -inline PROTOBUF_ALWAYS_INLINE void EchoBiDiResponse::set_message(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.message_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void EchoBiDiResponse::set_message(ArgT0&& arg0, ArgT... args) { + + message_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.rpc.examples.echo.v1.EchoBiDiResponse.message) } -inline std::string* EchoBiDiResponse::mutable_message() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* EchoBiDiResponse::mutable_message() { std::string* _s = _internal_mutable_message(); // @@protoc_insertion_point(field_mutable:proto.rpc.examples.echo.v1.EchoBiDiResponse.message) return _s; } inline const std::string& EchoBiDiResponse::_internal_message() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.message_.Get(); + return message_.Get(); } inline void EchoBiDiResponse::_internal_set_message(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.message_.Set(value, GetArena()); + + message_.Set(value, GetArenaForAllocation()); } inline std::string* EchoBiDiResponse::_internal_mutable_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.message_.Mutable( GetArena()); + + return message_.Mutable(GetArenaForAllocation()); } inline std::string* EchoBiDiResponse::release_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:proto.rpc.examples.echo.v1.EchoBiDiResponse.message) - return _impl_.message_.Release(); + return message_.Release(); } -inline void EchoBiDiResponse::set_allocated_message(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.message_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.message_.IsDefault()) { - _impl_.message_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline void EchoBiDiResponse::set_allocated_message(std::string* message) { + if (message != nullptr) { + + } else { + + } + message_.SetAllocated(message, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (message_.IsDefault()) { + message_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:proto.rpc.examples.echo.v1.EchoBiDiResponse.message) } #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) + } // namespace v1 } // namespace echo } // namespace examples } // namespace rpc } // namespace proto - // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_proto_2frpc_2fexamples_2fecho_2fv1_2fecho_2eproto diff --git a/src/viam/api/proto/rpc/examples/echoresource/v1/echoresource.grpc.pb.cc b/src/viam/api/proto/rpc/examples/echoresource/v1/echoresource.grpc.pb.cc index 67d9c8569..72c9176e0 100644 --- a/src/viam/api/proto/rpc/examples/echoresource/v1/echoresource.grpc.pb.cc +++ b/src/viam/api/proto/rpc/examples/echoresource/v1/echoresource.grpc.pb.cc @@ -6,19 +6,19 @@ #include "proto/rpc/examples/echoresource/v1/echoresource.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace proto { namespace rpc { namespace examples { @@ -33,78 +33,83 @@ static const char* EchoResourceService_method_names[] = { std::unique_ptr< EchoResourceService::Stub> EchoResourceService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { (void)options; - std::unique_ptr< EchoResourceService::Stub> stub(new EchoResourceService::Stub(channel, options)); + std::unique_ptr< EchoResourceService::Stub> stub(new EchoResourceService::Stub(channel)); return stub; } -EchoResourceService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) - : channel_(channel), rpcmethod_EchoResource_(EchoResourceService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_EchoResourceMultiple_(EchoResourceService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::SERVER_STREAMING, channel) - , rpcmethod_EchoResourceBiDi_(EchoResourceService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::BIDI_STREAMING, channel) +EchoResourceService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_EchoResource_(EchoResourceService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_EchoResourceMultiple_(EchoResourceService_method_names[1], ::grpc::internal::RpcMethod::SERVER_STREAMING, channel) + , rpcmethod_EchoResourceBiDi_(EchoResourceService_method_names[2], ::grpc::internal::RpcMethod::BIDI_STREAMING, channel) {} ::grpc::Status EchoResourceService::Stub::EchoResource(::grpc::ClientContext* context, const ::proto::rpc::examples::echoresource::v1::EchoResourceRequest& request, ::proto::rpc::examples::echoresource::v1::EchoResourceResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::proto::rpc::examples::echoresource::v1::EchoResourceRequest, ::proto::rpc::examples::echoresource::v1::EchoResourceResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_EchoResource_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_EchoResource_, context, request, response); } -void EchoResourceService::Stub::async::EchoResource(::grpc::ClientContext* context, const ::proto::rpc::examples::echoresource::v1::EchoResourceRequest* request, ::proto::rpc::examples::echoresource::v1::EchoResourceResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::proto::rpc::examples::echoresource::v1::EchoResourceRequest, ::proto::rpc::examples::echoresource::v1::EchoResourceResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EchoResource_, context, request, response, std::move(f)); +void EchoResourceService::Stub::experimental_async::EchoResource(::grpc::ClientContext* context, const ::proto::rpc::examples::echoresource::v1::EchoResourceRequest* request, ::proto::rpc::examples::echoresource::v1::EchoResourceResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_EchoResource_, context, request, response, std::move(f)); } -void EchoResourceService::Stub::async::EchoResource(::grpc::ClientContext* context, const ::proto::rpc::examples::echoresource::v1::EchoResourceRequest* request, ::proto::rpc::examples::echoresource::v1::EchoResourceResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EchoResource_, context, request, response, reactor); +void EchoResourceService::Stub::experimental_async::EchoResource(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::proto::rpc::examples::echoresource::v1::EchoResourceResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_EchoResource_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::proto::rpc::examples::echoresource::v1::EchoResourceResponse>* EchoResourceService::Stub::PrepareAsyncEchoResourceRaw(::grpc::ClientContext* context, const ::proto::rpc::examples::echoresource::v1::EchoResourceRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::proto::rpc::examples::echoresource::v1::EchoResourceResponse, ::proto::rpc::examples::echoresource::v1::EchoResourceRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_EchoResource_, context, request); +void EchoResourceService::Stub::experimental_async::EchoResource(::grpc::ClientContext* context, const ::proto::rpc::examples::echoresource::v1::EchoResourceRequest* request, ::proto::rpc::examples::echoresource::v1::EchoResourceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_EchoResource_, context, request, response, reactor); +} + +void EchoResourceService::Stub::experimental_async::EchoResource(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::proto::rpc::examples::echoresource::v1::EchoResourceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_EchoResource_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::proto::rpc::examples::echoresource::v1::EchoResourceResponse>* EchoResourceService::Stub::AsyncEchoResourceRaw(::grpc::ClientContext* context, const ::proto::rpc::examples::echoresource::v1::EchoResourceRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncEchoResourceRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::proto::rpc::examples::echoresource::v1::EchoResourceResponse>::Create(channel_.get(), cq, rpcmethod_EchoResource_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::proto::rpc::examples::echoresource::v1::EchoResourceResponse>* EchoResourceService::Stub::PrepareAsyncEchoResourceRaw(::grpc::ClientContext* context, const ::proto::rpc::examples::echoresource::v1::EchoResourceRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::proto::rpc::examples::echoresource::v1::EchoResourceResponse>::Create(channel_.get(), cq, rpcmethod_EchoResource_, context, request, false); } ::grpc::ClientReader< ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleResponse>* EchoResourceService::Stub::EchoResourceMultipleRaw(::grpc::ClientContext* context, const ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleRequest& request) { - return ::grpc::internal::ClientReaderFactory< ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleResponse>::Create(channel_.get(), rpcmethod_EchoResourceMultiple_, context, request); + return ::grpc_impl::internal::ClientReaderFactory< ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleResponse>::Create(channel_.get(), rpcmethod_EchoResourceMultiple_, context, request); } -void EchoResourceService::Stub::async::EchoResourceMultiple(::grpc::ClientContext* context, const ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleRequest* request, ::grpc::ClientReadReactor< ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleResponse>* reactor) { - ::grpc::internal::ClientCallbackReaderFactory< ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_EchoResourceMultiple_, context, request, reactor); +void EchoResourceService::Stub::experimental_async::EchoResourceMultiple(::grpc::ClientContext* context, ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleRequest* request, ::grpc::experimental::ClientReadReactor< ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleResponse>* reactor) { + ::grpc_impl::internal::ClientCallbackReaderFactory< ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_EchoResourceMultiple_, context, request, reactor); } ::grpc::ClientAsyncReader< ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleResponse>* EchoResourceService::Stub::AsyncEchoResourceMultipleRaw(::grpc::ClientContext* context, const ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleRequest& request, ::grpc::CompletionQueue* cq, void* tag) { - return ::grpc::internal::ClientAsyncReaderFactory< ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleResponse>::Create(channel_.get(), cq, rpcmethod_EchoResourceMultiple_, context, request, true, tag); + return ::grpc_impl::internal::ClientAsyncReaderFactory< ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleResponse>::Create(channel_.get(), cq, rpcmethod_EchoResourceMultiple_, context, request, true, tag); } ::grpc::ClientAsyncReader< ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleResponse>* EchoResourceService::Stub::PrepareAsyncEchoResourceMultipleRaw(::grpc::ClientContext* context, const ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncReaderFactory< ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleResponse>::Create(channel_.get(), cq, rpcmethod_EchoResourceMultiple_, context, request, false, nullptr); + return ::grpc_impl::internal::ClientAsyncReaderFactory< ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleResponse>::Create(channel_.get(), cq, rpcmethod_EchoResourceMultiple_, context, request, false, nullptr); } ::grpc::ClientReaderWriter< ::proto::rpc::examples::echoresource::v1::EchoResourceBiDiRequest, ::proto::rpc::examples::echoresource::v1::EchoResourceBiDiResponse>* EchoResourceService::Stub::EchoResourceBiDiRaw(::grpc::ClientContext* context) { - return ::grpc::internal::ClientReaderWriterFactory< ::proto::rpc::examples::echoresource::v1::EchoResourceBiDiRequest, ::proto::rpc::examples::echoresource::v1::EchoResourceBiDiResponse>::Create(channel_.get(), rpcmethod_EchoResourceBiDi_, context); + return ::grpc_impl::internal::ClientReaderWriterFactory< ::proto::rpc::examples::echoresource::v1::EchoResourceBiDiRequest, ::proto::rpc::examples::echoresource::v1::EchoResourceBiDiResponse>::Create(channel_.get(), rpcmethod_EchoResourceBiDi_, context); } -void EchoResourceService::Stub::async::EchoResourceBiDi(::grpc::ClientContext* context, ::grpc::ClientBidiReactor< ::proto::rpc::examples::echoresource::v1::EchoResourceBiDiRequest,::proto::rpc::examples::echoresource::v1::EchoResourceBiDiResponse>* reactor) { - ::grpc::internal::ClientCallbackReaderWriterFactory< ::proto::rpc::examples::echoresource::v1::EchoResourceBiDiRequest,::proto::rpc::examples::echoresource::v1::EchoResourceBiDiResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_EchoResourceBiDi_, context, reactor); +void EchoResourceService::Stub::experimental_async::EchoResourceBiDi(::grpc::ClientContext* context, ::grpc::experimental::ClientBidiReactor< ::proto::rpc::examples::echoresource::v1::EchoResourceBiDiRequest,::proto::rpc::examples::echoresource::v1::EchoResourceBiDiResponse>* reactor) { + ::grpc_impl::internal::ClientCallbackReaderWriterFactory< ::proto::rpc::examples::echoresource::v1::EchoResourceBiDiRequest,::proto::rpc::examples::echoresource::v1::EchoResourceBiDiResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_EchoResourceBiDi_, context, reactor); } ::grpc::ClientAsyncReaderWriter< ::proto::rpc::examples::echoresource::v1::EchoResourceBiDiRequest, ::proto::rpc::examples::echoresource::v1::EchoResourceBiDiResponse>* EchoResourceService::Stub::AsyncEchoResourceBiDiRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) { - return ::grpc::internal::ClientAsyncReaderWriterFactory< ::proto::rpc::examples::echoresource::v1::EchoResourceBiDiRequest, ::proto::rpc::examples::echoresource::v1::EchoResourceBiDiResponse>::Create(channel_.get(), cq, rpcmethod_EchoResourceBiDi_, context, true, tag); + return ::grpc_impl::internal::ClientAsyncReaderWriterFactory< ::proto::rpc::examples::echoresource::v1::EchoResourceBiDiRequest, ::proto::rpc::examples::echoresource::v1::EchoResourceBiDiResponse>::Create(channel_.get(), cq, rpcmethod_EchoResourceBiDi_, context, true, tag); } ::grpc::ClientAsyncReaderWriter< ::proto::rpc::examples::echoresource::v1::EchoResourceBiDiRequest, ::proto::rpc::examples::echoresource::v1::EchoResourceBiDiResponse>* EchoResourceService::Stub::PrepareAsyncEchoResourceBiDiRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncReaderWriterFactory< ::proto::rpc::examples::echoresource::v1::EchoResourceBiDiRequest, ::proto::rpc::examples::echoresource::v1::EchoResourceBiDiResponse>::Create(channel_.get(), cq, rpcmethod_EchoResourceBiDi_, context, false, nullptr); + return ::grpc_impl::internal::ClientAsyncReaderWriterFactory< ::proto::rpc::examples::echoresource::v1::EchoResourceBiDiRequest, ::proto::rpc::examples::echoresource::v1::EchoResourceBiDiResponse>::Create(channel_.get(), cq, rpcmethod_EchoResourceBiDi_, context, false, nullptr); } EchoResourceService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( EchoResourceService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< EchoResourceService::Service, ::proto::rpc::examples::echoresource::v1::EchoResourceRequest, ::proto::rpc::examples::echoresource::v1::EchoResourceResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< EchoResourceService::Service, ::proto::rpc::examples::echoresource::v1::EchoResourceRequest, ::proto::rpc::examples::echoresource::v1::EchoResourceResponse>( [](EchoResourceService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::proto::rpc::examples::echoresource::v1::EchoResourceRequest* req, ::proto::rpc::examples::echoresource::v1::EchoResourceResponse* resp) { return service->EchoResource(ctx, req, resp); @@ -114,9 +119,9 @@ EchoResourceService::Service::Service() { ::grpc::internal::RpcMethod::SERVER_STREAMING, new ::grpc::internal::ServerStreamingHandler< EchoResourceService::Service, ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleRequest, ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleResponse>( [](EchoResourceService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleRequest* req, - ::grpc::ServerWriter<::proto::rpc::examples::echoresource::v1::EchoResourceMultipleResponse>* writer) { + ::grpc_impl::ServerWriter<::proto::rpc::examples::echoresource::v1::EchoResourceMultipleResponse>* writer) { return service->EchoResourceMultiple(ctx, req, writer); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( @@ -124,8 +129,8 @@ EchoResourceService::Service::Service() { ::grpc::internal::RpcMethod::BIDI_STREAMING, new ::grpc::internal::BidiStreamingHandler< EchoResourceService::Service, ::proto::rpc::examples::echoresource::v1::EchoResourceBiDiRequest, ::proto::rpc::examples::echoresource::v1::EchoResourceBiDiResponse>( [](EchoResourceService::Service* service, - ::grpc::ServerContext* ctx, - ::grpc::ServerReaderWriter<::proto::rpc::examples::echoresource::v1::EchoResourceBiDiResponse, + ::grpc_impl::ServerContext* ctx, + ::grpc_impl::ServerReaderWriter<::proto::rpc::examples::echoresource::v1::EchoResourceBiDiResponse, ::proto::rpc::examples::echoresource::v1::EchoResourceBiDiRequest>* stream) { return service->EchoResourceBiDi(ctx, stream); }, this))); diff --git a/src/viam/api/proto/rpc/examples/echoresource/v1/echoresource.grpc.pb.h b/src/viam/api/proto/rpc/examples/echoresource/v1/echoresource.grpc.pb.h index c6a9f27f5..0a5efce13 100644 --- a/src/viam/api/proto/rpc/examples/echoresource/v1/echoresource.grpc.pb.h +++ b/src/viam/api/proto/rpc/examples/echoresource/v1/echoresource.grpc.pb.h @@ -7,23 +7,24 @@ #include "proto/rpc/examples/echoresource/v1/echoresource.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace proto { namespace rpc { @@ -64,18 +65,40 @@ class EchoResourceService final { std::unique_ptr< ::grpc::ClientAsyncReaderWriterInterface< ::proto::rpc::examples::echoresource::v1::EchoResourceBiDiRequest, ::proto::rpc::examples::echoresource::v1::EchoResourceBiDiResponse>> PrepareAsyncEchoResourceBiDi(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncReaderWriterInterface< ::proto::rpc::examples::echoresource::v1::EchoResourceBiDiRequest, ::proto::rpc::examples::echoresource::v1::EchoResourceBiDiResponse>>(PrepareAsyncEchoResourceBiDiRaw(context, cq)); } - class async_interface { + class experimental_async_interface { public: - virtual ~async_interface() {} + virtual ~experimental_async_interface() {} virtual void EchoResource(::grpc::ClientContext* context, const ::proto::rpc::examples::echoresource::v1::EchoResourceRequest* request, ::proto::rpc::examples::echoresource::v1::EchoResourceResponse* response, std::function) = 0; + virtual void EchoResource(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::proto::rpc::examples::echoresource::v1::EchoResourceResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void EchoResource(::grpc::ClientContext* context, const ::proto::rpc::examples::echoresource::v1::EchoResourceRequest* request, ::proto::rpc::examples::echoresource::v1::EchoResourceResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - virtual void EchoResourceMultiple(::grpc::ClientContext* context, const ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleRequest* request, ::grpc::ClientReadReactor< ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleResponse>* reactor) = 0; + #else + virtual void EchoResource(::grpc::ClientContext* context, const ::proto::rpc::examples::echoresource::v1::EchoResourceRequest* request, ::proto::rpc::examples::echoresource::v1::EchoResourceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void EchoResource(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::proto::rpc::examples::echoresource::v1::EchoResourceResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void EchoResource(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::proto::rpc::examples::echoresource::v1::EchoResourceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void EchoResourceMultiple(::grpc::ClientContext* context, ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleRequest* request, ::grpc::ClientReadReactor< ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleResponse>* reactor) = 0; + #else + virtual void EchoResourceMultiple(::grpc::ClientContext* context, ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleRequest* request, ::grpc::experimental::ClientReadReactor< ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleResponse>* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void EchoResourceBiDi(::grpc::ClientContext* context, ::grpc::ClientBidiReactor< ::proto::rpc::examples::echoresource::v1::EchoResourceBiDiRequest,::proto::rpc::examples::echoresource::v1::EchoResourceBiDiResponse>* reactor) = 0; + #else + virtual void EchoResourceBiDi(::grpc::ClientContext* context, ::grpc::experimental::ClientBidiReactor< ::proto::rpc::examples::echoresource::v1::EchoResourceBiDiRequest,::proto::rpc::examples::echoresource::v1::EchoResourceBiDiResponse>* reactor) = 0; + #endif }; - typedef class async_interface experimental_async_interface; - virtual class async_interface* async() { return nullptr; } - class async_interface* experimental_async() { return async(); } - private: + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef class experimental_async_interface async_interface; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + async_interface* async() { return experimental_async(); } + #endif + virtual class experimental_async_interface* experimental_async() { return nullptr; } + private: virtual ::grpc::ClientAsyncResponseReaderInterface< ::proto::rpc::examples::echoresource::v1::EchoResourceResponse>* AsyncEchoResourceRaw(::grpc::ClientContext* context, const ::proto::rpc::examples::echoresource::v1::EchoResourceRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::proto::rpc::examples::echoresource::v1::EchoResourceResponse>* PrepareAsyncEchoResourceRaw(::grpc::ClientContext* context, const ::proto::rpc::examples::echoresource::v1::EchoResourceRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientReaderInterface< ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleResponse>* EchoResourceMultipleRaw(::grpc::ClientContext* context, const ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleRequest& request) = 0; @@ -87,7 +110,7 @@ class EchoResourceService final { }; class Stub final : public StubInterface { public: - Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); ::grpc::Status EchoResource(::grpc::ClientContext* context, const ::proto::rpc::examples::echoresource::v1::EchoResourceRequest& request, ::proto::rpc::examples::echoresource::v1::EchoResourceResponse* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::proto::rpc::examples::echoresource::v1::EchoResourceResponse>> AsyncEchoResource(::grpc::ClientContext* context, const ::proto::rpc::examples::echoresource::v1::EchoResourceRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::proto::rpc::examples::echoresource::v1::EchoResourceResponse>>(AsyncEchoResourceRaw(context, request, cq)); @@ -113,24 +136,42 @@ class EchoResourceService final { std::unique_ptr< ::grpc::ClientAsyncReaderWriter< ::proto::rpc::examples::echoresource::v1::EchoResourceBiDiRequest, ::proto::rpc::examples::echoresource::v1::EchoResourceBiDiResponse>> PrepareAsyncEchoResourceBiDi(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncReaderWriter< ::proto::rpc::examples::echoresource::v1::EchoResourceBiDiRequest, ::proto::rpc::examples::echoresource::v1::EchoResourceBiDiResponse>>(PrepareAsyncEchoResourceBiDiRaw(context, cq)); } - class async final : - public StubInterface::async_interface { + class experimental_async final : + public StubInterface::experimental_async_interface { public: void EchoResource(::grpc::ClientContext* context, const ::proto::rpc::examples::echoresource::v1::EchoResourceRequest* request, ::proto::rpc::examples::echoresource::v1::EchoResourceResponse* response, std::function) override; + void EchoResource(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::proto::rpc::examples::echoresource::v1::EchoResourceResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void EchoResource(::grpc::ClientContext* context, const ::proto::rpc::examples::echoresource::v1::EchoResourceRequest* request, ::proto::rpc::examples::echoresource::v1::EchoResourceResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - void EchoResourceMultiple(::grpc::ClientContext* context, const ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleRequest* request, ::grpc::ClientReadReactor< ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleResponse>* reactor) override; + #else + void EchoResource(::grpc::ClientContext* context, const ::proto::rpc::examples::echoresource::v1::EchoResourceRequest* request, ::proto::rpc::examples::echoresource::v1::EchoResourceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void EchoResource(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::proto::rpc::examples::echoresource::v1::EchoResourceResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void EchoResource(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::proto::rpc::examples::echoresource::v1::EchoResourceResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void EchoResourceMultiple(::grpc::ClientContext* context, ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleRequest* request, ::grpc::ClientReadReactor< ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleResponse>* reactor) override; + #else + void EchoResourceMultiple(::grpc::ClientContext* context, ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleRequest* request, ::grpc::experimental::ClientReadReactor< ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleResponse>* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void EchoResourceBiDi(::grpc::ClientContext* context, ::grpc::ClientBidiReactor< ::proto::rpc::examples::echoresource::v1::EchoResourceBiDiRequest,::proto::rpc::examples::echoresource::v1::EchoResourceBiDiResponse>* reactor) override; + #else + void EchoResourceBiDi(::grpc::ClientContext* context, ::grpc::experimental::ClientBidiReactor< ::proto::rpc::examples::echoresource::v1::EchoResourceBiDiRequest,::proto::rpc::examples::echoresource::v1::EchoResourceBiDiResponse>* reactor) override; + #endif private: friend class Stub; - explicit async(Stub* stub): stub_(stub) { } + explicit experimental_async(Stub* stub): stub_(stub) { } Stub* stub() { return stub_; } Stub* stub_; }; - class async* async() override { return &async_stub_; } + class experimental_async_interface* experimental_async() override { return &async_stub_; } private: std::shared_ptr< ::grpc::ChannelInterface> channel_; - class async async_stub_{this}; + class experimental_async async_stub_{this}; ::grpc::ClientAsyncResponseReader< ::proto::rpc::examples::echoresource::v1::EchoResourceResponse>* AsyncEchoResourceRaw(::grpc::ClientContext* context, const ::proto::rpc::examples::echoresource::v1::EchoResourceRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::proto::rpc::examples::echoresource::v1::EchoResourceResponse>* PrepareAsyncEchoResourceRaw(::grpc::ClientContext* context, const ::proto::rpc::examples::echoresource::v1::EchoResourceRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientReader< ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleResponse>* EchoResourceMultipleRaw(::grpc::ClientContext* context, const ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleRequest& request) override; @@ -215,22 +256,36 @@ class EchoResourceService final { }; typedef WithAsyncMethod_EchoResource > > AsyncService; template - class WithCallbackMethod_EchoResource : public BaseClass { + class ExperimentalWithCallbackMethod_EchoResource : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_EchoResource() { - ::grpc::Service::MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::proto::rpc::examples::echoresource::v1::EchoResourceRequest, ::proto::rpc::examples::echoresource::v1::EchoResourceResponse>( + ExperimentalWithCallbackMethod_EchoResource() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::proto::rpc::examples::echoresource::v1::EchoResourceRequest, ::proto::rpc::examples::echoresource::v1::EchoResourceResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::proto::rpc::examples::echoresource::v1::EchoResourceRequest* request, ::proto::rpc::examples::echoresource::v1::EchoResourceResponse* response) { return this->EchoResource(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::proto::rpc::examples::echoresource::v1::EchoResourceRequest* request, ::proto::rpc::examples::echoresource::v1::EchoResourceResponse* response) { return this->EchoResource(context, request, response); }));} void SetMessageAllocatorFor_EchoResource( - ::grpc::MessageAllocator< ::proto::rpc::examples::echoresource::v1::EchoResourceRequest, ::proto::rpc::examples::echoresource::v1::EchoResourceResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::proto::rpc::examples::echoresource::v1::EchoResourceRequest, ::proto::rpc::examples::echoresource::v1::EchoResourceResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); - static_cast<::grpc::internal::CallbackUnaryHandler< ::proto::rpc::examples::echoresource::v1::EchoResourceRequest, ::proto::rpc::examples::echoresource::v1::EchoResourceResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(0); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::proto::rpc::examples::echoresource::v1::EchoResourceRequest, ::proto::rpc::examples::echoresource::v1::EchoResourceResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_EchoResource() override { + ~ExperimentalWithCallbackMethod_EchoResource() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -238,21 +293,37 @@ class EchoResourceService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* EchoResource( - ::grpc::CallbackServerContext* /*context*/, const ::proto::rpc::examples::echoresource::v1::EchoResourceRequest* /*request*/, ::proto::rpc::examples::echoresource::v1::EchoResourceResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::proto::rpc::examples::echoresource::v1::EchoResourceRequest* /*request*/, ::proto::rpc::examples::echoresource::v1::EchoResourceResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* EchoResource( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::proto::rpc::examples::echoresource::v1::EchoResourceRequest* /*request*/, ::proto::rpc::examples::echoresource::v1::EchoResourceResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_EchoResourceMultiple : public BaseClass { + class ExperimentalWithCallbackMethod_EchoResourceMultiple : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_EchoResourceMultiple() { - ::grpc::Service::MarkMethodCallback(1, - new ::grpc::internal::CallbackServerStreamingHandler< ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleRequest, ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleResponse>( + ExperimentalWithCallbackMethod_EchoResourceMultiple() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(1, + new ::grpc_impl::internal::CallbackServerStreamingHandler< ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleRequest, ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleRequest* request) { return this->EchoResourceMultiple(context, request); })); - } - ~WithCallbackMethod_EchoResourceMultiple() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleRequest* request) { return this->EchoResourceMultiple(context, request); })); + } + ~ExperimentalWithCallbackMethod_EchoResourceMultiple() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -260,21 +331,37 @@ class EchoResourceService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerWriteReactor< ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleResponse>* EchoResourceMultiple( - ::grpc::CallbackServerContext* /*context*/, const ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleRequest* /*request*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleRequest* /*request*/) + #else + virtual ::grpc::experimental::ServerWriteReactor< ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleResponse>* EchoResourceMultiple( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleRequest* /*request*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_EchoResourceBiDi : public BaseClass { + class ExperimentalWithCallbackMethod_EchoResourceBiDi : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_EchoResourceBiDi() { - ::grpc::Service::MarkMethodCallback(2, - new ::grpc::internal::CallbackBidiHandler< ::proto::rpc::examples::echoresource::v1::EchoResourceBiDiRequest, ::proto::rpc::examples::echoresource::v1::EchoResourceBiDiResponse>( + ExperimentalWithCallbackMethod_EchoResourceBiDi() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(2, + new ::grpc_impl::internal::CallbackBidiHandler< ::proto::rpc::examples::echoresource::v1::EchoResourceBiDiRequest, ::proto::rpc::examples::echoresource::v1::EchoResourceBiDiResponse>( [this]( - ::grpc::CallbackServerContext* context) { return this->EchoResourceBiDi(context); })); - } - ~WithCallbackMethod_EchoResourceBiDi() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context) { return this->EchoResourceBiDi(context); })); + } + ~ExperimentalWithCallbackMethod_EchoResourceBiDi() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -282,12 +369,20 @@ class EchoResourceService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerBidiReactor< ::proto::rpc::examples::echoresource::v1::EchoResourceBiDiRequest, ::proto::rpc::examples::echoresource::v1::EchoResourceBiDiResponse>* EchoResourceBiDi( ::grpc::CallbackServerContext* /*context*/) + #else + virtual ::grpc::experimental::ServerBidiReactor< ::proto::rpc::examples::echoresource::v1::EchoResourceBiDiRequest, ::proto::rpc::examples::echoresource::v1::EchoResourceBiDiResponse>* EchoResourceBiDi( + ::grpc::experimental::CallbackServerContext* /*context*/) + #endif { return nullptr; } }; - typedef WithCallbackMethod_EchoResource > > CallbackService; - typedef CallbackService ExperimentalCallbackService; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef ExperimentalWithCallbackMethod_EchoResource > > CallbackService; + #endif + + typedef ExperimentalWithCallbackMethod_EchoResource > > ExperimentalCallbackService; template class WithGenericMethod_EchoResource : public BaseClass { private: @@ -400,17 +495,27 @@ class EchoResourceService final { } }; template - class WithRawCallbackMethod_EchoResource : public BaseClass { + class ExperimentalWithRawCallbackMethod_EchoResource : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_EchoResource() { - ::grpc::Service::MarkMethodRawCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_EchoResource() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->EchoResource(context, request, response); })); - } - ~WithRawCallbackMethod_EchoResource() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->EchoResource(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_EchoResource() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -418,21 +523,37 @@ class EchoResourceService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* EchoResource( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* EchoResource( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_EchoResourceMultiple : public BaseClass { + class ExperimentalWithRawCallbackMethod_EchoResourceMultiple : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_EchoResourceMultiple() { - ::grpc::Service::MarkMethodRawCallback(1, - new ::grpc::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_EchoResourceMultiple() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(1, + new ::grpc_impl::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const::grpc::ByteBuffer* request) { return this->EchoResourceMultiple(context, request); })); - } - ~WithRawCallbackMethod_EchoResourceMultiple() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const::grpc::ByteBuffer* request) { return this->EchoResourceMultiple(context, request); })); + } + ~ExperimentalWithRawCallbackMethod_EchoResourceMultiple() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -440,21 +561,37 @@ class EchoResourceService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerWriteReactor< ::grpc::ByteBuffer>* EchoResourceMultiple( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) + #else + virtual ::grpc::experimental::ServerWriteReactor< ::grpc::ByteBuffer>* EchoResourceMultiple( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_EchoResourceBiDi : public BaseClass { + class ExperimentalWithRawCallbackMethod_EchoResourceBiDi : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_EchoResourceBiDi() { - ::grpc::Service::MarkMethodRawCallback(2, - new ::grpc::internal::CallbackBidiHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_EchoResourceBiDi() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(2, + new ::grpc_impl::internal::CallbackBidiHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context) { return this->EchoResourceBiDi(context); })); - } - ~WithRawCallbackMethod_EchoResourceBiDi() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context) { return this->EchoResourceBiDi(context); })); + } + ~ExperimentalWithRawCallbackMethod_EchoResourceBiDi() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -462,8 +599,13 @@ class EchoResourceService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerBidiReactor< ::grpc::ByteBuffer, ::grpc::ByteBuffer>* EchoResourceBiDi( ::grpc::CallbackServerContext* /*context*/) + #else + virtual ::grpc::experimental::ServerBidiReactor< ::grpc::ByteBuffer, ::grpc::ByteBuffer>* EchoResourceBiDi( + ::grpc::experimental::CallbackServerContext* /*context*/) + #endif { return nullptr; } }; template @@ -475,8 +617,8 @@ class EchoResourceService final { ::grpc::Service::MarkMethodStreamed(0, new ::grpc::internal::StreamedUnaryHandler< ::proto::rpc::examples::echoresource::v1::EchoResourceRequest, ::proto::rpc::examples::echoresource::v1::EchoResourceResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::proto::rpc::examples::echoresource::v1::EchoResourceRequest, ::proto::rpc::examples::echoresource::v1::EchoResourceResponse>* streamer) { return this->StreamedEchoResource(context, streamer); @@ -503,8 +645,8 @@ class EchoResourceService final { ::grpc::Service::MarkMethodStreamed(1, new ::grpc::internal::SplitServerStreamingHandler< ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleRequest, ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerSplitStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerSplitStreamer< ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleRequest, ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleResponse>* streamer) { return this->StreamedEchoResourceMultiple(context, streamer); diff --git a/src/viam/api/proto/rpc/examples/echoresource/v1/echoresource.pb.cc b/src/viam/api/proto/rpc/examples/echoresource/v1/echoresource.pb.cc index 3855ec3e2..ef90969bb 100644 --- a/src/viam/api/proto/rpc/examples/echoresource/v1/echoresource.pb.cc +++ b/src/viam/api/proto/rpc/examples/echoresource/v1/echoresource.pb.cc @@ -4,514 +4,434 @@ #include "proto/rpc/examples/echoresource/v1/echoresource.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace proto { namespace rpc { namespace examples { namespace echoresource { namespace v1 { - -inline constexpr EchoResourceResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : message_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR EchoResourceResponse::EchoResourceResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct EchoResourceResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR EchoResourceResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~EchoResourceResponseDefaultTypeInternal() {} - union { - EchoResourceResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EchoResourceResponseDefaultTypeInternal _EchoResourceResponse_default_instance_; - -inline constexpr EchoResourceRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - message_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR EchoResourceRequest::EchoResourceRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_CONSTEXPR EchoResourceRequest::EchoResourceRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , message_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} struct EchoResourceRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR EchoResourceRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR EchoResourceRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~EchoResourceRequestDefaultTypeInternal() {} union { EchoResourceRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EchoResourceRequestDefaultTypeInternal _EchoResourceRequest_default_instance_; - -inline constexpr EchoResourceMultipleResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : message_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR EchoResourceMultipleResponse::EchoResourceMultipleResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct EchoResourceMultipleResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR EchoResourceMultipleResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~EchoResourceMultipleResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EchoResourceRequestDefaultTypeInternal _EchoResourceRequest_default_instance_; +PROTOBUF_CONSTEXPR EchoResourceResponse::EchoResourceResponse( + ::_pbi::ConstantInitialized) + : message_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct EchoResourceResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR EchoResourceResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~EchoResourceResponseDefaultTypeInternal() {} union { - EchoResourceMultipleResponse _instance; + EchoResourceResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EchoResourceMultipleResponseDefaultTypeInternal _EchoResourceMultipleResponse_default_instance_; - -inline constexpr EchoResourceMultipleRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - message_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR EchoResourceMultipleRequest::EchoResourceMultipleRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EchoResourceResponseDefaultTypeInternal _EchoResourceResponse_default_instance_; +PROTOBUF_CONSTEXPR EchoResourceMultipleRequest::EchoResourceMultipleRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , message_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} struct EchoResourceMultipleRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR EchoResourceMultipleRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR EchoResourceMultipleRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~EchoResourceMultipleRequestDefaultTypeInternal() {} union { EchoResourceMultipleRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EchoResourceMultipleRequestDefaultTypeInternal _EchoResourceMultipleRequest_default_instance_; - -inline constexpr EchoResourceBiDiResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : message_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR EchoResourceBiDiResponse::EchoResourceBiDiResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct EchoResourceBiDiResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR EchoResourceBiDiResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~EchoResourceBiDiResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EchoResourceMultipleRequestDefaultTypeInternal _EchoResourceMultipleRequest_default_instance_; +PROTOBUF_CONSTEXPR EchoResourceMultipleResponse::EchoResourceMultipleResponse( + ::_pbi::ConstantInitialized) + : message_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct EchoResourceMultipleResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR EchoResourceMultipleResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~EchoResourceMultipleResponseDefaultTypeInternal() {} union { - EchoResourceBiDiResponse _instance; + EchoResourceMultipleResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EchoResourceBiDiResponseDefaultTypeInternal _EchoResourceBiDiResponse_default_instance_; - -inline constexpr EchoResourceBiDiRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - message_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR EchoResourceBiDiRequest::EchoResourceBiDiRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EchoResourceMultipleResponseDefaultTypeInternal _EchoResourceMultipleResponse_default_instance_; +PROTOBUF_CONSTEXPR EchoResourceBiDiRequest::EchoResourceBiDiRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , message_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} struct EchoResourceBiDiRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR EchoResourceBiDiRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR EchoResourceBiDiRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~EchoResourceBiDiRequestDefaultTypeInternal() {} union { EchoResourceBiDiRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EchoResourceBiDiRequestDefaultTypeInternal _EchoResourceBiDiRequest_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EchoResourceBiDiRequestDefaultTypeInternal _EchoResourceBiDiRequest_default_instance_; +PROTOBUF_CONSTEXPR EchoResourceBiDiResponse::EchoResourceBiDiResponse( + ::_pbi::ConstantInitialized) + : message_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct EchoResourceBiDiResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR EchoResourceBiDiResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~EchoResourceBiDiResponseDefaultTypeInternal() {} + union { + EchoResourceBiDiResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EchoResourceBiDiResponseDefaultTypeInternal _EchoResourceBiDiResponse_default_instance_; } // namespace v1 } // namespace echoresource } // namespace examples } // namespace rpc } // namespace proto static ::_pb::Metadata file_level_metadata_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto[6]; -static constexpr const ::_pb::EnumDescriptor** - file_level_enum_descriptors_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto = nullptr; -const ::uint32_t TableStruct_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::proto::rpc::examples::echoresource::v1::EchoResourceRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::proto::rpc::examples::echoresource::v1::EchoResourceRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::proto::rpc::examples::echoresource::v1::EchoResourceRequest, _impl_.message_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::proto::rpc::examples::echoresource::v1::EchoResourceResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::proto::rpc::examples::echoresource::v1::EchoResourceResponse, _impl_.message_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::proto::rpc::examples::echoresource::v1::EchoResourceMultipleRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::proto::rpc::examples::echoresource::v1::EchoResourceMultipleRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::proto::rpc::examples::echoresource::v1::EchoResourceMultipleRequest, _impl_.message_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::proto::rpc::examples::echoresource::v1::EchoResourceMultipleResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::proto::rpc::examples::echoresource::v1::EchoResourceMultipleResponse, _impl_.message_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::proto::rpc::examples::echoresource::v1::EchoResourceBiDiRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::proto::rpc::examples::echoresource::v1::EchoResourceBiDiRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::proto::rpc::examples::echoresource::v1::EchoResourceBiDiRequest, _impl_.message_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::proto::rpc::examples::echoresource::v1::EchoResourceBiDiResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::proto::rpc::examples::echoresource::v1::EchoResourceBiDiResponse, _impl_.message_), +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto = nullptr; + +const uint32_t TableStruct_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::examples::echoresource::v1::EchoResourceRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::examples::echoresource::v1::EchoResourceRequest, name_), + PROTOBUF_FIELD_OFFSET(::proto::rpc::examples::echoresource::v1::EchoResourceRequest, message_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::examples::echoresource::v1::EchoResourceResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::examples::echoresource::v1::EchoResourceResponse, message_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::examples::echoresource::v1::EchoResourceMultipleRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::examples::echoresource::v1::EchoResourceMultipleRequest, name_), + PROTOBUF_FIELD_OFFSET(::proto::rpc::examples::echoresource::v1::EchoResourceMultipleRequest, message_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::examples::echoresource::v1::EchoResourceMultipleResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::examples::echoresource::v1::EchoResourceMultipleResponse, message_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::examples::echoresource::v1::EchoResourceBiDiRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::examples::echoresource::v1::EchoResourceBiDiRequest, name_), + PROTOBUF_FIELD_OFFSET(::proto::rpc::examples::echoresource::v1::EchoResourceBiDiRequest, message_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::examples::echoresource::v1::EchoResourceBiDiResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::examples::echoresource::v1::EchoResourceBiDiResponse, message_), }; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, -1, -1, sizeof(::proto::rpc::examples::echoresource::v1::EchoResourceRequest)}, - {10, -1, -1, sizeof(::proto::rpc::examples::echoresource::v1::EchoResourceResponse)}, - {19, -1, -1, sizeof(::proto::rpc::examples::echoresource::v1::EchoResourceMultipleRequest)}, - {29, -1, -1, sizeof(::proto::rpc::examples::echoresource::v1::EchoResourceMultipleResponse)}, - {38, -1, -1, sizeof(::proto::rpc::examples::echoresource::v1::EchoResourceBiDiRequest)}, - {48, -1, -1, sizeof(::proto::rpc::examples::echoresource::v1::EchoResourceBiDiResponse)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::proto::rpc::examples::echoresource::v1::EchoResourceRequest)}, + { 8, -1, -1, sizeof(::proto::rpc::examples::echoresource::v1::EchoResourceResponse)}, + { 15, -1, -1, sizeof(::proto::rpc::examples::echoresource::v1::EchoResourceMultipleRequest)}, + { 23, -1, -1, sizeof(::proto::rpc::examples::echoresource::v1::EchoResourceMultipleResponse)}, + { 30, -1, -1, sizeof(::proto::rpc::examples::echoresource::v1::EchoResourceBiDiRequest)}, + { 38, -1, -1, sizeof(::proto::rpc::examples::echoresource::v1::EchoResourceBiDiResponse)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::proto::rpc::examples::echoresource::v1::_EchoResourceRequest_default_instance_._instance, - &::proto::rpc::examples::echoresource::v1::_EchoResourceResponse_default_instance_._instance, - &::proto::rpc::examples::echoresource::v1::_EchoResourceMultipleRequest_default_instance_._instance, - &::proto::rpc::examples::echoresource::v1::_EchoResourceMultipleResponse_default_instance_._instance, - &::proto::rpc::examples::echoresource::v1::_EchoResourceBiDiRequest_default_instance_._instance, - &::proto::rpc::examples::echoresource::v1::_EchoResourceBiDiResponse_default_instance_._instance, + &::proto::rpc::examples::echoresource::v1::_EchoResourceRequest_default_instance_._instance, + &::proto::rpc::examples::echoresource::v1::_EchoResourceResponse_default_instance_._instance, + &::proto::rpc::examples::echoresource::v1::_EchoResourceMultipleRequest_default_instance_._instance, + &::proto::rpc::examples::echoresource::v1::_EchoResourceMultipleResponse_default_instance_._instance, + &::proto::rpc::examples::echoresource::v1::_EchoResourceBiDiRequest_default_instance_._instance, + &::proto::rpc::examples::echoresource::v1::_EchoResourceBiDiResponse_default_instance_._instance, }; -const char descriptor_table_protodef_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n5proto/rpc/examples/echoresource/v1/ech" - "oresource.proto\022\"proto.rpc.examples.echo" - "resource.v1\"C\n\023EchoResourceRequest\022\022\n\004na" - "me\030\001 \001(\tR\004name\022\030\n\007message\030\002 \001(\tR\007message" - "\"0\n\024EchoResourceResponse\022\030\n\007message\030\001 \001(" - "\tR\007message\"K\n\033EchoResourceMultipleReques" - "t\022\022\n\004name\030\001 \001(\tR\004name\022\030\n\007message\030\002 \001(\tR\007" - "message\"8\n\034EchoResourceMultipleResponse\022" - "\030\n\007message\030\001 \001(\tR\007message\"G\n\027EchoResourc" - "eBiDiRequest\022\022\n\004name\030\001 \001(\tR\004name\022\030\n\007mess" - "age\030\002 \001(\tR\007message\"4\n\030EchoResourceBiDiRe" - "sponse\022\030\n\007message\030\001 \001(\tR\007message2\321\003\n\023Ech" - "oResourceService\022\203\001\n\014EchoResource\0227.prot" - "o.rpc.examples.echoresource.v1.EchoResou" - "rceRequest\0328.proto.rpc.examples.echoreso" - "urce.v1.EchoResourceResponse\"\000\022\235\001\n\024EchoR" - "esourceMultiple\022\?.proto.rpc.examples.ech" - "oresource.v1.EchoResourceMultipleRequest" - "\032@.proto.rpc.examples.echoresource.v1.Ec" - "hoResourceMultipleResponse\"\0000\001\022\223\001\n\020EchoR" - "esourceBiDi\022;.proto.rpc.examples.echores" - "ource.v1.EchoResourceBiDiRequest\032<.proto" - ".rpc.examples.echoresource.v1.EchoResour" - "ceBiDiResponse\"\000(\0010\001B\236\002\n&com.proto.rpc.e" - "xamples.echoresource.v1B\021EchoresourcePro" - "toP\001Z4go.viam.com/utils/proto/rpc/exampl" - "es/echoresource/v1\242\002\004PREE\252\002\"Proto.Rpc.Ex" - "amples.Echoresource.V1\312\002\"Proto\\Rpc\\Examp" - "les\\Echoresource\\V1\342\002.Proto\\Rpc\\Examples" - "\\Echoresource\\V1\\GPBMetadata\352\002&Proto::Rp" - "c::Examples::Echoresource::V1b\006proto3" -}; -static ::absl::once_flag descriptor_table_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto_once; + +const char descriptor_table_protodef_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n5proto/rpc/examples/echoresource/v1/ech" + "oresource.proto\022\"proto.rpc.examples.echo" + "resource.v1\"C\n\023EchoResourceRequest\022\022\n\004na" + "me\030\001 \001(\tR\004name\022\030\n\007message\030\002 \001(\tR\007message" + "\"0\n\024EchoResourceResponse\022\030\n\007message\030\001 \001(" + "\tR\007message\"K\n\033EchoResourceMultipleReques" + "t\022\022\n\004name\030\001 \001(\tR\004name\022\030\n\007message\030\002 \001(\tR\007" + "message\"8\n\034EchoResourceMultipleResponse\022" + "\030\n\007message\030\001 \001(\tR\007message\"G\n\027EchoResourc" + "eBiDiRequest\022\022\n\004name\030\001 \001(\tR\004name\022\030\n\007mess" + "age\030\002 \001(\tR\007message\"4\n\030EchoResourceBiDiRe" + "sponse\022\030\n\007message\030\001 \001(\tR\007message2\321\003\n\023Ech" + "oResourceService\022\203\001\n\014EchoResource\0227.prot" + "o.rpc.examples.echoresource.v1.EchoResou" + "rceRequest\0328.proto.rpc.examples.echoreso" + "urce.v1.EchoResourceResponse\"\000\022\235\001\n\024EchoR" + "esourceMultiple\022\?.proto.rpc.examples.ech" + "oresource.v1.EchoResourceMultipleRequest" + "\032@.proto.rpc.examples.echoresource.v1.Ec" + "hoResourceMultipleResponse\"\0000\001\022\223\001\n\020EchoR" + "esourceBiDi\022;.proto.rpc.examples.echores" + "ource.v1.EchoResourceBiDiRequest\032<.proto" + ".rpc.examples.echoresource.v1.EchoResour" + "ceBiDiResponse\"\000(\0010\001B6Z4go.viam.com/util" + "s/proto/rpc/examples/echoresource/v1b\006pr" + "oto3" + ; +static ::_pbi::once_flag descriptor_table_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto = { - false, - false, - 1237, - descriptor_table_protodef_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto, + false, false, 1004, descriptor_table_protodef_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto, "proto/rpc/examples/echoresource/v1/echoresource.proto", - &descriptor_table_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto_once, - nullptr, - 0, - 6, - schemas, - file_default_instances, - TableStruct_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto::offsets, - file_level_metadata_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto, - file_level_enum_descriptors_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto, + &descriptor_table_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto_once, nullptr, 0, 6, + schemas, file_default_instances, TableStruct_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto::offsets, + file_level_metadata_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto, file_level_enum_descriptors_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto, file_level_service_descriptors_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto_getter() { return &descriptor_table_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto(&descriptor_table_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto(&descriptor_table_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto); namespace proto { namespace rpc { namespace examples { namespace echoresource { namespace v1 { + // =================================================================== class EchoResourceRequest::_Internal { public: }; -EchoResourceRequest::EchoResourceRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +EchoResourceRequest::EchoResourceRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:proto.rpc.examples.echoresource.v1.EchoResourceRequest) } -inline PROTOBUF_NDEBUG_INLINE EchoResourceRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : name_(arena, from.name_), - message_(arena, from.message_), - _cached_size_{0} {} - -EchoResourceRequest::EchoResourceRequest( - ::google::protobuf::Arena* arena, - const EchoResourceRequest& from) - : ::google::protobuf::Message(arena) { - EchoResourceRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +EchoResourceRequest::EchoResourceRequest(const EchoResourceRequest& 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()); + } + message_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + message_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_message().empty()) { + message_.Set(from._internal_message(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:proto.rpc.examples.echoresource.v1.EchoResourceRequest) } -inline PROTOBUF_NDEBUG_INLINE EchoResourceRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : name_(arena), - message_(arena), - _cached_size_{0} {} -inline void EchoResourceRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void EchoResourceRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +message_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + message_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + EchoResourceRequest::~EchoResourceRequest() { // @@protoc_insertion_point(destructor:proto.rpc.examples.echoresource.v1.EchoResourceRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void EchoResourceRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.message_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + message_.Destroy(); } -PROTOBUF_NOINLINE void EchoResourceRequest::Clear() { +void EchoResourceRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void EchoResourceRequest::Clear() { // @@protoc_insertion_point(message_clear_start:proto.rpc.examples.echoresource.v1.EchoResourceRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _impl_.message_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* EchoResourceRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + message_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* EchoResourceRequest::_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, "proto.rpc.examples.echoresource.v1.EchoResourceRequest.name")); + } else + goto handle_unusual; + continue; + // string message = 2 [json_name = "message"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_message(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "proto.rpc.examples.echoresource.v1.EchoResourceRequest.message")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 74, 2> EchoResourceRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_EchoResourceRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string message = 2 [json_name = "message"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(EchoResourceRequest, _impl_.message_)}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(EchoResourceRequest, _impl_.name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(EchoResourceRequest, _impl_.name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string message = 2 [json_name = "message"]; - {PROTOBUF_FIELD_OFFSET(EchoResourceRequest, _impl_.message_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\66\4\7\0\0\0\0\0" - "proto.rpc.examples.echoresource.v1.EchoResourceRequest" - "name" - "message" - }}, -}; - -::uint8_t* EchoResourceRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* EchoResourceRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.rpc.examples.echoresource.v1.EchoResourceRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "proto.rpc.examples.echoresource.v1.EchoResourceRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "proto.rpc.examples.echoresource.v1.EchoResourceRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // string message = 2 [json_name = "message"]; if (!this->_internal_message().empty()) { - const std::string& _s = this->_internal_message(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "proto.rpc.examples.echoresource.v1.EchoResourceRequest.message"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_message().data(), static_cast(this->_internal_message().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "proto.rpc.examples.echoresource.v1.EchoResourceRequest.message"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_message(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:proto.rpc.examples.echoresource.v1.EchoResourceRequest) return target; } -::size_t EchoResourceRequest::ByteSizeLong() const { +size_t EchoResourceRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.rpc.examples.echoresource.v1.EchoResourceRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // string message = 2 [json_name = "message"]; if (!this->_internal_message().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_message()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_message()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData EchoResourceRequest::_class_data_ = { - EchoResourceRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EchoResourceRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + EchoResourceRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* EchoResourceRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EchoResourceRequest::GetClassData() const { return &_class_data_; } + +void EchoResourceRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void EchoResourceRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.examples.echoresource.v1.EchoResourceRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void EchoResourceRequest::MergeFrom(const EchoResourceRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.examples.echoresource.v1.EchoResourceRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (!from._internal_message().empty()) { - _this->_internal_set_message(from._internal_message()); + _internal_set_message(from._internal_message()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void EchoResourceRequest::CopyFrom(const EchoResourceRequest& from) { @@ -521,188 +441,196 @@ void EchoResourceRequest::CopyFrom(const EchoResourceRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool EchoResourceRequest::IsInitialized() const { +bool EchoResourceRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* EchoResourceRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void EchoResourceRequest::InternalSwap(EchoResourceRequest* PROTOBUF_RESTRICT other) { +void EchoResourceRequest::InternalSwap(EchoResourceRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.message_, &other->_impl_.message_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &message_, lhs_arena, + &other->message_, rhs_arena + ); } -::google::protobuf::Metadata EchoResourceRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata EchoResourceRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto_getter, &descriptor_table_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto_once, file_level_metadata_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto[0]); } + // =================================================================== class EchoResourceResponse::_Internal { public: }; -EchoResourceResponse::EchoResourceResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +EchoResourceResponse::EchoResourceResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:proto.rpc.examples.echoresource.v1.EchoResourceResponse) } -inline PROTOBUF_NDEBUG_INLINE EchoResourceResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : message_(arena, from.message_), - _cached_size_{0} {} - -EchoResourceResponse::EchoResourceResponse( - ::google::protobuf::Arena* arena, - const EchoResourceResponse& from) - : ::google::protobuf::Message(arena) { - EchoResourceResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +EchoResourceResponse::EchoResourceResponse(const EchoResourceResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + message_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + message_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_message().empty()) { + message_.Set(from._internal_message(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:proto.rpc.examples.echoresource.v1.EchoResourceResponse) } -inline PROTOBUF_NDEBUG_INLINE EchoResourceResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : message_(arena), - _cached_size_{0} {} -inline void EchoResourceResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void EchoResourceResponse::SharedCtor() { +message_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + message_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + EchoResourceResponse::~EchoResourceResponse() { // @@protoc_insertion_point(destructor:proto.rpc.examples.echoresource.v1.EchoResourceResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void EchoResourceResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.message_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + message_.Destroy(); +} + +void EchoResourceResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void EchoResourceResponse::Clear() { +void EchoResourceResponse::Clear() { // @@protoc_insertion_point(message_clear_start:proto.rpc.examples.echoresource.v1.EchoResourceResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.message_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* EchoResourceResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + message_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* EchoResourceResponse::_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 message = 1 [json_name = "message"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_message(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "proto.rpc.examples.echoresource.v1.EchoResourceResponse.message")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 71, 2> EchoResourceResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_EchoResourceResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string message = 1 [json_name = "message"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(EchoResourceResponse, _impl_.message_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string message = 1 [json_name = "message"]; - {PROTOBUF_FIELD_OFFSET(EchoResourceResponse, _impl_.message_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\67\7\0\0\0\0\0\0" - "proto.rpc.examples.echoresource.v1.EchoResourceResponse" - "message" - }}, -}; - -::uint8_t* EchoResourceResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* EchoResourceResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.rpc.examples.echoresource.v1.EchoResourceResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string message = 1 [json_name = "message"]; if (!this->_internal_message().empty()) { - const std::string& _s = this->_internal_message(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "proto.rpc.examples.echoresource.v1.EchoResourceResponse.message"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_message().data(), static_cast(this->_internal_message().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "proto.rpc.examples.echoresource.v1.EchoResourceResponse.message"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_message(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:proto.rpc.examples.echoresource.v1.EchoResourceResponse) return target; } -::size_t EchoResourceResponse::ByteSizeLong() const { +size_t EchoResourceResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.rpc.examples.echoresource.v1.EchoResourceResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string message = 1 [json_name = "message"]; if (!this->_internal_message().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_message()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_message()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData EchoResourceResponse::_class_data_ = { - EchoResourceResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EchoResourceResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + EchoResourceResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* EchoResourceResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EchoResourceResponse::GetClassData() const { return &_class_data_; } + +void EchoResourceResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void EchoResourceResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.examples.echoresource.v1.EchoResourceResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void EchoResourceResponse::MergeFrom(const EchoResourceResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.examples.echoresource.v1.EchoResourceResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_message().empty()) { - _this->_internal_set_message(from._internal_message()); + _internal_set_message(from._internal_message()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void EchoResourceResponse::CopyFrom(const EchoResourceResponse& from) { @@ -712,215 +640,236 @@ void EchoResourceResponse::CopyFrom(const EchoResourceResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool EchoResourceResponse::IsInitialized() const { +bool EchoResourceResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* EchoResourceResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void EchoResourceResponse::InternalSwap(EchoResourceResponse* PROTOBUF_RESTRICT other) { +void EchoResourceResponse::InternalSwap(EchoResourceResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.message_, &other->_impl_.message_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &message_, lhs_arena, + &other->message_, rhs_arena + ); } -::google::protobuf::Metadata EchoResourceResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata EchoResourceResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto_getter, &descriptor_table_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto_once, file_level_metadata_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto[1]); } + // =================================================================== class EchoResourceMultipleRequest::_Internal { public: }; -EchoResourceMultipleRequest::EchoResourceMultipleRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +EchoResourceMultipleRequest::EchoResourceMultipleRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:proto.rpc.examples.echoresource.v1.EchoResourceMultipleRequest) } -inline PROTOBUF_NDEBUG_INLINE EchoResourceMultipleRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : name_(arena, from.name_), - message_(arena, from.message_), - _cached_size_{0} {} - -EchoResourceMultipleRequest::EchoResourceMultipleRequest( - ::google::protobuf::Arena* arena, - const EchoResourceMultipleRequest& from) - : ::google::protobuf::Message(arena) { - EchoResourceMultipleRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +EchoResourceMultipleRequest::EchoResourceMultipleRequest(const EchoResourceMultipleRequest& 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()); + } + message_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + message_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_message().empty()) { + message_.Set(from._internal_message(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:proto.rpc.examples.echoresource.v1.EchoResourceMultipleRequest) } -inline PROTOBUF_NDEBUG_INLINE EchoResourceMultipleRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : name_(arena), - message_(arena), - _cached_size_{0} {} -inline void EchoResourceMultipleRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void EchoResourceMultipleRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +message_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + message_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + EchoResourceMultipleRequest::~EchoResourceMultipleRequest() { // @@protoc_insertion_point(destructor:proto.rpc.examples.echoresource.v1.EchoResourceMultipleRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void EchoResourceMultipleRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.message_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + message_.Destroy(); } -PROTOBUF_NOINLINE void EchoResourceMultipleRequest::Clear() { +void EchoResourceMultipleRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void EchoResourceMultipleRequest::Clear() { // @@protoc_insertion_point(message_clear_start:proto.rpc.examples.echoresource.v1.EchoResourceMultipleRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _impl_.message_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* EchoResourceMultipleRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + message_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* EchoResourceMultipleRequest::_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, "proto.rpc.examples.echoresource.v1.EchoResourceMultipleRequest.name")); + } else + goto handle_unusual; + continue; + // string message = 2 [json_name = "message"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_message(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "proto.rpc.examples.echoresource.v1.EchoResourceMultipleRequest.message")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 82, 2> EchoResourceMultipleRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_EchoResourceMultipleRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string message = 2 [json_name = "message"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(EchoResourceMultipleRequest, _impl_.message_)}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(EchoResourceMultipleRequest, _impl_.name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(EchoResourceMultipleRequest, _impl_.name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string message = 2 [json_name = "message"]; - {PROTOBUF_FIELD_OFFSET(EchoResourceMultipleRequest, _impl_.message_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\76\4\7\0\0\0\0\0" - "proto.rpc.examples.echoresource.v1.EchoResourceMultipleRequest" - "name" - "message" - }}, -}; - -::uint8_t* EchoResourceMultipleRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* EchoResourceMultipleRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.rpc.examples.echoresource.v1.EchoResourceMultipleRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "proto.rpc.examples.echoresource.v1.EchoResourceMultipleRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "proto.rpc.examples.echoresource.v1.EchoResourceMultipleRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // string message = 2 [json_name = "message"]; if (!this->_internal_message().empty()) { - const std::string& _s = this->_internal_message(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "proto.rpc.examples.echoresource.v1.EchoResourceMultipleRequest.message"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_message().data(), static_cast(this->_internal_message().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "proto.rpc.examples.echoresource.v1.EchoResourceMultipleRequest.message"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_message(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:proto.rpc.examples.echoresource.v1.EchoResourceMultipleRequest) return target; } -::size_t EchoResourceMultipleRequest::ByteSizeLong() const { +size_t EchoResourceMultipleRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.rpc.examples.echoresource.v1.EchoResourceMultipleRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // string message = 2 [json_name = "message"]; if (!this->_internal_message().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_message()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_message()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData EchoResourceMultipleRequest::_class_data_ = { - EchoResourceMultipleRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EchoResourceMultipleRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + EchoResourceMultipleRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* EchoResourceMultipleRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EchoResourceMultipleRequest::GetClassData() const { return &_class_data_; } + +void EchoResourceMultipleRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void EchoResourceMultipleRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.examples.echoresource.v1.EchoResourceMultipleRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void EchoResourceMultipleRequest::MergeFrom(const EchoResourceMultipleRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.examples.echoresource.v1.EchoResourceMultipleRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (!from._internal_message().empty()) { - _this->_internal_set_message(from._internal_message()); + _internal_set_message(from._internal_message()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void EchoResourceMultipleRequest::CopyFrom(const EchoResourceMultipleRequest& from) { @@ -930,188 +879,196 @@ void EchoResourceMultipleRequest::CopyFrom(const EchoResourceMultipleRequest& fr MergeFrom(from); } -PROTOBUF_NOINLINE bool EchoResourceMultipleRequest::IsInitialized() const { +bool EchoResourceMultipleRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* EchoResourceMultipleRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void EchoResourceMultipleRequest::InternalSwap(EchoResourceMultipleRequest* PROTOBUF_RESTRICT other) { +void EchoResourceMultipleRequest::InternalSwap(EchoResourceMultipleRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.message_, &other->_impl_.message_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &message_, lhs_arena, + &other->message_, rhs_arena + ); } -::google::protobuf::Metadata EchoResourceMultipleRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata EchoResourceMultipleRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto_getter, &descriptor_table_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto_once, file_level_metadata_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto[2]); } + // =================================================================== class EchoResourceMultipleResponse::_Internal { public: }; -EchoResourceMultipleResponse::EchoResourceMultipleResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +EchoResourceMultipleResponse::EchoResourceMultipleResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:proto.rpc.examples.echoresource.v1.EchoResourceMultipleResponse) } -inline PROTOBUF_NDEBUG_INLINE EchoResourceMultipleResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : message_(arena, from.message_), - _cached_size_{0} {} - -EchoResourceMultipleResponse::EchoResourceMultipleResponse( - ::google::protobuf::Arena* arena, - const EchoResourceMultipleResponse& from) - : ::google::protobuf::Message(arena) { - EchoResourceMultipleResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +EchoResourceMultipleResponse::EchoResourceMultipleResponse(const EchoResourceMultipleResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + message_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + message_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_message().empty()) { + message_.Set(from._internal_message(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:proto.rpc.examples.echoresource.v1.EchoResourceMultipleResponse) } -inline PROTOBUF_NDEBUG_INLINE EchoResourceMultipleResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : message_(arena), - _cached_size_{0} {} -inline void EchoResourceMultipleResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void EchoResourceMultipleResponse::SharedCtor() { +message_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + message_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + EchoResourceMultipleResponse::~EchoResourceMultipleResponse() { // @@protoc_insertion_point(destructor:proto.rpc.examples.echoresource.v1.EchoResourceMultipleResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void EchoResourceMultipleResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.message_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + message_.Destroy(); } -PROTOBUF_NOINLINE void EchoResourceMultipleResponse::Clear() { +void EchoResourceMultipleResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void EchoResourceMultipleResponse::Clear() { // @@protoc_insertion_point(message_clear_start:proto.rpc.examples.echoresource.v1.EchoResourceMultipleResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.message_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* EchoResourceMultipleResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + message_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* EchoResourceMultipleResponse::_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 message = 1 [json_name = "message"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_message(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "proto.rpc.examples.echoresource.v1.EchoResourceMultipleResponse.message")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 79, 2> EchoResourceMultipleResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_EchoResourceMultipleResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string message = 1 [json_name = "message"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(EchoResourceMultipleResponse, _impl_.message_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string message = 1 [json_name = "message"]; - {PROTOBUF_FIELD_OFFSET(EchoResourceMultipleResponse, _impl_.message_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\77\7\0\0\0\0\0\0" - "proto.rpc.examples.echoresource.v1.EchoResourceMultipleResponse" - "message" - }}, -}; - -::uint8_t* EchoResourceMultipleResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* EchoResourceMultipleResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.rpc.examples.echoresource.v1.EchoResourceMultipleResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string message = 1 [json_name = "message"]; if (!this->_internal_message().empty()) { - const std::string& _s = this->_internal_message(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "proto.rpc.examples.echoresource.v1.EchoResourceMultipleResponse.message"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_message().data(), static_cast(this->_internal_message().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "proto.rpc.examples.echoresource.v1.EchoResourceMultipleResponse.message"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_message(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:proto.rpc.examples.echoresource.v1.EchoResourceMultipleResponse) return target; } -::size_t EchoResourceMultipleResponse::ByteSizeLong() const { +size_t EchoResourceMultipleResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.rpc.examples.echoresource.v1.EchoResourceMultipleResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string message = 1 [json_name = "message"]; if (!this->_internal_message().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_message()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_message()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData EchoResourceMultipleResponse::_class_data_ = { - EchoResourceMultipleResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EchoResourceMultipleResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + EchoResourceMultipleResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* EchoResourceMultipleResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EchoResourceMultipleResponse::GetClassData() const { return &_class_data_; } + +void EchoResourceMultipleResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void EchoResourceMultipleResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.examples.echoresource.v1.EchoResourceMultipleResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void EchoResourceMultipleResponse::MergeFrom(const EchoResourceMultipleResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.examples.echoresource.v1.EchoResourceMultipleResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_message().empty()) { - _this->_internal_set_message(from._internal_message()); + _internal_set_message(from._internal_message()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void EchoResourceMultipleResponse::CopyFrom(const EchoResourceMultipleResponse& from) { @@ -1121,215 +1078,236 @@ void EchoResourceMultipleResponse::CopyFrom(const EchoResourceMultipleResponse& MergeFrom(from); } -PROTOBUF_NOINLINE bool EchoResourceMultipleResponse::IsInitialized() const { +bool EchoResourceMultipleResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* EchoResourceMultipleResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void EchoResourceMultipleResponse::InternalSwap(EchoResourceMultipleResponse* PROTOBUF_RESTRICT other) { +void EchoResourceMultipleResponse::InternalSwap(EchoResourceMultipleResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.message_, &other->_impl_.message_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &message_, lhs_arena, + &other->message_, rhs_arena + ); } -::google::protobuf::Metadata EchoResourceMultipleResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata EchoResourceMultipleResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto_getter, &descriptor_table_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto_once, file_level_metadata_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto[3]); } + // =================================================================== class EchoResourceBiDiRequest::_Internal { public: }; -EchoResourceBiDiRequest::EchoResourceBiDiRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +EchoResourceBiDiRequest::EchoResourceBiDiRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:proto.rpc.examples.echoresource.v1.EchoResourceBiDiRequest) } -inline PROTOBUF_NDEBUG_INLINE EchoResourceBiDiRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : name_(arena, from.name_), - message_(arena, from.message_), - _cached_size_{0} {} - -EchoResourceBiDiRequest::EchoResourceBiDiRequest( - ::google::protobuf::Arena* arena, - const EchoResourceBiDiRequest& from) - : ::google::protobuf::Message(arena) { - EchoResourceBiDiRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +EchoResourceBiDiRequest::EchoResourceBiDiRequest(const EchoResourceBiDiRequest& 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()); + } + message_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + message_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_message().empty()) { + message_.Set(from._internal_message(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:proto.rpc.examples.echoresource.v1.EchoResourceBiDiRequest) } -inline PROTOBUF_NDEBUG_INLINE EchoResourceBiDiRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : name_(arena), - message_(arena), - _cached_size_{0} {} -inline void EchoResourceBiDiRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void EchoResourceBiDiRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +message_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + message_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + EchoResourceBiDiRequest::~EchoResourceBiDiRequest() { // @@protoc_insertion_point(destructor:proto.rpc.examples.echoresource.v1.EchoResourceBiDiRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void EchoResourceBiDiRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.message_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + message_.Destroy(); +} + +void EchoResourceBiDiRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void EchoResourceBiDiRequest::Clear() { +void EchoResourceBiDiRequest::Clear() { // @@protoc_insertion_point(message_clear_start:proto.rpc.examples.echoresource.v1.EchoResourceBiDiRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _impl_.message_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* EchoResourceBiDiRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + message_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* EchoResourceBiDiRequest::_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, "proto.rpc.examples.echoresource.v1.EchoResourceBiDiRequest.name")); + } else + goto handle_unusual; + continue; + // string message = 2 [json_name = "message"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_message(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "proto.rpc.examples.echoresource.v1.EchoResourceBiDiRequest.message")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 78, 2> EchoResourceBiDiRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_EchoResourceBiDiRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string message = 2 [json_name = "message"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(EchoResourceBiDiRequest, _impl_.message_)}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(EchoResourceBiDiRequest, _impl_.name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(EchoResourceBiDiRequest, _impl_.name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string message = 2 [json_name = "message"]; - {PROTOBUF_FIELD_OFFSET(EchoResourceBiDiRequest, _impl_.message_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\72\4\7\0\0\0\0\0" - "proto.rpc.examples.echoresource.v1.EchoResourceBiDiRequest" - "name" - "message" - }}, -}; - -::uint8_t* EchoResourceBiDiRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* EchoResourceBiDiRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.rpc.examples.echoresource.v1.EchoResourceBiDiRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "proto.rpc.examples.echoresource.v1.EchoResourceBiDiRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "proto.rpc.examples.echoresource.v1.EchoResourceBiDiRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // string message = 2 [json_name = "message"]; if (!this->_internal_message().empty()) { - const std::string& _s = this->_internal_message(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "proto.rpc.examples.echoresource.v1.EchoResourceBiDiRequest.message"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_message().data(), static_cast(this->_internal_message().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "proto.rpc.examples.echoresource.v1.EchoResourceBiDiRequest.message"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_message(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:proto.rpc.examples.echoresource.v1.EchoResourceBiDiRequest) return target; } -::size_t EchoResourceBiDiRequest::ByteSizeLong() const { +size_t EchoResourceBiDiRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.rpc.examples.echoresource.v1.EchoResourceBiDiRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // string message = 2 [json_name = "message"]; if (!this->_internal_message().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_message()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_message()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData EchoResourceBiDiRequest::_class_data_ = { - EchoResourceBiDiRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EchoResourceBiDiRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + EchoResourceBiDiRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* EchoResourceBiDiRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EchoResourceBiDiRequest::GetClassData() const { return &_class_data_; } + +void EchoResourceBiDiRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void EchoResourceBiDiRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.examples.echoresource.v1.EchoResourceBiDiRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void EchoResourceBiDiRequest::MergeFrom(const EchoResourceBiDiRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.examples.echoresource.v1.EchoResourceBiDiRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (!from._internal_message().empty()) { - _this->_internal_set_message(from._internal_message()); + _internal_set_message(from._internal_message()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void EchoResourceBiDiRequest::CopyFrom(const EchoResourceBiDiRequest& from) { @@ -1339,188 +1317,196 @@ void EchoResourceBiDiRequest::CopyFrom(const EchoResourceBiDiRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool EchoResourceBiDiRequest::IsInitialized() const { +bool EchoResourceBiDiRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* EchoResourceBiDiRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void EchoResourceBiDiRequest::InternalSwap(EchoResourceBiDiRequest* PROTOBUF_RESTRICT other) { +void EchoResourceBiDiRequest::InternalSwap(EchoResourceBiDiRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.message_, &other->_impl_.message_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &message_, lhs_arena, + &other->message_, rhs_arena + ); } -::google::protobuf::Metadata EchoResourceBiDiRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata EchoResourceBiDiRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto_getter, &descriptor_table_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto_once, file_level_metadata_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto[4]); } + // =================================================================== class EchoResourceBiDiResponse::_Internal { public: }; -EchoResourceBiDiResponse::EchoResourceBiDiResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +EchoResourceBiDiResponse::EchoResourceBiDiResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:proto.rpc.examples.echoresource.v1.EchoResourceBiDiResponse) } -inline PROTOBUF_NDEBUG_INLINE EchoResourceBiDiResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : message_(arena, from.message_), - _cached_size_{0} {} - -EchoResourceBiDiResponse::EchoResourceBiDiResponse( - ::google::protobuf::Arena* arena, - const EchoResourceBiDiResponse& from) - : ::google::protobuf::Message(arena) { - EchoResourceBiDiResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +EchoResourceBiDiResponse::EchoResourceBiDiResponse(const EchoResourceBiDiResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + message_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + message_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_message().empty()) { + message_.Set(from._internal_message(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:proto.rpc.examples.echoresource.v1.EchoResourceBiDiResponse) } -inline PROTOBUF_NDEBUG_INLINE EchoResourceBiDiResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : message_(arena), - _cached_size_{0} {} -inline void EchoResourceBiDiResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void EchoResourceBiDiResponse::SharedCtor() { +message_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + message_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + EchoResourceBiDiResponse::~EchoResourceBiDiResponse() { // @@protoc_insertion_point(destructor:proto.rpc.examples.echoresource.v1.EchoResourceBiDiResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void EchoResourceBiDiResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.message_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + message_.Destroy(); +} + +void EchoResourceBiDiResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void EchoResourceBiDiResponse::Clear() { +void EchoResourceBiDiResponse::Clear() { // @@protoc_insertion_point(message_clear_start:proto.rpc.examples.echoresource.v1.EchoResourceBiDiResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.message_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* EchoResourceBiDiResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + message_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* EchoResourceBiDiResponse::_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 message = 1 [json_name = "message"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_message(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "proto.rpc.examples.echoresource.v1.EchoResourceBiDiResponse.message")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 75, 2> EchoResourceBiDiResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_EchoResourceBiDiResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string message = 1 [json_name = "message"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(EchoResourceBiDiResponse, _impl_.message_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string message = 1 [json_name = "message"]; - {PROTOBUF_FIELD_OFFSET(EchoResourceBiDiResponse, _impl_.message_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\73\7\0\0\0\0\0\0" - "proto.rpc.examples.echoresource.v1.EchoResourceBiDiResponse" - "message" - }}, -}; - -::uint8_t* EchoResourceBiDiResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* EchoResourceBiDiResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.rpc.examples.echoresource.v1.EchoResourceBiDiResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string message = 1 [json_name = "message"]; if (!this->_internal_message().empty()) { - const std::string& _s = this->_internal_message(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "proto.rpc.examples.echoresource.v1.EchoResourceBiDiResponse.message"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_message().data(), static_cast(this->_internal_message().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "proto.rpc.examples.echoresource.v1.EchoResourceBiDiResponse.message"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_message(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:proto.rpc.examples.echoresource.v1.EchoResourceBiDiResponse) return target; } -::size_t EchoResourceBiDiResponse::ByteSizeLong() const { +size_t EchoResourceBiDiResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.rpc.examples.echoresource.v1.EchoResourceBiDiResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string message = 1 [json_name = "message"]; if (!this->_internal_message().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_message()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_message()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData EchoResourceBiDiResponse::_class_data_ = { - EchoResourceBiDiResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EchoResourceBiDiResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + EchoResourceBiDiResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* EchoResourceBiDiResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EchoResourceBiDiResponse::GetClassData() const { return &_class_data_; } + +void EchoResourceBiDiResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void EchoResourceBiDiResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.examples.echoresource.v1.EchoResourceBiDiResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void EchoResourceBiDiResponse::MergeFrom(const EchoResourceBiDiResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.examples.echoresource.v1.EchoResourceBiDiResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_message().empty()) { - _this->_internal_set_message(from._internal_message()); + _internal_set_message(from._internal_message()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void EchoResourceBiDiResponse::CopyFrom(const EchoResourceBiDiResponse& from) { @@ -1530,35 +1516,59 @@ void EchoResourceBiDiResponse::CopyFrom(const EchoResourceBiDiResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool EchoResourceBiDiResponse::IsInitialized() const { +bool EchoResourceBiDiResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* EchoResourceBiDiResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void EchoResourceBiDiResponse::InternalSwap(EchoResourceBiDiResponse* PROTOBUF_RESTRICT other) { +void EchoResourceBiDiResponse::InternalSwap(EchoResourceBiDiResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.message_, &other->_impl_.message_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &message_, lhs_arena, + &other->message_, rhs_arena + ); } -::google::protobuf::Metadata EchoResourceBiDiResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata EchoResourceBiDiResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto_getter, &descriptor_table_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto_once, file_level_metadata_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto[5]); } + // @@protoc_insertion_point(namespace_scope) } // namespace v1 } // namespace echoresource } // namespace examples } // namespace rpc } // namespace proto -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::proto::rpc::examples::echoresource::v1::EchoResourceRequest* +Arena::CreateMaybeMessage< ::proto::rpc::examples::echoresource::v1::EchoResourceRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::rpc::examples::echoresource::v1::EchoResourceRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::rpc::examples::echoresource::v1::EchoResourceResponse* +Arena::CreateMaybeMessage< ::proto::rpc::examples::echoresource::v1::EchoResourceResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::rpc::examples::echoresource::v1::EchoResourceResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleRequest* +Arena::CreateMaybeMessage< ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleResponse* +Arena::CreateMaybeMessage< ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::rpc::examples::echoresource::v1::EchoResourceBiDiRequest* +Arena::CreateMaybeMessage< ::proto::rpc::examples::echoresource::v1::EchoResourceBiDiRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::rpc::examples::echoresource::v1::EchoResourceBiDiRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::rpc::examples::echoresource::v1::EchoResourceBiDiResponse* +Arena::CreateMaybeMessage< ::proto::rpc::examples::echoresource::v1::EchoResourceBiDiResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::rpc::examples::echoresource::v1::EchoResourceBiDiResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/proto/rpc/examples/echoresource/v1/echoresource.pb.h b/src/viam/api/proto/rpc/examples/echoresource/v1/echoresource.pb.h index 65248e76d..49cd34905 100644 --- a/src/viam/api/proto/rpc/examples/echoresource/v1/echoresource.pb.h +++ b/src/viam/api/proto/rpc/examples/echoresource/v1/echoresource.pb.h @@ -1,60 +1,49 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: proto/rpc/examples/echoresource/v1/echoresource.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/unknown_field_set.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +// @@protoc_insertion_point(includes) +#include #define PROTOBUF_INTERNAL_EXPORT_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto; namespace proto { namespace rpc { namespace examples { @@ -83,11 +72,14 @@ extern EchoResourceResponseDefaultTypeInternal _EchoResourceResponse_default_ins } // namespace examples } // namespace rpc } // namespace proto -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - +PROTOBUF_NAMESPACE_OPEN +template<> ::proto::rpc::examples::echoresource::v1::EchoResourceBiDiRequest* Arena::CreateMaybeMessage<::proto::rpc::examples::echoresource::v1::EchoResourceBiDiRequest>(Arena*); +template<> ::proto::rpc::examples::echoresource::v1::EchoResourceBiDiResponse* Arena::CreateMaybeMessage<::proto::rpc::examples::echoresource::v1::EchoResourceBiDiResponse>(Arena*); +template<> ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleRequest* Arena::CreateMaybeMessage<::proto::rpc::examples::echoresource::v1::EchoResourceMultipleRequest>(Arena*); +template<> ::proto::rpc::examples::echoresource::v1::EchoResourceMultipleResponse* Arena::CreateMaybeMessage<::proto::rpc::examples::echoresource::v1::EchoResourceMultipleResponse>(Arena*); +template<> ::proto::rpc::examples::echoresource::v1::EchoResourceRequest* Arena::CreateMaybeMessage<::proto::rpc::examples::echoresource::v1::EchoResourceRequest>(Arena*); +template<> ::proto::rpc::examples::echoresource::v1::EchoResourceResponse* Arena::CreateMaybeMessage<::proto::rpc::examples::echoresource::v1::EchoResourceResponse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace proto { namespace rpc { namespace examples { @@ -96,200 +88,14 @@ namespace v1 { // =================================================================== - -// ------------------------------------------------------------------- - -class EchoResourceResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto.rpc.examples.echoresource.v1.EchoResourceResponse) */ { - public: - inline EchoResourceResponse() : EchoResourceResponse(nullptr) {} - ~EchoResourceResponse() override; - template - explicit PROTOBUF_CONSTEXPR EchoResourceResponse(::google::protobuf::internal::ConstantInitialized); - - inline EchoResourceResponse(const EchoResourceResponse& from) - : EchoResourceResponse(nullptr, from) {} - EchoResourceResponse(EchoResourceResponse&& from) noexcept - : EchoResourceResponse() { - *this = ::std::move(from); - } - - inline EchoResourceResponse& operator=(const EchoResourceResponse& from) { - CopyFrom(from); - return *this; - } - inline EchoResourceResponse& operator=(EchoResourceResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const EchoResourceResponse& default_instance() { - return *internal_default_instance(); - } - static inline const EchoResourceResponse* internal_default_instance() { - return reinterpret_cast( - &_EchoResourceResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(EchoResourceResponse& a, EchoResourceResponse& b) { - a.Swap(&b); - } - inline void Swap(EchoResourceResponse* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(EchoResourceResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - EchoResourceResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const EchoResourceResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const EchoResourceResponse& from) { - EchoResourceResponse::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(EchoResourceResponse* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "proto.rpc.examples.echoresource.v1.EchoResourceResponse"; - } - protected: - explicit EchoResourceResponse(::google::protobuf::Arena* arena); - EchoResourceResponse(::google::protobuf::Arena* arena, const EchoResourceResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kMessageFieldNumber = 1, - }; - // string message = 1 [json_name = "message"]; - void clear_message() ; - const std::string& message() const; - template - void set_message(Arg_&& arg, Args_... args); - std::string* mutable_message(); - PROTOBUF_NODISCARD std::string* release_message(); - void set_allocated_message(std::string* value); - - private: - const std::string& _internal_message() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_message( - const std::string& value); - std::string* _internal_mutable_message(); - - public: - // @@protoc_insertion_point(class_scope:proto.rpc.examples.echoresource.v1.EchoResourceResponse) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 71, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr message_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto; -};// ------------------------------------------------------------------- - class EchoResourceRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto.rpc.examples.echoresource.v1.EchoResourceRequest) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.rpc.examples.echoresource.v1.EchoResourceRequest) */ { public: inline EchoResourceRequest() : EchoResourceRequest(nullptr) {} ~EchoResourceRequest() override; - template - explicit PROTOBUF_CONSTEXPR EchoResourceRequest(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR EchoResourceRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline EchoResourceRequest(const EchoResourceRequest& from) - : EchoResourceRequest(nullptr, from) {} + EchoResourceRequest(const EchoResourceRequest& from); EchoResourceRequest(EchoResourceRequest&& from) noexcept : EchoResourceRequest() { *this = ::std::move(from); @@ -301,9 +107,9 @@ class EchoResourceRequest final : } inline EchoResourceRequest& operator=(EchoResourceRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -313,22 +119,13 @@ class EchoResourceRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const EchoResourceRequest& default_instance() { @@ -347,65 +144,63 @@ class EchoResourceRequest final : inline void Swap(EchoResourceRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(EchoResourceRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - EchoResourceRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + EchoResourceRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const EchoResourceRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const EchoResourceRequest& from) { - EchoResourceRequest::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const EchoResourceRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(EchoResourceRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "proto.rpc.examples.echoresource.v1.EchoResourceRequest"; } protected: - explicit EchoResourceRequest(::google::protobuf::Arena* arena); - EchoResourceRequest(::google::protobuf::Arena* arena, const EchoResourceRequest& from); + explicit EchoResourceRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -416,93 +211,69 @@ class EchoResourceRequest final : kMessageFieldNumber = 2, }; // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); std::string* _internal_mutable_name(); - public: + // string message = 2 [json_name = "message"]; - void clear_message() ; + void clear_message(); const std::string& message() const; - template - void set_message(Arg_&& arg, Args_... args); + template + void set_message(ArgT0&& arg0, ArgT... args); std::string* mutable_message(); PROTOBUF_NODISCARD std::string* release_message(); - void set_allocated_message(std::string* value); - + void set_allocated_message(std::string* message); private: const std::string& _internal_message() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_message( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_message(const std::string& value); std::string* _internal_mutable_message(); - public: + // @@protoc_insertion_point(class_scope:proto.rpc.examples.echoresource.v1.EchoResourceRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 74, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr message_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class EchoResourceMultipleResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto.rpc.examples.echoresource.v1.EchoResourceMultipleResponse) */ { +class EchoResourceResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.rpc.examples.echoresource.v1.EchoResourceResponse) */ { public: - inline EchoResourceMultipleResponse() : EchoResourceMultipleResponse(nullptr) {} - ~EchoResourceMultipleResponse() override; - template - explicit PROTOBUF_CONSTEXPR EchoResourceMultipleResponse(::google::protobuf::internal::ConstantInitialized); + inline EchoResourceResponse() : EchoResourceResponse(nullptr) {} + ~EchoResourceResponse() override; + explicit PROTOBUF_CONSTEXPR EchoResourceResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline EchoResourceMultipleResponse(const EchoResourceMultipleResponse& from) - : EchoResourceMultipleResponse(nullptr, from) {} - EchoResourceMultipleResponse(EchoResourceMultipleResponse&& from) noexcept - : EchoResourceMultipleResponse() { + EchoResourceResponse(const EchoResourceResponse& from); + EchoResourceResponse(EchoResourceResponse&& from) noexcept + : EchoResourceResponse() { *this = ::std::move(from); } - inline EchoResourceMultipleResponse& operator=(const EchoResourceMultipleResponse& from) { + inline EchoResourceResponse& operator=(const EchoResourceResponse& from) { CopyFrom(from); return *this; } - inline EchoResourceMultipleResponse& operator=(EchoResourceMultipleResponse&& from) noexcept { + inline EchoResourceResponse& operator=(EchoResourceResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -512,99 +283,88 @@ class EchoResourceMultipleResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const EchoResourceMultipleResponse& default_instance() { + static const EchoResourceResponse& default_instance() { return *internal_default_instance(); } - static inline const EchoResourceMultipleResponse* internal_default_instance() { - return reinterpret_cast( - &_EchoResourceMultipleResponse_default_instance_); + static inline const EchoResourceResponse* internal_default_instance() { + return reinterpret_cast( + &_EchoResourceResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 3; + 1; - friend void swap(EchoResourceMultipleResponse& a, EchoResourceMultipleResponse& b) { + friend void swap(EchoResourceResponse& a, EchoResourceResponse& b) { a.Swap(&b); } - inline void Swap(EchoResourceMultipleResponse* other) { + inline void Swap(EchoResourceResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(EchoResourceMultipleResponse* other) { + void UnsafeArenaSwap(EchoResourceResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - EchoResourceMultipleResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const EchoResourceMultipleResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const EchoResourceMultipleResponse& from) { - EchoResourceMultipleResponse::MergeImpl(*this, from); + EchoResourceResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const EchoResourceResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const EchoResourceResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(EchoResourceMultipleResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(EchoResourceResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "proto.rpc.examples.echoresource.v1.EchoResourceMultipleResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.rpc.examples.echoresource.v1.EchoResourceResponse"; } protected: - explicit EchoResourceMultipleResponse(::google::protobuf::Arena* arena); - EchoResourceMultipleResponse(::google::protobuf::Arena* arena, const EchoResourceMultipleResponse& from); + explicit EchoResourceResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -614,62 +374,40 @@ class EchoResourceMultipleResponse final : kMessageFieldNumber = 1, }; // string message = 1 [json_name = "message"]; - void clear_message() ; + void clear_message(); const std::string& message() const; - template - void set_message(Arg_&& arg, Args_... args); + template + void set_message(ArgT0&& arg0, ArgT... args); std::string* mutable_message(); PROTOBUF_NODISCARD std::string* release_message(); - void set_allocated_message(std::string* value); - + void set_allocated_message(std::string* message); private: const std::string& _internal_message() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_message( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_message(const std::string& value); std::string* _internal_mutable_message(); - public: - // @@protoc_insertion_point(class_scope:proto.rpc.examples.echoresource.v1.EchoResourceMultipleResponse) + + // @@protoc_insertion_point(class_scope:proto.rpc.examples.echoresource.v1.EchoResourceResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 79, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr message_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class EchoResourceMultipleRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto.rpc.examples.echoresource.v1.EchoResourceMultipleRequest) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.rpc.examples.echoresource.v1.EchoResourceMultipleRequest) */ { public: inline EchoResourceMultipleRequest() : EchoResourceMultipleRequest(nullptr) {} ~EchoResourceMultipleRequest() override; - template - explicit PROTOBUF_CONSTEXPR EchoResourceMultipleRequest(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR EchoResourceMultipleRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline EchoResourceMultipleRequest(const EchoResourceMultipleRequest& from) - : EchoResourceMultipleRequest(nullptr, from) {} + EchoResourceMultipleRequest(const EchoResourceMultipleRequest& from); EchoResourceMultipleRequest(EchoResourceMultipleRequest&& from) noexcept : EchoResourceMultipleRequest() { *this = ::std::move(from); @@ -681,9 +419,9 @@ class EchoResourceMultipleRequest final : } inline EchoResourceMultipleRequest& operator=(EchoResourceMultipleRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -693,22 +431,13 @@ class EchoResourceMultipleRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const EchoResourceMultipleRequest& default_instance() { @@ -727,65 +456,63 @@ class EchoResourceMultipleRequest final : inline void Swap(EchoResourceMultipleRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(EchoResourceMultipleRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - EchoResourceMultipleRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + EchoResourceMultipleRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const EchoResourceMultipleRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const EchoResourceMultipleRequest& from) { - EchoResourceMultipleRequest::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const EchoResourceMultipleRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(EchoResourceMultipleRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "proto.rpc.examples.echoresource.v1.EchoResourceMultipleRequest"; } protected: - explicit EchoResourceMultipleRequest(::google::protobuf::Arena* arena); - EchoResourceMultipleRequest(::google::protobuf::Arena* arena, const EchoResourceMultipleRequest& from); + explicit EchoResourceMultipleRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -796,93 +523,69 @@ class EchoResourceMultipleRequest final : kMessageFieldNumber = 2, }; // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); std::string* _internal_mutable_name(); - public: + // string message = 2 [json_name = "message"]; - void clear_message() ; + void clear_message(); const std::string& message() const; - template - void set_message(Arg_&& arg, Args_... args); + template + void set_message(ArgT0&& arg0, ArgT... args); std::string* mutable_message(); PROTOBUF_NODISCARD std::string* release_message(); - void set_allocated_message(std::string* value); - + void set_allocated_message(std::string* message); private: const std::string& _internal_message() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_message( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_message(const std::string& value); std::string* _internal_mutable_message(); - public: + // @@protoc_insertion_point(class_scope:proto.rpc.examples.echoresource.v1.EchoResourceMultipleRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 82, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr message_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class EchoResourceBiDiResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto.rpc.examples.echoresource.v1.EchoResourceBiDiResponse) */ { +class EchoResourceMultipleResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.rpc.examples.echoresource.v1.EchoResourceMultipleResponse) */ { public: - inline EchoResourceBiDiResponse() : EchoResourceBiDiResponse(nullptr) {} - ~EchoResourceBiDiResponse() override; - template - explicit PROTOBUF_CONSTEXPR EchoResourceBiDiResponse(::google::protobuf::internal::ConstantInitialized); + inline EchoResourceMultipleResponse() : EchoResourceMultipleResponse(nullptr) {} + ~EchoResourceMultipleResponse() override; + explicit PROTOBUF_CONSTEXPR EchoResourceMultipleResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline EchoResourceBiDiResponse(const EchoResourceBiDiResponse& from) - : EchoResourceBiDiResponse(nullptr, from) {} - EchoResourceBiDiResponse(EchoResourceBiDiResponse&& from) noexcept - : EchoResourceBiDiResponse() { + EchoResourceMultipleResponse(const EchoResourceMultipleResponse& from); + EchoResourceMultipleResponse(EchoResourceMultipleResponse&& from) noexcept + : EchoResourceMultipleResponse() { *this = ::std::move(from); } - inline EchoResourceBiDiResponse& operator=(const EchoResourceBiDiResponse& from) { + inline EchoResourceMultipleResponse& operator=(const EchoResourceMultipleResponse& from) { CopyFrom(from); return *this; } - inline EchoResourceBiDiResponse& operator=(EchoResourceBiDiResponse&& from) noexcept { + inline EchoResourceMultipleResponse& operator=(EchoResourceMultipleResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -892,99 +595,88 @@ class EchoResourceBiDiResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const EchoResourceBiDiResponse& default_instance() { + static const EchoResourceMultipleResponse& default_instance() { return *internal_default_instance(); } - static inline const EchoResourceBiDiResponse* internal_default_instance() { - return reinterpret_cast( - &_EchoResourceBiDiResponse_default_instance_); + static inline const EchoResourceMultipleResponse* internal_default_instance() { + return reinterpret_cast( + &_EchoResourceMultipleResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 5; + 3; - friend void swap(EchoResourceBiDiResponse& a, EchoResourceBiDiResponse& b) { + friend void swap(EchoResourceMultipleResponse& a, EchoResourceMultipleResponse& b) { a.Swap(&b); } - inline void Swap(EchoResourceBiDiResponse* other) { + inline void Swap(EchoResourceMultipleResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(EchoResourceBiDiResponse* other) { + void UnsafeArenaSwap(EchoResourceMultipleResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - EchoResourceBiDiResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const EchoResourceBiDiResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const EchoResourceBiDiResponse& from) { - EchoResourceBiDiResponse::MergeImpl(*this, from); + EchoResourceMultipleResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const EchoResourceMultipleResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const EchoResourceMultipleResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(EchoResourceBiDiResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(EchoResourceMultipleResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "proto.rpc.examples.echoresource.v1.EchoResourceBiDiResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.rpc.examples.echoresource.v1.EchoResourceMultipleResponse"; } protected: - explicit EchoResourceBiDiResponse(::google::protobuf::Arena* arena); - EchoResourceBiDiResponse(::google::protobuf::Arena* arena, const EchoResourceBiDiResponse& from); + explicit EchoResourceMultipleResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -994,62 +686,40 @@ class EchoResourceBiDiResponse final : kMessageFieldNumber = 1, }; // string message = 1 [json_name = "message"]; - void clear_message() ; + void clear_message(); const std::string& message() const; - template - void set_message(Arg_&& arg, Args_... args); + template + void set_message(ArgT0&& arg0, ArgT... args); std::string* mutable_message(); PROTOBUF_NODISCARD std::string* release_message(); - void set_allocated_message(std::string* value); - + void set_allocated_message(std::string* message); private: const std::string& _internal_message() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_message( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_message(const std::string& value); std::string* _internal_mutable_message(); - public: - // @@protoc_insertion_point(class_scope:proto.rpc.examples.echoresource.v1.EchoResourceBiDiResponse) + + // @@protoc_insertion_point(class_scope:proto.rpc.examples.echoresource.v1.EchoResourceMultipleResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 75, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr message_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class EchoResourceBiDiRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto.rpc.examples.echoresource.v1.EchoResourceBiDiRequest) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.rpc.examples.echoresource.v1.EchoResourceBiDiRequest) */ { public: inline EchoResourceBiDiRequest() : EchoResourceBiDiRequest(nullptr) {} ~EchoResourceBiDiRequest() override; - template - explicit PROTOBUF_CONSTEXPR EchoResourceBiDiRequest(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR EchoResourceBiDiRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline EchoResourceBiDiRequest(const EchoResourceBiDiRequest& from) - : EchoResourceBiDiRequest(nullptr, from) {} + EchoResourceBiDiRequest(const EchoResourceBiDiRequest& from); EchoResourceBiDiRequest(EchoResourceBiDiRequest&& from) noexcept : EchoResourceBiDiRequest() { *this = ::std::move(from); @@ -1061,9 +731,9 @@ class EchoResourceBiDiRequest final : } inline EchoResourceBiDiRequest& operator=(EchoResourceBiDiRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1073,22 +743,13 @@ class EchoResourceBiDiRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const EchoResourceBiDiRequest& default_instance() { @@ -1107,65 +768,63 @@ class EchoResourceBiDiRequest final : inline void Swap(EchoResourceBiDiRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(EchoResourceBiDiRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - EchoResourceBiDiRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + EchoResourceBiDiRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const EchoResourceBiDiRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const EchoResourceBiDiRequest& from) { - EchoResourceBiDiRequest::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const EchoResourceBiDiRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(EchoResourceBiDiRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "proto.rpc.examples.echoresource.v1.EchoResourceBiDiRequest"; } protected: - explicit EchoResourceBiDiRequest(::google::protobuf::Arena* arena); - EchoResourceBiDiRequest(::google::protobuf::Arena* arena, const EchoResourceBiDiRequest& from); + explicit EchoResourceBiDiRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1176,188 +835,301 @@ class EchoResourceBiDiRequest final : kMessageFieldNumber = 2, }; // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); std::string* _internal_mutable_name(); - public: + // string message = 2 [json_name = "message"]; - void clear_message() ; + void clear_message(); const std::string& message() const; - template - void set_message(Arg_&& arg, Args_... args); + template + void set_message(ArgT0&& arg0, ArgT... args); std::string* mutable_message(); PROTOBUF_NODISCARD std::string* release_message(); - void set_allocated_message(std::string* value); - + void set_allocated_message(std::string* message); private: const std::string& _internal_message() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_message( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_message(const std::string& value); std::string* _internal_mutable_message(); - public: + // @@protoc_insertion_point(class_scope:proto.rpc.examples.echoresource.v1.EchoResourceBiDiRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 78, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr message_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto; }; +// ------------------------------------------------------------------- -// =================================================================== +class EchoResourceBiDiResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.rpc.examples.echoresource.v1.EchoResourceBiDiResponse) */ { + public: + inline EchoResourceBiDiResponse() : EchoResourceBiDiResponse(nullptr) {} + ~EchoResourceBiDiResponse() override; + explicit PROTOBUF_CONSTEXPR EchoResourceBiDiResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + EchoResourceBiDiResponse(const EchoResourceBiDiResponse& from); + EchoResourceBiDiResponse(EchoResourceBiDiResponse&& from) noexcept + : EchoResourceBiDiResponse() { + *this = ::std::move(from); + } + inline EchoResourceBiDiResponse& operator=(const EchoResourceBiDiResponse& from) { + CopyFrom(from); + return *this; + } + inline EchoResourceBiDiResponse& operator=(EchoResourceBiDiResponse&& 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 EchoResourceBiDiResponse& default_instance() { + return *internal_default_instance(); + } + static inline const EchoResourceBiDiResponse* internal_default_instance() { + return reinterpret_cast( + &_EchoResourceBiDiResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + friend void swap(EchoResourceBiDiResponse& a, EchoResourceBiDiResponse& b) { + a.Swap(&b); + } + inline void Swap(EchoResourceBiDiResponse* 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(EchoResourceBiDiResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + EchoResourceBiDiResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const EchoResourceBiDiResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const EchoResourceBiDiResponse& 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(EchoResourceBiDiResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.rpc.examples.echoresource.v1.EchoResourceBiDiResponse"; + } + protected: + explicit EchoResourceBiDiResponse(::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 { + kMessageFieldNumber = 1, + }; + // string message = 1 [json_name = "message"]; + void clear_message(); + const std::string& message() const; + template + void set_message(ArgT0&& arg0, ArgT... args); + std::string* mutable_message(); + PROTOBUF_NODISCARD std::string* release_message(); + void set_allocated_message(std::string* message); + private: + const std::string& _internal_message() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_message(const std::string& value); + std::string* _internal_mutable_message(); + public: + + // @@protoc_insertion_point(class_scope:proto.rpc.examples.echoresource.v1.EchoResourceBiDiResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto; +}; // =================================================================== +// =================================================================== + #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ -// ------------------------------------------------------------------- - // EchoResourceRequest // string name = 1 [json_name = "name"]; inline void EchoResourceRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& EchoResourceRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& EchoResourceRequest::name() const { // @@protoc_insertion_point(field_get:proto.rpc.examples.echoresource.v1.EchoResourceRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void EchoResourceRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void EchoResourceRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.rpc.examples.echoresource.v1.EchoResourceRequest.name) } -inline std::string* EchoResourceRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* EchoResourceRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:proto.rpc.examples.echoresource.v1.EchoResourceRequest.name) return _s; } inline const std::string& EchoResourceRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void EchoResourceRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* EchoResourceRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* EchoResourceRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:proto.rpc.examples.echoresource.v1.EchoResourceRequest.name) - return _impl_.name_.Release(); -} -inline void EchoResourceRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void EchoResourceRequest::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:proto.rpc.examples.echoresource.v1.EchoResourceRequest.name) } // string message = 2 [json_name = "message"]; inline void EchoResourceRequest::clear_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.message_.ClearToEmpty(); + message_.ClearToEmpty(); } -inline const std::string& EchoResourceRequest::message() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& EchoResourceRequest::message() const { // @@protoc_insertion_point(field_get:proto.rpc.examples.echoresource.v1.EchoResourceRequest.message) return _internal_message(); } -template -inline PROTOBUF_ALWAYS_INLINE void EchoResourceRequest::set_message(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.message_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void EchoResourceRequest::set_message(ArgT0&& arg0, ArgT... args) { + + message_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.rpc.examples.echoresource.v1.EchoResourceRequest.message) } -inline std::string* EchoResourceRequest::mutable_message() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* EchoResourceRequest::mutable_message() { std::string* _s = _internal_mutable_message(); // @@protoc_insertion_point(field_mutable:proto.rpc.examples.echoresource.v1.EchoResourceRequest.message) return _s; } inline const std::string& EchoResourceRequest::_internal_message() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.message_.Get(); + return message_.Get(); } inline void EchoResourceRequest::_internal_set_message(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.message_.Set(value, GetArena()); + + message_.Set(value, GetArenaForAllocation()); } inline std::string* EchoResourceRequest::_internal_mutable_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.message_.Mutable( GetArena()); + + return message_.Mutable(GetArenaForAllocation()); } inline std::string* EchoResourceRequest::release_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:proto.rpc.examples.echoresource.v1.EchoResourceRequest.message) - return _impl_.message_.Release(); -} -inline void EchoResourceRequest::set_allocated_message(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.message_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.message_.IsDefault()) { - _impl_.message_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return message_.Release(); +} +inline void EchoResourceRequest::set_allocated_message(std::string* message) { + if (message != nullptr) { + + } else { + + } + message_.SetAllocated(message, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (message_.IsDefault()) { + message_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:proto.rpc.examples.echoresource.v1.EchoResourceRequest.message) } @@ -1367,54 +1139,51 @@ inline void EchoResourceRequest::set_allocated_message(std::string* value) { // string message = 1 [json_name = "message"]; inline void EchoResourceResponse::clear_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.message_.ClearToEmpty(); + message_.ClearToEmpty(); } -inline const std::string& EchoResourceResponse::message() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& EchoResourceResponse::message() const { // @@protoc_insertion_point(field_get:proto.rpc.examples.echoresource.v1.EchoResourceResponse.message) return _internal_message(); } -template -inline PROTOBUF_ALWAYS_INLINE void EchoResourceResponse::set_message(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.message_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void EchoResourceResponse::set_message(ArgT0&& arg0, ArgT... args) { + + message_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.rpc.examples.echoresource.v1.EchoResourceResponse.message) } -inline std::string* EchoResourceResponse::mutable_message() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* EchoResourceResponse::mutable_message() { std::string* _s = _internal_mutable_message(); // @@protoc_insertion_point(field_mutable:proto.rpc.examples.echoresource.v1.EchoResourceResponse.message) return _s; } inline const std::string& EchoResourceResponse::_internal_message() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.message_.Get(); + return message_.Get(); } inline void EchoResourceResponse::_internal_set_message(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.message_.Set(value, GetArena()); + + message_.Set(value, GetArenaForAllocation()); } inline std::string* EchoResourceResponse::_internal_mutable_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.message_.Mutable( GetArena()); + + return message_.Mutable(GetArenaForAllocation()); } inline std::string* EchoResourceResponse::release_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:proto.rpc.examples.echoresource.v1.EchoResourceResponse.message) - return _impl_.message_.Release(); -} -inline void EchoResourceResponse::set_allocated_message(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.message_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.message_.IsDefault()) { - _impl_.message_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return message_.Release(); +} +inline void EchoResourceResponse::set_allocated_message(std::string* message) { + if (message != nullptr) { + + } else { + + } + message_.SetAllocated(message, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (message_.IsDefault()) { + message_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:proto.rpc.examples.echoresource.v1.EchoResourceResponse.message) } @@ -1424,107 +1193,101 @@ inline void EchoResourceResponse::set_allocated_message(std::string* value) { // string name = 1 [json_name = "name"]; inline void EchoResourceMultipleRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& EchoResourceMultipleRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& EchoResourceMultipleRequest::name() const { // @@protoc_insertion_point(field_get:proto.rpc.examples.echoresource.v1.EchoResourceMultipleRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void EchoResourceMultipleRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void EchoResourceMultipleRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.rpc.examples.echoresource.v1.EchoResourceMultipleRequest.name) } -inline std::string* EchoResourceMultipleRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* EchoResourceMultipleRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:proto.rpc.examples.echoresource.v1.EchoResourceMultipleRequest.name) return _s; } inline const std::string& EchoResourceMultipleRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void EchoResourceMultipleRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* EchoResourceMultipleRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* EchoResourceMultipleRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:proto.rpc.examples.echoresource.v1.EchoResourceMultipleRequest.name) - return _impl_.name_.Release(); -} -inline void EchoResourceMultipleRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void EchoResourceMultipleRequest::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:proto.rpc.examples.echoresource.v1.EchoResourceMultipleRequest.name) } // string message = 2 [json_name = "message"]; inline void EchoResourceMultipleRequest::clear_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.message_.ClearToEmpty(); + message_.ClearToEmpty(); } -inline const std::string& EchoResourceMultipleRequest::message() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& EchoResourceMultipleRequest::message() const { // @@protoc_insertion_point(field_get:proto.rpc.examples.echoresource.v1.EchoResourceMultipleRequest.message) return _internal_message(); } -template -inline PROTOBUF_ALWAYS_INLINE void EchoResourceMultipleRequest::set_message(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.message_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void EchoResourceMultipleRequest::set_message(ArgT0&& arg0, ArgT... args) { + + message_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.rpc.examples.echoresource.v1.EchoResourceMultipleRequest.message) } -inline std::string* EchoResourceMultipleRequest::mutable_message() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* EchoResourceMultipleRequest::mutable_message() { std::string* _s = _internal_mutable_message(); // @@protoc_insertion_point(field_mutable:proto.rpc.examples.echoresource.v1.EchoResourceMultipleRequest.message) return _s; } inline const std::string& EchoResourceMultipleRequest::_internal_message() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.message_.Get(); + return message_.Get(); } inline void EchoResourceMultipleRequest::_internal_set_message(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.message_.Set(value, GetArena()); + + message_.Set(value, GetArenaForAllocation()); } inline std::string* EchoResourceMultipleRequest::_internal_mutable_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.message_.Mutable( GetArena()); + + return message_.Mutable(GetArenaForAllocation()); } inline std::string* EchoResourceMultipleRequest::release_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:proto.rpc.examples.echoresource.v1.EchoResourceMultipleRequest.message) - return _impl_.message_.Release(); -} -inline void EchoResourceMultipleRequest::set_allocated_message(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.message_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.message_.IsDefault()) { - _impl_.message_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return message_.Release(); +} +inline void EchoResourceMultipleRequest::set_allocated_message(std::string* message) { + if (message != nullptr) { + + } else { + + } + message_.SetAllocated(message, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (message_.IsDefault()) { + message_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:proto.rpc.examples.echoresource.v1.EchoResourceMultipleRequest.message) } @@ -1534,54 +1297,51 @@ inline void EchoResourceMultipleRequest::set_allocated_message(std::string* valu // string message = 1 [json_name = "message"]; inline void EchoResourceMultipleResponse::clear_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.message_.ClearToEmpty(); + message_.ClearToEmpty(); } -inline const std::string& EchoResourceMultipleResponse::message() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& EchoResourceMultipleResponse::message() const { // @@protoc_insertion_point(field_get:proto.rpc.examples.echoresource.v1.EchoResourceMultipleResponse.message) return _internal_message(); } -template -inline PROTOBUF_ALWAYS_INLINE void EchoResourceMultipleResponse::set_message(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.message_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void EchoResourceMultipleResponse::set_message(ArgT0&& arg0, ArgT... args) { + + message_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.rpc.examples.echoresource.v1.EchoResourceMultipleResponse.message) } -inline std::string* EchoResourceMultipleResponse::mutable_message() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* EchoResourceMultipleResponse::mutable_message() { std::string* _s = _internal_mutable_message(); // @@protoc_insertion_point(field_mutable:proto.rpc.examples.echoresource.v1.EchoResourceMultipleResponse.message) return _s; } inline const std::string& EchoResourceMultipleResponse::_internal_message() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.message_.Get(); + return message_.Get(); } inline void EchoResourceMultipleResponse::_internal_set_message(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.message_.Set(value, GetArena()); + + message_.Set(value, GetArenaForAllocation()); } inline std::string* EchoResourceMultipleResponse::_internal_mutable_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.message_.Mutable( GetArena()); + + return message_.Mutable(GetArenaForAllocation()); } inline std::string* EchoResourceMultipleResponse::release_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:proto.rpc.examples.echoresource.v1.EchoResourceMultipleResponse.message) - return _impl_.message_.Release(); -} -inline void EchoResourceMultipleResponse::set_allocated_message(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.message_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.message_.IsDefault()) { - _impl_.message_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return message_.Release(); +} +inline void EchoResourceMultipleResponse::set_allocated_message(std::string* message) { + if (message != nullptr) { + + } else { + + } + message_.SetAllocated(message, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (message_.IsDefault()) { + message_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:proto.rpc.examples.echoresource.v1.EchoResourceMultipleResponse.message) } @@ -1591,107 +1351,101 @@ inline void EchoResourceMultipleResponse::set_allocated_message(std::string* val // string name = 1 [json_name = "name"]; inline void EchoResourceBiDiRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& EchoResourceBiDiRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& EchoResourceBiDiRequest::name() const { // @@protoc_insertion_point(field_get:proto.rpc.examples.echoresource.v1.EchoResourceBiDiRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void EchoResourceBiDiRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void EchoResourceBiDiRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.rpc.examples.echoresource.v1.EchoResourceBiDiRequest.name) } -inline std::string* EchoResourceBiDiRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* EchoResourceBiDiRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:proto.rpc.examples.echoresource.v1.EchoResourceBiDiRequest.name) return _s; } inline const std::string& EchoResourceBiDiRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void EchoResourceBiDiRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* EchoResourceBiDiRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* EchoResourceBiDiRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:proto.rpc.examples.echoresource.v1.EchoResourceBiDiRequest.name) - return _impl_.name_.Release(); -} -inline void EchoResourceBiDiRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void EchoResourceBiDiRequest::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:proto.rpc.examples.echoresource.v1.EchoResourceBiDiRequest.name) } // string message = 2 [json_name = "message"]; inline void EchoResourceBiDiRequest::clear_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.message_.ClearToEmpty(); + message_.ClearToEmpty(); } -inline const std::string& EchoResourceBiDiRequest::message() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& EchoResourceBiDiRequest::message() const { // @@protoc_insertion_point(field_get:proto.rpc.examples.echoresource.v1.EchoResourceBiDiRequest.message) return _internal_message(); } -template -inline PROTOBUF_ALWAYS_INLINE void EchoResourceBiDiRequest::set_message(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.message_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void EchoResourceBiDiRequest::set_message(ArgT0&& arg0, ArgT... args) { + + message_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.rpc.examples.echoresource.v1.EchoResourceBiDiRequest.message) } -inline std::string* EchoResourceBiDiRequest::mutable_message() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* EchoResourceBiDiRequest::mutable_message() { std::string* _s = _internal_mutable_message(); // @@protoc_insertion_point(field_mutable:proto.rpc.examples.echoresource.v1.EchoResourceBiDiRequest.message) return _s; } inline const std::string& EchoResourceBiDiRequest::_internal_message() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.message_.Get(); + return message_.Get(); } inline void EchoResourceBiDiRequest::_internal_set_message(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.message_.Set(value, GetArena()); + + message_.Set(value, GetArenaForAllocation()); } inline std::string* EchoResourceBiDiRequest::_internal_mutable_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.message_.Mutable( GetArena()); + + return message_.Mutable(GetArenaForAllocation()); } inline std::string* EchoResourceBiDiRequest::release_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:proto.rpc.examples.echoresource.v1.EchoResourceBiDiRequest.message) - return _impl_.message_.Release(); -} -inline void EchoResourceBiDiRequest::set_allocated_message(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.message_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.message_.IsDefault()) { - _impl_.message_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return message_.Release(); +} +inline void EchoResourceBiDiRequest::set_allocated_message(std::string* message) { + if (message != nullptr) { + + } else { + + } + message_.SetAllocated(message, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (message_.IsDefault()) { + message_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:proto.rpc.examples.echoresource.v1.EchoResourceBiDiRequest.message) } @@ -1701,71 +1455,77 @@ inline void EchoResourceBiDiRequest::set_allocated_message(std::string* value) { // string message = 1 [json_name = "message"]; inline void EchoResourceBiDiResponse::clear_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.message_.ClearToEmpty(); + message_.ClearToEmpty(); } -inline const std::string& EchoResourceBiDiResponse::message() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& EchoResourceBiDiResponse::message() const { // @@protoc_insertion_point(field_get:proto.rpc.examples.echoresource.v1.EchoResourceBiDiResponse.message) return _internal_message(); } -template -inline PROTOBUF_ALWAYS_INLINE void EchoResourceBiDiResponse::set_message(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.message_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void EchoResourceBiDiResponse::set_message(ArgT0&& arg0, ArgT... args) { + + message_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.rpc.examples.echoresource.v1.EchoResourceBiDiResponse.message) } -inline std::string* EchoResourceBiDiResponse::mutable_message() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* EchoResourceBiDiResponse::mutable_message() { std::string* _s = _internal_mutable_message(); // @@protoc_insertion_point(field_mutable:proto.rpc.examples.echoresource.v1.EchoResourceBiDiResponse.message) return _s; } inline const std::string& EchoResourceBiDiResponse::_internal_message() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.message_.Get(); + return message_.Get(); } inline void EchoResourceBiDiResponse::_internal_set_message(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.message_.Set(value, GetArena()); + + message_.Set(value, GetArenaForAllocation()); } inline std::string* EchoResourceBiDiResponse::_internal_mutable_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.message_.Mutable( GetArena()); + + return message_.Mutable(GetArenaForAllocation()); } inline std::string* EchoResourceBiDiResponse::release_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:proto.rpc.examples.echoresource.v1.EchoResourceBiDiResponse.message) - return _impl_.message_.Release(); -} -inline void EchoResourceBiDiResponse::set_allocated_message(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.message_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.message_.IsDefault()) { - _impl_.message_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return message_.Release(); +} +inline void EchoResourceBiDiResponse::set_allocated_message(std::string* message) { + if (message != nullptr) { + + } else { + + } + message_.SetAllocated(message, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (message_.IsDefault()) { + message_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:proto.rpc.examples.echoresource.v1.EchoResourceBiDiResponse.message) } #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) + } // namespace v1 } // namespace echoresource } // namespace examples } // namespace rpc } // namespace proto - // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_proto_2frpc_2fexamples_2fechoresource_2fv1_2fechoresource_2eproto diff --git a/src/viam/api/proto/rpc/v1/auth.grpc.pb.cc b/src/viam/api/proto/rpc/v1/auth.grpc.pb.cc index add0edc0d..bf43416f8 100644 --- a/src/viam/api/proto/rpc/v1/auth.grpc.pb.cc +++ b/src/viam/api/proto/rpc/v1/auth.grpc.pb.cc @@ -6,19 +6,19 @@ #include "proto/rpc/v1/auth.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace proto { namespace rpc { namespace v1 { @@ -29,44 +29,49 @@ static const char* AuthService_method_names[] = { std::unique_ptr< AuthService::Stub> AuthService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { (void)options; - std::unique_ptr< AuthService::Stub> stub(new AuthService::Stub(channel, options)); + std::unique_ptr< AuthService::Stub> stub(new AuthService::Stub(channel)); return stub; } -AuthService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) - : channel_(channel), rpcmethod_Authenticate_(AuthService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) +AuthService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_Authenticate_(AuthService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status AuthService::Stub::Authenticate(::grpc::ClientContext* context, const ::proto::rpc::v1::AuthenticateRequest& request, ::proto::rpc::v1::AuthenticateResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::proto::rpc::v1::AuthenticateRequest, ::proto::rpc::v1::AuthenticateResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Authenticate_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_Authenticate_, context, request, response); } -void AuthService::Stub::async::Authenticate(::grpc::ClientContext* context, const ::proto::rpc::v1::AuthenticateRequest* request, ::proto::rpc::v1::AuthenticateResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::proto::rpc::v1::AuthenticateRequest, ::proto::rpc::v1::AuthenticateResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Authenticate_, context, request, response, std::move(f)); +void AuthService::Stub::experimental_async::Authenticate(::grpc::ClientContext* context, const ::proto::rpc::v1::AuthenticateRequest* request, ::proto::rpc::v1::AuthenticateResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Authenticate_, context, request, response, std::move(f)); } -void AuthService::Stub::async::Authenticate(::grpc::ClientContext* context, const ::proto::rpc::v1::AuthenticateRequest* request, ::proto::rpc::v1::AuthenticateResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Authenticate_, context, request, response, reactor); +void AuthService::Stub::experimental_async::Authenticate(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::proto::rpc::v1::AuthenticateResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Authenticate_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::proto::rpc::v1::AuthenticateResponse>* AuthService::Stub::PrepareAsyncAuthenticateRaw(::grpc::ClientContext* context, const ::proto::rpc::v1::AuthenticateRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::proto::rpc::v1::AuthenticateResponse, ::proto::rpc::v1::AuthenticateRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Authenticate_, context, request); +void AuthService::Stub::experimental_async::Authenticate(::grpc::ClientContext* context, const ::proto::rpc::v1::AuthenticateRequest* request, ::proto::rpc::v1::AuthenticateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Authenticate_, context, request, response, reactor); +} + +void AuthService::Stub::experimental_async::Authenticate(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::proto::rpc::v1::AuthenticateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Authenticate_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::proto::rpc::v1::AuthenticateResponse>* AuthService::Stub::AsyncAuthenticateRaw(::grpc::ClientContext* context, const ::proto::rpc::v1::AuthenticateRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncAuthenticateRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::proto::rpc::v1::AuthenticateResponse>::Create(channel_.get(), cq, rpcmethod_Authenticate_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::proto::rpc::v1::AuthenticateResponse>* AuthService::Stub::PrepareAsyncAuthenticateRaw(::grpc::ClientContext* context, const ::proto::rpc::v1::AuthenticateRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::proto::rpc::v1::AuthenticateResponse>::Create(channel_.get(), cq, rpcmethod_Authenticate_, context, request, false); } AuthService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( AuthService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AuthService::Service, ::proto::rpc::v1::AuthenticateRequest, ::proto::rpc::v1::AuthenticateResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< AuthService::Service, ::proto::rpc::v1::AuthenticateRequest, ::proto::rpc::v1::AuthenticateResponse>( [](AuthService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::proto::rpc::v1::AuthenticateRequest* req, ::proto::rpc::v1::AuthenticateResponse* resp) { return service->Authenticate(ctx, req, resp); @@ -90,44 +95,49 @@ static const char* ExternalAuthService_method_names[] = { std::unique_ptr< ExternalAuthService::Stub> ExternalAuthService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { (void)options; - std::unique_ptr< ExternalAuthService::Stub> stub(new ExternalAuthService::Stub(channel, options)); + std::unique_ptr< ExternalAuthService::Stub> stub(new ExternalAuthService::Stub(channel)); return stub; } -ExternalAuthService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) - : channel_(channel), rpcmethod_AuthenticateTo_(ExternalAuthService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) +ExternalAuthService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_AuthenticateTo_(ExternalAuthService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status ExternalAuthService::Stub::AuthenticateTo(::grpc::ClientContext* context, const ::proto::rpc::v1::AuthenticateToRequest& request, ::proto::rpc::v1::AuthenticateToResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::proto::rpc::v1::AuthenticateToRequest, ::proto::rpc::v1::AuthenticateToResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_AuthenticateTo_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_AuthenticateTo_, context, request, response); } -void ExternalAuthService::Stub::async::AuthenticateTo(::grpc::ClientContext* context, const ::proto::rpc::v1::AuthenticateToRequest* request, ::proto::rpc::v1::AuthenticateToResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::proto::rpc::v1::AuthenticateToRequest, ::proto::rpc::v1::AuthenticateToResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_AuthenticateTo_, context, request, response, std::move(f)); +void ExternalAuthService::Stub::experimental_async::AuthenticateTo(::grpc::ClientContext* context, const ::proto::rpc::v1::AuthenticateToRequest* request, ::proto::rpc::v1::AuthenticateToResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_AuthenticateTo_, context, request, response, std::move(f)); } -void ExternalAuthService::Stub::async::AuthenticateTo(::grpc::ClientContext* context, const ::proto::rpc::v1::AuthenticateToRequest* request, ::proto::rpc::v1::AuthenticateToResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_AuthenticateTo_, context, request, response, reactor); +void ExternalAuthService::Stub::experimental_async::AuthenticateTo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::proto::rpc::v1::AuthenticateToResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_AuthenticateTo_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::proto::rpc::v1::AuthenticateToResponse>* ExternalAuthService::Stub::PrepareAsyncAuthenticateToRaw(::grpc::ClientContext* context, const ::proto::rpc::v1::AuthenticateToRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::proto::rpc::v1::AuthenticateToResponse, ::proto::rpc::v1::AuthenticateToRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_AuthenticateTo_, context, request); +void ExternalAuthService::Stub::experimental_async::AuthenticateTo(::grpc::ClientContext* context, const ::proto::rpc::v1::AuthenticateToRequest* request, ::proto::rpc::v1::AuthenticateToResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_AuthenticateTo_, context, request, response, reactor); +} + +void ExternalAuthService::Stub::experimental_async::AuthenticateTo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::proto::rpc::v1::AuthenticateToResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_AuthenticateTo_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::proto::rpc::v1::AuthenticateToResponse>* ExternalAuthService::Stub::AsyncAuthenticateToRaw(::grpc::ClientContext* context, const ::proto::rpc::v1::AuthenticateToRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncAuthenticateToRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::proto::rpc::v1::AuthenticateToResponse>::Create(channel_.get(), cq, rpcmethod_AuthenticateTo_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::proto::rpc::v1::AuthenticateToResponse>* ExternalAuthService::Stub::PrepareAsyncAuthenticateToRaw(::grpc::ClientContext* context, const ::proto::rpc::v1::AuthenticateToRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::proto::rpc::v1::AuthenticateToResponse>::Create(channel_.get(), cq, rpcmethod_AuthenticateTo_, context, request, false); } ExternalAuthService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( ExternalAuthService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< ExternalAuthService::Service, ::proto::rpc::v1::AuthenticateToRequest, ::proto::rpc::v1::AuthenticateToResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< ExternalAuthService::Service, ::proto::rpc::v1::AuthenticateToRequest, ::proto::rpc::v1::AuthenticateToResponse>( [](ExternalAuthService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::proto::rpc::v1::AuthenticateToRequest* req, ::proto::rpc::v1::AuthenticateToResponse* resp) { return service->AuthenticateTo(ctx, req, resp); diff --git a/src/viam/api/proto/rpc/v1/auth.grpc.pb.h b/src/viam/api/proto/rpc/v1/auth.grpc.pb.h index edabbddd3..758b2fc08 100644 --- a/src/viam/api/proto/rpc/v1/auth.grpc.pb.h +++ b/src/viam/api/proto/rpc/v1/auth.grpc.pb.h @@ -7,23 +7,24 @@ #include "proto/rpc/v1/auth.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace proto { namespace rpc { @@ -52,27 +53,41 @@ class AuthService final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::proto::rpc::v1::AuthenticateResponse>> PrepareAsyncAuthenticate(::grpc::ClientContext* context, const ::proto::rpc::v1::AuthenticateRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::proto::rpc::v1::AuthenticateResponse>>(PrepareAsyncAuthenticateRaw(context, request, cq)); } - class async_interface { + class experimental_async_interface { public: - virtual ~async_interface() {} + virtual ~experimental_async_interface() {} // Authenticate attempts to authenticate the caller claiming to be // the given entity. The resulting response contains an access token // with the subject as the entity and the audience/issuer as the // provider of this service. This token should be used for all future // RPC requests. virtual void Authenticate(::grpc::ClientContext* context, const ::proto::rpc::v1::AuthenticateRequest* request, ::proto::rpc::v1::AuthenticateResponse* response, std::function) = 0; + virtual void Authenticate(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::proto::rpc::v1::AuthenticateResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void Authenticate(::grpc::ClientContext* context, const ::proto::rpc::v1::AuthenticateRequest* request, ::proto::rpc::v1::AuthenticateResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void Authenticate(::grpc::ClientContext* context, const ::proto::rpc::v1::AuthenticateRequest* request, ::proto::rpc::v1::AuthenticateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void Authenticate(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::proto::rpc::v1::AuthenticateResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void Authenticate(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::proto::rpc::v1::AuthenticateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif }; - typedef class async_interface experimental_async_interface; - virtual class async_interface* async() { return nullptr; } - class async_interface* experimental_async() { return async(); } - private: + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef class experimental_async_interface async_interface; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + async_interface* async() { return experimental_async(); } + #endif + virtual class experimental_async_interface* experimental_async() { return nullptr; } + private: virtual ::grpc::ClientAsyncResponseReaderInterface< ::proto::rpc::v1::AuthenticateResponse>* AsyncAuthenticateRaw(::grpc::ClientContext* context, const ::proto::rpc::v1::AuthenticateRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::proto::rpc::v1::AuthenticateResponse>* PrepareAsyncAuthenticateRaw(::grpc::ClientContext* context, const ::proto::rpc::v1::AuthenticateRequest& request, ::grpc::CompletionQueue* cq) = 0; }; class Stub final : public StubInterface { public: - Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); ::grpc::Status Authenticate(::grpc::ClientContext* context, const ::proto::rpc::v1::AuthenticateRequest& request, ::proto::rpc::v1::AuthenticateResponse* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::proto::rpc::v1::AuthenticateResponse>> AsyncAuthenticate(::grpc::ClientContext* context, const ::proto::rpc::v1::AuthenticateRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::proto::rpc::v1::AuthenticateResponse>>(AsyncAuthenticateRaw(context, request, cq)); @@ -80,22 +95,32 @@ class AuthService final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::proto::rpc::v1::AuthenticateResponse>> PrepareAsyncAuthenticate(::grpc::ClientContext* context, const ::proto::rpc::v1::AuthenticateRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::proto::rpc::v1::AuthenticateResponse>>(PrepareAsyncAuthenticateRaw(context, request, cq)); } - class async final : - public StubInterface::async_interface { + class experimental_async final : + public StubInterface::experimental_async_interface { public: void Authenticate(::grpc::ClientContext* context, const ::proto::rpc::v1::AuthenticateRequest* request, ::proto::rpc::v1::AuthenticateResponse* response, std::function) override; + void Authenticate(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::proto::rpc::v1::AuthenticateResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void Authenticate(::grpc::ClientContext* context, const ::proto::rpc::v1::AuthenticateRequest* request, ::proto::rpc::v1::AuthenticateResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void Authenticate(::grpc::ClientContext* context, const ::proto::rpc::v1::AuthenticateRequest* request, ::proto::rpc::v1::AuthenticateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void Authenticate(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::proto::rpc::v1::AuthenticateResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void Authenticate(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::proto::rpc::v1::AuthenticateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif private: friend class Stub; - explicit async(Stub* stub): stub_(stub) { } + explicit experimental_async(Stub* stub): stub_(stub) { } Stub* stub() { return stub_; } Stub* stub_; }; - class async* async() override { return &async_stub_; } + class experimental_async_interface* experimental_async() override { return &async_stub_; } private: std::shared_ptr< ::grpc::ChannelInterface> channel_; - class async async_stub_{this}; + class experimental_async async_stub_{this}; ::grpc::ClientAsyncResponseReader< ::proto::rpc::v1::AuthenticateResponse>* AsyncAuthenticateRaw(::grpc::ClientContext* context, const ::proto::rpc::v1::AuthenticateRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::proto::rpc::v1::AuthenticateResponse>* PrepareAsyncAuthenticateRaw(::grpc::ClientContext* context, const ::proto::rpc::v1::AuthenticateRequest& request, ::grpc::CompletionQueue* cq) override; const ::grpc::internal::RpcMethod rpcmethod_Authenticate_; @@ -135,22 +160,36 @@ class AuthService final { }; typedef WithAsyncMethod_Authenticate AsyncService; template - class WithCallbackMethod_Authenticate : public BaseClass { + class ExperimentalWithCallbackMethod_Authenticate : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_Authenticate() { - ::grpc::Service::MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::proto::rpc::v1::AuthenticateRequest, ::proto::rpc::v1::AuthenticateResponse>( + ExperimentalWithCallbackMethod_Authenticate() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::proto::rpc::v1::AuthenticateRequest, ::proto::rpc::v1::AuthenticateResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::proto::rpc::v1::AuthenticateRequest* request, ::proto::rpc::v1::AuthenticateResponse* response) { return this->Authenticate(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::proto::rpc::v1::AuthenticateRequest* request, ::proto::rpc::v1::AuthenticateResponse* response) { return this->Authenticate(context, request, response); }));} void SetMessageAllocatorFor_Authenticate( - ::grpc::MessageAllocator< ::proto::rpc::v1::AuthenticateRequest, ::proto::rpc::v1::AuthenticateResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::proto::rpc::v1::AuthenticateRequest, ::proto::rpc::v1::AuthenticateResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); - static_cast<::grpc::internal::CallbackUnaryHandler< ::proto::rpc::v1::AuthenticateRequest, ::proto::rpc::v1::AuthenticateResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(0); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::proto::rpc::v1::AuthenticateRequest, ::proto::rpc::v1::AuthenticateResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_Authenticate() override { + ~ExperimentalWithCallbackMethod_Authenticate() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -158,11 +197,20 @@ class AuthService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* Authenticate( - ::grpc::CallbackServerContext* /*context*/, const ::proto::rpc::v1::AuthenticateRequest* /*request*/, ::proto::rpc::v1::AuthenticateResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::proto::rpc::v1::AuthenticateRequest* /*request*/, ::proto::rpc::v1::AuthenticateResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* Authenticate( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::proto::rpc::v1::AuthenticateRequest* /*request*/, ::proto::rpc::v1::AuthenticateResponse* /*response*/) + #endif + { return nullptr; } }; - typedef WithCallbackMethod_Authenticate CallbackService; - typedef CallbackService ExperimentalCallbackService; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef ExperimentalWithCallbackMethod_Authenticate CallbackService; + #endif + + typedef ExperimentalWithCallbackMethod_Authenticate ExperimentalCallbackService; template class WithGenericMethod_Authenticate : public BaseClass { private: @@ -201,17 +249,27 @@ class AuthService final { } }; template - class WithRawCallbackMethod_Authenticate : public BaseClass { + class ExperimentalWithRawCallbackMethod_Authenticate : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_Authenticate() { - ::grpc::Service::MarkMethodRawCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_Authenticate() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Authenticate(context, request, response); })); - } - ~WithRawCallbackMethod_Authenticate() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Authenticate(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_Authenticate() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -219,8 +277,14 @@ class AuthService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* Authenticate( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* Authenticate( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template class WithStreamedUnaryMethod_Authenticate : public BaseClass { @@ -231,8 +295,8 @@ class AuthService final { ::grpc::Service::MarkMethodStreamed(0, new ::grpc::internal::StreamedUnaryHandler< ::proto::rpc::v1::AuthenticateRequest, ::proto::rpc::v1::AuthenticateResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::proto::rpc::v1::AuthenticateRequest, ::proto::rpc::v1::AuthenticateResponse>* streamer) { return this->StreamedAuthenticate(context, streamer); @@ -282,9 +346,9 @@ class ExternalAuthService final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::proto::rpc::v1::AuthenticateToResponse>> PrepareAsyncAuthenticateTo(::grpc::ClientContext* context, const ::proto::rpc::v1::AuthenticateToRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::proto::rpc::v1::AuthenticateToResponse>>(PrepareAsyncAuthenticateToRaw(context, request, cq)); } - class async_interface { + class experimental_async_interface { public: - virtual ~async_interface() {} + virtual ~experimental_async_interface() {} // AuthenticateTo attempts to allow the caller to authenticate to another entity. // The resulting response contains an access token with the subject // as the calling entity, the audience as the other entity, and the issuer @@ -293,18 +357,32 @@ class ExternalAuthService final { // This assumes that the caller is already authenticated to the // server implementing this service. virtual void AuthenticateTo(::grpc::ClientContext* context, const ::proto::rpc::v1::AuthenticateToRequest* request, ::proto::rpc::v1::AuthenticateToResponse* response, std::function) = 0; + virtual void AuthenticateTo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::proto::rpc::v1::AuthenticateToResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void AuthenticateTo(::grpc::ClientContext* context, const ::proto::rpc::v1::AuthenticateToRequest* request, ::proto::rpc::v1::AuthenticateToResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void AuthenticateTo(::grpc::ClientContext* context, const ::proto::rpc::v1::AuthenticateToRequest* request, ::proto::rpc::v1::AuthenticateToResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void AuthenticateTo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::proto::rpc::v1::AuthenticateToResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void AuthenticateTo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::proto::rpc::v1::AuthenticateToResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif }; - typedef class async_interface experimental_async_interface; - virtual class async_interface* async() { return nullptr; } - class async_interface* experimental_async() { return async(); } - private: + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef class experimental_async_interface async_interface; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + async_interface* async() { return experimental_async(); } + #endif + virtual class experimental_async_interface* experimental_async() { return nullptr; } + private: virtual ::grpc::ClientAsyncResponseReaderInterface< ::proto::rpc::v1::AuthenticateToResponse>* AsyncAuthenticateToRaw(::grpc::ClientContext* context, const ::proto::rpc::v1::AuthenticateToRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::proto::rpc::v1::AuthenticateToResponse>* PrepareAsyncAuthenticateToRaw(::grpc::ClientContext* context, const ::proto::rpc::v1::AuthenticateToRequest& request, ::grpc::CompletionQueue* cq) = 0; }; class Stub final : public StubInterface { public: - Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); ::grpc::Status AuthenticateTo(::grpc::ClientContext* context, const ::proto::rpc::v1::AuthenticateToRequest& request, ::proto::rpc::v1::AuthenticateToResponse* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::proto::rpc::v1::AuthenticateToResponse>> AsyncAuthenticateTo(::grpc::ClientContext* context, const ::proto::rpc::v1::AuthenticateToRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::proto::rpc::v1::AuthenticateToResponse>>(AsyncAuthenticateToRaw(context, request, cq)); @@ -312,22 +390,32 @@ class ExternalAuthService final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::proto::rpc::v1::AuthenticateToResponse>> PrepareAsyncAuthenticateTo(::grpc::ClientContext* context, const ::proto::rpc::v1::AuthenticateToRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::proto::rpc::v1::AuthenticateToResponse>>(PrepareAsyncAuthenticateToRaw(context, request, cq)); } - class async final : - public StubInterface::async_interface { + class experimental_async final : + public StubInterface::experimental_async_interface { public: void AuthenticateTo(::grpc::ClientContext* context, const ::proto::rpc::v1::AuthenticateToRequest* request, ::proto::rpc::v1::AuthenticateToResponse* response, std::function) override; + void AuthenticateTo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::proto::rpc::v1::AuthenticateToResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void AuthenticateTo(::grpc::ClientContext* context, const ::proto::rpc::v1::AuthenticateToRequest* request, ::proto::rpc::v1::AuthenticateToResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void AuthenticateTo(::grpc::ClientContext* context, const ::proto::rpc::v1::AuthenticateToRequest* request, ::proto::rpc::v1::AuthenticateToResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void AuthenticateTo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::proto::rpc::v1::AuthenticateToResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void AuthenticateTo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::proto::rpc::v1::AuthenticateToResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif private: friend class Stub; - explicit async(Stub* stub): stub_(stub) { } + explicit experimental_async(Stub* stub): stub_(stub) { } Stub* stub() { return stub_; } Stub* stub_; }; - class async* async() override { return &async_stub_; } + class experimental_async_interface* experimental_async() override { return &async_stub_; } private: std::shared_ptr< ::grpc::ChannelInterface> channel_; - class async async_stub_{this}; + class experimental_async async_stub_{this}; ::grpc::ClientAsyncResponseReader< ::proto::rpc::v1::AuthenticateToResponse>* AsyncAuthenticateToRaw(::grpc::ClientContext* context, const ::proto::rpc::v1::AuthenticateToRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::proto::rpc::v1::AuthenticateToResponse>* PrepareAsyncAuthenticateToRaw(::grpc::ClientContext* context, const ::proto::rpc::v1::AuthenticateToRequest& request, ::grpc::CompletionQueue* cq) override; const ::grpc::internal::RpcMethod rpcmethod_AuthenticateTo_; @@ -369,22 +457,36 @@ class ExternalAuthService final { }; typedef WithAsyncMethod_AuthenticateTo AsyncService; template - class WithCallbackMethod_AuthenticateTo : public BaseClass { + class ExperimentalWithCallbackMethod_AuthenticateTo : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_AuthenticateTo() { - ::grpc::Service::MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::proto::rpc::v1::AuthenticateToRequest, ::proto::rpc::v1::AuthenticateToResponse>( + ExperimentalWithCallbackMethod_AuthenticateTo() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::proto::rpc::v1::AuthenticateToRequest, ::proto::rpc::v1::AuthenticateToResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::proto::rpc::v1::AuthenticateToRequest* request, ::proto::rpc::v1::AuthenticateToResponse* response) { return this->AuthenticateTo(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::proto::rpc::v1::AuthenticateToRequest* request, ::proto::rpc::v1::AuthenticateToResponse* response) { return this->AuthenticateTo(context, request, response); }));} void SetMessageAllocatorFor_AuthenticateTo( - ::grpc::MessageAllocator< ::proto::rpc::v1::AuthenticateToRequest, ::proto::rpc::v1::AuthenticateToResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::proto::rpc::v1::AuthenticateToRequest, ::proto::rpc::v1::AuthenticateToResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); - static_cast<::grpc::internal::CallbackUnaryHandler< ::proto::rpc::v1::AuthenticateToRequest, ::proto::rpc::v1::AuthenticateToResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(0); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::proto::rpc::v1::AuthenticateToRequest, ::proto::rpc::v1::AuthenticateToResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_AuthenticateTo() override { + ~ExperimentalWithCallbackMethod_AuthenticateTo() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -392,11 +494,20 @@ class ExternalAuthService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* AuthenticateTo( - ::grpc::CallbackServerContext* /*context*/, const ::proto::rpc::v1::AuthenticateToRequest* /*request*/, ::proto::rpc::v1::AuthenticateToResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::proto::rpc::v1::AuthenticateToRequest* /*request*/, ::proto::rpc::v1::AuthenticateToResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* AuthenticateTo( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::proto::rpc::v1::AuthenticateToRequest* /*request*/, ::proto::rpc::v1::AuthenticateToResponse* /*response*/) + #endif + { return nullptr; } }; - typedef WithCallbackMethod_AuthenticateTo CallbackService; - typedef CallbackService ExperimentalCallbackService; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef ExperimentalWithCallbackMethod_AuthenticateTo CallbackService; + #endif + + typedef ExperimentalWithCallbackMethod_AuthenticateTo ExperimentalCallbackService; template class WithGenericMethod_AuthenticateTo : public BaseClass { private: @@ -435,17 +546,27 @@ class ExternalAuthService final { } }; template - class WithRawCallbackMethod_AuthenticateTo : public BaseClass { + class ExperimentalWithRawCallbackMethod_AuthenticateTo : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_AuthenticateTo() { - ::grpc::Service::MarkMethodRawCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_AuthenticateTo() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->AuthenticateTo(context, request, response); })); - } - ~WithRawCallbackMethod_AuthenticateTo() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->AuthenticateTo(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_AuthenticateTo() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -453,8 +574,14 @@ class ExternalAuthService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* AuthenticateTo( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* AuthenticateTo( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template class WithStreamedUnaryMethod_AuthenticateTo : public BaseClass { @@ -465,8 +592,8 @@ class ExternalAuthService final { ::grpc::Service::MarkMethodStreamed(0, new ::grpc::internal::StreamedUnaryHandler< ::proto::rpc::v1::AuthenticateToRequest, ::proto::rpc::v1::AuthenticateToResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::proto::rpc::v1::AuthenticateToRequest, ::proto::rpc::v1::AuthenticateToResponse>* streamer) { return this->StreamedAuthenticateTo(context, streamer); diff --git a/src/viam/api/proto/rpc/v1/auth.pb.cc b/src/viam/api/proto/rpc/v1/auth.pb.cc index 018d8d3f5..3d100dfd9 100644 --- a/src/viam/api/proto/rpc/v1/auth.pb.cc +++ b/src/viam/api/proto/rpc/v1/auth.pb.cc @@ -4,467 +4,401 @@ #include "proto/rpc/v1/auth.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace proto { namespace rpc { namespace v1 { - -inline constexpr Credentials::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : type_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - payload_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR Credentials::Credentials(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_CONSTEXPR Credentials::Credentials( + ::_pbi::ConstantInitialized) + : type_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , payload_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} struct CredentialsDefaultTypeInternal { - PROTOBUF_CONSTEXPR CredentialsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR CredentialsDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~CredentialsDefaultTypeInternal() {} union { Credentials _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CredentialsDefaultTypeInternal _Credentials_default_instance_; - -inline constexpr AuthenticateToResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : access_token_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR AuthenticateToResponse::AuthenticateToResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct AuthenticateToResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR AuthenticateToResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AuthenticateToResponseDefaultTypeInternal() {} - union { - AuthenticateToResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AuthenticateToResponseDefaultTypeInternal _AuthenticateToResponse_default_instance_; - -inline constexpr AuthenticateToRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : entity_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR AuthenticateToRequest::AuthenticateToRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct AuthenticateToRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR AuthenticateToRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AuthenticateToRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CredentialsDefaultTypeInternal _Credentials_default_instance_; +PROTOBUF_CONSTEXPR AuthenticateRequest::AuthenticateRequest( + ::_pbi::ConstantInitialized) + : entity_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , credentials_(nullptr){} +struct AuthenticateRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR AuthenticateRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AuthenticateRequestDefaultTypeInternal() {} union { - AuthenticateToRequest _instance; + AuthenticateRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AuthenticateToRequestDefaultTypeInternal _AuthenticateToRequest_default_instance_; - -inline constexpr AuthenticateResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : access_token_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR AuthenticateResponse::AuthenticateResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AuthenticateRequestDefaultTypeInternal _AuthenticateRequest_default_instance_; +PROTOBUF_CONSTEXPR AuthenticateResponse::AuthenticateResponse( + ::_pbi::ConstantInitialized) + : access_token_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} struct AuthenticateResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR AuthenticateResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR AuthenticateResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~AuthenticateResponseDefaultTypeInternal() {} union { AuthenticateResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AuthenticateResponseDefaultTypeInternal _AuthenticateResponse_default_instance_; - -inline constexpr AuthenticateRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - entity_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - credentials_{nullptr} {} - -template -PROTOBUF_CONSTEXPR AuthenticateRequest::AuthenticateRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct AuthenticateRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR AuthenticateRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AuthenticateRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AuthenticateResponseDefaultTypeInternal _AuthenticateResponse_default_instance_; +PROTOBUF_CONSTEXPR AuthenticateToRequest::AuthenticateToRequest( + ::_pbi::ConstantInitialized) + : entity_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct AuthenticateToRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR AuthenticateToRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AuthenticateToRequestDefaultTypeInternal() {} union { - AuthenticateRequest _instance; + AuthenticateToRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AuthenticateRequestDefaultTypeInternal _AuthenticateRequest_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AuthenticateToRequestDefaultTypeInternal _AuthenticateToRequest_default_instance_; +PROTOBUF_CONSTEXPR AuthenticateToResponse::AuthenticateToResponse( + ::_pbi::ConstantInitialized) + : access_token_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct AuthenticateToResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR AuthenticateToResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AuthenticateToResponseDefaultTypeInternal() {} + union { + AuthenticateToResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AuthenticateToResponseDefaultTypeInternal _AuthenticateToResponse_default_instance_; } // namespace v1 } // namespace rpc } // namespace proto static ::_pb::Metadata file_level_metadata_proto_2frpc_2fv1_2fauth_2eproto[5]; -static constexpr const ::_pb::EnumDescriptor** - file_level_enum_descriptors_proto_2frpc_2fv1_2fauth_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_proto_2frpc_2fv1_2fauth_2eproto = nullptr; -const ::uint32_t TableStruct_proto_2frpc_2fv1_2fauth_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::proto::rpc::v1::Credentials, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::proto::rpc::v1::Credentials, _impl_.type_), - PROTOBUF_FIELD_OFFSET(::proto::rpc::v1::Credentials, _impl_.payload_), - PROTOBUF_FIELD_OFFSET(::proto::rpc::v1::AuthenticateRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::proto::rpc::v1::AuthenticateRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::proto::rpc::v1::AuthenticateRequest, _impl_.entity_), - PROTOBUF_FIELD_OFFSET(::proto::rpc::v1::AuthenticateRequest, _impl_.credentials_), - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::proto::rpc::v1::AuthenticateResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::proto::rpc::v1::AuthenticateResponse, _impl_.access_token_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::proto::rpc::v1::AuthenticateToRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::proto::rpc::v1::AuthenticateToRequest, _impl_.entity_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::proto::rpc::v1::AuthenticateToResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::proto::rpc::v1::AuthenticateToResponse, _impl_.access_token_), +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_proto_2frpc_2fv1_2fauth_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_proto_2frpc_2fv1_2fauth_2eproto = nullptr; + +const uint32_t TableStruct_proto_2frpc_2fv1_2fauth_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::v1::Credentials, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::v1::Credentials, type_), + PROTOBUF_FIELD_OFFSET(::proto::rpc::v1::Credentials, payload_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::v1::AuthenticateRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::v1::AuthenticateRequest, entity_), + PROTOBUF_FIELD_OFFSET(::proto::rpc::v1::AuthenticateRequest, credentials_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::v1::AuthenticateResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::v1::AuthenticateResponse, access_token_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::v1::AuthenticateToRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::v1::AuthenticateToRequest, entity_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::v1::AuthenticateToResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::v1::AuthenticateToResponse, access_token_), }; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, -1, -1, sizeof(::proto::rpc::v1::Credentials)}, - {10, 20, -1, sizeof(::proto::rpc::v1::AuthenticateRequest)}, - {22, -1, -1, sizeof(::proto::rpc::v1::AuthenticateResponse)}, - {31, -1, -1, sizeof(::proto::rpc::v1::AuthenticateToRequest)}, - {40, -1, -1, sizeof(::proto::rpc::v1::AuthenticateToResponse)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::proto::rpc::v1::Credentials)}, + { 8, -1, -1, sizeof(::proto::rpc::v1::AuthenticateRequest)}, + { 16, -1, -1, sizeof(::proto::rpc::v1::AuthenticateResponse)}, + { 23, -1, -1, sizeof(::proto::rpc::v1::AuthenticateToRequest)}, + { 30, -1, -1, sizeof(::proto::rpc::v1::AuthenticateToResponse)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::proto::rpc::v1::_Credentials_default_instance_._instance, - &::proto::rpc::v1::_AuthenticateRequest_default_instance_._instance, - &::proto::rpc::v1::_AuthenticateResponse_default_instance_._instance, - &::proto::rpc::v1::_AuthenticateToRequest_default_instance_._instance, - &::proto::rpc::v1::_AuthenticateToResponse_default_instance_._instance, + &::proto::rpc::v1::_Credentials_default_instance_._instance, + &::proto::rpc::v1::_AuthenticateRequest_default_instance_._instance, + &::proto::rpc::v1::_AuthenticateResponse_default_instance_._instance, + &::proto::rpc::v1::_AuthenticateToRequest_default_instance_._instance, + &::proto::rpc::v1::_AuthenticateToResponse_default_instance_._instance, }; -const char descriptor_table_protodef_proto_2frpc_2fv1_2fauth_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n\027proto/rpc/v1/auth.proto\022\014proto.rpc.v1\032" - "\034google/api/annotations.proto\";\n\013Credent" - "ials\022\022\n\004type\030\001 \001(\tR\004type\022\030\n\007payload\030\002 \001(" - "\tR\007payload\"j\n\023AuthenticateRequest\022\026\n\006ent" - "ity\030\001 \001(\tR\006entity\022;\n\013credentials\030\002 \001(\0132\031" - ".proto.rpc.v1.CredentialsR\013credentials\"9" - "\n\024AuthenticateResponse\022!\n\014access_token\030\001" - " \001(\tR\013accessToken\"/\n\025AuthenticateToReque" - "st\022\026\n\006entity\030\001 \001(\tR\006entity\";\n\026Authentica" - "teToResponse\022!\n\014access_token\030\001 \001(\tR\013acce" - "ssToken2\202\001\n\013AuthService\022s\n\014Authenticate\022" - "!.proto.rpc.v1.AuthenticateRequest\032\".pro" - "to.rpc.v1.AuthenticateResponse\"\034\202\323\344\223\002\026\"\024" - "/rpc/v1/authenticate2\223\001\n\023ExternalAuthSer" - "vice\022|\n\016AuthenticateTo\022#.proto.rpc.v1.Au" - "thenticateToRequest\032$.proto.rpc.v1.Authe" - "nticateToResponse\"\037\202\323\344\223\002\031\"\027/rpc/v1/authe" - "nticate_toB\217\001\n\020com.proto.rpc.v1B\tAuthPro" - "toP\001Z\036go.viam.com/utils/proto/rpc/v1\242\002\003P" - "RX\252\002\014Proto.Rpc.V1\312\002\014Proto\\Rpc\\V1\342\002\030Proto" - "\\Rpc\\V1\\GPBMetadata\352\002\016Proto::Rpc::V1b\006pr" - "oto3" -}; -static const ::_pbi::DescriptorTable* const descriptor_table_proto_2frpc_2fv1_2fauth_2eproto_deps[1] = - { - &::descriptor_table_google_2fapi_2fannotations_2eproto, + +const char descriptor_table_protodef_proto_2frpc_2fv1_2fauth_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\027proto/rpc/v1/auth.proto\022\014proto.rpc.v1\032" + "\034google/api/annotations.proto\";\n\013Credent" + "ials\022\022\n\004type\030\001 \001(\tR\004type\022\030\n\007payload\030\002 \001(" + "\tR\007payload\"j\n\023AuthenticateRequest\022\026\n\006ent" + "ity\030\001 \001(\tR\006entity\022;\n\013credentials\030\002 \001(\0132\031" + ".proto.rpc.v1.CredentialsR\013credentials\"9" + "\n\024AuthenticateResponse\022!\n\014access_token\030\001" + " \001(\tR\013accessToken\"/\n\025AuthenticateToReque" + "st\022\026\n\006entity\030\001 \001(\tR\006entity\";\n\026Authentica" + "teToResponse\022!\n\014access_token\030\001 \001(\tR\013acce" + "ssToken2\202\001\n\013AuthService\022s\n\014Authenticate\022" + "!.proto.rpc.v1.AuthenticateRequest\032\".pro" + "to.rpc.v1.AuthenticateResponse\"\034\202\323\344\223\002\026\"\024" + "/rpc/v1/authenticate2\223\001\n\023ExternalAuthSer" + "vice\022|\n\016AuthenticateTo\022#.proto.rpc.v1.Au" + "thenticateToRequest\032$.proto.rpc.v1.Authe" + "nticateToResponse\"\037\202\323\344\223\002\031\"\027/rpc/v1/authe" + "nticate_toB Z\036go.viam.com/utils/proto/rp" + "c/v1b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_proto_2frpc_2fv1_2fauth_2eproto_deps[1] = { + &::descriptor_table_google_2fapi_2fannotations_2eproto, }; -static ::absl::once_flag descriptor_table_proto_2frpc_2fv1_2fauth_2eproto_once; +static ::_pbi::once_flag descriptor_table_proto_2frpc_2fv1_2fauth_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_proto_2frpc_2fv1_2fauth_2eproto = { - false, - false, - 844, - descriptor_table_protodef_proto_2frpc_2fv1_2fauth_2eproto, + false, false, 732, descriptor_table_protodef_proto_2frpc_2fv1_2fauth_2eproto, "proto/rpc/v1/auth.proto", - &descriptor_table_proto_2frpc_2fv1_2fauth_2eproto_once, - descriptor_table_proto_2frpc_2fv1_2fauth_2eproto_deps, - 1, - 5, - schemas, - file_default_instances, - TableStruct_proto_2frpc_2fv1_2fauth_2eproto::offsets, - file_level_metadata_proto_2frpc_2fv1_2fauth_2eproto, - file_level_enum_descriptors_proto_2frpc_2fv1_2fauth_2eproto, + &descriptor_table_proto_2frpc_2fv1_2fauth_2eproto_once, descriptor_table_proto_2frpc_2fv1_2fauth_2eproto_deps, 1, 5, + schemas, file_default_instances, TableStruct_proto_2frpc_2fv1_2fauth_2eproto::offsets, + file_level_metadata_proto_2frpc_2fv1_2fauth_2eproto, file_level_enum_descriptors_proto_2frpc_2fv1_2fauth_2eproto, file_level_service_descriptors_proto_2frpc_2fv1_2fauth_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_proto_2frpc_2fv1_2fauth_2eproto_getter() { return &descriptor_table_proto_2frpc_2fv1_2fauth_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_proto_2frpc_2fv1_2fauth_2eproto(&descriptor_table_proto_2frpc_2fv1_2fauth_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_proto_2frpc_2fv1_2fauth_2eproto(&descriptor_table_proto_2frpc_2fv1_2fauth_2eproto); namespace proto { namespace rpc { namespace v1 { + // =================================================================== class Credentials::_Internal { public: }; -Credentials::Credentials(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Credentials::Credentials(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:proto.rpc.v1.Credentials) } -inline PROTOBUF_NDEBUG_INLINE Credentials::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : type_(arena, from.type_), - payload_(arena, from.payload_), - _cached_size_{0} {} - -Credentials::Credentials( - ::google::protobuf::Arena* arena, - const Credentials& from) - : ::google::protobuf::Message(arena) { - Credentials* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +Credentials::Credentials(const Credentials& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + 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()); + } + payload_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + payload_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_payload().empty()) { + payload_.Set(from._internal_payload(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:proto.rpc.v1.Credentials) } -inline PROTOBUF_NDEBUG_INLINE Credentials::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : type_(arena), - payload_(arena), - _cached_size_{0} {} -inline void Credentials::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void Credentials::SharedCtor() { +type_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + type_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +payload_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + payload_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + Credentials::~Credentials() { // @@protoc_insertion_point(destructor:proto.rpc.v1.Credentials) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Credentials::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.type_.Destroy(); - _impl_.payload_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + type_.Destroy(); + payload_.Destroy(); } -PROTOBUF_NOINLINE void Credentials::Clear() { +void Credentials::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void Credentials::Clear() { // @@protoc_insertion_point(message_clear_start:proto.rpc.v1.Credentials) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.type_.ClearToEmpty(); - _impl_.payload_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Credentials::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + type_.ClearToEmpty(); + payload_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Credentials::_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 type = 1 [json_name = "type"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "proto.rpc.v1.Credentials.type")); + } else + goto handle_unusual; + continue; + // string payload = 2 [json_name = "payload"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_payload(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "proto.rpc.v1.Credentials.payload")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 44, 2> Credentials::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_Credentials_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string payload = 2 [json_name = "payload"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(Credentials, _impl_.payload_)}}, - // string type = 1 [json_name = "type"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Credentials, _impl_.type_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string type = 1 [json_name = "type"]; - {PROTOBUF_FIELD_OFFSET(Credentials, _impl_.type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string payload = 2 [json_name = "payload"]; - {PROTOBUF_FIELD_OFFSET(Credentials, _impl_.payload_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\30\4\7\0\0\0\0\0" - "proto.rpc.v1.Credentials" - "type" - "payload" - }}, -}; - -::uint8_t* Credentials::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Credentials::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.rpc.v1.Credentials) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string type = 1 [json_name = "type"]; if (!this->_internal_type().empty()) { - const std::string& _s = this->_internal_type(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "proto.rpc.v1.Credentials.type"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_type().data(), static_cast(this->_internal_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "proto.rpc.v1.Credentials.type"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_type(), target); } // string payload = 2 [json_name = "payload"]; if (!this->_internal_payload().empty()) { - const std::string& _s = this->_internal_payload(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "proto.rpc.v1.Credentials.payload"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_payload().data(), static_cast(this->_internal_payload().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "proto.rpc.v1.Credentials.payload"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_payload(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:proto.rpc.v1.Credentials) return target; } -::size_t Credentials::ByteSizeLong() const { +size_t Credentials::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.rpc.v1.Credentials) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string type = 1 [json_name = "type"]; if (!this->_internal_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_type()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_type()); } // string payload = 2 [json_name = "payload"]; if (!this->_internal_payload().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_payload()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_payload()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Credentials::_class_data_ = { - Credentials::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Credentials::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Credentials::MergeImpl }; -const ::google::protobuf::Message::ClassData* Credentials::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Credentials::GetClassData() const { return &_class_data_; } + +void Credentials::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Credentials::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.v1.Credentials) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Credentials::MergeFrom(const Credentials& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.v1.Credentials) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_type().empty()) { - _this->_internal_set_type(from._internal_type()); + _internal_set_type(from._internal_type()); } if (!from._internal_payload().empty()) { - _this->_internal_set_payload(from._internal_payload()); + _internal_set_payload(from._internal_payload()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Credentials::CopyFrom(const Credentials& from) { @@ -474,236 +408,237 @@ void Credentials::CopyFrom(const Credentials& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Credentials::IsInitialized() const { +bool Credentials::IsInitialized() const { return true; } -::_pbi::CachedSize* Credentials::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Credentials::InternalSwap(Credentials* PROTOBUF_RESTRICT other) { +void Credentials::InternalSwap(Credentials* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.type_, &other->_impl_.type_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.payload_, &other->_impl_.payload_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &type_, lhs_arena, + &other->type_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &payload_, lhs_arena, + &other->payload_, rhs_arena + ); } -::google::protobuf::Metadata Credentials::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Credentials::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fv1_2fauth_2eproto_getter, &descriptor_table_proto_2frpc_2fv1_2fauth_2eproto_once, file_level_metadata_proto_2frpc_2fv1_2fauth_2eproto[0]); } + // =================================================================== class AuthenticateRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(AuthenticateRequest, _impl_._has_bits_); static const ::proto::rpc::v1::Credentials& credentials(const AuthenticateRequest* msg); - static void set_has_credentials(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::proto::rpc::v1::Credentials& AuthenticateRequest::_Internal::credentials(const AuthenticateRequest* msg) { - return *msg->_impl_.credentials_; +const ::proto::rpc::v1::Credentials& +AuthenticateRequest::_Internal::credentials(const AuthenticateRequest* msg) { + return *msg->credentials_; } -AuthenticateRequest::AuthenticateRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +AuthenticateRequest::AuthenticateRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:proto.rpc.v1.AuthenticateRequest) } -inline PROTOBUF_NDEBUG_INLINE AuthenticateRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - entity_(arena, from.entity_) {} - -AuthenticateRequest::AuthenticateRequest( - ::google::protobuf::Arena* arena, - const AuthenticateRequest& from) - : ::google::protobuf::Message(arena) { - AuthenticateRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.credentials_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::proto::rpc::v1::Credentials>(arena, *from._impl_.credentials_) - : nullptr; - +AuthenticateRequest::AuthenticateRequest(const AuthenticateRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + entity_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + entity_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_entity().empty()) { + entity_.Set(from._internal_entity(), + GetArenaForAllocation()); + } + if (from._internal_has_credentials()) { + credentials_ = new ::proto::rpc::v1::Credentials(*from.credentials_); + } else { + credentials_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:proto.rpc.v1.AuthenticateRequest) } -inline PROTOBUF_NDEBUG_INLINE AuthenticateRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - entity_(arena) {} -inline void AuthenticateRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.credentials_ = {}; +inline void AuthenticateRequest::SharedCtor() { +entity_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + entity_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +credentials_ = nullptr; } + AuthenticateRequest::~AuthenticateRequest() { // @@protoc_insertion_point(destructor:proto.rpc.v1.AuthenticateRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void AuthenticateRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.entity_.Destroy(); - delete _impl_.credentials_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + entity_.Destroy(); + if (this != internal_default_instance()) delete credentials_; +} + +void AuthenticateRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void AuthenticateRequest::Clear() { +void AuthenticateRequest::Clear() { // @@protoc_insertion_point(message_clear_start:proto.rpc.v1.AuthenticateRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.entity_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.credentials_ != nullptr); - _impl_.credentials_->Clear(); + entity_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && credentials_ != nullptr) { + delete credentials_; } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* AuthenticateRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + credentials_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* AuthenticateRequest::_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 entity = 1 [json_name = "entity"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_entity(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "proto.rpc.v1.AuthenticateRequest.entity")); + } else + goto handle_unusual; + continue; + // .proto.rpc.v1.Credentials credentials = 2 [json_name = "credentials"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_credentials(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 47, 2> AuthenticateRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(AuthenticateRequest, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_AuthenticateRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .proto.rpc.v1.Credentials credentials = 2 [json_name = "credentials"]; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(AuthenticateRequest, _impl_.credentials_)}}, - // string entity = 1 [json_name = "entity"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(AuthenticateRequest, _impl_.entity_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string entity = 1 [json_name = "entity"]; - {PROTOBUF_FIELD_OFFSET(AuthenticateRequest, _impl_.entity_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .proto.rpc.v1.Credentials credentials = 2 [json_name = "credentials"]; - {PROTOBUF_FIELD_OFFSET(AuthenticateRequest, _impl_.credentials_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::proto::rpc::v1::Credentials>()}, - }}, {{ - "\40\6\0\0\0\0\0\0" - "proto.rpc.v1.AuthenticateRequest" - "entity" - }}, -}; - -::uint8_t* AuthenticateRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* AuthenticateRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.rpc.v1.AuthenticateRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string entity = 1 [json_name = "entity"]; if (!this->_internal_entity().empty()) { - const std::string& _s = this->_internal_entity(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "proto.rpc.v1.AuthenticateRequest.entity"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_entity().data(), static_cast(this->_internal_entity().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "proto.rpc.v1.AuthenticateRequest.entity"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_entity(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .proto.rpc.v1.Credentials credentials = 2 [json_name = "credentials"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::credentials(this), + if (this->_internal_has_credentials()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::credentials(this), _Internal::credentials(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:proto.rpc.v1.AuthenticateRequest) return target; } -::size_t AuthenticateRequest::ByteSizeLong() const { +size_t AuthenticateRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.rpc.v1.AuthenticateRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string entity = 1 [json_name = "entity"]; if (!this->_internal_entity().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_entity()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_entity()); } // .proto.rpc.v1.Credentials credentials = 2 [json_name = "credentials"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.credentials_); + if (this->_internal_has_credentials()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *credentials_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData AuthenticateRequest::_class_data_ = { - AuthenticateRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AuthenticateRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + AuthenticateRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* AuthenticateRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AuthenticateRequest::GetClassData() const { return &_class_data_; } + +void AuthenticateRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void AuthenticateRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.v1.AuthenticateRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void AuthenticateRequest::MergeFrom(const AuthenticateRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.v1.AuthenticateRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_entity().empty()) { - _this->_internal_set_entity(from._internal_entity()); + _internal_set_entity(from._internal_entity()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_credentials()->::proto::rpc::v1::Credentials::MergeFrom( - from._internal_credentials()); + if (from._internal_has_credentials()) { + _internal_mutable_credentials()->::proto::rpc::v1::Credentials::MergeFrom(from._internal_credentials()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void AuthenticateRequest::CopyFrom(const AuthenticateRequest& from) { @@ -713,189 +648,193 @@ void AuthenticateRequest::CopyFrom(const AuthenticateRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool AuthenticateRequest::IsInitialized() const { +bool AuthenticateRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* AuthenticateRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void AuthenticateRequest::InternalSwap(AuthenticateRequest* PROTOBUF_RESTRICT other) { +void AuthenticateRequest::InternalSwap(AuthenticateRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.entity_, &other->_impl_.entity_, arena); - swap(_impl_.credentials_, other->_impl_.credentials_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &entity_, lhs_arena, + &other->entity_, rhs_arena + ); + swap(credentials_, other->credentials_); } -::google::protobuf::Metadata AuthenticateRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata AuthenticateRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fv1_2fauth_2eproto_getter, &descriptor_table_proto_2frpc_2fv1_2fauth_2eproto_once, file_level_metadata_proto_2frpc_2fv1_2fauth_2eproto[1]); } + // =================================================================== class AuthenticateResponse::_Internal { public: }; -AuthenticateResponse::AuthenticateResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +AuthenticateResponse::AuthenticateResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:proto.rpc.v1.AuthenticateResponse) } -inline PROTOBUF_NDEBUG_INLINE AuthenticateResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : access_token_(arena, from.access_token_), - _cached_size_{0} {} - -AuthenticateResponse::AuthenticateResponse( - ::google::protobuf::Arena* arena, - const AuthenticateResponse& from) - : ::google::protobuf::Message(arena) { - AuthenticateResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +AuthenticateResponse::AuthenticateResponse(const AuthenticateResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + access_token_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + access_token_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_access_token().empty()) { + access_token_.Set(from._internal_access_token(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:proto.rpc.v1.AuthenticateResponse) } -inline PROTOBUF_NDEBUG_INLINE AuthenticateResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : access_token_(arena), - _cached_size_{0} {} -inline void AuthenticateResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void AuthenticateResponse::SharedCtor() { +access_token_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + access_token_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + AuthenticateResponse::~AuthenticateResponse() { // @@protoc_insertion_point(destructor:proto.rpc.v1.AuthenticateResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void AuthenticateResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.access_token_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + access_token_.Destroy(); } -PROTOBUF_NOINLINE void AuthenticateResponse::Clear() { +void AuthenticateResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void AuthenticateResponse::Clear() { // @@protoc_insertion_point(message_clear_start:proto.rpc.v1.AuthenticateResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.access_token_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* AuthenticateResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + access_token_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* AuthenticateResponse::_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 access_token = 1 [json_name = "accessToken"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_access_token(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "proto.rpc.v1.AuthenticateResponse.access_token")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 54, 2> AuthenticateResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_AuthenticateResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string access_token = 1 [json_name = "accessToken"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(AuthenticateResponse, _impl_.access_token_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string access_token = 1 [json_name = "accessToken"]; - {PROTOBUF_FIELD_OFFSET(AuthenticateResponse, _impl_.access_token_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\41\14\0\0\0\0\0\0" - "proto.rpc.v1.AuthenticateResponse" - "access_token" - }}, -}; - -::uint8_t* AuthenticateResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* AuthenticateResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.rpc.v1.AuthenticateResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string access_token = 1 [json_name = "accessToken"]; if (!this->_internal_access_token().empty()) { - const std::string& _s = this->_internal_access_token(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "proto.rpc.v1.AuthenticateResponse.access_token"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_access_token().data(), static_cast(this->_internal_access_token().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "proto.rpc.v1.AuthenticateResponse.access_token"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_access_token(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:proto.rpc.v1.AuthenticateResponse) return target; } -::size_t AuthenticateResponse::ByteSizeLong() const { +size_t AuthenticateResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.rpc.v1.AuthenticateResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string access_token = 1 [json_name = "accessToken"]; if (!this->_internal_access_token().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_access_token()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_access_token()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData AuthenticateResponse::_class_data_ = { - AuthenticateResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AuthenticateResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + AuthenticateResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* AuthenticateResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AuthenticateResponse::GetClassData() const { return &_class_data_; } + +void AuthenticateResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void AuthenticateResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.v1.AuthenticateResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void AuthenticateResponse::MergeFrom(const AuthenticateResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.v1.AuthenticateResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_access_token().empty()) { - _this->_internal_set_access_token(from._internal_access_token()); + _internal_set_access_token(from._internal_access_token()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void AuthenticateResponse::CopyFrom(const AuthenticateResponse& from) { @@ -905,187 +844,192 @@ void AuthenticateResponse::CopyFrom(const AuthenticateResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool AuthenticateResponse::IsInitialized() const { +bool AuthenticateResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* AuthenticateResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void AuthenticateResponse::InternalSwap(AuthenticateResponse* PROTOBUF_RESTRICT other) { +void AuthenticateResponse::InternalSwap(AuthenticateResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.access_token_, &other->_impl_.access_token_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &access_token_, lhs_arena, + &other->access_token_, rhs_arena + ); } -::google::protobuf::Metadata AuthenticateResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata AuthenticateResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fv1_2fauth_2eproto_getter, &descriptor_table_proto_2frpc_2fv1_2fauth_2eproto_once, file_level_metadata_proto_2frpc_2fv1_2fauth_2eproto[2]); } + // =================================================================== class AuthenticateToRequest::_Internal { public: }; -AuthenticateToRequest::AuthenticateToRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +AuthenticateToRequest::AuthenticateToRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:proto.rpc.v1.AuthenticateToRequest) } -inline PROTOBUF_NDEBUG_INLINE AuthenticateToRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : entity_(arena, from.entity_), - _cached_size_{0} {} - -AuthenticateToRequest::AuthenticateToRequest( - ::google::protobuf::Arena* arena, - const AuthenticateToRequest& from) - : ::google::protobuf::Message(arena) { - AuthenticateToRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +AuthenticateToRequest::AuthenticateToRequest(const AuthenticateToRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + entity_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + entity_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_entity().empty()) { + entity_.Set(from._internal_entity(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:proto.rpc.v1.AuthenticateToRequest) } -inline PROTOBUF_NDEBUG_INLINE AuthenticateToRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : entity_(arena), - _cached_size_{0} {} -inline void AuthenticateToRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void AuthenticateToRequest::SharedCtor() { +entity_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + entity_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + AuthenticateToRequest::~AuthenticateToRequest() { // @@protoc_insertion_point(destructor:proto.rpc.v1.AuthenticateToRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void AuthenticateToRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.entity_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + entity_.Destroy(); } -PROTOBUF_NOINLINE void AuthenticateToRequest::Clear() { +void AuthenticateToRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void AuthenticateToRequest::Clear() { // @@protoc_insertion_point(message_clear_start:proto.rpc.v1.AuthenticateToRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.entity_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* AuthenticateToRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + entity_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* AuthenticateToRequest::_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 entity = 1 [json_name = "entity"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_entity(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "proto.rpc.v1.AuthenticateToRequest.entity")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 49, 2> AuthenticateToRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_AuthenticateToRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string entity = 1 [json_name = "entity"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(AuthenticateToRequest, _impl_.entity_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string entity = 1 [json_name = "entity"]; - {PROTOBUF_FIELD_OFFSET(AuthenticateToRequest, _impl_.entity_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\42\6\0\0\0\0\0\0" - "proto.rpc.v1.AuthenticateToRequest" - "entity" - }}, -}; - -::uint8_t* AuthenticateToRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* AuthenticateToRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.rpc.v1.AuthenticateToRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string entity = 1 [json_name = "entity"]; if (!this->_internal_entity().empty()) { - const std::string& _s = this->_internal_entity(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "proto.rpc.v1.AuthenticateToRequest.entity"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_entity().data(), static_cast(this->_internal_entity().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "proto.rpc.v1.AuthenticateToRequest.entity"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_entity(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:proto.rpc.v1.AuthenticateToRequest) return target; } -::size_t AuthenticateToRequest::ByteSizeLong() const { +size_t AuthenticateToRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.rpc.v1.AuthenticateToRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string entity = 1 [json_name = "entity"]; if (!this->_internal_entity().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_entity()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_entity()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData AuthenticateToRequest::_class_data_ = { - AuthenticateToRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AuthenticateToRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + AuthenticateToRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* AuthenticateToRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AuthenticateToRequest::GetClassData() const { return &_class_data_; } + +void AuthenticateToRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void AuthenticateToRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.v1.AuthenticateToRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void AuthenticateToRequest::MergeFrom(const AuthenticateToRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.v1.AuthenticateToRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_entity().empty()) { - _this->_internal_set_entity(from._internal_entity()); + _internal_set_entity(from._internal_entity()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void AuthenticateToRequest::CopyFrom(const AuthenticateToRequest& from) { @@ -1095,187 +1039,192 @@ void AuthenticateToRequest::CopyFrom(const AuthenticateToRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool AuthenticateToRequest::IsInitialized() const { +bool AuthenticateToRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* AuthenticateToRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void AuthenticateToRequest::InternalSwap(AuthenticateToRequest* PROTOBUF_RESTRICT other) { +void AuthenticateToRequest::InternalSwap(AuthenticateToRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.entity_, &other->_impl_.entity_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &entity_, lhs_arena, + &other->entity_, rhs_arena + ); } -::google::protobuf::Metadata AuthenticateToRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata AuthenticateToRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fv1_2fauth_2eproto_getter, &descriptor_table_proto_2frpc_2fv1_2fauth_2eproto_once, file_level_metadata_proto_2frpc_2fv1_2fauth_2eproto[3]); } + // =================================================================== class AuthenticateToResponse::_Internal { public: }; -AuthenticateToResponse::AuthenticateToResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +AuthenticateToResponse::AuthenticateToResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:proto.rpc.v1.AuthenticateToResponse) } -inline PROTOBUF_NDEBUG_INLINE AuthenticateToResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : access_token_(arena, from.access_token_), - _cached_size_{0} {} - -AuthenticateToResponse::AuthenticateToResponse( - ::google::protobuf::Arena* arena, - const AuthenticateToResponse& from) - : ::google::protobuf::Message(arena) { - AuthenticateToResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +AuthenticateToResponse::AuthenticateToResponse(const AuthenticateToResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + access_token_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + access_token_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_access_token().empty()) { + access_token_.Set(from._internal_access_token(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:proto.rpc.v1.AuthenticateToResponse) } -inline PROTOBUF_NDEBUG_INLINE AuthenticateToResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : access_token_(arena), - _cached_size_{0} {} -inline void AuthenticateToResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void AuthenticateToResponse::SharedCtor() { +access_token_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + access_token_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + AuthenticateToResponse::~AuthenticateToResponse() { // @@protoc_insertion_point(destructor:proto.rpc.v1.AuthenticateToResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void AuthenticateToResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.access_token_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + access_token_.Destroy(); } -PROTOBUF_NOINLINE void AuthenticateToResponse::Clear() { +void AuthenticateToResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void AuthenticateToResponse::Clear() { // @@protoc_insertion_point(message_clear_start:proto.rpc.v1.AuthenticateToResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.access_token_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* AuthenticateToResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + access_token_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* AuthenticateToResponse::_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 access_token = 1 [json_name = "accessToken"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_access_token(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "proto.rpc.v1.AuthenticateToResponse.access_token")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 56, 2> AuthenticateToResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_AuthenticateToResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string access_token = 1 [json_name = "accessToken"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(AuthenticateToResponse, _impl_.access_token_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string access_token = 1 [json_name = "accessToken"]; - {PROTOBUF_FIELD_OFFSET(AuthenticateToResponse, _impl_.access_token_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\43\14\0\0\0\0\0\0" - "proto.rpc.v1.AuthenticateToResponse" - "access_token" - }}, -}; - -::uint8_t* AuthenticateToResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* AuthenticateToResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.rpc.v1.AuthenticateToResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string access_token = 1 [json_name = "accessToken"]; if (!this->_internal_access_token().empty()) { - const std::string& _s = this->_internal_access_token(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "proto.rpc.v1.AuthenticateToResponse.access_token"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_access_token().data(), static_cast(this->_internal_access_token().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "proto.rpc.v1.AuthenticateToResponse.access_token"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_access_token(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:proto.rpc.v1.AuthenticateToResponse) return target; } -::size_t AuthenticateToResponse::ByteSizeLong() const { +size_t AuthenticateToResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.rpc.v1.AuthenticateToResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string access_token = 1 [json_name = "accessToken"]; if (!this->_internal_access_token().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_access_token()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_access_token()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData AuthenticateToResponse::_class_data_ = { - AuthenticateToResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AuthenticateToResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + AuthenticateToResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* AuthenticateToResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AuthenticateToResponse::GetClassData() const { return &_class_data_; } + +void AuthenticateToResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void AuthenticateToResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.v1.AuthenticateToResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void AuthenticateToResponse::MergeFrom(const AuthenticateToResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.v1.AuthenticateToResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_access_token().empty()) { - _this->_internal_set_access_token(from._internal_access_token()); + _internal_set_access_token(from._internal_access_token()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void AuthenticateToResponse::CopyFrom(const AuthenticateToResponse& from) { @@ -1285,33 +1234,53 @@ void AuthenticateToResponse::CopyFrom(const AuthenticateToResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool AuthenticateToResponse::IsInitialized() const { +bool AuthenticateToResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* AuthenticateToResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void AuthenticateToResponse::InternalSwap(AuthenticateToResponse* PROTOBUF_RESTRICT other) { +void AuthenticateToResponse::InternalSwap(AuthenticateToResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.access_token_, &other->_impl_.access_token_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &access_token_, lhs_arena, + &other->access_token_, rhs_arena + ); } -::google::protobuf::Metadata AuthenticateToResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata AuthenticateToResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fv1_2fauth_2eproto_getter, &descriptor_table_proto_2frpc_2fv1_2fauth_2eproto_once, file_level_metadata_proto_2frpc_2fv1_2fauth_2eproto[4]); } + // @@protoc_insertion_point(namespace_scope) } // namespace v1 } // namespace rpc } // namespace proto -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::proto::rpc::v1::Credentials* +Arena::CreateMaybeMessage< ::proto::rpc::v1::Credentials >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::rpc::v1::Credentials >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::rpc::v1::AuthenticateRequest* +Arena::CreateMaybeMessage< ::proto::rpc::v1::AuthenticateRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::rpc::v1::AuthenticateRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::rpc::v1::AuthenticateResponse* +Arena::CreateMaybeMessage< ::proto::rpc::v1::AuthenticateResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::rpc::v1::AuthenticateResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::rpc::v1::AuthenticateToRequest* +Arena::CreateMaybeMessage< ::proto::rpc::v1::AuthenticateToRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::rpc::v1::AuthenticateToRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::rpc::v1::AuthenticateToResponse* +Arena::CreateMaybeMessage< ::proto::rpc::v1::AuthenticateToResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::rpc::v1::AuthenticateToResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/proto/rpc/v1/auth.pb.h b/src/viam/api/proto/rpc/v1/auth.pb.h index b38e44c80..34822b6aa 100644 --- a/src/viam/api/proto/rpc/v1/auth.pb.h +++ b/src/viam/api/proto/rpc/v1/auth.pb.h @@ -1,61 +1,50 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: proto/rpc/v1/auth.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_proto_2frpc_2fv1_2fauth_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_proto_2frpc_2fv1_2fauth_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_proto_2frpc_2fv1_2fauth_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_proto_2frpc_2fv1_2fauth_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/unknown_field_set.h" + +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include #include "google/api/annotations.pb.h" // @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - +#include #define PROTOBUF_INTERNAL_EXPORT_proto_2frpc_2fv1_2fauth_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_proto_2frpc_2fv1_2fauth_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_proto_2frpc_2fv1_2fauth_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_proto_2frpc_2fv1_2fauth_2eproto; namespace proto { namespace rpc { namespace v1 { @@ -77,30 +66,27 @@ extern CredentialsDefaultTypeInternal _Credentials_default_instance_; } // namespace v1 } // namespace rpc } // namespace proto -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - +PROTOBUF_NAMESPACE_OPEN +template<> ::proto::rpc::v1::AuthenticateRequest* Arena::CreateMaybeMessage<::proto::rpc::v1::AuthenticateRequest>(Arena*); +template<> ::proto::rpc::v1::AuthenticateResponse* Arena::CreateMaybeMessage<::proto::rpc::v1::AuthenticateResponse>(Arena*); +template<> ::proto::rpc::v1::AuthenticateToRequest* Arena::CreateMaybeMessage<::proto::rpc::v1::AuthenticateToRequest>(Arena*); +template<> ::proto::rpc::v1::AuthenticateToResponse* Arena::CreateMaybeMessage<::proto::rpc::v1::AuthenticateToResponse>(Arena*); +template<> ::proto::rpc::v1::Credentials* Arena::CreateMaybeMessage<::proto::rpc::v1::Credentials>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace proto { namespace rpc { namespace v1 { // =================================================================== - -// ------------------------------------------------------------------- - class Credentials final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto.rpc.v1.Credentials) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.rpc.v1.Credentials) */ { public: inline Credentials() : Credentials(nullptr) {} ~Credentials() override; - template - explicit PROTOBUF_CONSTEXPR Credentials(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR Credentials(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Credentials(const Credentials& from) - : Credentials(nullptr, from) {} + Credentials(const Credentials& from); Credentials(Credentials&& from) noexcept : Credentials() { *this = ::std::move(from); @@ -112,9 +98,9 @@ class Credentials final : } inline Credentials& operator=(Credentials&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -124,22 +110,13 @@ class Credentials final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const Credentials& default_instance() { @@ -158,65 +135,63 @@ class Credentials final : inline void Swap(Credentials* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(Credentials* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Credentials* New(::google::protobuf::Arena* arena = nullptr) const final { + Credentials* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const Credentials& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Credentials& from) { - Credentials::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Credentials& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(Credentials* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "proto.rpc.v1.Credentials"; } protected: - explicit Credentials(::google::protobuf::Arena* arena); - Credentials(::google::protobuf::Arena* arena, const Credentials& from); + explicit Credentials(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -227,93 +202,69 @@ class Credentials final : kPayloadFieldNumber = 2, }; // string type = 1 [json_name = "type"]; - void clear_type() ; + void clear_type(); const std::string& type() const; - template - void set_type(Arg_&& arg, Args_... args); + template + void set_type(ArgT0&& arg0, ArgT... args); std::string* mutable_type(); PROTOBUF_NODISCARD std::string* release_type(); - void set_allocated_type(std::string* value); - + 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_type(const std::string& value); std::string* _internal_mutable_type(); - public: + // string payload = 2 [json_name = "payload"]; - void clear_payload() ; + void clear_payload(); const std::string& payload() const; - template - void set_payload(Arg_&& arg, Args_... args); + template + void set_payload(ArgT0&& arg0, ArgT... args); std::string* mutable_payload(); PROTOBUF_NODISCARD std::string* release_payload(); - void set_allocated_payload(std::string* value); - + void set_allocated_payload(std::string* payload); private: const std::string& _internal_payload() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_payload( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_payload(const std::string& value); std::string* _internal_mutable_payload(); - public: + // @@protoc_insertion_point(class_scope:proto.rpc.v1.Credentials) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 44, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr type_; - ::google::protobuf::internal::ArenaStringPtr payload_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr payload_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_proto_2frpc_2fv1_2fauth_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class AuthenticateToResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto.rpc.v1.AuthenticateToResponse) */ { +class AuthenticateRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.rpc.v1.AuthenticateRequest) */ { public: - inline AuthenticateToResponse() : AuthenticateToResponse(nullptr) {} - ~AuthenticateToResponse() override; - template - explicit PROTOBUF_CONSTEXPR AuthenticateToResponse(::google::protobuf::internal::ConstantInitialized); + inline AuthenticateRequest() : AuthenticateRequest(nullptr) {} + ~AuthenticateRequest() override; + explicit PROTOBUF_CONSTEXPR AuthenticateRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline AuthenticateToResponse(const AuthenticateToResponse& from) - : AuthenticateToResponse(nullptr, from) {} - AuthenticateToResponse(AuthenticateToResponse&& from) noexcept - : AuthenticateToResponse() { + AuthenticateRequest(const AuthenticateRequest& from); + AuthenticateRequest(AuthenticateRequest&& from) noexcept + : AuthenticateRequest() { *this = ::std::move(from); } - inline AuthenticateToResponse& operator=(const AuthenticateToResponse& from) { + inline AuthenticateRequest& operator=(const AuthenticateRequest& from) { CopyFrom(from); return *this; } - inline AuthenticateToResponse& operator=(AuthenticateToResponse&& from) noexcept { + inline AuthenticateRequest& operator=(AuthenticateRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -323,178 +274,165 @@ class AuthenticateToResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const AuthenticateToResponse& default_instance() { + static const AuthenticateRequest& default_instance() { return *internal_default_instance(); } - static inline const AuthenticateToResponse* internal_default_instance() { - return reinterpret_cast( - &_AuthenticateToResponse_default_instance_); + static inline const AuthenticateRequest* internal_default_instance() { + return reinterpret_cast( + &_AuthenticateRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 4; + 1; - friend void swap(AuthenticateToResponse& a, AuthenticateToResponse& b) { + friend void swap(AuthenticateRequest& a, AuthenticateRequest& b) { a.Swap(&b); } - inline void Swap(AuthenticateToResponse* other) { + inline void Swap(AuthenticateRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(AuthenticateToResponse* other) { + void UnsafeArenaSwap(AuthenticateRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - AuthenticateToResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const AuthenticateToResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const AuthenticateToResponse& from) { - AuthenticateToResponse::MergeImpl(*this, from); + AuthenticateRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const AuthenticateRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const AuthenticateRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(AuthenticateToResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(AuthenticateRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "proto.rpc.v1.AuthenticateToResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.rpc.v1.AuthenticateRequest"; } protected: - explicit AuthenticateToResponse(::google::protobuf::Arena* arena); - AuthenticateToResponse(::google::protobuf::Arena* arena, const AuthenticateToResponse& from); + explicit AuthenticateRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kAccessTokenFieldNumber = 1, + kEntityFieldNumber = 1, + kCredentialsFieldNumber = 2, }; - // string access_token = 1 [json_name = "accessToken"]; - void clear_access_token() ; - const std::string& access_token() const; - template - void set_access_token(Arg_&& arg, Args_... args); - std::string* mutable_access_token(); - PROTOBUF_NODISCARD std::string* release_access_token(); - void set_allocated_access_token(std::string* value); - + // string entity = 1 [json_name = "entity"]; + void clear_entity(); + const std::string& entity() const; + template + void set_entity(ArgT0&& arg0, ArgT... args); + std::string* mutable_entity(); + PROTOBUF_NODISCARD std::string* release_entity(); + void set_allocated_entity(std::string* entity); private: - const std::string& _internal_access_token() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_access_token( - const std::string& value); - std::string* _internal_mutable_access_token(); + const std::string& _internal_entity() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_entity(const std::string& value); + std::string* _internal_mutable_entity(); + public: + // .proto.rpc.v1.Credentials credentials = 2 [json_name = "credentials"]; + bool has_credentials() const; + private: + bool _internal_has_credentials() const; public: - // @@protoc_insertion_point(class_scope:proto.rpc.v1.AuthenticateToResponse) + void clear_credentials(); + const ::proto::rpc::v1::Credentials& credentials() const; + PROTOBUF_NODISCARD ::proto::rpc::v1::Credentials* release_credentials(); + ::proto::rpc::v1::Credentials* mutable_credentials(); + void set_allocated_credentials(::proto::rpc::v1::Credentials* credentials); + private: + const ::proto::rpc::v1::Credentials& _internal_credentials() const; + ::proto::rpc::v1::Credentials* _internal_mutable_credentials(); + public: + void unsafe_arena_set_allocated_credentials( + ::proto::rpc::v1::Credentials* credentials); + ::proto::rpc::v1::Credentials* unsafe_arena_release_credentials(); + + // @@protoc_insertion_point(class_scope:proto.rpc.v1.AuthenticateRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 56, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr access_token_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr entity_; + ::proto::rpc::v1::Credentials* credentials_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_proto_2frpc_2fv1_2fauth_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class AuthenticateToRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto.rpc.v1.AuthenticateToRequest) */ { +class AuthenticateResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.rpc.v1.AuthenticateResponse) */ { public: - inline AuthenticateToRequest() : AuthenticateToRequest(nullptr) {} - ~AuthenticateToRequest() override; - template - explicit PROTOBUF_CONSTEXPR AuthenticateToRequest(::google::protobuf::internal::ConstantInitialized); + inline AuthenticateResponse() : AuthenticateResponse(nullptr) {} + ~AuthenticateResponse() override; + explicit PROTOBUF_CONSTEXPR AuthenticateResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline AuthenticateToRequest(const AuthenticateToRequest& from) - : AuthenticateToRequest(nullptr, from) {} - AuthenticateToRequest(AuthenticateToRequest&& from) noexcept - : AuthenticateToRequest() { + AuthenticateResponse(const AuthenticateResponse& from); + AuthenticateResponse(AuthenticateResponse&& from) noexcept + : AuthenticateResponse() { *this = ::std::move(from); } - inline AuthenticateToRequest& operator=(const AuthenticateToRequest& from) { + inline AuthenticateResponse& operator=(const AuthenticateResponse& from) { CopyFrom(from); return *this; } - inline AuthenticateToRequest& operator=(AuthenticateToRequest&& from) noexcept { + inline AuthenticateResponse& operator=(AuthenticateResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -504,178 +442,145 @@ class AuthenticateToRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const AuthenticateToRequest& default_instance() { + static const AuthenticateResponse& default_instance() { return *internal_default_instance(); } - static inline const AuthenticateToRequest* internal_default_instance() { - return reinterpret_cast( - &_AuthenticateToRequest_default_instance_); + static inline const AuthenticateResponse* internal_default_instance() { + return reinterpret_cast( + &_AuthenticateResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 3; + 2; - friend void swap(AuthenticateToRequest& a, AuthenticateToRequest& b) { + friend void swap(AuthenticateResponse& a, AuthenticateResponse& b) { a.Swap(&b); } - inline void Swap(AuthenticateToRequest* other) { + inline void Swap(AuthenticateResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(AuthenticateToRequest* other) { + void UnsafeArenaSwap(AuthenticateResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - AuthenticateToRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const AuthenticateToRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const AuthenticateToRequest& from) { - AuthenticateToRequest::MergeImpl(*this, from); + AuthenticateResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const AuthenticateResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const AuthenticateResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(AuthenticateToRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(AuthenticateResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "proto.rpc.v1.AuthenticateToRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.rpc.v1.AuthenticateResponse"; } protected: - explicit AuthenticateToRequest(::google::protobuf::Arena* arena); - AuthenticateToRequest(::google::protobuf::Arena* arena, const AuthenticateToRequest& from); + explicit AuthenticateResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kEntityFieldNumber = 1, + kAccessTokenFieldNumber = 1, }; - // string entity = 1 [json_name = "entity"]; - void clear_entity() ; - const std::string& entity() const; - template - void set_entity(Arg_&& arg, Args_... args); - std::string* mutable_entity(); - PROTOBUF_NODISCARD std::string* release_entity(); - void set_allocated_entity(std::string* value); - + // string access_token = 1 [json_name = "accessToken"]; + void clear_access_token(); + const std::string& access_token() const; + template + void set_access_token(ArgT0&& arg0, ArgT... args); + std::string* mutable_access_token(); + PROTOBUF_NODISCARD std::string* release_access_token(); + void set_allocated_access_token(std::string* access_token); private: - const std::string& _internal_entity() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_entity( - const std::string& value); - std::string* _internal_mutable_entity(); - + const std::string& _internal_access_token() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_access_token(const std::string& value); + std::string* _internal_mutable_access_token(); public: - // @@protoc_insertion_point(class_scope:proto.rpc.v1.AuthenticateToRequest) + + // @@protoc_insertion_point(class_scope:proto.rpc.v1.AuthenticateResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 49, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr entity_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr access_token_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_proto_2frpc_2fv1_2fauth_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class AuthenticateResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto.rpc.v1.AuthenticateResponse) */ { +class AuthenticateToRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.rpc.v1.AuthenticateToRequest) */ { public: - inline AuthenticateResponse() : AuthenticateResponse(nullptr) {} - ~AuthenticateResponse() override; - template - explicit PROTOBUF_CONSTEXPR AuthenticateResponse(::google::protobuf::internal::ConstantInitialized); + inline AuthenticateToRequest() : AuthenticateToRequest(nullptr) {} + ~AuthenticateToRequest() override; + explicit PROTOBUF_CONSTEXPR AuthenticateToRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline AuthenticateResponse(const AuthenticateResponse& from) - : AuthenticateResponse(nullptr, from) {} - AuthenticateResponse(AuthenticateResponse&& from) noexcept - : AuthenticateResponse() { + AuthenticateToRequest(const AuthenticateToRequest& from); + AuthenticateToRequest(AuthenticateToRequest&& from) noexcept + : AuthenticateToRequest() { *this = ::std::move(from); } - inline AuthenticateResponse& operator=(const AuthenticateResponse& from) { + inline AuthenticateToRequest& operator=(const AuthenticateToRequest& from) { CopyFrom(from); return *this; } - inline AuthenticateResponse& operator=(AuthenticateResponse&& from) noexcept { + inline AuthenticateToRequest& operator=(AuthenticateToRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -685,178 +590,145 @@ class AuthenticateResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const AuthenticateResponse& default_instance() { + static const AuthenticateToRequest& default_instance() { return *internal_default_instance(); } - static inline const AuthenticateResponse* internal_default_instance() { - return reinterpret_cast( - &_AuthenticateResponse_default_instance_); + static inline const AuthenticateToRequest* internal_default_instance() { + return reinterpret_cast( + &_AuthenticateToRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 2; + 3; - friend void swap(AuthenticateResponse& a, AuthenticateResponse& b) { + friend void swap(AuthenticateToRequest& a, AuthenticateToRequest& b) { a.Swap(&b); } - inline void Swap(AuthenticateResponse* other) { + inline void Swap(AuthenticateToRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(AuthenticateResponse* other) { + void UnsafeArenaSwap(AuthenticateToRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - AuthenticateResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const AuthenticateResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const AuthenticateResponse& from) { - AuthenticateResponse::MergeImpl(*this, from); + AuthenticateToRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const AuthenticateToRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const AuthenticateToRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(AuthenticateResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(AuthenticateToRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "proto.rpc.v1.AuthenticateResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.rpc.v1.AuthenticateToRequest"; } protected: - explicit AuthenticateResponse(::google::protobuf::Arena* arena); - AuthenticateResponse(::google::protobuf::Arena* arena, const AuthenticateResponse& from); + explicit AuthenticateToRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kAccessTokenFieldNumber = 1, + kEntityFieldNumber = 1, }; - // string access_token = 1 [json_name = "accessToken"]; - void clear_access_token() ; - const std::string& access_token() const; - template - void set_access_token(Arg_&& arg, Args_... args); - std::string* mutable_access_token(); - PROTOBUF_NODISCARD std::string* release_access_token(); - void set_allocated_access_token(std::string* value); - + // string entity = 1 [json_name = "entity"]; + void clear_entity(); + const std::string& entity() const; + template + void set_entity(ArgT0&& arg0, ArgT... args); + std::string* mutable_entity(); + PROTOBUF_NODISCARD std::string* release_entity(); + void set_allocated_entity(std::string* entity); private: - const std::string& _internal_access_token() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_access_token( - const std::string& value); - std::string* _internal_mutable_access_token(); - + const std::string& _internal_entity() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_entity(const std::string& value); + std::string* _internal_mutable_entity(); public: - // @@protoc_insertion_point(class_scope:proto.rpc.v1.AuthenticateResponse) + + // @@protoc_insertion_point(class_scope:proto.rpc.v1.AuthenticateToRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 54, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr access_token_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr entity_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_proto_2frpc_2fv1_2fauth_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class AuthenticateRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto.rpc.v1.AuthenticateRequest) */ { +class AuthenticateToResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.rpc.v1.AuthenticateToResponse) */ { public: - inline AuthenticateRequest() : AuthenticateRequest(nullptr) {} - ~AuthenticateRequest() override; - template - explicit PROTOBUF_CONSTEXPR AuthenticateRequest(::google::protobuf::internal::ConstantInitialized); + inline AuthenticateToResponse() : AuthenticateToResponse(nullptr) {} + ~AuthenticateToResponse() override; + explicit PROTOBUF_CONSTEXPR AuthenticateToResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline AuthenticateRequest(const AuthenticateRequest& from) - : AuthenticateRequest(nullptr, from) {} - AuthenticateRequest(AuthenticateRequest&& from) noexcept - : AuthenticateRequest() { + AuthenticateToResponse(const AuthenticateToResponse& from); + AuthenticateToResponse(AuthenticateToResponse&& from) noexcept + : AuthenticateToResponse() { *this = ::std::move(from); } - inline AuthenticateRequest& operator=(const AuthenticateRequest& from) { + inline AuthenticateToResponse& operator=(const AuthenticateToResponse& from) { CopyFrom(from); return *this; } - inline AuthenticateRequest& operator=(AuthenticateRequest&& from) noexcept { + inline AuthenticateToResponse& operator=(AuthenticateToResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -866,291 +738,229 @@ class AuthenticateRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const AuthenticateRequest& default_instance() { + static const AuthenticateToResponse& default_instance() { return *internal_default_instance(); } - static inline const AuthenticateRequest* internal_default_instance() { - return reinterpret_cast( - &_AuthenticateRequest_default_instance_); + static inline const AuthenticateToResponse* internal_default_instance() { + return reinterpret_cast( + &_AuthenticateToResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 1; + 4; - friend void swap(AuthenticateRequest& a, AuthenticateRequest& b) { + friend void swap(AuthenticateToResponse& a, AuthenticateToResponse& b) { a.Swap(&b); } - inline void Swap(AuthenticateRequest* other) { + inline void Swap(AuthenticateToResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(AuthenticateRequest* other) { + void UnsafeArenaSwap(AuthenticateToResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - AuthenticateRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const AuthenticateRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const AuthenticateRequest& from) { - AuthenticateRequest::MergeImpl(*this, from); + AuthenticateToResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const AuthenticateToResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const AuthenticateToResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(AuthenticateRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(AuthenticateToResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "proto.rpc.v1.AuthenticateRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.rpc.v1.AuthenticateToResponse"; } protected: - explicit AuthenticateRequest(::google::protobuf::Arena* arena); - AuthenticateRequest(::google::protobuf::Arena* arena, const AuthenticateRequest& from); + explicit AuthenticateToResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kEntityFieldNumber = 1, - kCredentialsFieldNumber = 2, + kAccessTokenFieldNumber = 1, }; - // string entity = 1 [json_name = "entity"]; - void clear_entity() ; - const std::string& entity() const; - template - void set_entity(Arg_&& arg, Args_... args); - std::string* mutable_entity(); - PROTOBUF_NODISCARD std::string* release_entity(); - void set_allocated_entity(std::string* value); - + // string access_token = 1 [json_name = "accessToken"]; + void clear_access_token(); + const std::string& access_token() const; + template + void set_access_token(ArgT0&& arg0, ArgT... args); + std::string* mutable_access_token(); + PROTOBUF_NODISCARD std::string* release_access_token(); + void set_allocated_access_token(std::string* access_token); private: - const std::string& _internal_entity() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_entity( - const std::string& value); - std::string* _internal_mutable_entity(); - + const std::string& _internal_access_token() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_access_token(const std::string& value); + std::string* _internal_mutable_access_token(); public: - // .proto.rpc.v1.Credentials credentials = 2 [json_name = "credentials"]; - bool has_credentials() const; - void clear_credentials() ; - const ::proto::rpc::v1::Credentials& credentials() const; - PROTOBUF_NODISCARD ::proto::rpc::v1::Credentials* release_credentials(); - ::proto::rpc::v1::Credentials* mutable_credentials(); - void set_allocated_credentials(::proto::rpc::v1::Credentials* value); - void unsafe_arena_set_allocated_credentials(::proto::rpc::v1::Credentials* value); - ::proto::rpc::v1::Credentials* unsafe_arena_release_credentials(); - - private: - const ::proto::rpc::v1::Credentials& _internal_credentials() const; - ::proto::rpc::v1::Credentials* _internal_mutable_credentials(); - public: - // @@protoc_insertion_point(class_scope:proto.rpc.v1.AuthenticateRequest) + // @@protoc_insertion_point(class_scope:proto.rpc.v1.AuthenticateToResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 47, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr entity_; - ::proto::rpc::v1::Credentials* credentials_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr access_token_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_proto_2frpc_2fv1_2fauth_2eproto; }; - // =================================================================== - - // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ -// ------------------------------------------------------------------- - // Credentials // string type = 1 [json_name = "type"]; inline void Credentials::clear_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_.ClearToEmpty(); + type_.ClearToEmpty(); } -inline const std::string& Credentials::type() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Credentials::type() const { // @@protoc_insertion_point(field_get:proto.rpc.v1.Credentials.type) return _internal_type(); } -template -inline PROTOBUF_ALWAYS_INLINE void Credentials::set_type(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.type_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Credentials::set_type(ArgT0&& arg0, ArgT... args) { + + type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.rpc.v1.Credentials.type) } -inline std::string* Credentials::mutable_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Credentials::mutable_type() { std::string* _s = _internal_mutable_type(); // @@protoc_insertion_point(field_mutable:proto.rpc.v1.Credentials.type) return _s; } inline const std::string& Credentials::_internal_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.type_.Get(); + return type_.Get(); } inline void Credentials::_internal_set_type(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.type_.Set(value, GetArena()); + + type_.Set(value, GetArenaForAllocation()); } inline std::string* Credentials::_internal_mutable_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.type_.Mutable( GetArena()); + + return type_.Mutable(GetArenaForAllocation()); } inline std::string* Credentials::release_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:proto.rpc.v1.Credentials.type) - return _impl_.type_.Release(); -} -inline void Credentials::set_allocated_type(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.type_.IsDefault()) { - _impl_.type_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return type_.Release(); +} +inline void Credentials::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:proto.rpc.v1.Credentials.type) } // string payload = 2 [json_name = "payload"]; inline void Credentials::clear_payload() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.payload_.ClearToEmpty(); + payload_.ClearToEmpty(); } -inline const std::string& Credentials::payload() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Credentials::payload() const { // @@protoc_insertion_point(field_get:proto.rpc.v1.Credentials.payload) return _internal_payload(); } -template -inline PROTOBUF_ALWAYS_INLINE void Credentials::set_payload(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.payload_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Credentials::set_payload(ArgT0&& arg0, ArgT... args) { + + payload_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.rpc.v1.Credentials.payload) } -inline std::string* Credentials::mutable_payload() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Credentials::mutable_payload() { std::string* _s = _internal_mutable_payload(); // @@protoc_insertion_point(field_mutable:proto.rpc.v1.Credentials.payload) return _s; } inline const std::string& Credentials::_internal_payload() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.payload_.Get(); + return payload_.Get(); } inline void Credentials::_internal_set_payload(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.payload_.Set(value, GetArena()); + + payload_.Set(value, GetArenaForAllocation()); } inline std::string* Credentials::_internal_mutable_payload() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.payload_.Mutable( GetArena()); + + return payload_.Mutable(GetArenaForAllocation()); } inline std::string* Credentials::release_payload() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:proto.rpc.v1.Credentials.payload) - return _impl_.payload_.Release(); -} -inline void Credentials::set_allocated_payload(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.payload_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.payload_.IsDefault()) { - _impl_.payload_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return payload_.Release(); +} +inline void Credentials::set_allocated_payload(std::string* payload) { + if (payload != nullptr) { + + } else { + + } + payload_.SetAllocated(payload, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (payload_.IsDefault()) { + payload_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:proto.rpc.v1.Credentials.payload) } @@ -1160,150 +970,141 @@ inline void Credentials::set_allocated_payload(std::string* value) { // string entity = 1 [json_name = "entity"]; inline void AuthenticateRequest::clear_entity() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.entity_.ClearToEmpty(); + entity_.ClearToEmpty(); } -inline const std::string& AuthenticateRequest::entity() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& AuthenticateRequest::entity() const { // @@protoc_insertion_point(field_get:proto.rpc.v1.AuthenticateRequest.entity) return _internal_entity(); } -template -inline PROTOBUF_ALWAYS_INLINE void AuthenticateRequest::set_entity(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.entity_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void AuthenticateRequest::set_entity(ArgT0&& arg0, ArgT... args) { + + entity_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.rpc.v1.AuthenticateRequest.entity) } -inline std::string* AuthenticateRequest::mutable_entity() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* AuthenticateRequest::mutable_entity() { std::string* _s = _internal_mutable_entity(); // @@protoc_insertion_point(field_mutable:proto.rpc.v1.AuthenticateRequest.entity) return _s; } inline const std::string& AuthenticateRequest::_internal_entity() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.entity_.Get(); + return entity_.Get(); } inline void AuthenticateRequest::_internal_set_entity(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.entity_.Set(value, GetArena()); + + entity_.Set(value, GetArenaForAllocation()); } inline std::string* AuthenticateRequest::_internal_mutable_entity() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.entity_.Mutable( GetArena()); + + return entity_.Mutable(GetArenaForAllocation()); } inline std::string* AuthenticateRequest::release_entity() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:proto.rpc.v1.AuthenticateRequest.entity) - return _impl_.entity_.Release(); -} -inline void AuthenticateRequest::set_allocated_entity(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.entity_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.entity_.IsDefault()) { - _impl_.entity_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return entity_.Release(); +} +inline void AuthenticateRequest::set_allocated_entity(std::string* entity) { + if (entity != nullptr) { + + } else { + + } + entity_.SetAllocated(entity, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (entity_.IsDefault()) { + entity_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:proto.rpc.v1.AuthenticateRequest.entity) } // .proto.rpc.v1.Credentials credentials = 2 [json_name = "credentials"]; +inline bool AuthenticateRequest::_internal_has_credentials() const { + return this != internal_default_instance() && credentials_ != nullptr; +} inline bool AuthenticateRequest::has_credentials() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.credentials_ != nullptr); - return value; + return _internal_has_credentials(); } inline void AuthenticateRequest::clear_credentials() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.credentials_ != nullptr) _impl_.credentials_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && credentials_ != nullptr) { + delete credentials_; + } + credentials_ = nullptr; } inline const ::proto::rpc::v1::Credentials& AuthenticateRequest::_internal_credentials() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::proto::rpc::v1::Credentials* p = _impl_.credentials_; - return p != nullptr ? *p : reinterpret_cast(::proto::rpc::v1::_Credentials_default_instance_); + const ::proto::rpc::v1::Credentials* p = credentials_; + return p != nullptr ? *p : reinterpret_cast( + ::proto::rpc::v1::_Credentials_default_instance_); } -inline const ::proto::rpc::v1::Credentials& AuthenticateRequest::credentials() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::proto::rpc::v1::Credentials& AuthenticateRequest::credentials() const { // @@protoc_insertion_point(field_get:proto.rpc.v1.AuthenticateRequest.credentials) return _internal_credentials(); } -inline void AuthenticateRequest::unsafe_arena_set_allocated_credentials(::proto::rpc::v1::Credentials* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.credentials_); +inline void AuthenticateRequest::unsafe_arena_set_allocated_credentials( + ::proto::rpc::v1::Credentials* credentials) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(credentials_); } - _impl_.credentials_ = reinterpret_cast<::proto::rpc::v1::Credentials*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + credentials_ = credentials; + if (credentials) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.rpc.v1.AuthenticateRequest.credentials) } inline ::proto::rpc::v1::Credentials* AuthenticateRequest::release_credentials() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::proto::rpc::v1::Credentials* released = _impl_.credentials_; - _impl_.credentials_ = nullptr; + + ::proto::rpc::v1::Credentials* temp = credentials_; + credentials_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::proto::rpc::v1::Credentials* AuthenticateRequest::unsafe_arena_release_credentials() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:proto.rpc.v1.AuthenticateRequest.credentials) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::proto::rpc::v1::Credentials* temp = _impl_.credentials_; - _impl_.credentials_ = nullptr; + + ::proto::rpc::v1::Credentials* temp = credentials_; + credentials_ = nullptr; return temp; } inline ::proto::rpc::v1::Credentials* AuthenticateRequest::_internal_mutable_credentials() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.credentials_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::rpc::v1::Credentials>(GetArena()); - _impl_.credentials_ = reinterpret_cast<::proto::rpc::v1::Credentials*>(p); + + if (credentials_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::rpc::v1::Credentials>(GetArenaForAllocation()); + credentials_ = p; } - return _impl_.credentials_; + return credentials_; } -inline ::proto::rpc::v1::Credentials* AuthenticateRequest::mutable_credentials() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::proto::rpc::v1::Credentials* AuthenticateRequest::mutable_credentials() { ::proto::rpc::v1::Credentials* _msg = _internal_mutable_credentials(); // @@protoc_insertion_point(field_mutable:proto.rpc.v1.AuthenticateRequest.credentials) return _msg; } -inline void AuthenticateRequest::set_allocated_credentials(::proto::rpc::v1::Credentials* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void AuthenticateRequest::set_allocated_credentials(::proto::rpc::v1::Credentials* credentials) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::proto::rpc::v1::Credentials*>(_impl_.credentials_); + delete credentials_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::proto::rpc::v1::Credentials*>(value)->GetArena(); + if (credentials) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(credentials); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + credentials = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, credentials, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.credentials_ = reinterpret_cast<::proto::rpc::v1::Credentials*>(value); + credentials_ = credentials; // @@protoc_insertion_point(field_set_allocated:proto.rpc.v1.AuthenticateRequest.credentials) } @@ -1313,54 +1114,51 @@ inline void AuthenticateRequest::set_allocated_credentials(::proto::rpc::v1::Cre // string access_token = 1 [json_name = "accessToken"]; inline void AuthenticateResponse::clear_access_token() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.access_token_.ClearToEmpty(); + access_token_.ClearToEmpty(); } -inline const std::string& AuthenticateResponse::access_token() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& AuthenticateResponse::access_token() const { // @@protoc_insertion_point(field_get:proto.rpc.v1.AuthenticateResponse.access_token) return _internal_access_token(); } -template -inline PROTOBUF_ALWAYS_INLINE void AuthenticateResponse::set_access_token(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.access_token_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void AuthenticateResponse::set_access_token(ArgT0&& arg0, ArgT... args) { + + access_token_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.rpc.v1.AuthenticateResponse.access_token) } -inline std::string* AuthenticateResponse::mutable_access_token() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* AuthenticateResponse::mutable_access_token() { std::string* _s = _internal_mutable_access_token(); // @@protoc_insertion_point(field_mutable:proto.rpc.v1.AuthenticateResponse.access_token) return _s; } inline const std::string& AuthenticateResponse::_internal_access_token() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.access_token_.Get(); + return access_token_.Get(); } inline void AuthenticateResponse::_internal_set_access_token(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.access_token_.Set(value, GetArena()); + + access_token_.Set(value, GetArenaForAllocation()); } inline std::string* AuthenticateResponse::_internal_mutable_access_token() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.access_token_.Mutable( GetArena()); + + return access_token_.Mutable(GetArenaForAllocation()); } inline std::string* AuthenticateResponse::release_access_token() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:proto.rpc.v1.AuthenticateResponse.access_token) - return _impl_.access_token_.Release(); -} -inline void AuthenticateResponse::set_allocated_access_token(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.access_token_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.access_token_.IsDefault()) { - _impl_.access_token_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return access_token_.Release(); +} +inline void AuthenticateResponse::set_allocated_access_token(std::string* access_token) { + if (access_token != nullptr) { + + } else { + + } + access_token_.SetAllocated(access_token, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (access_token_.IsDefault()) { + access_token_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:proto.rpc.v1.AuthenticateResponse.access_token) } @@ -1370,54 +1168,51 @@ inline void AuthenticateResponse::set_allocated_access_token(std::string* value) // string entity = 1 [json_name = "entity"]; inline void AuthenticateToRequest::clear_entity() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.entity_.ClearToEmpty(); + entity_.ClearToEmpty(); } -inline const std::string& AuthenticateToRequest::entity() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& AuthenticateToRequest::entity() const { // @@protoc_insertion_point(field_get:proto.rpc.v1.AuthenticateToRequest.entity) return _internal_entity(); } -template -inline PROTOBUF_ALWAYS_INLINE void AuthenticateToRequest::set_entity(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.entity_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void AuthenticateToRequest::set_entity(ArgT0&& arg0, ArgT... args) { + + entity_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.rpc.v1.AuthenticateToRequest.entity) } -inline std::string* AuthenticateToRequest::mutable_entity() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* AuthenticateToRequest::mutable_entity() { std::string* _s = _internal_mutable_entity(); // @@protoc_insertion_point(field_mutable:proto.rpc.v1.AuthenticateToRequest.entity) return _s; } inline const std::string& AuthenticateToRequest::_internal_entity() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.entity_.Get(); + return entity_.Get(); } inline void AuthenticateToRequest::_internal_set_entity(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.entity_.Set(value, GetArena()); + + entity_.Set(value, GetArenaForAllocation()); } inline std::string* AuthenticateToRequest::_internal_mutable_entity() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.entity_.Mutable( GetArena()); + + return entity_.Mutable(GetArenaForAllocation()); } inline std::string* AuthenticateToRequest::release_entity() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:proto.rpc.v1.AuthenticateToRequest.entity) - return _impl_.entity_.Release(); -} -inline void AuthenticateToRequest::set_allocated_entity(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.entity_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.entity_.IsDefault()) { - _impl_.entity_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return entity_.Release(); +} +inline void AuthenticateToRequest::set_allocated_entity(std::string* entity) { + if (entity != nullptr) { + + } else { + + } + entity_.SetAllocated(entity, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (entity_.IsDefault()) { + entity_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:proto.rpc.v1.AuthenticateToRequest.entity) } @@ -1427,69 +1222,73 @@ inline void AuthenticateToRequest::set_allocated_entity(std::string* value) { // string access_token = 1 [json_name = "accessToken"]; inline void AuthenticateToResponse::clear_access_token() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.access_token_.ClearToEmpty(); + access_token_.ClearToEmpty(); } -inline const std::string& AuthenticateToResponse::access_token() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& AuthenticateToResponse::access_token() const { // @@protoc_insertion_point(field_get:proto.rpc.v1.AuthenticateToResponse.access_token) return _internal_access_token(); } -template -inline PROTOBUF_ALWAYS_INLINE void AuthenticateToResponse::set_access_token(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.access_token_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void AuthenticateToResponse::set_access_token(ArgT0&& arg0, ArgT... args) { + + access_token_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.rpc.v1.AuthenticateToResponse.access_token) } -inline std::string* AuthenticateToResponse::mutable_access_token() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* AuthenticateToResponse::mutable_access_token() { std::string* _s = _internal_mutable_access_token(); // @@protoc_insertion_point(field_mutable:proto.rpc.v1.AuthenticateToResponse.access_token) return _s; } inline const std::string& AuthenticateToResponse::_internal_access_token() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.access_token_.Get(); + return access_token_.Get(); } inline void AuthenticateToResponse::_internal_set_access_token(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.access_token_.Set(value, GetArena()); + + access_token_.Set(value, GetArenaForAllocation()); } inline std::string* AuthenticateToResponse::_internal_mutable_access_token() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.access_token_.Mutable( GetArena()); + + return access_token_.Mutable(GetArenaForAllocation()); } inline std::string* AuthenticateToResponse::release_access_token() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:proto.rpc.v1.AuthenticateToResponse.access_token) - return _impl_.access_token_.Release(); -} -inline void AuthenticateToResponse::set_allocated_access_token(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.access_token_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.access_token_.IsDefault()) { - _impl_.access_token_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return access_token_.Release(); +} +inline void AuthenticateToResponse::set_allocated_access_token(std::string* access_token) { + if (access_token != nullptr) { + + } else { + + } + access_token_.SetAllocated(access_token, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (access_token_.IsDefault()) { + access_token_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:proto.rpc.v1.AuthenticateToResponse.access_token) } #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) + } // namespace v1 } // namespace rpc } // namespace proto - // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_proto_2frpc_2fv1_2fauth_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_proto_2frpc_2fv1_2fauth_2eproto diff --git a/src/viam/api/proto/rpc/webrtc/v1/grpc.grpc.pb.cc b/src/viam/api/proto/rpc/webrtc/v1/grpc.grpc.pb.cc index fae48eec9..0e3a8a737 100644 --- a/src/viam/api/proto/rpc/webrtc/v1/grpc.grpc.pb.cc +++ b/src/viam/api/proto/rpc/webrtc/v1/grpc.grpc.pb.cc @@ -6,19 +6,19 @@ #include "proto/rpc/webrtc/v1/grpc.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace proto { namespace rpc { namespace webrtc { diff --git a/src/viam/api/proto/rpc/webrtc/v1/grpc.grpc.pb.h b/src/viam/api/proto/rpc/webrtc/v1/grpc.grpc.pb.h index a55cb61b6..92b335aed 100644 --- a/src/viam/api/proto/rpc/webrtc/v1/grpc.grpc.pb.h +++ b/src/viam/api/proto/rpc/webrtc/v1/grpc.grpc.pb.h @@ -7,23 +7,24 @@ #include "proto/rpc/webrtc/v1/grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace proto { namespace rpc { diff --git a/src/viam/api/proto/rpc/webrtc/v1/grpc.pb.cc b/src/viam/api/proto/rpc/webrtc/v1/grpc.pb.cc index d7c99de24..a1bc4636d 100644 --- a/src/viam/api/proto/rpc/webrtc/v1/grpc.pb.cc +++ b/src/viam/api/proto/rpc/webrtc/v1/grpc.pb.cc @@ -4,717 +4,568 @@ #include "proto/rpc/webrtc/v1/grpc.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace proto { namespace rpc { namespace webrtc { namespace v1 { - -inline constexpr Strings::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : values_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR Strings::Strings(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct StringsDefaultTypeInternal { - PROTOBUF_CONSTEXPR StringsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StringsDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR PacketMessage::PacketMessage( + ::_pbi::ConstantInitialized) + : data_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , eom_(false){} +struct PacketMessageDefaultTypeInternal { + PROTOBUF_CONSTEXPR PacketMessageDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~PacketMessageDefaultTypeInternal() {} union { - Strings _instance; + PacketMessage _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StringsDefaultTypeInternal _Strings_default_instance_; - -inline constexpr Stream::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : id_{::uint64_t{0u}}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR Stream::Stream(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PacketMessageDefaultTypeInternal _PacketMessage_default_instance_; +PROTOBUF_CONSTEXPR Stream::Stream( + ::_pbi::ConstantInitialized) + : id_(uint64_t{0u}){} struct StreamDefaultTypeInternal { - PROTOBUF_CONSTEXPR StreamDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR StreamDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~StreamDefaultTypeInternal() {} union { Stream _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StreamDefaultTypeInternal _Stream_default_instance_; - -inline constexpr PacketMessage::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : data_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - eom_{false}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR PacketMessage::PacketMessage(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct PacketMessageDefaultTypeInternal { - PROTOBUF_CONSTEXPR PacketMessageDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~PacketMessageDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StreamDefaultTypeInternal _Stream_default_instance_; +PROTOBUF_CONSTEXPR Request::Request( + ::_pbi::ConstantInitialized) + : stream_(nullptr) + , _oneof_case_{}{} +struct RequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR RequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RequestDefaultTypeInternal() {} union { - PacketMessage _instance; + Request _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PacketMessageDefaultTypeInternal _PacketMessage_default_instance_; - -inline constexpr ResponseMessage::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - packet_message_{nullptr} {} - -template -PROTOBUF_CONSTEXPR ResponseMessage::ResponseMessage(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ResponseMessageDefaultTypeInternal { - PROTOBUF_CONSTEXPR ResponseMessageDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ResponseMessageDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RequestDefaultTypeInternal _Request_default_instance_; +PROTOBUF_CONSTEXPR RequestHeaders::RequestHeaders( + ::_pbi::ConstantInitialized) + : method_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , metadata_(nullptr) + , timeout_(nullptr){} +struct RequestHeadersDefaultTypeInternal { + PROTOBUF_CONSTEXPR RequestHeadersDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RequestHeadersDefaultTypeInternal() {} union { - ResponseMessage _instance; + RequestHeaders _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResponseMessageDefaultTypeInternal _ResponseMessage_default_instance_; - -inline constexpr RequestMessage::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - packet_message_{nullptr}, - has_message_{false}, - eos_{false} {} - -template -PROTOBUF_CONSTEXPR RequestMessage::RequestMessage(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RequestHeadersDefaultTypeInternal _RequestHeaders_default_instance_; +PROTOBUF_CONSTEXPR RequestMessage::RequestMessage( + ::_pbi::ConstantInitialized) + : packet_message_(nullptr) + , has_message_(false) + , eos_(false){} struct RequestMessageDefaultTypeInternal { - PROTOBUF_CONSTEXPR RequestMessageDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR RequestMessageDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~RequestMessageDefaultTypeInternal() {} union { RequestMessage _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RequestMessageDefaultTypeInternal _RequestMessage_default_instance_; - template -PROTOBUF_CONSTEXPR Metadata_MdEntry_DoNotUse::Metadata_MdEntry_DoNotUse(::_pbi::ConstantInitialized) {} -struct Metadata_MdEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR Metadata_MdEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~Metadata_MdEntry_DoNotUseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RequestMessageDefaultTypeInternal _RequestMessage_default_instance_; +PROTOBUF_CONSTEXPR Response::Response( + ::_pbi::ConstantInitialized) + : stream_(nullptr) + , _oneof_case_{}{} +struct ResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ResponseDefaultTypeInternal() {} union { - Metadata_MdEntry_DoNotUse _instance; + Response _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Metadata_MdEntry_DoNotUseDefaultTypeInternal _Metadata_MdEntry_DoNotUse_default_instance_; - -inline constexpr Metadata::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : md_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR Metadata::Metadata(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct MetadataDefaultTypeInternal { - PROTOBUF_CONSTEXPR MetadataDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~MetadataDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResponseDefaultTypeInternal _Response_default_instance_; +PROTOBUF_CONSTEXPR ResponseHeaders::ResponseHeaders( + ::_pbi::ConstantInitialized) + : metadata_(nullptr){} +struct ResponseHeadersDefaultTypeInternal { + PROTOBUF_CONSTEXPR ResponseHeadersDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ResponseHeadersDefaultTypeInternal() {} union { - Metadata _instance; + ResponseHeaders _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MetadataDefaultTypeInternal _Metadata_default_instance_; - -inline constexpr ResponseTrailers::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - status_{nullptr}, - metadata_{nullptr} {} - -template -PROTOBUF_CONSTEXPR ResponseTrailers::ResponseTrailers(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ResponseTrailersDefaultTypeInternal { - PROTOBUF_CONSTEXPR ResponseTrailersDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ResponseTrailersDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResponseHeadersDefaultTypeInternal _ResponseHeaders_default_instance_; +PROTOBUF_CONSTEXPR ResponseMessage::ResponseMessage( + ::_pbi::ConstantInitialized) + : packet_message_(nullptr){} +struct ResponseMessageDefaultTypeInternal { + PROTOBUF_CONSTEXPR ResponseMessageDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ResponseMessageDefaultTypeInternal() {} union { - ResponseTrailers _instance; + ResponseMessage _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResponseTrailersDefaultTypeInternal _ResponseTrailers_default_instance_; - -inline constexpr ResponseHeaders::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - metadata_{nullptr} {} - -template -PROTOBUF_CONSTEXPR ResponseHeaders::ResponseHeaders(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ResponseHeadersDefaultTypeInternal { - PROTOBUF_CONSTEXPR ResponseHeadersDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ResponseHeadersDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResponseMessageDefaultTypeInternal _ResponseMessage_default_instance_; +PROTOBUF_CONSTEXPR ResponseTrailers::ResponseTrailers( + ::_pbi::ConstantInitialized) + : status_(nullptr) + , metadata_(nullptr){} +struct ResponseTrailersDefaultTypeInternal { + PROTOBUF_CONSTEXPR ResponseTrailersDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ResponseTrailersDefaultTypeInternal() {} union { - ResponseHeaders _instance; + ResponseTrailers _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResponseHeadersDefaultTypeInternal _ResponseHeaders_default_instance_; - -inline constexpr RequestHeaders::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - method_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - metadata_{nullptr}, - timeout_{nullptr} {} - -template -PROTOBUF_CONSTEXPR RequestHeaders::RequestHeaders(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct RequestHeadersDefaultTypeInternal { - PROTOBUF_CONSTEXPR RequestHeadersDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RequestHeadersDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResponseTrailersDefaultTypeInternal _ResponseTrailers_default_instance_; +PROTOBUF_CONSTEXPR Strings::Strings( + ::_pbi::ConstantInitialized) + : values_(){} +struct StringsDefaultTypeInternal { + PROTOBUF_CONSTEXPR StringsDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StringsDefaultTypeInternal() {} union { - RequestHeaders _instance; + Strings _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RequestHeadersDefaultTypeInternal _RequestHeaders_default_instance_; - -inline constexpr Response::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - stream_{nullptr}, - type_{}, - _oneof_case_{} {} - -template -PROTOBUF_CONSTEXPR Response::Response(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StringsDefaultTypeInternal _Strings_default_instance_; +PROTOBUF_CONSTEXPR Metadata_MdEntry_DoNotUse::Metadata_MdEntry_DoNotUse( + ::_pbi::ConstantInitialized){} +struct Metadata_MdEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR Metadata_MdEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Metadata_MdEntry_DoNotUseDefaultTypeInternal() {} union { - Response _instance; + Metadata_MdEntry_DoNotUse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResponseDefaultTypeInternal _Response_default_instance_; - -inline constexpr Request::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - stream_{nullptr}, - type_{}, - _oneof_case_{} {} - -template -PROTOBUF_CONSTEXPR Request::Request(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct RequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR RequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Metadata_MdEntry_DoNotUseDefaultTypeInternal _Metadata_MdEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR Metadata::Metadata( + ::_pbi::ConstantInitialized) + : md_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}){} +struct MetadataDefaultTypeInternal { + PROTOBUF_CONSTEXPR MetadataDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~MetadataDefaultTypeInternal() {} union { - Request _instance; + Metadata _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RequestDefaultTypeInternal _Request_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MetadataDefaultTypeInternal _Metadata_default_instance_; } // namespace v1 } // namespace webrtc } // namespace rpc } // namespace proto static ::_pb::Metadata file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto[12]; -static constexpr const ::_pb::EnumDescriptor** - file_level_enum_descriptors_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto = nullptr; -const ::uint32_t TableStruct_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::PacketMessage, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::PacketMessage, _impl_.data_), - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::PacketMessage, _impl_.eom_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::Stream, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::Stream, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::Request, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::Request, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::Request, _impl_._oneof_case_[0]), - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::Request, _impl_.stream_), - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::Request, _impl_.type_), - 0, - ~0u, - ~0u, - ~0u, - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::RequestHeaders, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::RequestHeaders, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::RequestHeaders, _impl_.method_), - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::RequestHeaders, _impl_.metadata_), - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::RequestHeaders, _impl_.timeout_), - ~0u, - 0, - 1, - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::RequestMessage, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::RequestMessage, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::RequestMessage, _impl_.has_message_), - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::RequestMessage, _impl_.packet_message_), - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::RequestMessage, _impl_.eos_), - ~0u, - 0, - ~0u, - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::Response, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::Response, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::Response, _impl_._oneof_case_[0]), - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::Response, _impl_.stream_), - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::Response, _impl_.type_), - 0, - ~0u, - ~0u, - ~0u, - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::ResponseHeaders, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::ResponseHeaders, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::ResponseHeaders, _impl_.metadata_), - 0, - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::ResponseMessage, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::ResponseMessage, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::ResponseMessage, _impl_.packet_message_), - 0, - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::ResponseTrailers, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::ResponseTrailers, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::ResponseTrailers, _impl_.status_), - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::ResponseTrailers, _impl_.metadata_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::Strings, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::Strings, _impl_.values_), - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::Metadata_MdEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::Metadata_MdEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::Metadata_MdEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::Metadata_MdEntry_DoNotUse, value_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::Metadata, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::Metadata, _impl_.md_), +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto = nullptr; + +const uint32_t TableStruct_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::PacketMessage, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::PacketMessage, data_), + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::PacketMessage, eom_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::Stream, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::Stream, id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::Request, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::Request, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::Request, stream_), + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::Request, type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::RequestHeaders, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::RequestHeaders, method_), + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::RequestHeaders, metadata_), + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::RequestHeaders, timeout_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::RequestMessage, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::RequestMessage, has_message_), + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::RequestMessage, packet_message_), + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::RequestMessage, eos_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::Response, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::Response, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::Response, stream_), + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::Response, type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::ResponseHeaders, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::ResponseHeaders, metadata_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::ResponseMessage, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::ResponseMessage, packet_message_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::ResponseTrailers, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::ResponseTrailers, status_), + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::ResponseTrailers, metadata_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::Strings, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::Strings, values_), + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::Metadata_MdEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::Metadata_MdEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::Metadata_MdEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::Metadata_MdEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::Metadata, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::Metadata, md_), }; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, -1, -1, sizeof(::proto::rpc::webrtc::v1::PacketMessage)}, - {10, -1, -1, sizeof(::proto::rpc::webrtc::v1::Stream)}, - {19, 32, -1, sizeof(::proto::rpc::webrtc::v1::Request)}, - {36, 47, -1, sizeof(::proto::rpc::webrtc::v1::RequestHeaders)}, - {50, 61, -1, sizeof(::proto::rpc::webrtc::v1::RequestMessage)}, - {64, 77, -1, sizeof(::proto::rpc::webrtc::v1::Response)}, - {81, 90, -1, sizeof(::proto::rpc::webrtc::v1::ResponseHeaders)}, - {91, 100, -1, sizeof(::proto::rpc::webrtc::v1::ResponseMessage)}, - {101, 111, -1, sizeof(::proto::rpc::webrtc::v1::ResponseTrailers)}, - {113, -1, -1, sizeof(::proto::rpc::webrtc::v1::Strings)}, - {122, 132, -1, sizeof(::proto::rpc::webrtc::v1::Metadata_MdEntry_DoNotUse)}, - {134, -1, -1, sizeof(::proto::rpc::webrtc::v1::Metadata)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::proto::rpc::webrtc::v1::PacketMessage)}, + { 8, -1, -1, sizeof(::proto::rpc::webrtc::v1::Stream)}, + { 15, -1, -1, sizeof(::proto::rpc::webrtc::v1::Request)}, + { 26, -1, -1, sizeof(::proto::rpc::webrtc::v1::RequestHeaders)}, + { 35, -1, -1, sizeof(::proto::rpc::webrtc::v1::RequestMessage)}, + { 44, -1, -1, sizeof(::proto::rpc::webrtc::v1::Response)}, + { 55, -1, -1, sizeof(::proto::rpc::webrtc::v1::ResponseHeaders)}, + { 62, -1, -1, sizeof(::proto::rpc::webrtc::v1::ResponseMessage)}, + { 69, -1, -1, sizeof(::proto::rpc::webrtc::v1::ResponseTrailers)}, + { 77, -1, -1, sizeof(::proto::rpc::webrtc::v1::Strings)}, + { 84, 92, -1, sizeof(::proto::rpc::webrtc::v1::Metadata_MdEntry_DoNotUse)}, + { 94, -1, -1, sizeof(::proto::rpc::webrtc::v1::Metadata)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::proto::rpc::webrtc::v1::_PacketMessage_default_instance_._instance, - &::proto::rpc::webrtc::v1::_Stream_default_instance_._instance, - &::proto::rpc::webrtc::v1::_Request_default_instance_._instance, - &::proto::rpc::webrtc::v1::_RequestHeaders_default_instance_._instance, - &::proto::rpc::webrtc::v1::_RequestMessage_default_instance_._instance, - &::proto::rpc::webrtc::v1::_Response_default_instance_._instance, - &::proto::rpc::webrtc::v1::_ResponseHeaders_default_instance_._instance, - &::proto::rpc::webrtc::v1::_ResponseMessage_default_instance_._instance, - &::proto::rpc::webrtc::v1::_ResponseTrailers_default_instance_._instance, - &::proto::rpc::webrtc::v1::_Strings_default_instance_._instance, - &::proto::rpc::webrtc::v1::_Metadata_MdEntry_DoNotUse_default_instance_._instance, - &::proto::rpc::webrtc::v1::_Metadata_default_instance_._instance, -}; -const char descriptor_table_protodef_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n\036proto/rpc/webrtc/v1/grpc.proto\022\023proto." - "rpc.webrtc.v1\032\036google/protobuf/duration." - "proto\032\027google/rpc/status.proto\"5\n\rPacket" - "Message\022\022\n\004data\030\001 \001(\014R\004data\022\020\n\003eom\030\002 \001(\010" - "R\003eom\"\030\n\006Stream\022\016\n\002id\030\001 \001(\004R\002id\"\351\001\n\007Requ" - "est\0223\n\006stream\030\001 \001(\0132\033.proto.rpc.webrtc.v" - "1.StreamR\006stream\022\?\n\007headers\030\002 \001(\0132#.prot" - "o.rpc.webrtc.v1.RequestHeadersH\000R\007header" - "s\022\?\n\007message\030\003 \001(\0132#.proto.rpc.webrtc.v1" - ".RequestMessageH\000R\007message\022\037\n\nrst_stream" - "\030\004 \001(\010H\000R\trstStreamB\006\n\004type\"\230\001\n\016RequestH" - "eaders\022\026\n\006method\030\001 \001(\tR\006method\0229\n\010metada" - "ta\030\002 \001(\0132\035.proto.rpc.webrtc.v1.MetadataR" - "\010metadata\0223\n\007timeout\030\003 \001(\0132\031.google.prot" - "obuf.DurationR\007timeout\"\216\001\n\016RequestMessag" - "e\022\037\n\013has_message\030\001 \001(\010R\nhasMessage\022I\n\016pa" - "cket_message\030\002 \001(\0132\".proto.rpc.webrtc.v1" - ".PacketMessageR\rpacketMessage\022\020\n\003eos\030\003 \001" - "(\010R\003eos\"\220\002\n\010Response\0223\n\006stream\030\001 \001(\0132\033.p" - "roto.rpc.webrtc.v1.StreamR\006stream\022@\n\007hea" - "ders\030\002 \001(\0132$.proto.rpc.webrtc.v1.Respons" - "eHeadersH\000R\007headers\022@\n\007message\030\003 \001(\0132$.p" - "roto.rpc.webrtc.v1.ResponseMessageH\000R\007me" - "ssage\022C\n\010trailers\030\004 \001(\0132%.proto.rpc.webr" - "tc.v1.ResponseTrailersH\000R\010trailersB\006\n\004ty" - "pe\"L\n\017ResponseHeaders\0229\n\010metadata\030\001 \001(\0132" - "\035.proto.rpc.webrtc.v1.MetadataR\010metadata" - "\"\\\n\017ResponseMessage\022I\n\016packet_message\030\001 " - "\001(\0132\".proto.rpc.webrtc.v1.PacketMessageR" - "\rpacketMessage\"y\n\020ResponseTrailers\022*\n\006st" - "atus\030\001 \001(\0132\022.google.rpc.StatusR\006status\0229" - "\n\010metadata\030\002 \001(\0132\035.proto.rpc.webrtc.v1.M" - "etadataR\010metadata\"!\n\007Strings\022\026\n\006values\030\001" - " \003(\tR\006values\"\226\001\n\010Metadata\0225\n\002md\030\001 \003(\0132%." - "proto.rpc.webrtc.v1.Metadata.MdEntryR\002md" - "\032S\n\007MdEntry\022\020\n\003key\030\001 \001(\tR\003key\0222\n\005value\030\002" - " \001(\0132\034.proto.rpc.webrtc.v1.StringsR\005valu" - "e:\0028\001B\272\001\n\027com.proto.rpc.webrtc.v1B\tGrpcP" - "rotoP\001Z%go.viam.com/utils/proto/rpc/webr" - "tc/v1\242\002\003PRW\252\002\023Proto.Rpc.Webrtc.V1\312\002\023Prot" - "o\\Rpc\\Webrtc\\V1\342\002\037Proto\\Rpc\\Webrtc\\V1\\GP" - "BMetadata\352\002\026Proto::Rpc::Webrtc::V1b\006prot" - "o3" + &::proto::rpc::webrtc::v1::_PacketMessage_default_instance_._instance, + &::proto::rpc::webrtc::v1::_Stream_default_instance_._instance, + &::proto::rpc::webrtc::v1::_Request_default_instance_._instance, + &::proto::rpc::webrtc::v1::_RequestHeaders_default_instance_._instance, + &::proto::rpc::webrtc::v1::_RequestMessage_default_instance_._instance, + &::proto::rpc::webrtc::v1::_Response_default_instance_._instance, + &::proto::rpc::webrtc::v1::_ResponseHeaders_default_instance_._instance, + &::proto::rpc::webrtc::v1::_ResponseMessage_default_instance_._instance, + &::proto::rpc::webrtc::v1::_ResponseTrailers_default_instance_._instance, + &::proto::rpc::webrtc::v1::_Strings_default_instance_._instance, + &::proto::rpc::webrtc::v1::_Metadata_MdEntry_DoNotUse_default_instance_._instance, + &::proto::rpc::webrtc::v1::_Metadata_default_instance_._instance, }; -static const ::_pbi::DescriptorTable* const descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto_deps[2] = - { - &::descriptor_table_google_2fprotobuf_2fduration_2eproto, - &::descriptor_table_google_2frpc_2fstatus_2eproto, + +const char descriptor_table_protodef_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\036proto/rpc/webrtc/v1/grpc.proto\022\023proto." + "rpc.webrtc.v1\032\036google/protobuf/duration." + "proto\032\027google/rpc/status.proto\"5\n\rPacket" + "Message\022\022\n\004data\030\001 \001(\014R\004data\022\020\n\003eom\030\002 \001(\010" + "R\003eom\"\030\n\006Stream\022\016\n\002id\030\001 \001(\004R\002id\"\351\001\n\007Requ" + "est\0223\n\006stream\030\001 \001(\0132\033.proto.rpc.webrtc.v" + "1.StreamR\006stream\022\?\n\007headers\030\002 \001(\0132#.prot" + "o.rpc.webrtc.v1.RequestHeadersH\000R\007header" + "s\022\?\n\007message\030\003 \001(\0132#.proto.rpc.webrtc.v1" + ".RequestMessageH\000R\007message\022\037\n\nrst_stream" + "\030\004 \001(\010H\000R\trstStreamB\006\n\004type\"\230\001\n\016RequestH" + "eaders\022\026\n\006method\030\001 \001(\tR\006method\0229\n\010metada" + "ta\030\002 \001(\0132\035.proto.rpc.webrtc.v1.MetadataR" + "\010metadata\0223\n\007timeout\030\003 \001(\0132\031.google.prot" + "obuf.DurationR\007timeout\"\216\001\n\016RequestMessag" + "e\022\037\n\013has_message\030\001 \001(\010R\nhasMessage\022I\n\016pa" + "cket_message\030\002 \001(\0132\".proto.rpc.webrtc.v1" + ".PacketMessageR\rpacketMessage\022\020\n\003eos\030\003 \001" + "(\010R\003eos\"\220\002\n\010Response\0223\n\006stream\030\001 \001(\0132\033.p" + "roto.rpc.webrtc.v1.StreamR\006stream\022@\n\007hea" + "ders\030\002 \001(\0132$.proto.rpc.webrtc.v1.Respons" + "eHeadersH\000R\007headers\022@\n\007message\030\003 \001(\0132$.p" + "roto.rpc.webrtc.v1.ResponseMessageH\000R\007me" + "ssage\022C\n\010trailers\030\004 \001(\0132%.proto.rpc.webr" + "tc.v1.ResponseTrailersH\000R\010trailersB\006\n\004ty" + "pe\"L\n\017ResponseHeaders\0229\n\010metadata\030\001 \001(\0132" + "\035.proto.rpc.webrtc.v1.MetadataR\010metadata" + "\"\\\n\017ResponseMessage\022I\n\016packet_message\030\001 " + "\001(\0132\".proto.rpc.webrtc.v1.PacketMessageR" + "\rpacketMessage\"y\n\020ResponseTrailers\022*\n\006st" + "atus\030\001 \001(\0132\022.google.rpc.StatusR\006status\0229" + "\n\010metadata\030\002 \001(\0132\035.proto.rpc.webrtc.v1.M" + "etadataR\010metadata\"!\n\007Strings\022\026\n\006values\030\001" + " \003(\tR\006values\"\226\001\n\010Metadata\0225\n\002md\030\001 \003(\0132%." + "proto.rpc.webrtc.v1.Metadata.MdEntryR\002md" + "\032S\n\007MdEntry\022\020\n\003key\030\001 \001(\tR\003key\0222\n\005value\030\002" + " \001(\0132\034.proto.rpc.webrtc.v1.StringsR\005valu" + "e:\0028\001B\'Z%go.viam.com/utils/proto/rpc/web" + "rtc/v1b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto_deps[2] = { + &::descriptor_table_google_2fprotobuf_2fduration_2eproto, + &::descriptor_table_google_2frpc_2fstatus_2eproto, }; -static ::absl::once_flag descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto_once; +static ::_pbi::once_flag descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto = { - false, - false, - 1682, - descriptor_table_protodef_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto, + false, false, 1534, descriptor_table_protodef_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto, "proto/rpc/webrtc/v1/grpc.proto", - &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto_once, - descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto_deps, - 2, - 12, - schemas, - file_default_instances, - TableStruct_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto::offsets, - file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto, - file_level_enum_descriptors_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto, + &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto_once, descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto_deps, 2, 12, + schemas, file_default_instances, TableStruct_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto::offsets, + file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto, file_level_enum_descriptors_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto, file_level_service_descriptors_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto_getter() { return &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto(&descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto(&descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto); namespace proto { namespace rpc { namespace webrtc { namespace v1 { + // =================================================================== class PacketMessage::_Internal { public: }; -PacketMessage::PacketMessage(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +PacketMessage::PacketMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:proto.rpc.webrtc.v1.PacketMessage) } -inline PROTOBUF_NDEBUG_INLINE PacketMessage::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : data_(arena, from.data_), - _cached_size_{0} {} - -PacketMessage::PacketMessage( - ::google::protobuf::Arena* arena, - const PacketMessage& from) - : ::google::protobuf::Message(arena) { - PacketMessage* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.eom_ = from._impl_.eom_; - +PacketMessage::PacketMessage(const PacketMessage& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + data_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + data_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_data().empty()) { + data_.Set(from._internal_data(), + GetArenaForAllocation()); + } + eom_ = from.eom_; // @@protoc_insertion_point(copy_constructor:proto.rpc.webrtc.v1.PacketMessage) } -inline PROTOBUF_NDEBUG_INLINE PacketMessage::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : data_(arena), - _cached_size_{0} {} -inline void PacketMessage::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.eom_ = {}; +inline void PacketMessage::SharedCtor() { +data_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + data_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +eom_ = false; } + PacketMessage::~PacketMessage() { // @@protoc_insertion_point(destructor:proto.rpc.webrtc.v1.PacketMessage) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void PacketMessage::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.data_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + data_.Destroy(); +} + +void PacketMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void PacketMessage::Clear() { +void PacketMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.rpc.webrtc.v1.PacketMessage) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.data_.ClearToEmpty(); - _impl_.eom_ = false; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* PacketMessage::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + data_.ClearToEmpty(); + eom_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* PacketMessage::_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) { + // bytes data = 1 [json_name = "data"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_data(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool eom = 2 [json_name = "eom"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + eom_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> PacketMessage::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_PacketMessage_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // bool eom = 2 [json_name = "eom"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(PacketMessage, _impl_.eom_)}}, - // bytes data = 1 [json_name = "data"]; - {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(PacketMessage, _impl_.data_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bytes data = 1 [json_name = "data"]; - {PROTOBUF_FIELD_OFFSET(PacketMessage, _impl_.data_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // bool eom = 2 [json_name = "eom"]; - {PROTOBUF_FIELD_OFFSET(PacketMessage, _impl_.eom_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* PacketMessage::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* PacketMessage::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.rpc.webrtc.v1.PacketMessage) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // bytes data = 1 [json_name = "data"]; if (!this->_internal_data().empty()) { - const std::string& _s = this->_internal_data(); - target = stream->WriteBytesMaybeAliased(1, _s, target); + target = stream->WriteBytesMaybeAliased( + 1, this->_internal_data(), target); } // bool eom = 2 [json_name = "eom"]; if (this->_internal_eom() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 2, this->_internal_eom(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_eom(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:proto.rpc.webrtc.v1.PacketMessage) return target; } -::size_t PacketMessage::ByteSizeLong() const { +size_t PacketMessage::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.rpc.webrtc.v1.PacketMessage) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // bytes data = 1 [json_name = "data"]; if (!this->_internal_data().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_data()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_data()); } // bool eom = 2 [json_name = "eom"]; if (this->_internal_eom() != 0) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData PacketMessage::_class_data_ = { - PacketMessage::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PacketMessage::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + PacketMessage::MergeImpl }; -const ::google::protobuf::Message::ClassData* PacketMessage::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PacketMessage::GetClassData() const { return &_class_data_; } + +void PacketMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void PacketMessage::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.webrtc.v1.PacketMessage) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void PacketMessage::MergeFrom(const PacketMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.webrtc.v1.PacketMessage) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_data().empty()) { - _this->_internal_set_data(from._internal_data()); + _internal_set_data(from._internal_data()); } if (from._internal_eom() != 0) { - _this->_internal_set_eom(from._internal_eom()); + _internal_set_eom(from._internal_eom()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void PacketMessage::CopyFrom(const PacketMessage& from) { @@ -724,170 +575,174 @@ void PacketMessage::CopyFrom(const PacketMessage& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool PacketMessage::IsInitialized() const { +bool PacketMessage::IsInitialized() const { return true; } -::_pbi::CachedSize* PacketMessage::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void PacketMessage::InternalSwap(PacketMessage* PROTOBUF_RESTRICT other) { +void PacketMessage::InternalSwap(PacketMessage* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.data_, &other->_impl_.data_, arena); - swap(_impl_.eom_, other->_impl_.eom_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &data_, lhs_arena, + &other->data_, rhs_arena + ); + swap(eom_, other->eom_); } -::google::protobuf::Metadata PacketMessage::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata PacketMessage::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto_getter, &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto_once, file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto[0]); } + // =================================================================== class Stream::_Internal { public: }; -Stream::Stream(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Stream::Stream(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:proto.rpc.webrtc.v1.Stream) } -Stream::Stream( - ::google::protobuf::Arena* arena, const Stream& from) - : Stream(arena) { - MergeFrom(from); +Stream::Stream(const Stream& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_ = from.id_; + // @@protoc_insertion_point(copy_constructor:proto.rpc.webrtc.v1.Stream) } -inline PROTOBUF_NDEBUG_INLINE Stream::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void Stream::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.id_ = {}; +inline void Stream::SharedCtor() { +id_ = uint64_t{0u}; } + Stream::~Stream() { // @@protoc_insertion_point(destructor:proto.rpc.webrtc.v1.Stream) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Stream::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void Stream::Clear() { +void Stream::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void Stream::Clear() { // @@protoc_insertion_point(message_clear_start:proto.rpc.webrtc.v1.Stream) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.id_ = ::uint64_t{0u}; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Stream::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + id_ = uint64_t{0u}; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Stream::_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) { + // uint64 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> Stream::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_Stream_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // uint64 id = 1 [json_name = "id"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(Stream, _impl_.id_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(Stream, _impl_.id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // uint64 id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(Stream, _impl_.id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* Stream::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Stream::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.rpc.webrtc.v1.Stream) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // uint64 id = 1 [json_name = "id"]; if (this->_internal_id() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 1, this->_internal_id(), target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:proto.rpc.webrtc.v1.Stream) return target; } -::size_t Stream::ByteSizeLong() const { +size_t Stream::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.rpc.webrtc.v1.Stream) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // uint64 id = 1 [json_name = "id"]; if (this->_internal_id() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_id()); + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Stream::_class_data_ = { - Stream::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Stream::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Stream::MergeImpl }; -const ::google::protobuf::Message::ClassData* Stream::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Stream::GetClassData() const { return &_class_data_; } + +void Stream::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Stream::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.webrtc.v1.Stream) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Stream::MergeFrom(const Stream& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.webrtc.v1.Stream) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_id() != 0) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Stream::CopyFrom(const Stream& from) { @@ -897,156 +752,146 @@ void Stream::CopyFrom(const Stream& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Stream::IsInitialized() const { +bool Stream::IsInitialized() const { return true; } -::_pbi::CachedSize* Stream::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Stream::InternalSwap(Stream* PROTOBUF_RESTRICT other) { +void Stream::InternalSwap(Stream* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.id_, other->_impl_.id_); + swap(id_, other->id_); } -::google::protobuf::Metadata Stream::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Stream::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto_getter, &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto_once, file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto[1]); } + // =================================================================== class Request::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Request, _impl_._has_bits_); - static constexpr ::int32_t kOneofCaseOffset = - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::Request, _impl_._oneof_case_); static const ::proto::rpc::webrtc::v1::Stream& stream(const Request* msg); - static void set_has_stream(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } static const ::proto::rpc::webrtc::v1::RequestHeaders& headers(const Request* msg); static const ::proto::rpc::webrtc::v1::RequestMessage& message(const Request* msg); }; -const ::proto::rpc::webrtc::v1::Stream& Request::_Internal::stream(const Request* msg) { - return *msg->_impl_.stream_; +const ::proto::rpc::webrtc::v1::Stream& +Request::_Internal::stream(const Request* msg) { + return *msg->stream_; } -const ::proto::rpc::webrtc::v1::RequestHeaders& Request::_Internal::headers(const Request* msg) { - return *msg->_impl_.type_.headers_; +const ::proto::rpc::webrtc::v1::RequestHeaders& +Request::_Internal::headers(const Request* msg) { + return *msg->type_.headers_; } -const ::proto::rpc::webrtc::v1::RequestMessage& Request::_Internal::message(const Request* msg) { - return *msg->_impl_.type_.message_; +const ::proto::rpc::webrtc::v1::RequestMessage& +Request::_Internal::message(const Request* msg) { + return *msg->type_.message_; } void Request::set_allocated_headers(::proto::rpc::webrtc::v1::RequestHeaders* headers) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_type(); if (headers) { - ::google::protobuf::Arena* submessage_arena = headers->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(headers); if (message_arena != submessage_arena) { - headers = ::google::protobuf::internal::GetOwnedMessage(message_arena, headers, submessage_arena); + headers = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, headers, submessage_arena); } set_has_headers(); - _impl_.type_.headers_ = headers; + type_.headers_ = headers; } // @@protoc_insertion_point(field_set_allocated:proto.rpc.webrtc.v1.Request.headers) } void Request::set_allocated_message(::proto::rpc::webrtc::v1::RequestMessage* message) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_type(); if (message) { - ::google::protobuf::Arena* submessage_arena = message->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(message); if (message_arena != submessage_arena) { - message = ::google::protobuf::internal::GetOwnedMessage(message_arena, message, submessage_arena); + message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, message, submessage_arena); } set_has_message(); - _impl_.type_.message_ = message; + type_.message_ = message; } // @@protoc_insertion_point(field_set_allocated:proto.rpc.webrtc.v1.Request.message) } -Request::Request(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Request::Request(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:proto.rpc.webrtc.v1.Request) } -inline PROTOBUF_NDEBUG_INLINE Request::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - type_{}, - _oneof_case_{from._oneof_case_[0]} {} - -Request::Request( - ::google::protobuf::Arena* arena, - const Request& from) - : ::google::protobuf::Message(arena) { - Request* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.stream_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::proto::rpc::webrtc::v1::Stream>(arena, *from._impl_.stream_) - : nullptr; - switch (type_case()) { - case TYPE_NOT_SET: +Request::Request(const Request& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_stream()) { + stream_ = new ::proto::rpc::webrtc::v1::Stream(*from.stream_); + } else { + stream_ = nullptr; + } + clear_has_type(); + switch (from.type_case()) { + case kHeaders: { + _internal_mutable_headers()->::proto::rpc::webrtc::v1::RequestHeaders::MergeFrom(from._internal_headers()); + break; + } + case kMessage: { + _internal_mutable_message()->::proto::rpc::webrtc::v1::RequestMessage::MergeFrom(from._internal_message()); + break; + } + case kRstStream: { + _internal_set_rst_stream(from._internal_rst_stream()); break; - case kHeaders: - _impl_.type_.headers_ = CreateMaybeMessage<::proto::rpc::webrtc::v1::RequestHeaders>(arena, *from._impl_.type_.headers_); - break; - case kMessage: - _impl_.type_.message_ = CreateMaybeMessage<::proto::rpc::webrtc::v1::RequestMessage>(arena, *from._impl_.type_.message_); - break; - case kRstStream: - _impl_.type_.rst_stream_ = from._impl_.type_.rst_stream_; - break; + } + case TYPE_NOT_SET: { + break; + } } - // @@protoc_insertion_point(copy_constructor:proto.rpc.webrtc.v1.Request) } -inline PROTOBUF_NDEBUG_INLINE Request::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - type_{}, - _oneof_case_{} {} -inline void Request::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.stream_ = {}; +inline void Request::SharedCtor() { +stream_ = nullptr; +clear_has_type(); } + Request::~Request() { // @@protoc_insertion_point(destructor:proto.rpc.webrtc.v1.Request) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Request::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.stream_; + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete stream_; if (has_type()) { clear_type(); } - _impl_.~Impl_(); +} + +void Request::SetCachedSize(int size) const { + _cached_size_.Set(size); } void Request::clear_type() { // @@protoc_insertion_point(one_of_clear_start:proto.rpc.webrtc.v1.Request) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); switch (type_case()) { case kHeaders: { - if (GetArena() == nullptr) { - delete _impl_.type_.headers_; + if (GetArenaForAllocation() == nullptr) { + delete type_.headers_; } break; } case kMessage: { - if (GetArena() == nullptr) { - delete _impl_.type_.message_; + if (GetArenaForAllocation() == nullptr) { + delete type_.message_; } break; } @@ -1058,201 +903,208 @@ void Request::clear_type() { break; } } - _impl_._oneof_case_[0] = TYPE_NOT_SET; + _oneof_case_[0] = TYPE_NOT_SET; } -PROTOBUF_NOINLINE void Request::Clear() { +void Request::Clear() { // @@protoc_insertion_point(message_clear_start:proto.rpc.webrtc.v1.Request) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.stream_ != nullptr); - _impl_.stream_->Clear(); + if (GetArenaForAllocation() == nullptr && stream_ != nullptr) { + delete stream_; } + stream_ = nullptr; clear_type(); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Request::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Request::_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) { + // .proto.rpc.webrtc.v1.Stream stream = 1 [json_name = "stream"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_stream(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .proto.rpc.webrtc.v1.RequestHeaders headers = 2 [json_name = "headers"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_headers(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .proto.rpc.webrtc.v1.RequestMessage message = 3 [json_name = "message"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_message(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool rst_stream = 4 [json_name = "rstStream"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + _internal_set_rst_stream(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 4, 3, 0, 2> Request::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Request, _impl_._has_bits_), - 0, // no _extensions_ - 4, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 3, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Request_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .proto.rpc.webrtc.v1.Stream stream = 1 [json_name = "stream"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(Request, _impl_.stream_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .proto.rpc.webrtc.v1.Stream stream = 1 [json_name = "stream"]; - {PROTOBUF_FIELD_OFFSET(Request, _impl_.stream_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .proto.rpc.webrtc.v1.RequestHeaders headers = 2 [json_name = "headers"]; - {PROTOBUF_FIELD_OFFSET(Request, _impl_.type_.headers_), _Internal::kOneofCaseOffset + 0, 1, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .proto.rpc.webrtc.v1.RequestMessage message = 3 [json_name = "message"]; - {PROTOBUF_FIELD_OFFSET(Request, _impl_.type_.message_), _Internal::kOneofCaseOffset + 0, 2, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // bool rst_stream = 4 [json_name = "rstStream"]; - {PROTOBUF_FIELD_OFFSET(Request, _impl_.type_.rst_stream_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kBool)}, - }}, {{ - {::_pbi::TcParser::GetTable<::proto::rpc::webrtc::v1::Stream>()}, - {::_pbi::TcParser::GetTable<::proto::rpc::webrtc::v1::RequestHeaders>()}, - {::_pbi::TcParser::GetTable<::proto::rpc::webrtc::v1::RequestMessage>()}, - }}, {{ - }}, -}; - -::uint8_t* Request::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Request::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.rpc.webrtc.v1.Request) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .proto.rpc.webrtc.v1.Stream stream = 1 [json_name = "stream"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::stream(this), + if (this->_internal_has_stream()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::stream(this), _Internal::stream(this).GetCachedSize(), target, stream); } - switch (type_case()) { - case kHeaders: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::headers(this), - _Internal::headers(this).GetCachedSize(), target, stream); - break; - } - case kMessage: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::message(this), - _Internal::message(this).GetCachedSize(), target, stream); - break; - } - case kRstStream: { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 4, this->_internal_rst_stream(), target); - break; - } - default: - break; + // .proto.rpc.webrtc.v1.RequestHeaders headers = 2 [json_name = "headers"]; + if (_internal_has_headers()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::headers(this), + _Internal::headers(this).GetCachedSize(), target, stream); } + + // .proto.rpc.webrtc.v1.RequestMessage message = 3 [json_name = "message"]; + if (_internal_has_message()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::message(this), + _Internal::message(this).GetCachedSize(), target, stream); + } + + // bool rst_stream = 4 [json_name = "rstStream"]; + if (_internal_has_rst_stream()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(4, this->_internal_rst_stream(), target); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:proto.rpc.webrtc.v1.Request) return target; } -::size_t Request::ByteSizeLong() const { +size_t Request::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.rpc.webrtc.v1.Request) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .proto.rpc.webrtc.v1.Stream stream = 1 [json_name = "stream"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.stream_); + if (this->_internal_has_stream()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *stream_); } switch (type_case()) { // .proto.rpc.webrtc.v1.RequestHeaders headers = 2 [json_name = "headers"]; case kHeaders: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.type_.headers_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *type_.headers_); break; } // .proto.rpc.webrtc.v1.RequestMessage message = 3 [json_name = "message"]; case kMessage: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.type_.message_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *type_.message_); break; } // bool rst_stream = 4 [json_name = "rstStream"]; case kRstStream: { - total_size += 2; + total_size += 1 + 1; break; } case TYPE_NOT_SET: { break; } } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Request::_class_data_ = { - Request::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Request::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Request::MergeImpl }; -const ::google::protobuf::Message::ClassData* Request::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Request::GetClassData() const { return &_class_data_; } + +void Request::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Request::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.webrtc.v1.Request) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Request::MergeFrom(const Request& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.webrtc.v1.Request) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_stream()->::proto::rpc::webrtc::v1::Stream::MergeFrom( - from._internal_stream()); + if (from._internal_has_stream()) { + _internal_mutable_stream()->::proto::rpc::webrtc::v1::Stream::MergeFrom(from._internal_stream()); } switch (from.type_case()) { case kHeaders: { - _this->_internal_mutable_headers()->::proto::rpc::webrtc::v1::RequestHeaders::MergeFrom( - from._internal_headers()); + _internal_mutable_headers()->::proto::rpc::webrtc::v1::RequestHeaders::MergeFrom(from._internal_headers()); break; } case kMessage: { - _this->_internal_mutable_message()->::proto::rpc::webrtc::v1::RequestMessage::MergeFrom( - from._internal_message()); + _internal_mutable_message()->::proto::rpc::webrtc::v1::RequestMessage::MergeFrom(from._internal_message()); break; } case kRstStream: { - _this->_internal_set_rst_stream(from._internal_rst_stream()); + _internal_set_rst_stream(from._internal_rst_stream()); break; } case TYPE_NOT_SET: { break; } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Request::CopyFrom(const Request& from) { @@ -1262,293 +1114,279 @@ void Request::CopyFrom(const Request& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Request::IsInitialized() const { +bool Request::IsInitialized() const { return true; } -::_pbi::CachedSize* Request::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Request::InternalSwap(Request* PROTOBUF_RESTRICT other) { +void Request::InternalSwap(Request* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.stream_, other->_impl_.stream_); - swap(_impl_.type_, other->_impl_.type_); - swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); + swap(stream_, other->stream_); + swap(type_, other->type_); + swap(_oneof_case_[0], other->_oneof_case_[0]); } -::google::protobuf::Metadata Request::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Request::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto_getter, &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto_once, file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto[2]); } + // =================================================================== class RequestHeaders::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(RequestHeaders, _impl_._has_bits_); static const ::proto::rpc::webrtc::v1::Metadata& metadata(const RequestHeaders* msg); - static void set_has_metadata(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::google::protobuf::Duration& timeout(const RequestHeaders* msg); - static void set_has_timeout(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + static const ::PROTOBUF_NAMESPACE_ID::Duration& timeout(const RequestHeaders* msg); }; -const ::proto::rpc::webrtc::v1::Metadata& RequestHeaders::_Internal::metadata(const RequestHeaders* msg) { - return *msg->_impl_.metadata_; +const ::proto::rpc::webrtc::v1::Metadata& +RequestHeaders::_Internal::metadata(const RequestHeaders* msg) { + return *msg->metadata_; } -const ::google::protobuf::Duration& RequestHeaders::_Internal::timeout(const RequestHeaders* msg) { - return *msg->_impl_.timeout_; +const ::PROTOBUF_NAMESPACE_ID::Duration& +RequestHeaders::_Internal::timeout(const RequestHeaders* msg) { + return *msg->timeout_; } void RequestHeaders::clear_timeout() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.timeout_ != nullptr) _impl_.timeout_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && timeout_ != nullptr) { + delete timeout_; + } + timeout_ = nullptr; } -RequestHeaders::RequestHeaders(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +RequestHeaders::RequestHeaders(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:proto.rpc.webrtc.v1.RequestHeaders) } -inline PROTOBUF_NDEBUG_INLINE RequestHeaders::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - method_(arena, from.method_) {} - -RequestHeaders::RequestHeaders( - ::google::protobuf::Arena* arena, - const RequestHeaders& from) - : ::google::protobuf::Message(arena) { - RequestHeaders* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.metadata_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::proto::rpc::webrtc::v1::Metadata>(arena, *from._impl_.metadata_) - : nullptr; - _impl_.timeout_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::google::protobuf::Duration>(arena, *from._impl_.timeout_) - : nullptr; - +RequestHeaders::RequestHeaders(const RequestHeaders& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + method_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + method_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_method().empty()) { + method_.Set(from._internal_method(), + GetArenaForAllocation()); + } + if (from._internal_has_metadata()) { + metadata_ = new ::proto::rpc::webrtc::v1::Metadata(*from.metadata_); + } else { + metadata_ = nullptr; + } + if (from._internal_has_timeout()) { + timeout_ = new ::PROTOBUF_NAMESPACE_ID::Duration(*from.timeout_); + } else { + timeout_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:proto.rpc.webrtc.v1.RequestHeaders) } -inline PROTOBUF_NDEBUG_INLINE RequestHeaders::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - method_(arena) {} - -inline void RequestHeaders::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, metadata_), - 0, - offsetof(Impl_, timeout_) - - offsetof(Impl_, metadata_) + - sizeof(Impl_::timeout_)); + +inline void RequestHeaders::SharedCtor() { +method_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + method_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&metadata_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&timeout_) - + reinterpret_cast(&metadata_)) + sizeof(timeout_)); } + RequestHeaders::~RequestHeaders() { // @@protoc_insertion_point(destructor:proto.rpc.webrtc.v1.RequestHeaders) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void RequestHeaders::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.method_.Destroy(); - delete _impl_.metadata_; - delete _impl_.timeout_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + method_.Destroy(); + if (this != internal_default_instance()) delete metadata_; + if (this != internal_default_instance()) delete timeout_; +} + +void RequestHeaders::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void RequestHeaders::Clear() { +void RequestHeaders::Clear() { // @@protoc_insertion_point(message_clear_start:proto.rpc.webrtc.v1.RequestHeaders) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.method_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.metadata_ != nullptr); - _impl_.metadata_->Clear(); + method_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && metadata_ != nullptr) { + delete metadata_; + } + metadata_ = nullptr; + if (GetArenaForAllocation() == nullptr && timeout_ != nullptr) { + delete timeout_; + } + timeout_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RequestHeaders::_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 method = 1 [json_name = "method"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_method(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "proto.rpc.webrtc.v1.RequestHeaders.method")); + } else + goto handle_unusual; + continue; + // .proto.rpc.webrtc.v1.Metadata metadata = 2 [json_name = "metadata"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_metadata(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Duration timeout = 3 [json_name = "timeout"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_timeout(), 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; } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.timeout_ != nullptr); - _impl_.timeout_->Clear(); - } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* RequestHeaders::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 2, 49, 2> RequestHeaders::_table_ = { - { - PROTOBUF_FIELD_OFFSET(RequestHeaders, _impl_._has_bits_), - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_RequestHeaders_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string method = 1 [json_name = "method"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(RequestHeaders, _impl_.method_)}}, - // .proto.rpc.webrtc.v1.Metadata metadata = 2 [json_name = "metadata"]; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(RequestHeaders, _impl_.metadata_)}}, - // .google.protobuf.Duration timeout = 3 [json_name = "timeout"]; - {::_pbi::TcParser::FastMtS1, - {26, 1, 1, PROTOBUF_FIELD_OFFSET(RequestHeaders, _impl_.timeout_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string method = 1 [json_name = "method"]; - {PROTOBUF_FIELD_OFFSET(RequestHeaders, _impl_.method_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .proto.rpc.webrtc.v1.Metadata metadata = 2 [json_name = "metadata"]; - {PROTOBUF_FIELD_OFFSET(RequestHeaders, _impl_.metadata_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.protobuf.Duration timeout = 3 [json_name = "timeout"]; - {PROTOBUF_FIELD_OFFSET(RequestHeaders, _impl_.timeout_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::proto::rpc::webrtc::v1::Metadata>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Duration>()}, - }}, {{ - "\42\6\0\0\0\0\0\0" - "proto.rpc.webrtc.v1.RequestHeaders" - "method" - }}, -}; - -::uint8_t* RequestHeaders::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* RequestHeaders::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.rpc.webrtc.v1.RequestHeaders) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string method = 1 [json_name = "method"]; if (!this->_internal_method().empty()) { - const std::string& _s = this->_internal_method(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "proto.rpc.webrtc.v1.RequestHeaders.method"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_method().data(), static_cast(this->_internal_method().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "proto.rpc.webrtc.v1.RequestHeaders.method"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_method(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .proto.rpc.webrtc.v1.Metadata metadata = 2 [json_name = "metadata"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::metadata(this), + if (this->_internal_has_metadata()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::metadata(this), _Internal::metadata(this).GetCachedSize(), target, stream); } // .google.protobuf.Duration timeout = 3 [json_name = "timeout"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::timeout(this), + if (this->_internal_has_timeout()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::timeout(this), _Internal::timeout(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:proto.rpc.webrtc.v1.RequestHeaders) return target; } -::size_t RequestHeaders::ByteSizeLong() const { +size_t RequestHeaders::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.rpc.webrtc.v1.RequestHeaders) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string method = 1 [json_name = "method"]; if (!this->_internal_method().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_method()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_method()); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // .proto.rpc.webrtc.v1.Metadata metadata = 2 [json_name = "metadata"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.metadata_); - } - - // .google.protobuf.Duration timeout = 3 [json_name = "timeout"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.timeout_); - } + // .proto.rpc.webrtc.v1.Metadata metadata = 2 [json_name = "metadata"]; + if (this->_internal_has_metadata()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *metadata_); + } + // .google.protobuf.Duration timeout = 3 [json_name = "timeout"]; + if (this->_internal_has_timeout()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *timeout_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData RequestHeaders::_class_data_ = { - RequestHeaders::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RequestHeaders::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + RequestHeaders::MergeImpl }; -const ::google::protobuf::Message::ClassData* RequestHeaders::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RequestHeaders::GetClassData() const { return &_class_data_; } + +void RequestHeaders::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void RequestHeaders::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.webrtc.v1.RequestHeaders) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void RequestHeaders::MergeFrom(const RequestHeaders& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.webrtc.v1.RequestHeaders) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_method().empty()) { - _this->_internal_set_method(from._internal_method()); + _internal_set_method(from._internal_method()); } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_metadata()->::proto::rpc::webrtc::v1::Metadata::MergeFrom( - from._internal_metadata()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_timeout()->::google::protobuf::Duration::MergeFrom( - from._internal_timeout()); - } + if (from._internal_has_metadata()) { + _internal_mutable_metadata()->::proto::rpc::webrtc::v1::Metadata::MergeFrom(from._internal_metadata()); + } + if (from._internal_has_timeout()) { + _internal_mutable_timeout()->::PROTOBUF_NAMESPACE_ID::Duration::MergeFrom(from._internal_timeout()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void RequestHeaders::CopyFrom(const RequestHeaders& from) { @@ -1558,270 +1396,248 @@ void RequestHeaders::CopyFrom(const RequestHeaders& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool RequestHeaders::IsInitialized() const { +bool RequestHeaders::IsInitialized() const { return true; } -::_pbi::CachedSize* RequestHeaders::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void RequestHeaders::InternalSwap(RequestHeaders* PROTOBUF_RESTRICT other) { +void RequestHeaders::InternalSwap(RequestHeaders* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.method_, &other->_impl_.method_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(RequestHeaders, _impl_.timeout_) - + sizeof(RequestHeaders::_impl_.timeout_) - - PROTOBUF_FIELD_OFFSET(RequestHeaders, _impl_.metadata_)>( - reinterpret_cast(&_impl_.metadata_), - reinterpret_cast(&other->_impl_.metadata_)); -} - -::google::protobuf::Metadata RequestHeaders::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &method_, lhs_arena, + &other->method_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(RequestHeaders, timeout_) + + sizeof(RequestHeaders::timeout_) + - PROTOBUF_FIELD_OFFSET(RequestHeaders, metadata_)>( + reinterpret_cast(&metadata_), + reinterpret_cast(&other->metadata_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata RequestHeaders::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto_getter, &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto_once, file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto[3]); } + // =================================================================== class RequestMessage::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(RequestMessage, _impl_._has_bits_); static const ::proto::rpc::webrtc::v1::PacketMessage& packet_message(const RequestMessage* msg); - static void set_has_packet_message(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::proto::rpc::webrtc::v1::PacketMessage& RequestMessage::_Internal::packet_message(const RequestMessage* msg) { - return *msg->_impl_.packet_message_; +const ::proto::rpc::webrtc::v1::PacketMessage& +RequestMessage::_Internal::packet_message(const RequestMessage* msg) { + return *msg->packet_message_; } -RequestMessage::RequestMessage(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +RequestMessage::RequestMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:proto.rpc.webrtc.v1.RequestMessage) } -inline PROTOBUF_NDEBUG_INLINE RequestMessage::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -RequestMessage::RequestMessage( - ::google::protobuf::Arena* arena, - const RequestMessage& from) - : ::google::protobuf::Message(arena) { - RequestMessage* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.packet_message_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::proto::rpc::webrtc::v1::PacketMessage>(arena, *from._impl_.packet_message_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, has_message_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, has_message_), - offsetof(Impl_, eos_) - - offsetof(Impl_, has_message_) + - sizeof(Impl_::eos_)); - +RequestMessage::RequestMessage(const RequestMessage& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_packet_message()) { + packet_message_ = new ::proto::rpc::webrtc::v1::PacketMessage(*from.packet_message_); + } else { + packet_message_ = nullptr; + } + ::memcpy(&has_message_, &from.has_message_, + static_cast(reinterpret_cast(&eos_) - + reinterpret_cast(&has_message_)) + sizeof(eos_)); // @@protoc_insertion_point(copy_constructor:proto.rpc.webrtc.v1.RequestMessage) } -inline PROTOBUF_NDEBUG_INLINE RequestMessage::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void RequestMessage::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, packet_message_), - 0, - offsetof(Impl_, eos_) - - offsetof(Impl_, packet_message_) + - sizeof(Impl_::eos_)); +inline void RequestMessage::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&packet_message_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&eos_) - + reinterpret_cast(&packet_message_)) + sizeof(eos_)); } + RequestMessage::~RequestMessage() { // @@protoc_insertion_point(destructor:proto.rpc.webrtc.v1.RequestMessage) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void RequestMessage::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.packet_message_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete packet_message_; } -PROTOBUF_NOINLINE void RequestMessage::Clear() { +void RequestMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void RequestMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.rpc.webrtc.v1.RequestMessage) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.packet_message_ != nullptr); - _impl_.packet_message_->Clear(); - } - ::memset(&_impl_.has_message_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.eos_) - - reinterpret_cast(&_impl_.has_message_)) + sizeof(_impl_.eos_)); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* RequestMessage::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + if (GetArenaForAllocation() == nullptr && packet_message_ != nullptr) { + delete packet_message_; + } + packet_message_ = nullptr; + ::memset(&has_message_, 0, static_cast( + reinterpret_cast(&eos_) - + reinterpret_cast(&has_message_)) + sizeof(eos_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RequestMessage::_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) { + // bool has_message = 1 [json_name = "hasMessage"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + has_message_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .proto.rpc.webrtc.v1.PacketMessage packet_message = 2 [json_name = "packetMessage"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_packet_message(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool eos = 3 [json_name = "eos"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + eos_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 1, 0, 2> RequestMessage::_table_ = { - { - PROTOBUF_FIELD_OFFSET(RequestMessage, _impl_._has_bits_), - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_RequestMessage_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // bool has_message = 1 [json_name = "hasMessage"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(RequestMessage, _impl_.has_message_)}}, - // .proto.rpc.webrtc.v1.PacketMessage packet_message = 2 [json_name = "packetMessage"]; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(RequestMessage, _impl_.packet_message_)}}, - // bool eos = 3 [json_name = "eos"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(RequestMessage, _impl_.eos_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bool has_message = 1 [json_name = "hasMessage"]; - {PROTOBUF_FIELD_OFFSET(RequestMessage, _impl_.has_message_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // .proto.rpc.webrtc.v1.PacketMessage packet_message = 2 [json_name = "packetMessage"]; - {PROTOBUF_FIELD_OFFSET(RequestMessage, _impl_.packet_message_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // bool eos = 3 [json_name = "eos"]; - {PROTOBUF_FIELD_OFFSET(RequestMessage, _impl_.eos_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, {{ - {::_pbi::TcParser::GetTable<::proto::rpc::webrtc::v1::PacketMessage>()}, - }}, {{ - }}, -}; - -::uint8_t* RequestMessage::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* RequestMessage::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.rpc.webrtc.v1.RequestMessage) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // bool has_message = 1 [json_name = "hasMessage"]; if (this->_internal_has_message() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 1, this->_internal_has_message(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_has_message(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .proto.rpc.webrtc.v1.PacketMessage packet_message = 2 [json_name = "packetMessage"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::packet_message(this), + if (this->_internal_has_packet_message()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::packet_message(this), _Internal::packet_message(this).GetCachedSize(), target, stream); } // bool eos = 3 [json_name = "eos"]; if (this->_internal_eos() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 3, this->_internal_eos(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_eos(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:proto.rpc.webrtc.v1.RequestMessage) return target; } -::size_t RequestMessage::ByteSizeLong() const { +size_t RequestMessage::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.rpc.webrtc.v1.RequestMessage) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .proto.rpc.webrtc.v1.PacketMessage packet_message = 2 [json_name = "packetMessage"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.packet_message_); + if (this->_internal_has_packet_message()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *packet_message_); } // bool has_message = 1 [json_name = "hasMessage"]; if (this->_internal_has_message() != 0) { - total_size += 2; + total_size += 1 + 1; } // bool eos = 3 [json_name = "eos"]; if (this->_internal_eos() != 0) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData RequestMessage::_class_data_ = { - RequestMessage::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RequestMessage::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + RequestMessage::MergeImpl }; -const ::google::protobuf::Message::ClassData* RequestMessage::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RequestMessage::GetClassData() const { return &_class_data_; } + +void RequestMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void RequestMessage::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.webrtc.v1.RequestMessage) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void RequestMessage::MergeFrom(const RequestMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.webrtc.v1.RequestMessage) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_packet_message()->::proto::rpc::webrtc::v1::PacketMessage::MergeFrom( - from._internal_packet_message()); + if (from._internal_has_packet_message()) { + _internal_mutable_packet_message()->::proto::rpc::webrtc::v1::PacketMessage::MergeFrom(from._internal_packet_message()); } if (from._internal_has_message() != 0) { - _this->_internal_set_has_message(from._internal_has_message()); + _internal_set_has_message(from._internal_has_message()); } if (from._internal_eos() != 0) { - _this->_internal_set_eos(from._internal_eos()); + _internal_set_eos(from._internal_eos()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void RequestMessage::CopyFrom(const RequestMessage& from) { @@ -1831,185 +1647,177 @@ void RequestMessage::CopyFrom(const RequestMessage& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool RequestMessage::IsInitialized() const { +bool RequestMessage::IsInitialized() const { return true; } -::_pbi::CachedSize* RequestMessage::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void RequestMessage::InternalSwap(RequestMessage* PROTOBUF_RESTRICT other) { +void RequestMessage::InternalSwap(RequestMessage* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(RequestMessage, _impl_.eos_) - + sizeof(RequestMessage::_impl_.eos_) - - PROTOBUF_FIELD_OFFSET(RequestMessage, _impl_.packet_message_)>( - reinterpret_cast(&_impl_.packet_message_), - reinterpret_cast(&other->_impl_.packet_message_)); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(RequestMessage, eos_) + + sizeof(RequestMessage::eos_) + - PROTOBUF_FIELD_OFFSET(RequestMessage, packet_message_)>( + reinterpret_cast(&packet_message_), + reinterpret_cast(&other->packet_message_)); } -::google::protobuf::Metadata RequestMessage::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata RequestMessage::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto_getter, &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto_once, file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto[4]); } + // =================================================================== class Response::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Response, _impl_._has_bits_); - static constexpr ::int32_t kOneofCaseOffset = - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::Response, _impl_._oneof_case_); static const ::proto::rpc::webrtc::v1::Stream& stream(const Response* msg); - static void set_has_stream(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } static const ::proto::rpc::webrtc::v1::ResponseHeaders& headers(const Response* msg); static const ::proto::rpc::webrtc::v1::ResponseMessage& message(const Response* msg); static const ::proto::rpc::webrtc::v1::ResponseTrailers& trailers(const Response* msg); }; -const ::proto::rpc::webrtc::v1::Stream& Response::_Internal::stream(const Response* msg) { - return *msg->_impl_.stream_; +const ::proto::rpc::webrtc::v1::Stream& +Response::_Internal::stream(const Response* msg) { + return *msg->stream_; } -const ::proto::rpc::webrtc::v1::ResponseHeaders& Response::_Internal::headers(const Response* msg) { - return *msg->_impl_.type_.headers_; +const ::proto::rpc::webrtc::v1::ResponseHeaders& +Response::_Internal::headers(const Response* msg) { + return *msg->type_.headers_; } -const ::proto::rpc::webrtc::v1::ResponseMessage& Response::_Internal::message(const Response* msg) { - return *msg->_impl_.type_.message_; +const ::proto::rpc::webrtc::v1::ResponseMessage& +Response::_Internal::message(const Response* msg) { + return *msg->type_.message_; } -const ::proto::rpc::webrtc::v1::ResponseTrailers& Response::_Internal::trailers(const Response* msg) { - return *msg->_impl_.type_.trailers_; +const ::proto::rpc::webrtc::v1::ResponseTrailers& +Response::_Internal::trailers(const Response* msg) { + return *msg->type_.trailers_; } void Response::set_allocated_headers(::proto::rpc::webrtc::v1::ResponseHeaders* headers) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_type(); if (headers) { - ::google::protobuf::Arena* submessage_arena = headers->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(headers); if (message_arena != submessage_arena) { - headers = ::google::protobuf::internal::GetOwnedMessage(message_arena, headers, submessage_arena); + headers = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, headers, submessage_arena); } set_has_headers(); - _impl_.type_.headers_ = headers; + type_.headers_ = headers; } // @@protoc_insertion_point(field_set_allocated:proto.rpc.webrtc.v1.Response.headers) } void Response::set_allocated_message(::proto::rpc::webrtc::v1::ResponseMessage* message) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_type(); if (message) { - ::google::protobuf::Arena* submessage_arena = message->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(message); if (message_arena != submessage_arena) { - message = ::google::protobuf::internal::GetOwnedMessage(message_arena, message, submessage_arena); + message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, message, submessage_arena); } set_has_message(); - _impl_.type_.message_ = message; + type_.message_ = message; } // @@protoc_insertion_point(field_set_allocated:proto.rpc.webrtc.v1.Response.message) } void Response::set_allocated_trailers(::proto::rpc::webrtc::v1::ResponseTrailers* trailers) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_type(); if (trailers) { - ::google::protobuf::Arena* submessage_arena = trailers->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(trailers); if (message_arena != submessage_arena) { - trailers = ::google::protobuf::internal::GetOwnedMessage(message_arena, trailers, submessage_arena); + trailers = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, trailers, submessage_arena); } set_has_trailers(); - _impl_.type_.trailers_ = trailers; + type_.trailers_ = trailers; } // @@protoc_insertion_point(field_set_allocated:proto.rpc.webrtc.v1.Response.trailers) } -Response::Response(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Response::Response(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:proto.rpc.webrtc.v1.Response) } -inline PROTOBUF_NDEBUG_INLINE Response::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - type_{}, - _oneof_case_{from._oneof_case_[0]} {} - -Response::Response( - ::google::protobuf::Arena* arena, - const Response& from) - : ::google::protobuf::Message(arena) { - Response* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.stream_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::proto::rpc::webrtc::v1::Stream>(arena, *from._impl_.stream_) - : nullptr; - switch (type_case()) { - case TYPE_NOT_SET: +Response::Response(const Response& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_stream()) { + stream_ = new ::proto::rpc::webrtc::v1::Stream(*from.stream_); + } else { + stream_ = nullptr; + } + clear_has_type(); + switch (from.type_case()) { + case kHeaders: { + _internal_mutable_headers()->::proto::rpc::webrtc::v1::ResponseHeaders::MergeFrom(from._internal_headers()); + break; + } + case kMessage: { + _internal_mutable_message()->::proto::rpc::webrtc::v1::ResponseMessage::MergeFrom(from._internal_message()); break; - case kHeaders: - _impl_.type_.headers_ = CreateMaybeMessage<::proto::rpc::webrtc::v1::ResponseHeaders>(arena, *from._impl_.type_.headers_); - break; - case kMessage: - _impl_.type_.message_ = CreateMaybeMessage<::proto::rpc::webrtc::v1::ResponseMessage>(arena, *from._impl_.type_.message_); - break; - case kTrailers: - _impl_.type_.trailers_ = CreateMaybeMessage<::proto::rpc::webrtc::v1::ResponseTrailers>(arena, *from._impl_.type_.trailers_); - break; + } + case kTrailers: { + _internal_mutable_trailers()->::proto::rpc::webrtc::v1::ResponseTrailers::MergeFrom(from._internal_trailers()); + break; + } + case TYPE_NOT_SET: { + break; + } } - // @@protoc_insertion_point(copy_constructor:proto.rpc.webrtc.v1.Response) } -inline PROTOBUF_NDEBUG_INLINE Response::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - type_{}, - _oneof_case_{} {} -inline void Response::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.stream_ = {}; +inline void Response::SharedCtor() { +stream_ = nullptr; +clear_has_type(); } + Response::~Response() { // @@protoc_insertion_point(destructor:proto.rpc.webrtc.v1.Response) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Response::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.stream_; + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete stream_; if (has_type()) { clear_type(); } - _impl_.~Impl_(); +} + +void Response::SetCachedSize(int size) const { + _cached_size_.Set(size); } void Response::clear_type() { // @@protoc_insertion_point(one_of_clear_start:proto.rpc.webrtc.v1.Response) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); switch (type_case()) { case kHeaders: { - if (GetArena() == nullptr) { - delete _impl_.type_.headers_; + if (GetArenaForAllocation() == nullptr) { + delete type_.headers_; } break; } case kMessage: { - if (GetArena() == nullptr) { - delete _impl_.type_.message_; + if (GetArenaForAllocation() == nullptr) { + delete type_.message_; } break; } case kTrailers: { - if (GetArena() == nullptr) { - delete _impl_.type_.trailers_; + if (GetArenaForAllocation() == nullptr) { + delete type_.trailers_; } break; } @@ -2017,204 +1825,211 @@ void Response::clear_type() { break; } } - _impl_._oneof_case_[0] = TYPE_NOT_SET; + _oneof_case_[0] = TYPE_NOT_SET; } -PROTOBUF_NOINLINE void Response::Clear() { +void Response::Clear() { // @@protoc_insertion_point(message_clear_start:proto.rpc.webrtc.v1.Response) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.stream_ != nullptr); - _impl_.stream_->Clear(); + if (GetArenaForAllocation() == nullptr && stream_ != nullptr) { + delete stream_; } + stream_ = nullptr; clear_type(); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Response::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Response::_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) { + // .proto.rpc.webrtc.v1.Stream stream = 1 [json_name = "stream"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_stream(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .proto.rpc.webrtc.v1.ResponseHeaders headers = 2 [json_name = "headers"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_headers(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .proto.rpc.webrtc.v1.ResponseMessage message = 3 [json_name = "message"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_message(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .proto.rpc.webrtc.v1.ResponseTrailers trailers = 4 [json_name = "trailers"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_trailers(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 4, 4, 0, 2> Response::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Response, _impl_._has_bits_), - 0, // no _extensions_ - 4, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 4, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Response_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .proto.rpc.webrtc.v1.Stream stream = 1 [json_name = "stream"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(Response, _impl_.stream_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .proto.rpc.webrtc.v1.Stream stream = 1 [json_name = "stream"]; - {PROTOBUF_FIELD_OFFSET(Response, _impl_.stream_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .proto.rpc.webrtc.v1.ResponseHeaders headers = 2 [json_name = "headers"]; - {PROTOBUF_FIELD_OFFSET(Response, _impl_.type_.headers_), _Internal::kOneofCaseOffset + 0, 1, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .proto.rpc.webrtc.v1.ResponseMessage message = 3 [json_name = "message"]; - {PROTOBUF_FIELD_OFFSET(Response, _impl_.type_.message_), _Internal::kOneofCaseOffset + 0, 2, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .proto.rpc.webrtc.v1.ResponseTrailers trailers = 4 [json_name = "trailers"]; - {PROTOBUF_FIELD_OFFSET(Response, _impl_.type_.trailers_), _Internal::kOneofCaseOffset + 0, 3, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::proto::rpc::webrtc::v1::Stream>()}, - {::_pbi::TcParser::GetTable<::proto::rpc::webrtc::v1::ResponseHeaders>()}, - {::_pbi::TcParser::GetTable<::proto::rpc::webrtc::v1::ResponseMessage>()}, - {::_pbi::TcParser::GetTable<::proto::rpc::webrtc::v1::ResponseTrailers>()}, - }}, {{ - }}, -}; - -::uint8_t* Response::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Response::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.rpc.webrtc.v1.Response) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .proto.rpc.webrtc.v1.Stream stream = 1 [json_name = "stream"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::stream(this), + if (this->_internal_has_stream()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::stream(this), _Internal::stream(this).GetCachedSize(), target, stream); } - switch (type_case()) { - case kHeaders: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::headers(this), - _Internal::headers(this).GetCachedSize(), target, stream); - break; - } - case kMessage: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::message(this), - _Internal::message(this).GetCachedSize(), target, stream); - break; - } - case kTrailers: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, _Internal::trailers(this), - _Internal::trailers(this).GetCachedSize(), target, stream); - break; - } - default: - break; + // .proto.rpc.webrtc.v1.ResponseHeaders headers = 2 [json_name = "headers"]; + if (_internal_has_headers()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::headers(this), + _Internal::headers(this).GetCachedSize(), target, stream); + } + + // .proto.rpc.webrtc.v1.ResponseMessage message = 3 [json_name = "message"]; + if (_internal_has_message()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::message(this), + _Internal::message(this).GetCachedSize(), target, stream); + } + + // .proto.rpc.webrtc.v1.ResponseTrailers trailers = 4 [json_name = "trailers"]; + if (_internal_has_trailers()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::trailers(this), + _Internal::trailers(this).GetCachedSize(), target, stream); } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:proto.rpc.webrtc.v1.Response) return target; } -::size_t Response::ByteSizeLong() const { +size_t Response::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.rpc.webrtc.v1.Response) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .proto.rpc.webrtc.v1.Stream stream = 1 [json_name = "stream"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.stream_); + if (this->_internal_has_stream()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *stream_); } switch (type_case()) { // .proto.rpc.webrtc.v1.ResponseHeaders headers = 2 [json_name = "headers"]; case kHeaders: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.type_.headers_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *type_.headers_); break; } // .proto.rpc.webrtc.v1.ResponseMessage message = 3 [json_name = "message"]; case kMessage: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.type_.message_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *type_.message_); break; } // .proto.rpc.webrtc.v1.ResponseTrailers trailers = 4 [json_name = "trailers"]; case kTrailers: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.type_.trailers_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *type_.trailers_); break; } case TYPE_NOT_SET: { break; } } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Response::_class_data_ = { - Response::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Response::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Response::MergeImpl }; -const ::google::protobuf::Message::ClassData* Response::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Response::GetClassData() const { return &_class_data_; } + +void Response::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Response::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.webrtc.v1.Response) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Response::MergeFrom(const Response& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.webrtc.v1.Response) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_stream()->::proto::rpc::webrtc::v1::Stream::MergeFrom( - from._internal_stream()); + if (from._internal_has_stream()) { + _internal_mutable_stream()->::proto::rpc::webrtc::v1::Stream::MergeFrom(from._internal_stream()); } switch (from.type_case()) { case kHeaders: { - _this->_internal_mutable_headers()->::proto::rpc::webrtc::v1::ResponseHeaders::MergeFrom( - from._internal_headers()); + _internal_mutable_headers()->::proto::rpc::webrtc::v1::ResponseHeaders::MergeFrom(from._internal_headers()); break; } case kMessage: { - _this->_internal_mutable_message()->::proto::rpc::webrtc::v1::ResponseMessage::MergeFrom( - from._internal_message()); + _internal_mutable_message()->::proto::rpc::webrtc::v1::ResponseMessage::MergeFrom(from._internal_message()); break; } case kTrailers: { - _this->_internal_mutable_trailers()->::proto::rpc::webrtc::v1::ResponseTrailers::MergeFrom( - from._internal_trailers()); + _internal_mutable_trailers()->::proto::rpc::webrtc::v1::ResponseTrailers::MergeFrom(from._internal_trailers()); break; } case TYPE_NOT_SET: { break; } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Response::CopyFrom(const Response& from) { @@ -2224,206 +2039,186 @@ void Response::CopyFrom(const Response& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Response::IsInitialized() const { +bool Response::IsInitialized() const { return true; } -::_pbi::CachedSize* Response::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Response::InternalSwap(Response* PROTOBUF_RESTRICT other) { +void Response::InternalSwap(Response* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.stream_, other->_impl_.stream_); - swap(_impl_.type_, other->_impl_.type_); - swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); + swap(stream_, other->stream_); + swap(type_, other->type_); + swap(_oneof_case_[0], other->_oneof_case_[0]); } -::google::protobuf::Metadata Response::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Response::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto_getter, &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto_once, file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto[5]); } + // =================================================================== class ResponseHeaders::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ResponseHeaders, _impl_._has_bits_); static const ::proto::rpc::webrtc::v1::Metadata& metadata(const ResponseHeaders* msg); - static void set_has_metadata(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::proto::rpc::webrtc::v1::Metadata& ResponseHeaders::_Internal::metadata(const ResponseHeaders* msg) { - return *msg->_impl_.metadata_; +const ::proto::rpc::webrtc::v1::Metadata& +ResponseHeaders::_Internal::metadata(const ResponseHeaders* msg) { + return *msg->metadata_; } -ResponseHeaders::ResponseHeaders(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ResponseHeaders::ResponseHeaders(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:proto.rpc.webrtc.v1.ResponseHeaders) } -inline PROTOBUF_NDEBUG_INLINE ResponseHeaders::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -ResponseHeaders::ResponseHeaders( - ::google::protobuf::Arena* arena, - const ResponseHeaders& from) - : ::google::protobuf::Message(arena) { - ResponseHeaders* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.metadata_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::proto::rpc::webrtc::v1::Metadata>(arena, *from._impl_.metadata_) - : nullptr; - +ResponseHeaders::ResponseHeaders(const ResponseHeaders& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_metadata()) { + metadata_ = new ::proto::rpc::webrtc::v1::Metadata(*from.metadata_); + } else { + metadata_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:proto.rpc.webrtc.v1.ResponseHeaders) } -inline PROTOBUF_NDEBUG_INLINE ResponseHeaders::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void ResponseHeaders::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.metadata_ = {}; +inline void ResponseHeaders::SharedCtor() { +metadata_ = nullptr; } + ResponseHeaders::~ResponseHeaders() { // @@protoc_insertion_point(destructor:proto.rpc.webrtc.v1.ResponseHeaders) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ResponseHeaders::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.metadata_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete metadata_; +} + +void ResponseHeaders::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void ResponseHeaders::Clear() { +void ResponseHeaders::Clear() { // @@protoc_insertion_point(message_clear_start:proto.rpc.webrtc.v1.ResponseHeaders) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.metadata_ != nullptr); - _impl_.metadata_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ResponseHeaders::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + if (GetArenaForAllocation() == nullptr && metadata_ != nullptr) { + delete metadata_; + } + metadata_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ResponseHeaders::_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) { + // .proto.rpc.webrtc.v1.Metadata metadata = 1 [json_name = "metadata"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_metadata(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ResponseHeaders::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ResponseHeaders, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ResponseHeaders_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .proto.rpc.webrtc.v1.Metadata metadata = 1 [json_name = "metadata"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(ResponseHeaders, _impl_.metadata_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .proto.rpc.webrtc.v1.Metadata metadata = 1 [json_name = "metadata"]; - {PROTOBUF_FIELD_OFFSET(ResponseHeaders, _impl_.metadata_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::proto::rpc::webrtc::v1::Metadata>()}, - }}, {{ - }}, -}; - -::uint8_t* ResponseHeaders::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ResponseHeaders::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.rpc.webrtc.v1.ResponseHeaders) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .proto.rpc.webrtc.v1.Metadata metadata = 1 [json_name = "metadata"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::metadata(this), + if (this->_internal_has_metadata()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::metadata(this), _Internal::metadata(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:proto.rpc.webrtc.v1.ResponseHeaders) return target; } -::size_t ResponseHeaders::ByteSizeLong() const { +size_t ResponseHeaders::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.rpc.webrtc.v1.ResponseHeaders) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .proto.rpc.webrtc.v1.Metadata metadata = 1 [json_name = "metadata"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.metadata_); + if (this->_internal_has_metadata()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *metadata_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ResponseHeaders::_class_data_ = { - ResponseHeaders::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ResponseHeaders::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ResponseHeaders::MergeImpl }; -const ::google::protobuf::Message::ClassData* ResponseHeaders::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ResponseHeaders::GetClassData() const { return &_class_data_; } + +void ResponseHeaders::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ResponseHeaders::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.webrtc.v1.ResponseHeaders) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ResponseHeaders::MergeFrom(const ResponseHeaders& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.webrtc.v1.ResponseHeaders) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_metadata()->::proto::rpc::webrtc::v1::Metadata::MergeFrom( - from._internal_metadata()); + if (from._internal_has_metadata()) { + _internal_mutable_metadata()->::proto::rpc::webrtc::v1::Metadata::MergeFrom(from._internal_metadata()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ResponseHeaders::CopyFrom(const ResponseHeaders& from) { @@ -2433,204 +2228,184 @@ void ResponseHeaders::CopyFrom(const ResponseHeaders& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ResponseHeaders::IsInitialized() const { +bool ResponseHeaders::IsInitialized() const { return true; } -::_pbi::CachedSize* ResponseHeaders::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ResponseHeaders::InternalSwap(ResponseHeaders* PROTOBUF_RESTRICT other) { +void ResponseHeaders::InternalSwap(ResponseHeaders* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.metadata_, other->_impl_.metadata_); + swap(metadata_, other->metadata_); } -::google::protobuf::Metadata ResponseHeaders::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ResponseHeaders::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto_getter, &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto_once, file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto[6]); } + // =================================================================== class ResponseMessage::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ResponseMessage, _impl_._has_bits_); static const ::proto::rpc::webrtc::v1::PacketMessage& packet_message(const ResponseMessage* msg); - static void set_has_packet_message(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::proto::rpc::webrtc::v1::PacketMessage& ResponseMessage::_Internal::packet_message(const ResponseMessage* msg) { - return *msg->_impl_.packet_message_; +const ::proto::rpc::webrtc::v1::PacketMessage& +ResponseMessage::_Internal::packet_message(const ResponseMessage* msg) { + return *msg->packet_message_; } -ResponseMessage::ResponseMessage(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ResponseMessage::ResponseMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:proto.rpc.webrtc.v1.ResponseMessage) } -inline PROTOBUF_NDEBUG_INLINE ResponseMessage::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -ResponseMessage::ResponseMessage( - ::google::protobuf::Arena* arena, - const ResponseMessage& from) - : ::google::protobuf::Message(arena) { - ResponseMessage* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.packet_message_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::proto::rpc::webrtc::v1::PacketMessage>(arena, *from._impl_.packet_message_) - : nullptr; - +ResponseMessage::ResponseMessage(const ResponseMessage& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_packet_message()) { + packet_message_ = new ::proto::rpc::webrtc::v1::PacketMessage(*from.packet_message_); + } else { + packet_message_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:proto.rpc.webrtc.v1.ResponseMessage) } -inline PROTOBUF_NDEBUG_INLINE ResponseMessage::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void ResponseMessage::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.packet_message_ = {}; +inline void ResponseMessage::SharedCtor() { +packet_message_ = nullptr; } + ResponseMessage::~ResponseMessage() { // @@protoc_insertion_point(destructor:proto.rpc.webrtc.v1.ResponseMessage) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ResponseMessage::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.packet_message_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete packet_message_; +} + +void ResponseMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void ResponseMessage::Clear() { +void ResponseMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.rpc.webrtc.v1.ResponseMessage) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.packet_message_ != nullptr); - _impl_.packet_message_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ResponseMessage::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + if (GetArenaForAllocation() == nullptr && packet_message_ != nullptr) { + delete packet_message_; + } + packet_message_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ResponseMessage::_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) { + // .proto.rpc.webrtc.v1.PacketMessage packet_message = 1 [json_name = "packetMessage"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_packet_message(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ResponseMessage::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ResponseMessage, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ResponseMessage_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .proto.rpc.webrtc.v1.PacketMessage packet_message = 1 [json_name = "packetMessage"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(ResponseMessage, _impl_.packet_message_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .proto.rpc.webrtc.v1.PacketMessage packet_message = 1 [json_name = "packetMessage"]; - {PROTOBUF_FIELD_OFFSET(ResponseMessage, _impl_.packet_message_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::proto::rpc::webrtc::v1::PacketMessage>()}, - }}, {{ - }}, -}; - -::uint8_t* ResponseMessage::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ResponseMessage::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.rpc.webrtc.v1.ResponseMessage) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .proto.rpc.webrtc.v1.PacketMessage packet_message = 1 [json_name = "packetMessage"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::packet_message(this), + if (this->_internal_has_packet_message()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::packet_message(this), _Internal::packet_message(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:proto.rpc.webrtc.v1.ResponseMessage) return target; } -::size_t ResponseMessage::ByteSizeLong() const { +size_t ResponseMessage::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.rpc.webrtc.v1.ResponseMessage) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .proto.rpc.webrtc.v1.PacketMessage packet_message = 1 [json_name = "packetMessage"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.packet_message_); + if (this->_internal_has_packet_message()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *packet_message_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ResponseMessage::_class_data_ = { - ResponseMessage::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ResponseMessage::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ResponseMessage::MergeImpl }; -const ::google::protobuf::Message::ClassData* ResponseMessage::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ResponseMessage::GetClassData() const { return &_class_data_; } + +void ResponseMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ResponseMessage::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.webrtc.v1.ResponseMessage) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ResponseMessage::MergeFrom(const ResponseMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.webrtc.v1.ResponseMessage) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_packet_message()->::proto::rpc::webrtc::v1::PacketMessage::MergeFrom( - from._internal_packet_message()); + if (from._internal_has_packet_message()) { + _internal_mutable_packet_message()->::proto::rpc::webrtc::v1::PacketMessage::MergeFrom(from._internal_packet_message()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ResponseMessage::CopyFrom(const ResponseMessage& from) { @@ -2640,260 +2415,233 @@ void ResponseMessage::CopyFrom(const ResponseMessage& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ResponseMessage::IsInitialized() const { +bool ResponseMessage::IsInitialized() const { return true; } -::_pbi::CachedSize* ResponseMessage::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ResponseMessage::InternalSwap(ResponseMessage* PROTOBUF_RESTRICT other) { +void ResponseMessage::InternalSwap(ResponseMessage* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.packet_message_, other->_impl_.packet_message_); + swap(packet_message_, other->packet_message_); } -::google::protobuf::Metadata ResponseMessage::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ResponseMessage::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto_getter, &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto_once, file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto[7]); } + // =================================================================== class ResponseTrailers::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ResponseTrailers, _impl_._has_bits_); static const ::google::rpc::Status& status(const ResponseTrailers* msg); - static void set_has_status(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } static const ::proto::rpc::webrtc::v1::Metadata& metadata(const ResponseTrailers* msg); - static void set_has_metadata(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } }; -const ::google::rpc::Status& ResponseTrailers::_Internal::status(const ResponseTrailers* msg) { - return *msg->_impl_.status_; +const ::google::rpc::Status& +ResponseTrailers::_Internal::status(const ResponseTrailers* msg) { + return *msg->status_; } -const ::proto::rpc::webrtc::v1::Metadata& ResponseTrailers::_Internal::metadata(const ResponseTrailers* msg) { - return *msg->_impl_.metadata_; +const ::proto::rpc::webrtc::v1::Metadata& +ResponseTrailers::_Internal::metadata(const ResponseTrailers* msg) { + return *msg->metadata_; } void ResponseTrailers::clear_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.status_ != nullptr) _impl_.status_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; } -ResponseTrailers::ResponseTrailers(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ResponseTrailers::ResponseTrailers(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:proto.rpc.webrtc.v1.ResponseTrailers) } -inline PROTOBUF_NDEBUG_INLINE ResponseTrailers::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -ResponseTrailers::ResponseTrailers( - ::google::protobuf::Arena* arena, - const ResponseTrailers& from) - : ::google::protobuf::Message(arena) { - ResponseTrailers* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.status_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::rpc::Status>(arena, *from._impl_.status_) - : nullptr; - _impl_.metadata_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::proto::rpc::webrtc::v1::Metadata>(arena, *from._impl_.metadata_) - : nullptr; - +ResponseTrailers::ResponseTrailers(const ResponseTrailers& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_status()) { + status_ = new ::google::rpc::Status(*from.status_); + } else { + status_ = nullptr; + } + if (from._internal_has_metadata()) { + metadata_ = new ::proto::rpc::webrtc::v1::Metadata(*from.metadata_); + } else { + metadata_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:proto.rpc.webrtc.v1.ResponseTrailers) } -inline PROTOBUF_NDEBUG_INLINE ResponseTrailers::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void ResponseTrailers::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, status_), - 0, - offsetof(Impl_, metadata_) - - offsetof(Impl_, status_) + - sizeof(Impl_::metadata_)); +inline void ResponseTrailers::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&status_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&metadata_) - + reinterpret_cast(&status_)) + sizeof(metadata_)); } + ResponseTrailers::~ResponseTrailers() { // @@protoc_insertion_point(destructor:proto.rpc.webrtc.v1.ResponseTrailers) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ResponseTrailers::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.status_; - delete _impl_.metadata_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete status_; + if (this != internal_default_instance()) delete metadata_; +} + +void ResponseTrailers::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void ResponseTrailers::Clear() { +void ResponseTrailers::Clear() { // @@protoc_insertion_point(message_clear_start:proto.rpc.webrtc.v1.ResponseTrailers) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.status_ != nullptr); - _impl_.status_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.metadata_ != nullptr); - _impl_.metadata_->Clear(); + if (GetArenaForAllocation() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; + if (GetArenaForAllocation() == nullptr && metadata_ != nullptr) { + delete metadata_; + } + metadata_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ResponseTrailers::_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) { + // .google.rpc.Status status = 1 [json_name = "status"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_status(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .proto.rpc.webrtc.v1.Metadata metadata = 2 [json_name = "metadata"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_metadata(), 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; } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ResponseTrailers::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 2, 0, 2> ResponseTrailers::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ResponseTrailers, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ResponseTrailers_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .proto.rpc.webrtc.v1.Metadata metadata = 2 [json_name = "metadata"]; - {::_pbi::TcParser::FastMtS1, - {18, 1, 1, PROTOBUF_FIELD_OFFSET(ResponseTrailers, _impl_.metadata_)}}, - // .google.rpc.Status status = 1 [json_name = "status"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(ResponseTrailers, _impl_.status_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .google.rpc.Status status = 1 [json_name = "status"]; - {PROTOBUF_FIELD_OFFSET(ResponseTrailers, _impl_.status_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .proto.rpc.webrtc.v1.Metadata metadata = 2 [json_name = "metadata"]; - {PROTOBUF_FIELD_OFFSET(ResponseTrailers, _impl_.metadata_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::rpc::Status>()}, - {::_pbi::TcParser::GetTable<::proto::rpc::webrtc::v1::Metadata>()}, - }}, {{ - }}, -}; - -::uint8_t* ResponseTrailers::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ResponseTrailers::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.rpc.webrtc.v1.ResponseTrailers) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .google.rpc.Status status = 1 [json_name = "status"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::status(this), + if (this->_internal_has_status()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::status(this), _Internal::status(this).GetCachedSize(), target, stream); } // .proto.rpc.webrtc.v1.Metadata metadata = 2 [json_name = "metadata"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::metadata(this), + if (this->_internal_has_metadata()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::metadata(this), _Internal::metadata(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:proto.rpc.webrtc.v1.ResponseTrailers) return target; } -::size_t ResponseTrailers::ByteSizeLong() const { +size_t ResponseTrailers::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.rpc.webrtc.v1.ResponseTrailers) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // .google.rpc.Status status = 1 [json_name = "status"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.status_); - } - - // .proto.rpc.webrtc.v1.Metadata metadata = 2 [json_name = "metadata"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.metadata_); - } + // .google.rpc.Status status = 1 [json_name = "status"]; + if (this->_internal_has_status()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *status_); + } + // .proto.rpc.webrtc.v1.Metadata metadata = 2 [json_name = "metadata"]; + if (this->_internal_has_metadata()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *metadata_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ResponseTrailers::_class_data_ = { - ResponseTrailers::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ResponseTrailers::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ResponseTrailers::MergeImpl }; -const ::google::protobuf::Message::ClassData* ResponseTrailers::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ResponseTrailers::GetClassData() const { return &_class_data_; } + +void ResponseTrailers::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ResponseTrailers::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.webrtc.v1.ResponseTrailers) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ResponseTrailers::MergeFrom(const ResponseTrailers& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.webrtc.v1.ResponseTrailers) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_status()->::google::rpc::Status::MergeFrom( - from._internal_status()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_metadata()->::proto::rpc::webrtc::v1::Metadata::MergeFrom( - from._internal_metadata()); - } + if (from._internal_has_status()) { + _internal_mutable_status()->::google::rpc::Status::MergeFrom(from._internal_status()); + } + if (from._internal_has_metadata()) { + _internal_mutable_metadata()->::proto::rpc::webrtc::v1::Metadata::MergeFrom(from._internal_metadata()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ResponseTrailers::CopyFrom(const ResponseTrailers& from) { @@ -2903,188 +2651,185 @@ void ResponseTrailers::CopyFrom(const ResponseTrailers& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ResponseTrailers::IsInitialized() const { +bool ResponseTrailers::IsInitialized() const { return true; } -::_pbi::CachedSize* ResponseTrailers::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ResponseTrailers::InternalSwap(ResponseTrailers* PROTOBUF_RESTRICT other) { +void ResponseTrailers::InternalSwap(ResponseTrailers* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(ResponseTrailers, _impl_.metadata_) - + sizeof(ResponseTrailers::_impl_.metadata_) - - PROTOBUF_FIELD_OFFSET(ResponseTrailers, _impl_.status_)>( - reinterpret_cast(&_impl_.status_), - reinterpret_cast(&other->_impl_.status_)); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(ResponseTrailers, metadata_) + + sizeof(ResponseTrailers::metadata_) + - PROTOBUF_FIELD_OFFSET(ResponseTrailers, status_)>( + reinterpret_cast(&status_), + reinterpret_cast(&other->status_)); } -::google::protobuf::Metadata ResponseTrailers::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ResponseTrailers::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto_getter, &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto_once, file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto[8]); } + // =================================================================== class Strings::_Internal { public: }; -Strings::Strings(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Strings::Strings(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + values_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:proto.rpc.webrtc.v1.Strings) } -inline PROTOBUF_NDEBUG_INLINE Strings::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : values_{visibility, arena, from.values_}, - _cached_size_{0} {} - -Strings::Strings( - ::google::protobuf::Arena* arena, - const Strings& from) - : ::google::protobuf::Message(arena) { - Strings* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +Strings::Strings(const Strings& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + values_(from.values_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:proto.rpc.webrtc.v1.Strings) } -inline PROTOBUF_NDEBUG_INLINE Strings::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : values_{visibility, arena}, - _cached_size_{0} {} -inline void Strings::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void Strings::SharedCtor() { } + Strings::~Strings() { // @@protoc_insertion_point(destructor:proto.rpc.webrtc.v1.Strings) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Strings::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void Strings::Clear() { +void Strings::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void Strings::Clear() { // @@protoc_insertion_point(message_clear_start:proto.rpc.webrtc.v1.Strings) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.values_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Strings::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + values_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Strings::_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) { + // repeated string values = 1 [json_name = "values"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_values(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "proto.rpc.webrtc.v1.Strings.values")); + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 42, 2> Strings::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_Strings_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated string values = 1 [json_name = "values"]; - {::_pbi::TcParser::FastUR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Strings, _impl_.values_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated string values = 1 [json_name = "values"]; - {PROTOBUF_FIELD_OFFSET(Strings, _impl_.values_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - }}, - // no aux_entries - {{ - "\33\6\0\0\0\0\0\0" - "proto.rpc.webrtc.v1.Strings" - "values" - }}, -}; - -::uint8_t* Strings::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Strings::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.rpc.webrtc.v1.Strings) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated string values = 1 [json_name = "values"]; - for (int i = 0, n = this->_internal_values_size(); i < n; ++i) { - const auto& s = this->_internal_values().Get(i); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "proto.rpc.webrtc.v1.Strings.values"); + for (int i = 0, n = this->_internal_values_size(); i < n; i++) { + const auto& s = this->_internal_values(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "proto.rpc.webrtc.v1.Strings.values"); target = stream->WriteString(1, s, target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:proto.rpc.webrtc.v1.Strings) return target; } -::size_t Strings::ByteSizeLong() const { +size_t Strings::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.rpc.webrtc.v1.Strings) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated string values = 1 [json_name = "values"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_values().size()); - for (int i = 0, n = _internal_values().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - _internal_values().Get(i)); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(values_.size()); + for (int i = 0, n = values_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + values_.Get(i)); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Strings::_class_data_ = { - Strings::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Strings::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Strings::MergeImpl }; -const ::google::protobuf::Message::ClassData* Strings::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Strings::GetClassData() const { return &_class_data_; } + +void Strings::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Strings::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.webrtc.v1.Strings) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Strings::MergeFrom(const Strings& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.webrtc.v1.Strings) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_values()->MergeFrom(from._internal_values()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + values_.MergeFrom(from.values_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Strings::CopyFrom(const Strings& from) { @@ -3094,214 +2839,218 @@ void Strings::CopyFrom(const Strings& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Strings::IsInitialized() const { +bool Strings::IsInitialized() const { return true; } -::_pbi::CachedSize* Strings::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Strings::InternalSwap(Strings* PROTOBUF_RESTRICT other) { +void Strings::InternalSwap(Strings* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.values_.InternalSwap(&other->_impl_.values_); + values_.InternalSwap(&other->values_); } -::google::protobuf::Metadata Strings::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Strings::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto_getter, &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto_once, file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto[9]); } + // =================================================================== Metadata_MdEntry_DoNotUse::Metadata_MdEntry_DoNotUse() {} -Metadata_MdEntry_DoNotUse::Metadata_MdEntry_DoNotUse(::google::protobuf::Arena* arena) +Metadata_MdEntry_DoNotUse::Metadata_MdEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) : SuperType(arena) {} -::google::protobuf::Metadata Metadata_MdEntry_DoNotUse::GetMetadata() const { +void Metadata_MdEntry_DoNotUse::MergeFrom(const Metadata_MdEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata Metadata_MdEntry_DoNotUse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto_getter, &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto_once, file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto[10]); } + // =================================================================== class Metadata::_Internal { public: }; -Metadata::Metadata(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Metadata::Metadata(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + md_(arena) { + SharedCtor(); + if (arena != nullptr && !is_message_owned) { + arena->OwnCustomDestructor(this, &Metadata::ArenaDtor); + } // @@protoc_insertion_point(arena_constructor:proto.rpc.webrtc.v1.Metadata) } -inline PROTOBUF_NDEBUG_INLINE Metadata::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : md_{visibility, arena, from.md_}, - _cached_size_{0} {} - -Metadata::Metadata( - ::google::protobuf::Arena* arena, - const Metadata& from) - : ::google::protobuf::Message(arena) { - Metadata* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +Metadata::Metadata(const Metadata& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + md_.MergeFrom(from.md_); // @@protoc_insertion_point(copy_constructor:proto.rpc.webrtc.v1.Metadata) } -inline PROTOBUF_NDEBUG_INLINE Metadata::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : md_{visibility, arena}, - _cached_size_{0} {} -inline void Metadata::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void Metadata::SharedCtor() { } + Metadata::~Metadata() { // @@protoc_insertion_point(destructor:proto.rpc.webrtc.v1.Metadata) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + ArenaDtor(this); + return; + } SharedDtor(); } + inline void Metadata::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + md_.Destruct(); +} + +void Metadata::ArenaDtor(void* object) { + Metadata* _this = reinterpret_cast< Metadata* >(object); + _this->md_.Destruct(); +} +void Metadata::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void Metadata::Clear() { +void Metadata::Clear() { // @@protoc_insertion_point(message_clear_start:proto.rpc.webrtc.v1.Metadata) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.md_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Metadata::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + md_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Metadata::_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 md = 1 [json_name = "md"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&md_, 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 2, 39, 2> Metadata::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Metadata_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // map md = 1 [json_name = "md"]; - {PROTOBUF_FIELD_OFFSET(Metadata, _impl_.md_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, - }}, {{ - {::_pbi::TcParser::GetMapAuxInfo< - decltype(Metadata()._impl_.md_)>( - 1, 0, 0, 9, - 11)}, - {::_pbi::TcParser::CreateInArenaStorageCb<::proto::rpc::webrtc::v1::Strings>}, - }}, {{ - "\34\2\0\0\0\0\0\0" - "proto.rpc.webrtc.v1.Metadata" - "md" - }}, -}; - -::uint8_t* Metadata::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Metadata::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.rpc.webrtc.v1.Metadata) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // map md = 1 [json_name = "md"]; - if (!_internal_md().empty()) { - using MapType = ::google::protobuf::Map; - using WireHelper = _pbi::MapEntryFuncs; - const auto& field = _internal_md(); - - if (stream->IsSerializationDeterministic() && field.size() > 1) { - for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { - target = WireHelper::InternalSerialize( - 1, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "proto.rpc.webrtc.v1.Metadata.md"); + if (!this->_internal_md().empty()) { + using MapType = ::_pb::Map; + using WireHelper = Metadata_MdEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_md(); + 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, + "proto.rpc.webrtc.v1.Metadata.MdEntry.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 : field) { - target = WireHelper::InternalSerialize( - 1, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "proto.rpc.webrtc.v1.Metadata.md"); + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:proto.rpc.webrtc.v1.Metadata) return target; } -::size_t Metadata::ByteSizeLong() const { +size_t Metadata::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.rpc.webrtc.v1.Metadata) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // map md = 1 [json_name = "md"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_md_size()); - for (const auto& entry : _internal_md()) { - total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_md_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::proto::rpc::webrtc::v1::Strings >::const_iterator + it = this->_internal_md().begin(); + it != this->_internal_md().end(); ++it) { + total_size += Metadata_MdEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Metadata::_class_data_ = { - Metadata::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Metadata::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Metadata::MergeImpl }; -const ::google::protobuf::Message::ClassData* Metadata::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Metadata::GetClassData() const { return &_class_data_; } + +void Metadata::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Metadata::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.webrtc.v1.Metadata) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Metadata::MergeFrom(const Metadata& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.webrtc.v1.Metadata) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.md_.MergeFrom(from._impl_.md_); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + md_.MergeFrom(from.md_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Metadata::CopyFrom(const Metadata& from) { @@ -3311,32 +3060,77 @@ void Metadata::CopyFrom(const Metadata& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Metadata::IsInitialized() const { +bool Metadata::IsInitialized() const { return true; } -::_pbi::CachedSize* Metadata::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Metadata::InternalSwap(Metadata* PROTOBUF_RESTRICT other) { +void Metadata::InternalSwap(Metadata* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.md_.InternalSwap(&other->_impl_.md_); + md_.InternalSwap(&other->md_); } -::google::protobuf::Metadata Metadata::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Metadata::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto_getter, &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto_once, file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto[11]); } + // @@protoc_insertion_point(namespace_scope) } // namespace v1 } // namespace webrtc } // namespace rpc } // namespace proto -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::proto::rpc::webrtc::v1::PacketMessage* +Arena::CreateMaybeMessage< ::proto::rpc::webrtc::v1::PacketMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::rpc::webrtc::v1::PacketMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::rpc::webrtc::v1::Stream* +Arena::CreateMaybeMessage< ::proto::rpc::webrtc::v1::Stream >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::rpc::webrtc::v1::Stream >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::rpc::webrtc::v1::Request* +Arena::CreateMaybeMessage< ::proto::rpc::webrtc::v1::Request >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::rpc::webrtc::v1::Request >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::rpc::webrtc::v1::RequestHeaders* +Arena::CreateMaybeMessage< ::proto::rpc::webrtc::v1::RequestHeaders >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::rpc::webrtc::v1::RequestHeaders >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::rpc::webrtc::v1::RequestMessage* +Arena::CreateMaybeMessage< ::proto::rpc::webrtc::v1::RequestMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::rpc::webrtc::v1::RequestMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::rpc::webrtc::v1::Response* +Arena::CreateMaybeMessage< ::proto::rpc::webrtc::v1::Response >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::rpc::webrtc::v1::Response >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::rpc::webrtc::v1::ResponseHeaders* +Arena::CreateMaybeMessage< ::proto::rpc::webrtc::v1::ResponseHeaders >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::rpc::webrtc::v1::ResponseHeaders >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::rpc::webrtc::v1::ResponseMessage* +Arena::CreateMaybeMessage< ::proto::rpc::webrtc::v1::ResponseMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::rpc::webrtc::v1::ResponseMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::rpc::webrtc::v1::ResponseTrailers* +Arena::CreateMaybeMessage< ::proto::rpc::webrtc::v1::ResponseTrailers >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::rpc::webrtc::v1::ResponseTrailers >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::rpc::webrtc::v1::Strings* +Arena::CreateMaybeMessage< ::proto::rpc::webrtc::v1::Strings >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::rpc::webrtc::v1::Strings >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::rpc::webrtc::v1::Metadata_MdEntry_DoNotUse* +Arena::CreateMaybeMessage< ::proto::rpc::webrtc::v1::Metadata_MdEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::rpc::webrtc::v1::Metadata_MdEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::rpc::webrtc::v1::Metadata* +Arena::CreateMaybeMessage< ::proto::rpc::webrtc::v1::Metadata >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::rpc::webrtc::v1::Metadata >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/proto/rpc/webrtc/v1/grpc.pb.h b/src/viam/api/proto/rpc/webrtc/v1/grpc.pb.h index 6f8529ea3..b1cdb3de6 100644 --- a/src/viam/api/proto/rpc/webrtc/v1/grpc.pb.h +++ b/src/viam/api/proto/rpc/webrtc/v1/grpc.pb.h @@ -1,65 +1,54 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: proto/rpc/webrtc/v1/grpc.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/map.h" // IWYU pragma: export -#include "google/protobuf/map_entry.h" -#include "google/protobuf/map_field_inl.h" -#include "google/protobuf/unknown_field_set.h" -#include "google/protobuf/duration.pb.h" + +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include +#include #include "google/rpc/status.pb.h" // @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - +#include #define PROTOBUF_INTERNAL_EXPORT_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto; namespace proto { namespace rpc { namespace webrtc { @@ -104,11 +93,20 @@ extern StringsDefaultTypeInternal _Strings_default_instance_; } // namespace webrtc } // namespace rpc } // namespace proto -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - +PROTOBUF_NAMESPACE_OPEN +template<> ::proto::rpc::webrtc::v1::Metadata* Arena::CreateMaybeMessage<::proto::rpc::webrtc::v1::Metadata>(Arena*); +template<> ::proto::rpc::webrtc::v1::Metadata_MdEntry_DoNotUse* Arena::CreateMaybeMessage<::proto::rpc::webrtc::v1::Metadata_MdEntry_DoNotUse>(Arena*); +template<> ::proto::rpc::webrtc::v1::PacketMessage* Arena::CreateMaybeMessage<::proto::rpc::webrtc::v1::PacketMessage>(Arena*); +template<> ::proto::rpc::webrtc::v1::Request* Arena::CreateMaybeMessage<::proto::rpc::webrtc::v1::Request>(Arena*); +template<> ::proto::rpc::webrtc::v1::RequestHeaders* Arena::CreateMaybeMessage<::proto::rpc::webrtc::v1::RequestHeaders>(Arena*); +template<> ::proto::rpc::webrtc::v1::RequestMessage* Arena::CreateMaybeMessage<::proto::rpc::webrtc::v1::RequestMessage>(Arena*); +template<> ::proto::rpc::webrtc::v1::Response* Arena::CreateMaybeMessage<::proto::rpc::webrtc::v1::Response>(Arena*); +template<> ::proto::rpc::webrtc::v1::ResponseHeaders* Arena::CreateMaybeMessage<::proto::rpc::webrtc::v1::ResponseHeaders>(Arena*); +template<> ::proto::rpc::webrtc::v1::ResponseMessage* Arena::CreateMaybeMessage<::proto::rpc::webrtc::v1::ResponseMessage>(Arena*); +template<> ::proto::rpc::webrtc::v1::ResponseTrailers* Arena::CreateMaybeMessage<::proto::rpc::webrtc::v1::ResponseTrailers>(Arena*); +template<> ::proto::rpc::webrtc::v1::Stream* Arena::CreateMaybeMessage<::proto::rpc::webrtc::v1::Stream>(Arena*); +template<> ::proto::rpc::webrtc::v1::Strings* Arena::CreateMaybeMessage<::proto::rpc::webrtc::v1::Strings>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace proto { namespace rpc { namespace webrtc { @@ -116,33 +114,28 @@ namespace v1 { // =================================================================== - -// ------------------------------------------------------------------- - -class Strings final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.Strings) */ { +class PacketMessage final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.PacketMessage) */ { public: - inline Strings() : Strings(nullptr) {} - ~Strings() override; - template - explicit PROTOBUF_CONSTEXPR Strings(::google::protobuf::internal::ConstantInitialized); + inline PacketMessage() : PacketMessage(nullptr) {} + ~PacketMessage() override; + explicit PROTOBUF_CONSTEXPR PacketMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Strings(const Strings& from) - : Strings(nullptr, from) {} - Strings(Strings&& from) noexcept - : Strings() { + PacketMessage(const PacketMessage& from); + PacketMessage(PacketMessage&& from) noexcept + : PacketMessage() { *this = ::std::move(from); } - inline Strings& operator=(const Strings& from) { + inline PacketMessage& operator=(const PacketMessage& from) { CopyFrom(from); return *this; } - inline Strings& operator=(Strings&& from) noexcept { + inline PacketMessage& operator=(PacketMessage&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -152,176 +145,142 @@ class Strings final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Strings& default_instance() { + static const PacketMessage& default_instance() { return *internal_default_instance(); } - static inline const Strings* internal_default_instance() { - return reinterpret_cast( - &_Strings_default_instance_); + static inline const PacketMessage* internal_default_instance() { + return reinterpret_cast( + &_PacketMessage_default_instance_); } static constexpr int kIndexInFileMessages = - 9; + 0; - friend void swap(Strings& a, Strings& b) { + friend void swap(PacketMessage& a, PacketMessage& b) { a.Swap(&b); } - inline void Swap(Strings* other) { + inline void Swap(PacketMessage* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Strings* other) { + void UnsafeArenaSwap(PacketMessage* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Strings* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Strings& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Strings& from) { - Strings::MergeImpl(*this, from); + PacketMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const PacketMessage& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const PacketMessage& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Strings* other); + void SetCachedSize(int size) const final; + void InternalSwap(PacketMessage* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "proto.rpc.webrtc.v1.Strings"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.rpc.webrtc.v1.PacketMessage"; } protected: - explicit Strings(::google::protobuf::Arena* arena); - Strings(::google::protobuf::Arena* arena, const Strings& from); + explicit PacketMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kValuesFieldNumber = 1, + kDataFieldNumber = 1, + kEomFieldNumber = 2, }; - // repeated string values = 1 [json_name = "values"]; - int values_size() const; + // bytes data = 1 [json_name = "data"]; + void clear_data(); + const std::string& data() const; + template + void set_data(ArgT0&& arg0, ArgT... args); + std::string* mutable_data(); + PROTOBUF_NODISCARD std::string* release_data(); + void set_allocated_data(std::string* data); private: - int _internal_values_size() const; - + const std::string& _internal_data() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_data(const std::string& value); + std::string* _internal_mutable_data(); public: - void clear_values() ; - const std::string& values(int index) const; - std::string* mutable_values(int index); - void set_values(int index, const std::string& value); - void set_values(int index, std::string&& value); - void set_values(int index, const char* value); - void set_values(int index, const char* value, std::size_t size); - void set_values(int index, absl::string_view value); - std::string* add_values(); - void add_values(const std::string& value); - void add_values(std::string&& value); - void add_values(const char* value); - void add_values(const char* value, std::size_t size); - void add_values(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& values() const; - ::google::protobuf::RepeatedPtrField* mutable_values(); + // bool eom = 2 [json_name = "eom"]; + void clear_eom(); + bool eom() const; + void set_eom(bool value); private: - const ::google::protobuf::RepeatedPtrField& _internal_values() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_values(); - + bool _internal_eom() const; + void _internal_set_eom(bool value); public: - // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.Strings) + + // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.PacketMessage) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 42, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField values_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr data_; + bool eom_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class Stream final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.Stream) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.Stream) */ { public: inline Stream() : Stream(nullptr) {} ~Stream() override; - template - explicit PROTOBUF_CONSTEXPR Stream(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR Stream(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Stream(const Stream& from) - : Stream(nullptr, from) {} + Stream(const Stream& from); Stream(Stream&& from) noexcept : Stream() { *this = ::std::move(from); @@ -333,9 +292,9 @@ class Stream final : } inline Stream& operator=(Stream&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -345,22 +304,13 @@ class Stream final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const Stream& default_instance() { @@ -379,65 +329,63 @@ class Stream final : inline void Swap(Stream* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(Stream* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Stream* New(::google::protobuf::Arena* arena = nullptr) const final { + Stream* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const Stream& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Stream& from) { - Stream::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Stream& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(Stream* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "proto.rpc.webrtc.v1.Stream"; } protected: - explicit Stream(::google::protobuf::Arena* arena); - Stream(::google::protobuf::Arena* arena, const Stream& from); + explicit Stream(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -447,70 +395,49 @@ class Stream final : kIdFieldNumber = 1, }; // uint64 id = 1 [json_name = "id"]; - void clear_id() ; - ::uint64_t id() const; - void set_id(::uint64_t value); - + void clear_id(); + uint64_t id() const; + void set_id(uint64_t value); private: - ::uint64_t _internal_id() const; - void _internal_set_id(::uint64_t value); - + uint64_t _internal_id() const; + void _internal_set_id(uint64_t value); public: + // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.Stream) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::uint64_t id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + uint64_t id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class PacketMessage final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.PacketMessage) */ { +class Request final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.Request) */ { public: - inline PacketMessage() : PacketMessage(nullptr) {} - ~PacketMessage() override; - template - explicit PROTOBUF_CONSTEXPR PacketMessage(::google::protobuf::internal::ConstantInitialized); + inline Request() : Request(nullptr) {} + ~Request() override; + explicit PROTOBUF_CONSTEXPR Request(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline PacketMessage(const PacketMessage& from) - : PacketMessage(nullptr, from) {} - PacketMessage(PacketMessage&& from) noexcept - : PacketMessage() { + Request(const Request& from); + Request(Request&& from) noexcept + : Request() { *this = ::std::move(from); } - inline PacketMessage& operator=(const PacketMessage& from) { + inline Request& operator=(const Request& from) { CopyFrom(from); return *this; } - inline PacketMessage& operator=(PacketMessage&& from) noexcept { + inline Request& operator=(Request&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -520,190 +447,225 @@ class PacketMessage final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const PacketMessage& default_instance() { + static const Request& default_instance() { return *internal_default_instance(); } - static inline const PacketMessage* internal_default_instance() { - return reinterpret_cast( - &_PacketMessage_default_instance_); + enum TypeCase { + kHeaders = 2, + kMessage = 3, + kRstStream = 4, + TYPE_NOT_SET = 0, + }; + + static inline const Request* internal_default_instance() { + return reinterpret_cast( + &_Request_default_instance_); } static constexpr int kIndexInFileMessages = - 0; + 2; - friend void swap(PacketMessage& a, PacketMessage& b) { + friend void swap(Request& a, Request& b) { a.Swap(&b); } - inline void Swap(PacketMessage* other) { + inline void Swap(Request* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(PacketMessage* other) { + void UnsafeArenaSwap(Request* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - PacketMessage* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const PacketMessage& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const PacketMessage& from) { - PacketMessage::MergeImpl(*this, from); + Request* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Request& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Request& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(PacketMessage* other); + void SetCachedSize(int size) const final; + void InternalSwap(Request* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "proto.rpc.webrtc.v1.PacketMessage"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.rpc.webrtc.v1.Request"; } protected: - explicit PacketMessage(::google::protobuf::Arena* arena); - PacketMessage(::google::protobuf::Arena* arena, const PacketMessage& from); + explicit Request(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kDataFieldNumber = 1, - kEomFieldNumber = 2, + kStreamFieldNumber = 1, + kHeadersFieldNumber = 2, + kMessageFieldNumber = 3, + kRstStreamFieldNumber = 4, }; - // bytes data = 1 [json_name = "data"]; - void clear_data() ; - const std::string& data() const; - template - void set_data(Arg_&& arg, Args_... args); - std::string* mutable_data(); - PROTOBUF_NODISCARD std::string* release_data(); - void set_allocated_data(std::string* value); - + // .proto.rpc.webrtc.v1.Stream stream = 1 [json_name = "stream"]; + bool has_stream() const; private: - const std::string& _internal_data() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_data( - const std::string& value); - std::string* _internal_mutable_data(); + bool _internal_has_stream() const; + public: + void clear_stream(); + const ::proto::rpc::webrtc::v1::Stream& stream() const; + PROTOBUF_NODISCARD ::proto::rpc::webrtc::v1::Stream* release_stream(); + ::proto::rpc::webrtc::v1::Stream* mutable_stream(); + void set_allocated_stream(::proto::rpc::webrtc::v1::Stream* stream); + private: + const ::proto::rpc::webrtc::v1::Stream& _internal_stream() const; + ::proto::rpc::webrtc::v1::Stream* _internal_mutable_stream(); + public: + void unsafe_arena_set_allocated_stream( + ::proto::rpc::webrtc::v1::Stream* stream); + ::proto::rpc::webrtc::v1::Stream* unsafe_arena_release_stream(); + // .proto.rpc.webrtc.v1.RequestHeaders headers = 2 [json_name = "headers"]; + bool has_headers() const; + private: + bool _internal_has_headers() const; public: - // bool eom = 2 [json_name = "eom"]; - void clear_eom() ; - bool eom() const; - void set_eom(bool value); + void clear_headers(); + const ::proto::rpc::webrtc::v1::RequestHeaders& headers() const; + PROTOBUF_NODISCARD ::proto::rpc::webrtc::v1::RequestHeaders* release_headers(); + ::proto::rpc::webrtc::v1::RequestHeaders* mutable_headers(); + void set_allocated_headers(::proto::rpc::webrtc::v1::RequestHeaders* headers); + private: + const ::proto::rpc::webrtc::v1::RequestHeaders& _internal_headers() const; + ::proto::rpc::webrtc::v1::RequestHeaders* _internal_mutable_headers(); + public: + void unsafe_arena_set_allocated_headers( + ::proto::rpc::webrtc::v1::RequestHeaders* headers); + ::proto::rpc::webrtc::v1::RequestHeaders* unsafe_arena_release_headers(); + // .proto.rpc.webrtc.v1.RequestMessage message = 3 [json_name = "message"]; + bool has_message() const; private: - bool _internal_eom() const; - void _internal_set_eom(bool value); + bool _internal_has_message() const; + public: + void clear_message(); + const ::proto::rpc::webrtc::v1::RequestMessage& message() const; + PROTOBUF_NODISCARD ::proto::rpc::webrtc::v1::RequestMessage* release_message(); + ::proto::rpc::webrtc::v1::RequestMessage* mutable_message(); + void set_allocated_message(::proto::rpc::webrtc::v1::RequestMessage* message); + private: + const ::proto::rpc::webrtc::v1::RequestMessage& _internal_message() const; + ::proto::rpc::webrtc::v1::RequestMessage* _internal_mutable_message(); + public: + void unsafe_arena_set_allocated_message( + ::proto::rpc::webrtc::v1::RequestMessage* message); + ::proto::rpc::webrtc::v1::RequestMessage* unsafe_arena_release_message(); + // bool rst_stream = 4 [json_name = "rstStream"]; + bool has_rst_stream() const; + private: + bool _internal_has_rst_stream() const; public: - // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.PacketMessage) + void clear_rst_stream(); + bool rst_stream() const; + void set_rst_stream(bool value); + private: + bool _internal_rst_stream() const; + void _internal_set_rst_stream(bool value); + public: + + void clear_type(); + TypeCase type_case() const; + // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.Request) private: class _Internal; + void set_has_headers(); + void set_has_message(); + void set_has_rst_stream(); + + inline bool has_type() const; + inline void clear_has_type(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::proto::rpc::webrtc::v1::Stream* stream_; + union TypeUnion { + constexpr TypeUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::proto::rpc::webrtc::v1::RequestHeaders* headers_; + ::proto::rpc::webrtc::v1::RequestMessage* message_; + bool rst_stream_; + } type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr data_; - bool eom_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; friend struct ::TableStruct_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ResponseMessage final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.ResponseMessage) */ { +class RequestHeaders final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.RequestHeaders) */ { public: - inline ResponseMessage() : ResponseMessage(nullptr) {} - ~ResponseMessage() override; - template - explicit PROTOBUF_CONSTEXPR ResponseMessage(::google::protobuf::internal::ConstantInitialized); + inline RequestHeaders() : RequestHeaders(nullptr) {} + ~RequestHeaders() override; + explicit PROTOBUF_CONSTEXPR RequestHeaders(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ResponseMessage(const ResponseMessage& from) - : ResponseMessage(nullptr, from) {} - ResponseMessage(ResponseMessage&& from) noexcept - : ResponseMessage() { + RequestHeaders(const RequestHeaders& from); + RequestHeaders(RequestHeaders&& from) noexcept + : RequestHeaders() { *this = ::std::move(from); } - inline ResponseMessage& operator=(const ResponseMessage& from) { + inline RequestHeaders& operator=(const RequestHeaders& from) { CopyFrom(from); return *this; } - inline ResponseMessage& operator=(ResponseMessage&& from) noexcept { + inline RequestHeaders& operator=(RequestHeaders&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -713,164 +675,171 @@ class ResponseMessage final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ResponseMessage& default_instance() { + static const RequestHeaders& default_instance() { return *internal_default_instance(); } - static inline const ResponseMessage* internal_default_instance() { - return reinterpret_cast( - &_ResponseMessage_default_instance_); + static inline const RequestHeaders* internal_default_instance() { + return reinterpret_cast( + &_RequestHeaders_default_instance_); } static constexpr int kIndexInFileMessages = - 7; + 3; - friend void swap(ResponseMessage& a, ResponseMessage& b) { + friend void swap(RequestHeaders& a, RequestHeaders& b) { a.Swap(&b); } - inline void Swap(ResponseMessage* other) { + inline void Swap(RequestHeaders* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ResponseMessage* other) { + void UnsafeArenaSwap(RequestHeaders* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ResponseMessage* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ResponseMessage& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ResponseMessage& from) { - ResponseMessage::MergeImpl(*this, from); + RequestHeaders* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const RequestHeaders& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const RequestHeaders& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ResponseMessage* other); + void SetCachedSize(int size) const final; + void InternalSwap(RequestHeaders* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "proto.rpc.webrtc.v1.ResponseMessage"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.rpc.webrtc.v1.RequestHeaders"; } protected: - explicit ResponseMessage(::google::protobuf::Arena* arena); - ResponseMessage(::google::protobuf::Arena* arena, const ResponseMessage& from); + explicit RequestHeaders(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kPacketMessageFieldNumber = 1, + kMethodFieldNumber = 1, + kMetadataFieldNumber = 2, + kTimeoutFieldNumber = 3, }; - // .proto.rpc.webrtc.v1.PacketMessage packet_message = 1 [json_name = "packetMessage"]; - bool has_packet_message() const; - void clear_packet_message() ; - const ::proto::rpc::webrtc::v1::PacketMessage& packet_message() const; - PROTOBUF_NODISCARD ::proto::rpc::webrtc::v1::PacketMessage* release_packet_message(); - ::proto::rpc::webrtc::v1::PacketMessage* mutable_packet_message(); - void set_allocated_packet_message(::proto::rpc::webrtc::v1::PacketMessage* value); - void unsafe_arena_set_allocated_packet_message(::proto::rpc::webrtc::v1::PacketMessage* value); - ::proto::rpc::webrtc::v1::PacketMessage* unsafe_arena_release_packet_message(); + // string method = 1 [json_name = "method"]; + void clear_method(); + const std::string& method() const; + template + void set_method(ArgT0&& arg0, ArgT... args); + std::string* mutable_method(); + PROTOBUF_NODISCARD std::string* release_method(); + void set_allocated_method(std::string* method); + private: + const std::string& _internal_method() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_method(const std::string& value); + std::string* _internal_mutable_method(); + public: + // .proto.rpc.webrtc.v1.Metadata metadata = 2 [json_name = "metadata"]; + bool has_metadata() const; private: - const ::proto::rpc::webrtc::v1::PacketMessage& _internal_packet_message() const; - ::proto::rpc::webrtc::v1::PacketMessage* _internal_mutable_packet_message(); + bool _internal_has_metadata() const; + public: + void clear_metadata(); + const ::proto::rpc::webrtc::v1::Metadata& metadata() const; + PROTOBUF_NODISCARD ::proto::rpc::webrtc::v1::Metadata* release_metadata(); + ::proto::rpc::webrtc::v1::Metadata* mutable_metadata(); + void set_allocated_metadata(::proto::rpc::webrtc::v1::Metadata* metadata); + private: + const ::proto::rpc::webrtc::v1::Metadata& _internal_metadata() const; + ::proto::rpc::webrtc::v1::Metadata* _internal_mutable_metadata(); + public: + void unsafe_arena_set_allocated_metadata( + ::proto::rpc::webrtc::v1::Metadata* metadata); + ::proto::rpc::webrtc::v1::Metadata* unsafe_arena_release_metadata(); + // .google.protobuf.Duration timeout = 3 [json_name = "timeout"]; + bool has_timeout() const; + private: + bool _internal_has_timeout() const; public: - // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.ResponseMessage) + void clear_timeout(); + const ::PROTOBUF_NAMESPACE_ID::Duration& timeout() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Duration* release_timeout(); + ::PROTOBUF_NAMESPACE_ID::Duration* mutable_timeout(); + void set_allocated_timeout(::PROTOBUF_NAMESPACE_ID::Duration* timeout); + private: + const ::PROTOBUF_NAMESPACE_ID::Duration& _internal_timeout() const; + ::PROTOBUF_NAMESPACE_ID::Duration* _internal_mutable_timeout(); + public: + void unsafe_arena_set_allocated_timeout( + ::PROTOBUF_NAMESPACE_ID::Duration* timeout); + ::PROTOBUF_NAMESPACE_ID::Duration* unsafe_arena_release_timeout(); + + // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.RequestHeaders) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::proto::rpc::webrtc::v1::PacketMessage* packet_message_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr method_; + ::proto::rpc::webrtc::v1::Metadata* metadata_; + ::PROTOBUF_NAMESPACE_ID::Duration* timeout_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class RequestMessage final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.RequestMessage) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.RequestMessage) */ { public: inline RequestMessage() : RequestMessage(nullptr) {} ~RequestMessage() override; - template - explicit PROTOBUF_CONSTEXPR RequestMessage(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR RequestMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline RequestMessage(const RequestMessage& from) - : RequestMessage(nullptr, from) {} + RequestMessage(const RequestMessage& from); RequestMessage(RequestMessage&& from) noexcept : RequestMessage() { *this = ::std::move(from); @@ -882,9 +851,9 @@ class RequestMessage final : } inline RequestMessage& operator=(RequestMessage&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -894,22 +863,13 @@ class RequestMessage final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const RequestMessage& default_instance() { @@ -928,65 +888,63 @@ class RequestMessage final : inline void Swap(RequestMessage* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(RequestMessage* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - RequestMessage* New(::google::protobuf::Arena* arena = nullptr) const final { + RequestMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const RequestMessage& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const RequestMessage& from) { - RequestMessage::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const RequestMessage& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(RequestMessage* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "proto.rpc.webrtc.v1.RequestMessage"; } protected: - explicit RequestMessage(::google::protobuf::Arena* arena); - RequestMessage(::google::protobuf::Arena* arena, const RequestMessage& from); + explicit RequestMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -999,125 +957,77 @@ class RequestMessage final : }; // .proto.rpc.webrtc.v1.PacketMessage packet_message = 2 [json_name = "packetMessage"]; bool has_packet_message() const; - void clear_packet_message() ; + private: + bool _internal_has_packet_message() const; + public: + void clear_packet_message(); const ::proto::rpc::webrtc::v1::PacketMessage& packet_message() const; PROTOBUF_NODISCARD ::proto::rpc::webrtc::v1::PacketMessage* release_packet_message(); ::proto::rpc::webrtc::v1::PacketMessage* mutable_packet_message(); - void set_allocated_packet_message(::proto::rpc::webrtc::v1::PacketMessage* value); - void unsafe_arena_set_allocated_packet_message(::proto::rpc::webrtc::v1::PacketMessage* value); - ::proto::rpc::webrtc::v1::PacketMessage* unsafe_arena_release_packet_message(); - + void set_allocated_packet_message(::proto::rpc::webrtc::v1::PacketMessage* packet_message); private: const ::proto::rpc::webrtc::v1::PacketMessage& _internal_packet_message() const; ::proto::rpc::webrtc::v1::PacketMessage* _internal_mutable_packet_message(); - public: + void unsafe_arena_set_allocated_packet_message( + ::proto::rpc::webrtc::v1::PacketMessage* packet_message); + ::proto::rpc::webrtc::v1::PacketMessage* unsafe_arena_release_packet_message(); + // bool has_message = 1 [json_name = "hasMessage"]; - void clear_has_message() ; + void clear_has_message(); bool has_message() const; void set_has_message(bool value); - private: bool _internal_has_message() const; void _internal_set_has_message(bool value); - public: + // bool eos = 3 [json_name = "eos"]; - void clear_eos() ; + void clear_eos(); bool eos() const; void set_eos(bool value); - private: bool _internal_eos() const; void _internal_set_eos(bool value); - public: + // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.RequestMessage) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::proto::rpc::webrtc::v1::PacketMessage* packet_message_; - bool has_message_; - bool eos_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto; -};// ------------------------------------------------------------------- - -class Metadata_MdEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry< - Metadata_MdEntry_DoNotUse, std::string, ::proto::rpc::webrtc::v1::Strings, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE> { - public: - using SuperType = ::google::protobuf::internal::MapEntry< - Metadata_MdEntry_DoNotUse, std::string, ::proto::rpc::webrtc::v1::Strings, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>; - Metadata_MdEntry_DoNotUse(); - template - explicit PROTOBUF_CONSTEXPR Metadata_MdEntry_DoNotUse( - ::google::protobuf::internal::ConstantInitialized); - explicit Metadata_MdEntry_DoNotUse(::google::protobuf::Arena* arena); - static const Metadata_MdEntry_DoNotUse* internal_default_instance() { - return reinterpret_cast( - &_Metadata_MdEntry_DoNotUse_default_instance_); - } - static bool ValidateKey(std::string* s) { - return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "proto.rpc.webrtc.v1.Metadata.MdEntry.key"); - } - static bool ValidateValue(void*) { return true; } - ::google::protobuf::Metadata GetMetadata() const final; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::proto::rpc::webrtc::v1::PacketMessage* packet_message_; + bool has_message_; + bool eos_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto; }; // ------------------------------------------------------------------- -class Metadata final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.Metadata) */ { +class Response final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.Response) */ { public: - inline Metadata() : Metadata(nullptr) {} - ~Metadata() override; - template - explicit PROTOBUF_CONSTEXPR Metadata(::google::protobuf::internal::ConstantInitialized); + inline Response() : Response(nullptr) {} + ~Response() override; + explicit PROTOBUF_CONSTEXPR Response(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Metadata(const Metadata& from) - : Metadata(nullptr, from) {} - Metadata(Metadata&& from) noexcept - : Metadata() { + Response(const Response& from); + Response(Response&& from) noexcept + : Response() { *this = ::std::move(from); } - inline Metadata& operator=(const Metadata& from) { + inline Response& operator=(const Response& from) { CopyFrom(from); return *this; } - inline Metadata& operator=(Metadata&& from) noexcept { + inline Response& operator=(Response&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1127,181 +1037,230 @@ class Metadata final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Metadata& default_instance() { + static const Response& default_instance() { return *internal_default_instance(); } - static inline const Metadata* internal_default_instance() { - return reinterpret_cast( - &_Metadata_default_instance_); + enum TypeCase { + kHeaders = 2, + kMessage = 3, + kTrailers = 4, + TYPE_NOT_SET = 0, + }; + + static inline const Response* internal_default_instance() { + return reinterpret_cast( + &_Response_default_instance_); } static constexpr int kIndexInFileMessages = - 11; + 5; - friend void swap(Metadata& a, Metadata& b) { + friend void swap(Response& a, Response& b) { a.Swap(&b); } - inline void Swap(Metadata* other) { + inline void Swap(Response* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Metadata* other) { + void UnsafeArenaSwap(Response* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Metadata* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Metadata& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Metadata& from) { - Metadata::MergeImpl(*this, from); + Response* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Response& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Response& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Metadata* other); + void SetCachedSize(int size) const final; + void InternalSwap(Response* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "proto.rpc.webrtc.v1.Metadata"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.rpc.webrtc.v1.Response"; } protected: - explicit Metadata(::google::protobuf::Arena* arena); - Metadata(::google::protobuf::Arena* arena, const Metadata& from); + explicit Response(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- - // accessors ------------------------------------------------------- enum : int { - kMdFieldNumber = 1, + kStreamFieldNumber = 1, + kHeadersFieldNumber = 2, + kMessageFieldNumber = 3, + kTrailersFieldNumber = 4, }; - // map md = 1 [json_name = "md"]; - int md_size() const; + // .proto.rpc.webrtc.v1.Stream stream = 1 [json_name = "stream"]; + bool has_stream() const; private: - int _internal_md_size() const; + bool _internal_has_stream() const; + public: + void clear_stream(); + const ::proto::rpc::webrtc::v1::Stream& stream() const; + PROTOBUF_NODISCARD ::proto::rpc::webrtc::v1::Stream* release_stream(); + ::proto::rpc::webrtc::v1::Stream* mutable_stream(); + void set_allocated_stream(::proto::rpc::webrtc::v1::Stream* stream); + private: + const ::proto::rpc::webrtc::v1::Stream& _internal_stream() const; + ::proto::rpc::webrtc::v1::Stream* _internal_mutable_stream(); + public: + void unsafe_arena_set_allocated_stream( + ::proto::rpc::webrtc::v1::Stream* stream); + ::proto::rpc::webrtc::v1::Stream* unsafe_arena_release_stream(); + // .proto.rpc.webrtc.v1.ResponseHeaders headers = 2 [json_name = "headers"]; + bool has_headers() const; + private: + bool _internal_has_headers() const; + public: + void clear_headers(); + const ::proto::rpc::webrtc::v1::ResponseHeaders& headers() const; + PROTOBUF_NODISCARD ::proto::rpc::webrtc::v1::ResponseHeaders* release_headers(); + ::proto::rpc::webrtc::v1::ResponseHeaders* mutable_headers(); + void set_allocated_headers(::proto::rpc::webrtc::v1::ResponseHeaders* headers); + private: + const ::proto::rpc::webrtc::v1::ResponseHeaders& _internal_headers() const; + ::proto::rpc::webrtc::v1::ResponseHeaders* _internal_mutable_headers(); public: - void clear_md() ; - const ::google::protobuf::Map& md() const; - ::google::protobuf::Map* mutable_md(); + void unsafe_arena_set_allocated_headers( + ::proto::rpc::webrtc::v1::ResponseHeaders* headers); + ::proto::rpc::webrtc::v1::ResponseHeaders* unsafe_arena_release_headers(); + // .proto.rpc.webrtc.v1.ResponseMessage message = 3 [json_name = "message"]; + bool has_message() const; + private: + bool _internal_has_message() const; + public: + void clear_message(); + const ::proto::rpc::webrtc::v1::ResponseMessage& message() const; + PROTOBUF_NODISCARD ::proto::rpc::webrtc::v1::ResponseMessage* release_message(); + ::proto::rpc::webrtc::v1::ResponseMessage* mutable_message(); + void set_allocated_message(::proto::rpc::webrtc::v1::ResponseMessage* message); private: - const ::google::protobuf::Map& _internal_md() const; - ::google::protobuf::Map* _internal_mutable_md(); + const ::proto::rpc::webrtc::v1::ResponseMessage& _internal_message() const; + ::proto::rpc::webrtc::v1::ResponseMessage* _internal_mutable_message(); + public: + void unsafe_arena_set_allocated_message( + ::proto::rpc::webrtc::v1::ResponseMessage* message); + ::proto::rpc::webrtc::v1::ResponseMessage* unsafe_arena_release_message(); + // .proto.rpc.webrtc.v1.ResponseTrailers trailers = 4 [json_name = "trailers"]; + bool has_trailers() const; + private: + bool _internal_has_trailers() const; public: - // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.Metadata) + void clear_trailers(); + const ::proto::rpc::webrtc::v1::ResponseTrailers& trailers() const; + PROTOBUF_NODISCARD ::proto::rpc::webrtc::v1::ResponseTrailers* release_trailers(); + ::proto::rpc::webrtc::v1::ResponseTrailers* mutable_trailers(); + void set_allocated_trailers(::proto::rpc::webrtc::v1::ResponseTrailers* trailers); + private: + const ::proto::rpc::webrtc::v1::ResponseTrailers& _internal_trailers() const; + ::proto::rpc::webrtc::v1::ResponseTrailers* _internal_mutable_trailers(); + public: + void unsafe_arena_set_allocated_trailers( + ::proto::rpc::webrtc::v1::ResponseTrailers* trailers); + ::proto::rpc::webrtc::v1::ResponseTrailers* unsafe_arena_release_trailers(); + + void clear_type(); + TypeCase type_case() const; + // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.Response) private: class _Internal; + void set_has_headers(); + void set_has_message(); + void set_has_trailers(); + + inline bool has_type() const; + inline void clear_has_type(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::proto::rpc::webrtc::v1::Stream* stream_; + union TypeUnion { + constexpr TypeUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::proto::rpc::webrtc::v1::ResponseHeaders* headers_; + ::proto::rpc::webrtc::v1::ResponseMessage* message_; + ::proto::rpc::webrtc::v1::ResponseTrailers* trailers_; + } type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 2, - 39, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::MapField - md_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; friend struct ::TableStruct_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ResponseTrailers final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.ResponseTrailers) */ { +class ResponseHeaders final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.ResponseHeaders) */ { public: - inline ResponseTrailers() : ResponseTrailers(nullptr) {} - ~ResponseTrailers() override; - template - explicit PROTOBUF_CONSTEXPR ResponseTrailers(::google::protobuf::internal::ConstantInitialized); + inline ResponseHeaders() : ResponseHeaders(nullptr) {} + ~ResponseHeaders() override; + explicit PROTOBUF_CONSTEXPR ResponseHeaders(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ResponseTrailers(const ResponseTrailers& from) - : ResponseTrailers(nullptr, from) {} - ResponseTrailers(ResponseTrailers&& from) noexcept - : ResponseTrailers() { + ResponseHeaders(const ResponseHeaders& from); + ResponseHeaders(ResponseHeaders&& from) noexcept + : ResponseHeaders() { *this = ::std::move(from); } - inline ResponseTrailers& operator=(const ResponseTrailers& from) { + inline ResponseHeaders& operator=(const ResponseHeaders& from) { CopyFrom(from); return *this; } - inline ResponseTrailers& operator=(ResponseTrailers&& from) noexcept { + inline ResponseHeaders& operator=(ResponseHeaders&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1311,195 +1270,149 @@ class ResponseTrailers final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ResponseTrailers& default_instance() { + static const ResponseHeaders& default_instance() { return *internal_default_instance(); } - static inline const ResponseTrailers* internal_default_instance() { - return reinterpret_cast( - &_ResponseTrailers_default_instance_); + static inline const ResponseHeaders* internal_default_instance() { + return reinterpret_cast( + &_ResponseHeaders_default_instance_); } static constexpr int kIndexInFileMessages = - 8; + 6; - friend void swap(ResponseTrailers& a, ResponseTrailers& b) { + friend void swap(ResponseHeaders& a, ResponseHeaders& b) { a.Swap(&b); } - inline void Swap(ResponseTrailers* other) { + inline void Swap(ResponseHeaders* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ResponseTrailers* other) { + void UnsafeArenaSwap(ResponseHeaders* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ResponseTrailers* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ResponseTrailers& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ResponseTrailers& from) { - ResponseTrailers::MergeImpl(*this, from); + ResponseHeaders* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ResponseHeaders& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ResponseHeaders& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ResponseTrailers* other); + void SetCachedSize(int size) const final; + void InternalSwap(ResponseHeaders* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "proto.rpc.webrtc.v1.ResponseTrailers"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.rpc.webrtc.v1.ResponseHeaders"; } protected: - explicit ResponseTrailers(::google::protobuf::Arena* arena); - ResponseTrailers(::google::protobuf::Arena* arena, const ResponseTrailers& from); + explicit ResponseHeaders(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kStatusFieldNumber = 1, - kMetadataFieldNumber = 2, + kMetadataFieldNumber = 1, }; - // .google.rpc.Status status = 1 [json_name = "status"]; - bool has_status() const; - void clear_status() ; - const ::google::rpc::Status& status() const; - PROTOBUF_NODISCARD ::google::rpc::Status* release_status(); - ::google::rpc::Status* mutable_status(); - void set_allocated_status(::google::rpc::Status* value); - void unsafe_arena_set_allocated_status(::google::rpc::Status* value); - ::google::rpc::Status* unsafe_arena_release_status(); - + // .proto.rpc.webrtc.v1.Metadata metadata = 1 [json_name = "metadata"]; + bool has_metadata() const; private: - const ::google::rpc::Status& _internal_status() const; - ::google::rpc::Status* _internal_mutable_status(); - + bool _internal_has_metadata() const; public: - // .proto.rpc.webrtc.v1.Metadata metadata = 2 [json_name = "metadata"]; - bool has_metadata() const; - void clear_metadata() ; + void clear_metadata(); const ::proto::rpc::webrtc::v1::Metadata& metadata() const; PROTOBUF_NODISCARD ::proto::rpc::webrtc::v1::Metadata* release_metadata(); ::proto::rpc::webrtc::v1::Metadata* mutable_metadata(); - void set_allocated_metadata(::proto::rpc::webrtc::v1::Metadata* value); - void unsafe_arena_set_allocated_metadata(::proto::rpc::webrtc::v1::Metadata* value); - ::proto::rpc::webrtc::v1::Metadata* unsafe_arena_release_metadata(); - + void set_allocated_metadata(::proto::rpc::webrtc::v1::Metadata* metadata); private: const ::proto::rpc::webrtc::v1::Metadata& _internal_metadata() const; ::proto::rpc::webrtc::v1::Metadata* _internal_mutable_metadata(); - public: - // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.ResponseTrailers) + void unsafe_arena_set_allocated_metadata( + ::proto::rpc::webrtc::v1::Metadata* metadata); + ::proto::rpc::webrtc::v1::Metadata* unsafe_arena_release_metadata(); + + // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.ResponseHeaders) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 2, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::rpc::Status* status_; - ::proto::rpc::webrtc::v1::Metadata* metadata_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::proto::rpc::webrtc::v1::Metadata* metadata_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ResponseHeaders final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.ResponseHeaders) */ { +class ResponseMessage final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.ResponseMessage) */ { public: - inline ResponseHeaders() : ResponseHeaders(nullptr) {} - ~ResponseHeaders() override; - template - explicit PROTOBUF_CONSTEXPR ResponseHeaders(::google::protobuf::internal::ConstantInitialized); + inline ResponseMessage() : ResponseMessage(nullptr) {} + ~ResponseMessage() override; + explicit PROTOBUF_CONSTEXPR ResponseMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ResponseHeaders(const ResponseHeaders& from) - : ResponseHeaders(nullptr, from) {} - ResponseHeaders(ResponseHeaders&& from) noexcept - : ResponseHeaders() { + ResponseMessage(const ResponseMessage& from); + ResponseMessage(ResponseMessage&& from) noexcept + : ResponseMessage() { *this = ::std::move(from); } - inline ResponseHeaders& operator=(const ResponseHeaders& from) { + inline ResponseMessage& operator=(const ResponseMessage& from) { CopyFrom(from); return *this; } - inline ResponseHeaders& operator=(ResponseHeaders&& from) noexcept { + inline ResponseMessage& operator=(ResponseMessage&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1509,178 +1422,149 @@ class ResponseHeaders final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ResponseHeaders& default_instance() { + static const ResponseMessage& default_instance() { return *internal_default_instance(); } - static inline const ResponseHeaders* internal_default_instance() { - return reinterpret_cast( - &_ResponseHeaders_default_instance_); + static inline const ResponseMessage* internal_default_instance() { + return reinterpret_cast( + &_ResponseMessage_default_instance_); } static constexpr int kIndexInFileMessages = - 6; + 7; - friend void swap(ResponseHeaders& a, ResponseHeaders& b) { + friend void swap(ResponseMessage& a, ResponseMessage& b) { a.Swap(&b); } - inline void Swap(ResponseHeaders* other) { + inline void Swap(ResponseMessage* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ResponseHeaders* other) { + void UnsafeArenaSwap(ResponseMessage* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ResponseHeaders* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ResponseHeaders& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ResponseHeaders& from) { - ResponseHeaders::MergeImpl(*this, from); + ResponseMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ResponseMessage& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ResponseMessage& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ResponseHeaders* other); + void SetCachedSize(int size) const final; + void InternalSwap(ResponseMessage* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "proto.rpc.webrtc.v1.ResponseHeaders"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.rpc.webrtc.v1.ResponseMessage"; } protected: - explicit ResponseHeaders(::google::protobuf::Arena* arena); - ResponseHeaders(::google::protobuf::Arena* arena, const ResponseHeaders& from); + explicit ResponseMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kMetadataFieldNumber = 1, + kPacketMessageFieldNumber = 1, }; - // .proto.rpc.webrtc.v1.Metadata metadata = 1 [json_name = "metadata"]; - bool has_metadata() const; - void clear_metadata() ; - const ::proto::rpc::webrtc::v1::Metadata& metadata() const; - PROTOBUF_NODISCARD ::proto::rpc::webrtc::v1::Metadata* release_metadata(); - ::proto::rpc::webrtc::v1::Metadata* mutable_metadata(); - void set_allocated_metadata(::proto::rpc::webrtc::v1::Metadata* value); - void unsafe_arena_set_allocated_metadata(::proto::rpc::webrtc::v1::Metadata* value); - ::proto::rpc::webrtc::v1::Metadata* unsafe_arena_release_metadata(); - + // .proto.rpc.webrtc.v1.PacketMessage packet_message = 1 [json_name = "packetMessage"]; + bool has_packet_message() const; private: - const ::proto::rpc::webrtc::v1::Metadata& _internal_metadata() const; - ::proto::rpc::webrtc::v1::Metadata* _internal_mutable_metadata(); - + bool _internal_has_packet_message() const; public: - // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.ResponseHeaders) + void clear_packet_message(); + const ::proto::rpc::webrtc::v1::PacketMessage& packet_message() const; + PROTOBUF_NODISCARD ::proto::rpc::webrtc::v1::PacketMessage* release_packet_message(); + ::proto::rpc::webrtc::v1::PacketMessage* mutable_packet_message(); + void set_allocated_packet_message(::proto::rpc::webrtc::v1::PacketMessage* packet_message); + private: + const ::proto::rpc::webrtc::v1::PacketMessage& _internal_packet_message() const; + ::proto::rpc::webrtc::v1::PacketMessage* _internal_mutable_packet_message(); + public: + void unsafe_arena_set_allocated_packet_message( + ::proto::rpc::webrtc::v1::PacketMessage* packet_message); + ::proto::rpc::webrtc::v1::PacketMessage* unsafe_arena_release_packet_message(); + + // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.ResponseMessage) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::proto::rpc::webrtc::v1::Metadata* metadata_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::proto::rpc::webrtc::v1::PacketMessage* packet_message_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class RequestHeaders final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.RequestHeaders) */ { +class ResponseTrailers final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.ResponseTrailers) */ { public: - inline RequestHeaders() : RequestHeaders(nullptr) {} - ~RequestHeaders() override; - template - explicit PROTOBUF_CONSTEXPR RequestHeaders(::google::protobuf::internal::ConstantInitialized); + inline ResponseTrailers() : ResponseTrailers(nullptr) {} + ~ResponseTrailers() override; + explicit PROTOBUF_CONSTEXPR ResponseTrailers(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline RequestHeaders(const RequestHeaders& from) - : RequestHeaders(nullptr, from) {} - RequestHeaders(RequestHeaders&& from) noexcept - : RequestHeaders() { + ResponseTrailers(const ResponseTrailers& from); + ResponseTrailers(ResponseTrailers&& from) noexcept + : ResponseTrailers() { *this = ::std::move(from); } - inline RequestHeaders& operator=(const RequestHeaders& from) { + inline ResponseTrailers& operator=(const ResponseTrailers& from) { CopyFrom(from); return *this; } - inline RequestHeaders& operator=(RequestHeaders&& from) noexcept { + inline ResponseTrailers& operator=(ResponseTrailers&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1690,213 +1574,169 @@ class RequestHeaders final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const RequestHeaders& default_instance() { + static const ResponseTrailers& default_instance() { return *internal_default_instance(); } - static inline const RequestHeaders* internal_default_instance() { - return reinterpret_cast( - &_RequestHeaders_default_instance_); + static inline const ResponseTrailers* internal_default_instance() { + return reinterpret_cast( + &_ResponseTrailers_default_instance_); } static constexpr int kIndexInFileMessages = - 3; + 8; - friend void swap(RequestHeaders& a, RequestHeaders& b) { + friend void swap(ResponseTrailers& a, ResponseTrailers& b) { a.Swap(&b); } - inline void Swap(RequestHeaders* other) { + inline void Swap(ResponseTrailers* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RequestHeaders* other) { + void UnsafeArenaSwap(ResponseTrailers* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - RequestHeaders* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const RequestHeaders& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const RequestHeaders& from) { - RequestHeaders::MergeImpl(*this, from); + ResponseTrailers* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ResponseTrailers& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ResponseTrailers& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(RequestHeaders* other); + void SetCachedSize(int size) const final; + void InternalSwap(ResponseTrailers* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "proto.rpc.webrtc.v1.RequestHeaders"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.rpc.webrtc.v1.ResponseTrailers"; } protected: - explicit RequestHeaders(::google::protobuf::Arena* arena); - RequestHeaders(::google::protobuf::Arena* arena, const RequestHeaders& from); + explicit ResponseTrailers(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kMethodFieldNumber = 1, + kStatusFieldNumber = 1, kMetadataFieldNumber = 2, - kTimeoutFieldNumber = 3, }; - // string method = 1 [json_name = "method"]; - void clear_method() ; - const std::string& method() const; - template - void set_method(Arg_&& arg, Args_... args); - std::string* mutable_method(); - PROTOBUF_NODISCARD std::string* release_method(); - void set_allocated_method(std::string* value); - + // .google.rpc.Status status = 1 [json_name = "status"]; + bool has_status() const; private: - const std::string& _internal_method() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_method( - const std::string& value); - std::string* _internal_mutable_method(); - + bool _internal_has_status() const; public: + void clear_status(); + const ::google::rpc::Status& status() const; + PROTOBUF_NODISCARD ::google::rpc::Status* release_status(); + ::google::rpc::Status* mutable_status(); + void set_allocated_status(::google::rpc::Status* status); + private: + const ::google::rpc::Status& _internal_status() const; + ::google::rpc::Status* _internal_mutable_status(); + public: + void unsafe_arena_set_allocated_status( + ::google::rpc::Status* status); + ::google::rpc::Status* unsafe_arena_release_status(); + // .proto.rpc.webrtc.v1.Metadata metadata = 2 [json_name = "metadata"]; bool has_metadata() const; - void clear_metadata() ; + private: + bool _internal_has_metadata() const; + public: + void clear_metadata(); const ::proto::rpc::webrtc::v1::Metadata& metadata() const; PROTOBUF_NODISCARD ::proto::rpc::webrtc::v1::Metadata* release_metadata(); ::proto::rpc::webrtc::v1::Metadata* mutable_metadata(); - void set_allocated_metadata(::proto::rpc::webrtc::v1::Metadata* value); - void unsafe_arena_set_allocated_metadata(::proto::rpc::webrtc::v1::Metadata* value); - ::proto::rpc::webrtc::v1::Metadata* unsafe_arena_release_metadata(); - + void set_allocated_metadata(::proto::rpc::webrtc::v1::Metadata* metadata); private: const ::proto::rpc::webrtc::v1::Metadata& _internal_metadata() const; ::proto::rpc::webrtc::v1::Metadata* _internal_mutable_metadata(); - public: - // .google.protobuf.Duration timeout = 3 [json_name = "timeout"]; - bool has_timeout() const; - void clear_timeout() ; - const ::google::protobuf::Duration& timeout() const; - PROTOBUF_NODISCARD ::google::protobuf::Duration* release_timeout(); - ::google::protobuf::Duration* mutable_timeout(); - void set_allocated_timeout(::google::protobuf::Duration* value); - void unsafe_arena_set_allocated_timeout(::google::protobuf::Duration* value); - ::google::protobuf::Duration* unsafe_arena_release_timeout(); - - private: - const ::google::protobuf::Duration& _internal_timeout() const; - ::google::protobuf::Duration* _internal_mutable_timeout(); + void unsafe_arena_set_allocated_metadata( + ::proto::rpc::webrtc::v1::Metadata* metadata); + ::proto::rpc::webrtc::v1::Metadata* unsafe_arena_release_metadata(); - public: - // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.RequestHeaders) + // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.ResponseTrailers) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 2, - 49, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr method_; - ::proto::rpc::webrtc::v1::Metadata* metadata_; - ::google::protobuf::Duration* timeout_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::google::rpc::Status* status_; + ::proto::rpc::webrtc::v1::Metadata* metadata_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Response final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.Response) */ { +class Strings final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.Strings) */ { public: - inline Response() : Response(nullptr) {} - ~Response() override; - template - explicit PROTOBUF_CONSTEXPR Response(::google::protobuf::internal::ConstantInitialized); + inline Strings() : Strings(nullptr) {} + ~Strings() override; + explicit PROTOBUF_CONSTEXPR Strings(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Response(const Response& from) - : Response(nullptr, from) {} - Response(Response&& from) noexcept - : Response() { + Strings(const Strings& from); + Strings(Strings&& from) noexcept + : Strings() { *this = ::std::move(from); } - inline Response& operator=(const Response& from) { + inline Strings& operator=(const Strings& from) { CopyFrom(from); return *this; } - inline Response& operator=(Response&& from) noexcept { + inline Strings& operator=(Strings&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1906,262 +1746,181 @@ class Response final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Response& default_instance() { + static const Strings& default_instance() { return *internal_default_instance(); } - enum TypeCase { - kHeaders = 2, - kMessage = 3, - kTrailers = 4, - TYPE_NOT_SET = 0, - }; - - static inline const Response* internal_default_instance() { - return reinterpret_cast( - &_Response_default_instance_); + static inline const Strings* internal_default_instance() { + return reinterpret_cast( + &_Strings_default_instance_); } static constexpr int kIndexInFileMessages = - 5; + 9; - friend void swap(Response& a, Response& b) { + friend void swap(Strings& a, Strings& b) { a.Swap(&b); } - inline void Swap(Response* other) { + inline void Swap(Strings* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Response* other) { + void UnsafeArenaSwap(Strings* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Response* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Response& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Response& from) { - Response::MergeImpl(*this, from); + Strings* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Strings& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Strings& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Response* other); + void SetCachedSize(int size) const final; + void InternalSwap(Strings* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "proto.rpc.webrtc.v1.Response"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.rpc.webrtc.v1.Strings"; } protected: - explicit Response(::google::protobuf::Arena* arena); - Response(::google::protobuf::Arena* arena, const Response& from); + explicit Strings(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kStreamFieldNumber = 1, - kHeadersFieldNumber = 2, - kMessageFieldNumber = 3, - kTrailersFieldNumber = 4, + kValuesFieldNumber = 1, }; - // .proto.rpc.webrtc.v1.Stream stream = 1 [json_name = "stream"]; - bool has_stream() const; - void clear_stream() ; - const ::proto::rpc::webrtc::v1::Stream& stream() const; - PROTOBUF_NODISCARD ::proto::rpc::webrtc::v1::Stream* release_stream(); - ::proto::rpc::webrtc::v1::Stream* mutable_stream(); - void set_allocated_stream(::proto::rpc::webrtc::v1::Stream* value); - void unsafe_arena_set_allocated_stream(::proto::rpc::webrtc::v1::Stream* value); - ::proto::rpc::webrtc::v1::Stream* unsafe_arena_release_stream(); - - private: - const ::proto::rpc::webrtc::v1::Stream& _internal_stream() const; - ::proto::rpc::webrtc::v1::Stream* _internal_mutable_stream(); - - public: - // .proto.rpc.webrtc.v1.ResponseHeaders headers = 2 [json_name = "headers"]; - bool has_headers() const; - private: - bool _internal_has_headers() const; - - public: - void clear_headers() ; - const ::proto::rpc::webrtc::v1::ResponseHeaders& headers() const; - PROTOBUF_NODISCARD ::proto::rpc::webrtc::v1::ResponseHeaders* release_headers(); - ::proto::rpc::webrtc::v1::ResponseHeaders* mutable_headers(); - void set_allocated_headers(::proto::rpc::webrtc::v1::ResponseHeaders* value); - void unsafe_arena_set_allocated_headers(::proto::rpc::webrtc::v1::ResponseHeaders* value); - ::proto::rpc::webrtc::v1::ResponseHeaders* unsafe_arena_release_headers(); - - private: - const ::proto::rpc::webrtc::v1::ResponseHeaders& _internal_headers() const; - ::proto::rpc::webrtc::v1::ResponseHeaders* _internal_mutable_headers(); - - public: - // .proto.rpc.webrtc.v1.ResponseMessage message = 3 [json_name = "message"]; - bool has_message() const; - private: - bool _internal_has_message() const; - - public: - void clear_message() ; - const ::proto::rpc::webrtc::v1::ResponseMessage& message() const; - PROTOBUF_NODISCARD ::proto::rpc::webrtc::v1::ResponseMessage* release_message(); - ::proto::rpc::webrtc::v1::ResponseMessage* mutable_message(); - void set_allocated_message(::proto::rpc::webrtc::v1::ResponseMessage* value); - void unsafe_arena_set_allocated_message(::proto::rpc::webrtc::v1::ResponseMessage* value); - ::proto::rpc::webrtc::v1::ResponseMessage* unsafe_arena_release_message(); - + // repeated string values = 1 [json_name = "values"]; + int values_size() const; private: - const ::proto::rpc::webrtc::v1::ResponseMessage& _internal_message() const; - ::proto::rpc::webrtc::v1::ResponseMessage* _internal_mutable_message(); - + int _internal_values_size() const; public: - // .proto.rpc.webrtc.v1.ResponseTrailers trailers = 4 [json_name = "trailers"]; - bool has_trailers() const; + void clear_values(); + const std::string& values(int index) const; + std::string* mutable_values(int index); + void set_values(int index, const std::string& value); + void set_values(int index, std::string&& value); + void set_values(int index, const char* value); + void set_values(int index, const char* value, size_t size); + std::string* add_values(); + void add_values(const std::string& value); + void add_values(std::string&& value); + void add_values(const char* value); + void add_values(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& values() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_values(); private: - bool _internal_has_trailers() const; - + const std::string& _internal_values(int index) const; + std::string* _internal_add_values(); public: - void clear_trailers() ; - const ::proto::rpc::webrtc::v1::ResponseTrailers& trailers() const; - PROTOBUF_NODISCARD ::proto::rpc::webrtc::v1::ResponseTrailers* release_trailers(); - ::proto::rpc::webrtc::v1::ResponseTrailers* mutable_trailers(); - void set_allocated_trailers(::proto::rpc::webrtc::v1::ResponseTrailers* value); - void unsafe_arena_set_allocated_trailers(::proto::rpc::webrtc::v1::ResponseTrailers* value); - ::proto::rpc::webrtc::v1::ResponseTrailers* unsafe_arena_release_trailers(); - private: - const ::proto::rpc::webrtc::v1::ResponseTrailers& _internal_trailers() const; - ::proto::rpc::webrtc::v1::ResponseTrailers* _internal_mutable_trailers(); - - public: - void clear_type(); - TypeCase type_case() const; - // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.Response) + // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.Strings) private: class _Internal; - void set_has_headers(); - void set_has_message(); - void set_has_trailers(); - inline bool has_type() const; - inline void clear_has_type(); + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField values_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto; +}; +// ------------------------------------------------------------------- - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 4, 4, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::proto::rpc::webrtc::v1::Stream* stream_; - union TypeUnion { - constexpr TypeUnion() : _constinit_{} {} - ::google::protobuf::internal::ConstantInitialized _constinit_; - ::proto::rpc::webrtc::v1::ResponseHeaders* headers_; - ::proto::rpc::webrtc::v1::ResponseMessage* message_; - ::proto::rpc::webrtc::v1::ResponseTrailers* trailers_; - } type_; - ::uint32_t _oneof_case_[1]; - - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; +class Metadata_MdEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + Metadata_MdEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR Metadata_MdEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit Metadata_MdEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const Metadata_MdEntry_DoNotUse& other); + static const Metadata_MdEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_Metadata_MdEntry_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, "proto.rpc.webrtc.v1.Metadata.MdEntry.key"); + } + static bool ValidateValue(void*) { return true; } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; friend struct ::TableStruct_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto; -};// ------------------------------------------------------------------- +}; -class Request final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.Request) */ { +// ------------------------------------------------------------------- + +class Metadata final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.Metadata) */ { public: - inline Request() : Request(nullptr) {} - ~Request() override; - template - explicit PROTOBUF_CONSTEXPR Request(::google::protobuf::internal::ConstantInitialized); + inline Metadata() : Metadata(nullptr) {} + ~Metadata() override; + explicit PROTOBUF_CONSTEXPR Metadata(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Request(const Request& from) - : Request(nullptr, from) {} - Request(Request&& from) noexcept - : Request() { + Metadata(const Metadata& from); + Metadata(Metadata&& from) noexcept + : Metadata() { *this = ::std::move(from); } - inline Request& operator=(const Request& from) { + inline Metadata& operator=(const Metadata& from) { CopyFrom(from); return *this; } - inline Request& operator=(Request&& from) noexcept { + inline Metadata& operator=(Metadata&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2171,321 +1930,211 @@ class Request final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Request& default_instance() { + static const Metadata& default_instance() { return *internal_default_instance(); } - enum TypeCase { - kHeaders = 2, - kMessage = 3, - kRstStream = 4, - TYPE_NOT_SET = 0, - }; - - static inline const Request* internal_default_instance() { - return reinterpret_cast( - &_Request_default_instance_); + static inline const Metadata* internal_default_instance() { + return reinterpret_cast( + &_Metadata_default_instance_); } static constexpr int kIndexInFileMessages = - 2; + 11; - friend void swap(Request& a, Request& b) { + friend void swap(Metadata& a, Metadata& b) { a.Swap(&b); } - inline void Swap(Request* other) { + inline void Swap(Metadata* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Request* other) { + void UnsafeArenaSwap(Metadata* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Request* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Request& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Request& from) { - Request::MergeImpl(*this, from); + Metadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Metadata& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Metadata& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Request* other); + void SetCachedSize(int size) const final; + void InternalSwap(Metadata* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "proto.rpc.webrtc.v1.Request"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.rpc.webrtc.v1.Metadata"; } protected: - explicit Request(::google::protobuf::Arena* arena); - Request(::google::protobuf::Arena* arena, const Request& from); + explicit Metadata(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- + // accessors ------------------------------------------------------- enum : int { - kStreamFieldNumber = 1, - kHeadersFieldNumber = 2, - kMessageFieldNumber = 3, - kRstStreamFieldNumber = 4, + kMdFieldNumber = 1, }; - // .proto.rpc.webrtc.v1.Stream stream = 1 [json_name = "stream"]; - bool has_stream() const; - void clear_stream() ; - const ::proto::rpc::webrtc::v1::Stream& stream() const; - PROTOBUF_NODISCARD ::proto::rpc::webrtc::v1::Stream* release_stream(); - ::proto::rpc::webrtc::v1::Stream* mutable_stream(); - void set_allocated_stream(::proto::rpc::webrtc::v1::Stream* value); - void unsafe_arena_set_allocated_stream(::proto::rpc::webrtc::v1::Stream* value); - ::proto::rpc::webrtc::v1::Stream* unsafe_arena_release_stream(); - - private: - const ::proto::rpc::webrtc::v1::Stream& _internal_stream() const; - ::proto::rpc::webrtc::v1::Stream* _internal_mutable_stream(); - - public: - // .proto.rpc.webrtc.v1.RequestHeaders headers = 2 [json_name = "headers"]; - bool has_headers() const; - private: - bool _internal_has_headers() const; - - public: - void clear_headers() ; - const ::proto::rpc::webrtc::v1::RequestHeaders& headers() const; - PROTOBUF_NODISCARD ::proto::rpc::webrtc::v1::RequestHeaders* release_headers(); - ::proto::rpc::webrtc::v1::RequestHeaders* mutable_headers(); - void set_allocated_headers(::proto::rpc::webrtc::v1::RequestHeaders* value); - void unsafe_arena_set_allocated_headers(::proto::rpc::webrtc::v1::RequestHeaders* value); - ::proto::rpc::webrtc::v1::RequestHeaders* unsafe_arena_release_headers(); - - private: - const ::proto::rpc::webrtc::v1::RequestHeaders& _internal_headers() const; - ::proto::rpc::webrtc::v1::RequestHeaders* _internal_mutable_headers(); - - public: - // .proto.rpc.webrtc.v1.RequestMessage message = 3 [json_name = "message"]; - bool has_message() const; + // map md = 1 [json_name = "md"]; + int md_size() const; private: - bool _internal_has_message() const; - + int _internal_md_size() const; public: - void clear_message() ; - const ::proto::rpc::webrtc::v1::RequestMessage& message() const; - PROTOBUF_NODISCARD ::proto::rpc::webrtc::v1::RequestMessage* release_message(); - ::proto::rpc::webrtc::v1::RequestMessage* mutable_message(); - void set_allocated_message(::proto::rpc::webrtc::v1::RequestMessage* value); - void unsafe_arena_set_allocated_message(::proto::rpc::webrtc::v1::RequestMessage* value); - ::proto::rpc::webrtc::v1::RequestMessage* unsafe_arena_release_message(); - + void clear_md(); private: - const ::proto::rpc::webrtc::v1::RequestMessage& _internal_message() const; - ::proto::rpc::webrtc::v1::RequestMessage* _internal_mutable_message(); - + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::proto::rpc::webrtc::v1::Strings >& + _internal_md() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::proto::rpc::webrtc::v1::Strings >* + _internal_mutable_md(); public: - // bool rst_stream = 4 [json_name = "rstStream"]; - bool has_rst_stream() const; - void clear_rst_stream() ; - bool rst_stream() const; - void set_rst_stream(bool value); - - private: - bool _internal_rst_stream() const; - void _internal_set_rst_stream(bool value); + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::proto::rpc::webrtc::v1::Strings >& + md() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::proto::rpc::webrtc::v1::Strings >* + mutable_md(); - public: - void clear_type(); - TypeCase type_case() const; - // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.Request) + // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.Metadata) private: class _Internal; - void set_has_headers(); - void set_has_message(); - void set_has_rst_stream(); - - inline bool has_type() const; - inline void clear_has_type(); - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 4, 3, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::proto::rpc::webrtc::v1::Stream* stream_; - union TypeUnion { - constexpr TypeUnion() : _constinit_{} {} - ::google::protobuf::internal::ConstantInitialized _constinit_; - ::proto::rpc::webrtc::v1::RequestHeaders* headers_; - ::proto::rpc::webrtc::v1::RequestMessage* message_; - bool rst_stream_; - } type_; - ::uint32_t _oneof_case_[1]; - - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + Metadata_MdEntry_DoNotUse, + std::string, ::proto::rpc::webrtc::v1::Strings, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> md_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto; }; - // =================================================================== - - // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ -// ------------------------------------------------------------------- - // PacketMessage // bytes data = 1 [json_name = "data"]; inline void PacketMessage::clear_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.data_.ClearToEmpty(); + data_.ClearToEmpty(); } -inline const std::string& PacketMessage::data() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& PacketMessage::data() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.PacketMessage.data) return _internal_data(); } -template -inline PROTOBUF_ALWAYS_INLINE void PacketMessage::set_data(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.data_.SetBytes(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void PacketMessage::set_data(ArgT0&& arg0, ArgT... args) { + + data_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.rpc.webrtc.v1.PacketMessage.data) } -inline std::string* PacketMessage::mutable_data() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* PacketMessage::mutable_data() { std::string* _s = _internal_mutable_data(); // @@protoc_insertion_point(field_mutable:proto.rpc.webrtc.v1.PacketMessage.data) return _s; } inline const std::string& PacketMessage::_internal_data() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.data_.Get(); + return data_.Get(); } inline void PacketMessage::_internal_set_data(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.data_.Set(value, GetArena()); + + data_.Set(value, GetArenaForAllocation()); } inline std::string* PacketMessage::_internal_mutable_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.data_.Mutable( GetArena()); + + return data_.Mutable(GetArenaForAllocation()); } inline std::string* PacketMessage::release_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:proto.rpc.webrtc.v1.PacketMessage.data) - return _impl_.data_.Release(); -} -inline void PacketMessage::set_allocated_data(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.data_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.data_.IsDefault()) { - _impl_.data_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return data_.Release(); +} +inline void PacketMessage::set_allocated_data(std::string* data) { + if (data != nullptr) { + + } else { + + } + data_.SetAllocated(data, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (data_.IsDefault()) { + data_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:proto.rpc.webrtc.v1.PacketMessage.data) } // bool eom = 2 [json_name = "eom"]; inline void PacketMessage::clear_eom() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.eom_ = false; + eom_ = false; +} +inline bool PacketMessage::_internal_eom() const { + return eom_; } inline bool PacketMessage::eom() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.PacketMessage.eom) return _internal_eom(); } +inline void PacketMessage::_internal_set_eom(bool value) { + + eom_ = value; +} inline void PacketMessage::set_eom(bool value) { _internal_set_eom(value); // @@protoc_insertion_point(field_set:proto.rpc.webrtc.v1.PacketMessage.eom) } -inline bool PacketMessage::_internal_eom() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.eom_; -} -inline void PacketMessage::_internal_set_eom(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.eom_ = value; -} // ------------------------------------------------------------------- @@ -2493,323 +2142,312 @@ inline void PacketMessage::_internal_set_eom(bool value) { // uint64 id = 1 [json_name = "id"]; inline void Stream::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_ = ::uint64_t{0u}; + id_ = uint64_t{0u}; +} +inline uint64_t Stream::_internal_id() const { + return id_; } -inline ::uint64_t Stream::id() const { +inline uint64_t Stream::id() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.Stream.id) return _internal_id(); } -inline void Stream::set_id(::uint64_t value) { +inline void Stream::_internal_set_id(uint64_t value) { + + id_ = value; +} +inline void Stream::set_id(uint64_t value) { _internal_set_id(value); // @@protoc_insertion_point(field_set:proto.rpc.webrtc.v1.Stream.id) } -inline ::uint64_t Stream::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_; -} -inline void Stream::_internal_set_id(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_ = value; -} // ------------------------------------------------------------------- // Request // .proto.rpc.webrtc.v1.Stream stream = 1 [json_name = "stream"]; +inline bool Request::_internal_has_stream() const { + return this != internal_default_instance() && stream_ != nullptr; +} inline bool Request::has_stream() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.stream_ != nullptr); - return value; + return _internal_has_stream(); } inline void Request::clear_stream() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.stream_ != nullptr) _impl_.stream_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && stream_ != nullptr) { + delete stream_; + } + stream_ = nullptr; } inline const ::proto::rpc::webrtc::v1::Stream& Request::_internal_stream() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::proto::rpc::webrtc::v1::Stream* p = _impl_.stream_; - return p != nullptr ? *p : reinterpret_cast(::proto::rpc::webrtc::v1::_Stream_default_instance_); + const ::proto::rpc::webrtc::v1::Stream* p = stream_; + return p != nullptr ? *p : reinterpret_cast( + ::proto::rpc::webrtc::v1::_Stream_default_instance_); } -inline const ::proto::rpc::webrtc::v1::Stream& Request::stream() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::proto::rpc::webrtc::v1::Stream& Request::stream() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.Request.stream) return _internal_stream(); } -inline void Request::unsafe_arena_set_allocated_stream(::proto::rpc::webrtc::v1::Stream* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.stream_); +inline void Request::unsafe_arena_set_allocated_stream( + ::proto::rpc::webrtc::v1::Stream* stream) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(stream_); } - _impl_.stream_ = reinterpret_cast<::proto::rpc::webrtc::v1::Stream*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + stream_ = stream; + if (stream) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.rpc.webrtc.v1.Request.stream) } inline ::proto::rpc::webrtc::v1::Stream* Request::release_stream() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::proto::rpc::webrtc::v1::Stream* released = _impl_.stream_; - _impl_.stream_ = nullptr; + + ::proto::rpc::webrtc::v1::Stream* temp = stream_; + stream_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::proto::rpc::webrtc::v1::Stream* Request::unsafe_arena_release_stream() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:proto.rpc.webrtc.v1.Request.stream) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::proto::rpc::webrtc::v1::Stream* temp = _impl_.stream_; - _impl_.stream_ = nullptr; + + ::proto::rpc::webrtc::v1::Stream* temp = stream_; + stream_ = nullptr; return temp; } inline ::proto::rpc::webrtc::v1::Stream* Request::_internal_mutable_stream() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.stream_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::rpc::webrtc::v1::Stream>(GetArena()); - _impl_.stream_ = reinterpret_cast<::proto::rpc::webrtc::v1::Stream*>(p); + + if (stream_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::rpc::webrtc::v1::Stream>(GetArenaForAllocation()); + stream_ = p; } - return _impl_.stream_; + return stream_; } -inline ::proto::rpc::webrtc::v1::Stream* Request::mutable_stream() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::proto::rpc::webrtc::v1::Stream* Request::mutable_stream() { ::proto::rpc::webrtc::v1::Stream* _msg = _internal_mutable_stream(); // @@protoc_insertion_point(field_mutable:proto.rpc.webrtc.v1.Request.stream) return _msg; } -inline void Request::set_allocated_stream(::proto::rpc::webrtc::v1::Stream* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Request::set_allocated_stream(::proto::rpc::webrtc::v1::Stream* stream) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::proto::rpc::webrtc::v1::Stream*>(_impl_.stream_); + delete stream_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::proto::rpc::webrtc::v1::Stream*>(value)->GetArena(); + if (stream) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(stream); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + stream = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, stream, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.stream_ = reinterpret_cast<::proto::rpc::webrtc::v1::Stream*>(value); + stream_ = stream; // @@protoc_insertion_point(field_set_allocated:proto.rpc.webrtc.v1.Request.stream) } // .proto.rpc.webrtc.v1.RequestHeaders headers = 2 [json_name = "headers"]; -inline bool Request::has_headers() const { - return type_case() == kHeaders; -} inline bool Request::_internal_has_headers() const { return type_case() == kHeaders; } +inline bool Request::has_headers() const { + return _internal_has_headers(); +} inline void Request::set_has_headers() { - _impl_._oneof_case_[0] = kHeaders; + _oneof_case_[0] = kHeaders; } inline void Request::clear_headers() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (type_case() == kHeaders) { - if (GetArena() == nullptr) { - delete _impl_.type_.headers_; + if (_internal_has_headers()) { + if (GetArenaForAllocation() == nullptr) { + delete type_.headers_; } clear_has_type(); } } inline ::proto::rpc::webrtc::v1::RequestHeaders* Request::release_headers() { // @@protoc_insertion_point(field_release:proto.rpc.webrtc.v1.Request.headers) - if (type_case() == kHeaders) { + if (_internal_has_headers()) { clear_has_type(); - auto* temp = _impl_.type_.headers_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::proto::rpc::webrtc::v1::RequestHeaders* temp = type_.headers_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.type_.headers_ = nullptr; + type_.headers_ = nullptr; return temp; } else { return nullptr; } } inline const ::proto::rpc::webrtc::v1::RequestHeaders& Request::_internal_headers() const { - return type_case() == kHeaders ? *_impl_.type_.headers_ : reinterpret_cast<::proto::rpc::webrtc::v1::RequestHeaders&>(::proto::rpc::webrtc::v1::_RequestHeaders_default_instance_); + return _internal_has_headers() + ? *type_.headers_ + : reinterpret_cast< ::proto::rpc::webrtc::v1::RequestHeaders&>(::proto::rpc::webrtc::v1::_RequestHeaders_default_instance_); } -inline const ::proto::rpc::webrtc::v1::RequestHeaders& Request::headers() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::proto::rpc::webrtc::v1::RequestHeaders& Request::headers() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.Request.headers) return _internal_headers(); } inline ::proto::rpc::webrtc::v1::RequestHeaders* Request::unsafe_arena_release_headers() { // @@protoc_insertion_point(field_unsafe_arena_release:proto.rpc.webrtc.v1.Request.headers) - if (type_case() == kHeaders) { + if (_internal_has_headers()) { clear_has_type(); - auto* temp = _impl_.type_.headers_; - _impl_.type_.headers_ = nullptr; + ::proto::rpc::webrtc::v1::RequestHeaders* temp = type_.headers_; + type_.headers_ = nullptr; return temp; } else { return nullptr; } } -inline void Request::unsafe_arena_set_allocated_headers(::proto::rpc::webrtc::v1::RequestHeaders* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void Request::unsafe_arena_set_allocated_headers(::proto::rpc::webrtc::v1::RequestHeaders* headers) { clear_type(); - if (value) { + if (headers) { set_has_headers(); - _impl_.type_.headers_ = value; + type_.headers_ = headers; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.rpc.webrtc.v1.Request.headers) } inline ::proto::rpc::webrtc::v1::RequestHeaders* Request::_internal_mutable_headers() { - if (type_case() != kHeaders) { + if (!_internal_has_headers()) { clear_type(); set_has_headers(); - _impl_.type_.headers_ = CreateMaybeMessage<::proto::rpc::webrtc::v1::RequestHeaders>(GetArena()); + type_.headers_ = CreateMaybeMessage< ::proto::rpc::webrtc::v1::RequestHeaders >(GetArenaForAllocation()); } - return _impl_.type_.headers_; + return type_.headers_; } -inline ::proto::rpc::webrtc::v1::RequestHeaders* Request::mutable_headers() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::proto::rpc::webrtc::v1::RequestHeaders* Request::mutable_headers() { ::proto::rpc::webrtc::v1::RequestHeaders* _msg = _internal_mutable_headers(); // @@protoc_insertion_point(field_mutable:proto.rpc.webrtc.v1.Request.headers) return _msg; } // .proto.rpc.webrtc.v1.RequestMessage message = 3 [json_name = "message"]; -inline bool Request::has_message() const { - return type_case() == kMessage; -} inline bool Request::_internal_has_message() const { return type_case() == kMessage; } +inline bool Request::has_message() const { + return _internal_has_message(); +} inline void Request::set_has_message() { - _impl_._oneof_case_[0] = kMessage; + _oneof_case_[0] = kMessage; } inline void Request::clear_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (type_case() == kMessage) { - if (GetArena() == nullptr) { - delete _impl_.type_.message_; + if (_internal_has_message()) { + if (GetArenaForAllocation() == nullptr) { + delete type_.message_; } clear_has_type(); } } inline ::proto::rpc::webrtc::v1::RequestMessage* Request::release_message() { // @@protoc_insertion_point(field_release:proto.rpc.webrtc.v1.Request.message) - if (type_case() == kMessage) { + if (_internal_has_message()) { clear_has_type(); - auto* temp = _impl_.type_.message_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::proto::rpc::webrtc::v1::RequestMessage* temp = type_.message_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.type_.message_ = nullptr; + type_.message_ = nullptr; return temp; } else { return nullptr; } } inline const ::proto::rpc::webrtc::v1::RequestMessage& Request::_internal_message() const { - return type_case() == kMessage ? *_impl_.type_.message_ : reinterpret_cast<::proto::rpc::webrtc::v1::RequestMessage&>(::proto::rpc::webrtc::v1::_RequestMessage_default_instance_); + return _internal_has_message() + ? *type_.message_ + : reinterpret_cast< ::proto::rpc::webrtc::v1::RequestMessage&>(::proto::rpc::webrtc::v1::_RequestMessage_default_instance_); } -inline const ::proto::rpc::webrtc::v1::RequestMessage& Request::message() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::proto::rpc::webrtc::v1::RequestMessage& Request::message() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.Request.message) return _internal_message(); } inline ::proto::rpc::webrtc::v1::RequestMessage* Request::unsafe_arena_release_message() { // @@protoc_insertion_point(field_unsafe_arena_release:proto.rpc.webrtc.v1.Request.message) - if (type_case() == kMessage) { + if (_internal_has_message()) { clear_has_type(); - auto* temp = _impl_.type_.message_; - _impl_.type_.message_ = nullptr; + ::proto::rpc::webrtc::v1::RequestMessage* temp = type_.message_; + type_.message_ = nullptr; return temp; } else { return nullptr; } } -inline void Request::unsafe_arena_set_allocated_message(::proto::rpc::webrtc::v1::RequestMessage* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void Request::unsafe_arena_set_allocated_message(::proto::rpc::webrtc::v1::RequestMessage* message) { clear_type(); - if (value) { + if (message) { set_has_message(); - _impl_.type_.message_ = value; + type_.message_ = message; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.rpc.webrtc.v1.Request.message) } inline ::proto::rpc::webrtc::v1::RequestMessage* Request::_internal_mutable_message() { - if (type_case() != kMessage) { + if (!_internal_has_message()) { clear_type(); set_has_message(); - _impl_.type_.message_ = CreateMaybeMessage<::proto::rpc::webrtc::v1::RequestMessage>(GetArena()); + type_.message_ = CreateMaybeMessage< ::proto::rpc::webrtc::v1::RequestMessage >(GetArenaForAllocation()); } - return _impl_.type_.message_; + return type_.message_; } -inline ::proto::rpc::webrtc::v1::RequestMessage* Request::mutable_message() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::proto::rpc::webrtc::v1::RequestMessage* Request::mutable_message() { ::proto::rpc::webrtc::v1::RequestMessage* _msg = _internal_mutable_message(); // @@protoc_insertion_point(field_mutable:proto.rpc.webrtc.v1.Request.message) return _msg; } // bool rst_stream = 4 [json_name = "rstStream"]; -inline bool Request::has_rst_stream() const { +inline bool Request::_internal_has_rst_stream() const { return type_case() == kRstStream; } +inline bool Request::has_rst_stream() const { + return _internal_has_rst_stream(); +} inline void Request::set_has_rst_stream() { - _impl_._oneof_case_[0] = kRstStream; + _oneof_case_[0] = kRstStream; } inline void Request::clear_rst_stream() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (type_case() == kRstStream) { - _impl_.type_.rst_stream_ = false; + if (_internal_has_rst_stream()) { + type_.rst_stream_ = false; clear_has_type(); } } -inline bool Request::rst_stream() const { - // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.Request.rst_stream) - return _internal_rst_stream(); -} -inline void Request::set_rst_stream(bool value) { - _internal_set_rst_stream(value); - // @@protoc_insertion_point(field_set:proto.rpc.webrtc.v1.Request.rst_stream) -} inline bool Request::_internal_rst_stream() const { - if (type_case() == kRstStream) { - return _impl_.type_.rst_stream_; + if (_internal_has_rst_stream()) { + return type_.rst_stream_; } return false; } inline void Request::_internal_set_rst_stream(bool value) { - if (type_case() != kRstStream) { + if (!_internal_has_rst_stream()) { clear_type(); set_has_rst_stream(); } - _impl_.type_.rst_stream_ = value; + type_.rst_stream_ = value; +} +inline bool Request::rst_stream() const { + // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.Request.rst_stream) + return _internal_rst_stream(); +} +inline void Request::set_rst_stream(bool value) { + _internal_set_rst_stream(value); + // @@protoc_insertion_point(field_set:proto.rpc.webrtc.v1.Request.rst_stream) } inline bool Request::has_type() const { return type_case() != TYPE_NOT_SET; } inline void Request::clear_has_type() { - _impl_._oneof_case_[0] = TYPE_NOT_SET; + _oneof_case_[0] = TYPE_NOT_SET; } inline Request::TypeCase Request::type_case() const { - return Request::TypeCase(_impl_._oneof_case_[0]); + return Request::TypeCase(_oneof_case_[0]); } // ------------------------------------------------------------------- @@ -2817,241 +2455,226 @@ inline Request::TypeCase Request::type_case() const { // string method = 1 [json_name = "method"]; inline void RequestHeaders::clear_method() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.method_.ClearToEmpty(); + method_.ClearToEmpty(); } -inline const std::string& RequestHeaders::method() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& RequestHeaders::method() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.RequestHeaders.method) return _internal_method(); } -template -inline PROTOBUF_ALWAYS_INLINE void RequestHeaders::set_method(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.method_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void RequestHeaders::set_method(ArgT0&& arg0, ArgT... args) { + + method_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.rpc.webrtc.v1.RequestHeaders.method) } -inline std::string* RequestHeaders::mutable_method() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* RequestHeaders::mutable_method() { std::string* _s = _internal_mutable_method(); // @@protoc_insertion_point(field_mutable:proto.rpc.webrtc.v1.RequestHeaders.method) return _s; } inline const std::string& RequestHeaders::_internal_method() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.method_.Get(); + return method_.Get(); } inline void RequestHeaders::_internal_set_method(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.method_.Set(value, GetArena()); + + method_.Set(value, GetArenaForAllocation()); } inline std::string* RequestHeaders::_internal_mutable_method() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.method_.Mutable( GetArena()); + + return method_.Mutable(GetArenaForAllocation()); } inline std::string* RequestHeaders::release_method() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:proto.rpc.webrtc.v1.RequestHeaders.method) - return _impl_.method_.Release(); -} -inline void RequestHeaders::set_allocated_method(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.method_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.method_.IsDefault()) { - _impl_.method_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return method_.Release(); +} +inline void RequestHeaders::set_allocated_method(std::string* method) { + if (method != nullptr) { + + } else { + + } + method_.SetAllocated(method, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (method_.IsDefault()) { + method_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:proto.rpc.webrtc.v1.RequestHeaders.method) } // .proto.rpc.webrtc.v1.Metadata metadata = 2 [json_name = "metadata"]; +inline bool RequestHeaders::_internal_has_metadata() const { + return this != internal_default_instance() && metadata_ != nullptr; +} inline bool RequestHeaders::has_metadata() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.metadata_ != nullptr); - return value; + return _internal_has_metadata(); } inline void RequestHeaders::clear_metadata() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.metadata_ != nullptr) _impl_.metadata_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && metadata_ != nullptr) { + delete metadata_; + } + metadata_ = nullptr; } inline const ::proto::rpc::webrtc::v1::Metadata& RequestHeaders::_internal_metadata() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::proto::rpc::webrtc::v1::Metadata* p = _impl_.metadata_; - return p != nullptr ? *p : reinterpret_cast(::proto::rpc::webrtc::v1::_Metadata_default_instance_); + const ::proto::rpc::webrtc::v1::Metadata* p = metadata_; + return p != nullptr ? *p : reinterpret_cast( + ::proto::rpc::webrtc::v1::_Metadata_default_instance_); } -inline const ::proto::rpc::webrtc::v1::Metadata& RequestHeaders::metadata() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::proto::rpc::webrtc::v1::Metadata& RequestHeaders::metadata() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.RequestHeaders.metadata) return _internal_metadata(); } -inline void RequestHeaders::unsafe_arena_set_allocated_metadata(::proto::rpc::webrtc::v1::Metadata* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.metadata_); +inline void RequestHeaders::unsafe_arena_set_allocated_metadata( + ::proto::rpc::webrtc::v1::Metadata* metadata) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(metadata_); } - _impl_.metadata_ = reinterpret_cast<::proto::rpc::webrtc::v1::Metadata*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + metadata_ = metadata; + if (metadata) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.rpc.webrtc.v1.RequestHeaders.metadata) } inline ::proto::rpc::webrtc::v1::Metadata* RequestHeaders::release_metadata() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::proto::rpc::webrtc::v1::Metadata* released = _impl_.metadata_; - _impl_.metadata_ = nullptr; + + ::proto::rpc::webrtc::v1::Metadata* temp = metadata_; + metadata_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::proto::rpc::webrtc::v1::Metadata* RequestHeaders::unsafe_arena_release_metadata() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:proto.rpc.webrtc.v1.RequestHeaders.metadata) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::proto::rpc::webrtc::v1::Metadata* temp = _impl_.metadata_; - _impl_.metadata_ = nullptr; + + ::proto::rpc::webrtc::v1::Metadata* temp = metadata_; + metadata_ = nullptr; return temp; } inline ::proto::rpc::webrtc::v1::Metadata* RequestHeaders::_internal_mutable_metadata() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.metadata_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::rpc::webrtc::v1::Metadata>(GetArena()); - _impl_.metadata_ = reinterpret_cast<::proto::rpc::webrtc::v1::Metadata*>(p); + + if (metadata_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::rpc::webrtc::v1::Metadata>(GetArenaForAllocation()); + metadata_ = p; } - return _impl_.metadata_; + return metadata_; } -inline ::proto::rpc::webrtc::v1::Metadata* RequestHeaders::mutable_metadata() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::proto::rpc::webrtc::v1::Metadata* RequestHeaders::mutable_metadata() { ::proto::rpc::webrtc::v1::Metadata* _msg = _internal_mutable_metadata(); // @@protoc_insertion_point(field_mutable:proto.rpc.webrtc.v1.RequestHeaders.metadata) return _msg; } -inline void RequestHeaders::set_allocated_metadata(::proto::rpc::webrtc::v1::Metadata* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void RequestHeaders::set_allocated_metadata(::proto::rpc::webrtc::v1::Metadata* metadata) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::proto::rpc::webrtc::v1::Metadata*>(_impl_.metadata_); + delete metadata_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::proto::rpc::webrtc::v1::Metadata*>(value)->GetArena(); + if (metadata) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(metadata); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + metadata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, metadata, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.metadata_ = reinterpret_cast<::proto::rpc::webrtc::v1::Metadata*>(value); + metadata_ = metadata; // @@protoc_insertion_point(field_set_allocated:proto.rpc.webrtc.v1.RequestHeaders.metadata) } // .google.protobuf.Duration timeout = 3 [json_name = "timeout"]; +inline bool RequestHeaders::_internal_has_timeout() const { + return this != internal_default_instance() && timeout_ != nullptr; +} inline bool RequestHeaders::has_timeout() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.timeout_ != nullptr); - return value; + return _internal_has_timeout(); } -inline const ::google::protobuf::Duration& RequestHeaders::_internal_timeout() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Duration* p = _impl_.timeout_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Duration_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Duration& RequestHeaders::_internal_timeout() const { + const ::PROTOBUF_NAMESPACE_ID::Duration* p = timeout_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Duration_default_instance_); } -inline const ::google::protobuf::Duration& RequestHeaders::timeout() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Duration& RequestHeaders::timeout() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.RequestHeaders.timeout) return _internal_timeout(); } -inline void RequestHeaders::unsafe_arena_set_allocated_timeout(::google::protobuf::Duration* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.timeout_); +inline void RequestHeaders::unsafe_arena_set_allocated_timeout( + ::PROTOBUF_NAMESPACE_ID::Duration* timeout) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(timeout_); } - _impl_.timeout_ = reinterpret_cast<::google::protobuf::Duration*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + timeout_ = timeout; + if (timeout) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.rpc.webrtc.v1.RequestHeaders.timeout) } -inline ::google::protobuf::Duration* RequestHeaders::release_timeout() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Duration* released = _impl_.timeout_; - _impl_.timeout_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Duration* RequestHeaders::release_timeout() { + + ::PROTOBUF_NAMESPACE_ID::Duration* temp = timeout_; + timeout_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Duration* RequestHeaders::unsafe_arena_release_timeout() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Duration* RequestHeaders::unsafe_arena_release_timeout() { // @@protoc_insertion_point(field_release:proto.rpc.webrtc.v1.RequestHeaders.timeout) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Duration* temp = _impl_.timeout_; - _impl_.timeout_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Duration* temp = timeout_; + timeout_ = nullptr; return temp; } -inline ::google::protobuf::Duration* RequestHeaders::_internal_mutable_timeout() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.timeout_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArena()); - _impl_.timeout_ = reinterpret_cast<::google::protobuf::Duration*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Duration* RequestHeaders::_internal_mutable_timeout() { + + if (timeout_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Duration>(GetArenaForAllocation()); + timeout_ = p; } - return _impl_.timeout_; + return timeout_; } -inline ::google::protobuf::Duration* RequestHeaders::mutable_timeout() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Duration* _msg = _internal_mutable_timeout(); +inline ::PROTOBUF_NAMESPACE_ID::Duration* RequestHeaders::mutable_timeout() { + ::PROTOBUF_NAMESPACE_ID::Duration* _msg = _internal_mutable_timeout(); // @@protoc_insertion_point(field_mutable:proto.rpc.webrtc.v1.RequestHeaders.timeout) return _msg; } -inline void RequestHeaders::set_allocated_timeout(::google::protobuf::Duration* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void RequestHeaders::set_allocated_timeout(::PROTOBUF_NAMESPACE_ID::Duration* timeout) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.timeout_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(timeout_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (timeout) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(timeout)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + timeout = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, timeout, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.timeout_ = reinterpret_cast<::google::protobuf::Duration*>(value); + timeout_ = timeout; // @@protoc_insertion_point(field_set_allocated:proto.rpc.webrtc.v1.RequestHeaders.timeout) } @@ -3061,469 +2684,445 @@ inline void RequestHeaders::set_allocated_timeout(::google::protobuf::Duration* // bool has_message = 1 [json_name = "hasMessage"]; inline void RequestMessage::clear_has_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.has_message_ = false; + has_message_ = false; +} +inline bool RequestMessage::_internal_has_message() const { + return has_message_; } inline bool RequestMessage::has_message() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.RequestMessage.has_message) return _internal_has_message(); } +inline void RequestMessage::_internal_set_has_message(bool value) { + + has_message_ = value; +} inline void RequestMessage::set_has_message(bool value) { _internal_set_has_message(value); // @@protoc_insertion_point(field_set:proto.rpc.webrtc.v1.RequestMessage.has_message) } -inline bool RequestMessage::_internal_has_message() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.has_message_; -} -inline void RequestMessage::_internal_set_has_message(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.has_message_ = value; -} // .proto.rpc.webrtc.v1.PacketMessage packet_message = 2 [json_name = "packetMessage"]; +inline bool RequestMessage::_internal_has_packet_message() const { + return this != internal_default_instance() && packet_message_ != nullptr; +} inline bool RequestMessage::has_packet_message() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.packet_message_ != nullptr); - return value; + return _internal_has_packet_message(); } inline void RequestMessage::clear_packet_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.packet_message_ != nullptr) _impl_.packet_message_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && packet_message_ != nullptr) { + delete packet_message_; + } + packet_message_ = nullptr; } inline const ::proto::rpc::webrtc::v1::PacketMessage& RequestMessage::_internal_packet_message() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::proto::rpc::webrtc::v1::PacketMessage* p = _impl_.packet_message_; - return p != nullptr ? *p : reinterpret_cast(::proto::rpc::webrtc::v1::_PacketMessage_default_instance_); + const ::proto::rpc::webrtc::v1::PacketMessage* p = packet_message_; + return p != nullptr ? *p : reinterpret_cast( + ::proto::rpc::webrtc::v1::_PacketMessage_default_instance_); } -inline const ::proto::rpc::webrtc::v1::PacketMessage& RequestMessage::packet_message() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::proto::rpc::webrtc::v1::PacketMessage& RequestMessage::packet_message() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.RequestMessage.packet_message) return _internal_packet_message(); } -inline void RequestMessage::unsafe_arena_set_allocated_packet_message(::proto::rpc::webrtc::v1::PacketMessage* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.packet_message_); +inline void RequestMessage::unsafe_arena_set_allocated_packet_message( + ::proto::rpc::webrtc::v1::PacketMessage* packet_message) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(packet_message_); } - _impl_.packet_message_ = reinterpret_cast<::proto::rpc::webrtc::v1::PacketMessage*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + packet_message_ = packet_message; + if (packet_message) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.rpc.webrtc.v1.RequestMessage.packet_message) } inline ::proto::rpc::webrtc::v1::PacketMessage* RequestMessage::release_packet_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::proto::rpc::webrtc::v1::PacketMessage* released = _impl_.packet_message_; - _impl_.packet_message_ = nullptr; + + ::proto::rpc::webrtc::v1::PacketMessage* temp = packet_message_; + packet_message_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::proto::rpc::webrtc::v1::PacketMessage* RequestMessage::unsafe_arena_release_packet_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:proto.rpc.webrtc.v1.RequestMessage.packet_message) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::proto::rpc::webrtc::v1::PacketMessage* temp = _impl_.packet_message_; - _impl_.packet_message_ = nullptr; + + ::proto::rpc::webrtc::v1::PacketMessage* temp = packet_message_; + packet_message_ = nullptr; return temp; } inline ::proto::rpc::webrtc::v1::PacketMessage* RequestMessage::_internal_mutable_packet_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.packet_message_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::rpc::webrtc::v1::PacketMessage>(GetArena()); - _impl_.packet_message_ = reinterpret_cast<::proto::rpc::webrtc::v1::PacketMessage*>(p); + + if (packet_message_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::rpc::webrtc::v1::PacketMessage>(GetArenaForAllocation()); + packet_message_ = p; } - return _impl_.packet_message_; + return packet_message_; } -inline ::proto::rpc::webrtc::v1::PacketMessage* RequestMessage::mutable_packet_message() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::proto::rpc::webrtc::v1::PacketMessage* RequestMessage::mutable_packet_message() { ::proto::rpc::webrtc::v1::PacketMessage* _msg = _internal_mutable_packet_message(); // @@protoc_insertion_point(field_mutable:proto.rpc.webrtc.v1.RequestMessage.packet_message) return _msg; } -inline void RequestMessage::set_allocated_packet_message(::proto::rpc::webrtc::v1::PacketMessage* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void RequestMessage::set_allocated_packet_message(::proto::rpc::webrtc::v1::PacketMessage* packet_message) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::proto::rpc::webrtc::v1::PacketMessage*>(_impl_.packet_message_); + delete packet_message_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::proto::rpc::webrtc::v1::PacketMessage*>(value)->GetArena(); + if (packet_message) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(packet_message); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + packet_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, packet_message, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.packet_message_ = reinterpret_cast<::proto::rpc::webrtc::v1::PacketMessage*>(value); + packet_message_ = packet_message; // @@protoc_insertion_point(field_set_allocated:proto.rpc.webrtc.v1.RequestMessage.packet_message) } // bool eos = 3 [json_name = "eos"]; inline void RequestMessage::clear_eos() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.eos_ = false; + eos_ = false; +} +inline bool RequestMessage::_internal_eos() const { + return eos_; } inline bool RequestMessage::eos() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.RequestMessage.eos) return _internal_eos(); } +inline void RequestMessage::_internal_set_eos(bool value) { + + eos_ = value; +} inline void RequestMessage::set_eos(bool value) { _internal_set_eos(value); // @@protoc_insertion_point(field_set:proto.rpc.webrtc.v1.RequestMessage.eos) } -inline bool RequestMessage::_internal_eos() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.eos_; -} -inline void RequestMessage::_internal_set_eos(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.eos_ = value; -} // ------------------------------------------------------------------- // Response // .proto.rpc.webrtc.v1.Stream stream = 1 [json_name = "stream"]; +inline bool Response::_internal_has_stream() const { + return this != internal_default_instance() && stream_ != nullptr; +} inline bool Response::has_stream() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.stream_ != nullptr); - return value; + return _internal_has_stream(); } inline void Response::clear_stream() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.stream_ != nullptr) _impl_.stream_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && stream_ != nullptr) { + delete stream_; + } + stream_ = nullptr; } inline const ::proto::rpc::webrtc::v1::Stream& Response::_internal_stream() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::proto::rpc::webrtc::v1::Stream* p = _impl_.stream_; - return p != nullptr ? *p : reinterpret_cast(::proto::rpc::webrtc::v1::_Stream_default_instance_); + const ::proto::rpc::webrtc::v1::Stream* p = stream_; + return p != nullptr ? *p : reinterpret_cast( + ::proto::rpc::webrtc::v1::_Stream_default_instance_); } -inline const ::proto::rpc::webrtc::v1::Stream& Response::stream() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::proto::rpc::webrtc::v1::Stream& Response::stream() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.Response.stream) return _internal_stream(); } -inline void Response::unsafe_arena_set_allocated_stream(::proto::rpc::webrtc::v1::Stream* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.stream_); +inline void Response::unsafe_arena_set_allocated_stream( + ::proto::rpc::webrtc::v1::Stream* stream) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(stream_); } - _impl_.stream_ = reinterpret_cast<::proto::rpc::webrtc::v1::Stream*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + stream_ = stream; + if (stream) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.rpc.webrtc.v1.Response.stream) } inline ::proto::rpc::webrtc::v1::Stream* Response::release_stream() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::proto::rpc::webrtc::v1::Stream* released = _impl_.stream_; - _impl_.stream_ = nullptr; + + ::proto::rpc::webrtc::v1::Stream* temp = stream_; + stream_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::proto::rpc::webrtc::v1::Stream* Response::unsafe_arena_release_stream() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:proto.rpc.webrtc.v1.Response.stream) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::proto::rpc::webrtc::v1::Stream* temp = _impl_.stream_; - _impl_.stream_ = nullptr; + + ::proto::rpc::webrtc::v1::Stream* temp = stream_; + stream_ = nullptr; return temp; } inline ::proto::rpc::webrtc::v1::Stream* Response::_internal_mutable_stream() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.stream_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::rpc::webrtc::v1::Stream>(GetArena()); - _impl_.stream_ = reinterpret_cast<::proto::rpc::webrtc::v1::Stream*>(p); + + if (stream_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::rpc::webrtc::v1::Stream>(GetArenaForAllocation()); + stream_ = p; } - return _impl_.stream_; + return stream_; } -inline ::proto::rpc::webrtc::v1::Stream* Response::mutable_stream() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::proto::rpc::webrtc::v1::Stream* Response::mutable_stream() { ::proto::rpc::webrtc::v1::Stream* _msg = _internal_mutable_stream(); // @@protoc_insertion_point(field_mutable:proto.rpc.webrtc.v1.Response.stream) return _msg; } -inline void Response::set_allocated_stream(::proto::rpc::webrtc::v1::Stream* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Response::set_allocated_stream(::proto::rpc::webrtc::v1::Stream* stream) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::proto::rpc::webrtc::v1::Stream*>(_impl_.stream_); + delete stream_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::proto::rpc::webrtc::v1::Stream*>(value)->GetArena(); + if (stream) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(stream); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + stream = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, stream, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.stream_ = reinterpret_cast<::proto::rpc::webrtc::v1::Stream*>(value); + stream_ = stream; // @@protoc_insertion_point(field_set_allocated:proto.rpc.webrtc.v1.Response.stream) } // .proto.rpc.webrtc.v1.ResponseHeaders headers = 2 [json_name = "headers"]; -inline bool Response::has_headers() const { - return type_case() == kHeaders; -} inline bool Response::_internal_has_headers() const { return type_case() == kHeaders; } +inline bool Response::has_headers() const { + return _internal_has_headers(); +} inline void Response::set_has_headers() { - _impl_._oneof_case_[0] = kHeaders; + _oneof_case_[0] = kHeaders; } inline void Response::clear_headers() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (type_case() == kHeaders) { - if (GetArena() == nullptr) { - delete _impl_.type_.headers_; + if (_internal_has_headers()) { + if (GetArenaForAllocation() == nullptr) { + delete type_.headers_; } clear_has_type(); } } inline ::proto::rpc::webrtc::v1::ResponseHeaders* Response::release_headers() { // @@protoc_insertion_point(field_release:proto.rpc.webrtc.v1.Response.headers) - if (type_case() == kHeaders) { + if (_internal_has_headers()) { clear_has_type(); - auto* temp = _impl_.type_.headers_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::proto::rpc::webrtc::v1::ResponseHeaders* temp = type_.headers_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.type_.headers_ = nullptr; + type_.headers_ = nullptr; return temp; } else { return nullptr; } } inline const ::proto::rpc::webrtc::v1::ResponseHeaders& Response::_internal_headers() const { - return type_case() == kHeaders ? *_impl_.type_.headers_ : reinterpret_cast<::proto::rpc::webrtc::v1::ResponseHeaders&>(::proto::rpc::webrtc::v1::_ResponseHeaders_default_instance_); + return _internal_has_headers() + ? *type_.headers_ + : reinterpret_cast< ::proto::rpc::webrtc::v1::ResponseHeaders&>(::proto::rpc::webrtc::v1::_ResponseHeaders_default_instance_); } -inline const ::proto::rpc::webrtc::v1::ResponseHeaders& Response::headers() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::proto::rpc::webrtc::v1::ResponseHeaders& Response::headers() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.Response.headers) return _internal_headers(); } inline ::proto::rpc::webrtc::v1::ResponseHeaders* Response::unsafe_arena_release_headers() { // @@protoc_insertion_point(field_unsafe_arena_release:proto.rpc.webrtc.v1.Response.headers) - if (type_case() == kHeaders) { + if (_internal_has_headers()) { clear_has_type(); - auto* temp = _impl_.type_.headers_; - _impl_.type_.headers_ = nullptr; + ::proto::rpc::webrtc::v1::ResponseHeaders* temp = type_.headers_; + type_.headers_ = nullptr; return temp; } else { return nullptr; } } -inline void Response::unsafe_arena_set_allocated_headers(::proto::rpc::webrtc::v1::ResponseHeaders* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void Response::unsafe_arena_set_allocated_headers(::proto::rpc::webrtc::v1::ResponseHeaders* headers) { clear_type(); - if (value) { + if (headers) { set_has_headers(); - _impl_.type_.headers_ = value; + type_.headers_ = headers; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.rpc.webrtc.v1.Response.headers) } inline ::proto::rpc::webrtc::v1::ResponseHeaders* Response::_internal_mutable_headers() { - if (type_case() != kHeaders) { + if (!_internal_has_headers()) { clear_type(); set_has_headers(); - _impl_.type_.headers_ = CreateMaybeMessage<::proto::rpc::webrtc::v1::ResponseHeaders>(GetArena()); + type_.headers_ = CreateMaybeMessage< ::proto::rpc::webrtc::v1::ResponseHeaders >(GetArenaForAllocation()); } - return _impl_.type_.headers_; + return type_.headers_; } -inline ::proto::rpc::webrtc::v1::ResponseHeaders* Response::mutable_headers() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::proto::rpc::webrtc::v1::ResponseHeaders* Response::mutable_headers() { ::proto::rpc::webrtc::v1::ResponseHeaders* _msg = _internal_mutable_headers(); // @@protoc_insertion_point(field_mutable:proto.rpc.webrtc.v1.Response.headers) return _msg; } // .proto.rpc.webrtc.v1.ResponseMessage message = 3 [json_name = "message"]; -inline bool Response::has_message() const { - return type_case() == kMessage; -} inline bool Response::_internal_has_message() const { return type_case() == kMessage; } +inline bool Response::has_message() const { + return _internal_has_message(); +} inline void Response::set_has_message() { - _impl_._oneof_case_[0] = kMessage; + _oneof_case_[0] = kMessage; } inline void Response::clear_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (type_case() == kMessage) { - if (GetArena() == nullptr) { - delete _impl_.type_.message_; + if (_internal_has_message()) { + if (GetArenaForAllocation() == nullptr) { + delete type_.message_; } clear_has_type(); } } inline ::proto::rpc::webrtc::v1::ResponseMessage* Response::release_message() { // @@protoc_insertion_point(field_release:proto.rpc.webrtc.v1.Response.message) - if (type_case() == kMessage) { + if (_internal_has_message()) { clear_has_type(); - auto* temp = _impl_.type_.message_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::proto::rpc::webrtc::v1::ResponseMessage* temp = type_.message_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.type_.message_ = nullptr; + type_.message_ = nullptr; return temp; } else { return nullptr; } } inline const ::proto::rpc::webrtc::v1::ResponseMessage& Response::_internal_message() const { - return type_case() == kMessage ? *_impl_.type_.message_ : reinterpret_cast<::proto::rpc::webrtc::v1::ResponseMessage&>(::proto::rpc::webrtc::v1::_ResponseMessage_default_instance_); + return _internal_has_message() + ? *type_.message_ + : reinterpret_cast< ::proto::rpc::webrtc::v1::ResponseMessage&>(::proto::rpc::webrtc::v1::_ResponseMessage_default_instance_); } -inline const ::proto::rpc::webrtc::v1::ResponseMessage& Response::message() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::proto::rpc::webrtc::v1::ResponseMessage& Response::message() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.Response.message) return _internal_message(); } inline ::proto::rpc::webrtc::v1::ResponseMessage* Response::unsafe_arena_release_message() { // @@protoc_insertion_point(field_unsafe_arena_release:proto.rpc.webrtc.v1.Response.message) - if (type_case() == kMessage) { + if (_internal_has_message()) { clear_has_type(); - auto* temp = _impl_.type_.message_; - _impl_.type_.message_ = nullptr; + ::proto::rpc::webrtc::v1::ResponseMessage* temp = type_.message_; + type_.message_ = nullptr; return temp; } else { return nullptr; } } -inline void Response::unsafe_arena_set_allocated_message(::proto::rpc::webrtc::v1::ResponseMessage* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void Response::unsafe_arena_set_allocated_message(::proto::rpc::webrtc::v1::ResponseMessage* message) { clear_type(); - if (value) { + if (message) { set_has_message(); - _impl_.type_.message_ = value; + type_.message_ = message; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.rpc.webrtc.v1.Response.message) } inline ::proto::rpc::webrtc::v1::ResponseMessage* Response::_internal_mutable_message() { - if (type_case() != kMessage) { + if (!_internal_has_message()) { clear_type(); set_has_message(); - _impl_.type_.message_ = CreateMaybeMessage<::proto::rpc::webrtc::v1::ResponseMessage>(GetArena()); + type_.message_ = CreateMaybeMessage< ::proto::rpc::webrtc::v1::ResponseMessage >(GetArenaForAllocation()); } - return _impl_.type_.message_; + return type_.message_; } -inline ::proto::rpc::webrtc::v1::ResponseMessage* Response::mutable_message() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::proto::rpc::webrtc::v1::ResponseMessage* Response::mutable_message() { ::proto::rpc::webrtc::v1::ResponseMessage* _msg = _internal_mutable_message(); // @@protoc_insertion_point(field_mutable:proto.rpc.webrtc.v1.Response.message) return _msg; } // .proto.rpc.webrtc.v1.ResponseTrailers trailers = 4 [json_name = "trailers"]; -inline bool Response::has_trailers() const { - return type_case() == kTrailers; -} inline bool Response::_internal_has_trailers() const { return type_case() == kTrailers; } +inline bool Response::has_trailers() const { + return _internal_has_trailers(); +} inline void Response::set_has_trailers() { - _impl_._oneof_case_[0] = kTrailers; + _oneof_case_[0] = kTrailers; } inline void Response::clear_trailers() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (type_case() == kTrailers) { - if (GetArena() == nullptr) { - delete _impl_.type_.trailers_; + if (_internal_has_trailers()) { + if (GetArenaForAllocation() == nullptr) { + delete type_.trailers_; } clear_has_type(); } } inline ::proto::rpc::webrtc::v1::ResponseTrailers* Response::release_trailers() { // @@protoc_insertion_point(field_release:proto.rpc.webrtc.v1.Response.trailers) - if (type_case() == kTrailers) { + if (_internal_has_trailers()) { clear_has_type(); - auto* temp = _impl_.type_.trailers_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::proto::rpc::webrtc::v1::ResponseTrailers* temp = type_.trailers_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.type_.trailers_ = nullptr; + type_.trailers_ = nullptr; return temp; } else { return nullptr; } } inline const ::proto::rpc::webrtc::v1::ResponseTrailers& Response::_internal_trailers() const { - return type_case() == kTrailers ? *_impl_.type_.trailers_ : reinterpret_cast<::proto::rpc::webrtc::v1::ResponseTrailers&>(::proto::rpc::webrtc::v1::_ResponseTrailers_default_instance_); + return _internal_has_trailers() + ? *type_.trailers_ + : reinterpret_cast< ::proto::rpc::webrtc::v1::ResponseTrailers&>(::proto::rpc::webrtc::v1::_ResponseTrailers_default_instance_); } -inline const ::proto::rpc::webrtc::v1::ResponseTrailers& Response::trailers() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::proto::rpc::webrtc::v1::ResponseTrailers& Response::trailers() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.Response.trailers) return _internal_trailers(); } inline ::proto::rpc::webrtc::v1::ResponseTrailers* Response::unsafe_arena_release_trailers() { // @@protoc_insertion_point(field_unsafe_arena_release:proto.rpc.webrtc.v1.Response.trailers) - if (type_case() == kTrailers) { + if (_internal_has_trailers()) { clear_has_type(); - auto* temp = _impl_.type_.trailers_; - _impl_.type_.trailers_ = nullptr; + ::proto::rpc::webrtc::v1::ResponseTrailers* temp = type_.trailers_; + type_.trailers_ = nullptr; return temp; } else { return nullptr; } } -inline void Response::unsafe_arena_set_allocated_trailers(::proto::rpc::webrtc::v1::ResponseTrailers* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void Response::unsafe_arena_set_allocated_trailers(::proto::rpc::webrtc::v1::ResponseTrailers* trailers) { clear_type(); - if (value) { + if (trailers) { set_has_trailers(); - _impl_.type_.trailers_ = value; + type_.trailers_ = trailers; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.rpc.webrtc.v1.Response.trailers) } inline ::proto::rpc::webrtc::v1::ResponseTrailers* Response::_internal_mutable_trailers() { - if (type_case() != kTrailers) { + if (!_internal_has_trailers()) { clear_type(); set_has_trailers(); - _impl_.type_.trailers_ = CreateMaybeMessage<::proto::rpc::webrtc::v1::ResponseTrailers>(GetArena()); + type_.trailers_ = CreateMaybeMessage< ::proto::rpc::webrtc::v1::ResponseTrailers >(GetArenaForAllocation()); } - return _impl_.type_.trailers_; + return type_.trailers_; } -inline ::proto::rpc::webrtc::v1::ResponseTrailers* Response::mutable_trailers() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::proto::rpc::webrtc::v1::ResponseTrailers* Response::mutable_trailers() { ::proto::rpc::webrtc::v1::ResponseTrailers* _msg = _internal_mutable_trailers(); // @@protoc_insertion_point(field_mutable:proto.rpc.webrtc.v1.Response.trailers) return _msg; @@ -3533,108 +3132,102 @@ inline bool Response::has_type() const { return type_case() != TYPE_NOT_SET; } inline void Response::clear_has_type() { - _impl_._oneof_case_[0] = TYPE_NOT_SET; + _oneof_case_[0] = TYPE_NOT_SET; } inline Response::TypeCase Response::type_case() const { - return Response::TypeCase(_impl_._oneof_case_[0]); + return Response::TypeCase(_oneof_case_[0]); } // ------------------------------------------------------------------- // ResponseHeaders // .proto.rpc.webrtc.v1.Metadata metadata = 1 [json_name = "metadata"]; +inline bool ResponseHeaders::_internal_has_metadata() const { + return this != internal_default_instance() && metadata_ != nullptr; +} inline bool ResponseHeaders::has_metadata() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.metadata_ != nullptr); - return value; + return _internal_has_metadata(); } inline void ResponseHeaders::clear_metadata() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.metadata_ != nullptr) _impl_.metadata_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && metadata_ != nullptr) { + delete metadata_; + } + metadata_ = nullptr; } inline const ::proto::rpc::webrtc::v1::Metadata& ResponseHeaders::_internal_metadata() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::proto::rpc::webrtc::v1::Metadata* p = _impl_.metadata_; - return p != nullptr ? *p : reinterpret_cast(::proto::rpc::webrtc::v1::_Metadata_default_instance_); + const ::proto::rpc::webrtc::v1::Metadata* p = metadata_; + return p != nullptr ? *p : reinterpret_cast( + ::proto::rpc::webrtc::v1::_Metadata_default_instance_); } -inline const ::proto::rpc::webrtc::v1::Metadata& ResponseHeaders::metadata() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::proto::rpc::webrtc::v1::Metadata& ResponseHeaders::metadata() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.ResponseHeaders.metadata) return _internal_metadata(); } -inline void ResponseHeaders::unsafe_arena_set_allocated_metadata(::proto::rpc::webrtc::v1::Metadata* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.metadata_); +inline void ResponseHeaders::unsafe_arena_set_allocated_metadata( + ::proto::rpc::webrtc::v1::Metadata* metadata) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(metadata_); } - _impl_.metadata_ = reinterpret_cast<::proto::rpc::webrtc::v1::Metadata*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + metadata_ = metadata; + if (metadata) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.rpc.webrtc.v1.ResponseHeaders.metadata) } inline ::proto::rpc::webrtc::v1::Metadata* ResponseHeaders::release_metadata() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::proto::rpc::webrtc::v1::Metadata* released = _impl_.metadata_; - _impl_.metadata_ = nullptr; + + ::proto::rpc::webrtc::v1::Metadata* temp = metadata_; + metadata_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::proto::rpc::webrtc::v1::Metadata* ResponseHeaders::unsafe_arena_release_metadata() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:proto.rpc.webrtc.v1.ResponseHeaders.metadata) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::proto::rpc::webrtc::v1::Metadata* temp = _impl_.metadata_; - _impl_.metadata_ = nullptr; + + ::proto::rpc::webrtc::v1::Metadata* temp = metadata_; + metadata_ = nullptr; return temp; } inline ::proto::rpc::webrtc::v1::Metadata* ResponseHeaders::_internal_mutable_metadata() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.metadata_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::rpc::webrtc::v1::Metadata>(GetArena()); - _impl_.metadata_ = reinterpret_cast<::proto::rpc::webrtc::v1::Metadata*>(p); + + if (metadata_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::rpc::webrtc::v1::Metadata>(GetArenaForAllocation()); + metadata_ = p; } - return _impl_.metadata_; + return metadata_; } -inline ::proto::rpc::webrtc::v1::Metadata* ResponseHeaders::mutable_metadata() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::proto::rpc::webrtc::v1::Metadata* ResponseHeaders::mutable_metadata() { ::proto::rpc::webrtc::v1::Metadata* _msg = _internal_mutable_metadata(); // @@protoc_insertion_point(field_mutable:proto.rpc.webrtc.v1.ResponseHeaders.metadata) return _msg; } -inline void ResponseHeaders::set_allocated_metadata(::proto::rpc::webrtc::v1::Metadata* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ResponseHeaders::set_allocated_metadata(::proto::rpc::webrtc::v1::Metadata* metadata) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::proto::rpc::webrtc::v1::Metadata*>(_impl_.metadata_); + delete metadata_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::proto::rpc::webrtc::v1::Metadata*>(value)->GetArena(); + if (metadata) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(metadata); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + metadata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, metadata, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.metadata_ = reinterpret_cast<::proto::rpc::webrtc::v1::Metadata*>(value); + metadata_ = metadata; // @@protoc_insertion_point(field_set_allocated:proto.rpc.webrtc.v1.ResponseHeaders.metadata) } @@ -3643,98 +3236,92 @@ inline void ResponseHeaders::set_allocated_metadata(::proto::rpc::webrtc::v1::Me // ResponseMessage // .proto.rpc.webrtc.v1.PacketMessage packet_message = 1 [json_name = "packetMessage"]; +inline bool ResponseMessage::_internal_has_packet_message() const { + return this != internal_default_instance() && packet_message_ != nullptr; +} inline bool ResponseMessage::has_packet_message() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.packet_message_ != nullptr); - return value; + return _internal_has_packet_message(); } inline void ResponseMessage::clear_packet_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.packet_message_ != nullptr) _impl_.packet_message_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && packet_message_ != nullptr) { + delete packet_message_; + } + packet_message_ = nullptr; } inline const ::proto::rpc::webrtc::v1::PacketMessage& ResponseMessage::_internal_packet_message() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::proto::rpc::webrtc::v1::PacketMessage* p = _impl_.packet_message_; - return p != nullptr ? *p : reinterpret_cast(::proto::rpc::webrtc::v1::_PacketMessage_default_instance_); + const ::proto::rpc::webrtc::v1::PacketMessage* p = packet_message_; + return p != nullptr ? *p : reinterpret_cast( + ::proto::rpc::webrtc::v1::_PacketMessage_default_instance_); } -inline const ::proto::rpc::webrtc::v1::PacketMessage& ResponseMessage::packet_message() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::proto::rpc::webrtc::v1::PacketMessage& ResponseMessage::packet_message() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.ResponseMessage.packet_message) return _internal_packet_message(); } -inline void ResponseMessage::unsafe_arena_set_allocated_packet_message(::proto::rpc::webrtc::v1::PacketMessage* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.packet_message_); +inline void ResponseMessage::unsafe_arena_set_allocated_packet_message( + ::proto::rpc::webrtc::v1::PacketMessage* packet_message) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(packet_message_); } - _impl_.packet_message_ = reinterpret_cast<::proto::rpc::webrtc::v1::PacketMessage*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + packet_message_ = packet_message; + if (packet_message) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.rpc.webrtc.v1.ResponseMessage.packet_message) } inline ::proto::rpc::webrtc::v1::PacketMessage* ResponseMessage::release_packet_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::proto::rpc::webrtc::v1::PacketMessage* released = _impl_.packet_message_; - _impl_.packet_message_ = nullptr; + + ::proto::rpc::webrtc::v1::PacketMessage* temp = packet_message_; + packet_message_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::proto::rpc::webrtc::v1::PacketMessage* ResponseMessage::unsafe_arena_release_packet_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:proto.rpc.webrtc.v1.ResponseMessage.packet_message) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::proto::rpc::webrtc::v1::PacketMessage* temp = _impl_.packet_message_; - _impl_.packet_message_ = nullptr; + + ::proto::rpc::webrtc::v1::PacketMessage* temp = packet_message_; + packet_message_ = nullptr; return temp; } inline ::proto::rpc::webrtc::v1::PacketMessage* ResponseMessage::_internal_mutable_packet_message() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.packet_message_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::rpc::webrtc::v1::PacketMessage>(GetArena()); - _impl_.packet_message_ = reinterpret_cast<::proto::rpc::webrtc::v1::PacketMessage*>(p); + + if (packet_message_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::rpc::webrtc::v1::PacketMessage>(GetArenaForAllocation()); + packet_message_ = p; } - return _impl_.packet_message_; + return packet_message_; } -inline ::proto::rpc::webrtc::v1::PacketMessage* ResponseMessage::mutable_packet_message() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::proto::rpc::webrtc::v1::PacketMessage* ResponseMessage::mutable_packet_message() { ::proto::rpc::webrtc::v1::PacketMessage* _msg = _internal_mutable_packet_message(); // @@protoc_insertion_point(field_mutable:proto.rpc.webrtc.v1.ResponseMessage.packet_message) return _msg; } -inline void ResponseMessage::set_allocated_packet_message(::proto::rpc::webrtc::v1::PacketMessage* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ResponseMessage::set_allocated_packet_message(::proto::rpc::webrtc::v1::PacketMessage* packet_message) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::proto::rpc::webrtc::v1::PacketMessage*>(_impl_.packet_message_); + delete packet_message_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::proto::rpc::webrtc::v1::PacketMessage*>(value)->GetArena(); + if (packet_message) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(packet_message); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + packet_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, packet_message, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.packet_message_ = reinterpret_cast<::proto::rpc::webrtc::v1::PacketMessage*>(value); + packet_message_ = packet_message; // @@protoc_insertion_point(field_set_allocated:proto.rpc.webrtc.v1.ResponseMessage.packet_message) } @@ -3743,189 +3330,177 @@ inline void ResponseMessage::set_allocated_packet_message(::proto::rpc::webrtc:: // ResponseTrailers // .google.rpc.Status status = 1 [json_name = "status"]; +inline bool ResponseTrailers::_internal_has_status() const { + return this != internal_default_instance() && status_ != nullptr; +} inline bool ResponseTrailers::has_status() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.status_ != nullptr); - return value; + return _internal_has_status(); } inline const ::google::rpc::Status& ResponseTrailers::_internal_status() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::rpc::Status* p = _impl_.status_; - return p != nullptr ? *p : reinterpret_cast(::google::rpc::_Status_default_instance_); + const ::google::rpc::Status* p = status_; + return p != nullptr ? *p : reinterpret_cast( + ::google::rpc::_Status_default_instance_); } -inline const ::google::rpc::Status& ResponseTrailers::status() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::rpc::Status& ResponseTrailers::status() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.ResponseTrailers.status) return _internal_status(); } -inline void ResponseTrailers::unsafe_arena_set_allocated_status(::google::rpc::Status* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.status_); +inline void ResponseTrailers::unsafe_arena_set_allocated_status( + ::google::rpc::Status* status) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); } - _impl_.status_ = reinterpret_cast<::google::rpc::Status*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + status_ = status; + if (status) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.rpc.webrtc.v1.ResponseTrailers.status) } inline ::google::rpc::Status* ResponseTrailers::release_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::rpc::Status* released = _impl_.status_; - _impl_.status_ = nullptr; + + ::google::rpc::Status* temp = status_; + status_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::rpc::Status* ResponseTrailers::unsafe_arena_release_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:proto.rpc.webrtc.v1.ResponseTrailers.status) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::rpc::Status* temp = _impl_.status_; - _impl_.status_ = nullptr; + + ::google::rpc::Status* temp = status_; + status_ = nullptr; return temp; } inline ::google::rpc::Status* ResponseTrailers::_internal_mutable_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.status_ == nullptr) { - auto* p = CreateMaybeMessage<::google::rpc::Status>(GetArena()); - _impl_.status_ = reinterpret_cast<::google::rpc::Status*>(p); + + if (status_ == nullptr) { + auto* p = CreateMaybeMessage<::google::rpc::Status>(GetArenaForAllocation()); + status_ = p; } - return _impl_.status_; + return status_; } -inline ::google::rpc::Status* ResponseTrailers::mutable_status() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::rpc::Status* ResponseTrailers::mutable_status() { ::google::rpc::Status* _msg = _internal_mutable_status(); // @@protoc_insertion_point(field_mutable:proto.rpc.webrtc.v1.ResponseTrailers.status) return _msg; } -inline void ResponseTrailers::set_allocated_status(::google::rpc::Status* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ResponseTrailers::set_allocated_status(::google::rpc::Status* status) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.status_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (status) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(status)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, status, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.status_ = reinterpret_cast<::google::rpc::Status*>(value); + status_ = status; // @@protoc_insertion_point(field_set_allocated:proto.rpc.webrtc.v1.ResponseTrailers.status) } // .proto.rpc.webrtc.v1.Metadata metadata = 2 [json_name = "metadata"]; +inline bool ResponseTrailers::_internal_has_metadata() const { + return this != internal_default_instance() && metadata_ != nullptr; +} inline bool ResponseTrailers::has_metadata() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.metadata_ != nullptr); - return value; + return _internal_has_metadata(); } inline void ResponseTrailers::clear_metadata() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.metadata_ != nullptr) _impl_.metadata_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && metadata_ != nullptr) { + delete metadata_; + } + metadata_ = nullptr; } inline const ::proto::rpc::webrtc::v1::Metadata& ResponseTrailers::_internal_metadata() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::proto::rpc::webrtc::v1::Metadata* p = _impl_.metadata_; - return p != nullptr ? *p : reinterpret_cast(::proto::rpc::webrtc::v1::_Metadata_default_instance_); + const ::proto::rpc::webrtc::v1::Metadata* p = metadata_; + return p != nullptr ? *p : reinterpret_cast( + ::proto::rpc::webrtc::v1::_Metadata_default_instance_); } -inline const ::proto::rpc::webrtc::v1::Metadata& ResponseTrailers::metadata() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::proto::rpc::webrtc::v1::Metadata& ResponseTrailers::metadata() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.ResponseTrailers.metadata) return _internal_metadata(); } -inline void ResponseTrailers::unsafe_arena_set_allocated_metadata(::proto::rpc::webrtc::v1::Metadata* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.metadata_); +inline void ResponseTrailers::unsafe_arena_set_allocated_metadata( + ::proto::rpc::webrtc::v1::Metadata* metadata) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(metadata_); } - _impl_.metadata_ = reinterpret_cast<::proto::rpc::webrtc::v1::Metadata*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + metadata_ = metadata; + if (metadata) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.rpc.webrtc.v1.ResponseTrailers.metadata) } inline ::proto::rpc::webrtc::v1::Metadata* ResponseTrailers::release_metadata() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::proto::rpc::webrtc::v1::Metadata* released = _impl_.metadata_; - _impl_.metadata_ = nullptr; + + ::proto::rpc::webrtc::v1::Metadata* temp = metadata_; + metadata_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::proto::rpc::webrtc::v1::Metadata* ResponseTrailers::unsafe_arena_release_metadata() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:proto.rpc.webrtc.v1.ResponseTrailers.metadata) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::proto::rpc::webrtc::v1::Metadata* temp = _impl_.metadata_; - _impl_.metadata_ = nullptr; + + ::proto::rpc::webrtc::v1::Metadata* temp = metadata_; + metadata_ = nullptr; return temp; } inline ::proto::rpc::webrtc::v1::Metadata* ResponseTrailers::_internal_mutable_metadata() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.metadata_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::rpc::webrtc::v1::Metadata>(GetArena()); - _impl_.metadata_ = reinterpret_cast<::proto::rpc::webrtc::v1::Metadata*>(p); + + if (metadata_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::rpc::webrtc::v1::Metadata>(GetArenaForAllocation()); + metadata_ = p; } - return _impl_.metadata_; + return metadata_; } -inline ::proto::rpc::webrtc::v1::Metadata* ResponseTrailers::mutable_metadata() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::proto::rpc::webrtc::v1::Metadata* ResponseTrailers::mutable_metadata() { ::proto::rpc::webrtc::v1::Metadata* _msg = _internal_mutable_metadata(); // @@protoc_insertion_point(field_mutable:proto.rpc.webrtc.v1.ResponseTrailers.metadata) return _msg; } -inline void ResponseTrailers::set_allocated_metadata(::proto::rpc::webrtc::v1::Metadata* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ResponseTrailers::set_allocated_metadata(::proto::rpc::webrtc::v1::Metadata* metadata) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::proto::rpc::webrtc::v1::Metadata*>(_impl_.metadata_); + delete metadata_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::proto::rpc::webrtc::v1::Metadata*>(value)->GetArena(); + if (metadata) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(metadata); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + metadata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, metadata, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.metadata_ = reinterpret_cast<::proto::rpc::webrtc::v1::Metadata*>(value); + metadata_ = metadata; // @@protoc_insertion_point(field_set_allocated:proto.rpc.webrtc.v1.ResponseTrailers.metadata) } @@ -3935,103 +3510,77 @@ inline void ResponseTrailers::set_allocated_metadata(::proto::rpc::webrtc::v1::M // repeated string values = 1 [json_name = "values"]; inline int Strings::_internal_values_size() const { - return _internal_values().size(); + return values_.size(); } inline int Strings::values_size() const { return _internal_values_size(); } inline void Strings::clear_values() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.values_.Clear(); + values_.Clear(); } -inline std::string* Strings::add_values() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_values()->Add(); +inline std::string* Strings::add_values() { + std::string* _s = _internal_add_values(); // @@protoc_insertion_point(field_add_mutable:proto.rpc.webrtc.v1.Strings.values) return _s; } -inline const std::string& Strings::values(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Strings::_internal_values(int index) const { + return values_.Get(index); +} +inline const std::string& Strings::values(int index) const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.Strings.values) - return _internal_values().Get(index); + return _internal_values(index); } -inline std::string* Strings::mutable_values(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Strings::mutable_values(int index) { // @@protoc_insertion_point(field_mutable:proto.rpc.webrtc.v1.Strings.values) - return _internal_mutable_values()->Mutable(index); + return values_.Mutable(index); } inline void Strings::set_values(int index, const std::string& value) { - _internal_mutable_values()->Mutable(index)->assign(value); + values_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set:proto.rpc.webrtc.v1.Strings.values) } inline void Strings::set_values(int index, std::string&& value) { - _internal_mutable_values()->Mutable(index)->assign(std::move(value)); + values_.Mutable(index)->assign(std::move(value)); // @@protoc_insertion_point(field_set:proto.rpc.webrtc.v1.Strings.values) } inline void Strings::set_values(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_values()->Mutable(index)->assign(value); + GOOGLE_DCHECK(value != nullptr); + values_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:proto.rpc.webrtc.v1.Strings.values) } -inline void Strings::set_values(int index, const char* value, - std::size_t size) { - _internal_mutable_values()->Mutable(index)->assign( - reinterpret_cast(value), size); +inline void Strings::set_values(int index, const char* value, size_t size) { + values_.Mutable(index)->assign( + reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:proto.rpc.webrtc.v1.Strings.values) } -inline void Strings::set_values(int index, absl::string_view value) { - _internal_mutable_values()->Mutable(index)->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_set_string_piece:proto.rpc.webrtc.v1.Strings.values) +inline std::string* Strings::_internal_add_values() { + return values_.Add(); } inline void Strings::add_values(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_values()->Add()->assign(value); + values_.Add()->assign(value); // @@protoc_insertion_point(field_add:proto.rpc.webrtc.v1.Strings.values) } inline void Strings::add_values(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_values()->Add(std::move(value)); + values_.Add(std::move(value)); // @@protoc_insertion_point(field_add:proto.rpc.webrtc.v1.Strings.values) } inline void Strings::add_values(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_values()->Add()->assign(value); + GOOGLE_DCHECK(value != nullptr); + values_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:proto.rpc.webrtc.v1.Strings.values) } -inline void Strings::add_values(const char* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_values()->Add()->assign( - reinterpret_cast(value), size); +inline void Strings::add_values(const char* value, size_t size) { + values_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:proto.rpc.webrtc.v1.Strings.values) } -inline void Strings::add_values(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_values()->Add()->assign(value.data(), value.size()); - // @@protoc_insertion_point(field_add_string_piece:proto.rpc.webrtc.v1.Strings.values) -} -inline const ::google::protobuf::RepeatedPtrField& -Strings::values() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +Strings::values() const { // @@protoc_insertion_point(field_list:proto.rpc.webrtc.v1.Strings.values) - return _internal_values(); + return values_; } -inline ::google::protobuf::RepeatedPtrField* -Strings::mutable_values() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +Strings::mutable_values() { // @@protoc_insertion_point(field_mutable_list:proto.rpc.webrtc.v1.Strings.values) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_values(); -} -inline const ::google::protobuf::RepeatedPtrField& -Strings::_internal_values() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.values_; -} -inline ::google::protobuf::RepeatedPtrField* -Strings::_internal_mutable_values() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.values_; + return &values_; } // ------------------------------------------------------------------- @@ -4042,45 +3591,67 @@ Strings::_internal_mutable_values() { // map md = 1 [json_name = "md"]; inline int Metadata::_internal_md_size() const { - return _internal_md().size(); + return md_.size(); } inline int Metadata::md_size() const { return _internal_md_size(); } inline void Metadata::clear_md() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.md_.Clear(); + md_.Clear(); } -inline const ::google::protobuf::Map& Metadata::_internal_md() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.md_.GetMap(); +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::proto::rpc::webrtc::v1::Strings >& +Metadata::_internal_md() const { + return md_.GetMap(); } -inline const ::google::protobuf::Map& Metadata::md() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::proto::rpc::webrtc::v1::Strings >& +Metadata::md() const { // @@protoc_insertion_point(field_map:proto.rpc.webrtc.v1.Metadata.md) return _internal_md(); } -inline ::google::protobuf::Map* Metadata::_internal_mutable_md() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.md_.MutableMap(); +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::proto::rpc::webrtc::v1::Strings >* +Metadata::_internal_mutable_md() { + return md_.MutableMap(); } -inline ::google::protobuf::Map* Metadata::mutable_md() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::proto::rpc::webrtc::v1::Strings >* +Metadata::mutable_md() { // @@protoc_insertion_point(field_mutable_map:proto.rpc.webrtc.v1.Metadata.md) return _internal_mutable_md(); } #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) + } // namespace v1 } // namespace webrtc } // namespace rpc } // namespace proto - // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_proto_2frpc_2fwebrtc_2fv1_2fgrpc_2eproto diff --git a/src/viam/api/proto/rpc/webrtc/v1/signaling.grpc.pb.cc b/src/viam/api/proto/rpc/webrtc/v1/signaling.grpc.pb.cc index 97db12b5f..746810e38 100644 --- a/src/viam/api/proto/rpc/webrtc/v1/signaling.grpc.pb.cc +++ b/src/viam/api/proto/rpc/webrtc/v1/signaling.grpc.pb.cc @@ -6,19 +6,19 @@ #include "proto/rpc/webrtc/v1/signaling.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace proto { namespace rpc { namespace webrtc { @@ -33,93 +33,103 @@ static const char* SignalingService_method_names[] = { std::unique_ptr< SignalingService::Stub> SignalingService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { (void)options; - std::unique_ptr< SignalingService::Stub> stub(new SignalingService::Stub(channel, options)); + std::unique_ptr< SignalingService::Stub> stub(new SignalingService::Stub(channel)); return stub; } -SignalingService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) - : channel_(channel), rpcmethod_Call_(SignalingService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::SERVER_STREAMING, channel) - , rpcmethod_CallUpdate_(SignalingService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_Answer_(SignalingService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::BIDI_STREAMING, channel) - , rpcmethod_OptionalWebRTCConfig_(SignalingService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) +SignalingService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_Call_(SignalingService_method_names[0], ::grpc::internal::RpcMethod::SERVER_STREAMING, channel) + , rpcmethod_CallUpdate_(SignalingService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_Answer_(SignalingService_method_names[2], ::grpc::internal::RpcMethod::BIDI_STREAMING, channel) + , rpcmethod_OptionalWebRTCConfig_(SignalingService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::ClientReader< ::proto::rpc::webrtc::v1::CallResponse>* SignalingService::Stub::CallRaw(::grpc::ClientContext* context, const ::proto::rpc::webrtc::v1::CallRequest& request) { - return ::grpc::internal::ClientReaderFactory< ::proto::rpc::webrtc::v1::CallResponse>::Create(channel_.get(), rpcmethod_Call_, context, request); + return ::grpc_impl::internal::ClientReaderFactory< ::proto::rpc::webrtc::v1::CallResponse>::Create(channel_.get(), rpcmethod_Call_, context, request); } -void SignalingService::Stub::async::Call(::grpc::ClientContext* context, const ::proto::rpc::webrtc::v1::CallRequest* request, ::grpc::ClientReadReactor< ::proto::rpc::webrtc::v1::CallResponse>* reactor) { - ::grpc::internal::ClientCallbackReaderFactory< ::proto::rpc::webrtc::v1::CallResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_Call_, context, request, reactor); +void SignalingService::Stub::experimental_async::Call(::grpc::ClientContext* context, ::proto::rpc::webrtc::v1::CallRequest* request, ::grpc::experimental::ClientReadReactor< ::proto::rpc::webrtc::v1::CallResponse>* reactor) { + ::grpc_impl::internal::ClientCallbackReaderFactory< ::proto::rpc::webrtc::v1::CallResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_Call_, context, request, reactor); } ::grpc::ClientAsyncReader< ::proto::rpc::webrtc::v1::CallResponse>* SignalingService::Stub::AsyncCallRaw(::grpc::ClientContext* context, const ::proto::rpc::webrtc::v1::CallRequest& request, ::grpc::CompletionQueue* cq, void* tag) { - return ::grpc::internal::ClientAsyncReaderFactory< ::proto::rpc::webrtc::v1::CallResponse>::Create(channel_.get(), cq, rpcmethod_Call_, context, request, true, tag); + return ::grpc_impl::internal::ClientAsyncReaderFactory< ::proto::rpc::webrtc::v1::CallResponse>::Create(channel_.get(), cq, rpcmethod_Call_, context, request, true, tag); } ::grpc::ClientAsyncReader< ::proto::rpc::webrtc::v1::CallResponse>* SignalingService::Stub::PrepareAsyncCallRaw(::grpc::ClientContext* context, const ::proto::rpc::webrtc::v1::CallRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncReaderFactory< ::proto::rpc::webrtc::v1::CallResponse>::Create(channel_.get(), cq, rpcmethod_Call_, context, request, false, nullptr); + return ::grpc_impl::internal::ClientAsyncReaderFactory< ::proto::rpc::webrtc::v1::CallResponse>::Create(channel_.get(), cq, rpcmethod_Call_, context, request, false, nullptr); } ::grpc::Status SignalingService::Stub::CallUpdate(::grpc::ClientContext* context, const ::proto::rpc::webrtc::v1::CallUpdateRequest& request, ::proto::rpc::webrtc::v1::CallUpdateResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::proto::rpc::webrtc::v1::CallUpdateRequest, ::proto::rpc::webrtc::v1::CallUpdateResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_CallUpdate_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CallUpdate_, context, request, response); } -void SignalingService::Stub::async::CallUpdate(::grpc::ClientContext* context, const ::proto::rpc::webrtc::v1::CallUpdateRequest* request, ::proto::rpc::webrtc::v1::CallUpdateResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::proto::rpc::webrtc::v1::CallUpdateRequest, ::proto::rpc::webrtc::v1::CallUpdateResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_CallUpdate_, context, request, response, std::move(f)); +void SignalingService::Stub::experimental_async::CallUpdate(::grpc::ClientContext* context, const ::proto::rpc::webrtc::v1::CallUpdateRequest* request, ::proto::rpc::webrtc::v1::CallUpdateResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CallUpdate_, context, request, response, std::move(f)); } -void SignalingService::Stub::async::CallUpdate(::grpc::ClientContext* context, const ::proto::rpc::webrtc::v1::CallUpdateRequest* request, ::proto::rpc::webrtc::v1::CallUpdateResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_CallUpdate_, context, request, response, reactor); +void SignalingService::Stub::experimental_async::CallUpdate(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::proto::rpc::webrtc::v1::CallUpdateResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CallUpdate_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::proto::rpc::webrtc::v1::CallUpdateResponse>* SignalingService::Stub::PrepareAsyncCallUpdateRaw(::grpc::ClientContext* context, const ::proto::rpc::webrtc::v1::CallUpdateRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::proto::rpc::webrtc::v1::CallUpdateResponse, ::proto::rpc::webrtc::v1::CallUpdateRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_CallUpdate_, context, request); +void SignalingService::Stub::experimental_async::CallUpdate(::grpc::ClientContext* context, const ::proto::rpc::webrtc::v1::CallUpdateRequest* request, ::proto::rpc::webrtc::v1::CallUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CallUpdate_, context, request, response, reactor); +} + +void SignalingService::Stub::experimental_async::CallUpdate(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::proto::rpc::webrtc::v1::CallUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CallUpdate_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::proto::rpc::webrtc::v1::CallUpdateResponse>* SignalingService::Stub::AsyncCallUpdateRaw(::grpc::ClientContext* context, const ::proto::rpc::webrtc::v1::CallUpdateRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncCallUpdateRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::proto::rpc::webrtc::v1::CallUpdateResponse>::Create(channel_.get(), cq, rpcmethod_CallUpdate_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::proto::rpc::webrtc::v1::CallUpdateResponse>* SignalingService::Stub::PrepareAsyncCallUpdateRaw(::grpc::ClientContext* context, const ::proto::rpc::webrtc::v1::CallUpdateRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::proto::rpc::webrtc::v1::CallUpdateResponse>::Create(channel_.get(), cq, rpcmethod_CallUpdate_, context, request, false); } ::grpc::ClientReaderWriter< ::proto::rpc::webrtc::v1::AnswerResponse, ::proto::rpc::webrtc::v1::AnswerRequest>* SignalingService::Stub::AnswerRaw(::grpc::ClientContext* context) { - return ::grpc::internal::ClientReaderWriterFactory< ::proto::rpc::webrtc::v1::AnswerResponse, ::proto::rpc::webrtc::v1::AnswerRequest>::Create(channel_.get(), rpcmethod_Answer_, context); + return ::grpc_impl::internal::ClientReaderWriterFactory< ::proto::rpc::webrtc::v1::AnswerResponse, ::proto::rpc::webrtc::v1::AnswerRequest>::Create(channel_.get(), rpcmethod_Answer_, context); } -void SignalingService::Stub::async::Answer(::grpc::ClientContext* context, ::grpc::ClientBidiReactor< ::proto::rpc::webrtc::v1::AnswerResponse,::proto::rpc::webrtc::v1::AnswerRequest>* reactor) { - ::grpc::internal::ClientCallbackReaderWriterFactory< ::proto::rpc::webrtc::v1::AnswerResponse,::proto::rpc::webrtc::v1::AnswerRequest>::Create(stub_->channel_.get(), stub_->rpcmethod_Answer_, context, reactor); +void SignalingService::Stub::experimental_async::Answer(::grpc::ClientContext* context, ::grpc::experimental::ClientBidiReactor< ::proto::rpc::webrtc::v1::AnswerResponse,::proto::rpc::webrtc::v1::AnswerRequest>* reactor) { + ::grpc_impl::internal::ClientCallbackReaderWriterFactory< ::proto::rpc::webrtc::v1::AnswerResponse,::proto::rpc::webrtc::v1::AnswerRequest>::Create(stub_->channel_.get(), stub_->rpcmethod_Answer_, context, reactor); } ::grpc::ClientAsyncReaderWriter< ::proto::rpc::webrtc::v1::AnswerResponse, ::proto::rpc::webrtc::v1::AnswerRequest>* SignalingService::Stub::AsyncAnswerRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) { - return ::grpc::internal::ClientAsyncReaderWriterFactory< ::proto::rpc::webrtc::v1::AnswerResponse, ::proto::rpc::webrtc::v1::AnswerRequest>::Create(channel_.get(), cq, rpcmethod_Answer_, context, true, tag); + return ::grpc_impl::internal::ClientAsyncReaderWriterFactory< ::proto::rpc::webrtc::v1::AnswerResponse, ::proto::rpc::webrtc::v1::AnswerRequest>::Create(channel_.get(), cq, rpcmethod_Answer_, context, true, tag); } ::grpc::ClientAsyncReaderWriter< ::proto::rpc::webrtc::v1::AnswerResponse, ::proto::rpc::webrtc::v1::AnswerRequest>* SignalingService::Stub::PrepareAsyncAnswerRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncReaderWriterFactory< ::proto::rpc::webrtc::v1::AnswerResponse, ::proto::rpc::webrtc::v1::AnswerRequest>::Create(channel_.get(), cq, rpcmethod_Answer_, context, false, nullptr); + return ::grpc_impl::internal::ClientAsyncReaderWriterFactory< ::proto::rpc::webrtc::v1::AnswerResponse, ::proto::rpc::webrtc::v1::AnswerRequest>::Create(channel_.get(), cq, rpcmethod_Answer_, context, false, nullptr); } ::grpc::Status SignalingService::Stub::OptionalWebRTCConfig(::grpc::ClientContext* context, const ::proto::rpc::webrtc::v1::OptionalWebRTCConfigRequest& request, ::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::proto::rpc::webrtc::v1::OptionalWebRTCConfigRequest, ::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_OptionalWebRTCConfig_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_OptionalWebRTCConfig_, context, request, response); } -void SignalingService::Stub::async::OptionalWebRTCConfig(::grpc::ClientContext* context, const ::proto::rpc::webrtc::v1::OptionalWebRTCConfigRequest* request, ::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::proto::rpc::webrtc::v1::OptionalWebRTCConfigRequest, ::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_OptionalWebRTCConfig_, context, request, response, std::move(f)); +void SignalingService::Stub::experimental_async::OptionalWebRTCConfig(::grpc::ClientContext* context, const ::proto::rpc::webrtc::v1::OptionalWebRTCConfigRequest* request, ::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_OptionalWebRTCConfig_, context, request, response, std::move(f)); } -void SignalingService::Stub::async::OptionalWebRTCConfig(::grpc::ClientContext* context, const ::proto::rpc::webrtc::v1::OptionalWebRTCConfigRequest* request, ::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_OptionalWebRTCConfig_, context, request, response, reactor); +void SignalingService::Stub::experimental_async::OptionalWebRTCConfig(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_OptionalWebRTCConfig_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse>* SignalingService::Stub::PrepareAsyncOptionalWebRTCConfigRaw(::grpc::ClientContext* context, const ::proto::rpc::webrtc::v1::OptionalWebRTCConfigRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse, ::proto::rpc::webrtc::v1::OptionalWebRTCConfigRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_OptionalWebRTCConfig_, context, request); +void SignalingService::Stub::experimental_async::OptionalWebRTCConfig(::grpc::ClientContext* context, const ::proto::rpc::webrtc::v1::OptionalWebRTCConfigRequest* request, ::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_OptionalWebRTCConfig_, context, request, response, reactor); +} + +void SignalingService::Stub::experimental_async::OptionalWebRTCConfig(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_OptionalWebRTCConfig_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse>* SignalingService::Stub::AsyncOptionalWebRTCConfigRaw(::grpc::ClientContext* context, const ::proto::rpc::webrtc::v1::OptionalWebRTCConfigRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncOptionalWebRTCConfigRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse>::Create(channel_.get(), cq, rpcmethod_OptionalWebRTCConfig_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse>* SignalingService::Stub::PrepareAsyncOptionalWebRTCConfigRaw(::grpc::ClientContext* context, const ::proto::rpc::webrtc::v1::OptionalWebRTCConfigRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse>::Create(channel_.get(), cq, rpcmethod_OptionalWebRTCConfig_, context, request, false); } SignalingService::Service::Service() { @@ -128,17 +138,17 @@ SignalingService::Service::Service() { ::grpc::internal::RpcMethod::SERVER_STREAMING, new ::grpc::internal::ServerStreamingHandler< SignalingService::Service, ::proto::rpc::webrtc::v1::CallRequest, ::proto::rpc::webrtc::v1::CallResponse>( [](SignalingService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::proto::rpc::webrtc::v1::CallRequest* req, - ::grpc::ServerWriter<::proto::rpc::webrtc::v1::CallResponse>* writer) { + ::grpc_impl::ServerWriter<::proto::rpc::webrtc::v1::CallResponse>* writer) { return service->Call(ctx, req, writer); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( SignalingService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< SignalingService::Service, ::proto::rpc::webrtc::v1::CallUpdateRequest, ::proto::rpc::webrtc::v1::CallUpdateResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< SignalingService::Service, ::proto::rpc::webrtc::v1::CallUpdateRequest, ::proto::rpc::webrtc::v1::CallUpdateResponse>( [](SignalingService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::proto::rpc::webrtc::v1::CallUpdateRequest* req, ::proto::rpc::webrtc::v1::CallUpdateResponse* resp) { return service->CallUpdate(ctx, req, resp); @@ -148,17 +158,17 @@ SignalingService::Service::Service() { ::grpc::internal::RpcMethod::BIDI_STREAMING, new ::grpc::internal::BidiStreamingHandler< SignalingService::Service, ::proto::rpc::webrtc::v1::AnswerResponse, ::proto::rpc::webrtc::v1::AnswerRequest>( [](SignalingService::Service* service, - ::grpc::ServerContext* ctx, - ::grpc::ServerReaderWriter<::proto::rpc::webrtc::v1::AnswerRequest, + ::grpc_impl::ServerContext* ctx, + ::grpc_impl::ServerReaderWriter<::proto::rpc::webrtc::v1::AnswerRequest, ::proto::rpc::webrtc::v1::AnswerResponse>* stream) { return service->Answer(ctx, stream); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( SignalingService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< SignalingService::Service, ::proto::rpc::webrtc::v1::OptionalWebRTCConfigRequest, ::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< SignalingService::Service, ::proto::rpc::webrtc::v1::OptionalWebRTCConfigRequest, ::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse>( [](SignalingService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::proto::rpc::webrtc::v1::OptionalWebRTCConfigRequest* req, ::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse* resp) { return service->OptionalWebRTCConfig(ctx, req, resp); diff --git a/src/viam/api/proto/rpc/webrtc/v1/signaling.grpc.pb.h b/src/viam/api/proto/rpc/webrtc/v1/signaling.grpc.pb.h index e2f319826..13ba58c11 100644 --- a/src/viam/api/proto/rpc/webrtc/v1/signaling.grpc.pb.h +++ b/src/viam/api/proto/rpc/webrtc/v1/signaling.grpc.pb.h @@ -7,23 +7,24 @@ #include "proto/rpc/webrtc/v1/signaling.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace proto { namespace rpc { @@ -90,9 +91,9 @@ class SignalingService final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse>> PrepareAsyncOptionalWebRTCConfig(::grpc::ClientContext* context, const ::proto::rpc::webrtc::v1::OptionalWebRTCConfigRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse>>(PrepareAsyncOptionalWebRTCConfigRaw(context, request, cq)); } - class async_interface { + class experimental_async_interface { public: - virtual ~async_interface() {} + virtual ~experimental_async_interface() {} // Call makes an offer to a client that it expects an answer to. The host // of the client in question should be identified in the rpc-host metadata // field. @@ -101,27 +102,59 @@ class SignalingService final { // Depending on answerer timeouts and concurrency limits, this can result in // hangs on the answerer waiting for a connection to establish, which in turn // can result in the caller waiting for an answerer to be listening. - virtual void Call(::grpc::ClientContext* context, const ::proto::rpc::webrtc::v1::CallRequest* request, ::grpc::ClientReadReactor< ::proto::rpc::webrtc::v1::CallResponse>* reactor) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void Call(::grpc::ClientContext* context, ::proto::rpc::webrtc::v1::CallRequest* request, ::grpc::ClientReadReactor< ::proto::rpc::webrtc::v1::CallResponse>* reactor) = 0; + #else + virtual void Call(::grpc::ClientContext* context, ::proto::rpc::webrtc::v1::CallRequest* request, ::grpc::experimental::ClientReadReactor< ::proto::rpc::webrtc::v1::CallResponse>* reactor) = 0; + #endif // CallUpdate is used to send additional info in relation to a Call. // The host of the client for the call in question should be identified // in the rpc-host metadata field. // In a world where https://github.com/grpc/grpc-web/issues/24 is fixed, // this should be removed in favor of a bidirectional stream on Call. virtual void CallUpdate(::grpc::ClientContext* context, const ::proto::rpc::webrtc::v1::CallUpdateRequest* request, ::proto::rpc::webrtc::v1::CallUpdateResponse* response, std::function) = 0; + virtual void CallUpdate(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::proto::rpc::webrtc::v1::CallUpdateResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void CallUpdate(::grpc::ClientContext* context, const ::proto::rpc::webrtc::v1::CallUpdateRequest* request, ::proto::rpc::webrtc::v1::CallUpdateResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void CallUpdate(::grpc::ClientContext* context, const ::proto::rpc::webrtc::v1::CallUpdateRequest* request, ::proto::rpc::webrtc::v1::CallUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void CallUpdate(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::proto::rpc::webrtc::v1::CallUpdateResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void CallUpdate(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::proto::rpc::webrtc::v1::CallUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Answer sets up an answering service where the caller answers call offers // and responds with answers. // The host(s) to answer for should be in the rpc-host metadata field. + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void Answer(::grpc::ClientContext* context, ::grpc::ClientBidiReactor< ::proto::rpc::webrtc::v1::AnswerResponse,::proto::rpc::webrtc::v1::AnswerRequest>* reactor) = 0; + #else + virtual void Answer(::grpc::ClientContext* context, ::grpc::experimental::ClientBidiReactor< ::proto::rpc::webrtc::v1::AnswerResponse,::proto::rpc::webrtc::v1::AnswerRequest>* reactor) = 0; + #endif // OptionalWebRTCConfig returns any WebRTC configuration the caller may want to use. // The host to get a config for must be in the rpc-host metadata field. virtual void OptionalWebRTCConfig(::grpc::ClientContext* context, const ::proto::rpc::webrtc::v1::OptionalWebRTCConfigRequest* request, ::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse* response, std::function) = 0; + virtual void OptionalWebRTCConfig(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void OptionalWebRTCConfig(::grpc::ClientContext* context, const ::proto::rpc::webrtc::v1::OptionalWebRTCConfigRequest* request, ::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void OptionalWebRTCConfig(::grpc::ClientContext* context, const ::proto::rpc::webrtc::v1::OptionalWebRTCConfigRequest* request, ::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void OptionalWebRTCConfig(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void OptionalWebRTCConfig(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif }; - typedef class async_interface experimental_async_interface; - virtual class async_interface* async() { return nullptr; } - class async_interface* experimental_async() { return async(); } - private: + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef class experimental_async_interface async_interface; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + async_interface* async() { return experimental_async(); } + #endif + virtual class experimental_async_interface* experimental_async() { return nullptr; } + private: virtual ::grpc::ClientReaderInterface< ::proto::rpc::webrtc::v1::CallResponse>* CallRaw(::grpc::ClientContext* context, const ::proto::rpc::webrtc::v1::CallRequest& request) = 0; virtual ::grpc::ClientAsyncReaderInterface< ::proto::rpc::webrtc::v1::CallResponse>* AsyncCallRaw(::grpc::ClientContext* context, const ::proto::rpc::webrtc::v1::CallRequest& request, ::grpc::CompletionQueue* cq, void* tag) = 0; virtual ::grpc::ClientAsyncReaderInterface< ::proto::rpc::webrtc::v1::CallResponse>* PrepareAsyncCallRaw(::grpc::ClientContext* context, const ::proto::rpc::webrtc::v1::CallRequest& request, ::grpc::CompletionQueue* cq) = 0; @@ -135,7 +168,7 @@ class SignalingService final { }; class Stub final : public StubInterface { public: - Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); std::unique_ptr< ::grpc::ClientReader< ::proto::rpc::webrtc::v1::CallResponse>> Call(::grpc::ClientContext* context, const ::proto::rpc::webrtc::v1::CallRequest& request) { return std::unique_ptr< ::grpc::ClientReader< ::proto::rpc::webrtc::v1::CallResponse>>(CallRaw(context, request)); } @@ -168,26 +201,54 @@ class SignalingService final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse>> PrepareAsyncOptionalWebRTCConfig(::grpc::ClientContext* context, const ::proto::rpc::webrtc::v1::OptionalWebRTCConfigRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse>>(PrepareAsyncOptionalWebRTCConfigRaw(context, request, cq)); } - class async final : - public StubInterface::async_interface { + class experimental_async final : + public StubInterface::experimental_async_interface { public: - void Call(::grpc::ClientContext* context, const ::proto::rpc::webrtc::v1::CallRequest* request, ::grpc::ClientReadReactor< ::proto::rpc::webrtc::v1::CallResponse>* reactor) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void Call(::grpc::ClientContext* context, ::proto::rpc::webrtc::v1::CallRequest* request, ::grpc::ClientReadReactor< ::proto::rpc::webrtc::v1::CallResponse>* reactor) override; + #else + void Call(::grpc::ClientContext* context, ::proto::rpc::webrtc::v1::CallRequest* request, ::grpc::experimental::ClientReadReactor< ::proto::rpc::webrtc::v1::CallResponse>* reactor) override; + #endif void CallUpdate(::grpc::ClientContext* context, const ::proto::rpc::webrtc::v1::CallUpdateRequest* request, ::proto::rpc::webrtc::v1::CallUpdateResponse* response, std::function) override; + void CallUpdate(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::proto::rpc::webrtc::v1::CallUpdateResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void CallUpdate(::grpc::ClientContext* context, const ::proto::rpc::webrtc::v1::CallUpdateRequest* request, ::proto::rpc::webrtc::v1::CallUpdateResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void CallUpdate(::grpc::ClientContext* context, const ::proto::rpc::webrtc::v1::CallUpdateRequest* request, ::proto::rpc::webrtc::v1::CallUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void CallUpdate(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::proto::rpc::webrtc::v1::CallUpdateResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void CallUpdate(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::proto::rpc::webrtc::v1::CallUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void Answer(::grpc::ClientContext* context, ::grpc::ClientBidiReactor< ::proto::rpc::webrtc::v1::AnswerResponse,::proto::rpc::webrtc::v1::AnswerRequest>* reactor) override; + #else + void Answer(::grpc::ClientContext* context, ::grpc::experimental::ClientBidiReactor< ::proto::rpc::webrtc::v1::AnswerResponse,::proto::rpc::webrtc::v1::AnswerRequest>* reactor) override; + #endif void OptionalWebRTCConfig(::grpc::ClientContext* context, const ::proto::rpc::webrtc::v1::OptionalWebRTCConfigRequest* request, ::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse* response, std::function) override; + void OptionalWebRTCConfig(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void OptionalWebRTCConfig(::grpc::ClientContext* context, const ::proto::rpc::webrtc::v1::OptionalWebRTCConfigRequest* request, ::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void OptionalWebRTCConfig(::grpc::ClientContext* context, const ::proto::rpc::webrtc::v1::OptionalWebRTCConfigRequest* request, ::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void OptionalWebRTCConfig(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void OptionalWebRTCConfig(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif private: friend class Stub; - explicit async(Stub* stub): stub_(stub) { } + explicit experimental_async(Stub* stub): stub_(stub) { } Stub* stub() { return stub_; } Stub* stub_; }; - class async* async() override { return &async_stub_; } + class experimental_async_interface* experimental_async() override { return &async_stub_; } private: std::shared_ptr< ::grpc::ChannelInterface> channel_; - class async async_stub_{this}; + class experimental_async async_stub_{this}; ::grpc::ClientReader< ::proto::rpc::webrtc::v1::CallResponse>* CallRaw(::grpc::ClientContext* context, const ::proto::rpc::webrtc::v1::CallRequest& request) override; ::grpc::ClientAsyncReader< ::proto::rpc::webrtc::v1::CallResponse>* AsyncCallRaw(::grpc::ClientContext* context, const ::proto::rpc::webrtc::v1::CallRequest& request, ::grpc::CompletionQueue* cq, void* tag) override; ::grpc::ClientAsyncReader< ::proto::rpc::webrtc::v1::CallResponse>* PrepareAsyncCallRaw(::grpc::ClientContext* context, const ::proto::rpc::webrtc::v1::CallRequest& request, ::grpc::CompletionQueue* cq) override; @@ -314,17 +375,27 @@ class SignalingService final { }; typedef WithAsyncMethod_Call > > > AsyncService; template - class WithCallbackMethod_Call : public BaseClass { + class ExperimentalWithCallbackMethod_Call : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_Call() { - ::grpc::Service::MarkMethodCallback(0, - new ::grpc::internal::CallbackServerStreamingHandler< ::proto::rpc::webrtc::v1::CallRequest, ::proto::rpc::webrtc::v1::CallResponse>( + ExperimentalWithCallbackMethod_Call() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(0, + new ::grpc_impl::internal::CallbackServerStreamingHandler< ::proto::rpc::webrtc::v1::CallRequest, ::proto::rpc::webrtc::v1::CallResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::proto::rpc::webrtc::v1::CallRequest* request) { return this->Call(context, request); })); - } - ~WithCallbackMethod_Call() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::proto::rpc::webrtc::v1::CallRequest* request) { return this->Call(context, request); })); + } + ~ExperimentalWithCallbackMethod_Call() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -332,26 +403,46 @@ class SignalingService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerWriteReactor< ::proto::rpc::webrtc::v1::CallResponse>* Call( - ::grpc::CallbackServerContext* /*context*/, const ::proto::rpc::webrtc::v1::CallRequest* /*request*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::proto::rpc::webrtc::v1::CallRequest* /*request*/) + #else + virtual ::grpc::experimental::ServerWriteReactor< ::proto::rpc::webrtc::v1::CallResponse>* Call( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::proto::rpc::webrtc::v1::CallRequest* /*request*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_CallUpdate : public BaseClass { + class ExperimentalWithCallbackMethod_CallUpdate : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_CallUpdate() { - ::grpc::Service::MarkMethodCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::proto::rpc::webrtc::v1::CallUpdateRequest, ::proto::rpc::webrtc::v1::CallUpdateResponse>( + ExperimentalWithCallbackMethod_CallUpdate() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::proto::rpc::webrtc::v1::CallUpdateRequest, ::proto::rpc::webrtc::v1::CallUpdateResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::proto::rpc::webrtc::v1::CallUpdateRequest* request, ::proto::rpc::webrtc::v1::CallUpdateResponse* response) { return this->CallUpdate(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::proto::rpc::webrtc::v1::CallUpdateRequest* request, ::proto::rpc::webrtc::v1::CallUpdateResponse* response) { return this->CallUpdate(context, request, response); }));} void SetMessageAllocatorFor_CallUpdate( - ::grpc::MessageAllocator< ::proto::rpc::webrtc::v1::CallUpdateRequest, ::proto::rpc::webrtc::v1::CallUpdateResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::proto::rpc::webrtc::v1::CallUpdateRequest, ::proto::rpc::webrtc::v1::CallUpdateResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); - static_cast<::grpc::internal::CallbackUnaryHandler< ::proto::rpc::webrtc::v1::CallUpdateRequest, ::proto::rpc::webrtc::v1::CallUpdateResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(1); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::proto::rpc::webrtc::v1::CallUpdateRequest, ::proto::rpc::webrtc::v1::CallUpdateResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_CallUpdate() override { + ~ExperimentalWithCallbackMethod_CallUpdate() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -359,21 +450,37 @@ class SignalingService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* CallUpdate( - ::grpc::CallbackServerContext* /*context*/, const ::proto::rpc::webrtc::v1::CallUpdateRequest* /*request*/, ::proto::rpc::webrtc::v1::CallUpdateResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::proto::rpc::webrtc::v1::CallUpdateRequest* /*request*/, ::proto::rpc::webrtc::v1::CallUpdateResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* CallUpdate( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::proto::rpc::webrtc::v1::CallUpdateRequest* /*request*/, ::proto::rpc::webrtc::v1::CallUpdateResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_Answer : public BaseClass { + class ExperimentalWithCallbackMethod_Answer : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_Answer() { - ::grpc::Service::MarkMethodCallback(2, - new ::grpc::internal::CallbackBidiHandler< ::proto::rpc::webrtc::v1::AnswerResponse, ::proto::rpc::webrtc::v1::AnswerRequest>( + ExperimentalWithCallbackMethod_Answer() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(2, + new ::grpc_impl::internal::CallbackBidiHandler< ::proto::rpc::webrtc::v1::AnswerResponse, ::proto::rpc::webrtc::v1::AnswerRequest>( [this]( - ::grpc::CallbackServerContext* context) { return this->Answer(context); })); - } - ~WithCallbackMethod_Answer() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context) { return this->Answer(context); })); + } + ~ExperimentalWithCallbackMethod_Answer() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -381,27 +488,46 @@ class SignalingService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerBidiReactor< ::proto::rpc::webrtc::v1::AnswerResponse, ::proto::rpc::webrtc::v1::AnswerRequest>* Answer( ::grpc::CallbackServerContext* /*context*/) + #else + virtual ::grpc::experimental::ServerBidiReactor< ::proto::rpc::webrtc::v1::AnswerResponse, ::proto::rpc::webrtc::v1::AnswerRequest>* Answer( + ::grpc::experimental::CallbackServerContext* /*context*/) + #endif { return nullptr; } }; template - class WithCallbackMethod_OptionalWebRTCConfig : public BaseClass { + class ExperimentalWithCallbackMethod_OptionalWebRTCConfig : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_OptionalWebRTCConfig() { - ::grpc::Service::MarkMethodCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::proto::rpc::webrtc::v1::OptionalWebRTCConfigRequest, ::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse>( + ExperimentalWithCallbackMethod_OptionalWebRTCConfig() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(3, + new ::grpc_impl::internal::CallbackUnaryHandler< ::proto::rpc::webrtc::v1::OptionalWebRTCConfigRequest, ::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::proto::rpc::webrtc::v1::OptionalWebRTCConfigRequest* request, ::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse* response) { return this->OptionalWebRTCConfig(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::proto::rpc::webrtc::v1::OptionalWebRTCConfigRequest* request, ::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse* response) { return this->OptionalWebRTCConfig(context, request, response); }));} void SetMessageAllocatorFor_OptionalWebRTCConfig( - ::grpc::MessageAllocator< ::proto::rpc::webrtc::v1::OptionalWebRTCConfigRequest, ::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::proto::rpc::webrtc::v1::OptionalWebRTCConfigRequest, ::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); - static_cast<::grpc::internal::CallbackUnaryHandler< ::proto::rpc::webrtc::v1::OptionalWebRTCConfigRequest, ::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(3); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::proto::rpc::webrtc::v1::OptionalWebRTCConfigRequest, ::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_OptionalWebRTCConfig() override { + ~ExperimentalWithCallbackMethod_OptionalWebRTCConfig() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -409,11 +535,20 @@ class SignalingService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* OptionalWebRTCConfig( - ::grpc::CallbackServerContext* /*context*/, const ::proto::rpc::webrtc::v1::OptionalWebRTCConfigRequest* /*request*/, ::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::proto::rpc::webrtc::v1::OptionalWebRTCConfigRequest* /*request*/, ::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* OptionalWebRTCConfig( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::proto::rpc::webrtc::v1::OptionalWebRTCConfigRequest* /*request*/, ::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse* /*response*/) + #endif + { return nullptr; } }; - typedef WithCallbackMethod_Call > > > CallbackService; - typedef CallbackService ExperimentalCallbackService; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef ExperimentalWithCallbackMethod_Call > > > CallbackService; + #endif + + typedef ExperimentalWithCallbackMethod_Call > > > ExperimentalCallbackService; template class WithGenericMethod_Call : public BaseClass { private: @@ -563,17 +698,27 @@ class SignalingService final { } }; template - class WithRawCallbackMethod_Call : public BaseClass { + class ExperimentalWithRawCallbackMethod_Call : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_Call() { - ::grpc::Service::MarkMethodRawCallback(0, - new ::grpc::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_Call() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(0, + new ::grpc_impl::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const::grpc::ByteBuffer* request) { return this->Call(context, request); })); - } - ~WithRawCallbackMethod_Call() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const::grpc::ByteBuffer* request) { return this->Call(context, request); })); + } + ~ExperimentalWithRawCallbackMethod_Call() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -581,21 +726,37 @@ class SignalingService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerWriteReactor< ::grpc::ByteBuffer>* Call( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) + #else + virtual ::grpc::experimental::ServerWriteReactor< ::grpc::ByteBuffer>* Call( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_CallUpdate : public BaseClass { + class ExperimentalWithRawCallbackMethod_CallUpdate : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_CallUpdate() { - ::grpc::Service::MarkMethodRawCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_CallUpdate() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->CallUpdate(context, request, response); })); - } - ~WithRawCallbackMethod_CallUpdate() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->CallUpdate(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_CallUpdate() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -603,21 +764,37 @@ class SignalingService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* CallUpdate( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* CallUpdate( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_Answer : public BaseClass { + class ExperimentalWithRawCallbackMethod_Answer : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_Answer() { - ::grpc::Service::MarkMethodRawCallback(2, - new ::grpc::internal::CallbackBidiHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_Answer() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(2, + new ::grpc_impl::internal::CallbackBidiHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context) { return this->Answer(context); })); - } - ~WithRawCallbackMethod_Answer() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context) { return this->Answer(context); })); + } + ~ExperimentalWithRawCallbackMethod_Answer() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -625,22 +802,37 @@ class SignalingService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerBidiReactor< ::grpc::ByteBuffer, ::grpc::ByteBuffer>* Answer( ::grpc::CallbackServerContext* /*context*/) + #else + virtual ::grpc::experimental::ServerBidiReactor< ::grpc::ByteBuffer, ::grpc::ByteBuffer>* Answer( + ::grpc::experimental::CallbackServerContext* /*context*/) + #endif { return nullptr; } }; template - class WithRawCallbackMethod_OptionalWebRTCConfig : public BaseClass { + class ExperimentalWithRawCallbackMethod_OptionalWebRTCConfig : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_OptionalWebRTCConfig() { - ::grpc::Service::MarkMethodRawCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_OptionalWebRTCConfig() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(3, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->OptionalWebRTCConfig(context, request, response); })); - } - ~WithRawCallbackMethod_OptionalWebRTCConfig() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->OptionalWebRTCConfig(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_OptionalWebRTCConfig() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -648,8 +840,14 @@ class SignalingService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* OptionalWebRTCConfig( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* OptionalWebRTCConfig( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template class WithStreamedUnaryMethod_CallUpdate : public BaseClass { @@ -660,8 +858,8 @@ class SignalingService final { ::grpc::Service::MarkMethodStreamed(1, new ::grpc::internal::StreamedUnaryHandler< ::proto::rpc::webrtc::v1::CallUpdateRequest, ::proto::rpc::webrtc::v1::CallUpdateResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::proto::rpc::webrtc::v1::CallUpdateRequest, ::proto::rpc::webrtc::v1::CallUpdateResponse>* streamer) { return this->StreamedCallUpdate(context, streamer); @@ -687,8 +885,8 @@ class SignalingService final { ::grpc::Service::MarkMethodStreamed(3, new ::grpc::internal::StreamedUnaryHandler< ::proto::rpc::webrtc::v1::OptionalWebRTCConfigRequest, ::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::proto::rpc::webrtc::v1::OptionalWebRTCConfigRequest, ::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse>* streamer) { return this->StreamedOptionalWebRTCConfig(context, streamer); @@ -715,8 +913,8 @@ class SignalingService final { ::grpc::Service::MarkMethodStreamed(0, new ::grpc::internal::SplitServerStreamingHandler< ::proto::rpc::webrtc::v1::CallRequest, ::proto::rpc::webrtc::v1::CallResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerSplitStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerSplitStreamer< ::proto::rpc::webrtc::v1::CallRequest, ::proto::rpc::webrtc::v1::CallResponse>* streamer) { return this->StreamedCall(context, streamer); diff --git a/src/viam/api/proto/rpc/webrtc/v1/signaling.pb.cc b/src/viam/api/proto/rpc/webrtc/v1/signaling.pb.cc index fbab0b456..9e8b64e8b 100644 --- a/src/viam/api/proto/rpc/webrtc/v1/signaling.pb.cc +++ b/src/viam/api/proto/rpc/webrtc/v1/signaling.pb.cc @@ -4,890 +4,656 @@ #include "proto/rpc/webrtc/v1/signaling.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace proto { namespace rpc { namespace webrtc { namespace v1 { - template -PROTOBUF_CONSTEXPR OptionalWebRTCConfigRequest::OptionalWebRTCConfigRequest(::_pbi::ConstantInitialized) {} -struct OptionalWebRTCConfigRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR OptionalWebRTCConfigRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~OptionalWebRTCConfigRequestDefaultTypeInternal() {} - union { - OptionalWebRTCConfigRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OptionalWebRTCConfigRequestDefaultTypeInternal _OptionalWebRTCConfigRequest_default_instance_; - -inline constexpr ICEServer::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : urls_{}, - username_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - credential_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR ICEServer::ICEServer(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ICEServerDefaultTypeInternal { - PROTOBUF_CONSTEXPR ICEServerDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ICEServerDefaultTypeInternal() {} - union { - ICEServer _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ICEServerDefaultTypeInternal _ICEServer_default_instance_; - -inline constexpr ICECandidate::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - candidate_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - sdp_mid_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - username_fragment_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - sdpm_line_index_{0u} {} - -template -PROTOBUF_CONSTEXPR ICECandidate::ICECandidate(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_CONSTEXPR ICECandidate::ICECandidate( + ::_pbi::ConstantInitialized) + : candidate_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , sdp_mid_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , username_fragment_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , sdpm_line_index_(0u){} struct ICECandidateDefaultTypeInternal { - PROTOBUF_CONSTEXPR ICECandidateDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ICECandidateDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~ICECandidateDefaultTypeInternal() {} union { ICECandidate _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ICECandidateDefaultTypeInternal _ICECandidate_default_instance_; - template -PROTOBUF_CONSTEXPR CallUpdateResponse::CallUpdateResponse(::_pbi::ConstantInitialized) {} -struct CallUpdateResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR CallUpdateResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CallUpdateResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ICECandidateDefaultTypeInternal _ICECandidate_default_instance_; +PROTOBUF_CONSTEXPR CallRequest::CallRequest( + ::_pbi::ConstantInitialized) + : sdp_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , disable_trickle_(false){} +struct CallRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR CallRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CallRequestDefaultTypeInternal() {} union { - CallUpdateResponse _instance; + CallRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CallUpdateResponseDefaultTypeInternal _CallUpdateResponse_default_instance_; - -inline constexpr CallResponseInitStage::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : sdp_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR CallResponseInitStage::CallResponseInitStage(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CallRequestDefaultTypeInternal _CallRequest_default_instance_; +PROTOBUF_CONSTEXPR CallResponseInitStage::CallResponseInitStage( + ::_pbi::ConstantInitialized) + : sdp_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} struct CallResponseInitStageDefaultTypeInternal { - PROTOBUF_CONSTEXPR CallResponseInitStageDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR CallResponseInitStageDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~CallResponseInitStageDefaultTypeInternal() {} union { CallResponseInitStage _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CallResponseInitStageDefaultTypeInternal _CallResponseInitStage_default_instance_; - -inline constexpr CallRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : sdp_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - disable_trickle_{false}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR CallRequest::CallRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct CallRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR CallRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CallRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CallResponseInitStageDefaultTypeInternal _CallResponseInitStage_default_instance_; +PROTOBUF_CONSTEXPR CallResponseUpdateStage::CallResponseUpdateStage( + ::_pbi::ConstantInitialized) + : candidate_(nullptr){} +struct CallResponseUpdateStageDefaultTypeInternal { + PROTOBUF_CONSTEXPR CallResponseUpdateStageDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CallResponseUpdateStageDefaultTypeInternal() {} union { - CallRequest _instance; + CallResponseUpdateStage _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CallRequestDefaultTypeInternal _CallRequest_default_instance_; - -inline constexpr AnswerResponseInitStage::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : sdp_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR AnswerResponseInitStage::AnswerResponseInitStage(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct AnswerResponseInitStageDefaultTypeInternal { - PROTOBUF_CONSTEXPR AnswerResponseInitStageDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AnswerResponseInitStageDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CallResponseUpdateStageDefaultTypeInternal _CallResponseUpdateStage_default_instance_; +PROTOBUF_CONSTEXPR CallResponse::CallResponse( + ::_pbi::ConstantInitialized) + : uuid_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , _oneof_case_{}{} +struct CallResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR CallResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CallResponseDefaultTypeInternal() {} union { - AnswerResponseInitStage _instance; + CallResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AnswerResponseInitStageDefaultTypeInternal _AnswerResponseInitStage_default_instance_; - template -PROTOBUF_CONSTEXPR AnswerResponseDoneStage::AnswerResponseDoneStage(::_pbi::ConstantInitialized) {} -struct AnswerResponseDoneStageDefaultTypeInternal { - PROTOBUF_CONSTEXPR AnswerResponseDoneStageDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AnswerResponseDoneStageDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CallResponseDefaultTypeInternal _CallResponse_default_instance_; +PROTOBUF_CONSTEXPR CallUpdateRequest::CallUpdateRequest( + ::_pbi::ConstantInitialized) + : uuid_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , _oneof_case_{}{} +struct CallUpdateRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR CallUpdateRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CallUpdateRequestDefaultTypeInternal() {} union { - AnswerResponseDoneStage _instance; + CallUpdateRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AnswerResponseDoneStageDefaultTypeInternal _AnswerResponseDoneStage_default_instance_; - template -PROTOBUF_CONSTEXPR AnswerRequestHeartbeatStage::AnswerRequestHeartbeatStage(::_pbi::ConstantInitialized) {} -struct AnswerRequestHeartbeatStageDefaultTypeInternal { - PROTOBUF_CONSTEXPR AnswerRequestHeartbeatStageDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AnswerRequestHeartbeatStageDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CallUpdateRequestDefaultTypeInternal _CallUpdateRequest_default_instance_; +PROTOBUF_CONSTEXPR CallUpdateResponse::CallUpdateResponse( + ::_pbi::ConstantInitialized){} +struct CallUpdateResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR CallUpdateResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CallUpdateResponseDefaultTypeInternal() {} union { - AnswerRequestHeartbeatStage _instance; + CallUpdateResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AnswerRequestHeartbeatStageDefaultTypeInternal _AnswerRequestHeartbeatStage_default_instance_; - template -PROTOBUF_CONSTEXPR AnswerRequestDoneStage::AnswerRequestDoneStage(::_pbi::ConstantInitialized) {} -struct AnswerRequestDoneStageDefaultTypeInternal { - PROTOBUF_CONSTEXPR AnswerRequestDoneStageDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AnswerRequestDoneStageDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CallUpdateResponseDefaultTypeInternal _CallUpdateResponse_default_instance_; +PROTOBUF_CONSTEXPR ICEServer::ICEServer( + ::_pbi::ConstantInitialized) + : urls_() + , username_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , credential_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct ICEServerDefaultTypeInternal { + PROTOBUF_CONSTEXPR ICEServerDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ICEServerDefaultTypeInternal() {} union { - AnswerRequestDoneStage _instance; + ICEServer _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AnswerRequestDoneStageDefaultTypeInternal _AnswerRequestDoneStage_default_instance_; - -inline constexpr WebRTCConfig::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : additional_ice_servers_{}, - disable_trickle_{false}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR WebRTCConfig::WebRTCConfig(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ICEServerDefaultTypeInternal _ICEServer_default_instance_; +PROTOBUF_CONSTEXPR WebRTCConfig::WebRTCConfig( + ::_pbi::ConstantInitialized) + : additional_ice_servers_() + , disable_trickle_(false){} struct WebRTCConfigDefaultTypeInternal { - PROTOBUF_CONSTEXPR WebRTCConfigDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR WebRTCConfigDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~WebRTCConfigDefaultTypeInternal() {} union { WebRTCConfig _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WebRTCConfigDefaultTypeInternal _WebRTCConfig_default_instance_; - -inline constexpr CallResponseUpdateStage::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - candidate_{nullptr} {} - -template -PROTOBUF_CONSTEXPR CallResponseUpdateStage::CallResponseUpdateStage(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct CallResponseUpdateStageDefaultTypeInternal { - PROTOBUF_CONSTEXPR CallResponseUpdateStageDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CallResponseUpdateStageDefaultTypeInternal() {} - union { - CallResponseUpdateStage _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CallResponseUpdateStageDefaultTypeInternal _CallResponseUpdateStage_default_instance_; - -inline constexpr AnswerResponseUpdateStage::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - candidate_{nullptr} {} - -template -PROTOBUF_CONSTEXPR AnswerResponseUpdateStage::AnswerResponseUpdateStage(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct AnswerResponseUpdateStageDefaultTypeInternal { - PROTOBUF_CONSTEXPR AnswerResponseUpdateStageDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AnswerResponseUpdateStageDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WebRTCConfigDefaultTypeInternal _WebRTCConfig_default_instance_; +PROTOBUF_CONSTEXPR AnswerRequestInitStage::AnswerRequestInitStage( + ::_pbi::ConstantInitialized) + : sdp_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , optional_config_(nullptr) + , deadline_(nullptr){} +struct AnswerRequestInitStageDefaultTypeInternal { + PROTOBUF_CONSTEXPR AnswerRequestInitStageDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AnswerRequestInitStageDefaultTypeInternal() {} union { - AnswerResponseUpdateStage _instance; + AnswerRequestInitStage _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AnswerResponseUpdateStageDefaultTypeInternal _AnswerResponseUpdateStage_default_instance_; - -inline constexpr AnswerRequestUpdateStage::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - candidate_{nullptr} {} - -template -PROTOBUF_CONSTEXPR AnswerRequestUpdateStage::AnswerRequestUpdateStage(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AnswerRequestInitStageDefaultTypeInternal _AnswerRequestInitStage_default_instance_; +PROTOBUF_CONSTEXPR AnswerRequestUpdateStage::AnswerRequestUpdateStage( + ::_pbi::ConstantInitialized) + : candidate_(nullptr){} struct AnswerRequestUpdateStageDefaultTypeInternal { - PROTOBUF_CONSTEXPR AnswerRequestUpdateStageDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR AnswerRequestUpdateStageDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~AnswerRequestUpdateStageDefaultTypeInternal() {} union { AnswerRequestUpdateStage _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AnswerRequestUpdateStageDefaultTypeInternal _AnswerRequestUpdateStage_default_instance_; - -inline constexpr OptionalWebRTCConfigResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - config_{nullptr} {} - -template -PROTOBUF_CONSTEXPR OptionalWebRTCConfigResponse::OptionalWebRTCConfigResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct OptionalWebRTCConfigResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR OptionalWebRTCConfigResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~OptionalWebRTCConfigResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AnswerRequestUpdateStageDefaultTypeInternal _AnswerRequestUpdateStage_default_instance_; +PROTOBUF_CONSTEXPR AnswerRequestDoneStage::AnswerRequestDoneStage( + ::_pbi::ConstantInitialized){} +struct AnswerRequestDoneStageDefaultTypeInternal { + PROTOBUF_CONSTEXPR AnswerRequestDoneStageDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AnswerRequestDoneStageDefaultTypeInternal() {} union { - OptionalWebRTCConfigResponse _instance; + AnswerRequestDoneStage _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OptionalWebRTCConfigResponseDefaultTypeInternal _OptionalWebRTCConfigResponse_default_instance_; - -inline constexpr CallUpdateRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : uuid_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - update_{}, - _cached_size_{0}, - _oneof_case_{} {} - -template -PROTOBUF_CONSTEXPR CallUpdateRequest::CallUpdateRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct CallUpdateRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR CallUpdateRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CallUpdateRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AnswerRequestDoneStageDefaultTypeInternal _AnswerRequestDoneStage_default_instance_; +PROTOBUF_CONSTEXPR AnswerRequestErrorStage::AnswerRequestErrorStage( + ::_pbi::ConstantInitialized) + : status_(nullptr){} +struct AnswerRequestErrorStageDefaultTypeInternal { + PROTOBUF_CONSTEXPR AnswerRequestErrorStageDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AnswerRequestErrorStageDefaultTypeInternal() {} union { - CallUpdateRequest _instance; + AnswerRequestErrorStage _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CallUpdateRequestDefaultTypeInternal _CallUpdateRequest_default_instance_; - -inline constexpr CallResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : uuid_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - stage_{}, - _cached_size_{0}, - _oneof_case_{} {} - -template -PROTOBUF_CONSTEXPR CallResponse::CallResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct CallResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR CallResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CallResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AnswerRequestErrorStageDefaultTypeInternal _AnswerRequestErrorStage_default_instance_; +PROTOBUF_CONSTEXPR AnswerRequestHeartbeatStage::AnswerRequestHeartbeatStage( + ::_pbi::ConstantInitialized){} +struct AnswerRequestHeartbeatStageDefaultTypeInternal { + PROTOBUF_CONSTEXPR AnswerRequestHeartbeatStageDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AnswerRequestHeartbeatStageDefaultTypeInternal() {} union { - CallResponse _instance; + AnswerRequestHeartbeatStage _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CallResponseDefaultTypeInternal _CallResponse_default_instance_; - -inline constexpr AnswerResponseErrorStage::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - status_{nullptr} {} - -template -PROTOBUF_CONSTEXPR AnswerResponseErrorStage::AnswerResponseErrorStage(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct AnswerResponseErrorStageDefaultTypeInternal { - PROTOBUF_CONSTEXPR AnswerResponseErrorStageDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AnswerResponseErrorStageDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AnswerRequestHeartbeatStageDefaultTypeInternal _AnswerRequestHeartbeatStage_default_instance_; +PROTOBUF_CONSTEXPR AnswerRequest::AnswerRequest( + ::_pbi::ConstantInitialized) + : uuid_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , _oneof_case_{}{} +struct AnswerRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR AnswerRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AnswerRequestDefaultTypeInternal() {} union { - AnswerResponseErrorStage _instance; + AnswerRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AnswerResponseErrorStageDefaultTypeInternal _AnswerResponseErrorStage_default_instance_; - -inline constexpr AnswerRequestInitStage::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - sdp_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - optional_config_{nullptr}, - deadline_{nullptr} {} - -template -PROTOBUF_CONSTEXPR AnswerRequestInitStage::AnswerRequestInitStage(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct AnswerRequestInitStageDefaultTypeInternal { - PROTOBUF_CONSTEXPR AnswerRequestInitStageDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AnswerRequestInitStageDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AnswerRequestDefaultTypeInternal _AnswerRequest_default_instance_; +PROTOBUF_CONSTEXPR AnswerResponseInitStage::AnswerResponseInitStage( + ::_pbi::ConstantInitialized) + : sdp_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct AnswerResponseInitStageDefaultTypeInternal { + PROTOBUF_CONSTEXPR AnswerResponseInitStageDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AnswerResponseInitStageDefaultTypeInternal() {} union { - AnswerRequestInitStage _instance; + AnswerResponseInitStage _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AnswerRequestInitStageDefaultTypeInternal _AnswerRequestInitStage_default_instance_; - -inline constexpr AnswerRequestErrorStage::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - status_{nullptr} {} - -template -PROTOBUF_CONSTEXPR AnswerRequestErrorStage::AnswerRequestErrorStage(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct AnswerRequestErrorStageDefaultTypeInternal { - PROTOBUF_CONSTEXPR AnswerRequestErrorStageDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AnswerRequestErrorStageDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AnswerResponseInitStageDefaultTypeInternal _AnswerResponseInitStage_default_instance_; +PROTOBUF_CONSTEXPR AnswerResponseUpdateStage::AnswerResponseUpdateStage( + ::_pbi::ConstantInitialized) + : candidate_(nullptr){} +struct AnswerResponseUpdateStageDefaultTypeInternal { + PROTOBUF_CONSTEXPR AnswerResponseUpdateStageDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AnswerResponseUpdateStageDefaultTypeInternal() {} union { - AnswerRequestErrorStage _instance; + AnswerResponseUpdateStage _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AnswerRequestErrorStageDefaultTypeInternal _AnswerRequestErrorStage_default_instance_; - -inline constexpr AnswerResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : uuid_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - stage_{}, - _cached_size_{0}, - _oneof_case_{} {} - -template -PROTOBUF_CONSTEXPR AnswerResponse::AnswerResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AnswerResponseUpdateStageDefaultTypeInternal _AnswerResponseUpdateStage_default_instance_; +PROTOBUF_CONSTEXPR AnswerResponseDoneStage::AnswerResponseDoneStage( + ::_pbi::ConstantInitialized){} +struct AnswerResponseDoneStageDefaultTypeInternal { + PROTOBUF_CONSTEXPR AnswerResponseDoneStageDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AnswerResponseDoneStageDefaultTypeInternal() {} + union { + AnswerResponseDoneStage _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AnswerResponseDoneStageDefaultTypeInternal _AnswerResponseDoneStage_default_instance_; +PROTOBUF_CONSTEXPR AnswerResponseErrorStage::AnswerResponseErrorStage( + ::_pbi::ConstantInitialized) + : status_(nullptr){} +struct AnswerResponseErrorStageDefaultTypeInternal { + PROTOBUF_CONSTEXPR AnswerResponseErrorStageDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AnswerResponseErrorStageDefaultTypeInternal() {} + union { + AnswerResponseErrorStage _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AnswerResponseErrorStageDefaultTypeInternal _AnswerResponseErrorStage_default_instance_; +PROTOBUF_CONSTEXPR AnswerResponse::AnswerResponse( + ::_pbi::ConstantInitialized) + : uuid_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , _oneof_case_{}{} struct AnswerResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR AnswerResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR AnswerResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~AnswerResponseDefaultTypeInternal() {} union { AnswerResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AnswerResponseDefaultTypeInternal _AnswerResponse_default_instance_; - -inline constexpr AnswerRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : uuid_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - stage_{}, - _cached_size_{0}, - _oneof_case_{} {} - -template -PROTOBUF_CONSTEXPR AnswerRequest::AnswerRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct AnswerRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR AnswerRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AnswerRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AnswerResponseDefaultTypeInternal _AnswerResponse_default_instance_; +PROTOBUF_CONSTEXPR OptionalWebRTCConfigRequest::OptionalWebRTCConfigRequest( + ::_pbi::ConstantInitialized){} +struct OptionalWebRTCConfigRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR OptionalWebRTCConfigRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~OptionalWebRTCConfigRequestDefaultTypeInternal() {} union { - AnswerRequest _instance; + OptionalWebRTCConfigRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AnswerRequestDefaultTypeInternal _AnswerRequest_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OptionalWebRTCConfigRequestDefaultTypeInternal _OptionalWebRTCConfigRequest_default_instance_; +PROTOBUF_CONSTEXPR OptionalWebRTCConfigResponse::OptionalWebRTCConfigResponse( + ::_pbi::ConstantInitialized) + : config_(nullptr){} +struct OptionalWebRTCConfigResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR OptionalWebRTCConfigResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~OptionalWebRTCConfigResponseDefaultTypeInternal() {} + union { + OptionalWebRTCConfigResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OptionalWebRTCConfigResponseDefaultTypeInternal _OptionalWebRTCConfigResponse_default_instance_; } // namespace v1 } // namespace webrtc } // namespace rpc } // namespace proto static ::_pb::Metadata file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto[22]; -static constexpr const ::_pb::EnumDescriptor** - file_level_enum_descriptors_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto = nullptr; -const ::uint32_t TableStruct_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::ICECandidate, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::ICECandidate, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::ICECandidate, _impl_.candidate_), - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::ICECandidate, _impl_.sdp_mid_), - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::ICECandidate, _impl_.sdpm_line_index_), - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::ICECandidate, _impl_.username_fragment_), - ~0u, - 0, - 2, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::CallRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::CallRequest, _impl_.sdp_), - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::CallRequest, _impl_.disable_trickle_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::CallResponseInitStage, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::CallResponseInitStage, _impl_.sdp_), - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::CallResponseUpdateStage, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::CallResponseUpdateStage, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::CallResponseUpdateStage, _impl_.candidate_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::CallResponse, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::CallResponse, _impl_._oneof_case_[0]), - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::CallResponse, _impl_.uuid_), - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::CallResponse, _impl_.stage_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::CallUpdateRequest, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::CallUpdateRequest, _impl_._oneof_case_[0]), - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::CallUpdateRequest, _impl_.uuid_), - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::CallUpdateRequest, _impl_.update_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::CallUpdateResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::ICEServer, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::ICEServer, _impl_.urls_), - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::ICEServer, _impl_.username_), - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::ICEServer, _impl_.credential_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::WebRTCConfig, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::WebRTCConfig, _impl_.additional_ice_servers_), - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::WebRTCConfig, _impl_.disable_trickle_), - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerRequestInitStage, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerRequestInitStage, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerRequestInitStage, _impl_.sdp_), - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerRequestInitStage, _impl_.optional_config_), - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerRequestInitStage, _impl_.deadline_), - ~0u, - 0, - 1, - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerRequestUpdateStage, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerRequestUpdateStage, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerRequestUpdateStage, _impl_.candidate_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerRequestDoneStage, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerRequestErrorStage, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerRequestErrorStage, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerRequestErrorStage, _impl_.status_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerRequest, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerRequest, _impl_._oneof_case_[0]), - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerRequest, _impl_.uuid_), - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerRequest, _impl_.stage_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerResponseInitStage, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerResponseInitStage, _impl_.sdp_), - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerResponseUpdateStage, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerResponseUpdateStage, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerResponseUpdateStage, _impl_.candidate_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerResponseDoneStage, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerResponseErrorStage, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerResponseErrorStage, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerResponseErrorStage, _impl_.status_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerResponse, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerResponse, _impl_._oneof_case_[0]), - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerResponse, _impl_.uuid_), - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerResponse, _impl_.stage_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::OptionalWebRTCConfigRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse, _impl_.config_), - 0, +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto = nullptr; + +const uint32_t TableStruct_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::ICECandidate, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::ICECandidate, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::ICECandidate, candidate_), + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::ICECandidate, sdp_mid_), + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::ICECandidate, sdpm_line_index_), + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::ICECandidate, username_fragment_), + ~0u, + 0, + 2, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::CallRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::CallRequest, sdp_), + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::CallRequest, disable_trickle_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::CallResponseInitStage, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::CallResponseInitStage, sdp_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::CallResponseUpdateStage, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::CallResponseUpdateStage, candidate_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::CallResponse, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::CallResponse, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::CallResponse, uuid_), + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::CallResponse, stage_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::CallUpdateRequest, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::CallUpdateRequest, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::CallUpdateRequest, uuid_), + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::CallUpdateRequest, update_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::CallUpdateResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::ICEServer, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::ICEServer, urls_), + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::ICEServer, username_), + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::ICEServer, credential_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::WebRTCConfig, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::WebRTCConfig, additional_ice_servers_), + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::WebRTCConfig, disable_trickle_), + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerRequestInitStage, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerRequestInitStage, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerRequestInitStage, sdp_), + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerRequestInitStage, optional_config_), + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerRequestInitStage, deadline_), + ~0u, + ~0u, + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerRequestUpdateStage, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerRequestUpdateStage, candidate_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerRequestDoneStage, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerRequestErrorStage, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerRequestErrorStage, status_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerRequest, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerRequest, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerRequest, uuid_), + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerRequest, stage_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerResponseInitStage, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerResponseInitStage, sdp_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerResponseUpdateStage, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerResponseUpdateStage, candidate_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerResponseDoneStage, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerResponseErrorStage, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerResponseErrorStage, status_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerResponse, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerResponse, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerResponse, uuid_), + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerResponse, stage_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::OptionalWebRTCConfigRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse, config_), }; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, 12, -1, sizeof(::proto::rpc::webrtc::v1::ICECandidate)}, - {16, -1, -1, sizeof(::proto::rpc::webrtc::v1::CallRequest)}, - {26, -1, -1, sizeof(::proto::rpc::webrtc::v1::CallResponseInitStage)}, - {35, 44, -1, sizeof(::proto::rpc::webrtc::v1::CallResponseUpdateStage)}, - {45, -1, -1, sizeof(::proto::rpc::webrtc::v1::CallResponse)}, - {57, -1, -1, sizeof(::proto::rpc::webrtc::v1::CallUpdateRequest)}, - {70, -1, -1, sizeof(::proto::rpc::webrtc::v1::CallUpdateResponse)}, - {78, -1, -1, sizeof(::proto::rpc::webrtc::v1::ICEServer)}, - {89, -1, -1, sizeof(::proto::rpc::webrtc::v1::WebRTCConfig)}, - {99, 110, -1, sizeof(::proto::rpc::webrtc::v1::AnswerRequestInitStage)}, - {113, 122, -1, sizeof(::proto::rpc::webrtc::v1::AnswerRequestUpdateStage)}, - {123, -1, -1, sizeof(::proto::rpc::webrtc::v1::AnswerRequestDoneStage)}, - {131, 140, -1, sizeof(::proto::rpc::webrtc::v1::AnswerRequestErrorStage)}, - {141, -1, -1, sizeof(::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage)}, - {149, -1, -1, sizeof(::proto::rpc::webrtc::v1::AnswerRequest)}, - {164, -1, -1, sizeof(::proto::rpc::webrtc::v1::AnswerResponseInitStage)}, - {173, 182, -1, sizeof(::proto::rpc::webrtc::v1::AnswerResponseUpdateStage)}, - {183, -1, -1, sizeof(::proto::rpc::webrtc::v1::AnswerResponseDoneStage)}, - {191, 200, -1, sizeof(::proto::rpc::webrtc::v1::AnswerResponseErrorStage)}, - {201, -1, -1, sizeof(::proto::rpc::webrtc::v1::AnswerResponse)}, - {215, -1, -1, sizeof(::proto::rpc::webrtc::v1::OptionalWebRTCConfigRequest)}, - {223, 232, -1, sizeof(::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, 10, -1, sizeof(::proto::rpc::webrtc::v1::ICECandidate)}, + { 14, -1, -1, sizeof(::proto::rpc::webrtc::v1::CallRequest)}, + { 22, -1, -1, sizeof(::proto::rpc::webrtc::v1::CallResponseInitStage)}, + { 29, -1, -1, sizeof(::proto::rpc::webrtc::v1::CallResponseUpdateStage)}, + { 36, -1, -1, sizeof(::proto::rpc::webrtc::v1::CallResponse)}, + { 46, -1, -1, sizeof(::proto::rpc::webrtc::v1::CallUpdateRequest)}, + { 57, -1, -1, sizeof(::proto::rpc::webrtc::v1::CallUpdateResponse)}, + { 63, -1, -1, sizeof(::proto::rpc::webrtc::v1::ICEServer)}, + { 72, -1, -1, sizeof(::proto::rpc::webrtc::v1::WebRTCConfig)}, + { 80, 89, -1, sizeof(::proto::rpc::webrtc::v1::AnswerRequestInitStage)}, + { 92, -1, -1, sizeof(::proto::rpc::webrtc::v1::AnswerRequestUpdateStage)}, + { 99, -1, -1, sizeof(::proto::rpc::webrtc::v1::AnswerRequestDoneStage)}, + { 105, -1, -1, sizeof(::proto::rpc::webrtc::v1::AnswerRequestErrorStage)}, + { 112, -1, -1, sizeof(::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage)}, + { 118, -1, -1, sizeof(::proto::rpc::webrtc::v1::AnswerRequest)}, + { 131, -1, -1, sizeof(::proto::rpc::webrtc::v1::AnswerResponseInitStage)}, + { 138, -1, -1, sizeof(::proto::rpc::webrtc::v1::AnswerResponseUpdateStage)}, + { 145, -1, -1, sizeof(::proto::rpc::webrtc::v1::AnswerResponseDoneStage)}, + { 151, -1, -1, sizeof(::proto::rpc::webrtc::v1::AnswerResponseErrorStage)}, + { 158, -1, -1, sizeof(::proto::rpc::webrtc::v1::AnswerResponse)}, + { 170, -1, -1, sizeof(::proto::rpc::webrtc::v1::OptionalWebRTCConfigRequest)}, + { 176, -1, -1, sizeof(::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::proto::rpc::webrtc::v1::_ICECandidate_default_instance_._instance, - &::proto::rpc::webrtc::v1::_CallRequest_default_instance_._instance, - &::proto::rpc::webrtc::v1::_CallResponseInitStage_default_instance_._instance, - &::proto::rpc::webrtc::v1::_CallResponseUpdateStage_default_instance_._instance, - &::proto::rpc::webrtc::v1::_CallResponse_default_instance_._instance, - &::proto::rpc::webrtc::v1::_CallUpdateRequest_default_instance_._instance, - &::proto::rpc::webrtc::v1::_CallUpdateResponse_default_instance_._instance, - &::proto::rpc::webrtc::v1::_ICEServer_default_instance_._instance, - &::proto::rpc::webrtc::v1::_WebRTCConfig_default_instance_._instance, - &::proto::rpc::webrtc::v1::_AnswerRequestInitStage_default_instance_._instance, - &::proto::rpc::webrtc::v1::_AnswerRequestUpdateStage_default_instance_._instance, - &::proto::rpc::webrtc::v1::_AnswerRequestDoneStage_default_instance_._instance, - &::proto::rpc::webrtc::v1::_AnswerRequestErrorStage_default_instance_._instance, - &::proto::rpc::webrtc::v1::_AnswerRequestHeartbeatStage_default_instance_._instance, - &::proto::rpc::webrtc::v1::_AnswerRequest_default_instance_._instance, - &::proto::rpc::webrtc::v1::_AnswerResponseInitStage_default_instance_._instance, - &::proto::rpc::webrtc::v1::_AnswerResponseUpdateStage_default_instance_._instance, - &::proto::rpc::webrtc::v1::_AnswerResponseDoneStage_default_instance_._instance, - &::proto::rpc::webrtc::v1::_AnswerResponseErrorStage_default_instance_._instance, - &::proto::rpc::webrtc::v1::_AnswerResponse_default_instance_._instance, - &::proto::rpc::webrtc::v1::_OptionalWebRTCConfigRequest_default_instance_._instance, - &::proto::rpc::webrtc::v1::_OptionalWebRTCConfigResponse_default_instance_._instance, -}; -const char descriptor_table_protodef_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n#proto/rpc/webrtc/v1/signaling.proto\022\023p" - "roto.rpc.webrtc.v1\032\034google/api/annotatio" - "ns.proto\032\037google/protobuf/timestamp.prot" - "o\032\027google/rpc/status.proto\"\337\001\n\014ICECandid" - "ate\022\034\n\tcandidate\030\001 \001(\tR\tcandidate\022\034\n\007sdp" - "_mid\030\002 \001(\tH\000R\006sdpMid\210\001\001\022+\n\017sdpm_line_ind" - "ex\030\003 \001(\rH\001R\rsdpmLineIndex\210\001\001\0220\n\021username" - "_fragment\030\004 \001(\tH\002R\020usernameFragment\210\001\001B\n" - "\n\010_sdp_midB\022\n\020_sdpm_line_indexB\024\n\022_usern" - "ame_fragment\"H\n\013CallRequest\022\020\n\003sdp\030\001 \001(\t" - "R\003sdp\022\'\n\017disable_trickle\030\002 \001(\010R\016disableT" - "rickle\")\n\025CallResponseInitStage\022\020\n\003sdp\030\001" - " \001(\tR\003sdp\"Z\n\027CallResponseUpdateStage\022\?\n\t" - "candidate\030\001 \001(\0132!.proto.rpc.webrtc.v1.IC" - "ECandidateR\tcandidate\"\265\001\n\014CallResponse\022\022" - "\n\004uuid\030\001 \001(\tR\004uuid\022@\n\004init\030\002 \001(\0132*.proto" - ".rpc.webrtc.v1.CallResponseInitStageH\000R\004" - "init\022F\n\006update\030\003 \001(\0132,.proto.rpc.webrtc." - "v1.CallResponseUpdateStageH\000R\006updateB\007\n\005" - "stage\"\266\001\n\021CallUpdateRequest\022\022\n\004uuid\030\001 \001(" - "\tR\004uuid\022A\n\tcandidate\030\002 \001(\0132!.proto.rpc.w" - "ebrtc.v1.ICECandidateH\000R\tcandidate\022\024\n\004do" - "ne\030\003 \001(\010H\000R\004done\022*\n\005error\030\004 \001(\0132\022.google" - ".rpc.StatusH\000R\005errorB\010\n\006update\"\024\n\022CallUp" - "dateResponse\"[\n\tICEServer\022\022\n\004urls\030\001 \003(\tR" - "\004urls\022\032\n\010username\030\002 \001(\tR\010username\022\036\n\ncre" - "dential\030\003 \001(\tR\ncredential\"\215\001\n\014WebRTCConf" - "ig\022T\n\026additional_ice_servers\030\001 \003(\0132\036.pro" - "to.rpc.webrtc.v1.ICEServerR\024additionalIc" - "eServers\022\'\n\017disable_trickle\030\002 \001(\010R\016disab" - "leTrickle\"\300\001\n\026AnswerRequestInitStage\022\020\n\003" - "sdp\030\001 \001(\tR\003sdp\022J\n\017optional_config\030\002 \001(\0132" - "!.proto.rpc.webrtc.v1.WebRTCConfigR\016opti" - "onalConfig\022;\n\010deadline\030\003 \001(\0132\032.google.pr" - "otobuf.TimestampH\000R\010deadline\210\001\001B\013\n\t_dead" - "line\"[\n\030AnswerRequestUpdateStage\022\?\n\tcand" - "idate\030\001 \001(\0132!.proto.rpc.webrtc.v1.ICECan" - "didateR\tcandidate\"\030\n\026AnswerRequestDoneSt" - "age\"E\n\027AnswerRequestErrorStage\022*\n\006status" - "\030\001 \001(\0132\022.google.rpc.StatusR\006status\"\035\n\033An" - "swerRequestHeartbeatStage\"\223\003\n\rAnswerRequ" - "est\022\022\n\004uuid\030\001 \001(\tR\004uuid\022A\n\004init\030\002 \001(\0132+." - "proto.rpc.webrtc.v1.AnswerRequestInitSta" - "geH\000R\004init\022G\n\006update\030\003 \001(\0132-.proto.rpc.w" - "ebrtc.v1.AnswerRequestUpdateStageH\000R\006upd" - "ate\022A\n\004done\030\004 \001(\0132+.proto.rpc.webrtc.v1." - "AnswerRequestDoneStageH\000R\004done\022D\n\005error\030" - "\005 \001(\0132,.proto.rpc.webrtc.v1.AnswerReques" - "tErrorStageH\000R\005error\022P\n\theartbeat\030\006 \001(\0132" - "0.proto.rpc.webrtc.v1.AnswerRequestHeart" - "beatStageH\000R\theartbeatB\007\n\005stage\"+\n\027Answe" - "rResponseInitStage\022\020\n\003sdp\030\001 \001(\tR\003sdp\"\\\n\031" - "AnswerResponseUpdateStage\022\?\n\tcandidate\030\001" - " \001(\0132!.proto.rpc.webrtc.v1.ICECandidateR" - "\tcandidate\"\031\n\027AnswerResponseDoneStage\"F\n" - "\030AnswerResponseErrorStage\022*\n\006status\030\001 \001(" - "\0132\022.google.rpc.StatusR\006status\"\306\002\n\016Answer" - "Response\022\022\n\004uuid\030\001 \001(\tR\004uuid\022B\n\004init\030\002 \001" - "(\0132,.proto.rpc.webrtc.v1.AnswerResponseI" - "nitStageH\000R\004init\022H\n\006update\030\003 \001(\0132..proto" - ".rpc.webrtc.v1.AnswerResponseUpdateStage" - "H\000R\006update\022B\n\004done\030\004 \001(\0132,.proto.rpc.web" - "rtc.v1.AnswerResponseDoneStageH\000R\004done\022E" - "\n\005error\030\005 \001(\0132-.proto.rpc.webrtc.v1.Answ" - "erResponseErrorStageH\000R\005errorB\007\n\005stage\"\035" - "\n\033OptionalWebRTCConfigRequest\"Y\n\034Optiona" - "lWebRTCConfigResponse\0229\n\006config\030\001 \001(\0132!." - "proto.rpc.webrtc.v1.WebRTCConfigR\006config" - "2\206\004\n\020SignalingService\022j\n\004Call\022 .proto.rp" - "c.webrtc.v1.CallRequest\032!.proto.rpc.webr" - "tc.v1.CallResponse\"\033\202\323\344\223\002\025\"\023/rpc/webrtc/" - "v1/call0\001\022\201\001\n\nCallUpdate\022&.proto.rpc.web" - "rtc.v1.CallUpdateRequest\032\'.proto.rpc.web" - "rtc.v1.CallUpdateResponse\"\"\202\323\344\223\002\034\032\032/rpc/" - "webrtc/v1/call_update\022U\n\006Answer\022#.proto." - "rpc.webrtc.v1.AnswerResponse\032\".proto.rpc" - ".webrtc.v1.AnswerRequest(\0010\001\022\252\001\n\024Optiona" - "lWebRTCConfig\0220.proto.rpc.webrtc.v1.Opti" - "onalWebRTCConfigRequest\0321.proto.rpc.webr" - "tc.v1.OptionalWebRTCConfigResponse\"-\202\323\344\223" - "\002\'\022%/rpc/webrtc/v1/optional_webrtc_confi" - "gB\277\001\n\027com.proto.rpc.webrtc.v1B\016Signaling" - "ProtoP\001Z%go.viam.com/utils/proto/rpc/web" - "rtc/v1\242\002\003PRW\252\002\023Proto.Rpc.Webrtc.V1\312\002\023Pro" - "to\\Rpc\\Webrtc\\V1\342\002\037Proto\\Rpc\\Webrtc\\V1\\G" - "PBMetadata\352\002\026Proto::Rpc::Webrtc::V1b\006pro" - "to3" + &::proto::rpc::webrtc::v1::_ICECandidate_default_instance_._instance, + &::proto::rpc::webrtc::v1::_CallRequest_default_instance_._instance, + &::proto::rpc::webrtc::v1::_CallResponseInitStage_default_instance_._instance, + &::proto::rpc::webrtc::v1::_CallResponseUpdateStage_default_instance_._instance, + &::proto::rpc::webrtc::v1::_CallResponse_default_instance_._instance, + &::proto::rpc::webrtc::v1::_CallUpdateRequest_default_instance_._instance, + &::proto::rpc::webrtc::v1::_CallUpdateResponse_default_instance_._instance, + &::proto::rpc::webrtc::v1::_ICEServer_default_instance_._instance, + &::proto::rpc::webrtc::v1::_WebRTCConfig_default_instance_._instance, + &::proto::rpc::webrtc::v1::_AnswerRequestInitStage_default_instance_._instance, + &::proto::rpc::webrtc::v1::_AnswerRequestUpdateStage_default_instance_._instance, + &::proto::rpc::webrtc::v1::_AnswerRequestDoneStage_default_instance_._instance, + &::proto::rpc::webrtc::v1::_AnswerRequestErrorStage_default_instance_._instance, + &::proto::rpc::webrtc::v1::_AnswerRequestHeartbeatStage_default_instance_._instance, + &::proto::rpc::webrtc::v1::_AnswerRequest_default_instance_._instance, + &::proto::rpc::webrtc::v1::_AnswerResponseInitStage_default_instance_._instance, + &::proto::rpc::webrtc::v1::_AnswerResponseUpdateStage_default_instance_._instance, + &::proto::rpc::webrtc::v1::_AnswerResponseDoneStage_default_instance_._instance, + &::proto::rpc::webrtc::v1::_AnswerResponseErrorStage_default_instance_._instance, + &::proto::rpc::webrtc::v1::_AnswerResponse_default_instance_._instance, + &::proto::rpc::webrtc::v1::_OptionalWebRTCConfigRequest_default_instance_._instance, + &::proto::rpc::webrtc::v1::_OptionalWebRTCConfigResponse_default_instance_._instance, }; -static const ::_pbi::DescriptorTable* const descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_deps[3] = - { - &::descriptor_table_google_2fapi_2fannotations_2eproto, - &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto, - &::descriptor_table_google_2frpc_2fstatus_2eproto, + +const char descriptor_table_protodef_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n#proto/rpc/webrtc/v1/signaling.proto\022\023p" + "roto.rpc.webrtc.v1\032\034google/api/annotatio" + "ns.proto\032\037google/protobuf/timestamp.prot" + "o\032\027google/rpc/status.proto\"\337\001\n\014ICECandid" + "ate\022\034\n\tcandidate\030\001 \001(\tR\tcandidate\022\034\n\007sdp" + "_mid\030\002 \001(\tH\000R\006sdpMid\210\001\001\022+\n\017sdpm_line_ind" + "ex\030\003 \001(\rH\001R\rsdpmLineIndex\210\001\001\0220\n\021username" + "_fragment\030\004 \001(\tH\002R\020usernameFragment\210\001\001B\n" + "\n\010_sdp_midB\022\n\020_sdpm_line_indexB\024\n\022_usern" + "ame_fragment\"H\n\013CallRequest\022\020\n\003sdp\030\001 \001(\t" + "R\003sdp\022\'\n\017disable_trickle\030\002 \001(\010R\016disableT" + "rickle\")\n\025CallResponseInitStage\022\020\n\003sdp\030\001" + " \001(\tR\003sdp\"Z\n\027CallResponseUpdateStage\022\?\n\t" + "candidate\030\001 \001(\0132!.proto.rpc.webrtc.v1.IC" + "ECandidateR\tcandidate\"\265\001\n\014CallResponse\022\022" + "\n\004uuid\030\001 \001(\tR\004uuid\022@\n\004init\030\002 \001(\0132*.proto" + ".rpc.webrtc.v1.CallResponseInitStageH\000R\004" + "init\022F\n\006update\030\003 \001(\0132,.proto.rpc.webrtc." + "v1.CallResponseUpdateStageH\000R\006updateB\007\n\005" + "stage\"\266\001\n\021CallUpdateRequest\022\022\n\004uuid\030\001 \001(" + "\tR\004uuid\022A\n\tcandidate\030\002 \001(\0132!.proto.rpc.w" + "ebrtc.v1.ICECandidateH\000R\tcandidate\022\024\n\004do" + "ne\030\003 \001(\010H\000R\004done\022*\n\005error\030\004 \001(\0132\022.google" + ".rpc.StatusH\000R\005errorB\010\n\006update\"\024\n\022CallUp" + "dateResponse\"[\n\tICEServer\022\022\n\004urls\030\001 \003(\tR" + "\004urls\022\032\n\010username\030\002 \001(\tR\010username\022\036\n\ncre" + "dential\030\003 \001(\tR\ncredential\"\215\001\n\014WebRTCConf" + "ig\022T\n\026additional_ice_servers\030\001 \003(\0132\036.pro" + "to.rpc.webrtc.v1.ICEServerR\024additionalIc" + "eServers\022\'\n\017disable_trickle\030\002 \001(\010R\016disab" + "leTrickle\"\300\001\n\026AnswerRequestInitStage\022\020\n\003" + "sdp\030\001 \001(\tR\003sdp\022J\n\017optional_config\030\002 \001(\0132" + "!.proto.rpc.webrtc.v1.WebRTCConfigR\016opti" + "onalConfig\022;\n\010deadline\030\003 \001(\0132\032.google.pr" + "otobuf.TimestampH\000R\010deadline\210\001\001B\013\n\t_dead" + "line\"[\n\030AnswerRequestUpdateStage\022\?\n\tcand" + "idate\030\001 \001(\0132!.proto.rpc.webrtc.v1.ICECan" + "didateR\tcandidate\"\030\n\026AnswerRequestDoneSt" + "age\"E\n\027AnswerRequestErrorStage\022*\n\006status" + "\030\001 \001(\0132\022.google.rpc.StatusR\006status\"\035\n\033An" + "swerRequestHeartbeatStage\"\223\003\n\rAnswerRequ" + "est\022\022\n\004uuid\030\001 \001(\tR\004uuid\022A\n\004init\030\002 \001(\0132+." + "proto.rpc.webrtc.v1.AnswerRequestInitSta" + "geH\000R\004init\022G\n\006update\030\003 \001(\0132-.proto.rpc.w" + "ebrtc.v1.AnswerRequestUpdateStageH\000R\006upd" + "ate\022A\n\004done\030\004 \001(\0132+.proto.rpc.webrtc.v1." + "AnswerRequestDoneStageH\000R\004done\022D\n\005error\030" + "\005 \001(\0132,.proto.rpc.webrtc.v1.AnswerReques" + "tErrorStageH\000R\005error\022P\n\theartbeat\030\006 \001(\0132" + "0.proto.rpc.webrtc.v1.AnswerRequestHeart" + "beatStageH\000R\theartbeatB\007\n\005stage\"+\n\027Answe" + "rResponseInitStage\022\020\n\003sdp\030\001 \001(\tR\003sdp\"\\\n\031" + "AnswerResponseUpdateStage\022\?\n\tcandidate\030\001" + " \001(\0132!.proto.rpc.webrtc.v1.ICECandidateR" + "\tcandidate\"\031\n\027AnswerResponseDoneStage\"F\n" + "\030AnswerResponseErrorStage\022*\n\006status\030\001 \001(" + "\0132\022.google.rpc.StatusR\006status\"\306\002\n\016Answer" + "Response\022\022\n\004uuid\030\001 \001(\tR\004uuid\022B\n\004init\030\002 \001" + "(\0132,.proto.rpc.webrtc.v1.AnswerResponseI" + "nitStageH\000R\004init\022H\n\006update\030\003 \001(\0132..proto" + ".rpc.webrtc.v1.AnswerResponseUpdateStage" + "H\000R\006update\022B\n\004done\030\004 \001(\0132,.proto.rpc.web" + "rtc.v1.AnswerResponseDoneStageH\000R\004done\022E" + "\n\005error\030\005 \001(\0132-.proto.rpc.webrtc.v1.Answ" + "erResponseErrorStageH\000R\005errorB\007\n\005stage\"\035" + "\n\033OptionalWebRTCConfigRequest\"Y\n\034Optiona" + "lWebRTCConfigResponse\0229\n\006config\030\001 \001(\0132!." + "proto.rpc.webrtc.v1.WebRTCConfigR\006config" + "2\206\004\n\020SignalingService\022j\n\004Call\022 .proto.rp" + "c.webrtc.v1.CallRequest\032!.proto.rpc.webr" + "tc.v1.CallResponse\"\033\202\323\344\223\002\025\"\023/rpc/webrtc/" + "v1/call0\001\022\201\001\n\nCallUpdate\022&.proto.rpc.web" + "rtc.v1.CallUpdateRequest\032\'.proto.rpc.web" + "rtc.v1.CallUpdateResponse\"\"\202\323\344\223\002\034\032\032/rpc/" + "webrtc/v1/call_update\022U\n\006Answer\022#.proto." + "rpc.webrtc.v1.AnswerResponse\032\".proto.rpc" + ".webrtc.v1.AnswerRequest(\0010\001\022\252\001\n\024Optiona" + "lWebRTCConfig\0220.proto.rpc.webrtc.v1.Opti" + "onalWebRTCConfigRequest\0321.proto.rpc.webr" + "tc.v1.OptionalWebRTCConfigResponse\"-\202\323\344\223" + "\002\'\022%/rpc/webrtc/v1/optional_webrtc_confi" + "gB\'Z%go.viam.com/utils/proto/rpc/webrtc/" + "v1b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_deps[3] = { + &::descriptor_table_google_2fapi_2fannotations_2eproto, + &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto, + &::descriptor_table_google_2frpc_2fstatus_2eproto, }; -static ::absl::once_flag descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_once; +static ::_pbi::once_flag descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto = { - false, - false, - 3443, - descriptor_table_protodef_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto, + false, false, 3290, descriptor_table_protodef_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto, "proto/rpc/webrtc/v1/signaling.proto", - &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_once, - descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_deps, - 3, - 22, - schemas, - file_default_instances, - TableStruct_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto::offsets, - file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto, - file_level_enum_descriptors_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto, + &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_once, descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_deps, 3, 22, + schemas, file_default_instances, TableStruct_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto::offsets, + file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto, file_level_enum_descriptors_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto, file_level_service_descriptors_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_getter() { return &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto(&descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto(&descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto); namespace proto { namespace rpc { namespace webrtc { namespace v1 { + // =================================================================== class ICECandidate::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ICECandidate, _impl_._has_bits_); + using HasBits = decltype(std::declval()._has_bits_); static void set_has_sdp_mid(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -899,259 +665,297 @@ class ICECandidate::_Internal { } }; -ICECandidate::ICECandidate(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ICECandidate::ICECandidate(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:proto.rpc.webrtc.v1.ICECandidate) } -inline PROTOBUF_NDEBUG_INLINE ICECandidate::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - candidate_(arena, from.candidate_), - sdp_mid_(arena, from.sdp_mid_), - username_fragment_(arena, from.username_fragment_) {} - -ICECandidate::ICECandidate( - ::google::protobuf::Arena* arena, - const ICECandidate& from) - : ::google::protobuf::Message(arena) { - ICECandidate* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.sdpm_line_index_ = from._impl_.sdpm_line_index_; - +ICECandidate::ICECandidate(const ICECandidate& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + candidate_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + candidate_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_candidate().empty()) { + candidate_.Set(from._internal_candidate(), + GetArenaForAllocation()); + } + sdp_mid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + sdp_mid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (from._internal_has_sdp_mid()) { + sdp_mid_.Set(from._internal_sdp_mid(), + GetArenaForAllocation()); + } + username_fragment_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + username_fragment_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (from._internal_has_username_fragment()) { + username_fragment_.Set(from._internal_username_fragment(), + GetArenaForAllocation()); + } + sdpm_line_index_ = from.sdpm_line_index_; // @@protoc_insertion_point(copy_constructor:proto.rpc.webrtc.v1.ICECandidate) } -inline PROTOBUF_NDEBUG_INLINE ICECandidate::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - candidate_(arena), - sdp_mid_(arena), - username_fragment_(arena) {} -inline void ICECandidate::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.sdpm_line_index_ = {}; +inline void ICECandidate::SharedCtor() { +candidate_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + candidate_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +sdp_mid_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + sdp_mid_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +username_fragment_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + username_fragment_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +sdpm_line_index_ = 0u; } + ICECandidate::~ICECandidate() { // @@protoc_insertion_point(destructor:proto.rpc.webrtc.v1.ICECandidate) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ICECandidate::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.candidate_.Destroy(); - _impl_.sdp_mid_.Destroy(); - _impl_.username_fragment_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + candidate_.Destroy(); + sdp_mid_.Destroy(); + username_fragment_.Destroy(); +} + +void ICECandidate::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void ICECandidate::Clear() { +void ICECandidate::Clear() { // @@protoc_insertion_point(message_clear_start:proto.rpc.webrtc.v1.ICECandidate) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.candidate_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; + candidate_.ClearToEmpty(); + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - _impl_.sdp_mid_.ClearNonDefaultToEmpty(); + sdp_mid_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { - _impl_.username_fragment_.ClearNonDefaultToEmpty(); + username_fragment_.ClearNonDefaultToEmpty(); } } - _impl_.sdpm_line_index_ = 0u; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ICECandidate::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + sdpm_line_index_ = 0u; + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ICECandidate::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string candidate = 1 [json_name = "candidate"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_candidate(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "proto.rpc.webrtc.v1.ICECandidate.candidate")); + } else + goto handle_unusual; + continue; + // optional string sdp_mid = 2 [json_name = "sdpMid"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_sdp_mid(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "proto.rpc.webrtc.v1.ICECandidate.sdp_mid")); + } else + goto handle_unusual; + continue; + // optional uint32 sdpm_line_index = 3 [json_name = "sdpmLineIndex"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + _Internal::set_has_sdpm_line_index(&has_bits); + sdpm_line_index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional string username_fragment = 4 [json_name = "usernameFragment"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_username_fragment(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "proto.rpc.webrtc.v1.ICECandidate.username_fragment")); + } 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: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 0, 74, 2> ICECandidate::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ICECandidate, _impl_._has_bits_), - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_ICECandidate_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // optional string username_fragment = 4 [json_name = "usernameFragment"]; - {::_pbi::TcParser::FastUS1, - {34, 1, 0, PROTOBUF_FIELD_OFFSET(ICECandidate, _impl_.username_fragment_)}}, - // string candidate = 1 [json_name = "candidate"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ICECandidate, _impl_.candidate_)}}, - // optional string sdp_mid = 2 [json_name = "sdpMid"]; - {::_pbi::TcParser::FastUS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(ICECandidate, _impl_.sdp_mid_)}}, - // optional uint32 sdpm_line_index = 3 [json_name = "sdpmLineIndex"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ICECandidate, _impl_.sdpm_line_index_), 2>(), - {24, 2, 0, PROTOBUF_FIELD_OFFSET(ICECandidate, _impl_.sdpm_line_index_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string candidate = 1 [json_name = "candidate"]; - {PROTOBUF_FIELD_OFFSET(ICECandidate, _impl_.candidate_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // optional string sdp_mid = 2 [json_name = "sdpMid"]; - {PROTOBUF_FIELD_OFFSET(ICECandidate, _impl_.sdp_mid_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // optional uint32 sdpm_line_index = 3 [json_name = "sdpmLineIndex"]; - {PROTOBUF_FIELD_OFFSET(ICECandidate, _impl_.sdpm_line_index_), _Internal::kHasBitsOffset + 2, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - // optional string username_fragment = 4 [json_name = "usernameFragment"]; - {PROTOBUF_FIELD_OFFSET(ICECandidate, _impl_.username_fragment_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\40\11\7\0\21\0\0\0" - "proto.rpc.webrtc.v1.ICECandidate" - "candidate" - "sdp_mid" - "username_fragment" - }}, -}; - -::uint8_t* ICECandidate::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ICECandidate::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.rpc.webrtc.v1.ICECandidate) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string candidate = 1 [json_name = "candidate"]; if (!this->_internal_candidate().empty()) { - const std::string& _s = this->_internal_candidate(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "proto.rpc.webrtc.v1.ICECandidate.candidate"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_candidate().data(), static_cast(this->_internal_candidate().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "proto.rpc.webrtc.v1.ICECandidate.candidate"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_candidate(), target); } - cached_has_bits = _impl_._has_bits_[0]; // optional string sdp_mid = 2 [json_name = "sdpMid"]; - if (cached_has_bits & 0x00000001u) { - const std::string& _s = this->_internal_sdp_mid(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "proto.rpc.webrtc.v1.ICECandidate.sdp_mid"); - target = stream->WriteStringMaybeAliased(2, _s, target); + if (_internal_has_sdp_mid()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_sdp_mid().data(), static_cast(this->_internal_sdp_mid().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "proto.rpc.webrtc.v1.ICECandidate.sdp_mid"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_sdp_mid(), target); } // optional uint32 sdpm_line_index = 3 [json_name = "sdpmLineIndex"]; - if (cached_has_bits & 0x00000004u) { + if (_internal_has_sdpm_line_index()) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 3, this->_internal_sdpm_line_index(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(3, this->_internal_sdpm_line_index(), target); } // optional string username_fragment = 4 [json_name = "usernameFragment"]; - if (cached_has_bits & 0x00000002u) { - const std::string& _s = this->_internal_username_fragment(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "proto.rpc.webrtc.v1.ICECandidate.username_fragment"); - target = stream->WriteStringMaybeAliased(4, _s, target); + if (_internal_has_username_fragment()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_username_fragment().data(), static_cast(this->_internal_username_fragment().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "proto.rpc.webrtc.v1.ICECandidate.username_fragment"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_username_fragment(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:proto.rpc.webrtc.v1.ICECandidate) return target; } -::size_t ICECandidate::ByteSizeLong() const { +size_t ICECandidate::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.rpc.webrtc.v1.ICECandidate) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string candidate = 1 [json_name = "candidate"]; if (!this->_internal_candidate().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_candidate()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_candidate()); } - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000007u) { // optional string sdp_mid = 2 [json_name = "sdpMid"]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_sdp_mid()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_sdp_mid()); } // optional string username_fragment = 4 [json_name = "usernameFragment"]; if (cached_has_bits & 0x00000002u) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_username_fragment()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_username_fragment()); } // optional uint32 sdpm_line_index = 3 [json_name = "sdpmLineIndex"]; if (cached_has_bits & 0x00000004u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_sdpm_line_index()); + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_sdpm_line_index()); } } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ICECandidate::_class_data_ = { - ICECandidate::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ICECandidate::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ICECandidate::MergeImpl }; -const ::google::protobuf::Message::ClassData* ICECandidate::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ICECandidate::GetClassData() const { return &_class_data_; } + +void ICECandidate::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ICECandidate::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.webrtc.v1.ICECandidate) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ICECandidate::MergeFrom(const ICECandidate& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.webrtc.v1.ICECandidate) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_candidate().empty()) { - _this->_internal_set_candidate(from._internal_candidate()); + _internal_set_candidate(from._internal_candidate()); } - cached_has_bits = from._impl_._has_bits_[0]; + cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { - _this->_internal_set_sdp_mid(from._internal_sdp_mid()); + _internal_set_sdp_mid(from._internal_sdp_mid()); } if (cached_has_bits & 0x00000002u) { - _this->_internal_set_username_fragment(from._internal_username_fragment()); + _internal_set_username_fragment(from._internal_username_fragment()); } if (cached_has_bits & 0x00000004u) { - _this->_impl_.sdpm_line_index_ = from._impl_.sdpm_line_index_; + sdpm_line_index_ = from.sdpm_line_index_; } - _this->_impl_._has_bits_[0] |= cached_has_bits; + _has_bits_[0] |= cached_has_bits; } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ICECandidate::CopyFrom(const ICECandidate& from) { @@ -1161,215 +965,227 @@ void ICECandidate::CopyFrom(const ICECandidate& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ICECandidate::IsInitialized() const { +bool ICECandidate::IsInitialized() const { return true; } -::_pbi::CachedSize* ICECandidate::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ICECandidate::InternalSwap(ICECandidate* PROTOBUF_RESTRICT other) { +void ICECandidate::InternalSwap(ICECandidate* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.candidate_, &other->_impl_.candidate_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.sdp_mid_, &other->_impl_.sdp_mid_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.username_fragment_, &other->_impl_.username_fragment_, arena); - swap(_impl_.sdpm_line_index_, other->_impl_.sdpm_line_index_); -} - -::google::protobuf::Metadata ICECandidate::GetMetadata() const { + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &candidate_, lhs_arena, + &other->candidate_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &sdp_mid_, lhs_arena, + &other->sdp_mid_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &username_fragment_, lhs_arena, + &other->username_fragment_, rhs_arena + ); + swap(sdpm_line_index_, other->sdpm_line_index_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ICECandidate::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_getter, &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_once, file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto[0]); } + // =================================================================== class CallRequest::_Internal { public: }; -CallRequest::CallRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +CallRequest::CallRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:proto.rpc.webrtc.v1.CallRequest) } -inline PROTOBUF_NDEBUG_INLINE CallRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : sdp_(arena, from.sdp_), - _cached_size_{0} {} - -CallRequest::CallRequest( - ::google::protobuf::Arena* arena, - const CallRequest& from) - : ::google::protobuf::Message(arena) { - CallRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.disable_trickle_ = from._impl_.disable_trickle_; - +CallRequest::CallRequest(const CallRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + sdp_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + sdp_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_sdp().empty()) { + sdp_.Set(from._internal_sdp(), + GetArenaForAllocation()); + } + disable_trickle_ = from.disable_trickle_; // @@protoc_insertion_point(copy_constructor:proto.rpc.webrtc.v1.CallRequest) } -inline PROTOBUF_NDEBUG_INLINE CallRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : sdp_(arena), - _cached_size_{0} {} -inline void CallRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.disable_trickle_ = {}; +inline void CallRequest::SharedCtor() { +sdp_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + sdp_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +disable_trickle_ = false; } + CallRequest::~CallRequest() { // @@protoc_insertion_point(destructor:proto.rpc.webrtc.v1.CallRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void CallRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.sdp_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + sdp_.Destroy(); +} + +void CallRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void CallRequest::Clear() { +void CallRequest::Clear() { // @@protoc_insertion_point(message_clear_start:proto.rpc.webrtc.v1.CallRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.sdp_.ClearToEmpty(); - _impl_.disable_trickle_ = false; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* CallRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + sdp_.ClearToEmpty(); + disable_trickle_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CallRequest::_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 sdp = 1 [json_name = "sdp"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_sdp(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "proto.rpc.webrtc.v1.CallRequest.sdp")); + } else + goto handle_unusual; + continue; + // bool disable_trickle = 2 [json_name = "disableTrickle"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + disable_trickle_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 43, 2> CallRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_CallRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // bool disable_trickle = 2 [json_name = "disableTrickle"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(CallRequest, _impl_.disable_trickle_)}}, - // string sdp = 1 [json_name = "sdp"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(CallRequest, _impl_.sdp_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string sdp = 1 [json_name = "sdp"]; - {PROTOBUF_FIELD_OFFSET(CallRequest, _impl_.sdp_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // bool disable_trickle = 2 [json_name = "disableTrickle"]; - {PROTOBUF_FIELD_OFFSET(CallRequest, _impl_.disable_trickle_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, - // no aux_entries - {{ - "\37\3\0\0\0\0\0\0" - "proto.rpc.webrtc.v1.CallRequest" - "sdp" - }}, -}; - -::uint8_t* CallRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* CallRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.rpc.webrtc.v1.CallRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string sdp = 1 [json_name = "sdp"]; if (!this->_internal_sdp().empty()) { - const std::string& _s = this->_internal_sdp(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "proto.rpc.webrtc.v1.CallRequest.sdp"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_sdp().data(), static_cast(this->_internal_sdp().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "proto.rpc.webrtc.v1.CallRequest.sdp"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_sdp(), target); } // bool disable_trickle = 2 [json_name = "disableTrickle"]; if (this->_internal_disable_trickle() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 2, this->_internal_disable_trickle(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_disable_trickle(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:proto.rpc.webrtc.v1.CallRequest) return target; } -::size_t CallRequest::ByteSizeLong() const { +size_t CallRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.rpc.webrtc.v1.CallRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string sdp = 1 [json_name = "sdp"]; if (!this->_internal_sdp().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_sdp()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_sdp()); } // bool disable_trickle = 2 [json_name = "disableTrickle"]; if (this->_internal_disable_trickle() != 0) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData CallRequest::_class_data_ = { - CallRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CallRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CallRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* CallRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CallRequest::GetClassData() const { return &_class_data_; } + +void CallRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void CallRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.webrtc.v1.CallRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void CallRequest::MergeFrom(const CallRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.webrtc.v1.CallRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_sdp().empty()) { - _this->_internal_set_sdp(from._internal_sdp()); + _internal_set_sdp(from._internal_sdp()); } if (from._internal_disable_trickle() != 0) { - _this->_internal_set_disable_trickle(from._internal_disable_trickle()); + _internal_set_disable_trickle(from._internal_disable_trickle()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CallRequest::CopyFrom(const CallRequest& from) { @@ -1379,188 +1195,193 @@ void CallRequest::CopyFrom(const CallRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool CallRequest::IsInitialized() const { +bool CallRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* CallRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void CallRequest::InternalSwap(CallRequest* PROTOBUF_RESTRICT other) { +void CallRequest::InternalSwap(CallRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.sdp_, &other->_impl_.sdp_, arena); - swap(_impl_.disable_trickle_, other->_impl_.disable_trickle_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &sdp_, lhs_arena, + &other->sdp_, rhs_arena + ); + swap(disable_trickle_, other->disable_trickle_); } -::google::protobuf::Metadata CallRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata CallRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_getter, &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_once, file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto[1]); } + // =================================================================== class CallResponseInitStage::_Internal { public: }; -CallResponseInitStage::CallResponseInitStage(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +CallResponseInitStage::CallResponseInitStage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:proto.rpc.webrtc.v1.CallResponseInitStage) } -inline PROTOBUF_NDEBUG_INLINE CallResponseInitStage::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : sdp_(arena, from.sdp_), - _cached_size_{0} {} - -CallResponseInitStage::CallResponseInitStage( - ::google::protobuf::Arena* arena, - const CallResponseInitStage& from) - : ::google::protobuf::Message(arena) { - CallResponseInitStage* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +CallResponseInitStage::CallResponseInitStage(const CallResponseInitStage& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + sdp_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + sdp_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_sdp().empty()) { + sdp_.Set(from._internal_sdp(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:proto.rpc.webrtc.v1.CallResponseInitStage) } -inline PROTOBUF_NDEBUG_INLINE CallResponseInitStage::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : sdp_(arena), - _cached_size_{0} {} -inline void CallResponseInitStage::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void CallResponseInitStage::SharedCtor() { +sdp_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + sdp_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + CallResponseInitStage::~CallResponseInitStage() { // @@protoc_insertion_point(destructor:proto.rpc.webrtc.v1.CallResponseInitStage) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void CallResponseInitStage::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.sdp_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + sdp_.Destroy(); +} + +void CallResponseInitStage::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void CallResponseInitStage::Clear() { +void CallResponseInitStage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.rpc.webrtc.v1.CallResponseInitStage) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.sdp_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* CallResponseInitStage::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + sdp_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CallResponseInitStage::_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 sdp = 1 [json_name = "sdp"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_sdp(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "proto.rpc.webrtc.v1.CallResponseInitStage.sdp")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 53, 2> CallResponseInitStage::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_CallResponseInitStage_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string sdp = 1 [json_name = "sdp"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(CallResponseInitStage, _impl_.sdp_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string sdp = 1 [json_name = "sdp"]; - {PROTOBUF_FIELD_OFFSET(CallResponseInitStage, _impl_.sdp_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\51\3\0\0\0\0\0\0" - "proto.rpc.webrtc.v1.CallResponseInitStage" - "sdp" - }}, -}; - -::uint8_t* CallResponseInitStage::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* CallResponseInitStage::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.rpc.webrtc.v1.CallResponseInitStage) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string sdp = 1 [json_name = "sdp"]; if (!this->_internal_sdp().empty()) { - const std::string& _s = this->_internal_sdp(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "proto.rpc.webrtc.v1.CallResponseInitStage.sdp"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_sdp().data(), static_cast(this->_internal_sdp().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "proto.rpc.webrtc.v1.CallResponseInitStage.sdp"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_sdp(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:proto.rpc.webrtc.v1.CallResponseInitStage) return target; } -::size_t CallResponseInitStage::ByteSizeLong() const { +size_t CallResponseInitStage::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.rpc.webrtc.v1.CallResponseInitStage) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string sdp = 1 [json_name = "sdp"]; if (!this->_internal_sdp().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_sdp()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_sdp()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData CallResponseInitStage::_class_data_ = { - CallResponseInitStage::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CallResponseInitStage::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CallResponseInitStage::MergeImpl }; -const ::google::protobuf::Message::ClassData* CallResponseInitStage::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CallResponseInitStage::GetClassData() const { return &_class_data_; } + +void CallResponseInitStage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void CallResponseInitStage::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.webrtc.v1.CallResponseInitStage) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void CallResponseInitStage::MergeFrom(const CallResponseInitStage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.webrtc.v1.CallResponseInitStage) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_sdp().empty()) { - _this->_internal_set_sdp(from._internal_sdp()); + _internal_set_sdp(from._internal_sdp()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CallResponseInitStage::CopyFrom(const CallResponseInitStage& from) { @@ -1570,205 +1391,189 @@ void CallResponseInitStage::CopyFrom(const CallResponseInitStage& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool CallResponseInitStage::IsInitialized() const { +bool CallResponseInitStage::IsInitialized() const { return true; } -::_pbi::CachedSize* CallResponseInitStage::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void CallResponseInitStage::InternalSwap(CallResponseInitStage* PROTOBUF_RESTRICT other) { +void CallResponseInitStage::InternalSwap(CallResponseInitStage* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.sdp_, &other->_impl_.sdp_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &sdp_, lhs_arena, + &other->sdp_, rhs_arena + ); } -::google::protobuf::Metadata CallResponseInitStage::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata CallResponseInitStage::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_getter, &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_once, file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto[2]); } + // =================================================================== class CallResponseUpdateStage::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(CallResponseUpdateStage, _impl_._has_bits_); static const ::proto::rpc::webrtc::v1::ICECandidate& candidate(const CallResponseUpdateStage* msg); - static void set_has_candidate(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::proto::rpc::webrtc::v1::ICECandidate& CallResponseUpdateStage::_Internal::candidate(const CallResponseUpdateStage* msg) { - return *msg->_impl_.candidate_; +const ::proto::rpc::webrtc::v1::ICECandidate& +CallResponseUpdateStage::_Internal::candidate(const CallResponseUpdateStage* msg) { + return *msg->candidate_; } -CallResponseUpdateStage::CallResponseUpdateStage(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +CallResponseUpdateStage::CallResponseUpdateStage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:proto.rpc.webrtc.v1.CallResponseUpdateStage) } -inline PROTOBUF_NDEBUG_INLINE CallResponseUpdateStage::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -CallResponseUpdateStage::CallResponseUpdateStage( - ::google::protobuf::Arena* arena, - const CallResponseUpdateStage& from) - : ::google::protobuf::Message(arena) { - CallResponseUpdateStage* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.candidate_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::proto::rpc::webrtc::v1::ICECandidate>(arena, *from._impl_.candidate_) - : nullptr; - +CallResponseUpdateStage::CallResponseUpdateStage(const CallResponseUpdateStage& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_candidate()) { + candidate_ = new ::proto::rpc::webrtc::v1::ICECandidate(*from.candidate_); + } else { + candidate_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:proto.rpc.webrtc.v1.CallResponseUpdateStage) } -inline PROTOBUF_NDEBUG_INLINE CallResponseUpdateStage::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void CallResponseUpdateStage::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.candidate_ = {}; +inline void CallResponseUpdateStage::SharedCtor() { +candidate_ = nullptr; } + CallResponseUpdateStage::~CallResponseUpdateStage() { // @@protoc_insertion_point(destructor:proto.rpc.webrtc.v1.CallResponseUpdateStage) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void CallResponseUpdateStage::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.candidate_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete candidate_; +} + +void CallResponseUpdateStage::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void CallResponseUpdateStage::Clear() { +void CallResponseUpdateStage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.rpc.webrtc.v1.CallResponseUpdateStage) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.candidate_ != nullptr); - _impl_.candidate_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* CallResponseUpdateStage::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + if (GetArenaForAllocation() == nullptr && candidate_ != nullptr) { + delete candidate_; + } + candidate_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CallResponseUpdateStage::_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) { + // .proto.rpc.webrtc.v1.ICECandidate candidate = 1 [json_name = "candidate"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_candidate(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> CallResponseUpdateStage::_table_ = { - { - PROTOBUF_FIELD_OFFSET(CallResponseUpdateStage, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_CallResponseUpdateStage_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .proto.rpc.webrtc.v1.ICECandidate candidate = 1 [json_name = "candidate"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(CallResponseUpdateStage, _impl_.candidate_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .proto.rpc.webrtc.v1.ICECandidate candidate = 1 [json_name = "candidate"]; - {PROTOBUF_FIELD_OFFSET(CallResponseUpdateStage, _impl_.candidate_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::proto::rpc::webrtc::v1::ICECandidate>()}, - }}, {{ - }}, -}; - -::uint8_t* CallResponseUpdateStage::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* CallResponseUpdateStage::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.rpc.webrtc.v1.CallResponseUpdateStage) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .proto.rpc.webrtc.v1.ICECandidate candidate = 1 [json_name = "candidate"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::candidate(this), + if (this->_internal_has_candidate()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::candidate(this), _Internal::candidate(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:proto.rpc.webrtc.v1.CallResponseUpdateStage) return target; } -::size_t CallResponseUpdateStage::ByteSizeLong() const { +size_t CallResponseUpdateStage::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.rpc.webrtc.v1.CallResponseUpdateStage) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .proto.rpc.webrtc.v1.ICECandidate candidate = 1 [json_name = "candidate"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.candidate_); + if (this->_internal_has_candidate()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *candidate_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData CallResponseUpdateStage::_class_data_ = { - CallResponseUpdateStage::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CallResponseUpdateStage::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CallResponseUpdateStage::MergeImpl }; -const ::google::protobuf::Message::ClassData* CallResponseUpdateStage::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CallResponseUpdateStage::GetClassData() const { return &_class_data_; } + +void CallResponseUpdateStage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void CallResponseUpdateStage::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.webrtc.v1.CallResponseUpdateStage) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void CallResponseUpdateStage::MergeFrom(const CallResponseUpdateStage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.webrtc.v1.CallResponseUpdateStage) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_candidate()->::proto::rpc::webrtc::v1::ICECandidate::MergeFrom( - from._internal_candidate()); + if (from._internal_has_candidate()) { + _internal_mutable_candidate()->::proto::rpc::webrtc::v1::ICECandidate::MergeFrom(from._internal_candidate()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CallResponseUpdateStage::CopyFrom(const CallResponseUpdateStage& from) { @@ -1778,140 +1583,143 @@ void CallResponseUpdateStage::CopyFrom(const CallResponseUpdateStage& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool CallResponseUpdateStage::IsInitialized() const { +bool CallResponseUpdateStage::IsInitialized() const { return true; } -::_pbi::CachedSize* CallResponseUpdateStage::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void CallResponseUpdateStage::InternalSwap(CallResponseUpdateStage* PROTOBUF_RESTRICT other) { +void CallResponseUpdateStage::InternalSwap(CallResponseUpdateStage* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.candidate_, other->_impl_.candidate_); + swap(candidate_, other->candidate_); } -::google::protobuf::Metadata CallResponseUpdateStage::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata CallResponseUpdateStage::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_getter, &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_once, file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto[3]); } + // =================================================================== class CallResponse::_Internal { public: - static constexpr ::int32_t kOneofCaseOffset = - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::CallResponse, _impl_._oneof_case_); static const ::proto::rpc::webrtc::v1::CallResponseInitStage& init(const CallResponse* msg); static const ::proto::rpc::webrtc::v1::CallResponseUpdateStage& update(const CallResponse* msg); }; -const ::proto::rpc::webrtc::v1::CallResponseInitStage& CallResponse::_Internal::init(const CallResponse* msg) { - return *msg->_impl_.stage_.init_; +const ::proto::rpc::webrtc::v1::CallResponseInitStage& +CallResponse::_Internal::init(const CallResponse* msg) { + return *msg->stage_.init_; } -const ::proto::rpc::webrtc::v1::CallResponseUpdateStage& CallResponse::_Internal::update(const CallResponse* msg) { - return *msg->_impl_.stage_.update_; +const ::proto::rpc::webrtc::v1::CallResponseUpdateStage& +CallResponse::_Internal::update(const CallResponse* msg) { + return *msg->stage_.update_; } void CallResponse::set_allocated_init(::proto::rpc::webrtc::v1::CallResponseInitStage* init) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_stage(); if (init) { - ::google::protobuf::Arena* submessage_arena = init->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(init); if (message_arena != submessage_arena) { - init = ::google::protobuf::internal::GetOwnedMessage(message_arena, init, submessage_arena); + init = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, init, submessage_arena); } set_has_init(); - _impl_.stage_.init_ = init; + stage_.init_ = init; } // @@protoc_insertion_point(field_set_allocated:proto.rpc.webrtc.v1.CallResponse.init) } void CallResponse::set_allocated_update(::proto::rpc::webrtc::v1::CallResponseUpdateStage* update) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_stage(); if (update) { - ::google::protobuf::Arena* submessage_arena = update->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(update); if (message_arena != submessage_arena) { - update = ::google::protobuf::internal::GetOwnedMessage(message_arena, update, submessage_arena); + update = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, update, submessage_arena); } set_has_update(); - _impl_.stage_.update_ = update; + stage_.update_ = update; } // @@protoc_insertion_point(field_set_allocated:proto.rpc.webrtc.v1.CallResponse.update) } -CallResponse::CallResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +CallResponse::CallResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:proto.rpc.webrtc.v1.CallResponse) } -inline PROTOBUF_NDEBUG_INLINE CallResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : uuid_(arena, from.uuid_), - stage_{}, - _cached_size_{0}, - _oneof_case_{from._oneof_case_[0]} {} - -CallResponse::CallResponse( - ::google::protobuf::Arena* arena, - const CallResponse& from) - : ::google::protobuf::Message(arena) { - CallResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - switch (stage_case()) { - case STAGE_NOT_SET: +CallResponse::CallResponse(const CallResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + uuid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + uuid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_uuid().empty()) { + uuid_.Set(from._internal_uuid(), + GetArenaForAllocation()); + } + clear_has_stage(); + switch (from.stage_case()) { + case kInit: { + _internal_mutable_init()->::proto::rpc::webrtc::v1::CallResponseInitStage::MergeFrom(from._internal_init()); break; - case kInit: - _impl_.stage_.init_ = CreateMaybeMessage<::proto::rpc::webrtc::v1::CallResponseInitStage>(arena, *from._impl_.stage_.init_); - break; - case kUpdate: - _impl_.stage_.update_ = CreateMaybeMessage<::proto::rpc::webrtc::v1::CallResponseUpdateStage>(arena, *from._impl_.stage_.update_); - break; + } + case kUpdate: { + _internal_mutable_update()->::proto::rpc::webrtc::v1::CallResponseUpdateStage::MergeFrom(from._internal_update()); + break; + } + case STAGE_NOT_SET: { + break; + } } - // @@protoc_insertion_point(copy_constructor:proto.rpc.webrtc.v1.CallResponse) } -inline PROTOBUF_NDEBUG_INLINE CallResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : uuid_(arena), - stage_{}, - _cached_size_{0}, - _oneof_case_{} {} -inline void CallResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void CallResponse::SharedCtor() { +uuid_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + uuid_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +clear_has_stage(); } + CallResponse::~CallResponse() { // @@protoc_insertion_point(destructor:proto.rpc.webrtc.v1.CallResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void CallResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.uuid_.Destroy(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + uuid_.Destroy(); if (has_stage()) { clear_stage(); } - _impl_.~Impl_(); +} + +void CallResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } void CallResponse::clear_stage() { // @@protoc_insertion_point(one_of_clear_start:proto.rpc.webrtc.v1.CallResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); switch (stage_case()) { case kInit: { - if (GetArena() == nullptr) { - delete _impl_.stage_.init_; + if (GetArenaForAllocation() == nullptr) { + delete stage_.init_; } break; } case kUpdate: { - if (GetArena() == nullptr) { - delete _impl_.stage_.update_; + if (GetArenaForAllocation() == nullptr) { + delete stage_.update_; } break; } @@ -1919,178 +1727,187 @@ void CallResponse::clear_stage() { break; } } - _impl_._oneof_case_[0] = STAGE_NOT_SET; + _oneof_case_[0] = STAGE_NOT_SET; } -PROTOBUF_NOINLINE void CallResponse::Clear() { +void CallResponse::Clear() { // @@protoc_insertion_point(message_clear_start:proto.rpc.webrtc.v1.CallResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.uuid_.ClearToEmpty(); + uuid_.ClearToEmpty(); clear_stage(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* CallResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CallResponse::_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 uuid = 1 [json_name = "uuid"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_uuid(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "proto.rpc.webrtc.v1.CallResponse.uuid")); + } else + goto handle_unusual; + continue; + // .proto.rpc.webrtc.v1.CallResponseInitStage init = 2 [json_name = "init"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_init(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .proto.rpc.webrtc.v1.CallResponseUpdateStage update = 3 [json_name = "update"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_update(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 3, 2, 45, 2> CallResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_CallResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string uuid = 1 [json_name = "uuid"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(CallResponse, _impl_.uuid_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string uuid = 1 [json_name = "uuid"]; - {PROTOBUF_FIELD_OFFSET(CallResponse, _impl_.uuid_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .proto.rpc.webrtc.v1.CallResponseInitStage init = 2 [json_name = "init"]; - {PROTOBUF_FIELD_OFFSET(CallResponse, _impl_.stage_.init_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .proto.rpc.webrtc.v1.CallResponseUpdateStage update = 3 [json_name = "update"]; - {PROTOBUF_FIELD_OFFSET(CallResponse, _impl_.stage_.update_), _Internal::kOneofCaseOffset + 0, 1, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::proto::rpc::webrtc::v1::CallResponseInitStage>()}, - {::_pbi::TcParser::GetTable<::proto::rpc::webrtc::v1::CallResponseUpdateStage>()}, - }}, {{ - "\40\4\0\0\0\0\0\0" - "proto.rpc.webrtc.v1.CallResponse" - "uuid" - }}, -}; - -::uint8_t* CallResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* CallResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.rpc.webrtc.v1.CallResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string uuid = 1 [json_name = "uuid"]; if (!this->_internal_uuid().empty()) { - const std::string& _s = this->_internal_uuid(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "proto.rpc.webrtc.v1.CallResponse.uuid"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_uuid().data(), static_cast(this->_internal_uuid().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "proto.rpc.webrtc.v1.CallResponse.uuid"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_uuid(), target); } - switch (stage_case()) { - case kInit: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::init(this), - _Internal::init(this).GetCachedSize(), target, stream); - break; - } - case kUpdate: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::update(this), - _Internal::update(this).GetCachedSize(), target, stream); - break; - } - default: - break; + // .proto.rpc.webrtc.v1.CallResponseInitStage init = 2 [json_name = "init"]; + if (_internal_has_init()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::init(this), + _Internal::init(this).GetCachedSize(), target, stream); } + + // .proto.rpc.webrtc.v1.CallResponseUpdateStage update = 3 [json_name = "update"]; + if (_internal_has_update()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::update(this), + _Internal::update(this).GetCachedSize(), target, stream); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:proto.rpc.webrtc.v1.CallResponse) return target; } -::size_t CallResponse::ByteSizeLong() const { +size_t CallResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.rpc.webrtc.v1.CallResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string uuid = 1 [json_name = "uuid"]; if (!this->_internal_uuid().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_uuid()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_uuid()); } switch (stage_case()) { // .proto.rpc.webrtc.v1.CallResponseInitStage init = 2 [json_name = "init"]; case kInit: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.stage_.init_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *stage_.init_); break; } // .proto.rpc.webrtc.v1.CallResponseUpdateStage update = 3 [json_name = "update"]; case kUpdate: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.stage_.update_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *stage_.update_); break; } case STAGE_NOT_SET: { break; } } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData CallResponse::_class_data_ = { - CallResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CallResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CallResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* CallResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CallResponse::GetClassData() const { return &_class_data_; } + +void CallResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void CallResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.webrtc.v1.CallResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void CallResponse::MergeFrom(const CallResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.webrtc.v1.CallResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_uuid().empty()) { - _this->_internal_set_uuid(from._internal_uuid()); + _internal_set_uuid(from._internal_uuid()); } switch (from.stage_case()) { case kInit: { - _this->_internal_mutable_init()->::proto::rpc::webrtc::v1::CallResponseInitStage::MergeFrom( - from._internal_init()); + _internal_mutable_init()->::proto::rpc::webrtc::v1::CallResponseInitStage::MergeFrom(from._internal_init()); break; } case kUpdate: { - _this->_internal_mutable_update()->::proto::rpc::webrtc::v1::CallResponseUpdateStage::MergeFrom( - from._internal_update()); + _internal_mutable_update()->::proto::rpc::webrtc::v1::CallResponseUpdateStage::MergeFrom(from._internal_update()); break; } case STAGE_NOT_SET: { break; } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CallResponse::CopyFrom(const CallResponse& from) { @@ -2100,149 +1917,157 @@ void CallResponse::CopyFrom(const CallResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool CallResponse::IsInitialized() const { +bool CallResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* CallResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void CallResponse::InternalSwap(CallResponse* PROTOBUF_RESTRICT other) { +void CallResponse::InternalSwap(CallResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.uuid_, &other->_impl_.uuid_, arena); - swap(_impl_.stage_, other->_impl_.stage_); - swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &uuid_, lhs_arena, + &other->uuid_, rhs_arena + ); + swap(stage_, other->stage_); + swap(_oneof_case_[0], other->_oneof_case_[0]); } -::google::protobuf::Metadata CallResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata CallResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_getter, &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_once, file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto[4]); } + // =================================================================== class CallUpdateRequest::_Internal { public: - static constexpr ::int32_t kOneofCaseOffset = - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::CallUpdateRequest, _impl_._oneof_case_); static const ::proto::rpc::webrtc::v1::ICECandidate& candidate(const CallUpdateRequest* msg); static const ::google::rpc::Status& error(const CallUpdateRequest* msg); }; -const ::proto::rpc::webrtc::v1::ICECandidate& CallUpdateRequest::_Internal::candidate(const CallUpdateRequest* msg) { - return *msg->_impl_.update_.candidate_; +const ::proto::rpc::webrtc::v1::ICECandidate& +CallUpdateRequest::_Internal::candidate(const CallUpdateRequest* msg) { + return *msg->update_.candidate_; } -const ::google::rpc::Status& CallUpdateRequest::_Internal::error(const CallUpdateRequest* msg) { - return *msg->_impl_.update_.error_; +const ::google::rpc::Status& +CallUpdateRequest::_Internal::error(const CallUpdateRequest* msg) { + return *msg->update_.error_; } void CallUpdateRequest::set_allocated_candidate(::proto::rpc::webrtc::v1::ICECandidate* candidate) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_update(); if (candidate) { - ::google::protobuf::Arena* submessage_arena = candidate->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(candidate); if (message_arena != submessage_arena) { - candidate = ::google::protobuf::internal::GetOwnedMessage(message_arena, candidate, submessage_arena); + candidate = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, candidate, submessage_arena); } set_has_candidate(); - _impl_.update_.candidate_ = candidate; + update_.candidate_ = candidate; } // @@protoc_insertion_point(field_set_allocated:proto.rpc.webrtc.v1.CallUpdateRequest.candidate) } void CallUpdateRequest::set_allocated_error(::google::rpc::Status* error) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_update(); if (error) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(error)->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(error)); if (message_arena != submessage_arena) { - error = ::google::protobuf::internal::GetOwnedMessage(message_arena, error, submessage_arena); + error = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, error, submessage_arena); } set_has_error(); - _impl_.update_.error_ = error; + update_.error_ = error; } // @@protoc_insertion_point(field_set_allocated:proto.rpc.webrtc.v1.CallUpdateRequest.error) } void CallUpdateRequest::clear_error() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (update_case() == kError) { - if (GetArena() == nullptr) { - delete _impl_.update_.error_; + if (_internal_has_error()) { + if (GetArenaForAllocation() == nullptr) { + delete update_.error_; } clear_has_update(); } } -CallUpdateRequest::CallUpdateRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +CallUpdateRequest::CallUpdateRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:proto.rpc.webrtc.v1.CallUpdateRequest) } -inline PROTOBUF_NDEBUG_INLINE CallUpdateRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : uuid_(arena, from.uuid_), - update_{}, - _cached_size_{0}, - _oneof_case_{from._oneof_case_[0]} {} - -CallUpdateRequest::CallUpdateRequest( - ::google::protobuf::Arena* arena, - const CallUpdateRequest& from) - : ::google::protobuf::Message(arena) { - CallUpdateRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - switch (update_case()) { - case UPDATE_NOT_SET: +CallUpdateRequest::CallUpdateRequest(const CallUpdateRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + uuid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + uuid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_uuid().empty()) { + uuid_.Set(from._internal_uuid(), + GetArenaForAllocation()); + } + clear_has_update(); + switch (from.update_case()) { + case kCandidate: { + _internal_mutable_candidate()->::proto::rpc::webrtc::v1::ICECandidate::MergeFrom(from._internal_candidate()); break; - case kCandidate: - _impl_.update_.candidate_ = CreateMaybeMessage<::proto::rpc::webrtc::v1::ICECandidate>(arena, *from._impl_.update_.candidate_); - break; - case kDone: - _impl_.update_.done_ = from._impl_.update_.done_; - break; - case kError: - _impl_.update_.error_ = CreateMaybeMessage<::google::rpc::Status>(arena, *from._impl_.update_.error_); - break; + } + case kDone: { + _internal_set_done(from._internal_done()); + break; + } + case kError: { + _internal_mutable_error()->::google::rpc::Status::MergeFrom(from._internal_error()); + break; + } + case UPDATE_NOT_SET: { + break; + } } - // @@protoc_insertion_point(copy_constructor:proto.rpc.webrtc.v1.CallUpdateRequest) } -inline PROTOBUF_NDEBUG_INLINE CallUpdateRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : uuid_(arena), - update_{}, - _cached_size_{0}, - _oneof_case_{} {} -inline void CallUpdateRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void CallUpdateRequest::SharedCtor() { +uuid_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + uuid_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +clear_has_update(); } + CallUpdateRequest::~CallUpdateRequest() { // @@protoc_insertion_point(destructor:proto.rpc.webrtc.v1.CallUpdateRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void CallUpdateRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.uuid_.Destroy(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + uuid_.Destroy(); if (has_update()) { clear_update(); } - _impl_.~Impl_(); +} + +void CallUpdateRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } void CallUpdateRequest::clear_update() { // @@protoc_insertion_point(one_of_clear_start:proto.rpc.webrtc.v1.CallUpdateRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); switch (update_case()) { case kCandidate: { - if (GetArena() == nullptr) { - delete _impl_.update_.candidate_; + if (GetArenaForAllocation() == nullptr) { + delete update_.candidate_; } break; } @@ -2251,8 +2076,8 @@ void CallUpdateRequest::clear_update() { break; } case kError: { - if (GetArena() == nullptr) { - delete _impl_.update_.error_; + if (GetArenaForAllocation() == nullptr) { + delete update_.error_; } break; } @@ -2260,196 +2085,210 @@ void CallUpdateRequest::clear_update() { break; } } - _impl_._oneof_case_[0] = UPDATE_NOT_SET; + _oneof_case_[0] = UPDATE_NOT_SET; } -PROTOBUF_NOINLINE void CallUpdateRequest::Clear() { +void CallUpdateRequest::Clear() { // @@protoc_insertion_point(message_clear_start:proto.rpc.webrtc.v1.CallUpdateRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.uuid_.ClearToEmpty(); + uuid_.ClearToEmpty(); clear_update(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* CallUpdateRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CallUpdateRequest::_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 uuid = 1 [json_name = "uuid"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_uuid(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "proto.rpc.webrtc.v1.CallUpdateRequest.uuid")); + } else + goto handle_unusual; + continue; + // .proto.rpc.webrtc.v1.ICECandidate candidate = 2 [json_name = "candidate"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_candidate(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool done = 3 [json_name = "done"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + _internal_set_done(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.rpc.Status error = 4 [json_name = "error"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_error(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 4, 2, 50, 2> CallUpdateRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 4, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_CallUpdateRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string uuid = 1 [json_name = "uuid"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(CallUpdateRequest, _impl_.uuid_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string uuid = 1 [json_name = "uuid"]; - {PROTOBUF_FIELD_OFFSET(CallUpdateRequest, _impl_.uuid_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .proto.rpc.webrtc.v1.ICECandidate candidate = 2 [json_name = "candidate"]; - {PROTOBUF_FIELD_OFFSET(CallUpdateRequest, _impl_.update_.candidate_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // bool done = 3 [json_name = "done"]; - {PROTOBUF_FIELD_OFFSET(CallUpdateRequest, _impl_.update_.done_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kBool)}, - // .google.rpc.Status error = 4 [json_name = "error"]; - {PROTOBUF_FIELD_OFFSET(CallUpdateRequest, _impl_.update_.error_), _Internal::kOneofCaseOffset + 0, 1, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::proto::rpc::webrtc::v1::ICECandidate>()}, - {::_pbi::TcParser::GetTable<::google::rpc::Status>()}, - }}, {{ - "\45\4\0\0\0\0\0\0" - "proto.rpc.webrtc.v1.CallUpdateRequest" - "uuid" - }}, -}; - -::uint8_t* CallUpdateRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* CallUpdateRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.rpc.webrtc.v1.CallUpdateRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string uuid = 1 [json_name = "uuid"]; if (!this->_internal_uuid().empty()) { - const std::string& _s = this->_internal_uuid(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "proto.rpc.webrtc.v1.CallUpdateRequest.uuid"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_uuid().data(), static_cast(this->_internal_uuid().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "proto.rpc.webrtc.v1.CallUpdateRequest.uuid"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_uuid(), target); + } + + // .proto.rpc.webrtc.v1.ICECandidate candidate = 2 [json_name = "candidate"]; + if (_internal_has_candidate()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::candidate(this), + _Internal::candidate(this).GetCachedSize(), target, stream); } - switch (update_case()) { - case kCandidate: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::candidate(this), - _Internal::candidate(this).GetCachedSize(), target, stream); - break; - } - case kDone: { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 3, this->_internal_done(), target); - break; - } - case kError: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, _Internal::error(this), - _Internal::error(this).GetCachedSize(), target, stream); - break; - } - default: - break; + // bool done = 3 [json_name = "done"]; + if (_internal_has_done()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_done(), target); + } + + // .google.rpc.Status error = 4 [json_name = "error"]; + if (_internal_has_error()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::error(this), + _Internal::error(this).GetCachedSize(), target, stream); } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:proto.rpc.webrtc.v1.CallUpdateRequest) return target; } -::size_t CallUpdateRequest::ByteSizeLong() const { +size_t CallUpdateRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.rpc.webrtc.v1.CallUpdateRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string uuid = 1 [json_name = "uuid"]; if (!this->_internal_uuid().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_uuid()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_uuid()); } switch (update_case()) { // .proto.rpc.webrtc.v1.ICECandidate candidate = 2 [json_name = "candidate"]; case kCandidate: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.update_.candidate_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *update_.candidate_); break; } // bool done = 3 [json_name = "done"]; case kDone: { - total_size += 2; + total_size += 1 + 1; break; } // .google.rpc.Status error = 4 [json_name = "error"]; case kError: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.update_.error_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *update_.error_); break; } case UPDATE_NOT_SET: { break; } } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData CallUpdateRequest::_class_data_ = { - CallUpdateRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CallUpdateRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CallUpdateRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* CallUpdateRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CallUpdateRequest::GetClassData() const { return &_class_data_; } + +void CallUpdateRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void CallUpdateRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.webrtc.v1.CallUpdateRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void CallUpdateRequest::MergeFrom(const CallUpdateRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.webrtc.v1.CallUpdateRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_uuid().empty()) { - _this->_internal_set_uuid(from._internal_uuid()); + _internal_set_uuid(from._internal_uuid()); } switch (from.update_case()) { case kCandidate: { - _this->_internal_mutable_candidate()->::proto::rpc::webrtc::v1::ICECandidate::MergeFrom( - from._internal_candidate()); + _internal_mutable_candidate()->::proto::rpc::webrtc::v1::ICECandidate::MergeFrom(from._internal_candidate()); break; } case kDone: { - _this->_internal_set_done(from._internal_done()); + _internal_set_done(from._internal_done()); break; } case kError: { - _this->_internal_mutable_error()->::google::rpc::Status::MergeFrom( - from._internal_error()); + _internal_mutable_error()->::google::rpc::Status::MergeFrom(from._internal_error()); break; } case UPDATE_NOT_SET: { break; } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CallUpdateRequest::CopyFrom(const CallUpdateRequest& from) { @@ -2459,47 +2298,43 @@ void CallUpdateRequest::CopyFrom(const CallUpdateRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool CallUpdateRequest::IsInitialized() const { +bool CallUpdateRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* CallUpdateRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void CallUpdateRequest::InternalSwap(CallUpdateRequest* PROTOBUF_RESTRICT other) { +void CallUpdateRequest::InternalSwap(CallUpdateRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.uuid_, &other->_impl_.uuid_, arena); - swap(_impl_.update_, other->_impl_.update_); - swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &uuid_, lhs_arena, + &other->uuid_, rhs_arena + ); + swap(update_, other->update_); + swap(_oneof_case_[0], other->_oneof_case_[0]); } -::google::protobuf::Metadata CallUpdateRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata CallUpdateRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_getter, &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_once, file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto[5]); } + // =================================================================== class CallUpdateResponse::_Internal { public: }; -CallUpdateResponse::CallUpdateResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +CallUpdateResponse::CallUpdateResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:proto.rpc.webrtc.v1.CallUpdateResponse) } -CallUpdateResponse::CallUpdateResponse( - ::google::protobuf::Arena* arena, - const CallUpdateResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - CallUpdateResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +CallUpdateResponse::CallUpdateResponse(const CallUpdateResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:proto.rpc.webrtc.v1.CallUpdateResponse) } @@ -2507,230 +2342,270 @@ CallUpdateResponse::CallUpdateResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CallUpdateResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CallUpdateResponse::GetClassData() const { return &_class_data_; } + + -::google::protobuf::Metadata CallUpdateResponse::GetMetadata() const { + +::PROTOBUF_NAMESPACE_ID::Metadata CallUpdateResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_getter, &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_once, file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto[6]); } + // =================================================================== class ICEServer::_Internal { public: }; -ICEServer::ICEServer(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ICEServer::ICEServer(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + urls_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:proto.rpc.webrtc.v1.ICEServer) } -inline PROTOBUF_NDEBUG_INLINE ICEServer::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : urls_{visibility, arena, from.urls_}, - username_(arena, from.username_), - credential_(arena, from.credential_), - _cached_size_{0} {} - -ICEServer::ICEServer( - ::google::protobuf::Arena* arena, - const ICEServer& from) - : ::google::protobuf::Message(arena) { - ICEServer* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +ICEServer::ICEServer(const ICEServer& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + urls_(from.urls_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + username_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + username_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_username().empty()) { + username_.Set(from._internal_username(), + GetArenaForAllocation()); + } + credential_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + credential_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_credential().empty()) { + credential_.Set(from._internal_credential(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:proto.rpc.webrtc.v1.ICEServer) } -inline PROTOBUF_NDEBUG_INLINE ICEServer::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : urls_{visibility, arena}, - username_(arena), - credential_(arena), - _cached_size_{0} {} -inline void ICEServer::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void ICEServer::SharedCtor() { +username_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + username_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +credential_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + credential_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + ICEServer::~ICEServer() { // @@protoc_insertion_point(destructor:proto.rpc.webrtc.v1.ICEServer) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ICEServer::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.username_.Destroy(); - _impl_.credential_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + username_.Destroy(); + credential_.Destroy(); } -PROTOBUF_NOINLINE void ICEServer::Clear() { +void ICEServer::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ICEServer::Clear() { // @@protoc_insertion_point(message_clear_start:proto.rpc.webrtc.v1.ICEServer) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.urls_.Clear(); - _impl_.username_.ClearToEmpty(); - _impl_.credential_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ICEServer::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + urls_.Clear(); + username_.ClearToEmpty(); + credential_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ICEServer::_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) { + // repeated string urls = 1 [json_name = "urls"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_urls(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "proto.rpc.webrtc.v1.ICEServer.urls")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + // string username = 2 [json_name = "username"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_username(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "proto.rpc.webrtc.v1.ICEServer.username")); + } else + goto handle_unusual; + continue; + // string credential = 3 [json_name = "credential"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_credential(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "proto.rpc.webrtc.v1.ICEServer.credential")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 60, 2> ICEServer::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_ICEServer_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // repeated string urls = 1 [json_name = "urls"]; - {::_pbi::TcParser::FastUR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ICEServer, _impl_.urls_)}}, - // string username = 2 [json_name = "username"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(ICEServer, _impl_.username_)}}, - // string credential = 3 [json_name = "credential"]; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(ICEServer, _impl_.credential_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated string urls = 1 [json_name = "urls"]; - {PROTOBUF_FIELD_OFFSET(ICEServer, _impl_.urls_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - // string username = 2 [json_name = "username"]; - {PROTOBUF_FIELD_OFFSET(ICEServer, _impl_.username_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string credential = 3 [json_name = "credential"]; - {PROTOBUF_FIELD_OFFSET(ICEServer, _impl_.credential_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\35\4\10\12\0\0\0\0" - "proto.rpc.webrtc.v1.ICEServer" - "urls" - "username" - "credential" - }}, -}; - -::uint8_t* ICEServer::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ICEServer::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.rpc.webrtc.v1.ICEServer) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated string urls = 1 [json_name = "urls"]; - for (int i = 0, n = this->_internal_urls_size(); i < n; ++i) { - const auto& s = this->_internal_urls().Get(i); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "proto.rpc.webrtc.v1.ICEServer.urls"); + for (int i = 0, n = this->_internal_urls_size(); i < n; i++) { + const auto& s = this->_internal_urls(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "proto.rpc.webrtc.v1.ICEServer.urls"); target = stream->WriteString(1, s, target); } // string username = 2 [json_name = "username"]; if (!this->_internal_username().empty()) { - const std::string& _s = this->_internal_username(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "proto.rpc.webrtc.v1.ICEServer.username"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_username().data(), static_cast(this->_internal_username().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "proto.rpc.webrtc.v1.ICEServer.username"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_username(), target); } // string credential = 3 [json_name = "credential"]; if (!this->_internal_credential().empty()) { - const std::string& _s = this->_internal_credential(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "proto.rpc.webrtc.v1.ICEServer.credential"); - target = stream->WriteStringMaybeAliased(3, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_credential().data(), static_cast(this->_internal_credential().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "proto.rpc.webrtc.v1.ICEServer.credential"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_credential(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:proto.rpc.webrtc.v1.ICEServer) return target; } -::size_t ICEServer::ByteSizeLong() const { +size_t ICEServer::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.rpc.webrtc.v1.ICEServer) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated string urls = 1 [json_name = "urls"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_urls().size()); - for (int i = 0, n = _internal_urls().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - _internal_urls().Get(i)); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(urls_.size()); + for (int i = 0, n = urls_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + urls_.Get(i)); } + // string username = 2 [json_name = "username"]; if (!this->_internal_username().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_username()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_username()); } // string credential = 3 [json_name = "credential"]; if (!this->_internal_credential().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_credential()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_credential()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ICEServer::_class_data_ = { - ICEServer::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ICEServer::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ICEServer::MergeImpl }; -const ::google::protobuf::Message::ClassData* ICEServer::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ICEServer::GetClassData() const { return &_class_data_; } + +void ICEServer::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ICEServer::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.webrtc.v1.ICEServer) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ICEServer::MergeFrom(const ICEServer& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.webrtc.v1.ICEServer) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_urls()->MergeFrom(from._internal_urls()); + urls_.MergeFrom(from.urls_); if (!from._internal_username().empty()) { - _this->_internal_set_username(from._internal_username()); + _internal_set_username(from._internal_username()); } if (!from._internal_credential().empty()) { - _this->_internal_set_credential(from._internal_credential()); + _internal_set_credential(from._internal_credential()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ICEServer::CopyFrom(const ICEServer& from) { @@ -2740,208 +2615,210 @@ void ICEServer::CopyFrom(const ICEServer& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ICEServer::IsInitialized() const { +bool ICEServer::IsInitialized() const { return true; } -::_pbi::CachedSize* ICEServer::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ICEServer::InternalSwap(ICEServer* PROTOBUF_RESTRICT other) { +void ICEServer::InternalSwap(ICEServer* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.urls_.InternalSwap(&other->_impl_.urls_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.username_, &other->_impl_.username_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.credential_, &other->_impl_.credential_, arena); -} - -::google::protobuf::Metadata ICEServer::GetMetadata() const { + urls_.InternalSwap(&other->urls_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &username_, lhs_arena, + &other->username_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &credential_, lhs_arena, + &other->credential_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ICEServer::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_getter, &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_once, file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto[7]); } + // =================================================================== class WebRTCConfig::_Internal { public: }; -WebRTCConfig::WebRTCConfig(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +WebRTCConfig::WebRTCConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + additional_ice_servers_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:proto.rpc.webrtc.v1.WebRTCConfig) } -inline PROTOBUF_NDEBUG_INLINE WebRTCConfig::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : additional_ice_servers_{visibility, arena, from.additional_ice_servers_}, - _cached_size_{0} {} - -WebRTCConfig::WebRTCConfig( - ::google::protobuf::Arena* arena, - const WebRTCConfig& from) - : ::google::protobuf::Message(arena) { - WebRTCConfig* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.disable_trickle_ = from._impl_.disable_trickle_; - +WebRTCConfig::WebRTCConfig(const WebRTCConfig& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + additional_ice_servers_(from.additional_ice_servers_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + disable_trickle_ = from.disable_trickle_; // @@protoc_insertion_point(copy_constructor:proto.rpc.webrtc.v1.WebRTCConfig) } -inline PROTOBUF_NDEBUG_INLINE WebRTCConfig::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : additional_ice_servers_{visibility, arena}, - _cached_size_{0} {} -inline void WebRTCConfig::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.disable_trickle_ = {}; +inline void WebRTCConfig::SharedCtor() { +disable_trickle_ = false; } + WebRTCConfig::~WebRTCConfig() { // @@protoc_insertion_point(destructor:proto.rpc.webrtc.v1.WebRTCConfig) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void WebRTCConfig::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void WebRTCConfig::Clear() { +void WebRTCConfig::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void WebRTCConfig::Clear() { // @@protoc_insertion_point(message_clear_start:proto.rpc.webrtc.v1.WebRTCConfig) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.additional_ice_servers_.Clear(); - _impl_.disable_trickle_ = false; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* WebRTCConfig::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + additional_ice_servers_.Clear(); + disable_trickle_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* WebRTCConfig::_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) { + // repeated .proto.rpc.webrtc.v1.ICEServer additional_ice_servers = 1 [json_name = "additionalIceServers"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_additional_ice_servers(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + // bool disable_trickle = 2 [json_name = "disableTrickle"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + disable_trickle_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 0, 2> WebRTCConfig::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_WebRTCConfig_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // bool disable_trickle = 2 [json_name = "disableTrickle"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(WebRTCConfig, _impl_.disable_trickle_)}}, - // repeated .proto.rpc.webrtc.v1.ICEServer additional_ice_servers = 1 [json_name = "additionalIceServers"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(WebRTCConfig, _impl_.additional_ice_servers_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .proto.rpc.webrtc.v1.ICEServer additional_ice_servers = 1 [json_name = "additionalIceServers"]; - {PROTOBUF_FIELD_OFFSET(WebRTCConfig, _impl_.additional_ice_servers_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // bool disable_trickle = 2 [json_name = "disableTrickle"]; - {PROTOBUF_FIELD_OFFSET(WebRTCConfig, _impl_.disable_trickle_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, {{ - {::_pbi::TcParser::GetTable<::proto::rpc::webrtc::v1::ICEServer>()}, - }}, {{ - }}, -}; - -::uint8_t* WebRTCConfig::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* WebRTCConfig::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.rpc.webrtc.v1.WebRTCConfig) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .proto.rpc.webrtc.v1.ICEServer additional_ice_servers = 1 [json_name = "additionalIceServers"]; for (unsigned i = 0, n = static_cast(this->_internal_additional_ice_servers_size()); i < n; i++) { - const auto& repfield = this->_internal_additional_ice_servers().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_additional_ice_servers(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } // bool disable_trickle = 2 [json_name = "disableTrickle"]; if (this->_internal_disable_trickle() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 2, this->_internal_disable_trickle(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_disable_trickle(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:proto.rpc.webrtc.v1.WebRTCConfig) return target; } -::size_t WebRTCConfig::ByteSizeLong() const { +size_t WebRTCConfig::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.rpc.webrtc.v1.WebRTCConfig) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .proto.rpc.webrtc.v1.ICEServer additional_ice_servers = 1 [json_name = "additionalIceServers"]; total_size += 1UL * this->_internal_additional_ice_servers_size(); - for (const auto& msg : this->_internal_additional_ice_servers()) { + for (const auto& msg : this->additional_ice_servers_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // bool disable_trickle = 2 [json_name = "disableTrickle"]; if (this->_internal_disable_trickle() != 0) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData WebRTCConfig::_class_data_ = { - WebRTCConfig::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData WebRTCConfig::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + WebRTCConfig::MergeImpl }; -const ::google::protobuf::Message::ClassData* WebRTCConfig::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*WebRTCConfig::GetClassData() const { return &_class_data_; } + +void WebRTCConfig::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void WebRTCConfig::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.webrtc.v1.WebRTCConfig) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void WebRTCConfig::MergeFrom(const WebRTCConfig& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.webrtc.v1.WebRTCConfig) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_additional_ice_servers()->MergeFrom( - from._internal_additional_ice_servers()); + additional_ice_servers_.MergeFrom(from.additional_ice_servers_); if (from._internal_disable_trickle() != 0) { - _this->_internal_set_disable_trickle(from._internal_disable_trickle()); + _internal_set_disable_trickle(from._internal_disable_trickle()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void WebRTCConfig::CopyFrom(const WebRTCConfig& from) { @@ -2951,291 +2828,286 @@ void WebRTCConfig::CopyFrom(const WebRTCConfig& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool WebRTCConfig::IsInitialized() const { +bool WebRTCConfig::IsInitialized() const { return true; } -::_pbi::CachedSize* WebRTCConfig::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void WebRTCConfig::InternalSwap(WebRTCConfig* PROTOBUF_RESTRICT other) { +void WebRTCConfig::InternalSwap(WebRTCConfig* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.additional_ice_servers_.InternalSwap(&other->_impl_.additional_ice_servers_); - swap(_impl_.disable_trickle_, other->_impl_.disable_trickle_); + additional_ice_servers_.InternalSwap(&other->additional_ice_servers_); + swap(disable_trickle_, other->disable_trickle_); } -::google::protobuf::Metadata WebRTCConfig::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata WebRTCConfig::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_getter, &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_once, file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto[8]); } + // =================================================================== class AnswerRequestInitStage::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(AnswerRequestInitStage, _impl_._has_bits_); + using HasBits = decltype(std::declval()._has_bits_); static const ::proto::rpc::webrtc::v1::WebRTCConfig& optional_config(const AnswerRequestInitStage* msg); - static void set_has_optional_config(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::google::protobuf::Timestamp& deadline(const AnswerRequestInitStage* msg); + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& deadline(const AnswerRequestInitStage* msg); static void set_has_deadline(HasBits* has_bits) { - (*has_bits)[0] |= 2u; + (*has_bits)[0] |= 1u; } }; -const ::proto::rpc::webrtc::v1::WebRTCConfig& AnswerRequestInitStage::_Internal::optional_config(const AnswerRequestInitStage* msg) { - return *msg->_impl_.optional_config_; +const ::proto::rpc::webrtc::v1::WebRTCConfig& +AnswerRequestInitStage::_Internal::optional_config(const AnswerRequestInitStage* msg) { + return *msg->optional_config_; } -const ::google::protobuf::Timestamp& AnswerRequestInitStage::_Internal::deadline(const AnswerRequestInitStage* msg) { - return *msg->_impl_.deadline_; +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +AnswerRequestInitStage::_Internal::deadline(const AnswerRequestInitStage* msg) { + return *msg->deadline_; } void AnswerRequestInitStage::clear_deadline() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.deadline_ != nullptr) _impl_.deadline_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (deadline_ != nullptr) deadline_->Clear(); + _has_bits_[0] &= ~0x00000001u; } -AnswerRequestInitStage::AnswerRequestInitStage(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +AnswerRequestInitStage::AnswerRequestInitStage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:proto.rpc.webrtc.v1.AnswerRequestInitStage) } -inline PROTOBUF_NDEBUG_INLINE AnswerRequestInitStage::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - sdp_(arena, from.sdp_) {} - -AnswerRequestInitStage::AnswerRequestInitStage( - ::google::protobuf::Arena* arena, - const AnswerRequestInitStage& from) - : ::google::protobuf::Message(arena) { - AnswerRequestInitStage* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.optional_config_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::proto::rpc::webrtc::v1::WebRTCConfig>(arena, *from._impl_.optional_config_) - : nullptr; - _impl_.deadline_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.deadline_) - : nullptr; - +AnswerRequestInitStage::AnswerRequestInitStage(const AnswerRequestInitStage& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + sdp_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + sdp_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_sdp().empty()) { + sdp_.Set(from._internal_sdp(), + GetArenaForAllocation()); + } + if (from._internal_has_optional_config()) { + optional_config_ = new ::proto::rpc::webrtc::v1::WebRTCConfig(*from.optional_config_); + } else { + optional_config_ = nullptr; + } + if (from._internal_has_deadline()) { + deadline_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from.deadline_); + } else { + deadline_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:proto.rpc.webrtc.v1.AnswerRequestInitStage) } -inline PROTOBUF_NDEBUG_INLINE AnswerRequestInitStage::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - sdp_(arena) {} - -inline void AnswerRequestInitStage::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, optional_config_), - 0, - offsetof(Impl_, deadline_) - - offsetof(Impl_, optional_config_) + - sizeof(Impl_::deadline_)); + +inline void AnswerRequestInitStage::SharedCtor() { +sdp_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + sdp_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&optional_config_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&deadline_) - + reinterpret_cast(&optional_config_)) + sizeof(deadline_)); } + AnswerRequestInitStage::~AnswerRequestInitStage() { // @@protoc_insertion_point(destructor:proto.rpc.webrtc.v1.AnswerRequestInitStage) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void AnswerRequestInitStage::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.sdp_.Destroy(); - delete _impl_.optional_config_; - delete _impl_.deadline_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + sdp_.Destroy(); + if (this != internal_default_instance()) delete optional_config_; + if (this != internal_default_instance()) delete deadline_; +} + +void AnswerRequestInitStage::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void AnswerRequestInitStage::Clear() { +void AnswerRequestInitStage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.rpc.webrtc.v1.AnswerRequestInitStage) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.sdp_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.optional_config_ != nullptr); - _impl_.optional_config_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.deadline_ != nullptr); - _impl_.deadline_->Clear(); - } + sdp_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && optional_config_ != nullptr) { + delete optional_config_; } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* AnswerRequestInitStage::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + optional_config_ = nullptr; + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(deadline_ != nullptr); + deadline_->Clear(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* AnswerRequestInitStage::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string sdp = 1 [json_name = "sdp"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_sdp(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "proto.rpc.webrtc.v1.AnswerRequestInitStage.sdp")); + } else + goto handle_unusual; + continue; + // .proto.rpc.webrtc.v1.WebRTCConfig optional_config = 2 [json_name = "optionalConfig"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_optional_config(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional .google.protobuf.Timestamp deadline = 3 [json_name = "deadline"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_deadline(), 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: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 2, 54, 2> AnswerRequestInitStage::_table_ = { - { - PROTOBUF_FIELD_OFFSET(AnswerRequestInitStage, _impl_._has_bits_), - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_AnswerRequestInitStage_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string sdp = 1 [json_name = "sdp"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(AnswerRequestInitStage, _impl_.sdp_)}}, - // .proto.rpc.webrtc.v1.WebRTCConfig optional_config = 2 [json_name = "optionalConfig"]; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(AnswerRequestInitStage, _impl_.optional_config_)}}, - // optional .google.protobuf.Timestamp deadline = 3 [json_name = "deadline"]; - {::_pbi::TcParser::FastMtS1, - {26, 1, 1, PROTOBUF_FIELD_OFFSET(AnswerRequestInitStage, _impl_.deadline_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string sdp = 1 [json_name = "sdp"]; - {PROTOBUF_FIELD_OFFSET(AnswerRequestInitStage, _impl_.sdp_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .proto.rpc.webrtc.v1.WebRTCConfig optional_config = 2 [json_name = "optionalConfig"]; - {PROTOBUF_FIELD_OFFSET(AnswerRequestInitStage, _impl_.optional_config_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // optional .google.protobuf.Timestamp deadline = 3 [json_name = "deadline"]; - {PROTOBUF_FIELD_OFFSET(AnswerRequestInitStage, _impl_.deadline_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::proto::rpc::webrtc::v1::WebRTCConfig>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, - }}, {{ - "\52\3\0\0\0\0\0\0" - "proto.rpc.webrtc.v1.AnswerRequestInitStage" - "sdp" - }}, -}; - -::uint8_t* AnswerRequestInitStage::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* AnswerRequestInitStage::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.rpc.webrtc.v1.AnswerRequestInitStage) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string sdp = 1 [json_name = "sdp"]; if (!this->_internal_sdp().empty()) { - const std::string& _s = this->_internal_sdp(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "proto.rpc.webrtc.v1.AnswerRequestInitStage.sdp"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_sdp().data(), static_cast(this->_internal_sdp().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "proto.rpc.webrtc.v1.AnswerRequestInitStage.sdp"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_sdp(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .proto.rpc.webrtc.v1.WebRTCConfig optional_config = 2 [json_name = "optionalConfig"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::optional_config(this), + if (this->_internal_has_optional_config()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::optional_config(this), _Internal::optional_config(this).GetCachedSize(), target, stream); } // optional .google.protobuf.Timestamp deadline = 3 [json_name = "deadline"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::deadline(this), + if (_internal_has_deadline()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::deadline(this), _Internal::deadline(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:proto.rpc.webrtc.v1.AnswerRequestInitStage) return target; } -::size_t AnswerRequestInitStage::ByteSizeLong() const { +size_t AnswerRequestInitStage::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.rpc.webrtc.v1.AnswerRequestInitStage) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string sdp = 1 [json_name = "sdp"]; if (!this->_internal_sdp().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_sdp()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_sdp()); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // .proto.rpc.webrtc.v1.WebRTCConfig optional_config = 2 [json_name = "optionalConfig"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.optional_config_); - } - - // optional .google.protobuf.Timestamp deadline = 3 [json_name = "deadline"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.deadline_); - } + // .proto.rpc.webrtc.v1.WebRTCConfig optional_config = 2 [json_name = "optionalConfig"]; + if (this->_internal_has_optional_config()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *optional_config_); + } + // optional .google.protobuf.Timestamp deadline = 3 [json_name = "deadline"]; + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *deadline_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData AnswerRequestInitStage::_class_data_ = { - AnswerRequestInitStage::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AnswerRequestInitStage::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + AnswerRequestInitStage::MergeImpl }; -const ::google::protobuf::Message::ClassData* AnswerRequestInitStage::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AnswerRequestInitStage::GetClassData() const { return &_class_data_; } + +void AnswerRequestInitStage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void AnswerRequestInitStage::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.webrtc.v1.AnswerRequestInitStage) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void AnswerRequestInitStage::MergeFrom(const AnswerRequestInitStage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.webrtc.v1.AnswerRequestInitStage) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_sdp().empty()) { - _this->_internal_set_sdp(from._internal_sdp()); + _internal_set_sdp(from._internal_sdp()); } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_optional_config()->::proto::rpc::webrtc::v1::WebRTCConfig::MergeFrom( - from._internal_optional_config()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_deadline()->::google::protobuf::Timestamp::MergeFrom( - from._internal_deadline()); - } + if (from._internal_has_optional_config()) { + _internal_mutable_optional_config()->::proto::rpc::webrtc::v1::WebRTCConfig::MergeFrom(from._internal_optional_config()); + } + if (from._internal_has_deadline()) { + _internal_mutable_deadline()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_deadline()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void AnswerRequestInitStage::CopyFrom(const AnswerRequestInitStage& from) { @@ -3245,212 +3117,196 @@ void AnswerRequestInitStage::CopyFrom(const AnswerRequestInitStage& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool AnswerRequestInitStage::IsInitialized() const { +bool AnswerRequestInitStage::IsInitialized() const { return true; } -::_pbi::CachedSize* AnswerRequestInitStage::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void AnswerRequestInitStage::InternalSwap(AnswerRequestInitStage* PROTOBUF_RESTRICT other) { +void AnswerRequestInitStage::InternalSwap(AnswerRequestInitStage* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.sdp_, &other->_impl_.sdp_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(AnswerRequestInitStage, _impl_.deadline_) - + sizeof(AnswerRequestInitStage::_impl_.deadline_) - - PROTOBUF_FIELD_OFFSET(AnswerRequestInitStage, _impl_.optional_config_)>( - reinterpret_cast(&_impl_.optional_config_), - reinterpret_cast(&other->_impl_.optional_config_)); -} - -::google::protobuf::Metadata AnswerRequestInitStage::GetMetadata() const { + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &sdp_, lhs_arena, + &other->sdp_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(AnswerRequestInitStage, deadline_) + + sizeof(AnswerRequestInitStage::deadline_) + - PROTOBUF_FIELD_OFFSET(AnswerRequestInitStage, optional_config_)>( + reinterpret_cast(&optional_config_), + reinterpret_cast(&other->optional_config_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata AnswerRequestInitStage::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_getter, &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_once, file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto[9]); } + // =================================================================== class AnswerRequestUpdateStage::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(AnswerRequestUpdateStage, _impl_._has_bits_); static const ::proto::rpc::webrtc::v1::ICECandidate& candidate(const AnswerRequestUpdateStage* msg); - static void set_has_candidate(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::proto::rpc::webrtc::v1::ICECandidate& AnswerRequestUpdateStage::_Internal::candidate(const AnswerRequestUpdateStage* msg) { - return *msg->_impl_.candidate_; +const ::proto::rpc::webrtc::v1::ICECandidate& +AnswerRequestUpdateStage::_Internal::candidate(const AnswerRequestUpdateStage* msg) { + return *msg->candidate_; } -AnswerRequestUpdateStage::AnswerRequestUpdateStage(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +AnswerRequestUpdateStage::AnswerRequestUpdateStage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:proto.rpc.webrtc.v1.AnswerRequestUpdateStage) } -inline PROTOBUF_NDEBUG_INLINE AnswerRequestUpdateStage::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -AnswerRequestUpdateStage::AnswerRequestUpdateStage( - ::google::protobuf::Arena* arena, - const AnswerRequestUpdateStage& from) - : ::google::protobuf::Message(arena) { - AnswerRequestUpdateStage* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.candidate_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::proto::rpc::webrtc::v1::ICECandidate>(arena, *from._impl_.candidate_) - : nullptr; - +AnswerRequestUpdateStage::AnswerRequestUpdateStage(const AnswerRequestUpdateStage& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_candidate()) { + candidate_ = new ::proto::rpc::webrtc::v1::ICECandidate(*from.candidate_); + } else { + candidate_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:proto.rpc.webrtc.v1.AnswerRequestUpdateStage) } -inline PROTOBUF_NDEBUG_INLINE AnswerRequestUpdateStage::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void AnswerRequestUpdateStage::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.candidate_ = {}; +inline void AnswerRequestUpdateStage::SharedCtor() { +candidate_ = nullptr; } + AnswerRequestUpdateStage::~AnswerRequestUpdateStage() { // @@protoc_insertion_point(destructor:proto.rpc.webrtc.v1.AnswerRequestUpdateStage) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void AnswerRequestUpdateStage::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.candidate_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete candidate_; +} + +void AnswerRequestUpdateStage::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void AnswerRequestUpdateStage::Clear() { +void AnswerRequestUpdateStage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.rpc.webrtc.v1.AnswerRequestUpdateStage) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.candidate_ != nullptr); - _impl_.candidate_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* AnswerRequestUpdateStage::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + if (GetArenaForAllocation() == nullptr && candidate_ != nullptr) { + delete candidate_; + } + candidate_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* AnswerRequestUpdateStage::_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) { + // .proto.rpc.webrtc.v1.ICECandidate candidate = 1 [json_name = "candidate"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_candidate(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> AnswerRequestUpdateStage::_table_ = { - { - PROTOBUF_FIELD_OFFSET(AnswerRequestUpdateStage, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_AnswerRequestUpdateStage_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .proto.rpc.webrtc.v1.ICECandidate candidate = 1 [json_name = "candidate"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(AnswerRequestUpdateStage, _impl_.candidate_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .proto.rpc.webrtc.v1.ICECandidate candidate = 1 [json_name = "candidate"]; - {PROTOBUF_FIELD_OFFSET(AnswerRequestUpdateStage, _impl_.candidate_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::proto::rpc::webrtc::v1::ICECandidate>()}, - }}, {{ - }}, -}; - -::uint8_t* AnswerRequestUpdateStage::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* AnswerRequestUpdateStage::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.rpc.webrtc.v1.AnswerRequestUpdateStage) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .proto.rpc.webrtc.v1.ICECandidate candidate = 1 [json_name = "candidate"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::candidate(this), + if (this->_internal_has_candidate()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::candidate(this), _Internal::candidate(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:proto.rpc.webrtc.v1.AnswerRequestUpdateStage) return target; } -::size_t AnswerRequestUpdateStage::ByteSizeLong() const { +size_t AnswerRequestUpdateStage::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.rpc.webrtc.v1.AnswerRequestUpdateStage) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .proto.rpc.webrtc.v1.ICECandidate candidate = 1 [json_name = "candidate"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.candidate_); + if (this->_internal_has_candidate()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *candidate_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData AnswerRequestUpdateStage::_class_data_ = { - AnswerRequestUpdateStage::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AnswerRequestUpdateStage::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + AnswerRequestUpdateStage::MergeImpl }; -const ::google::protobuf::Message::ClassData* AnswerRequestUpdateStage::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AnswerRequestUpdateStage::GetClassData() const { return &_class_data_; } + +void AnswerRequestUpdateStage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void AnswerRequestUpdateStage::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.webrtc.v1.AnswerRequestUpdateStage) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void AnswerRequestUpdateStage::MergeFrom(const AnswerRequestUpdateStage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.webrtc.v1.AnswerRequestUpdateStage) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_candidate()->::proto::rpc::webrtc::v1::ICECandidate::MergeFrom( - from._internal_candidate()); + if (from._internal_has_candidate()) { + _internal_mutable_candidate()->::proto::rpc::webrtc::v1::ICECandidate::MergeFrom(from._internal_candidate()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void AnswerRequestUpdateStage::CopyFrom(const AnswerRequestUpdateStage& from) { @@ -3460,44 +3316,36 @@ void AnswerRequestUpdateStage::CopyFrom(const AnswerRequestUpdateStage& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool AnswerRequestUpdateStage::IsInitialized() const { +bool AnswerRequestUpdateStage::IsInitialized() const { return true; } -::_pbi::CachedSize* AnswerRequestUpdateStage::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void AnswerRequestUpdateStage::InternalSwap(AnswerRequestUpdateStage* PROTOBUF_RESTRICT other) { +void AnswerRequestUpdateStage::InternalSwap(AnswerRequestUpdateStage* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.candidate_, other->_impl_.candidate_); + swap(candidate_, other->candidate_); } -::google::protobuf::Metadata AnswerRequestUpdateStage::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata AnswerRequestUpdateStage::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_getter, &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_once, file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto[10]); } + // =================================================================== class AnswerRequestDoneStage::_Internal { public: }; -AnswerRequestDoneStage::AnswerRequestDoneStage(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +AnswerRequestDoneStage::AnswerRequestDoneStage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:proto.rpc.webrtc.v1.AnswerRequestDoneStage) } -AnswerRequestDoneStage::AnswerRequestDoneStage( - ::google::protobuf::Arena* arena, - const AnswerRequestDoneStage& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - AnswerRequestDoneStage* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +AnswerRequestDoneStage::AnswerRequestDoneStage(const AnswerRequestDoneStage& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:proto.rpc.webrtc.v1.AnswerRequestDoneStage) } @@ -3505,199 +3353,192 @@ AnswerRequestDoneStage::AnswerRequestDoneStage( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AnswerRequestDoneStage::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AnswerRequestDoneStage::GetClassData() const { return &_class_data_; } + + + -::google::protobuf::Metadata AnswerRequestDoneStage::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata AnswerRequestDoneStage::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_getter, &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_once, file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto[11]); } + // =================================================================== class AnswerRequestErrorStage::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(AnswerRequestErrorStage, _impl_._has_bits_); static const ::google::rpc::Status& status(const AnswerRequestErrorStage* msg); - static void set_has_status(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::google::rpc::Status& AnswerRequestErrorStage::_Internal::status(const AnswerRequestErrorStage* msg) { - return *msg->_impl_.status_; +const ::google::rpc::Status& +AnswerRequestErrorStage::_Internal::status(const AnswerRequestErrorStage* msg) { + return *msg->status_; } void AnswerRequestErrorStage::clear_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.status_ != nullptr) _impl_.status_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; } -AnswerRequestErrorStage::AnswerRequestErrorStage(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +AnswerRequestErrorStage::AnswerRequestErrorStage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:proto.rpc.webrtc.v1.AnswerRequestErrorStage) } -inline PROTOBUF_NDEBUG_INLINE AnswerRequestErrorStage::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -AnswerRequestErrorStage::AnswerRequestErrorStage( - ::google::protobuf::Arena* arena, - const AnswerRequestErrorStage& from) - : ::google::protobuf::Message(arena) { - AnswerRequestErrorStage* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.status_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::rpc::Status>(arena, *from._impl_.status_) - : nullptr; - +AnswerRequestErrorStage::AnswerRequestErrorStage(const AnswerRequestErrorStage& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_status()) { + status_ = new ::google::rpc::Status(*from.status_); + } else { + status_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:proto.rpc.webrtc.v1.AnswerRequestErrorStage) } -inline PROTOBUF_NDEBUG_INLINE AnswerRequestErrorStage::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void AnswerRequestErrorStage::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.status_ = {}; +inline void AnswerRequestErrorStage::SharedCtor() { +status_ = nullptr; } + AnswerRequestErrorStage::~AnswerRequestErrorStage() { // @@protoc_insertion_point(destructor:proto.rpc.webrtc.v1.AnswerRequestErrorStage) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void AnswerRequestErrorStage::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.status_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete status_; +} + +void AnswerRequestErrorStage::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void AnswerRequestErrorStage::Clear() { +void AnswerRequestErrorStage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.rpc.webrtc.v1.AnswerRequestErrorStage) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.status_ != nullptr); - _impl_.status_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* AnswerRequestErrorStage::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + if (GetArenaForAllocation() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* AnswerRequestErrorStage::_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) { + // .google.rpc.Status status = 1 [json_name = "status"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_status(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> AnswerRequestErrorStage::_table_ = { - { - PROTOBUF_FIELD_OFFSET(AnswerRequestErrorStage, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_AnswerRequestErrorStage_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .google.rpc.Status status = 1 [json_name = "status"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(AnswerRequestErrorStage, _impl_.status_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .google.rpc.Status status = 1 [json_name = "status"]; - {PROTOBUF_FIELD_OFFSET(AnswerRequestErrorStage, _impl_.status_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::rpc::Status>()}, - }}, {{ - }}, -}; - -::uint8_t* AnswerRequestErrorStage::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* AnswerRequestErrorStage::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.rpc.webrtc.v1.AnswerRequestErrorStage) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .google.rpc.Status status = 1 [json_name = "status"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::status(this), + if (this->_internal_has_status()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:proto.rpc.webrtc.v1.AnswerRequestErrorStage) return target; } -::size_t AnswerRequestErrorStage::ByteSizeLong() const { +size_t AnswerRequestErrorStage::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.rpc.webrtc.v1.AnswerRequestErrorStage) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .google.rpc.Status status = 1 [json_name = "status"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.status_); + if (this->_internal_has_status()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *status_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData AnswerRequestErrorStage::_class_data_ = { - AnswerRequestErrorStage::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AnswerRequestErrorStage::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + AnswerRequestErrorStage::MergeImpl }; -const ::google::protobuf::Message::ClassData* AnswerRequestErrorStage::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AnswerRequestErrorStage::GetClassData() const { return &_class_data_; } + +void AnswerRequestErrorStage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void AnswerRequestErrorStage::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.webrtc.v1.AnswerRequestErrorStage) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void AnswerRequestErrorStage::MergeFrom(const AnswerRequestErrorStage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.webrtc.v1.AnswerRequestErrorStage) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_status()->::google::rpc::Status::MergeFrom( - from._internal_status()); + if (from._internal_has_status()) { + _internal_mutable_status()->::google::rpc::Status::MergeFrom(from._internal_status()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void AnswerRequestErrorStage::CopyFrom(const AnswerRequestErrorStage& from) { @@ -3707,44 +3548,36 @@ void AnswerRequestErrorStage::CopyFrom(const AnswerRequestErrorStage& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool AnswerRequestErrorStage::IsInitialized() const { +bool AnswerRequestErrorStage::IsInitialized() const { return true; } -::_pbi::CachedSize* AnswerRequestErrorStage::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void AnswerRequestErrorStage::InternalSwap(AnswerRequestErrorStage* PROTOBUF_RESTRICT other) { +void AnswerRequestErrorStage::InternalSwap(AnswerRequestErrorStage* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.status_, other->_impl_.status_); + swap(status_, other->status_); } -::google::protobuf::Metadata AnswerRequestErrorStage::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata AnswerRequestErrorStage::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_getter, &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_once, file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto[12]); } + // =================================================================== class AnswerRequestHeartbeatStage::_Internal { public: }; -AnswerRequestHeartbeatStage::AnswerRequestHeartbeatStage(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +AnswerRequestHeartbeatStage::AnswerRequestHeartbeatStage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:proto.rpc.webrtc.v1.AnswerRequestHeartbeatStage) } -AnswerRequestHeartbeatStage::AnswerRequestHeartbeatStage( - ::google::protobuf::Arena* arena, - const AnswerRequestHeartbeatStage& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - AnswerRequestHeartbeatStage* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +AnswerRequestHeartbeatStage::AnswerRequestHeartbeatStage(const AnswerRequestHeartbeatStage& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:proto.rpc.webrtc.v1.AnswerRequestHeartbeatStage) } @@ -3752,21 +3585,28 @@ AnswerRequestHeartbeatStage::AnswerRequestHeartbeatStage( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AnswerRequestHeartbeatStage::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AnswerRequestHeartbeatStage::GetClassData() const { return &_class_data_; } + + + -::google::protobuf::Metadata AnswerRequestHeartbeatStage::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata AnswerRequestHeartbeatStage::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_getter, &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_once, file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto[13]); } + // =================================================================== class AnswerRequest::_Internal { public: - static constexpr ::int32_t kOneofCaseOffset = - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerRequest, _impl_._oneof_case_); static const ::proto::rpc::webrtc::v1::AnswerRequestInitStage& init(const AnswerRequest* msg); static const ::proto::rpc::webrtc::v1::AnswerRequestUpdateStage& update(const AnswerRequest* msg); static const ::proto::rpc::webrtc::v1::AnswerRequestDoneStage& done(const AnswerRequest* msg); @@ -3774,186 +3614,206 @@ class AnswerRequest::_Internal { static const ::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage& heartbeat(const AnswerRequest* msg); }; -const ::proto::rpc::webrtc::v1::AnswerRequestInitStage& AnswerRequest::_Internal::init(const AnswerRequest* msg) { - return *msg->_impl_.stage_.init_; +const ::proto::rpc::webrtc::v1::AnswerRequestInitStage& +AnswerRequest::_Internal::init(const AnswerRequest* msg) { + return *msg->stage_.init_; } -const ::proto::rpc::webrtc::v1::AnswerRequestUpdateStage& AnswerRequest::_Internal::update(const AnswerRequest* msg) { - return *msg->_impl_.stage_.update_; +const ::proto::rpc::webrtc::v1::AnswerRequestUpdateStage& +AnswerRequest::_Internal::update(const AnswerRequest* msg) { + return *msg->stage_.update_; } -const ::proto::rpc::webrtc::v1::AnswerRequestDoneStage& AnswerRequest::_Internal::done(const AnswerRequest* msg) { - return *msg->_impl_.stage_.done_; +const ::proto::rpc::webrtc::v1::AnswerRequestDoneStage& +AnswerRequest::_Internal::done(const AnswerRequest* msg) { + return *msg->stage_.done_; } -const ::proto::rpc::webrtc::v1::AnswerRequestErrorStage& AnswerRequest::_Internal::error(const AnswerRequest* msg) { - return *msg->_impl_.stage_.error_; +const ::proto::rpc::webrtc::v1::AnswerRequestErrorStage& +AnswerRequest::_Internal::error(const AnswerRequest* msg) { + return *msg->stage_.error_; } -const ::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage& AnswerRequest::_Internal::heartbeat(const AnswerRequest* msg) { - return *msg->_impl_.stage_.heartbeat_; +const ::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage& +AnswerRequest::_Internal::heartbeat(const AnswerRequest* msg) { + return *msg->stage_.heartbeat_; } void AnswerRequest::set_allocated_init(::proto::rpc::webrtc::v1::AnswerRequestInitStage* init) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_stage(); if (init) { - ::google::protobuf::Arena* submessage_arena = init->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(init); if (message_arena != submessage_arena) { - init = ::google::protobuf::internal::GetOwnedMessage(message_arena, init, submessage_arena); + init = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, init, submessage_arena); } set_has_init(); - _impl_.stage_.init_ = init; + stage_.init_ = init; } // @@protoc_insertion_point(field_set_allocated:proto.rpc.webrtc.v1.AnswerRequest.init) } void AnswerRequest::set_allocated_update(::proto::rpc::webrtc::v1::AnswerRequestUpdateStage* update) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_stage(); if (update) { - ::google::protobuf::Arena* submessage_arena = update->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(update); if (message_arena != submessage_arena) { - update = ::google::protobuf::internal::GetOwnedMessage(message_arena, update, submessage_arena); + update = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, update, submessage_arena); } set_has_update(); - _impl_.stage_.update_ = update; + stage_.update_ = update; } // @@protoc_insertion_point(field_set_allocated:proto.rpc.webrtc.v1.AnswerRequest.update) } void AnswerRequest::set_allocated_done(::proto::rpc::webrtc::v1::AnswerRequestDoneStage* done) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_stage(); if (done) { - ::google::protobuf::Arena* submessage_arena = done->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(done); if (message_arena != submessage_arena) { - done = ::google::protobuf::internal::GetOwnedMessage(message_arena, done, submessage_arena); + done = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, done, submessage_arena); } set_has_done(); - _impl_.stage_.done_ = done; + stage_.done_ = done; } // @@protoc_insertion_point(field_set_allocated:proto.rpc.webrtc.v1.AnswerRequest.done) } void AnswerRequest::set_allocated_error(::proto::rpc::webrtc::v1::AnswerRequestErrorStage* error) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_stage(); if (error) { - ::google::protobuf::Arena* submessage_arena = error->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(error); if (message_arena != submessage_arena) { - error = ::google::protobuf::internal::GetOwnedMessage(message_arena, error, submessage_arena); + error = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, error, submessage_arena); } set_has_error(); - _impl_.stage_.error_ = error; + stage_.error_ = error; } // @@protoc_insertion_point(field_set_allocated:proto.rpc.webrtc.v1.AnswerRequest.error) } void AnswerRequest::set_allocated_heartbeat(::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage* heartbeat) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_stage(); if (heartbeat) { - ::google::protobuf::Arena* submessage_arena = heartbeat->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(heartbeat); if (message_arena != submessage_arena) { - heartbeat = ::google::protobuf::internal::GetOwnedMessage(message_arena, heartbeat, submessage_arena); + heartbeat = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, heartbeat, submessage_arena); + } + set_has_heartbeat(); + stage_.heartbeat_ = heartbeat; + } + // @@protoc_insertion_point(field_set_allocated:proto.rpc.webrtc.v1.AnswerRequest.heartbeat) +} +AnswerRequest::AnswerRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:proto.rpc.webrtc.v1.AnswerRequest) +} +AnswerRequest::AnswerRequest(const AnswerRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + uuid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + uuid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_uuid().empty()) { + uuid_.Set(from._internal_uuid(), + GetArenaForAllocation()); + } + clear_has_stage(); + switch (from.stage_case()) { + case kInit: { + _internal_mutable_init()->::proto::rpc::webrtc::v1::AnswerRequestInitStage::MergeFrom(from._internal_init()); + break; + } + case kUpdate: { + _internal_mutable_update()->::proto::rpc::webrtc::v1::AnswerRequestUpdateStage::MergeFrom(from._internal_update()); + break; } - set_has_heartbeat(); - _impl_.stage_.heartbeat_ = heartbeat; - } - // @@protoc_insertion_point(field_set_allocated:proto.rpc.webrtc.v1.AnswerRequest.heartbeat) -} -AnswerRequest::AnswerRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:proto.rpc.webrtc.v1.AnswerRequest) -} -inline PROTOBUF_NDEBUG_INLINE AnswerRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : uuid_(arena, from.uuid_), - stage_{}, - _cached_size_{0}, - _oneof_case_{from._oneof_case_[0]} {} - -AnswerRequest::AnswerRequest( - ::google::protobuf::Arena* arena, - const AnswerRequest& from) - : ::google::protobuf::Message(arena) { - AnswerRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - switch (stage_case()) { - case STAGE_NOT_SET: + case kDone: { + _internal_mutable_done()->::proto::rpc::webrtc::v1::AnswerRequestDoneStage::MergeFrom(from._internal_done()); + break; + } + case kError: { + _internal_mutable_error()->::proto::rpc::webrtc::v1::AnswerRequestErrorStage::MergeFrom(from._internal_error()); + break; + } + case kHeartbeat: { + _internal_mutable_heartbeat()->::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage::MergeFrom(from._internal_heartbeat()); + break; + } + case STAGE_NOT_SET: { break; - case kInit: - _impl_.stage_.init_ = CreateMaybeMessage<::proto::rpc::webrtc::v1::AnswerRequestInitStage>(arena, *from._impl_.stage_.init_); - break; - case kUpdate: - _impl_.stage_.update_ = CreateMaybeMessage<::proto::rpc::webrtc::v1::AnswerRequestUpdateStage>(arena, *from._impl_.stage_.update_); - break; - case kDone: - _impl_.stage_.done_ = CreateMaybeMessage<::proto::rpc::webrtc::v1::AnswerRequestDoneStage>(arena, *from._impl_.stage_.done_); - break; - case kError: - _impl_.stage_.error_ = CreateMaybeMessage<::proto::rpc::webrtc::v1::AnswerRequestErrorStage>(arena, *from._impl_.stage_.error_); - break; - case kHeartbeat: - _impl_.stage_.heartbeat_ = CreateMaybeMessage<::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage>(arena, *from._impl_.stage_.heartbeat_); - break; + } } - // @@protoc_insertion_point(copy_constructor:proto.rpc.webrtc.v1.AnswerRequest) } -inline PROTOBUF_NDEBUG_INLINE AnswerRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : uuid_(arena), - stage_{}, - _cached_size_{0}, - _oneof_case_{} {} -inline void AnswerRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void AnswerRequest::SharedCtor() { +uuid_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + uuid_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +clear_has_stage(); } + AnswerRequest::~AnswerRequest() { // @@protoc_insertion_point(destructor:proto.rpc.webrtc.v1.AnswerRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void AnswerRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.uuid_.Destroy(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + uuid_.Destroy(); if (has_stage()) { clear_stage(); } - _impl_.~Impl_(); +} + +void AnswerRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } void AnswerRequest::clear_stage() { // @@protoc_insertion_point(one_of_clear_start:proto.rpc.webrtc.v1.AnswerRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); switch (stage_case()) { case kInit: { - if (GetArena() == nullptr) { - delete _impl_.stage_.init_; + if (GetArenaForAllocation() == nullptr) { + delete stage_.init_; } break; } case kUpdate: { - if (GetArena() == nullptr) { - delete _impl_.stage_.update_; + if (GetArenaForAllocation() == nullptr) { + delete stage_.update_; } break; } case kDone: { - if (GetArena() == nullptr) { - delete _impl_.stage_.done_; + if (GetArenaForAllocation() == nullptr) { + delete stage_.done_; } break; } case kError: { - if (GetArena() == nullptr) { - delete _impl_.stage_.error_; + if (GetArenaForAllocation() == nullptr) { + delete stage_.error_; } break; } case kHeartbeat: { - if (GetArena() == nullptr) { - delete _impl_.stage_.heartbeat_; + if (GetArenaForAllocation() == nullptr) { + delete stage_.heartbeat_; } break; } @@ -3961,241 +3821,265 @@ void AnswerRequest::clear_stage() { break; } } - _impl_._oneof_case_[0] = STAGE_NOT_SET; + _oneof_case_[0] = STAGE_NOT_SET; } -PROTOBUF_NOINLINE void AnswerRequest::Clear() { +void AnswerRequest::Clear() { // @@protoc_insertion_point(message_clear_start:proto.rpc.webrtc.v1.AnswerRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.uuid_.ClearToEmpty(); + uuid_.ClearToEmpty(); clear_stage(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* AnswerRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* AnswerRequest::_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 uuid = 1 [json_name = "uuid"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_uuid(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "proto.rpc.webrtc.v1.AnswerRequest.uuid")); + } else + goto handle_unusual; + continue; + // .proto.rpc.webrtc.v1.AnswerRequestInitStage init = 2 [json_name = "init"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_init(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .proto.rpc.webrtc.v1.AnswerRequestUpdateStage update = 3 [json_name = "update"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_update(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .proto.rpc.webrtc.v1.AnswerRequestDoneStage done = 4 [json_name = "done"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_done(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .proto.rpc.webrtc.v1.AnswerRequestErrorStage error = 5 [json_name = "error"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_error(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .proto.rpc.webrtc.v1.AnswerRequestHeartbeatStage heartbeat = 6 [json_name = "heartbeat"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr = ctx->ParseMessage(_internal_mutable_heartbeat(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 6, 5, 46, 2> AnswerRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 6, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967232, // skipmap - offsetof(decltype(_table_), field_entries), - 6, // num_field_entries - 5, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_AnswerRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string uuid = 1 [json_name = "uuid"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(AnswerRequest, _impl_.uuid_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string uuid = 1 [json_name = "uuid"]; - {PROTOBUF_FIELD_OFFSET(AnswerRequest, _impl_.uuid_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .proto.rpc.webrtc.v1.AnswerRequestInitStage init = 2 [json_name = "init"]; - {PROTOBUF_FIELD_OFFSET(AnswerRequest, _impl_.stage_.init_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .proto.rpc.webrtc.v1.AnswerRequestUpdateStage update = 3 [json_name = "update"]; - {PROTOBUF_FIELD_OFFSET(AnswerRequest, _impl_.stage_.update_), _Internal::kOneofCaseOffset + 0, 1, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .proto.rpc.webrtc.v1.AnswerRequestDoneStage done = 4 [json_name = "done"]; - {PROTOBUF_FIELD_OFFSET(AnswerRequest, _impl_.stage_.done_), _Internal::kOneofCaseOffset + 0, 2, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvDefault)}, - // .proto.rpc.webrtc.v1.AnswerRequestErrorStage error = 5 [json_name = "error"]; - {PROTOBUF_FIELD_OFFSET(AnswerRequest, _impl_.stage_.error_), _Internal::kOneofCaseOffset + 0, 3, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .proto.rpc.webrtc.v1.AnswerRequestHeartbeatStage heartbeat = 6 [json_name = "heartbeat"]; - {PROTOBUF_FIELD_OFFSET(AnswerRequest, _impl_.stage_.heartbeat_), _Internal::kOneofCaseOffset + 0, 4, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvDefault)}, - }}, {{ - {::_pbi::TcParser::GetTable<::proto::rpc::webrtc::v1::AnswerRequestInitStage>()}, - {::_pbi::TcParser::GetTable<::proto::rpc::webrtc::v1::AnswerRequestUpdateStage>()}, - {::_pbi::FieldAuxDefaultMessage{}, &::proto::rpc::webrtc::v1::_AnswerRequestDoneStage_default_instance_}, - {::_pbi::TcParser::GetTable<::proto::rpc::webrtc::v1::AnswerRequestErrorStage>()}, - {::_pbi::FieldAuxDefaultMessage{}, &::proto::rpc::webrtc::v1::_AnswerRequestHeartbeatStage_default_instance_}, - }}, {{ - "\41\4\0\0\0\0\0\0" - "proto.rpc.webrtc.v1.AnswerRequest" - "uuid" - }}, -}; - -::uint8_t* AnswerRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* AnswerRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.rpc.webrtc.v1.AnswerRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string uuid = 1 [json_name = "uuid"]; if (!this->_internal_uuid().empty()) { - const std::string& _s = this->_internal_uuid(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "proto.rpc.webrtc.v1.AnswerRequest.uuid"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_uuid().data(), static_cast(this->_internal_uuid().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "proto.rpc.webrtc.v1.AnswerRequest.uuid"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_uuid(), target); } - switch (stage_case()) { - case kInit: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::init(this), - _Internal::init(this).GetCachedSize(), target, stream); - break; - } - case kUpdate: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::update(this), - _Internal::update(this).GetCachedSize(), target, stream); - break; - } - case kDone: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, _Internal::done(this), - _Internal::done(this).GetCachedSize(), target, stream); - break; - } - case kError: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 5, _Internal::error(this), - _Internal::error(this).GetCachedSize(), target, stream); - break; - } - case kHeartbeat: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 6, _Internal::heartbeat(this), - _Internal::heartbeat(this).GetCachedSize(), target, stream); - break; - } - default: - break; + // .proto.rpc.webrtc.v1.AnswerRequestInitStage init = 2 [json_name = "init"]; + if (_internal_has_init()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::init(this), + _Internal::init(this).GetCachedSize(), target, stream); + } + + // .proto.rpc.webrtc.v1.AnswerRequestUpdateStage update = 3 [json_name = "update"]; + if (_internal_has_update()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::update(this), + _Internal::update(this).GetCachedSize(), target, stream); + } + + // .proto.rpc.webrtc.v1.AnswerRequestDoneStage done = 4 [json_name = "done"]; + if (_internal_has_done()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::done(this), + _Internal::done(this).GetCachedSize(), target, stream); + } + + // .proto.rpc.webrtc.v1.AnswerRequestErrorStage error = 5 [json_name = "error"]; + if (_internal_has_error()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(5, _Internal::error(this), + _Internal::error(this).GetCachedSize(), target, stream); + } + + // .proto.rpc.webrtc.v1.AnswerRequestHeartbeatStage heartbeat = 6 [json_name = "heartbeat"]; + if (_internal_has_heartbeat()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(6, _Internal::heartbeat(this), + _Internal::heartbeat(this).GetCachedSize(), target, stream); } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:proto.rpc.webrtc.v1.AnswerRequest) return target; } -::size_t AnswerRequest::ByteSizeLong() const { +size_t AnswerRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.rpc.webrtc.v1.AnswerRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string uuid = 1 [json_name = "uuid"]; if (!this->_internal_uuid().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_uuid()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_uuid()); } switch (stage_case()) { // .proto.rpc.webrtc.v1.AnswerRequestInitStage init = 2 [json_name = "init"]; case kInit: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.stage_.init_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *stage_.init_); break; } // .proto.rpc.webrtc.v1.AnswerRequestUpdateStage update = 3 [json_name = "update"]; case kUpdate: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.stage_.update_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *stage_.update_); break; } // .proto.rpc.webrtc.v1.AnswerRequestDoneStage done = 4 [json_name = "done"]; case kDone: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.stage_.done_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *stage_.done_); break; } // .proto.rpc.webrtc.v1.AnswerRequestErrorStage error = 5 [json_name = "error"]; case kError: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.stage_.error_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *stage_.error_); break; } // .proto.rpc.webrtc.v1.AnswerRequestHeartbeatStage heartbeat = 6 [json_name = "heartbeat"]; case kHeartbeat: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.stage_.heartbeat_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *stage_.heartbeat_); break; } case STAGE_NOT_SET: { break; } } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData AnswerRequest::_class_data_ = { - AnswerRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AnswerRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + AnswerRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* AnswerRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AnswerRequest::GetClassData() const { return &_class_data_; } + +void AnswerRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void AnswerRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.webrtc.v1.AnswerRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void AnswerRequest::MergeFrom(const AnswerRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.webrtc.v1.AnswerRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_uuid().empty()) { - _this->_internal_set_uuid(from._internal_uuid()); + _internal_set_uuid(from._internal_uuid()); } switch (from.stage_case()) { case kInit: { - _this->_internal_mutable_init()->::proto::rpc::webrtc::v1::AnswerRequestInitStage::MergeFrom( - from._internal_init()); + _internal_mutable_init()->::proto::rpc::webrtc::v1::AnswerRequestInitStage::MergeFrom(from._internal_init()); break; } case kUpdate: { - _this->_internal_mutable_update()->::proto::rpc::webrtc::v1::AnswerRequestUpdateStage::MergeFrom( - from._internal_update()); + _internal_mutable_update()->::proto::rpc::webrtc::v1::AnswerRequestUpdateStage::MergeFrom(from._internal_update()); break; } case kDone: { - _this->_internal_mutable_done()->::proto::rpc::webrtc::v1::AnswerRequestDoneStage::MergeFrom( - from._internal_done()); + _internal_mutable_done()->::proto::rpc::webrtc::v1::AnswerRequestDoneStage::MergeFrom(from._internal_done()); break; } case kError: { - _this->_internal_mutable_error()->::proto::rpc::webrtc::v1::AnswerRequestErrorStage::MergeFrom( - from._internal_error()); + _internal_mutable_error()->::proto::rpc::webrtc::v1::AnswerRequestErrorStage::MergeFrom(from._internal_error()); break; } case kHeartbeat: { - _this->_internal_mutable_heartbeat()->::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage::MergeFrom( - from._internal_heartbeat()); + _internal_mutable_heartbeat()->::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage::MergeFrom(from._internal_heartbeat()); break; } case STAGE_NOT_SET: { break; } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void AnswerRequest::CopyFrom(const AnswerRequest& from) { @@ -4205,189 +4089,194 @@ void AnswerRequest::CopyFrom(const AnswerRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool AnswerRequest::IsInitialized() const { +bool AnswerRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* AnswerRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void AnswerRequest::InternalSwap(AnswerRequest* PROTOBUF_RESTRICT other) { +void AnswerRequest::InternalSwap(AnswerRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.uuid_, &other->_impl_.uuid_, arena); - swap(_impl_.stage_, other->_impl_.stage_); - swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &uuid_, lhs_arena, + &other->uuid_, rhs_arena + ); + swap(stage_, other->stage_); + swap(_oneof_case_[0], other->_oneof_case_[0]); } -::google::protobuf::Metadata AnswerRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata AnswerRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_getter, &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_once, file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto[14]); } + // =================================================================== class AnswerResponseInitStage::_Internal { public: }; -AnswerResponseInitStage::AnswerResponseInitStage(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +AnswerResponseInitStage::AnswerResponseInitStage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:proto.rpc.webrtc.v1.AnswerResponseInitStage) } -inline PROTOBUF_NDEBUG_INLINE AnswerResponseInitStage::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : sdp_(arena, from.sdp_), - _cached_size_{0} {} - -AnswerResponseInitStage::AnswerResponseInitStage( - ::google::protobuf::Arena* arena, - const AnswerResponseInitStage& from) - : ::google::protobuf::Message(arena) { - AnswerResponseInitStage* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +AnswerResponseInitStage::AnswerResponseInitStage(const AnswerResponseInitStage& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + sdp_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + sdp_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_sdp().empty()) { + sdp_.Set(from._internal_sdp(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:proto.rpc.webrtc.v1.AnswerResponseInitStage) } -inline PROTOBUF_NDEBUG_INLINE AnswerResponseInitStage::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : sdp_(arena), - _cached_size_{0} {} -inline void AnswerResponseInitStage::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void AnswerResponseInitStage::SharedCtor() { +sdp_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + sdp_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + AnswerResponseInitStage::~AnswerResponseInitStage() { // @@protoc_insertion_point(destructor:proto.rpc.webrtc.v1.AnswerResponseInitStage) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void AnswerResponseInitStage::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.sdp_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + sdp_.Destroy(); } -PROTOBUF_NOINLINE void AnswerResponseInitStage::Clear() { +void AnswerResponseInitStage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void AnswerResponseInitStage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.rpc.webrtc.v1.AnswerResponseInitStage) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.sdp_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* AnswerResponseInitStage::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + sdp_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* AnswerResponseInitStage::_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 sdp = 1 [json_name = "sdp"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_sdp(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "proto.rpc.webrtc.v1.AnswerResponseInitStage.sdp")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 55, 2> AnswerResponseInitStage::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_AnswerResponseInitStage_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string sdp = 1 [json_name = "sdp"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(AnswerResponseInitStage, _impl_.sdp_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string sdp = 1 [json_name = "sdp"]; - {PROTOBUF_FIELD_OFFSET(AnswerResponseInitStage, _impl_.sdp_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\53\3\0\0\0\0\0\0" - "proto.rpc.webrtc.v1.AnswerResponseInitStage" - "sdp" - }}, -}; - -::uint8_t* AnswerResponseInitStage::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* AnswerResponseInitStage::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.rpc.webrtc.v1.AnswerResponseInitStage) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string sdp = 1 [json_name = "sdp"]; if (!this->_internal_sdp().empty()) { - const std::string& _s = this->_internal_sdp(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "proto.rpc.webrtc.v1.AnswerResponseInitStage.sdp"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_sdp().data(), static_cast(this->_internal_sdp().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "proto.rpc.webrtc.v1.AnswerResponseInitStage.sdp"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_sdp(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:proto.rpc.webrtc.v1.AnswerResponseInitStage) return target; } -::size_t AnswerResponseInitStage::ByteSizeLong() const { +size_t AnswerResponseInitStage::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.rpc.webrtc.v1.AnswerResponseInitStage) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string sdp = 1 [json_name = "sdp"]; if (!this->_internal_sdp().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_sdp()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_sdp()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData AnswerResponseInitStage::_class_data_ = { - AnswerResponseInitStage::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AnswerResponseInitStage::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + AnswerResponseInitStage::MergeImpl }; -const ::google::protobuf::Message::ClassData* AnswerResponseInitStage::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AnswerResponseInitStage::GetClassData() const { return &_class_data_; } + +void AnswerResponseInitStage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void AnswerResponseInitStage::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.webrtc.v1.AnswerResponseInitStage) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void AnswerResponseInitStage::MergeFrom(const AnswerResponseInitStage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.webrtc.v1.AnswerResponseInitStage) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_sdp().empty()) { - _this->_internal_set_sdp(from._internal_sdp()); + _internal_set_sdp(from._internal_sdp()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void AnswerResponseInitStage::CopyFrom(const AnswerResponseInitStage& from) { @@ -4397,205 +4286,189 @@ void AnswerResponseInitStage::CopyFrom(const AnswerResponseInitStage& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool AnswerResponseInitStage::IsInitialized() const { +bool AnswerResponseInitStage::IsInitialized() const { return true; } -::_pbi::CachedSize* AnswerResponseInitStage::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void AnswerResponseInitStage::InternalSwap(AnswerResponseInitStage* PROTOBUF_RESTRICT other) { +void AnswerResponseInitStage::InternalSwap(AnswerResponseInitStage* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.sdp_, &other->_impl_.sdp_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &sdp_, lhs_arena, + &other->sdp_, rhs_arena + ); } -::google::protobuf::Metadata AnswerResponseInitStage::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata AnswerResponseInitStage::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_getter, &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_once, file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto[15]); } + // =================================================================== class AnswerResponseUpdateStage::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(AnswerResponseUpdateStage, _impl_._has_bits_); static const ::proto::rpc::webrtc::v1::ICECandidate& candidate(const AnswerResponseUpdateStage* msg); - static void set_has_candidate(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::proto::rpc::webrtc::v1::ICECandidate& AnswerResponseUpdateStage::_Internal::candidate(const AnswerResponseUpdateStage* msg) { - return *msg->_impl_.candidate_; +const ::proto::rpc::webrtc::v1::ICECandidate& +AnswerResponseUpdateStage::_Internal::candidate(const AnswerResponseUpdateStage* msg) { + return *msg->candidate_; } -AnswerResponseUpdateStage::AnswerResponseUpdateStage(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +AnswerResponseUpdateStage::AnswerResponseUpdateStage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:proto.rpc.webrtc.v1.AnswerResponseUpdateStage) } -inline PROTOBUF_NDEBUG_INLINE AnswerResponseUpdateStage::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -AnswerResponseUpdateStage::AnswerResponseUpdateStage( - ::google::protobuf::Arena* arena, - const AnswerResponseUpdateStage& from) - : ::google::protobuf::Message(arena) { - AnswerResponseUpdateStage* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.candidate_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::proto::rpc::webrtc::v1::ICECandidate>(arena, *from._impl_.candidate_) - : nullptr; - +AnswerResponseUpdateStage::AnswerResponseUpdateStage(const AnswerResponseUpdateStage& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_candidate()) { + candidate_ = new ::proto::rpc::webrtc::v1::ICECandidate(*from.candidate_); + } else { + candidate_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:proto.rpc.webrtc.v1.AnswerResponseUpdateStage) } -inline PROTOBUF_NDEBUG_INLINE AnswerResponseUpdateStage::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void AnswerResponseUpdateStage::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.candidate_ = {}; +inline void AnswerResponseUpdateStage::SharedCtor() { +candidate_ = nullptr; } + AnswerResponseUpdateStage::~AnswerResponseUpdateStage() { // @@protoc_insertion_point(destructor:proto.rpc.webrtc.v1.AnswerResponseUpdateStage) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void AnswerResponseUpdateStage::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.candidate_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete candidate_; } -PROTOBUF_NOINLINE void AnswerResponseUpdateStage::Clear() { +void AnswerResponseUpdateStage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void AnswerResponseUpdateStage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.rpc.webrtc.v1.AnswerResponseUpdateStage) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.candidate_ != nullptr); - _impl_.candidate_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* AnswerResponseUpdateStage::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + if (GetArenaForAllocation() == nullptr && candidate_ != nullptr) { + delete candidate_; + } + candidate_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* AnswerResponseUpdateStage::_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) { + // .proto.rpc.webrtc.v1.ICECandidate candidate = 1 [json_name = "candidate"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_candidate(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> AnswerResponseUpdateStage::_table_ = { - { - PROTOBUF_FIELD_OFFSET(AnswerResponseUpdateStage, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_AnswerResponseUpdateStage_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .proto.rpc.webrtc.v1.ICECandidate candidate = 1 [json_name = "candidate"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(AnswerResponseUpdateStage, _impl_.candidate_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .proto.rpc.webrtc.v1.ICECandidate candidate = 1 [json_name = "candidate"]; - {PROTOBUF_FIELD_OFFSET(AnswerResponseUpdateStage, _impl_.candidate_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::proto::rpc::webrtc::v1::ICECandidate>()}, - }}, {{ - }}, -}; - -::uint8_t* AnswerResponseUpdateStage::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* AnswerResponseUpdateStage::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.rpc.webrtc.v1.AnswerResponseUpdateStage) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .proto.rpc.webrtc.v1.ICECandidate candidate = 1 [json_name = "candidate"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::candidate(this), + if (this->_internal_has_candidate()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::candidate(this), _Internal::candidate(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:proto.rpc.webrtc.v1.AnswerResponseUpdateStage) return target; } -::size_t AnswerResponseUpdateStage::ByteSizeLong() const { +size_t AnswerResponseUpdateStage::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.rpc.webrtc.v1.AnswerResponseUpdateStage) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .proto.rpc.webrtc.v1.ICECandidate candidate = 1 [json_name = "candidate"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.candidate_); + if (this->_internal_has_candidate()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *candidate_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData AnswerResponseUpdateStage::_class_data_ = { - AnswerResponseUpdateStage::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AnswerResponseUpdateStage::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + AnswerResponseUpdateStage::MergeImpl }; -const ::google::protobuf::Message::ClassData* AnswerResponseUpdateStage::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AnswerResponseUpdateStage::GetClassData() const { return &_class_data_; } + +void AnswerResponseUpdateStage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void AnswerResponseUpdateStage::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.webrtc.v1.AnswerResponseUpdateStage) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void AnswerResponseUpdateStage::MergeFrom(const AnswerResponseUpdateStage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.webrtc.v1.AnswerResponseUpdateStage) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_candidate()->::proto::rpc::webrtc::v1::ICECandidate::MergeFrom( - from._internal_candidate()); + if (from._internal_has_candidate()) { + _internal_mutable_candidate()->::proto::rpc::webrtc::v1::ICECandidate::MergeFrom(from._internal_candidate()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void AnswerResponseUpdateStage::CopyFrom(const AnswerResponseUpdateStage& from) { @@ -4605,44 +4478,36 @@ void AnswerResponseUpdateStage::CopyFrom(const AnswerResponseUpdateStage& from) MergeFrom(from); } -PROTOBUF_NOINLINE bool AnswerResponseUpdateStage::IsInitialized() const { +bool AnswerResponseUpdateStage::IsInitialized() const { return true; } -::_pbi::CachedSize* AnswerResponseUpdateStage::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void AnswerResponseUpdateStage::InternalSwap(AnswerResponseUpdateStage* PROTOBUF_RESTRICT other) { +void AnswerResponseUpdateStage::InternalSwap(AnswerResponseUpdateStage* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.candidate_, other->_impl_.candidate_); + swap(candidate_, other->candidate_); } -::google::protobuf::Metadata AnswerResponseUpdateStage::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata AnswerResponseUpdateStage::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_getter, &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_once, file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto[16]); } + // =================================================================== class AnswerResponseDoneStage::_Internal { public: }; -AnswerResponseDoneStage::AnswerResponseDoneStage(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +AnswerResponseDoneStage::AnswerResponseDoneStage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:proto.rpc.webrtc.v1.AnswerResponseDoneStage) } -AnswerResponseDoneStage::AnswerResponseDoneStage( - ::google::protobuf::Arena* arena, - const AnswerResponseDoneStage& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - AnswerResponseDoneStage* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +AnswerResponseDoneStage::AnswerResponseDoneStage(const AnswerResponseDoneStage& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:proto.rpc.webrtc.v1.AnswerResponseDoneStage) } @@ -4650,199 +4515,192 @@ AnswerResponseDoneStage::AnswerResponseDoneStage( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AnswerResponseDoneStage::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AnswerResponseDoneStage::GetClassData() const { return &_class_data_; } + + -::google::protobuf::Metadata AnswerResponseDoneStage::GetMetadata() const { + +::PROTOBUF_NAMESPACE_ID::Metadata AnswerResponseDoneStage::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_getter, &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_once, file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto[17]); } + // =================================================================== class AnswerResponseErrorStage::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(AnswerResponseErrorStage, _impl_._has_bits_); static const ::google::rpc::Status& status(const AnswerResponseErrorStage* msg); - static void set_has_status(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::google::rpc::Status& AnswerResponseErrorStage::_Internal::status(const AnswerResponseErrorStage* msg) { - return *msg->_impl_.status_; +const ::google::rpc::Status& +AnswerResponseErrorStage::_Internal::status(const AnswerResponseErrorStage* msg) { + return *msg->status_; } void AnswerResponseErrorStage::clear_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.status_ != nullptr) _impl_.status_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; } -AnswerResponseErrorStage::AnswerResponseErrorStage(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +AnswerResponseErrorStage::AnswerResponseErrorStage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:proto.rpc.webrtc.v1.AnswerResponseErrorStage) } -inline PROTOBUF_NDEBUG_INLINE AnswerResponseErrorStage::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -AnswerResponseErrorStage::AnswerResponseErrorStage( - ::google::protobuf::Arena* arena, - const AnswerResponseErrorStage& from) - : ::google::protobuf::Message(arena) { - AnswerResponseErrorStage* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.status_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::rpc::Status>(arena, *from._impl_.status_) - : nullptr; - +AnswerResponseErrorStage::AnswerResponseErrorStage(const AnswerResponseErrorStage& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_status()) { + status_ = new ::google::rpc::Status(*from.status_); + } else { + status_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:proto.rpc.webrtc.v1.AnswerResponseErrorStage) } -inline PROTOBUF_NDEBUG_INLINE AnswerResponseErrorStage::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void AnswerResponseErrorStage::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.status_ = {}; +inline void AnswerResponseErrorStage::SharedCtor() { +status_ = nullptr; } + AnswerResponseErrorStage::~AnswerResponseErrorStage() { // @@protoc_insertion_point(destructor:proto.rpc.webrtc.v1.AnswerResponseErrorStage) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void AnswerResponseErrorStage::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.status_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete status_; } -PROTOBUF_NOINLINE void AnswerResponseErrorStage::Clear() { +void AnswerResponseErrorStage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void AnswerResponseErrorStage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.rpc.webrtc.v1.AnswerResponseErrorStage) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.status_ != nullptr); - _impl_.status_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* AnswerResponseErrorStage::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + if (GetArenaForAllocation() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* AnswerResponseErrorStage::_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) { + // .google.rpc.Status status = 1 [json_name = "status"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_status(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> AnswerResponseErrorStage::_table_ = { - { - PROTOBUF_FIELD_OFFSET(AnswerResponseErrorStage, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_AnswerResponseErrorStage_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .google.rpc.Status status = 1 [json_name = "status"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(AnswerResponseErrorStage, _impl_.status_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .google.rpc.Status status = 1 [json_name = "status"]; - {PROTOBUF_FIELD_OFFSET(AnswerResponseErrorStage, _impl_.status_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::rpc::Status>()}, - }}, {{ - }}, -}; - -::uint8_t* AnswerResponseErrorStage::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* AnswerResponseErrorStage::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.rpc.webrtc.v1.AnswerResponseErrorStage) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .google.rpc.Status status = 1 [json_name = "status"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::status(this), + if (this->_internal_has_status()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:proto.rpc.webrtc.v1.AnswerResponseErrorStage) return target; } -::size_t AnswerResponseErrorStage::ByteSizeLong() const { +size_t AnswerResponseErrorStage::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.rpc.webrtc.v1.AnswerResponseErrorStage) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .google.rpc.Status status = 1 [json_name = "status"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.status_); + if (this->_internal_has_status()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *status_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData AnswerResponseErrorStage::_class_data_ = { - AnswerResponseErrorStage::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AnswerResponseErrorStage::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + AnswerResponseErrorStage::MergeImpl }; -const ::google::protobuf::Message::ClassData* AnswerResponseErrorStage::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AnswerResponseErrorStage::GetClassData() const { return &_class_data_; } + +void AnswerResponseErrorStage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void AnswerResponseErrorStage::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.webrtc.v1.AnswerResponseErrorStage) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void AnswerResponseErrorStage::MergeFrom(const AnswerResponseErrorStage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.webrtc.v1.AnswerResponseErrorStage) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_status()->::google::rpc::Status::MergeFrom( - from._internal_status()); + if (from._internal_has_status()) { + _internal_mutable_status()->::google::rpc::Status::MergeFrom(from._internal_status()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void AnswerResponseErrorStage::CopyFrom(const AnswerResponseErrorStage& from) { @@ -4852,192 +4710,203 @@ void AnswerResponseErrorStage::CopyFrom(const AnswerResponseErrorStage& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool AnswerResponseErrorStage::IsInitialized() const { +bool AnswerResponseErrorStage::IsInitialized() const { return true; } -::_pbi::CachedSize* AnswerResponseErrorStage::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void AnswerResponseErrorStage::InternalSwap(AnswerResponseErrorStage* PROTOBUF_RESTRICT other) { +void AnswerResponseErrorStage::InternalSwap(AnswerResponseErrorStage* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.status_, other->_impl_.status_); + swap(status_, other->status_); } -::google::protobuf::Metadata AnswerResponseErrorStage::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata AnswerResponseErrorStage::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_getter, &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_once, file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto[18]); } + // =================================================================== class AnswerResponse::_Internal { public: - static constexpr ::int32_t kOneofCaseOffset = - PROTOBUF_FIELD_OFFSET(::proto::rpc::webrtc::v1::AnswerResponse, _impl_._oneof_case_); static const ::proto::rpc::webrtc::v1::AnswerResponseInitStage& init(const AnswerResponse* msg); static const ::proto::rpc::webrtc::v1::AnswerResponseUpdateStage& update(const AnswerResponse* msg); static const ::proto::rpc::webrtc::v1::AnswerResponseDoneStage& done(const AnswerResponse* msg); static const ::proto::rpc::webrtc::v1::AnswerResponseErrorStage& error(const AnswerResponse* msg); }; -const ::proto::rpc::webrtc::v1::AnswerResponseInitStage& AnswerResponse::_Internal::init(const AnswerResponse* msg) { - return *msg->_impl_.stage_.init_; +const ::proto::rpc::webrtc::v1::AnswerResponseInitStage& +AnswerResponse::_Internal::init(const AnswerResponse* msg) { + return *msg->stage_.init_; } -const ::proto::rpc::webrtc::v1::AnswerResponseUpdateStage& AnswerResponse::_Internal::update(const AnswerResponse* msg) { - return *msg->_impl_.stage_.update_; +const ::proto::rpc::webrtc::v1::AnswerResponseUpdateStage& +AnswerResponse::_Internal::update(const AnswerResponse* msg) { + return *msg->stage_.update_; } -const ::proto::rpc::webrtc::v1::AnswerResponseDoneStage& AnswerResponse::_Internal::done(const AnswerResponse* msg) { - return *msg->_impl_.stage_.done_; +const ::proto::rpc::webrtc::v1::AnswerResponseDoneStage& +AnswerResponse::_Internal::done(const AnswerResponse* msg) { + return *msg->stage_.done_; } -const ::proto::rpc::webrtc::v1::AnswerResponseErrorStage& AnswerResponse::_Internal::error(const AnswerResponse* msg) { - return *msg->_impl_.stage_.error_; +const ::proto::rpc::webrtc::v1::AnswerResponseErrorStage& +AnswerResponse::_Internal::error(const AnswerResponse* msg) { + return *msg->stage_.error_; } void AnswerResponse::set_allocated_init(::proto::rpc::webrtc::v1::AnswerResponseInitStage* init) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_stage(); if (init) { - ::google::protobuf::Arena* submessage_arena = init->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(init); if (message_arena != submessage_arena) { - init = ::google::protobuf::internal::GetOwnedMessage(message_arena, init, submessage_arena); + init = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, init, submessage_arena); } set_has_init(); - _impl_.stage_.init_ = init; + stage_.init_ = init; } // @@protoc_insertion_point(field_set_allocated:proto.rpc.webrtc.v1.AnswerResponse.init) } void AnswerResponse::set_allocated_update(::proto::rpc::webrtc::v1::AnswerResponseUpdateStage* update) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_stage(); if (update) { - ::google::protobuf::Arena* submessage_arena = update->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(update); if (message_arena != submessage_arena) { - update = ::google::protobuf::internal::GetOwnedMessage(message_arena, update, submessage_arena); + update = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, update, submessage_arena); } set_has_update(); - _impl_.stage_.update_ = update; + stage_.update_ = update; } // @@protoc_insertion_point(field_set_allocated:proto.rpc.webrtc.v1.AnswerResponse.update) } void AnswerResponse::set_allocated_done(::proto::rpc::webrtc::v1::AnswerResponseDoneStage* done) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_stage(); if (done) { - ::google::protobuf::Arena* submessage_arena = done->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(done); if (message_arena != submessage_arena) { - done = ::google::protobuf::internal::GetOwnedMessage(message_arena, done, submessage_arena); + done = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, done, submessage_arena); } set_has_done(); - _impl_.stage_.done_ = done; + stage_.done_ = done; } // @@protoc_insertion_point(field_set_allocated:proto.rpc.webrtc.v1.AnswerResponse.done) } void AnswerResponse::set_allocated_error(::proto::rpc::webrtc::v1::AnswerResponseErrorStage* error) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_stage(); if (error) { - ::google::protobuf::Arena* submessage_arena = error->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(error); if (message_arena != submessage_arena) { - error = ::google::protobuf::internal::GetOwnedMessage(message_arena, error, submessage_arena); + error = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, error, submessage_arena); } set_has_error(); - _impl_.stage_.error_ = error; + stage_.error_ = error; } // @@protoc_insertion_point(field_set_allocated:proto.rpc.webrtc.v1.AnswerResponse.error) } -AnswerResponse::AnswerResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +AnswerResponse::AnswerResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:proto.rpc.webrtc.v1.AnswerResponse) } -inline PROTOBUF_NDEBUG_INLINE AnswerResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : uuid_(arena, from.uuid_), - stage_{}, - _cached_size_{0}, - _oneof_case_{from._oneof_case_[0]} {} - -AnswerResponse::AnswerResponse( - ::google::protobuf::Arena* arena, - const AnswerResponse& from) - : ::google::protobuf::Message(arena) { - AnswerResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - switch (stage_case()) { - case STAGE_NOT_SET: +AnswerResponse::AnswerResponse(const AnswerResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + uuid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + uuid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_uuid().empty()) { + uuid_.Set(from._internal_uuid(), + GetArenaForAllocation()); + } + clear_has_stage(); + switch (from.stage_case()) { + case kInit: { + _internal_mutable_init()->::proto::rpc::webrtc::v1::AnswerResponseInitStage::MergeFrom(from._internal_init()); + break; + } + case kUpdate: { + _internal_mutable_update()->::proto::rpc::webrtc::v1::AnswerResponseUpdateStage::MergeFrom(from._internal_update()); + break; + } + case kDone: { + _internal_mutable_done()->::proto::rpc::webrtc::v1::AnswerResponseDoneStage::MergeFrom(from._internal_done()); + break; + } + case kError: { + _internal_mutable_error()->::proto::rpc::webrtc::v1::AnswerResponseErrorStage::MergeFrom(from._internal_error()); break; - case kInit: - _impl_.stage_.init_ = CreateMaybeMessage<::proto::rpc::webrtc::v1::AnswerResponseInitStage>(arena, *from._impl_.stage_.init_); - break; - case kUpdate: - _impl_.stage_.update_ = CreateMaybeMessage<::proto::rpc::webrtc::v1::AnswerResponseUpdateStage>(arena, *from._impl_.stage_.update_); - break; - case kDone: - _impl_.stage_.done_ = CreateMaybeMessage<::proto::rpc::webrtc::v1::AnswerResponseDoneStage>(arena, *from._impl_.stage_.done_); - break; - case kError: - _impl_.stage_.error_ = CreateMaybeMessage<::proto::rpc::webrtc::v1::AnswerResponseErrorStage>(arena, *from._impl_.stage_.error_); - break; + } + case STAGE_NOT_SET: { + break; + } } - // @@protoc_insertion_point(copy_constructor:proto.rpc.webrtc.v1.AnswerResponse) } -inline PROTOBUF_NDEBUG_INLINE AnswerResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : uuid_(arena), - stage_{}, - _cached_size_{0}, - _oneof_case_{} {} -inline void AnswerResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void AnswerResponse::SharedCtor() { +uuid_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + uuid_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +clear_has_stage(); } + AnswerResponse::~AnswerResponse() { // @@protoc_insertion_point(destructor:proto.rpc.webrtc.v1.AnswerResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void AnswerResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.uuid_.Destroy(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + uuid_.Destroy(); if (has_stage()) { clear_stage(); } - _impl_.~Impl_(); +} + +void AnswerResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } void AnswerResponse::clear_stage() { // @@protoc_insertion_point(one_of_clear_start:proto.rpc.webrtc.v1.AnswerResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); switch (stage_case()) { case kInit: { - if (GetArena() == nullptr) { - delete _impl_.stage_.init_; + if (GetArenaForAllocation() == nullptr) { + delete stage_.init_; } break; } case kUpdate: { - if (GetArena() == nullptr) { - delete _impl_.stage_.update_; + if (GetArenaForAllocation() == nullptr) { + delete stage_.update_; } break; } case kDone: { - if (GetArena() == nullptr) { - delete _impl_.stage_.done_; + if (GetArenaForAllocation() == nullptr) { + delete stage_.done_; } break; } case kError: { - if (GetArena() == nullptr) { - delete _impl_.stage_.error_; + if (GetArenaForAllocation() == nullptr) { + delete stage_.error_; } break; } @@ -5045,220 +4914,239 @@ void AnswerResponse::clear_stage() { break; } } - _impl_._oneof_case_[0] = STAGE_NOT_SET; + _oneof_case_[0] = STAGE_NOT_SET; } -PROTOBUF_NOINLINE void AnswerResponse::Clear() { +void AnswerResponse::Clear() { // @@protoc_insertion_point(message_clear_start:proto.rpc.webrtc.v1.AnswerResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.uuid_.ClearToEmpty(); + uuid_.ClearToEmpty(); clear_stage(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* AnswerResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* AnswerResponse::_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 uuid = 1 [json_name = "uuid"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_uuid(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "proto.rpc.webrtc.v1.AnswerResponse.uuid")); + } else + goto handle_unusual; + continue; + // .proto.rpc.webrtc.v1.AnswerResponseInitStage init = 2 [json_name = "init"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_init(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .proto.rpc.webrtc.v1.AnswerResponseUpdateStage update = 3 [json_name = "update"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_update(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .proto.rpc.webrtc.v1.AnswerResponseDoneStage done = 4 [json_name = "done"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_done(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .proto.rpc.webrtc.v1.AnswerResponseErrorStage error = 5 [json_name = "error"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_error(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 5, 4, 47, 2> AnswerResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 5, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967264, // skipmap - offsetof(decltype(_table_), field_entries), - 5, // num_field_entries - 4, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_AnswerResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string uuid = 1 [json_name = "uuid"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(AnswerResponse, _impl_.uuid_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string uuid = 1 [json_name = "uuid"]; - {PROTOBUF_FIELD_OFFSET(AnswerResponse, _impl_.uuid_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .proto.rpc.webrtc.v1.AnswerResponseInitStage init = 2 [json_name = "init"]; - {PROTOBUF_FIELD_OFFSET(AnswerResponse, _impl_.stage_.init_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .proto.rpc.webrtc.v1.AnswerResponseUpdateStage update = 3 [json_name = "update"]; - {PROTOBUF_FIELD_OFFSET(AnswerResponse, _impl_.stage_.update_), _Internal::kOneofCaseOffset + 0, 1, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .proto.rpc.webrtc.v1.AnswerResponseDoneStage done = 4 [json_name = "done"]; - {PROTOBUF_FIELD_OFFSET(AnswerResponse, _impl_.stage_.done_), _Internal::kOneofCaseOffset + 0, 2, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvDefault)}, - // .proto.rpc.webrtc.v1.AnswerResponseErrorStage error = 5 [json_name = "error"]; - {PROTOBUF_FIELD_OFFSET(AnswerResponse, _impl_.stage_.error_), _Internal::kOneofCaseOffset + 0, 3, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::proto::rpc::webrtc::v1::AnswerResponseInitStage>()}, - {::_pbi::TcParser::GetTable<::proto::rpc::webrtc::v1::AnswerResponseUpdateStage>()}, - {::_pbi::FieldAuxDefaultMessage{}, &::proto::rpc::webrtc::v1::_AnswerResponseDoneStage_default_instance_}, - {::_pbi::TcParser::GetTable<::proto::rpc::webrtc::v1::AnswerResponseErrorStage>()}, - }}, {{ - "\42\4\0\0\0\0\0\0" - "proto.rpc.webrtc.v1.AnswerResponse" - "uuid" - }}, -}; - -::uint8_t* AnswerResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* AnswerResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.rpc.webrtc.v1.AnswerResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string uuid = 1 [json_name = "uuid"]; if (!this->_internal_uuid().empty()) { - const std::string& _s = this->_internal_uuid(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "proto.rpc.webrtc.v1.AnswerResponse.uuid"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_uuid().data(), static_cast(this->_internal_uuid().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "proto.rpc.webrtc.v1.AnswerResponse.uuid"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_uuid(), target); } - switch (stage_case()) { - case kInit: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::init(this), - _Internal::init(this).GetCachedSize(), target, stream); - break; - } - case kUpdate: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::update(this), - _Internal::update(this).GetCachedSize(), target, stream); - break; - } - case kDone: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, _Internal::done(this), - _Internal::done(this).GetCachedSize(), target, stream); - break; - } - case kError: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 5, _Internal::error(this), - _Internal::error(this).GetCachedSize(), target, stream); - break; - } - default: - break; + // .proto.rpc.webrtc.v1.AnswerResponseInitStage init = 2 [json_name = "init"]; + if (_internal_has_init()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::init(this), + _Internal::init(this).GetCachedSize(), target, stream); + } + + // .proto.rpc.webrtc.v1.AnswerResponseUpdateStage update = 3 [json_name = "update"]; + if (_internal_has_update()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::update(this), + _Internal::update(this).GetCachedSize(), target, stream); + } + + // .proto.rpc.webrtc.v1.AnswerResponseDoneStage done = 4 [json_name = "done"]; + if (_internal_has_done()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::done(this), + _Internal::done(this).GetCachedSize(), target, stream); + } + + // .proto.rpc.webrtc.v1.AnswerResponseErrorStage error = 5 [json_name = "error"]; + if (_internal_has_error()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(5, _Internal::error(this), + _Internal::error(this).GetCachedSize(), target, stream); } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:proto.rpc.webrtc.v1.AnswerResponse) return target; } -::size_t AnswerResponse::ByteSizeLong() const { +size_t AnswerResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.rpc.webrtc.v1.AnswerResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string uuid = 1 [json_name = "uuid"]; if (!this->_internal_uuid().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_uuid()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_uuid()); } switch (stage_case()) { // .proto.rpc.webrtc.v1.AnswerResponseInitStage init = 2 [json_name = "init"]; case kInit: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.stage_.init_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *stage_.init_); break; } // .proto.rpc.webrtc.v1.AnswerResponseUpdateStage update = 3 [json_name = "update"]; case kUpdate: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.stage_.update_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *stage_.update_); break; } // .proto.rpc.webrtc.v1.AnswerResponseDoneStage done = 4 [json_name = "done"]; case kDone: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.stage_.done_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *stage_.done_); break; } // .proto.rpc.webrtc.v1.AnswerResponseErrorStage error = 5 [json_name = "error"]; case kError: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.stage_.error_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *stage_.error_); break; } case STAGE_NOT_SET: { break; } } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData AnswerResponse::_class_data_ = { - AnswerResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AnswerResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + AnswerResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* AnswerResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AnswerResponse::GetClassData() const { return &_class_data_; } + +void AnswerResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void AnswerResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.webrtc.v1.AnswerResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void AnswerResponse::MergeFrom(const AnswerResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.webrtc.v1.AnswerResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_uuid().empty()) { - _this->_internal_set_uuid(from._internal_uuid()); + _internal_set_uuid(from._internal_uuid()); } switch (from.stage_case()) { case kInit: { - _this->_internal_mutable_init()->::proto::rpc::webrtc::v1::AnswerResponseInitStage::MergeFrom( - from._internal_init()); + _internal_mutable_init()->::proto::rpc::webrtc::v1::AnswerResponseInitStage::MergeFrom(from._internal_init()); break; } case kUpdate: { - _this->_internal_mutable_update()->::proto::rpc::webrtc::v1::AnswerResponseUpdateStage::MergeFrom( - from._internal_update()); + _internal_mutable_update()->::proto::rpc::webrtc::v1::AnswerResponseUpdateStage::MergeFrom(from._internal_update()); break; } case kDone: { - _this->_internal_mutable_done()->::proto::rpc::webrtc::v1::AnswerResponseDoneStage::MergeFrom( - from._internal_done()); + _internal_mutable_done()->::proto::rpc::webrtc::v1::AnswerResponseDoneStage::MergeFrom(from._internal_done()); break; } case kError: { - _this->_internal_mutable_error()->::proto::rpc::webrtc::v1::AnswerResponseErrorStage::MergeFrom( - from._internal_error()); + _internal_mutable_error()->::proto::rpc::webrtc::v1::AnswerResponseErrorStage::MergeFrom(from._internal_error()); break; } case STAGE_NOT_SET: { break; } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void AnswerResponse::CopyFrom(const AnswerResponse& from) { @@ -5268,47 +5156,43 @@ void AnswerResponse::CopyFrom(const AnswerResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool AnswerResponse::IsInitialized() const { +bool AnswerResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* AnswerResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void AnswerResponse::InternalSwap(AnswerResponse* PROTOBUF_RESTRICT other) { +void AnswerResponse::InternalSwap(AnswerResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.uuid_, &other->_impl_.uuid_, arena); - swap(_impl_.stage_, other->_impl_.stage_); - swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &uuid_, lhs_arena, + &other->uuid_, rhs_arena + ); + swap(stage_, other->stage_); + swap(_oneof_case_[0], other->_oneof_case_[0]); } -::google::protobuf::Metadata AnswerResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata AnswerResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_getter, &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_once, file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto[19]); } + // =================================================================== class OptionalWebRTCConfigRequest::_Internal { public: }; -OptionalWebRTCConfigRequest::OptionalWebRTCConfigRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +OptionalWebRTCConfigRequest::OptionalWebRTCConfigRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:proto.rpc.webrtc.v1.OptionalWebRTCConfigRequest) } -OptionalWebRTCConfigRequest::OptionalWebRTCConfigRequest( - ::google::protobuf::Arena* arena, - const OptionalWebRTCConfigRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - OptionalWebRTCConfigRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +OptionalWebRTCConfigRequest::OptionalWebRTCConfigRequest(const OptionalWebRTCConfigRequest& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:proto.rpc.webrtc.v1.OptionalWebRTCConfigRequest) } @@ -5316,194 +5200,186 @@ OptionalWebRTCConfigRequest::OptionalWebRTCConfigRequest( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData OptionalWebRTCConfigRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*OptionalWebRTCConfigRequest::GetClassData() const { return &_class_data_; } + + -::google::protobuf::Metadata OptionalWebRTCConfigRequest::GetMetadata() const { + +::PROTOBUF_NAMESPACE_ID::Metadata OptionalWebRTCConfigRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_getter, &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_once, file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto[20]); } + // =================================================================== class OptionalWebRTCConfigResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(OptionalWebRTCConfigResponse, _impl_._has_bits_); static const ::proto::rpc::webrtc::v1::WebRTCConfig& config(const OptionalWebRTCConfigResponse* msg); - static void set_has_config(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::proto::rpc::webrtc::v1::WebRTCConfig& OptionalWebRTCConfigResponse::_Internal::config(const OptionalWebRTCConfigResponse* msg) { - return *msg->_impl_.config_; +const ::proto::rpc::webrtc::v1::WebRTCConfig& +OptionalWebRTCConfigResponse::_Internal::config(const OptionalWebRTCConfigResponse* msg) { + return *msg->config_; } -OptionalWebRTCConfigResponse::OptionalWebRTCConfigResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +OptionalWebRTCConfigResponse::OptionalWebRTCConfigResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:proto.rpc.webrtc.v1.OptionalWebRTCConfigResponse) } -inline PROTOBUF_NDEBUG_INLINE OptionalWebRTCConfigResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -OptionalWebRTCConfigResponse::OptionalWebRTCConfigResponse( - ::google::protobuf::Arena* arena, - const OptionalWebRTCConfigResponse& from) - : ::google::protobuf::Message(arena) { - OptionalWebRTCConfigResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.config_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::proto::rpc::webrtc::v1::WebRTCConfig>(arena, *from._impl_.config_) - : nullptr; - +OptionalWebRTCConfigResponse::OptionalWebRTCConfigResponse(const OptionalWebRTCConfigResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_config()) { + config_ = new ::proto::rpc::webrtc::v1::WebRTCConfig(*from.config_); + } else { + config_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:proto.rpc.webrtc.v1.OptionalWebRTCConfigResponse) } -inline PROTOBUF_NDEBUG_INLINE OptionalWebRTCConfigResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void OptionalWebRTCConfigResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.config_ = {}; +inline void OptionalWebRTCConfigResponse::SharedCtor() { +config_ = nullptr; } + OptionalWebRTCConfigResponse::~OptionalWebRTCConfigResponse() { // @@protoc_insertion_point(destructor:proto.rpc.webrtc.v1.OptionalWebRTCConfigResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void OptionalWebRTCConfigResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.config_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete config_; +} + +void OptionalWebRTCConfigResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void OptionalWebRTCConfigResponse::Clear() { +void OptionalWebRTCConfigResponse::Clear() { // @@protoc_insertion_point(message_clear_start:proto.rpc.webrtc.v1.OptionalWebRTCConfigResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.config_ != nullptr); - _impl_.config_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* OptionalWebRTCConfigResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + if (GetArenaForAllocation() == nullptr && config_ != nullptr) { + delete config_; + } + config_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* OptionalWebRTCConfigResponse::_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) { + // .proto.rpc.webrtc.v1.WebRTCConfig config = 1 [json_name = "config"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_config(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> OptionalWebRTCConfigResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(OptionalWebRTCConfigResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_OptionalWebRTCConfigResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .proto.rpc.webrtc.v1.WebRTCConfig config = 1 [json_name = "config"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(OptionalWebRTCConfigResponse, _impl_.config_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .proto.rpc.webrtc.v1.WebRTCConfig config = 1 [json_name = "config"]; - {PROTOBUF_FIELD_OFFSET(OptionalWebRTCConfigResponse, _impl_.config_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::proto::rpc::webrtc::v1::WebRTCConfig>()}, - }}, {{ - }}, -}; - -::uint8_t* OptionalWebRTCConfigResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* OptionalWebRTCConfigResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.rpc.webrtc.v1.OptionalWebRTCConfigResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .proto.rpc.webrtc.v1.WebRTCConfig config = 1 [json_name = "config"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::config(this), + if (this->_internal_has_config()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::config(this), _Internal::config(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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:proto.rpc.webrtc.v1.OptionalWebRTCConfigResponse) return target; } -::size_t OptionalWebRTCConfigResponse::ByteSizeLong() const { +size_t OptionalWebRTCConfigResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.rpc.webrtc.v1.OptionalWebRTCConfigResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .proto.rpc.webrtc.v1.WebRTCConfig config = 1 [json_name = "config"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.config_); + if (this->_internal_has_config()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *config_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData OptionalWebRTCConfigResponse::_class_data_ = { - OptionalWebRTCConfigResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData OptionalWebRTCConfigResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + OptionalWebRTCConfigResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* OptionalWebRTCConfigResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*OptionalWebRTCConfigResponse::GetClassData() const { return &_class_data_; } + +void OptionalWebRTCConfigResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void OptionalWebRTCConfigResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.webrtc.v1.OptionalWebRTCConfigResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void OptionalWebRTCConfigResponse::MergeFrom(const OptionalWebRTCConfigResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:proto.rpc.webrtc.v1.OptionalWebRTCConfigResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_config()->::proto::rpc::webrtc::v1::WebRTCConfig::MergeFrom( - from._internal_config()); + if (from._internal_has_config()) { + _internal_mutable_config()->::proto::rpc::webrtc::v1::WebRTCConfig::MergeFrom(from._internal_config()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void OptionalWebRTCConfigResponse::CopyFrom(const OptionalWebRTCConfigResponse& from) { @@ -5513,33 +5389,117 @@ void OptionalWebRTCConfigResponse::CopyFrom(const OptionalWebRTCConfigResponse& MergeFrom(from); } -PROTOBUF_NOINLINE bool OptionalWebRTCConfigResponse::IsInitialized() const { +bool OptionalWebRTCConfigResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* OptionalWebRTCConfigResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void OptionalWebRTCConfigResponse::InternalSwap(OptionalWebRTCConfigResponse* PROTOBUF_RESTRICT other) { +void OptionalWebRTCConfigResponse::InternalSwap(OptionalWebRTCConfigResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.config_, other->_impl_.config_); + swap(config_, other->config_); } -::google::protobuf::Metadata OptionalWebRTCConfigResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata OptionalWebRTCConfigResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_getter, &descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_once, file_level_metadata_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto[21]); } + // @@protoc_insertion_point(namespace_scope) } // namespace v1 } // namespace webrtc } // namespace rpc } // namespace proto -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::proto::rpc::webrtc::v1::ICECandidate* +Arena::CreateMaybeMessage< ::proto::rpc::webrtc::v1::ICECandidate >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::rpc::webrtc::v1::ICECandidate >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::rpc::webrtc::v1::CallRequest* +Arena::CreateMaybeMessage< ::proto::rpc::webrtc::v1::CallRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::rpc::webrtc::v1::CallRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::rpc::webrtc::v1::CallResponseInitStage* +Arena::CreateMaybeMessage< ::proto::rpc::webrtc::v1::CallResponseInitStage >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::rpc::webrtc::v1::CallResponseInitStage >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::rpc::webrtc::v1::CallResponseUpdateStage* +Arena::CreateMaybeMessage< ::proto::rpc::webrtc::v1::CallResponseUpdateStage >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::rpc::webrtc::v1::CallResponseUpdateStage >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::rpc::webrtc::v1::CallResponse* +Arena::CreateMaybeMessage< ::proto::rpc::webrtc::v1::CallResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::rpc::webrtc::v1::CallResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::rpc::webrtc::v1::CallUpdateRequest* +Arena::CreateMaybeMessage< ::proto::rpc::webrtc::v1::CallUpdateRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::rpc::webrtc::v1::CallUpdateRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::rpc::webrtc::v1::CallUpdateResponse* +Arena::CreateMaybeMessage< ::proto::rpc::webrtc::v1::CallUpdateResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::rpc::webrtc::v1::CallUpdateResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::rpc::webrtc::v1::ICEServer* +Arena::CreateMaybeMessage< ::proto::rpc::webrtc::v1::ICEServer >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::rpc::webrtc::v1::ICEServer >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::rpc::webrtc::v1::WebRTCConfig* +Arena::CreateMaybeMessage< ::proto::rpc::webrtc::v1::WebRTCConfig >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::rpc::webrtc::v1::WebRTCConfig >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::rpc::webrtc::v1::AnswerRequestInitStage* +Arena::CreateMaybeMessage< ::proto::rpc::webrtc::v1::AnswerRequestInitStage >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::rpc::webrtc::v1::AnswerRequestInitStage >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::rpc::webrtc::v1::AnswerRequestUpdateStage* +Arena::CreateMaybeMessage< ::proto::rpc::webrtc::v1::AnswerRequestUpdateStage >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::rpc::webrtc::v1::AnswerRequestUpdateStage >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::rpc::webrtc::v1::AnswerRequestDoneStage* +Arena::CreateMaybeMessage< ::proto::rpc::webrtc::v1::AnswerRequestDoneStage >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::rpc::webrtc::v1::AnswerRequestDoneStage >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::rpc::webrtc::v1::AnswerRequestErrorStage* +Arena::CreateMaybeMessage< ::proto::rpc::webrtc::v1::AnswerRequestErrorStage >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::rpc::webrtc::v1::AnswerRequestErrorStage >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage* +Arena::CreateMaybeMessage< ::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::rpc::webrtc::v1::AnswerRequest* +Arena::CreateMaybeMessage< ::proto::rpc::webrtc::v1::AnswerRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::rpc::webrtc::v1::AnswerRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::rpc::webrtc::v1::AnswerResponseInitStage* +Arena::CreateMaybeMessage< ::proto::rpc::webrtc::v1::AnswerResponseInitStage >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::rpc::webrtc::v1::AnswerResponseInitStage >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::rpc::webrtc::v1::AnswerResponseUpdateStage* +Arena::CreateMaybeMessage< ::proto::rpc::webrtc::v1::AnswerResponseUpdateStage >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::rpc::webrtc::v1::AnswerResponseUpdateStage >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::rpc::webrtc::v1::AnswerResponseDoneStage* +Arena::CreateMaybeMessage< ::proto::rpc::webrtc::v1::AnswerResponseDoneStage >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::rpc::webrtc::v1::AnswerResponseDoneStage >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::rpc::webrtc::v1::AnswerResponseErrorStage* +Arena::CreateMaybeMessage< ::proto::rpc::webrtc::v1::AnswerResponseErrorStage >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::rpc::webrtc::v1::AnswerResponseErrorStage >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::rpc::webrtc::v1::AnswerResponse* +Arena::CreateMaybeMessage< ::proto::rpc::webrtc::v1::AnswerResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::rpc::webrtc::v1::AnswerResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::rpc::webrtc::v1::OptionalWebRTCConfigRequest* +Arena::CreateMaybeMessage< ::proto::rpc::webrtc::v1::OptionalWebRTCConfigRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::rpc::webrtc::v1::OptionalWebRTCConfigRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse* +Arena::CreateMaybeMessage< ::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/proto/rpc/webrtc/v1/signaling.pb.h b/src/viam/api/proto/rpc/webrtc/v1/signaling.pb.h index 6586d648e..be5e09cd6 100644 --- a/src/viam/api/proto/rpc/webrtc/v1/signaling.pb.h +++ b/src/viam/api/proto/rpc/webrtc/v1/signaling.pb.h @@ -1,64 +1,53 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: proto/rpc/webrtc/v1/signaling.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_bases.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/unknown_field_set.h" + +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include #include "google/api/annotations.pb.h" -#include "google/protobuf/timestamp.pb.h" +#include #include "google/rpc/status.pb.h" // @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - +#include #define PROTOBUF_INTERNAL_EXPORT_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto; namespace proto { namespace rpc { namespace webrtc { @@ -133,11 +122,30 @@ extern WebRTCConfigDefaultTypeInternal _WebRTCConfig_default_instance_; } // namespace webrtc } // namespace rpc } // namespace proto -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - +PROTOBUF_NAMESPACE_OPEN +template<> ::proto::rpc::webrtc::v1::AnswerRequest* Arena::CreateMaybeMessage<::proto::rpc::webrtc::v1::AnswerRequest>(Arena*); +template<> ::proto::rpc::webrtc::v1::AnswerRequestDoneStage* Arena::CreateMaybeMessage<::proto::rpc::webrtc::v1::AnswerRequestDoneStage>(Arena*); +template<> ::proto::rpc::webrtc::v1::AnswerRequestErrorStage* Arena::CreateMaybeMessage<::proto::rpc::webrtc::v1::AnswerRequestErrorStage>(Arena*); +template<> ::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage* Arena::CreateMaybeMessage<::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage>(Arena*); +template<> ::proto::rpc::webrtc::v1::AnswerRequestInitStage* Arena::CreateMaybeMessage<::proto::rpc::webrtc::v1::AnswerRequestInitStage>(Arena*); +template<> ::proto::rpc::webrtc::v1::AnswerRequestUpdateStage* Arena::CreateMaybeMessage<::proto::rpc::webrtc::v1::AnswerRequestUpdateStage>(Arena*); +template<> ::proto::rpc::webrtc::v1::AnswerResponse* Arena::CreateMaybeMessage<::proto::rpc::webrtc::v1::AnswerResponse>(Arena*); +template<> ::proto::rpc::webrtc::v1::AnswerResponseDoneStage* Arena::CreateMaybeMessage<::proto::rpc::webrtc::v1::AnswerResponseDoneStage>(Arena*); +template<> ::proto::rpc::webrtc::v1::AnswerResponseErrorStage* Arena::CreateMaybeMessage<::proto::rpc::webrtc::v1::AnswerResponseErrorStage>(Arena*); +template<> ::proto::rpc::webrtc::v1::AnswerResponseInitStage* Arena::CreateMaybeMessage<::proto::rpc::webrtc::v1::AnswerResponseInitStage>(Arena*); +template<> ::proto::rpc::webrtc::v1::AnswerResponseUpdateStage* Arena::CreateMaybeMessage<::proto::rpc::webrtc::v1::AnswerResponseUpdateStage>(Arena*); +template<> ::proto::rpc::webrtc::v1::CallRequest* Arena::CreateMaybeMessage<::proto::rpc::webrtc::v1::CallRequest>(Arena*); +template<> ::proto::rpc::webrtc::v1::CallResponse* Arena::CreateMaybeMessage<::proto::rpc::webrtc::v1::CallResponse>(Arena*); +template<> ::proto::rpc::webrtc::v1::CallResponseInitStage* Arena::CreateMaybeMessage<::proto::rpc::webrtc::v1::CallResponseInitStage>(Arena*); +template<> ::proto::rpc::webrtc::v1::CallResponseUpdateStage* Arena::CreateMaybeMessage<::proto::rpc::webrtc::v1::CallResponseUpdateStage>(Arena*); +template<> ::proto::rpc::webrtc::v1::CallUpdateRequest* Arena::CreateMaybeMessage<::proto::rpc::webrtc::v1::CallUpdateRequest>(Arena*); +template<> ::proto::rpc::webrtc::v1::CallUpdateResponse* Arena::CreateMaybeMessage<::proto::rpc::webrtc::v1::CallUpdateResponse>(Arena*); +template<> ::proto::rpc::webrtc::v1::ICECandidate* Arena::CreateMaybeMessage<::proto::rpc::webrtc::v1::ICECandidate>(Arena*); +template<> ::proto::rpc::webrtc::v1::ICEServer* Arena::CreateMaybeMessage<::proto::rpc::webrtc::v1::ICEServer>(Arena*); +template<> ::proto::rpc::webrtc::v1::OptionalWebRTCConfigRequest* Arena::CreateMaybeMessage<::proto::rpc::webrtc::v1::OptionalWebRTCConfigRequest>(Arena*); +template<> ::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse* Arena::CreateMaybeMessage<::proto::rpc::webrtc::v1::OptionalWebRTCConfigResponse>(Arena*); +template<> ::proto::rpc::webrtc::v1::WebRTCConfig* Arena::CreateMaybeMessage<::proto::rpc::webrtc::v1::WebRTCConfig>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace proto { namespace rpc { namespace webrtc { @@ -145,32 +153,28 @@ namespace v1 { // =================================================================== - -// ------------------------------------------------------------------- - -class OptionalWebRTCConfigRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.OptionalWebRTCConfigRequest) */ { +class ICECandidate final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.ICECandidate) */ { public: - inline OptionalWebRTCConfigRequest() : OptionalWebRTCConfigRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR OptionalWebRTCConfigRequest(::google::protobuf::internal::ConstantInitialized); + inline ICECandidate() : ICECandidate(nullptr) {} + ~ICECandidate() override; + explicit PROTOBUF_CONSTEXPR ICECandidate(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline OptionalWebRTCConfigRequest(const OptionalWebRTCConfigRequest& from) - : OptionalWebRTCConfigRequest(nullptr, from) {} - OptionalWebRTCConfigRequest(OptionalWebRTCConfigRequest&& from) noexcept - : OptionalWebRTCConfigRequest() { + ICECandidate(const ICECandidate& from); + ICECandidate(ICECandidate&& from) noexcept + : ICECandidate() { *this = ::std::move(from); } - inline OptionalWebRTCConfigRequest& operator=(const OptionalWebRTCConfigRequest& from) { + inline ICECandidate& operator=(const ICECandidate& from) { CopyFrom(from); return *this; } - inline OptionalWebRTCConfigRequest& operator=(OptionalWebRTCConfigRequest&& from) noexcept { + inline ICECandidate& operator=(ICECandidate&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -180,134 +184,201 @@ class OptionalWebRTCConfigRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const OptionalWebRTCConfigRequest& default_instance() { + static const ICECandidate& default_instance() { return *internal_default_instance(); } - static inline const OptionalWebRTCConfigRequest* internal_default_instance() { - return reinterpret_cast( - &_OptionalWebRTCConfigRequest_default_instance_); + static inline const ICECandidate* internal_default_instance() { + return reinterpret_cast( + &_ICECandidate_default_instance_); } static constexpr int kIndexInFileMessages = - 20; + 0; - friend void swap(OptionalWebRTCConfigRequest& a, OptionalWebRTCConfigRequest& b) { + friend void swap(ICECandidate& a, ICECandidate& b) { a.Swap(&b); } - inline void Swap(OptionalWebRTCConfigRequest* other) { + inline void Swap(ICECandidate* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(OptionalWebRTCConfigRequest* other) { + void UnsafeArenaSwap(ICECandidate* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - OptionalWebRTCConfigRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const OptionalWebRTCConfigRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const OptionalWebRTCConfigRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + ICECandidate* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ICECandidate& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ICECandidate& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "proto.rpc.webrtc.v1.OptionalWebRTCConfigRequest"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ICECandidate* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.rpc.webrtc.v1.ICECandidate"; } protected: - explicit OptionalWebRTCConfigRequest(::google::protobuf::Arena* arena); - OptionalWebRTCConfigRequest(::google::protobuf::Arena* arena, const OptionalWebRTCConfigRequest& from); + explicit ICECandidate(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.OptionalWebRTCConfigRequest) + enum : int { + kCandidateFieldNumber = 1, + kSdpMidFieldNumber = 2, + kUsernameFragmentFieldNumber = 4, + kSdpmLineIndexFieldNumber = 3, + }; + // string candidate = 1 [json_name = "candidate"]; + void clear_candidate(); + const std::string& candidate() const; + template + void set_candidate(ArgT0&& arg0, ArgT... args); + std::string* mutable_candidate(); + PROTOBUF_NODISCARD std::string* release_candidate(); + void set_allocated_candidate(std::string* candidate); + private: + const std::string& _internal_candidate() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_candidate(const std::string& value); + std::string* _internal_mutable_candidate(); + public: + + // optional string sdp_mid = 2 [json_name = "sdpMid"]; + bool has_sdp_mid() const; + private: + bool _internal_has_sdp_mid() const; + public: + void clear_sdp_mid(); + const std::string& sdp_mid() const; + template + void set_sdp_mid(ArgT0&& arg0, ArgT... args); + std::string* mutable_sdp_mid(); + PROTOBUF_NODISCARD std::string* release_sdp_mid(); + void set_allocated_sdp_mid(std::string* sdp_mid); + private: + const std::string& _internal_sdp_mid() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_sdp_mid(const std::string& value); + std::string* _internal_mutable_sdp_mid(); + public: + + // optional string username_fragment = 4 [json_name = "usernameFragment"]; + bool has_username_fragment() const; + private: + bool _internal_has_username_fragment() const; + public: + void clear_username_fragment(); + const std::string& username_fragment() const; + template + void set_username_fragment(ArgT0&& arg0, ArgT... args); + std::string* mutable_username_fragment(); + PROTOBUF_NODISCARD std::string* release_username_fragment(); + void set_allocated_username_fragment(std::string* username_fragment); + private: + const std::string& _internal_username_fragment() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_username_fragment(const std::string& value); + std::string* _internal_mutable_username_fragment(); + public: + + // optional uint32 sdpm_line_index = 3 [json_name = "sdpmLineIndex"]; + bool has_sdpm_line_index() const; + private: + bool _internal_has_sdpm_line_index() const; + public: + void clear_sdpm_line_index(); + uint32_t sdpm_line_index() const; + void set_sdpm_line_index(uint32_t value); + private: + uint32_t _internal_sdpm_line_index() const; + void _internal_set_sdpm_line_index(uint32_t value); + public: + + // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.ICECandidate) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr candidate_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr sdp_mid_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr username_fragment_; + uint32_t sdpm_line_index_; friend struct ::TableStruct_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ICEServer final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.ICEServer) */ { +class CallRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.CallRequest) */ { public: - inline ICEServer() : ICEServer(nullptr) {} - ~ICEServer() override; - template - explicit PROTOBUF_CONSTEXPR ICEServer(::google::protobuf::internal::ConstantInitialized); + inline CallRequest() : CallRequest(nullptr) {} + ~CallRequest() override; + explicit PROTOBUF_CONSTEXPR CallRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ICEServer(const ICEServer& from) - : ICEServer(nullptr, from) {} - ICEServer(ICEServer&& from) noexcept - : ICEServer() { + CallRequest(const CallRequest& from); + CallRequest(CallRequest&& from) noexcept + : CallRequest() { *this = ::std::move(from); } - inline ICEServer& operator=(const ICEServer& from) { + inline CallRequest& operator=(const CallRequest& from) { CopyFrom(from); return *this; } - inline ICEServer& operator=(ICEServer&& from) noexcept { + inline CallRequest& operator=(CallRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -317,226 +388,156 @@ class ICEServer final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ICEServer& default_instance() { + static const CallRequest& default_instance() { return *internal_default_instance(); } - static inline const ICEServer* internal_default_instance() { - return reinterpret_cast( - &_ICEServer_default_instance_); + static inline const CallRequest* internal_default_instance() { + return reinterpret_cast( + &_CallRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 7; + 1; - friend void swap(ICEServer& a, ICEServer& b) { + friend void swap(CallRequest& a, CallRequest& b) { a.Swap(&b); } - inline void Swap(ICEServer* other) { + inline void Swap(CallRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ICEServer* other) { + void UnsafeArenaSwap(CallRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ICEServer* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ICEServer& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ICEServer& from) { - ICEServer::MergeImpl(*this, from); + CallRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CallRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CallRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ICEServer* other); + void SetCachedSize(int size) const final; + void InternalSwap(CallRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "proto.rpc.webrtc.v1.ICEServer"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.rpc.webrtc.v1.CallRequest"; } protected: - explicit ICEServer(::google::protobuf::Arena* arena); - ICEServer(::google::protobuf::Arena* arena, const ICEServer& from); + explicit CallRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kUrlsFieldNumber = 1, - kUsernameFieldNumber = 2, - kCredentialFieldNumber = 3, + kSdpFieldNumber = 1, + kDisableTrickleFieldNumber = 2, }; - // repeated string urls = 1 [json_name = "urls"]; - int urls_size() const; - private: - int _internal_urls_size() const; - - public: - void clear_urls() ; - const std::string& urls(int index) const; - std::string* mutable_urls(int index); - void set_urls(int index, const std::string& value); - void set_urls(int index, std::string&& value); - void set_urls(int index, const char* value); - void set_urls(int index, const char* value, std::size_t size); - void set_urls(int index, absl::string_view value); - std::string* add_urls(); - void add_urls(const std::string& value); - void add_urls(std::string&& value); - void add_urls(const char* value); - void add_urls(const char* value, std::size_t size); - void add_urls(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& urls() const; - ::google::protobuf::RepeatedPtrField* mutable_urls(); - + // string sdp = 1 [json_name = "sdp"]; + void clear_sdp(); + const std::string& sdp() const; + template + void set_sdp(ArgT0&& arg0, ArgT... args); + std::string* mutable_sdp(); + PROTOBUF_NODISCARD std::string* release_sdp(); + void set_allocated_sdp(std::string* sdp); private: - const ::google::protobuf::RepeatedPtrField& _internal_urls() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_urls(); - + const std::string& _internal_sdp() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_sdp(const std::string& value); + std::string* _internal_mutable_sdp(); public: - // string username = 2 [json_name = "username"]; - void clear_username() ; - const std::string& username() const; - template - void set_username(Arg_&& arg, Args_... args); - std::string* mutable_username(); - PROTOBUF_NODISCARD std::string* release_username(); - void set_allocated_username(std::string* value); + // bool disable_trickle = 2 [json_name = "disableTrickle"]; + void clear_disable_trickle(); + bool disable_trickle() const; + void set_disable_trickle(bool value); private: - const std::string& _internal_username() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_username( - const std::string& value); - std::string* _internal_mutable_username(); - + bool _internal_disable_trickle() const; + void _internal_set_disable_trickle(bool value); public: - // string credential = 3 [json_name = "credential"]; - void clear_credential() ; - const std::string& credential() const; - template - void set_credential(Arg_&& arg, Args_... args); - std::string* mutable_credential(); - PROTOBUF_NODISCARD std::string* release_credential(); - void set_allocated_credential(std::string* value); - - private: - const std::string& _internal_credential() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_credential( - const std::string& value); - std::string* _internal_mutable_credential(); - public: - // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.ICEServer) + // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.CallRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 0, - 60, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField urls_; - ::google::protobuf::internal::ArenaStringPtr username_; - ::google::protobuf::internal::ArenaStringPtr credential_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr sdp_; + bool disable_trickle_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ICECandidate final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.ICECandidate) */ { +class CallResponseInitStage final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.CallResponseInitStage) */ { public: - inline ICECandidate() : ICECandidate(nullptr) {} - ~ICECandidate() override; - template - explicit PROTOBUF_CONSTEXPR ICECandidate(::google::protobuf::internal::ConstantInitialized); + inline CallResponseInitStage() : CallResponseInitStage(nullptr) {} + ~CallResponseInitStage() override; + explicit PROTOBUF_CONSTEXPR CallResponseInitStage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ICECandidate(const ICECandidate& from) - : ICECandidate(nullptr, from) {} - ICECandidate(ICECandidate&& from) noexcept - : ICECandidate() { + CallResponseInitStage(const CallResponseInitStage& from); + CallResponseInitStage(CallResponseInitStage&& from) noexcept + : CallResponseInitStage() { *this = ::std::move(from); } - inline ICECandidate& operator=(const ICECandidate& from) { + inline CallResponseInitStage& operator=(const CallResponseInitStage& from) { CopyFrom(from); return *this; } - inline ICECandidate& operator=(ICECandidate&& from) noexcept { + inline CallResponseInitStage& operator=(CallResponseInitStage&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -546,229 +547,145 @@ class ICECandidate final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ICECandidate& default_instance() { + static const CallResponseInitStage& default_instance() { return *internal_default_instance(); } - static inline const ICECandidate* internal_default_instance() { - return reinterpret_cast( - &_ICECandidate_default_instance_); + static inline const CallResponseInitStage* internal_default_instance() { + return reinterpret_cast( + &_CallResponseInitStage_default_instance_); } static constexpr int kIndexInFileMessages = - 0; + 2; - friend void swap(ICECandidate& a, ICECandidate& b) { + friend void swap(CallResponseInitStage& a, CallResponseInitStage& b) { a.Swap(&b); } - inline void Swap(ICECandidate* other) { + inline void Swap(CallResponseInitStage* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ICECandidate* other) { + void UnsafeArenaSwap(CallResponseInitStage* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ICECandidate* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ICECandidate& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ICECandidate& from) { - ICECandidate::MergeImpl(*this, from); + CallResponseInitStage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CallResponseInitStage& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CallResponseInitStage& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ICECandidate* other); + void SetCachedSize(int size) const final; + void InternalSwap(CallResponseInitStage* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "proto.rpc.webrtc.v1.ICECandidate"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.rpc.webrtc.v1.CallResponseInitStage"; } protected: - explicit ICECandidate(::google::protobuf::Arena* arena); - ICECandidate(::google::protobuf::Arena* arena, const ICECandidate& from); + explicit CallResponseInitStage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kCandidateFieldNumber = 1, - kSdpMidFieldNumber = 2, - kUsernameFragmentFieldNumber = 4, - kSdpmLineIndexFieldNumber = 3, + kSdpFieldNumber = 1, }; - // string candidate = 1 [json_name = "candidate"]; - void clear_candidate() ; - const std::string& candidate() const; - template - void set_candidate(Arg_&& arg, Args_... args); - std::string* mutable_candidate(); - PROTOBUF_NODISCARD std::string* release_candidate(); - void set_allocated_candidate(std::string* value); - - private: - const std::string& _internal_candidate() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_candidate( - const std::string& value); - std::string* _internal_mutable_candidate(); - - public: - // optional string sdp_mid = 2 [json_name = "sdpMid"]; - bool has_sdp_mid() const; - void clear_sdp_mid() ; - const std::string& sdp_mid() const; - template - void set_sdp_mid(Arg_&& arg, Args_... args); - std::string* mutable_sdp_mid(); - PROTOBUF_NODISCARD std::string* release_sdp_mid(); - void set_allocated_sdp_mid(std::string* value); - - private: - const std::string& _internal_sdp_mid() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_sdp_mid( - const std::string& value); - std::string* _internal_mutable_sdp_mid(); - - public: - // optional string username_fragment = 4 [json_name = "usernameFragment"]; - bool has_username_fragment() const; - void clear_username_fragment() ; - const std::string& username_fragment() const; - template - void set_username_fragment(Arg_&& arg, Args_... args); - std::string* mutable_username_fragment(); - PROTOBUF_NODISCARD std::string* release_username_fragment(); - void set_allocated_username_fragment(std::string* value); - + // string sdp = 1 [json_name = "sdp"]; + void clear_sdp(); + const std::string& sdp() const; + template + void set_sdp(ArgT0&& arg0, ArgT... args); + std::string* mutable_sdp(); + PROTOBUF_NODISCARD std::string* release_sdp(); + void set_allocated_sdp(std::string* sdp); private: - const std::string& _internal_username_fragment() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_username_fragment( - const std::string& value); - std::string* _internal_mutable_username_fragment(); - + const std::string& _internal_sdp() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_sdp(const std::string& value); + std::string* _internal_mutable_sdp(); public: - // optional uint32 sdpm_line_index = 3 [json_name = "sdpmLineIndex"]; - bool has_sdpm_line_index() const; - void clear_sdpm_line_index() ; - ::uint32_t sdpm_line_index() const; - void set_sdpm_line_index(::uint32_t value); - - private: - ::uint32_t _internal_sdpm_line_index() const; - void _internal_set_sdpm_line_index(::uint32_t value); - public: - // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.ICECandidate) + // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.CallResponseInitStage) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 0, - 74, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr candidate_; - ::google::protobuf::internal::ArenaStringPtr sdp_mid_; - ::google::protobuf::internal::ArenaStringPtr username_fragment_; - ::uint32_t sdpm_line_index_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr sdp_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class CallUpdateResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.CallUpdateResponse) */ { +class CallResponseUpdateStage final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.CallResponseUpdateStage) */ { public: - inline CallUpdateResponse() : CallUpdateResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR CallUpdateResponse(::google::protobuf::internal::ConstantInitialized); + inline CallResponseUpdateStage() : CallResponseUpdateStage(nullptr) {} + ~CallResponseUpdateStage() override; + explicit PROTOBUF_CONSTEXPR CallResponseUpdateStage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline CallUpdateResponse(const CallUpdateResponse& from) - : CallUpdateResponse(nullptr, from) {} - CallUpdateResponse(CallUpdateResponse&& from) noexcept - : CallUpdateResponse() { + CallResponseUpdateStage(const CallResponseUpdateStage& from); + CallResponseUpdateStage(CallResponseUpdateStage&& from) noexcept + : CallResponseUpdateStage() { *this = ::std::move(from); } - inline CallUpdateResponse& operator=(const CallUpdateResponse& from) { + inline CallResponseUpdateStage& operator=(const CallResponseUpdateStage& from) { CopyFrom(from); return *this; } - inline CallUpdateResponse& operator=(CallUpdateResponse&& from) noexcept { + inline CallResponseUpdateStage& operator=(CallResponseUpdateStage&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -778,134 +695,149 @@ class CallUpdateResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CallUpdateResponse& default_instance() { + static const CallResponseUpdateStage& default_instance() { return *internal_default_instance(); } - static inline const CallUpdateResponse* internal_default_instance() { - return reinterpret_cast( - &_CallUpdateResponse_default_instance_); + static inline const CallResponseUpdateStage* internal_default_instance() { + return reinterpret_cast( + &_CallResponseUpdateStage_default_instance_); } static constexpr int kIndexInFileMessages = - 6; + 3; - friend void swap(CallUpdateResponse& a, CallUpdateResponse& b) { + friend void swap(CallResponseUpdateStage& a, CallResponseUpdateStage& b) { a.Swap(&b); } - inline void Swap(CallUpdateResponse* other) { + inline void Swap(CallResponseUpdateStage* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CallUpdateResponse* other) { + void UnsafeArenaSwap(CallResponseUpdateStage* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CallUpdateResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const CallUpdateResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const CallUpdateResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + CallResponseUpdateStage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CallResponseUpdateStage& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CallResponseUpdateStage& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "proto.rpc.webrtc.v1.CallUpdateResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CallResponseUpdateStage* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.rpc.webrtc.v1.CallResponseUpdateStage"; } protected: - explicit CallUpdateResponse(::google::protobuf::Arena* arena); - CallUpdateResponse(::google::protobuf::Arena* arena, const CallUpdateResponse& from); + explicit CallResponseUpdateStage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.CallUpdateResponse) + enum : int { + kCandidateFieldNumber = 1, + }; + // .proto.rpc.webrtc.v1.ICECandidate candidate = 1 [json_name = "candidate"]; + bool has_candidate() const; + private: + bool _internal_has_candidate() const; + public: + void clear_candidate(); + const ::proto::rpc::webrtc::v1::ICECandidate& candidate() const; + PROTOBUF_NODISCARD ::proto::rpc::webrtc::v1::ICECandidate* release_candidate(); + ::proto::rpc::webrtc::v1::ICECandidate* mutable_candidate(); + void set_allocated_candidate(::proto::rpc::webrtc::v1::ICECandidate* candidate); + private: + const ::proto::rpc::webrtc::v1::ICECandidate& _internal_candidate() const; + ::proto::rpc::webrtc::v1::ICECandidate* _internal_mutable_candidate(); + public: + void unsafe_arena_set_allocated_candidate( + ::proto::rpc::webrtc::v1::ICECandidate* candidate); + ::proto::rpc::webrtc::v1::ICECandidate* unsafe_arena_release_candidate(); + + // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.CallResponseUpdateStage) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::proto::rpc::webrtc::v1::ICECandidate* candidate_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class CallResponseInitStage final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.CallResponseInitStage) */ { +class CallResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.CallResponse) */ { public: - inline CallResponseInitStage() : CallResponseInitStage(nullptr) {} - ~CallResponseInitStage() override; - template - explicit PROTOBUF_CONSTEXPR CallResponseInitStage(::google::protobuf::internal::ConstantInitialized); + inline CallResponse() : CallResponse(nullptr) {} + ~CallResponse() override; + explicit PROTOBUF_CONSTEXPR CallResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline CallResponseInitStage(const CallResponseInitStage& from) - : CallResponseInitStage(nullptr, from) {} - CallResponseInitStage(CallResponseInitStage&& from) noexcept - : CallResponseInitStage() { + CallResponse(const CallResponse& from); + CallResponse(CallResponse&& from) noexcept + : CallResponse() { *this = ::std::move(from); } - inline CallResponseInitStage& operator=(const CallResponseInitStage& from) { + inline CallResponse& operator=(const CallResponse& from) { CopyFrom(from); return *this; } - inline CallResponseInitStage& operator=(CallResponseInitStage&& from) noexcept { + inline CallResponse& operator=(CallResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -915,178 +847,204 @@ class CallResponseInitStage final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CallResponseInitStage& default_instance() { + static const CallResponse& default_instance() { return *internal_default_instance(); } - static inline const CallResponseInitStage* internal_default_instance() { - return reinterpret_cast( - &_CallResponseInitStage_default_instance_); + enum StageCase { + kInit = 2, + kUpdate = 3, + STAGE_NOT_SET = 0, + }; + + static inline const CallResponse* internal_default_instance() { + return reinterpret_cast( + &_CallResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 2; + 4; - friend void swap(CallResponseInitStage& a, CallResponseInitStage& b) { + friend void swap(CallResponse& a, CallResponse& b) { a.Swap(&b); } - inline void Swap(CallResponseInitStage* other) { + inline void Swap(CallResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CallResponseInitStage* other) { + void UnsafeArenaSwap(CallResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CallResponseInitStage* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const CallResponseInitStage& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CallResponseInitStage& from) { - CallResponseInitStage::MergeImpl(*this, from); + CallResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CallResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CallResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(CallResponseInitStage* other); + void SetCachedSize(int size) const final; + void InternalSwap(CallResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "proto.rpc.webrtc.v1.CallResponseInitStage"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.rpc.webrtc.v1.CallResponse"; } protected: - explicit CallResponseInitStage(::google::protobuf::Arena* arena); - CallResponseInitStage(::google::protobuf::Arena* arena, const CallResponseInitStage& from); + explicit CallResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kSdpFieldNumber = 1, + kUuidFieldNumber = 1, + kInitFieldNumber = 2, + kUpdateFieldNumber = 3, }; - // string sdp = 1 [json_name = "sdp"]; - void clear_sdp() ; - const std::string& sdp() const; - template - void set_sdp(Arg_&& arg, Args_... args); - std::string* mutable_sdp(); - PROTOBUF_NODISCARD std::string* release_sdp(); - void set_allocated_sdp(std::string* value); + // string uuid = 1 [json_name = "uuid"]; + void clear_uuid(); + const std::string& uuid() const; + template + void set_uuid(ArgT0&& arg0, ArgT... args); + std::string* mutable_uuid(); + PROTOBUF_NODISCARD std::string* release_uuid(); + void set_allocated_uuid(std::string* uuid); + private: + const std::string& _internal_uuid() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_uuid(const std::string& value); + std::string* _internal_mutable_uuid(); + public: + // .proto.rpc.webrtc.v1.CallResponseInitStage init = 2 [json_name = "init"]; + bool has_init() const; private: - const std::string& _internal_sdp() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_sdp( - const std::string& value); - std::string* _internal_mutable_sdp(); + bool _internal_has_init() const; + public: + void clear_init(); + const ::proto::rpc::webrtc::v1::CallResponseInitStage& init() const; + PROTOBUF_NODISCARD ::proto::rpc::webrtc::v1::CallResponseInitStage* release_init(); + ::proto::rpc::webrtc::v1::CallResponseInitStage* mutable_init(); + void set_allocated_init(::proto::rpc::webrtc::v1::CallResponseInitStage* init); + private: + const ::proto::rpc::webrtc::v1::CallResponseInitStage& _internal_init() const; + ::proto::rpc::webrtc::v1::CallResponseInitStage* _internal_mutable_init(); + public: + void unsafe_arena_set_allocated_init( + ::proto::rpc::webrtc::v1::CallResponseInitStage* init); + ::proto::rpc::webrtc::v1::CallResponseInitStage* unsafe_arena_release_init(); + // .proto.rpc.webrtc.v1.CallResponseUpdateStage update = 3 [json_name = "update"]; + bool has_update() const; + private: + bool _internal_has_update() const; public: - // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.CallResponseInitStage) + void clear_update(); + const ::proto::rpc::webrtc::v1::CallResponseUpdateStage& update() const; + PROTOBUF_NODISCARD ::proto::rpc::webrtc::v1::CallResponseUpdateStage* release_update(); + ::proto::rpc::webrtc::v1::CallResponseUpdateStage* mutable_update(); + void set_allocated_update(::proto::rpc::webrtc::v1::CallResponseUpdateStage* update); + private: + const ::proto::rpc::webrtc::v1::CallResponseUpdateStage& _internal_update() const; + ::proto::rpc::webrtc::v1::CallResponseUpdateStage* _internal_mutable_update(); + public: + void unsafe_arena_set_allocated_update( + ::proto::rpc::webrtc::v1::CallResponseUpdateStage* update); + ::proto::rpc::webrtc::v1::CallResponseUpdateStage* unsafe_arena_release_update(); + + void clear_stage(); + StageCase stage_case() const; + // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.CallResponse) private: class _Internal; + void set_has_init(); + void set_has_update(); + + inline bool has_stage() const; + inline void clear_has_stage(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr uuid_; + union StageUnion { + constexpr StageUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::proto::rpc::webrtc::v1::CallResponseInitStage* init_; + ::proto::rpc::webrtc::v1::CallResponseUpdateStage* update_; + } stage_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 53, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr sdp_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; friend struct ::TableStruct_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class CallRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.CallRequest) */ { +class CallUpdateRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.CallUpdateRequest) */ { public: - inline CallRequest() : CallRequest(nullptr) {} - ~CallRequest() override; - template - explicit PROTOBUF_CONSTEXPR CallRequest(::google::protobuf::internal::ConstantInitialized); + inline CallUpdateRequest() : CallUpdateRequest(nullptr) {} + ~CallUpdateRequest() override; + explicit PROTOBUF_CONSTEXPR CallUpdateRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline CallRequest(const CallRequest& from) - : CallRequest(nullptr, from) {} - CallRequest(CallRequest&& from) noexcept - : CallRequest() { + CallUpdateRequest(const CallUpdateRequest& from); + CallUpdateRequest(CallUpdateRequest&& from) noexcept + : CallUpdateRequest() { *this = ::std::move(from); } - inline CallRequest& operator=(const CallRequest& from) { + inline CallUpdateRequest& operator=(const CallUpdateRequest& from) { CopyFrom(from); return *this; } - inline CallRequest& operator=(CallRequest&& from) noexcept { + inline CallUpdateRequest& operator=(CallUpdateRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1096,190 +1054,220 @@ class CallRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CallRequest& default_instance() { + static const CallUpdateRequest& default_instance() { return *internal_default_instance(); } - static inline const CallRequest* internal_default_instance() { - return reinterpret_cast( - &_CallRequest_default_instance_); + enum UpdateCase { + kCandidate = 2, + kDone = 3, + kError = 4, + UPDATE_NOT_SET = 0, + }; + + static inline const CallUpdateRequest* internal_default_instance() { + return reinterpret_cast( + &_CallUpdateRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 1; + 5; - friend void swap(CallRequest& a, CallRequest& b) { + friend void swap(CallUpdateRequest& a, CallUpdateRequest& b) { a.Swap(&b); } - inline void Swap(CallRequest* other) { + inline void Swap(CallUpdateRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CallRequest* other) { + void UnsafeArenaSwap(CallUpdateRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CallRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const CallRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CallRequest& from) { - CallRequest::MergeImpl(*this, from); + CallUpdateRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CallUpdateRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CallUpdateRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(CallRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(CallUpdateRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "proto.rpc.webrtc.v1.CallRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.rpc.webrtc.v1.CallUpdateRequest"; } protected: - explicit CallRequest(::google::protobuf::Arena* arena); - CallRequest(::google::protobuf::Arena* arena, const CallRequest& from); + explicit CallUpdateRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kSdpFieldNumber = 1, - kDisableTrickleFieldNumber = 2, + kUuidFieldNumber = 1, + kCandidateFieldNumber = 2, + kDoneFieldNumber = 3, + kErrorFieldNumber = 4, }; - // string sdp = 1 [json_name = "sdp"]; - void clear_sdp() ; - const std::string& sdp() const; - template - void set_sdp(Arg_&& arg, Args_... args); - std::string* mutable_sdp(); - PROTOBUF_NODISCARD std::string* release_sdp(); - void set_allocated_sdp(std::string* value); - + // string uuid = 1 [json_name = "uuid"]; + void clear_uuid(); + const std::string& uuid() const; + template + void set_uuid(ArgT0&& arg0, ArgT... args); + std::string* mutable_uuid(); + PROTOBUF_NODISCARD std::string* release_uuid(); + void set_allocated_uuid(std::string* uuid); private: - const std::string& _internal_sdp() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_sdp( - const std::string& value); - std::string* _internal_mutable_sdp(); + const std::string& _internal_uuid() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_uuid(const std::string& value); + std::string* _internal_mutable_uuid(); + public: + // .proto.rpc.webrtc.v1.ICECandidate candidate = 2 [json_name = "candidate"]; + bool has_candidate() const; + private: + bool _internal_has_candidate() const; public: - // bool disable_trickle = 2 [json_name = "disableTrickle"]; - void clear_disable_trickle() ; - bool disable_trickle() const; - void set_disable_trickle(bool value); + void clear_candidate(); + const ::proto::rpc::webrtc::v1::ICECandidate& candidate() const; + PROTOBUF_NODISCARD ::proto::rpc::webrtc::v1::ICECandidate* release_candidate(); + ::proto::rpc::webrtc::v1::ICECandidate* mutable_candidate(); + void set_allocated_candidate(::proto::rpc::webrtc::v1::ICECandidate* candidate); + private: + const ::proto::rpc::webrtc::v1::ICECandidate& _internal_candidate() const; + ::proto::rpc::webrtc::v1::ICECandidate* _internal_mutable_candidate(); + public: + void unsafe_arena_set_allocated_candidate( + ::proto::rpc::webrtc::v1::ICECandidate* candidate); + ::proto::rpc::webrtc::v1::ICECandidate* unsafe_arena_release_candidate(); + // bool done = 3 [json_name = "done"]; + bool has_done() const; private: - bool _internal_disable_trickle() const; - void _internal_set_disable_trickle(bool value); + bool _internal_has_done() const; + public: + void clear_done(); + bool done() const; + void set_done(bool value); + private: + bool _internal_done() const; + void _internal_set_done(bool value); + public: + // .google.rpc.Status error = 4 [json_name = "error"]; + bool has_error() const; + private: + bool _internal_has_error() const; public: - // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.CallRequest) + void clear_error(); + const ::google::rpc::Status& error() const; + PROTOBUF_NODISCARD ::google::rpc::Status* release_error(); + ::google::rpc::Status* mutable_error(); + void set_allocated_error(::google::rpc::Status* error); + private: + const ::google::rpc::Status& _internal_error() const; + ::google::rpc::Status* _internal_mutable_error(); + public: + void unsafe_arena_set_allocated_error( + ::google::rpc::Status* error); + ::google::rpc::Status* unsafe_arena_release_error(); + + void clear_update(); + UpdateCase update_case() const; + // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.CallUpdateRequest) private: class _Internal; + void set_has_candidate(); + void set_has_done(); + void set_has_error(); + + inline bool has_update() const; + inline void clear_has_update(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr uuid_; + union UpdateUnion { + constexpr UpdateUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::proto::rpc::webrtc::v1::ICECandidate* candidate_; + bool done_; + ::google::rpc::Status* error_; + } update_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 43, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr sdp_; - bool disable_trickle_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; friend struct ::TableStruct_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class AnswerResponseInitStage final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.AnswerResponseInitStage) */ { +class CallUpdateResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.CallUpdateResponse) */ { public: - inline AnswerResponseInitStage() : AnswerResponseInitStage(nullptr) {} - ~AnswerResponseInitStage() override; - template - explicit PROTOBUF_CONSTEXPR AnswerResponseInitStage(::google::protobuf::internal::ConstantInitialized); + inline CallUpdateResponse() : CallUpdateResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR CallUpdateResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline AnswerResponseInitStage(const AnswerResponseInitStage& from) - : AnswerResponseInitStage(nullptr, from) {} - AnswerResponseInitStage(AnswerResponseInitStage&& from) noexcept - : AnswerResponseInitStage() { + CallUpdateResponse(const CallUpdateResponse& from); + CallUpdateResponse(CallUpdateResponse&& from) noexcept + : CallUpdateResponse() { *this = ::std::move(from); } - inline AnswerResponseInitStage& operator=(const AnswerResponseInitStage& from) { + inline CallUpdateResponse& operator=(const CallUpdateResponse& from) { CopyFrom(from); return *this; } - inline AnswerResponseInitStage& operator=(AnswerResponseInitStage&& from) noexcept { + inline CallUpdateResponse& operator=(CallUpdateResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1289,177 +1277,114 @@ class AnswerResponseInitStage final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const AnswerResponseInitStage& default_instance() { + static const CallUpdateResponse& default_instance() { return *internal_default_instance(); } - static inline const AnswerResponseInitStage* internal_default_instance() { - return reinterpret_cast( - &_AnswerResponseInitStage_default_instance_); + static inline const CallUpdateResponse* internal_default_instance() { + return reinterpret_cast( + &_CallUpdateResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 15; + 6; - friend void swap(AnswerResponseInitStage& a, AnswerResponseInitStage& b) { + friend void swap(CallUpdateResponse& a, CallUpdateResponse& b) { a.Swap(&b); } - inline void Swap(AnswerResponseInitStage* other) { + inline void Swap(CallUpdateResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(AnswerResponseInitStage* other) { + void UnsafeArenaSwap(CallUpdateResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - AnswerResponseInitStage* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + CallUpdateResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const AnswerResponseInitStage& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const AnswerResponseInitStage& from) { - AnswerResponseInitStage::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const CallUpdateResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const CallUpdateResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(AnswerResponseInitStage* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "proto.rpc.webrtc.v1.AnswerResponseInitStage"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.rpc.webrtc.v1.CallUpdateResponse"; } protected: - explicit AnswerResponseInitStage(::google::protobuf::Arena* arena); - AnswerResponseInitStage(::google::protobuf::Arena* arena, const AnswerResponseInitStage& from); + explicit CallUpdateResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kSdpFieldNumber = 1, - }; - // string sdp = 1 [json_name = "sdp"]; - void clear_sdp() ; - const std::string& sdp() const; - template - void set_sdp(Arg_&& arg, Args_... args); - std::string* mutable_sdp(); - PROTOBUF_NODISCARD std::string* release_sdp(); - void set_allocated_sdp(std::string* value); - - private: - const std::string& _internal_sdp() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_sdp( - const std::string& value); - std::string* _internal_mutable_sdp(); - - public: - // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.AnswerResponseInitStage) + // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.CallUpdateResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 55, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr sdp_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class AnswerResponseDoneStage final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.AnswerResponseDoneStage) */ { +class ICEServer final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.ICEServer) */ { public: - inline AnswerResponseDoneStage() : AnswerResponseDoneStage(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR AnswerResponseDoneStage(::google::protobuf::internal::ConstantInitialized); + inline ICEServer() : ICEServer(nullptr) {} + ~ICEServer() override; + explicit PROTOBUF_CONSTEXPR ICEServer(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline AnswerResponseDoneStage(const AnswerResponseDoneStage& from) - : AnswerResponseDoneStage(nullptr, from) {} - AnswerResponseDoneStage(AnswerResponseDoneStage&& from) noexcept - : AnswerResponseDoneStage() { + ICEServer(const ICEServer& from); + ICEServer(ICEServer&& from) noexcept + : ICEServer() { *this = ::std::move(from); } - inline AnswerResponseDoneStage& operator=(const AnswerResponseDoneStage& from) { + inline ICEServer& operator=(const ICEServer& from) { CopyFrom(from); return *this; } - inline AnswerResponseDoneStage& operator=(AnswerResponseDoneStage&& from) noexcept { + inline ICEServer& operator=(ICEServer&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1469,133 +1394,187 @@ class AnswerResponseDoneStage final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const AnswerResponseDoneStage& default_instance() { + static const ICEServer& default_instance() { return *internal_default_instance(); } - static inline const AnswerResponseDoneStage* internal_default_instance() { - return reinterpret_cast( - &_AnswerResponseDoneStage_default_instance_); + static inline const ICEServer* internal_default_instance() { + return reinterpret_cast( + &_ICEServer_default_instance_); } static constexpr int kIndexInFileMessages = - 17; + 7; - friend void swap(AnswerResponseDoneStage& a, AnswerResponseDoneStage& b) { + friend void swap(ICEServer& a, ICEServer& b) { a.Swap(&b); } - inline void Swap(AnswerResponseDoneStage* other) { + inline void Swap(ICEServer* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(AnswerResponseDoneStage* other) { + void UnsafeArenaSwap(ICEServer* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - AnswerResponseDoneStage* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const AnswerResponseDoneStage& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const AnswerResponseDoneStage& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + ICEServer* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ICEServer& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ICEServer& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "proto.rpc.webrtc.v1.AnswerResponseDoneStage"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ICEServer* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.rpc.webrtc.v1.ICEServer"; } protected: - explicit AnswerResponseDoneStage(::google::protobuf::Arena* arena); - AnswerResponseDoneStage(::google::protobuf::Arena* arena, const AnswerResponseDoneStage& from); + explicit ICEServer(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.AnswerResponseDoneStage) + enum : int { + kUrlsFieldNumber = 1, + kUsernameFieldNumber = 2, + kCredentialFieldNumber = 3, + }; + // repeated string urls = 1 [json_name = "urls"]; + int urls_size() const; + private: + int _internal_urls_size() const; + public: + void clear_urls(); + const std::string& urls(int index) const; + std::string* mutable_urls(int index); + void set_urls(int index, const std::string& value); + void set_urls(int index, std::string&& value); + void set_urls(int index, const char* value); + void set_urls(int index, const char* value, size_t size); + std::string* add_urls(); + void add_urls(const std::string& value); + void add_urls(std::string&& value); + void add_urls(const char* value); + void add_urls(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& urls() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_urls(); + private: + const std::string& _internal_urls(int index) const; + std::string* _internal_add_urls(); + public: + + // string username = 2 [json_name = "username"]; + void clear_username(); + const std::string& username() const; + template + void set_username(ArgT0&& arg0, ArgT... args); + std::string* mutable_username(); + PROTOBUF_NODISCARD std::string* release_username(); + void set_allocated_username(std::string* username); + private: + const std::string& _internal_username() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_username(const std::string& value); + std::string* _internal_mutable_username(); + public: + + // string credential = 3 [json_name = "credential"]; + void clear_credential(); + const std::string& credential() const; + template + void set_credential(ArgT0&& arg0, ArgT... args); + std::string* mutable_credential(); + PROTOBUF_NODISCARD std::string* release_credential(); + void set_allocated_credential(std::string* credential); + private: + const std::string& _internal_credential() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_credential(const std::string& value); + std::string* _internal_mutable_credential(); + public: + + // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.ICEServer) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField urls_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr username_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr credential_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class AnswerRequestHeartbeatStage final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.AnswerRequestHeartbeatStage) */ { +class WebRTCConfig final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.WebRTCConfig) */ { public: - inline AnswerRequestHeartbeatStage() : AnswerRequestHeartbeatStage(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR AnswerRequestHeartbeatStage(::google::protobuf::internal::ConstantInitialized); + inline WebRTCConfig() : WebRTCConfig(nullptr) {} + ~WebRTCConfig() override; + explicit PROTOBUF_CONSTEXPR WebRTCConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline AnswerRequestHeartbeatStage(const AnswerRequestHeartbeatStage& from) - : AnswerRequestHeartbeatStage(nullptr, from) {} - AnswerRequestHeartbeatStage(AnswerRequestHeartbeatStage&& from) noexcept - : AnswerRequestHeartbeatStage() { + WebRTCConfig(const WebRTCConfig& from); + WebRTCConfig(WebRTCConfig&& from) noexcept + : WebRTCConfig() { *this = ::std::move(from); } - inline AnswerRequestHeartbeatStage& operator=(const AnswerRequestHeartbeatStage& from) { + inline WebRTCConfig& operator=(const WebRTCConfig& from) { CopyFrom(from); return *this; } - inline AnswerRequestHeartbeatStage& operator=(AnswerRequestHeartbeatStage&& from) noexcept { + inline WebRTCConfig& operator=(WebRTCConfig&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1605,133 +1584,160 @@ class AnswerRequestHeartbeatStage final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const AnswerRequestHeartbeatStage& default_instance() { + static const WebRTCConfig& default_instance() { return *internal_default_instance(); } - static inline const AnswerRequestHeartbeatStage* internal_default_instance() { - return reinterpret_cast( - &_AnswerRequestHeartbeatStage_default_instance_); + static inline const WebRTCConfig* internal_default_instance() { + return reinterpret_cast( + &_WebRTCConfig_default_instance_); } static constexpr int kIndexInFileMessages = - 13; + 8; - friend void swap(AnswerRequestHeartbeatStage& a, AnswerRequestHeartbeatStage& b) { + friend void swap(WebRTCConfig& a, WebRTCConfig& b) { a.Swap(&b); } - inline void Swap(AnswerRequestHeartbeatStage* other) { + inline void Swap(WebRTCConfig* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(AnswerRequestHeartbeatStage* other) { + void UnsafeArenaSwap(WebRTCConfig* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - AnswerRequestHeartbeatStage* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const AnswerRequestHeartbeatStage& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const AnswerRequestHeartbeatStage& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + WebRTCConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const WebRTCConfig& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const WebRTCConfig& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "proto.rpc.webrtc.v1.AnswerRequestHeartbeatStage"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(WebRTCConfig* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.rpc.webrtc.v1.WebRTCConfig"; } protected: - explicit AnswerRequestHeartbeatStage(::google::protobuf::Arena* arena); - AnswerRequestHeartbeatStage(::google::protobuf::Arena* arena, const AnswerRequestHeartbeatStage& from); + explicit WebRTCConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.AnswerRequestHeartbeatStage) + enum : int { + kAdditionalIceServersFieldNumber = 1, + kDisableTrickleFieldNumber = 2, + }; + // repeated .proto.rpc.webrtc.v1.ICEServer additional_ice_servers = 1 [json_name = "additionalIceServers"]; + int additional_ice_servers_size() const; + private: + int _internal_additional_ice_servers_size() const; + public: + void clear_additional_ice_servers(); + ::proto::rpc::webrtc::v1::ICEServer* mutable_additional_ice_servers(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::rpc::webrtc::v1::ICEServer >* + mutable_additional_ice_servers(); + private: + const ::proto::rpc::webrtc::v1::ICEServer& _internal_additional_ice_servers(int index) const; + ::proto::rpc::webrtc::v1::ICEServer* _internal_add_additional_ice_servers(); + public: + const ::proto::rpc::webrtc::v1::ICEServer& additional_ice_servers(int index) const; + ::proto::rpc::webrtc::v1::ICEServer* add_additional_ice_servers(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::rpc::webrtc::v1::ICEServer >& + additional_ice_servers() const; + + // bool disable_trickle = 2 [json_name = "disableTrickle"]; + void clear_disable_trickle(); + bool disable_trickle() const; + void set_disable_trickle(bool value); + private: + bool _internal_disable_trickle() const; + void _internal_set_disable_trickle(bool value); + public: + + // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.WebRTCConfig) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::rpc::webrtc::v1::ICEServer > additional_ice_servers_; + bool disable_trickle_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class AnswerRequestDoneStage final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.AnswerRequestDoneStage) */ { +class AnswerRequestInitStage final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.AnswerRequestInitStage) */ { public: - inline AnswerRequestDoneStage() : AnswerRequestDoneStage(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR AnswerRequestDoneStage(::google::protobuf::internal::ConstantInitialized); + inline AnswerRequestInitStage() : AnswerRequestInitStage(nullptr) {} + ~AnswerRequestInitStage() override; + explicit PROTOBUF_CONSTEXPR AnswerRequestInitStage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline AnswerRequestDoneStage(const AnswerRequestDoneStage& from) - : AnswerRequestDoneStage(nullptr, from) {} - AnswerRequestDoneStage(AnswerRequestDoneStage&& from) noexcept - : AnswerRequestDoneStage() { + AnswerRequestInitStage(const AnswerRequestInitStage& from); + AnswerRequestInitStage(AnswerRequestInitStage&& from) noexcept + : AnswerRequestInitStage() { *this = ::std::move(from); } - inline AnswerRequestDoneStage& operator=(const AnswerRequestDoneStage& from) { + inline AnswerRequestInitStage& operator=(const AnswerRequestInitStage& from) { CopyFrom(from); return *this; } - inline AnswerRequestDoneStage& operator=(AnswerRequestDoneStage&& from) noexcept { + inline AnswerRequestInitStage& operator=(AnswerRequestInitStage&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1741,134 +1747,186 @@ class AnswerRequestDoneStage final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const AnswerRequestDoneStage& default_instance() { + static const AnswerRequestInitStage& default_instance() { return *internal_default_instance(); } - static inline const AnswerRequestDoneStage* internal_default_instance() { - return reinterpret_cast( - &_AnswerRequestDoneStage_default_instance_); + static inline const AnswerRequestInitStage* internal_default_instance() { + return reinterpret_cast( + &_AnswerRequestInitStage_default_instance_); } static constexpr int kIndexInFileMessages = - 11; + 9; - friend void swap(AnswerRequestDoneStage& a, AnswerRequestDoneStage& b) { + friend void swap(AnswerRequestInitStage& a, AnswerRequestInitStage& b) { a.Swap(&b); } - inline void Swap(AnswerRequestDoneStage* other) { + inline void Swap(AnswerRequestInitStage* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(AnswerRequestDoneStage* other) { + void UnsafeArenaSwap(AnswerRequestInitStage* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - AnswerRequestDoneStage* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const AnswerRequestDoneStage& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const AnswerRequestDoneStage& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + AnswerRequestInitStage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const AnswerRequestInitStage& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const AnswerRequestInitStage& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "proto.rpc.webrtc.v1.AnswerRequestDoneStage"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(AnswerRequestInitStage* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.rpc.webrtc.v1.AnswerRequestInitStage"; } protected: - explicit AnswerRequestDoneStage(::google::protobuf::Arena* arena); - AnswerRequestDoneStage(::google::protobuf::Arena* arena, const AnswerRequestDoneStage& from); + explicit AnswerRequestInitStage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.AnswerRequestDoneStage) + enum : int { + kSdpFieldNumber = 1, + kOptionalConfigFieldNumber = 2, + kDeadlineFieldNumber = 3, + }; + // string sdp = 1 [json_name = "sdp"]; + void clear_sdp(); + const std::string& sdp() const; + template + void set_sdp(ArgT0&& arg0, ArgT... args); + std::string* mutable_sdp(); + PROTOBUF_NODISCARD std::string* release_sdp(); + void set_allocated_sdp(std::string* sdp); + private: + const std::string& _internal_sdp() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_sdp(const std::string& value); + std::string* _internal_mutable_sdp(); + public: + + // .proto.rpc.webrtc.v1.WebRTCConfig optional_config = 2 [json_name = "optionalConfig"]; + bool has_optional_config() const; + private: + bool _internal_has_optional_config() const; + public: + void clear_optional_config(); + const ::proto::rpc::webrtc::v1::WebRTCConfig& optional_config() const; + PROTOBUF_NODISCARD ::proto::rpc::webrtc::v1::WebRTCConfig* release_optional_config(); + ::proto::rpc::webrtc::v1::WebRTCConfig* mutable_optional_config(); + void set_allocated_optional_config(::proto::rpc::webrtc::v1::WebRTCConfig* optional_config); + private: + const ::proto::rpc::webrtc::v1::WebRTCConfig& _internal_optional_config() const; + ::proto::rpc::webrtc::v1::WebRTCConfig* _internal_mutable_optional_config(); + public: + void unsafe_arena_set_allocated_optional_config( + ::proto::rpc::webrtc::v1::WebRTCConfig* optional_config); + ::proto::rpc::webrtc::v1::WebRTCConfig* unsafe_arena_release_optional_config(); + + // optional .google.protobuf.Timestamp deadline = 3 [json_name = "deadline"]; + bool has_deadline() const; + private: + bool _internal_has_deadline() const; + public: + void clear_deadline(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& deadline() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_deadline(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_deadline(); + void set_allocated_deadline(::PROTOBUF_NAMESPACE_ID::Timestamp* deadline); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_deadline() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_deadline(); + public: + void unsafe_arena_set_allocated_deadline( + ::PROTOBUF_NAMESPACE_ID::Timestamp* deadline); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_deadline(); + + // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.AnswerRequestInitStage) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr sdp_; + ::proto::rpc::webrtc::v1::WebRTCConfig* optional_config_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* deadline_; friend struct ::TableStruct_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class WebRTCConfig final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.WebRTCConfig) */ { +class AnswerRequestUpdateStage final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.AnswerRequestUpdateStage) */ { public: - inline WebRTCConfig() : WebRTCConfig(nullptr) {} - ~WebRTCConfig() override; - template - explicit PROTOBUF_CONSTEXPR WebRTCConfig(::google::protobuf::internal::ConstantInitialized); + inline AnswerRequestUpdateStage() : AnswerRequestUpdateStage(nullptr) {} + ~AnswerRequestUpdateStage() override; + explicit PROTOBUF_CONSTEXPR AnswerRequestUpdateStage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline WebRTCConfig(const WebRTCConfig& from) - : WebRTCConfig(nullptr, from) {} - WebRTCConfig(WebRTCConfig&& from) noexcept - : WebRTCConfig() { + AnswerRequestUpdateStage(const AnswerRequestUpdateStage& from); + AnswerRequestUpdateStage(AnswerRequestUpdateStage&& from) noexcept + : AnswerRequestUpdateStage() { *this = ::std::move(from); } - inline WebRTCConfig& operator=(const WebRTCConfig& from) { + inline AnswerRequestUpdateStage& operator=(const AnswerRequestUpdateStage& from) { CopyFrom(from); return *this; } - inline WebRTCConfig& operator=(WebRTCConfig&& from) noexcept { + inline AnswerRequestUpdateStage& operator=(AnswerRequestUpdateStage&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1878,192 +1936,148 @@ class WebRTCConfig final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const WebRTCConfig& default_instance() { + static const AnswerRequestUpdateStage& default_instance() { return *internal_default_instance(); } - static inline const WebRTCConfig* internal_default_instance() { - return reinterpret_cast( - &_WebRTCConfig_default_instance_); + static inline const AnswerRequestUpdateStage* internal_default_instance() { + return reinterpret_cast( + &_AnswerRequestUpdateStage_default_instance_); } static constexpr int kIndexInFileMessages = - 8; + 10; - friend void swap(WebRTCConfig& a, WebRTCConfig& b) { + friend void swap(AnswerRequestUpdateStage& a, AnswerRequestUpdateStage& b) { a.Swap(&b); } - inline void Swap(WebRTCConfig* other) { + inline void Swap(AnswerRequestUpdateStage* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(WebRTCConfig* other) { + void UnsafeArenaSwap(AnswerRequestUpdateStage* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - WebRTCConfig* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const WebRTCConfig& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const WebRTCConfig& from) { - WebRTCConfig::MergeImpl(*this, from); + AnswerRequestUpdateStage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const AnswerRequestUpdateStage& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const AnswerRequestUpdateStage& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(WebRTCConfig* other); + void SetCachedSize(int size) const final; + void InternalSwap(AnswerRequestUpdateStage* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "proto.rpc.webrtc.v1.WebRTCConfig"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.rpc.webrtc.v1.AnswerRequestUpdateStage"; } protected: - explicit WebRTCConfig(::google::protobuf::Arena* arena); - WebRTCConfig(::google::protobuf::Arena* arena, const WebRTCConfig& from); + explicit AnswerRequestUpdateStage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kAdditionalIceServersFieldNumber = 1, - kDisableTrickleFieldNumber = 2, + kCandidateFieldNumber = 1, }; - // repeated .proto.rpc.webrtc.v1.ICEServer additional_ice_servers = 1 [json_name = "additionalIceServers"]; - int additional_ice_servers_size() const; + // .proto.rpc.webrtc.v1.ICECandidate candidate = 1 [json_name = "candidate"]; + bool has_candidate() const; private: - int _internal_additional_ice_servers_size() const; - + bool _internal_has_candidate() const; public: - void clear_additional_ice_servers() ; - ::proto::rpc::webrtc::v1::ICEServer* mutable_additional_ice_servers(int index); - ::google::protobuf::RepeatedPtrField< ::proto::rpc::webrtc::v1::ICEServer >* - mutable_additional_ice_servers(); + void clear_candidate(); + const ::proto::rpc::webrtc::v1::ICECandidate& candidate() const; + PROTOBUF_NODISCARD ::proto::rpc::webrtc::v1::ICECandidate* release_candidate(); + ::proto::rpc::webrtc::v1::ICECandidate* mutable_candidate(); + void set_allocated_candidate(::proto::rpc::webrtc::v1::ICECandidate* candidate); private: - const ::google::protobuf::RepeatedPtrField<::proto::rpc::webrtc::v1::ICEServer>& _internal_additional_ice_servers() const; - ::google::protobuf::RepeatedPtrField<::proto::rpc::webrtc::v1::ICEServer>* _internal_mutable_additional_ice_servers(); + const ::proto::rpc::webrtc::v1::ICECandidate& _internal_candidate() const; + ::proto::rpc::webrtc::v1::ICECandidate* _internal_mutable_candidate(); public: - const ::proto::rpc::webrtc::v1::ICEServer& additional_ice_servers(int index) const; - ::proto::rpc::webrtc::v1::ICEServer* add_additional_ice_servers(); - const ::google::protobuf::RepeatedPtrField< ::proto::rpc::webrtc::v1::ICEServer >& - additional_ice_servers() const; - // bool disable_trickle = 2 [json_name = "disableTrickle"]; - void clear_disable_trickle() ; - bool disable_trickle() const; - void set_disable_trickle(bool value); - - private: - bool _internal_disable_trickle() const; - void _internal_set_disable_trickle(bool value); + void unsafe_arena_set_allocated_candidate( + ::proto::rpc::webrtc::v1::ICECandidate* candidate); + ::proto::rpc::webrtc::v1::ICECandidate* unsafe_arena_release_candidate(); - public: - // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.WebRTCConfig) + // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.AnswerRequestUpdateStage) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::proto::rpc::webrtc::v1::ICEServer > additional_ice_servers_; - bool disable_trickle_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::proto::rpc::webrtc::v1::ICECandidate* candidate_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class CallResponseUpdateStage final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.CallResponseUpdateStage) */ { +class AnswerRequestDoneStage final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.AnswerRequestDoneStage) */ { public: - inline CallResponseUpdateStage() : CallResponseUpdateStage(nullptr) {} - ~CallResponseUpdateStage() override; - template - explicit PROTOBUF_CONSTEXPR CallResponseUpdateStage(::google::protobuf::internal::ConstantInitialized); + inline AnswerRequestDoneStage() : AnswerRequestDoneStage(nullptr) {} + explicit PROTOBUF_CONSTEXPR AnswerRequestDoneStage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline CallResponseUpdateStage(const CallResponseUpdateStage& from) - : CallResponseUpdateStage(nullptr, from) {} - CallResponseUpdateStage(CallResponseUpdateStage&& from) noexcept - : CallResponseUpdateStage() { + AnswerRequestDoneStage(const AnswerRequestDoneStage& from); + AnswerRequestDoneStage(AnswerRequestDoneStage&& from) noexcept + : AnswerRequestDoneStage() { *this = ::std::move(from); } - inline CallResponseUpdateStage& operator=(const CallResponseUpdateStage& from) { + inline AnswerRequestDoneStage& operator=(const AnswerRequestDoneStage& from) { CopyFrom(from); return *this; } - inline CallResponseUpdateStage& operator=(CallResponseUpdateStage&& from) noexcept { + inline AnswerRequestDoneStage& operator=(AnswerRequestDoneStage&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2073,178 +2087,114 @@ class CallResponseUpdateStage final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CallResponseUpdateStage& default_instance() { + static const AnswerRequestDoneStage& default_instance() { return *internal_default_instance(); } - static inline const CallResponseUpdateStage* internal_default_instance() { - return reinterpret_cast( - &_CallResponseUpdateStage_default_instance_); + static inline const AnswerRequestDoneStage* internal_default_instance() { + return reinterpret_cast( + &_AnswerRequestDoneStage_default_instance_); } static constexpr int kIndexInFileMessages = - 3; + 11; - friend void swap(CallResponseUpdateStage& a, CallResponseUpdateStage& b) { + friend void swap(AnswerRequestDoneStage& a, AnswerRequestDoneStage& b) { a.Swap(&b); } - inline void Swap(CallResponseUpdateStage* other) { + inline void Swap(AnswerRequestDoneStage* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CallResponseUpdateStage* other) { + void UnsafeArenaSwap(AnswerRequestDoneStage* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CallResponseUpdateStage* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + AnswerRequestDoneStage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const CallResponseUpdateStage& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CallResponseUpdateStage& from) { - CallResponseUpdateStage::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const AnswerRequestDoneStage& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const AnswerRequestDoneStage& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(CallResponseUpdateStage* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "proto.rpc.webrtc.v1.CallResponseUpdateStage"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.rpc.webrtc.v1.AnswerRequestDoneStage"; } protected: - explicit CallResponseUpdateStage(::google::protobuf::Arena* arena); - CallResponseUpdateStage(::google::protobuf::Arena* arena, const CallResponseUpdateStage& from); + explicit AnswerRequestDoneStage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kCandidateFieldNumber = 1, - }; - // .proto.rpc.webrtc.v1.ICECandidate candidate = 1 [json_name = "candidate"]; - bool has_candidate() const; - void clear_candidate() ; - const ::proto::rpc::webrtc::v1::ICECandidate& candidate() const; - PROTOBUF_NODISCARD ::proto::rpc::webrtc::v1::ICECandidate* release_candidate(); - ::proto::rpc::webrtc::v1::ICECandidate* mutable_candidate(); - void set_allocated_candidate(::proto::rpc::webrtc::v1::ICECandidate* value); - void unsafe_arena_set_allocated_candidate(::proto::rpc::webrtc::v1::ICECandidate* value); - ::proto::rpc::webrtc::v1::ICECandidate* unsafe_arena_release_candidate(); - - private: - const ::proto::rpc::webrtc::v1::ICECandidate& _internal_candidate() const; - ::proto::rpc::webrtc::v1::ICECandidate* _internal_mutable_candidate(); - - public: - // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.CallResponseUpdateStage) + // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.AnswerRequestDoneStage) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::proto::rpc::webrtc::v1::ICECandidate* candidate_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class AnswerResponseUpdateStage final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.AnswerResponseUpdateStage) */ { +class AnswerRequestErrorStage final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.AnswerRequestErrorStage) */ { public: - inline AnswerResponseUpdateStage() : AnswerResponseUpdateStage(nullptr) {} - ~AnswerResponseUpdateStage() override; - template - explicit PROTOBUF_CONSTEXPR AnswerResponseUpdateStage(::google::protobuf::internal::ConstantInitialized); + inline AnswerRequestErrorStage() : AnswerRequestErrorStage(nullptr) {} + ~AnswerRequestErrorStage() override; + explicit PROTOBUF_CONSTEXPR AnswerRequestErrorStage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline AnswerResponseUpdateStage(const AnswerResponseUpdateStage& from) - : AnswerResponseUpdateStage(nullptr, from) {} - AnswerResponseUpdateStage(AnswerResponseUpdateStage&& from) noexcept - : AnswerResponseUpdateStage() { + AnswerRequestErrorStage(const AnswerRequestErrorStage& from); + AnswerRequestErrorStage(AnswerRequestErrorStage&& from) noexcept + : AnswerRequestErrorStage() { *this = ::std::move(from); } - inline AnswerResponseUpdateStage& operator=(const AnswerResponseUpdateStage& from) { + inline AnswerRequestErrorStage& operator=(const AnswerRequestErrorStage& from) { CopyFrom(from); return *this; } - inline AnswerResponseUpdateStage& operator=(AnswerResponseUpdateStage&& from) noexcept { + inline AnswerRequestErrorStage& operator=(AnswerRequestErrorStage&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2254,178 +2204,148 @@ class AnswerResponseUpdateStage final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const AnswerResponseUpdateStage& default_instance() { + static const AnswerRequestErrorStage& default_instance() { return *internal_default_instance(); } - static inline const AnswerResponseUpdateStage* internal_default_instance() { - return reinterpret_cast( - &_AnswerResponseUpdateStage_default_instance_); + static inline const AnswerRequestErrorStage* internal_default_instance() { + return reinterpret_cast( + &_AnswerRequestErrorStage_default_instance_); } static constexpr int kIndexInFileMessages = - 16; + 12; - friend void swap(AnswerResponseUpdateStage& a, AnswerResponseUpdateStage& b) { + friend void swap(AnswerRequestErrorStage& a, AnswerRequestErrorStage& b) { a.Swap(&b); } - inline void Swap(AnswerResponseUpdateStage* other) { + inline void Swap(AnswerRequestErrorStage* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(AnswerResponseUpdateStage* other) { + void UnsafeArenaSwap(AnswerRequestErrorStage* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - AnswerResponseUpdateStage* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const AnswerResponseUpdateStage& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const AnswerResponseUpdateStage& from) { - AnswerResponseUpdateStage::MergeImpl(*this, from); + AnswerRequestErrorStage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const AnswerRequestErrorStage& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const AnswerRequestErrorStage& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(AnswerResponseUpdateStage* other); + void SetCachedSize(int size) const final; + void InternalSwap(AnswerRequestErrorStage* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "proto.rpc.webrtc.v1.AnswerResponseUpdateStage"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.rpc.webrtc.v1.AnswerRequestErrorStage"; } protected: - explicit AnswerResponseUpdateStage(::google::protobuf::Arena* arena); - AnswerResponseUpdateStage(::google::protobuf::Arena* arena, const AnswerResponseUpdateStage& from); + explicit AnswerRequestErrorStage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kCandidateFieldNumber = 1, + kStatusFieldNumber = 1, }; - // .proto.rpc.webrtc.v1.ICECandidate candidate = 1 [json_name = "candidate"]; - bool has_candidate() const; - void clear_candidate() ; - const ::proto::rpc::webrtc::v1::ICECandidate& candidate() const; - PROTOBUF_NODISCARD ::proto::rpc::webrtc::v1::ICECandidate* release_candidate(); - ::proto::rpc::webrtc::v1::ICECandidate* mutable_candidate(); - void set_allocated_candidate(::proto::rpc::webrtc::v1::ICECandidate* value); - void unsafe_arena_set_allocated_candidate(::proto::rpc::webrtc::v1::ICECandidate* value); - ::proto::rpc::webrtc::v1::ICECandidate* unsafe_arena_release_candidate(); - + // .google.rpc.Status status = 1 [json_name = "status"]; + bool has_status() const; private: - const ::proto::rpc::webrtc::v1::ICECandidate& _internal_candidate() const; - ::proto::rpc::webrtc::v1::ICECandidate* _internal_mutable_candidate(); - + bool _internal_has_status() const; public: - // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.AnswerResponseUpdateStage) + void clear_status(); + const ::google::rpc::Status& status() const; + PROTOBUF_NODISCARD ::google::rpc::Status* release_status(); + ::google::rpc::Status* mutable_status(); + void set_allocated_status(::google::rpc::Status* status); + private: + const ::google::rpc::Status& _internal_status() const; + ::google::rpc::Status* _internal_mutable_status(); + public: + void unsafe_arena_set_allocated_status( + ::google::rpc::Status* status); + ::google::rpc::Status* unsafe_arena_release_status(); + + // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.AnswerRequestErrorStage) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::proto::rpc::webrtc::v1::ICECandidate* candidate_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::google::rpc::Status* status_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class AnswerRequestUpdateStage final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.AnswerRequestUpdateStage) */ { +class AnswerRequestHeartbeatStage final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.AnswerRequestHeartbeatStage) */ { public: - inline AnswerRequestUpdateStage() : AnswerRequestUpdateStage(nullptr) {} - ~AnswerRequestUpdateStage() override; - template - explicit PROTOBUF_CONSTEXPR AnswerRequestUpdateStage(::google::protobuf::internal::ConstantInitialized); + inline AnswerRequestHeartbeatStage() : AnswerRequestHeartbeatStage(nullptr) {} + explicit PROTOBUF_CONSTEXPR AnswerRequestHeartbeatStage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline AnswerRequestUpdateStage(const AnswerRequestUpdateStage& from) - : AnswerRequestUpdateStage(nullptr, from) {} - AnswerRequestUpdateStage(AnswerRequestUpdateStage&& from) noexcept - : AnswerRequestUpdateStage() { + AnswerRequestHeartbeatStage(const AnswerRequestHeartbeatStage& from); + AnswerRequestHeartbeatStage(AnswerRequestHeartbeatStage&& from) noexcept + : AnswerRequestHeartbeatStage() { *this = ::std::move(from); } - inline AnswerRequestUpdateStage& operator=(const AnswerRequestUpdateStage& from) { + inline AnswerRequestHeartbeatStage& operator=(const AnswerRequestHeartbeatStage& from) { CopyFrom(from); return *this; } - inline AnswerRequestUpdateStage& operator=(AnswerRequestUpdateStage&& from) noexcept { + inline AnswerRequestHeartbeatStage& operator=(AnswerRequestHeartbeatStage&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2435,178 +2355,114 @@ class AnswerRequestUpdateStage final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const AnswerRequestUpdateStage& default_instance() { + static const AnswerRequestHeartbeatStage& default_instance() { return *internal_default_instance(); } - static inline const AnswerRequestUpdateStage* internal_default_instance() { - return reinterpret_cast( - &_AnswerRequestUpdateStage_default_instance_); + static inline const AnswerRequestHeartbeatStage* internal_default_instance() { + return reinterpret_cast( + &_AnswerRequestHeartbeatStage_default_instance_); } static constexpr int kIndexInFileMessages = - 10; + 13; - friend void swap(AnswerRequestUpdateStage& a, AnswerRequestUpdateStage& b) { + friend void swap(AnswerRequestHeartbeatStage& a, AnswerRequestHeartbeatStage& b) { a.Swap(&b); } - inline void Swap(AnswerRequestUpdateStage* other) { + inline void Swap(AnswerRequestHeartbeatStage* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(AnswerRequestUpdateStage* other) { + void UnsafeArenaSwap(AnswerRequestHeartbeatStage* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - AnswerRequestUpdateStage* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + AnswerRequestHeartbeatStage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const AnswerRequestUpdateStage& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const AnswerRequestUpdateStage& from) { - AnswerRequestUpdateStage::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const AnswerRequestHeartbeatStage& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const AnswerRequestHeartbeatStage& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(AnswerRequestUpdateStage* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "proto.rpc.webrtc.v1.AnswerRequestUpdateStage"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.rpc.webrtc.v1.AnswerRequestHeartbeatStage"; } protected: - explicit AnswerRequestUpdateStage(::google::protobuf::Arena* arena); - AnswerRequestUpdateStage(::google::protobuf::Arena* arena, const AnswerRequestUpdateStage& from); + explicit AnswerRequestHeartbeatStage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kCandidateFieldNumber = 1, - }; - // .proto.rpc.webrtc.v1.ICECandidate candidate = 1 [json_name = "candidate"]; - bool has_candidate() const; - void clear_candidate() ; - const ::proto::rpc::webrtc::v1::ICECandidate& candidate() const; - PROTOBUF_NODISCARD ::proto::rpc::webrtc::v1::ICECandidate* release_candidate(); - ::proto::rpc::webrtc::v1::ICECandidate* mutable_candidate(); - void set_allocated_candidate(::proto::rpc::webrtc::v1::ICECandidate* value); - void unsafe_arena_set_allocated_candidate(::proto::rpc::webrtc::v1::ICECandidate* value); - ::proto::rpc::webrtc::v1::ICECandidate* unsafe_arena_release_candidate(); - - private: - const ::proto::rpc::webrtc::v1::ICECandidate& _internal_candidate() const; - ::proto::rpc::webrtc::v1::ICECandidate* _internal_mutable_candidate(); - - public: - // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.AnswerRequestUpdateStage) + // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.AnswerRequestHeartbeatStage) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::proto::rpc::webrtc::v1::ICECandidate* candidate_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class OptionalWebRTCConfigResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.OptionalWebRTCConfigResponse) */ { +class AnswerRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.AnswerRequest) */ { public: - inline OptionalWebRTCConfigResponse() : OptionalWebRTCConfigResponse(nullptr) {} - ~OptionalWebRTCConfigResponse() override; - template - explicit PROTOBUF_CONSTEXPR OptionalWebRTCConfigResponse(::google::protobuf::internal::ConstantInitialized); + inline AnswerRequest() : AnswerRequest(nullptr) {} + ~AnswerRequest() override; + explicit PROTOBUF_CONSTEXPR AnswerRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline OptionalWebRTCConfigResponse(const OptionalWebRTCConfigResponse& from) - : OptionalWebRTCConfigResponse(nullptr, from) {} - OptionalWebRTCConfigResponse(OptionalWebRTCConfigResponse&& from) noexcept - : OptionalWebRTCConfigResponse() { + AnswerRequest(const AnswerRequest& from); + AnswerRequest(AnswerRequest&& from) noexcept + : AnswerRequest() { *this = ::std::move(from); } - inline OptionalWebRTCConfigResponse& operator=(const OptionalWebRTCConfigResponse& from) { + inline AnswerRequest& operator=(const AnswerRequest& from) { CopyFrom(from); return *this; } - inline OptionalWebRTCConfigResponse& operator=(OptionalWebRTCConfigResponse&& from) noexcept { + inline AnswerRequest& operator=(AnswerRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2616,435 +2472,270 @@ class OptionalWebRTCConfigResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const OptionalWebRTCConfigResponse& default_instance() { + static const AnswerRequest& default_instance() { return *internal_default_instance(); } - static inline const OptionalWebRTCConfigResponse* internal_default_instance() { - return reinterpret_cast( - &_OptionalWebRTCConfigResponse_default_instance_); + enum StageCase { + kInit = 2, + kUpdate = 3, + kDone = 4, + kError = 5, + kHeartbeat = 6, + STAGE_NOT_SET = 0, + }; + + static inline const AnswerRequest* internal_default_instance() { + return reinterpret_cast( + &_AnswerRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 21; + 14; - friend void swap(OptionalWebRTCConfigResponse& a, OptionalWebRTCConfigResponse& b) { + friend void swap(AnswerRequest& a, AnswerRequest& b) { a.Swap(&b); } - inline void Swap(OptionalWebRTCConfigResponse* other) { + inline void Swap(AnswerRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(OptionalWebRTCConfigResponse* other) { + void UnsafeArenaSwap(AnswerRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - OptionalWebRTCConfigResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const OptionalWebRTCConfigResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const OptionalWebRTCConfigResponse& from) { - OptionalWebRTCConfigResponse::MergeImpl(*this, from); + AnswerRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const AnswerRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const AnswerRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(OptionalWebRTCConfigResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(AnswerRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "proto.rpc.webrtc.v1.OptionalWebRTCConfigResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.rpc.webrtc.v1.AnswerRequest"; } protected: - explicit OptionalWebRTCConfigResponse(::google::protobuf::Arena* arena); - OptionalWebRTCConfigResponse(::google::protobuf::Arena* arena, const OptionalWebRTCConfigResponse& from); + explicit AnswerRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kConfigFieldNumber = 1, - }; - // .proto.rpc.webrtc.v1.WebRTCConfig config = 1 [json_name = "config"]; - bool has_config() const; - void clear_config() ; - const ::proto::rpc::webrtc::v1::WebRTCConfig& config() const; - PROTOBUF_NODISCARD ::proto::rpc::webrtc::v1::WebRTCConfig* release_config(); - ::proto::rpc::webrtc::v1::WebRTCConfig* mutable_config(); - void set_allocated_config(::proto::rpc::webrtc::v1::WebRTCConfig* value); - void unsafe_arena_set_allocated_config(::proto::rpc::webrtc::v1::WebRTCConfig* value); - ::proto::rpc::webrtc::v1::WebRTCConfig* unsafe_arena_release_config(); - - private: - const ::proto::rpc::webrtc::v1::WebRTCConfig& _internal_config() const; - ::proto::rpc::webrtc::v1::WebRTCConfig* _internal_mutable_config(); - - public: - // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.OptionalWebRTCConfigResponse) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::proto::rpc::webrtc::v1::WebRTCConfig* config_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto; -};// ------------------------------------------------------------------- - -class CallUpdateRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.CallUpdateRequest) */ { - public: - inline CallUpdateRequest() : CallUpdateRequest(nullptr) {} - ~CallUpdateRequest() override; - template - explicit PROTOBUF_CONSTEXPR CallUpdateRequest(::google::protobuf::internal::ConstantInitialized); - - inline CallUpdateRequest(const CallUpdateRequest& from) - : CallUpdateRequest(nullptr, from) {} - CallUpdateRequest(CallUpdateRequest&& from) noexcept - : CallUpdateRequest() { - *this = ::std::move(from); - } - - inline CallUpdateRequest& operator=(const CallUpdateRequest& from) { - CopyFrom(from); - return *this; - } - inline CallUpdateRequest& operator=(CallUpdateRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CallUpdateRequest& default_instance() { - return *internal_default_instance(); - } - enum UpdateCase { - kCandidate = 2, - kDone = 3, - kError = 4, - UPDATE_NOT_SET = 0, - }; - - static inline const CallUpdateRequest* internal_default_instance() { - return reinterpret_cast( - &_CallUpdateRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - friend void swap(CallUpdateRequest& a, CallUpdateRequest& b) { - a.Swap(&b); - } - inline void Swap(CallUpdateRequest* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CallUpdateRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CallUpdateRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const CallUpdateRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CallUpdateRequest& from) { - CallUpdateRequest::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(CallUpdateRequest* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "proto.rpc.webrtc.v1.CallUpdateRequest"; - } - protected: - explicit CallUpdateRequest(::google::protobuf::Arena* arena); - CallUpdateRequest(::google::protobuf::Arena* arena, const CallUpdateRequest& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kUuidFieldNumber = 1, - kCandidateFieldNumber = 2, - kDoneFieldNumber = 3, - kErrorFieldNumber = 4, + kUuidFieldNumber = 1, + kInitFieldNumber = 2, + kUpdateFieldNumber = 3, + kDoneFieldNumber = 4, + kErrorFieldNumber = 5, + kHeartbeatFieldNumber = 6, }; // string uuid = 1 [json_name = "uuid"]; - void clear_uuid() ; + void clear_uuid(); const std::string& uuid() const; - template - void set_uuid(Arg_&& arg, Args_... args); + template + void set_uuid(ArgT0&& arg0, ArgT... args); std::string* mutable_uuid(); PROTOBUF_NODISCARD std::string* release_uuid(); - void set_allocated_uuid(std::string* value); - + void set_allocated_uuid(std::string* uuid); private: const std::string& _internal_uuid() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_uuid( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_uuid(const std::string& value); std::string* _internal_mutable_uuid(); + public: + // .proto.rpc.webrtc.v1.AnswerRequestInitStage init = 2 [json_name = "init"]; + bool has_init() const; + private: + bool _internal_has_init() const; public: - // .proto.rpc.webrtc.v1.ICECandidate candidate = 2 [json_name = "candidate"]; - bool has_candidate() const; + void clear_init(); + const ::proto::rpc::webrtc::v1::AnswerRequestInitStage& init() const; + PROTOBUF_NODISCARD ::proto::rpc::webrtc::v1::AnswerRequestInitStage* release_init(); + ::proto::rpc::webrtc::v1::AnswerRequestInitStage* mutable_init(); + void set_allocated_init(::proto::rpc::webrtc::v1::AnswerRequestInitStage* init); private: - bool _internal_has_candidate() const; - + const ::proto::rpc::webrtc::v1::AnswerRequestInitStage& _internal_init() const; + ::proto::rpc::webrtc::v1::AnswerRequestInitStage* _internal_mutable_init(); public: - void clear_candidate() ; - const ::proto::rpc::webrtc::v1::ICECandidate& candidate() const; - PROTOBUF_NODISCARD ::proto::rpc::webrtc::v1::ICECandidate* release_candidate(); - ::proto::rpc::webrtc::v1::ICECandidate* mutable_candidate(); - void set_allocated_candidate(::proto::rpc::webrtc::v1::ICECandidate* value); - void unsafe_arena_set_allocated_candidate(::proto::rpc::webrtc::v1::ICECandidate* value); - ::proto::rpc::webrtc::v1::ICECandidate* unsafe_arena_release_candidate(); + void unsafe_arena_set_allocated_init( + ::proto::rpc::webrtc::v1::AnswerRequestInitStage* init); + ::proto::rpc::webrtc::v1::AnswerRequestInitStage* unsafe_arena_release_init(); + // .proto.rpc.webrtc.v1.AnswerRequestUpdateStage update = 3 [json_name = "update"]; + bool has_update() const; private: - const ::proto::rpc::webrtc::v1::ICECandidate& _internal_candidate() const; - ::proto::rpc::webrtc::v1::ICECandidate* _internal_mutable_candidate(); - + bool _internal_has_update() const; public: - // bool done = 3 [json_name = "done"]; - bool has_done() const; - void clear_done() ; - bool done() const; - void set_done(bool value); - + void clear_update(); + const ::proto::rpc::webrtc::v1::AnswerRequestUpdateStage& update() const; + PROTOBUF_NODISCARD ::proto::rpc::webrtc::v1::AnswerRequestUpdateStage* release_update(); + ::proto::rpc::webrtc::v1::AnswerRequestUpdateStage* mutable_update(); + void set_allocated_update(::proto::rpc::webrtc::v1::AnswerRequestUpdateStage* update); private: - bool _internal_done() const; - void _internal_set_done(bool value); + const ::proto::rpc::webrtc::v1::AnswerRequestUpdateStage& _internal_update() const; + ::proto::rpc::webrtc::v1::AnswerRequestUpdateStage* _internal_mutable_update(); + public: + void unsafe_arena_set_allocated_update( + ::proto::rpc::webrtc::v1::AnswerRequestUpdateStage* update); + ::proto::rpc::webrtc::v1::AnswerRequestUpdateStage* unsafe_arena_release_update(); + // .proto.rpc.webrtc.v1.AnswerRequestDoneStage done = 4 [json_name = "done"]; + bool has_done() const; + private: + bool _internal_has_done() const; public: - // .google.rpc.Status error = 4 [json_name = "error"]; + void clear_done(); + const ::proto::rpc::webrtc::v1::AnswerRequestDoneStage& done() const; + PROTOBUF_NODISCARD ::proto::rpc::webrtc::v1::AnswerRequestDoneStage* release_done(); + ::proto::rpc::webrtc::v1::AnswerRequestDoneStage* mutable_done(); + void set_allocated_done(::proto::rpc::webrtc::v1::AnswerRequestDoneStage* done); + private: + const ::proto::rpc::webrtc::v1::AnswerRequestDoneStage& _internal_done() const; + ::proto::rpc::webrtc::v1::AnswerRequestDoneStage* _internal_mutable_done(); + public: + void unsafe_arena_set_allocated_done( + ::proto::rpc::webrtc::v1::AnswerRequestDoneStage* done); + ::proto::rpc::webrtc::v1::AnswerRequestDoneStage* unsafe_arena_release_done(); + + // .proto.rpc.webrtc.v1.AnswerRequestErrorStage error = 5 [json_name = "error"]; bool has_error() const; private: bool _internal_has_error() const; - public: - void clear_error() ; - const ::google::rpc::Status& error() const; - PROTOBUF_NODISCARD ::google::rpc::Status* release_error(); - ::google::rpc::Status* mutable_error(); - void set_allocated_error(::google::rpc::Status* value); - void unsafe_arena_set_allocated_error(::google::rpc::Status* value); - ::google::rpc::Status* unsafe_arena_release_error(); - + void clear_error(); + const ::proto::rpc::webrtc::v1::AnswerRequestErrorStage& error() const; + PROTOBUF_NODISCARD ::proto::rpc::webrtc::v1::AnswerRequestErrorStage* release_error(); + ::proto::rpc::webrtc::v1::AnswerRequestErrorStage* mutable_error(); + void set_allocated_error(::proto::rpc::webrtc::v1::AnswerRequestErrorStage* error); private: - const ::google::rpc::Status& _internal_error() const; - ::google::rpc::Status* _internal_mutable_error(); + const ::proto::rpc::webrtc::v1::AnswerRequestErrorStage& _internal_error() const; + ::proto::rpc::webrtc::v1::AnswerRequestErrorStage* _internal_mutable_error(); + public: + void unsafe_arena_set_allocated_error( + ::proto::rpc::webrtc::v1::AnswerRequestErrorStage* error); + ::proto::rpc::webrtc::v1::AnswerRequestErrorStage* unsafe_arena_release_error(); + // .proto.rpc.webrtc.v1.AnswerRequestHeartbeatStage heartbeat = 6 [json_name = "heartbeat"]; + bool has_heartbeat() const; + private: + bool _internal_has_heartbeat() const; public: - void clear_update(); - UpdateCase update_case() const; - // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.CallUpdateRequest) + void clear_heartbeat(); + const ::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage& heartbeat() const; + PROTOBUF_NODISCARD ::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage* release_heartbeat(); + ::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage* mutable_heartbeat(); + void set_allocated_heartbeat(::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage* heartbeat); + private: + const ::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage& _internal_heartbeat() const; + ::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage* _internal_mutable_heartbeat(); + public: + void unsafe_arena_set_allocated_heartbeat( + ::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage* heartbeat); + ::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage* unsafe_arena_release_heartbeat(); + + void clear_stage(); + StageCase stage_case() const; + // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.AnswerRequest) private: class _Internal; - void set_has_candidate(); + void set_has_init(); + void set_has_update(); void set_has_done(); void set_has_error(); + void set_has_heartbeat(); - inline bool has_update() const; - inline void clear_has_update(); + inline bool has_stage() const; + inline void clear_has_stage(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr uuid_; + union StageUnion { + constexpr StageUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::proto::rpc::webrtc::v1::AnswerRequestInitStage* init_; + ::proto::rpc::webrtc::v1::AnswerRequestUpdateStage* update_; + ::proto::rpc::webrtc::v1::AnswerRequestDoneStage* done_; + ::proto::rpc::webrtc::v1::AnswerRequestErrorStage* error_; + ::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage* heartbeat_; + } stage_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 4, 2, - 50, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr uuid_; - union UpdateUnion { - constexpr UpdateUnion() : _constinit_{} {} - ::google::protobuf::internal::ConstantInitialized _constinit_; - ::proto::rpc::webrtc::v1::ICECandidate* candidate_; - bool done_; - ::google::rpc::Status* error_; - } update_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t _oneof_case_[1]; - - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; friend struct ::TableStruct_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class CallResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.CallResponse) */ { +class AnswerResponseInitStage final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.AnswerResponseInitStage) */ { public: - inline CallResponse() : CallResponse(nullptr) {} - ~CallResponse() override; - template - explicit PROTOBUF_CONSTEXPR CallResponse(::google::protobuf::internal::ConstantInitialized); + inline AnswerResponseInitStage() : AnswerResponseInitStage(nullptr) {} + ~AnswerResponseInitStage() override; + explicit PROTOBUF_CONSTEXPR AnswerResponseInitStage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline CallResponse(const CallResponse& from) - : CallResponse(nullptr, from) {} - CallResponse(CallResponse&& from) noexcept - : CallResponse() { + AnswerResponseInitStage(const AnswerResponseInitStage& from); + AnswerResponseInitStage(AnswerResponseInitStage&& from) noexcept + : AnswerResponseInitStage() { *this = ::std::move(from); } - inline CallResponse& operator=(const CallResponse& from) { + inline AnswerResponseInitStage& operator=(const AnswerResponseInitStage& from) { CopyFrom(from); return *this; } - inline CallResponse& operator=(CallResponse&& from) noexcept { + inline AnswerResponseInitStage& operator=(AnswerResponseInitStage&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3054,239 +2745,145 @@ class CallResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CallResponse& default_instance() { + static const AnswerResponseInitStage& default_instance() { return *internal_default_instance(); } - enum StageCase { - kInit = 2, - kUpdate = 3, - STAGE_NOT_SET = 0, - }; - - static inline const CallResponse* internal_default_instance() { - return reinterpret_cast( - &_CallResponse_default_instance_); + static inline const AnswerResponseInitStage* internal_default_instance() { + return reinterpret_cast( + &_AnswerResponseInitStage_default_instance_); } static constexpr int kIndexInFileMessages = - 4; + 15; - friend void swap(CallResponse& a, CallResponse& b) { + friend void swap(AnswerResponseInitStage& a, AnswerResponseInitStage& b) { a.Swap(&b); } - inline void Swap(CallResponse* other) { + inline void Swap(AnswerResponseInitStage* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CallResponse* other) { + void UnsafeArenaSwap(AnswerResponseInitStage* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CallResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const CallResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CallResponse& from) { - CallResponse::MergeImpl(*this, from); + AnswerResponseInitStage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const AnswerResponseInitStage& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const AnswerResponseInitStage& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(CallResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(AnswerResponseInitStage* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "proto.rpc.webrtc.v1.CallResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.rpc.webrtc.v1.AnswerResponseInitStage"; } protected: - explicit CallResponse(::google::protobuf::Arena* arena); - CallResponse(::google::protobuf::Arena* arena, const CallResponse& from); + explicit AnswerResponseInitStage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kUuidFieldNumber = 1, - kInitFieldNumber = 2, - kUpdateFieldNumber = 3, + kSdpFieldNumber = 1, }; - // string uuid = 1 [json_name = "uuid"]; - void clear_uuid() ; - const std::string& uuid() const; - template - void set_uuid(Arg_&& arg, Args_... args); - std::string* mutable_uuid(); - PROTOBUF_NODISCARD std::string* release_uuid(); - void set_allocated_uuid(std::string* value); - - private: - const std::string& _internal_uuid() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_uuid( - const std::string& value); - std::string* _internal_mutable_uuid(); - - public: - // .proto.rpc.webrtc.v1.CallResponseInitStage init = 2 [json_name = "init"]; - bool has_init() const; - private: - bool _internal_has_init() const; - - public: - void clear_init() ; - const ::proto::rpc::webrtc::v1::CallResponseInitStage& init() const; - PROTOBUF_NODISCARD ::proto::rpc::webrtc::v1::CallResponseInitStage* release_init(); - ::proto::rpc::webrtc::v1::CallResponseInitStage* mutable_init(); - void set_allocated_init(::proto::rpc::webrtc::v1::CallResponseInitStage* value); - void unsafe_arena_set_allocated_init(::proto::rpc::webrtc::v1::CallResponseInitStage* value); - ::proto::rpc::webrtc::v1::CallResponseInitStage* unsafe_arena_release_init(); - - private: - const ::proto::rpc::webrtc::v1::CallResponseInitStage& _internal_init() const; - ::proto::rpc::webrtc::v1::CallResponseInitStage* _internal_mutable_init(); - - public: - // .proto.rpc.webrtc.v1.CallResponseUpdateStage update = 3 [json_name = "update"]; - bool has_update() const; + // string sdp = 1 [json_name = "sdp"]; + void clear_sdp(); + const std::string& sdp() const; + template + void set_sdp(ArgT0&& arg0, ArgT... args); + std::string* mutable_sdp(); + PROTOBUF_NODISCARD std::string* release_sdp(); + void set_allocated_sdp(std::string* sdp); private: - bool _internal_has_update() const; - + const std::string& _internal_sdp() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_sdp(const std::string& value); + std::string* _internal_mutable_sdp(); public: - void clear_update() ; - const ::proto::rpc::webrtc::v1::CallResponseUpdateStage& update() const; - PROTOBUF_NODISCARD ::proto::rpc::webrtc::v1::CallResponseUpdateStage* release_update(); - ::proto::rpc::webrtc::v1::CallResponseUpdateStage* mutable_update(); - void set_allocated_update(::proto::rpc::webrtc::v1::CallResponseUpdateStage* value); - void unsafe_arena_set_allocated_update(::proto::rpc::webrtc::v1::CallResponseUpdateStage* value); - ::proto::rpc::webrtc::v1::CallResponseUpdateStage* unsafe_arena_release_update(); - private: - const ::proto::rpc::webrtc::v1::CallResponseUpdateStage& _internal_update() const; - ::proto::rpc::webrtc::v1::CallResponseUpdateStage* _internal_mutable_update(); - - public: - void clear_stage(); - StageCase stage_case() const; - // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.CallResponse) + // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.AnswerResponseInitStage) private: class _Internal; - void set_has_init(); - void set_has_update(); - inline bool has_stage() const; - inline void clear_has_stage(); - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 3, 2, - 45, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr uuid_; - union StageUnion { - constexpr StageUnion() : _constinit_{} {} - ::google::protobuf::internal::ConstantInitialized _constinit_; - ::proto::rpc::webrtc::v1::CallResponseInitStage* init_; - ::proto::rpc::webrtc::v1::CallResponseUpdateStage* update_; - } stage_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t _oneof_case_[1]; - - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr sdp_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class AnswerResponseErrorStage final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.AnswerResponseErrorStage) */ { +class AnswerResponseUpdateStage final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.AnswerResponseUpdateStage) */ { public: - inline AnswerResponseErrorStage() : AnswerResponseErrorStage(nullptr) {} - ~AnswerResponseErrorStage() override; - template - explicit PROTOBUF_CONSTEXPR AnswerResponseErrorStage(::google::protobuf::internal::ConstantInitialized); + inline AnswerResponseUpdateStage() : AnswerResponseUpdateStage(nullptr) {} + ~AnswerResponseUpdateStage() override; + explicit PROTOBUF_CONSTEXPR AnswerResponseUpdateStage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline AnswerResponseErrorStage(const AnswerResponseErrorStage& from) - : AnswerResponseErrorStage(nullptr, from) {} - AnswerResponseErrorStage(AnswerResponseErrorStage&& from) noexcept - : AnswerResponseErrorStage() { + AnswerResponseUpdateStage(const AnswerResponseUpdateStage& from); + AnswerResponseUpdateStage(AnswerResponseUpdateStage&& from) noexcept + : AnswerResponseUpdateStage() { *this = ::std::move(from); } - inline AnswerResponseErrorStage& operator=(const AnswerResponseErrorStage& from) { + inline AnswerResponseUpdateStage& operator=(const AnswerResponseUpdateStage& from) { CopyFrom(from); return *this; } - inline AnswerResponseErrorStage& operator=(AnswerResponseErrorStage&& from) noexcept { + inline AnswerResponseUpdateStage& operator=(AnswerResponseUpdateStage&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3296,178 +2893,148 @@ class AnswerResponseErrorStage final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const AnswerResponseErrorStage& default_instance() { + static const AnswerResponseUpdateStage& default_instance() { return *internal_default_instance(); } - static inline const AnswerResponseErrorStage* internal_default_instance() { - return reinterpret_cast( - &_AnswerResponseErrorStage_default_instance_); + static inline const AnswerResponseUpdateStage* internal_default_instance() { + return reinterpret_cast( + &_AnswerResponseUpdateStage_default_instance_); } static constexpr int kIndexInFileMessages = - 18; + 16; - friend void swap(AnswerResponseErrorStage& a, AnswerResponseErrorStage& b) { + friend void swap(AnswerResponseUpdateStage& a, AnswerResponseUpdateStage& b) { a.Swap(&b); } - inline void Swap(AnswerResponseErrorStage* other) { + inline void Swap(AnswerResponseUpdateStage* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(AnswerResponseErrorStage* other) { + void UnsafeArenaSwap(AnswerResponseUpdateStage* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - AnswerResponseErrorStage* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const AnswerResponseErrorStage& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const AnswerResponseErrorStage& from) { - AnswerResponseErrorStage::MergeImpl(*this, from); + AnswerResponseUpdateStage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const AnswerResponseUpdateStage& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const AnswerResponseUpdateStage& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(AnswerResponseErrorStage* other); + void SetCachedSize(int size) const final; + void InternalSwap(AnswerResponseUpdateStage* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "proto.rpc.webrtc.v1.AnswerResponseErrorStage"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.rpc.webrtc.v1.AnswerResponseUpdateStage"; } protected: - explicit AnswerResponseErrorStage(::google::protobuf::Arena* arena); - AnswerResponseErrorStage(::google::protobuf::Arena* arena, const AnswerResponseErrorStage& from); + explicit AnswerResponseUpdateStage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kStatusFieldNumber = 1, + kCandidateFieldNumber = 1, }; - // .google.rpc.Status status = 1 [json_name = "status"]; - bool has_status() const; - void clear_status() ; - const ::google::rpc::Status& status() const; - PROTOBUF_NODISCARD ::google::rpc::Status* release_status(); - ::google::rpc::Status* mutable_status(); - void set_allocated_status(::google::rpc::Status* value); - void unsafe_arena_set_allocated_status(::google::rpc::Status* value); - ::google::rpc::Status* unsafe_arena_release_status(); - + // .proto.rpc.webrtc.v1.ICECandidate candidate = 1 [json_name = "candidate"]; + bool has_candidate() const; private: - const ::google::rpc::Status& _internal_status() const; - ::google::rpc::Status* _internal_mutable_status(); - + bool _internal_has_candidate() const; public: - // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.AnswerResponseErrorStage) + void clear_candidate(); + const ::proto::rpc::webrtc::v1::ICECandidate& candidate() const; + PROTOBUF_NODISCARD ::proto::rpc::webrtc::v1::ICECandidate* release_candidate(); + ::proto::rpc::webrtc::v1::ICECandidate* mutable_candidate(); + void set_allocated_candidate(::proto::rpc::webrtc::v1::ICECandidate* candidate); + private: + const ::proto::rpc::webrtc::v1::ICECandidate& _internal_candidate() const; + ::proto::rpc::webrtc::v1::ICECandidate* _internal_mutable_candidate(); + public: + void unsafe_arena_set_allocated_candidate( + ::proto::rpc::webrtc::v1::ICECandidate* candidate); + ::proto::rpc::webrtc::v1::ICECandidate* unsafe_arena_release_candidate(); + + // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.AnswerResponseUpdateStage) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::rpc::Status* status_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::proto::rpc::webrtc::v1::ICECandidate* candidate_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class AnswerRequestInitStage final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.AnswerRequestInitStage) */ { +class AnswerResponseDoneStage final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.AnswerResponseDoneStage) */ { public: - inline AnswerRequestInitStage() : AnswerRequestInitStage(nullptr) {} - ~AnswerRequestInitStage() override; - template - explicit PROTOBUF_CONSTEXPR AnswerRequestInitStage(::google::protobuf::internal::ConstantInitialized); + inline AnswerResponseDoneStage() : AnswerResponseDoneStage(nullptr) {} + explicit PROTOBUF_CONSTEXPR AnswerResponseDoneStage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline AnswerRequestInitStage(const AnswerRequestInitStage& from) - : AnswerRequestInitStage(nullptr, from) {} - AnswerRequestInitStage(AnswerRequestInitStage&& from) noexcept - : AnswerRequestInitStage() { + AnswerResponseDoneStage(const AnswerResponseDoneStage& from); + AnswerResponseDoneStage(AnswerResponseDoneStage&& from) noexcept + : AnswerResponseDoneStage() { *this = ::std::move(from); } - inline AnswerRequestInitStage& operator=(const AnswerRequestInitStage& from) { + inline AnswerResponseDoneStage& operator=(const AnswerResponseDoneStage& from) { CopyFrom(from); return *this; } - inline AnswerRequestInitStage& operator=(AnswerRequestInitStage&& from) noexcept { + inline AnswerResponseDoneStage& operator=(AnswerResponseDoneStage&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3477,213 +3044,114 @@ class AnswerRequestInitStage final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const AnswerRequestInitStage& default_instance() { + static const AnswerResponseDoneStage& default_instance() { return *internal_default_instance(); } - static inline const AnswerRequestInitStage* internal_default_instance() { - return reinterpret_cast( - &_AnswerRequestInitStage_default_instance_); + static inline const AnswerResponseDoneStage* internal_default_instance() { + return reinterpret_cast( + &_AnswerResponseDoneStage_default_instance_); } static constexpr int kIndexInFileMessages = - 9; + 17; - friend void swap(AnswerRequestInitStage& a, AnswerRequestInitStage& b) { + friend void swap(AnswerResponseDoneStage& a, AnswerResponseDoneStage& b) { a.Swap(&b); } - inline void Swap(AnswerRequestInitStage* other) { + inline void Swap(AnswerResponseDoneStage* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(AnswerRequestInitStage* other) { + void UnsafeArenaSwap(AnswerResponseDoneStage* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - AnswerRequestInitStage* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + AnswerResponseDoneStage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const AnswerRequestInitStage& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const AnswerRequestInitStage& from) { - AnswerRequestInitStage::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const AnswerResponseDoneStage& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const AnswerResponseDoneStage& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(AnswerRequestInitStage* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "proto.rpc.webrtc.v1.AnswerRequestInitStage"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.rpc.webrtc.v1.AnswerResponseDoneStage"; } protected: - explicit AnswerRequestInitStage(::google::protobuf::Arena* arena); - AnswerRequestInitStage(::google::protobuf::Arena* arena, const AnswerRequestInitStage& from); + explicit AnswerResponseDoneStage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kSdpFieldNumber = 1, - kOptionalConfigFieldNumber = 2, - kDeadlineFieldNumber = 3, - }; - // string sdp = 1 [json_name = "sdp"]; - void clear_sdp() ; - const std::string& sdp() const; - template - void set_sdp(Arg_&& arg, Args_... args); - std::string* mutable_sdp(); - PROTOBUF_NODISCARD std::string* release_sdp(); - void set_allocated_sdp(std::string* value); - - private: - const std::string& _internal_sdp() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_sdp( - const std::string& value); - std::string* _internal_mutable_sdp(); - - public: - // .proto.rpc.webrtc.v1.WebRTCConfig optional_config = 2 [json_name = "optionalConfig"]; - bool has_optional_config() const; - void clear_optional_config() ; - const ::proto::rpc::webrtc::v1::WebRTCConfig& optional_config() const; - PROTOBUF_NODISCARD ::proto::rpc::webrtc::v1::WebRTCConfig* release_optional_config(); - ::proto::rpc::webrtc::v1::WebRTCConfig* mutable_optional_config(); - void set_allocated_optional_config(::proto::rpc::webrtc::v1::WebRTCConfig* value); - void unsafe_arena_set_allocated_optional_config(::proto::rpc::webrtc::v1::WebRTCConfig* value); - ::proto::rpc::webrtc::v1::WebRTCConfig* unsafe_arena_release_optional_config(); - - private: - const ::proto::rpc::webrtc::v1::WebRTCConfig& _internal_optional_config() const; - ::proto::rpc::webrtc::v1::WebRTCConfig* _internal_mutable_optional_config(); - - public: - // optional .google.protobuf.Timestamp deadline = 3 [json_name = "deadline"]; - bool has_deadline() const; - void clear_deadline() ; - const ::google::protobuf::Timestamp& deadline() const; - PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_deadline(); - ::google::protobuf::Timestamp* mutable_deadline(); - void set_allocated_deadline(::google::protobuf::Timestamp* value); - void unsafe_arena_set_allocated_deadline(::google::protobuf::Timestamp* value); - ::google::protobuf::Timestamp* unsafe_arena_release_deadline(); - - private: - const ::google::protobuf::Timestamp& _internal_deadline() const; - ::google::protobuf::Timestamp* _internal_mutable_deadline(); - - public: - // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.AnswerRequestInitStage) + // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.AnswerResponseDoneStage) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 2, - 54, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr sdp_; - ::proto::rpc::webrtc::v1::WebRTCConfig* optional_config_; - ::google::protobuf::Timestamp* deadline_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class AnswerRequestErrorStage final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.AnswerRequestErrorStage) */ { +class AnswerResponseErrorStage final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.AnswerResponseErrorStage) */ { public: - inline AnswerRequestErrorStage() : AnswerRequestErrorStage(nullptr) {} - ~AnswerRequestErrorStage() override; - template - explicit PROTOBUF_CONSTEXPR AnswerRequestErrorStage(::google::protobuf::internal::ConstantInitialized); + inline AnswerResponseErrorStage() : AnswerResponseErrorStage(nullptr) {} + ~AnswerResponseErrorStage() override; + explicit PROTOBUF_CONSTEXPR AnswerResponseErrorStage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline AnswerRequestErrorStage(const AnswerRequestErrorStage& from) - : AnswerRequestErrorStage(nullptr, from) {} - AnswerRequestErrorStage(AnswerRequestErrorStage&& from) noexcept - : AnswerRequestErrorStage() { + AnswerResponseErrorStage(const AnswerResponseErrorStage& from); + AnswerResponseErrorStage(AnswerResponseErrorStage&& from) noexcept + : AnswerResponseErrorStage() { *this = ::std::move(from); } - inline AnswerRequestErrorStage& operator=(const AnswerRequestErrorStage& from) { + inline AnswerResponseErrorStage& operator=(const AnswerResponseErrorStage& from) { CopyFrom(from); return *this; } - inline AnswerRequestErrorStage& operator=(AnswerRequestErrorStage&& from) noexcept { + inline AnswerResponseErrorStage& operator=(AnswerResponseErrorStage&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3693,99 +3161,88 @@ class AnswerRequestErrorStage final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const AnswerRequestErrorStage& default_instance() { + static const AnswerResponseErrorStage& default_instance() { return *internal_default_instance(); } - static inline const AnswerRequestErrorStage* internal_default_instance() { - return reinterpret_cast( - &_AnswerRequestErrorStage_default_instance_); + static inline const AnswerResponseErrorStage* internal_default_instance() { + return reinterpret_cast( + &_AnswerResponseErrorStage_default_instance_); } static constexpr int kIndexInFileMessages = - 12; + 18; - friend void swap(AnswerRequestErrorStage& a, AnswerRequestErrorStage& b) { + friend void swap(AnswerResponseErrorStage& a, AnswerResponseErrorStage& b) { a.Swap(&b); } - inline void Swap(AnswerRequestErrorStage* other) { + inline void Swap(AnswerResponseErrorStage* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(AnswerRequestErrorStage* other) { + void UnsafeArenaSwap(AnswerResponseErrorStage* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - AnswerRequestErrorStage* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const AnswerRequestErrorStage& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const AnswerRequestErrorStage& from) { - AnswerRequestErrorStage::MergeImpl(*this, from); + AnswerResponseErrorStage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const AnswerResponseErrorStage& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const AnswerResponseErrorStage& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(AnswerRequestErrorStage* other); + void SetCachedSize(int size) const final; + void InternalSwap(AnswerResponseErrorStage* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "proto.rpc.webrtc.v1.AnswerRequestErrorStage"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.rpc.webrtc.v1.AnswerResponseErrorStage"; } protected: - explicit AnswerRequestErrorStage(::google::protobuf::Arena* arena); - AnswerRequestErrorStage(::google::protobuf::Arena* arena, const AnswerRequestErrorStage& from); + explicit AnswerResponseErrorStage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -3796,61 +3253,43 @@ class AnswerRequestErrorStage final : }; // .google.rpc.Status status = 1 [json_name = "status"]; bool has_status() const; - void clear_status() ; + private: + bool _internal_has_status() const; + public: + void clear_status(); const ::google::rpc::Status& status() const; PROTOBUF_NODISCARD ::google::rpc::Status* release_status(); ::google::rpc::Status* mutable_status(); - void set_allocated_status(::google::rpc::Status* value); - void unsafe_arena_set_allocated_status(::google::rpc::Status* value); - ::google::rpc::Status* unsafe_arena_release_status(); - + void set_allocated_status(::google::rpc::Status* status); private: const ::google::rpc::Status& _internal_status() const; ::google::rpc::Status* _internal_mutable_status(); - public: - // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.AnswerRequestErrorStage) + void unsafe_arena_set_allocated_status( + ::google::rpc::Status* status); + ::google::rpc::Status* unsafe_arena_release_status(); + + // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.AnswerResponseErrorStage) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::rpc::Status* status_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::google::rpc::Status* status_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class AnswerResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.AnswerResponse) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.AnswerResponse) */ { public: inline AnswerResponse() : AnswerResponse(nullptr) {} ~AnswerResponse() override; - template - explicit PROTOBUF_CONSTEXPR AnswerResponse(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR AnswerResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline AnswerResponse(const AnswerResponse& from) - : AnswerResponse(nullptr, from) {} + AnswerResponse(const AnswerResponse& from); AnswerResponse(AnswerResponse&& from) noexcept : AnswerResponse() { *this = ::std::move(from); @@ -3862,9 +3301,9 @@ class AnswerResponse final : } inline AnswerResponse& operator=(AnswerResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3874,22 +3313,13 @@ class AnswerResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const AnswerResponse& default_instance() { @@ -3916,65 +3346,63 @@ class AnswerResponse final : inline void Swap(AnswerResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(AnswerResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - AnswerResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + AnswerResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const AnswerResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const AnswerResponse& from) { - AnswerResponse::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const AnswerResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(AnswerResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "proto.rpc.webrtc.v1.AnswerResponse"; } protected: - explicit AnswerResponse(::google::protobuf::Arena* arena); - AnswerResponse(::google::protobuf::Arena* arena, const AnswerResponse& from); + explicit AnswerResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -3988,171 +3416,261 @@ class AnswerResponse final : kErrorFieldNumber = 5, }; // string uuid = 1 [json_name = "uuid"]; - void clear_uuid() ; + void clear_uuid(); const std::string& uuid() const; - template - void set_uuid(Arg_&& arg, Args_... args); + template + void set_uuid(ArgT0&& arg0, ArgT... args); std::string* mutable_uuid(); PROTOBUF_NODISCARD std::string* release_uuid(); - void set_allocated_uuid(std::string* value); - + void set_allocated_uuid(std::string* uuid); private: const std::string& _internal_uuid() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_uuid( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_uuid(const std::string& value); std::string* _internal_mutable_uuid(); - public: + // .proto.rpc.webrtc.v1.AnswerResponseInitStage init = 2 [json_name = "init"]; bool has_init() const; private: bool _internal_has_init() const; - public: - void clear_init() ; + void clear_init(); const ::proto::rpc::webrtc::v1::AnswerResponseInitStage& init() const; PROTOBUF_NODISCARD ::proto::rpc::webrtc::v1::AnswerResponseInitStage* release_init(); ::proto::rpc::webrtc::v1::AnswerResponseInitStage* mutable_init(); - void set_allocated_init(::proto::rpc::webrtc::v1::AnswerResponseInitStage* value); - void unsafe_arena_set_allocated_init(::proto::rpc::webrtc::v1::AnswerResponseInitStage* value); - ::proto::rpc::webrtc::v1::AnswerResponseInitStage* unsafe_arena_release_init(); - + void set_allocated_init(::proto::rpc::webrtc::v1::AnswerResponseInitStage* init); private: const ::proto::rpc::webrtc::v1::AnswerResponseInitStage& _internal_init() const; ::proto::rpc::webrtc::v1::AnswerResponseInitStage* _internal_mutable_init(); - public: + void unsafe_arena_set_allocated_init( + ::proto::rpc::webrtc::v1::AnswerResponseInitStage* init); + ::proto::rpc::webrtc::v1::AnswerResponseInitStage* unsafe_arena_release_init(); + // .proto.rpc.webrtc.v1.AnswerResponseUpdateStage update = 3 [json_name = "update"]; bool has_update() const; private: bool _internal_has_update() const; - public: - void clear_update() ; + void clear_update(); const ::proto::rpc::webrtc::v1::AnswerResponseUpdateStage& update() const; PROTOBUF_NODISCARD ::proto::rpc::webrtc::v1::AnswerResponseUpdateStage* release_update(); ::proto::rpc::webrtc::v1::AnswerResponseUpdateStage* mutable_update(); - void set_allocated_update(::proto::rpc::webrtc::v1::AnswerResponseUpdateStage* value); - void unsafe_arena_set_allocated_update(::proto::rpc::webrtc::v1::AnswerResponseUpdateStage* value); - ::proto::rpc::webrtc::v1::AnswerResponseUpdateStage* unsafe_arena_release_update(); - + void set_allocated_update(::proto::rpc::webrtc::v1::AnswerResponseUpdateStage* update); private: const ::proto::rpc::webrtc::v1::AnswerResponseUpdateStage& _internal_update() const; ::proto::rpc::webrtc::v1::AnswerResponseUpdateStage* _internal_mutable_update(); + public: + void unsafe_arena_set_allocated_update( + ::proto::rpc::webrtc::v1::AnswerResponseUpdateStage* update); + ::proto::rpc::webrtc::v1::AnswerResponseUpdateStage* unsafe_arena_release_update(); + + // .proto.rpc.webrtc.v1.AnswerResponseDoneStage done = 4 [json_name = "done"]; + bool has_done() const; + private: + bool _internal_has_done() const; + public: + void clear_done(); + const ::proto::rpc::webrtc::v1::AnswerResponseDoneStage& done() const; + PROTOBUF_NODISCARD ::proto::rpc::webrtc::v1::AnswerResponseDoneStage* release_done(); + ::proto::rpc::webrtc::v1::AnswerResponseDoneStage* mutable_done(); + void set_allocated_done(::proto::rpc::webrtc::v1::AnswerResponseDoneStage* done); + private: + const ::proto::rpc::webrtc::v1::AnswerResponseDoneStage& _internal_done() const; + ::proto::rpc::webrtc::v1::AnswerResponseDoneStage* _internal_mutable_done(); + public: + void unsafe_arena_set_allocated_done( + ::proto::rpc::webrtc::v1::AnswerResponseDoneStage* done); + ::proto::rpc::webrtc::v1::AnswerResponseDoneStage* unsafe_arena_release_done(); + + // .proto.rpc.webrtc.v1.AnswerResponseErrorStage error = 5 [json_name = "error"]; + bool has_error() const; + private: + bool _internal_has_error() const; + public: + void clear_error(); + const ::proto::rpc::webrtc::v1::AnswerResponseErrorStage& error() const; + PROTOBUF_NODISCARD ::proto::rpc::webrtc::v1::AnswerResponseErrorStage* release_error(); + ::proto::rpc::webrtc::v1::AnswerResponseErrorStage* mutable_error(); + void set_allocated_error(::proto::rpc::webrtc::v1::AnswerResponseErrorStage* error); + private: + const ::proto::rpc::webrtc::v1::AnswerResponseErrorStage& _internal_error() const; + ::proto::rpc::webrtc::v1::AnswerResponseErrorStage* _internal_mutable_error(); + public: + void unsafe_arena_set_allocated_error( + ::proto::rpc::webrtc::v1::AnswerResponseErrorStage* error); + ::proto::rpc::webrtc::v1::AnswerResponseErrorStage* unsafe_arena_release_error(); + + void clear_stage(); + StageCase stage_case() const; + // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.AnswerResponse) + private: + class _Internal; + void set_has_init(); + void set_has_update(); + void set_has_done(); + void set_has_error(); + + inline bool has_stage() const; + inline void clear_has_stage(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr uuid_; + union StageUnion { + constexpr StageUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::proto::rpc::webrtc::v1::AnswerResponseInitStage* init_; + ::proto::rpc::webrtc::v1::AnswerResponseUpdateStage* update_; + ::proto::rpc::webrtc::v1::AnswerResponseDoneStage* done_; + ::proto::rpc::webrtc::v1::AnswerResponseErrorStage* error_; + } stage_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; + + friend struct ::TableStruct_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto; +}; +// ------------------------------------------------------------------- + +class OptionalWebRTCConfigRequest final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.OptionalWebRTCConfigRequest) */ { + public: + inline OptionalWebRTCConfigRequest() : OptionalWebRTCConfigRequest(nullptr) {} + explicit PROTOBUF_CONSTEXPR OptionalWebRTCConfigRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + OptionalWebRTCConfigRequest(const OptionalWebRTCConfigRequest& from); + OptionalWebRTCConfigRequest(OptionalWebRTCConfigRequest&& from) noexcept + : OptionalWebRTCConfigRequest() { + *this = ::std::move(from); + } + + inline OptionalWebRTCConfigRequest& operator=(const OptionalWebRTCConfigRequest& from) { + CopyFrom(from); + return *this; + } + inline OptionalWebRTCConfigRequest& operator=(OptionalWebRTCConfigRequest&& 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 OptionalWebRTCConfigRequest& default_instance() { + return *internal_default_instance(); + } + static inline const OptionalWebRTCConfigRequest* internal_default_instance() { + return reinterpret_cast( + &_OptionalWebRTCConfigRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 20; + + friend void swap(OptionalWebRTCConfigRequest& a, OptionalWebRTCConfigRequest& b) { + a.Swap(&b); + } + inline void Swap(OptionalWebRTCConfigRequest* 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(OptionalWebRTCConfigRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } - public: - // .proto.rpc.webrtc.v1.AnswerResponseDoneStage done = 4 [json_name = "done"]; - bool has_done() const; - private: - bool _internal_has_done() const; + // implements Message ---------------------------------------------- + OptionalWebRTCConfigRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const OptionalWebRTCConfigRequest& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const OptionalWebRTCConfigRequest& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); + } public: - void clear_done() ; - const ::proto::rpc::webrtc::v1::AnswerResponseDoneStage& done() const; - PROTOBUF_NODISCARD ::proto::rpc::webrtc::v1::AnswerResponseDoneStage* release_done(); - ::proto::rpc::webrtc::v1::AnswerResponseDoneStage* mutable_done(); - void set_allocated_done(::proto::rpc::webrtc::v1::AnswerResponseDoneStage* value); - void unsafe_arena_set_allocated_done(::proto::rpc::webrtc::v1::AnswerResponseDoneStage* value); - ::proto::rpc::webrtc::v1::AnswerResponseDoneStage* unsafe_arena_release_done(); private: - const ::proto::rpc::webrtc::v1::AnswerResponseDoneStage& _internal_done() const; - ::proto::rpc::webrtc::v1::AnswerResponseDoneStage* _internal_mutable_done(); - + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.rpc.webrtc.v1.OptionalWebRTCConfigRequest"; + } + protected: + explicit OptionalWebRTCConfigRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - // .proto.rpc.webrtc.v1.AnswerResponseErrorStage error = 5 [json_name = "error"]; - bool has_error() const; - private: - bool _internal_has_error() const; - public: - void clear_error() ; - const ::proto::rpc::webrtc::v1::AnswerResponseErrorStage& error() const; - PROTOBUF_NODISCARD ::proto::rpc::webrtc::v1::AnswerResponseErrorStage* release_error(); - ::proto::rpc::webrtc::v1::AnswerResponseErrorStage* mutable_error(); - void set_allocated_error(::proto::rpc::webrtc::v1::AnswerResponseErrorStage* value); - void unsafe_arena_set_allocated_error(::proto::rpc::webrtc::v1::AnswerResponseErrorStage* value); - ::proto::rpc::webrtc::v1::AnswerResponseErrorStage* unsafe_arena_release_error(); + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - private: - const ::proto::rpc::webrtc::v1::AnswerResponseErrorStage& _internal_error() const; - ::proto::rpc::webrtc::v1::AnswerResponseErrorStage* _internal_mutable_error(); + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - public: - void clear_stage(); - StageCase stage_case() const; - // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.AnswerResponse) + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.OptionalWebRTCConfigRequest) private: class _Internal; - void set_has_init(); - void set_has_update(); - void set_has_done(); - void set_has_error(); - inline bool has_stage() const; - inline void clear_has_stage(); - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 5, 4, - 47, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr uuid_; - union StageUnion { - constexpr StageUnion() : _constinit_{} {} - ::google::protobuf::internal::ConstantInitialized _constinit_; - ::proto::rpc::webrtc::v1::AnswerResponseInitStage* init_; - ::proto::rpc::webrtc::v1::AnswerResponseUpdateStage* update_; - ::proto::rpc::webrtc::v1::AnswerResponseDoneStage* done_; - ::proto::rpc::webrtc::v1::AnswerResponseErrorStage* error_; - } stage_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t _oneof_case_[1]; - - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class AnswerRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.AnswerRequest) */ { +class OptionalWebRTCConfigResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.rpc.webrtc.v1.OptionalWebRTCConfigResponse) */ { public: - inline AnswerRequest() : AnswerRequest(nullptr) {} - ~AnswerRequest() override; - template - explicit PROTOBUF_CONSTEXPR AnswerRequest(::google::protobuf::internal::ConstantInitialized); + inline OptionalWebRTCConfigResponse() : OptionalWebRTCConfigResponse(nullptr) {} + ~OptionalWebRTCConfigResponse() override; + explicit PROTOBUF_CONSTEXPR OptionalWebRTCConfigResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline AnswerRequest(const AnswerRequest& from) - : AnswerRequest(nullptr, from) {} - AnswerRequest(AnswerRequest&& from) noexcept - : AnswerRequest() { + OptionalWebRTCConfigResponse(const OptionalWebRTCConfigResponse& from); + OptionalWebRTCConfigResponse(OptionalWebRTCConfigResponse&& from) noexcept + : OptionalWebRTCConfigResponse() { *this = ::std::move(from); } - inline AnswerRequest& operator=(const AnswerRequest& from) { + inline OptionalWebRTCConfigResponse& operator=(const OptionalWebRTCConfigResponse& from) { CopyFrom(from); return *this; } - inline AnswerRequest& operator=(AnswerRequest&& from) noexcept { + inline OptionalWebRTCConfigResponse& operator=(OptionalWebRTCConfigResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -4162,520 +3680,347 @@ class AnswerRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const AnswerRequest& default_instance() { + static const OptionalWebRTCConfigResponse& default_instance() { return *internal_default_instance(); } - enum StageCase { - kInit = 2, - kUpdate = 3, - kDone = 4, - kError = 5, - kHeartbeat = 6, - STAGE_NOT_SET = 0, - }; - - static inline const AnswerRequest* internal_default_instance() { - return reinterpret_cast( - &_AnswerRequest_default_instance_); + static inline const OptionalWebRTCConfigResponse* internal_default_instance() { + return reinterpret_cast( + &_OptionalWebRTCConfigResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 14; + 21; - friend void swap(AnswerRequest& a, AnswerRequest& b) { + friend void swap(OptionalWebRTCConfigResponse& a, OptionalWebRTCConfigResponse& b) { a.Swap(&b); } - inline void Swap(AnswerRequest* other) { + inline void Swap(OptionalWebRTCConfigResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(AnswerRequest* other) { + void UnsafeArenaSwap(OptionalWebRTCConfigResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - AnswerRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const AnswerRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const AnswerRequest& from) { - AnswerRequest::MergeImpl(*this, from); + OptionalWebRTCConfigResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const OptionalWebRTCConfigResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const OptionalWebRTCConfigResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(AnswerRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(OptionalWebRTCConfigResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "proto.rpc.webrtc.v1.AnswerRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.rpc.webrtc.v1.OptionalWebRTCConfigResponse"; } protected: - explicit AnswerRequest(::google::protobuf::Arena* arena); - AnswerRequest(::google::protobuf::Arena* arena, const AnswerRequest& from); + explicit OptionalWebRTCConfigResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kUuidFieldNumber = 1, - kInitFieldNumber = 2, - kUpdateFieldNumber = 3, - kDoneFieldNumber = 4, - kErrorFieldNumber = 5, - kHeartbeatFieldNumber = 6, + kConfigFieldNumber = 1, }; - // string uuid = 1 [json_name = "uuid"]; - void clear_uuid() ; - const std::string& uuid() const; - template - void set_uuid(Arg_&& arg, Args_... args); - std::string* mutable_uuid(); - PROTOBUF_NODISCARD std::string* release_uuid(); - void set_allocated_uuid(std::string* value); - - private: - const std::string& _internal_uuid() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_uuid( - const std::string& value); - std::string* _internal_mutable_uuid(); - - public: - // .proto.rpc.webrtc.v1.AnswerRequestInitStage init = 2 [json_name = "init"]; - bool has_init() const; - private: - bool _internal_has_init() const; - - public: - void clear_init() ; - const ::proto::rpc::webrtc::v1::AnswerRequestInitStage& init() const; - PROTOBUF_NODISCARD ::proto::rpc::webrtc::v1::AnswerRequestInitStage* release_init(); - ::proto::rpc::webrtc::v1::AnswerRequestInitStage* mutable_init(); - void set_allocated_init(::proto::rpc::webrtc::v1::AnswerRequestInitStage* value); - void unsafe_arena_set_allocated_init(::proto::rpc::webrtc::v1::AnswerRequestInitStage* value); - ::proto::rpc::webrtc::v1::AnswerRequestInitStage* unsafe_arena_release_init(); - - private: - const ::proto::rpc::webrtc::v1::AnswerRequestInitStage& _internal_init() const; - ::proto::rpc::webrtc::v1::AnswerRequestInitStage* _internal_mutable_init(); - - public: - // .proto.rpc.webrtc.v1.AnswerRequestUpdateStage update = 3 [json_name = "update"]; - bool has_update() const; - private: - bool _internal_has_update() const; - - public: - void clear_update() ; - const ::proto::rpc::webrtc::v1::AnswerRequestUpdateStage& update() const; - PROTOBUF_NODISCARD ::proto::rpc::webrtc::v1::AnswerRequestUpdateStage* release_update(); - ::proto::rpc::webrtc::v1::AnswerRequestUpdateStage* mutable_update(); - void set_allocated_update(::proto::rpc::webrtc::v1::AnswerRequestUpdateStage* value); - void unsafe_arena_set_allocated_update(::proto::rpc::webrtc::v1::AnswerRequestUpdateStage* value); - ::proto::rpc::webrtc::v1::AnswerRequestUpdateStage* unsafe_arena_release_update(); - - private: - const ::proto::rpc::webrtc::v1::AnswerRequestUpdateStage& _internal_update() const; - ::proto::rpc::webrtc::v1::AnswerRequestUpdateStage* _internal_mutable_update(); - - public: - // .proto.rpc.webrtc.v1.AnswerRequestDoneStage done = 4 [json_name = "done"]; - bool has_done() const; - private: - bool _internal_has_done() const; - - public: - void clear_done() ; - const ::proto::rpc::webrtc::v1::AnswerRequestDoneStage& done() const; - PROTOBUF_NODISCARD ::proto::rpc::webrtc::v1::AnswerRequestDoneStage* release_done(); - ::proto::rpc::webrtc::v1::AnswerRequestDoneStage* mutable_done(); - void set_allocated_done(::proto::rpc::webrtc::v1::AnswerRequestDoneStage* value); - void unsafe_arena_set_allocated_done(::proto::rpc::webrtc::v1::AnswerRequestDoneStage* value); - ::proto::rpc::webrtc::v1::AnswerRequestDoneStage* unsafe_arena_release_done(); - - private: - const ::proto::rpc::webrtc::v1::AnswerRequestDoneStage& _internal_done() const; - ::proto::rpc::webrtc::v1::AnswerRequestDoneStage* _internal_mutable_done(); - - public: - // .proto.rpc.webrtc.v1.AnswerRequestErrorStage error = 5 [json_name = "error"]; - bool has_error() const; - private: - bool _internal_has_error() const; - - public: - void clear_error() ; - const ::proto::rpc::webrtc::v1::AnswerRequestErrorStage& error() const; - PROTOBUF_NODISCARD ::proto::rpc::webrtc::v1::AnswerRequestErrorStage* release_error(); - ::proto::rpc::webrtc::v1::AnswerRequestErrorStage* mutable_error(); - void set_allocated_error(::proto::rpc::webrtc::v1::AnswerRequestErrorStage* value); - void unsafe_arena_set_allocated_error(::proto::rpc::webrtc::v1::AnswerRequestErrorStage* value); - ::proto::rpc::webrtc::v1::AnswerRequestErrorStage* unsafe_arena_release_error(); - + // .proto.rpc.webrtc.v1.WebRTCConfig config = 1 [json_name = "config"]; + bool has_config() const; private: - const ::proto::rpc::webrtc::v1::AnswerRequestErrorStage& _internal_error() const; - ::proto::rpc::webrtc::v1::AnswerRequestErrorStage* _internal_mutable_error(); - + bool _internal_has_config() const; public: - // .proto.rpc.webrtc.v1.AnswerRequestHeartbeatStage heartbeat = 6 [json_name = "heartbeat"]; - bool has_heartbeat() const; + void clear_config(); + const ::proto::rpc::webrtc::v1::WebRTCConfig& config() const; + PROTOBUF_NODISCARD ::proto::rpc::webrtc::v1::WebRTCConfig* release_config(); + ::proto::rpc::webrtc::v1::WebRTCConfig* mutable_config(); + void set_allocated_config(::proto::rpc::webrtc::v1::WebRTCConfig* config); private: - bool _internal_has_heartbeat() const; - + const ::proto::rpc::webrtc::v1::WebRTCConfig& _internal_config() const; + ::proto::rpc::webrtc::v1::WebRTCConfig* _internal_mutable_config(); public: - void clear_heartbeat() ; - const ::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage& heartbeat() const; - PROTOBUF_NODISCARD ::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage* release_heartbeat(); - ::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage* mutable_heartbeat(); - void set_allocated_heartbeat(::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage* value); - void unsafe_arena_set_allocated_heartbeat(::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage* value); - ::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage* unsafe_arena_release_heartbeat(); - - private: - const ::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage& _internal_heartbeat() const; - ::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage* _internal_mutable_heartbeat(); + void unsafe_arena_set_allocated_config( + ::proto::rpc::webrtc::v1::WebRTCConfig* config); + ::proto::rpc::webrtc::v1::WebRTCConfig* unsafe_arena_release_config(); - public: - void clear_stage(); - StageCase stage_case() const; - // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.AnswerRequest) + // @@protoc_insertion_point(class_scope:proto.rpc.webrtc.v1.OptionalWebRTCConfigResponse) private: class _Internal; - void set_has_init(); - void set_has_update(); - void set_has_done(); - void set_has_error(); - void set_has_heartbeat(); - - inline bool has_stage() const; - inline void clear_has_stage(); - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 6, 5, - 46, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr uuid_; - union StageUnion { - constexpr StageUnion() : _constinit_{} {} - ::google::protobuf::internal::ConstantInitialized _constinit_; - ::proto::rpc::webrtc::v1::AnswerRequestInitStage* init_; - ::proto::rpc::webrtc::v1::AnswerRequestUpdateStage* update_; - ::proto::rpc::webrtc::v1::AnswerRequestDoneStage* done_; - ::proto::rpc::webrtc::v1::AnswerRequestErrorStage* error_; - ::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage* heartbeat_; - } stage_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t _oneof_case_[1]; - - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::proto::rpc::webrtc::v1::WebRTCConfig* config_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto; }; - // =================================================================== - - // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ -// ------------------------------------------------------------------- - // ICECandidate // string candidate = 1 [json_name = "candidate"]; inline void ICECandidate::clear_candidate() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.candidate_.ClearToEmpty(); + candidate_.ClearToEmpty(); } -inline const std::string& ICECandidate::candidate() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ICECandidate::candidate() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.ICECandidate.candidate) return _internal_candidate(); } -template -inline PROTOBUF_ALWAYS_INLINE void ICECandidate::set_candidate(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.candidate_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ICECandidate::set_candidate(ArgT0&& arg0, ArgT... args) { + + candidate_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.rpc.webrtc.v1.ICECandidate.candidate) } -inline std::string* ICECandidate::mutable_candidate() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ICECandidate::mutable_candidate() { std::string* _s = _internal_mutable_candidate(); // @@protoc_insertion_point(field_mutable:proto.rpc.webrtc.v1.ICECandidate.candidate) return _s; } inline const std::string& ICECandidate::_internal_candidate() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.candidate_.Get(); + return candidate_.Get(); } inline void ICECandidate::_internal_set_candidate(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.candidate_.Set(value, GetArena()); + + candidate_.Set(value, GetArenaForAllocation()); } inline std::string* ICECandidate::_internal_mutable_candidate() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.candidate_.Mutable( GetArena()); + + return candidate_.Mutable(GetArenaForAllocation()); } inline std::string* ICECandidate::release_candidate() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:proto.rpc.webrtc.v1.ICECandidate.candidate) - return _impl_.candidate_.Release(); -} -inline void ICECandidate::set_allocated_candidate(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.candidate_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.candidate_.IsDefault()) { - _impl_.candidate_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return candidate_.Release(); +} +inline void ICECandidate::set_allocated_candidate(std::string* candidate) { + if (candidate != nullptr) { + + } else { + + } + candidate_.SetAllocated(candidate, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (candidate_.IsDefault()) { + candidate_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:proto.rpc.webrtc.v1.ICECandidate.candidate) } // optional string sdp_mid = 2 [json_name = "sdpMid"]; -inline bool ICECandidate::has_sdp_mid() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; +inline bool ICECandidate::_internal_has_sdp_mid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; return value; } +inline bool ICECandidate::has_sdp_mid() const { + return _internal_has_sdp_mid(); +} inline void ICECandidate::clear_sdp_mid() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.sdp_mid_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000001u; + sdp_mid_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; } -inline const std::string& ICECandidate::sdp_mid() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ICECandidate::sdp_mid() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.ICECandidate.sdp_mid) return _internal_sdp_mid(); } -template -inline PROTOBUF_ALWAYS_INLINE void ICECandidate::set_sdp_mid(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.sdp_mid_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ICECandidate::set_sdp_mid(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + sdp_mid_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.rpc.webrtc.v1.ICECandidate.sdp_mid) } -inline std::string* ICECandidate::mutable_sdp_mid() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ICECandidate::mutable_sdp_mid() { std::string* _s = _internal_mutable_sdp_mid(); // @@protoc_insertion_point(field_mutable:proto.rpc.webrtc.v1.ICECandidate.sdp_mid) return _s; } inline const std::string& ICECandidate::_internal_sdp_mid() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.sdp_mid_.Get(); + return sdp_mid_.Get(); } inline void ICECandidate::_internal_set_sdp_mid(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.sdp_mid_.Set(value, GetArena()); + _has_bits_[0] |= 0x00000001u; + sdp_mid_.Set(value, GetArenaForAllocation()); } inline std::string* ICECandidate::_internal_mutable_sdp_mid() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.sdp_mid_.Mutable( GetArena()); + _has_bits_[0] |= 0x00000001u; + return sdp_mid_.Mutable(GetArenaForAllocation()); } inline std::string* ICECandidate::release_sdp_mid() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:proto.rpc.webrtc.v1.ICECandidate.sdp_mid) - if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + if (!_internal_has_sdp_mid()) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000001u; - auto* released = _impl_.sdp_mid_.Release(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.sdp_mid_.Set("", GetArena()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return released; -} -inline void ICECandidate::set_allocated_sdp_mid(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + _has_bits_[0] &= ~0x00000001u; + auto* p = sdp_mid_.Release(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (sdp_mid_.IsDefault()) { + sdp_mid_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; +} +inline void ICECandidate::set_allocated_sdp_mid(std::string* sdp_mid) { + if (sdp_mid != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - _impl_.sdp_mid_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.sdp_mid_.IsDefault()) { - _impl_.sdp_mid_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _has_bits_[0] &= ~0x00000001u; + } + sdp_mid_.SetAllocated(sdp_mid, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (sdp_mid_.IsDefault()) { + sdp_mid_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:proto.rpc.webrtc.v1.ICECandidate.sdp_mid) } // optional uint32 sdpm_line_index = 3 [json_name = "sdpmLineIndex"]; -inline bool ICECandidate::has_sdpm_line_index() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; +inline bool ICECandidate::_internal_has_sdpm_line_index() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; return value; } +inline bool ICECandidate::has_sdpm_line_index() const { + return _internal_has_sdpm_line_index(); +} inline void ICECandidate::clear_sdpm_line_index() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.sdpm_line_index_ = 0u; - _impl_._has_bits_[0] &= ~0x00000004u; + sdpm_line_index_ = 0u; + _has_bits_[0] &= ~0x00000004u; } -inline ::uint32_t ICECandidate::sdpm_line_index() const { +inline uint32_t ICECandidate::_internal_sdpm_line_index() const { + return sdpm_line_index_; +} +inline uint32_t ICECandidate::sdpm_line_index() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.ICECandidate.sdpm_line_index) return _internal_sdpm_line_index(); } -inline void ICECandidate::set_sdpm_line_index(::uint32_t value) { +inline void ICECandidate::_internal_set_sdpm_line_index(uint32_t value) { + _has_bits_[0] |= 0x00000004u; + sdpm_line_index_ = value; +} +inline void ICECandidate::set_sdpm_line_index(uint32_t value) { _internal_set_sdpm_line_index(value); // @@protoc_insertion_point(field_set:proto.rpc.webrtc.v1.ICECandidate.sdpm_line_index) } -inline ::uint32_t ICECandidate::_internal_sdpm_line_index() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.sdpm_line_index_; -} -inline void ICECandidate::_internal_set_sdpm_line_index(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - _impl_.sdpm_line_index_ = value; -} // optional string username_fragment = 4 [json_name = "usernameFragment"]; -inline bool ICECandidate::has_username_fragment() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; +inline bool ICECandidate::_internal_has_username_fragment() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; return value; } +inline bool ICECandidate::has_username_fragment() const { + return _internal_has_username_fragment(); +} inline void ICECandidate::clear_username_fragment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.username_fragment_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000002u; + username_fragment_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000002u; } -inline const std::string& ICECandidate::username_fragment() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ICECandidate::username_fragment() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.ICECandidate.username_fragment) return _internal_username_fragment(); } -template -inline PROTOBUF_ALWAYS_INLINE void ICECandidate::set_username_fragment(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.username_fragment_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ICECandidate::set_username_fragment(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000002u; + username_fragment_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.rpc.webrtc.v1.ICECandidate.username_fragment) } -inline std::string* ICECandidate::mutable_username_fragment() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ICECandidate::mutable_username_fragment() { std::string* _s = _internal_mutable_username_fragment(); // @@protoc_insertion_point(field_mutable:proto.rpc.webrtc.v1.ICECandidate.username_fragment) return _s; } inline const std::string& ICECandidate::_internal_username_fragment() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.username_fragment_.Get(); + return username_fragment_.Get(); } inline void ICECandidate::_internal_set_username_fragment(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.username_fragment_.Set(value, GetArena()); + _has_bits_[0] |= 0x00000002u; + username_fragment_.Set(value, GetArenaForAllocation()); } inline std::string* ICECandidate::_internal_mutable_username_fragment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - return _impl_.username_fragment_.Mutable( GetArena()); + _has_bits_[0] |= 0x00000002u; + return username_fragment_.Mutable(GetArenaForAllocation()); } inline std::string* ICECandidate::release_username_fragment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:proto.rpc.webrtc.v1.ICECandidate.username_fragment) - if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { + if (!_internal_has_username_fragment()) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000002u; - auto* released = _impl_.username_fragment_.Release(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.username_fragment_.Set("", GetArena()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return released; -} -inline void ICECandidate::set_allocated_username_fragment(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + _has_bits_[0] &= ~0x00000002u; + auto* p = username_fragment_.Release(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (username_fragment_.IsDefault()) { + username_fragment_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; +} +inline void ICECandidate::set_allocated_username_fragment(std::string* username_fragment) { + if (username_fragment != nullptr) { + _has_bits_[0] |= 0x00000002u; } else { - _impl_._has_bits_[0] &= ~0x00000002u; - } - _impl_.username_fragment_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.username_fragment_.IsDefault()) { - _impl_.username_fragment_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _has_bits_[0] &= ~0x00000002u; + } + username_fragment_.SetAllocated(username_fragment, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (username_fragment_.IsDefault()) { + username_fragment_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:proto.rpc.webrtc.v1.ICECandidate.username_fragment) } @@ -4685,79 +4030,73 @@ inline void ICECandidate::set_allocated_username_fragment(std::string* value) { // string sdp = 1 [json_name = "sdp"]; inline void CallRequest::clear_sdp() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.sdp_.ClearToEmpty(); + sdp_.ClearToEmpty(); } -inline const std::string& CallRequest::sdp() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& CallRequest::sdp() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.CallRequest.sdp) return _internal_sdp(); } -template -inline PROTOBUF_ALWAYS_INLINE void CallRequest::set_sdp(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.sdp_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void CallRequest::set_sdp(ArgT0&& arg0, ArgT... args) { + + sdp_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.rpc.webrtc.v1.CallRequest.sdp) } -inline std::string* CallRequest::mutable_sdp() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* CallRequest::mutable_sdp() { std::string* _s = _internal_mutable_sdp(); // @@protoc_insertion_point(field_mutable:proto.rpc.webrtc.v1.CallRequest.sdp) return _s; } inline const std::string& CallRequest::_internal_sdp() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.sdp_.Get(); + return sdp_.Get(); } inline void CallRequest::_internal_set_sdp(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.sdp_.Set(value, GetArena()); + + sdp_.Set(value, GetArenaForAllocation()); } inline std::string* CallRequest::_internal_mutable_sdp() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.sdp_.Mutable( GetArena()); + + return sdp_.Mutable(GetArenaForAllocation()); } inline std::string* CallRequest::release_sdp() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:proto.rpc.webrtc.v1.CallRequest.sdp) - return _impl_.sdp_.Release(); -} -inline void CallRequest::set_allocated_sdp(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.sdp_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.sdp_.IsDefault()) { - _impl_.sdp_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return sdp_.Release(); +} +inline void CallRequest::set_allocated_sdp(std::string* sdp) { + if (sdp != nullptr) { + + } else { + + } + sdp_.SetAllocated(sdp, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (sdp_.IsDefault()) { + sdp_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:proto.rpc.webrtc.v1.CallRequest.sdp) } // bool disable_trickle = 2 [json_name = "disableTrickle"]; inline void CallRequest::clear_disable_trickle() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.disable_trickle_ = false; + disable_trickle_ = false; +} +inline bool CallRequest::_internal_disable_trickle() const { + return disable_trickle_; } inline bool CallRequest::disable_trickle() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.CallRequest.disable_trickle) return _internal_disable_trickle(); } +inline void CallRequest::_internal_set_disable_trickle(bool value) { + + disable_trickle_ = value; +} inline void CallRequest::set_disable_trickle(bool value) { _internal_set_disable_trickle(value); // @@protoc_insertion_point(field_set:proto.rpc.webrtc.v1.CallRequest.disable_trickle) } -inline bool CallRequest::_internal_disable_trickle() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.disable_trickle_; -} -inline void CallRequest::_internal_set_disable_trickle(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.disable_trickle_ = value; -} // ------------------------------------------------------------------- @@ -4765,54 +4104,51 @@ inline void CallRequest::_internal_set_disable_trickle(bool value) { // string sdp = 1 [json_name = "sdp"]; inline void CallResponseInitStage::clear_sdp() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.sdp_.ClearToEmpty(); + sdp_.ClearToEmpty(); } -inline const std::string& CallResponseInitStage::sdp() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& CallResponseInitStage::sdp() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.CallResponseInitStage.sdp) return _internal_sdp(); } -template -inline PROTOBUF_ALWAYS_INLINE void CallResponseInitStage::set_sdp(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.sdp_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void CallResponseInitStage::set_sdp(ArgT0&& arg0, ArgT... args) { + + sdp_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.rpc.webrtc.v1.CallResponseInitStage.sdp) } -inline std::string* CallResponseInitStage::mutable_sdp() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* CallResponseInitStage::mutable_sdp() { std::string* _s = _internal_mutable_sdp(); // @@protoc_insertion_point(field_mutable:proto.rpc.webrtc.v1.CallResponseInitStage.sdp) return _s; } inline const std::string& CallResponseInitStage::_internal_sdp() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.sdp_.Get(); + return sdp_.Get(); } inline void CallResponseInitStage::_internal_set_sdp(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.sdp_.Set(value, GetArena()); + + sdp_.Set(value, GetArenaForAllocation()); } inline std::string* CallResponseInitStage::_internal_mutable_sdp() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.sdp_.Mutable( GetArena()); + + return sdp_.Mutable(GetArenaForAllocation()); } inline std::string* CallResponseInitStage::release_sdp() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:proto.rpc.webrtc.v1.CallResponseInitStage.sdp) - return _impl_.sdp_.Release(); -} -inline void CallResponseInitStage::set_allocated_sdp(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.sdp_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.sdp_.IsDefault()) { - _impl_.sdp_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return sdp_.Release(); +} +inline void CallResponseInitStage::set_allocated_sdp(std::string* sdp) { + if (sdp != nullptr) { + + } else { + + } + sdp_.SetAllocated(sdp, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (sdp_.IsDefault()) { + sdp_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:proto.rpc.webrtc.v1.CallResponseInitStage.sdp) } @@ -4821,98 +4157,92 @@ inline void CallResponseInitStage::set_allocated_sdp(std::string* value) { // CallResponseUpdateStage // .proto.rpc.webrtc.v1.ICECandidate candidate = 1 [json_name = "candidate"]; +inline bool CallResponseUpdateStage::_internal_has_candidate() const { + return this != internal_default_instance() && candidate_ != nullptr; +} inline bool CallResponseUpdateStage::has_candidate() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.candidate_ != nullptr); - return value; + return _internal_has_candidate(); } inline void CallResponseUpdateStage::clear_candidate() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.candidate_ != nullptr) _impl_.candidate_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && candidate_ != nullptr) { + delete candidate_; + } + candidate_ = nullptr; } inline const ::proto::rpc::webrtc::v1::ICECandidate& CallResponseUpdateStage::_internal_candidate() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::proto::rpc::webrtc::v1::ICECandidate* p = _impl_.candidate_; - return p != nullptr ? *p : reinterpret_cast(::proto::rpc::webrtc::v1::_ICECandidate_default_instance_); + const ::proto::rpc::webrtc::v1::ICECandidate* p = candidate_; + return p != nullptr ? *p : reinterpret_cast( + ::proto::rpc::webrtc::v1::_ICECandidate_default_instance_); } -inline const ::proto::rpc::webrtc::v1::ICECandidate& CallResponseUpdateStage::candidate() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::proto::rpc::webrtc::v1::ICECandidate& CallResponseUpdateStage::candidate() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.CallResponseUpdateStage.candidate) return _internal_candidate(); } -inline void CallResponseUpdateStage::unsafe_arena_set_allocated_candidate(::proto::rpc::webrtc::v1::ICECandidate* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.candidate_); +inline void CallResponseUpdateStage::unsafe_arena_set_allocated_candidate( + ::proto::rpc::webrtc::v1::ICECandidate* candidate) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(candidate_); } - _impl_.candidate_ = reinterpret_cast<::proto::rpc::webrtc::v1::ICECandidate*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + candidate_ = candidate; + if (candidate) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.rpc.webrtc.v1.CallResponseUpdateStage.candidate) } inline ::proto::rpc::webrtc::v1::ICECandidate* CallResponseUpdateStage::release_candidate() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::proto::rpc::webrtc::v1::ICECandidate* released = _impl_.candidate_; - _impl_.candidate_ = nullptr; + + ::proto::rpc::webrtc::v1::ICECandidate* temp = candidate_; + candidate_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::proto::rpc::webrtc::v1::ICECandidate* CallResponseUpdateStage::unsafe_arena_release_candidate() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:proto.rpc.webrtc.v1.CallResponseUpdateStage.candidate) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::proto::rpc::webrtc::v1::ICECandidate* temp = _impl_.candidate_; - _impl_.candidate_ = nullptr; + + ::proto::rpc::webrtc::v1::ICECandidate* temp = candidate_; + candidate_ = nullptr; return temp; } inline ::proto::rpc::webrtc::v1::ICECandidate* CallResponseUpdateStage::_internal_mutable_candidate() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.candidate_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::rpc::webrtc::v1::ICECandidate>(GetArena()); - _impl_.candidate_ = reinterpret_cast<::proto::rpc::webrtc::v1::ICECandidate*>(p); + + if (candidate_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::rpc::webrtc::v1::ICECandidate>(GetArenaForAllocation()); + candidate_ = p; } - return _impl_.candidate_; + return candidate_; } -inline ::proto::rpc::webrtc::v1::ICECandidate* CallResponseUpdateStage::mutable_candidate() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::proto::rpc::webrtc::v1::ICECandidate* CallResponseUpdateStage::mutable_candidate() { ::proto::rpc::webrtc::v1::ICECandidate* _msg = _internal_mutable_candidate(); // @@protoc_insertion_point(field_mutable:proto.rpc.webrtc.v1.CallResponseUpdateStage.candidate) return _msg; } -inline void CallResponseUpdateStage::set_allocated_candidate(::proto::rpc::webrtc::v1::ICECandidate* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void CallResponseUpdateStage::set_allocated_candidate(::proto::rpc::webrtc::v1::ICECandidate* candidate) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::proto::rpc::webrtc::v1::ICECandidate*>(_impl_.candidate_); + delete candidate_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::proto::rpc::webrtc::v1::ICECandidate*>(value)->GetArena(); + if (candidate) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(candidate); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + candidate = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, candidate, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.candidate_ = reinterpret_cast<::proto::rpc::webrtc::v1::ICECandidate*>(value); + candidate_ = candidate; // @@protoc_insertion_point(field_set_allocated:proto.rpc.webrtc.v1.CallResponseUpdateStage.candidate) } @@ -4922,204 +4252,197 @@ inline void CallResponseUpdateStage::set_allocated_candidate(::proto::rpc::webrt // string uuid = 1 [json_name = "uuid"]; inline void CallResponse::clear_uuid() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.uuid_.ClearToEmpty(); + uuid_.ClearToEmpty(); } -inline const std::string& CallResponse::uuid() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& CallResponse::uuid() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.CallResponse.uuid) return _internal_uuid(); } -template -inline PROTOBUF_ALWAYS_INLINE void CallResponse::set_uuid(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.uuid_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void CallResponse::set_uuid(ArgT0&& arg0, ArgT... args) { + + uuid_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.rpc.webrtc.v1.CallResponse.uuid) } -inline std::string* CallResponse::mutable_uuid() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* CallResponse::mutable_uuid() { std::string* _s = _internal_mutable_uuid(); // @@protoc_insertion_point(field_mutable:proto.rpc.webrtc.v1.CallResponse.uuid) return _s; } inline const std::string& CallResponse::_internal_uuid() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.uuid_.Get(); + return uuid_.Get(); } inline void CallResponse::_internal_set_uuid(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.uuid_.Set(value, GetArena()); + + uuid_.Set(value, GetArenaForAllocation()); } inline std::string* CallResponse::_internal_mutable_uuid() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.uuid_.Mutable( GetArena()); + + return uuid_.Mutable(GetArenaForAllocation()); } inline std::string* CallResponse::release_uuid() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:proto.rpc.webrtc.v1.CallResponse.uuid) - return _impl_.uuid_.Release(); -} -inline void CallResponse::set_allocated_uuid(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.uuid_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.uuid_.IsDefault()) { - _impl_.uuid_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return uuid_.Release(); +} +inline void CallResponse::set_allocated_uuid(std::string* uuid) { + if (uuid != nullptr) { + + } else { + + } + uuid_.SetAllocated(uuid, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (uuid_.IsDefault()) { + uuid_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:proto.rpc.webrtc.v1.CallResponse.uuid) } // .proto.rpc.webrtc.v1.CallResponseInitStage init = 2 [json_name = "init"]; -inline bool CallResponse::has_init() const { - return stage_case() == kInit; -} inline bool CallResponse::_internal_has_init() const { return stage_case() == kInit; } +inline bool CallResponse::has_init() const { + return _internal_has_init(); +} inline void CallResponse::set_has_init() { - _impl_._oneof_case_[0] = kInit; + _oneof_case_[0] = kInit; } inline void CallResponse::clear_init() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (stage_case() == kInit) { - if (GetArena() == nullptr) { - delete _impl_.stage_.init_; + if (_internal_has_init()) { + if (GetArenaForAllocation() == nullptr) { + delete stage_.init_; } clear_has_stage(); } } inline ::proto::rpc::webrtc::v1::CallResponseInitStage* CallResponse::release_init() { // @@protoc_insertion_point(field_release:proto.rpc.webrtc.v1.CallResponse.init) - if (stage_case() == kInit) { + if (_internal_has_init()) { clear_has_stage(); - auto* temp = _impl_.stage_.init_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::proto::rpc::webrtc::v1::CallResponseInitStage* temp = stage_.init_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.stage_.init_ = nullptr; + stage_.init_ = nullptr; return temp; } else { return nullptr; } } inline const ::proto::rpc::webrtc::v1::CallResponseInitStage& CallResponse::_internal_init() const { - return stage_case() == kInit ? *_impl_.stage_.init_ : reinterpret_cast<::proto::rpc::webrtc::v1::CallResponseInitStage&>(::proto::rpc::webrtc::v1::_CallResponseInitStage_default_instance_); + return _internal_has_init() + ? *stage_.init_ + : reinterpret_cast< ::proto::rpc::webrtc::v1::CallResponseInitStage&>(::proto::rpc::webrtc::v1::_CallResponseInitStage_default_instance_); } -inline const ::proto::rpc::webrtc::v1::CallResponseInitStage& CallResponse::init() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::proto::rpc::webrtc::v1::CallResponseInitStage& CallResponse::init() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.CallResponse.init) return _internal_init(); } inline ::proto::rpc::webrtc::v1::CallResponseInitStage* CallResponse::unsafe_arena_release_init() { // @@protoc_insertion_point(field_unsafe_arena_release:proto.rpc.webrtc.v1.CallResponse.init) - if (stage_case() == kInit) { + if (_internal_has_init()) { clear_has_stage(); - auto* temp = _impl_.stage_.init_; - _impl_.stage_.init_ = nullptr; + ::proto::rpc::webrtc::v1::CallResponseInitStage* temp = stage_.init_; + stage_.init_ = nullptr; return temp; } else { return nullptr; } } -inline void CallResponse::unsafe_arena_set_allocated_init(::proto::rpc::webrtc::v1::CallResponseInitStage* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void CallResponse::unsafe_arena_set_allocated_init(::proto::rpc::webrtc::v1::CallResponseInitStage* init) { clear_stage(); - if (value) { + if (init) { set_has_init(); - _impl_.stage_.init_ = value; + stage_.init_ = init; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.rpc.webrtc.v1.CallResponse.init) } inline ::proto::rpc::webrtc::v1::CallResponseInitStage* CallResponse::_internal_mutable_init() { - if (stage_case() != kInit) { + if (!_internal_has_init()) { clear_stage(); set_has_init(); - _impl_.stage_.init_ = CreateMaybeMessage<::proto::rpc::webrtc::v1::CallResponseInitStage>(GetArena()); + stage_.init_ = CreateMaybeMessage< ::proto::rpc::webrtc::v1::CallResponseInitStage >(GetArenaForAllocation()); } - return _impl_.stage_.init_; + return stage_.init_; } -inline ::proto::rpc::webrtc::v1::CallResponseInitStage* CallResponse::mutable_init() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::proto::rpc::webrtc::v1::CallResponseInitStage* CallResponse::mutable_init() { ::proto::rpc::webrtc::v1::CallResponseInitStage* _msg = _internal_mutable_init(); // @@protoc_insertion_point(field_mutable:proto.rpc.webrtc.v1.CallResponse.init) return _msg; } // .proto.rpc.webrtc.v1.CallResponseUpdateStage update = 3 [json_name = "update"]; -inline bool CallResponse::has_update() const { - return stage_case() == kUpdate; -} inline bool CallResponse::_internal_has_update() const { return stage_case() == kUpdate; } +inline bool CallResponse::has_update() const { + return _internal_has_update(); +} inline void CallResponse::set_has_update() { - _impl_._oneof_case_[0] = kUpdate; + _oneof_case_[0] = kUpdate; } inline void CallResponse::clear_update() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (stage_case() == kUpdate) { - if (GetArena() == nullptr) { - delete _impl_.stage_.update_; + if (_internal_has_update()) { + if (GetArenaForAllocation() == nullptr) { + delete stage_.update_; } clear_has_stage(); } } inline ::proto::rpc::webrtc::v1::CallResponseUpdateStage* CallResponse::release_update() { // @@protoc_insertion_point(field_release:proto.rpc.webrtc.v1.CallResponse.update) - if (stage_case() == kUpdate) { + if (_internal_has_update()) { clear_has_stage(); - auto* temp = _impl_.stage_.update_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::proto::rpc::webrtc::v1::CallResponseUpdateStage* temp = stage_.update_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.stage_.update_ = nullptr; + stage_.update_ = nullptr; return temp; } else { return nullptr; } } inline const ::proto::rpc::webrtc::v1::CallResponseUpdateStage& CallResponse::_internal_update() const { - return stage_case() == kUpdate ? *_impl_.stage_.update_ : reinterpret_cast<::proto::rpc::webrtc::v1::CallResponseUpdateStage&>(::proto::rpc::webrtc::v1::_CallResponseUpdateStage_default_instance_); + return _internal_has_update() + ? *stage_.update_ + : reinterpret_cast< ::proto::rpc::webrtc::v1::CallResponseUpdateStage&>(::proto::rpc::webrtc::v1::_CallResponseUpdateStage_default_instance_); } -inline const ::proto::rpc::webrtc::v1::CallResponseUpdateStage& CallResponse::update() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::proto::rpc::webrtc::v1::CallResponseUpdateStage& CallResponse::update() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.CallResponse.update) return _internal_update(); } inline ::proto::rpc::webrtc::v1::CallResponseUpdateStage* CallResponse::unsafe_arena_release_update() { // @@protoc_insertion_point(field_unsafe_arena_release:proto.rpc.webrtc.v1.CallResponse.update) - if (stage_case() == kUpdate) { + if (_internal_has_update()) { clear_has_stage(); - auto* temp = _impl_.stage_.update_; - _impl_.stage_.update_ = nullptr; + ::proto::rpc::webrtc::v1::CallResponseUpdateStage* temp = stage_.update_; + stage_.update_ = nullptr; return temp; } else { return nullptr; } } -inline void CallResponse::unsafe_arena_set_allocated_update(::proto::rpc::webrtc::v1::CallResponseUpdateStage* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void CallResponse::unsafe_arena_set_allocated_update(::proto::rpc::webrtc::v1::CallResponseUpdateStage* update) { clear_stage(); - if (value) { + if (update) { set_has_update(); - _impl_.stage_.update_ = value; + stage_.update_ = update; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.rpc.webrtc.v1.CallResponse.update) } inline ::proto::rpc::webrtc::v1::CallResponseUpdateStage* CallResponse::_internal_mutable_update() { - if (stage_case() != kUpdate) { + if (!_internal_has_update()) { clear_stage(); set_has_update(); - _impl_.stage_.update_ = CreateMaybeMessage<::proto::rpc::webrtc::v1::CallResponseUpdateStage>(GetArena()); + stage_.update_ = CreateMaybeMessage< ::proto::rpc::webrtc::v1::CallResponseUpdateStage >(GetArenaForAllocation()); } - return _impl_.stage_.update_; + return stage_.update_; } -inline ::proto::rpc::webrtc::v1::CallResponseUpdateStage* CallResponse::mutable_update() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::proto::rpc::webrtc::v1::CallResponseUpdateStage* CallResponse::mutable_update() { ::proto::rpc::webrtc::v1::CallResponseUpdateStage* _msg = _internal_mutable_update(); // @@protoc_insertion_point(field_mutable:proto.rpc.webrtc.v1.CallResponse.update) return _msg; @@ -5129,10 +4452,10 @@ inline bool CallResponse::has_stage() const { return stage_case() != STAGE_NOT_SET; } inline void CallResponse::clear_has_stage() { - _impl_._oneof_case_[0] = STAGE_NOT_SET; + _oneof_case_[0] = STAGE_NOT_SET; } inline CallResponse::StageCase CallResponse::stage_case() const { - return CallResponse::StageCase(_impl_._oneof_case_[0]); + return CallResponse::StageCase(_oneof_case_[0]); } // ------------------------------------------------------------------- @@ -5140,231 +4463,227 @@ inline CallResponse::StageCase CallResponse::stage_case() const { // string uuid = 1 [json_name = "uuid"]; inline void CallUpdateRequest::clear_uuid() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.uuid_.ClearToEmpty(); + uuid_.ClearToEmpty(); } -inline const std::string& CallUpdateRequest::uuid() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& CallUpdateRequest::uuid() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.CallUpdateRequest.uuid) return _internal_uuid(); } -template -inline PROTOBUF_ALWAYS_INLINE void CallUpdateRequest::set_uuid(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.uuid_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void CallUpdateRequest::set_uuid(ArgT0&& arg0, ArgT... args) { + + uuid_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.rpc.webrtc.v1.CallUpdateRequest.uuid) } -inline std::string* CallUpdateRequest::mutable_uuid() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* CallUpdateRequest::mutable_uuid() { std::string* _s = _internal_mutable_uuid(); // @@protoc_insertion_point(field_mutable:proto.rpc.webrtc.v1.CallUpdateRequest.uuid) return _s; } inline const std::string& CallUpdateRequest::_internal_uuid() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.uuid_.Get(); + return uuid_.Get(); } inline void CallUpdateRequest::_internal_set_uuid(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.uuid_.Set(value, GetArena()); + + uuid_.Set(value, GetArenaForAllocation()); } inline std::string* CallUpdateRequest::_internal_mutable_uuid() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.uuid_.Mutable( GetArena()); + + return uuid_.Mutable(GetArenaForAllocation()); } inline std::string* CallUpdateRequest::release_uuid() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:proto.rpc.webrtc.v1.CallUpdateRequest.uuid) - return _impl_.uuid_.Release(); -} -inline void CallUpdateRequest::set_allocated_uuid(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.uuid_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.uuid_.IsDefault()) { - _impl_.uuid_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return uuid_.Release(); +} +inline void CallUpdateRequest::set_allocated_uuid(std::string* uuid) { + if (uuid != nullptr) { + + } else { + + } + uuid_.SetAllocated(uuid, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (uuid_.IsDefault()) { + uuid_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:proto.rpc.webrtc.v1.CallUpdateRequest.uuid) } // .proto.rpc.webrtc.v1.ICECandidate candidate = 2 [json_name = "candidate"]; -inline bool CallUpdateRequest::has_candidate() const { - return update_case() == kCandidate; -} inline bool CallUpdateRequest::_internal_has_candidate() const { return update_case() == kCandidate; } +inline bool CallUpdateRequest::has_candidate() const { + return _internal_has_candidate(); +} inline void CallUpdateRequest::set_has_candidate() { - _impl_._oneof_case_[0] = kCandidate; + _oneof_case_[0] = kCandidate; } inline void CallUpdateRequest::clear_candidate() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (update_case() == kCandidate) { - if (GetArena() == nullptr) { - delete _impl_.update_.candidate_; + if (_internal_has_candidate()) { + if (GetArenaForAllocation() == nullptr) { + delete update_.candidate_; } clear_has_update(); } } inline ::proto::rpc::webrtc::v1::ICECandidate* CallUpdateRequest::release_candidate() { // @@protoc_insertion_point(field_release:proto.rpc.webrtc.v1.CallUpdateRequest.candidate) - if (update_case() == kCandidate) { + if (_internal_has_candidate()) { clear_has_update(); - auto* temp = _impl_.update_.candidate_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::proto::rpc::webrtc::v1::ICECandidate* temp = update_.candidate_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.update_.candidate_ = nullptr; + update_.candidate_ = nullptr; return temp; } else { return nullptr; } } inline const ::proto::rpc::webrtc::v1::ICECandidate& CallUpdateRequest::_internal_candidate() const { - return update_case() == kCandidate ? *_impl_.update_.candidate_ : reinterpret_cast<::proto::rpc::webrtc::v1::ICECandidate&>(::proto::rpc::webrtc::v1::_ICECandidate_default_instance_); + return _internal_has_candidate() + ? *update_.candidate_ + : reinterpret_cast< ::proto::rpc::webrtc::v1::ICECandidate&>(::proto::rpc::webrtc::v1::_ICECandidate_default_instance_); } -inline const ::proto::rpc::webrtc::v1::ICECandidate& CallUpdateRequest::candidate() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::proto::rpc::webrtc::v1::ICECandidate& CallUpdateRequest::candidate() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.CallUpdateRequest.candidate) return _internal_candidate(); } inline ::proto::rpc::webrtc::v1::ICECandidate* CallUpdateRequest::unsafe_arena_release_candidate() { // @@protoc_insertion_point(field_unsafe_arena_release:proto.rpc.webrtc.v1.CallUpdateRequest.candidate) - if (update_case() == kCandidate) { + if (_internal_has_candidate()) { clear_has_update(); - auto* temp = _impl_.update_.candidate_; - _impl_.update_.candidate_ = nullptr; + ::proto::rpc::webrtc::v1::ICECandidate* temp = update_.candidate_; + update_.candidate_ = nullptr; return temp; } else { return nullptr; } } -inline void CallUpdateRequest::unsafe_arena_set_allocated_candidate(::proto::rpc::webrtc::v1::ICECandidate* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void CallUpdateRequest::unsafe_arena_set_allocated_candidate(::proto::rpc::webrtc::v1::ICECandidate* candidate) { clear_update(); - if (value) { + if (candidate) { set_has_candidate(); - _impl_.update_.candidate_ = value; + update_.candidate_ = candidate; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.rpc.webrtc.v1.CallUpdateRequest.candidate) } inline ::proto::rpc::webrtc::v1::ICECandidate* CallUpdateRequest::_internal_mutable_candidate() { - if (update_case() != kCandidate) { + if (!_internal_has_candidate()) { clear_update(); set_has_candidate(); - _impl_.update_.candidate_ = CreateMaybeMessage<::proto::rpc::webrtc::v1::ICECandidate>(GetArena()); + update_.candidate_ = CreateMaybeMessage< ::proto::rpc::webrtc::v1::ICECandidate >(GetArenaForAllocation()); } - return _impl_.update_.candidate_; + return update_.candidate_; } -inline ::proto::rpc::webrtc::v1::ICECandidate* CallUpdateRequest::mutable_candidate() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::proto::rpc::webrtc::v1::ICECandidate* CallUpdateRequest::mutable_candidate() { ::proto::rpc::webrtc::v1::ICECandidate* _msg = _internal_mutable_candidate(); // @@protoc_insertion_point(field_mutable:proto.rpc.webrtc.v1.CallUpdateRequest.candidate) return _msg; } // bool done = 3 [json_name = "done"]; -inline bool CallUpdateRequest::has_done() const { +inline bool CallUpdateRequest::_internal_has_done() const { return update_case() == kDone; } +inline bool CallUpdateRequest::has_done() const { + return _internal_has_done(); +} inline void CallUpdateRequest::set_has_done() { - _impl_._oneof_case_[0] = kDone; + _oneof_case_[0] = kDone; } inline void CallUpdateRequest::clear_done() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (update_case() == kDone) { - _impl_.update_.done_ = false; + if (_internal_has_done()) { + update_.done_ = false; clear_has_update(); } } -inline bool CallUpdateRequest::done() const { - // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.CallUpdateRequest.done) - return _internal_done(); -} -inline void CallUpdateRequest::set_done(bool value) { - _internal_set_done(value); - // @@protoc_insertion_point(field_set:proto.rpc.webrtc.v1.CallUpdateRequest.done) -} inline bool CallUpdateRequest::_internal_done() const { - if (update_case() == kDone) { - return _impl_.update_.done_; + if (_internal_has_done()) { + return update_.done_; } return false; } inline void CallUpdateRequest::_internal_set_done(bool value) { - if (update_case() != kDone) { + if (!_internal_has_done()) { clear_update(); set_has_done(); } - _impl_.update_.done_ = value; + update_.done_ = value; +} +inline bool CallUpdateRequest::done() const { + // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.CallUpdateRequest.done) + return _internal_done(); +} +inline void CallUpdateRequest::set_done(bool value) { + _internal_set_done(value); + // @@protoc_insertion_point(field_set:proto.rpc.webrtc.v1.CallUpdateRequest.done) } // .google.rpc.Status error = 4 [json_name = "error"]; -inline bool CallUpdateRequest::has_error() const { - return update_case() == kError; -} inline bool CallUpdateRequest::_internal_has_error() const { return update_case() == kError; } +inline bool CallUpdateRequest::has_error() const { + return _internal_has_error(); +} inline void CallUpdateRequest::set_has_error() { - _impl_._oneof_case_[0] = kError; + _oneof_case_[0] = kError; } inline ::google::rpc::Status* CallUpdateRequest::release_error() { // @@protoc_insertion_point(field_release:proto.rpc.webrtc.v1.CallUpdateRequest.error) - if (update_case() == kError) { + if (_internal_has_error()) { clear_has_update(); - auto* temp = _impl_.update_.error_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::google::rpc::Status* temp = update_.error_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.update_.error_ = nullptr; + update_.error_ = nullptr; return temp; } else { return nullptr; } } inline const ::google::rpc::Status& CallUpdateRequest::_internal_error() const { - return update_case() == kError ? *_impl_.update_.error_ : reinterpret_cast<::google::rpc::Status&>(::google::rpc::_Status_default_instance_); + return _internal_has_error() + ? *update_.error_ + : reinterpret_cast< ::google::rpc::Status&>(::google::rpc::_Status_default_instance_); } -inline const ::google::rpc::Status& CallUpdateRequest::error() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::rpc::Status& CallUpdateRequest::error() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.CallUpdateRequest.error) return _internal_error(); } inline ::google::rpc::Status* CallUpdateRequest::unsafe_arena_release_error() { // @@protoc_insertion_point(field_unsafe_arena_release:proto.rpc.webrtc.v1.CallUpdateRequest.error) - if (update_case() == kError) { + if (_internal_has_error()) { clear_has_update(); - auto* temp = _impl_.update_.error_; - _impl_.update_.error_ = nullptr; + ::google::rpc::Status* temp = update_.error_; + update_.error_ = nullptr; return temp; } else { return nullptr; } } -inline void CallUpdateRequest::unsafe_arena_set_allocated_error(::google::rpc::Status* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void CallUpdateRequest::unsafe_arena_set_allocated_error(::google::rpc::Status* error) { clear_update(); - if (value) { + if (error) { set_has_error(); - _impl_.update_.error_ = value; + update_.error_ = error; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.rpc.webrtc.v1.CallUpdateRequest.error) } inline ::google::rpc::Status* CallUpdateRequest::_internal_mutable_error() { - if (update_case() != kError) { + if (!_internal_has_error()) { clear_update(); set_has_error(); - _impl_.update_.error_ = CreateMaybeMessage<::google::rpc::Status>(GetArena()); + update_.error_ = CreateMaybeMessage< ::google::rpc::Status >(GetArenaForAllocation()); } - return _impl_.update_.error_; + return update_.error_; } -inline ::google::rpc::Status* CallUpdateRequest::mutable_error() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::rpc::Status* CallUpdateRequest::mutable_error() { ::google::rpc::Status* _msg = _internal_mutable_error(); // @@protoc_insertion_point(field_mutable:proto.rpc.webrtc.v1.CallUpdateRequest.error) return _msg; @@ -5374,10 +4693,10 @@ inline bool CallUpdateRequest::has_update() const { return update_case() != UPDATE_NOT_SET; } inline void CallUpdateRequest::clear_has_update() { - _impl_._oneof_case_[0] = UPDATE_NOT_SET; + _oneof_case_[0] = UPDATE_NOT_SET; } inline CallUpdateRequest::UpdateCase CallUpdateRequest::update_case() const { - return CallUpdateRequest::UpdateCase(_impl_._oneof_case_[0]); + return CallUpdateRequest::UpdateCase(_oneof_case_[0]); } // ------------------------------------------------------------------- @@ -5389,208 +4708,176 @@ inline CallUpdateRequest::UpdateCase CallUpdateRequest::update_case() const { // repeated string urls = 1 [json_name = "urls"]; inline int ICEServer::_internal_urls_size() const { - return _internal_urls().size(); + return urls_.size(); } inline int ICEServer::urls_size() const { return _internal_urls_size(); } inline void ICEServer::clear_urls() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.urls_.Clear(); + urls_.Clear(); } -inline std::string* ICEServer::add_urls() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_urls()->Add(); +inline std::string* ICEServer::add_urls() { + std::string* _s = _internal_add_urls(); // @@protoc_insertion_point(field_add_mutable:proto.rpc.webrtc.v1.ICEServer.urls) return _s; } -inline const std::string& ICEServer::urls(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ICEServer::_internal_urls(int index) const { + return urls_.Get(index); +} +inline const std::string& ICEServer::urls(int index) const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.ICEServer.urls) - return _internal_urls().Get(index); + return _internal_urls(index); } -inline std::string* ICEServer::mutable_urls(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ICEServer::mutable_urls(int index) { // @@protoc_insertion_point(field_mutable:proto.rpc.webrtc.v1.ICEServer.urls) - return _internal_mutable_urls()->Mutable(index); + return urls_.Mutable(index); } inline void ICEServer::set_urls(int index, const std::string& value) { - _internal_mutable_urls()->Mutable(index)->assign(value); + urls_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set:proto.rpc.webrtc.v1.ICEServer.urls) } inline void ICEServer::set_urls(int index, std::string&& value) { - _internal_mutable_urls()->Mutable(index)->assign(std::move(value)); + urls_.Mutable(index)->assign(std::move(value)); // @@protoc_insertion_point(field_set:proto.rpc.webrtc.v1.ICEServer.urls) } inline void ICEServer::set_urls(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_urls()->Mutable(index)->assign(value); + GOOGLE_DCHECK(value != nullptr); + urls_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:proto.rpc.webrtc.v1.ICEServer.urls) } -inline void ICEServer::set_urls(int index, const char* value, - std::size_t size) { - _internal_mutable_urls()->Mutable(index)->assign( - reinterpret_cast(value), size); +inline void ICEServer::set_urls(int index, const char* value, size_t size) { + urls_.Mutable(index)->assign( + reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:proto.rpc.webrtc.v1.ICEServer.urls) } -inline void ICEServer::set_urls(int index, absl::string_view value) { - _internal_mutable_urls()->Mutable(index)->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_set_string_piece:proto.rpc.webrtc.v1.ICEServer.urls) +inline std::string* ICEServer::_internal_add_urls() { + return urls_.Add(); } inline void ICEServer::add_urls(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_urls()->Add()->assign(value); + urls_.Add()->assign(value); // @@protoc_insertion_point(field_add:proto.rpc.webrtc.v1.ICEServer.urls) } inline void ICEServer::add_urls(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_urls()->Add(std::move(value)); + urls_.Add(std::move(value)); // @@protoc_insertion_point(field_add:proto.rpc.webrtc.v1.ICEServer.urls) } inline void ICEServer::add_urls(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_urls()->Add()->assign(value); + GOOGLE_DCHECK(value != nullptr); + urls_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:proto.rpc.webrtc.v1.ICEServer.urls) } -inline void ICEServer::add_urls(const char* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_urls()->Add()->assign( - reinterpret_cast(value), size); +inline void ICEServer::add_urls(const char* value, size_t size) { + urls_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:proto.rpc.webrtc.v1.ICEServer.urls) } -inline void ICEServer::add_urls(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_urls()->Add()->assign(value.data(), value.size()); - // @@protoc_insertion_point(field_add_string_piece:proto.rpc.webrtc.v1.ICEServer.urls) -} -inline const ::google::protobuf::RepeatedPtrField& -ICEServer::urls() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +ICEServer::urls() const { // @@protoc_insertion_point(field_list:proto.rpc.webrtc.v1.ICEServer.urls) - return _internal_urls(); + return urls_; } -inline ::google::protobuf::RepeatedPtrField* -ICEServer::mutable_urls() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +ICEServer::mutable_urls() { // @@protoc_insertion_point(field_mutable_list:proto.rpc.webrtc.v1.ICEServer.urls) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_urls(); -} -inline const ::google::protobuf::RepeatedPtrField& -ICEServer::_internal_urls() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.urls_; -} -inline ::google::protobuf::RepeatedPtrField* -ICEServer::_internal_mutable_urls() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.urls_; + return &urls_; } // string username = 2 [json_name = "username"]; inline void ICEServer::clear_username() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.username_.ClearToEmpty(); + username_.ClearToEmpty(); } -inline const std::string& ICEServer::username() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ICEServer::username() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.ICEServer.username) return _internal_username(); } -template -inline PROTOBUF_ALWAYS_INLINE void ICEServer::set_username(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.username_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ICEServer::set_username(ArgT0&& arg0, ArgT... args) { + + username_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.rpc.webrtc.v1.ICEServer.username) } -inline std::string* ICEServer::mutable_username() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ICEServer::mutable_username() { std::string* _s = _internal_mutable_username(); // @@protoc_insertion_point(field_mutable:proto.rpc.webrtc.v1.ICEServer.username) return _s; } inline const std::string& ICEServer::_internal_username() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.username_.Get(); + return username_.Get(); } inline void ICEServer::_internal_set_username(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.username_.Set(value, GetArena()); + + username_.Set(value, GetArenaForAllocation()); } inline std::string* ICEServer::_internal_mutable_username() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.username_.Mutable( GetArena()); + + return username_.Mutable(GetArenaForAllocation()); } inline std::string* ICEServer::release_username() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:proto.rpc.webrtc.v1.ICEServer.username) - return _impl_.username_.Release(); -} -inline void ICEServer::set_allocated_username(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.username_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.username_.IsDefault()) { - _impl_.username_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return username_.Release(); +} +inline void ICEServer::set_allocated_username(std::string* username) { + if (username != nullptr) { + + } else { + + } + username_.SetAllocated(username, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (username_.IsDefault()) { + username_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:proto.rpc.webrtc.v1.ICEServer.username) } // string credential = 3 [json_name = "credential"]; inline void ICEServer::clear_credential() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.credential_.ClearToEmpty(); + credential_.ClearToEmpty(); } -inline const std::string& ICEServer::credential() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ICEServer::credential() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.ICEServer.credential) return _internal_credential(); } -template -inline PROTOBUF_ALWAYS_INLINE void ICEServer::set_credential(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.credential_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ICEServer::set_credential(ArgT0&& arg0, ArgT... args) { + + credential_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.rpc.webrtc.v1.ICEServer.credential) } -inline std::string* ICEServer::mutable_credential() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ICEServer::mutable_credential() { std::string* _s = _internal_mutable_credential(); // @@protoc_insertion_point(field_mutable:proto.rpc.webrtc.v1.ICEServer.credential) return _s; } inline const std::string& ICEServer::_internal_credential() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.credential_.Get(); + return credential_.Get(); } inline void ICEServer::_internal_set_credential(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.credential_.Set(value, GetArena()); + + credential_.Set(value, GetArenaForAllocation()); } inline std::string* ICEServer::_internal_mutable_credential() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.credential_.Mutable( GetArena()); + + return credential_.Mutable(GetArenaForAllocation()); } inline std::string* ICEServer::release_credential() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:proto.rpc.webrtc.v1.ICEServer.credential) - return _impl_.credential_.Release(); -} -inline void ICEServer::set_allocated_credential(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.credential_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.credential_.IsDefault()) { - _impl_.credential_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return credential_.Release(); +} +inline void ICEServer::set_allocated_credential(std::string* credential) { + if (credential != nullptr) { + + } else { + + } + credential_.SetAllocated(credential, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (credential_.IsDefault()) { + credential_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:proto.rpc.webrtc.v1.ICEServer.credential) } @@ -5600,75 +4887,63 @@ inline void ICEServer::set_allocated_credential(std::string* value) { // repeated .proto.rpc.webrtc.v1.ICEServer additional_ice_servers = 1 [json_name = "additionalIceServers"]; inline int WebRTCConfig::_internal_additional_ice_servers_size() const { - return _internal_additional_ice_servers().size(); + return additional_ice_servers_.size(); } inline int WebRTCConfig::additional_ice_servers_size() const { return _internal_additional_ice_servers_size(); } inline void WebRTCConfig::clear_additional_ice_servers() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.additional_ice_servers_.Clear(); + additional_ice_servers_.Clear(); } -inline ::proto::rpc::webrtc::v1::ICEServer* WebRTCConfig::mutable_additional_ice_servers(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::proto::rpc::webrtc::v1::ICEServer* WebRTCConfig::mutable_additional_ice_servers(int index) { // @@protoc_insertion_point(field_mutable:proto.rpc.webrtc.v1.WebRTCConfig.additional_ice_servers) - return _internal_mutable_additional_ice_servers()->Mutable(index); + return additional_ice_servers_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::proto::rpc::webrtc::v1::ICEServer>* WebRTCConfig::mutable_additional_ice_servers() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::rpc::webrtc::v1::ICEServer >* +WebRTCConfig::mutable_additional_ice_servers() { // @@protoc_insertion_point(field_mutable_list:proto.rpc.webrtc.v1.WebRTCConfig.additional_ice_servers) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_additional_ice_servers(); + return &additional_ice_servers_; +} +inline const ::proto::rpc::webrtc::v1::ICEServer& WebRTCConfig::_internal_additional_ice_servers(int index) const { + return additional_ice_servers_.Get(index); } -inline const ::proto::rpc::webrtc::v1::ICEServer& WebRTCConfig::additional_ice_servers(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::proto::rpc::webrtc::v1::ICEServer& WebRTCConfig::additional_ice_servers(int index) const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.WebRTCConfig.additional_ice_servers) - return _internal_additional_ice_servers().Get(index); + return _internal_additional_ice_servers(index); } -inline ::proto::rpc::webrtc::v1::ICEServer* WebRTCConfig::add_additional_ice_servers() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::proto::rpc::webrtc::v1::ICEServer* _add = _internal_mutable_additional_ice_servers()->Add(); +inline ::proto::rpc::webrtc::v1::ICEServer* WebRTCConfig::_internal_add_additional_ice_servers() { + return additional_ice_servers_.Add(); +} +inline ::proto::rpc::webrtc::v1::ICEServer* WebRTCConfig::add_additional_ice_servers() { + ::proto::rpc::webrtc::v1::ICEServer* _add = _internal_add_additional_ice_servers(); // @@protoc_insertion_point(field_add:proto.rpc.webrtc.v1.WebRTCConfig.additional_ice_servers) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::proto::rpc::webrtc::v1::ICEServer>& WebRTCConfig::additional_ice_servers() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::rpc::webrtc::v1::ICEServer >& +WebRTCConfig::additional_ice_servers() const { // @@protoc_insertion_point(field_list:proto.rpc.webrtc.v1.WebRTCConfig.additional_ice_servers) - return _internal_additional_ice_servers(); -} -inline const ::google::protobuf::RepeatedPtrField<::proto::rpc::webrtc::v1::ICEServer>& -WebRTCConfig::_internal_additional_ice_servers() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.additional_ice_servers_; -} -inline ::google::protobuf::RepeatedPtrField<::proto::rpc::webrtc::v1::ICEServer>* -WebRTCConfig::_internal_mutable_additional_ice_servers() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.additional_ice_servers_; + return additional_ice_servers_; } // bool disable_trickle = 2 [json_name = "disableTrickle"]; inline void WebRTCConfig::clear_disable_trickle() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.disable_trickle_ = false; + disable_trickle_ = false; +} +inline bool WebRTCConfig::_internal_disable_trickle() const { + return disable_trickle_; } inline bool WebRTCConfig::disable_trickle() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.WebRTCConfig.disable_trickle) return _internal_disable_trickle(); } +inline void WebRTCConfig::_internal_set_disable_trickle(bool value) { + + disable_trickle_ = value; +} inline void WebRTCConfig::set_disable_trickle(bool value) { _internal_set_disable_trickle(value); // @@protoc_insertion_point(field_set:proto.rpc.webrtc.v1.WebRTCConfig.disable_trickle) } -inline bool WebRTCConfig::_internal_disable_trickle() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.disable_trickle_; -} -inline void WebRTCConfig::_internal_set_disable_trickle(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.disable_trickle_ = value; -} // ------------------------------------------------------------------- @@ -5676,241 +4951,228 @@ inline void WebRTCConfig::_internal_set_disable_trickle(bool value) { // string sdp = 1 [json_name = "sdp"]; inline void AnswerRequestInitStage::clear_sdp() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.sdp_.ClearToEmpty(); + sdp_.ClearToEmpty(); } -inline const std::string& AnswerRequestInitStage::sdp() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& AnswerRequestInitStage::sdp() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.AnswerRequestInitStage.sdp) return _internal_sdp(); } -template -inline PROTOBUF_ALWAYS_INLINE void AnswerRequestInitStage::set_sdp(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.sdp_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void AnswerRequestInitStage::set_sdp(ArgT0&& arg0, ArgT... args) { + + sdp_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.rpc.webrtc.v1.AnswerRequestInitStage.sdp) } -inline std::string* AnswerRequestInitStage::mutable_sdp() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* AnswerRequestInitStage::mutable_sdp() { std::string* _s = _internal_mutable_sdp(); // @@protoc_insertion_point(field_mutable:proto.rpc.webrtc.v1.AnswerRequestInitStage.sdp) return _s; } inline const std::string& AnswerRequestInitStage::_internal_sdp() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.sdp_.Get(); + return sdp_.Get(); } inline void AnswerRequestInitStage::_internal_set_sdp(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.sdp_.Set(value, GetArena()); + + sdp_.Set(value, GetArenaForAllocation()); } inline std::string* AnswerRequestInitStage::_internal_mutable_sdp() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.sdp_.Mutable( GetArena()); + + return sdp_.Mutable(GetArenaForAllocation()); } inline std::string* AnswerRequestInitStage::release_sdp() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:proto.rpc.webrtc.v1.AnswerRequestInitStage.sdp) - return _impl_.sdp_.Release(); -} -inline void AnswerRequestInitStage::set_allocated_sdp(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.sdp_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.sdp_.IsDefault()) { - _impl_.sdp_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return sdp_.Release(); +} +inline void AnswerRequestInitStage::set_allocated_sdp(std::string* sdp) { + if (sdp != nullptr) { + + } else { + + } + sdp_.SetAllocated(sdp, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (sdp_.IsDefault()) { + sdp_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:proto.rpc.webrtc.v1.AnswerRequestInitStage.sdp) } // .proto.rpc.webrtc.v1.WebRTCConfig optional_config = 2 [json_name = "optionalConfig"]; +inline bool AnswerRequestInitStage::_internal_has_optional_config() const { + return this != internal_default_instance() && optional_config_ != nullptr; +} inline bool AnswerRequestInitStage::has_optional_config() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.optional_config_ != nullptr); - return value; + return _internal_has_optional_config(); } inline void AnswerRequestInitStage::clear_optional_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.optional_config_ != nullptr) _impl_.optional_config_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && optional_config_ != nullptr) { + delete optional_config_; + } + optional_config_ = nullptr; } inline const ::proto::rpc::webrtc::v1::WebRTCConfig& AnswerRequestInitStage::_internal_optional_config() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::proto::rpc::webrtc::v1::WebRTCConfig* p = _impl_.optional_config_; - return p != nullptr ? *p : reinterpret_cast(::proto::rpc::webrtc::v1::_WebRTCConfig_default_instance_); + const ::proto::rpc::webrtc::v1::WebRTCConfig* p = optional_config_; + return p != nullptr ? *p : reinterpret_cast( + ::proto::rpc::webrtc::v1::_WebRTCConfig_default_instance_); } -inline const ::proto::rpc::webrtc::v1::WebRTCConfig& AnswerRequestInitStage::optional_config() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::proto::rpc::webrtc::v1::WebRTCConfig& AnswerRequestInitStage::optional_config() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.AnswerRequestInitStage.optional_config) return _internal_optional_config(); } -inline void AnswerRequestInitStage::unsafe_arena_set_allocated_optional_config(::proto::rpc::webrtc::v1::WebRTCConfig* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.optional_config_); +inline void AnswerRequestInitStage::unsafe_arena_set_allocated_optional_config( + ::proto::rpc::webrtc::v1::WebRTCConfig* optional_config) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(optional_config_); } - _impl_.optional_config_ = reinterpret_cast<::proto::rpc::webrtc::v1::WebRTCConfig*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + optional_config_ = optional_config; + if (optional_config) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.rpc.webrtc.v1.AnswerRequestInitStage.optional_config) } inline ::proto::rpc::webrtc::v1::WebRTCConfig* AnswerRequestInitStage::release_optional_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::proto::rpc::webrtc::v1::WebRTCConfig* released = _impl_.optional_config_; - _impl_.optional_config_ = nullptr; + + ::proto::rpc::webrtc::v1::WebRTCConfig* temp = optional_config_; + optional_config_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::proto::rpc::webrtc::v1::WebRTCConfig* AnswerRequestInitStage::unsafe_arena_release_optional_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:proto.rpc.webrtc.v1.AnswerRequestInitStage.optional_config) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::proto::rpc::webrtc::v1::WebRTCConfig* temp = _impl_.optional_config_; - _impl_.optional_config_ = nullptr; + + ::proto::rpc::webrtc::v1::WebRTCConfig* temp = optional_config_; + optional_config_ = nullptr; return temp; } inline ::proto::rpc::webrtc::v1::WebRTCConfig* AnswerRequestInitStage::_internal_mutable_optional_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.optional_config_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::rpc::webrtc::v1::WebRTCConfig>(GetArena()); - _impl_.optional_config_ = reinterpret_cast<::proto::rpc::webrtc::v1::WebRTCConfig*>(p); + + if (optional_config_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::rpc::webrtc::v1::WebRTCConfig>(GetArenaForAllocation()); + optional_config_ = p; } - return _impl_.optional_config_; + return optional_config_; } -inline ::proto::rpc::webrtc::v1::WebRTCConfig* AnswerRequestInitStage::mutable_optional_config() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::proto::rpc::webrtc::v1::WebRTCConfig* AnswerRequestInitStage::mutable_optional_config() { ::proto::rpc::webrtc::v1::WebRTCConfig* _msg = _internal_mutable_optional_config(); // @@protoc_insertion_point(field_mutable:proto.rpc.webrtc.v1.AnswerRequestInitStage.optional_config) return _msg; } -inline void AnswerRequestInitStage::set_allocated_optional_config(::proto::rpc::webrtc::v1::WebRTCConfig* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void AnswerRequestInitStage::set_allocated_optional_config(::proto::rpc::webrtc::v1::WebRTCConfig* optional_config) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::proto::rpc::webrtc::v1::WebRTCConfig*>(_impl_.optional_config_); + delete optional_config_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::proto::rpc::webrtc::v1::WebRTCConfig*>(value)->GetArena(); + if (optional_config) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(optional_config); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + optional_config = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, optional_config, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.optional_config_ = reinterpret_cast<::proto::rpc::webrtc::v1::WebRTCConfig*>(value); + optional_config_ = optional_config; // @@protoc_insertion_point(field_set_allocated:proto.rpc.webrtc.v1.AnswerRequestInitStage.optional_config) } // optional .google.protobuf.Timestamp deadline = 3 [json_name = "deadline"]; -inline bool AnswerRequestInitStage::has_deadline() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.deadline_ != nullptr); +inline bool AnswerRequestInitStage::_internal_has_deadline() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || deadline_ != nullptr); return value; } -inline const ::google::protobuf::Timestamp& AnswerRequestInitStage::_internal_deadline() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Timestamp* p = _impl_.deadline_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); +inline bool AnswerRequestInitStage::has_deadline() const { + return _internal_has_deadline(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& AnswerRequestInitStage::_internal_deadline() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = deadline_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); } -inline const ::google::protobuf::Timestamp& AnswerRequestInitStage::deadline() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& AnswerRequestInitStage::deadline() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.AnswerRequestInitStage.deadline) return _internal_deadline(); } -inline void AnswerRequestInitStage::unsafe_arena_set_allocated_deadline(::google::protobuf::Timestamp* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.deadline_); +inline void AnswerRequestInitStage::unsafe_arena_set_allocated_deadline( + ::PROTOBUF_NAMESPACE_ID::Timestamp* deadline) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(deadline_); } - _impl_.deadline_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + deadline_ = deadline; + if (deadline) { + _has_bits_[0] |= 0x00000001u; } else { - _impl_._has_bits_[0] &= ~0x00000002u; + _has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.rpc.webrtc.v1.AnswerRequestInitStage.deadline) } -inline ::google::protobuf::Timestamp* AnswerRequestInitStage::release_deadline() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Timestamp* released = _impl_.deadline_; - _impl_.deadline_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* AnswerRequestInitStage::release_deadline() { + _has_bits_[0] &= ~0x00000001u; + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = deadline_; + deadline_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Timestamp* AnswerRequestInitStage::unsafe_arena_release_deadline() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* AnswerRequestInitStage::unsafe_arena_release_deadline() { // @@protoc_insertion_point(field_release:proto.rpc.webrtc.v1.AnswerRequestInitStage.deadline) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Timestamp* temp = _impl_.deadline_; - _impl_.deadline_ = nullptr; + _has_bits_[0] &= ~0x00000001u; + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = deadline_; + deadline_ = nullptr; return temp; } -inline ::google::protobuf::Timestamp* AnswerRequestInitStage::_internal_mutable_deadline() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.deadline_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena()); - _impl_.deadline_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* AnswerRequestInitStage::_internal_mutable_deadline() { + _has_bits_[0] |= 0x00000001u; + if (deadline_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + deadline_ = p; } - return _impl_.deadline_; + return deadline_; } -inline ::google::protobuf::Timestamp* AnswerRequestInitStage::mutable_deadline() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Timestamp* _msg = _internal_mutable_deadline(); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* AnswerRequestInitStage::mutable_deadline() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_deadline(); // @@protoc_insertion_point(field_mutable:proto.rpc.webrtc.v1.AnswerRequestInitStage.deadline) return _msg; } -inline void AnswerRequestInitStage::set_allocated_deadline(::google::protobuf::Timestamp* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void AnswerRequestInitStage::set_allocated_deadline(::PROTOBUF_NAMESPACE_ID::Timestamp* deadline) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.deadline_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(deadline_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (deadline) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(deadline)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + deadline = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, deadline, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + _has_bits_[0] |= 0x00000001u; } else { - _impl_._has_bits_[0] &= ~0x00000002u; + _has_bits_[0] &= ~0x00000001u; } - - _impl_.deadline_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); + deadline_ = deadline; // @@protoc_insertion_point(field_set_allocated:proto.rpc.webrtc.v1.AnswerRequestInitStage.deadline) } @@ -5919,98 +5181,92 @@ inline void AnswerRequestInitStage::set_allocated_deadline(::google::protobuf::T // AnswerRequestUpdateStage // .proto.rpc.webrtc.v1.ICECandidate candidate = 1 [json_name = "candidate"]; +inline bool AnswerRequestUpdateStage::_internal_has_candidate() const { + return this != internal_default_instance() && candidate_ != nullptr; +} inline bool AnswerRequestUpdateStage::has_candidate() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.candidate_ != nullptr); - return value; + return _internal_has_candidate(); } inline void AnswerRequestUpdateStage::clear_candidate() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.candidate_ != nullptr) _impl_.candidate_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && candidate_ != nullptr) { + delete candidate_; + } + candidate_ = nullptr; } inline const ::proto::rpc::webrtc::v1::ICECandidate& AnswerRequestUpdateStage::_internal_candidate() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::proto::rpc::webrtc::v1::ICECandidate* p = _impl_.candidate_; - return p != nullptr ? *p : reinterpret_cast(::proto::rpc::webrtc::v1::_ICECandidate_default_instance_); + const ::proto::rpc::webrtc::v1::ICECandidate* p = candidate_; + return p != nullptr ? *p : reinterpret_cast( + ::proto::rpc::webrtc::v1::_ICECandidate_default_instance_); } -inline const ::proto::rpc::webrtc::v1::ICECandidate& AnswerRequestUpdateStage::candidate() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::proto::rpc::webrtc::v1::ICECandidate& AnswerRequestUpdateStage::candidate() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.AnswerRequestUpdateStage.candidate) return _internal_candidate(); } -inline void AnswerRequestUpdateStage::unsafe_arena_set_allocated_candidate(::proto::rpc::webrtc::v1::ICECandidate* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.candidate_); +inline void AnswerRequestUpdateStage::unsafe_arena_set_allocated_candidate( + ::proto::rpc::webrtc::v1::ICECandidate* candidate) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(candidate_); } - _impl_.candidate_ = reinterpret_cast<::proto::rpc::webrtc::v1::ICECandidate*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + candidate_ = candidate; + if (candidate) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.rpc.webrtc.v1.AnswerRequestUpdateStage.candidate) } inline ::proto::rpc::webrtc::v1::ICECandidate* AnswerRequestUpdateStage::release_candidate() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::proto::rpc::webrtc::v1::ICECandidate* released = _impl_.candidate_; - _impl_.candidate_ = nullptr; + + ::proto::rpc::webrtc::v1::ICECandidate* temp = candidate_; + candidate_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::proto::rpc::webrtc::v1::ICECandidate* AnswerRequestUpdateStage::unsafe_arena_release_candidate() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:proto.rpc.webrtc.v1.AnswerRequestUpdateStage.candidate) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::proto::rpc::webrtc::v1::ICECandidate* temp = _impl_.candidate_; - _impl_.candidate_ = nullptr; + + ::proto::rpc::webrtc::v1::ICECandidate* temp = candidate_; + candidate_ = nullptr; return temp; } inline ::proto::rpc::webrtc::v1::ICECandidate* AnswerRequestUpdateStage::_internal_mutable_candidate() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.candidate_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::rpc::webrtc::v1::ICECandidate>(GetArena()); - _impl_.candidate_ = reinterpret_cast<::proto::rpc::webrtc::v1::ICECandidate*>(p); + + if (candidate_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::rpc::webrtc::v1::ICECandidate>(GetArenaForAllocation()); + candidate_ = p; } - return _impl_.candidate_; + return candidate_; } -inline ::proto::rpc::webrtc::v1::ICECandidate* AnswerRequestUpdateStage::mutable_candidate() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::proto::rpc::webrtc::v1::ICECandidate* AnswerRequestUpdateStage::mutable_candidate() { ::proto::rpc::webrtc::v1::ICECandidate* _msg = _internal_mutable_candidate(); // @@protoc_insertion_point(field_mutable:proto.rpc.webrtc.v1.AnswerRequestUpdateStage.candidate) return _msg; } -inline void AnswerRequestUpdateStage::set_allocated_candidate(::proto::rpc::webrtc::v1::ICECandidate* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void AnswerRequestUpdateStage::set_allocated_candidate(::proto::rpc::webrtc::v1::ICECandidate* candidate) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::proto::rpc::webrtc::v1::ICECandidate*>(_impl_.candidate_); + delete candidate_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::proto::rpc::webrtc::v1::ICECandidate*>(value)->GetArena(); + if (candidate) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(candidate); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + candidate = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, candidate, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.candidate_ = reinterpret_cast<::proto::rpc::webrtc::v1::ICECandidate*>(value); + candidate_ = candidate; // @@protoc_insertion_point(field_set_allocated:proto.rpc.webrtc.v1.AnswerRequestUpdateStage.candidate) } @@ -6023,93 +5279,87 @@ inline void AnswerRequestUpdateStage::set_allocated_candidate(::proto::rpc::webr // AnswerRequestErrorStage // .google.rpc.Status status = 1 [json_name = "status"]; +inline bool AnswerRequestErrorStage::_internal_has_status() const { + return this != internal_default_instance() && status_ != nullptr; +} inline bool AnswerRequestErrorStage::has_status() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.status_ != nullptr); - return value; + return _internal_has_status(); } inline const ::google::rpc::Status& AnswerRequestErrorStage::_internal_status() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::rpc::Status* p = _impl_.status_; - return p != nullptr ? *p : reinterpret_cast(::google::rpc::_Status_default_instance_); + const ::google::rpc::Status* p = status_; + return p != nullptr ? *p : reinterpret_cast( + ::google::rpc::_Status_default_instance_); } -inline const ::google::rpc::Status& AnswerRequestErrorStage::status() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::rpc::Status& AnswerRequestErrorStage::status() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.AnswerRequestErrorStage.status) return _internal_status(); } -inline void AnswerRequestErrorStage::unsafe_arena_set_allocated_status(::google::rpc::Status* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.status_); +inline void AnswerRequestErrorStage::unsafe_arena_set_allocated_status( + ::google::rpc::Status* status) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); } - _impl_.status_ = reinterpret_cast<::google::rpc::Status*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + status_ = status; + if (status) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.rpc.webrtc.v1.AnswerRequestErrorStage.status) } inline ::google::rpc::Status* AnswerRequestErrorStage::release_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::rpc::Status* released = _impl_.status_; - _impl_.status_ = nullptr; + + ::google::rpc::Status* temp = status_; + status_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::rpc::Status* AnswerRequestErrorStage::unsafe_arena_release_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:proto.rpc.webrtc.v1.AnswerRequestErrorStage.status) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::rpc::Status* temp = _impl_.status_; - _impl_.status_ = nullptr; + + ::google::rpc::Status* temp = status_; + status_ = nullptr; return temp; } inline ::google::rpc::Status* AnswerRequestErrorStage::_internal_mutable_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.status_ == nullptr) { - auto* p = CreateMaybeMessage<::google::rpc::Status>(GetArena()); - _impl_.status_ = reinterpret_cast<::google::rpc::Status*>(p); + + if (status_ == nullptr) { + auto* p = CreateMaybeMessage<::google::rpc::Status>(GetArenaForAllocation()); + status_ = p; } - return _impl_.status_; + return status_; } -inline ::google::rpc::Status* AnswerRequestErrorStage::mutable_status() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::rpc::Status* AnswerRequestErrorStage::mutable_status() { ::google::rpc::Status* _msg = _internal_mutable_status(); // @@protoc_insertion_point(field_mutable:proto.rpc.webrtc.v1.AnswerRequestErrorStage.status) return _msg; } -inline void AnswerRequestErrorStage::set_allocated_status(::google::rpc::Status* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void AnswerRequestErrorStage::set_allocated_status(::google::rpc::Status* status) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.status_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (status) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(status)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, status, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.status_ = reinterpret_cast<::google::rpc::Status*>(value); + status_ = status; // @@protoc_insertion_point(field_set_allocated:proto.rpc.webrtc.v1.AnswerRequestErrorStage.status) } @@ -6123,432 +5373,419 @@ inline void AnswerRequestErrorStage::set_allocated_status(::google::rpc::Status* // string uuid = 1 [json_name = "uuid"]; inline void AnswerRequest::clear_uuid() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.uuid_.ClearToEmpty(); + uuid_.ClearToEmpty(); } -inline const std::string& AnswerRequest::uuid() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& AnswerRequest::uuid() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.AnswerRequest.uuid) return _internal_uuid(); } -template -inline PROTOBUF_ALWAYS_INLINE void AnswerRequest::set_uuid(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.uuid_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void AnswerRequest::set_uuid(ArgT0&& arg0, ArgT... args) { + + uuid_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.rpc.webrtc.v1.AnswerRequest.uuid) } -inline std::string* AnswerRequest::mutable_uuid() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* AnswerRequest::mutable_uuid() { std::string* _s = _internal_mutable_uuid(); // @@protoc_insertion_point(field_mutable:proto.rpc.webrtc.v1.AnswerRequest.uuid) return _s; } inline const std::string& AnswerRequest::_internal_uuid() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.uuid_.Get(); + return uuid_.Get(); } inline void AnswerRequest::_internal_set_uuid(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.uuid_.Set(value, GetArena()); + + uuid_.Set(value, GetArenaForAllocation()); } inline std::string* AnswerRequest::_internal_mutable_uuid() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.uuid_.Mutable( GetArena()); + + return uuid_.Mutable(GetArenaForAllocation()); } inline std::string* AnswerRequest::release_uuid() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:proto.rpc.webrtc.v1.AnswerRequest.uuid) - return _impl_.uuid_.Release(); -} -inline void AnswerRequest::set_allocated_uuid(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.uuid_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.uuid_.IsDefault()) { - _impl_.uuid_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return uuid_.Release(); +} +inline void AnswerRequest::set_allocated_uuid(std::string* uuid) { + if (uuid != nullptr) { + + } else { + + } + uuid_.SetAllocated(uuid, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (uuid_.IsDefault()) { + uuid_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:proto.rpc.webrtc.v1.AnswerRequest.uuid) } // .proto.rpc.webrtc.v1.AnswerRequestInitStage init = 2 [json_name = "init"]; -inline bool AnswerRequest::has_init() const { - return stage_case() == kInit; -} inline bool AnswerRequest::_internal_has_init() const { return stage_case() == kInit; } +inline bool AnswerRequest::has_init() const { + return _internal_has_init(); +} inline void AnswerRequest::set_has_init() { - _impl_._oneof_case_[0] = kInit; + _oneof_case_[0] = kInit; } inline void AnswerRequest::clear_init() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (stage_case() == kInit) { - if (GetArena() == nullptr) { - delete _impl_.stage_.init_; + if (_internal_has_init()) { + if (GetArenaForAllocation() == nullptr) { + delete stage_.init_; } clear_has_stage(); } } inline ::proto::rpc::webrtc::v1::AnswerRequestInitStage* AnswerRequest::release_init() { // @@protoc_insertion_point(field_release:proto.rpc.webrtc.v1.AnswerRequest.init) - if (stage_case() == kInit) { + if (_internal_has_init()) { clear_has_stage(); - auto* temp = _impl_.stage_.init_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::proto::rpc::webrtc::v1::AnswerRequestInitStage* temp = stage_.init_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.stage_.init_ = nullptr; + stage_.init_ = nullptr; return temp; } else { return nullptr; } } inline const ::proto::rpc::webrtc::v1::AnswerRequestInitStage& AnswerRequest::_internal_init() const { - return stage_case() == kInit ? *_impl_.stage_.init_ : reinterpret_cast<::proto::rpc::webrtc::v1::AnswerRequestInitStage&>(::proto::rpc::webrtc::v1::_AnswerRequestInitStage_default_instance_); + return _internal_has_init() + ? *stage_.init_ + : reinterpret_cast< ::proto::rpc::webrtc::v1::AnswerRequestInitStage&>(::proto::rpc::webrtc::v1::_AnswerRequestInitStage_default_instance_); } -inline const ::proto::rpc::webrtc::v1::AnswerRequestInitStage& AnswerRequest::init() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::proto::rpc::webrtc::v1::AnswerRequestInitStage& AnswerRequest::init() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.AnswerRequest.init) return _internal_init(); } inline ::proto::rpc::webrtc::v1::AnswerRequestInitStage* AnswerRequest::unsafe_arena_release_init() { // @@protoc_insertion_point(field_unsafe_arena_release:proto.rpc.webrtc.v1.AnswerRequest.init) - if (stage_case() == kInit) { + if (_internal_has_init()) { clear_has_stage(); - auto* temp = _impl_.stage_.init_; - _impl_.stage_.init_ = nullptr; + ::proto::rpc::webrtc::v1::AnswerRequestInitStage* temp = stage_.init_; + stage_.init_ = nullptr; return temp; } else { return nullptr; } } -inline void AnswerRequest::unsafe_arena_set_allocated_init(::proto::rpc::webrtc::v1::AnswerRequestInitStage* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void AnswerRequest::unsafe_arena_set_allocated_init(::proto::rpc::webrtc::v1::AnswerRequestInitStage* init) { clear_stage(); - if (value) { + if (init) { set_has_init(); - _impl_.stage_.init_ = value; + stage_.init_ = init; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.rpc.webrtc.v1.AnswerRequest.init) } inline ::proto::rpc::webrtc::v1::AnswerRequestInitStage* AnswerRequest::_internal_mutable_init() { - if (stage_case() != kInit) { + if (!_internal_has_init()) { clear_stage(); set_has_init(); - _impl_.stage_.init_ = CreateMaybeMessage<::proto::rpc::webrtc::v1::AnswerRequestInitStage>(GetArena()); + stage_.init_ = CreateMaybeMessage< ::proto::rpc::webrtc::v1::AnswerRequestInitStage >(GetArenaForAllocation()); } - return _impl_.stage_.init_; + return stage_.init_; } -inline ::proto::rpc::webrtc::v1::AnswerRequestInitStage* AnswerRequest::mutable_init() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::proto::rpc::webrtc::v1::AnswerRequestInitStage* AnswerRequest::mutable_init() { ::proto::rpc::webrtc::v1::AnswerRequestInitStage* _msg = _internal_mutable_init(); // @@protoc_insertion_point(field_mutable:proto.rpc.webrtc.v1.AnswerRequest.init) return _msg; } // .proto.rpc.webrtc.v1.AnswerRequestUpdateStage update = 3 [json_name = "update"]; -inline bool AnswerRequest::has_update() const { - return stage_case() == kUpdate; -} inline bool AnswerRequest::_internal_has_update() const { return stage_case() == kUpdate; } +inline bool AnswerRequest::has_update() const { + return _internal_has_update(); +} inline void AnswerRequest::set_has_update() { - _impl_._oneof_case_[0] = kUpdate; + _oneof_case_[0] = kUpdate; } inline void AnswerRequest::clear_update() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (stage_case() == kUpdate) { - if (GetArena() == nullptr) { - delete _impl_.stage_.update_; + if (_internal_has_update()) { + if (GetArenaForAllocation() == nullptr) { + delete stage_.update_; } clear_has_stage(); } } inline ::proto::rpc::webrtc::v1::AnswerRequestUpdateStage* AnswerRequest::release_update() { // @@protoc_insertion_point(field_release:proto.rpc.webrtc.v1.AnswerRequest.update) - if (stage_case() == kUpdate) { + if (_internal_has_update()) { clear_has_stage(); - auto* temp = _impl_.stage_.update_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::proto::rpc::webrtc::v1::AnswerRequestUpdateStage* temp = stage_.update_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.stage_.update_ = nullptr; + stage_.update_ = nullptr; return temp; } else { return nullptr; } } inline const ::proto::rpc::webrtc::v1::AnswerRequestUpdateStage& AnswerRequest::_internal_update() const { - return stage_case() == kUpdate ? *_impl_.stage_.update_ : reinterpret_cast<::proto::rpc::webrtc::v1::AnswerRequestUpdateStage&>(::proto::rpc::webrtc::v1::_AnswerRequestUpdateStage_default_instance_); + return _internal_has_update() + ? *stage_.update_ + : reinterpret_cast< ::proto::rpc::webrtc::v1::AnswerRequestUpdateStage&>(::proto::rpc::webrtc::v1::_AnswerRequestUpdateStage_default_instance_); } -inline const ::proto::rpc::webrtc::v1::AnswerRequestUpdateStage& AnswerRequest::update() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::proto::rpc::webrtc::v1::AnswerRequestUpdateStage& AnswerRequest::update() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.AnswerRequest.update) return _internal_update(); } inline ::proto::rpc::webrtc::v1::AnswerRequestUpdateStage* AnswerRequest::unsafe_arena_release_update() { // @@protoc_insertion_point(field_unsafe_arena_release:proto.rpc.webrtc.v1.AnswerRequest.update) - if (stage_case() == kUpdate) { + if (_internal_has_update()) { clear_has_stage(); - auto* temp = _impl_.stage_.update_; - _impl_.stage_.update_ = nullptr; + ::proto::rpc::webrtc::v1::AnswerRequestUpdateStage* temp = stage_.update_; + stage_.update_ = nullptr; return temp; } else { return nullptr; } } -inline void AnswerRequest::unsafe_arena_set_allocated_update(::proto::rpc::webrtc::v1::AnswerRequestUpdateStage* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void AnswerRequest::unsafe_arena_set_allocated_update(::proto::rpc::webrtc::v1::AnswerRequestUpdateStage* update) { clear_stage(); - if (value) { + if (update) { set_has_update(); - _impl_.stage_.update_ = value; + stage_.update_ = update; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.rpc.webrtc.v1.AnswerRequest.update) } inline ::proto::rpc::webrtc::v1::AnswerRequestUpdateStage* AnswerRequest::_internal_mutable_update() { - if (stage_case() != kUpdate) { + if (!_internal_has_update()) { clear_stage(); set_has_update(); - _impl_.stage_.update_ = CreateMaybeMessage<::proto::rpc::webrtc::v1::AnswerRequestUpdateStage>(GetArena()); + stage_.update_ = CreateMaybeMessage< ::proto::rpc::webrtc::v1::AnswerRequestUpdateStage >(GetArenaForAllocation()); } - return _impl_.stage_.update_; + return stage_.update_; } -inline ::proto::rpc::webrtc::v1::AnswerRequestUpdateStage* AnswerRequest::mutable_update() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::proto::rpc::webrtc::v1::AnswerRequestUpdateStage* AnswerRequest::mutable_update() { ::proto::rpc::webrtc::v1::AnswerRequestUpdateStage* _msg = _internal_mutable_update(); // @@protoc_insertion_point(field_mutable:proto.rpc.webrtc.v1.AnswerRequest.update) return _msg; } // .proto.rpc.webrtc.v1.AnswerRequestDoneStage done = 4 [json_name = "done"]; -inline bool AnswerRequest::has_done() const { - return stage_case() == kDone; -} inline bool AnswerRequest::_internal_has_done() const { return stage_case() == kDone; } +inline bool AnswerRequest::has_done() const { + return _internal_has_done(); +} inline void AnswerRequest::set_has_done() { - _impl_._oneof_case_[0] = kDone; + _oneof_case_[0] = kDone; } inline void AnswerRequest::clear_done() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (stage_case() == kDone) { - if (GetArena() == nullptr) { - delete _impl_.stage_.done_; + if (_internal_has_done()) { + if (GetArenaForAllocation() == nullptr) { + delete stage_.done_; } clear_has_stage(); } } inline ::proto::rpc::webrtc::v1::AnswerRequestDoneStage* AnswerRequest::release_done() { // @@protoc_insertion_point(field_release:proto.rpc.webrtc.v1.AnswerRequest.done) - if (stage_case() == kDone) { + if (_internal_has_done()) { clear_has_stage(); - auto* temp = _impl_.stage_.done_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::proto::rpc::webrtc::v1::AnswerRequestDoneStage* temp = stage_.done_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.stage_.done_ = nullptr; + stage_.done_ = nullptr; return temp; } else { return nullptr; } } inline const ::proto::rpc::webrtc::v1::AnswerRequestDoneStage& AnswerRequest::_internal_done() const { - return stage_case() == kDone ? *_impl_.stage_.done_ : reinterpret_cast<::proto::rpc::webrtc::v1::AnswerRequestDoneStage&>(::proto::rpc::webrtc::v1::_AnswerRequestDoneStage_default_instance_); + return _internal_has_done() + ? *stage_.done_ + : reinterpret_cast< ::proto::rpc::webrtc::v1::AnswerRequestDoneStage&>(::proto::rpc::webrtc::v1::_AnswerRequestDoneStage_default_instance_); } -inline const ::proto::rpc::webrtc::v1::AnswerRequestDoneStage& AnswerRequest::done() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::proto::rpc::webrtc::v1::AnswerRequestDoneStage& AnswerRequest::done() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.AnswerRequest.done) return _internal_done(); } inline ::proto::rpc::webrtc::v1::AnswerRequestDoneStage* AnswerRequest::unsafe_arena_release_done() { // @@protoc_insertion_point(field_unsafe_arena_release:proto.rpc.webrtc.v1.AnswerRequest.done) - if (stage_case() == kDone) { + if (_internal_has_done()) { clear_has_stage(); - auto* temp = _impl_.stage_.done_; - _impl_.stage_.done_ = nullptr; + ::proto::rpc::webrtc::v1::AnswerRequestDoneStage* temp = stage_.done_; + stage_.done_ = nullptr; return temp; } else { return nullptr; } } -inline void AnswerRequest::unsafe_arena_set_allocated_done(::proto::rpc::webrtc::v1::AnswerRequestDoneStage* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void AnswerRequest::unsafe_arena_set_allocated_done(::proto::rpc::webrtc::v1::AnswerRequestDoneStage* done) { clear_stage(); - if (value) { + if (done) { set_has_done(); - _impl_.stage_.done_ = value; + stage_.done_ = done; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.rpc.webrtc.v1.AnswerRequest.done) } inline ::proto::rpc::webrtc::v1::AnswerRequestDoneStage* AnswerRequest::_internal_mutable_done() { - if (stage_case() != kDone) { + if (!_internal_has_done()) { clear_stage(); set_has_done(); - _impl_.stage_.done_ = CreateMaybeMessage<::proto::rpc::webrtc::v1::AnswerRequestDoneStage>(GetArena()); + stage_.done_ = CreateMaybeMessage< ::proto::rpc::webrtc::v1::AnswerRequestDoneStage >(GetArenaForAllocation()); } - return _impl_.stage_.done_; + return stage_.done_; } -inline ::proto::rpc::webrtc::v1::AnswerRequestDoneStage* AnswerRequest::mutable_done() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::proto::rpc::webrtc::v1::AnswerRequestDoneStage* AnswerRequest::mutable_done() { ::proto::rpc::webrtc::v1::AnswerRequestDoneStage* _msg = _internal_mutable_done(); // @@protoc_insertion_point(field_mutable:proto.rpc.webrtc.v1.AnswerRequest.done) return _msg; } // .proto.rpc.webrtc.v1.AnswerRequestErrorStage error = 5 [json_name = "error"]; -inline bool AnswerRequest::has_error() const { - return stage_case() == kError; -} inline bool AnswerRequest::_internal_has_error() const { return stage_case() == kError; } +inline bool AnswerRequest::has_error() const { + return _internal_has_error(); +} inline void AnswerRequest::set_has_error() { - _impl_._oneof_case_[0] = kError; + _oneof_case_[0] = kError; } inline void AnswerRequest::clear_error() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (stage_case() == kError) { - if (GetArena() == nullptr) { - delete _impl_.stage_.error_; + if (_internal_has_error()) { + if (GetArenaForAllocation() == nullptr) { + delete stage_.error_; } clear_has_stage(); } } inline ::proto::rpc::webrtc::v1::AnswerRequestErrorStage* AnswerRequest::release_error() { // @@protoc_insertion_point(field_release:proto.rpc.webrtc.v1.AnswerRequest.error) - if (stage_case() == kError) { + if (_internal_has_error()) { clear_has_stage(); - auto* temp = _impl_.stage_.error_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::proto::rpc::webrtc::v1::AnswerRequestErrorStage* temp = stage_.error_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.stage_.error_ = nullptr; + stage_.error_ = nullptr; return temp; } else { return nullptr; } } inline const ::proto::rpc::webrtc::v1::AnswerRequestErrorStage& AnswerRequest::_internal_error() const { - return stage_case() == kError ? *_impl_.stage_.error_ : reinterpret_cast<::proto::rpc::webrtc::v1::AnswerRequestErrorStage&>(::proto::rpc::webrtc::v1::_AnswerRequestErrorStage_default_instance_); + return _internal_has_error() + ? *stage_.error_ + : reinterpret_cast< ::proto::rpc::webrtc::v1::AnswerRequestErrorStage&>(::proto::rpc::webrtc::v1::_AnswerRequestErrorStage_default_instance_); } -inline const ::proto::rpc::webrtc::v1::AnswerRequestErrorStage& AnswerRequest::error() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::proto::rpc::webrtc::v1::AnswerRequestErrorStage& AnswerRequest::error() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.AnswerRequest.error) return _internal_error(); } inline ::proto::rpc::webrtc::v1::AnswerRequestErrorStage* AnswerRequest::unsafe_arena_release_error() { // @@protoc_insertion_point(field_unsafe_arena_release:proto.rpc.webrtc.v1.AnswerRequest.error) - if (stage_case() == kError) { + if (_internal_has_error()) { clear_has_stage(); - auto* temp = _impl_.stage_.error_; - _impl_.stage_.error_ = nullptr; + ::proto::rpc::webrtc::v1::AnswerRequestErrorStage* temp = stage_.error_; + stage_.error_ = nullptr; return temp; } else { return nullptr; } } -inline void AnswerRequest::unsafe_arena_set_allocated_error(::proto::rpc::webrtc::v1::AnswerRequestErrorStage* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void AnswerRequest::unsafe_arena_set_allocated_error(::proto::rpc::webrtc::v1::AnswerRequestErrorStage* error) { clear_stage(); - if (value) { + if (error) { set_has_error(); - _impl_.stage_.error_ = value; + stage_.error_ = error; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.rpc.webrtc.v1.AnswerRequest.error) } inline ::proto::rpc::webrtc::v1::AnswerRequestErrorStage* AnswerRequest::_internal_mutable_error() { - if (stage_case() != kError) { + if (!_internal_has_error()) { clear_stage(); set_has_error(); - _impl_.stage_.error_ = CreateMaybeMessage<::proto::rpc::webrtc::v1::AnswerRequestErrorStage>(GetArena()); + stage_.error_ = CreateMaybeMessage< ::proto::rpc::webrtc::v1::AnswerRequestErrorStage >(GetArenaForAllocation()); } - return _impl_.stage_.error_; + return stage_.error_; } -inline ::proto::rpc::webrtc::v1::AnswerRequestErrorStage* AnswerRequest::mutable_error() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::proto::rpc::webrtc::v1::AnswerRequestErrorStage* AnswerRequest::mutable_error() { ::proto::rpc::webrtc::v1::AnswerRequestErrorStage* _msg = _internal_mutable_error(); // @@protoc_insertion_point(field_mutable:proto.rpc.webrtc.v1.AnswerRequest.error) return _msg; } // .proto.rpc.webrtc.v1.AnswerRequestHeartbeatStage heartbeat = 6 [json_name = "heartbeat"]; -inline bool AnswerRequest::has_heartbeat() const { - return stage_case() == kHeartbeat; -} inline bool AnswerRequest::_internal_has_heartbeat() const { return stage_case() == kHeartbeat; } +inline bool AnswerRequest::has_heartbeat() const { + return _internal_has_heartbeat(); +} inline void AnswerRequest::set_has_heartbeat() { - _impl_._oneof_case_[0] = kHeartbeat; + _oneof_case_[0] = kHeartbeat; } inline void AnswerRequest::clear_heartbeat() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (stage_case() == kHeartbeat) { - if (GetArena() == nullptr) { - delete _impl_.stage_.heartbeat_; + if (_internal_has_heartbeat()) { + if (GetArenaForAllocation() == nullptr) { + delete stage_.heartbeat_; } clear_has_stage(); } } inline ::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage* AnswerRequest::release_heartbeat() { // @@protoc_insertion_point(field_release:proto.rpc.webrtc.v1.AnswerRequest.heartbeat) - if (stage_case() == kHeartbeat) { + if (_internal_has_heartbeat()) { clear_has_stage(); - auto* temp = _impl_.stage_.heartbeat_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage* temp = stage_.heartbeat_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.stage_.heartbeat_ = nullptr; + stage_.heartbeat_ = nullptr; return temp; } else { return nullptr; } } inline const ::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage& AnswerRequest::_internal_heartbeat() const { - return stage_case() == kHeartbeat ? *_impl_.stage_.heartbeat_ : reinterpret_cast<::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage&>(::proto::rpc::webrtc::v1::_AnswerRequestHeartbeatStage_default_instance_); + return _internal_has_heartbeat() + ? *stage_.heartbeat_ + : reinterpret_cast< ::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage&>(::proto::rpc::webrtc::v1::_AnswerRequestHeartbeatStage_default_instance_); } -inline const ::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage& AnswerRequest::heartbeat() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage& AnswerRequest::heartbeat() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.AnswerRequest.heartbeat) return _internal_heartbeat(); } inline ::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage* AnswerRequest::unsafe_arena_release_heartbeat() { // @@protoc_insertion_point(field_unsafe_arena_release:proto.rpc.webrtc.v1.AnswerRequest.heartbeat) - if (stage_case() == kHeartbeat) { + if (_internal_has_heartbeat()) { clear_has_stage(); - auto* temp = _impl_.stage_.heartbeat_; - _impl_.stage_.heartbeat_ = nullptr; + ::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage* temp = stage_.heartbeat_; + stage_.heartbeat_ = nullptr; return temp; } else { return nullptr; } } -inline void AnswerRequest::unsafe_arena_set_allocated_heartbeat(::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void AnswerRequest::unsafe_arena_set_allocated_heartbeat(::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage* heartbeat) { clear_stage(); - if (value) { + if (heartbeat) { set_has_heartbeat(); - _impl_.stage_.heartbeat_ = value; + stage_.heartbeat_ = heartbeat; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.rpc.webrtc.v1.AnswerRequest.heartbeat) } inline ::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage* AnswerRequest::_internal_mutable_heartbeat() { - if (stage_case() != kHeartbeat) { + if (!_internal_has_heartbeat()) { clear_stage(); set_has_heartbeat(); - _impl_.stage_.heartbeat_ = CreateMaybeMessage<::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage>(GetArena()); + stage_.heartbeat_ = CreateMaybeMessage< ::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage >(GetArenaForAllocation()); } - return _impl_.stage_.heartbeat_; + return stage_.heartbeat_; } -inline ::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage* AnswerRequest::mutable_heartbeat() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage* AnswerRequest::mutable_heartbeat() { ::proto::rpc::webrtc::v1::AnswerRequestHeartbeatStage* _msg = _internal_mutable_heartbeat(); // @@protoc_insertion_point(field_mutable:proto.rpc.webrtc.v1.AnswerRequest.heartbeat) return _msg; @@ -6558,10 +5795,10 @@ inline bool AnswerRequest::has_stage() const { return stage_case() != STAGE_NOT_SET; } inline void AnswerRequest::clear_has_stage() { - _impl_._oneof_case_[0] = STAGE_NOT_SET; + _oneof_case_[0] = STAGE_NOT_SET; } inline AnswerRequest::StageCase AnswerRequest::stage_case() const { - return AnswerRequest::StageCase(_impl_._oneof_case_[0]); + return AnswerRequest::StageCase(_oneof_case_[0]); } // ------------------------------------------------------------------- @@ -6569,54 +5806,51 @@ inline AnswerRequest::StageCase AnswerRequest::stage_case() const { // string sdp = 1 [json_name = "sdp"]; inline void AnswerResponseInitStage::clear_sdp() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.sdp_.ClearToEmpty(); + sdp_.ClearToEmpty(); } -inline const std::string& AnswerResponseInitStage::sdp() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& AnswerResponseInitStage::sdp() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.AnswerResponseInitStage.sdp) return _internal_sdp(); } -template -inline PROTOBUF_ALWAYS_INLINE void AnswerResponseInitStage::set_sdp(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.sdp_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void AnswerResponseInitStage::set_sdp(ArgT0&& arg0, ArgT... args) { + + sdp_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.rpc.webrtc.v1.AnswerResponseInitStage.sdp) } -inline std::string* AnswerResponseInitStage::mutable_sdp() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* AnswerResponseInitStage::mutable_sdp() { std::string* _s = _internal_mutable_sdp(); // @@protoc_insertion_point(field_mutable:proto.rpc.webrtc.v1.AnswerResponseInitStage.sdp) return _s; } inline const std::string& AnswerResponseInitStage::_internal_sdp() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.sdp_.Get(); + return sdp_.Get(); } inline void AnswerResponseInitStage::_internal_set_sdp(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.sdp_.Set(value, GetArena()); + + sdp_.Set(value, GetArenaForAllocation()); } inline std::string* AnswerResponseInitStage::_internal_mutable_sdp() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.sdp_.Mutable( GetArena()); + + return sdp_.Mutable(GetArenaForAllocation()); } inline std::string* AnswerResponseInitStage::release_sdp() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:proto.rpc.webrtc.v1.AnswerResponseInitStage.sdp) - return _impl_.sdp_.Release(); -} -inline void AnswerResponseInitStage::set_allocated_sdp(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.sdp_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.sdp_.IsDefault()) { - _impl_.sdp_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return sdp_.Release(); +} +inline void AnswerResponseInitStage::set_allocated_sdp(std::string* sdp) { + if (sdp != nullptr) { + + } else { + + } + sdp_.SetAllocated(sdp, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (sdp_.IsDefault()) { + sdp_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:proto.rpc.webrtc.v1.AnswerResponseInitStage.sdp) } @@ -6625,98 +5859,92 @@ inline void AnswerResponseInitStage::set_allocated_sdp(std::string* value) { // AnswerResponseUpdateStage // .proto.rpc.webrtc.v1.ICECandidate candidate = 1 [json_name = "candidate"]; +inline bool AnswerResponseUpdateStage::_internal_has_candidate() const { + return this != internal_default_instance() && candidate_ != nullptr; +} inline bool AnswerResponseUpdateStage::has_candidate() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.candidate_ != nullptr); - return value; + return _internal_has_candidate(); } inline void AnswerResponseUpdateStage::clear_candidate() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.candidate_ != nullptr) _impl_.candidate_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && candidate_ != nullptr) { + delete candidate_; + } + candidate_ = nullptr; } inline const ::proto::rpc::webrtc::v1::ICECandidate& AnswerResponseUpdateStage::_internal_candidate() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::proto::rpc::webrtc::v1::ICECandidate* p = _impl_.candidate_; - return p != nullptr ? *p : reinterpret_cast(::proto::rpc::webrtc::v1::_ICECandidate_default_instance_); + const ::proto::rpc::webrtc::v1::ICECandidate* p = candidate_; + return p != nullptr ? *p : reinterpret_cast( + ::proto::rpc::webrtc::v1::_ICECandidate_default_instance_); } -inline const ::proto::rpc::webrtc::v1::ICECandidate& AnswerResponseUpdateStage::candidate() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::proto::rpc::webrtc::v1::ICECandidate& AnswerResponseUpdateStage::candidate() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.AnswerResponseUpdateStage.candidate) return _internal_candidate(); } -inline void AnswerResponseUpdateStage::unsafe_arena_set_allocated_candidate(::proto::rpc::webrtc::v1::ICECandidate* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.candidate_); +inline void AnswerResponseUpdateStage::unsafe_arena_set_allocated_candidate( + ::proto::rpc::webrtc::v1::ICECandidate* candidate) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(candidate_); } - _impl_.candidate_ = reinterpret_cast<::proto::rpc::webrtc::v1::ICECandidate*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + candidate_ = candidate; + if (candidate) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.rpc.webrtc.v1.AnswerResponseUpdateStage.candidate) } inline ::proto::rpc::webrtc::v1::ICECandidate* AnswerResponseUpdateStage::release_candidate() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::proto::rpc::webrtc::v1::ICECandidate* released = _impl_.candidate_; - _impl_.candidate_ = nullptr; + + ::proto::rpc::webrtc::v1::ICECandidate* temp = candidate_; + candidate_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::proto::rpc::webrtc::v1::ICECandidate* AnswerResponseUpdateStage::unsafe_arena_release_candidate() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:proto.rpc.webrtc.v1.AnswerResponseUpdateStage.candidate) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::proto::rpc::webrtc::v1::ICECandidate* temp = _impl_.candidate_; - _impl_.candidate_ = nullptr; + + ::proto::rpc::webrtc::v1::ICECandidate* temp = candidate_; + candidate_ = nullptr; return temp; } inline ::proto::rpc::webrtc::v1::ICECandidate* AnswerResponseUpdateStage::_internal_mutable_candidate() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.candidate_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::rpc::webrtc::v1::ICECandidate>(GetArena()); - _impl_.candidate_ = reinterpret_cast<::proto::rpc::webrtc::v1::ICECandidate*>(p); + + if (candidate_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::rpc::webrtc::v1::ICECandidate>(GetArenaForAllocation()); + candidate_ = p; } - return _impl_.candidate_; + return candidate_; } -inline ::proto::rpc::webrtc::v1::ICECandidate* AnswerResponseUpdateStage::mutable_candidate() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::proto::rpc::webrtc::v1::ICECandidate* AnswerResponseUpdateStage::mutable_candidate() { ::proto::rpc::webrtc::v1::ICECandidate* _msg = _internal_mutable_candidate(); // @@protoc_insertion_point(field_mutable:proto.rpc.webrtc.v1.AnswerResponseUpdateStage.candidate) return _msg; } -inline void AnswerResponseUpdateStage::set_allocated_candidate(::proto::rpc::webrtc::v1::ICECandidate* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void AnswerResponseUpdateStage::set_allocated_candidate(::proto::rpc::webrtc::v1::ICECandidate* candidate) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::proto::rpc::webrtc::v1::ICECandidate*>(_impl_.candidate_); + delete candidate_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::proto::rpc::webrtc::v1::ICECandidate*>(value)->GetArena(); + if (candidate) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(candidate); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + candidate = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, candidate, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.candidate_ = reinterpret_cast<::proto::rpc::webrtc::v1::ICECandidate*>(value); + candidate_ = candidate; // @@protoc_insertion_point(field_set_allocated:proto.rpc.webrtc.v1.AnswerResponseUpdateStage.candidate) } @@ -6729,93 +5957,87 @@ inline void AnswerResponseUpdateStage::set_allocated_candidate(::proto::rpc::web // AnswerResponseErrorStage // .google.rpc.Status status = 1 [json_name = "status"]; +inline bool AnswerResponseErrorStage::_internal_has_status() const { + return this != internal_default_instance() && status_ != nullptr; +} inline bool AnswerResponseErrorStage::has_status() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.status_ != nullptr); - return value; + return _internal_has_status(); } inline const ::google::rpc::Status& AnswerResponseErrorStage::_internal_status() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::rpc::Status* p = _impl_.status_; - return p != nullptr ? *p : reinterpret_cast(::google::rpc::_Status_default_instance_); + const ::google::rpc::Status* p = status_; + return p != nullptr ? *p : reinterpret_cast( + ::google::rpc::_Status_default_instance_); } -inline const ::google::rpc::Status& AnswerResponseErrorStage::status() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::rpc::Status& AnswerResponseErrorStage::status() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.AnswerResponseErrorStage.status) return _internal_status(); } -inline void AnswerResponseErrorStage::unsafe_arena_set_allocated_status(::google::rpc::Status* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.status_); +inline void AnswerResponseErrorStage::unsafe_arena_set_allocated_status( + ::google::rpc::Status* status) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); } - _impl_.status_ = reinterpret_cast<::google::rpc::Status*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + status_ = status; + if (status) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.rpc.webrtc.v1.AnswerResponseErrorStage.status) } inline ::google::rpc::Status* AnswerResponseErrorStage::release_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::rpc::Status* released = _impl_.status_; - _impl_.status_ = nullptr; + + ::google::rpc::Status* temp = status_; + status_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::google::rpc::Status* AnswerResponseErrorStage::unsafe_arena_release_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:proto.rpc.webrtc.v1.AnswerResponseErrorStage.status) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::rpc::Status* temp = _impl_.status_; - _impl_.status_ = nullptr; + + ::google::rpc::Status* temp = status_; + status_ = nullptr; return temp; } inline ::google::rpc::Status* AnswerResponseErrorStage::_internal_mutable_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.status_ == nullptr) { - auto* p = CreateMaybeMessage<::google::rpc::Status>(GetArena()); - _impl_.status_ = reinterpret_cast<::google::rpc::Status*>(p); + + if (status_ == nullptr) { + auto* p = CreateMaybeMessage<::google::rpc::Status>(GetArenaForAllocation()); + status_ = p; } - return _impl_.status_; + return status_; } -inline ::google::rpc::Status* AnswerResponseErrorStage::mutable_status() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::rpc::Status* AnswerResponseErrorStage::mutable_status() { ::google::rpc::Status* _msg = _internal_mutable_status(); // @@protoc_insertion_point(field_mutable:proto.rpc.webrtc.v1.AnswerResponseErrorStage.status) return _msg; } -inline void AnswerResponseErrorStage::set_allocated_status(::google::rpc::Status* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void AnswerResponseErrorStage::set_allocated_status(::google::rpc::Status* status) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.status_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (status) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(status)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, status, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.status_ = reinterpret_cast<::google::rpc::Status*>(value); + status_ = status; // @@protoc_insertion_point(field_set_allocated:proto.rpc.webrtc.v1.AnswerResponseErrorStage.status) } @@ -6825,356 +6047,345 @@ inline void AnswerResponseErrorStage::set_allocated_status(::google::rpc::Status // string uuid = 1 [json_name = "uuid"]; inline void AnswerResponse::clear_uuid() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.uuid_.ClearToEmpty(); + uuid_.ClearToEmpty(); } -inline const std::string& AnswerResponse::uuid() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& AnswerResponse::uuid() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.AnswerResponse.uuid) return _internal_uuid(); } -template -inline PROTOBUF_ALWAYS_INLINE void AnswerResponse::set_uuid(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.uuid_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void AnswerResponse::set_uuid(ArgT0&& arg0, ArgT... args) { + + uuid_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.rpc.webrtc.v1.AnswerResponse.uuid) } -inline std::string* AnswerResponse::mutable_uuid() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* AnswerResponse::mutable_uuid() { std::string* _s = _internal_mutable_uuid(); // @@protoc_insertion_point(field_mutable:proto.rpc.webrtc.v1.AnswerResponse.uuid) return _s; } inline const std::string& AnswerResponse::_internal_uuid() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.uuid_.Get(); + return uuid_.Get(); } inline void AnswerResponse::_internal_set_uuid(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.uuid_.Set(value, GetArena()); + + uuid_.Set(value, GetArenaForAllocation()); } inline std::string* AnswerResponse::_internal_mutable_uuid() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.uuid_.Mutable( GetArena()); + + return uuid_.Mutable(GetArenaForAllocation()); } inline std::string* AnswerResponse::release_uuid() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:proto.rpc.webrtc.v1.AnswerResponse.uuid) - return _impl_.uuid_.Release(); -} -inline void AnswerResponse::set_allocated_uuid(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.uuid_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.uuid_.IsDefault()) { - _impl_.uuid_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return uuid_.Release(); +} +inline void AnswerResponse::set_allocated_uuid(std::string* uuid) { + if (uuid != nullptr) { + + } else { + + } + uuid_.SetAllocated(uuid, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (uuid_.IsDefault()) { + uuid_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:proto.rpc.webrtc.v1.AnswerResponse.uuid) } // .proto.rpc.webrtc.v1.AnswerResponseInitStage init = 2 [json_name = "init"]; -inline bool AnswerResponse::has_init() const { - return stage_case() == kInit; -} inline bool AnswerResponse::_internal_has_init() const { return stage_case() == kInit; } +inline bool AnswerResponse::has_init() const { + return _internal_has_init(); +} inline void AnswerResponse::set_has_init() { - _impl_._oneof_case_[0] = kInit; + _oneof_case_[0] = kInit; } inline void AnswerResponse::clear_init() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (stage_case() == kInit) { - if (GetArena() == nullptr) { - delete _impl_.stage_.init_; + if (_internal_has_init()) { + if (GetArenaForAllocation() == nullptr) { + delete stage_.init_; } clear_has_stage(); } } inline ::proto::rpc::webrtc::v1::AnswerResponseInitStage* AnswerResponse::release_init() { // @@protoc_insertion_point(field_release:proto.rpc.webrtc.v1.AnswerResponse.init) - if (stage_case() == kInit) { + if (_internal_has_init()) { clear_has_stage(); - auto* temp = _impl_.stage_.init_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::proto::rpc::webrtc::v1::AnswerResponseInitStage* temp = stage_.init_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.stage_.init_ = nullptr; + stage_.init_ = nullptr; return temp; } else { return nullptr; } } inline const ::proto::rpc::webrtc::v1::AnswerResponseInitStage& AnswerResponse::_internal_init() const { - return stage_case() == kInit ? *_impl_.stage_.init_ : reinterpret_cast<::proto::rpc::webrtc::v1::AnswerResponseInitStage&>(::proto::rpc::webrtc::v1::_AnswerResponseInitStage_default_instance_); + return _internal_has_init() + ? *stage_.init_ + : reinterpret_cast< ::proto::rpc::webrtc::v1::AnswerResponseInitStage&>(::proto::rpc::webrtc::v1::_AnswerResponseInitStage_default_instance_); } -inline const ::proto::rpc::webrtc::v1::AnswerResponseInitStage& AnswerResponse::init() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::proto::rpc::webrtc::v1::AnswerResponseInitStage& AnswerResponse::init() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.AnswerResponse.init) return _internal_init(); } inline ::proto::rpc::webrtc::v1::AnswerResponseInitStage* AnswerResponse::unsafe_arena_release_init() { // @@protoc_insertion_point(field_unsafe_arena_release:proto.rpc.webrtc.v1.AnswerResponse.init) - if (stage_case() == kInit) { + if (_internal_has_init()) { clear_has_stage(); - auto* temp = _impl_.stage_.init_; - _impl_.stage_.init_ = nullptr; + ::proto::rpc::webrtc::v1::AnswerResponseInitStage* temp = stage_.init_; + stage_.init_ = nullptr; return temp; } else { return nullptr; } } -inline void AnswerResponse::unsafe_arena_set_allocated_init(::proto::rpc::webrtc::v1::AnswerResponseInitStage* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void AnswerResponse::unsafe_arena_set_allocated_init(::proto::rpc::webrtc::v1::AnswerResponseInitStage* init) { clear_stage(); - if (value) { + if (init) { set_has_init(); - _impl_.stage_.init_ = value; + stage_.init_ = init; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.rpc.webrtc.v1.AnswerResponse.init) } inline ::proto::rpc::webrtc::v1::AnswerResponseInitStage* AnswerResponse::_internal_mutable_init() { - if (stage_case() != kInit) { + if (!_internal_has_init()) { clear_stage(); set_has_init(); - _impl_.stage_.init_ = CreateMaybeMessage<::proto::rpc::webrtc::v1::AnswerResponseInitStage>(GetArena()); + stage_.init_ = CreateMaybeMessage< ::proto::rpc::webrtc::v1::AnswerResponseInitStage >(GetArenaForAllocation()); } - return _impl_.stage_.init_; + return stage_.init_; } -inline ::proto::rpc::webrtc::v1::AnswerResponseInitStage* AnswerResponse::mutable_init() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::proto::rpc::webrtc::v1::AnswerResponseInitStage* AnswerResponse::mutable_init() { ::proto::rpc::webrtc::v1::AnswerResponseInitStage* _msg = _internal_mutable_init(); // @@protoc_insertion_point(field_mutable:proto.rpc.webrtc.v1.AnswerResponse.init) return _msg; } // .proto.rpc.webrtc.v1.AnswerResponseUpdateStage update = 3 [json_name = "update"]; -inline bool AnswerResponse::has_update() const { - return stage_case() == kUpdate; -} inline bool AnswerResponse::_internal_has_update() const { return stage_case() == kUpdate; } +inline bool AnswerResponse::has_update() const { + return _internal_has_update(); +} inline void AnswerResponse::set_has_update() { - _impl_._oneof_case_[0] = kUpdate; + _oneof_case_[0] = kUpdate; } inline void AnswerResponse::clear_update() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (stage_case() == kUpdate) { - if (GetArena() == nullptr) { - delete _impl_.stage_.update_; + if (_internal_has_update()) { + if (GetArenaForAllocation() == nullptr) { + delete stage_.update_; } clear_has_stage(); } } inline ::proto::rpc::webrtc::v1::AnswerResponseUpdateStage* AnswerResponse::release_update() { // @@protoc_insertion_point(field_release:proto.rpc.webrtc.v1.AnswerResponse.update) - if (stage_case() == kUpdate) { + if (_internal_has_update()) { clear_has_stage(); - auto* temp = _impl_.stage_.update_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::proto::rpc::webrtc::v1::AnswerResponseUpdateStage* temp = stage_.update_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.stage_.update_ = nullptr; + stage_.update_ = nullptr; return temp; } else { return nullptr; } } inline const ::proto::rpc::webrtc::v1::AnswerResponseUpdateStage& AnswerResponse::_internal_update() const { - return stage_case() == kUpdate ? *_impl_.stage_.update_ : reinterpret_cast<::proto::rpc::webrtc::v1::AnswerResponseUpdateStage&>(::proto::rpc::webrtc::v1::_AnswerResponseUpdateStage_default_instance_); + return _internal_has_update() + ? *stage_.update_ + : reinterpret_cast< ::proto::rpc::webrtc::v1::AnswerResponseUpdateStage&>(::proto::rpc::webrtc::v1::_AnswerResponseUpdateStage_default_instance_); } -inline const ::proto::rpc::webrtc::v1::AnswerResponseUpdateStage& AnswerResponse::update() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::proto::rpc::webrtc::v1::AnswerResponseUpdateStage& AnswerResponse::update() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.AnswerResponse.update) return _internal_update(); } inline ::proto::rpc::webrtc::v1::AnswerResponseUpdateStage* AnswerResponse::unsafe_arena_release_update() { // @@protoc_insertion_point(field_unsafe_arena_release:proto.rpc.webrtc.v1.AnswerResponse.update) - if (stage_case() == kUpdate) { + if (_internal_has_update()) { clear_has_stage(); - auto* temp = _impl_.stage_.update_; - _impl_.stage_.update_ = nullptr; + ::proto::rpc::webrtc::v1::AnswerResponseUpdateStage* temp = stage_.update_; + stage_.update_ = nullptr; return temp; } else { return nullptr; } } -inline void AnswerResponse::unsafe_arena_set_allocated_update(::proto::rpc::webrtc::v1::AnswerResponseUpdateStage* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void AnswerResponse::unsafe_arena_set_allocated_update(::proto::rpc::webrtc::v1::AnswerResponseUpdateStage* update) { clear_stage(); - if (value) { + if (update) { set_has_update(); - _impl_.stage_.update_ = value; + stage_.update_ = update; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.rpc.webrtc.v1.AnswerResponse.update) } inline ::proto::rpc::webrtc::v1::AnswerResponseUpdateStage* AnswerResponse::_internal_mutable_update() { - if (stage_case() != kUpdate) { + if (!_internal_has_update()) { clear_stage(); set_has_update(); - _impl_.stage_.update_ = CreateMaybeMessage<::proto::rpc::webrtc::v1::AnswerResponseUpdateStage>(GetArena()); + stage_.update_ = CreateMaybeMessage< ::proto::rpc::webrtc::v1::AnswerResponseUpdateStage >(GetArenaForAllocation()); } - return _impl_.stage_.update_; + return stage_.update_; } -inline ::proto::rpc::webrtc::v1::AnswerResponseUpdateStage* AnswerResponse::mutable_update() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::proto::rpc::webrtc::v1::AnswerResponseUpdateStage* AnswerResponse::mutable_update() { ::proto::rpc::webrtc::v1::AnswerResponseUpdateStage* _msg = _internal_mutable_update(); // @@protoc_insertion_point(field_mutable:proto.rpc.webrtc.v1.AnswerResponse.update) return _msg; } // .proto.rpc.webrtc.v1.AnswerResponseDoneStage done = 4 [json_name = "done"]; -inline bool AnswerResponse::has_done() const { - return stage_case() == kDone; -} inline bool AnswerResponse::_internal_has_done() const { return stage_case() == kDone; } +inline bool AnswerResponse::has_done() const { + return _internal_has_done(); +} inline void AnswerResponse::set_has_done() { - _impl_._oneof_case_[0] = kDone; + _oneof_case_[0] = kDone; } inline void AnswerResponse::clear_done() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (stage_case() == kDone) { - if (GetArena() == nullptr) { - delete _impl_.stage_.done_; + if (_internal_has_done()) { + if (GetArenaForAllocation() == nullptr) { + delete stage_.done_; } clear_has_stage(); } } inline ::proto::rpc::webrtc::v1::AnswerResponseDoneStage* AnswerResponse::release_done() { // @@protoc_insertion_point(field_release:proto.rpc.webrtc.v1.AnswerResponse.done) - if (stage_case() == kDone) { + if (_internal_has_done()) { clear_has_stage(); - auto* temp = _impl_.stage_.done_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::proto::rpc::webrtc::v1::AnswerResponseDoneStage* temp = stage_.done_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.stage_.done_ = nullptr; + stage_.done_ = nullptr; return temp; } else { return nullptr; } } inline const ::proto::rpc::webrtc::v1::AnswerResponseDoneStage& AnswerResponse::_internal_done() const { - return stage_case() == kDone ? *_impl_.stage_.done_ : reinterpret_cast<::proto::rpc::webrtc::v1::AnswerResponseDoneStage&>(::proto::rpc::webrtc::v1::_AnswerResponseDoneStage_default_instance_); + return _internal_has_done() + ? *stage_.done_ + : reinterpret_cast< ::proto::rpc::webrtc::v1::AnswerResponseDoneStage&>(::proto::rpc::webrtc::v1::_AnswerResponseDoneStage_default_instance_); } -inline const ::proto::rpc::webrtc::v1::AnswerResponseDoneStage& AnswerResponse::done() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::proto::rpc::webrtc::v1::AnswerResponseDoneStage& AnswerResponse::done() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.AnswerResponse.done) return _internal_done(); } inline ::proto::rpc::webrtc::v1::AnswerResponseDoneStage* AnswerResponse::unsafe_arena_release_done() { // @@protoc_insertion_point(field_unsafe_arena_release:proto.rpc.webrtc.v1.AnswerResponse.done) - if (stage_case() == kDone) { + if (_internal_has_done()) { clear_has_stage(); - auto* temp = _impl_.stage_.done_; - _impl_.stage_.done_ = nullptr; + ::proto::rpc::webrtc::v1::AnswerResponseDoneStage* temp = stage_.done_; + stage_.done_ = nullptr; return temp; } else { return nullptr; } } -inline void AnswerResponse::unsafe_arena_set_allocated_done(::proto::rpc::webrtc::v1::AnswerResponseDoneStage* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void AnswerResponse::unsafe_arena_set_allocated_done(::proto::rpc::webrtc::v1::AnswerResponseDoneStage* done) { clear_stage(); - if (value) { + if (done) { set_has_done(); - _impl_.stage_.done_ = value; + stage_.done_ = done; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.rpc.webrtc.v1.AnswerResponse.done) } inline ::proto::rpc::webrtc::v1::AnswerResponseDoneStage* AnswerResponse::_internal_mutable_done() { - if (stage_case() != kDone) { + if (!_internal_has_done()) { clear_stage(); set_has_done(); - _impl_.stage_.done_ = CreateMaybeMessage<::proto::rpc::webrtc::v1::AnswerResponseDoneStage>(GetArena()); + stage_.done_ = CreateMaybeMessage< ::proto::rpc::webrtc::v1::AnswerResponseDoneStage >(GetArenaForAllocation()); } - return _impl_.stage_.done_; + return stage_.done_; } -inline ::proto::rpc::webrtc::v1::AnswerResponseDoneStage* AnswerResponse::mutable_done() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::proto::rpc::webrtc::v1::AnswerResponseDoneStage* AnswerResponse::mutable_done() { ::proto::rpc::webrtc::v1::AnswerResponseDoneStage* _msg = _internal_mutable_done(); // @@protoc_insertion_point(field_mutable:proto.rpc.webrtc.v1.AnswerResponse.done) return _msg; } // .proto.rpc.webrtc.v1.AnswerResponseErrorStage error = 5 [json_name = "error"]; -inline bool AnswerResponse::has_error() const { - return stage_case() == kError; -} inline bool AnswerResponse::_internal_has_error() const { return stage_case() == kError; } +inline bool AnswerResponse::has_error() const { + return _internal_has_error(); +} inline void AnswerResponse::set_has_error() { - _impl_._oneof_case_[0] = kError; + _oneof_case_[0] = kError; } inline void AnswerResponse::clear_error() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (stage_case() == kError) { - if (GetArena() == nullptr) { - delete _impl_.stage_.error_; + if (_internal_has_error()) { + if (GetArenaForAllocation() == nullptr) { + delete stage_.error_; } clear_has_stage(); } } inline ::proto::rpc::webrtc::v1::AnswerResponseErrorStage* AnswerResponse::release_error() { // @@protoc_insertion_point(field_release:proto.rpc.webrtc.v1.AnswerResponse.error) - if (stage_case() == kError) { + if (_internal_has_error()) { clear_has_stage(); - auto* temp = _impl_.stage_.error_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::proto::rpc::webrtc::v1::AnswerResponseErrorStage* temp = stage_.error_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.stage_.error_ = nullptr; + stage_.error_ = nullptr; return temp; } else { return nullptr; } } inline const ::proto::rpc::webrtc::v1::AnswerResponseErrorStage& AnswerResponse::_internal_error() const { - return stage_case() == kError ? *_impl_.stage_.error_ : reinterpret_cast<::proto::rpc::webrtc::v1::AnswerResponseErrorStage&>(::proto::rpc::webrtc::v1::_AnswerResponseErrorStage_default_instance_); + return _internal_has_error() + ? *stage_.error_ + : reinterpret_cast< ::proto::rpc::webrtc::v1::AnswerResponseErrorStage&>(::proto::rpc::webrtc::v1::_AnswerResponseErrorStage_default_instance_); } -inline const ::proto::rpc::webrtc::v1::AnswerResponseErrorStage& AnswerResponse::error() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::proto::rpc::webrtc::v1::AnswerResponseErrorStage& AnswerResponse::error() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.AnswerResponse.error) return _internal_error(); } inline ::proto::rpc::webrtc::v1::AnswerResponseErrorStage* AnswerResponse::unsafe_arena_release_error() { // @@protoc_insertion_point(field_unsafe_arena_release:proto.rpc.webrtc.v1.AnswerResponse.error) - if (stage_case() == kError) { + if (_internal_has_error()) { clear_has_stage(); - auto* temp = _impl_.stage_.error_; - _impl_.stage_.error_ = nullptr; + ::proto::rpc::webrtc::v1::AnswerResponseErrorStage* temp = stage_.error_; + stage_.error_ = nullptr; return temp; } else { return nullptr; } } -inline void AnswerResponse::unsafe_arena_set_allocated_error(::proto::rpc::webrtc::v1::AnswerResponseErrorStage* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void AnswerResponse::unsafe_arena_set_allocated_error(::proto::rpc::webrtc::v1::AnswerResponseErrorStage* error) { clear_stage(); - if (value) { + if (error) { set_has_error(); - _impl_.stage_.error_ = value; + stage_.error_ = error; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.rpc.webrtc.v1.AnswerResponse.error) } inline ::proto::rpc::webrtc::v1::AnswerResponseErrorStage* AnswerResponse::_internal_mutable_error() { - if (stage_case() != kError) { + if (!_internal_has_error()) { clear_stage(); set_has_error(); - _impl_.stage_.error_ = CreateMaybeMessage<::proto::rpc::webrtc::v1::AnswerResponseErrorStage>(GetArena()); + stage_.error_ = CreateMaybeMessage< ::proto::rpc::webrtc::v1::AnswerResponseErrorStage >(GetArenaForAllocation()); } - return _impl_.stage_.error_; + return stage_.error_; } -inline ::proto::rpc::webrtc::v1::AnswerResponseErrorStage* AnswerResponse::mutable_error() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::proto::rpc::webrtc::v1::AnswerResponseErrorStage* AnswerResponse::mutable_error() { ::proto::rpc::webrtc::v1::AnswerResponseErrorStage* _msg = _internal_mutable_error(); // @@protoc_insertion_point(field_mutable:proto.rpc.webrtc.v1.AnswerResponse.error) return _msg; @@ -7184,10 +6395,10 @@ inline bool AnswerResponse::has_stage() const { return stage_case() != STAGE_NOT_SET; } inline void AnswerResponse::clear_has_stage() { - _impl_._oneof_case_[0] = STAGE_NOT_SET; + _oneof_case_[0] = STAGE_NOT_SET; } inline AnswerResponse::StageCase AnswerResponse::stage_case() const { - return AnswerResponse::StageCase(_impl_._oneof_case_[0]); + return AnswerResponse::StageCase(_oneof_case_[0]); } // ------------------------------------------------------------------- @@ -7198,114 +6409,149 @@ inline AnswerResponse::StageCase AnswerResponse::stage_case() const { // OptionalWebRTCConfigResponse // .proto.rpc.webrtc.v1.WebRTCConfig config = 1 [json_name = "config"]; +inline bool OptionalWebRTCConfigResponse::_internal_has_config() const { + return this != internal_default_instance() && config_ != nullptr; +} inline bool OptionalWebRTCConfigResponse::has_config() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.config_ != nullptr); - return value; + return _internal_has_config(); } inline void OptionalWebRTCConfigResponse::clear_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.config_ != nullptr) _impl_.config_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && config_ != nullptr) { + delete config_; + } + config_ = nullptr; } inline const ::proto::rpc::webrtc::v1::WebRTCConfig& OptionalWebRTCConfigResponse::_internal_config() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::proto::rpc::webrtc::v1::WebRTCConfig* p = _impl_.config_; - return p != nullptr ? *p : reinterpret_cast(::proto::rpc::webrtc::v1::_WebRTCConfig_default_instance_); + const ::proto::rpc::webrtc::v1::WebRTCConfig* p = config_; + return p != nullptr ? *p : reinterpret_cast( + ::proto::rpc::webrtc::v1::_WebRTCConfig_default_instance_); } -inline const ::proto::rpc::webrtc::v1::WebRTCConfig& OptionalWebRTCConfigResponse::config() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::proto::rpc::webrtc::v1::WebRTCConfig& OptionalWebRTCConfigResponse::config() const { // @@protoc_insertion_point(field_get:proto.rpc.webrtc.v1.OptionalWebRTCConfigResponse.config) return _internal_config(); } -inline void OptionalWebRTCConfigResponse::unsafe_arena_set_allocated_config(::proto::rpc::webrtc::v1::WebRTCConfig* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.config_); +inline void OptionalWebRTCConfigResponse::unsafe_arena_set_allocated_config( + ::proto::rpc::webrtc::v1::WebRTCConfig* config) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(config_); } - _impl_.config_ = reinterpret_cast<::proto::rpc::webrtc::v1::WebRTCConfig*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + config_ = config; + if (config) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.rpc.webrtc.v1.OptionalWebRTCConfigResponse.config) } inline ::proto::rpc::webrtc::v1::WebRTCConfig* OptionalWebRTCConfigResponse::release_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::proto::rpc::webrtc::v1::WebRTCConfig* released = _impl_.config_; - _impl_.config_ = nullptr; + + ::proto::rpc::webrtc::v1::WebRTCConfig* temp = config_; + config_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::proto::rpc::webrtc::v1::WebRTCConfig* OptionalWebRTCConfigResponse::unsafe_arena_release_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:proto.rpc.webrtc.v1.OptionalWebRTCConfigResponse.config) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::proto::rpc::webrtc::v1::WebRTCConfig* temp = _impl_.config_; - _impl_.config_ = nullptr; + + ::proto::rpc::webrtc::v1::WebRTCConfig* temp = config_; + config_ = nullptr; return temp; } inline ::proto::rpc::webrtc::v1::WebRTCConfig* OptionalWebRTCConfigResponse::_internal_mutable_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.config_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::rpc::webrtc::v1::WebRTCConfig>(GetArena()); - _impl_.config_ = reinterpret_cast<::proto::rpc::webrtc::v1::WebRTCConfig*>(p); + + if (config_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::rpc::webrtc::v1::WebRTCConfig>(GetArenaForAllocation()); + config_ = p; } - return _impl_.config_; + return config_; } -inline ::proto::rpc::webrtc::v1::WebRTCConfig* OptionalWebRTCConfigResponse::mutable_config() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::proto::rpc::webrtc::v1::WebRTCConfig* OptionalWebRTCConfigResponse::mutable_config() { ::proto::rpc::webrtc::v1::WebRTCConfig* _msg = _internal_mutable_config(); // @@protoc_insertion_point(field_mutable:proto.rpc.webrtc.v1.OptionalWebRTCConfigResponse.config) return _msg; } -inline void OptionalWebRTCConfigResponse::set_allocated_config(::proto::rpc::webrtc::v1::WebRTCConfig* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void OptionalWebRTCConfigResponse::set_allocated_config(::proto::rpc::webrtc::v1::WebRTCConfig* config) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::proto::rpc::webrtc::v1::WebRTCConfig*>(_impl_.config_); + delete config_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::proto::rpc::webrtc::v1::WebRTCConfig*>(value)->GetArena(); + if (config) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(config); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + config = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, config, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.config_ = reinterpret_cast<::proto::rpc::webrtc::v1::WebRTCConfig*>(value); + config_ = config; // @@protoc_insertion_point(field_set_allocated:proto.rpc.webrtc.v1.OptionalWebRTCConfigResponse.config) } #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) + } // namespace v1 } // namespace webrtc } // namespace rpc } // namespace proto - // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_proto_2frpc_2fwebrtc_2fv1_2fsignaling_2eproto diff --git a/src/viam/api/robot/v1/robot.grpc.pb.cc b/src/viam/api/robot/v1/robot.grpc.pb.cc index 7e14d9ac2..5e7e5e152 100644 --- a/src/viam/api/robot/v1/robot.grpc.pb.cc +++ b/src/viam/api/robot/v1/robot.grpc.pb.cc @@ -6,19 +6,19 @@ #include "robot/v1/robot.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace robot { namespace v1 { @@ -30,6 +30,7 @@ static const char* RobotService_method_names[] = { "/viam.robot.v1.RobotService/ResourceRPCSubtypes", "/viam.robot.v1.RobotService/CancelOperation", "/viam.robot.v1.RobotService/BlockForOperation", + "/viam.robot.v1.RobotService/GetModelsFromModules", "/viam.robot.v1.RobotService/DiscoverComponents", "/viam.robot.v1.RobotService/FrameSystemConfig", "/viam.robot.v1.RobotService/TransformPose", @@ -45,521 +46,668 @@ static const char* RobotService_method_names[] = { "/viam.robot.v1.RobotService/Shutdown", "/viam.robot.v1.RobotService/GetMachineStatus", "/viam.robot.v1.RobotService/GetVersion", + "/viam.robot.v1.RobotService/Tunnel", }; std::unique_ptr< RobotService::Stub> RobotService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { (void)options; - std::unique_ptr< RobotService::Stub> stub(new RobotService::Stub(channel, options)); + std::unique_ptr< RobotService::Stub> stub(new RobotService::Stub(channel)); return stub; } -RobotService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) - : channel_(channel), rpcmethod_GetOperations_(RobotService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetSessions_(RobotService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_ResourceNames_(RobotService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_ResourceRPCSubtypes_(RobotService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_CancelOperation_(RobotService_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_BlockForOperation_(RobotService_method_names[5], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_DiscoverComponents_(RobotService_method_names[6], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_FrameSystemConfig_(RobotService_method_names[7], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_TransformPose_(RobotService_method_names[8], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_TransformPCD_(RobotService_method_names[9], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetStatus_(RobotService_method_names[10], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_StreamStatus_(RobotService_method_names[11], options.suffix_for_stats(),::grpc::internal::RpcMethod::SERVER_STREAMING, channel) - , rpcmethod_StopAll_(RobotService_method_names[12], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_StartSession_(RobotService_method_names[13], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_SendSessionHeartbeat_(RobotService_method_names[14], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_Log_(RobotService_method_names[15], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetCloudMetadata_(RobotService_method_names[16], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_RestartModule_(RobotService_method_names[17], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_Shutdown_(RobotService_method_names[18], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetMachineStatus_(RobotService_method_names[19], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetVersion_(RobotService_method_names[20], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) +RobotService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_GetOperations_(RobotService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetSessions_(RobotService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ResourceNames_(RobotService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ResourceRPCSubtypes_(RobotService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_CancelOperation_(RobotService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_BlockForOperation_(RobotService_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetModelsFromModules_(RobotService_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DiscoverComponents_(RobotService_method_names[7], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_FrameSystemConfig_(RobotService_method_names[8], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_TransformPose_(RobotService_method_names[9], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_TransformPCD_(RobotService_method_names[10], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetStatus_(RobotService_method_names[11], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_StreamStatus_(RobotService_method_names[12], ::grpc::internal::RpcMethod::SERVER_STREAMING, channel) + , rpcmethod_StopAll_(RobotService_method_names[13], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_StartSession_(RobotService_method_names[14], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_SendSessionHeartbeat_(RobotService_method_names[15], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_Log_(RobotService_method_names[16], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetCloudMetadata_(RobotService_method_names[17], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_RestartModule_(RobotService_method_names[18], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_Shutdown_(RobotService_method_names[19], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetMachineStatus_(RobotService_method_names[20], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetVersion_(RobotService_method_names[21], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_Tunnel_(RobotService_method_names[22], ::grpc::internal::RpcMethod::BIDI_STREAMING, channel) {} ::grpc::Status RobotService::Stub::GetOperations(::grpc::ClientContext* context, const ::viam::robot::v1::GetOperationsRequest& request, ::viam::robot::v1::GetOperationsResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::robot::v1::GetOperationsRequest, ::viam::robot::v1::GetOperationsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetOperations_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetOperations_, context, request, response); } -void RobotService::Stub::async::GetOperations(::grpc::ClientContext* context, const ::viam::robot::v1::GetOperationsRequest* request, ::viam::robot::v1::GetOperationsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::robot::v1::GetOperationsRequest, ::viam::robot::v1::GetOperationsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetOperations_, context, request, response, std::move(f)); +void RobotService::Stub::experimental_async::GetOperations(::grpc::ClientContext* context, const ::viam::robot::v1::GetOperationsRequest* request, ::viam::robot::v1::GetOperationsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetOperations_, context, request, response, std::move(f)); } -void RobotService::Stub::async::GetOperations(::grpc::ClientContext* context, const ::viam::robot::v1::GetOperationsRequest* request, ::viam::robot::v1::GetOperationsResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetOperations_, context, request, response, reactor); +void RobotService::Stub::experimental_async::GetOperations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::GetOperationsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetOperations_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetOperationsResponse>* RobotService::Stub::PrepareAsyncGetOperationsRaw(::grpc::ClientContext* context, const ::viam::robot::v1::GetOperationsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::robot::v1::GetOperationsResponse, ::viam::robot::v1::GetOperationsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetOperations_, context, request); +void RobotService::Stub::experimental_async::GetOperations(::grpc::ClientContext* context, const ::viam::robot::v1::GetOperationsRequest* request, ::viam::robot::v1::GetOperationsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetOperations_, context, request, response, reactor); +} + +void RobotService::Stub::experimental_async::GetOperations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::GetOperationsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetOperations_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetOperationsResponse>* RobotService::Stub::AsyncGetOperationsRaw(::grpc::ClientContext* context, const ::viam::robot::v1::GetOperationsRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetOperationsRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::robot::v1::GetOperationsResponse>::Create(channel_.get(), cq, rpcmethod_GetOperations_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetOperationsResponse>* RobotService::Stub::PrepareAsyncGetOperationsRaw(::grpc::ClientContext* context, const ::viam::robot::v1::GetOperationsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::robot::v1::GetOperationsResponse>::Create(channel_.get(), cq, rpcmethod_GetOperations_, context, request, false); } ::grpc::Status RobotService::Stub::GetSessions(::grpc::ClientContext* context, const ::viam::robot::v1::GetSessionsRequest& request, ::viam::robot::v1::GetSessionsResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::robot::v1::GetSessionsRequest, ::viam::robot::v1::GetSessionsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetSessions_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetSessions_, context, request, response); } -void RobotService::Stub::async::GetSessions(::grpc::ClientContext* context, const ::viam::robot::v1::GetSessionsRequest* request, ::viam::robot::v1::GetSessionsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::robot::v1::GetSessionsRequest, ::viam::robot::v1::GetSessionsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetSessions_, context, request, response, std::move(f)); +void RobotService::Stub::experimental_async::GetSessions(::grpc::ClientContext* context, const ::viam::robot::v1::GetSessionsRequest* request, ::viam::robot::v1::GetSessionsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetSessions_, context, request, response, std::move(f)); } -void RobotService::Stub::async::GetSessions(::grpc::ClientContext* context, const ::viam::robot::v1::GetSessionsRequest* request, ::viam::robot::v1::GetSessionsResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetSessions_, context, request, response, reactor); +void RobotService::Stub::experimental_async::GetSessions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::GetSessionsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetSessions_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetSessionsResponse>* RobotService::Stub::PrepareAsyncGetSessionsRaw(::grpc::ClientContext* context, const ::viam::robot::v1::GetSessionsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::robot::v1::GetSessionsResponse, ::viam::robot::v1::GetSessionsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetSessions_, context, request); +void RobotService::Stub::experimental_async::GetSessions(::grpc::ClientContext* context, const ::viam::robot::v1::GetSessionsRequest* request, ::viam::robot::v1::GetSessionsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetSessions_, context, request, response, reactor); +} + +void RobotService::Stub::experimental_async::GetSessions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::GetSessionsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetSessions_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetSessionsResponse>* RobotService::Stub::AsyncGetSessionsRaw(::grpc::ClientContext* context, const ::viam::robot::v1::GetSessionsRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetSessionsRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::robot::v1::GetSessionsResponse>::Create(channel_.get(), cq, rpcmethod_GetSessions_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetSessionsResponse>* RobotService::Stub::PrepareAsyncGetSessionsRaw(::grpc::ClientContext* context, const ::viam::robot::v1::GetSessionsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::robot::v1::GetSessionsResponse>::Create(channel_.get(), cq, rpcmethod_GetSessions_, context, request, false); } ::grpc::Status RobotService::Stub::ResourceNames(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceNamesRequest& request, ::viam::robot::v1::ResourceNamesResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::robot::v1::ResourceNamesRequest, ::viam::robot::v1::ResourceNamesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ResourceNames_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ResourceNames_, context, request, response); } -void RobotService::Stub::async::ResourceNames(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceNamesRequest* request, ::viam::robot::v1::ResourceNamesResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::robot::v1::ResourceNamesRequest, ::viam::robot::v1::ResourceNamesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ResourceNames_, context, request, response, std::move(f)); +void RobotService::Stub::experimental_async::ResourceNames(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceNamesRequest* request, ::viam::robot::v1::ResourceNamesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ResourceNames_, context, request, response, std::move(f)); } -void RobotService::Stub::async::ResourceNames(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceNamesRequest* request, ::viam::robot::v1::ResourceNamesResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ResourceNames_, context, request, response, reactor); +void RobotService::Stub::experimental_async::ResourceNames(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::ResourceNamesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ResourceNames_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::robot::v1::ResourceNamesResponse>* RobotService::Stub::PrepareAsyncResourceNamesRaw(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceNamesRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::robot::v1::ResourceNamesResponse, ::viam::robot::v1::ResourceNamesRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ResourceNames_, context, request); +void RobotService::Stub::experimental_async::ResourceNames(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceNamesRequest* request, ::viam::robot::v1::ResourceNamesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ResourceNames_, context, request, response, reactor); +} + +void RobotService::Stub::experimental_async::ResourceNames(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::ResourceNamesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ResourceNames_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::ResourceNamesResponse>* RobotService::Stub::AsyncResourceNamesRaw(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceNamesRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncResourceNamesRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::robot::v1::ResourceNamesResponse>::Create(channel_.get(), cq, rpcmethod_ResourceNames_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::robot::v1::ResourceNamesResponse>* RobotService::Stub::PrepareAsyncResourceNamesRaw(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceNamesRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::robot::v1::ResourceNamesResponse>::Create(channel_.get(), cq, rpcmethod_ResourceNames_, context, request, false); } ::grpc::Status RobotService::Stub::ResourceRPCSubtypes(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceRPCSubtypesRequest& request, ::viam::robot::v1::ResourceRPCSubtypesResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::robot::v1::ResourceRPCSubtypesRequest, ::viam::robot::v1::ResourceRPCSubtypesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ResourceRPCSubtypes_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ResourceRPCSubtypes_, context, request, response); } -void RobotService::Stub::async::ResourceRPCSubtypes(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceRPCSubtypesRequest* request, ::viam::robot::v1::ResourceRPCSubtypesResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::robot::v1::ResourceRPCSubtypesRequest, ::viam::robot::v1::ResourceRPCSubtypesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ResourceRPCSubtypes_, context, request, response, std::move(f)); +void RobotService::Stub::experimental_async::ResourceRPCSubtypes(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceRPCSubtypesRequest* request, ::viam::robot::v1::ResourceRPCSubtypesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ResourceRPCSubtypes_, context, request, response, std::move(f)); } -void RobotService::Stub::async::ResourceRPCSubtypes(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceRPCSubtypesRequest* request, ::viam::robot::v1::ResourceRPCSubtypesResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ResourceRPCSubtypes_, context, request, response, reactor); +void RobotService::Stub::experimental_async::ResourceRPCSubtypes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::ResourceRPCSubtypesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ResourceRPCSubtypes_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::robot::v1::ResourceRPCSubtypesResponse>* RobotService::Stub::PrepareAsyncResourceRPCSubtypesRaw(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceRPCSubtypesRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::robot::v1::ResourceRPCSubtypesResponse, ::viam::robot::v1::ResourceRPCSubtypesRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ResourceRPCSubtypes_, context, request); +void RobotService::Stub::experimental_async::ResourceRPCSubtypes(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceRPCSubtypesRequest* request, ::viam::robot::v1::ResourceRPCSubtypesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ResourceRPCSubtypes_, context, request, response, reactor); +} + +void RobotService::Stub::experimental_async::ResourceRPCSubtypes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::ResourceRPCSubtypesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ResourceRPCSubtypes_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::ResourceRPCSubtypesResponse>* RobotService::Stub::AsyncResourceRPCSubtypesRaw(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceRPCSubtypesRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncResourceRPCSubtypesRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::robot::v1::ResourceRPCSubtypesResponse>::Create(channel_.get(), cq, rpcmethod_ResourceRPCSubtypes_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::robot::v1::ResourceRPCSubtypesResponse>* RobotService::Stub::PrepareAsyncResourceRPCSubtypesRaw(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceRPCSubtypesRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::robot::v1::ResourceRPCSubtypesResponse>::Create(channel_.get(), cq, rpcmethod_ResourceRPCSubtypes_, context, request, false); } ::grpc::Status RobotService::Stub::CancelOperation(::grpc::ClientContext* context, const ::viam::robot::v1::CancelOperationRequest& request, ::viam::robot::v1::CancelOperationResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::robot::v1::CancelOperationRequest, ::viam::robot::v1::CancelOperationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_CancelOperation_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CancelOperation_, context, request, response); } -void RobotService::Stub::async::CancelOperation(::grpc::ClientContext* context, const ::viam::robot::v1::CancelOperationRequest* request, ::viam::robot::v1::CancelOperationResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::robot::v1::CancelOperationRequest, ::viam::robot::v1::CancelOperationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_CancelOperation_, context, request, response, std::move(f)); +void RobotService::Stub::experimental_async::CancelOperation(::grpc::ClientContext* context, const ::viam::robot::v1::CancelOperationRequest* request, ::viam::robot::v1::CancelOperationResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CancelOperation_, context, request, response, std::move(f)); } -void RobotService::Stub::async::CancelOperation(::grpc::ClientContext* context, const ::viam::robot::v1::CancelOperationRequest* request, ::viam::robot::v1::CancelOperationResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_CancelOperation_, context, request, response, reactor); +void RobotService::Stub::experimental_async::CancelOperation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::CancelOperationResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CancelOperation_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::robot::v1::CancelOperationResponse>* RobotService::Stub::PrepareAsyncCancelOperationRaw(::grpc::ClientContext* context, const ::viam::robot::v1::CancelOperationRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::robot::v1::CancelOperationResponse, ::viam::robot::v1::CancelOperationRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_CancelOperation_, context, request); +void RobotService::Stub::experimental_async::CancelOperation(::grpc::ClientContext* context, const ::viam::robot::v1::CancelOperationRequest* request, ::viam::robot::v1::CancelOperationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CancelOperation_, context, request, response, reactor); +} + +void RobotService::Stub::experimental_async::CancelOperation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::CancelOperationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CancelOperation_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::CancelOperationResponse>* RobotService::Stub::AsyncCancelOperationRaw(::grpc::ClientContext* context, const ::viam::robot::v1::CancelOperationRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncCancelOperationRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::robot::v1::CancelOperationResponse>::Create(channel_.get(), cq, rpcmethod_CancelOperation_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::robot::v1::CancelOperationResponse>* RobotService::Stub::PrepareAsyncCancelOperationRaw(::grpc::ClientContext* context, const ::viam::robot::v1::CancelOperationRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::robot::v1::CancelOperationResponse>::Create(channel_.get(), cq, rpcmethod_CancelOperation_, context, request, false); } ::grpc::Status RobotService::Stub::BlockForOperation(::grpc::ClientContext* context, const ::viam::robot::v1::BlockForOperationRequest& request, ::viam::robot::v1::BlockForOperationResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::robot::v1::BlockForOperationRequest, ::viam::robot::v1::BlockForOperationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_BlockForOperation_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_BlockForOperation_, context, request, response); } -void RobotService::Stub::async::BlockForOperation(::grpc::ClientContext* context, const ::viam::robot::v1::BlockForOperationRequest* request, ::viam::robot::v1::BlockForOperationResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::robot::v1::BlockForOperationRequest, ::viam::robot::v1::BlockForOperationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_BlockForOperation_, context, request, response, std::move(f)); +void RobotService::Stub::experimental_async::BlockForOperation(::grpc::ClientContext* context, const ::viam::robot::v1::BlockForOperationRequest* request, ::viam::robot::v1::BlockForOperationResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_BlockForOperation_, context, request, response, std::move(f)); } -void RobotService::Stub::async::BlockForOperation(::grpc::ClientContext* context, const ::viam::robot::v1::BlockForOperationRequest* request, ::viam::robot::v1::BlockForOperationResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_BlockForOperation_, context, request, response, reactor); +void RobotService::Stub::experimental_async::BlockForOperation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::BlockForOperationResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_BlockForOperation_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::robot::v1::BlockForOperationResponse>* RobotService::Stub::PrepareAsyncBlockForOperationRaw(::grpc::ClientContext* context, const ::viam::robot::v1::BlockForOperationRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::robot::v1::BlockForOperationResponse, ::viam::robot::v1::BlockForOperationRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_BlockForOperation_, context, request); +void RobotService::Stub::experimental_async::BlockForOperation(::grpc::ClientContext* context, const ::viam::robot::v1::BlockForOperationRequest* request, ::viam::robot::v1::BlockForOperationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_BlockForOperation_, context, request, response, reactor); +} + +void RobotService::Stub::experimental_async::BlockForOperation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::BlockForOperationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_BlockForOperation_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::BlockForOperationResponse>* RobotService::Stub::AsyncBlockForOperationRaw(::grpc::ClientContext* context, const ::viam::robot::v1::BlockForOperationRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncBlockForOperationRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::robot::v1::BlockForOperationResponse>::Create(channel_.get(), cq, rpcmethod_BlockForOperation_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::robot::v1::BlockForOperationResponse>* RobotService::Stub::PrepareAsyncBlockForOperationRaw(::grpc::ClientContext* context, const ::viam::robot::v1::BlockForOperationRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::robot::v1::BlockForOperationResponse>::Create(channel_.get(), cq, rpcmethod_BlockForOperation_, context, request, false); +} + +::grpc::Status RobotService::Stub::GetModelsFromModules(::grpc::ClientContext* context, const ::viam::robot::v1::GetModelsFromModulesRequest& request, ::viam::robot::v1::GetModelsFromModulesResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetModelsFromModules_, context, request, response); +} + +void RobotService::Stub::experimental_async::GetModelsFromModules(::grpc::ClientContext* context, const ::viam::robot::v1::GetModelsFromModulesRequest* request, ::viam::robot::v1::GetModelsFromModulesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetModelsFromModules_, context, request, response, std::move(f)); +} + +void RobotService::Stub::experimental_async::GetModelsFromModules(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::GetModelsFromModulesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetModelsFromModules_, context, request, response, std::move(f)); +} + +void RobotService::Stub::experimental_async::GetModelsFromModules(::grpc::ClientContext* context, const ::viam::robot::v1::GetModelsFromModulesRequest* request, ::viam::robot::v1::GetModelsFromModulesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetModelsFromModules_, context, request, response, reactor); +} + +void RobotService::Stub::experimental_async::GetModelsFromModules(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::GetModelsFromModulesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetModelsFromModules_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetModelsFromModulesResponse>* RobotService::Stub::AsyncGetModelsFromModulesRaw(::grpc::ClientContext* context, const ::viam::robot::v1::GetModelsFromModulesRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::robot::v1::GetModelsFromModulesResponse>::Create(channel_.get(), cq, rpcmethod_GetModelsFromModules_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetModelsFromModulesResponse>* RobotService::Stub::PrepareAsyncGetModelsFromModulesRaw(::grpc::ClientContext* context, const ::viam::robot::v1::GetModelsFromModulesRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::robot::v1::GetModelsFromModulesResponse>::Create(channel_.get(), cq, rpcmethod_GetModelsFromModules_, context, request, false); } ::grpc::Status RobotService::Stub::DiscoverComponents(::grpc::ClientContext* context, const ::viam::robot::v1::DiscoverComponentsRequest& request, ::viam::robot::v1::DiscoverComponentsResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::robot::v1::DiscoverComponentsRequest, ::viam::robot::v1::DiscoverComponentsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_DiscoverComponents_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DiscoverComponents_, context, request, response); } -void RobotService::Stub::async::DiscoverComponents(::grpc::ClientContext* context, const ::viam::robot::v1::DiscoverComponentsRequest* request, ::viam::robot::v1::DiscoverComponentsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::robot::v1::DiscoverComponentsRequest, ::viam::robot::v1::DiscoverComponentsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DiscoverComponents_, context, request, response, std::move(f)); +void RobotService::Stub::experimental_async::DiscoverComponents(::grpc::ClientContext* context, const ::viam::robot::v1::DiscoverComponentsRequest* request, ::viam::robot::v1::DiscoverComponentsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DiscoverComponents_, context, request, response, std::move(f)); } -void RobotService::Stub::async::DiscoverComponents(::grpc::ClientContext* context, const ::viam::robot::v1::DiscoverComponentsRequest* request, ::viam::robot::v1::DiscoverComponentsResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DiscoverComponents_, context, request, response, reactor); +void RobotService::Stub::experimental_async::DiscoverComponents(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::DiscoverComponentsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DiscoverComponents_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::robot::v1::DiscoverComponentsResponse>* RobotService::Stub::PrepareAsyncDiscoverComponentsRaw(::grpc::ClientContext* context, const ::viam::robot::v1::DiscoverComponentsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::robot::v1::DiscoverComponentsResponse, ::viam::robot::v1::DiscoverComponentsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DiscoverComponents_, context, request); +void RobotService::Stub::experimental_async::DiscoverComponents(::grpc::ClientContext* context, const ::viam::robot::v1::DiscoverComponentsRequest* request, ::viam::robot::v1::DiscoverComponentsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DiscoverComponents_, context, request, response, reactor); +} + +void RobotService::Stub::experimental_async::DiscoverComponents(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::DiscoverComponentsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DiscoverComponents_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::DiscoverComponentsResponse>* RobotService::Stub::AsyncDiscoverComponentsRaw(::grpc::ClientContext* context, const ::viam::robot::v1::DiscoverComponentsRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncDiscoverComponentsRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::robot::v1::DiscoverComponentsResponse>::Create(channel_.get(), cq, rpcmethod_DiscoverComponents_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::robot::v1::DiscoverComponentsResponse>* RobotService::Stub::PrepareAsyncDiscoverComponentsRaw(::grpc::ClientContext* context, const ::viam::robot::v1::DiscoverComponentsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::robot::v1::DiscoverComponentsResponse>::Create(channel_.get(), cq, rpcmethod_DiscoverComponents_, context, request, false); } ::grpc::Status RobotService::Stub::FrameSystemConfig(::grpc::ClientContext* context, const ::viam::robot::v1::FrameSystemConfigRequest& request, ::viam::robot::v1::FrameSystemConfigResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::robot::v1::FrameSystemConfigRequest, ::viam::robot::v1::FrameSystemConfigResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_FrameSystemConfig_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_FrameSystemConfig_, context, request, response); } -void RobotService::Stub::async::FrameSystemConfig(::grpc::ClientContext* context, const ::viam::robot::v1::FrameSystemConfigRequest* request, ::viam::robot::v1::FrameSystemConfigResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::robot::v1::FrameSystemConfigRequest, ::viam::robot::v1::FrameSystemConfigResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_FrameSystemConfig_, context, request, response, std::move(f)); +void RobotService::Stub::experimental_async::FrameSystemConfig(::grpc::ClientContext* context, const ::viam::robot::v1::FrameSystemConfigRequest* request, ::viam::robot::v1::FrameSystemConfigResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_FrameSystemConfig_, context, request, response, std::move(f)); } -void RobotService::Stub::async::FrameSystemConfig(::grpc::ClientContext* context, const ::viam::robot::v1::FrameSystemConfigRequest* request, ::viam::robot::v1::FrameSystemConfigResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_FrameSystemConfig_, context, request, response, reactor); +void RobotService::Stub::experimental_async::FrameSystemConfig(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::FrameSystemConfigResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_FrameSystemConfig_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::robot::v1::FrameSystemConfigResponse>* RobotService::Stub::PrepareAsyncFrameSystemConfigRaw(::grpc::ClientContext* context, const ::viam::robot::v1::FrameSystemConfigRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::robot::v1::FrameSystemConfigResponse, ::viam::robot::v1::FrameSystemConfigRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_FrameSystemConfig_, context, request); +void RobotService::Stub::experimental_async::FrameSystemConfig(::grpc::ClientContext* context, const ::viam::robot::v1::FrameSystemConfigRequest* request, ::viam::robot::v1::FrameSystemConfigResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_FrameSystemConfig_, context, request, response, reactor); +} + +void RobotService::Stub::experimental_async::FrameSystemConfig(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::FrameSystemConfigResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_FrameSystemConfig_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::FrameSystemConfigResponse>* RobotService::Stub::AsyncFrameSystemConfigRaw(::grpc::ClientContext* context, const ::viam::robot::v1::FrameSystemConfigRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncFrameSystemConfigRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::robot::v1::FrameSystemConfigResponse>::Create(channel_.get(), cq, rpcmethod_FrameSystemConfig_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::robot::v1::FrameSystemConfigResponse>* RobotService::Stub::PrepareAsyncFrameSystemConfigRaw(::grpc::ClientContext* context, const ::viam::robot::v1::FrameSystemConfigRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::robot::v1::FrameSystemConfigResponse>::Create(channel_.get(), cq, rpcmethod_FrameSystemConfig_, context, request, false); } ::grpc::Status RobotService::Stub::TransformPose(::grpc::ClientContext* context, const ::viam::robot::v1::TransformPoseRequest& request, ::viam::robot::v1::TransformPoseResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::robot::v1::TransformPoseRequest, ::viam::robot::v1::TransformPoseResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_TransformPose_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_TransformPose_, context, request, response); } -void RobotService::Stub::async::TransformPose(::grpc::ClientContext* context, const ::viam::robot::v1::TransformPoseRequest* request, ::viam::robot::v1::TransformPoseResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::robot::v1::TransformPoseRequest, ::viam::robot::v1::TransformPoseResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_TransformPose_, context, request, response, std::move(f)); +void RobotService::Stub::experimental_async::TransformPose(::grpc::ClientContext* context, const ::viam::robot::v1::TransformPoseRequest* request, ::viam::robot::v1::TransformPoseResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_TransformPose_, context, request, response, std::move(f)); } -void RobotService::Stub::async::TransformPose(::grpc::ClientContext* context, const ::viam::robot::v1::TransformPoseRequest* request, ::viam::robot::v1::TransformPoseResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_TransformPose_, context, request, response, reactor); +void RobotService::Stub::experimental_async::TransformPose(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::TransformPoseResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_TransformPose_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::robot::v1::TransformPoseResponse>* RobotService::Stub::PrepareAsyncTransformPoseRaw(::grpc::ClientContext* context, const ::viam::robot::v1::TransformPoseRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::robot::v1::TransformPoseResponse, ::viam::robot::v1::TransformPoseRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_TransformPose_, context, request); +void RobotService::Stub::experimental_async::TransformPose(::grpc::ClientContext* context, const ::viam::robot::v1::TransformPoseRequest* request, ::viam::robot::v1::TransformPoseResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_TransformPose_, context, request, response, reactor); +} + +void RobotService::Stub::experimental_async::TransformPose(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::TransformPoseResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_TransformPose_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::TransformPoseResponse>* RobotService::Stub::AsyncTransformPoseRaw(::grpc::ClientContext* context, const ::viam::robot::v1::TransformPoseRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncTransformPoseRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::robot::v1::TransformPoseResponse>::Create(channel_.get(), cq, rpcmethod_TransformPose_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::robot::v1::TransformPoseResponse>* RobotService::Stub::PrepareAsyncTransformPoseRaw(::grpc::ClientContext* context, const ::viam::robot::v1::TransformPoseRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::robot::v1::TransformPoseResponse>::Create(channel_.get(), cq, rpcmethod_TransformPose_, context, request, false); } ::grpc::Status RobotService::Stub::TransformPCD(::grpc::ClientContext* context, const ::viam::robot::v1::TransformPCDRequest& request, ::viam::robot::v1::TransformPCDResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::robot::v1::TransformPCDRequest, ::viam::robot::v1::TransformPCDResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_TransformPCD_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_TransformPCD_, context, request, response); } -void RobotService::Stub::async::TransformPCD(::grpc::ClientContext* context, const ::viam::robot::v1::TransformPCDRequest* request, ::viam::robot::v1::TransformPCDResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::robot::v1::TransformPCDRequest, ::viam::robot::v1::TransformPCDResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_TransformPCD_, context, request, response, std::move(f)); +void RobotService::Stub::experimental_async::TransformPCD(::grpc::ClientContext* context, const ::viam::robot::v1::TransformPCDRequest* request, ::viam::robot::v1::TransformPCDResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_TransformPCD_, context, request, response, std::move(f)); } -void RobotService::Stub::async::TransformPCD(::grpc::ClientContext* context, const ::viam::robot::v1::TransformPCDRequest* request, ::viam::robot::v1::TransformPCDResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_TransformPCD_, context, request, response, reactor); +void RobotService::Stub::experimental_async::TransformPCD(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::TransformPCDResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_TransformPCD_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::robot::v1::TransformPCDResponse>* RobotService::Stub::PrepareAsyncTransformPCDRaw(::grpc::ClientContext* context, const ::viam::robot::v1::TransformPCDRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::robot::v1::TransformPCDResponse, ::viam::robot::v1::TransformPCDRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_TransformPCD_, context, request); +void RobotService::Stub::experimental_async::TransformPCD(::grpc::ClientContext* context, const ::viam::robot::v1::TransformPCDRequest* request, ::viam::robot::v1::TransformPCDResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_TransformPCD_, context, request, response, reactor); +} + +void RobotService::Stub::experimental_async::TransformPCD(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::TransformPCDResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_TransformPCD_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::TransformPCDResponse>* RobotService::Stub::AsyncTransformPCDRaw(::grpc::ClientContext* context, const ::viam::robot::v1::TransformPCDRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncTransformPCDRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::robot::v1::TransformPCDResponse>::Create(channel_.get(), cq, rpcmethod_TransformPCD_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::robot::v1::TransformPCDResponse>* RobotService::Stub::PrepareAsyncTransformPCDRaw(::grpc::ClientContext* context, const ::viam::robot::v1::TransformPCDRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::robot::v1::TransformPCDResponse>::Create(channel_.get(), cq, rpcmethod_TransformPCD_, context, request, false); } ::grpc::Status RobotService::Stub::GetStatus(::grpc::ClientContext* context, const ::viam::robot::v1::GetStatusRequest& request, ::viam::robot::v1::GetStatusResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::robot::v1::GetStatusRequest, ::viam::robot::v1::GetStatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetStatus_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetStatus_, context, request, response); } -void RobotService::Stub::async::GetStatus(::grpc::ClientContext* context, const ::viam::robot::v1::GetStatusRequest* request, ::viam::robot::v1::GetStatusResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::robot::v1::GetStatusRequest, ::viam::robot::v1::GetStatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetStatus_, context, request, response, std::move(f)); +void RobotService::Stub::experimental_async::GetStatus(::grpc::ClientContext* context, const ::viam::robot::v1::GetStatusRequest* request, ::viam::robot::v1::GetStatusResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetStatus_, context, request, response, std::move(f)); } -void RobotService::Stub::async::GetStatus(::grpc::ClientContext* context, const ::viam::robot::v1::GetStatusRequest* request, ::viam::robot::v1::GetStatusResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetStatus_, context, request, response, reactor); +void RobotService::Stub::experimental_async::GetStatus(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::GetStatusResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetStatus_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetStatusResponse>* RobotService::Stub::PrepareAsyncGetStatusRaw(::grpc::ClientContext* context, const ::viam::robot::v1::GetStatusRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::robot::v1::GetStatusResponse, ::viam::robot::v1::GetStatusRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetStatus_, context, request); +void RobotService::Stub::experimental_async::GetStatus(::grpc::ClientContext* context, const ::viam::robot::v1::GetStatusRequest* request, ::viam::robot::v1::GetStatusResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetStatus_, context, request, response, reactor); +} + +void RobotService::Stub::experimental_async::GetStatus(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::GetStatusResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetStatus_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetStatusResponse>* RobotService::Stub::AsyncGetStatusRaw(::grpc::ClientContext* context, const ::viam::robot::v1::GetStatusRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetStatusRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::robot::v1::GetStatusResponse>::Create(channel_.get(), cq, rpcmethod_GetStatus_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetStatusResponse>* RobotService::Stub::PrepareAsyncGetStatusRaw(::grpc::ClientContext* context, const ::viam::robot::v1::GetStatusRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::robot::v1::GetStatusResponse>::Create(channel_.get(), cq, rpcmethod_GetStatus_, context, request, false); } ::grpc::ClientReader< ::viam::robot::v1::StreamStatusResponse>* RobotService::Stub::StreamStatusRaw(::grpc::ClientContext* context, const ::viam::robot::v1::StreamStatusRequest& request) { - return ::grpc::internal::ClientReaderFactory< ::viam::robot::v1::StreamStatusResponse>::Create(channel_.get(), rpcmethod_StreamStatus_, context, request); + return ::grpc_impl::internal::ClientReaderFactory< ::viam::robot::v1::StreamStatusResponse>::Create(channel_.get(), rpcmethod_StreamStatus_, context, request); } -void RobotService::Stub::async::StreamStatus(::grpc::ClientContext* context, const ::viam::robot::v1::StreamStatusRequest* request, ::grpc::ClientReadReactor< ::viam::robot::v1::StreamStatusResponse>* reactor) { - ::grpc::internal::ClientCallbackReaderFactory< ::viam::robot::v1::StreamStatusResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_StreamStatus_, context, request, reactor); +void RobotService::Stub::experimental_async::StreamStatus(::grpc::ClientContext* context, ::viam::robot::v1::StreamStatusRequest* request, ::grpc::experimental::ClientReadReactor< ::viam::robot::v1::StreamStatusResponse>* reactor) { + ::grpc_impl::internal::ClientCallbackReaderFactory< ::viam::robot::v1::StreamStatusResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_StreamStatus_, context, request, reactor); } ::grpc::ClientAsyncReader< ::viam::robot::v1::StreamStatusResponse>* RobotService::Stub::AsyncStreamStatusRaw(::grpc::ClientContext* context, const ::viam::robot::v1::StreamStatusRequest& request, ::grpc::CompletionQueue* cq, void* tag) { - return ::grpc::internal::ClientAsyncReaderFactory< ::viam::robot::v1::StreamStatusResponse>::Create(channel_.get(), cq, rpcmethod_StreamStatus_, context, request, true, tag); + return ::grpc_impl::internal::ClientAsyncReaderFactory< ::viam::robot::v1::StreamStatusResponse>::Create(channel_.get(), cq, rpcmethod_StreamStatus_, context, request, true, tag); } ::grpc::ClientAsyncReader< ::viam::robot::v1::StreamStatusResponse>* RobotService::Stub::PrepareAsyncStreamStatusRaw(::grpc::ClientContext* context, const ::viam::robot::v1::StreamStatusRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncReaderFactory< ::viam::robot::v1::StreamStatusResponse>::Create(channel_.get(), cq, rpcmethod_StreamStatus_, context, request, false, nullptr); + return ::grpc_impl::internal::ClientAsyncReaderFactory< ::viam::robot::v1::StreamStatusResponse>::Create(channel_.get(), cq, rpcmethod_StreamStatus_, context, request, false, nullptr); } ::grpc::Status RobotService::Stub::StopAll(::grpc::ClientContext* context, const ::viam::robot::v1::StopAllRequest& request, ::viam::robot::v1::StopAllResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::robot::v1::StopAllRequest, ::viam::robot::v1::StopAllResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_StopAll_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_StopAll_, context, request, response); } -void RobotService::Stub::async::StopAll(::grpc::ClientContext* context, const ::viam::robot::v1::StopAllRequest* request, ::viam::robot::v1::StopAllResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::robot::v1::StopAllRequest, ::viam::robot::v1::StopAllResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_StopAll_, context, request, response, std::move(f)); +void RobotService::Stub::experimental_async::StopAll(::grpc::ClientContext* context, const ::viam::robot::v1::StopAllRequest* request, ::viam::robot::v1::StopAllResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_StopAll_, context, request, response, std::move(f)); } -void RobotService::Stub::async::StopAll(::grpc::ClientContext* context, const ::viam::robot::v1::StopAllRequest* request, ::viam::robot::v1::StopAllResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_StopAll_, context, request, response, reactor); +void RobotService::Stub::experimental_async::StopAll(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::StopAllResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_StopAll_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::robot::v1::StopAllResponse>* RobotService::Stub::PrepareAsyncStopAllRaw(::grpc::ClientContext* context, const ::viam::robot::v1::StopAllRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::robot::v1::StopAllResponse, ::viam::robot::v1::StopAllRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_StopAll_, context, request); +void RobotService::Stub::experimental_async::StopAll(::grpc::ClientContext* context, const ::viam::robot::v1::StopAllRequest* request, ::viam::robot::v1::StopAllResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_StopAll_, context, request, response, reactor); +} + +void RobotService::Stub::experimental_async::StopAll(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::StopAllResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_StopAll_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::StopAllResponse>* RobotService::Stub::AsyncStopAllRaw(::grpc::ClientContext* context, const ::viam::robot::v1::StopAllRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncStopAllRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::robot::v1::StopAllResponse>::Create(channel_.get(), cq, rpcmethod_StopAll_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::robot::v1::StopAllResponse>* RobotService::Stub::PrepareAsyncStopAllRaw(::grpc::ClientContext* context, const ::viam::robot::v1::StopAllRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::robot::v1::StopAllResponse>::Create(channel_.get(), cq, rpcmethod_StopAll_, context, request, false); } ::grpc::Status RobotService::Stub::StartSession(::grpc::ClientContext* context, const ::viam::robot::v1::StartSessionRequest& request, ::viam::robot::v1::StartSessionResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::robot::v1::StartSessionRequest, ::viam::robot::v1::StartSessionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_StartSession_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_StartSession_, context, request, response); } -void RobotService::Stub::async::StartSession(::grpc::ClientContext* context, const ::viam::robot::v1::StartSessionRequest* request, ::viam::robot::v1::StartSessionResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::robot::v1::StartSessionRequest, ::viam::robot::v1::StartSessionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_StartSession_, context, request, response, std::move(f)); +void RobotService::Stub::experimental_async::StartSession(::grpc::ClientContext* context, const ::viam::robot::v1::StartSessionRequest* request, ::viam::robot::v1::StartSessionResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_StartSession_, context, request, response, std::move(f)); } -void RobotService::Stub::async::StartSession(::grpc::ClientContext* context, const ::viam::robot::v1::StartSessionRequest* request, ::viam::robot::v1::StartSessionResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_StartSession_, context, request, response, reactor); +void RobotService::Stub::experimental_async::StartSession(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::StartSessionResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_StartSession_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::robot::v1::StartSessionResponse>* RobotService::Stub::PrepareAsyncStartSessionRaw(::grpc::ClientContext* context, const ::viam::robot::v1::StartSessionRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::robot::v1::StartSessionResponse, ::viam::robot::v1::StartSessionRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_StartSession_, context, request); +void RobotService::Stub::experimental_async::StartSession(::grpc::ClientContext* context, const ::viam::robot::v1::StartSessionRequest* request, ::viam::robot::v1::StartSessionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_StartSession_, context, request, response, reactor); +} + +void RobotService::Stub::experimental_async::StartSession(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::StartSessionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_StartSession_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::StartSessionResponse>* RobotService::Stub::AsyncStartSessionRaw(::grpc::ClientContext* context, const ::viam::robot::v1::StartSessionRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncStartSessionRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::robot::v1::StartSessionResponse>::Create(channel_.get(), cq, rpcmethod_StartSession_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::robot::v1::StartSessionResponse>* RobotService::Stub::PrepareAsyncStartSessionRaw(::grpc::ClientContext* context, const ::viam::robot::v1::StartSessionRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::robot::v1::StartSessionResponse>::Create(channel_.get(), cq, rpcmethod_StartSession_, context, request, false); } ::grpc::Status RobotService::Stub::SendSessionHeartbeat(::grpc::ClientContext* context, const ::viam::robot::v1::SendSessionHeartbeatRequest& request, ::viam::robot::v1::SendSessionHeartbeatResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::robot::v1::SendSessionHeartbeatRequest, ::viam::robot::v1::SendSessionHeartbeatResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_SendSessionHeartbeat_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_SendSessionHeartbeat_, context, request, response); } -void RobotService::Stub::async::SendSessionHeartbeat(::grpc::ClientContext* context, const ::viam::robot::v1::SendSessionHeartbeatRequest* request, ::viam::robot::v1::SendSessionHeartbeatResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::robot::v1::SendSessionHeartbeatRequest, ::viam::robot::v1::SendSessionHeartbeatResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SendSessionHeartbeat_, context, request, response, std::move(f)); +void RobotService::Stub::experimental_async::SendSessionHeartbeat(::grpc::ClientContext* context, const ::viam::robot::v1::SendSessionHeartbeatRequest* request, ::viam::robot::v1::SendSessionHeartbeatResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SendSessionHeartbeat_, context, request, response, std::move(f)); } -void RobotService::Stub::async::SendSessionHeartbeat(::grpc::ClientContext* context, const ::viam::robot::v1::SendSessionHeartbeatRequest* request, ::viam::robot::v1::SendSessionHeartbeatResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SendSessionHeartbeat_, context, request, response, reactor); +void RobotService::Stub::experimental_async::SendSessionHeartbeat(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::SendSessionHeartbeatResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SendSessionHeartbeat_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::robot::v1::SendSessionHeartbeatResponse>* RobotService::Stub::PrepareAsyncSendSessionHeartbeatRaw(::grpc::ClientContext* context, const ::viam::robot::v1::SendSessionHeartbeatRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::robot::v1::SendSessionHeartbeatResponse, ::viam::robot::v1::SendSessionHeartbeatRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_SendSessionHeartbeat_, context, request); +void RobotService::Stub::experimental_async::SendSessionHeartbeat(::grpc::ClientContext* context, const ::viam::robot::v1::SendSessionHeartbeatRequest* request, ::viam::robot::v1::SendSessionHeartbeatResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SendSessionHeartbeat_, context, request, response, reactor); +} + +void RobotService::Stub::experimental_async::SendSessionHeartbeat(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::SendSessionHeartbeatResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SendSessionHeartbeat_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::SendSessionHeartbeatResponse>* RobotService::Stub::AsyncSendSessionHeartbeatRaw(::grpc::ClientContext* context, const ::viam::robot::v1::SendSessionHeartbeatRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncSendSessionHeartbeatRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::robot::v1::SendSessionHeartbeatResponse>::Create(channel_.get(), cq, rpcmethod_SendSessionHeartbeat_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::robot::v1::SendSessionHeartbeatResponse>* RobotService::Stub::PrepareAsyncSendSessionHeartbeatRaw(::grpc::ClientContext* context, const ::viam::robot::v1::SendSessionHeartbeatRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::robot::v1::SendSessionHeartbeatResponse>::Create(channel_.get(), cq, rpcmethod_SendSessionHeartbeat_, context, request, false); } ::grpc::Status RobotService::Stub::Log(::grpc::ClientContext* context, const ::viam::robot::v1::LogRequest& request, ::viam::robot::v1::LogResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::robot::v1::LogRequest, ::viam::robot::v1::LogResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Log_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_Log_, context, request, response); } -void RobotService::Stub::async::Log(::grpc::ClientContext* context, const ::viam::robot::v1::LogRequest* request, ::viam::robot::v1::LogResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::robot::v1::LogRequest, ::viam::robot::v1::LogResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Log_, context, request, response, std::move(f)); +void RobotService::Stub::experimental_async::Log(::grpc::ClientContext* context, const ::viam::robot::v1::LogRequest* request, ::viam::robot::v1::LogResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Log_, context, request, response, std::move(f)); } -void RobotService::Stub::async::Log(::grpc::ClientContext* context, const ::viam::robot::v1::LogRequest* request, ::viam::robot::v1::LogResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Log_, context, request, response, reactor); +void RobotService::Stub::experimental_async::Log(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::LogResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Log_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::robot::v1::LogResponse>* RobotService::Stub::PrepareAsyncLogRaw(::grpc::ClientContext* context, const ::viam::robot::v1::LogRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::robot::v1::LogResponse, ::viam::robot::v1::LogRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Log_, context, request); +void RobotService::Stub::experimental_async::Log(::grpc::ClientContext* context, const ::viam::robot::v1::LogRequest* request, ::viam::robot::v1::LogResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Log_, context, request, response, reactor); +} + +void RobotService::Stub::experimental_async::Log(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::LogResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Log_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::LogResponse>* RobotService::Stub::AsyncLogRaw(::grpc::ClientContext* context, const ::viam::robot::v1::LogRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncLogRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::robot::v1::LogResponse>::Create(channel_.get(), cq, rpcmethod_Log_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::robot::v1::LogResponse>* RobotService::Stub::PrepareAsyncLogRaw(::grpc::ClientContext* context, const ::viam::robot::v1::LogRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::robot::v1::LogResponse>::Create(channel_.get(), cq, rpcmethod_Log_, context, request, false); } ::grpc::Status RobotService::Stub::GetCloudMetadata(::grpc::ClientContext* context, const ::viam::robot::v1::GetCloudMetadataRequest& request, ::viam::robot::v1::GetCloudMetadataResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::robot::v1::GetCloudMetadataRequest, ::viam::robot::v1::GetCloudMetadataResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetCloudMetadata_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetCloudMetadata_, context, request, response); } -void RobotService::Stub::async::GetCloudMetadata(::grpc::ClientContext* context, const ::viam::robot::v1::GetCloudMetadataRequest* request, ::viam::robot::v1::GetCloudMetadataResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::robot::v1::GetCloudMetadataRequest, ::viam::robot::v1::GetCloudMetadataResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetCloudMetadata_, context, request, response, std::move(f)); +void RobotService::Stub::experimental_async::GetCloudMetadata(::grpc::ClientContext* context, const ::viam::robot::v1::GetCloudMetadataRequest* request, ::viam::robot::v1::GetCloudMetadataResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetCloudMetadata_, context, request, response, std::move(f)); } -void RobotService::Stub::async::GetCloudMetadata(::grpc::ClientContext* context, const ::viam::robot::v1::GetCloudMetadataRequest* request, ::viam::robot::v1::GetCloudMetadataResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetCloudMetadata_, context, request, response, reactor); +void RobotService::Stub::experimental_async::GetCloudMetadata(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::GetCloudMetadataResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetCloudMetadata_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetCloudMetadataResponse>* RobotService::Stub::PrepareAsyncGetCloudMetadataRaw(::grpc::ClientContext* context, const ::viam::robot::v1::GetCloudMetadataRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::robot::v1::GetCloudMetadataResponse, ::viam::robot::v1::GetCloudMetadataRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetCloudMetadata_, context, request); +void RobotService::Stub::experimental_async::GetCloudMetadata(::grpc::ClientContext* context, const ::viam::robot::v1::GetCloudMetadataRequest* request, ::viam::robot::v1::GetCloudMetadataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetCloudMetadata_, context, request, response, reactor); +} + +void RobotService::Stub::experimental_async::GetCloudMetadata(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::GetCloudMetadataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetCloudMetadata_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetCloudMetadataResponse>* RobotService::Stub::AsyncGetCloudMetadataRaw(::grpc::ClientContext* context, const ::viam::robot::v1::GetCloudMetadataRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetCloudMetadataRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::robot::v1::GetCloudMetadataResponse>::Create(channel_.get(), cq, rpcmethod_GetCloudMetadata_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetCloudMetadataResponse>* RobotService::Stub::PrepareAsyncGetCloudMetadataRaw(::grpc::ClientContext* context, const ::viam::robot::v1::GetCloudMetadataRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::robot::v1::GetCloudMetadataResponse>::Create(channel_.get(), cq, rpcmethod_GetCloudMetadata_, context, request, false); } ::grpc::Status RobotService::Stub::RestartModule(::grpc::ClientContext* context, const ::viam::robot::v1::RestartModuleRequest& request, ::viam::robot::v1::RestartModuleResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::robot::v1::RestartModuleRequest, ::viam::robot::v1::RestartModuleResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_RestartModule_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_RestartModule_, context, request, response); } -void RobotService::Stub::async::RestartModule(::grpc::ClientContext* context, const ::viam::robot::v1::RestartModuleRequest* request, ::viam::robot::v1::RestartModuleResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::robot::v1::RestartModuleRequest, ::viam::robot::v1::RestartModuleResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_RestartModule_, context, request, response, std::move(f)); +void RobotService::Stub::experimental_async::RestartModule(::grpc::ClientContext* context, const ::viam::robot::v1::RestartModuleRequest* request, ::viam::robot::v1::RestartModuleResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_RestartModule_, context, request, response, std::move(f)); } -void RobotService::Stub::async::RestartModule(::grpc::ClientContext* context, const ::viam::robot::v1::RestartModuleRequest* request, ::viam::robot::v1::RestartModuleResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_RestartModule_, context, request, response, reactor); +void RobotService::Stub::experimental_async::RestartModule(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::RestartModuleResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_RestartModule_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::robot::v1::RestartModuleResponse>* RobotService::Stub::PrepareAsyncRestartModuleRaw(::grpc::ClientContext* context, const ::viam::robot::v1::RestartModuleRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::robot::v1::RestartModuleResponse, ::viam::robot::v1::RestartModuleRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_RestartModule_, context, request); +void RobotService::Stub::experimental_async::RestartModule(::grpc::ClientContext* context, const ::viam::robot::v1::RestartModuleRequest* request, ::viam::robot::v1::RestartModuleResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_RestartModule_, context, request, response, reactor); +} + +void RobotService::Stub::experimental_async::RestartModule(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::RestartModuleResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_RestartModule_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::RestartModuleResponse>* RobotService::Stub::AsyncRestartModuleRaw(::grpc::ClientContext* context, const ::viam::robot::v1::RestartModuleRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncRestartModuleRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::robot::v1::RestartModuleResponse>::Create(channel_.get(), cq, rpcmethod_RestartModule_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::robot::v1::RestartModuleResponse>* RobotService::Stub::PrepareAsyncRestartModuleRaw(::grpc::ClientContext* context, const ::viam::robot::v1::RestartModuleRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::robot::v1::RestartModuleResponse>::Create(channel_.get(), cq, rpcmethod_RestartModule_, context, request, false); } ::grpc::Status RobotService::Stub::Shutdown(::grpc::ClientContext* context, const ::viam::robot::v1::ShutdownRequest& request, ::viam::robot::v1::ShutdownResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::robot::v1::ShutdownRequest, ::viam::robot::v1::ShutdownResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Shutdown_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_Shutdown_, context, request, response); } -void RobotService::Stub::async::Shutdown(::grpc::ClientContext* context, const ::viam::robot::v1::ShutdownRequest* request, ::viam::robot::v1::ShutdownResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::robot::v1::ShutdownRequest, ::viam::robot::v1::ShutdownResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Shutdown_, context, request, response, std::move(f)); +void RobotService::Stub::experimental_async::Shutdown(::grpc::ClientContext* context, const ::viam::robot::v1::ShutdownRequest* request, ::viam::robot::v1::ShutdownResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Shutdown_, context, request, response, std::move(f)); } -void RobotService::Stub::async::Shutdown(::grpc::ClientContext* context, const ::viam::robot::v1::ShutdownRequest* request, ::viam::robot::v1::ShutdownResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Shutdown_, context, request, response, reactor); +void RobotService::Stub::experimental_async::Shutdown(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::ShutdownResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Shutdown_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::robot::v1::ShutdownResponse>* RobotService::Stub::PrepareAsyncShutdownRaw(::grpc::ClientContext* context, const ::viam::robot::v1::ShutdownRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::robot::v1::ShutdownResponse, ::viam::robot::v1::ShutdownRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Shutdown_, context, request); +void RobotService::Stub::experimental_async::Shutdown(::grpc::ClientContext* context, const ::viam::robot::v1::ShutdownRequest* request, ::viam::robot::v1::ShutdownResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Shutdown_, context, request, response, reactor); +} + +void RobotService::Stub::experimental_async::Shutdown(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::ShutdownResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Shutdown_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::ShutdownResponse>* RobotService::Stub::AsyncShutdownRaw(::grpc::ClientContext* context, const ::viam::robot::v1::ShutdownRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncShutdownRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::robot::v1::ShutdownResponse>::Create(channel_.get(), cq, rpcmethod_Shutdown_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::robot::v1::ShutdownResponse>* RobotService::Stub::PrepareAsyncShutdownRaw(::grpc::ClientContext* context, const ::viam::robot::v1::ShutdownRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::robot::v1::ShutdownResponse>::Create(channel_.get(), cq, rpcmethod_Shutdown_, context, request, false); } ::grpc::Status RobotService::Stub::GetMachineStatus(::grpc::ClientContext* context, const ::viam::robot::v1::GetMachineStatusRequest& request, ::viam::robot::v1::GetMachineStatusResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::robot::v1::GetMachineStatusRequest, ::viam::robot::v1::GetMachineStatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetMachineStatus_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetMachineStatus_, context, request, response); } -void RobotService::Stub::async::GetMachineStatus(::grpc::ClientContext* context, const ::viam::robot::v1::GetMachineStatusRequest* request, ::viam::robot::v1::GetMachineStatusResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::robot::v1::GetMachineStatusRequest, ::viam::robot::v1::GetMachineStatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetMachineStatus_, context, request, response, std::move(f)); +void RobotService::Stub::experimental_async::GetMachineStatus(::grpc::ClientContext* context, const ::viam::robot::v1::GetMachineStatusRequest* request, ::viam::robot::v1::GetMachineStatusResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetMachineStatus_, context, request, response, std::move(f)); } -void RobotService::Stub::async::GetMachineStatus(::grpc::ClientContext* context, const ::viam::robot::v1::GetMachineStatusRequest* request, ::viam::robot::v1::GetMachineStatusResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetMachineStatus_, context, request, response, reactor); +void RobotService::Stub::experimental_async::GetMachineStatus(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::GetMachineStatusResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetMachineStatus_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetMachineStatusResponse>* RobotService::Stub::PrepareAsyncGetMachineStatusRaw(::grpc::ClientContext* context, const ::viam::robot::v1::GetMachineStatusRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::robot::v1::GetMachineStatusResponse, ::viam::robot::v1::GetMachineStatusRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetMachineStatus_, context, request); +void RobotService::Stub::experimental_async::GetMachineStatus(::grpc::ClientContext* context, const ::viam::robot::v1::GetMachineStatusRequest* request, ::viam::robot::v1::GetMachineStatusResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetMachineStatus_, context, request, response, reactor); +} + +void RobotService::Stub::experimental_async::GetMachineStatus(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::GetMachineStatusResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetMachineStatus_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetMachineStatusResponse>* RobotService::Stub::AsyncGetMachineStatusRaw(::grpc::ClientContext* context, const ::viam::robot::v1::GetMachineStatusRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetMachineStatusRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::robot::v1::GetMachineStatusResponse>::Create(channel_.get(), cq, rpcmethod_GetMachineStatus_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetMachineStatusResponse>* RobotService::Stub::PrepareAsyncGetMachineStatusRaw(::grpc::ClientContext* context, const ::viam::robot::v1::GetMachineStatusRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::robot::v1::GetMachineStatusResponse>::Create(channel_.get(), cq, rpcmethod_GetMachineStatus_, context, request, false); } ::grpc::Status RobotService::Stub::GetVersion(::grpc::ClientContext* context, const ::viam::robot::v1::GetVersionRequest& request, ::viam::robot::v1::GetVersionResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::robot::v1::GetVersionRequest, ::viam::robot::v1::GetVersionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetVersion_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetVersion_, context, request, response); } -void RobotService::Stub::async::GetVersion(::grpc::ClientContext* context, const ::viam::robot::v1::GetVersionRequest* request, ::viam::robot::v1::GetVersionResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::robot::v1::GetVersionRequest, ::viam::robot::v1::GetVersionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetVersion_, context, request, response, std::move(f)); +void RobotService::Stub::experimental_async::GetVersion(::grpc::ClientContext* context, const ::viam::robot::v1::GetVersionRequest* request, ::viam::robot::v1::GetVersionResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetVersion_, context, request, response, std::move(f)); } -void RobotService::Stub::async::GetVersion(::grpc::ClientContext* context, const ::viam::robot::v1::GetVersionRequest* request, ::viam::robot::v1::GetVersionResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetVersion_, context, request, response, reactor); +void RobotService::Stub::experimental_async::GetVersion(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::GetVersionResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetVersion_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetVersionResponse>* RobotService::Stub::PrepareAsyncGetVersionRaw(::grpc::ClientContext* context, const ::viam::robot::v1::GetVersionRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::robot::v1::GetVersionResponse, ::viam::robot::v1::GetVersionRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetVersion_, context, request); +void RobotService::Stub::experimental_async::GetVersion(::grpc::ClientContext* context, const ::viam::robot::v1::GetVersionRequest* request, ::viam::robot::v1::GetVersionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetVersion_, context, request, response, reactor); +} + +void RobotService::Stub::experimental_async::GetVersion(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::GetVersionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetVersion_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetVersionResponse>* RobotService::Stub::AsyncGetVersionRaw(::grpc::ClientContext* context, const ::viam::robot::v1::GetVersionRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetVersionRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::robot::v1::GetVersionResponse>::Create(channel_.get(), cq, rpcmethod_GetVersion_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetVersionResponse>* RobotService::Stub::PrepareAsyncGetVersionRaw(::grpc::ClientContext* context, const ::viam::robot::v1::GetVersionRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::robot::v1::GetVersionResponse>::Create(channel_.get(), cq, rpcmethod_GetVersion_, context, request, false); +} + +::grpc::ClientReaderWriter< ::viam::robot::v1::TunnelRequest, ::viam::robot::v1::TunnelResponse>* RobotService::Stub::TunnelRaw(::grpc::ClientContext* context) { + return ::grpc_impl::internal::ClientReaderWriterFactory< ::viam::robot::v1::TunnelRequest, ::viam::robot::v1::TunnelResponse>::Create(channel_.get(), rpcmethod_Tunnel_, context); +} + +void RobotService::Stub::experimental_async::Tunnel(::grpc::ClientContext* context, ::grpc::experimental::ClientBidiReactor< ::viam::robot::v1::TunnelRequest,::viam::robot::v1::TunnelResponse>* reactor) { + ::grpc_impl::internal::ClientCallbackReaderWriterFactory< ::viam::robot::v1::TunnelRequest,::viam::robot::v1::TunnelResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_Tunnel_, context, reactor); +} + +::grpc::ClientAsyncReaderWriter< ::viam::robot::v1::TunnelRequest, ::viam::robot::v1::TunnelResponse>* RobotService::Stub::AsyncTunnelRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) { + return ::grpc_impl::internal::ClientAsyncReaderWriterFactory< ::viam::robot::v1::TunnelRequest, ::viam::robot::v1::TunnelResponse>::Create(channel_.get(), cq, rpcmethod_Tunnel_, context, true, tag); +} + +::grpc::ClientAsyncReaderWriter< ::viam::robot::v1::TunnelRequest, ::viam::robot::v1::TunnelResponse>* RobotService::Stub::PrepareAsyncTunnelRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncReaderWriterFactory< ::viam::robot::v1::TunnelRequest, ::viam::robot::v1::TunnelResponse>::Create(channel_.get(), cq, rpcmethod_Tunnel_, context, false, nullptr); } RobotService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( RobotService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::robot::v1::GetOperationsRequest, ::viam::robot::v1::GetOperationsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::robot::v1::GetOperationsRequest, ::viam::robot::v1::GetOperationsResponse>( [](RobotService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::robot::v1::GetOperationsRequest* req, ::viam::robot::v1::GetOperationsResponse* resp) { return service->GetOperations(ctx, req, resp); @@ -567,9 +715,9 @@ RobotService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( RobotService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::robot::v1::GetSessionsRequest, ::viam::robot::v1::GetSessionsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::robot::v1::GetSessionsRequest, ::viam::robot::v1::GetSessionsResponse>( [](RobotService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::robot::v1::GetSessionsRequest* req, ::viam::robot::v1::GetSessionsResponse* resp) { return service->GetSessions(ctx, req, resp); @@ -577,9 +725,9 @@ RobotService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( RobotService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::robot::v1::ResourceNamesRequest, ::viam::robot::v1::ResourceNamesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::robot::v1::ResourceNamesRequest, ::viam::robot::v1::ResourceNamesResponse>( [](RobotService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::robot::v1::ResourceNamesRequest* req, ::viam::robot::v1::ResourceNamesResponse* resp) { return service->ResourceNames(ctx, req, resp); @@ -587,9 +735,9 @@ RobotService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( RobotService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::robot::v1::ResourceRPCSubtypesRequest, ::viam::robot::v1::ResourceRPCSubtypesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::robot::v1::ResourceRPCSubtypesRequest, ::viam::robot::v1::ResourceRPCSubtypesResponse>( [](RobotService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::robot::v1::ResourceRPCSubtypesRequest* req, ::viam::robot::v1::ResourceRPCSubtypesResponse* resp) { return service->ResourceRPCSubtypes(ctx, req, resp); @@ -597,9 +745,9 @@ RobotService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( RobotService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::robot::v1::CancelOperationRequest, ::viam::robot::v1::CancelOperationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::robot::v1::CancelOperationRequest, ::viam::robot::v1::CancelOperationResponse>( [](RobotService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::robot::v1::CancelOperationRequest* req, ::viam::robot::v1::CancelOperationResponse* resp) { return service->CancelOperation(ctx, req, resp); @@ -607,9 +755,9 @@ RobotService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( RobotService_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::robot::v1::BlockForOperationRequest, ::viam::robot::v1::BlockForOperationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::robot::v1::BlockForOperationRequest, ::viam::robot::v1::BlockForOperationResponse>( [](RobotService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::robot::v1::BlockForOperationRequest* req, ::viam::robot::v1::BlockForOperationResponse* resp) { return service->BlockForOperation(ctx, req, resp); @@ -617,153 +765,173 @@ RobotService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( RobotService_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::robot::v1::DiscoverComponentsRequest, ::viam::robot::v1::DiscoverComponentsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::robot::v1::GetModelsFromModulesRequest, ::viam::robot::v1::GetModelsFromModulesResponse>( + [](RobotService::Service* service, + ::grpc_impl::ServerContext* ctx, + const ::viam::robot::v1::GetModelsFromModulesRequest* req, + ::viam::robot::v1::GetModelsFromModulesResponse* resp) { + return service->GetModelsFromModules(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + RobotService_method_names[7], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::robot::v1::DiscoverComponentsRequest, ::viam::robot::v1::DiscoverComponentsResponse>( [](RobotService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::robot::v1::DiscoverComponentsRequest* req, ::viam::robot::v1::DiscoverComponentsResponse* resp) { return service->DiscoverComponents(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - RobotService_method_names[7], + RobotService_method_names[8], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::robot::v1::FrameSystemConfigRequest, ::viam::robot::v1::FrameSystemConfigResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::robot::v1::FrameSystemConfigRequest, ::viam::robot::v1::FrameSystemConfigResponse>( [](RobotService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::robot::v1::FrameSystemConfigRequest* req, ::viam::robot::v1::FrameSystemConfigResponse* resp) { return service->FrameSystemConfig(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - RobotService_method_names[8], + RobotService_method_names[9], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::robot::v1::TransformPoseRequest, ::viam::robot::v1::TransformPoseResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::robot::v1::TransformPoseRequest, ::viam::robot::v1::TransformPoseResponse>( [](RobotService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::robot::v1::TransformPoseRequest* req, ::viam::robot::v1::TransformPoseResponse* resp) { return service->TransformPose(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - RobotService_method_names[9], + RobotService_method_names[10], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::robot::v1::TransformPCDRequest, ::viam::robot::v1::TransformPCDResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::robot::v1::TransformPCDRequest, ::viam::robot::v1::TransformPCDResponse>( [](RobotService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::robot::v1::TransformPCDRequest* req, ::viam::robot::v1::TransformPCDResponse* resp) { return service->TransformPCD(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - RobotService_method_names[10], + RobotService_method_names[11], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::robot::v1::GetStatusRequest, ::viam::robot::v1::GetStatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::robot::v1::GetStatusRequest, ::viam::robot::v1::GetStatusResponse>( [](RobotService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::robot::v1::GetStatusRequest* req, ::viam::robot::v1::GetStatusResponse* resp) { return service->GetStatus(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - RobotService_method_names[11], + RobotService_method_names[12], ::grpc::internal::RpcMethod::SERVER_STREAMING, new ::grpc::internal::ServerStreamingHandler< RobotService::Service, ::viam::robot::v1::StreamStatusRequest, ::viam::robot::v1::StreamStatusResponse>( [](RobotService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::robot::v1::StreamStatusRequest* req, - ::grpc::ServerWriter<::viam::robot::v1::StreamStatusResponse>* writer) { + ::grpc_impl::ServerWriter<::viam::robot::v1::StreamStatusResponse>* writer) { return service->StreamStatus(ctx, req, writer); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - RobotService_method_names[12], + RobotService_method_names[13], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::robot::v1::StopAllRequest, ::viam::robot::v1::StopAllResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::robot::v1::StopAllRequest, ::viam::robot::v1::StopAllResponse>( [](RobotService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::robot::v1::StopAllRequest* req, ::viam::robot::v1::StopAllResponse* resp) { return service->StopAll(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - RobotService_method_names[13], + RobotService_method_names[14], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::robot::v1::StartSessionRequest, ::viam::robot::v1::StartSessionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::robot::v1::StartSessionRequest, ::viam::robot::v1::StartSessionResponse>( [](RobotService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::robot::v1::StartSessionRequest* req, ::viam::robot::v1::StartSessionResponse* resp) { return service->StartSession(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - RobotService_method_names[14], + RobotService_method_names[15], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::robot::v1::SendSessionHeartbeatRequest, ::viam::robot::v1::SendSessionHeartbeatResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::robot::v1::SendSessionHeartbeatRequest, ::viam::robot::v1::SendSessionHeartbeatResponse>( [](RobotService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::robot::v1::SendSessionHeartbeatRequest* req, ::viam::robot::v1::SendSessionHeartbeatResponse* resp) { return service->SendSessionHeartbeat(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - RobotService_method_names[15], + RobotService_method_names[16], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::robot::v1::LogRequest, ::viam::robot::v1::LogResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::robot::v1::LogRequest, ::viam::robot::v1::LogResponse>( [](RobotService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::robot::v1::LogRequest* req, ::viam::robot::v1::LogResponse* resp) { return service->Log(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - RobotService_method_names[16], + RobotService_method_names[17], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::robot::v1::GetCloudMetadataRequest, ::viam::robot::v1::GetCloudMetadataResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::robot::v1::GetCloudMetadataRequest, ::viam::robot::v1::GetCloudMetadataResponse>( [](RobotService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::robot::v1::GetCloudMetadataRequest* req, ::viam::robot::v1::GetCloudMetadataResponse* resp) { return service->GetCloudMetadata(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - RobotService_method_names[17], + RobotService_method_names[18], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::robot::v1::RestartModuleRequest, ::viam::robot::v1::RestartModuleResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::robot::v1::RestartModuleRequest, ::viam::robot::v1::RestartModuleResponse>( [](RobotService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::robot::v1::RestartModuleRequest* req, ::viam::robot::v1::RestartModuleResponse* resp) { return service->RestartModule(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - RobotService_method_names[18], + RobotService_method_names[19], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::robot::v1::ShutdownRequest, ::viam::robot::v1::ShutdownResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::robot::v1::ShutdownRequest, ::viam::robot::v1::ShutdownResponse>( [](RobotService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::robot::v1::ShutdownRequest* req, ::viam::robot::v1::ShutdownResponse* resp) { return service->Shutdown(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - RobotService_method_names[19], + RobotService_method_names[20], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::robot::v1::GetMachineStatusRequest, ::viam::robot::v1::GetMachineStatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::robot::v1::GetMachineStatusRequest, ::viam::robot::v1::GetMachineStatusResponse>( [](RobotService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::robot::v1::GetMachineStatusRequest* req, ::viam::robot::v1::GetMachineStatusResponse* resp) { return service->GetMachineStatus(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - RobotService_method_names[20], + RobotService_method_names[21], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::robot::v1::GetVersionRequest, ::viam::robot::v1::GetVersionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< RobotService::Service, ::viam::robot::v1::GetVersionRequest, ::viam::robot::v1::GetVersionResponse>( [](RobotService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::robot::v1::GetVersionRequest* req, ::viam::robot::v1::GetVersionResponse* resp) { return service->GetVersion(ctx, req, resp); }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + RobotService_method_names[22], + ::grpc::internal::RpcMethod::BIDI_STREAMING, + new ::grpc::internal::BidiStreamingHandler< RobotService::Service, ::viam::robot::v1::TunnelRequest, ::viam::robot::v1::TunnelResponse>( + [](RobotService::Service* service, + ::grpc_impl::ServerContext* ctx, + ::grpc_impl::ServerReaderWriter<::viam::robot::v1::TunnelResponse, + ::viam::robot::v1::TunnelRequest>* stream) { + return service->Tunnel(ctx, stream); + }, this))); } RobotService::Service::~Service() { @@ -811,6 +979,13 @@ ::grpc::Status RobotService::Service::BlockForOperation(::grpc::ServerContext* c return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } +::grpc::Status RobotService::Service::GetModelsFromModules(::grpc::ServerContext* context, const ::viam::robot::v1::GetModelsFromModulesRequest* request, ::viam::robot::v1::GetModelsFromModulesResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + ::grpc::Status RobotService::Service::DiscoverComponents(::grpc::ServerContext* context, const ::viam::robot::v1::DiscoverComponentsRequest* request, ::viam::robot::v1::DiscoverComponentsResponse* response) { (void) context; (void) request; @@ -916,6 +1091,12 @@ ::grpc::Status RobotService::Service::GetVersion(::grpc::ServerContext* context, return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } +::grpc::Status RobotService::Service::Tunnel(::grpc::ServerContext* context, ::grpc::ServerReaderWriter< ::viam::robot::v1::TunnelResponse, ::viam::robot::v1::TunnelRequest>* stream) { + (void) context; + (void) stream; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + } // namespace viam } // namespace robot diff --git a/src/viam/api/robot/v1/robot.grpc.pb.h b/src/viam/api/robot/v1/robot.grpc.pb.h index bb12a709d..9a496d556 100644 --- a/src/viam/api/robot/v1/robot.grpc.pb.h +++ b/src/viam/api/robot/v1/robot.grpc.pb.h @@ -7,23 +7,24 @@ #include "robot/v1/robot.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace robot { @@ -82,7 +83,16 @@ class RobotService final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::BlockForOperationResponse>> PrepareAsyncBlockForOperation(::grpc::ClientContext* context, const ::viam::robot::v1::BlockForOperationRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::BlockForOperationResponse>>(PrepareAsyncBlockForOperationRaw(context, request, cq)); } + // GetModelsFromModules returns the list of models supported in modules on the machine. + virtual ::grpc::Status GetModelsFromModules(::grpc::ClientContext* context, const ::viam::robot::v1::GetModelsFromModulesRequest& request, ::viam::robot::v1::GetModelsFromModulesResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::GetModelsFromModulesResponse>> AsyncGetModelsFromModules(::grpc::ClientContext* context, const ::viam::robot::v1::GetModelsFromModulesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::GetModelsFromModulesResponse>>(AsyncGetModelsFromModulesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::GetModelsFromModulesResponse>> PrepareAsyncGetModelsFromModules(::grpc::ClientContext* context, const ::viam::robot::v1::GetModelsFromModulesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::GetModelsFromModulesResponse>>(PrepareAsyncGetModelsFromModulesRaw(context, request, cq)); + } // DiscoverComponents returns the list of discovered component configurations. + // This API is deprecated virtual ::grpc::Status DiscoverComponents(::grpc::ClientContext* context, const ::viam::robot::v1::DiscoverComponentsRequest& request, ::viam::robot::v1::DiscoverComponentsResponse* response) = 0; std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::DiscoverComponentsResponse>> AsyncDiscoverComponents(::grpc::ClientContext* context, const ::viam::robot::v1::DiscoverComponentsRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::DiscoverComponentsResponse>>(AsyncDiscoverComponentsRaw(context, request, cq)); @@ -203,71 +213,309 @@ class RobotService final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::GetVersionResponse>> PrepareAsyncGetVersion(::grpc::ClientContext* context, const ::viam::robot::v1::GetVersionRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::GetVersionResponse>>(PrepareAsyncGetVersionRaw(context, request, cq)); } - class async_interface { + // Tunnel tunnels traffic to the destination port of the robot server. + std::unique_ptr< ::grpc::ClientReaderWriterInterface< ::viam::robot::v1::TunnelRequest, ::viam::robot::v1::TunnelResponse>> Tunnel(::grpc::ClientContext* context) { + return std::unique_ptr< ::grpc::ClientReaderWriterInterface< ::viam::robot::v1::TunnelRequest, ::viam::robot::v1::TunnelResponse>>(TunnelRaw(context)); + } + std::unique_ptr< ::grpc::ClientAsyncReaderWriterInterface< ::viam::robot::v1::TunnelRequest, ::viam::robot::v1::TunnelResponse>> AsyncTunnel(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) { + return std::unique_ptr< ::grpc::ClientAsyncReaderWriterInterface< ::viam::robot::v1::TunnelRequest, ::viam::robot::v1::TunnelResponse>>(AsyncTunnelRaw(context, cq, tag)); + } + std::unique_ptr< ::grpc::ClientAsyncReaderWriterInterface< ::viam::robot::v1::TunnelRequest, ::viam::robot::v1::TunnelResponse>> PrepareAsyncTunnel(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncReaderWriterInterface< ::viam::robot::v1::TunnelRequest, ::viam::robot::v1::TunnelResponse>>(PrepareAsyncTunnelRaw(context, cq)); + } + class experimental_async_interface { public: - virtual ~async_interface() {} + virtual ~experimental_async_interface() {} virtual void GetOperations(::grpc::ClientContext* context, const ::viam::robot::v1::GetOperationsRequest* request, ::viam::robot::v1::GetOperationsResponse* response, std::function) = 0; + virtual void GetOperations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::GetOperationsResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetOperations(::grpc::ClientContext* context, const ::viam::robot::v1::GetOperationsRequest* request, ::viam::robot::v1::GetOperationsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetOperations(::grpc::ClientContext* context, const ::viam::robot::v1::GetOperationsRequest* request, ::viam::robot::v1::GetOperationsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetOperations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::GetOperationsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetOperations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::GetOperationsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif virtual void GetSessions(::grpc::ClientContext* context, const ::viam::robot::v1::GetSessionsRequest* request, ::viam::robot::v1::GetSessionsResponse* response, std::function) = 0; + virtual void GetSessions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::GetSessionsResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetSessions(::grpc::ClientContext* context, const ::viam::robot::v1::GetSessionsRequest* request, ::viam::robot::v1::GetSessionsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetSessions(::grpc::ClientContext* context, const ::viam::robot::v1::GetSessionsRequest* request, ::viam::robot::v1::GetSessionsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetSessions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::GetSessionsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetSessions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::GetSessionsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // ResourceNames returns the list of all resources. virtual void ResourceNames(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceNamesRequest* request, ::viam::robot::v1::ResourceNamesResponse* response, std::function) = 0; + virtual void ResourceNames(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::ResourceNamesResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void ResourceNames(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceNamesRequest* request, ::viam::robot::v1::ResourceNamesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ResourceNames(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceNamesRequest* request, ::viam::robot::v1::ResourceNamesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void ResourceNames(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::ResourceNamesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ResourceNames(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::ResourceNamesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // ResourceRPCSubtypes returns the list of all resource types. virtual void ResourceRPCSubtypes(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceRPCSubtypesRequest* request, ::viam::robot::v1::ResourceRPCSubtypesResponse* response, std::function) = 0; + virtual void ResourceRPCSubtypes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::ResourceRPCSubtypesResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void ResourceRPCSubtypes(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceRPCSubtypesRequest* request, ::viam::robot::v1::ResourceRPCSubtypesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ResourceRPCSubtypes(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceRPCSubtypesRequest* request, ::viam::robot::v1::ResourceRPCSubtypesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void ResourceRPCSubtypes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::ResourceRPCSubtypesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ResourceRPCSubtypes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::ResourceRPCSubtypesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif virtual void CancelOperation(::grpc::ClientContext* context, const ::viam::robot::v1::CancelOperationRequest* request, ::viam::robot::v1::CancelOperationResponse* response, std::function) = 0; + virtual void CancelOperation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::CancelOperationResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void CancelOperation(::grpc::ClientContext* context, const ::viam::robot::v1::CancelOperationRequest* request, ::viam::robot::v1::CancelOperationResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void CancelOperation(::grpc::ClientContext* context, const ::viam::robot::v1::CancelOperationRequest* request, ::viam::robot::v1::CancelOperationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void CancelOperation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::CancelOperationResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void CancelOperation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::CancelOperationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif virtual void BlockForOperation(::grpc::ClientContext* context, const ::viam::robot::v1::BlockForOperationRequest* request, ::viam::robot::v1::BlockForOperationResponse* response, std::function) = 0; + virtual void BlockForOperation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::BlockForOperationResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void BlockForOperation(::grpc::ClientContext* context, const ::viam::robot::v1::BlockForOperationRequest* request, ::viam::robot::v1::BlockForOperationResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void BlockForOperation(::grpc::ClientContext* context, const ::viam::robot::v1::BlockForOperationRequest* request, ::viam::robot::v1::BlockForOperationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void BlockForOperation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::BlockForOperationResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void BlockForOperation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::BlockForOperationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + // GetModelsFromModules returns the list of models supported in modules on the machine. + virtual void GetModelsFromModules(::grpc::ClientContext* context, const ::viam::robot::v1::GetModelsFromModulesRequest* request, ::viam::robot::v1::GetModelsFromModulesResponse* response, std::function) = 0; + virtual void GetModelsFromModules(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::GetModelsFromModulesResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetModelsFromModules(::grpc::ClientContext* context, const ::viam::robot::v1::GetModelsFromModulesRequest* request, ::viam::robot::v1::GetModelsFromModulesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetModelsFromModules(::grpc::ClientContext* context, const ::viam::robot::v1::GetModelsFromModulesRequest* request, ::viam::robot::v1::GetModelsFromModulesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetModelsFromModules(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::GetModelsFromModulesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetModelsFromModules(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::GetModelsFromModulesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // DiscoverComponents returns the list of discovered component configurations. + // This API is deprecated virtual void DiscoverComponents(::grpc::ClientContext* context, const ::viam::robot::v1::DiscoverComponentsRequest* request, ::viam::robot::v1::DiscoverComponentsResponse* response, std::function) = 0; + virtual void DiscoverComponents(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::DiscoverComponentsResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void DiscoverComponents(::grpc::ClientContext* context, const ::viam::robot::v1::DiscoverComponentsRequest* request, ::viam::robot::v1::DiscoverComponentsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DiscoverComponents(::grpc::ClientContext* context, const ::viam::robot::v1::DiscoverComponentsRequest* request, ::viam::robot::v1::DiscoverComponentsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void DiscoverComponents(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::DiscoverComponentsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DiscoverComponents(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::DiscoverComponentsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif virtual void FrameSystemConfig(::grpc::ClientContext* context, const ::viam::robot::v1::FrameSystemConfigRequest* request, ::viam::robot::v1::FrameSystemConfigResponse* response, std::function) = 0; + virtual void FrameSystemConfig(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::FrameSystemConfigResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void FrameSystemConfig(::grpc::ClientContext* context, const ::viam::robot::v1::FrameSystemConfigRequest* request, ::viam::robot::v1::FrameSystemConfigResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void FrameSystemConfig(::grpc::ClientContext* context, const ::viam::robot::v1::FrameSystemConfigRequest* request, ::viam::robot::v1::FrameSystemConfigResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void FrameSystemConfig(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::FrameSystemConfigResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void FrameSystemConfig(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::FrameSystemConfigResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif virtual void TransformPose(::grpc::ClientContext* context, const ::viam::robot::v1::TransformPoseRequest* request, ::viam::robot::v1::TransformPoseResponse* response, std::function) = 0; + virtual void TransformPose(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::TransformPoseResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void TransformPose(::grpc::ClientContext* context, const ::viam::robot::v1::TransformPoseRequest* request, ::viam::robot::v1::TransformPoseResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void TransformPose(::grpc::ClientContext* context, const ::viam::robot::v1::TransformPoseRequest* request, ::viam::robot::v1::TransformPoseResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void TransformPose(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::TransformPoseResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void TransformPose(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::TransformPoseResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif virtual void TransformPCD(::grpc::ClientContext* context, const ::viam::robot::v1::TransformPCDRequest* request, ::viam::robot::v1::TransformPCDResponse* response, std::function) = 0; + virtual void TransformPCD(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::TransformPCDResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void TransformPCD(::grpc::ClientContext* context, const ::viam::robot::v1::TransformPCDRequest* request, ::viam::robot::v1::TransformPCDResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void TransformPCD(::grpc::ClientContext* context, const ::viam::robot::v1::TransformPCDRequest* request, ::viam::robot::v1::TransformPCDResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void TransformPCD(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::TransformPCDResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void TransformPCD(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::TransformPCDResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // GetStatus returns the list of all statuses requested. An empty request signifies all resources. virtual void GetStatus(::grpc::ClientContext* context, const ::viam::robot::v1::GetStatusRequest* request, ::viam::robot::v1::GetStatusResponse* response, std::function) = 0; + virtual void GetStatus(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::GetStatusResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetStatus(::grpc::ClientContext* context, const ::viam::robot::v1::GetStatusRequest* request, ::viam::robot::v1::GetStatusResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetStatus(::grpc::ClientContext* context, const ::viam::robot::v1::GetStatusRequest* request, ::viam::robot::v1::GetStatusResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetStatus(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::GetStatusResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetStatus(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::GetStatusResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // StreamStatus periodically sends the status of all statuses requested. An empty request signifies all resources. - virtual void StreamStatus(::grpc::ClientContext* context, const ::viam::robot::v1::StreamStatusRequest* request, ::grpc::ClientReadReactor< ::viam::robot::v1::StreamStatusResponse>* reactor) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void StreamStatus(::grpc::ClientContext* context, ::viam::robot::v1::StreamStatusRequest* request, ::grpc::ClientReadReactor< ::viam::robot::v1::StreamStatusResponse>* reactor) = 0; + #else + virtual void StreamStatus(::grpc::ClientContext* context, ::viam::robot::v1::StreamStatusRequest* request, ::grpc::experimental::ClientReadReactor< ::viam::robot::v1::StreamStatusResponse>* reactor) = 0; + #endif // StopAll will stop all current and outstanding operations for the robot and stops all actuators and movement virtual void StopAll(::grpc::ClientContext* context, const ::viam::robot::v1::StopAllRequest* request, ::viam::robot::v1::StopAllResponse* response, std::function) = 0; + virtual void StopAll(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::StopAllResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void StopAll(::grpc::ClientContext* context, const ::viam::robot::v1::StopAllRequest* request, ::viam::robot::v1::StopAllResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void StopAll(::grpc::ClientContext* context, const ::viam::robot::v1::StopAllRequest* request, ::viam::robot::v1::StopAllResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void StopAll(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::StopAllResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void StopAll(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::StopAllResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // StartSession creates a new session that expects at least one heartbeat within the returned window. // If the window lapses, any resources that have safety heart monitored methods, where this session was // the last caller on the resource, will be stopped. virtual void StartSession(::grpc::ClientContext* context, const ::viam::robot::v1::StartSessionRequest* request, ::viam::robot::v1::StartSessionResponse* response, std::function) = 0; + virtual void StartSession(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::StartSessionResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void StartSession(::grpc::ClientContext* context, const ::viam::robot::v1::StartSessionRequest* request, ::viam::robot::v1::StartSessionResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void StartSession(::grpc::ClientContext* context, const ::viam::robot::v1::StartSessionRequest* request, ::viam::robot::v1::StartSessionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void StartSession(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::StartSessionResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void StartSession(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::StartSessionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // SendSessionHeartbeat sends a heartbeat to the given session. If the session has expired, a // SESSION_EXPIRED error will be returned. virtual void SendSessionHeartbeat(::grpc::ClientContext* context, const ::viam::robot::v1::SendSessionHeartbeatRequest* request, ::viam::robot::v1::SendSessionHeartbeatResponse* response, std::function) = 0; + virtual void SendSessionHeartbeat(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::SendSessionHeartbeatResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void SendSessionHeartbeat(::grpc::ClientContext* context, const ::viam::robot::v1::SendSessionHeartbeatRequest* request, ::viam::robot::v1::SendSessionHeartbeatResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void SendSessionHeartbeat(::grpc::ClientContext* context, const ::viam::robot::v1::SendSessionHeartbeatRequest* request, ::viam::robot::v1::SendSessionHeartbeatResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void SendSessionHeartbeat(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::SendSessionHeartbeatResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void SendSessionHeartbeat(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::SendSessionHeartbeatResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Log sends logs to be logged by this robot. Currently used for module logging. virtual void Log(::grpc::ClientContext* context, const ::viam::robot::v1::LogRequest* request, ::viam::robot::v1::LogResponse* response, std::function) = 0; + virtual void Log(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::LogResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void Log(::grpc::ClientContext* context, const ::viam::robot::v1::LogRequest* request, ::viam::robot::v1::LogResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void Log(::grpc::ClientContext* context, const ::viam::robot::v1::LogRequest* request, ::viam::robot::v1::LogResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void Log(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::LogResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void Log(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::LogResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // GetCloudMetadata returns app-related information about the robot. virtual void GetCloudMetadata(::grpc::ClientContext* context, const ::viam::robot::v1::GetCloudMetadataRequest* request, ::viam::robot::v1::GetCloudMetadataResponse* response, std::function) = 0; + virtual void GetCloudMetadata(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::GetCloudMetadataResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetCloudMetadata(::grpc::ClientContext* context, const ::viam::robot::v1::GetCloudMetadataRequest* request, ::viam::robot::v1::GetCloudMetadataResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetCloudMetadata(::grpc::ClientContext* context, const ::viam::robot::v1::GetCloudMetadataRequest* request, ::viam::robot::v1::GetCloudMetadataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetCloudMetadata(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::GetCloudMetadataResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetCloudMetadata(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::GetCloudMetadataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif virtual void RestartModule(::grpc::ClientContext* context, const ::viam::robot::v1::RestartModuleRequest* request, ::viam::robot::v1::RestartModuleResponse* response, std::function) = 0; + virtual void RestartModule(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::RestartModuleResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void RestartModule(::grpc::ClientContext* context, const ::viam::robot::v1::RestartModuleRequest* request, ::viam::robot::v1::RestartModuleResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void RestartModule(::grpc::ClientContext* context, const ::viam::robot::v1::RestartModuleRequest* request, ::viam::robot::v1::RestartModuleResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void RestartModule(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::RestartModuleResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void RestartModule(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::RestartModuleResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Shutdown shuts down the robot. virtual void Shutdown(::grpc::ClientContext* context, const ::viam::robot::v1::ShutdownRequest* request, ::viam::robot::v1::ShutdownResponse* response, std::function) = 0; + virtual void Shutdown(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::ShutdownResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void Shutdown(::grpc::ClientContext* context, const ::viam::robot::v1::ShutdownRequest* request, ::viam::robot::v1::ShutdownResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void Shutdown(::grpc::ClientContext* context, const ::viam::robot::v1::ShutdownRequest* request, ::viam::robot::v1::ShutdownResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void Shutdown(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::ShutdownResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void Shutdown(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::ShutdownResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // GetMachineStatus returns the current status of the robot. virtual void GetMachineStatus(::grpc::ClientContext* context, const ::viam::robot::v1::GetMachineStatusRequest* request, ::viam::robot::v1::GetMachineStatusResponse* response, std::function) = 0; + virtual void GetMachineStatus(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::GetMachineStatusResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetMachineStatus(::grpc::ClientContext* context, const ::viam::robot::v1::GetMachineStatusRequest* request, ::viam::robot::v1::GetMachineStatusResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetMachineStatus(::grpc::ClientContext* context, const ::viam::robot::v1::GetMachineStatusRequest* request, ::viam::robot::v1::GetMachineStatusResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetMachineStatus(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::GetMachineStatusResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetMachineStatus(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::GetMachineStatusResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // GetVersion returns version information about the robot. virtual void GetVersion(::grpc::ClientContext* context, const ::viam::robot::v1::GetVersionRequest* request, ::viam::robot::v1::GetVersionResponse* response, std::function) = 0; + virtual void GetVersion(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::GetVersionResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetVersion(::grpc::ClientContext* context, const ::viam::robot::v1::GetVersionRequest* request, ::viam::robot::v1::GetVersionResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetVersion(::grpc::ClientContext* context, const ::viam::robot::v1::GetVersionRequest* request, ::viam::robot::v1::GetVersionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetVersion(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::GetVersionResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetVersion(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::GetVersionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + // Tunnel tunnels traffic to the destination port of the robot server. + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void Tunnel(::grpc::ClientContext* context, ::grpc::ClientBidiReactor< ::viam::robot::v1::TunnelRequest,::viam::robot::v1::TunnelResponse>* reactor) = 0; + #else + virtual void Tunnel(::grpc::ClientContext* context, ::grpc::experimental::ClientBidiReactor< ::viam::robot::v1::TunnelRequest,::viam::robot::v1::TunnelResponse>* reactor) = 0; + #endif }; - typedef class async_interface experimental_async_interface; - virtual class async_interface* async() { return nullptr; } - class async_interface* experimental_async() { return async(); } - private: + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef class experimental_async_interface async_interface; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + async_interface* async() { return experimental_async(); } + #endif + virtual class experimental_async_interface* experimental_async() { return nullptr; } + private: virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::GetOperationsResponse>* AsyncGetOperationsRaw(::grpc::ClientContext* context, const ::viam::robot::v1::GetOperationsRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::GetOperationsResponse>* PrepareAsyncGetOperationsRaw(::grpc::ClientContext* context, const ::viam::robot::v1::GetOperationsRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::GetSessionsResponse>* AsyncGetSessionsRaw(::grpc::ClientContext* context, const ::viam::robot::v1::GetSessionsRequest& request, ::grpc::CompletionQueue* cq) = 0; @@ -280,6 +528,8 @@ class RobotService final { virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::CancelOperationResponse>* PrepareAsyncCancelOperationRaw(::grpc::ClientContext* context, const ::viam::robot::v1::CancelOperationRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::BlockForOperationResponse>* AsyncBlockForOperationRaw(::grpc::ClientContext* context, const ::viam::robot::v1::BlockForOperationRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::BlockForOperationResponse>* PrepareAsyncBlockForOperationRaw(::grpc::ClientContext* context, const ::viam::robot::v1::BlockForOperationRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::GetModelsFromModulesResponse>* AsyncGetModelsFromModulesRaw(::grpc::ClientContext* context, const ::viam::robot::v1::GetModelsFromModulesRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::GetModelsFromModulesResponse>* PrepareAsyncGetModelsFromModulesRaw(::grpc::ClientContext* context, const ::viam::robot::v1::GetModelsFromModulesRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::DiscoverComponentsResponse>* AsyncDiscoverComponentsRaw(::grpc::ClientContext* context, const ::viam::robot::v1::DiscoverComponentsRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::DiscoverComponentsResponse>* PrepareAsyncDiscoverComponentsRaw(::grpc::ClientContext* context, const ::viam::robot::v1::DiscoverComponentsRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::FrameSystemConfigResponse>* AsyncFrameSystemConfigRaw(::grpc::ClientContext* context, const ::viam::robot::v1::FrameSystemConfigRequest& request, ::grpc::CompletionQueue* cq) = 0; @@ -311,10 +561,13 @@ class RobotService final { virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::GetMachineStatusResponse>* PrepareAsyncGetMachineStatusRaw(::grpc::ClientContext* context, const ::viam::robot::v1::GetMachineStatusRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::GetVersionResponse>* AsyncGetVersionRaw(::grpc::ClientContext* context, const ::viam::robot::v1::GetVersionRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::robot::v1::GetVersionResponse>* PrepareAsyncGetVersionRaw(::grpc::ClientContext* context, const ::viam::robot::v1::GetVersionRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientReaderWriterInterface< ::viam::robot::v1::TunnelRequest, ::viam::robot::v1::TunnelResponse>* TunnelRaw(::grpc::ClientContext* context) = 0; + virtual ::grpc::ClientAsyncReaderWriterInterface< ::viam::robot::v1::TunnelRequest, ::viam::robot::v1::TunnelResponse>* AsyncTunnelRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) = 0; + virtual ::grpc::ClientAsyncReaderWriterInterface< ::viam::robot::v1::TunnelRequest, ::viam::robot::v1::TunnelResponse>* PrepareAsyncTunnelRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) = 0; }; class Stub final : public StubInterface { public: - Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); ::grpc::Status GetOperations(::grpc::ClientContext* context, const ::viam::robot::v1::GetOperationsRequest& request, ::viam::robot::v1::GetOperationsResponse* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetOperationsResponse>> AsyncGetOperations(::grpc::ClientContext* context, const ::viam::robot::v1::GetOperationsRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetOperationsResponse>>(AsyncGetOperationsRaw(context, request, cq)); @@ -357,6 +610,13 @@ class RobotService final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::BlockForOperationResponse>> PrepareAsyncBlockForOperation(::grpc::ClientContext* context, const ::viam::robot::v1::BlockForOperationRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::BlockForOperationResponse>>(PrepareAsyncBlockForOperationRaw(context, request, cq)); } + ::grpc::Status GetModelsFromModules(::grpc::ClientContext* context, const ::viam::robot::v1::GetModelsFromModulesRequest& request, ::viam::robot::v1::GetModelsFromModulesResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetModelsFromModulesResponse>> AsyncGetModelsFromModules(::grpc::ClientContext* context, const ::viam::robot::v1::GetModelsFromModulesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetModelsFromModulesResponse>>(AsyncGetModelsFromModulesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetModelsFromModulesResponse>> PrepareAsyncGetModelsFromModules(::grpc::ClientContext* context, const ::viam::robot::v1::GetModelsFromModulesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetModelsFromModulesResponse>>(PrepareAsyncGetModelsFromModulesRaw(context, request, cq)); + } ::grpc::Status DiscoverComponents(::grpc::ClientContext* context, const ::viam::robot::v1::DiscoverComponentsRequest& request, ::viam::robot::v1::DiscoverComponentsResponse* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::DiscoverComponentsResponse>> AsyncDiscoverComponents(::grpc::ClientContext* context, const ::viam::robot::v1::DiscoverComponentsRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::DiscoverComponentsResponse>>(AsyncDiscoverComponentsRaw(context, request, cq)); @@ -464,61 +724,291 @@ class RobotService final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetVersionResponse>> PrepareAsyncGetVersion(::grpc::ClientContext* context, const ::viam::robot::v1::GetVersionRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetVersionResponse>>(PrepareAsyncGetVersionRaw(context, request, cq)); } - class async final : - public StubInterface::async_interface { + std::unique_ptr< ::grpc::ClientReaderWriter< ::viam::robot::v1::TunnelRequest, ::viam::robot::v1::TunnelResponse>> Tunnel(::grpc::ClientContext* context) { + return std::unique_ptr< ::grpc::ClientReaderWriter< ::viam::robot::v1::TunnelRequest, ::viam::robot::v1::TunnelResponse>>(TunnelRaw(context)); + } + std::unique_ptr< ::grpc::ClientAsyncReaderWriter< ::viam::robot::v1::TunnelRequest, ::viam::robot::v1::TunnelResponse>> AsyncTunnel(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) { + return std::unique_ptr< ::grpc::ClientAsyncReaderWriter< ::viam::robot::v1::TunnelRequest, ::viam::robot::v1::TunnelResponse>>(AsyncTunnelRaw(context, cq, tag)); + } + std::unique_ptr< ::grpc::ClientAsyncReaderWriter< ::viam::robot::v1::TunnelRequest, ::viam::robot::v1::TunnelResponse>> PrepareAsyncTunnel(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncReaderWriter< ::viam::robot::v1::TunnelRequest, ::viam::robot::v1::TunnelResponse>>(PrepareAsyncTunnelRaw(context, cq)); + } + class experimental_async final : + public StubInterface::experimental_async_interface { public: void GetOperations(::grpc::ClientContext* context, const ::viam::robot::v1::GetOperationsRequest* request, ::viam::robot::v1::GetOperationsResponse* response, std::function) override; + void GetOperations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::GetOperationsResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetOperations(::grpc::ClientContext* context, const ::viam::robot::v1::GetOperationsRequest* request, ::viam::robot::v1::GetOperationsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetOperations(::grpc::ClientContext* context, const ::viam::robot::v1::GetOperationsRequest* request, ::viam::robot::v1::GetOperationsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetOperations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::GetOperationsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetOperations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::GetOperationsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetSessions(::grpc::ClientContext* context, const ::viam::robot::v1::GetSessionsRequest* request, ::viam::robot::v1::GetSessionsResponse* response, std::function) override; + void GetSessions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::GetSessionsResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetSessions(::grpc::ClientContext* context, const ::viam::robot::v1::GetSessionsRequest* request, ::viam::robot::v1::GetSessionsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetSessions(::grpc::ClientContext* context, const ::viam::robot::v1::GetSessionsRequest* request, ::viam::robot::v1::GetSessionsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetSessions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::GetSessionsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetSessions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::GetSessionsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void ResourceNames(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceNamesRequest* request, ::viam::robot::v1::ResourceNamesResponse* response, std::function) override; + void ResourceNames(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::ResourceNamesResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void ResourceNames(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceNamesRequest* request, ::viam::robot::v1::ResourceNamesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ResourceNames(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceNamesRequest* request, ::viam::robot::v1::ResourceNamesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void ResourceNames(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::ResourceNamesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ResourceNames(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::ResourceNamesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void ResourceRPCSubtypes(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceRPCSubtypesRequest* request, ::viam::robot::v1::ResourceRPCSubtypesResponse* response, std::function) override; + void ResourceRPCSubtypes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::ResourceRPCSubtypesResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void ResourceRPCSubtypes(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceRPCSubtypesRequest* request, ::viam::robot::v1::ResourceRPCSubtypesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ResourceRPCSubtypes(::grpc::ClientContext* context, const ::viam::robot::v1::ResourceRPCSubtypesRequest* request, ::viam::robot::v1::ResourceRPCSubtypesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void ResourceRPCSubtypes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::ResourceRPCSubtypesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ResourceRPCSubtypes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::ResourceRPCSubtypesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void CancelOperation(::grpc::ClientContext* context, const ::viam::robot::v1::CancelOperationRequest* request, ::viam::robot::v1::CancelOperationResponse* response, std::function) override; + void CancelOperation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::CancelOperationResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void CancelOperation(::grpc::ClientContext* context, const ::viam::robot::v1::CancelOperationRequest* request, ::viam::robot::v1::CancelOperationResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void CancelOperation(::grpc::ClientContext* context, const ::viam::robot::v1::CancelOperationRequest* request, ::viam::robot::v1::CancelOperationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void CancelOperation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::CancelOperationResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void CancelOperation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::CancelOperationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void BlockForOperation(::grpc::ClientContext* context, const ::viam::robot::v1::BlockForOperationRequest* request, ::viam::robot::v1::BlockForOperationResponse* response, std::function) override; + void BlockForOperation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::BlockForOperationResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void BlockForOperation(::grpc::ClientContext* context, const ::viam::robot::v1::BlockForOperationRequest* request, ::viam::robot::v1::BlockForOperationResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void BlockForOperation(::grpc::ClientContext* context, const ::viam::robot::v1::BlockForOperationRequest* request, ::viam::robot::v1::BlockForOperationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void BlockForOperation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::BlockForOperationResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void BlockForOperation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::BlockForOperationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + void GetModelsFromModules(::grpc::ClientContext* context, const ::viam::robot::v1::GetModelsFromModulesRequest* request, ::viam::robot::v1::GetModelsFromModulesResponse* response, std::function) override; + void GetModelsFromModules(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::GetModelsFromModulesResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetModelsFromModules(::grpc::ClientContext* context, const ::viam::robot::v1::GetModelsFromModulesRequest* request, ::viam::robot::v1::GetModelsFromModulesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetModelsFromModules(::grpc::ClientContext* context, const ::viam::robot::v1::GetModelsFromModulesRequest* request, ::viam::robot::v1::GetModelsFromModulesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetModelsFromModules(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::GetModelsFromModulesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetModelsFromModules(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::GetModelsFromModulesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void DiscoverComponents(::grpc::ClientContext* context, const ::viam::robot::v1::DiscoverComponentsRequest* request, ::viam::robot::v1::DiscoverComponentsResponse* response, std::function) override; + void DiscoverComponents(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::DiscoverComponentsResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void DiscoverComponents(::grpc::ClientContext* context, const ::viam::robot::v1::DiscoverComponentsRequest* request, ::viam::robot::v1::DiscoverComponentsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DiscoverComponents(::grpc::ClientContext* context, const ::viam::robot::v1::DiscoverComponentsRequest* request, ::viam::robot::v1::DiscoverComponentsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void DiscoverComponents(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::DiscoverComponentsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DiscoverComponents(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::DiscoverComponentsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void FrameSystemConfig(::grpc::ClientContext* context, const ::viam::robot::v1::FrameSystemConfigRequest* request, ::viam::robot::v1::FrameSystemConfigResponse* response, std::function) override; + void FrameSystemConfig(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::FrameSystemConfigResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void FrameSystemConfig(::grpc::ClientContext* context, const ::viam::robot::v1::FrameSystemConfigRequest* request, ::viam::robot::v1::FrameSystemConfigResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void FrameSystemConfig(::grpc::ClientContext* context, const ::viam::robot::v1::FrameSystemConfigRequest* request, ::viam::robot::v1::FrameSystemConfigResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void FrameSystemConfig(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::FrameSystemConfigResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void FrameSystemConfig(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::FrameSystemConfigResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void TransformPose(::grpc::ClientContext* context, const ::viam::robot::v1::TransformPoseRequest* request, ::viam::robot::v1::TransformPoseResponse* response, std::function) override; + void TransformPose(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::TransformPoseResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void TransformPose(::grpc::ClientContext* context, const ::viam::robot::v1::TransformPoseRequest* request, ::viam::robot::v1::TransformPoseResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void TransformPose(::grpc::ClientContext* context, const ::viam::robot::v1::TransformPoseRequest* request, ::viam::robot::v1::TransformPoseResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void TransformPose(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::TransformPoseResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void TransformPose(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::TransformPoseResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void TransformPCD(::grpc::ClientContext* context, const ::viam::robot::v1::TransformPCDRequest* request, ::viam::robot::v1::TransformPCDResponse* response, std::function) override; + void TransformPCD(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::TransformPCDResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void TransformPCD(::grpc::ClientContext* context, const ::viam::robot::v1::TransformPCDRequest* request, ::viam::robot::v1::TransformPCDResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void TransformPCD(::grpc::ClientContext* context, const ::viam::robot::v1::TransformPCDRequest* request, ::viam::robot::v1::TransformPCDResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void TransformPCD(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::TransformPCDResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void TransformPCD(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::TransformPCDResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetStatus(::grpc::ClientContext* context, const ::viam::robot::v1::GetStatusRequest* request, ::viam::robot::v1::GetStatusResponse* response, std::function) override; + void GetStatus(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::GetStatusResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetStatus(::grpc::ClientContext* context, const ::viam::robot::v1::GetStatusRequest* request, ::viam::robot::v1::GetStatusResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - void StreamStatus(::grpc::ClientContext* context, const ::viam::robot::v1::StreamStatusRequest* request, ::grpc::ClientReadReactor< ::viam::robot::v1::StreamStatusResponse>* reactor) override; + #else + void GetStatus(::grpc::ClientContext* context, const ::viam::robot::v1::GetStatusRequest* request, ::viam::robot::v1::GetStatusResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetStatus(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::GetStatusResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetStatus(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::GetStatusResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void StreamStatus(::grpc::ClientContext* context, ::viam::robot::v1::StreamStatusRequest* request, ::grpc::ClientReadReactor< ::viam::robot::v1::StreamStatusResponse>* reactor) override; + #else + void StreamStatus(::grpc::ClientContext* context, ::viam::robot::v1::StreamStatusRequest* request, ::grpc::experimental::ClientReadReactor< ::viam::robot::v1::StreamStatusResponse>* reactor) override; + #endif void StopAll(::grpc::ClientContext* context, const ::viam::robot::v1::StopAllRequest* request, ::viam::robot::v1::StopAllResponse* response, std::function) override; + void StopAll(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::StopAllResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void StopAll(::grpc::ClientContext* context, const ::viam::robot::v1::StopAllRequest* request, ::viam::robot::v1::StopAllResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void StopAll(::grpc::ClientContext* context, const ::viam::robot::v1::StopAllRequest* request, ::viam::robot::v1::StopAllResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void StopAll(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::StopAllResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void StopAll(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::StopAllResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void StartSession(::grpc::ClientContext* context, const ::viam::robot::v1::StartSessionRequest* request, ::viam::robot::v1::StartSessionResponse* response, std::function) override; + void StartSession(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::StartSessionResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void StartSession(::grpc::ClientContext* context, const ::viam::robot::v1::StartSessionRequest* request, ::viam::robot::v1::StartSessionResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void StartSession(::grpc::ClientContext* context, const ::viam::robot::v1::StartSessionRequest* request, ::viam::robot::v1::StartSessionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void StartSession(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::StartSessionResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void StartSession(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::StartSessionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void SendSessionHeartbeat(::grpc::ClientContext* context, const ::viam::robot::v1::SendSessionHeartbeatRequest* request, ::viam::robot::v1::SendSessionHeartbeatResponse* response, std::function) override; + void SendSessionHeartbeat(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::SendSessionHeartbeatResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void SendSessionHeartbeat(::grpc::ClientContext* context, const ::viam::robot::v1::SendSessionHeartbeatRequest* request, ::viam::robot::v1::SendSessionHeartbeatResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void SendSessionHeartbeat(::grpc::ClientContext* context, const ::viam::robot::v1::SendSessionHeartbeatRequest* request, ::viam::robot::v1::SendSessionHeartbeatResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void SendSessionHeartbeat(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::SendSessionHeartbeatResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void SendSessionHeartbeat(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::SendSessionHeartbeatResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void Log(::grpc::ClientContext* context, const ::viam::robot::v1::LogRequest* request, ::viam::robot::v1::LogResponse* response, std::function) override; + void Log(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::LogResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void Log(::grpc::ClientContext* context, const ::viam::robot::v1::LogRequest* request, ::viam::robot::v1::LogResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void Log(::grpc::ClientContext* context, const ::viam::robot::v1::LogRequest* request, ::viam::robot::v1::LogResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void Log(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::LogResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void Log(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::LogResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetCloudMetadata(::grpc::ClientContext* context, const ::viam::robot::v1::GetCloudMetadataRequest* request, ::viam::robot::v1::GetCloudMetadataResponse* response, std::function) override; + void GetCloudMetadata(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::GetCloudMetadataResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetCloudMetadata(::grpc::ClientContext* context, const ::viam::robot::v1::GetCloudMetadataRequest* request, ::viam::robot::v1::GetCloudMetadataResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetCloudMetadata(::grpc::ClientContext* context, const ::viam::robot::v1::GetCloudMetadataRequest* request, ::viam::robot::v1::GetCloudMetadataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetCloudMetadata(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::GetCloudMetadataResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetCloudMetadata(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::GetCloudMetadataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void RestartModule(::grpc::ClientContext* context, const ::viam::robot::v1::RestartModuleRequest* request, ::viam::robot::v1::RestartModuleResponse* response, std::function) override; + void RestartModule(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::RestartModuleResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void RestartModule(::grpc::ClientContext* context, const ::viam::robot::v1::RestartModuleRequest* request, ::viam::robot::v1::RestartModuleResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void RestartModule(::grpc::ClientContext* context, const ::viam::robot::v1::RestartModuleRequest* request, ::viam::robot::v1::RestartModuleResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void RestartModule(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::RestartModuleResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void RestartModule(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::RestartModuleResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void Shutdown(::grpc::ClientContext* context, const ::viam::robot::v1::ShutdownRequest* request, ::viam::robot::v1::ShutdownResponse* response, std::function) override; + void Shutdown(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::ShutdownResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void Shutdown(::grpc::ClientContext* context, const ::viam::robot::v1::ShutdownRequest* request, ::viam::robot::v1::ShutdownResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void Shutdown(::grpc::ClientContext* context, const ::viam::robot::v1::ShutdownRequest* request, ::viam::robot::v1::ShutdownResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void Shutdown(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::ShutdownResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void Shutdown(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::ShutdownResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetMachineStatus(::grpc::ClientContext* context, const ::viam::robot::v1::GetMachineStatusRequest* request, ::viam::robot::v1::GetMachineStatusResponse* response, std::function) override; + void GetMachineStatus(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::GetMachineStatusResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetMachineStatus(::grpc::ClientContext* context, const ::viam::robot::v1::GetMachineStatusRequest* request, ::viam::robot::v1::GetMachineStatusResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetMachineStatus(::grpc::ClientContext* context, const ::viam::robot::v1::GetMachineStatusRequest* request, ::viam::robot::v1::GetMachineStatusResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetMachineStatus(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::GetMachineStatusResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetMachineStatus(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::GetMachineStatusResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetVersion(::grpc::ClientContext* context, const ::viam::robot::v1::GetVersionRequest* request, ::viam::robot::v1::GetVersionResponse* response, std::function) override; + void GetVersion(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::GetVersionResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetVersion(::grpc::ClientContext* context, const ::viam::robot::v1::GetVersionRequest* request, ::viam::robot::v1::GetVersionResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetVersion(::grpc::ClientContext* context, const ::viam::robot::v1::GetVersionRequest* request, ::viam::robot::v1::GetVersionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetVersion(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::GetVersionResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetVersion(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::robot::v1::GetVersionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void Tunnel(::grpc::ClientContext* context, ::grpc::ClientBidiReactor< ::viam::robot::v1::TunnelRequest,::viam::robot::v1::TunnelResponse>* reactor) override; + #else + void Tunnel(::grpc::ClientContext* context, ::grpc::experimental::ClientBidiReactor< ::viam::robot::v1::TunnelRequest,::viam::robot::v1::TunnelResponse>* reactor) override; + #endif private: friend class Stub; - explicit async(Stub* stub): stub_(stub) { } + explicit experimental_async(Stub* stub): stub_(stub) { } Stub* stub() { return stub_; } Stub* stub_; }; - class async* async() override { return &async_stub_; } + class experimental_async_interface* experimental_async() override { return &async_stub_; } private: std::shared_ptr< ::grpc::ChannelInterface> channel_; - class async async_stub_{this}; + class experimental_async async_stub_{this}; ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetOperationsResponse>* AsyncGetOperationsRaw(::grpc::ClientContext* context, const ::viam::robot::v1::GetOperationsRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetOperationsResponse>* PrepareAsyncGetOperationsRaw(::grpc::ClientContext* context, const ::viam::robot::v1::GetOperationsRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetSessionsResponse>* AsyncGetSessionsRaw(::grpc::ClientContext* context, const ::viam::robot::v1::GetSessionsRequest& request, ::grpc::CompletionQueue* cq) override; @@ -531,6 +1021,8 @@ class RobotService final { ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::CancelOperationResponse>* PrepareAsyncCancelOperationRaw(::grpc::ClientContext* context, const ::viam::robot::v1::CancelOperationRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::BlockForOperationResponse>* AsyncBlockForOperationRaw(::grpc::ClientContext* context, const ::viam::robot::v1::BlockForOperationRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::BlockForOperationResponse>* PrepareAsyncBlockForOperationRaw(::grpc::ClientContext* context, const ::viam::robot::v1::BlockForOperationRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetModelsFromModulesResponse>* AsyncGetModelsFromModulesRaw(::grpc::ClientContext* context, const ::viam::robot::v1::GetModelsFromModulesRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetModelsFromModulesResponse>* PrepareAsyncGetModelsFromModulesRaw(::grpc::ClientContext* context, const ::viam::robot::v1::GetModelsFromModulesRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::DiscoverComponentsResponse>* AsyncDiscoverComponentsRaw(::grpc::ClientContext* context, const ::viam::robot::v1::DiscoverComponentsRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::DiscoverComponentsResponse>* PrepareAsyncDiscoverComponentsRaw(::grpc::ClientContext* context, const ::viam::robot::v1::DiscoverComponentsRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::FrameSystemConfigResponse>* AsyncFrameSystemConfigRaw(::grpc::ClientContext* context, const ::viam::robot::v1::FrameSystemConfigRequest& request, ::grpc::CompletionQueue* cq) override; @@ -562,12 +1054,16 @@ class RobotService final { ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetMachineStatusResponse>* PrepareAsyncGetMachineStatusRaw(::grpc::ClientContext* context, const ::viam::robot::v1::GetMachineStatusRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetVersionResponse>* AsyncGetVersionRaw(::grpc::ClientContext* context, const ::viam::robot::v1::GetVersionRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::robot::v1::GetVersionResponse>* PrepareAsyncGetVersionRaw(::grpc::ClientContext* context, const ::viam::robot::v1::GetVersionRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientReaderWriter< ::viam::robot::v1::TunnelRequest, ::viam::robot::v1::TunnelResponse>* TunnelRaw(::grpc::ClientContext* context) override; + ::grpc::ClientAsyncReaderWriter< ::viam::robot::v1::TunnelRequest, ::viam::robot::v1::TunnelResponse>* AsyncTunnelRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) override; + ::grpc::ClientAsyncReaderWriter< ::viam::robot::v1::TunnelRequest, ::viam::robot::v1::TunnelResponse>* PrepareAsyncTunnelRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) override; const ::grpc::internal::RpcMethod rpcmethod_GetOperations_; const ::grpc::internal::RpcMethod rpcmethod_GetSessions_; const ::grpc::internal::RpcMethod rpcmethod_ResourceNames_; const ::grpc::internal::RpcMethod rpcmethod_ResourceRPCSubtypes_; const ::grpc::internal::RpcMethod rpcmethod_CancelOperation_; const ::grpc::internal::RpcMethod rpcmethod_BlockForOperation_; + const ::grpc::internal::RpcMethod rpcmethod_GetModelsFromModules_; const ::grpc::internal::RpcMethod rpcmethod_DiscoverComponents_; const ::grpc::internal::RpcMethod rpcmethod_FrameSystemConfig_; const ::grpc::internal::RpcMethod rpcmethod_TransformPose_; @@ -583,6 +1079,7 @@ class RobotService final { const ::grpc::internal::RpcMethod rpcmethod_Shutdown_; const ::grpc::internal::RpcMethod rpcmethod_GetMachineStatus_; const ::grpc::internal::RpcMethod rpcmethod_GetVersion_; + const ::grpc::internal::RpcMethod rpcmethod_Tunnel_; }; static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); @@ -598,7 +1095,10 @@ class RobotService final { virtual ::grpc::Status ResourceRPCSubtypes(::grpc::ServerContext* context, const ::viam::robot::v1::ResourceRPCSubtypesRequest* request, ::viam::robot::v1::ResourceRPCSubtypesResponse* response); virtual ::grpc::Status CancelOperation(::grpc::ServerContext* context, const ::viam::robot::v1::CancelOperationRequest* request, ::viam::robot::v1::CancelOperationResponse* response); virtual ::grpc::Status BlockForOperation(::grpc::ServerContext* context, const ::viam::robot::v1::BlockForOperationRequest* request, ::viam::robot::v1::BlockForOperationResponse* response); + // GetModelsFromModules returns the list of models supported in modules on the machine. + virtual ::grpc::Status GetModelsFromModules(::grpc::ServerContext* context, const ::viam::robot::v1::GetModelsFromModulesRequest* request, ::viam::robot::v1::GetModelsFromModulesResponse* response); // DiscoverComponents returns the list of discovered component configurations. + // This API is deprecated virtual ::grpc::Status DiscoverComponents(::grpc::ServerContext* context, const ::viam::robot::v1::DiscoverComponentsRequest* request, ::viam::robot::v1::DiscoverComponentsResponse* response); virtual ::grpc::Status FrameSystemConfig(::grpc::ServerContext* context, const ::viam::robot::v1::FrameSystemConfigRequest* request, ::viam::robot::v1::FrameSystemConfigResponse* response); virtual ::grpc::Status TransformPose(::grpc::ServerContext* context, const ::viam::robot::v1::TransformPoseRequest* request, ::viam::robot::v1::TransformPoseResponse* response); @@ -627,6 +1127,8 @@ class RobotService final { virtual ::grpc::Status GetMachineStatus(::grpc::ServerContext* context, const ::viam::robot::v1::GetMachineStatusRequest* request, ::viam::robot::v1::GetMachineStatusResponse* response); // GetVersion returns version information about the robot. virtual ::grpc::Status GetVersion(::grpc::ServerContext* context, const ::viam::robot::v1::GetVersionRequest* request, ::viam::robot::v1::GetVersionResponse* response); + // Tunnel tunnels traffic to the destination port of the robot server. + virtual ::grpc::Status Tunnel(::grpc::ServerContext* context, ::grpc::ServerReaderWriter< ::viam::robot::v1::TunnelResponse, ::viam::robot::v1::TunnelRequest>* stream); }; template class WithAsyncMethod_GetOperations : public BaseClass { @@ -749,12 +1251,32 @@ class RobotService final { } }; template + class WithAsyncMethod_GetModelsFromModules : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetModelsFromModules() { + ::grpc::Service::MarkMethodAsync(6); + } + ~WithAsyncMethod_GetModelsFromModules() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetModelsFromModules(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::GetModelsFromModulesRequest* /*request*/, ::viam::robot::v1::GetModelsFromModulesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetModelsFromModules(::grpc::ServerContext* context, ::viam::robot::v1::GetModelsFromModulesRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::robot::v1::GetModelsFromModulesResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template class WithAsyncMethod_DiscoverComponents : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_DiscoverComponents() { - ::grpc::Service::MarkMethodAsync(6); + ::grpc::Service::MarkMethodAsync(7); } ~WithAsyncMethod_DiscoverComponents() override { BaseClassMustBeDerivedFromService(this); @@ -765,7 +1287,7 @@ class RobotService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestDiscoverComponents(::grpc::ServerContext* context, ::viam::robot::v1::DiscoverComponentsRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::robot::v1::DiscoverComponentsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -774,7 +1296,7 @@ class RobotService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_FrameSystemConfig() { - ::grpc::Service::MarkMethodAsync(7); + ::grpc::Service::MarkMethodAsync(8); } ~WithAsyncMethod_FrameSystemConfig() override { BaseClassMustBeDerivedFromService(this); @@ -785,7 +1307,7 @@ class RobotService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestFrameSystemConfig(::grpc::ServerContext* context, ::viam::robot::v1::FrameSystemConfigRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::robot::v1::FrameSystemConfigResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -794,7 +1316,7 @@ class RobotService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_TransformPose() { - ::grpc::Service::MarkMethodAsync(8); + ::grpc::Service::MarkMethodAsync(9); } ~WithAsyncMethod_TransformPose() override { BaseClassMustBeDerivedFromService(this); @@ -805,7 +1327,7 @@ class RobotService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestTransformPose(::grpc::ServerContext* context, ::viam::robot::v1::TransformPoseRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::robot::v1::TransformPoseResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -814,7 +1336,7 @@ class RobotService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_TransformPCD() { - ::grpc::Service::MarkMethodAsync(9); + ::grpc::Service::MarkMethodAsync(10); } ~WithAsyncMethod_TransformPCD() override { BaseClassMustBeDerivedFromService(this); @@ -825,7 +1347,7 @@ class RobotService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestTransformPCD(::grpc::ServerContext* context, ::viam::robot::v1::TransformPCDRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::robot::v1::TransformPCDResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(10, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -834,7 +1356,7 @@ class RobotService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_GetStatus() { - ::grpc::Service::MarkMethodAsync(10); + ::grpc::Service::MarkMethodAsync(11); } ~WithAsyncMethod_GetStatus() override { BaseClassMustBeDerivedFromService(this); @@ -845,7 +1367,7 @@ class RobotService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestGetStatus(::grpc::ServerContext* context, ::viam::robot::v1::GetStatusRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::robot::v1::GetStatusResponse>* 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); + ::grpc::Service::RequestAsyncUnary(11, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -854,7 +1376,7 @@ class RobotService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_StreamStatus() { - ::grpc::Service::MarkMethodAsync(11); + ::grpc::Service::MarkMethodAsync(12); } ~WithAsyncMethod_StreamStatus() override { BaseClassMustBeDerivedFromService(this); @@ -865,7 +1387,7 @@ class RobotService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestStreamStatus(::grpc::ServerContext* context, ::viam::robot::v1::StreamStatusRequest* request, ::grpc::ServerAsyncWriter< ::viam::robot::v1::StreamStatusResponse>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncServerStreaming(11, context, request, writer, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncServerStreaming(12, context, request, writer, new_call_cq, notification_cq, tag); } }; template @@ -874,7 +1396,7 @@ class RobotService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_StopAll() { - ::grpc::Service::MarkMethodAsync(12); + ::grpc::Service::MarkMethodAsync(13); } ~WithAsyncMethod_StopAll() override { BaseClassMustBeDerivedFromService(this); @@ -885,7 +1407,7 @@ class RobotService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestStopAll(::grpc::ServerContext* context, ::viam::robot::v1::StopAllRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::robot::v1::StopAllResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(12, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(13, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -894,7 +1416,7 @@ class RobotService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_StartSession() { - ::grpc::Service::MarkMethodAsync(13); + ::grpc::Service::MarkMethodAsync(14); } ~WithAsyncMethod_StartSession() override { BaseClassMustBeDerivedFromService(this); @@ -905,7 +1427,7 @@ class RobotService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestStartSession(::grpc::ServerContext* context, ::viam::robot::v1::StartSessionRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::robot::v1::StartSessionResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(13, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(14, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -914,7 +1436,7 @@ class RobotService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_SendSessionHeartbeat() { - ::grpc::Service::MarkMethodAsync(14); + ::grpc::Service::MarkMethodAsync(15); } ~WithAsyncMethod_SendSessionHeartbeat() override { BaseClassMustBeDerivedFromService(this); @@ -925,7 +1447,7 @@ class RobotService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestSendSessionHeartbeat(::grpc::ServerContext* context, ::viam::robot::v1::SendSessionHeartbeatRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::robot::v1::SendSessionHeartbeatResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(14, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(15, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -934,7 +1456,7 @@ class RobotService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_Log() { - ::grpc::Service::MarkMethodAsync(15); + ::grpc::Service::MarkMethodAsync(16); } ~WithAsyncMethod_Log() override { BaseClassMustBeDerivedFromService(this); @@ -945,7 +1467,7 @@ class RobotService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestLog(::grpc::ServerContext* context, ::viam::robot::v1::LogRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::robot::v1::LogResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(15, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(16, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -954,7 +1476,7 @@ class RobotService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_GetCloudMetadata() { - ::grpc::Service::MarkMethodAsync(16); + ::grpc::Service::MarkMethodAsync(17); } ~WithAsyncMethod_GetCloudMetadata() override { BaseClassMustBeDerivedFromService(this); @@ -965,7 +1487,7 @@ class RobotService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestGetCloudMetadata(::grpc::ServerContext* context, ::viam::robot::v1::GetCloudMetadataRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::robot::v1::GetCloudMetadataResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(16, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(17, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -974,7 +1496,7 @@ class RobotService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_RestartModule() { - ::grpc::Service::MarkMethodAsync(17); + ::grpc::Service::MarkMethodAsync(18); } ~WithAsyncMethod_RestartModule() override { BaseClassMustBeDerivedFromService(this); @@ -985,7 +1507,7 @@ class RobotService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestRestartModule(::grpc::ServerContext* context, ::viam::robot::v1::RestartModuleRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::robot::v1::RestartModuleResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(17, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(18, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -994,7 +1516,7 @@ class RobotService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_Shutdown() { - ::grpc::Service::MarkMethodAsync(18); + ::grpc::Service::MarkMethodAsync(19); } ~WithAsyncMethod_Shutdown() override { BaseClassMustBeDerivedFromService(this); @@ -1005,7 +1527,7 @@ class RobotService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestShutdown(::grpc::ServerContext* context, ::viam::robot::v1::ShutdownRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::robot::v1::ShutdownResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(18, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(19, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -1014,7 +1536,7 @@ class RobotService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_GetMachineStatus() { - ::grpc::Service::MarkMethodAsync(19); + ::grpc::Service::MarkMethodAsync(20); } ~WithAsyncMethod_GetMachineStatus() override { BaseClassMustBeDerivedFromService(this); @@ -1025,7 +1547,7 @@ class RobotService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestGetMachineStatus(::grpc::ServerContext* context, ::viam::robot::v1::GetMachineStatusRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::robot::v1::GetMachineStatusResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(19, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(20, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -1034,7 +1556,7 @@ class RobotService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_GetVersion() { - ::grpc::Service::MarkMethodAsync(20); + ::grpc::Service::MarkMethodAsync(21); } ~WithAsyncMethod_GetVersion() override { BaseClassMustBeDerivedFromService(this); @@ -1045,27 +1567,61 @@ class RobotService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestGetVersion(::grpc::ServerContext* context, ::viam::robot::v1::GetVersionRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::robot::v1::GetVersionResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(20, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(21, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_Tunnel : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_Tunnel() { + ::grpc::Service::MarkMethodAsync(22); + } + ~WithAsyncMethod_Tunnel() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Tunnel(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter< ::viam::robot::v1::TunnelResponse, ::viam::robot::v1::TunnelRequest>* /*stream*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestTunnel(::grpc::ServerContext* context, ::grpc::ServerAsyncReaderWriter< ::viam::robot::v1::TunnelResponse, ::viam::robot::v1::TunnelRequest>* stream, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncBidiStreaming(22, context, stream, new_call_cq, notification_cq, tag); } }; - typedef WithAsyncMethod_GetOperations > > > > > > > > > > > > > > > > > > > > AsyncService; + typedef WithAsyncMethod_GetOperations > > > > > > > > > > > > > > > > > > > > > > AsyncService; template - class WithCallbackMethod_GetOperations : public BaseClass { + class ExperimentalWithCallbackMethod_GetOperations : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetOperations() { - ::grpc::Service::MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::GetOperationsRequest, ::viam::robot::v1::GetOperationsResponse>( + ExperimentalWithCallbackMethod_GetOperations() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::robot::v1::GetOperationsRequest, ::viam::robot::v1::GetOperationsResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::robot::v1::GetOperationsRequest* request, ::viam::robot::v1::GetOperationsResponse* response) { return this->GetOperations(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::robot::v1::GetOperationsRequest* request, ::viam::robot::v1::GetOperationsResponse* response) { return this->GetOperations(context, request, response); }));} void SetMessageAllocatorFor_GetOperations( - ::grpc::MessageAllocator< ::viam::robot::v1::GetOperationsRequest, ::viam::robot::v1::GetOperationsResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::robot::v1::GetOperationsRequest, ::viam::robot::v1::GetOperationsResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::GetOperationsRequest, ::viam::robot::v1::GetOperationsResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(0); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::robot::v1::GetOperationsRequest, ::viam::robot::v1::GetOperationsResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetOperations() override { + ~ExperimentalWithCallbackMethod_GetOperations() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1073,26 +1629,46 @@ class RobotService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetOperations( - ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::GetOperationsRequest* /*request*/, ::viam::robot::v1::GetOperationsResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::GetOperationsRequest* /*request*/, ::viam::robot::v1::GetOperationsResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetOperations( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::robot::v1::GetOperationsRequest* /*request*/, ::viam::robot::v1::GetOperationsResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetSessions : public BaseClass { + class ExperimentalWithCallbackMethod_GetSessions : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetSessions() { - ::grpc::Service::MarkMethodCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::GetSessionsRequest, ::viam::robot::v1::GetSessionsResponse>( + ExperimentalWithCallbackMethod_GetSessions() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::robot::v1::GetSessionsRequest, ::viam::robot::v1::GetSessionsResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::robot::v1::GetSessionsRequest* request, ::viam::robot::v1::GetSessionsResponse* response) { return this->GetSessions(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::robot::v1::GetSessionsRequest* request, ::viam::robot::v1::GetSessionsResponse* response) { return this->GetSessions(context, request, response); }));} void SetMessageAllocatorFor_GetSessions( - ::grpc::MessageAllocator< ::viam::robot::v1::GetSessionsRequest, ::viam::robot::v1::GetSessionsResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::robot::v1::GetSessionsRequest, ::viam::robot::v1::GetSessionsResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::GetSessionsRequest, ::viam::robot::v1::GetSessionsResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(1); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::robot::v1::GetSessionsRequest, ::viam::robot::v1::GetSessionsResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetSessions() override { + ~ExperimentalWithCallbackMethod_GetSessions() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1100,26 +1676,46 @@ class RobotService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetSessions( - ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::GetSessionsRequest* /*request*/, ::viam::robot::v1::GetSessionsResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::GetSessionsRequest* /*request*/, ::viam::robot::v1::GetSessionsResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetSessions( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::robot::v1::GetSessionsRequest* /*request*/, ::viam::robot::v1::GetSessionsResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_ResourceNames : public BaseClass { + class ExperimentalWithCallbackMethod_ResourceNames : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_ResourceNames() { - ::grpc::Service::MarkMethodCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::ResourceNamesRequest, ::viam::robot::v1::ResourceNamesResponse>( + ExperimentalWithCallbackMethod_ResourceNames() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(2, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::robot::v1::ResourceNamesRequest, ::viam::robot::v1::ResourceNamesResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::robot::v1::ResourceNamesRequest* request, ::viam::robot::v1::ResourceNamesResponse* response) { return this->ResourceNames(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::robot::v1::ResourceNamesRequest* request, ::viam::robot::v1::ResourceNamesResponse* response) { return this->ResourceNames(context, request, response); }));} void SetMessageAllocatorFor_ResourceNames( - ::grpc::MessageAllocator< ::viam::robot::v1::ResourceNamesRequest, ::viam::robot::v1::ResourceNamesResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::robot::v1::ResourceNamesRequest, ::viam::robot::v1::ResourceNamesResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::ResourceNamesRequest, ::viam::robot::v1::ResourceNamesResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(2); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::robot::v1::ResourceNamesRequest, ::viam::robot::v1::ResourceNamesResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_ResourceNames() override { + ~ExperimentalWithCallbackMethod_ResourceNames() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1127,26 +1723,46 @@ class RobotService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* ResourceNames( - ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::ResourceNamesRequest* /*request*/, ::viam::robot::v1::ResourceNamesResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::ResourceNamesRequest* /*request*/, ::viam::robot::v1::ResourceNamesResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ResourceNames( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::robot::v1::ResourceNamesRequest* /*request*/, ::viam::robot::v1::ResourceNamesResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_ResourceRPCSubtypes : public BaseClass { + class ExperimentalWithCallbackMethod_ResourceRPCSubtypes : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_ResourceRPCSubtypes() { - ::grpc::Service::MarkMethodCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::ResourceRPCSubtypesRequest, ::viam::robot::v1::ResourceRPCSubtypesResponse>( + ExperimentalWithCallbackMethod_ResourceRPCSubtypes() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(3, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::robot::v1::ResourceRPCSubtypesRequest, ::viam::robot::v1::ResourceRPCSubtypesResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::robot::v1::ResourceRPCSubtypesRequest* request, ::viam::robot::v1::ResourceRPCSubtypesResponse* response) { return this->ResourceRPCSubtypes(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::robot::v1::ResourceRPCSubtypesRequest* request, ::viam::robot::v1::ResourceRPCSubtypesResponse* response) { return this->ResourceRPCSubtypes(context, request, response); }));} void SetMessageAllocatorFor_ResourceRPCSubtypes( - ::grpc::MessageAllocator< ::viam::robot::v1::ResourceRPCSubtypesRequest, ::viam::robot::v1::ResourceRPCSubtypesResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::robot::v1::ResourceRPCSubtypesRequest, ::viam::robot::v1::ResourceRPCSubtypesResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::ResourceRPCSubtypesRequest, ::viam::robot::v1::ResourceRPCSubtypesResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(3); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::robot::v1::ResourceRPCSubtypesRequest, ::viam::robot::v1::ResourceRPCSubtypesResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_ResourceRPCSubtypes() override { + ~ExperimentalWithCallbackMethod_ResourceRPCSubtypes() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1154,26 +1770,46 @@ class RobotService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* ResourceRPCSubtypes( - ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::ResourceRPCSubtypesRequest* /*request*/, ::viam::robot::v1::ResourceRPCSubtypesResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::ResourceRPCSubtypesRequest* /*request*/, ::viam::robot::v1::ResourceRPCSubtypesResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ResourceRPCSubtypes( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::robot::v1::ResourceRPCSubtypesRequest* /*request*/, ::viam::robot::v1::ResourceRPCSubtypesResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_CancelOperation : public BaseClass { + class ExperimentalWithCallbackMethod_CancelOperation : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_CancelOperation() { - ::grpc::Service::MarkMethodCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::CancelOperationRequest, ::viam::robot::v1::CancelOperationResponse>( + ExperimentalWithCallbackMethod_CancelOperation() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(4, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::robot::v1::CancelOperationRequest, ::viam::robot::v1::CancelOperationResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::robot::v1::CancelOperationRequest* request, ::viam::robot::v1::CancelOperationResponse* response) { return this->CancelOperation(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::robot::v1::CancelOperationRequest* request, ::viam::robot::v1::CancelOperationResponse* response) { return this->CancelOperation(context, request, response); }));} void SetMessageAllocatorFor_CancelOperation( - ::grpc::MessageAllocator< ::viam::robot::v1::CancelOperationRequest, ::viam::robot::v1::CancelOperationResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::robot::v1::CancelOperationRequest, ::viam::robot::v1::CancelOperationResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::CancelOperationRequest, ::viam::robot::v1::CancelOperationResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(4); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::robot::v1::CancelOperationRequest, ::viam::robot::v1::CancelOperationResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_CancelOperation() override { + ~ExperimentalWithCallbackMethod_CancelOperation() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1181,26 +1817,46 @@ class RobotService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* CancelOperation( - ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::CancelOperationRequest* /*request*/, ::viam::robot::v1::CancelOperationResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::CancelOperationRequest* /*request*/, ::viam::robot::v1::CancelOperationResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* CancelOperation( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::robot::v1::CancelOperationRequest* /*request*/, ::viam::robot::v1::CancelOperationResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_BlockForOperation : public BaseClass { + class ExperimentalWithCallbackMethod_BlockForOperation : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_BlockForOperation() { - ::grpc::Service::MarkMethodCallback(5, - new ::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::BlockForOperationRequest, ::viam::robot::v1::BlockForOperationResponse>( + ExperimentalWithCallbackMethod_BlockForOperation() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(5, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::robot::v1::BlockForOperationRequest, ::viam::robot::v1::BlockForOperationResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::robot::v1::BlockForOperationRequest* request, ::viam::robot::v1::BlockForOperationResponse* response) { return this->BlockForOperation(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::robot::v1::BlockForOperationRequest* request, ::viam::robot::v1::BlockForOperationResponse* response) { return this->BlockForOperation(context, request, response); }));} void SetMessageAllocatorFor_BlockForOperation( - ::grpc::MessageAllocator< ::viam::robot::v1::BlockForOperationRequest, ::viam::robot::v1::BlockForOperationResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::robot::v1::BlockForOperationRequest, ::viam::robot::v1::BlockForOperationResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(5); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::BlockForOperationRequest, ::viam::robot::v1::BlockForOperationResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(5); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::robot::v1::BlockForOperationRequest, ::viam::robot::v1::BlockForOperationResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_BlockForOperation() override { + ~ExperimentalWithCallbackMethod_BlockForOperation() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1208,26 +1864,93 @@ class RobotService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* BlockForOperation( - ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::BlockForOperationRequest* /*request*/, ::viam::robot::v1::BlockForOperationResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::BlockForOperationRequest* /*request*/, ::viam::robot::v1::BlockForOperationResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* BlockForOperation( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::robot::v1::BlockForOperationRequest* /*request*/, ::viam::robot::v1::BlockForOperationResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_DiscoverComponents : public BaseClass { + class ExperimentalWithCallbackMethod_GetModelsFromModules : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_DiscoverComponents() { - ::grpc::Service::MarkMethodCallback(6, - new ::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::DiscoverComponentsRequest, ::viam::robot::v1::DiscoverComponentsResponse>( + ExperimentalWithCallbackMethod_GetModelsFromModules() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(6, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::robot::v1::GetModelsFromModulesRequest, ::viam::robot::v1::GetModelsFromModulesResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::robot::v1::DiscoverComponentsRequest* request, ::viam::robot::v1::DiscoverComponentsResponse* response) { return this->DiscoverComponents(context, request, response); }));} - void SetMessageAllocatorFor_DiscoverComponents( - ::grpc::MessageAllocator< ::viam::robot::v1::DiscoverComponentsRequest, ::viam::robot::v1::DiscoverComponentsResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::robot::v1::GetModelsFromModulesRequest* request, ::viam::robot::v1::GetModelsFromModulesResponse* response) { return this->GetModelsFromModules(context, request, response); }));} + void SetMessageAllocatorFor_GetModelsFromModules( + ::grpc::experimental::MessageAllocator< ::viam::robot::v1::GetModelsFromModulesRequest, ::viam::robot::v1::GetModelsFromModulesResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(6); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::DiscoverComponentsRequest, ::viam::robot::v1::DiscoverComponentsResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(6); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::robot::v1::GetModelsFromModulesRequest, ::viam::robot::v1::GetModelsFromModulesResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_GetModelsFromModules() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetModelsFromModules(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::GetModelsFromModulesRequest* /*request*/, ::viam::robot::v1::GetModelsFromModulesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* GetModelsFromModules( + ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::GetModelsFromModulesRequest* /*request*/, ::viam::robot::v1::GetModelsFromModulesResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetModelsFromModules( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::robot::v1::GetModelsFromModulesRequest* /*request*/, ::viam::robot::v1::GetModelsFromModulesResponse* /*response*/) + #endif + { return nullptr; } + }; + template + class ExperimentalWithCallbackMethod_DiscoverComponents : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithCallbackMethod_DiscoverComponents() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(7, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::robot::v1::DiscoverComponentsRequest, ::viam::robot::v1::DiscoverComponentsResponse>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::robot::v1::DiscoverComponentsRequest* request, ::viam::robot::v1::DiscoverComponentsResponse* response) { return this->DiscoverComponents(context, request, response); }));} + void SetMessageAllocatorFor_DiscoverComponents( + ::grpc::experimental::MessageAllocator< ::viam::robot::v1::DiscoverComponentsRequest, ::viam::robot::v1::DiscoverComponentsResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(7); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(7); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::robot::v1::DiscoverComponentsRequest, ::viam::robot::v1::DiscoverComponentsResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_DiscoverComponents() override { + ~ExperimentalWithCallbackMethod_DiscoverComponents() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1235,26 +1958,46 @@ class RobotService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DiscoverComponents( - ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::DiscoverComponentsRequest* /*request*/, ::viam::robot::v1::DiscoverComponentsResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::DiscoverComponentsRequest* /*request*/, ::viam::robot::v1::DiscoverComponentsResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DiscoverComponents( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::robot::v1::DiscoverComponentsRequest* /*request*/, ::viam::robot::v1::DiscoverComponentsResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_FrameSystemConfig : public BaseClass { + class ExperimentalWithCallbackMethod_FrameSystemConfig : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_FrameSystemConfig() { - ::grpc::Service::MarkMethodCallback(7, - new ::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::FrameSystemConfigRequest, ::viam::robot::v1::FrameSystemConfigResponse>( + ExperimentalWithCallbackMethod_FrameSystemConfig() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(8, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::robot::v1::FrameSystemConfigRequest, ::viam::robot::v1::FrameSystemConfigResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::robot::v1::FrameSystemConfigRequest* request, ::viam::robot::v1::FrameSystemConfigResponse* response) { return this->FrameSystemConfig(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::robot::v1::FrameSystemConfigRequest* request, ::viam::robot::v1::FrameSystemConfigResponse* response) { return this->FrameSystemConfig(context, request, response); }));} void SetMessageAllocatorFor_FrameSystemConfig( - ::grpc::MessageAllocator< ::viam::robot::v1::FrameSystemConfigRequest, ::viam::robot::v1::FrameSystemConfigResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(7); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::FrameSystemConfigRequest, ::viam::robot::v1::FrameSystemConfigResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::robot::v1::FrameSystemConfigRequest, ::viam::robot::v1::FrameSystemConfigResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(8); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(8); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::robot::v1::FrameSystemConfigRequest, ::viam::robot::v1::FrameSystemConfigResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_FrameSystemConfig() override { + ~ExperimentalWithCallbackMethod_FrameSystemConfig() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1262,26 +2005,46 @@ class RobotService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* FrameSystemConfig( - ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::FrameSystemConfigRequest* /*request*/, ::viam::robot::v1::FrameSystemConfigResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::FrameSystemConfigRequest* /*request*/, ::viam::robot::v1::FrameSystemConfigResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* FrameSystemConfig( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::robot::v1::FrameSystemConfigRequest* /*request*/, ::viam::robot::v1::FrameSystemConfigResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_TransformPose : public BaseClass { + class ExperimentalWithCallbackMethod_TransformPose : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_TransformPose() { - ::grpc::Service::MarkMethodCallback(8, - new ::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::TransformPoseRequest, ::viam::robot::v1::TransformPoseResponse>( + ExperimentalWithCallbackMethod_TransformPose() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(9, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::robot::v1::TransformPoseRequest, ::viam::robot::v1::TransformPoseResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::robot::v1::TransformPoseRequest* request, ::viam::robot::v1::TransformPoseResponse* response) { return this->TransformPose(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::robot::v1::TransformPoseRequest* request, ::viam::robot::v1::TransformPoseResponse* response) { return this->TransformPose(context, request, response); }));} void SetMessageAllocatorFor_TransformPose( - ::grpc::MessageAllocator< ::viam::robot::v1::TransformPoseRequest, ::viam::robot::v1::TransformPoseResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(8); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::TransformPoseRequest, ::viam::robot::v1::TransformPoseResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::robot::v1::TransformPoseRequest, ::viam::robot::v1::TransformPoseResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(9); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(9); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::robot::v1::TransformPoseRequest, ::viam::robot::v1::TransformPoseResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_TransformPose() override { + ~ExperimentalWithCallbackMethod_TransformPose() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1289,26 +2052,46 @@ class RobotService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* TransformPose( - ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::TransformPoseRequest* /*request*/, ::viam::robot::v1::TransformPoseResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::TransformPoseRequest* /*request*/, ::viam::robot::v1::TransformPoseResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* TransformPose( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::robot::v1::TransformPoseRequest* /*request*/, ::viam::robot::v1::TransformPoseResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_TransformPCD : public BaseClass { + class ExperimentalWithCallbackMethod_TransformPCD : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_TransformPCD() { - ::grpc::Service::MarkMethodCallback(9, - new ::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::TransformPCDRequest, ::viam::robot::v1::TransformPCDResponse>( + ExperimentalWithCallbackMethod_TransformPCD() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(10, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::robot::v1::TransformPCDRequest, ::viam::robot::v1::TransformPCDResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::robot::v1::TransformPCDRequest* request, ::viam::robot::v1::TransformPCDResponse* response) { return this->TransformPCD(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::robot::v1::TransformPCDRequest* request, ::viam::robot::v1::TransformPCDResponse* response) { return this->TransformPCD(context, request, response); }));} void SetMessageAllocatorFor_TransformPCD( - ::grpc::MessageAllocator< ::viam::robot::v1::TransformPCDRequest, ::viam::robot::v1::TransformPCDResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(9); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::TransformPCDRequest, ::viam::robot::v1::TransformPCDResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::robot::v1::TransformPCDRequest, ::viam::robot::v1::TransformPCDResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(10); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(10); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::robot::v1::TransformPCDRequest, ::viam::robot::v1::TransformPCDResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_TransformPCD() override { + ~ExperimentalWithCallbackMethod_TransformPCD() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1316,26 +2099,46 @@ class RobotService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* TransformPCD( - ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::TransformPCDRequest* /*request*/, ::viam::robot::v1::TransformPCDResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::TransformPCDRequest* /*request*/, ::viam::robot::v1::TransformPCDResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* TransformPCD( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::robot::v1::TransformPCDRequest* /*request*/, ::viam::robot::v1::TransformPCDResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetStatus : public BaseClass { + class ExperimentalWithCallbackMethod_GetStatus : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetStatus() { - ::grpc::Service::MarkMethodCallback(10, - new ::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::GetStatusRequest, ::viam::robot::v1::GetStatusResponse>( + ExperimentalWithCallbackMethod_GetStatus() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(11, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::robot::v1::GetStatusRequest, ::viam::robot::v1::GetStatusResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::robot::v1::GetStatusRequest* request, ::viam::robot::v1::GetStatusResponse* response) { return this->GetStatus(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::robot::v1::GetStatusRequest* request, ::viam::robot::v1::GetStatusResponse* response) { return this->GetStatus(context, request, response); }));} void SetMessageAllocatorFor_GetStatus( - ::grpc::MessageAllocator< ::viam::robot::v1::GetStatusRequest, ::viam::robot::v1::GetStatusResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(10); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::GetStatusRequest, ::viam::robot::v1::GetStatusResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::robot::v1::GetStatusRequest, ::viam::robot::v1::GetStatusResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(11); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(11); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::robot::v1::GetStatusRequest, ::viam::robot::v1::GetStatusResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetStatus() override { + ~ExperimentalWithCallbackMethod_GetStatus() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1343,21 +2146,37 @@ class RobotService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetStatus( - ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::GetStatusRequest* /*request*/, ::viam::robot::v1::GetStatusResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::GetStatusRequest* /*request*/, ::viam::robot::v1::GetStatusResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetStatus( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::robot::v1::GetStatusRequest* /*request*/, ::viam::robot::v1::GetStatusResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_StreamStatus : public BaseClass { + class ExperimentalWithCallbackMethod_StreamStatus : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_StreamStatus() { - ::grpc::Service::MarkMethodCallback(11, - new ::grpc::internal::CallbackServerStreamingHandler< ::viam::robot::v1::StreamStatusRequest, ::viam::robot::v1::StreamStatusResponse>( + ExperimentalWithCallbackMethod_StreamStatus() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(12, + new ::grpc_impl::internal::CallbackServerStreamingHandler< ::viam::robot::v1::StreamStatusRequest, ::viam::robot::v1::StreamStatusResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::robot::v1::StreamStatusRequest* request) { return this->StreamStatus(context, request); })); - } - ~WithCallbackMethod_StreamStatus() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::robot::v1::StreamStatusRequest* request) { return this->StreamStatus(context, request); })); + } + ~ExperimentalWithCallbackMethod_StreamStatus() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1365,26 +2184,46 @@ class RobotService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerWriteReactor< ::viam::robot::v1::StreamStatusResponse>* StreamStatus( - ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::StreamStatusRequest* /*request*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::StreamStatusRequest* /*request*/) + #else + virtual ::grpc::experimental::ServerWriteReactor< ::viam::robot::v1::StreamStatusResponse>* StreamStatus( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::robot::v1::StreamStatusRequest* /*request*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_StopAll : public BaseClass { + class ExperimentalWithCallbackMethod_StopAll : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_StopAll() { - ::grpc::Service::MarkMethodCallback(12, - new ::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::StopAllRequest, ::viam::robot::v1::StopAllResponse>( + ExperimentalWithCallbackMethod_StopAll() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(13, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::robot::v1::StopAllRequest, ::viam::robot::v1::StopAllResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::robot::v1::StopAllRequest* request, ::viam::robot::v1::StopAllResponse* response) { return this->StopAll(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::robot::v1::StopAllRequest* request, ::viam::robot::v1::StopAllResponse* response) { return this->StopAll(context, request, response); }));} void SetMessageAllocatorFor_StopAll( - ::grpc::MessageAllocator< ::viam::robot::v1::StopAllRequest, ::viam::robot::v1::StopAllResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(12); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::StopAllRequest, ::viam::robot::v1::StopAllResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::robot::v1::StopAllRequest, ::viam::robot::v1::StopAllResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(13); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(13); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::robot::v1::StopAllRequest, ::viam::robot::v1::StopAllResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_StopAll() override { + ~ExperimentalWithCallbackMethod_StopAll() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1392,26 +2231,46 @@ class RobotService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* StopAll( - ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::StopAllRequest* /*request*/, ::viam::robot::v1::StopAllResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::StopAllRequest* /*request*/, ::viam::robot::v1::StopAllResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* StopAll( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::robot::v1::StopAllRequest* /*request*/, ::viam::robot::v1::StopAllResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_StartSession : public BaseClass { + class ExperimentalWithCallbackMethod_StartSession : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_StartSession() { - ::grpc::Service::MarkMethodCallback(13, - new ::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::StartSessionRequest, ::viam::robot::v1::StartSessionResponse>( + ExperimentalWithCallbackMethod_StartSession() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(14, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::robot::v1::StartSessionRequest, ::viam::robot::v1::StartSessionResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::robot::v1::StartSessionRequest* request, ::viam::robot::v1::StartSessionResponse* response) { return this->StartSession(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::robot::v1::StartSessionRequest* request, ::viam::robot::v1::StartSessionResponse* response) { return this->StartSession(context, request, response); }));} void SetMessageAllocatorFor_StartSession( - ::grpc::MessageAllocator< ::viam::robot::v1::StartSessionRequest, ::viam::robot::v1::StartSessionResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(13); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::StartSessionRequest, ::viam::robot::v1::StartSessionResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::robot::v1::StartSessionRequest, ::viam::robot::v1::StartSessionResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(14); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(14); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::robot::v1::StartSessionRequest, ::viam::robot::v1::StartSessionResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_StartSession() override { + ~ExperimentalWithCallbackMethod_StartSession() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1419,26 +2278,46 @@ class RobotService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* StartSession( - ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::StartSessionRequest* /*request*/, ::viam::robot::v1::StartSessionResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::StartSessionRequest* /*request*/, ::viam::robot::v1::StartSessionResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* StartSession( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::robot::v1::StartSessionRequest* /*request*/, ::viam::robot::v1::StartSessionResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_SendSessionHeartbeat : public BaseClass { + class ExperimentalWithCallbackMethod_SendSessionHeartbeat : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_SendSessionHeartbeat() { - ::grpc::Service::MarkMethodCallback(14, - new ::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::SendSessionHeartbeatRequest, ::viam::robot::v1::SendSessionHeartbeatResponse>( + ExperimentalWithCallbackMethod_SendSessionHeartbeat() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(15, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::robot::v1::SendSessionHeartbeatRequest, ::viam::robot::v1::SendSessionHeartbeatResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::robot::v1::SendSessionHeartbeatRequest* request, ::viam::robot::v1::SendSessionHeartbeatResponse* response) { return this->SendSessionHeartbeat(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::robot::v1::SendSessionHeartbeatRequest* request, ::viam::robot::v1::SendSessionHeartbeatResponse* response) { return this->SendSessionHeartbeat(context, request, response); }));} void SetMessageAllocatorFor_SendSessionHeartbeat( - ::grpc::MessageAllocator< ::viam::robot::v1::SendSessionHeartbeatRequest, ::viam::robot::v1::SendSessionHeartbeatResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(14); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::SendSessionHeartbeatRequest, ::viam::robot::v1::SendSessionHeartbeatResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::robot::v1::SendSessionHeartbeatRequest, ::viam::robot::v1::SendSessionHeartbeatResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(15); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(15); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::robot::v1::SendSessionHeartbeatRequest, ::viam::robot::v1::SendSessionHeartbeatResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_SendSessionHeartbeat() override { + ~ExperimentalWithCallbackMethod_SendSessionHeartbeat() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1446,26 +2325,46 @@ class RobotService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* SendSessionHeartbeat( - ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::SendSessionHeartbeatRequest* /*request*/, ::viam::robot::v1::SendSessionHeartbeatResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::SendSessionHeartbeatRequest* /*request*/, ::viam::robot::v1::SendSessionHeartbeatResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* SendSessionHeartbeat( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::robot::v1::SendSessionHeartbeatRequest* /*request*/, ::viam::robot::v1::SendSessionHeartbeatResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_Log : public BaseClass { + class ExperimentalWithCallbackMethod_Log : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_Log() { - ::grpc::Service::MarkMethodCallback(15, - new ::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::LogRequest, ::viam::robot::v1::LogResponse>( + ExperimentalWithCallbackMethod_Log() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(16, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::robot::v1::LogRequest, ::viam::robot::v1::LogResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::robot::v1::LogRequest* request, ::viam::robot::v1::LogResponse* response) { return this->Log(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::robot::v1::LogRequest* request, ::viam::robot::v1::LogResponse* response) { return this->Log(context, request, response); }));} void SetMessageAllocatorFor_Log( - ::grpc::MessageAllocator< ::viam::robot::v1::LogRequest, ::viam::robot::v1::LogResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(15); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::LogRequest, ::viam::robot::v1::LogResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::robot::v1::LogRequest, ::viam::robot::v1::LogResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(16); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(16); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::robot::v1::LogRequest, ::viam::robot::v1::LogResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_Log() override { + ~ExperimentalWithCallbackMethod_Log() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1473,26 +2372,46 @@ class RobotService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* Log( - ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::LogRequest* /*request*/, ::viam::robot::v1::LogResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::LogRequest* /*request*/, ::viam::robot::v1::LogResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* Log( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::robot::v1::LogRequest* /*request*/, ::viam::robot::v1::LogResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetCloudMetadata : public BaseClass { + class ExperimentalWithCallbackMethod_GetCloudMetadata : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetCloudMetadata() { - ::grpc::Service::MarkMethodCallback(16, - new ::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::GetCloudMetadataRequest, ::viam::robot::v1::GetCloudMetadataResponse>( + ExperimentalWithCallbackMethod_GetCloudMetadata() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(17, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::robot::v1::GetCloudMetadataRequest, ::viam::robot::v1::GetCloudMetadataResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::robot::v1::GetCloudMetadataRequest* request, ::viam::robot::v1::GetCloudMetadataResponse* response) { return this->GetCloudMetadata(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::robot::v1::GetCloudMetadataRequest* request, ::viam::robot::v1::GetCloudMetadataResponse* response) { return this->GetCloudMetadata(context, request, response); }));} void SetMessageAllocatorFor_GetCloudMetadata( - ::grpc::MessageAllocator< ::viam::robot::v1::GetCloudMetadataRequest, ::viam::robot::v1::GetCloudMetadataResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(16); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::GetCloudMetadataRequest, ::viam::robot::v1::GetCloudMetadataResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::robot::v1::GetCloudMetadataRequest, ::viam::robot::v1::GetCloudMetadataResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(17); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(17); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::robot::v1::GetCloudMetadataRequest, ::viam::robot::v1::GetCloudMetadataResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetCloudMetadata() override { + ~ExperimentalWithCallbackMethod_GetCloudMetadata() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1500,26 +2419,46 @@ class RobotService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetCloudMetadata( - ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::GetCloudMetadataRequest* /*request*/, ::viam::robot::v1::GetCloudMetadataResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::GetCloudMetadataRequest* /*request*/, ::viam::robot::v1::GetCloudMetadataResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetCloudMetadata( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::robot::v1::GetCloudMetadataRequest* /*request*/, ::viam::robot::v1::GetCloudMetadataResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_RestartModule : public BaseClass { + class ExperimentalWithCallbackMethod_RestartModule : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_RestartModule() { - ::grpc::Service::MarkMethodCallback(17, - new ::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::RestartModuleRequest, ::viam::robot::v1::RestartModuleResponse>( + ExperimentalWithCallbackMethod_RestartModule() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(18, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::robot::v1::RestartModuleRequest, ::viam::robot::v1::RestartModuleResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::robot::v1::RestartModuleRequest* request, ::viam::robot::v1::RestartModuleResponse* response) { return this->RestartModule(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::robot::v1::RestartModuleRequest* request, ::viam::robot::v1::RestartModuleResponse* response) { return this->RestartModule(context, request, response); }));} void SetMessageAllocatorFor_RestartModule( - ::grpc::MessageAllocator< ::viam::robot::v1::RestartModuleRequest, ::viam::robot::v1::RestartModuleResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(17); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::RestartModuleRequest, ::viam::robot::v1::RestartModuleResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::robot::v1::RestartModuleRequest, ::viam::robot::v1::RestartModuleResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(18); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(18); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::robot::v1::RestartModuleRequest, ::viam::robot::v1::RestartModuleResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_RestartModule() override { + ~ExperimentalWithCallbackMethod_RestartModule() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1527,26 +2466,46 @@ class RobotService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* RestartModule( - ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::RestartModuleRequest* /*request*/, ::viam::robot::v1::RestartModuleResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::RestartModuleRequest* /*request*/, ::viam::robot::v1::RestartModuleResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* RestartModule( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::robot::v1::RestartModuleRequest* /*request*/, ::viam::robot::v1::RestartModuleResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_Shutdown : public BaseClass { + class ExperimentalWithCallbackMethod_Shutdown : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_Shutdown() { - ::grpc::Service::MarkMethodCallback(18, - new ::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::ShutdownRequest, ::viam::robot::v1::ShutdownResponse>( + ExperimentalWithCallbackMethod_Shutdown() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(19, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::robot::v1::ShutdownRequest, ::viam::robot::v1::ShutdownResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::robot::v1::ShutdownRequest* request, ::viam::robot::v1::ShutdownResponse* response) { return this->Shutdown(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::robot::v1::ShutdownRequest* request, ::viam::robot::v1::ShutdownResponse* response) { return this->Shutdown(context, request, response); }));} void SetMessageAllocatorFor_Shutdown( - ::grpc::MessageAllocator< ::viam::robot::v1::ShutdownRequest, ::viam::robot::v1::ShutdownResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(18); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::ShutdownRequest, ::viam::robot::v1::ShutdownResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::robot::v1::ShutdownRequest, ::viam::robot::v1::ShutdownResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(19); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(19); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::robot::v1::ShutdownRequest, ::viam::robot::v1::ShutdownResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_Shutdown() override { + ~ExperimentalWithCallbackMethod_Shutdown() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1554,26 +2513,46 @@ class RobotService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* Shutdown( - ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::ShutdownRequest* /*request*/, ::viam::robot::v1::ShutdownResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::ShutdownRequest* /*request*/, ::viam::robot::v1::ShutdownResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* Shutdown( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::robot::v1::ShutdownRequest* /*request*/, ::viam::robot::v1::ShutdownResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetMachineStatus : public BaseClass { + class ExperimentalWithCallbackMethod_GetMachineStatus : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetMachineStatus() { - ::grpc::Service::MarkMethodCallback(19, - new ::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::GetMachineStatusRequest, ::viam::robot::v1::GetMachineStatusResponse>( + ExperimentalWithCallbackMethod_GetMachineStatus() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(20, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::robot::v1::GetMachineStatusRequest, ::viam::robot::v1::GetMachineStatusResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::robot::v1::GetMachineStatusRequest* request, ::viam::robot::v1::GetMachineStatusResponse* response) { return this->GetMachineStatus(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::robot::v1::GetMachineStatusRequest* request, ::viam::robot::v1::GetMachineStatusResponse* response) { return this->GetMachineStatus(context, request, response); }));} void SetMessageAllocatorFor_GetMachineStatus( - ::grpc::MessageAllocator< ::viam::robot::v1::GetMachineStatusRequest, ::viam::robot::v1::GetMachineStatusResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(19); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::GetMachineStatusRequest, ::viam::robot::v1::GetMachineStatusResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::robot::v1::GetMachineStatusRequest, ::viam::robot::v1::GetMachineStatusResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(20); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(20); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::robot::v1::GetMachineStatusRequest, ::viam::robot::v1::GetMachineStatusResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetMachineStatus() override { + ~ExperimentalWithCallbackMethod_GetMachineStatus() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1581,26 +2560,46 @@ class RobotService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetMachineStatus( - ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::GetMachineStatusRequest* /*request*/, ::viam::robot::v1::GetMachineStatusResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::GetMachineStatusRequest* /*request*/, ::viam::robot::v1::GetMachineStatusResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetMachineStatus( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::robot::v1::GetMachineStatusRequest* /*request*/, ::viam::robot::v1::GetMachineStatusResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetVersion : public BaseClass { + class ExperimentalWithCallbackMethod_GetVersion : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetVersion() { - ::grpc::Service::MarkMethodCallback(20, - new ::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::GetVersionRequest, ::viam::robot::v1::GetVersionResponse>( + ExperimentalWithCallbackMethod_GetVersion() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(21, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::robot::v1::GetVersionRequest, ::viam::robot::v1::GetVersionResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::robot::v1::GetVersionRequest* request, ::viam::robot::v1::GetVersionResponse* response) { return this->GetVersion(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::robot::v1::GetVersionRequest* request, ::viam::robot::v1::GetVersionResponse* response) { return this->GetVersion(context, request, response); }));} void SetMessageAllocatorFor_GetVersion( - ::grpc::MessageAllocator< ::viam::robot::v1::GetVersionRequest, ::viam::robot::v1::GetVersionResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(20); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::robot::v1::GetVersionRequest, ::viam::robot::v1::GetVersionResponse>*>(handler) + ::grpc::experimental::MessageAllocator< ::viam::robot::v1::GetVersionRequest, ::viam::robot::v1::GetVersionResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(21); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(21); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::robot::v1::GetVersionRequest, ::viam::robot::v1::GetVersionResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetVersion() override { + ~ExperimentalWithCallbackMethod_GetVersion() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1608,11 +2607,58 @@ class RobotService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetVersion( - ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::GetVersionRequest* /*request*/, ::viam::robot::v1::GetVersionResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::robot::v1::GetVersionRequest* /*request*/, ::viam::robot::v1::GetVersionResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetVersion( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::robot::v1::GetVersionRequest* /*request*/, ::viam::robot::v1::GetVersionResponse* /*response*/) + #endif + { return nullptr; } }; - typedef WithCallbackMethod_GetOperations > > > > > > > > > > > > > > > > > > > > CallbackService; - typedef CallbackService ExperimentalCallbackService; + template + class ExperimentalWithCallbackMethod_Tunnel : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithCallbackMethod_Tunnel() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(22, + new ::grpc_impl::internal::CallbackBidiHandler< ::viam::robot::v1::TunnelRequest, ::viam::robot::v1::TunnelResponse>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context) { return this->Tunnel(context); })); + } + ~ExperimentalWithCallbackMethod_Tunnel() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Tunnel(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter< ::viam::robot::v1::TunnelResponse, ::viam::robot::v1::TunnelRequest>* /*stream*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerBidiReactor< ::viam::robot::v1::TunnelRequest, ::viam::robot::v1::TunnelResponse>* Tunnel( + ::grpc::CallbackServerContext* /*context*/) + #else + virtual ::grpc::experimental::ServerBidiReactor< ::viam::robot::v1::TunnelRequest, ::viam::robot::v1::TunnelResponse>* Tunnel( + ::grpc::experimental::CallbackServerContext* /*context*/) + #endif + { return nullptr; } + }; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef ExperimentalWithCallbackMethod_GetOperations > > > > > > > > > > > > > > > > > > > > > > CallbackService; + #endif + + typedef ExperimentalWithCallbackMethod_GetOperations > > > > > > > > > > > > > > > > > > > > > > ExperimentalCallbackService; template class WithGenericMethod_GetOperations : public BaseClass { private: @@ -1716,12 +2762,29 @@ class RobotService final { } }; template + class WithGenericMethod_GetModelsFromModules : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetModelsFromModules() { + ::grpc::Service::MarkMethodGeneric(6); + } + ~WithGenericMethod_GetModelsFromModules() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetModelsFromModules(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::GetModelsFromModulesRequest* /*request*/, ::viam::robot::v1::GetModelsFromModulesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template class WithGenericMethod_DiscoverComponents : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_DiscoverComponents() { - ::grpc::Service::MarkMethodGeneric(6); + ::grpc::Service::MarkMethodGeneric(7); } ~WithGenericMethod_DiscoverComponents() override { BaseClassMustBeDerivedFromService(this); @@ -1738,7 +2801,7 @@ class RobotService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_FrameSystemConfig() { - ::grpc::Service::MarkMethodGeneric(7); + ::grpc::Service::MarkMethodGeneric(8); } ~WithGenericMethod_FrameSystemConfig() override { BaseClassMustBeDerivedFromService(this); @@ -1755,7 +2818,7 @@ class RobotService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_TransformPose() { - ::grpc::Service::MarkMethodGeneric(8); + ::grpc::Service::MarkMethodGeneric(9); } ~WithGenericMethod_TransformPose() override { BaseClassMustBeDerivedFromService(this); @@ -1772,7 +2835,7 @@ class RobotService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_TransformPCD() { - ::grpc::Service::MarkMethodGeneric(9); + ::grpc::Service::MarkMethodGeneric(10); } ~WithGenericMethod_TransformPCD() override { BaseClassMustBeDerivedFromService(this); @@ -1789,7 +2852,7 @@ class RobotService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_GetStatus() { - ::grpc::Service::MarkMethodGeneric(10); + ::grpc::Service::MarkMethodGeneric(11); } ~WithGenericMethod_GetStatus() override { BaseClassMustBeDerivedFromService(this); @@ -1806,7 +2869,7 @@ class RobotService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_StreamStatus() { - ::grpc::Service::MarkMethodGeneric(11); + ::grpc::Service::MarkMethodGeneric(12); } ~WithGenericMethod_StreamStatus() override { BaseClassMustBeDerivedFromService(this); @@ -1823,7 +2886,7 @@ class RobotService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_StopAll() { - ::grpc::Service::MarkMethodGeneric(12); + ::grpc::Service::MarkMethodGeneric(13); } ~WithGenericMethod_StopAll() override { BaseClassMustBeDerivedFromService(this); @@ -1840,7 +2903,7 @@ class RobotService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_StartSession() { - ::grpc::Service::MarkMethodGeneric(13); + ::grpc::Service::MarkMethodGeneric(14); } ~WithGenericMethod_StartSession() override { BaseClassMustBeDerivedFromService(this); @@ -1857,7 +2920,7 @@ class RobotService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_SendSessionHeartbeat() { - ::grpc::Service::MarkMethodGeneric(14); + ::grpc::Service::MarkMethodGeneric(15); } ~WithGenericMethod_SendSessionHeartbeat() override { BaseClassMustBeDerivedFromService(this); @@ -1874,7 +2937,7 @@ class RobotService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_Log() { - ::grpc::Service::MarkMethodGeneric(15); + ::grpc::Service::MarkMethodGeneric(16); } ~WithGenericMethod_Log() override { BaseClassMustBeDerivedFromService(this); @@ -1891,7 +2954,7 @@ class RobotService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_GetCloudMetadata() { - ::grpc::Service::MarkMethodGeneric(16); + ::grpc::Service::MarkMethodGeneric(17); } ~WithGenericMethod_GetCloudMetadata() override { BaseClassMustBeDerivedFromService(this); @@ -1908,7 +2971,7 @@ class RobotService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_RestartModule() { - ::grpc::Service::MarkMethodGeneric(17); + ::grpc::Service::MarkMethodGeneric(18); } ~WithGenericMethod_RestartModule() override { BaseClassMustBeDerivedFromService(this); @@ -1925,7 +2988,7 @@ class RobotService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_Shutdown() { - ::grpc::Service::MarkMethodGeneric(18); + ::grpc::Service::MarkMethodGeneric(19); } ~WithGenericMethod_Shutdown() override { BaseClassMustBeDerivedFromService(this); @@ -1942,7 +3005,7 @@ class RobotService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_GetMachineStatus() { - ::grpc::Service::MarkMethodGeneric(19); + ::grpc::Service::MarkMethodGeneric(20); } ~WithGenericMethod_GetMachineStatus() override { BaseClassMustBeDerivedFromService(this); @@ -1959,7 +3022,7 @@ class RobotService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_GetVersion() { - ::grpc::Service::MarkMethodGeneric(20); + ::grpc::Service::MarkMethodGeneric(21); } ~WithGenericMethod_GetVersion() override { BaseClassMustBeDerivedFromService(this); @@ -1971,6 +3034,23 @@ class RobotService final { } }; template + class WithGenericMethod_Tunnel : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_Tunnel() { + ::grpc::Service::MarkMethodGeneric(22); + } + ~WithGenericMethod_Tunnel() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Tunnel(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter< ::viam::robot::v1::TunnelResponse, ::viam::robot::v1::TunnelRequest>* /*stream*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template class WithRawMethod_GetOperations : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} @@ -2091,12 +3171,32 @@ class RobotService final { } }; template + class WithRawMethod_GetModelsFromModules : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetModelsFromModules() { + ::grpc::Service::MarkMethodRaw(6); + } + ~WithRawMethod_GetModelsFromModules() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetModelsFromModules(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::GetModelsFromModulesRequest* /*request*/, ::viam::robot::v1::GetModelsFromModulesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetModelsFromModules(::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(6, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template class WithRawMethod_DiscoverComponents : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_DiscoverComponents() { - ::grpc::Service::MarkMethodRaw(6); + ::grpc::Service::MarkMethodRaw(7); } ~WithRawMethod_DiscoverComponents() override { BaseClassMustBeDerivedFromService(this); @@ -2107,7 +3207,7 @@ class RobotService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestDiscoverComponents(::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(6, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -2116,7 +3216,7 @@ class RobotService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_FrameSystemConfig() { - ::grpc::Service::MarkMethodRaw(7); + ::grpc::Service::MarkMethodRaw(8); } ~WithRawMethod_FrameSystemConfig() override { BaseClassMustBeDerivedFromService(this); @@ -2127,7 +3227,7 @@ class RobotService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestFrameSystemConfig(::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(7, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -2136,7 +3236,7 @@ class RobotService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_TransformPose() { - ::grpc::Service::MarkMethodRaw(8); + ::grpc::Service::MarkMethodRaw(9); } ~WithRawMethod_TransformPose() override { BaseClassMustBeDerivedFromService(this); @@ -2147,7 +3247,7 @@ class RobotService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestTransformPose(::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(8, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -2156,7 +3256,7 @@ class RobotService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_TransformPCD() { - ::grpc::Service::MarkMethodRaw(9); + ::grpc::Service::MarkMethodRaw(10); } ~WithRawMethod_TransformPCD() override { BaseClassMustBeDerivedFromService(this); @@ -2167,7 +3267,7 @@ class RobotService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestTransformPCD(::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(9, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(10, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -2176,7 +3276,7 @@ class RobotService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_GetStatus() { - ::grpc::Service::MarkMethodRaw(10); + ::grpc::Service::MarkMethodRaw(11); } ~WithRawMethod_GetStatus() override { BaseClassMustBeDerivedFromService(this); @@ -2187,7 +3287,7 @@ class RobotService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestGetStatus(::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); + ::grpc::Service::RequestAsyncUnary(11, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -2196,7 +3296,7 @@ class RobotService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_StreamStatus() { - ::grpc::Service::MarkMethodRaw(11); + ::grpc::Service::MarkMethodRaw(12); } ~WithRawMethod_StreamStatus() override { BaseClassMustBeDerivedFromService(this); @@ -2207,7 +3307,7 @@ class RobotService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestStreamStatus(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncWriter< ::grpc::ByteBuffer>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncServerStreaming(11, context, request, writer, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncServerStreaming(12, context, request, writer, new_call_cq, notification_cq, tag); } }; template @@ -2216,7 +3316,7 @@ class RobotService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_StopAll() { - ::grpc::Service::MarkMethodRaw(12); + ::grpc::Service::MarkMethodRaw(13); } ~WithRawMethod_StopAll() override { BaseClassMustBeDerivedFromService(this); @@ -2227,7 +3327,7 @@ class RobotService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestStopAll(::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(12, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(13, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -2236,7 +3336,7 @@ class RobotService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_StartSession() { - ::grpc::Service::MarkMethodRaw(13); + ::grpc::Service::MarkMethodRaw(14); } ~WithRawMethod_StartSession() override { BaseClassMustBeDerivedFromService(this); @@ -2247,7 +3347,7 @@ class RobotService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestStartSession(::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(13, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(14, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -2256,7 +3356,7 @@ class RobotService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_SendSessionHeartbeat() { - ::grpc::Service::MarkMethodRaw(14); + ::grpc::Service::MarkMethodRaw(15); } ~WithRawMethod_SendSessionHeartbeat() override { BaseClassMustBeDerivedFromService(this); @@ -2267,7 +3367,7 @@ class RobotService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestSendSessionHeartbeat(::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(14, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(15, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -2276,7 +3376,7 @@ class RobotService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_Log() { - ::grpc::Service::MarkMethodRaw(15); + ::grpc::Service::MarkMethodRaw(16); } ~WithRawMethod_Log() override { BaseClassMustBeDerivedFromService(this); @@ -2287,7 +3387,7 @@ class RobotService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestLog(::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(15, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(16, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -2296,7 +3396,7 @@ class RobotService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_GetCloudMetadata() { - ::grpc::Service::MarkMethodRaw(16); + ::grpc::Service::MarkMethodRaw(17); } ~WithRawMethod_GetCloudMetadata() override { BaseClassMustBeDerivedFromService(this); @@ -2307,7 +3407,7 @@ class RobotService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestGetCloudMetadata(::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(16, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(17, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -2316,7 +3416,7 @@ class RobotService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_RestartModule() { - ::grpc::Service::MarkMethodRaw(17); + ::grpc::Service::MarkMethodRaw(18); } ~WithRawMethod_RestartModule() override { BaseClassMustBeDerivedFromService(this); @@ -2327,7 +3427,7 @@ class RobotService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestRestartModule(::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(17, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(18, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -2336,7 +3436,7 @@ class RobotService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_Shutdown() { - ::grpc::Service::MarkMethodRaw(18); + ::grpc::Service::MarkMethodRaw(19); } ~WithRawMethod_Shutdown() override { BaseClassMustBeDerivedFromService(this); @@ -2347,7 +3447,7 @@ class RobotService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestShutdown(::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(18, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(19, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -2356,7 +3456,7 @@ class RobotService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_GetMachineStatus() { - ::grpc::Service::MarkMethodRaw(19); + ::grpc::Service::MarkMethodRaw(20); } ~WithRawMethod_GetMachineStatus() override { BaseClassMustBeDerivedFromService(this); @@ -2367,7 +3467,7 @@ class RobotService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestGetMachineStatus(::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(19, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(20, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -2376,7 +3476,7 @@ class RobotService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_GetVersion() { - ::grpc::Service::MarkMethodRaw(20); + ::grpc::Service::MarkMethodRaw(21); } ~WithRawMethod_GetVersion() override { BaseClassMustBeDerivedFromService(this); @@ -2387,21 +3487,51 @@ class RobotService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestGetVersion(::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(20, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(21, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithRawCallbackMethod_GetOperations : public BaseClass { + class WithRawMethod_Tunnel : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetOperations() { - ::grpc::Service::MarkMethodRawCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetOperations(context, request, response); })); + WithRawMethod_Tunnel() { + ::grpc::Service::MarkMethodRaw(22); } - ~WithRawCallbackMethod_GetOperations() override { + ~WithRawMethod_Tunnel() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Tunnel(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter< ::viam::robot::v1::TunnelResponse, ::viam::robot::v1::TunnelRequest>* /*stream*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestTunnel(::grpc::ServerContext* context, ::grpc::ServerAsyncReaderWriter< ::grpc::ByteBuffer, ::grpc::ByteBuffer>* stream, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncBidiStreaming(22, context, stream, new_call_cq, notification_cq, tag); + } + }; + template + class ExperimentalWithRawCallbackMethod_GetOperations : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithRawCallbackMethod_GetOperations() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetOperations(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetOperations() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -2409,21 +3539,37 @@ class RobotService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetOperations( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetOperations( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetSessions : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetSessions : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetSessions() { - ::grpc::Service::MarkMethodRawCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetSessions() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetSessions(context, request, response); })); - } - ~WithRawCallbackMethod_GetSessions() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetSessions(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetSessions() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -2431,21 +3577,37 @@ class RobotService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetSessions( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetSessions( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_ResourceNames : public BaseClass { + class ExperimentalWithRawCallbackMethod_ResourceNames : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_ResourceNames() { - ::grpc::Service::MarkMethodRawCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_ResourceNames() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(2, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ResourceNames(context, request, response); })); - } - ~WithRawCallbackMethod_ResourceNames() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ResourceNames(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_ResourceNames() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -2453,21 +3615,37 @@ class RobotService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* ResourceNames( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ResourceNames( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_ResourceRPCSubtypes : public BaseClass { + class ExperimentalWithRawCallbackMethod_ResourceRPCSubtypes : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_ResourceRPCSubtypes() { - ::grpc::Service::MarkMethodRawCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_ResourceRPCSubtypes() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(3, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ResourceRPCSubtypes(context, request, response); })); - } - ~WithRawCallbackMethod_ResourceRPCSubtypes() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ResourceRPCSubtypes(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_ResourceRPCSubtypes() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -2475,21 +3653,37 @@ class RobotService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* ResourceRPCSubtypes( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ResourceRPCSubtypes( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_CancelOperation : public BaseClass { + class ExperimentalWithRawCallbackMethod_CancelOperation : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_CancelOperation() { - ::grpc::Service::MarkMethodRawCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_CancelOperation() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(4, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->CancelOperation(context, request, response); })); - } - ~WithRawCallbackMethod_CancelOperation() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->CancelOperation(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_CancelOperation() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -2497,21 +3691,37 @@ class RobotService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* CancelOperation( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* CancelOperation( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_BlockForOperation : public BaseClass { + class ExperimentalWithRawCallbackMethod_BlockForOperation : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_BlockForOperation() { - ::grpc::Service::MarkMethodRawCallback(5, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_BlockForOperation() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(5, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->BlockForOperation(context, request, response); })); - } - ~WithRawCallbackMethod_BlockForOperation() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->BlockForOperation(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_BlockForOperation() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -2519,21 +3729,75 @@ class RobotService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* BlockForOperation( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* BlockForOperation( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_DiscoverComponents : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetModelsFromModules : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_DiscoverComponents() { - ::grpc::Service::MarkMethodRawCallback(6, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetModelsFromModules() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(6, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DiscoverComponents(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetModelsFromModules(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetModelsFromModules() override { + BaseClassMustBeDerivedFromService(this); } - ~WithRawCallbackMethod_DiscoverComponents() override { + // disable synchronous version of this method + ::grpc::Status GetModelsFromModules(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::GetModelsFromModulesRequest* /*request*/, ::viam::robot::v1::GetModelsFromModulesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* GetModelsFromModules( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetModelsFromModules( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } + }; + template + class ExperimentalWithRawCallbackMethod_DiscoverComponents : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithRawCallbackMethod_DiscoverComponents() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(7, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DiscoverComponents(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_DiscoverComponents() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -2541,21 +3805,37 @@ class RobotService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DiscoverComponents( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DiscoverComponents( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_FrameSystemConfig : public BaseClass { + class ExperimentalWithRawCallbackMethod_FrameSystemConfig : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_FrameSystemConfig() { - ::grpc::Service::MarkMethodRawCallback(7, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_FrameSystemConfig() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(8, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->FrameSystemConfig(context, request, response); })); - } - ~WithRawCallbackMethod_FrameSystemConfig() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->FrameSystemConfig(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_FrameSystemConfig() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -2563,21 +3843,37 @@ class RobotService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* FrameSystemConfig( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* FrameSystemConfig( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_TransformPose : public BaseClass { + class ExperimentalWithRawCallbackMethod_TransformPose : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_TransformPose() { - ::grpc::Service::MarkMethodRawCallback(8, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_TransformPose() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(9, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->TransformPose(context, request, response); })); - } - ~WithRawCallbackMethod_TransformPose() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->TransformPose(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_TransformPose() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -2585,21 +3881,37 @@ class RobotService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* TransformPose( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* TransformPose( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_TransformPCD : public BaseClass { + class ExperimentalWithRawCallbackMethod_TransformPCD : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_TransformPCD() { - ::grpc::Service::MarkMethodRawCallback(9, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_TransformPCD() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(10, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->TransformPCD(context, request, response); })); - } - ~WithRawCallbackMethod_TransformPCD() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->TransformPCD(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_TransformPCD() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -2607,21 +3919,37 @@ class RobotService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* TransformPCD( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* TransformPCD( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetStatus : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetStatus : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetStatus() { - ::grpc::Service::MarkMethodRawCallback(10, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetStatus() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(11, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetStatus(context, request, response); })); - } - ~WithRawCallbackMethod_GetStatus() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetStatus(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetStatus() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -2629,21 +3957,37 @@ class RobotService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetStatus( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetStatus( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_StreamStatus : public BaseClass { + class ExperimentalWithRawCallbackMethod_StreamStatus : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_StreamStatus() { - ::grpc::Service::MarkMethodRawCallback(11, - new ::grpc::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_StreamStatus() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(12, + new ::grpc_impl::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const::grpc::ByteBuffer* request) { return this->StreamStatus(context, request); })); - } - ~WithRawCallbackMethod_StreamStatus() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const::grpc::ByteBuffer* request) { return this->StreamStatus(context, request); })); + } + ~ExperimentalWithRawCallbackMethod_StreamStatus() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -2651,21 +3995,37 @@ class RobotService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerWriteReactor< ::grpc::ByteBuffer>* StreamStatus( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) + #else + virtual ::grpc::experimental::ServerWriteReactor< ::grpc::ByteBuffer>* StreamStatus( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_StopAll : public BaseClass { + class ExperimentalWithRawCallbackMethod_StopAll : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_StopAll() { - ::grpc::Service::MarkMethodRawCallback(12, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_StopAll() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(13, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->StopAll(context, request, response); })); - } - ~WithRawCallbackMethod_StopAll() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->StopAll(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_StopAll() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -2673,21 +4033,37 @@ class RobotService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* StopAll( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* StopAll( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_StartSession : public BaseClass { + class ExperimentalWithRawCallbackMethod_StartSession : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_StartSession() { - ::grpc::Service::MarkMethodRawCallback(13, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_StartSession() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(14, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->StartSession(context, request, response); })); - } - ~WithRawCallbackMethod_StartSession() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->StartSession(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_StartSession() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -2695,21 +4071,37 @@ class RobotService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* StartSession( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* StartSession( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_SendSessionHeartbeat : public BaseClass { + class ExperimentalWithRawCallbackMethod_SendSessionHeartbeat : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_SendSessionHeartbeat() { - ::grpc::Service::MarkMethodRawCallback(14, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_SendSessionHeartbeat() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(15, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SendSessionHeartbeat(context, request, response); })); - } - ~WithRawCallbackMethod_SendSessionHeartbeat() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SendSessionHeartbeat(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_SendSessionHeartbeat() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -2717,21 +4109,37 @@ class RobotService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* SendSessionHeartbeat( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* SendSessionHeartbeat( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_Log : public BaseClass { + class ExperimentalWithRawCallbackMethod_Log : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_Log() { - ::grpc::Service::MarkMethodRawCallback(15, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_Log() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(16, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Log(context, request, response); })); - } - ~WithRawCallbackMethod_Log() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Log(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_Log() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -2739,21 +4147,37 @@ class RobotService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* Log( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* Log( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetCloudMetadata : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetCloudMetadata : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetCloudMetadata() { - ::grpc::Service::MarkMethodRawCallback(16, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetCloudMetadata() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(17, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetCloudMetadata(context, request, response); })); - } - ~WithRawCallbackMethod_GetCloudMetadata() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetCloudMetadata(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetCloudMetadata() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -2761,21 +4185,37 @@ class RobotService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetCloudMetadata( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetCloudMetadata( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_RestartModule : public BaseClass { + class ExperimentalWithRawCallbackMethod_RestartModule : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_RestartModule() { - ::grpc::Service::MarkMethodRawCallback(17, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_RestartModule() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(18, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->RestartModule(context, request, response); })); - } - ~WithRawCallbackMethod_RestartModule() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->RestartModule(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_RestartModule() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -2783,21 +4223,37 @@ class RobotService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* RestartModule( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* RestartModule( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_Shutdown : public BaseClass { + class ExperimentalWithRawCallbackMethod_Shutdown : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_Shutdown() { - ::grpc::Service::MarkMethodRawCallback(18, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_Shutdown() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(19, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Shutdown(context, request, response); })); - } - ~WithRawCallbackMethod_Shutdown() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Shutdown(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_Shutdown() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -2805,21 +4261,37 @@ class RobotService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* Shutdown( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* Shutdown( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetMachineStatus : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetMachineStatus : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetMachineStatus() { - ::grpc::Service::MarkMethodRawCallback(19, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetMachineStatus() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(20, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetMachineStatus(context, request, response); })); - } - ~WithRawCallbackMethod_GetMachineStatus() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetMachineStatus(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetMachineStatus() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -2827,21 +4299,37 @@ class RobotService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetMachineStatus( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetMachineStatus( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetVersion : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetVersion : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetVersion() { - ::grpc::Service::MarkMethodRawCallback(20, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetVersion() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(21, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetVersion(context, request, response); })); - } - ~WithRawCallbackMethod_GetVersion() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetVersion(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetVersion() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -2849,8 +4337,52 @@ class RobotService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetVersion( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetVersion( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } + }; + template + class ExperimentalWithRawCallbackMethod_Tunnel : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithRawCallbackMethod_Tunnel() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(22, + new ::grpc_impl::internal::CallbackBidiHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context) { return this->Tunnel(context); })); + } + ~ExperimentalWithRawCallbackMethod_Tunnel() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Tunnel(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter< ::viam::robot::v1::TunnelResponse, ::viam::robot::v1::TunnelRequest>* /*stream*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerBidiReactor< ::grpc::ByteBuffer, ::grpc::ByteBuffer>* Tunnel( + ::grpc::CallbackServerContext* /*context*/) + #else + virtual ::grpc::experimental::ServerBidiReactor< ::grpc::ByteBuffer, ::grpc::ByteBuffer>* Tunnel( + ::grpc::experimental::CallbackServerContext* /*context*/) + #endif + { return nullptr; } }; template class WithStreamedUnaryMethod_GetOperations : public BaseClass { @@ -2861,8 +4393,8 @@ class RobotService final { ::grpc::Service::MarkMethodStreamed(0, new ::grpc::internal::StreamedUnaryHandler< ::viam::robot::v1::GetOperationsRequest, ::viam::robot::v1::GetOperationsResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::robot::v1::GetOperationsRequest, ::viam::robot::v1::GetOperationsResponse>* streamer) { return this->StreamedGetOperations(context, streamer); @@ -2888,8 +4420,8 @@ class RobotService final { ::grpc::Service::MarkMethodStreamed(1, new ::grpc::internal::StreamedUnaryHandler< ::viam::robot::v1::GetSessionsRequest, ::viam::robot::v1::GetSessionsResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::robot::v1::GetSessionsRequest, ::viam::robot::v1::GetSessionsResponse>* streamer) { return this->StreamedGetSessions(context, streamer); @@ -2915,8 +4447,8 @@ class RobotService final { ::grpc::Service::MarkMethodStreamed(2, new ::grpc::internal::StreamedUnaryHandler< ::viam::robot::v1::ResourceNamesRequest, ::viam::robot::v1::ResourceNamesResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::robot::v1::ResourceNamesRequest, ::viam::robot::v1::ResourceNamesResponse>* streamer) { return this->StreamedResourceNames(context, streamer); @@ -2942,8 +4474,8 @@ class RobotService final { ::grpc::Service::MarkMethodStreamed(3, new ::grpc::internal::StreamedUnaryHandler< ::viam::robot::v1::ResourceRPCSubtypesRequest, ::viam::robot::v1::ResourceRPCSubtypesResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::robot::v1::ResourceRPCSubtypesRequest, ::viam::robot::v1::ResourceRPCSubtypesResponse>* streamer) { return this->StreamedResourceRPCSubtypes(context, streamer); @@ -2969,8 +4501,8 @@ class RobotService final { ::grpc::Service::MarkMethodStreamed(4, new ::grpc::internal::StreamedUnaryHandler< ::viam::robot::v1::CancelOperationRequest, ::viam::robot::v1::CancelOperationResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::robot::v1::CancelOperationRequest, ::viam::robot::v1::CancelOperationResponse>* streamer) { return this->StreamedCancelOperation(context, streamer); @@ -2996,8 +4528,8 @@ class RobotService final { ::grpc::Service::MarkMethodStreamed(5, new ::grpc::internal::StreamedUnaryHandler< ::viam::robot::v1::BlockForOperationRequest, ::viam::robot::v1::BlockForOperationResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::robot::v1::BlockForOperationRequest, ::viam::robot::v1::BlockForOperationResponse>* streamer) { return this->StreamedBlockForOperation(context, streamer); @@ -3015,16 +4547,43 @@ class RobotService final { virtual ::grpc::Status StreamedBlockForOperation(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::robot::v1::BlockForOperationRequest,::viam::robot::v1::BlockForOperationResponse>* server_unary_streamer) = 0; }; template + class WithStreamedUnaryMethod_GetModelsFromModules : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetModelsFromModules() { + ::grpc::Service::MarkMethodStreamed(6, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::robot::v1::GetModelsFromModulesRequest, ::viam::robot::v1::GetModelsFromModulesResponse>( + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< + ::viam::robot::v1::GetModelsFromModulesRequest, ::viam::robot::v1::GetModelsFromModulesResponse>* streamer) { + return this->StreamedGetModelsFromModules(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetModelsFromModules() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetModelsFromModules(::grpc::ServerContext* /*context*/, const ::viam::robot::v1::GetModelsFromModulesRequest* /*request*/, ::viam::robot::v1::GetModelsFromModulesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetModelsFromModules(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::robot::v1::GetModelsFromModulesRequest,::viam::robot::v1::GetModelsFromModulesResponse>* server_unary_streamer) = 0; + }; + template class WithStreamedUnaryMethod_DiscoverComponents : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_DiscoverComponents() { - ::grpc::Service::MarkMethodStreamed(6, + ::grpc::Service::MarkMethodStreamed(7, new ::grpc::internal::StreamedUnaryHandler< ::viam::robot::v1::DiscoverComponentsRequest, ::viam::robot::v1::DiscoverComponentsResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::robot::v1::DiscoverComponentsRequest, ::viam::robot::v1::DiscoverComponentsResponse>* streamer) { return this->StreamedDiscoverComponents(context, streamer); @@ -3047,11 +4606,11 @@ class RobotService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_FrameSystemConfig() { - ::grpc::Service::MarkMethodStreamed(7, + ::grpc::Service::MarkMethodStreamed(8, new ::grpc::internal::StreamedUnaryHandler< ::viam::robot::v1::FrameSystemConfigRequest, ::viam::robot::v1::FrameSystemConfigResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::robot::v1::FrameSystemConfigRequest, ::viam::robot::v1::FrameSystemConfigResponse>* streamer) { return this->StreamedFrameSystemConfig(context, streamer); @@ -3074,11 +4633,11 @@ class RobotService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_TransformPose() { - ::grpc::Service::MarkMethodStreamed(8, + ::grpc::Service::MarkMethodStreamed(9, new ::grpc::internal::StreamedUnaryHandler< ::viam::robot::v1::TransformPoseRequest, ::viam::robot::v1::TransformPoseResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::robot::v1::TransformPoseRequest, ::viam::robot::v1::TransformPoseResponse>* streamer) { return this->StreamedTransformPose(context, streamer); @@ -3101,11 +4660,11 @@ class RobotService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_TransformPCD() { - ::grpc::Service::MarkMethodStreamed(9, + ::grpc::Service::MarkMethodStreamed(10, new ::grpc::internal::StreamedUnaryHandler< ::viam::robot::v1::TransformPCDRequest, ::viam::robot::v1::TransformPCDResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::robot::v1::TransformPCDRequest, ::viam::robot::v1::TransformPCDResponse>* streamer) { return this->StreamedTransformPCD(context, streamer); @@ -3128,11 +4687,11 @@ class RobotService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_GetStatus() { - ::grpc::Service::MarkMethodStreamed(10, + ::grpc::Service::MarkMethodStreamed(11, new ::grpc::internal::StreamedUnaryHandler< ::viam::robot::v1::GetStatusRequest, ::viam::robot::v1::GetStatusResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::robot::v1::GetStatusRequest, ::viam::robot::v1::GetStatusResponse>* streamer) { return this->StreamedGetStatus(context, streamer); @@ -3155,11 +4714,11 @@ class RobotService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_StopAll() { - ::grpc::Service::MarkMethodStreamed(12, + ::grpc::Service::MarkMethodStreamed(13, new ::grpc::internal::StreamedUnaryHandler< ::viam::robot::v1::StopAllRequest, ::viam::robot::v1::StopAllResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::robot::v1::StopAllRequest, ::viam::robot::v1::StopAllResponse>* streamer) { return this->StreamedStopAll(context, streamer); @@ -3182,11 +4741,11 @@ class RobotService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_StartSession() { - ::grpc::Service::MarkMethodStreamed(13, + ::grpc::Service::MarkMethodStreamed(14, new ::grpc::internal::StreamedUnaryHandler< ::viam::robot::v1::StartSessionRequest, ::viam::robot::v1::StartSessionResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::robot::v1::StartSessionRequest, ::viam::robot::v1::StartSessionResponse>* streamer) { return this->StreamedStartSession(context, streamer); @@ -3209,11 +4768,11 @@ class RobotService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_SendSessionHeartbeat() { - ::grpc::Service::MarkMethodStreamed(14, + ::grpc::Service::MarkMethodStreamed(15, new ::grpc::internal::StreamedUnaryHandler< ::viam::robot::v1::SendSessionHeartbeatRequest, ::viam::robot::v1::SendSessionHeartbeatResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::robot::v1::SendSessionHeartbeatRequest, ::viam::robot::v1::SendSessionHeartbeatResponse>* streamer) { return this->StreamedSendSessionHeartbeat(context, streamer); @@ -3236,11 +4795,11 @@ class RobotService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_Log() { - ::grpc::Service::MarkMethodStreamed(15, + ::grpc::Service::MarkMethodStreamed(16, new ::grpc::internal::StreamedUnaryHandler< ::viam::robot::v1::LogRequest, ::viam::robot::v1::LogResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::robot::v1::LogRequest, ::viam::robot::v1::LogResponse>* streamer) { return this->StreamedLog(context, streamer); @@ -3263,11 +4822,11 @@ class RobotService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_GetCloudMetadata() { - ::grpc::Service::MarkMethodStreamed(16, + ::grpc::Service::MarkMethodStreamed(17, new ::grpc::internal::StreamedUnaryHandler< ::viam::robot::v1::GetCloudMetadataRequest, ::viam::robot::v1::GetCloudMetadataResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::robot::v1::GetCloudMetadataRequest, ::viam::robot::v1::GetCloudMetadataResponse>* streamer) { return this->StreamedGetCloudMetadata(context, streamer); @@ -3290,11 +4849,11 @@ class RobotService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_RestartModule() { - ::grpc::Service::MarkMethodStreamed(17, + ::grpc::Service::MarkMethodStreamed(18, new ::grpc::internal::StreamedUnaryHandler< ::viam::robot::v1::RestartModuleRequest, ::viam::robot::v1::RestartModuleResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::robot::v1::RestartModuleRequest, ::viam::robot::v1::RestartModuleResponse>* streamer) { return this->StreamedRestartModule(context, streamer); @@ -3317,11 +4876,11 @@ class RobotService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_Shutdown() { - ::grpc::Service::MarkMethodStreamed(18, + ::grpc::Service::MarkMethodStreamed(19, new ::grpc::internal::StreamedUnaryHandler< ::viam::robot::v1::ShutdownRequest, ::viam::robot::v1::ShutdownResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::robot::v1::ShutdownRequest, ::viam::robot::v1::ShutdownResponse>* streamer) { return this->StreamedShutdown(context, streamer); @@ -3344,11 +4903,11 @@ class RobotService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_GetMachineStatus() { - ::grpc::Service::MarkMethodStreamed(19, + ::grpc::Service::MarkMethodStreamed(20, new ::grpc::internal::StreamedUnaryHandler< ::viam::robot::v1::GetMachineStatusRequest, ::viam::robot::v1::GetMachineStatusResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::robot::v1::GetMachineStatusRequest, ::viam::robot::v1::GetMachineStatusResponse>* streamer) { return this->StreamedGetMachineStatus(context, streamer); @@ -3371,11 +4930,11 @@ class RobotService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_GetVersion() { - ::grpc::Service::MarkMethodStreamed(20, + ::grpc::Service::MarkMethodStreamed(21, new ::grpc::internal::StreamedUnaryHandler< ::viam::robot::v1::GetVersionRequest, ::viam::robot::v1::GetVersionResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::robot::v1::GetVersionRequest, ::viam::robot::v1::GetVersionResponse>* streamer) { return this->StreamedGetVersion(context, streamer); @@ -3392,18 +4951,18 @@ class RobotService final { // replace default version of method with streamed unary virtual ::grpc::Status StreamedGetVersion(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::robot::v1::GetVersionRequest,::viam::robot::v1::GetVersionResponse>* server_unary_streamer) = 0; }; - typedef WithStreamedUnaryMethod_GetOperations > > > > > > > > > > > > > > > > > > > StreamedUnaryService; + typedef WithStreamedUnaryMethod_GetOperations > > > > > > > > > > > > > > > > > > > > StreamedUnaryService; template class WithSplitStreamingMethod_StreamStatus : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithSplitStreamingMethod_StreamStatus() { - ::grpc::Service::MarkMethodStreamed(11, + ::grpc::Service::MarkMethodStreamed(12, new ::grpc::internal::SplitServerStreamingHandler< ::viam::robot::v1::StreamStatusRequest, ::viam::robot::v1::StreamStatusResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerSplitStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerSplitStreamer< ::viam::robot::v1::StreamStatusRequest, ::viam::robot::v1::StreamStatusResponse>* streamer) { return this->StreamedStreamStatus(context, streamer); @@ -3421,7 +4980,7 @@ class RobotService final { virtual ::grpc::Status StreamedStreamStatus(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::viam::robot::v1::StreamStatusRequest,::viam::robot::v1::StreamStatusResponse>* server_split_streamer) = 0; }; typedef WithSplitStreamingMethod_StreamStatus SplitStreamedService; - typedef WithStreamedUnaryMethod_GetOperations > > > > > > > > > > > > > > > > > > > > StreamedService; + typedef WithStreamedUnaryMethod_GetOperations > > > > > > > > > > > > > > > > > > > > > StreamedService; }; } // namespace v1 diff --git a/src/viam/api/robot/v1/robot.pb.cc b/src/viam/api/robot/v1/robot.pb.cc index cc388ff4e..b6d0602ba 100644 --- a/src/viam/api/robot/v1/robot.pb.cc +++ b/src/viam/api/robot/v1/robot.pb.cc @@ -4,1949 +4,1613 @@ #include "robot/v1/robot.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace viam { namespace robot { namespace v1 { - -inline constexpr TransformPCDResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : point_cloud_pcd_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR TransformPCDResponse::TransformPCDResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct TransformPCDResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR TransformPCDResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TransformPCDResponseDefaultTypeInternal() {} - union { - TransformPCDResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TransformPCDResponseDefaultTypeInternal _TransformPCDResponse_default_instance_; - -inline constexpr TransformPCDRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : point_cloud_pcd_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - source_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - destination_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR TransformPCDRequest::TransformPCDRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct TransformPCDRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR TransformPCDRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TransformPCDRequestDefaultTypeInternal() {} - union { - TransformPCDRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TransformPCDRequestDefaultTypeInternal _TransformPCDRequest_default_instance_; - template -PROTOBUF_CONSTEXPR StopAllResponse::StopAllResponse(::_pbi::ConstantInitialized) {} -struct StopAllResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR StopAllResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StopAllResponseDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR TunnelRequest::TunnelRequest( + ::_pbi::ConstantInitialized) + : data_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , destination_port_(0u){} +struct TunnelRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR TunnelRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~TunnelRequestDefaultTypeInternal() {} union { - StopAllResponse _instance; + TunnelRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopAllResponseDefaultTypeInternal _StopAllResponse_default_instance_; - -inline constexpr StartSessionRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : resume_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR StartSessionRequest::StartSessionRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct StartSessionRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR StartSessionRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StartSessionRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TunnelRequestDefaultTypeInternal _TunnelRequest_default_instance_; +PROTOBUF_CONSTEXPR TunnelResponse::TunnelResponse( + ::_pbi::ConstantInitialized) + : data_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct TunnelResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR TunnelResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~TunnelResponseDefaultTypeInternal() {} union { - StartSessionRequest _instance; + TunnelResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StartSessionRequestDefaultTypeInternal _StartSessionRequest_default_instance_; - template -PROTOBUF_CONSTEXPR ShutdownResponse::ShutdownResponse(::_pbi::ConstantInitialized) {} -struct ShutdownResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ShutdownResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ShutdownResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TunnelResponseDefaultTypeInternal _TunnelResponse_default_instance_; +PROTOBUF_CONSTEXPR FrameSystemConfig::FrameSystemConfig( + ::_pbi::ConstantInitialized) + : frame_(nullptr) + , kinematics_(nullptr){} +struct FrameSystemConfigDefaultTypeInternal { + PROTOBUF_CONSTEXPR FrameSystemConfigDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~FrameSystemConfigDefaultTypeInternal() {} union { - ShutdownResponse _instance; + FrameSystemConfig _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ShutdownResponseDefaultTypeInternal _ShutdownResponse_default_instance_; - template -PROTOBUF_CONSTEXPR ShutdownRequest::ShutdownRequest(::_pbi::ConstantInitialized) {} -struct ShutdownRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR ShutdownRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ShutdownRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FrameSystemConfigDefaultTypeInternal _FrameSystemConfig_default_instance_; +PROTOBUF_CONSTEXPR FrameSystemConfigRequest::FrameSystemConfigRequest( + ::_pbi::ConstantInitialized) + : supplemental_transforms_(){} +struct FrameSystemConfigRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR FrameSystemConfigRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~FrameSystemConfigRequestDefaultTypeInternal() {} union { - ShutdownRequest _instance; + FrameSystemConfigRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ShutdownRequestDefaultTypeInternal _ShutdownRequest_default_instance_; - template -PROTOBUF_CONSTEXPR SendSessionHeartbeatResponse::SendSessionHeartbeatResponse(::_pbi::ConstantInitialized) {} -struct SendSessionHeartbeatResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SendSessionHeartbeatResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SendSessionHeartbeatResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FrameSystemConfigRequestDefaultTypeInternal _FrameSystemConfigRequest_default_instance_; +PROTOBUF_CONSTEXPR FrameSystemConfigResponse::FrameSystemConfigResponse( + ::_pbi::ConstantInitialized) + : frame_system_configs_(){} +struct FrameSystemConfigResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR FrameSystemConfigResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~FrameSystemConfigResponseDefaultTypeInternal() {} union { - SendSessionHeartbeatResponse _instance; + FrameSystemConfigResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SendSessionHeartbeatResponseDefaultTypeInternal _SendSessionHeartbeatResponse_default_instance_; - -inline constexpr SendSessionHeartbeatRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR SendSessionHeartbeatRequest::SendSessionHeartbeatRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct SendSessionHeartbeatRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SendSessionHeartbeatRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SendSessionHeartbeatRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FrameSystemConfigResponseDefaultTypeInternal _FrameSystemConfigResponse_default_instance_; +PROTOBUF_CONSTEXPR TransformPoseRequest::TransformPoseRequest( + ::_pbi::ConstantInitialized) + : supplemental_transforms_() + , destination_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , source_(nullptr){} +struct TransformPoseRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR TransformPoseRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~TransformPoseRequestDefaultTypeInternal() {} union { - SendSessionHeartbeatRequest _instance; + TransformPoseRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SendSessionHeartbeatRequestDefaultTypeInternal _SendSessionHeartbeatRequest_default_instance_; - template -PROTOBUF_CONSTEXPR RestartModuleResponse::RestartModuleResponse(::_pbi::ConstantInitialized) {} -struct RestartModuleResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR RestartModuleResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RestartModuleResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TransformPoseRequestDefaultTypeInternal _TransformPoseRequest_default_instance_; +PROTOBUF_CONSTEXPR TransformPoseResponse::TransformPoseResponse( + ::_pbi::ConstantInitialized) + : pose_(nullptr){} +struct TransformPoseResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR TransformPoseResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~TransformPoseResponseDefaultTypeInternal() {} union { - RestartModuleResponse _instance; + TransformPoseResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RestartModuleResponseDefaultTypeInternal _RestartModuleResponse_default_instance_; - -inline constexpr RestartModuleRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : id_or_name_{}, - _cached_size_{0}, - _oneof_case_{} {} - -template -PROTOBUF_CONSTEXPR RestartModuleRequest::RestartModuleRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct RestartModuleRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR RestartModuleRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RestartModuleRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TransformPoseResponseDefaultTypeInternal _TransformPoseResponse_default_instance_; +PROTOBUF_CONSTEXPR TransformPCDRequest::TransformPCDRequest( + ::_pbi::ConstantInitialized) + : point_cloud_pcd_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , source_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , destination_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct TransformPCDRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR TransformPCDRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~TransformPCDRequestDefaultTypeInternal() {} union { - RestartModuleRequest _instance; + TransformPCDRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RestartModuleRequestDefaultTypeInternal _RestartModuleRequest_default_instance_; - template -PROTOBUF_CONSTEXPR ResourceRPCSubtypesRequest::ResourceRPCSubtypesRequest(::_pbi::ConstantInitialized) {} -struct ResourceRPCSubtypesRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR ResourceRPCSubtypesRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ResourceRPCSubtypesRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TransformPCDRequestDefaultTypeInternal _TransformPCDRequest_default_instance_; +PROTOBUF_CONSTEXPR TransformPCDResponse::TransformPCDResponse( + ::_pbi::ConstantInitialized) + : point_cloud_pcd_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct TransformPCDResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR TransformPCDResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~TransformPCDResponseDefaultTypeInternal() {} union { - ResourceRPCSubtypesRequest _instance; + TransformPCDResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResourceRPCSubtypesRequestDefaultTypeInternal _ResourceRPCSubtypesRequest_default_instance_; - template -PROTOBUF_CONSTEXPR ResourceNamesRequest::ResourceNamesRequest(::_pbi::ConstantInitialized) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TransformPCDResponseDefaultTypeInternal _TransformPCDResponse_default_instance_; +PROTOBUF_CONSTEXPR ResourceNamesRequest::ResourceNamesRequest( + ::_pbi::ConstantInitialized){} struct ResourceNamesRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR ResourceNamesRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ResourceNamesRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~ResourceNamesRequestDefaultTypeInternal() {} union { ResourceNamesRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResourceNamesRequestDefaultTypeInternal _ResourceNamesRequest_default_instance_; - -inline constexpr PeerConnectionInfo::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - remote_address_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - local_address_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - type_{static_cast< ::viam::robot::v1::PeerConnectionType >(0)} {} - -template -PROTOBUF_CONSTEXPR PeerConnectionInfo::PeerConnectionInfo(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct PeerConnectionInfoDefaultTypeInternal { - PROTOBUF_CONSTEXPR PeerConnectionInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~PeerConnectionInfoDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResourceNamesRequestDefaultTypeInternal _ResourceNamesRequest_default_instance_; +PROTOBUF_CONSTEXPR ResourceNamesResponse::ResourceNamesResponse( + ::_pbi::ConstantInitialized) + : resources_(){} +struct ResourceNamesResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ResourceNamesResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ResourceNamesResponseDefaultTypeInternal() {} union { - PeerConnectionInfo _instance; + ResourceNamesResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PeerConnectionInfoDefaultTypeInternal _PeerConnectionInfo_default_instance_; - template -PROTOBUF_CONSTEXPR LogResponse::LogResponse(::_pbi::ConstantInitialized) {} -struct LogResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR LogResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~LogResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResourceNamesResponseDefaultTypeInternal _ResourceNamesResponse_default_instance_; +PROTOBUF_CONSTEXPR ResourceRPCSubtype::ResourceRPCSubtype( + ::_pbi::ConstantInitialized) + : proto_service_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , subtype_(nullptr){} +struct ResourceRPCSubtypeDefaultTypeInternal { + PROTOBUF_CONSTEXPR ResourceRPCSubtypeDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ResourceRPCSubtypeDefaultTypeInternal() {} union { - LogResponse _instance; + ResourceRPCSubtype _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LogResponseDefaultTypeInternal _LogResponse_default_instance_; - -inline constexpr GetVersionResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : platform_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - version_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - api_version_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetVersionResponse::GetVersionResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetVersionResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetVersionResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetVersionResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResourceRPCSubtypeDefaultTypeInternal _ResourceRPCSubtype_default_instance_; +PROTOBUF_CONSTEXPR ResourceRPCSubtypesRequest::ResourceRPCSubtypesRequest( + ::_pbi::ConstantInitialized){} +struct ResourceRPCSubtypesRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR ResourceRPCSubtypesRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ResourceRPCSubtypesRequestDefaultTypeInternal() {} union { - GetVersionResponse _instance; + ResourceRPCSubtypesRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetVersionResponseDefaultTypeInternal _GetVersionResponse_default_instance_; - template -PROTOBUF_CONSTEXPR GetVersionRequest::GetVersionRequest(::_pbi::ConstantInitialized) {} -struct GetVersionRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetVersionRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetVersionRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResourceRPCSubtypesRequestDefaultTypeInternal _ResourceRPCSubtypesRequest_default_instance_; +PROTOBUF_CONSTEXPR ResourceRPCSubtypesResponse::ResourceRPCSubtypesResponse( + ::_pbi::ConstantInitialized) + : resource_rpc_subtypes_(){} +struct ResourceRPCSubtypesResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ResourceRPCSubtypesResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ResourceRPCSubtypesResponseDefaultTypeInternal() {} union { - GetVersionRequest _instance; + ResourceRPCSubtypesResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetVersionRequestDefaultTypeInternal _GetVersionRequest_default_instance_; - template -PROTOBUF_CONSTEXPR GetSessionsRequest::GetSessionsRequest(::_pbi::ConstantInitialized) {} -struct GetSessionsRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetSessionsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetSessionsRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResourceRPCSubtypesResponseDefaultTypeInternal _ResourceRPCSubtypesResponse_default_instance_; +PROTOBUF_CONSTEXPR Operation::Operation( + ::_pbi::ConstantInitialized) + : id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , method_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , session_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , arguments_(nullptr) + , started_(nullptr){} +struct OperationDefaultTypeInternal { + PROTOBUF_CONSTEXPR OperationDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~OperationDefaultTypeInternal() {} union { - GetSessionsRequest _instance; + Operation _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetSessionsRequestDefaultTypeInternal _GetSessionsRequest_default_instance_; - template -PROTOBUF_CONSTEXPR GetOperationsRequest::GetOperationsRequest(::_pbi::ConstantInitialized) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OperationDefaultTypeInternal _Operation_default_instance_; +PROTOBUF_CONSTEXPR GetOperationsRequest::GetOperationsRequest( + ::_pbi::ConstantInitialized){} struct GetOperationsRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetOperationsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GetOperationsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~GetOperationsRequestDefaultTypeInternal() {} union { GetOperationsRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetOperationsRequestDefaultTypeInternal _GetOperationsRequest_default_instance_; - template -PROTOBUF_CONSTEXPR GetMachineStatusRequest::GetMachineStatusRequest(::_pbi::ConstantInitialized) {} -struct GetMachineStatusRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetMachineStatusRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetMachineStatusRequestDefaultTypeInternal() {} - union { - GetMachineStatusRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetMachineStatusRequestDefaultTypeInternal _GetMachineStatusRequest_default_instance_; - -inline constexpr GetCloudMetadataResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : robot_part_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - primary_org_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - location_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - machine_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - machine_part_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetCloudMetadataResponse::GetCloudMetadataResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetCloudMetadataResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetCloudMetadataResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetCloudMetadataResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetOperationsRequestDefaultTypeInternal _GetOperationsRequest_default_instance_; +PROTOBUF_CONSTEXPR GetOperationsResponse::GetOperationsResponse( + ::_pbi::ConstantInitialized) + : operations_(){} +struct GetOperationsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetOperationsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetOperationsResponseDefaultTypeInternal() {} union { - GetCloudMetadataResponse _instance; + GetOperationsResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetCloudMetadataResponseDefaultTypeInternal _GetCloudMetadataResponse_default_instance_; - template -PROTOBUF_CONSTEXPR GetCloudMetadataRequest::GetCloudMetadataRequest(::_pbi::ConstantInitialized) {} -struct GetCloudMetadataRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetCloudMetadataRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetCloudMetadataRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetOperationsResponseDefaultTypeInternal _GetOperationsResponse_default_instance_; +PROTOBUF_CONSTEXPR CancelOperationRequest::CancelOperationRequest( + ::_pbi::ConstantInitialized) + : id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct CancelOperationRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR CancelOperationRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CancelOperationRequestDefaultTypeInternal() {} union { - GetCloudMetadataRequest _instance; + CancelOperationRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetCloudMetadataRequestDefaultTypeInternal _GetCloudMetadataRequest_default_instance_; - template -PROTOBUF_CONSTEXPR CancelOperationResponse::CancelOperationResponse(::_pbi::ConstantInitialized) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CancelOperationRequestDefaultTypeInternal _CancelOperationRequest_default_instance_; +PROTOBUF_CONSTEXPR CancelOperationResponse::CancelOperationResponse( + ::_pbi::ConstantInitialized){} struct CancelOperationResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR CancelOperationResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR CancelOperationResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~CancelOperationResponseDefaultTypeInternal() {} union { CancelOperationResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CancelOperationResponseDefaultTypeInternal _CancelOperationResponse_default_instance_; - -inline constexpr CancelOperationRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR CancelOperationRequest::CancelOperationRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct CancelOperationRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR CancelOperationRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CancelOperationRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CancelOperationResponseDefaultTypeInternal _CancelOperationResponse_default_instance_; +PROTOBUF_CONSTEXPR BlockForOperationRequest::BlockForOperationRequest( + ::_pbi::ConstantInitialized) + : id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct BlockForOperationRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR BlockForOperationRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~BlockForOperationRequestDefaultTypeInternal() {} union { - CancelOperationRequest _instance; + BlockForOperationRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CancelOperationRequestDefaultTypeInternal _CancelOperationRequest_default_instance_; - template -PROTOBUF_CONSTEXPR BlockForOperationResponse::BlockForOperationResponse(::_pbi::ConstantInitialized) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BlockForOperationRequestDefaultTypeInternal _BlockForOperationRequest_default_instance_; +PROTOBUF_CONSTEXPR BlockForOperationResponse::BlockForOperationResponse( + ::_pbi::ConstantInitialized){} struct BlockForOperationResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR BlockForOperationResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR BlockForOperationResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~BlockForOperationResponseDefaultTypeInternal() {} union { BlockForOperationResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BlockForOperationResponseDefaultTypeInternal _BlockForOperationResponse_default_instance_; - -inline constexpr BlockForOperationRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR BlockForOperationRequest::BlockForOperationRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct BlockForOperationRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR BlockForOperationRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~BlockForOperationRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BlockForOperationResponseDefaultTypeInternal _BlockForOperationResponse_default_instance_; +PROTOBUF_CONSTEXPR PeerConnectionInfo::PeerConnectionInfo( + ::_pbi::ConstantInitialized) + : remote_address_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , local_address_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , type_(0) +{} +struct PeerConnectionInfoDefaultTypeInternal { + PROTOBUF_CONSTEXPR PeerConnectionInfoDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~PeerConnectionInfoDefaultTypeInternal() {} union { - BlockForOperationRequest _instance; + PeerConnectionInfo _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BlockForOperationRequestDefaultTypeInternal _BlockForOperationRequest_default_instance_; - -inline constexpr StreamStatusRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - resource_names_{}, - every_{nullptr} {} - -template -PROTOBUF_CONSTEXPR StreamStatusRequest::StreamStatusRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct StreamStatusRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR StreamStatusRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StreamStatusRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PeerConnectionInfoDefaultTypeInternal _PeerConnectionInfo_default_instance_; +PROTOBUF_CONSTEXPR Session::Session( + ::_pbi::ConstantInitialized) + : id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , peer_connection_info_(nullptr){} +struct SessionDefaultTypeInternal { + PROTOBUF_CONSTEXPR SessionDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SessionDefaultTypeInternal() {} union { - StreamStatusRequest _instance; + Session _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StreamStatusRequestDefaultTypeInternal _StreamStatusRequest_default_instance_; - -inline constexpr StopExtraParameters::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_{nullptr}, - params_{nullptr} {} - -template -PROTOBUF_CONSTEXPR StopExtraParameters::StopExtraParameters(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct StopExtraParametersDefaultTypeInternal { - PROTOBUF_CONSTEXPR StopExtraParametersDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StopExtraParametersDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SessionDefaultTypeInternal _Session_default_instance_; +PROTOBUF_CONSTEXPR GetSessionsRequest::GetSessionsRequest( + ::_pbi::ConstantInitialized){} +struct GetSessionsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetSessionsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetSessionsRequestDefaultTypeInternal() {} union { - StopExtraParameters _instance; + GetSessionsRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopExtraParametersDefaultTypeInternal _StopExtraParameters_default_instance_; - -inline constexpr Status::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_{nullptr}, - status_{nullptr}, - last_reconfigured_{nullptr} {} - -template -PROTOBUF_CONSTEXPR Status::Status(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct StatusDefaultTypeInternal { - PROTOBUF_CONSTEXPR StatusDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StatusDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetSessionsRequestDefaultTypeInternal _GetSessionsRequest_default_instance_; +PROTOBUF_CONSTEXPR GetSessionsResponse::GetSessionsResponse( + ::_pbi::ConstantInitialized) + : sessions_(){} +struct GetSessionsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetSessionsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetSessionsResponseDefaultTypeInternal() {} union { - Status _instance; + GetSessionsResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StatusDefaultTypeInternal _Status_default_instance_; - -inline constexpr StartSessionResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - heartbeat_window_{nullptr} {} - -template -PROTOBUF_CONSTEXPR StartSessionResponse::StartSessionResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct StartSessionResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR StartSessionResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StartSessionResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetSessionsResponseDefaultTypeInternal _GetSessionsResponse_default_instance_; +PROTOBUF_CONSTEXPR DiscoveryQuery::DiscoveryQuery( + ::_pbi::ConstantInitialized) + : subtype_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , model_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} +struct DiscoveryQueryDefaultTypeInternal { + PROTOBUF_CONSTEXPR DiscoveryQueryDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DiscoveryQueryDefaultTypeInternal() {} union { - StartSessionResponse _instance; + DiscoveryQuery _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StartSessionResponseDefaultTypeInternal _StartSessionResponse_default_instance_; - -inline constexpr Session::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - peer_connection_info_{nullptr} {} - -template -PROTOBUF_CONSTEXPR Session::Session(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct SessionDefaultTypeInternal { - PROTOBUF_CONSTEXPR SessionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SessionDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DiscoveryQueryDefaultTypeInternal _DiscoveryQuery_default_instance_; +PROTOBUF_CONSTEXPR Discovery::Discovery( + ::_pbi::ConstantInitialized) + : query_(nullptr) + , results_(nullptr){} +struct DiscoveryDefaultTypeInternal { + PROTOBUF_CONSTEXPR DiscoveryDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DiscoveryDefaultTypeInternal() {} union { - Session _instance; + Discovery _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SessionDefaultTypeInternal _Session_default_instance_; - -inline constexpr ResourceStatus::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - revision_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - error_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - name_{nullptr}, - last_updated_{nullptr}, - cloud_metadata_{nullptr}, - state_{static_cast< ::viam::robot::v1::ResourceStatus_State >(0)} {} - -template -PROTOBUF_CONSTEXPR ResourceStatus::ResourceStatus(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ResourceStatusDefaultTypeInternal { - PROTOBUF_CONSTEXPR ResourceStatusDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ResourceStatusDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DiscoveryDefaultTypeInternal _Discovery_default_instance_; +PROTOBUF_CONSTEXPR ModuleModel::ModuleModel( + ::_pbi::ConstantInitialized) + : module_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , model_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , api_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , from_local_module_(false){} +struct ModuleModelDefaultTypeInternal { + PROTOBUF_CONSTEXPR ModuleModelDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ModuleModelDefaultTypeInternal() {} union { - ResourceStatus _instance; + ModuleModel _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResourceStatusDefaultTypeInternal _ResourceStatus_default_instance_; - -inline constexpr ResourceRPCSubtype::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - proto_service_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - subtype_{nullptr} {} - -template -PROTOBUF_CONSTEXPR ResourceRPCSubtype::ResourceRPCSubtype(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ResourceRPCSubtypeDefaultTypeInternal { - PROTOBUF_CONSTEXPR ResourceRPCSubtypeDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ResourceRPCSubtypeDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ModuleModelDefaultTypeInternal _ModuleModel_default_instance_; +PROTOBUF_CONSTEXPR GetModelsFromModulesRequest::GetModelsFromModulesRequest( + ::_pbi::ConstantInitialized){} +struct GetModelsFromModulesRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetModelsFromModulesRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetModelsFromModulesRequestDefaultTypeInternal() {} union { - ResourceRPCSubtype _instance; + GetModelsFromModulesRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResourceRPCSubtypeDefaultTypeInternal _ResourceRPCSubtype_default_instance_; - -inline constexpr ResourceNamesResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : resources_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR ResourceNamesResponse::ResourceNamesResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ResourceNamesResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ResourceNamesResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ResourceNamesResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetModelsFromModulesRequestDefaultTypeInternal _GetModelsFromModulesRequest_default_instance_; +PROTOBUF_CONSTEXPR GetModelsFromModulesResponse::GetModelsFromModulesResponse( + ::_pbi::ConstantInitialized) + : models_(){} +struct GetModelsFromModulesResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetModelsFromModulesResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetModelsFromModulesResponseDefaultTypeInternal() {} union { - ResourceNamesResponse _instance; + GetModelsFromModulesResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResourceNamesResponseDefaultTypeInternal _ResourceNamesResponse_default_instance_; - -inline constexpr Operation::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - method_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - session_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - arguments_{nullptr}, - started_{nullptr} {} - -template -PROTOBUF_CONSTEXPR Operation::Operation(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct OperationDefaultTypeInternal { - PROTOBUF_CONSTEXPR OperationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~OperationDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetModelsFromModulesResponseDefaultTypeInternal _GetModelsFromModulesResponse_default_instance_; +PROTOBUF_CONSTEXPR DiscoverComponentsRequest::DiscoverComponentsRequest( + ::_pbi::ConstantInitialized) + : queries_(){} +struct DiscoverComponentsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR DiscoverComponentsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DiscoverComponentsRequestDefaultTypeInternal() {} union { - Operation _instance; + DiscoverComponentsRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OperationDefaultTypeInternal _Operation_default_instance_; - -inline constexpr GetStatusRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : resource_names_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetStatusRequest::GetStatusRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetStatusRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetStatusRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetStatusRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DiscoverComponentsRequestDefaultTypeInternal _DiscoverComponentsRequest_default_instance_; +PROTOBUF_CONSTEXPR DiscoverComponentsResponse::DiscoverComponentsResponse( + ::_pbi::ConstantInitialized) + : discovery_(){} +struct DiscoverComponentsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR DiscoverComponentsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DiscoverComponentsResponseDefaultTypeInternal() {} union { - GetStatusRequest _instance; + DiscoverComponentsResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetStatusRequestDefaultTypeInternal _GetStatusRequest_default_instance_; - -inline constexpr DiscoveryQuery::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - subtype_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - model_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR DiscoveryQuery::DiscoveryQuery(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct DiscoveryQueryDefaultTypeInternal { - PROTOBUF_CONSTEXPR DiscoveryQueryDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~DiscoveryQueryDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DiscoverComponentsResponseDefaultTypeInternal _DiscoverComponentsResponse_default_instance_; +PROTOBUF_CONSTEXPR Status::Status( + ::_pbi::ConstantInitialized) + : name_(nullptr) + , status_(nullptr) + , last_reconfigured_(nullptr){} +struct StatusDefaultTypeInternal { + PROTOBUF_CONSTEXPR StatusDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StatusDefaultTypeInternal() {} union { - DiscoveryQuery _instance; + Status _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DiscoveryQueryDefaultTypeInternal _DiscoveryQuery_default_instance_; - -inline constexpr ConfigStatus::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - revision_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - last_updated_{nullptr} {} - -template -PROTOBUF_CONSTEXPR ConfigStatus::ConfigStatus(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ConfigStatusDefaultTypeInternal { - PROTOBUF_CONSTEXPR ConfigStatusDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ConfigStatusDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StatusDefaultTypeInternal _Status_default_instance_; +PROTOBUF_CONSTEXPR GetStatusRequest::GetStatusRequest( + ::_pbi::ConstantInitialized) + : resource_names_(){} +struct GetStatusRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetStatusRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetStatusRequestDefaultTypeInternal() {} union { - ConfigStatus _instance; + GetStatusRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConfigStatusDefaultTypeInternal _ConfigStatus_default_instance_; - -inline constexpr TransformPoseResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - pose_{nullptr} {} - -template -PROTOBUF_CONSTEXPR TransformPoseResponse::TransformPoseResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct TransformPoseResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR TransformPoseResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TransformPoseResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetStatusRequestDefaultTypeInternal _GetStatusRequest_default_instance_; +PROTOBUF_CONSTEXPR GetStatusResponse::GetStatusResponse( + ::_pbi::ConstantInitialized) + : status_(){} +struct GetStatusResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetStatusResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetStatusResponseDefaultTypeInternal() {} union { - TransformPoseResponse _instance; + GetStatusResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TransformPoseResponseDefaultTypeInternal _TransformPoseResponse_default_instance_; - -inline constexpr StreamStatusResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : status_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR StreamStatusResponse::StreamStatusResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetStatusResponseDefaultTypeInternal _GetStatusResponse_default_instance_; +PROTOBUF_CONSTEXPR StreamStatusRequest::StreamStatusRequest( + ::_pbi::ConstantInitialized) + : resource_names_() + , every_(nullptr){} +struct StreamStatusRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR StreamStatusRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StreamStatusRequestDefaultTypeInternal() {} + union { + StreamStatusRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StreamStatusRequestDefaultTypeInternal _StreamStatusRequest_default_instance_; +PROTOBUF_CONSTEXPR StreamStatusResponse::StreamStatusResponse( + ::_pbi::ConstantInitialized) + : status_(){} struct StreamStatusResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR StreamStatusResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR StreamStatusResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~StreamStatusResponseDefaultTypeInternal() {} union { StreamStatusResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StreamStatusResponseDefaultTypeInternal _StreamStatusResponse_default_instance_; - -inline constexpr StopAllRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : extra_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR StopAllRequest::StopAllRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StreamStatusResponseDefaultTypeInternal _StreamStatusResponse_default_instance_; +PROTOBUF_CONSTEXPR StopExtraParameters::StopExtraParameters( + ::_pbi::ConstantInitialized) + : name_(nullptr) + , params_(nullptr){} +struct StopExtraParametersDefaultTypeInternal { + PROTOBUF_CONSTEXPR StopExtraParametersDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StopExtraParametersDefaultTypeInternal() {} + union { + StopExtraParameters _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopExtraParametersDefaultTypeInternal _StopExtraParameters_default_instance_; +PROTOBUF_CONSTEXPR StopAllRequest::StopAllRequest( + ::_pbi::ConstantInitialized) + : extra_(){} struct StopAllRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR StopAllRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR StopAllRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~StopAllRequestDefaultTypeInternal() {} union { StopAllRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopAllRequestDefaultTypeInternal _StopAllRequest_default_instance_; - -inline constexpr ResourceRPCSubtypesResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : resource_rpc_subtypes_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR ResourceRPCSubtypesResponse::ResourceRPCSubtypesResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ResourceRPCSubtypesResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ResourceRPCSubtypesResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ResourceRPCSubtypesResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopAllRequestDefaultTypeInternal _StopAllRequest_default_instance_; +PROTOBUF_CONSTEXPR StopAllResponse::StopAllResponse( + ::_pbi::ConstantInitialized){} +struct StopAllResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR StopAllResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StopAllResponseDefaultTypeInternal() {} union { - ResourceRPCSubtypesResponse _instance; + StopAllResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResourceRPCSubtypesResponseDefaultTypeInternal _ResourceRPCSubtypesResponse_default_instance_; - -inline constexpr LogRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : logs_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR LogRequest::LogRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopAllResponseDefaultTypeInternal _StopAllResponse_default_instance_; +PROTOBUF_CONSTEXPR StartSessionRequest::StartSessionRequest( + ::_pbi::ConstantInitialized) + : resume_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct StartSessionRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR StartSessionRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StartSessionRequestDefaultTypeInternal() {} + union { + StartSessionRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StartSessionRequestDefaultTypeInternal _StartSessionRequest_default_instance_; +PROTOBUF_CONSTEXPR StartSessionResponse::StartSessionResponse( + ::_pbi::ConstantInitialized) + : id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , heartbeat_window_(nullptr){} +struct StartSessionResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR StartSessionResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StartSessionResponseDefaultTypeInternal() {} + union { + StartSessionResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StartSessionResponseDefaultTypeInternal _StartSessionResponse_default_instance_; +PROTOBUF_CONSTEXPR SendSessionHeartbeatRequest::SendSessionHeartbeatRequest( + ::_pbi::ConstantInitialized) + : id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct SendSessionHeartbeatRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SendSessionHeartbeatRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SendSessionHeartbeatRequestDefaultTypeInternal() {} + union { + SendSessionHeartbeatRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SendSessionHeartbeatRequestDefaultTypeInternal _SendSessionHeartbeatRequest_default_instance_; +PROTOBUF_CONSTEXPR SendSessionHeartbeatResponse::SendSessionHeartbeatResponse( + ::_pbi::ConstantInitialized){} +struct SendSessionHeartbeatResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR SendSessionHeartbeatResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SendSessionHeartbeatResponseDefaultTypeInternal() {} + union { + SendSessionHeartbeatResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SendSessionHeartbeatResponseDefaultTypeInternal _SendSessionHeartbeatResponse_default_instance_; +PROTOBUF_CONSTEXPR LogRequest::LogRequest( + ::_pbi::ConstantInitialized) + : logs_(){} struct LogRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR LogRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR LogRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~LogRequestDefaultTypeInternal() {} union { LogRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LogRequestDefaultTypeInternal _LogRequest_default_instance_; - -inline constexpr GetStatusResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : status_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetStatusResponse::GetStatusResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetStatusResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetStatusResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetStatusResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LogRequestDefaultTypeInternal _LogRequest_default_instance_; +PROTOBUF_CONSTEXPR LogResponse::LogResponse( + ::_pbi::ConstantInitialized){} +struct LogResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR LogResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~LogResponseDefaultTypeInternal() {} union { - GetStatusResponse _instance; + LogResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetStatusResponseDefaultTypeInternal _GetStatusResponse_default_instance_; - -inline constexpr GetSessionsResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : sessions_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetSessionsResponse::GetSessionsResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetSessionsResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetSessionsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetSessionsResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LogResponseDefaultTypeInternal _LogResponse_default_instance_; +PROTOBUF_CONSTEXPR GetCloudMetadataRequest::GetCloudMetadataRequest( + ::_pbi::ConstantInitialized){} +struct GetCloudMetadataRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetCloudMetadataRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetCloudMetadataRequestDefaultTypeInternal() {} union { - GetSessionsResponse _instance; + GetCloudMetadataRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetSessionsResponseDefaultTypeInternal _GetSessionsResponse_default_instance_; - -inline constexpr GetOperationsResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : operations_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetOperationsResponse::GetOperationsResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetOperationsResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetOperationsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetOperationsResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetCloudMetadataRequestDefaultTypeInternal _GetCloudMetadataRequest_default_instance_; +PROTOBUF_CONSTEXPR GetCloudMetadataResponse::GetCloudMetadataResponse( + ::_pbi::ConstantInitialized) + : robot_part_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , primary_org_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , location_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , machine_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , machine_part_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct GetCloudMetadataResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetCloudMetadataResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetCloudMetadataResponseDefaultTypeInternal() {} union { - GetOperationsResponse _instance; + GetCloudMetadataResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetOperationsResponseDefaultTypeInternal _GetOperationsResponse_default_instance_; - -inline constexpr GetMachineStatusResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - resources_{}, - config_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetMachineStatusResponse::GetMachineStatusResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetMachineStatusResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetMachineStatusResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetMachineStatusResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetCloudMetadataResponseDefaultTypeInternal _GetCloudMetadataResponse_default_instance_; +PROTOBUF_CONSTEXPR RestartModuleRequest::RestartModuleRequest( + ::_pbi::ConstantInitialized) + : _oneof_case_{}{} +struct RestartModuleRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR RestartModuleRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RestartModuleRequestDefaultTypeInternal() {} union { - GetMachineStatusResponse _instance; + RestartModuleRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetMachineStatusResponseDefaultTypeInternal _GetMachineStatusResponse_default_instance_; - -inline constexpr Discovery::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - query_{nullptr}, - results_{nullptr} {} - -template -PROTOBUF_CONSTEXPR Discovery::Discovery(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct DiscoveryDefaultTypeInternal { - PROTOBUF_CONSTEXPR DiscoveryDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~DiscoveryDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RestartModuleRequestDefaultTypeInternal _RestartModuleRequest_default_instance_; +PROTOBUF_CONSTEXPR RestartModuleResponse::RestartModuleResponse( + ::_pbi::ConstantInitialized){} +struct RestartModuleResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR RestartModuleResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RestartModuleResponseDefaultTypeInternal() {} union { - Discovery _instance; + RestartModuleResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DiscoveryDefaultTypeInternal _Discovery_default_instance_; - -inline constexpr DiscoverComponentsRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : queries_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR DiscoverComponentsRequest::DiscoverComponentsRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct DiscoverComponentsRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR DiscoverComponentsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~DiscoverComponentsRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RestartModuleResponseDefaultTypeInternal _RestartModuleResponse_default_instance_; +PROTOBUF_CONSTEXPR ShutdownRequest::ShutdownRequest( + ::_pbi::ConstantInitialized){} +struct ShutdownRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR ShutdownRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ShutdownRequestDefaultTypeInternal() {} union { - DiscoverComponentsRequest _instance; + ShutdownRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DiscoverComponentsRequestDefaultTypeInternal _DiscoverComponentsRequest_default_instance_; - -inline constexpr DiscoverComponentsResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : discovery_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR DiscoverComponentsResponse::DiscoverComponentsResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct DiscoverComponentsResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR DiscoverComponentsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~DiscoverComponentsResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ShutdownRequestDefaultTypeInternal _ShutdownRequest_default_instance_; +PROTOBUF_CONSTEXPR ShutdownResponse::ShutdownResponse( + ::_pbi::ConstantInitialized){} +struct ShutdownResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ShutdownResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ShutdownResponseDefaultTypeInternal() {} union { - DiscoverComponentsResponse _instance; + ShutdownResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DiscoverComponentsResponseDefaultTypeInternal _DiscoverComponentsResponse_default_instance_; - -inline constexpr TransformPoseRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - supplemental_transforms_{}, - destination_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - source_{nullptr} {} - -template -PROTOBUF_CONSTEXPR TransformPoseRequest::TransformPoseRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct TransformPoseRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR TransformPoseRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TransformPoseRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ShutdownResponseDefaultTypeInternal _ShutdownResponse_default_instance_; +PROTOBUF_CONSTEXPR GetMachineStatusRequest::GetMachineStatusRequest( + ::_pbi::ConstantInitialized){} +struct GetMachineStatusRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetMachineStatusRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetMachineStatusRequestDefaultTypeInternal() {} union { - TransformPoseRequest _instance; + GetMachineStatusRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TransformPoseRequestDefaultTypeInternal _TransformPoseRequest_default_instance_; - -inline constexpr FrameSystemConfigRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : supplemental_transforms_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR FrameSystemConfigRequest::FrameSystemConfigRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct FrameSystemConfigRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR FrameSystemConfigRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~FrameSystemConfigRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetMachineStatusRequestDefaultTypeInternal _GetMachineStatusRequest_default_instance_; +PROTOBUF_CONSTEXPR GetMachineStatusResponse::GetMachineStatusResponse( + ::_pbi::ConstantInitialized) + : resources_() + , config_(nullptr) + , state_(0) +{} +struct GetMachineStatusResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetMachineStatusResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetMachineStatusResponseDefaultTypeInternal() {} union { - FrameSystemConfigRequest _instance; + GetMachineStatusResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FrameSystemConfigRequestDefaultTypeInternal _FrameSystemConfigRequest_default_instance_; - -inline constexpr FrameSystemConfig::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - frame_{nullptr}, - kinematics_{nullptr} {} - -template -PROTOBUF_CONSTEXPR FrameSystemConfig::FrameSystemConfig(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct FrameSystemConfigDefaultTypeInternal { - PROTOBUF_CONSTEXPR FrameSystemConfigDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~FrameSystemConfigDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetMachineStatusResponseDefaultTypeInternal _GetMachineStatusResponse_default_instance_; +PROTOBUF_CONSTEXPR ResourceStatus::ResourceStatus( + ::_pbi::ConstantInitialized) + : revision_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , error_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , name_(nullptr) + , last_updated_(nullptr) + , cloud_metadata_(nullptr) + , state_(0) +{} +struct ResourceStatusDefaultTypeInternal { + PROTOBUF_CONSTEXPR ResourceStatusDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ResourceStatusDefaultTypeInternal() {} union { - FrameSystemConfig _instance; + ResourceStatus _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FrameSystemConfigDefaultTypeInternal _FrameSystemConfig_default_instance_; - -inline constexpr FrameSystemConfigResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : frame_system_configs_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR FrameSystemConfigResponse::FrameSystemConfigResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct FrameSystemConfigResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR FrameSystemConfigResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~FrameSystemConfigResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResourceStatusDefaultTypeInternal _ResourceStatus_default_instance_; +PROTOBUF_CONSTEXPR ConfigStatus::ConfigStatus( + ::_pbi::ConstantInitialized) + : revision_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , last_updated_(nullptr){} +struct ConfigStatusDefaultTypeInternal { + PROTOBUF_CONSTEXPR ConfigStatusDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ConfigStatusDefaultTypeInternal() {} union { - FrameSystemConfigResponse _instance; + ConfigStatus _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FrameSystemConfigResponseDefaultTypeInternal _FrameSystemConfigResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConfigStatusDefaultTypeInternal _ConfigStatus_default_instance_; +PROTOBUF_CONSTEXPR GetVersionRequest::GetVersionRequest( + ::_pbi::ConstantInitialized){} +struct GetVersionRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetVersionRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetVersionRequestDefaultTypeInternal() {} + union { + GetVersionRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetVersionRequestDefaultTypeInternal _GetVersionRequest_default_instance_; +PROTOBUF_CONSTEXPR GetVersionResponse::GetVersionResponse( + ::_pbi::ConstantInitialized) + : platform_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , version_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , api_version_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct GetVersionResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetVersionResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetVersionResponseDefaultTypeInternal() {} + union { + GetVersionResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetVersionResponseDefaultTypeInternal _GetVersionResponse_default_instance_; } // namespace v1 } // namespace robot } // namespace viam -static ::_pb::Metadata file_level_metadata_robot_2fv1_2frobot_2eproto[53]; -static const ::_pb::EnumDescriptor* file_level_enum_descriptors_robot_2fv1_2frobot_2eproto[2]; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_robot_2fv1_2frobot_2eproto = nullptr; -const ::uint32_t TableStruct_robot_2fv1_2frobot_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::FrameSystemConfig, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::FrameSystemConfig, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::FrameSystemConfig, _impl_.frame_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::FrameSystemConfig, _impl_.kinematics_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::FrameSystemConfigRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::FrameSystemConfigRequest, _impl_.supplemental_transforms_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::FrameSystemConfigResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::FrameSystemConfigResponse, _impl_.frame_system_configs_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::TransformPoseRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::TransformPoseRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::TransformPoseRequest, _impl_.source_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::TransformPoseRequest, _impl_.destination_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::TransformPoseRequest, _impl_.supplemental_transforms_), - 0, - ~0u, - ~0u, - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::TransformPoseResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::TransformPoseResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::TransformPoseResponse, _impl_.pose_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::TransformPCDRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::TransformPCDRequest, _impl_.point_cloud_pcd_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::TransformPCDRequest, _impl_.source_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::TransformPCDRequest, _impl_.destination_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::TransformPCDResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::TransformPCDResponse, _impl_.point_cloud_pcd_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ResourceNamesRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ResourceNamesResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ResourceNamesResponse, _impl_.resources_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ResourceRPCSubtype, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ResourceRPCSubtype, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ResourceRPCSubtype, _impl_.subtype_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ResourceRPCSubtype, _impl_.proto_service_), - 0, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ResourceRPCSubtypesRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ResourceRPCSubtypesResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ResourceRPCSubtypesResponse, _impl_.resource_rpc_subtypes_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::Operation, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::Operation, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::Operation, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::Operation, _impl_.method_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::Operation, _impl_.arguments_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::Operation, _impl_.started_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::Operation, _impl_.session_id_), - ~0u, - ~0u, - 1, - 2, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetOperationsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetOperationsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetOperationsResponse, _impl_.operations_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::CancelOperationRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::CancelOperationRequest, _impl_.id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::CancelOperationResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::BlockForOperationRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::BlockForOperationRequest, _impl_.id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::BlockForOperationResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::PeerConnectionInfo, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::PeerConnectionInfo, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::PeerConnectionInfo, _impl_.type_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::PeerConnectionInfo, _impl_.remote_address_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::PeerConnectionInfo, _impl_.local_address_), - ~0u, - 0, - 1, - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::Session, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::Session, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::Session, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::Session, _impl_.peer_connection_info_), - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetSessionsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetSessionsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetSessionsResponse, _impl_.sessions_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::DiscoveryQuery, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::DiscoveryQuery, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::DiscoveryQuery, _impl_.subtype_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::DiscoveryQuery, _impl_.model_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::DiscoveryQuery, _impl_.extra_), - ~0u, - ~0u, - 0, - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::Discovery, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::Discovery, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::Discovery, _impl_.query_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::Discovery, _impl_.results_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::DiscoverComponentsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::DiscoverComponentsRequest, _impl_.queries_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::DiscoverComponentsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::DiscoverComponentsResponse, _impl_.discovery_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::Status, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::Status, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::Status, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::Status, _impl_.status_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::Status, _impl_.last_reconfigured_), - 0, - 1, - 2, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetStatusRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetStatusRequest, _impl_.resource_names_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetStatusResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetStatusResponse, _impl_.status_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::StreamStatusRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::StreamStatusRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::StreamStatusRequest, _impl_.resource_names_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::StreamStatusRequest, _impl_.every_), - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::StreamStatusResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::StreamStatusResponse, _impl_.status_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::StopExtraParameters, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::StopExtraParameters, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::StopExtraParameters, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::StopExtraParameters, _impl_.params_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::StopAllRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::StopAllRequest, _impl_.extra_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::StopAllResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::StartSessionRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::StartSessionRequest, _impl_.resume_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::StartSessionResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::StartSessionResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::StartSessionResponse, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::StartSessionResponse, _impl_.heartbeat_window_), - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::SendSessionHeartbeatRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::SendSessionHeartbeatRequest, _impl_.id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::SendSessionHeartbeatResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::LogRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::LogRequest, _impl_.logs_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::LogResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetCloudMetadataRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetCloudMetadataResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetCloudMetadataResponse, _impl_.robot_part_id_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetCloudMetadataResponse, _impl_.primary_org_id_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetCloudMetadataResponse, _impl_.location_id_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetCloudMetadataResponse, _impl_.machine_id_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetCloudMetadataResponse, _impl_.machine_part_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::RestartModuleRequest, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::RestartModuleRequest, _impl_._oneof_case_[0]), - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::RestartModuleRequest, _impl_.id_or_name_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::RestartModuleResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ShutdownRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ShutdownResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetMachineStatusRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetMachineStatusResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetMachineStatusResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetMachineStatusResponse, _impl_.resources_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetMachineStatusResponse, _impl_.config_), - ~0u, - 0, - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ResourceStatus, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ResourceStatus, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ResourceStatus, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ResourceStatus, _impl_.state_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ResourceStatus, _impl_.last_updated_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ResourceStatus, _impl_.revision_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ResourceStatus, _impl_.error_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ResourceStatus, _impl_.cloud_metadata_), - 0, - ~0u, - 1, - ~0u, - ~0u, - 2, - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ConfigStatus, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ConfigStatus, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ConfigStatus, _impl_.revision_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ConfigStatus, _impl_.last_updated_), - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetVersionRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetVersionResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetVersionResponse, _impl_.platform_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetVersionResponse, _impl_.version_), - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetVersionResponse, _impl_.api_version_), -}; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, 10, -1, sizeof(::viam::robot::v1::FrameSystemConfig)}, - {12, -1, -1, sizeof(::viam::robot::v1::FrameSystemConfigRequest)}, - {21, -1, -1, sizeof(::viam::robot::v1::FrameSystemConfigResponse)}, - {30, 41, -1, sizeof(::viam::robot::v1::TransformPoseRequest)}, - {44, 53, -1, sizeof(::viam::robot::v1::TransformPoseResponse)}, - {54, -1, -1, sizeof(::viam::robot::v1::TransformPCDRequest)}, - {65, -1, -1, sizeof(::viam::robot::v1::TransformPCDResponse)}, - {74, -1, -1, sizeof(::viam::robot::v1::ResourceNamesRequest)}, - {82, -1, -1, sizeof(::viam::robot::v1::ResourceNamesResponse)}, - {91, 101, -1, sizeof(::viam::robot::v1::ResourceRPCSubtype)}, - {103, -1, -1, sizeof(::viam::robot::v1::ResourceRPCSubtypesRequest)}, - {111, -1, -1, sizeof(::viam::robot::v1::ResourceRPCSubtypesResponse)}, - {120, 133, -1, sizeof(::viam::robot::v1::Operation)}, - {138, -1, -1, sizeof(::viam::robot::v1::GetOperationsRequest)}, - {146, -1, -1, sizeof(::viam::robot::v1::GetOperationsResponse)}, - {155, -1, -1, sizeof(::viam::robot::v1::CancelOperationRequest)}, - {164, -1, -1, sizeof(::viam::robot::v1::CancelOperationResponse)}, - {172, -1, -1, sizeof(::viam::robot::v1::BlockForOperationRequest)}, - {181, -1, -1, sizeof(::viam::robot::v1::BlockForOperationResponse)}, - {189, 200, -1, sizeof(::viam::robot::v1::PeerConnectionInfo)}, - {203, 213, -1, sizeof(::viam::robot::v1::Session)}, - {215, -1, -1, sizeof(::viam::robot::v1::GetSessionsRequest)}, - {223, -1, -1, sizeof(::viam::robot::v1::GetSessionsResponse)}, - {232, 243, -1, sizeof(::viam::robot::v1::DiscoveryQuery)}, - {246, 256, -1, sizeof(::viam::robot::v1::Discovery)}, - {258, -1, -1, sizeof(::viam::robot::v1::DiscoverComponentsRequest)}, - {267, -1, -1, sizeof(::viam::robot::v1::DiscoverComponentsResponse)}, - {276, 287, -1, sizeof(::viam::robot::v1::Status)}, - {290, -1, -1, sizeof(::viam::robot::v1::GetStatusRequest)}, - {299, -1, -1, sizeof(::viam::robot::v1::GetStatusResponse)}, - {308, 318, -1, sizeof(::viam::robot::v1::StreamStatusRequest)}, - {320, -1, -1, sizeof(::viam::robot::v1::StreamStatusResponse)}, - {329, 339, -1, sizeof(::viam::robot::v1::StopExtraParameters)}, - {341, -1, -1, sizeof(::viam::robot::v1::StopAllRequest)}, - {350, -1, -1, sizeof(::viam::robot::v1::StopAllResponse)}, - {358, -1, -1, sizeof(::viam::robot::v1::StartSessionRequest)}, - {367, 377, -1, sizeof(::viam::robot::v1::StartSessionResponse)}, - {379, -1, -1, sizeof(::viam::robot::v1::SendSessionHeartbeatRequest)}, - {388, -1, -1, sizeof(::viam::robot::v1::SendSessionHeartbeatResponse)}, - {396, -1, -1, sizeof(::viam::robot::v1::LogRequest)}, - {405, -1, -1, sizeof(::viam::robot::v1::LogResponse)}, - {413, -1, -1, sizeof(::viam::robot::v1::GetCloudMetadataRequest)}, - {421, -1, -1, sizeof(::viam::robot::v1::GetCloudMetadataResponse)}, - {434, -1, -1, sizeof(::viam::robot::v1::RestartModuleRequest)}, - {445, -1, -1, sizeof(::viam::robot::v1::RestartModuleResponse)}, - {453, -1, -1, sizeof(::viam::robot::v1::ShutdownRequest)}, - {461, -1, -1, sizeof(::viam::robot::v1::ShutdownResponse)}, - {469, -1, -1, sizeof(::viam::robot::v1::GetMachineStatusRequest)}, - {477, 487, -1, sizeof(::viam::robot::v1::GetMachineStatusResponse)}, - {489, 503, -1, sizeof(::viam::robot::v1::ResourceStatus)}, - {509, 519, -1, sizeof(::viam::robot::v1::ConfigStatus)}, - {521, -1, -1, sizeof(::viam::robot::v1::GetVersionRequest)}, - {529, -1, -1, sizeof(::viam::robot::v1::GetVersionResponse)}, +static ::_pb::Metadata file_level_metadata_robot_2fv1_2frobot_2eproto[58]; +static const ::_pb::EnumDescriptor* file_level_enum_descriptors_robot_2fv1_2frobot_2eproto[3]; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_robot_2fv1_2frobot_2eproto = nullptr; + +const uint32_t TableStruct_robot_2fv1_2frobot_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::TunnelRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::TunnelRequest, destination_port_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::TunnelRequest, data_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::TunnelResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::TunnelResponse, data_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::FrameSystemConfig, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::FrameSystemConfig, frame_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::FrameSystemConfig, kinematics_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::FrameSystemConfigRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::FrameSystemConfigRequest, supplemental_transforms_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::FrameSystemConfigResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::FrameSystemConfigResponse, frame_system_configs_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::TransformPoseRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::TransformPoseRequest, source_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::TransformPoseRequest, destination_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::TransformPoseRequest, supplemental_transforms_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::TransformPoseResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::TransformPoseResponse, pose_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::TransformPCDRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::TransformPCDRequest, point_cloud_pcd_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::TransformPCDRequest, source_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::TransformPCDRequest, destination_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::TransformPCDResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::TransformPCDResponse, point_cloud_pcd_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ResourceNamesRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ResourceNamesResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ResourceNamesResponse, resources_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ResourceRPCSubtype, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ResourceRPCSubtype, subtype_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ResourceRPCSubtype, proto_service_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ResourceRPCSubtypesRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ResourceRPCSubtypesResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ResourceRPCSubtypesResponse, resource_rpc_subtypes_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::Operation, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::Operation, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::Operation, id_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::Operation, method_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::Operation, arguments_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::Operation, started_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::Operation, session_id_), + ~0u, + ~0u, + ~0u, + ~0u, + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetOperationsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetOperationsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetOperationsResponse, operations_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::CancelOperationRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::CancelOperationRequest, id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::CancelOperationResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::BlockForOperationRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::BlockForOperationRequest, id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::BlockForOperationResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::PeerConnectionInfo, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::PeerConnectionInfo, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::PeerConnectionInfo, type_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::PeerConnectionInfo, remote_address_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::PeerConnectionInfo, local_address_), + ~0u, + 0, + 1, + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::Session, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::Session, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::Session, id_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::Session, peer_connection_info_), + ~0u, + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetSessionsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetSessionsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetSessionsResponse, sessions_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::DiscoveryQuery, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::DiscoveryQuery, subtype_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::DiscoveryQuery, model_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::DiscoveryQuery, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::Discovery, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::Discovery, query_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::Discovery, results_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ModuleModel, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ModuleModel, module_name_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ModuleModel, model_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ModuleModel, api_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ModuleModel, from_local_module_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetModelsFromModulesRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetModelsFromModulesResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetModelsFromModulesResponse, models_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::DiscoverComponentsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::DiscoverComponentsRequest, queries_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::DiscoverComponentsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::DiscoverComponentsResponse, discovery_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::Status, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~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_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetStatusRequest, resource_names_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetStatusResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetStatusResponse, status_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::StreamStatusRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::StreamStatusRequest, resource_names_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::StreamStatusRequest, every_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::StreamStatusResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::StreamStatusResponse, status_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::StopExtraParameters, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::StopExtraParameters, name_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::StopExtraParameters, params_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::StopAllRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::StopAllRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::StopAllResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::StartSessionRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::StartSessionRequest, resume_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::StartSessionResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::StartSessionResponse, id_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::StartSessionResponse, heartbeat_window_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::SendSessionHeartbeatRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::SendSessionHeartbeatRequest, id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::SendSessionHeartbeatResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::LogRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::LogRequest, logs_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::LogResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetCloudMetadataRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetCloudMetadataResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetCloudMetadataResponse, robot_part_id_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetCloudMetadataResponse, primary_org_id_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetCloudMetadataResponse, location_id_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetCloudMetadataResponse, machine_id_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetCloudMetadataResponse, machine_part_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::RestartModuleRequest, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::RestartModuleRequest, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::RestartModuleRequest, id_or_name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::RestartModuleResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ShutdownRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ShutdownResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetMachineStatusRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetMachineStatusResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetMachineStatusResponse, resources_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetMachineStatusResponse, config_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetMachineStatusResponse, state_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ResourceStatus, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ResourceStatus, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ResourceStatus, name_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ResourceStatus, state_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ResourceStatus, last_updated_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ResourceStatus, revision_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ResourceStatus, error_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ResourceStatus, cloud_metadata_), + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ConfigStatus, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ConfigStatus, revision_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::ConfigStatus, last_updated_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetVersionRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetVersionResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetVersionResponse, platform_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetVersionResponse, version_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetVersionResponse, api_version_), +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::robot::v1::TunnelRequest)}, + { 8, -1, -1, sizeof(::viam::robot::v1::TunnelResponse)}, + { 15, -1, -1, sizeof(::viam::robot::v1::FrameSystemConfig)}, + { 23, -1, -1, sizeof(::viam::robot::v1::FrameSystemConfigRequest)}, + { 30, -1, -1, sizeof(::viam::robot::v1::FrameSystemConfigResponse)}, + { 37, -1, -1, sizeof(::viam::robot::v1::TransformPoseRequest)}, + { 46, -1, -1, sizeof(::viam::robot::v1::TransformPoseResponse)}, + { 53, -1, -1, sizeof(::viam::robot::v1::TransformPCDRequest)}, + { 62, -1, -1, sizeof(::viam::robot::v1::TransformPCDResponse)}, + { 69, -1, -1, sizeof(::viam::robot::v1::ResourceNamesRequest)}, + { 75, -1, -1, sizeof(::viam::robot::v1::ResourceNamesResponse)}, + { 82, -1, -1, sizeof(::viam::robot::v1::ResourceRPCSubtype)}, + { 90, -1, -1, sizeof(::viam::robot::v1::ResourceRPCSubtypesRequest)}, + { 96, -1, -1, sizeof(::viam::robot::v1::ResourceRPCSubtypesResponse)}, + { 103, 114, -1, sizeof(::viam::robot::v1::Operation)}, + { 119, -1, -1, sizeof(::viam::robot::v1::GetOperationsRequest)}, + { 125, -1, -1, sizeof(::viam::robot::v1::GetOperationsResponse)}, + { 132, -1, -1, sizeof(::viam::robot::v1::CancelOperationRequest)}, + { 139, -1, -1, sizeof(::viam::robot::v1::CancelOperationResponse)}, + { 145, -1, -1, sizeof(::viam::robot::v1::BlockForOperationRequest)}, + { 152, -1, -1, sizeof(::viam::robot::v1::BlockForOperationResponse)}, + { 158, 167, -1, sizeof(::viam::robot::v1::PeerConnectionInfo)}, + { 170, 178, -1, sizeof(::viam::robot::v1::Session)}, + { 180, -1, -1, sizeof(::viam::robot::v1::GetSessionsRequest)}, + { 186, -1, -1, sizeof(::viam::robot::v1::GetSessionsResponse)}, + { 193, -1, -1, sizeof(::viam::robot::v1::DiscoveryQuery)}, + { 202, -1, -1, sizeof(::viam::robot::v1::Discovery)}, + { 210, -1, -1, sizeof(::viam::robot::v1::ModuleModel)}, + { 220, -1, -1, sizeof(::viam::robot::v1::GetModelsFromModulesRequest)}, + { 226, -1, -1, sizeof(::viam::robot::v1::GetModelsFromModulesResponse)}, + { 233, -1, -1, sizeof(::viam::robot::v1::DiscoverComponentsRequest)}, + { 240, -1, -1, sizeof(::viam::robot::v1::DiscoverComponentsResponse)}, + { 247, -1, -1, sizeof(::viam::robot::v1::Status)}, + { 256, -1, -1, sizeof(::viam::robot::v1::GetStatusRequest)}, + { 263, -1, -1, sizeof(::viam::robot::v1::GetStatusResponse)}, + { 270, -1, -1, sizeof(::viam::robot::v1::StreamStatusRequest)}, + { 278, -1, -1, sizeof(::viam::robot::v1::StreamStatusResponse)}, + { 285, -1, -1, sizeof(::viam::robot::v1::StopExtraParameters)}, + { 293, -1, -1, sizeof(::viam::robot::v1::StopAllRequest)}, + { 300, -1, -1, sizeof(::viam::robot::v1::StopAllResponse)}, + { 306, -1, -1, sizeof(::viam::robot::v1::StartSessionRequest)}, + { 313, -1, -1, sizeof(::viam::robot::v1::StartSessionResponse)}, + { 321, -1, -1, sizeof(::viam::robot::v1::SendSessionHeartbeatRequest)}, + { 328, -1, -1, sizeof(::viam::robot::v1::SendSessionHeartbeatResponse)}, + { 334, -1, -1, sizeof(::viam::robot::v1::LogRequest)}, + { 341, -1, -1, sizeof(::viam::robot::v1::LogResponse)}, + { 347, -1, -1, sizeof(::viam::robot::v1::GetCloudMetadataRequest)}, + { 353, -1, -1, sizeof(::viam::robot::v1::GetCloudMetadataResponse)}, + { 364, -1, -1, sizeof(::viam::robot::v1::RestartModuleRequest)}, + { 373, -1, -1, sizeof(::viam::robot::v1::RestartModuleResponse)}, + { 379, -1, -1, sizeof(::viam::robot::v1::ShutdownRequest)}, + { 385, -1, -1, sizeof(::viam::robot::v1::ShutdownResponse)}, + { 391, -1, -1, sizeof(::viam::robot::v1::GetMachineStatusRequest)}, + { 397, -1, -1, sizeof(::viam::robot::v1::GetMachineStatusResponse)}, + { 406, 418, -1, sizeof(::viam::robot::v1::ResourceStatus)}, + { 424, -1, -1, sizeof(::viam::robot::v1::ConfigStatus)}, + { 432, -1, -1, sizeof(::viam::robot::v1::GetVersionRequest)}, + { 438, -1, -1, sizeof(::viam::robot::v1::GetVersionResponse)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::viam::robot::v1::_FrameSystemConfig_default_instance_._instance, - &::viam::robot::v1::_FrameSystemConfigRequest_default_instance_._instance, - &::viam::robot::v1::_FrameSystemConfigResponse_default_instance_._instance, - &::viam::robot::v1::_TransformPoseRequest_default_instance_._instance, - &::viam::robot::v1::_TransformPoseResponse_default_instance_._instance, - &::viam::robot::v1::_TransformPCDRequest_default_instance_._instance, - &::viam::robot::v1::_TransformPCDResponse_default_instance_._instance, - &::viam::robot::v1::_ResourceNamesRequest_default_instance_._instance, - &::viam::robot::v1::_ResourceNamesResponse_default_instance_._instance, - &::viam::robot::v1::_ResourceRPCSubtype_default_instance_._instance, - &::viam::robot::v1::_ResourceRPCSubtypesRequest_default_instance_._instance, - &::viam::robot::v1::_ResourceRPCSubtypesResponse_default_instance_._instance, - &::viam::robot::v1::_Operation_default_instance_._instance, - &::viam::robot::v1::_GetOperationsRequest_default_instance_._instance, - &::viam::robot::v1::_GetOperationsResponse_default_instance_._instance, - &::viam::robot::v1::_CancelOperationRequest_default_instance_._instance, - &::viam::robot::v1::_CancelOperationResponse_default_instance_._instance, - &::viam::robot::v1::_BlockForOperationRequest_default_instance_._instance, - &::viam::robot::v1::_BlockForOperationResponse_default_instance_._instance, - &::viam::robot::v1::_PeerConnectionInfo_default_instance_._instance, - &::viam::robot::v1::_Session_default_instance_._instance, - &::viam::robot::v1::_GetSessionsRequest_default_instance_._instance, - &::viam::robot::v1::_GetSessionsResponse_default_instance_._instance, - &::viam::robot::v1::_DiscoveryQuery_default_instance_._instance, - &::viam::robot::v1::_Discovery_default_instance_._instance, - &::viam::robot::v1::_DiscoverComponentsRequest_default_instance_._instance, - &::viam::robot::v1::_DiscoverComponentsResponse_default_instance_._instance, - &::viam::robot::v1::_Status_default_instance_._instance, - &::viam::robot::v1::_GetStatusRequest_default_instance_._instance, - &::viam::robot::v1::_GetStatusResponse_default_instance_._instance, - &::viam::robot::v1::_StreamStatusRequest_default_instance_._instance, - &::viam::robot::v1::_StreamStatusResponse_default_instance_._instance, - &::viam::robot::v1::_StopExtraParameters_default_instance_._instance, - &::viam::robot::v1::_StopAllRequest_default_instance_._instance, - &::viam::robot::v1::_StopAllResponse_default_instance_._instance, - &::viam::robot::v1::_StartSessionRequest_default_instance_._instance, - &::viam::robot::v1::_StartSessionResponse_default_instance_._instance, - &::viam::robot::v1::_SendSessionHeartbeatRequest_default_instance_._instance, - &::viam::robot::v1::_SendSessionHeartbeatResponse_default_instance_._instance, - &::viam::robot::v1::_LogRequest_default_instance_._instance, - &::viam::robot::v1::_LogResponse_default_instance_._instance, - &::viam::robot::v1::_GetCloudMetadataRequest_default_instance_._instance, - &::viam::robot::v1::_GetCloudMetadataResponse_default_instance_._instance, - &::viam::robot::v1::_RestartModuleRequest_default_instance_._instance, - &::viam::robot::v1::_RestartModuleResponse_default_instance_._instance, - &::viam::robot::v1::_ShutdownRequest_default_instance_._instance, - &::viam::robot::v1::_ShutdownResponse_default_instance_._instance, - &::viam::robot::v1::_GetMachineStatusRequest_default_instance_._instance, - &::viam::robot::v1::_GetMachineStatusResponse_default_instance_._instance, - &::viam::robot::v1::_ResourceStatus_default_instance_._instance, - &::viam::robot::v1::_ConfigStatus_default_instance_._instance, - &::viam::robot::v1::_GetVersionRequest_default_instance_._instance, - &::viam::robot::v1::_GetVersionResponse_default_instance_._instance, -}; -const char descriptor_table_protodef_robot_2fv1_2frobot_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n\024robot/v1/robot.proto\022\rviam.robot.v1\032\026c" - "ommon/v1/common.proto\032\034google/api/annota" - "tions.proto\032\036google/protobuf/duration.pr" - "oto\032\034google/protobuf/struct.proto\032\037googl" - "e/protobuf/timestamp.proto\"}\n\021FrameSyste" - "mConfig\022/\n\005frame\030\001 \001(\0132\031.viam.common.v1." - "TransformR\005frame\0227\n\nkinematics\030\002 \001(\0132\027.g" - "oogle.protobuf.StructR\nkinematics\"n\n\030Fra" - "meSystemConfigRequest\022R\n\027supplemental_tr" - "ansforms\030\001 \003(\0132\031.viam.common.v1.Transfor" - "mR\026supplementalTransforms\"o\n\031FrameSystem" - "ConfigResponse\022R\n\024frame_system_configs\030\001" - " \003(\0132 .viam.robot.v1.FrameSystemConfigR\022" - "frameSystemConfigs\"\301\001\n\024TransformPoseRequ" - "est\0223\n\006source\030\001 \001(\0132\033.viam.common.v1.Pos" - "eInFrameR\006source\022 \n\013destination\030\002 \001(\tR\013d" - "estination\022R\n\027supplemental_transforms\030\003 " - "\003(\0132\031.viam.common.v1.TransformR\026suppleme" - "ntalTransforms\"H\n\025TransformPoseResponse\022" - "/\n\004pose\030\001 \001(\0132\033.viam.common.v1.PoseInFra" - "meR\004pose\"w\n\023TransformPCDRequest\022&\n\017point" - "_cloud_pcd\030\001 \001(\014R\rpointCloudPcd\022\026\n\006sourc" - "e\030\002 \001(\tR\006source\022 \n\013destination\030\003 \001(\tR\013de" - "stination\">\n\024TransformPCDResponse\022&\n\017poi" - "nt_cloud_pcd\030\001 \001(\014R\rpointCloudPcd\"\026\n\024Res" - "ourceNamesRequest\"S\n\025ResourceNamesRespon" - "se\022:\n\tresources\030\001 \003(\0132\034.viam.common.v1.R" - "esourceNameR\tresources\"q\n\022ResourceRPCSub" - "type\0226\n\007subtype\030\001 \001(\0132\034.viam.common.v1.R" - "esourceNameR\007subtype\022#\n\rproto_service\030\002 " - "\001(\tR\014protoService\"\034\n\032ResourceRPCSubtypes" - "Request\"t\n\033ResourceRPCSubtypesResponse\022U" - "\n\025resource_rpc_subtypes\030\001 \003(\0132!.viam.rob" - "ot.v1.ResourceRPCSubtypeR\023resourceRpcSub" - "types\"\323\001\n\tOperation\022\016\n\002id\030\001 \001(\tR\002id\022\026\n\006m" - "ethod\030\002 \001(\tR\006method\0225\n\targuments\030\003 \001(\0132\027" - ".google.protobuf.StructR\targuments\0224\n\007st" - "arted\030\004 \001(\0132\032.google.protobuf.TimestampR" - "\007started\022\"\n\nsession_id\030\005 \001(\tH\000R\tsessionI" - "d\210\001\001B\r\n\013_session_id\"\026\n\024GetOperationsRequ" - "est\"Q\n\025GetOperationsResponse\0228\n\noperatio" - "ns\030\001 \003(\0132\030.viam.robot.v1.OperationR\noper" - "ations\"(\n\026CancelOperationRequest\022\016\n\002id\030\001" - " \001(\tR\002id\"\031\n\027CancelOperationResponse\"*\n\030B" - "lockForOperationRequest\022\016\n\002id\030\001 \001(\tR\002id\"" - "\033\n\031BlockForOperationResponse\"\306\001\n\022PeerCon" - "nectionInfo\0225\n\004type\030\001 \001(\0162!.viam.robot.v" - "1.PeerConnectionTypeR\004type\022*\n\016remote_add" - "ress\030\002 \001(\tH\000R\rremoteAddress\210\001\001\022(\n\rlocal_" - "address\030\003 \001(\tH\001R\014localAddress\210\001\001B\021\n\017_rem" - "ote_addressB\020\n\016_local_address\"\214\001\n\007Sessio" - "n\022\016\n\002id\030\001 \001(\tR\002id\022X\n\024peer_connection_inf" - "o\030\002 \001(\0132!.viam.robot.v1.PeerConnectionIn" - "foH\000R\022peerConnectionInfo\210\001\001B\027\n\025_peer_con" - "nection_info\"\024\n\022GetSessionsRequest\"I\n\023Ge" - "tSessionsResponse\0222\n\010sessions\030\001 \003(\0132\026.vi" - "am.robot.v1.SessionR\010sessions\"o\n\016Discove" - "ryQuery\022\030\n\007subtype\030\001 \001(\tR\007subtype\022\024\n\005mod" - "el\030\002 \001(\tR\005model\022-\n\005extra\030c \001(\0132\027.google." - "protobuf.StructR\005extra\"s\n\tDiscovery\0223\n\005q" - "uery\030\001 \001(\0132\035.viam.robot.v1.DiscoveryQuer" - "yR\005query\0221\n\007results\030\002 \001(\0132\027.google.proto" - "buf.StructR\007results\"T\n\031DiscoverComponent" - "sRequest\0227\n\007queries\030\001 \003(\0132\035.viam.robot.v" - "1.DiscoveryQueryR\007queries\"T\n\032DiscoverCom" - "ponentsResponse\0226\n\tdiscovery\030\001 \003(\0132\030.via" - "m.robot.v1.DiscoveryR\tdiscovery\"\264\001\n\006Stat" - "us\0220\n\004name\030\001 \001(\0132\034.viam.common.v1.Resour" - "ceNameR\004name\022/\n\006status\030\002 \001(\0132\027.google.pr" - "otobuf.StructR\006status\022G\n\021last_reconfigur" - "ed\030\003 \001(\0132\032.google.protobuf.TimestampR\020la" - "stReconfigured\"W\n\020GetStatusRequest\022C\n\016re" - "source_names\030\001 \003(\0132\034.viam.common.v1.Reso" - "urceNameR\rresourceNames\"B\n\021GetStatusResp" - "onse\022-\n\006status\030\001 \003(\0132\025.viam.robot.v1.Sta" - "tusR\006status\"\213\001\n\023StreamStatusRequest\022C\n\016r" - "esource_names\030\001 \003(\0132\034.viam.common.v1.Res" - "ourceNameR\rresourceNames\022/\n\005every\030\002 \001(\0132" - "\031.google.protobuf.DurationR\005every\"E\n\024Str" - "eamStatusResponse\022-\n\006status\030\001 \003(\0132\025.viam" - ".robot.v1.StatusR\006status\"x\n\023StopExtraPar" - "ameters\0220\n\004name\030\001 \001(\0132\034.viam.common.v1.R" - "esourceNameR\004name\022/\n\006params\030\002 \001(\0132\027.goog" - "le.protobuf.StructR\006params\"J\n\016StopAllReq" - "uest\0228\n\005extra\030c \003(\0132\".viam.robot.v1.Stop" - "ExtraParametersR\005extra\"\021\n\017StopAllRespons" - "e\"-\n\023StartSessionRequest\022\026\n\006resume\030\001 \001(\t" - "R\006resume\"l\n\024StartSessionResponse\022\016\n\002id\030\001" - " \001(\tR\002id\022D\n\020heartbeat_window\030\002 \001(\0132\031.goo" - "gle.protobuf.DurationR\017heartbeatWindow\"-" - "\n\033SendSessionHeartbeatRequest\022\016\n\002id\030\001 \001(" - "\tR\002id\"\036\n\034SendSessionHeartbeatResponse\":\n" - "\nLogRequest\022,\n\004logs\030\001 \003(\0132\030.viam.common." - "v1.LogEntryR\004logs\"\r\n\013LogResponse\"\031\n\027GetC" - "loudMetadataRequest\"\320\001\n\030GetCloudMetadata" - "Response\022&\n\rrobot_part_id\030\001 \001(\tB\002\030\001R\013rob" - "otPartId\022$\n\016primary_org_id\030\002 \001(\tR\014primar" - "yOrgId\022\037\n\013location_id\030\003 \001(\tR\nlocationId\022" - "\035\n\nmachine_id\030\004 \001(\tR\tmachineId\022&\n\017machin" - "e_part_id\030\005 \001(\tR\rmachinePartId\"f\n\024Restar" - "tModuleRequest\022\035\n\tmodule_id\030\001 \001(\tH\000R\010mod" - "uleId\022!\n\013module_name\030\002 \001(\tH\000R\nmoduleName" - "B\014\n\nid_or_name\"\027\n\025RestartModuleResponse\"" - "\021\n\017ShutdownRequest\"\022\n\020ShutdownResponse\"\031" - "\n\027GetMachineStatusRequest\"\214\001\n\030GetMachine" - "StatusResponse\022;\n\tresources\030\001 \003(\0132\035.viam" - ".robot.v1.ResourceStatusR\tresources\0223\n\006c" - "onfig\030\002 \001(\0132\033.viam.robot.v1.ConfigStatus" - "R\006config\"\340\003\n\016ResourceStatus\0220\n\004name\030\001 \001(" - "\0132\034.viam.common.v1.ResourceNameR\004name\0229\n" - "\005state\030\002 \001(\0162#.viam.robot.v1.ResourceSta" - "tus.StateR\005state\022=\n\014last_updated\030\003 \001(\0132\032" - ".google.protobuf.TimestampR\013lastUpdated\022" - "\032\n\010revision\030\004 \001(\tR\010revision\022\024\n\005error\030\005 \001" - "(\tR\005error\022S\n\016cloud_metadata\030\006 \001(\0132\'.viam" - ".robot.v1.GetCloudMetadataResponseH\000R\rcl" - "oudMetadata\210\001\001\"\207\001\n\005State\022\025\n\021STATE_UNSPEC" - "IFIED\020\000\022\026\n\022STATE_UNCONFIGURED\020\001\022\025\n\021STATE" - "_CONFIGURING\020\002\022\017\n\013STATE_READY\020\003\022\022\n\016STATE" - "_REMOVING\020\004\022\023\n\017STATE_UNHEALTHY\020\005B\021\n\017_clo" - "ud_metadata\"i\n\014ConfigStatus\022\032\n\010revision\030" - "\001 \001(\tR\010revision\022=\n\014last_updated\030\002 \001(\0132\032." - "google.protobuf.TimestampR\013lastUpdated\"\023" - "\n\021GetVersionRequest\"k\n\022GetVersionRespons" - "e\022\032\n\010platform\030\001 \001(\tR\010platform\022\030\n\007version" - "\030\002 \001(\tR\007version\022\037\n\013api_version\030\003 \001(\tR\nap" - "iVersion*z\n\022PeerConnectionType\022$\n PEER_C" - "ONNECTION_TYPE_UNSPECIFIED\020\000\022\035\n\031PEER_CON" - "NECTION_TYPE_GRPC\020\001\022\037\n\033PEER_CONNECTION_T" - "YPE_WEBRTC\020\0022\313\025\n\014RobotService\022\200\001\n\rGetOpe" - "rations\022#.viam.robot.v1.GetOperationsReq" - "uest\032$.viam.robot.v1.GetOperationsRespon" - "se\"$\202\323\344\223\002\036\022\034/viam/api/v1/operations/list" - "\022x\n\013GetSessions\022!.viam.robot.v1.GetSessi" - "onsRequest\032\".viam.robot.v1.GetSessionsRe" - "sponse\"\"\202\323\344\223\002\034\022\032/viam/api/v1/sessions/li" - "st\022\177\n\rResourceNames\022#.viam.robot.v1.Reso" - "urceNamesRequest\032$.viam.robot.v1.Resourc" - "eNamesResponse\"#\202\323\344\223\002\035\022\033/viam/api/v1/res" - "ources/list\022\235\001\n\023ResourceRPCSubtypes\022).vi" - "am.robot.v1.ResourceRPCSubtypesRequest\032*" - ".viam.robot.v1.ResourceRPCSubtypesRespon" - "se\"/\202\323\344\223\002)\022\'/viam/api/v1/resource_rpc_su" - "btypes/list\022\210\001\n\017CancelOperation\022%.viam.r" - "obot.v1.CancelOperationRequest\032&.viam.ro" - "bot.v1.CancelOperationResponse\"&\202\323\344\223\002 \"\036" - "/viam/api/v1/operations/cancel\022\215\001\n\021Block" - "ForOperation\022\'.viam.robot.v1.BlockForOpe" - "rationRequest\032(.viam.robot.v1.BlockForOp" - "erationResponse\"%\202\323\344\223\002\037\"\035/viam/api/v1/op" - "erations/block\022\224\001\n\022DiscoverComponents\022(." - "viam.robot.v1.DiscoverComponentsRequest\032" - ").viam.robot.v1.DiscoverComponentsRespon" - "se\")\202\323\344\223\002#\022!/viam/api/v1/discovery/compo" - "nents\022\220\001\n\021FrameSystemConfig\022\'.viam.robot" - ".v1.FrameSystemConfigRequest\032(.viam.robo" - "t.v1.FrameSystemConfigResponse\"(\202\323\344\223\002\"\022 " - "/viam/api/v1/frame_system/config\022\214\001\n\rTra" - "nsformPose\022#.viam.robot.v1.TransformPose" - "Request\032$.viam.robot.v1.TransformPoseRes" - "ponse\"0\202\323\344\223\002*\022(/viam/api/v1/frame_system" - "/transform_pose\022\210\001\n\014TransformPCD\022\".viam." - "robot.v1.TransformPCDRequest\032#.viam.robo" - "t.v1.TransformPCDResponse\"/\202\323\344\223\002)\022\'/viam" - "/api/v1/frame_system/transform_pcd\022n\n\tGe" - "tStatus\022\037.viam.robot.v1.GetStatusRequest" - "\032 .viam.robot.v1.GetStatusResponse\"\036\210\002\001\202" - "\323\344\223\002\025\022\023/viam/api/v1/status\022\200\001\n\014StreamSta" - "tus\022\".viam.robot.v1.StreamStatusRequest\032" - "#.viam.robot.v1.StreamStatusResponse\"%\210\002" - "\001\202\323\344\223\002\034\022\032/viam/api/v1/status/stream0\001\022g\n" - "\007StopAll\022\035.viam.robot.v1.StopAllRequest\032" - "\036.viam.robot.v1.StopAllResponse\"\035\202\323\344\223\002\027\022" - "\025/viam/api/v1/stop_all\022v\n\014StartSession\022\"" - ".viam.robot.v1.StartSessionRequest\032#.via" - "m.robot.v1.StartSessionResponse\"\035\202\323\344\223\002\027\"" - "\025/viam/api/v1/sessions\022\235\001\n\024SendSessionHe" - "artbeat\022*.viam.robot.v1.SendSessionHeart" - "beatRequest\032+.viam.robot.v1.SendSessionH" - "eartbeatResponse\",\202\323\344\223\002&\"$/viam/api/v1/s" - "essions/{id}/heartbeat\022V\n\003Log\022\031.viam.rob" - "ot.v1.LogRequest\032\032.viam.robot.v1.LogResp" - "onse\"\030\202\323\344\223\002\022\"\020/viam/api/v1/log\022\210\001\n\020GetCl" - "oudMetadata\022&.viam.robot.v1.GetCloudMeta" - "dataRequest\032\'.viam.robot.v1.GetCloudMeta" - "dataResponse\"#\202\323\344\223\002\035\022\033/viam/api/v1/cloud" - "_metadata\022\177\n\rRestartModule\022#.viam.robot." - "v1.RestartModuleRequest\032$.viam.robot.v1." - "RestartModuleResponse\"#\202\323\344\223\002\035\"\033/viam/api" - "/v1/restart_module\022j\n\010Shutdown\022\036.viam.ro" - "bot.v1.ShutdownRequest\032\037.viam.robot.v1.S" - "hutdownResponse\"\035\202\323\344\223\002\027\"\025/viam/api/v1/sh" - "utdown\022\210\001\n\020GetMachineStatus\022&.viam.robot" - ".v1.GetMachineStatusRequest\032\'.viam.robot" - ".v1.GetMachineStatusResponse\"#\202\323\344\223\002\035\022\033/v" - "iam/api/v1/machine_status\022o\n\nGetVersion\022" - " .viam.robot.v1.GetVersionRequest\032!.viam" - ".robot.v1.GetVersionResponse\"\034\202\323\344\223\002\026\022\024/v" - "iam/api/v1/versionB\217\001\n\021com.viam.robot.v1" - "B\nRobotProtoP\001Z\030go.viam.com/api/robot/v1" - "\242\002\003VRX\252\002\rViam.Robot.V1\312\002\rViam\\Robot\\V1\342\002" - "\031Viam\\Robot\\V1\\GPBMetadata\352\002\017Viam::Robot" - "::V1b\006proto3" -}; -static const ::_pbi::DescriptorTable* const descriptor_table_robot_2fv1_2frobot_2eproto_deps[5] = - { - &::descriptor_table_common_2fv1_2fcommon_2eproto, - &::descriptor_table_google_2fapi_2fannotations_2eproto, - &::descriptor_table_google_2fprotobuf_2fduration_2eproto, - &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, - &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto, -}; -static ::absl::once_flag descriptor_table_robot_2fv1_2frobot_2eproto_once; + &::viam::robot::v1::_TunnelRequest_default_instance_._instance, + &::viam::robot::v1::_TunnelResponse_default_instance_._instance, + &::viam::robot::v1::_FrameSystemConfig_default_instance_._instance, + &::viam::robot::v1::_FrameSystemConfigRequest_default_instance_._instance, + &::viam::robot::v1::_FrameSystemConfigResponse_default_instance_._instance, + &::viam::robot::v1::_TransformPoseRequest_default_instance_._instance, + &::viam::robot::v1::_TransformPoseResponse_default_instance_._instance, + &::viam::robot::v1::_TransformPCDRequest_default_instance_._instance, + &::viam::robot::v1::_TransformPCDResponse_default_instance_._instance, + &::viam::robot::v1::_ResourceNamesRequest_default_instance_._instance, + &::viam::robot::v1::_ResourceNamesResponse_default_instance_._instance, + &::viam::robot::v1::_ResourceRPCSubtype_default_instance_._instance, + &::viam::robot::v1::_ResourceRPCSubtypesRequest_default_instance_._instance, + &::viam::robot::v1::_ResourceRPCSubtypesResponse_default_instance_._instance, + &::viam::robot::v1::_Operation_default_instance_._instance, + &::viam::robot::v1::_GetOperationsRequest_default_instance_._instance, + &::viam::robot::v1::_GetOperationsResponse_default_instance_._instance, + &::viam::robot::v1::_CancelOperationRequest_default_instance_._instance, + &::viam::robot::v1::_CancelOperationResponse_default_instance_._instance, + &::viam::robot::v1::_BlockForOperationRequest_default_instance_._instance, + &::viam::robot::v1::_BlockForOperationResponse_default_instance_._instance, + &::viam::robot::v1::_PeerConnectionInfo_default_instance_._instance, + &::viam::robot::v1::_Session_default_instance_._instance, + &::viam::robot::v1::_GetSessionsRequest_default_instance_._instance, + &::viam::robot::v1::_GetSessionsResponse_default_instance_._instance, + &::viam::robot::v1::_DiscoveryQuery_default_instance_._instance, + &::viam::robot::v1::_Discovery_default_instance_._instance, + &::viam::robot::v1::_ModuleModel_default_instance_._instance, + &::viam::robot::v1::_GetModelsFromModulesRequest_default_instance_._instance, + &::viam::robot::v1::_GetModelsFromModulesResponse_default_instance_._instance, + &::viam::robot::v1::_DiscoverComponentsRequest_default_instance_._instance, + &::viam::robot::v1::_DiscoverComponentsResponse_default_instance_._instance, + &::viam::robot::v1::_Status_default_instance_._instance, + &::viam::robot::v1::_GetStatusRequest_default_instance_._instance, + &::viam::robot::v1::_GetStatusResponse_default_instance_._instance, + &::viam::robot::v1::_StreamStatusRequest_default_instance_._instance, + &::viam::robot::v1::_StreamStatusResponse_default_instance_._instance, + &::viam::robot::v1::_StopExtraParameters_default_instance_._instance, + &::viam::robot::v1::_StopAllRequest_default_instance_._instance, + &::viam::robot::v1::_StopAllResponse_default_instance_._instance, + &::viam::robot::v1::_StartSessionRequest_default_instance_._instance, + &::viam::robot::v1::_StartSessionResponse_default_instance_._instance, + &::viam::robot::v1::_SendSessionHeartbeatRequest_default_instance_._instance, + &::viam::robot::v1::_SendSessionHeartbeatResponse_default_instance_._instance, + &::viam::robot::v1::_LogRequest_default_instance_._instance, + &::viam::robot::v1::_LogResponse_default_instance_._instance, + &::viam::robot::v1::_GetCloudMetadataRequest_default_instance_._instance, + &::viam::robot::v1::_GetCloudMetadataResponse_default_instance_._instance, + &::viam::robot::v1::_RestartModuleRequest_default_instance_._instance, + &::viam::robot::v1::_RestartModuleResponse_default_instance_._instance, + &::viam::robot::v1::_ShutdownRequest_default_instance_._instance, + &::viam::robot::v1::_ShutdownResponse_default_instance_._instance, + &::viam::robot::v1::_GetMachineStatusRequest_default_instance_._instance, + &::viam::robot::v1::_GetMachineStatusResponse_default_instance_._instance, + &::viam::robot::v1::_ResourceStatus_default_instance_._instance, + &::viam::robot::v1::_ConfigStatus_default_instance_._instance, + &::viam::robot::v1::_GetVersionRequest_default_instance_._instance, + &::viam::robot::v1::_GetVersionResponse_default_instance_._instance, +}; + +const char descriptor_table_protodef_robot_2fv1_2frobot_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\024robot/v1/robot.proto\022\rviam.robot.v1\032\026c" + "ommon/v1/common.proto\032\034google/api/annota" + "tions.proto\032\036google/protobuf/duration.pr" + "oto\032\034google/protobuf/struct.proto\032\037googl" + "e/protobuf/timestamp.proto\"N\n\rTunnelRequ" + "est\022)\n\020destination_port\030\001 \001(\rR\017destinati" + "onPort\022\022\n\004data\030\002 \001(\014R\004data\"$\n\016TunnelResp" + "onse\022\022\n\004data\030\001 \001(\014R\004data\"}\n\021FrameSystemC" + "onfig\022/\n\005frame\030\001 \001(\0132\031.viam.common.v1.Tr" + "ansformR\005frame\0227\n\nkinematics\030\002 \001(\0132\027.goo" + "gle.protobuf.StructR\nkinematics\"n\n\030Frame" + "SystemConfigRequest\022R\n\027supplemental_tran" + "sforms\030\001 \003(\0132\031.viam.common.v1.TransformR" + "\026supplementalTransforms\"o\n\031FrameSystemCo" + "nfigResponse\022R\n\024frame_system_configs\030\001 \003" + "(\0132 .viam.robot.v1.FrameSystemConfigR\022fr" + "ameSystemConfigs\"\301\001\n\024TransformPoseReques" + "t\0223\n\006source\030\001 \001(\0132\033.viam.common.v1.PoseI" + "nFrameR\006source\022 \n\013destination\030\002 \001(\tR\013des" + "tination\022R\n\027supplemental_transforms\030\003 \003(" + "\0132\031.viam.common.v1.TransformR\026supplement" + "alTransforms\"H\n\025TransformPoseResponse\022/\n" + "\004pose\030\001 \001(\0132\033.viam.common.v1.PoseInFrame" + "R\004pose\"w\n\023TransformPCDRequest\022&\n\017point_c" + "loud_pcd\030\001 \001(\014R\rpointCloudPcd\022\026\n\006source\030" + "\002 \001(\tR\006source\022 \n\013destination\030\003 \001(\tR\013dest" + "ination\">\n\024TransformPCDResponse\022&\n\017point" + "_cloud_pcd\030\001 \001(\014R\rpointCloudPcd\"\026\n\024Resou" + "rceNamesRequest\"S\n\025ResourceNamesResponse" + "\022:\n\tresources\030\001 \003(\0132\034.viam.common.v1.Res" + "ourceNameR\tresources\"q\n\022ResourceRPCSubty" + "pe\0226\n\007subtype\030\001 \001(\0132\034.viam.common.v1.Res" + "ourceNameR\007subtype\022#\n\rproto_service\030\002 \001(" + "\tR\014protoService\"\034\n\032ResourceRPCSubtypesRe" + "quest\"t\n\033ResourceRPCSubtypesResponse\022U\n\025" + "resource_rpc_subtypes\030\001 \003(\0132!.viam.robot" + ".v1.ResourceRPCSubtypeR\023resourceRpcSubty" + "pes\"\323\001\n\tOperation\022\016\n\002id\030\001 \001(\tR\002id\022\026\n\006met" + "hod\030\002 \001(\tR\006method\0225\n\targuments\030\003 \001(\0132\027.g" + "oogle.protobuf.StructR\targuments\0224\n\007star" + "ted\030\004 \001(\0132\032.google.protobuf.TimestampR\007s" + "tarted\022\"\n\nsession_id\030\005 \001(\tH\000R\tsessionId\210" + "\001\001B\r\n\013_session_id\"\026\n\024GetOperationsReques" + "t\"Q\n\025GetOperationsResponse\0228\n\noperations" + "\030\001 \003(\0132\030.viam.robot.v1.OperationR\noperat" + "ions\"(\n\026CancelOperationRequest\022\016\n\002id\030\001 \001" + "(\tR\002id\"\031\n\027CancelOperationResponse\"*\n\030Blo" + "ckForOperationRequest\022\016\n\002id\030\001 \001(\tR\002id\"\033\n" + "\031BlockForOperationResponse\"\306\001\n\022PeerConne" + "ctionInfo\0225\n\004type\030\001 \001(\0162!.viam.robot.v1." + "PeerConnectionTypeR\004type\022*\n\016remote_addre" + "ss\030\002 \001(\tH\000R\rremoteAddress\210\001\001\022(\n\rlocal_ad" + "dress\030\003 \001(\tH\001R\014localAddress\210\001\001B\021\n\017_remot" + "e_addressB\020\n\016_local_address\"\214\001\n\007Session\022" + "\016\n\002id\030\001 \001(\tR\002id\022X\n\024peer_connection_info\030" + "\002 \001(\0132!.viam.robot.v1.PeerConnectionInfo" + "H\000R\022peerConnectionInfo\210\001\001B\027\n\025_peer_conne" + "ction_info\"\024\n\022GetSessionsRequest\"I\n\023GetS" + "essionsResponse\0222\n\010sessions\030\001 \003(\0132\026.viam" + ".robot.v1.SessionR\010sessions\"s\n\016Discovery" + "Query\022\030\n\007subtype\030\001 \001(\tR\007subtype\022\024\n\005model" + "\030\002 \001(\tR\005model\022-\n\005extra\030c \001(\0132\027.google.pr" + "otobuf.StructR\005extra:\002\030\001\"w\n\tDiscovery\0223\n" + "\005query\030\001 \001(\0132\035.viam.robot.v1.DiscoveryQu" + "eryR\005query\0221\n\007results\030\002 \001(\0132\027.google.pro" + "tobuf.StructR\007results:\002\030\001\"\202\001\n\013ModuleMode" + "l\022\037\n\013module_name\030\001 \001(\tR\nmoduleName\022\024\n\005mo" + "del\030\002 \001(\tR\005model\022\020\n\003api\030\003 \001(\tR\003api\022*\n\021fr" + "om_local_module\030\004 \001(\010R\017fromLocalModule\"\035" + "\n\033GetModelsFromModulesRequest\"R\n\034GetMode" + "lsFromModulesResponse\0222\n\006models\030\001 \003(\0132\032." + "viam.robot.v1.ModuleModelR\006models\"X\n\031Dis" + "coverComponentsRequest\0227\n\007queries\030\001 \003(\0132" + "\035.viam.robot.v1.DiscoveryQueryR\007queries:" + "\002\030\001\"X\n\032DiscoverComponentsResponse\0226\n\tdis" + "covery\030\001 \003(\0132\030.viam.robot.v1.DiscoveryR\t" + "discovery:\002\030\001\"\264\001\n\006Status\0220\n\004name\030\001 \001(\0132\034" + ".viam.common.v1.ResourceNameR\004name\022/\n\006st" + "atus\030\002 \001(\0132\027.google.protobuf.StructR\006sta" + "tus\022G\n\021last_reconfigured\030\003 \001(\0132\032.google." + "protobuf.TimestampR\020lastReconfigured\"W\n\020" + "GetStatusRequest\022C\n\016resource_names\030\001 \003(\013" + "2\034.viam.common.v1.ResourceNameR\rresource" + "Names\"B\n\021GetStatusResponse\022-\n\006status\030\001 \003" + "(\0132\025.viam.robot.v1.StatusR\006status\"\213\001\n\023St" + "reamStatusRequest\022C\n\016resource_names\030\001 \003(" + "\0132\034.viam.common.v1.ResourceNameR\rresourc" + "eNames\022/\n\005every\030\002 \001(\0132\031.google.protobuf." + "DurationR\005every\"E\n\024StreamStatusResponse\022" + "-\n\006status\030\001 \003(\0132\025.viam.robot.v1.StatusR\006" + "status\"x\n\023StopExtraParameters\0220\n\004name\030\001 " + "\001(\0132\034.viam.common.v1.ResourceNameR\004name\022" + "/\n\006params\030\002 \001(\0132\027.google.protobuf.Struct" + "R\006params\"J\n\016StopAllRequest\0228\n\005extra\030c \003(" + "\0132\".viam.robot.v1.StopExtraParametersR\005e" + "xtra\"\021\n\017StopAllResponse\"-\n\023StartSessionR" + "equest\022\026\n\006resume\030\001 \001(\tR\006resume\"l\n\024StartS" + "essionResponse\022\016\n\002id\030\001 \001(\tR\002id\022D\n\020heartb" + "eat_window\030\002 \001(\0132\031.google.protobuf.Durat" + "ionR\017heartbeatWindow\"-\n\033SendSessionHeart" + "beatRequest\022\016\n\002id\030\001 \001(\tR\002id\"\036\n\034SendSessi" + "onHeartbeatResponse\":\n\nLogRequest\022,\n\004log" + "s\030\001 \003(\0132\030.viam.common.v1.LogEntryR\004logs\"" + "\r\n\013LogResponse\"\031\n\027GetCloudMetadataReques" + "t\"\320\001\n\030GetCloudMetadataResponse\022&\n\rrobot_" + "part_id\030\001 \001(\tB\002\030\001R\013robotPartId\022$\n\016primar" + "y_org_id\030\002 \001(\tR\014primaryOrgId\022\037\n\013location" + "_id\030\003 \001(\tR\nlocationId\022\035\n\nmachine_id\030\004 \001(" + "\tR\tmachineId\022&\n\017machine_part_id\030\005 \001(\tR\rm" + "achinePartId\"f\n\024RestartModuleRequest\022\035\n\t" + "module_id\030\001 \001(\tH\000R\010moduleId\022!\n\013module_na" + "me\030\002 \001(\tH\000R\nmoduleNameB\014\n\nid_or_name\"\027\n\025" + "RestartModuleResponse\"\021\n\017ShutdownRequest" + "\"\022\n\020ShutdownResponse\"\031\n\027GetMachineStatus" + "Request\"\234\002\n\030GetMachineStatusResponse\022;\n\t" + "resources\030\001 \003(\0132\035.viam.robot.v1.Resource" + "StatusR\tresources\0223\n\006config\030\002 \001(\0132\033.viam" + ".robot.v1.ConfigStatusR\006config\022C\n\005state\030" + "\003 \001(\0162-.viam.robot.v1.GetMachineStatusRe" + "sponse.StateR\005state\"I\n\005State\022\025\n\021STATE_UN" + "SPECIFIED\020\000\022\026\n\022STATE_INITIALIZING\020\001\022\021\n\rS" + "TATE_RUNNING\020\002\"\340\003\n\016ResourceStatus\0220\n\004nam" + "e\030\001 \001(\0132\034.viam.common.v1.ResourceNameR\004n" + "ame\0229\n\005state\030\002 \001(\0162#.viam.robot.v1.Resou" + "rceStatus.StateR\005state\022=\n\014last_updated\030\003" + " \001(\0132\032.google.protobuf.TimestampR\013lastUp" + "dated\022\032\n\010revision\030\004 \001(\tR\010revision\022\024\n\005err" + "or\030\005 \001(\tR\005error\022S\n\016cloud_metadata\030\006 \001(\0132" + "\'.viam.robot.v1.GetCloudMetadataResponse" + "H\000R\rcloudMetadata\210\001\001\"\207\001\n\005State\022\025\n\021STATE_" + "UNSPECIFIED\020\000\022\026\n\022STATE_UNCONFIGURED\020\001\022\025\n" + "\021STATE_CONFIGURING\020\002\022\017\n\013STATE_READY\020\003\022\022\n" + "\016STATE_REMOVING\020\004\022\023\n\017STATE_UNHEALTHY\020\005B\021" + "\n\017_cloud_metadata\"i\n\014ConfigStatus\022\032\n\010rev" + "ision\030\001 \001(\tR\010revision\022=\n\014last_updated\030\002 " + "\001(\0132\032.google.protobuf.TimestampR\013lastUpd" + "ated\"\023\n\021GetVersionRequest\"k\n\022GetVersionR" + "esponse\022\032\n\010platform\030\001 \001(\tR\010platform\022\030\n\007v" + "ersion\030\002 \001(\tR\007version\022\037\n\013api_version\030\003 \001" + "(\tR\napiVersion*z\n\022PeerConnectionType\022$\n " + "PEER_CONNECTION_TYPE_UNSPECIFIED\020\000\022\035\n\031PE" + "ER_CONNECTION_TYPE_GRPC\020\001\022\037\n\033PEER_CONNEC" + "TION_TYPE_WEBRTC\020\0022\257\027\n\014RobotService\022\200\001\n\r" + "GetOperations\022#.viam.robot.v1.GetOperati" + "onsRequest\032$.viam.robot.v1.GetOperations" + "Response\"$\202\323\344\223\002\036\022\034/viam/api/v1/operation" + "s/list\022x\n\013GetSessions\022!.viam.robot.v1.Ge" + "tSessionsRequest\032\".viam.robot.v1.GetSess" + "ionsResponse\"\"\202\323\344\223\002\034\022\032/viam/api/v1/sessi" + "ons/list\022\177\n\rResourceNames\022#.viam.robot.v" + "1.ResourceNamesRequest\032$.viam.robot.v1.R" + "esourceNamesResponse\"#\202\323\344\223\002\035\022\033/viam/api/" + "v1/resources/list\022\235\001\n\023ResourceRPCSubtype" + "s\022).viam.robot.v1.ResourceRPCSubtypesReq" + "uest\032*.viam.robot.v1.ResourceRPCSubtypes" + "Response\"/\202\323\344\223\002)\022\'/viam/api/v1/resource_" + "rpc_subtypes/list\022\210\001\n\017CancelOperation\022%." + "viam.robot.v1.CancelOperationRequest\032&.v" + "iam.robot.v1.CancelOperationResponse\"&\202\323" + "\344\223\002 \"\036/viam/api/v1/operations/cancel\022\215\001\n" + "\021BlockForOperation\022\'.viam.robot.v1.Block" + "ForOperationRequest\032(.viam.robot.v1.Bloc" + "kForOperationResponse\"%\202\323\344\223\002\037\"\035/viam/api" + "/v1/operations/block\022\223\001\n\024GetModelsFromMo" + "dules\022*.viam.robot.v1.GetModelsFromModul" + "esRequest\032+.viam.robot.v1.GetModelsFromM" + "odulesResponse\"\"\202\323\344\223\002\034\022\032/viam/api/v1/mod" + "ule_models\022\227\001\n\022DiscoverComponents\022(.viam" + ".robot.v1.DiscoverComponentsRequest\032).vi" + "am.robot.v1.DiscoverComponentsResponse\"," + "\210\002\001\202\323\344\223\002#\022!/viam/api/v1/discovery/compon" + "ents\022\220\001\n\021FrameSystemConfig\022\'.viam.robot." + "v1.FrameSystemConfigRequest\032(.viam.robot" + ".v1.FrameSystemConfigResponse\"(\202\323\344\223\002\"\022 /" + "viam/api/v1/frame_system/config\022\214\001\n\rTran" + "sformPose\022#.viam.robot.v1.TransformPoseR" + "equest\032$.viam.robot.v1.TransformPoseResp" + "onse\"0\202\323\344\223\002*\022(/viam/api/v1/frame_system/" + "transform_pose\022\210\001\n\014TransformPCD\022\".viam.r" + "obot.v1.TransformPCDRequest\032#.viam.robot" + ".v1.TransformPCDResponse\"/\202\323\344\223\002)\022\'/viam/" + "api/v1/frame_system/transform_pcd\022n\n\tGet" + "Status\022\037.viam.robot.v1.GetStatusRequest\032" + " .viam.robot.v1.GetStatusResponse\"\036\210\002\001\202\323" + "\344\223\002\025\022\023/viam/api/v1/status\022\200\001\n\014StreamStat" + "us\022\".viam.robot.v1.StreamStatusRequest\032#" + ".viam.robot.v1.StreamStatusResponse\"%\210\002\001" + "\202\323\344\223\002\034\022\032/viam/api/v1/status/stream0\001\022g\n\007" + "StopAll\022\035.viam.robot.v1.StopAllRequest\032\036" + ".viam.robot.v1.StopAllResponse\"\035\202\323\344\223\002\027\022\025" + "/viam/api/v1/stop_all\022v\n\014StartSession\022\"." + "viam.robot.v1.StartSessionRequest\032#.viam" + ".robot.v1.StartSessionResponse\"\035\202\323\344\223\002\027\"\025" + "/viam/api/v1/sessions\022\235\001\n\024SendSessionHea" + "rtbeat\022*.viam.robot.v1.SendSessionHeartb" + "eatRequest\032+.viam.robot.v1.SendSessionHe" + "artbeatResponse\",\202\323\344\223\002&\"$/viam/api/v1/se" + "ssions/{id}/heartbeat\022V\n\003Log\022\031.viam.robo" + "t.v1.LogRequest\032\032.viam.robot.v1.LogRespo" + "nse\"\030\202\323\344\223\002\022\"\020/viam/api/v1/log\022\210\001\n\020GetClo" + "udMetadata\022&.viam.robot.v1.GetCloudMetad" + "ataRequest\032\'.viam.robot.v1.GetCloudMetad" + "ataResponse\"#\202\323\344\223\002\035\022\033/viam/api/v1/cloud_" + "metadata\022\177\n\rRestartModule\022#.viam.robot.v" + "1.RestartModuleRequest\032$.viam.robot.v1.R" + "estartModuleResponse\"#\202\323\344\223\002\035\"\033/viam/api/" + "v1/restart_module\022j\n\010Shutdown\022\036.viam.rob" + "ot.v1.ShutdownRequest\032\037.viam.robot.v1.Sh" + "utdownResponse\"\035\202\323\344\223\002\027\"\025/viam/api/v1/shu" + "tdown\022\210\001\n\020GetMachineStatus\022&.viam.robot." + "v1.GetMachineStatusRequest\032\'.viam.robot." + "v1.GetMachineStatusResponse\"#\202\323\344\223\002\035\022\033/vi" + "am/api/v1/machine_status\022o\n\nGetVersion\022 " + ".viam.robot.v1.GetVersionRequest\032!.viam." + "robot.v1.GetVersionResponse\"\034\202\323\344\223\002\026\022\024/vi" + "am/api/v1/version\022I\n\006Tunnel\022\034.viam.robot" + ".v1.TunnelRequest\032\035.viam.robot.v1.Tunnel" + "Response(\0010\001B-\n\021com.viam.robot.v1Z\030go.vi" + "am.com/api/robot/v1b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_robot_2fv1_2frobot_2eproto_deps[5] = { + &::descriptor_table_common_2fv1_2fcommon_2eproto, + &::descriptor_table_google_2fapi_2fannotations_2eproto, + &::descriptor_table_google_2fprotobuf_2fduration_2eproto, + &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, + &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto, +}; +static ::_pbi::once_flag descriptor_table_robot_2fv1_2frobot_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_robot_2fv1_2frobot_2eproto = { - false, - false, - 8092, - descriptor_table_protodef_robot_2fv1_2frobot_2eproto, + false, false, 8747, 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, - 53, - schemas, - file_default_instances, - TableStruct_robot_2fv1_2frobot_2eproto::offsets, - file_level_metadata_robot_2fv1_2frobot_2eproto, - file_level_enum_descriptors_robot_2fv1_2frobot_2eproto, + &descriptor_table_robot_2fv1_2frobot_2eproto_once, descriptor_table_robot_2fv1_2frobot_2eproto_deps, 5, 58, + schemas, file_default_instances, TableStruct_robot_2fv1_2frobot_2eproto::offsets, + file_level_metadata_robot_2fv1_2frobot_2eproto, file_level_enum_descriptors_robot_2fv1_2frobot_2eproto, file_level_service_descriptors_robot_2fv1_2frobot_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_robot_2fv1_2frobot_2eproto_getter() { return &descriptor_table_robot_2fv1_2frobot_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_robot_2fv1_2frobot_2eproto(&descriptor_table_robot_2fv1_2frobot_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_robot_2fv1_2frobot_2eproto(&descriptor_table_robot_2fv1_2frobot_2eproto); namespace viam { namespace robot { namespace v1 { -const ::google::protobuf::EnumDescriptor* ResourceStatus_State_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_robot_2fv1_2frobot_2eproto); +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* GetMachineStatusResponse_State_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_robot_2fv1_2frobot_2eproto); return file_level_enum_descriptors_robot_2fv1_2frobot_2eproto[0]; } -PROTOBUF_CONSTINIT const uint32_t ResourceStatus_State_internal_data_[] = { - 393216u, 0u, }; +bool GetMachineStatusResponse_State_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } +} + +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +constexpr GetMachineStatusResponse_State GetMachineStatusResponse::STATE_UNSPECIFIED; +constexpr GetMachineStatusResponse_State GetMachineStatusResponse::STATE_INITIALIZING; +constexpr GetMachineStatusResponse_State GetMachineStatusResponse::STATE_RUNNING; +constexpr GetMachineStatusResponse_State GetMachineStatusResponse::State_MIN; +constexpr GetMachineStatusResponse_State GetMachineStatusResponse::State_MAX; +constexpr int GetMachineStatusResponse::State_ARRAYSIZE; +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ResourceStatus_State_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_robot_2fv1_2frobot_2eproto); + return file_level_enum_descriptors_robot_2fv1_2frobot_2eproto[1]; +} bool ResourceStatus_State_IsValid(int value) { - return 0 <= value && value <= 5; + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + return true; + default: + return false; + } } -#if (__cplusplus < 201703) && \ - (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr ResourceStatus_State ResourceStatus::STATE_UNSPECIFIED; constexpr ResourceStatus_State ResourceStatus::STATE_UNCONFIGURED; constexpr ResourceStatus_State ResourceStatus::STATE_CONFIGURING; @@ -1956,4737 +1620,5735 @@ constexpr ResourceStatus_State ResourceStatus::STATE_UNHEALTHY; constexpr ResourceStatus_State ResourceStatus::State_MIN; constexpr ResourceStatus_State ResourceStatus::State_MAX; constexpr int ResourceStatus::State_ARRAYSIZE; +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PeerConnectionType_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_robot_2fv1_2frobot_2eproto); + return file_level_enum_descriptors_robot_2fv1_2frobot_2eproto[2]; +} +bool PeerConnectionType_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } +} + + +// =================================================================== + +class TunnelRequest::_Internal { + public: +}; + +TunnelRequest::TunnelRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.TunnelRequest) +} +TunnelRequest::TunnelRequest(const TunnelRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + data_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + data_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_data().empty()) { + data_.Set(from._internal_data(), + GetArenaForAllocation()); + } + destination_port_ = from.destination_port_; + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.TunnelRequest) +} + +inline void TunnelRequest::SharedCtor() { +data_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + data_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +destination_port_ = 0u; +} + +TunnelRequest::~TunnelRequest() { + // @@protoc_insertion_point(destructor:viam.robot.v1.TunnelRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void TunnelRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + data_.Destroy(); +} + +void TunnelRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void TunnelRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.robot.v1.TunnelRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + data_.ClearToEmpty(); + destination_port_ = 0u; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* TunnelRequest::_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) { + // uint32 destination_port = 1 [json_name = "destinationPort"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + destination_port_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bytes data = 2 [json_name = "data"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_data(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + 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* TunnelRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.TunnelRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 destination_port = 1 [json_name = "destinationPort"]; + if (this->_internal_destination_port() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_destination_port(), target); + } + + // bytes data = 2 [json_name = "data"]; + if (!this->_internal_data().empty()) { + target = stream->WriteBytesMaybeAliased( + 2, this->_internal_data(), 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.robot.v1.TunnelRequest) + return target; +} + +size_t TunnelRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.TunnelRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // bytes data = 2 [json_name = "data"]; + if (!this->_internal_data().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_data()); + } + + // uint32 destination_port = 1 [json_name = "destinationPort"]; + if (this->_internal_destination_port() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_destination_port()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TunnelRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + TunnelRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TunnelRequest::GetClassData() const { return &_class_data_; } + +void TunnelRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void TunnelRequest::MergeFrom(const TunnelRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.TunnelRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_data().empty()) { + _internal_set_data(from._internal_data()); + } + if (from._internal_destination_port() != 0) { + _internal_set_destination_port(from._internal_destination_port()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void TunnelRequest::CopyFrom(const TunnelRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.TunnelRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TunnelRequest::IsInitialized() const { + return true; +} + +void TunnelRequest::InternalSwap(TunnelRequest* 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( + &data_, lhs_arena, + &other->data_, rhs_arena + ); + swap(destination_port_, other->destination_port_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata TunnelRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, + file_level_metadata_robot_2fv1_2frobot_2eproto[0]); +} + +// =================================================================== + +class TunnelResponse::_Internal { + public: +}; + +TunnelResponse::TunnelResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.TunnelResponse) +} +TunnelResponse::TunnelResponse(const TunnelResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + data_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + data_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_data().empty()) { + data_.Set(from._internal_data(), + GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.TunnelResponse) +} + +inline void TunnelResponse::SharedCtor() { +data_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + data_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +TunnelResponse::~TunnelResponse() { + // @@protoc_insertion_point(destructor:viam.robot.v1.TunnelResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void TunnelResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + data_.Destroy(); +} + +void TunnelResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void TunnelResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.robot.v1.TunnelResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + data_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* TunnelResponse::_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) { + // bytes data = 1 [json_name = "data"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_data(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + 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* TunnelResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.TunnelResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // bytes data = 1 [json_name = "data"]; + if (!this->_internal_data().empty()) { + target = stream->WriteBytesMaybeAliased( + 1, this->_internal_data(), 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.robot.v1.TunnelResponse) + return target; +} + +size_t TunnelResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.TunnelResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // bytes data = 1 [json_name = "data"]; + if (!this->_internal_data().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_data()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TunnelResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + TunnelResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TunnelResponse::GetClassData() const { return &_class_data_; } + +void TunnelResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void TunnelResponse::MergeFrom(const TunnelResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.TunnelResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_data().empty()) { + _internal_set_data(from._internal_data()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void TunnelResponse::CopyFrom(const TunnelResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.TunnelResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TunnelResponse::IsInitialized() const { + return true; +} + +void TunnelResponse::InternalSwap(TunnelResponse* 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( + &data_, lhs_arena, + &other->data_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata TunnelResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, + file_level_metadata_robot_2fv1_2frobot_2eproto[1]); +} + +// =================================================================== + +class FrameSystemConfig::_Internal { + public: + static const ::viam::common::v1::Transform& frame(const FrameSystemConfig* msg); + static const ::PROTOBUF_NAMESPACE_ID::Struct& kinematics(const FrameSystemConfig* msg); +}; + +const ::viam::common::v1::Transform& +FrameSystemConfig::_Internal::frame(const FrameSystemConfig* msg) { + return *msg->frame_; +} +const ::PROTOBUF_NAMESPACE_ID::Struct& +FrameSystemConfig::_Internal::kinematics(const FrameSystemConfig* msg) { + return *msg->kinematics_; +} +void FrameSystemConfig::clear_frame() { + if (GetArenaForAllocation() == nullptr && frame_ != nullptr) { + delete frame_; + } + frame_ = nullptr; +} +void FrameSystemConfig::clear_kinematics() { + if (GetArenaForAllocation() == nullptr && kinematics_ != nullptr) { + delete kinematics_; + } + kinematics_ = nullptr; +} +FrameSystemConfig::FrameSystemConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.FrameSystemConfig) +} +FrameSystemConfig::FrameSystemConfig(const FrameSystemConfig& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_frame()) { + frame_ = new ::viam::common::v1::Transform(*from.frame_); + } else { + frame_ = nullptr; + } + if (from._internal_has_kinematics()) { + kinematics_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.kinematics_); + } else { + kinematics_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.FrameSystemConfig) +} + +inline void FrameSystemConfig::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&frame_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&kinematics_) - + reinterpret_cast(&frame_)) + sizeof(kinematics_)); +} + +FrameSystemConfig::~FrameSystemConfig() { + // @@protoc_insertion_point(destructor:viam.robot.v1.FrameSystemConfig) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void FrameSystemConfig::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete frame_; + if (this != internal_default_instance()) delete kinematics_; +} + +void FrameSystemConfig::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void FrameSystemConfig::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.robot.v1.FrameSystemConfig) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && frame_ != nullptr) { + delete frame_; + } + frame_ = nullptr; + if (GetArenaForAllocation() == nullptr && kinematics_ != nullptr) { + delete kinematics_; + } + kinematics_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* FrameSystemConfig::_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.Transform frame = 1 [json_name = "frame"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_frame(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct kinematics = 2 [json_name = "kinematics"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_kinematics(), 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* FrameSystemConfig::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.FrameSystemConfig) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .viam.common.v1.Transform frame = 1 [json_name = "frame"]; + if (this->_internal_has_frame()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::frame(this), + _Internal::frame(this).GetCachedSize(), target, stream); + } + + // .google.protobuf.Struct kinematics = 2 [json_name = "kinematics"]; + if (this->_internal_has_kinematics()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::kinematics(this), + _Internal::kinematics(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.robot.v1.FrameSystemConfig) + return target; +} + +size_t FrameSystemConfig::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.FrameSystemConfig) + 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.Transform frame = 1 [json_name = "frame"]; + if (this->_internal_has_frame()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *frame_); + } + + // .google.protobuf.Struct kinematics = 2 [json_name = "kinematics"]; + if (this->_internal_has_kinematics()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *kinematics_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FrameSystemConfig::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + FrameSystemConfig::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FrameSystemConfig::GetClassData() const { return &_class_data_; } + +void FrameSystemConfig::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void FrameSystemConfig::MergeFrom(const FrameSystemConfig& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.FrameSystemConfig) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_frame()) { + _internal_mutable_frame()->::viam::common::v1::Transform::MergeFrom(from._internal_frame()); + } + if (from._internal_has_kinematics()) { + _internal_mutable_kinematics()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_kinematics()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void FrameSystemConfig::CopyFrom(const FrameSystemConfig& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.FrameSystemConfig) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool FrameSystemConfig::IsInitialized() const { + return true; +} + +void FrameSystemConfig::InternalSwap(FrameSystemConfig* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(FrameSystemConfig, kinematics_) + + sizeof(FrameSystemConfig::kinematics_) + - PROTOBUF_FIELD_OFFSET(FrameSystemConfig, frame_)>( + reinterpret_cast(&frame_), + reinterpret_cast(&other->frame_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata FrameSystemConfig::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, + file_level_metadata_robot_2fv1_2frobot_2eproto[2]); +} + +// =================================================================== + +class FrameSystemConfigRequest::_Internal { + public: +}; + +void FrameSystemConfigRequest::clear_supplemental_transforms() { + supplemental_transforms_.Clear(); +} +FrameSystemConfigRequest::FrameSystemConfigRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + supplemental_transforms_(arena) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.FrameSystemConfigRequest) +} +FrameSystemConfigRequest::FrameSystemConfigRequest(const FrameSystemConfigRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + supplemental_transforms_(from.supplemental_transforms_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.FrameSystemConfigRequest) +} + +inline void FrameSystemConfigRequest::SharedCtor() { +} + +FrameSystemConfigRequest::~FrameSystemConfigRequest() { + // @@protoc_insertion_point(destructor:viam.robot.v1.FrameSystemConfigRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void FrameSystemConfigRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void FrameSystemConfigRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void FrameSystemConfigRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.robot.v1.FrameSystemConfigRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + supplemental_transforms_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* FrameSystemConfigRequest::_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) { + // repeated .viam.common.v1.Transform supplemental_transforms = 1 [json_name = "supplementalTransforms"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_supplemental_transforms(), 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* FrameSystemConfigRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.FrameSystemConfigRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .viam.common.v1.Transform supplemental_transforms = 1 [json_name = "supplementalTransforms"]; + for (unsigned i = 0, + n = static_cast(this->_internal_supplemental_transforms_size()); i < n; i++) { + const auto& repfield = this->_internal_supplemental_transforms(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.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.robot.v1.FrameSystemConfigRequest) + return target; +} + +size_t FrameSystemConfigRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.FrameSystemConfigRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .viam.common.v1.Transform supplemental_transforms = 1 [json_name = "supplementalTransforms"]; + total_size += 1UL * this->_internal_supplemental_transforms_size(); + for (const auto& msg : this->supplemental_transforms_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FrameSystemConfigRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + FrameSystemConfigRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FrameSystemConfigRequest::GetClassData() const { return &_class_data_; } + +void FrameSystemConfigRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void FrameSystemConfigRequest::MergeFrom(const FrameSystemConfigRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.FrameSystemConfigRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + supplemental_transforms_.MergeFrom(from.supplemental_transforms_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void FrameSystemConfigRequest::CopyFrom(const FrameSystemConfigRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.FrameSystemConfigRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} -#endif // (__cplusplus < 201703) && - // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -const ::google::protobuf::EnumDescriptor* PeerConnectionType_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_robot_2fv1_2frobot_2eproto); - return file_level_enum_descriptors_robot_2fv1_2frobot_2eproto[1]; +bool FrameSystemConfigRequest::IsInitialized() const { + return true; } -PROTOBUF_CONSTINIT const uint32_t PeerConnectionType_internal_data_[] = { - 196608u, 0u, }; -bool PeerConnectionType_IsValid(int value) { - return 0 <= value && value <= 2; + +void FrameSystemConfigRequest::InternalSwap(FrameSystemConfigRequest* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + supplemental_transforms_.InternalSwap(&other->supplemental_transforms_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata FrameSystemConfigRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, + file_level_metadata_robot_2fv1_2frobot_2eproto[3]); } + // =================================================================== -class FrameSystemConfig::_Internal { +class FrameSystemConfigResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(FrameSystemConfig, _impl_._has_bits_); - static const ::viam::common::v1::Transform& frame(const FrameSystemConfig* msg); - static void set_has_frame(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::google::protobuf::Struct& kinematics(const FrameSystemConfig* msg); - static void set_has_kinematics(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } }; -const ::viam::common::v1::Transform& FrameSystemConfig::_Internal::frame(const FrameSystemConfig* msg) { - return *msg->_impl_.frame_; -} -const ::google::protobuf::Struct& FrameSystemConfig::_Internal::kinematics(const FrameSystemConfig* msg) { - return *msg->_impl_.kinematics_; -} -void FrameSystemConfig::clear_frame() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.frame_ != nullptr) _impl_.frame_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -void FrameSystemConfig::clear_kinematics() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.kinematics_ != nullptr) _impl_.kinematics_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; +FrameSystemConfigResponse::FrameSystemConfigResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + frame_system_configs_(arena) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.FrameSystemConfigResponse) } -FrameSystemConfig::FrameSystemConfig(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:viam.robot.v1.FrameSystemConfig) +FrameSystemConfigResponse::FrameSystemConfigResponse(const FrameSystemConfigResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + frame_system_configs_(from.frame_system_configs_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.FrameSystemConfigResponse) } -inline PROTOBUF_NDEBUG_INLINE FrameSystemConfig::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -FrameSystemConfig::FrameSystemConfig( - ::google::protobuf::Arena* arena, - const FrameSystemConfig& from) - : ::google::protobuf::Message(arena) { - FrameSystemConfig* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.frame_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::common::v1::Transform>(arena, *from._impl_.frame_) - : nullptr; - _impl_.kinematics_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.kinematics_) - : nullptr; - // @@protoc_insertion_point(copy_constructor:viam.robot.v1.FrameSystemConfig) +inline void FrameSystemConfigResponse::SharedCtor() { } -inline PROTOBUF_NDEBUG_INLINE FrameSystemConfig::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void FrameSystemConfig::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, frame_), - 0, - offsetof(Impl_, kinematics_) - - offsetof(Impl_, frame_) + - sizeof(Impl_::kinematics_)); -} -FrameSystemConfig::~FrameSystemConfig() { - // @@protoc_insertion_point(destructor:viam.robot.v1.FrameSystemConfig) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); +FrameSystemConfigResponse::~FrameSystemConfigResponse() { + // @@protoc_insertion_point(destructor:viam.robot.v1.FrameSystemConfigResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } -inline void FrameSystemConfig::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.frame_; - delete _impl_.kinematics_; - _impl_.~Impl_(); + +inline void FrameSystemConfigResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void FrameSystemConfig::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.robot.v1.FrameSystemConfig) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; +void FrameSystemConfigResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void FrameSystemConfigResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.robot.v1.FrameSystemConfigResponse) + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.frame_ != nullptr); - _impl_.frame_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.kinematics_ != nullptr); - _impl_.kinematics_->Clear(); + frame_system_configs_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* FrameSystemConfigResponse::_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) { + // repeated .viam.robot.v1.FrameSystemConfig frame_system_configs = 1 [json_name = "frameSystemConfigs"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_frame_system_configs(), 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; } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* FrameSystemConfig::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + 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* FrameSystemConfigResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.FrameSystemConfigResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 2, 0, 2> FrameSystemConfig::_table_ = { - { - PROTOBUF_FIELD_OFFSET(FrameSystemConfig, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_FrameSystemConfig_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .google.protobuf.Struct kinematics = 2 [json_name = "kinematics"]; - {::_pbi::TcParser::FastMtS1, - {18, 1, 1, PROTOBUF_FIELD_OFFSET(FrameSystemConfig, _impl_.kinematics_)}}, - // .viam.common.v1.Transform frame = 1 [json_name = "frame"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(FrameSystemConfig, _impl_.frame_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.common.v1.Transform frame = 1 [json_name = "frame"]; - {PROTOBUF_FIELD_OFFSET(FrameSystemConfig, _impl_.frame_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.protobuf.Struct kinematics = 2 [json_name = "kinematics"]; - {PROTOBUF_FIELD_OFFSET(FrameSystemConfig, _impl_.kinematics_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::common::v1::Transform>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - }}, -}; - -::uint8_t* FrameSystemConfig::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.FrameSystemConfig) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .viam.common.v1.Transform frame = 1 [json_name = "frame"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::frame(this), - _Internal::frame(this).GetCachedSize(), target, stream); - } - - // .google.protobuf.Struct kinematics = 2 [json_name = "kinematics"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::kinematics(this), - _Internal::kinematics(this).GetCachedSize(), target, stream); + // repeated .viam.robot.v1.FrameSystemConfig frame_system_configs = 1 [json_name = "frameSystemConfigs"]; + for (unsigned i = 0, + n = static_cast(this->_internal_frame_system_configs_size()); i < n; i++) { + const auto& repfield = this->_internal_frame_system_configs(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.robot.v1.FrameSystemConfig) + // @@protoc_insertion_point(serialize_to_array_end:viam.robot.v1.FrameSystemConfigResponse) return target; } -::size_t FrameSystemConfig::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.FrameSystemConfig) - ::size_t total_size = 0; +size_t FrameSystemConfigResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.FrameSystemConfigResponse) + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // .viam.common.v1.Transform frame = 1 [json_name = "frame"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.frame_); - } - - // .google.protobuf.Struct kinematics = 2 [json_name = "kinematics"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.kinematics_); - } - + // repeated .viam.robot.v1.FrameSystemConfig frame_system_configs = 1 [json_name = "frameSystemConfigs"]; + total_size += 1UL * this->_internal_frame_system_configs_size(); + for (const auto& msg : this->frame_system_configs_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData FrameSystemConfig::_class_data_ = { - FrameSystemConfig::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FrameSystemConfigResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + FrameSystemConfigResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* FrameSystemConfig::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FrameSystemConfigResponse::GetClassData() const { return &_class_data_; } + +void FrameSystemConfigResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void FrameSystemConfig::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.FrameSystemConfig) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void FrameSystemConfigResponse::MergeFrom(const FrameSystemConfigResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.FrameSystemConfigResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_frame()->::viam::common::v1::Transform::MergeFrom( - from._internal_frame()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_kinematics()->::google::protobuf::Struct::MergeFrom( - from._internal_kinematics()); - } - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + frame_system_configs_.MergeFrom(from.frame_system_configs_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void FrameSystemConfig::CopyFrom(const FrameSystemConfig& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.FrameSystemConfig) +void FrameSystemConfigResponse::CopyFrom(const FrameSystemConfigResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.FrameSystemConfigResponse) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool FrameSystemConfig::IsInitialized() const { +bool FrameSystemConfigResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* FrameSystemConfig::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void FrameSystemConfig::InternalSwap(FrameSystemConfig* PROTOBUF_RESTRICT other) { +void FrameSystemConfigResponse::InternalSwap(FrameSystemConfigResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(FrameSystemConfig, _impl_.kinematics_) - + sizeof(FrameSystemConfig::_impl_.kinematics_) - - PROTOBUF_FIELD_OFFSET(FrameSystemConfig, _impl_.frame_)>( - reinterpret_cast(&_impl_.frame_), - reinterpret_cast(&other->_impl_.frame_)); + frame_system_configs_.InternalSwap(&other->frame_system_configs_); } -::google::protobuf::Metadata FrameSystemConfig::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata FrameSystemConfigResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, - file_level_metadata_robot_2fv1_2frobot_2eproto[0]); + file_level_metadata_robot_2fv1_2frobot_2eproto[4]); } + // =================================================================== -class FrameSystemConfigRequest::_Internal { +class TransformPoseRequest::_Internal { public: + static const ::viam::common::v1::PoseInFrame& source(const TransformPoseRequest* msg); }; -void FrameSystemConfigRequest::clear_supplemental_transforms() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.supplemental_transforms_.Clear(); +const ::viam::common::v1::PoseInFrame& +TransformPoseRequest::_Internal::source(const TransformPoseRequest* msg) { + return *msg->source_; } -FrameSystemConfigRequest::FrameSystemConfigRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:viam.robot.v1.FrameSystemConfigRequest) +void TransformPoseRequest::clear_source() { + if (GetArenaForAllocation() == nullptr && source_ != nullptr) { + delete source_; + } + source_ = nullptr; } -inline PROTOBUF_NDEBUG_INLINE FrameSystemConfigRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : supplemental_transforms_{visibility, arena, from.supplemental_transforms_}, - _cached_size_{0} {} - -FrameSystemConfigRequest::FrameSystemConfigRequest( - ::google::protobuf::Arena* arena, - const FrameSystemConfigRequest& from) - : ::google::protobuf::Message(arena) { - FrameSystemConfigRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:viam.robot.v1.FrameSystemConfigRequest) +void TransformPoseRequest::clear_supplemental_transforms() { + supplemental_transforms_.Clear(); +} +TransformPoseRequest::TransformPoseRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + supplemental_transforms_(arena) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.TransformPoseRequest) +} +TransformPoseRequest::TransformPoseRequest(const TransformPoseRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + supplemental_transforms_(from.supplemental_transforms_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + destination_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + destination_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_destination().empty()) { + destination_.Set(from._internal_destination(), + GetArenaForAllocation()); + } + if (from._internal_has_source()) { + source_ = new ::viam::common::v1::PoseInFrame(*from.source_); + } else { + source_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.TransformPoseRequest) } -inline PROTOBUF_NDEBUG_INLINE FrameSystemConfigRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : supplemental_transforms_{visibility, arena}, - _cached_size_{0} {} -inline void FrameSystemConfigRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void TransformPoseRequest::SharedCtor() { +destination_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + destination_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +source_ = nullptr; } -FrameSystemConfigRequest::~FrameSystemConfigRequest() { - // @@protoc_insertion_point(destructor:viam.robot.v1.FrameSystemConfigRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + +TransformPoseRequest::~TransformPoseRequest() { + // @@protoc_insertion_point(destructor:viam.robot.v1.TransformPoseRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } -inline void FrameSystemConfigRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + +inline void TransformPoseRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + destination_.Destroy(); + if (this != internal_default_instance()) delete source_; } -PROTOBUF_NOINLINE void FrameSystemConfigRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.robot.v1.FrameSystemConfigRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; +void TransformPoseRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void TransformPoseRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.robot.v1.TransformPoseRequest) + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.supplemental_transforms_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* FrameSystemConfigRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + supplemental_transforms_.Clear(); + destination_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && source_ != nullptr) { + delete source_; + } + source_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* TransformPoseRequest::_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.PoseInFrame source = 1 [json_name = "source"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_source(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string destination = 2 [json_name = "destination"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_destination(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.robot.v1.TransformPoseRequest.destination")); + } else + goto handle_unusual; + continue; + // repeated .viam.common.v1.Transform supplemental_transforms = 3 [json_name = "supplementalTransforms"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_supplemental_transforms(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(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* TransformPoseRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.TransformPoseRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> FrameSystemConfigRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_FrameSystemConfigRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.common.v1.Transform supplemental_transforms = 1 [json_name = "supplementalTransforms"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(FrameSystemConfigRequest, _impl_.supplemental_transforms_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.common.v1.Transform supplemental_transforms = 1 [json_name = "supplementalTransforms"]; - {PROTOBUF_FIELD_OFFSET(FrameSystemConfigRequest, _impl_.supplemental_transforms_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::common::v1::Transform>()}, - }}, {{ - }}, -}; - -::uint8_t* FrameSystemConfigRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.FrameSystemConfigRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + // .viam.common.v1.PoseInFrame source = 1 [json_name = "source"]; + if (this->_internal_has_source()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::source(this), + _Internal::source(this).GetCachedSize(), target, stream); + } - // repeated .viam.common.v1.Transform supplemental_transforms = 1 [json_name = "supplementalTransforms"]; + // string destination = 2 [json_name = "destination"]; + if (!this->_internal_destination().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_destination().data(), static_cast(this->_internal_destination().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.robot.v1.TransformPoseRequest.destination"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_destination(), target); + } + + // repeated .viam.common.v1.Transform supplemental_transforms = 3 [json_name = "supplementalTransforms"]; for (unsigned i = 0, n = static_cast(this->_internal_supplemental_transforms_size()); i < n; i++) { - const auto& repfield = this->_internal_supplemental_transforms().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + const auto& repfield = this->_internal_supplemental_transforms(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.robot.v1.FrameSystemConfigRequest) + // @@protoc_insertion_point(serialize_to_array_end:viam.robot.v1.TransformPoseRequest) return target; } -::size_t FrameSystemConfigRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.FrameSystemConfigRequest) - ::size_t total_size = 0; +size_t TransformPoseRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.TransformPoseRequest) + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated .viam.common.v1.Transform supplemental_transforms = 1 [json_name = "supplementalTransforms"]; + // repeated .viam.common.v1.Transform supplemental_transforms = 3 [json_name = "supplementalTransforms"]; total_size += 1UL * this->_internal_supplemental_transforms_size(); - for (const auto& msg : this->_internal_supplemental_transforms()) { + for (const auto& msg : this->supplemental_transforms_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // string destination = 2 [json_name = "destination"]; + if (!this->_internal_destination().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_destination()); + } + + // .viam.common.v1.PoseInFrame source = 1 [json_name = "source"]; + if (this->_internal_has_source()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *source_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData FrameSystemConfigRequest::_class_data_ = { - FrameSystemConfigRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TransformPoseRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + TransformPoseRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* FrameSystemConfigRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TransformPoseRequest::GetClassData() const { return &_class_data_; } + +void TransformPoseRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void FrameSystemConfigRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.FrameSystemConfigRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void TransformPoseRequest::MergeFrom(const TransformPoseRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.TransformPoseRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_supplemental_transforms()->MergeFrom( - from._internal_supplemental_transforms()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + supplemental_transforms_.MergeFrom(from.supplemental_transforms_); + if (!from._internal_destination().empty()) { + _internal_set_destination(from._internal_destination()); + } + if (from._internal_has_source()) { + _internal_mutable_source()->::viam::common::v1::PoseInFrame::MergeFrom(from._internal_source()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void FrameSystemConfigRequest::CopyFrom(const FrameSystemConfigRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.FrameSystemConfigRequest) +void TransformPoseRequest::CopyFrom(const TransformPoseRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.TransformPoseRequest) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool FrameSystemConfigRequest::IsInitialized() const { +bool TransformPoseRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* FrameSystemConfigRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void FrameSystemConfigRequest::InternalSwap(FrameSystemConfigRequest* PROTOBUF_RESTRICT other) { +void TransformPoseRequest::InternalSwap(TransformPoseRequest* other) { using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.supplemental_transforms_.InternalSwap(&other->_impl_.supplemental_transforms_); + supplemental_transforms_.InternalSwap(&other->supplemental_transforms_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &destination_, lhs_arena, + &other->destination_, rhs_arena + ); + swap(source_, other->source_); } -::google::protobuf::Metadata FrameSystemConfigRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata TransformPoseRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, - file_level_metadata_robot_2fv1_2frobot_2eproto[1]); + file_level_metadata_robot_2fv1_2frobot_2eproto[5]); } + // =================================================================== -class FrameSystemConfigResponse::_Internal { +class TransformPoseResponse::_Internal { public: + static const ::viam::common::v1::PoseInFrame& pose(const TransformPoseResponse* msg); }; -FrameSystemConfigResponse::FrameSystemConfigResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:viam.robot.v1.FrameSystemConfigResponse) +const ::viam::common::v1::PoseInFrame& +TransformPoseResponse::_Internal::pose(const TransformPoseResponse* msg) { + return *msg->pose_; } -inline PROTOBUF_NDEBUG_INLINE FrameSystemConfigResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : frame_system_configs_{visibility, arena, from.frame_system_configs_}, - _cached_size_{0} {} - -FrameSystemConfigResponse::FrameSystemConfigResponse( - ::google::protobuf::Arena* arena, - const FrameSystemConfigResponse& from) - : ::google::protobuf::Message(arena) { - FrameSystemConfigResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:viam.robot.v1.FrameSystemConfigResponse) +void TransformPoseResponse::clear_pose() { + if (GetArenaForAllocation() == nullptr && pose_ != nullptr) { + delete pose_; + } + pose_ = nullptr; +} +TransformPoseResponse::TransformPoseResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.TransformPoseResponse) +} +TransformPoseResponse::TransformPoseResponse(const TransformPoseResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_pose()) { + pose_ = new ::viam::common::v1::PoseInFrame(*from.pose_); + } else { + pose_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.TransformPoseResponse) } -inline PROTOBUF_NDEBUG_INLINE FrameSystemConfigResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : frame_system_configs_{visibility, arena}, - _cached_size_{0} {} -inline void FrameSystemConfigResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void TransformPoseResponse::SharedCtor() { +pose_ = nullptr; } -FrameSystemConfigResponse::~FrameSystemConfigResponse() { - // @@protoc_insertion_point(destructor:viam.robot.v1.FrameSystemConfigResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + +TransformPoseResponse::~TransformPoseResponse() { + // @@protoc_insertion_point(destructor:viam.robot.v1.TransformPoseResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } -inline void FrameSystemConfigResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + +inline void TransformPoseResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete pose_; } -PROTOBUF_NOINLINE void FrameSystemConfigResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.robot.v1.FrameSystemConfigResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; +void TransformPoseResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void TransformPoseResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.robot.v1.TransformPoseResponse) + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.frame_system_configs_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* FrameSystemConfigResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + if (GetArenaForAllocation() == nullptr && pose_ != nullptr) { + delete pose_; + } + pose_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* TransformPoseResponse::_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.PoseInFrame pose = 1 [json_name = "pose"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_pose(), 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* TransformPoseResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.TransformPoseResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> FrameSystemConfigResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_FrameSystemConfigResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.robot.v1.FrameSystemConfig frame_system_configs = 1 [json_name = "frameSystemConfigs"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(FrameSystemConfigResponse, _impl_.frame_system_configs_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.robot.v1.FrameSystemConfig frame_system_configs = 1 [json_name = "frameSystemConfigs"]; - {PROTOBUF_FIELD_OFFSET(FrameSystemConfigResponse, _impl_.frame_system_configs_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::robot::v1::FrameSystemConfig>()}, - }}, {{ - }}, -}; - -::uint8_t* FrameSystemConfigResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.FrameSystemConfigResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // repeated .viam.robot.v1.FrameSystemConfig frame_system_configs = 1 [json_name = "frameSystemConfigs"]; - for (unsigned i = 0, - n = static_cast(this->_internal_frame_system_configs_size()); i < n; i++) { - const auto& repfield = this->_internal_frame_system_configs().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + // .viam.common.v1.PoseInFrame pose = 1 [json_name = "pose"]; + if (this->_internal_has_pose()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::pose(this), + _Internal::pose(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.robot.v1.FrameSystemConfigResponse) + // @@protoc_insertion_point(serialize_to_array_end:viam.robot.v1.TransformPoseResponse) return target; } -::size_t FrameSystemConfigResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.FrameSystemConfigResponse) - ::size_t total_size = 0; +size_t TransformPoseResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.TransformPoseResponse) + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated .viam.robot.v1.FrameSystemConfig frame_system_configs = 1 [json_name = "frameSystemConfigs"]; - total_size += 1UL * this->_internal_frame_system_configs_size(); - for (const auto& msg : this->_internal_frame_system_configs()) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + // .viam.common.v1.PoseInFrame pose = 1 [json_name = "pose"]; + if (this->_internal_has_pose()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *pose_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData FrameSystemConfigResponse::_class_data_ = { - FrameSystemConfigResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TransformPoseResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + TransformPoseResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* FrameSystemConfigResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TransformPoseResponse::GetClassData() const { return &_class_data_; } + +void TransformPoseResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void FrameSystemConfigResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.FrameSystemConfigResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void TransformPoseResponse::MergeFrom(const TransformPoseResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.TransformPoseResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_frame_system_configs()->MergeFrom( - from._internal_frame_system_configs()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_pose()) { + _internal_mutable_pose()->::viam::common::v1::PoseInFrame::MergeFrom(from._internal_pose()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void FrameSystemConfigResponse::CopyFrom(const FrameSystemConfigResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.FrameSystemConfigResponse) +void TransformPoseResponse::CopyFrom(const TransformPoseResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.TransformPoseResponse) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool FrameSystemConfigResponse::IsInitialized() const { +bool TransformPoseResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* FrameSystemConfigResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void FrameSystemConfigResponse::InternalSwap(FrameSystemConfigResponse* PROTOBUF_RESTRICT other) { +void TransformPoseResponse::InternalSwap(TransformPoseResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.frame_system_configs_.InternalSwap(&other->_impl_.frame_system_configs_); + swap(pose_, other->pose_); } -::google::protobuf::Metadata FrameSystemConfigResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata TransformPoseResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, - file_level_metadata_robot_2fv1_2frobot_2eproto[2]); + file_level_metadata_robot_2fv1_2frobot_2eproto[6]); } + // =================================================================== -class TransformPoseRequest::_Internal { +class TransformPCDRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(TransformPoseRequest, _impl_._has_bits_); - static const ::viam::common::v1::PoseInFrame& source(const TransformPoseRequest* msg); - static void set_has_source(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::common::v1::PoseInFrame& TransformPoseRequest::_Internal::source(const TransformPoseRequest* msg) { - return *msg->_impl_.source_; +TransformPCDRequest::TransformPCDRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.TransformPCDRequest) } -void TransformPoseRequest::clear_source() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.source_ != nullptr) _impl_.source_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; +TransformPCDRequest::TransformPCDRequest(const TransformPCDRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + point_cloud_pcd_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + point_cloud_pcd_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_point_cloud_pcd().empty()) { + point_cloud_pcd_.Set(from._internal_point_cloud_pcd(), + GetArenaForAllocation()); + } + source_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + source_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_source().empty()) { + source_.Set(from._internal_source(), + GetArenaForAllocation()); + } + destination_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + destination_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_destination().empty()) { + destination_.Set(from._internal_destination(), + GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.TransformPCDRequest) } -void TransformPoseRequest::clear_supplemental_transforms() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.supplemental_transforms_.Clear(); + +inline void TransformPCDRequest::SharedCtor() { +point_cloud_pcd_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + point_cloud_pcd_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +source_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + source_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +destination_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + destination_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } -TransformPoseRequest::TransformPoseRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:viam.robot.v1.TransformPoseRequest) + +TransformPCDRequest::~TransformPCDRequest() { + // @@protoc_insertion_point(destructor:viam.robot.v1.TransformPCDRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); } -inline PROTOBUF_NDEBUG_INLINE TransformPoseRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - supplemental_transforms_{visibility, arena, from.supplemental_transforms_}, - destination_(arena, from.destination_) {} - -TransformPoseRequest::TransformPoseRequest( - ::google::protobuf::Arena* arena, - const TransformPoseRequest& from) - : ::google::protobuf::Message(arena) { - TransformPoseRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.source_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::common::v1::PoseInFrame>(arena, *from._impl_.source_) - : nullptr; - // @@protoc_insertion_point(copy_constructor:viam.robot.v1.TransformPoseRequest) +inline void TransformPCDRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + point_cloud_pcd_.Destroy(); + source_.Destroy(); + destination_.Destroy(); } -inline PROTOBUF_NDEBUG_INLINE TransformPoseRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - supplemental_transforms_{visibility, arena}, - destination_(arena) {} -inline void TransformPoseRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.source_ = {}; -} -TransformPoseRequest::~TransformPoseRequest() { - // @@protoc_insertion_point(destructor:viam.robot.v1.TransformPoseRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void TransformPoseRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.destination_.Destroy(); - delete _impl_.source_; - _impl_.~Impl_(); +void TransformPCDRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void TransformPoseRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.robot.v1.TransformPoseRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; +void TransformPCDRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.robot.v1.TransformPCDRequest) + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.supplemental_transforms_.Clear(); - _impl_.destination_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.source_ != nullptr); - _impl_.source_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* TransformPoseRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + point_cloud_pcd_.ClearToEmpty(); + source_.ClearToEmpty(); + destination_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* TransformPCDRequest::_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) { + // bytes point_cloud_pcd = 1 [json_name = "pointCloudPcd"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_point_cloud_pcd(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string source = 2 [json_name = "source"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_source(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.robot.v1.TransformPCDRequest.source")); + } else + goto handle_unusual; + continue; + // string destination = 3 [json_name = "destination"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_destination(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.robot.v1.TransformPCDRequest.destination")); + } 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* TransformPCDRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.TransformPCDRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 2, 54, 2> TransformPoseRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(TransformPoseRequest, _impl_._has_bits_), - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_TransformPoseRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // .viam.common.v1.PoseInFrame source = 1 [json_name = "source"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(TransformPoseRequest, _impl_.source_)}}, - // string destination = 2 [json_name = "destination"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(TransformPoseRequest, _impl_.destination_)}}, - // repeated .viam.common.v1.Transform supplemental_transforms = 3 [json_name = "supplementalTransforms"]; - {::_pbi::TcParser::FastMtR1, - {26, 63, 1, PROTOBUF_FIELD_OFFSET(TransformPoseRequest, _impl_.supplemental_transforms_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.common.v1.PoseInFrame source = 1 [json_name = "source"]; - {PROTOBUF_FIELD_OFFSET(TransformPoseRequest, _impl_.source_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // string destination = 2 [json_name = "destination"]; - {PROTOBUF_FIELD_OFFSET(TransformPoseRequest, _impl_.destination_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated .viam.common.v1.Transform supplemental_transforms = 3 [json_name = "supplementalTransforms"]; - {PROTOBUF_FIELD_OFFSET(TransformPoseRequest, _impl_.supplemental_transforms_), -1, 1, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::common::v1::PoseInFrame>()}, - {::_pbi::TcParser::GetTable<::viam::common::v1::Transform>()}, - }}, {{ - "\42\0\13\0\0\0\0\0" - "viam.robot.v1.TransformPoseRequest" - "destination" - }}, -}; - -::uint8_t* TransformPoseRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.TransformPoseRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .viam.common.v1.PoseInFrame source = 1 [json_name = "source"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::source(this), - _Internal::source(this).GetCachedSize(), target, stream); + // bytes point_cloud_pcd = 1 [json_name = "pointCloudPcd"]; + if (!this->_internal_point_cloud_pcd().empty()) { + target = stream->WriteBytesMaybeAliased( + 1, this->_internal_point_cloud_pcd(), target); } - // string destination = 2 [json_name = "destination"]; - if (!this->_internal_destination().empty()) { - const std::string& _s = this->_internal_destination(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.robot.v1.TransformPoseRequest.destination"); - target = stream->WriteStringMaybeAliased(2, _s, target); + // string source = 2 [json_name = "source"]; + if (!this->_internal_source().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_source().data(), static_cast(this->_internal_source().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.robot.v1.TransformPCDRequest.source"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_source(), target); } - // repeated .viam.common.v1.Transform supplemental_transforms = 3 [json_name = "supplementalTransforms"]; - for (unsigned i = 0, - n = static_cast(this->_internal_supplemental_transforms_size()); i < n; i++) { - const auto& repfield = this->_internal_supplemental_transforms().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream); + // string destination = 3 [json_name = "destination"]; + if (!this->_internal_destination().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_destination().data(), static_cast(this->_internal_destination().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.robot.v1.TransformPCDRequest.destination"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_destination(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.robot.v1.TransformPoseRequest) + // @@protoc_insertion_point(serialize_to_array_end:viam.robot.v1.TransformPCDRequest) return target; } -::size_t TransformPoseRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.TransformPoseRequest) - ::size_t total_size = 0; +size_t TransformPCDRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.TransformPCDRequest) + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated .viam.common.v1.Transform supplemental_transforms = 3 [json_name = "supplementalTransforms"]; - total_size += 1UL * this->_internal_supplemental_transforms_size(); - for (const auto& msg : this->_internal_supplemental_transforms()) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + // bytes point_cloud_pcd = 1 [json_name = "pointCloudPcd"]; + if (!this->_internal_point_cloud_pcd().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_point_cloud_pcd()); } - // string destination = 2 [json_name = "destination"]; - if (!this->_internal_destination().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_destination()); + + // string source = 2 [json_name = "source"]; + if (!this->_internal_source().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_source()); } - // .viam.common.v1.PoseInFrame source = 1 [json_name = "source"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.source_); + // string destination = 3 [json_name = "destination"]; + if (!this->_internal_destination().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_destination()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData TransformPoseRequest::_class_data_ = { - TransformPoseRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TransformPCDRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + TransformPCDRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* TransformPoseRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TransformPCDRequest::GetClassData() const { return &_class_data_; } + +void TransformPCDRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void TransformPoseRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.TransformPoseRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void TransformPCDRequest::MergeFrom(const TransformPCDRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.TransformPCDRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_supplemental_transforms()->MergeFrom( - from._internal_supplemental_transforms()); - if (!from._internal_destination().empty()) { - _this->_internal_set_destination(from._internal_destination()); + if (!from._internal_point_cloud_pcd().empty()) { + _internal_set_point_cloud_pcd(from._internal_point_cloud_pcd()); + } + if (!from._internal_source().empty()) { + _internal_set_source(from._internal_source()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_source()->::viam::common::v1::PoseInFrame::MergeFrom( - from._internal_source()); + if (!from._internal_destination().empty()) { + _internal_set_destination(from._internal_destination()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void TransformPoseRequest::CopyFrom(const TransformPoseRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.TransformPoseRequest) +void TransformPCDRequest::CopyFrom(const TransformPCDRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.TransformPCDRequest) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool TransformPoseRequest::IsInitialized() const { +bool TransformPCDRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* TransformPoseRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void TransformPoseRequest::InternalSwap(TransformPoseRequest* PROTOBUF_RESTRICT other) { +void TransformPCDRequest::InternalSwap(TransformPCDRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.supplemental_transforms_.InternalSwap(&other->_impl_.supplemental_transforms_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.destination_, &other->_impl_.destination_, arena); - swap(_impl_.source_, other->_impl_.source_); -} - -::google::protobuf::Metadata TransformPoseRequest::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &point_cloud_pcd_, lhs_arena, + &other->point_cloud_pcd_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &source_, lhs_arena, + &other->source_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &destination_, lhs_arena, + &other->destination_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata TransformPCDRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, - file_level_metadata_robot_2fv1_2frobot_2eproto[3]); + file_level_metadata_robot_2fv1_2frobot_2eproto[7]); } + // =================================================================== -class TransformPoseResponse::_Internal { +class TransformPCDResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(TransformPoseResponse, _impl_._has_bits_); - static const ::viam::common::v1::PoseInFrame& pose(const TransformPoseResponse* msg); - static void set_has_pose(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::common::v1::PoseInFrame& TransformPoseResponse::_Internal::pose(const TransformPoseResponse* msg) { - return *msg->_impl_.pose_; -} -void TransformPoseResponse::clear_pose() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.pose_ != nullptr) _impl_.pose_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; +TransformPCDResponse::TransformPCDResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.TransformPCDResponse) } -TransformPoseResponse::TransformPoseResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:viam.robot.v1.TransformPoseResponse) +TransformPCDResponse::TransformPCDResponse(const TransformPCDResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + point_cloud_pcd_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + point_cloud_pcd_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_point_cloud_pcd().empty()) { + point_cloud_pcd_.Set(from._internal_point_cloud_pcd(), + GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.TransformPCDResponse) } -inline PROTOBUF_NDEBUG_INLINE TransformPoseResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -TransformPoseResponse::TransformPoseResponse( - ::google::protobuf::Arena* arena, - const TransformPoseResponse& from) - : ::google::protobuf::Message(arena) { - TransformPoseResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.pose_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::common::v1::PoseInFrame>(arena, *from._impl_.pose_) - : nullptr; - // @@protoc_insertion_point(copy_constructor:viam.robot.v1.TransformPoseResponse) +inline void TransformPCDResponse::SharedCtor() { +point_cloud_pcd_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + point_cloud_pcd_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } -inline PROTOBUF_NDEBUG_INLINE TransformPoseResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void TransformPoseResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.pose_ = {}; -} -TransformPoseResponse::~TransformPoseResponse() { - // @@protoc_insertion_point(destructor:viam.robot.v1.TransformPoseResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); +TransformPCDResponse::~TransformPCDResponse() { + // @@protoc_insertion_point(destructor:viam.robot.v1.TransformPCDResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } -inline void TransformPoseResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.pose_; - _impl_.~Impl_(); + +inline void TransformPCDResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + point_cloud_pcd_.Destroy(); } -PROTOBUF_NOINLINE void TransformPoseResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.robot.v1.TransformPoseResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; +void TransformPCDResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void TransformPCDResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.robot.v1.TransformPCDResponse) + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.pose_ != nullptr); - _impl_.pose_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* TransformPoseResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + point_cloud_pcd_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* TransformPCDResponse::_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) { + // bytes point_cloud_pcd = 1 [json_name = "pointCloudPcd"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_point_cloud_pcd(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + 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* TransformPCDResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.TransformPCDResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> TransformPoseResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(TransformPoseResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_TransformPoseResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.common.v1.PoseInFrame pose = 1 [json_name = "pose"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(TransformPoseResponse, _impl_.pose_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.common.v1.PoseInFrame pose = 1 [json_name = "pose"]; - {PROTOBUF_FIELD_OFFSET(TransformPoseResponse, _impl_.pose_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::common::v1::PoseInFrame>()}, - }}, {{ - }}, -}; - -::uint8_t* TransformPoseResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.TransformPoseResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .viam.common.v1.PoseInFrame pose = 1 [json_name = "pose"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::pose(this), - _Internal::pose(this).GetCachedSize(), target, stream); + // bytes point_cloud_pcd = 1 [json_name = "pointCloudPcd"]; + if (!this->_internal_point_cloud_pcd().empty()) { + target = stream->WriteBytesMaybeAliased( + 1, this->_internal_point_cloud_pcd(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.robot.v1.TransformPoseResponse) + // @@protoc_insertion_point(serialize_to_array_end:viam.robot.v1.TransformPCDResponse) return target; } -::size_t TransformPoseResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.TransformPoseResponse) - ::size_t total_size = 0; +size_t TransformPCDResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.TransformPCDResponse) + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .viam.common.v1.PoseInFrame pose = 1 [json_name = "pose"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.pose_); + // bytes point_cloud_pcd = 1 [json_name = "pointCloudPcd"]; + if (!this->_internal_point_cloud_pcd().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_point_cloud_pcd()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData TransformPoseResponse::_class_data_ = { - TransformPoseResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TransformPCDResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + TransformPCDResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* TransformPoseResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TransformPCDResponse::GetClassData() const { return &_class_data_; } + +void TransformPCDResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void TransformPoseResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.TransformPoseResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void TransformPCDResponse::MergeFrom(const TransformPCDResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.TransformPCDResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_pose()->::viam::common::v1::PoseInFrame::MergeFrom( - from._internal_pose()); + if (!from._internal_point_cloud_pcd().empty()) { + _internal_set_point_cloud_pcd(from._internal_point_cloud_pcd()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void TransformPoseResponse::CopyFrom(const TransformPoseResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.TransformPoseResponse) +void TransformPCDResponse::CopyFrom(const TransformPCDResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.TransformPCDResponse) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool TransformPoseResponse::IsInitialized() const { +bool TransformPCDResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* TransformPoseResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void TransformPoseResponse::InternalSwap(TransformPoseResponse* PROTOBUF_RESTRICT other) { +void TransformPCDResponse::InternalSwap(TransformPCDResponse* other) { using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.pose_, other->_impl_.pose_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &point_cloud_pcd_, lhs_arena, + &other->point_cloud_pcd_, rhs_arena + ); } -::google::protobuf::Metadata TransformPoseResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata TransformPCDResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, - file_level_metadata_robot_2fv1_2frobot_2eproto[4]); + file_level_metadata_robot_2fv1_2frobot_2eproto[8]); } + // =================================================================== -class TransformPCDRequest::_Internal { +class ResourceNamesRequest::_Internal { public: }; -TransformPCDRequest::TransformPCDRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:viam.robot.v1.TransformPCDRequest) +ResourceNamesRequest::ResourceNamesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.ResourceNamesRequest) +} +ResourceNamesRequest::ResourceNamesRequest(const ResourceNamesRequest& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.ResourceNamesRequest) } -inline PROTOBUF_NDEBUG_INLINE TransformPCDRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : point_cloud_pcd_(arena, from.point_cloud_pcd_), - source_(arena, from.source_), - destination_(arena, from.destination_), - _cached_size_{0} {} - -TransformPCDRequest::TransformPCDRequest( - ::google::protobuf::Arena* arena, - const TransformPCDRequest& from) - : ::google::protobuf::Message(arena) { - TransformPCDRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - // @@protoc_insertion_point(copy_constructor:viam.robot.v1.TransformPCDRequest) + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ResourceNamesRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ResourceNamesRequest::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata ResourceNamesRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, + file_level_metadata_robot_2fv1_2frobot_2eproto[9]); } -inline PROTOBUF_NDEBUG_INLINE TransformPCDRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : point_cloud_pcd_(arena), - source_(arena), - destination_(arena), - _cached_size_{0} {} -inline void TransformPCDRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +// =================================================================== + +class ResourceNamesResponse::_Internal { + public: +}; + +void ResourceNamesResponse::clear_resources() { + resources_.Clear(); } -TransformPCDRequest::~TransformPCDRequest() { - // @@protoc_insertion_point(destructor:viam.robot.v1.TransformPCDRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); +ResourceNamesResponse::ResourceNamesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + resources_(arena) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.ResourceNamesResponse) } -inline void TransformPCDRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.point_cloud_pcd_.Destroy(); - _impl_.source_.Destroy(); - _impl_.destination_.Destroy(); - _impl_.~Impl_(); +ResourceNamesResponse::ResourceNamesResponse(const ResourceNamesResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + resources_(from.resources_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.ResourceNamesResponse) } -PROTOBUF_NOINLINE void TransformPCDRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.robot.v1.TransformPCDRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; +inline void ResourceNamesResponse::SharedCtor() { +} - _impl_.point_cloud_pcd_.ClearToEmpty(); - _impl_.source_.ClearToEmpty(); - _impl_.destination_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +ResourceNamesResponse::~ResourceNamesResponse() { + // @@protoc_insertion_point(destructor:viam.robot.v1.ResourceNamesResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); } -const char* TransformPCDRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +inline void ResourceNamesResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } +void ResourceNamesResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 59, 2> TransformPCDRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_TransformPCDRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // bytes point_cloud_pcd = 1 [json_name = "pointCloudPcd"]; - {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(TransformPCDRequest, _impl_.point_cloud_pcd_)}}, - // string source = 2 [json_name = "source"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(TransformPCDRequest, _impl_.source_)}}, - // string destination = 3 [json_name = "destination"]; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(TransformPCDRequest, _impl_.destination_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bytes point_cloud_pcd = 1 [json_name = "pointCloudPcd"]; - {PROTOBUF_FIELD_OFFSET(TransformPCDRequest, _impl_.point_cloud_pcd_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // string source = 2 [json_name = "source"]; - {PROTOBUF_FIELD_OFFSET(TransformPCDRequest, _impl_.source_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string destination = 3 [json_name = "destination"]; - {PROTOBUF_FIELD_OFFSET(TransformPCDRequest, _impl_.destination_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\41\0\6\13\0\0\0\0" - "viam.robot.v1.TransformPCDRequest" - "source" - "destination" - }}, -}; - -::uint8_t* TransformPCDRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.TransformPCDRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; +void ResourceNamesResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.robot.v1.ResourceNamesResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; - // bytes point_cloud_pcd = 1 [json_name = "pointCloudPcd"]; - if (!this->_internal_point_cloud_pcd().empty()) { - const std::string& _s = this->_internal_point_cloud_pcd(); - target = stream->WriteBytesMaybeAliased(1, _s, target); - } + resources_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ResourceNamesResponse::_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) { + // repeated .viam.common.v1.ResourceName resources = 1 [json_name = "resources"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_resources(), 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_ +} - // string source = 2 [json_name = "source"]; - if (!this->_internal_source().empty()) { - const std::string& _s = this->_internal_source(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.robot.v1.TransformPCDRequest.source"); - target = stream->WriteStringMaybeAliased(2, _s, target); - } +uint8_t* ResourceNamesResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.ResourceNamesResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - // string destination = 3 [json_name = "destination"]; - if (!this->_internal_destination().empty()) { - const std::string& _s = this->_internal_destination(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.robot.v1.TransformPCDRequest.destination"); - target = stream->WriteStringMaybeAliased(3, _s, target); + // repeated .viam.common.v1.ResourceName resources = 1 [json_name = "resources"]; + for (unsigned i = 0, + n = static_cast(this->_internal_resources_size()); i < n; i++) { + const auto& repfield = this->_internal_resources(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.robot.v1.TransformPCDRequest) + // @@protoc_insertion_point(serialize_to_array_end:viam.robot.v1.ResourceNamesResponse) return target; } -::size_t TransformPCDRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.TransformPCDRequest) - ::size_t total_size = 0; +size_t ResourceNamesResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.ResourceNamesResponse) + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // bytes point_cloud_pcd = 1 [json_name = "pointCloudPcd"]; - if (!this->_internal_point_cloud_pcd().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_point_cloud_pcd()); - } - - // string source = 2 [json_name = "source"]; - if (!this->_internal_source().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_source()); - } - - // string destination = 3 [json_name = "destination"]; - if (!this->_internal_destination().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_destination()); + // repeated .viam.common.v1.ResourceName resources = 1 [json_name = "resources"]; + total_size += 1UL * this->_internal_resources_size(); + for (const auto& msg : this->resources_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData TransformPCDRequest::_class_data_ = { - TransformPCDRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ResourceNamesResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ResourceNamesResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* TransformPCDRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ResourceNamesResponse::GetClassData() const { return &_class_data_; } + +void ResourceNamesResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void TransformPCDRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.TransformPCDRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ResourceNamesResponse::MergeFrom(const ResourceNamesResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.ResourceNamesResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_point_cloud_pcd().empty()) { - _this->_internal_set_point_cloud_pcd(from._internal_point_cloud_pcd()); - } - if (!from._internal_source().empty()) { - _this->_internal_set_source(from._internal_source()); - } - if (!from._internal_destination().empty()) { - _this->_internal_set_destination(from._internal_destination()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + resources_.MergeFrom(from.resources_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void TransformPCDRequest::CopyFrom(const TransformPCDRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.TransformPCDRequest) +void ResourceNamesResponse::CopyFrom(const ResourceNamesResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.ResourceNamesResponse) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool TransformPCDRequest::IsInitialized() const { +bool ResourceNamesResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* TransformPCDRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void TransformPCDRequest::InternalSwap(TransformPCDRequest* PROTOBUF_RESTRICT other) { +void ResourceNamesResponse::InternalSwap(ResourceNamesResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.point_cloud_pcd_, &other->_impl_.point_cloud_pcd_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.source_, &other->_impl_.source_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.destination_, &other->_impl_.destination_, arena); + resources_.InternalSwap(&other->resources_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ResourceNamesResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, + file_level_metadata_robot_2fv1_2frobot_2eproto[10]); +} + +// =================================================================== + +class ResourceRPCSubtype::_Internal { + public: + static const ::viam::common::v1::ResourceName& subtype(const ResourceRPCSubtype* msg); +}; + +const ::viam::common::v1::ResourceName& +ResourceRPCSubtype::_Internal::subtype(const ResourceRPCSubtype* msg) { + return *msg->subtype_; +} +void ResourceRPCSubtype::clear_subtype() { + if (GetArenaForAllocation() == nullptr && subtype_ != nullptr) { + delete subtype_; + } + subtype_ = nullptr; +} +ResourceRPCSubtype::ResourceRPCSubtype(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.ResourceRPCSubtype) +} +ResourceRPCSubtype::ResourceRPCSubtype(const ResourceRPCSubtype& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + proto_service_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + proto_service_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_proto_service().empty()) { + proto_service_.Set(from._internal_proto_service(), + GetArenaForAllocation()); + } + if (from._internal_has_subtype()) { + subtype_ = new ::viam::common::v1::ResourceName(*from.subtype_); + } else { + subtype_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.ResourceRPCSubtype) } -::google::protobuf::Metadata TransformPCDRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, - file_level_metadata_robot_2fv1_2frobot_2eproto[5]); +inline void ResourceRPCSubtype::SharedCtor() { +proto_service_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + proto_service_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +subtype_ = nullptr; } -// =================================================================== - -class TransformPCDResponse::_Internal { - public: -}; -TransformPCDResponse::TransformPCDResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:viam.robot.v1.TransformPCDResponse) +ResourceRPCSubtype::~ResourceRPCSubtype() { + // @@protoc_insertion_point(destructor:viam.robot.v1.ResourceRPCSubtype) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); } -inline PROTOBUF_NDEBUG_INLINE TransformPCDResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : point_cloud_pcd_(arena, from.point_cloud_pcd_), - _cached_size_{0} {} - -TransformPCDResponse::TransformPCDResponse( - ::google::protobuf::Arena* arena, - const TransformPCDResponse& from) - : ::google::protobuf::Message(arena) { - TransformPCDResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - // @@protoc_insertion_point(copy_constructor:viam.robot.v1.TransformPCDResponse) +inline void ResourceRPCSubtype::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + proto_service_.Destroy(); + if (this != internal_default_instance()) delete subtype_; } -inline PROTOBUF_NDEBUG_INLINE TransformPCDResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : point_cloud_pcd_(arena), - _cached_size_{0} {} -inline void TransformPCDResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -TransformPCDResponse::~TransformPCDResponse() { - // @@protoc_insertion_point(destructor:viam.robot.v1.TransformPCDResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void TransformPCDResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.point_cloud_pcd_.Destroy(); - _impl_.~Impl_(); +void ResourceRPCSubtype::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void TransformPCDResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.robot.v1.TransformPCDResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; +void ResourceRPCSubtype::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.robot.v1.ResourceRPCSubtype) + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.point_cloud_pcd_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* TransformPCDResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + proto_service_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && subtype_ != nullptr) { + delete subtype_; + } + subtype_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ResourceRPCSubtype::_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 subtype = 1 [json_name = "subtype"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_subtype(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string proto_service = 2 [json_name = "protoService"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_proto_service(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.robot.v1.ResourceRPCSubtype.proto_service")); + } 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* ResourceRPCSubtype::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.ResourceRPCSubtype) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> TransformPCDResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_TransformPCDResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // bytes point_cloud_pcd = 1 [json_name = "pointCloudPcd"]; - {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(TransformPCDResponse, _impl_.point_cloud_pcd_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bytes point_cloud_pcd = 1 [json_name = "pointCloudPcd"]; - {PROTOBUF_FIELD_OFFSET(TransformPCDResponse, _impl_.point_cloud_pcd_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* TransformPCDResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.TransformPCDResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + // .viam.common.v1.ResourceName subtype = 1 [json_name = "subtype"]; + if (this->_internal_has_subtype()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::subtype(this), + _Internal::subtype(this).GetCachedSize(), target, stream); + } - // bytes point_cloud_pcd = 1 [json_name = "pointCloudPcd"]; - if (!this->_internal_point_cloud_pcd().empty()) { - const std::string& _s = this->_internal_point_cloud_pcd(); - target = stream->WriteBytesMaybeAliased(1, _s, target); + // string proto_service = 2 [json_name = "protoService"]; + if (!this->_internal_proto_service().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_proto_service().data(), static_cast(this->_internal_proto_service().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.robot.v1.ResourceRPCSubtype.proto_service"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_proto_service(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.robot.v1.TransformPCDResponse) + // @@protoc_insertion_point(serialize_to_array_end:viam.robot.v1.ResourceRPCSubtype) return target; } -::size_t TransformPCDResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.TransformPCDResponse) - ::size_t total_size = 0; +size_t ResourceRPCSubtype::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.ResourceRPCSubtype) + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // bytes point_cloud_pcd = 1 [json_name = "pointCloudPcd"]; - if (!this->_internal_point_cloud_pcd().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_point_cloud_pcd()); + // string proto_service = 2 [json_name = "protoService"]; + if (!this->_internal_proto_service().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_proto_service()); + } + + // .viam.common.v1.ResourceName subtype = 1 [json_name = "subtype"]; + if (this->_internal_has_subtype()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *subtype_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData TransformPCDResponse::_class_data_ = { - TransformPCDResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ResourceRPCSubtype::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ResourceRPCSubtype::MergeImpl }; -const ::google::protobuf::Message::ClassData* TransformPCDResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ResourceRPCSubtype::GetClassData() const { return &_class_data_; } + +void ResourceRPCSubtype::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void TransformPCDResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.TransformPCDResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ResourceRPCSubtype::MergeFrom(const ResourceRPCSubtype& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.ResourceRPCSubtype) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_point_cloud_pcd().empty()) { - _this->_internal_set_point_cloud_pcd(from._internal_point_cloud_pcd()); + if (!from._internal_proto_service().empty()) { + _internal_set_proto_service(from._internal_proto_service()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_subtype()) { + _internal_mutable_subtype()->::viam::common::v1::ResourceName::MergeFrom(from._internal_subtype()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void TransformPCDResponse::CopyFrom(const TransformPCDResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.TransformPCDResponse) +void ResourceRPCSubtype::CopyFrom(const ResourceRPCSubtype& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.ResourceRPCSubtype) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool TransformPCDResponse::IsInitialized() const { +bool ResourceRPCSubtype::IsInitialized() const { return true; } -::_pbi::CachedSize* TransformPCDResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void TransformPCDResponse::InternalSwap(TransformPCDResponse* PROTOBUF_RESTRICT other) { +void ResourceRPCSubtype::InternalSwap(ResourceRPCSubtype* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.point_cloud_pcd_, &other->_impl_.point_cloud_pcd_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &proto_service_, lhs_arena, + &other->proto_service_, rhs_arena + ); + swap(subtype_, other->subtype_); } -::google::protobuf::Metadata TransformPCDResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ResourceRPCSubtype::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, - file_level_metadata_robot_2fv1_2frobot_2eproto[6]); + file_level_metadata_robot_2fv1_2frobot_2eproto[11]); } + // =================================================================== -class ResourceNamesRequest::_Internal { +class ResourceRPCSubtypesRequest::_Internal { public: }; -ResourceNamesRequest::ResourceNamesRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:viam.robot.v1.ResourceNamesRequest) +ResourceRPCSubtypesRequest::ResourceRPCSubtypesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.ResourceRPCSubtypesRequest) } -ResourceNamesRequest::ResourceNamesRequest( - ::google::protobuf::Arena* arena, - const ResourceNamesRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - ResourceNamesRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:viam.robot.v1.ResourceNamesRequest) +ResourceRPCSubtypesRequest::ResourceRPCSubtypesRequest(const ResourceRPCSubtypesRequest& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.ResourceRPCSubtypesRequest) } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ResourceRPCSubtypesRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ResourceRPCSubtypesRequest::GetClassData() const { return &_class_data_; } + + + -::google::protobuf::Metadata ResourceNamesRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ResourceRPCSubtypesRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, - file_level_metadata_robot_2fv1_2frobot_2eproto[7]); + file_level_metadata_robot_2fv1_2frobot_2eproto[12]); } + // =================================================================== -class ResourceNamesResponse::_Internal { +class ResourceRPCSubtypesResponse::_Internal { public: }; -void ResourceNamesResponse::clear_resources() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.resources_.Clear(); +ResourceRPCSubtypesResponse::ResourceRPCSubtypesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + resource_rpc_subtypes_(arena) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.ResourceRPCSubtypesResponse) } -ResourceNamesResponse::ResourceNamesResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:viam.robot.v1.ResourceNamesResponse) +ResourceRPCSubtypesResponse::ResourceRPCSubtypesResponse(const ResourceRPCSubtypesResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + resource_rpc_subtypes_(from.resource_rpc_subtypes_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.ResourceRPCSubtypesResponse) } -inline PROTOBUF_NDEBUG_INLINE ResourceNamesResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : resources_{visibility, arena, from.resources_}, - _cached_size_{0} {} - -ResourceNamesResponse::ResourceNamesResponse( - ::google::protobuf::Arena* arena, - const ResourceNamesResponse& from) - : ::google::protobuf::Message(arena) { - ResourceNamesResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - // @@protoc_insertion_point(copy_constructor:viam.robot.v1.ResourceNamesResponse) +inline void ResourceRPCSubtypesResponse::SharedCtor() { } -inline PROTOBUF_NDEBUG_INLINE ResourceNamesResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : resources_{visibility, arena}, - _cached_size_{0} {} -inline void ResourceNamesResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -ResourceNamesResponse::~ResourceNamesResponse() { - // @@protoc_insertion_point(destructor:viam.robot.v1.ResourceNamesResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); +ResourceRPCSubtypesResponse::~ResourceRPCSubtypesResponse() { + // @@protoc_insertion_point(destructor:viam.robot.v1.ResourceRPCSubtypesResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } -inline void ResourceNamesResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + +inline void ResourceRPCSubtypesResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void ResourceNamesResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.robot.v1.ResourceNamesResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; +void ResourceRPCSubtypesResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ResourceRPCSubtypesResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.robot.v1.ResourceRPCSubtypesResponse) + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.resources_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ResourceNamesResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + resource_rpc_subtypes_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ResourceRPCSubtypesResponse::_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) { + // repeated .viam.robot.v1.ResourceRPCSubtype resource_rpc_subtypes = 1 [json_name = "resourceRpcSubtypes"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_resource_rpc_subtypes(), 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* ResourceRPCSubtypesResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.ResourceRPCSubtypesResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ResourceNamesResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ResourceNamesResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.common.v1.ResourceName resources = 1 [json_name = "resources"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ResourceNamesResponse, _impl_.resources_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.common.v1.ResourceName resources = 1 [json_name = "resources"]; - {PROTOBUF_FIELD_OFFSET(ResourceNamesResponse, _impl_.resources_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::common::v1::ResourceName>()}, - }}, {{ - }}, -}; - -::uint8_t* ResourceNamesResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.ResourceNamesResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // repeated .viam.common.v1.ResourceName resources = 1 [json_name = "resources"]; + // repeated .viam.robot.v1.ResourceRPCSubtype resource_rpc_subtypes = 1 [json_name = "resourceRpcSubtypes"]; for (unsigned i = 0, - n = static_cast(this->_internal_resources_size()); i < n; i++) { - const auto& repfield = this->_internal_resources().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + n = static_cast(this->_internal_resource_rpc_subtypes_size()); i < n; i++) { + const auto& repfield = this->_internal_resource_rpc_subtypes(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.robot.v1.ResourceNamesResponse) + // @@protoc_insertion_point(serialize_to_array_end:viam.robot.v1.ResourceRPCSubtypesResponse) return target; } -::size_t ResourceNamesResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.ResourceNamesResponse) - ::size_t total_size = 0; +size_t ResourceRPCSubtypesResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.ResourceRPCSubtypesResponse) + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated .viam.common.v1.ResourceName resources = 1 [json_name = "resources"]; - total_size += 1UL * this->_internal_resources_size(); - for (const auto& msg : this->_internal_resources()) { + // repeated .viam.robot.v1.ResourceRPCSubtype resource_rpc_subtypes = 1 [json_name = "resourceRpcSubtypes"]; + total_size += 1UL * this->_internal_resource_rpc_subtypes_size(); + for (const auto& msg : this->resource_rpc_subtypes_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ResourceNamesResponse::_class_data_ = { - ResourceNamesResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ResourceRPCSubtypesResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ResourceRPCSubtypesResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* ResourceNamesResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ResourceRPCSubtypesResponse::GetClassData() const { return &_class_data_; } + +void ResourceRPCSubtypesResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ResourceNamesResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.ResourceNamesResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ResourceRPCSubtypesResponse::MergeFrom(const ResourceRPCSubtypesResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.ResourceRPCSubtypesResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_resources()->MergeFrom( - from._internal_resources()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + resource_rpc_subtypes_.MergeFrom(from.resource_rpc_subtypes_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void ResourceNamesResponse::CopyFrom(const ResourceNamesResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.ResourceNamesResponse) +void ResourceRPCSubtypesResponse::CopyFrom(const ResourceRPCSubtypesResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.ResourceRPCSubtypesResponse) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool ResourceNamesResponse::IsInitialized() const { +bool ResourceRPCSubtypesResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* ResourceNamesResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ResourceNamesResponse::InternalSwap(ResourceNamesResponse* PROTOBUF_RESTRICT other) { +void ResourceRPCSubtypesResponse::InternalSwap(ResourceRPCSubtypesResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.resources_.InternalSwap(&other->_impl_.resources_); + resource_rpc_subtypes_.InternalSwap(&other->resource_rpc_subtypes_); } -::google::protobuf::Metadata ResourceNamesResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ResourceRPCSubtypesResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, - file_level_metadata_robot_2fv1_2frobot_2eproto[8]); + file_level_metadata_robot_2fv1_2frobot_2eproto[13]); } + // =================================================================== -class ResourceRPCSubtype::_Internal { +class Operation::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ResourceRPCSubtype, _impl_._has_bits_); - static const ::viam::common::v1::ResourceName& subtype(const ResourceRPCSubtype* msg); - static void set_has_subtype(HasBits* has_bits) { + using HasBits = decltype(std::declval()._has_bits_); + static const ::PROTOBUF_NAMESPACE_ID::Struct& arguments(const Operation* msg); + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& started(const Operation* msg); + static void set_has_session_id(HasBits* has_bits) { (*has_bits)[0] |= 1u; } }; -const ::viam::common::v1::ResourceName& ResourceRPCSubtype::_Internal::subtype(const ResourceRPCSubtype* msg) { - return *msg->_impl_.subtype_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +Operation::_Internal::arguments(const Operation* msg) { + return *msg->arguments_; } -void ResourceRPCSubtype::clear_subtype() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.subtype_ != nullptr) _impl_.subtype_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +Operation::_Internal::started(const Operation* msg) { + return *msg->started_; } -ResourceRPCSubtype::ResourceRPCSubtype(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:viam.robot.v1.ResourceRPCSubtype) +void Operation::clear_arguments() { + if (GetArenaForAllocation() == nullptr && arguments_ != nullptr) { + delete arguments_; + } + arguments_ = nullptr; } -inline PROTOBUF_NDEBUG_INLINE ResourceRPCSubtype::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - proto_service_(arena, from.proto_service_) {} - -ResourceRPCSubtype::ResourceRPCSubtype( - ::google::protobuf::Arena* arena, - const ResourceRPCSubtype& from) - : ::google::protobuf::Message(arena) { - ResourceRPCSubtype* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.subtype_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::common::v1::ResourceName>(arena, *from._impl_.subtype_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:viam.robot.v1.ResourceRPCSubtype) +void Operation::clear_started() { + if (GetArenaForAllocation() == nullptr && started_ != nullptr) { + delete started_; + } + started_ = nullptr; +} +Operation::Operation(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.Operation) +} +Operation::Operation(const Operation& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } + method_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + method_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_method().empty()) { + method_.Set(from._internal_method(), + GetArenaForAllocation()); + } + session_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + session_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (from._internal_has_session_id()) { + session_id_.Set(from._internal_session_id(), + GetArenaForAllocation()); + } + if (from._internal_has_arguments()) { + arguments_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.arguments_); + } else { + arguments_ = nullptr; + } + if (from._internal_has_started()) { + started_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from.started_); + } else { + started_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.Operation) } -inline PROTOBUF_NDEBUG_INLINE ResourceRPCSubtype::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - proto_service_(arena) {} -inline void ResourceRPCSubtype::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.subtype_ = {}; +inline void Operation::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +method_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + method_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +session_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + session_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&arguments_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&started_) - + reinterpret_cast(&arguments_)) + sizeof(started_)); } -ResourceRPCSubtype::~ResourceRPCSubtype() { - // @@protoc_insertion_point(destructor:viam.robot.v1.ResourceRPCSubtype) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + +Operation::~Operation() { + // @@protoc_insertion_point(destructor:viam.robot.v1.Operation) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } -inline void ResourceRPCSubtype::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.proto_service_.Destroy(); - delete _impl_.subtype_; - _impl_.~Impl_(); + +inline void Operation::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); + method_.Destroy(); + session_id_.Destroy(); + if (this != internal_default_instance()) delete arguments_; + if (this != internal_default_instance()) delete started_; } -PROTOBUF_NOINLINE void ResourceRPCSubtype::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.robot.v1.ResourceRPCSubtype) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; +void Operation::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void Operation::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.robot.v1.Operation) + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.proto_service_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; + id_.ClearToEmpty(); + method_.ClearToEmpty(); + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.subtype_ != nullptr); - _impl_.subtype_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ResourceRPCSubtype::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + session_id_.ClearNonDefaultToEmpty(); + } + if (GetArenaForAllocation() == nullptr && arguments_ != nullptr) { + delete arguments_; + } + arguments_ = nullptr; + if (GetArenaForAllocation() == nullptr && started_ != nullptr) { + delete started_; + } + started_ = nullptr; + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Operation::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.robot.v1.Operation.id")); + } else + goto handle_unusual; + continue; + // string method = 2 [json_name = "method"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_method(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.robot.v1.Operation.method")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct arguments = 3 [json_name = "arguments"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_arguments(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp started = 4 [json_name = "started"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_started(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional string session_id = 5 [json_name = "sessionId"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + auto str = _internal_mutable_session_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.robot.v1.Operation.session_id")); + } 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: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } +uint8_t* Operation::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.Operation) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 54, 2> ResourceRPCSubtype::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ResourceRPCSubtype, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ResourceRPCSubtype_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string proto_service = 2 [json_name = "protoService"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(ResourceRPCSubtype, _impl_.proto_service_)}}, - // .viam.common.v1.ResourceName subtype = 1 [json_name = "subtype"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(ResourceRPCSubtype, _impl_.subtype_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.common.v1.ResourceName subtype = 1 [json_name = "subtype"]; - {PROTOBUF_FIELD_OFFSET(ResourceRPCSubtype, _impl_.subtype_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // string proto_service = 2 [json_name = "protoService"]; - {PROTOBUF_FIELD_OFFSET(ResourceRPCSubtype, _impl_.proto_service_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::common::v1::ResourceName>()}, - }}, {{ - "\40\0\15\0\0\0\0\0" - "viam.robot.v1.ResourceRPCSubtype" - "proto_service" - }}, -}; - -::uint8_t* ResourceRPCSubtype::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.ResourceRPCSubtype) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.robot.v1.Operation.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); + } - cached_has_bits = _impl_._has_bits_[0]; - // .viam.common.v1.ResourceName subtype = 1 [json_name = "subtype"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::subtype(this), - _Internal::subtype(this).GetCachedSize(), target, stream); + // string method = 2 [json_name = "method"]; + if (!this->_internal_method().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_method().data(), static_cast(this->_internal_method().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.robot.v1.Operation.method"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_method(), target); } - // string proto_service = 2 [json_name = "protoService"]; - if (!this->_internal_proto_service().empty()) { - const std::string& _s = this->_internal_proto_service(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.robot.v1.ResourceRPCSubtype.proto_service"); - target = stream->WriteStringMaybeAliased(2, _s, target); + // .google.protobuf.Struct arguments = 3 [json_name = "arguments"]; + if (this->_internal_has_arguments()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::arguments(this), + _Internal::arguments(this).GetCachedSize(), target, stream); + } + + // .google.protobuf.Timestamp started = 4 [json_name = "started"]; + if (this->_internal_has_started()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::started(this), + _Internal::started(this).GetCachedSize(), target, stream); + } + + // optional string session_id = 5 [json_name = "sessionId"]; + if (_internal_has_session_id()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_session_id().data(), static_cast(this->_internal_session_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.robot.v1.Operation.session_id"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_session_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.robot.v1.ResourceRPCSubtype) + // @@protoc_insertion_point(serialize_to_array_end:viam.robot.v1.Operation) return target; } -::size_t ResourceRPCSubtype::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.ResourceRPCSubtype) - ::size_t total_size = 0; +size_t Operation::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.Operation) + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string proto_service = 2 [json_name = "protoService"]; - if (!this->_internal_proto_service().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_proto_service()); + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } - // .viam.common.v1.ResourceName subtype = 1 [json_name = "subtype"]; - cached_has_bits = _impl_._has_bits_[0]; + // string method = 2 [json_name = "method"]; + if (!this->_internal_method().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_method()); + } + + // optional string session_id = 5 [json_name = "sessionId"]; + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.subtype_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_session_id()); + } + + // .google.protobuf.Struct arguments = 3 [json_name = "arguments"]; + if (this->_internal_has_arguments()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *arguments_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + // .google.protobuf.Timestamp started = 4 [json_name = "started"]; + if (this->_internal_has_started()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *started_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ResourceRPCSubtype::_class_data_ = { - ResourceRPCSubtype::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Operation::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Operation::MergeImpl }; -const ::google::protobuf::Message::ClassData* ResourceRPCSubtype::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Operation::GetClassData() const { return &_class_data_; } + +void Operation::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ResourceRPCSubtype::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.ResourceRPCSubtype) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Operation::MergeFrom(const Operation& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.Operation) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_proto_service().empty()) { - _this->_internal_set_proto_service(from._internal_proto_service()); + if (!from._internal_id().empty()) { + _internal_set_id(from._internal_id()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_subtype()->::viam::common::v1::ResourceName::MergeFrom( - from._internal_subtype()); + if (!from._internal_method().empty()) { + _internal_set_method(from._internal_method()); + } + if (from._internal_has_session_id()) { + _internal_set_session_id(from._internal_session_id()); + } + if (from._internal_has_arguments()) { + _internal_mutable_arguments()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_arguments()); + } + if (from._internal_has_started()) { + _internal_mutable_started()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_started()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void ResourceRPCSubtype::CopyFrom(const ResourceRPCSubtype& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.ResourceRPCSubtype) +void Operation::CopyFrom(const Operation& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.Operation) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool ResourceRPCSubtype::IsInitialized() const { +bool Operation::IsInitialized() const { return true; } -::_pbi::CachedSize* ResourceRPCSubtype::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ResourceRPCSubtype::InternalSwap(ResourceRPCSubtype* PROTOBUF_RESTRICT other) { +void Operation::InternalSwap(Operation* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.proto_service_, &other->_impl_.proto_service_, arena); - swap(_impl_.subtype_, other->_impl_.subtype_); -} - -::google::protobuf::Metadata ResourceRPCSubtype::GetMetadata() const { + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &method_, lhs_arena, + &other->method_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &session_id_, lhs_arena, + &other->session_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Operation, started_) + + sizeof(Operation::started_) + - PROTOBUF_FIELD_OFFSET(Operation, arguments_)>( + reinterpret_cast(&arguments_), + reinterpret_cast(&other->arguments_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Operation::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, - file_level_metadata_robot_2fv1_2frobot_2eproto[9]); + file_level_metadata_robot_2fv1_2frobot_2eproto[14]); } + // =================================================================== -class ResourceRPCSubtypesRequest::_Internal { +class GetOperationsRequest::_Internal { public: }; -ResourceRPCSubtypesRequest::ResourceRPCSubtypesRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:viam.robot.v1.ResourceRPCSubtypesRequest) +GetOperationsRequest::GetOperationsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.GetOperationsRequest) } -ResourceRPCSubtypesRequest::ResourceRPCSubtypesRequest( - ::google::protobuf::Arena* arena, - const ResourceRPCSubtypesRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - ResourceRPCSubtypesRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:viam.robot.v1.ResourceRPCSubtypesRequest) +GetOperationsRequest::GetOperationsRequest(const GetOperationsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.GetOperationsRequest) } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetOperationsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetOperationsRequest::GetClassData() const { return &_class_data_; } + + + -::google::protobuf::Metadata ResourceRPCSubtypesRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetOperationsRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, - file_level_metadata_robot_2fv1_2frobot_2eproto[10]); + file_level_metadata_robot_2fv1_2frobot_2eproto[15]); } + // =================================================================== -class ResourceRPCSubtypesResponse::_Internal { +class GetOperationsResponse::_Internal { public: }; -ResourceRPCSubtypesResponse::ResourceRPCSubtypesResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:viam.robot.v1.ResourceRPCSubtypesResponse) +GetOperationsResponse::GetOperationsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + operations_(arena) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.GetOperationsResponse) +} +GetOperationsResponse::GetOperationsResponse(const GetOperationsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + operations_(from.operations_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.GetOperationsResponse) +} + +inline void GetOperationsResponse::SharedCtor() { +} + +GetOperationsResponse::~GetOperationsResponse() { + // @@protoc_insertion_point(destructor:viam.robot.v1.GetOperationsResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); } -inline PROTOBUF_NDEBUG_INLINE ResourceRPCSubtypesResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : resource_rpc_subtypes_{visibility, arena, from.resource_rpc_subtypes_}, - _cached_size_{0} {} - -ResourceRPCSubtypesResponse::ResourceRPCSubtypesResponse( - ::google::protobuf::Arena* arena, - const ResourceRPCSubtypesResponse& from) - : ::google::protobuf::Message(arena) { - ResourceRPCSubtypesResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - // @@protoc_insertion_point(copy_constructor:viam.robot.v1.ResourceRPCSubtypesResponse) +inline void GetOperationsResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -inline PROTOBUF_NDEBUG_INLINE ResourceRPCSubtypesResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : resource_rpc_subtypes_{visibility, arena}, - _cached_size_{0} {} -inline void ResourceRPCSubtypesResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -ResourceRPCSubtypesResponse::~ResourceRPCSubtypesResponse() { - // @@protoc_insertion_point(destructor:viam.robot.v1.ResourceRPCSubtypesResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void ResourceRPCSubtypesResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); +void GetOperationsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void ResourceRPCSubtypesResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.robot.v1.ResourceRPCSubtypesResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; +void GetOperationsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.robot.v1.GetOperationsResponse) + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.resource_rpc_subtypes_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ResourceRPCSubtypesResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + operations_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetOperationsResponse::_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) { + // repeated .viam.robot.v1.Operation operations = 1 [json_name = "operations"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_operations(), 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* GetOperationsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.GetOperationsResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ResourceRPCSubtypesResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ResourceRPCSubtypesResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.robot.v1.ResourceRPCSubtype resource_rpc_subtypes = 1 [json_name = "resourceRpcSubtypes"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ResourceRPCSubtypesResponse, _impl_.resource_rpc_subtypes_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.robot.v1.ResourceRPCSubtype resource_rpc_subtypes = 1 [json_name = "resourceRpcSubtypes"]; - {PROTOBUF_FIELD_OFFSET(ResourceRPCSubtypesResponse, _impl_.resource_rpc_subtypes_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::robot::v1::ResourceRPCSubtype>()}, - }}, {{ - }}, -}; - -::uint8_t* ResourceRPCSubtypesResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.ResourceRPCSubtypesResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // repeated .viam.robot.v1.ResourceRPCSubtype resource_rpc_subtypes = 1 [json_name = "resourceRpcSubtypes"]; + // repeated .viam.robot.v1.Operation operations = 1 [json_name = "operations"]; for (unsigned i = 0, - n = static_cast(this->_internal_resource_rpc_subtypes_size()); i < n; i++) { - const auto& repfield = this->_internal_resource_rpc_subtypes().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + n = static_cast(this->_internal_operations_size()); i < n; i++) { + const auto& repfield = this->_internal_operations(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.robot.v1.ResourceRPCSubtypesResponse) + // @@protoc_insertion_point(serialize_to_array_end:viam.robot.v1.GetOperationsResponse) return target; } -::size_t ResourceRPCSubtypesResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.ResourceRPCSubtypesResponse) - ::size_t total_size = 0; +size_t GetOperationsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.GetOperationsResponse) + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated .viam.robot.v1.ResourceRPCSubtype resource_rpc_subtypes = 1 [json_name = "resourceRpcSubtypes"]; - total_size += 1UL * this->_internal_resource_rpc_subtypes_size(); - for (const auto& msg : this->_internal_resource_rpc_subtypes()) { + // repeated .viam.robot.v1.Operation operations = 1 [json_name = "operations"]; + total_size += 1UL * this->_internal_operations_size(); + for (const auto& msg : this->operations_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ResourceRPCSubtypesResponse::_class_data_ = { - ResourceRPCSubtypesResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetOperationsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetOperationsResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* ResourceRPCSubtypesResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetOperationsResponse::GetClassData() const { return &_class_data_; } + +void GetOperationsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ResourceRPCSubtypesResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.ResourceRPCSubtypesResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetOperationsResponse::MergeFrom(const GetOperationsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.GetOperationsResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_resource_rpc_subtypes()->MergeFrom( - from._internal_resource_rpc_subtypes()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + operations_.MergeFrom(from.operations_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void ResourceRPCSubtypesResponse::CopyFrom(const ResourceRPCSubtypesResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.ResourceRPCSubtypesResponse) +void GetOperationsResponse::CopyFrom(const GetOperationsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.GetOperationsResponse) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool ResourceRPCSubtypesResponse::IsInitialized() const { +bool GetOperationsResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* ResourceRPCSubtypesResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ResourceRPCSubtypesResponse::InternalSwap(ResourceRPCSubtypesResponse* PROTOBUF_RESTRICT other) { +void GetOperationsResponse::InternalSwap(GetOperationsResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.resource_rpc_subtypes_.InternalSwap(&other->_impl_.resource_rpc_subtypes_); + operations_.InternalSwap(&other->operations_); } -::google::protobuf::Metadata ResourceRPCSubtypesResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetOperationsResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, - file_level_metadata_robot_2fv1_2frobot_2eproto[11]); + file_level_metadata_robot_2fv1_2frobot_2eproto[16]); } + // =================================================================== -class Operation::_Internal { +class CancelOperationRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Operation, _impl_._has_bits_); - static const ::google::protobuf::Struct& arguments(const Operation* msg); - static void set_has_arguments(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static const ::google::protobuf::Timestamp& started(const Operation* msg); - static void set_has_started(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_session_id(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::google::protobuf::Struct& Operation::_Internal::arguments(const Operation* msg) { - return *msg->_impl_.arguments_; -} -const ::google::protobuf::Timestamp& Operation::_Internal::started(const Operation* msg) { - return *msg->_impl_.started_; -} -void Operation::clear_arguments() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.arguments_ != nullptr) _impl_.arguments_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; -} -void Operation::clear_started() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.started_ != nullptr) _impl_.started_->Clear(); - _impl_._has_bits_[0] &= ~0x00000004u; +CancelOperationRequest::CancelOperationRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.CancelOperationRequest) } -Operation::Operation(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:viam.robot.v1.Operation) +CancelOperationRequest::CancelOperationRequest(const CancelOperationRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.CancelOperationRequest) } -inline PROTOBUF_NDEBUG_INLINE Operation::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - id_(arena, from.id_), - method_(arena, from.method_), - session_id_(arena, from.session_id_) {} - -Operation::Operation( - ::google::protobuf::Arena* arena, - const Operation& from) - : ::google::protobuf::Message(arena) { - Operation* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.arguments_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.arguments_) - : nullptr; - _impl_.started_ = (cached_has_bits & 0x00000004u) - ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.started_) - : nullptr; - // @@protoc_insertion_point(copy_constructor:viam.robot.v1.Operation) -} -inline PROTOBUF_NDEBUG_INLINE Operation::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - id_(arena), - method_(arena), - session_id_(arena) {} - -inline void Operation::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, arguments_), - 0, - offsetof(Impl_, started_) - - offsetof(Impl_, arguments_) + - sizeof(Impl_::started_)); +inline void CancelOperationRequest::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } -Operation::~Operation() { - // @@protoc_insertion_point(destructor:viam.robot.v1.Operation) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + +CancelOperationRequest::~CancelOperationRequest() { + // @@protoc_insertion_point(destructor:viam.robot.v1.CancelOperationRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } -inline void Operation::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.method_.Destroy(); - _impl_.session_id_.Destroy(); - delete _impl_.arguments_; - delete _impl_.started_; - _impl_.~Impl_(); + +inline void CancelOperationRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); } -PROTOBUF_NOINLINE void Operation::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.robot.v1.Operation) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; +void CancelOperationRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void CancelOperationRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.robot.v1.CancelOperationRequest) + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.id_.ClearToEmpty(); - _impl_.method_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - _impl_.session_id_.ClearNonDefaultToEmpty(); + id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CancelOperationRequest::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.robot.v1.CancelOperationRequest.id")); + } 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; } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.arguments_ != nullptr); - _impl_.arguments_->Clear(); - } - if (cached_has_bits & 0x00000004u) { - ABSL_DCHECK(_impl_.started_ != nullptr); - _impl_.started_->Clear(); - } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Operation::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 5, 2, 50, 2> Operation::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Operation, _impl_._has_bits_), - 0, // no _extensions_ - 5, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967264, // skipmap - offsetof(decltype(_table_), field_entries), - 5, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Operation_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string id = 1 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Operation, _impl_.id_)}}, - // string method = 2 [json_name = "method"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(Operation, _impl_.method_)}}, - // .google.protobuf.Struct arguments = 3 [json_name = "arguments"]; - {::_pbi::TcParser::FastMtS1, - {26, 1, 0, PROTOBUF_FIELD_OFFSET(Operation, _impl_.arguments_)}}, - // .google.protobuf.Timestamp started = 4 [json_name = "started"]; - {::_pbi::TcParser::FastMtS1, - {34, 2, 1, PROTOBUF_FIELD_OFFSET(Operation, _impl_.started_)}}, - // optional string session_id = 5 [json_name = "sessionId"]; - {::_pbi::TcParser::FastUS1, - {42, 0, 0, PROTOBUF_FIELD_OFFSET(Operation, _impl_.session_id_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(Operation, _impl_.id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string method = 2 [json_name = "method"]; - {PROTOBUF_FIELD_OFFSET(Operation, _impl_.method_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct arguments = 3 [json_name = "arguments"]; - {PROTOBUF_FIELD_OFFSET(Operation, _impl_.arguments_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.protobuf.Timestamp started = 4 [json_name = "started"]; - {PROTOBUF_FIELD_OFFSET(Operation, _impl_.started_), _Internal::kHasBitsOffset + 2, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // optional string session_id = 5 [json_name = "sessionId"]; - {PROTOBUF_FIELD_OFFSET(Operation, _impl_.session_id_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, - }}, {{ - "\27\2\6\0\0\12\0\0" - "viam.robot.v1.Operation" - "id" - "method" - "session_id" - }}, -}; - -::uint8_t* Operation::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.Operation) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; +uint8_t* CancelOperationRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.CancelOperationRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.robot.v1.Operation.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // string method = 2 [json_name = "method"]; - if (!this->_internal_method().empty()) { - const std::string& _s = this->_internal_method(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.robot.v1.Operation.method"); - target = stream->WriteStringMaybeAliased(2, _s, target); - } - - cached_has_bits = _impl_._has_bits_[0]; - // .google.protobuf.Struct arguments = 3 [json_name = "arguments"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::arguments(this), - _Internal::arguments(this).GetCachedSize(), target, stream); - } - - // .google.protobuf.Timestamp started = 4 [json_name = "started"]; - if (cached_has_bits & 0x00000004u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, _Internal::started(this), - _Internal::started(this).GetCachedSize(), target, stream); - } - - // optional string session_id = 5 [json_name = "sessionId"]; - if (cached_has_bits & 0x00000001u) { - const std::string& _s = this->_internal_session_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.robot.v1.Operation.session_id"); - target = stream->WriteStringMaybeAliased(5, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.robot.v1.CancelOperationRequest.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.robot.v1.Operation) + // @@protoc_insertion_point(serialize_to_array_end:viam.robot.v1.CancelOperationRequest) return target; } -::size_t Operation::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.Operation) - ::size_t total_size = 0; +size_t CancelOperationRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.CancelOperationRequest) + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); - } - - // string method = 2 [json_name = "method"]; - if (!this->_internal_method().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_method()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - // optional string session_id = 5 [json_name = "sessionId"]; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_session_id()); - } - - // .google.protobuf.Struct arguments = 3 [json_name = "arguments"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.arguments_); - } - - // .google.protobuf.Timestamp started = 4 [json_name = "started"]; - if (cached_has_bits & 0x00000004u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.started_); - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Operation::_class_data_ = { - Operation::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CancelOperationRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CancelOperationRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* Operation::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CancelOperationRequest::GetClassData() const { return &_class_data_; } + +void CancelOperationRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Operation::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.Operation) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void CancelOperationRequest::MergeFrom(const CancelOperationRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.CancelOperationRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); - } - if (!from._internal_method().empty()) { - _this->_internal_set_method(from._internal_method()); - } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_set_session_id(from._internal_session_id()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_arguments()->::google::protobuf::Struct::MergeFrom( - from._internal_arguments()); - } - if (cached_has_bits & 0x00000004u) { - _this->_internal_mutable_started()->::google::protobuf::Timestamp::MergeFrom( - from._internal_started()); - } + _internal_set_id(from._internal_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void Operation::CopyFrom(const Operation& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.Operation) +void CancelOperationRequest::CopyFrom(const CancelOperationRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.CancelOperationRequest) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool Operation::IsInitialized() const { +bool CancelOperationRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* Operation::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Operation::InternalSwap(Operation* PROTOBUF_RESTRICT other) { +void CancelOperationRequest::InternalSwap(CancelOperationRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.method_, &other->_impl_.method_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.session_id_, &other->_impl_.session_id_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(Operation, _impl_.started_) - + sizeof(Operation::_impl_.started_) - - PROTOBUF_FIELD_OFFSET(Operation, _impl_.arguments_)>( - reinterpret_cast(&_impl_.arguments_), - reinterpret_cast(&other->_impl_.arguments_)); -} - -::google::protobuf::Metadata Operation::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata CancelOperationRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, - file_level_metadata_robot_2fv1_2frobot_2eproto[12]); + file_level_metadata_robot_2fv1_2frobot_2eproto[17]); } + // =================================================================== -class GetOperationsRequest::_Internal { +class CancelOperationResponse::_Internal { public: }; -GetOperationsRequest::GetOperationsRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:viam.robot.v1.GetOperationsRequest) +CancelOperationResponse::CancelOperationResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.CancelOperationResponse) } -GetOperationsRequest::GetOperationsRequest( - ::google::protobuf::Arena* arena, - const GetOperationsRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - GetOperationsRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:viam.robot.v1.GetOperationsRequest) +CancelOperationResponse::CancelOperationResponse(const CancelOperationResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.CancelOperationResponse) } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CancelOperationResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CancelOperationResponse::GetClassData() const { return &_class_data_; } + + -::google::protobuf::Metadata GetOperationsRequest::GetMetadata() const { + +::PROTOBUF_NAMESPACE_ID::Metadata CancelOperationResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, - file_level_metadata_robot_2fv1_2frobot_2eproto[13]); + file_level_metadata_robot_2fv1_2frobot_2eproto[18]); } + // =================================================================== -class GetOperationsResponse::_Internal { +class BlockForOperationRequest::_Internal { public: }; -GetOperationsResponse::GetOperationsResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:viam.robot.v1.GetOperationsResponse) +BlockForOperationRequest::BlockForOperationRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.BlockForOperationRequest) } -inline PROTOBUF_NDEBUG_INLINE GetOperationsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : operations_{visibility, arena, from.operations_}, - _cached_size_{0} {} - -GetOperationsResponse::GetOperationsResponse( - ::google::protobuf::Arena* arena, - const GetOperationsResponse& from) - : ::google::protobuf::Message(arena) { - GetOperationsResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:viam.robot.v1.GetOperationsResponse) +BlockForOperationRequest::BlockForOperationRequest(const BlockForOperationRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.BlockForOperationRequest) } -inline PROTOBUF_NDEBUG_INLINE GetOperationsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : operations_{visibility, arena}, - _cached_size_{0} {} -inline void GetOperationsResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void BlockForOperationRequest::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } -GetOperationsResponse::~GetOperationsResponse() { - // @@protoc_insertion_point(destructor:viam.robot.v1.GetOperationsResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + +BlockForOperationRequest::~BlockForOperationRequest() { + // @@protoc_insertion_point(destructor:viam.robot.v1.BlockForOperationRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } -inline void GetOperationsResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + +inline void BlockForOperationRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); } -PROTOBUF_NOINLINE void GetOperationsResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.robot.v1.GetOperationsResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; +void BlockForOperationRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void BlockForOperationRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.robot.v1.BlockForOperationRequest) + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.operations_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetOperationsResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* BlockForOperationRequest::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.robot.v1.BlockForOperationRequest.id")); + } 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* BlockForOperationRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.BlockForOperationRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetOperationsResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetOperationsResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.robot.v1.Operation operations = 1 [json_name = "operations"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetOperationsResponse, _impl_.operations_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.robot.v1.Operation operations = 1 [json_name = "operations"]; - {PROTOBUF_FIELD_OFFSET(GetOperationsResponse, _impl_.operations_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::robot::v1::Operation>()}, - }}, {{ - }}, -}; - -::uint8_t* GetOperationsResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.GetOperationsResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // repeated .viam.robot.v1.Operation operations = 1 [json_name = "operations"]; - for (unsigned i = 0, - n = static_cast(this->_internal_operations_size()); i < n; i++) { - const auto& repfield = this->_internal_operations().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.robot.v1.BlockForOperationRequest.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.robot.v1.GetOperationsResponse) + // @@protoc_insertion_point(serialize_to_array_end:viam.robot.v1.BlockForOperationRequest) return target; } -::size_t GetOperationsResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.GetOperationsResponse) - ::size_t total_size = 0; +size_t BlockForOperationRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.BlockForOperationRequest) + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated .viam.robot.v1.Operation operations = 1 [json_name = "operations"]; - total_size += 1UL * this->_internal_operations_size(); - for (const auto& msg : this->_internal_operations()) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + // string id = 1 [json_name = "id"]; + if (!this->_internal_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetOperationsResponse::_class_data_ = { - GetOperationsResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData BlockForOperationRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + BlockForOperationRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetOperationsResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*BlockForOperationRequest::GetClassData() const { return &_class_data_; } + +void BlockForOperationRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetOperationsResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.GetOperationsResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void BlockForOperationRequest::MergeFrom(const BlockForOperationRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.BlockForOperationRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_operations()->MergeFrom( - from._internal_operations()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + if (!from._internal_id().empty()) { + _internal_set_id(from._internal_id()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void GetOperationsResponse::CopyFrom(const GetOperationsResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.GetOperationsResponse) +void BlockForOperationRequest::CopyFrom(const BlockForOperationRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.BlockForOperationRequest) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool GetOperationsResponse::IsInitialized() const { +bool BlockForOperationRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetOperationsResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetOperationsResponse::InternalSwap(GetOperationsResponse* PROTOBUF_RESTRICT other) { +void BlockForOperationRequest::InternalSwap(BlockForOperationRequest* other) { using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.operations_.InternalSwap(&other->_impl_.operations_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); } -::google::protobuf::Metadata GetOperationsResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata BlockForOperationRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, - file_level_metadata_robot_2fv1_2frobot_2eproto[14]); + file_level_metadata_robot_2fv1_2frobot_2eproto[19]); } + // =================================================================== -class CancelOperationRequest::_Internal { +class BlockForOperationResponse::_Internal { public: }; -CancelOperationRequest::CancelOperationRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:viam.robot.v1.CancelOperationRequest) +BlockForOperationResponse::BlockForOperationResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.BlockForOperationResponse) +} +BlockForOperationResponse::BlockForOperationResponse(const BlockForOperationResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.BlockForOperationResponse) } -inline PROTOBUF_NDEBUG_INLINE CancelOperationRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : id_(arena, from.id_), - _cached_size_{0} {} - -CancelOperationRequest::CancelOperationRequest( - ::google::protobuf::Arena* arena, - const CancelOperationRequest& from) - : ::google::protobuf::Message(arena) { - CancelOperationRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - // @@protoc_insertion_point(copy_constructor:viam.robot.v1.CancelOperationRequest) + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData BlockForOperationResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*BlockForOperationResponse::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata BlockForOperationResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, + file_level_metadata_robot_2fv1_2frobot_2eproto[20]); +} + +// =================================================================== + +class PeerConnectionInfo::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_remote_address(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_local_address(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } +}; + +PeerConnectionInfo::PeerConnectionInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.PeerConnectionInfo) +} +PeerConnectionInfo::PeerConnectionInfo(const PeerConnectionInfo& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + remote_address_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + remote_address_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (from._internal_has_remote_address()) { + remote_address_.Set(from._internal_remote_address(), + GetArenaForAllocation()); + } + local_address_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + local_address_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (from._internal_has_local_address()) { + local_address_.Set(from._internal_local_address(), + GetArenaForAllocation()); + } + type_ = from.type_; + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.PeerConnectionInfo) } -inline PROTOBUF_NDEBUG_INLINE CancelOperationRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : id_(arena), - _cached_size_{0} {} -inline void CancelOperationRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void PeerConnectionInfo::SharedCtor() { +remote_address_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + remote_address_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +local_address_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + local_address_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +type_ = 0; } -CancelOperationRequest::~CancelOperationRequest() { - // @@protoc_insertion_point(destructor:viam.robot.v1.CancelOperationRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + +PeerConnectionInfo::~PeerConnectionInfo() { + // @@protoc_insertion_point(destructor:viam.robot.v1.PeerConnectionInfo) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } -inline void CancelOperationRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.~Impl_(); + +inline void PeerConnectionInfo::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + remote_address_.Destroy(); + local_address_.Destroy(); } -PROTOBUF_NOINLINE void CancelOperationRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.robot.v1.CancelOperationRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; +void PeerConnectionInfo::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void PeerConnectionInfo::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.robot.v1.PeerConnectionInfo) + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* CancelOperationRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + remote_address_.ClearNonDefaultToEmpty(); + } + if (cached_has_bits & 0x00000002u) { + local_address_.ClearNonDefaultToEmpty(); + } + } + type_ = 0; + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* PeerConnectionInfo::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .viam.robot.v1.PeerConnectionType type = 1 [json_name = "type"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_type(static_cast<::viam::robot::v1::PeerConnectionType>(val)); + } else + goto handle_unusual; + continue; + // optional string remote_address = 2 [json_name = "remoteAddress"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_remote_address(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.robot.v1.PeerConnectionInfo.remote_address")); + } else + goto handle_unusual; + continue; + // optional string local_address = 3 [json_name = "localAddress"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_local_address(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.robot.v1.PeerConnectionInfo.local_address")); + } 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: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } +uint8_t* PeerConnectionInfo::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.PeerConnectionInfo) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 47, 2> CancelOperationRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_CancelOperationRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string id = 1 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(CancelOperationRequest, _impl_.id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(CancelOperationRequest, _impl_.id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\44\2\0\0\0\0\0\0" - "viam.robot.v1.CancelOperationRequest" - "id" - }}, -}; - -::uint8_t* CancelOperationRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.CancelOperationRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + // .viam.robot.v1.PeerConnectionType type = 1 [json_name = "type"]; + if (this->_internal_type() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this->_internal_type(), target); + } - // string id = 1 [json_name = "id"]; - if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.robot.v1.CancelOperationRequest.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + // optional string remote_address = 2 [json_name = "remoteAddress"]; + if (_internal_has_remote_address()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_remote_address().data(), static_cast(this->_internal_remote_address().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.robot.v1.PeerConnectionInfo.remote_address"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_remote_address(), target); + } + + // optional string local_address = 3 [json_name = "localAddress"]; + if (_internal_has_local_address()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_local_address().data(), static_cast(this->_internal_local_address().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.robot.v1.PeerConnectionInfo.local_address"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_local_address(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.robot.v1.CancelOperationRequest) + // @@protoc_insertion_point(serialize_to_array_end:viam.robot.v1.PeerConnectionInfo) return target; } -::size_t CancelOperationRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.CancelOperationRequest) - ::size_t total_size = 0; +size_t PeerConnectionInfo::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.PeerConnectionInfo) + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string id = 1 [json_name = "id"]; - if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + // optional string remote_address = 2 [json_name = "remoteAddress"]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_remote_address()); + } + + // optional string local_address = 3 [json_name = "localAddress"]; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_local_address()); + } + + } + // .viam.robot.v1.PeerConnectionType type = 1 [json_name = "type"]; + if (this->_internal_type() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_type()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData CancelOperationRequest::_class_data_ = { - CancelOperationRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PeerConnectionInfo::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + PeerConnectionInfo::MergeImpl }; -const ::google::protobuf::Message::ClassData* CancelOperationRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PeerConnectionInfo::GetClassData() const { return &_class_data_; } + +void PeerConnectionInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void CancelOperationRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.CancelOperationRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void PeerConnectionInfo::MergeFrom(const PeerConnectionInfo& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.PeerConnectionInfo) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + _internal_set_remote_address(from._internal_remote_address()); + } + if (cached_has_bits & 0x00000002u) { + _internal_set_local_address(from._internal_local_address()); + } + } + if (from._internal_type() != 0) { + _internal_set_type(from._internal_type()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void CancelOperationRequest::CopyFrom(const CancelOperationRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.CancelOperationRequest) +void PeerConnectionInfo::CopyFrom(const PeerConnectionInfo& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.PeerConnectionInfo) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool CancelOperationRequest::IsInitialized() const { +bool PeerConnectionInfo::IsInitialized() const { return true; } -::_pbi::CachedSize* CancelOperationRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void CancelOperationRequest::InternalSwap(CancelOperationRequest* PROTOBUF_RESTRICT other) { +void PeerConnectionInfo::InternalSwap(PeerConnectionInfo* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); -} - -::google::protobuf::Metadata CancelOperationRequest::GetMetadata() const { + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &remote_address_, lhs_arena, + &other->remote_address_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &local_address_, lhs_arena, + &other->local_address_, rhs_arena + ); + swap(type_, other->type_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata PeerConnectionInfo::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, - file_level_metadata_robot_2fv1_2frobot_2eproto[15]); + file_level_metadata_robot_2fv1_2frobot_2eproto[21]); } + // =================================================================== -class CancelOperationResponse::_Internal { +class Session::_Internal { public: + using HasBits = decltype(std::declval()._has_bits_); + static const ::viam::robot::v1::PeerConnectionInfo& peer_connection_info(const Session* msg); + static void set_has_peer_connection_info(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; -CancelOperationResponse::CancelOperationResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:viam.robot.v1.CancelOperationResponse) +const ::viam::robot::v1::PeerConnectionInfo& +Session::_Internal::peer_connection_info(const Session* msg) { + return *msg->peer_connection_info_; } -CancelOperationResponse::CancelOperationResponse( - ::google::protobuf::Arena* arena, - const CancelOperationResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - CancelOperationResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:viam.robot.v1.CancelOperationResponse) +Session::Session(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.Session) } - - - - - - - - - -::google::protobuf::Metadata CancelOperationResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, - file_level_metadata_robot_2fv1_2frobot_2eproto[16]); +Session::Session(const Session& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } + if (from._internal_has_peer_connection_info()) { + peer_connection_info_ = new ::viam::robot::v1::PeerConnectionInfo(*from.peer_connection_info_); + } else { + peer_connection_info_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.Session) } -// =================================================================== - -class BlockForOperationRequest::_Internal { - public: -}; -BlockForOperationRequest::BlockForOperationRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:viam.robot.v1.BlockForOperationRequest) +inline void Session::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +peer_connection_info_ = nullptr; } -inline PROTOBUF_NDEBUG_INLINE BlockForOperationRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : id_(arena, from.id_), - _cached_size_{0} {} - -BlockForOperationRequest::BlockForOperationRequest( - ::google::protobuf::Arena* arena, - const BlockForOperationRequest& from) - : ::google::protobuf::Message(arena) { - BlockForOperationRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - // @@protoc_insertion_point(copy_constructor:viam.robot.v1.BlockForOperationRequest) +Session::~Session() { + // @@protoc_insertion_point(destructor:viam.robot.v1.Session) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); } -inline PROTOBUF_NDEBUG_INLINE BlockForOperationRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : id_(arena), - _cached_size_{0} {} -inline void BlockForOperationRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -BlockForOperationRequest::~BlockForOperationRequest() { - // @@protoc_insertion_point(destructor:viam.robot.v1.BlockForOperationRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); +inline void Session::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); + if (this != internal_default_instance()) delete peer_connection_info_; } -inline void BlockForOperationRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.~Impl_(); + +void Session::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void BlockForOperationRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.robot.v1.BlockForOperationRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; +void Session::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.robot.v1.Session) + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* BlockForOperationRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + id_.ClearToEmpty(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(peer_connection_info_ != nullptr); + peer_connection_info_->Clear(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Session::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.robot.v1.Session.id")); + } else + goto handle_unusual; + continue; + // optional .viam.robot.v1.PeerConnectionInfo peer_connection_info = 2 [json_name = "peerConnectionInfo"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_peer_connection_info(), 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: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 49, 2> BlockForOperationRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_BlockForOperationRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string id = 1 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(BlockForOperationRequest, _impl_.id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(BlockForOperationRequest, _impl_.id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\46\2\0\0\0\0\0\0" - "viam.robot.v1.BlockForOperationRequest" - "id" - }}, -}; - -::uint8_t* BlockForOperationRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.BlockForOperationRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; +uint8_t* Session::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.Session) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.robot.v1.BlockForOperationRequest.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.robot.v1.Session.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); + } + + // optional .viam.robot.v1.PeerConnectionInfo peer_connection_info = 2 [json_name = "peerConnectionInfo"]; + if (_internal_has_peer_connection_info()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::peer_connection_info(this), + _Internal::peer_connection_info(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.robot.v1.BlockForOperationRequest) + // @@protoc_insertion_point(serialize_to_array_end:viam.robot.v1.Session) return target; } -::size_t BlockForOperationRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.BlockForOperationRequest) - ::size_t total_size = 0; +size_t Session::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.Session) + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); + } + + // optional .viam.robot.v1.PeerConnectionInfo peer_connection_info = 2 [json_name = "peerConnectionInfo"]; + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *peer_connection_info_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData BlockForOperationRequest::_class_data_ = { - BlockForOperationRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Session::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Session::MergeImpl }; -const ::google::protobuf::Message::ClassData* BlockForOperationRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Session::GetClassData() const { return &_class_data_; } + +void Session::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void BlockForOperationRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.BlockForOperationRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Session::MergeFrom(const Session& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.Session) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_peer_connection_info()) { + _internal_mutable_peer_connection_info()->::viam::robot::v1::PeerConnectionInfo::MergeFrom(from._internal_peer_connection_info()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void BlockForOperationRequest::CopyFrom(const BlockForOperationRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.BlockForOperationRequest) +void Session::CopyFrom(const Session& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.Session) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool BlockForOperationRequest::IsInitialized() const { +bool Session::IsInitialized() const { return true; } -::_pbi::CachedSize* BlockForOperationRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void BlockForOperationRequest::InternalSwap(BlockForOperationRequest* PROTOBUF_RESTRICT other) { +void Session::InternalSwap(Session* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); + swap(peer_connection_info_, other->peer_connection_info_); } -::google::protobuf::Metadata BlockForOperationRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Session::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, - file_level_metadata_robot_2fv1_2frobot_2eproto[17]); + file_level_metadata_robot_2fv1_2frobot_2eproto[22]); } + // =================================================================== -class BlockForOperationResponse::_Internal { +class GetSessionsRequest::_Internal { public: }; -BlockForOperationResponse::BlockForOperationResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:viam.robot.v1.BlockForOperationResponse) +GetSessionsRequest::GetSessionsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.GetSessionsRequest) } -BlockForOperationResponse::BlockForOperationResponse( - ::google::protobuf::Arena* arena, - const BlockForOperationResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - BlockForOperationResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:viam.robot.v1.BlockForOperationResponse) +GetSessionsRequest::GetSessionsRequest(const GetSessionsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.GetSessionsRequest) } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetSessionsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetSessionsRequest::GetClassData() const { return &_class_data_; } + + + -::google::protobuf::Metadata BlockForOperationResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetSessionsRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, - file_level_metadata_robot_2fv1_2frobot_2eproto[18]); + file_level_metadata_robot_2fv1_2frobot_2eproto[23]); } + // =================================================================== -class PeerConnectionInfo::_Internal { +class GetSessionsResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(PeerConnectionInfo, _impl_._has_bits_); - static void set_has_remote_address(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_local_address(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } }; -PeerConnectionInfo::PeerConnectionInfo(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:viam.robot.v1.PeerConnectionInfo) +GetSessionsResponse::GetSessionsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + sessions_(arena) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.GetSessionsResponse) } -inline PROTOBUF_NDEBUG_INLINE PeerConnectionInfo::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - remote_address_(arena, from.remote_address_), - local_address_(arena, from.local_address_) {} - -PeerConnectionInfo::PeerConnectionInfo( - ::google::protobuf::Arena* arena, - const PeerConnectionInfo& from) - : ::google::protobuf::Message(arena) { - PeerConnectionInfo* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.type_ = from._impl_.type_; - - // @@protoc_insertion_point(copy_constructor:viam.robot.v1.PeerConnectionInfo) +GetSessionsResponse::GetSessionsResponse(const GetSessionsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + sessions_(from.sessions_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.GetSessionsResponse) } -inline PROTOBUF_NDEBUG_INLINE PeerConnectionInfo::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - remote_address_(arena), - local_address_(arena) {} -inline void PeerConnectionInfo::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.type_ = {}; +inline void GetSessionsResponse::SharedCtor() { } -PeerConnectionInfo::~PeerConnectionInfo() { - // @@protoc_insertion_point(destructor:viam.robot.v1.PeerConnectionInfo) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + +GetSessionsResponse::~GetSessionsResponse() { + // @@protoc_insertion_point(destructor:viam.robot.v1.GetSessionsResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } -inline void PeerConnectionInfo::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.remote_address_.Destroy(); - _impl_.local_address_.Destroy(); - _impl_.~Impl_(); + +inline void GetSessionsResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void PeerConnectionInfo::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.robot.v1.PeerConnectionInfo) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; +void GetSessionsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetSessionsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.robot.v1.GetSessionsResponse) + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _impl_.remote_address_.ClearNonDefaultToEmpty(); - } - if (cached_has_bits & 0x00000002u) { - _impl_.local_address_.ClearNonDefaultToEmpty(); + sessions_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetSessionsResponse::_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) { + // repeated .viam.robot.v1.Session sessions = 1 [json_name = "sessions"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_sessions(), 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; } - } - _impl_.type_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* PeerConnectionInfo::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + 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* GetSessionsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.GetSessionsResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 68, 2> PeerConnectionInfo::_table_ = { - { - PROTOBUF_FIELD_OFFSET(PeerConnectionInfo, _impl_._has_bits_), - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_PeerConnectionInfo_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // .viam.robot.v1.PeerConnectionType type = 1 [json_name = "type"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(PeerConnectionInfo, _impl_.type_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(PeerConnectionInfo, _impl_.type_)}}, - // optional string remote_address = 2 [json_name = "remoteAddress"]; - {::_pbi::TcParser::FastUS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(PeerConnectionInfo, _impl_.remote_address_)}}, - // optional string local_address = 3 [json_name = "localAddress"]; - {::_pbi::TcParser::FastUS1, - {26, 1, 0, PROTOBUF_FIELD_OFFSET(PeerConnectionInfo, _impl_.local_address_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.robot.v1.PeerConnectionType type = 1 [json_name = "type"]; - {PROTOBUF_FIELD_OFFSET(PeerConnectionInfo, _impl_.type_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // optional string remote_address = 2 [json_name = "remoteAddress"]; - {PROTOBUF_FIELD_OFFSET(PeerConnectionInfo, _impl_.remote_address_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // optional string local_address = 3 [json_name = "localAddress"]; - {PROTOBUF_FIELD_OFFSET(PeerConnectionInfo, _impl_.local_address_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\40\0\16\15\0\0\0\0" - "viam.robot.v1.PeerConnectionInfo" - "remote_address" - "local_address" - }}, -}; - -::uint8_t* PeerConnectionInfo::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.PeerConnectionInfo) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // .viam.robot.v1.PeerConnectionType type = 1 [json_name = "type"]; - if (this->_internal_type() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_type(), target); - } - - cached_has_bits = _impl_._has_bits_[0]; - // optional string remote_address = 2 [json_name = "remoteAddress"]; - if (cached_has_bits & 0x00000001u) { - const std::string& _s = this->_internal_remote_address(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.robot.v1.PeerConnectionInfo.remote_address"); - target = stream->WriteStringMaybeAliased(2, _s, target); - } - - // optional string local_address = 3 [json_name = "localAddress"]; - if (cached_has_bits & 0x00000002u) { - const std::string& _s = this->_internal_local_address(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.robot.v1.PeerConnectionInfo.local_address"); - target = stream->WriteStringMaybeAliased(3, _s, target); + // repeated .viam.robot.v1.Session sessions = 1 [json_name = "sessions"]; + for (unsigned i = 0, + n = static_cast(this->_internal_sessions_size()); i < n; i++) { + const auto& repfield = this->_internal_sessions(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.robot.v1.PeerConnectionInfo) + // @@protoc_insertion_point(serialize_to_array_end:viam.robot.v1.GetSessionsResponse) return target; } -::size_t PeerConnectionInfo::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.PeerConnectionInfo) - ::size_t total_size = 0; +size_t GetSessionsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.GetSessionsResponse) + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // optional string remote_address = 2 [json_name = "remoteAddress"]; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_remote_address()); - } - - // optional string local_address = 3 [json_name = "localAddress"]; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_local_address()); - } - - } - // .viam.robot.v1.PeerConnectionType type = 1 [json_name = "type"]; - if (this->_internal_type() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_type()); + // repeated .viam.robot.v1.Session sessions = 1 [json_name = "sessions"]; + total_size += 1UL * this->_internal_sessions_size(); + for (const auto& msg : this->sessions_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData PeerConnectionInfo::_class_data_ = { - PeerConnectionInfo::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetSessionsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetSessionsResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* PeerConnectionInfo::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetSessionsResponse::GetClassData() const { return &_class_data_; } + +void GetSessionsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void PeerConnectionInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.PeerConnectionInfo) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetSessionsResponse::MergeFrom(const GetSessionsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.GetSessionsResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_set_remote_address(from._internal_remote_address()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_set_local_address(from._internal_local_address()); - } - } - if (from._internal_type() != 0) { - _this->_internal_set_type(from._internal_type()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + sessions_.MergeFrom(from.sessions_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void PeerConnectionInfo::CopyFrom(const PeerConnectionInfo& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.PeerConnectionInfo) +void GetSessionsResponse::CopyFrom(const GetSessionsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.GetSessionsResponse) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool PeerConnectionInfo::IsInitialized() const { +bool GetSessionsResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* PeerConnectionInfo::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void PeerConnectionInfo::InternalSwap(PeerConnectionInfo* PROTOBUF_RESTRICT other) { +void GetSessionsResponse::InternalSwap(GetSessionsResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.remote_address_, &other->_impl_.remote_address_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.local_address_, &other->_impl_.local_address_, arena); - swap(_impl_.type_, other->_impl_.type_); + sessions_.InternalSwap(&other->sessions_); } -::google::protobuf::Metadata PeerConnectionInfo::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetSessionsResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, - file_level_metadata_robot_2fv1_2frobot_2eproto[19]); + file_level_metadata_robot_2fv1_2frobot_2eproto[24]); } + // =================================================================== -class Session::_Internal { +class DiscoveryQuery::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Session, _impl_._has_bits_); - static const ::viam::robot::v1::PeerConnectionInfo& peer_connection_info(const Session* msg); - static void set_has_peer_connection_info(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const DiscoveryQuery* msg); }; -const ::viam::robot::v1::PeerConnectionInfo& Session::_Internal::peer_connection_info(const Session* msg) { - return *msg->_impl_.peer_connection_info_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +DiscoveryQuery::_Internal::extra(const DiscoveryQuery* msg) { + return *msg->extra_; } -Session::Session(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:viam.robot.v1.Session) +void DiscoveryQuery::clear_extra() { + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -inline PROTOBUF_NDEBUG_INLINE Session::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - id_(arena, from.id_) {} - -Session::Session( - ::google::protobuf::Arena* arena, - const Session& from) - : ::google::protobuf::Message(arena) { - Session* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.peer_connection_info_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::robot::v1::PeerConnectionInfo>(arena, *from._impl_.peer_connection_info_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:viam.robot.v1.Session) +DiscoveryQuery::DiscoveryQuery(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.DiscoveryQuery) +} +DiscoveryQuery::DiscoveryQuery(const DiscoveryQuery& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + subtype_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + subtype_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_subtype().empty()) { + subtype_.Set(from._internal_subtype(), + GetArenaForAllocation()); + } + model_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + model_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_model().empty()) { + model_.Set(from._internal_model(), + GetArenaForAllocation()); + } + if (from._internal_has_extra()) { + extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.extra_); + } else { + extra_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.DiscoveryQuery) } -inline PROTOBUF_NDEBUG_INLINE Session::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - id_(arena) {} -inline void Session::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.peer_connection_info_ = {}; +inline void DiscoveryQuery::SharedCtor() { +subtype_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + subtype_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +model_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + model_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } -Session::~Session() { - // @@protoc_insertion_point(destructor:viam.robot.v1.Session) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + +DiscoveryQuery::~DiscoveryQuery() { + // @@protoc_insertion_point(destructor:viam.robot.v1.DiscoveryQuery) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } -inline void Session::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - delete _impl_.peer_connection_info_; - _impl_.~Impl_(); + +inline void DiscoveryQuery::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + subtype_.Destroy(); + model_.Destroy(); + if (this != internal_default_instance()) delete extra_; } -PROTOBUF_NOINLINE void Session::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.robot.v1.Session) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; +void DiscoveryQuery::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void DiscoveryQuery::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.robot.v1.DiscoveryQuery) + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.id_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.peer_connection_info_ != nullptr); - _impl_.peer_connection_info_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Session::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + subtype_.ClearToEmpty(); + model_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DiscoveryQuery::_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 subtype = 1 [json_name = "subtype"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_subtype(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.robot.v1.DiscoveryQuery.subtype")); + } else + goto handle_unusual; + continue; + // string model = 2 [json_name = "model"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_model(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.robot.v1.DiscoveryQuery.model")); + } 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* DiscoveryQuery::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.DiscoveryQuery) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 32, 2> Session::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Session, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Session_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // optional .viam.robot.v1.PeerConnectionInfo peer_connection_info = 2 [json_name = "peerConnectionInfo"]; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(Session, _impl_.peer_connection_info_)}}, - // string id = 1 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Session, _impl_.id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(Session, _impl_.id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // optional .viam.robot.v1.PeerConnectionInfo peer_connection_info = 2 [json_name = "peerConnectionInfo"]; - {PROTOBUF_FIELD_OFFSET(Session, _impl_.peer_connection_info_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::robot::v1::PeerConnectionInfo>()}, - }}, {{ - "\25\2\0\0\0\0\0\0" - "viam.robot.v1.Session" - "id" - }}, -}; - -::uint8_t* Session::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.Session) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + // string subtype = 1 [json_name = "subtype"]; + if (!this->_internal_subtype().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_subtype().data(), static_cast(this->_internal_subtype().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.robot.v1.DiscoveryQuery.subtype"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_subtype(), target); + } - // string id = 1 [json_name = "id"]; - if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.robot.v1.Session.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + // string model = 2 [json_name = "model"]; + if (!this->_internal_model().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_model().data(), static_cast(this->_internal_model().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.robot.v1.DiscoveryQuery.model"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_model(), target); } - cached_has_bits = _impl_._has_bits_[0]; - // optional .viam.robot.v1.PeerConnectionInfo peer_connection_info = 2 [json_name = "peerConnectionInfo"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::peer_connection_info(this), - _Internal::peer_connection_info(this).GetCachedSize(), target, stream); + // .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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.robot.v1.Session) + // @@protoc_insertion_point(serialize_to_array_end:viam.robot.v1.DiscoveryQuery) return target; } -::size_t Session::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.Session) - ::size_t total_size = 0; +size_t DiscoveryQuery::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.DiscoveryQuery) + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string id = 1 [json_name = "id"]; - if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + // string subtype = 1 [json_name = "subtype"]; + if (!this->_internal_subtype().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_subtype()); } - // optional .viam.robot.v1.PeerConnectionInfo peer_connection_info = 2 [json_name = "peerConnectionInfo"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.peer_connection_info_); + // string model = 2 [json_name = "model"]; + if (!this->_internal_model().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_model()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + // .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 ::google::protobuf::Message::ClassData Session::_class_data_ = { - Session::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DiscoveryQuery::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + DiscoveryQuery::MergeImpl }; -const ::google::protobuf::Message::ClassData* Session::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DiscoveryQuery::GetClassData() const { return &_class_data_; } + +void DiscoveryQuery::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Session::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.Session) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void DiscoveryQuery::MergeFrom(const DiscoveryQuery& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.DiscoveryQuery) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + if (!from._internal_subtype().empty()) { + _internal_set_subtype(from._internal_subtype()); + } + if (!from._internal_model().empty()) { + _internal_set_model(from._internal_model()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_peer_connection_info()->::viam::robot::v1::PeerConnectionInfo::MergeFrom( - from._internal_peer_connection_info()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void Session::CopyFrom(const Session& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.Session) +void DiscoveryQuery::CopyFrom(const DiscoveryQuery& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.DiscoveryQuery) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool Session::IsInitialized() const { +bool DiscoveryQuery::IsInitialized() const { return true; } -::_pbi::CachedSize* Session::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Session::InternalSwap(Session* PROTOBUF_RESTRICT other) { +void DiscoveryQuery::InternalSwap(DiscoveryQuery* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); - swap(_impl_.peer_connection_info_, other->_impl_.peer_connection_info_); -} - -::google::protobuf::Metadata Session::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &subtype_, lhs_arena, + &other->subtype_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &model_, lhs_arena, + &other->model_, rhs_arena + ); + swap(extra_, other->extra_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata DiscoveryQuery::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, - file_level_metadata_robot_2fv1_2frobot_2eproto[20]); + file_level_metadata_robot_2fv1_2frobot_2eproto[25]); } + // =================================================================== -class GetSessionsRequest::_Internal { +class Discovery::_Internal { public: + static const ::viam::robot::v1::DiscoveryQuery& query(const Discovery* msg); + static const ::PROTOBUF_NAMESPACE_ID::Struct& results(const Discovery* msg); }; -GetSessionsRequest::GetSessionsRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:viam.robot.v1.GetSessionsRequest) +const ::viam::robot::v1::DiscoveryQuery& +Discovery::_Internal::query(const Discovery* msg) { + return *msg->query_; } -GetSessionsRequest::GetSessionsRequest( - ::google::protobuf::Arena* arena, - const GetSessionsRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - GetSessionsRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:viam.robot.v1.GetSessionsRequest) +const ::PROTOBUF_NAMESPACE_ID::Struct& +Discovery::_Internal::results(const Discovery* msg) { + return *msg->results_; } - - - - - - - - - -::google::protobuf::Metadata GetSessionsRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, - file_level_metadata_robot_2fv1_2frobot_2eproto[21]); +void Discovery::clear_results() { + if (GetArenaForAllocation() == nullptr && results_ != nullptr) { + delete results_; + } + results_ = nullptr; } -// =================================================================== - -class GetSessionsResponse::_Internal { - public: -}; - -GetSessionsResponse::GetSessionsResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:viam.robot.v1.GetSessionsResponse) +Discovery::Discovery(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.Discovery) } -inline PROTOBUF_NDEBUG_INLINE GetSessionsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : sessions_{visibility, arena, from.sessions_}, - _cached_size_{0} {} - -GetSessionsResponse::GetSessionsResponse( - ::google::protobuf::Arena* arena, - const GetSessionsResponse& from) - : ::google::protobuf::Message(arena) { - GetSessionsResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:viam.robot.v1.GetSessionsResponse) +Discovery::Discovery(const Discovery& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_query()) { + query_ = new ::viam::robot::v1::DiscoveryQuery(*from.query_); + } else { + query_ = nullptr; + } + if (from._internal_has_results()) { + results_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.results_); + } else { + results_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.Discovery) } -inline PROTOBUF_NDEBUG_INLINE GetSessionsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : sessions_{visibility, arena}, - _cached_size_{0} {} -inline void GetSessionsResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void Discovery::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&query_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&results_) - + reinterpret_cast(&query_)) + sizeof(results_)); } -GetSessionsResponse::~GetSessionsResponse() { - // @@protoc_insertion_point(destructor:viam.robot.v1.GetSessionsResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + +Discovery::~Discovery() { + // @@protoc_insertion_point(destructor:viam.robot.v1.Discovery) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } -inline void GetSessionsResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + +inline void Discovery::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete query_; + if (this != internal_default_instance()) delete results_; } -PROTOBUF_NOINLINE void GetSessionsResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.robot.v1.GetSessionsResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; +void Discovery::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void Discovery::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.robot.v1.Discovery) + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.sessions_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetSessionsResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + if (GetArenaForAllocation() == nullptr && query_ != nullptr) { + delete query_; + } + query_ = nullptr; + if (GetArenaForAllocation() == nullptr && results_ != nullptr) { + delete results_; + } + results_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Discovery::_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.robot.v1.DiscoveryQuery query = 1 [json_name = "query"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_query(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct results = 2 [json_name = "results"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_results(), 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* Discovery::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.Discovery) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetSessionsResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetSessionsResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.robot.v1.Session sessions = 1 [json_name = "sessions"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetSessionsResponse, _impl_.sessions_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.robot.v1.Session sessions = 1 [json_name = "sessions"]; - {PROTOBUF_FIELD_OFFSET(GetSessionsResponse, _impl_.sessions_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::robot::v1::Session>()}, - }}, {{ - }}, -}; - -::uint8_t* GetSessionsResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.GetSessionsResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + // .viam.robot.v1.DiscoveryQuery query = 1 [json_name = "query"]; + if (this->_internal_has_query()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::query(this), + _Internal::query(this).GetCachedSize(), target, stream); + } - // repeated .viam.robot.v1.Session sessions = 1 [json_name = "sessions"]; - for (unsigned i = 0, - n = static_cast(this->_internal_sessions_size()); i < n; i++) { - const auto& repfield = this->_internal_sessions().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + // .google.protobuf.Struct results = 2 [json_name = "results"]; + if (this->_internal_has_results()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::results(this), + _Internal::results(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.robot.v1.GetSessionsResponse) + // @@protoc_insertion_point(serialize_to_array_end:viam.robot.v1.Discovery) return target; } -::size_t GetSessionsResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.GetSessionsResponse) - ::size_t total_size = 0; +size_t Discovery::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.Discovery) + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated .viam.robot.v1.Session sessions = 1 [json_name = "sessions"]; - total_size += 1UL * this->_internal_sessions_size(); - for (const auto& msg : this->_internal_sessions()) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + // .viam.robot.v1.DiscoveryQuery query = 1 [json_name = "query"]; + if (this->_internal_has_query()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *query_); + } + + // .google.protobuf.Struct results = 2 [json_name = "results"]; + if (this->_internal_has_results()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *results_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetSessionsResponse::_class_data_ = { - GetSessionsResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Discovery::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Discovery::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetSessionsResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Discovery::GetClassData() const { return &_class_data_; } + +void Discovery::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetSessionsResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.GetSessionsResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Discovery::MergeFrom(const Discovery& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.Discovery) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_sessions()->MergeFrom( - from._internal_sessions()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_query()) { + _internal_mutable_query()->::viam::robot::v1::DiscoveryQuery::MergeFrom(from._internal_query()); + } + if (from._internal_has_results()) { + _internal_mutable_results()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_results()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void GetSessionsResponse::CopyFrom(const GetSessionsResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.GetSessionsResponse) +void Discovery::CopyFrom(const Discovery& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.Discovery) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool GetSessionsResponse::IsInitialized() const { +bool Discovery::IsInitialized() const { return true; } -::_pbi::CachedSize* GetSessionsResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetSessionsResponse::InternalSwap(GetSessionsResponse* PROTOBUF_RESTRICT other) { +void Discovery::InternalSwap(Discovery* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.sessions_.InternalSwap(&other->_impl_.sessions_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Discovery, results_) + + sizeof(Discovery::results_) + - PROTOBUF_FIELD_OFFSET(Discovery, query_)>( + reinterpret_cast(&query_), + reinterpret_cast(&other->query_)); } -::google::protobuf::Metadata GetSessionsResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Discovery::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, - file_level_metadata_robot_2fv1_2frobot_2eproto[22]); + file_level_metadata_robot_2fv1_2frobot_2eproto[26]); } + // =================================================================== -class DiscoveryQuery::_Internal { +class ModuleModel::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(DiscoveryQuery, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const DiscoveryQuery* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::google::protobuf::Struct& DiscoveryQuery::_Internal::extra(const DiscoveryQuery* msg) { - return *msg->_impl_.extra_; -} -void DiscoveryQuery::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -DiscoveryQuery::DiscoveryQuery(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:viam.robot.v1.DiscoveryQuery) +ModuleModel::ModuleModel(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.ModuleModel) +} +ModuleModel::ModuleModel(const ModuleModel& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + module_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + module_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_module_name().empty()) { + module_name_.Set(from._internal_module_name(), + GetArenaForAllocation()); + } + model_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + model_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_model().empty()) { + model_.Set(from._internal_model(), + GetArenaForAllocation()); + } + api_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + api_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_api().empty()) { + api_.Set(from._internal_api(), + GetArenaForAllocation()); + } + from_local_module_ = from.from_local_module_; + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.ModuleModel) +} + +inline void ModuleModel::SharedCtor() { +module_name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + module_name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +model_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + model_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +api_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + api_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +from_local_module_ = false; +} + +ModuleModel::~ModuleModel() { + // @@protoc_insertion_point(destructor:viam.robot.v1.ModuleModel) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); } -inline PROTOBUF_NDEBUG_INLINE DiscoveryQuery::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - subtype_(arena, from.subtype_), - model_(arena, from.model_) {} - -DiscoveryQuery::DiscoveryQuery( - ::google::protobuf::Arena* arena, - const DiscoveryQuery& from) - : ::google::protobuf::Message(arena) { - DiscoveryQuery* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - // @@protoc_insertion_point(copy_constructor:viam.robot.v1.DiscoveryQuery) +inline void ModuleModel::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + module_name_.Destroy(); + model_.Destroy(); + api_.Destroy(); } -inline PROTOBUF_NDEBUG_INLINE DiscoveryQuery::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - subtype_(arena), - model_(arena) {} -inline void DiscoveryQuery::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; -} -DiscoveryQuery::~DiscoveryQuery() { - // @@protoc_insertion_point(destructor:viam.robot.v1.DiscoveryQuery) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void DiscoveryQuery::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.subtype_.Destroy(); - _impl_.model_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); +void ModuleModel::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void DiscoveryQuery::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.robot.v1.DiscoveryQuery) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; +void ModuleModel::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.robot.v1.ModuleModel) + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.subtype_.ClearToEmpty(); - _impl_.model_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* DiscoveryQuery::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + module_name_.ClearToEmpty(); + model_.ClearToEmpty(); + api_.ClearToEmpty(); + from_local_module_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ModuleModel::_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 module_name = 1 [json_name = "moduleName"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_module_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.robot.v1.ModuleModel.module_name")); + } else + goto handle_unusual; + continue; + // string model = 2 [json_name = "model"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_model(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.robot.v1.ModuleModel.model")); + } else + goto handle_unusual; + continue; + // string api = 3 [json_name = "api"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_api(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.robot.v1.ModuleModel.api")); + } else + goto handle_unusual; + continue; + // bool from_local_module = 4 [json_name = "fromLocalModule"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + from_local_module_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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* ModuleModel::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.ModuleModel) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 1, 49, 7> DiscoveryQuery::_table_ = { - { - PROTOBUF_FIELD_OFFSET(DiscoveryQuery, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_DiscoveryQuery_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string subtype = 1 [json_name = "subtype"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(DiscoveryQuery, _impl_.subtype_)}}, - // string model = 2 [json_name = "model"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(DiscoveryQuery, _impl_.model_)}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(DiscoveryQuery, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 2, - 65535, 65535 - }}, {{ - // string subtype = 1 [json_name = "subtype"]; - {PROTOBUF_FIELD_OFFSET(DiscoveryQuery, _impl_.subtype_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string model = 2 [json_name = "model"]; - {PROTOBUF_FIELD_OFFSET(DiscoveryQuery, _impl_.model_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(DiscoveryQuery, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\34\7\5\0\0\0\0\0" - "viam.robot.v1.DiscoveryQuery" - "subtype" - "model" - }}, -}; - -::uint8_t* DiscoveryQuery::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.DiscoveryQuery) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string subtype = 1 [json_name = "subtype"]; - if (!this->_internal_subtype().empty()) { - const std::string& _s = this->_internal_subtype(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.robot.v1.DiscoveryQuery.subtype"); - target = stream->WriteStringMaybeAliased(1, _s, target); + // string module_name = 1 [json_name = "moduleName"]; + if (!this->_internal_module_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_module_name().data(), static_cast(this->_internal_module_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.robot.v1.ModuleModel.module_name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_module_name(), target); } // string model = 2 [json_name = "model"]; if (!this->_internal_model().empty()) { - const std::string& _s = this->_internal_model(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.robot.v1.DiscoveryQuery.model"); - target = stream->WriteStringMaybeAliased(2, _s, target); - } - - cached_has_bits = _impl_._has_bits_[0]; - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), - _Internal::extra(this).GetCachedSize(), target, stream); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_model().data(), static_cast(this->_internal_model().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.robot.v1.ModuleModel.model"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_model(), target); + } + + // string api = 3 [json_name = "api"]; + if (!this->_internal_api().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_api().data(), static_cast(this->_internal_api().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.robot.v1.ModuleModel.api"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_api(), target); + } + + // bool from_local_module = 4 [json_name = "fromLocalModule"]; + if (this->_internal_from_local_module() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(4, this->_internal_from_local_module(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.robot.v1.DiscoveryQuery) + // @@protoc_insertion_point(serialize_to_array_end:viam.robot.v1.ModuleModel) return target; } -::size_t DiscoveryQuery::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.DiscoveryQuery) - ::size_t total_size = 0; +size_t ModuleModel::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.ModuleModel) + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string subtype = 1 [json_name = "subtype"]; - if (!this->_internal_subtype().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_subtype()); + // string module_name = 1 [json_name = "moduleName"]; + if (!this->_internal_module_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_module_name()); } // string model = 2 [json_name = "model"]; if (!this->_internal_model().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_model()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_model()); } - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + // string api = 3 [json_name = "api"]; + if (!this->_internal_api().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_api()); + } + + // bool from_local_module = 4 [json_name = "fromLocalModule"]; + if (this->_internal_from_local_module() != 0) { + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData DiscoveryQuery::_class_data_ = { - DiscoveryQuery::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ModuleModel::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ModuleModel::MergeImpl }; -const ::google::protobuf::Message::ClassData* DiscoveryQuery::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ModuleModel::GetClassData() const { return &_class_data_; } + +void ModuleModel::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void DiscoveryQuery::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.DiscoveryQuery) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ModuleModel::MergeFrom(const ModuleModel& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.ModuleModel) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_subtype().empty()) { - _this->_internal_set_subtype(from._internal_subtype()); + if (!from._internal_module_name().empty()) { + _internal_set_module_name(from._internal_module_name()); } if (!from._internal_model().empty()) { - _this->_internal_set_model(from._internal_model()); + _internal_set_model(from._internal_model()); + } + if (!from._internal_api().empty()) { + _internal_set_api(from._internal_api()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_from_local_module() != 0) { + _internal_set_from_local_module(from._internal_from_local_module()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void DiscoveryQuery::CopyFrom(const DiscoveryQuery& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.DiscoveryQuery) - if (&from == this) return; - Clear(); - MergeFrom(from); -} +void ModuleModel::CopyFrom(const ModuleModel& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.ModuleModel) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ModuleModel::IsInitialized() const { + return true; +} + +void ModuleModel::InternalSwap(ModuleModel* 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( + &module_name_, lhs_arena, + &other->module_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &model_, lhs_arena, + &other->model_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &api_, lhs_arena, + &other->api_, rhs_arena + ); + swap(from_local_module_, other->from_local_module_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ModuleModel::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, + file_level_metadata_robot_2fv1_2frobot_2eproto[27]); +} + +// =================================================================== + +class GetModelsFromModulesRequest::_Internal { + public: +}; + +GetModelsFromModulesRequest::GetModelsFromModulesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.GetModelsFromModulesRequest) +} +GetModelsFromModulesRequest::GetModelsFromModulesRequest(const GetModelsFromModulesRequest& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.GetModelsFromModulesRequest) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetModelsFromModulesRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetModelsFromModulesRequest::GetClassData() const { return &_class_data_; } + + + + -PROTOBUF_NOINLINE bool DiscoveryQuery::IsInitialized() const { - return true; -} -::_pbi::CachedSize* DiscoveryQuery::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void DiscoveryQuery::InternalSwap(DiscoveryQuery* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.subtype_, &other->_impl_.subtype_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.model_, &other->_impl_.model_, arena); - swap(_impl_.extra_, other->_impl_.extra_); -} -::google::protobuf::Metadata DiscoveryQuery::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetModelsFromModulesRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, - file_level_metadata_robot_2fv1_2frobot_2eproto[23]); + file_level_metadata_robot_2fv1_2frobot_2eproto[28]); } + // =================================================================== -class Discovery::_Internal { +class GetModelsFromModulesResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Discovery, _impl_._has_bits_); - static const ::viam::robot::v1::DiscoveryQuery& query(const Discovery* msg); - static void set_has_query(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::google::protobuf::Struct& results(const Discovery* msg); - static void set_has_results(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } }; -const ::viam::robot::v1::DiscoveryQuery& Discovery::_Internal::query(const Discovery* msg) { - return *msg->_impl_.query_; -} -const ::google::protobuf::Struct& Discovery::_Internal::results(const Discovery* msg) { - return *msg->_impl_.results_; -} -void Discovery::clear_results() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.results_ != nullptr) _impl_.results_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; +GetModelsFromModulesResponse::GetModelsFromModulesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + models_(arena) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:viam.robot.v1.GetModelsFromModulesResponse) } -Discovery::Discovery(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:viam.robot.v1.Discovery) +GetModelsFromModulesResponse::GetModelsFromModulesResponse(const GetModelsFromModulesResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + models_(from.models_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.robot.v1.GetModelsFromModulesResponse) } -inline PROTOBUF_NDEBUG_INLINE Discovery::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -Discovery::Discovery( - ::google::protobuf::Arena* arena, - const Discovery& from) - : ::google::protobuf::Message(arena) { - Discovery* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.query_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::robot::v1::DiscoveryQuery>(arena, *from._impl_.query_) - : nullptr; - _impl_.results_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.results_) - : nullptr; - // @@protoc_insertion_point(copy_constructor:viam.robot.v1.Discovery) +inline void GetModelsFromModulesResponse::SharedCtor() { } -inline PROTOBUF_NDEBUG_INLINE Discovery::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void Discovery::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, query_), - 0, - offsetof(Impl_, results_) - - offsetof(Impl_, query_) + - sizeof(Impl_::results_)); -} -Discovery::~Discovery() { - // @@protoc_insertion_point(destructor:viam.robot.v1.Discovery) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); +GetModelsFromModulesResponse::~GetModelsFromModulesResponse() { + // @@protoc_insertion_point(destructor:viam.robot.v1.GetModelsFromModulesResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } -inline void Discovery::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.query_; - delete _impl_.results_; - _impl_.~Impl_(); + +inline void GetModelsFromModulesResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void Discovery::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.robot.v1.Discovery) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; +void GetModelsFromModulesResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetModelsFromModulesResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.robot.v1.GetModelsFromModulesResponse) + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.query_ != nullptr); - _impl_.query_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.results_ != nullptr); - _impl_.results_->Clear(); + models_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetModelsFromModulesResponse::_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) { + // repeated .viam.robot.v1.ModuleModel models = 1 [json_name = "models"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_models(), 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; } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Discovery::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + 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* GetModelsFromModulesResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.GetModelsFromModulesResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 2, 0, 2> Discovery::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Discovery, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Discovery_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .google.protobuf.Struct results = 2 [json_name = "results"]; - {::_pbi::TcParser::FastMtS1, - {18, 1, 1, PROTOBUF_FIELD_OFFSET(Discovery, _impl_.results_)}}, - // .viam.robot.v1.DiscoveryQuery query = 1 [json_name = "query"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(Discovery, _impl_.query_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.robot.v1.DiscoveryQuery query = 1 [json_name = "query"]; - {PROTOBUF_FIELD_OFFSET(Discovery, _impl_.query_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.protobuf.Struct results = 2 [json_name = "results"]; - {PROTOBUF_FIELD_OFFSET(Discovery, _impl_.results_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::robot::v1::DiscoveryQuery>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - }}, -}; - -::uint8_t* Discovery::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.Discovery) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .viam.robot.v1.DiscoveryQuery query = 1 [json_name = "query"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::query(this), - _Internal::query(this).GetCachedSize(), target, stream); - } - - // .google.protobuf.Struct results = 2 [json_name = "results"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::results(this), - _Internal::results(this).GetCachedSize(), target, stream); + // repeated .viam.robot.v1.ModuleModel models = 1 [json_name = "models"]; + for (unsigned i = 0, + n = static_cast(this->_internal_models_size()); i < n; i++) { + const auto& repfield = this->_internal_models(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.robot.v1.Discovery) + // @@protoc_insertion_point(serialize_to_array_end:viam.robot.v1.GetModelsFromModulesResponse) return target; } -::size_t Discovery::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.Discovery) - ::size_t total_size = 0; +size_t GetModelsFromModulesResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.GetModelsFromModulesResponse) + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // .viam.robot.v1.DiscoveryQuery query = 1 [json_name = "query"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.query_); - } - - // .google.protobuf.Struct results = 2 [json_name = "results"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.results_); - } - + // repeated .viam.robot.v1.ModuleModel models = 1 [json_name = "models"]; + total_size += 1UL * this->_internal_models_size(); + for (const auto& msg : this->models_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Discovery::_class_data_ = { - Discovery::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetModelsFromModulesResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetModelsFromModulesResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* Discovery::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetModelsFromModulesResponse::GetClassData() const { return &_class_data_; } + +void GetModelsFromModulesResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Discovery::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.Discovery) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetModelsFromModulesResponse::MergeFrom(const GetModelsFromModulesResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.GetModelsFromModulesResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_query()->::viam::robot::v1::DiscoveryQuery::MergeFrom( - from._internal_query()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_results()->::google::protobuf::Struct::MergeFrom( - from._internal_results()); - } - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + models_.MergeFrom(from.models_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void Discovery::CopyFrom(const Discovery& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.Discovery) +void GetModelsFromModulesResponse::CopyFrom(const GetModelsFromModulesResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.robot.v1.GetModelsFromModulesResponse) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool Discovery::IsInitialized() const { +bool GetModelsFromModulesResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* Discovery::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Discovery::InternalSwap(Discovery* PROTOBUF_RESTRICT other) { +void GetModelsFromModulesResponse::InternalSwap(GetModelsFromModulesResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(Discovery, _impl_.results_) - + sizeof(Discovery::_impl_.results_) - - PROTOBUF_FIELD_OFFSET(Discovery, _impl_.query_)>( - reinterpret_cast(&_impl_.query_), - reinterpret_cast(&other->_impl_.query_)); + models_.InternalSwap(&other->models_); } -::google::protobuf::Metadata Discovery::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetModelsFromModulesResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, - file_level_metadata_robot_2fv1_2frobot_2eproto[24]); + file_level_metadata_robot_2fv1_2frobot_2eproto[29]); } + // =================================================================== class DiscoverComponentsRequest::_Internal { public: }; -DiscoverComponentsRequest::DiscoverComponentsRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +DiscoverComponentsRequest::DiscoverComponentsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + queries_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.robot.v1.DiscoverComponentsRequest) } -inline PROTOBUF_NDEBUG_INLINE DiscoverComponentsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : queries_{visibility, arena, from.queries_}, - _cached_size_{0} {} - -DiscoverComponentsRequest::DiscoverComponentsRequest( - ::google::protobuf::Arena* arena, - const DiscoverComponentsRequest& from) - : ::google::protobuf::Message(arena) { - DiscoverComponentsRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +DiscoverComponentsRequest::DiscoverComponentsRequest(const DiscoverComponentsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + queries_(from.queries_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.robot.v1.DiscoverComponentsRequest) } -inline PROTOBUF_NDEBUG_INLINE DiscoverComponentsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : queries_{visibility, arena}, - _cached_size_{0} {} -inline void DiscoverComponentsRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void DiscoverComponentsRequest::SharedCtor() { } + DiscoverComponentsRequest::~DiscoverComponentsRequest() { // @@protoc_insertion_point(destructor:viam.robot.v1.DiscoverComponentsRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void DiscoverComponentsRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void DiscoverComponentsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void DiscoverComponentsRequest::Clear() { +void DiscoverComponentsRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.robot.v1.DiscoverComponentsRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.queries_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* DiscoverComponentsRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + queries_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DiscoverComponentsRequest::_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) { + // repeated .viam.robot.v1.DiscoveryQuery queries = 1 [json_name = "queries"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_queries(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> DiscoverComponentsRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_DiscoverComponentsRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.robot.v1.DiscoveryQuery queries = 1 [json_name = "queries"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(DiscoverComponentsRequest, _impl_.queries_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.robot.v1.DiscoveryQuery queries = 1 [json_name = "queries"]; - {PROTOBUF_FIELD_OFFSET(DiscoverComponentsRequest, _impl_.queries_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::robot::v1::DiscoveryQuery>()}, - }}, {{ - }}, -}; - -::uint8_t* DiscoverComponentsRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* DiscoverComponentsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.DiscoverComponentsRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .viam.robot.v1.DiscoveryQuery queries = 1 [json_name = "queries"]; for (unsigned i = 0, n = static_cast(this->_internal_queries_size()); i < n; i++) { - const auto& repfield = this->_internal_queries().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_queries(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.robot.v1.DiscoverComponentsRequest) return target; } -::size_t DiscoverComponentsRequest::ByteSizeLong() const { +size_t DiscoverComponentsRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.DiscoverComponentsRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.robot.v1.DiscoveryQuery queries = 1 [json_name = "queries"]; total_size += 1UL * this->_internal_queries_size(); - for (const auto& msg : this->_internal_queries()) { + for (const auto& msg : this->queries_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData DiscoverComponentsRequest::_class_data_ = { - DiscoverComponentsRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DiscoverComponentsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + DiscoverComponentsRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* DiscoverComponentsRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DiscoverComponentsRequest::GetClassData() const { return &_class_data_; } + +void DiscoverComponentsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void DiscoverComponentsRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.DiscoverComponentsRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void DiscoverComponentsRequest::MergeFrom(const DiscoverComponentsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.DiscoverComponentsRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_queries()->MergeFrom( - from._internal_queries()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + queries_.MergeFrom(from.queries_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void DiscoverComponentsRequest::CopyFrom(const DiscoverComponentsRequest& from) { @@ -6696,180 +7358,175 @@ void DiscoverComponentsRequest::CopyFrom(const DiscoverComponentsRequest& from) MergeFrom(from); } -PROTOBUF_NOINLINE bool DiscoverComponentsRequest::IsInitialized() const { +bool DiscoverComponentsRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* DiscoverComponentsRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void DiscoverComponentsRequest::InternalSwap(DiscoverComponentsRequest* PROTOBUF_RESTRICT other) { +void DiscoverComponentsRequest::InternalSwap(DiscoverComponentsRequest* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.queries_.InternalSwap(&other->_impl_.queries_); + queries_.InternalSwap(&other->queries_); } -::google::protobuf::Metadata DiscoverComponentsRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata DiscoverComponentsRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, - file_level_metadata_robot_2fv1_2frobot_2eproto[25]); + file_level_metadata_robot_2fv1_2frobot_2eproto[30]); } + // =================================================================== class DiscoverComponentsResponse::_Internal { public: }; -DiscoverComponentsResponse::DiscoverComponentsResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +DiscoverComponentsResponse::DiscoverComponentsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + discovery_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.robot.v1.DiscoverComponentsResponse) } -inline PROTOBUF_NDEBUG_INLINE DiscoverComponentsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : discovery_{visibility, arena, from.discovery_}, - _cached_size_{0} {} - -DiscoverComponentsResponse::DiscoverComponentsResponse( - ::google::protobuf::Arena* arena, - const DiscoverComponentsResponse& from) - : ::google::protobuf::Message(arena) { - DiscoverComponentsResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +DiscoverComponentsResponse::DiscoverComponentsResponse(const DiscoverComponentsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + discovery_(from.discovery_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.robot.v1.DiscoverComponentsResponse) } -inline PROTOBUF_NDEBUG_INLINE DiscoverComponentsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : discovery_{visibility, arena}, - _cached_size_{0} {} -inline void DiscoverComponentsResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void DiscoverComponentsResponse::SharedCtor() { } + DiscoverComponentsResponse::~DiscoverComponentsResponse() { // @@protoc_insertion_point(destructor:viam.robot.v1.DiscoverComponentsResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void DiscoverComponentsResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void DiscoverComponentsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void DiscoverComponentsResponse::Clear() { +void DiscoverComponentsResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.robot.v1.DiscoverComponentsResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.discovery_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* DiscoverComponentsResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + discovery_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DiscoverComponentsResponse::_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) { + // repeated .viam.robot.v1.Discovery discovery = 1 [json_name = "discovery"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_discovery(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> DiscoverComponentsResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_DiscoverComponentsResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.robot.v1.Discovery discovery = 1 [json_name = "discovery"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(DiscoverComponentsResponse, _impl_.discovery_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.robot.v1.Discovery discovery = 1 [json_name = "discovery"]; - {PROTOBUF_FIELD_OFFSET(DiscoverComponentsResponse, _impl_.discovery_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::robot::v1::Discovery>()}, - }}, {{ - }}, -}; - -::uint8_t* DiscoverComponentsResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* DiscoverComponentsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.DiscoverComponentsResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .viam.robot.v1.Discovery discovery = 1 [json_name = "discovery"]; for (unsigned i = 0, n = static_cast(this->_internal_discovery_size()); i < n; i++) { - const auto& repfield = this->_internal_discovery().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_discovery(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.robot.v1.DiscoverComponentsResponse) return target; } -::size_t DiscoverComponentsResponse::ByteSizeLong() const { +size_t DiscoverComponentsResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.DiscoverComponentsResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.robot.v1.Discovery discovery = 1 [json_name = "discovery"]; total_size += 1UL * this->_internal_discovery_size(); - for (const auto& msg : this->_internal_discovery()) { + for (const auto& msg : this->discovery_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData DiscoverComponentsResponse::_class_data_ = { - DiscoverComponentsResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DiscoverComponentsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + DiscoverComponentsResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* DiscoverComponentsResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DiscoverComponentsResponse::GetClassData() const { return &_class_data_; } + +void DiscoverComponentsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void DiscoverComponentsResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.DiscoverComponentsResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void DiscoverComponentsResponse::MergeFrom(const DiscoverComponentsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.DiscoverComponentsResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_discovery()->MergeFrom( - from._internal_discovery()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + discovery_.MergeFrom(from.discovery_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void DiscoverComponentsResponse::CopyFrom(const DiscoverComponentsResponse& from) { @@ -6879,309 +7536,285 @@ void DiscoverComponentsResponse::CopyFrom(const DiscoverComponentsResponse& from MergeFrom(from); } -PROTOBUF_NOINLINE bool DiscoverComponentsResponse::IsInitialized() const { +bool DiscoverComponentsResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* DiscoverComponentsResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void DiscoverComponentsResponse::InternalSwap(DiscoverComponentsResponse* PROTOBUF_RESTRICT other) { +void DiscoverComponentsResponse::InternalSwap(DiscoverComponentsResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.discovery_.InternalSwap(&other->_impl_.discovery_); + discovery_.InternalSwap(&other->discovery_); } -::google::protobuf::Metadata DiscoverComponentsResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata DiscoverComponentsResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, - file_level_metadata_robot_2fv1_2frobot_2eproto[26]); + file_level_metadata_robot_2fv1_2frobot_2eproto[31]); } + // =================================================================== class Status::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Status, _impl_._has_bits_); static const ::viam::common::v1::ResourceName& name(const Status* msg); - static void set_has_name(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::google::protobuf::Struct& status(const Status* msg); - static void set_has_status(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static const ::google::protobuf::Timestamp& last_reconfigured(const Status* msg); - static void set_has_last_reconfigured(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } + 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& Status::_Internal::name(const Status* msg) { - return *msg->_impl_.name_; +const ::viam::common::v1::ResourceName& +Status::_Internal::name(const Status* msg) { + return *msg->name_; } -const ::google::protobuf::Struct& Status::_Internal::status(const Status* msg) { - return *msg->_impl_.status_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +Status::_Internal::status(const Status* msg) { + return *msg->status_; } -const ::google::protobuf::Timestamp& Status::_Internal::last_reconfigured(const Status* msg) { - return *msg->_impl_.last_reconfigured_; +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +Status::_Internal::last_reconfigured(const Status* msg) { + return *msg->last_reconfigured_; } void Status::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.name_ != nullptr) _impl_.name_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && name_ != nullptr) { + delete name_; + } + name_ = nullptr; } void Status::clear_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.status_ != nullptr) _impl_.status_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; } void Status::clear_last_reconfigured() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.last_reconfigured_ != nullptr) _impl_.last_reconfigured_->Clear(); - _impl_._has_bits_[0] &= ~0x00000004u; + if (GetArenaForAllocation() == nullptr && last_reconfigured_ != nullptr) { + delete last_reconfigured_; + } + last_reconfigured_ = nullptr; } -Status::Status(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Status::Status(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.robot.v1.Status) } -inline PROTOBUF_NDEBUG_INLINE Status::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -Status::Status( - ::google::protobuf::Arena* arena, - const Status& from) - : ::google::protobuf::Message(arena) { - Status* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.name_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::common::v1::ResourceName>(arena, *from._impl_.name_) - : nullptr; - _impl_.status_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.status_) - : nullptr; - _impl_.last_reconfigured_ = (cached_has_bits & 0x00000004u) - ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.last_reconfigured_) - : nullptr; - +Status::Status(const Status& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_name()) { + name_ = new ::viam::common::v1::ResourceName(*from.name_); + } else { + name_ = nullptr; + } + if (from._internal_has_status()) { + status_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.status_); + } 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 PROTOBUF_NDEBUG_INLINE Status::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void Status::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, name_), - 0, - offsetof(Impl_, last_reconfigured_) - - offsetof(Impl_, name_) + - sizeof(Impl_::last_reconfigured_)); +inline void Status::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&name_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&last_reconfigured_) - + reinterpret_cast(&name_)) + sizeof(last_reconfigured_)); } + Status::~Status() { // @@protoc_insertion_point(destructor:viam.robot.v1.Status) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Status::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.name_; - delete _impl_.status_; - delete _impl_.last_reconfigured_; - _impl_.~Impl_(); + 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 { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void Status::Clear() { +void Status::Clear() { // @@protoc_insertion_point(message_clear_start:viam.robot.v1.Status) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.name_ != nullptr); - _impl_.name_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.status_ != nullptr); - _impl_.status_->Clear(); - } - if (cached_has_bits & 0x00000004u) { - ABSL_DCHECK(_impl_.last_reconfigured_ != nullptr); - _impl_.last_reconfigured_->Clear(); + if (GetArenaForAllocation() == nullptr && name_ != nullptr) { + delete name_; + } + name_ = nullptr; + if (GetArenaForAllocation() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; + if (GetArenaForAllocation() == nullptr && last_reconfigured_ != nullptr) { + delete last_reconfigured_; + } + last_reconfigured_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Status::_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 name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_name(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct status = 2 [json_name = "status"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_status(), ptr); + CHK_(ptr); + } 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 + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Status::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 3, 0, 2> Status::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Status, _impl_._has_bits_), - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 3, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Status_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // .viam.common.v1.ResourceName name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(Status, _impl_.name_)}}, - // .google.protobuf.Struct status = 2 [json_name = "status"]; - {::_pbi::TcParser::FastMtS1, - {18, 1, 1, PROTOBUF_FIELD_OFFSET(Status, _impl_.status_)}}, - // .google.protobuf.Timestamp last_reconfigured = 3 [json_name = "lastReconfigured"]; - {::_pbi::TcParser::FastMtS1, - {26, 2, 2, PROTOBUF_FIELD_OFFSET(Status, _impl_.last_reconfigured_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.common.v1.ResourceName name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(Status, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.protobuf.Struct status = 2 [json_name = "status"]; - {PROTOBUF_FIELD_OFFSET(Status, _impl_.status_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.protobuf.Timestamp last_reconfigured = 3 [json_name = "lastReconfigured"]; - {PROTOBUF_FIELD_OFFSET(Status, _impl_.last_reconfigured_), _Internal::kHasBitsOffset + 2, 2, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::common::v1::ResourceName>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, - }}, {{ - }}, -}; - -::uint8_t* Status::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Status::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.Status) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.common.v1.ResourceName name = 1 [json_name = "name"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::name(this), + if (this->_internal_has_name()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::name(this), _Internal::name(this).GetCachedSize(), target, stream); } // .google.protobuf.Struct status = 2 [json_name = "status"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::status(this), + if (this->_internal_has_status()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::status(this), _Internal::status(this).GetCachedSize(), target, stream); } // .google.protobuf.Timestamp last_reconfigured = 3 [json_name = "lastReconfigured"]; - if (cached_has_bits & 0x00000004u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::last_reconfigured(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.robot.v1.Status) return target; } -::size_t Status::ByteSizeLong() const { +size_t Status::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.Status) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - // .viam.common.v1.ResourceName name = 1 [json_name = "name"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.name_); - } - - // .google.protobuf.Struct status = 2 [json_name = "status"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.status_); - } + // .viam.common.v1.ResourceName name = 1 [json_name = "name"]; + if (this->_internal_has_name()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *name_); + } - // .google.protobuf.Timestamp last_reconfigured = 3 [json_name = "lastReconfigured"]; - if (cached_has_bits & 0x00000004u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.last_reconfigured_); - } + // .google.protobuf.Struct status = 2 [json_name = "status"]; + if (this->_internal_has_status()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *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, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Status::_class_data_ = { - Status::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Status::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Status::MergeImpl }; -const ::google::protobuf::Message::ClassData* Status::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Status::GetClassData() const { return &_class_data_; } + +void Status::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Status::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.Status) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Status::MergeFrom(const Status& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.Status) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_name()->::viam::common::v1::ResourceName::MergeFrom( - from._internal_name()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_status()->::google::protobuf::Struct::MergeFrom( - from._internal_status()); - } - if (cached_has_bits & 0x00000004u) { - _this->_internal_mutable_last_reconfigured()->::google::protobuf::Timestamp::MergeFrom( - from._internal_last_reconfigured()); - } + if (from._internal_has_name()) { + _internal_mutable_name()->::viam::common::v1::ResourceName::MergeFrom(from._internal_name()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + 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_); } void Status::CopyFrom(const Status& from) { @@ -7191,30 +7824,27 @@ void Status::CopyFrom(const Status& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Status::IsInitialized() const { +bool Status::IsInitialized() const { return true; } -::_pbi::CachedSize* Status::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Status::InternalSwap(Status* PROTOBUF_RESTRICT other) { +void Status::InternalSwap(Status* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(Status, _impl_.last_reconfigured_) - + sizeof(Status::_impl_.last_reconfigured_) - - PROTOBUF_FIELD_OFFSET(Status, _impl_.name_)>( - reinterpret_cast(&_impl_.name_), - reinterpret_cast(&other->_impl_.name_)); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Status, last_reconfigured_) + + sizeof(Status::last_reconfigured_) + - PROTOBUF_FIELD_OFFSET(Status, name_)>( + reinterpret_cast(&name_), + reinterpret_cast(&other->name_)); } -::google::protobuf::Metadata Status::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Status::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, - file_level_metadata_robot_2fv1_2frobot_2eproto[27]); + file_level_metadata_robot_2fv1_2frobot_2eproto[32]); } + // =================================================================== class GetStatusRequest::_Internal { @@ -7222,159 +7852,155 @@ class GetStatusRequest::_Internal { }; void GetStatusRequest::clear_resource_names() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.resource_names_.Clear(); + resource_names_.Clear(); } -GetStatusRequest::GetStatusRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetStatusRequest::GetStatusRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + resource_names_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.robot.v1.GetStatusRequest) } -inline PROTOBUF_NDEBUG_INLINE GetStatusRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : resource_names_{visibility, arena, from.resource_names_}, - _cached_size_{0} {} - -GetStatusRequest::GetStatusRequest( - ::google::protobuf::Arena* arena, - const GetStatusRequest& from) - : ::google::protobuf::Message(arena) { - GetStatusRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetStatusRequest::GetStatusRequest(const GetStatusRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + resource_names_(from.resource_names_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.robot.v1.GetStatusRequest) } -inline PROTOBUF_NDEBUG_INLINE GetStatusRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : resource_names_{visibility, arena}, - _cached_size_{0} {} -inline void GetStatusRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetStatusRequest::SharedCtor() { } + GetStatusRequest::~GetStatusRequest() { // @@protoc_insertion_point(destructor:viam.robot.v1.GetStatusRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetStatusRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void GetStatusRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetStatusRequest::Clear() { +void GetStatusRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.robot.v1.GetStatusRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.resource_names_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetStatusRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + resource_names_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetStatusRequest::_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) { + // repeated .viam.common.v1.ResourceName resource_names = 1 [json_name = "resourceNames"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_resource_names(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetStatusRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetStatusRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.common.v1.ResourceName resource_names = 1 [json_name = "resourceNames"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetStatusRequest, _impl_.resource_names_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.common.v1.ResourceName resource_names = 1 [json_name = "resourceNames"]; - {PROTOBUF_FIELD_OFFSET(GetStatusRequest, _impl_.resource_names_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::common::v1::ResourceName>()}, - }}, {{ - }}, -}; - -::uint8_t* GetStatusRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetStatusRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.GetStatusRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .viam.common.v1.ResourceName resource_names = 1 [json_name = "resourceNames"]; for (unsigned i = 0, n = static_cast(this->_internal_resource_names_size()); i < n; i++) { - const auto& repfield = this->_internal_resource_names().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_resource_names(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.robot.v1.GetStatusRequest) return target; } -::size_t GetStatusRequest::ByteSizeLong() const { +size_t GetStatusRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.GetStatusRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.common.v1.ResourceName resource_names = 1 [json_name = "resourceNames"]; total_size += 1UL * this->_internal_resource_names_size(); - for (const auto& msg : this->_internal_resource_names()) { + for (const auto& msg : this->resource_names_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetStatusRequest::_class_data_ = { - GetStatusRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetStatusRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetStatusRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetStatusRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetStatusRequest::GetClassData() const { return &_class_data_; } + +void GetStatusRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetStatusRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.GetStatusRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetStatusRequest::MergeFrom(const GetStatusRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.GetStatusRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_resource_names()->MergeFrom( - from._internal_resource_names()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + resource_names_.MergeFrom(from.resource_names_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetStatusRequest::CopyFrom(const GetStatusRequest& from) { @@ -7384,180 +8010,175 @@ void GetStatusRequest::CopyFrom(const GetStatusRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetStatusRequest::IsInitialized() const { +bool GetStatusRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetStatusRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetStatusRequest::InternalSwap(GetStatusRequest* PROTOBUF_RESTRICT other) { +void GetStatusRequest::InternalSwap(GetStatusRequest* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.resource_names_.InternalSwap(&other->_impl_.resource_names_); + resource_names_.InternalSwap(&other->resource_names_); } -::google::protobuf::Metadata GetStatusRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetStatusRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, - file_level_metadata_robot_2fv1_2frobot_2eproto[28]); + file_level_metadata_robot_2fv1_2frobot_2eproto[33]); } + // =================================================================== class GetStatusResponse::_Internal { public: }; -GetStatusResponse::GetStatusResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetStatusResponse::GetStatusResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + status_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.robot.v1.GetStatusResponse) } -inline PROTOBUF_NDEBUG_INLINE GetStatusResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : status_{visibility, arena, from.status_}, - _cached_size_{0} {} - -GetStatusResponse::GetStatusResponse( - ::google::protobuf::Arena* arena, - const GetStatusResponse& from) - : ::google::protobuf::Message(arena) { - GetStatusResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetStatusResponse::GetStatusResponse(const GetStatusResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + status_(from.status_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.robot.v1.GetStatusResponse) } -inline PROTOBUF_NDEBUG_INLINE GetStatusResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : status_{visibility, arena}, - _cached_size_{0} {} -inline void GetStatusResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetStatusResponse::SharedCtor() { } + GetStatusResponse::~GetStatusResponse() { // @@protoc_insertion_point(destructor:viam.robot.v1.GetStatusResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetStatusResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void GetStatusResponse::Clear() { +void GetStatusResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetStatusResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.robot.v1.GetStatusResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.status_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetStatusResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + status_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetStatusResponse::_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) { + // repeated .viam.robot.v1.Status status = 1 [json_name = "status"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_status(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetStatusResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetStatusResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.robot.v1.Status status = 1 [json_name = "status"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetStatusResponse, _impl_.status_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.robot.v1.Status status = 1 [json_name = "status"]; - {PROTOBUF_FIELD_OFFSET(GetStatusResponse, _impl_.status_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::robot::v1::Status>()}, - }}, {{ - }}, -}; - -::uint8_t* GetStatusResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetStatusResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.GetStatusResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .viam.robot.v1.Status status = 1 [json_name = "status"]; for (unsigned i = 0, n = static_cast(this->_internal_status_size()); i < n; i++) { - const auto& repfield = this->_internal_status().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_status(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.robot.v1.GetStatusResponse) return target; } -::size_t GetStatusResponse::ByteSizeLong() const { +size_t GetStatusResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.GetStatusResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.robot.v1.Status status = 1 [json_name = "status"]; total_size += 1UL * this->_internal_status_size(); - for (const auto& msg : this->_internal_status()) { + for (const auto& msg : this->status_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetStatusResponse::_class_data_ = { - GetStatusResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetStatusResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetStatusResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetStatusResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetStatusResponse::GetClassData() const { return &_class_data_; } + +void GetStatusResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetStatusResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.GetStatusResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetStatusResponse::MergeFrom(const GetStatusResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.GetStatusResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_status()->MergeFrom( - from._internal_status()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + status_.MergeFrom(from.status_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetStatusResponse::CopyFrom(const GetStatusResponse& from) { @@ -7567,238 +8188,225 @@ void GetStatusResponse::CopyFrom(const GetStatusResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetStatusResponse::IsInitialized() const { +bool GetStatusResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetStatusResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetStatusResponse::InternalSwap(GetStatusResponse* PROTOBUF_RESTRICT other) { +void GetStatusResponse::InternalSwap(GetStatusResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.status_.InternalSwap(&other->_impl_.status_); + status_.InternalSwap(&other->status_); } -::google::protobuf::Metadata GetStatusResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetStatusResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, - file_level_metadata_robot_2fv1_2frobot_2eproto[29]); + file_level_metadata_robot_2fv1_2frobot_2eproto[34]); } + // =================================================================== class StreamStatusRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(StreamStatusRequest, _impl_._has_bits_); - static const ::google::protobuf::Duration& every(const StreamStatusRequest* msg); - static void set_has_every(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Duration& every(const StreamStatusRequest* msg); }; -const ::google::protobuf::Duration& StreamStatusRequest::_Internal::every(const StreamStatusRequest* msg) { - return *msg->_impl_.every_; +const ::PROTOBUF_NAMESPACE_ID::Duration& +StreamStatusRequest::_Internal::every(const StreamStatusRequest* msg) { + return *msg->every_; } void StreamStatusRequest::clear_resource_names() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.resource_names_.Clear(); + resource_names_.Clear(); } void StreamStatusRequest::clear_every() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.every_ != nullptr) _impl_.every_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && every_ != nullptr) { + delete every_; + } + every_ = nullptr; } -StreamStatusRequest::StreamStatusRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +StreamStatusRequest::StreamStatusRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + resource_names_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.robot.v1.StreamStatusRequest) } -inline PROTOBUF_NDEBUG_INLINE StreamStatusRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - resource_names_{visibility, arena, from.resource_names_} {} - -StreamStatusRequest::StreamStatusRequest( - ::google::protobuf::Arena* arena, - const StreamStatusRequest& from) - : ::google::protobuf::Message(arena) { - StreamStatusRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.every_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Duration>(arena, *from._impl_.every_) - : nullptr; - +StreamStatusRequest::StreamStatusRequest(const StreamStatusRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + resource_names_(from.resource_names_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_every()) { + every_ = new ::PROTOBUF_NAMESPACE_ID::Duration(*from.every_); + } else { + every_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.robot.v1.StreamStatusRequest) } -inline PROTOBUF_NDEBUG_INLINE StreamStatusRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - resource_names_{visibility, arena} {} -inline void StreamStatusRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.every_ = {}; +inline void StreamStatusRequest::SharedCtor() { +every_ = nullptr; } + StreamStatusRequest::~StreamStatusRequest() { // @@protoc_insertion_point(destructor:viam.robot.v1.StreamStatusRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void StreamStatusRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.every_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete every_; +} + +void StreamStatusRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void StreamStatusRequest::Clear() { +void StreamStatusRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.robot.v1.StreamStatusRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.resource_names_.Clear(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.every_ != nullptr); - _impl_.every_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* StreamStatusRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + resource_names_.Clear(); + if (GetArenaForAllocation() == nullptr && every_ != nullptr) { + delete every_; + } + every_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* StreamStatusRequest::_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) { + // repeated .viam.common.v1.ResourceName resource_names = 1 [json_name = "resourceNames"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_resource_names(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + // .google.protobuf.Duration every = 2 [json_name = "every"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_every(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 2, 0, 2> StreamStatusRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(StreamStatusRequest, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_StreamStatusRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .google.protobuf.Duration every = 2 [json_name = "every"]; - {::_pbi::TcParser::FastMtS1, - {18, 0, 1, PROTOBUF_FIELD_OFFSET(StreamStatusRequest, _impl_.every_)}}, - // repeated .viam.common.v1.ResourceName resource_names = 1 [json_name = "resourceNames"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(StreamStatusRequest, _impl_.resource_names_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.common.v1.ResourceName resource_names = 1 [json_name = "resourceNames"]; - {PROTOBUF_FIELD_OFFSET(StreamStatusRequest, _impl_.resource_names_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.protobuf.Duration every = 2 [json_name = "every"]; - {PROTOBUF_FIELD_OFFSET(StreamStatusRequest, _impl_.every_), _Internal::kHasBitsOffset + 0, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::common::v1::ResourceName>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Duration>()}, - }}, {{ - }}, -}; - -::uint8_t* StreamStatusRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* StreamStatusRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.StreamStatusRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .viam.common.v1.ResourceName resource_names = 1 [json_name = "resourceNames"]; for (unsigned i = 0, n = static_cast(this->_internal_resource_names_size()); i < n; i++) { - const auto& repfield = this->_internal_resource_names().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_resource_names(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Duration every = 2 [json_name = "every"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::every(this), + if (this->_internal_has_every()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::every(this), _Internal::every(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.robot.v1.StreamStatusRequest) return target; } -::size_t StreamStatusRequest::ByteSizeLong() const { +size_t StreamStatusRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.StreamStatusRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.common.v1.ResourceName resource_names = 1 [json_name = "resourceNames"]; total_size += 1UL * this->_internal_resource_names_size(); - for (const auto& msg : this->_internal_resource_names()) { + for (const auto& msg : this->resource_names_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // .google.protobuf.Duration every = 2 [json_name = "every"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.every_); + if (this->_internal_has_every()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *every_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData StreamStatusRequest::_class_data_ = { - StreamStatusRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StreamStatusRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + StreamStatusRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* StreamStatusRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StreamStatusRequest::GetClassData() const { return &_class_data_; } + +void StreamStatusRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void StreamStatusRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.StreamStatusRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void StreamStatusRequest::MergeFrom(const StreamStatusRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.StreamStatusRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_resource_names()->MergeFrom( - from._internal_resource_names()); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_every()->::google::protobuf::Duration::MergeFrom( - from._internal_every()); + resource_names_.MergeFrom(from.resource_names_); + if (from._internal_has_every()) { + _internal_mutable_every()->::PROTOBUF_NAMESPACE_ID::Duration::MergeFrom(from._internal_every()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void StreamStatusRequest::CopyFrom(const StreamStatusRequest& from) { @@ -7808,182 +8416,176 @@ void StreamStatusRequest::CopyFrom(const StreamStatusRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool StreamStatusRequest::IsInitialized() const { +bool StreamStatusRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* StreamStatusRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void StreamStatusRequest::InternalSwap(StreamStatusRequest* PROTOBUF_RESTRICT other) { +void StreamStatusRequest::InternalSwap(StreamStatusRequest* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.resource_names_.InternalSwap(&other->_impl_.resource_names_); - swap(_impl_.every_, other->_impl_.every_); + resource_names_.InternalSwap(&other->resource_names_); + swap(every_, other->every_); } -::google::protobuf::Metadata StreamStatusRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata StreamStatusRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, - file_level_metadata_robot_2fv1_2frobot_2eproto[30]); + file_level_metadata_robot_2fv1_2frobot_2eproto[35]); } + // =================================================================== class StreamStatusResponse::_Internal { public: }; -StreamStatusResponse::StreamStatusResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +StreamStatusResponse::StreamStatusResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + status_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.robot.v1.StreamStatusResponse) } -inline PROTOBUF_NDEBUG_INLINE StreamStatusResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : status_{visibility, arena, from.status_}, - _cached_size_{0} {} - -StreamStatusResponse::StreamStatusResponse( - ::google::protobuf::Arena* arena, - const StreamStatusResponse& from) - : ::google::protobuf::Message(arena) { - StreamStatusResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +StreamStatusResponse::StreamStatusResponse(const StreamStatusResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + status_(from.status_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.robot.v1.StreamStatusResponse) } -inline PROTOBUF_NDEBUG_INLINE StreamStatusResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : status_{visibility, arena}, - _cached_size_{0} {} -inline void StreamStatusResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void StreamStatusResponse::SharedCtor() { } + StreamStatusResponse::~StreamStatusResponse() { // @@protoc_insertion_point(destructor:viam.robot.v1.StreamStatusResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void StreamStatusResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void StreamStatusResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void StreamStatusResponse::Clear() { +void StreamStatusResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.robot.v1.StreamStatusResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.status_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* StreamStatusResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + status_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* StreamStatusResponse::_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) { + // repeated .viam.robot.v1.Status status = 1 [json_name = "status"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_status(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> StreamStatusResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_StreamStatusResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.robot.v1.Status status = 1 [json_name = "status"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(StreamStatusResponse, _impl_.status_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.robot.v1.Status status = 1 [json_name = "status"]; - {PROTOBUF_FIELD_OFFSET(StreamStatusResponse, _impl_.status_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::robot::v1::Status>()}, - }}, {{ - }}, -}; - -::uint8_t* StreamStatusResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* StreamStatusResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.StreamStatusResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .viam.robot.v1.Status status = 1 [json_name = "status"]; for (unsigned i = 0, n = static_cast(this->_internal_status_size()); i < n; i++) { - const auto& repfield = this->_internal_status().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_status(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.robot.v1.StreamStatusResponse) return target; } -::size_t StreamStatusResponse::ByteSizeLong() const { +size_t StreamStatusResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.StreamStatusResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.robot.v1.Status status = 1 [json_name = "status"]; total_size += 1UL * this->_internal_status_size(); - for (const auto& msg : this->_internal_status()) { + for (const auto& msg : this->status_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData StreamStatusResponse::_class_data_ = { - StreamStatusResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StreamStatusResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + StreamStatusResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* StreamStatusResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StreamStatusResponse::GetClassData() const { return &_class_data_; } + +void StreamStatusResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void StreamStatusResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.StreamStatusResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void StreamStatusResponse::MergeFrom(const StreamStatusResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.StreamStatusResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_status()->MergeFrom( - from._internal_status()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + status_.MergeFrom(from.status_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void StreamStatusResponse::CopyFrom(const StreamStatusResponse& from) { @@ -7993,264 +8595,239 @@ void StreamStatusResponse::CopyFrom(const StreamStatusResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool StreamStatusResponse::IsInitialized() const { +bool StreamStatusResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* StreamStatusResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void StreamStatusResponse::InternalSwap(StreamStatusResponse* PROTOBUF_RESTRICT other) { +void StreamStatusResponse::InternalSwap(StreamStatusResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.status_.InternalSwap(&other->_impl_.status_); + status_.InternalSwap(&other->status_); } -::google::protobuf::Metadata StreamStatusResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata StreamStatusResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, - file_level_metadata_robot_2fv1_2frobot_2eproto[31]); + file_level_metadata_robot_2fv1_2frobot_2eproto[36]); } + // =================================================================== class StopExtraParameters::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(StopExtraParameters, _impl_._has_bits_); static const ::viam::common::v1::ResourceName& name(const StopExtraParameters* msg); - static void set_has_name(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::google::protobuf::Struct& params(const StopExtraParameters* msg); - static void set_has_params(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& params(const StopExtraParameters* msg); }; -const ::viam::common::v1::ResourceName& StopExtraParameters::_Internal::name(const StopExtraParameters* msg) { - return *msg->_impl_.name_; +const ::viam::common::v1::ResourceName& +StopExtraParameters::_Internal::name(const StopExtraParameters* msg) { + return *msg->name_; } -const ::google::protobuf::Struct& StopExtraParameters::_Internal::params(const StopExtraParameters* msg) { - return *msg->_impl_.params_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +StopExtraParameters::_Internal::params(const StopExtraParameters* msg) { + return *msg->params_; } void StopExtraParameters::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.name_ != nullptr) _impl_.name_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && name_ != nullptr) { + delete name_; + } + name_ = nullptr; } void StopExtraParameters::clear_params() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.params_ != nullptr) _impl_.params_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && params_ != nullptr) { + delete params_; + } + params_ = nullptr; } -StopExtraParameters::StopExtraParameters(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +StopExtraParameters::StopExtraParameters(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.robot.v1.StopExtraParameters) } -inline PROTOBUF_NDEBUG_INLINE StopExtraParameters::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -StopExtraParameters::StopExtraParameters( - ::google::protobuf::Arena* arena, - const StopExtraParameters& from) - : ::google::protobuf::Message(arena) { - StopExtraParameters* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.name_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::common::v1::ResourceName>(arena, *from._impl_.name_) - : nullptr; - _impl_.params_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.params_) - : nullptr; - +StopExtraParameters::StopExtraParameters(const StopExtraParameters& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_name()) { + name_ = new ::viam::common::v1::ResourceName(*from.name_); + } else { + name_ = nullptr; + } + if (from._internal_has_params()) { + params_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.params_); + } else { + params_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.robot.v1.StopExtraParameters) } -inline PROTOBUF_NDEBUG_INLINE StopExtraParameters::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void StopExtraParameters::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, name_), - 0, - offsetof(Impl_, params_) - - offsetof(Impl_, name_) + - sizeof(Impl_::params_)); +inline void StopExtraParameters::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&name_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(¶ms_) - + reinterpret_cast(&name_)) + sizeof(params_)); } + StopExtraParameters::~StopExtraParameters() { // @@protoc_insertion_point(destructor:viam.robot.v1.StopExtraParameters) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void StopExtraParameters::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.name_; - delete _impl_.params_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete name_; + if (this != internal_default_instance()) delete params_; } -PROTOBUF_NOINLINE void StopExtraParameters::Clear() { +void StopExtraParameters::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void StopExtraParameters::Clear() { // @@protoc_insertion_point(message_clear_start:viam.robot.v1.StopExtraParameters) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.name_ != nullptr); - _impl_.name_->Clear(); + if (GetArenaForAllocation() == nullptr && name_ != nullptr) { + delete name_; + } + name_ = nullptr; + if (GetArenaForAllocation() == nullptr && params_ != nullptr) { + delete params_; + } + params_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* StopExtraParameters::_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 name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_name(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct params = 2 [json_name = "params"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_params(), 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; } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.params_ != nullptr); - _impl_.params_->Clear(); - } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* StopExtraParameters::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 2, 0, 2> StopExtraParameters::_table_ = { - { - PROTOBUF_FIELD_OFFSET(StopExtraParameters, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_StopExtraParameters_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .google.protobuf.Struct params = 2 [json_name = "params"]; - {::_pbi::TcParser::FastMtS1, - {18, 1, 1, PROTOBUF_FIELD_OFFSET(StopExtraParameters, _impl_.params_)}}, - // .viam.common.v1.ResourceName name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(StopExtraParameters, _impl_.name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.common.v1.ResourceName name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(StopExtraParameters, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.protobuf.Struct params = 2 [json_name = "params"]; - {PROTOBUF_FIELD_OFFSET(StopExtraParameters, _impl_.params_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::common::v1::ResourceName>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - }}, -}; - -::uint8_t* StopExtraParameters::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* StopExtraParameters::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.StopExtraParameters) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.common.v1.ResourceName name = 1 [json_name = "name"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::name(this), + if (this->_internal_has_name()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::name(this), _Internal::name(this).GetCachedSize(), target, stream); } // .google.protobuf.Struct params = 2 [json_name = "params"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::params(this), + if (this->_internal_has_params()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::params(this), _Internal::params(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.robot.v1.StopExtraParameters) return target; } -::size_t StopExtraParameters::ByteSizeLong() const { +size_t StopExtraParameters::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.StopExtraParameters) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // .viam.common.v1.ResourceName name = 1 [json_name = "name"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.name_); - } - - // .google.protobuf.Struct params = 2 [json_name = "params"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.params_); - } + // .viam.common.v1.ResourceName name = 1 [json_name = "name"]; + if (this->_internal_has_name()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *name_); + } + // .google.protobuf.Struct params = 2 [json_name = "params"]; + if (this->_internal_has_params()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *params_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData StopExtraParameters::_class_data_ = { - StopExtraParameters::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StopExtraParameters::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + StopExtraParameters::MergeImpl }; -const ::google::protobuf::Message::ClassData* StopExtraParameters::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StopExtraParameters::GetClassData() const { return &_class_data_; } + +void StopExtraParameters::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void StopExtraParameters::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.StopExtraParameters) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void StopExtraParameters::MergeFrom(const StopExtraParameters& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.StopExtraParameters) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_name()->::viam::common::v1::ResourceName::MergeFrom( - from._internal_name()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_params()->::google::protobuf::Struct::MergeFrom( - from._internal_params()); - } + if (from._internal_has_name()) { + _internal_mutable_name()->::viam::common::v1::ResourceName::MergeFrom(from._internal_name()); + } + if (from._internal_has_params()) { + _internal_mutable_params()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_params()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void StopExtraParameters::CopyFrom(const StopExtraParameters& from) { @@ -8260,188 +8837,180 @@ void StopExtraParameters::CopyFrom(const StopExtraParameters& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool StopExtraParameters::IsInitialized() const { +bool StopExtraParameters::IsInitialized() const { return true; } -::_pbi::CachedSize* StopExtraParameters::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void StopExtraParameters::InternalSwap(StopExtraParameters* PROTOBUF_RESTRICT other) { +void StopExtraParameters::InternalSwap(StopExtraParameters* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(StopExtraParameters, _impl_.params_) - + sizeof(StopExtraParameters::_impl_.params_) - - PROTOBUF_FIELD_OFFSET(StopExtraParameters, _impl_.name_)>( - reinterpret_cast(&_impl_.name_), - reinterpret_cast(&other->_impl_.name_)); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(StopExtraParameters, params_) + + sizeof(StopExtraParameters::params_) + - PROTOBUF_FIELD_OFFSET(StopExtraParameters, name_)>( + reinterpret_cast(&name_), + reinterpret_cast(&other->name_)); } -::google::protobuf::Metadata StopExtraParameters::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata StopExtraParameters::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, - file_level_metadata_robot_2fv1_2frobot_2eproto[32]); + file_level_metadata_robot_2fv1_2frobot_2eproto[37]); } + // =================================================================== class StopAllRequest::_Internal { public: }; -StopAllRequest::StopAllRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +StopAllRequest::StopAllRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + extra_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.robot.v1.StopAllRequest) } -inline PROTOBUF_NDEBUG_INLINE StopAllRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : extra_{visibility, arena, from.extra_}, - _cached_size_{0} {} - -StopAllRequest::StopAllRequest( - ::google::protobuf::Arena* arena, - const StopAllRequest& from) - : ::google::protobuf::Message(arena) { - StopAllRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +StopAllRequest::StopAllRequest(const StopAllRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + extra_(from.extra_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.robot.v1.StopAllRequest) } -inline PROTOBUF_NDEBUG_INLINE StopAllRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : extra_{visibility, arena}, - _cached_size_{0} {} -inline void StopAllRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void StopAllRequest::SharedCtor() { } + StopAllRequest::~StopAllRequest() { // @@protoc_insertion_point(destructor:viam.robot.v1.StopAllRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void StopAllRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void StopAllRequest::Clear() { +void StopAllRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void StopAllRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.robot.v1.StopAllRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.extra_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* StopAllRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + extra_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* StopAllRequest::_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) { + // repeated .viam.robot.v1.StopExtraParameters extra = 99 [json_name = "extra"]; + case 99: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 2; + do { + ptr += 2; + ptr = ctx->ParseMessage(_internal_add_extra(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<794>(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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 7> StopAllRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 99, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967295, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_StopAllRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.robot.v1.StopExtraParameters extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtR2, - {1690, 63, 0, PROTOBUF_FIELD_OFFSET(StopAllRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 0, - 65535, 65535 - }}, {{ - // repeated .viam.robot.v1.StopExtraParameters extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(StopAllRequest, _impl_.extra_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::robot::v1::StopExtraParameters>()}, - }}, {{ - }}, -}; - -::uint8_t* StopAllRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* StopAllRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.StopAllRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .viam.robot.v1.StopExtraParameters extra = 99 [json_name = "extra"]; for (unsigned i = 0, n = static_cast(this->_internal_extra_size()); i < n; i++) { - const auto& repfield = this->_internal_extra().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_extra(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(99, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.robot.v1.StopAllRequest) return target; } -::size_t StopAllRequest::ByteSizeLong() const { +size_t StopAllRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.StopAllRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.robot.v1.StopExtraParameters extra = 99 [json_name = "extra"]; total_size += 2UL * this->_internal_extra_size(); - for (const auto& msg : this->_internal_extra()) { + for (const auto& msg : this->extra_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData StopAllRequest::_class_data_ = { - StopAllRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StopAllRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + StopAllRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* StopAllRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StopAllRequest::GetClassData() const { return &_class_data_; } + +void StopAllRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void StopAllRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.StopAllRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void StopAllRequest::MergeFrom(const StopAllRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.StopAllRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_extra()->MergeFrom( - from._internal_extra()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + extra_.MergeFrom(from.extra_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void StopAllRequest::CopyFrom(const StopAllRequest& from) { @@ -8451,43 +9020,36 @@ void StopAllRequest::CopyFrom(const StopAllRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool StopAllRequest::IsInitialized() const { +bool StopAllRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* StopAllRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void StopAllRequest::InternalSwap(StopAllRequest* PROTOBUF_RESTRICT other) { +void StopAllRequest::InternalSwap(StopAllRequest* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.extra_.InternalSwap(&other->_impl_.extra_); + extra_.InternalSwap(&other->extra_); } -::google::protobuf::Metadata StopAllRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata StopAllRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, - file_level_metadata_robot_2fv1_2frobot_2eproto[33]); + file_level_metadata_robot_2fv1_2frobot_2eproto[38]); } + // =================================================================== class StopAllResponse::_Internal { public: }; -StopAllResponse::StopAllResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +StopAllResponse::StopAllResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.robot.v1.StopAllResponse) } -StopAllResponse::StopAllResponse( - ::google::protobuf::Arena* arena, - const StopAllResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - StopAllResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +StopAllResponse::StopAllResponse(const StopAllResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.robot.v1.StopAllResponse) } @@ -8495,176 +9057,189 @@ StopAllResponse::StopAllResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StopAllResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StopAllResponse::GetClassData() const { return &_class_data_; } + + -::google::protobuf::Metadata StopAllResponse::GetMetadata() const { + +::PROTOBUF_NAMESPACE_ID::Metadata StopAllResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, - file_level_metadata_robot_2fv1_2frobot_2eproto[34]); + file_level_metadata_robot_2fv1_2frobot_2eproto[39]); } + // =================================================================== class StartSessionRequest::_Internal { public: }; -StartSessionRequest::StartSessionRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +StartSessionRequest::StartSessionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.robot.v1.StartSessionRequest) } -inline PROTOBUF_NDEBUG_INLINE StartSessionRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : resume_(arena, from.resume_), - _cached_size_{0} {} - -StartSessionRequest::StartSessionRequest( - ::google::protobuf::Arena* arena, - const StartSessionRequest& from) - : ::google::protobuf::Message(arena) { - StartSessionRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +StartSessionRequest::StartSessionRequest(const StartSessionRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + resume_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + resume_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_resume().empty()) { + resume_.Set(from._internal_resume(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.robot.v1.StartSessionRequest) } -inline PROTOBUF_NDEBUG_INLINE StartSessionRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : resume_(arena), - _cached_size_{0} {} -inline void StartSessionRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void StartSessionRequest::SharedCtor() { +resume_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + resume_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + StartSessionRequest::~StartSessionRequest() { // @@protoc_insertion_point(destructor:viam.robot.v1.StartSessionRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void StartSessionRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.resume_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + resume_.Destroy(); } -PROTOBUF_NOINLINE void StartSessionRequest::Clear() { +void StartSessionRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void StartSessionRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.robot.v1.StartSessionRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.resume_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* StartSessionRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + resume_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* StartSessionRequest::_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 resume = 1 [json_name = "resume"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_resume(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.robot.v1.StartSessionRequest.resume")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 48, 2> StartSessionRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_StartSessionRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string resume = 1 [json_name = "resume"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(StartSessionRequest, _impl_.resume_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string resume = 1 [json_name = "resume"]; - {PROTOBUF_FIELD_OFFSET(StartSessionRequest, _impl_.resume_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\41\6\0\0\0\0\0\0" - "viam.robot.v1.StartSessionRequest" - "resume" - }}, -}; - -::uint8_t* StartSessionRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* StartSessionRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.StartSessionRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string resume = 1 [json_name = "resume"]; if (!this->_internal_resume().empty()) { - const std::string& _s = this->_internal_resume(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.robot.v1.StartSessionRequest.resume"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_resume().data(), static_cast(this->_internal_resume().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.robot.v1.StartSessionRequest.resume"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_resume(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.robot.v1.StartSessionRequest) return target; } -::size_t StartSessionRequest::ByteSizeLong() const { +size_t StartSessionRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.StartSessionRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string resume = 1 [json_name = "resume"]; if (!this->_internal_resume().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_resume()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_resume()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData StartSessionRequest::_class_data_ = { - StartSessionRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StartSessionRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + StartSessionRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* StartSessionRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StartSessionRequest::GetClassData() const { return &_class_data_; } + +void StartSessionRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void StartSessionRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.StartSessionRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void StartSessionRequest::MergeFrom(const StartSessionRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.StartSessionRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_resume().empty()) { - _this->_internal_set_resume(from._internal_resume()); + _internal_set_resume(from._internal_resume()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void StartSessionRequest::CopyFrom(const StartSessionRequest& from) { @@ -8674,240 +9249,239 @@ void StartSessionRequest::CopyFrom(const StartSessionRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool StartSessionRequest::IsInitialized() const { +bool StartSessionRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* StartSessionRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void StartSessionRequest::InternalSwap(StartSessionRequest* PROTOBUF_RESTRICT other) { +void StartSessionRequest::InternalSwap(StartSessionRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.resume_, &other->_impl_.resume_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &resume_, lhs_arena, + &other->resume_, rhs_arena + ); } -::google::protobuf::Metadata StartSessionRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata StartSessionRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, - file_level_metadata_robot_2fv1_2frobot_2eproto[35]); + file_level_metadata_robot_2fv1_2frobot_2eproto[40]); } + // =================================================================== class StartSessionResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(StartSessionResponse, _impl_._has_bits_); - static const ::google::protobuf::Duration& heartbeat_window(const StartSessionResponse* msg); - static void set_has_heartbeat_window(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Duration& heartbeat_window(const StartSessionResponse* msg); }; -const ::google::protobuf::Duration& StartSessionResponse::_Internal::heartbeat_window(const StartSessionResponse* msg) { - return *msg->_impl_.heartbeat_window_; +const ::PROTOBUF_NAMESPACE_ID::Duration& +StartSessionResponse::_Internal::heartbeat_window(const StartSessionResponse* msg) { + return *msg->heartbeat_window_; } void StartSessionResponse::clear_heartbeat_window() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.heartbeat_window_ != nullptr) _impl_.heartbeat_window_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && heartbeat_window_ != nullptr) { + delete heartbeat_window_; + } + heartbeat_window_ = nullptr; } -StartSessionResponse::StartSessionResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +StartSessionResponse::StartSessionResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.robot.v1.StartSessionResponse) } -inline PROTOBUF_NDEBUG_INLINE StartSessionResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - id_(arena, from.id_) {} - -StartSessionResponse::StartSessionResponse( - ::google::protobuf::Arena* arena, - const StartSessionResponse& from) - : ::google::protobuf::Message(arena) { - StartSessionResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.heartbeat_window_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Duration>(arena, *from._impl_.heartbeat_window_) - : nullptr; - +StartSessionResponse::StartSessionResponse(const StartSessionResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } + if (from._internal_has_heartbeat_window()) { + heartbeat_window_ = new ::PROTOBUF_NAMESPACE_ID::Duration(*from.heartbeat_window_); + } else { + heartbeat_window_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.robot.v1.StartSessionResponse) } -inline PROTOBUF_NDEBUG_INLINE StartSessionResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - id_(arena) {} -inline void StartSessionResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.heartbeat_window_ = {}; +inline void StartSessionResponse::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +heartbeat_window_ = nullptr; } + StartSessionResponse::~StartSessionResponse() { // @@protoc_insertion_point(destructor:viam.robot.v1.StartSessionResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void StartSessionResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - delete _impl_.heartbeat_window_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); + if (this != internal_default_instance()) delete heartbeat_window_; } -PROTOBUF_NOINLINE void StartSessionResponse::Clear() { +void StartSessionResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void StartSessionResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.robot.v1.StartSessionResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.id_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.heartbeat_window_ != nullptr); - _impl_.heartbeat_window_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* StartSessionResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + id_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && heartbeat_window_ != nullptr) { + delete heartbeat_window_; + } + heartbeat_window_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* StartSessionResponse::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.robot.v1.StartSessionResponse.id")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Duration heartbeat_window = 2 [json_name = "heartbeatWindow"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_heartbeat_window(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 45, 2> StartSessionResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(StartSessionResponse, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_StartSessionResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .google.protobuf.Duration heartbeat_window = 2 [json_name = "heartbeatWindow"]; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(StartSessionResponse, _impl_.heartbeat_window_)}}, - // string id = 1 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(StartSessionResponse, _impl_.id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(StartSessionResponse, _impl_.id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Duration heartbeat_window = 2 [json_name = "heartbeatWindow"]; - {PROTOBUF_FIELD_OFFSET(StartSessionResponse, _impl_.heartbeat_window_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Duration>()}, - }}, {{ - "\42\2\0\0\0\0\0\0" - "viam.robot.v1.StartSessionResponse" - "id" - }}, -}; - -::uint8_t* StartSessionResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* StartSessionResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.StartSessionResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.robot.v1.StartSessionResponse.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.robot.v1.StartSessionResponse.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Duration heartbeat_window = 2 [json_name = "heartbeatWindow"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::heartbeat_window(this), + if (this->_internal_has_heartbeat_window()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::heartbeat_window(this), _Internal::heartbeat_window(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.robot.v1.StartSessionResponse) return target; } -::size_t StartSessionResponse::ByteSizeLong() const { +size_t StartSessionResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.StartSessionResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } // .google.protobuf.Duration heartbeat_window = 2 [json_name = "heartbeatWindow"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.heartbeat_window_); + if (this->_internal_has_heartbeat_window()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *heartbeat_window_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData StartSessionResponse::_class_data_ = { - StartSessionResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StartSessionResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + StartSessionResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* StartSessionResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StartSessionResponse::GetClassData() const { return &_class_data_; } + +void StartSessionResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void StartSessionResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.StartSessionResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void StartSessionResponse::MergeFrom(const StartSessionResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.StartSessionResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_heartbeat_window()->::google::protobuf::Duration::MergeFrom( - from._internal_heartbeat_window()); + if (from._internal_has_heartbeat_window()) { + _internal_mutable_heartbeat_window()->::PROTOBUF_NAMESPACE_ID::Duration::MergeFrom(from._internal_heartbeat_window()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void StartSessionResponse::CopyFrom(const StartSessionResponse& from) { @@ -8917,189 +9491,193 @@ void StartSessionResponse::CopyFrom(const StartSessionResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool StartSessionResponse::IsInitialized() const { +bool StartSessionResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* StartSessionResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void StartSessionResponse::InternalSwap(StartSessionResponse* PROTOBUF_RESTRICT other) { +void StartSessionResponse::InternalSwap(StartSessionResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); - swap(_impl_.heartbeat_window_, other->_impl_.heartbeat_window_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); + swap(heartbeat_window_, other->heartbeat_window_); } -::google::protobuf::Metadata StartSessionResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata StartSessionResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, - file_level_metadata_robot_2fv1_2frobot_2eproto[36]); + file_level_metadata_robot_2fv1_2frobot_2eproto[41]); } + // =================================================================== class SendSessionHeartbeatRequest::_Internal { public: }; -SendSessionHeartbeatRequest::SendSessionHeartbeatRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +SendSessionHeartbeatRequest::SendSessionHeartbeatRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.robot.v1.SendSessionHeartbeatRequest) } -inline PROTOBUF_NDEBUG_INLINE SendSessionHeartbeatRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : id_(arena, from.id_), - _cached_size_{0} {} - -SendSessionHeartbeatRequest::SendSessionHeartbeatRequest( - ::google::protobuf::Arena* arena, - const SendSessionHeartbeatRequest& from) - : ::google::protobuf::Message(arena) { - SendSessionHeartbeatRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +SendSessionHeartbeatRequest::SendSessionHeartbeatRequest(const SendSessionHeartbeatRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.robot.v1.SendSessionHeartbeatRequest) } -inline PROTOBUF_NDEBUG_INLINE SendSessionHeartbeatRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : id_(arena), - _cached_size_{0} {} -inline void SendSessionHeartbeatRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void SendSessionHeartbeatRequest::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + SendSessionHeartbeatRequest::~SendSessionHeartbeatRequest() { // @@protoc_insertion_point(destructor:viam.robot.v1.SendSessionHeartbeatRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void SendSessionHeartbeatRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); +} + +void SendSessionHeartbeatRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void SendSessionHeartbeatRequest::Clear() { +void SendSessionHeartbeatRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.robot.v1.SendSessionHeartbeatRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SendSessionHeartbeatRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SendSessionHeartbeatRequest::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.robot.v1.SendSessionHeartbeatRequest.id")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 52, 2> SendSessionHeartbeatRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_SendSessionHeartbeatRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string id = 1 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(SendSessionHeartbeatRequest, _impl_.id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(SendSessionHeartbeatRequest, _impl_.id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\51\2\0\0\0\0\0\0" - "viam.robot.v1.SendSessionHeartbeatRequest" - "id" - }}, -}; - -::uint8_t* SendSessionHeartbeatRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* SendSessionHeartbeatRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.SendSessionHeartbeatRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.robot.v1.SendSessionHeartbeatRequest.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.robot.v1.SendSessionHeartbeatRequest.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.robot.v1.SendSessionHeartbeatRequest) return target; } -::size_t SendSessionHeartbeatRequest::ByteSizeLong() const { +size_t SendSessionHeartbeatRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.SendSessionHeartbeatRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData SendSessionHeartbeatRequest::_class_data_ = { - SendSessionHeartbeatRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SendSessionHeartbeatRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + SendSessionHeartbeatRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* SendSessionHeartbeatRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SendSessionHeartbeatRequest::GetClassData() const { return &_class_data_; } + +void SendSessionHeartbeatRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void SendSessionHeartbeatRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.SendSessionHeartbeatRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void SendSessionHeartbeatRequest::MergeFrom(const SendSessionHeartbeatRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.SendSessionHeartbeatRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SendSessionHeartbeatRequest::CopyFrom(const SendSessionHeartbeatRequest& from) { @@ -9109,45 +9687,41 @@ void SendSessionHeartbeatRequest::CopyFrom(const SendSessionHeartbeatRequest& fr MergeFrom(from); } -PROTOBUF_NOINLINE bool SendSessionHeartbeatRequest::IsInitialized() const { +bool SendSessionHeartbeatRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* SendSessionHeartbeatRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void SendSessionHeartbeatRequest::InternalSwap(SendSessionHeartbeatRequest* PROTOBUF_RESTRICT other) { +void SendSessionHeartbeatRequest::InternalSwap(SendSessionHeartbeatRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); } -::google::protobuf::Metadata SendSessionHeartbeatRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata SendSessionHeartbeatRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, - file_level_metadata_robot_2fv1_2frobot_2eproto[37]); + file_level_metadata_robot_2fv1_2frobot_2eproto[42]); } + // =================================================================== class SendSessionHeartbeatResponse::_Internal { public: }; -SendSessionHeartbeatResponse::SendSessionHeartbeatResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +SendSessionHeartbeatResponse::SendSessionHeartbeatResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.robot.v1.SendSessionHeartbeatResponse) } -SendSessionHeartbeatResponse::SendSessionHeartbeatResponse( - ::google::protobuf::Arena* arena, - const SendSessionHeartbeatResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - SendSessionHeartbeatResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +SendSessionHeartbeatResponse::SendSessionHeartbeatResponse(const SendSessionHeartbeatResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.robot.v1.SendSessionHeartbeatResponse) } @@ -9155,15 +9729,24 @@ SendSessionHeartbeatResponse::SendSessionHeartbeatResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SendSessionHeartbeatResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SendSessionHeartbeatResponse::GetClassData() const { return &_class_data_; } + + + -::google::protobuf::Metadata SendSessionHeartbeatResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata SendSessionHeartbeatResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, - file_level_metadata_robot_2fv1_2frobot_2eproto[38]); + file_level_metadata_robot_2fv1_2frobot_2eproto[43]); } + // =================================================================== class LogRequest::_Internal { @@ -9171,159 +9754,155 @@ class LogRequest::_Internal { }; void LogRequest::clear_logs() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.logs_.Clear(); + logs_.Clear(); } -LogRequest::LogRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +LogRequest::LogRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + logs_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.robot.v1.LogRequest) } -inline PROTOBUF_NDEBUG_INLINE LogRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : logs_{visibility, arena, from.logs_}, - _cached_size_{0} {} - -LogRequest::LogRequest( - ::google::protobuf::Arena* arena, - const LogRequest& from) - : ::google::protobuf::Message(arena) { - LogRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +LogRequest::LogRequest(const LogRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + logs_(from.logs_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.robot.v1.LogRequest) } -inline PROTOBUF_NDEBUG_INLINE LogRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : logs_{visibility, arena}, - _cached_size_{0} {} -inline void LogRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void LogRequest::SharedCtor() { } + LogRequest::~LogRequest() { // @@protoc_insertion_point(destructor:viam.robot.v1.LogRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void LogRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void LogRequest::Clear() { +void LogRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void LogRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.robot.v1.LogRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.logs_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* LogRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + logs_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* LogRequest::_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) { + // repeated .viam.common.v1.LogEntry logs = 1 [json_name = "logs"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_logs(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> LogRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_LogRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.common.v1.LogEntry logs = 1 [json_name = "logs"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(LogRequest, _impl_.logs_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.common.v1.LogEntry logs = 1 [json_name = "logs"]; - {PROTOBUF_FIELD_OFFSET(LogRequest, _impl_.logs_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::common::v1::LogEntry>()}, - }}, {{ - }}, -}; - -::uint8_t* LogRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* LogRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.LogRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .viam.common.v1.LogEntry logs = 1 [json_name = "logs"]; for (unsigned i = 0, n = static_cast(this->_internal_logs_size()); i < n; i++) { - const auto& repfield = this->_internal_logs().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_logs(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.robot.v1.LogRequest) return target; } -::size_t LogRequest::ByteSizeLong() const { +size_t LogRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.LogRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.common.v1.LogEntry logs = 1 [json_name = "logs"]; total_size += 1UL * this->_internal_logs_size(); - for (const auto& msg : this->_internal_logs()) { + for (const auto& msg : this->logs_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData LogRequest::_class_data_ = { - LogRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LogRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + LogRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* LogRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LogRequest::GetClassData() const { return &_class_data_; } + +void LogRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void LogRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.LogRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void LogRequest::MergeFrom(const LogRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.LogRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_logs()->MergeFrom( - from._internal_logs()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + logs_.MergeFrom(from.logs_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void LogRequest::CopyFrom(const LogRequest& from) { @@ -9333,43 +9912,36 @@ void LogRequest::CopyFrom(const LogRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool LogRequest::IsInitialized() const { +bool LogRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* LogRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void LogRequest::InternalSwap(LogRequest* PROTOBUF_RESTRICT other) { +void LogRequest::InternalSwap(LogRequest* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.logs_.InternalSwap(&other->_impl_.logs_); + logs_.InternalSwap(&other->logs_); } -::google::protobuf::Metadata LogRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata LogRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, - file_level_metadata_robot_2fv1_2frobot_2eproto[39]); + file_level_metadata_robot_2fv1_2frobot_2eproto[44]); } + // =================================================================== class LogResponse::_Internal { public: }; -LogResponse::LogResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +LogResponse::LogResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.robot.v1.LogResponse) } -LogResponse::LogResponse( - ::google::protobuf::Arena* arena, - const LogResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - LogResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +LogResponse::LogResponse(const LogResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.robot.v1.LogResponse) } @@ -9377,34 +9949,38 @@ LogResponse::LogResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LogResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LogResponse::GetClassData() const { return &_class_data_; } + + -::google::protobuf::Metadata LogResponse::GetMetadata() const { + +::PROTOBUF_NAMESPACE_ID::Metadata LogResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, - file_level_metadata_robot_2fv1_2frobot_2eproto[40]); + file_level_metadata_robot_2fv1_2frobot_2eproto[45]); } + // =================================================================== class GetCloudMetadataRequest::_Internal { public: }; -GetCloudMetadataRequest::GetCloudMetadataRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +GetCloudMetadataRequest::GetCloudMetadataRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.robot.v1.GetCloudMetadataRequest) } -GetCloudMetadataRequest::GetCloudMetadataRequest( - ::google::protobuf::Arena* arena, - const GetCloudMetadataRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - GetCloudMetadataRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +GetCloudMetadataRequest::GetCloudMetadataRequest(const GetCloudMetadataRequest& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.robot.v1.GetCloudMetadataRequest) } @@ -9412,291 +9988,365 @@ GetCloudMetadataRequest::GetCloudMetadataRequest( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetCloudMetadataRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetCloudMetadataRequest::GetClassData() const { return &_class_data_; } + + -::google::protobuf::Metadata GetCloudMetadataRequest::GetMetadata() const { + +::PROTOBUF_NAMESPACE_ID::Metadata GetCloudMetadataRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, - file_level_metadata_robot_2fv1_2frobot_2eproto[41]); + file_level_metadata_robot_2fv1_2frobot_2eproto[46]); } + // =================================================================== class GetCloudMetadataResponse::_Internal { public: }; -GetCloudMetadataResponse::GetCloudMetadataResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetCloudMetadataResponse::GetCloudMetadataResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.robot.v1.GetCloudMetadataResponse) } -inline PROTOBUF_NDEBUG_INLINE GetCloudMetadataResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : robot_part_id_(arena, from.robot_part_id_), - primary_org_id_(arena, from.primary_org_id_), - location_id_(arena, from.location_id_), - machine_id_(arena, from.machine_id_), - machine_part_id_(arena, from.machine_part_id_), - _cached_size_{0} {} - -GetCloudMetadataResponse::GetCloudMetadataResponse( - ::google::protobuf::Arena* arena, - const GetCloudMetadataResponse& from) - : ::google::protobuf::Message(arena) { - GetCloudMetadataResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetCloudMetadataResponse::GetCloudMetadataResponse(const GetCloudMetadataResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + robot_part_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + robot_part_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_robot_part_id().empty()) { + robot_part_id_.Set(from._internal_robot_part_id(), + GetArenaForAllocation()); + } + primary_org_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + primary_org_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_primary_org_id().empty()) { + primary_org_id_.Set(from._internal_primary_org_id(), + GetArenaForAllocation()); + } + location_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + location_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_location_id().empty()) { + location_id_.Set(from._internal_location_id(), + GetArenaForAllocation()); + } + machine_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + machine_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_machine_id().empty()) { + machine_id_.Set(from._internal_machine_id(), + GetArenaForAllocation()); + } + machine_part_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + machine_part_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_machine_part_id().empty()) { + machine_part_id_.Set(from._internal_machine_part_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.robot.v1.GetCloudMetadataResponse) } -inline PROTOBUF_NDEBUG_INLINE GetCloudMetadataResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : robot_part_id_(arena), - primary_org_id_(arena), - location_id_(arena), - machine_id_(arena), - machine_part_id_(arena), - _cached_size_{0} {} -inline void GetCloudMetadataResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetCloudMetadataResponse::SharedCtor() { +robot_part_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + robot_part_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +primary_org_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + primary_org_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +location_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + location_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +machine_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + machine_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +machine_part_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + machine_part_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + GetCloudMetadataResponse::~GetCloudMetadataResponse() { // @@protoc_insertion_point(destructor:viam.robot.v1.GetCloudMetadataResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetCloudMetadataResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.robot_part_id_.Destroy(); - _impl_.primary_org_id_.Destroy(); - _impl_.location_id_.Destroy(); - _impl_.machine_id_.Destroy(); - _impl_.machine_part_id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + robot_part_id_.Destroy(); + primary_org_id_.Destroy(); + location_id_.Destroy(); + machine_id_.Destroy(); + machine_part_id_.Destroy(); } -PROTOBUF_NOINLINE void GetCloudMetadataResponse::Clear() { +void GetCloudMetadataResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetCloudMetadataResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.robot.v1.GetCloudMetadataResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.robot_part_id_.ClearToEmpty(); - _impl_.primary_org_id_.ClearToEmpty(); - _impl_.location_id_.ClearToEmpty(); - _impl_.machine_id_.ClearToEmpty(); - _impl_.machine_part_id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetCloudMetadataResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + robot_part_id_.ClearToEmpty(); + primary_org_id_.ClearToEmpty(); + location_id_.ClearToEmpty(); + machine_id_.ClearToEmpty(); + machine_part_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetCloudMetadataResponse::_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 robot_part_id = 1 [json_name = "robotPartId", deprecated = true]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_robot_part_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.robot.v1.GetCloudMetadataResponse.robot_part_id")); + } else + goto handle_unusual; + continue; + // string primary_org_id = 2 [json_name = "primaryOrgId"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_primary_org_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.robot.v1.GetCloudMetadataResponse.primary_org_id")); + } else + goto handle_unusual; + continue; + // string location_id = 3 [json_name = "locationId"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_location_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.robot.v1.GetCloudMetadataResponse.location_id")); + } else + goto handle_unusual; + continue; + // string machine_id = 4 [json_name = "machineId"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_machine_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.robot.v1.GetCloudMetadataResponse.machine_id")); + } else + goto handle_unusual; + continue; + // string machine_part_id = 5 [json_name = "machinePartId"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + auto str = _internal_mutable_machine_part_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.robot.v1.GetCloudMetadataResponse.machine_part_id")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 5, 0, 110, 2> GetCloudMetadataResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 5, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967264, // skipmap - offsetof(decltype(_table_), field_entries), - 5, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetCloudMetadataResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string robot_part_id = 1 [json_name = "robotPartId", deprecated = true]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetCloudMetadataResponse, _impl_.robot_part_id_)}}, - // string primary_org_id = 2 [json_name = "primaryOrgId"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(GetCloudMetadataResponse, _impl_.primary_org_id_)}}, - // string location_id = 3 [json_name = "locationId"]; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(GetCloudMetadataResponse, _impl_.location_id_)}}, - // string machine_id = 4 [json_name = "machineId"]; - {::_pbi::TcParser::FastUS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(GetCloudMetadataResponse, _impl_.machine_id_)}}, - // string machine_part_id = 5 [json_name = "machinePartId"]; - {::_pbi::TcParser::FastUS1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(GetCloudMetadataResponse, _impl_.machine_part_id_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string robot_part_id = 1 [json_name = "robotPartId", deprecated = true]; - {PROTOBUF_FIELD_OFFSET(GetCloudMetadataResponse, _impl_.robot_part_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string primary_org_id = 2 [json_name = "primaryOrgId"]; - {PROTOBUF_FIELD_OFFSET(GetCloudMetadataResponse, _impl_.primary_org_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string location_id = 3 [json_name = "locationId"]; - {PROTOBUF_FIELD_OFFSET(GetCloudMetadataResponse, _impl_.location_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string machine_id = 4 [json_name = "machineId"]; - {PROTOBUF_FIELD_OFFSET(GetCloudMetadataResponse, _impl_.machine_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string machine_part_id = 5 [json_name = "machinePartId"]; - {PROTOBUF_FIELD_OFFSET(GetCloudMetadataResponse, _impl_.machine_part_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\46\15\16\13\12\17\0\0" - "viam.robot.v1.GetCloudMetadataResponse" - "robot_part_id" - "primary_org_id" - "location_id" - "machine_id" - "machine_part_id" - }}, -}; - -::uint8_t* GetCloudMetadataResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetCloudMetadataResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.GetCloudMetadataResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string robot_part_id = 1 [json_name = "robotPartId", deprecated = true]; if (!this->_internal_robot_part_id().empty()) { - const std::string& _s = this->_internal_robot_part_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.robot.v1.GetCloudMetadataResponse.robot_part_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_robot_part_id().data(), static_cast(this->_internal_robot_part_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.robot.v1.GetCloudMetadataResponse.robot_part_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_robot_part_id(), target); } // string primary_org_id = 2 [json_name = "primaryOrgId"]; if (!this->_internal_primary_org_id().empty()) { - const std::string& _s = this->_internal_primary_org_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.robot.v1.GetCloudMetadataResponse.primary_org_id"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_primary_org_id().data(), static_cast(this->_internal_primary_org_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.robot.v1.GetCloudMetadataResponse.primary_org_id"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_primary_org_id(), target); } // string location_id = 3 [json_name = "locationId"]; if (!this->_internal_location_id().empty()) { - const std::string& _s = this->_internal_location_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.robot.v1.GetCloudMetadataResponse.location_id"); - target = stream->WriteStringMaybeAliased(3, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_location_id().data(), static_cast(this->_internal_location_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.robot.v1.GetCloudMetadataResponse.location_id"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_location_id(), target); } // string machine_id = 4 [json_name = "machineId"]; if (!this->_internal_machine_id().empty()) { - const std::string& _s = this->_internal_machine_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.robot.v1.GetCloudMetadataResponse.machine_id"); - target = stream->WriteStringMaybeAliased(4, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_machine_id().data(), static_cast(this->_internal_machine_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.robot.v1.GetCloudMetadataResponse.machine_id"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_machine_id(), target); } // string machine_part_id = 5 [json_name = "machinePartId"]; if (!this->_internal_machine_part_id().empty()) { - const std::string& _s = this->_internal_machine_part_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.robot.v1.GetCloudMetadataResponse.machine_part_id"); - target = stream->WriteStringMaybeAliased(5, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_machine_part_id().data(), static_cast(this->_internal_machine_part_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.robot.v1.GetCloudMetadataResponse.machine_part_id"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_machine_part_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.robot.v1.GetCloudMetadataResponse) return target; } -::size_t GetCloudMetadataResponse::ByteSizeLong() const { +size_t GetCloudMetadataResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.GetCloudMetadataResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string robot_part_id = 1 [json_name = "robotPartId", deprecated = true]; if (!this->_internal_robot_part_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_robot_part_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_robot_part_id()); } // string primary_org_id = 2 [json_name = "primaryOrgId"]; if (!this->_internal_primary_org_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_primary_org_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_primary_org_id()); } // string location_id = 3 [json_name = "locationId"]; if (!this->_internal_location_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_location_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_location_id()); } // string machine_id = 4 [json_name = "machineId"]; if (!this->_internal_machine_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_machine_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_machine_id()); } // string machine_part_id = 5 [json_name = "machinePartId"]; if (!this->_internal_machine_part_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_machine_part_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_machine_part_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetCloudMetadataResponse::_class_data_ = { - GetCloudMetadataResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetCloudMetadataResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetCloudMetadataResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetCloudMetadataResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetCloudMetadataResponse::GetClassData() const { return &_class_data_; } + +void GetCloudMetadataResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetCloudMetadataResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.GetCloudMetadataResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetCloudMetadataResponse::MergeFrom(const GetCloudMetadataResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.GetCloudMetadataResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_robot_part_id().empty()) { - _this->_internal_set_robot_part_id(from._internal_robot_part_id()); + _internal_set_robot_part_id(from._internal_robot_part_id()); } if (!from._internal_primary_org_id().empty()) { - _this->_internal_set_primary_org_id(from._internal_primary_org_id()); + _internal_set_primary_org_id(from._internal_primary_org_id()); } if (!from._internal_location_id().empty()) { - _this->_internal_set_location_id(from._internal_location_id()); + _internal_set_location_id(from._internal_location_id()); } if (!from._internal_machine_id().empty()) { - _this->_internal_set_machine_id(from._internal_machine_id()); + _internal_set_machine_id(from._internal_machine_id()); } if (!from._internal_machine_part_id().empty()) { - _this->_internal_set_machine_part_id(from._internal_machine_part_id()); + _internal_set_machine_part_id(from._internal_machine_part_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetCloudMetadataResponse::CopyFrom(const GetCloudMetadataResponse& from) { @@ -9706,260 +10356,274 @@ void GetCloudMetadataResponse::CopyFrom(const GetCloudMetadataResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetCloudMetadataResponse::IsInitialized() const { +bool GetCloudMetadataResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetCloudMetadataResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetCloudMetadataResponse::InternalSwap(GetCloudMetadataResponse* PROTOBUF_RESTRICT other) { +void GetCloudMetadataResponse::InternalSwap(GetCloudMetadataResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.robot_part_id_, &other->_impl_.robot_part_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.primary_org_id_, &other->_impl_.primary_org_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.location_id_, &other->_impl_.location_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.machine_id_, &other->_impl_.machine_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.machine_part_id_, &other->_impl_.machine_part_id_, arena); -} - -::google::protobuf::Metadata GetCloudMetadataResponse::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &robot_part_id_, lhs_arena, + &other->robot_part_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &primary_org_id_, lhs_arena, + &other->primary_org_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &location_id_, lhs_arena, + &other->location_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &machine_id_, lhs_arena, + &other->machine_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &machine_part_id_, lhs_arena, + &other->machine_part_id_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetCloudMetadataResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, - file_level_metadata_robot_2fv1_2frobot_2eproto[42]); + file_level_metadata_robot_2fv1_2frobot_2eproto[47]); } + // =================================================================== class RestartModuleRequest::_Internal { public: - static constexpr ::int32_t kOneofCaseOffset = - PROTOBUF_FIELD_OFFSET(::viam::robot::v1::RestartModuleRequest, _impl_._oneof_case_); }; -RestartModuleRequest::RestartModuleRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +RestartModuleRequest::RestartModuleRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.robot.v1.RestartModuleRequest) } -inline PROTOBUF_NDEBUG_INLINE RestartModuleRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : id_or_name_{}, - _cached_size_{0}, - _oneof_case_{from._oneof_case_[0]} {} - -RestartModuleRequest::RestartModuleRequest( - ::google::protobuf::Arena* arena, - const RestartModuleRequest& from) - : ::google::protobuf::Message(arena) { - RestartModuleRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - switch (id_or_name_case()) { - case ID_OR_NAME_NOT_SET: +RestartModuleRequest::RestartModuleRequest(const RestartModuleRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + clear_has_id_or_name(); + switch (from.id_or_name_case()) { + case kModuleId: { + _internal_set_module_id(from._internal_module_id()); + break; + } + case kModuleName: { + _internal_set_module_name(from._internal_module_name()); + break; + } + case ID_OR_NAME_NOT_SET: { break; - case kModuleId: - new (&_impl_.id_or_name_.module_id_) decltype(_impl_.id_or_name_.module_id_){arena, from._impl_.id_or_name_.module_id_}; - break; - case kModuleName: - new (&_impl_.id_or_name_.module_name_) decltype(_impl_.id_or_name_.module_name_){arena, from._impl_.id_or_name_.module_name_}; - break; + } } - // @@protoc_insertion_point(copy_constructor:viam.robot.v1.RestartModuleRequest) } -inline PROTOBUF_NDEBUG_INLINE RestartModuleRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : id_or_name_{}, - _cached_size_{0}, - _oneof_case_{} {} -inline void RestartModuleRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void RestartModuleRequest::SharedCtor() { +clear_has_id_or_name(); } + RestartModuleRequest::~RestartModuleRequest() { // @@protoc_insertion_point(destructor:viam.robot.v1.RestartModuleRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void RestartModuleRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); if (has_id_or_name()) { clear_id_or_name(); } - _impl_.~Impl_(); +} + +void RestartModuleRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } void RestartModuleRequest::clear_id_or_name() { // @@protoc_insertion_point(one_of_clear_start:viam.robot.v1.RestartModuleRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); switch (id_or_name_case()) { case kModuleId: { - _impl_.id_or_name_.module_id_.Destroy(); + id_or_name_.module_id_.Destroy(); break; } case kModuleName: { - _impl_.id_or_name_.module_name_.Destroy(); + id_or_name_.module_name_.Destroy(); break; } case ID_OR_NAME_NOT_SET: { break; } } - _impl_._oneof_case_[0] = ID_OR_NAME_NOT_SET; + _oneof_case_[0] = ID_OR_NAME_NOT_SET; } -PROTOBUF_NOINLINE void RestartModuleRequest::Clear() { +void RestartModuleRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.robot.v1.RestartModuleRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; clear_id_or_name(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* RestartModuleRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RestartModuleRequest::_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 module_id = 1 [json_name = "moduleId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_module_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.robot.v1.RestartModuleRequest.module_id")); + } else + goto handle_unusual; + continue; + // string module_name = 2 [json_name = "moduleName"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_module_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.robot.v1.RestartModuleRequest.module_name")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 2, 0, 63, 2> RestartModuleRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_RestartModuleRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string module_id = 1 [json_name = "moduleId"]; - {PROTOBUF_FIELD_OFFSET(RestartModuleRequest, _impl_.id_or_name_.module_id_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string module_name = 2 [json_name = "moduleName"]; - {PROTOBUF_FIELD_OFFSET(RestartModuleRequest, _impl_.id_or_name_.module_name_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\42\11\13\0\0\0\0\0" - "viam.robot.v1.RestartModuleRequest" - "module_id" - "module_name" - }}, -}; - -::uint8_t* RestartModuleRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* RestartModuleRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.RestartModuleRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - switch (id_or_name_case()) { - case kModuleId: { - const std::string& _s = this->_internal_module_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.robot.v1.RestartModuleRequest.module_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); - break; - } - case kModuleName: { - const std::string& _s = this->_internal_module_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.robot.v1.RestartModuleRequest.module_name"); - target = stream->WriteStringMaybeAliased(2, _s, target); - break; - } - default: - break; + // string module_id = 1 [json_name = "moduleId"]; + if (_internal_has_module_id()) { + ::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.robot.v1.RestartModuleRequest.module_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_module_id(), target); } + + // string module_name = 2 [json_name = "moduleName"]; + if (_internal_has_module_name()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_module_name().data(), static_cast(this->_internal_module_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.robot.v1.RestartModuleRequest.module_name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_module_name(), target); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.robot.v1.RestartModuleRequest) return target; } -::size_t RestartModuleRequest::ByteSizeLong() const { +size_t RestartModuleRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.RestartModuleRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; switch (id_or_name_case()) { // string module_id = 1 [json_name = "moduleId"]; case kModuleId: { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_module_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_module_id()); break; } // string module_name = 2 [json_name = "moduleName"]; case kModuleName: { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_module_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_module_name()); break; } case ID_OR_NAME_NOT_SET: { break; } } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData RestartModuleRequest::_class_data_ = { - RestartModuleRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RestartModuleRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + RestartModuleRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* RestartModuleRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RestartModuleRequest::GetClassData() const { return &_class_data_; } + +void RestartModuleRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void RestartModuleRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.RestartModuleRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void RestartModuleRequest::MergeFrom(const RestartModuleRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.RestartModuleRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; switch (from.id_or_name_case()) { case kModuleId: { - _this->_internal_set_module_id(from._internal_module_id()); + _internal_set_module_id(from._internal_module_id()); break; } case kModuleName: { - _this->_internal_set_module_name(from._internal_module_name()); + _internal_set_module_name(from._internal_module_name()); break; } case ID_OR_NAME_NOT_SET: { break; } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void RestartModuleRequest::CopyFrom(const RestartModuleRequest& from) { @@ -9969,44 +10633,37 @@ void RestartModuleRequest::CopyFrom(const RestartModuleRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool RestartModuleRequest::IsInitialized() const { +bool RestartModuleRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* RestartModuleRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void RestartModuleRequest::InternalSwap(RestartModuleRequest* PROTOBUF_RESTRICT other) { +void RestartModuleRequest::InternalSwap(RestartModuleRequest* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.id_or_name_, other->_impl_.id_or_name_); - swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); + swap(id_or_name_, other->id_or_name_); + swap(_oneof_case_[0], other->_oneof_case_[0]); } -::google::protobuf::Metadata RestartModuleRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata RestartModuleRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, - file_level_metadata_robot_2fv1_2frobot_2eproto[43]); + file_level_metadata_robot_2fv1_2frobot_2eproto[48]); } + // =================================================================== class RestartModuleResponse::_Internal { public: }; -RestartModuleResponse::RestartModuleResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +RestartModuleResponse::RestartModuleResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.robot.v1.RestartModuleResponse) } -RestartModuleResponse::RestartModuleResponse( - ::google::protobuf::Arena* arena, - const RestartModuleResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - RestartModuleResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +RestartModuleResponse::RestartModuleResponse(const RestartModuleResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.robot.v1.RestartModuleResponse) } @@ -10014,34 +10671,38 @@ RestartModuleResponse::RestartModuleResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RestartModuleResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RestartModuleResponse::GetClassData() const { return &_class_data_; } + + + -::google::protobuf::Metadata RestartModuleResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata RestartModuleResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, - file_level_metadata_robot_2fv1_2frobot_2eproto[44]); + file_level_metadata_robot_2fv1_2frobot_2eproto[49]); } + // =================================================================== class ShutdownRequest::_Internal { public: }; -ShutdownRequest::ShutdownRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +ShutdownRequest::ShutdownRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.robot.v1.ShutdownRequest) } -ShutdownRequest::ShutdownRequest( - ::google::protobuf::Arena* arena, - const ShutdownRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - ShutdownRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +ShutdownRequest::ShutdownRequest(const ShutdownRequest& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.robot.v1.ShutdownRequest) } @@ -10049,34 +10710,38 @@ ShutdownRequest::ShutdownRequest( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ShutdownRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ShutdownRequest::GetClassData() const { return &_class_data_; } + + + -::google::protobuf::Metadata ShutdownRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ShutdownRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, - file_level_metadata_robot_2fv1_2frobot_2eproto[45]); + file_level_metadata_robot_2fv1_2frobot_2eproto[50]); } + // =================================================================== class ShutdownResponse::_Internal { public: }; -ShutdownResponse::ShutdownResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +ShutdownResponse::ShutdownResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.robot.v1.ShutdownResponse) } -ShutdownResponse::ShutdownResponse( - ::google::protobuf::Arena* arena, - const ShutdownResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - ShutdownResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +ShutdownResponse::ShutdownResponse(const ShutdownResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.robot.v1.ShutdownResponse) } @@ -10084,34 +10749,38 @@ ShutdownResponse::ShutdownResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ShutdownResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ShutdownResponse::GetClassData() const { return &_class_data_; } + + + -::google::protobuf::Metadata ShutdownResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ShutdownResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, - file_level_metadata_robot_2fv1_2frobot_2eproto[46]); + file_level_metadata_robot_2fv1_2frobot_2eproto[51]); } + // =================================================================== class GetMachineStatusRequest::_Internal { public: }; -GetMachineStatusRequest::GetMachineStatusRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +GetMachineStatusRequest::GetMachineStatusRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.robot.v1.GetMachineStatusRequest) } -GetMachineStatusRequest::GetMachineStatusRequest( - ::google::protobuf::Arena* arena, - const GetMachineStatusRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - GetMachineStatusRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +GetMachineStatusRequest::GetMachineStatusRequest(const GetMachineStatusRequest& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.robot.v1.GetMachineStatusRequest) } @@ -10119,220 +10788,248 @@ GetMachineStatusRequest::GetMachineStatusRequest( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetMachineStatusRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetMachineStatusRequest::GetClassData() const { return &_class_data_; } + + + -::google::protobuf::Metadata GetMachineStatusRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetMachineStatusRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, - file_level_metadata_robot_2fv1_2frobot_2eproto[47]); + file_level_metadata_robot_2fv1_2frobot_2eproto[52]); } + // =================================================================== class GetMachineStatusResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetMachineStatusResponse, _impl_._has_bits_); static const ::viam::robot::v1::ConfigStatus& config(const GetMachineStatusResponse* msg); - static void set_has_config(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::robot::v1::ConfigStatus& GetMachineStatusResponse::_Internal::config(const GetMachineStatusResponse* msg) { - return *msg->_impl_.config_; +const ::viam::robot::v1::ConfigStatus& +GetMachineStatusResponse::_Internal::config(const GetMachineStatusResponse* msg) { + return *msg->config_; } -GetMachineStatusResponse::GetMachineStatusResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetMachineStatusResponse::GetMachineStatusResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + resources_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.robot.v1.GetMachineStatusResponse) } -inline PROTOBUF_NDEBUG_INLINE GetMachineStatusResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - resources_{visibility, arena, from.resources_} {} - -GetMachineStatusResponse::GetMachineStatusResponse( - ::google::protobuf::Arena* arena, - const GetMachineStatusResponse& from) - : ::google::protobuf::Message(arena) { - GetMachineStatusResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.config_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::robot::v1::ConfigStatus>(arena, *from._impl_.config_) - : nullptr; - +GetMachineStatusResponse::GetMachineStatusResponse(const GetMachineStatusResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + resources_(from.resources_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_config()) { + config_ = new ::viam::robot::v1::ConfigStatus(*from.config_); + } else { + config_ = nullptr; + } + state_ = from.state_; // @@protoc_insertion_point(copy_constructor:viam.robot.v1.GetMachineStatusResponse) } -inline PROTOBUF_NDEBUG_INLINE GetMachineStatusResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - resources_{visibility, arena} {} -inline void GetMachineStatusResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.config_ = {}; +inline void GetMachineStatusResponse::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&config_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&state_) - + reinterpret_cast(&config_)) + sizeof(state_)); } + GetMachineStatusResponse::~GetMachineStatusResponse() { // @@protoc_insertion_point(destructor:viam.robot.v1.GetMachineStatusResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetMachineStatusResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.config_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete config_; } -PROTOBUF_NOINLINE void GetMachineStatusResponse::Clear() { +void GetMachineStatusResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetMachineStatusResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.robot.v1.GetMachineStatusResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.resources_.Clear(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.config_ != nullptr); - _impl_.config_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetMachineStatusResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + resources_.Clear(); + if (GetArenaForAllocation() == nullptr && config_ != nullptr) { + delete config_; + } + config_ = nullptr; + state_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetMachineStatusResponse::_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) { + // repeated .viam.robot.v1.ResourceStatus resources = 1 [json_name = "resources"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_resources(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + // .viam.robot.v1.ConfigStatus config = 2 [json_name = "config"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_config(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.robot.v1.GetMachineStatusResponse.State state = 3 [json_name = "state"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_state(static_cast<::viam::robot::v1::GetMachineStatusResponse_State>(val)); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 2, 0, 2> GetMachineStatusResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetMachineStatusResponse, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetMachineStatusResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.robot.v1.ConfigStatus config = 2 [json_name = "config"]; - {::_pbi::TcParser::FastMtS1, - {18, 0, 1, PROTOBUF_FIELD_OFFSET(GetMachineStatusResponse, _impl_.config_)}}, - // repeated .viam.robot.v1.ResourceStatus resources = 1 [json_name = "resources"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetMachineStatusResponse, _impl_.resources_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.robot.v1.ResourceStatus resources = 1 [json_name = "resources"]; - {PROTOBUF_FIELD_OFFSET(GetMachineStatusResponse, _impl_.resources_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // .viam.robot.v1.ConfigStatus config = 2 [json_name = "config"]; - {PROTOBUF_FIELD_OFFSET(GetMachineStatusResponse, _impl_.config_), _Internal::kHasBitsOffset + 0, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::robot::v1::ResourceStatus>()}, - {::_pbi::TcParser::GetTable<::viam::robot::v1::ConfigStatus>()}, - }}, {{ - }}, -}; - -::uint8_t* GetMachineStatusResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetMachineStatusResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.GetMachineStatusResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .viam.robot.v1.ResourceStatus resources = 1 [json_name = "resources"]; for (unsigned i = 0, n = static_cast(this->_internal_resources_size()); i < n; i++) { - const auto& repfield = this->_internal_resources().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_resources(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } - cached_has_bits = _impl_._has_bits_[0]; // .viam.robot.v1.ConfigStatus config = 2 [json_name = "config"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::config(this), + if (this->_internal_has_config()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::config(this), _Internal::config(this).GetCachedSize(), target, stream); } + // .viam.robot.v1.GetMachineStatusResponse.State state = 3 [json_name = "state"]; + if (this->_internal_state() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 3, this->_internal_state(), target); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.robot.v1.GetMachineStatusResponse) return target; } -::size_t GetMachineStatusResponse::ByteSizeLong() const { +size_t GetMachineStatusResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.GetMachineStatusResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.robot.v1.ResourceStatus resources = 1 [json_name = "resources"]; total_size += 1UL * this->_internal_resources_size(); - for (const auto& msg : this->_internal_resources()) { + for (const auto& msg : this->resources_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // .viam.robot.v1.ConfigStatus config = 2 [json_name = "config"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.config_); + if (this->_internal_has_config()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *config_); + } + + // .viam.robot.v1.GetMachineStatusResponse.State state = 3 [json_name = "state"]; + if (this->_internal_state() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_state()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetMachineStatusResponse::_class_data_ = { - GetMachineStatusResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetMachineStatusResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetMachineStatusResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetMachineStatusResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetMachineStatusResponse::GetClassData() const { return &_class_data_; } + +void GetMachineStatusResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetMachineStatusResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.GetMachineStatusResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetMachineStatusResponse::MergeFrom(const GetMachineStatusResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.GetMachineStatusResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_resources()->MergeFrom( - from._internal_resources()); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_config()->::viam::robot::v1::ConfigStatus::MergeFrom( - from._internal_config()); + resources_.MergeFrom(from.resources_); + if (from._internal_has_config()) { + _internal_mutable_config()->::viam::robot::v1::ConfigStatus::MergeFrom(from._internal_config()); + } + if (from._internal_state() != 0) { + _internal_set_state(from._internal_state()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetMachineStatusResponse::CopyFrom(const GetMachineStatusResponse& from) { @@ -10342,249 +11039,267 @@ void GetMachineStatusResponse::CopyFrom(const GetMachineStatusResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetMachineStatusResponse::IsInitialized() const { +bool GetMachineStatusResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetMachineStatusResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetMachineStatusResponse::InternalSwap(GetMachineStatusResponse* PROTOBUF_RESTRICT other) { +void GetMachineStatusResponse::InternalSwap(GetMachineStatusResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.resources_.InternalSwap(&other->_impl_.resources_); - swap(_impl_.config_, other->_impl_.config_); + resources_.InternalSwap(&other->resources_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GetMachineStatusResponse, state_) + + sizeof(GetMachineStatusResponse::state_) + - PROTOBUF_FIELD_OFFSET(GetMachineStatusResponse, config_)>( + reinterpret_cast(&config_), + reinterpret_cast(&other->config_)); } -::google::protobuf::Metadata GetMachineStatusResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetMachineStatusResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, - file_level_metadata_robot_2fv1_2frobot_2eproto[48]); + file_level_metadata_robot_2fv1_2frobot_2eproto[53]); } + // =================================================================== class ResourceStatus::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ResourceStatus, _impl_._has_bits_); + using HasBits = decltype(std::declval()._has_bits_); static const ::viam::common::v1::ResourceName& name(const ResourceStatus* msg); - static void set_has_name(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::google::protobuf::Timestamp& last_updated(const ResourceStatus* msg); - static void set_has_last_updated(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& last_updated(const ResourceStatus* msg); static const ::viam::robot::v1::GetCloudMetadataResponse& cloud_metadata(const ResourceStatus* msg); static void set_has_cloud_metadata(HasBits* has_bits) { - (*has_bits)[0] |= 4u; + (*has_bits)[0] |= 1u; } }; -const ::viam::common::v1::ResourceName& ResourceStatus::_Internal::name(const ResourceStatus* msg) { - return *msg->_impl_.name_; +const ::viam::common::v1::ResourceName& +ResourceStatus::_Internal::name(const ResourceStatus* msg) { + return *msg->name_; } -const ::google::protobuf::Timestamp& ResourceStatus::_Internal::last_updated(const ResourceStatus* msg) { - return *msg->_impl_.last_updated_; +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +ResourceStatus::_Internal::last_updated(const ResourceStatus* msg) { + return *msg->last_updated_; } -const ::viam::robot::v1::GetCloudMetadataResponse& ResourceStatus::_Internal::cloud_metadata(const ResourceStatus* msg) { - return *msg->_impl_.cloud_metadata_; +const ::viam::robot::v1::GetCloudMetadataResponse& +ResourceStatus::_Internal::cloud_metadata(const ResourceStatus* msg) { + return *msg->cloud_metadata_; } void ResourceStatus::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.name_ != nullptr) _impl_.name_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && name_ != nullptr) { + delete name_; + } + name_ = nullptr; } void ResourceStatus::clear_last_updated() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.last_updated_ != nullptr) _impl_.last_updated_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && last_updated_ != nullptr) { + delete last_updated_; + } + last_updated_ = nullptr; } -ResourceStatus::ResourceStatus(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ResourceStatus::ResourceStatus(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.robot.v1.ResourceStatus) } -inline PROTOBUF_NDEBUG_INLINE ResourceStatus::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - revision_(arena, from.revision_), - error_(arena, from.error_) {} - -ResourceStatus::ResourceStatus( - ::google::protobuf::Arena* arena, - const ResourceStatus& from) - : ::google::protobuf::Message(arena) { - ResourceStatus* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.name_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::common::v1::ResourceName>(arena, *from._impl_.name_) - : nullptr; - _impl_.last_updated_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.last_updated_) - : nullptr; - _impl_.cloud_metadata_ = (cached_has_bits & 0x00000004u) - ? CreateMaybeMessage<::viam::robot::v1::GetCloudMetadataResponse>(arena, *from._impl_.cloud_metadata_) - : nullptr; - _impl_.state_ = from._impl_.state_; - +ResourceStatus::ResourceStatus(const ResourceStatus& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + revision_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + revision_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_revision().empty()) { + revision_.Set(from._internal_revision(), + GetArenaForAllocation()); + } + 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()); + } + if (from._internal_has_name()) { + name_ = new ::viam::common::v1::ResourceName(*from.name_); + } else { + name_ = nullptr; + } + if (from._internal_has_last_updated()) { + last_updated_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from.last_updated_); + } else { + last_updated_ = nullptr; + } + if (from._internal_has_cloud_metadata()) { + cloud_metadata_ = new ::viam::robot::v1::GetCloudMetadataResponse(*from.cloud_metadata_); + } else { + cloud_metadata_ = nullptr; + } + state_ = from.state_; // @@protoc_insertion_point(copy_constructor:viam.robot.v1.ResourceStatus) } -inline PROTOBUF_NDEBUG_INLINE ResourceStatus::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - revision_(arena), - error_(arena) {} - -inline void ResourceStatus::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, name_), - 0, - offsetof(Impl_, state_) - - offsetof(Impl_, name_) + - sizeof(Impl_::state_)); + +inline void ResourceStatus::SharedCtor() { +revision_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + revision_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +error_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + error_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&name_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&state_) - + reinterpret_cast(&name_)) + sizeof(state_)); } + ResourceStatus::~ResourceStatus() { // @@protoc_insertion_point(destructor:viam.robot.v1.ResourceStatus) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ResourceStatus::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.revision_.Destroy(); - _impl_.error_.Destroy(); - delete _impl_.name_; - delete _impl_.last_updated_; - delete _impl_.cloud_metadata_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + revision_.Destroy(); + error_.Destroy(); + if (this != internal_default_instance()) delete name_; + if (this != internal_default_instance()) delete last_updated_; + if (this != internal_default_instance()) delete cloud_metadata_; +} + +void ResourceStatus::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void ResourceStatus::Clear() { +void ResourceStatus::Clear() { // @@protoc_insertion_point(message_clear_start:viam.robot.v1.ResourceStatus) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.revision_.ClearToEmpty(); - _impl_.error_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.name_ != nullptr); - _impl_.name_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.last_updated_ != nullptr); - _impl_.last_updated_->Clear(); - } - if (cached_has_bits & 0x00000004u) { - ABSL_DCHECK(_impl_.cloud_metadata_ != nullptr); - _impl_.cloud_metadata_->Clear(); - } + revision_.ClearToEmpty(); + error_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && name_ != nullptr) { + delete name_; } - _impl_.state_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ResourceStatus::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_ = nullptr; + if (GetArenaForAllocation() == nullptr && last_updated_ != nullptr) { + delete last_updated_; + } + last_updated_ = nullptr; + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(cloud_metadata_ != nullptr); + cloud_metadata_->Clear(); + } + state_ = 0; + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ResourceStatus::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .viam.common.v1.ResourceName name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_name(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.robot.v1.ResourceStatus.State state = 2 [json_name = "state"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_state(static_cast<::viam::robot::v1::ResourceStatus_State>(val)); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp last_updated = 3 [json_name = "lastUpdated"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_last_updated(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string revision = 4 [json_name = "revision"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_revision(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.robot.v1.ResourceStatus.revision")); + } else + goto handle_unusual; + continue; + // string error = 5 [json_name = "error"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + auto str = _internal_mutable_error(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.robot.v1.ResourceStatus.error")); + } else + goto handle_unusual; + continue; + // optional .viam.robot.v1.GetCloudMetadataResponse cloud_metadata = 6 [json_name = "cloudMetadata"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr = ctx->ParseMessage(_internal_mutable_cloud_metadata(), 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: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 6, 3, 50, 2> ResourceStatus::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ResourceStatus, _impl_._has_bits_), - 0, // no _extensions_ - 6, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967232, // skipmap - offsetof(decltype(_table_), field_entries), - 6, // num_field_entries - 3, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ResourceStatus_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // .viam.common.v1.ResourceName name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(ResourceStatus, _impl_.name_)}}, - // .viam.robot.v1.ResourceStatus.State state = 2 [json_name = "state"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ResourceStatus, _impl_.state_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(ResourceStatus, _impl_.state_)}}, - // .google.protobuf.Timestamp last_updated = 3 [json_name = "lastUpdated"]; - {::_pbi::TcParser::FastMtS1, - {26, 1, 1, PROTOBUF_FIELD_OFFSET(ResourceStatus, _impl_.last_updated_)}}, - // string revision = 4 [json_name = "revision"]; - {::_pbi::TcParser::FastUS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(ResourceStatus, _impl_.revision_)}}, - // string error = 5 [json_name = "error"]; - {::_pbi::TcParser::FastUS1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(ResourceStatus, _impl_.error_)}}, - // optional .viam.robot.v1.GetCloudMetadataResponse cloud_metadata = 6 [json_name = "cloudMetadata"]; - {::_pbi::TcParser::FastMtS1, - {50, 2, 2, PROTOBUF_FIELD_OFFSET(ResourceStatus, _impl_.cloud_metadata_)}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.common.v1.ResourceName name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(ResourceStatus, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .viam.robot.v1.ResourceStatus.State state = 2 [json_name = "state"]; - {PROTOBUF_FIELD_OFFSET(ResourceStatus, _impl_.state_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // .google.protobuf.Timestamp last_updated = 3 [json_name = "lastUpdated"]; - {PROTOBUF_FIELD_OFFSET(ResourceStatus, _impl_.last_updated_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // string revision = 4 [json_name = "revision"]; - {PROTOBUF_FIELD_OFFSET(ResourceStatus, _impl_.revision_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string error = 5 [json_name = "error"]; - {PROTOBUF_FIELD_OFFSET(ResourceStatus, _impl_.error_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // optional .viam.robot.v1.GetCloudMetadataResponse cloud_metadata = 6 [json_name = "cloudMetadata"]; - {PROTOBUF_FIELD_OFFSET(ResourceStatus, _impl_.cloud_metadata_), _Internal::kHasBitsOffset + 2, 2, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::common::v1::ResourceName>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, - {::_pbi::TcParser::GetTable<::viam::robot::v1::GetCloudMetadataResponse>()}, - }}, {{ - "\34\0\0\0\10\5\0\0" - "viam.robot.v1.ResourceStatus" - "revision" - "error" - }}, -}; - -::uint8_t* ResourceStatus::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ResourceStatus::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.ResourceStatus) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.common.v1.ResourceName name = 1 [json_name = "name"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::name(this), + if (this->_internal_has_name()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::name(this), _Internal::name(this).GetCachedSize(), target, stream); } @@ -10592,139 +11307,142 @@ ::uint8_t* ResourceStatus::_InternalSerialize( if (this->_internal_state() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 2, this->_internal_state(), target); + 2, this->_internal_state(), target); } // .google.protobuf.Timestamp last_updated = 3 [json_name = "lastUpdated"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::last_updated(this), + if (this->_internal_has_last_updated()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::last_updated(this), _Internal::last_updated(this).GetCachedSize(), target, stream); } // string revision = 4 [json_name = "revision"]; if (!this->_internal_revision().empty()) { - const std::string& _s = this->_internal_revision(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.robot.v1.ResourceStatus.revision"); - target = stream->WriteStringMaybeAliased(4, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_revision().data(), static_cast(this->_internal_revision().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.robot.v1.ResourceStatus.revision"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_revision(), target); } // string error = 5 [json_name = "error"]; if (!this->_internal_error().empty()) { - const std::string& _s = this->_internal_error(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.robot.v1.ResourceStatus.error"); - target = stream->WriteStringMaybeAliased(5, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_error().data(), static_cast(this->_internal_error().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.robot.v1.ResourceStatus.error"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_error(), target); } // optional .viam.robot.v1.GetCloudMetadataResponse cloud_metadata = 6 [json_name = "cloudMetadata"]; - if (cached_has_bits & 0x00000004u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 6, _Internal::cloud_metadata(this), + if (_internal_has_cloud_metadata()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(6, _Internal::cloud_metadata(this), _Internal::cloud_metadata(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.robot.v1.ResourceStatus) return target; } -::size_t ResourceStatus::ByteSizeLong() const { +size_t ResourceStatus::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.ResourceStatus) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string revision = 4 [json_name = "revision"]; if (!this->_internal_revision().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_revision()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_revision()); } // string error = 5 [json_name = "error"]; if (!this->_internal_error().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_error()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_error()); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - // .viam.common.v1.ResourceName name = 1 [json_name = "name"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.name_); - } - - // .google.protobuf.Timestamp last_updated = 3 [json_name = "lastUpdated"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.last_updated_); - } + // .viam.common.v1.ResourceName name = 1 [json_name = "name"]; + if (this->_internal_has_name()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *name_); + } - // optional .viam.robot.v1.GetCloudMetadataResponse cloud_metadata = 6 [json_name = "cloudMetadata"]; - if (cached_has_bits & 0x00000004u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.cloud_metadata_); - } + // .google.protobuf.Timestamp last_updated = 3 [json_name = "lastUpdated"]; + if (this->_internal_has_last_updated()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *last_updated_); + } + // optional .viam.robot.v1.GetCloudMetadataResponse cloud_metadata = 6 [json_name = "cloudMetadata"]; + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *cloud_metadata_); } + // .viam.robot.v1.ResourceStatus.State state = 2 [json_name = "state"]; if (this->_internal_state() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_state()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_state()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ResourceStatus::_class_data_ = { - ResourceStatus::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ResourceStatus::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ResourceStatus::MergeImpl }; -const ::google::protobuf::Message::ClassData* ResourceStatus::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ResourceStatus::GetClassData() const { return &_class_data_; } + +void ResourceStatus::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ResourceStatus::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.ResourceStatus) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ResourceStatus::MergeFrom(const ResourceStatus& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.ResourceStatus) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_revision().empty()) { - _this->_internal_set_revision(from._internal_revision()); + _internal_set_revision(from._internal_revision()); } if (!from._internal_error().empty()) { - _this->_internal_set_error(from._internal_error()); + _internal_set_error(from._internal_error()); } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_name()->::viam::common::v1::ResourceName::MergeFrom( - from._internal_name()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_last_updated()->::google::protobuf::Timestamp::MergeFrom( - from._internal_last_updated()); - } - if (cached_has_bits & 0x00000004u) { - _this->_internal_mutable_cloud_metadata()->::viam::robot::v1::GetCloudMetadataResponse::MergeFrom( - from._internal_cloud_metadata()); - } + if (from._internal_has_name()) { + _internal_mutable_name()->::viam::common::v1::ResourceName::MergeFrom(from._internal_name()); + } + if (from._internal_has_last_updated()) { + _internal_mutable_last_updated()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_last_updated()); + } + if (from._internal_has_cloud_metadata()) { + _internal_mutable_cloud_metadata()->::viam::robot::v1::GetCloudMetadataResponse::MergeFrom(from._internal_cloud_metadata()); } if (from._internal_state() != 0) { - _this->_internal_set_state(from._internal_state()); + _internal_set_state(from._internal_state()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ResourceStatus::CopyFrom(const ResourceStatus& from) { @@ -10734,248 +11452,250 @@ void ResourceStatus::CopyFrom(const ResourceStatus& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ResourceStatus::IsInitialized() const { +bool ResourceStatus::IsInitialized() const { return true; } -::_pbi::CachedSize* ResourceStatus::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ResourceStatus::InternalSwap(ResourceStatus* PROTOBUF_RESTRICT other) { +void ResourceStatus::InternalSwap(ResourceStatus* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.revision_, &other->_impl_.revision_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.error_, &other->_impl_.error_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(ResourceStatus, _impl_.state_) - + sizeof(ResourceStatus::_impl_.state_) - - PROTOBUF_FIELD_OFFSET(ResourceStatus, _impl_.name_)>( - reinterpret_cast(&_impl_.name_), - reinterpret_cast(&other->_impl_.name_)); -} - -::google::protobuf::Metadata ResourceStatus::GetMetadata() const { + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &revision_, lhs_arena, + &other->revision_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &error_, lhs_arena, + &other->error_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(ResourceStatus, state_) + + sizeof(ResourceStatus::state_) + - PROTOBUF_FIELD_OFFSET(ResourceStatus, name_)>( + reinterpret_cast(&name_), + reinterpret_cast(&other->name_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ResourceStatus::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, - file_level_metadata_robot_2fv1_2frobot_2eproto[49]); + file_level_metadata_robot_2fv1_2frobot_2eproto[54]); } + // =================================================================== class ConfigStatus::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ConfigStatus, _impl_._has_bits_); - static const ::google::protobuf::Timestamp& last_updated(const ConfigStatus* msg); - static void set_has_last_updated(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& last_updated(const ConfigStatus* msg); }; -const ::google::protobuf::Timestamp& ConfigStatus::_Internal::last_updated(const ConfigStatus* msg) { - return *msg->_impl_.last_updated_; +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +ConfigStatus::_Internal::last_updated(const ConfigStatus* msg) { + return *msg->last_updated_; } void ConfigStatus::clear_last_updated() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.last_updated_ != nullptr) _impl_.last_updated_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && last_updated_ != nullptr) { + delete last_updated_; + } + last_updated_ = nullptr; } -ConfigStatus::ConfigStatus(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ConfigStatus::ConfigStatus(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.robot.v1.ConfigStatus) } -inline PROTOBUF_NDEBUG_INLINE ConfigStatus::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - revision_(arena, from.revision_) {} - -ConfigStatus::ConfigStatus( - ::google::protobuf::Arena* arena, - const ConfigStatus& from) - : ::google::protobuf::Message(arena) { - ConfigStatus* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.last_updated_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.last_updated_) - : nullptr; - +ConfigStatus::ConfigStatus(const ConfigStatus& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + revision_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + revision_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_revision().empty()) { + revision_.Set(from._internal_revision(), + GetArenaForAllocation()); + } + if (from._internal_has_last_updated()) { + last_updated_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from.last_updated_); + } else { + last_updated_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.robot.v1.ConfigStatus) } -inline PROTOBUF_NDEBUG_INLINE ConfigStatus::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - revision_(arena) {} -inline void ConfigStatus::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.last_updated_ = {}; +inline void ConfigStatus::SharedCtor() { +revision_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + revision_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +last_updated_ = nullptr; } + ConfigStatus::~ConfigStatus() { // @@protoc_insertion_point(destructor:viam.robot.v1.ConfigStatus) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ConfigStatus::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.revision_.Destroy(); - delete _impl_.last_updated_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + revision_.Destroy(); + if (this != internal_default_instance()) delete last_updated_; } -PROTOBUF_NOINLINE void ConfigStatus::Clear() { +void ConfigStatus::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ConfigStatus::Clear() { // @@protoc_insertion_point(message_clear_start:viam.robot.v1.ConfigStatus) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.revision_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.last_updated_ != nullptr); - _impl_.last_updated_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ConfigStatus::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + revision_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && last_updated_ != nullptr) { + delete last_updated_; + } + last_updated_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ConfigStatus::_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 revision = 1 [json_name = "revision"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_revision(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.robot.v1.ConfigStatus.revision")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp last_updated = 2 [json_name = "lastUpdated"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_last_updated(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 43, 2> ConfigStatus::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ConfigStatus, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ConfigStatus_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .google.protobuf.Timestamp last_updated = 2 [json_name = "lastUpdated"]; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(ConfigStatus, _impl_.last_updated_)}}, - // string revision = 1 [json_name = "revision"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ConfigStatus, _impl_.revision_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string revision = 1 [json_name = "revision"]; - {PROTOBUF_FIELD_OFFSET(ConfigStatus, _impl_.revision_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Timestamp last_updated = 2 [json_name = "lastUpdated"]; - {PROTOBUF_FIELD_OFFSET(ConfigStatus, _impl_.last_updated_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, - }}, {{ - "\32\10\0\0\0\0\0\0" - "viam.robot.v1.ConfigStatus" - "revision" - }}, -}; - -::uint8_t* ConfigStatus::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ConfigStatus::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.ConfigStatus) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string revision = 1 [json_name = "revision"]; if (!this->_internal_revision().empty()) { - const std::string& _s = this->_internal_revision(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.robot.v1.ConfigStatus.revision"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_revision().data(), static_cast(this->_internal_revision().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.robot.v1.ConfigStatus.revision"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_revision(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Timestamp last_updated = 2 [json_name = "lastUpdated"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::last_updated(this), + if (this->_internal_has_last_updated()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::last_updated(this), _Internal::last_updated(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.robot.v1.ConfigStatus) return target; } -::size_t ConfigStatus::ByteSizeLong() const { +size_t ConfigStatus::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.ConfigStatus) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string revision = 1 [json_name = "revision"]; if (!this->_internal_revision().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_revision()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_revision()); } // .google.protobuf.Timestamp last_updated = 2 [json_name = "lastUpdated"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.last_updated_); + if (this->_internal_has_last_updated()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *last_updated_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ConfigStatus::_class_data_ = { - ConfigStatus::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ConfigStatus::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ConfigStatus::MergeImpl }; -const ::google::protobuf::Message::ClassData* ConfigStatus::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ConfigStatus::GetClassData() const { return &_class_data_; } + +void ConfigStatus::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ConfigStatus::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.ConfigStatus) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ConfigStatus::MergeFrom(const ConfigStatus& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.ConfigStatus) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_revision().empty()) { - _this->_internal_set_revision(from._internal_revision()); + _internal_set_revision(from._internal_revision()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_last_updated()->::google::protobuf::Timestamp::MergeFrom( - from._internal_last_updated()); + if (from._internal_has_last_updated()) { + _internal_mutable_last_updated()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_last_updated()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ConfigStatus::CopyFrom(const ConfigStatus& from) { @@ -10985,47 +11705,42 @@ void ConfigStatus::CopyFrom(const ConfigStatus& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ConfigStatus::IsInitialized() const { +bool ConfigStatus::IsInitialized() const { return true; } -::_pbi::CachedSize* ConfigStatus::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ConfigStatus::InternalSwap(ConfigStatus* PROTOBUF_RESTRICT other) { +void ConfigStatus::InternalSwap(ConfigStatus* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.revision_, &other->_impl_.revision_, arena); - swap(_impl_.last_updated_, other->_impl_.last_updated_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &revision_, lhs_arena, + &other->revision_, rhs_arena + ); + swap(last_updated_, other->last_updated_); } -::google::protobuf::Metadata ConfigStatus::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ConfigStatus::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, - file_level_metadata_robot_2fv1_2frobot_2eproto[50]); + file_level_metadata_robot_2fv1_2frobot_2eproto[55]); } + // =================================================================== class GetVersionRequest::_Internal { public: }; -GetVersionRequest::GetVersionRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +GetVersionRequest::GetVersionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.robot.v1.GetVersionRequest) } -GetVersionRequest::GetVersionRequest( - ::google::protobuf::Arena* arena, - const GetVersionRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - GetVersionRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +GetVersionRequest::GetVersionRequest(const GetVersionRequest& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.robot.v1.GetVersionRequest) } @@ -11033,233 +11748,277 @@ GetVersionRequest::GetVersionRequest( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetVersionRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetVersionRequest::GetClassData() const { return &_class_data_; } + + + -::google::protobuf::Metadata GetVersionRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetVersionRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, - file_level_metadata_robot_2fv1_2frobot_2eproto[51]); + file_level_metadata_robot_2fv1_2frobot_2eproto[56]); } + // =================================================================== class GetVersionResponse::_Internal { public: }; -GetVersionResponse::GetVersionResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetVersionResponse::GetVersionResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.robot.v1.GetVersionResponse) } -inline PROTOBUF_NDEBUG_INLINE GetVersionResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : platform_(arena, from.platform_), - version_(arena, from.version_), - api_version_(arena, from.api_version_), - _cached_size_{0} {} - -GetVersionResponse::GetVersionResponse( - ::google::protobuf::Arena* arena, - const GetVersionResponse& from) - : ::google::protobuf::Message(arena) { - GetVersionResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetVersionResponse::GetVersionResponse(const GetVersionResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + platform_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + platform_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_platform().empty()) { + platform_.Set(from._internal_platform(), + GetArenaForAllocation()); + } + version_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + version_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_version().empty()) { + version_.Set(from._internal_version(), + GetArenaForAllocation()); + } + api_version_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + api_version_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_api_version().empty()) { + api_version_.Set(from._internal_api_version(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.robot.v1.GetVersionResponse) } -inline PROTOBUF_NDEBUG_INLINE GetVersionResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : platform_(arena), - version_(arena), - api_version_(arena), - _cached_size_{0} {} -inline void GetVersionResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetVersionResponse::SharedCtor() { +platform_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + platform_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +version_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + version_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +api_version_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + api_version_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + GetVersionResponse::~GetVersionResponse() { // @@protoc_insertion_point(destructor:viam.robot.v1.GetVersionResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetVersionResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.platform_.Destroy(); - _impl_.version_.Destroy(); - _impl_.api_version_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + platform_.Destroy(); + version_.Destroy(); + api_version_.Destroy(); } -PROTOBUF_NOINLINE void GetVersionResponse::Clear() { +void GetVersionResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetVersionResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.robot.v1.GetVersionResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.platform_.ClearToEmpty(); - _impl_.version_.ClearToEmpty(); - _impl_.api_version_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetVersionResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + platform_.ClearToEmpty(); + version_.ClearToEmpty(); + api_version_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetVersionResponse::_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 platform = 1 [json_name = "platform"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_platform(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.robot.v1.GetVersionResponse.platform")); + } else + goto handle_unusual; + continue; + // string version = 2 [json_name = "version"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_version(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.robot.v1.GetVersionResponse.version")); + } else + goto handle_unusual; + continue; + // string api_version = 3 [json_name = "apiVersion"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_api_version(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.robot.v1.GetVersionResponse.api_version")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 67, 2> GetVersionResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetVersionResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string platform = 1 [json_name = "platform"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetVersionResponse, _impl_.platform_)}}, - // string version = 2 [json_name = "version"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(GetVersionResponse, _impl_.version_)}}, - // string api_version = 3 [json_name = "apiVersion"]; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(GetVersionResponse, _impl_.api_version_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string platform = 1 [json_name = "platform"]; - {PROTOBUF_FIELD_OFFSET(GetVersionResponse, _impl_.platform_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string version = 2 [json_name = "version"]; - {PROTOBUF_FIELD_OFFSET(GetVersionResponse, _impl_.version_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string api_version = 3 [json_name = "apiVersion"]; - {PROTOBUF_FIELD_OFFSET(GetVersionResponse, _impl_.api_version_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\40\10\7\13\0\0\0\0" - "viam.robot.v1.GetVersionResponse" - "platform" - "version" - "api_version" - }}, -}; - -::uint8_t* GetVersionResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetVersionResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.robot.v1.GetVersionResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string platform = 1 [json_name = "platform"]; if (!this->_internal_platform().empty()) { - const std::string& _s = this->_internal_platform(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.robot.v1.GetVersionResponse.platform"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_platform().data(), static_cast(this->_internal_platform().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.robot.v1.GetVersionResponse.platform"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_platform(), target); } // string version = 2 [json_name = "version"]; if (!this->_internal_version().empty()) { - const std::string& _s = this->_internal_version(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.robot.v1.GetVersionResponse.version"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_version().data(), static_cast(this->_internal_version().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.robot.v1.GetVersionResponse.version"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_version(), target); } // string api_version = 3 [json_name = "apiVersion"]; if (!this->_internal_api_version().empty()) { - const std::string& _s = this->_internal_api_version(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.robot.v1.GetVersionResponse.api_version"); - target = stream->WriteStringMaybeAliased(3, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_api_version().data(), static_cast(this->_internal_api_version().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.robot.v1.GetVersionResponse.api_version"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_api_version(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.robot.v1.GetVersionResponse) return target; } -::size_t GetVersionResponse::ByteSizeLong() const { +size_t GetVersionResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.robot.v1.GetVersionResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string platform = 1 [json_name = "platform"]; if (!this->_internal_platform().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_platform()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_platform()); } // string version = 2 [json_name = "version"]; if (!this->_internal_version().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_version()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_version()); } // string api_version = 3 [json_name = "apiVersion"]; if (!this->_internal_api_version().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_api_version()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_api_version()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetVersionResponse::_class_data_ = { - GetVersionResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetVersionResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetVersionResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetVersionResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetVersionResponse::GetClassData() const { return &_class_data_; } + +void GetVersionResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetVersionResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.GetVersionResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetVersionResponse::MergeFrom(const GetVersionResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.robot.v1.GetVersionResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_platform().empty()) { - _this->_internal_set_platform(from._internal_platform()); + _internal_set_platform(from._internal_platform()); } if (!from._internal_version().empty()) { - _this->_internal_set_version(from._internal_version()); + _internal_set_version(from._internal_version()); } if (!from._internal_api_version().empty()) { - _this->_internal_set_api_version(from._internal_api_version()); + _internal_set_api_version(from._internal_api_version()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetVersionResponse::CopyFrom(const GetVersionResponse& from) { @@ -11269,35 +12028,273 @@ void GetVersionResponse::CopyFrom(const GetVersionResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetVersionResponse::IsInitialized() const { +bool GetVersionResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetVersionResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetVersionResponse::InternalSwap(GetVersionResponse* PROTOBUF_RESTRICT other) { +void GetVersionResponse::InternalSwap(GetVersionResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.platform_, &other->_impl_.platform_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.version_, &other->_impl_.version_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.api_version_, &other->_impl_.api_version_, arena); -} - -::google::protobuf::Metadata GetVersionResponse::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &platform_, lhs_arena, + &other->platform_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &version_, lhs_arena, + &other->version_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &api_version_, lhs_arena, + &other->api_version_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetVersionResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_robot_2fv1_2frobot_2eproto_getter, &descriptor_table_robot_2fv1_2frobot_2eproto_once, - file_level_metadata_robot_2fv1_2frobot_2eproto[52]); + file_level_metadata_robot_2fv1_2frobot_2eproto[57]); } + // @@protoc_insertion_point(namespace_scope) } // namespace v1 } // namespace robot } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::robot::v1::TunnelRequest* +Arena::CreateMaybeMessage< ::viam::robot::v1::TunnelRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::TunnelRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::TunnelResponse* +Arena::CreateMaybeMessage< ::viam::robot::v1::TunnelResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::TunnelResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::FrameSystemConfig* +Arena::CreateMaybeMessage< ::viam::robot::v1::FrameSystemConfig >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::FrameSystemConfig >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::FrameSystemConfigRequest* +Arena::CreateMaybeMessage< ::viam::robot::v1::FrameSystemConfigRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::FrameSystemConfigRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::FrameSystemConfigResponse* +Arena::CreateMaybeMessage< ::viam::robot::v1::FrameSystemConfigResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::FrameSystemConfigResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::TransformPoseRequest* +Arena::CreateMaybeMessage< ::viam::robot::v1::TransformPoseRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::TransformPoseRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::TransformPoseResponse* +Arena::CreateMaybeMessage< ::viam::robot::v1::TransformPoseResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::TransformPoseResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::TransformPCDRequest* +Arena::CreateMaybeMessage< ::viam::robot::v1::TransformPCDRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::TransformPCDRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::TransformPCDResponse* +Arena::CreateMaybeMessage< ::viam::robot::v1::TransformPCDResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::TransformPCDResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::ResourceNamesRequest* +Arena::CreateMaybeMessage< ::viam::robot::v1::ResourceNamesRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::ResourceNamesRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::ResourceNamesResponse* +Arena::CreateMaybeMessage< ::viam::robot::v1::ResourceNamesResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::ResourceNamesResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::ResourceRPCSubtype* +Arena::CreateMaybeMessage< ::viam::robot::v1::ResourceRPCSubtype >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::ResourceRPCSubtype >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::ResourceRPCSubtypesRequest* +Arena::CreateMaybeMessage< ::viam::robot::v1::ResourceRPCSubtypesRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::ResourceRPCSubtypesRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::ResourceRPCSubtypesResponse* +Arena::CreateMaybeMessage< ::viam::robot::v1::ResourceRPCSubtypesResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::ResourceRPCSubtypesResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::Operation* +Arena::CreateMaybeMessage< ::viam::robot::v1::Operation >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::Operation >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::GetOperationsRequest* +Arena::CreateMaybeMessage< ::viam::robot::v1::GetOperationsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::GetOperationsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::GetOperationsResponse* +Arena::CreateMaybeMessage< ::viam::robot::v1::GetOperationsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::GetOperationsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::CancelOperationRequest* +Arena::CreateMaybeMessage< ::viam::robot::v1::CancelOperationRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::CancelOperationRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::CancelOperationResponse* +Arena::CreateMaybeMessage< ::viam::robot::v1::CancelOperationResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::CancelOperationResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::BlockForOperationRequest* +Arena::CreateMaybeMessage< ::viam::robot::v1::BlockForOperationRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::BlockForOperationRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::BlockForOperationResponse* +Arena::CreateMaybeMessage< ::viam::robot::v1::BlockForOperationResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::BlockForOperationResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::PeerConnectionInfo* +Arena::CreateMaybeMessage< ::viam::robot::v1::PeerConnectionInfo >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::PeerConnectionInfo >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::Session* +Arena::CreateMaybeMessage< ::viam::robot::v1::Session >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::Session >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::GetSessionsRequest* +Arena::CreateMaybeMessage< ::viam::robot::v1::GetSessionsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::GetSessionsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::GetSessionsResponse* +Arena::CreateMaybeMessage< ::viam::robot::v1::GetSessionsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::GetSessionsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::DiscoveryQuery* +Arena::CreateMaybeMessage< ::viam::robot::v1::DiscoveryQuery >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::DiscoveryQuery >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::Discovery* +Arena::CreateMaybeMessage< ::viam::robot::v1::Discovery >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::Discovery >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::ModuleModel* +Arena::CreateMaybeMessage< ::viam::robot::v1::ModuleModel >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::ModuleModel >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::GetModelsFromModulesRequest* +Arena::CreateMaybeMessage< ::viam::robot::v1::GetModelsFromModulesRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::GetModelsFromModulesRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::GetModelsFromModulesResponse* +Arena::CreateMaybeMessage< ::viam::robot::v1::GetModelsFromModulesResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::GetModelsFromModulesResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::DiscoverComponentsRequest* +Arena::CreateMaybeMessage< ::viam::robot::v1::DiscoverComponentsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::DiscoverComponentsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::DiscoverComponentsResponse* +Arena::CreateMaybeMessage< ::viam::robot::v1::DiscoverComponentsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::DiscoverComponentsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::Status* +Arena::CreateMaybeMessage< ::viam::robot::v1::Status >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::Status >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::GetStatusRequest* +Arena::CreateMaybeMessage< ::viam::robot::v1::GetStatusRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::GetStatusRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::GetStatusResponse* +Arena::CreateMaybeMessage< ::viam::robot::v1::GetStatusResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::GetStatusResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::StreamStatusRequest* +Arena::CreateMaybeMessage< ::viam::robot::v1::StreamStatusRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::StreamStatusRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::StreamStatusResponse* +Arena::CreateMaybeMessage< ::viam::robot::v1::StreamStatusResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::StreamStatusResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::StopExtraParameters* +Arena::CreateMaybeMessage< ::viam::robot::v1::StopExtraParameters >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::StopExtraParameters >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::StopAllRequest* +Arena::CreateMaybeMessage< ::viam::robot::v1::StopAllRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::StopAllRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::StopAllResponse* +Arena::CreateMaybeMessage< ::viam::robot::v1::StopAllResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::StopAllResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::StartSessionRequest* +Arena::CreateMaybeMessage< ::viam::robot::v1::StartSessionRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::StartSessionRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::StartSessionResponse* +Arena::CreateMaybeMessage< ::viam::robot::v1::StartSessionResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::StartSessionResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::SendSessionHeartbeatRequest* +Arena::CreateMaybeMessage< ::viam::robot::v1::SendSessionHeartbeatRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::SendSessionHeartbeatRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::SendSessionHeartbeatResponse* +Arena::CreateMaybeMessage< ::viam::robot::v1::SendSessionHeartbeatResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::SendSessionHeartbeatResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::LogRequest* +Arena::CreateMaybeMessage< ::viam::robot::v1::LogRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::LogRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::LogResponse* +Arena::CreateMaybeMessage< ::viam::robot::v1::LogResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::LogResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::GetCloudMetadataRequest* +Arena::CreateMaybeMessage< ::viam::robot::v1::GetCloudMetadataRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::GetCloudMetadataRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::GetCloudMetadataResponse* +Arena::CreateMaybeMessage< ::viam::robot::v1::GetCloudMetadataResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::GetCloudMetadataResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::RestartModuleRequest* +Arena::CreateMaybeMessage< ::viam::robot::v1::RestartModuleRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::RestartModuleRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::RestartModuleResponse* +Arena::CreateMaybeMessage< ::viam::robot::v1::RestartModuleResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::RestartModuleResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::ShutdownRequest* +Arena::CreateMaybeMessage< ::viam::robot::v1::ShutdownRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::ShutdownRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::ShutdownResponse* +Arena::CreateMaybeMessage< ::viam::robot::v1::ShutdownResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::ShutdownResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::GetMachineStatusRequest* +Arena::CreateMaybeMessage< ::viam::robot::v1::GetMachineStatusRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::GetMachineStatusRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::GetMachineStatusResponse* +Arena::CreateMaybeMessage< ::viam::robot::v1::GetMachineStatusResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::GetMachineStatusResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::ResourceStatus* +Arena::CreateMaybeMessage< ::viam::robot::v1::ResourceStatus >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::ResourceStatus >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::ConfigStatus* +Arena::CreateMaybeMessage< ::viam::robot::v1::ConfigStatus >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::ConfigStatus >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::GetVersionRequest* +Arena::CreateMaybeMessage< ::viam::robot::v1::GetVersionRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::GetVersionRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::robot::v1::GetVersionResponse* +Arena::CreateMaybeMessage< ::viam::robot::v1::GetVersionResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::robot::v1::GetVersionResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/robot/v1/robot.pb.h b/src/viam/api/robot/v1/robot.pb.h index 1c789e39e..cfd31d515 100644 --- a/src/viam/api/robot/v1/robot.pb.h +++ b/src/viam/api/robot/v1/robot.pb.h @@ -1,67 +1,56 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: robot/v1/robot.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_robot_2fv1_2frobot_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_robot_2fv1_2frobot_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_robot_2fv1_2frobot_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_robot_2fv1_2frobot_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_bases.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/generated_enum_reflection.h" -#include "google/protobuf/unknown_field_set.h" + +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include #include "common/v1/common.pb.h" #include "google/api/annotations.pb.h" -#include "google/protobuf/duration.pb.h" -#include "google/protobuf/struct.pb.h" -#include "google/protobuf/timestamp.pb.h" +#include +#include +#include // @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - +#include #define PROTOBUF_INTERNAL_EXPORT_robot_2fv1_2frobot_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_robot_2fv1_2frobot_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_robot_2fv1_2frobot_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_robot_2fv1_2frobot_2eproto; namespace viam { namespace robot { namespace v1 { @@ -113,6 +102,12 @@ extern GetMachineStatusRequestDefaultTypeInternal _GetMachineStatusRequest_defau class GetMachineStatusResponse; struct GetMachineStatusResponseDefaultTypeInternal; extern GetMachineStatusResponseDefaultTypeInternal _GetMachineStatusResponse_default_instance_; +class GetModelsFromModulesRequest; +struct GetModelsFromModulesRequestDefaultTypeInternal; +extern GetModelsFromModulesRequestDefaultTypeInternal _GetModelsFromModulesRequest_default_instance_; +class GetModelsFromModulesResponse; +struct GetModelsFromModulesResponseDefaultTypeInternal; +extern GetModelsFromModulesResponseDefaultTypeInternal _GetModelsFromModulesResponse_default_instance_; class GetOperationsRequest; struct GetOperationsRequestDefaultTypeInternal; extern GetOperationsRequestDefaultTypeInternal _GetOperationsRequest_default_instance_; @@ -143,6 +138,9 @@ extern LogRequestDefaultTypeInternal _LogRequest_default_instance_; class LogResponse; struct LogResponseDefaultTypeInternal; extern LogResponseDefaultTypeInternal _LogResponse_default_instance_; +class ModuleModel; +struct ModuleModelDefaultTypeInternal; +extern ModuleModelDefaultTypeInternal _ModuleModel_default_instance_; class Operation; struct OperationDefaultTypeInternal; extern OperationDefaultTypeInternal _Operation_default_instance_; @@ -224,17 +222,105 @@ extern TransformPoseRequestDefaultTypeInternal _TransformPoseRequest_default_ins class TransformPoseResponse; struct TransformPoseResponseDefaultTypeInternal; extern TransformPoseResponseDefaultTypeInternal _TransformPoseResponse_default_instance_; +class TunnelRequest; +struct TunnelRequestDefaultTypeInternal; +extern TunnelRequestDefaultTypeInternal _TunnelRequest_default_instance_; +class TunnelResponse; +struct TunnelResponseDefaultTypeInternal; +extern TunnelResponseDefaultTypeInternal _TunnelResponse_default_instance_; } // namespace v1 } // namespace robot } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::robot::v1::BlockForOperationRequest* Arena::CreateMaybeMessage<::viam::robot::v1::BlockForOperationRequest>(Arena*); +template<> ::viam::robot::v1::BlockForOperationResponse* Arena::CreateMaybeMessage<::viam::robot::v1::BlockForOperationResponse>(Arena*); +template<> ::viam::robot::v1::CancelOperationRequest* Arena::CreateMaybeMessage<::viam::robot::v1::CancelOperationRequest>(Arena*); +template<> ::viam::robot::v1::CancelOperationResponse* Arena::CreateMaybeMessage<::viam::robot::v1::CancelOperationResponse>(Arena*); +template<> ::viam::robot::v1::ConfigStatus* Arena::CreateMaybeMessage<::viam::robot::v1::ConfigStatus>(Arena*); +template<> ::viam::robot::v1::DiscoverComponentsRequest* Arena::CreateMaybeMessage<::viam::robot::v1::DiscoverComponentsRequest>(Arena*); +template<> ::viam::robot::v1::DiscoverComponentsResponse* Arena::CreateMaybeMessage<::viam::robot::v1::DiscoverComponentsResponse>(Arena*); +template<> ::viam::robot::v1::Discovery* Arena::CreateMaybeMessage<::viam::robot::v1::Discovery>(Arena*); +template<> ::viam::robot::v1::DiscoveryQuery* Arena::CreateMaybeMessage<::viam::robot::v1::DiscoveryQuery>(Arena*); +template<> ::viam::robot::v1::FrameSystemConfig* Arena::CreateMaybeMessage<::viam::robot::v1::FrameSystemConfig>(Arena*); +template<> ::viam::robot::v1::FrameSystemConfigRequest* Arena::CreateMaybeMessage<::viam::robot::v1::FrameSystemConfigRequest>(Arena*); +template<> ::viam::robot::v1::FrameSystemConfigResponse* Arena::CreateMaybeMessage<::viam::robot::v1::FrameSystemConfigResponse>(Arena*); +template<> ::viam::robot::v1::GetCloudMetadataRequest* Arena::CreateMaybeMessage<::viam::robot::v1::GetCloudMetadataRequest>(Arena*); +template<> ::viam::robot::v1::GetCloudMetadataResponse* Arena::CreateMaybeMessage<::viam::robot::v1::GetCloudMetadataResponse>(Arena*); +template<> ::viam::robot::v1::GetMachineStatusRequest* Arena::CreateMaybeMessage<::viam::robot::v1::GetMachineStatusRequest>(Arena*); +template<> ::viam::robot::v1::GetMachineStatusResponse* Arena::CreateMaybeMessage<::viam::robot::v1::GetMachineStatusResponse>(Arena*); +template<> ::viam::robot::v1::GetModelsFromModulesRequest* Arena::CreateMaybeMessage<::viam::robot::v1::GetModelsFromModulesRequest>(Arena*); +template<> ::viam::robot::v1::GetModelsFromModulesResponse* Arena::CreateMaybeMessage<::viam::robot::v1::GetModelsFromModulesResponse>(Arena*); +template<> ::viam::robot::v1::GetOperationsRequest* Arena::CreateMaybeMessage<::viam::robot::v1::GetOperationsRequest>(Arena*); +template<> ::viam::robot::v1::GetOperationsResponse* Arena::CreateMaybeMessage<::viam::robot::v1::GetOperationsResponse>(Arena*); +template<> ::viam::robot::v1::GetSessionsRequest* Arena::CreateMaybeMessage<::viam::robot::v1::GetSessionsRequest>(Arena*); +template<> ::viam::robot::v1::GetSessionsResponse* Arena::CreateMaybeMessage<::viam::robot::v1::GetSessionsResponse>(Arena*); +template<> ::viam::robot::v1::GetStatusRequest* Arena::CreateMaybeMessage<::viam::robot::v1::GetStatusRequest>(Arena*); +template<> ::viam::robot::v1::GetStatusResponse* Arena::CreateMaybeMessage<::viam::robot::v1::GetStatusResponse>(Arena*); +template<> ::viam::robot::v1::GetVersionRequest* Arena::CreateMaybeMessage<::viam::robot::v1::GetVersionRequest>(Arena*); +template<> ::viam::robot::v1::GetVersionResponse* Arena::CreateMaybeMessage<::viam::robot::v1::GetVersionResponse>(Arena*); +template<> ::viam::robot::v1::LogRequest* Arena::CreateMaybeMessage<::viam::robot::v1::LogRequest>(Arena*); +template<> ::viam::robot::v1::LogResponse* Arena::CreateMaybeMessage<::viam::robot::v1::LogResponse>(Arena*); +template<> ::viam::robot::v1::ModuleModel* Arena::CreateMaybeMessage<::viam::robot::v1::ModuleModel>(Arena*); +template<> ::viam::robot::v1::Operation* Arena::CreateMaybeMessage<::viam::robot::v1::Operation>(Arena*); +template<> ::viam::robot::v1::PeerConnectionInfo* Arena::CreateMaybeMessage<::viam::robot::v1::PeerConnectionInfo>(Arena*); +template<> ::viam::robot::v1::ResourceNamesRequest* Arena::CreateMaybeMessage<::viam::robot::v1::ResourceNamesRequest>(Arena*); +template<> ::viam::robot::v1::ResourceNamesResponse* Arena::CreateMaybeMessage<::viam::robot::v1::ResourceNamesResponse>(Arena*); +template<> ::viam::robot::v1::ResourceRPCSubtype* Arena::CreateMaybeMessage<::viam::robot::v1::ResourceRPCSubtype>(Arena*); +template<> ::viam::robot::v1::ResourceRPCSubtypesRequest* Arena::CreateMaybeMessage<::viam::robot::v1::ResourceRPCSubtypesRequest>(Arena*); +template<> ::viam::robot::v1::ResourceRPCSubtypesResponse* Arena::CreateMaybeMessage<::viam::robot::v1::ResourceRPCSubtypesResponse>(Arena*); +template<> ::viam::robot::v1::ResourceStatus* Arena::CreateMaybeMessage<::viam::robot::v1::ResourceStatus>(Arena*); +template<> ::viam::robot::v1::RestartModuleRequest* Arena::CreateMaybeMessage<::viam::robot::v1::RestartModuleRequest>(Arena*); +template<> ::viam::robot::v1::RestartModuleResponse* Arena::CreateMaybeMessage<::viam::robot::v1::RestartModuleResponse>(Arena*); +template<> ::viam::robot::v1::SendSessionHeartbeatRequest* Arena::CreateMaybeMessage<::viam::robot::v1::SendSessionHeartbeatRequest>(Arena*); +template<> ::viam::robot::v1::SendSessionHeartbeatResponse* Arena::CreateMaybeMessage<::viam::robot::v1::SendSessionHeartbeatResponse>(Arena*); +template<> ::viam::robot::v1::Session* Arena::CreateMaybeMessage<::viam::robot::v1::Session>(Arena*); +template<> ::viam::robot::v1::ShutdownRequest* Arena::CreateMaybeMessage<::viam::robot::v1::ShutdownRequest>(Arena*); +template<> ::viam::robot::v1::ShutdownResponse* Arena::CreateMaybeMessage<::viam::robot::v1::ShutdownResponse>(Arena*); +template<> ::viam::robot::v1::StartSessionRequest* Arena::CreateMaybeMessage<::viam::robot::v1::StartSessionRequest>(Arena*); +template<> ::viam::robot::v1::StartSessionResponse* Arena::CreateMaybeMessage<::viam::robot::v1::StartSessionResponse>(Arena*); +template<> ::viam::robot::v1::Status* Arena::CreateMaybeMessage<::viam::robot::v1::Status>(Arena*); +template<> ::viam::robot::v1::StopAllRequest* Arena::CreateMaybeMessage<::viam::robot::v1::StopAllRequest>(Arena*); +template<> ::viam::robot::v1::StopAllResponse* Arena::CreateMaybeMessage<::viam::robot::v1::StopAllResponse>(Arena*); +template<> ::viam::robot::v1::StopExtraParameters* Arena::CreateMaybeMessage<::viam::robot::v1::StopExtraParameters>(Arena*); +template<> ::viam::robot::v1::StreamStatusRequest* Arena::CreateMaybeMessage<::viam::robot::v1::StreamStatusRequest>(Arena*); +template<> ::viam::robot::v1::StreamStatusResponse* Arena::CreateMaybeMessage<::viam::robot::v1::StreamStatusResponse>(Arena*); +template<> ::viam::robot::v1::TransformPCDRequest* Arena::CreateMaybeMessage<::viam::robot::v1::TransformPCDRequest>(Arena*); +template<> ::viam::robot::v1::TransformPCDResponse* Arena::CreateMaybeMessage<::viam::robot::v1::TransformPCDResponse>(Arena*); +template<> ::viam::robot::v1::TransformPoseRequest* Arena::CreateMaybeMessage<::viam::robot::v1::TransformPoseRequest>(Arena*); +template<> ::viam::robot::v1::TransformPoseResponse* Arena::CreateMaybeMessage<::viam::robot::v1::TransformPoseResponse>(Arena*); +template<> ::viam::robot::v1::TunnelRequest* Arena::CreateMaybeMessage<::viam::robot::v1::TunnelRequest>(Arena*); +template<> ::viam::robot::v1::TunnelResponse* Arena::CreateMaybeMessage<::viam::robot::v1::TunnelResponse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace viam { namespace robot { namespace v1 { + +enum GetMachineStatusResponse_State : int { + GetMachineStatusResponse_State_STATE_UNSPECIFIED = 0, + GetMachineStatusResponse_State_STATE_INITIALIZING = 1, + GetMachineStatusResponse_State_STATE_RUNNING = 2, + GetMachineStatusResponse_State_GetMachineStatusResponse_State_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + GetMachineStatusResponse_State_GetMachineStatusResponse_State_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() +}; +bool GetMachineStatusResponse_State_IsValid(int value); +constexpr GetMachineStatusResponse_State GetMachineStatusResponse_State_State_MIN = GetMachineStatusResponse_State_STATE_UNSPECIFIED; +constexpr GetMachineStatusResponse_State GetMachineStatusResponse_State_State_MAX = GetMachineStatusResponse_State_STATE_RUNNING; +constexpr int GetMachineStatusResponse_State_State_ARRAYSIZE = GetMachineStatusResponse_State_State_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* GetMachineStatusResponse_State_descriptor(); +template +inline const std::string& GetMachineStatusResponse_State_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function GetMachineStatusResponse_State_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + GetMachineStatusResponse_State_descriptor(), enum_t_value); +} +inline bool GetMachineStatusResponse_State_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, GetMachineStatusResponse_State* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + GetMachineStatusResponse_State_descriptor(), name, value); +} enum ResourceStatus_State : int { ResourceStatus_State_STATE_UNSPECIFIED = 0, ResourceStatus_State_STATE_UNCONFIGURED = 1, @@ -242,100 +328,78 @@ enum ResourceStatus_State : int { ResourceStatus_State_STATE_READY = 3, ResourceStatus_State_STATE_REMOVING = 4, ResourceStatus_State_STATE_UNHEALTHY = 5, - ResourceStatus_State_ResourceStatus_State_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - ResourceStatus_State_ResourceStatus_State_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), + ResourceStatus_State_ResourceStatus_State_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + ResourceStatus_State_ResourceStatus_State_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() }; - bool ResourceStatus_State_IsValid(int value); -extern const uint32_t ResourceStatus_State_internal_data_[]; -constexpr ResourceStatus_State ResourceStatus_State_State_MIN = static_cast(0); -constexpr ResourceStatus_State ResourceStatus_State_State_MAX = static_cast(5); -constexpr int ResourceStatus_State_State_ARRAYSIZE = 5 + 1; -const ::google::protobuf::EnumDescriptor* -ResourceStatus_State_descriptor(); -template -const std::string& ResourceStatus_State_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to State_Name()."); - return ResourceStatus_State_Name(static_cast(value)); -} -template <> -inline const std::string& ResourceStatus_State_Name(ResourceStatus_State value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool ResourceStatus_State_Parse(absl::string_view name, ResourceStatus_State* value) { - return ::google::protobuf::internal::ParseNamedEnum( - ResourceStatus_State_descriptor(), name, value); +constexpr ResourceStatus_State ResourceStatus_State_State_MIN = ResourceStatus_State_STATE_UNSPECIFIED; +constexpr ResourceStatus_State ResourceStatus_State_State_MAX = ResourceStatus_State_STATE_UNHEALTHY; +constexpr int ResourceStatus_State_State_ARRAYSIZE = ResourceStatus_State_State_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ResourceStatus_State_descriptor(); +template +inline const std::string& ResourceStatus_State_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function ResourceStatus_State_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + ResourceStatus_State_descriptor(), enum_t_value); +} +inline bool ResourceStatus_State_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ResourceStatus_State* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + ResourceStatus_State_descriptor(), name, value); } enum PeerConnectionType : int { PEER_CONNECTION_TYPE_UNSPECIFIED = 0, PEER_CONNECTION_TYPE_GRPC = 1, PEER_CONNECTION_TYPE_WEBRTC = 2, - PeerConnectionType_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - PeerConnectionType_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), + PeerConnectionType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + PeerConnectionType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() }; - bool PeerConnectionType_IsValid(int value); -extern const uint32_t PeerConnectionType_internal_data_[]; -constexpr PeerConnectionType PeerConnectionType_MIN = static_cast(0); -constexpr PeerConnectionType PeerConnectionType_MAX = static_cast(2); -constexpr int PeerConnectionType_ARRAYSIZE = 2 + 1; -const ::google::protobuf::EnumDescriptor* -PeerConnectionType_descriptor(); -template -const std::string& PeerConnectionType_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to PeerConnectionType_Name()."); - return PeerConnectionType_Name(static_cast(value)); -} -template <> -inline const std::string& PeerConnectionType_Name(PeerConnectionType value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool PeerConnectionType_Parse(absl::string_view name, PeerConnectionType* value) { - return ::google::protobuf::internal::ParseNamedEnum( - PeerConnectionType_descriptor(), name, value); +constexpr PeerConnectionType PeerConnectionType_MIN = PEER_CONNECTION_TYPE_UNSPECIFIED; +constexpr PeerConnectionType PeerConnectionType_MAX = PEER_CONNECTION_TYPE_WEBRTC; +constexpr int PeerConnectionType_ARRAYSIZE = PeerConnectionType_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PeerConnectionType_descriptor(); +template +inline const std::string& PeerConnectionType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function PeerConnectionType_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + PeerConnectionType_descriptor(), enum_t_value); +} +inline bool PeerConnectionType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PeerConnectionType* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + PeerConnectionType_descriptor(), name, value); } - // =================================================================== - -// ------------------------------------------------------------------- - -class TransformPCDResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.TransformPCDResponse) */ { +class TunnelRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.TunnelRequest) */ { public: - inline TransformPCDResponse() : TransformPCDResponse(nullptr) {} - ~TransformPCDResponse() override; - template - explicit PROTOBUF_CONSTEXPR TransformPCDResponse(::google::protobuf::internal::ConstantInitialized); + inline TunnelRequest() : TunnelRequest(nullptr) {} + ~TunnelRequest() override; + explicit PROTOBUF_CONSTEXPR TunnelRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline TransformPCDResponse(const TransformPCDResponse& from) - : TransformPCDResponse(nullptr, from) {} - TransformPCDResponse(TransformPCDResponse&& from) noexcept - : TransformPCDResponse() { + TunnelRequest(const TunnelRequest& from); + TunnelRequest(TunnelRequest&& from) noexcept + : TunnelRequest() { *this = ::std::move(from); } - inline TransformPCDResponse& operator=(const TransformPCDResponse& from) { + inline TunnelRequest& operator=(const TunnelRequest& from) { CopyFrom(from); return *this; } - inline TransformPCDResponse& operator=(TransformPCDResponse&& from) noexcept { + inline TunnelRequest& operator=(TunnelRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -345,178 +409,156 @@ class TransformPCDResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const TransformPCDResponse& default_instance() { + static const TunnelRequest& default_instance() { return *internal_default_instance(); } - static inline const TransformPCDResponse* internal_default_instance() { - return reinterpret_cast( - &_TransformPCDResponse_default_instance_); + static inline const TunnelRequest* internal_default_instance() { + return reinterpret_cast( + &_TunnelRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 6; + 0; - friend void swap(TransformPCDResponse& a, TransformPCDResponse& b) { + friend void swap(TunnelRequest& a, TunnelRequest& b) { a.Swap(&b); } - inline void Swap(TransformPCDResponse* other) { + inline void Swap(TunnelRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(TransformPCDResponse* other) { + void UnsafeArenaSwap(TunnelRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - TransformPCDResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const TransformPCDResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const TransformPCDResponse& from) { - TransformPCDResponse::MergeImpl(*this, from); + TunnelRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const TunnelRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const TunnelRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(TransformPCDResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(TunnelRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.robot.v1.TransformPCDResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.TunnelRequest"; } protected: - explicit TransformPCDResponse(::google::protobuf::Arena* arena); - TransformPCDResponse(::google::protobuf::Arena* arena, const TransformPCDResponse& from); + explicit TunnelRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kPointCloudPcdFieldNumber = 1, + kDataFieldNumber = 2, + kDestinationPortFieldNumber = 1, }; - // bytes point_cloud_pcd = 1 [json_name = "pointCloudPcd"]; - void clear_point_cloud_pcd() ; - const std::string& point_cloud_pcd() const; - template - void set_point_cloud_pcd(Arg_&& arg, Args_... args); - std::string* mutable_point_cloud_pcd(); - PROTOBUF_NODISCARD std::string* release_point_cloud_pcd(); - void set_allocated_point_cloud_pcd(std::string* value); - + // bytes data = 2 [json_name = "data"]; + void clear_data(); + const std::string& data() const; + template + void set_data(ArgT0&& arg0, ArgT... args); + std::string* mutable_data(); + PROTOBUF_NODISCARD std::string* release_data(); + void set_allocated_data(std::string* data); private: - const std::string& _internal_point_cloud_pcd() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_point_cloud_pcd( - const std::string& value); - std::string* _internal_mutable_point_cloud_pcd(); + const std::string& _internal_data() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_data(const std::string& value); + std::string* _internal_mutable_data(); + public: + // uint32 destination_port = 1 [json_name = "destinationPort"]; + void clear_destination_port(); + uint32_t destination_port() const; + void set_destination_port(uint32_t value); + private: + uint32_t _internal_destination_port() const; + void _internal_set_destination_port(uint32_t value); public: - // @@protoc_insertion_point(class_scope:viam.robot.v1.TransformPCDResponse) + + // @@protoc_insertion_point(class_scope:viam.robot.v1.TunnelRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr point_cloud_pcd_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr data_; + uint32_t destination_port_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class TransformPCDRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.TransformPCDRequest) */ { +class TunnelResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.TunnelResponse) */ { public: - inline TransformPCDRequest() : TransformPCDRequest(nullptr) {} - ~TransformPCDRequest() override; - template - explicit PROTOBUF_CONSTEXPR TransformPCDRequest(::google::protobuf::internal::ConstantInitialized); + inline TunnelResponse() : TunnelResponse(nullptr) {} + ~TunnelResponse() override; + explicit PROTOBUF_CONSTEXPR TunnelResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline TransformPCDRequest(const TransformPCDRequest& from) - : TransformPCDRequest(nullptr, from) {} - TransformPCDRequest(TransformPCDRequest&& from) noexcept - : TransformPCDRequest() { + TunnelResponse(const TunnelResponse& from); + TunnelResponse(TunnelResponse&& from) noexcept + : TunnelResponse() { *this = ::std::move(from); } - inline TransformPCDRequest& operator=(const TransformPCDRequest& from) { + inline TunnelResponse& operator=(const TunnelResponse& from) { CopyFrom(from); return *this; } - inline TransformPCDRequest& operator=(TransformPCDRequest&& from) noexcept { + inline TunnelResponse& operator=(TunnelResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -526,213 +568,145 @@ class TransformPCDRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const TransformPCDRequest& default_instance() { + static const TunnelResponse& default_instance() { return *internal_default_instance(); } - static inline const TransformPCDRequest* internal_default_instance() { - return reinterpret_cast( - &_TransformPCDRequest_default_instance_); + static inline const TunnelResponse* internal_default_instance() { + return reinterpret_cast( + &_TunnelResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 5; + 1; - friend void swap(TransformPCDRequest& a, TransformPCDRequest& b) { + friend void swap(TunnelResponse& a, TunnelResponse& b) { a.Swap(&b); } - inline void Swap(TransformPCDRequest* other) { + inline void Swap(TunnelResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(TransformPCDRequest* other) { + void UnsafeArenaSwap(TunnelResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - TransformPCDRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const TransformPCDRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const TransformPCDRequest& from) { - TransformPCDRequest::MergeImpl(*this, from); + TunnelResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const TunnelResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const TunnelResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(TransformPCDRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(TunnelResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.robot.v1.TransformPCDRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.TunnelResponse"; } protected: - explicit TransformPCDRequest(::google::protobuf::Arena* arena); - TransformPCDRequest(::google::protobuf::Arena* arena, const TransformPCDRequest& from); + explicit TunnelResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kPointCloudPcdFieldNumber = 1, - kSourceFieldNumber = 2, - kDestinationFieldNumber = 3, + kDataFieldNumber = 1, }; - // bytes point_cloud_pcd = 1 [json_name = "pointCloudPcd"]; - void clear_point_cloud_pcd() ; - const std::string& point_cloud_pcd() const; - template - void set_point_cloud_pcd(Arg_&& arg, Args_... args); - std::string* mutable_point_cloud_pcd(); - PROTOBUF_NODISCARD std::string* release_point_cloud_pcd(); - void set_allocated_point_cloud_pcd(std::string* value); - - private: - const std::string& _internal_point_cloud_pcd() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_point_cloud_pcd( - const std::string& value); - std::string* _internal_mutable_point_cloud_pcd(); - - public: - // string source = 2 [json_name = "source"]; - void clear_source() ; - const std::string& source() const; - template - void set_source(Arg_&& arg, Args_... args); - std::string* mutable_source(); - PROTOBUF_NODISCARD std::string* release_source(); - void set_allocated_source(std::string* value); - + // bytes data = 1 [json_name = "data"]; + void clear_data(); + const std::string& data() const; + template + void set_data(ArgT0&& arg0, ArgT... args); + std::string* mutable_data(); + PROTOBUF_NODISCARD std::string* release_data(); + void set_allocated_data(std::string* data); private: - const std::string& _internal_source() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_source( - const std::string& value); - std::string* _internal_mutable_source(); - + const std::string& _internal_data() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_data(const std::string& value); + std::string* _internal_mutable_data(); public: - // string destination = 3 [json_name = "destination"]; - void clear_destination() ; - const std::string& destination() const; - template - void set_destination(Arg_&& arg, Args_... args); - std::string* mutable_destination(); - PROTOBUF_NODISCARD std::string* release_destination(); - void set_allocated_destination(std::string* value); - - private: - const std::string& _internal_destination() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_destination( - const std::string& value); - std::string* _internal_mutable_destination(); - public: - // @@protoc_insertion_point(class_scope:viam.robot.v1.TransformPCDRequest) + // @@protoc_insertion_point(class_scope:viam.robot.v1.TunnelResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 0, - 59, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr point_cloud_pcd_; - ::google::protobuf::internal::ArenaStringPtr source_; - ::google::protobuf::internal::ArenaStringPtr destination_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr data_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class StopAllResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.robot.v1.StopAllResponse) */ { +class FrameSystemConfig final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.FrameSystemConfig) */ { public: - inline StopAllResponse() : StopAllResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR StopAllResponse(::google::protobuf::internal::ConstantInitialized); + inline FrameSystemConfig() : FrameSystemConfig(nullptr) {} + ~FrameSystemConfig() override; + explicit PROTOBUF_CONSTEXPR FrameSystemConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline StopAllResponse(const StopAllResponse& from) - : StopAllResponse(nullptr, from) {} - StopAllResponse(StopAllResponse&& from) noexcept - : StopAllResponse() { + FrameSystemConfig(const FrameSystemConfig& from); + FrameSystemConfig(FrameSystemConfig&& from) noexcept + : FrameSystemConfig() { *this = ::std::move(from); } - inline StopAllResponse& operator=(const StopAllResponse& from) { + inline FrameSystemConfig& operator=(const FrameSystemConfig& from) { CopyFrom(from); return *this; } - inline StopAllResponse& operator=(StopAllResponse&& from) noexcept { + inline FrameSystemConfig& operator=(FrameSystemConfig&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -742,134 +716,169 @@ class StopAllResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const StopAllResponse& default_instance() { + static const FrameSystemConfig& default_instance() { return *internal_default_instance(); } - static inline const StopAllResponse* internal_default_instance() { - return reinterpret_cast( - &_StopAllResponse_default_instance_); + static inline const FrameSystemConfig* internal_default_instance() { + return reinterpret_cast( + &_FrameSystemConfig_default_instance_); } static constexpr int kIndexInFileMessages = - 34; + 2; - friend void swap(StopAllResponse& a, StopAllResponse& b) { + friend void swap(FrameSystemConfig& a, FrameSystemConfig& b) { a.Swap(&b); } - inline void Swap(StopAllResponse* other) { + inline void Swap(FrameSystemConfig* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(StopAllResponse* other) { + void UnsafeArenaSwap(FrameSystemConfig* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - StopAllResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const StopAllResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const StopAllResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + FrameSystemConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const FrameSystemConfig& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const FrameSystemConfig& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.robot.v1.StopAllResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(FrameSystemConfig* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.FrameSystemConfig"; } protected: - explicit StopAllResponse(::google::protobuf::Arena* arena); - StopAllResponse(::google::protobuf::Arena* arena, const StopAllResponse& from); + explicit FrameSystemConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.robot.v1.StopAllResponse) + enum : int { + kFrameFieldNumber = 1, + kKinematicsFieldNumber = 2, + }; + // .viam.common.v1.Transform frame = 1 [json_name = "frame"]; + bool has_frame() const; + private: + bool _internal_has_frame() const; + public: + void clear_frame(); + const ::viam::common::v1::Transform& frame() const; + PROTOBUF_NODISCARD ::viam::common::v1::Transform* release_frame(); + ::viam::common::v1::Transform* mutable_frame(); + void set_allocated_frame(::viam::common::v1::Transform* frame); + private: + const ::viam::common::v1::Transform& _internal_frame() const; + ::viam::common::v1::Transform* _internal_mutable_frame(); + public: + void unsafe_arena_set_allocated_frame( + ::viam::common::v1::Transform* frame); + ::viam::common::v1::Transform* unsafe_arena_release_frame(); + + // .google.protobuf.Struct kinematics = 2 [json_name = "kinematics"]; + bool has_kinematics() const; + private: + bool _internal_has_kinematics() const; + public: + void clear_kinematics(); + const ::PROTOBUF_NAMESPACE_ID::Struct& kinematics() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_kinematics(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_kinematics(); + void set_allocated_kinematics(::PROTOBUF_NAMESPACE_ID::Struct* kinematics); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_kinematics() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_kinematics(); + public: + void unsafe_arena_set_allocated_kinematics( + ::PROTOBUF_NAMESPACE_ID::Struct* kinematics); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_kinematics(); + + // @@protoc_insertion_point(class_scope:viam.robot.v1.FrameSystemConfig) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::viam::common::v1::Transform* frame_; + ::PROTOBUF_NAMESPACE_ID::Struct* kinematics_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class StartSessionRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.StartSessionRequest) */ { +class FrameSystemConfigRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.FrameSystemConfigRequest) */ { public: - inline StartSessionRequest() : StartSessionRequest(nullptr) {} - ~StartSessionRequest() override; - template - explicit PROTOBUF_CONSTEXPR StartSessionRequest(::google::protobuf::internal::ConstantInitialized); + inline FrameSystemConfigRequest() : FrameSystemConfigRequest(nullptr) {} + ~FrameSystemConfigRequest() override; + explicit PROTOBUF_CONSTEXPR FrameSystemConfigRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline StartSessionRequest(const StartSessionRequest& from) - : StartSessionRequest(nullptr, from) {} - StartSessionRequest(StartSessionRequest&& from) noexcept - : StartSessionRequest() { + FrameSystemConfigRequest(const FrameSystemConfigRequest& from); + FrameSystemConfigRequest(FrameSystemConfigRequest&& from) noexcept + : FrameSystemConfigRequest() { *this = ::std::move(from); } - inline StartSessionRequest& operator=(const StartSessionRequest& from) { + inline FrameSystemConfigRequest& operator=(const FrameSystemConfigRequest& from) { CopyFrom(from); return *this; } - inline StartSessionRequest& operator=(StartSessionRequest&& from) noexcept { + inline FrameSystemConfigRequest& operator=(FrameSystemConfigRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -879,177 +888,968 @@ class StartSessionRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const StartSessionRequest& default_instance() { + static const FrameSystemConfigRequest& default_instance() { return *internal_default_instance(); } - static inline const StartSessionRequest* internal_default_instance() { - return reinterpret_cast( - &_StartSessionRequest_default_instance_); + static inline const FrameSystemConfigRequest* internal_default_instance() { + return reinterpret_cast( + &_FrameSystemConfigRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 35; + 3; - friend void swap(StartSessionRequest& a, StartSessionRequest& b) { + friend void swap(FrameSystemConfigRequest& a, FrameSystemConfigRequest& b) { a.Swap(&b); } - inline void Swap(StartSessionRequest* other) { + inline void Swap(FrameSystemConfigRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(StartSessionRequest* other) { + void UnsafeArenaSwap(FrameSystemConfigRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - StartSessionRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const StartSessionRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const StartSessionRequest& from) { - StartSessionRequest::MergeImpl(*this, from); + FrameSystemConfigRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const FrameSystemConfigRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const FrameSystemConfigRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(StartSessionRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(FrameSystemConfigRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.robot.v1.StartSessionRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.FrameSystemConfigRequest"; } protected: - explicit StartSessionRequest(::google::protobuf::Arena* arena); - StartSessionRequest(::google::protobuf::Arena* arena, const StartSessionRequest& from); + explicit FrameSystemConfigRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kResumeFieldNumber = 1, + kSupplementalTransformsFieldNumber = 1, }; - // string resume = 1 [json_name = "resume"]; - void clear_resume() ; - const std::string& resume() const; - template - void set_resume(Arg_&& arg, Args_... args); - std::string* mutable_resume(); - PROTOBUF_NODISCARD std::string* release_resume(); - void set_allocated_resume(std::string* value); - + // repeated .viam.common.v1.Transform supplemental_transforms = 1 [json_name = "supplementalTransforms"]; + int supplemental_transforms_size() const; private: - const std::string& _internal_resume() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_resume( - const std::string& value); - std::string* _internal_mutable_resume(); - + int _internal_supplemental_transforms_size() const; public: - // @@protoc_insertion_point(class_scope:viam.robot.v1.StartSessionRequest) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 48, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr resume_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER + void clear_supplemental_transforms(); + ::viam::common::v1::Transform* mutable_supplemental_transforms(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Transform >* + mutable_supplemental_transforms(); + private: + const ::viam::common::v1::Transform& _internal_supplemental_transforms(int index) const; + ::viam::common::v1::Transform* _internal_add_supplemental_transforms(); + public: + const ::viam::common::v1::Transform& supplemental_transforms(int index) const; + ::viam::common::v1::Transform* add_supplemental_transforms(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Transform >& + supplemental_transforms() const; + + // @@protoc_insertion_point(class_scope:viam.robot.v1.FrameSystemConfigRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Transform > supplemental_transforms_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class FrameSystemConfigResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.FrameSystemConfigResponse) */ { + public: + inline FrameSystemConfigResponse() : FrameSystemConfigResponse(nullptr) {} + ~FrameSystemConfigResponse() override; + explicit PROTOBUF_CONSTEXPR FrameSystemConfigResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + FrameSystemConfigResponse(const FrameSystemConfigResponse& from); + FrameSystemConfigResponse(FrameSystemConfigResponse&& from) noexcept + : FrameSystemConfigResponse() { + *this = ::std::move(from); + } + + inline FrameSystemConfigResponse& operator=(const FrameSystemConfigResponse& from) { + CopyFrom(from); + return *this; + } + inline FrameSystemConfigResponse& operator=(FrameSystemConfigResponse&& 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 FrameSystemConfigResponse& default_instance() { + return *internal_default_instance(); + } + static inline const FrameSystemConfigResponse* internal_default_instance() { + return reinterpret_cast( + &_FrameSystemConfigResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(FrameSystemConfigResponse& a, FrameSystemConfigResponse& b) { + a.Swap(&b); + } + inline void Swap(FrameSystemConfigResponse* 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(FrameSystemConfigResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + FrameSystemConfigResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const FrameSystemConfigResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const FrameSystemConfigResponse& 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(FrameSystemConfigResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.FrameSystemConfigResponse"; + } + protected: + explicit FrameSystemConfigResponse(::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 { + kFrameSystemConfigsFieldNumber = 1, + }; + // repeated .viam.robot.v1.FrameSystemConfig frame_system_configs = 1 [json_name = "frameSystemConfigs"]; + int frame_system_configs_size() const; + private: + int _internal_frame_system_configs_size() const; + public: + void clear_frame_system_configs(); + ::viam::robot::v1::FrameSystemConfig* mutable_frame_system_configs(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::FrameSystemConfig >* + mutable_frame_system_configs(); + private: + const ::viam::robot::v1::FrameSystemConfig& _internal_frame_system_configs(int index) const; + ::viam::robot::v1::FrameSystemConfig* _internal_add_frame_system_configs(); + public: + const ::viam::robot::v1::FrameSystemConfig& frame_system_configs(int index) const; + ::viam::robot::v1::FrameSystemConfig* add_frame_system_configs(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::FrameSystemConfig >& + frame_system_configs() const; + + // @@protoc_insertion_point(class_scope:viam.robot.v1.FrameSystemConfigResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::FrameSystemConfig > frame_system_configs_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class TransformPoseRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.TransformPoseRequest) */ { + public: + inline TransformPoseRequest() : TransformPoseRequest(nullptr) {} + ~TransformPoseRequest() override; + explicit PROTOBUF_CONSTEXPR TransformPoseRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + TransformPoseRequest(const TransformPoseRequest& from); + TransformPoseRequest(TransformPoseRequest&& from) noexcept + : TransformPoseRequest() { + *this = ::std::move(from); + } + + inline TransformPoseRequest& operator=(const TransformPoseRequest& from) { + CopyFrom(from); + return *this; + } + inline TransformPoseRequest& operator=(TransformPoseRequest&& 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 TransformPoseRequest& default_instance() { + return *internal_default_instance(); + } + static inline const TransformPoseRequest* internal_default_instance() { + return reinterpret_cast( + &_TransformPoseRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(TransformPoseRequest& a, TransformPoseRequest& b) { + a.Swap(&b); + } + inline void Swap(TransformPoseRequest* 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(TransformPoseRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + TransformPoseRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const TransformPoseRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const TransformPoseRequest& 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(TransformPoseRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.TransformPoseRequest"; + } + protected: + explicit TransformPoseRequest(::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 { + kSupplementalTransformsFieldNumber = 3, + kDestinationFieldNumber = 2, + kSourceFieldNumber = 1, + }; + // repeated .viam.common.v1.Transform supplemental_transforms = 3 [json_name = "supplementalTransforms"]; + int supplemental_transforms_size() const; + private: + int _internal_supplemental_transforms_size() const; + public: + void clear_supplemental_transforms(); + ::viam::common::v1::Transform* mutable_supplemental_transforms(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Transform >* + mutable_supplemental_transforms(); + private: + const ::viam::common::v1::Transform& _internal_supplemental_transforms(int index) const; + ::viam::common::v1::Transform* _internal_add_supplemental_transforms(); + public: + const ::viam::common::v1::Transform& supplemental_transforms(int index) const; + ::viam::common::v1::Transform* add_supplemental_transforms(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Transform >& + supplemental_transforms() const; + + // string destination = 2 [json_name = "destination"]; + void clear_destination(); + const std::string& destination() const; + template + void set_destination(ArgT0&& arg0, ArgT... args); + std::string* mutable_destination(); + PROTOBUF_NODISCARD std::string* release_destination(); + void set_allocated_destination(std::string* destination); + private: + const std::string& _internal_destination() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_destination(const std::string& value); + std::string* _internal_mutable_destination(); + public: + + // .viam.common.v1.PoseInFrame source = 1 [json_name = "source"]; + bool has_source() const; + private: + bool _internal_has_source() const; + public: + void clear_source(); + const ::viam::common::v1::PoseInFrame& source() const; + PROTOBUF_NODISCARD ::viam::common::v1::PoseInFrame* release_source(); + ::viam::common::v1::PoseInFrame* mutable_source(); + void set_allocated_source(::viam::common::v1::PoseInFrame* source); + private: + const ::viam::common::v1::PoseInFrame& _internal_source() const; + ::viam::common::v1::PoseInFrame* _internal_mutable_source(); + public: + void unsafe_arena_set_allocated_source( + ::viam::common::v1::PoseInFrame* source); + ::viam::common::v1::PoseInFrame* unsafe_arena_release_source(); + + // @@protoc_insertion_point(class_scope:viam.robot.v1.TransformPoseRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Transform > supplemental_transforms_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr destination_; + ::viam::common::v1::PoseInFrame* source_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class TransformPoseResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.TransformPoseResponse) */ { + public: + inline TransformPoseResponse() : TransformPoseResponse(nullptr) {} + ~TransformPoseResponse() override; + explicit PROTOBUF_CONSTEXPR TransformPoseResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + TransformPoseResponse(const TransformPoseResponse& from); + TransformPoseResponse(TransformPoseResponse&& from) noexcept + : TransformPoseResponse() { + *this = ::std::move(from); + } + + inline TransformPoseResponse& operator=(const TransformPoseResponse& from) { + CopyFrom(from); + return *this; + } + inline TransformPoseResponse& operator=(TransformPoseResponse&& 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 TransformPoseResponse& default_instance() { + return *internal_default_instance(); + } + static inline const TransformPoseResponse* internal_default_instance() { + return reinterpret_cast( + &_TransformPoseResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + friend void swap(TransformPoseResponse& a, TransformPoseResponse& b) { + a.Swap(&b); + } + inline void Swap(TransformPoseResponse* 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(TransformPoseResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + TransformPoseResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const TransformPoseResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const TransformPoseResponse& 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(TransformPoseResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.TransformPoseResponse"; + } + protected: + explicit TransformPoseResponse(::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 { + kPoseFieldNumber = 1, }; - union { Impl_ _impl_; }; + // .viam.common.v1.PoseInFrame pose = 1 [json_name = "pose"]; + bool has_pose() const; + private: + bool _internal_has_pose() const; + public: + void clear_pose(); + const ::viam::common::v1::PoseInFrame& pose() const; + PROTOBUF_NODISCARD ::viam::common::v1::PoseInFrame* release_pose(); + ::viam::common::v1::PoseInFrame* mutable_pose(); + void set_allocated_pose(::viam::common::v1::PoseInFrame* pose); + private: + const ::viam::common::v1::PoseInFrame& _internal_pose() const; + ::viam::common::v1::PoseInFrame* _internal_mutable_pose(); + public: + void unsafe_arena_set_allocated_pose( + ::viam::common::v1::PoseInFrame* pose); + ::viam::common::v1::PoseInFrame* unsafe_arena_release_pose(); + + // @@protoc_insertion_point(class_scope:viam.robot.v1.TransformPoseResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::viam::common::v1::PoseInFrame* pose_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ShutdownResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.robot.v1.ShutdownResponse) */ { +class TransformPCDRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.TransformPCDRequest) */ { public: - inline ShutdownResponse() : ShutdownResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR ShutdownResponse(::google::protobuf::internal::ConstantInitialized); + inline TransformPCDRequest() : TransformPCDRequest(nullptr) {} + ~TransformPCDRequest() override; + explicit PROTOBUF_CONSTEXPR TransformPCDRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + TransformPCDRequest(const TransformPCDRequest& from); + TransformPCDRequest(TransformPCDRequest&& from) noexcept + : TransformPCDRequest() { + *this = ::std::move(from); + } + + inline TransformPCDRequest& operator=(const TransformPCDRequest& from) { + CopyFrom(from); + return *this; + } + inline TransformPCDRequest& operator=(TransformPCDRequest&& 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 TransformPCDRequest& default_instance() { + return *internal_default_instance(); + } + static inline const TransformPCDRequest* internal_default_instance() { + return reinterpret_cast( + &_TransformPCDRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + friend void swap(TransformPCDRequest& a, TransformPCDRequest& b) { + a.Swap(&b); + } + inline void Swap(TransformPCDRequest* 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(TransformPCDRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + TransformPCDRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const TransformPCDRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const TransformPCDRequest& 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(TransformPCDRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.TransformPCDRequest"; + } + protected: + explicit TransformPCDRequest(::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 { + kPointCloudPcdFieldNumber = 1, + kSourceFieldNumber = 2, + kDestinationFieldNumber = 3, + }; + // bytes point_cloud_pcd = 1 [json_name = "pointCloudPcd"]; + void clear_point_cloud_pcd(); + const std::string& point_cloud_pcd() const; + template + void set_point_cloud_pcd(ArgT0&& arg0, ArgT... args); + std::string* mutable_point_cloud_pcd(); + PROTOBUF_NODISCARD std::string* release_point_cloud_pcd(); + void set_allocated_point_cloud_pcd(std::string* point_cloud_pcd); + private: + const std::string& _internal_point_cloud_pcd() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_point_cloud_pcd(const std::string& value); + std::string* _internal_mutable_point_cloud_pcd(); + public: + + // string source = 2 [json_name = "source"]; + void clear_source(); + const std::string& source() const; + template + void set_source(ArgT0&& arg0, ArgT... args); + std::string* mutable_source(); + PROTOBUF_NODISCARD std::string* release_source(); + void set_allocated_source(std::string* source); + private: + const std::string& _internal_source() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_source(const std::string& value); + std::string* _internal_mutable_source(); + public: + + // string destination = 3 [json_name = "destination"]; + void clear_destination(); + const std::string& destination() const; + template + void set_destination(ArgT0&& arg0, ArgT... args); + std::string* mutable_destination(); + PROTOBUF_NODISCARD std::string* release_destination(); + void set_allocated_destination(std::string* destination); + private: + const std::string& _internal_destination() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_destination(const std::string& value); + std::string* _internal_mutable_destination(); + public: + + // @@protoc_insertion_point(class_scope:viam.robot.v1.TransformPCDRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr point_cloud_pcd_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr source_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr destination_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class TransformPCDResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.TransformPCDResponse) */ { + public: + inline TransformPCDResponse() : TransformPCDResponse(nullptr) {} + ~TransformPCDResponse() override; + explicit PROTOBUF_CONSTEXPR TransformPCDResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + TransformPCDResponse(const TransformPCDResponse& from); + TransformPCDResponse(TransformPCDResponse&& from) noexcept + : TransformPCDResponse() { + *this = ::std::move(from); + } + + inline TransformPCDResponse& operator=(const TransformPCDResponse& from) { + CopyFrom(from); + return *this; + } + inline TransformPCDResponse& operator=(TransformPCDResponse&& 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 TransformPCDResponse& default_instance() { + return *internal_default_instance(); + } + static inline const TransformPCDResponse* internal_default_instance() { + return reinterpret_cast( + &_TransformPCDResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + friend void swap(TransformPCDResponse& a, TransformPCDResponse& b) { + a.Swap(&b); + } + inline void Swap(TransformPCDResponse* 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(TransformPCDResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + TransformPCDResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const TransformPCDResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const TransformPCDResponse& 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(TransformPCDResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.TransformPCDResponse"; + } + protected: + explicit TransformPCDResponse(::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 { + kPointCloudPcdFieldNumber = 1, + }; + // bytes point_cloud_pcd = 1 [json_name = "pointCloudPcd"]; + void clear_point_cloud_pcd(); + const std::string& point_cloud_pcd() const; + template + void set_point_cloud_pcd(ArgT0&& arg0, ArgT... args); + std::string* mutable_point_cloud_pcd(); + PROTOBUF_NODISCARD std::string* release_point_cloud_pcd(); + void set_allocated_point_cloud_pcd(std::string* point_cloud_pcd); + private: + const std::string& _internal_point_cloud_pcd() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_point_cloud_pcd(const std::string& value); + std::string* _internal_mutable_point_cloud_pcd(); + public: + + // @@protoc_insertion_point(class_scope:viam.robot.v1.TransformPCDResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr point_cloud_pcd_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + +class ResourceNamesRequest final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.robot.v1.ResourceNamesRequest) */ { + public: + inline ResourceNamesRequest() : ResourceNamesRequest(nullptr) {} + explicit PROTOBUF_CONSTEXPR ResourceNamesRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ShutdownResponse(const ShutdownResponse& from) - : ShutdownResponse(nullptr, from) {} - ShutdownResponse(ShutdownResponse&& from) noexcept - : ShutdownResponse() { + ResourceNamesRequest(const ResourceNamesRequest& from); + ResourceNamesRequest(ResourceNamesRequest&& from) noexcept + : ResourceNamesRequest() { *this = ::std::move(from); } - inline ShutdownResponse& operator=(const ShutdownResponse& from) { + inline ResourceNamesRequest& operator=(const ResourceNamesRequest& from) { CopyFrom(from); return *this; } - inline ShutdownResponse& operator=(ShutdownResponse&& from) noexcept { + inline ResourceNamesRequest& operator=(ResourceNamesRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1059,133 +1859,114 @@ class ShutdownResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ShutdownResponse& default_instance() { + static const ResourceNamesRequest& default_instance() { return *internal_default_instance(); } - static inline const ShutdownResponse* internal_default_instance() { - return reinterpret_cast( - &_ShutdownResponse_default_instance_); + static inline const ResourceNamesRequest* internal_default_instance() { + return reinterpret_cast( + &_ResourceNamesRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 46; + 9; - friend void swap(ShutdownResponse& a, ShutdownResponse& b) { + friend void swap(ResourceNamesRequest& a, ResourceNamesRequest& b) { a.Swap(&b); } - inline void Swap(ShutdownResponse* other) { + inline void Swap(ResourceNamesRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ShutdownResponse* other) { + void UnsafeArenaSwap(ResourceNamesRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ShutdownResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ResourceNamesRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const ShutdownResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const ResourceNamesRequest& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const ShutdownResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const ResourceNamesRequest& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } public: private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.robot.v1.ShutdownResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.ResourceNamesRequest"; } protected: - explicit ShutdownResponse(::google::protobuf::Arena* arena); - ShutdownResponse(::google::protobuf::Arena* arena, const ShutdownResponse& from); + explicit ResourceNamesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.robot.v1.ShutdownResponse) + // @@protoc_insertion_point(class_scope:viam.robot.v1.ResourceNamesRequest) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ShutdownRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.robot.v1.ShutdownRequest) */ { +class ResourceNamesResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.ResourceNamesResponse) */ { public: - inline ShutdownRequest() : ShutdownRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR ShutdownRequest(::google::protobuf::internal::ConstantInitialized); + inline ResourceNamesResponse() : ResourceNamesResponse(nullptr) {} + ~ResourceNamesResponse() override; + explicit PROTOBUF_CONSTEXPR ResourceNamesResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ShutdownRequest(const ShutdownRequest& from) - : ShutdownRequest(nullptr, from) {} - ShutdownRequest(ShutdownRequest&& from) noexcept - : ShutdownRequest() { + ResourceNamesResponse(const ResourceNamesResponse& from); + ResourceNamesResponse(ResourceNamesResponse&& from) noexcept + : ResourceNamesResponse() { *this = ::std::move(from); } - inline ShutdownRequest& operator=(const ShutdownRequest& from) { + inline ResourceNamesResponse& operator=(const ResourceNamesResponse& from) { CopyFrom(from); return *this; } - inline ShutdownRequest& operator=(ShutdownRequest&& from) noexcept { + inline ResourceNamesResponse& operator=(ResourceNamesResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1195,133 +1976,149 @@ class ShutdownRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ShutdownRequest& default_instance() { + static const ResourceNamesResponse& default_instance() { return *internal_default_instance(); } - static inline const ShutdownRequest* internal_default_instance() { - return reinterpret_cast( - &_ShutdownRequest_default_instance_); + static inline const ResourceNamesResponse* internal_default_instance() { + return reinterpret_cast( + &_ResourceNamesResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 45; + 10; - friend void swap(ShutdownRequest& a, ShutdownRequest& b) { + friend void swap(ResourceNamesResponse& a, ResourceNamesResponse& b) { a.Swap(&b); } - inline void Swap(ShutdownRequest* other) { + inline void Swap(ResourceNamesResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ShutdownRequest* other) { + void UnsafeArenaSwap(ResourceNamesResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ShutdownRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const ShutdownRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const ShutdownRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + ResourceNamesResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ResourceNamesResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ResourceNamesResponse& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.robot.v1.ShutdownRequest"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ResourceNamesResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.ResourceNamesResponse"; } protected: - explicit ShutdownRequest(::google::protobuf::Arena* arena); - ShutdownRequest(::google::protobuf::Arena* arena, const ShutdownRequest& from); + explicit ResourceNamesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.robot.v1.ShutdownRequest) + enum : int { + kResourcesFieldNumber = 1, + }; + // repeated .viam.common.v1.ResourceName resources = 1 [json_name = "resources"]; + int resources_size() const; + private: + int _internal_resources_size() const; + public: + void clear_resources(); + ::viam::common::v1::ResourceName* mutable_resources(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::ResourceName >* + mutable_resources(); + private: + const ::viam::common::v1::ResourceName& _internal_resources(int index) const; + ::viam::common::v1::ResourceName* _internal_add_resources(); + public: + const ::viam::common::v1::ResourceName& resources(int index) const; + ::viam::common::v1::ResourceName* add_resources(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::ResourceName >& + resources() const; + + // @@protoc_insertion_point(class_scope:viam.robot.v1.ResourceNamesResponse) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::ResourceName > resources_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SendSessionHeartbeatResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.robot.v1.SendSessionHeartbeatResponse) */ { +class ResourceRPCSubtype final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.ResourceRPCSubtype) */ { public: - inline SendSessionHeartbeatResponse() : SendSessionHeartbeatResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR SendSessionHeartbeatResponse(::google::protobuf::internal::ConstantInitialized); + inline ResourceRPCSubtype() : ResourceRPCSubtype(nullptr) {} + ~ResourceRPCSubtype() override; + explicit PROTOBUF_CONSTEXPR ResourceRPCSubtype(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline SendSessionHeartbeatResponse(const SendSessionHeartbeatResponse& from) - : SendSessionHeartbeatResponse(nullptr, from) {} - SendSessionHeartbeatResponse(SendSessionHeartbeatResponse&& from) noexcept - : SendSessionHeartbeatResponse() { + ResourceRPCSubtype(const ResourceRPCSubtype& from); + ResourceRPCSubtype(ResourceRPCSubtype&& from) noexcept + : ResourceRPCSubtype() { *this = ::std::move(from); } - inline SendSessionHeartbeatResponse& operator=(const SendSessionHeartbeatResponse& from) { + inline ResourceRPCSubtype& operator=(const ResourceRPCSubtype& from) { CopyFrom(from); return *this; } - inline SendSessionHeartbeatResponse& operator=(SendSessionHeartbeatResponse&& from) noexcept { + inline ResourceRPCSubtype& operator=(ResourceRPCSubtype&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1331,134 +2128,164 @@ class SendSessionHeartbeatResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SendSessionHeartbeatResponse& default_instance() { + static const ResourceRPCSubtype& default_instance() { return *internal_default_instance(); } - static inline const SendSessionHeartbeatResponse* internal_default_instance() { - return reinterpret_cast( - &_SendSessionHeartbeatResponse_default_instance_); + static inline const ResourceRPCSubtype* internal_default_instance() { + return reinterpret_cast( + &_ResourceRPCSubtype_default_instance_); } static constexpr int kIndexInFileMessages = - 38; + 11; - friend void swap(SendSessionHeartbeatResponse& a, SendSessionHeartbeatResponse& b) { + friend void swap(ResourceRPCSubtype& a, ResourceRPCSubtype& b) { a.Swap(&b); } - inline void Swap(SendSessionHeartbeatResponse* other) { + inline void Swap(ResourceRPCSubtype* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SendSessionHeartbeatResponse* other) { + void UnsafeArenaSwap(ResourceRPCSubtype* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SendSessionHeartbeatResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const SendSessionHeartbeatResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const SendSessionHeartbeatResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + ResourceRPCSubtype* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ResourceRPCSubtype& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ResourceRPCSubtype& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.robot.v1.SendSessionHeartbeatResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ResourceRPCSubtype* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.ResourceRPCSubtype"; } protected: - explicit SendSessionHeartbeatResponse(::google::protobuf::Arena* arena); - SendSessionHeartbeatResponse(::google::protobuf::Arena* arena, const SendSessionHeartbeatResponse& from); + explicit ResourceRPCSubtype(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.robot.v1.SendSessionHeartbeatResponse) + enum : int { + kProtoServiceFieldNumber = 2, + kSubtypeFieldNumber = 1, + }; + // string proto_service = 2 [json_name = "protoService"]; + void clear_proto_service(); + const std::string& proto_service() const; + template + void set_proto_service(ArgT0&& arg0, ArgT... args); + std::string* mutable_proto_service(); + PROTOBUF_NODISCARD std::string* release_proto_service(); + void set_allocated_proto_service(std::string* proto_service); + private: + const std::string& _internal_proto_service() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_proto_service(const std::string& value); + std::string* _internal_mutable_proto_service(); + public: + + // .viam.common.v1.ResourceName subtype = 1 [json_name = "subtype"]; + bool has_subtype() const; + private: + bool _internal_has_subtype() const; + public: + void clear_subtype(); + const ::viam::common::v1::ResourceName& subtype() const; + PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_subtype(); + ::viam::common::v1::ResourceName* mutable_subtype(); + void set_allocated_subtype(::viam::common::v1::ResourceName* subtype); + private: + const ::viam::common::v1::ResourceName& _internal_subtype() const; + ::viam::common::v1::ResourceName* _internal_mutable_subtype(); + public: + void unsafe_arena_set_allocated_subtype( + ::viam::common::v1::ResourceName* subtype); + ::viam::common::v1::ResourceName* unsafe_arena_release_subtype(); + + // @@protoc_insertion_point(class_scope:viam.robot.v1.ResourceRPCSubtype) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr proto_service_; + ::viam::common::v1::ResourceName* subtype_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SendSessionHeartbeatRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.SendSessionHeartbeatRequest) */ { +class ResourceRPCSubtypesRequest final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.robot.v1.ResourceRPCSubtypesRequest) */ { public: - inline SendSessionHeartbeatRequest() : SendSessionHeartbeatRequest(nullptr) {} - ~SendSessionHeartbeatRequest() override; - template - explicit PROTOBUF_CONSTEXPR SendSessionHeartbeatRequest(::google::protobuf::internal::ConstantInitialized); + inline ResourceRPCSubtypesRequest() : ResourceRPCSubtypesRequest(nullptr) {} + explicit PROTOBUF_CONSTEXPR ResourceRPCSubtypesRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline SendSessionHeartbeatRequest(const SendSessionHeartbeatRequest& from) - : SendSessionHeartbeatRequest(nullptr, from) {} - SendSessionHeartbeatRequest(SendSessionHeartbeatRequest&& from) noexcept - : SendSessionHeartbeatRequest() { + ResourceRPCSubtypesRequest(const ResourceRPCSubtypesRequest& from); + ResourceRPCSubtypesRequest(ResourceRPCSubtypesRequest&& from) noexcept + : ResourceRPCSubtypesRequest() { *this = ::std::move(from); } - inline SendSessionHeartbeatRequest& operator=(const SendSessionHeartbeatRequest& from) { + inline ResourceRPCSubtypesRequest& operator=(const ResourceRPCSubtypesRequest& from) { CopyFrom(from); return *this; } - inline SendSessionHeartbeatRequest& operator=(SendSessionHeartbeatRequest&& from) noexcept { + inline ResourceRPCSubtypesRequest& operator=(ResourceRPCSubtypesRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1468,177 +2295,114 @@ class SendSessionHeartbeatRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SendSessionHeartbeatRequest& default_instance() { + static const ResourceRPCSubtypesRequest& default_instance() { return *internal_default_instance(); } - static inline const SendSessionHeartbeatRequest* internal_default_instance() { - return reinterpret_cast( - &_SendSessionHeartbeatRequest_default_instance_); + static inline const ResourceRPCSubtypesRequest* internal_default_instance() { + return reinterpret_cast( + &_ResourceRPCSubtypesRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 37; + 12; - friend void swap(SendSessionHeartbeatRequest& a, SendSessionHeartbeatRequest& b) { + friend void swap(ResourceRPCSubtypesRequest& a, ResourceRPCSubtypesRequest& b) { a.Swap(&b); } - inline void Swap(SendSessionHeartbeatRequest* other) { + inline void Swap(ResourceRPCSubtypesRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SendSessionHeartbeatRequest* other) { + void UnsafeArenaSwap(ResourceRPCSubtypesRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SendSessionHeartbeatRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ResourceRPCSubtypesRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SendSessionHeartbeatRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SendSessionHeartbeatRequest& from) { - SendSessionHeartbeatRequest::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const ResourceRPCSubtypesRequest& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const ResourceRPCSubtypesRequest& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SendSessionHeartbeatRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.robot.v1.SendSessionHeartbeatRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.ResourceRPCSubtypesRequest"; } protected: - explicit SendSessionHeartbeatRequest(::google::protobuf::Arena* arena); - SendSessionHeartbeatRequest(::google::protobuf::Arena* arena, const SendSessionHeartbeatRequest& from); + explicit ResourceRPCSubtypesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - // accessors ------------------------------------------------------- + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - enum : int { - kIdFieldNumber = 1, - }; - // string id = 1 [json_name = "id"]; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); + // nested types ---------------------------------------------------- - private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); + // accessors ------------------------------------------------------- - public: - // @@protoc_insertion_point(class_scope:viam.robot.v1.SendSessionHeartbeatRequest) + // @@protoc_insertion_point(class_scope:viam.robot.v1.ResourceRPCSubtypesRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 52, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class RestartModuleResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.robot.v1.RestartModuleResponse) */ { +class ResourceRPCSubtypesResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.ResourceRPCSubtypesResponse) */ { public: - inline RestartModuleResponse() : RestartModuleResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR RestartModuleResponse(::google::protobuf::internal::ConstantInitialized); + inline ResourceRPCSubtypesResponse() : ResourceRPCSubtypesResponse(nullptr) {} + ~ResourceRPCSubtypesResponse() override; + explicit PROTOBUF_CONSTEXPR ResourceRPCSubtypesResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline RestartModuleResponse(const RestartModuleResponse& from) - : RestartModuleResponse(nullptr, from) {} - RestartModuleResponse(RestartModuleResponse&& from) noexcept - : RestartModuleResponse() { + ResourceRPCSubtypesResponse(const ResourceRPCSubtypesResponse& from); + ResourceRPCSubtypesResponse(ResourceRPCSubtypesResponse&& from) noexcept + : ResourceRPCSubtypesResponse() { *this = ::std::move(from); } - inline RestartModuleResponse& operator=(const RestartModuleResponse& from) { + inline ResourceRPCSubtypesResponse& operator=(const ResourceRPCSubtypesResponse& from) { CopyFrom(from); return *this; } - inline RestartModuleResponse& operator=(RestartModuleResponse&& from) noexcept { + inline ResourceRPCSubtypesResponse& operator=(ResourceRPCSubtypesResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1648,134 +2412,149 @@ class RestartModuleResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const RestartModuleResponse& default_instance() { + static const ResourceRPCSubtypesResponse& default_instance() { return *internal_default_instance(); } - static inline const RestartModuleResponse* internal_default_instance() { - return reinterpret_cast( - &_RestartModuleResponse_default_instance_); + static inline const ResourceRPCSubtypesResponse* internal_default_instance() { + return reinterpret_cast( + &_ResourceRPCSubtypesResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 44; + 13; - friend void swap(RestartModuleResponse& a, RestartModuleResponse& b) { + friend void swap(ResourceRPCSubtypesResponse& a, ResourceRPCSubtypesResponse& b) { a.Swap(&b); } - inline void Swap(RestartModuleResponse* other) { + inline void Swap(ResourceRPCSubtypesResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RestartModuleResponse* other) { + void UnsafeArenaSwap(ResourceRPCSubtypesResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - RestartModuleResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const RestartModuleResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const RestartModuleResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + ResourceRPCSubtypesResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ResourceRPCSubtypesResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ResourceRPCSubtypesResponse& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.robot.v1.RestartModuleResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ResourceRPCSubtypesResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.ResourceRPCSubtypesResponse"; } protected: - explicit RestartModuleResponse(::google::protobuf::Arena* arena); - RestartModuleResponse(::google::protobuf::Arena* arena, const RestartModuleResponse& from); + explicit ResourceRPCSubtypesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.robot.v1.RestartModuleResponse) + enum : int { + kResourceRpcSubtypesFieldNumber = 1, + }; + // repeated .viam.robot.v1.ResourceRPCSubtype resource_rpc_subtypes = 1 [json_name = "resourceRpcSubtypes"]; + int resource_rpc_subtypes_size() const; + private: + int _internal_resource_rpc_subtypes_size() const; + public: + void clear_resource_rpc_subtypes(); + ::viam::robot::v1::ResourceRPCSubtype* mutable_resource_rpc_subtypes(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::ResourceRPCSubtype >* + mutable_resource_rpc_subtypes(); + private: + const ::viam::robot::v1::ResourceRPCSubtype& _internal_resource_rpc_subtypes(int index) const; + ::viam::robot::v1::ResourceRPCSubtype* _internal_add_resource_rpc_subtypes(); + public: + const ::viam::robot::v1::ResourceRPCSubtype& resource_rpc_subtypes(int index) const; + ::viam::robot::v1::ResourceRPCSubtype* add_resource_rpc_subtypes(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::ResourceRPCSubtype >& + resource_rpc_subtypes() const; + + // @@protoc_insertion_point(class_scope:viam.robot.v1.ResourceRPCSubtypesResponse) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::ResourceRPCSubtype > resource_rpc_subtypes_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class RestartModuleRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.RestartModuleRequest) */ { +class Operation final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.Operation) */ { public: - inline RestartModuleRequest() : RestartModuleRequest(nullptr) {} - ~RestartModuleRequest() override; - template - explicit PROTOBUF_CONSTEXPR RestartModuleRequest(::google::protobuf::internal::ConstantInitialized); + inline Operation() : Operation(nullptr) {} + ~Operation() override; + explicit PROTOBUF_CONSTEXPR Operation(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline RestartModuleRequest(const RestartModuleRequest& from) - : RestartModuleRequest(nullptr, from) {} - RestartModuleRequest(RestartModuleRequest&& from) noexcept - : RestartModuleRequest() { + Operation(const Operation& from); + Operation(Operation&& from) noexcept + : Operation() { *this = ::std::move(from); } - inline RestartModuleRequest& operator=(const RestartModuleRequest& from) { + inline Operation& operator=(const Operation& from) { CopyFrom(from); return *this; } - inline RestartModuleRequest& operator=(RestartModuleRequest&& from) noexcept { + inline Operation& operator=(Operation&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1785,216 +2564,221 @@ class RestartModuleRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const RestartModuleRequest& default_instance() { + static const Operation& default_instance() { return *internal_default_instance(); } - enum IdOrNameCase { - kModuleId = 1, - kModuleName = 2, - ID_OR_NAME_NOT_SET = 0, - }; - - static inline const RestartModuleRequest* internal_default_instance() { - return reinterpret_cast( - &_RestartModuleRequest_default_instance_); + static inline const Operation* internal_default_instance() { + return reinterpret_cast( + &_Operation_default_instance_); } static constexpr int kIndexInFileMessages = - 43; + 14; - friend void swap(RestartModuleRequest& a, RestartModuleRequest& b) { + friend void swap(Operation& a, Operation& b) { a.Swap(&b); } - inline void Swap(RestartModuleRequest* other) { + inline void Swap(Operation* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RestartModuleRequest* other) { + void UnsafeArenaSwap(Operation* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - RestartModuleRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const RestartModuleRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const RestartModuleRequest& from) { - RestartModuleRequest::MergeImpl(*this, from); + Operation* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Operation& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Operation& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(RestartModuleRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(Operation* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.robot.v1.RestartModuleRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.Operation"; } protected: - explicit RestartModuleRequest(::google::protobuf::Arena* arena); - RestartModuleRequest(::google::protobuf::Arena* arena, const RestartModuleRequest& from); + explicit Operation(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kModuleIdFieldNumber = 1, - kModuleNameFieldNumber = 2, + kIdFieldNumber = 1, + kMethodFieldNumber = 2, + kSessionIdFieldNumber = 5, + kArgumentsFieldNumber = 3, + kStartedFieldNumber = 4, }; - // string module_id = 1 [json_name = "moduleId"]; - bool has_module_id() const; - void clear_module_id() ; - const std::string& module_id() const; - template - void set_module_id(Arg_&& arg, Args_... args); - std::string* mutable_module_id(); - PROTOBUF_NODISCARD std::string* release_module_id(); - void set_allocated_module_id(std::string* value); + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + // string method = 2 [json_name = "method"]; + void clear_method(); + const std::string& method() const; + template + void set_method(ArgT0&& arg0, ArgT... args); + std::string* mutable_method(); + PROTOBUF_NODISCARD std::string* release_method(); + void set_allocated_method(std::string* method); 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(); + const std::string& _internal_method() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_method(const std::string& value); + std::string* _internal_mutable_method(); + public: + // optional string session_id = 5 [json_name = "sessionId"]; + bool has_session_id() const; + private: + bool _internal_has_session_id() const; + public: + void clear_session_id(); + const std::string& session_id() const; + template + void set_session_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_session_id(); + PROTOBUF_NODISCARD std::string* release_session_id(); + void set_allocated_session_id(std::string* session_id); + private: + const std::string& _internal_session_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_session_id(const std::string& value); + std::string* _internal_mutable_session_id(); public: - // string module_name = 2 [json_name = "moduleName"]; - bool has_module_name() const; - void clear_module_name() ; - const std::string& module_name() const; - template - void set_module_name(Arg_&& arg, Args_... args); - std::string* mutable_module_name(); - PROTOBUF_NODISCARD std::string* release_module_name(); - void set_allocated_module_name(std::string* value); + // .google.protobuf.Struct arguments = 3 [json_name = "arguments"]; + bool has_arguments() const; private: - const std::string& _internal_module_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_module_name( - const std::string& value); - std::string* _internal_mutable_module_name(); + bool _internal_has_arguments() const; + public: + void clear_arguments(); + const ::PROTOBUF_NAMESPACE_ID::Struct& arguments() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_arguments(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_arguments(); + void set_allocated_arguments(::PROTOBUF_NAMESPACE_ID::Struct* arguments); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_arguments() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_arguments(); + public: + void unsafe_arena_set_allocated_arguments( + ::PROTOBUF_NAMESPACE_ID::Struct* arguments); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_arguments(); + // .google.protobuf.Timestamp started = 4 [json_name = "started"]; + bool has_started() const; + private: + bool _internal_has_started() const; public: - void clear_id_or_name(); - IdOrNameCase id_or_name_case() const; - // @@protoc_insertion_point(class_scope:viam.robot.v1.RestartModuleRequest) + void clear_started(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& started() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_started(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_started(); + void set_allocated_started(::PROTOBUF_NAMESPACE_ID::Timestamp* started); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_started() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_started(); + public: + void unsafe_arena_set_allocated_started( + ::PROTOBUF_NAMESPACE_ID::Timestamp* started); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_started(); + + // @@protoc_insertion_point(class_scope:viam.robot.v1.Operation) private: class _Internal; - void set_has_module_id(); - void set_has_module_name(); - - inline bool has_id_or_name() const; - inline void clear_has_id_or_name(); - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 2, 0, - 63, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - union IdOrNameUnion { - constexpr IdOrNameUnion() : _constinit_{} {} - ::google::protobuf::internal::ConstantInitialized _constinit_; - ::google::protobuf::internal::ArenaStringPtr module_id_; - ::google::protobuf::internal::ArenaStringPtr module_name_; - } id_or_name_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t _oneof_case_[1]; - - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr method_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr session_id_; + ::PROTOBUF_NAMESPACE_ID::Struct* arguments_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* started_; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ResourceRPCSubtypesRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.robot.v1.ResourceRPCSubtypesRequest) */ { +class GetOperationsRequest final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.robot.v1.GetOperationsRequest) */ { public: - inline ResourceRPCSubtypesRequest() : ResourceRPCSubtypesRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR ResourceRPCSubtypesRequest(::google::protobuf::internal::ConstantInitialized); + inline GetOperationsRequest() : GetOperationsRequest(nullptr) {} + explicit PROTOBUF_CONSTEXPR GetOperationsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ResourceRPCSubtypesRequest(const ResourceRPCSubtypesRequest& from) - : ResourceRPCSubtypesRequest(nullptr, from) {} - ResourceRPCSubtypesRequest(ResourceRPCSubtypesRequest&& from) noexcept - : ResourceRPCSubtypesRequest() { + GetOperationsRequest(const GetOperationsRequest& from); + GetOperationsRequest(GetOperationsRequest&& from) noexcept + : GetOperationsRequest() { *this = ::std::move(from); } - inline ResourceRPCSubtypesRequest& operator=(const ResourceRPCSubtypesRequest& from) { + inline GetOperationsRequest& operator=(const GetOperationsRequest& from) { CopyFrom(from); return *this; } - inline ResourceRPCSubtypesRequest& operator=(ResourceRPCSubtypesRequest&& from) noexcept { + inline GetOperationsRequest& operator=(GetOperationsRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2004,133 +2788,114 @@ class ResourceRPCSubtypesRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ResourceRPCSubtypesRequest& default_instance() { + static const GetOperationsRequest& default_instance() { return *internal_default_instance(); } - static inline const ResourceRPCSubtypesRequest* internal_default_instance() { - return reinterpret_cast( - &_ResourceRPCSubtypesRequest_default_instance_); + static inline const GetOperationsRequest* internal_default_instance() { + return reinterpret_cast( + &_GetOperationsRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 10; + 15; - friend void swap(ResourceRPCSubtypesRequest& a, ResourceRPCSubtypesRequest& b) { + friend void swap(GetOperationsRequest& a, GetOperationsRequest& b) { a.Swap(&b); } - inline void Swap(ResourceRPCSubtypesRequest* other) { + inline void Swap(GetOperationsRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ResourceRPCSubtypesRequest* other) { + void UnsafeArenaSwap(GetOperationsRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ResourceRPCSubtypesRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + GetOperationsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const ResourceRPCSubtypesRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const GetOperationsRequest& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const ResourceRPCSubtypesRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const GetOperationsRequest& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } public: private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.robot.v1.ResourceRPCSubtypesRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.GetOperationsRequest"; } protected: - explicit ResourceRPCSubtypesRequest(::google::protobuf::Arena* arena); - ResourceRPCSubtypesRequest(::google::protobuf::Arena* arena, const ResourceRPCSubtypesRequest& from); + explicit GetOperationsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.robot.v1.ResourceRPCSubtypesRequest) + // @@protoc_insertion_point(class_scope:viam.robot.v1.GetOperationsRequest) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ResourceNamesRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.robot.v1.ResourceNamesRequest) */ { +class GetOperationsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.GetOperationsResponse) */ { public: - inline ResourceNamesRequest() : ResourceNamesRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR ResourceNamesRequest(::google::protobuf::internal::ConstantInitialized); + inline GetOperationsResponse() : GetOperationsResponse(nullptr) {} + ~GetOperationsResponse() override; + explicit PROTOBUF_CONSTEXPR GetOperationsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ResourceNamesRequest(const ResourceNamesRequest& from) - : ResourceNamesRequest(nullptr, from) {} - ResourceNamesRequest(ResourceNamesRequest&& from) noexcept - : ResourceNamesRequest() { + GetOperationsResponse(const GetOperationsResponse& from); + GetOperationsResponse(GetOperationsResponse&& from) noexcept + : GetOperationsResponse() { *this = ::std::move(from); } - inline ResourceNamesRequest& operator=(const ResourceNamesRequest& from) { + inline GetOperationsResponse& operator=(const GetOperationsResponse& from) { CopyFrom(from); return *this; } - inline ResourceNamesRequest& operator=(ResourceNamesRequest&& from) noexcept { + inline GetOperationsResponse& operator=(GetOperationsResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2140,134 +2905,149 @@ class ResourceNamesRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ResourceNamesRequest& default_instance() { + static const GetOperationsResponse& default_instance() { return *internal_default_instance(); } - static inline const ResourceNamesRequest* internal_default_instance() { - return reinterpret_cast( - &_ResourceNamesRequest_default_instance_); + static inline const GetOperationsResponse* internal_default_instance() { + return reinterpret_cast( + &_GetOperationsResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 7; + 16; - friend void swap(ResourceNamesRequest& a, ResourceNamesRequest& b) { + friend void swap(GetOperationsResponse& a, GetOperationsResponse& b) { a.Swap(&b); } - inline void Swap(ResourceNamesRequest* other) { + inline void Swap(GetOperationsResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ResourceNamesRequest* other) { + void UnsafeArenaSwap(GetOperationsResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ResourceNamesRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const ResourceNamesRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const ResourceNamesRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + GetOperationsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetOperationsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetOperationsResponse& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.robot.v1.ResourceNamesRequest"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetOperationsResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.GetOperationsResponse"; } protected: - explicit ResourceNamesRequest(::google::protobuf::Arena* arena); - ResourceNamesRequest(::google::protobuf::Arena* arena, const ResourceNamesRequest& from); + explicit GetOperationsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.robot.v1.ResourceNamesRequest) + enum : int { + kOperationsFieldNumber = 1, + }; + // repeated .viam.robot.v1.Operation operations = 1 [json_name = "operations"]; + int operations_size() const; + private: + int _internal_operations_size() const; + public: + void clear_operations(); + ::viam::robot::v1::Operation* mutable_operations(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::Operation >* + mutable_operations(); + private: + const ::viam::robot::v1::Operation& _internal_operations(int index) const; + ::viam::robot::v1::Operation* _internal_add_operations(); + public: + const ::viam::robot::v1::Operation& operations(int index) const; + ::viam::robot::v1::Operation* add_operations(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::Operation >& + operations() const; + + // @@protoc_insertion_point(class_scope:viam.robot.v1.GetOperationsResponse) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::Operation > operations_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class PeerConnectionInfo final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.PeerConnectionInfo) */ { +class CancelOperationRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.CancelOperationRequest) */ { public: - inline PeerConnectionInfo() : PeerConnectionInfo(nullptr) {} - ~PeerConnectionInfo() override; - template - explicit PROTOBUF_CONSTEXPR PeerConnectionInfo(::google::protobuf::internal::ConstantInitialized); + inline CancelOperationRequest() : CancelOperationRequest(nullptr) {} + ~CancelOperationRequest() override; + explicit PROTOBUF_CONSTEXPR CancelOperationRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline PeerConnectionInfo(const PeerConnectionInfo& from) - : PeerConnectionInfo(nullptr, from) {} - PeerConnectionInfo(PeerConnectionInfo&& from) noexcept - : PeerConnectionInfo() { + CancelOperationRequest(const CancelOperationRequest& from); + CancelOperationRequest(CancelOperationRequest&& from) noexcept + : CancelOperationRequest() { *this = ::std::move(from); } - inline PeerConnectionInfo& operator=(const PeerConnectionInfo& from) { + inline CancelOperationRequest& operator=(const CancelOperationRequest& from) { CopyFrom(from); return *this; } - inline PeerConnectionInfo& operator=(PeerConnectionInfo&& from) noexcept { + inline CancelOperationRequest& operator=(CancelOperationRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2277,210 +3057,144 @@ class PeerConnectionInfo final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const PeerConnectionInfo& default_instance() { + static const CancelOperationRequest& default_instance() { return *internal_default_instance(); } - static inline const PeerConnectionInfo* internal_default_instance() { - return reinterpret_cast( - &_PeerConnectionInfo_default_instance_); + static inline const CancelOperationRequest* internal_default_instance() { + return reinterpret_cast( + &_CancelOperationRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 19; + 17; - friend void swap(PeerConnectionInfo& a, PeerConnectionInfo& b) { + friend void swap(CancelOperationRequest& a, CancelOperationRequest& b) { a.Swap(&b); } - inline void Swap(PeerConnectionInfo* other) { + inline void Swap(CancelOperationRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(PeerConnectionInfo* other) { + void UnsafeArenaSwap(CancelOperationRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - PeerConnectionInfo* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const PeerConnectionInfo& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const PeerConnectionInfo& from) { - PeerConnectionInfo::MergeImpl(*this, from); + CancelOperationRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CancelOperationRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CancelOperationRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(PeerConnectionInfo* other); + void SetCachedSize(int size) const final; + void InternalSwap(CancelOperationRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.robot.v1.PeerConnectionInfo"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.CancelOperationRequest"; } protected: - explicit PeerConnectionInfo(::google::protobuf::Arena* arena); - PeerConnectionInfo(::google::protobuf::Arena* arena, const PeerConnectionInfo& from); + explicit CancelOperationRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kRemoteAddressFieldNumber = 2, - kLocalAddressFieldNumber = 3, - kTypeFieldNumber = 1, + kIdFieldNumber = 1, }; - // optional string remote_address = 2 [json_name = "remoteAddress"]; - bool has_remote_address() const; - void clear_remote_address() ; - const std::string& remote_address() const; - template - void set_remote_address(Arg_&& arg, Args_... args); - std::string* mutable_remote_address(); - PROTOBUF_NODISCARD std::string* release_remote_address(); - void set_allocated_remote_address(std::string* value); - - private: - const std::string& _internal_remote_address() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_remote_address( - const std::string& value); - std::string* _internal_mutable_remote_address(); - - public: - // optional string local_address = 3 [json_name = "localAddress"]; - bool has_local_address() const; - void clear_local_address() ; - const std::string& local_address() const; - template - void set_local_address(Arg_&& arg, Args_... args); - std::string* mutable_local_address(); - PROTOBUF_NODISCARD std::string* release_local_address(); - void set_allocated_local_address(std::string* value); - + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); private: - const std::string& _internal_local_address() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_local_address( - const std::string& value); - std::string* _internal_mutable_local_address(); - + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); public: - // .viam.robot.v1.PeerConnectionType type = 1 [json_name = "type"]; - void clear_type() ; - ::viam::robot::v1::PeerConnectionType type() const; - void set_type(::viam::robot::v1::PeerConnectionType value); - - private: - ::viam::robot::v1::PeerConnectionType _internal_type() const; - void _internal_set_type(::viam::robot::v1::PeerConnectionType value); - public: - // @@protoc_insertion_point(class_scope:viam.robot.v1.PeerConnectionInfo) + // @@protoc_insertion_point(class_scope:viam.robot.v1.CancelOperationRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 0, - 68, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr remote_address_; - ::google::protobuf::internal::ArenaStringPtr local_address_; - int type_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class LogResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.robot.v1.LogResponse) */ { +class CancelOperationResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.robot.v1.CancelOperationResponse) */ { public: - inline LogResponse() : LogResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR LogResponse(::google::protobuf::internal::ConstantInitialized); + inline CancelOperationResponse() : CancelOperationResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR CancelOperationResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline LogResponse(const LogResponse& from) - : LogResponse(nullptr, from) {} - LogResponse(LogResponse&& from) noexcept - : LogResponse() { + CancelOperationResponse(const CancelOperationResponse& from); + CancelOperationResponse(CancelOperationResponse&& from) noexcept + : CancelOperationResponse() { *this = ::std::move(from); } - inline LogResponse& operator=(const LogResponse& from) { + inline CancelOperationResponse& operator=(const CancelOperationResponse& from) { CopyFrom(from); return *this; } - inline LogResponse& operator=(LogResponse&& from) noexcept { + inline CancelOperationResponse& operator=(CancelOperationResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2490,134 +3204,114 @@ class LogResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const LogResponse& default_instance() { + static const CancelOperationResponse& default_instance() { return *internal_default_instance(); } - static inline const LogResponse* internal_default_instance() { - return reinterpret_cast( - &_LogResponse_default_instance_); + static inline const CancelOperationResponse* internal_default_instance() { + return reinterpret_cast( + &_CancelOperationResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 40; + 18; - friend void swap(LogResponse& a, LogResponse& b) { + friend void swap(CancelOperationResponse& a, CancelOperationResponse& b) { a.Swap(&b); } - inline void Swap(LogResponse* other) { + inline void Swap(CancelOperationResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(LogResponse* other) { + void UnsafeArenaSwap(CancelOperationResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - LogResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + CancelOperationResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const LogResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const CancelOperationResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const LogResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const CancelOperationResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } public: private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.robot.v1.LogResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.CancelOperationResponse"; } protected: - explicit LogResponse(::google::protobuf::Arena* arena); - LogResponse(::google::protobuf::Arena* arena, const LogResponse& from); + explicit CancelOperationResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.robot.v1.LogResponse) + // @@protoc_insertion_point(class_scope:viam.robot.v1.CancelOperationResponse) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetVersionResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.GetVersionResponse) */ { +class BlockForOperationRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.BlockForOperationRequest) */ { public: - inline GetVersionResponse() : GetVersionResponse(nullptr) {} - ~GetVersionResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetVersionResponse(::google::protobuf::internal::ConstantInitialized); + inline BlockForOperationRequest() : BlockForOperationRequest(nullptr) {} + ~BlockForOperationRequest() override; + explicit PROTOBUF_CONSTEXPR BlockForOperationRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetVersionResponse(const GetVersionResponse& from) - : GetVersionResponse(nullptr, from) {} - GetVersionResponse(GetVersionResponse&& from) noexcept - : GetVersionResponse() { + BlockForOperationRequest(const BlockForOperationRequest& from); + BlockForOperationRequest(BlockForOperationRequest&& from) noexcept + : BlockForOperationRequest() { *this = ::std::move(from); } - inline GetVersionResponse& operator=(const GetVersionResponse& from) { + inline BlockForOperationRequest& operator=(const BlockForOperationRequest& from) { CopyFrom(from); return *this; } - inline GetVersionResponse& operator=(GetVersionResponse&& from) noexcept { + inline BlockForOperationRequest& operator=(BlockForOperationRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2627,213 +3321,144 @@ class GetVersionResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetVersionResponse& default_instance() { + static const BlockForOperationRequest& default_instance() { return *internal_default_instance(); } - static inline const GetVersionResponse* internal_default_instance() { - return reinterpret_cast( - &_GetVersionResponse_default_instance_); + static inline const BlockForOperationRequest* internal_default_instance() { + return reinterpret_cast( + &_BlockForOperationRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 52; + 19; - friend void swap(GetVersionResponse& a, GetVersionResponse& b) { + friend void swap(BlockForOperationRequest& a, BlockForOperationRequest& b) { a.Swap(&b); } - inline void Swap(GetVersionResponse* other) { + inline void Swap(BlockForOperationRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetVersionResponse* other) { + void UnsafeArenaSwap(BlockForOperationRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetVersionResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetVersionResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetVersionResponse& from) { - GetVersionResponse::MergeImpl(*this, from); + BlockForOperationRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const BlockForOperationRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const BlockForOperationRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetVersionResponse* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.robot.v1.GetVersionResponse"; - } - protected: - explicit GetVersionResponse(::google::protobuf::Arena* arena); - GetVersionResponse(::google::protobuf::Arena* arena, const GetVersionResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPlatformFieldNumber = 1, - kVersionFieldNumber = 2, - kApiVersionFieldNumber = 3, - }; - // string platform = 1 [json_name = "platform"]; - void clear_platform() ; - const std::string& platform() const; - template - void set_platform(Arg_&& arg, Args_... args); - std::string* mutable_platform(); - PROTOBUF_NODISCARD std::string* release_platform(); - void set_allocated_platform(std::string* value); + void SetCachedSize(int size) const final; + void InternalSwap(BlockForOperationRequest* other); private: - const std::string& _internal_platform() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_platform( - const std::string& value); - std::string* _internal_mutable_platform(); - + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.BlockForOperationRequest"; + } + protected: + explicit BlockForOperationRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - // string version = 2 [json_name = "version"]; - void clear_version() ; - const std::string& version() const; - template - void set_version(Arg_&& arg, Args_... args); - std::string* mutable_version(); - PROTOBUF_NODISCARD std::string* release_version(); - void set_allocated_version(std::string* value); - private: - const std::string& _internal_version() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_version( - const std::string& value); - std::string* _internal_mutable_version(); + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: - // string api_version = 3 [json_name = "apiVersion"]; - void clear_api_version() ; - const std::string& api_version() const; - template - void set_api_version(Arg_&& arg, Args_... args); - std::string* mutable_api_version(); - PROTOBUF_NODISCARD std::string* release_api_version(); - void set_allocated_api_version(std::string* value); + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - const std::string& _internal_api_version() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_api_version( - const std::string& value); - std::string* _internal_mutable_api_version(); + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kIdFieldNumber = 1, + }; + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); public: - // @@protoc_insertion_point(class_scope:viam.robot.v1.GetVersionResponse) + + // @@protoc_insertion_point(class_scope:viam.robot.v1.BlockForOperationRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 0, - 67, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr platform_; - ::google::protobuf::internal::ArenaStringPtr version_; - ::google::protobuf::internal::ArenaStringPtr api_version_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetVersionRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.robot.v1.GetVersionRequest) */ { +class BlockForOperationResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.robot.v1.BlockForOperationResponse) */ { public: - inline GetVersionRequest() : GetVersionRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR GetVersionRequest(::google::protobuf::internal::ConstantInitialized); + inline BlockForOperationResponse() : BlockForOperationResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR BlockForOperationResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetVersionRequest(const GetVersionRequest& from) - : GetVersionRequest(nullptr, from) {} - GetVersionRequest(GetVersionRequest&& from) noexcept - : GetVersionRequest() { + BlockForOperationResponse(const BlockForOperationResponse& from); + BlockForOperationResponse(BlockForOperationResponse&& from) noexcept + : BlockForOperationResponse() { *this = ::std::move(from); } - inline GetVersionRequest& operator=(const GetVersionRequest& from) { + inline BlockForOperationResponse& operator=(const BlockForOperationResponse& from) { CopyFrom(from); return *this; } - inline GetVersionRequest& operator=(GetVersionRequest&& from) noexcept { + inline BlockForOperationResponse& operator=(BlockForOperationResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2843,133 +3468,114 @@ class GetVersionRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetVersionRequest& default_instance() { + static const BlockForOperationResponse& default_instance() { return *internal_default_instance(); } - static inline const GetVersionRequest* internal_default_instance() { - return reinterpret_cast( - &_GetVersionRequest_default_instance_); + static inline const BlockForOperationResponse* internal_default_instance() { + return reinterpret_cast( + &_BlockForOperationResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 51; + 20; - friend void swap(GetVersionRequest& a, GetVersionRequest& b) { + friend void swap(BlockForOperationResponse& a, BlockForOperationResponse& b) { a.Swap(&b); } - inline void Swap(GetVersionRequest* other) { + inline void Swap(BlockForOperationResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetVersionRequest* other) { + void UnsafeArenaSwap(BlockForOperationResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetVersionRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + BlockForOperationResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const GetVersionRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const BlockForOperationResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const GetVersionRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const BlockForOperationResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } public: private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.robot.v1.GetVersionRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.BlockForOperationResponse"; } protected: - explicit GetVersionRequest(::google::protobuf::Arena* arena); - GetVersionRequest(::google::protobuf::Arena* arena, const GetVersionRequest& from); + explicit BlockForOperationResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.robot.v1.GetVersionRequest) + // @@protoc_insertion_point(class_scope:viam.robot.v1.BlockForOperationResponse) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetSessionsRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.robot.v1.GetSessionsRequest) */ { +class PeerConnectionInfo final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.PeerConnectionInfo) */ { public: - inline GetSessionsRequest() : GetSessionsRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR GetSessionsRequest(::google::protobuf::internal::ConstantInitialized); + inline PeerConnectionInfo() : PeerConnectionInfo(nullptr) {} + ~PeerConnectionInfo() override; + explicit PROTOBUF_CONSTEXPR PeerConnectionInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetSessionsRequest(const GetSessionsRequest& from) - : GetSessionsRequest(nullptr, from) {} - GetSessionsRequest(GetSessionsRequest&& from) noexcept - : GetSessionsRequest() { + PeerConnectionInfo(const PeerConnectionInfo& from); + PeerConnectionInfo(PeerConnectionInfo&& from) noexcept + : PeerConnectionInfo() { *this = ::std::move(from); } - inline GetSessionsRequest& operator=(const GetSessionsRequest& from) { + inline PeerConnectionInfo& operator=(const PeerConnectionInfo& from) { CopyFrom(from); return *this; } - inline GetSessionsRequest& operator=(GetSessionsRequest&& from) noexcept { + inline PeerConnectionInfo& operator=(PeerConnectionInfo&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2979,133 +3585,181 @@ class GetSessionsRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetSessionsRequest& default_instance() { + static const PeerConnectionInfo& default_instance() { return *internal_default_instance(); } - static inline const GetSessionsRequest* internal_default_instance() { - return reinterpret_cast( - &_GetSessionsRequest_default_instance_); + static inline const PeerConnectionInfo* internal_default_instance() { + return reinterpret_cast( + &_PeerConnectionInfo_default_instance_); } static constexpr int kIndexInFileMessages = 21; - friend void swap(GetSessionsRequest& a, GetSessionsRequest& b) { + friend void swap(PeerConnectionInfo& a, PeerConnectionInfo& b) { a.Swap(&b); } - inline void Swap(GetSessionsRequest* other) { + inline void Swap(PeerConnectionInfo* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetSessionsRequest* other) { + void UnsafeArenaSwap(PeerConnectionInfo* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetSessionsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const GetSessionsRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const GetSessionsRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + PeerConnectionInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const PeerConnectionInfo& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const PeerConnectionInfo& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.robot.v1.GetSessionsRequest"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(PeerConnectionInfo* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.PeerConnectionInfo"; } protected: - explicit GetSessionsRequest(::google::protobuf::Arena* arena); - GetSessionsRequest(::google::protobuf::Arena* arena, const GetSessionsRequest& from); + explicit PeerConnectionInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.robot.v1.GetSessionsRequest) + enum : int { + kRemoteAddressFieldNumber = 2, + kLocalAddressFieldNumber = 3, + kTypeFieldNumber = 1, + }; + // optional string remote_address = 2 [json_name = "remoteAddress"]; + bool has_remote_address() const; + private: + bool _internal_has_remote_address() const; + public: + void clear_remote_address(); + const std::string& remote_address() const; + template + void set_remote_address(ArgT0&& arg0, ArgT... args); + std::string* mutable_remote_address(); + PROTOBUF_NODISCARD std::string* release_remote_address(); + void set_allocated_remote_address(std::string* remote_address); + private: + const std::string& _internal_remote_address() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_remote_address(const std::string& value); + std::string* _internal_mutable_remote_address(); + public: + + // optional string local_address = 3 [json_name = "localAddress"]; + bool has_local_address() const; + private: + bool _internal_has_local_address() const; + public: + void clear_local_address(); + const std::string& local_address() const; + template + void set_local_address(ArgT0&& arg0, ArgT... args); + std::string* mutable_local_address(); + PROTOBUF_NODISCARD std::string* release_local_address(); + void set_allocated_local_address(std::string* local_address); + private: + const std::string& _internal_local_address() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_local_address(const std::string& value); + std::string* _internal_mutable_local_address(); + public: + + // .viam.robot.v1.PeerConnectionType type = 1 [json_name = "type"]; + void clear_type(); + ::viam::robot::v1::PeerConnectionType type() const; + void set_type(::viam::robot::v1::PeerConnectionType value); + private: + ::viam::robot::v1::PeerConnectionType _internal_type() const; + void _internal_set_type(::viam::robot::v1::PeerConnectionType value); + public: + + // @@protoc_insertion_point(class_scope:viam.robot.v1.PeerConnectionInfo) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr remote_address_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr local_address_; + int type_; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetOperationsRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.robot.v1.GetOperationsRequest) */ { +class Session final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.Session) */ { public: - inline GetOperationsRequest() : GetOperationsRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR GetOperationsRequest(::google::protobuf::internal::ConstantInitialized); + inline Session() : Session(nullptr) {} + ~Session() override; + explicit PROTOBUF_CONSTEXPR Session(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetOperationsRequest(const GetOperationsRequest& from) - : GetOperationsRequest(nullptr, from) {} - GetOperationsRequest(GetOperationsRequest&& from) noexcept - : GetOperationsRequest() { + Session(const Session& from); + Session(Session&& from) noexcept + : Session() { *this = ::std::move(from); } - inline GetOperationsRequest& operator=(const GetOperationsRequest& from) { + inline Session& operator=(const Session& from) { CopyFrom(from); return *this; } - inline GetOperationsRequest& operator=(GetOperationsRequest&& from) noexcept { + inline Session& operator=(Session&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3115,133 +3769,165 @@ class GetOperationsRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetOperationsRequest& default_instance() { + static const Session& default_instance() { return *internal_default_instance(); } - static inline const GetOperationsRequest* internal_default_instance() { - return reinterpret_cast( - &_GetOperationsRequest_default_instance_); + static inline const Session* internal_default_instance() { + return reinterpret_cast( + &_Session_default_instance_); } static constexpr int kIndexInFileMessages = - 13; + 22; - friend void swap(GetOperationsRequest& a, GetOperationsRequest& b) { + friend void swap(Session& a, Session& b) { a.Swap(&b); } - inline void Swap(GetOperationsRequest* other) { + inline void Swap(Session* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetOperationsRequest* other) { + void UnsafeArenaSwap(Session* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetOperationsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const GetOperationsRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const GetOperationsRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + Session* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Session& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Session& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.robot.v1.GetOperationsRequest"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Session* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.Session"; } protected: - explicit GetOperationsRequest(::google::protobuf::Arena* arena); - GetOperationsRequest(::google::protobuf::Arena* arena, const GetOperationsRequest& from); + explicit Session(::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 { + kIdFieldNumber = 1, + kPeerConnectionInfoFieldNumber = 2, + }; + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + + // optional .viam.robot.v1.PeerConnectionInfo peer_connection_info = 2 [json_name = "peerConnectionInfo"]; + bool has_peer_connection_info() const; + private: + bool _internal_has_peer_connection_info() const; + public: + void clear_peer_connection_info(); + const ::viam::robot::v1::PeerConnectionInfo& peer_connection_info() const; + PROTOBUF_NODISCARD ::viam::robot::v1::PeerConnectionInfo* release_peer_connection_info(); + ::viam::robot::v1::PeerConnectionInfo* mutable_peer_connection_info(); + void set_allocated_peer_connection_info(::viam::robot::v1::PeerConnectionInfo* peer_connection_info); + private: + const ::viam::robot::v1::PeerConnectionInfo& _internal_peer_connection_info() const; + ::viam::robot::v1::PeerConnectionInfo* _internal_mutable_peer_connection_info(); public: + void unsafe_arena_set_allocated_peer_connection_info( + ::viam::robot::v1::PeerConnectionInfo* peer_connection_info); + ::viam::robot::v1::PeerConnectionInfo* unsafe_arena_release_peer_connection_info(); - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:viam.robot.v1.GetOperationsRequest) + // @@protoc_insertion_point(class_scope:viam.robot.v1.Session) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::viam::robot::v1::PeerConnectionInfo* peer_connection_info_; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetMachineStatusRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.robot.v1.GetMachineStatusRequest) */ { +class GetSessionsRequest final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.robot.v1.GetSessionsRequest) */ { public: - inline GetMachineStatusRequest() : GetMachineStatusRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR GetMachineStatusRequest(::google::protobuf::internal::ConstantInitialized); + inline GetSessionsRequest() : GetSessionsRequest(nullptr) {} + explicit PROTOBUF_CONSTEXPR GetSessionsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetMachineStatusRequest(const GetMachineStatusRequest& from) - : GetMachineStatusRequest(nullptr, from) {} - GetMachineStatusRequest(GetMachineStatusRequest&& from) noexcept - : GetMachineStatusRequest() { + GetSessionsRequest(const GetSessionsRequest& from); + GetSessionsRequest(GetSessionsRequest&& from) noexcept + : GetSessionsRequest() { *this = ::std::move(from); } - inline GetMachineStatusRequest& operator=(const GetMachineStatusRequest& from) { + inline GetSessionsRequest& operator=(const GetSessionsRequest& from) { CopyFrom(from); return *this; } - inline GetMachineStatusRequest& operator=(GetMachineStatusRequest&& from) noexcept { + inline GetSessionsRequest& operator=(GetSessionsRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3251,134 +3937,114 @@ class GetMachineStatusRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetMachineStatusRequest& default_instance() { + static const GetSessionsRequest& default_instance() { return *internal_default_instance(); } - static inline const GetMachineStatusRequest* internal_default_instance() { - return reinterpret_cast( - &_GetMachineStatusRequest_default_instance_); + static inline const GetSessionsRequest* internal_default_instance() { + return reinterpret_cast( + &_GetSessionsRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 47; + 23; - friend void swap(GetMachineStatusRequest& a, GetMachineStatusRequest& b) { + friend void swap(GetSessionsRequest& a, GetSessionsRequest& b) { a.Swap(&b); } - inline void Swap(GetMachineStatusRequest* other) { + inline void Swap(GetSessionsRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetMachineStatusRequest* other) { + void UnsafeArenaSwap(GetSessionsRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetMachineStatusRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + GetSessionsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const GetMachineStatusRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const GetSessionsRequest& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const GetMachineStatusRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const GetSessionsRequest& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } public: private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.robot.v1.GetMachineStatusRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.GetSessionsRequest"; } protected: - explicit GetMachineStatusRequest(::google::protobuf::Arena* arena); - GetMachineStatusRequest(::google::protobuf::Arena* arena, const GetMachineStatusRequest& from); + explicit GetSessionsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.robot.v1.GetMachineStatusRequest) + // @@protoc_insertion_point(class_scope:viam.robot.v1.GetSessionsRequest) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetCloudMetadataResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.GetCloudMetadataResponse) */ { +class GetSessionsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.GetSessionsResponse) */ { public: - inline GetCloudMetadataResponse() : GetCloudMetadataResponse(nullptr) {} - ~GetCloudMetadataResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetCloudMetadataResponse(::google::protobuf::internal::ConstantInitialized); + inline GetSessionsResponse() : GetSessionsResponse(nullptr) {} + ~GetSessionsResponse() override; + explicit PROTOBUF_CONSTEXPR GetSessionsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetCloudMetadataResponse(const GetCloudMetadataResponse& from) - : GetCloudMetadataResponse(nullptr, from) {} - GetCloudMetadataResponse(GetCloudMetadataResponse&& from) noexcept - : GetCloudMetadataResponse() { + GetSessionsResponse(const GetSessionsResponse& from); + GetSessionsResponse(GetSessionsResponse&& from) noexcept + : GetSessionsResponse() { *this = ::std::move(from); } - inline GetCloudMetadataResponse& operator=(const GetCloudMetadataResponse& from) { + inline GetSessionsResponse& operator=(const GetSessionsResponse& from) { CopyFrom(from); return *this; } - inline GetCloudMetadataResponse& operator=(GetCloudMetadataResponse&& from) noexcept { + inline GetSessionsResponse& operator=(GetSessionsResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3388,249 +4054,149 @@ class GetCloudMetadataResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetCloudMetadataResponse& default_instance() { + static const GetSessionsResponse& default_instance() { return *internal_default_instance(); } - static inline const GetCloudMetadataResponse* internal_default_instance() { - return reinterpret_cast( - &_GetCloudMetadataResponse_default_instance_); + static inline const GetSessionsResponse* internal_default_instance() { + return reinterpret_cast( + &_GetSessionsResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 42; + 24; - friend void swap(GetCloudMetadataResponse& a, GetCloudMetadataResponse& b) { + friend void swap(GetSessionsResponse& a, GetSessionsResponse& b) { a.Swap(&b); } - inline void Swap(GetCloudMetadataResponse* other) { + inline void Swap(GetSessionsResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetCloudMetadataResponse* other) { + void UnsafeArenaSwap(GetSessionsResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetCloudMetadataResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetCloudMetadataResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetCloudMetadataResponse& from) { - GetCloudMetadataResponse::MergeImpl(*this, from); + GetSessionsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetSessionsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetSessionsResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetCloudMetadataResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetSessionsResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.robot.v1.GetCloudMetadataResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.GetSessionsResponse"; } protected: - explicit GetCloudMetadataResponse(::google::protobuf::Arena* arena); - GetCloudMetadataResponse(::google::protobuf::Arena* arena, const GetCloudMetadataResponse& from); + explicit GetSessionsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kRobotPartIdFieldNumber = 1, - kPrimaryOrgIdFieldNumber = 2, - kLocationIdFieldNumber = 3, - kMachineIdFieldNumber = 4, - kMachinePartIdFieldNumber = 5, + kSessionsFieldNumber = 1, }; - // string robot_part_id = 1 [json_name = "robotPartId", deprecated = true]; - [[deprecated]] void clear_robot_part_id() ; - [[deprecated]] const std::string& robot_part_id() const; - template - [[deprecated]] void set_robot_part_id(Arg_&& arg, Args_... args); - [[deprecated]] std::string* mutable_robot_part_id(); - [[deprecated]] PROTOBUF_NODISCARD std::string* release_robot_part_id(); - [[deprecated]] void set_allocated_robot_part_id(std::string* value); - - private: - const std::string& _internal_robot_part_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_robot_part_id( - const std::string& value); - std::string* _internal_mutable_robot_part_id(); - - public: - // string primary_org_id = 2 [json_name = "primaryOrgId"]; - void clear_primary_org_id() ; - const std::string& primary_org_id() const; - template - void set_primary_org_id(Arg_&& arg, Args_... args); - std::string* mutable_primary_org_id(); - PROTOBUF_NODISCARD std::string* release_primary_org_id(); - void set_allocated_primary_org_id(std::string* value); - - private: - const std::string& _internal_primary_org_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_primary_org_id( - const std::string& value); - std::string* _internal_mutable_primary_org_id(); - - public: - // string location_id = 3 [json_name = "locationId"]; - void clear_location_id() ; - const std::string& location_id() const; - template - void set_location_id(Arg_&& arg, Args_... args); - std::string* mutable_location_id(); - PROTOBUF_NODISCARD std::string* release_location_id(); - void set_allocated_location_id(std::string* value); - + // repeated .viam.robot.v1.Session sessions = 1 [json_name = "sessions"]; + int sessions_size() const; private: - const std::string& _internal_location_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_location_id( - const std::string& value); - std::string* _internal_mutable_location_id(); - + int _internal_sessions_size() const; public: - // string machine_id = 4 [json_name = "machineId"]; - void clear_machine_id() ; - const std::string& machine_id() const; - template - void set_machine_id(Arg_&& arg, Args_... args); - std::string* mutable_machine_id(); - PROTOBUF_NODISCARD std::string* release_machine_id(); - void set_allocated_machine_id(std::string* value); - + void clear_sessions(); + ::viam::robot::v1::Session* mutable_sessions(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::Session >* + mutable_sessions(); private: - const std::string& _internal_machine_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_machine_id( - const std::string& value); - std::string* _internal_mutable_machine_id(); - + const ::viam::robot::v1::Session& _internal_sessions(int index) const; + ::viam::robot::v1::Session* _internal_add_sessions(); public: - // string machine_part_id = 5 [json_name = "machinePartId"]; - void clear_machine_part_id() ; - const std::string& machine_part_id() const; - template - void set_machine_part_id(Arg_&& arg, Args_... args); - std::string* mutable_machine_part_id(); - PROTOBUF_NODISCARD std::string* release_machine_part_id(); - void set_allocated_machine_part_id(std::string* value); - - private: - const std::string& _internal_machine_part_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_machine_part_id( - const std::string& value); - std::string* _internal_mutable_machine_part_id(); + const ::viam::robot::v1::Session& sessions(int index) const; + ::viam::robot::v1::Session* add_sessions(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::Session >& + sessions() const; - public: - // @@protoc_insertion_point(class_scope:viam.robot.v1.GetCloudMetadataResponse) + // @@protoc_insertion_point(class_scope:viam.robot.v1.GetSessionsResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 5, 0, - 110, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr robot_part_id_; - ::google::protobuf::internal::ArenaStringPtr primary_org_id_; - ::google::protobuf::internal::ArenaStringPtr location_id_; - ::google::protobuf::internal::ArenaStringPtr machine_id_; - ::google::protobuf::internal::ArenaStringPtr machine_part_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::Session > sessions_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetCloudMetadataRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.robot.v1.GetCloudMetadataRequest) */ { +class DiscoveryQuery final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.DiscoveryQuery) */ { public: - inline GetCloudMetadataRequest() : GetCloudMetadataRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR GetCloudMetadataRequest(::google::protobuf::internal::ConstantInitialized); + inline DiscoveryQuery() : DiscoveryQuery(nullptr) {} + ~DiscoveryQuery() override; + explicit PROTOBUF_CONSTEXPR DiscoveryQuery(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetCloudMetadataRequest(const GetCloudMetadataRequest& from) - : GetCloudMetadataRequest(nullptr, from) {} - GetCloudMetadataRequest(GetCloudMetadataRequest&& from) noexcept - : GetCloudMetadataRequest() { + DiscoveryQuery(const DiscoveryQuery& from); + DiscoveryQuery(DiscoveryQuery&& from) noexcept + : DiscoveryQuery() { *this = ::std::move(from); } - inline GetCloudMetadataRequest& operator=(const GetCloudMetadataRequest& from) { + inline DiscoveryQuery& operator=(const DiscoveryQuery& from) { CopyFrom(from); return *this; } - inline GetCloudMetadataRequest& operator=(GetCloudMetadataRequest&& from) noexcept { + inline DiscoveryQuery& operator=(DiscoveryQuery&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3640,133 +4206,181 @@ class GetCloudMetadataRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetCloudMetadataRequest& default_instance() { + static const DiscoveryQuery& default_instance() { return *internal_default_instance(); } - static inline const GetCloudMetadataRequest* internal_default_instance() { - return reinterpret_cast( - &_GetCloudMetadataRequest_default_instance_); + static inline const DiscoveryQuery* internal_default_instance() { + return reinterpret_cast( + &_DiscoveryQuery_default_instance_); } static constexpr int kIndexInFileMessages = - 41; + 25; - friend void swap(GetCloudMetadataRequest& a, GetCloudMetadataRequest& b) { + friend void swap(DiscoveryQuery& a, DiscoveryQuery& b) { a.Swap(&b); } - inline void Swap(GetCloudMetadataRequest* other) { + inline void Swap(DiscoveryQuery* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetCloudMetadataRequest* other) { + void UnsafeArenaSwap(DiscoveryQuery* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetCloudMetadataRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const GetCloudMetadataRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const GetCloudMetadataRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + DiscoveryQuery* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DiscoveryQuery& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const DiscoveryQuery& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.robot.v1.GetCloudMetadataRequest"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DiscoveryQuery* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.DiscoveryQuery"; } protected: - explicit GetCloudMetadataRequest(::google::protobuf::Arena* arena); - GetCloudMetadataRequest(::google::protobuf::Arena* arena, const GetCloudMetadataRequest& from); + explicit DiscoveryQuery(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.robot.v1.GetCloudMetadataRequest) + enum : int { + kSubtypeFieldNumber = 1, + kModelFieldNumber = 2, + kExtraFieldNumber = 99, + }; + // string subtype = 1 [json_name = "subtype"]; + void clear_subtype(); + const std::string& subtype() const; + template + void set_subtype(ArgT0&& arg0, ArgT... args); + std::string* mutable_subtype(); + PROTOBUF_NODISCARD std::string* release_subtype(); + void set_allocated_subtype(std::string* subtype); + private: + const std::string& _internal_subtype() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_subtype(const std::string& value); + std::string* _internal_mutable_subtype(); + public: + + // string model = 2 [json_name = "model"]; + void clear_model(); + const std::string& model() const; + template + void set_model(ArgT0&& arg0, ArgT... args); + std::string* mutable_model(); + PROTOBUF_NODISCARD std::string* release_model(); + void set_allocated_model(std::string* model); + private: + const std::string& _internal_model() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_model(const std::string& value); + std::string* _internal_mutable_model(); + 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.robot.v1.DiscoveryQuery) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr subtype_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr model_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class CancelOperationResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.robot.v1.CancelOperationResponse) */ { +class Discovery final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.Discovery) */ { public: - inline CancelOperationResponse() : CancelOperationResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR CancelOperationResponse(::google::protobuf::internal::ConstantInitialized); + inline Discovery() : Discovery(nullptr) {} + ~Discovery() override; + explicit PROTOBUF_CONSTEXPR Discovery(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline CancelOperationResponse(const CancelOperationResponse& from) - : CancelOperationResponse(nullptr, from) {} - CancelOperationResponse(CancelOperationResponse&& from) noexcept - : CancelOperationResponse() { + Discovery(const Discovery& from); + Discovery(Discovery&& from) noexcept + : Discovery() { *this = ::std::move(from); } - inline CancelOperationResponse& operator=(const CancelOperationResponse& from) { + inline Discovery& operator=(const Discovery& from) { CopyFrom(from); return *this; } - inline CancelOperationResponse& operator=(CancelOperationResponse&& from) noexcept { + inline Discovery& operator=(Discovery&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3776,134 +4390,169 @@ class CancelOperationResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CancelOperationResponse& default_instance() { + static const Discovery& default_instance() { return *internal_default_instance(); } - static inline const CancelOperationResponse* internal_default_instance() { - return reinterpret_cast( - &_CancelOperationResponse_default_instance_); + static inline const Discovery* internal_default_instance() { + return reinterpret_cast( + &_Discovery_default_instance_); } static constexpr int kIndexInFileMessages = - 16; + 26; - friend void swap(CancelOperationResponse& a, CancelOperationResponse& b) { + friend void swap(Discovery& a, Discovery& b) { a.Swap(&b); } - inline void Swap(CancelOperationResponse* other) { + inline void Swap(Discovery* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CancelOperationResponse* other) { + void UnsafeArenaSwap(Discovery* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CancelOperationResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const CancelOperationResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const CancelOperationResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + Discovery* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Discovery& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Discovery& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.robot.v1.CancelOperationResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Discovery* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.Discovery"; } protected: - explicit CancelOperationResponse(::google::protobuf::Arena* arena); - CancelOperationResponse(::google::protobuf::Arena* arena, const CancelOperationResponse& from); + explicit Discovery(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.robot.v1.CancelOperationResponse) + enum : int { + kQueryFieldNumber = 1, + kResultsFieldNumber = 2, + }; + // .viam.robot.v1.DiscoveryQuery query = 1 [json_name = "query"]; + bool has_query() const; + private: + bool _internal_has_query() const; + public: + void clear_query(); + const ::viam::robot::v1::DiscoveryQuery& query() const; + PROTOBUF_NODISCARD ::viam::robot::v1::DiscoveryQuery* release_query(); + ::viam::robot::v1::DiscoveryQuery* mutable_query(); + void set_allocated_query(::viam::robot::v1::DiscoveryQuery* query); + private: + const ::viam::robot::v1::DiscoveryQuery& _internal_query() const; + ::viam::robot::v1::DiscoveryQuery* _internal_mutable_query(); + public: + void unsafe_arena_set_allocated_query( + ::viam::robot::v1::DiscoveryQuery* query); + ::viam::robot::v1::DiscoveryQuery* unsafe_arena_release_query(); + + // .google.protobuf.Struct results = 2 [json_name = "results"]; + bool has_results() const; + private: + bool _internal_has_results() const; + public: + void clear_results(); + const ::PROTOBUF_NAMESPACE_ID::Struct& results() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_results(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_results(); + void set_allocated_results(::PROTOBUF_NAMESPACE_ID::Struct* results); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_results() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_results(); + public: + void unsafe_arena_set_allocated_results( + ::PROTOBUF_NAMESPACE_ID::Struct* results); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_results(); + + // @@protoc_insertion_point(class_scope:viam.robot.v1.Discovery) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::viam::robot::v1::DiscoveryQuery* query_; + ::PROTOBUF_NAMESPACE_ID::Struct* results_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class CancelOperationRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.CancelOperationRequest) */ { +class ModuleModel final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.ModuleModel) */ { public: - inline CancelOperationRequest() : CancelOperationRequest(nullptr) {} - ~CancelOperationRequest() override; - template - explicit PROTOBUF_CONSTEXPR CancelOperationRequest(::google::protobuf::internal::ConstantInitialized); + inline ModuleModel() : ModuleModel(nullptr) {} + ~ModuleModel() override; + explicit PROTOBUF_CONSTEXPR ModuleModel(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline CancelOperationRequest(const CancelOperationRequest& from) - : CancelOperationRequest(nullptr, from) {} - CancelOperationRequest(CancelOperationRequest&& from) noexcept - : CancelOperationRequest() { + ModuleModel(const ModuleModel& from); + ModuleModel(ModuleModel&& from) noexcept + : ModuleModel() { *this = ::std::move(from); } - inline CancelOperationRequest& operator=(const CancelOperationRequest& from) { + inline ModuleModel& operator=(const ModuleModel& from) { CopyFrom(from); return *this; } - inline CancelOperationRequest& operator=(CancelOperationRequest&& from) noexcept { + inline ModuleModel& operator=(ModuleModel&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3913,177 +4562,187 @@ class CancelOperationRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CancelOperationRequest& default_instance() { + static const ModuleModel& default_instance() { return *internal_default_instance(); } - static inline const CancelOperationRequest* internal_default_instance() { - return reinterpret_cast( - &_CancelOperationRequest_default_instance_); + static inline const ModuleModel* internal_default_instance() { + return reinterpret_cast( + &_ModuleModel_default_instance_); } static constexpr int kIndexInFileMessages = - 15; + 27; - friend void swap(CancelOperationRequest& a, CancelOperationRequest& b) { + friend void swap(ModuleModel& a, ModuleModel& b) { a.Swap(&b); } - inline void Swap(CancelOperationRequest* other) { + inline void Swap(ModuleModel* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CancelOperationRequest* other) { + void UnsafeArenaSwap(ModuleModel* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CancelOperationRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const CancelOperationRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CancelOperationRequest& from) { - CancelOperationRequest::MergeImpl(*this, from); + ModuleModel* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ModuleModel& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ModuleModel& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(CancelOperationRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(ModuleModel* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.robot.v1.CancelOperationRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.ModuleModel"; } protected: - explicit CancelOperationRequest(::google::protobuf::Arena* arena); - CancelOperationRequest(::google::protobuf::Arena* arena, const CancelOperationRequest& from); + explicit ModuleModel(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kIdFieldNumber = 1, + kModuleNameFieldNumber = 1, + kModelFieldNumber = 2, + kApiFieldNumber = 3, + kFromLocalModuleFieldNumber = 4, }; - // string id = 1 [json_name = "id"]; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); + // string module_name = 1 [json_name = "moduleName"]; + void clear_module_name(); + const std::string& module_name() const; + template + void set_module_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_module_name(); + PROTOBUF_NODISCARD std::string* release_module_name(); + void set_allocated_module_name(std::string* module_name); + private: + const std::string& _internal_module_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_module_name(const std::string& value); + std::string* _internal_mutable_module_name(); + public: + + // string model = 2 [json_name = "model"]; + void clear_model(); + const std::string& model() const; + template + void set_model(ArgT0&& arg0, ArgT... args); + std::string* mutable_model(); + PROTOBUF_NODISCARD std::string* release_model(); + void set_allocated_model(std::string* model); + private: + const std::string& _internal_model() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_model(const std::string& value); + std::string* _internal_mutable_model(); + public: + // string api = 3 [json_name = "api"]; + void clear_api(); + const std::string& api() const; + template + void set_api(ArgT0&& arg0, ArgT... args); + std::string* mutable_api(); + PROTOBUF_NODISCARD std::string* release_api(); + void set_allocated_api(std::string* api); private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); + const std::string& _internal_api() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_api(const std::string& value); + std::string* _internal_mutable_api(); + public: + // bool from_local_module = 4 [json_name = "fromLocalModule"]; + void clear_from_local_module(); + bool from_local_module() const; + void set_from_local_module(bool value); + private: + bool _internal_from_local_module() const; + void _internal_set_from_local_module(bool value); public: - // @@protoc_insertion_point(class_scope:viam.robot.v1.CancelOperationRequest) + + // @@protoc_insertion_point(class_scope:viam.robot.v1.ModuleModel) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 47, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr module_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr model_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr api_; + bool from_local_module_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class BlockForOperationResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.robot.v1.BlockForOperationResponse) */ { +class GetModelsFromModulesRequest final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.robot.v1.GetModelsFromModulesRequest) */ { public: - inline BlockForOperationResponse() : BlockForOperationResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR BlockForOperationResponse(::google::protobuf::internal::ConstantInitialized); + inline GetModelsFromModulesRequest() : GetModelsFromModulesRequest(nullptr) {} + explicit PROTOBUF_CONSTEXPR GetModelsFromModulesRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline BlockForOperationResponse(const BlockForOperationResponse& from) - : BlockForOperationResponse(nullptr, from) {} - BlockForOperationResponse(BlockForOperationResponse&& from) noexcept - : BlockForOperationResponse() { + GetModelsFromModulesRequest(const GetModelsFromModulesRequest& from); + GetModelsFromModulesRequest(GetModelsFromModulesRequest&& from) noexcept + : GetModelsFromModulesRequest() { *this = ::std::move(from); } - inline BlockForOperationResponse& operator=(const BlockForOperationResponse& from) { + inline GetModelsFromModulesRequest& operator=(const GetModelsFromModulesRequest& from) { CopyFrom(from); return *this; } - inline BlockForOperationResponse& operator=(BlockForOperationResponse&& from) noexcept { + inline GetModelsFromModulesRequest& operator=(GetModelsFromModulesRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -4093,134 +4752,114 @@ class BlockForOperationResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const BlockForOperationResponse& default_instance() { + static const GetModelsFromModulesRequest& default_instance() { return *internal_default_instance(); } - static inline const BlockForOperationResponse* internal_default_instance() { - return reinterpret_cast( - &_BlockForOperationResponse_default_instance_); + static inline const GetModelsFromModulesRequest* internal_default_instance() { + return reinterpret_cast( + &_GetModelsFromModulesRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 18; + 28; - friend void swap(BlockForOperationResponse& a, BlockForOperationResponse& b) { + friend void swap(GetModelsFromModulesRequest& a, GetModelsFromModulesRequest& b) { a.Swap(&b); } - inline void Swap(BlockForOperationResponse* other) { + inline void Swap(GetModelsFromModulesRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(BlockForOperationResponse* other) { + void UnsafeArenaSwap(GetModelsFromModulesRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - BlockForOperationResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + GetModelsFromModulesRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const BlockForOperationResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const GetModelsFromModulesRequest& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const BlockForOperationResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const GetModelsFromModulesRequest& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } public: private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.robot.v1.BlockForOperationResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.GetModelsFromModulesRequest"; } protected: - explicit BlockForOperationResponse(::google::protobuf::Arena* arena); - BlockForOperationResponse(::google::protobuf::Arena* arena, const BlockForOperationResponse& from); + explicit GetModelsFromModulesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.robot.v1.BlockForOperationResponse) + // @@protoc_insertion_point(class_scope:viam.robot.v1.GetModelsFromModulesRequest) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class BlockForOperationRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.BlockForOperationRequest) */ { +class GetModelsFromModulesResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.GetModelsFromModulesResponse) */ { public: - inline BlockForOperationRequest() : BlockForOperationRequest(nullptr) {} - ~BlockForOperationRequest() override; - template - explicit PROTOBUF_CONSTEXPR BlockForOperationRequest(::google::protobuf::internal::ConstantInitialized); + inline GetModelsFromModulesResponse() : GetModelsFromModulesResponse(nullptr) {} + ~GetModelsFromModulesResponse() override; + explicit PROTOBUF_CONSTEXPR GetModelsFromModulesResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline BlockForOperationRequest(const BlockForOperationRequest& from) - : BlockForOperationRequest(nullptr, from) {} - BlockForOperationRequest(BlockForOperationRequest&& from) noexcept - : BlockForOperationRequest() { + GetModelsFromModulesResponse(const GetModelsFromModulesResponse& from); + GetModelsFromModulesResponse(GetModelsFromModulesResponse&& from) noexcept + : GetModelsFromModulesResponse() { *this = ::std::move(from); } - inline BlockForOperationRequest& operator=(const BlockForOperationRequest& from) { + inline GetModelsFromModulesResponse& operator=(const GetModelsFromModulesResponse& from) { CopyFrom(from); return *this; } - inline BlockForOperationRequest& operator=(BlockForOperationRequest&& from) noexcept { + inline GetModelsFromModulesResponse& operator=(GetModelsFromModulesResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -4230,178 +4869,149 @@ class BlockForOperationRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const BlockForOperationRequest& default_instance() { + static const GetModelsFromModulesResponse& default_instance() { return *internal_default_instance(); } - static inline const BlockForOperationRequest* internal_default_instance() { - return reinterpret_cast( - &_BlockForOperationRequest_default_instance_); + static inline const GetModelsFromModulesResponse* internal_default_instance() { + return reinterpret_cast( + &_GetModelsFromModulesResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 17; + 29; - friend void swap(BlockForOperationRequest& a, BlockForOperationRequest& b) { + friend void swap(GetModelsFromModulesResponse& a, GetModelsFromModulesResponse& b) { a.Swap(&b); } - inline void Swap(BlockForOperationRequest* other) { + inline void Swap(GetModelsFromModulesResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(BlockForOperationRequest* other) { + void UnsafeArenaSwap(GetModelsFromModulesResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - BlockForOperationRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const BlockForOperationRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const BlockForOperationRequest& from) { - BlockForOperationRequest::MergeImpl(*this, from); + GetModelsFromModulesResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetModelsFromModulesResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetModelsFromModulesResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(BlockForOperationRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetModelsFromModulesResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.robot.v1.BlockForOperationRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.GetModelsFromModulesResponse"; } protected: - explicit BlockForOperationRequest(::google::protobuf::Arena* arena); - BlockForOperationRequest(::google::protobuf::Arena* arena, const BlockForOperationRequest& from); + explicit GetModelsFromModulesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kIdFieldNumber = 1, + kModelsFieldNumber = 1, }; - // string id = 1 [json_name = "id"]; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - + // repeated .viam.robot.v1.ModuleModel models = 1 [json_name = "models"]; + int models_size() const; private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); - + int _internal_models_size() const; public: - // @@protoc_insertion_point(class_scope:viam.robot.v1.BlockForOperationRequest) + void clear_models(); + ::viam::robot::v1::ModuleModel* mutable_models(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::ModuleModel >* + mutable_models(); + private: + const ::viam::robot::v1::ModuleModel& _internal_models(int index) const; + ::viam::robot::v1::ModuleModel* _internal_add_models(); + public: + const ::viam::robot::v1::ModuleModel& models(int index) const; + ::viam::robot::v1::ModuleModel* add_models(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::ModuleModel >& + models() const; + + // @@protoc_insertion_point(class_scope:viam.robot.v1.GetModelsFromModulesResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 49, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::ModuleModel > models_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class StreamStatusRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.StreamStatusRequest) */ { +class DiscoverComponentsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.DiscoverComponentsRequest) */ { public: - inline StreamStatusRequest() : StreamStatusRequest(nullptr) {} - ~StreamStatusRequest() override; - template - explicit PROTOBUF_CONSTEXPR StreamStatusRequest(::google::protobuf::internal::ConstantInitialized); + inline DiscoverComponentsRequest() : DiscoverComponentsRequest(nullptr) {} + ~DiscoverComponentsRequest() override; + explicit PROTOBUF_CONSTEXPR DiscoverComponentsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline StreamStatusRequest(const StreamStatusRequest& from) - : StreamStatusRequest(nullptr, from) {} - StreamStatusRequest(StreamStatusRequest&& from) noexcept - : StreamStatusRequest() { + DiscoverComponentsRequest(const DiscoverComponentsRequest& from); + DiscoverComponentsRequest(DiscoverComponentsRequest&& from) noexcept + : DiscoverComponentsRequest() { *this = ::std::move(from); } - inline StreamStatusRequest& operator=(const StreamStatusRequest& from) { + inline DiscoverComponentsRequest& operator=(const DiscoverComponentsRequest& from) { CopyFrom(from); return *this; } - inline StreamStatusRequest& operator=(StreamStatusRequest&& from) noexcept { + inline DiscoverComponentsRequest& operator=(DiscoverComponentsRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -4411,198 +5021,149 @@ class StreamStatusRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const StreamStatusRequest& default_instance() { + static const DiscoverComponentsRequest& default_instance() { return *internal_default_instance(); } - static inline const StreamStatusRequest* internal_default_instance() { - return reinterpret_cast( - &_StreamStatusRequest_default_instance_); + static inline const DiscoverComponentsRequest* internal_default_instance() { + return reinterpret_cast( + &_DiscoverComponentsRequest_default_instance_); } static constexpr int kIndexInFileMessages = 30; - friend void swap(StreamStatusRequest& a, StreamStatusRequest& b) { + friend void swap(DiscoverComponentsRequest& a, DiscoverComponentsRequest& b) { a.Swap(&b); } - inline void Swap(StreamStatusRequest* other) { + inline void Swap(DiscoverComponentsRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(StreamStatusRequest* other) { + void UnsafeArenaSwap(DiscoverComponentsRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - StreamStatusRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const StreamStatusRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const StreamStatusRequest& from) { - StreamStatusRequest::MergeImpl(*this, from); + DiscoverComponentsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DiscoverComponentsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const DiscoverComponentsRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(StreamStatusRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(DiscoverComponentsRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.robot.v1.StreamStatusRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.DiscoverComponentsRequest"; } protected: - explicit StreamStatusRequest(::google::protobuf::Arena* arena); - StreamStatusRequest(::google::protobuf::Arena* arena, const StreamStatusRequest& from); + explicit DiscoverComponentsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kResourceNamesFieldNumber = 1, - kEveryFieldNumber = 2, + kQueriesFieldNumber = 1, }; - // repeated .viam.common.v1.ResourceName resource_names = 1 [json_name = "resourceNames"]; - int resource_names_size() const; - private: - int _internal_resource_names_size() const; - - public: - void clear_resource_names() ; - ::viam::common::v1::ResourceName* mutable_resource_names(int index); - ::google::protobuf::RepeatedPtrField< ::viam::common::v1::ResourceName >* - mutable_resource_names(); + // repeated .viam.robot.v1.DiscoveryQuery queries = 1 [json_name = "queries"]; + int queries_size() const; private: - const ::google::protobuf::RepeatedPtrField<::viam::common::v1::ResourceName>& _internal_resource_names() const; - ::google::protobuf::RepeatedPtrField<::viam::common::v1::ResourceName>* _internal_mutable_resource_names(); + int _internal_queries_size() const; public: - const ::viam::common::v1::ResourceName& resource_names(int index) const; - ::viam::common::v1::ResourceName* add_resource_names(); - const ::google::protobuf::RepeatedPtrField< ::viam::common::v1::ResourceName >& - resource_names() const; - // .google.protobuf.Duration every = 2 [json_name = "every"]; - bool has_every() const; - void clear_every() ; - const ::google::protobuf::Duration& every() const; - PROTOBUF_NODISCARD ::google::protobuf::Duration* release_every(); - ::google::protobuf::Duration* mutable_every(); - void set_allocated_every(::google::protobuf::Duration* value); - void unsafe_arena_set_allocated_every(::google::protobuf::Duration* value); - ::google::protobuf::Duration* unsafe_arena_release_every(); - + void clear_queries(); + ::viam::robot::v1::DiscoveryQuery* mutable_queries(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::DiscoveryQuery >* + mutable_queries(); private: - const ::google::protobuf::Duration& _internal_every() const; - ::google::protobuf::Duration* _internal_mutable_every(); - + const ::viam::robot::v1::DiscoveryQuery& _internal_queries(int index) const; + ::viam::robot::v1::DiscoveryQuery* _internal_add_queries(); public: - // @@protoc_insertion_point(class_scope:viam.robot.v1.StreamStatusRequest) + const ::viam::robot::v1::DiscoveryQuery& queries(int index) const; + ::viam::robot::v1::DiscoveryQuery* add_queries(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::DiscoveryQuery >& + queries() const; + + // @@protoc_insertion_point(class_scope:viam.robot.v1.DiscoverComponentsRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 2, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::viam::common::v1::ResourceName > resource_names_; - ::google::protobuf::Duration* every_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::DiscoveryQuery > queries_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class StopExtraParameters final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.StopExtraParameters) */ { +class DiscoverComponentsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.DiscoverComponentsResponse) */ { public: - inline StopExtraParameters() : StopExtraParameters(nullptr) {} - ~StopExtraParameters() override; - template - explicit PROTOBUF_CONSTEXPR StopExtraParameters(::google::protobuf::internal::ConstantInitialized); + inline DiscoverComponentsResponse() : DiscoverComponentsResponse(nullptr) {} + ~DiscoverComponentsResponse() override; + explicit PROTOBUF_CONSTEXPR DiscoverComponentsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline StopExtraParameters(const StopExtraParameters& from) - : StopExtraParameters(nullptr, from) {} - StopExtraParameters(StopExtraParameters&& from) noexcept - : StopExtraParameters() { + DiscoverComponentsResponse(const DiscoverComponentsResponse& from); + DiscoverComponentsResponse(DiscoverComponentsResponse&& from) noexcept + : DiscoverComponentsResponse() { *this = ::std::move(from); } - inline StopExtraParameters& operator=(const StopExtraParameters& from) { + inline DiscoverComponentsResponse& operator=(const DiscoverComponentsResponse& from) { CopyFrom(from); return *this; } - inline StopExtraParameters& operator=(StopExtraParameters&& from) noexcept { + inline DiscoverComponentsResponse& operator=(DiscoverComponentsResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -4612,181 +5173,135 @@ class StopExtraParameters final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const StopExtraParameters& default_instance() { + static const DiscoverComponentsResponse& default_instance() { return *internal_default_instance(); } - static inline const StopExtraParameters* internal_default_instance() { - return reinterpret_cast( - &_StopExtraParameters_default_instance_); + static inline const DiscoverComponentsResponse* internal_default_instance() { + return reinterpret_cast( + &_DiscoverComponentsResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 32; + 31; - friend void swap(StopExtraParameters& a, StopExtraParameters& b) { + friend void swap(DiscoverComponentsResponse& a, DiscoverComponentsResponse& b) { a.Swap(&b); } - inline void Swap(StopExtraParameters* other) { + inline void Swap(DiscoverComponentsResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(StopExtraParameters* other) { + void UnsafeArenaSwap(DiscoverComponentsResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - StopExtraParameters* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const StopExtraParameters& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const StopExtraParameters& from) { - StopExtraParameters::MergeImpl(*this, from); + DiscoverComponentsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DiscoverComponentsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const DiscoverComponentsResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(StopExtraParameters* other); + void SetCachedSize(int size) const final; + void InternalSwap(DiscoverComponentsResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.robot.v1.StopExtraParameters"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.DiscoverComponentsResponse"; } protected: - explicit StopExtraParameters(::google::protobuf::Arena* arena); - StopExtraParameters(::google::protobuf::Arena* arena, const StopExtraParameters& from); + explicit DiscoverComponentsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kNameFieldNumber = 1, - kParamsFieldNumber = 2, + kDiscoveryFieldNumber = 1, }; - // .viam.common.v1.ResourceName name = 1 [json_name = "name"]; - bool has_name() const; - void clear_name() ; - const ::viam::common::v1::ResourceName& name() const; - PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_name(); - ::viam::common::v1::ResourceName* mutable_name(); - void set_allocated_name(::viam::common::v1::ResourceName* value); - void unsafe_arena_set_allocated_name(::viam::common::v1::ResourceName* value); - ::viam::common::v1::ResourceName* unsafe_arena_release_name(); - + // repeated .viam.robot.v1.Discovery discovery = 1 [json_name = "discovery"]; + int discovery_size() const; private: - const ::viam::common::v1::ResourceName& _internal_name() const; - ::viam::common::v1::ResourceName* _internal_mutable_name(); - + int _internal_discovery_size() const; public: - // .google.protobuf.Struct params = 2 [json_name = "params"]; - bool has_params() const; - void clear_params() ; - const ::google::protobuf::Struct& params() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_params(); - ::google::protobuf::Struct* mutable_params(); - void set_allocated_params(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_params(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_params(); - + void clear_discovery(); + ::viam::robot::v1::Discovery* mutable_discovery(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::Discovery >* + mutable_discovery(); private: - const ::google::protobuf::Struct& _internal_params() const; - ::google::protobuf::Struct* _internal_mutable_params(); - + const ::viam::robot::v1::Discovery& _internal_discovery(int index) const; + ::viam::robot::v1::Discovery* _internal_add_discovery(); public: - // @@protoc_insertion_point(class_scope:viam.robot.v1.StopExtraParameters) + const ::viam::robot::v1::Discovery& discovery(int index) const; + ::viam::robot::v1::Discovery* add_discovery(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::Discovery >& + discovery() const; + + // @@protoc_insertion_point(class_scope:viam.robot.v1.DiscoverComponentsResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 2, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::viam::common::v1::ResourceName* name_; - ::google::protobuf::Struct* params_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::Discovery > discovery_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class Status final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.Status) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.Status) */ { public: inline Status() : Status(nullptr) {} ~Status() override; - template - explicit PROTOBUF_CONSTEXPR Status(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR Status(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Status(const Status& from) - : Status(nullptr, from) {} + Status(const Status& from); Status(Status&& from) noexcept : Status() { *this = ::std::move(from); @@ -4798,9 +5313,9 @@ class Status final : } inline Status& operator=(Status&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -4810,22 +5325,13 @@ class Status final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const Status& default_instance() { @@ -4836,7 +5342,7 @@ class Status final : &_Status_default_instance_); } static constexpr int kIndexInFileMessages = - 27; + 32; friend void swap(Status& a, Status& b) { a.Swap(&b); @@ -4844,65 +5350,63 @@ class Status final : inline void Swap(Status* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(Status* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Status* New(::google::protobuf::Arena* arena = nullptr) const final { + Status* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const Status& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Status& from) { - Status::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Status& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(Status* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "viam.robot.v1.Status"; } protected: - explicit Status(::google::protobuf::Arena* arena); - Status(::google::protobuf::Arena* arena, const Status& from); + explicit Status(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -4915,107 +5419,95 @@ class Status final : }; // .viam.common.v1.ResourceName name = 1 [json_name = "name"]; bool has_name() const; - void clear_name() ; + private: + bool _internal_has_name() const; + public: + void clear_name(); const ::viam::common::v1::ResourceName& name() const; PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_name(); ::viam::common::v1::ResourceName* mutable_name(); - void set_allocated_name(::viam::common::v1::ResourceName* value); - void unsafe_arena_set_allocated_name(::viam::common::v1::ResourceName* value); - ::viam::common::v1::ResourceName* unsafe_arena_release_name(); - + void set_allocated_name(::viam::common::v1::ResourceName* name); private: const ::viam::common::v1::ResourceName& _internal_name() const; ::viam::common::v1::ResourceName* _internal_mutable_name(); - public: + void unsafe_arena_set_allocated_name( + ::viam::common::v1::ResourceName* name); + ::viam::common::v1::ResourceName* unsafe_arena_release_name(); + // .google.protobuf.Struct status = 2 [json_name = "status"]; bool has_status() const; - void clear_status() ; - const ::google::protobuf::Struct& status() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_status(); - ::google::protobuf::Struct* mutable_status(); - void set_allocated_status(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_status(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_status(); - private: - const ::google::protobuf::Struct& _internal_status() const; - ::google::protobuf::Struct* _internal_mutable_status(); - + bool _internal_has_status() const; public: + void clear_status(); + const ::PROTOBUF_NAMESPACE_ID::Struct& status() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_status(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_status(); + void set_allocated_status(::PROTOBUF_NAMESPACE_ID::Struct* status); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_status() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_status(); + public: + void unsafe_arena_set_allocated_status( + ::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; - void clear_last_reconfigured() ; - const ::google::protobuf::Timestamp& last_reconfigured() const; - PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_last_reconfigured(); - ::google::protobuf::Timestamp* mutable_last_reconfigured(); - void set_allocated_last_reconfigured(::google::protobuf::Timestamp* value); - void unsafe_arena_set_allocated_last_reconfigured(::google::protobuf::Timestamp* value); - ::google::protobuf::Timestamp* unsafe_arena_release_last_reconfigured(); - private: - const ::google::protobuf::Timestamp& _internal_last_reconfigured() const; - ::google::protobuf::Timestamp* _internal_mutable_last_reconfigured(); - + 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; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 3, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::viam::common::v1::ResourceName* name_; - ::google::protobuf::Struct* status_; - ::google::protobuf::Timestamp* last_reconfigured_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + 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; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class StartSessionResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.StartSessionResponse) */ { +class GetStatusRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.GetStatusRequest) */ { public: - inline StartSessionResponse() : StartSessionResponse(nullptr) {} - ~StartSessionResponse() override; - template - explicit PROTOBUF_CONSTEXPR StartSessionResponse(::google::protobuf::internal::ConstantInitialized); + inline GetStatusRequest() : GetStatusRequest(nullptr) {} + ~GetStatusRequest() override; + explicit PROTOBUF_CONSTEXPR GetStatusRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline StartSessionResponse(const StartSessionResponse& from) - : StartSessionResponse(nullptr, from) {} - StartSessionResponse(StartSessionResponse&& from) noexcept - : StartSessionResponse() { + GetStatusRequest(const GetStatusRequest& from); + GetStatusRequest(GetStatusRequest&& from) noexcept + : GetStatusRequest() { *this = ::std::move(from); } - inline StartSessionResponse& operator=(const StartSessionResponse& from) { + inline GetStatusRequest& operator=(const GetStatusRequest& from) { CopyFrom(from); return *this; } - inline StartSessionResponse& operator=(StartSessionResponse&& from) noexcept { + inline GetStatusRequest& operator=(GetStatusRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -5025,196 +5517,149 @@ class StartSessionResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const StartSessionResponse& default_instance() { + static const GetStatusRequest& default_instance() { return *internal_default_instance(); } - static inline const StartSessionResponse* internal_default_instance() { - return reinterpret_cast( - &_StartSessionResponse_default_instance_); + static inline const GetStatusRequest* internal_default_instance() { + return reinterpret_cast( + &_GetStatusRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 36; + 33; - friend void swap(StartSessionResponse& a, StartSessionResponse& b) { + friend void swap(GetStatusRequest& a, GetStatusRequest& b) { a.Swap(&b); } - inline void Swap(StartSessionResponse* other) { + inline void Swap(GetStatusRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(StartSessionResponse* other) { + void UnsafeArenaSwap(GetStatusRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - StartSessionResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const StartSessionResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const StartSessionResponse& from) { - StartSessionResponse::MergeImpl(*this, from); + GetStatusRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetStatusRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetStatusRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(StartSessionResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetStatusRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.robot.v1.StartSessionResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.GetStatusRequest"; } protected: - explicit StartSessionResponse(::google::protobuf::Arena* arena); - StartSessionResponse(::google::protobuf::Arena* arena, const StartSessionResponse& from); + explicit GetStatusRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kIdFieldNumber = 1, - kHeartbeatWindowFieldNumber = 2, + kResourceNamesFieldNumber = 1, }; - // string id = 1 [json_name = "id"]; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - + // repeated .viam.common.v1.ResourceName resource_names = 1 [json_name = "resourceNames"]; + int resource_names_size() const; private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); - + int _internal_resource_names_size() const; public: - // .google.protobuf.Duration heartbeat_window = 2 [json_name = "heartbeatWindow"]; - bool has_heartbeat_window() const; - void clear_heartbeat_window() ; - const ::google::protobuf::Duration& heartbeat_window() const; - PROTOBUF_NODISCARD ::google::protobuf::Duration* release_heartbeat_window(); - ::google::protobuf::Duration* mutable_heartbeat_window(); - void set_allocated_heartbeat_window(::google::protobuf::Duration* value); - void unsafe_arena_set_allocated_heartbeat_window(::google::protobuf::Duration* value); - ::google::protobuf::Duration* unsafe_arena_release_heartbeat_window(); - + void clear_resource_names(); + ::viam::common::v1::ResourceName* mutable_resource_names(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::ResourceName >* + mutable_resource_names(); private: - const ::google::protobuf::Duration& _internal_heartbeat_window() const; - ::google::protobuf::Duration* _internal_mutable_heartbeat_window(); - + const ::viam::common::v1::ResourceName& _internal_resource_names(int index) const; + ::viam::common::v1::ResourceName* _internal_add_resource_names(); public: - // @@protoc_insertion_point(class_scope:viam.robot.v1.StartSessionResponse) + const ::viam::common::v1::ResourceName& resource_names(int index) const; + ::viam::common::v1::ResourceName* add_resource_names(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::ResourceName >& + resource_names() const; + + // @@protoc_insertion_point(class_scope:viam.robot.v1.GetStatusRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 45, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr id_; - ::google::protobuf::Duration* heartbeat_window_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::ResourceName > resource_names_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Session final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.Session) */ { +class GetStatusResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.GetStatusResponse) */ { public: - inline Session() : Session(nullptr) {} - ~Session() override; - template - explicit PROTOBUF_CONSTEXPR Session(::google::protobuf::internal::ConstantInitialized); + inline GetStatusResponse() : GetStatusResponse(nullptr) {} + ~GetStatusResponse() override; + explicit PROTOBUF_CONSTEXPR GetStatusResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Session(const Session& from) - : Session(nullptr, from) {} - Session(Session&& from) noexcept - : Session() { + GetStatusResponse(const GetStatusResponse& from); + GetStatusResponse(GetStatusResponse&& from) noexcept + : GetStatusResponse() { *this = ::std::move(from); } - inline Session& operator=(const Session& from) { + inline GetStatusResponse& operator=(const GetStatusResponse& from) { CopyFrom(from); return *this; } - inline Session& operator=(Session&& from) noexcept { + inline GetStatusResponse& operator=(GetStatusResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -5224,196 +5669,149 @@ class Session final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Session& default_instance() { + static const GetStatusResponse& default_instance() { return *internal_default_instance(); } - static inline const Session* internal_default_instance() { - return reinterpret_cast( - &_Session_default_instance_); + static inline const GetStatusResponse* internal_default_instance() { + return reinterpret_cast( + &_GetStatusResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 20; + 34; - friend void swap(Session& a, Session& b) { + friend void swap(GetStatusResponse& a, GetStatusResponse& b) { a.Swap(&b); } - inline void Swap(Session* other) { + inline void Swap(GetStatusResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Session* other) { + void UnsafeArenaSwap(GetStatusResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Session* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Session& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Session& from) { - Session::MergeImpl(*this, from); + GetStatusResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetStatusResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetStatusResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Session* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetStatusResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.robot.v1.Session"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.GetStatusResponse"; } protected: - explicit Session(::google::protobuf::Arena* arena); - Session(::google::protobuf::Arena* arena, const Session& from); + explicit GetStatusResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kIdFieldNumber = 1, - kPeerConnectionInfoFieldNumber = 2, + kStatusFieldNumber = 1, }; - // string id = 1 [json_name = "id"]; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - + // repeated .viam.robot.v1.Status status = 1 [json_name = "status"]; + int status_size() const; private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); - + int _internal_status_size() const; public: - // optional .viam.robot.v1.PeerConnectionInfo peer_connection_info = 2 [json_name = "peerConnectionInfo"]; - bool has_peer_connection_info() const; - void clear_peer_connection_info() ; - const ::viam::robot::v1::PeerConnectionInfo& peer_connection_info() const; - PROTOBUF_NODISCARD ::viam::robot::v1::PeerConnectionInfo* release_peer_connection_info(); - ::viam::robot::v1::PeerConnectionInfo* mutable_peer_connection_info(); - void set_allocated_peer_connection_info(::viam::robot::v1::PeerConnectionInfo* value); - void unsafe_arena_set_allocated_peer_connection_info(::viam::robot::v1::PeerConnectionInfo* value); - ::viam::robot::v1::PeerConnectionInfo* unsafe_arena_release_peer_connection_info(); - + void clear_status(); + ::viam::robot::v1::Status* mutable_status(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::Status >* + mutable_status(); private: - const ::viam::robot::v1::PeerConnectionInfo& _internal_peer_connection_info() const; - ::viam::robot::v1::PeerConnectionInfo* _internal_mutable_peer_connection_info(); - + const ::viam::robot::v1::Status& _internal_status(int index) const; + ::viam::robot::v1::Status* _internal_add_status(); public: - // @@protoc_insertion_point(class_scope:viam.robot.v1.Session) + const ::viam::robot::v1::Status& status(int index) const; + ::viam::robot::v1::Status* add_status(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::Status >& + status() const; + + // @@protoc_insertion_point(class_scope:viam.robot.v1.GetStatusResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 32, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr id_; - ::viam::robot::v1::PeerConnectionInfo* peer_connection_info_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::Status > status_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ResourceStatus final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.ResourceStatus) */ { +class StreamStatusRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.StreamStatusRequest) */ { public: - inline ResourceStatus() : ResourceStatus(nullptr) {} - ~ResourceStatus() override; - template - explicit PROTOBUF_CONSTEXPR ResourceStatus(::google::protobuf::internal::ConstantInitialized); + inline StreamStatusRequest() : StreamStatusRequest(nullptr) {} + ~StreamStatusRequest() override; + explicit PROTOBUF_CONSTEXPR StreamStatusRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ResourceStatus(const ResourceStatus& from) - : ResourceStatus(nullptr, from) {} - ResourceStatus(ResourceStatus&& from) noexcept - : ResourceStatus() { + StreamStatusRequest(const StreamStatusRequest& from); + StreamStatusRequest(StreamStatusRequest&& from) noexcept + : StreamStatusRequest() { *this = ::std::move(from); } - inline ResourceStatus& operator=(const ResourceStatus& from) { + inline StreamStatusRequest& operator=(const StreamStatusRequest& from) { CopyFrom(from); return *this; } - inline ResourceStatus& operator=(ResourceStatus&& from) noexcept { + inline StreamStatusRequest& operator=(StreamStatusRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -5423,284 +5821,169 @@ class ResourceStatus final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ResourceStatus& default_instance() { + static const StreamStatusRequest& default_instance() { return *internal_default_instance(); } - static inline const ResourceStatus* internal_default_instance() { - return reinterpret_cast( - &_ResourceStatus_default_instance_); + static inline const StreamStatusRequest* internal_default_instance() { + return reinterpret_cast( + &_StreamStatusRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 49; + 35; - friend void swap(ResourceStatus& a, ResourceStatus& b) { + friend void swap(StreamStatusRequest& a, StreamStatusRequest& b) { a.Swap(&b); } - inline void Swap(ResourceStatus* other) { + inline void Swap(StreamStatusRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ResourceStatus* other) { + void UnsafeArenaSwap(StreamStatusRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ResourceStatus* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ResourceStatus& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ResourceStatus& from) { - ResourceStatus::MergeImpl(*this, from); + StreamStatusRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const StreamStatusRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const StreamStatusRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ResourceStatus* other); + void SetCachedSize(int size) const final; + void InternalSwap(StreamStatusRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.robot.v1.ResourceStatus"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.StreamStatusRequest"; } protected: - explicit ResourceStatus(::google::protobuf::Arena* arena); - ResourceStatus(::google::protobuf::Arena* arena, const ResourceStatus& from); + explicit StreamStatusRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- - using State = ResourceStatus_State; - static constexpr State STATE_UNSPECIFIED = ResourceStatus_State_STATE_UNSPECIFIED; - static constexpr State STATE_UNCONFIGURED = ResourceStatus_State_STATE_UNCONFIGURED; - static constexpr State STATE_CONFIGURING = ResourceStatus_State_STATE_CONFIGURING; - static constexpr State STATE_READY = ResourceStatus_State_STATE_READY; - static constexpr State STATE_REMOVING = ResourceStatus_State_STATE_REMOVING; - static constexpr State STATE_UNHEALTHY = ResourceStatus_State_STATE_UNHEALTHY; - static inline bool State_IsValid(int value) { - return ResourceStatus_State_IsValid(value); - } - static constexpr State State_MIN = ResourceStatus_State_State_MIN; - static constexpr State State_MAX = ResourceStatus_State_State_MAX; - static constexpr int State_ARRAYSIZE = ResourceStatus_State_State_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* State_descriptor() { - return ResourceStatus_State_descriptor(); - } - template - static inline const std::string& State_Name(T value) { - return ResourceStatus_State_Name(value); - } - static inline bool State_Parse(absl::string_view name, State* value) { - return ResourceStatus_State_Parse(name, value); - } - // accessors ------------------------------------------------------- enum : int { - kRevisionFieldNumber = 4, - kErrorFieldNumber = 5, - kNameFieldNumber = 1, - kLastUpdatedFieldNumber = 3, - kCloudMetadataFieldNumber = 6, - kStateFieldNumber = 2, + kResourceNamesFieldNumber = 1, + kEveryFieldNumber = 2, }; - // string revision = 4 [json_name = "revision"]; - void clear_revision() ; - const std::string& revision() const; - template - void set_revision(Arg_&& arg, Args_... args); - std::string* mutable_revision(); - PROTOBUF_NODISCARD std::string* release_revision(); - void set_allocated_revision(std::string* value); - - private: - const std::string& _internal_revision() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_revision( - const std::string& value); - std::string* _internal_mutable_revision(); - - public: - // string error = 5 [json_name = "error"]; - void clear_error() ; - const std::string& error() const; - template - void set_error(Arg_&& arg, Args_... args); - std::string* mutable_error(); - PROTOBUF_NODISCARD std::string* release_error(); - void set_allocated_error(std::string* value); - + // repeated .viam.common.v1.ResourceName resource_names = 1 [json_name = "resourceNames"]; + int resource_names_size() const; private: - const std::string& _internal_error() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_error( - const std::string& value); - std::string* _internal_mutable_error(); - + int _internal_resource_names_size() const; public: - // .viam.common.v1.ResourceName name = 1 [json_name = "name"]; - bool has_name() const; - void clear_name() ; - const ::viam::common::v1::ResourceName& name() const; - PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_name(); - ::viam::common::v1::ResourceName* mutable_name(); - void set_allocated_name(::viam::common::v1::ResourceName* value); - void unsafe_arena_set_allocated_name(::viam::common::v1::ResourceName* value); - ::viam::common::v1::ResourceName* unsafe_arena_release_name(); - + void clear_resource_names(); + ::viam::common::v1::ResourceName* mutable_resource_names(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::ResourceName >* + mutable_resource_names(); private: - const ::viam::common::v1::ResourceName& _internal_name() const; - ::viam::common::v1::ResourceName* _internal_mutable_name(); - + const ::viam::common::v1::ResourceName& _internal_resource_names(int index) const; + ::viam::common::v1::ResourceName* _internal_add_resource_names(); public: - // .google.protobuf.Timestamp last_updated = 3 [json_name = "lastUpdated"]; - bool has_last_updated() const; - void clear_last_updated() ; - const ::google::protobuf::Timestamp& last_updated() const; - PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_last_updated(); - ::google::protobuf::Timestamp* mutable_last_updated(); - void set_allocated_last_updated(::google::protobuf::Timestamp* value); - void unsafe_arena_set_allocated_last_updated(::google::protobuf::Timestamp* value); - ::google::protobuf::Timestamp* unsafe_arena_release_last_updated(); + const ::viam::common::v1::ResourceName& resource_names(int index) const; + ::viam::common::v1::ResourceName* add_resource_names(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::ResourceName >& + resource_names() const; + // .google.protobuf.Duration every = 2 [json_name = "every"]; + bool has_every() const; private: - const ::google::protobuf::Timestamp& _internal_last_updated() const; - ::google::protobuf::Timestamp* _internal_mutable_last_updated(); - + bool _internal_has_every() const; public: - // optional .viam.robot.v1.GetCloudMetadataResponse cloud_metadata = 6 [json_name = "cloudMetadata"]; - bool has_cloud_metadata() const; - void clear_cloud_metadata() ; - const ::viam::robot::v1::GetCloudMetadataResponse& cloud_metadata() const; - PROTOBUF_NODISCARD ::viam::robot::v1::GetCloudMetadataResponse* release_cloud_metadata(); - ::viam::robot::v1::GetCloudMetadataResponse* mutable_cloud_metadata(); - void set_allocated_cloud_metadata(::viam::robot::v1::GetCloudMetadataResponse* value); - void unsafe_arena_set_allocated_cloud_metadata(::viam::robot::v1::GetCloudMetadataResponse* value); - ::viam::robot::v1::GetCloudMetadataResponse* unsafe_arena_release_cloud_metadata(); - + void clear_every(); + const ::PROTOBUF_NAMESPACE_ID::Duration& every() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Duration* release_every(); + ::PROTOBUF_NAMESPACE_ID::Duration* mutable_every(); + void set_allocated_every(::PROTOBUF_NAMESPACE_ID::Duration* every); private: - const ::viam::robot::v1::GetCloudMetadataResponse& _internal_cloud_metadata() const; - ::viam::robot::v1::GetCloudMetadataResponse* _internal_mutable_cloud_metadata(); - + const ::PROTOBUF_NAMESPACE_ID::Duration& _internal_every() const; + ::PROTOBUF_NAMESPACE_ID::Duration* _internal_mutable_every(); public: - // .viam.robot.v1.ResourceStatus.State state = 2 [json_name = "state"]; - void clear_state() ; - ::viam::robot::v1::ResourceStatus_State state() const; - void set_state(::viam::robot::v1::ResourceStatus_State value); - - private: - ::viam::robot::v1::ResourceStatus_State _internal_state() const; - void _internal_set_state(::viam::robot::v1::ResourceStatus_State value); + void unsafe_arena_set_allocated_every( + ::PROTOBUF_NAMESPACE_ID::Duration* every); + ::PROTOBUF_NAMESPACE_ID::Duration* unsafe_arena_release_every(); - public: - // @@protoc_insertion_point(class_scope:viam.robot.v1.ResourceStatus) + // @@protoc_insertion_point(class_scope:viam.robot.v1.StreamStatusRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 6, 3, - 50, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr revision_; - ::google::protobuf::internal::ArenaStringPtr error_; - ::viam::common::v1::ResourceName* name_; - ::google::protobuf::Timestamp* last_updated_; - ::viam::robot::v1::GetCloudMetadataResponse* cloud_metadata_; - int state_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::ResourceName > resource_names_; + ::PROTOBUF_NAMESPACE_ID::Duration* every_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ResourceRPCSubtype final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.ResourceRPCSubtype) */ { +class StreamStatusResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.StreamStatusResponse) */ { public: - inline ResourceRPCSubtype() : ResourceRPCSubtype(nullptr) {} - ~ResourceRPCSubtype() override; - template - explicit PROTOBUF_CONSTEXPR ResourceRPCSubtype(::google::protobuf::internal::ConstantInitialized); + inline StreamStatusResponse() : StreamStatusResponse(nullptr) {} + ~StreamStatusResponse() override; + explicit PROTOBUF_CONSTEXPR StreamStatusResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ResourceRPCSubtype(const ResourceRPCSubtype& from) - : ResourceRPCSubtype(nullptr, from) {} - ResourceRPCSubtype(ResourceRPCSubtype&& from) noexcept - : ResourceRPCSubtype() { + StreamStatusResponse(const StreamStatusResponse& from); + StreamStatusResponse(StreamStatusResponse&& from) noexcept + : StreamStatusResponse() { *this = ::std::move(from); } - inline ResourceRPCSubtype& operator=(const ResourceRPCSubtype& from) { + inline StreamStatusResponse& operator=(const StreamStatusResponse& from) { CopyFrom(from); return *this; } - inline ResourceRPCSubtype& operator=(ResourceRPCSubtype&& from) noexcept { + inline StreamStatusResponse& operator=(StreamStatusResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -5710,196 +5993,149 @@ class ResourceRPCSubtype final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ResourceRPCSubtype& default_instance() { + static const StreamStatusResponse& default_instance() { return *internal_default_instance(); } - static inline const ResourceRPCSubtype* internal_default_instance() { - return reinterpret_cast( - &_ResourceRPCSubtype_default_instance_); + static inline const StreamStatusResponse* internal_default_instance() { + return reinterpret_cast( + &_StreamStatusResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 9; + 36; - friend void swap(ResourceRPCSubtype& a, ResourceRPCSubtype& b) { + friend void swap(StreamStatusResponse& a, StreamStatusResponse& b) { a.Swap(&b); } - inline void Swap(ResourceRPCSubtype* other) { + inline void Swap(StreamStatusResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ResourceRPCSubtype* other) { + void UnsafeArenaSwap(StreamStatusResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ResourceRPCSubtype* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ResourceRPCSubtype& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ResourceRPCSubtype& from) { - ResourceRPCSubtype::MergeImpl(*this, from); + StreamStatusResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const StreamStatusResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const StreamStatusResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ResourceRPCSubtype* other); + void SetCachedSize(int size) const final; + void InternalSwap(StreamStatusResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.robot.v1.ResourceRPCSubtype"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.StreamStatusResponse"; } protected: - explicit ResourceRPCSubtype(::google::protobuf::Arena* arena); - ResourceRPCSubtype(::google::protobuf::Arena* arena, const ResourceRPCSubtype& from); + explicit StreamStatusResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kProtoServiceFieldNumber = 2, - kSubtypeFieldNumber = 1, + kStatusFieldNumber = 1, }; - // string proto_service = 2 [json_name = "protoService"]; - void clear_proto_service() ; - const std::string& proto_service() const; - template - void set_proto_service(Arg_&& arg, Args_... args); - std::string* mutable_proto_service(); - PROTOBUF_NODISCARD std::string* release_proto_service(); - void set_allocated_proto_service(std::string* value); - + // repeated .viam.robot.v1.Status status = 1 [json_name = "status"]; + int status_size() const; private: - const std::string& _internal_proto_service() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_proto_service( - const std::string& value); - std::string* _internal_mutable_proto_service(); - + int _internal_status_size() const; public: - // .viam.common.v1.ResourceName subtype = 1 [json_name = "subtype"]; - bool has_subtype() const; - void clear_subtype() ; - const ::viam::common::v1::ResourceName& subtype() const; - PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_subtype(); - ::viam::common::v1::ResourceName* mutable_subtype(); - void set_allocated_subtype(::viam::common::v1::ResourceName* value); - void unsafe_arena_set_allocated_subtype(::viam::common::v1::ResourceName* value); - ::viam::common::v1::ResourceName* unsafe_arena_release_subtype(); - + void clear_status(); + ::viam::robot::v1::Status* mutable_status(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::Status >* + mutable_status(); private: - const ::viam::common::v1::ResourceName& _internal_subtype() const; - ::viam::common::v1::ResourceName* _internal_mutable_subtype(); - + const ::viam::robot::v1::Status& _internal_status(int index) const; + ::viam::robot::v1::Status* _internal_add_status(); public: - // @@protoc_insertion_point(class_scope:viam.robot.v1.ResourceRPCSubtype) + const ::viam::robot::v1::Status& status(int index) const; + ::viam::robot::v1::Status* add_status(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::Status >& + status() const; + + // @@protoc_insertion_point(class_scope:viam.robot.v1.StreamStatusResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 54, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr proto_service_; - ::viam::common::v1::ResourceName* subtype_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::Status > status_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ResourceNamesResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.ResourceNamesResponse) */ { +class StopExtraParameters final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.StopExtraParameters) */ { public: - inline ResourceNamesResponse() : ResourceNamesResponse(nullptr) {} - ~ResourceNamesResponse() override; - template - explicit PROTOBUF_CONSTEXPR ResourceNamesResponse(::google::protobuf::internal::ConstantInitialized); + inline StopExtraParameters() : StopExtraParameters(nullptr) {} + ~StopExtraParameters() override; + explicit PROTOBUF_CONSTEXPR StopExtraParameters(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ResourceNamesResponse(const ResourceNamesResponse& from) - : ResourceNamesResponse(nullptr, from) {} - ResourceNamesResponse(ResourceNamesResponse&& from) noexcept - : ResourceNamesResponse() { + StopExtraParameters(const StopExtraParameters& from); + StopExtraParameters(StopExtraParameters&& from) noexcept + : StopExtraParameters() { *this = ::std::move(from); } - inline ResourceNamesResponse& operator=(const ResourceNamesResponse& from) { + inline StopExtraParameters& operator=(const StopExtraParameters& from) { CopyFrom(from); return *this; } - inline ResourceNamesResponse& operator=(ResourceNamesResponse&& from) noexcept { + inline StopExtraParameters& operator=(StopExtraParameters&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -5909,180 +6145,169 @@ class ResourceNamesResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ResourceNamesResponse& default_instance() { + static const StopExtraParameters& default_instance() { return *internal_default_instance(); } - static inline const ResourceNamesResponse* internal_default_instance() { - return reinterpret_cast( - &_ResourceNamesResponse_default_instance_); + static inline const StopExtraParameters* internal_default_instance() { + return reinterpret_cast( + &_StopExtraParameters_default_instance_); } static constexpr int kIndexInFileMessages = - 8; + 37; - friend void swap(ResourceNamesResponse& a, ResourceNamesResponse& b) { + friend void swap(StopExtraParameters& a, StopExtraParameters& b) { a.Swap(&b); } - inline void Swap(ResourceNamesResponse* other) { + inline void Swap(StopExtraParameters* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ResourceNamesResponse* other) { + void UnsafeArenaSwap(StopExtraParameters* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ResourceNamesResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ResourceNamesResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ResourceNamesResponse& from) { - ResourceNamesResponse::MergeImpl(*this, from); + StopExtraParameters* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const StopExtraParameters& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const StopExtraParameters& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ResourceNamesResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(StopExtraParameters* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.robot.v1.ResourceNamesResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.StopExtraParameters"; } protected: - explicit ResourceNamesResponse(::google::protobuf::Arena* arena); - ResourceNamesResponse(::google::protobuf::Arena* arena, const ResourceNamesResponse& from); + explicit StopExtraParameters(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kResourcesFieldNumber = 1, + kNameFieldNumber = 1, + kParamsFieldNumber = 2, }; - // repeated .viam.common.v1.ResourceName resources = 1 [json_name = "resources"]; - int resources_size() const; + // .viam.common.v1.ResourceName name = 1 [json_name = "name"]; + bool has_name() const; + private: + bool _internal_has_name() const; + public: + void clear_name(); + const ::viam::common::v1::ResourceName& name() const; + PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_name(); + ::viam::common::v1::ResourceName* mutable_name(); + void set_allocated_name(::viam::common::v1::ResourceName* name); private: - int _internal_resources_size() const; + const ::viam::common::v1::ResourceName& _internal_name() const; + ::viam::common::v1::ResourceName* _internal_mutable_name(); + public: + void unsafe_arena_set_allocated_name( + ::viam::common::v1::ResourceName* name); + ::viam::common::v1::ResourceName* unsafe_arena_release_name(); + // .google.protobuf.Struct params = 2 [json_name = "params"]; + bool has_params() const; + private: + bool _internal_has_params() const; public: - void clear_resources() ; - ::viam::common::v1::ResourceName* mutable_resources(int index); - ::google::protobuf::RepeatedPtrField< ::viam::common::v1::ResourceName >* - mutable_resources(); + void clear_params(); + const ::PROTOBUF_NAMESPACE_ID::Struct& params() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_params(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_params(); + void set_allocated_params(::PROTOBUF_NAMESPACE_ID::Struct* params); private: - const ::google::protobuf::RepeatedPtrField<::viam::common::v1::ResourceName>& _internal_resources() const; - ::google::protobuf::RepeatedPtrField<::viam::common::v1::ResourceName>* _internal_mutable_resources(); + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_params() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_params(); public: - const ::viam::common::v1::ResourceName& resources(int index) const; - ::viam::common::v1::ResourceName* add_resources(); - const ::google::protobuf::RepeatedPtrField< ::viam::common::v1::ResourceName >& - resources() const; - // @@protoc_insertion_point(class_scope:viam.robot.v1.ResourceNamesResponse) + void unsafe_arena_set_allocated_params( + ::PROTOBUF_NAMESPACE_ID::Struct* params); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_params(); + + // @@protoc_insertion_point(class_scope:viam.robot.v1.StopExtraParameters) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::common::v1::ResourceName > resources_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::viam::common::v1::ResourceName* name_; + ::PROTOBUF_NAMESPACE_ID::Struct* params_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Operation final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.Operation) */ { +class StopAllRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.StopAllRequest) */ { public: - inline Operation() : Operation(nullptr) {} - ~Operation() override; - template - explicit PROTOBUF_CONSTEXPR Operation(::google::protobuf::internal::ConstantInitialized); + inline StopAllRequest() : StopAllRequest(nullptr) {} + ~StopAllRequest() override; + explicit PROTOBUF_CONSTEXPR StopAllRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Operation(const Operation& from) - : Operation(nullptr, from) {} - Operation(Operation&& from) noexcept - : Operation() { + StopAllRequest(const StopAllRequest& from); + StopAllRequest(StopAllRequest&& from) noexcept + : StopAllRequest() { *this = ::std::move(from); } - inline Operation& operator=(const Operation& from) { + inline StopAllRequest& operator=(const StopAllRequest& from) { CopyFrom(from); return *this; } - inline Operation& operator=(Operation&& from) noexcept { + inline StopAllRequest& operator=(StopAllRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -6092,250 +6317,148 @@ class Operation final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Operation& default_instance() { + static const StopAllRequest& default_instance() { return *internal_default_instance(); } - static inline const Operation* internal_default_instance() { - return reinterpret_cast( - &_Operation_default_instance_); + static inline const StopAllRequest* internal_default_instance() { + return reinterpret_cast( + &_StopAllRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 12; + 38; - friend void swap(Operation& a, Operation& b) { + friend void swap(StopAllRequest& a, StopAllRequest& b) { a.Swap(&b); } - inline void Swap(Operation* other) { + inline void Swap(StopAllRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Operation* other) { + void UnsafeArenaSwap(StopAllRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Operation* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Operation& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Operation& from) { - Operation::MergeImpl(*this, from); + StopAllRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const StopAllRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const StopAllRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Operation* other); + void SetCachedSize(int size) const final; + void InternalSwap(StopAllRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.robot.v1.Operation"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.StopAllRequest"; } protected: - explicit Operation(::google::protobuf::Arena* arena); - Operation(::google::protobuf::Arena* arena, const Operation& from); + explicit StopAllRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kIdFieldNumber = 1, - kMethodFieldNumber = 2, - kSessionIdFieldNumber = 5, - kArgumentsFieldNumber = 3, - kStartedFieldNumber = 4, + kExtraFieldNumber = 99, }; - // string id = 1 [json_name = "id"]; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - - private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); - - public: - // string method = 2 [json_name = "method"]; - void clear_method() ; - const std::string& method() const; - template - void set_method(Arg_&& arg, Args_... args); - std::string* mutable_method(); - PROTOBUF_NODISCARD std::string* release_method(); - void set_allocated_method(std::string* value); - - private: - const std::string& _internal_method() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_method( - const std::string& value); - std::string* _internal_mutable_method(); - - public: - // optional string session_id = 5 [json_name = "sessionId"]; - bool has_session_id() const; - void clear_session_id() ; - const std::string& session_id() const; - template - void set_session_id(Arg_&& arg, Args_... args); - std::string* mutable_session_id(); - PROTOBUF_NODISCARD std::string* release_session_id(); - void set_allocated_session_id(std::string* value); - + // repeated .viam.robot.v1.StopExtraParameters extra = 99 [json_name = "extra"]; + int extra_size() const; private: - const std::string& _internal_session_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_session_id( - const std::string& value); - std::string* _internal_mutable_session_id(); - + int _internal_extra_size() const; public: - // .google.protobuf.Struct arguments = 3 [json_name = "arguments"]; - bool has_arguments() const; - void clear_arguments() ; - const ::google::protobuf::Struct& arguments() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_arguments(); - ::google::protobuf::Struct* mutable_arguments(); - void set_allocated_arguments(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_arguments(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_arguments(); - + void clear_extra(); + ::viam::robot::v1::StopExtraParameters* mutable_extra(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::StopExtraParameters >* + mutable_extra(); private: - const ::google::protobuf::Struct& _internal_arguments() const; - ::google::protobuf::Struct* _internal_mutable_arguments(); - + const ::viam::robot::v1::StopExtraParameters& _internal_extra(int index) const; + ::viam::robot::v1::StopExtraParameters* _internal_add_extra(); public: - // .google.protobuf.Timestamp started = 4 [json_name = "started"]; - bool has_started() const; - void clear_started() ; - const ::google::protobuf::Timestamp& started() const; - PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_started(); - ::google::protobuf::Timestamp* mutable_started(); - void set_allocated_started(::google::protobuf::Timestamp* value); - void unsafe_arena_set_allocated_started(::google::protobuf::Timestamp* value); - ::google::protobuf::Timestamp* unsafe_arena_release_started(); - - private: - const ::google::protobuf::Timestamp& _internal_started() const; - ::google::protobuf::Timestamp* _internal_mutable_started(); + const ::viam::robot::v1::StopExtraParameters& extra(int index) const; + ::viam::robot::v1::StopExtraParameters* add_extra(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::StopExtraParameters >& + extra() const; - public: - // @@protoc_insertion_point(class_scope:viam.robot.v1.Operation) + // @@protoc_insertion_point(class_scope:viam.robot.v1.StopAllRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 5, 2, - 50, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr id_; - ::google::protobuf::internal::ArenaStringPtr method_; - ::google::protobuf::internal::ArenaStringPtr session_id_; - ::google::protobuf::Struct* arguments_; - ::google::protobuf::Timestamp* started_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::StopExtraParameters > extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetStatusRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.GetStatusRequest) */ { +class StopAllResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.robot.v1.StopAllResponse) */ { public: - inline GetStatusRequest() : GetStatusRequest(nullptr) {} - ~GetStatusRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetStatusRequest(::google::protobuf::internal::ConstantInitialized); + inline StopAllResponse() : StopAllResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR StopAllResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetStatusRequest(const GetStatusRequest& from) - : GetStatusRequest(nullptr, from) {} - GetStatusRequest(GetStatusRequest&& from) noexcept - : GetStatusRequest() { + StopAllResponse(const StopAllResponse& from); + StopAllResponse(StopAllResponse&& from) noexcept + : StopAllResponse() { *this = ::std::move(from); } - inline GetStatusRequest& operator=(const GetStatusRequest& from) { + inline StopAllResponse& operator=(const StopAllResponse& from) { CopyFrom(from); return *this; } - inline GetStatusRequest& operator=(GetStatusRequest&& from) noexcept { + inline StopAllResponse& operator=(StopAllResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -6345,180 +6468,114 @@ class GetStatusRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetStatusRequest& default_instance() { + static const StopAllResponse& default_instance() { return *internal_default_instance(); } - static inline const GetStatusRequest* internal_default_instance() { - return reinterpret_cast( - &_GetStatusRequest_default_instance_); + static inline const StopAllResponse* internal_default_instance() { + return reinterpret_cast( + &_StopAllResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 28; + 39; - friend void swap(GetStatusRequest& a, GetStatusRequest& b) { + friend void swap(StopAllResponse& a, StopAllResponse& b) { a.Swap(&b); } - inline void Swap(GetStatusRequest* other) { + inline void Swap(StopAllResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetStatusRequest* other) { + void UnsafeArenaSwap(StopAllResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetStatusRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + StopAllResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetStatusRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetStatusRequest& from) { - GetStatusRequest::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const StopAllResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const StopAllResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetStatusRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.robot.v1.GetStatusRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.StopAllResponse"; } protected: - explicit GetStatusRequest(::google::protobuf::Arena* arena); - GetStatusRequest(::google::protobuf::Arena* arena, const GetStatusRequest& from); + explicit StopAllResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kResourceNamesFieldNumber = 1, - }; - // repeated .viam.common.v1.ResourceName resource_names = 1 [json_name = "resourceNames"]; - int resource_names_size() const; - private: - int _internal_resource_names_size() const; - - public: - void clear_resource_names() ; - ::viam::common::v1::ResourceName* mutable_resource_names(int index); - ::google::protobuf::RepeatedPtrField< ::viam::common::v1::ResourceName >* - mutable_resource_names(); - private: - const ::google::protobuf::RepeatedPtrField<::viam::common::v1::ResourceName>& _internal_resource_names() const; - ::google::protobuf::RepeatedPtrField<::viam::common::v1::ResourceName>* _internal_mutable_resource_names(); - public: - const ::viam::common::v1::ResourceName& resource_names(int index) const; - ::viam::common::v1::ResourceName* add_resource_names(); - const ::google::protobuf::RepeatedPtrField< ::viam::common::v1::ResourceName >& - resource_names() const; - // @@protoc_insertion_point(class_scope:viam.robot.v1.GetStatusRequest) + // @@protoc_insertion_point(class_scope:viam.robot.v1.StopAllResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::common::v1::ResourceName > resource_names_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class DiscoveryQuery final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.DiscoveryQuery) */ { +class StartSessionRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.StartSessionRequest) */ { public: - inline DiscoveryQuery() : DiscoveryQuery(nullptr) {} - ~DiscoveryQuery() override; - template - explicit PROTOBUF_CONSTEXPR DiscoveryQuery(::google::protobuf::internal::ConstantInitialized); + inline StartSessionRequest() : StartSessionRequest(nullptr) {} + ~StartSessionRequest() override; + explicit PROTOBUF_CONSTEXPR StartSessionRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline DiscoveryQuery(const DiscoveryQuery& from) - : DiscoveryQuery(nullptr, from) {} - DiscoveryQuery(DiscoveryQuery&& from) noexcept - : DiscoveryQuery() { + StartSessionRequest(const StartSessionRequest& from); + StartSessionRequest(StartSessionRequest&& from) noexcept + : StartSessionRequest() { *this = ::std::move(from); } - inline DiscoveryQuery& operator=(const DiscoveryQuery& from) { + inline StartSessionRequest& operator=(const StartSessionRequest& from) { CopyFrom(from); return *this; } - inline DiscoveryQuery& operator=(DiscoveryQuery&& from) noexcept { + inline StartSessionRequest& operator=(StartSessionRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -6528,214 +6585,145 @@ class DiscoveryQuery final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const DiscoveryQuery& default_instance() { + static const StartSessionRequest& default_instance() { return *internal_default_instance(); } - static inline const DiscoveryQuery* internal_default_instance() { - return reinterpret_cast( - &_DiscoveryQuery_default_instance_); + static inline const StartSessionRequest* internal_default_instance() { + return reinterpret_cast( + &_StartSessionRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 23; + 40; - friend void swap(DiscoveryQuery& a, DiscoveryQuery& b) { + friend void swap(StartSessionRequest& a, StartSessionRequest& b) { a.Swap(&b); } - inline void Swap(DiscoveryQuery* other) { + inline void Swap(StartSessionRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(DiscoveryQuery* other) { + void UnsafeArenaSwap(StartSessionRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - DiscoveryQuery* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const DiscoveryQuery& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const DiscoveryQuery& from) { - DiscoveryQuery::MergeImpl(*this, from); + StartSessionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const StartSessionRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const StartSessionRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(DiscoveryQuery* other); + void SetCachedSize(int size) const final; + void InternalSwap(StartSessionRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.robot.v1.DiscoveryQuery"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.StartSessionRequest"; } protected: - explicit DiscoveryQuery(::google::protobuf::Arena* arena); - DiscoveryQuery(::google::protobuf::Arena* arena, const DiscoveryQuery& from); + explicit StartSessionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kSubtypeFieldNumber = 1, - kModelFieldNumber = 2, - kExtraFieldNumber = 99, - }; - // string subtype = 1 [json_name = "subtype"]; - void clear_subtype() ; - const std::string& subtype() const; - template - void set_subtype(Arg_&& arg, Args_... args); - std::string* mutable_subtype(); - PROTOBUF_NODISCARD std::string* release_subtype(); - void set_allocated_subtype(std::string* value); - - private: - const std::string& _internal_subtype() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_subtype( - const std::string& value); - std::string* _internal_mutable_subtype(); - - public: - // string model = 2 [json_name = "model"]; - void clear_model() ; - const std::string& model() const; - template - void set_model(Arg_&& arg, Args_... args); - std::string* mutable_model(); - PROTOBUF_NODISCARD std::string* release_model(); - void set_allocated_model(std::string* value); + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - private: - const std::string& _internal_model() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_model( - const std::string& value); - std::string* _internal_mutable_model(); + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); + // nested types ---------------------------------------------------- - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); + // accessors ------------------------------------------------------- + enum : int { + kResumeFieldNumber = 1, + }; + // string resume = 1 [json_name = "resume"]; + void clear_resume(); + const std::string& resume() const; + template + void set_resume(ArgT0&& arg0, ArgT... args); + std::string* mutable_resume(); + PROTOBUF_NODISCARD std::string* release_resume(); + void set_allocated_resume(std::string* resume); + private: + const std::string& _internal_resume() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_resume(const std::string& value); + std::string* _internal_mutable_resume(); public: - // @@protoc_insertion_point(class_scope:viam.robot.v1.DiscoveryQuery) + + // @@protoc_insertion_point(class_scope:viam.robot.v1.StartSessionRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 1, - 49, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr subtype_; - ::google::protobuf::internal::ArenaStringPtr model_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr resume_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ConfigStatus final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.ConfigStatus) */ { +class StartSessionResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.StartSessionResponse) */ { public: - inline ConfigStatus() : ConfigStatus(nullptr) {} - ~ConfigStatus() override; - template - explicit PROTOBUF_CONSTEXPR ConfigStatus(::google::protobuf::internal::ConstantInitialized); + inline StartSessionResponse() : StartSessionResponse(nullptr) {} + ~StartSessionResponse() override; + explicit PROTOBUF_CONSTEXPR StartSessionResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ConfigStatus(const ConfigStatus& from) - : ConfigStatus(nullptr, from) {} - ConfigStatus(ConfigStatus&& from) noexcept - : ConfigStatus() { + StartSessionResponse(const StartSessionResponse& from); + StartSessionResponse(StartSessionResponse&& from) noexcept + : StartSessionResponse() { *this = ::std::move(from); } - inline ConfigStatus& operator=(const ConfigStatus& from) { + inline StartSessionResponse& operator=(const StartSessionResponse& from) { CopyFrom(from); return *this; } - inline ConfigStatus& operator=(ConfigStatus&& from) noexcept { + inline StartSessionResponse& operator=(StartSessionResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -6745,196 +6733,165 @@ class ConfigStatus final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ConfigStatus& default_instance() { + static const StartSessionResponse& default_instance() { return *internal_default_instance(); } - static inline const ConfigStatus* internal_default_instance() { - return reinterpret_cast( - &_ConfigStatus_default_instance_); + static inline const StartSessionResponse* internal_default_instance() { + return reinterpret_cast( + &_StartSessionResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 50; + 41; - friend void swap(ConfigStatus& a, ConfigStatus& b) { + friend void swap(StartSessionResponse& a, StartSessionResponse& b) { a.Swap(&b); } - inline void Swap(ConfigStatus* other) { + inline void Swap(StartSessionResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ConfigStatus* other) { + void UnsafeArenaSwap(StartSessionResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ConfigStatus* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ConfigStatus& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ConfigStatus& from) { - ConfigStatus::MergeImpl(*this, from); + StartSessionResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const StartSessionResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const StartSessionResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ConfigStatus* other); + void SetCachedSize(int size) const final; + void InternalSwap(StartSessionResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.robot.v1.ConfigStatus"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.StartSessionResponse"; } protected: - explicit ConfigStatus(::google::protobuf::Arena* arena); - ConfigStatus(::google::protobuf::Arena* arena, const ConfigStatus& from); + explicit StartSessionResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kRevisionFieldNumber = 1, - kLastUpdatedFieldNumber = 2, + kIdFieldNumber = 1, + kHeartbeatWindowFieldNumber = 2, }; - // string revision = 1 [json_name = "revision"]; - void clear_revision() ; - const std::string& revision() const; - template - void set_revision(Arg_&& arg, Args_... args); - std::string* mutable_revision(); - PROTOBUF_NODISCARD std::string* release_revision(); - void set_allocated_revision(std::string* value); - + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); private: - const std::string& _internal_revision() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_revision( - const std::string& value); - std::string* _internal_mutable_revision(); - + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); public: - // .google.protobuf.Timestamp last_updated = 2 [json_name = "lastUpdated"]; - bool has_last_updated() const; - void clear_last_updated() ; - const ::google::protobuf::Timestamp& last_updated() const; - PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_last_updated(); - ::google::protobuf::Timestamp* mutable_last_updated(); - void set_allocated_last_updated(::google::protobuf::Timestamp* value); - void unsafe_arena_set_allocated_last_updated(::google::protobuf::Timestamp* value); - ::google::protobuf::Timestamp* unsafe_arena_release_last_updated(); + // .google.protobuf.Duration heartbeat_window = 2 [json_name = "heartbeatWindow"]; + bool has_heartbeat_window() const; private: - const ::google::protobuf::Timestamp& _internal_last_updated() const; - ::google::protobuf::Timestamp* _internal_mutable_last_updated(); - + bool _internal_has_heartbeat_window() const; public: - // @@protoc_insertion_point(class_scope:viam.robot.v1.ConfigStatus) + void clear_heartbeat_window(); + const ::PROTOBUF_NAMESPACE_ID::Duration& heartbeat_window() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Duration* release_heartbeat_window(); + ::PROTOBUF_NAMESPACE_ID::Duration* mutable_heartbeat_window(); + void set_allocated_heartbeat_window(::PROTOBUF_NAMESPACE_ID::Duration* heartbeat_window); + private: + const ::PROTOBUF_NAMESPACE_ID::Duration& _internal_heartbeat_window() const; + ::PROTOBUF_NAMESPACE_ID::Duration* _internal_mutable_heartbeat_window(); + public: + void unsafe_arena_set_allocated_heartbeat_window( + ::PROTOBUF_NAMESPACE_ID::Duration* heartbeat_window); + ::PROTOBUF_NAMESPACE_ID::Duration* unsafe_arena_release_heartbeat_window(); + + // @@protoc_insertion_point(class_scope:viam.robot.v1.StartSessionResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 43, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr revision_; - ::google::protobuf::Timestamp* last_updated_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::Duration* heartbeat_window_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class TransformPoseResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.TransformPoseResponse) */ { +class SendSessionHeartbeatRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.SendSessionHeartbeatRequest) */ { public: - inline TransformPoseResponse() : TransformPoseResponse(nullptr) {} - ~TransformPoseResponse() override; - template - explicit PROTOBUF_CONSTEXPR TransformPoseResponse(::google::protobuf::internal::ConstantInitialized); + inline SendSessionHeartbeatRequest() : SendSessionHeartbeatRequest(nullptr) {} + ~SendSessionHeartbeatRequest() override; + explicit PROTOBUF_CONSTEXPR SendSessionHeartbeatRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline TransformPoseResponse(const TransformPoseResponse& from) - : TransformPoseResponse(nullptr, from) {} - TransformPoseResponse(TransformPoseResponse&& from) noexcept - : TransformPoseResponse() { + SendSessionHeartbeatRequest(const SendSessionHeartbeatRequest& from); + SendSessionHeartbeatRequest(SendSessionHeartbeatRequest&& from) noexcept + : SendSessionHeartbeatRequest() { *this = ::std::move(from); } - inline TransformPoseResponse& operator=(const TransformPoseResponse& from) { + inline SendSessionHeartbeatRequest& operator=(const SendSessionHeartbeatRequest& from) { CopyFrom(from); return *this; } - inline TransformPoseResponse& operator=(TransformPoseResponse&& from) noexcept { + inline SendSessionHeartbeatRequest& operator=(SendSessionHeartbeatRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -6944,178 +6901,144 @@ class TransformPoseResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const TransformPoseResponse& default_instance() { + static const SendSessionHeartbeatRequest& default_instance() { return *internal_default_instance(); } - static inline const TransformPoseResponse* internal_default_instance() { - return reinterpret_cast( - &_TransformPoseResponse_default_instance_); + static inline const SendSessionHeartbeatRequest* internal_default_instance() { + return reinterpret_cast( + &_SendSessionHeartbeatRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 4; + 42; - friend void swap(TransformPoseResponse& a, TransformPoseResponse& b) { + friend void swap(SendSessionHeartbeatRequest& a, SendSessionHeartbeatRequest& b) { a.Swap(&b); } - inline void Swap(TransformPoseResponse* other) { + inline void Swap(SendSessionHeartbeatRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(TransformPoseResponse* other) { + void UnsafeArenaSwap(SendSessionHeartbeatRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - TransformPoseResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const TransformPoseResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const TransformPoseResponse& from) { - TransformPoseResponse::MergeImpl(*this, from); + SendSessionHeartbeatRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SendSessionHeartbeatRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const SendSessionHeartbeatRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(TransformPoseResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(SendSessionHeartbeatRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.robot.v1.TransformPoseResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.SendSessionHeartbeatRequest"; } protected: - explicit TransformPoseResponse(::google::protobuf::Arena* arena); - TransformPoseResponse(::google::protobuf::Arena* arena, const TransformPoseResponse& from); + explicit SendSessionHeartbeatRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kPoseFieldNumber = 1, + kIdFieldNumber = 1, }; - // .viam.common.v1.PoseInFrame pose = 1 [json_name = "pose"]; - bool has_pose() const; - void clear_pose() ; - const ::viam::common::v1::PoseInFrame& pose() const; - PROTOBUF_NODISCARD ::viam::common::v1::PoseInFrame* release_pose(); - ::viam::common::v1::PoseInFrame* mutable_pose(); - void set_allocated_pose(::viam::common::v1::PoseInFrame* value); - void unsafe_arena_set_allocated_pose(::viam::common::v1::PoseInFrame* value); - ::viam::common::v1::PoseInFrame* unsafe_arena_release_pose(); - + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); private: - const ::viam::common::v1::PoseInFrame& _internal_pose() const; - ::viam::common::v1::PoseInFrame* _internal_mutable_pose(); - + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); public: - // @@protoc_insertion_point(class_scope:viam.robot.v1.TransformPoseResponse) + + // @@protoc_insertion_point(class_scope:viam.robot.v1.SendSessionHeartbeatRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::viam::common::v1::PoseInFrame* pose_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class StreamStatusResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.StreamStatusResponse) */ { +class SendSessionHeartbeatResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.robot.v1.SendSessionHeartbeatResponse) */ { public: - inline StreamStatusResponse() : StreamStatusResponse(nullptr) {} - ~StreamStatusResponse() override; - template - explicit PROTOBUF_CONSTEXPR StreamStatusResponse(::google::protobuf::internal::ConstantInitialized); + inline SendSessionHeartbeatResponse() : SendSessionHeartbeatResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR SendSessionHeartbeatResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline StreamStatusResponse(const StreamStatusResponse& from) - : StreamStatusResponse(nullptr, from) {} - StreamStatusResponse(StreamStatusResponse&& from) noexcept - : StreamStatusResponse() { + SendSessionHeartbeatResponse(const SendSessionHeartbeatResponse& from); + SendSessionHeartbeatResponse(SendSessionHeartbeatResponse&& from) noexcept + : SendSessionHeartbeatResponse() { *this = ::std::move(from); } - inline StreamStatusResponse& operator=(const StreamStatusResponse& from) { + inline SendSessionHeartbeatResponse& operator=(const SendSessionHeartbeatResponse& from) { CopyFrom(from); return *this; } - inline StreamStatusResponse& operator=(StreamStatusResponse&& from) noexcept { + inline SendSessionHeartbeatResponse& operator=(SendSessionHeartbeatResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -7125,180 +7048,114 @@ class StreamStatusResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const StreamStatusResponse& default_instance() { + static const SendSessionHeartbeatResponse& default_instance() { return *internal_default_instance(); } - static inline const StreamStatusResponse* internal_default_instance() { - return reinterpret_cast( - &_StreamStatusResponse_default_instance_); + static inline const SendSessionHeartbeatResponse* internal_default_instance() { + return reinterpret_cast( + &_SendSessionHeartbeatResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 31; + 43; - friend void swap(StreamStatusResponse& a, StreamStatusResponse& b) { + friend void swap(SendSessionHeartbeatResponse& a, SendSessionHeartbeatResponse& b) { a.Swap(&b); } - inline void Swap(StreamStatusResponse* other) { + inline void Swap(SendSessionHeartbeatResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(StreamStatusResponse* other) { + void UnsafeArenaSwap(SendSessionHeartbeatResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - StreamStatusResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SendSessionHeartbeatResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const StreamStatusResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const StreamStatusResponse& from) { - StreamStatusResponse::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const SendSessionHeartbeatResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const SendSessionHeartbeatResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(StreamStatusResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.robot.v1.StreamStatusResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.SendSessionHeartbeatResponse"; } protected: - explicit StreamStatusResponse(::google::protobuf::Arena* arena); - StreamStatusResponse(::google::protobuf::Arena* arena, const StreamStatusResponse& from); + explicit SendSessionHeartbeatResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kStatusFieldNumber = 1, - }; - // repeated .viam.robot.v1.Status status = 1 [json_name = "status"]; - int status_size() const; - private: - int _internal_status_size() const; - - public: - void clear_status() ; - ::viam::robot::v1::Status* mutable_status(int index); - ::google::protobuf::RepeatedPtrField< ::viam::robot::v1::Status >* - mutable_status(); - private: - const ::google::protobuf::RepeatedPtrField<::viam::robot::v1::Status>& _internal_status() const; - ::google::protobuf::RepeatedPtrField<::viam::robot::v1::Status>* _internal_mutable_status(); - public: - const ::viam::robot::v1::Status& status(int index) const; - ::viam::robot::v1::Status* add_status(); - const ::google::protobuf::RepeatedPtrField< ::viam::robot::v1::Status >& - status() const; - // @@protoc_insertion_point(class_scope:viam.robot.v1.StreamStatusResponse) + // @@protoc_insertion_point(class_scope:viam.robot.v1.SendSessionHeartbeatResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::robot::v1::Status > status_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class StopAllRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.StopAllRequest) */ { +class LogRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.LogRequest) */ { public: - inline StopAllRequest() : StopAllRequest(nullptr) {} - ~StopAllRequest() override; - template - explicit PROTOBUF_CONSTEXPR StopAllRequest(::google::protobuf::internal::ConstantInitialized); + inline LogRequest() : LogRequest(nullptr) {} + ~LogRequest() override; + explicit PROTOBUF_CONSTEXPR LogRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline StopAllRequest(const StopAllRequest& from) - : StopAllRequest(nullptr, from) {} - StopAllRequest(StopAllRequest&& from) noexcept - : StopAllRequest() { + LogRequest(const LogRequest& from); + LogRequest(LogRequest&& from) noexcept + : LogRequest() { *this = ::std::move(from); } - inline StopAllRequest& operator=(const StopAllRequest& from) { + inline LogRequest& operator=(const LogRequest& from) { CopyFrom(from); return *this; } - inline StopAllRequest& operator=(StopAllRequest&& from) noexcept { + inline LogRequest& operator=(LogRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -7308,180 +7165,148 @@ class StopAllRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const StopAllRequest& default_instance() { + static const LogRequest& default_instance() { return *internal_default_instance(); } - static inline const StopAllRequest* internal_default_instance() { - return reinterpret_cast( - &_StopAllRequest_default_instance_); + static inline const LogRequest* internal_default_instance() { + return reinterpret_cast( + &_LogRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 33; + 44; - friend void swap(StopAllRequest& a, StopAllRequest& b) { + friend void swap(LogRequest& a, LogRequest& b) { a.Swap(&b); } - inline void Swap(StopAllRequest* other) { + inline void Swap(LogRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(StopAllRequest* other) { + void UnsafeArenaSwap(LogRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - StopAllRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const StopAllRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const StopAllRequest& from) { - StopAllRequest::MergeImpl(*this, from); + LogRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const LogRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const LogRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(StopAllRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(LogRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.robot.v1.StopAllRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.LogRequest"; } protected: - explicit StopAllRequest(::google::protobuf::Arena* arena); - StopAllRequest(::google::protobuf::Arena* arena, const StopAllRequest& from); + explicit LogRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kExtraFieldNumber = 99, + kLogsFieldNumber = 1, }; - // repeated .viam.robot.v1.StopExtraParameters extra = 99 [json_name = "extra"]; - int extra_size() const; + // repeated .viam.common.v1.LogEntry logs = 1 [json_name = "logs"]; + int logs_size() const; private: - int _internal_extra_size() const; - + int _internal_logs_size() const; public: - void clear_extra() ; - ::viam::robot::v1::StopExtraParameters* mutable_extra(int index); - ::google::protobuf::RepeatedPtrField< ::viam::robot::v1::StopExtraParameters >* - mutable_extra(); + void clear_logs(); + ::viam::common::v1::LogEntry* mutable_logs(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::LogEntry >* + mutable_logs(); private: - const ::google::protobuf::RepeatedPtrField<::viam::robot::v1::StopExtraParameters>& _internal_extra() const; - ::google::protobuf::RepeatedPtrField<::viam::robot::v1::StopExtraParameters>* _internal_mutable_extra(); + const ::viam::common::v1::LogEntry& _internal_logs(int index) const; + ::viam::common::v1::LogEntry* _internal_add_logs(); public: - const ::viam::robot::v1::StopExtraParameters& extra(int index) const; - ::viam::robot::v1::StopExtraParameters* add_extra(); - const ::google::protobuf::RepeatedPtrField< ::viam::robot::v1::StopExtraParameters >& - extra() const; - // @@protoc_insertion_point(class_scope:viam.robot.v1.StopAllRequest) + const ::viam::common::v1::LogEntry& logs(int index) const; + ::viam::common::v1::LogEntry* add_logs(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::LogEntry >& + logs() const; + + // @@protoc_insertion_point(class_scope:viam.robot.v1.LogRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::robot::v1::StopExtraParameters > extra_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::LogEntry > logs_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ResourceRPCSubtypesResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.ResourceRPCSubtypesResponse) */ { +class LogResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.robot.v1.LogResponse) */ { public: - inline ResourceRPCSubtypesResponse() : ResourceRPCSubtypesResponse(nullptr) {} - ~ResourceRPCSubtypesResponse() override; - template - explicit PROTOBUF_CONSTEXPR ResourceRPCSubtypesResponse(::google::protobuf::internal::ConstantInitialized); + inline LogResponse() : LogResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR LogResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ResourceRPCSubtypesResponse(const ResourceRPCSubtypesResponse& from) - : ResourceRPCSubtypesResponse(nullptr, from) {} - ResourceRPCSubtypesResponse(ResourceRPCSubtypesResponse&& from) noexcept - : ResourceRPCSubtypesResponse() { + LogResponse(const LogResponse& from); + LogResponse(LogResponse&& from) noexcept + : LogResponse() { *this = ::std::move(from); } - inline ResourceRPCSubtypesResponse& operator=(const ResourceRPCSubtypesResponse& from) { + inline LogResponse& operator=(const LogResponse& from) { CopyFrom(from); return *this; } - inline ResourceRPCSubtypesResponse& operator=(ResourceRPCSubtypesResponse&& from) noexcept { + inline LogResponse& operator=(LogResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -7491,180 +7316,113 @@ class ResourceRPCSubtypesResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ResourceRPCSubtypesResponse& default_instance() { + static const LogResponse& default_instance() { return *internal_default_instance(); } - static inline const ResourceRPCSubtypesResponse* internal_default_instance() { - return reinterpret_cast( - &_ResourceRPCSubtypesResponse_default_instance_); + static inline const LogResponse* internal_default_instance() { + return reinterpret_cast( + &_LogResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 11; + 45; - friend void swap(ResourceRPCSubtypesResponse& a, ResourceRPCSubtypesResponse& b) { + friend void swap(LogResponse& a, LogResponse& b) { a.Swap(&b); } - inline void Swap(ResourceRPCSubtypesResponse* other) { + inline void Swap(LogResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ResourceRPCSubtypesResponse* other) { + void UnsafeArenaSwap(LogResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ResourceRPCSubtypesResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + LogResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ResourceRPCSubtypesResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ResourceRPCSubtypesResponse& from) { - ResourceRPCSubtypesResponse::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const LogResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const LogResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(ResourceRPCSubtypesResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.robot.v1.ResourceRPCSubtypesResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.LogResponse"; } protected: - explicit ResourceRPCSubtypesResponse(::google::protobuf::Arena* arena); - ResourceRPCSubtypesResponse(::google::protobuf::Arena* arena, const ResourceRPCSubtypesResponse& from); + explicit LogResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kResourceRpcSubtypesFieldNumber = 1, - }; - // repeated .viam.robot.v1.ResourceRPCSubtype resource_rpc_subtypes = 1 [json_name = "resourceRpcSubtypes"]; - int resource_rpc_subtypes_size() const; - private: - int _internal_resource_rpc_subtypes_size() const; - - public: - void clear_resource_rpc_subtypes() ; - ::viam::robot::v1::ResourceRPCSubtype* mutable_resource_rpc_subtypes(int index); - ::google::protobuf::RepeatedPtrField< ::viam::robot::v1::ResourceRPCSubtype >* - mutable_resource_rpc_subtypes(); - private: - const ::google::protobuf::RepeatedPtrField<::viam::robot::v1::ResourceRPCSubtype>& _internal_resource_rpc_subtypes() const; - ::google::protobuf::RepeatedPtrField<::viam::robot::v1::ResourceRPCSubtype>* _internal_mutable_resource_rpc_subtypes(); - public: - const ::viam::robot::v1::ResourceRPCSubtype& resource_rpc_subtypes(int index) const; - ::viam::robot::v1::ResourceRPCSubtype* add_resource_rpc_subtypes(); - const ::google::protobuf::RepeatedPtrField< ::viam::robot::v1::ResourceRPCSubtype >& - resource_rpc_subtypes() const; - // @@protoc_insertion_point(class_scope:viam.robot.v1.ResourceRPCSubtypesResponse) + // @@protoc_insertion_point(class_scope:viam.robot.v1.LogResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::robot::v1::ResourceRPCSubtype > resource_rpc_subtypes_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class LogRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.LogRequest) */ { +class GetCloudMetadataRequest final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.robot.v1.GetCloudMetadataRequest) */ { public: - inline LogRequest() : LogRequest(nullptr) {} - ~LogRequest() override; - template - explicit PROTOBUF_CONSTEXPR LogRequest(::google::protobuf::internal::ConstantInitialized); + inline GetCloudMetadataRequest() : GetCloudMetadataRequest(nullptr) {} + explicit PROTOBUF_CONSTEXPR GetCloudMetadataRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline LogRequest(const LogRequest& from) - : LogRequest(nullptr, from) {} - LogRequest(LogRequest&& from) noexcept - : LogRequest() { + GetCloudMetadataRequest(const GetCloudMetadataRequest& from); + GetCloudMetadataRequest(GetCloudMetadataRequest&& from) noexcept + : GetCloudMetadataRequest() { *this = ::std::move(from); } - inline LogRequest& operator=(const LogRequest& from) { + inline GetCloudMetadataRequest& operator=(const GetCloudMetadataRequest& from) { CopyFrom(from); return *this; } - inline LogRequest& operator=(LogRequest&& from) noexcept { + inline GetCloudMetadataRequest& operator=(GetCloudMetadataRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -7674,180 +7432,114 @@ class LogRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const LogRequest& default_instance() { + static const GetCloudMetadataRequest& default_instance() { return *internal_default_instance(); } - static inline const LogRequest* internal_default_instance() { - return reinterpret_cast( - &_LogRequest_default_instance_); + static inline const GetCloudMetadataRequest* internal_default_instance() { + return reinterpret_cast( + &_GetCloudMetadataRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 39; + 46; - friend void swap(LogRequest& a, LogRequest& b) { + friend void swap(GetCloudMetadataRequest& a, GetCloudMetadataRequest& b) { a.Swap(&b); } - inline void Swap(LogRequest* other) { + inline void Swap(GetCloudMetadataRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(LogRequest* other) { + void UnsafeArenaSwap(GetCloudMetadataRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - LogRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + GetCloudMetadataRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const LogRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const LogRequest& from) { - LogRequest::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const GetCloudMetadataRequest& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const GetCloudMetadataRequest& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(LogRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.robot.v1.LogRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.GetCloudMetadataRequest"; } protected: - explicit LogRequest(::google::protobuf::Arena* arena); - LogRequest(::google::protobuf::Arena* arena, const LogRequest& from); + explicit GetCloudMetadataRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kLogsFieldNumber = 1, - }; - // repeated .viam.common.v1.LogEntry logs = 1 [json_name = "logs"]; - int logs_size() const; - private: - int _internal_logs_size() const; - - public: - void clear_logs() ; - ::viam::common::v1::LogEntry* mutable_logs(int index); - ::google::protobuf::RepeatedPtrField< ::viam::common::v1::LogEntry >* - mutable_logs(); - private: - const ::google::protobuf::RepeatedPtrField<::viam::common::v1::LogEntry>& _internal_logs() const; - ::google::protobuf::RepeatedPtrField<::viam::common::v1::LogEntry>* _internal_mutable_logs(); - public: - const ::viam::common::v1::LogEntry& logs(int index) const; - ::viam::common::v1::LogEntry* add_logs(); - const ::google::protobuf::RepeatedPtrField< ::viam::common::v1::LogEntry >& - logs() const; - // @@protoc_insertion_point(class_scope:viam.robot.v1.LogRequest) + // @@protoc_insertion_point(class_scope:viam.robot.v1.GetCloudMetadataRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::common::v1::LogEntry > logs_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetStatusResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.GetStatusResponse) */ { +class GetCloudMetadataResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.GetCloudMetadataResponse) */ { public: - inline GetStatusResponse() : GetStatusResponse(nullptr) {} - ~GetStatusResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetStatusResponse(::google::protobuf::internal::ConstantInitialized); + inline GetCloudMetadataResponse() : GetCloudMetadataResponse(nullptr) {} + ~GetCloudMetadataResponse() override; + explicit PROTOBUF_CONSTEXPR GetCloudMetadataResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetStatusResponse(const GetStatusResponse& from) - : GetStatusResponse(nullptr, from) {} - GetStatusResponse(GetStatusResponse&& from) noexcept - : GetStatusResponse() { + GetCloudMetadataResponse(const GetCloudMetadataResponse& from); + GetCloudMetadataResponse(GetCloudMetadataResponse&& from) noexcept + : GetCloudMetadataResponse() { *this = ::std::move(from); } - inline GetStatusResponse& operator=(const GetStatusResponse& from) { + inline GetCloudMetadataResponse& operator=(const GetCloudMetadataResponse& from) { CopyFrom(from); return *this; } - inline GetStatusResponse& operator=(GetStatusResponse&& from) noexcept { + inline GetCloudMetadataResponse& operator=(GetCloudMetadataResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -7857,180 +7549,209 @@ class GetStatusResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetStatusResponse& default_instance() { + static const GetCloudMetadataResponse& default_instance() { return *internal_default_instance(); } - static inline const GetStatusResponse* internal_default_instance() { - return reinterpret_cast( - &_GetStatusResponse_default_instance_); + static inline const GetCloudMetadataResponse* internal_default_instance() { + return reinterpret_cast( + &_GetCloudMetadataResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 29; + 47; - friend void swap(GetStatusResponse& a, GetStatusResponse& b) { + friend void swap(GetCloudMetadataResponse& a, GetCloudMetadataResponse& b) { a.Swap(&b); } - inline void Swap(GetStatusResponse* other) { + inline void Swap(GetCloudMetadataResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetStatusResponse* other) { + void UnsafeArenaSwap(GetCloudMetadataResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetStatusResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetStatusResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetStatusResponse& from) { - GetStatusResponse::MergeImpl(*this, from); + GetCloudMetadataResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetCloudMetadataResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetCloudMetadataResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetStatusResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetCloudMetadataResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.GetCloudMetadataResponse"; + } + protected: + explicit GetCloudMetadataResponse(::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 { + kRobotPartIdFieldNumber = 1, + kPrimaryOrgIdFieldNumber = 2, + kLocationIdFieldNumber = 3, + kMachineIdFieldNumber = 4, + kMachinePartIdFieldNumber = 5, + }; + // string robot_part_id = 1 [json_name = "robotPartId", deprecated = true]; + PROTOBUF_DEPRECATED void clear_robot_part_id(); + PROTOBUF_DEPRECATED const std::string& robot_part_id() const; + template + PROTOBUF_DEPRECATED void set_robot_part_id(ArgT0&& arg0, ArgT... args); + PROTOBUF_DEPRECATED std::string* mutable_robot_part_id(); + PROTOBUF_NODISCARD PROTOBUF_DEPRECATED std::string* release_robot_part_id(); + PROTOBUF_DEPRECATED void set_allocated_robot_part_id(std::string* robot_part_id); + private: + const std::string& _internal_robot_part_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_robot_part_id(const std::string& value); + std::string* _internal_mutable_robot_part_id(); + public: + + // string primary_org_id = 2 [json_name = "primaryOrgId"]; + void clear_primary_org_id(); + const std::string& primary_org_id() const; + template + void set_primary_org_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_primary_org_id(); + PROTOBUF_NODISCARD std::string* release_primary_org_id(); + void set_allocated_primary_org_id(std::string* primary_org_id); + private: + const std::string& _internal_primary_org_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_primary_org_id(const std::string& value); + std::string* _internal_mutable_primary_org_id(); + public: + // string location_id = 3 [json_name = "locationId"]; + void clear_location_id(); + const std::string& location_id() const; + template + void set_location_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_location_id(); + PROTOBUF_NODISCARD std::string* release_location_id(); + void set_allocated_location_id(std::string* location_id); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.robot.v1.GetStatusResponse"; - } - protected: - explicit GetStatusResponse(::google::protobuf::Arena* arena); - GetStatusResponse(::google::protobuf::Arena* arena, const GetStatusResponse& from); + const std::string& _internal_location_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_location_id(const std::string& value); + std::string* _internal_mutable_location_id(); public: - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kStatusFieldNumber = 1, - }; - // repeated .viam.robot.v1.Status status = 1 [json_name = "status"]; - int status_size() const; + // string machine_id = 4 [json_name = "machineId"]; + void clear_machine_id(); + const std::string& machine_id() const; + template + void set_machine_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_machine_id(); + PROTOBUF_NODISCARD std::string* release_machine_id(); + void set_allocated_machine_id(std::string* machine_id); private: - int _internal_status_size() const; - + const std::string& _internal_machine_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_machine_id(const std::string& value); + std::string* _internal_mutable_machine_id(); public: - void clear_status() ; - ::viam::robot::v1::Status* mutable_status(int index); - ::google::protobuf::RepeatedPtrField< ::viam::robot::v1::Status >* - mutable_status(); + + // string machine_part_id = 5 [json_name = "machinePartId"]; + void clear_machine_part_id(); + const std::string& machine_part_id() const; + template + void set_machine_part_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_machine_part_id(); + PROTOBUF_NODISCARD std::string* release_machine_part_id(); + void set_allocated_machine_part_id(std::string* machine_part_id); private: - const ::google::protobuf::RepeatedPtrField<::viam::robot::v1::Status>& _internal_status() const; - ::google::protobuf::RepeatedPtrField<::viam::robot::v1::Status>* _internal_mutable_status(); + const std::string& _internal_machine_part_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_machine_part_id(const std::string& value); + std::string* _internal_mutable_machine_part_id(); public: - const ::viam::robot::v1::Status& status(int index) const; - ::viam::robot::v1::Status* add_status(); - const ::google::protobuf::RepeatedPtrField< ::viam::robot::v1::Status >& - status() const; - // @@protoc_insertion_point(class_scope:viam.robot.v1.GetStatusResponse) + + // @@protoc_insertion_point(class_scope:viam.robot.v1.GetCloudMetadataResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::robot::v1::Status > status_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr robot_part_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr primary_org_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr location_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr machine_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr machine_part_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetSessionsResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.GetSessionsResponse) */ { +class RestartModuleRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.RestartModuleRequest) */ { public: - inline GetSessionsResponse() : GetSessionsResponse(nullptr) {} - ~GetSessionsResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetSessionsResponse(::google::protobuf::internal::ConstantInitialized); + inline RestartModuleRequest() : RestartModuleRequest(nullptr) {} + ~RestartModuleRequest() override; + explicit PROTOBUF_CONSTEXPR RestartModuleRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetSessionsResponse(const GetSessionsResponse& from) - : GetSessionsResponse(nullptr, from) {} - GetSessionsResponse(GetSessionsResponse&& from) noexcept - : GetSessionsResponse() { + RestartModuleRequest(const RestartModuleRequest& from); + RestartModuleRequest(RestartModuleRequest&& from) noexcept + : RestartModuleRequest() { *this = ::std::move(from); } - inline GetSessionsResponse& operator=(const GetSessionsResponse& from) { + inline RestartModuleRequest& operator=(const RestartModuleRequest& from) { CopyFrom(from); return *this; } - inline GetSessionsResponse& operator=(GetSessionsResponse&& from) noexcept { + inline RestartModuleRequest& operator=(RestartModuleRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -8040,180 +7761,187 @@ class GetSessionsResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetSessionsResponse& default_instance() { + static const RestartModuleRequest& default_instance() { return *internal_default_instance(); } - static inline const GetSessionsResponse* internal_default_instance() { - return reinterpret_cast( - &_GetSessionsResponse_default_instance_); + enum IdOrNameCase { + kModuleId = 1, + kModuleName = 2, + ID_OR_NAME_NOT_SET = 0, + }; + + static inline const RestartModuleRequest* internal_default_instance() { + return reinterpret_cast( + &_RestartModuleRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 22; + 48; - friend void swap(GetSessionsResponse& a, GetSessionsResponse& b) { + friend void swap(RestartModuleRequest& a, RestartModuleRequest& b) { a.Swap(&b); } - inline void Swap(GetSessionsResponse* other) { + inline void Swap(RestartModuleRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetSessionsResponse* other) { + void UnsafeArenaSwap(RestartModuleRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetSessionsResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetSessionsResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetSessionsResponse& from) { - GetSessionsResponse::MergeImpl(*this, from); + RestartModuleRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const RestartModuleRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const RestartModuleRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetSessionsResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(RestartModuleRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.robot.v1.GetSessionsResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.RestartModuleRequest"; } protected: - explicit GetSessionsResponse(::google::protobuf::Arena* arena); - GetSessionsResponse(::google::protobuf::Arena* arena, const GetSessionsResponse& from); + explicit RestartModuleRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kSessionsFieldNumber = 1, + kModuleIdFieldNumber = 1, + kModuleNameFieldNumber = 2, }; - // repeated .viam.robot.v1.Session sessions = 1 [json_name = "sessions"]; - int sessions_size() const; + // string module_id = 1 [json_name = "moduleId"]; + bool has_module_id() const; private: - int _internal_sessions_size() const; + bool _internal_has_module_id() const; + public: + 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: + // string module_name = 2 [json_name = "moduleName"]; + bool has_module_name() const; + private: + bool _internal_has_module_name() const; public: - void clear_sessions() ; - ::viam::robot::v1::Session* mutable_sessions(int index); - ::google::protobuf::RepeatedPtrField< ::viam::robot::v1::Session >* - mutable_sessions(); + void clear_module_name(); + const std::string& module_name() const; + template + void set_module_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_module_name(); + PROTOBUF_NODISCARD std::string* release_module_name(); + void set_allocated_module_name(std::string* module_name); private: - const ::google::protobuf::RepeatedPtrField<::viam::robot::v1::Session>& _internal_sessions() const; - ::google::protobuf::RepeatedPtrField<::viam::robot::v1::Session>* _internal_mutable_sessions(); + const std::string& _internal_module_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_module_name(const std::string& value); + std::string* _internal_mutable_module_name(); public: - const ::viam::robot::v1::Session& sessions(int index) const; - ::viam::robot::v1::Session* add_sessions(); - const ::google::protobuf::RepeatedPtrField< ::viam::robot::v1::Session >& - sessions() const; - // @@protoc_insertion_point(class_scope:viam.robot.v1.GetSessionsResponse) + + void clear_id_or_name(); + IdOrNameCase id_or_name_case() const; + // @@protoc_insertion_point(class_scope:viam.robot.v1.RestartModuleRequest) private: class _Internal; + void set_has_module_id(); + void set_has_module_name(); + + inline bool has_id_or_name() const; + inline void clear_has_id_or_name(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + union IdOrNameUnion { + constexpr IdOrNameUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr module_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr module_name_; + } id_or_name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::robot::v1::Session > sessions_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetOperationsResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.GetOperationsResponse) */ { +class RestartModuleResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.robot.v1.RestartModuleResponse) */ { public: - inline GetOperationsResponse() : GetOperationsResponse(nullptr) {} - ~GetOperationsResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetOperationsResponse(::google::protobuf::internal::ConstantInitialized); + inline RestartModuleResponse() : RestartModuleResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR RestartModuleResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetOperationsResponse(const GetOperationsResponse& from) - : GetOperationsResponse(nullptr, from) {} - GetOperationsResponse(GetOperationsResponse&& from) noexcept - : GetOperationsResponse() { + RestartModuleResponse(const RestartModuleResponse& from); + RestartModuleResponse(RestartModuleResponse&& from) noexcept + : RestartModuleResponse() { *this = ::std::move(from); } - inline GetOperationsResponse& operator=(const GetOperationsResponse& from) { + inline RestartModuleResponse& operator=(const RestartModuleResponse& from) { CopyFrom(from); return *this; } - inline GetOperationsResponse& operator=(GetOperationsResponse&& from) noexcept { + inline RestartModuleResponse& operator=(RestartModuleResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -8223,180 +7951,113 @@ class GetOperationsResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetOperationsResponse& default_instance() { + static const RestartModuleResponse& default_instance() { return *internal_default_instance(); } - static inline const GetOperationsResponse* internal_default_instance() { - return reinterpret_cast( - &_GetOperationsResponse_default_instance_); + static inline const RestartModuleResponse* internal_default_instance() { + return reinterpret_cast( + &_RestartModuleResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 14; + 49; - friend void swap(GetOperationsResponse& a, GetOperationsResponse& b) { + friend void swap(RestartModuleResponse& a, RestartModuleResponse& b) { a.Swap(&b); } - inline void Swap(GetOperationsResponse* other) { + inline void Swap(RestartModuleResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetOperationsResponse* other) { + void UnsafeArenaSwap(RestartModuleResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetOperationsResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + RestartModuleResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetOperationsResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetOperationsResponse& from) { - GetOperationsResponse::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const RestartModuleResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const RestartModuleResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetOperationsResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.robot.v1.GetOperationsResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.RestartModuleResponse"; } protected: - explicit GetOperationsResponse(::google::protobuf::Arena* arena); - GetOperationsResponse(::google::protobuf::Arena* arena, const GetOperationsResponse& from); + explicit RestartModuleResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kOperationsFieldNumber = 1, - }; - // repeated .viam.robot.v1.Operation operations = 1 [json_name = "operations"]; - int operations_size() const; - private: - int _internal_operations_size() const; - - public: - void clear_operations() ; - ::viam::robot::v1::Operation* mutable_operations(int index); - ::google::protobuf::RepeatedPtrField< ::viam::robot::v1::Operation >* - mutable_operations(); - private: - const ::google::protobuf::RepeatedPtrField<::viam::robot::v1::Operation>& _internal_operations() const; - ::google::protobuf::RepeatedPtrField<::viam::robot::v1::Operation>* _internal_mutable_operations(); - public: - const ::viam::robot::v1::Operation& operations(int index) const; - ::viam::robot::v1::Operation* add_operations(); - const ::google::protobuf::RepeatedPtrField< ::viam::robot::v1::Operation >& - operations() const; - // @@protoc_insertion_point(class_scope:viam.robot.v1.GetOperationsResponse) + // @@protoc_insertion_point(class_scope:viam.robot.v1.RestartModuleResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::robot::v1::Operation > operations_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetMachineStatusResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.GetMachineStatusResponse) */ { +class ShutdownRequest final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.robot.v1.ShutdownRequest) */ { public: - inline GetMachineStatusResponse() : GetMachineStatusResponse(nullptr) {} - ~GetMachineStatusResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetMachineStatusResponse(::google::protobuf::internal::ConstantInitialized); + inline ShutdownRequest() : ShutdownRequest(nullptr) {} + explicit PROTOBUF_CONSTEXPR ShutdownRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetMachineStatusResponse(const GetMachineStatusResponse& from) - : GetMachineStatusResponse(nullptr, from) {} - GetMachineStatusResponse(GetMachineStatusResponse&& from) noexcept - : GetMachineStatusResponse() { + ShutdownRequest(const ShutdownRequest& from); + ShutdownRequest(ShutdownRequest&& from) noexcept + : ShutdownRequest() { *this = ::std::move(from); } - inline GetMachineStatusResponse& operator=(const GetMachineStatusResponse& from) { + inline ShutdownRequest& operator=(const ShutdownRequest& from) { CopyFrom(from); return *this; } - inline GetMachineStatusResponse& operator=(GetMachineStatusResponse&& from) noexcept { + inline ShutdownRequest& operator=(ShutdownRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -8406,198 +8067,113 @@ class GetMachineStatusResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetMachineStatusResponse& default_instance() { + static const ShutdownRequest& default_instance() { return *internal_default_instance(); } - static inline const GetMachineStatusResponse* internal_default_instance() { - return reinterpret_cast( - &_GetMachineStatusResponse_default_instance_); + static inline const ShutdownRequest* internal_default_instance() { + return reinterpret_cast( + &_ShutdownRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 48; + 50; - friend void swap(GetMachineStatusResponse& a, GetMachineStatusResponse& b) { + friend void swap(ShutdownRequest& a, ShutdownRequest& b) { a.Swap(&b); } - inline void Swap(GetMachineStatusResponse* other) { + inline void Swap(ShutdownRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetMachineStatusResponse* other) { + void UnsafeArenaSwap(ShutdownRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetMachineStatusResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ShutdownRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetMachineStatusResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetMachineStatusResponse& from) { - GetMachineStatusResponse::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const ShutdownRequest& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetMachineStatusResponse* other); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const ShutdownRequest& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); + } + public: private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.robot.v1.GetMachineStatusResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.ShutdownRequest"; } protected: - explicit GetMachineStatusResponse(::google::protobuf::Arena* arena); - GetMachineStatusResponse(::google::protobuf::Arena* arena, const GetMachineStatusResponse& from); + explicit ShutdownRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kResourcesFieldNumber = 1, - kConfigFieldNumber = 2, - }; - // repeated .viam.robot.v1.ResourceStatus resources = 1 [json_name = "resources"]; - int resources_size() const; - private: - int _internal_resources_size() const; - - public: - void clear_resources() ; - ::viam::robot::v1::ResourceStatus* mutable_resources(int index); - ::google::protobuf::RepeatedPtrField< ::viam::robot::v1::ResourceStatus >* - mutable_resources(); - private: - const ::google::protobuf::RepeatedPtrField<::viam::robot::v1::ResourceStatus>& _internal_resources() const; - ::google::protobuf::RepeatedPtrField<::viam::robot::v1::ResourceStatus>* _internal_mutable_resources(); - public: - const ::viam::robot::v1::ResourceStatus& resources(int index) const; - ::viam::robot::v1::ResourceStatus* add_resources(); - const ::google::protobuf::RepeatedPtrField< ::viam::robot::v1::ResourceStatus >& - resources() const; - // .viam.robot.v1.ConfigStatus config = 2 [json_name = "config"]; - bool has_config() const; - void clear_config() ; - const ::viam::robot::v1::ConfigStatus& config() const; - PROTOBUF_NODISCARD ::viam::robot::v1::ConfigStatus* release_config(); - ::viam::robot::v1::ConfigStatus* mutable_config(); - void set_allocated_config(::viam::robot::v1::ConfigStatus* value); - void unsafe_arena_set_allocated_config(::viam::robot::v1::ConfigStatus* value); - ::viam::robot::v1::ConfigStatus* unsafe_arena_release_config(); - - private: - const ::viam::robot::v1::ConfigStatus& _internal_config() const; - ::viam::robot::v1::ConfigStatus* _internal_mutable_config(); - - public: - // @@protoc_insertion_point(class_scope:viam.robot.v1.GetMachineStatusResponse) + // @@protoc_insertion_point(class_scope:viam.robot.v1.ShutdownRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 2, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::viam::robot::v1::ResourceStatus > resources_; - ::viam::robot::v1::ConfigStatus* config_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Discovery final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.Discovery) */ { +class ShutdownResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.robot.v1.ShutdownResponse) */ { public: - inline Discovery() : Discovery(nullptr) {} - ~Discovery() override; - template - explicit PROTOBUF_CONSTEXPR Discovery(::google::protobuf::internal::ConstantInitialized); + inline ShutdownResponse() : ShutdownResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR ShutdownResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Discovery(const Discovery& from) - : Discovery(nullptr, from) {} - Discovery(Discovery&& from) noexcept - : Discovery() { + ShutdownResponse(const ShutdownResponse& from); + ShutdownResponse(ShutdownResponse&& from) noexcept + : ShutdownResponse() { *this = ::std::move(from); } - inline Discovery& operator=(const Discovery& from) { + inline ShutdownResponse& operator=(const ShutdownResponse& from) { CopyFrom(from); return *this; } - inline Discovery& operator=(Discovery&& from) noexcept { + inline ShutdownResponse& operator=(ShutdownResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -8607,195 +8183,113 @@ class Discovery final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Discovery& default_instance() { + static const ShutdownResponse& default_instance() { return *internal_default_instance(); } - static inline const Discovery* internal_default_instance() { - return reinterpret_cast( - &_Discovery_default_instance_); + static inline const ShutdownResponse* internal_default_instance() { + return reinterpret_cast( + &_ShutdownResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 24; + 51; - friend void swap(Discovery& a, Discovery& b) { + friend void swap(ShutdownResponse& a, ShutdownResponse& b) { a.Swap(&b); } - inline void Swap(Discovery* other) { + inline void Swap(ShutdownResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Discovery* other) { + void UnsafeArenaSwap(ShutdownResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Discovery* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ShutdownResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Discovery& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Discovery& from) { - Discovery::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const ShutdownResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const ShutdownResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(Discovery* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.robot.v1.Discovery"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.ShutdownResponse"; } protected: - explicit Discovery(::google::protobuf::Arena* arena); - Discovery(::google::protobuf::Arena* arena, const Discovery& from); + explicit ShutdownResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kQueryFieldNumber = 1, - kResultsFieldNumber = 2, - }; - // .viam.robot.v1.DiscoveryQuery query = 1 [json_name = "query"]; - bool has_query() const; - void clear_query() ; - const ::viam::robot::v1::DiscoveryQuery& query() const; - PROTOBUF_NODISCARD ::viam::robot::v1::DiscoveryQuery* release_query(); - ::viam::robot::v1::DiscoveryQuery* mutable_query(); - void set_allocated_query(::viam::robot::v1::DiscoveryQuery* value); - void unsafe_arena_set_allocated_query(::viam::robot::v1::DiscoveryQuery* value); - ::viam::robot::v1::DiscoveryQuery* unsafe_arena_release_query(); - - private: - const ::viam::robot::v1::DiscoveryQuery& _internal_query() const; - ::viam::robot::v1::DiscoveryQuery* _internal_mutable_query(); - - public: - // .google.protobuf.Struct results = 2 [json_name = "results"]; - bool has_results() const; - void clear_results() ; - const ::google::protobuf::Struct& results() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_results(); - ::google::protobuf::Struct* mutable_results(); - void set_allocated_results(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_results(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_results(); - - private: - const ::google::protobuf::Struct& _internal_results() const; - ::google::protobuf::Struct* _internal_mutable_results(); - - public: - // @@protoc_insertion_point(class_scope:viam.robot.v1.Discovery) + // @@protoc_insertion_point(class_scope:viam.robot.v1.ShutdownResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 2, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::viam::robot::v1::DiscoveryQuery* query_; - ::google::protobuf::Struct* results_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class DiscoverComponentsRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.DiscoverComponentsRequest) */ { +class GetMachineStatusRequest final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.robot.v1.GetMachineStatusRequest) */ { public: - inline DiscoverComponentsRequest() : DiscoverComponentsRequest(nullptr) {} - ~DiscoverComponentsRequest() override; - template - explicit PROTOBUF_CONSTEXPR DiscoverComponentsRequest(::google::protobuf::internal::ConstantInitialized); + inline GetMachineStatusRequest() : GetMachineStatusRequest(nullptr) {} + explicit PROTOBUF_CONSTEXPR GetMachineStatusRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline DiscoverComponentsRequest(const DiscoverComponentsRequest& from) - : DiscoverComponentsRequest(nullptr, from) {} - DiscoverComponentsRequest(DiscoverComponentsRequest&& from) noexcept - : DiscoverComponentsRequest() { + GetMachineStatusRequest(const GetMachineStatusRequest& from); + GetMachineStatusRequest(GetMachineStatusRequest&& from) noexcept + : GetMachineStatusRequest() { *this = ::std::move(from); } - inline DiscoverComponentsRequest& operator=(const DiscoverComponentsRequest& from) { + inline GetMachineStatusRequest& operator=(const GetMachineStatusRequest& from) { CopyFrom(from); return *this; } - inline DiscoverComponentsRequest& operator=(DiscoverComponentsRequest&& from) noexcept { + inline GetMachineStatusRequest& operator=(GetMachineStatusRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -8805,180 +8299,114 @@ class DiscoverComponentsRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const DiscoverComponentsRequest& default_instance() { + static const GetMachineStatusRequest& default_instance() { return *internal_default_instance(); } - static inline const DiscoverComponentsRequest* internal_default_instance() { - return reinterpret_cast( - &_DiscoverComponentsRequest_default_instance_); + static inline const GetMachineStatusRequest* internal_default_instance() { + return reinterpret_cast( + &_GetMachineStatusRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 25; + 52; - friend void swap(DiscoverComponentsRequest& a, DiscoverComponentsRequest& b) { + friend void swap(GetMachineStatusRequest& a, GetMachineStatusRequest& b) { a.Swap(&b); } - inline void Swap(DiscoverComponentsRequest* other) { + inline void Swap(GetMachineStatusRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(DiscoverComponentsRequest* other) { + void UnsafeArenaSwap(GetMachineStatusRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - DiscoverComponentsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + GetMachineStatusRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const DiscoverComponentsRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const DiscoverComponentsRequest& from) { - DiscoverComponentsRequest::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const GetMachineStatusRequest& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const GetMachineStatusRequest& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(DiscoverComponentsRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.robot.v1.DiscoverComponentsRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.GetMachineStatusRequest"; } protected: - explicit DiscoverComponentsRequest(::google::protobuf::Arena* arena); - DiscoverComponentsRequest(::google::protobuf::Arena* arena, const DiscoverComponentsRequest& from); + explicit GetMachineStatusRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kQueriesFieldNumber = 1, - }; - // repeated .viam.robot.v1.DiscoveryQuery queries = 1 [json_name = "queries"]; - int queries_size() const; - private: - int _internal_queries_size() const; - - public: - void clear_queries() ; - ::viam::robot::v1::DiscoveryQuery* mutable_queries(int index); - ::google::protobuf::RepeatedPtrField< ::viam::robot::v1::DiscoveryQuery >* - mutable_queries(); - private: - const ::google::protobuf::RepeatedPtrField<::viam::robot::v1::DiscoveryQuery>& _internal_queries() const; - ::google::protobuf::RepeatedPtrField<::viam::robot::v1::DiscoveryQuery>* _internal_mutable_queries(); - public: - const ::viam::robot::v1::DiscoveryQuery& queries(int index) const; - ::viam::robot::v1::DiscoveryQuery* add_queries(); - const ::google::protobuf::RepeatedPtrField< ::viam::robot::v1::DiscoveryQuery >& - queries() const; - // @@protoc_insertion_point(class_scope:viam.robot.v1.DiscoverComponentsRequest) + // @@protoc_insertion_point(class_scope:viam.robot.v1.GetMachineStatusRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::robot::v1::DiscoveryQuery > queries_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class DiscoverComponentsResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.DiscoverComponentsResponse) */ { +class GetMachineStatusResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.GetMachineStatusResponse) */ { public: - inline DiscoverComponentsResponse() : DiscoverComponentsResponse(nullptr) {} - ~DiscoverComponentsResponse() override; - template - explicit PROTOBUF_CONSTEXPR DiscoverComponentsResponse(::google::protobuf::internal::ConstantInitialized); + inline GetMachineStatusResponse() : GetMachineStatusResponse(nullptr) {} + ~GetMachineStatusResponse() override; + explicit PROTOBUF_CONSTEXPR GetMachineStatusResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline DiscoverComponentsResponse(const DiscoverComponentsResponse& from) - : DiscoverComponentsResponse(nullptr, from) {} - DiscoverComponentsResponse(DiscoverComponentsResponse&& from) noexcept - : DiscoverComponentsResponse() { + GetMachineStatusResponse(const GetMachineStatusResponse& from); + GetMachineStatusResponse(GetMachineStatusResponse&& from) noexcept + : GetMachineStatusResponse() { *this = ::std::move(from); } - inline DiscoverComponentsResponse& operator=(const DiscoverComponentsResponse& from) { + inline GetMachineStatusResponse& operator=(const GetMachineStatusResponse& from) { CopyFrom(from); return *this; } - inline DiscoverComponentsResponse& operator=(DiscoverComponentsResponse&& from) noexcept { + inline GetMachineStatusResponse& operator=(GetMachineStatusResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -8988,180 +8416,212 @@ class DiscoverComponentsResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const DiscoverComponentsResponse& default_instance() { + static const GetMachineStatusResponse& default_instance() { return *internal_default_instance(); } - static inline const DiscoverComponentsResponse* internal_default_instance() { - return reinterpret_cast( - &_DiscoverComponentsResponse_default_instance_); + static inline const GetMachineStatusResponse* internal_default_instance() { + return reinterpret_cast( + &_GetMachineStatusResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 26; + 53; - friend void swap(DiscoverComponentsResponse& a, DiscoverComponentsResponse& b) { + friend void swap(GetMachineStatusResponse& a, GetMachineStatusResponse& b) { a.Swap(&b); } - inline void Swap(DiscoverComponentsResponse* other) { + inline void Swap(GetMachineStatusResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(DiscoverComponentsResponse* other) { + void UnsafeArenaSwap(GetMachineStatusResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - DiscoverComponentsResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const DiscoverComponentsResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const DiscoverComponentsResponse& from) { - DiscoverComponentsResponse::MergeImpl(*this, from); + GetMachineStatusResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetMachineStatusResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetMachineStatusResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(DiscoverComponentsResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetMachineStatusResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.robot.v1.DiscoverComponentsResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.GetMachineStatusResponse"; } protected: - explicit DiscoverComponentsResponse(::google::protobuf::Arena* arena); - DiscoverComponentsResponse(::google::protobuf::Arena* arena, const DiscoverComponentsResponse& from); + explicit GetMachineStatusResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- + typedef GetMachineStatusResponse_State State; + static constexpr State STATE_UNSPECIFIED = + GetMachineStatusResponse_State_STATE_UNSPECIFIED; + static constexpr State STATE_INITIALIZING = + GetMachineStatusResponse_State_STATE_INITIALIZING; + static constexpr State STATE_RUNNING = + GetMachineStatusResponse_State_STATE_RUNNING; + static inline bool State_IsValid(int value) { + return GetMachineStatusResponse_State_IsValid(value); + } + static constexpr State State_MIN = + GetMachineStatusResponse_State_State_MIN; + static constexpr State State_MAX = + GetMachineStatusResponse_State_State_MAX; + static constexpr int State_ARRAYSIZE = + GetMachineStatusResponse_State_State_ARRAYSIZE; + static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* + State_descriptor() { + return GetMachineStatusResponse_State_descriptor(); + } + template + static inline const std::string& State_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function State_Name."); + return GetMachineStatusResponse_State_Name(enum_t_value); + } + static inline bool State_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, + State* value) { + return GetMachineStatusResponse_State_Parse(name, value); + } + // accessors ------------------------------------------------------- enum : int { - kDiscoveryFieldNumber = 1, + kResourcesFieldNumber = 1, + kConfigFieldNumber = 2, + kStateFieldNumber = 3, }; - // repeated .viam.robot.v1.Discovery discovery = 1 [json_name = "discovery"]; - int discovery_size() const; + // repeated .viam.robot.v1.ResourceStatus resources = 1 [json_name = "resources"]; + int resources_size() const; private: - int _internal_discovery_size() const; + int _internal_resources_size() const; + public: + void clear_resources(); + ::viam::robot::v1::ResourceStatus* mutable_resources(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::ResourceStatus >* + mutable_resources(); + private: + const ::viam::robot::v1::ResourceStatus& _internal_resources(int index) const; + ::viam::robot::v1::ResourceStatus* _internal_add_resources(); + public: + const ::viam::robot::v1::ResourceStatus& resources(int index) const; + ::viam::robot::v1::ResourceStatus* add_resources(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::ResourceStatus >& + resources() const; + // .viam.robot.v1.ConfigStatus config = 2 [json_name = "config"]; + bool has_config() const; + private: + bool _internal_has_config() const; public: - void clear_discovery() ; - ::viam::robot::v1::Discovery* mutable_discovery(int index); - ::google::protobuf::RepeatedPtrField< ::viam::robot::v1::Discovery >* - mutable_discovery(); + void clear_config(); + const ::viam::robot::v1::ConfigStatus& config() const; + PROTOBUF_NODISCARD ::viam::robot::v1::ConfigStatus* release_config(); + ::viam::robot::v1::ConfigStatus* mutable_config(); + void set_allocated_config(::viam::robot::v1::ConfigStatus* config); + private: + const ::viam::robot::v1::ConfigStatus& _internal_config() const; + ::viam::robot::v1::ConfigStatus* _internal_mutable_config(); + public: + void unsafe_arena_set_allocated_config( + ::viam::robot::v1::ConfigStatus* config); + ::viam::robot::v1::ConfigStatus* unsafe_arena_release_config(); + + // .viam.robot.v1.GetMachineStatusResponse.State state = 3 [json_name = "state"]; + void clear_state(); + ::viam::robot::v1::GetMachineStatusResponse_State state() const; + void set_state(::viam::robot::v1::GetMachineStatusResponse_State value); private: - const ::google::protobuf::RepeatedPtrField<::viam::robot::v1::Discovery>& _internal_discovery() const; - ::google::protobuf::RepeatedPtrField<::viam::robot::v1::Discovery>* _internal_mutable_discovery(); + ::viam::robot::v1::GetMachineStatusResponse_State _internal_state() const; + void _internal_set_state(::viam::robot::v1::GetMachineStatusResponse_State value); public: - const ::viam::robot::v1::Discovery& discovery(int index) const; - ::viam::robot::v1::Discovery* add_discovery(); - const ::google::protobuf::RepeatedPtrField< ::viam::robot::v1::Discovery >& - discovery() const; - // @@protoc_insertion_point(class_scope:viam.robot.v1.DiscoverComponentsResponse) + + // @@protoc_insertion_point(class_scope:viam.robot.v1.GetMachineStatusResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::robot::v1::Discovery > discovery_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::ResourceStatus > resources_; + ::viam::robot::v1::ConfigStatus* config_; + int state_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class TransformPoseRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.TransformPoseRequest) */ { +class ResourceStatus final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.ResourceStatus) */ { public: - inline TransformPoseRequest() : TransformPoseRequest(nullptr) {} - ~TransformPoseRequest() override; - template - explicit PROTOBUF_CONSTEXPR TransformPoseRequest(::google::protobuf::internal::ConstantInitialized); + inline ResourceStatus() : ResourceStatus(nullptr) {} + ~ResourceStatus() override; + explicit PROTOBUF_CONSTEXPR ResourceStatus(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline TransformPoseRequest(const TransformPoseRequest& from) - : TransformPoseRequest(nullptr, from) {} - TransformPoseRequest(TransformPoseRequest&& from) noexcept - : TransformPoseRequest() { + ResourceStatus(const ResourceStatus& from); + ResourceStatus(ResourceStatus&& from) noexcept + : ResourceStatus() { *this = ::std::move(from); } - inline TransformPoseRequest& operator=(const TransformPoseRequest& from) { + inline ResourceStatus& operator=(const ResourceStatus& from) { CopyFrom(from); return *this; } - inline TransformPoseRequest& operator=(TransformPoseRequest&& from) noexcept { + inline ResourceStatus& operator=(ResourceStatus&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -9171,216 +8631,271 @@ class TransformPoseRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const TransformPoseRequest& default_instance() { + static const ResourceStatus& default_instance() { return *internal_default_instance(); } - static inline const TransformPoseRequest* internal_default_instance() { - return reinterpret_cast( - &_TransformPoseRequest_default_instance_); + static inline const ResourceStatus* internal_default_instance() { + return reinterpret_cast( + &_ResourceStatus_default_instance_); } static constexpr int kIndexInFileMessages = - 3; + 54; - friend void swap(TransformPoseRequest& a, TransformPoseRequest& b) { + friend void swap(ResourceStatus& a, ResourceStatus& b) { a.Swap(&b); } - inline void Swap(TransformPoseRequest* other) { + inline void Swap(ResourceStatus* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(TransformPoseRequest* other) { + void UnsafeArenaSwap(ResourceStatus* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - TransformPoseRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const TransformPoseRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const TransformPoseRequest& from) { - TransformPoseRequest::MergeImpl(*this, from); + ResourceStatus* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ResourceStatus& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ResourceStatus& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(TransformPoseRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(ResourceStatus* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.robot.v1.TransformPoseRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.ResourceStatus"; } protected: - explicit TransformPoseRequest(::google::protobuf::Arena* arena); - TransformPoseRequest(::google::protobuf::Arena* arena, const TransformPoseRequest& from); + explicit ResourceStatus(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- + typedef ResourceStatus_State State; + static constexpr State STATE_UNSPECIFIED = + ResourceStatus_State_STATE_UNSPECIFIED; + static constexpr State STATE_UNCONFIGURED = + ResourceStatus_State_STATE_UNCONFIGURED; + static constexpr State STATE_CONFIGURING = + ResourceStatus_State_STATE_CONFIGURING; + static constexpr State STATE_READY = + ResourceStatus_State_STATE_READY; + static constexpr State STATE_REMOVING = + ResourceStatus_State_STATE_REMOVING; + static constexpr State STATE_UNHEALTHY = + ResourceStatus_State_STATE_UNHEALTHY; + static inline bool State_IsValid(int value) { + return ResourceStatus_State_IsValid(value); + } + static constexpr State State_MIN = + ResourceStatus_State_State_MIN; + static constexpr State State_MAX = + ResourceStatus_State_State_MAX; + static constexpr int State_ARRAYSIZE = + ResourceStatus_State_State_ARRAYSIZE; + static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* + State_descriptor() { + return ResourceStatus_State_descriptor(); + } + template + static inline const std::string& State_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function State_Name."); + return ResourceStatus_State_Name(enum_t_value); + } + static inline bool State_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, + State* value) { + return ResourceStatus_State_Parse(name, value); + } + // accessors ------------------------------------------------------- enum : int { - kSupplementalTransformsFieldNumber = 3, - kDestinationFieldNumber = 2, - kSourceFieldNumber = 1, + kRevisionFieldNumber = 4, + kErrorFieldNumber = 5, + kNameFieldNumber = 1, + kLastUpdatedFieldNumber = 3, + kCloudMetadataFieldNumber = 6, + kStateFieldNumber = 2, }; - // repeated .viam.common.v1.Transform supplemental_transforms = 3 [json_name = "supplementalTransforms"]; - int supplemental_transforms_size() const; + // string revision = 4 [json_name = "revision"]; + void clear_revision(); + const std::string& revision() const; + template + void set_revision(ArgT0&& arg0, ArgT... args); + std::string* mutable_revision(); + PROTOBUF_NODISCARD std::string* release_revision(); + void set_allocated_revision(std::string* revision); private: - int _internal_supplemental_transforms_size() const; - + const std::string& _internal_revision() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_revision(const std::string& value); + std::string* _internal_mutable_revision(); public: - void clear_supplemental_transforms() ; - ::viam::common::v1::Transform* mutable_supplemental_transforms(int index); - ::google::protobuf::RepeatedPtrField< ::viam::common::v1::Transform >* - mutable_supplemental_transforms(); + + // string error = 5 [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 ::google::protobuf::RepeatedPtrField<::viam::common::v1::Transform>& _internal_supplemental_transforms() const; - ::google::protobuf::RepeatedPtrField<::viam::common::v1::Transform>* _internal_mutable_supplemental_transforms(); + const std::string& _internal_error() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_error(const std::string& value); + std::string* _internal_mutable_error(); public: - const ::viam::common::v1::Transform& supplemental_transforms(int index) const; - ::viam::common::v1::Transform* add_supplemental_transforms(); - const ::google::protobuf::RepeatedPtrField< ::viam::common::v1::Transform >& - supplemental_transforms() const; - // string destination = 2 [json_name = "destination"]; - void clear_destination() ; - const std::string& destination() const; - template - void set_destination(Arg_&& arg, Args_... args); - std::string* mutable_destination(); - PROTOBUF_NODISCARD std::string* release_destination(); - void set_allocated_destination(std::string* value); + // .viam.common.v1.ResourceName name = 1 [json_name = "name"]; + bool has_name() const; private: - const std::string& _internal_destination() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_destination( - const std::string& value); - std::string* _internal_mutable_destination(); + bool _internal_has_name() const; + public: + void clear_name(); + const ::viam::common::v1::ResourceName& name() const; + PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_name(); + ::viam::common::v1::ResourceName* mutable_name(); + void set_allocated_name(::viam::common::v1::ResourceName* name); + private: + const ::viam::common::v1::ResourceName& _internal_name() const; + ::viam::common::v1::ResourceName* _internal_mutable_name(); + public: + void unsafe_arena_set_allocated_name( + ::viam::common::v1::ResourceName* name); + ::viam::common::v1::ResourceName* unsafe_arena_release_name(); + // .google.protobuf.Timestamp last_updated = 3 [json_name = "lastUpdated"]; + bool has_last_updated() const; + private: + bool _internal_has_last_updated() const; public: - // .viam.common.v1.PoseInFrame source = 1 [json_name = "source"]; - bool has_source() const; - void clear_source() ; - const ::viam::common::v1::PoseInFrame& source() const; - PROTOBUF_NODISCARD ::viam::common::v1::PoseInFrame* release_source(); - ::viam::common::v1::PoseInFrame* mutable_source(); - void set_allocated_source(::viam::common::v1::PoseInFrame* value); - void unsafe_arena_set_allocated_source(::viam::common::v1::PoseInFrame* value); - ::viam::common::v1::PoseInFrame* unsafe_arena_release_source(); + void clear_last_updated(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& last_updated() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_last_updated(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_last_updated(); + void set_allocated_last_updated(::PROTOBUF_NAMESPACE_ID::Timestamp* last_updated); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_last_updated() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_last_updated(); + public: + void unsafe_arena_set_allocated_last_updated( + ::PROTOBUF_NAMESPACE_ID::Timestamp* last_updated); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_last_updated(); + // optional .viam.robot.v1.GetCloudMetadataResponse cloud_metadata = 6 [json_name = "cloudMetadata"]; + bool has_cloud_metadata() const; private: - const ::viam::common::v1::PoseInFrame& _internal_source() const; - ::viam::common::v1::PoseInFrame* _internal_mutable_source(); + bool _internal_has_cloud_metadata() const; + public: + void clear_cloud_metadata(); + const ::viam::robot::v1::GetCloudMetadataResponse& cloud_metadata() const; + PROTOBUF_NODISCARD ::viam::robot::v1::GetCloudMetadataResponse* release_cloud_metadata(); + ::viam::robot::v1::GetCloudMetadataResponse* mutable_cloud_metadata(); + void set_allocated_cloud_metadata(::viam::robot::v1::GetCloudMetadataResponse* cloud_metadata); + private: + const ::viam::robot::v1::GetCloudMetadataResponse& _internal_cloud_metadata() const; + ::viam::robot::v1::GetCloudMetadataResponse* _internal_mutable_cloud_metadata(); + public: + void unsafe_arena_set_allocated_cloud_metadata( + ::viam::robot::v1::GetCloudMetadataResponse* cloud_metadata); + ::viam::robot::v1::GetCloudMetadataResponse* unsafe_arena_release_cloud_metadata(); + // .viam.robot.v1.ResourceStatus.State state = 2 [json_name = "state"]; + void clear_state(); + ::viam::robot::v1::ResourceStatus_State state() const; + void set_state(::viam::robot::v1::ResourceStatus_State value); + private: + ::viam::robot::v1::ResourceStatus_State _internal_state() const; + void _internal_set_state(::viam::robot::v1::ResourceStatus_State value); public: - // @@protoc_insertion_point(class_scope:viam.robot.v1.TransformPoseRequest) + + // @@protoc_insertion_point(class_scope:viam.robot.v1.ResourceStatus) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 2, - 54, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::viam::common::v1::Transform > supplemental_transforms_; - ::google::protobuf::internal::ArenaStringPtr destination_; - ::viam::common::v1::PoseInFrame* source_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr revision_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr error_; + ::viam::common::v1::ResourceName* name_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* last_updated_; + ::viam::robot::v1::GetCloudMetadataResponse* cloud_metadata_; + int state_; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class FrameSystemConfigRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.FrameSystemConfigRequest) */ { +class ConfigStatus final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.ConfigStatus) */ { public: - inline FrameSystemConfigRequest() : FrameSystemConfigRequest(nullptr) {} - ~FrameSystemConfigRequest() override; - template - explicit PROTOBUF_CONSTEXPR FrameSystemConfigRequest(::google::protobuf::internal::ConstantInitialized); + inline ConfigStatus() : ConfigStatus(nullptr) {} + ~ConfigStatus() override; + explicit PROTOBUF_CONSTEXPR ConfigStatus(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline FrameSystemConfigRequest(const FrameSystemConfigRequest& from) - : FrameSystemConfigRequest(nullptr, from) {} - FrameSystemConfigRequest(FrameSystemConfigRequest&& from) noexcept - : FrameSystemConfigRequest() { + ConfigStatus(const ConfigStatus& from); + ConfigStatus(ConfigStatus&& from) noexcept + : ConfigStatus() { *this = ::std::move(from); } - inline FrameSystemConfigRequest& operator=(const FrameSystemConfigRequest& from) { + inline ConfigStatus& operator=(const ConfigStatus& from) { CopyFrom(from); return *this; } - inline FrameSystemConfigRequest& operator=(FrameSystemConfigRequest&& from) noexcept { + inline ConfigStatus& operator=(ConfigStatus&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -9390,180 +8905,164 @@ class FrameSystemConfigRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const FrameSystemConfigRequest& default_instance() { + static const ConfigStatus& default_instance() { return *internal_default_instance(); } - static inline const FrameSystemConfigRequest* internal_default_instance() { - return reinterpret_cast( - &_FrameSystemConfigRequest_default_instance_); + static inline const ConfigStatus* internal_default_instance() { + return reinterpret_cast( + &_ConfigStatus_default_instance_); } static constexpr int kIndexInFileMessages = - 1; + 55; - friend void swap(FrameSystemConfigRequest& a, FrameSystemConfigRequest& b) { + friend void swap(ConfigStatus& a, ConfigStatus& b) { a.Swap(&b); } - inline void Swap(FrameSystemConfigRequest* other) { + inline void Swap(ConfigStatus* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(FrameSystemConfigRequest* other) { + void UnsafeArenaSwap(ConfigStatus* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - FrameSystemConfigRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const FrameSystemConfigRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const FrameSystemConfigRequest& from) { - FrameSystemConfigRequest::MergeImpl(*this, from); + ConfigStatus* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ConfigStatus& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ConfigStatus& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(FrameSystemConfigRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(ConfigStatus* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.robot.v1.FrameSystemConfigRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.ConfigStatus"; } protected: - explicit FrameSystemConfigRequest(::google::protobuf::Arena* arena); - FrameSystemConfigRequest(::google::protobuf::Arena* arena, const FrameSystemConfigRequest& from); + explicit ConfigStatus(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kSupplementalTransformsFieldNumber = 1, + kRevisionFieldNumber = 1, + kLastUpdatedFieldNumber = 2, }; - // repeated .viam.common.v1.Transform supplemental_transforms = 1 [json_name = "supplementalTransforms"]; - int supplemental_transforms_size() const; + // string revision = 1 [json_name = "revision"]; + void clear_revision(); + const std::string& revision() const; + template + void set_revision(ArgT0&& arg0, ArgT... args); + std::string* mutable_revision(); + PROTOBUF_NODISCARD std::string* release_revision(); + void set_allocated_revision(std::string* revision); private: - int _internal_supplemental_transforms_size() const; + const std::string& _internal_revision() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_revision(const std::string& value); + std::string* _internal_mutable_revision(); + public: + // .google.protobuf.Timestamp last_updated = 2 [json_name = "lastUpdated"]; + bool has_last_updated() const; + private: + bool _internal_has_last_updated() const; public: - void clear_supplemental_transforms() ; - ::viam::common::v1::Transform* mutable_supplemental_transforms(int index); - ::google::protobuf::RepeatedPtrField< ::viam::common::v1::Transform >* - mutable_supplemental_transforms(); + void clear_last_updated(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& last_updated() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_last_updated(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_last_updated(); + void set_allocated_last_updated(::PROTOBUF_NAMESPACE_ID::Timestamp* last_updated); private: - const ::google::protobuf::RepeatedPtrField<::viam::common::v1::Transform>& _internal_supplemental_transforms() const; - ::google::protobuf::RepeatedPtrField<::viam::common::v1::Transform>* _internal_mutable_supplemental_transforms(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_last_updated() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_last_updated(); public: - const ::viam::common::v1::Transform& supplemental_transforms(int index) const; - ::viam::common::v1::Transform* add_supplemental_transforms(); - const ::google::protobuf::RepeatedPtrField< ::viam::common::v1::Transform >& - supplemental_transforms() const; - // @@protoc_insertion_point(class_scope:viam.robot.v1.FrameSystemConfigRequest) + void unsafe_arena_set_allocated_last_updated( + ::PROTOBUF_NAMESPACE_ID::Timestamp* last_updated); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_last_updated(); + + // @@protoc_insertion_point(class_scope:viam.robot.v1.ConfigStatus) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::common::v1::Transform > supplemental_transforms_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr revision_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* last_updated_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class FrameSystemConfig final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.FrameSystemConfig) */ { +class GetVersionRequest final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.robot.v1.GetVersionRequest) */ { public: - inline FrameSystemConfig() : FrameSystemConfig(nullptr) {} - ~FrameSystemConfig() override; - template - explicit PROTOBUF_CONSTEXPR FrameSystemConfig(::google::protobuf::internal::ConstantInitialized); + inline GetVersionRequest() : GetVersionRequest(nullptr) {} + explicit PROTOBUF_CONSTEXPR GetVersionRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline FrameSystemConfig(const FrameSystemConfig& from) - : FrameSystemConfig(nullptr, from) {} - FrameSystemConfig(FrameSystemConfig&& from) noexcept - : FrameSystemConfig() { + GetVersionRequest(const GetVersionRequest& from); + GetVersionRequest(GetVersionRequest&& from) noexcept + : GetVersionRequest() { *this = ::std::move(from); } - inline FrameSystemConfig& operator=(const FrameSystemConfig& from) { + inline GetVersionRequest& operator=(const GetVersionRequest& from) { CopyFrom(from); return *this; } - inline FrameSystemConfig& operator=(FrameSystemConfig&& from) noexcept { + inline GetVersionRequest& operator=(GetVersionRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -9573,195 +9072,114 @@ class FrameSystemConfig final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const FrameSystemConfig& default_instance() { + static const GetVersionRequest& default_instance() { return *internal_default_instance(); } - static inline const FrameSystemConfig* internal_default_instance() { - return reinterpret_cast( - &_FrameSystemConfig_default_instance_); + static inline const GetVersionRequest* internal_default_instance() { + return reinterpret_cast( + &_GetVersionRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 0; + 56; - friend void swap(FrameSystemConfig& a, FrameSystemConfig& b) { + friend void swap(GetVersionRequest& a, GetVersionRequest& b) { a.Swap(&b); } - inline void Swap(FrameSystemConfig* other) { + inline void Swap(GetVersionRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(FrameSystemConfig* other) { + void UnsafeArenaSwap(GetVersionRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - FrameSystemConfig* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const FrameSystemConfig& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const FrameSystemConfig& from) { - FrameSystemConfig::MergeImpl(*this, from); + GetVersionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(FrameSystemConfig* other); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const GetVersionRequest& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const GetVersionRequest& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); + } + public: private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.robot.v1.FrameSystemConfig"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.GetVersionRequest"; } protected: - explicit FrameSystemConfig(::google::protobuf::Arena* arena); - FrameSystemConfig(::google::protobuf::Arena* arena, const FrameSystemConfig& from); + explicit GetVersionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kFrameFieldNumber = 1, - kKinematicsFieldNumber = 2, - }; - // .viam.common.v1.Transform frame = 1 [json_name = "frame"]; - bool has_frame() const; - void clear_frame() ; - const ::viam::common::v1::Transform& frame() const; - PROTOBUF_NODISCARD ::viam::common::v1::Transform* release_frame(); - ::viam::common::v1::Transform* mutable_frame(); - void set_allocated_frame(::viam::common::v1::Transform* value); - void unsafe_arena_set_allocated_frame(::viam::common::v1::Transform* value); - ::viam::common::v1::Transform* unsafe_arena_release_frame(); - - private: - const ::viam::common::v1::Transform& _internal_frame() const; - ::viam::common::v1::Transform* _internal_mutable_frame(); - - public: - // .google.protobuf.Struct kinematics = 2 [json_name = "kinematics"]; - bool has_kinematics() const; - void clear_kinematics() ; - const ::google::protobuf::Struct& kinematics() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_kinematics(); - ::google::protobuf::Struct* mutable_kinematics(); - void set_allocated_kinematics(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_kinematics(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_kinematics(); - - private: - const ::google::protobuf::Struct& _internal_kinematics() const; - ::google::protobuf::Struct* _internal_mutable_kinematics(); - - public: - // @@protoc_insertion_point(class_scope:viam.robot.v1.FrameSystemConfig) + // @@protoc_insertion_point(class_scope:viam.robot.v1.GetVersionRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 2, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::viam::common::v1::Transform* frame_; - ::google::protobuf::Struct* kinematics_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class FrameSystemConfigResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.FrameSystemConfigResponse) */ { +class GetVersionResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.robot.v1.GetVersionResponse) */ { public: - inline FrameSystemConfigResponse() : FrameSystemConfigResponse(nullptr) {} - ~FrameSystemConfigResponse() override; - template - explicit PROTOBUF_CONSTEXPR FrameSystemConfigResponse(::google::protobuf::internal::ConstantInitialized); + inline GetVersionResponse() : GetVersionResponse(nullptr) {} + ~GetVersionResponse() override; + explicit PROTOBUF_CONSTEXPR GetVersionResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline FrameSystemConfigResponse(const FrameSystemConfigResponse& from) - : FrameSystemConfigResponse(nullptr, from) {} - FrameSystemConfigResponse(FrameSystemConfigResponse&& from) noexcept - : FrameSystemConfigResponse() { + GetVersionResponse(const GetVersionResponse& from); + GetVersionResponse(GetVersionResponse&& from) noexcept + : GetVersionResponse() { *this = ::std::move(from); } - inline FrameSystemConfigResponse& operator=(const FrameSystemConfigResponse& from) { + inline GetVersionResponse& operator=(const GetVersionResponse& from) { CopyFrom(from); return *this; } - inline FrameSystemConfigResponse& operator=(FrameSystemConfigResponse&& from) noexcept { + inline GetVersionResponse& operator=(GetVersionResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -9771,351 +9189,459 @@ class FrameSystemConfigResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const FrameSystemConfigResponse& default_instance() { + static const GetVersionResponse& default_instance() { return *internal_default_instance(); } - static inline const FrameSystemConfigResponse* internal_default_instance() { - return reinterpret_cast( - &_FrameSystemConfigResponse_default_instance_); + static inline const GetVersionResponse* internal_default_instance() { + return reinterpret_cast( + &_GetVersionResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 2; + 57; - friend void swap(FrameSystemConfigResponse& a, FrameSystemConfigResponse& b) { + friend void swap(GetVersionResponse& a, GetVersionResponse& b) { a.Swap(&b); } - inline void Swap(FrameSystemConfigResponse* other) { + inline void Swap(GetVersionResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(FrameSystemConfigResponse* other) { + void UnsafeArenaSwap(GetVersionResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - FrameSystemConfigResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const FrameSystemConfigResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const FrameSystemConfigResponse& from) { - FrameSystemConfigResponse::MergeImpl(*this, from); + GetVersionResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetVersionResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetVersionResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(FrameSystemConfigResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetVersionResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.robot.v1.FrameSystemConfigResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.robot.v1.GetVersionResponse"; } protected: - explicit FrameSystemConfigResponse(::google::protobuf::Arena* arena); - FrameSystemConfigResponse(::google::protobuf::Arena* arena, const FrameSystemConfigResponse& from); + explicit GetVersionResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kFrameSystemConfigsFieldNumber = 1, + kPlatformFieldNumber = 1, + kVersionFieldNumber = 2, + kApiVersionFieldNumber = 3, }; - // repeated .viam.robot.v1.FrameSystemConfig frame_system_configs = 1 [json_name = "frameSystemConfigs"]; - int frame_system_configs_size() const; + // string platform = 1 [json_name = "platform"]; + void clear_platform(); + const std::string& platform() const; + template + void set_platform(ArgT0&& arg0, ArgT... args); + std::string* mutable_platform(); + PROTOBUF_NODISCARD std::string* release_platform(); + void set_allocated_platform(std::string* platform); private: - int _internal_frame_system_configs_size() const; + const std::string& _internal_platform() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_platform(const std::string& value); + std::string* _internal_mutable_platform(); + public: + // string version = 2 [json_name = "version"]; + void clear_version(); + const std::string& version() const; + template + void set_version(ArgT0&& arg0, ArgT... args); + std::string* mutable_version(); + PROTOBUF_NODISCARD std::string* release_version(); + void set_allocated_version(std::string* version); + private: + const std::string& _internal_version() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_version(const std::string& value); + std::string* _internal_mutable_version(); public: - void clear_frame_system_configs() ; - ::viam::robot::v1::FrameSystemConfig* mutable_frame_system_configs(int index); - ::google::protobuf::RepeatedPtrField< ::viam::robot::v1::FrameSystemConfig >* - mutable_frame_system_configs(); + + // string api_version = 3 [json_name = "apiVersion"]; + void clear_api_version(); + const std::string& api_version() const; + template + void set_api_version(ArgT0&& arg0, ArgT... args); + std::string* mutable_api_version(); + PROTOBUF_NODISCARD std::string* release_api_version(); + void set_allocated_api_version(std::string* api_version); private: - const ::google::protobuf::RepeatedPtrField<::viam::robot::v1::FrameSystemConfig>& _internal_frame_system_configs() const; - ::google::protobuf::RepeatedPtrField<::viam::robot::v1::FrameSystemConfig>* _internal_mutable_frame_system_configs(); + const std::string& _internal_api_version() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_api_version(const std::string& value); + std::string* _internal_mutable_api_version(); public: - const ::viam::robot::v1::FrameSystemConfig& frame_system_configs(int index) const; - ::viam::robot::v1::FrameSystemConfig* add_frame_system_configs(); - const ::google::protobuf::RepeatedPtrField< ::viam::robot::v1::FrameSystemConfig >& - frame_system_configs() const; - // @@protoc_insertion_point(class_scope:viam.robot.v1.FrameSystemConfigResponse) + + // @@protoc_insertion_point(class_scope:viam.robot.v1.GetVersionResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::robot::v1::FrameSystemConfig > frame_system_configs_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr platform_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr version_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr api_version_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; }; +// =================================================================== + // =================================================================== +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// TunnelRequest + +// uint32 destination_port = 1 [json_name = "destinationPort"]; +inline void TunnelRequest::clear_destination_port() { + destination_port_ = 0u; +} +inline uint32_t TunnelRequest::_internal_destination_port() const { + return destination_port_; +} +inline uint32_t TunnelRequest::destination_port() const { + // @@protoc_insertion_point(field_get:viam.robot.v1.TunnelRequest.destination_port) + return _internal_destination_port(); +} +inline void TunnelRequest::_internal_set_destination_port(uint32_t value) { + + destination_port_ = value; +} +inline void TunnelRequest::set_destination_port(uint32_t value) { + _internal_set_destination_port(value); + // @@protoc_insertion_point(field_set:viam.robot.v1.TunnelRequest.destination_port) +} +// bytes data = 2 [json_name = "data"]; +inline void TunnelRequest::clear_data() { + data_.ClearToEmpty(); +} +inline const std::string& TunnelRequest::data() const { + // @@protoc_insertion_point(field_get:viam.robot.v1.TunnelRequest.data) + return _internal_data(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void TunnelRequest::set_data(ArgT0&& arg0, ArgT... args) { + + data_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.robot.v1.TunnelRequest.data) +} +inline std::string* TunnelRequest::mutable_data() { + std::string* _s = _internal_mutable_data(); + // @@protoc_insertion_point(field_mutable:viam.robot.v1.TunnelRequest.data) + return _s; +} +inline const std::string& TunnelRequest::_internal_data() const { + return data_.Get(); +} +inline void TunnelRequest::_internal_set_data(const std::string& value) { + + data_.Set(value, GetArenaForAllocation()); +} +inline std::string* TunnelRequest::_internal_mutable_data() { + + return data_.Mutable(GetArenaForAllocation()); +} +inline std::string* TunnelRequest::release_data() { + // @@protoc_insertion_point(field_release:viam.robot.v1.TunnelRequest.data) + return data_.Release(); +} +inline void TunnelRequest::set_allocated_data(std::string* data) { + if (data != nullptr) { + + } else { + + } + data_.SetAllocated(data, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (data_.IsDefault()) { + data_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.TunnelRequest.data) +} +// ------------------------------------------------------------------- -// =================================================================== +// TunnelResponse +// bytes data = 1 [json_name = "data"]; +inline void TunnelResponse::clear_data() { + data_.ClearToEmpty(); +} +inline const std::string& TunnelResponse::data() const { + // @@protoc_insertion_point(field_get:viam.robot.v1.TunnelResponse.data) + return _internal_data(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void TunnelResponse::set_data(ArgT0&& arg0, ArgT... args) { + + data_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.robot.v1.TunnelResponse.data) +} +inline std::string* TunnelResponse::mutable_data() { + std::string* _s = _internal_mutable_data(); + // @@protoc_insertion_point(field_mutable:viam.robot.v1.TunnelResponse.data) + return _s; +} +inline const std::string& TunnelResponse::_internal_data() const { + return data_.Get(); +} +inline void TunnelResponse::_internal_set_data(const std::string& value) { + + data_.Set(value, GetArenaForAllocation()); +} +inline std::string* TunnelResponse::_internal_mutable_data() { + + return data_.Mutable(GetArenaForAllocation()); +} +inline std::string* TunnelResponse::release_data() { + // @@protoc_insertion_point(field_release:viam.robot.v1.TunnelResponse.data) + return data_.Release(); +} +inline void TunnelResponse::set_allocated_data(std::string* data) { + if (data != nullptr) { + + } else { + + } + data_.SetAllocated(data, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (data_.IsDefault()) { + data_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.TunnelResponse.data) +} -#ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ // ------------------------------------------------------------------- // FrameSystemConfig // .viam.common.v1.Transform frame = 1 [json_name = "frame"]; +inline bool FrameSystemConfig::_internal_has_frame() const { + return this != internal_default_instance() && frame_ != nullptr; +} inline bool FrameSystemConfig::has_frame() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.frame_ != nullptr); - return value; + return _internal_has_frame(); } inline const ::viam::common::v1::Transform& FrameSystemConfig::_internal_frame() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::common::v1::Transform* p = _impl_.frame_; - return p != nullptr ? *p : reinterpret_cast(::viam::common::v1::_Transform_default_instance_); + const ::viam::common::v1::Transform* p = frame_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_Transform_default_instance_); } -inline const ::viam::common::v1::Transform& FrameSystemConfig::frame() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::Transform& FrameSystemConfig::frame() const { // @@protoc_insertion_point(field_get:viam.robot.v1.FrameSystemConfig.frame) return _internal_frame(); } -inline void FrameSystemConfig::unsafe_arena_set_allocated_frame(::viam::common::v1::Transform* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.frame_); +inline void FrameSystemConfig::unsafe_arena_set_allocated_frame( + ::viam::common::v1::Transform* frame) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(frame_); } - _impl_.frame_ = reinterpret_cast<::viam::common::v1::Transform*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + frame_ = frame; + if (frame) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.robot.v1.FrameSystemConfig.frame) } inline ::viam::common::v1::Transform* FrameSystemConfig::release_frame() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::Transform* released = _impl_.frame_; - _impl_.frame_ = nullptr; + + ::viam::common::v1::Transform* temp = frame_; + frame_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::common::v1::Transform* FrameSystemConfig::unsafe_arena_release_frame() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.robot.v1.FrameSystemConfig.frame) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::Transform* temp = _impl_.frame_; - _impl_.frame_ = nullptr; + + ::viam::common::v1::Transform* temp = frame_; + frame_ = nullptr; return temp; } inline ::viam::common::v1::Transform* FrameSystemConfig::_internal_mutable_frame() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.frame_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::Transform>(GetArena()); - _impl_.frame_ = reinterpret_cast<::viam::common::v1::Transform*>(p); + + if (frame_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::Transform>(GetArenaForAllocation()); + frame_ = p; } - return _impl_.frame_; + return frame_; } -inline ::viam::common::v1::Transform* FrameSystemConfig::mutable_frame() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::Transform* FrameSystemConfig::mutable_frame() { ::viam::common::v1::Transform* _msg = _internal_mutable_frame(); // @@protoc_insertion_point(field_mutable:viam.robot.v1.FrameSystemConfig.frame) return _msg; } -inline void FrameSystemConfig::set_allocated_frame(::viam::common::v1::Transform* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void FrameSystemConfig::set_allocated_frame(::viam::common::v1::Transform* frame) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.frame_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(frame_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (frame) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(frame)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + frame = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, frame, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.frame_ = reinterpret_cast<::viam::common::v1::Transform*>(value); + frame_ = frame; // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.FrameSystemConfig.frame) } // .google.protobuf.Struct kinematics = 2 [json_name = "kinematics"]; +inline bool FrameSystemConfig::_internal_has_kinematics() const { + return this != internal_default_instance() && kinematics_ != nullptr; +} inline bool FrameSystemConfig::has_kinematics() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.kinematics_ != nullptr); - return value; + return _internal_has_kinematics(); } -inline const ::google::protobuf::Struct& FrameSystemConfig::_internal_kinematics() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.kinematics_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& FrameSystemConfig::_internal_kinematics() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = kinematics_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& FrameSystemConfig::kinematics() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& FrameSystemConfig::kinematics() const { // @@protoc_insertion_point(field_get:viam.robot.v1.FrameSystemConfig.kinematics) return _internal_kinematics(); } -inline void FrameSystemConfig::unsafe_arena_set_allocated_kinematics(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.kinematics_); +inline void FrameSystemConfig::unsafe_arena_set_allocated_kinematics( + ::PROTOBUF_NAMESPACE_ID::Struct* kinematics) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(kinematics_); } - _impl_.kinematics_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + kinematics_ = kinematics; + if (kinematics) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.robot.v1.FrameSystemConfig.kinematics) } -inline ::google::protobuf::Struct* FrameSystemConfig::release_kinematics() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Struct* released = _impl_.kinematics_; - _impl_.kinematics_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* FrameSystemConfig::release_kinematics() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = kinematics_; + kinematics_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* FrameSystemConfig::unsafe_arena_release_kinematics() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* FrameSystemConfig::unsafe_arena_release_kinematics() { // @@protoc_insertion_point(field_release:viam.robot.v1.FrameSystemConfig.kinematics) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Struct* temp = _impl_.kinematics_; - _impl_.kinematics_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = kinematics_; + kinematics_ = nullptr; return temp; } -inline ::google::protobuf::Struct* FrameSystemConfig::_internal_mutable_kinematics() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.kinematics_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.kinematics_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* FrameSystemConfig::_internal_mutable_kinematics() { + + if (kinematics_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + kinematics_ = p; } - return _impl_.kinematics_; + return kinematics_; } -inline ::google::protobuf::Struct* FrameSystemConfig::mutable_kinematics() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_kinematics(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* FrameSystemConfig::mutable_kinematics() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_kinematics(); // @@protoc_insertion_point(field_mutable:viam.robot.v1.FrameSystemConfig.kinematics) return _msg; } -inline void FrameSystemConfig::set_allocated_kinematics(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void FrameSystemConfig::set_allocated_kinematics(::PROTOBUF_NAMESPACE_ID::Struct* kinematics) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.kinematics_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(kinematics_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (kinematics) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(kinematics)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + kinematics = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, kinematics, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.kinematics_ = reinterpret_cast<::google::protobuf::Struct*>(value); + kinematics_ = kinematics; // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.FrameSystemConfig.kinematics) } @@ -10125,47 +9651,39 @@ inline void FrameSystemConfig::set_allocated_kinematics(::google::protobuf::Stru // repeated .viam.common.v1.Transform supplemental_transforms = 1 [json_name = "supplementalTransforms"]; inline int FrameSystemConfigRequest::_internal_supplemental_transforms_size() const { - return _internal_supplemental_transforms().size(); + return supplemental_transforms_.size(); } inline int FrameSystemConfigRequest::supplemental_transforms_size() const { return _internal_supplemental_transforms_size(); } -inline ::viam::common::v1::Transform* FrameSystemConfigRequest::mutable_supplemental_transforms(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::Transform* FrameSystemConfigRequest::mutable_supplemental_transforms(int index) { // @@protoc_insertion_point(field_mutable:viam.robot.v1.FrameSystemConfigRequest.supplemental_transforms) - return _internal_mutable_supplemental_transforms()->Mutable(index); + return supplemental_transforms_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::common::v1::Transform>* FrameSystemConfigRequest::mutable_supplemental_transforms() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Transform >* +FrameSystemConfigRequest::mutable_supplemental_transforms() { // @@protoc_insertion_point(field_mutable_list:viam.robot.v1.FrameSystemConfigRequest.supplemental_transforms) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_supplemental_transforms(); + return &supplemental_transforms_; +} +inline const ::viam::common::v1::Transform& FrameSystemConfigRequest::_internal_supplemental_transforms(int index) const { + return supplemental_transforms_.Get(index); } -inline const ::viam::common::v1::Transform& FrameSystemConfigRequest::supplemental_transforms(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::Transform& FrameSystemConfigRequest::supplemental_transforms(int index) const { // @@protoc_insertion_point(field_get:viam.robot.v1.FrameSystemConfigRequest.supplemental_transforms) - return _internal_supplemental_transforms().Get(index); + return _internal_supplemental_transforms(index); } -inline ::viam::common::v1::Transform* FrameSystemConfigRequest::add_supplemental_transforms() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::common::v1::Transform* _add = _internal_mutable_supplemental_transforms()->Add(); +inline ::viam::common::v1::Transform* FrameSystemConfigRequest::_internal_add_supplemental_transforms() { + return supplemental_transforms_.Add(); +} +inline ::viam::common::v1::Transform* FrameSystemConfigRequest::add_supplemental_transforms() { + ::viam::common::v1::Transform* _add = _internal_add_supplemental_transforms(); // @@protoc_insertion_point(field_add:viam.robot.v1.FrameSystemConfigRequest.supplemental_transforms) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::common::v1::Transform>& FrameSystemConfigRequest::supplemental_transforms() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Transform >& +FrameSystemConfigRequest::supplemental_transforms() const { // @@protoc_insertion_point(field_list:viam.robot.v1.FrameSystemConfigRequest.supplemental_transforms) - return _internal_supplemental_transforms(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::common::v1::Transform>& -FrameSystemConfigRequest::_internal_supplemental_transforms() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.supplemental_transforms_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::common::v1::Transform>* -FrameSystemConfigRequest::_internal_mutable_supplemental_transforms() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.supplemental_transforms_; + return supplemental_transforms_; } // ------------------------------------------------------------------- @@ -10174,51 +9692,42 @@ FrameSystemConfigRequest::_internal_mutable_supplemental_transforms() { // repeated .viam.robot.v1.FrameSystemConfig frame_system_configs = 1 [json_name = "frameSystemConfigs"]; inline int FrameSystemConfigResponse::_internal_frame_system_configs_size() const { - return _internal_frame_system_configs().size(); + return frame_system_configs_.size(); } inline int FrameSystemConfigResponse::frame_system_configs_size() const { return _internal_frame_system_configs_size(); } inline void FrameSystemConfigResponse::clear_frame_system_configs() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.frame_system_configs_.Clear(); + frame_system_configs_.Clear(); } -inline ::viam::robot::v1::FrameSystemConfig* FrameSystemConfigResponse::mutable_frame_system_configs(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::robot::v1::FrameSystemConfig* FrameSystemConfigResponse::mutable_frame_system_configs(int index) { // @@protoc_insertion_point(field_mutable:viam.robot.v1.FrameSystemConfigResponse.frame_system_configs) - return _internal_mutable_frame_system_configs()->Mutable(index); + return frame_system_configs_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::robot::v1::FrameSystemConfig>* FrameSystemConfigResponse::mutable_frame_system_configs() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::FrameSystemConfig >* +FrameSystemConfigResponse::mutable_frame_system_configs() { // @@protoc_insertion_point(field_mutable_list:viam.robot.v1.FrameSystemConfigResponse.frame_system_configs) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_frame_system_configs(); + return &frame_system_configs_; +} +inline const ::viam::robot::v1::FrameSystemConfig& FrameSystemConfigResponse::_internal_frame_system_configs(int index) const { + return frame_system_configs_.Get(index); } -inline const ::viam::robot::v1::FrameSystemConfig& FrameSystemConfigResponse::frame_system_configs(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::robot::v1::FrameSystemConfig& FrameSystemConfigResponse::frame_system_configs(int index) const { // @@protoc_insertion_point(field_get:viam.robot.v1.FrameSystemConfigResponse.frame_system_configs) - return _internal_frame_system_configs().Get(index); + return _internal_frame_system_configs(index); } -inline ::viam::robot::v1::FrameSystemConfig* FrameSystemConfigResponse::add_frame_system_configs() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::robot::v1::FrameSystemConfig* _add = _internal_mutable_frame_system_configs()->Add(); +inline ::viam::robot::v1::FrameSystemConfig* FrameSystemConfigResponse::_internal_add_frame_system_configs() { + return frame_system_configs_.Add(); +} +inline ::viam::robot::v1::FrameSystemConfig* FrameSystemConfigResponse::add_frame_system_configs() { + ::viam::robot::v1::FrameSystemConfig* _add = _internal_add_frame_system_configs(); // @@protoc_insertion_point(field_add:viam.robot.v1.FrameSystemConfigResponse.frame_system_configs) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::robot::v1::FrameSystemConfig>& FrameSystemConfigResponse::frame_system_configs() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::FrameSystemConfig >& +FrameSystemConfigResponse::frame_system_configs() const { // @@protoc_insertion_point(field_list:viam.robot.v1.FrameSystemConfigResponse.frame_system_configs) - return _internal_frame_system_configs(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::robot::v1::FrameSystemConfig>& -FrameSystemConfigResponse::_internal_frame_system_configs() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.frame_system_configs_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::robot::v1::FrameSystemConfig>* -FrameSystemConfigResponse::_internal_mutable_frame_system_configs() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.frame_system_configs_; + return frame_system_configs_; } // ------------------------------------------------------------------- @@ -10226,192 +9735,175 @@ FrameSystemConfigResponse::_internal_mutable_frame_system_configs() { // TransformPoseRequest // .viam.common.v1.PoseInFrame source = 1 [json_name = "source"]; +inline bool TransformPoseRequest::_internal_has_source() const { + return this != internal_default_instance() && source_ != nullptr; +} inline bool TransformPoseRequest::has_source() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.source_ != nullptr); - return value; + return _internal_has_source(); } inline const ::viam::common::v1::PoseInFrame& TransformPoseRequest::_internal_source() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::common::v1::PoseInFrame* p = _impl_.source_; - return p != nullptr ? *p : reinterpret_cast(::viam::common::v1::_PoseInFrame_default_instance_); + const ::viam::common::v1::PoseInFrame* p = source_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_PoseInFrame_default_instance_); } -inline const ::viam::common::v1::PoseInFrame& TransformPoseRequest::source() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::PoseInFrame& TransformPoseRequest::source() const { // @@protoc_insertion_point(field_get:viam.robot.v1.TransformPoseRequest.source) return _internal_source(); } -inline void TransformPoseRequest::unsafe_arena_set_allocated_source(::viam::common::v1::PoseInFrame* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.source_); +inline void TransformPoseRequest::unsafe_arena_set_allocated_source( + ::viam::common::v1::PoseInFrame* source) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(source_); } - _impl_.source_ = reinterpret_cast<::viam::common::v1::PoseInFrame*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + source_ = source; + if (source) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.robot.v1.TransformPoseRequest.source) } inline ::viam::common::v1::PoseInFrame* TransformPoseRequest::release_source() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::PoseInFrame* released = _impl_.source_; - _impl_.source_ = nullptr; + + ::viam::common::v1::PoseInFrame* temp = source_; + source_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::common::v1::PoseInFrame* TransformPoseRequest::unsafe_arena_release_source() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.robot.v1.TransformPoseRequest.source) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::PoseInFrame* temp = _impl_.source_; - _impl_.source_ = nullptr; + + ::viam::common::v1::PoseInFrame* temp = source_; + source_ = nullptr; return temp; } inline ::viam::common::v1::PoseInFrame* TransformPoseRequest::_internal_mutable_source() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.source_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::PoseInFrame>(GetArena()); - _impl_.source_ = reinterpret_cast<::viam::common::v1::PoseInFrame*>(p); + + if (source_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::PoseInFrame>(GetArenaForAllocation()); + source_ = p; } - return _impl_.source_; + return source_; } -inline ::viam::common::v1::PoseInFrame* TransformPoseRequest::mutable_source() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::PoseInFrame* TransformPoseRequest::mutable_source() { ::viam::common::v1::PoseInFrame* _msg = _internal_mutable_source(); // @@protoc_insertion_point(field_mutable:viam.robot.v1.TransformPoseRequest.source) return _msg; } -inline void TransformPoseRequest::set_allocated_source(::viam::common::v1::PoseInFrame* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TransformPoseRequest::set_allocated_source(::viam::common::v1::PoseInFrame* source) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.source_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(source_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (source) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(source)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + source = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, source, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.source_ = reinterpret_cast<::viam::common::v1::PoseInFrame*>(value); + source_ = source; // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.TransformPoseRequest.source) } // string destination = 2 [json_name = "destination"]; inline void TransformPoseRequest::clear_destination() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.destination_.ClearToEmpty(); + destination_.ClearToEmpty(); } -inline const std::string& TransformPoseRequest::destination() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& TransformPoseRequest::destination() const { // @@protoc_insertion_point(field_get:viam.robot.v1.TransformPoseRequest.destination) return _internal_destination(); } -template -inline PROTOBUF_ALWAYS_INLINE void TransformPoseRequest::set_destination(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.destination_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void TransformPoseRequest::set_destination(ArgT0&& arg0, ArgT... args) { + + destination_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.robot.v1.TransformPoseRequest.destination) } -inline std::string* TransformPoseRequest::mutable_destination() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* TransformPoseRequest::mutable_destination() { std::string* _s = _internal_mutable_destination(); // @@protoc_insertion_point(field_mutable:viam.robot.v1.TransformPoseRequest.destination) return _s; } inline const std::string& TransformPoseRequest::_internal_destination() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.destination_.Get(); + return destination_.Get(); } inline void TransformPoseRequest::_internal_set_destination(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.destination_.Set(value, GetArena()); + + destination_.Set(value, GetArenaForAllocation()); } inline std::string* TransformPoseRequest::_internal_mutable_destination() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.destination_.Mutable( GetArena()); + + return destination_.Mutable(GetArenaForAllocation()); } inline std::string* TransformPoseRequest::release_destination() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.robot.v1.TransformPoseRequest.destination) - return _impl_.destination_.Release(); -} -inline void TransformPoseRequest::set_allocated_destination(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.destination_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.destination_.IsDefault()) { - _impl_.destination_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return destination_.Release(); +} +inline void TransformPoseRequest::set_allocated_destination(std::string* destination) { + if (destination != nullptr) { + + } else { + + } + destination_.SetAllocated(destination, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (destination_.IsDefault()) { + destination_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.TransformPoseRequest.destination) } // repeated .viam.common.v1.Transform supplemental_transforms = 3 [json_name = "supplementalTransforms"]; inline int TransformPoseRequest::_internal_supplemental_transforms_size() const { - return _internal_supplemental_transforms().size(); + return supplemental_transforms_.size(); } inline int TransformPoseRequest::supplemental_transforms_size() const { return _internal_supplemental_transforms_size(); } -inline ::viam::common::v1::Transform* TransformPoseRequest::mutable_supplemental_transforms(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::Transform* TransformPoseRequest::mutable_supplemental_transforms(int index) { // @@protoc_insertion_point(field_mutable:viam.robot.v1.TransformPoseRequest.supplemental_transforms) - return _internal_mutable_supplemental_transforms()->Mutable(index); + return supplemental_transforms_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::common::v1::Transform>* TransformPoseRequest::mutable_supplemental_transforms() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Transform >* +TransformPoseRequest::mutable_supplemental_transforms() { // @@protoc_insertion_point(field_mutable_list:viam.robot.v1.TransformPoseRequest.supplemental_transforms) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_supplemental_transforms(); + return &supplemental_transforms_; +} +inline const ::viam::common::v1::Transform& TransformPoseRequest::_internal_supplemental_transforms(int index) const { + return supplemental_transforms_.Get(index); } -inline const ::viam::common::v1::Transform& TransformPoseRequest::supplemental_transforms(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::Transform& TransformPoseRequest::supplemental_transforms(int index) const { // @@protoc_insertion_point(field_get:viam.robot.v1.TransformPoseRequest.supplemental_transforms) - return _internal_supplemental_transforms().Get(index); + return _internal_supplemental_transforms(index); } -inline ::viam::common::v1::Transform* TransformPoseRequest::add_supplemental_transforms() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::common::v1::Transform* _add = _internal_mutable_supplemental_transforms()->Add(); +inline ::viam::common::v1::Transform* TransformPoseRequest::_internal_add_supplemental_transforms() { + return supplemental_transforms_.Add(); +} +inline ::viam::common::v1::Transform* TransformPoseRequest::add_supplemental_transforms() { + ::viam::common::v1::Transform* _add = _internal_add_supplemental_transforms(); // @@protoc_insertion_point(field_add:viam.robot.v1.TransformPoseRequest.supplemental_transforms) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::common::v1::Transform>& TransformPoseRequest::supplemental_transforms() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Transform >& +TransformPoseRequest::supplemental_transforms() const { // @@protoc_insertion_point(field_list:viam.robot.v1.TransformPoseRequest.supplemental_transforms) - return _internal_supplemental_transforms(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::common::v1::Transform>& -TransformPoseRequest::_internal_supplemental_transforms() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.supplemental_transforms_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::common::v1::Transform>* -TransformPoseRequest::_internal_mutable_supplemental_transforms() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.supplemental_transforms_; + return supplemental_transforms_; } // ------------------------------------------------------------------- @@ -10419,93 +9911,87 @@ TransformPoseRequest::_internal_mutable_supplemental_transforms() { // TransformPoseResponse // .viam.common.v1.PoseInFrame pose = 1 [json_name = "pose"]; +inline bool TransformPoseResponse::_internal_has_pose() const { + return this != internal_default_instance() && pose_ != nullptr; +} inline bool TransformPoseResponse::has_pose() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.pose_ != nullptr); - return value; + return _internal_has_pose(); } inline const ::viam::common::v1::PoseInFrame& TransformPoseResponse::_internal_pose() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::common::v1::PoseInFrame* p = _impl_.pose_; - return p != nullptr ? *p : reinterpret_cast(::viam::common::v1::_PoseInFrame_default_instance_); + const ::viam::common::v1::PoseInFrame* p = pose_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_PoseInFrame_default_instance_); } -inline const ::viam::common::v1::PoseInFrame& TransformPoseResponse::pose() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::PoseInFrame& TransformPoseResponse::pose() const { // @@protoc_insertion_point(field_get:viam.robot.v1.TransformPoseResponse.pose) return _internal_pose(); } -inline void TransformPoseResponse::unsafe_arena_set_allocated_pose(::viam::common::v1::PoseInFrame* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.pose_); +inline void TransformPoseResponse::unsafe_arena_set_allocated_pose( + ::viam::common::v1::PoseInFrame* pose) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(pose_); } - _impl_.pose_ = reinterpret_cast<::viam::common::v1::PoseInFrame*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + pose_ = pose; + if (pose) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.robot.v1.TransformPoseResponse.pose) } inline ::viam::common::v1::PoseInFrame* TransformPoseResponse::release_pose() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::PoseInFrame* released = _impl_.pose_; - _impl_.pose_ = nullptr; + + ::viam::common::v1::PoseInFrame* temp = pose_; + pose_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::common::v1::PoseInFrame* TransformPoseResponse::unsafe_arena_release_pose() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.robot.v1.TransformPoseResponse.pose) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::PoseInFrame* temp = _impl_.pose_; - _impl_.pose_ = nullptr; + + ::viam::common::v1::PoseInFrame* temp = pose_; + pose_ = nullptr; return temp; } inline ::viam::common::v1::PoseInFrame* TransformPoseResponse::_internal_mutable_pose() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.pose_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::PoseInFrame>(GetArena()); - _impl_.pose_ = reinterpret_cast<::viam::common::v1::PoseInFrame*>(p); + + if (pose_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::PoseInFrame>(GetArenaForAllocation()); + pose_ = p; } - return _impl_.pose_; + return pose_; } -inline ::viam::common::v1::PoseInFrame* TransformPoseResponse::mutable_pose() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::PoseInFrame* TransformPoseResponse::mutable_pose() { ::viam::common::v1::PoseInFrame* _msg = _internal_mutable_pose(); // @@protoc_insertion_point(field_mutable:viam.robot.v1.TransformPoseResponse.pose) return _msg; } -inline void TransformPoseResponse::set_allocated_pose(::viam::common::v1::PoseInFrame* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TransformPoseResponse::set_allocated_pose(::viam::common::v1::PoseInFrame* pose) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.pose_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(pose_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (pose) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(pose)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + pose = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, pose, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.pose_ = reinterpret_cast<::viam::common::v1::PoseInFrame*>(value); + pose_ = pose; // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.TransformPoseResponse.pose) } @@ -10515,160 +10001,151 @@ inline void TransformPoseResponse::set_allocated_pose(::viam::common::v1::PoseIn // bytes point_cloud_pcd = 1 [json_name = "pointCloudPcd"]; inline void TransformPCDRequest::clear_point_cloud_pcd() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.point_cloud_pcd_.ClearToEmpty(); + point_cloud_pcd_.ClearToEmpty(); } -inline const std::string& TransformPCDRequest::point_cloud_pcd() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& TransformPCDRequest::point_cloud_pcd() const { // @@protoc_insertion_point(field_get:viam.robot.v1.TransformPCDRequest.point_cloud_pcd) return _internal_point_cloud_pcd(); } -template -inline PROTOBUF_ALWAYS_INLINE void TransformPCDRequest::set_point_cloud_pcd(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.point_cloud_pcd_.SetBytes(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void TransformPCDRequest::set_point_cloud_pcd(ArgT0&& arg0, ArgT... args) { + + point_cloud_pcd_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.robot.v1.TransformPCDRequest.point_cloud_pcd) } -inline std::string* TransformPCDRequest::mutable_point_cloud_pcd() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* TransformPCDRequest::mutable_point_cloud_pcd() { std::string* _s = _internal_mutable_point_cloud_pcd(); // @@protoc_insertion_point(field_mutable:viam.robot.v1.TransformPCDRequest.point_cloud_pcd) return _s; } inline const std::string& TransformPCDRequest::_internal_point_cloud_pcd() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.point_cloud_pcd_.Get(); + return point_cloud_pcd_.Get(); } inline void TransformPCDRequest::_internal_set_point_cloud_pcd(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.point_cloud_pcd_.Set(value, GetArena()); + + point_cloud_pcd_.Set(value, GetArenaForAllocation()); } inline std::string* TransformPCDRequest::_internal_mutable_point_cloud_pcd() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.point_cloud_pcd_.Mutable( GetArena()); + + return point_cloud_pcd_.Mutable(GetArenaForAllocation()); } inline std::string* TransformPCDRequest::release_point_cloud_pcd() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.robot.v1.TransformPCDRequest.point_cloud_pcd) - return _impl_.point_cloud_pcd_.Release(); -} -inline void TransformPCDRequest::set_allocated_point_cloud_pcd(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.point_cloud_pcd_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.point_cloud_pcd_.IsDefault()) { - _impl_.point_cloud_pcd_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return point_cloud_pcd_.Release(); +} +inline void TransformPCDRequest::set_allocated_point_cloud_pcd(std::string* point_cloud_pcd) { + if (point_cloud_pcd != nullptr) { + + } else { + + } + point_cloud_pcd_.SetAllocated(point_cloud_pcd, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (point_cloud_pcd_.IsDefault()) { + point_cloud_pcd_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.TransformPCDRequest.point_cloud_pcd) } // string source = 2 [json_name = "source"]; inline void TransformPCDRequest::clear_source() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.source_.ClearToEmpty(); + source_.ClearToEmpty(); } -inline const std::string& TransformPCDRequest::source() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& TransformPCDRequest::source() const { // @@protoc_insertion_point(field_get:viam.robot.v1.TransformPCDRequest.source) return _internal_source(); } -template -inline PROTOBUF_ALWAYS_INLINE void TransformPCDRequest::set_source(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.source_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void TransformPCDRequest::set_source(ArgT0&& arg0, ArgT... args) { + + source_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.robot.v1.TransformPCDRequest.source) } -inline std::string* TransformPCDRequest::mutable_source() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* TransformPCDRequest::mutable_source() { std::string* _s = _internal_mutable_source(); // @@protoc_insertion_point(field_mutable:viam.robot.v1.TransformPCDRequest.source) return _s; } inline const std::string& TransformPCDRequest::_internal_source() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.source_.Get(); + return source_.Get(); } inline void TransformPCDRequest::_internal_set_source(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.source_.Set(value, GetArena()); + + source_.Set(value, GetArenaForAllocation()); } inline std::string* TransformPCDRequest::_internal_mutable_source() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.source_.Mutable( GetArena()); + + return source_.Mutable(GetArenaForAllocation()); } inline std::string* TransformPCDRequest::release_source() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.robot.v1.TransformPCDRequest.source) - return _impl_.source_.Release(); -} -inline void TransformPCDRequest::set_allocated_source(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.source_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.source_.IsDefault()) { - _impl_.source_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return source_.Release(); +} +inline void TransformPCDRequest::set_allocated_source(std::string* source) { + if (source != nullptr) { + + } else { + + } + source_.SetAllocated(source, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (source_.IsDefault()) { + source_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.TransformPCDRequest.source) } // string destination = 3 [json_name = "destination"]; inline void TransformPCDRequest::clear_destination() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.destination_.ClearToEmpty(); + destination_.ClearToEmpty(); } -inline const std::string& TransformPCDRequest::destination() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& TransformPCDRequest::destination() const { // @@protoc_insertion_point(field_get:viam.robot.v1.TransformPCDRequest.destination) return _internal_destination(); } -template -inline PROTOBUF_ALWAYS_INLINE void TransformPCDRequest::set_destination(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.destination_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void TransformPCDRequest::set_destination(ArgT0&& arg0, ArgT... args) { + + destination_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.robot.v1.TransformPCDRequest.destination) } -inline std::string* TransformPCDRequest::mutable_destination() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* TransformPCDRequest::mutable_destination() { std::string* _s = _internal_mutable_destination(); // @@protoc_insertion_point(field_mutable:viam.robot.v1.TransformPCDRequest.destination) return _s; } inline const std::string& TransformPCDRequest::_internal_destination() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.destination_.Get(); + return destination_.Get(); } inline void TransformPCDRequest::_internal_set_destination(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.destination_.Set(value, GetArena()); + + destination_.Set(value, GetArenaForAllocation()); } inline std::string* TransformPCDRequest::_internal_mutable_destination() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.destination_.Mutable( GetArena()); + + return destination_.Mutable(GetArenaForAllocation()); } inline std::string* TransformPCDRequest::release_destination() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.robot.v1.TransformPCDRequest.destination) - return _impl_.destination_.Release(); -} -inline void TransformPCDRequest::set_allocated_destination(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.destination_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.destination_.IsDefault()) { - _impl_.destination_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return destination_.Release(); +} +inline void TransformPCDRequest::set_allocated_destination(std::string* destination) { + if (destination != nullptr) { + + } else { + + } + destination_.SetAllocated(destination, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (destination_.IsDefault()) { + destination_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.TransformPCDRequest.destination) } @@ -10678,54 +10155,51 @@ inline void TransformPCDRequest::set_allocated_destination(std::string* value) { // bytes point_cloud_pcd = 1 [json_name = "pointCloudPcd"]; inline void TransformPCDResponse::clear_point_cloud_pcd() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.point_cloud_pcd_.ClearToEmpty(); + point_cloud_pcd_.ClearToEmpty(); } -inline const std::string& TransformPCDResponse::point_cloud_pcd() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& TransformPCDResponse::point_cloud_pcd() const { // @@protoc_insertion_point(field_get:viam.robot.v1.TransformPCDResponse.point_cloud_pcd) return _internal_point_cloud_pcd(); } -template -inline PROTOBUF_ALWAYS_INLINE void TransformPCDResponse::set_point_cloud_pcd(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.point_cloud_pcd_.SetBytes(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void TransformPCDResponse::set_point_cloud_pcd(ArgT0&& arg0, ArgT... args) { + + point_cloud_pcd_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.robot.v1.TransformPCDResponse.point_cloud_pcd) } -inline std::string* TransformPCDResponse::mutable_point_cloud_pcd() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* TransformPCDResponse::mutable_point_cloud_pcd() { std::string* _s = _internal_mutable_point_cloud_pcd(); // @@protoc_insertion_point(field_mutable:viam.robot.v1.TransformPCDResponse.point_cloud_pcd) return _s; } inline const std::string& TransformPCDResponse::_internal_point_cloud_pcd() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.point_cloud_pcd_.Get(); + return point_cloud_pcd_.Get(); } inline void TransformPCDResponse::_internal_set_point_cloud_pcd(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.point_cloud_pcd_.Set(value, GetArena()); + + point_cloud_pcd_.Set(value, GetArenaForAllocation()); } inline std::string* TransformPCDResponse::_internal_mutable_point_cloud_pcd() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.point_cloud_pcd_.Mutable( GetArena()); + + return point_cloud_pcd_.Mutable(GetArenaForAllocation()); } inline std::string* TransformPCDResponse::release_point_cloud_pcd() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.robot.v1.TransformPCDResponse.point_cloud_pcd) - return _impl_.point_cloud_pcd_.Release(); -} -inline void TransformPCDResponse::set_allocated_point_cloud_pcd(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.point_cloud_pcd_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.point_cloud_pcd_.IsDefault()) { - _impl_.point_cloud_pcd_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return point_cloud_pcd_.Release(); +} +inline void TransformPCDResponse::set_allocated_point_cloud_pcd(std::string* point_cloud_pcd) { + if (point_cloud_pcd != nullptr) { + + } else { + + } + point_cloud_pcd_.SetAllocated(point_cloud_pcd, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (point_cloud_pcd_.IsDefault()) { + point_cloud_pcd_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.TransformPCDResponse.point_cloud_pcd) } @@ -10739,47 +10213,39 @@ inline void TransformPCDResponse::set_allocated_point_cloud_pcd(std::string* val // repeated .viam.common.v1.ResourceName resources = 1 [json_name = "resources"]; inline int ResourceNamesResponse::_internal_resources_size() const { - return _internal_resources().size(); + return resources_.size(); } inline int ResourceNamesResponse::resources_size() const { return _internal_resources_size(); } -inline ::viam::common::v1::ResourceName* ResourceNamesResponse::mutable_resources(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::ResourceName* ResourceNamesResponse::mutable_resources(int index) { // @@protoc_insertion_point(field_mutable:viam.robot.v1.ResourceNamesResponse.resources) - return _internal_mutable_resources()->Mutable(index); + return resources_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::common::v1::ResourceName>* ResourceNamesResponse::mutable_resources() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::ResourceName >* +ResourceNamesResponse::mutable_resources() { // @@protoc_insertion_point(field_mutable_list:viam.robot.v1.ResourceNamesResponse.resources) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_resources(); + return &resources_; +} +inline const ::viam::common::v1::ResourceName& ResourceNamesResponse::_internal_resources(int index) const { + return resources_.Get(index); } -inline const ::viam::common::v1::ResourceName& ResourceNamesResponse::resources(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::ResourceName& ResourceNamesResponse::resources(int index) const { // @@protoc_insertion_point(field_get:viam.robot.v1.ResourceNamesResponse.resources) - return _internal_resources().Get(index); + return _internal_resources(index); } -inline ::viam::common::v1::ResourceName* ResourceNamesResponse::add_resources() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::common::v1::ResourceName* _add = _internal_mutable_resources()->Add(); +inline ::viam::common::v1::ResourceName* ResourceNamesResponse::_internal_add_resources() { + return resources_.Add(); +} +inline ::viam::common::v1::ResourceName* ResourceNamesResponse::add_resources() { + ::viam::common::v1::ResourceName* _add = _internal_add_resources(); // @@protoc_insertion_point(field_add:viam.robot.v1.ResourceNamesResponse.resources) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::common::v1::ResourceName>& ResourceNamesResponse::resources() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::ResourceName >& +ResourceNamesResponse::resources() const { // @@protoc_insertion_point(field_list:viam.robot.v1.ResourceNamesResponse.resources) - return _internal_resources(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::common::v1::ResourceName>& -ResourceNamesResponse::_internal_resources() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.resources_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::common::v1::ResourceName>* -ResourceNamesResponse::_internal_mutable_resources() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.resources_; + return resources_; } // ------------------------------------------------------------------- @@ -10787,146 +10253,137 @@ ResourceNamesResponse::_internal_mutable_resources() { // ResourceRPCSubtype // .viam.common.v1.ResourceName subtype = 1 [json_name = "subtype"]; +inline bool ResourceRPCSubtype::_internal_has_subtype() const { + return this != internal_default_instance() && subtype_ != nullptr; +} inline bool ResourceRPCSubtype::has_subtype() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.subtype_ != nullptr); - return value; + return _internal_has_subtype(); } inline const ::viam::common::v1::ResourceName& ResourceRPCSubtype::_internal_subtype() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::common::v1::ResourceName* p = _impl_.subtype_; - return p != nullptr ? *p : reinterpret_cast(::viam::common::v1::_ResourceName_default_instance_); + const ::viam::common::v1::ResourceName* p = subtype_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_ResourceName_default_instance_); } -inline const ::viam::common::v1::ResourceName& ResourceRPCSubtype::subtype() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::ResourceName& ResourceRPCSubtype::subtype() const { // @@protoc_insertion_point(field_get:viam.robot.v1.ResourceRPCSubtype.subtype) return _internal_subtype(); } -inline void ResourceRPCSubtype::unsafe_arena_set_allocated_subtype(::viam::common::v1::ResourceName* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.subtype_); +inline void ResourceRPCSubtype::unsafe_arena_set_allocated_subtype( + ::viam::common::v1::ResourceName* subtype) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(subtype_); } - _impl_.subtype_ = reinterpret_cast<::viam::common::v1::ResourceName*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + subtype_ = subtype; + if (subtype) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.robot.v1.ResourceRPCSubtype.subtype) } inline ::viam::common::v1::ResourceName* ResourceRPCSubtype::release_subtype() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::ResourceName* released = _impl_.subtype_; - _impl_.subtype_ = nullptr; + + ::viam::common::v1::ResourceName* temp = subtype_; + subtype_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::common::v1::ResourceName* ResourceRPCSubtype::unsafe_arena_release_subtype() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.robot.v1.ResourceRPCSubtype.subtype) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::ResourceName* temp = _impl_.subtype_; - _impl_.subtype_ = nullptr; + + ::viam::common::v1::ResourceName* temp = subtype_; + subtype_ = nullptr; return temp; } inline ::viam::common::v1::ResourceName* ResourceRPCSubtype::_internal_mutable_subtype() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.subtype_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArena()); - _impl_.subtype_ = reinterpret_cast<::viam::common::v1::ResourceName*>(p); + + if (subtype_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArenaForAllocation()); + subtype_ = p; } - return _impl_.subtype_; + return subtype_; } -inline ::viam::common::v1::ResourceName* ResourceRPCSubtype::mutable_subtype() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::ResourceName* ResourceRPCSubtype::mutable_subtype() { ::viam::common::v1::ResourceName* _msg = _internal_mutable_subtype(); // @@protoc_insertion_point(field_mutable:viam.robot.v1.ResourceRPCSubtype.subtype) return _msg; } -inline void ResourceRPCSubtype::set_allocated_subtype(::viam::common::v1::ResourceName* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ResourceRPCSubtype::set_allocated_subtype(::viam::common::v1::ResourceName* subtype) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.subtype_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(subtype_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (subtype) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(subtype)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + subtype = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, subtype, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.subtype_ = reinterpret_cast<::viam::common::v1::ResourceName*>(value); + subtype_ = subtype; // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.ResourceRPCSubtype.subtype) } // string proto_service = 2 [json_name = "protoService"]; inline void ResourceRPCSubtype::clear_proto_service() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.proto_service_.ClearToEmpty(); + proto_service_.ClearToEmpty(); } -inline const std::string& ResourceRPCSubtype::proto_service() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ResourceRPCSubtype::proto_service() const { // @@protoc_insertion_point(field_get:viam.robot.v1.ResourceRPCSubtype.proto_service) return _internal_proto_service(); } -template -inline PROTOBUF_ALWAYS_INLINE void ResourceRPCSubtype::set_proto_service(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.proto_service_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ResourceRPCSubtype::set_proto_service(ArgT0&& arg0, ArgT... args) { + + proto_service_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.robot.v1.ResourceRPCSubtype.proto_service) } -inline std::string* ResourceRPCSubtype::mutable_proto_service() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ResourceRPCSubtype::mutable_proto_service() { std::string* _s = _internal_mutable_proto_service(); // @@protoc_insertion_point(field_mutable:viam.robot.v1.ResourceRPCSubtype.proto_service) return _s; } inline const std::string& ResourceRPCSubtype::_internal_proto_service() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.proto_service_.Get(); + return proto_service_.Get(); } inline void ResourceRPCSubtype::_internal_set_proto_service(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.proto_service_.Set(value, GetArena()); + + proto_service_.Set(value, GetArenaForAllocation()); } inline std::string* ResourceRPCSubtype::_internal_mutable_proto_service() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.proto_service_.Mutable( GetArena()); + + return proto_service_.Mutable(GetArenaForAllocation()); } inline std::string* ResourceRPCSubtype::release_proto_service() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.robot.v1.ResourceRPCSubtype.proto_service) - return _impl_.proto_service_.Release(); -} -inline void ResourceRPCSubtype::set_allocated_proto_service(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.proto_service_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.proto_service_.IsDefault()) { - _impl_.proto_service_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return proto_service_.Release(); +} +inline void ResourceRPCSubtype::set_allocated_proto_service(std::string* proto_service) { + if (proto_service != nullptr) { + + } else { + + } + proto_service_.SetAllocated(proto_service, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (proto_service_.IsDefault()) { + proto_service_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.ResourceRPCSubtype.proto_service) } @@ -10940,51 +10397,42 @@ inline void ResourceRPCSubtype::set_allocated_proto_service(std::string* value) // repeated .viam.robot.v1.ResourceRPCSubtype resource_rpc_subtypes = 1 [json_name = "resourceRpcSubtypes"]; inline int ResourceRPCSubtypesResponse::_internal_resource_rpc_subtypes_size() const { - return _internal_resource_rpc_subtypes().size(); + return resource_rpc_subtypes_.size(); } inline int ResourceRPCSubtypesResponse::resource_rpc_subtypes_size() const { return _internal_resource_rpc_subtypes_size(); } inline void ResourceRPCSubtypesResponse::clear_resource_rpc_subtypes() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.resource_rpc_subtypes_.Clear(); + resource_rpc_subtypes_.Clear(); } -inline ::viam::robot::v1::ResourceRPCSubtype* ResourceRPCSubtypesResponse::mutable_resource_rpc_subtypes(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::robot::v1::ResourceRPCSubtype* ResourceRPCSubtypesResponse::mutable_resource_rpc_subtypes(int index) { // @@protoc_insertion_point(field_mutable:viam.robot.v1.ResourceRPCSubtypesResponse.resource_rpc_subtypes) - return _internal_mutable_resource_rpc_subtypes()->Mutable(index); + return resource_rpc_subtypes_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::robot::v1::ResourceRPCSubtype>* ResourceRPCSubtypesResponse::mutable_resource_rpc_subtypes() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::ResourceRPCSubtype >* +ResourceRPCSubtypesResponse::mutable_resource_rpc_subtypes() { // @@protoc_insertion_point(field_mutable_list:viam.robot.v1.ResourceRPCSubtypesResponse.resource_rpc_subtypes) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_resource_rpc_subtypes(); + return &resource_rpc_subtypes_; +} +inline const ::viam::robot::v1::ResourceRPCSubtype& ResourceRPCSubtypesResponse::_internal_resource_rpc_subtypes(int index) const { + return resource_rpc_subtypes_.Get(index); } -inline const ::viam::robot::v1::ResourceRPCSubtype& ResourceRPCSubtypesResponse::resource_rpc_subtypes(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::robot::v1::ResourceRPCSubtype& ResourceRPCSubtypesResponse::resource_rpc_subtypes(int index) const { // @@protoc_insertion_point(field_get:viam.robot.v1.ResourceRPCSubtypesResponse.resource_rpc_subtypes) - return _internal_resource_rpc_subtypes().Get(index); + return _internal_resource_rpc_subtypes(index); } -inline ::viam::robot::v1::ResourceRPCSubtype* ResourceRPCSubtypesResponse::add_resource_rpc_subtypes() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::robot::v1::ResourceRPCSubtype* _add = _internal_mutable_resource_rpc_subtypes()->Add(); +inline ::viam::robot::v1::ResourceRPCSubtype* ResourceRPCSubtypesResponse::_internal_add_resource_rpc_subtypes() { + return resource_rpc_subtypes_.Add(); +} +inline ::viam::robot::v1::ResourceRPCSubtype* ResourceRPCSubtypesResponse::add_resource_rpc_subtypes() { + ::viam::robot::v1::ResourceRPCSubtype* _add = _internal_add_resource_rpc_subtypes(); // @@protoc_insertion_point(field_add:viam.robot.v1.ResourceRPCSubtypesResponse.resource_rpc_subtypes) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::robot::v1::ResourceRPCSubtype>& ResourceRPCSubtypesResponse::resource_rpc_subtypes() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::ResourceRPCSubtype >& +ResourceRPCSubtypesResponse::resource_rpc_subtypes() const { // @@protoc_insertion_point(field_list:viam.robot.v1.ResourceRPCSubtypesResponse.resource_rpc_subtypes) - return _internal_resource_rpc_subtypes(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::robot::v1::ResourceRPCSubtype>& -ResourceRPCSubtypesResponse::_internal_resource_rpc_subtypes() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.resource_rpc_subtypes_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::robot::v1::ResourceRPCSubtype>* -ResourceRPCSubtypesResponse::_internal_mutable_resource_rpc_subtypes() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.resource_rpc_subtypes_; + return resource_rpc_subtypes_; } // ------------------------------------------------------------------- @@ -10993,360 +10441,339 @@ ResourceRPCSubtypesResponse::_internal_mutable_resource_rpc_subtypes() { // string id = 1 [json_name = "id"]; inline void Operation::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); + id_.ClearToEmpty(); } -inline const std::string& Operation::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Operation::id() const { // @@protoc_insertion_point(field_get:viam.robot.v1.Operation.id) return _internal_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void Operation::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Operation::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.robot.v1.Operation.id) } -inline std::string* Operation::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Operation::mutable_id() { std::string* _s = _internal_mutable_id(); // @@protoc_insertion_point(field_mutable:viam.robot.v1.Operation.id) return _s; } inline const std::string& Operation::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); + return id_.Get(); } inline void Operation::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); + + id_.Set(value, GetArenaForAllocation()); } inline std::string* Operation::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); + + return id_.Mutable(GetArenaForAllocation()); } inline std::string* Operation::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.robot.v1.Operation.id) - return _impl_.id_.Release(); -} -inline void Operation::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return id_.Release(); +} +inline void Operation::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.Operation.id) } // string method = 2 [json_name = "method"]; inline void Operation::clear_method() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.method_.ClearToEmpty(); + method_.ClearToEmpty(); } -inline const std::string& Operation::method() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Operation::method() const { // @@protoc_insertion_point(field_get:viam.robot.v1.Operation.method) return _internal_method(); } -template -inline PROTOBUF_ALWAYS_INLINE void Operation::set_method(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.method_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Operation::set_method(ArgT0&& arg0, ArgT... args) { + + method_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.robot.v1.Operation.method) } -inline std::string* Operation::mutable_method() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Operation::mutable_method() { std::string* _s = _internal_mutable_method(); // @@protoc_insertion_point(field_mutable:viam.robot.v1.Operation.method) return _s; } inline const std::string& Operation::_internal_method() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.method_.Get(); + return method_.Get(); } inline void Operation::_internal_set_method(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.method_.Set(value, GetArena()); + + method_.Set(value, GetArenaForAllocation()); } inline std::string* Operation::_internal_mutable_method() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.method_.Mutable( GetArena()); + + return method_.Mutable(GetArenaForAllocation()); } inline std::string* Operation::release_method() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.robot.v1.Operation.method) - return _impl_.method_.Release(); -} -inline void Operation::set_allocated_method(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.method_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.method_.IsDefault()) { - _impl_.method_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return method_.Release(); +} +inline void Operation::set_allocated_method(std::string* method) { + if (method != nullptr) { + + } else { + + } + method_.SetAllocated(method, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (method_.IsDefault()) { + method_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.Operation.method) } // .google.protobuf.Struct arguments = 3 [json_name = "arguments"]; +inline bool Operation::_internal_has_arguments() const { + return this != internal_default_instance() && arguments_ != nullptr; +} inline bool Operation::has_arguments() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.arguments_ != nullptr); - return value; + return _internal_has_arguments(); } -inline const ::google::protobuf::Struct& Operation::_internal_arguments() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.arguments_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& Operation::_internal_arguments() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = arguments_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& Operation::arguments() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& Operation::arguments() const { // @@protoc_insertion_point(field_get:viam.robot.v1.Operation.arguments) return _internal_arguments(); } -inline void Operation::unsafe_arena_set_allocated_arguments(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.arguments_); +inline void Operation::unsafe_arena_set_allocated_arguments( + ::PROTOBUF_NAMESPACE_ID::Struct* arguments) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(arguments_); } - _impl_.arguments_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + arguments_ = arguments; + if (arguments) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.robot.v1.Operation.arguments) } -inline ::google::protobuf::Struct* Operation::release_arguments() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Struct* released = _impl_.arguments_; - _impl_.arguments_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* Operation::release_arguments() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = arguments_; + arguments_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* Operation::unsafe_arena_release_arguments() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* Operation::unsafe_arena_release_arguments() { // @@protoc_insertion_point(field_release:viam.robot.v1.Operation.arguments) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Struct* temp = _impl_.arguments_; - _impl_.arguments_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = arguments_; + arguments_ = nullptr; return temp; } -inline ::google::protobuf::Struct* Operation::_internal_mutable_arguments() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.arguments_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.arguments_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* Operation::_internal_mutable_arguments() { + + if (arguments_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + arguments_ = p; } - return _impl_.arguments_; + return arguments_; } -inline ::google::protobuf::Struct* Operation::mutable_arguments() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_arguments(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* Operation::mutable_arguments() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_arguments(); // @@protoc_insertion_point(field_mutable:viam.robot.v1.Operation.arguments) return _msg; } -inline void Operation::set_allocated_arguments(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Operation::set_allocated_arguments(::PROTOBUF_NAMESPACE_ID::Struct* arguments) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.arguments_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(arguments_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (arguments) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(arguments)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + arguments = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, arguments, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.arguments_ = reinterpret_cast<::google::protobuf::Struct*>(value); + arguments_ = arguments; // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.Operation.arguments) } // .google.protobuf.Timestamp started = 4 [json_name = "started"]; +inline bool Operation::_internal_has_started() const { + return this != internal_default_instance() && started_ != nullptr; +} inline bool Operation::has_started() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || _impl_.started_ != nullptr); - return value; + return _internal_has_started(); } -inline const ::google::protobuf::Timestamp& Operation::_internal_started() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Timestamp* p = _impl_.started_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& Operation::_internal_started() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = started_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); } -inline const ::google::protobuf::Timestamp& Operation::started() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& Operation::started() const { // @@protoc_insertion_point(field_get:viam.robot.v1.Operation.started) return _internal_started(); } -inline void Operation::unsafe_arena_set_allocated_started(::google::protobuf::Timestamp* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.started_); +inline void Operation::unsafe_arena_set_allocated_started( + ::PROTOBUF_NAMESPACE_ID::Timestamp* started) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(started_); } - _impl_.started_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000004u; + started_ = started; + if (started) { + } else { - _impl_._has_bits_[0] &= ~0x00000004u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.robot.v1.Operation.started) } -inline ::google::protobuf::Timestamp* Operation::release_started() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000004u; - ::google::protobuf::Timestamp* released = _impl_.started_; - _impl_.started_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Operation::release_started() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = started_; + started_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Timestamp* Operation::unsafe_arena_release_started() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Operation::unsafe_arena_release_started() { // @@protoc_insertion_point(field_release:viam.robot.v1.Operation.started) - - _impl_._has_bits_[0] &= ~0x00000004u; - ::google::protobuf::Timestamp* temp = _impl_.started_; - _impl_.started_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = started_; + started_ = nullptr; return temp; } -inline ::google::protobuf::Timestamp* Operation::_internal_mutable_started() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - if (_impl_.started_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena()); - _impl_.started_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Operation::_internal_mutable_started() { + + if (started_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + started_ = p; } - return _impl_.started_; + return started_; } -inline ::google::protobuf::Timestamp* Operation::mutable_started() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Timestamp* _msg = _internal_mutable_started(); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Operation::mutable_started() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_started(); // @@protoc_insertion_point(field_mutable:viam.robot.v1.Operation.started) return _msg; } -inline void Operation::set_allocated_started(::google::protobuf::Timestamp* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Operation::set_allocated_started(::PROTOBUF_NAMESPACE_ID::Timestamp* started) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.started_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(started_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (started) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(started)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + started = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, started, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000004u; + } else { - _impl_._has_bits_[0] &= ~0x00000004u; + } - - _impl_.started_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); + started_ = started; // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.Operation.started) } // optional string session_id = 5 [json_name = "sessionId"]; -inline bool Operation::has_session_id() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; +inline bool Operation::_internal_has_session_id() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; return value; } +inline bool Operation::has_session_id() const { + return _internal_has_session_id(); +} inline void Operation::clear_session_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.session_id_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000001u; + session_id_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; } -inline const std::string& Operation::session_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Operation::session_id() const { // @@protoc_insertion_point(field_get:viam.robot.v1.Operation.session_id) return _internal_session_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void Operation::set_session_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.session_id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Operation::set_session_id(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + session_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.robot.v1.Operation.session_id) } -inline std::string* Operation::mutable_session_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Operation::mutable_session_id() { std::string* _s = _internal_mutable_session_id(); // @@protoc_insertion_point(field_mutable:viam.robot.v1.Operation.session_id) return _s; } inline const std::string& Operation::_internal_session_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.session_id_.Get(); + return session_id_.Get(); } inline void Operation::_internal_set_session_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.session_id_.Set(value, GetArena()); + _has_bits_[0] |= 0x00000001u; + session_id_.Set(value, GetArenaForAllocation()); } inline std::string* Operation::_internal_mutable_session_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.session_id_.Mutable( GetArena()); + _has_bits_[0] |= 0x00000001u; + return session_id_.Mutable(GetArenaForAllocation()); } inline std::string* Operation::release_session_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.robot.v1.Operation.session_id) - if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + if (!_internal_has_session_id()) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000001u; - auto* released = _impl_.session_id_.Release(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.session_id_.Set("", GetArena()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return released; -} -inline void Operation::set_allocated_session_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + _has_bits_[0] &= ~0x00000001u; + auto* p = session_id_.Release(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (session_id_.IsDefault()) { + session_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; +} +inline void Operation::set_allocated_session_id(std::string* session_id) { + if (session_id != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - _impl_.session_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.session_id_.IsDefault()) { - _impl_.session_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _has_bits_[0] &= ~0x00000001u; + } + session_id_.SetAllocated(session_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (session_id_.IsDefault()) { + session_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.Operation.session_id) } @@ -11360,51 +10787,42 @@ inline void Operation::set_allocated_session_id(std::string* value) { // repeated .viam.robot.v1.Operation operations = 1 [json_name = "operations"]; inline int GetOperationsResponse::_internal_operations_size() const { - return _internal_operations().size(); + return operations_.size(); } inline int GetOperationsResponse::operations_size() const { return _internal_operations_size(); } inline void GetOperationsResponse::clear_operations() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.operations_.Clear(); + operations_.Clear(); } -inline ::viam::robot::v1::Operation* GetOperationsResponse::mutable_operations(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::robot::v1::Operation* GetOperationsResponse::mutable_operations(int index) { // @@protoc_insertion_point(field_mutable:viam.robot.v1.GetOperationsResponse.operations) - return _internal_mutable_operations()->Mutable(index); + return operations_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::robot::v1::Operation>* GetOperationsResponse::mutable_operations() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::Operation >* +GetOperationsResponse::mutable_operations() { // @@protoc_insertion_point(field_mutable_list:viam.robot.v1.GetOperationsResponse.operations) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_operations(); + return &operations_; } -inline const ::viam::robot::v1::Operation& GetOperationsResponse::operations(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::robot::v1::Operation& GetOperationsResponse::_internal_operations(int index) const { + return operations_.Get(index); +} +inline const ::viam::robot::v1::Operation& GetOperationsResponse::operations(int index) const { // @@protoc_insertion_point(field_get:viam.robot.v1.GetOperationsResponse.operations) - return _internal_operations().Get(index); + return _internal_operations(index); +} +inline ::viam::robot::v1::Operation* GetOperationsResponse::_internal_add_operations() { + return operations_.Add(); } -inline ::viam::robot::v1::Operation* GetOperationsResponse::add_operations() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::robot::v1::Operation* _add = _internal_mutable_operations()->Add(); +inline ::viam::robot::v1::Operation* GetOperationsResponse::add_operations() { + ::viam::robot::v1::Operation* _add = _internal_add_operations(); // @@protoc_insertion_point(field_add:viam.robot.v1.GetOperationsResponse.operations) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::robot::v1::Operation>& GetOperationsResponse::operations() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::Operation >& +GetOperationsResponse::operations() const { // @@protoc_insertion_point(field_list:viam.robot.v1.GetOperationsResponse.operations) - return _internal_operations(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::robot::v1::Operation>& -GetOperationsResponse::_internal_operations() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.operations_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::robot::v1::Operation>* -GetOperationsResponse::_internal_mutable_operations() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.operations_; + return operations_; } // ------------------------------------------------------------------- @@ -11413,54 +10831,51 @@ GetOperationsResponse::_internal_mutable_operations() { // string id = 1 [json_name = "id"]; inline void CancelOperationRequest::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); + id_.ClearToEmpty(); } -inline const std::string& CancelOperationRequest::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& CancelOperationRequest::id() const { // @@protoc_insertion_point(field_get:viam.robot.v1.CancelOperationRequest.id) return _internal_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void CancelOperationRequest::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void CancelOperationRequest::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.robot.v1.CancelOperationRequest.id) } -inline std::string* CancelOperationRequest::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* CancelOperationRequest::mutable_id() { std::string* _s = _internal_mutable_id(); // @@protoc_insertion_point(field_mutable:viam.robot.v1.CancelOperationRequest.id) return _s; } inline const std::string& CancelOperationRequest::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); + return id_.Get(); } inline void CancelOperationRequest::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); + + id_.Set(value, GetArenaForAllocation()); } inline std::string* CancelOperationRequest::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); + + return id_.Mutable(GetArenaForAllocation()); } inline std::string* CancelOperationRequest::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.robot.v1.CancelOperationRequest.id) - return _impl_.id_.Release(); -} -inline void CancelOperationRequest::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return id_.Release(); +} +inline void CancelOperationRequest::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.CancelOperationRequest.id) } @@ -11474,54 +10889,51 @@ inline void CancelOperationRequest::set_allocated_id(std::string* value) { // string id = 1 [json_name = "id"]; inline void BlockForOperationRequest::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); + id_.ClearToEmpty(); } -inline const std::string& BlockForOperationRequest::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& BlockForOperationRequest::id() const { // @@protoc_insertion_point(field_get:viam.robot.v1.BlockForOperationRequest.id) return _internal_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void BlockForOperationRequest::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void BlockForOperationRequest::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.robot.v1.BlockForOperationRequest.id) } -inline std::string* BlockForOperationRequest::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* BlockForOperationRequest::mutable_id() { std::string* _s = _internal_mutable_id(); // @@protoc_insertion_point(field_mutable:viam.robot.v1.BlockForOperationRequest.id) return _s; } inline const std::string& BlockForOperationRequest::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); + return id_.Get(); } inline void BlockForOperationRequest::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); + + id_.Set(value, GetArenaForAllocation()); } inline std::string* BlockForOperationRequest::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); + + return id_.Mutable(GetArenaForAllocation()); } inline std::string* BlockForOperationRequest::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.robot.v1.BlockForOperationRequest.id) - return _impl_.id_.Release(); -} -inline void BlockForOperationRequest::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return id_.Release(); +} +inline void BlockForOperationRequest::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.BlockForOperationRequest.id) } @@ -11535,166 +10947,157 @@ inline void BlockForOperationRequest::set_allocated_id(std::string* value) { // .viam.robot.v1.PeerConnectionType type = 1 [json_name = "type"]; inline void PeerConnectionInfo::clear_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_ = 0; + type_ = 0; +} +inline ::viam::robot::v1::PeerConnectionType PeerConnectionInfo::_internal_type() const { + return static_cast< ::viam::robot::v1::PeerConnectionType >(type_); } inline ::viam::robot::v1::PeerConnectionType PeerConnectionInfo::type() const { // @@protoc_insertion_point(field_get:viam.robot.v1.PeerConnectionInfo.type) return _internal_type(); } +inline void PeerConnectionInfo::_internal_set_type(::viam::robot::v1::PeerConnectionType value) { + + type_ = value; +} inline void PeerConnectionInfo::set_type(::viam::robot::v1::PeerConnectionType value) { _internal_set_type(value); // @@protoc_insertion_point(field_set:viam.robot.v1.PeerConnectionInfo.type) } -inline ::viam::robot::v1::PeerConnectionType PeerConnectionInfo::_internal_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::viam::robot::v1::PeerConnectionType>(_impl_.type_); -} -inline void PeerConnectionInfo::_internal_set_type(::viam::robot::v1::PeerConnectionType value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.type_ = value; -} // optional string remote_address = 2 [json_name = "remoteAddress"]; -inline bool PeerConnectionInfo::has_remote_address() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; +inline bool PeerConnectionInfo::_internal_has_remote_address() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; return value; } +inline bool PeerConnectionInfo::has_remote_address() const { + return _internal_has_remote_address(); +} inline void PeerConnectionInfo::clear_remote_address() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.remote_address_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000001u; + remote_address_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; } -inline const std::string& PeerConnectionInfo::remote_address() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& PeerConnectionInfo::remote_address() const { // @@protoc_insertion_point(field_get:viam.robot.v1.PeerConnectionInfo.remote_address) return _internal_remote_address(); } -template -inline PROTOBUF_ALWAYS_INLINE void PeerConnectionInfo::set_remote_address(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.remote_address_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void PeerConnectionInfo::set_remote_address(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + remote_address_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.robot.v1.PeerConnectionInfo.remote_address) } -inline std::string* PeerConnectionInfo::mutable_remote_address() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* PeerConnectionInfo::mutable_remote_address() { std::string* _s = _internal_mutable_remote_address(); // @@protoc_insertion_point(field_mutable:viam.robot.v1.PeerConnectionInfo.remote_address) return _s; } inline const std::string& PeerConnectionInfo::_internal_remote_address() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.remote_address_.Get(); + return remote_address_.Get(); } inline void PeerConnectionInfo::_internal_set_remote_address(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.remote_address_.Set(value, GetArena()); + _has_bits_[0] |= 0x00000001u; + remote_address_.Set(value, GetArenaForAllocation()); } inline std::string* PeerConnectionInfo::_internal_mutable_remote_address() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.remote_address_.Mutable( GetArena()); + _has_bits_[0] |= 0x00000001u; + return remote_address_.Mutable(GetArenaForAllocation()); } inline std::string* PeerConnectionInfo::release_remote_address() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.robot.v1.PeerConnectionInfo.remote_address) - if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + if (!_internal_has_remote_address()) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000001u; - auto* released = _impl_.remote_address_.Release(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.remote_address_.Set("", GetArena()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return released; -} -inline void PeerConnectionInfo::set_allocated_remote_address(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + _has_bits_[0] &= ~0x00000001u; + auto* p = remote_address_.Release(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (remote_address_.IsDefault()) { + remote_address_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; +} +inline void PeerConnectionInfo::set_allocated_remote_address(std::string* remote_address) { + if (remote_address != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - _impl_.remote_address_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.remote_address_.IsDefault()) { - _impl_.remote_address_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _has_bits_[0] &= ~0x00000001u; + } + remote_address_.SetAllocated(remote_address, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (remote_address_.IsDefault()) { + remote_address_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.PeerConnectionInfo.remote_address) } // optional string local_address = 3 [json_name = "localAddress"]; -inline bool PeerConnectionInfo::has_local_address() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; +inline bool PeerConnectionInfo::_internal_has_local_address() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; return value; } +inline bool PeerConnectionInfo::has_local_address() const { + return _internal_has_local_address(); +} inline void PeerConnectionInfo::clear_local_address() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.local_address_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000002u; + local_address_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000002u; } -inline const std::string& PeerConnectionInfo::local_address() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& PeerConnectionInfo::local_address() const { // @@protoc_insertion_point(field_get:viam.robot.v1.PeerConnectionInfo.local_address) return _internal_local_address(); } -template -inline PROTOBUF_ALWAYS_INLINE void PeerConnectionInfo::set_local_address(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.local_address_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void PeerConnectionInfo::set_local_address(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000002u; + local_address_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.robot.v1.PeerConnectionInfo.local_address) } -inline std::string* PeerConnectionInfo::mutable_local_address() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* PeerConnectionInfo::mutable_local_address() { std::string* _s = _internal_mutable_local_address(); // @@protoc_insertion_point(field_mutable:viam.robot.v1.PeerConnectionInfo.local_address) return _s; } inline const std::string& PeerConnectionInfo::_internal_local_address() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.local_address_.Get(); + return local_address_.Get(); } inline void PeerConnectionInfo::_internal_set_local_address(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.local_address_.Set(value, GetArena()); + _has_bits_[0] |= 0x00000002u; + local_address_.Set(value, GetArenaForAllocation()); } inline std::string* PeerConnectionInfo::_internal_mutable_local_address() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - return _impl_.local_address_.Mutable( GetArena()); + _has_bits_[0] |= 0x00000002u; + return local_address_.Mutable(GetArenaForAllocation()); } inline std::string* PeerConnectionInfo::release_local_address() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.robot.v1.PeerConnectionInfo.local_address) - if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { + if (!_internal_has_local_address()) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000002u; - auto* released = _impl_.local_address_.Release(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.local_address_.Set("", GetArena()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return released; -} -inline void PeerConnectionInfo::set_allocated_local_address(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + _has_bits_[0] &= ~0x00000002u; + auto* p = local_address_.Release(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (local_address_.IsDefault()) { + local_address_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; +} +inline void PeerConnectionInfo::set_allocated_local_address(std::string* local_address) { + if (local_address != nullptr) { + _has_bits_[0] |= 0x00000002u; } else { - _impl_._has_bits_[0] &= ~0x00000002u; - } - _impl_.local_address_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.local_address_.IsDefault()) { - _impl_.local_address_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _has_bits_[0] &= ~0x00000002u; + } + local_address_.SetAllocated(local_address, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (local_address_.IsDefault()) { + local_address_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.PeerConnectionInfo.local_address) } @@ -11704,150 +11107,141 @@ inline void PeerConnectionInfo::set_allocated_local_address(std::string* value) // string id = 1 [json_name = "id"]; inline void Session::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); + id_.ClearToEmpty(); } -inline const std::string& Session::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Session::id() const { // @@protoc_insertion_point(field_get:viam.robot.v1.Session.id) return _internal_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void Session::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Session::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.robot.v1.Session.id) } -inline std::string* Session::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Session::mutable_id() { std::string* _s = _internal_mutable_id(); // @@protoc_insertion_point(field_mutable:viam.robot.v1.Session.id) return _s; } inline const std::string& Session::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); + return id_.Get(); } inline void Session::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); + + id_.Set(value, GetArenaForAllocation()); } inline std::string* Session::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); + + return id_.Mutable(GetArenaForAllocation()); } inline std::string* Session::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.robot.v1.Session.id) - return _impl_.id_.Release(); -} -inline void Session::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return id_.Release(); +} +inline void Session::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.Session.id) } // optional .viam.robot.v1.PeerConnectionInfo peer_connection_info = 2 [json_name = "peerConnectionInfo"]; -inline bool Session::has_peer_connection_info() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.peer_connection_info_ != nullptr); +inline bool Session::_internal_has_peer_connection_info() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || peer_connection_info_ != nullptr); return value; } +inline bool Session::has_peer_connection_info() const { + return _internal_has_peer_connection_info(); +} inline void Session::clear_peer_connection_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.peer_connection_info_ != nullptr) _impl_.peer_connection_info_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (peer_connection_info_ != nullptr) peer_connection_info_->Clear(); + _has_bits_[0] &= ~0x00000001u; } inline const ::viam::robot::v1::PeerConnectionInfo& Session::_internal_peer_connection_info() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::robot::v1::PeerConnectionInfo* p = _impl_.peer_connection_info_; - return p != nullptr ? *p : reinterpret_cast(::viam::robot::v1::_PeerConnectionInfo_default_instance_); + const ::viam::robot::v1::PeerConnectionInfo* p = peer_connection_info_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::robot::v1::_PeerConnectionInfo_default_instance_); } -inline const ::viam::robot::v1::PeerConnectionInfo& Session::peer_connection_info() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::robot::v1::PeerConnectionInfo& Session::peer_connection_info() const { // @@protoc_insertion_point(field_get:viam.robot.v1.Session.peer_connection_info) return _internal_peer_connection_info(); } -inline void Session::unsafe_arena_set_allocated_peer_connection_info(::viam::robot::v1::PeerConnectionInfo* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.peer_connection_info_); +inline void Session::unsafe_arena_set_allocated_peer_connection_info( + ::viam::robot::v1::PeerConnectionInfo* peer_connection_info) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(peer_connection_info_); } - _impl_.peer_connection_info_ = reinterpret_cast<::viam::robot::v1::PeerConnectionInfo*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + peer_connection_info_ = peer_connection_info; + if (peer_connection_info) { + _has_bits_[0] |= 0x00000001u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; + _has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.robot.v1.Session.peer_connection_info) } inline ::viam::robot::v1::PeerConnectionInfo* Session::release_peer_connection_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::robot::v1::PeerConnectionInfo* released = _impl_.peer_connection_info_; - _impl_.peer_connection_info_ = nullptr; + _has_bits_[0] &= ~0x00000001u; + ::viam::robot::v1::PeerConnectionInfo* temp = peer_connection_info_; + peer_connection_info_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::robot::v1::PeerConnectionInfo* Session::unsafe_arena_release_peer_connection_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.robot.v1.Session.peer_connection_info) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::robot::v1::PeerConnectionInfo* temp = _impl_.peer_connection_info_; - _impl_.peer_connection_info_ = nullptr; + _has_bits_[0] &= ~0x00000001u; + ::viam::robot::v1::PeerConnectionInfo* temp = peer_connection_info_; + peer_connection_info_ = nullptr; return temp; } inline ::viam::robot::v1::PeerConnectionInfo* Session::_internal_mutable_peer_connection_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.peer_connection_info_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::robot::v1::PeerConnectionInfo>(GetArena()); - _impl_.peer_connection_info_ = reinterpret_cast<::viam::robot::v1::PeerConnectionInfo*>(p); + _has_bits_[0] |= 0x00000001u; + if (peer_connection_info_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::robot::v1::PeerConnectionInfo>(GetArenaForAllocation()); + peer_connection_info_ = p; } - return _impl_.peer_connection_info_; + return peer_connection_info_; } -inline ::viam::robot::v1::PeerConnectionInfo* Session::mutable_peer_connection_info() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::robot::v1::PeerConnectionInfo* Session::mutable_peer_connection_info() { ::viam::robot::v1::PeerConnectionInfo* _msg = _internal_mutable_peer_connection_info(); // @@protoc_insertion_point(field_mutable:viam.robot.v1.Session.peer_connection_info) return _msg; } -inline void Session::set_allocated_peer_connection_info(::viam::robot::v1::PeerConnectionInfo* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Session::set_allocated_peer_connection_info(::viam::robot::v1::PeerConnectionInfo* peer_connection_info) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::robot::v1::PeerConnectionInfo*>(_impl_.peer_connection_info_); + delete peer_connection_info_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::robot::v1::PeerConnectionInfo*>(value)->GetArena(); + if (peer_connection_info) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(peer_connection_info); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + peer_connection_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, peer_connection_info, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + _has_bits_[0] |= 0x00000001u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; + _has_bits_[0] &= ~0x00000001u; } - - _impl_.peer_connection_info_ = reinterpret_cast<::viam::robot::v1::PeerConnectionInfo*>(value); + peer_connection_info_ = peer_connection_info; // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.Session.peer_connection_info) } @@ -11861,51 +11255,42 @@ inline void Session::set_allocated_peer_connection_info(::viam::robot::v1::PeerC // repeated .viam.robot.v1.Session sessions = 1 [json_name = "sessions"]; inline int GetSessionsResponse::_internal_sessions_size() const { - return _internal_sessions().size(); + return sessions_.size(); } inline int GetSessionsResponse::sessions_size() const { return _internal_sessions_size(); } inline void GetSessionsResponse::clear_sessions() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.sessions_.Clear(); + sessions_.Clear(); } -inline ::viam::robot::v1::Session* GetSessionsResponse::mutable_sessions(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::robot::v1::Session* GetSessionsResponse::mutable_sessions(int index) { // @@protoc_insertion_point(field_mutable:viam.robot.v1.GetSessionsResponse.sessions) - return _internal_mutable_sessions()->Mutable(index); + return sessions_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::robot::v1::Session>* GetSessionsResponse::mutable_sessions() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::Session >* +GetSessionsResponse::mutable_sessions() { // @@protoc_insertion_point(field_mutable_list:viam.robot.v1.GetSessionsResponse.sessions) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_sessions(); + return &sessions_; +} +inline const ::viam::robot::v1::Session& GetSessionsResponse::_internal_sessions(int index) const { + return sessions_.Get(index); } -inline const ::viam::robot::v1::Session& GetSessionsResponse::sessions(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::robot::v1::Session& GetSessionsResponse::sessions(int index) const { // @@protoc_insertion_point(field_get:viam.robot.v1.GetSessionsResponse.sessions) - return _internal_sessions().Get(index); + return _internal_sessions(index); } -inline ::viam::robot::v1::Session* GetSessionsResponse::add_sessions() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::robot::v1::Session* _add = _internal_mutable_sessions()->Add(); +inline ::viam::robot::v1::Session* GetSessionsResponse::_internal_add_sessions() { + return sessions_.Add(); +} +inline ::viam::robot::v1::Session* GetSessionsResponse::add_sessions() { + ::viam::robot::v1::Session* _add = _internal_add_sessions(); // @@protoc_insertion_point(field_add:viam.robot.v1.GetSessionsResponse.sessions) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::robot::v1::Session>& GetSessionsResponse::sessions() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::Session >& +GetSessionsResponse::sessions() const { // @@protoc_insertion_point(field_list:viam.robot.v1.GetSessionsResponse.sessions) - return _internal_sessions(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::robot::v1::Session>& -GetSessionsResponse::_internal_sessions() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.sessions_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::robot::v1::Session>* -GetSessionsResponse::_internal_mutable_sessions() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.sessions_; + return sessions_; } // ------------------------------------------------------------------- @@ -11914,198 +11299,186 @@ GetSessionsResponse::_internal_mutable_sessions() { // string subtype = 1 [json_name = "subtype"]; inline void DiscoveryQuery::clear_subtype() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.subtype_.ClearToEmpty(); + subtype_.ClearToEmpty(); } -inline const std::string& DiscoveryQuery::subtype() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& DiscoveryQuery::subtype() const { // @@protoc_insertion_point(field_get:viam.robot.v1.DiscoveryQuery.subtype) return _internal_subtype(); } -template -inline PROTOBUF_ALWAYS_INLINE void DiscoveryQuery::set_subtype(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.subtype_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void DiscoveryQuery::set_subtype(ArgT0&& arg0, ArgT... args) { + + subtype_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.robot.v1.DiscoveryQuery.subtype) } -inline std::string* DiscoveryQuery::mutable_subtype() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* DiscoveryQuery::mutable_subtype() { std::string* _s = _internal_mutable_subtype(); // @@protoc_insertion_point(field_mutable:viam.robot.v1.DiscoveryQuery.subtype) return _s; } inline const std::string& DiscoveryQuery::_internal_subtype() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.subtype_.Get(); + return subtype_.Get(); } inline void DiscoveryQuery::_internal_set_subtype(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.subtype_.Set(value, GetArena()); + + subtype_.Set(value, GetArenaForAllocation()); } inline std::string* DiscoveryQuery::_internal_mutable_subtype() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.subtype_.Mutable( GetArena()); + + return subtype_.Mutable(GetArenaForAllocation()); } inline std::string* DiscoveryQuery::release_subtype() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.robot.v1.DiscoveryQuery.subtype) - return _impl_.subtype_.Release(); -} -inline void DiscoveryQuery::set_allocated_subtype(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.subtype_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.subtype_.IsDefault()) { - _impl_.subtype_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return subtype_.Release(); +} +inline void DiscoveryQuery::set_allocated_subtype(std::string* subtype) { + if (subtype != nullptr) { + + } else { + + } + subtype_.SetAllocated(subtype, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (subtype_.IsDefault()) { + subtype_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.DiscoveryQuery.subtype) } // string model = 2 [json_name = "model"]; inline void DiscoveryQuery::clear_model() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.model_.ClearToEmpty(); + model_.ClearToEmpty(); } -inline const std::string& DiscoveryQuery::model() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& DiscoveryQuery::model() const { // @@protoc_insertion_point(field_get:viam.robot.v1.DiscoveryQuery.model) return _internal_model(); } -template -inline PROTOBUF_ALWAYS_INLINE void DiscoveryQuery::set_model(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.model_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void DiscoveryQuery::set_model(ArgT0&& arg0, ArgT... args) { + + model_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.robot.v1.DiscoveryQuery.model) } -inline std::string* DiscoveryQuery::mutable_model() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* DiscoveryQuery::mutable_model() { std::string* _s = _internal_mutable_model(); // @@protoc_insertion_point(field_mutable:viam.robot.v1.DiscoveryQuery.model) return _s; } inline const std::string& DiscoveryQuery::_internal_model() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.model_.Get(); + return model_.Get(); } inline void DiscoveryQuery::_internal_set_model(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.model_.Set(value, GetArena()); + + model_.Set(value, GetArenaForAllocation()); } inline std::string* DiscoveryQuery::_internal_mutable_model() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.model_.Mutable( GetArena()); + + return model_.Mutable(GetArenaForAllocation()); } inline std::string* DiscoveryQuery::release_model() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.robot.v1.DiscoveryQuery.model) - return _impl_.model_.Release(); -} -inline void DiscoveryQuery::set_allocated_model(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.model_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.model_.IsDefault()) { - _impl_.model_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return model_.Release(); +} +inline void DiscoveryQuery::set_allocated_model(std::string* model) { + if (model != nullptr) { + + } else { + + } + model_.SetAllocated(model, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (model_.IsDefault()) { + model_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.DiscoveryQuery.model) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool DiscoveryQuery::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool DiscoveryQuery::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& DiscoveryQuery::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& DiscoveryQuery::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& DiscoveryQuery::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& DiscoveryQuery::extra() const { // @@protoc_insertion_point(field_get:viam.robot.v1.DiscoveryQuery.extra) return _internal_extra(); } -inline void DiscoveryQuery::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void DiscoveryQuery::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.robot.v1.DiscoveryQuery.extra) } -inline ::google::protobuf::Struct* DiscoveryQuery::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* DiscoveryQuery::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* DiscoveryQuery::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* DiscoveryQuery::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.robot.v1.DiscoveryQuery.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* DiscoveryQuery::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* DiscoveryQuery::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* DiscoveryQuery::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* DiscoveryQuery::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.robot.v1.DiscoveryQuery.extra) return _msg; } -inline void DiscoveryQuery::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void DiscoveryQuery::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.DiscoveryQuery.extra) } @@ -12114,243 +11487,444 @@ inline void DiscoveryQuery::set_allocated_extra(::google::protobuf::Struct* valu // Discovery // .viam.robot.v1.DiscoveryQuery query = 1 [json_name = "query"]; +inline bool Discovery::_internal_has_query() const { + return this != internal_default_instance() && query_ != nullptr; +} inline bool Discovery::has_query() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.query_ != nullptr); - return value; + return _internal_has_query(); } inline void Discovery::clear_query() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.query_ != nullptr) _impl_.query_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && query_ != nullptr) { + delete query_; + } + query_ = nullptr; } inline const ::viam::robot::v1::DiscoveryQuery& Discovery::_internal_query() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::robot::v1::DiscoveryQuery* p = _impl_.query_; - return p != nullptr ? *p : reinterpret_cast(::viam::robot::v1::_DiscoveryQuery_default_instance_); + const ::viam::robot::v1::DiscoveryQuery* p = query_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::robot::v1::_DiscoveryQuery_default_instance_); } -inline const ::viam::robot::v1::DiscoveryQuery& Discovery::query() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::robot::v1::DiscoveryQuery& Discovery::query() const { // @@protoc_insertion_point(field_get:viam.robot.v1.Discovery.query) return _internal_query(); } -inline void Discovery::unsafe_arena_set_allocated_query(::viam::robot::v1::DiscoveryQuery* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.query_); +inline void Discovery::unsafe_arena_set_allocated_query( + ::viam::robot::v1::DiscoveryQuery* query) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(query_); } - _impl_.query_ = reinterpret_cast<::viam::robot::v1::DiscoveryQuery*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + query_ = query; + if (query) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.robot.v1.Discovery.query) } inline ::viam::robot::v1::DiscoveryQuery* Discovery::release_query() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::robot::v1::DiscoveryQuery* released = _impl_.query_; - _impl_.query_ = nullptr; + + ::viam::robot::v1::DiscoveryQuery* temp = query_; + query_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::robot::v1::DiscoveryQuery* Discovery::unsafe_arena_release_query() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.robot.v1.Discovery.query) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::robot::v1::DiscoveryQuery* temp = _impl_.query_; - _impl_.query_ = nullptr; + + ::viam::robot::v1::DiscoveryQuery* temp = query_; + query_ = nullptr; return temp; } inline ::viam::robot::v1::DiscoveryQuery* Discovery::_internal_mutable_query() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.query_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::robot::v1::DiscoveryQuery>(GetArena()); - _impl_.query_ = reinterpret_cast<::viam::robot::v1::DiscoveryQuery*>(p); + + if (query_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::robot::v1::DiscoveryQuery>(GetArenaForAllocation()); + query_ = p; } - return _impl_.query_; + return query_; } -inline ::viam::robot::v1::DiscoveryQuery* Discovery::mutable_query() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::robot::v1::DiscoveryQuery* Discovery::mutable_query() { ::viam::robot::v1::DiscoveryQuery* _msg = _internal_mutable_query(); // @@protoc_insertion_point(field_mutable:viam.robot.v1.Discovery.query) return _msg; } -inline void Discovery::set_allocated_query(::viam::robot::v1::DiscoveryQuery* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Discovery::set_allocated_query(::viam::robot::v1::DiscoveryQuery* query) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::robot::v1::DiscoveryQuery*>(_impl_.query_); + delete query_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::robot::v1::DiscoveryQuery*>(value)->GetArena(); + if (query) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(query); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + query = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, query, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.query_ = reinterpret_cast<::viam::robot::v1::DiscoveryQuery*>(value); + query_ = query; // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.Discovery.query) } // .google.protobuf.Struct results = 2 [json_name = "results"]; +inline bool Discovery::_internal_has_results() const { + return this != internal_default_instance() && results_ != nullptr; +} inline bool Discovery::has_results() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.results_ != nullptr); - return value; + return _internal_has_results(); } -inline const ::google::protobuf::Struct& Discovery::_internal_results() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.results_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& Discovery::_internal_results() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = results_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& Discovery::results() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& Discovery::results() const { // @@protoc_insertion_point(field_get:viam.robot.v1.Discovery.results) return _internal_results(); } -inline void Discovery::unsafe_arena_set_allocated_results(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.results_); +inline void Discovery::unsafe_arena_set_allocated_results( + ::PROTOBUF_NAMESPACE_ID::Struct* results) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(results_); } - _impl_.results_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + results_ = results; + if (results) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.robot.v1.Discovery.results) } -inline ::google::protobuf::Struct* Discovery::release_results() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Struct* released = _impl_.results_; - _impl_.results_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* Discovery::release_results() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = results_; + results_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* Discovery::unsafe_arena_release_results() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* Discovery::unsafe_arena_release_results() { // @@protoc_insertion_point(field_release:viam.robot.v1.Discovery.results) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Struct* temp = _impl_.results_; - _impl_.results_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = results_; + results_ = nullptr; return temp; } -inline ::google::protobuf::Struct* Discovery::_internal_mutable_results() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.results_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.results_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* Discovery::_internal_mutable_results() { + + if (results_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + results_ = p; } - return _impl_.results_; + return results_; } -inline ::google::protobuf::Struct* Discovery::mutable_results() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_results(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* Discovery::mutable_results() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_results(); // @@protoc_insertion_point(field_mutable:viam.robot.v1.Discovery.results) return _msg; } -inline void Discovery::set_allocated_results(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Discovery::set_allocated_results(::PROTOBUF_NAMESPACE_ID::Struct* results) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.results_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(results_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (results) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(results)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + results = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, results, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.results_ = reinterpret_cast<::google::protobuf::Struct*>(value); + results_ = results; // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.Discovery.results) } // ------------------------------------------------------------------- +// ModuleModel + +// string module_name = 1 [json_name = "moduleName"]; +inline void ModuleModel::clear_module_name() { + module_name_.ClearToEmpty(); +} +inline const std::string& ModuleModel::module_name() const { + // @@protoc_insertion_point(field_get:viam.robot.v1.ModuleModel.module_name) + return _internal_module_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ModuleModel::set_module_name(ArgT0&& arg0, ArgT... args) { + + module_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.robot.v1.ModuleModel.module_name) +} +inline std::string* ModuleModel::mutable_module_name() { + std::string* _s = _internal_mutable_module_name(); + // @@protoc_insertion_point(field_mutable:viam.robot.v1.ModuleModel.module_name) + return _s; +} +inline const std::string& ModuleModel::_internal_module_name() const { + return module_name_.Get(); +} +inline void ModuleModel::_internal_set_module_name(const std::string& value) { + + module_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* ModuleModel::_internal_mutable_module_name() { + + return module_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* ModuleModel::release_module_name() { + // @@protoc_insertion_point(field_release:viam.robot.v1.ModuleModel.module_name) + return module_name_.Release(); +} +inline void ModuleModel::set_allocated_module_name(std::string* module_name) { + if (module_name != nullptr) { + + } else { + + } + module_name_.SetAllocated(module_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (module_name_.IsDefault()) { + module_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.ModuleModel.module_name) +} + +// string model = 2 [json_name = "model"]; +inline void ModuleModel::clear_model() { + model_.ClearToEmpty(); +} +inline const std::string& ModuleModel::model() const { + // @@protoc_insertion_point(field_get:viam.robot.v1.ModuleModel.model) + return _internal_model(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ModuleModel::set_model(ArgT0&& arg0, ArgT... args) { + + model_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.robot.v1.ModuleModel.model) +} +inline std::string* ModuleModel::mutable_model() { + std::string* _s = _internal_mutable_model(); + // @@protoc_insertion_point(field_mutable:viam.robot.v1.ModuleModel.model) + return _s; +} +inline const std::string& ModuleModel::_internal_model() const { + return model_.Get(); +} +inline void ModuleModel::_internal_set_model(const std::string& value) { + + model_.Set(value, GetArenaForAllocation()); +} +inline std::string* ModuleModel::_internal_mutable_model() { + + return model_.Mutable(GetArenaForAllocation()); +} +inline std::string* ModuleModel::release_model() { + // @@protoc_insertion_point(field_release:viam.robot.v1.ModuleModel.model) + return model_.Release(); +} +inline void ModuleModel::set_allocated_model(std::string* model) { + if (model != nullptr) { + + } else { + + } + model_.SetAllocated(model, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (model_.IsDefault()) { + model_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.ModuleModel.model) +} + +// string api = 3 [json_name = "api"]; +inline void ModuleModel::clear_api() { + api_.ClearToEmpty(); +} +inline const std::string& ModuleModel::api() const { + // @@protoc_insertion_point(field_get:viam.robot.v1.ModuleModel.api) + return _internal_api(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ModuleModel::set_api(ArgT0&& arg0, ArgT... args) { + + api_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.robot.v1.ModuleModel.api) +} +inline std::string* ModuleModel::mutable_api() { + std::string* _s = _internal_mutable_api(); + // @@protoc_insertion_point(field_mutable:viam.robot.v1.ModuleModel.api) + return _s; +} +inline const std::string& ModuleModel::_internal_api() const { + return api_.Get(); +} +inline void ModuleModel::_internal_set_api(const std::string& value) { + + api_.Set(value, GetArenaForAllocation()); +} +inline std::string* ModuleModel::_internal_mutable_api() { + + return api_.Mutable(GetArenaForAllocation()); +} +inline std::string* ModuleModel::release_api() { + // @@protoc_insertion_point(field_release:viam.robot.v1.ModuleModel.api) + return api_.Release(); +} +inline void ModuleModel::set_allocated_api(std::string* api) { + if (api != nullptr) { + + } else { + + } + api_.SetAllocated(api, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (api_.IsDefault()) { + api_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.ModuleModel.api) +} + +// bool from_local_module = 4 [json_name = "fromLocalModule"]; +inline void ModuleModel::clear_from_local_module() { + from_local_module_ = false; +} +inline bool ModuleModel::_internal_from_local_module() const { + return from_local_module_; +} +inline bool ModuleModel::from_local_module() const { + // @@protoc_insertion_point(field_get:viam.robot.v1.ModuleModel.from_local_module) + return _internal_from_local_module(); +} +inline void ModuleModel::_internal_set_from_local_module(bool value) { + + from_local_module_ = value; +} +inline void ModuleModel::set_from_local_module(bool value) { + _internal_set_from_local_module(value); + // @@protoc_insertion_point(field_set:viam.robot.v1.ModuleModel.from_local_module) +} + +// ------------------------------------------------------------------- + +// GetModelsFromModulesRequest + +// ------------------------------------------------------------------- + +// GetModelsFromModulesResponse + +// repeated .viam.robot.v1.ModuleModel models = 1 [json_name = "models"]; +inline int GetModelsFromModulesResponse::_internal_models_size() const { + return models_.size(); +} +inline int GetModelsFromModulesResponse::models_size() const { + return _internal_models_size(); +} +inline void GetModelsFromModulesResponse::clear_models() { + models_.Clear(); +} +inline ::viam::robot::v1::ModuleModel* GetModelsFromModulesResponse::mutable_models(int index) { + // @@protoc_insertion_point(field_mutable:viam.robot.v1.GetModelsFromModulesResponse.models) + return models_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::ModuleModel >* +GetModelsFromModulesResponse::mutable_models() { + // @@protoc_insertion_point(field_mutable_list:viam.robot.v1.GetModelsFromModulesResponse.models) + return &models_; +} +inline const ::viam::robot::v1::ModuleModel& GetModelsFromModulesResponse::_internal_models(int index) const { + return models_.Get(index); +} +inline const ::viam::robot::v1::ModuleModel& GetModelsFromModulesResponse::models(int index) const { + // @@protoc_insertion_point(field_get:viam.robot.v1.GetModelsFromModulesResponse.models) + return _internal_models(index); +} +inline ::viam::robot::v1::ModuleModel* GetModelsFromModulesResponse::_internal_add_models() { + return models_.Add(); +} +inline ::viam::robot::v1::ModuleModel* GetModelsFromModulesResponse::add_models() { + ::viam::robot::v1::ModuleModel* _add = _internal_add_models(); + // @@protoc_insertion_point(field_add:viam.robot.v1.GetModelsFromModulesResponse.models) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::ModuleModel >& +GetModelsFromModulesResponse::models() const { + // @@protoc_insertion_point(field_list:viam.robot.v1.GetModelsFromModulesResponse.models) + return models_; +} + +// ------------------------------------------------------------------- + // DiscoverComponentsRequest // repeated .viam.robot.v1.DiscoveryQuery queries = 1 [json_name = "queries"]; inline int DiscoverComponentsRequest::_internal_queries_size() const { - return _internal_queries().size(); + return queries_.size(); } inline int DiscoverComponentsRequest::queries_size() const { return _internal_queries_size(); } inline void DiscoverComponentsRequest::clear_queries() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.queries_.Clear(); + queries_.Clear(); } -inline ::viam::robot::v1::DiscoveryQuery* DiscoverComponentsRequest::mutable_queries(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::robot::v1::DiscoveryQuery* DiscoverComponentsRequest::mutable_queries(int index) { // @@protoc_insertion_point(field_mutable:viam.robot.v1.DiscoverComponentsRequest.queries) - return _internal_mutable_queries()->Mutable(index); + return queries_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::robot::v1::DiscoveryQuery>* DiscoverComponentsRequest::mutable_queries() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::DiscoveryQuery >* +DiscoverComponentsRequest::mutable_queries() { // @@protoc_insertion_point(field_mutable_list:viam.robot.v1.DiscoverComponentsRequest.queries) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_queries(); + return &queries_; } -inline const ::viam::robot::v1::DiscoveryQuery& DiscoverComponentsRequest::queries(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::robot::v1::DiscoveryQuery& DiscoverComponentsRequest::_internal_queries(int index) const { + return queries_.Get(index); +} +inline const ::viam::robot::v1::DiscoveryQuery& DiscoverComponentsRequest::queries(int index) const { // @@protoc_insertion_point(field_get:viam.robot.v1.DiscoverComponentsRequest.queries) - return _internal_queries().Get(index); + return _internal_queries(index); +} +inline ::viam::robot::v1::DiscoveryQuery* DiscoverComponentsRequest::_internal_add_queries() { + return queries_.Add(); } -inline ::viam::robot::v1::DiscoveryQuery* DiscoverComponentsRequest::add_queries() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::robot::v1::DiscoveryQuery* _add = _internal_mutable_queries()->Add(); +inline ::viam::robot::v1::DiscoveryQuery* DiscoverComponentsRequest::add_queries() { + ::viam::robot::v1::DiscoveryQuery* _add = _internal_add_queries(); // @@protoc_insertion_point(field_add:viam.robot.v1.DiscoverComponentsRequest.queries) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::robot::v1::DiscoveryQuery>& DiscoverComponentsRequest::queries() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::DiscoveryQuery >& +DiscoverComponentsRequest::queries() const { // @@protoc_insertion_point(field_list:viam.robot.v1.DiscoverComponentsRequest.queries) - return _internal_queries(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::robot::v1::DiscoveryQuery>& -DiscoverComponentsRequest::_internal_queries() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.queries_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::robot::v1::DiscoveryQuery>* -DiscoverComponentsRequest::_internal_mutable_queries() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.queries_; + return queries_; } // ------------------------------------------------------------------- @@ -12359,51 +11933,42 @@ DiscoverComponentsRequest::_internal_mutable_queries() { // repeated .viam.robot.v1.Discovery discovery = 1 [json_name = "discovery"]; inline int DiscoverComponentsResponse::_internal_discovery_size() const { - return _internal_discovery().size(); + return discovery_.size(); } inline int DiscoverComponentsResponse::discovery_size() const { return _internal_discovery_size(); } inline void DiscoverComponentsResponse::clear_discovery() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.discovery_.Clear(); + discovery_.Clear(); } -inline ::viam::robot::v1::Discovery* DiscoverComponentsResponse::mutable_discovery(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::robot::v1::Discovery* DiscoverComponentsResponse::mutable_discovery(int index) { // @@protoc_insertion_point(field_mutable:viam.robot.v1.DiscoverComponentsResponse.discovery) - return _internal_mutable_discovery()->Mutable(index); + return discovery_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::robot::v1::Discovery>* DiscoverComponentsResponse::mutable_discovery() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::Discovery >* +DiscoverComponentsResponse::mutable_discovery() { // @@protoc_insertion_point(field_mutable_list:viam.robot.v1.DiscoverComponentsResponse.discovery) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_discovery(); + return &discovery_; } -inline const ::viam::robot::v1::Discovery& DiscoverComponentsResponse::discovery(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::robot::v1::Discovery& DiscoverComponentsResponse::_internal_discovery(int index) const { + return discovery_.Get(index); +} +inline const ::viam::robot::v1::Discovery& DiscoverComponentsResponse::discovery(int index) const { // @@protoc_insertion_point(field_get:viam.robot.v1.DiscoverComponentsResponse.discovery) - return _internal_discovery().Get(index); + return _internal_discovery(index); +} +inline ::viam::robot::v1::Discovery* DiscoverComponentsResponse::_internal_add_discovery() { + return discovery_.Add(); } -inline ::viam::robot::v1::Discovery* DiscoverComponentsResponse::add_discovery() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::robot::v1::Discovery* _add = _internal_mutable_discovery()->Add(); +inline ::viam::robot::v1::Discovery* DiscoverComponentsResponse::add_discovery() { + ::viam::robot::v1::Discovery* _add = _internal_add_discovery(); // @@protoc_insertion_point(field_add:viam.robot.v1.DiscoverComponentsResponse.discovery) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::robot::v1::Discovery>& DiscoverComponentsResponse::discovery() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::Discovery >& +DiscoverComponentsResponse::discovery() const { // @@protoc_insertion_point(field_list:viam.robot.v1.DiscoverComponentsResponse.discovery) - return _internal_discovery(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::robot::v1::Discovery>& -DiscoverComponentsResponse::_internal_discovery() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.discovery_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::robot::v1::Discovery>* -DiscoverComponentsResponse::_internal_mutable_discovery() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.discovery_; + return discovery_; } // ------------------------------------------------------------------- @@ -12411,275 +11976,257 @@ DiscoverComponentsResponse::_internal_mutable_discovery() { // Status // .viam.common.v1.ResourceName name = 1 [json_name = "name"]; +inline bool Status::_internal_has_name() const { + return this != internal_default_instance() && name_ != nullptr; +} inline bool Status::has_name() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.name_ != nullptr); - return value; + return _internal_has_name(); } inline const ::viam::common::v1::ResourceName& Status::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::common::v1::ResourceName* p = _impl_.name_; - return p != nullptr ? *p : reinterpret_cast(::viam::common::v1::_ResourceName_default_instance_); + const ::viam::common::v1::ResourceName* p = name_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_ResourceName_default_instance_); } -inline const ::viam::common::v1::ResourceName& Status::name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::ResourceName& Status::name() const { // @@protoc_insertion_point(field_get:viam.robot.v1.Status.name) return _internal_name(); } -inline void Status::unsafe_arena_set_allocated_name(::viam::common::v1::ResourceName* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.name_); +inline void Status::unsafe_arena_set_allocated_name( + ::viam::common::v1::ResourceName* name) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(name_); } - _impl_.name_ = reinterpret_cast<::viam::common::v1::ResourceName*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + name_ = name; + if (name) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.robot.v1.Status.name) } inline ::viam::common::v1::ResourceName* Status::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::ResourceName* released = _impl_.name_; - _impl_.name_ = nullptr; + + ::viam::common::v1::ResourceName* temp = name_; + name_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::common::v1::ResourceName* Status::unsafe_arena_release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.robot.v1.Status.name) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::ResourceName* temp = _impl_.name_; - _impl_.name_ = nullptr; + + ::viam::common::v1::ResourceName* temp = name_; + name_ = nullptr; return temp; } inline ::viam::common::v1::ResourceName* Status::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.name_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArena()); - _impl_.name_ = reinterpret_cast<::viam::common::v1::ResourceName*>(p); + + if (name_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArenaForAllocation()); + name_ = p; } - return _impl_.name_; + return name_; } -inline ::viam::common::v1::ResourceName* Status::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::ResourceName* Status::mutable_name() { ::viam::common::v1::ResourceName* _msg = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.robot.v1.Status.name) return _msg; } -inline void Status::set_allocated_name(::viam::common::v1::ResourceName* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Status::set_allocated_name(::viam::common::v1::ResourceName* name) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.name_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(name_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (name) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(name)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, name, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.name_ = reinterpret_cast<::viam::common::v1::ResourceName*>(value); + name_ = name; // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.Status.name) } // .google.protobuf.Struct status = 2 [json_name = "status"]; +inline bool Status::_internal_has_status() const { + return this != internal_default_instance() && status_ != nullptr; +} inline bool Status::has_status() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.status_ != nullptr); - return value; + return _internal_has_status(); } -inline const ::google::protobuf::Struct& Status::_internal_status() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.status_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& Status::_internal_status() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = status_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& Status::status() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& Status::status() const { // @@protoc_insertion_point(field_get:viam.robot.v1.Status.status) return _internal_status(); } -inline void Status::unsafe_arena_set_allocated_status(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.status_); +inline void Status::unsafe_arena_set_allocated_status( + ::PROTOBUF_NAMESPACE_ID::Struct* status) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); } - _impl_.status_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + status_ = status; + if (status) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.robot.v1.Status.status) } -inline ::google::protobuf::Struct* Status::release_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Struct* released = _impl_.status_; - _impl_.status_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* Status::release_status() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = status_; + status_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* Status::unsafe_arena_release_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* Status::unsafe_arena_release_status() { // @@protoc_insertion_point(field_release:viam.robot.v1.Status.status) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Struct* temp = _impl_.status_; - _impl_.status_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = status_; + status_ = nullptr; return temp; } -inline ::google::protobuf::Struct* Status::_internal_mutable_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.status_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.status_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* Status::_internal_mutable_status() { + + if (status_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + status_ = p; } - return _impl_.status_; + return status_; } -inline ::google::protobuf::Struct* Status::mutable_status() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_status(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* Status::mutable_status() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_status(); // @@protoc_insertion_point(field_mutable:viam.robot.v1.Status.status) return _msg; } -inline void Status::set_allocated_status(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Status::set_allocated_status(::PROTOBUF_NAMESPACE_ID::Struct* status) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.status_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (status) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(status)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, status, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.status_ = reinterpret_cast<::google::protobuf::Struct*>(value); + status_ = 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 { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || _impl_.last_reconfigured_ != nullptr); - return value; + return _internal_has_last_reconfigured(); } -inline const ::google::protobuf::Timestamp& Status::_internal_last_reconfigured() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Timestamp* p = _impl_.last_reconfigured_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); +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 ::google::protobuf::Timestamp& Status::last_reconfigured() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +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(::google::protobuf::Timestamp* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.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_); } - _impl_.last_reconfigured_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000004u; + last_reconfigured_ = last_reconfigured; + if (last_reconfigured) { + } else { - _impl_._has_bits_[0] &= ~0x00000004u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.robot.v1.Status.last_reconfigured) } -inline ::google::protobuf::Timestamp* Status::release_last_reconfigured() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000004u; - ::google::protobuf::Timestamp* released = _impl_.last_reconfigured_; - _impl_.last_reconfigured_ = nullptr; +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<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Timestamp* Status::unsafe_arena_release_last_reconfigured() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Status::unsafe_arena_release_last_reconfigured() { // @@protoc_insertion_point(field_release:viam.robot.v1.Status.last_reconfigured) - - _impl_._has_bits_[0] &= ~0x00000004u; - ::google::protobuf::Timestamp* temp = _impl_.last_reconfigured_; - _impl_.last_reconfigured_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = last_reconfigured_; + last_reconfigured_ = nullptr; return temp; } -inline ::google::protobuf::Timestamp* Status::_internal_mutable_last_reconfigured() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - if (_impl_.last_reconfigured_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena()); - _impl_.last_reconfigured_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); +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 _impl_.last_reconfigured_; + return last_reconfigured_; } -inline ::google::protobuf::Timestamp* Status::mutable_last_reconfigured() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Timestamp* _msg = _internal_mutable_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(::google::protobuf::Timestamp* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +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<::google::protobuf::MessageLite*>(_impl_.last_reconfigured_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_reconfigured_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + last_reconfigured = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, last_reconfigured, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000004u; + } else { - _impl_._has_bits_[0] &= ~0x00000004u; + } - - _impl_.last_reconfigured_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); + last_reconfigured_ = last_reconfigured; // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.Status.last_reconfigured) } @@ -12689,47 +12236,39 @@ inline void Status::set_allocated_last_reconfigured(::google::protobuf::Timestam // repeated .viam.common.v1.ResourceName resource_names = 1 [json_name = "resourceNames"]; inline int GetStatusRequest::_internal_resource_names_size() const { - return _internal_resource_names().size(); + return resource_names_.size(); } inline int GetStatusRequest::resource_names_size() const { return _internal_resource_names_size(); } -inline ::viam::common::v1::ResourceName* GetStatusRequest::mutable_resource_names(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::ResourceName* GetStatusRequest::mutable_resource_names(int index) { // @@protoc_insertion_point(field_mutable:viam.robot.v1.GetStatusRequest.resource_names) - return _internal_mutable_resource_names()->Mutable(index); + return resource_names_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::common::v1::ResourceName>* GetStatusRequest::mutable_resource_names() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::ResourceName >* +GetStatusRequest::mutable_resource_names() { // @@protoc_insertion_point(field_mutable_list:viam.robot.v1.GetStatusRequest.resource_names) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_resource_names(); + return &resource_names_; } -inline const ::viam::common::v1::ResourceName& GetStatusRequest::resource_names(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::ResourceName& GetStatusRequest::_internal_resource_names(int index) const { + return resource_names_.Get(index); +} +inline const ::viam::common::v1::ResourceName& GetStatusRequest::resource_names(int index) const { // @@protoc_insertion_point(field_get:viam.robot.v1.GetStatusRequest.resource_names) - return _internal_resource_names().Get(index); + return _internal_resource_names(index); +} +inline ::viam::common::v1::ResourceName* GetStatusRequest::_internal_add_resource_names() { + return resource_names_.Add(); } -inline ::viam::common::v1::ResourceName* GetStatusRequest::add_resource_names() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::common::v1::ResourceName* _add = _internal_mutable_resource_names()->Add(); +inline ::viam::common::v1::ResourceName* GetStatusRequest::add_resource_names() { + ::viam::common::v1::ResourceName* _add = _internal_add_resource_names(); // @@protoc_insertion_point(field_add:viam.robot.v1.GetStatusRequest.resource_names) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::common::v1::ResourceName>& GetStatusRequest::resource_names() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::ResourceName >& +GetStatusRequest::resource_names() const { // @@protoc_insertion_point(field_list:viam.robot.v1.GetStatusRequest.resource_names) - return _internal_resource_names(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::common::v1::ResourceName>& -GetStatusRequest::_internal_resource_names() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.resource_names_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::common::v1::ResourceName>* -GetStatusRequest::_internal_mutable_resource_names() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.resource_names_; + return resource_names_; } // ------------------------------------------------------------------- @@ -12738,51 +12277,42 @@ GetStatusRequest::_internal_mutable_resource_names() { // repeated .viam.robot.v1.Status status = 1 [json_name = "status"]; inline int GetStatusResponse::_internal_status_size() const { - return _internal_status().size(); + return status_.size(); } inline int GetStatusResponse::status_size() const { return _internal_status_size(); } inline void GetStatusResponse::clear_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.status_.Clear(); + status_.Clear(); } -inline ::viam::robot::v1::Status* GetStatusResponse::mutable_status(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::robot::v1::Status* GetStatusResponse::mutable_status(int index) { // @@protoc_insertion_point(field_mutable:viam.robot.v1.GetStatusResponse.status) - return _internal_mutable_status()->Mutable(index); + return status_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::robot::v1::Status>* GetStatusResponse::mutable_status() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::Status >* +GetStatusResponse::mutable_status() { // @@protoc_insertion_point(field_mutable_list:viam.robot.v1.GetStatusResponse.status) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_status(); + return &status_; } -inline const ::viam::robot::v1::Status& GetStatusResponse::status(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::robot::v1::Status& GetStatusResponse::_internal_status(int index) const { + return status_.Get(index); +} +inline const ::viam::robot::v1::Status& GetStatusResponse::status(int index) const { // @@protoc_insertion_point(field_get:viam.robot.v1.GetStatusResponse.status) - return _internal_status().Get(index); + return _internal_status(index); +} +inline ::viam::robot::v1::Status* GetStatusResponse::_internal_add_status() { + return status_.Add(); } -inline ::viam::robot::v1::Status* GetStatusResponse::add_status() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::robot::v1::Status* _add = _internal_mutable_status()->Add(); +inline ::viam::robot::v1::Status* GetStatusResponse::add_status() { + ::viam::robot::v1::Status* _add = _internal_add_status(); // @@protoc_insertion_point(field_add:viam.robot.v1.GetStatusResponse.status) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::robot::v1::Status>& GetStatusResponse::status() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::Status >& +GetStatusResponse::status() const { // @@protoc_insertion_point(field_list:viam.robot.v1.GetStatusResponse.status) - return _internal_status(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::robot::v1::Status>& -GetStatusResponse::_internal_status() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.status_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::robot::v1::Status>* -GetStatusResponse::_internal_mutable_status() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.status_; + return status_; } // ------------------------------------------------------------------- @@ -12791,137 +12321,123 @@ GetStatusResponse::_internal_mutable_status() { // repeated .viam.common.v1.ResourceName resource_names = 1 [json_name = "resourceNames"]; inline int StreamStatusRequest::_internal_resource_names_size() const { - return _internal_resource_names().size(); + return resource_names_.size(); } inline int StreamStatusRequest::resource_names_size() const { return _internal_resource_names_size(); } -inline ::viam::common::v1::ResourceName* StreamStatusRequest::mutable_resource_names(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::ResourceName* StreamStatusRequest::mutable_resource_names(int index) { // @@protoc_insertion_point(field_mutable:viam.robot.v1.StreamStatusRequest.resource_names) - return _internal_mutable_resource_names()->Mutable(index); + return resource_names_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::common::v1::ResourceName>* StreamStatusRequest::mutable_resource_names() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::ResourceName >* +StreamStatusRequest::mutable_resource_names() { // @@protoc_insertion_point(field_mutable_list:viam.robot.v1.StreamStatusRequest.resource_names) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_resource_names(); + return &resource_names_; +} +inline const ::viam::common::v1::ResourceName& StreamStatusRequest::_internal_resource_names(int index) const { + return resource_names_.Get(index); } -inline const ::viam::common::v1::ResourceName& StreamStatusRequest::resource_names(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::ResourceName& StreamStatusRequest::resource_names(int index) const { // @@protoc_insertion_point(field_get:viam.robot.v1.StreamStatusRequest.resource_names) - return _internal_resource_names().Get(index); + return _internal_resource_names(index); } -inline ::viam::common::v1::ResourceName* StreamStatusRequest::add_resource_names() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::common::v1::ResourceName* _add = _internal_mutable_resource_names()->Add(); +inline ::viam::common::v1::ResourceName* StreamStatusRequest::_internal_add_resource_names() { + return resource_names_.Add(); +} +inline ::viam::common::v1::ResourceName* StreamStatusRequest::add_resource_names() { + ::viam::common::v1::ResourceName* _add = _internal_add_resource_names(); // @@protoc_insertion_point(field_add:viam.robot.v1.StreamStatusRequest.resource_names) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::common::v1::ResourceName>& StreamStatusRequest::resource_names() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::ResourceName >& +StreamStatusRequest::resource_names() const { // @@protoc_insertion_point(field_list:viam.robot.v1.StreamStatusRequest.resource_names) - return _internal_resource_names(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::common::v1::ResourceName>& -StreamStatusRequest::_internal_resource_names() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.resource_names_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::common::v1::ResourceName>* -StreamStatusRequest::_internal_mutable_resource_names() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.resource_names_; + return resource_names_; } // .google.protobuf.Duration every = 2 [json_name = "every"]; +inline bool StreamStatusRequest::_internal_has_every() const { + return this != internal_default_instance() && every_ != nullptr; +} inline bool StreamStatusRequest::has_every() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.every_ != nullptr); - return value; + return _internal_has_every(); } -inline const ::google::protobuf::Duration& StreamStatusRequest::_internal_every() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Duration* p = _impl_.every_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Duration_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Duration& StreamStatusRequest::_internal_every() const { + const ::PROTOBUF_NAMESPACE_ID::Duration* p = every_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Duration_default_instance_); } -inline const ::google::protobuf::Duration& StreamStatusRequest::every() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Duration& StreamStatusRequest::every() const { // @@protoc_insertion_point(field_get:viam.robot.v1.StreamStatusRequest.every) return _internal_every(); } -inline void StreamStatusRequest::unsafe_arena_set_allocated_every(::google::protobuf::Duration* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.every_); +inline void StreamStatusRequest::unsafe_arena_set_allocated_every( + ::PROTOBUF_NAMESPACE_ID::Duration* every) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(every_); } - _impl_.every_ = reinterpret_cast<::google::protobuf::Duration*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + every_ = every; + if (every) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.robot.v1.StreamStatusRequest.every) } -inline ::google::protobuf::Duration* StreamStatusRequest::release_every() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Duration* released = _impl_.every_; - _impl_.every_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Duration* StreamStatusRequest::release_every() { + + ::PROTOBUF_NAMESPACE_ID::Duration* temp = every_; + every_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Duration* StreamStatusRequest::unsafe_arena_release_every() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Duration* StreamStatusRequest::unsafe_arena_release_every() { // @@protoc_insertion_point(field_release:viam.robot.v1.StreamStatusRequest.every) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Duration* temp = _impl_.every_; - _impl_.every_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Duration* temp = every_; + every_ = nullptr; return temp; } -inline ::google::protobuf::Duration* StreamStatusRequest::_internal_mutable_every() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.every_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArena()); - _impl_.every_ = reinterpret_cast<::google::protobuf::Duration*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Duration* StreamStatusRequest::_internal_mutable_every() { + + if (every_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Duration>(GetArenaForAllocation()); + every_ = p; } - return _impl_.every_; + return every_; } -inline ::google::protobuf::Duration* StreamStatusRequest::mutable_every() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Duration* _msg = _internal_mutable_every(); +inline ::PROTOBUF_NAMESPACE_ID::Duration* StreamStatusRequest::mutable_every() { + ::PROTOBUF_NAMESPACE_ID::Duration* _msg = _internal_mutable_every(); // @@protoc_insertion_point(field_mutable:viam.robot.v1.StreamStatusRequest.every) return _msg; } -inline void StreamStatusRequest::set_allocated_every(::google::protobuf::Duration* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void StreamStatusRequest::set_allocated_every(::PROTOBUF_NAMESPACE_ID::Duration* every) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.every_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(every_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (every) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(every)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + every = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, every, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.every_ = reinterpret_cast<::google::protobuf::Duration*>(value); + every_ = every; // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.StreamStatusRequest.every) } @@ -12931,51 +12447,42 @@ inline void StreamStatusRequest::set_allocated_every(::google::protobuf::Duratio // repeated .viam.robot.v1.Status status = 1 [json_name = "status"]; inline int StreamStatusResponse::_internal_status_size() const { - return _internal_status().size(); + return status_.size(); } inline int StreamStatusResponse::status_size() const { return _internal_status_size(); } inline void StreamStatusResponse::clear_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.status_.Clear(); + status_.Clear(); } -inline ::viam::robot::v1::Status* StreamStatusResponse::mutable_status(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::robot::v1::Status* StreamStatusResponse::mutable_status(int index) { // @@protoc_insertion_point(field_mutable:viam.robot.v1.StreamStatusResponse.status) - return _internal_mutable_status()->Mutable(index); + return status_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::robot::v1::Status>* StreamStatusResponse::mutable_status() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::Status >* +StreamStatusResponse::mutable_status() { // @@protoc_insertion_point(field_mutable_list:viam.robot.v1.StreamStatusResponse.status) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_status(); + return &status_; +} +inline const ::viam::robot::v1::Status& StreamStatusResponse::_internal_status(int index) const { + return status_.Get(index); } -inline const ::viam::robot::v1::Status& StreamStatusResponse::status(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::robot::v1::Status& StreamStatusResponse::status(int index) const { // @@protoc_insertion_point(field_get:viam.robot.v1.StreamStatusResponse.status) - return _internal_status().Get(index); + return _internal_status(index); } -inline ::viam::robot::v1::Status* StreamStatusResponse::add_status() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::robot::v1::Status* _add = _internal_mutable_status()->Add(); +inline ::viam::robot::v1::Status* StreamStatusResponse::_internal_add_status() { + return status_.Add(); +} +inline ::viam::robot::v1::Status* StreamStatusResponse::add_status() { + ::viam::robot::v1::Status* _add = _internal_add_status(); // @@protoc_insertion_point(field_add:viam.robot.v1.StreamStatusResponse.status) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::robot::v1::Status>& StreamStatusResponse::status() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::Status >& +StreamStatusResponse::status() const { // @@protoc_insertion_point(field_list:viam.robot.v1.StreamStatusResponse.status) - return _internal_status(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::robot::v1::Status>& -StreamStatusResponse::_internal_status() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.status_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::robot::v1::Status>* -StreamStatusResponse::_internal_mutable_status() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.status_; + return status_; } // ------------------------------------------------------------------- @@ -12983,184 +12490,172 @@ StreamStatusResponse::_internal_mutable_status() { // StopExtraParameters // .viam.common.v1.ResourceName name = 1 [json_name = "name"]; +inline bool StopExtraParameters::_internal_has_name() const { + return this != internal_default_instance() && name_ != nullptr; +} inline bool StopExtraParameters::has_name() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.name_ != nullptr); - return value; + return _internal_has_name(); } inline const ::viam::common::v1::ResourceName& StopExtraParameters::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::common::v1::ResourceName* p = _impl_.name_; - return p != nullptr ? *p : reinterpret_cast(::viam::common::v1::_ResourceName_default_instance_); + const ::viam::common::v1::ResourceName* p = name_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_ResourceName_default_instance_); } -inline const ::viam::common::v1::ResourceName& StopExtraParameters::name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::ResourceName& StopExtraParameters::name() const { // @@protoc_insertion_point(field_get:viam.robot.v1.StopExtraParameters.name) return _internal_name(); } -inline void StopExtraParameters::unsafe_arena_set_allocated_name(::viam::common::v1::ResourceName* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.name_); +inline void StopExtraParameters::unsafe_arena_set_allocated_name( + ::viam::common::v1::ResourceName* name) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(name_); } - _impl_.name_ = reinterpret_cast<::viam::common::v1::ResourceName*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + name_ = name; + if (name) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.robot.v1.StopExtraParameters.name) } inline ::viam::common::v1::ResourceName* StopExtraParameters::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::ResourceName* released = _impl_.name_; - _impl_.name_ = nullptr; + + ::viam::common::v1::ResourceName* temp = name_; + name_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::common::v1::ResourceName* StopExtraParameters::unsafe_arena_release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.robot.v1.StopExtraParameters.name) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::ResourceName* temp = _impl_.name_; - _impl_.name_ = nullptr; + + ::viam::common::v1::ResourceName* temp = name_; + name_ = nullptr; return temp; } inline ::viam::common::v1::ResourceName* StopExtraParameters::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.name_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArena()); - _impl_.name_ = reinterpret_cast<::viam::common::v1::ResourceName*>(p); + + if (name_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArenaForAllocation()); + name_ = p; } - return _impl_.name_; + return name_; } -inline ::viam::common::v1::ResourceName* StopExtraParameters::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::ResourceName* StopExtraParameters::mutable_name() { ::viam::common::v1::ResourceName* _msg = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.robot.v1.StopExtraParameters.name) return _msg; } -inline void StopExtraParameters::set_allocated_name(::viam::common::v1::ResourceName* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void StopExtraParameters::set_allocated_name(::viam::common::v1::ResourceName* name) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.name_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(name_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (name) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(name)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, name, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.name_ = reinterpret_cast<::viam::common::v1::ResourceName*>(value); + name_ = name; // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.StopExtraParameters.name) } // .google.protobuf.Struct params = 2 [json_name = "params"]; +inline bool StopExtraParameters::_internal_has_params() const { + return this != internal_default_instance() && params_ != nullptr; +} inline bool StopExtraParameters::has_params() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.params_ != nullptr); - return value; + return _internal_has_params(); } -inline const ::google::protobuf::Struct& StopExtraParameters::_internal_params() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.params_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& StopExtraParameters::_internal_params() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = params_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& StopExtraParameters::params() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& StopExtraParameters::params() const { // @@protoc_insertion_point(field_get:viam.robot.v1.StopExtraParameters.params) return _internal_params(); } -inline void StopExtraParameters::unsafe_arena_set_allocated_params(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.params_); +inline void StopExtraParameters::unsafe_arena_set_allocated_params( + ::PROTOBUF_NAMESPACE_ID::Struct* params) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(params_); } - _impl_.params_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + params_ = params; + if (params) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.robot.v1.StopExtraParameters.params) } -inline ::google::protobuf::Struct* StopExtraParameters::release_params() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Struct* released = _impl_.params_; - _impl_.params_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* StopExtraParameters::release_params() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = params_; + params_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* StopExtraParameters::unsafe_arena_release_params() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* StopExtraParameters::unsafe_arena_release_params() { // @@protoc_insertion_point(field_release:viam.robot.v1.StopExtraParameters.params) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Struct* temp = _impl_.params_; - _impl_.params_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = params_; + params_ = nullptr; return temp; } -inline ::google::protobuf::Struct* StopExtraParameters::_internal_mutable_params() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.params_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.params_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* StopExtraParameters::_internal_mutable_params() { + + if (params_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + params_ = p; } - return _impl_.params_; + return params_; } -inline ::google::protobuf::Struct* StopExtraParameters::mutable_params() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_params(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* StopExtraParameters::mutable_params() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_params(); // @@protoc_insertion_point(field_mutable:viam.robot.v1.StopExtraParameters.params) return _msg; } -inline void StopExtraParameters::set_allocated_params(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void StopExtraParameters::set_allocated_params(::PROTOBUF_NAMESPACE_ID::Struct* params) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.params_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(params_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (params) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(params)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + params = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, params, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.params_ = reinterpret_cast<::google::protobuf::Struct*>(value); + params_ = params; // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.StopExtraParameters.params) } @@ -13170,51 +12665,42 @@ inline void StopExtraParameters::set_allocated_params(::google::protobuf::Struct // repeated .viam.robot.v1.StopExtraParameters extra = 99 [json_name = "extra"]; inline int StopAllRequest::_internal_extra_size() const { - return _internal_extra().size(); + return extra_.size(); } inline int StopAllRequest::extra_size() const { return _internal_extra_size(); } inline void StopAllRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.extra_.Clear(); + extra_.Clear(); } -inline ::viam::robot::v1::StopExtraParameters* StopAllRequest::mutable_extra(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::robot::v1::StopExtraParameters* StopAllRequest::mutable_extra(int index) { // @@protoc_insertion_point(field_mutable:viam.robot.v1.StopAllRequest.extra) - return _internal_mutable_extra()->Mutable(index); + return extra_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::robot::v1::StopExtraParameters>* StopAllRequest::mutable_extra() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::StopExtraParameters >* +StopAllRequest::mutable_extra() { // @@protoc_insertion_point(field_mutable_list:viam.robot.v1.StopAllRequest.extra) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_extra(); + return &extra_; } -inline const ::viam::robot::v1::StopExtraParameters& StopAllRequest::extra(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::robot::v1::StopExtraParameters& StopAllRequest::_internal_extra(int index) const { + return extra_.Get(index); +} +inline const ::viam::robot::v1::StopExtraParameters& StopAllRequest::extra(int index) const { // @@protoc_insertion_point(field_get:viam.robot.v1.StopAllRequest.extra) - return _internal_extra().Get(index); + return _internal_extra(index); +} +inline ::viam::robot::v1::StopExtraParameters* StopAllRequest::_internal_add_extra() { + return extra_.Add(); } -inline ::viam::robot::v1::StopExtraParameters* StopAllRequest::add_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::robot::v1::StopExtraParameters* _add = _internal_mutable_extra()->Add(); +inline ::viam::robot::v1::StopExtraParameters* StopAllRequest::add_extra() { + ::viam::robot::v1::StopExtraParameters* _add = _internal_add_extra(); // @@protoc_insertion_point(field_add:viam.robot.v1.StopAllRequest.extra) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::robot::v1::StopExtraParameters>& StopAllRequest::extra() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::StopExtraParameters >& +StopAllRequest::extra() const { // @@protoc_insertion_point(field_list:viam.robot.v1.StopAllRequest.extra) - return _internal_extra(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::robot::v1::StopExtraParameters>& -StopAllRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.extra_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::robot::v1::StopExtraParameters>* -StopAllRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.extra_; + return extra_; } // ------------------------------------------------------------------- @@ -13227,54 +12713,51 @@ StopAllRequest::_internal_mutable_extra() { // string resume = 1 [json_name = "resume"]; inline void StartSessionRequest::clear_resume() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.resume_.ClearToEmpty(); + resume_.ClearToEmpty(); } -inline const std::string& StartSessionRequest::resume() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& StartSessionRequest::resume() const { // @@protoc_insertion_point(field_get:viam.robot.v1.StartSessionRequest.resume) return _internal_resume(); } -template -inline PROTOBUF_ALWAYS_INLINE void StartSessionRequest::set_resume(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.resume_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void StartSessionRequest::set_resume(ArgT0&& arg0, ArgT... args) { + + resume_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.robot.v1.StartSessionRequest.resume) } -inline std::string* StartSessionRequest::mutable_resume() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* StartSessionRequest::mutable_resume() { std::string* _s = _internal_mutable_resume(); // @@protoc_insertion_point(field_mutable:viam.robot.v1.StartSessionRequest.resume) return _s; } inline const std::string& StartSessionRequest::_internal_resume() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.resume_.Get(); + return resume_.Get(); } inline void StartSessionRequest::_internal_set_resume(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.resume_.Set(value, GetArena()); + + resume_.Set(value, GetArenaForAllocation()); } inline std::string* StartSessionRequest::_internal_mutable_resume() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.resume_.Mutable( GetArena()); + + return resume_.Mutable(GetArenaForAllocation()); } inline std::string* StartSessionRequest::release_resume() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.robot.v1.StartSessionRequest.resume) - return _impl_.resume_.Release(); -} -inline void StartSessionRequest::set_allocated_resume(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.resume_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.resume_.IsDefault()) { - _impl_.resume_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return resume_.Release(); +} +inline void StartSessionRequest::set_allocated_resume(std::string* resume) { + if (resume != nullptr) { + + } else { + + } + resume_.SetAllocated(resume, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (resume_.IsDefault()) { + resume_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.StartSessionRequest.resume) } @@ -13284,145 +12767,136 @@ inline void StartSessionRequest::set_allocated_resume(std::string* value) { // string id = 1 [json_name = "id"]; inline void StartSessionResponse::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); + id_.ClearToEmpty(); } -inline const std::string& StartSessionResponse::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& StartSessionResponse::id() const { // @@protoc_insertion_point(field_get:viam.robot.v1.StartSessionResponse.id) return _internal_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void StartSessionResponse::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void StartSessionResponse::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.robot.v1.StartSessionResponse.id) } -inline std::string* StartSessionResponse::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* StartSessionResponse::mutable_id() { std::string* _s = _internal_mutable_id(); // @@protoc_insertion_point(field_mutable:viam.robot.v1.StartSessionResponse.id) return _s; } inline const std::string& StartSessionResponse::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); + return id_.Get(); } inline void StartSessionResponse::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); + + id_.Set(value, GetArenaForAllocation()); } inline std::string* StartSessionResponse::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); + + return id_.Mutable(GetArenaForAllocation()); } inline std::string* StartSessionResponse::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.robot.v1.StartSessionResponse.id) - return _impl_.id_.Release(); -} -inline void StartSessionResponse::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return id_.Release(); +} +inline void StartSessionResponse::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.StartSessionResponse.id) } // .google.protobuf.Duration heartbeat_window = 2 [json_name = "heartbeatWindow"]; +inline bool StartSessionResponse::_internal_has_heartbeat_window() const { + return this != internal_default_instance() && heartbeat_window_ != nullptr; +} inline bool StartSessionResponse::has_heartbeat_window() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.heartbeat_window_ != nullptr); - return value; + return _internal_has_heartbeat_window(); } -inline const ::google::protobuf::Duration& StartSessionResponse::_internal_heartbeat_window() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Duration* p = _impl_.heartbeat_window_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Duration_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Duration& StartSessionResponse::_internal_heartbeat_window() const { + const ::PROTOBUF_NAMESPACE_ID::Duration* p = heartbeat_window_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Duration_default_instance_); } -inline const ::google::protobuf::Duration& StartSessionResponse::heartbeat_window() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Duration& StartSessionResponse::heartbeat_window() const { // @@protoc_insertion_point(field_get:viam.robot.v1.StartSessionResponse.heartbeat_window) return _internal_heartbeat_window(); } -inline void StartSessionResponse::unsafe_arena_set_allocated_heartbeat_window(::google::protobuf::Duration* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.heartbeat_window_); +inline void StartSessionResponse::unsafe_arena_set_allocated_heartbeat_window( + ::PROTOBUF_NAMESPACE_ID::Duration* heartbeat_window) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(heartbeat_window_); } - _impl_.heartbeat_window_ = reinterpret_cast<::google::protobuf::Duration*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + heartbeat_window_ = heartbeat_window; + if (heartbeat_window) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.robot.v1.StartSessionResponse.heartbeat_window) } -inline ::google::protobuf::Duration* StartSessionResponse::release_heartbeat_window() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Duration* released = _impl_.heartbeat_window_; - _impl_.heartbeat_window_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Duration* StartSessionResponse::release_heartbeat_window() { + + ::PROTOBUF_NAMESPACE_ID::Duration* temp = heartbeat_window_; + heartbeat_window_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Duration* StartSessionResponse::unsafe_arena_release_heartbeat_window() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Duration* StartSessionResponse::unsafe_arena_release_heartbeat_window() { // @@protoc_insertion_point(field_release:viam.robot.v1.StartSessionResponse.heartbeat_window) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Duration* temp = _impl_.heartbeat_window_; - _impl_.heartbeat_window_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Duration* temp = heartbeat_window_; + heartbeat_window_ = nullptr; return temp; } -inline ::google::protobuf::Duration* StartSessionResponse::_internal_mutable_heartbeat_window() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.heartbeat_window_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArena()); - _impl_.heartbeat_window_ = reinterpret_cast<::google::protobuf::Duration*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Duration* StartSessionResponse::_internal_mutable_heartbeat_window() { + + if (heartbeat_window_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Duration>(GetArenaForAllocation()); + heartbeat_window_ = p; } - return _impl_.heartbeat_window_; + return heartbeat_window_; } -inline ::google::protobuf::Duration* StartSessionResponse::mutable_heartbeat_window() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Duration* _msg = _internal_mutable_heartbeat_window(); +inline ::PROTOBUF_NAMESPACE_ID::Duration* StartSessionResponse::mutable_heartbeat_window() { + ::PROTOBUF_NAMESPACE_ID::Duration* _msg = _internal_mutable_heartbeat_window(); // @@protoc_insertion_point(field_mutable:viam.robot.v1.StartSessionResponse.heartbeat_window) return _msg; } -inline void StartSessionResponse::set_allocated_heartbeat_window(::google::protobuf::Duration* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void StartSessionResponse::set_allocated_heartbeat_window(::PROTOBUF_NAMESPACE_ID::Duration* heartbeat_window) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.heartbeat_window_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(heartbeat_window_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (heartbeat_window) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(heartbeat_window)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + heartbeat_window = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, heartbeat_window, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.heartbeat_window_ = reinterpret_cast<::google::protobuf::Duration*>(value); + heartbeat_window_ = heartbeat_window; // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.StartSessionResponse.heartbeat_window) } @@ -13432,54 +12906,51 @@ inline void StartSessionResponse::set_allocated_heartbeat_window(::google::proto // string id = 1 [json_name = "id"]; inline void SendSessionHeartbeatRequest::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); + id_.ClearToEmpty(); } -inline const std::string& SendSessionHeartbeatRequest::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& SendSessionHeartbeatRequest::id() const { // @@protoc_insertion_point(field_get:viam.robot.v1.SendSessionHeartbeatRequest.id) return _internal_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void SendSessionHeartbeatRequest::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void SendSessionHeartbeatRequest::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.robot.v1.SendSessionHeartbeatRequest.id) } -inline std::string* SendSessionHeartbeatRequest::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* SendSessionHeartbeatRequest::mutable_id() { std::string* _s = _internal_mutable_id(); // @@protoc_insertion_point(field_mutable:viam.robot.v1.SendSessionHeartbeatRequest.id) return _s; } inline const std::string& SendSessionHeartbeatRequest::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); + return id_.Get(); } inline void SendSessionHeartbeatRequest::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); + + id_.Set(value, GetArenaForAllocation()); } inline std::string* SendSessionHeartbeatRequest::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); + + return id_.Mutable(GetArenaForAllocation()); } inline std::string* SendSessionHeartbeatRequest::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.robot.v1.SendSessionHeartbeatRequest.id) - return _impl_.id_.Release(); -} -inline void SendSessionHeartbeatRequest::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return id_.Release(); +} +inline void SendSessionHeartbeatRequest::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.SendSessionHeartbeatRequest.id) } @@ -13493,47 +12964,39 @@ inline void SendSessionHeartbeatRequest::set_allocated_id(std::string* value) { // repeated .viam.common.v1.LogEntry logs = 1 [json_name = "logs"]; inline int LogRequest::_internal_logs_size() const { - return _internal_logs().size(); + return logs_.size(); } inline int LogRequest::logs_size() const { return _internal_logs_size(); } -inline ::viam::common::v1::LogEntry* LogRequest::mutable_logs(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::LogEntry* LogRequest::mutable_logs(int index) { // @@protoc_insertion_point(field_mutable:viam.robot.v1.LogRequest.logs) - return _internal_mutable_logs()->Mutable(index); + return logs_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::common::v1::LogEntry>* LogRequest::mutable_logs() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::LogEntry >* +LogRequest::mutable_logs() { // @@protoc_insertion_point(field_mutable_list:viam.robot.v1.LogRequest.logs) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_logs(); + return &logs_; +} +inline const ::viam::common::v1::LogEntry& LogRequest::_internal_logs(int index) const { + return logs_.Get(index); } -inline const ::viam::common::v1::LogEntry& LogRequest::logs(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::LogEntry& LogRequest::logs(int index) const { // @@protoc_insertion_point(field_get:viam.robot.v1.LogRequest.logs) - return _internal_logs().Get(index); + return _internal_logs(index); } -inline ::viam::common::v1::LogEntry* LogRequest::add_logs() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::common::v1::LogEntry* _add = _internal_mutable_logs()->Add(); +inline ::viam::common::v1::LogEntry* LogRequest::_internal_add_logs() { + return logs_.Add(); +} +inline ::viam::common::v1::LogEntry* LogRequest::add_logs() { + ::viam::common::v1::LogEntry* _add = _internal_add_logs(); // @@protoc_insertion_point(field_add:viam.robot.v1.LogRequest.logs) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::common::v1::LogEntry>& LogRequest::logs() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::LogEntry >& +LogRequest::logs() const { // @@protoc_insertion_point(field_list:viam.robot.v1.LogRequest.logs) - return _internal_logs(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::common::v1::LogEntry>& -LogRequest::_internal_logs() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.logs_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::common::v1::LogEntry>* -LogRequest::_internal_mutable_logs() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.logs_; + return logs_; } // ------------------------------------------------------------------- @@ -13550,266 +13013,251 @@ LogRequest::_internal_mutable_logs() { // string robot_part_id = 1 [json_name = "robotPartId", deprecated = true]; inline void GetCloudMetadataResponse::clear_robot_part_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.robot_part_id_.ClearToEmpty(); + robot_part_id_.ClearToEmpty(); } -inline const std::string& GetCloudMetadataResponse::robot_part_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetCloudMetadataResponse::robot_part_id() const { // @@protoc_insertion_point(field_get:viam.robot.v1.GetCloudMetadataResponse.robot_part_id) return _internal_robot_part_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetCloudMetadataResponse::set_robot_part_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.robot_part_id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetCloudMetadataResponse::set_robot_part_id(ArgT0&& arg0, ArgT... args) { + + robot_part_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.robot.v1.GetCloudMetadataResponse.robot_part_id) } -inline std::string* GetCloudMetadataResponse::mutable_robot_part_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetCloudMetadataResponse::mutable_robot_part_id() { std::string* _s = _internal_mutable_robot_part_id(); // @@protoc_insertion_point(field_mutable:viam.robot.v1.GetCloudMetadataResponse.robot_part_id) return _s; } inline const std::string& GetCloudMetadataResponse::_internal_robot_part_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.robot_part_id_.Get(); + return robot_part_id_.Get(); } inline void GetCloudMetadataResponse::_internal_set_robot_part_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.robot_part_id_.Set(value, GetArena()); + + robot_part_id_.Set(value, GetArenaForAllocation()); } inline std::string* GetCloudMetadataResponse::_internal_mutable_robot_part_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.robot_part_id_.Mutable( GetArena()); + + return robot_part_id_.Mutable(GetArenaForAllocation()); } inline std::string* GetCloudMetadataResponse::release_robot_part_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.robot.v1.GetCloudMetadataResponse.robot_part_id) - return _impl_.robot_part_id_.Release(); -} -inline void GetCloudMetadataResponse::set_allocated_robot_part_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.robot_part_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.robot_part_id_.IsDefault()) { - _impl_.robot_part_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return robot_part_id_.Release(); +} +inline void GetCloudMetadataResponse::set_allocated_robot_part_id(std::string* robot_part_id) { + if (robot_part_id != nullptr) { + + } else { + + } + robot_part_id_.SetAllocated(robot_part_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (robot_part_id_.IsDefault()) { + robot_part_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.GetCloudMetadataResponse.robot_part_id) } // string primary_org_id = 2 [json_name = "primaryOrgId"]; inline void GetCloudMetadataResponse::clear_primary_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.primary_org_id_.ClearToEmpty(); + primary_org_id_.ClearToEmpty(); } -inline const std::string& GetCloudMetadataResponse::primary_org_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetCloudMetadataResponse::primary_org_id() const { // @@protoc_insertion_point(field_get:viam.robot.v1.GetCloudMetadataResponse.primary_org_id) return _internal_primary_org_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetCloudMetadataResponse::set_primary_org_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.primary_org_id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetCloudMetadataResponse::set_primary_org_id(ArgT0&& arg0, ArgT... args) { + + primary_org_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.robot.v1.GetCloudMetadataResponse.primary_org_id) } -inline std::string* GetCloudMetadataResponse::mutable_primary_org_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetCloudMetadataResponse::mutable_primary_org_id() { std::string* _s = _internal_mutable_primary_org_id(); // @@protoc_insertion_point(field_mutable:viam.robot.v1.GetCloudMetadataResponse.primary_org_id) return _s; } inline const std::string& GetCloudMetadataResponse::_internal_primary_org_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.primary_org_id_.Get(); + return primary_org_id_.Get(); } inline void GetCloudMetadataResponse::_internal_set_primary_org_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.primary_org_id_.Set(value, GetArena()); + + primary_org_id_.Set(value, GetArenaForAllocation()); } inline std::string* GetCloudMetadataResponse::_internal_mutable_primary_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.primary_org_id_.Mutable( GetArena()); + + return primary_org_id_.Mutable(GetArenaForAllocation()); } inline std::string* GetCloudMetadataResponse::release_primary_org_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.robot.v1.GetCloudMetadataResponse.primary_org_id) - return _impl_.primary_org_id_.Release(); -} -inline void GetCloudMetadataResponse::set_allocated_primary_org_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.primary_org_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.primary_org_id_.IsDefault()) { - _impl_.primary_org_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return primary_org_id_.Release(); +} +inline void GetCloudMetadataResponse::set_allocated_primary_org_id(std::string* primary_org_id) { + if (primary_org_id != nullptr) { + + } else { + + } + primary_org_id_.SetAllocated(primary_org_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (primary_org_id_.IsDefault()) { + primary_org_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.GetCloudMetadataResponse.primary_org_id) } // string location_id = 3 [json_name = "locationId"]; inline void GetCloudMetadataResponse::clear_location_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.location_id_.ClearToEmpty(); + location_id_.ClearToEmpty(); } -inline const std::string& GetCloudMetadataResponse::location_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetCloudMetadataResponse::location_id() const { // @@protoc_insertion_point(field_get:viam.robot.v1.GetCloudMetadataResponse.location_id) return _internal_location_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetCloudMetadataResponse::set_location_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.location_id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetCloudMetadataResponse::set_location_id(ArgT0&& arg0, ArgT... args) { + + location_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.robot.v1.GetCloudMetadataResponse.location_id) } -inline std::string* GetCloudMetadataResponse::mutable_location_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetCloudMetadataResponse::mutable_location_id() { std::string* _s = _internal_mutable_location_id(); // @@protoc_insertion_point(field_mutable:viam.robot.v1.GetCloudMetadataResponse.location_id) return _s; } inline const std::string& GetCloudMetadataResponse::_internal_location_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.location_id_.Get(); + return location_id_.Get(); } inline void GetCloudMetadataResponse::_internal_set_location_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.location_id_.Set(value, GetArena()); + + location_id_.Set(value, GetArenaForAllocation()); } inline std::string* GetCloudMetadataResponse::_internal_mutable_location_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.location_id_.Mutable( GetArena()); + + return location_id_.Mutable(GetArenaForAllocation()); } inline std::string* GetCloudMetadataResponse::release_location_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.robot.v1.GetCloudMetadataResponse.location_id) - return _impl_.location_id_.Release(); -} -inline void GetCloudMetadataResponse::set_allocated_location_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.location_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.location_id_.IsDefault()) { - _impl_.location_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return location_id_.Release(); +} +inline void GetCloudMetadataResponse::set_allocated_location_id(std::string* location_id) { + if (location_id != nullptr) { + + } else { + + } + location_id_.SetAllocated(location_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (location_id_.IsDefault()) { + location_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.GetCloudMetadataResponse.location_id) } // string machine_id = 4 [json_name = "machineId"]; inline void GetCloudMetadataResponse::clear_machine_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.machine_id_.ClearToEmpty(); + machine_id_.ClearToEmpty(); } -inline const std::string& GetCloudMetadataResponse::machine_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetCloudMetadataResponse::machine_id() const { // @@protoc_insertion_point(field_get:viam.robot.v1.GetCloudMetadataResponse.machine_id) return _internal_machine_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetCloudMetadataResponse::set_machine_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.machine_id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetCloudMetadataResponse::set_machine_id(ArgT0&& arg0, ArgT... args) { + + machine_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.robot.v1.GetCloudMetadataResponse.machine_id) } -inline std::string* GetCloudMetadataResponse::mutable_machine_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetCloudMetadataResponse::mutable_machine_id() { std::string* _s = _internal_mutable_machine_id(); // @@protoc_insertion_point(field_mutable:viam.robot.v1.GetCloudMetadataResponse.machine_id) return _s; } inline const std::string& GetCloudMetadataResponse::_internal_machine_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.machine_id_.Get(); + return machine_id_.Get(); } inline void GetCloudMetadataResponse::_internal_set_machine_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.machine_id_.Set(value, GetArena()); + + machine_id_.Set(value, GetArenaForAllocation()); } inline std::string* GetCloudMetadataResponse::_internal_mutable_machine_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.machine_id_.Mutable( GetArena()); + + return machine_id_.Mutable(GetArenaForAllocation()); } inline std::string* GetCloudMetadataResponse::release_machine_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.robot.v1.GetCloudMetadataResponse.machine_id) - return _impl_.machine_id_.Release(); -} -inline void GetCloudMetadataResponse::set_allocated_machine_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.machine_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.machine_id_.IsDefault()) { - _impl_.machine_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return machine_id_.Release(); +} +inline void GetCloudMetadataResponse::set_allocated_machine_id(std::string* machine_id) { + if (machine_id != nullptr) { + + } else { + + } + machine_id_.SetAllocated(machine_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (machine_id_.IsDefault()) { + machine_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.GetCloudMetadataResponse.machine_id) } // string machine_part_id = 5 [json_name = "machinePartId"]; inline void GetCloudMetadataResponse::clear_machine_part_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.machine_part_id_.ClearToEmpty(); + machine_part_id_.ClearToEmpty(); } -inline const std::string& GetCloudMetadataResponse::machine_part_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetCloudMetadataResponse::machine_part_id() const { // @@protoc_insertion_point(field_get:viam.robot.v1.GetCloudMetadataResponse.machine_part_id) return _internal_machine_part_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetCloudMetadataResponse::set_machine_part_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.machine_part_id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetCloudMetadataResponse::set_machine_part_id(ArgT0&& arg0, ArgT... args) { + + machine_part_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.robot.v1.GetCloudMetadataResponse.machine_part_id) } -inline std::string* GetCloudMetadataResponse::mutable_machine_part_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetCloudMetadataResponse::mutable_machine_part_id() { std::string* _s = _internal_mutable_machine_part_id(); // @@protoc_insertion_point(field_mutable:viam.robot.v1.GetCloudMetadataResponse.machine_part_id) return _s; } inline const std::string& GetCloudMetadataResponse::_internal_machine_part_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.machine_part_id_.Get(); + return machine_part_id_.Get(); } inline void GetCloudMetadataResponse::_internal_set_machine_part_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.machine_part_id_.Set(value, GetArena()); + + machine_part_id_.Set(value, GetArenaForAllocation()); } inline std::string* GetCloudMetadataResponse::_internal_mutable_machine_part_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.machine_part_id_.Mutable( GetArena()); + + return machine_part_id_.Mutable(GetArenaForAllocation()); } inline std::string* GetCloudMetadataResponse::release_machine_part_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.robot.v1.GetCloudMetadataResponse.machine_part_id) - return _impl_.machine_part_id_.Release(); -} -inline void GetCloudMetadataResponse::set_allocated_machine_part_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.machine_part_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.machine_part_id_.IsDefault()) { - _impl_.machine_part_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return machine_part_id_.Release(); +} +inline void GetCloudMetadataResponse::set_allocated_machine_part_id(std::string* machine_part_id) { + if (machine_part_id != nullptr) { + + } else { + + } + machine_part_id_.SetAllocated(machine_part_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (machine_part_id_.IsDefault()) { + machine_part_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.GetCloudMetadataResponse.machine_part_id) } @@ -13818,171 +13266,155 @@ inline void GetCloudMetadataResponse::set_allocated_machine_part_id(std::string* // RestartModuleRequest // string module_id = 1 [json_name = "moduleId"]; -inline bool RestartModuleRequest::has_module_id() const { +inline bool RestartModuleRequest::_internal_has_module_id() const { return id_or_name_case() == kModuleId; } +inline bool RestartModuleRequest::has_module_id() const { + return _internal_has_module_id(); +} inline void RestartModuleRequest::set_has_module_id() { - _impl_._oneof_case_[0] = kModuleId; + _oneof_case_[0] = kModuleId; } inline void RestartModuleRequest::clear_module_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (id_or_name_case() == kModuleId) { - _impl_.id_or_name_.module_id_.Destroy(); + if (_internal_has_module_id()) { + id_or_name_.module_id_.Destroy(); clear_has_id_or_name(); } } -inline const std::string& RestartModuleRequest::module_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& RestartModuleRequest::module_id() const { // @@protoc_insertion_point(field_get:viam.robot.v1.RestartModuleRequest.module_id) return _internal_module_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void RestartModuleRequest::set_module_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (id_or_name_case() != kModuleId) { +template +inline void RestartModuleRequest::set_module_id(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_module_id()) { clear_id_or_name(); - set_has_module_id(); - _impl_.id_or_name_.module_id_.InitDefault(); + id_or_name_.module_id_.InitDefault(); } - _impl_.id_or_name_.module_id_.Set(static_cast(arg), args..., GetArena()); + id_or_name_.module_id_.Set( static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.robot.v1.RestartModuleRequest.module_id) } -inline std::string* RestartModuleRequest::mutable_module_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* RestartModuleRequest::mutable_module_id() { std::string* _s = _internal_mutable_module_id(); // @@protoc_insertion_point(field_mutable:viam.robot.v1.RestartModuleRequest.module_id) return _s; } inline const std::string& RestartModuleRequest::_internal_module_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - if (id_or_name_case() != kModuleId) { - return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); + if (_internal_has_module_id()) { + return id_or_name_.module_id_.Get(); } - return _impl_.id_or_name_.module_id_.Get(); + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } inline void RestartModuleRequest::_internal_set_module_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (id_or_name_case() != kModuleId) { + if (!_internal_has_module_id()) { clear_id_or_name(); - set_has_module_id(); - _impl_.id_or_name_.module_id_.InitDefault(); + id_or_name_.module_id_.InitDefault(); } - _impl_.id_or_name_.module_id_.Set(value, GetArena()); + id_or_name_.module_id_.Set(value, GetArenaForAllocation()); } inline std::string* RestartModuleRequest::_internal_mutable_module_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (id_or_name_case() != kModuleId) { + if (!_internal_has_module_id()) { clear_id_or_name(); - set_has_module_id(); - _impl_.id_or_name_.module_id_.InitDefault(); + id_or_name_.module_id_.InitDefault(); } - return _impl_.id_or_name_.module_id_.Mutable( GetArena()); + return id_or_name_.module_id_.Mutable( GetArenaForAllocation()); } inline std::string* RestartModuleRequest::release_module_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.robot.v1.RestartModuleRequest.module_id) - if (id_or_name_case() != kModuleId) { + if (_internal_has_module_id()) { + clear_has_id_or_name(); + return id_or_name_.module_id_.Release(); + } else { return nullptr; } - clear_has_id_or_name(); - return _impl_.id_or_name_.module_id_.Release(); } -inline void RestartModuleRequest::set_allocated_module_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void RestartModuleRequest::set_allocated_module_id(std::string* module_id) { if (has_id_or_name()) { clear_id_or_name(); } - if (value != nullptr) { + if (module_id != nullptr) { set_has_module_id(); - _impl_.id_or_name_.module_id_.InitAllocated(value, GetArena()); + id_or_name_.module_id_.InitAllocated(module_id, GetArenaForAllocation()); } // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.RestartModuleRequest.module_id) } // string module_name = 2 [json_name = "moduleName"]; -inline bool RestartModuleRequest::has_module_name() const { +inline bool RestartModuleRequest::_internal_has_module_name() const { return id_or_name_case() == kModuleName; } +inline bool RestartModuleRequest::has_module_name() const { + return _internal_has_module_name(); +} inline void RestartModuleRequest::set_has_module_name() { - _impl_._oneof_case_[0] = kModuleName; + _oneof_case_[0] = kModuleName; } inline void RestartModuleRequest::clear_module_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (id_or_name_case() == kModuleName) { - _impl_.id_or_name_.module_name_.Destroy(); + if (_internal_has_module_name()) { + id_or_name_.module_name_.Destroy(); clear_has_id_or_name(); } } -inline const std::string& RestartModuleRequest::module_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& RestartModuleRequest::module_name() const { // @@protoc_insertion_point(field_get:viam.robot.v1.RestartModuleRequest.module_name) return _internal_module_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void RestartModuleRequest::set_module_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (id_or_name_case() != kModuleName) { +template +inline void RestartModuleRequest::set_module_name(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_module_name()) { clear_id_or_name(); - set_has_module_name(); - _impl_.id_or_name_.module_name_.InitDefault(); + id_or_name_.module_name_.InitDefault(); } - _impl_.id_or_name_.module_name_.Set(static_cast(arg), args..., GetArena()); + id_or_name_.module_name_.Set( static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.robot.v1.RestartModuleRequest.module_name) } -inline std::string* RestartModuleRequest::mutable_module_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* RestartModuleRequest::mutable_module_name() { std::string* _s = _internal_mutable_module_name(); // @@protoc_insertion_point(field_mutable:viam.robot.v1.RestartModuleRequest.module_name) return _s; } inline const std::string& RestartModuleRequest::_internal_module_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - if (id_or_name_case() != kModuleName) { - return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); + if (_internal_has_module_name()) { + return id_or_name_.module_name_.Get(); } - return _impl_.id_or_name_.module_name_.Get(); + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); } inline void RestartModuleRequest::_internal_set_module_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (id_or_name_case() != kModuleName) { + if (!_internal_has_module_name()) { clear_id_or_name(); - set_has_module_name(); - _impl_.id_or_name_.module_name_.InitDefault(); + id_or_name_.module_name_.InitDefault(); } - _impl_.id_or_name_.module_name_.Set(value, GetArena()); + id_or_name_.module_name_.Set(value, GetArenaForAllocation()); } inline std::string* RestartModuleRequest::_internal_mutable_module_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (id_or_name_case() != kModuleName) { + if (!_internal_has_module_name()) { clear_id_or_name(); - set_has_module_name(); - _impl_.id_or_name_.module_name_.InitDefault(); + id_or_name_.module_name_.InitDefault(); } - return _impl_.id_or_name_.module_name_.Mutable( GetArena()); + return id_or_name_.module_name_.Mutable( GetArenaForAllocation()); } inline std::string* RestartModuleRequest::release_module_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.robot.v1.RestartModuleRequest.module_name) - if (id_or_name_case() != kModuleName) { + if (_internal_has_module_name()) { + clear_has_id_or_name(); + return id_or_name_.module_name_.Release(); + } else { return nullptr; } - clear_has_id_or_name(); - return _impl_.id_or_name_.module_name_.Release(); } -inline void RestartModuleRequest::set_allocated_module_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void RestartModuleRequest::set_allocated_module_name(std::string* module_name) { if (has_id_or_name()) { clear_id_or_name(); } - if (value != nullptr) { + if (module_name != nullptr) { set_has_module_name(); - _impl_.id_or_name_.module_name_.InitAllocated(value, GetArena()); + id_or_name_.module_name_.InitAllocated(module_name, GetArenaForAllocation()); } // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.RestartModuleRequest.module_name) } @@ -13991,10 +13423,10 @@ inline bool RestartModuleRequest::has_id_or_name() const { return id_or_name_case() != ID_OR_NAME_NOT_SET; } inline void RestartModuleRequest::clear_has_id_or_name() { - _impl_._oneof_case_[0] = ID_OR_NAME_NOT_SET; + _oneof_case_[0] = ID_OR_NAME_NOT_SET; } inline RestartModuleRequest::IdOrNameCase RestartModuleRequest::id_or_name_case() const { - return RestartModuleRequest::IdOrNameCase(_impl_._oneof_case_[0]); + return RestartModuleRequest::IdOrNameCase(_oneof_case_[0]); } // ------------------------------------------------------------------- @@ -14018,557 +13450,535 @@ inline RestartModuleRequest::IdOrNameCase RestartModuleRequest::id_or_name_case( // repeated .viam.robot.v1.ResourceStatus resources = 1 [json_name = "resources"]; inline int GetMachineStatusResponse::_internal_resources_size() const { - return _internal_resources().size(); + return resources_.size(); } inline int GetMachineStatusResponse::resources_size() const { return _internal_resources_size(); } inline void GetMachineStatusResponse::clear_resources() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.resources_.Clear(); + resources_.Clear(); } -inline ::viam::robot::v1::ResourceStatus* GetMachineStatusResponse::mutable_resources(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::robot::v1::ResourceStatus* GetMachineStatusResponse::mutable_resources(int index) { // @@protoc_insertion_point(field_mutable:viam.robot.v1.GetMachineStatusResponse.resources) - return _internal_mutable_resources()->Mutable(index); + return resources_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::robot::v1::ResourceStatus>* GetMachineStatusResponse::mutable_resources() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::ResourceStatus >* +GetMachineStatusResponse::mutable_resources() { // @@protoc_insertion_point(field_mutable_list:viam.robot.v1.GetMachineStatusResponse.resources) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_resources(); + return &resources_; +} +inline const ::viam::robot::v1::ResourceStatus& GetMachineStatusResponse::_internal_resources(int index) const { + return resources_.Get(index); } -inline const ::viam::robot::v1::ResourceStatus& GetMachineStatusResponse::resources(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::robot::v1::ResourceStatus& GetMachineStatusResponse::resources(int index) const { // @@protoc_insertion_point(field_get:viam.robot.v1.GetMachineStatusResponse.resources) - return _internal_resources().Get(index); + return _internal_resources(index); } -inline ::viam::robot::v1::ResourceStatus* GetMachineStatusResponse::add_resources() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::robot::v1::ResourceStatus* _add = _internal_mutable_resources()->Add(); +inline ::viam::robot::v1::ResourceStatus* GetMachineStatusResponse::_internal_add_resources() { + return resources_.Add(); +} +inline ::viam::robot::v1::ResourceStatus* GetMachineStatusResponse::add_resources() { + ::viam::robot::v1::ResourceStatus* _add = _internal_add_resources(); // @@protoc_insertion_point(field_add:viam.robot.v1.GetMachineStatusResponse.resources) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::robot::v1::ResourceStatus>& GetMachineStatusResponse::resources() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::robot::v1::ResourceStatus >& +GetMachineStatusResponse::resources() const { // @@protoc_insertion_point(field_list:viam.robot.v1.GetMachineStatusResponse.resources) - return _internal_resources(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::robot::v1::ResourceStatus>& -GetMachineStatusResponse::_internal_resources() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.resources_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::robot::v1::ResourceStatus>* -GetMachineStatusResponse::_internal_mutable_resources() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.resources_; + return resources_; } // .viam.robot.v1.ConfigStatus config = 2 [json_name = "config"]; +inline bool GetMachineStatusResponse::_internal_has_config() const { + return this != internal_default_instance() && config_ != nullptr; +} inline bool GetMachineStatusResponse::has_config() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.config_ != nullptr); - return value; + return _internal_has_config(); } inline void GetMachineStatusResponse::clear_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.config_ != nullptr) _impl_.config_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && config_ != nullptr) { + delete config_; + } + config_ = nullptr; } inline const ::viam::robot::v1::ConfigStatus& GetMachineStatusResponse::_internal_config() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::robot::v1::ConfigStatus* p = _impl_.config_; - return p != nullptr ? *p : reinterpret_cast(::viam::robot::v1::_ConfigStatus_default_instance_); + const ::viam::robot::v1::ConfigStatus* p = config_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::robot::v1::_ConfigStatus_default_instance_); } -inline const ::viam::robot::v1::ConfigStatus& GetMachineStatusResponse::config() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::robot::v1::ConfigStatus& GetMachineStatusResponse::config() const { // @@protoc_insertion_point(field_get:viam.robot.v1.GetMachineStatusResponse.config) return _internal_config(); } -inline void GetMachineStatusResponse::unsafe_arena_set_allocated_config(::viam::robot::v1::ConfigStatus* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.config_); +inline void GetMachineStatusResponse::unsafe_arena_set_allocated_config( + ::viam::robot::v1::ConfigStatus* config) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(config_); } - _impl_.config_ = reinterpret_cast<::viam::robot::v1::ConfigStatus*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + config_ = config; + if (config) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.robot.v1.GetMachineStatusResponse.config) } inline ::viam::robot::v1::ConfigStatus* GetMachineStatusResponse::release_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::robot::v1::ConfigStatus* released = _impl_.config_; - _impl_.config_ = nullptr; + + ::viam::robot::v1::ConfigStatus* temp = config_; + config_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::robot::v1::ConfigStatus* GetMachineStatusResponse::unsafe_arena_release_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.robot.v1.GetMachineStatusResponse.config) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::robot::v1::ConfigStatus* temp = _impl_.config_; - _impl_.config_ = nullptr; + + ::viam::robot::v1::ConfigStatus* temp = config_; + config_ = nullptr; return temp; } inline ::viam::robot::v1::ConfigStatus* GetMachineStatusResponse::_internal_mutable_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.config_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::robot::v1::ConfigStatus>(GetArena()); - _impl_.config_ = reinterpret_cast<::viam::robot::v1::ConfigStatus*>(p); + + if (config_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::robot::v1::ConfigStatus>(GetArenaForAllocation()); + config_ = p; } - return _impl_.config_; + return config_; } -inline ::viam::robot::v1::ConfigStatus* GetMachineStatusResponse::mutable_config() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::robot::v1::ConfigStatus* GetMachineStatusResponse::mutable_config() { ::viam::robot::v1::ConfigStatus* _msg = _internal_mutable_config(); // @@protoc_insertion_point(field_mutable:viam.robot.v1.GetMachineStatusResponse.config) return _msg; } -inline void GetMachineStatusResponse::set_allocated_config(::viam::robot::v1::ConfigStatus* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetMachineStatusResponse::set_allocated_config(::viam::robot::v1::ConfigStatus* config) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::robot::v1::ConfigStatus*>(_impl_.config_); + delete config_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::robot::v1::ConfigStatus*>(value)->GetArena(); + if (config) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(config); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + config = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, config, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.config_ = reinterpret_cast<::viam::robot::v1::ConfigStatus*>(value); + config_ = config; // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.GetMachineStatusResponse.config) } +// .viam.robot.v1.GetMachineStatusResponse.State state = 3 [json_name = "state"]; +inline void GetMachineStatusResponse::clear_state() { + state_ = 0; +} +inline ::viam::robot::v1::GetMachineStatusResponse_State GetMachineStatusResponse::_internal_state() const { + return static_cast< ::viam::robot::v1::GetMachineStatusResponse_State >(state_); +} +inline ::viam::robot::v1::GetMachineStatusResponse_State GetMachineStatusResponse::state() const { + // @@protoc_insertion_point(field_get:viam.robot.v1.GetMachineStatusResponse.state) + return _internal_state(); +} +inline void GetMachineStatusResponse::_internal_set_state(::viam::robot::v1::GetMachineStatusResponse_State value) { + + state_ = value; +} +inline void GetMachineStatusResponse::set_state(::viam::robot::v1::GetMachineStatusResponse_State value) { + _internal_set_state(value); + // @@protoc_insertion_point(field_set:viam.robot.v1.GetMachineStatusResponse.state) +} + // ------------------------------------------------------------------- // ResourceStatus // .viam.common.v1.ResourceName name = 1 [json_name = "name"]; +inline bool ResourceStatus::_internal_has_name() const { + return this != internal_default_instance() && name_ != nullptr; +} inline bool ResourceStatus::has_name() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.name_ != nullptr); - return value; + return _internal_has_name(); } inline const ::viam::common::v1::ResourceName& ResourceStatus::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::common::v1::ResourceName* p = _impl_.name_; - return p != nullptr ? *p : reinterpret_cast(::viam::common::v1::_ResourceName_default_instance_); + const ::viam::common::v1::ResourceName* p = name_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_ResourceName_default_instance_); } -inline const ::viam::common::v1::ResourceName& ResourceStatus::name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::ResourceName& ResourceStatus::name() const { // @@protoc_insertion_point(field_get:viam.robot.v1.ResourceStatus.name) return _internal_name(); } -inline void ResourceStatus::unsafe_arena_set_allocated_name(::viam::common::v1::ResourceName* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.name_); +inline void ResourceStatus::unsafe_arena_set_allocated_name( + ::viam::common::v1::ResourceName* name) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(name_); } - _impl_.name_ = reinterpret_cast<::viam::common::v1::ResourceName*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + name_ = name; + if (name) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.robot.v1.ResourceStatus.name) } inline ::viam::common::v1::ResourceName* ResourceStatus::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::ResourceName* released = _impl_.name_; - _impl_.name_ = nullptr; + + ::viam::common::v1::ResourceName* temp = name_; + name_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::common::v1::ResourceName* ResourceStatus::unsafe_arena_release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.robot.v1.ResourceStatus.name) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::ResourceName* temp = _impl_.name_; - _impl_.name_ = nullptr; + + ::viam::common::v1::ResourceName* temp = name_; + name_ = nullptr; return temp; } inline ::viam::common::v1::ResourceName* ResourceStatus::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.name_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArena()); - _impl_.name_ = reinterpret_cast<::viam::common::v1::ResourceName*>(p); + + if (name_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArenaForAllocation()); + name_ = p; } - return _impl_.name_; + return name_; } -inline ::viam::common::v1::ResourceName* ResourceStatus::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::ResourceName* ResourceStatus::mutable_name() { ::viam::common::v1::ResourceName* _msg = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.robot.v1.ResourceStatus.name) return _msg; } -inline void ResourceStatus::set_allocated_name(::viam::common::v1::ResourceName* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ResourceStatus::set_allocated_name(::viam::common::v1::ResourceName* name) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.name_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(name_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (name) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(name)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, name, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.name_ = reinterpret_cast<::viam::common::v1::ResourceName*>(value); + name_ = name; // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.ResourceStatus.name) } // .viam.robot.v1.ResourceStatus.State state = 2 [json_name = "state"]; inline void ResourceStatus::clear_state() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.state_ = 0; + state_ = 0; +} +inline ::viam::robot::v1::ResourceStatus_State ResourceStatus::_internal_state() const { + return static_cast< ::viam::robot::v1::ResourceStatus_State >(state_); } inline ::viam::robot::v1::ResourceStatus_State ResourceStatus::state() const { // @@protoc_insertion_point(field_get:viam.robot.v1.ResourceStatus.state) return _internal_state(); } +inline void ResourceStatus::_internal_set_state(::viam::robot::v1::ResourceStatus_State value) { + + state_ = value; +} inline void ResourceStatus::set_state(::viam::robot::v1::ResourceStatus_State value) { _internal_set_state(value); // @@protoc_insertion_point(field_set:viam.robot.v1.ResourceStatus.state) } -inline ::viam::robot::v1::ResourceStatus_State ResourceStatus::_internal_state() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::viam::robot::v1::ResourceStatus_State>(_impl_.state_); -} -inline void ResourceStatus::_internal_set_state(::viam::robot::v1::ResourceStatus_State value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.state_ = value; -} // .google.protobuf.Timestamp last_updated = 3 [json_name = "lastUpdated"]; +inline bool ResourceStatus::_internal_has_last_updated() const { + return this != internal_default_instance() && last_updated_ != nullptr; +} inline bool ResourceStatus::has_last_updated() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.last_updated_ != nullptr); - return value; + return _internal_has_last_updated(); } -inline const ::google::protobuf::Timestamp& ResourceStatus::_internal_last_updated() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Timestamp* p = _impl_.last_updated_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& ResourceStatus::_internal_last_updated() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = last_updated_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); } -inline const ::google::protobuf::Timestamp& ResourceStatus::last_updated() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& ResourceStatus::last_updated() const { // @@protoc_insertion_point(field_get:viam.robot.v1.ResourceStatus.last_updated) return _internal_last_updated(); } -inline void ResourceStatus::unsafe_arena_set_allocated_last_updated(::google::protobuf::Timestamp* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.last_updated_); +inline void ResourceStatus::unsafe_arena_set_allocated_last_updated( + ::PROTOBUF_NAMESPACE_ID::Timestamp* last_updated) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_updated_); } - _impl_.last_updated_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + last_updated_ = last_updated; + if (last_updated) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.robot.v1.ResourceStatus.last_updated) } -inline ::google::protobuf::Timestamp* ResourceStatus::release_last_updated() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Timestamp* released = _impl_.last_updated_; - _impl_.last_updated_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* ResourceStatus::release_last_updated() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = last_updated_; + last_updated_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Timestamp* ResourceStatus::unsafe_arena_release_last_updated() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* ResourceStatus::unsafe_arena_release_last_updated() { // @@protoc_insertion_point(field_release:viam.robot.v1.ResourceStatus.last_updated) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Timestamp* temp = _impl_.last_updated_; - _impl_.last_updated_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = last_updated_; + last_updated_ = nullptr; return temp; } -inline ::google::protobuf::Timestamp* ResourceStatus::_internal_mutable_last_updated() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.last_updated_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena()); - _impl_.last_updated_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* ResourceStatus::_internal_mutable_last_updated() { + + if (last_updated_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + last_updated_ = p; } - return _impl_.last_updated_; + return last_updated_; } -inline ::google::protobuf::Timestamp* ResourceStatus::mutable_last_updated() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Timestamp* _msg = _internal_mutable_last_updated(); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* ResourceStatus::mutable_last_updated() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_last_updated(); // @@protoc_insertion_point(field_mutable:viam.robot.v1.ResourceStatus.last_updated) return _msg; } -inline void ResourceStatus::set_allocated_last_updated(::google::protobuf::Timestamp* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ResourceStatus::set_allocated_last_updated(::PROTOBUF_NAMESPACE_ID::Timestamp* last_updated) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.last_updated_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_updated_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (last_updated) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_updated)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + last_updated = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, last_updated, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.last_updated_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); + last_updated_ = last_updated; // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.ResourceStatus.last_updated) } // string revision = 4 [json_name = "revision"]; inline void ResourceStatus::clear_revision() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.revision_.ClearToEmpty(); + revision_.ClearToEmpty(); } -inline const std::string& ResourceStatus::revision() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ResourceStatus::revision() const { // @@protoc_insertion_point(field_get:viam.robot.v1.ResourceStatus.revision) return _internal_revision(); } -template -inline PROTOBUF_ALWAYS_INLINE void ResourceStatus::set_revision(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.revision_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ResourceStatus::set_revision(ArgT0&& arg0, ArgT... args) { + + revision_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.robot.v1.ResourceStatus.revision) } -inline std::string* ResourceStatus::mutable_revision() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ResourceStatus::mutable_revision() { std::string* _s = _internal_mutable_revision(); // @@protoc_insertion_point(field_mutable:viam.robot.v1.ResourceStatus.revision) return _s; } inline const std::string& ResourceStatus::_internal_revision() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.revision_.Get(); + return revision_.Get(); } inline void ResourceStatus::_internal_set_revision(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.revision_.Set(value, GetArena()); + + revision_.Set(value, GetArenaForAllocation()); } inline std::string* ResourceStatus::_internal_mutable_revision() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.revision_.Mutable( GetArena()); + + return revision_.Mutable(GetArenaForAllocation()); } inline std::string* ResourceStatus::release_revision() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.robot.v1.ResourceStatus.revision) - return _impl_.revision_.Release(); -} -inline void ResourceStatus::set_allocated_revision(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.revision_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.revision_.IsDefault()) { - _impl_.revision_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return revision_.Release(); +} +inline void ResourceStatus::set_allocated_revision(std::string* revision) { + if (revision != nullptr) { + + } else { + + } + revision_.SetAllocated(revision, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (revision_.IsDefault()) { + revision_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.ResourceStatus.revision) } // string error = 5 [json_name = "error"]; inline void ResourceStatus::clear_error() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.error_.ClearToEmpty(); + error_.ClearToEmpty(); } -inline const std::string& ResourceStatus::error() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ResourceStatus::error() const { // @@protoc_insertion_point(field_get:viam.robot.v1.ResourceStatus.error) return _internal_error(); } -template -inline PROTOBUF_ALWAYS_INLINE void ResourceStatus::set_error(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.error_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ResourceStatus::set_error(ArgT0&& arg0, ArgT... args) { + + error_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.robot.v1.ResourceStatus.error) } -inline std::string* ResourceStatus::mutable_error() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ResourceStatus::mutable_error() { std::string* _s = _internal_mutable_error(); // @@protoc_insertion_point(field_mutable:viam.robot.v1.ResourceStatus.error) return _s; } inline const std::string& ResourceStatus::_internal_error() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.error_.Get(); + return error_.Get(); } inline void ResourceStatus::_internal_set_error(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.error_.Set(value, GetArena()); + + error_.Set(value, GetArenaForAllocation()); } inline std::string* ResourceStatus::_internal_mutable_error() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.error_.Mutable( GetArena()); + + return error_.Mutable(GetArenaForAllocation()); } inline std::string* ResourceStatus::release_error() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.robot.v1.ResourceStatus.error) - return _impl_.error_.Release(); -} -inline void ResourceStatus::set_allocated_error(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.error_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.error_.IsDefault()) { - _impl_.error_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return error_.Release(); +} +inline void ResourceStatus::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.robot.v1.ResourceStatus.error) } // optional .viam.robot.v1.GetCloudMetadataResponse cloud_metadata = 6 [json_name = "cloudMetadata"]; -inline bool ResourceStatus::has_cloud_metadata() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || _impl_.cloud_metadata_ != nullptr); +inline bool ResourceStatus::_internal_has_cloud_metadata() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || cloud_metadata_ != nullptr); return value; } +inline bool ResourceStatus::has_cloud_metadata() const { + return _internal_has_cloud_metadata(); +} inline void ResourceStatus::clear_cloud_metadata() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.cloud_metadata_ != nullptr) _impl_.cloud_metadata_->Clear(); - _impl_._has_bits_[0] &= ~0x00000004u; + if (cloud_metadata_ != nullptr) cloud_metadata_->Clear(); + _has_bits_[0] &= ~0x00000001u; } inline const ::viam::robot::v1::GetCloudMetadataResponse& ResourceStatus::_internal_cloud_metadata() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::robot::v1::GetCloudMetadataResponse* p = _impl_.cloud_metadata_; - return p != nullptr ? *p : reinterpret_cast(::viam::robot::v1::_GetCloudMetadataResponse_default_instance_); + const ::viam::robot::v1::GetCloudMetadataResponse* p = cloud_metadata_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::robot::v1::_GetCloudMetadataResponse_default_instance_); } -inline const ::viam::robot::v1::GetCloudMetadataResponse& ResourceStatus::cloud_metadata() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::robot::v1::GetCloudMetadataResponse& ResourceStatus::cloud_metadata() const { // @@protoc_insertion_point(field_get:viam.robot.v1.ResourceStatus.cloud_metadata) return _internal_cloud_metadata(); } -inline void ResourceStatus::unsafe_arena_set_allocated_cloud_metadata(::viam::robot::v1::GetCloudMetadataResponse* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.cloud_metadata_); +inline void ResourceStatus::unsafe_arena_set_allocated_cloud_metadata( + ::viam::robot::v1::GetCloudMetadataResponse* cloud_metadata) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(cloud_metadata_); } - _impl_.cloud_metadata_ = reinterpret_cast<::viam::robot::v1::GetCloudMetadataResponse*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000004u; + cloud_metadata_ = cloud_metadata; + if (cloud_metadata) { + _has_bits_[0] |= 0x00000001u; } else { - _impl_._has_bits_[0] &= ~0x00000004u; + _has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.robot.v1.ResourceStatus.cloud_metadata) } inline ::viam::robot::v1::GetCloudMetadataResponse* ResourceStatus::release_cloud_metadata() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000004u; - ::viam::robot::v1::GetCloudMetadataResponse* released = _impl_.cloud_metadata_; - _impl_.cloud_metadata_ = nullptr; + _has_bits_[0] &= ~0x00000001u; + ::viam::robot::v1::GetCloudMetadataResponse* temp = cloud_metadata_; + cloud_metadata_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::robot::v1::GetCloudMetadataResponse* ResourceStatus::unsafe_arena_release_cloud_metadata() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.robot.v1.ResourceStatus.cloud_metadata) - - _impl_._has_bits_[0] &= ~0x00000004u; - ::viam::robot::v1::GetCloudMetadataResponse* temp = _impl_.cloud_metadata_; - _impl_.cloud_metadata_ = nullptr; + _has_bits_[0] &= ~0x00000001u; + ::viam::robot::v1::GetCloudMetadataResponse* temp = cloud_metadata_; + cloud_metadata_ = nullptr; return temp; } inline ::viam::robot::v1::GetCloudMetadataResponse* ResourceStatus::_internal_mutable_cloud_metadata() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - if (_impl_.cloud_metadata_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::robot::v1::GetCloudMetadataResponse>(GetArena()); - _impl_.cloud_metadata_ = reinterpret_cast<::viam::robot::v1::GetCloudMetadataResponse*>(p); + _has_bits_[0] |= 0x00000001u; + if (cloud_metadata_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::robot::v1::GetCloudMetadataResponse>(GetArenaForAllocation()); + cloud_metadata_ = p; } - return _impl_.cloud_metadata_; + return cloud_metadata_; } -inline ::viam::robot::v1::GetCloudMetadataResponse* ResourceStatus::mutable_cloud_metadata() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::robot::v1::GetCloudMetadataResponse* ResourceStatus::mutable_cloud_metadata() { ::viam::robot::v1::GetCloudMetadataResponse* _msg = _internal_mutable_cloud_metadata(); // @@protoc_insertion_point(field_mutable:viam.robot.v1.ResourceStatus.cloud_metadata) return _msg; } -inline void ResourceStatus::set_allocated_cloud_metadata(::viam::robot::v1::GetCloudMetadataResponse* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ResourceStatus::set_allocated_cloud_metadata(::viam::robot::v1::GetCloudMetadataResponse* cloud_metadata) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::robot::v1::GetCloudMetadataResponse*>(_impl_.cloud_metadata_); + delete cloud_metadata_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::robot::v1::GetCloudMetadataResponse*>(value)->GetArena(); + if (cloud_metadata) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(cloud_metadata); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + cloud_metadata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, cloud_metadata, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000004u; + _has_bits_[0] |= 0x00000001u; } else { - _impl_._has_bits_[0] &= ~0x00000004u; + _has_bits_[0] &= ~0x00000001u; } - - _impl_.cloud_metadata_ = reinterpret_cast<::viam::robot::v1::GetCloudMetadataResponse*>(value); + cloud_metadata_ = cloud_metadata; // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.ResourceStatus.cloud_metadata) } @@ -14578,145 +13988,136 @@ inline void ResourceStatus::set_allocated_cloud_metadata(::viam::robot::v1::GetC // string revision = 1 [json_name = "revision"]; inline void ConfigStatus::clear_revision() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.revision_.ClearToEmpty(); + revision_.ClearToEmpty(); } -inline const std::string& ConfigStatus::revision() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ConfigStatus::revision() const { // @@protoc_insertion_point(field_get:viam.robot.v1.ConfigStatus.revision) return _internal_revision(); } -template -inline PROTOBUF_ALWAYS_INLINE void ConfigStatus::set_revision(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.revision_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ConfigStatus::set_revision(ArgT0&& arg0, ArgT... args) { + + revision_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.robot.v1.ConfigStatus.revision) } -inline std::string* ConfigStatus::mutable_revision() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ConfigStatus::mutable_revision() { std::string* _s = _internal_mutable_revision(); // @@protoc_insertion_point(field_mutable:viam.robot.v1.ConfigStatus.revision) return _s; } inline const std::string& ConfigStatus::_internal_revision() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.revision_.Get(); + return revision_.Get(); } inline void ConfigStatus::_internal_set_revision(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.revision_.Set(value, GetArena()); + + revision_.Set(value, GetArenaForAllocation()); } inline std::string* ConfigStatus::_internal_mutable_revision() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.revision_.Mutable( GetArena()); + + return revision_.Mutable(GetArenaForAllocation()); } inline std::string* ConfigStatus::release_revision() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.robot.v1.ConfigStatus.revision) - return _impl_.revision_.Release(); -} -inline void ConfigStatus::set_allocated_revision(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.revision_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.revision_.IsDefault()) { - _impl_.revision_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return revision_.Release(); +} +inline void ConfigStatus::set_allocated_revision(std::string* revision) { + if (revision != nullptr) { + + } else { + + } + revision_.SetAllocated(revision, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (revision_.IsDefault()) { + revision_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.ConfigStatus.revision) } // .google.protobuf.Timestamp last_updated = 2 [json_name = "lastUpdated"]; +inline bool ConfigStatus::_internal_has_last_updated() const { + return this != internal_default_instance() && last_updated_ != nullptr; +} inline bool ConfigStatus::has_last_updated() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.last_updated_ != nullptr); - return value; + return _internal_has_last_updated(); } -inline const ::google::protobuf::Timestamp& ConfigStatus::_internal_last_updated() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Timestamp* p = _impl_.last_updated_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& ConfigStatus::_internal_last_updated() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = last_updated_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); } -inline const ::google::protobuf::Timestamp& ConfigStatus::last_updated() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& ConfigStatus::last_updated() const { // @@protoc_insertion_point(field_get:viam.robot.v1.ConfigStatus.last_updated) return _internal_last_updated(); } -inline void ConfigStatus::unsafe_arena_set_allocated_last_updated(::google::protobuf::Timestamp* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.last_updated_); +inline void ConfigStatus::unsafe_arena_set_allocated_last_updated( + ::PROTOBUF_NAMESPACE_ID::Timestamp* last_updated) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_updated_); } - _impl_.last_updated_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + last_updated_ = last_updated; + if (last_updated) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.robot.v1.ConfigStatus.last_updated) } -inline ::google::protobuf::Timestamp* ConfigStatus::release_last_updated() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Timestamp* released = _impl_.last_updated_; - _impl_.last_updated_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* ConfigStatus::release_last_updated() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = last_updated_; + last_updated_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Timestamp* ConfigStatus::unsafe_arena_release_last_updated() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* ConfigStatus::unsafe_arena_release_last_updated() { // @@protoc_insertion_point(field_release:viam.robot.v1.ConfigStatus.last_updated) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Timestamp* temp = _impl_.last_updated_; - _impl_.last_updated_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = last_updated_; + last_updated_ = nullptr; return temp; } -inline ::google::protobuf::Timestamp* ConfigStatus::_internal_mutable_last_updated() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.last_updated_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena()); - _impl_.last_updated_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* ConfigStatus::_internal_mutable_last_updated() { + + if (last_updated_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + last_updated_ = p; } - return _impl_.last_updated_; + return last_updated_; } -inline ::google::protobuf::Timestamp* ConfigStatus::mutable_last_updated() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Timestamp* _msg = _internal_mutable_last_updated(); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* ConfigStatus::mutable_last_updated() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_last_updated(); // @@protoc_insertion_point(field_mutable:viam.robot.v1.ConfigStatus.last_updated) return _msg; } -inline void ConfigStatus::set_allocated_last_updated(::google::protobuf::Timestamp* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ConfigStatus::set_allocated_last_updated(::PROTOBUF_NAMESPACE_ID::Timestamp* last_updated) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.last_updated_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_updated_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (last_updated) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_updated)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + last_updated = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, last_updated, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.last_updated_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); + last_updated_ = last_updated; // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.ConfigStatus.last_updated) } @@ -14730,194 +14131,299 @@ inline void ConfigStatus::set_allocated_last_updated(::google::protobuf::Timesta // string platform = 1 [json_name = "platform"]; inline void GetVersionResponse::clear_platform() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.platform_.ClearToEmpty(); + platform_.ClearToEmpty(); } -inline const std::string& GetVersionResponse::platform() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetVersionResponse::platform() const { // @@protoc_insertion_point(field_get:viam.robot.v1.GetVersionResponse.platform) return _internal_platform(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetVersionResponse::set_platform(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.platform_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetVersionResponse::set_platform(ArgT0&& arg0, ArgT... args) { + + platform_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.robot.v1.GetVersionResponse.platform) } -inline std::string* GetVersionResponse::mutable_platform() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetVersionResponse::mutable_platform() { std::string* _s = _internal_mutable_platform(); // @@protoc_insertion_point(field_mutable:viam.robot.v1.GetVersionResponse.platform) return _s; } inline const std::string& GetVersionResponse::_internal_platform() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.platform_.Get(); + return platform_.Get(); } inline void GetVersionResponse::_internal_set_platform(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.platform_.Set(value, GetArena()); + + platform_.Set(value, GetArenaForAllocation()); } inline std::string* GetVersionResponse::_internal_mutable_platform() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.platform_.Mutable( GetArena()); + + return platform_.Mutable(GetArenaForAllocation()); } inline std::string* GetVersionResponse::release_platform() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.robot.v1.GetVersionResponse.platform) - return _impl_.platform_.Release(); -} -inline void GetVersionResponse::set_allocated_platform(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.platform_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.platform_.IsDefault()) { - _impl_.platform_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return platform_.Release(); +} +inline void GetVersionResponse::set_allocated_platform(std::string* platform) { + if (platform != nullptr) { + + } else { + + } + platform_.SetAllocated(platform, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (platform_.IsDefault()) { + platform_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.GetVersionResponse.platform) } // string version = 2 [json_name = "version"]; inline void GetVersionResponse::clear_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.version_.ClearToEmpty(); + version_.ClearToEmpty(); } -inline const std::string& GetVersionResponse::version() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetVersionResponse::version() const { // @@protoc_insertion_point(field_get:viam.robot.v1.GetVersionResponse.version) return _internal_version(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetVersionResponse::set_version(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.version_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetVersionResponse::set_version(ArgT0&& arg0, ArgT... args) { + + version_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.robot.v1.GetVersionResponse.version) } -inline std::string* GetVersionResponse::mutable_version() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetVersionResponse::mutable_version() { std::string* _s = _internal_mutable_version(); // @@protoc_insertion_point(field_mutable:viam.robot.v1.GetVersionResponse.version) return _s; } inline const std::string& GetVersionResponse::_internal_version() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.version_.Get(); + return version_.Get(); } inline void GetVersionResponse::_internal_set_version(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.version_.Set(value, GetArena()); + + version_.Set(value, GetArenaForAllocation()); } inline std::string* GetVersionResponse::_internal_mutable_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.version_.Mutable( GetArena()); + + return version_.Mutable(GetArenaForAllocation()); } inline std::string* GetVersionResponse::release_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.robot.v1.GetVersionResponse.version) - return _impl_.version_.Release(); -} -inline void GetVersionResponse::set_allocated_version(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.version_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.version_.IsDefault()) { - _impl_.version_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return version_.Release(); +} +inline void GetVersionResponse::set_allocated_version(std::string* version) { + if (version != nullptr) { + + } else { + + } + version_.SetAllocated(version, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (version_.IsDefault()) { + version_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.GetVersionResponse.version) } // string api_version = 3 [json_name = "apiVersion"]; inline void GetVersionResponse::clear_api_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.api_version_.ClearToEmpty(); + api_version_.ClearToEmpty(); } -inline const std::string& GetVersionResponse::api_version() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetVersionResponse::api_version() const { // @@protoc_insertion_point(field_get:viam.robot.v1.GetVersionResponse.api_version) return _internal_api_version(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetVersionResponse::set_api_version(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.api_version_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetVersionResponse::set_api_version(ArgT0&& arg0, ArgT... args) { + + api_version_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.robot.v1.GetVersionResponse.api_version) } -inline std::string* GetVersionResponse::mutable_api_version() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetVersionResponse::mutable_api_version() { std::string* _s = _internal_mutable_api_version(); // @@protoc_insertion_point(field_mutable:viam.robot.v1.GetVersionResponse.api_version) return _s; } inline const std::string& GetVersionResponse::_internal_api_version() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.api_version_.Get(); + return api_version_.Get(); } inline void GetVersionResponse::_internal_set_api_version(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.api_version_.Set(value, GetArena()); + + api_version_.Set(value, GetArenaForAllocation()); } inline std::string* GetVersionResponse::_internal_mutable_api_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.api_version_.Mutable( GetArena()); + + return api_version_.Mutable(GetArenaForAllocation()); } inline std::string* GetVersionResponse::release_api_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.robot.v1.GetVersionResponse.api_version) - return _impl_.api_version_.Release(); -} -inline void GetVersionResponse::set_allocated_api_version(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.api_version_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.api_version_.IsDefault()) { - _impl_.api_version_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return api_version_.Release(); +} +inline void GetVersionResponse::set_allocated_api_version(std::string* api_version) { + if (api_version != nullptr) { + + } else { + + } + api_version_.SetAllocated(api_version, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (api_version_.IsDefault()) { + api_version_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.GetVersionResponse.api_version) } #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) + } // namespace v1 } // namespace robot } // namespace viam +PROTOBUF_NAMESPACE_OPEN -namespace google { -namespace protobuf { - +template <> struct is_proto_enum< ::viam::robot::v1::GetMachineStatusResponse_State> : ::std::true_type {}; template <> -struct is_proto_enum<::viam::robot::v1::ResourceStatus_State> : std::true_type {}; +inline const EnumDescriptor* GetEnumDescriptor< ::viam::robot::v1::GetMachineStatusResponse_State>() { + return ::viam::robot::v1::GetMachineStatusResponse_State_descriptor(); +} +template <> struct is_proto_enum< ::viam::robot::v1::ResourceStatus_State> : ::std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor<::viam::robot::v1::ResourceStatus_State>() { +inline const EnumDescriptor* GetEnumDescriptor< ::viam::robot::v1::ResourceStatus_State>() { return ::viam::robot::v1::ResourceStatus_State_descriptor(); } +template <> struct is_proto_enum< ::viam::robot::v1::PeerConnectionType> : ::std::true_type {}; template <> -struct is_proto_enum<::viam::robot::v1::PeerConnectionType> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::viam::robot::v1::PeerConnectionType>() { +inline const EnumDescriptor* GetEnumDescriptor< ::viam::robot::v1::PeerConnectionType>() { return ::viam::robot::v1::PeerConnectionType_descriptor(); } -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_robot_2fv1_2frobot_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_robot_2fv1_2frobot_2eproto diff --git a/src/viam/api/service/datamanager/v1/data_manager.grpc.pb.cc b/src/viam/api/service/datamanager/v1/data_manager.grpc.pb.cc index 646af34e4..becc9370b 100644 --- a/src/viam/api/service/datamanager/v1/data_manager.grpc.pb.cc +++ b/src/viam/api/service/datamanager/v1/data_manager.grpc.pb.cc @@ -6,19 +6,19 @@ #include "service/datamanager/v1/data_manager.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace service { namespace datamanager { @@ -31,68 +31,78 @@ static const char* DataManagerService_method_names[] = { std::unique_ptr< DataManagerService::Stub> DataManagerService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { (void)options; - std::unique_ptr< DataManagerService::Stub> stub(new DataManagerService::Stub(channel, options)); + std::unique_ptr< DataManagerService::Stub> stub(new DataManagerService::Stub(channel)); return stub; } -DataManagerService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) - : channel_(channel), rpcmethod_Sync_(DataManagerService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_DoCommand_(DataManagerService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) +DataManagerService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_Sync_(DataManagerService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DoCommand_(DataManagerService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status DataManagerService::Stub::Sync(::grpc::ClientContext* context, const ::viam::service::datamanager::v1::SyncRequest& request, ::viam::service::datamanager::v1::SyncResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::service::datamanager::v1::SyncRequest, ::viam::service::datamanager::v1::SyncResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Sync_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_Sync_, context, request, response); } -void DataManagerService::Stub::async::Sync(::grpc::ClientContext* context, const ::viam::service::datamanager::v1::SyncRequest* request, ::viam::service::datamanager::v1::SyncResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::service::datamanager::v1::SyncRequest, ::viam::service::datamanager::v1::SyncResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Sync_, context, request, response, std::move(f)); +void DataManagerService::Stub::experimental_async::Sync(::grpc::ClientContext* context, const ::viam::service::datamanager::v1::SyncRequest* request, ::viam::service::datamanager::v1::SyncResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Sync_, context, request, response, std::move(f)); } -void DataManagerService::Stub::async::Sync(::grpc::ClientContext* context, const ::viam::service::datamanager::v1::SyncRequest* request, ::viam::service::datamanager::v1::SyncResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Sync_, context, request, response, reactor); +void DataManagerService::Stub::experimental_async::Sync(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::datamanager::v1::SyncResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Sync_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::service::datamanager::v1::SyncResponse>* DataManagerService::Stub::PrepareAsyncSyncRaw(::grpc::ClientContext* context, const ::viam::service::datamanager::v1::SyncRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::datamanager::v1::SyncResponse, ::viam::service::datamanager::v1::SyncRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Sync_, context, request); +void DataManagerService::Stub::experimental_async::Sync(::grpc::ClientContext* context, const ::viam::service::datamanager::v1::SyncRequest* request, ::viam::service::datamanager::v1::SyncResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Sync_, context, request, response, reactor); +} + +void DataManagerService::Stub::experimental_async::Sync(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::datamanager::v1::SyncResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Sync_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::service::datamanager::v1::SyncResponse>* DataManagerService::Stub::AsyncSyncRaw(::grpc::ClientContext* context, const ::viam::service::datamanager::v1::SyncRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncSyncRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::datamanager::v1::SyncResponse>::Create(channel_.get(), cq, rpcmethod_Sync_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::datamanager::v1::SyncResponse>* DataManagerService::Stub::PrepareAsyncSyncRaw(::grpc::ClientContext* context, const ::viam::service::datamanager::v1::SyncRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::datamanager::v1::SyncResponse>::Create(channel_.get(), cq, rpcmethod_Sync_, context, request, false); } ::grpc::Status DataManagerService::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); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DoCommand_, context, request, response); } -void DataManagerService::Stub::async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); +void DataManagerService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); } -void DataManagerService::Stub::async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); +void DataManagerService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* DataManagerService::Stub::PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::common::v1::DoCommandResponse, ::viam::common::v1::DoCommandRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DoCommand_, context, request); +void DataManagerService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); +} + +void DataManagerService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* DataManagerService::Stub::AsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncDoCommandRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::DoCommandResponse>::Create(channel_.get(), cq, rpcmethod_DoCommand_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* DataManagerService::Stub::PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::DoCommandResponse>::Create(channel_.get(), cq, rpcmethod_DoCommand_, context, request, false); } DataManagerService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( DataManagerService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< DataManagerService::Service, ::viam::service::datamanager::v1::SyncRequest, ::viam::service::datamanager::v1::SyncResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< DataManagerService::Service, ::viam::service::datamanager::v1::SyncRequest, ::viam::service::datamanager::v1::SyncResponse>( [](DataManagerService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::service::datamanager::v1::SyncRequest* req, ::viam::service::datamanager::v1::SyncResponse* resp) { return service->Sync(ctx, req, resp); @@ -100,9 +110,9 @@ DataManagerService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( DataManagerService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< DataManagerService::Service, ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< DataManagerService::Service, ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( [](DataManagerService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::common::v1::DoCommandRequest* req, ::viam::common::v1::DoCommandResponse* resp) { return service->DoCommand(ctx, req, resp); diff --git a/src/viam/api/service/datamanager/v1/data_manager.grpc.pb.h b/src/viam/api/service/datamanager/v1/data_manager.grpc.pb.h index c0a8296d6..e371fb424 100644 --- a/src/viam/api/service/datamanager/v1/data_manager.grpc.pb.h +++ b/src/viam/api/service/datamanager/v1/data_manager.grpc.pb.h @@ -7,23 +7,24 @@ #include "service/datamanager/v1/data_manager.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace service { @@ -55,20 +56,44 @@ class DataManagerService final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::DoCommandResponse>> PrepareAsyncDoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::DoCommandResponse>>(PrepareAsyncDoCommandRaw(context, request, cq)); } - class async_interface { + class experimental_async_interface { public: - virtual ~async_interface() {} + virtual ~experimental_async_interface() {} // Sync performs a sync of the non-synced files for the specified service name, virtual void Sync(::grpc::ClientContext* context, const ::viam::service::datamanager::v1::SyncRequest* request, ::viam::service::datamanager::v1::SyncResponse* response, std::function) = 0; + virtual void Sync(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::datamanager::v1::SyncResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void Sync(::grpc::ClientContext* context, const ::viam::service::datamanager::v1::SyncRequest* request, ::viam::service::datamanager::v1::SyncResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void Sync(::grpc::ClientContext* context, const ::viam::service::datamanager::v1::SyncRequest* request, ::viam::service::datamanager::v1::SyncResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void Sync(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::datamanager::v1::SyncResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void Sync(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::datamanager::v1::SyncResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // 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 ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif }; - typedef class async_interface experimental_async_interface; - virtual class async_interface* async() { return nullptr; } - class async_interface* experimental_async() { return async(); } - private: + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef class experimental_async_interface async_interface; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + async_interface* async() { return experimental_async(); } + #endif + virtual class experimental_async_interface* experimental_async() { return nullptr; } + private: virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::datamanager::v1::SyncResponse>* AsyncSyncRaw(::grpc::ClientContext* context, const ::viam::service::datamanager::v1::SyncRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::datamanager::v1::SyncResponse>* PrepareAsyncSyncRaw(::grpc::ClientContext* context, const ::viam::service::datamanager::v1::SyncRequest& 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; @@ -76,7 +101,7 @@ class DataManagerService final { }; class Stub final : public StubInterface { public: - Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); ::grpc::Status Sync(::grpc::ClientContext* context, const ::viam::service::datamanager::v1::SyncRequest& request, ::viam::service::datamanager::v1::SyncResponse* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::datamanager::v1::SyncResponse>> AsyncSync(::grpc::ClientContext* context, const ::viam::service::datamanager::v1::SyncRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::datamanager::v1::SyncResponse>>(AsyncSyncRaw(context, request, cq)); @@ -91,24 +116,44 @@ class DataManagerService final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>> PrepareAsyncDoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>>(PrepareAsyncDoCommandRaw(context, request, cq)); } - class async final : - public StubInterface::async_interface { + class experimental_async final : + public StubInterface::experimental_async_interface { public: void Sync(::grpc::ClientContext* context, const ::viam::service::datamanager::v1::SyncRequest* request, ::viam::service::datamanager::v1::SyncResponse* response, std::function) override; + void Sync(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::datamanager::v1::SyncResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void Sync(::grpc::ClientContext* context, const ::viam::service::datamanager::v1::SyncRequest* request, ::viam::service::datamanager::v1::SyncResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void Sync(::grpc::ClientContext* context, const ::viam::service::datamanager::v1::SyncRequest* request, ::viam::service::datamanager::v1::SyncResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void Sync(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::datamanager::v1::SyncResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void Sync(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::datamanager::v1::SyncResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif 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 ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif private: friend class Stub; - explicit async(Stub* stub): stub_(stub) { } + explicit experimental_async(Stub* stub): stub_(stub) { } Stub* stub() { return stub_; } Stub* stub_; }; - class async* async() override { return &async_stub_; } + class experimental_async_interface* experimental_async() override { return &async_stub_; } private: std::shared_ptr< ::grpc::ChannelInterface> channel_; - class async async_stub_{this}; + class experimental_async async_stub_{this}; ::grpc::ClientAsyncResponseReader< ::viam::service::datamanager::v1::SyncResponse>* AsyncSyncRaw(::grpc::ClientContext* context, const ::viam::service::datamanager::v1::SyncRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::service::datamanager::v1::SyncResponse>* PrepareAsyncSyncRaw(::grpc::ClientContext* context, const ::viam::service::datamanager::v1::SyncRequest& 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; @@ -169,22 +214,36 @@ class DataManagerService final { }; typedef WithAsyncMethod_Sync > AsyncService; template - class WithCallbackMethod_Sync : public BaseClass { + class ExperimentalWithCallbackMethod_Sync : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_Sync() { - ::grpc::Service::MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::viam::service::datamanager::v1::SyncRequest, ::viam::service::datamanager::v1::SyncResponse>( + ExperimentalWithCallbackMethod_Sync() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::datamanager::v1::SyncRequest, ::viam::service::datamanager::v1::SyncResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::service::datamanager::v1::SyncRequest* request, ::viam::service::datamanager::v1::SyncResponse* response) { return this->Sync(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::service::datamanager::v1::SyncRequest* request, ::viam::service::datamanager::v1::SyncResponse* response) { return this->Sync(context, request, response); }));} void SetMessageAllocatorFor_Sync( - ::grpc::MessageAllocator< ::viam::service::datamanager::v1::SyncRequest, ::viam::service::datamanager::v1::SyncResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::service::datamanager::v1::SyncRequest, ::viam::service::datamanager::v1::SyncResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::datamanager::v1::SyncRequest, ::viam::service::datamanager::v1::SyncResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(0); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::datamanager::v1::SyncRequest, ::viam::service::datamanager::v1::SyncResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_Sync() override { + ~ExperimentalWithCallbackMethod_Sync() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -192,26 +251,46 @@ class DataManagerService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* Sync( - ::grpc::CallbackServerContext* /*context*/, const ::viam::service::datamanager::v1::SyncRequest* /*request*/, ::viam::service::datamanager::v1::SyncResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::datamanager::v1::SyncRequest* /*request*/, ::viam::service::datamanager::v1::SyncResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* Sync( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::service::datamanager::v1::SyncRequest* /*request*/, ::viam::service::datamanager::v1::SyncResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_DoCommand : public BaseClass { + class ExperimentalWithCallbackMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_DoCommand() { - ::grpc::Service::MarkMethodCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( + ExperimentalWithCallbackMethod_DoCommand() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(1, + new ::grpc_impl::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); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + 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::experimental::MessageAllocator< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(1); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_DoCommand() override { + ~ExperimentalWithCallbackMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -219,11 +298,20 @@ class DataManagerService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DoCommand( - ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DoCommand( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) + #endif + { return nullptr; } }; - typedef WithCallbackMethod_Sync > CallbackService; - typedef CallbackService ExperimentalCallbackService; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef ExperimentalWithCallbackMethod_Sync > CallbackService; + #endif + + typedef ExperimentalWithCallbackMethod_Sync > ExperimentalCallbackService; template class WithGenericMethod_Sync : public BaseClass { private: @@ -299,17 +387,27 @@ class DataManagerService final { } }; template - class WithRawCallbackMethod_Sync : public BaseClass { + class ExperimentalWithRawCallbackMethod_Sync : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_Sync() { - ::grpc::Service::MarkMethodRawCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_Sync() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Sync(context, request, response); })); - } - ~WithRawCallbackMethod_Sync() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Sync(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_Sync() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -317,21 +415,37 @@ class DataManagerService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* Sync( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* Sync( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_DoCommand : public BaseClass { + class ExperimentalWithRawCallbackMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_DoCommand() { - ::grpc::Service::MarkMethodRawCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_DoCommand() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DoCommand(context, request, response); })); - } - ~WithRawCallbackMethod_DoCommand() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DoCommand(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -339,8 +453,14 @@ class DataManagerService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DoCommand( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DoCommand( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template class WithStreamedUnaryMethod_Sync : public BaseClass { @@ -351,8 +471,8 @@ class DataManagerService final { ::grpc::Service::MarkMethodStreamed(0, new ::grpc::internal::StreamedUnaryHandler< ::viam::service::datamanager::v1::SyncRequest, ::viam::service::datamanager::v1::SyncResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::service::datamanager::v1::SyncRequest, ::viam::service::datamanager::v1::SyncResponse>* streamer) { return this->StreamedSync(context, streamer); @@ -378,8 +498,8 @@ class DataManagerService final { ::grpc::Service::MarkMethodStreamed(1, new ::grpc::internal::StreamedUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* streamer) { return this->StreamedDoCommand(context, streamer); diff --git a/src/viam/api/service/datamanager/v1/data_manager.pb.cc b/src/viam/api/service/datamanager/v1/data_manager.pb.cc index 106b0781e..91b62811b 100644 --- a/src/viam/api/service/datamanager/v1/data_manager.pb.cc +++ b/src/viam/api/service/datamanager/v1/data_manager.pb.cc @@ -4,390 +4,340 @@ #include "service/datamanager/v1/data_manager.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace viam { namespace service { namespace datamanager { namespace v1 { - template -PROTOBUF_CONSTEXPR SyncResponse::SyncResponse(::_pbi::ConstantInitialized) {} -struct SyncResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SyncResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SyncResponseDefaultTypeInternal() {} - union { - SyncResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SyncResponseDefaultTypeInternal _SyncResponse_default_instance_; - -inline constexpr SyncRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR SyncRequest::SyncRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_CONSTEXPR SyncRequest::SyncRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} struct SyncRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SyncRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SyncRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~SyncRequestDefaultTypeInternal() {} union { SyncRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SyncRequestDefaultTypeInternal _SyncRequest_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SyncRequestDefaultTypeInternal _SyncRequest_default_instance_; +PROTOBUF_CONSTEXPR SyncResponse::SyncResponse( + ::_pbi::ConstantInitialized){} +struct SyncResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR SyncResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SyncResponseDefaultTypeInternal() {} + union { + SyncResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SyncResponseDefaultTypeInternal _SyncResponse_default_instance_; } // namespace v1 } // namespace datamanager } // namespace service } // namespace viam static ::_pb::Metadata file_level_metadata_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto[2]; -static constexpr const ::_pb::EnumDescriptor** - file_level_enum_descriptors_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto = nullptr; -const ::uint32_t TableStruct_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::viam::service::datamanager::v1::SyncRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::service::datamanager::v1::SyncRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::datamanager::v1::SyncRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::service::datamanager::v1::SyncRequest, _impl_.extra_), - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::service::datamanager::v1::SyncResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto = nullptr; + +const uint32_t TableStruct_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::datamanager::v1::SyncRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::datamanager::v1::SyncRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::service::datamanager::v1::SyncRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::datamanager::v1::SyncResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ }; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, 10, -1, sizeof(::viam::service::datamanager::v1::SyncRequest)}, - {12, -1, -1, sizeof(::viam::service::datamanager::v1::SyncResponse)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::service::datamanager::v1::SyncRequest)}, + { 8, -1, -1, sizeof(::viam::service::datamanager::v1::SyncResponse)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::viam::service::datamanager::v1::_SyncRequest_default_instance_._instance, - &::viam::service::datamanager::v1::_SyncResponse_default_instance_._instance, -}; -const char descriptor_table_protodef_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n)service/datamanager/v1/data_manager.pr" - "oto\022\033viam.service.datamanager.v1\032\026common" - "/v1/common.proto\032\034google/api/annotations" - ".proto\032\034google/protobuf/struct.proto\"P\n\013" - "SyncRequest\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005extra" - "\030c \001(\0132\027.google.protobuf.StructR\005extra\"\016" - "\n\014SyncResponse2\273\002\n\022DataManagerService\022\225\001" - "\n\004Sync\022(.viam.service.datamanager.v1.Syn" - "cRequest\032).viam.service.datamanager.v1.S" - "yncResponse\"8\202\323\344\223\0022\"0/viam/api/v1/servic" - "e/datamanager/{name}/datasync\022\214\001\n\tDoComm" - "and\022 .viam.common.v1.DoCommandRequest\032!." - "viam.common.v1.DoCommandResponse\":\202\323\344\223\0024" - "\"2/viam/api/v1/service/datamanager/{name" - "}/do_commandB\352\001\n\037com.viam.service.datama" - "nager.v1B\020DataManagerProtoP\001Z&go.viam.co" - "m/api/service/datamanager/v1\242\002\003VSD\252\002\033Via" - "m.Service.Datamanager.V1\312\002\033Viam\\Service\\" - "Datamanager\\V1\342\002\'Viam\\Service\\Datamanage" - "r\\V1\\GPBMetadata\352\002\036Viam::Service::Datama" - "nager::V1b\006proto3" + &::viam::service::datamanager::v1::_SyncRequest_default_instance_._instance, + &::viam::service::datamanager::v1::_SyncResponse_default_instance_._instance, }; -static const ::_pbi::DescriptorTable* const descriptor_table_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto_deps[3] = - { - &::descriptor_table_common_2fv1_2fcommon_2eproto, - &::descriptor_table_google_2fapi_2fannotations_2eproto, - &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, + +const char descriptor_table_protodef_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n)service/datamanager/v1/data_manager.pr" + "oto\022\033viam.service.datamanager.v1\032\026common" + "/v1/common.proto\032\034google/api/annotations" + ".proto\032\034google/protobuf/struct.proto\"P\n\013" + "SyncRequest\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005extra" + "\030c \001(\0132\027.google.protobuf.StructR\005extra\"\016" + "\n\014SyncResponse2\273\002\n\022DataManagerService\022\225\001" + "\n\004Sync\022(.viam.service.datamanager.v1.Syn" + "cRequest\032).viam.service.datamanager.v1.S" + "yncResponse\"8\202\323\344\223\0022\"0/viam/api/v1/servic" + "e/datamanager/{name}/datasync\022\214\001\n\tDoComm" + "and\022 .viam.common.v1.DoCommandRequest\032!." + "viam.common.v1.DoCommandResponse\":\202\323\344\223\0024" + "\"2/viam/api/v1/service/datamanager/{name" + "}/do_commandBI\n\037com.viam.service.dataman" + "ager.v1Z&go.viam.com/api/service/dataman" + "ager/v1b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto_deps[3] = { + &::descriptor_table_common_2fv1_2fcommon_2eproto, + &::descriptor_table_google_2fapi_2fannotations_2eproto, + &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, }; -static ::absl::once_flag descriptor_table_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto_once; +static ::_pbi::once_flag descriptor_table_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto = { - false, - false, - 817, - descriptor_table_protodef_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto, + false, false, 655, descriptor_table_protodef_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto, "service/datamanager/v1/data_manager.proto", - &descriptor_table_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto_once, - descriptor_table_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto_deps, - 3, - 2, - schemas, - file_default_instances, - TableStruct_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto::offsets, - file_level_metadata_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto, - file_level_enum_descriptors_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto, + &descriptor_table_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto_once, descriptor_table_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto_deps, 3, 2, + schemas, file_default_instances, TableStruct_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto::offsets, + file_level_metadata_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto, file_level_enum_descriptors_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto, file_level_service_descriptors_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto_getter() { return &descriptor_table_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto(&descriptor_table_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto(&descriptor_table_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto); namespace viam { namespace service { namespace datamanager { namespace v1 { + // =================================================================== class SyncRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SyncRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const SyncRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const SyncRequest* msg); }; -const ::google::protobuf::Struct& SyncRequest::_Internal::extra(const SyncRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +SyncRequest::_Internal::extra(const SyncRequest* msg) { + return *msg->extra_; } void SyncRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -SyncRequest::SyncRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +SyncRequest::SyncRequest(::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.datamanager.v1.SyncRequest) } -inline PROTOBUF_NDEBUG_INLINE SyncRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -SyncRequest::SyncRequest( - ::google::protobuf::Arena* arena, - const SyncRequest& from) - : ::google::protobuf::Message(arena) { - SyncRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +SyncRequest::SyncRequest(const SyncRequest& 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.service.datamanager.v1.SyncRequest) } -inline PROTOBUF_NDEBUG_INLINE SyncRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} - -inline void SyncRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; + +inline void SyncRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + SyncRequest::~SyncRequest() { // @@protoc_insertion_point(destructor:viam.service.datamanager.v1.SyncRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void SyncRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void SyncRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void SyncRequest::Clear() { +void SyncRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.datamanager.v1.SyncRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* SyncRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); +const char* SyncRequest::_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.service.datamanager.v1.SyncRequest.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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 2, 1, 52, 7> SyncRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(SyncRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_SyncRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(SyncRequest, _impl_.name_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(SyncRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 1, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(SyncRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(SyncRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\47\4\0\0\0\0\0\0" - "viam.service.datamanager.v1.SyncRequest" - "name" - }}, -}; - -::uint8_t* SyncRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* SyncRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.datamanager.v1.SyncRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.datamanager.v1.SyncRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.datamanager.v1.SyncRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.datamanager.v1.SyncRequest) return target; } -::size_t SyncRequest::ByteSizeLong() const { +size_t SyncRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.datamanager.v1.SyncRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData SyncRequest::_class_data_ = { - SyncRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SyncRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + SyncRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* SyncRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SyncRequest::GetClassData() const { return &_class_data_; } + +void SyncRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void SyncRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.datamanager.v1.SyncRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void SyncRequest::MergeFrom(const SyncRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.datamanager.v1.SyncRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SyncRequest::CopyFrom(const SyncRequest& from) { @@ -397,47 +347,42 @@ void SyncRequest::CopyFrom(const SyncRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool SyncRequest::IsInitialized() const { +bool SyncRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* SyncRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void SyncRequest::InternalSwap(SyncRequest* PROTOBUF_RESTRICT other) { +void SyncRequest::InternalSwap(SyncRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.extra_, other->_impl_.extra_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(extra_, other->extra_); } -::google::protobuf::Metadata SyncRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata SyncRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto_getter, &descriptor_table_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto_once, file_level_metadata_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto[0]); } + // =================================================================== class SyncResponse::_Internal { public: }; -SyncResponse::SyncResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +SyncResponse::SyncResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.service.datamanager.v1.SyncResponse) } -SyncResponse::SyncResponse( - ::google::protobuf::Arena* arena, - const SyncResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - SyncResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +SyncResponse::SyncResponse(const SyncResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.service.datamanager.v1.SyncResponse) } @@ -445,23 +390,39 @@ SyncResponse::SyncResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SyncResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SyncResponse::GetClassData() const { return &_class_data_; } + -::google::protobuf::Metadata SyncResponse::GetMetadata() const { + + +::PROTOBUF_NAMESPACE_ID::Metadata SyncResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto_getter, &descriptor_table_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto_once, file_level_metadata_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto[1]); } + // @@protoc_insertion_point(namespace_scope) } // namespace v1 } // namespace datamanager } // namespace service } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::service::datamanager::v1::SyncRequest* +Arena::CreateMaybeMessage< ::viam::service::datamanager::v1::SyncRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::datamanager::v1::SyncRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::datamanager::v1::SyncResponse* +Arena::CreateMaybeMessage< ::viam::service::datamanager::v1::SyncResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::datamanager::v1::SyncResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/service/datamanager/v1/data_manager.pb.h b/src/viam/api/service/datamanager/v1/data_manager.pb.h index e4f7a0dc0..70b339c88 100644 --- a/src/viam/api/service/datamanager/v1/data_manager.pb.h +++ b/src/viam/api/service/datamanager/v1/data_manager.pb.h @@ -1,64 +1,53 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: service/datamanager/v1/data_manager.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_bases.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/unknown_field_set.h" + +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include #include "common/v1/common.pb.h" #include "google/api/annotations.pb.h" -#include "google/protobuf/struct.pb.h" +#include // @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - +#include #define PROTOBUF_INTERNAL_EXPORT_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto; namespace viam { namespace service { namespace datamanager { @@ -73,11 +62,10 @@ extern SyncResponseDefaultTypeInternal _SyncResponse_default_instance_; } // namespace datamanager } // namespace service } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::service::datamanager::v1::SyncRequest* Arena::CreateMaybeMessage<::viam::service::datamanager::v1::SyncRequest>(Arena*); +template<> ::viam::service::datamanager::v1::SyncResponse* Arena::CreateMaybeMessage<::viam::service::datamanager::v1::SyncResponse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace viam { namespace service { namespace datamanager { @@ -85,32 +73,28 @@ namespace v1 { // =================================================================== - -// ------------------------------------------------------------------- - -class SyncResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.service.datamanager.v1.SyncResponse) */ { +class SyncRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.datamanager.v1.SyncRequest) */ { public: - inline SyncResponse() : SyncResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR SyncResponse(::google::protobuf::internal::ConstantInitialized); + inline SyncRequest() : SyncRequest(nullptr) {} + ~SyncRequest() override; + explicit PROTOBUF_CONSTEXPR SyncRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline SyncResponse(const SyncResponse& from) - : SyncResponse(nullptr, from) {} - SyncResponse(SyncResponse&& from) noexcept - : SyncResponse() { + SyncRequest(const SyncRequest& from); + SyncRequest(SyncRequest&& from) noexcept + : SyncRequest() { *this = ::std::move(from); } - inline SyncResponse& operator=(const SyncResponse& from) { + inline SyncRequest& operator=(const SyncRequest& from) { CopyFrom(from); return *this; } - inline SyncResponse& operator=(SyncResponse&& from) noexcept { + inline SyncRequest& operator=(SyncRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -120,134 +104,164 @@ class SyncResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SyncResponse& default_instance() { + static const SyncRequest& default_instance() { return *internal_default_instance(); } - static inline const SyncResponse* internal_default_instance() { - return reinterpret_cast( - &_SyncResponse_default_instance_); + static inline const SyncRequest* internal_default_instance() { + return reinterpret_cast( + &_SyncRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 1; + 0; - friend void swap(SyncResponse& a, SyncResponse& b) { + friend void swap(SyncRequest& a, SyncRequest& b) { a.Swap(&b); } - inline void Swap(SyncResponse* other) { + inline void Swap(SyncRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SyncResponse* other) { + void UnsafeArenaSwap(SyncRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SyncResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const SyncResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const SyncResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + SyncRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SyncRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const SyncRequest& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.datamanager.v1.SyncResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SyncRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.datamanager.v1.SyncRequest"; } protected: - explicit SyncResponse(::google::protobuf::Arena* arena); - SyncResponse(::google::protobuf::Arena* arena, const SyncResponse& from); + explicit SyncRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.service.datamanager.v1.SyncResponse) + 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.service.datamanager.v1.SyncRequest) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + 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_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SyncRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.datamanager.v1.SyncRequest) */ { +class SyncResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.service.datamanager.v1.SyncResponse) */ { public: - inline SyncRequest() : SyncRequest(nullptr) {} - ~SyncRequest() override; - template - explicit PROTOBUF_CONSTEXPR SyncRequest(::google::protobuf::internal::ConstantInitialized); + inline SyncResponse() : SyncResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR SyncResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline SyncRequest(const SyncRequest& from) - : SyncRequest(nullptr, from) {} - SyncRequest(SyncRequest&& from) noexcept - : SyncRequest() { + SyncResponse(const SyncResponse& from); + SyncResponse(SyncResponse&& from) noexcept + : SyncResponse() { *this = ::std::move(from); } - inline SyncRequest& operator=(const SyncRequest& from) { + inline SyncResponse& operator=(const SyncResponse& from) { CopyFrom(from); return *this; } - inline SyncRequest& operator=(SyncRequest&& from) noexcept { + inline SyncResponse& operator=(SyncResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -257,329 +271,233 @@ class SyncRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SyncRequest& default_instance() { + static const SyncResponse& default_instance() { return *internal_default_instance(); } - static inline const SyncRequest* internal_default_instance() { - return reinterpret_cast( - &_SyncRequest_default_instance_); + static inline const SyncResponse* internal_default_instance() { + return reinterpret_cast( + &_SyncResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 0; + 1; - friend void swap(SyncRequest& a, SyncRequest& b) { + friend void swap(SyncResponse& a, SyncResponse& b) { a.Swap(&b); } - inline void Swap(SyncRequest* other) { + inline void Swap(SyncResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SyncRequest* other) { + void UnsafeArenaSwap(SyncResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SyncRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SyncResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SyncRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SyncRequest& from) { - SyncRequest::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const SyncResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const SyncResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SyncRequest* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.datamanager.v1.SyncRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.datamanager.v1.SyncResponse"; } protected: - explicit SyncRequest(::google::protobuf::Arena* arena); - SyncRequest(::google::protobuf::Arena* arena, const SyncRequest& from); + explicit SyncResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() 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(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - - public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - - public: - // @@protoc_insertion_point(class_scope:viam.service.datamanager.v1.SyncRequest) + // @@protoc_insertion_point(class_scope:viam.service.datamanager.v1.SyncResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 2, 1, - 52, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto; }; - // =================================================================== - - // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ -// ------------------------------------------------------------------- - // SyncRequest // string name = 1 [json_name = "name"]; inline void SyncRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& SyncRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& SyncRequest::name() const { // @@protoc_insertion_point(field_get:viam.service.datamanager.v1.SyncRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void SyncRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void SyncRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.datamanager.v1.SyncRequest.name) } -inline std::string* SyncRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* SyncRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.service.datamanager.v1.SyncRequest.name) return _s; } inline const std::string& SyncRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void SyncRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* SyncRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* SyncRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.datamanager.v1.SyncRequest.name) - return _impl_.name_.Release(); + return name_.Release(); } -inline void SyncRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline void SyncRequest::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.service.datamanager.v1.SyncRequest.name) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool SyncRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool SyncRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& SyncRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& SyncRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& SyncRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& SyncRequest::extra() const { // @@protoc_insertion_point(field_get:viam.service.datamanager.v1.SyncRequest.extra) return _internal_extra(); } -inline void SyncRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); - } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; +inline void SyncRequest::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 { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.datamanager.v1.SyncRequest.extra) } -inline ::google::protobuf::Struct* SyncRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* SyncRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* SyncRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* SyncRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.service.datamanager.v1.SyncRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* SyncRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); - } - return _impl_.extra_; +inline ::PROTOBUF_NAMESPACE_ID::Struct* SyncRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; + } + return extra_; } -inline ::google::protobuf::Struct* SyncRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* SyncRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.service.datamanager.v1.SyncRequest.extra) return _msg; } -inline void SyncRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void SyncRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.service.datamanager.v1.SyncRequest.extra) } @@ -588,18 +506,19 @@ inline void SyncRequest::set_allocated_extra(::google::protobuf::Struct* value) // SyncResponse #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) + } // namespace v1 } // namespace datamanager } // namespace service } // namespace viam - // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_service_2fdatamanager_2fv1_2fdata_5fmanager_2eproto diff --git a/src/viam/api/service/discovery/v1/discovery.grpc.pb.cc b/src/viam/api/service/discovery/v1/discovery.grpc.pb.cc new file mode 100644 index 000000000..1fed3fb81 --- /dev/null +++ b/src/viam/api/service/discovery/v1/discovery.grpc.pb.cc @@ -0,0 +1,144 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: service/discovery/v1/discovery.proto + +#include "service/discovery/v1/discovery.pb.h" +#include "service/discovery/v1/discovery.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace viam { +namespace service { +namespace discovery { +namespace v1 { + +static const char* DiscoveryService_method_names[] = { + "/viam.service.discovery.v1.DiscoveryService/DiscoverResources", + "/viam.service.discovery.v1.DiscoveryService/DoCommand", +}; + +std::unique_ptr< DiscoveryService::Stub> DiscoveryService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< DiscoveryService::Stub> stub(new DiscoveryService::Stub(channel)); + return stub; +} + +DiscoveryService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_DiscoverResources_(DiscoveryService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DoCommand_(DiscoveryService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status DiscoveryService::Stub::DiscoverResources(::grpc::ClientContext* context, const ::viam::service::discovery::v1::DiscoverResourcesRequest& request, ::viam::service::discovery::v1::DiscoverResourcesResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DiscoverResources_, context, request, response); +} + +void DiscoveryService::Stub::experimental_async::DiscoverResources(::grpc::ClientContext* context, const ::viam::service::discovery::v1::DiscoverResourcesRequest* request, ::viam::service::discovery::v1::DiscoverResourcesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DiscoverResources_, context, request, response, std::move(f)); +} + +void DiscoveryService::Stub::experimental_async::DiscoverResources(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::discovery::v1::DiscoverResourcesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DiscoverResources_, context, request, response, std::move(f)); +} + +void DiscoveryService::Stub::experimental_async::DiscoverResources(::grpc::ClientContext* context, const ::viam::service::discovery::v1::DiscoverResourcesRequest* request, ::viam::service::discovery::v1::DiscoverResourcesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DiscoverResources_, context, request, response, reactor); +} + +void DiscoveryService::Stub::experimental_async::DiscoverResources(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::discovery::v1::DiscoverResourcesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DiscoverResources_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::discovery::v1::DiscoverResourcesResponse>* DiscoveryService::Stub::AsyncDiscoverResourcesRaw(::grpc::ClientContext* context, const ::viam::service::discovery::v1::DiscoverResourcesRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::discovery::v1::DiscoverResourcesResponse>::Create(channel_.get(), cq, rpcmethod_DiscoverResources_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::discovery::v1::DiscoverResourcesResponse>* DiscoveryService::Stub::PrepareAsyncDiscoverResourcesRaw(::grpc::ClientContext* context, const ::viam::service::discovery::v1::DiscoverResourcesRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::discovery::v1::DiscoverResourcesResponse>::Create(channel_.get(), cq, rpcmethod_DiscoverResources_, context, request, false); +} + +::grpc::Status DiscoveryService::Stub::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::viam::common::v1::DoCommandResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DoCommand_, context, request, response); +} + +void DiscoveryService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); +} + +void DiscoveryService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); +} + +void DiscoveryService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); +} + +void DiscoveryService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* DiscoveryService::Stub::AsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::DoCommandResponse>::Create(channel_.get(), cq, rpcmethod_DoCommand_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* DiscoveryService::Stub::PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::DoCommandResponse>::Create(channel_.get(), cq, rpcmethod_DoCommand_, context, request, false); +} + +DiscoveryService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + DiscoveryService_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< DiscoveryService::Service, ::viam::service::discovery::v1::DiscoverResourcesRequest, ::viam::service::discovery::v1::DiscoverResourcesResponse>( + [](DiscoveryService::Service* service, + ::grpc_impl::ServerContext* ctx, + const ::viam::service::discovery::v1::DiscoverResourcesRequest* req, + ::viam::service::discovery::v1::DiscoverResourcesResponse* resp) { + return service->DiscoverResources(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + DiscoveryService_method_names[1], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< DiscoveryService::Service, ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( + [](DiscoveryService::Service* service, + ::grpc_impl::ServerContext* ctx, + const ::viam::common::v1::DoCommandRequest* req, + ::viam::common::v1::DoCommandResponse* resp) { + return service->DoCommand(ctx, req, resp); + }, this))); +} + +DiscoveryService::Service::~Service() { +} + +::grpc::Status DiscoveryService::Service::DiscoverResources(::grpc::ServerContext* context, const ::viam::service::discovery::v1::DiscoverResourcesRequest* request, ::viam::service::discovery::v1::DiscoverResourcesResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status DiscoveryService::Service::DoCommand(::grpc::ServerContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +} // namespace viam +} // namespace service +} // namespace discovery +} // namespace v1 + diff --git a/src/viam/api/service/discovery/v1/discovery.grpc.pb.h b/src/viam/api/service/discovery/v1/discovery.grpc.pb.h new file mode 100644 index 000000000..301c0bfe7 --- /dev/null +++ b/src/viam/api/service/discovery/v1/discovery.grpc.pb.h @@ -0,0 +1,529 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: service/discovery/v1/discovery.proto +#ifndef GRPC_service_2fdiscovery_2fv1_2fdiscovery_2eproto__INCLUDED +#define GRPC_service_2fdiscovery_2fv1_2fdiscovery_2eproto__INCLUDED + +#include "service/discovery/v1/discovery.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace viam { +namespace service { +namespace discovery { +namespace v1 { + +class DiscoveryService final { + public: + static constexpr char const* service_full_name() { + return "viam.service.discovery.v1.DiscoveryService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + // DiscoverResources returns the list of all discovered viam resources connected to the viam-server machine. + virtual ::grpc::Status DiscoverResources(::grpc::ClientContext* context, const ::viam::service::discovery::v1::DiscoverResourcesRequest& request, ::viam::service::discovery::v1::DiscoverResourcesResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::discovery::v1::DiscoverResourcesResponse>> AsyncDiscoverResources(::grpc::ClientContext* context, const ::viam::service::discovery::v1::DiscoverResourcesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::discovery::v1::DiscoverResourcesResponse>>(AsyncDiscoverResourcesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::discovery::v1::DiscoverResourcesResponse>> PrepareAsyncDiscoverResources(::grpc::ClientContext* context, const ::viam::service::discovery::v1::DiscoverResourcesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::discovery::v1::DiscoverResourcesResponse>>(PrepareAsyncDiscoverResourcesRaw(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) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::DoCommandResponse>>(AsyncDoCommandRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::DoCommandResponse>> PrepareAsyncDoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::DoCommandResponse>>(PrepareAsyncDoCommandRaw(context, request, cq)); + } + class experimental_async_interface { + public: + virtual ~experimental_async_interface() {} + // DiscoverResources returns the list of all discovered viam resources connected to the viam-server machine. + virtual void DiscoverResources(::grpc::ClientContext* context, const ::viam::service::discovery::v1::DiscoverResourcesRequest* request, ::viam::service::discovery::v1::DiscoverResourcesResponse* response, std::function) = 0; + virtual void DiscoverResources(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::discovery::v1::DiscoverResourcesResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void DiscoverResources(::grpc::ClientContext* context, const ::viam::service::discovery::v1::DiscoverResourcesRequest* request, ::viam::service::discovery::v1::DiscoverResourcesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DiscoverResources(::grpc::ClientContext* context, const ::viam::service::discovery::v1::DiscoverResourcesRequest* request, ::viam::service::discovery::v1::DiscoverResourcesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void DiscoverResources(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::discovery::v1::DiscoverResourcesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DiscoverResources(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::discovery::v1::DiscoverResourcesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + // 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 ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + }; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef class experimental_async_interface async_interface; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + async_interface* async() { return experimental_async(); } + #endif + virtual class experimental_async_interface* experimental_async() { return nullptr; } + private: + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::discovery::v1::DiscoverResourcesResponse>* AsyncDiscoverResourcesRaw(::grpc::ClientContext* context, const ::viam::service::discovery::v1::DiscoverResourcesRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::discovery::v1::DiscoverResourcesResponse>* PrepareAsyncDiscoverResourcesRaw(::grpc::ClientContext* context, const ::viam::service::discovery::v1::DiscoverResourcesRequest& 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; + }; + class Stub final : public StubInterface { + public: + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); + ::grpc::Status DiscoverResources(::grpc::ClientContext* context, const ::viam::service::discovery::v1::DiscoverResourcesRequest& request, ::viam::service::discovery::v1::DiscoverResourcesResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::discovery::v1::DiscoverResourcesResponse>> AsyncDiscoverResources(::grpc::ClientContext* context, const ::viam::service::discovery::v1::DiscoverResourcesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::discovery::v1::DiscoverResourcesResponse>>(AsyncDiscoverResourcesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::discovery::v1::DiscoverResourcesResponse>> PrepareAsyncDiscoverResources(::grpc::ClientContext* context, const ::viam::service::discovery::v1::DiscoverResourcesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::discovery::v1::DiscoverResourcesResponse>>(PrepareAsyncDiscoverResourcesRaw(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)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>> PrepareAsyncDoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>>(PrepareAsyncDoCommandRaw(context, request, cq)); + } + class experimental_async final : + public StubInterface::experimental_async_interface { + public: + void DiscoverResources(::grpc::ClientContext* context, const ::viam::service::discovery::v1::DiscoverResourcesRequest* request, ::viam::service::discovery::v1::DiscoverResourcesResponse* response, std::function) override; + void DiscoverResources(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::discovery::v1::DiscoverResourcesResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void DiscoverResources(::grpc::ClientContext* context, const ::viam::service::discovery::v1::DiscoverResourcesRequest* request, ::viam::service::discovery::v1::DiscoverResourcesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DiscoverResources(::grpc::ClientContext* context, const ::viam::service::discovery::v1::DiscoverResourcesRequest* request, ::viam::service::discovery::v1::DiscoverResourcesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void DiscoverResources(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::discovery::v1::DiscoverResourcesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DiscoverResources(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::discovery::v1::DiscoverResourcesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + 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 ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + private: + friend class Stub; + explicit experimental_async(Stub* stub): stub_(stub) { } + Stub* stub() { return stub_; } + Stub* stub_; + }; + class experimental_async_interface* experimental_async() override { return &async_stub_; } + + private: + std::shared_ptr< ::grpc::ChannelInterface> channel_; + class experimental_async async_stub_{this}; + ::grpc::ClientAsyncResponseReader< ::viam::service::discovery::v1::DiscoverResourcesResponse>* AsyncDiscoverResourcesRaw(::grpc::ClientContext* context, const ::viam::service::discovery::v1::DiscoverResourcesRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::service::discovery::v1::DiscoverResourcesResponse>* PrepareAsyncDiscoverResourcesRaw(::grpc::ClientContext* context, const ::viam::service::discovery::v1::DiscoverResourcesRequest& 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_DiscoverResources_; + const ::grpc::internal::RpcMethod rpcmethod_DoCommand_; + }; + static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + + class Service : public ::grpc::Service { + public: + Service(); + virtual ~Service(); + // DiscoverResources returns the list of all discovered viam resources connected to the viam-server machine. + virtual ::grpc::Status DiscoverResources(::grpc::ServerContext* context, const ::viam::service::discovery::v1::DiscoverResourcesRequest* request, ::viam::service::discovery::v1::DiscoverResourcesResponse* response); + // DoCommand sends/receives arbitrary commands + virtual ::grpc::Status DoCommand(::grpc::ServerContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response); + }; + template + class WithAsyncMethod_DiscoverResources : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_DiscoverResources() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_DiscoverResources() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DiscoverResources(::grpc::ServerContext* /*context*/, const ::viam::service::discovery::v1::DiscoverResourcesRequest* /*request*/, ::viam::service::discovery::v1::DiscoverResourcesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDiscoverResources(::grpc::ServerContext* context, ::viam::service::discovery::v1::DiscoverResourcesRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::service::discovery::v1::DiscoverResourcesResponse>* 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); + } + }; + template + class WithAsyncMethod_DoCommand : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_DoCommand() { + ::grpc::Service::MarkMethodAsync(1); + } + ~WithAsyncMethod_DoCommand() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DoCommand(::grpc::ServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) override { + abort(); + 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(1, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_DiscoverResources > AsyncService; + template + class ExperimentalWithCallbackMethod_DiscoverResources : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithCallbackMethod_DiscoverResources() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::discovery::v1::DiscoverResourcesRequest, ::viam::service::discovery::v1::DiscoverResourcesResponse>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::service::discovery::v1::DiscoverResourcesRequest* request, ::viam::service::discovery::v1::DiscoverResourcesResponse* response) { return this->DiscoverResources(context, request, response); }));} + void SetMessageAllocatorFor_DiscoverResources( + ::grpc::experimental::MessageAllocator< ::viam::service::discovery::v1::DiscoverResourcesRequest, ::viam::service::discovery::v1::DiscoverResourcesResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(0); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::discovery::v1::DiscoverResourcesRequest, ::viam::service::discovery::v1::DiscoverResourcesResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_DiscoverResources() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DiscoverResources(::grpc::ServerContext* /*context*/, const ::viam::service::discovery::v1::DiscoverResourcesRequest* /*request*/, ::viam::service::discovery::v1::DiscoverResourcesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* DiscoverResources( + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::discovery::v1::DiscoverResourcesRequest* /*request*/, ::viam::service::discovery::v1::DiscoverResourcesResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DiscoverResources( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::service::discovery::v1::DiscoverResourcesRequest* /*request*/, ::viam::service::discovery::v1::DiscoverResourcesResponse* /*response*/) + #endif + { return nullptr; } + }; + template + class ExperimentalWithCallbackMethod_DoCommand : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithCallbackMethod_DoCommand() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response) { return this->DoCommand(context, request, response); }));} + void SetMessageAllocatorFor_DoCommand( + ::grpc::experimental::MessageAllocator< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(1); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_DoCommand() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DoCommand(::grpc::ServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* DoCommand( + ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DoCommand( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) + #endif + { return nullptr; } + }; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef ExperimentalWithCallbackMethod_DiscoverResources > CallbackService; + #endif + + typedef ExperimentalWithCallbackMethod_DiscoverResources > ExperimentalCallbackService; + template + class WithGenericMethod_DiscoverResources : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_DiscoverResources() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_DiscoverResources() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DiscoverResources(::grpc::ServerContext* /*context*/, const ::viam::service::discovery::v1::DiscoverResourcesRequest* /*request*/, ::viam::service::discovery::v1::DiscoverResourcesResponse* /*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(1); + } + ~WithGenericMethod_DoCommand() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DoCommand(::grpc::ServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_DiscoverResources : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_DiscoverResources() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_DiscoverResources() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DiscoverResources(::grpc::ServerContext* /*context*/, const ::viam::service::discovery::v1::DiscoverResourcesRequest* /*request*/, ::viam::service::discovery::v1::DiscoverResourcesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDiscoverResources(::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(0, 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(1); + } + ~WithRawMethod_DoCommand() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DoCommand(::grpc::ServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) override { + abort(); + 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(1, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class ExperimentalWithRawCallbackMethod_DiscoverResources : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithRawCallbackMethod_DiscoverResources() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DiscoverResources(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_DiscoverResources() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DiscoverResources(::grpc::ServerContext* /*context*/, const ::viam::service::discovery::v1::DiscoverResourcesRequest* /*request*/, ::viam::service::discovery::v1::DiscoverResourcesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* DiscoverResources( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DiscoverResources( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } + }; + template + class ExperimentalWithRawCallbackMethod_DoCommand : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + ExperimentalWithRawCallbackMethod_DoCommand() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DoCommand(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_DoCommand() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DoCommand(::grpc::ServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual ::grpc::ServerUnaryReactor* DoCommand( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DoCommand( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } + }; + template + class WithStreamedUnaryMethod_DiscoverResources : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_DiscoverResources() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::service::discovery::v1::DiscoverResourcesRequest, ::viam::service::discovery::v1::DiscoverResourcesResponse>( + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< + ::viam::service::discovery::v1::DiscoverResourcesRequest, ::viam::service::discovery::v1::DiscoverResourcesResponse>* streamer) { + return this->StreamedDiscoverResources(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_DiscoverResources() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status DiscoverResources(::grpc::ServerContext* /*context*/, const ::viam::service::discovery::v1::DiscoverResourcesRequest* /*request*/, ::viam::service::discovery::v1::DiscoverResourcesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedDiscoverResources(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::service::discovery::v1::DiscoverResourcesRequest,::viam::service::discovery::v1::DiscoverResourcesResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_DoCommand : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_DoCommand() { + ::grpc::Service::MarkMethodStreamed(1, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< + ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* streamer) { + return this->StreamedDoCommand(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_DoCommand() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status DoCommand(::grpc::ServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // 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_DiscoverResources > StreamedUnaryService; + typedef Service SplitStreamedService; + typedef WithStreamedUnaryMethod_DiscoverResources > StreamedService; +}; + +} // namespace v1 +} // namespace discovery +} // namespace service +} // namespace viam + + +#endif // GRPC_service_2fdiscovery_2fv1_2fdiscovery_2eproto__INCLUDED diff --git a/src/viam/api/service/discovery/v1/discovery.pb.cc b/src/viam/api/service/discovery/v1/discovery.pb.cc new file mode 100644 index 000000000..095928c3a --- /dev/null +++ b/src/viam/api/service/discovery/v1/discovery.pb.cc @@ -0,0 +1,576 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: service/discovery/v1/discovery.proto + +#include "service/discovery/v1/discovery.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +PROTOBUF_PRAGMA_INIT_SEG + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + +namespace viam { +namespace service { +namespace discovery { +namespace v1 { +PROTOBUF_CONSTEXPR DiscoverResourcesRequest::DiscoverResourcesRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} +struct DiscoverResourcesRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR DiscoverResourcesRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DiscoverResourcesRequestDefaultTypeInternal() {} + union { + DiscoverResourcesRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DiscoverResourcesRequestDefaultTypeInternal _DiscoverResourcesRequest_default_instance_; +PROTOBUF_CONSTEXPR DiscoverResourcesResponse::DiscoverResourcesResponse( + ::_pbi::ConstantInitialized) + : discoveries_(){} +struct DiscoverResourcesResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR DiscoverResourcesResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DiscoverResourcesResponseDefaultTypeInternal() {} + union { + DiscoverResourcesResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DiscoverResourcesResponseDefaultTypeInternal _DiscoverResourcesResponse_default_instance_; +} // namespace v1 +} // namespace discovery +} // namespace service +} // namespace viam +static ::_pb::Metadata file_level_metadata_service_2fdiscovery_2fv1_2fdiscovery_2eproto[2]; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_service_2fdiscovery_2fv1_2fdiscovery_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_service_2fdiscovery_2fv1_2fdiscovery_2eproto = nullptr; + +const uint32_t TableStruct_service_2fdiscovery_2fv1_2fdiscovery_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::discovery::v1::DiscoverResourcesRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::discovery::v1::DiscoverResourcesRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::service::discovery::v1::DiscoverResourcesRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::discovery::v1::DiscoverResourcesResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::discovery::v1::DiscoverResourcesResponse, discoveries_), +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::service::discovery::v1::DiscoverResourcesRequest)}, + { 8, -1, -1, sizeof(::viam::service::discovery::v1::DiscoverResourcesResponse)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::viam::service::discovery::v1::_DiscoverResourcesRequest_default_instance_._instance, + &::viam::service::discovery::v1::_DiscoverResourcesResponse_default_instance_._instance, +}; + +const char descriptor_table_protodef_service_2fdiscovery_2fv1_2fdiscovery_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n$service/discovery/v1/discovery.proto\022\031" + "viam.service.discovery.v1\032\022app/v1/robot." + "proto\032\026common/v1/common.proto\032\034google/ap" + "i/annotations.proto\032\034google/protobuf/str" + "uct.proto\"]\n\030DiscoverResourcesRequest\022\022\n" + "\004name\030\001 \001(\tR\004name\022-\n\005extra\030c \001(\0132\027.googl" + "e.protobuf.StructR\005extra\"[\n\031DiscoverReso" + "urcesResponse\022>\n\013discoveries\030\001 \003(\0132\034.via" + "m.app.v1.ComponentConfigR\013discoveries2\317\002" + "\n\020DiscoveryService\022\255\001\n\021DiscoverResources" + "\0223.viam.service.discovery.v1.DiscoverRes" + "ourcesRequest\0324.viam.service.discovery.v" + "1.DiscoverResourcesResponse\"-\202\323\344\223\002\'\022%/vi" + "am/api/v1/service/{name}/discovery\022\212\001\n\tD" + "oCommand\022 .viam.common.v1.DoCommandReque" + "st\032!.viam.common.v1.DoCommandResponse\"8\202" + "\323\344\223\0022\"0/viam/api/v1/service/discovery/{n" + "ame}/do_commandBD\n\035com.viam.service.disc" + "overy.v1Z#go.viam.com/api/service/discov" + "ey/v1b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_service_2fdiscovery_2fv1_2fdiscovery_2eproto_deps[4] = { + &::descriptor_table_app_2fv1_2frobot_2eproto, + &::descriptor_table_common_2fv1_2fcommon_2eproto, + &::descriptor_table_google_2fapi_2fannotations_2eproto, + &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, +}; +static ::_pbi::once_flag descriptor_table_service_2fdiscovery_2fv1_2fdiscovery_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_service_2fdiscovery_2fv1_2fdiscovery_2eproto = { + false, false, 773, descriptor_table_protodef_service_2fdiscovery_2fv1_2fdiscovery_2eproto, + "service/discovery/v1/discovery.proto", + &descriptor_table_service_2fdiscovery_2fv1_2fdiscovery_2eproto_once, descriptor_table_service_2fdiscovery_2fv1_2fdiscovery_2eproto_deps, 4, 2, + schemas, file_default_instances, TableStruct_service_2fdiscovery_2fv1_2fdiscovery_2eproto::offsets, + file_level_metadata_service_2fdiscovery_2fv1_2fdiscovery_2eproto, file_level_enum_descriptors_service_2fdiscovery_2fv1_2fdiscovery_2eproto, + file_level_service_descriptors_service_2fdiscovery_2fv1_2fdiscovery_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_service_2fdiscovery_2fv1_2fdiscovery_2eproto_getter() { + return &descriptor_table_service_2fdiscovery_2fv1_2fdiscovery_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_service_2fdiscovery_2fv1_2fdiscovery_2eproto(&descriptor_table_service_2fdiscovery_2fv1_2fdiscovery_2eproto); +namespace viam { +namespace service { +namespace discovery { +namespace v1 { + +// =================================================================== + +class DiscoverResourcesRequest::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const DiscoverResourcesRequest* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Struct& +DiscoverResourcesRequest::_Internal::extra(const DiscoverResourcesRequest* msg) { + return *msg->extra_; +} +void DiscoverResourcesRequest::clear_extra() { + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; +} +DiscoverResourcesRequest::DiscoverResourcesRequest(::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.discovery.v1.DiscoverResourcesRequest) +} +DiscoverResourcesRequest::DiscoverResourcesRequest(const DiscoverResourcesRequest& 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.service.discovery.v1.DiscoverResourcesRequest) +} + +inline void DiscoverResourcesRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; +} + +DiscoverResourcesRequest::~DiscoverResourcesRequest() { + // @@protoc_insertion_point(destructor:viam.service.discovery.v1.DiscoverResourcesRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void DiscoverResourcesRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void DiscoverResourcesRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void DiscoverResourcesRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.discovery.v1.DiscoverResourcesRequest) + 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* DiscoverResourcesRequest::_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.service.discovery.v1.DiscoverResourcesRequest.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* DiscoverResourcesRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.discovery.v1.DiscoverResourcesRequest) + 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.service.discovery.v1.DiscoverResourcesRequest.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.service.discovery.v1.DiscoverResourcesRequest) + return target; +} + +size_t DiscoverResourcesRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.discovery.v1.DiscoverResourcesRequest) + 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 DiscoverResourcesRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + DiscoverResourcesRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DiscoverResourcesRequest::GetClassData() const { return &_class_data_; } + +void DiscoverResourcesRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void DiscoverResourcesRequest::MergeFrom(const DiscoverResourcesRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.discovery.v1.DiscoverResourcesRequest) + 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 DiscoverResourcesRequest::CopyFrom(const DiscoverResourcesRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.discovery.v1.DiscoverResourcesRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DiscoverResourcesRequest::IsInitialized() const { + return true; +} + +void DiscoverResourcesRequest::InternalSwap(DiscoverResourcesRequest* 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 DiscoverResourcesRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fdiscovery_2fv1_2fdiscovery_2eproto_getter, &descriptor_table_service_2fdiscovery_2fv1_2fdiscovery_2eproto_once, + file_level_metadata_service_2fdiscovery_2fv1_2fdiscovery_2eproto[0]); +} + +// =================================================================== + +class DiscoverResourcesResponse::_Internal { + public: +}; + +void DiscoverResourcesResponse::clear_discoveries() { + discoveries_.Clear(); +} +DiscoverResourcesResponse::DiscoverResourcesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + discoveries_(arena) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:viam.service.discovery.v1.DiscoverResourcesResponse) +} +DiscoverResourcesResponse::DiscoverResourcesResponse(const DiscoverResourcesResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + discoveries_(from.discoveries_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:viam.service.discovery.v1.DiscoverResourcesResponse) +} + +inline void DiscoverResourcesResponse::SharedCtor() { +} + +DiscoverResourcesResponse::~DiscoverResourcesResponse() { + // @@protoc_insertion_point(destructor:viam.service.discovery.v1.DiscoverResourcesResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void DiscoverResourcesResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void DiscoverResourcesResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void DiscoverResourcesResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.discovery.v1.DiscoverResourcesResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + discoveries_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DiscoverResourcesResponse::_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) { + // repeated .viam.app.v1.ComponentConfig discoveries = 1 [json_name = "discoveries"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_discoveries(), 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* DiscoverResourcesResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.discovery.v1.DiscoverResourcesResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .viam.app.v1.ComponentConfig discoveries = 1 [json_name = "discoveries"]; + for (unsigned i = 0, + n = static_cast(this->_internal_discoveries_size()); i < n; i++) { + const auto& repfield = this->_internal_discoveries(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.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.discovery.v1.DiscoverResourcesResponse) + return target; +} + +size_t DiscoverResourcesResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.discovery.v1.DiscoverResourcesResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .viam.app.v1.ComponentConfig discoveries = 1 [json_name = "discoveries"]; + total_size += 1UL * this->_internal_discoveries_size(); + for (const auto& msg : this->discoveries_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DiscoverResourcesResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + DiscoverResourcesResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DiscoverResourcesResponse::GetClassData() const { return &_class_data_; } + +void DiscoverResourcesResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void DiscoverResourcesResponse::MergeFrom(const DiscoverResourcesResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.discovery.v1.DiscoverResourcesResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + discoveries_.MergeFrom(from.discoveries_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void DiscoverResourcesResponse::CopyFrom(const DiscoverResourcesResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.discovery.v1.DiscoverResourcesResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DiscoverResourcesResponse::IsInitialized() const { + return true; +} + +void DiscoverResourcesResponse::InternalSwap(DiscoverResourcesResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + discoveries_.InternalSwap(&other->discoveries_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata DiscoverResourcesResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fdiscovery_2fv1_2fdiscovery_2eproto_getter, &descriptor_table_service_2fdiscovery_2fv1_2fdiscovery_2eproto_once, + file_level_metadata_service_2fdiscovery_2fv1_2fdiscovery_2eproto[1]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1 +} // namespace discovery +} // namespace service +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::service::discovery::v1::DiscoverResourcesRequest* +Arena::CreateMaybeMessage< ::viam::service::discovery::v1::DiscoverResourcesRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::discovery::v1::DiscoverResourcesRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::discovery::v1::DiscoverResourcesResponse* +Arena::CreateMaybeMessage< ::viam::service::discovery::v1::DiscoverResourcesResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::discovery::v1::DiscoverResourcesResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/viam/api/service/discovery/v1/discovery.pb.h b/src/viam/api/service/discovery/v1/discovery.pb.h new file mode 100644 index 000000000..47f275cb1 --- /dev/null +++ b/src/viam/api/service/discovery/v1/discovery.pb.h @@ -0,0 +1,597 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: service/discovery/v1/discovery.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_service_2fdiscovery_2fv1_2fdiscovery_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_service_2fdiscovery_2fv1_2fdiscovery_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include "app/v1/robot.pb.h" +#include "common/v1/common.pb.h" +#include "google/api/annotations.pb.h" +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_service_2fdiscovery_2fv1_2fdiscovery_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_service_2fdiscovery_2fv1_2fdiscovery_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_service_2fdiscovery_2fv1_2fdiscovery_2eproto; +namespace viam { +namespace service { +namespace discovery { +namespace v1 { +class DiscoverResourcesRequest; +struct DiscoverResourcesRequestDefaultTypeInternal; +extern DiscoverResourcesRequestDefaultTypeInternal _DiscoverResourcesRequest_default_instance_; +class DiscoverResourcesResponse; +struct DiscoverResourcesResponseDefaultTypeInternal; +extern DiscoverResourcesResponseDefaultTypeInternal _DiscoverResourcesResponse_default_instance_; +} // namespace v1 +} // namespace discovery +} // namespace service +} // namespace viam +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::service::discovery::v1::DiscoverResourcesRequest* Arena::CreateMaybeMessage<::viam::service::discovery::v1::DiscoverResourcesRequest>(Arena*); +template<> ::viam::service::discovery::v1::DiscoverResourcesResponse* Arena::CreateMaybeMessage<::viam::service::discovery::v1::DiscoverResourcesResponse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace viam { +namespace service { +namespace discovery { +namespace v1 { + +// =================================================================== + +class DiscoverResourcesRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.discovery.v1.DiscoverResourcesRequest) */ { + public: + inline DiscoverResourcesRequest() : DiscoverResourcesRequest(nullptr) {} + ~DiscoverResourcesRequest() override; + explicit PROTOBUF_CONSTEXPR DiscoverResourcesRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + DiscoverResourcesRequest(const DiscoverResourcesRequest& from); + DiscoverResourcesRequest(DiscoverResourcesRequest&& from) noexcept + : DiscoverResourcesRequest() { + *this = ::std::move(from); + } + + inline DiscoverResourcesRequest& operator=(const DiscoverResourcesRequest& from) { + CopyFrom(from); + return *this; + } + inline DiscoverResourcesRequest& operator=(DiscoverResourcesRequest&& 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 DiscoverResourcesRequest& default_instance() { + return *internal_default_instance(); + } + static inline const DiscoverResourcesRequest* internal_default_instance() { + return reinterpret_cast( + &_DiscoverResourcesRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(DiscoverResourcesRequest& a, DiscoverResourcesRequest& b) { + a.Swap(&b); + } + inline void Swap(DiscoverResourcesRequest* 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(DiscoverResourcesRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DiscoverResourcesRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DiscoverResourcesRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const DiscoverResourcesRequest& 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(DiscoverResourcesRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.discovery.v1.DiscoverResourcesRequest"; + } + protected: + explicit DiscoverResourcesRequest(::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.service.discovery.v1.DiscoverResourcesRequest) + 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_service_2fdiscovery_2fv1_2fdiscovery_2eproto; +}; +// ------------------------------------------------------------------- + +class DiscoverResourcesResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.discovery.v1.DiscoverResourcesResponse) */ { + public: + inline DiscoverResourcesResponse() : DiscoverResourcesResponse(nullptr) {} + ~DiscoverResourcesResponse() override; + explicit PROTOBUF_CONSTEXPR DiscoverResourcesResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + DiscoverResourcesResponse(const DiscoverResourcesResponse& from); + DiscoverResourcesResponse(DiscoverResourcesResponse&& from) noexcept + : DiscoverResourcesResponse() { + *this = ::std::move(from); + } + + inline DiscoverResourcesResponse& operator=(const DiscoverResourcesResponse& from) { + CopyFrom(from); + return *this; + } + inline DiscoverResourcesResponse& operator=(DiscoverResourcesResponse&& 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 DiscoverResourcesResponse& default_instance() { + return *internal_default_instance(); + } + static inline const DiscoverResourcesResponse* internal_default_instance() { + return reinterpret_cast( + &_DiscoverResourcesResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(DiscoverResourcesResponse& a, DiscoverResourcesResponse& b) { + a.Swap(&b); + } + inline void Swap(DiscoverResourcesResponse* 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(DiscoverResourcesResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DiscoverResourcesResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DiscoverResourcesResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const DiscoverResourcesResponse& 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(DiscoverResourcesResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.discovery.v1.DiscoverResourcesResponse"; + } + protected: + explicit DiscoverResourcesResponse(::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 { + kDiscoveriesFieldNumber = 1, + }; + // repeated .viam.app.v1.ComponentConfig discoveries = 1 [json_name = "discoveries"]; + int discoveries_size() const; + private: + int _internal_discoveries_size() const; + public: + void clear_discoveries(); + ::viam::app::v1::ComponentConfig* mutable_discoveries(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ComponentConfig >* + mutable_discoveries(); + private: + const ::viam::app::v1::ComponentConfig& _internal_discoveries(int index) const; + ::viam::app::v1::ComponentConfig* _internal_add_discoveries(); + public: + const ::viam::app::v1::ComponentConfig& discoveries(int index) const; + ::viam::app::v1::ComponentConfig* add_discoveries(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ComponentConfig >& + discoveries() const; + + // @@protoc_insertion_point(class_scope:viam.service.discovery.v1.DiscoverResourcesResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ComponentConfig > discoveries_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_service_2fdiscovery_2fv1_2fdiscovery_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// DiscoverResourcesRequest + +// string name = 1 [json_name = "name"]; +inline void DiscoverResourcesRequest::clear_name() { + name_.ClearToEmpty(); +} +inline const std::string& DiscoverResourcesRequest::name() const { + // @@protoc_insertion_point(field_get:viam.service.discovery.v1.DiscoverResourcesRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void DiscoverResourcesRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.service.discovery.v1.DiscoverResourcesRequest.name) +} +inline std::string* DiscoverResourcesRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.service.discovery.v1.DiscoverResourcesRequest.name) + return _s; +} +inline const std::string& DiscoverResourcesRequest::_internal_name() const { + return name_.Get(); +} +inline void DiscoverResourcesRequest::_internal_set_name(const std::string& value) { + + name_.Set(value, GetArenaForAllocation()); +} +inline std::string* DiscoverResourcesRequest::_internal_mutable_name() { + + return name_.Mutable(GetArenaForAllocation()); +} +inline std::string* DiscoverResourcesRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.service.discovery.v1.DiscoverResourcesRequest.name) + return name_.Release(); +} +inline void DiscoverResourcesRequest::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.service.discovery.v1.DiscoverResourcesRequest.name) +} + +// .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool DiscoverResourcesRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} +inline bool DiscoverResourcesRequest::has_extra() const { + return _internal_has_extra(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& DiscoverResourcesRequest::_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& DiscoverResourcesRequest::extra() const { + // @@protoc_insertion_point(field_get:viam.service.discovery.v1.DiscoverResourcesRequest.extra) + return _internal_extra(); +} +inline void DiscoverResourcesRequest::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.service.discovery.v1.DiscoverResourcesRequest.extra) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* DiscoverResourcesRequest::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* DiscoverResourcesRequest::unsafe_arena_release_extra() { + // @@protoc_insertion_point(field_release:viam.service.discovery.v1.DiscoverResourcesRequest.extra) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* DiscoverResourcesRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; + } + return extra_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* DiscoverResourcesRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); + // @@protoc_insertion_point(field_mutable:viam.service.discovery.v1.DiscoverResourcesRequest.extra) + return _msg; +} +inline void DiscoverResourcesRequest::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.service.discovery.v1.DiscoverResourcesRequest.extra) +} + +// ------------------------------------------------------------------- + +// DiscoverResourcesResponse + +// repeated .viam.app.v1.ComponentConfig discoveries = 1 [json_name = "discoveries"]; +inline int DiscoverResourcesResponse::_internal_discoveries_size() const { + return discoveries_.size(); +} +inline int DiscoverResourcesResponse::discoveries_size() const { + return _internal_discoveries_size(); +} +inline ::viam::app::v1::ComponentConfig* DiscoverResourcesResponse::mutable_discoveries(int index) { + // @@protoc_insertion_point(field_mutable:viam.service.discovery.v1.DiscoverResourcesResponse.discoveries) + return discoveries_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ComponentConfig >* +DiscoverResourcesResponse::mutable_discoveries() { + // @@protoc_insertion_point(field_mutable_list:viam.service.discovery.v1.DiscoverResourcesResponse.discoveries) + return &discoveries_; +} +inline const ::viam::app::v1::ComponentConfig& DiscoverResourcesResponse::_internal_discoveries(int index) const { + return discoveries_.Get(index); +} +inline const ::viam::app::v1::ComponentConfig& DiscoverResourcesResponse::discoveries(int index) const { + // @@protoc_insertion_point(field_get:viam.service.discovery.v1.DiscoverResourcesResponse.discoveries) + return _internal_discoveries(index); +} +inline ::viam::app::v1::ComponentConfig* DiscoverResourcesResponse::_internal_add_discoveries() { + return discoveries_.Add(); +} +inline ::viam::app::v1::ComponentConfig* DiscoverResourcesResponse::add_discoveries() { + ::viam::app::v1::ComponentConfig* _add = _internal_add_discoveries(); + // @@protoc_insertion_point(field_add:viam.service.discovery.v1.DiscoverResourcesResponse.discoveries) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::app::v1::ComponentConfig >& +DiscoverResourcesResponse::discoveries() const { + // @@protoc_insertion_point(field_list:viam.service.discovery.v1.DiscoverResourcesResponse.discoveries) + return discoveries_; +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v1 +} // namespace discovery +} // namespace service +} // namespace viam + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_service_2fdiscovery_2fv1_2fdiscovery_2eproto diff --git a/src/viam/api/service/generic/v1/generic.grpc.pb.cc b/src/viam/api/service/generic/v1/generic.grpc.pb.cc index b82616b50..370a38a56 100644 --- a/src/viam/api/service/generic/v1/generic.grpc.pb.cc +++ b/src/viam/api/service/generic/v1/generic.grpc.pb.cc @@ -6,19 +6,19 @@ #include "service/generic/v1/generic.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace service { namespace generic { @@ -30,44 +30,49 @@ static const char* GenericService_method_names[] = { std::unique_ptr< GenericService::Stub> GenericService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { (void)options; - std::unique_ptr< GenericService::Stub> stub(new GenericService::Stub(channel, options)); + std::unique_ptr< GenericService::Stub> stub(new GenericService::Stub(channel)); return stub; } -GenericService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) - : channel_(channel), rpcmethod_DoCommand_(GenericService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) +GenericService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_DoCommand_(GenericService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status GenericService::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); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DoCommand_, context, request, response); } -void GenericService::Stub::async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); +void GenericService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); } -void GenericService::Stub::async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); +void GenericService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* GenericService::Stub::PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::common::v1::DoCommandResponse, ::viam::common::v1::DoCommandRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DoCommand_, context, request); +void GenericService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); +} + +void GenericService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* GenericService::Stub::AsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncDoCommandRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::DoCommandResponse>::Create(channel_.get(), cq, rpcmethod_DoCommand_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* GenericService::Stub::PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::DoCommandResponse>::Create(channel_.get(), cq, rpcmethod_DoCommand_, context, request, false); } GenericService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( GenericService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< GenericService::Service, ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< GenericService::Service, ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( [](GenericService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::common::v1::DoCommandRequest* req, ::viam::common::v1::DoCommandResponse* resp) { return service->DoCommand(ctx, req, resp); diff --git a/src/viam/api/service/generic/v1/generic.grpc.pb.h b/src/viam/api/service/generic/v1/generic.grpc.pb.h index 019920fe5..bafc1af8e 100644 --- a/src/viam/api/service/generic/v1/generic.grpc.pb.h +++ b/src/viam/api/service/generic/v1/generic.grpc.pb.h @@ -7,23 +7,24 @@ #include "service/generic/v1/generic.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace service { @@ -47,23 +48,37 @@ class GenericService final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::DoCommandResponse>> PrepareAsyncDoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::DoCommandResponse>>(PrepareAsyncDoCommandRaw(context, request, cq)); } - class async_interface { + class experimental_async_interface { public: - virtual ~async_interface() {} + virtual ~experimental_async_interface() {} // 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 ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif }; - typedef class async_interface experimental_async_interface; - virtual class async_interface* async() { return nullptr; } - class async_interface* experimental_async() { return async(); } - private: + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef class experimental_async_interface async_interface; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + async_interface* async() { return experimental_async(); } + #endif + virtual class experimental_async_interface* experimental_async() { return nullptr; } + private: 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; }; class Stub final : public StubInterface { public: - Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); ::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)); @@ -71,22 +86,32 @@ class GenericService final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>> PrepareAsyncDoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>>(PrepareAsyncDoCommandRaw(context, request, cq)); } - class async final : - public StubInterface::async_interface { + class experimental_async final : + public StubInterface::experimental_async_interface { public: 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 ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif private: friend class Stub; - explicit async(Stub* stub): stub_(stub) { } + explicit experimental_async(Stub* stub): stub_(stub) { } Stub* stub() { return stub_; } Stub* stub_; }; - class async* async() override { return &async_stub_; } + class experimental_async_interface* experimental_async() override { return &async_stub_; } private: std::shared_ptr< ::grpc::ChannelInterface> channel_; - class async async_stub_{this}; + class experimental_async async_stub_{this}; ::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_DoCommand_; @@ -122,22 +147,36 @@ class GenericService final { }; typedef WithAsyncMethod_DoCommand AsyncService; template - class WithCallbackMethod_DoCommand : public BaseClass { + class ExperimentalWithCallbackMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_DoCommand() { - ::grpc::Service::MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( + ExperimentalWithCallbackMethod_DoCommand() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(0, + new ::grpc_impl::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); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + 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::experimental::MessageAllocator< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(0); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_DoCommand() override { + ~ExperimentalWithCallbackMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -145,11 +184,20 @@ class GenericService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DoCommand( - ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DoCommand( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) + #endif + { return nullptr; } }; - typedef WithCallbackMethod_DoCommand CallbackService; - typedef CallbackService ExperimentalCallbackService; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef ExperimentalWithCallbackMethod_DoCommand CallbackService; + #endif + + typedef ExperimentalWithCallbackMethod_DoCommand ExperimentalCallbackService; template class WithGenericMethod_DoCommand : public BaseClass { private: @@ -188,17 +236,27 @@ class GenericService final { } }; template - class WithRawCallbackMethod_DoCommand : public BaseClass { + class ExperimentalWithRawCallbackMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_DoCommand() { - ::grpc::Service::MarkMethodRawCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_DoCommand() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DoCommand(context, request, response); })); + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DoCommand(context, request, response); })); } - ~WithRawCallbackMethod_DoCommand() override { + ~ExperimentalWithRawCallbackMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -206,8 +264,14 @@ class GenericService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DoCommand( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DoCommand( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template class WithStreamedUnaryMethod_DoCommand : public BaseClass { @@ -218,8 +282,8 @@ class GenericService final { ::grpc::Service::MarkMethodStreamed(0, new ::grpc::internal::StreamedUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* streamer) { return this->StreamedDoCommand(context, streamer); diff --git a/src/viam/api/service/generic/v1/generic.pb.cc b/src/viam/api/service/generic/v1/generic.pb.cc index a91174083..1df6660c3 100644 --- a/src/viam/api/service/generic/v1/generic.pb.cc +++ b/src/viam/api/service/generic/v1/generic.pb.cc @@ -4,22 +4,22 @@ #include "service/generic/v1/generic.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace viam { namespace service { namespace generic { @@ -28,81 +28,54 @@ namespace v1 { } // namespace generic } // namespace service } // namespace viam -static constexpr const ::_pb::EnumDescriptor** - file_level_enum_descriptors_service_2fgeneric_2fv1_2fgeneric_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_service_2fgeneric_2fv1_2fgeneric_2eproto = nullptr; -const ::uint32_t TableStruct_service_2fgeneric_2fv1_2fgeneric_2eproto::offsets[1] = {}; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_service_2fgeneric_2fv1_2fgeneric_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_service_2fgeneric_2fv1_2fgeneric_2eproto = nullptr; +const uint32_t TableStruct_service_2fgeneric_2fv1_2fgeneric_2eproto::offsets[1] = {}; static constexpr ::_pbi::MigrationSchema* schemas = nullptr; static constexpr ::_pb::Message* const* file_default_instances = nullptr; -const char descriptor_table_protodef_service_2fgeneric_2fv1_2fgeneric_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n service/generic/v1/generic.proto\022\027viam" - ".service.generic.v1\032\026common/v1/common.pr" - "oto\032\034google/api/annotations.proto2\233\001\n\016Ge" - "nericService\022\210\001\n\tDoCommand\022 .viam.common" - ".v1.DoCommandRequest\032!.viam.common.v1.Do" - "CommandResponse\"6\202\323\344\223\0020\"./viam/api/v1/se" - "rvice/generic/{name}/do_commandB\316\001\n\033com." - "viam.service.generic.v1B\014GenericProtoP\001Z" - "\"go.viam.com/api/service/generic/v1\242\002\003VS" - "G\252\002\027Viam.Service.Generic.V1\312\002\027Viam\\Servi" - "ce\\Generic\\V1\342\002#Viam\\Service\\Generic\\V1\\" - "GPBMetadata\352\002\032Viam::Service::Generic::V1" - "b\006proto3" -}; -static const ::_pbi::DescriptorTable* const descriptor_table_service_2fgeneric_2fv1_2fgeneric_2eproto_deps[2] = - { - &::descriptor_table_common_2fv1_2fcommon_2eproto, - &::descriptor_table_google_2fapi_2fannotations_2eproto, + +const char descriptor_table_protodef_service_2fgeneric_2fv1_2fgeneric_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n service/generic/v1/generic.proto\022\027viam" + ".service.generic.v1\032\026common/v1/common.pr" + "oto\032\034google/api/annotations.proto2\233\001\n\016Ge" + "nericService\022\210\001\n\tDoCommand\022 .viam.common" + ".v1.DoCommandRequest\032!.viam.common.v1.Do" + "CommandResponse\"6\202\323\344\223\0020\"./viam/api/v1/se" + "rvice/generic/{name}/do_commandBA\n\033com.v" + "iam.service.generic.v1Z\"go.viam.com/api/" + "service/generic/v1b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_service_2fgeneric_2fv1_2fgeneric_2eproto_deps[2] = { + &::descriptor_table_common_2fv1_2fcommon_2eproto, + &::descriptor_table_google_2fapi_2fannotations_2eproto, }; -static ::absl::once_flag descriptor_table_service_2fgeneric_2fv1_2fgeneric_2eproto_once; +static ::_pbi::once_flag descriptor_table_service_2fgeneric_2fv1_2fgeneric_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_service_2fgeneric_2fv1_2fgeneric_2eproto = { - false, - false, - 488, - descriptor_table_protodef_service_2fgeneric_2fv1_2fgeneric_2eproto, + false, false, 346, descriptor_table_protodef_service_2fgeneric_2fv1_2fgeneric_2eproto, "service/generic/v1/generic.proto", - &descriptor_table_service_2fgeneric_2fv1_2fgeneric_2eproto_once, - descriptor_table_service_2fgeneric_2fv1_2fgeneric_2eproto_deps, - 2, - 0, - schemas, - file_default_instances, - TableStruct_service_2fgeneric_2fv1_2fgeneric_2eproto::offsets, - nullptr, - file_level_enum_descriptors_service_2fgeneric_2fv1_2fgeneric_2eproto, + &descriptor_table_service_2fgeneric_2fv1_2fgeneric_2eproto_once, descriptor_table_service_2fgeneric_2fv1_2fgeneric_2eproto_deps, 2, 0, + schemas, file_default_instances, TableStruct_service_2fgeneric_2fv1_2fgeneric_2eproto::offsets, + nullptr, file_level_enum_descriptors_service_2fgeneric_2fv1_2fgeneric_2eproto, file_level_service_descriptors_service_2fgeneric_2fv1_2fgeneric_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_service_2fgeneric_2fv1_2fgeneric_2eproto_getter() { return &descriptor_table_service_2fgeneric_2fv1_2fgeneric_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_service_2fgeneric_2fv1_2fgeneric_2eproto(&descriptor_table_service_2fgeneric_2fv1_2fgeneric_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_service_2fgeneric_2fv1_2fgeneric_2eproto(&descriptor_table_service_2fgeneric_2fv1_2fgeneric_2eproto); namespace viam { namespace service { namespace generic { namespace v1 { + // @@protoc_insertion_point(namespace_scope) } // namespace v1 } // namespace generic } // namespace service } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/service/generic/v1/generic.pb.h b/src/viam/api/service/generic/v1/generic.pb.h index d4c581924..84a848589 100644 --- a/src/viam/api/service/generic/v1/generic.pb.h +++ b/src/viam/api/service/generic/v1/generic.pb.h @@ -1,65 +1,51 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: service/generic/v1/generic.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_service_2fgeneric_2fv1_2fgeneric_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_service_2fgeneric_2fv1_2fgeneric_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_service_2fgeneric_2fv1_2fgeneric_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_service_2fgeneric_2fv1_2fgeneric_2eproto #include #include -#include -#include -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export #include "common/v1/common.pb.h" #include "google/api/annotations.pb.h" // @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - +#include #define PROTOBUF_INTERNAL_EXPORT_service_2fgeneric_2fv1_2fgeneric_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_service_2fgeneric_2fv1_2fgeneric_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_service_2fgeneric_2fv1_2fgeneric_2eproto; -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_service_2fgeneric_2fv1_2fgeneric_2eproto; +PROTOBUF_NAMESPACE_OPEN +PROTOBUF_NAMESPACE_CLOSE namespace viam { namespace service { namespace generic { @@ -68,32 +54,27 @@ namespace v1 { // =================================================================== - // =================================================================== - - // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ // @@protoc_insertion_point(namespace_scope) + } // namespace v1 } // namespace generic } // namespace service } // namespace viam - // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_service_2fgeneric_2fv1_2fgeneric_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_service_2fgeneric_2fv1_2fgeneric_2eproto diff --git a/src/viam/api/service/mlmodel/v1/mlmodel.grpc.pb.cc b/src/viam/api/service/mlmodel/v1/mlmodel.grpc.pb.cc index 2db7b6d30..f73cc1bdf 100644 --- a/src/viam/api/service/mlmodel/v1/mlmodel.grpc.pb.cc +++ b/src/viam/api/service/mlmodel/v1/mlmodel.grpc.pb.cc @@ -6,19 +6,19 @@ #include "service/mlmodel/v1/mlmodel.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace service { namespace mlmodel { @@ -31,68 +31,78 @@ static const char* MLModelService_method_names[] = { std::unique_ptr< MLModelService::Stub> MLModelService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { (void)options; - std::unique_ptr< MLModelService::Stub> stub(new MLModelService::Stub(channel, options)); + std::unique_ptr< MLModelService::Stub> stub(new MLModelService::Stub(channel)); return stub; } -MLModelService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) - : channel_(channel), rpcmethod_Infer_(MLModelService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_Metadata_(MLModelService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) +MLModelService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_Infer_(MLModelService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_Metadata_(MLModelService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status MLModelService::Stub::Infer(::grpc::ClientContext* context, const ::viam::service::mlmodel::v1::InferRequest& request, ::viam::service::mlmodel::v1::InferResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::service::mlmodel::v1::InferRequest, ::viam::service::mlmodel::v1::InferResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Infer_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_Infer_, context, request, response); } -void MLModelService::Stub::async::Infer(::grpc::ClientContext* context, const ::viam::service::mlmodel::v1::InferRequest* request, ::viam::service::mlmodel::v1::InferResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::service::mlmodel::v1::InferRequest, ::viam::service::mlmodel::v1::InferResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Infer_, context, request, response, std::move(f)); +void MLModelService::Stub::experimental_async::Infer(::grpc::ClientContext* context, const ::viam::service::mlmodel::v1::InferRequest* request, ::viam::service::mlmodel::v1::InferResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Infer_, context, request, response, std::move(f)); } -void MLModelService::Stub::async::Infer(::grpc::ClientContext* context, const ::viam::service::mlmodel::v1::InferRequest* request, ::viam::service::mlmodel::v1::InferResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Infer_, context, request, response, reactor); +void MLModelService::Stub::experimental_async::Infer(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::mlmodel::v1::InferResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Infer_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::service::mlmodel::v1::InferResponse>* MLModelService::Stub::PrepareAsyncInferRaw(::grpc::ClientContext* context, const ::viam::service::mlmodel::v1::InferRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::mlmodel::v1::InferResponse, ::viam::service::mlmodel::v1::InferRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Infer_, context, request); +void MLModelService::Stub::experimental_async::Infer(::grpc::ClientContext* context, const ::viam::service::mlmodel::v1::InferRequest* request, ::viam::service::mlmodel::v1::InferResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Infer_, context, request, response, reactor); +} + +void MLModelService::Stub::experimental_async::Infer(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::mlmodel::v1::InferResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Infer_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::service::mlmodel::v1::InferResponse>* MLModelService::Stub::AsyncInferRaw(::grpc::ClientContext* context, const ::viam::service::mlmodel::v1::InferRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncInferRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::mlmodel::v1::InferResponse>::Create(channel_.get(), cq, rpcmethod_Infer_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::mlmodel::v1::InferResponse>* MLModelService::Stub::PrepareAsyncInferRaw(::grpc::ClientContext* context, const ::viam::service::mlmodel::v1::InferRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::mlmodel::v1::InferResponse>::Create(channel_.get(), cq, rpcmethod_Infer_, context, request, false); } ::grpc::Status MLModelService::Stub::Metadata(::grpc::ClientContext* context, const ::viam::service::mlmodel::v1::MetadataRequest& request, ::viam::service::mlmodel::v1::MetadataResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::service::mlmodel::v1::MetadataRequest, ::viam::service::mlmodel::v1::MetadataResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Metadata_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_Metadata_, context, request, response); } -void MLModelService::Stub::async::Metadata(::grpc::ClientContext* context, const ::viam::service::mlmodel::v1::MetadataRequest* request, ::viam::service::mlmodel::v1::MetadataResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::service::mlmodel::v1::MetadataRequest, ::viam::service::mlmodel::v1::MetadataResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Metadata_, context, request, response, std::move(f)); +void MLModelService::Stub::experimental_async::Metadata(::grpc::ClientContext* context, const ::viam::service::mlmodel::v1::MetadataRequest* request, ::viam::service::mlmodel::v1::MetadataResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Metadata_, context, request, response, std::move(f)); } -void MLModelService::Stub::async::Metadata(::grpc::ClientContext* context, const ::viam::service::mlmodel::v1::MetadataRequest* request, ::viam::service::mlmodel::v1::MetadataResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Metadata_, context, request, response, reactor); +void MLModelService::Stub::experimental_async::Metadata(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::mlmodel::v1::MetadataResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Metadata_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::service::mlmodel::v1::MetadataResponse>* MLModelService::Stub::PrepareAsyncMetadataRaw(::grpc::ClientContext* context, const ::viam::service::mlmodel::v1::MetadataRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::mlmodel::v1::MetadataResponse, ::viam::service::mlmodel::v1::MetadataRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Metadata_, context, request); +void MLModelService::Stub::experimental_async::Metadata(::grpc::ClientContext* context, const ::viam::service::mlmodel::v1::MetadataRequest* request, ::viam::service::mlmodel::v1::MetadataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Metadata_, context, request, response, reactor); +} + +void MLModelService::Stub::experimental_async::Metadata(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::mlmodel::v1::MetadataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Metadata_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::service::mlmodel::v1::MetadataResponse>* MLModelService::Stub::AsyncMetadataRaw(::grpc::ClientContext* context, const ::viam::service::mlmodel::v1::MetadataRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncMetadataRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::mlmodel::v1::MetadataResponse>::Create(channel_.get(), cq, rpcmethod_Metadata_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::mlmodel::v1::MetadataResponse>* MLModelService::Stub::PrepareAsyncMetadataRaw(::grpc::ClientContext* context, const ::viam::service::mlmodel::v1::MetadataRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::mlmodel::v1::MetadataResponse>::Create(channel_.get(), cq, rpcmethod_Metadata_, context, request, false); } MLModelService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( MLModelService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< MLModelService::Service, ::viam::service::mlmodel::v1::InferRequest, ::viam::service::mlmodel::v1::InferResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< MLModelService::Service, ::viam::service::mlmodel::v1::InferRequest, ::viam::service::mlmodel::v1::InferResponse>( [](MLModelService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::service::mlmodel::v1::InferRequest* req, ::viam::service::mlmodel::v1::InferResponse* resp) { return service->Infer(ctx, req, resp); @@ -100,9 +110,9 @@ MLModelService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( MLModelService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< MLModelService::Service, ::viam::service::mlmodel::v1::MetadataRequest, ::viam::service::mlmodel::v1::MetadataResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< MLModelService::Service, ::viam::service::mlmodel::v1::MetadataRequest, ::viam::service::mlmodel::v1::MetadataResponse>( [](MLModelService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::service::mlmodel::v1::MetadataRequest* req, ::viam::service::mlmodel::v1::MetadataResponse* resp) { return service->Metadata(ctx, req, resp); diff --git a/src/viam/api/service/mlmodel/v1/mlmodel.grpc.pb.h b/src/viam/api/service/mlmodel/v1/mlmodel.grpc.pb.h index 5f0fcdb55..7768f6cfc 100644 --- a/src/viam/api/service/mlmodel/v1/mlmodel.grpc.pb.h +++ b/src/viam/api/service/mlmodel/v1/mlmodel.grpc.pb.h @@ -7,23 +7,24 @@ #include "service/mlmodel/v1/mlmodel.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace service { @@ -56,20 +57,44 @@ class MLModelService final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::mlmodel::v1::MetadataResponse>> PrepareAsyncMetadata(::grpc::ClientContext* context, const ::viam::service::mlmodel::v1::MetadataRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::mlmodel::v1::MetadataResponse>>(PrepareAsyncMetadataRaw(context, request, cq)); } - class async_interface { + class experimental_async_interface { public: - virtual ~async_interface() {} + virtual ~experimental_async_interface() {} // Infer takes an already ordered input tensor as a map, makes an inference on the model, and returns an output data map. virtual void Infer(::grpc::ClientContext* context, const ::viam::service::mlmodel::v1::InferRequest* request, ::viam::service::mlmodel::v1::InferResponse* response, std::function) = 0; + virtual void Infer(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::mlmodel::v1::InferResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void Infer(::grpc::ClientContext* context, const ::viam::service::mlmodel::v1::InferRequest* request, ::viam::service::mlmodel::v1::InferResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void Infer(::grpc::ClientContext* context, const ::viam::service::mlmodel::v1::InferRequest* request, ::viam::service::mlmodel::v1::InferResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void Infer(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::mlmodel::v1::InferResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void Infer(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::mlmodel::v1::InferResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Metadata returns the metadata associated with the ML model. virtual void Metadata(::grpc::ClientContext* context, const ::viam::service::mlmodel::v1::MetadataRequest* request, ::viam::service::mlmodel::v1::MetadataResponse* response, std::function) = 0; + virtual void Metadata(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::mlmodel::v1::MetadataResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void Metadata(::grpc::ClientContext* context, const ::viam::service::mlmodel::v1::MetadataRequest* request, ::viam::service::mlmodel::v1::MetadataResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void Metadata(::grpc::ClientContext* context, const ::viam::service::mlmodel::v1::MetadataRequest* request, ::viam::service::mlmodel::v1::MetadataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void Metadata(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::mlmodel::v1::MetadataResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void Metadata(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::mlmodel::v1::MetadataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif }; - typedef class async_interface experimental_async_interface; - virtual class async_interface* async() { return nullptr; } - class async_interface* experimental_async() { return async(); } - private: + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef class experimental_async_interface async_interface; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + async_interface* async() { return experimental_async(); } + #endif + virtual class experimental_async_interface* experimental_async() { return nullptr; } + private: virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::mlmodel::v1::InferResponse>* AsyncInferRaw(::grpc::ClientContext* context, const ::viam::service::mlmodel::v1::InferRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::mlmodel::v1::InferResponse>* PrepareAsyncInferRaw(::grpc::ClientContext* context, const ::viam::service::mlmodel::v1::InferRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::mlmodel::v1::MetadataResponse>* AsyncMetadataRaw(::grpc::ClientContext* context, const ::viam::service::mlmodel::v1::MetadataRequest& request, ::grpc::CompletionQueue* cq) = 0; @@ -77,7 +102,7 @@ class MLModelService final { }; class Stub final : public StubInterface { public: - Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); ::grpc::Status Infer(::grpc::ClientContext* context, const ::viam::service::mlmodel::v1::InferRequest& request, ::viam::service::mlmodel::v1::InferResponse* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::mlmodel::v1::InferResponse>> AsyncInfer(::grpc::ClientContext* context, const ::viam::service::mlmodel::v1::InferRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::mlmodel::v1::InferResponse>>(AsyncInferRaw(context, request, cq)); @@ -92,24 +117,44 @@ class MLModelService final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::mlmodel::v1::MetadataResponse>> PrepareAsyncMetadata(::grpc::ClientContext* context, const ::viam::service::mlmodel::v1::MetadataRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::mlmodel::v1::MetadataResponse>>(PrepareAsyncMetadataRaw(context, request, cq)); } - class async final : - public StubInterface::async_interface { + class experimental_async final : + public StubInterface::experimental_async_interface { public: void Infer(::grpc::ClientContext* context, const ::viam::service::mlmodel::v1::InferRequest* request, ::viam::service::mlmodel::v1::InferResponse* response, std::function) override; + void Infer(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::mlmodel::v1::InferResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void Infer(::grpc::ClientContext* context, const ::viam::service::mlmodel::v1::InferRequest* request, ::viam::service::mlmodel::v1::InferResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void Infer(::grpc::ClientContext* context, const ::viam::service::mlmodel::v1::InferRequest* request, ::viam::service::mlmodel::v1::InferResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void Infer(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::mlmodel::v1::InferResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void Infer(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::mlmodel::v1::InferResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void Metadata(::grpc::ClientContext* context, const ::viam::service::mlmodel::v1::MetadataRequest* request, ::viam::service::mlmodel::v1::MetadataResponse* response, std::function) override; + void Metadata(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::mlmodel::v1::MetadataResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void Metadata(::grpc::ClientContext* context, const ::viam::service::mlmodel::v1::MetadataRequest* request, ::viam::service::mlmodel::v1::MetadataResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void Metadata(::grpc::ClientContext* context, const ::viam::service::mlmodel::v1::MetadataRequest* request, ::viam::service::mlmodel::v1::MetadataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void Metadata(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::mlmodel::v1::MetadataResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void Metadata(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::mlmodel::v1::MetadataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif private: friend class Stub; - explicit async(Stub* stub): stub_(stub) { } + explicit experimental_async(Stub* stub): stub_(stub) { } Stub* stub() { return stub_; } Stub* stub_; }; - class async* async() override { return &async_stub_; } + class experimental_async_interface* experimental_async() override { return &async_stub_; } private: std::shared_ptr< ::grpc::ChannelInterface> channel_; - class async async_stub_{this}; + class experimental_async async_stub_{this}; ::grpc::ClientAsyncResponseReader< ::viam::service::mlmodel::v1::InferResponse>* AsyncInferRaw(::grpc::ClientContext* context, const ::viam::service::mlmodel::v1::InferRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::service::mlmodel::v1::InferResponse>* PrepareAsyncInferRaw(::grpc::ClientContext* context, const ::viam::service::mlmodel::v1::InferRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::service::mlmodel::v1::MetadataResponse>* AsyncMetadataRaw(::grpc::ClientContext* context, const ::viam::service::mlmodel::v1::MetadataRequest& request, ::grpc::CompletionQueue* cq) override; @@ -170,22 +215,36 @@ class MLModelService final { }; typedef WithAsyncMethod_Infer > AsyncService; template - class WithCallbackMethod_Infer : public BaseClass { + class ExperimentalWithCallbackMethod_Infer : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_Infer() { - ::grpc::Service::MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::viam::service::mlmodel::v1::InferRequest, ::viam::service::mlmodel::v1::InferResponse>( + ExperimentalWithCallbackMethod_Infer() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::mlmodel::v1::InferRequest, ::viam::service::mlmodel::v1::InferResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::service::mlmodel::v1::InferRequest* request, ::viam::service::mlmodel::v1::InferResponse* response) { return this->Infer(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::service::mlmodel::v1::InferRequest* request, ::viam::service::mlmodel::v1::InferResponse* response) { return this->Infer(context, request, response); }));} void SetMessageAllocatorFor_Infer( - ::grpc::MessageAllocator< ::viam::service::mlmodel::v1::InferRequest, ::viam::service::mlmodel::v1::InferResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::service::mlmodel::v1::InferRequest, ::viam::service::mlmodel::v1::InferResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::mlmodel::v1::InferRequest, ::viam::service::mlmodel::v1::InferResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(0); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::mlmodel::v1::InferRequest, ::viam::service::mlmodel::v1::InferResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_Infer() override { + ~ExperimentalWithCallbackMethod_Infer() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -193,26 +252,46 @@ class MLModelService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* Infer( - ::grpc::CallbackServerContext* /*context*/, const ::viam::service::mlmodel::v1::InferRequest* /*request*/, ::viam::service::mlmodel::v1::InferResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::mlmodel::v1::InferRequest* /*request*/, ::viam::service::mlmodel::v1::InferResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* Infer( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::service::mlmodel::v1::InferRequest* /*request*/, ::viam::service::mlmodel::v1::InferResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_Metadata : public BaseClass { + class ExperimentalWithCallbackMethod_Metadata : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_Metadata() { - ::grpc::Service::MarkMethodCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::viam::service::mlmodel::v1::MetadataRequest, ::viam::service::mlmodel::v1::MetadataResponse>( + ExperimentalWithCallbackMethod_Metadata() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::mlmodel::v1::MetadataRequest, ::viam::service::mlmodel::v1::MetadataResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::service::mlmodel::v1::MetadataRequest* request, ::viam::service::mlmodel::v1::MetadataResponse* response) { return this->Metadata(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::service::mlmodel::v1::MetadataRequest* request, ::viam::service::mlmodel::v1::MetadataResponse* response) { return this->Metadata(context, request, response); }));} void SetMessageAllocatorFor_Metadata( - ::grpc::MessageAllocator< ::viam::service::mlmodel::v1::MetadataRequest, ::viam::service::mlmodel::v1::MetadataResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::service::mlmodel::v1::MetadataRequest, ::viam::service::mlmodel::v1::MetadataResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::mlmodel::v1::MetadataRequest, ::viam::service::mlmodel::v1::MetadataResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(1); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::mlmodel::v1::MetadataRequest, ::viam::service::mlmodel::v1::MetadataResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_Metadata() override { + ~ExperimentalWithCallbackMethod_Metadata() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -220,11 +299,20 @@ class MLModelService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* Metadata( - ::grpc::CallbackServerContext* /*context*/, const ::viam::service::mlmodel::v1::MetadataRequest* /*request*/, ::viam::service::mlmodel::v1::MetadataResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::mlmodel::v1::MetadataRequest* /*request*/, ::viam::service::mlmodel::v1::MetadataResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* Metadata( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::service::mlmodel::v1::MetadataRequest* /*request*/, ::viam::service::mlmodel::v1::MetadataResponse* /*response*/) + #endif + { return nullptr; } }; - typedef WithCallbackMethod_Infer > CallbackService; - typedef CallbackService ExperimentalCallbackService; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef ExperimentalWithCallbackMethod_Infer > CallbackService; + #endif + + typedef ExperimentalWithCallbackMethod_Infer > ExperimentalCallbackService; template class WithGenericMethod_Infer : public BaseClass { private: @@ -300,17 +388,27 @@ class MLModelService final { } }; template - class WithRawCallbackMethod_Infer : public BaseClass { + class ExperimentalWithRawCallbackMethod_Infer : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_Infer() { - ::grpc::Service::MarkMethodRawCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_Infer() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Infer(context, request, response); })); - } - ~WithRawCallbackMethod_Infer() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Infer(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_Infer() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -318,21 +416,37 @@ class MLModelService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* Infer( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* Infer( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_Metadata : public BaseClass { + class ExperimentalWithRawCallbackMethod_Metadata : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_Metadata() { - ::grpc::Service::MarkMethodRawCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_Metadata() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Metadata(context, request, response); })); - } - ~WithRawCallbackMethod_Metadata() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Metadata(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_Metadata() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -340,8 +454,14 @@ class MLModelService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* Metadata( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* Metadata( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template class WithStreamedUnaryMethod_Infer : public BaseClass { @@ -352,8 +472,8 @@ class MLModelService final { ::grpc::Service::MarkMethodStreamed(0, new ::grpc::internal::StreamedUnaryHandler< ::viam::service::mlmodel::v1::InferRequest, ::viam::service::mlmodel::v1::InferResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::service::mlmodel::v1::InferRequest, ::viam::service::mlmodel::v1::InferResponse>* streamer) { return this->StreamedInfer(context, streamer); @@ -379,8 +499,8 @@ class MLModelService final { ::grpc::Service::MarkMethodStreamed(1, new ::grpc::internal::StreamedUnaryHandler< ::viam::service::mlmodel::v1::MetadataRequest, ::viam::service::mlmodel::v1::MetadataResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::service::mlmodel::v1::MetadataRequest, ::viam::service::mlmodel::v1::MetadataResponse>* streamer) { return this->StreamedMetadata(context, streamer); diff --git a/src/viam/api/service/mlmodel/v1/mlmodel.pb.cc b/src/viam/api/service/mlmodel/v1/mlmodel.pb.cc index d543ef48e..7c00a5bcc 100644 --- a/src/viam/api/service/mlmodel/v1/mlmodel.pb.cc +++ b/src/viam/api/service/mlmodel/v1/mlmodel.pb.cc @@ -4,1125 +4,883 @@ #include "service/mlmodel/v1/mlmodel.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace viam { namespace service { namespace mlmodel { namespace v1 { - -inline constexpr FlatTensorDataUInt8::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : data_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR FlatTensorDataUInt8::FlatTensorDataUInt8(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct FlatTensorDataUInt8DefaultTypeInternal { - PROTOBUF_CONSTEXPR FlatTensorDataUInt8DefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~FlatTensorDataUInt8DefaultTypeInternal() {} +PROTOBUF_CONSTEXPR InferRequest::InferRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , input_tensors_(nullptr) + , extra_(nullptr){} +struct InferRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR InferRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~InferRequestDefaultTypeInternal() {} union { - FlatTensorDataUInt8 _instance; + InferRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlatTensorDataUInt8DefaultTypeInternal _FlatTensorDataUInt8_default_instance_; - -inline constexpr FlatTensorDataUInt64::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : data_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR FlatTensorDataUInt64::FlatTensorDataUInt64(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct FlatTensorDataUInt64DefaultTypeInternal { - PROTOBUF_CONSTEXPR FlatTensorDataUInt64DefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~FlatTensorDataUInt64DefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 InferRequestDefaultTypeInternal _InferRequest_default_instance_; +PROTOBUF_CONSTEXPR InferResponse::InferResponse( + ::_pbi::ConstantInitialized) + : output_tensors_(nullptr){} +struct InferResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR InferResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~InferResponseDefaultTypeInternal() {} union { - FlatTensorDataUInt64 _instance; + InferResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlatTensorDataUInt64DefaultTypeInternal _FlatTensorDataUInt64_default_instance_; - -inline constexpr FlatTensorDataUInt32::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : data_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR FlatTensorDataUInt32::FlatTensorDataUInt32(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct FlatTensorDataUInt32DefaultTypeInternal { - PROTOBUF_CONSTEXPR FlatTensorDataUInt32DefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~FlatTensorDataUInt32DefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 InferResponseDefaultTypeInternal _InferResponse_default_instance_; +PROTOBUF_CONSTEXPR MetadataRequest::MetadataRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} +struct MetadataRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR MetadataRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~MetadataRequestDefaultTypeInternal() {} union { - FlatTensorDataUInt32 _instance; + MetadataRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlatTensorDataUInt32DefaultTypeInternal _FlatTensorDataUInt32_default_instance_; - -inline constexpr FlatTensorDataUInt16::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : data_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR FlatTensorDataUInt16::FlatTensorDataUInt16(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct FlatTensorDataUInt16DefaultTypeInternal { - PROTOBUF_CONSTEXPR FlatTensorDataUInt16DefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~FlatTensorDataUInt16DefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MetadataRequestDefaultTypeInternal _MetadataRequest_default_instance_; +PROTOBUF_CONSTEXPR MetadataResponse::MetadataResponse( + ::_pbi::ConstantInitialized) + : metadata_(nullptr){} +struct MetadataResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR MetadataResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~MetadataResponseDefaultTypeInternal() {} union { - FlatTensorDataUInt16 _instance; + MetadataResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlatTensorDataUInt16DefaultTypeInternal _FlatTensorDataUInt16_default_instance_; - -inline constexpr FlatTensorDataInt8::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : data_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR FlatTensorDataInt8::FlatTensorDataInt8(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct FlatTensorDataInt8DefaultTypeInternal { - PROTOBUF_CONSTEXPR FlatTensorDataInt8DefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~FlatTensorDataInt8DefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MetadataResponseDefaultTypeInternal _MetadataResponse_default_instance_; +PROTOBUF_CONSTEXPR Metadata::Metadata( + ::_pbi::ConstantInitialized) + : input_info_() + , output_info_() + , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , type_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , description_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct MetadataDefaultTypeInternal { + PROTOBUF_CONSTEXPR MetadataDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~MetadataDefaultTypeInternal() {} union { - FlatTensorDataInt8 _instance; + Metadata _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlatTensorDataInt8DefaultTypeInternal _FlatTensorDataInt8_default_instance_; - -inline constexpr FlatTensorDataInt64::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : data_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR FlatTensorDataInt64::FlatTensorDataInt64(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct FlatTensorDataInt64DefaultTypeInternal { - PROTOBUF_CONSTEXPR FlatTensorDataInt64DefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~FlatTensorDataInt64DefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MetadataDefaultTypeInternal _Metadata_default_instance_; +PROTOBUF_CONSTEXPR TensorInfo::TensorInfo( + ::_pbi::ConstantInitialized) + : shape_() + , _shape_cached_byte_size_(0) + , associated_files_() + , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , description_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , data_type_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} +struct TensorInfoDefaultTypeInternal { + PROTOBUF_CONSTEXPR TensorInfoDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~TensorInfoDefaultTypeInternal() {} union { - FlatTensorDataInt64 _instance; + TensorInfo _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlatTensorDataInt64DefaultTypeInternal _FlatTensorDataInt64_default_instance_; - -inline constexpr FlatTensorDataInt32::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : data_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR FlatTensorDataInt32::FlatTensorDataInt32(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct FlatTensorDataInt32DefaultTypeInternal { - PROTOBUF_CONSTEXPR FlatTensorDataInt32DefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~FlatTensorDataInt32DefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TensorInfoDefaultTypeInternal _TensorInfo_default_instance_; +PROTOBUF_CONSTEXPR File::File( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , description_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , label_type_(0) +{} +struct FileDefaultTypeInternal { + PROTOBUF_CONSTEXPR FileDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~FileDefaultTypeInternal() {} union { - FlatTensorDataInt32 _instance; + File _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlatTensorDataInt32DefaultTypeInternal _FlatTensorDataInt32_default_instance_; - -inline constexpr FlatTensorDataInt16::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : data_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR FlatTensorDataInt16::FlatTensorDataInt16(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct FlatTensorDataInt16DefaultTypeInternal { - PROTOBUF_CONSTEXPR FlatTensorDataInt16DefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~FlatTensorDataInt16DefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FileDefaultTypeInternal _File_default_instance_; +PROTOBUF_CONSTEXPR FlatTensorDataInt8::FlatTensorDataInt8( + ::_pbi::ConstantInitialized) + : data_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct FlatTensorDataInt8DefaultTypeInternal { + PROTOBUF_CONSTEXPR FlatTensorDataInt8DefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~FlatTensorDataInt8DefaultTypeInternal() {} union { - FlatTensorDataInt16 _instance; + FlatTensorDataInt8 _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlatTensorDataInt16DefaultTypeInternal _FlatTensorDataInt16_default_instance_; - -inline constexpr FlatTensorDataFloat::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : data_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR FlatTensorDataFloat::FlatTensorDataFloat(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct FlatTensorDataFloatDefaultTypeInternal { - PROTOBUF_CONSTEXPR FlatTensorDataFloatDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~FlatTensorDataFloatDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlatTensorDataInt8DefaultTypeInternal _FlatTensorDataInt8_default_instance_; +PROTOBUF_CONSTEXPR FlatTensorDataUInt8::FlatTensorDataUInt8( + ::_pbi::ConstantInitialized) + : data_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct FlatTensorDataUInt8DefaultTypeInternal { + PROTOBUF_CONSTEXPR FlatTensorDataUInt8DefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~FlatTensorDataUInt8DefaultTypeInternal() {} union { - FlatTensorDataFloat _instance; + FlatTensorDataUInt8 _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlatTensorDataFloatDefaultTypeInternal _FlatTensorDataFloat_default_instance_; - -inline constexpr FlatTensorDataDouble::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : data_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR FlatTensorDataDouble::FlatTensorDataDouble(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct FlatTensorDataDoubleDefaultTypeInternal { - PROTOBUF_CONSTEXPR FlatTensorDataDoubleDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~FlatTensorDataDoubleDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlatTensorDataUInt8DefaultTypeInternal _FlatTensorDataUInt8_default_instance_; +PROTOBUF_CONSTEXPR FlatTensorDataInt16::FlatTensorDataInt16( + ::_pbi::ConstantInitialized) + : data_(){} +struct FlatTensorDataInt16DefaultTypeInternal { + PROTOBUF_CONSTEXPR FlatTensorDataInt16DefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~FlatTensorDataInt16DefaultTypeInternal() {} union { - FlatTensorDataDouble _instance; + FlatTensorDataInt16 _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlatTensorDataDoubleDefaultTypeInternal _FlatTensorDataDouble_default_instance_; - -inline constexpr File::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - description_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - label_type_{static_cast< ::viam::service::mlmodel::v1::LabelType >(0)}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR File::File(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct FileDefaultTypeInternal { - PROTOBUF_CONSTEXPR FileDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~FileDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlatTensorDataInt16DefaultTypeInternal _FlatTensorDataInt16_default_instance_; +PROTOBUF_CONSTEXPR FlatTensorDataUInt16::FlatTensorDataUInt16( + ::_pbi::ConstantInitialized) + : data_(){} +struct FlatTensorDataUInt16DefaultTypeInternal { + PROTOBUF_CONSTEXPR FlatTensorDataUInt16DefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~FlatTensorDataUInt16DefaultTypeInternal() {} union { - File _instance; + FlatTensorDataUInt16 _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FileDefaultTypeInternal _File_default_instance_; - -inline constexpr TensorInfo::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - shape_{}, - _shape_cached_byte_size_{0}, - associated_files_{}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - description_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - data_type_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR TensorInfo::TensorInfo(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct TensorInfoDefaultTypeInternal { - PROTOBUF_CONSTEXPR TensorInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TensorInfoDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlatTensorDataUInt16DefaultTypeInternal _FlatTensorDataUInt16_default_instance_; +PROTOBUF_CONSTEXPR FlatTensorDataInt32::FlatTensorDataInt32( + ::_pbi::ConstantInitialized) + : data_(){} +struct FlatTensorDataInt32DefaultTypeInternal { + PROTOBUF_CONSTEXPR FlatTensorDataInt32DefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~FlatTensorDataInt32DefaultTypeInternal() {} union { - TensorInfo _instance; + FlatTensorDataInt32 _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TensorInfoDefaultTypeInternal _TensorInfo_default_instance_; - -inline constexpr MetadataRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR MetadataRequest::MetadataRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct MetadataRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR MetadataRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~MetadataRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlatTensorDataInt32DefaultTypeInternal _FlatTensorDataInt32_default_instance_; +PROTOBUF_CONSTEXPR FlatTensorDataUInt32::FlatTensorDataUInt32( + ::_pbi::ConstantInitialized) + : data_(){} +struct FlatTensorDataUInt32DefaultTypeInternal { + PROTOBUF_CONSTEXPR FlatTensorDataUInt32DefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~FlatTensorDataUInt32DefaultTypeInternal() {} union { - MetadataRequest _instance; + FlatTensorDataUInt32 _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MetadataRequestDefaultTypeInternal _MetadataRequest_default_instance_; - -inline constexpr FlatTensor::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : shape_{}, - tensor_{}, - _cached_size_{0}, - _oneof_case_{} {} - -template -PROTOBUF_CONSTEXPR FlatTensor::FlatTensor(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct FlatTensorDefaultTypeInternal { - PROTOBUF_CONSTEXPR FlatTensorDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~FlatTensorDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlatTensorDataUInt32DefaultTypeInternal _FlatTensorDataUInt32_default_instance_; +PROTOBUF_CONSTEXPR FlatTensorDataInt64::FlatTensorDataInt64( + ::_pbi::ConstantInitialized) + : data_(){} +struct FlatTensorDataInt64DefaultTypeInternal { + PROTOBUF_CONSTEXPR FlatTensorDataInt64DefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~FlatTensorDataInt64DefaultTypeInternal() {} union { - FlatTensor _instance; + FlatTensorDataInt64 _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlatTensorDefaultTypeInternal _FlatTensor_default_instance_; - -inline constexpr Metadata::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : input_info_{}, - output_info_{}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - type_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - description_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR Metadata::Metadata(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct MetadataDefaultTypeInternal { - PROTOBUF_CONSTEXPR MetadataDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~MetadataDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlatTensorDataInt64DefaultTypeInternal _FlatTensorDataInt64_default_instance_; +PROTOBUF_CONSTEXPR FlatTensorDataUInt64::FlatTensorDataUInt64( + ::_pbi::ConstantInitialized) + : data_(){} +struct FlatTensorDataUInt64DefaultTypeInternal { + PROTOBUF_CONSTEXPR FlatTensorDataUInt64DefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~FlatTensorDataUInt64DefaultTypeInternal() {} union { - Metadata _instance; + FlatTensorDataUInt64 _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MetadataDefaultTypeInternal _Metadata_default_instance_; - template -PROTOBUF_CONSTEXPR FlatTensors_TensorsEntry_DoNotUse::FlatTensors_TensorsEntry_DoNotUse(::_pbi::ConstantInitialized) {} -struct FlatTensors_TensorsEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR FlatTensors_TensorsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~FlatTensors_TensorsEntry_DoNotUseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlatTensorDataUInt64DefaultTypeInternal _FlatTensorDataUInt64_default_instance_; +PROTOBUF_CONSTEXPR FlatTensorDataFloat::FlatTensorDataFloat( + ::_pbi::ConstantInitialized) + : data_(){} +struct FlatTensorDataFloatDefaultTypeInternal { + PROTOBUF_CONSTEXPR FlatTensorDataFloatDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~FlatTensorDataFloatDefaultTypeInternal() {} union { - FlatTensors_TensorsEntry_DoNotUse _instance; + FlatTensorDataFloat _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlatTensors_TensorsEntry_DoNotUseDefaultTypeInternal _FlatTensors_TensorsEntry_DoNotUse_default_instance_; - -inline constexpr MetadataResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - metadata_{nullptr} {} - -template -PROTOBUF_CONSTEXPR MetadataResponse::MetadataResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct MetadataResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR MetadataResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~MetadataResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlatTensorDataFloatDefaultTypeInternal _FlatTensorDataFloat_default_instance_; +PROTOBUF_CONSTEXPR FlatTensorDataDouble::FlatTensorDataDouble( + ::_pbi::ConstantInitialized) + : data_(){} +struct FlatTensorDataDoubleDefaultTypeInternal { + PROTOBUF_CONSTEXPR FlatTensorDataDoubleDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~FlatTensorDataDoubleDefaultTypeInternal() {} union { - MetadataResponse _instance; + FlatTensorDataDouble _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MetadataResponseDefaultTypeInternal _MetadataResponse_default_instance_; - -inline constexpr FlatTensors::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : tensors_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR FlatTensors::FlatTensors(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct FlatTensorsDefaultTypeInternal { - PROTOBUF_CONSTEXPR FlatTensorsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~FlatTensorsDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlatTensorDataDoubleDefaultTypeInternal _FlatTensorDataDouble_default_instance_; +PROTOBUF_CONSTEXPR FlatTensor::FlatTensor( + ::_pbi::ConstantInitialized) + : shape_() + , _oneof_case_{}{} +struct FlatTensorDefaultTypeInternal { + PROTOBUF_CONSTEXPR FlatTensorDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~FlatTensorDefaultTypeInternal() {} union { - FlatTensors _instance; + FlatTensor _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlatTensorsDefaultTypeInternal _FlatTensors_default_instance_; - -inline constexpr InferResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - output_tensors_{nullptr} {} - -template -PROTOBUF_CONSTEXPR InferResponse::InferResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct InferResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR InferResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~InferResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlatTensorDefaultTypeInternal _FlatTensor_default_instance_; +PROTOBUF_CONSTEXPR FlatTensors_TensorsEntry_DoNotUse::FlatTensors_TensorsEntry_DoNotUse( + ::_pbi::ConstantInitialized){} +struct FlatTensors_TensorsEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR FlatTensors_TensorsEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~FlatTensors_TensorsEntry_DoNotUseDefaultTypeInternal() {} union { - InferResponse _instance; + FlatTensors_TensorsEntry_DoNotUse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 InferResponseDefaultTypeInternal _InferResponse_default_instance_; - -inline constexpr InferRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - input_tensors_{nullptr}, - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR InferRequest::InferRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct InferRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR InferRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~InferRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlatTensors_TensorsEntry_DoNotUseDefaultTypeInternal _FlatTensors_TensorsEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR FlatTensors::FlatTensors( + ::_pbi::ConstantInitialized) + : tensors_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}){} +struct FlatTensorsDefaultTypeInternal { + PROTOBUF_CONSTEXPR FlatTensorsDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~FlatTensorsDefaultTypeInternal() {} union { - InferRequest _instance; + FlatTensors _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 InferRequestDefaultTypeInternal _InferRequest_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlatTensorsDefaultTypeInternal _FlatTensors_default_instance_; } // namespace v1 } // namespace mlmodel } // namespace service } // namespace viam static ::_pb::Metadata file_level_metadata_service_2fmlmodel_2fv1_2fmlmodel_2eproto[20]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_service_2fmlmodel_2fv1_2fmlmodel_2eproto[1]; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_service_2fmlmodel_2fv1_2fmlmodel_2eproto = nullptr; -const ::uint32_t TableStruct_service_2fmlmodel_2fv1_2fmlmodel_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::InferRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::InferRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::InferRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::InferRequest, _impl_.input_tensors_), - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::InferRequest, _impl_.extra_), - ~0u, - 0, - 1, - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::InferResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::InferResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::InferResponse, _impl_.output_tensors_), - 0, - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::MetadataRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::MetadataRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::MetadataRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::MetadataRequest, _impl_.extra_), - ~0u, - 0, - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::MetadataResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::MetadataResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::MetadataResponse, _impl_.metadata_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::Metadata, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::Metadata, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::Metadata, _impl_.type_), - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::Metadata, _impl_.description_), - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::Metadata, _impl_.input_info_), - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::Metadata, _impl_.output_info_), - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::TensorInfo, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::TensorInfo, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::TensorInfo, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::TensorInfo, _impl_.description_), - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::TensorInfo, _impl_.data_type_), - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::TensorInfo, _impl_.shape_), - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::TensorInfo, _impl_.associated_files_), - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::TensorInfo, _impl_.extra_), - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::File, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::File, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::File, _impl_.description_), - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::File, _impl_.label_type_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensorDataInt8, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensorDataInt8, _impl_.data_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensorDataUInt8, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensorDataUInt8, _impl_.data_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensorDataInt16, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensorDataInt16, _impl_.data_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensorDataUInt16, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensorDataUInt16, _impl_.data_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensorDataInt32, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensorDataInt32, _impl_.data_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensorDataUInt32, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensorDataUInt32, _impl_.data_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensorDataInt64, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensorDataInt64, _impl_.data_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensorDataUInt64, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensorDataUInt64, _impl_.data_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensorDataFloat, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensorDataFloat, _impl_.data_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensorDataDouble, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensorDataDouble, _impl_.data_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensor, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensor, _impl_._oneof_case_[0]), - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensor, _impl_.shape_), - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensor, _impl_.tensor_), - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensors_TensorsEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensors_TensorsEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensors_TensorsEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensors_TensorsEntry_DoNotUse, value_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensors, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensors, _impl_.tensors_), +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_service_2fmlmodel_2fv1_2fmlmodel_2eproto = nullptr; + +const uint32_t TableStruct_service_2fmlmodel_2fv1_2fmlmodel_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::InferRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::InferRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::InferRequest, input_tensors_), + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::InferRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::InferResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::InferResponse, output_tensors_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::MetadataRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::MetadataRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::MetadataRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::MetadataResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::MetadataResponse, metadata_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::Metadata, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::Metadata, name_), + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::Metadata, type_), + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::Metadata, description_), + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::Metadata, input_info_), + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::Metadata, output_info_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::TensorInfo, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::TensorInfo, name_), + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::TensorInfo, description_), + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::TensorInfo, data_type_), + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::TensorInfo, shape_), + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::TensorInfo, associated_files_), + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::TensorInfo, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::File, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::File, name_), + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::File, description_), + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::File, label_type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensorDataInt8, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensorDataInt8, data_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensorDataUInt8, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensorDataUInt8, data_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensorDataInt16, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensorDataInt16, data_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensorDataUInt16, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensorDataUInt16, data_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensorDataInt32, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensorDataInt32, data_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensorDataUInt32, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensorDataUInt32, data_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensorDataInt64, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensorDataInt64, data_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensorDataUInt64, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensorDataUInt64, data_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensorDataFloat, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensorDataFloat, data_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensorDataDouble, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensorDataDouble, data_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensor, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensor, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensor, shape_), + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensor, tensor_), + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensors_TensorsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensors_TensorsEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensors_TensorsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensors_TensorsEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensors, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensors, tensors_), }; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, 11, -1, sizeof(::viam::service::mlmodel::v1::InferRequest)}, - {14, 23, -1, sizeof(::viam::service::mlmodel::v1::InferResponse)}, - {24, 34, -1, sizeof(::viam::service::mlmodel::v1::MetadataRequest)}, - {36, 45, -1, sizeof(::viam::service::mlmodel::v1::MetadataResponse)}, - {46, -1, -1, sizeof(::viam::service::mlmodel::v1::Metadata)}, - {59, 73, -1, sizeof(::viam::service::mlmodel::v1::TensorInfo)}, - {79, -1, -1, sizeof(::viam::service::mlmodel::v1::File)}, - {90, -1, -1, sizeof(::viam::service::mlmodel::v1::FlatTensorDataInt8)}, - {99, -1, -1, sizeof(::viam::service::mlmodel::v1::FlatTensorDataUInt8)}, - {108, -1, -1, sizeof(::viam::service::mlmodel::v1::FlatTensorDataInt16)}, - {117, -1, -1, sizeof(::viam::service::mlmodel::v1::FlatTensorDataUInt16)}, - {126, -1, -1, sizeof(::viam::service::mlmodel::v1::FlatTensorDataInt32)}, - {135, -1, -1, sizeof(::viam::service::mlmodel::v1::FlatTensorDataUInt32)}, - {144, -1, -1, sizeof(::viam::service::mlmodel::v1::FlatTensorDataInt64)}, - {153, -1, -1, sizeof(::viam::service::mlmodel::v1::FlatTensorDataUInt64)}, - {162, -1, -1, sizeof(::viam::service::mlmodel::v1::FlatTensorDataFloat)}, - {171, -1, -1, sizeof(::viam::service::mlmodel::v1::FlatTensorDataDouble)}, - {180, -1, -1, sizeof(::viam::service::mlmodel::v1::FlatTensor)}, - {200, 210, -1, sizeof(::viam::service::mlmodel::v1::FlatTensors_TensorsEntry_DoNotUse)}, - {212, -1, -1, sizeof(::viam::service::mlmodel::v1::FlatTensors)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::service::mlmodel::v1::InferRequest)}, + { 9, -1, -1, sizeof(::viam::service::mlmodel::v1::InferResponse)}, + { 16, -1, -1, sizeof(::viam::service::mlmodel::v1::MetadataRequest)}, + { 24, -1, -1, sizeof(::viam::service::mlmodel::v1::MetadataResponse)}, + { 31, -1, -1, sizeof(::viam::service::mlmodel::v1::Metadata)}, + { 42, -1, -1, sizeof(::viam::service::mlmodel::v1::TensorInfo)}, + { 54, -1, -1, sizeof(::viam::service::mlmodel::v1::File)}, + { 63, -1, -1, sizeof(::viam::service::mlmodel::v1::FlatTensorDataInt8)}, + { 70, -1, -1, sizeof(::viam::service::mlmodel::v1::FlatTensorDataUInt8)}, + { 77, -1, -1, sizeof(::viam::service::mlmodel::v1::FlatTensorDataInt16)}, + { 84, -1, -1, sizeof(::viam::service::mlmodel::v1::FlatTensorDataUInt16)}, + { 91, -1, -1, sizeof(::viam::service::mlmodel::v1::FlatTensorDataInt32)}, + { 98, -1, -1, sizeof(::viam::service::mlmodel::v1::FlatTensorDataUInt32)}, + { 105, -1, -1, sizeof(::viam::service::mlmodel::v1::FlatTensorDataInt64)}, + { 112, -1, -1, sizeof(::viam::service::mlmodel::v1::FlatTensorDataUInt64)}, + { 119, -1, -1, sizeof(::viam::service::mlmodel::v1::FlatTensorDataFloat)}, + { 126, -1, -1, sizeof(::viam::service::mlmodel::v1::FlatTensorDataDouble)}, + { 133, -1, -1, sizeof(::viam::service::mlmodel::v1::FlatTensor)}, + { 151, 159, -1, sizeof(::viam::service::mlmodel::v1::FlatTensors_TensorsEntry_DoNotUse)}, + { 161, -1, -1, sizeof(::viam::service::mlmodel::v1::FlatTensors)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::viam::service::mlmodel::v1::_InferRequest_default_instance_._instance, - &::viam::service::mlmodel::v1::_InferResponse_default_instance_._instance, - &::viam::service::mlmodel::v1::_MetadataRequest_default_instance_._instance, - &::viam::service::mlmodel::v1::_MetadataResponse_default_instance_._instance, - &::viam::service::mlmodel::v1::_Metadata_default_instance_._instance, - &::viam::service::mlmodel::v1::_TensorInfo_default_instance_._instance, - &::viam::service::mlmodel::v1::_File_default_instance_._instance, - &::viam::service::mlmodel::v1::_FlatTensorDataInt8_default_instance_._instance, - &::viam::service::mlmodel::v1::_FlatTensorDataUInt8_default_instance_._instance, - &::viam::service::mlmodel::v1::_FlatTensorDataInt16_default_instance_._instance, - &::viam::service::mlmodel::v1::_FlatTensorDataUInt16_default_instance_._instance, - &::viam::service::mlmodel::v1::_FlatTensorDataInt32_default_instance_._instance, - &::viam::service::mlmodel::v1::_FlatTensorDataUInt32_default_instance_._instance, - &::viam::service::mlmodel::v1::_FlatTensorDataInt64_default_instance_._instance, - &::viam::service::mlmodel::v1::_FlatTensorDataUInt64_default_instance_._instance, - &::viam::service::mlmodel::v1::_FlatTensorDataFloat_default_instance_._instance, - &::viam::service::mlmodel::v1::_FlatTensorDataDouble_default_instance_._instance, - &::viam::service::mlmodel::v1::_FlatTensor_default_instance_._instance, - &::viam::service::mlmodel::v1::_FlatTensors_TensorsEntry_DoNotUse_default_instance_._instance, - &::viam::service::mlmodel::v1::_FlatTensors_default_instance_._instance, + &::viam::service::mlmodel::v1::_InferRequest_default_instance_._instance, + &::viam::service::mlmodel::v1::_InferResponse_default_instance_._instance, + &::viam::service::mlmodel::v1::_MetadataRequest_default_instance_._instance, + &::viam::service::mlmodel::v1::_MetadataResponse_default_instance_._instance, + &::viam::service::mlmodel::v1::_Metadata_default_instance_._instance, + &::viam::service::mlmodel::v1::_TensorInfo_default_instance_._instance, + &::viam::service::mlmodel::v1::_File_default_instance_._instance, + &::viam::service::mlmodel::v1::_FlatTensorDataInt8_default_instance_._instance, + &::viam::service::mlmodel::v1::_FlatTensorDataUInt8_default_instance_._instance, + &::viam::service::mlmodel::v1::_FlatTensorDataInt16_default_instance_._instance, + &::viam::service::mlmodel::v1::_FlatTensorDataUInt16_default_instance_._instance, + &::viam::service::mlmodel::v1::_FlatTensorDataInt32_default_instance_._instance, + &::viam::service::mlmodel::v1::_FlatTensorDataUInt32_default_instance_._instance, + &::viam::service::mlmodel::v1::_FlatTensorDataInt64_default_instance_._instance, + &::viam::service::mlmodel::v1::_FlatTensorDataUInt64_default_instance_._instance, + &::viam::service::mlmodel::v1::_FlatTensorDataFloat_default_instance_._instance, + &::viam::service::mlmodel::v1::_FlatTensorDataDouble_default_instance_._instance, + &::viam::service::mlmodel::v1::_FlatTensor_default_instance_._instance, + &::viam::service::mlmodel::v1::_FlatTensors_TensorsEntry_DoNotUse_default_instance_._instance, + &::viam::service::mlmodel::v1::_FlatTensors_default_instance_._instance, }; -const char descriptor_table_protodef_service_2fmlmodel_2fv1_2fmlmodel_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n service/mlmodel/v1/mlmodel.proto\022\027viam" - ".service.mlmodel.v1\032\034google/api/annotati" - "ons.proto\032\034google/protobuf/struct.proto\"" - "\256\001\n\014InferRequest\022\022\n\004name\030\001 \001(\tR\004name\022I\n\r" - "input_tensors\030\003 \001(\0132$.viam.service.mlmod" - "el.v1.FlatTensorsR\014inputTensors\022-\n\005extra" - "\030c \001(\0132\027.google.protobuf.StructR\005extraJ\004" - "\010\002\020\003R\ninput_data\"{\n\rInferResponse\022K\n\016out" - "put_tensors\030\003 \001(\0132$.viam.service.mlmodel" - ".v1.FlatTensorsR\routputTensorsJ\004\010\001\020\002J\004\010\002" - "\020\003R\004nameR\013output_data\"T\n\017MetadataRequest" - "\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005extra\030c \001(\0132\027.go" - "ogle.protobuf.StructR\005extra\"Q\n\020MetadataR" - "esponse\022=\n\010metadata\030\001 \001(\0132!.viam.service" - ".mlmodel.v1.MetadataR\010metadata\"\336\001\n\010Metad" - "ata\022\022\n\004name\030\001 \001(\tR\004name\022\022\n\004type\030\002 \001(\tR\004t" - "ype\022 \n\013description\030\003 \001(\tR\013description\022B\n" - "\ninput_info\030\004 \003(\0132#.viam.service.mlmodel" - ".v1.TensorInfoR\tinputInfo\022D\n\013output_info" - "\030\005 \003(\0132#.viam.service.mlmodel.v1.TensorI" - "nfoR\noutputInfo\"\356\001\n\nTensorInfo\022\022\n\004name\030\001" - " \001(\tR\004name\022 \n\013description\030\002 \001(\tR\013descrip" - "tion\022\033\n\tdata_type\030\003 \001(\tR\010dataType\022\024\n\005sha" - "pe\030\004 \003(\005R\005shape\022H\n\020associated_files\030\005 \003(" - "\0132\035.viam.service.mlmodel.v1.FileR\017associ" - "atedFiles\022-\n\005extra\030c \001(\0132\027.google.protob" - "uf.StructR\005extra\"\177\n\004File\022\022\n\004name\030\001 \001(\tR\004" - "name\022 \n\013description\030\002 \001(\tR\013description\022A" - "\n\nlabel_type\030\003 \001(\0162\".viam.service.mlmode" - "l.v1.LabelTypeR\tlabelType\"(\n\022FlatTensorD" - "ataInt8\022\022\n\004data\030\001 \001(\014R\004data\")\n\023FlatTenso" - "rDataUInt8\022\022\n\004data\030\001 \001(\014R\004data\"-\n\023FlatTe" - "nsorDataInt16\022\026\n\004data\030\001 \003(\007B\002\020\001R\004data\".\n" - "\024FlatTensorDataUInt16\022\026\n\004data\030\001 \003(\007B\002\020\001R" - "\004data\"-\n\023FlatTensorDataInt32\022\026\n\004data\030\001 \003" - "(\017B\002\020\001R\004data\".\n\024FlatTensorDataUInt32\022\026\n\004" - "data\030\001 \003(\007B\002\020\001R\004data\"-\n\023FlatTensorDataIn" - "t64\022\026\n\004data\030\001 \003(\020B\002\020\001R\004data\".\n\024FlatTenso" - "rDataUInt64\022\026\n\004data\030\001 \003(\006B\002\020\001R\004data\"-\n\023F" - "latTensorDataFloat\022\026\n\004data\030\001 \003(\002B\002\020\001R\004da" - "ta\".\n\024FlatTensorDataDouble\022\026\n\004data\030\001 \003(\001" - "B\002\020\001R\004data\"\363\006\n\nFlatTensor\022\024\n\005shape\030\001 \003(\006" - "R\005shape\022N\n\013int8_tensor\030\002 \001(\0132+.viam.serv" - "ice.mlmodel.v1.FlatTensorDataInt8H\000R\nint" - "8Tensor\022Q\n\014uint8_tensor\030\003 \001(\0132,.viam.ser" - "vice.mlmodel.v1.FlatTensorDataUInt8H\000R\013u" - "int8Tensor\022Q\n\014int16_tensor\030\004 \001(\0132,.viam." - "service.mlmodel.v1.FlatTensorDataInt16H\000" - "R\013int16Tensor\022T\n\ruint16_tensor\030\005 \001(\0132-.v" - "iam.service.mlmodel.v1.FlatTensorDataUIn" - "t16H\000R\014uint16Tensor\022Q\n\014int32_tensor\030\006 \001(" - "\0132,.viam.service.mlmodel.v1.FlatTensorDa" - "taInt32H\000R\013int32Tensor\022T\n\ruint32_tensor\030" - "\007 \001(\0132-.viam.service.mlmodel.v1.FlatTens" - "orDataUInt32H\000R\014uint32Tensor\022Q\n\014int64_te" - "nsor\030\010 \001(\0132,.viam.service.mlmodel.v1.Fla" - "tTensorDataInt64H\000R\013int64Tensor\022T\n\ruint6" - "4_tensor\030\t \001(\0132-.viam.service.mlmodel.v1" - ".FlatTensorDataUInt64H\000R\014uint64Tensor\022Q\n" - "\014float_tensor\030\n \001(\0132,.viam.service.mlmod" - "el.v1.FlatTensorDataFloatH\000R\013floatTensor" - "\022T\n\rdouble_tensor\030\013 \001(\0132-.viam.service.m" - "lmodel.v1.FlatTensorDataDoubleH\000R\014double" - "TensorB\010\n\006tensor\"\273\001\n\013FlatTensors\022K\n\007tens" - "ors\030\001 \003(\01321.viam.service.mlmodel.v1.Flat" - "Tensors.TensorsEntryR\007tensors\032_\n\014Tensors" - "Entry\022\020\n\003key\030\001 \001(\tR\003key\0229\n\005value\030\002 \001(\0132#" - ".viam.service.mlmodel.v1.FlatTensorR\005val" - "ue:\0028\001*`\n\tLabelType\022\032\n\026LABEL_TYPE_UNSPEC" - "IFIED\020\000\022\033\n\027LABEL_TYPE_TENSOR_VALUE\020\001\022\032\n\026" - "LABEL_TYPE_TENSOR_AXIS\020\0022\264\002\n\016MLModelServ" - "ice\022\211\001\n\005Infer\022%.viam.service.mlmodel.v1." - "InferRequest\032&.viam.service.mlmodel.v1.I" - "nferResponse\"1\202\323\344\223\002+\")/viam/api/v1/servi" - "ce/mlmodel/{name}/infer\022\225\001\n\010Metadata\022(.v" - "iam.service.mlmodel.v1.MetadataRequest\032)" - ".viam.service.mlmodel.v1.MetadataRespons" - "e\"4\202\323\344\223\002.\022,/viam/api/v1/service/mlmodel/" - "{name}/metadataB\316\001\n\033com.viam.service.mlm" - "odel.v1B\014MlmodelProtoP\001Z\"go.viam.com/api" - "/service/mlmodel/v1\242\002\003VSM\252\002\027Viam.Service" - ".Mlmodel.V1\312\002\027Viam\\Service\\Mlmodel\\V1\342\002#" - "Viam\\Service\\Mlmodel\\V1\\GPBMetadata\352\002\032Vi" - "am::Service::Mlmodel::V1b\006proto3" -}; -static const ::_pbi::DescriptorTable* const descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto_deps[2] = - { - &::descriptor_table_google_2fapi_2fannotations_2eproto, - &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, + +const char descriptor_table_protodef_service_2fmlmodel_2fv1_2fmlmodel_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n service/mlmodel/v1/mlmodel.proto\022\027viam" + ".service.mlmodel.v1\032\034google/api/annotati" + "ons.proto\032\034google/protobuf/struct.proto\"" + "\256\001\n\014InferRequest\022\022\n\004name\030\001 \001(\tR\004name\022I\n\r" + "input_tensors\030\003 \001(\0132$.viam.service.mlmod" + "el.v1.FlatTensorsR\014inputTensors\022-\n\005extra" + "\030c \001(\0132\027.google.protobuf.StructR\005extraJ\004" + "\010\002\020\003R\ninput_data\"{\n\rInferResponse\022K\n\016out" + "put_tensors\030\003 \001(\0132$.viam.service.mlmodel" + ".v1.FlatTensorsR\routputTensorsJ\004\010\001\020\002J\004\010\002" + "\020\003R\004nameR\013output_data\"T\n\017MetadataRequest" + "\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005extra\030c \001(\0132\027.go" + "ogle.protobuf.StructR\005extra\"Q\n\020MetadataR" + "esponse\022=\n\010metadata\030\001 \001(\0132!.viam.service" + ".mlmodel.v1.MetadataR\010metadata\"\336\001\n\010Metad" + "ata\022\022\n\004name\030\001 \001(\tR\004name\022\022\n\004type\030\002 \001(\tR\004t" + "ype\022 \n\013description\030\003 \001(\tR\013description\022B\n" + "\ninput_info\030\004 \003(\0132#.viam.service.mlmodel" + ".v1.TensorInfoR\tinputInfo\022D\n\013output_info" + "\030\005 \003(\0132#.viam.service.mlmodel.v1.TensorI" + "nfoR\noutputInfo\"\356\001\n\nTensorInfo\022\022\n\004name\030\001" + " \001(\tR\004name\022 \n\013description\030\002 \001(\tR\013descrip" + "tion\022\033\n\tdata_type\030\003 \001(\tR\010dataType\022\024\n\005sha" + "pe\030\004 \003(\005R\005shape\022H\n\020associated_files\030\005 \003(" + "\0132\035.viam.service.mlmodel.v1.FileR\017associ" + "atedFiles\022-\n\005extra\030c \001(\0132\027.google.protob" + "uf.StructR\005extra\"\177\n\004File\022\022\n\004name\030\001 \001(\tR\004" + "name\022 \n\013description\030\002 \001(\tR\013description\022A" + "\n\nlabel_type\030\003 \001(\0162\".viam.service.mlmode" + "l.v1.LabelTypeR\tlabelType\"(\n\022FlatTensorD" + "ataInt8\022\022\n\004data\030\001 \001(\014R\004data\")\n\023FlatTenso" + "rDataUInt8\022\022\n\004data\030\001 \001(\014R\004data\"-\n\023FlatTe" + "nsorDataInt16\022\026\n\004data\030\001 \003(\007B\002\020\001R\004data\".\n" + "\024FlatTensorDataUInt16\022\026\n\004data\030\001 \003(\007B\002\020\001R" + "\004data\"-\n\023FlatTensorDataInt32\022\026\n\004data\030\001 \003" + "(\017B\002\020\001R\004data\".\n\024FlatTensorDataUInt32\022\026\n\004" + "data\030\001 \003(\007B\002\020\001R\004data\"-\n\023FlatTensorDataIn" + "t64\022\026\n\004data\030\001 \003(\020B\002\020\001R\004data\".\n\024FlatTenso" + "rDataUInt64\022\026\n\004data\030\001 \003(\006B\002\020\001R\004data\"-\n\023F" + "latTensorDataFloat\022\026\n\004data\030\001 \003(\002B\002\020\001R\004da" + "ta\".\n\024FlatTensorDataDouble\022\026\n\004data\030\001 \003(\001" + "B\002\020\001R\004data\"\363\006\n\nFlatTensor\022\024\n\005shape\030\001 \003(\006" + "R\005shape\022N\n\013int8_tensor\030\002 \001(\0132+.viam.serv" + "ice.mlmodel.v1.FlatTensorDataInt8H\000R\nint" + "8Tensor\022Q\n\014uint8_tensor\030\003 \001(\0132,.viam.ser" + "vice.mlmodel.v1.FlatTensorDataUInt8H\000R\013u" + "int8Tensor\022Q\n\014int16_tensor\030\004 \001(\0132,.viam." + "service.mlmodel.v1.FlatTensorDataInt16H\000" + "R\013int16Tensor\022T\n\ruint16_tensor\030\005 \001(\0132-.v" + "iam.service.mlmodel.v1.FlatTensorDataUIn" + "t16H\000R\014uint16Tensor\022Q\n\014int32_tensor\030\006 \001(" + "\0132,.viam.service.mlmodel.v1.FlatTensorDa" + "taInt32H\000R\013int32Tensor\022T\n\ruint32_tensor\030" + "\007 \001(\0132-.viam.service.mlmodel.v1.FlatTens" + "orDataUInt32H\000R\014uint32Tensor\022Q\n\014int64_te" + "nsor\030\010 \001(\0132,.viam.service.mlmodel.v1.Fla" + "tTensorDataInt64H\000R\013int64Tensor\022T\n\ruint6" + "4_tensor\030\t \001(\0132-.viam.service.mlmodel.v1" + ".FlatTensorDataUInt64H\000R\014uint64Tensor\022Q\n" + "\014float_tensor\030\n \001(\0132,.viam.service.mlmod" + "el.v1.FlatTensorDataFloatH\000R\013floatTensor" + "\022T\n\rdouble_tensor\030\013 \001(\0132-.viam.service.m" + "lmodel.v1.FlatTensorDataDoubleH\000R\014double" + "TensorB\010\n\006tensor\"\273\001\n\013FlatTensors\022K\n\007tens" + "ors\030\001 \003(\01321.viam.service.mlmodel.v1.Flat" + "Tensors.TensorsEntryR\007tensors\032_\n\014Tensors" + "Entry\022\020\n\003key\030\001 \001(\tR\003key\0229\n\005value\030\002 \001(\0132#" + ".viam.service.mlmodel.v1.FlatTensorR\005val" + "ue:\0028\001*`\n\tLabelType\022\032\n\026LABEL_TYPE_UNSPEC" + "IFIED\020\000\022\033\n\027LABEL_TYPE_TENSOR_VALUE\020\001\022\032\n\026" + "LABEL_TYPE_TENSOR_AXIS\020\0022\264\002\n\016MLModelServ" + "ice\022\211\001\n\005Infer\022%.viam.service.mlmodel.v1." + "InferRequest\032&.viam.service.mlmodel.v1.I" + "nferResponse\"1\202\323\344\223\002+\")/viam/api/v1/servi" + "ce/mlmodel/{name}/infer\022\225\001\n\010Metadata\022(.v" + "iam.service.mlmodel.v1.MetadataRequest\032)" + ".viam.service.mlmodel.v1.MetadataRespons" + "e\"4\202\323\344\223\002.\022,/viam/api/v1/service/mlmodel/" + "{name}/metadataBA\n\033com.viam.service.mlmo" + "del.v1Z\"go.viam.com/api/service/mlmodel/" + "v1b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto_deps[2] = { + &::descriptor_table_google_2fapi_2fannotations_2eproto, + &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, }; -static ::absl::once_flag descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto_once; +static ::_pbi::once_flag descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto = { - false, - false, - 3352, - descriptor_table_protodef_service_2fmlmodel_2fv1_2fmlmodel_2eproto, + false, false, 3210, descriptor_table_protodef_service_2fmlmodel_2fv1_2fmlmodel_2eproto, "service/mlmodel/v1/mlmodel.proto", - &descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto_once, - descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto_deps, - 2, - 20, - schemas, - file_default_instances, - TableStruct_service_2fmlmodel_2fv1_2fmlmodel_2eproto::offsets, - file_level_metadata_service_2fmlmodel_2fv1_2fmlmodel_2eproto, - file_level_enum_descriptors_service_2fmlmodel_2fv1_2fmlmodel_2eproto, + &descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto_once, descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto_deps, 2, 20, + schemas, file_default_instances, TableStruct_service_2fmlmodel_2fv1_2fmlmodel_2eproto::offsets, + file_level_metadata_service_2fmlmodel_2fv1_2fmlmodel_2eproto, file_level_enum_descriptors_service_2fmlmodel_2fv1_2fmlmodel_2eproto, file_level_service_descriptors_service_2fmlmodel_2fv1_2fmlmodel_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto_getter() { return &descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_service_2fmlmodel_2fv1_2fmlmodel_2eproto(&descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_service_2fmlmodel_2fv1_2fmlmodel_2eproto(&descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto); namespace viam { namespace service { namespace mlmodel { namespace v1 { -const ::google::protobuf::EnumDescriptor* LabelType_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto); +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* LabelType_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto); return file_level_enum_descriptors_service_2fmlmodel_2fv1_2fmlmodel_2eproto[0]; } -PROTOBUF_CONSTINIT const uint32_t LabelType_internal_data_[] = { - 196608u, 0u, }; bool LabelType_IsValid(int value) { - return 0 <= value && value <= 2; + switch (value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } } + + // =================================================================== class InferRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(InferRequest, _impl_._has_bits_); static const ::viam::service::mlmodel::v1::FlatTensors& input_tensors(const InferRequest* msg); - static void set_has_input_tensors(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::google::protobuf::Struct& extra(const InferRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const InferRequest* msg); }; -const ::viam::service::mlmodel::v1::FlatTensors& InferRequest::_Internal::input_tensors(const InferRequest* msg) { - return *msg->_impl_.input_tensors_; +const ::viam::service::mlmodel::v1::FlatTensors& +InferRequest::_Internal::input_tensors(const InferRequest* msg) { + return *msg->input_tensors_; } -const ::google::protobuf::Struct& InferRequest::_Internal::extra(const InferRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +InferRequest::_Internal::extra(const InferRequest* msg) { + return *msg->extra_; } void InferRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -InferRequest::InferRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +InferRequest::InferRequest(::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.mlmodel.v1.InferRequest) } -inline PROTOBUF_NDEBUG_INLINE InferRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -InferRequest::InferRequest( - ::google::protobuf::Arena* arena, - const InferRequest& from) - : ::google::protobuf::Message(arena) { - InferRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.input_tensors_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::service::mlmodel::v1::FlatTensors>(arena, *from._impl_.input_tensors_) - : nullptr; - _impl_.extra_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +InferRequest::InferRequest(const InferRequest& 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_input_tensors()) { + input_tensors_ = new ::viam::service::mlmodel::v1::FlatTensors(*from.input_tensors_); + } else { + input_tensors_ = nullptr; + } + if (from._internal_has_extra()) { + extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.extra_); + } else { + extra_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.service.mlmodel.v1.InferRequest) } -inline PROTOBUF_NDEBUG_INLINE InferRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} - -inline void InferRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, input_tensors_), - 0, - offsetof(Impl_, extra_) - - offsetof(Impl_, input_tensors_) + - sizeof(Impl_::extra_)); + +inline void InferRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&input_tensors_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&extra_) - + reinterpret_cast(&input_tensors_)) + sizeof(extra_)); } + InferRequest::~InferRequest() { // @@protoc_insertion_point(destructor:viam.service.mlmodel.v1.InferRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void InferRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.input_tensors_; - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete input_tensors_; + if (this != internal_default_instance()) delete extra_; +} + +void InferRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void InferRequest::Clear() { +void InferRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.mlmodel.v1.InferRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.input_tensors_ != nullptr); - _impl_.input_tensors_->Clear(); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && input_tensors_ != nullptr) { + delete input_tensors_; + } + input_tensors_ = nullptr; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* InferRequest::_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.service.mlmodel.v1.InferRequest.name")); + } else + goto handle_unusual; + continue; + // .viam.service.mlmodel.v1.FlatTensors input_tensors = 3 [json_name = "inputTensors"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_input_tensors(), ptr); + CHK_(ptr); + } 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; } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* InferRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 2, 49, 7> InferRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(InferRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967290, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_InferRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(InferRequest, _impl_.name_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .viam.service.mlmodel.v1.FlatTensors input_tensors = 3 [json_name = "inputTensors"]; - {::_pbi::TcParser::FastMtS1, - {26, 0, 0, PROTOBUF_FIELD_OFFSET(InferRequest, _impl_.input_tensors_)}}, - }}, {{ - 99, 0, 1, - 65534, 2, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(InferRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .viam.service.mlmodel.v1.FlatTensors input_tensors = 3 [json_name = "inputTensors"]; - {PROTOBUF_FIELD_OFFSET(InferRequest, _impl_.input_tensors_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(InferRequest, _impl_.extra_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::service::mlmodel::v1::FlatTensors>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\44\4\0\0\0\0\0\0" - "viam.service.mlmodel.v1.InferRequest" - "name" - }}, -}; - -::uint8_t* InferRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* InferRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.mlmodel.v1.InferRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.mlmodel.v1.InferRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.mlmodel.v1.InferRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .viam.service.mlmodel.v1.FlatTensors input_tensors = 3 [json_name = "inputTensors"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::input_tensors(this), + if (this->_internal_has_input_tensors()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::input_tensors(this), _Internal::input_tensors(this).GetCachedSize(), target, stream); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.mlmodel.v1.InferRequest) return target; } -::size_t InferRequest::ByteSizeLong() const { +size_t InferRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.mlmodel.v1.InferRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // .viam.service.mlmodel.v1.FlatTensors input_tensors = 3 [json_name = "inputTensors"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.input_tensors_); - } - - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); - } + // .viam.service.mlmodel.v1.FlatTensors input_tensors = 3 [json_name = "inputTensors"]; + if (this->_internal_has_input_tensors()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *input_tensors_); + } + // .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, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData InferRequest::_class_data_ = { - InferRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData InferRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + InferRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* InferRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*InferRequest::GetClassData() const { return &_class_data_; } + +void InferRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void InferRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.mlmodel.v1.InferRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void InferRequest::MergeFrom(const InferRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.mlmodel.v1.InferRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_input_tensors()->::viam::service::mlmodel::v1::FlatTensors::MergeFrom( - from._internal_input_tensors()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); - } + if (from._internal_has_input_tensors()) { + _internal_mutable_input_tensors()->::viam::service::mlmodel::v1::FlatTensors::MergeFrom(from._internal_input_tensors()); + } + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void InferRequest::CopyFrom(const InferRequest& from) { @@ -1132,212 +890,195 @@ void InferRequest::CopyFrom(const InferRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool InferRequest::IsInitialized() const { +bool InferRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* InferRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void InferRequest::InternalSwap(InferRequest* PROTOBUF_RESTRICT other) { +void InferRequest::InternalSwap(InferRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(InferRequest, _impl_.extra_) - + sizeof(InferRequest::_impl_.extra_) - - PROTOBUF_FIELD_OFFSET(InferRequest, _impl_.input_tensors_)>( - reinterpret_cast(&_impl_.input_tensors_), - reinterpret_cast(&other->_impl_.input_tensors_)); -} - -::google::protobuf::Metadata InferRequest::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(InferRequest, extra_) + + sizeof(InferRequest::extra_) + - PROTOBUF_FIELD_OFFSET(InferRequest, input_tensors_)>( + reinterpret_cast(&input_tensors_), + reinterpret_cast(&other->input_tensors_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata InferRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto_getter, &descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto_once, file_level_metadata_service_2fmlmodel_2fv1_2fmlmodel_2eproto[0]); } + // =================================================================== class InferResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(InferResponse, _impl_._has_bits_); static const ::viam::service::mlmodel::v1::FlatTensors& output_tensors(const InferResponse* msg); - static void set_has_output_tensors(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::service::mlmodel::v1::FlatTensors& InferResponse::_Internal::output_tensors(const InferResponse* msg) { - return *msg->_impl_.output_tensors_; +const ::viam::service::mlmodel::v1::FlatTensors& +InferResponse::_Internal::output_tensors(const InferResponse* msg) { + return *msg->output_tensors_; } -InferResponse::InferResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +InferResponse::InferResponse(::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.mlmodel.v1.InferResponse) } -inline PROTOBUF_NDEBUG_INLINE InferResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -InferResponse::InferResponse( - ::google::protobuf::Arena* arena, - const InferResponse& from) - : ::google::protobuf::Message(arena) { - InferResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.output_tensors_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::service::mlmodel::v1::FlatTensors>(arena, *from._impl_.output_tensors_) - : nullptr; - +InferResponse::InferResponse(const InferResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_output_tensors()) { + output_tensors_ = new ::viam::service::mlmodel::v1::FlatTensors(*from.output_tensors_); + } else { + output_tensors_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.service.mlmodel.v1.InferResponse) } -inline PROTOBUF_NDEBUG_INLINE InferResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void InferResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.output_tensors_ = {}; +inline void InferResponse::SharedCtor() { +output_tensors_ = nullptr; } + InferResponse::~InferResponse() { // @@protoc_insertion_point(destructor:viam.service.mlmodel.v1.InferResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void InferResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.output_tensors_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete output_tensors_; } -PROTOBUF_NOINLINE void InferResponse::Clear() { +void InferResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void InferResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.mlmodel.v1.InferResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.output_tensors_ != nullptr); - _impl_.output_tensors_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* InferResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + if (GetArenaForAllocation() == nullptr && output_tensors_ != nullptr) { + delete output_tensors_; + } + output_tensors_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* InferResponse::_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.service.mlmodel.v1.FlatTensors output_tensors = 3 [json_name = "outputTensors"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_output_tensors(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> InferResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(InferResponse, _impl_._has_bits_), - 0, // no _extensions_ - 3, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967291, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_InferResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.service.mlmodel.v1.FlatTensors output_tensors = 3 [json_name = "outputTensors"]; - {::_pbi::TcParser::FastMtS1, - {26, 0, 0, PROTOBUF_FIELD_OFFSET(InferResponse, _impl_.output_tensors_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.service.mlmodel.v1.FlatTensors output_tensors = 3 [json_name = "outputTensors"]; - {PROTOBUF_FIELD_OFFSET(InferResponse, _impl_.output_tensors_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::service::mlmodel::v1::FlatTensors>()}, - }}, {{ - }}, -}; - -::uint8_t* InferResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* InferResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.mlmodel.v1.InferResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.service.mlmodel.v1.FlatTensors output_tensors = 3 [json_name = "outputTensors"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::output_tensors(this), + if (this->_internal_has_output_tensors()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::output_tensors(this), _Internal::output_tensors(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.mlmodel.v1.InferResponse) return target; } -::size_t InferResponse::ByteSizeLong() const { +size_t InferResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.mlmodel.v1.InferResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .viam.service.mlmodel.v1.FlatTensors output_tensors = 3 [json_name = "outputTensors"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.output_tensors_); + if (this->_internal_has_output_tensors()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *output_tensors_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData InferResponse::_class_data_ = { - InferResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData InferResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + InferResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* InferResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*InferResponse::GetClassData() const { return &_class_data_; } + +void InferResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void InferResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.mlmodel.v1.InferResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void InferResponse::MergeFrom(const InferResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.mlmodel.v1.InferResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_output_tensors()->::viam::service::mlmodel::v1::FlatTensors::MergeFrom( - from._internal_output_tensors()); + if (from._internal_has_output_tensors()) { + _internal_mutable_output_tensors()->::viam::service::mlmodel::v1::FlatTensors::MergeFrom(from._internal_output_tensors()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void InferResponse::CopyFrom(const InferResponse& from) { @@ -1347,243 +1088,234 @@ void InferResponse::CopyFrom(const InferResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool InferResponse::IsInitialized() const { +bool InferResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* InferResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void InferResponse::InternalSwap(InferResponse* PROTOBUF_RESTRICT other) { +void InferResponse::InternalSwap(InferResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.output_tensors_, other->_impl_.output_tensors_); + swap(output_tensors_, other->output_tensors_); } -::google::protobuf::Metadata InferResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata InferResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto_getter, &descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto_once, file_level_metadata_service_2fmlmodel_2fv1_2fmlmodel_2eproto[1]); } + // =================================================================== class MetadataRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(MetadataRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const MetadataRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const MetadataRequest* msg); }; -const ::google::protobuf::Struct& MetadataRequest::_Internal::extra(const MetadataRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +MetadataRequest::_Internal::extra(const MetadataRequest* msg) { + return *msg->extra_; } void MetadataRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -MetadataRequest::MetadataRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +MetadataRequest::MetadataRequest(::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.mlmodel.v1.MetadataRequest) } -inline PROTOBUF_NDEBUG_INLINE MetadataRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -MetadataRequest::MetadataRequest( - ::google::protobuf::Arena* arena, - const MetadataRequest& from) - : ::google::protobuf::Message(arena) { - MetadataRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +MetadataRequest::MetadataRequest(const MetadataRequest& 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.service.mlmodel.v1.MetadataRequest) } -inline PROTOBUF_NDEBUG_INLINE MetadataRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} -inline void MetadataRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void MetadataRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + MetadataRequest::~MetadataRequest() { // @@protoc_insertion_point(destructor:viam.service.mlmodel.v1.MetadataRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void MetadataRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void MetadataRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void MetadataRequest::Clear() { +void MetadataRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.mlmodel.v1.MetadataRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* MetadataRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* MetadataRequest::_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.service.mlmodel.v1.MetadataRequest.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; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 2, 1, 52, 7> MetadataRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(MetadataRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_MetadataRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(MetadataRequest, _impl_.name_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(MetadataRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 1, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(MetadataRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(MetadataRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\47\4\0\0\0\0\0\0" - "viam.service.mlmodel.v1.MetadataRequest" - "name" - }}, -}; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} -::uint8_t* MetadataRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* MetadataRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.mlmodel.v1.MetadataRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.mlmodel.v1.MetadataRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.mlmodel.v1.MetadataRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.mlmodel.v1.MetadataRequest) return target; } -::size_t MetadataRequest::ByteSizeLong() const { +size_t MetadataRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.mlmodel.v1.MetadataRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData MetadataRequest::_class_data_ = { - MetadataRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MetadataRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + MetadataRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* MetadataRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MetadataRequest::GetClassData() const { return &_class_data_; } + +void MetadataRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void MetadataRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.mlmodel.v1.MetadataRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void MetadataRequest::MergeFrom(const MetadataRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.mlmodel.v1.MetadataRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MetadataRequest::CopyFrom(const MetadataRequest& from) { @@ -1593,207 +1325,190 @@ void MetadataRequest::CopyFrom(const MetadataRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool MetadataRequest::IsInitialized() const { +bool MetadataRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* MetadataRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void MetadataRequest::InternalSwap(MetadataRequest* PROTOBUF_RESTRICT other) { +void MetadataRequest::InternalSwap(MetadataRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.extra_, other->_impl_.extra_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(extra_, other->extra_); } -::google::protobuf::Metadata MetadataRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata MetadataRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto_getter, &descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto_once, file_level_metadata_service_2fmlmodel_2fv1_2fmlmodel_2eproto[2]); } + // =================================================================== class MetadataResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(MetadataResponse, _impl_._has_bits_); static const ::viam::service::mlmodel::v1::Metadata& metadata(const MetadataResponse* msg); - static void set_has_metadata(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::service::mlmodel::v1::Metadata& MetadataResponse::_Internal::metadata(const MetadataResponse* msg) { - return *msg->_impl_.metadata_; +const ::viam::service::mlmodel::v1::Metadata& +MetadataResponse::_Internal::metadata(const MetadataResponse* msg) { + return *msg->metadata_; } -MetadataResponse::MetadataResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +MetadataResponse::MetadataResponse(::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.mlmodel.v1.MetadataResponse) } -inline PROTOBUF_NDEBUG_INLINE MetadataResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -MetadataResponse::MetadataResponse( - ::google::protobuf::Arena* arena, - const MetadataResponse& from) - : ::google::protobuf::Message(arena) { - MetadataResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.metadata_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::service::mlmodel::v1::Metadata>(arena, *from._impl_.metadata_) - : nullptr; - +MetadataResponse::MetadataResponse(const MetadataResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_metadata()) { + metadata_ = new ::viam::service::mlmodel::v1::Metadata(*from.metadata_); + } else { + metadata_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.service.mlmodel.v1.MetadataResponse) } -inline PROTOBUF_NDEBUG_INLINE MetadataResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void MetadataResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.metadata_ = {}; +inline void MetadataResponse::SharedCtor() { +metadata_ = nullptr; } + MetadataResponse::~MetadataResponse() { // @@protoc_insertion_point(destructor:viam.service.mlmodel.v1.MetadataResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void MetadataResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.metadata_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete metadata_; +} + +void MetadataResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void MetadataResponse::Clear() { +void MetadataResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.mlmodel.v1.MetadataResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.metadata_ != nullptr); - _impl_.metadata_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* MetadataResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + if (GetArenaForAllocation() == nullptr && metadata_ != nullptr) { + delete metadata_; + } + metadata_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* MetadataResponse::_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.service.mlmodel.v1.Metadata metadata = 1 [json_name = "metadata"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_metadata(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> MetadataResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(MetadataResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_MetadataResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.service.mlmodel.v1.Metadata metadata = 1 [json_name = "metadata"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(MetadataResponse, _impl_.metadata_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.service.mlmodel.v1.Metadata metadata = 1 [json_name = "metadata"]; - {PROTOBUF_FIELD_OFFSET(MetadataResponse, _impl_.metadata_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::service::mlmodel::v1::Metadata>()}, - }}, {{ - }}, -}; - -::uint8_t* MetadataResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* MetadataResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.mlmodel.v1.MetadataResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.service.mlmodel.v1.Metadata metadata = 1 [json_name = "metadata"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::metadata(this), + if (this->_internal_has_metadata()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::metadata(this), _Internal::metadata(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.mlmodel.v1.MetadataResponse) return target; } -::size_t MetadataResponse::ByteSizeLong() const { +size_t MetadataResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.mlmodel.v1.MetadataResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .viam.service.mlmodel.v1.Metadata metadata = 1 [json_name = "metadata"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.metadata_); + if (this->_internal_has_metadata()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *metadata_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData MetadataResponse::_class_data_ = { - MetadataResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MetadataResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + MetadataResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* MetadataResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MetadataResponse::GetClassData() const { return &_class_data_; } + +void MetadataResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void MetadataResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.mlmodel.v1.MetadataResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void MetadataResponse::MergeFrom(const MetadataResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.mlmodel.v1.MetadataResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_metadata()->::viam::service::mlmodel::v1::Metadata::MergeFrom( - from._internal_metadata()); + if (from._internal_has_metadata()) { + _internal_mutable_metadata()->::viam::service::mlmodel::v1::Metadata::MergeFrom(from._internal_metadata()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MetadataResponse::CopyFrom(const MetadataResponse& from) { @@ -1803,296 +1518,339 @@ void MetadataResponse::CopyFrom(const MetadataResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool MetadataResponse::IsInitialized() const { +bool MetadataResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* MetadataResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void MetadataResponse::InternalSwap(MetadataResponse* PROTOBUF_RESTRICT other) { +void MetadataResponse::InternalSwap(MetadataResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.metadata_, other->_impl_.metadata_); + swap(metadata_, other->metadata_); } -::google::protobuf::Metadata MetadataResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata MetadataResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto_getter, &descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto_once, file_level_metadata_service_2fmlmodel_2fv1_2fmlmodel_2eproto[3]); } + // =================================================================== class Metadata::_Internal { public: }; -Metadata::Metadata(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Metadata::Metadata(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + input_info_(arena), + output_info_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.service.mlmodel.v1.Metadata) } -inline PROTOBUF_NDEBUG_INLINE Metadata::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : input_info_{visibility, arena, from.input_info_}, - output_info_{visibility, arena, from.output_info_}, - name_(arena, from.name_), - type_(arena, from.type_), - description_(arena, from.description_), - _cached_size_{0} {} - -Metadata::Metadata( - ::google::protobuf::Arena* arena, - const Metadata& from) - : ::google::protobuf::Message(arena) { - Metadata* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +Metadata::Metadata(const Metadata& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + input_info_(from.input_info_), + output_info_(from.output_info_) { + _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()); + } + 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()); + } + description_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + description_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_description().empty()) { + description_.Set(from._internal_description(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.service.mlmodel.v1.Metadata) } -inline PROTOBUF_NDEBUG_INLINE Metadata::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : input_info_{visibility, arena}, - output_info_{visibility, arena}, - name_(arena), - type_(arena), - description_(arena), - _cached_size_{0} {} -inline void Metadata::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void Metadata::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.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 +description_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + description_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + Metadata::~Metadata() { // @@protoc_insertion_point(destructor:viam.service.mlmodel.v1.Metadata) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Metadata::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.type_.Destroy(); - _impl_.description_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + type_.Destroy(); + description_.Destroy(); +} + +void Metadata::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void Metadata::Clear() { +void Metadata::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.mlmodel.v1.Metadata) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.input_info_.Clear(); - _impl_.output_info_.Clear(); - _impl_.name_.ClearToEmpty(); - _impl_.type_.ClearToEmpty(); - _impl_.description_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Metadata::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + input_info_.Clear(); + output_info_.Clear(); + name_.ClearToEmpty(); + type_.ClearToEmpty(); + description_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Metadata::_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.service.mlmodel.v1.Metadata.name")); + } else + goto handle_unusual; + continue; + // string type = 2 [json_name = "type"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.mlmodel.v1.Metadata.type")); + } else + goto handle_unusual; + continue; + // string description = 3 [json_name = "description"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_description(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.mlmodel.v1.Metadata.description")); + } else + goto handle_unusual; + continue; + // repeated .viam.service.mlmodel.v1.TensorInfo input_info = 4 [json_name = "inputInfo"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_input_info(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr)); + } else + goto handle_unusual; + continue; + // repeated .viam.service.mlmodel.v1.TensorInfo output_info = 5 [json_name = "outputInfo"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_output_info(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 5, 2, 60, 2> Metadata::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 5, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967264, // skipmap - offsetof(decltype(_table_), field_entries), - 5, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Metadata_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Metadata, _impl_.name_)}}, - // string type = 2 [json_name = "type"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(Metadata, _impl_.type_)}}, - // string description = 3 [json_name = "description"]; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(Metadata, _impl_.description_)}}, - // repeated .viam.service.mlmodel.v1.TensorInfo input_info = 4 [json_name = "inputInfo"]; - {::_pbi::TcParser::FastMtR1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(Metadata, _impl_.input_info_)}}, - // repeated .viam.service.mlmodel.v1.TensorInfo output_info = 5 [json_name = "outputInfo"]; - {::_pbi::TcParser::FastMtR1, - {42, 63, 1, PROTOBUF_FIELD_OFFSET(Metadata, _impl_.output_info_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(Metadata, _impl_.name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string type = 2 [json_name = "type"]; - {PROTOBUF_FIELD_OFFSET(Metadata, _impl_.type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string description = 3 [json_name = "description"]; - {PROTOBUF_FIELD_OFFSET(Metadata, _impl_.description_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated .viam.service.mlmodel.v1.TensorInfo input_info = 4 [json_name = "inputInfo"]; - {PROTOBUF_FIELD_OFFSET(Metadata, _impl_.input_info_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated .viam.service.mlmodel.v1.TensorInfo output_info = 5 [json_name = "outputInfo"]; - {PROTOBUF_FIELD_OFFSET(Metadata, _impl_.output_info_), 0, 1, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::service::mlmodel::v1::TensorInfo>()}, - {::_pbi::TcParser::GetTable<::viam::service::mlmodel::v1::TensorInfo>()}, - }}, {{ - "\40\4\4\13\0\0\0\0" - "viam.service.mlmodel.v1.Metadata" - "name" - "type" - "description" - }}, -}; - -::uint8_t* Metadata::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Metadata::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.mlmodel.v1.Metadata) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.mlmodel.v1.Metadata.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.mlmodel.v1.Metadata.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // string type = 2 [json_name = "type"]; if (!this->_internal_type().empty()) { - const std::string& _s = this->_internal_type(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.mlmodel.v1.Metadata.type"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_type().data(), static_cast(this->_internal_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.mlmodel.v1.Metadata.type"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_type(), target); } // string description = 3 [json_name = "description"]; if (!this->_internal_description().empty()) { - const std::string& _s = this->_internal_description(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.mlmodel.v1.Metadata.description"); - target = stream->WriteStringMaybeAliased(3, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_description().data(), static_cast(this->_internal_description().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.mlmodel.v1.Metadata.description"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_description(), target); } // repeated .viam.service.mlmodel.v1.TensorInfo input_info = 4 [json_name = "inputInfo"]; for (unsigned i = 0, n = static_cast(this->_internal_input_info_size()); i < n; i++) { - const auto& repfield = this->_internal_input_info().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_input_info(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(4, repfield, repfield.GetCachedSize(), target, stream); } // repeated .viam.service.mlmodel.v1.TensorInfo output_info = 5 [json_name = "outputInfo"]; for (unsigned i = 0, n = static_cast(this->_internal_output_info_size()); i < n; i++) { - const auto& repfield = this->_internal_output_info().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_output_info(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(5, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.mlmodel.v1.Metadata) return target; } -::size_t Metadata::ByteSizeLong() const { +size_t Metadata::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.mlmodel.v1.Metadata) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.service.mlmodel.v1.TensorInfo input_info = 4 [json_name = "inputInfo"]; total_size += 1UL * this->_internal_input_info_size(); - for (const auto& msg : this->_internal_input_info()) { + for (const auto& msg : this->input_info_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // repeated .viam.service.mlmodel.v1.TensorInfo output_info = 5 [json_name = "outputInfo"]; total_size += 1UL * this->_internal_output_info_size(); - for (const auto& msg : this->_internal_output_info()) { + for (const auto& msg : this->output_info_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // string type = 2 [json_name = "type"]; if (!this->_internal_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_type()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_type()); } // string description = 3 [json_name = "description"]; if (!this->_internal_description().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_description()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_description()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Metadata::_class_data_ = { - Metadata::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Metadata::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Metadata::MergeImpl }; -const ::google::protobuf::Message::ClassData* Metadata::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Metadata::GetClassData() const { return &_class_data_; } + +void Metadata::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Metadata::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.mlmodel.v1.Metadata) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Metadata::MergeFrom(const Metadata& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.mlmodel.v1.Metadata) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_input_info()->MergeFrom( - from._internal_input_info()); - _this->_internal_mutable_output_info()->MergeFrom( - from._internal_output_info()); + input_info_.MergeFrom(from.input_info_); + output_info_.MergeFrom(from.output_info_); if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (!from._internal_type().empty()) { - _this->_internal_set_type(from._internal_type()); + _internal_set_type(from._internal_type()); } if (!from._internal_description().empty()) { - _this->_internal_set_description(from._internal_description()); + _internal_set_description(from._internal_description()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Metadata::CopyFrom(const Metadata& from) { @@ -2102,243 +1860,284 @@ void Metadata::CopyFrom(const Metadata& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Metadata::IsInitialized() const { +bool Metadata::IsInitialized() const { return true; } -::_pbi::CachedSize* Metadata::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Metadata::InternalSwap(Metadata* PROTOBUF_RESTRICT other) { +void Metadata::InternalSwap(Metadata* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.input_info_.InternalSwap(&other->_impl_.input_info_); - _impl_.output_info_.InternalSwap(&other->_impl_.output_info_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.type_, &other->_impl_.type_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.description_, &other->_impl_.description_, arena); -} - -::google::protobuf::Metadata Metadata::GetMetadata() const { + input_info_.InternalSwap(&other->input_info_); + output_info_.InternalSwap(&other->output_info_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &type_, lhs_arena, + &other->type_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &description_, lhs_arena, + &other->description_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Metadata::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto_getter, &descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto_once, file_level_metadata_service_2fmlmodel_2fv1_2fmlmodel_2eproto[4]); } + // =================================================================== class TensorInfo::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(TensorInfo, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const TensorInfo* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const TensorInfo* msg); }; -const ::google::protobuf::Struct& TensorInfo::_Internal::extra(const TensorInfo* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +TensorInfo::_Internal::extra(const TensorInfo* msg) { + return *msg->extra_; } void TensorInfo::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -TensorInfo::TensorInfo(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +TensorInfo::TensorInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + shape_(arena), + associated_files_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.service.mlmodel.v1.TensorInfo) } -inline PROTOBUF_NDEBUG_INLINE TensorInfo::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - shape_{visibility, arena, from.shape_}, - _shape_cached_byte_size_{0}, - associated_files_{visibility, arena, from.associated_files_}, - name_(arena, from.name_), - description_(arena, from.description_), - data_type_(arena, from.data_type_) {} - -TensorInfo::TensorInfo( - ::google::protobuf::Arena* arena, - const TensorInfo& from) - : ::google::protobuf::Message(arena) { - TensorInfo* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +TensorInfo::TensorInfo(const TensorInfo& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + shape_(from.shape_), + associated_files_(from.associated_files_) { + _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()); + } + description_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + description_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_description().empty()) { + description_.Set(from._internal_description(), + GetArenaForAllocation()); + } + data_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + data_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_data_type().empty()) { + data_type_.Set(from._internal_data_type(), + GetArenaForAllocation()); + } + if (from._internal_has_extra()) { + extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.extra_); + } else { + extra_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.service.mlmodel.v1.TensorInfo) } -inline PROTOBUF_NDEBUG_INLINE TensorInfo::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - shape_{visibility, arena}, - _shape_cached_byte_size_{0}, - associated_files_{visibility, arena}, - name_(arena), - description_(arena), - data_type_(arena) {} - -inline void TensorInfo::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; + +inline void TensorInfo::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +description_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + description_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +data_type_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + data_type_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + TensorInfo::~TensorInfo() { // @@protoc_insertion_point(destructor:viam.service.mlmodel.v1.TensorInfo) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void TensorInfo::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.description_.Destroy(); - _impl_.data_type_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + description_.Destroy(); + data_type_.Destroy(); + if (this != internal_default_instance()) delete extra_; } -PROTOBUF_NOINLINE void TensorInfo::Clear() { +void TensorInfo::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void TensorInfo::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.mlmodel.v1.TensorInfo) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.shape_.Clear(); - _impl_.associated_files_.Clear(); - _impl_.name_.ClearToEmpty(); - _impl_.description_.ClearToEmpty(); - _impl_.data_type_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* TensorInfo::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + shape_.Clear(); + associated_files_.Clear(); + name_.ClearToEmpty(); + description_.ClearToEmpty(); + data_type_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* TensorInfo::_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.service.mlmodel.v1.TensorInfo.name")); + } else + goto handle_unusual; + continue; + // string description = 2 [json_name = "description"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_description(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.mlmodel.v1.TensorInfo.description")); + } else + goto handle_unusual; + continue; + // string data_type = 3 [json_name = "dataType"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_data_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.mlmodel.v1.TensorInfo.data_type")); + } else + goto handle_unusual; + continue; + // repeated int32 shape = 4 [json_name = "shape"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(_internal_mutable_shape(), ptr, ctx); + CHK_(ptr); + } else if (static_cast(tag) == 32) { + _internal_add_shape(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // repeated .viam.service.mlmodel.v1.File associated_files = 5 [json_name = "associatedFiles"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_associated_files(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr)); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 6, 2, 67, 7> TensorInfo::_table_ = { - { - PROTOBUF_FIELD_OFFSET(TensorInfo, _impl_._has_bits_), - 0, // no _extensions_ - 99, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967264, // skipmap - offsetof(decltype(_table_), field_entries), - 6, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_TensorInfo_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(TensorInfo, _impl_.name_)}}, - // string description = 2 [json_name = "description"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(TensorInfo, _impl_.description_)}}, - // string data_type = 3 [json_name = "dataType"]; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(TensorInfo, _impl_.data_type_)}}, - // repeated int32 shape = 4 [json_name = "shape"]; - {::_pbi::TcParser::FastV32P1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(TensorInfo, _impl_.shape_)}}, - // repeated .viam.service.mlmodel.v1.File associated_files = 5 [json_name = "associatedFiles"]; - {::_pbi::TcParser::FastMtR1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(TensorInfo, _impl_.associated_files_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 99, 0, 1, - 65534, 5, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(TensorInfo, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string description = 2 [json_name = "description"]; - {PROTOBUF_FIELD_OFFSET(TensorInfo, _impl_.description_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string data_type = 3 [json_name = "dataType"]; - {PROTOBUF_FIELD_OFFSET(TensorInfo, _impl_.data_type_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated int32 shape = 4 [json_name = "shape"]; - {PROTOBUF_FIELD_OFFSET(TensorInfo, _impl_.shape_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)}, - // repeated .viam.service.mlmodel.v1.File associated_files = 5 [json_name = "associatedFiles"]; - {PROTOBUF_FIELD_OFFSET(TensorInfo, _impl_.associated_files_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(TensorInfo, _impl_.extra_), _Internal::kHasBitsOffset + 0, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::service::mlmodel::v1::File>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\42\4\13\11\0\0\0\0" - "viam.service.mlmodel.v1.TensorInfo" - "name" - "description" - "data_type" - }}, -}; - -::uint8_t* TensorInfo::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* TensorInfo::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.mlmodel.v1.TensorInfo) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.mlmodel.v1.TensorInfo.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.mlmodel.v1.TensorInfo.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // string description = 2 [json_name = "description"]; if (!this->_internal_description().empty()) { - const std::string& _s = this->_internal_description(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.mlmodel.v1.TensorInfo.description"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_description().data(), static_cast(this->_internal_description().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.mlmodel.v1.TensorInfo.description"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_description(), target); } // string data_type = 3 [json_name = "dataType"]; if (!this->_internal_data_type().empty()) { - const std::string& _s = this->_internal_data_type(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.mlmodel.v1.TensorInfo.data_type"); - target = stream->WriteStringMaybeAliased(3, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_data_type().data(), static_cast(this->_internal_data_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.mlmodel.v1.TensorInfo.data_type"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_data_type(), target); } // repeated int32 shape = 4 [json_name = "shape"]; { - int byte_size = _impl_._shape_cached_byte_size_.Get(); + int byte_size = _shape_cached_byte_size_.load(std::memory_order_relaxed); if (byte_size > 0) { target = stream->WriteInt32Packed( 4, _internal_shape(), byte_size, target); @@ -2348,116 +2147,120 @@ ::uint8_t* TensorInfo::_InternalSerialize( // repeated .viam.service.mlmodel.v1.File associated_files = 5 [json_name = "associatedFiles"]; for (unsigned i = 0, n = static_cast(this->_internal_associated_files_size()); i < n; i++) { - const auto& repfield = this->_internal_associated_files().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_associated_files(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(5, repfield, repfield.GetCachedSize(), target, stream); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.mlmodel.v1.TensorInfo) return target; } -::size_t TensorInfo::ByteSizeLong() const { +size_t TensorInfo::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.mlmodel.v1.TensorInfo) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated int32 shape = 4 [json_name = "shape"]; { - std::size_t data_size = ::_pbi::WireFormatLite::Int32Size( - this->_internal_shape()) - ; - _impl_._shape_cached_byte_size_.Set(::_pbi::ToCachedSize(data_size)); - std::size_t tag_size = data_size == 0 - ? 0 - : 1 + ::_pbi::WireFormatLite::Int32Size( - static_cast(data_size)) - ; - total_size += tag_size + data_size; + size_t data_size = ::_pbi::WireFormatLite:: + Int32Size(this->shape_); + if (data_size > 0) { + total_size += 1 + + ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); + } + int cached_size = ::_pbi::ToCachedSize(data_size); + _shape_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); + total_size += data_size; } + // repeated .viam.service.mlmodel.v1.File associated_files = 5 [json_name = "associatedFiles"]; total_size += 1UL * this->_internal_associated_files_size(); - for (const auto& msg : this->_internal_associated_files()) { + for (const auto& msg : this->associated_files_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // string description = 2 [json_name = "description"]; if (!this->_internal_description().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_description()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_description()); } // string data_type = 3 [json_name = "dataType"]; if (!this->_internal_data_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_data_type()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_data_type()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData TensorInfo::_class_data_ = { - TensorInfo::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TensorInfo::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + TensorInfo::MergeImpl }; -const ::google::protobuf::Message::ClassData* TensorInfo::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TensorInfo::GetClassData() const { return &_class_data_; } + +void TensorInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void TensorInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.mlmodel.v1.TensorInfo) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void TensorInfo::MergeFrom(const TensorInfo& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.mlmodel.v1.TensorInfo) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_shape()->MergeFrom(from._internal_shape()); - _this->_internal_mutable_associated_files()->MergeFrom( - from._internal_associated_files()); + shape_.MergeFrom(from.shape_); + associated_files_.MergeFrom(from.associated_files_); if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (!from._internal_description().empty()) { - _this->_internal_set_description(from._internal_description()); + _internal_set_description(from._internal_description()); } if (!from._internal_data_type().empty()) { - _this->_internal_set_data_type(from._internal_data_type()); + _internal_set_data_type(from._internal_data_type()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void TensorInfo::CopyFrom(const TensorInfo& from) { @@ -2467,247 +2270,275 @@ void TensorInfo::CopyFrom(const TensorInfo& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool TensorInfo::IsInitialized() const { +bool TensorInfo::IsInitialized() const { return true; } -::_pbi::CachedSize* TensorInfo::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void TensorInfo::InternalSwap(TensorInfo* PROTOBUF_RESTRICT other) { +void TensorInfo::InternalSwap(TensorInfo* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.shape_.InternalSwap(&other->_impl_.shape_); - _impl_.associated_files_.InternalSwap(&other->_impl_.associated_files_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.description_, &other->_impl_.description_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.data_type_, &other->_impl_.data_type_, arena); - swap(_impl_.extra_, other->_impl_.extra_); -} - -::google::protobuf::Metadata TensorInfo::GetMetadata() const { + shape_.InternalSwap(&other->shape_); + associated_files_.InternalSwap(&other->associated_files_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &description_, lhs_arena, + &other->description_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &data_type_, lhs_arena, + &other->data_type_, rhs_arena + ); + swap(extra_, other->extra_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata TensorInfo::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto_getter, &descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto_once, file_level_metadata_service_2fmlmodel_2fv1_2fmlmodel_2eproto[5]); } + // =================================================================== class File::_Internal { public: }; -File::File(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +File::File(::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.mlmodel.v1.File) } -inline PROTOBUF_NDEBUG_INLINE File::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : name_(arena, from.name_), - description_(arena, from.description_), - _cached_size_{0} {} - -File::File( - ::google::protobuf::Arena* arena, - const File& from) - : ::google::protobuf::Message(arena) { - File* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.label_type_ = from._impl_.label_type_; - +File::File(const File& 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()); + } + description_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + description_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_description().empty()) { + description_.Set(from._internal_description(), + GetArenaForAllocation()); + } + label_type_ = from.label_type_; // @@protoc_insertion_point(copy_constructor:viam.service.mlmodel.v1.File) } -inline PROTOBUF_NDEBUG_INLINE File::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : name_(arena), - description_(arena), - _cached_size_{0} {} -inline void File::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.label_type_ = {}; +inline void File::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +description_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + description_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +label_type_ = 0; } + File::~File() { // @@protoc_insertion_point(destructor:viam.service.mlmodel.v1.File) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void File::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.description_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + description_.Destroy(); } -PROTOBUF_NOINLINE void File::Clear() { +void File::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void File::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.mlmodel.v1.File) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _impl_.description_.ClearToEmpty(); - _impl_.label_type_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* File::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + description_.ClearToEmpty(); + label_type_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* File::_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.service.mlmodel.v1.File.name")); + } else + goto handle_unusual; + continue; + // string description = 2 [json_name = "description"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_description(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.mlmodel.v1.File.description")); + } else + goto handle_unusual; + continue; + // .viam.service.mlmodel.v1.LabelType label_type = 3 [json_name = "labelType"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_label_type(static_cast<::viam::service::mlmodel::v1::LabelType>(val)); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 52, 2> File::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_File_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(File, _impl_.name_)}}, - // string description = 2 [json_name = "description"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(File, _impl_.description_)}}, - // .viam.service.mlmodel.v1.LabelType label_type = 3 [json_name = "labelType"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(File, _impl_.label_type_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(File, _impl_.label_type_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(File, _impl_.name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string description = 2 [json_name = "description"]; - {PROTOBUF_FIELD_OFFSET(File, _impl_.description_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .viam.service.mlmodel.v1.LabelType label_type = 3 [json_name = "labelType"]; - {PROTOBUF_FIELD_OFFSET(File, _impl_.label_type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - }}, - // no aux_entries - {{ - "\34\4\13\0\0\0\0\0" - "viam.service.mlmodel.v1.File" - "name" - "description" - }}, -}; - -::uint8_t* File::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* File::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.mlmodel.v1.File) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.mlmodel.v1.File.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.mlmodel.v1.File.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // string description = 2 [json_name = "description"]; if (!this->_internal_description().empty()) { - const std::string& _s = this->_internal_description(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.mlmodel.v1.File.description"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_description().data(), static_cast(this->_internal_description().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.mlmodel.v1.File.description"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_description(), target); } // .viam.service.mlmodel.v1.LabelType label_type = 3 [json_name = "labelType"]; if (this->_internal_label_type() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 3, this->_internal_label_type(), target); + 3, this->_internal_label_type(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.mlmodel.v1.File) return target; } -::size_t File::ByteSizeLong() const { +size_t File::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.mlmodel.v1.File) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // string description = 2 [json_name = "description"]; if (!this->_internal_description().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_description()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_description()); } // .viam.service.mlmodel.v1.LabelType label_type = 3 [json_name = "labelType"]; if (this->_internal_label_type() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_label_type()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_label_type()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData File::_class_data_ = { - File::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData File::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + File::MergeImpl }; -const ::google::protobuf::Message::ClassData* File::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*File::GetClassData() const { return &_class_data_; } + +void File::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void File::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.mlmodel.v1.File) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void File::MergeFrom(const File& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.mlmodel.v1.File) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (!from._internal_description().empty()) { - _this->_internal_set_description(from._internal_description()); + _internal_set_description(from._internal_description()); } if (from._internal_label_type() != 0) { - _this->_internal_set_label_type(from._internal_label_type()); + _internal_set_label_type(from._internal_label_type()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void File::CopyFrom(const File& from) { @@ -2717,184 +2548,192 @@ void File::CopyFrom(const File& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool File::IsInitialized() const { +bool File::IsInitialized() const { return true; } -::_pbi::CachedSize* File::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void File::InternalSwap(File* PROTOBUF_RESTRICT other) { +void File::InternalSwap(File* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.description_, &other->_impl_.description_, arena); - swap(_impl_.label_type_, other->_impl_.label_type_); -} - -::google::protobuf::Metadata File::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &description_, lhs_arena, + &other->description_, rhs_arena + ); + swap(label_type_, other->label_type_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata File::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto_getter, &descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto_once, file_level_metadata_service_2fmlmodel_2fv1_2fmlmodel_2eproto[6]); } + // =================================================================== class FlatTensorDataInt8::_Internal { public: }; -FlatTensorDataInt8::FlatTensorDataInt8(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +FlatTensorDataInt8::FlatTensorDataInt8(::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.mlmodel.v1.FlatTensorDataInt8) } -inline PROTOBUF_NDEBUG_INLINE FlatTensorDataInt8::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : data_(arena, from.data_), - _cached_size_{0} {} - -FlatTensorDataInt8::FlatTensorDataInt8( - ::google::protobuf::Arena* arena, - const FlatTensorDataInt8& from) - : ::google::protobuf::Message(arena) { - FlatTensorDataInt8* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +FlatTensorDataInt8::FlatTensorDataInt8(const FlatTensorDataInt8& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + data_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + data_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_data().empty()) { + data_.Set(from._internal_data(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.service.mlmodel.v1.FlatTensorDataInt8) } -inline PROTOBUF_NDEBUG_INLINE FlatTensorDataInt8::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : data_(arena), - _cached_size_{0} {} -inline void FlatTensorDataInt8::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void FlatTensorDataInt8::SharedCtor() { +data_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + data_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + FlatTensorDataInt8::~FlatTensorDataInt8() { // @@protoc_insertion_point(destructor:viam.service.mlmodel.v1.FlatTensorDataInt8) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void FlatTensorDataInt8::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.data_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + data_.Destroy(); } -PROTOBUF_NOINLINE void FlatTensorDataInt8::Clear() { +void FlatTensorDataInt8::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void FlatTensorDataInt8::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.mlmodel.v1.FlatTensorDataInt8) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.data_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* FlatTensorDataInt8::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + data_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* FlatTensorDataInt8::_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) { + // bytes data = 1 [json_name = "data"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_data(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> FlatTensorDataInt8::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_FlatTensorDataInt8_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // bytes data = 1 [json_name = "data"]; - {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(FlatTensorDataInt8, _impl_.data_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bytes data = 1 [json_name = "data"]; - {PROTOBUF_FIELD_OFFSET(FlatTensorDataInt8, _impl_.data_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* FlatTensorDataInt8::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* FlatTensorDataInt8::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.mlmodel.v1.FlatTensorDataInt8) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // bytes data = 1 [json_name = "data"]; if (!this->_internal_data().empty()) { - const std::string& _s = this->_internal_data(); - target = stream->WriteBytesMaybeAliased(1, _s, target); + target = stream->WriteBytesMaybeAliased( + 1, this->_internal_data(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.mlmodel.v1.FlatTensorDataInt8) return target; } -::size_t FlatTensorDataInt8::ByteSizeLong() const { +size_t FlatTensorDataInt8::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.mlmodel.v1.FlatTensorDataInt8) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // bytes data = 1 [json_name = "data"]; if (!this->_internal_data().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_data()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_data()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData FlatTensorDataInt8::_class_data_ = { - FlatTensorDataInt8::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FlatTensorDataInt8::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + FlatTensorDataInt8::MergeImpl }; -const ::google::protobuf::Message::ClassData* FlatTensorDataInt8::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FlatTensorDataInt8::GetClassData() const { return &_class_data_; } + +void FlatTensorDataInt8::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void FlatTensorDataInt8::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.mlmodel.v1.FlatTensorDataInt8) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void FlatTensorDataInt8::MergeFrom(const FlatTensorDataInt8& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.mlmodel.v1.FlatTensorDataInt8) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_data().empty()) { - _this->_internal_set_data(from._internal_data()); + _internal_set_data(from._internal_data()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void FlatTensorDataInt8::CopyFrom(const FlatTensorDataInt8& from) { @@ -2904,182 +2743,187 @@ void FlatTensorDataInt8::CopyFrom(const FlatTensorDataInt8& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool FlatTensorDataInt8::IsInitialized() const { +bool FlatTensorDataInt8::IsInitialized() const { return true; } -::_pbi::CachedSize* FlatTensorDataInt8::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void FlatTensorDataInt8::InternalSwap(FlatTensorDataInt8* PROTOBUF_RESTRICT other) { +void FlatTensorDataInt8::InternalSwap(FlatTensorDataInt8* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.data_, &other->_impl_.data_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &data_, lhs_arena, + &other->data_, rhs_arena + ); } -::google::protobuf::Metadata FlatTensorDataInt8::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata FlatTensorDataInt8::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto_getter, &descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto_once, file_level_metadata_service_2fmlmodel_2fv1_2fmlmodel_2eproto[7]); } + // =================================================================== class FlatTensorDataUInt8::_Internal { public: }; -FlatTensorDataUInt8::FlatTensorDataUInt8(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +FlatTensorDataUInt8::FlatTensorDataUInt8(::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.mlmodel.v1.FlatTensorDataUInt8) } -inline PROTOBUF_NDEBUG_INLINE FlatTensorDataUInt8::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : data_(arena, from.data_), - _cached_size_{0} {} - -FlatTensorDataUInt8::FlatTensorDataUInt8( - ::google::protobuf::Arena* arena, - const FlatTensorDataUInt8& from) - : ::google::protobuf::Message(arena) { - FlatTensorDataUInt8* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +FlatTensorDataUInt8::FlatTensorDataUInt8(const FlatTensorDataUInt8& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + data_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + data_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_data().empty()) { + data_.Set(from._internal_data(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.service.mlmodel.v1.FlatTensorDataUInt8) } -inline PROTOBUF_NDEBUG_INLINE FlatTensorDataUInt8::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : data_(arena), - _cached_size_{0} {} -inline void FlatTensorDataUInt8::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void FlatTensorDataUInt8::SharedCtor() { +data_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + data_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + FlatTensorDataUInt8::~FlatTensorDataUInt8() { // @@protoc_insertion_point(destructor:viam.service.mlmodel.v1.FlatTensorDataUInt8) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void FlatTensorDataUInt8::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.data_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + data_.Destroy(); +} + +void FlatTensorDataUInt8::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void FlatTensorDataUInt8::Clear() { +void FlatTensorDataUInt8::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.mlmodel.v1.FlatTensorDataUInt8) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.data_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* FlatTensorDataUInt8::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + data_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* FlatTensorDataUInt8::_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) { + // bytes data = 1 [json_name = "data"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_data(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> FlatTensorDataUInt8::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_FlatTensorDataUInt8_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // bytes data = 1 [json_name = "data"]; - {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(FlatTensorDataUInt8, _impl_.data_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bytes data = 1 [json_name = "data"]; - {PROTOBUF_FIELD_OFFSET(FlatTensorDataUInt8, _impl_.data_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* FlatTensorDataUInt8::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* FlatTensorDataUInt8::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.mlmodel.v1.FlatTensorDataUInt8) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // bytes data = 1 [json_name = "data"]; if (!this->_internal_data().empty()) { - const std::string& _s = this->_internal_data(); - target = stream->WriteBytesMaybeAliased(1, _s, target); + target = stream->WriteBytesMaybeAliased( + 1, this->_internal_data(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.mlmodel.v1.FlatTensorDataUInt8) return target; } -::size_t FlatTensorDataUInt8::ByteSizeLong() const { +size_t FlatTensorDataUInt8::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.mlmodel.v1.FlatTensorDataUInt8) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // bytes data = 1 [json_name = "data"]; if (!this->_internal_data().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_data()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_data()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData FlatTensorDataUInt8::_class_data_ = { - FlatTensorDataUInt8::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FlatTensorDataUInt8::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + FlatTensorDataUInt8::MergeImpl }; -const ::google::protobuf::Message::ClassData* FlatTensorDataUInt8::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FlatTensorDataUInt8::GetClassData() const { return &_class_data_; } + +void FlatTensorDataUInt8::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void FlatTensorDataUInt8::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.mlmodel.v1.FlatTensorDataUInt8) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void FlatTensorDataUInt8::MergeFrom(const FlatTensorDataUInt8& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.mlmodel.v1.FlatTensorDataUInt8) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_data().empty()) { - _this->_internal_set_data(from._internal_data()); + _internal_set_data(from._internal_data()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void FlatTensorDataUInt8::CopyFrom(const FlatTensorDataUInt8& from) { @@ -3089,128 +2933,122 @@ void FlatTensorDataUInt8::CopyFrom(const FlatTensorDataUInt8& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool FlatTensorDataUInt8::IsInitialized() const { +bool FlatTensorDataUInt8::IsInitialized() const { return true; } -::_pbi::CachedSize* FlatTensorDataUInt8::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void FlatTensorDataUInt8::InternalSwap(FlatTensorDataUInt8* PROTOBUF_RESTRICT other) { +void FlatTensorDataUInt8::InternalSwap(FlatTensorDataUInt8* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.data_, &other->_impl_.data_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &data_, lhs_arena, + &other->data_, rhs_arena + ); } -::google::protobuf::Metadata FlatTensorDataUInt8::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata FlatTensorDataUInt8::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto_getter, &descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto_once, file_level_metadata_service_2fmlmodel_2fv1_2fmlmodel_2eproto[8]); } + // =================================================================== class FlatTensorDataInt16::_Internal { public: }; -FlatTensorDataInt16::FlatTensorDataInt16(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +FlatTensorDataInt16::FlatTensorDataInt16(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + data_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.service.mlmodel.v1.FlatTensorDataInt16) } -inline PROTOBUF_NDEBUG_INLINE FlatTensorDataInt16::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : data_{visibility, arena, from.data_}, - _cached_size_{0} {} - -FlatTensorDataInt16::FlatTensorDataInt16( - ::google::protobuf::Arena* arena, - const FlatTensorDataInt16& from) - : ::google::protobuf::Message(arena) { - FlatTensorDataInt16* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +FlatTensorDataInt16::FlatTensorDataInt16(const FlatTensorDataInt16& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + data_(from.data_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.service.mlmodel.v1.FlatTensorDataInt16) } -inline PROTOBUF_NDEBUG_INLINE FlatTensorDataInt16::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : data_{visibility, arena}, - _cached_size_{0} {} -inline void FlatTensorDataInt16::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void FlatTensorDataInt16::SharedCtor() { } + FlatTensorDataInt16::~FlatTensorDataInt16() { // @@protoc_insertion_point(destructor:viam.service.mlmodel.v1.FlatTensorDataInt16) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void FlatTensorDataInt16::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void FlatTensorDataInt16::Clear() { +void FlatTensorDataInt16::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void FlatTensorDataInt16::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.mlmodel.v1.FlatTensorDataInt16) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.data_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* FlatTensorDataInt16::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + data_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* FlatTensorDataInt16::_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) { + // repeated fixed32 data = 1 [json_name = "data", packed = true]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedFixed32Parser(_internal_mutable_data(), ptr, ctx); + CHK_(ptr); + } else if (static_cast(tag) == 13) { + _internal_add_data(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); + ptr += sizeof(uint32_t); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> FlatTensorDataInt16::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_FlatTensorDataInt16_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated fixed32 data = 1 [json_name = "data", packed = true]; - {::_pbi::TcParser::FastF32P1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(FlatTensorDataInt16, _impl_.data_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated fixed32 data = 1 [json_name = "data", packed = true]; - {PROTOBUF_FIELD_OFFSET(FlatTensorDataInt16, _impl_.data_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kPackedFixed32)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* FlatTensorDataInt16::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* FlatTensorDataInt16::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.mlmodel.v1.FlatTensorDataInt16) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated fixed32 data = 1 [json_name = "data", packed = true]; if (this->_internal_data_size() > 0) { @@ -3218,55 +3056,56 @@ ::uint8_t* FlatTensorDataInt16::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.mlmodel.v1.FlatTensorDataInt16) return target; } -::size_t FlatTensorDataInt16::ByteSizeLong() const { +size_t FlatTensorDataInt16::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.mlmodel.v1.FlatTensorDataInt16) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated fixed32 data = 1 [json_name = "data", packed = true]; { - std::size_t data_size = std::size_t{4} * - ::_pbi::FromIntSize(this->_internal_data_size()) - ; - std::size_t tag_size = data_size == 0 - ? 0 - : 1 + ::_pbi::WireFormatLite::Int32Size( - static_cast(data_size)) - ; - total_size += tag_size + data_size; - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData FlatTensorDataInt16::_class_data_ = { - FlatTensorDataInt16::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor + unsigned int count = static_cast(this->_internal_data_size()); + size_t data_size = 4UL * count; + if (data_size > 0) { + total_size += 1 + + ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); + } + total_size += data_size; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FlatTensorDataInt16::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + FlatTensorDataInt16::MergeImpl }; -const ::google::protobuf::Message::ClassData* FlatTensorDataInt16::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FlatTensorDataInt16::GetClassData() const { return &_class_data_; } + +void FlatTensorDataInt16::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void FlatTensorDataInt16::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.mlmodel.v1.FlatTensorDataInt16) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void FlatTensorDataInt16::MergeFrom(const FlatTensorDataInt16& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.mlmodel.v1.FlatTensorDataInt16) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_data()->MergeFrom(from._internal_data()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + data_.MergeFrom(from.data_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void FlatTensorDataInt16::CopyFrom(const FlatTensorDataInt16& from) { @@ -3276,126 +3115,117 @@ void FlatTensorDataInt16::CopyFrom(const FlatTensorDataInt16& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool FlatTensorDataInt16::IsInitialized() const { +bool FlatTensorDataInt16::IsInitialized() const { return true; } -::_pbi::CachedSize* FlatTensorDataInt16::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void FlatTensorDataInt16::InternalSwap(FlatTensorDataInt16* PROTOBUF_RESTRICT other) { +void FlatTensorDataInt16::InternalSwap(FlatTensorDataInt16* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.data_.InternalSwap(&other->_impl_.data_); + data_.InternalSwap(&other->data_); } -::google::protobuf::Metadata FlatTensorDataInt16::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata FlatTensorDataInt16::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto_getter, &descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto_once, file_level_metadata_service_2fmlmodel_2fv1_2fmlmodel_2eproto[9]); } + // =================================================================== class FlatTensorDataUInt16::_Internal { public: }; -FlatTensorDataUInt16::FlatTensorDataUInt16(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +FlatTensorDataUInt16::FlatTensorDataUInt16(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + data_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.service.mlmodel.v1.FlatTensorDataUInt16) } -inline PROTOBUF_NDEBUG_INLINE FlatTensorDataUInt16::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : data_{visibility, arena, from.data_}, - _cached_size_{0} {} - -FlatTensorDataUInt16::FlatTensorDataUInt16( - ::google::protobuf::Arena* arena, - const FlatTensorDataUInt16& from) - : ::google::protobuf::Message(arena) { - FlatTensorDataUInt16* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +FlatTensorDataUInt16::FlatTensorDataUInt16(const FlatTensorDataUInt16& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + data_(from.data_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.service.mlmodel.v1.FlatTensorDataUInt16) } -inline PROTOBUF_NDEBUG_INLINE FlatTensorDataUInt16::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : data_{visibility, arena}, - _cached_size_{0} {} -inline void FlatTensorDataUInt16::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void FlatTensorDataUInt16::SharedCtor() { } + FlatTensorDataUInt16::~FlatTensorDataUInt16() { // @@protoc_insertion_point(destructor:viam.service.mlmodel.v1.FlatTensorDataUInt16) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void FlatTensorDataUInt16::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void FlatTensorDataUInt16::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void FlatTensorDataUInt16::Clear() { +void FlatTensorDataUInt16::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.mlmodel.v1.FlatTensorDataUInt16) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.data_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* FlatTensorDataUInt16::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + data_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* FlatTensorDataUInt16::_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) { + // repeated fixed32 data = 1 [json_name = "data", packed = true]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedFixed32Parser(_internal_mutable_data(), ptr, ctx); + CHK_(ptr); + } else if (static_cast(tag) == 13) { + _internal_add_data(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); + ptr += sizeof(uint32_t); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> FlatTensorDataUInt16::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_FlatTensorDataUInt16_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated fixed32 data = 1 [json_name = "data", packed = true]; - {::_pbi::TcParser::FastF32P1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(FlatTensorDataUInt16, _impl_.data_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated fixed32 data = 1 [json_name = "data", packed = true]; - {PROTOBUF_FIELD_OFFSET(FlatTensorDataUInt16, _impl_.data_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kPackedFixed32)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* FlatTensorDataUInt16::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* FlatTensorDataUInt16::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.mlmodel.v1.FlatTensorDataUInt16) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated fixed32 data = 1 [json_name = "data", packed = true]; if (this->_internal_data_size() > 0) { @@ -3403,55 +3233,56 @@ ::uint8_t* FlatTensorDataUInt16::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.mlmodel.v1.FlatTensorDataUInt16) return target; } -::size_t FlatTensorDataUInt16::ByteSizeLong() const { +size_t FlatTensorDataUInt16::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.mlmodel.v1.FlatTensorDataUInt16) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated fixed32 data = 1 [json_name = "data", packed = true]; { - std::size_t data_size = std::size_t{4} * - ::_pbi::FromIntSize(this->_internal_data_size()) - ; - std::size_t tag_size = data_size == 0 - ? 0 - : 1 + ::_pbi::WireFormatLite::Int32Size( - static_cast(data_size)) - ; - total_size += tag_size + data_size; - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData FlatTensorDataUInt16::_class_data_ = { - FlatTensorDataUInt16::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor + unsigned int count = static_cast(this->_internal_data_size()); + size_t data_size = 4UL * count; + if (data_size > 0) { + total_size += 1 + + ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); + } + total_size += data_size; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FlatTensorDataUInt16::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + FlatTensorDataUInt16::MergeImpl }; -const ::google::protobuf::Message::ClassData* FlatTensorDataUInt16::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FlatTensorDataUInt16::GetClassData() const { return &_class_data_; } + +void FlatTensorDataUInt16::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void FlatTensorDataUInt16::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.mlmodel.v1.FlatTensorDataUInt16) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void FlatTensorDataUInt16::MergeFrom(const FlatTensorDataUInt16& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.mlmodel.v1.FlatTensorDataUInt16) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_data()->MergeFrom(from._internal_data()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + data_.MergeFrom(from.data_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void FlatTensorDataUInt16::CopyFrom(const FlatTensorDataUInt16& from) { @@ -3461,126 +3292,117 @@ void FlatTensorDataUInt16::CopyFrom(const FlatTensorDataUInt16& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool FlatTensorDataUInt16::IsInitialized() const { +bool FlatTensorDataUInt16::IsInitialized() const { return true; } -::_pbi::CachedSize* FlatTensorDataUInt16::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void FlatTensorDataUInt16::InternalSwap(FlatTensorDataUInt16* PROTOBUF_RESTRICT other) { +void FlatTensorDataUInt16::InternalSwap(FlatTensorDataUInt16* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.data_.InternalSwap(&other->_impl_.data_); + data_.InternalSwap(&other->data_); } -::google::protobuf::Metadata FlatTensorDataUInt16::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata FlatTensorDataUInt16::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto_getter, &descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto_once, file_level_metadata_service_2fmlmodel_2fv1_2fmlmodel_2eproto[10]); } + // =================================================================== class FlatTensorDataInt32::_Internal { public: }; -FlatTensorDataInt32::FlatTensorDataInt32(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +FlatTensorDataInt32::FlatTensorDataInt32(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + data_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.service.mlmodel.v1.FlatTensorDataInt32) } -inline PROTOBUF_NDEBUG_INLINE FlatTensorDataInt32::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : data_{visibility, arena, from.data_}, - _cached_size_{0} {} - -FlatTensorDataInt32::FlatTensorDataInt32( - ::google::protobuf::Arena* arena, - const FlatTensorDataInt32& from) - : ::google::protobuf::Message(arena) { - FlatTensorDataInt32* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +FlatTensorDataInt32::FlatTensorDataInt32(const FlatTensorDataInt32& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + data_(from.data_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.service.mlmodel.v1.FlatTensorDataInt32) } -inline PROTOBUF_NDEBUG_INLINE FlatTensorDataInt32::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : data_{visibility, arena}, - _cached_size_{0} {} -inline void FlatTensorDataInt32::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void FlatTensorDataInt32::SharedCtor() { } + FlatTensorDataInt32::~FlatTensorDataInt32() { // @@protoc_insertion_point(destructor:viam.service.mlmodel.v1.FlatTensorDataInt32) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void FlatTensorDataInt32::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void FlatTensorDataInt32::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void FlatTensorDataInt32::Clear() { +void FlatTensorDataInt32::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.mlmodel.v1.FlatTensorDataInt32) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.data_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* FlatTensorDataInt32::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + data_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* FlatTensorDataInt32::_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) { + // repeated sfixed32 data = 1 [json_name = "data", packed = true]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedSFixed32Parser(_internal_mutable_data(), ptr, ctx); + CHK_(ptr); + } else if (static_cast(tag) == 13) { + _internal_add_data(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); + ptr += sizeof(int32_t); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> FlatTensorDataInt32::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_FlatTensorDataInt32_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated sfixed32 data = 1 [json_name = "data", packed = true]; - {::_pbi::TcParser::FastF32P1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(FlatTensorDataInt32, _impl_.data_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated sfixed32 data = 1 [json_name = "data", packed = true]; - {PROTOBUF_FIELD_OFFSET(FlatTensorDataInt32, _impl_.data_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kPackedSFixed32)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* FlatTensorDataInt32::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* FlatTensorDataInt32::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.mlmodel.v1.FlatTensorDataInt32) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated sfixed32 data = 1 [json_name = "data", packed = true]; if (this->_internal_data_size() > 0) { @@ -3588,55 +3410,56 @@ ::uint8_t* FlatTensorDataInt32::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.mlmodel.v1.FlatTensorDataInt32) return target; } -::size_t FlatTensorDataInt32::ByteSizeLong() const { +size_t FlatTensorDataInt32::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.mlmodel.v1.FlatTensorDataInt32) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated sfixed32 data = 1 [json_name = "data", packed = true]; { - std::size_t data_size = std::size_t{4} * - ::_pbi::FromIntSize(this->_internal_data_size()) - ; - std::size_t tag_size = data_size == 0 - ? 0 - : 1 + ::_pbi::WireFormatLite::Int32Size( - static_cast(data_size)) - ; - total_size += tag_size + data_size; - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData FlatTensorDataInt32::_class_data_ = { - FlatTensorDataInt32::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor + unsigned int count = static_cast(this->_internal_data_size()); + size_t data_size = 4UL * count; + if (data_size > 0) { + total_size += 1 + + ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); + } + total_size += data_size; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FlatTensorDataInt32::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + FlatTensorDataInt32::MergeImpl }; -const ::google::protobuf::Message::ClassData* FlatTensorDataInt32::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FlatTensorDataInt32::GetClassData() const { return &_class_data_; } + +void FlatTensorDataInt32::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void FlatTensorDataInt32::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.mlmodel.v1.FlatTensorDataInt32) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void FlatTensorDataInt32::MergeFrom(const FlatTensorDataInt32& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.mlmodel.v1.FlatTensorDataInt32) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_data()->MergeFrom(from._internal_data()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + data_.MergeFrom(from.data_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void FlatTensorDataInt32::CopyFrom(const FlatTensorDataInt32& from) { @@ -3646,126 +3469,117 @@ void FlatTensorDataInt32::CopyFrom(const FlatTensorDataInt32& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool FlatTensorDataInt32::IsInitialized() const { +bool FlatTensorDataInt32::IsInitialized() const { return true; } -::_pbi::CachedSize* FlatTensorDataInt32::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void FlatTensorDataInt32::InternalSwap(FlatTensorDataInt32* PROTOBUF_RESTRICT other) { +void FlatTensorDataInt32::InternalSwap(FlatTensorDataInt32* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.data_.InternalSwap(&other->_impl_.data_); + data_.InternalSwap(&other->data_); } -::google::protobuf::Metadata FlatTensorDataInt32::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata FlatTensorDataInt32::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto_getter, &descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto_once, file_level_metadata_service_2fmlmodel_2fv1_2fmlmodel_2eproto[11]); } + // =================================================================== class FlatTensorDataUInt32::_Internal { public: }; -FlatTensorDataUInt32::FlatTensorDataUInt32(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +FlatTensorDataUInt32::FlatTensorDataUInt32(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + data_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.service.mlmodel.v1.FlatTensorDataUInt32) } -inline PROTOBUF_NDEBUG_INLINE FlatTensorDataUInt32::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : data_{visibility, arena, from.data_}, - _cached_size_{0} {} - -FlatTensorDataUInt32::FlatTensorDataUInt32( - ::google::protobuf::Arena* arena, - const FlatTensorDataUInt32& from) - : ::google::protobuf::Message(arena) { - FlatTensorDataUInt32* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +FlatTensorDataUInt32::FlatTensorDataUInt32(const FlatTensorDataUInt32& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + data_(from.data_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.service.mlmodel.v1.FlatTensorDataUInt32) } -inline PROTOBUF_NDEBUG_INLINE FlatTensorDataUInt32::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : data_{visibility, arena}, - _cached_size_{0} {} -inline void FlatTensorDataUInt32::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void FlatTensorDataUInt32::SharedCtor() { } + FlatTensorDataUInt32::~FlatTensorDataUInt32() { // @@protoc_insertion_point(destructor:viam.service.mlmodel.v1.FlatTensorDataUInt32) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void FlatTensorDataUInt32::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void FlatTensorDataUInt32::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void FlatTensorDataUInt32::Clear() { +void FlatTensorDataUInt32::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.mlmodel.v1.FlatTensorDataUInt32) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.data_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* FlatTensorDataUInt32::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + data_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* FlatTensorDataUInt32::_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) { + // repeated fixed32 data = 1 [json_name = "data", packed = true]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedFixed32Parser(_internal_mutable_data(), ptr, ctx); + CHK_(ptr); + } else if (static_cast(tag) == 13) { + _internal_add_data(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); + ptr += sizeof(uint32_t); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> FlatTensorDataUInt32::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_FlatTensorDataUInt32_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated fixed32 data = 1 [json_name = "data", packed = true]; - {::_pbi::TcParser::FastF32P1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(FlatTensorDataUInt32, _impl_.data_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated fixed32 data = 1 [json_name = "data", packed = true]; - {PROTOBUF_FIELD_OFFSET(FlatTensorDataUInt32, _impl_.data_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kPackedFixed32)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* FlatTensorDataUInt32::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* FlatTensorDataUInt32::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.mlmodel.v1.FlatTensorDataUInt32) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated fixed32 data = 1 [json_name = "data", packed = true]; if (this->_internal_data_size() > 0) { @@ -3773,55 +3587,56 @@ ::uint8_t* FlatTensorDataUInt32::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.mlmodel.v1.FlatTensorDataUInt32) return target; } -::size_t FlatTensorDataUInt32::ByteSizeLong() const { +size_t FlatTensorDataUInt32::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.mlmodel.v1.FlatTensorDataUInt32) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated fixed32 data = 1 [json_name = "data", packed = true]; { - std::size_t data_size = std::size_t{4} * - ::_pbi::FromIntSize(this->_internal_data_size()) - ; - std::size_t tag_size = data_size == 0 - ? 0 - : 1 + ::_pbi::WireFormatLite::Int32Size( - static_cast(data_size)) - ; - total_size += tag_size + data_size; - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData FlatTensorDataUInt32::_class_data_ = { - FlatTensorDataUInt32::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor + unsigned int count = static_cast(this->_internal_data_size()); + size_t data_size = 4UL * count; + if (data_size > 0) { + total_size += 1 + + ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); + } + total_size += data_size; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FlatTensorDataUInt32::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + FlatTensorDataUInt32::MergeImpl }; -const ::google::protobuf::Message::ClassData* FlatTensorDataUInt32::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FlatTensorDataUInt32::GetClassData() const { return &_class_data_; } + +void FlatTensorDataUInt32::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void FlatTensorDataUInt32::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.mlmodel.v1.FlatTensorDataUInt32) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void FlatTensorDataUInt32::MergeFrom(const FlatTensorDataUInt32& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.mlmodel.v1.FlatTensorDataUInt32) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_data()->MergeFrom(from._internal_data()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + data_.MergeFrom(from.data_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void FlatTensorDataUInt32::CopyFrom(const FlatTensorDataUInt32& from) { @@ -3831,126 +3646,117 @@ void FlatTensorDataUInt32::CopyFrom(const FlatTensorDataUInt32& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool FlatTensorDataUInt32::IsInitialized() const { +bool FlatTensorDataUInt32::IsInitialized() const { return true; } -::_pbi::CachedSize* FlatTensorDataUInt32::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void FlatTensorDataUInt32::InternalSwap(FlatTensorDataUInt32* PROTOBUF_RESTRICT other) { +void FlatTensorDataUInt32::InternalSwap(FlatTensorDataUInt32* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.data_.InternalSwap(&other->_impl_.data_); + data_.InternalSwap(&other->data_); } -::google::protobuf::Metadata FlatTensorDataUInt32::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata FlatTensorDataUInt32::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto_getter, &descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto_once, file_level_metadata_service_2fmlmodel_2fv1_2fmlmodel_2eproto[12]); } + // =================================================================== class FlatTensorDataInt64::_Internal { public: }; -FlatTensorDataInt64::FlatTensorDataInt64(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +FlatTensorDataInt64::FlatTensorDataInt64(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + data_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.service.mlmodel.v1.FlatTensorDataInt64) } -inline PROTOBUF_NDEBUG_INLINE FlatTensorDataInt64::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : data_{visibility, arena, from.data_}, - _cached_size_{0} {} - -FlatTensorDataInt64::FlatTensorDataInt64( - ::google::protobuf::Arena* arena, - const FlatTensorDataInt64& from) - : ::google::protobuf::Message(arena) { - FlatTensorDataInt64* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +FlatTensorDataInt64::FlatTensorDataInt64(const FlatTensorDataInt64& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + data_(from.data_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.service.mlmodel.v1.FlatTensorDataInt64) } -inline PROTOBUF_NDEBUG_INLINE FlatTensorDataInt64::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : data_{visibility, arena}, - _cached_size_{0} {} -inline void FlatTensorDataInt64::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void FlatTensorDataInt64::SharedCtor() { } + FlatTensorDataInt64::~FlatTensorDataInt64() { // @@protoc_insertion_point(destructor:viam.service.mlmodel.v1.FlatTensorDataInt64) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void FlatTensorDataInt64::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void FlatTensorDataInt64::Clear() { +void FlatTensorDataInt64::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void FlatTensorDataInt64::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.mlmodel.v1.FlatTensorDataInt64) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.data_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* FlatTensorDataInt64::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + data_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* FlatTensorDataInt64::_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) { + // repeated sfixed64 data = 1 [json_name = "data", packed = true]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedSFixed64Parser(_internal_mutable_data(), ptr, ctx); + CHK_(ptr); + } else if (static_cast(tag) == 9) { + _internal_add_data(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); + ptr += sizeof(int64_t); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> FlatTensorDataInt64::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_FlatTensorDataInt64_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated sfixed64 data = 1 [json_name = "data", packed = true]; - {::_pbi::TcParser::FastF64P1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(FlatTensorDataInt64, _impl_.data_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated sfixed64 data = 1 [json_name = "data", packed = true]; - {PROTOBUF_FIELD_OFFSET(FlatTensorDataInt64, _impl_.data_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kPackedSFixed64)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* FlatTensorDataInt64::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* FlatTensorDataInt64::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.mlmodel.v1.FlatTensorDataInt64) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated sfixed64 data = 1 [json_name = "data", packed = true]; if (this->_internal_data_size() > 0) { @@ -3958,55 +3764,56 @@ ::uint8_t* FlatTensorDataInt64::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.mlmodel.v1.FlatTensorDataInt64) return target; } -::size_t FlatTensorDataInt64::ByteSizeLong() const { +size_t FlatTensorDataInt64::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.mlmodel.v1.FlatTensorDataInt64) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated sfixed64 data = 1 [json_name = "data", packed = true]; { - std::size_t data_size = std::size_t{8} * - ::_pbi::FromIntSize(this->_internal_data_size()) - ; - std::size_t tag_size = data_size == 0 - ? 0 - : 1 + ::_pbi::WireFormatLite::Int32Size( - static_cast(data_size)) - ; - total_size += tag_size + data_size; - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData FlatTensorDataInt64::_class_data_ = { - FlatTensorDataInt64::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor + unsigned int count = static_cast(this->_internal_data_size()); + size_t data_size = 8UL * count; + if (data_size > 0) { + total_size += 1 + + ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); + } + total_size += data_size; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FlatTensorDataInt64::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + FlatTensorDataInt64::MergeImpl }; -const ::google::protobuf::Message::ClassData* FlatTensorDataInt64::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FlatTensorDataInt64::GetClassData() const { return &_class_data_; } + +void FlatTensorDataInt64::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void FlatTensorDataInt64::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.mlmodel.v1.FlatTensorDataInt64) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void FlatTensorDataInt64::MergeFrom(const FlatTensorDataInt64& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.mlmodel.v1.FlatTensorDataInt64) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_data()->MergeFrom(from._internal_data()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + data_.MergeFrom(from.data_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void FlatTensorDataInt64::CopyFrom(const FlatTensorDataInt64& from) { @@ -4016,126 +3823,117 @@ void FlatTensorDataInt64::CopyFrom(const FlatTensorDataInt64& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool FlatTensorDataInt64::IsInitialized() const { +bool FlatTensorDataInt64::IsInitialized() const { return true; } -::_pbi::CachedSize* FlatTensorDataInt64::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void FlatTensorDataInt64::InternalSwap(FlatTensorDataInt64* PROTOBUF_RESTRICT other) { +void FlatTensorDataInt64::InternalSwap(FlatTensorDataInt64* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.data_.InternalSwap(&other->_impl_.data_); + data_.InternalSwap(&other->data_); } -::google::protobuf::Metadata FlatTensorDataInt64::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata FlatTensorDataInt64::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto_getter, &descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto_once, file_level_metadata_service_2fmlmodel_2fv1_2fmlmodel_2eproto[13]); } + // =================================================================== class FlatTensorDataUInt64::_Internal { public: }; -FlatTensorDataUInt64::FlatTensorDataUInt64(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +FlatTensorDataUInt64::FlatTensorDataUInt64(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + data_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.service.mlmodel.v1.FlatTensorDataUInt64) } -inline PROTOBUF_NDEBUG_INLINE FlatTensorDataUInt64::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : data_{visibility, arena, from.data_}, - _cached_size_{0} {} - -FlatTensorDataUInt64::FlatTensorDataUInt64( - ::google::protobuf::Arena* arena, - const FlatTensorDataUInt64& from) - : ::google::protobuf::Message(arena) { - FlatTensorDataUInt64* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +FlatTensorDataUInt64::FlatTensorDataUInt64(const FlatTensorDataUInt64& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + data_(from.data_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.service.mlmodel.v1.FlatTensorDataUInt64) } -inline PROTOBUF_NDEBUG_INLINE FlatTensorDataUInt64::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : data_{visibility, arena}, - _cached_size_{0} {} -inline void FlatTensorDataUInt64::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void FlatTensorDataUInt64::SharedCtor() { } + FlatTensorDataUInt64::~FlatTensorDataUInt64() { // @@protoc_insertion_point(destructor:viam.service.mlmodel.v1.FlatTensorDataUInt64) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void FlatTensorDataUInt64::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void FlatTensorDataUInt64::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void FlatTensorDataUInt64::Clear() { +void FlatTensorDataUInt64::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.mlmodel.v1.FlatTensorDataUInt64) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.data_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* FlatTensorDataUInt64::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + data_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* FlatTensorDataUInt64::_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) { + // repeated fixed64 data = 1 [json_name = "data", packed = true]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedFixed64Parser(_internal_mutable_data(), ptr, ctx); + CHK_(ptr); + } else if (static_cast(tag) == 9) { + _internal_add_data(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); + ptr += sizeof(uint64_t); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> FlatTensorDataUInt64::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_FlatTensorDataUInt64_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated fixed64 data = 1 [json_name = "data", packed = true]; - {::_pbi::TcParser::FastF64P1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(FlatTensorDataUInt64, _impl_.data_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated fixed64 data = 1 [json_name = "data", packed = true]; - {PROTOBUF_FIELD_OFFSET(FlatTensorDataUInt64, _impl_.data_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kPackedFixed64)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* FlatTensorDataUInt64::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* FlatTensorDataUInt64::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.mlmodel.v1.FlatTensorDataUInt64) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated fixed64 data = 1 [json_name = "data", packed = true]; if (this->_internal_data_size() > 0) { @@ -4143,55 +3941,56 @@ ::uint8_t* FlatTensorDataUInt64::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.mlmodel.v1.FlatTensorDataUInt64) return target; } -::size_t FlatTensorDataUInt64::ByteSizeLong() const { +size_t FlatTensorDataUInt64::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.mlmodel.v1.FlatTensorDataUInt64) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated fixed64 data = 1 [json_name = "data", packed = true]; { - std::size_t data_size = std::size_t{8} * - ::_pbi::FromIntSize(this->_internal_data_size()) - ; - std::size_t tag_size = data_size == 0 - ? 0 - : 1 + ::_pbi::WireFormatLite::Int32Size( - static_cast(data_size)) - ; - total_size += tag_size + data_size; - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData FlatTensorDataUInt64::_class_data_ = { - FlatTensorDataUInt64::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor + unsigned int count = static_cast(this->_internal_data_size()); + size_t data_size = 8UL * count; + if (data_size > 0) { + total_size += 1 + + ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); + } + total_size += data_size; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FlatTensorDataUInt64::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + FlatTensorDataUInt64::MergeImpl }; -const ::google::protobuf::Message::ClassData* FlatTensorDataUInt64::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FlatTensorDataUInt64::GetClassData() const { return &_class_data_; } + +void FlatTensorDataUInt64::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void FlatTensorDataUInt64::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.mlmodel.v1.FlatTensorDataUInt64) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void FlatTensorDataUInt64::MergeFrom(const FlatTensorDataUInt64& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.mlmodel.v1.FlatTensorDataUInt64) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_data()->MergeFrom(from._internal_data()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + data_.MergeFrom(from.data_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void FlatTensorDataUInt64::CopyFrom(const FlatTensorDataUInt64& from) { @@ -4201,126 +4000,117 @@ void FlatTensorDataUInt64::CopyFrom(const FlatTensorDataUInt64& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool FlatTensorDataUInt64::IsInitialized() const { +bool FlatTensorDataUInt64::IsInitialized() const { return true; } -::_pbi::CachedSize* FlatTensorDataUInt64::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void FlatTensorDataUInt64::InternalSwap(FlatTensorDataUInt64* PROTOBUF_RESTRICT other) { +void FlatTensorDataUInt64::InternalSwap(FlatTensorDataUInt64* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.data_.InternalSwap(&other->_impl_.data_); + data_.InternalSwap(&other->data_); } -::google::protobuf::Metadata FlatTensorDataUInt64::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata FlatTensorDataUInt64::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto_getter, &descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto_once, file_level_metadata_service_2fmlmodel_2fv1_2fmlmodel_2eproto[14]); } + // =================================================================== class FlatTensorDataFloat::_Internal { public: }; -FlatTensorDataFloat::FlatTensorDataFloat(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +FlatTensorDataFloat::FlatTensorDataFloat(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + data_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.service.mlmodel.v1.FlatTensorDataFloat) } -inline PROTOBUF_NDEBUG_INLINE FlatTensorDataFloat::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : data_{visibility, arena, from.data_}, - _cached_size_{0} {} - -FlatTensorDataFloat::FlatTensorDataFloat( - ::google::protobuf::Arena* arena, - const FlatTensorDataFloat& from) - : ::google::protobuf::Message(arena) { - FlatTensorDataFloat* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +FlatTensorDataFloat::FlatTensorDataFloat(const FlatTensorDataFloat& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + data_(from.data_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.service.mlmodel.v1.FlatTensorDataFloat) } -inline PROTOBUF_NDEBUG_INLINE FlatTensorDataFloat::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : data_{visibility, arena}, - _cached_size_{0} {} -inline void FlatTensorDataFloat::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void FlatTensorDataFloat::SharedCtor() { } + FlatTensorDataFloat::~FlatTensorDataFloat() { // @@protoc_insertion_point(destructor:viam.service.mlmodel.v1.FlatTensorDataFloat) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void FlatTensorDataFloat::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void FlatTensorDataFloat::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void FlatTensorDataFloat::Clear() { +void FlatTensorDataFloat::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.mlmodel.v1.FlatTensorDataFloat) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.data_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* FlatTensorDataFloat::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + data_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* FlatTensorDataFloat::_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) { + // repeated float data = 1 [json_name = "data", packed = true]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedFloatParser(_internal_mutable_data(), ptr, ctx); + CHK_(ptr); + } else if (static_cast(tag) == 13) { + _internal_add_data(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); + ptr += sizeof(float); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> FlatTensorDataFloat::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_FlatTensorDataFloat_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated float data = 1 [json_name = "data", packed = true]; - {::_pbi::TcParser::FastF32P1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(FlatTensorDataFloat, _impl_.data_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated float data = 1 [json_name = "data", packed = true]; - {PROTOBUF_FIELD_OFFSET(FlatTensorDataFloat, _impl_.data_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kPackedFloat)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* FlatTensorDataFloat::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* FlatTensorDataFloat::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.mlmodel.v1.FlatTensorDataFloat) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated float data = 1 [json_name = "data", packed = true]; if (this->_internal_data_size() > 0) { @@ -4328,55 +4118,56 @@ ::uint8_t* FlatTensorDataFloat::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.mlmodel.v1.FlatTensorDataFloat) return target; } -::size_t FlatTensorDataFloat::ByteSizeLong() const { +size_t FlatTensorDataFloat::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.mlmodel.v1.FlatTensorDataFloat) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated float data = 1 [json_name = "data", packed = true]; { - std::size_t data_size = std::size_t{4} * - ::_pbi::FromIntSize(this->_internal_data_size()) - ; - std::size_t tag_size = data_size == 0 - ? 0 - : 1 + ::_pbi::WireFormatLite::Int32Size( - static_cast(data_size)) - ; - total_size += tag_size + data_size; - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData FlatTensorDataFloat::_class_data_ = { - FlatTensorDataFloat::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor + unsigned int count = static_cast(this->_internal_data_size()); + size_t data_size = 4UL * count; + if (data_size > 0) { + total_size += 1 + + ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); + } + total_size += data_size; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FlatTensorDataFloat::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + FlatTensorDataFloat::MergeImpl }; -const ::google::protobuf::Message::ClassData* FlatTensorDataFloat::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FlatTensorDataFloat::GetClassData() const { return &_class_data_; } + +void FlatTensorDataFloat::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void FlatTensorDataFloat::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.mlmodel.v1.FlatTensorDataFloat) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void FlatTensorDataFloat::MergeFrom(const FlatTensorDataFloat& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.mlmodel.v1.FlatTensorDataFloat) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_data()->MergeFrom(from._internal_data()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + data_.MergeFrom(from.data_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void FlatTensorDataFloat::CopyFrom(const FlatTensorDataFloat& from) { @@ -4386,126 +4177,117 @@ void FlatTensorDataFloat::CopyFrom(const FlatTensorDataFloat& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool FlatTensorDataFloat::IsInitialized() const { +bool FlatTensorDataFloat::IsInitialized() const { return true; } -::_pbi::CachedSize* FlatTensorDataFloat::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void FlatTensorDataFloat::InternalSwap(FlatTensorDataFloat* PROTOBUF_RESTRICT other) { +void FlatTensorDataFloat::InternalSwap(FlatTensorDataFloat* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.data_.InternalSwap(&other->_impl_.data_); + data_.InternalSwap(&other->data_); } -::google::protobuf::Metadata FlatTensorDataFloat::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata FlatTensorDataFloat::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto_getter, &descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto_once, file_level_metadata_service_2fmlmodel_2fv1_2fmlmodel_2eproto[15]); } + // =================================================================== class FlatTensorDataDouble::_Internal { public: }; -FlatTensorDataDouble::FlatTensorDataDouble(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +FlatTensorDataDouble::FlatTensorDataDouble(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + data_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.service.mlmodel.v1.FlatTensorDataDouble) } -inline PROTOBUF_NDEBUG_INLINE FlatTensorDataDouble::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : data_{visibility, arena, from.data_}, - _cached_size_{0} {} - -FlatTensorDataDouble::FlatTensorDataDouble( - ::google::protobuf::Arena* arena, - const FlatTensorDataDouble& from) - : ::google::protobuf::Message(arena) { - FlatTensorDataDouble* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +FlatTensorDataDouble::FlatTensorDataDouble(const FlatTensorDataDouble& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + data_(from.data_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.service.mlmodel.v1.FlatTensorDataDouble) } -inline PROTOBUF_NDEBUG_INLINE FlatTensorDataDouble::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : data_{visibility, arena}, - _cached_size_{0} {} -inline void FlatTensorDataDouble::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void FlatTensorDataDouble::SharedCtor() { } + FlatTensorDataDouble::~FlatTensorDataDouble() { // @@protoc_insertion_point(destructor:viam.service.mlmodel.v1.FlatTensorDataDouble) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void FlatTensorDataDouble::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void FlatTensorDataDouble::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void FlatTensorDataDouble::Clear() { +void FlatTensorDataDouble::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.mlmodel.v1.FlatTensorDataDouble) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.data_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* FlatTensorDataDouble::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + data_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* FlatTensorDataDouble::_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) { + // repeated double data = 1 [json_name = "data", packed = true]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedDoubleParser(_internal_mutable_data(), ptr, ctx); + CHK_(ptr); + } else if (static_cast(tag) == 9) { + _internal_add_data(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); + ptr += sizeof(double); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> FlatTensorDataDouble::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_FlatTensorDataDouble_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated double data = 1 [json_name = "data", packed = true]; - {::_pbi::TcParser::FastF64P1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(FlatTensorDataDouble, _impl_.data_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated double data = 1 [json_name = "data", packed = true]; - {PROTOBUF_FIELD_OFFSET(FlatTensorDataDouble, _impl_.data_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* FlatTensorDataDouble::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* FlatTensorDataDouble::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.mlmodel.v1.FlatTensorDataDouble) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated double data = 1 [json_name = "data", packed = true]; if (this->_internal_data_size() > 0) { @@ -4513,55 +4295,56 @@ ::uint8_t* FlatTensorDataDouble::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.mlmodel.v1.FlatTensorDataDouble) return target; } -::size_t FlatTensorDataDouble::ByteSizeLong() const { +size_t FlatTensorDataDouble::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.mlmodel.v1.FlatTensorDataDouble) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated double data = 1 [json_name = "data", packed = true]; { - std::size_t data_size = std::size_t{8} * - ::_pbi::FromIntSize(this->_internal_data_size()) - ; - std::size_t tag_size = data_size == 0 - ? 0 - : 1 + ::_pbi::WireFormatLite::Int32Size( - static_cast(data_size)) - ; - total_size += tag_size + data_size; - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData FlatTensorDataDouble::_class_data_ = { - FlatTensorDataDouble::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor + unsigned int count = static_cast(this->_internal_data_size()); + size_t data_size = 8UL * count; + if (data_size > 0) { + total_size += 1 + + ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); + } + total_size += data_size; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FlatTensorDataDouble::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + FlatTensorDataDouble::MergeImpl }; -const ::google::protobuf::Message::ClassData* FlatTensorDataDouble::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FlatTensorDataDouble::GetClassData() const { return &_class_data_; } + +void FlatTensorDataDouble::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void FlatTensorDataDouble::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.mlmodel.v1.FlatTensorDataDouble) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void FlatTensorDataDouble::MergeFrom(const FlatTensorDataDouble& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.mlmodel.v1.FlatTensorDataDouble) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_data()->MergeFrom(from._internal_data()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + data_.MergeFrom(from.data_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void FlatTensorDataDouble::CopyFrom(const FlatTensorDataDouble& from) { @@ -4571,30 +4354,26 @@ void FlatTensorDataDouble::CopyFrom(const FlatTensorDataDouble& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool FlatTensorDataDouble::IsInitialized() const { +bool FlatTensorDataDouble::IsInitialized() const { return true; } -::_pbi::CachedSize* FlatTensorDataDouble::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void FlatTensorDataDouble::InternalSwap(FlatTensorDataDouble* PROTOBUF_RESTRICT other) { +void FlatTensorDataDouble::InternalSwap(FlatTensorDataDouble* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.data_.InternalSwap(&other->_impl_.data_); + data_.InternalSwap(&other->data_); } -::google::protobuf::Metadata FlatTensorDataDouble::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata FlatTensorDataDouble::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto_getter, &descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto_once, file_level_metadata_service_2fmlmodel_2fv1_2fmlmodel_2eproto[16]); } + // =================================================================== class FlatTensor::_Internal { public: - static constexpr ::int32_t kOneofCaseOffset = - PROTOBUF_FIELD_OFFSET(::viam::service::mlmodel::v1::FlatTensor, _impl_._oneof_case_); static const ::viam::service::mlmodel::v1::FlatTensorDataInt8& int8_tensor(const FlatTensor* msg); static const ::viam::service::mlmodel::v1::FlatTensorDataUInt8& uint8_tensor(const FlatTensor* msg); static const ::viam::service::mlmodel::v1::FlatTensorDataInt16& int16_tensor(const FlatTensor* msg); @@ -4607,310 +4386,340 @@ class FlatTensor::_Internal { static const ::viam::service::mlmodel::v1::FlatTensorDataDouble& double_tensor(const FlatTensor* msg); }; -const ::viam::service::mlmodel::v1::FlatTensorDataInt8& FlatTensor::_Internal::int8_tensor(const FlatTensor* msg) { - return *msg->_impl_.tensor_.int8_tensor_; +const ::viam::service::mlmodel::v1::FlatTensorDataInt8& +FlatTensor::_Internal::int8_tensor(const FlatTensor* msg) { + return *msg->tensor_.int8_tensor_; } -const ::viam::service::mlmodel::v1::FlatTensorDataUInt8& FlatTensor::_Internal::uint8_tensor(const FlatTensor* msg) { - return *msg->_impl_.tensor_.uint8_tensor_; +const ::viam::service::mlmodel::v1::FlatTensorDataUInt8& +FlatTensor::_Internal::uint8_tensor(const FlatTensor* msg) { + return *msg->tensor_.uint8_tensor_; } -const ::viam::service::mlmodel::v1::FlatTensorDataInt16& FlatTensor::_Internal::int16_tensor(const FlatTensor* msg) { - return *msg->_impl_.tensor_.int16_tensor_; +const ::viam::service::mlmodel::v1::FlatTensorDataInt16& +FlatTensor::_Internal::int16_tensor(const FlatTensor* msg) { + return *msg->tensor_.int16_tensor_; } -const ::viam::service::mlmodel::v1::FlatTensorDataUInt16& FlatTensor::_Internal::uint16_tensor(const FlatTensor* msg) { - return *msg->_impl_.tensor_.uint16_tensor_; +const ::viam::service::mlmodel::v1::FlatTensorDataUInt16& +FlatTensor::_Internal::uint16_tensor(const FlatTensor* msg) { + return *msg->tensor_.uint16_tensor_; } -const ::viam::service::mlmodel::v1::FlatTensorDataInt32& FlatTensor::_Internal::int32_tensor(const FlatTensor* msg) { - return *msg->_impl_.tensor_.int32_tensor_; +const ::viam::service::mlmodel::v1::FlatTensorDataInt32& +FlatTensor::_Internal::int32_tensor(const FlatTensor* msg) { + return *msg->tensor_.int32_tensor_; } -const ::viam::service::mlmodel::v1::FlatTensorDataUInt32& FlatTensor::_Internal::uint32_tensor(const FlatTensor* msg) { - return *msg->_impl_.tensor_.uint32_tensor_; +const ::viam::service::mlmodel::v1::FlatTensorDataUInt32& +FlatTensor::_Internal::uint32_tensor(const FlatTensor* msg) { + return *msg->tensor_.uint32_tensor_; } -const ::viam::service::mlmodel::v1::FlatTensorDataInt64& FlatTensor::_Internal::int64_tensor(const FlatTensor* msg) { - return *msg->_impl_.tensor_.int64_tensor_; +const ::viam::service::mlmodel::v1::FlatTensorDataInt64& +FlatTensor::_Internal::int64_tensor(const FlatTensor* msg) { + return *msg->tensor_.int64_tensor_; } -const ::viam::service::mlmodel::v1::FlatTensorDataUInt64& FlatTensor::_Internal::uint64_tensor(const FlatTensor* msg) { - return *msg->_impl_.tensor_.uint64_tensor_; +const ::viam::service::mlmodel::v1::FlatTensorDataUInt64& +FlatTensor::_Internal::uint64_tensor(const FlatTensor* msg) { + return *msg->tensor_.uint64_tensor_; } -const ::viam::service::mlmodel::v1::FlatTensorDataFloat& FlatTensor::_Internal::float_tensor(const FlatTensor* msg) { - return *msg->_impl_.tensor_.float_tensor_; +const ::viam::service::mlmodel::v1::FlatTensorDataFloat& +FlatTensor::_Internal::float_tensor(const FlatTensor* msg) { + return *msg->tensor_.float_tensor_; } -const ::viam::service::mlmodel::v1::FlatTensorDataDouble& FlatTensor::_Internal::double_tensor(const FlatTensor* msg) { - return *msg->_impl_.tensor_.double_tensor_; +const ::viam::service::mlmodel::v1::FlatTensorDataDouble& +FlatTensor::_Internal::double_tensor(const FlatTensor* msg) { + return *msg->tensor_.double_tensor_; } void FlatTensor::set_allocated_int8_tensor(::viam::service::mlmodel::v1::FlatTensorDataInt8* int8_tensor) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_tensor(); if (int8_tensor) { - ::google::protobuf::Arena* submessage_arena = int8_tensor->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(int8_tensor); if (message_arena != submessage_arena) { - int8_tensor = ::google::protobuf::internal::GetOwnedMessage(message_arena, int8_tensor, submessage_arena); + int8_tensor = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, int8_tensor, submessage_arena); } set_has_int8_tensor(); - _impl_.tensor_.int8_tensor_ = int8_tensor; + tensor_.int8_tensor_ = int8_tensor; } // @@protoc_insertion_point(field_set_allocated:viam.service.mlmodel.v1.FlatTensor.int8_tensor) } void FlatTensor::set_allocated_uint8_tensor(::viam::service::mlmodel::v1::FlatTensorDataUInt8* uint8_tensor) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_tensor(); if (uint8_tensor) { - ::google::protobuf::Arena* submessage_arena = uint8_tensor->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(uint8_tensor); if (message_arena != submessage_arena) { - uint8_tensor = ::google::protobuf::internal::GetOwnedMessage(message_arena, uint8_tensor, submessage_arena); + uint8_tensor = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, uint8_tensor, submessage_arena); } set_has_uint8_tensor(); - _impl_.tensor_.uint8_tensor_ = uint8_tensor; + tensor_.uint8_tensor_ = uint8_tensor; } // @@protoc_insertion_point(field_set_allocated:viam.service.mlmodel.v1.FlatTensor.uint8_tensor) } void FlatTensor::set_allocated_int16_tensor(::viam::service::mlmodel::v1::FlatTensorDataInt16* int16_tensor) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_tensor(); if (int16_tensor) { - ::google::protobuf::Arena* submessage_arena = int16_tensor->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(int16_tensor); if (message_arena != submessage_arena) { - int16_tensor = ::google::protobuf::internal::GetOwnedMessage(message_arena, int16_tensor, submessage_arena); + int16_tensor = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, int16_tensor, submessage_arena); } set_has_int16_tensor(); - _impl_.tensor_.int16_tensor_ = int16_tensor; + tensor_.int16_tensor_ = int16_tensor; } // @@protoc_insertion_point(field_set_allocated:viam.service.mlmodel.v1.FlatTensor.int16_tensor) } void FlatTensor::set_allocated_uint16_tensor(::viam::service::mlmodel::v1::FlatTensorDataUInt16* uint16_tensor) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_tensor(); if (uint16_tensor) { - ::google::protobuf::Arena* submessage_arena = uint16_tensor->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(uint16_tensor); if (message_arena != submessage_arena) { - uint16_tensor = ::google::protobuf::internal::GetOwnedMessage(message_arena, uint16_tensor, submessage_arena); + uint16_tensor = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, uint16_tensor, submessage_arena); } set_has_uint16_tensor(); - _impl_.tensor_.uint16_tensor_ = uint16_tensor; + tensor_.uint16_tensor_ = uint16_tensor; } // @@protoc_insertion_point(field_set_allocated:viam.service.mlmodel.v1.FlatTensor.uint16_tensor) } void FlatTensor::set_allocated_int32_tensor(::viam::service::mlmodel::v1::FlatTensorDataInt32* int32_tensor) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_tensor(); if (int32_tensor) { - ::google::protobuf::Arena* submessage_arena = int32_tensor->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(int32_tensor); if (message_arena != submessage_arena) { - int32_tensor = ::google::protobuf::internal::GetOwnedMessage(message_arena, int32_tensor, submessage_arena); + int32_tensor = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, int32_tensor, submessage_arena); } set_has_int32_tensor(); - _impl_.tensor_.int32_tensor_ = int32_tensor; + tensor_.int32_tensor_ = int32_tensor; } // @@protoc_insertion_point(field_set_allocated:viam.service.mlmodel.v1.FlatTensor.int32_tensor) } void FlatTensor::set_allocated_uint32_tensor(::viam::service::mlmodel::v1::FlatTensorDataUInt32* uint32_tensor) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_tensor(); if (uint32_tensor) { - ::google::protobuf::Arena* submessage_arena = uint32_tensor->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(uint32_tensor); if (message_arena != submessage_arena) { - uint32_tensor = ::google::protobuf::internal::GetOwnedMessage(message_arena, uint32_tensor, submessage_arena); + uint32_tensor = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, uint32_tensor, submessage_arena); } set_has_uint32_tensor(); - _impl_.tensor_.uint32_tensor_ = uint32_tensor; + tensor_.uint32_tensor_ = uint32_tensor; } // @@protoc_insertion_point(field_set_allocated:viam.service.mlmodel.v1.FlatTensor.uint32_tensor) } void FlatTensor::set_allocated_int64_tensor(::viam::service::mlmodel::v1::FlatTensorDataInt64* int64_tensor) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_tensor(); if (int64_tensor) { - ::google::protobuf::Arena* submessage_arena = int64_tensor->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(int64_tensor); if (message_arena != submessage_arena) { - int64_tensor = ::google::protobuf::internal::GetOwnedMessage(message_arena, int64_tensor, submessage_arena); + int64_tensor = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, int64_tensor, submessage_arena); } set_has_int64_tensor(); - _impl_.tensor_.int64_tensor_ = int64_tensor; + tensor_.int64_tensor_ = int64_tensor; } // @@protoc_insertion_point(field_set_allocated:viam.service.mlmodel.v1.FlatTensor.int64_tensor) } void FlatTensor::set_allocated_uint64_tensor(::viam::service::mlmodel::v1::FlatTensorDataUInt64* uint64_tensor) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_tensor(); if (uint64_tensor) { - ::google::protobuf::Arena* submessage_arena = uint64_tensor->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(uint64_tensor); if (message_arena != submessage_arena) { - uint64_tensor = ::google::protobuf::internal::GetOwnedMessage(message_arena, uint64_tensor, submessage_arena); + uint64_tensor = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, uint64_tensor, submessage_arena); } set_has_uint64_tensor(); - _impl_.tensor_.uint64_tensor_ = uint64_tensor; + tensor_.uint64_tensor_ = uint64_tensor; } // @@protoc_insertion_point(field_set_allocated:viam.service.mlmodel.v1.FlatTensor.uint64_tensor) } void FlatTensor::set_allocated_float_tensor(::viam::service::mlmodel::v1::FlatTensorDataFloat* float_tensor) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_tensor(); if (float_tensor) { - ::google::protobuf::Arena* submessage_arena = float_tensor->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(float_tensor); if (message_arena != submessage_arena) { - float_tensor = ::google::protobuf::internal::GetOwnedMessage(message_arena, float_tensor, submessage_arena); + float_tensor = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, float_tensor, submessage_arena); } set_has_float_tensor(); - _impl_.tensor_.float_tensor_ = float_tensor; + tensor_.float_tensor_ = float_tensor; } // @@protoc_insertion_point(field_set_allocated:viam.service.mlmodel.v1.FlatTensor.float_tensor) } void FlatTensor::set_allocated_double_tensor(::viam::service::mlmodel::v1::FlatTensorDataDouble* double_tensor) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_tensor(); if (double_tensor) { - ::google::protobuf::Arena* submessage_arena = double_tensor->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(double_tensor); if (message_arena != submessage_arena) { - double_tensor = ::google::protobuf::internal::GetOwnedMessage(message_arena, double_tensor, submessage_arena); + double_tensor = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, double_tensor, submessage_arena); } set_has_double_tensor(); - _impl_.tensor_.double_tensor_ = double_tensor; + tensor_.double_tensor_ = double_tensor; } // @@protoc_insertion_point(field_set_allocated:viam.service.mlmodel.v1.FlatTensor.double_tensor) } -FlatTensor::FlatTensor(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +FlatTensor::FlatTensor(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + shape_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.service.mlmodel.v1.FlatTensor) } -inline PROTOBUF_NDEBUG_INLINE FlatTensor::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : shape_{visibility, arena, from.shape_}, - tensor_{}, - _cached_size_{0}, - _oneof_case_{from._oneof_case_[0]} {} - -FlatTensor::FlatTensor( - ::google::protobuf::Arena* arena, - const FlatTensor& from) - : ::google::protobuf::Message(arena) { - FlatTensor* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - switch (tensor_case()) { - case TENSOR_NOT_SET: +FlatTensor::FlatTensor(const FlatTensor& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + shape_(from.shape_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + clear_has_tensor(); + switch (from.tensor_case()) { + case kInt8Tensor: { + _internal_mutable_int8_tensor()->::viam::service::mlmodel::v1::FlatTensorDataInt8::MergeFrom(from._internal_int8_tensor()); + break; + } + case kUint8Tensor: { + _internal_mutable_uint8_tensor()->::viam::service::mlmodel::v1::FlatTensorDataUInt8::MergeFrom(from._internal_uint8_tensor()); + break; + } + case kInt16Tensor: { + _internal_mutable_int16_tensor()->::viam::service::mlmodel::v1::FlatTensorDataInt16::MergeFrom(from._internal_int16_tensor()); + break; + } + case kUint16Tensor: { + _internal_mutable_uint16_tensor()->::viam::service::mlmodel::v1::FlatTensorDataUInt16::MergeFrom(from._internal_uint16_tensor()); + break; + } + case kInt32Tensor: { + _internal_mutable_int32_tensor()->::viam::service::mlmodel::v1::FlatTensorDataInt32::MergeFrom(from._internal_int32_tensor()); + break; + } + case kUint32Tensor: { + _internal_mutable_uint32_tensor()->::viam::service::mlmodel::v1::FlatTensorDataUInt32::MergeFrom(from._internal_uint32_tensor()); + break; + } + case kInt64Tensor: { + _internal_mutable_int64_tensor()->::viam::service::mlmodel::v1::FlatTensorDataInt64::MergeFrom(from._internal_int64_tensor()); + break; + } + case kUint64Tensor: { + _internal_mutable_uint64_tensor()->::viam::service::mlmodel::v1::FlatTensorDataUInt64::MergeFrom(from._internal_uint64_tensor()); + break; + } + case kFloatTensor: { + _internal_mutable_float_tensor()->::viam::service::mlmodel::v1::FlatTensorDataFloat::MergeFrom(from._internal_float_tensor()); + break; + } + case kDoubleTensor: { + _internal_mutable_double_tensor()->::viam::service::mlmodel::v1::FlatTensorDataDouble::MergeFrom(from._internal_double_tensor()); + break; + } + case TENSOR_NOT_SET: { break; - case kInt8Tensor: - _impl_.tensor_.int8_tensor_ = CreateMaybeMessage<::viam::service::mlmodel::v1::FlatTensorDataInt8>(arena, *from._impl_.tensor_.int8_tensor_); - break; - case kUint8Tensor: - _impl_.tensor_.uint8_tensor_ = CreateMaybeMessage<::viam::service::mlmodel::v1::FlatTensorDataUInt8>(arena, *from._impl_.tensor_.uint8_tensor_); - break; - case kInt16Tensor: - _impl_.tensor_.int16_tensor_ = CreateMaybeMessage<::viam::service::mlmodel::v1::FlatTensorDataInt16>(arena, *from._impl_.tensor_.int16_tensor_); - break; - case kUint16Tensor: - _impl_.tensor_.uint16_tensor_ = CreateMaybeMessage<::viam::service::mlmodel::v1::FlatTensorDataUInt16>(arena, *from._impl_.tensor_.uint16_tensor_); - break; - case kInt32Tensor: - _impl_.tensor_.int32_tensor_ = CreateMaybeMessage<::viam::service::mlmodel::v1::FlatTensorDataInt32>(arena, *from._impl_.tensor_.int32_tensor_); - break; - case kUint32Tensor: - _impl_.tensor_.uint32_tensor_ = CreateMaybeMessage<::viam::service::mlmodel::v1::FlatTensorDataUInt32>(arena, *from._impl_.tensor_.uint32_tensor_); - break; - case kInt64Tensor: - _impl_.tensor_.int64_tensor_ = CreateMaybeMessage<::viam::service::mlmodel::v1::FlatTensorDataInt64>(arena, *from._impl_.tensor_.int64_tensor_); - break; - case kUint64Tensor: - _impl_.tensor_.uint64_tensor_ = CreateMaybeMessage<::viam::service::mlmodel::v1::FlatTensorDataUInt64>(arena, *from._impl_.tensor_.uint64_tensor_); - break; - case kFloatTensor: - _impl_.tensor_.float_tensor_ = CreateMaybeMessage<::viam::service::mlmodel::v1::FlatTensorDataFloat>(arena, *from._impl_.tensor_.float_tensor_); - break; - case kDoubleTensor: - _impl_.tensor_.double_tensor_ = CreateMaybeMessage<::viam::service::mlmodel::v1::FlatTensorDataDouble>(arena, *from._impl_.tensor_.double_tensor_); - break; + } } - // @@protoc_insertion_point(copy_constructor:viam.service.mlmodel.v1.FlatTensor) } -inline PROTOBUF_NDEBUG_INLINE FlatTensor::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : shape_{visibility, arena}, - tensor_{}, - _cached_size_{0}, - _oneof_case_{} {} -inline void FlatTensor::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void FlatTensor::SharedCtor() { +clear_has_tensor(); } + FlatTensor::~FlatTensor() { // @@protoc_insertion_point(destructor:viam.service.mlmodel.v1.FlatTensor) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void FlatTensor::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); if (has_tensor()) { clear_tensor(); } - _impl_.~Impl_(); +} + +void FlatTensor::SetCachedSize(int size) const { + _cached_size_.Set(size); } void FlatTensor::clear_tensor() { // @@protoc_insertion_point(one_of_clear_start:viam.service.mlmodel.v1.FlatTensor) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); switch (tensor_case()) { case kInt8Tensor: { - if (GetArena() == nullptr) { - delete _impl_.tensor_.int8_tensor_; + if (GetArenaForAllocation() == nullptr) { + delete tensor_.int8_tensor_; } break; } case kUint8Tensor: { - if (GetArena() == nullptr) { - delete _impl_.tensor_.uint8_tensor_; + if (GetArenaForAllocation() == nullptr) { + delete tensor_.uint8_tensor_; } break; } case kInt16Tensor: { - if (GetArena() == nullptr) { - delete _impl_.tensor_.int16_tensor_; + if (GetArenaForAllocation() == nullptr) { + delete tensor_.int16_tensor_; } break; } case kUint16Tensor: { - if (GetArena() == nullptr) { - delete _impl_.tensor_.uint16_tensor_; + if (GetArenaForAllocation() == nullptr) { + delete tensor_.uint16_tensor_; } break; } case kInt32Tensor: { - if (GetArena() == nullptr) { - delete _impl_.tensor_.int32_tensor_; + if (GetArenaForAllocation() == nullptr) { + delete tensor_.int32_tensor_; } break; } case kUint32Tensor: { - if (GetArena() == nullptr) { - delete _impl_.tensor_.uint32_tensor_; + if (GetArenaForAllocation() == nullptr) { + delete tensor_.uint32_tensor_; } break; } case kInt64Tensor: { - if (GetArena() == nullptr) { - delete _impl_.tensor_.int64_tensor_; + if (GetArenaForAllocation() == nullptr) { + delete tensor_.int64_tensor_; } break; } case kUint64Tensor: { - if (GetArena() == nullptr) { - delete _impl_.tensor_.uint64_tensor_; + if (GetArenaForAllocation() == nullptr) { + delete tensor_.uint64_tensor_; } break; } case kFloatTensor: { - if (GetArena() == nullptr) { - delete _impl_.tensor_.float_tensor_; + if (GetArenaForAllocation() == nullptr) { + delete tensor_.float_tensor_; } break; } case kDoubleTensor: { - if (GetArena() == nullptr) { - delete _impl_.tensor_.double_tensor_; + if (GetArenaForAllocation() == nullptr) { + delete tensor_.double_tensor_; } break; } @@ -4918,344 +4727,393 @@ void FlatTensor::clear_tensor() { break; } } - _impl_._oneof_case_[0] = TENSOR_NOT_SET; + _oneof_case_[0] = TENSOR_NOT_SET; } -PROTOBUF_NOINLINE void FlatTensor::Clear() { +void FlatTensor::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.mlmodel.v1.FlatTensor) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.shape_.Clear(); + shape_.Clear(); clear_tensor(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* FlatTensor::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* FlatTensor::_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) { + // repeated fixed64 shape = 1 [json_name = "shape"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedFixed64Parser(_internal_mutable_shape(), ptr, ctx); + CHK_(ptr); + } else if (static_cast(tag) == 9) { + _internal_add_shape(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); + ptr += sizeof(uint64_t); + } else + goto handle_unusual; + continue; + // .viam.service.mlmodel.v1.FlatTensorDataInt8 int8_tensor = 2 [json_name = "int8Tensor"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_int8_tensor(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.service.mlmodel.v1.FlatTensorDataUInt8 uint8_tensor = 3 [json_name = "uint8Tensor"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_uint8_tensor(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.service.mlmodel.v1.FlatTensorDataInt16 int16_tensor = 4 [json_name = "int16Tensor"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_int16_tensor(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.service.mlmodel.v1.FlatTensorDataUInt16 uint16_tensor = 5 [json_name = "uint16Tensor"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_uint16_tensor(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.service.mlmodel.v1.FlatTensorDataInt32 int32_tensor = 6 [json_name = "int32Tensor"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr = ctx->ParseMessage(_internal_mutable_int32_tensor(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.service.mlmodel.v1.FlatTensorDataUInt32 uint32_tensor = 7 [json_name = "uint32Tensor"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + ptr = ctx->ParseMessage(_internal_mutable_uint32_tensor(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.service.mlmodel.v1.FlatTensorDataInt64 int64_tensor = 8 [json_name = "int64Tensor"]; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { + ptr = ctx->ParseMessage(_internal_mutable_int64_tensor(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.service.mlmodel.v1.FlatTensorDataUInt64 uint64_tensor = 9 [json_name = "uint64Tensor"]; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { + ptr = ctx->ParseMessage(_internal_mutable_uint64_tensor(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.service.mlmodel.v1.FlatTensorDataFloat float_tensor = 10 [json_name = "floatTensor"]; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { + ptr = ctx->ParseMessage(_internal_mutable_float_tensor(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.service.mlmodel.v1.FlatTensorDataDouble double_tensor = 11 [json_name = "doubleTensor"]; + case 11: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 90)) { + ptr = ctx->ParseMessage(_internal_mutable_double_tensor(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 11, 10, 0, 2> FlatTensor::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 11, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294965248, // skipmap - offsetof(decltype(_table_), field_entries), - 11, // num_field_entries - 10, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_FlatTensor_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated fixed64 shape = 1 [json_name = "shape"]; - {::_pbi::TcParser::FastF64P1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(FlatTensor, _impl_.shape_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated fixed64 shape = 1 [json_name = "shape"]; - {PROTOBUF_FIELD_OFFSET(FlatTensor, _impl_.shape_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kPackedFixed64)}, - // .viam.service.mlmodel.v1.FlatTensorDataInt8 int8_tensor = 2 [json_name = "int8Tensor"]; - {PROTOBUF_FIELD_OFFSET(FlatTensor, _impl_.tensor_.int8_tensor_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .viam.service.mlmodel.v1.FlatTensorDataUInt8 uint8_tensor = 3 [json_name = "uint8Tensor"]; - {PROTOBUF_FIELD_OFFSET(FlatTensor, _impl_.tensor_.uint8_tensor_), _Internal::kOneofCaseOffset + 0, 1, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .viam.service.mlmodel.v1.FlatTensorDataInt16 int16_tensor = 4 [json_name = "int16Tensor"]; - {PROTOBUF_FIELD_OFFSET(FlatTensor, _impl_.tensor_.int16_tensor_), _Internal::kOneofCaseOffset + 0, 2, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .viam.service.mlmodel.v1.FlatTensorDataUInt16 uint16_tensor = 5 [json_name = "uint16Tensor"]; - {PROTOBUF_FIELD_OFFSET(FlatTensor, _impl_.tensor_.uint16_tensor_), _Internal::kOneofCaseOffset + 0, 3, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .viam.service.mlmodel.v1.FlatTensorDataInt32 int32_tensor = 6 [json_name = "int32Tensor"]; - {PROTOBUF_FIELD_OFFSET(FlatTensor, _impl_.tensor_.int32_tensor_), _Internal::kOneofCaseOffset + 0, 4, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .viam.service.mlmodel.v1.FlatTensorDataUInt32 uint32_tensor = 7 [json_name = "uint32Tensor"]; - {PROTOBUF_FIELD_OFFSET(FlatTensor, _impl_.tensor_.uint32_tensor_), _Internal::kOneofCaseOffset + 0, 5, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .viam.service.mlmodel.v1.FlatTensorDataInt64 int64_tensor = 8 [json_name = "int64Tensor"]; - {PROTOBUF_FIELD_OFFSET(FlatTensor, _impl_.tensor_.int64_tensor_), _Internal::kOneofCaseOffset + 0, 6, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .viam.service.mlmodel.v1.FlatTensorDataUInt64 uint64_tensor = 9 [json_name = "uint64Tensor"]; - {PROTOBUF_FIELD_OFFSET(FlatTensor, _impl_.tensor_.uint64_tensor_), _Internal::kOneofCaseOffset + 0, 7, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .viam.service.mlmodel.v1.FlatTensorDataFloat float_tensor = 10 [json_name = "floatTensor"]; - {PROTOBUF_FIELD_OFFSET(FlatTensor, _impl_.tensor_.float_tensor_), _Internal::kOneofCaseOffset + 0, 8, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .viam.service.mlmodel.v1.FlatTensorDataDouble double_tensor = 11 [json_name = "doubleTensor"]; - {PROTOBUF_FIELD_OFFSET(FlatTensor, _impl_.tensor_.double_tensor_), _Internal::kOneofCaseOffset + 0, 9, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::service::mlmodel::v1::FlatTensorDataInt8>()}, - {::_pbi::TcParser::GetTable<::viam::service::mlmodel::v1::FlatTensorDataUInt8>()}, - {::_pbi::TcParser::GetTable<::viam::service::mlmodel::v1::FlatTensorDataInt16>()}, - {::_pbi::TcParser::GetTable<::viam::service::mlmodel::v1::FlatTensorDataUInt16>()}, - {::_pbi::TcParser::GetTable<::viam::service::mlmodel::v1::FlatTensorDataInt32>()}, - {::_pbi::TcParser::GetTable<::viam::service::mlmodel::v1::FlatTensorDataUInt32>()}, - {::_pbi::TcParser::GetTable<::viam::service::mlmodel::v1::FlatTensorDataInt64>()}, - {::_pbi::TcParser::GetTable<::viam::service::mlmodel::v1::FlatTensorDataUInt64>()}, - {::_pbi::TcParser::GetTable<::viam::service::mlmodel::v1::FlatTensorDataFloat>()}, - {::_pbi::TcParser::GetTable<::viam::service::mlmodel::v1::FlatTensorDataDouble>()}, - }}, {{ - }}, -}; - -::uint8_t* FlatTensor::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* FlatTensor::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.mlmodel.v1.FlatTensor) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated fixed64 shape = 1 [json_name = "shape"]; if (this->_internal_shape_size() > 0) { target = stream->WriteFixedPacked(1, _internal_shape(), target); } - switch (tensor_case()) { - case kInt8Tensor: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::int8_tensor(this), - _Internal::int8_tensor(this).GetCachedSize(), target, stream); - break; - } - case kUint8Tensor: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::uint8_tensor(this), - _Internal::uint8_tensor(this).GetCachedSize(), target, stream); - break; - } - case kInt16Tensor: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, _Internal::int16_tensor(this), - _Internal::int16_tensor(this).GetCachedSize(), target, stream); - break; - } - case kUint16Tensor: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 5, _Internal::uint16_tensor(this), - _Internal::uint16_tensor(this).GetCachedSize(), target, stream); - break; - } - case kInt32Tensor: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 6, _Internal::int32_tensor(this), - _Internal::int32_tensor(this).GetCachedSize(), target, stream); - break; - } - case kUint32Tensor: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 7, _Internal::uint32_tensor(this), - _Internal::uint32_tensor(this).GetCachedSize(), target, stream); - break; - } - case kInt64Tensor: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 8, _Internal::int64_tensor(this), - _Internal::int64_tensor(this).GetCachedSize(), target, stream); - break; - } - case kUint64Tensor: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 9, _Internal::uint64_tensor(this), - _Internal::uint64_tensor(this).GetCachedSize(), target, stream); - break; - } - case kFloatTensor: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 10, _Internal::float_tensor(this), - _Internal::float_tensor(this).GetCachedSize(), target, stream); - break; - } - case kDoubleTensor: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 11, _Internal::double_tensor(this), - _Internal::double_tensor(this).GetCachedSize(), target, stream); - break; - } - default: - break; + // .viam.service.mlmodel.v1.FlatTensorDataInt8 int8_tensor = 2 [json_name = "int8Tensor"]; + if (_internal_has_int8_tensor()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::int8_tensor(this), + _Internal::int8_tensor(this).GetCachedSize(), target, stream); + } + + // .viam.service.mlmodel.v1.FlatTensorDataUInt8 uint8_tensor = 3 [json_name = "uint8Tensor"]; + if (_internal_has_uint8_tensor()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::uint8_tensor(this), + _Internal::uint8_tensor(this).GetCachedSize(), target, stream); + } + + // .viam.service.mlmodel.v1.FlatTensorDataInt16 int16_tensor = 4 [json_name = "int16Tensor"]; + if (_internal_has_int16_tensor()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::int16_tensor(this), + _Internal::int16_tensor(this).GetCachedSize(), target, stream); + } + + // .viam.service.mlmodel.v1.FlatTensorDataUInt16 uint16_tensor = 5 [json_name = "uint16Tensor"]; + if (_internal_has_uint16_tensor()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(5, _Internal::uint16_tensor(this), + _Internal::uint16_tensor(this).GetCachedSize(), target, stream); + } + + // .viam.service.mlmodel.v1.FlatTensorDataInt32 int32_tensor = 6 [json_name = "int32Tensor"]; + if (_internal_has_int32_tensor()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(6, _Internal::int32_tensor(this), + _Internal::int32_tensor(this).GetCachedSize(), target, stream); + } + + // .viam.service.mlmodel.v1.FlatTensorDataUInt32 uint32_tensor = 7 [json_name = "uint32Tensor"]; + if (_internal_has_uint32_tensor()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(7, _Internal::uint32_tensor(this), + _Internal::uint32_tensor(this).GetCachedSize(), target, stream); + } + + // .viam.service.mlmodel.v1.FlatTensorDataInt64 int64_tensor = 8 [json_name = "int64Tensor"]; + if (_internal_has_int64_tensor()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(8, _Internal::int64_tensor(this), + _Internal::int64_tensor(this).GetCachedSize(), target, stream); + } + + // .viam.service.mlmodel.v1.FlatTensorDataUInt64 uint64_tensor = 9 [json_name = "uint64Tensor"]; + if (_internal_has_uint64_tensor()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(9, _Internal::uint64_tensor(this), + _Internal::uint64_tensor(this).GetCachedSize(), target, stream); + } + + // .viam.service.mlmodel.v1.FlatTensorDataFloat float_tensor = 10 [json_name = "floatTensor"]; + if (_internal_has_float_tensor()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(10, _Internal::float_tensor(this), + _Internal::float_tensor(this).GetCachedSize(), target, stream); + } + + // .viam.service.mlmodel.v1.FlatTensorDataDouble double_tensor = 11 [json_name = "doubleTensor"]; + if (_internal_has_double_tensor()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(11, _Internal::double_tensor(this), + _Internal::double_tensor(this).GetCachedSize(), target, stream); } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.mlmodel.v1.FlatTensor) return target; } -::size_t FlatTensor::ByteSizeLong() const { +size_t FlatTensor::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.mlmodel.v1.FlatTensor) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated fixed64 shape = 1 [json_name = "shape"]; { - std::size_t data_size = std::size_t{8} * - ::_pbi::FromIntSize(this->_internal_shape_size()) - ; - std::size_t tag_size = data_size == 0 - ? 0 - : 1 + ::_pbi::WireFormatLite::Int32Size( - static_cast(data_size)) - ; - total_size += tag_size + data_size; + unsigned int count = static_cast(this->_internal_shape_size()); + size_t data_size = 8UL * count; + if (data_size > 0) { + total_size += 1 + + ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); + } + total_size += data_size; } + switch (tensor_case()) { // .viam.service.mlmodel.v1.FlatTensorDataInt8 int8_tensor = 2 [json_name = "int8Tensor"]; case kInt8Tensor: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.tensor_.int8_tensor_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *tensor_.int8_tensor_); break; } // .viam.service.mlmodel.v1.FlatTensorDataUInt8 uint8_tensor = 3 [json_name = "uint8Tensor"]; case kUint8Tensor: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.tensor_.uint8_tensor_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *tensor_.uint8_tensor_); break; } // .viam.service.mlmodel.v1.FlatTensorDataInt16 int16_tensor = 4 [json_name = "int16Tensor"]; case kInt16Tensor: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.tensor_.int16_tensor_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *tensor_.int16_tensor_); break; } // .viam.service.mlmodel.v1.FlatTensorDataUInt16 uint16_tensor = 5 [json_name = "uint16Tensor"]; case kUint16Tensor: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.tensor_.uint16_tensor_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *tensor_.uint16_tensor_); break; } // .viam.service.mlmodel.v1.FlatTensorDataInt32 int32_tensor = 6 [json_name = "int32Tensor"]; case kInt32Tensor: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.tensor_.int32_tensor_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *tensor_.int32_tensor_); break; } // .viam.service.mlmodel.v1.FlatTensorDataUInt32 uint32_tensor = 7 [json_name = "uint32Tensor"]; case kUint32Tensor: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.tensor_.uint32_tensor_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *tensor_.uint32_tensor_); break; } // .viam.service.mlmodel.v1.FlatTensorDataInt64 int64_tensor = 8 [json_name = "int64Tensor"]; case kInt64Tensor: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.tensor_.int64_tensor_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *tensor_.int64_tensor_); break; } // .viam.service.mlmodel.v1.FlatTensorDataUInt64 uint64_tensor = 9 [json_name = "uint64Tensor"]; case kUint64Tensor: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.tensor_.uint64_tensor_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *tensor_.uint64_tensor_); break; } // .viam.service.mlmodel.v1.FlatTensorDataFloat float_tensor = 10 [json_name = "floatTensor"]; case kFloatTensor: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.tensor_.float_tensor_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *tensor_.float_tensor_); break; } // .viam.service.mlmodel.v1.FlatTensorDataDouble double_tensor = 11 [json_name = "doubleTensor"]; case kDoubleTensor: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.tensor_.double_tensor_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *tensor_.double_tensor_); break; } case TENSOR_NOT_SET: { break; } } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData FlatTensor::_class_data_ = { - FlatTensor::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FlatTensor::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + FlatTensor::MergeImpl }; -const ::google::protobuf::Message::ClassData* FlatTensor::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FlatTensor::GetClassData() const { return &_class_data_; } + +void FlatTensor::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void FlatTensor::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.mlmodel.v1.FlatTensor) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void FlatTensor::MergeFrom(const FlatTensor& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.mlmodel.v1.FlatTensor) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_shape()->MergeFrom(from._internal_shape()); + shape_.MergeFrom(from.shape_); switch (from.tensor_case()) { case kInt8Tensor: { - _this->_internal_mutable_int8_tensor()->::viam::service::mlmodel::v1::FlatTensorDataInt8::MergeFrom( - from._internal_int8_tensor()); + _internal_mutable_int8_tensor()->::viam::service::mlmodel::v1::FlatTensorDataInt8::MergeFrom(from._internal_int8_tensor()); break; } case kUint8Tensor: { - _this->_internal_mutable_uint8_tensor()->::viam::service::mlmodel::v1::FlatTensorDataUInt8::MergeFrom( - from._internal_uint8_tensor()); + _internal_mutable_uint8_tensor()->::viam::service::mlmodel::v1::FlatTensorDataUInt8::MergeFrom(from._internal_uint8_tensor()); break; } case kInt16Tensor: { - _this->_internal_mutable_int16_tensor()->::viam::service::mlmodel::v1::FlatTensorDataInt16::MergeFrom( - from._internal_int16_tensor()); + _internal_mutable_int16_tensor()->::viam::service::mlmodel::v1::FlatTensorDataInt16::MergeFrom(from._internal_int16_tensor()); break; } case kUint16Tensor: { - _this->_internal_mutable_uint16_tensor()->::viam::service::mlmodel::v1::FlatTensorDataUInt16::MergeFrom( - from._internal_uint16_tensor()); + _internal_mutable_uint16_tensor()->::viam::service::mlmodel::v1::FlatTensorDataUInt16::MergeFrom(from._internal_uint16_tensor()); break; } case kInt32Tensor: { - _this->_internal_mutable_int32_tensor()->::viam::service::mlmodel::v1::FlatTensorDataInt32::MergeFrom( - from._internal_int32_tensor()); + _internal_mutable_int32_tensor()->::viam::service::mlmodel::v1::FlatTensorDataInt32::MergeFrom(from._internal_int32_tensor()); break; } case kUint32Tensor: { - _this->_internal_mutable_uint32_tensor()->::viam::service::mlmodel::v1::FlatTensorDataUInt32::MergeFrom( - from._internal_uint32_tensor()); + _internal_mutable_uint32_tensor()->::viam::service::mlmodel::v1::FlatTensorDataUInt32::MergeFrom(from._internal_uint32_tensor()); break; } case kInt64Tensor: { - _this->_internal_mutable_int64_tensor()->::viam::service::mlmodel::v1::FlatTensorDataInt64::MergeFrom( - from._internal_int64_tensor()); + _internal_mutable_int64_tensor()->::viam::service::mlmodel::v1::FlatTensorDataInt64::MergeFrom(from._internal_int64_tensor()); break; } case kUint64Tensor: { - _this->_internal_mutable_uint64_tensor()->::viam::service::mlmodel::v1::FlatTensorDataUInt64::MergeFrom( - from._internal_uint64_tensor()); + _internal_mutable_uint64_tensor()->::viam::service::mlmodel::v1::FlatTensorDataUInt64::MergeFrom(from._internal_uint64_tensor()); break; } case kFloatTensor: { - _this->_internal_mutable_float_tensor()->::viam::service::mlmodel::v1::FlatTensorDataFloat::MergeFrom( - from._internal_float_tensor()); + _internal_mutable_float_tensor()->::viam::service::mlmodel::v1::FlatTensorDataFloat::MergeFrom(from._internal_float_tensor()); break; } case kDoubleTensor: { - _this->_internal_mutable_double_tensor()->::viam::service::mlmodel::v1::FlatTensorDataDouble::MergeFrom( - from._internal_double_tensor()); + _internal_mutable_double_tensor()->::viam::service::mlmodel::v1::FlatTensorDataDouble::MergeFrom(from._internal_double_tensor()); break; } case TENSOR_NOT_SET: { break; } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void FlatTensor::CopyFrom(const FlatTensor& from) { @@ -5265,216 +5123,220 @@ void FlatTensor::CopyFrom(const FlatTensor& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool FlatTensor::IsInitialized() const { +bool FlatTensor::IsInitialized() const { return true; } -::_pbi::CachedSize* FlatTensor::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void FlatTensor::InternalSwap(FlatTensor* PROTOBUF_RESTRICT other) { +void FlatTensor::InternalSwap(FlatTensor* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.shape_.InternalSwap(&other->_impl_.shape_); - swap(_impl_.tensor_, other->_impl_.tensor_); - swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); + shape_.InternalSwap(&other->shape_); + swap(tensor_, other->tensor_); + swap(_oneof_case_[0], other->_oneof_case_[0]); } -::google::protobuf::Metadata FlatTensor::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata FlatTensor::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto_getter, &descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto_once, file_level_metadata_service_2fmlmodel_2fv1_2fmlmodel_2eproto[17]); } + // =================================================================== FlatTensors_TensorsEntry_DoNotUse::FlatTensors_TensorsEntry_DoNotUse() {} -FlatTensors_TensorsEntry_DoNotUse::FlatTensors_TensorsEntry_DoNotUse(::google::protobuf::Arena* arena) +FlatTensors_TensorsEntry_DoNotUse::FlatTensors_TensorsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) : SuperType(arena) {} -::google::protobuf::Metadata FlatTensors_TensorsEntry_DoNotUse::GetMetadata() const { +void FlatTensors_TensorsEntry_DoNotUse::MergeFrom(const FlatTensors_TensorsEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata FlatTensors_TensorsEntry_DoNotUse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto_getter, &descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto_once, file_level_metadata_service_2fmlmodel_2fv1_2fmlmodel_2eproto[18]); } + // =================================================================== class FlatTensors::_Internal { public: }; -FlatTensors::FlatTensors(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +FlatTensors::FlatTensors(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + tensors_(arena) { + SharedCtor(); + if (arena != nullptr && !is_message_owned) { + arena->OwnCustomDestructor(this, &FlatTensors::ArenaDtor); + } // @@protoc_insertion_point(arena_constructor:viam.service.mlmodel.v1.FlatTensors) } -inline PROTOBUF_NDEBUG_INLINE FlatTensors::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : tensors_{visibility, arena, from.tensors_}, - _cached_size_{0} {} - -FlatTensors::FlatTensors( - ::google::protobuf::Arena* arena, - const FlatTensors& from) - : ::google::protobuf::Message(arena) { - FlatTensors* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +FlatTensors::FlatTensors(const FlatTensors& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + tensors_.MergeFrom(from.tensors_); // @@protoc_insertion_point(copy_constructor:viam.service.mlmodel.v1.FlatTensors) } -inline PROTOBUF_NDEBUG_INLINE FlatTensors::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : tensors_{visibility, arena}, - _cached_size_{0} {} -inline void FlatTensors::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void FlatTensors::SharedCtor() { } + FlatTensors::~FlatTensors() { // @@protoc_insertion_point(destructor:viam.service.mlmodel.v1.FlatTensors) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + ArenaDtor(this); + return; + } SharedDtor(); } + inline void FlatTensors::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + tensors_.Destruct(); +} + +void FlatTensors::ArenaDtor(void* object) { + FlatTensors* _this = reinterpret_cast< FlatTensors* >(object); + _this->tensors_.Destruct(); +} +void FlatTensors::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void FlatTensors::Clear() { +void FlatTensors::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.mlmodel.v1.FlatTensors) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.tensors_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* FlatTensors::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + tensors_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* FlatTensors::_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 tensors = 1 [json_name = "tensors"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&tensors_, 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 2, 51, 2> FlatTensors::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_FlatTensors_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // map tensors = 1 [json_name = "tensors"]; - {PROTOBUF_FIELD_OFFSET(FlatTensors, _impl_.tensors_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, - }}, {{ - {::_pbi::TcParser::GetMapAuxInfo< - decltype(FlatTensors()._impl_.tensors_)>( - 1, 0, 0, 9, - 11)}, - {::_pbi::TcParser::CreateInArenaStorageCb<::viam::service::mlmodel::v1::FlatTensor>}, - }}, {{ - "\43\7\0\0\0\0\0\0" - "viam.service.mlmodel.v1.FlatTensors" - "tensors" - }}, -}; - -::uint8_t* FlatTensors::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* FlatTensors::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.mlmodel.v1.FlatTensors) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // map tensors = 1 [json_name = "tensors"]; - if (!_internal_tensors().empty()) { - using MapType = ::google::protobuf::Map; - using WireHelper = _pbi::MapEntryFuncs; - const auto& field = _internal_tensors(); - - if (stream->IsSerializationDeterministic() && field.size() > 1) { - for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { - target = WireHelper::InternalSerialize( - 1, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.mlmodel.v1.FlatTensors.tensors"); + if (!this->_internal_tensors().empty()) { + using MapType = ::_pb::Map; + using WireHelper = FlatTensors_TensorsEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_tensors(); + 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.service.mlmodel.v1.FlatTensors.TensorsEntry.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 : field) { - target = WireHelper::InternalSerialize( - 1, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.mlmodel.v1.FlatTensors.tensors"); + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.mlmodel.v1.FlatTensors) return target; } -::size_t FlatTensors::ByteSizeLong() const { +size_t FlatTensors::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.mlmodel.v1.FlatTensors) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // map tensors = 1 [json_name = "tensors"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_tensors_size()); - for (const auto& entry : _internal_tensors()) { - total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_tensors_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::service::mlmodel::v1::FlatTensor >::const_iterator + it = this->_internal_tensors().begin(); + it != this->_internal_tensors().end(); ++it) { + total_size += FlatTensors_TensorsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData FlatTensors::_class_data_ = { - FlatTensors::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FlatTensors::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + FlatTensors::MergeImpl }; -const ::google::protobuf::Message::ClassData* FlatTensors::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FlatTensors::GetClassData() const { return &_class_data_; } + +void FlatTensors::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void FlatTensors::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.mlmodel.v1.FlatTensors) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void FlatTensors::MergeFrom(const FlatTensors& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.mlmodel.v1.FlatTensors) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.tensors_.MergeFrom(from._impl_.tensors_); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + tensors_.MergeFrom(from.tensors_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void FlatTensors::CopyFrom(const FlatTensors& from) { @@ -5484,32 +5346,109 @@ void FlatTensors::CopyFrom(const FlatTensors& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool FlatTensors::IsInitialized() const { +bool FlatTensors::IsInitialized() const { return true; } -::_pbi::CachedSize* FlatTensors::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void FlatTensors::InternalSwap(FlatTensors* PROTOBUF_RESTRICT other) { +void FlatTensors::InternalSwap(FlatTensors* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.tensors_.InternalSwap(&other->_impl_.tensors_); + tensors_.InternalSwap(&other->tensors_); } -::google::protobuf::Metadata FlatTensors::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata FlatTensors::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto_getter, &descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto_once, file_level_metadata_service_2fmlmodel_2fv1_2fmlmodel_2eproto[19]); } + // @@protoc_insertion_point(namespace_scope) } // namespace v1 } // namespace mlmodel } // namespace service } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::service::mlmodel::v1::InferRequest* +Arena::CreateMaybeMessage< ::viam::service::mlmodel::v1::InferRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::mlmodel::v1::InferRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::mlmodel::v1::InferResponse* +Arena::CreateMaybeMessage< ::viam::service::mlmodel::v1::InferResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::mlmodel::v1::InferResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::mlmodel::v1::MetadataRequest* +Arena::CreateMaybeMessage< ::viam::service::mlmodel::v1::MetadataRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::mlmodel::v1::MetadataRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::mlmodel::v1::MetadataResponse* +Arena::CreateMaybeMessage< ::viam::service::mlmodel::v1::MetadataResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::mlmodel::v1::MetadataResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::mlmodel::v1::Metadata* +Arena::CreateMaybeMessage< ::viam::service::mlmodel::v1::Metadata >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::mlmodel::v1::Metadata >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::mlmodel::v1::TensorInfo* +Arena::CreateMaybeMessage< ::viam::service::mlmodel::v1::TensorInfo >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::mlmodel::v1::TensorInfo >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::mlmodel::v1::File* +Arena::CreateMaybeMessage< ::viam::service::mlmodel::v1::File >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::mlmodel::v1::File >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::mlmodel::v1::FlatTensorDataInt8* +Arena::CreateMaybeMessage< ::viam::service::mlmodel::v1::FlatTensorDataInt8 >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::mlmodel::v1::FlatTensorDataInt8 >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::mlmodel::v1::FlatTensorDataUInt8* +Arena::CreateMaybeMessage< ::viam::service::mlmodel::v1::FlatTensorDataUInt8 >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::mlmodel::v1::FlatTensorDataUInt8 >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::mlmodel::v1::FlatTensorDataInt16* +Arena::CreateMaybeMessage< ::viam::service::mlmodel::v1::FlatTensorDataInt16 >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::mlmodel::v1::FlatTensorDataInt16 >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::mlmodel::v1::FlatTensorDataUInt16* +Arena::CreateMaybeMessage< ::viam::service::mlmodel::v1::FlatTensorDataUInt16 >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::mlmodel::v1::FlatTensorDataUInt16 >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::mlmodel::v1::FlatTensorDataInt32* +Arena::CreateMaybeMessage< ::viam::service::mlmodel::v1::FlatTensorDataInt32 >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::mlmodel::v1::FlatTensorDataInt32 >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::mlmodel::v1::FlatTensorDataUInt32* +Arena::CreateMaybeMessage< ::viam::service::mlmodel::v1::FlatTensorDataUInt32 >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::mlmodel::v1::FlatTensorDataUInt32 >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::mlmodel::v1::FlatTensorDataInt64* +Arena::CreateMaybeMessage< ::viam::service::mlmodel::v1::FlatTensorDataInt64 >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::mlmodel::v1::FlatTensorDataInt64 >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::mlmodel::v1::FlatTensorDataUInt64* +Arena::CreateMaybeMessage< ::viam::service::mlmodel::v1::FlatTensorDataUInt64 >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::mlmodel::v1::FlatTensorDataUInt64 >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::mlmodel::v1::FlatTensorDataFloat* +Arena::CreateMaybeMessage< ::viam::service::mlmodel::v1::FlatTensorDataFloat >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::mlmodel::v1::FlatTensorDataFloat >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::mlmodel::v1::FlatTensorDataDouble* +Arena::CreateMaybeMessage< ::viam::service::mlmodel::v1::FlatTensorDataDouble >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::mlmodel::v1::FlatTensorDataDouble >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::mlmodel::v1::FlatTensor* +Arena::CreateMaybeMessage< ::viam::service::mlmodel::v1::FlatTensor >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::mlmodel::v1::FlatTensor >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::mlmodel::v1::FlatTensors_TensorsEntry_DoNotUse* +Arena::CreateMaybeMessage< ::viam::service::mlmodel::v1::FlatTensors_TensorsEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::mlmodel::v1::FlatTensors_TensorsEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::mlmodel::v1::FlatTensors* +Arena::CreateMaybeMessage< ::viam::service::mlmodel::v1::FlatTensors >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::mlmodel::v1::FlatTensors >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/service/mlmodel/v1/mlmodel.pb.h b/src/viam/api/service/mlmodel/v1/mlmodel.pb.h index 059bada35..9a5f0a759 100644 --- a/src/viam/api/service/mlmodel/v1/mlmodel.pb.h +++ b/src/viam/api/service/mlmodel/v1/mlmodel.pb.h @@ -1,66 +1,55 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: service/mlmodel/v1/mlmodel.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_service_2fmlmodel_2fv1_2fmlmodel_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_service_2fmlmodel_2fv1_2fmlmodel_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_service_2fmlmodel_2fv1_2fmlmodel_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_service_2fmlmodel_2fv1_2fmlmodel_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/map.h" // IWYU pragma: export -#include "google/protobuf/map_entry.h" -#include "google/protobuf/map_field_inl.h" -#include "google/protobuf/generated_enum_reflection.h" -#include "google/protobuf/unknown_field_set.h" + +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include +#include #include "google/api/annotations.pb.h" -#include "google/protobuf/struct.pb.h" +#include // @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - +#include #define PROTOBUF_INTERNAL_EXPORT_service_2fmlmodel_2fv1_2fmlmodel_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_service_2fmlmodel_2fv1_2fmlmodel_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_service_2fmlmodel_2fv1_2fmlmodel_2eproto; namespace viam { namespace service { namespace mlmodel { @@ -129,79 +118,83 @@ extern TensorInfoDefaultTypeInternal _TensorInfo_default_instance_; } // namespace mlmodel } // namespace service } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::service::mlmodel::v1::File* Arena::CreateMaybeMessage<::viam::service::mlmodel::v1::File>(Arena*); +template<> ::viam::service::mlmodel::v1::FlatTensor* Arena::CreateMaybeMessage<::viam::service::mlmodel::v1::FlatTensor>(Arena*); +template<> ::viam::service::mlmodel::v1::FlatTensorDataDouble* Arena::CreateMaybeMessage<::viam::service::mlmodel::v1::FlatTensorDataDouble>(Arena*); +template<> ::viam::service::mlmodel::v1::FlatTensorDataFloat* Arena::CreateMaybeMessage<::viam::service::mlmodel::v1::FlatTensorDataFloat>(Arena*); +template<> ::viam::service::mlmodel::v1::FlatTensorDataInt16* Arena::CreateMaybeMessage<::viam::service::mlmodel::v1::FlatTensorDataInt16>(Arena*); +template<> ::viam::service::mlmodel::v1::FlatTensorDataInt32* Arena::CreateMaybeMessage<::viam::service::mlmodel::v1::FlatTensorDataInt32>(Arena*); +template<> ::viam::service::mlmodel::v1::FlatTensorDataInt64* Arena::CreateMaybeMessage<::viam::service::mlmodel::v1::FlatTensorDataInt64>(Arena*); +template<> ::viam::service::mlmodel::v1::FlatTensorDataInt8* Arena::CreateMaybeMessage<::viam::service::mlmodel::v1::FlatTensorDataInt8>(Arena*); +template<> ::viam::service::mlmodel::v1::FlatTensorDataUInt16* Arena::CreateMaybeMessage<::viam::service::mlmodel::v1::FlatTensorDataUInt16>(Arena*); +template<> ::viam::service::mlmodel::v1::FlatTensorDataUInt32* Arena::CreateMaybeMessage<::viam::service::mlmodel::v1::FlatTensorDataUInt32>(Arena*); +template<> ::viam::service::mlmodel::v1::FlatTensorDataUInt64* Arena::CreateMaybeMessage<::viam::service::mlmodel::v1::FlatTensorDataUInt64>(Arena*); +template<> ::viam::service::mlmodel::v1::FlatTensorDataUInt8* Arena::CreateMaybeMessage<::viam::service::mlmodel::v1::FlatTensorDataUInt8>(Arena*); +template<> ::viam::service::mlmodel::v1::FlatTensors* Arena::CreateMaybeMessage<::viam::service::mlmodel::v1::FlatTensors>(Arena*); +template<> ::viam::service::mlmodel::v1::FlatTensors_TensorsEntry_DoNotUse* Arena::CreateMaybeMessage<::viam::service::mlmodel::v1::FlatTensors_TensorsEntry_DoNotUse>(Arena*); +template<> ::viam::service::mlmodel::v1::InferRequest* Arena::CreateMaybeMessage<::viam::service::mlmodel::v1::InferRequest>(Arena*); +template<> ::viam::service::mlmodel::v1::InferResponse* Arena::CreateMaybeMessage<::viam::service::mlmodel::v1::InferResponse>(Arena*); +template<> ::viam::service::mlmodel::v1::Metadata* Arena::CreateMaybeMessage<::viam::service::mlmodel::v1::Metadata>(Arena*); +template<> ::viam::service::mlmodel::v1::MetadataRequest* Arena::CreateMaybeMessage<::viam::service::mlmodel::v1::MetadataRequest>(Arena*); +template<> ::viam::service::mlmodel::v1::MetadataResponse* Arena::CreateMaybeMessage<::viam::service::mlmodel::v1::MetadataResponse>(Arena*); +template<> ::viam::service::mlmodel::v1::TensorInfo* Arena::CreateMaybeMessage<::viam::service::mlmodel::v1::TensorInfo>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace viam { namespace service { namespace mlmodel { namespace v1 { + enum LabelType : int { LABEL_TYPE_UNSPECIFIED = 0, LABEL_TYPE_TENSOR_VALUE = 1, LABEL_TYPE_TENSOR_AXIS = 2, - LabelType_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - LabelType_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), + LabelType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + LabelType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() }; - bool LabelType_IsValid(int value); -extern const uint32_t LabelType_internal_data_[]; -constexpr LabelType LabelType_MIN = static_cast(0); -constexpr LabelType LabelType_MAX = static_cast(2); -constexpr int LabelType_ARRAYSIZE = 2 + 1; -const ::google::protobuf::EnumDescriptor* -LabelType_descriptor(); -template -const std::string& LabelType_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to LabelType_Name()."); - return LabelType_Name(static_cast(value)); -} -template <> -inline const std::string& LabelType_Name(LabelType value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool LabelType_Parse(absl::string_view name, LabelType* value) { - return ::google::protobuf::internal::ParseNamedEnum( - LabelType_descriptor(), name, value); +constexpr LabelType LabelType_MIN = LABEL_TYPE_UNSPECIFIED; +constexpr LabelType LabelType_MAX = LABEL_TYPE_TENSOR_AXIS; +constexpr int LabelType_ARRAYSIZE = LabelType_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* LabelType_descriptor(); +template +inline const std::string& LabelType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function LabelType_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + LabelType_descriptor(), enum_t_value); +} +inline bool LabelType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, LabelType* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + LabelType_descriptor(), name, value); } - // =================================================================== - -// ------------------------------------------------------------------- - -class FlatTensorDataUInt8 final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.mlmodel.v1.FlatTensorDataUInt8) */ { +class InferRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.mlmodel.v1.InferRequest) */ { public: - inline FlatTensorDataUInt8() : FlatTensorDataUInt8(nullptr) {} - ~FlatTensorDataUInt8() override; - template - explicit PROTOBUF_CONSTEXPR FlatTensorDataUInt8(::google::protobuf::internal::ConstantInitialized); + inline InferRequest() : InferRequest(nullptr) {} + ~InferRequest() override; + explicit PROTOBUF_CONSTEXPR InferRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline FlatTensorDataUInt8(const FlatTensorDataUInt8& from) - : FlatTensorDataUInt8(nullptr, from) {} - FlatTensorDataUInt8(FlatTensorDataUInt8&& from) noexcept - : FlatTensorDataUInt8() { + InferRequest(const InferRequest& from); + InferRequest(InferRequest&& from) noexcept + : InferRequest() { *this = ::std::move(from); } - inline FlatTensorDataUInt8& operator=(const FlatTensorDataUInt8& from) { + inline InferRequest& operator=(const InferRequest& from) { CopyFrom(from); return *this; } - inline FlatTensorDataUInt8& operator=(FlatTensorDataUInt8&& from) noexcept { + inline InferRequest& operator=(InferRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -211,178 +204,185 @@ class FlatTensorDataUInt8 final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const FlatTensorDataUInt8& default_instance() { + static const InferRequest& default_instance() { return *internal_default_instance(); } - static inline const FlatTensorDataUInt8* internal_default_instance() { - return reinterpret_cast( - &_FlatTensorDataUInt8_default_instance_); + static inline const InferRequest* internal_default_instance() { + return reinterpret_cast( + &_InferRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 8; + 0; - friend void swap(FlatTensorDataUInt8& a, FlatTensorDataUInt8& b) { + friend void swap(InferRequest& a, InferRequest& b) { a.Swap(&b); } - inline void Swap(FlatTensorDataUInt8* other) { + inline void Swap(InferRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(FlatTensorDataUInt8* other) { + void UnsafeArenaSwap(InferRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - FlatTensorDataUInt8* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const FlatTensorDataUInt8& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const FlatTensorDataUInt8& from) { - FlatTensorDataUInt8::MergeImpl(*this, from); + InferRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const InferRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const InferRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(FlatTensorDataUInt8* other); + void SetCachedSize(int size) const final; + void InternalSwap(InferRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.mlmodel.v1.FlatTensorDataUInt8"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.mlmodel.v1.InferRequest"; } protected: - explicit FlatTensorDataUInt8(::google::protobuf::Arena* arena); - FlatTensorDataUInt8(::google::protobuf::Arena* arena, const FlatTensorDataUInt8& from); + explicit InferRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kDataFieldNumber = 1, + kNameFieldNumber = 1, + kInputTensorsFieldNumber = 3, + kExtraFieldNumber = 99, }; - // bytes data = 1 [json_name = "data"]; - void clear_data() ; - const std::string& data() const; - template - void set_data(Arg_&& arg, Args_... args); - std::string* mutable_data(); - PROTOBUF_NODISCARD std::string* release_data(); - void set_allocated_data(std::string* value); + // 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: + // .viam.service.mlmodel.v1.FlatTensors input_tensors = 3 [json_name = "inputTensors"]; + bool has_input_tensors() const; private: - const std::string& _internal_data() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_data( - const std::string& value); - std::string* _internal_mutable_data(); + bool _internal_has_input_tensors() const; + public: + void clear_input_tensors(); + const ::viam::service::mlmodel::v1::FlatTensors& input_tensors() const; + PROTOBUF_NODISCARD ::viam::service::mlmodel::v1::FlatTensors* release_input_tensors(); + ::viam::service::mlmodel::v1::FlatTensors* mutable_input_tensors(); + void set_allocated_input_tensors(::viam::service::mlmodel::v1::FlatTensors* input_tensors); + private: + const ::viam::service::mlmodel::v1::FlatTensors& _internal_input_tensors() const; + ::viam::service::mlmodel::v1::FlatTensors* _internal_mutable_input_tensors(); + public: + void unsafe_arena_set_allocated_input_tensors( + ::viam::service::mlmodel::v1::FlatTensors* input_tensors); + ::viam::service::mlmodel::v1::FlatTensors* unsafe_arena_release_input_tensors(); + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + bool has_extra() const; + private: + bool _internal_has_extra() const; public: - // @@protoc_insertion_point(class_scope:viam.service.mlmodel.v1.FlatTensorDataUInt8) + 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.service.mlmodel.v1.InferRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr data_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::viam::service::mlmodel::v1::FlatTensors* input_tensors_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fmlmodel_2fv1_2fmlmodel_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class FlatTensorDataUInt64 final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.mlmodel.v1.FlatTensorDataUInt64) */ { +class InferResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.mlmodel.v1.InferResponse) */ { public: - inline FlatTensorDataUInt64() : FlatTensorDataUInt64(nullptr) {} - ~FlatTensorDataUInt64() override; - template - explicit PROTOBUF_CONSTEXPR FlatTensorDataUInt64(::google::protobuf::internal::ConstantInitialized); + inline InferResponse() : InferResponse(nullptr) {} + ~InferResponse() override; + explicit PROTOBUF_CONSTEXPR InferResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline FlatTensorDataUInt64(const FlatTensorDataUInt64& from) - : FlatTensorDataUInt64(nullptr, from) {} - FlatTensorDataUInt64(FlatTensorDataUInt64&& from) noexcept - : FlatTensorDataUInt64() { + InferResponse(const InferResponse& from); + InferResponse(InferResponse&& from) noexcept + : InferResponse() { *this = ::std::move(from); } - inline FlatTensorDataUInt64& operator=(const FlatTensorDataUInt64& from) { + inline InferResponse& operator=(const InferResponse& from) { CopyFrom(from); return *this; } - inline FlatTensorDataUInt64& operator=(FlatTensorDataUInt64&& from) noexcept { + inline InferResponse& operator=(InferResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -392,180 +392,149 @@ class FlatTensorDataUInt64 final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const FlatTensorDataUInt64& default_instance() { + static const InferResponse& default_instance() { return *internal_default_instance(); } - static inline const FlatTensorDataUInt64* internal_default_instance() { - return reinterpret_cast( - &_FlatTensorDataUInt64_default_instance_); + static inline const InferResponse* internal_default_instance() { + return reinterpret_cast( + &_InferResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 14; + 1; - friend void swap(FlatTensorDataUInt64& a, FlatTensorDataUInt64& b) { + friend void swap(InferResponse& a, InferResponse& b) { a.Swap(&b); } - inline void Swap(FlatTensorDataUInt64* other) { + inline void Swap(InferResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(FlatTensorDataUInt64* other) { + void UnsafeArenaSwap(InferResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - FlatTensorDataUInt64* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const FlatTensorDataUInt64& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const FlatTensorDataUInt64& from) { - FlatTensorDataUInt64::MergeImpl(*this, from); + InferResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const InferResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const InferResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(FlatTensorDataUInt64* other); + void SetCachedSize(int size) const final; + void InternalSwap(InferResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.mlmodel.v1.FlatTensorDataUInt64"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.mlmodel.v1.InferResponse"; } protected: - explicit FlatTensorDataUInt64(::google::protobuf::Arena* arena); - FlatTensorDataUInt64(::google::protobuf::Arena* arena, const FlatTensorDataUInt64& from); + explicit InferResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kDataFieldNumber = 1, + kOutputTensorsFieldNumber = 3, }; - // repeated fixed64 data = 1 [json_name = "data", packed = true]; - int data_size() const; + // .viam.service.mlmodel.v1.FlatTensors output_tensors = 3 [json_name = "outputTensors"]; + bool has_output_tensors() const; private: - int _internal_data_size() const; - + bool _internal_has_output_tensors() const; public: - void clear_data() ; - ::uint64_t data(int index) const; - void set_data(int index, ::uint64_t value); - void add_data(::uint64_t value); - const ::google::protobuf::RepeatedField<::uint64_t>& data() const; - ::google::protobuf::RepeatedField<::uint64_t>* mutable_data(); - + void clear_output_tensors(); + const ::viam::service::mlmodel::v1::FlatTensors& output_tensors() const; + PROTOBUF_NODISCARD ::viam::service::mlmodel::v1::FlatTensors* release_output_tensors(); + ::viam::service::mlmodel::v1::FlatTensors* mutable_output_tensors(); + void set_allocated_output_tensors(::viam::service::mlmodel::v1::FlatTensors* output_tensors); private: - const ::google::protobuf::RepeatedField<::uint64_t>& _internal_data() const; - ::google::protobuf::RepeatedField<::uint64_t>* _internal_mutable_data(); - + const ::viam::service::mlmodel::v1::FlatTensors& _internal_output_tensors() const; + ::viam::service::mlmodel::v1::FlatTensors* _internal_mutable_output_tensors(); public: - // @@protoc_insertion_point(class_scope:viam.service.mlmodel.v1.FlatTensorDataUInt64) + void unsafe_arena_set_allocated_output_tensors( + ::viam::service::mlmodel::v1::FlatTensors* output_tensors); + ::viam::service::mlmodel::v1::FlatTensors* unsafe_arena_release_output_tensors(); + + // @@protoc_insertion_point(class_scope:viam.service.mlmodel.v1.InferResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedField<::uint64_t> data_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::viam::service::mlmodel::v1::FlatTensors* output_tensors_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fmlmodel_2fv1_2fmlmodel_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class FlatTensorDataUInt32 final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.mlmodel.v1.FlatTensorDataUInt32) */ { +class MetadataRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.mlmodel.v1.MetadataRequest) */ { public: - inline FlatTensorDataUInt32() : FlatTensorDataUInt32(nullptr) {} - ~FlatTensorDataUInt32() override; - template - explicit PROTOBUF_CONSTEXPR FlatTensorDataUInt32(::google::protobuf::internal::ConstantInitialized); + inline MetadataRequest() : MetadataRequest(nullptr) {} + ~MetadataRequest() override; + explicit PROTOBUF_CONSTEXPR MetadataRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline FlatTensorDataUInt32(const FlatTensorDataUInt32& from) - : FlatTensorDataUInt32(nullptr, from) {} - FlatTensorDataUInt32(FlatTensorDataUInt32&& from) noexcept - : FlatTensorDataUInt32() { + MetadataRequest(const MetadataRequest& from); + MetadataRequest(MetadataRequest&& from) noexcept + : MetadataRequest() { *this = ::std::move(from); } - inline FlatTensorDataUInt32& operator=(const FlatTensorDataUInt32& from) { + inline MetadataRequest& operator=(const MetadataRequest& from) { CopyFrom(from); return *this; } - inline FlatTensorDataUInt32& operator=(FlatTensorDataUInt32&& from) noexcept { + inline MetadataRequest& operator=(MetadataRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -575,180 +544,165 @@ class FlatTensorDataUInt32 final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const FlatTensorDataUInt32& default_instance() { + static const MetadataRequest& default_instance() { return *internal_default_instance(); } - static inline const FlatTensorDataUInt32* internal_default_instance() { - return reinterpret_cast( - &_FlatTensorDataUInt32_default_instance_); + static inline const MetadataRequest* internal_default_instance() { + return reinterpret_cast( + &_MetadataRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 12; + 2; - friend void swap(FlatTensorDataUInt32& a, FlatTensorDataUInt32& b) { + friend void swap(MetadataRequest& a, MetadataRequest& b) { a.Swap(&b); } - inline void Swap(FlatTensorDataUInt32* other) { + inline void Swap(MetadataRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(FlatTensorDataUInt32* other) { + void UnsafeArenaSwap(MetadataRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - FlatTensorDataUInt32* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const FlatTensorDataUInt32& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const FlatTensorDataUInt32& from) { - FlatTensorDataUInt32::MergeImpl(*this, from); + MetadataRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MetadataRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MetadataRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(FlatTensorDataUInt32* other); + void SetCachedSize(int size) const final; + void InternalSwap(MetadataRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.mlmodel.v1.FlatTensorDataUInt32"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.mlmodel.v1.MetadataRequest"; } protected: - explicit FlatTensorDataUInt32(::google::protobuf::Arena* arena); - FlatTensorDataUInt32(::google::protobuf::Arena* arena, const FlatTensorDataUInt32& from); + explicit MetadataRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kDataFieldNumber = 1, + kNameFieldNumber = 1, + kExtraFieldNumber = 99, }; - // repeated fixed32 data = 1 [json_name = "data", packed = true]; - int data_size() const; + // 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: - int _internal_data_size() const; - + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); public: - void clear_data() ; - ::uint32_t data(int index) const; - void set_data(int index, ::uint32_t value); - void add_data(::uint32_t value); - const ::google::protobuf::RepeatedField<::uint32_t>& data() const; - ::google::protobuf::RepeatedField<::uint32_t>* mutable_data(); + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + bool has_extra() const; private: - const ::google::protobuf::RepeatedField<::uint32_t>& _internal_data() const; - ::google::protobuf::RepeatedField<::uint32_t>* _internal_mutable_data(); - + bool _internal_has_extra() const; public: - // @@protoc_insertion_point(class_scope:viam.service.mlmodel.v1.FlatTensorDataUInt32) + 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.service.mlmodel.v1.MetadataRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedField<::uint32_t> data_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + 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_service_2fmlmodel_2fv1_2fmlmodel_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class FlatTensorDataUInt16 final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.mlmodel.v1.FlatTensorDataUInt16) */ { +class MetadataResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.mlmodel.v1.MetadataResponse) */ { public: - inline FlatTensorDataUInt16() : FlatTensorDataUInt16(nullptr) {} - ~FlatTensorDataUInt16() override; - template - explicit PROTOBUF_CONSTEXPR FlatTensorDataUInt16(::google::protobuf::internal::ConstantInitialized); + inline MetadataResponse() : MetadataResponse(nullptr) {} + ~MetadataResponse() override; + explicit PROTOBUF_CONSTEXPR MetadataResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline FlatTensorDataUInt16(const FlatTensorDataUInt16& from) - : FlatTensorDataUInt16(nullptr, from) {} - FlatTensorDataUInt16(FlatTensorDataUInt16&& from) noexcept - : FlatTensorDataUInt16() { + MetadataResponse(const MetadataResponse& from); + MetadataResponse(MetadataResponse&& from) noexcept + : MetadataResponse() { *this = ::std::move(from); } - inline FlatTensorDataUInt16& operator=(const FlatTensorDataUInt16& from) { + inline MetadataResponse& operator=(const MetadataResponse& from) { CopyFrom(from); return *this; } - inline FlatTensorDataUInt16& operator=(FlatTensorDataUInt16&& from) noexcept { + inline MetadataResponse& operator=(MetadataResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -758,180 +712,149 @@ class FlatTensorDataUInt16 final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const FlatTensorDataUInt16& default_instance() { + static const MetadataResponse& default_instance() { return *internal_default_instance(); } - static inline const FlatTensorDataUInt16* internal_default_instance() { - return reinterpret_cast( - &_FlatTensorDataUInt16_default_instance_); + static inline const MetadataResponse* internal_default_instance() { + return reinterpret_cast( + &_MetadataResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 10; + 3; - friend void swap(FlatTensorDataUInt16& a, FlatTensorDataUInt16& b) { + friend void swap(MetadataResponse& a, MetadataResponse& b) { a.Swap(&b); } - inline void Swap(FlatTensorDataUInt16* other) { + inline void Swap(MetadataResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(FlatTensorDataUInt16* other) { + void UnsafeArenaSwap(MetadataResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - FlatTensorDataUInt16* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const FlatTensorDataUInt16& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const FlatTensorDataUInt16& from) { - FlatTensorDataUInt16::MergeImpl(*this, from); + MetadataResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MetadataResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MetadataResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(FlatTensorDataUInt16* other); + void SetCachedSize(int size) const final; + void InternalSwap(MetadataResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.mlmodel.v1.FlatTensorDataUInt16"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.mlmodel.v1.MetadataResponse"; } protected: - explicit FlatTensorDataUInt16(::google::protobuf::Arena* arena); - FlatTensorDataUInt16(::google::protobuf::Arena* arena, const FlatTensorDataUInt16& from); + explicit MetadataResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kDataFieldNumber = 1, + kMetadataFieldNumber = 1, }; - // repeated fixed32 data = 1 [json_name = "data", packed = true]; - int data_size() const; + // .viam.service.mlmodel.v1.Metadata metadata = 1 [json_name = "metadata"]; + bool has_metadata() const; private: - int _internal_data_size() const; - + bool _internal_has_metadata() const; public: - void clear_data() ; - ::uint32_t data(int index) const; - void set_data(int index, ::uint32_t value); - void add_data(::uint32_t value); - const ::google::protobuf::RepeatedField<::uint32_t>& data() const; - ::google::protobuf::RepeatedField<::uint32_t>* mutable_data(); - + void clear_metadata(); + const ::viam::service::mlmodel::v1::Metadata& metadata() const; + PROTOBUF_NODISCARD ::viam::service::mlmodel::v1::Metadata* release_metadata(); + ::viam::service::mlmodel::v1::Metadata* mutable_metadata(); + void set_allocated_metadata(::viam::service::mlmodel::v1::Metadata* metadata); private: - const ::google::protobuf::RepeatedField<::uint32_t>& _internal_data() const; - ::google::protobuf::RepeatedField<::uint32_t>* _internal_mutable_data(); - + const ::viam::service::mlmodel::v1::Metadata& _internal_metadata() const; + ::viam::service::mlmodel::v1::Metadata* _internal_mutable_metadata(); public: - // @@protoc_insertion_point(class_scope:viam.service.mlmodel.v1.FlatTensorDataUInt16) + void unsafe_arena_set_allocated_metadata( + ::viam::service::mlmodel::v1::Metadata* metadata); + ::viam::service::mlmodel::v1::Metadata* unsafe_arena_release_metadata(); + + // @@protoc_insertion_point(class_scope:viam.service.mlmodel.v1.MetadataResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedField<::uint32_t> data_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::viam::service::mlmodel::v1::Metadata* metadata_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fmlmodel_2fv1_2fmlmodel_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class FlatTensorDataInt8 final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.mlmodel.v1.FlatTensorDataInt8) */ { +class Metadata final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.mlmodel.v1.Metadata) */ { public: - inline FlatTensorDataInt8() : FlatTensorDataInt8(nullptr) {} - ~FlatTensorDataInt8() override; - template - explicit PROTOBUF_CONSTEXPR FlatTensorDataInt8(::google::protobuf::internal::ConstantInitialized); + inline Metadata() : Metadata(nullptr) {} + ~Metadata() override; + explicit PROTOBUF_CONSTEXPR Metadata(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline FlatTensorDataInt8(const FlatTensorDataInt8& from) - : FlatTensorDataInt8(nullptr, from) {} - FlatTensorDataInt8(FlatTensorDataInt8&& from) noexcept - : FlatTensorDataInt8() { + Metadata(const Metadata& from); + Metadata(Metadata&& from) noexcept + : Metadata() { *this = ::std::move(from); } - inline FlatTensorDataInt8& operator=(const FlatTensorDataInt8& from) { + inline Metadata& operator=(const Metadata& from) { CopyFrom(from); return *this; } - inline FlatTensorDataInt8& operator=(FlatTensorDataInt8&& from) noexcept { + inline Metadata& operator=(Metadata&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -941,178 +864,217 @@ class FlatTensorDataInt8 final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const FlatTensorDataInt8& default_instance() { + static const Metadata& default_instance() { return *internal_default_instance(); } - static inline const FlatTensorDataInt8* internal_default_instance() { - return reinterpret_cast( - &_FlatTensorDataInt8_default_instance_); + static inline const Metadata* internal_default_instance() { + return reinterpret_cast( + &_Metadata_default_instance_); } static constexpr int kIndexInFileMessages = - 7; + 4; - friend void swap(FlatTensorDataInt8& a, FlatTensorDataInt8& b) { + friend void swap(Metadata& a, Metadata& b) { a.Swap(&b); } - inline void Swap(FlatTensorDataInt8* other) { + inline void Swap(Metadata* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(FlatTensorDataInt8* other) { + void UnsafeArenaSwap(Metadata* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - FlatTensorDataInt8* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const FlatTensorDataInt8& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const FlatTensorDataInt8& from) { - FlatTensorDataInt8::MergeImpl(*this, from); + Metadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Metadata& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Metadata& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(FlatTensorDataInt8* other); + void SetCachedSize(int size) const final; + void InternalSwap(Metadata* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.mlmodel.v1.FlatTensorDataInt8"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.mlmodel.v1.Metadata"; } protected: - explicit FlatTensorDataInt8(::google::protobuf::Arena* arena); - FlatTensorDataInt8(::google::protobuf::Arena* arena, const FlatTensorDataInt8& from); + explicit Metadata(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kDataFieldNumber = 1, + kInputInfoFieldNumber = 4, + kOutputInfoFieldNumber = 5, + kNameFieldNumber = 1, + kTypeFieldNumber = 2, + kDescriptionFieldNumber = 3, }; - // bytes data = 1 [json_name = "data"]; - void clear_data() ; - const std::string& data() const; - template - void set_data(Arg_&& arg, Args_... args); - std::string* mutable_data(); - PROTOBUF_NODISCARD std::string* release_data(); - void set_allocated_data(std::string* value); + // repeated .viam.service.mlmodel.v1.TensorInfo input_info = 4 [json_name = "inputInfo"]; + int input_info_size() const; + private: + int _internal_input_info_size() const; + public: + void clear_input_info(); + ::viam::service::mlmodel::v1::TensorInfo* mutable_input_info(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::mlmodel::v1::TensorInfo >* + mutable_input_info(); + private: + const ::viam::service::mlmodel::v1::TensorInfo& _internal_input_info(int index) const; + ::viam::service::mlmodel::v1::TensorInfo* _internal_add_input_info(); + public: + const ::viam::service::mlmodel::v1::TensorInfo& input_info(int index) const; + ::viam::service::mlmodel::v1::TensorInfo* add_input_info(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::mlmodel::v1::TensorInfo >& + input_info() const; + // repeated .viam.service.mlmodel.v1.TensorInfo output_info = 5 [json_name = "outputInfo"]; + int output_info_size() const; private: - const std::string& _internal_data() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_data( - const std::string& value); - std::string* _internal_mutable_data(); + int _internal_output_info_size() const; + public: + void clear_output_info(); + ::viam::service::mlmodel::v1::TensorInfo* mutable_output_info(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::mlmodel::v1::TensorInfo >* + mutable_output_info(); + private: + const ::viam::service::mlmodel::v1::TensorInfo& _internal_output_info(int index) const; + ::viam::service::mlmodel::v1::TensorInfo* _internal_add_output_info(); + public: + const ::viam::service::mlmodel::v1::TensorInfo& output_info(int index) const; + ::viam::service::mlmodel::v1::TensorInfo* add_output_info(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::mlmodel::v1::TensorInfo >& + output_info() const; + + // 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: + // string type = 2 [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: - // @@protoc_insertion_point(class_scope:viam.service.mlmodel.v1.FlatTensorDataInt8) + + // string description = 3 [json_name = "description"]; + void clear_description(); + const std::string& description() const; + template + void set_description(ArgT0&& arg0, ArgT... args); + std::string* mutable_description(); + PROTOBUF_NODISCARD std::string* release_description(); + void set_allocated_description(std::string* description); + private: + const std::string& _internal_description() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_description(const std::string& value); + std::string* _internal_mutable_description(); + public: + + // @@protoc_insertion_point(class_scope:viam.service.mlmodel.v1.Metadata) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr data_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::mlmodel::v1::TensorInfo > input_info_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::mlmodel::v1::TensorInfo > output_info_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr description_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fmlmodel_2fv1_2fmlmodel_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class FlatTensorDataInt64 final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.mlmodel.v1.FlatTensorDataInt64) */ { +class TensorInfo final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.mlmodel.v1.TensorInfo) */ { public: - inline FlatTensorDataInt64() : FlatTensorDataInt64(nullptr) {} - ~FlatTensorDataInt64() override; - template - explicit PROTOBUF_CONSTEXPR FlatTensorDataInt64(::google::protobuf::internal::ConstantInitialized); + inline TensorInfo() : TensorInfo(nullptr) {} + ~TensorInfo() override; + explicit PROTOBUF_CONSTEXPR TensorInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline FlatTensorDataInt64(const FlatTensorDataInt64& from) - : FlatTensorDataInt64(nullptr, from) {} - FlatTensorDataInt64(FlatTensorDataInt64&& from) noexcept - : FlatTensorDataInt64() { + TensorInfo(const TensorInfo& from); + TensorInfo(TensorInfo&& from) noexcept + : TensorInfo() { *this = ::std::move(from); } - inline FlatTensorDataInt64& operator=(const FlatTensorDataInt64& from) { + inline TensorInfo& operator=(const TensorInfo& from) { CopyFrom(from); return *this; } - inline FlatTensorDataInt64& operator=(FlatTensorDataInt64&& from) noexcept { + inline TensorInfo& operator=(TensorInfo&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1122,180 +1084,242 @@ class FlatTensorDataInt64 final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const FlatTensorDataInt64& default_instance() { + static const TensorInfo& default_instance() { return *internal_default_instance(); } - static inline const FlatTensorDataInt64* internal_default_instance() { - return reinterpret_cast( - &_FlatTensorDataInt64_default_instance_); + static inline const TensorInfo* internal_default_instance() { + return reinterpret_cast( + &_TensorInfo_default_instance_); } static constexpr int kIndexInFileMessages = - 13; + 5; - friend void swap(FlatTensorDataInt64& a, FlatTensorDataInt64& b) { + friend void swap(TensorInfo& a, TensorInfo& b) { a.Swap(&b); } - inline void Swap(FlatTensorDataInt64* other) { + inline void Swap(TensorInfo* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(FlatTensorDataInt64* other) { + void UnsafeArenaSwap(TensorInfo* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - FlatTensorDataInt64* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const FlatTensorDataInt64& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const FlatTensorDataInt64& from) { - FlatTensorDataInt64::MergeImpl(*this, from); + TensorInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const TensorInfo& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const TensorInfo& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(FlatTensorDataInt64* other); + void SetCachedSize(int size) const final; + void InternalSwap(TensorInfo* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.mlmodel.v1.FlatTensorDataInt64"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.mlmodel.v1.TensorInfo"; } protected: - explicit FlatTensorDataInt64(::google::protobuf::Arena* arena); - FlatTensorDataInt64(::google::protobuf::Arena* arena, const FlatTensorDataInt64& from); + explicit TensorInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kDataFieldNumber = 1, + kShapeFieldNumber = 4, + kAssociatedFilesFieldNumber = 5, + kNameFieldNumber = 1, + kDescriptionFieldNumber = 2, + kDataTypeFieldNumber = 3, + kExtraFieldNumber = 99, }; - // repeated sfixed64 data = 1 [json_name = "data", packed = true]; - int data_size() const; + // repeated int32 shape = 4 [json_name = "shape"]; + int shape_size() const; private: - int _internal_data_size() const; + int _internal_shape_size() const; + public: + void clear_shape(); + private: + int32_t _internal_shape(int index) const; + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& + _internal_shape() const; + void _internal_add_shape(int32_t value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* + _internal_mutable_shape(); + public: + int32_t shape(int index) const; + void set_shape(int index, int32_t value); + void add_shape(int32_t value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& + shape() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* + mutable_shape(); + + // repeated .viam.service.mlmodel.v1.File associated_files = 5 [json_name = "associatedFiles"]; + int associated_files_size() const; + private: + int _internal_associated_files_size() const; + public: + void clear_associated_files(); + ::viam::service::mlmodel::v1::File* mutable_associated_files(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::mlmodel::v1::File >* + mutable_associated_files(); + private: + const ::viam::service::mlmodel::v1::File& _internal_associated_files(int index) const; + ::viam::service::mlmodel::v1::File* _internal_add_associated_files(); + public: + const ::viam::service::mlmodel::v1::File& associated_files(int index) const; + ::viam::service::mlmodel::v1::File* add_associated_files(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::mlmodel::v1::File >& + associated_files() const; + + // 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: + // string description = 2 [json_name = "description"]; + void clear_description(); + const std::string& description() const; + template + void set_description(ArgT0&& arg0, ArgT... args); + std::string* mutable_description(); + PROTOBUF_NODISCARD std::string* release_description(); + void set_allocated_description(std::string* description); + private: + const std::string& _internal_description() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_description(const std::string& value); + std::string* _internal_mutable_description(); public: - void clear_data() ; - ::int64_t data(int index) const; - void set_data(int index, ::int64_t value); - void add_data(::int64_t value); - const ::google::protobuf::RepeatedField<::int64_t>& data() const; - ::google::protobuf::RepeatedField<::int64_t>* mutable_data(); + // string data_type = 3 [json_name = "dataType"]; + void clear_data_type(); + const std::string& data_type() const; + template + void set_data_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_data_type(); + PROTOBUF_NODISCARD std::string* release_data_type(); + void set_allocated_data_type(std::string* data_type); private: - const ::google::protobuf::RepeatedField<::int64_t>& _internal_data() const; - ::google::protobuf::RepeatedField<::int64_t>* _internal_mutable_data(); + const std::string& _internal_data_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_data_type(const std::string& value); + std::string* _internal_mutable_data_type(); + public: + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + bool has_extra() const; + private: + bool _internal_has_extra() const; public: - // @@protoc_insertion_point(class_scope:viam.service.mlmodel.v1.FlatTensorDataInt64) + 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.service.mlmodel.v1.TensorInfo) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedField<::int64_t> data_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > shape_; + mutable std::atomic _shape_cached_byte_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::mlmodel::v1::File > associated_files_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr description_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr data_type_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fmlmodel_2fv1_2fmlmodel_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class FlatTensorDataInt32 final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.mlmodel.v1.FlatTensorDataInt32) */ { +class File final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.mlmodel.v1.File) */ { public: - inline FlatTensorDataInt32() : FlatTensorDataInt32(nullptr) {} - ~FlatTensorDataInt32() override; - template - explicit PROTOBUF_CONSTEXPR FlatTensorDataInt32(::google::protobuf::internal::ConstantInitialized); + inline File() : File(nullptr) {} + ~File() override; + explicit PROTOBUF_CONSTEXPR File(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline FlatTensorDataInt32(const FlatTensorDataInt32& from) - : FlatTensorDataInt32(nullptr, from) {} - FlatTensorDataInt32(FlatTensorDataInt32&& from) noexcept - : FlatTensorDataInt32() { - *this = ::std::move(from); + File(const File& from); + File(File&& from) noexcept + : File() { + *this = ::std::move(from); } - inline FlatTensorDataInt32& operator=(const FlatTensorDataInt32& from) { + inline File& operator=(const File& from) { CopyFrom(from); return *this; } - inline FlatTensorDataInt32& operator=(FlatTensorDataInt32&& from) noexcept { + inline File& operator=(File&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1305,180 +1329,172 @@ class FlatTensorDataInt32 final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const FlatTensorDataInt32& default_instance() { + static const File& default_instance() { return *internal_default_instance(); } - static inline const FlatTensorDataInt32* internal_default_instance() { - return reinterpret_cast( - &_FlatTensorDataInt32_default_instance_); + static inline const File* internal_default_instance() { + return reinterpret_cast( + &_File_default_instance_); } static constexpr int kIndexInFileMessages = - 11; + 6; - friend void swap(FlatTensorDataInt32& a, FlatTensorDataInt32& b) { + friend void swap(File& a, File& b) { a.Swap(&b); } - inline void Swap(FlatTensorDataInt32* other) { + inline void Swap(File* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(FlatTensorDataInt32* other) { + void UnsafeArenaSwap(File* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - FlatTensorDataInt32* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const FlatTensorDataInt32& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const FlatTensorDataInt32& from) { - FlatTensorDataInt32::MergeImpl(*this, from); + File* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const File& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const File& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(FlatTensorDataInt32* other); + void SetCachedSize(int size) const final; + void InternalSwap(File* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.mlmodel.v1.FlatTensorDataInt32"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.mlmodel.v1.File"; } protected: - explicit FlatTensorDataInt32(::google::protobuf::Arena* arena); - FlatTensorDataInt32(::google::protobuf::Arena* arena, const FlatTensorDataInt32& from); + explicit File(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kDataFieldNumber = 1, + kNameFieldNumber = 1, + kDescriptionFieldNumber = 2, + kLabelTypeFieldNumber = 3, }; - // repeated sfixed32 data = 1 [json_name = "data", packed = true]; - int data_size() const; + // 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: - int _internal_data_size() const; - + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); public: - void clear_data() ; - ::int32_t data(int index) const; - void set_data(int index, ::int32_t value); - void add_data(::int32_t value); - const ::google::protobuf::RepeatedField<::int32_t>& data() const; - ::google::protobuf::RepeatedField<::int32_t>* mutable_data(); + // string description = 2 [json_name = "description"]; + void clear_description(); + const std::string& description() const; + template + void set_description(ArgT0&& arg0, ArgT... args); + std::string* mutable_description(); + PROTOBUF_NODISCARD std::string* release_description(); + void set_allocated_description(std::string* description); private: - const ::google::protobuf::RepeatedField<::int32_t>& _internal_data() const; - ::google::protobuf::RepeatedField<::int32_t>* _internal_mutable_data(); + const std::string& _internal_description() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_description(const std::string& value); + std::string* _internal_mutable_description(); + public: + // .viam.service.mlmodel.v1.LabelType label_type = 3 [json_name = "labelType"]; + void clear_label_type(); + ::viam::service::mlmodel::v1::LabelType label_type() const; + void set_label_type(::viam::service::mlmodel::v1::LabelType value); + private: + ::viam::service::mlmodel::v1::LabelType _internal_label_type() const; + void _internal_set_label_type(::viam::service::mlmodel::v1::LabelType value); public: - // @@protoc_insertion_point(class_scope:viam.service.mlmodel.v1.FlatTensorDataInt32) + + // @@protoc_insertion_point(class_scope:viam.service.mlmodel.v1.File) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedField<::int32_t> data_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr description_; + int label_type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fmlmodel_2fv1_2fmlmodel_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class FlatTensorDataInt16 final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.mlmodel.v1.FlatTensorDataInt16) */ { +class FlatTensorDataInt8 final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.mlmodel.v1.FlatTensorDataInt8) */ { public: - inline FlatTensorDataInt16() : FlatTensorDataInt16(nullptr) {} - ~FlatTensorDataInt16() override; - template - explicit PROTOBUF_CONSTEXPR FlatTensorDataInt16(::google::protobuf::internal::ConstantInitialized); + inline FlatTensorDataInt8() : FlatTensorDataInt8(nullptr) {} + ~FlatTensorDataInt8() override; + explicit PROTOBUF_CONSTEXPR FlatTensorDataInt8(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline FlatTensorDataInt16(const FlatTensorDataInt16& from) - : FlatTensorDataInt16(nullptr, from) {} - FlatTensorDataInt16(FlatTensorDataInt16&& from) noexcept - : FlatTensorDataInt16() { + FlatTensorDataInt8(const FlatTensorDataInt8& from); + FlatTensorDataInt8(FlatTensorDataInt8&& from) noexcept + : FlatTensorDataInt8() { *this = ::std::move(from); } - inline FlatTensorDataInt16& operator=(const FlatTensorDataInt16& from) { + inline FlatTensorDataInt8& operator=(const FlatTensorDataInt8& from) { CopyFrom(from); return *this; } - inline FlatTensorDataInt16& operator=(FlatTensorDataInt16&& from) noexcept { + inline FlatTensorDataInt8& operator=(FlatTensorDataInt8&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1488,99 +1504,88 @@ class FlatTensorDataInt16 final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const FlatTensorDataInt16& default_instance() { + static const FlatTensorDataInt8& default_instance() { return *internal_default_instance(); } - static inline const FlatTensorDataInt16* internal_default_instance() { - return reinterpret_cast( - &_FlatTensorDataInt16_default_instance_); + static inline const FlatTensorDataInt8* internal_default_instance() { + return reinterpret_cast( + &_FlatTensorDataInt8_default_instance_); } static constexpr int kIndexInFileMessages = - 9; + 7; - friend void swap(FlatTensorDataInt16& a, FlatTensorDataInt16& b) { + friend void swap(FlatTensorDataInt8& a, FlatTensorDataInt8& b) { a.Swap(&b); } - inline void Swap(FlatTensorDataInt16* other) { + inline void Swap(FlatTensorDataInt8* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(FlatTensorDataInt16* other) { + void UnsafeArenaSwap(FlatTensorDataInt8* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - FlatTensorDataInt16* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const FlatTensorDataInt16& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const FlatTensorDataInt16& from) { - FlatTensorDataInt16::MergeImpl(*this, from); + FlatTensorDataInt8* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const FlatTensorDataInt8& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const FlatTensorDataInt8& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(FlatTensorDataInt16* other); + void SetCachedSize(int size) const final; + void InternalSwap(FlatTensorDataInt8* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.mlmodel.v1.FlatTensorDataInt16"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.mlmodel.v1.FlatTensorDataInt8"; } protected: - explicit FlatTensorDataInt16(::google::protobuf::Arena* arena); - FlatTensorDataInt16(::google::protobuf::Arena* arena, const FlatTensorDataInt16& from); + explicit FlatTensorDataInt8(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1589,79 +1594,55 @@ class FlatTensorDataInt16 final : enum : int { kDataFieldNumber = 1, }; - // repeated fixed32 data = 1 [json_name = "data", packed = true]; - int data_size() const; + // bytes data = 1 [json_name = "data"]; + void clear_data(); + const std::string& data() const; + template + void set_data(ArgT0&& arg0, ArgT... args); + std::string* mutable_data(); + PROTOBUF_NODISCARD std::string* release_data(); + void set_allocated_data(std::string* data); private: - int _internal_data_size() const; - + const std::string& _internal_data() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_data(const std::string& value); + std::string* _internal_mutable_data(); public: - void clear_data() ; - ::uint32_t data(int index) const; - void set_data(int index, ::uint32_t value); - void add_data(::uint32_t value); - const ::google::protobuf::RepeatedField<::uint32_t>& data() const; - ::google::protobuf::RepeatedField<::uint32_t>* mutable_data(); - private: - const ::google::protobuf::RepeatedField<::uint32_t>& _internal_data() const; - ::google::protobuf::RepeatedField<::uint32_t>* _internal_mutable_data(); - - public: - // @@protoc_insertion_point(class_scope:viam.service.mlmodel.v1.FlatTensorDataInt16) + // @@protoc_insertion_point(class_scope:viam.service.mlmodel.v1.FlatTensorDataInt8) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedField<::uint32_t> data_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr data_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fmlmodel_2fv1_2fmlmodel_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class FlatTensorDataFloat final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.mlmodel.v1.FlatTensorDataFloat) */ { +class FlatTensorDataUInt8 final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.mlmodel.v1.FlatTensorDataUInt8) */ { public: - inline FlatTensorDataFloat() : FlatTensorDataFloat(nullptr) {} - ~FlatTensorDataFloat() override; - template - explicit PROTOBUF_CONSTEXPR FlatTensorDataFloat(::google::protobuf::internal::ConstantInitialized); + inline FlatTensorDataUInt8() : FlatTensorDataUInt8(nullptr) {} + ~FlatTensorDataUInt8() override; + explicit PROTOBUF_CONSTEXPR FlatTensorDataUInt8(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline FlatTensorDataFloat(const FlatTensorDataFloat& from) - : FlatTensorDataFloat(nullptr, from) {} - FlatTensorDataFloat(FlatTensorDataFloat&& from) noexcept - : FlatTensorDataFloat() { + FlatTensorDataUInt8(const FlatTensorDataUInt8& from); + FlatTensorDataUInt8(FlatTensorDataUInt8&& from) noexcept + : FlatTensorDataUInt8() { *this = ::std::move(from); } - inline FlatTensorDataFloat& operator=(const FlatTensorDataFloat& from) { + inline FlatTensorDataUInt8& operator=(const FlatTensorDataUInt8& from) { CopyFrom(from); return *this; } - inline FlatTensorDataFloat& operator=(FlatTensorDataFloat&& from) noexcept { + inline FlatTensorDataUInt8& operator=(FlatTensorDataUInt8&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1671,99 +1652,88 @@ class FlatTensorDataFloat final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const FlatTensorDataFloat& default_instance() { + static const FlatTensorDataUInt8& default_instance() { return *internal_default_instance(); } - static inline const FlatTensorDataFloat* internal_default_instance() { - return reinterpret_cast( - &_FlatTensorDataFloat_default_instance_); + static inline const FlatTensorDataUInt8* internal_default_instance() { + return reinterpret_cast( + &_FlatTensorDataUInt8_default_instance_); } static constexpr int kIndexInFileMessages = - 15; + 8; - friend void swap(FlatTensorDataFloat& a, FlatTensorDataFloat& b) { + friend void swap(FlatTensorDataUInt8& a, FlatTensorDataUInt8& b) { a.Swap(&b); } - inline void Swap(FlatTensorDataFloat* other) { + inline void Swap(FlatTensorDataUInt8* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(FlatTensorDataFloat* other) { + void UnsafeArenaSwap(FlatTensorDataUInt8* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - FlatTensorDataFloat* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const FlatTensorDataFloat& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const FlatTensorDataFloat& from) { - FlatTensorDataFloat::MergeImpl(*this, from); + FlatTensorDataUInt8* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const FlatTensorDataUInt8& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const FlatTensorDataUInt8& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(FlatTensorDataFloat* other); + void SetCachedSize(int size) const final; + void InternalSwap(FlatTensorDataUInt8* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.mlmodel.v1.FlatTensorDataFloat"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.mlmodel.v1.FlatTensorDataUInt8"; } protected: - explicit FlatTensorDataFloat(::google::protobuf::Arena* arena); - FlatTensorDataFloat(::google::protobuf::Arena* arena, const FlatTensorDataFloat& from); + explicit FlatTensorDataUInt8(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1772,79 +1742,55 @@ class FlatTensorDataFloat final : enum : int { kDataFieldNumber = 1, }; - // repeated float data = 1 [json_name = "data", packed = true]; - int data_size() const; + // bytes data = 1 [json_name = "data"]; + void clear_data(); + const std::string& data() const; + template + void set_data(ArgT0&& arg0, ArgT... args); + std::string* mutable_data(); + PROTOBUF_NODISCARD std::string* release_data(); + void set_allocated_data(std::string* data); private: - int _internal_data_size() const; - + const std::string& _internal_data() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_data(const std::string& value); + std::string* _internal_mutable_data(); public: - void clear_data() ; - float data(int index) const; - void set_data(int index, float value); - void add_data(float value); - const ::google::protobuf::RepeatedField& data() const; - ::google::protobuf::RepeatedField* mutable_data(); - - private: - const ::google::protobuf::RepeatedField& _internal_data() const; - ::google::protobuf::RepeatedField* _internal_mutable_data(); - public: - // @@protoc_insertion_point(class_scope:viam.service.mlmodel.v1.FlatTensorDataFloat) + // @@protoc_insertion_point(class_scope:viam.service.mlmodel.v1.FlatTensorDataUInt8) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedField data_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr data_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fmlmodel_2fv1_2fmlmodel_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class FlatTensorDataDouble final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.mlmodel.v1.FlatTensorDataDouble) */ { +class FlatTensorDataInt16 final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.mlmodel.v1.FlatTensorDataInt16) */ { public: - inline FlatTensorDataDouble() : FlatTensorDataDouble(nullptr) {} - ~FlatTensorDataDouble() override; - template - explicit PROTOBUF_CONSTEXPR FlatTensorDataDouble(::google::protobuf::internal::ConstantInitialized); + inline FlatTensorDataInt16() : FlatTensorDataInt16(nullptr) {} + ~FlatTensorDataInt16() override; + explicit PROTOBUF_CONSTEXPR FlatTensorDataInt16(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline FlatTensorDataDouble(const FlatTensorDataDouble& from) - : FlatTensorDataDouble(nullptr, from) {} - FlatTensorDataDouble(FlatTensorDataDouble&& from) noexcept - : FlatTensorDataDouble() { + FlatTensorDataInt16(const FlatTensorDataInt16& from); + FlatTensorDataInt16(FlatTensorDataInt16&& from) noexcept + : FlatTensorDataInt16() { *this = ::std::move(from); } - inline FlatTensorDataDouble& operator=(const FlatTensorDataDouble& from) { + inline FlatTensorDataInt16& operator=(const FlatTensorDataInt16& from) { CopyFrom(from); return *this; } - inline FlatTensorDataDouble& operator=(FlatTensorDataDouble&& from) noexcept { + inline FlatTensorDataInt16& operator=(FlatTensorDataInt16&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1854,99 +1800,88 @@ class FlatTensorDataDouble final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const FlatTensorDataDouble& default_instance() { + static const FlatTensorDataInt16& default_instance() { return *internal_default_instance(); } - static inline const FlatTensorDataDouble* internal_default_instance() { - return reinterpret_cast( - &_FlatTensorDataDouble_default_instance_); + static inline const FlatTensorDataInt16* internal_default_instance() { + return reinterpret_cast( + &_FlatTensorDataInt16_default_instance_); } static constexpr int kIndexInFileMessages = - 16; + 9; - friend void swap(FlatTensorDataDouble& a, FlatTensorDataDouble& b) { + friend void swap(FlatTensorDataInt16& a, FlatTensorDataInt16& b) { a.Swap(&b); } - inline void Swap(FlatTensorDataDouble* other) { + inline void Swap(FlatTensorDataInt16* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(FlatTensorDataDouble* other) { + void UnsafeArenaSwap(FlatTensorDataInt16* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - FlatTensorDataDouble* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const FlatTensorDataDouble& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const FlatTensorDataDouble& from) { - FlatTensorDataDouble::MergeImpl(*this, from); + FlatTensorDataInt16* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const FlatTensorDataInt16& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const FlatTensorDataInt16& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(FlatTensorDataDouble* other); + void SetCachedSize(int size) const final; + void InternalSwap(FlatTensorDataInt16* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.mlmodel.v1.FlatTensorDataDouble"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.mlmodel.v1.FlatTensorDataInt16"; } protected: - explicit FlatTensorDataDouble(::google::protobuf::Arena* arena); - FlatTensorDataDouble(::google::protobuf::Arena* arena, const FlatTensorDataDouble& from); + explicit FlatTensorDataInt16(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1955,79 +1890,63 @@ class FlatTensorDataDouble final : enum : int { kDataFieldNumber = 1, }; - // repeated double data = 1 [json_name = "data", packed = true]; + // repeated fixed32 data = 1 [json_name = "data", packed = true]; int data_size() const; private: int _internal_data_size() const; - public: - void clear_data() ; - double data(int index) const; - void set_data(int index, double value); - void add_data(double value); - const ::google::protobuf::RepeatedField& data() const; - ::google::protobuf::RepeatedField* mutable_data(); - + void clear_data(); private: - const ::google::protobuf::RepeatedField& _internal_data() const; - ::google::protobuf::RepeatedField* _internal_mutable_data(); - + uint32_t _internal_data(int index) const; + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >& + _internal_data() const; + void _internal_add_data(uint32_t value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >* + _internal_mutable_data(); public: - // @@protoc_insertion_point(class_scope:viam.service.mlmodel.v1.FlatTensorDataDouble) + uint32_t data(int index) const; + void set_data(int index, uint32_t value); + void add_data(uint32_t value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >& + data() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >* + mutable_data(); + + // @@protoc_insertion_point(class_scope:viam.service.mlmodel.v1.FlatTensorDataInt16) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedField data_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t > data_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fmlmodel_2fv1_2fmlmodel_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class File final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.mlmodel.v1.File) */ { +class FlatTensorDataUInt16 final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.mlmodel.v1.FlatTensorDataUInt16) */ { public: - inline File() : File(nullptr) {} - ~File() override; - template - explicit PROTOBUF_CONSTEXPR File(::google::protobuf::internal::ConstantInitialized); + inline FlatTensorDataUInt16() : FlatTensorDataUInt16(nullptr) {} + ~FlatTensorDataUInt16() override; + explicit PROTOBUF_CONSTEXPR FlatTensorDataUInt16(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline File(const File& from) - : File(nullptr, from) {} - File(File&& from) noexcept - : File() { - *this = ::std::move(from); + FlatTensorDataUInt16(const FlatTensorDataUInt16& from); + FlatTensorDataUInt16(FlatTensorDataUInt16&& from) noexcept + : FlatTensorDataUInt16() { + *this = ::std::move(from); } - inline File& operator=(const File& from) { + inline FlatTensorDataUInt16& operator=(const FlatTensorDataUInt16& from) { CopyFrom(from); return *this; } - inline File& operator=(File&& from) noexcept { + inline FlatTensorDataUInt16& operator=(FlatTensorDataUInt16&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2037,208 +1956,153 @@ class File final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const File& default_instance() { + static const FlatTensorDataUInt16& default_instance() { return *internal_default_instance(); } - static inline const File* internal_default_instance() { - return reinterpret_cast( - &_File_default_instance_); + static inline const FlatTensorDataUInt16* internal_default_instance() { + return reinterpret_cast( + &_FlatTensorDataUInt16_default_instance_); } static constexpr int kIndexInFileMessages = - 6; + 10; - friend void swap(File& a, File& b) { + friend void swap(FlatTensorDataUInt16& a, FlatTensorDataUInt16& b) { a.Swap(&b); } - inline void Swap(File* other) { + inline void Swap(FlatTensorDataUInt16* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(File* other) { + void UnsafeArenaSwap(FlatTensorDataUInt16* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - File* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const File& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const File& from) { - File::MergeImpl(*this, from); + FlatTensorDataUInt16* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const FlatTensorDataUInt16& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const FlatTensorDataUInt16& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(File* other); + void SetCachedSize(int size) const final; + void InternalSwap(FlatTensorDataUInt16* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.mlmodel.v1.File"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.mlmodel.v1.FlatTensorDataUInt16"; } protected: - explicit File(::google::protobuf::Arena* arena); - File(::google::protobuf::Arena* arena, const File& from); + explicit FlatTensorDataUInt16(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kNameFieldNumber = 1, - kDescriptionFieldNumber = 2, - kLabelTypeFieldNumber = 3, + kDataFieldNumber = 1, }; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + // repeated fixed32 data = 1 [json_name = "data", packed = true]; + int data_size() const; private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - + int _internal_data_size() const; public: - // string description = 2 [json_name = "description"]; - void clear_description() ; - const std::string& description() const; - template - void set_description(Arg_&& arg, Args_... args); - std::string* mutable_description(); - PROTOBUF_NODISCARD std::string* release_description(); - void set_allocated_description(std::string* value); - + void clear_data(); private: - const std::string& _internal_description() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_description( - const std::string& value); - std::string* _internal_mutable_description(); - + uint32_t _internal_data(int index) const; + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >& + _internal_data() const; + void _internal_add_data(uint32_t value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >* + _internal_mutable_data(); public: - // .viam.service.mlmodel.v1.LabelType label_type = 3 [json_name = "labelType"]; - void clear_label_type() ; - ::viam::service::mlmodel::v1::LabelType label_type() const; - void set_label_type(::viam::service::mlmodel::v1::LabelType value); - - private: - ::viam::service::mlmodel::v1::LabelType _internal_label_type() const; - void _internal_set_label_type(::viam::service::mlmodel::v1::LabelType value); + uint32_t data(int index) const; + void set_data(int index, uint32_t value); + void add_data(uint32_t value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >& + data() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >* + mutable_data(); - public: - // @@protoc_insertion_point(class_scope:viam.service.mlmodel.v1.File) + // @@protoc_insertion_point(class_scope:viam.service.mlmodel.v1.FlatTensorDataUInt16) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 0, - 52, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr description_; - int label_type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t > data_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fmlmodel_2fv1_2fmlmodel_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class TensorInfo final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.mlmodel.v1.TensorInfo) */ { +class FlatTensorDataInt32 final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.mlmodel.v1.FlatTensorDataInt32) */ { public: - inline TensorInfo() : TensorInfo(nullptr) {} - ~TensorInfo() override; - template - explicit PROTOBUF_CONSTEXPR TensorInfo(::google::protobuf::internal::ConstantInitialized); + inline FlatTensorDataInt32() : FlatTensorDataInt32(nullptr) {} + ~FlatTensorDataInt32() override; + explicit PROTOBUF_CONSTEXPR FlatTensorDataInt32(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline TensorInfo(const TensorInfo& from) - : TensorInfo(nullptr, from) {} - TensorInfo(TensorInfo&& from) noexcept - : TensorInfo() { + FlatTensorDataInt32(const FlatTensorDataInt32& from); + FlatTensorDataInt32(FlatTensorDataInt32&& from) noexcept + : FlatTensorDataInt32() { *this = ::std::move(from); } - inline TensorInfo& operator=(const TensorInfo& from) { + inline FlatTensorDataInt32& operator=(const FlatTensorDataInt32& from) { CopyFrom(from); return *this; } - inline TensorInfo& operator=(TensorInfo&& from) noexcept { + inline FlatTensorDataInt32& operator=(FlatTensorDataInt32&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2248,273 +2112,153 @@ class TensorInfo final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const TensorInfo& default_instance() { + static const FlatTensorDataInt32& default_instance() { return *internal_default_instance(); } - static inline const TensorInfo* internal_default_instance() { - return reinterpret_cast( - &_TensorInfo_default_instance_); + static inline const FlatTensorDataInt32* internal_default_instance() { + return reinterpret_cast( + &_FlatTensorDataInt32_default_instance_); } static constexpr int kIndexInFileMessages = - 5; + 11; - friend void swap(TensorInfo& a, TensorInfo& b) { + friend void swap(FlatTensorDataInt32& a, FlatTensorDataInt32& b) { a.Swap(&b); } - inline void Swap(TensorInfo* other) { + inline void Swap(FlatTensorDataInt32* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(TensorInfo* other) { + void UnsafeArenaSwap(FlatTensorDataInt32* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - TensorInfo* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const TensorInfo& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const TensorInfo& from) { - TensorInfo::MergeImpl(*this, from); + FlatTensorDataInt32* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const FlatTensorDataInt32& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const FlatTensorDataInt32& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(TensorInfo* other); + void SetCachedSize(int size) const final; + void InternalSwap(FlatTensorDataInt32* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.mlmodel.v1.TensorInfo"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.mlmodel.v1.FlatTensorDataInt32"; } protected: - explicit TensorInfo(::google::protobuf::Arena* arena); - TensorInfo(::google::protobuf::Arena* arena, const TensorInfo& from); + explicit FlatTensorDataInt32(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kShapeFieldNumber = 4, - kAssociatedFilesFieldNumber = 5, - kNameFieldNumber = 1, - kDescriptionFieldNumber = 2, - kDataTypeFieldNumber = 3, - kExtraFieldNumber = 99, + kDataFieldNumber = 1, }; - // repeated int32 shape = 4 [json_name = "shape"]; - int shape_size() const; - private: - int _internal_shape_size() const; - - public: - void clear_shape() ; - ::int32_t shape(int index) const; - void set_shape(int index, ::int32_t value); - void add_shape(::int32_t value); - const ::google::protobuf::RepeatedField<::int32_t>& shape() const; - ::google::protobuf::RepeatedField<::int32_t>* mutable_shape(); - - private: - const ::google::protobuf::RepeatedField<::int32_t>& _internal_shape() const; - ::google::protobuf::RepeatedField<::int32_t>* _internal_mutable_shape(); - - public: - // repeated .viam.service.mlmodel.v1.File associated_files = 5 [json_name = "associatedFiles"]; - int associated_files_size() const; - private: - int _internal_associated_files_size() const; - - public: - void clear_associated_files() ; - ::viam::service::mlmodel::v1::File* mutable_associated_files(int index); - ::google::protobuf::RepeatedPtrField< ::viam::service::mlmodel::v1::File >* - mutable_associated_files(); - private: - const ::google::protobuf::RepeatedPtrField<::viam::service::mlmodel::v1::File>& _internal_associated_files() const; - ::google::protobuf::RepeatedPtrField<::viam::service::mlmodel::v1::File>* _internal_mutable_associated_files(); - public: - const ::viam::service::mlmodel::v1::File& associated_files(int index) const; - ::viam::service::mlmodel::v1::File* add_associated_files(); - const ::google::protobuf::RepeatedPtrField< ::viam::service::mlmodel::v1::File >& - associated_files() const; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - - public: - // string description = 2 [json_name = "description"]; - void clear_description() ; - const std::string& description() const; - template - void set_description(Arg_&& arg, Args_... args); - std::string* mutable_description(); - PROTOBUF_NODISCARD std::string* release_description(); - void set_allocated_description(std::string* value); - + // repeated sfixed32 data = 1 [json_name = "data", packed = true]; + int data_size() const; private: - const std::string& _internal_description() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_description( - const std::string& value); - std::string* _internal_mutable_description(); - + int _internal_data_size() const; public: - // string data_type = 3 [json_name = "dataType"]; - void clear_data_type() ; - const std::string& data_type() const; - template - void set_data_type(Arg_&& arg, Args_... args); - std::string* mutable_data_type(); - PROTOBUF_NODISCARD std::string* release_data_type(); - void set_allocated_data_type(std::string* value); - + void clear_data(); private: - const std::string& _internal_data_type() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_data_type( - const std::string& value); - std::string* _internal_mutable_data_type(); - + int32_t _internal_data(int index) const; + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& + _internal_data() const; + void _internal_add_data(int32_t value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* + _internal_mutable_data(); public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); + int32_t data(int index) const; + void set_data(int index, int32_t value); + void add_data(int32_t value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& + data() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* + mutable_data(); - public: - // @@protoc_insertion_point(class_scope:viam.service.mlmodel.v1.TensorInfo) + // @@protoc_insertion_point(class_scope:viam.service.mlmodel.v1.FlatTensorDataInt32) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 6, 2, - 67, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedField<::int32_t> shape_; - mutable ::google::protobuf::internal::CachedSize _shape_cached_byte_size_; - ::google::protobuf::RepeatedPtrField< ::viam::service::mlmodel::v1::File > associated_files_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr description_; - ::google::protobuf::internal::ArenaStringPtr data_type_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > data_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fmlmodel_2fv1_2fmlmodel_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class MetadataRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.mlmodel.v1.MetadataRequest) */ { +class FlatTensorDataUInt32 final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.mlmodel.v1.FlatTensorDataUInt32) */ { public: - inline MetadataRequest() : MetadataRequest(nullptr) {} - ~MetadataRequest() override; - template - explicit PROTOBUF_CONSTEXPR MetadataRequest(::google::protobuf::internal::ConstantInitialized); + inline FlatTensorDataUInt32() : FlatTensorDataUInt32(nullptr) {} + ~FlatTensorDataUInt32() override; + explicit PROTOBUF_CONSTEXPR FlatTensorDataUInt32(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline MetadataRequest(const MetadataRequest& from) - : MetadataRequest(nullptr, from) {} - MetadataRequest(MetadataRequest&& from) noexcept - : MetadataRequest() { + FlatTensorDataUInt32(const FlatTensorDataUInt32& from); + FlatTensorDataUInt32(FlatTensorDataUInt32&& from) noexcept + : FlatTensorDataUInt32() { *this = ::std::move(from); } - inline MetadataRequest& operator=(const MetadataRequest& from) { + inline FlatTensorDataUInt32& operator=(const FlatTensorDataUInt32& from) { CopyFrom(from); return *this; } - inline MetadataRequest& operator=(MetadataRequest&& from) noexcept { + inline FlatTensorDataUInt32& operator=(FlatTensorDataUInt32&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2524,196 +2268,153 @@ class MetadataRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MetadataRequest& default_instance() { + static const FlatTensorDataUInt32& default_instance() { return *internal_default_instance(); } - static inline const MetadataRequest* internal_default_instance() { - return reinterpret_cast( - &_MetadataRequest_default_instance_); + static inline const FlatTensorDataUInt32* internal_default_instance() { + return reinterpret_cast( + &_FlatTensorDataUInt32_default_instance_); } static constexpr int kIndexInFileMessages = - 2; + 12; - friend void swap(MetadataRequest& a, MetadataRequest& b) { + friend void swap(FlatTensorDataUInt32& a, FlatTensorDataUInt32& b) { a.Swap(&b); } - inline void Swap(MetadataRequest* other) { + inline void Swap(FlatTensorDataUInt32* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MetadataRequest* other) { + void UnsafeArenaSwap(FlatTensorDataUInt32* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MetadataRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const MetadataRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const MetadataRequest& from) { - MetadataRequest::MergeImpl(*this, from); + FlatTensorDataUInt32* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const FlatTensorDataUInt32& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const FlatTensorDataUInt32& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(MetadataRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(FlatTensorDataUInt32* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.mlmodel.v1.MetadataRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.mlmodel.v1.FlatTensorDataUInt32"; } protected: - explicit MetadataRequest(::google::protobuf::Arena* arena); - MetadataRequest(::google::protobuf::Arena* arena, const MetadataRequest& from); + explicit FlatTensorDataUInt32(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kNameFieldNumber = 1, - kExtraFieldNumber = 99, + kDataFieldNumber = 1, }; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + // repeated fixed32 data = 1 [json_name = "data", packed = true]; + int data_size() const; private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - + int _internal_data_size() const; public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - + void clear_data(); private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - + uint32_t _internal_data(int index) const; + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >& + _internal_data() const; + void _internal_add_data(uint32_t value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >* + _internal_mutable_data(); public: - // @@protoc_insertion_point(class_scope:viam.service.mlmodel.v1.MetadataRequest) + uint32_t data(int index) const; + void set_data(int index, uint32_t value); + void add_data(uint32_t value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >& + data() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >* + mutable_data(); + + // @@protoc_insertion_point(class_scope:viam.service.mlmodel.v1.FlatTensorDataUInt32) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 2, 1, - 52, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t > data_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fmlmodel_2fv1_2fmlmodel_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class FlatTensor final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.mlmodel.v1.FlatTensor) */ { +class FlatTensorDataInt64 final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.mlmodel.v1.FlatTensorDataInt64) */ { public: - inline FlatTensor() : FlatTensor(nullptr) {} - ~FlatTensor() override; - template - explicit PROTOBUF_CONSTEXPR FlatTensor(::google::protobuf::internal::ConstantInitialized); + inline FlatTensorDataInt64() : FlatTensorDataInt64(nullptr) {} + ~FlatTensorDataInt64() override; + explicit PROTOBUF_CONSTEXPR FlatTensorDataInt64(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline FlatTensor(const FlatTensor& from) - : FlatTensor(nullptr, from) {} - FlatTensor(FlatTensor&& from) noexcept - : FlatTensor() { + FlatTensorDataInt64(const FlatTensorDataInt64& from); + FlatTensorDataInt64(FlatTensorDataInt64&& from) noexcept + : FlatTensorDataInt64() { *this = ::std::move(from); } - inline FlatTensor& operator=(const FlatTensor& from) { + inline FlatTensorDataInt64& operator=(const FlatTensorDataInt64& from) { CopyFrom(from); return *this; } - inline FlatTensor& operator=(FlatTensor&& from) noexcept { + inline FlatTensorDataInt64& operator=(FlatTensorDataInt64&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2723,425 +2424,153 @@ class FlatTensor final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const FlatTensor& default_instance() { + static const FlatTensorDataInt64& default_instance() { return *internal_default_instance(); } - enum TensorCase { - kInt8Tensor = 2, - kUint8Tensor = 3, - kInt16Tensor = 4, - kUint16Tensor = 5, - kInt32Tensor = 6, - kUint32Tensor = 7, - kInt64Tensor = 8, - kUint64Tensor = 9, - kFloatTensor = 10, - kDoubleTensor = 11, - TENSOR_NOT_SET = 0, - }; - - static inline const FlatTensor* internal_default_instance() { - return reinterpret_cast( - &_FlatTensor_default_instance_); + static inline const FlatTensorDataInt64* internal_default_instance() { + return reinterpret_cast( + &_FlatTensorDataInt64_default_instance_); } static constexpr int kIndexInFileMessages = - 17; + 13; - friend void swap(FlatTensor& a, FlatTensor& b) { + friend void swap(FlatTensorDataInt64& a, FlatTensorDataInt64& b) { a.Swap(&b); } - inline void Swap(FlatTensor* other) { + inline void Swap(FlatTensorDataInt64* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(FlatTensor* other) { + void UnsafeArenaSwap(FlatTensorDataInt64* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - FlatTensor* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const FlatTensor& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const FlatTensor& from) { - FlatTensor::MergeImpl(*this, from); + FlatTensorDataInt64* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const FlatTensorDataInt64& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const FlatTensorDataInt64& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(FlatTensor* other); + void SetCachedSize(int size) const final; + void InternalSwap(FlatTensorDataInt64* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.mlmodel.v1.FlatTensor"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.mlmodel.v1.FlatTensorDataInt64"; } protected: - explicit FlatTensor(::google::protobuf::Arena* arena); - FlatTensor(::google::protobuf::Arena* arena, const FlatTensor& from); + explicit FlatTensorDataInt64(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kShapeFieldNumber = 1, - kInt8TensorFieldNumber = 2, - kUint8TensorFieldNumber = 3, - kInt16TensorFieldNumber = 4, - kUint16TensorFieldNumber = 5, - kInt32TensorFieldNumber = 6, - kUint32TensorFieldNumber = 7, - kInt64TensorFieldNumber = 8, - kUint64TensorFieldNumber = 9, - kFloatTensorFieldNumber = 10, - kDoubleTensorFieldNumber = 11, + kDataFieldNumber = 1, }; - // repeated fixed64 shape = 1 [json_name = "shape"]; - int shape_size() const; - private: - int _internal_shape_size() const; - - public: - void clear_shape() ; - ::uint64_t shape(int index) const; - void set_shape(int index, ::uint64_t value); - void add_shape(::uint64_t value); - const ::google::protobuf::RepeatedField<::uint64_t>& shape() const; - ::google::protobuf::RepeatedField<::uint64_t>* mutable_shape(); - - private: - const ::google::protobuf::RepeatedField<::uint64_t>& _internal_shape() const; - ::google::protobuf::RepeatedField<::uint64_t>* _internal_mutable_shape(); - - public: - // .viam.service.mlmodel.v1.FlatTensorDataInt8 int8_tensor = 2 [json_name = "int8Tensor"]; - bool has_int8_tensor() const; - private: - bool _internal_has_int8_tensor() const; - - public: - void clear_int8_tensor() ; - const ::viam::service::mlmodel::v1::FlatTensorDataInt8& int8_tensor() const; - PROTOBUF_NODISCARD ::viam::service::mlmodel::v1::FlatTensorDataInt8* release_int8_tensor(); - ::viam::service::mlmodel::v1::FlatTensorDataInt8* mutable_int8_tensor(); - void set_allocated_int8_tensor(::viam::service::mlmodel::v1::FlatTensorDataInt8* value); - void unsafe_arena_set_allocated_int8_tensor(::viam::service::mlmodel::v1::FlatTensorDataInt8* value); - ::viam::service::mlmodel::v1::FlatTensorDataInt8* unsafe_arena_release_int8_tensor(); - - private: - const ::viam::service::mlmodel::v1::FlatTensorDataInt8& _internal_int8_tensor() const; - ::viam::service::mlmodel::v1::FlatTensorDataInt8* _internal_mutable_int8_tensor(); - - public: - // .viam.service.mlmodel.v1.FlatTensorDataUInt8 uint8_tensor = 3 [json_name = "uint8Tensor"]; - bool has_uint8_tensor() const; - private: - bool _internal_has_uint8_tensor() const; - - public: - void clear_uint8_tensor() ; - const ::viam::service::mlmodel::v1::FlatTensorDataUInt8& uint8_tensor() const; - PROTOBUF_NODISCARD ::viam::service::mlmodel::v1::FlatTensorDataUInt8* release_uint8_tensor(); - ::viam::service::mlmodel::v1::FlatTensorDataUInt8* mutable_uint8_tensor(); - void set_allocated_uint8_tensor(::viam::service::mlmodel::v1::FlatTensorDataUInt8* value); - void unsafe_arena_set_allocated_uint8_tensor(::viam::service::mlmodel::v1::FlatTensorDataUInt8* value); - ::viam::service::mlmodel::v1::FlatTensorDataUInt8* unsafe_arena_release_uint8_tensor(); - - private: - const ::viam::service::mlmodel::v1::FlatTensorDataUInt8& _internal_uint8_tensor() const; - ::viam::service::mlmodel::v1::FlatTensorDataUInt8* _internal_mutable_uint8_tensor(); - - public: - // .viam.service.mlmodel.v1.FlatTensorDataInt16 int16_tensor = 4 [json_name = "int16Tensor"]; - bool has_int16_tensor() const; - private: - bool _internal_has_int16_tensor() const; - - public: - void clear_int16_tensor() ; - const ::viam::service::mlmodel::v1::FlatTensorDataInt16& int16_tensor() const; - PROTOBUF_NODISCARD ::viam::service::mlmodel::v1::FlatTensorDataInt16* release_int16_tensor(); - ::viam::service::mlmodel::v1::FlatTensorDataInt16* mutable_int16_tensor(); - void set_allocated_int16_tensor(::viam::service::mlmodel::v1::FlatTensorDataInt16* value); - void unsafe_arena_set_allocated_int16_tensor(::viam::service::mlmodel::v1::FlatTensorDataInt16* value); - ::viam::service::mlmodel::v1::FlatTensorDataInt16* unsafe_arena_release_int16_tensor(); - - private: - const ::viam::service::mlmodel::v1::FlatTensorDataInt16& _internal_int16_tensor() const; - ::viam::service::mlmodel::v1::FlatTensorDataInt16* _internal_mutable_int16_tensor(); - - public: - // .viam.service.mlmodel.v1.FlatTensorDataUInt16 uint16_tensor = 5 [json_name = "uint16Tensor"]; - bool has_uint16_tensor() const; - private: - bool _internal_has_uint16_tensor() const; - - public: - void clear_uint16_tensor() ; - const ::viam::service::mlmodel::v1::FlatTensorDataUInt16& uint16_tensor() const; - PROTOBUF_NODISCARD ::viam::service::mlmodel::v1::FlatTensorDataUInt16* release_uint16_tensor(); - ::viam::service::mlmodel::v1::FlatTensorDataUInt16* mutable_uint16_tensor(); - void set_allocated_uint16_tensor(::viam::service::mlmodel::v1::FlatTensorDataUInt16* value); - void unsafe_arena_set_allocated_uint16_tensor(::viam::service::mlmodel::v1::FlatTensorDataUInt16* value); - ::viam::service::mlmodel::v1::FlatTensorDataUInt16* unsafe_arena_release_uint16_tensor(); - - private: - const ::viam::service::mlmodel::v1::FlatTensorDataUInt16& _internal_uint16_tensor() const; - ::viam::service::mlmodel::v1::FlatTensorDataUInt16* _internal_mutable_uint16_tensor(); - - public: - // .viam.service.mlmodel.v1.FlatTensorDataInt32 int32_tensor = 6 [json_name = "int32Tensor"]; - bool has_int32_tensor() const; - private: - bool _internal_has_int32_tensor() const; - - public: - void clear_int32_tensor() ; - const ::viam::service::mlmodel::v1::FlatTensorDataInt32& int32_tensor() const; - PROTOBUF_NODISCARD ::viam::service::mlmodel::v1::FlatTensorDataInt32* release_int32_tensor(); - ::viam::service::mlmodel::v1::FlatTensorDataInt32* mutable_int32_tensor(); - void set_allocated_int32_tensor(::viam::service::mlmodel::v1::FlatTensorDataInt32* value); - void unsafe_arena_set_allocated_int32_tensor(::viam::service::mlmodel::v1::FlatTensorDataInt32* value); - ::viam::service::mlmodel::v1::FlatTensorDataInt32* unsafe_arena_release_int32_tensor(); - - private: - const ::viam::service::mlmodel::v1::FlatTensorDataInt32& _internal_int32_tensor() const; - ::viam::service::mlmodel::v1::FlatTensorDataInt32* _internal_mutable_int32_tensor(); - - public: - // .viam.service.mlmodel.v1.FlatTensorDataUInt32 uint32_tensor = 7 [json_name = "uint32Tensor"]; - bool has_uint32_tensor() const; - private: - bool _internal_has_uint32_tensor() const; - - public: - void clear_uint32_tensor() ; - const ::viam::service::mlmodel::v1::FlatTensorDataUInt32& uint32_tensor() const; - PROTOBUF_NODISCARD ::viam::service::mlmodel::v1::FlatTensorDataUInt32* release_uint32_tensor(); - ::viam::service::mlmodel::v1::FlatTensorDataUInt32* mutable_uint32_tensor(); - void set_allocated_uint32_tensor(::viam::service::mlmodel::v1::FlatTensorDataUInt32* value); - void unsafe_arena_set_allocated_uint32_tensor(::viam::service::mlmodel::v1::FlatTensorDataUInt32* value); - ::viam::service::mlmodel::v1::FlatTensorDataUInt32* unsafe_arena_release_uint32_tensor(); - - private: - const ::viam::service::mlmodel::v1::FlatTensorDataUInt32& _internal_uint32_tensor() const; - ::viam::service::mlmodel::v1::FlatTensorDataUInt32* _internal_mutable_uint32_tensor(); - - public: - // .viam.service.mlmodel.v1.FlatTensorDataInt64 int64_tensor = 8 [json_name = "int64Tensor"]; - bool has_int64_tensor() const; - private: - bool _internal_has_int64_tensor() const; - - public: - void clear_int64_tensor() ; - const ::viam::service::mlmodel::v1::FlatTensorDataInt64& int64_tensor() const; - PROTOBUF_NODISCARD ::viam::service::mlmodel::v1::FlatTensorDataInt64* release_int64_tensor(); - ::viam::service::mlmodel::v1::FlatTensorDataInt64* mutable_int64_tensor(); - void set_allocated_int64_tensor(::viam::service::mlmodel::v1::FlatTensorDataInt64* value); - void unsafe_arena_set_allocated_int64_tensor(::viam::service::mlmodel::v1::FlatTensorDataInt64* value); - ::viam::service::mlmodel::v1::FlatTensorDataInt64* unsafe_arena_release_int64_tensor(); - - private: - const ::viam::service::mlmodel::v1::FlatTensorDataInt64& _internal_int64_tensor() const; - ::viam::service::mlmodel::v1::FlatTensorDataInt64* _internal_mutable_int64_tensor(); - - public: - // .viam.service.mlmodel.v1.FlatTensorDataUInt64 uint64_tensor = 9 [json_name = "uint64Tensor"]; - bool has_uint64_tensor() const; - private: - bool _internal_has_uint64_tensor() const; - - public: - void clear_uint64_tensor() ; - const ::viam::service::mlmodel::v1::FlatTensorDataUInt64& uint64_tensor() const; - PROTOBUF_NODISCARD ::viam::service::mlmodel::v1::FlatTensorDataUInt64* release_uint64_tensor(); - ::viam::service::mlmodel::v1::FlatTensorDataUInt64* mutable_uint64_tensor(); - void set_allocated_uint64_tensor(::viam::service::mlmodel::v1::FlatTensorDataUInt64* value); - void unsafe_arena_set_allocated_uint64_tensor(::viam::service::mlmodel::v1::FlatTensorDataUInt64* value); - ::viam::service::mlmodel::v1::FlatTensorDataUInt64* unsafe_arena_release_uint64_tensor(); - - private: - const ::viam::service::mlmodel::v1::FlatTensorDataUInt64& _internal_uint64_tensor() const; - ::viam::service::mlmodel::v1::FlatTensorDataUInt64* _internal_mutable_uint64_tensor(); - - public: - // .viam.service.mlmodel.v1.FlatTensorDataFloat float_tensor = 10 [json_name = "floatTensor"]; - bool has_float_tensor() const; + // repeated sfixed64 data = 1 [json_name = "data", packed = true]; + int data_size() const; private: - bool _internal_has_float_tensor() const; - + int _internal_data_size() const; public: - void clear_float_tensor() ; - const ::viam::service::mlmodel::v1::FlatTensorDataFloat& float_tensor() const; - PROTOBUF_NODISCARD ::viam::service::mlmodel::v1::FlatTensorDataFloat* release_float_tensor(); - ::viam::service::mlmodel::v1::FlatTensorDataFloat* mutable_float_tensor(); - void set_allocated_float_tensor(::viam::service::mlmodel::v1::FlatTensorDataFloat* value); - void unsafe_arena_set_allocated_float_tensor(::viam::service::mlmodel::v1::FlatTensorDataFloat* value); - ::viam::service::mlmodel::v1::FlatTensorDataFloat* unsafe_arena_release_float_tensor(); - + void clear_data(); private: - const ::viam::service::mlmodel::v1::FlatTensorDataFloat& _internal_float_tensor() const; - ::viam::service::mlmodel::v1::FlatTensorDataFloat* _internal_mutable_float_tensor(); - + int64_t _internal_data(int index) const; + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >& + _internal_data() const; + void _internal_add_data(int64_t value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >* + _internal_mutable_data(); public: - // .viam.service.mlmodel.v1.FlatTensorDataDouble double_tensor = 11 [json_name = "doubleTensor"]; - bool has_double_tensor() const; - private: - bool _internal_has_double_tensor() const; + int64_t data(int index) const; + void set_data(int index, int64_t value); + void add_data(int64_t value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >& + data() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >* + mutable_data(); - public: - void clear_double_tensor() ; - const ::viam::service::mlmodel::v1::FlatTensorDataDouble& double_tensor() const; - PROTOBUF_NODISCARD ::viam::service::mlmodel::v1::FlatTensorDataDouble* release_double_tensor(); - ::viam::service::mlmodel::v1::FlatTensorDataDouble* mutable_double_tensor(); - void set_allocated_double_tensor(::viam::service::mlmodel::v1::FlatTensorDataDouble* value); - void unsafe_arena_set_allocated_double_tensor(::viam::service::mlmodel::v1::FlatTensorDataDouble* value); - ::viam::service::mlmodel::v1::FlatTensorDataDouble* unsafe_arena_release_double_tensor(); - - private: - const ::viam::service::mlmodel::v1::FlatTensorDataDouble& _internal_double_tensor() const; - ::viam::service::mlmodel::v1::FlatTensorDataDouble* _internal_mutable_double_tensor(); - - public: - void clear_tensor(); - TensorCase tensor_case() const; - // @@protoc_insertion_point(class_scope:viam.service.mlmodel.v1.FlatTensor) + // @@protoc_insertion_point(class_scope:viam.service.mlmodel.v1.FlatTensorDataInt64) private: class _Internal; - void set_has_int8_tensor(); - void set_has_uint8_tensor(); - void set_has_int16_tensor(); - void set_has_uint16_tensor(); - void set_has_int32_tensor(); - void set_has_uint32_tensor(); - void set_has_int64_tensor(); - void set_has_uint64_tensor(); - void set_has_float_tensor(); - void set_has_double_tensor(); - - inline bool has_tensor() const; - inline void clear_has_tensor(); - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 11, 10, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedField<::uint64_t> shape_; - union TensorUnion { - constexpr TensorUnion() : _constinit_{} {} - ::google::protobuf::internal::ConstantInitialized _constinit_; - ::viam::service::mlmodel::v1::FlatTensorDataInt8* int8_tensor_; - ::viam::service::mlmodel::v1::FlatTensorDataUInt8* uint8_tensor_; - ::viam::service::mlmodel::v1::FlatTensorDataInt16* int16_tensor_; - ::viam::service::mlmodel::v1::FlatTensorDataUInt16* uint16_tensor_; - ::viam::service::mlmodel::v1::FlatTensorDataInt32* int32_tensor_; - ::viam::service::mlmodel::v1::FlatTensorDataUInt32* uint32_tensor_; - ::viam::service::mlmodel::v1::FlatTensorDataInt64* int64_tensor_; - ::viam::service::mlmodel::v1::FlatTensorDataUInt64* uint64_tensor_; - ::viam::service::mlmodel::v1::FlatTensorDataFloat* float_tensor_; - ::viam::service::mlmodel::v1::FlatTensorDataDouble* double_tensor_; - } tensor_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t _oneof_case_[1]; - - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t > data_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fmlmodel_2fv1_2fmlmodel_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Metadata final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.mlmodel.v1.Metadata) */ { +class FlatTensorDataUInt64 final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.mlmodel.v1.FlatTensorDataUInt64) */ { public: - inline Metadata() : Metadata(nullptr) {} - ~Metadata() override; - template - explicit PROTOBUF_CONSTEXPR Metadata(::google::protobuf::internal::ConstantInitialized); + inline FlatTensorDataUInt64() : FlatTensorDataUInt64(nullptr) {} + ~FlatTensorDataUInt64() override; + explicit PROTOBUF_CONSTEXPR FlatTensorDataUInt64(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Metadata(const Metadata& from) - : Metadata(nullptr, from) {} - Metadata(Metadata&& from) noexcept - : Metadata() { + FlatTensorDataUInt64(const FlatTensorDataUInt64& from); + FlatTensorDataUInt64(FlatTensorDataUInt64&& from) noexcept + : FlatTensorDataUInt64() { *this = ::std::move(from); } - inline Metadata& operator=(const Metadata& from) { + inline FlatTensorDataUInt64& operator=(const FlatTensorDataUInt64& from) { CopyFrom(from); return *this; } - inline Metadata& operator=(Metadata&& from) noexcept { + inline FlatTensorDataUInt64& operator=(FlatTensorDataUInt64&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3151,282 +2580,153 @@ class Metadata final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Metadata& default_instance() { + static const FlatTensorDataUInt64& default_instance() { return *internal_default_instance(); } - static inline const Metadata* internal_default_instance() { - return reinterpret_cast( - &_Metadata_default_instance_); + static inline const FlatTensorDataUInt64* internal_default_instance() { + return reinterpret_cast( + &_FlatTensorDataUInt64_default_instance_); } static constexpr int kIndexInFileMessages = - 4; + 14; - friend void swap(Metadata& a, Metadata& b) { + friend void swap(FlatTensorDataUInt64& a, FlatTensorDataUInt64& b) { a.Swap(&b); } - inline void Swap(Metadata* other) { + inline void Swap(FlatTensorDataUInt64* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Metadata* other) { + void UnsafeArenaSwap(FlatTensorDataUInt64* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Metadata* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Metadata& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Metadata& from) { - Metadata::MergeImpl(*this, from); + FlatTensorDataUInt64* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const FlatTensorDataUInt64& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const FlatTensorDataUInt64& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Metadata* other); + void SetCachedSize(int size) const final; + void InternalSwap(FlatTensorDataUInt64* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.mlmodel.v1.Metadata"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.mlmodel.v1.FlatTensorDataUInt64"; } protected: - explicit Metadata(::google::protobuf::Arena* arena); - Metadata(::google::protobuf::Arena* arena, const Metadata& from); + explicit FlatTensorDataUInt64(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kInputInfoFieldNumber = 4, - kOutputInfoFieldNumber = 5, - kNameFieldNumber = 1, - kTypeFieldNumber = 2, - kDescriptionFieldNumber = 3, + kDataFieldNumber = 1, }; - // repeated .viam.service.mlmodel.v1.TensorInfo input_info = 4 [json_name = "inputInfo"]; - int input_info_size() const; - private: - int _internal_input_info_size() const; - - public: - void clear_input_info() ; - ::viam::service::mlmodel::v1::TensorInfo* mutable_input_info(int index); - ::google::protobuf::RepeatedPtrField< ::viam::service::mlmodel::v1::TensorInfo >* - mutable_input_info(); - private: - const ::google::protobuf::RepeatedPtrField<::viam::service::mlmodel::v1::TensorInfo>& _internal_input_info() const; - ::google::protobuf::RepeatedPtrField<::viam::service::mlmodel::v1::TensorInfo>* _internal_mutable_input_info(); - public: - const ::viam::service::mlmodel::v1::TensorInfo& input_info(int index) const; - ::viam::service::mlmodel::v1::TensorInfo* add_input_info(); - const ::google::protobuf::RepeatedPtrField< ::viam::service::mlmodel::v1::TensorInfo >& - input_info() const; - // repeated .viam.service.mlmodel.v1.TensorInfo output_info = 5 [json_name = "outputInfo"]; - int output_info_size() const; - private: - int _internal_output_info_size() const; - - public: - void clear_output_info() ; - ::viam::service::mlmodel::v1::TensorInfo* mutable_output_info(int index); - ::google::protobuf::RepeatedPtrField< ::viam::service::mlmodel::v1::TensorInfo >* - mutable_output_info(); - private: - const ::google::protobuf::RepeatedPtrField<::viam::service::mlmodel::v1::TensorInfo>& _internal_output_info() const; - ::google::protobuf::RepeatedPtrField<::viam::service::mlmodel::v1::TensorInfo>* _internal_mutable_output_info(); - public: - const ::viam::service::mlmodel::v1::TensorInfo& output_info(int index) const; - ::viam::service::mlmodel::v1::TensorInfo* add_output_info(); - const ::google::protobuf::RepeatedPtrField< ::viam::service::mlmodel::v1::TensorInfo >& - output_info() const; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - - public: - // string type = 2 [json_name = "type"]; - void clear_type() ; - const std::string& type() const; - template - void set_type(Arg_&& arg, Args_... args); - std::string* mutable_type(); - PROTOBUF_NODISCARD std::string* release_type(); - void set_allocated_type(std::string* value); - + // repeated fixed64 data = 1 [json_name = "data", packed = true]; + int data_size() const; private: - const std::string& _internal_type() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_type( - const std::string& value); - std::string* _internal_mutable_type(); - + int _internal_data_size() const; public: - // string description = 3 [json_name = "description"]; - void clear_description() ; - const std::string& description() const; - template - void set_description(Arg_&& arg, Args_... args); - std::string* mutable_description(); - PROTOBUF_NODISCARD std::string* release_description(); - void set_allocated_description(std::string* value); - + void clear_data(); private: - const std::string& _internal_description() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_description( - const std::string& value); - std::string* _internal_mutable_description(); - + uint64_t _internal_data(int index) const; + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >& + _internal_data() const; + void _internal_add_data(uint64_t value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >* + _internal_mutable_data(); public: - // @@protoc_insertion_point(class_scope:viam.service.mlmodel.v1.Metadata) + uint64_t data(int index) const; + void set_data(int index, uint64_t value); + void add_data(uint64_t value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >& + data() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >* + mutable_data(); + + // @@protoc_insertion_point(class_scope:viam.service.mlmodel.v1.FlatTensorDataUInt64) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 5, 2, - 60, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::service::mlmodel::v1::TensorInfo > input_info_; - ::google::protobuf::RepeatedPtrField< ::viam::service::mlmodel::v1::TensorInfo > output_info_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr type_; - ::google::protobuf::internal::ArenaStringPtr description_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_service_2fmlmodel_2fv1_2fmlmodel_2eproto; -};// ------------------------------------------------------------------- - -class FlatTensors_TensorsEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry< - FlatTensors_TensorsEntry_DoNotUse, std::string, ::viam::service::mlmodel::v1::FlatTensor, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE> { - public: - using SuperType = ::google::protobuf::internal::MapEntry< - FlatTensors_TensorsEntry_DoNotUse, std::string, ::viam::service::mlmodel::v1::FlatTensor, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>; - FlatTensors_TensorsEntry_DoNotUse(); - template - explicit PROTOBUF_CONSTEXPR FlatTensors_TensorsEntry_DoNotUse( - ::google::protobuf::internal::ConstantInitialized); - explicit FlatTensors_TensorsEntry_DoNotUse(::google::protobuf::Arena* arena); - static const FlatTensors_TensorsEntry_DoNotUse* internal_default_instance() { - return reinterpret_cast( - &_FlatTensors_TensorsEntry_DoNotUse_default_instance_); - } - static bool ValidateKey(std::string* s) { - return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "viam.service.mlmodel.v1.FlatTensors.TensorsEntry.key"); - } - static bool ValidateValue(void*) { return true; } - ::google::protobuf::Metadata GetMetadata() const final; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t > data_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fmlmodel_2fv1_2fmlmodel_2eproto; }; // ------------------------------------------------------------------- -class MetadataResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.mlmodel.v1.MetadataResponse) */ { +class FlatTensorDataFloat final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.mlmodel.v1.FlatTensorDataFloat) */ { public: - inline MetadataResponse() : MetadataResponse(nullptr) {} - ~MetadataResponse() override; - template - explicit PROTOBUF_CONSTEXPR MetadataResponse(::google::protobuf::internal::ConstantInitialized); + inline FlatTensorDataFloat() : FlatTensorDataFloat(nullptr) {} + ~FlatTensorDataFloat() override; + explicit PROTOBUF_CONSTEXPR FlatTensorDataFloat(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline MetadataResponse(const MetadataResponse& from) - : MetadataResponse(nullptr, from) {} - MetadataResponse(MetadataResponse&& from) noexcept - : MetadataResponse() { + FlatTensorDataFloat(const FlatTensorDataFloat& from); + FlatTensorDataFloat(FlatTensorDataFloat&& from) noexcept + : FlatTensorDataFloat() { *this = ::std::move(from); } - inline MetadataResponse& operator=(const MetadataResponse& from) { + inline FlatTensorDataFloat& operator=(const FlatTensorDataFloat& from) { CopyFrom(from); return *this; } - inline MetadataResponse& operator=(MetadataResponse&& from) noexcept { + inline FlatTensorDataFloat& operator=(FlatTensorDataFloat&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3436,178 +2736,153 @@ class MetadataResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MetadataResponse& default_instance() { + static const FlatTensorDataFloat& default_instance() { return *internal_default_instance(); } - static inline const MetadataResponse* internal_default_instance() { - return reinterpret_cast( - &_MetadataResponse_default_instance_); + static inline const FlatTensorDataFloat* internal_default_instance() { + return reinterpret_cast( + &_FlatTensorDataFloat_default_instance_); } static constexpr int kIndexInFileMessages = - 3; + 15; - friend void swap(MetadataResponse& a, MetadataResponse& b) { + friend void swap(FlatTensorDataFloat& a, FlatTensorDataFloat& b) { a.Swap(&b); } - inline void Swap(MetadataResponse* other) { + inline void Swap(FlatTensorDataFloat* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MetadataResponse* other) { + void UnsafeArenaSwap(FlatTensorDataFloat* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MetadataResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const MetadataResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const MetadataResponse& from) { - MetadataResponse::MergeImpl(*this, from); + FlatTensorDataFloat* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const FlatTensorDataFloat& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const FlatTensorDataFloat& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(MetadataResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(FlatTensorDataFloat* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.mlmodel.v1.MetadataResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.mlmodel.v1.FlatTensorDataFloat"; } protected: - explicit MetadataResponse(::google::protobuf::Arena* arena); - MetadataResponse(::google::protobuf::Arena* arena, const MetadataResponse& from); + explicit FlatTensorDataFloat(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kMetadataFieldNumber = 1, + kDataFieldNumber = 1, }; - // .viam.service.mlmodel.v1.Metadata metadata = 1 [json_name = "metadata"]; - bool has_metadata() const; - void clear_metadata() ; - const ::viam::service::mlmodel::v1::Metadata& metadata() const; - PROTOBUF_NODISCARD ::viam::service::mlmodel::v1::Metadata* release_metadata(); - ::viam::service::mlmodel::v1::Metadata* mutable_metadata(); - void set_allocated_metadata(::viam::service::mlmodel::v1::Metadata* value); - void unsafe_arena_set_allocated_metadata(::viam::service::mlmodel::v1::Metadata* value); - ::viam::service::mlmodel::v1::Metadata* unsafe_arena_release_metadata(); - + // repeated float data = 1 [json_name = "data", packed = true]; + int data_size() const; private: - const ::viam::service::mlmodel::v1::Metadata& _internal_metadata() const; - ::viam::service::mlmodel::v1::Metadata* _internal_mutable_metadata(); - + int _internal_data_size() const; public: - // @@protoc_insertion_point(class_scope:viam.service.mlmodel.v1.MetadataResponse) + void clear_data(); + private: + float _internal_data(int index) const; + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >& + _internal_data() const; + void _internal_add_data(float value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >* + _internal_mutable_data(); + public: + float data(int index) const; + void set_data(int index, float value); + void add_data(float value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >& + data() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >* + mutable_data(); + + // @@protoc_insertion_point(class_scope:viam.service.mlmodel.v1.FlatTensorDataFloat) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::viam::service::mlmodel::v1::Metadata* metadata_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< float > data_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fmlmodel_2fv1_2fmlmodel_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class FlatTensors final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.mlmodel.v1.FlatTensors) */ { +class FlatTensorDataDouble final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.mlmodel.v1.FlatTensorDataDouble) */ { public: - inline FlatTensors() : FlatTensors(nullptr) {} - ~FlatTensors() override; - template - explicit PROTOBUF_CONSTEXPR FlatTensors(::google::protobuf::internal::ConstantInitialized); + inline FlatTensorDataDouble() : FlatTensorDataDouble(nullptr) {} + ~FlatTensorDataDouble() override; + explicit PROTOBUF_CONSTEXPR FlatTensorDataDouble(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline FlatTensors(const FlatTensors& from) - : FlatTensors(nullptr, from) {} - FlatTensors(FlatTensors&& from) noexcept - : FlatTensors() { + FlatTensorDataDouble(const FlatTensorDataDouble& from); + FlatTensorDataDouble(FlatTensorDataDouble&& from) noexcept + : FlatTensorDataDouble() { *this = ::std::move(from); } - inline FlatTensors& operator=(const FlatTensors& from) { + inline FlatTensorDataDouble& operator=(const FlatTensorDataDouble& from) { CopyFrom(from); return *this; } - inline FlatTensors& operator=(FlatTensors&& from) noexcept { + inline FlatTensorDataDouble& operator=(FlatTensorDataDouble&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3617,181 +2892,153 @@ class FlatTensors final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const FlatTensors& default_instance() { + static const FlatTensorDataDouble& default_instance() { return *internal_default_instance(); } - static inline const FlatTensors* internal_default_instance() { - return reinterpret_cast( - &_FlatTensors_default_instance_); + static inline const FlatTensorDataDouble* internal_default_instance() { + return reinterpret_cast( + &_FlatTensorDataDouble_default_instance_); } static constexpr int kIndexInFileMessages = - 19; + 16; - friend void swap(FlatTensors& a, FlatTensors& b) { + friend void swap(FlatTensorDataDouble& a, FlatTensorDataDouble& b) { a.Swap(&b); } - inline void Swap(FlatTensors* other) { + inline void Swap(FlatTensorDataDouble* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(FlatTensors* other) { + void UnsafeArenaSwap(FlatTensorDataDouble* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - FlatTensors* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const FlatTensors& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const FlatTensors& from) { - FlatTensors::MergeImpl(*this, from); + FlatTensorDataDouble* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const FlatTensorDataDouble& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const FlatTensorDataDouble& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(FlatTensors* other); + void SetCachedSize(int size) const final; + void InternalSwap(FlatTensorDataDouble* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.mlmodel.v1.FlatTensors"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.mlmodel.v1.FlatTensorDataDouble"; } protected: - explicit FlatTensors(::google::protobuf::Arena* arena); - FlatTensors(::google::protobuf::Arena* arena, const FlatTensors& from); + explicit FlatTensorDataDouble(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- - // accessors ------------------------------------------------------- enum : int { - kTensorsFieldNumber = 1, + kDataFieldNumber = 1, }; - // map tensors = 1 [json_name = "tensors"]; - int tensors_size() const; + // repeated double data = 1 [json_name = "data", packed = true]; + int data_size() const; private: - int _internal_tensors_size() const; - + int _internal_data_size() const; public: - void clear_tensors() ; - const ::google::protobuf::Map& tensors() const; - ::google::protobuf::Map* mutable_tensors(); - + void clear_data(); private: - const ::google::protobuf::Map& _internal_tensors() const; - ::google::protobuf::Map* _internal_mutable_tensors(); - + double _internal_data(int index) const; + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& + _internal_data() const; + void _internal_add_data(double value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* + _internal_mutable_data(); public: - // @@protoc_insertion_point(class_scope:viam.service.mlmodel.v1.FlatTensors) + double data(int index) const; + void set_data(int index, double value); + void add_data(double value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& + data() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* + mutable_data(); + + // @@protoc_insertion_point(class_scope:viam.service.mlmodel.v1.FlatTensorDataDouble) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 2, - 51, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::MapField - tensors_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double > data_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fmlmodel_2fv1_2fmlmodel_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class InferResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.mlmodel.v1.InferResponse) */ { +class FlatTensor final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.mlmodel.v1.FlatTensor) */ { public: - inline InferResponse() : InferResponse(nullptr) {} - ~InferResponse() override; - template - explicit PROTOBUF_CONSTEXPR InferResponse(::google::protobuf::internal::ConstantInitialized); + inline FlatTensor() : FlatTensor(nullptr) {} + ~FlatTensor() override; + explicit PROTOBUF_CONSTEXPR FlatTensor(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline InferResponse(const InferResponse& from) - : InferResponse(nullptr, from) {} - InferResponse(InferResponse&& from) noexcept - : InferResponse() { + FlatTensor(const FlatTensor& from); + FlatTensor(FlatTensor&& from) noexcept + : FlatTensor() { *this = ::std::move(from); } - inline InferResponse& operator=(const InferResponse& from) { + inline FlatTensor& operator=(const FlatTensor& from) { CopyFrom(from); return *this; } - inline InferResponse& operator=(InferResponse&& from) noexcept { + inline FlatTensor& operator=(FlatTensor&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3801,178 +3048,414 @@ class InferResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const InferResponse& default_instance() { + static const FlatTensor& default_instance() { return *internal_default_instance(); } - static inline const InferResponse* internal_default_instance() { - return reinterpret_cast( - &_InferResponse_default_instance_); + enum TensorCase { + kInt8Tensor = 2, + kUint8Tensor = 3, + kInt16Tensor = 4, + kUint16Tensor = 5, + kInt32Tensor = 6, + kUint32Tensor = 7, + kInt64Tensor = 8, + kUint64Tensor = 9, + kFloatTensor = 10, + kDoubleTensor = 11, + TENSOR_NOT_SET = 0, + }; + + static inline const FlatTensor* internal_default_instance() { + return reinterpret_cast( + &_FlatTensor_default_instance_); } static constexpr int kIndexInFileMessages = - 1; + 17; - friend void swap(InferResponse& a, InferResponse& b) { + friend void swap(FlatTensor& a, FlatTensor& b) { a.Swap(&b); } - inline void Swap(InferResponse* other) { + inline void Swap(FlatTensor* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(InferResponse* other) { + void UnsafeArenaSwap(FlatTensor* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - InferResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + FlatTensor* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const InferResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const InferResponse& from) { - InferResponse::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const FlatTensor& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const FlatTensor& 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(FlatTensor* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.mlmodel.v1.FlatTensor"; } + protected: + explicit FlatTensor(::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 { + kShapeFieldNumber = 1, + kInt8TensorFieldNumber = 2, + kUint8TensorFieldNumber = 3, + kInt16TensorFieldNumber = 4, + kUint16TensorFieldNumber = 5, + kInt32TensorFieldNumber = 6, + kUint32TensorFieldNumber = 7, + kInt64TensorFieldNumber = 8, + kUint64TensorFieldNumber = 9, + kFloatTensorFieldNumber = 10, + kDoubleTensorFieldNumber = 11, + }; + // repeated fixed64 shape = 1 [json_name = "shape"]; + int shape_size() const; + private: + int _internal_shape_size() const; + public: + void clear_shape(); + private: + uint64_t _internal_shape(int index) const; + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >& + _internal_shape() const; + void _internal_add_shape(uint64_t value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >* + _internal_mutable_shape(); + public: + uint64_t shape(int index) const; + void set_shape(int index, uint64_t value); + void add_shape(uint64_t value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >& + shape() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >* + mutable_shape(); + + // .viam.service.mlmodel.v1.FlatTensorDataInt8 int8_tensor = 2 [json_name = "int8Tensor"]; + bool has_int8_tensor() const; + private: + bool _internal_has_int8_tensor() const; + public: + void clear_int8_tensor(); + const ::viam::service::mlmodel::v1::FlatTensorDataInt8& int8_tensor() const; + PROTOBUF_NODISCARD ::viam::service::mlmodel::v1::FlatTensorDataInt8* release_int8_tensor(); + ::viam::service::mlmodel::v1::FlatTensorDataInt8* mutable_int8_tensor(); + void set_allocated_int8_tensor(::viam::service::mlmodel::v1::FlatTensorDataInt8* int8_tensor); + private: + const ::viam::service::mlmodel::v1::FlatTensorDataInt8& _internal_int8_tensor() const; + ::viam::service::mlmodel::v1::FlatTensorDataInt8* _internal_mutable_int8_tensor(); + public: + void unsafe_arena_set_allocated_int8_tensor( + ::viam::service::mlmodel::v1::FlatTensorDataInt8* int8_tensor); + ::viam::service::mlmodel::v1::FlatTensorDataInt8* unsafe_arena_release_int8_tensor(); + + // .viam.service.mlmodel.v1.FlatTensorDataUInt8 uint8_tensor = 3 [json_name = "uint8Tensor"]; + bool has_uint8_tensor() const; private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + bool _internal_has_uint8_tensor() const; public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - + void clear_uint8_tensor(); + const ::viam::service::mlmodel::v1::FlatTensorDataUInt8& uint8_tensor() const; + PROTOBUF_NODISCARD ::viam::service::mlmodel::v1::FlatTensorDataUInt8* release_uint8_tensor(); + ::viam::service::mlmodel::v1::FlatTensorDataUInt8* mutable_uint8_tensor(); + void set_allocated_uint8_tensor(::viam::service::mlmodel::v1::FlatTensorDataUInt8* uint8_tensor); private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(InferResponse* other); + const ::viam::service::mlmodel::v1::FlatTensorDataUInt8& _internal_uint8_tensor() const; + ::viam::service::mlmodel::v1::FlatTensorDataUInt8* _internal_mutable_uint8_tensor(); + public: + void unsafe_arena_set_allocated_uint8_tensor( + ::viam::service::mlmodel::v1::FlatTensorDataUInt8* uint8_tensor); + ::viam::service::mlmodel::v1::FlatTensorDataUInt8* unsafe_arena_release_uint8_tensor(); + // .viam.service.mlmodel.v1.FlatTensorDataInt16 int16_tensor = 4 [json_name = "int16Tensor"]; + bool has_int16_tensor() const; private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.mlmodel.v1.InferResponse"; - } - protected: - explicit InferResponse(::google::protobuf::Arena* arena); - InferResponse(::google::protobuf::Arena* arena, const InferResponse& from); + bool _internal_has_int16_tensor() const; + public: + void clear_int16_tensor(); + const ::viam::service::mlmodel::v1::FlatTensorDataInt16& int16_tensor() const; + PROTOBUF_NODISCARD ::viam::service::mlmodel::v1::FlatTensorDataInt16* release_int16_tensor(); + ::viam::service::mlmodel::v1::FlatTensorDataInt16* mutable_int16_tensor(); + void set_allocated_int16_tensor(::viam::service::mlmodel::v1::FlatTensorDataInt16* int16_tensor); + private: + const ::viam::service::mlmodel::v1::FlatTensorDataInt16& _internal_int16_tensor() const; + ::viam::service::mlmodel::v1::FlatTensorDataInt16* _internal_mutable_int16_tensor(); public: + void unsafe_arena_set_allocated_int16_tensor( + ::viam::service::mlmodel::v1::FlatTensorDataInt16* int16_tensor); + ::viam::service::mlmodel::v1::FlatTensorDataInt16* unsafe_arena_release_int16_tensor(); - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + // .viam.service.mlmodel.v1.FlatTensorDataUInt16 uint16_tensor = 5 [json_name = "uint16Tensor"]; + bool has_uint16_tensor() const; + private: + bool _internal_has_uint16_tensor() const; + public: + void clear_uint16_tensor(); + const ::viam::service::mlmodel::v1::FlatTensorDataUInt16& uint16_tensor() const; + PROTOBUF_NODISCARD ::viam::service::mlmodel::v1::FlatTensorDataUInt16* release_uint16_tensor(); + ::viam::service::mlmodel::v1::FlatTensorDataUInt16* mutable_uint16_tensor(); + void set_allocated_uint16_tensor(::viam::service::mlmodel::v1::FlatTensorDataUInt16* uint16_tensor); + private: + const ::viam::service::mlmodel::v1::FlatTensorDataUInt16& _internal_uint16_tensor() const; + ::viam::service::mlmodel::v1::FlatTensorDataUInt16* _internal_mutable_uint16_tensor(); + public: + void unsafe_arena_set_allocated_uint16_tensor( + ::viam::service::mlmodel::v1::FlatTensorDataUInt16* uint16_tensor); + ::viam::service::mlmodel::v1::FlatTensorDataUInt16* unsafe_arena_release_uint16_tensor(); - ::google::protobuf::Metadata GetMetadata() const final; + // .viam.service.mlmodel.v1.FlatTensorDataInt32 int32_tensor = 6 [json_name = "int32Tensor"]; + bool has_int32_tensor() const; + private: + bool _internal_has_int32_tensor() const; + public: + void clear_int32_tensor(); + const ::viam::service::mlmodel::v1::FlatTensorDataInt32& int32_tensor() const; + PROTOBUF_NODISCARD ::viam::service::mlmodel::v1::FlatTensorDataInt32* release_int32_tensor(); + ::viam::service::mlmodel::v1::FlatTensorDataInt32* mutable_int32_tensor(); + void set_allocated_int32_tensor(::viam::service::mlmodel::v1::FlatTensorDataInt32* int32_tensor); + private: + const ::viam::service::mlmodel::v1::FlatTensorDataInt32& _internal_int32_tensor() const; + ::viam::service::mlmodel::v1::FlatTensorDataInt32* _internal_mutable_int32_tensor(); + public: + void unsafe_arena_set_allocated_int32_tensor( + ::viam::service::mlmodel::v1::FlatTensorDataInt32* int32_tensor); + ::viam::service::mlmodel::v1::FlatTensorDataInt32* unsafe_arena_release_int32_tensor(); - // nested types ---------------------------------------------------- + // .viam.service.mlmodel.v1.FlatTensorDataUInt32 uint32_tensor = 7 [json_name = "uint32Tensor"]; + bool has_uint32_tensor() const; + private: + bool _internal_has_uint32_tensor() const; + public: + void clear_uint32_tensor(); + const ::viam::service::mlmodel::v1::FlatTensorDataUInt32& uint32_tensor() const; + PROTOBUF_NODISCARD ::viam::service::mlmodel::v1::FlatTensorDataUInt32* release_uint32_tensor(); + ::viam::service::mlmodel::v1::FlatTensorDataUInt32* mutable_uint32_tensor(); + void set_allocated_uint32_tensor(::viam::service::mlmodel::v1::FlatTensorDataUInt32* uint32_tensor); + private: + const ::viam::service::mlmodel::v1::FlatTensorDataUInt32& _internal_uint32_tensor() const; + ::viam::service::mlmodel::v1::FlatTensorDataUInt32* _internal_mutable_uint32_tensor(); + public: + void unsafe_arena_set_allocated_uint32_tensor( + ::viam::service::mlmodel::v1::FlatTensorDataUInt32* uint32_tensor); + ::viam::service::mlmodel::v1::FlatTensorDataUInt32* unsafe_arena_release_uint32_tensor(); - // accessors ------------------------------------------------------- + // .viam.service.mlmodel.v1.FlatTensorDataInt64 int64_tensor = 8 [json_name = "int64Tensor"]; + bool has_int64_tensor() const; + private: + bool _internal_has_int64_tensor() const; + public: + void clear_int64_tensor(); + const ::viam::service::mlmodel::v1::FlatTensorDataInt64& int64_tensor() const; + PROTOBUF_NODISCARD ::viam::service::mlmodel::v1::FlatTensorDataInt64* release_int64_tensor(); + ::viam::service::mlmodel::v1::FlatTensorDataInt64* mutable_int64_tensor(); + void set_allocated_int64_tensor(::viam::service::mlmodel::v1::FlatTensorDataInt64* int64_tensor); + private: + const ::viam::service::mlmodel::v1::FlatTensorDataInt64& _internal_int64_tensor() const; + ::viam::service::mlmodel::v1::FlatTensorDataInt64* _internal_mutable_int64_tensor(); + public: + void unsafe_arena_set_allocated_int64_tensor( + ::viam::service::mlmodel::v1::FlatTensorDataInt64* int64_tensor); + ::viam::service::mlmodel::v1::FlatTensorDataInt64* unsafe_arena_release_int64_tensor(); - enum : int { - kOutputTensorsFieldNumber = 3, - }; - // .viam.service.mlmodel.v1.FlatTensors output_tensors = 3 [json_name = "outputTensors"]; - bool has_output_tensors() const; - void clear_output_tensors() ; - const ::viam::service::mlmodel::v1::FlatTensors& output_tensors() const; - PROTOBUF_NODISCARD ::viam::service::mlmodel::v1::FlatTensors* release_output_tensors(); - ::viam::service::mlmodel::v1::FlatTensors* mutable_output_tensors(); - void set_allocated_output_tensors(::viam::service::mlmodel::v1::FlatTensors* value); - void unsafe_arena_set_allocated_output_tensors(::viam::service::mlmodel::v1::FlatTensors* value); - ::viam::service::mlmodel::v1::FlatTensors* unsafe_arena_release_output_tensors(); + // .viam.service.mlmodel.v1.FlatTensorDataUInt64 uint64_tensor = 9 [json_name = "uint64Tensor"]; + bool has_uint64_tensor() const; + private: + bool _internal_has_uint64_tensor() const; + public: + void clear_uint64_tensor(); + const ::viam::service::mlmodel::v1::FlatTensorDataUInt64& uint64_tensor() const; + PROTOBUF_NODISCARD ::viam::service::mlmodel::v1::FlatTensorDataUInt64* release_uint64_tensor(); + ::viam::service::mlmodel::v1::FlatTensorDataUInt64* mutable_uint64_tensor(); + void set_allocated_uint64_tensor(::viam::service::mlmodel::v1::FlatTensorDataUInt64* uint64_tensor); + private: + const ::viam::service::mlmodel::v1::FlatTensorDataUInt64& _internal_uint64_tensor() const; + ::viam::service::mlmodel::v1::FlatTensorDataUInt64* _internal_mutable_uint64_tensor(); + public: + void unsafe_arena_set_allocated_uint64_tensor( + ::viam::service::mlmodel::v1::FlatTensorDataUInt64* uint64_tensor); + ::viam::service::mlmodel::v1::FlatTensorDataUInt64* unsafe_arena_release_uint64_tensor(); + // .viam.service.mlmodel.v1.FlatTensorDataFloat float_tensor = 10 [json_name = "floatTensor"]; + bool has_float_tensor() const; private: - const ::viam::service::mlmodel::v1::FlatTensors& _internal_output_tensors() const; - ::viam::service::mlmodel::v1::FlatTensors* _internal_mutable_output_tensors(); + bool _internal_has_float_tensor() const; + public: + void clear_float_tensor(); + const ::viam::service::mlmodel::v1::FlatTensorDataFloat& float_tensor() const; + PROTOBUF_NODISCARD ::viam::service::mlmodel::v1::FlatTensorDataFloat* release_float_tensor(); + ::viam::service::mlmodel::v1::FlatTensorDataFloat* mutable_float_tensor(); + void set_allocated_float_tensor(::viam::service::mlmodel::v1::FlatTensorDataFloat* float_tensor); + private: + const ::viam::service::mlmodel::v1::FlatTensorDataFloat& _internal_float_tensor() const; + ::viam::service::mlmodel::v1::FlatTensorDataFloat* _internal_mutable_float_tensor(); + public: + void unsafe_arena_set_allocated_float_tensor( + ::viam::service::mlmodel::v1::FlatTensorDataFloat* float_tensor); + ::viam::service::mlmodel::v1::FlatTensorDataFloat* unsafe_arena_release_float_tensor(); + // .viam.service.mlmodel.v1.FlatTensorDataDouble double_tensor = 11 [json_name = "doubleTensor"]; + bool has_double_tensor() const; + private: + bool _internal_has_double_tensor() const; public: - // @@protoc_insertion_point(class_scope:viam.service.mlmodel.v1.InferResponse) + void clear_double_tensor(); + const ::viam::service::mlmodel::v1::FlatTensorDataDouble& double_tensor() const; + PROTOBUF_NODISCARD ::viam::service::mlmodel::v1::FlatTensorDataDouble* release_double_tensor(); + ::viam::service::mlmodel::v1::FlatTensorDataDouble* mutable_double_tensor(); + void set_allocated_double_tensor(::viam::service::mlmodel::v1::FlatTensorDataDouble* double_tensor); + private: + const ::viam::service::mlmodel::v1::FlatTensorDataDouble& _internal_double_tensor() const; + ::viam::service::mlmodel::v1::FlatTensorDataDouble* _internal_mutable_double_tensor(); + public: + void unsafe_arena_set_allocated_double_tensor( + ::viam::service::mlmodel::v1::FlatTensorDataDouble* double_tensor); + ::viam::service::mlmodel::v1::FlatTensorDataDouble* unsafe_arena_release_double_tensor(); + + void clear_tensor(); + TensorCase tensor_case() const; + // @@protoc_insertion_point(class_scope:viam.service.mlmodel.v1.FlatTensor) private: class _Internal; + void set_has_int8_tensor(); + void set_has_uint8_tensor(); + void set_has_int16_tensor(); + void set_has_uint16_tensor(); + void set_has_int32_tensor(); + void set_has_uint32_tensor(); + void set_has_int64_tensor(); + void set_has_uint64_tensor(); + void set_has_float_tensor(); + void set_has_double_tensor(); + + inline bool has_tensor() const; + inline void clear_has_tensor(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t > shape_; + union TensorUnion { + constexpr TensorUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::viam::service::mlmodel::v1::FlatTensorDataInt8* int8_tensor_; + ::viam::service::mlmodel::v1::FlatTensorDataUInt8* uint8_tensor_; + ::viam::service::mlmodel::v1::FlatTensorDataInt16* int16_tensor_; + ::viam::service::mlmodel::v1::FlatTensorDataUInt16* uint16_tensor_; + ::viam::service::mlmodel::v1::FlatTensorDataInt32* int32_tensor_; + ::viam::service::mlmodel::v1::FlatTensorDataUInt32* uint32_tensor_; + ::viam::service::mlmodel::v1::FlatTensorDataInt64* int64_tensor_; + ::viam::service::mlmodel::v1::FlatTensorDataUInt64* uint64_tensor_; + ::viam::service::mlmodel::v1::FlatTensorDataFloat* float_tensor_; + ::viam::service::mlmodel::v1::FlatTensorDataDouble* double_tensor_; + } tensor_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::viam::service::mlmodel::v1::FlatTensors* output_tensors_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; friend struct ::TableStruct_service_2fmlmodel_2fv1_2fmlmodel_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class InferRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.mlmodel.v1.InferRequest) */ { +class FlatTensors_TensorsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + FlatTensors_TensorsEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR FlatTensors_TensorsEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit FlatTensors_TensorsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const FlatTensors_TensorsEntry_DoNotUse& other); + static const FlatTensors_TensorsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_FlatTensors_TensorsEntry_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.service.mlmodel.v1.FlatTensors.TensorsEntry.key"); + } + static bool ValidateValue(void*) { return true; } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + friend struct ::TableStruct_service_2fmlmodel_2fv1_2fmlmodel_2eproto; +}; + +// ------------------------------------------------------------------- + +class FlatTensors final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.mlmodel.v1.FlatTensors) */ { public: - inline InferRequest() : InferRequest(nullptr) {} - ~InferRequest() override; - template - explicit PROTOBUF_CONSTEXPR InferRequest(::google::protobuf::internal::ConstantInitialized); + inline FlatTensors() : FlatTensors(nullptr) {} + ~FlatTensors() override; + explicit PROTOBUF_CONSTEXPR FlatTensors(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline InferRequest(const InferRequest& from) - : InferRequest(nullptr, from) {} - InferRequest(InferRequest&& from) noexcept - : InferRequest() { + FlatTensors(const FlatTensors& from); + FlatTensors(FlatTensors&& from) noexcept + : FlatTensors() { *this = ::std::move(from); } - inline InferRequest& operator=(const InferRequest& from) { + inline FlatTensors& operator=(const FlatTensors& from) { CopyFrom(from); return *this; } - inline InferRequest& operator=(InferRequest&& from) noexcept { + inline FlatTensors& operator=(FlatTensors&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3982,442 +3465,364 @@ class InferRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const InferRequest& default_instance() { + static const FlatTensors& default_instance() { return *internal_default_instance(); } - static inline const InferRequest* internal_default_instance() { - return reinterpret_cast( - &_InferRequest_default_instance_); + static inline const FlatTensors* internal_default_instance() { + return reinterpret_cast( + &_FlatTensors_default_instance_); } static constexpr int kIndexInFileMessages = - 0; + 19; - friend void swap(InferRequest& a, InferRequest& b) { + friend void swap(FlatTensors& a, FlatTensors& b) { a.Swap(&b); } - inline void Swap(InferRequest* other) { + inline void Swap(FlatTensors* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(InferRequest* other) { + void UnsafeArenaSwap(FlatTensors* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - InferRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const InferRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const InferRequest& from) { - InferRequest::MergeImpl(*this, from); + FlatTensors* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const FlatTensors& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const FlatTensors& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(InferRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(FlatTensors* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.mlmodel.v1.InferRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.mlmodel.v1.FlatTensors"; } protected: - explicit InferRequest(::google::protobuf::Arena* arena); - InferRequest(::google::protobuf::Arena* arena, const InferRequest& from); + explicit FlatTensors(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- + // accessors ------------------------------------------------------- enum : int { - kNameFieldNumber = 1, - kInputTensorsFieldNumber = 3, - kExtraFieldNumber = 99, + kTensorsFieldNumber = 1, }; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + // map tensors = 1 [json_name = "tensors"]; + int tensors_size() const; private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - + int _internal_tensors_size() const; public: - // .viam.service.mlmodel.v1.FlatTensors input_tensors = 3 [json_name = "inputTensors"]; - bool has_input_tensors() const; - void clear_input_tensors() ; - const ::viam::service::mlmodel::v1::FlatTensors& input_tensors() const; - PROTOBUF_NODISCARD ::viam::service::mlmodel::v1::FlatTensors* release_input_tensors(); - ::viam::service::mlmodel::v1::FlatTensors* mutable_input_tensors(); - void set_allocated_input_tensors(::viam::service::mlmodel::v1::FlatTensors* value); - void unsafe_arena_set_allocated_input_tensors(::viam::service::mlmodel::v1::FlatTensors* value); - ::viam::service::mlmodel::v1::FlatTensors* unsafe_arena_release_input_tensors(); - + void clear_tensors(); private: - const ::viam::service::mlmodel::v1::FlatTensors& _internal_input_tensors() const; - ::viam::service::mlmodel::v1::FlatTensors* _internal_mutable_input_tensors(); - + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::service::mlmodel::v1::FlatTensor >& + _internal_tensors() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::service::mlmodel::v1::FlatTensor >* + _internal_mutable_tensors(); public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::service::mlmodel::v1::FlatTensor >& + tensors() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::service::mlmodel::v1::FlatTensor >* + mutable_tensors(); - public: - // @@protoc_insertion_point(class_scope:viam.service.mlmodel.v1.InferRequest) + // @@protoc_insertion_point(class_scope:viam.service.mlmodel.v1.FlatTensors) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 2, - 49, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::viam::service::mlmodel::v1::FlatTensors* input_tensors_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + FlatTensors_TensorsEntry_DoNotUse, + std::string, ::viam::service::mlmodel::v1::FlatTensor, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> tensors_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fmlmodel_2fv1_2fmlmodel_2eproto; }; - // =================================================================== - - // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ -// ------------------------------------------------------------------- - // InferRequest // string name = 1 [json_name = "name"]; inline void InferRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& InferRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& InferRequest::name() const { // @@protoc_insertion_point(field_get:viam.service.mlmodel.v1.InferRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void InferRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void InferRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.mlmodel.v1.InferRequest.name) } -inline std::string* InferRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* InferRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.service.mlmodel.v1.InferRequest.name) return _s; } inline const std::string& InferRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void InferRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* InferRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* InferRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.mlmodel.v1.InferRequest.name) - return _impl_.name_.Release(); -} -inline void InferRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void InferRequest::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.service.mlmodel.v1.InferRequest.name) } // .viam.service.mlmodel.v1.FlatTensors input_tensors = 3 [json_name = "inputTensors"]; +inline bool InferRequest::_internal_has_input_tensors() const { + return this != internal_default_instance() && input_tensors_ != nullptr; +} inline bool InferRequest::has_input_tensors() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.input_tensors_ != nullptr); - return value; + return _internal_has_input_tensors(); } inline void InferRequest::clear_input_tensors() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.input_tensors_ != nullptr) _impl_.input_tensors_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && input_tensors_ != nullptr) { + delete input_tensors_; + } + input_tensors_ = nullptr; } inline const ::viam::service::mlmodel::v1::FlatTensors& InferRequest::_internal_input_tensors() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::service::mlmodel::v1::FlatTensors* p = _impl_.input_tensors_; - return p != nullptr ? *p : reinterpret_cast(::viam::service::mlmodel::v1::_FlatTensors_default_instance_); + const ::viam::service::mlmodel::v1::FlatTensors* p = input_tensors_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::service::mlmodel::v1::_FlatTensors_default_instance_); } -inline const ::viam::service::mlmodel::v1::FlatTensors& InferRequest::input_tensors() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::service::mlmodel::v1::FlatTensors& InferRequest::input_tensors() const { // @@protoc_insertion_point(field_get:viam.service.mlmodel.v1.InferRequest.input_tensors) return _internal_input_tensors(); } -inline void InferRequest::unsafe_arena_set_allocated_input_tensors(::viam::service::mlmodel::v1::FlatTensors* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.input_tensors_); +inline void InferRequest::unsafe_arena_set_allocated_input_tensors( + ::viam::service::mlmodel::v1::FlatTensors* input_tensors) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(input_tensors_); } - _impl_.input_tensors_ = reinterpret_cast<::viam::service::mlmodel::v1::FlatTensors*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + input_tensors_ = input_tensors; + if (input_tensors) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.mlmodel.v1.InferRequest.input_tensors) } inline ::viam::service::mlmodel::v1::FlatTensors* InferRequest::release_input_tensors() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::service::mlmodel::v1::FlatTensors* released = _impl_.input_tensors_; - _impl_.input_tensors_ = nullptr; + + ::viam::service::mlmodel::v1::FlatTensors* temp = input_tensors_; + input_tensors_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::service::mlmodel::v1::FlatTensors* InferRequest::unsafe_arena_release_input_tensors() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.mlmodel.v1.InferRequest.input_tensors) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::service::mlmodel::v1::FlatTensors* temp = _impl_.input_tensors_; - _impl_.input_tensors_ = nullptr; + + ::viam::service::mlmodel::v1::FlatTensors* temp = input_tensors_; + input_tensors_ = nullptr; return temp; } inline ::viam::service::mlmodel::v1::FlatTensors* InferRequest::_internal_mutable_input_tensors() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.input_tensors_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::service::mlmodel::v1::FlatTensors>(GetArena()); - _impl_.input_tensors_ = reinterpret_cast<::viam::service::mlmodel::v1::FlatTensors*>(p); + + if (input_tensors_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::service::mlmodel::v1::FlatTensors>(GetArenaForAllocation()); + input_tensors_ = p; } - return _impl_.input_tensors_; + return input_tensors_; } -inline ::viam::service::mlmodel::v1::FlatTensors* InferRequest::mutable_input_tensors() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::service::mlmodel::v1::FlatTensors* InferRequest::mutable_input_tensors() { ::viam::service::mlmodel::v1::FlatTensors* _msg = _internal_mutable_input_tensors(); // @@protoc_insertion_point(field_mutable:viam.service.mlmodel.v1.InferRequest.input_tensors) return _msg; } -inline void InferRequest::set_allocated_input_tensors(::viam::service::mlmodel::v1::FlatTensors* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void InferRequest::set_allocated_input_tensors(::viam::service::mlmodel::v1::FlatTensors* input_tensors) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::service::mlmodel::v1::FlatTensors*>(_impl_.input_tensors_); + delete input_tensors_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::service::mlmodel::v1::FlatTensors*>(value)->GetArena(); + if (input_tensors) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(input_tensors); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + input_tensors = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, input_tensors, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.input_tensors_ = reinterpret_cast<::viam::service::mlmodel::v1::FlatTensors*>(value); + input_tensors_ = input_tensors; // @@protoc_insertion_point(field_set_allocated:viam.service.mlmodel.v1.InferRequest.input_tensors) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool InferRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool InferRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& InferRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& InferRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& InferRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& InferRequest::extra() const { // @@protoc_insertion_point(field_get:viam.service.mlmodel.v1.InferRequest.extra) return _internal_extra(); } -inline void InferRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void InferRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.mlmodel.v1.InferRequest.extra) } -inline ::google::protobuf::Struct* InferRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* InferRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* InferRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* InferRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.service.mlmodel.v1.InferRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* InferRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* InferRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* InferRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* InferRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.service.mlmodel.v1.InferRequest.extra) return _msg; } -inline void InferRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void InferRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.service.mlmodel.v1.InferRequest.extra) } @@ -4426,98 +3831,92 @@ inline void InferRequest::set_allocated_extra(::google::protobuf::Struct* value) // InferResponse // .viam.service.mlmodel.v1.FlatTensors output_tensors = 3 [json_name = "outputTensors"]; +inline bool InferResponse::_internal_has_output_tensors() const { + return this != internal_default_instance() && output_tensors_ != nullptr; +} inline bool InferResponse::has_output_tensors() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.output_tensors_ != nullptr); - return value; + return _internal_has_output_tensors(); } inline void InferResponse::clear_output_tensors() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.output_tensors_ != nullptr) _impl_.output_tensors_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && output_tensors_ != nullptr) { + delete output_tensors_; + } + output_tensors_ = nullptr; } inline const ::viam::service::mlmodel::v1::FlatTensors& InferResponse::_internal_output_tensors() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::service::mlmodel::v1::FlatTensors* p = _impl_.output_tensors_; - return p != nullptr ? *p : reinterpret_cast(::viam::service::mlmodel::v1::_FlatTensors_default_instance_); + const ::viam::service::mlmodel::v1::FlatTensors* p = output_tensors_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::service::mlmodel::v1::_FlatTensors_default_instance_); } -inline const ::viam::service::mlmodel::v1::FlatTensors& InferResponse::output_tensors() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::service::mlmodel::v1::FlatTensors& InferResponse::output_tensors() const { // @@protoc_insertion_point(field_get:viam.service.mlmodel.v1.InferResponse.output_tensors) return _internal_output_tensors(); } -inline void InferResponse::unsafe_arena_set_allocated_output_tensors(::viam::service::mlmodel::v1::FlatTensors* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.output_tensors_); +inline void InferResponse::unsafe_arena_set_allocated_output_tensors( + ::viam::service::mlmodel::v1::FlatTensors* output_tensors) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(output_tensors_); } - _impl_.output_tensors_ = reinterpret_cast<::viam::service::mlmodel::v1::FlatTensors*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + output_tensors_ = output_tensors; + if (output_tensors) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.mlmodel.v1.InferResponse.output_tensors) } inline ::viam::service::mlmodel::v1::FlatTensors* InferResponse::release_output_tensors() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::service::mlmodel::v1::FlatTensors* released = _impl_.output_tensors_; - _impl_.output_tensors_ = nullptr; + + ::viam::service::mlmodel::v1::FlatTensors* temp = output_tensors_; + output_tensors_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::service::mlmodel::v1::FlatTensors* InferResponse::unsafe_arena_release_output_tensors() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.mlmodel.v1.InferResponse.output_tensors) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::service::mlmodel::v1::FlatTensors* temp = _impl_.output_tensors_; - _impl_.output_tensors_ = nullptr; + + ::viam::service::mlmodel::v1::FlatTensors* temp = output_tensors_; + output_tensors_ = nullptr; return temp; } inline ::viam::service::mlmodel::v1::FlatTensors* InferResponse::_internal_mutable_output_tensors() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.output_tensors_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::service::mlmodel::v1::FlatTensors>(GetArena()); - _impl_.output_tensors_ = reinterpret_cast<::viam::service::mlmodel::v1::FlatTensors*>(p); + + if (output_tensors_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::service::mlmodel::v1::FlatTensors>(GetArenaForAllocation()); + output_tensors_ = p; } - return _impl_.output_tensors_; + return output_tensors_; } -inline ::viam::service::mlmodel::v1::FlatTensors* InferResponse::mutable_output_tensors() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::service::mlmodel::v1::FlatTensors* InferResponse::mutable_output_tensors() { ::viam::service::mlmodel::v1::FlatTensors* _msg = _internal_mutable_output_tensors(); // @@protoc_insertion_point(field_mutable:viam.service.mlmodel.v1.InferResponse.output_tensors) return _msg; } -inline void InferResponse::set_allocated_output_tensors(::viam::service::mlmodel::v1::FlatTensors* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void InferResponse::set_allocated_output_tensors(::viam::service::mlmodel::v1::FlatTensors* output_tensors) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::service::mlmodel::v1::FlatTensors*>(_impl_.output_tensors_); + delete output_tensors_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::service::mlmodel::v1::FlatTensors*>(value)->GetArena(); + if (output_tensors) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(output_tensors); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + output_tensors = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, output_tensors, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.output_tensors_ = reinterpret_cast<::viam::service::mlmodel::v1::FlatTensors*>(value); + output_tensors_ = output_tensors; // @@protoc_insertion_point(field_set_allocated:viam.service.mlmodel.v1.InferResponse.output_tensors) } @@ -4527,145 +3926,136 @@ inline void InferResponse::set_allocated_output_tensors(::viam::service::mlmodel // string name = 1 [json_name = "name"]; inline void MetadataRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& MetadataRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& MetadataRequest::name() const { // @@protoc_insertion_point(field_get:viam.service.mlmodel.v1.MetadataRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void MetadataRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void MetadataRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.mlmodel.v1.MetadataRequest.name) } -inline std::string* MetadataRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* MetadataRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.service.mlmodel.v1.MetadataRequest.name) return _s; } inline const std::string& MetadataRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void MetadataRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* MetadataRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* MetadataRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.mlmodel.v1.MetadataRequest.name) - return _impl_.name_.Release(); -} -inline void MetadataRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void MetadataRequest::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.service.mlmodel.v1.MetadataRequest.name) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool MetadataRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool MetadataRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& MetadataRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& MetadataRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& MetadataRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& MetadataRequest::extra() const { // @@protoc_insertion_point(field_get:viam.service.mlmodel.v1.MetadataRequest.extra) return _internal_extra(); } -inline void MetadataRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void MetadataRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.mlmodel.v1.MetadataRequest.extra) } -inline ::google::protobuf::Struct* MetadataRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* MetadataRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* MetadataRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* MetadataRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.service.mlmodel.v1.MetadataRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* MetadataRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* MetadataRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* MetadataRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* MetadataRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.service.mlmodel.v1.MetadataRequest.extra) return _msg; } -inline void MetadataRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void MetadataRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.service.mlmodel.v1.MetadataRequest.extra) } @@ -4674,98 +4064,92 @@ inline void MetadataRequest::set_allocated_extra(::google::protobuf::Struct* val // MetadataResponse // .viam.service.mlmodel.v1.Metadata metadata = 1 [json_name = "metadata"]; +inline bool MetadataResponse::_internal_has_metadata() const { + return this != internal_default_instance() && metadata_ != nullptr; +} inline bool MetadataResponse::has_metadata() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.metadata_ != nullptr); - return value; + return _internal_has_metadata(); } inline void MetadataResponse::clear_metadata() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.metadata_ != nullptr) _impl_.metadata_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && metadata_ != nullptr) { + delete metadata_; + } + metadata_ = nullptr; } inline const ::viam::service::mlmodel::v1::Metadata& MetadataResponse::_internal_metadata() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::service::mlmodel::v1::Metadata* p = _impl_.metadata_; - return p != nullptr ? *p : reinterpret_cast(::viam::service::mlmodel::v1::_Metadata_default_instance_); + const ::viam::service::mlmodel::v1::Metadata* p = metadata_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::service::mlmodel::v1::_Metadata_default_instance_); } -inline const ::viam::service::mlmodel::v1::Metadata& MetadataResponse::metadata() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::service::mlmodel::v1::Metadata& MetadataResponse::metadata() const { // @@protoc_insertion_point(field_get:viam.service.mlmodel.v1.MetadataResponse.metadata) return _internal_metadata(); } -inline void MetadataResponse::unsafe_arena_set_allocated_metadata(::viam::service::mlmodel::v1::Metadata* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.metadata_); +inline void MetadataResponse::unsafe_arena_set_allocated_metadata( + ::viam::service::mlmodel::v1::Metadata* metadata) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(metadata_); } - _impl_.metadata_ = reinterpret_cast<::viam::service::mlmodel::v1::Metadata*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + metadata_ = metadata; + if (metadata) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.mlmodel.v1.MetadataResponse.metadata) } inline ::viam::service::mlmodel::v1::Metadata* MetadataResponse::release_metadata() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::service::mlmodel::v1::Metadata* released = _impl_.metadata_; - _impl_.metadata_ = nullptr; + + ::viam::service::mlmodel::v1::Metadata* temp = metadata_; + metadata_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::service::mlmodel::v1::Metadata* MetadataResponse::unsafe_arena_release_metadata() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.mlmodel.v1.MetadataResponse.metadata) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::service::mlmodel::v1::Metadata* temp = _impl_.metadata_; - _impl_.metadata_ = nullptr; + + ::viam::service::mlmodel::v1::Metadata* temp = metadata_; + metadata_ = nullptr; return temp; } inline ::viam::service::mlmodel::v1::Metadata* MetadataResponse::_internal_mutable_metadata() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.metadata_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::service::mlmodel::v1::Metadata>(GetArena()); - _impl_.metadata_ = reinterpret_cast<::viam::service::mlmodel::v1::Metadata*>(p); + + if (metadata_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::service::mlmodel::v1::Metadata>(GetArenaForAllocation()); + metadata_ = p; } - return _impl_.metadata_; + return metadata_; } -inline ::viam::service::mlmodel::v1::Metadata* MetadataResponse::mutable_metadata() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::service::mlmodel::v1::Metadata* MetadataResponse::mutable_metadata() { ::viam::service::mlmodel::v1::Metadata* _msg = _internal_mutable_metadata(); // @@protoc_insertion_point(field_mutable:viam.service.mlmodel.v1.MetadataResponse.metadata) return _msg; } -inline void MetadataResponse::set_allocated_metadata(::viam::service::mlmodel::v1::Metadata* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void MetadataResponse::set_allocated_metadata(::viam::service::mlmodel::v1::Metadata* metadata) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::service::mlmodel::v1::Metadata*>(_impl_.metadata_); + delete metadata_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::service::mlmodel::v1::Metadata*>(value)->GetArena(); + if (metadata) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(metadata); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + metadata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, metadata, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.metadata_ = reinterpret_cast<::viam::service::mlmodel::v1::Metadata*>(value); + metadata_ = metadata; // @@protoc_insertion_point(field_set_allocated:viam.service.mlmodel.v1.MetadataResponse.metadata) } @@ -4775,259 +4159,232 @@ inline void MetadataResponse::set_allocated_metadata(::viam::service::mlmodel::v // string name = 1 [json_name = "name"]; inline void Metadata::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& Metadata::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Metadata::name() const { // @@protoc_insertion_point(field_get:viam.service.mlmodel.v1.Metadata.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void Metadata::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Metadata::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.mlmodel.v1.Metadata.name) } -inline std::string* Metadata::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Metadata::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.service.mlmodel.v1.Metadata.name) return _s; } inline const std::string& Metadata::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void Metadata::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* Metadata::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* Metadata::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.mlmodel.v1.Metadata.name) - return _impl_.name_.Release(); -} -inline void Metadata::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void Metadata::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.service.mlmodel.v1.Metadata.name) } // string type = 2 [json_name = "type"]; inline void Metadata::clear_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_.ClearToEmpty(); + type_.ClearToEmpty(); } -inline const std::string& Metadata::type() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Metadata::type() const { // @@protoc_insertion_point(field_get:viam.service.mlmodel.v1.Metadata.type) return _internal_type(); } -template -inline PROTOBUF_ALWAYS_INLINE void Metadata::set_type(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.type_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Metadata::set_type(ArgT0&& arg0, ArgT... args) { + + type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.mlmodel.v1.Metadata.type) } -inline std::string* Metadata::mutable_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Metadata::mutable_type() { std::string* _s = _internal_mutable_type(); // @@protoc_insertion_point(field_mutable:viam.service.mlmodel.v1.Metadata.type) return _s; } inline const std::string& Metadata::_internal_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.type_.Get(); + return type_.Get(); } inline void Metadata::_internal_set_type(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.type_.Set(value, GetArena()); + + type_.Set(value, GetArenaForAllocation()); } inline std::string* Metadata::_internal_mutable_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.type_.Mutable( GetArena()); + + return type_.Mutable(GetArenaForAllocation()); } inline std::string* Metadata::release_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.mlmodel.v1.Metadata.type) - return _impl_.type_.Release(); -} -inline void Metadata::set_allocated_type(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.type_.IsDefault()) { - _impl_.type_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return type_.Release(); +} +inline void Metadata::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.service.mlmodel.v1.Metadata.type) } // string description = 3 [json_name = "description"]; inline void Metadata::clear_description() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.description_.ClearToEmpty(); + description_.ClearToEmpty(); } -inline const std::string& Metadata::description() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Metadata::description() const { // @@protoc_insertion_point(field_get:viam.service.mlmodel.v1.Metadata.description) return _internal_description(); } -template -inline PROTOBUF_ALWAYS_INLINE void Metadata::set_description(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.description_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Metadata::set_description(ArgT0&& arg0, ArgT... args) { + + description_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.mlmodel.v1.Metadata.description) } -inline std::string* Metadata::mutable_description() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Metadata::mutable_description() { std::string* _s = _internal_mutable_description(); // @@protoc_insertion_point(field_mutable:viam.service.mlmodel.v1.Metadata.description) return _s; } inline const std::string& Metadata::_internal_description() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.description_.Get(); + return description_.Get(); } inline void Metadata::_internal_set_description(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.description_.Set(value, GetArena()); + + description_.Set(value, GetArenaForAllocation()); } inline std::string* Metadata::_internal_mutable_description() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.description_.Mutable( GetArena()); + + return description_.Mutable(GetArenaForAllocation()); } inline std::string* Metadata::release_description() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.mlmodel.v1.Metadata.description) - return _impl_.description_.Release(); -} -inline void Metadata::set_allocated_description(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.description_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.description_.IsDefault()) { - _impl_.description_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return description_.Release(); +} +inline void Metadata::set_allocated_description(std::string* description) { + if (description != nullptr) { + + } else { + + } + description_.SetAllocated(description, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (description_.IsDefault()) { + description_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.service.mlmodel.v1.Metadata.description) } // repeated .viam.service.mlmodel.v1.TensorInfo input_info = 4 [json_name = "inputInfo"]; inline int Metadata::_internal_input_info_size() const { - return _internal_input_info().size(); + return input_info_.size(); } inline int Metadata::input_info_size() const { return _internal_input_info_size(); } inline void Metadata::clear_input_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.input_info_.Clear(); + input_info_.Clear(); } -inline ::viam::service::mlmodel::v1::TensorInfo* Metadata::mutable_input_info(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::service::mlmodel::v1::TensorInfo* Metadata::mutable_input_info(int index) { // @@protoc_insertion_point(field_mutable:viam.service.mlmodel.v1.Metadata.input_info) - return _internal_mutable_input_info()->Mutable(index); + return input_info_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::service::mlmodel::v1::TensorInfo>* Metadata::mutable_input_info() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::mlmodel::v1::TensorInfo >* +Metadata::mutable_input_info() { // @@protoc_insertion_point(field_mutable_list:viam.service.mlmodel.v1.Metadata.input_info) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_input_info(); + return &input_info_; +} +inline const ::viam::service::mlmodel::v1::TensorInfo& Metadata::_internal_input_info(int index) const { + return input_info_.Get(index); } -inline const ::viam::service::mlmodel::v1::TensorInfo& Metadata::input_info(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::service::mlmodel::v1::TensorInfo& Metadata::input_info(int index) const { // @@protoc_insertion_point(field_get:viam.service.mlmodel.v1.Metadata.input_info) - return _internal_input_info().Get(index); + return _internal_input_info(index); } -inline ::viam::service::mlmodel::v1::TensorInfo* Metadata::add_input_info() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::service::mlmodel::v1::TensorInfo* _add = _internal_mutable_input_info()->Add(); +inline ::viam::service::mlmodel::v1::TensorInfo* Metadata::_internal_add_input_info() { + return input_info_.Add(); +} +inline ::viam::service::mlmodel::v1::TensorInfo* Metadata::add_input_info() { + ::viam::service::mlmodel::v1::TensorInfo* _add = _internal_add_input_info(); // @@protoc_insertion_point(field_add:viam.service.mlmodel.v1.Metadata.input_info) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::service::mlmodel::v1::TensorInfo>& Metadata::input_info() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::mlmodel::v1::TensorInfo >& +Metadata::input_info() const { // @@protoc_insertion_point(field_list:viam.service.mlmodel.v1.Metadata.input_info) - return _internal_input_info(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::service::mlmodel::v1::TensorInfo>& -Metadata::_internal_input_info() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.input_info_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::service::mlmodel::v1::TensorInfo>* -Metadata::_internal_mutable_input_info() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.input_info_; + return input_info_; } // repeated .viam.service.mlmodel.v1.TensorInfo output_info = 5 [json_name = "outputInfo"]; inline int Metadata::_internal_output_info_size() const { - return _internal_output_info().size(); + return output_info_.size(); } inline int Metadata::output_info_size() const { return _internal_output_info_size(); } inline void Metadata::clear_output_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.output_info_.Clear(); + output_info_.Clear(); } -inline ::viam::service::mlmodel::v1::TensorInfo* Metadata::mutable_output_info(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::service::mlmodel::v1::TensorInfo* Metadata::mutable_output_info(int index) { // @@protoc_insertion_point(field_mutable:viam.service.mlmodel.v1.Metadata.output_info) - return _internal_mutable_output_info()->Mutable(index); + return output_info_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::service::mlmodel::v1::TensorInfo>* Metadata::mutable_output_info() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::mlmodel::v1::TensorInfo >* +Metadata::mutable_output_info() { // @@protoc_insertion_point(field_mutable_list:viam.service.mlmodel.v1.Metadata.output_info) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_output_info(); + return &output_info_; +} +inline const ::viam::service::mlmodel::v1::TensorInfo& Metadata::_internal_output_info(int index) const { + return output_info_.Get(index); } -inline const ::viam::service::mlmodel::v1::TensorInfo& Metadata::output_info(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::service::mlmodel::v1::TensorInfo& Metadata::output_info(int index) const { // @@protoc_insertion_point(field_get:viam.service.mlmodel.v1.Metadata.output_info) - return _internal_output_info().Get(index); + return _internal_output_info(index); } -inline ::viam::service::mlmodel::v1::TensorInfo* Metadata::add_output_info() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::service::mlmodel::v1::TensorInfo* _add = _internal_mutable_output_info()->Add(); +inline ::viam::service::mlmodel::v1::TensorInfo* Metadata::_internal_add_output_info() { + return output_info_.Add(); +} +inline ::viam::service::mlmodel::v1::TensorInfo* Metadata::add_output_info() { + ::viam::service::mlmodel::v1::TensorInfo* _add = _internal_add_output_info(); // @@protoc_insertion_point(field_add:viam.service.mlmodel.v1.Metadata.output_info) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::service::mlmodel::v1::TensorInfo>& Metadata::output_info() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::mlmodel::v1::TensorInfo >& +Metadata::output_info() const { // @@protoc_insertion_point(field_list:viam.service.mlmodel.v1.Metadata.output_info) - return _internal_output_info(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::service::mlmodel::v1::TensorInfo>& -Metadata::_internal_output_info() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.output_info_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::service::mlmodel::v1::TensorInfo>* -Metadata::_internal_mutable_output_info() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.output_info_; + return output_info_; } // ------------------------------------------------------------------- @@ -5036,345 +4393,323 @@ Metadata::_internal_mutable_output_info() { // string name = 1 [json_name = "name"]; inline void TensorInfo::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& TensorInfo::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& TensorInfo::name() const { // @@protoc_insertion_point(field_get:viam.service.mlmodel.v1.TensorInfo.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void TensorInfo::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void TensorInfo::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.mlmodel.v1.TensorInfo.name) } -inline std::string* TensorInfo::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* TensorInfo::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.service.mlmodel.v1.TensorInfo.name) return _s; } inline const std::string& TensorInfo::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void TensorInfo::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* TensorInfo::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* TensorInfo::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.mlmodel.v1.TensorInfo.name) - return _impl_.name_.Release(); -} -inline void TensorInfo::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void TensorInfo::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.service.mlmodel.v1.TensorInfo.name) } // string description = 2 [json_name = "description"]; inline void TensorInfo::clear_description() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.description_.ClearToEmpty(); + description_.ClearToEmpty(); } -inline const std::string& TensorInfo::description() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& TensorInfo::description() const { // @@protoc_insertion_point(field_get:viam.service.mlmodel.v1.TensorInfo.description) return _internal_description(); } -template -inline PROTOBUF_ALWAYS_INLINE void TensorInfo::set_description(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.description_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void TensorInfo::set_description(ArgT0&& arg0, ArgT... args) { + + description_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.mlmodel.v1.TensorInfo.description) } -inline std::string* TensorInfo::mutable_description() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* TensorInfo::mutable_description() { std::string* _s = _internal_mutable_description(); // @@protoc_insertion_point(field_mutable:viam.service.mlmodel.v1.TensorInfo.description) return _s; } inline const std::string& TensorInfo::_internal_description() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.description_.Get(); + return description_.Get(); } inline void TensorInfo::_internal_set_description(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.description_.Set(value, GetArena()); + + description_.Set(value, GetArenaForAllocation()); } inline std::string* TensorInfo::_internal_mutable_description() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.description_.Mutable( GetArena()); + + return description_.Mutable(GetArenaForAllocation()); } inline std::string* TensorInfo::release_description() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.mlmodel.v1.TensorInfo.description) - return _impl_.description_.Release(); -} -inline void TensorInfo::set_allocated_description(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.description_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.description_.IsDefault()) { - _impl_.description_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return description_.Release(); +} +inline void TensorInfo::set_allocated_description(std::string* description) { + if (description != nullptr) { + + } else { + + } + description_.SetAllocated(description, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (description_.IsDefault()) { + description_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.service.mlmodel.v1.TensorInfo.description) } // string data_type = 3 [json_name = "dataType"]; inline void TensorInfo::clear_data_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.data_type_.ClearToEmpty(); + data_type_.ClearToEmpty(); } -inline const std::string& TensorInfo::data_type() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& TensorInfo::data_type() const { // @@protoc_insertion_point(field_get:viam.service.mlmodel.v1.TensorInfo.data_type) return _internal_data_type(); } -template -inline PROTOBUF_ALWAYS_INLINE void TensorInfo::set_data_type(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.data_type_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void TensorInfo::set_data_type(ArgT0&& arg0, ArgT... args) { + + data_type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.mlmodel.v1.TensorInfo.data_type) } -inline std::string* TensorInfo::mutable_data_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* TensorInfo::mutable_data_type() { std::string* _s = _internal_mutable_data_type(); // @@protoc_insertion_point(field_mutable:viam.service.mlmodel.v1.TensorInfo.data_type) return _s; } inline const std::string& TensorInfo::_internal_data_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.data_type_.Get(); + return data_type_.Get(); } inline void TensorInfo::_internal_set_data_type(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.data_type_.Set(value, GetArena()); + + data_type_.Set(value, GetArenaForAllocation()); } inline std::string* TensorInfo::_internal_mutable_data_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.data_type_.Mutable( GetArena()); + + return data_type_.Mutable(GetArenaForAllocation()); } inline std::string* TensorInfo::release_data_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.mlmodel.v1.TensorInfo.data_type) - return _impl_.data_type_.Release(); -} -inline void TensorInfo::set_allocated_data_type(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.data_type_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.data_type_.IsDefault()) { - _impl_.data_type_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return data_type_.Release(); +} +inline void TensorInfo::set_allocated_data_type(std::string* data_type) { + if (data_type != nullptr) { + + } else { + + } + data_type_.SetAllocated(data_type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (data_type_.IsDefault()) { + data_type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.service.mlmodel.v1.TensorInfo.data_type) } // repeated int32 shape = 4 [json_name = "shape"]; inline int TensorInfo::_internal_shape_size() const { - return _internal_shape().size(); + return shape_.size(); } inline int TensorInfo::shape_size() const { return _internal_shape_size(); } inline void TensorInfo::clear_shape() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.shape_.Clear(); + shape_.Clear(); +} +inline int32_t TensorInfo::_internal_shape(int index) const { + return shape_.Get(index); } -inline ::int32_t TensorInfo::shape(int index) const { +inline int32_t TensorInfo::shape(int index) const { // @@protoc_insertion_point(field_get:viam.service.mlmodel.v1.TensorInfo.shape) - return _internal_shape().Get(index); + return _internal_shape(index); } -inline void TensorInfo::set_shape(int index, ::int32_t value) { - _internal_mutable_shape()->Set(index, value); +inline void TensorInfo::set_shape(int index, int32_t value) { + shape_.Set(index, value); // @@protoc_insertion_point(field_set:viam.service.mlmodel.v1.TensorInfo.shape) } -inline void TensorInfo::add_shape(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_shape()->Add(value); +inline void TensorInfo::_internal_add_shape(int32_t value) { + shape_.Add(value); +} +inline void TensorInfo::add_shape(int32_t value) { + _internal_add_shape(value); // @@protoc_insertion_point(field_add:viam.service.mlmodel.v1.TensorInfo.shape) } -inline const ::google::protobuf::RepeatedField<::int32_t>& TensorInfo::shape() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& +TensorInfo::_internal_shape() const { + return shape_; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& +TensorInfo::shape() const { // @@protoc_insertion_point(field_list:viam.service.mlmodel.v1.TensorInfo.shape) return _internal_shape(); } -inline ::google::protobuf::RepeatedField<::int32_t>* TensorInfo::mutable_shape() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* +TensorInfo::_internal_mutable_shape() { + return &shape_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* +TensorInfo::mutable_shape() { // @@protoc_insertion_point(field_mutable_list:viam.service.mlmodel.v1.TensorInfo.shape) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _internal_mutable_shape(); } -inline const ::google::protobuf::RepeatedField<::int32_t>& TensorInfo::_internal_shape() - const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.shape_; -} -inline ::google::protobuf::RepeatedField<::int32_t>* TensorInfo::_internal_mutable_shape() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.shape_; -} // repeated .viam.service.mlmodel.v1.File associated_files = 5 [json_name = "associatedFiles"]; inline int TensorInfo::_internal_associated_files_size() const { - return _internal_associated_files().size(); + return associated_files_.size(); } inline int TensorInfo::associated_files_size() const { return _internal_associated_files_size(); } inline void TensorInfo::clear_associated_files() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.associated_files_.Clear(); + associated_files_.Clear(); } -inline ::viam::service::mlmodel::v1::File* TensorInfo::mutable_associated_files(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::service::mlmodel::v1::File* TensorInfo::mutable_associated_files(int index) { // @@protoc_insertion_point(field_mutable:viam.service.mlmodel.v1.TensorInfo.associated_files) - return _internal_mutable_associated_files()->Mutable(index); + return associated_files_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::service::mlmodel::v1::File>* TensorInfo::mutable_associated_files() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::mlmodel::v1::File >* +TensorInfo::mutable_associated_files() { // @@protoc_insertion_point(field_mutable_list:viam.service.mlmodel.v1.TensorInfo.associated_files) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_associated_files(); + return &associated_files_; +} +inline const ::viam::service::mlmodel::v1::File& TensorInfo::_internal_associated_files(int index) const { + return associated_files_.Get(index); } -inline const ::viam::service::mlmodel::v1::File& TensorInfo::associated_files(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::service::mlmodel::v1::File& TensorInfo::associated_files(int index) const { // @@protoc_insertion_point(field_get:viam.service.mlmodel.v1.TensorInfo.associated_files) - return _internal_associated_files().Get(index); + return _internal_associated_files(index); } -inline ::viam::service::mlmodel::v1::File* TensorInfo::add_associated_files() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::service::mlmodel::v1::File* _add = _internal_mutable_associated_files()->Add(); +inline ::viam::service::mlmodel::v1::File* TensorInfo::_internal_add_associated_files() { + return associated_files_.Add(); +} +inline ::viam::service::mlmodel::v1::File* TensorInfo::add_associated_files() { + ::viam::service::mlmodel::v1::File* _add = _internal_add_associated_files(); // @@protoc_insertion_point(field_add:viam.service.mlmodel.v1.TensorInfo.associated_files) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::service::mlmodel::v1::File>& TensorInfo::associated_files() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::mlmodel::v1::File >& +TensorInfo::associated_files() const { // @@protoc_insertion_point(field_list:viam.service.mlmodel.v1.TensorInfo.associated_files) - return _internal_associated_files(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::service::mlmodel::v1::File>& -TensorInfo::_internal_associated_files() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.associated_files_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::service::mlmodel::v1::File>* -TensorInfo::_internal_mutable_associated_files() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.associated_files_; + return associated_files_; } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool TensorInfo::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool TensorInfo::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& TensorInfo::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& TensorInfo::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& TensorInfo::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& TensorInfo::extra() const { // @@protoc_insertion_point(field_get:viam.service.mlmodel.v1.TensorInfo.extra) return _internal_extra(); } -inline void TensorInfo::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void TensorInfo::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.mlmodel.v1.TensorInfo.extra) } -inline ::google::protobuf::Struct* TensorInfo::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* TensorInfo::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* TensorInfo::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* TensorInfo::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.service.mlmodel.v1.TensorInfo.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* TensorInfo::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* TensorInfo::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* TensorInfo::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* TensorInfo::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.service.mlmodel.v1.TensorInfo.extra) return _msg; } -inline void TensorInfo::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TensorInfo::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.service.mlmodel.v1.TensorInfo.extra) } @@ -5384,132 +4719,123 @@ inline void TensorInfo::set_allocated_extra(::google::protobuf::Struct* value) { // string name = 1 [json_name = "name"]; inline void File::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& File::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& File::name() const { // @@protoc_insertion_point(field_get:viam.service.mlmodel.v1.File.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void File::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void File::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.mlmodel.v1.File.name) } -inline std::string* File::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* File::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.service.mlmodel.v1.File.name) return _s; } inline const std::string& File::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void File::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* File::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* File::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.mlmodel.v1.File.name) - return _impl_.name_.Release(); -} -inline void File::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void File::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.service.mlmodel.v1.File.name) } // string description = 2 [json_name = "description"]; inline void File::clear_description() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.description_.ClearToEmpty(); + description_.ClearToEmpty(); } -inline const std::string& File::description() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& File::description() const { // @@protoc_insertion_point(field_get:viam.service.mlmodel.v1.File.description) return _internal_description(); } -template -inline PROTOBUF_ALWAYS_INLINE void File::set_description(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.description_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void File::set_description(ArgT0&& arg0, ArgT... args) { + + description_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.mlmodel.v1.File.description) } -inline std::string* File::mutable_description() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* File::mutable_description() { std::string* _s = _internal_mutable_description(); // @@protoc_insertion_point(field_mutable:viam.service.mlmodel.v1.File.description) return _s; } inline const std::string& File::_internal_description() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.description_.Get(); + return description_.Get(); } inline void File::_internal_set_description(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.description_.Set(value, GetArena()); + + description_.Set(value, GetArenaForAllocation()); } inline std::string* File::_internal_mutable_description() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.description_.Mutable( GetArena()); + + return description_.Mutable(GetArenaForAllocation()); } inline std::string* File::release_description() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.mlmodel.v1.File.description) - return _impl_.description_.Release(); -} -inline void File::set_allocated_description(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.description_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.description_.IsDefault()) { - _impl_.description_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return description_.Release(); +} +inline void File::set_allocated_description(std::string* description) { + if (description != nullptr) { + + } else { + + } + description_.SetAllocated(description, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (description_.IsDefault()) { + description_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.service.mlmodel.v1.File.description) } // .viam.service.mlmodel.v1.LabelType label_type = 3 [json_name = "labelType"]; inline void File::clear_label_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.label_type_ = 0; + label_type_ = 0; +} +inline ::viam::service::mlmodel::v1::LabelType File::_internal_label_type() const { + return static_cast< ::viam::service::mlmodel::v1::LabelType >(label_type_); } inline ::viam::service::mlmodel::v1::LabelType File::label_type() const { // @@protoc_insertion_point(field_get:viam.service.mlmodel.v1.File.label_type) return _internal_label_type(); } +inline void File::_internal_set_label_type(::viam::service::mlmodel::v1::LabelType value) { + + label_type_ = value; +} inline void File::set_label_type(::viam::service::mlmodel::v1::LabelType value) { _internal_set_label_type(value); // @@protoc_insertion_point(field_set:viam.service.mlmodel.v1.File.label_type) } -inline ::viam::service::mlmodel::v1::LabelType File::_internal_label_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::viam::service::mlmodel::v1::LabelType>(_impl_.label_type_); -} -inline void File::_internal_set_label_type(::viam::service::mlmodel::v1::LabelType value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.label_type_ = value; -} // ------------------------------------------------------------------- @@ -5517,54 +4843,51 @@ inline void File::_internal_set_label_type(::viam::service::mlmodel::v1::LabelTy // bytes data = 1 [json_name = "data"]; inline void FlatTensorDataInt8::clear_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.data_.ClearToEmpty(); + data_.ClearToEmpty(); } -inline const std::string& FlatTensorDataInt8::data() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& FlatTensorDataInt8::data() const { // @@protoc_insertion_point(field_get:viam.service.mlmodel.v1.FlatTensorDataInt8.data) return _internal_data(); } -template -inline PROTOBUF_ALWAYS_INLINE void FlatTensorDataInt8::set_data(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.data_.SetBytes(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void FlatTensorDataInt8::set_data(ArgT0&& arg0, ArgT... args) { + + data_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.mlmodel.v1.FlatTensorDataInt8.data) } -inline std::string* FlatTensorDataInt8::mutable_data() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* FlatTensorDataInt8::mutable_data() { std::string* _s = _internal_mutable_data(); // @@protoc_insertion_point(field_mutable:viam.service.mlmodel.v1.FlatTensorDataInt8.data) return _s; } inline const std::string& FlatTensorDataInt8::_internal_data() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.data_.Get(); + return data_.Get(); } inline void FlatTensorDataInt8::_internal_set_data(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.data_.Set(value, GetArena()); + + data_.Set(value, GetArenaForAllocation()); } inline std::string* FlatTensorDataInt8::_internal_mutable_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.data_.Mutable( GetArena()); + + return data_.Mutable(GetArenaForAllocation()); } inline std::string* FlatTensorDataInt8::release_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.mlmodel.v1.FlatTensorDataInt8.data) - return _impl_.data_.Release(); -} -inline void FlatTensorDataInt8::set_allocated_data(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.data_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.data_.IsDefault()) { - _impl_.data_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return data_.Release(); +} +inline void FlatTensorDataInt8::set_allocated_data(std::string* data) { + if (data != nullptr) { + + } else { + + } + data_.SetAllocated(data, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (data_.IsDefault()) { + data_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.service.mlmodel.v1.FlatTensorDataInt8.data) } @@ -5574,54 +4897,51 @@ inline void FlatTensorDataInt8::set_allocated_data(std::string* value) { // bytes data = 1 [json_name = "data"]; inline void FlatTensorDataUInt8::clear_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.data_.ClearToEmpty(); + data_.ClearToEmpty(); } -inline const std::string& FlatTensorDataUInt8::data() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& FlatTensorDataUInt8::data() const { // @@protoc_insertion_point(field_get:viam.service.mlmodel.v1.FlatTensorDataUInt8.data) return _internal_data(); } -template -inline PROTOBUF_ALWAYS_INLINE void FlatTensorDataUInt8::set_data(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.data_.SetBytes(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void FlatTensorDataUInt8::set_data(ArgT0&& arg0, ArgT... args) { + + data_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.mlmodel.v1.FlatTensorDataUInt8.data) } -inline std::string* FlatTensorDataUInt8::mutable_data() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* FlatTensorDataUInt8::mutable_data() { std::string* _s = _internal_mutable_data(); // @@protoc_insertion_point(field_mutable:viam.service.mlmodel.v1.FlatTensorDataUInt8.data) return _s; } inline const std::string& FlatTensorDataUInt8::_internal_data() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.data_.Get(); + return data_.Get(); } inline void FlatTensorDataUInt8::_internal_set_data(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.data_.Set(value, GetArena()); + + data_.Set(value, GetArenaForAllocation()); } inline std::string* FlatTensorDataUInt8::_internal_mutable_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.data_.Mutable( GetArena()); + + return data_.Mutable(GetArenaForAllocation()); } inline std::string* FlatTensorDataUInt8::release_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.mlmodel.v1.FlatTensorDataUInt8.data) - return _impl_.data_.Release(); -} -inline void FlatTensorDataUInt8::set_allocated_data(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.data_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.data_.IsDefault()) { - _impl_.data_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return data_.Release(); +} +inline void FlatTensorDataUInt8::set_allocated_data(std::string* data) { + if (data != nullptr) { + + } else { + + } + data_.SetAllocated(data, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (data_.IsDefault()) { + data_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.service.mlmodel.v1.FlatTensorDataUInt8.data) } @@ -5631,48 +4951,50 @@ inline void FlatTensorDataUInt8::set_allocated_data(std::string* value) { // repeated fixed32 data = 1 [json_name = "data", packed = true]; inline int FlatTensorDataInt16::_internal_data_size() const { - return _internal_data().size(); + return data_.size(); } inline int FlatTensorDataInt16::data_size() const { return _internal_data_size(); } inline void FlatTensorDataInt16::clear_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.data_.Clear(); + data_.Clear(); } -inline ::uint32_t FlatTensorDataInt16::data(int index) const { +inline uint32_t FlatTensorDataInt16::_internal_data(int index) const { + return data_.Get(index); +} +inline uint32_t FlatTensorDataInt16::data(int index) const { // @@protoc_insertion_point(field_get:viam.service.mlmodel.v1.FlatTensorDataInt16.data) - return _internal_data().Get(index); + return _internal_data(index); } -inline void FlatTensorDataInt16::set_data(int index, ::uint32_t value) { - _internal_mutable_data()->Set(index, value); +inline void FlatTensorDataInt16::set_data(int index, uint32_t value) { + data_.Set(index, value); // @@protoc_insertion_point(field_set:viam.service.mlmodel.v1.FlatTensorDataInt16.data) } -inline void FlatTensorDataInt16::add_data(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_data()->Add(value); +inline void FlatTensorDataInt16::_internal_add_data(uint32_t value) { + data_.Add(value); +} +inline void FlatTensorDataInt16::add_data(uint32_t value) { + _internal_add_data(value); // @@protoc_insertion_point(field_add:viam.service.mlmodel.v1.FlatTensorDataInt16.data) } -inline const ::google::protobuf::RepeatedField<::uint32_t>& FlatTensorDataInt16::data() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >& +FlatTensorDataInt16::_internal_data() const { + return data_; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >& +FlatTensorDataInt16::data() const { // @@protoc_insertion_point(field_list:viam.service.mlmodel.v1.FlatTensorDataInt16.data) return _internal_data(); } -inline ::google::protobuf::RepeatedField<::uint32_t>* FlatTensorDataInt16::mutable_data() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >* +FlatTensorDataInt16::_internal_mutable_data() { + return &data_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >* +FlatTensorDataInt16::mutable_data() { // @@protoc_insertion_point(field_mutable_list:viam.service.mlmodel.v1.FlatTensorDataInt16.data) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _internal_mutable_data(); } -inline const ::google::protobuf::RepeatedField<::uint32_t>& FlatTensorDataInt16::_internal_data() - const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.data_; -} -inline ::google::protobuf::RepeatedField<::uint32_t>* FlatTensorDataInt16::_internal_mutable_data() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.data_; -} // ------------------------------------------------------------------- @@ -5680,48 +5002,50 @@ inline ::google::protobuf::RepeatedField<::uint32_t>* FlatTensorDataInt16::_inte // repeated fixed32 data = 1 [json_name = "data", packed = true]; inline int FlatTensorDataUInt16::_internal_data_size() const { - return _internal_data().size(); + return data_.size(); } inline int FlatTensorDataUInt16::data_size() const { return _internal_data_size(); } inline void FlatTensorDataUInt16::clear_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.data_.Clear(); + data_.Clear(); } -inline ::uint32_t FlatTensorDataUInt16::data(int index) const { +inline uint32_t FlatTensorDataUInt16::_internal_data(int index) const { + return data_.Get(index); +} +inline uint32_t FlatTensorDataUInt16::data(int index) const { // @@protoc_insertion_point(field_get:viam.service.mlmodel.v1.FlatTensorDataUInt16.data) - return _internal_data().Get(index); + return _internal_data(index); } -inline void FlatTensorDataUInt16::set_data(int index, ::uint32_t value) { - _internal_mutable_data()->Set(index, value); +inline void FlatTensorDataUInt16::set_data(int index, uint32_t value) { + data_.Set(index, value); // @@protoc_insertion_point(field_set:viam.service.mlmodel.v1.FlatTensorDataUInt16.data) } -inline void FlatTensorDataUInt16::add_data(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_data()->Add(value); +inline void FlatTensorDataUInt16::_internal_add_data(uint32_t value) { + data_.Add(value); +} +inline void FlatTensorDataUInt16::add_data(uint32_t value) { + _internal_add_data(value); // @@protoc_insertion_point(field_add:viam.service.mlmodel.v1.FlatTensorDataUInt16.data) } -inline const ::google::protobuf::RepeatedField<::uint32_t>& FlatTensorDataUInt16::data() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >& +FlatTensorDataUInt16::_internal_data() const { + return data_; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >& +FlatTensorDataUInt16::data() const { // @@protoc_insertion_point(field_list:viam.service.mlmodel.v1.FlatTensorDataUInt16.data) return _internal_data(); } -inline ::google::protobuf::RepeatedField<::uint32_t>* FlatTensorDataUInt16::mutable_data() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >* +FlatTensorDataUInt16::_internal_mutable_data() { + return &data_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >* +FlatTensorDataUInt16::mutable_data() { // @@protoc_insertion_point(field_mutable_list:viam.service.mlmodel.v1.FlatTensorDataUInt16.data) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _internal_mutable_data(); } -inline const ::google::protobuf::RepeatedField<::uint32_t>& FlatTensorDataUInt16::_internal_data() - const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.data_; -} -inline ::google::protobuf::RepeatedField<::uint32_t>* FlatTensorDataUInt16::_internal_mutable_data() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.data_; -} // ------------------------------------------------------------------- @@ -5729,48 +5053,50 @@ inline ::google::protobuf::RepeatedField<::uint32_t>* FlatTensorDataUInt16::_int // repeated sfixed32 data = 1 [json_name = "data", packed = true]; inline int FlatTensorDataInt32::_internal_data_size() const { - return _internal_data().size(); + return data_.size(); } inline int FlatTensorDataInt32::data_size() const { return _internal_data_size(); } inline void FlatTensorDataInt32::clear_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.data_.Clear(); + data_.Clear(); } -inline ::int32_t FlatTensorDataInt32::data(int index) const { +inline int32_t FlatTensorDataInt32::_internal_data(int index) const { + return data_.Get(index); +} +inline int32_t FlatTensorDataInt32::data(int index) const { // @@protoc_insertion_point(field_get:viam.service.mlmodel.v1.FlatTensorDataInt32.data) - return _internal_data().Get(index); + return _internal_data(index); } -inline void FlatTensorDataInt32::set_data(int index, ::int32_t value) { - _internal_mutable_data()->Set(index, value); +inline void FlatTensorDataInt32::set_data(int index, int32_t value) { + data_.Set(index, value); // @@protoc_insertion_point(field_set:viam.service.mlmodel.v1.FlatTensorDataInt32.data) } -inline void FlatTensorDataInt32::add_data(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_data()->Add(value); +inline void FlatTensorDataInt32::_internal_add_data(int32_t value) { + data_.Add(value); +} +inline void FlatTensorDataInt32::add_data(int32_t value) { + _internal_add_data(value); // @@protoc_insertion_point(field_add:viam.service.mlmodel.v1.FlatTensorDataInt32.data) } -inline const ::google::protobuf::RepeatedField<::int32_t>& FlatTensorDataInt32::data() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& +FlatTensorDataInt32::_internal_data() const { + return data_; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& +FlatTensorDataInt32::data() const { // @@protoc_insertion_point(field_list:viam.service.mlmodel.v1.FlatTensorDataInt32.data) return _internal_data(); } -inline ::google::protobuf::RepeatedField<::int32_t>* FlatTensorDataInt32::mutable_data() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* +FlatTensorDataInt32::_internal_mutable_data() { + return &data_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* +FlatTensorDataInt32::mutable_data() { // @@protoc_insertion_point(field_mutable_list:viam.service.mlmodel.v1.FlatTensorDataInt32.data) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _internal_mutable_data(); } -inline const ::google::protobuf::RepeatedField<::int32_t>& FlatTensorDataInt32::_internal_data() - const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.data_; -} -inline ::google::protobuf::RepeatedField<::int32_t>* FlatTensorDataInt32::_internal_mutable_data() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.data_; -} // ------------------------------------------------------------------- @@ -5778,48 +5104,50 @@ inline ::google::protobuf::RepeatedField<::int32_t>* FlatTensorDataInt32::_inter // repeated fixed32 data = 1 [json_name = "data", packed = true]; inline int FlatTensorDataUInt32::_internal_data_size() const { - return _internal_data().size(); + return data_.size(); } inline int FlatTensorDataUInt32::data_size() const { return _internal_data_size(); } inline void FlatTensorDataUInt32::clear_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.data_.Clear(); + data_.Clear(); } -inline ::uint32_t FlatTensorDataUInt32::data(int index) const { +inline uint32_t FlatTensorDataUInt32::_internal_data(int index) const { + return data_.Get(index); +} +inline uint32_t FlatTensorDataUInt32::data(int index) const { // @@protoc_insertion_point(field_get:viam.service.mlmodel.v1.FlatTensorDataUInt32.data) - return _internal_data().Get(index); + return _internal_data(index); } -inline void FlatTensorDataUInt32::set_data(int index, ::uint32_t value) { - _internal_mutable_data()->Set(index, value); +inline void FlatTensorDataUInt32::set_data(int index, uint32_t value) { + data_.Set(index, value); // @@protoc_insertion_point(field_set:viam.service.mlmodel.v1.FlatTensorDataUInt32.data) } -inline void FlatTensorDataUInt32::add_data(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_data()->Add(value); +inline void FlatTensorDataUInt32::_internal_add_data(uint32_t value) { + data_.Add(value); +} +inline void FlatTensorDataUInt32::add_data(uint32_t value) { + _internal_add_data(value); // @@protoc_insertion_point(field_add:viam.service.mlmodel.v1.FlatTensorDataUInt32.data) } -inline const ::google::protobuf::RepeatedField<::uint32_t>& FlatTensorDataUInt32::data() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >& +FlatTensorDataUInt32::_internal_data() const { + return data_; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >& +FlatTensorDataUInt32::data() const { // @@protoc_insertion_point(field_list:viam.service.mlmodel.v1.FlatTensorDataUInt32.data) return _internal_data(); } -inline ::google::protobuf::RepeatedField<::uint32_t>* FlatTensorDataUInt32::mutable_data() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >* +FlatTensorDataUInt32::_internal_mutable_data() { + return &data_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >* +FlatTensorDataUInt32::mutable_data() { // @@protoc_insertion_point(field_mutable_list:viam.service.mlmodel.v1.FlatTensorDataUInt32.data) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _internal_mutable_data(); } -inline const ::google::protobuf::RepeatedField<::uint32_t>& FlatTensorDataUInt32::_internal_data() - const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.data_; -} -inline ::google::protobuf::RepeatedField<::uint32_t>* FlatTensorDataUInt32::_internal_mutable_data() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.data_; -} // ------------------------------------------------------------------- @@ -5827,48 +5155,50 @@ inline ::google::protobuf::RepeatedField<::uint32_t>* FlatTensorDataUInt32::_int // repeated sfixed64 data = 1 [json_name = "data", packed = true]; inline int FlatTensorDataInt64::_internal_data_size() const { - return _internal_data().size(); + return data_.size(); } inline int FlatTensorDataInt64::data_size() const { return _internal_data_size(); } inline void FlatTensorDataInt64::clear_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.data_.Clear(); + data_.Clear(); } -inline ::int64_t FlatTensorDataInt64::data(int index) const { +inline int64_t FlatTensorDataInt64::_internal_data(int index) const { + return data_.Get(index); +} +inline int64_t FlatTensorDataInt64::data(int index) const { // @@protoc_insertion_point(field_get:viam.service.mlmodel.v1.FlatTensorDataInt64.data) - return _internal_data().Get(index); + return _internal_data(index); } -inline void FlatTensorDataInt64::set_data(int index, ::int64_t value) { - _internal_mutable_data()->Set(index, value); +inline void FlatTensorDataInt64::set_data(int index, int64_t value) { + data_.Set(index, value); // @@protoc_insertion_point(field_set:viam.service.mlmodel.v1.FlatTensorDataInt64.data) } -inline void FlatTensorDataInt64::add_data(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_data()->Add(value); +inline void FlatTensorDataInt64::_internal_add_data(int64_t value) { + data_.Add(value); +} +inline void FlatTensorDataInt64::add_data(int64_t value) { + _internal_add_data(value); // @@protoc_insertion_point(field_add:viam.service.mlmodel.v1.FlatTensorDataInt64.data) } -inline const ::google::protobuf::RepeatedField<::int64_t>& FlatTensorDataInt64::data() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >& +FlatTensorDataInt64::_internal_data() const { + return data_; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >& +FlatTensorDataInt64::data() const { // @@protoc_insertion_point(field_list:viam.service.mlmodel.v1.FlatTensorDataInt64.data) return _internal_data(); } -inline ::google::protobuf::RepeatedField<::int64_t>* FlatTensorDataInt64::mutable_data() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >* +FlatTensorDataInt64::_internal_mutable_data() { + return &data_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >* +FlatTensorDataInt64::mutable_data() { // @@protoc_insertion_point(field_mutable_list:viam.service.mlmodel.v1.FlatTensorDataInt64.data) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _internal_mutable_data(); } -inline const ::google::protobuf::RepeatedField<::int64_t>& FlatTensorDataInt64::_internal_data() - const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.data_; -} -inline ::google::protobuf::RepeatedField<::int64_t>* FlatTensorDataInt64::_internal_mutable_data() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.data_; -} // ------------------------------------------------------------------- @@ -5876,48 +5206,50 @@ inline ::google::protobuf::RepeatedField<::int64_t>* FlatTensorDataInt64::_inter // repeated fixed64 data = 1 [json_name = "data", packed = true]; inline int FlatTensorDataUInt64::_internal_data_size() const { - return _internal_data().size(); + return data_.size(); } inline int FlatTensorDataUInt64::data_size() const { return _internal_data_size(); } inline void FlatTensorDataUInt64::clear_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.data_.Clear(); + data_.Clear(); } -inline ::uint64_t FlatTensorDataUInt64::data(int index) const { +inline uint64_t FlatTensorDataUInt64::_internal_data(int index) const { + return data_.Get(index); +} +inline uint64_t FlatTensorDataUInt64::data(int index) const { // @@protoc_insertion_point(field_get:viam.service.mlmodel.v1.FlatTensorDataUInt64.data) - return _internal_data().Get(index); + return _internal_data(index); } -inline void FlatTensorDataUInt64::set_data(int index, ::uint64_t value) { - _internal_mutable_data()->Set(index, value); +inline void FlatTensorDataUInt64::set_data(int index, uint64_t value) { + data_.Set(index, value); // @@protoc_insertion_point(field_set:viam.service.mlmodel.v1.FlatTensorDataUInt64.data) } -inline void FlatTensorDataUInt64::add_data(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_data()->Add(value); +inline void FlatTensorDataUInt64::_internal_add_data(uint64_t value) { + data_.Add(value); +} +inline void FlatTensorDataUInt64::add_data(uint64_t value) { + _internal_add_data(value); // @@protoc_insertion_point(field_add:viam.service.mlmodel.v1.FlatTensorDataUInt64.data) } -inline const ::google::protobuf::RepeatedField<::uint64_t>& FlatTensorDataUInt64::data() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >& +FlatTensorDataUInt64::_internal_data() const { + return data_; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >& +FlatTensorDataUInt64::data() const { // @@protoc_insertion_point(field_list:viam.service.mlmodel.v1.FlatTensorDataUInt64.data) return _internal_data(); } -inline ::google::protobuf::RepeatedField<::uint64_t>* FlatTensorDataUInt64::mutable_data() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >* +FlatTensorDataUInt64::_internal_mutable_data() { + return &data_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >* +FlatTensorDataUInt64::mutable_data() { // @@protoc_insertion_point(field_mutable_list:viam.service.mlmodel.v1.FlatTensorDataUInt64.data) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _internal_mutable_data(); } -inline const ::google::protobuf::RepeatedField<::uint64_t>& FlatTensorDataUInt64::_internal_data() - const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.data_; -} -inline ::google::protobuf::RepeatedField<::uint64_t>* FlatTensorDataUInt64::_internal_mutable_data() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.data_; -} // ------------------------------------------------------------------- @@ -5925,48 +5257,50 @@ inline ::google::protobuf::RepeatedField<::uint64_t>* FlatTensorDataUInt64::_int // repeated float data = 1 [json_name = "data", packed = true]; inline int FlatTensorDataFloat::_internal_data_size() const { - return _internal_data().size(); + return data_.size(); } inline int FlatTensorDataFloat::data_size() const { return _internal_data_size(); } inline void FlatTensorDataFloat::clear_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.data_.Clear(); + data_.Clear(); +} +inline float FlatTensorDataFloat::_internal_data(int index) const { + return data_.Get(index); } inline float FlatTensorDataFloat::data(int index) const { // @@protoc_insertion_point(field_get:viam.service.mlmodel.v1.FlatTensorDataFloat.data) - return _internal_data().Get(index); + return _internal_data(index); } inline void FlatTensorDataFloat::set_data(int index, float value) { - _internal_mutable_data()->Set(index, value); + data_.Set(index, value); // @@protoc_insertion_point(field_set:viam.service.mlmodel.v1.FlatTensorDataFloat.data) } +inline void FlatTensorDataFloat::_internal_add_data(float value) { + data_.Add(value); +} inline void FlatTensorDataFloat::add_data(float value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_data()->Add(value); + _internal_add_data(value); // @@protoc_insertion_point(field_add:viam.service.mlmodel.v1.FlatTensorDataFloat.data) } -inline const ::google::protobuf::RepeatedField& FlatTensorDataFloat::data() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >& +FlatTensorDataFloat::_internal_data() const { + return data_; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >& +FlatTensorDataFloat::data() const { // @@protoc_insertion_point(field_list:viam.service.mlmodel.v1.FlatTensorDataFloat.data) return _internal_data(); } -inline ::google::protobuf::RepeatedField* FlatTensorDataFloat::mutable_data() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >* +FlatTensorDataFloat::_internal_mutable_data() { + return &data_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >* +FlatTensorDataFloat::mutable_data() { // @@protoc_insertion_point(field_mutable_list:viam.service.mlmodel.v1.FlatTensorDataFloat.data) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _internal_mutable_data(); } -inline const ::google::protobuf::RepeatedField& FlatTensorDataFloat::_internal_data() - const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.data_; -} -inline ::google::protobuf::RepeatedField* FlatTensorDataFloat::_internal_mutable_data() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.data_; -} // ------------------------------------------------------------------- @@ -5974,48 +5308,50 @@ inline ::google::protobuf::RepeatedField* FlatTensorDataFloat::_internal_ // repeated double data = 1 [json_name = "data", packed = true]; inline int FlatTensorDataDouble::_internal_data_size() const { - return _internal_data().size(); + return data_.size(); } inline int FlatTensorDataDouble::data_size() const { return _internal_data_size(); } inline void FlatTensorDataDouble::clear_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.data_.Clear(); + data_.Clear(); +} +inline double FlatTensorDataDouble::_internal_data(int index) const { + return data_.Get(index); } inline double FlatTensorDataDouble::data(int index) const { // @@protoc_insertion_point(field_get:viam.service.mlmodel.v1.FlatTensorDataDouble.data) - return _internal_data().Get(index); + return _internal_data(index); } inline void FlatTensorDataDouble::set_data(int index, double value) { - _internal_mutable_data()->Set(index, value); + data_.Set(index, value); // @@protoc_insertion_point(field_set:viam.service.mlmodel.v1.FlatTensorDataDouble.data) } +inline void FlatTensorDataDouble::_internal_add_data(double value) { + data_.Add(value); +} inline void FlatTensorDataDouble::add_data(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_data()->Add(value); + _internal_add_data(value); // @@protoc_insertion_point(field_add:viam.service.mlmodel.v1.FlatTensorDataDouble.data) } -inline const ::google::protobuf::RepeatedField& FlatTensorDataDouble::data() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& +FlatTensorDataDouble::_internal_data() const { + return data_; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& +FlatTensorDataDouble::data() const { // @@protoc_insertion_point(field_list:viam.service.mlmodel.v1.FlatTensorDataDouble.data) return _internal_data(); } -inline ::google::protobuf::RepeatedField* FlatTensorDataDouble::mutable_data() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* +FlatTensorDataDouble::_internal_mutable_data() { + return &data_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* +FlatTensorDataDouble::mutable_data() { // @@protoc_insertion_point(field_mutable_list:viam.service.mlmodel.v1.FlatTensorDataDouble.data) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _internal_mutable_data(); } -inline const ::google::protobuf::RepeatedField& FlatTensorDataDouble::_internal_data() - const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.data_; -} -inline ::google::protobuf::RepeatedField* FlatTensorDataDouble::_internal_mutable_data() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.data_; -} // ------------------------------------------------------------------- @@ -6023,804 +5359,786 @@ inline ::google::protobuf::RepeatedField* FlatTensorDataDouble::_interna // repeated fixed64 shape = 1 [json_name = "shape"]; inline int FlatTensor::_internal_shape_size() const { - return _internal_shape().size(); + return shape_.size(); } inline int FlatTensor::shape_size() const { return _internal_shape_size(); } inline void FlatTensor::clear_shape() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.shape_.Clear(); + shape_.Clear(); } -inline ::uint64_t FlatTensor::shape(int index) const { +inline uint64_t FlatTensor::_internal_shape(int index) const { + return shape_.Get(index); +} +inline uint64_t FlatTensor::shape(int index) const { // @@protoc_insertion_point(field_get:viam.service.mlmodel.v1.FlatTensor.shape) - return _internal_shape().Get(index); + return _internal_shape(index); } -inline void FlatTensor::set_shape(int index, ::uint64_t value) { - _internal_mutable_shape()->Set(index, value); +inline void FlatTensor::set_shape(int index, uint64_t value) { + shape_.Set(index, value); // @@protoc_insertion_point(field_set:viam.service.mlmodel.v1.FlatTensor.shape) } -inline void FlatTensor::add_shape(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_shape()->Add(value); +inline void FlatTensor::_internal_add_shape(uint64_t value) { + shape_.Add(value); +} +inline void FlatTensor::add_shape(uint64_t value) { + _internal_add_shape(value); // @@protoc_insertion_point(field_add:viam.service.mlmodel.v1.FlatTensor.shape) } -inline const ::google::protobuf::RepeatedField<::uint64_t>& FlatTensor::shape() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >& +FlatTensor::_internal_shape() const { + return shape_; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >& +FlatTensor::shape() const { // @@protoc_insertion_point(field_list:viam.service.mlmodel.v1.FlatTensor.shape) return _internal_shape(); } -inline ::google::protobuf::RepeatedField<::uint64_t>* FlatTensor::mutable_shape() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >* +FlatTensor::_internal_mutable_shape() { + return &shape_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >* +FlatTensor::mutable_shape() { // @@protoc_insertion_point(field_mutable_list:viam.service.mlmodel.v1.FlatTensor.shape) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _internal_mutable_shape(); } -inline const ::google::protobuf::RepeatedField<::uint64_t>& FlatTensor::_internal_shape() - const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.shape_; -} -inline ::google::protobuf::RepeatedField<::uint64_t>* FlatTensor::_internal_mutable_shape() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.shape_; -} // .viam.service.mlmodel.v1.FlatTensorDataInt8 int8_tensor = 2 [json_name = "int8Tensor"]; -inline bool FlatTensor::has_int8_tensor() const { - return tensor_case() == kInt8Tensor; -} inline bool FlatTensor::_internal_has_int8_tensor() const { return tensor_case() == kInt8Tensor; } +inline bool FlatTensor::has_int8_tensor() const { + return _internal_has_int8_tensor(); +} inline void FlatTensor::set_has_int8_tensor() { - _impl_._oneof_case_[0] = kInt8Tensor; + _oneof_case_[0] = kInt8Tensor; } inline void FlatTensor::clear_int8_tensor() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (tensor_case() == kInt8Tensor) { - if (GetArena() == nullptr) { - delete _impl_.tensor_.int8_tensor_; + if (_internal_has_int8_tensor()) { + if (GetArenaForAllocation() == nullptr) { + delete tensor_.int8_tensor_; } clear_has_tensor(); } } inline ::viam::service::mlmodel::v1::FlatTensorDataInt8* FlatTensor::release_int8_tensor() { // @@protoc_insertion_point(field_release:viam.service.mlmodel.v1.FlatTensor.int8_tensor) - if (tensor_case() == kInt8Tensor) { + if (_internal_has_int8_tensor()) { clear_has_tensor(); - auto* temp = _impl_.tensor_.int8_tensor_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::viam::service::mlmodel::v1::FlatTensorDataInt8* temp = tensor_.int8_tensor_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.tensor_.int8_tensor_ = nullptr; + tensor_.int8_tensor_ = nullptr; return temp; } else { return nullptr; } } inline const ::viam::service::mlmodel::v1::FlatTensorDataInt8& FlatTensor::_internal_int8_tensor() const { - return tensor_case() == kInt8Tensor ? *_impl_.tensor_.int8_tensor_ : reinterpret_cast<::viam::service::mlmodel::v1::FlatTensorDataInt8&>(::viam::service::mlmodel::v1::_FlatTensorDataInt8_default_instance_); + return _internal_has_int8_tensor() + ? *tensor_.int8_tensor_ + : reinterpret_cast< ::viam::service::mlmodel::v1::FlatTensorDataInt8&>(::viam::service::mlmodel::v1::_FlatTensorDataInt8_default_instance_); } -inline const ::viam::service::mlmodel::v1::FlatTensorDataInt8& FlatTensor::int8_tensor() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::service::mlmodel::v1::FlatTensorDataInt8& FlatTensor::int8_tensor() const { // @@protoc_insertion_point(field_get:viam.service.mlmodel.v1.FlatTensor.int8_tensor) return _internal_int8_tensor(); } inline ::viam::service::mlmodel::v1::FlatTensorDataInt8* FlatTensor::unsafe_arena_release_int8_tensor() { // @@protoc_insertion_point(field_unsafe_arena_release:viam.service.mlmodel.v1.FlatTensor.int8_tensor) - if (tensor_case() == kInt8Tensor) { + if (_internal_has_int8_tensor()) { clear_has_tensor(); - auto* temp = _impl_.tensor_.int8_tensor_; - _impl_.tensor_.int8_tensor_ = nullptr; + ::viam::service::mlmodel::v1::FlatTensorDataInt8* temp = tensor_.int8_tensor_; + tensor_.int8_tensor_ = nullptr; return temp; } else { return nullptr; } } -inline void FlatTensor::unsafe_arena_set_allocated_int8_tensor(::viam::service::mlmodel::v1::FlatTensorDataInt8* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void FlatTensor::unsafe_arena_set_allocated_int8_tensor(::viam::service::mlmodel::v1::FlatTensorDataInt8* int8_tensor) { clear_tensor(); - if (value) { + if (int8_tensor) { set_has_int8_tensor(); - _impl_.tensor_.int8_tensor_ = value; + tensor_.int8_tensor_ = int8_tensor; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.mlmodel.v1.FlatTensor.int8_tensor) } inline ::viam::service::mlmodel::v1::FlatTensorDataInt8* FlatTensor::_internal_mutable_int8_tensor() { - if (tensor_case() != kInt8Tensor) { + if (!_internal_has_int8_tensor()) { clear_tensor(); set_has_int8_tensor(); - _impl_.tensor_.int8_tensor_ = CreateMaybeMessage<::viam::service::mlmodel::v1::FlatTensorDataInt8>(GetArena()); + tensor_.int8_tensor_ = CreateMaybeMessage< ::viam::service::mlmodel::v1::FlatTensorDataInt8 >(GetArenaForAllocation()); } - return _impl_.tensor_.int8_tensor_; + return tensor_.int8_tensor_; } -inline ::viam::service::mlmodel::v1::FlatTensorDataInt8* FlatTensor::mutable_int8_tensor() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::service::mlmodel::v1::FlatTensorDataInt8* FlatTensor::mutable_int8_tensor() { ::viam::service::mlmodel::v1::FlatTensorDataInt8* _msg = _internal_mutable_int8_tensor(); // @@protoc_insertion_point(field_mutable:viam.service.mlmodel.v1.FlatTensor.int8_tensor) return _msg; } // .viam.service.mlmodel.v1.FlatTensorDataUInt8 uint8_tensor = 3 [json_name = "uint8Tensor"]; -inline bool FlatTensor::has_uint8_tensor() const { - return tensor_case() == kUint8Tensor; -} inline bool FlatTensor::_internal_has_uint8_tensor() const { return tensor_case() == kUint8Tensor; } +inline bool FlatTensor::has_uint8_tensor() const { + return _internal_has_uint8_tensor(); +} inline void FlatTensor::set_has_uint8_tensor() { - _impl_._oneof_case_[0] = kUint8Tensor; + _oneof_case_[0] = kUint8Tensor; } inline void FlatTensor::clear_uint8_tensor() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (tensor_case() == kUint8Tensor) { - if (GetArena() == nullptr) { - delete _impl_.tensor_.uint8_tensor_; + if (_internal_has_uint8_tensor()) { + if (GetArenaForAllocation() == nullptr) { + delete tensor_.uint8_tensor_; } clear_has_tensor(); } } inline ::viam::service::mlmodel::v1::FlatTensorDataUInt8* FlatTensor::release_uint8_tensor() { // @@protoc_insertion_point(field_release:viam.service.mlmodel.v1.FlatTensor.uint8_tensor) - if (tensor_case() == kUint8Tensor) { + if (_internal_has_uint8_tensor()) { clear_has_tensor(); - auto* temp = _impl_.tensor_.uint8_tensor_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::viam::service::mlmodel::v1::FlatTensorDataUInt8* temp = tensor_.uint8_tensor_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.tensor_.uint8_tensor_ = nullptr; + tensor_.uint8_tensor_ = nullptr; return temp; } else { return nullptr; } } inline const ::viam::service::mlmodel::v1::FlatTensorDataUInt8& FlatTensor::_internal_uint8_tensor() const { - return tensor_case() == kUint8Tensor ? *_impl_.tensor_.uint8_tensor_ : reinterpret_cast<::viam::service::mlmodel::v1::FlatTensorDataUInt8&>(::viam::service::mlmodel::v1::_FlatTensorDataUInt8_default_instance_); + return _internal_has_uint8_tensor() + ? *tensor_.uint8_tensor_ + : reinterpret_cast< ::viam::service::mlmodel::v1::FlatTensorDataUInt8&>(::viam::service::mlmodel::v1::_FlatTensorDataUInt8_default_instance_); } -inline const ::viam::service::mlmodel::v1::FlatTensorDataUInt8& FlatTensor::uint8_tensor() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::service::mlmodel::v1::FlatTensorDataUInt8& FlatTensor::uint8_tensor() const { // @@protoc_insertion_point(field_get:viam.service.mlmodel.v1.FlatTensor.uint8_tensor) return _internal_uint8_tensor(); } inline ::viam::service::mlmodel::v1::FlatTensorDataUInt8* FlatTensor::unsafe_arena_release_uint8_tensor() { // @@protoc_insertion_point(field_unsafe_arena_release:viam.service.mlmodel.v1.FlatTensor.uint8_tensor) - if (tensor_case() == kUint8Tensor) { + if (_internal_has_uint8_tensor()) { clear_has_tensor(); - auto* temp = _impl_.tensor_.uint8_tensor_; - _impl_.tensor_.uint8_tensor_ = nullptr; + ::viam::service::mlmodel::v1::FlatTensorDataUInt8* temp = tensor_.uint8_tensor_; + tensor_.uint8_tensor_ = nullptr; return temp; } else { return nullptr; } } -inline void FlatTensor::unsafe_arena_set_allocated_uint8_tensor(::viam::service::mlmodel::v1::FlatTensorDataUInt8* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void FlatTensor::unsafe_arena_set_allocated_uint8_tensor(::viam::service::mlmodel::v1::FlatTensorDataUInt8* uint8_tensor) { clear_tensor(); - if (value) { + if (uint8_tensor) { set_has_uint8_tensor(); - _impl_.tensor_.uint8_tensor_ = value; + tensor_.uint8_tensor_ = uint8_tensor; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.mlmodel.v1.FlatTensor.uint8_tensor) } inline ::viam::service::mlmodel::v1::FlatTensorDataUInt8* FlatTensor::_internal_mutable_uint8_tensor() { - if (tensor_case() != kUint8Tensor) { + if (!_internal_has_uint8_tensor()) { clear_tensor(); set_has_uint8_tensor(); - _impl_.tensor_.uint8_tensor_ = CreateMaybeMessage<::viam::service::mlmodel::v1::FlatTensorDataUInt8>(GetArena()); + tensor_.uint8_tensor_ = CreateMaybeMessage< ::viam::service::mlmodel::v1::FlatTensorDataUInt8 >(GetArenaForAllocation()); } - return _impl_.tensor_.uint8_tensor_; + return tensor_.uint8_tensor_; } -inline ::viam::service::mlmodel::v1::FlatTensorDataUInt8* FlatTensor::mutable_uint8_tensor() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::service::mlmodel::v1::FlatTensorDataUInt8* FlatTensor::mutable_uint8_tensor() { ::viam::service::mlmodel::v1::FlatTensorDataUInt8* _msg = _internal_mutable_uint8_tensor(); // @@protoc_insertion_point(field_mutable:viam.service.mlmodel.v1.FlatTensor.uint8_tensor) return _msg; } // .viam.service.mlmodel.v1.FlatTensorDataInt16 int16_tensor = 4 [json_name = "int16Tensor"]; -inline bool FlatTensor::has_int16_tensor() const { - return tensor_case() == kInt16Tensor; -} inline bool FlatTensor::_internal_has_int16_tensor() const { return tensor_case() == kInt16Tensor; } +inline bool FlatTensor::has_int16_tensor() const { + return _internal_has_int16_tensor(); +} inline void FlatTensor::set_has_int16_tensor() { - _impl_._oneof_case_[0] = kInt16Tensor; + _oneof_case_[0] = kInt16Tensor; } inline void FlatTensor::clear_int16_tensor() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (tensor_case() == kInt16Tensor) { - if (GetArena() == nullptr) { - delete _impl_.tensor_.int16_tensor_; + if (_internal_has_int16_tensor()) { + if (GetArenaForAllocation() == nullptr) { + delete tensor_.int16_tensor_; } clear_has_tensor(); } } inline ::viam::service::mlmodel::v1::FlatTensorDataInt16* FlatTensor::release_int16_tensor() { // @@protoc_insertion_point(field_release:viam.service.mlmodel.v1.FlatTensor.int16_tensor) - if (tensor_case() == kInt16Tensor) { + if (_internal_has_int16_tensor()) { clear_has_tensor(); - auto* temp = _impl_.tensor_.int16_tensor_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::viam::service::mlmodel::v1::FlatTensorDataInt16* temp = tensor_.int16_tensor_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.tensor_.int16_tensor_ = nullptr; + tensor_.int16_tensor_ = nullptr; return temp; } else { return nullptr; } } inline const ::viam::service::mlmodel::v1::FlatTensorDataInt16& FlatTensor::_internal_int16_tensor() const { - return tensor_case() == kInt16Tensor ? *_impl_.tensor_.int16_tensor_ : reinterpret_cast<::viam::service::mlmodel::v1::FlatTensorDataInt16&>(::viam::service::mlmodel::v1::_FlatTensorDataInt16_default_instance_); + return _internal_has_int16_tensor() + ? *tensor_.int16_tensor_ + : reinterpret_cast< ::viam::service::mlmodel::v1::FlatTensorDataInt16&>(::viam::service::mlmodel::v1::_FlatTensorDataInt16_default_instance_); } -inline const ::viam::service::mlmodel::v1::FlatTensorDataInt16& FlatTensor::int16_tensor() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::service::mlmodel::v1::FlatTensorDataInt16& FlatTensor::int16_tensor() const { // @@protoc_insertion_point(field_get:viam.service.mlmodel.v1.FlatTensor.int16_tensor) return _internal_int16_tensor(); } inline ::viam::service::mlmodel::v1::FlatTensorDataInt16* FlatTensor::unsafe_arena_release_int16_tensor() { // @@protoc_insertion_point(field_unsafe_arena_release:viam.service.mlmodel.v1.FlatTensor.int16_tensor) - if (tensor_case() == kInt16Tensor) { + if (_internal_has_int16_tensor()) { clear_has_tensor(); - auto* temp = _impl_.tensor_.int16_tensor_; - _impl_.tensor_.int16_tensor_ = nullptr; + ::viam::service::mlmodel::v1::FlatTensorDataInt16* temp = tensor_.int16_tensor_; + tensor_.int16_tensor_ = nullptr; return temp; } else { return nullptr; } } -inline void FlatTensor::unsafe_arena_set_allocated_int16_tensor(::viam::service::mlmodel::v1::FlatTensorDataInt16* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void FlatTensor::unsafe_arena_set_allocated_int16_tensor(::viam::service::mlmodel::v1::FlatTensorDataInt16* int16_tensor) { clear_tensor(); - if (value) { + if (int16_tensor) { set_has_int16_tensor(); - _impl_.tensor_.int16_tensor_ = value; + tensor_.int16_tensor_ = int16_tensor; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.mlmodel.v1.FlatTensor.int16_tensor) } inline ::viam::service::mlmodel::v1::FlatTensorDataInt16* FlatTensor::_internal_mutable_int16_tensor() { - if (tensor_case() != kInt16Tensor) { + if (!_internal_has_int16_tensor()) { clear_tensor(); set_has_int16_tensor(); - _impl_.tensor_.int16_tensor_ = CreateMaybeMessage<::viam::service::mlmodel::v1::FlatTensorDataInt16>(GetArena()); + tensor_.int16_tensor_ = CreateMaybeMessage< ::viam::service::mlmodel::v1::FlatTensorDataInt16 >(GetArenaForAllocation()); } - return _impl_.tensor_.int16_tensor_; + return tensor_.int16_tensor_; } -inline ::viam::service::mlmodel::v1::FlatTensorDataInt16* FlatTensor::mutable_int16_tensor() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::service::mlmodel::v1::FlatTensorDataInt16* FlatTensor::mutable_int16_tensor() { ::viam::service::mlmodel::v1::FlatTensorDataInt16* _msg = _internal_mutable_int16_tensor(); // @@protoc_insertion_point(field_mutable:viam.service.mlmodel.v1.FlatTensor.int16_tensor) return _msg; } // .viam.service.mlmodel.v1.FlatTensorDataUInt16 uint16_tensor = 5 [json_name = "uint16Tensor"]; -inline bool FlatTensor::has_uint16_tensor() const { - return tensor_case() == kUint16Tensor; -} inline bool FlatTensor::_internal_has_uint16_tensor() const { return tensor_case() == kUint16Tensor; } +inline bool FlatTensor::has_uint16_tensor() const { + return _internal_has_uint16_tensor(); +} inline void FlatTensor::set_has_uint16_tensor() { - _impl_._oneof_case_[0] = kUint16Tensor; + _oneof_case_[0] = kUint16Tensor; } inline void FlatTensor::clear_uint16_tensor() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (tensor_case() == kUint16Tensor) { - if (GetArena() == nullptr) { - delete _impl_.tensor_.uint16_tensor_; + if (_internal_has_uint16_tensor()) { + if (GetArenaForAllocation() == nullptr) { + delete tensor_.uint16_tensor_; } clear_has_tensor(); } } inline ::viam::service::mlmodel::v1::FlatTensorDataUInt16* FlatTensor::release_uint16_tensor() { // @@protoc_insertion_point(field_release:viam.service.mlmodel.v1.FlatTensor.uint16_tensor) - if (tensor_case() == kUint16Tensor) { + if (_internal_has_uint16_tensor()) { clear_has_tensor(); - auto* temp = _impl_.tensor_.uint16_tensor_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::viam::service::mlmodel::v1::FlatTensorDataUInt16* temp = tensor_.uint16_tensor_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.tensor_.uint16_tensor_ = nullptr; + tensor_.uint16_tensor_ = nullptr; return temp; } else { return nullptr; } } inline const ::viam::service::mlmodel::v1::FlatTensorDataUInt16& FlatTensor::_internal_uint16_tensor() const { - return tensor_case() == kUint16Tensor ? *_impl_.tensor_.uint16_tensor_ : reinterpret_cast<::viam::service::mlmodel::v1::FlatTensorDataUInt16&>(::viam::service::mlmodel::v1::_FlatTensorDataUInt16_default_instance_); + return _internal_has_uint16_tensor() + ? *tensor_.uint16_tensor_ + : reinterpret_cast< ::viam::service::mlmodel::v1::FlatTensorDataUInt16&>(::viam::service::mlmodel::v1::_FlatTensorDataUInt16_default_instance_); } -inline const ::viam::service::mlmodel::v1::FlatTensorDataUInt16& FlatTensor::uint16_tensor() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::service::mlmodel::v1::FlatTensorDataUInt16& FlatTensor::uint16_tensor() const { // @@protoc_insertion_point(field_get:viam.service.mlmodel.v1.FlatTensor.uint16_tensor) return _internal_uint16_tensor(); } inline ::viam::service::mlmodel::v1::FlatTensorDataUInt16* FlatTensor::unsafe_arena_release_uint16_tensor() { // @@protoc_insertion_point(field_unsafe_arena_release:viam.service.mlmodel.v1.FlatTensor.uint16_tensor) - if (tensor_case() == kUint16Tensor) { + if (_internal_has_uint16_tensor()) { clear_has_tensor(); - auto* temp = _impl_.tensor_.uint16_tensor_; - _impl_.tensor_.uint16_tensor_ = nullptr; + ::viam::service::mlmodel::v1::FlatTensorDataUInt16* temp = tensor_.uint16_tensor_; + tensor_.uint16_tensor_ = nullptr; return temp; } else { return nullptr; } } -inline void FlatTensor::unsafe_arena_set_allocated_uint16_tensor(::viam::service::mlmodel::v1::FlatTensorDataUInt16* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void FlatTensor::unsafe_arena_set_allocated_uint16_tensor(::viam::service::mlmodel::v1::FlatTensorDataUInt16* uint16_tensor) { clear_tensor(); - if (value) { + if (uint16_tensor) { set_has_uint16_tensor(); - _impl_.tensor_.uint16_tensor_ = value; + tensor_.uint16_tensor_ = uint16_tensor; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.mlmodel.v1.FlatTensor.uint16_tensor) } inline ::viam::service::mlmodel::v1::FlatTensorDataUInt16* FlatTensor::_internal_mutable_uint16_tensor() { - if (tensor_case() != kUint16Tensor) { + if (!_internal_has_uint16_tensor()) { clear_tensor(); set_has_uint16_tensor(); - _impl_.tensor_.uint16_tensor_ = CreateMaybeMessage<::viam::service::mlmodel::v1::FlatTensorDataUInt16>(GetArena()); + tensor_.uint16_tensor_ = CreateMaybeMessage< ::viam::service::mlmodel::v1::FlatTensorDataUInt16 >(GetArenaForAllocation()); } - return _impl_.tensor_.uint16_tensor_; + return tensor_.uint16_tensor_; } -inline ::viam::service::mlmodel::v1::FlatTensorDataUInt16* FlatTensor::mutable_uint16_tensor() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::service::mlmodel::v1::FlatTensorDataUInt16* FlatTensor::mutable_uint16_tensor() { ::viam::service::mlmodel::v1::FlatTensorDataUInt16* _msg = _internal_mutable_uint16_tensor(); // @@protoc_insertion_point(field_mutable:viam.service.mlmodel.v1.FlatTensor.uint16_tensor) return _msg; } // .viam.service.mlmodel.v1.FlatTensorDataInt32 int32_tensor = 6 [json_name = "int32Tensor"]; -inline bool FlatTensor::has_int32_tensor() const { - return tensor_case() == kInt32Tensor; -} inline bool FlatTensor::_internal_has_int32_tensor() const { return tensor_case() == kInt32Tensor; } +inline bool FlatTensor::has_int32_tensor() const { + return _internal_has_int32_tensor(); +} inline void FlatTensor::set_has_int32_tensor() { - _impl_._oneof_case_[0] = kInt32Tensor; + _oneof_case_[0] = kInt32Tensor; } inline void FlatTensor::clear_int32_tensor() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (tensor_case() == kInt32Tensor) { - if (GetArena() == nullptr) { - delete _impl_.tensor_.int32_tensor_; + if (_internal_has_int32_tensor()) { + if (GetArenaForAllocation() == nullptr) { + delete tensor_.int32_tensor_; } clear_has_tensor(); } } inline ::viam::service::mlmodel::v1::FlatTensorDataInt32* FlatTensor::release_int32_tensor() { // @@protoc_insertion_point(field_release:viam.service.mlmodel.v1.FlatTensor.int32_tensor) - if (tensor_case() == kInt32Tensor) { + if (_internal_has_int32_tensor()) { clear_has_tensor(); - auto* temp = _impl_.tensor_.int32_tensor_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::viam::service::mlmodel::v1::FlatTensorDataInt32* temp = tensor_.int32_tensor_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.tensor_.int32_tensor_ = nullptr; + tensor_.int32_tensor_ = nullptr; return temp; } else { return nullptr; } } inline const ::viam::service::mlmodel::v1::FlatTensorDataInt32& FlatTensor::_internal_int32_tensor() const { - return tensor_case() == kInt32Tensor ? *_impl_.tensor_.int32_tensor_ : reinterpret_cast<::viam::service::mlmodel::v1::FlatTensorDataInt32&>(::viam::service::mlmodel::v1::_FlatTensorDataInt32_default_instance_); + return _internal_has_int32_tensor() + ? *tensor_.int32_tensor_ + : reinterpret_cast< ::viam::service::mlmodel::v1::FlatTensorDataInt32&>(::viam::service::mlmodel::v1::_FlatTensorDataInt32_default_instance_); } -inline const ::viam::service::mlmodel::v1::FlatTensorDataInt32& FlatTensor::int32_tensor() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::service::mlmodel::v1::FlatTensorDataInt32& FlatTensor::int32_tensor() const { // @@protoc_insertion_point(field_get:viam.service.mlmodel.v1.FlatTensor.int32_tensor) return _internal_int32_tensor(); } inline ::viam::service::mlmodel::v1::FlatTensorDataInt32* FlatTensor::unsafe_arena_release_int32_tensor() { // @@protoc_insertion_point(field_unsafe_arena_release:viam.service.mlmodel.v1.FlatTensor.int32_tensor) - if (tensor_case() == kInt32Tensor) { + if (_internal_has_int32_tensor()) { clear_has_tensor(); - auto* temp = _impl_.tensor_.int32_tensor_; - _impl_.tensor_.int32_tensor_ = nullptr; + ::viam::service::mlmodel::v1::FlatTensorDataInt32* temp = tensor_.int32_tensor_; + tensor_.int32_tensor_ = nullptr; return temp; } else { return nullptr; } } -inline void FlatTensor::unsafe_arena_set_allocated_int32_tensor(::viam::service::mlmodel::v1::FlatTensorDataInt32* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void FlatTensor::unsafe_arena_set_allocated_int32_tensor(::viam::service::mlmodel::v1::FlatTensorDataInt32* int32_tensor) { clear_tensor(); - if (value) { + if (int32_tensor) { set_has_int32_tensor(); - _impl_.tensor_.int32_tensor_ = value; + tensor_.int32_tensor_ = int32_tensor; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.mlmodel.v1.FlatTensor.int32_tensor) } inline ::viam::service::mlmodel::v1::FlatTensorDataInt32* FlatTensor::_internal_mutable_int32_tensor() { - if (tensor_case() != kInt32Tensor) { + if (!_internal_has_int32_tensor()) { clear_tensor(); set_has_int32_tensor(); - _impl_.tensor_.int32_tensor_ = CreateMaybeMessage<::viam::service::mlmodel::v1::FlatTensorDataInt32>(GetArena()); + tensor_.int32_tensor_ = CreateMaybeMessage< ::viam::service::mlmodel::v1::FlatTensorDataInt32 >(GetArenaForAllocation()); } - return _impl_.tensor_.int32_tensor_; + return tensor_.int32_tensor_; } -inline ::viam::service::mlmodel::v1::FlatTensorDataInt32* FlatTensor::mutable_int32_tensor() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::service::mlmodel::v1::FlatTensorDataInt32* FlatTensor::mutable_int32_tensor() { ::viam::service::mlmodel::v1::FlatTensorDataInt32* _msg = _internal_mutable_int32_tensor(); // @@protoc_insertion_point(field_mutable:viam.service.mlmodel.v1.FlatTensor.int32_tensor) return _msg; } // .viam.service.mlmodel.v1.FlatTensorDataUInt32 uint32_tensor = 7 [json_name = "uint32Tensor"]; -inline bool FlatTensor::has_uint32_tensor() const { - return tensor_case() == kUint32Tensor; -} inline bool FlatTensor::_internal_has_uint32_tensor() const { return tensor_case() == kUint32Tensor; } +inline bool FlatTensor::has_uint32_tensor() const { + return _internal_has_uint32_tensor(); +} inline void FlatTensor::set_has_uint32_tensor() { - _impl_._oneof_case_[0] = kUint32Tensor; + _oneof_case_[0] = kUint32Tensor; } inline void FlatTensor::clear_uint32_tensor() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (tensor_case() == kUint32Tensor) { - if (GetArena() == nullptr) { - delete _impl_.tensor_.uint32_tensor_; + if (_internal_has_uint32_tensor()) { + if (GetArenaForAllocation() == nullptr) { + delete tensor_.uint32_tensor_; } clear_has_tensor(); } } inline ::viam::service::mlmodel::v1::FlatTensorDataUInt32* FlatTensor::release_uint32_tensor() { // @@protoc_insertion_point(field_release:viam.service.mlmodel.v1.FlatTensor.uint32_tensor) - if (tensor_case() == kUint32Tensor) { + if (_internal_has_uint32_tensor()) { clear_has_tensor(); - auto* temp = _impl_.tensor_.uint32_tensor_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::viam::service::mlmodel::v1::FlatTensorDataUInt32* temp = tensor_.uint32_tensor_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.tensor_.uint32_tensor_ = nullptr; + tensor_.uint32_tensor_ = nullptr; return temp; } else { return nullptr; } } inline const ::viam::service::mlmodel::v1::FlatTensorDataUInt32& FlatTensor::_internal_uint32_tensor() const { - return tensor_case() == kUint32Tensor ? *_impl_.tensor_.uint32_tensor_ : reinterpret_cast<::viam::service::mlmodel::v1::FlatTensorDataUInt32&>(::viam::service::mlmodel::v1::_FlatTensorDataUInt32_default_instance_); + return _internal_has_uint32_tensor() + ? *tensor_.uint32_tensor_ + : reinterpret_cast< ::viam::service::mlmodel::v1::FlatTensorDataUInt32&>(::viam::service::mlmodel::v1::_FlatTensorDataUInt32_default_instance_); } -inline const ::viam::service::mlmodel::v1::FlatTensorDataUInt32& FlatTensor::uint32_tensor() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::service::mlmodel::v1::FlatTensorDataUInt32& FlatTensor::uint32_tensor() const { // @@protoc_insertion_point(field_get:viam.service.mlmodel.v1.FlatTensor.uint32_tensor) return _internal_uint32_tensor(); } inline ::viam::service::mlmodel::v1::FlatTensorDataUInt32* FlatTensor::unsafe_arena_release_uint32_tensor() { // @@protoc_insertion_point(field_unsafe_arena_release:viam.service.mlmodel.v1.FlatTensor.uint32_tensor) - if (tensor_case() == kUint32Tensor) { + if (_internal_has_uint32_tensor()) { clear_has_tensor(); - auto* temp = _impl_.tensor_.uint32_tensor_; - _impl_.tensor_.uint32_tensor_ = nullptr; + ::viam::service::mlmodel::v1::FlatTensorDataUInt32* temp = tensor_.uint32_tensor_; + tensor_.uint32_tensor_ = nullptr; return temp; } else { return nullptr; } } -inline void FlatTensor::unsafe_arena_set_allocated_uint32_tensor(::viam::service::mlmodel::v1::FlatTensorDataUInt32* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void FlatTensor::unsafe_arena_set_allocated_uint32_tensor(::viam::service::mlmodel::v1::FlatTensorDataUInt32* uint32_tensor) { clear_tensor(); - if (value) { + if (uint32_tensor) { set_has_uint32_tensor(); - _impl_.tensor_.uint32_tensor_ = value; + tensor_.uint32_tensor_ = uint32_tensor; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.mlmodel.v1.FlatTensor.uint32_tensor) } inline ::viam::service::mlmodel::v1::FlatTensorDataUInt32* FlatTensor::_internal_mutable_uint32_tensor() { - if (tensor_case() != kUint32Tensor) { + if (!_internal_has_uint32_tensor()) { clear_tensor(); set_has_uint32_tensor(); - _impl_.tensor_.uint32_tensor_ = CreateMaybeMessage<::viam::service::mlmodel::v1::FlatTensorDataUInt32>(GetArena()); + tensor_.uint32_tensor_ = CreateMaybeMessage< ::viam::service::mlmodel::v1::FlatTensorDataUInt32 >(GetArenaForAllocation()); } - return _impl_.tensor_.uint32_tensor_; + return tensor_.uint32_tensor_; } -inline ::viam::service::mlmodel::v1::FlatTensorDataUInt32* FlatTensor::mutable_uint32_tensor() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::service::mlmodel::v1::FlatTensorDataUInt32* FlatTensor::mutable_uint32_tensor() { ::viam::service::mlmodel::v1::FlatTensorDataUInt32* _msg = _internal_mutable_uint32_tensor(); // @@protoc_insertion_point(field_mutable:viam.service.mlmodel.v1.FlatTensor.uint32_tensor) return _msg; } // .viam.service.mlmodel.v1.FlatTensorDataInt64 int64_tensor = 8 [json_name = "int64Tensor"]; -inline bool FlatTensor::has_int64_tensor() const { - return tensor_case() == kInt64Tensor; -} inline bool FlatTensor::_internal_has_int64_tensor() const { return tensor_case() == kInt64Tensor; } +inline bool FlatTensor::has_int64_tensor() const { + return _internal_has_int64_tensor(); +} inline void FlatTensor::set_has_int64_tensor() { - _impl_._oneof_case_[0] = kInt64Tensor; + _oneof_case_[0] = kInt64Tensor; } inline void FlatTensor::clear_int64_tensor() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (tensor_case() == kInt64Tensor) { - if (GetArena() == nullptr) { - delete _impl_.tensor_.int64_tensor_; + if (_internal_has_int64_tensor()) { + if (GetArenaForAllocation() == nullptr) { + delete tensor_.int64_tensor_; } clear_has_tensor(); } } inline ::viam::service::mlmodel::v1::FlatTensorDataInt64* FlatTensor::release_int64_tensor() { // @@protoc_insertion_point(field_release:viam.service.mlmodel.v1.FlatTensor.int64_tensor) - if (tensor_case() == kInt64Tensor) { + if (_internal_has_int64_tensor()) { clear_has_tensor(); - auto* temp = _impl_.tensor_.int64_tensor_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::viam::service::mlmodel::v1::FlatTensorDataInt64* temp = tensor_.int64_tensor_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.tensor_.int64_tensor_ = nullptr; + tensor_.int64_tensor_ = nullptr; return temp; } else { return nullptr; } } inline const ::viam::service::mlmodel::v1::FlatTensorDataInt64& FlatTensor::_internal_int64_tensor() const { - return tensor_case() == kInt64Tensor ? *_impl_.tensor_.int64_tensor_ : reinterpret_cast<::viam::service::mlmodel::v1::FlatTensorDataInt64&>(::viam::service::mlmodel::v1::_FlatTensorDataInt64_default_instance_); + return _internal_has_int64_tensor() + ? *tensor_.int64_tensor_ + : reinterpret_cast< ::viam::service::mlmodel::v1::FlatTensorDataInt64&>(::viam::service::mlmodel::v1::_FlatTensorDataInt64_default_instance_); } -inline const ::viam::service::mlmodel::v1::FlatTensorDataInt64& FlatTensor::int64_tensor() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::service::mlmodel::v1::FlatTensorDataInt64& FlatTensor::int64_tensor() const { // @@protoc_insertion_point(field_get:viam.service.mlmodel.v1.FlatTensor.int64_tensor) return _internal_int64_tensor(); } inline ::viam::service::mlmodel::v1::FlatTensorDataInt64* FlatTensor::unsafe_arena_release_int64_tensor() { // @@protoc_insertion_point(field_unsafe_arena_release:viam.service.mlmodel.v1.FlatTensor.int64_tensor) - if (tensor_case() == kInt64Tensor) { + if (_internal_has_int64_tensor()) { clear_has_tensor(); - auto* temp = _impl_.tensor_.int64_tensor_; - _impl_.tensor_.int64_tensor_ = nullptr; + ::viam::service::mlmodel::v1::FlatTensorDataInt64* temp = tensor_.int64_tensor_; + tensor_.int64_tensor_ = nullptr; return temp; } else { return nullptr; } } -inline void FlatTensor::unsafe_arena_set_allocated_int64_tensor(::viam::service::mlmodel::v1::FlatTensorDataInt64* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void FlatTensor::unsafe_arena_set_allocated_int64_tensor(::viam::service::mlmodel::v1::FlatTensorDataInt64* int64_tensor) { clear_tensor(); - if (value) { + if (int64_tensor) { set_has_int64_tensor(); - _impl_.tensor_.int64_tensor_ = value; + tensor_.int64_tensor_ = int64_tensor; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.mlmodel.v1.FlatTensor.int64_tensor) } inline ::viam::service::mlmodel::v1::FlatTensorDataInt64* FlatTensor::_internal_mutable_int64_tensor() { - if (tensor_case() != kInt64Tensor) { + if (!_internal_has_int64_tensor()) { clear_tensor(); set_has_int64_tensor(); - _impl_.tensor_.int64_tensor_ = CreateMaybeMessage<::viam::service::mlmodel::v1::FlatTensorDataInt64>(GetArena()); + tensor_.int64_tensor_ = CreateMaybeMessage< ::viam::service::mlmodel::v1::FlatTensorDataInt64 >(GetArenaForAllocation()); } - return _impl_.tensor_.int64_tensor_; + return tensor_.int64_tensor_; } -inline ::viam::service::mlmodel::v1::FlatTensorDataInt64* FlatTensor::mutable_int64_tensor() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::service::mlmodel::v1::FlatTensorDataInt64* FlatTensor::mutable_int64_tensor() { ::viam::service::mlmodel::v1::FlatTensorDataInt64* _msg = _internal_mutable_int64_tensor(); // @@protoc_insertion_point(field_mutable:viam.service.mlmodel.v1.FlatTensor.int64_tensor) return _msg; } // .viam.service.mlmodel.v1.FlatTensorDataUInt64 uint64_tensor = 9 [json_name = "uint64Tensor"]; -inline bool FlatTensor::has_uint64_tensor() const { - return tensor_case() == kUint64Tensor; -} inline bool FlatTensor::_internal_has_uint64_tensor() const { return tensor_case() == kUint64Tensor; } +inline bool FlatTensor::has_uint64_tensor() const { + return _internal_has_uint64_tensor(); +} inline void FlatTensor::set_has_uint64_tensor() { - _impl_._oneof_case_[0] = kUint64Tensor; + _oneof_case_[0] = kUint64Tensor; } inline void FlatTensor::clear_uint64_tensor() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (tensor_case() == kUint64Tensor) { - if (GetArena() == nullptr) { - delete _impl_.tensor_.uint64_tensor_; + if (_internal_has_uint64_tensor()) { + if (GetArenaForAllocation() == nullptr) { + delete tensor_.uint64_tensor_; } clear_has_tensor(); } } inline ::viam::service::mlmodel::v1::FlatTensorDataUInt64* FlatTensor::release_uint64_tensor() { // @@protoc_insertion_point(field_release:viam.service.mlmodel.v1.FlatTensor.uint64_tensor) - if (tensor_case() == kUint64Tensor) { + if (_internal_has_uint64_tensor()) { clear_has_tensor(); - auto* temp = _impl_.tensor_.uint64_tensor_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::viam::service::mlmodel::v1::FlatTensorDataUInt64* temp = tensor_.uint64_tensor_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.tensor_.uint64_tensor_ = nullptr; + tensor_.uint64_tensor_ = nullptr; return temp; } else { return nullptr; } } inline const ::viam::service::mlmodel::v1::FlatTensorDataUInt64& FlatTensor::_internal_uint64_tensor() const { - return tensor_case() == kUint64Tensor ? *_impl_.tensor_.uint64_tensor_ : reinterpret_cast<::viam::service::mlmodel::v1::FlatTensorDataUInt64&>(::viam::service::mlmodel::v1::_FlatTensorDataUInt64_default_instance_); + return _internal_has_uint64_tensor() + ? *tensor_.uint64_tensor_ + : reinterpret_cast< ::viam::service::mlmodel::v1::FlatTensorDataUInt64&>(::viam::service::mlmodel::v1::_FlatTensorDataUInt64_default_instance_); } -inline const ::viam::service::mlmodel::v1::FlatTensorDataUInt64& FlatTensor::uint64_tensor() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::service::mlmodel::v1::FlatTensorDataUInt64& FlatTensor::uint64_tensor() const { // @@protoc_insertion_point(field_get:viam.service.mlmodel.v1.FlatTensor.uint64_tensor) return _internal_uint64_tensor(); } inline ::viam::service::mlmodel::v1::FlatTensorDataUInt64* FlatTensor::unsafe_arena_release_uint64_tensor() { // @@protoc_insertion_point(field_unsafe_arena_release:viam.service.mlmodel.v1.FlatTensor.uint64_tensor) - if (tensor_case() == kUint64Tensor) { + if (_internal_has_uint64_tensor()) { clear_has_tensor(); - auto* temp = _impl_.tensor_.uint64_tensor_; - _impl_.tensor_.uint64_tensor_ = nullptr; + ::viam::service::mlmodel::v1::FlatTensorDataUInt64* temp = tensor_.uint64_tensor_; + tensor_.uint64_tensor_ = nullptr; return temp; } else { return nullptr; } } -inline void FlatTensor::unsafe_arena_set_allocated_uint64_tensor(::viam::service::mlmodel::v1::FlatTensorDataUInt64* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void FlatTensor::unsafe_arena_set_allocated_uint64_tensor(::viam::service::mlmodel::v1::FlatTensorDataUInt64* uint64_tensor) { clear_tensor(); - if (value) { + if (uint64_tensor) { set_has_uint64_tensor(); - _impl_.tensor_.uint64_tensor_ = value; + tensor_.uint64_tensor_ = uint64_tensor; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.mlmodel.v1.FlatTensor.uint64_tensor) } inline ::viam::service::mlmodel::v1::FlatTensorDataUInt64* FlatTensor::_internal_mutable_uint64_tensor() { - if (tensor_case() != kUint64Tensor) { + if (!_internal_has_uint64_tensor()) { clear_tensor(); set_has_uint64_tensor(); - _impl_.tensor_.uint64_tensor_ = CreateMaybeMessage<::viam::service::mlmodel::v1::FlatTensorDataUInt64>(GetArena()); + tensor_.uint64_tensor_ = CreateMaybeMessage< ::viam::service::mlmodel::v1::FlatTensorDataUInt64 >(GetArenaForAllocation()); } - return _impl_.tensor_.uint64_tensor_; + return tensor_.uint64_tensor_; } -inline ::viam::service::mlmodel::v1::FlatTensorDataUInt64* FlatTensor::mutable_uint64_tensor() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::service::mlmodel::v1::FlatTensorDataUInt64* FlatTensor::mutable_uint64_tensor() { ::viam::service::mlmodel::v1::FlatTensorDataUInt64* _msg = _internal_mutable_uint64_tensor(); // @@protoc_insertion_point(field_mutable:viam.service.mlmodel.v1.FlatTensor.uint64_tensor) return _msg; } // .viam.service.mlmodel.v1.FlatTensorDataFloat float_tensor = 10 [json_name = "floatTensor"]; -inline bool FlatTensor::has_float_tensor() const { - return tensor_case() == kFloatTensor; -} inline bool FlatTensor::_internal_has_float_tensor() const { return tensor_case() == kFloatTensor; } +inline bool FlatTensor::has_float_tensor() const { + return _internal_has_float_tensor(); +} inline void FlatTensor::set_has_float_tensor() { - _impl_._oneof_case_[0] = kFloatTensor; + _oneof_case_[0] = kFloatTensor; } inline void FlatTensor::clear_float_tensor() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (tensor_case() == kFloatTensor) { - if (GetArena() == nullptr) { - delete _impl_.tensor_.float_tensor_; + if (_internal_has_float_tensor()) { + if (GetArenaForAllocation() == nullptr) { + delete tensor_.float_tensor_; } clear_has_tensor(); } } inline ::viam::service::mlmodel::v1::FlatTensorDataFloat* FlatTensor::release_float_tensor() { // @@protoc_insertion_point(field_release:viam.service.mlmodel.v1.FlatTensor.float_tensor) - if (tensor_case() == kFloatTensor) { + if (_internal_has_float_tensor()) { clear_has_tensor(); - auto* temp = _impl_.tensor_.float_tensor_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::viam::service::mlmodel::v1::FlatTensorDataFloat* temp = tensor_.float_tensor_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.tensor_.float_tensor_ = nullptr; + tensor_.float_tensor_ = nullptr; return temp; } else { return nullptr; } } inline const ::viam::service::mlmodel::v1::FlatTensorDataFloat& FlatTensor::_internal_float_tensor() const { - return tensor_case() == kFloatTensor ? *_impl_.tensor_.float_tensor_ : reinterpret_cast<::viam::service::mlmodel::v1::FlatTensorDataFloat&>(::viam::service::mlmodel::v1::_FlatTensorDataFloat_default_instance_); + return _internal_has_float_tensor() + ? *tensor_.float_tensor_ + : reinterpret_cast< ::viam::service::mlmodel::v1::FlatTensorDataFloat&>(::viam::service::mlmodel::v1::_FlatTensorDataFloat_default_instance_); } -inline const ::viam::service::mlmodel::v1::FlatTensorDataFloat& FlatTensor::float_tensor() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::service::mlmodel::v1::FlatTensorDataFloat& FlatTensor::float_tensor() const { // @@protoc_insertion_point(field_get:viam.service.mlmodel.v1.FlatTensor.float_tensor) return _internal_float_tensor(); } inline ::viam::service::mlmodel::v1::FlatTensorDataFloat* FlatTensor::unsafe_arena_release_float_tensor() { // @@protoc_insertion_point(field_unsafe_arena_release:viam.service.mlmodel.v1.FlatTensor.float_tensor) - if (tensor_case() == kFloatTensor) { + if (_internal_has_float_tensor()) { clear_has_tensor(); - auto* temp = _impl_.tensor_.float_tensor_; - _impl_.tensor_.float_tensor_ = nullptr; + ::viam::service::mlmodel::v1::FlatTensorDataFloat* temp = tensor_.float_tensor_; + tensor_.float_tensor_ = nullptr; return temp; } else { return nullptr; } } -inline void FlatTensor::unsafe_arena_set_allocated_float_tensor(::viam::service::mlmodel::v1::FlatTensorDataFloat* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void FlatTensor::unsafe_arena_set_allocated_float_tensor(::viam::service::mlmodel::v1::FlatTensorDataFloat* float_tensor) { clear_tensor(); - if (value) { + if (float_tensor) { set_has_float_tensor(); - _impl_.tensor_.float_tensor_ = value; + tensor_.float_tensor_ = float_tensor; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.mlmodel.v1.FlatTensor.float_tensor) } inline ::viam::service::mlmodel::v1::FlatTensorDataFloat* FlatTensor::_internal_mutable_float_tensor() { - if (tensor_case() != kFloatTensor) { + if (!_internal_has_float_tensor()) { clear_tensor(); set_has_float_tensor(); - _impl_.tensor_.float_tensor_ = CreateMaybeMessage<::viam::service::mlmodel::v1::FlatTensorDataFloat>(GetArena()); + tensor_.float_tensor_ = CreateMaybeMessage< ::viam::service::mlmodel::v1::FlatTensorDataFloat >(GetArenaForAllocation()); } - return _impl_.tensor_.float_tensor_; + return tensor_.float_tensor_; } -inline ::viam::service::mlmodel::v1::FlatTensorDataFloat* FlatTensor::mutable_float_tensor() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::service::mlmodel::v1::FlatTensorDataFloat* FlatTensor::mutable_float_tensor() { ::viam::service::mlmodel::v1::FlatTensorDataFloat* _msg = _internal_mutable_float_tensor(); // @@protoc_insertion_point(field_mutable:viam.service.mlmodel.v1.FlatTensor.float_tensor) return _msg; } // .viam.service.mlmodel.v1.FlatTensorDataDouble double_tensor = 11 [json_name = "doubleTensor"]; -inline bool FlatTensor::has_double_tensor() const { - return tensor_case() == kDoubleTensor; -} inline bool FlatTensor::_internal_has_double_tensor() const { return tensor_case() == kDoubleTensor; } +inline bool FlatTensor::has_double_tensor() const { + return _internal_has_double_tensor(); +} inline void FlatTensor::set_has_double_tensor() { - _impl_._oneof_case_[0] = kDoubleTensor; + _oneof_case_[0] = kDoubleTensor; } inline void FlatTensor::clear_double_tensor() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (tensor_case() == kDoubleTensor) { - if (GetArena() == nullptr) { - delete _impl_.tensor_.double_tensor_; + if (_internal_has_double_tensor()) { + if (GetArenaForAllocation() == nullptr) { + delete tensor_.double_tensor_; } clear_has_tensor(); } } inline ::viam::service::mlmodel::v1::FlatTensorDataDouble* FlatTensor::release_double_tensor() { // @@protoc_insertion_point(field_release:viam.service.mlmodel.v1.FlatTensor.double_tensor) - if (tensor_case() == kDoubleTensor) { + if (_internal_has_double_tensor()) { clear_has_tensor(); - auto* temp = _impl_.tensor_.double_tensor_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::viam::service::mlmodel::v1::FlatTensorDataDouble* temp = tensor_.double_tensor_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.tensor_.double_tensor_ = nullptr; + tensor_.double_tensor_ = nullptr; return temp; } else { return nullptr; } } inline const ::viam::service::mlmodel::v1::FlatTensorDataDouble& FlatTensor::_internal_double_tensor() const { - return tensor_case() == kDoubleTensor ? *_impl_.tensor_.double_tensor_ : reinterpret_cast<::viam::service::mlmodel::v1::FlatTensorDataDouble&>(::viam::service::mlmodel::v1::_FlatTensorDataDouble_default_instance_); + return _internal_has_double_tensor() + ? *tensor_.double_tensor_ + : reinterpret_cast< ::viam::service::mlmodel::v1::FlatTensorDataDouble&>(::viam::service::mlmodel::v1::_FlatTensorDataDouble_default_instance_); } -inline const ::viam::service::mlmodel::v1::FlatTensorDataDouble& FlatTensor::double_tensor() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::service::mlmodel::v1::FlatTensorDataDouble& FlatTensor::double_tensor() const { // @@protoc_insertion_point(field_get:viam.service.mlmodel.v1.FlatTensor.double_tensor) return _internal_double_tensor(); } inline ::viam::service::mlmodel::v1::FlatTensorDataDouble* FlatTensor::unsafe_arena_release_double_tensor() { // @@protoc_insertion_point(field_unsafe_arena_release:viam.service.mlmodel.v1.FlatTensor.double_tensor) - if (tensor_case() == kDoubleTensor) { + if (_internal_has_double_tensor()) { clear_has_tensor(); - auto* temp = _impl_.tensor_.double_tensor_; - _impl_.tensor_.double_tensor_ = nullptr; + ::viam::service::mlmodel::v1::FlatTensorDataDouble* temp = tensor_.double_tensor_; + tensor_.double_tensor_ = nullptr; return temp; } else { return nullptr; } } -inline void FlatTensor::unsafe_arena_set_allocated_double_tensor(::viam::service::mlmodel::v1::FlatTensorDataDouble* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void FlatTensor::unsafe_arena_set_allocated_double_tensor(::viam::service::mlmodel::v1::FlatTensorDataDouble* double_tensor) { clear_tensor(); - if (value) { + if (double_tensor) { set_has_double_tensor(); - _impl_.tensor_.double_tensor_ = value; + tensor_.double_tensor_ = double_tensor; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.mlmodel.v1.FlatTensor.double_tensor) } inline ::viam::service::mlmodel::v1::FlatTensorDataDouble* FlatTensor::_internal_mutable_double_tensor() { - if (tensor_case() != kDoubleTensor) { + if (!_internal_has_double_tensor()) { clear_tensor(); set_has_double_tensor(); - _impl_.tensor_.double_tensor_ = CreateMaybeMessage<::viam::service::mlmodel::v1::FlatTensorDataDouble>(GetArena()); + tensor_.double_tensor_ = CreateMaybeMessage< ::viam::service::mlmodel::v1::FlatTensorDataDouble >(GetArenaForAllocation()); } - return _impl_.tensor_.double_tensor_; + return tensor_.double_tensor_; } -inline ::viam::service::mlmodel::v1::FlatTensorDataDouble* FlatTensor::mutable_double_tensor() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::service::mlmodel::v1::FlatTensorDataDouble* FlatTensor::mutable_double_tensor() { ::viam::service::mlmodel::v1::FlatTensorDataDouble* _msg = _internal_mutable_double_tensor(); // @@protoc_insertion_point(field_mutable:viam.service.mlmodel.v1.FlatTensor.double_tensor) return _msg; @@ -6830,10 +6148,10 @@ inline bool FlatTensor::has_tensor() const { return tensor_case() != TENSOR_NOT_SET; } inline void FlatTensor::clear_has_tensor() { - _impl_._oneof_case_[0] = TENSOR_NOT_SET; + _oneof_case_[0] = TENSOR_NOT_SET; } inline FlatTensor::TensorCase FlatTensor::tensor_case() const { - return FlatTensor::TensorCase(_impl_._oneof_case_[0]); + return FlatTensor::TensorCase(_oneof_case_[0]); } // ------------------------------------------------------------------- @@ -6843,58 +6161,93 @@ inline FlatTensor::TensorCase FlatTensor::tensor_case() const { // map tensors = 1 [json_name = "tensors"]; inline int FlatTensors::_internal_tensors_size() const { - return _internal_tensors().size(); + return tensors_.size(); } inline int FlatTensors::tensors_size() const { return _internal_tensors_size(); } inline void FlatTensors::clear_tensors() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.tensors_.Clear(); + tensors_.Clear(); } -inline const ::google::protobuf::Map& FlatTensors::_internal_tensors() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.tensors_.GetMap(); +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::service::mlmodel::v1::FlatTensor >& +FlatTensors::_internal_tensors() const { + return tensors_.GetMap(); } -inline const ::google::protobuf::Map& FlatTensors::tensors() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::service::mlmodel::v1::FlatTensor >& +FlatTensors::tensors() const { // @@protoc_insertion_point(field_map:viam.service.mlmodel.v1.FlatTensors.tensors) return _internal_tensors(); } -inline ::google::protobuf::Map* FlatTensors::_internal_mutable_tensors() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.tensors_.MutableMap(); +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::service::mlmodel::v1::FlatTensor >* +FlatTensors::_internal_mutable_tensors() { + return tensors_.MutableMap(); } -inline ::google::protobuf::Map* FlatTensors::mutable_tensors() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::service::mlmodel::v1::FlatTensor >* +FlatTensors::mutable_tensors() { // @@protoc_insertion_point(field_mutable_map:viam.service.mlmodel.v1.FlatTensors.tensors) return _internal_mutable_tensors(); } #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) + } // namespace v1 } // namespace mlmodel } // namespace service } // namespace viam +PROTOBUF_NAMESPACE_OPEN -namespace google { -namespace protobuf { - +template <> struct is_proto_enum< ::viam::service::mlmodel::v1::LabelType> : ::std::true_type {}; template <> -struct is_proto_enum<::viam::service::mlmodel::v1::LabelType> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::viam::service::mlmodel::v1::LabelType>() { +inline const EnumDescriptor* GetEnumDescriptor< ::viam::service::mlmodel::v1::LabelType>() { return ::viam::service::mlmodel::v1::LabelType_descriptor(); } -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_service_2fmlmodel_2fv1_2fmlmodel_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_service_2fmlmodel_2fv1_2fmlmodel_2eproto diff --git a/src/viam/api/service/motion/v1/motion.grpc.pb.cc b/src/viam/api/service/motion/v1/motion.grpc.pb.cc index 80c78e34f..f56613dc3 100644 --- a/src/viam/api/service/motion/v1/motion.grpc.pb.cc +++ b/src/viam/api/service/motion/v1/motion.grpc.pb.cc @@ -6,19 +6,19 @@ #include "service/motion/v1/motion.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace service { namespace motion { @@ -37,212 +37,252 @@ static const char* MotionService_method_names[] = { std::unique_ptr< MotionService::Stub> MotionService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { (void)options; - std::unique_ptr< MotionService::Stub> stub(new MotionService::Stub(channel, options)); + std::unique_ptr< MotionService::Stub> stub(new MotionService::Stub(channel)); return stub; } -MotionService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) - : channel_(channel), rpcmethod_Move_(MotionService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_MoveOnMap_(MotionService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_MoveOnGlobe_(MotionService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetPose_(MotionService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_StopPlan_(MotionService_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_ListPlanStatuses_(MotionService_method_names[5], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetPlan_(MotionService_method_names[6], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_DoCommand_(MotionService_method_names[7], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) +MotionService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_Move_(MotionService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_MoveOnMap_(MotionService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_MoveOnGlobe_(MotionService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetPose_(MotionService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_StopPlan_(MotionService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListPlanStatuses_(MotionService_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetPlan_(MotionService_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DoCommand_(MotionService_method_names[7], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status MotionService::Stub::Move(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveRequest& request, ::viam::service::motion::v1::MoveResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::service::motion::v1::MoveRequest, ::viam::service::motion::v1::MoveResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Move_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_Move_, context, request, response); } -void MotionService::Stub::async::Move(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveRequest* request, ::viam::service::motion::v1::MoveResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::service::motion::v1::MoveRequest, ::viam::service::motion::v1::MoveResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Move_, context, request, response, std::move(f)); +void MotionService::Stub::experimental_async::Move(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveRequest* request, ::viam::service::motion::v1::MoveResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Move_, context, request, response, std::move(f)); } -void MotionService::Stub::async::Move(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveRequest* request, ::viam::service::motion::v1::MoveResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Move_, context, request, response, reactor); +void MotionService::Stub::experimental_async::Move(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::motion::v1::MoveResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Move_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::MoveResponse>* MotionService::Stub::PrepareAsyncMoveRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::motion::v1::MoveResponse, ::viam::service::motion::v1::MoveRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Move_, context, request); +void MotionService::Stub::experimental_async::Move(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveRequest* request, ::viam::service::motion::v1::MoveResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Move_, context, request, response, reactor); +} + +void MotionService::Stub::experimental_async::Move(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::motion::v1::MoveResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Move_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::MoveResponse>* MotionService::Stub::AsyncMoveRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncMoveRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::motion::v1::MoveResponse>::Create(channel_.get(), cq, rpcmethod_Move_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::MoveResponse>* MotionService::Stub::PrepareAsyncMoveRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::motion::v1::MoveResponse>::Create(channel_.get(), cq, rpcmethod_Move_, context, request, false); } ::grpc::Status MotionService::Stub::MoveOnMap(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnMapRequest& request, ::viam::service::motion::v1::MoveOnMapResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::service::motion::v1::MoveOnMapRequest, ::viam::service::motion::v1::MoveOnMapResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_MoveOnMap_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_MoveOnMap_, context, request, response); } -void MotionService::Stub::async::MoveOnMap(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnMapRequest* request, ::viam::service::motion::v1::MoveOnMapResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::service::motion::v1::MoveOnMapRequest, ::viam::service::motion::v1::MoveOnMapResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_MoveOnMap_, context, request, response, std::move(f)); +void MotionService::Stub::experimental_async::MoveOnMap(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnMapRequest* request, ::viam::service::motion::v1::MoveOnMapResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_MoveOnMap_, context, request, response, std::move(f)); } -void MotionService::Stub::async::MoveOnMap(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnMapRequest* request, ::viam::service::motion::v1::MoveOnMapResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_MoveOnMap_, context, request, response, reactor); +void MotionService::Stub::experimental_async::MoveOnMap(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::motion::v1::MoveOnMapResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_MoveOnMap_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::MoveOnMapResponse>* MotionService::Stub::PrepareAsyncMoveOnMapRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnMapRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::motion::v1::MoveOnMapResponse, ::viam::service::motion::v1::MoveOnMapRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_MoveOnMap_, context, request); +void MotionService::Stub::experimental_async::MoveOnMap(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnMapRequest* request, ::viam::service::motion::v1::MoveOnMapResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_MoveOnMap_, context, request, response, reactor); +} + +void MotionService::Stub::experimental_async::MoveOnMap(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::motion::v1::MoveOnMapResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_MoveOnMap_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::MoveOnMapResponse>* MotionService::Stub::AsyncMoveOnMapRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnMapRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncMoveOnMapRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::motion::v1::MoveOnMapResponse>::Create(channel_.get(), cq, rpcmethod_MoveOnMap_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::MoveOnMapResponse>* MotionService::Stub::PrepareAsyncMoveOnMapRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnMapRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::motion::v1::MoveOnMapResponse>::Create(channel_.get(), cq, rpcmethod_MoveOnMap_, context, request, false); } ::grpc::Status MotionService::Stub::MoveOnGlobe(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnGlobeRequest& request, ::viam::service::motion::v1::MoveOnGlobeResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::service::motion::v1::MoveOnGlobeRequest, ::viam::service::motion::v1::MoveOnGlobeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_MoveOnGlobe_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_MoveOnGlobe_, context, request, response); } -void MotionService::Stub::async::MoveOnGlobe(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnGlobeRequest* request, ::viam::service::motion::v1::MoveOnGlobeResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::service::motion::v1::MoveOnGlobeRequest, ::viam::service::motion::v1::MoveOnGlobeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_MoveOnGlobe_, context, request, response, std::move(f)); +void MotionService::Stub::experimental_async::MoveOnGlobe(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnGlobeRequest* request, ::viam::service::motion::v1::MoveOnGlobeResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_MoveOnGlobe_, context, request, response, std::move(f)); } -void MotionService::Stub::async::MoveOnGlobe(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnGlobeRequest* request, ::viam::service::motion::v1::MoveOnGlobeResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_MoveOnGlobe_, context, request, response, reactor); +void MotionService::Stub::experimental_async::MoveOnGlobe(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::motion::v1::MoveOnGlobeResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_MoveOnGlobe_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::MoveOnGlobeResponse>* MotionService::Stub::PrepareAsyncMoveOnGlobeRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnGlobeRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::motion::v1::MoveOnGlobeResponse, ::viam::service::motion::v1::MoveOnGlobeRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_MoveOnGlobe_, context, request); +void MotionService::Stub::experimental_async::MoveOnGlobe(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnGlobeRequest* request, ::viam::service::motion::v1::MoveOnGlobeResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_MoveOnGlobe_, context, request, response, reactor); +} + +void MotionService::Stub::experimental_async::MoveOnGlobe(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::motion::v1::MoveOnGlobeResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_MoveOnGlobe_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::MoveOnGlobeResponse>* MotionService::Stub::AsyncMoveOnGlobeRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnGlobeRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncMoveOnGlobeRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::motion::v1::MoveOnGlobeResponse>::Create(channel_.get(), cq, rpcmethod_MoveOnGlobe_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::MoveOnGlobeResponse>* MotionService::Stub::PrepareAsyncMoveOnGlobeRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnGlobeRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::motion::v1::MoveOnGlobeResponse>::Create(channel_.get(), cq, rpcmethod_MoveOnGlobe_, context, request, false); } ::grpc::Status MotionService::Stub::GetPose(::grpc::ClientContext* context, const ::viam::service::motion::v1::GetPoseRequest& request, ::viam::service::motion::v1::GetPoseResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::service::motion::v1::GetPoseRequest, ::viam::service::motion::v1::GetPoseResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetPose_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetPose_, context, request, response); } -void MotionService::Stub::async::GetPose(::grpc::ClientContext* context, const ::viam::service::motion::v1::GetPoseRequest* request, ::viam::service::motion::v1::GetPoseResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::service::motion::v1::GetPoseRequest, ::viam::service::motion::v1::GetPoseResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetPose_, context, request, response, std::move(f)); +void MotionService::Stub::experimental_async::GetPose(::grpc::ClientContext* context, const ::viam::service::motion::v1::GetPoseRequest* request, ::viam::service::motion::v1::GetPoseResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetPose_, context, request, response, std::move(f)); } -void MotionService::Stub::async::GetPose(::grpc::ClientContext* context, const ::viam::service::motion::v1::GetPoseRequest* request, ::viam::service::motion::v1::GetPoseResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetPose_, context, request, response, reactor); +void MotionService::Stub::experimental_async::GetPose(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::motion::v1::GetPoseResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetPose_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::GetPoseResponse>* MotionService::Stub::PrepareAsyncGetPoseRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::GetPoseRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::motion::v1::GetPoseResponse, ::viam::service::motion::v1::GetPoseRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetPose_, context, request); +void MotionService::Stub::experimental_async::GetPose(::grpc::ClientContext* context, const ::viam::service::motion::v1::GetPoseRequest* request, ::viam::service::motion::v1::GetPoseResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetPose_, context, request, response, reactor); +} + +void MotionService::Stub::experimental_async::GetPose(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::motion::v1::GetPoseResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetPose_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::GetPoseResponse>* MotionService::Stub::AsyncGetPoseRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::GetPoseRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetPoseRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::motion::v1::GetPoseResponse>::Create(channel_.get(), cq, rpcmethod_GetPose_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::GetPoseResponse>* MotionService::Stub::PrepareAsyncGetPoseRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::GetPoseRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::motion::v1::GetPoseResponse>::Create(channel_.get(), cq, rpcmethod_GetPose_, context, request, false); } ::grpc::Status MotionService::Stub::StopPlan(::grpc::ClientContext* context, const ::viam::service::motion::v1::StopPlanRequest& request, ::viam::service::motion::v1::StopPlanResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::service::motion::v1::StopPlanRequest, ::viam::service::motion::v1::StopPlanResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_StopPlan_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_StopPlan_, context, request, response); } -void MotionService::Stub::async::StopPlan(::grpc::ClientContext* context, const ::viam::service::motion::v1::StopPlanRequest* request, ::viam::service::motion::v1::StopPlanResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::service::motion::v1::StopPlanRequest, ::viam::service::motion::v1::StopPlanResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_StopPlan_, context, request, response, std::move(f)); +void MotionService::Stub::experimental_async::StopPlan(::grpc::ClientContext* context, const ::viam::service::motion::v1::StopPlanRequest* request, ::viam::service::motion::v1::StopPlanResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_StopPlan_, context, request, response, std::move(f)); } -void MotionService::Stub::async::StopPlan(::grpc::ClientContext* context, const ::viam::service::motion::v1::StopPlanRequest* request, ::viam::service::motion::v1::StopPlanResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_StopPlan_, context, request, response, reactor); +void MotionService::Stub::experimental_async::StopPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::motion::v1::StopPlanResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_StopPlan_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::StopPlanResponse>* MotionService::Stub::PrepareAsyncStopPlanRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::StopPlanRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::motion::v1::StopPlanResponse, ::viam::service::motion::v1::StopPlanRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_StopPlan_, context, request); +void MotionService::Stub::experimental_async::StopPlan(::grpc::ClientContext* context, const ::viam::service::motion::v1::StopPlanRequest* request, ::viam::service::motion::v1::StopPlanResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_StopPlan_, context, request, response, reactor); +} + +void MotionService::Stub::experimental_async::StopPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::motion::v1::StopPlanResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_StopPlan_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::StopPlanResponse>* MotionService::Stub::AsyncStopPlanRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::StopPlanRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncStopPlanRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::motion::v1::StopPlanResponse>::Create(channel_.get(), cq, rpcmethod_StopPlan_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::StopPlanResponse>* MotionService::Stub::PrepareAsyncStopPlanRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::StopPlanRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::motion::v1::StopPlanResponse>::Create(channel_.get(), cq, rpcmethod_StopPlan_, context, request, false); } ::grpc::Status MotionService::Stub::ListPlanStatuses(::grpc::ClientContext* context, const ::viam::service::motion::v1::ListPlanStatusesRequest& request, ::viam::service::motion::v1::ListPlanStatusesResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::service::motion::v1::ListPlanStatusesRequest, ::viam::service::motion::v1::ListPlanStatusesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ListPlanStatuses_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListPlanStatuses_, context, request, response); } -void MotionService::Stub::async::ListPlanStatuses(::grpc::ClientContext* context, const ::viam::service::motion::v1::ListPlanStatusesRequest* request, ::viam::service::motion::v1::ListPlanStatusesResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::service::motion::v1::ListPlanStatusesRequest, ::viam::service::motion::v1::ListPlanStatusesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListPlanStatuses_, context, request, response, std::move(f)); +void MotionService::Stub::experimental_async::ListPlanStatuses(::grpc::ClientContext* context, const ::viam::service::motion::v1::ListPlanStatusesRequest* request, ::viam::service::motion::v1::ListPlanStatusesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListPlanStatuses_, context, request, response, std::move(f)); } -void MotionService::Stub::async::ListPlanStatuses(::grpc::ClientContext* context, const ::viam::service::motion::v1::ListPlanStatusesRequest* request, ::viam::service::motion::v1::ListPlanStatusesResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListPlanStatuses_, context, request, response, reactor); +void MotionService::Stub::experimental_async::ListPlanStatuses(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::motion::v1::ListPlanStatusesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListPlanStatuses_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::ListPlanStatusesResponse>* MotionService::Stub::PrepareAsyncListPlanStatusesRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::ListPlanStatusesRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::motion::v1::ListPlanStatusesResponse, ::viam::service::motion::v1::ListPlanStatusesRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ListPlanStatuses_, context, request); +void MotionService::Stub::experimental_async::ListPlanStatuses(::grpc::ClientContext* context, const ::viam::service::motion::v1::ListPlanStatusesRequest* request, ::viam::service::motion::v1::ListPlanStatusesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListPlanStatuses_, context, request, response, reactor); +} + +void MotionService::Stub::experimental_async::ListPlanStatuses(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::motion::v1::ListPlanStatusesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListPlanStatuses_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::ListPlanStatusesResponse>* MotionService::Stub::AsyncListPlanStatusesRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::ListPlanStatusesRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncListPlanStatusesRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::motion::v1::ListPlanStatusesResponse>::Create(channel_.get(), cq, rpcmethod_ListPlanStatuses_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::ListPlanStatusesResponse>* MotionService::Stub::PrepareAsyncListPlanStatusesRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::ListPlanStatusesRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::motion::v1::ListPlanStatusesResponse>::Create(channel_.get(), cq, rpcmethod_ListPlanStatuses_, context, request, false); } ::grpc::Status MotionService::Stub::GetPlan(::grpc::ClientContext* context, const ::viam::service::motion::v1::GetPlanRequest& request, ::viam::service::motion::v1::GetPlanResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::service::motion::v1::GetPlanRequest, ::viam::service::motion::v1::GetPlanResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetPlan_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetPlan_, context, request, response); } -void MotionService::Stub::async::GetPlan(::grpc::ClientContext* context, const ::viam::service::motion::v1::GetPlanRequest* request, ::viam::service::motion::v1::GetPlanResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::service::motion::v1::GetPlanRequest, ::viam::service::motion::v1::GetPlanResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetPlan_, context, request, response, std::move(f)); +void MotionService::Stub::experimental_async::GetPlan(::grpc::ClientContext* context, const ::viam::service::motion::v1::GetPlanRequest* request, ::viam::service::motion::v1::GetPlanResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetPlan_, context, request, response, std::move(f)); } -void MotionService::Stub::async::GetPlan(::grpc::ClientContext* context, const ::viam::service::motion::v1::GetPlanRequest* request, ::viam::service::motion::v1::GetPlanResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetPlan_, context, request, response, reactor); +void MotionService::Stub::experimental_async::GetPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::motion::v1::GetPlanResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetPlan_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::GetPlanResponse>* MotionService::Stub::PrepareAsyncGetPlanRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::GetPlanRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::motion::v1::GetPlanResponse, ::viam::service::motion::v1::GetPlanRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetPlan_, context, request); +void MotionService::Stub::experimental_async::GetPlan(::grpc::ClientContext* context, const ::viam::service::motion::v1::GetPlanRequest* request, ::viam::service::motion::v1::GetPlanResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetPlan_, context, request, response, reactor); +} + +void MotionService::Stub::experimental_async::GetPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::motion::v1::GetPlanResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetPlan_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::GetPlanResponse>* MotionService::Stub::AsyncGetPlanRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::GetPlanRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetPlanRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::motion::v1::GetPlanResponse>::Create(channel_.get(), cq, rpcmethod_GetPlan_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::GetPlanResponse>* MotionService::Stub::PrepareAsyncGetPlanRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::GetPlanRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::motion::v1::GetPlanResponse>::Create(channel_.get(), cq, rpcmethod_GetPlan_, context, request, false); } ::grpc::Status MotionService::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); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DoCommand_, context, request, response); } -void MotionService::Stub::async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); +void MotionService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); } -void MotionService::Stub::async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); +void MotionService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* MotionService::Stub::PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::common::v1::DoCommandResponse, ::viam::common::v1::DoCommandRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DoCommand_, context, request); +void MotionService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); +} + +void MotionService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* MotionService::Stub::AsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncDoCommandRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::DoCommandResponse>::Create(channel_.get(), cq, rpcmethod_DoCommand_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* MotionService::Stub::PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::DoCommandResponse>::Create(channel_.get(), cq, rpcmethod_DoCommand_, context, request, false); } MotionService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( MotionService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< MotionService::Service, ::viam::service::motion::v1::MoveRequest, ::viam::service::motion::v1::MoveResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< MotionService::Service, ::viam::service::motion::v1::MoveRequest, ::viam::service::motion::v1::MoveResponse>( [](MotionService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::service::motion::v1::MoveRequest* req, ::viam::service::motion::v1::MoveResponse* resp) { return service->Move(ctx, req, resp); @@ -250,9 +290,9 @@ MotionService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( MotionService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< MotionService::Service, ::viam::service::motion::v1::MoveOnMapRequest, ::viam::service::motion::v1::MoveOnMapResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< MotionService::Service, ::viam::service::motion::v1::MoveOnMapRequest, ::viam::service::motion::v1::MoveOnMapResponse>( [](MotionService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::service::motion::v1::MoveOnMapRequest* req, ::viam::service::motion::v1::MoveOnMapResponse* resp) { return service->MoveOnMap(ctx, req, resp); @@ -260,9 +300,9 @@ MotionService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( MotionService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< MotionService::Service, ::viam::service::motion::v1::MoveOnGlobeRequest, ::viam::service::motion::v1::MoveOnGlobeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< MotionService::Service, ::viam::service::motion::v1::MoveOnGlobeRequest, ::viam::service::motion::v1::MoveOnGlobeResponse>( [](MotionService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::service::motion::v1::MoveOnGlobeRequest* req, ::viam::service::motion::v1::MoveOnGlobeResponse* resp) { return service->MoveOnGlobe(ctx, req, resp); @@ -270,9 +310,9 @@ MotionService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( MotionService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< MotionService::Service, ::viam::service::motion::v1::GetPoseRequest, ::viam::service::motion::v1::GetPoseResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< MotionService::Service, ::viam::service::motion::v1::GetPoseRequest, ::viam::service::motion::v1::GetPoseResponse>( [](MotionService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::service::motion::v1::GetPoseRequest* req, ::viam::service::motion::v1::GetPoseResponse* resp) { return service->GetPose(ctx, req, resp); @@ -280,9 +320,9 @@ MotionService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( MotionService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< MotionService::Service, ::viam::service::motion::v1::StopPlanRequest, ::viam::service::motion::v1::StopPlanResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< MotionService::Service, ::viam::service::motion::v1::StopPlanRequest, ::viam::service::motion::v1::StopPlanResponse>( [](MotionService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::service::motion::v1::StopPlanRequest* req, ::viam::service::motion::v1::StopPlanResponse* resp) { return service->StopPlan(ctx, req, resp); @@ -290,9 +330,9 @@ MotionService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( MotionService_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< MotionService::Service, ::viam::service::motion::v1::ListPlanStatusesRequest, ::viam::service::motion::v1::ListPlanStatusesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< MotionService::Service, ::viam::service::motion::v1::ListPlanStatusesRequest, ::viam::service::motion::v1::ListPlanStatusesResponse>( [](MotionService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::service::motion::v1::ListPlanStatusesRequest* req, ::viam::service::motion::v1::ListPlanStatusesResponse* resp) { return service->ListPlanStatuses(ctx, req, resp); @@ -300,9 +340,9 @@ MotionService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( MotionService_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< MotionService::Service, ::viam::service::motion::v1::GetPlanRequest, ::viam::service::motion::v1::GetPlanResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< MotionService::Service, ::viam::service::motion::v1::GetPlanRequest, ::viam::service::motion::v1::GetPlanResponse>( [](MotionService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::service::motion::v1::GetPlanRequest* req, ::viam::service::motion::v1::GetPlanResponse* resp) { return service->GetPlan(ctx, req, resp); @@ -310,9 +350,9 @@ MotionService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( MotionService_method_names[7], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< MotionService::Service, ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< MotionService::Service, ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( [](MotionService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::common::v1::DoCommandRequest* req, ::viam::common::v1::DoCommandResponse* resp) { return service->DoCommand(ctx, req, resp); diff --git a/src/viam/api/service/motion/v1/motion.grpc.pb.h b/src/viam/api/service/motion/v1/motion.grpc.pb.h index be897506d..2fb8f1aaa 100644 --- a/src/viam/api/service/motion/v1/motion.grpc.pb.h +++ b/src/viam/api/service/motion/v1/motion.grpc.pb.h @@ -7,23 +7,24 @@ #include "service/motion/v1/motion.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace service { @@ -115,33 +116,93 @@ class MotionService final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::DoCommandResponse>> PrepareAsyncDoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::DoCommandResponse>>(PrepareAsyncDoCommandRaw(context, request, cq)); } - class async_interface { + class experimental_async_interface { public: - virtual ~async_interface() {} + virtual ~experimental_async_interface() {} virtual void Move(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveRequest* request, ::viam::service::motion::v1::MoveResponse* response, std::function) = 0; + virtual void Move(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::motion::v1::MoveResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void Move(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveRequest* request, ::viam::service::motion::v1::MoveResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void Move(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveRequest* request, ::viam::service::motion::v1::MoveResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void Move(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::motion::v1::MoveResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void Move(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::motion::v1::MoveResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Generate a plan and move a component to a specific pose // with respect to the SLAM map's origin. // May replan to avoid obstacles virtual void MoveOnMap(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnMapRequest* request, ::viam::service::motion::v1::MoveOnMapResponse* response, std::function) = 0; + virtual void MoveOnMap(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::motion::v1::MoveOnMapResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void MoveOnMap(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnMapRequest* request, ::viam::service::motion::v1::MoveOnMapResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void MoveOnMap(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnMapRequest* request, ::viam::service::motion::v1::MoveOnMapResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void MoveOnMap(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::motion::v1::MoveOnMapResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void MoveOnMap(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::motion::v1::MoveOnMapResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Generate and begin executing an execution to move a component // to a specific GPS coordinate. // May replan to avoid obstacles & account for location drift. // Creates a new plan upon replanning. virtual void MoveOnGlobe(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnGlobeRequest* request, ::viam::service::motion::v1::MoveOnGlobeResponse* response, std::function) = 0; + virtual void MoveOnGlobe(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::motion::v1::MoveOnGlobeResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void MoveOnGlobe(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnGlobeRequest* request, ::viam::service::motion::v1::MoveOnGlobeResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void MoveOnGlobe(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnGlobeRequest* request, ::viam::service::motion::v1::MoveOnGlobeResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void MoveOnGlobe(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::motion::v1::MoveOnGlobeResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void MoveOnGlobe(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::motion::v1::MoveOnGlobeResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif virtual void GetPose(::grpc::ClientContext* context, const ::viam::service::motion::v1::GetPoseRequest* request, ::viam::service::motion::v1::GetPoseResponse* response, std::function) = 0; + virtual void GetPose(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::motion::v1::GetPoseResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetPose(::grpc::ClientContext* context, const ::viam::service::motion::v1::GetPoseRequest* request, ::viam::service::motion::v1::GetPoseResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetPose(::grpc::ClientContext* context, const ::viam::service::motion::v1::GetPoseRequest* request, ::viam::service::motion::v1::GetPoseResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetPose(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::motion::v1::GetPoseResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetPose(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::motion::v1::GetPoseResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Stops a Plan virtual void StopPlan(::grpc::ClientContext* context, const ::viam::service::motion::v1::StopPlanRequest* request, ::viam::service::motion::v1::StopPlanResponse* response, std::function) = 0; + virtual void StopPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::motion::v1::StopPlanResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void StopPlan(::grpc::ClientContext* context, const ::viam::service::motion::v1::StopPlanRequest* request, ::viam::service::motion::v1::StopPlanResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void StopPlan(::grpc::ClientContext* context, const ::viam::service::motion::v1::StopPlanRequest* request, ::viam::service::motion::v1::StopPlanResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void StopPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::motion::v1::StopPlanResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void StopPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::motion::v1::StopPlanResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Returns the status of plans created by requests to move components // that are executing OR are part of an execution which changed it state // within the a 24HR TTL OR until the robot reinitializes. // This currently only returns plans for MoveOnGlobe and MoveOnMap. virtual void ListPlanStatuses(::grpc::ClientContext* context, const ::viam::service::motion::v1::ListPlanStatusesRequest* request, ::viam::service::motion::v1::ListPlanStatusesResponse* response, std::function) = 0; + virtual void ListPlanStatuses(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::motion::v1::ListPlanStatusesResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void ListPlanStatuses(::grpc::ClientContext* context, const ::viam::service::motion::v1::ListPlanStatusesRequest* request, ::viam::service::motion::v1::ListPlanStatusesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ListPlanStatuses(::grpc::ClientContext* context, const ::viam::service::motion::v1::ListPlanStatusesRequest* request, ::viam::service::motion::v1::ListPlanStatusesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void ListPlanStatuses(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::motion::v1::ListPlanStatusesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void ListPlanStatuses(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::motion::v1::ListPlanStatusesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // Returns the plan(s) & state history of the most recent execution to move a // component. Returns a result if the last execution is still executing OR // changed state within the last 24 hours AND the robot has not reinitialized. @@ -150,15 +211,39 @@ class MotionService final { // Replans share the execution_id of the previously executing plan. // This currently only returns plans for MoveOnGlobe and MoveOnMap. virtual void GetPlan(::grpc::ClientContext* context, const ::viam::service::motion::v1::GetPlanRequest* request, ::viam::service::motion::v1::GetPlanResponse* response, std::function) = 0; + virtual void GetPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::motion::v1::GetPlanResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetPlan(::grpc::ClientContext* context, const ::viam::service::motion::v1::GetPlanRequest* request, ::viam::service::motion::v1::GetPlanResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetPlan(::grpc::ClientContext* context, const ::viam::service::motion::v1::GetPlanRequest* request, ::viam::service::motion::v1::GetPlanResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::motion::v1::GetPlanResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::motion::v1::GetPlanResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // 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 ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif }; - typedef class async_interface experimental_async_interface; - virtual class async_interface* async() { return nullptr; } - class async_interface* experimental_async() { return async(); } - private: + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef class experimental_async_interface async_interface; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + async_interface* async() { return experimental_async(); } + #endif + virtual class experimental_async_interface* experimental_async() { return nullptr; } + private: virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::motion::v1::MoveResponse>* AsyncMoveRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::motion::v1::MoveResponse>* PrepareAsyncMoveRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::motion::v1::MoveOnMapResponse>* AsyncMoveOnMapRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnMapRequest& request, ::grpc::CompletionQueue* cq) = 0; @@ -178,7 +263,7 @@ class MotionService final { }; class Stub final : public StubInterface { public: - Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); ::grpc::Status Move(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveRequest& request, ::viam::service::motion::v1::MoveResponse* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::MoveResponse>> AsyncMove(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::MoveResponse>>(AsyncMoveRaw(context, request, cq)); @@ -235,36 +320,116 @@ class MotionService final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>> PrepareAsyncDoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>>(PrepareAsyncDoCommandRaw(context, request, cq)); } - class async final : - public StubInterface::async_interface { + class experimental_async final : + public StubInterface::experimental_async_interface { public: void Move(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveRequest* request, ::viam::service::motion::v1::MoveResponse* response, std::function) override; + void Move(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::motion::v1::MoveResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void Move(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveRequest* request, ::viam::service::motion::v1::MoveResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void Move(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveRequest* request, ::viam::service::motion::v1::MoveResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void Move(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::motion::v1::MoveResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void Move(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::motion::v1::MoveResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void MoveOnMap(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnMapRequest* request, ::viam::service::motion::v1::MoveOnMapResponse* response, std::function) override; + void MoveOnMap(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::motion::v1::MoveOnMapResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void MoveOnMap(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnMapRequest* request, ::viam::service::motion::v1::MoveOnMapResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void MoveOnMap(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnMapRequest* request, ::viam::service::motion::v1::MoveOnMapResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void MoveOnMap(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::motion::v1::MoveOnMapResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void MoveOnMap(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::motion::v1::MoveOnMapResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void MoveOnGlobe(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnGlobeRequest* request, ::viam::service::motion::v1::MoveOnGlobeResponse* response, std::function) override; + void MoveOnGlobe(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::motion::v1::MoveOnGlobeResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void MoveOnGlobe(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnGlobeRequest* request, ::viam::service::motion::v1::MoveOnGlobeResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void MoveOnGlobe(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnGlobeRequest* request, ::viam::service::motion::v1::MoveOnGlobeResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void MoveOnGlobe(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::motion::v1::MoveOnGlobeResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void MoveOnGlobe(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::motion::v1::MoveOnGlobeResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetPose(::grpc::ClientContext* context, const ::viam::service::motion::v1::GetPoseRequest* request, ::viam::service::motion::v1::GetPoseResponse* response, std::function) override; + void GetPose(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::motion::v1::GetPoseResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetPose(::grpc::ClientContext* context, const ::viam::service::motion::v1::GetPoseRequest* request, ::viam::service::motion::v1::GetPoseResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetPose(::grpc::ClientContext* context, const ::viam::service::motion::v1::GetPoseRequest* request, ::viam::service::motion::v1::GetPoseResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetPose(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::motion::v1::GetPoseResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetPose(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::motion::v1::GetPoseResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void StopPlan(::grpc::ClientContext* context, const ::viam::service::motion::v1::StopPlanRequest* request, ::viam::service::motion::v1::StopPlanResponse* response, std::function) override; + void StopPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::motion::v1::StopPlanResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void StopPlan(::grpc::ClientContext* context, const ::viam::service::motion::v1::StopPlanRequest* request, ::viam::service::motion::v1::StopPlanResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void StopPlan(::grpc::ClientContext* context, const ::viam::service::motion::v1::StopPlanRequest* request, ::viam::service::motion::v1::StopPlanResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void StopPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::motion::v1::StopPlanResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void StopPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::motion::v1::StopPlanResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void ListPlanStatuses(::grpc::ClientContext* context, const ::viam::service::motion::v1::ListPlanStatusesRequest* request, ::viam::service::motion::v1::ListPlanStatusesResponse* response, std::function) override; + void ListPlanStatuses(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::motion::v1::ListPlanStatusesResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void ListPlanStatuses(::grpc::ClientContext* context, const ::viam::service::motion::v1::ListPlanStatusesRequest* request, ::viam::service::motion::v1::ListPlanStatusesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ListPlanStatuses(::grpc::ClientContext* context, const ::viam::service::motion::v1::ListPlanStatusesRequest* request, ::viam::service::motion::v1::ListPlanStatusesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void ListPlanStatuses(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::motion::v1::ListPlanStatusesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void ListPlanStatuses(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::motion::v1::ListPlanStatusesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetPlan(::grpc::ClientContext* context, const ::viam::service::motion::v1::GetPlanRequest* request, ::viam::service::motion::v1::GetPlanResponse* response, std::function) override; + void GetPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::motion::v1::GetPlanResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetPlan(::grpc::ClientContext* context, const ::viam::service::motion::v1::GetPlanRequest* request, ::viam::service::motion::v1::GetPlanResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetPlan(::grpc::ClientContext* context, const ::viam::service::motion::v1::GetPlanRequest* request, ::viam::service::motion::v1::GetPlanResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::motion::v1::GetPlanResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::motion::v1::GetPlanResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif 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 ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif private: friend class Stub; - explicit async(Stub* stub): stub_(stub) { } + explicit experimental_async(Stub* stub): stub_(stub) { } Stub* stub() { return stub_; } Stub* stub_; }; - class async* async() override { return &async_stub_; } + class experimental_async_interface* experimental_async() override { return &async_stub_; } private: std::shared_ptr< ::grpc::ChannelInterface> channel_; - class async async_stub_{this}; + class experimental_async async_stub_{this}; ::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::MoveResponse>* AsyncMoveRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::MoveResponse>* PrepareAsyncMoveRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::service::motion::v1::MoveOnMapResponse>* AsyncMoveOnMapRaw(::grpc::ClientContext* context, const ::viam::service::motion::v1::MoveOnMapRequest& request, ::grpc::CompletionQueue* cq) override; @@ -487,22 +652,36 @@ class MotionService final { }; typedef WithAsyncMethod_Move > > > > > > > AsyncService; template - class WithCallbackMethod_Move : public BaseClass { + class ExperimentalWithCallbackMethod_Move : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_Move() { - ::grpc::Service::MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::viam::service::motion::v1::MoveRequest, ::viam::service::motion::v1::MoveResponse>( + ExperimentalWithCallbackMethod_Move() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::motion::v1::MoveRequest, ::viam::service::motion::v1::MoveResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::service::motion::v1::MoveRequest* request, ::viam::service::motion::v1::MoveResponse* response) { return this->Move(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::service::motion::v1::MoveRequest* request, ::viam::service::motion::v1::MoveResponse* response) { return this->Move(context, request, response); }));} void SetMessageAllocatorFor_Move( - ::grpc::MessageAllocator< ::viam::service::motion::v1::MoveRequest, ::viam::service::motion::v1::MoveResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::service::motion::v1::MoveRequest, ::viam::service::motion::v1::MoveResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::motion::v1::MoveRequest, ::viam::service::motion::v1::MoveResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(0); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::motion::v1::MoveRequest, ::viam::service::motion::v1::MoveResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_Move() override { + ~ExperimentalWithCallbackMethod_Move() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -510,26 +689,46 @@ class MotionService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* Move( - ::grpc::CallbackServerContext* /*context*/, const ::viam::service::motion::v1::MoveRequest* /*request*/, ::viam::service::motion::v1::MoveResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::motion::v1::MoveRequest* /*request*/, ::viam::service::motion::v1::MoveResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* Move( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::service::motion::v1::MoveRequest* /*request*/, ::viam::service::motion::v1::MoveResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_MoveOnMap : public BaseClass { + class ExperimentalWithCallbackMethod_MoveOnMap : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_MoveOnMap() { - ::grpc::Service::MarkMethodCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::viam::service::motion::v1::MoveOnMapRequest, ::viam::service::motion::v1::MoveOnMapResponse>( + ExperimentalWithCallbackMethod_MoveOnMap() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::motion::v1::MoveOnMapRequest, ::viam::service::motion::v1::MoveOnMapResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::service::motion::v1::MoveOnMapRequest* request, ::viam::service::motion::v1::MoveOnMapResponse* response) { return this->MoveOnMap(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::service::motion::v1::MoveOnMapRequest* request, ::viam::service::motion::v1::MoveOnMapResponse* response) { return this->MoveOnMap(context, request, response); }));} void SetMessageAllocatorFor_MoveOnMap( - ::grpc::MessageAllocator< ::viam::service::motion::v1::MoveOnMapRequest, ::viam::service::motion::v1::MoveOnMapResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::service::motion::v1::MoveOnMapRequest, ::viam::service::motion::v1::MoveOnMapResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::motion::v1::MoveOnMapRequest, ::viam::service::motion::v1::MoveOnMapResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(1); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::motion::v1::MoveOnMapRequest, ::viam::service::motion::v1::MoveOnMapResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_MoveOnMap() override { + ~ExperimentalWithCallbackMethod_MoveOnMap() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -537,26 +736,46 @@ class MotionService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* MoveOnMap( - ::grpc::CallbackServerContext* /*context*/, const ::viam::service::motion::v1::MoveOnMapRequest* /*request*/, ::viam::service::motion::v1::MoveOnMapResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::motion::v1::MoveOnMapRequest* /*request*/, ::viam::service::motion::v1::MoveOnMapResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* MoveOnMap( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::service::motion::v1::MoveOnMapRequest* /*request*/, ::viam::service::motion::v1::MoveOnMapResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_MoveOnGlobe : public BaseClass { + class ExperimentalWithCallbackMethod_MoveOnGlobe : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_MoveOnGlobe() { - ::grpc::Service::MarkMethodCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::viam::service::motion::v1::MoveOnGlobeRequest, ::viam::service::motion::v1::MoveOnGlobeResponse>( + ExperimentalWithCallbackMethod_MoveOnGlobe() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(2, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::motion::v1::MoveOnGlobeRequest, ::viam::service::motion::v1::MoveOnGlobeResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::service::motion::v1::MoveOnGlobeRequest* request, ::viam::service::motion::v1::MoveOnGlobeResponse* response) { return this->MoveOnGlobe(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::service::motion::v1::MoveOnGlobeRequest* request, ::viam::service::motion::v1::MoveOnGlobeResponse* response) { return this->MoveOnGlobe(context, request, response); }));} void SetMessageAllocatorFor_MoveOnGlobe( - ::grpc::MessageAllocator< ::viam::service::motion::v1::MoveOnGlobeRequest, ::viam::service::motion::v1::MoveOnGlobeResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::service::motion::v1::MoveOnGlobeRequest, ::viam::service::motion::v1::MoveOnGlobeResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::motion::v1::MoveOnGlobeRequest, ::viam::service::motion::v1::MoveOnGlobeResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(2); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::motion::v1::MoveOnGlobeRequest, ::viam::service::motion::v1::MoveOnGlobeResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_MoveOnGlobe() override { + ~ExperimentalWithCallbackMethod_MoveOnGlobe() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -564,26 +783,46 @@ class MotionService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* MoveOnGlobe( - ::grpc::CallbackServerContext* /*context*/, const ::viam::service::motion::v1::MoveOnGlobeRequest* /*request*/, ::viam::service::motion::v1::MoveOnGlobeResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::motion::v1::MoveOnGlobeRequest* /*request*/, ::viam::service::motion::v1::MoveOnGlobeResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* MoveOnGlobe( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::service::motion::v1::MoveOnGlobeRequest* /*request*/, ::viam::service::motion::v1::MoveOnGlobeResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetPose : public BaseClass { + class ExperimentalWithCallbackMethod_GetPose : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetPose() { - ::grpc::Service::MarkMethodCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::viam::service::motion::v1::GetPoseRequest, ::viam::service::motion::v1::GetPoseResponse>( + ExperimentalWithCallbackMethod_GetPose() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(3, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::motion::v1::GetPoseRequest, ::viam::service::motion::v1::GetPoseResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::service::motion::v1::GetPoseRequest* request, ::viam::service::motion::v1::GetPoseResponse* response) { return this->GetPose(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::service::motion::v1::GetPoseRequest* request, ::viam::service::motion::v1::GetPoseResponse* response) { return this->GetPose(context, request, response); }));} void SetMessageAllocatorFor_GetPose( - ::grpc::MessageAllocator< ::viam::service::motion::v1::GetPoseRequest, ::viam::service::motion::v1::GetPoseResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::service::motion::v1::GetPoseRequest, ::viam::service::motion::v1::GetPoseResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::motion::v1::GetPoseRequest, ::viam::service::motion::v1::GetPoseResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(3); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::motion::v1::GetPoseRequest, ::viam::service::motion::v1::GetPoseResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetPose() override { + ~ExperimentalWithCallbackMethod_GetPose() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -591,26 +830,46 @@ class MotionService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetPose( - ::grpc::CallbackServerContext* /*context*/, const ::viam::service::motion::v1::GetPoseRequest* /*request*/, ::viam::service::motion::v1::GetPoseResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::motion::v1::GetPoseRequest* /*request*/, ::viam::service::motion::v1::GetPoseResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetPose( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::service::motion::v1::GetPoseRequest* /*request*/, ::viam::service::motion::v1::GetPoseResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_StopPlan : public BaseClass { + class ExperimentalWithCallbackMethod_StopPlan : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_StopPlan() { - ::grpc::Service::MarkMethodCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::viam::service::motion::v1::StopPlanRequest, ::viam::service::motion::v1::StopPlanResponse>( + ExperimentalWithCallbackMethod_StopPlan() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(4, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::motion::v1::StopPlanRequest, ::viam::service::motion::v1::StopPlanResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::service::motion::v1::StopPlanRequest* request, ::viam::service::motion::v1::StopPlanResponse* response) { return this->StopPlan(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::service::motion::v1::StopPlanRequest* request, ::viam::service::motion::v1::StopPlanResponse* response) { return this->StopPlan(context, request, response); }));} void SetMessageAllocatorFor_StopPlan( - ::grpc::MessageAllocator< ::viam::service::motion::v1::StopPlanRequest, ::viam::service::motion::v1::StopPlanResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::service::motion::v1::StopPlanRequest, ::viam::service::motion::v1::StopPlanResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::motion::v1::StopPlanRequest, ::viam::service::motion::v1::StopPlanResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(4); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::motion::v1::StopPlanRequest, ::viam::service::motion::v1::StopPlanResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_StopPlan() override { + ~ExperimentalWithCallbackMethod_StopPlan() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -618,26 +877,46 @@ class MotionService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* StopPlan( - ::grpc::CallbackServerContext* /*context*/, const ::viam::service::motion::v1::StopPlanRequest* /*request*/, ::viam::service::motion::v1::StopPlanResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::motion::v1::StopPlanRequest* /*request*/, ::viam::service::motion::v1::StopPlanResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* StopPlan( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::service::motion::v1::StopPlanRequest* /*request*/, ::viam::service::motion::v1::StopPlanResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_ListPlanStatuses : public BaseClass { + class ExperimentalWithCallbackMethod_ListPlanStatuses : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_ListPlanStatuses() { - ::grpc::Service::MarkMethodCallback(5, - new ::grpc::internal::CallbackUnaryHandler< ::viam::service::motion::v1::ListPlanStatusesRequest, ::viam::service::motion::v1::ListPlanStatusesResponse>( + ExperimentalWithCallbackMethod_ListPlanStatuses() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(5, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::motion::v1::ListPlanStatusesRequest, ::viam::service::motion::v1::ListPlanStatusesResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::service::motion::v1::ListPlanStatusesRequest* request, ::viam::service::motion::v1::ListPlanStatusesResponse* response) { return this->ListPlanStatuses(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::service::motion::v1::ListPlanStatusesRequest* request, ::viam::service::motion::v1::ListPlanStatusesResponse* response) { return this->ListPlanStatuses(context, request, response); }));} void SetMessageAllocatorFor_ListPlanStatuses( - ::grpc::MessageAllocator< ::viam::service::motion::v1::ListPlanStatusesRequest, ::viam::service::motion::v1::ListPlanStatusesResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::service::motion::v1::ListPlanStatusesRequest, ::viam::service::motion::v1::ListPlanStatusesResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(5); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::motion::v1::ListPlanStatusesRequest, ::viam::service::motion::v1::ListPlanStatusesResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(5); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::motion::v1::ListPlanStatusesRequest, ::viam::service::motion::v1::ListPlanStatusesResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_ListPlanStatuses() override { + ~ExperimentalWithCallbackMethod_ListPlanStatuses() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -645,26 +924,46 @@ class MotionService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* ListPlanStatuses( - ::grpc::CallbackServerContext* /*context*/, const ::viam::service::motion::v1::ListPlanStatusesRequest* /*request*/, ::viam::service::motion::v1::ListPlanStatusesResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::motion::v1::ListPlanStatusesRequest* /*request*/, ::viam::service::motion::v1::ListPlanStatusesResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ListPlanStatuses( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::service::motion::v1::ListPlanStatusesRequest* /*request*/, ::viam::service::motion::v1::ListPlanStatusesResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetPlan : public BaseClass { + class ExperimentalWithCallbackMethod_GetPlan : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetPlan() { - ::grpc::Service::MarkMethodCallback(6, - new ::grpc::internal::CallbackUnaryHandler< ::viam::service::motion::v1::GetPlanRequest, ::viam::service::motion::v1::GetPlanResponse>( + ExperimentalWithCallbackMethod_GetPlan() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(6, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::motion::v1::GetPlanRequest, ::viam::service::motion::v1::GetPlanResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::service::motion::v1::GetPlanRequest* request, ::viam::service::motion::v1::GetPlanResponse* response) { return this->GetPlan(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::service::motion::v1::GetPlanRequest* request, ::viam::service::motion::v1::GetPlanResponse* response) { return this->GetPlan(context, request, response); }));} void SetMessageAllocatorFor_GetPlan( - ::grpc::MessageAllocator< ::viam::service::motion::v1::GetPlanRequest, ::viam::service::motion::v1::GetPlanResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::service::motion::v1::GetPlanRequest, ::viam::service::motion::v1::GetPlanResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(6); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::motion::v1::GetPlanRequest, ::viam::service::motion::v1::GetPlanResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(6); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::motion::v1::GetPlanRequest, ::viam::service::motion::v1::GetPlanResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetPlan() override { + ~ExperimentalWithCallbackMethod_GetPlan() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -672,26 +971,46 @@ class MotionService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetPlan( - ::grpc::CallbackServerContext* /*context*/, const ::viam::service::motion::v1::GetPlanRequest* /*request*/, ::viam::service::motion::v1::GetPlanResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::motion::v1::GetPlanRequest* /*request*/, ::viam::service::motion::v1::GetPlanResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetPlan( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::service::motion::v1::GetPlanRequest* /*request*/, ::viam::service::motion::v1::GetPlanResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_DoCommand : public BaseClass { + class ExperimentalWithCallbackMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_DoCommand() { - ::grpc::Service::MarkMethodCallback(7, - new ::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( + ExperimentalWithCallbackMethod_DoCommand() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(7, + new ::grpc_impl::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); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + 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::experimental::MessageAllocator< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(7); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(7); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_DoCommand() override { + ~ExperimentalWithCallbackMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -699,11 +1018,20 @@ class MotionService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DoCommand( - ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DoCommand( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) + #endif + { return nullptr; } }; - typedef WithCallbackMethod_Move > > > > > > > CallbackService; - typedef CallbackService ExperimentalCallbackService; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef ExperimentalWithCallbackMethod_Move > > > > > > > CallbackService; + #endif + + typedef ExperimentalWithCallbackMethod_Move > > > > > > > ExperimentalCallbackService; template class WithGenericMethod_Move : public BaseClass { private: @@ -1001,17 +1329,27 @@ class MotionService final { } }; template - class WithRawCallbackMethod_Move : public BaseClass { + class ExperimentalWithRawCallbackMethod_Move : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_Move() { - ::grpc::Service::MarkMethodRawCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_Move() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Move(context, request, response); })); - } - ~WithRawCallbackMethod_Move() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Move(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_Move() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1019,21 +1357,37 @@ class MotionService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* Move( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* Move( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_MoveOnMap : public BaseClass { + class ExperimentalWithRawCallbackMethod_MoveOnMap : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_MoveOnMap() { - ::grpc::Service::MarkMethodRawCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_MoveOnMap() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->MoveOnMap(context, request, response); })); - } - ~WithRawCallbackMethod_MoveOnMap() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->MoveOnMap(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_MoveOnMap() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1041,21 +1395,37 @@ class MotionService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* MoveOnMap( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* MoveOnMap( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_MoveOnGlobe : public BaseClass { + class ExperimentalWithRawCallbackMethod_MoveOnGlobe : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_MoveOnGlobe() { - ::grpc::Service::MarkMethodRawCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_MoveOnGlobe() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(2, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->MoveOnGlobe(context, request, response); })); - } - ~WithRawCallbackMethod_MoveOnGlobe() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->MoveOnGlobe(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_MoveOnGlobe() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1063,21 +1433,37 @@ class MotionService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* MoveOnGlobe( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* MoveOnGlobe( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetPose : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetPose : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetPose() { - ::grpc::Service::MarkMethodRawCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetPose() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(3, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetPose(context, request, response); })); - } - ~WithRawCallbackMethod_GetPose() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetPose(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetPose() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1085,21 +1471,37 @@ class MotionService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetPose( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetPose( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_StopPlan : public BaseClass { + class ExperimentalWithRawCallbackMethod_StopPlan : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_StopPlan() { - ::grpc::Service::MarkMethodRawCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_StopPlan() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(4, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->StopPlan(context, request, response); })); - } - ~WithRawCallbackMethod_StopPlan() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->StopPlan(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_StopPlan() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1107,21 +1509,37 @@ class MotionService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* StopPlan( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* StopPlan( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_ListPlanStatuses : public BaseClass { + class ExperimentalWithRawCallbackMethod_ListPlanStatuses : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_ListPlanStatuses() { - ::grpc::Service::MarkMethodRawCallback(5, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_ListPlanStatuses() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(5, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ListPlanStatuses(context, request, response); })); - } - ~WithRawCallbackMethod_ListPlanStatuses() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ListPlanStatuses(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_ListPlanStatuses() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1129,21 +1547,37 @@ class MotionService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* ListPlanStatuses( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* ListPlanStatuses( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetPlan : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetPlan : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetPlan() { - ::grpc::Service::MarkMethodRawCallback(6, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetPlan() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(6, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetPlan(context, request, response); })); - } - ~WithRawCallbackMethod_GetPlan() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetPlan(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetPlan() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1151,21 +1585,37 @@ class MotionService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetPlan( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetPlan( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_DoCommand : public BaseClass { + class ExperimentalWithRawCallbackMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_DoCommand() { - ::grpc::Service::MarkMethodRawCallback(7, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_DoCommand() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(7, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DoCommand(context, request, response); })); - } - ~WithRawCallbackMethod_DoCommand() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DoCommand(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1173,8 +1623,14 @@ class MotionService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DoCommand( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DoCommand( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template class WithStreamedUnaryMethod_Move : public BaseClass { @@ -1185,8 +1641,8 @@ class MotionService final { ::grpc::Service::MarkMethodStreamed(0, new ::grpc::internal::StreamedUnaryHandler< ::viam::service::motion::v1::MoveRequest, ::viam::service::motion::v1::MoveResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::service::motion::v1::MoveRequest, ::viam::service::motion::v1::MoveResponse>* streamer) { return this->StreamedMove(context, streamer); @@ -1212,8 +1668,8 @@ class MotionService final { ::grpc::Service::MarkMethodStreamed(1, new ::grpc::internal::StreamedUnaryHandler< ::viam::service::motion::v1::MoveOnMapRequest, ::viam::service::motion::v1::MoveOnMapResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::service::motion::v1::MoveOnMapRequest, ::viam::service::motion::v1::MoveOnMapResponse>* streamer) { return this->StreamedMoveOnMap(context, streamer); @@ -1239,8 +1695,8 @@ class MotionService final { ::grpc::Service::MarkMethodStreamed(2, new ::grpc::internal::StreamedUnaryHandler< ::viam::service::motion::v1::MoveOnGlobeRequest, ::viam::service::motion::v1::MoveOnGlobeResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::service::motion::v1::MoveOnGlobeRequest, ::viam::service::motion::v1::MoveOnGlobeResponse>* streamer) { return this->StreamedMoveOnGlobe(context, streamer); @@ -1266,8 +1722,8 @@ class MotionService final { ::grpc::Service::MarkMethodStreamed(3, new ::grpc::internal::StreamedUnaryHandler< ::viam::service::motion::v1::GetPoseRequest, ::viam::service::motion::v1::GetPoseResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::service::motion::v1::GetPoseRequest, ::viam::service::motion::v1::GetPoseResponse>* streamer) { return this->StreamedGetPose(context, streamer); @@ -1293,8 +1749,8 @@ class MotionService final { ::grpc::Service::MarkMethodStreamed(4, new ::grpc::internal::StreamedUnaryHandler< ::viam::service::motion::v1::StopPlanRequest, ::viam::service::motion::v1::StopPlanResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::service::motion::v1::StopPlanRequest, ::viam::service::motion::v1::StopPlanResponse>* streamer) { return this->StreamedStopPlan(context, streamer); @@ -1320,8 +1776,8 @@ class MotionService final { ::grpc::Service::MarkMethodStreamed(5, new ::grpc::internal::StreamedUnaryHandler< ::viam::service::motion::v1::ListPlanStatusesRequest, ::viam::service::motion::v1::ListPlanStatusesResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::service::motion::v1::ListPlanStatusesRequest, ::viam::service::motion::v1::ListPlanStatusesResponse>* streamer) { return this->StreamedListPlanStatuses(context, streamer); @@ -1347,8 +1803,8 @@ class MotionService final { ::grpc::Service::MarkMethodStreamed(6, new ::grpc::internal::StreamedUnaryHandler< ::viam::service::motion::v1::GetPlanRequest, ::viam::service::motion::v1::GetPlanResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::service::motion::v1::GetPlanRequest, ::viam::service::motion::v1::GetPlanResponse>* streamer) { return this->StreamedGetPlan(context, streamer); @@ -1374,8 +1830,8 @@ class MotionService final { ::grpc::Service::MarkMethodStreamed(7, new ::grpc::internal::StreamedUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* streamer) { return this->StreamedDoCommand(context, streamer); diff --git a/src/viam/api/service/motion/v1/motion.pb.cc b/src/viam/api/service/motion/v1/motion.pb.cc index 308913e01..1faa2d1be 100644 --- a/src/viam/api/service/motion/v1/motion.pb.cc +++ b/src/viam/api/service/motion/v1/motion.pb.cc @@ -4,1714 +4,1405 @@ #include "service/motion/v1/motion.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace viam { namespace service { namespace motion { namespace v1 { - template -PROTOBUF_CONSTEXPR StopPlanResponse::StopPlanResponse(::_pbi::ConstantInitialized) {} -struct StopPlanResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR StopPlanResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StopPlanResponseDefaultTypeInternal() {} - union { - StopPlanResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopPlanResponseDefaultTypeInternal _StopPlanResponse_default_instance_; - -inline constexpr OrientationConstraint::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - orientation_tolerance_degs_{0} {} - -template -PROTOBUF_CONSTEXPR OrientationConstraint::OrientationConstraint(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct OrientationConstraintDefaultTypeInternal { - PROTOBUF_CONSTEXPR OrientationConstraintDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~OrientationConstraintDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR MoveRequest::MoveRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , destination_(nullptr) + , component_name_(nullptr) + , world_state_(nullptr) + , constraints_(nullptr) + , extra_(nullptr){} +struct MoveRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR MoveRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~MoveRequestDefaultTypeInternal() {} union { - OrientationConstraint _instance; + MoveRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OrientationConstraintDefaultTypeInternal _OrientationConstraint_default_instance_; - -inline constexpr MoveResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : success_{false}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR MoveResponse::MoveResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveRequestDefaultTypeInternal _MoveRequest_default_instance_; +PROTOBUF_CONSTEXPR MoveResponse::MoveResponse( + ::_pbi::ConstantInitialized) + : success_(false){} struct MoveResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR MoveResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR MoveResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~MoveResponseDefaultTypeInternal() {} union { MoveResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveResponseDefaultTypeInternal _MoveResponse_default_instance_; - -inline constexpr MoveOnMapResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : execution_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR MoveOnMapResponse::MoveOnMapResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveResponseDefaultTypeInternal _MoveResponse_default_instance_; +PROTOBUF_CONSTEXPR MoveOnMapRequest::MoveOnMapRequest( + ::_pbi::ConstantInitialized) + : obstacles_() + , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , destination_(nullptr) + , component_name_(nullptr) + , slam_service_name_(nullptr) + , motion_configuration_(nullptr) + , extra_(nullptr){} +struct MoveOnMapRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR MoveOnMapRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~MoveOnMapRequestDefaultTypeInternal() {} + union { + MoveOnMapRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveOnMapRequestDefaultTypeInternal _MoveOnMapRequest_default_instance_; +PROTOBUF_CONSTEXPR MoveOnMapResponse::MoveOnMapResponse( + ::_pbi::ConstantInitialized) + : execution_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} struct MoveOnMapResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR MoveOnMapResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR MoveOnMapResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~MoveOnMapResponseDefaultTypeInternal() {} union { MoveOnMapResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveOnMapResponseDefaultTypeInternal _MoveOnMapResponse_default_instance_; - -inline constexpr MoveOnGlobeResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : execution_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR MoveOnGlobeResponse::MoveOnGlobeResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +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) + : obstacle_detectors_() + , position_polling_frequency_hz_(0) + , obstacle_polling_frequency_hz_(0) + , plan_deviation_m_(0) + , linear_m_per_sec_(0) + , angular_degs_per_sec_(0){} +struct MotionConfigurationDefaultTypeInternal { + PROTOBUF_CONSTEXPR MotionConfigurationDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~MotionConfigurationDefaultTypeInternal() {} + union { + MotionConfiguration _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MotionConfigurationDefaultTypeInternal _MotionConfiguration_default_instance_; +PROTOBUF_CONSTEXPR MoveOnGlobeRequest::MoveOnGlobeRequest( + ::_pbi::ConstantInitialized) + : obstacles_() + , bounding_regions_() + , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , destination_(nullptr) + , component_name_(nullptr) + , movement_sensor_name_(nullptr) + , motion_configuration_(nullptr) + , extra_(nullptr) + , heading_(0){} +struct MoveOnGlobeRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR MoveOnGlobeRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~MoveOnGlobeRequestDefaultTypeInternal() {} + union { + MoveOnGlobeRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveOnGlobeRequestDefaultTypeInternal _MoveOnGlobeRequest_default_instance_; +PROTOBUF_CONSTEXPR MoveOnGlobeResponse::MoveOnGlobeResponse( + ::_pbi::ConstantInitialized) + : execution_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} struct MoveOnGlobeResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR MoveOnGlobeResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR MoveOnGlobeResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~MoveOnGlobeResponseDefaultTypeInternal() {} union { MoveOnGlobeResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveOnGlobeResponseDefaultTypeInternal _MoveOnGlobeResponse_default_instance_; - -inline constexpr LinearConstraint::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - line_tolerance_mm_{0}, - orientation_tolerance_degs_{0} {} - -template -PROTOBUF_CONSTEXPR LinearConstraint::LinearConstraint(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct LinearConstraintDefaultTypeInternal { - PROTOBUF_CONSTEXPR LinearConstraintDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~LinearConstraintDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveOnGlobeResponseDefaultTypeInternal _MoveOnGlobeResponse_default_instance_; +PROTOBUF_CONSTEXPR GetPoseRequest::GetPoseRequest( + ::_pbi::ConstantInitialized) + : supplemental_transforms_() + , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , destination_frame_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , component_name_(nullptr) + , extra_(nullptr){} +struct GetPoseRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPoseRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPoseRequestDefaultTypeInternal() {} union { - LinearConstraint _instance; + GetPoseRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LinearConstraintDefaultTypeInternal _LinearConstraint_default_instance_; - -inline constexpr CollisionSpecification_AllowedFrameCollisions::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : frame1_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - frame2_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR CollisionSpecification_AllowedFrameCollisions::CollisionSpecification_AllowedFrameCollisions(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct CollisionSpecification_AllowedFrameCollisionsDefaultTypeInternal { - PROTOBUF_CONSTEXPR CollisionSpecification_AllowedFrameCollisionsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CollisionSpecification_AllowedFrameCollisionsDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPoseRequestDefaultTypeInternal _GetPoseRequest_default_instance_; +PROTOBUF_CONSTEXPR GetPoseResponse::GetPoseResponse( + ::_pbi::ConstantInitialized) + : pose_(nullptr){} +struct GetPoseResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPoseResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPoseResponseDefaultTypeInternal() {} union { - CollisionSpecification_AllowedFrameCollisions _instance; + GetPoseResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CollisionSpecification_AllowedFrameCollisionsDefaultTypeInternal _CollisionSpecification_AllowedFrameCollisions_default_instance_; - -inline constexpr StopPlanRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - component_name_{nullptr}, - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR StopPlanRequest::StopPlanRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPoseResponseDefaultTypeInternal _GetPoseResponse_default_instance_; +PROTOBUF_CONSTEXPR StopPlanRequest::StopPlanRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , component_name_(nullptr) + , extra_(nullptr){} struct StopPlanRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR StopPlanRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR StopPlanRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~StopPlanRequestDefaultTypeInternal() {} union { StopPlanRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopPlanRequestDefaultTypeInternal _StopPlanRequest_default_instance_; - -inline constexpr PlanStatus::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - reason_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - timestamp_{nullptr}, - state_{static_cast< ::viam::service::motion::v1::PlanState >(0)} {} - -template -PROTOBUF_CONSTEXPR PlanStatus::PlanStatus(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct PlanStatusDefaultTypeInternal { - PROTOBUF_CONSTEXPR PlanStatusDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~PlanStatusDefaultTypeInternal() {} - union { - PlanStatus _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PlanStatusDefaultTypeInternal _PlanStatus_default_instance_; - -inline constexpr ObstacleDetector::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - vision_service_{nullptr}, - camera_{nullptr} {} - -template -PROTOBUF_CONSTEXPR ObstacleDetector::ObstacleDetector(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ObstacleDetectorDefaultTypeInternal { - PROTOBUF_CONSTEXPR ObstacleDetectorDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ObstacleDetectorDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopPlanRequestDefaultTypeInternal _StopPlanRequest_default_instance_; +PROTOBUF_CONSTEXPR StopPlanResponse::StopPlanResponse( + ::_pbi::ConstantInitialized){} +struct StopPlanResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR StopPlanResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StopPlanResponseDefaultTypeInternal() {} union { - ObstacleDetector _instance; + StopPlanResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ObstacleDetectorDefaultTypeInternal _ObstacleDetector_default_instance_; - -inline constexpr ListPlanStatusesRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr}, - only_active_plans_{false} {} - -template -PROTOBUF_CONSTEXPR ListPlanStatusesRequest::ListPlanStatusesRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopPlanResponseDefaultTypeInternal _StopPlanResponse_default_instance_; +PROTOBUF_CONSTEXPR ListPlanStatusesRequest::ListPlanStatusesRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr) + , only_active_plans_(false){} struct ListPlanStatusesRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR ListPlanStatusesRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ListPlanStatusesRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~ListPlanStatusesRequestDefaultTypeInternal() {} union { ListPlanStatusesRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListPlanStatusesRequestDefaultTypeInternal _ListPlanStatusesRequest_default_instance_; - -inline constexpr GetPlanRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - execution_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - component_name_{nullptr}, - extra_{nullptr}, - last_plan_only_{false} {} - -template -PROTOBUF_CONSTEXPR GetPlanRequest::GetPlanRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetPlanRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetPlanRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetPlanRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListPlanStatusesRequestDefaultTypeInternal _ListPlanStatusesRequest_default_instance_; +PROTOBUF_CONSTEXPR ListPlanStatusesResponse::ListPlanStatusesResponse( + ::_pbi::ConstantInitialized) + : plan_statuses_with_ids_(){} +struct ListPlanStatusesResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ListPlanStatusesResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ListPlanStatusesResponseDefaultTypeInternal() {} union { - GetPlanRequest _instance; + ListPlanStatusesResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPlanRequestDefaultTypeInternal _GetPlanRequest_default_instance_; - -inline constexpr ComponentState::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - pose_{nullptr} {} - -template -PROTOBUF_CONSTEXPR ComponentState::ComponentState(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ComponentStateDefaultTypeInternal { - PROTOBUF_CONSTEXPR ComponentStateDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ComponentStateDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListPlanStatusesResponseDefaultTypeInternal _ListPlanStatusesResponse_default_instance_; +PROTOBUF_CONSTEXPR GetPlanRequest::GetPlanRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , execution_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , component_name_(nullptr) + , extra_(nullptr) + , last_plan_only_(false){} +struct GetPlanRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPlanRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPlanRequestDefaultTypeInternal() {} union { - ComponentState _instance; + GetPlanRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ComponentStateDefaultTypeInternal _ComponentState_default_instance_; - -inline constexpr CollisionSpecification::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : allows_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR CollisionSpecification::CollisionSpecification(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct CollisionSpecificationDefaultTypeInternal { - PROTOBUF_CONSTEXPR CollisionSpecificationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CollisionSpecificationDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPlanRequestDefaultTypeInternal _GetPlanRequest_default_instance_; +PROTOBUF_CONSTEXPR GetPlanResponse::GetPlanResponse( + ::_pbi::ConstantInitialized) + : replan_history_() + , current_plan_with_status_(nullptr){} +struct GetPlanResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPlanResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPlanResponseDefaultTypeInternal() {} union { - CollisionSpecification _instance; + GetPlanResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CollisionSpecificationDefaultTypeInternal _CollisionSpecification_default_instance_; - template -PROTOBUF_CONSTEXPR PlanStep_StepEntry_DoNotUse::PlanStep_StepEntry_DoNotUse(::_pbi::ConstantInitialized) {} -struct PlanStep_StepEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR PlanStep_StepEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~PlanStep_StepEntry_DoNotUseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPlanResponseDefaultTypeInternal _GetPlanResponse_default_instance_; +PROTOBUF_CONSTEXPR Constraints::Constraints( + ::_pbi::ConstantInitialized) + : linear_constraint_() + , orientation_constraint_() + , collision_specification_(){} +struct ConstraintsDefaultTypeInternal { + PROTOBUF_CONSTEXPR ConstraintsDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ConstraintsDefaultTypeInternal() {} union { - PlanStep_StepEntry_DoNotUse _instance; + Constraints _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PlanStep_StepEntry_DoNotUseDefaultTypeInternal _PlanStep_StepEntry_DoNotUse_default_instance_; - -inline constexpr PlanStatusWithID::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - plan_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - execution_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - component_name_{nullptr}, - status_{nullptr} {} - -template -PROTOBUF_CONSTEXPR PlanStatusWithID::PlanStatusWithID(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct PlanStatusWithIDDefaultTypeInternal { - PROTOBUF_CONSTEXPR PlanStatusWithIDDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~PlanStatusWithIDDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConstraintsDefaultTypeInternal _Constraints_default_instance_; +PROTOBUF_CONSTEXPR LinearConstraint::LinearConstraint( + ::_pbi::ConstantInitialized) + : line_tolerance_mm_(0) + , orientation_tolerance_degs_(0){} +struct LinearConstraintDefaultTypeInternal { + PROTOBUF_CONSTEXPR LinearConstraintDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~LinearConstraintDefaultTypeInternal() {} union { - PlanStatusWithID _instance; + LinearConstraint _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PlanStatusWithIDDefaultTypeInternal _PlanStatusWithID_default_instance_; - -inline constexpr MotionConfiguration::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - obstacle_detectors_{}, - position_polling_frequency_hz_{0}, - obstacle_polling_frequency_hz_{0}, - plan_deviation_m_{0}, - linear_m_per_sec_{0}, - angular_degs_per_sec_{0} {} - -template -PROTOBUF_CONSTEXPR MotionConfiguration::MotionConfiguration(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct MotionConfigurationDefaultTypeInternal { - PROTOBUF_CONSTEXPR MotionConfigurationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~MotionConfigurationDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LinearConstraintDefaultTypeInternal _LinearConstraint_default_instance_; +PROTOBUF_CONSTEXPR OrientationConstraint::OrientationConstraint( + ::_pbi::ConstantInitialized) + : orientation_tolerance_degs_(0){} +struct OrientationConstraintDefaultTypeInternal { + PROTOBUF_CONSTEXPR OrientationConstraintDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~OrientationConstraintDefaultTypeInternal() {} union { - MotionConfiguration _instance; + OrientationConstraint _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MotionConfigurationDefaultTypeInternal _MotionConfiguration_default_instance_; - -inline constexpr GetPoseResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - pose_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetPoseResponse::GetPoseResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetPoseResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetPoseResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetPoseResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OrientationConstraintDefaultTypeInternal _OrientationConstraint_default_instance_; +PROTOBUF_CONSTEXPR CollisionSpecification_AllowedFrameCollisions::CollisionSpecification_AllowedFrameCollisions( + ::_pbi::ConstantInitialized) + : frame1_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , frame2_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct CollisionSpecification_AllowedFrameCollisionsDefaultTypeInternal { + PROTOBUF_CONSTEXPR CollisionSpecification_AllowedFrameCollisionsDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CollisionSpecification_AllowedFrameCollisionsDefaultTypeInternal() {} union { - GetPoseResponse _instance; + CollisionSpecification_AllowedFrameCollisions _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPoseResponseDefaultTypeInternal _GetPoseResponse_default_instance_; - -inline constexpr Constraints::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : linear_constraint_{}, - orientation_constraint_{}, - collision_specification_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR Constraints::Constraints(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ConstraintsDefaultTypeInternal { - PROTOBUF_CONSTEXPR ConstraintsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ConstraintsDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CollisionSpecification_AllowedFrameCollisionsDefaultTypeInternal _CollisionSpecification_AllowedFrameCollisions_default_instance_; +PROTOBUF_CONSTEXPR CollisionSpecification::CollisionSpecification( + ::_pbi::ConstantInitialized) + : allows_(){} +struct CollisionSpecificationDefaultTypeInternal { + PROTOBUF_CONSTEXPR CollisionSpecificationDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CollisionSpecificationDefaultTypeInternal() {} union { - Constraints _instance; + CollisionSpecification _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConstraintsDefaultTypeInternal _Constraints_default_instance_; - -inline constexpr PlanStep::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : step_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR PlanStep::PlanStep(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct PlanStepDefaultTypeInternal { - PROTOBUF_CONSTEXPR PlanStepDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~PlanStepDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CollisionSpecificationDefaultTypeInternal _CollisionSpecification_default_instance_; +PROTOBUF_CONSTEXPR PlanWithStatus::PlanWithStatus( + ::_pbi::ConstantInitialized) + : status_history_() + , plan_(nullptr) + , status_(nullptr){} +struct PlanWithStatusDefaultTypeInternal { + PROTOBUF_CONSTEXPR PlanWithStatusDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~PlanWithStatusDefaultTypeInternal() {} union { - PlanStep _instance; + PlanWithStatus _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PlanStepDefaultTypeInternal _PlanStep_default_instance_; - -inline constexpr MoveOnMapRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - obstacles_{}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - destination_{nullptr}, - component_name_{nullptr}, - slam_service_name_{nullptr}, - motion_configuration_{nullptr}, - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR MoveOnMapRequest::MoveOnMapRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct MoveOnMapRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR MoveOnMapRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~MoveOnMapRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PlanWithStatusDefaultTypeInternal _PlanWithStatus_default_instance_; +PROTOBUF_CONSTEXPR PlanStatusWithID::PlanStatusWithID( + ::_pbi::ConstantInitialized) + : plan_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , execution_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , component_name_(nullptr) + , status_(nullptr){} +struct PlanStatusWithIDDefaultTypeInternal { + PROTOBUF_CONSTEXPR PlanStatusWithIDDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~PlanStatusWithIDDefaultTypeInternal() {} union { - MoveOnMapRequest _instance; + PlanStatusWithID _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveOnMapRequestDefaultTypeInternal _MoveOnMapRequest_default_instance_; - -inline constexpr ListPlanStatusesResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : plan_statuses_with_ids_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR ListPlanStatusesResponse::ListPlanStatusesResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ListPlanStatusesResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ListPlanStatusesResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ListPlanStatusesResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PlanStatusWithIDDefaultTypeInternal _PlanStatusWithID_default_instance_; +PROTOBUF_CONSTEXPR PlanStatus::PlanStatus( + ::_pbi::ConstantInitialized) + : reason_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , timestamp_(nullptr) + , state_(0) +{} +struct PlanStatusDefaultTypeInternal { + PROTOBUF_CONSTEXPR PlanStatusDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~PlanStatusDefaultTypeInternal() {} union { - ListPlanStatusesResponse _instance; + PlanStatus _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListPlanStatusesResponseDefaultTypeInternal _ListPlanStatusesResponse_default_instance_; - -inline constexpr Plan::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - steps_{}, - id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - execution_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - component_name_{nullptr} {} - -template -PROTOBUF_CONSTEXPR Plan::Plan(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PlanStatusDefaultTypeInternal _PlanStatus_default_instance_; +PROTOBUF_CONSTEXPR Plan::Plan( + ::_pbi::ConstantInitialized) + : steps_() + , id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , execution_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , component_name_(nullptr){} struct PlanDefaultTypeInternal { - PROTOBUF_CONSTEXPR PlanDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR PlanDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~PlanDefaultTypeInternal() {} union { Plan _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PlanDefaultTypeInternal _Plan_default_instance_; - -inline constexpr MoveOnGlobeRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - obstacles_{}, - bounding_regions_{}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - destination_{nullptr}, - component_name_{nullptr}, - movement_sensor_name_{nullptr}, - motion_configuration_{nullptr}, - extra_{nullptr}, - heading_{0} {} - -template -PROTOBUF_CONSTEXPR MoveOnGlobeRequest::MoveOnGlobeRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct MoveOnGlobeRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR MoveOnGlobeRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~MoveOnGlobeRequestDefaultTypeInternal() {} - union { - MoveOnGlobeRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveOnGlobeRequestDefaultTypeInternal _MoveOnGlobeRequest_default_instance_; - -inline constexpr GetPoseRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - supplemental_transforms_{}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - destination_frame_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - component_name_{nullptr}, - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetPoseRequest::GetPoseRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetPoseRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetPoseRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetPoseRequestDefaultTypeInternal() {} - union { - GetPoseRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPoseRequestDefaultTypeInternal _GetPoseRequest_default_instance_; - -inline constexpr PlanWithStatus::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - status_history_{}, - plan_{nullptr}, - status_{nullptr} {} - -template -PROTOBUF_CONSTEXPR PlanWithStatus::PlanWithStatus(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct PlanWithStatusDefaultTypeInternal { - PROTOBUF_CONSTEXPR PlanWithStatusDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~PlanWithStatusDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PlanDefaultTypeInternal _Plan_default_instance_; +PROTOBUF_CONSTEXPR PlanStep_StepEntry_DoNotUse::PlanStep_StepEntry_DoNotUse( + ::_pbi::ConstantInitialized){} +struct PlanStep_StepEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR PlanStep_StepEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~PlanStep_StepEntry_DoNotUseDefaultTypeInternal() {} union { - PlanWithStatus _instance; + PlanStep_StepEntry_DoNotUse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PlanWithStatusDefaultTypeInternal _PlanWithStatus_default_instance_; - -inline constexpr MoveRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - destination_{nullptr}, - component_name_{nullptr}, - world_state_{nullptr}, - constraints_{nullptr}, - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR MoveRequest::MoveRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct MoveRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR MoveRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~MoveRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PlanStep_StepEntry_DoNotUseDefaultTypeInternal _PlanStep_StepEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR PlanStep::PlanStep( + ::_pbi::ConstantInitialized) + : step_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}){} +struct PlanStepDefaultTypeInternal { + PROTOBUF_CONSTEXPR PlanStepDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~PlanStepDefaultTypeInternal() {} union { - MoveRequest _instance; + PlanStep _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveRequestDefaultTypeInternal _MoveRequest_default_instance_; - -inline constexpr GetPlanResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - replan_history_{}, - current_plan_with_status_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetPlanResponse::GetPlanResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetPlanResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetPlanResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetPlanResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PlanStepDefaultTypeInternal _PlanStep_default_instance_; +PROTOBUF_CONSTEXPR ComponentState::ComponentState( + ::_pbi::ConstantInitialized) + : pose_(nullptr){} +struct ComponentStateDefaultTypeInternal { + PROTOBUF_CONSTEXPR ComponentStateDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ComponentStateDefaultTypeInternal() {} union { - GetPlanResponse _instance; + ComponentState _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPlanResponseDefaultTypeInternal _GetPlanResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ComponentStateDefaultTypeInternal _ComponentState_default_instance_; } // namespace v1 } // namespace motion } // namespace service } // namespace viam static ::_pb::Metadata file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[28]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_service_2fmotion_2fv1_2fmotion_2eproto[1]; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_service_2fmotion_2fv1_2fmotion_2eproto = nullptr; -const ::uint32_t TableStruct_service_2fmotion_2fv1_2fmotion_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveRequest, _impl_.destination_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveRequest, _impl_.component_name_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveRequest, _impl_.world_state_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveRequest, _impl_.constraints_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveRequest, _impl_.extra_), - ~0u, - 0, - 1, - 2, - 3, - 4, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveResponse, _impl_.success_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnMapRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnMapRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnMapRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnMapRequest, _impl_.destination_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnMapRequest, _impl_.component_name_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnMapRequest, _impl_.slam_service_name_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnMapRequest, _impl_.motion_configuration_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnMapRequest, _impl_.obstacles_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnMapRequest, _impl_.extra_), - ~0u, - 0, - 1, - 2, - 3, - ~0u, - 4, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnMapResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnMapResponse, _impl_.execution_id_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::ObstacleDetector, _impl_._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_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::ObstacleDetector, _impl_.vision_service_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::ObstacleDetector, _impl_.camera_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MotionConfiguration, _impl_._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_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MotionConfiguration, _impl_.obstacle_detectors_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MotionConfiguration, _impl_.position_polling_frequency_hz_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MotionConfiguration, _impl_.obstacle_polling_frequency_hz_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MotionConfiguration, _impl_.plan_deviation_m_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MotionConfiguration, _impl_.linear_m_per_sec_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MotionConfiguration, _impl_.angular_degs_per_sec_), - ~0u, - 0, - 1, - 2, - 3, - 4, - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnGlobeRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnGlobeRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnGlobeRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnGlobeRequest, _impl_.destination_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnGlobeRequest, _impl_.heading_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnGlobeRequest, _impl_.component_name_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnGlobeRequest, _impl_.movement_sensor_name_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnGlobeRequest, _impl_.obstacles_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnGlobeRequest, _impl_.motion_configuration_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnGlobeRequest, _impl_.bounding_regions_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnGlobeRequest, _impl_.extra_), - ~0u, - 0, - 5, - 1, - 2, - ~0u, - 3, - ~0u, - 4, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnGlobeResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnGlobeResponse, _impl_.execution_id_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPoseRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPoseRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPoseRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPoseRequest, _impl_.component_name_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPoseRequest, _impl_.destination_frame_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPoseRequest, _impl_.supplemental_transforms_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPoseRequest, _impl_.extra_), - ~0u, - 0, - ~0u, - ~0u, - 1, - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPoseResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPoseResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPoseResponse, _impl_.pose_), - 0, - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::StopPlanRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::StopPlanRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::StopPlanRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::StopPlanRequest, _impl_.component_name_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::StopPlanRequest, _impl_.extra_), - ~0u, - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::StopPlanResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::ListPlanStatusesRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::ListPlanStatusesRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::ListPlanStatusesRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::ListPlanStatusesRequest, _impl_.only_active_plans_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::ListPlanStatusesRequest, _impl_.extra_), - ~0u, - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::ListPlanStatusesResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::ListPlanStatusesResponse, _impl_.plan_statuses_with_ids_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPlanRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPlanRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPlanRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPlanRequest, _impl_.component_name_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPlanRequest, _impl_.last_plan_only_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPlanRequest, _impl_.execution_id_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPlanRequest, _impl_.extra_), - ~0u, - 1, - ~0u, - 0, - 2, - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPlanResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPlanResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPlanResponse, _impl_.current_plan_with_status_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPlanResponse, _impl_.replan_history_), - 0, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::Constraints, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::Constraints, _impl_.linear_constraint_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::Constraints, _impl_.orientation_constraint_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::Constraints, _impl_.collision_specification_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::LinearConstraint, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::LinearConstraint, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::LinearConstraint, _impl_.line_tolerance_mm_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::LinearConstraint, _impl_.orientation_tolerance_degs_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::OrientationConstraint, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::OrientationConstraint, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::OrientationConstraint, _impl_.orientation_tolerance_degs_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions, _impl_.frame1_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions, _impl_.frame2_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::CollisionSpecification, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::CollisionSpecification, _impl_.allows_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::PlanWithStatus, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::PlanWithStatus, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::PlanWithStatus, _impl_.plan_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::PlanWithStatus, _impl_.status_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::PlanWithStatus, _impl_.status_history_), - 0, - 1, - ~0u, - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::PlanStatusWithID, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::PlanStatusWithID, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::PlanStatusWithID, _impl_.plan_id_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::PlanStatusWithID, _impl_.component_name_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::PlanStatusWithID, _impl_.execution_id_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::PlanStatusWithID, _impl_.status_), - ~0u, - 0, - ~0u, - 1, - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::PlanStatus, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::PlanStatus, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::PlanStatus, _impl_.state_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::PlanStatus, _impl_.timestamp_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::PlanStatus, _impl_.reason_), - ~0u, - 1, - 0, - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::Plan, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::Plan, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::Plan, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::Plan, _impl_.component_name_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::Plan, _impl_.execution_id_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::Plan, _impl_.steps_), - ~0u, - 0, - ~0u, - ~0u, - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::PlanStep_StepEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::PlanStep_StepEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::PlanStep_StepEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::PlanStep_StepEntry_DoNotUse, value_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::PlanStep, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::PlanStep, _impl_.step_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::ComponentState, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::ComponentState, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::ComponentState, _impl_.pose_), - 0, +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_service_2fmotion_2fv1_2fmotion_2eproto = nullptr; + +const uint32_t TableStruct_service_2fmotion_2fv1_2fmotion_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveRequest, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveRequest, _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::MoveRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveRequest, destination_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveRequest, component_name_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveRequest, world_state_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveRequest, constraints_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveRequest, extra_), + ~0u, + ~0u, + ~0u, + 0, + 1, + ~0u, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveResponse, _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::MoveResponse, success_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnMapRequest, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnMapRequest, _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::MoveOnMapRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnMapRequest, destination_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnMapRequest, component_name_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnMapRequest, slam_service_name_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnMapRequest, motion_configuration_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnMapRequest, obstacles_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnMapRequest, extra_), + ~0u, + ~0u, + ~0u, + ~0u, + 0, + ~0u, + ~0u, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnMapResponse, _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::MoveOnMapResponse, execution_id_), + ~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, 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_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MotionConfiguration, linear_m_per_sec_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MotionConfiguration, angular_degs_per_sec_), + ~0u, + 0, + 1, + 2, + 3, + 4, + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnGlobeRequest, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnGlobeRequest, _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::MoveOnGlobeRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnGlobeRequest, destination_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnGlobeRequest, heading_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnGlobeRequest, component_name_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnGlobeRequest, movement_sensor_name_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnGlobeRequest, obstacles_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnGlobeRequest, motion_configuration_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnGlobeRequest, bounding_regions_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnGlobeRequest, extra_), + ~0u, + ~0u, + 1, + ~0u, + ~0u, + ~0u, + 0, + ~0u, + ~0u, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnGlobeResponse, _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::MoveOnGlobeResponse, execution_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPoseRequest, _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::GetPoseRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPoseRequest, component_name_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPoseRequest, destination_frame_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPoseRequest, supplemental_transforms_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPoseRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPoseResponse, _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::GetPoseResponse, pose_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::StopPlanRequest, _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::StopPlanRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::StopPlanRequest, component_name_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::StopPlanRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::StopPlanResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::ListPlanStatusesRequest, _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::ListPlanStatusesRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::ListPlanStatusesRequest, only_active_plans_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::ListPlanStatusesRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::ListPlanStatusesResponse, _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::ListPlanStatusesResponse, plan_statuses_with_ids_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPlanRequest, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPlanRequest, _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::GetPlanRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPlanRequest, component_name_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPlanRequest, last_plan_only_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPlanRequest, execution_id_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPlanRequest, extra_), + ~0u, + ~0u, + ~0u, + 0, + ~0u, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPlanResponse, _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::GetPlanResponse, current_plan_with_status_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::GetPlanResponse, replan_history_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::Constraints, _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::Constraints, linear_constraint_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::Constraints, orientation_constraint_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::Constraints, collision_specification_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::LinearConstraint, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::LinearConstraint, _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::LinearConstraint, line_tolerance_mm_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::LinearConstraint, orientation_tolerance_degs_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::OrientationConstraint, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::OrientationConstraint, _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::OrientationConstraint, orientation_tolerance_degs_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions, _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::CollisionSpecification_AllowedFrameCollisions, frame1_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions, frame2_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::CollisionSpecification, _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::CollisionSpecification, allows_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::PlanWithStatus, _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::PlanWithStatus, plan_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::PlanWithStatus, status_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::PlanWithStatus, status_history_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::PlanStatusWithID, _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::PlanStatusWithID, plan_id_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::PlanStatusWithID, component_name_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::PlanStatusWithID, execution_id_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::PlanStatusWithID, status_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::PlanStatus, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::PlanStatus, _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::PlanStatus, state_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::PlanStatus, timestamp_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::PlanStatus, reason_), + ~0u, + ~0u, + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::Plan, _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::Plan, id_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::Plan, component_name_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::Plan, execution_id_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::Plan, steps_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::PlanStep_StepEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::PlanStep_StepEntry_DoNotUse, _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::PlanStep_StepEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::PlanStep_StepEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::PlanStep, _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::PlanStep, step_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::ComponentState, _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::ComponentState, pose_), }; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, 14, -1, sizeof(::viam::service::motion::v1::MoveRequest)}, - {20, -1, -1, sizeof(::viam::service::motion::v1::MoveResponse)}, - {29, 44, -1, sizeof(::viam::service::motion::v1::MoveOnMapRequest)}, - {51, -1, -1, sizeof(::viam::service::motion::v1::MoveOnMapResponse)}, - {60, 70, -1, sizeof(::viam::service::motion::v1::ObstacleDetector)}, - {72, 86, -1, sizeof(::viam::service::motion::v1::MotionConfiguration)}, - {92, 109, -1, sizeof(::viam::service::motion::v1::MoveOnGlobeRequest)}, - {118, -1, -1, sizeof(::viam::service::motion::v1::MoveOnGlobeResponse)}, - {127, 140, -1, sizeof(::viam::service::motion::v1::GetPoseRequest)}, - {145, 154, -1, sizeof(::viam::service::motion::v1::GetPoseResponse)}, - {155, 166, -1, sizeof(::viam::service::motion::v1::StopPlanRequest)}, - {169, -1, -1, sizeof(::viam::service::motion::v1::StopPlanResponse)}, - {177, 188, -1, sizeof(::viam::service::motion::v1::ListPlanStatusesRequest)}, - {191, -1, -1, sizeof(::viam::service::motion::v1::ListPlanStatusesResponse)}, - {200, 213, -1, sizeof(::viam::service::motion::v1::GetPlanRequest)}, - {218, 228, -1, sizeof(::viam::service::motion::v1::GetPlanResponse)}, - {230, -1, -1, sizeof(::viam::service::motion::v1::Constraints)}, - {241, 251, -1, sizeof(::viam::service::motion::v1::LinearConstraint)}, - {253, 262, -1, sizeof(::viam::service::motion::v1::OrientationConstraint)}, - {263, -1, -1, sizeof(::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions)}, - {273, -1, -1, sizeof(::viam::service::motion::v1::CollisionSpecification)}, - {282, 293, -1, sizeof(::viam::service::motion::v1::PlanWithStatus)}, - {296, 308, -1, sizeof(::viam::service::motion::v1::PlanStatusWithID)}, - {312, 323, -1, sizeof(::viam::service::motion::v1::PlanStatus)}, - {326, 338, -1, sizeof(::viam::service::motion::v1::Plan)}, - {342, 352, -1, sizeof(::viam::service::motion::v1::PlanStep_StepEntry_DoNotUse)}, - {354, -1, -1, sizeof(::viam::service::motion::v1::PlanStep)}, - {363, 372, -1, sizeof(::viam::service::motion::v1::ComponentState)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, 12, -1, sizeof(::viam::service::motion::v1::MoveRequest)}, + { 18, -1, -1, sizeof(::viam::service::motion::v1::MoveResponse)}, + { 25, 38, -1, sizeof(::viam::service::motion::v1::MoveOnMapRequest)}, + { 45, -1, -1, sizeof(::viam::service::motion::v1::MoveOnMapResponse)}, + { 52, -1, -1, sizeof(::viam::service::motion::v1::ObstacleDetector)}, + { 60, 72, -1, sizeof(::viam::service::motion::v1::MotionConfiguration)}, + { 78, 93, -1, sizeof(::viam::service::motion::v1::MoveOnGlobeRequest)}, + { 102, -1, -1, sizeof(::viam::service::motion::v1::MoveOnGlobeResponse)}, + { 109, -1, -1, sizeof(::viam::service::motion::v1::GetPoseRequest)}, + { 120, -1, -1, sizeof(::viam::service::motion::v1::GetPoseResponse)}, + { 127, -1, -1, sizeof(::viam::service::motion::v1::StopPlanRequest)}, + { 136, -1, -1, sizeof(::viam::service::motion::v1::StopPlanResponse)}, + { 142, -1, -1, sizeof(::viam::service::motion::v1::ListPlanStatusesRequest)}, + { 151, -1, -1, sizeof(::viam::service::motion::v1::ListPlanStatusesResponse)}, + { 158, 169, -1, sizeof(::viam::service::motion::v1::GetPlanRequest)}, + { 174, -1, -1, sizeof(::viam::service::motion::v1::GetPlanResponse)}, + { 182, -1, -1, sizeof(::viam::service::motion::v1::Constraints)}, + { 191, 199, -1, sizeof(::viam::service::motion::v1::LinearConstraint)}, + { 201, 208, -1, sizeof(::viam::service::motion::v1::OrientationConstraint)}, + { 209, -1, -1, sizeof(::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions)}, + { 217, -1, -1, sizeof(::viam::service::motion::v1::CollisionSpecification)}, + { 224, -1, -1, sizeof(::viam::service::motion::v1::PlanWithStatus)}, + { 233, -1, -1, sizeof(::viam::service::motion::v1::PlanStatusWithID)}, + { 243, 252, -1, sizeof(::viam::service::motion::v1::PlanStatus)}, + { 255, -1, -1, sizeof(::viam::service::motion::v1::Plan)}, + { 265, 273, -1, sizeof(::viam::service::motion::v1::PlanStep_StepEntry_DoNotUse)}, + { 275, -1, -1, sizeof(::viam::service::motion::v1::PlanStep)}, + { 282, -1, -1, sizeof(::viam::service::motion::v1::ComponentState)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::viam::service::motion::v1::_MoveRequest_default_instance_._instance, - &::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, - &::viam::service::motion::v1::_GetPoseRequest_default_instance_._instance, - &::viam::service::motion::v1::_GetPoseResponse_default_instance_._instance, - &::viam::service::motion::v1::_StopPlanRequest_default_instance_._instance, - &::viam::service::motion::v1::_StopPlanResponse_default_instance_._instance, - &::viam::service::motion::v1::_ListPlanStatusesRequest_default_instance_._instance, - &::viam::service::motion::v1::_ListPlanStatusesResponse_default_instance_._instance, - &::viam::service::motion::v1::_GetPlanRequest_default_instance_._instance, - &::viam::service::motion::v1::_GetPlanResponse_default_instance_._instance, - &::viam::service::motion::v1::_Constraints_default_instance_._instance, - &::viam::service::motion::v1::_LinearConstraint_default_instance_._instance, - &::viam::service::motion::v1::_OrientationConstraint_default_instance_._instance, - &::viam::service::motion::v1::_CollisionSpecification_AllowedFrameCollisions_default_instance_._instance, - &::viam::service::motion::v1::_CollisionSpecification_default_instance_._instance, - &::viam::service::motion::v1::_PlanWithStatus_default_instance_._instance, - &::viam::service::motion::v1::_PlanStatusWithID_default_instance_._instance, - &::viam::service::motion::v1::_PlanStatus_default_instance_._instance, - &::viam::service::motion::v1::_Plan_default_instance_._instance, - &::viam::service::motion::v1::_PlanStep_StepEntry_DoNotUse_default_instance_._instance, - &::viam::service::motion::v1::_PlanStep_default_instance_._instance, - &::viam::service::motion::v1::_ComponentState_default_instance_._instance, + &::viam::service::motion::v1::_MoveRequest_default_instance_._instance, + &::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, + &::viam::service::motion::v1::_GetPoseRequest_default_instance_._instance, + &::viam::service::motion::v1::_GetPoseResponse_default_instance_._instance, + &::viam::service::motion::v1::_StopPlanRequest_default_instance_._instance, + &::viam::service::motion::v1::_StopPlanResponse_default_instance_._instance, + &::viam::service::motion::v1::_ListPlanStatusesRequest_default_instance_._instance, + &::viam::service::motion::v1::_ListPlanStatusesResponse_default_instance_._instance, + &::viam::service::motion::v1::_GetPlanRequest_default_instance_._instance, + &::viam::service::motion::v1::_GetPlanResponse_default_instance_._instance, + &::viam::service::motion::v1::_Constraints_default_instance_._instance, + &::viam::service::motion::v1::_LinearConstraint_default_instance_._instance, + &::viam::service::motion::v1::_OrientationConstraint_default_instance_._instance, + &::viam::service::motion::v1::_CollisionSpecification_AllowedFrameCollisions_default_instance_._instance, + &::viam::service::motion::v1::_CollisionSpecification_default_instance_._instance, + &::viam::service::motion::v1::_PlanWithStatus_default_instance_._instance, + &::viam::service::motion::v1::_PlanStatusWithID_default_instance_._instance, + &::viam::service::motion::v1::_PlanStatus_default_instance_._instance, + &::viam::service::motion::v1::_Plan_default_instance_._instance, + &::viam::service::motion::v1::_PlanStep_StepEntry_DoNotUse_default_instance_._instance, + &::viam::service::motion::v1::_PlanStep_default_instance_._instance, + &::viam::service::motion::v1::_ComponentState_default_instance_._instance, }; -const char descriptor_table_protodef_service_2fmotion_2fv1_2fmotion_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n\036service/motion/v1/motion.proto\022\026viam.s" - "ervice.motion.v1\032\026common/v1/common.proto" - "\032\034google/api/annotations.proto\032\034google/p" - "rotobuf/struct.proto\032\037google/protobuf/ti" - "mestamp.proto\"\202\003\n\013MoveRequest\022\022\n\004name\030\001 " - "\001(\tR\004name\022=\n\013destination\030\002 \001(\0132\033.viam.co" - "mmon.v1.PoseInFrameR\013destination\022C\n\016comp" - "onent_name\030\003 \001(\0132\034.viam.common.v1.Resour" - "ceNameR\rcomponentName\022@\n\013world_state\030\004 \001" - "(\0132\032.viam.common.v1.WorldStateH\000R\nworldS" - "tate\210\001\001\022J\n\013constraints\030\005 \001(\0132#.viam.serv" - "ice.motion.v1.ConstraintsH\001R\013constraints" - "\210\001\001\022-\n\005extra\030c \001(\0132\027.google.protobuf.Str" - "uctR\005extraB\016\n\014_world_stateB\016\n\014_constrain" - "ts\"(\n\014MoveResponse\022\030\n\007success\030\001 \001(\010R\007suc" - "cess\"\322\003\n\020MoveOnMapRequest\022\022\n\004name\030\001 \001(\tR" - "\004name\0226\n\013destination\030\002 \001(\0132\024.viam.common" - ".v1.PoseR\013destination\022C\n\016component_name\030" - "\003 \001(\0132\034.viam.common.v1.ResourceNameR\rcom" - "ponentName\022H\n\021slam_service_name\030\004 \001(\0132\034." - "viam.common.v1.ResourceNameR\017slamService" - "Name\022c\n\024motion_configuration\030\005 \001(\0132+.via" - "m.service.motion.v1.MotionConfigurationH" - "\000R\023motionConfiguration\210\001\001\0226\n\tobstacles\030\006" - " \003(\0132\030.viam.common.v1.GeometryR\tobstacle" - "s\022-\n\005extra\030c \001(\0132\027.google.protobuf.Struc" - "tR\005extraB\027\n\025_motion_configuration\"6\n\021Mov" - "eOnMapResponse\022!\n\014execution_id\030\001 \001(\tR\013ex" - "ecutionId\"\215\001\n\020ObstacleDetector\022C\n\016vision" - "_service\030\001 \001(\0132\034.viam.common.v1.Resource" - "NameR\rvisionService\0224\n\006camera\030\002 \001(\0132\034.vi" - "am.common.v1.ResourceNameR\006camera\"\230\004\n\023Mo" - "tionConfiguration\022W\n\022obstacle_detectors\030" - "\001 \003(\0132(.viam.service.motion.v1.ObstacleD" - "etectorR\021obstacleDetectors\022F\n\035position_p" - "olling_frequency_hz\030\002 \001(\001H\000R\032positionPol" - "lingFrequencyHz\210\001\001\022F\n\035obstacle_polling_f" - "requency_hz\030\003 \001(\001H\001R\032obstaclePollingFreq" - "uencyHz\210\001\001\022-\n\020plan_deviation_m\030\004 \001(\001H\002R\016" - "planDeviationM\210\001\001\022,\n\020linear_m_per_sec\030\005 " - "\001(\001H\003R\rlinearMPerSec\210\001\001\0224\n\024angular_degs_" - "per_sec\030\006 \001(\001H\004R\021angularDegsPerSec\210\001\001B \n" - "\036_position_polling_frequency_hzB \n\036_obst" - "acle_polling_frequency_hzB\023\n\021_plan_devia" - "tion_mB\023\n\021_linear_m_per_secB\027\n\025_angular_" - "degs_per_sec\"\324\004\n\022MoveOnGlobeRequest\022\022\n\004n" - "ame\030\001 \001(\tR\004name\022:\n\013destination\030\002 \001(\0132\030.v" - "iam.common.v1.GeoPointR\013destination\022\035\n\007h" - "eading\030\003 \001(\001H\000R\007heading\210\001\001\022C\n\016component_" - "name\030\004 \001(\0132\034.viam.common.v1.ResourceName" - "R\rcomponentName\022N\n\024movement_sensor_name\030" - "\005 \001(\0132\034.viam.common.v1.ResourceNameR\022mov" - "ementSensorName\0229\n\tobstacles\030\006 \003(\0132\033.via" - "m.common.v1.GeoGeometryR\tobstacles\022c\n\024mo" - "tion_configuration\030\007 \001(\0132+.viam.service." - "motion.v1.MotionConfigurationH\001R\023motionC" - "onfiguration\210\001\001\022F\n\020bounding_regions\030\010 \003(" - "\0132\033.viam.common.v1.GeoGeometryR\017bounding" - "Regions\022-\n\005extra\030c \001(\0132\027.google.protobuf" - ".StructR\005extraB\n\n\010_headingB\027\n\025_motion_co" - "nfiguration\"8\n\023MoveOnGlobeResponse\022!\n\014ex" - "ecution_id\030\001 \001(\tR\013executionId\"\231\002\n\016GetPos" - "eRequest\022\022\n\004name\030\001 \001(\tR\004name\022C\n\016componen" - "t_name\030\002 \001(\0132\034.viam.common.v1.ResourceNa" - "meR\rcomponentName\022+\n\021destination_frame\030\003" - " \001(\tR\020destinationFrame\022R\n\027supplemental_t" - "ransforms\030\004 \003(\0132\031.viam.common.v1.Transfo" - "rmR\026supplementalTransforms\022-\n\005extra\030c \001(" - "\0132\027.google.protobuf.StructR\005extra\"B\n\017Get" - "PoseResponse\022/\n\004pose\030\001 \001(\0132\033.viam.common" - ".v1.PoseInFrameR\004pose\"\231\001\n\017StopPlanReques" - "t\022\022\n\004name\030\001 \001(\tR\004name\022C\n\016component_name\030" - "\002 \001(\0132\034.viam.common.v1.ResourceNameR\rcom" - "ponentName\022-\n\005extra\030c \001(\0132\027.google.proto" - "buf.StructR\005extra\"\022\n\020StopPlanResponse\"\210\001" - "\n\027ListPlanStatusesRequest\022\022\n\004name\030\001 \001(\tR" - "\004name\022*\n\021only_active_plans\030\002 \001(\010R\017onlyAc" - "tivePlans\022-\n\005extra\030c \001(\0132\027.google.protob" - "uf.StructR\005extra\"y\n\030ListPlanStatusesResp" - "onse\022]\n\026plan_statuses_with_ids\030\001 \003(\0132(.v" - "iam.service.motion.v1.PlanStatusWithIDR\023" - "planStatusesWithIds\"\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\rcompon" - "entName\022$\n\016last_plan_only\030\003 \001(\010R\014lastPla" - "nOnly\022&\n\014execution_id\030\004 \001(\tH\000R\013execution" - "Id\210\001\001\022-\n\005extra\030c \001(\0132\027.google.protobuf.S" - "tructR\005extraB\017\n\r_execution_id\"\301\001\n\017GetPla" - "nResponse\022_\n\030current_plan_with_status\030\001 " - "\001(\0132&.viam.service.motion.v1.PlanWithSta" - "tusR\025currentPlanWithStatus\022M\n\016replan_his" - "tory\030\002 \003(\0132&.viam.service.motion.v1.Plan" - "WithStatusR\rreplanHistory\"\263\002\n\013Constraint" - "s\022U\n\021linear_constraint\030\001 \003(\0132(.viam.serv" - "ice.motion.v1.LinearConstraintR\020linearCo" - "nstraint\022d\n\026orientation_constraint\030\002 \003(\013" - "2-.viam.service.motion.v1.OrientationCon" - "straintR\025orientationConstraint\022g\n\027collis" - "ion_specification\030\003 \003(\0132..viam.service.m" - "otion.v1.CollisionSpecificationR\026collisi" - "onSpecification\"\273\001\n\020LinearConstraint\022/\n\021" - "line_tolerance_mm\030\001 \001(\002H\000R\017lineTolerance" - "Mm\210\001\001\022A\n\032orientation_tolerance_degs\030\002 \001(" - "\002H\001R\030orientationToleranceDegs\210\001\001B\024\n\022_lin" - "e_tolerance_mmB\035\n\033_orientation_tolerance" - "_degs\"y\n\025OrientationConstraint\022A\n\032orient" - "ation_tolerance_degs\030\001 \001(\002H\000R\030orientatio" - "nToleranceDegs\210\001\001B\035\n\033_orientation_tolera" - "nce_degs\"\301\001\n\026CollisionSpecification\022]\n\006a" - "llows\030\001 \003(\0132E.viam.service.motion.v1.Col" - "lisionSpecification.AllowedFrameCollisio" - "nsR\006allows\032H\n\026AllowedFrameCollisions\022\026\n\006" - "frame1\030\001 \001(\tR\006frame1\022\026\n\006frame2\030\002 \001(\tR\006fr" - "ame2\"\311\001\n\016PlanWithStatus\0220\n\004plan\030\001 \001(\0132\034." - "viam.service.motion.v1.PlanR\004plan\022:\n\006sta" - "tus\030\002 \001(\0132\".viam.service.motion.v1.PlanS" - "tatusR\006status\022I\n\016status_history\030\003 \003(\0132\"." - "viam.service.motion.v1.PlanStatusR\rstatu" - "sHistory\"\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\rcomponentN" - "ame\022!\n\014execution_id\030\003 \001(\tR\013executionId\022:" - "\n\006status\030\004 \001(\0132\".viam.service.motion.v1." - "PlanStatusR\006status\"\247\001\n\nPlanStatus\0227\n\005sta" - "te\030\001 \001(\0162!.viam.service.motion.v1.PlanSt" - "ateR\005state\0228\n\ttimestamp\030\002 \001(\0132\032.google.p" - "rotobuf.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." - "viam.common.v1.ResourceNameR\rcomponentNa" - "me\022!\n\014execution_id\030\003 \001(\tR\013executionId\0226\n" - "\005steps\030\004 \003(\0132 .viam.service.motion.v1.Pl" - "anStepR\005steps\"\253\001\n\010PlanStep\022>\n\004step\030\001 \003(\013" - "2*.viam.service.motion.v1.PlanStep.StepE" - "ntryR\004step\032_\n\tStepEntry\022\020\n\003key\030\001 \001(\tR\003ke" - "y\022<\n\005value\030\002 \001(\0132&.viam.service.motion.v" - "1.ComponentStateR\005value:\0028\001\":\n\016Component" - "State\022(\n\004pose\030\001 \001(\0132\024.viam.common.v1.Pos" - "eR\004pose*\214\001\n\tPlanState\022\032\n\026PLAN_STATE_UNSP" - "ECIFIED\020\000\022\032\n\026PLAN_STATE_IN_PROGRESS\020\001\022\026\n" - "\022PLAN_STATE_STOPPED\020\002\022\030\n\024PLAN_STATE_SUCC" - "EEDED\020\003\022\025\n\021PLAN_STATE_FAILED\020\0042\311\t\n\rMotio" - "nService\022\202\001\n\004Move\022#.viam.service.motion." - "v1.MoveRequest\032$.viam.service.motion.v1." - "MoveResponse\"/\202\323\344\223\002)\"\'/viam/api/v1/servi" - "ce/motion/{name}/move\022\230\001\n\tMoveOnMap\022(.vi" - "am.service.motion.v1.MoveOnMapRequest\032)." - "viam.service.motion.v1.MoveOnMapResponse" - "\"6\202\323\344\223\0020\"./viam/api/v1/service/motion/{n" - "ame}/move_on_map\022\240\001\n\013MoveOnGlobe\022*.viam." - "service.motion.v1.MoveOnGlobeRequest\032+.v" - "iam.service.motion.v1.MoveOnGlobeRespons" - "e\"8\202\323\344\223\0022\"0/viam/api/v1/service/motion/{" - "name}/move_on_globe\022\213\001\n\007GetPose\022&.viam.s" - "ervice.motion.v1.GetPoseRequest\032\'.viam.s" - "ervice.motion.v1.GetPoseResponse\"/\202\323\344\223\002)" - "\022\'/viam/api/v1/service/motion/{name}/pos" - "e\022\223\001\n\010StopPlan\022\'.viam.service.motion.v1." - "StopPlanRequest\032(.viam.service.motion.v1" - ".StopPlanResponse\"4\202\323\344\223\002.\032,/viam/api/v1/" - "service/motion/{name}/stop_plan\022\264\001\n\020List" - "PlanStatuses\022/.viam.service.motion.v1.Li" - "stPlanStatusesRequest\0320.viam.service.mot" - "ion.v1.ListPlanStatusesResponse\"=\202\323\344\223\0027\022" - "5/viam/api/v1/service/motion/{name}/list" - "_plan_statuses\022\217\001\n\007GetPlan\022&.viam.servic" - "e.motion.v1.GetPlanRequest\032\'.viam.servic" - "e.motion.v1.GetPlanResponse\"3\202\323\344\223\002-\022+/vi" - "am/api/v1/service/motion/{name}/get_plan" - "\022\207\001\n\tDoCommand\022 .viam.common.v1.DoComman" - "dRequest\032!.viam.common.v1.DoCommandRespo" - "nse\"5\202\323\344\223\002/\"-/viam/api/v1/service/motion" - "/{name}/do_commandB\307\001\n\032com.viam.service." - "motion.v1B\013MotionProtoP\001Z!go.viam.com/ap" - "i/service/motion/v1\242\002\003VSM\252\002\026Viam.Service" - ".Motion.V1\312\002\026Viam\\Service\\Motion\\V1\342\002\"Vi" - "am\\Service\\Motion\\V1\\GPBMetadata\352\002\031Viam:" - ":Service::Motion::V1b\006proto3" -}; -static const ::_pbi::DescriptorTable* const descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_deps[4] = - { - &::descriptor_table_common_2fv1_2fcommon_2eproto, - &::descriptor_table_google_2fapi_2fannotations_2eproto, - &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, - &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto, + +const char descriptor_table_protodef_service_2fmotion_2fv1_2fmotion_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\036service/motion/v1/motion.proto\022\026viam.s" + "ervice.motion.v1\032\026common/v1/common.proto" + "\032\034google/api/annotations.proto\032\034google/p" + "rotobuf/struct.proto\032\037google/protobuf/ti" + "mestamp.proto\"\202\003\n\013MoveRequest\022\022\n\004name\030\001 " + "\001(\tR\004name\022=\n\013destination\030\002 \001(\0132\033.viam.co" + "mmon.v1.PoseInFrameR\013destination\022C\n\016comp" + "onent_name\030\003 \001(\0132\034.viam.common.v1.Resour" + "ceNameR\rcomponentName\022@\n\013world_state\030\004 \001" + "(\0132\032.viam.common.v1.WorldStateH\000R\nworldS" + "tate\210\001\001\022J\n\013constraints\030\005 \001(\0132#.viam.serv" + "ice.motion.v1.ConstraintsH\001R\013constraints" + "\210\001\001\022-\n\005extra\030c \001(\0132\027.google.protobuf.Str" + "uctR\005extraB\016\n\014_world_stateB\016\n\014_constrain" + "ts\"(\n\014MoveResponse\022\030\n\007success\030\001 \001(\010R\007suc" + "cess\"\322\003\n\020MoveOnMapRequest\022\022\n\004name\030\001 \001(\tR" + "\004name\0226\n\013destination\030\002 \001(\0132\024.viam.common" + ".v1.PoseR\013destination\022C\n\016component_name\030" + "\003 \001(\0132\034.viam.common.v1.ResourceNameR\rcom" + "ponentName\022H\n\021slam_service_name\030\004 \001(\0132\034." + "viam.common.v1.ResourceNameR\017slamService" + "Name\022c\n\024motion_configuration\030\005 \001(\0132+.via" + "m.service.motion.v1.MotionConfigurationH" + "\000R\023motionConfiguration\210\001\001\0226\n\tobstacles\030\006" + " \003(\0132\030.viam.common.v1.GeometryR\tobstacle" + "s\022-\n\005extra\030c \001(\0132\027.google.protobuf.Struc" + "tR\005extraB\027\n\025_motion_configuration\"6\n\021Mov" + "eOnMapResponse\022!\n\014execution_id\030\001 \001(\tR\013ex" + "ecutionId\"\215\001\n\020ObstacleDetector\022C\n\016vision" + "_service\030\001 \001(\0132\034.viam.common.v1.Resource" + "NameR\rvisionService\0224\n\006camera\030\002 \001(\0132\034.vi" + "am.common.v1.ResourceNameR\006camera\"\230\004\n\023Mo" + "tionConfiguration\022W\n\022obstacle_detectors\030" + "\001 \003(\0132(.viam.service.motion.v1.ObstacleD" + "etectorR\021obstacleDetectors\022F\n\035position_p" + "olling_frequency_hz\030\002 \001(\001H\000R\032positionPol" + "lingFrequencyHz\210\001\001\022F\n\035obstacle_polling_f" + "requency_hz\030\003 \001(\001H\001R\032obstaclePollingFreq" + "uencyHz\210\001\001\022-\n\020plan_deviation_m\030\004 \001(\001H\002R\016" + "planDeviationM\210\001\001\022,\n\020linear_m_per_sec\030\005 " + "\001(\001H\003R\rlinearMPerSec\210\001\001\0224\n\024angular_degs_" + "per_sec\030\006 \001(\001H\004R\021angularDegsPerSec\210\001\001B \n" + "\036_position_polling_frequency_hzB \n\036_obst" + "acle_polling_frequency_hzB\023\n\021_plan_devia" + "tion_mB\023\n\021_linear_m_per_secB\027\n\025_angular_" + "degs_per_sec\"\324\004\n\022MoveOnGlobeRequest\022\022\n\004n" + "ame\030\001 \001(\tR\004name\022:\n\013destination\030\002 \001(\0132\030.v" + "iam.common.v1.GeoPointR\013destination\022\035\n\007h" + "eading\030\003 \001(\001H\000R\007heading\210\001\001\022C\n\016component_" + "name\030\004 \001(\0132\034.viam.common.v1.ResourceName" + "R\rcomponentName\022N\n\024movement_sensor_name\030" + "\005 \001(\0132\034.viam.common.v1.ResourceNameR\022mov" + "ementSensorName\0229\n\tobstacles\030\006 \003(\0132\033.via" + "m.common.v1.GeoGeometryR\tobstacles\022c\n\024mo" + "tion_configuration\030\007 \001(\0132+.viam.service." + "motion.v1.MotionConfigurationH\001R\023motionC" + "onfiguration\210\001\001\022F\n\020bounding_regions\030\010 \003(" + "\0132\033.viam.common.v1.GeoGeometryR\017bounding" + "Regions\022-\n\005extra\030c \001(\0132\027.google.protobuf" + ".StructR\005extraB\n\n\010_headingB\027\n\025_motion_co" + "nfiguration\"8\n\023MoveOnGlobeResponse\022!\n\014ex" + "ecution_id\030\001 \001(\tR\013executionId\"\231\002\n\016GetPos" + "eRequest\022\022\n\004name\030\001 \001(\tR\004name\022C\n\016componen" + "t_name\030\002 \001(\0132\034.viam.common.v1.ResourceNa" + "meR\rcomponentName\022+\n\021destination_frame\030\003" + " \001(\tR\020destinationFrame\022R\n\027supplemental_t" + "ransforms\030\004 \003(\0132\031.viam.common.v1.Transfo" + "rmR\026supplementalTransforms\022-\n\005extra\030c \001(" + "\0132\027.google.protobuf.StructR\005extra\"B\n\017Get" + "PoseResponse\022/\n\004pose\030\001 \001(\0132\033.viam.common" + ".v1.PoseInFrameR\004pose\"\231\001\n\017StopPlanReques" + "t\022\022\n\004name\030\001 \001(\tR\004name\022C\n\016component_name\030" + "\002 \001(\0132\034.viam.common.v1.ResourceNameR\rcom" + "ponentName\022-\n\005extra\030c \001(\0132\027.google.proto" + "buf.StructR\005extra\"\022\n\020StopPlanResponse\"\210\001" + "\n\027ListPlanStatusesRequest\022\022\n\004name\030\001 \001(\tR" + "\004name\022*\n\021only_active_plans\030\002 \001(\010R\017onlyAc" + "tivePlans\022-\n\005extra\030c \001(\0132\027.google.protob" + "uf.StructR\005extra\"y\n\030ListPlanStatusesResp" + "onse\022]\n\026plan_statuses_with_ids\030\001 \003(\0132(.v" + "iam.service.motion.v1.PlanStatusWithIDR\023" + "planStatusesWithIds\"\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\rcompon" + "entName\022$\n\016last_plan_only\030\003 \001(\010R\014lastPla" + "nOnly\022&\n\014execution_id\030\004 \001(\tH\000R\013execution" + "Id\210\001\001\022-\n\005extra\030c \001(\0132\027.google.protobuf.S" + "tructR\005extraB\017\n\r_execution_id\"\301\001\n\017GetPla" + "nResponse\022_\n\030current_plan_with_status\030\001 " + "\001(\0132&.viam.service.motion.v1.PlanWithSta" + "tusR\025currentPlanWithStatus\022M\n\016replan_his" + "tory\030\002 \003(\0132&.viam.service.motion.v1.Plan" + "WithStatusR\rreplanHistory\"\263\002\n\013Constraint" + "s\022U\n\021linear_constraint\030\001 \003(\0132(.viam.serv" + "ice.motion.v1.LinearConstraintR\020linearCo" + "nstraint\022d\n\026orientation_constraint\030\002 \003(\013" + "2-.viam.service.motion.v1.OrientationCon" + "straintR\025orientationConstraint\022g\n\027collis" + "ion_specification\030\003 \003(\0132..viam.service.m" + "otion.v1.CollisionSpecificationR\026collisi" + "onSpecification\"\273\001\n\020LinearConstraint\022/\n\021" + "line_tolerance_mm\030\001 \001(\002H\000R\017lineTolerance" + "Mm\210\001\001\022A\n\032orientation_tolerance_degs\030\002 \001(" + "\002H\001R\030orientationToleranceDegs\210\001\001B\024\n\022_lin" + "e_tolerance_mmB\035\n\033_orientation_tolerance" + "_degs\"y\n\025OrientationConstraint\022A\n\032orient" + "ation_tolerance_degs\030\001 \001(\002H\000R\030orientatio" + "nToleranceDegs\210\001\001B\035\n\033_orientation_tolera" + "nce_degs\"\301\001\n\026CollisionSpecification\022]\n\006a" + "llows\030\001 \003(\0132E.viam.service.motion.v1.Col" + "lisionSpecification.AllowedFrameCollisio" + "nsR\006allows\032H\n\026AllowedFrameCollisions\022\026\n\006" + "frame1\030\001 \001(\tR\006frame1\022\026\n\006frame2\030\002 \001(\tR\006fr" + "ame2\"\311\001\n\016PlanWithStatus\0220\n\004plan\030\001 \001(\0132\034." + "viam.service.motion.v1.PlanR\004plan\022:\n\006sta" + "tus\030\002 \001(\0132\".viam.service.motion.v1.PlanS" + "tatusR\006status\022I\n\016status_history\030\003 \003(\0132\"." + "viam.service.motion.v1.PlanStatusR\rstatu" + "sHistory\"\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\rcomponentN" + "ame\022!\n\014execution_id\030\003 \001(\tR\013executionId\022:" + "\n\006status\030\004 \001(\0132\".viam.service.motion.v1." + "PlanStatusR\006status\"\247\001\n\nPlanStatus\0227\n\005sta" + "te\030\001 \001(\0162!.viam.service.motion.v1.PlanSt" + "ateR\005state\0228\n\ttimestamp\030\002 \001(\0132\032.google.p" + "rotobuf.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." + "viam.common.v1.ResourceNameR\rcomponentNa" + "me\022!\n\014execution_id\030\003 \001(\tR\013executionId\0226\n" + "\005steps\030\004 \003(\0132 .viam.service.motion.v1.Pl" + "anStepR\005steps\"\253\001\n\010PlanStep\022>\n\004step\030\001 \003(\013" + "2*.viam.service.motion.v1.PlanStep.StepE" + "ntryR\004step\032_\n\tStepEntry\022\020\n\003key\030\001 \001(\tR\003ke" + "y\022<\n\005value\030\002 \001(\0132&.viam.service.motion.v" + "1.ComponentStateR\005value:\0028\001\":\n\016Component" + "State\022(\n\004pose\030\001 \001(\0132\024.viam.common.v1.Pos" + "eR\004pose*\214\001\n\tPlanState\022\032\n\026PLAN_STATE_UNSP" + "ECIFIED\020\000\022\032\n\026PLAN_STATE_IN_PROGRESS\020\001\022\026\n" + "\022PLAN_STATE_STOPPED\020\002\022\030\n\024PLAN_STATE_SUCC" + "EEDED\020\003\022\025\n\021PLAN_STATE_FAILED\020\0042\311\t\n\rMotio" + "nService\022\202\001\n\004Move\022#.viam.service.motion." + "v1.MoveRequest\032$.viam.service.motion.v1." + "MoveResponse\"/\202\323\344\223\002)\"\'/viam/api/v1/servi" + "ce/motion/{name}/move\022\230\001\n\tMoveOnMap\022(.vi" + "am.service.motion.v1.MoveOnMapRequest\032)." + "viam.service.motion.v1.MoveOnMapResponse" + "\"6\202\323\344\223\0020\"./viam/api/v1/service/motion/{n" + "ame}/move_on_map\022\240\001\n\013MoveOnGlobe\022*.viam." + "service.motion.v1.MoveOnGlobeRequest\032+.v" + "iam.service.motion.v1.MoveOnGlobeRespons" + "e\"8\202\323\344\223\0022\"0/viam/api/v1/service/motion/{" + "name}/move_on_globe\022\213\001\n\007GetPose\022&.viam.s" + "ervice.motion.v1.GetPoseRequest\032\'.viam.s" + "ervice.motion.v1.GetPoseResponse\"/\202\323\344\223\002)" + "\022\'/viam/api/v1/service/motion/{name}/pos" + "e\022\223\001\n\010StopPlan\022\'.viam.service.motion.v1." + "StopPlanRequest\032(.viam.service.motion.v1" + ".StopPlanResponse\"4\202\323\344\223\002.\032,/viam/api/v1/" + "service/motion/{name}/stop_plan\022\264\001\n\020List" + "PlanStatuses\022/.viam.service.motion.v1.Li" + "stPlanStatusesRequest\0320.viam.service.mot" + "ion.v1.ListPlanStatusesResponse\"=\202\323\344\223\0027\022" + "5/viam/api/v1/service/motion/{name}/list" + "_plan_statuses\022\217\001\n\007GetPlan\022&.viam.servic" + "e.motion.v1.GetPlanRequest\032\'.viam.servic" + "e.motion.v1.GetPlanResponse\"3\202\323\344\223\002-\022+/vi" + "am/api/v1/service/motion/{name}/get_plan" + "\022\207\001\n\tDoCommand\022 .viam.common.v1.DoComman" + "dRequest\032!.viam.common.v1.DoCommandRespo" + "nse\"5\202\323\344\223\002/\"-/viam/api/v1/service/motion" + "/{name}/do_commandB\?\n\032com.viam.service.m" + "otion.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, + &::descriptor_table_google_2fapi_2fannotations_2eproto, + &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, + &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto, }; -static ::absl::once_flag descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once; +static ::_pbi::once_flag descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto = { - false, - false, - 7108, - descriptor_table_protodef_service_2fmotion_2fv1_2fmotion_2eproto, + false, false, 6971, 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, - 28, - 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, + &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_deps, 4, 28, + 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, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter() { return &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_service_2fmotion_2fv1_2fmotion_2eproto(&descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_service_2fmotion_2fv1_2fmotion_2eproto(&descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto); namespace viam { namespace service { namespace motion { namespace v1 { -const ::google::protobuf::EnumDescriptor* PlanState_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto); +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PlanState_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto); return file_level_enum_descriptors_service_2fmotion_2fv1_2fmotion_2eproto[0]; } -PROTOBUF_CONSTINIT const uint32_t PlanState_internal_data_[] = { - 327680u, 0u, }; bool PlanState_IsValid(int value) { - return 0 <= value && value <= 4; + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + return true; + default: + return false; + } } + + // =================================================================== class MoveRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(MoveRequest, _impl_._has_bits_); + using HasBits = decltype(std::declval()._has_bits_); static const ::viam::common::v1::PoseInFrame& destination(const MoveRequest* msg); - static void set_has_destination(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } static const ::viam::common::v1::ResourceName& component_name(const MoveRequest* msg); - static void set_has_component_name(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } static const ::viam::common::v1::WorldState& world_state(const MoveRequest* msg); static void set_has_world_state(HasBits* has_bits) { - (*has_bits)[0] |= 4u; + (*has_bits)[0] |= 1u; } static const ::viam::service::motion::v1::Constraints& constraints(const MoveRequest* msg); static void set_has_constraints(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static const ::google::protobuf::Struct& extra(const MoveRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 16u; + (*has_bits)[0] |= 2u; } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const MoveRequest* msg); }; -const ::viam::common::v1::PoseInFrame& MoveRequest::_Internal::destination(const MoveRequest* msg) { - return *msg->_impl_.destination_; +const ::viam::common::v1::PoseInFrame& +MoveRequest::_Internal::destination(const MoveRequest* msg) { + return *msg->destination_; } -const ::viam::common::v1::ResourceName& MoveRequest::_Internal::component_name(const MoveRequest* msg) { - return *msg->_impl_.component_name_; +const ::viam::common::v1::ResourceName& +MoveRequest::_Internal::component_name(const MoveRequest* msg) { + return *msg->component_name_; } -const ::viam::common::v1::WorldState& MoveRequest::_Internal::world_state(const MoveRequest* msg) { - return *msg->_impl_.world_state_; +const ::viam::common::v1::WorldState& +MoveRequest::_Internal::world_state(const MoveRequest* msg) { + return *msg->world_state_; } -const ::viam::service::motion::v1::Constraints& MoveRequest::_Internal::constraints(const MoveRequest* msg) { - return *msg->_impl_.constraints_; +const ::viam::service::motion::v1::Constraints& +MoveRequest::_Internal::constraints(const MoveRequest* msg) { + return *msg->constraints_; } -const ::google::protobuf::Struct& MoveRequest::_Internal::extra(const MoveRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +MoveRequest::_Internal::extra(const MoveRequest* msg) { + return *msg->extra_; } void MoveRequest::clear_destination() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.destination_ != nullptr) _impl_.destination_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && destination_ != nullptr) { + delete destination_; + } + destination_ = nullptr; } void MoveRequest::clear_component_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.component_name_ != nullptr) _impl_.component_name_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && component_name_ != nullptr) { + delete component_name_; + } + component_name_ = nullptr; } void MoveRequest::clear_world_state() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.world_state_ != nullptr) _impl_.world_state_->Clear(); - _impl_._has_bits_[0] &= ~0x00000004u; + if (world_state_ != nullptr) world_state_->Clear(); + _has_bits_[0] &= ~0x00000001u; } void MoveRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000010u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -MoveRequest::MoveRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +MoveRequest::MoveRequest(::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.MoveRequest) } -inline PROTOBUF_NDEBUG_INLINE MoveRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -MoveRequest::MoveRequest( - ::google::protobuf::Arena* arena, - const MoveRequest& from) - : ::google::protobuf::Message(arena) { - MoveRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.destination_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::common::v1::PoseInFrame>(arena, *from._impl_.destination_) - : nullptr; - _impl_.component_name_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::viam::common::v1::ResourceName>(arena, *from._impl_.component_name_) - : nullptr; - _impl_.world_state_ = (cached_has_bits & 0x00000004u) - ? CreateMaybeMessage<::viam::common::v1::WorldState>(arena, *from._impl_.world_state_) - : nullptr; - _impl_.constraints_ = (cached_has_bits & 0x00000008u) - ? CreateMaybeMessage<::viam::service::motion::v1::Constraints>(arena, *from._impl_.constraints_) - : nullptr; - _impl_.extra_ = (cached_has_bits & 0x00000010u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +MoveRequest::MoveRequest(const MoveRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_) { + _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_destination()) { + destination_ = new ::viam::common::v1::PoseInFrame(*from.destination_); + } else { + destination_ = nullptr; + } + if (from._internal_has_component_name()) { + component_name_ = new ::viam::common::v1::ResourceName(*from.component_name_); + } else { + component_name_ = nullptr; + } + if (from._internal_has_world_state()) { + world_state_ = new ::viam::common::v1::WorldState(*from.world_state_); + } else { + world_state_ = nullptr; + } + if (from._internal_has_constraints()) { + constraints_ = new ::viam::service::motion::v1::Constraints(*from.constraints_); + } else { + constraints_ = nullptr; + } + if (from._internal_has_extra()) { + extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.extra_); + } else { + extra_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.service.motion.v1.MoveRequest) } -inline PROTOBUF_NDEBUG_INLINE MoveRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} - -inline void MoveRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, destination_), - 0, - offsetof(Impl_, extra_) - - offsetof(Impl_, destination_) + - sizeof(Impl_::extra_)); + +inline void MoveRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&destination_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&extra_) - + reinterpret_cast(&destination_)) + sizeof(extra_)); } + MoveRequest::~MoveRequest() { // @@protoc_insertion_point(destructor:viam.service.motion.v1.MoveRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void MoveRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.destination_; - delete _impl_.component_name_; - delete _impl_.world_state_; - delete _impl_.constraints_; - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete destination_; + if (this != internal_default_instance()) delete component_name_; + if (this != internal_default_instance()) delete world_state_; + if (this != internal_default_instance()) delete constraints_; + if (this != internal_default_instance()) delete extra_; } -PROTOBUF_NOINLINE void MoveRequest::Clear() { +void MoveRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void MoveRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.motion.v1.MoveRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && destination_ != nullptr) { + delete destination_; + } + destination_ = nullptr; + if (GetArenaForAllocation() == nullptr && component_name_ != nullptr) { + delete component_name_; + } + component_name_ = nullptr; + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.destination_ != nullptr); - _impl_.destination_->Clear(); + GOOGLE_DCHECK(world_state_ != nullptr); + world_state_->Clear(); } if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.component_name_ != nullptr); - _impl_.component_name_->Clear(); - } - if (cached_has_bits & 0x00000004u) { - ABSL_DCHECK(_impl_.world_state_ != nullptr); - _impl_.world_state_->Clear(); - } - if (cached_has_bits & 0x00000008u) { - ABSL_DCHECK(_impl_.constraints_ != nullptr); - _impl_.constraints_->Clear(); - } - if (cached_has_bits & 0x00000010u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); + GOOGLE_DCHECK(constraints_ != nullptr); + constraints_->Clear(); } } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* MoveRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* MoveRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + 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.service.motion.v1.MoveRequest.name")); + } else + goto handle_unusual; + continue; + // .viam.common.v1.PoseInFrame destination = 2 [json_name = "destination"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_destination(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.common.v1.ResourceName component_name = 3 [json_name = "componentName"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_component_name(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional .viam.common.v1.WorldState world_state = 4 [json_name = "worldState"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_world_state(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional .viam.service.motion.v1.Constraints constraints = 5 [json_name = "constraints"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_constraints(), ptr); + CHK_(ptr); + } 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: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 6, 5, 47, 7> MoveRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(MoveRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967264, // skipmap - offsetof(decltype(_table_), field_entries), - 6, // num_field_entries - 5, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_MoveRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(MoveRequest, _impl_.name_)}}, - // .viam.common.v1.PoseInFrame destination = 2 [json_name = "destination"]; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(MoveRequest, _impl_.destination_)}}, - // .viam.common.v1.ResourceName component_name = 3 [json_name = "componentName"]; - {::_pbi::TcParser::FastMtS1, - {26, 1, 1, PROTOBUF_FIELD_OFFSET(MoveRequest, _impl_.component_name_)}}, - // optional .viam.common.v1.WorldState world_state = 4 [json_name = "worldState"]; - {::_pbi::TcParser::FastMtS1, - {34, 2, 2, PROTOBUF_FIELD_OFFSET(MoveRequest, _impl_.world_state_)}}, - // optional .viam.service.motion.v1.Constraints constraints = 5 [json_name = "constraints"]; - {::_pbi::TcParser::FastMtS1, - {42, 3, 3, PROTOBUF_FIELD_OFFSET(MoveRequest, _impl_.constraints_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 99, 0, 1, - 65534, 5, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(MoveRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .viam.common.v1.PoseInFrame destination = 2 [json_name = "destination"]; - {PROTOBUF_FIELD_OFFSET(MoveRequest, _impl_.destination_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .viam.common.v1.ResourceName component_name = 3 [json_name = "componentName"]; - {PROTOBUF_FIELD_OFFSET(MoveRequest, _impl_.component_name_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // optional .viam.common.v1.WorldState world_state = 4 [json_name = "worldState"]; - {PROTOBUF_FIELD_OFFSET(MoveRequest, _impl_.world_state_), _Internal::kHasBitsOffset + 2, 2, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // optional .viam.service.motion.v1.Constraints constraints = 5 [json_name = "constraints"]; - {PROTOBUF_FIELD_OFFSET(MoveRequest, _impl_.constraints_), _Internal::kHasBitsOffset + 3, 3, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(MoveRequest, _impl_.extra_), _Internal::kHasBitsOffset + 4, 4, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::common::v1::PoseInFrame>()}, - {::_pbi::TcParser::GetTable<::viam::common::v1::ResourceName>()}, - {::_pbi::TcParser::GetTable<::viam::common::v1::WorldState>()}, - {::_pbi::TcParser::GetTable<::viam::service::motion::v1::Constraints>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\42\4\0\0\0\0\0\0" - "viam.service.motion.v1.MoveRequest" - "name" - }}, -}; - -::uint8_t* MoveRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* MoveRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.motion.v1.MoveRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.motion.v1.MoveRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.motion.v1.MoveRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .viam.common.v1.PoseInFrame destination = 2 [json_name = "destination"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::destination(this), + if (this->_internal_has_destination()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::destination(this), _Internal::destination(this).GetCachedSize(), target, stream); } // .viam.common.v1.ResourceName component_name = 3 [json_name = "componentName"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::component_name(this), + if (this->_internal_has_component_name()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::component_name(this), _Internal::component_name(this).GetCachedSize(), target, stream); } // optional .viam.common.v1.WorldState world_state = 4 [json_name = "worldState"]; - if (cached_has_bits & 0x00000004u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, _Internal::world_state(this), + if (_internal_has_world_state()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::world_state(this), _Internal::world_state(this).GetCachedSize(), target, stream); } // optional .viam.service.motion.v1.Constraints constraints = 5 [json_name = "constraints"]; - if (cached_has_bits & 0x00000008u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 5, _Internal::constraints(this), + if (_internal_has_constraints()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(5, _Internal::constraints(this), _Internal::constraints(this).GetCachedSize(), target, stream); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000010u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.MoveRequest) return target; } -::size_t MoveRequest::ByteSizeLong() const { +size_t MoveRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.motion.v1.MoveRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { - // .viam.common.v1.PoseInFrame destination = 2 [json_name = "destination"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.destination_); - } + // .viam.common.v1.PoseInFrame destination = 2 [json_name = "destination"]; + if (this->_internal_has_destination()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *destination_); + } - // .viam.common.v1.ResourceName component_name = 3 [json_name = "componentName"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.component_name_); - } + // .viam.common.v1.ResourceName component_name = 3 [json_name = "componentName"]; + if (this->_internal_has_component_name()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *component_name_); + } + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000003u) { // optional .viam.common.v1.WorldState world_state = 4 [json_name = "worldState"]; - if (cached_has_bits & 0x00000004u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.world_state_); + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *world_state_); } // optional .viam.service.motion.v1.Constraints constraints = 5 [json_name = "constraints"]; - if (cached_has_bits & 0x00000008u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.constraints_); - } - - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000010u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (cached_has_bits & 0x00000002u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *constraints_); } } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + // .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 ::google::protobuf::Message::ClassData MoveRequest::_class_data_ = { - MoveRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + MoveRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* MoveRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MoveRequest::GetClassData() const { return &_class_data_; } + +void MoveRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void MoveRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.MoveRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void MoveRequest::MergeFrom(const MoveRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.MoveRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { + if (from._internal_has_destination()) { + _internal_mutable_destination()->::viam::common::v1::PoseInFrame::MergeFrom(from._internal_destination()); + } + if (from._internal_has_component_name()) { + _internal_mutable_component_name()->::viam::common::v1::ResourceName::MergeFrom(from._internal_component_name()); + } + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_destination()->::viam::common::v1::PoseInFrame::MergeFrom( - from._internal_destination()); + _internal_mutable_world_state()->::viam::common::v1::WorldState::MergeFrom(from._internal_world_state()); } if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_component_name()->::viam::common::v1::ResourceName::MergeFrom( - from._internal_component_name()); - } - if (cached_has_bits & 0x00000004u) { - _this->_internal_mutable_world_state()->::viam::common::v1::WorldState::MergeFrom( - from._internal_world_state()); - } - if (cached_has_bits & 0x00000008u) { - _this->_internal_mutable_constraints()->::viam::service::motion::v1::Constraints::MergeFrom( - from._internal_constraints()); - } - if (cached_has_bits & 0x00000010u) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + _internal_mutable_constraints()->::viam::service::motion::v1::Constraints::MergeFrom(from._internal_constraints()); } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + 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 MoveRequest::CopyFrom(const MoveRequest& from) { @@ -1721,175 +1412,180 @@ void MoveRequest::CopyFrom(const MoveRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool MoveRequest::IsInitialized() const { +bool MoveRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* MoveRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void MoveRequest::InternalSwap(MoveRequest* PROTOBUF_RESTRICT other) { +void MoveRequest::InternalSwap(MoveRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(MoveRequest, _impl_.extra_) - + sizeof(MoveRequest::_impl_.extra_) - - PROTOBUF_FIELD_OFFSET(MoveRequest, _impl_.destination_)>( - reinterpret_cast(&_impl_.destination_), - reinterpret_cast(&other->_impl_.destination_)); -} - -::google::protobuf::Metadata MoveRequest::GetMetadata() const { + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(MoveRequest, extra_) + + sizeof(MoveRequest::extra_) + - PROTOBUF_FIELD_OFFSET(MoveRequest, destination_)>( + reinterpret_cast(&destination_), + reinterpret_cast(&other->destination_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata MoveRequest::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[0]); } + // =================================================================== class MoveResponse::_Internal { public: }; -MoveResponse::MoveResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +MoveResponse::MoveResponse(::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.MoveResponse) } -MoveResponse::MoveResponse( - ::google::protobuf::Arena* arena, const MoveResponse& from) - : MoveResponse(arena) { - MergeFrom(from); +MoveResponse::MoveResponse(const MoveResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + success_ = from.success_; + // @@protoc_insertion_point(copy_constructor:viam.service.motion.v1.MoveResponse) } -inline PROTOBUF_NDEBUG_INLINE MoveResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void MoveResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.success_ = {}; +inline void MoveResponse::SharedCtor() { +success_ = false; } + MoveResponse::~MoveResponse() { // @@protoc_insertion_point(destructor:viam.service.motion.v1.MoveResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void MoveResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void MoveResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void MoveResponse::Clear() { +void MoveResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.motion.v1.MoveResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.success_ = false; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* MoveResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + success_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* MoveResponse::_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) { + // bool success = 1 [json_name = "success"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + success_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> MoveResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_MoveResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // bool success = 1 [json_name = "success"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(MoveResponse, _impl_.success_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bool success = 1 [json_name = "success"]; - {PROTOBUF_FIELD_OFFSET(MoveResponse, _impl_.success_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* MoveResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* MoveResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.motion.v1.MoveResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // bool success = 1 [json_name = "success"]; if (this->_internal_success() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 1, this->_internal_success(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_success(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.MoveResponse) return target; } -::size_t MoveResponse::ByteSizeLong() const { +size_t MoveResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.motion.v1.MoveResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // bool success = 1 [json_name = "success"]; if (this->_internal_success() != 0) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData MoveResponse::_class_data_ = { - MoveResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + MoveResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* MoveResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MoveResponse::GetClassData() const { return &_class_data_; } + +void MoveResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void MoveResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.MoveResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void MoveResponse::MergeFrom(const MoveResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.MoveResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_success() != 0) { - _this->_internal_set_success(from._internal_success()); + _internal_set_success(from._internal_success()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MoveResponse::CopyFrom(const MoveResponse& from) { @@ -1899,452 +1595,460 @@ void MoveResponse::CopyFrom(const MoveResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool MoveResponse::IsInitialized() const { +bool MoveResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* MoveResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void MoveResponse::InternalSwap(MoveResponse* PROTOBUF_RESTRICT other) { +void MoveResponse::InternalSwap(MoveResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.success_, other->_impl_.success_); + swap(success_, other->success_); } -::google::protobuf::Metadata MoveResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata MoveResponse::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[1]); } + // =================================================================== class MoveOnMapRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(MoveOnMapRequest, _impl_._has_bits_); + using HasBits = decltype(std::declval()._has_bits_); static const ::viam::common::v1::Pose& destination(const MoveOnMapRequest* msg); - static void set_has_destination(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } static const ::viam::common::v1::ResourceName& component_name(const MoveOnMapRequest* msg); - static void set_has_component_name(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } static const ::viam::common::v1::ResourceName& slam_service_name(const MoveOnMapRequest* msg); - static void set_has_slam_service_name(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } static const ::viam::service::motion::v1::MotionConfiguration& motion_configuration(const MoveOnMapRequest* msg); static void set_has_motion_configuration(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static const ::google::protobuf::Struct& extra(const MoveOnMapRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 16u; + (*has_bits)[0] |= 1u; } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const MoveOnMapRequest* msg); }; -const ::viam::common::v1::Pose& MoveOnMapRequest::_Internal::destination(const MoveOnMapRequest* msg) { - return *msg->_impl_.destination_; +const ::viam::common::v1::Pose& +MoveOnMapRequest::_Internal::destination(const MoveOnMapRequest* msg) { + return *msg->destination_; } -const ::viam::common::v1::ResourceName& MoveOnMapRequest::_Internal::component_name(const MoveOnMapRequest* msg) { - return *msg->_impl_.component_name_; +const ::viam::common::v1::ResourceName& +MoveOnMapRequest::_Internal::component_name(const MoveOnMapRequest* msg) { + return *msg->component_name_; } -const ::viam::common::v1::ResourceName& MoveOnMapRequest::_Internal::slam_service_name(const MoveOnMapRequest* msg) { - return *msg->_impl_.slam_service_name_; +const ::viam::common::v1::ResourceName& +MoveOnMapRequest::_Internal::slam_service_name(const MoveOnMapRequest* msg) { + return *msg->slam_service_name_; } -const ::viam::service::motion::v1::MotionConfiguration& MoveOnMapRequest::_Internal::motion_configuration(const MoveOnMapRequest* msg) { - return *msg->_impl_.motion_configuration_; +const ::viam::service::motion::v1::MotionConfiguration& +MoveOnMapRequest::_Internal::motion_configuration(const MoveOnMapRequest* msg) { + return *msg->motion_configuration_; } -const ::google::protobuf::Struct& MoveOnMapRequest::_Internal::extra(const MoveOnMapRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +MoveOnMapRequest::_Internal::extra(const MoveOnMapRequest* msg) { + return *msg->extra_; } void MoveOnMapRequest::clear_destination() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.destination_ != nullptr) _impl_.destination_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && destination_ != nullptr) { + delete destination_; + } + destination_ = nullptr; } void MoveOnMapRequest::clear_component_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.component_name_ != nullptr) _impl_.component_name_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && component_name_ != nullptr) { + delete component_name_; + } + component_name_ = nullptr; } void MoveOnMapRequest::clear_slam_service_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.slam_service_name_ != nullptr) _impl_.slam_service_name_->Clear(); - _impl_._has_bits_[0] &= ~0x00000004u; + if (GetArenaForAllocation() == nullptr && slam_service_name_ != nullptr) { + delete slam_service_name_; + } + slam_service_name_ = nullptr; } void MoveOnMapRequest::clear_obstacles() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.obstacles_.Clear(); + obstacles_.Clear(); } void MoveOnMapRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000010u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -MoveOnMapRequest::MoveOnMapRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +MoveOnMapRequest::MoveOnMapRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + obstacles_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.service.motion.v1.MoveOnMapRequest) } -inline PROTOBUF_NDEBUG_INLINE MoveOnMapRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - obstacles_{visibility, arena, from.obstacles_}, - name_(arena, from.name_) {} - -MoveOnMapRequest::MoveOnMapRequest( - ::google::protobuf::Arena* arena, - const MoveOnMapRequest& from) - : ::google::protobuf::Message(arena) { - MoveOnMapRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.destination_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::common::v1::Pose>(arena, *from._impl_.destination_) - : nullptr; - _impl_.component_name_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::viam::common::v1::ResourceName>(arena, *from._impl_.component_name_) - : nullptr; - _impl_.slam_service_name_ = (cached_has_bits & 0x00000004u) - ? CreateMaybeMessage<::viam::common::v1::ResourceName>(arena, *from._impl_.slam_service_name_) - : nullptr; - _impl_.motion_configuration_ = (cached_has_bits & 0x00000008u) - ? CreateMaybeMessage<::viam::service::motion::v1::MotionConfiguration>(arena, *from._impl_.motion_configuration_) - : nullptr; - _impl_.extra_ = (cached_has_bits & 0x00000010u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +MoveOnMapRequest::MoveOnMapRequest(const MoveOnMapRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_), + obstacles_(from.obstacles_) { + _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_destination()) { + destination_ = new ::viam::common::v1::Pose(*from.destination_); + } else { + destination_ = nullptr; + } + if (from._internal_has_component_name()) { + component_name_ = new ::viam::common::v1::ResourceName(*from.component_name_); + } else { + component_name_ = nullptr; + } + if (from._internal_has_slam_service_name()) { + slam_service_name_ = new ::viam::common::v1::ResourceName(*from.slam_service_name_); + } else { + slam_service_name_ = nullptr; + } + if (from._internal_has_motion_configuration()) { + motion_configuration_ = new ::viam::service::motion::v1::MotionConfiguration(*from.motion_configuration_); + } else { + motion_configuration_ = nullptr; + } + if (from._internal_has_extra()) { + extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.extra_); + } else { + extra_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.service.motion.v1.MoveOnMapRequest) } -inline PROTOBUF_NDEBUG_INLINE MoveOnMapRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - obstacles_{visibility, arena}, - name_(arena) {} - -inline void MoveOnMapRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, destination_), - 0, - offsetof(Impl_, extra_) - - offsetof(Impl_, destination_) + - sizeof(Impl_::extra_)); + +inline void MoveOnMapRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&destination_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&extra_) - + reinterpret_cast(&destination_)) + sizeof(extra_)); } + MoveOnMapRequest::~MoveOnMapRequest() { // @@protoc_insertion_point(destructor:viam.service.motion.v1.MoveOnMapRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void MoveOnMapRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.destination_; - delete _impl_.component_name_; - delete _impl_.slam_service_name_; - delete _impl_.motion_configuration_; - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete destination_; + if (this != internal_default_instance()) delete component_name_; + if (this != internal_default_instance()) delete slam_service_name_; + if (this != internal_default_instance()) delete motion_configuration_; + if (this != internal_default_instance()) delete extra_; +} + +void MoveOnMapRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void MoveOnMapRequest::Clear() { +void MoveOnMapRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.motion.v1.MoveOnMapRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.obstacles_.Clear(); - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.destination_ != nullptr); - _impl_.destination_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.component_name_ != nullptr); - _impl_.component_name_->Clear(); - } - if (cached_has_bits & 0x00000004u) { - ABSL_DCHECK(_impl_.slam_service_name_ != nullptr); - _impl_.slam_service_name_->Clear(); - } - if (cached_has_bits & 0x00000008u) { - ABSL_DCHECK(_impl_.motion_configuration_ != nullptr); - _impl_.motion_configuration_->Clear(); - } - if (cached_has_bits & 0x00000010u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } + obstacles_.Clear(); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && destination_ != nullptr) { + delete destination_; } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* MoveOnMapRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + destination_ = nullptr; + if (GetArenaForAllocation() == nullptr && component_name_ != nullptr) { + delete component_name_; + } + component_name_ = nullptr; + if (GetArenaForAllocation() == nullptr && slam_service_name_ != nullptr) { + delete slam_service_name_; + } + slam_service_name_ = nullptr; + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(motion_configuration_ != nullptr); + motion_configuration_->Clear(); + } + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* MoveOnMapRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + 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.service.motion.v1.MoveOnMapRequest.name")); + } else + goto handle_unusual; + continue; + // .viam.common.v1.Pose destination = 2 [json_name = "destination"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_destination(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.common.v1.ResourceName component_name = 3 [json_name = "componentName"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_component_name(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.common.v1.ResourceName slam_service_name = 4 [json_name = "slamServiceName"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_slam_service_name(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional .viam.service.motion.v1.MotionConfiguration motion_configuration = 5 [json_name = "motionConfiguration"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_motion_configuration(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // repeated .viam.common.v1.Geometry obstacles = 6 [json_name = "obstacles"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_obstacles(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(ptr)); + } 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: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 7, 6, 52, 7> MoveOnMapRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(MoveOnMapRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967232, // skipmap - offsetof(decltype(_table_), field_entries), - 7, // num_field_entries - 6, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_MoveOnMapRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(MoveOnMapRequest, _impl_.name_)}}, - // .viam.common.v1.Pose destination = 2 [json_name = "destination"]; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(MoveOnMapRequest, _impl_.destination_)}}, - // .viam.common.v1.ResourceName component_name = 3 [json_name = "componentName"]; - {::_pbi::TcParser::FastMtS1, - {26, 1, 1, PROTOBUF_FIELD_OFFSET(MoveOnMapRequest, _impl_.component_name_)}}, - // .viam.common.v1.ResourceName slam_service_name = 4 [json_name = "slamServiceName"]; - {::_pbi::TcParser::FastMtS1, - {34, 2, 2, PROTOBUF_FIELD_OFFSET(MoveOnMapRequest, _impl_.slam_service_name_)}}, - // optional .viam.service.motion.v1.MotionConfiguration motion_configuration = 5 [json_name = "motionConfiguration"]; - {::_pbi::TcParser::FastMtS1, - {42, 3, 3, PROTOBUF_FIELD_OFFSET(MoveOnMapRequest, _impl_.motion_configuration_)}}, - // repeated .viam.common.v1.Geometry obstacles = 6 [json_name = "obstacles"]; - {::_pbi::TcParser::FastMtR1, - {50, 63, 4, PROTOBUF_FIELD_OFFSET(MoveOnMapRequest, _impl_.obstacles_)}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 99, 0, 1, - 65534, 6, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(MoveOnMapRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .viam.common.v1.Pose destination = 2 [json_name = "destination"]; - {PROTOBUF_FIELD_OFFSET(MoveOnMapRequest, _impl_.destination_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .viam.common.v1.ResourceName component_name = 3 [json_name = "componentName"]; - {PROTOBUF_FIELD_OFFSET(MoveOnMapRequest, _impl_.component_name_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .viam.common.v1.ResourceName slam_service_name = 4 [json_name = "slamServiceName"]; - {PROTOBUF_FIELD_OFFSET(MoveOnMapRequest, _impl_.slam_service_name_), _Internal::kHasBitsOffset + 2, 2, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // optional .viam.service.motion.v1.MotionConfiguration motion_configuration = 5 [json_name = "motionConfiguration"]; - {PROTOBUF_FIELD_OFFSET(MoveOnMapRequest, _impl_.motion_configuration_), _Internal::kHasBitsOffset + 3, 3, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated .viam.common.v1.Geometry obstacles = 6 [json_name = "obstacles"]; - {PROTOBUF_FIELD_OFFSET(MoveOnMapRequest, _impl_.obstacles_), -1, 4, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(MoveOnMapRequest, _impl_.extra_), _Internal::kHasBitsOffset + 4, 5, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::common::v1::Pose>()}, - {::_pbi::TcParser::GetTable<::viam::common::v1::ResourceName>()}, - {::_pbi::TcParser::GetTable<::viam::common::v1::ResourceName>()}, - {::_pbi::TcParser::GetTable<::viam::service::motion::v1::MotionConfiguration>()}, - {::_pbi::TcParser::GetTable<::viam::common::v1::Geometry>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\47\4\0\0\0\0\0\0" - "viam.service.motion.v1.MoveOnMapRequest" - "name" - }}, -}; - -::uint8_t* MoveOnMapRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* MoveOnMapRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.motion.v1.MoveOnMapRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.motion.v1.MoveOnMapRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.motion.v1.MoveOnMapRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .viam.common.v1.Pose destination = 2 [json_name = "destination"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::destination(this), + if (this->_internal_has_destination()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::destination(this), _Internal::destination(this).GetCachedSize(), target, stream); } // .viam.common.v1.ResourceName component_name = 3 [json_name = "componentName"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::component_name(this), + if (this->_internal_has_component_name()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::component_name(this), _Internal::component_name(this).GetCachedSize(), target, stream); } // .viam.common.v1.ResourceName slam_service_name = 4 [json_name = "slamServiceName"]; - if (cached_has_bits & 0x00000004u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, _Internal::slam_service_name(this), + if (this->_internal_has_slam_service_name()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::slam_service_name(this), _Internal::slam_service_name(this).GetCachedSize(), target, stream); } // optional .viam.service.motion.v1.MotionConfiguration motion_configuration = 5 [json_name = "motionConfiguration"]; - if (cached_has_bits & 0x00000008u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 5, _Internal::motion_configuration(this), + if (_internal_has_motion_configuration()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(5, _Internal::motion_configuration(this), _Internal::motion_configuration(this).GetCachedSize(), target, stream); } // repeated .viam.common.v1.Geometry obstacles = 6 [json_name = "obstacles"]; for (unsigned i = 0, n = static_cast(this->_internal_obstacles_size()); i < n; i++) { - const auto& repfield = this->_internal_obstacles().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_obstacles(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(6, repfield, repfield.GetCachedSize(), target, stream); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000010u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.MoveOnMapRequest) return target; } -::size_t MoveOnMapRequest::ByteSizeLong() const { +size_t MoveOnMapRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.motion.v1.MoveOnMapRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.common.v1.Geometry obstacles = 6 [json_name = "obstacles"]; total_size += 1UL * this->_internal_obstacles_size(); - for (const auto& msg : this->_internal_obstacles()) { + for (const auto& msg : this->obstacles_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { - // .viam.common.v1.Pose destination = 2 [json_name = "destination"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.destination_); - } - - // .viam.common.v1.ResourceName component_name = 3 [json_name = "componentName"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.component_name_); - } + // .viam.common.v1.Pose destination = 2 [json_name = "destination"]; + if (this->_internal_has_destination()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *destination_); + } - // .viam.common.v1.ResourceName slam_service_name = 4 [json_name = "slamServiceName"]; - if (cached_has_bits & 0x00000004u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.slam_service_name_); - } + // .viam.common.v1.ResourceName component_name = 3 [json_name = "componentName"]; + if (this->_internal_has_component_name()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *component_name_); + } - // optional .viam.service.motion.v1.MotionConfiguration motion_configuration = 5 [json_name = "motionConfiguration"]; - if (cached_has_bits & 0x00000008u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.motion_configuration_); - } + // .viam.common.v1.ResourceName slam_service_name = 4 [json_name = "slamServiceName"]; + if (this->_internal_has_slam_service_name()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *slam_service_name_); + } - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000010u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); - } + // optional .viam.service.motion.v1.MotionConfiguration motion_configuration = 5 [json_name = "motionConfiguration"]; + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *motion_configuration_); + } + // .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, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData MoveOnMapRequest::_class_data_ = { - MoveOnMapRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveOnMapRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + MoveOnMapRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* MoveOnMapRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MoveOnMapRequest::GetClassData() const { return &_class_data_; } + +void MoveOnMapRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void MoveOnMapRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.MoveOnMapRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void MoveOnMapRequest::MergeFrom(const MoveOnMapRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.MoveOnMapRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_obstacles()->MergeFrom( - from._internal_obstacles()); + obstacles_.MergeFrom(from.obstacles_); if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_destination()->::viam::common::v1::Pose::MergeFrom( - from._internal_destination()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_component_name()->::viam::common::v1::ResourceName::MergeFrom( - from._internal_component_name()); - } - if (cached_has_bits & 0x00000004u) { - _this->_internal_mutable_slam_service_name()->::viam::common::v1::ResourceName::MergeFrom( - from._internal_slam_service_name()); - } - if (cached_has_bits & 0x00000008u) { - _this->_internal_mutable_motion_configuration()->::viam::service::motion::v1::MotionConfiguration::MergeFrom( - from._internal_motion_configuration()); - } - if (cached_has_bits & 0x00000010u) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); - } + if (from._internal_has_destination()) { + _internal_mutable_destination()->::viam::common::v1::Pose::MergeFrom(from._internal_destination()); + } + if (from._internal_has_component_name()) { + _internal_mutable_component_name()->::viam::common::v1::ResourceName::MergeFrom(from._internal_component_name()); + } + if (from._internal_has_slam_service_name()) { + _internal_mutable_slam_service_name()->::viam::common::v1::ResourceName::MergeFrom(from._internal_slam_service_name()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_motion_configuration()) { + _internal_mutable_motion_configuration()->::viam::service::motion::v1::MotionConfiguration::MergeFrom(from._internal_motion_configuration()); + } + 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 MoveOnMapRequest::CopyFrom(const MoveOnMapRequest& from) { @@ -2354,195 +2058,200 @@ void MoveOnMapRequest::CopyFrom(const MoveOnMapRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool MoveOnMapRequest::IsInitialized() const { +bool MoveOnMapRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* MoveOnMapRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void MoveOnMapRequest::InternalSwap(MoveOnMapRequest* PROTOBUF_RESTRICT other) { +void MoveOnMapRequest::InternalSwap(MoveOnMapRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.obstacles_.InternalSwap(&other->_impl_.obstacles_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(MoveOnMapRequest, _impl_.extra_) - + sizeof(MoveOnMapRequest::_impl_.extra_) - - PROTOBUF_FIELD_OFFSET(MoveOnMapRequest, _impl_.destination_)>( - reinterpret_cast(&_impl_.destination_), - reinterpret_cast(&other->_impl_.destination_)); -} - -::google::protobuf::Metadata MoveOnMapRequest::GetMetadata() const { + swap(_has_bits_[0], other->_has_bits_[0]); + obstacles_.InternalSwap(&other->obstacles_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(MoveOnMapRequest, extra_) + + sizeof(MoveOnMapRequest::extra_) + - PROTOBUF_FIELD_OFFSET(MoveOnMapRequest, destination_)>( + reinterpret_cast(&destination_), + reinterpret_cast(&other->destination_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata MoveOnMapRequest::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[2]); } + // =================================================================== class MoveOnMapResponse::_Internal { public: }; -MoveOnMapResponse::MoveOnMapResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +MoveOnMapResponse::MoveOnMapResponse(::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.MoveOnMapResponse) } -inline PROTOBUF_NDEBUG_INLINE MoveOnMapResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : execution_id_(arena, from.execution_id_), - _cached_size_{0} {} - -MoveOnMapResponse::MoveOnMapResponse( - ::google::protobuf::Arena* arena, - const MoveOnMapResponse& from) - : ::google::protobuf::Message(arena) { - MoveOnMapResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +MoveOnMapResponse::MoveOnMapResponse(const MoveOnMapResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + execution_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + execution_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_execution_id().empty()) { + execution_id_.Set(from._internal_execution_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.service.motion.v1.MoveOnMapResponse) } -inline PROTOBUF_NDEBUG_INLINE MoveOnMapResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : execution_id_(arena), - _cached_size_{0} {} -inline void MoveOnMapResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void MoveOnMapResponse::SharedCtor() { +execution_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + execution_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + MoveOnMapResponse::~MoveOnMapResponse() { // @@protoc_insertion_point(destructor:viam.service.motion.v1.MoveOnMapResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void MoveOnMapResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.execution_id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + execution_id_.Destroy(); +} + +void MoveOnMapResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void MoveOnMapResponse::Clear() { +void MoveOnMapResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.motion.v1.MoveOnMapResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.execution_id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* MoveOnMapResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + execution_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* MoveOnMapResponse::_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 execution_id = 1 [json_name = "executionId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_execution_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.motion.v1.MoveOnMapResponse.execution_id")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 61, 2> MoveOnMapResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_MoveOnMapResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string execution_id = 1 [json_name = "executionId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(MoveOnMapResponse, _impl_.execution_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string execution_id = 1 [json_name = "executionId"]; - {PROTOBUF_FIELD_OFFSET(MoveOnMapResponse, _impl_.execution_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\50\14\0\0\0\0\0\0" - "viam.service.motion.v1.MoveOnMapResponse" - "execution_id" - }}, -}; - -::uint8_t* MoveOnMapResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* MoveOnMapResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.motion.v1.MoveOnMapResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string execution_id = 1 [json_name = "executionId"]; if (!this->_internal_execution_id().empty()) { - const std::string& _s = this->_internal_execution_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.motion.v1.MoveOnMapResponse.execution_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_execution_id().data(), static_cast(this->_internal_execution_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.motion.v1.MoveOnMapResponse.execution_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_execution_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.MoveOnMapResponse) return target; } -::size_t MoveOnMapResponse::ByteSizeLong() const { +size_t MoveOnMapResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.motion.v1.MoveOnMapResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string execution_id = 1 [json_name = "executionId"]; if (!this->_internal_execution_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_execution_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_execution_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData MoveOnMapResponse::_class_data_ = { - MoveOnMapResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveOnMapResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + MoveOnMapResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* MoveOnMapResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MoveOnMapResponse::GetClassData() const { return &_class_data_; } + +void MoveOnMapResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void MoveOnMapResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.MoveOnMapResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void MoveOnMapResponse::MergeFrom(const MoveOnMapResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.MoveOnMapResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_execution_id().empty()) { - _this->_internal_set_execution_id(from._internal_execution_id()); + _internal_set_execution_id(from._internal_execution_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MoveOnMapResponse::CopyFrom(const MoveOnMapResponse& from) { @@ -2552,266 +2261,244 @@ void MoveOnMapResponse::CopyFrom(const MoveOnMapResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool MoveOnMapResponse::IsInitialized() const { +bool MoveOnMapResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* MoveOnMapResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void MoveOnMapResponse::InternalSwap(MoveOnMapResponse* PROTOBUF_RESTRICT other) { +void MoveOnMapResponse::InternalSwap(MoveOnMapResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.execution_id_, &other->_impl_.execution_id_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &execution_id_, lhs_arena, + &other->execution_id_, rhs_arena + ); } -::google::protobuf::Metadata MoveOnMapResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata MoveOnMapResponse::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[3]); } + // =================================================================== class ObstacleDetector::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ObstacleDetector, _impl_._has_bits_); static const ::viam::common::v1::ResourceName& vision_service(const ObstacleDetector* msg); - static void set_has_vision_service(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } static const ::viam::common::v1::ResourceName& camera(const ObstacleDetector* msg); - static void set_has_camera(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } }; -const ::viam::common::v1::ResourceName& ObstacleDetector::_Internal::vision_service(const ObstacleDetector* msg) { - return *msg->_impl_.vision_service_; +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->_impl_.camera_; +const ::viam::common::v1::ResourceName& +ObstacleDetector::_Internal::camera(const ObstacleDetector* msg) { + return *msg->camera_; } void ObstacleDetector::clear_vision_service() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.vision_service_ != nullptr) _impl_.vision_service_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && vision_service_ != nullptr) { + delete vision_service_; + } + vision_service_ = nullptr; } void ObstacleDetector::clear_camera() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.camera_ != nullptr) _impl_.camera_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && camera_ != nullptr) { + delete camera_; + } + camera_ = nullptr; } -ObstacleDetector::ObstacleDetector(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +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) } -inline PROTOBUF_NDEBUG_INLINE ObstacleDetector::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -ObstacleDetector::ObstacleDetector( - ::google::protobuf::Arena* arena, - const ObstacleDetector& from) - : ::google::protobuf::Message(arena) { - ObstacleDetector* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.vision_service_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::common::v1::ResourceName>(arena, *from._impl_.vision_service_) - : nullptr; - _impl_.camera_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::viam::common::v1::ResourceName>(arena, *from._impl_.camera_) - : nullptr; - +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 PROTOBUF_NDEBUG_INLINE ObstacleDetector::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void ObstacleDetector::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, vision_service_), - 0, - offsetof(Impl_, camera_) - - offsetof(Impl_, vision_service_) + - sizeof(Impl_::camera_)); +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) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ObstacleDetector::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.vision_service_; - delete _impl_.camera_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete vision_service_; + if (this != internal_default_instance()) delete camera_; } -PROTOBUF_NOINLINE void ObstacleDetector::Clear() { +void ObstacleDetector::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ObstacleDetector::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.motion.v1.ObstacleDetector) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.vision_service_ != nullptr); - _impl_.vision_service_->Clear(); + 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; } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.camera_ != nullptr); - _impl_.camera_->Clear(); - } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ObstacleDetector::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 2, 0, 2> ObstacleDetector::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ObstacleDetector, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ObstacleDetector_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.common.v1.ResourceName camera = 2 [json_name = "camera"]; - {::_pbi::TcParser::FastMtS1, - {18, 1, 1, PROTOBUF_FIELD_OFFSET(ObstacleDetector, _impl_.camera_)}}, - // .viam.common.v1.ResourceName vision_service = 1 [json_name = "visionService"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(ObstacleDetector, _impl_.vision_service_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.common.v1.ResourceName vision_service = 1 [json_name = "visionService"]; - {PROTOBUF_FIELD_OFFSET(ObstacleDetector, _impl_.vision_service_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .viam.common.v1.ResourceName camera = 2 [json_name = "camera"]; - {PROTOBUF_FIELD_OFFSET(ObstacleDetector, _impl_.camera_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::common::v1::ResourceName>()}, - {::_pbi::TcParser::GetTable<::viam::common::v1::ResourceName>()}, - }}, {{ - }}, -}; - -::uint8_t* ObstacleDetector::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +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; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.common.v1.ResourceName vision_service = 1 [json_name = "visionService"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::vision_service(this), + 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 (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::camera(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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 { +size_t ObstacleDetector::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.motion.v1.ObstacleDetector) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // .viam.common.v1.ResourceName vision_service = 1 [json_name = "visionService"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.vision_service_); - } - - // .viam.common.v1.ResourceName camera = 2 [json_name = "camera"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_); - } + // .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, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ObstacleDetector::_class_data_ = { - ObstacleDetector::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ObstacleDetector::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ObstacleDetector::MergeImpl }; -const ::google::protobuf::Message::ClassData* ObstacleDetector::GetClassData() const { - return &_class_data_; +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::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.ObstacleDetector) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +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; - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_vision_service()->::viam::common::v1::ResourceName::MergeFrom( - from._internal_vision_service()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_camera()->::viam::common::v1::ResourceName::MergeFrom( - from._internal_camera()); - } + if (from._internal_has_vision_service()) { + _internal_mutable_vision_service()->::viam::common::v1::ResourceName::MergeFrom(from._internal_vision_service()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + 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) { @@ -2821,37 +2508,32 @@ void ObstacleDetector::CopyFrom(const ObstacleDetector& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ObstacleDetector::IsInitialized() const { +bool ObstacleDetector::IsInitialized() const { return true; } -::_pbi::CachedSize* ObstacleDetector::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ObstacleDetector::InternalSwap(ObstacleDetector* PROTOBUF_RESTRICT other) { +void ObstacleDetector::InternalSwap(ObstacleDetector* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(ObstacleDetector, _impl_.camera_) - + sizeof(ObstacleDetector::_impl_.camera_) - - PROTOBUF_FIELD_OFFSET(ObstacleDetector, _impl_.vision_service_)>( - reinterpret_cast(&_impl_.vision_service_), - reinterpret_cast(&other->_impl_.vision_service_)); + ::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_)); } -::google::protobuf::Metadata ObstacleDetector::GetMetadata() const { +::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()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(MotionConfiguration, _impl_._has_bits_); + using HasBits = decltype(std::declval()._has_bits_); static void set_has_position_polling_frequency_hz(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -2869,292 +2551,292 @@ class MotionConfiguration::_Internal { } }; -MotionConfiguration::MotionConfiguration(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +MotionConfiguration::MotionConfiguration(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + obstacle_detectors_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.service.motion.v1.MotionConfiguration) } -inline PROTOBUF_NDEBUG_INLINE MotionConfiguration::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - obstacle_detectors_{visibility, arena, from.obstacle_detectors_} {} - -MotionConfiguration::MotionConfiguration( - ::google::protobuf::Arena* arena, - const MotionConfiguration& from) - : ::google::protobuf::Message(arena) { - MotionConfiguration* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, position_polling_frequency_hz_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, position_polling_frequency_hz_), - offsetof(Impl_, angular_degs_per_sec_) - - offsetof(Impl_, position_polling_frequency_hz_) + - sizeof(Impl_::angular_degs_per_sec_)); - +MotionConfiguration::MotionConfiguration(const MotionConfiguration& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_), + 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_) - + reinterpret_cast(&position_polling_frequency_hz_)) + sizeof(angular_degs_per_sec_)); // @@protoc_insertion_point(copy_constructor:viam.service.motion.v1.MotionConfiguration) } -inline PROTOBUF_NDEBUG_INLINE MotionConfiguration::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - obstacle_detectors_{visibility, arena} {} - -inline void MotionConfiguration::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, position_polling_frequency_hz_), - 0, - offsetof(Impl_, angular_degs_per_sec_) - - offsetof(Impl_, position_polling_frequency_hz_) + - sizeof(Impl_::angular_degs_per_sec_)); + +inline void MotionConfiguration::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&position_polling_frequency_hz_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&angular_degs_per_sec_) - + reinterpret_cast(&position_polling_frequency_hz_)) + sizeof(angular_degs_per_sec_)); } + MotionConfiguration::~MotionConfiguration() { // @@protoc_insertion_point(destructor:viam.service.motion.v1.MotionConfiguration) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void MotionConfiguration::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void MotionConfiguration::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void MotionConfiguration::Clear() { +void MotionConfiguration::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.motion.v1.MotionConfiguration) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.obstacle_detectors_.Clear(); - cached_has_bits = _impl_._has_bits_[0]; + obstacle_detectors_.Clear(); + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x0000001fu) { - ::memset(&_impl_.position_polling_frequency_hz_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.angular_degs_per_sec_) - - reinterpret_cast(&_impl_.position_polling_frequency_hz_)) + sizeof(_impl_.angular_degs_per_sec_)); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* MotionConfiguration::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + ::memset(&position_polling_frequency_hz_, 0, static_cast( + reinterpret_cast(&angular_degs_per_sec_) - + reinterpret_cast(&position_polling_frequency_hz_)) + sizeof(angular_degs_per_sec_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* MotionConfiguration::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // 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_obstacle_detectors(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + // optional double position_polling_frequency_hz = 2 [json_name = "positionPollingFrequencyHz"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 17)) { + _Internal::set_has_position_polling_frequency_hz(&has_bits); + position_polling_frequency_hz_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // optional double obstacle_polling_frequency_hz = 3 [json_name = "obstaclePollingFrequencyHz"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 25)) { + _Internal::set_has_obstacle_polling_frequency_hz(&has_bits); + obstacle_polling_frequency_hz_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // optional double plan_deviation_m = 4 [json_name = "planDeviationM"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 33)) { + _Internal::set_has_plan_deviation_m(&has_bits); + plan_deviation_m_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // optional double linear_m_per_sec = 5 [json_name = "linearMPerSec"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 41)) { + _Internal::set_has_linear_m_per_sec(&has_bits); + linear_m_per_sec_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // optional double angular_degs_per_sec = 6 [json_name = "angularDegsPerSec"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 49)) { + _Internal::set_has_angular_degs_per_sec(&has_bits); + angular_degs_per_sec_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 6, 1, 0, 2> MotionConfiguration::_table_ = { - { - PROTOBUF_FIELD_OFFSET(MotionConfiguration, _impl_._has_bits_), - 0, // no _extensions_ - 6, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967232, // skipmap - offsetof(decltype(_table_), field_entries), - 6, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_MotionConfiguration_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // repeated .viam.service.motion.v1.ObstacleDetector obstacle_detectors = 1 [json_name = "obstacleDetectors"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(MotionConfiguration, _impl_.obstacle_detectors_)}}, - // optional double position_polling_frequency_hz = 2 [json_name = "positionPollingFrequencyHz"]; - {::_pbi::TcParser::FastF64S1, - {17, 0, 0, PROTOBUF_FIELD_OFFSET(MotionConfiguration, _impl_.position_polling_frequency_hz_)}}, - // optional double obstacle_polling_frequency_hz = 3 [json_name = "obstaclePollingFrequencyHz"]; - {::_pbi::TcParser::FastF64S1, - {25, 1, 0, PROTOBUF_FIELD_OFFSET(MotionConfiguration, _impl_.obstacle_polling_frequency_hz_)}}, - // optional double plan_deviation_m = 4 [json_name = "planDeviationM"]; - {::_pbi::TcParser::FastF64S1, - {33, 2, 0, PROTOBUF_FIELD_OFFSET(MotionConfiguration, _impl_.plan_deviation_m_)}}, - // optional double linear_m_per_sec = 5 [json_name = "linearMPerSec"]; - {::_pbi::TcParser::FastF64S1, - {41, 3, 0, PROTOBUF_FIELD_OFFSET(MotionConfiguration, _impl_.linear_m_per_sec_)}}, - // optional double angular_degs_per_sec = 6 [json_name = "angularDegsPerSec"]; - {::_pbi::TcParser::FastF64S1, - {49, 4, 0, PROTOBUF_FIELD_OFFSET(MotionConfiguration, _impl_.angular_degs_per_sec_)}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.service.motion.v1.ObstacleDetector obstacle_detectors = 1 [json_name = "obstacleDetectors"]; - {PROTOBUF_FIELD_OFFSET(MotionConfiguration, _impl_.obstacle_detectors_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // optional double position_polling_frequency_hz = 2 [json_name = "positionPollingFrequencyHz"]; - {PROTOBUF_FIELD_OFFSET(MotionConfiguration, _impl_.position_polling_frequency_hz_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, - // optional double obstacle_polling_frequency_hz = 3 [json_name = "obstaclePollingFrequencyHz"]; - {PROTOBUF_FIELD_OFFSET(MotionConfiguration, _impl_.obstacle_polling_frequency_hz_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, - // optional double plan_deviation_m = 4 [json_name = "planDeviationM"]; - {PROTOBUF_FIELD_OFFSET(MotionConfiguration, _impl_.plan_deviation_m_), _Internal::kHasBitsOffset + 2, 0, - (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, - // optional double linear_m_per_sec = 5 [json_name = "linearMPerSec"]; - {PROTOBUF_FIELD_OFFSET(MotionConfiguration, _impl_.linear_m_per_sec_), _Internal::kHasBitsOffset + 3, 0, - (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, - // optional double angular_degs_per_sec = 6 [json_name = "angularDegsPerSec"]; - {PROTOBUF_FIELD_OFFSET(MotionConfiguration, _impl_.angular_degs_per_sec_), _Internal::kHasBitsOffset + 4, 0, - (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::service::motion::v1::ObstacleDetector>()}, - }}, {{ - }}, -}; - -::uint8_t* MotionConfiguration::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* MotionConfiguration::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.motion.v1.MotionConfiguration) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .viam.service.motion.v1.ObstacleDetector obstacle_detectors = 1 [json_name = "obstacleDetectors"]; for (unsigned i = 0, n = static_cast(this->_internal_obstacle_detectors_size()); i < n; i++) { - const auto& repfield = this->_internal_obstacle_detectors().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_obstacle_detectors(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } - cached_has_bits = _impl_._has_bits_[0]; // optional double position_polling_frequency_hz = 2 [json_name = "positionPollingFrequencyHz"]; - if (cached_has_bits & 0x00000001u) { + if (_internal_has_position_polling_frequency_hz()) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 2, this->_internal_position_polling_frequency_hz(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_position_polling_frequency_hz(), target); } // optional double obstacle_polling_frequency_hz = 3 [json_name = "obstaclePollingFrequencyHz"]; - if (cached_has_bits & 0x00000002u) { + if (_internal_has_obstacle_polling_frequency_hz()) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 3, this->_internal_obstacle_polling_frequency_hz(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(3, this->_internal_obstacle_polling_frequency_hz(), target); } // optional double plan_deviation_m = 4 [json_name = "planDeviationM"]; - if (cached_has_bits & 0x00000004u) { + if (_internal_has_plan_deviation_m()) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 4, this->_internal_plan_deviation_m(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(4, this->_internal_plan_deviation_m(), target); } // optional double linear_m_per_sec = 5 [json_name = "linearMPerSec"]; - if (cached_has_bits & 0x00000008u) { + if (_internal_has_linear_m_per_sec()) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 5, this->_internal_linear_m_per_sec(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(5, this->_internal_linear_m_per_sec(), target); } // optional double angular_degs_per_sec = 6 [json_name = "angularDegsPerSec"]; - if (cached_has_bits & 0x00000010u) { + if (_internal_has_angular_degs_per_sec()) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 6, this->_internal_angular_degs_per_sec(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(6, this->_internal_angular_degs_per_sec(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.MotionConfiguration) return target; } -::size_t MotionConfiguration::ByteSizeLong() const { +size_t MotionConfiguration::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.motion.v1.MotionConfiguration) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // 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->_internal_obstacle_detectors()) { + for (const auto& msg : this->obstacle_detectors_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - cached_has_bits = _impl_._has_bits_[0]; + + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x0000001fu) { // optional double position_polling_frequency_hz = 2 [json_name = "positionPollingFrequencyHz"]; if (cached_has_bits & 0x00000001u) { - total_size += 9; + total_size += 1 + 8; } // optional double obstacle_polling_frequency_hz = 3 [json_name = "obstaclePollingFrequencyHz"]; if (cached_has_bits & 0x00000002u) { - total_size += 9; + total_size += 1 + 8; } // optional double plan_deviation_m = 4 [json_name = "planDeviationM"]; if (cached_has_bits & 0x00000004u) { - total_size += 9; + total_size += 1 + 8; } // optional double linear_m_per_sec = 5 [json_name = "linearMPerSec"]; if (cached_has_bits & 0x00000008u) { - total_size += 9; + total_size += 1 + 8; } // optional double angular_degs_per_sec = 6 [json_name = "angularDegsPerSec"]; if (cached_has_bits & 0x00000010u) { - total_size += 9; + total_size += 1 + 8; } } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData MotionConfiguration::_class_data_ = { - MotionConfiguration::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MotionConfiguration::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + MotionConfiguration::MergeImpl }; -const ::google::protobuf::Message::ClassData* MotionConfiguration::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MotionConfiguration::GetClassData() const { return &_class_data_; } + +void MotionConfiguration::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void MotionConfiguration::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.MotionConfiguration) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void MotionConfiguration::MergeFrom(const MotionConfiguration& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.MotionConfiguration) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_obstacle_detectors()->MergeFrom( - from._internal_obstacle_detectors()); - cached_has_bits = from._impl_._has_bits_[0]; + obstacle_detectors_.MergeFrom(from.obstacle_detectors_); + cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x0000001fu) { if (cached_has_bits & 0x00000001u) { - _this->_impl_.position_polling_frequency_hz_ = from._impl_.position_polling_frequency_hz_; + position_polling_frequency_hz_ = from.position_polling_frequency_hz_; } if (cached_has_bits & 0x00000002u) { - _this->_impl_.obstacle_polling_frequency_hz_ = from._impl_.obstacle_polling_frequency_hz_; + obstacle_polling_frequency_hz_ = from.obstacle_polling_frequency_hz_; } if (cached_has_bits & 0x00000004u) { - _this->_impl_.plan_deviation_m_ = from._impl_.plan_deviation_m_; + plan_deviation_m_ = from.plan_deviation_m_; } if (cached_has_bits & 0x00000008u) { - _this->_impl_.linear_m_per_sec_ = from._impl_.linear_m_per_sec_; + linear_m_per_sec_ = from.linear_m_per_sec_; } if (cached_has_bits & 0x00000010u) { - _this->_impl_.angular_degs_per_sec_ = from._impl_.angular_degs_per_sec_; + angular_degs_per_sec_ = from.angular_degs_per_sec_; } - _this->_impl_._has_bits_[0] |= cached_has_bits; + _has_bits_[0] |= cached_has_bits; } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MotionConfiguration::CopyFrom(const MotionConfiguration& from) { @@ -3164,514 +2846,530 @@ void MotionConfiguration::CopyFrom(const MotionConfiguration& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool MotionConfiguration::IsInitialized() const { +bool MotionConfiguration::IsInitialized() const { return true; } -::_pbi::CachedSize* MotionConfiguration::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void MotionConfiguration::InternalSwap(MotionConfiguration* PROTOBUF_RESTRICT other) { +void MotionConfiguration::InternalSwap(MotionConfiguration* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.obstacle_detectors_.InternalSwap(&other->_impl_.obstacle_detectors_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(MotionConfiguration, _impl_.angular_degs_per_sec_) - + sizeof(MotionConfiguration::_impl_.angular_degs_per_sec_) - - PROTOBUF_FIELD_OFFSET(MotionConfiguration, _impl_.position_polling_frequency_hz_)>( - reinterpret_cast(&_impl_.position_polling_frequency_hz_), - reinterpret_cast(&other->_impl_.position_polling_frequency_hz_)); + swap(_has_bits_[0], other->_has_bits_[0]); + 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_) + - PROTOBUF_FIELD_OFFSET(MotionConfiguration, position_polling_frequency_hz_)>( + reinterpret_cast(&position_polling_frequency_hz_), + reinterpret_cast(&other->position_polling_frequency_hz_)); } -::google::protobuf::Metadata MotionConfiguration::GetMetadata() const { +::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[5]); } + // =================================================================== class MoveOnGlobeRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(MoveOnGlobeRequest, _impl_._has_bits_); - static const ::viam::common::v1::GeoPoint& destination(const MoveOnGlobeRequest* msg); - static void set_has_destination(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + using HasBits = decltype(std::declval()._has_bits_); + static const ::viam::common::v1::GeoPoint& destination(const MoveOnGlobeRequest* msg); static void set_has_heading(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static const ::viam::common::v1::ResourceName& component_name(const MoveOnGlobeRequest* msg); - static void set_has_component_name(HasBits* has_bits) { (*has_bits)[0] |= 2u; } + static const ::viam::common::v1::ResourceName& component_name(const MoveOnGlobeRequest* msg); static const ::viam::common::v1::ResourceName& movement_sensor_name(const MoveOnGlobeRequest* msg); - static void set_has_movement_sensor_name(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } static const ::viam::service::motion::v1::MotionConfiguration& motion_configuration(const MoveOnGlobeRequest* msg); static void set_has_motion_configuration(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static const ::google::protobuf::Struct& extra(const MoveOnGlobeRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 16u; + (*has_bits)[0] |= 1u; } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const MoveOnGlobeRequest* msg); }; -const ::viam::common::v1::GeoPoint& MoveOnGlobeRequest::_Internal::destination(const MoveOnGlobeRequest* msg) { - return *msg->_impl_.destination_; +const ::viam::common::v1::GeoPoint& +MoveOnGlobeRequest::_Internal::destination(const MoveOnGlobeRequest* msg) { + return *msg->destination_; } -const ::viam::common::v1::ResourceName& MoveOnGlobeRequest::_Internal::component_name(const MoveOnGlobeRequest* msg) { - return *msg->_impl_.component_name_; +const ::viam::common::v1::ResourceName& +MoveOnGlobeRequest::_Internal::component_name(const MoveOnGlobeRequest* msg) { + return *msg->component_name_; } -const ::viam::common::v1::ResourceName& MoveOnGlobeRequest::_Internal::movement_sensor_name(const MoveOnGlobeRequest* msg) { - return *msg->_impl_.movement_sensor_name_; +const ::viam::common::v1::ResourceName& +MoveOnGlobeRequest::_Internal::movement_sensor_name(const MoveOnGlobeRequest* msg) { + return *msg->movement_sensor_name_; } -const ::viam::service::motion::v1::MotionConfiguration& MoveOnGlobeRequest::_Internal::motion_configuration(const MoveOnGlobeRequest* msg) { - return *msg->_impl_.motion_configuration_; +const ::viam::service::motion::v1::MotionConfiguration& +MoveOnGlobeRequest::_Internal::motion_configuration(const MoveOnGlobeRequest* msg) { + return *msg->motion_configuration_; } -const ::google::protobuf::Struct& MoveOnGlobeRequest::_Internal::extra(const MoveOnGlobeRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +MoveOnGlobeRequest::_Internal::extra(const MoveOnGlobeRequest* msg) { + return *msg->extra_; } void MoveOnGlobeRequest::clear_destination() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.destination_ != nullptr) _impl_.destination_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && destination_ != nullptr) { + delete destination_; + } + destination_ = nullptr; } void MoveOnGlobeRequest::clear_component_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.component_name_ != nullptr) _impl_.component_name_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && component_name_ != nullptr) { + delete component_name_; + } + component_name_ = nullptr; } void MoveOnGlobeRequest::clear_movement_sensor_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.movement_sensor_name_ != nullptr) _impl_.movement_sensor_name_->Clear(); - _impl_._has_bits_[0] &= ~0x00000004u; + if (GetArenaForAllocation() == nullptr && movement_sensor_name_ != nullptr) { + delete movement_sensor_name_; + } + movement_sensor_name_ = nullptr; } void MoveOnGlobeRequest::clear_obstacles() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.obstacles_.Clear(); + obstacles_.Clear(); } void MoveOnGlobeRequest::clear_bounding_regions() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.bounding_regions_.Clear(); + bounding_regions_.Clear(); } void MoveOnGlobeRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000010u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -MoveOnGlobeRequest::MoveOnGlobeRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +MoveOnGlobeRequest::MoveOnGlobeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + obstacles_(arena), + bounding_regions_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.service.motion.v1.MoveOnGlobeRequest) } -inline PROTOBUF_NDEBUG_INLINE MoveOnGlobeRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - obstacles_{visibility, arena, from.obstacles_}, - bounding_regions_{visibility, arena, from.bounding_regions_}, - name_(arena, from.name_) {} - -MoveOnGlobeRequest::MoveOnGlobeRequest( - ::google::protobuf::Arena* arena, - const MoveOnGlobeRequest& from) - : ::google::protobuf::Message(arena) { - MoveOnGlobeRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.destination_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::common::v1::GeoPoint>(arena, *from._impl_.destination_) - : nullptr; - _impl_.component_name_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::viam::common::v1::ResourceName>(arena, *from._impl_.component_name_) - : nullptr; - _impl_.movement_sensor_name_ = (cached_has_bits & 0x00000004u) - ? CreateMaybeMessage<::viam::common::v1::ResourceName>(arena, *from._impl_.movement_sensor_name_) - : nullptr; - _impl_.motion_configuration_ = (cached_has_bits & 0x00000008u) - ? CreateMaybeMessage<::viam::service::motion::v1::MotionConfiguration>(arena, *from._impl_.motion_configuration_) - : nullptr; - _impl_.extra_ = (cached_has_bits & 0x00000010u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - _impl_.heading_ = from._impl_.heading_; - +MoveOnGlobeRequest::MoveOnGlobeRequest(const MoveOnGlobeRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_), + obstacles_(from.obstacles_), + bounding_regions_(from.bounding_regions_) { + _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_destination()) { + destination_ = new ::viam::common::v1::GeoPoint(*from.destination_); + } else { + destination_ = nullptr; + } + if (from._internal_has_component_name()) { + component_name_ = new ::viam::common::v1::ResourceName(*from.component_name_); + } else { + component_name_ = nullptr; + } + if (from._internal_has_movement_sensor_name()) { + movement_sensor_name_ = new ::viam::common::v1::ResourceName(*from.movement_sensor_name_); + } else { + movement_sensor_name_ = nullptr; + } + if (from._internal_has_motion_configuration()) { + motion_configuration_ = new ::viam::service::motion::v1::MotionConfiguration(*from.motion_configuration_); + } else { + motion_configuration_ = nullptr; + } + if (from._internal_has_extra()) { + extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.extra_); + } else { + extra_ = nullptr; + } + heading_ = from.heading_; // @@protoc_insertion_point(copy_constructor:viam.service.motion.v1.MoveOnGlobeRequest) } -inline PROTOBUF_NDEBUG_INLINE MoveOnGlobeRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - obstacles_{visibility, arena}, - bounding_regions_{visibility, arena}, - name_(arena) {} - -inline void MoveOnGlobeRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, destination_), - 0, - offsetof(Impl_, heading_) - - offsetof(Impl_, destination_) + - sizeof(Impl_::heading_)); + +inline void MoveOnGlobeRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&destination_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&heading_) - + reinterpret_cast(&destination_)) + sizeof(heading_)); } + MoveOnGlobeRequest::~MoveOnGlobeRequest() { // @@protoc_insertion_point(destructor:viam.service.motion.v1.MoveOnGlobeRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void MoveOnGlobeRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.destination_; - delete _impl_.component_name_; - delete _impl_.movement_sensor_name_; - delete _impl_.motion_configuration_; - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete destination_; + if (this != internal_default_instance()) delete component_name_; + if (this != internal_default_instance()) delete movement_sensor_name_; + if (this != internal_default_instance()) delete motion_configuration_; + if (this != internal_default_instance()) delete extra_; } -PROTOBUF_NOINLINE void MoveOnGlobeRequest::Clear() { +void MoveOnGlobeRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void MoveOnGlobeRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.motion.v1.MoveOnGlobeRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.obstacles_.Clear(); - _impl_.bounding_regions_.Clear(); - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.destination_ != nullptr); - _impl_.destination_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.component_name_ != nullptr); - _impl_.component_name_->Clear(); - } - if (cached_has_bits & 0x00000004u) { - ABSL_DCHECK(_impl_.movement_sensor_name_ != nullptr); - _impl_.movement_sensor_name_->Clear(); - } - if (cached_has_bits & 0x00000008u) { - ABSL_DCHECK(_impl_.motion_configuration_ != nullptr); - _impl_.motion_configuration_->Clear(); - } - if (cached_has_bits & 0x00000010u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } + obstacles_.Clear(); + bounding_regions_.Clear(); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && destination_ != nullptr) { + delete destination_; } - _impl_.heading_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* MoveOnGlobeRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + destination_ = nullptr; + if (GetArenaForAllocation() == nullptr && component_name_ != nullptr) { + delete component_name_; + } + component_name_ = nullptr; + if (GetArenaForAllocation() == nullptr && movement_sensor_name_ != nullptr) { + delete movement_sensor_name_; + } + movement_sensor_name_ = nullptr; + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(motion_configuration_ != nullptr); + motion_configuration_->Clear(); + } + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + heading_ = 0; + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* MoveOnGlobeRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + 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.service.motion.v1.MoveOnGlobeRequest.name")); + } else + goto handle_unusual; + continue; + // .viam.common.v1.GeoPoint destination = 2 [json_name = "destination"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_destination(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional double heading = 3 [json_name = "heading"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 25)) { + _Internal::set_has_heading(&has_bits); + heading_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // .viam.common.v1.ResourceName component_name = 4 [json_name = "componentName"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_component_name(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.common.v1.ResourceName movement_sensor_name = 5 [json_name = "movementSensorName"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_movement_sensor_name(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // repeated .viam.common.v1.GeoGeometry obstacles = 6 [json_name = "obstacles"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_obstacles(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(ptr)); + } else + goto handle_unusual; + continue; + // optional .viam.service.motion.v1.MotionConfiguration motion_configuration = 7 [json_name = "motionConfiguration"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + ptr = ctx->ParseMessage(_internal_mutable_motion_configuration(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // repeated .viam.common.v1.GeoGeometry bounding_regions = 8 [json_name = "boundingRegions"]; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_bounding_regions(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<66>(ptr)); + } 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: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 9, 7, 62, 7> MoveOnGlobeRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(MoveOnGlobeRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967040, // skipmap - offsetof(decltype(_table_), field_entries), - 9, // num_field_entries - 7, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_MoveOnGlobeRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.common.v1.GeoGeometry bounding_regions = 8 [json_name = "boundingRegions"]; - {::_pbi::TcParser::FastMtR1, - {66, 63, 5, PROTOBUF_FIELD_OFFSET(MoveOnGlobeRequest, _impl_.bounding_regions_)}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(MoveOnGlobeRequest, _impl_.name_)}}, - // .viam.common.v1.GeoPoint destination = 2 [json_name = "destination"]; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(MoveOnGlobeRequest, _impl_.destination_)}}, - // optional double heading = 3 [json_name = "heading"]; - {::_pbi::TcParser::FastF64S1, - {25, 5, 0, PROTOBUF_FIELD_OFFSET(MoveOnGlobeRequest, _impl_.heading_)}}, - // .viam.common.v1.ResourceName component_name = 4 [json_name = "componentName"]; - {::_pbi::TcParser::FastMtS1, - {34, 1, 1, PROTOBUF_FIELD_OFFSET(MoveOnGlobeRequest, _impl_.component_name_)}}, - // .viam.common.v1.ResourceName movement_sensor_name = 5 [json_name = "movementSensorName"]; - {::_pbi::TcParser::FastMtS1, - {42, 2, 2, PROTOBUF_FIELD_OFFSET(MoveOnGlobeRequest, _impl_.movement_sensor_name_)}}, - // repeated .viam.common.v1.GeoGeometry obstacles = 6 [json_name = "obstacles"]; - {::_pbi::TcParser::FastMtR1, - {50, 63, 3, PROTOBUF_FIELD_OFFSET(MoveOnGlobeRequest, _impl_.obstacles_)}}, - // optional .viam.service.motion.v1.MotionConfiguration motion_configuration = 7 [json_name = "motionConfiguration"]; - {::_pbi::TcParser::FastMtS1, - {58, 3, 4, PROTOBUF_FIELD_OFFSET(MoveOnGlobeRequest, _impl_.motion_configuration_)}}, - }}, {{ - 99, 0, 1, - 65534, 8, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(MoveOnGlobeRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .viam.common.v1.GeoPoint destination = 2 [json_name = "destination"]; - {PROTOBUF_FIELD_OFFSET(MoveOnGlobeRequest, _impl_.destination_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // optional double heading = 3 [json_name = "heading"]; - {PROTOBUF_FIELD_OFFSET(MoveOnGlobeRequest, _impl_.heading_), _Internal::kHasBitsOffset + 5, 0, - (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, - // .viam.common.v1.ResourceName component_name = 4 [json_name = "componentName"]; - {PROTOBUF_FIELD_OFFSET(MoveOnGlobeRequest, _impl_.component_name_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .viam.common.v1.ResourceName movement_sensor_name = 5 [json_name = "movementSensorName"]; - {PROTOBUF_FIELD_OFFSET(MoveOnGlobeRequest, _impl_.movement_sensor_name_), _Internal::kHasBitsOffset + 2, 2, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated .viam.common.v1.GeoGeometry obstacles = 6 [json_name = "obstacles"]; - {PROTOBUF_FIELD_OFFSET(MoveOnGlobeRequest, _impl_.obstacles_), -1, 3, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // optional .viam.service.motion.v1.MotionConfiguration motion_configuration = 7 [json_name = "motionConfiguration"]; - {PROTOBUF_FIELD_OFFSET(MoveOnGlobeRequest, _impl_.motion_configuration_), _Internal::kHasBitsOffset + 3, 4, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated .viam.common.v1.GeoGeometry bounding_regions = 8 [json_name = "boundingRegions"]; - {PROTOBUF_FIELD_OFFSET(MoveOnGlobeRequest, _impl_.bounding_regions_), -1, 5, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(MoveOnGlobeRequest, _impl_.extra_), _Internal::kHasBitsOffset + 4, 6, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::common::v1::GeoPoint>()}, - {::_pbi::TcParser::GetTable<::viam::common::v1::ResourceName>()}, - {::_pbi::TcParser::GetTable<::viam::common::v1::ResourceName>()}, - {::_pbi::TcParser::GetTable<::viam::common::v1::GeoGeometry>()}, - {::_pbi::TcParser::GetTable<::viam::service::motion::v1::MotionConfiguration>()}, - {::_pbi::TcParser::GetTable<::viam::common::v1::GeoGeometry>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\51\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0" - "viam.service.motion.v1.MoveOnGlobeRequest" - "name" - }}, -}; - -::uint8_t* MoveOnGlobeRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* MoveOnGlobeRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.motion.v1.MoveOnGlobeRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.motion.v1.MoveOnGlobeRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.motion.v1.MoveOnGlobeRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .viam.common.v1.GeoPoint destination = 2 [json_name = "destination"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::destination(this), + if (this->_internal_has_destination()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::destination(this), _Internal::destination(this).GetCachedSize(), target, stream); } // optional double heading = 3 [json_name = "heading"]; - if (cached_has_bits & 0x00000020u) { + if (_internal_has_heading()) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 3, this->_internal_heading(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(3, this->_internal_heading(), target); } // .viam.common.v1.ResourceName component_name = 4 [json_name = "componentName"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, _Internal::component_name(this), + if (this->_internal_has_component_name()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::component_name(this), _Internal::component_name(this).GetCachedSize(), target, stream); } // .viam.common.v1.ResourceName movement_sensor_name = 5 [json_name = "movementSensorName"]; - if (cached_has_bits & 0x00000004u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 5, _Internal::movement_sensor_name(this), + if (this->_internal_has_movement_sensor_name()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(5, _Internal::movement_sensor_name(this), _Internal::movement_sensor_name(this).GetCachedSize(), target, stream); } // repeated .viam.common.v1.GeoGeometry obstacles = 6 [json_name = "obstacles"]; for (unsigned i = 0, n = static_cast(this->_internal_obstacles_size()); i < n; i++) { - const auto& repfield = this->_internal_obstacles().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_obstacles(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(6, repfield, repfield.GetCachedSize(), target, stream); } // optional .viam.service.motion.v1.MotionConfiguration motion_configuration = 7 [json_name = "motionConfiguration"]; - if (cached_has_bits & 0x00000008u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 7, _Internal::motion_configuration(this), + if (_internal_has_motion_configuration()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(7, _Internal::motion_configuration(this), _Internal::motion_configuration(this).GetCachedSize(), target, stream); } // repeated .viam.common.v1.GeoGeometry bounding_regions = 8 [json_name = "boundingRegions"]; for (unsigned i = 0, n = static_cast(this->_internal_bounding_regions_size()); i < n; i++) { - const auto& repfield = this->_internal_bounding_regions().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_bounding_regions(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(8, repfield, repfield.GetCachedSize(), target, stream); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000010u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.MoveOnGlobeRequest) return target; } -::size_t MoveOnGlobeRequest::ByteSizeLong() const { +size_t MoveOnGlobeRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.motion.v1.MoveOnGlobeRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.common.v1.GeoGeometry obstacles = 6 [json_name = "obstacles"]; total_size += 1UL * this->_internal_obstacles_size(); - for (const auto& msg : this->_internal_obstacles()) { + for (const auto& msg : this->obstacles_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // repeated .viam.common.v1.GeoGeometry bounding_regions = 8 [json_name = "boundingRegions"]; total_size += 1UL * this->_internal_bounding_regions_size(); - for (const auto& msg : this->_internal_bounding_regions()) { + for (const auto& msg : this->bounding_regions_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x0000003fu) { - // .viam.common.v1.GeoPoint destination = 2 [json_name = "destination"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.destination_); - } - - // .viam.common.v1.ResourceName component_name = 4 [json_name = "componentName"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.component_name_); - } + // .viam.common.v1.GeoPoint destination = 2 [json_name = "destination"]; + if (this->_internal_has_destination()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *destination_); + } - // .viam.common.v1.ResourceName movement_sensor_name = 5 [json_name = "movementSensorName"]; - if (cached_has_bits & 0x00000004u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.movement_sensor_name_); - } + // .viam.common.v1.ResourceName component_name = 4 [json_name = "componentName"]; + if (this->_internal_has_component_name()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *component_name_); + } - // optional .viam.service.motion.v1.MotionConfiguration motion_configuration = 7 [json_name = "motionConfiguration"]; - if (cached_has_bits & 0x00000008u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.motion_configuration_); - } + // .viam.common.v1.ResourceName movement_sensor_name = 5 [json_name = "movementSensorName"]; + if (this->_internal_has_movement_sensor_name()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *movement_sensor_name_); + } - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000010u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); - } + // optional .viam.service.motion.v1.MotionConfiguration motion_configuration = 7 [json_name = "motionConfiguration"]; + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *motion_configuration_); + } - // optional double heading = 3 [json_name = "heading"]; - if (cached_has_bits & 0x00000020u) { - total_size += 9; - } + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); + } + // optional double heading = 3 [json_name = "heading"]; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + 8; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData MoveOnGlobeRequest::_class_data_ = { - MoveOnGlobeRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveOnGlobeRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + MoveOnGlobeRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* MoveOnGlobeRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MoveOnGlobeRequest::GetClassData() const { return &_class_data_; } + +void MoveOnGlobeRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void MoveOnGlobeRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.MoveOnGlobeRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void MoveOnGlobeRequest::MergeFrom(const MoveOnGlobeRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.MoveOnGlobeRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_obstacles()->MergeFrom( - from._internal_obstacles()); - _this->_internal_mutable_bounding_regions()->MergeFrom( - from._internal_bounding_regions()); + obstacles_.MergeFrom(from.obstacles_); + bounding_regions_.MergeFrom(from.bounding_regions_); if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x0000003fu) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_destination()->::viam::common::v1::GeoPoint::MergeFrom( - from._internal_destination()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_component_name()->::viam::common::v1::ResourceName::MergeFrom( - from._internal_component_name()); - } - if (cached_has_bits & 0x00000004u) { - _this->_internal_mutable_movement_sensor_name()->::viam::common::v1::ResourceName::MergeFrom( - from._internal_movement_sensor_name()); - } - if (cached_has_bits & 0x00000008u) { - _this->_internal_mutable_motion_configuration()->::viam::service::motion::v1::MotionConfiguration::MergeFrom( - from._internal_motion_configuration()); - } - if (cached_has_bits & 0x00000010u) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); - } - if (cached_has_bits & 0x00000020u) { - _this->_impl_.heading_ = from._impl_.heading_; - } - _this->_impl_._has_bits_[0] |= cached_has_bits; + if (from._internal_has_destination()) { + _internal_mutable_destination()->::viam::common::v1::GeoPoint::MergeFrom(from._internal_destination()); + } + if (from._internal_has_component_name()) { + _internal_mutable_component_name()->::viam::common::v1::ResourceName::MergeFrom(from._internal_component_name()); + } + if (from._internal_has_movement_sensor_name()) { + _internal_mutable_movement_sensor_name()->::viam::common::v1::ResourceName::MergeFrom(from._internal_movement_sensor_name()); + } + if (from._internal_has_motion_configuration()) { + _internal_mutable_motion_configuration()->::viam::service::motion::v1::MotionConfiguration::MergeFrom(from._internal_motion_configuration()); + } + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); + } + if (from._internal_has_heading()) { + _internal_set_heading(from._internal_heading()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MoveOnGlobeRequest::CopyFrom(const MoveOnGlobeRequest& from) { @@ -3681,196 +3379,201 @@ void MoveOnGlobeRequest::CopyFrom(const MoveOnGlobeRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool MoveOnGlobeRequest::IsInitialized() const { +bool MoveOnGlobeRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* MoveOnGlobeRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void MoveOnGlobeRequest::InternalSwap(MoveOnGlobeRequest* PROTOBUF_RESTRICT other) { +void MoveOnGlobeRequest::InternalSwap(MoveOnGlobeRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.obstacles_.InternalSwap(&other->_impl_.obstacles_); - _impl_.bounding_regions_.InternalSwap(&other->_impl_.bounding_regions_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(MoveOnGlobeRequest, _impl_.heading_) - + sizeof(MoveOnGlobeRequest::_impl_.heading_) - - PROTOBUF_FIELD_OFFSET(MoveOnGlobeRequest, _impl_.destination_)>( - reinterpret_cast(&_impl_.destination_), - reinterpret_cast(&other->_impl_.destination_)); -} - -::google::protobuf::Metadata MoveOnGlobeRequest::GetMetadata() const { + swap(_has_bits_[0], other->_has_bits_[0]); + obstacles_.InternalSwap(&other->obstacles_); + bounding_regions_.InternalSwap(&other->bounding_regions_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(MoveOnGlobeRequest, heading_) + + sizeof(MoveOnGlobeRequest::heading_) + - PROTOBUF_FIELD_OFFSET(MoveOnGlobeRequest, destination_)>( + reinterpret_cast(&destination_), + reinterpret_cast(&other->destination_)); +} + +::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[6]); } + // =================================================================== class MoveOnGlobeResponse::_Internal { public: }; -MoveOnGlobeResponse::MoveOnGlobeResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +MoveOnGlobeResponse::MoveOnGlobeResponse(::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.MoveOnGlobeResponse) } -inline PROTOBUF_NDEBUG_INLINE MoveOnGlobeResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : execution_id_(arena, from.execution_id_), - _cached_size_{0} {} - -MoveOnGlobeResponse::MoveOnGlobeResponse( - ::google::protobuf::Arena* arena, - const MoveOnGlobeResponse& from) - : ::google::protobuf::Message(arena) { - MoveOnGlobeResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +MoveOnGlobeResponse::MoveOnGlobeResponse(const MoveOnGlobeResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + execution_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + execution_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_execution_id().empty()) { + execution_id_.Set(from._internal_execution_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.service.motion.v1.MoveOnGlobeResponse) } -inline PROTOBUF_NDEBUG_INLINE MoveOnGlobeResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : execution_id_(arena), - _cached_size_{0} {} -inline void MoveOnGlobeResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void MoveOnGlobeResponse::SharedCtor() { +execution_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + execution_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + MoveOnGlobeResponse::~MoveOnGlobeResponse() { // @@protoc_insertion_point(destructor:viam.service.motion.v1.MoveOnGlobeResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void MoveOnGlobeResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.execution_id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + execution_id_.Destroy(); } -PROTOBUF_NOINLINE void MoveOnGlobeResponse::Clear() { +void MoveOnGlobeResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void MoveOnGlobeResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.motion.v1.MoveOnGlobeResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.execution_id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* MoveOnGlobeResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + execution_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* MoveOnGlobeResponse::_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 execution_id = 1 [json_name = "executionId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_execution_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.motion.v1.MoveOnGlobeResponse.execution_id")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 63, 2> MoveOnGlobeResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_MoveOnGlobeResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string execution_id = 1 [json_name = "executionId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(MoveOnGlobeResponse, _impl_.execution_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string execution_id = 1 [json_name = "executionId"]; - {PROTOBUF_FIELD_OFFSET(MoveOnGlobeResponse, _impl_.execution_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\52\14\0\0\0\0\0\0" - "viam.service.motion.v1.MoveOnGlobeResponse" - "execution_id" - }}, -}; - -::uint8_t* MoveOnGlobeResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* MoveOnGlobeResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.motion.v1.MoveOnGlobeResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string execution_id = 1 [json_name = "executionId"]; if (!this->_internal_execution_id().empty()) { - const std::string& _s = this->_internal_execution_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.motion.v1.MoveOnGlobeResponse.execution_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_execution_id().data(), static_cast(this->_internal_execution_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.motion.v1.MoveOnGlobeResponse.execution_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_execution_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.MoveOnGlobeResponse) return target; } -::size_t MoveOnGlobeResponse::ByteSizeLong() const { +size_t MoveOnGlobeResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.motion.v1.MoveOnGlobeResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string execution_id = 1 [json_name = "executionId"]; if (!this->_internal_execution_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_execution_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_execution_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData MoveOnGlobeResponse::_class_data_ = { - MoveOnGlobeResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveOnGlobeResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + MoveOnGlobeResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* MoveOnGlobeResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MoveOnGlobeResponse::GetClassData() const { return &_class_data_; } + +void MoveOnGlobeResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void MoveOnGlobeResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.MoveOnGlobeResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void MoveOnGlobeResponse::MergeFrom(const MoveOnGlobeResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.MoveOnGlobeResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_execution_id().empty()) { - _this->_internal_set_execution_id(from._internal_execution_id()); + _internal_set_execution_id(from._internal_execution_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MoveOnGlobeResponse::CopyFrom(const MoveOnGlobeResponse& from) { @@ -3880,353 +3583,367 @@ void MoveOnGlobeResponse::CopyFrom(const MoveOnGlobeResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool MoveOnGlobeResponse::IsInitialized() const { +bool MoveOnGlobeResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* MoveOnGlobeResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void MoveOnGlobeResponse::InternalSwap(MoveOnGlobeResponse* PROTOBUF_RESTRICT other) { +void MoveOnGlobeResponse::InternalSwap(MoveOnGlobeResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.execution_id_, &other->_impl_.execution_id_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &execution_id_, lhs_arena, + &other->execution_id_, rhs_arena + ); } -::google::protobuf::Metadata MoveOnGlobeResponse::GetMetadata() const { +::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[7]); } + // =================================================================== class GetPoseRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetPoseRequest, _impl_._has_bits_); static const ::viam::common::v1::ResourceName& component_name(const GetPoseRequest* msg); - static void set_has_component_name(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::google::protobuf::Struct& extra(const GetPoseRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetPoseRequest* msg); }; -const ::viam::common::v1::ResourceName& GetPoseRequest::_Internal::component_name(const GetPoseRequest* msg) { - return *msg->_impl_.component_name_; +const ::viam::common::v1::ResourceName& +GetPoseRequest::_Internal::component_name(const GetPoseRequest* msg) { + return *msg->component_name_; } -const ::google::protobuf::Struct& GetPoseRequest::_Internal::extra(const GetPoseRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetPoseRequest::_Internal::extra(const GetPoseRequest* msg) { + return *msg->extra_; } void GetPoseRequest::clear_component_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.component_name_ != nullptr) _impl_.component_name_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && component_name_ != nullptr) { + delete component_name_; + } + component_name_ = nullptr; } void GetPoseRequest::clear_supplemental_transforms() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.supplemental_transforms_.Clear(); + supplemental_transforms_.Clear(); } void GetPoseRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -GetPoseRequest::GetPoseRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetPoseRequest::GetPoseRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + supplemental_transforms_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.service.motion.v1.GetPoseRequest) } -inline PROTOBUF_NDEBUG_INLINE GetPoseRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - supplemental_transforms_{visibility, arena, from.supplemental_transforms_}, - name_(arena, from.name_), - destination_frame_(arena, from.destination_frame_) {} - -GetPoseRequest::GetPoseRequest( - ::google::protobuf::Arena* arena, - const GetPoseRequest& from) - : ::google::protobuf::Message(arena) { - GetPoseRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.component_name_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::common::v1::ResourceName>(arena, *from._impl_.component_name_) - : nullptr; - _impl_.extra_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +GetPoseRequest::GetPoseRequest(const GetPoseRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + supplemental_transforms_(from.supplemental_transforms_) { + _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()); + } + destination_frame_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + destination_frame_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_destination_frame().empty()) { + destination_frame_.Set(from._internal_destination_frame(), + GetArenaForAllocation()); + } + if (from._internal_has_component_name()) { + component_name_ = new ::viam::common::v1::ResourceName(*from.component_name_); + } else { + component_name_ = nullptr; + } + if (from._internal_has_extra()) { + extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.extra_); + } else { + extra_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.service.motion.v1.GetPoseRequest) } -inline PROTOBUF_NDEBUG_INLINE GetPoseRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - supplemental_transforms_{visibility, arena}, - name_(arena), - destination_frame_(arena) {} - -inline void GetPoseRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, component_name_), - 0, - offsetof(Impl_, extra_) - - offsetof(Impl_, component_name_) + - sizeof(Impl_::extra_)); + +inline void GetPoseRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +destination_frame_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + destination_frame_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&component_name_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&extra_) - + reinterpret_cast(&component_name_)) + sizeof(extra_)); } + GetPoseRequest::~GetPoseRequest() { // @@protoc_insertion_point(destructor:viam.service.motion.v1.GetPoseRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetPoseRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.destination_frame_.Destroy(); - delete _impl_.component_name_; - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + destination_frame_.Destroy(); + if (this != internal_default_instance()) delete component_name_; + if (this != internal_default_instance()) delete extra_; +} + +void GetPoseRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetPoseRequest::Clear() { +void GetPoseRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.motion.v1.GetPoseRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.supplemental_transforms_.Clear(); - _impl_.name_.ClearToEmpty(); - _impl_.destination_frame_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.component_name_ != nullptr); - _impl_.component_name_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); + supplemental_transforms_.Clear(); + name_.ClearToEmpty(); + destination_frame_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && component_name_ != nullptr) { + delete component_name_; + } + component_name_ = nullptr; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPoseRequest::_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.service.motion.v1.GetPoseRequest.name")); + } else + goto handle_unusual; + continue; + // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_component_name(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string destination_frame = 3 [json_name = "destinationFrame"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_destination_frame(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.motion.v1.GetPoseRequest.destination_frame")); + } else + goto handle_unusual; + continue; + // repeated .viam.common.v1.Transform supplemental_transforms = 4 [json_name = "supplementalTransforms"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_supplemental_transforms(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr)); + } 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; } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetPoseRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 5, 3, 67, 7> GetPoseRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetPoseRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 5, // num_field_entries - 3, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetPoseRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.common.v1.Transform supplemental_transforms = 4 [json_name = "supplementalTransforms"]; - {::_pbi::TcParser::FastMtR1, - {34, 63, 1, PROTOBUF_FIELD_OFFSET(GetPoseRequest, _impl_.supplemental_transforms_)}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetPoseRequest, _impl_.name_)}}, - // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(GetPoseRequest, _impl_.component_name_)}}, - // string destination_frame = 3 [json_name = "destinationFrame"]; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(GetPoseRequest, _impl_.destination_frame_)}}, - }}, {{ - 99, 0, 1, - 65534, 4, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(GetPoseRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; - {PROTOBUF_FIELD_OFFSET(GetPoseRequest, _impl_.component_name_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // string destination_frame = 3 [json_name = "destinationFrame"]; - {PROTOBUF_FIELD_OFFSET(GetPoseRequest, _impl_.destination_frame_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated .viam.common.v1.Transform supplemental_transforms = 4 [json_name = "supplementalTransforms"]; - {PROTOBUF_FIELD_OFFSET(GetPoseRequest, _impl_.supplemental_transforms_), -1, 1, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(GetPoseRequest, _impl_.extra_), _Internal::kHasBitsOffset + 1, 2, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::common::v1::ResourceName>()}, - {::_pbi::TcParser::GetTable<::viam::common::v1::Transform>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\45\4\0\21\0\0\0\0" - "viam.service.motion.v1.GetPoseRequest" - "name" - "destination_frame" - }}, -}; - -::uint8_t* GetPoseRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetPoseRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.motion.v1.GetPoseRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.motion.v1.GetPoseRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.motion.v1.GetPoseRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::component_name(this), + if (this->_internal_has_component_name()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::component_name(this), _Internal::component_name(this).GetCachedSize(), target, stream); } // string destination_frame = 3 [json_name = "destinationFrame"]; if (!this->_internal_destination_frame().empty()) { - const std::string& _s = this->_internal_destination_frame(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.motion.v1.GetPoseRequest.destination_frame"); - target = stream->WriteStringMaybeAliased(3, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_destination_frame().data(), static_cast(this->_internal_destination_frame().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.motion.v1.GetPoseRequest.destination_frame"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_destination_frame(), target); } // repeated .viam.common.v1.Transform supplemental_transforms = 4 [json_name = "supplementalTransforms"]; for (unsigned i = 0, n = static_cast(this->_internal_supplemental_transforms_size()); i < n; i++) { - const auto& repfield = this->_internal_supplemental_transforms().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_supplemental_transforms(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(4, repfield, repfield.GetCachedSize(), target, stream); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.GetPoseRequest) return target; } -::size_t GetPoseRequest::ByteSizeLong() const { +size_t GetPoseRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.motion.v1.GetPoseRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.common.v1.Transform supplemental_transforms = 4 [json_name = "supplementalTransforms"]; total_size += 1UL * this->_internal_supplemental_transforms_size(); - for (const auto& msg : this->_internal_supplemental_transforms()) { + for (const auto& msg : this->supplemental_transforms_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // string destination_frame = 3 [json_name = "destinationFrame"]; if (!this->_internal_destination_frame().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_destination_frame()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_destination_frame()); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.component_name_); - } - - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); - } + // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; + if (this->_internal_has_component_name()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *component_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, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetPoseRequest::_class_data_ = { - GetPoseRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPoseRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetPoseRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetPoseRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPoseRequest::GetClassData() const { return &_class_data_; } + +void GetPoseRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetPoseRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.GetPoseRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetPoseRequest::MergeFrom(const GetPoseRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.GetPoseRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_supplemental_transforms()->MergeFrom( - from._internal_supplemental_transforms()); + supplemental_transforms_.MergeFrom(from.supplemental_transforms_); if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (!from._internal_destination_frame().empty()) { - _this->_internal_set_destination_frame(from._internal_destination_frame()); + _internal_set_destination_frame(from._internal_destination_frame()); } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_component_name()->::viam::common::v1::ResourceName::MergeFrom( - from._internal_component_name()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); - } + if (from._internal_has_component_name()) { + _internal_mutable_component_name()->::viam::common::v1::ResourceName::MergeFrom(from._internal_component_name()); + } + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetPoseRequest::CopyFrom(const GetPoseRequest& from) { @@ -4236,219 +3953,206 @@ void GetPoseRequest::CopyFrom(const GetPoseRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetPoseRequest::IsInitialized() const { +bool GetPoseRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetPoseRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetPoseRequest::InternalSwap(GetPoseRequest* PROTOBUF_RESTRICT other) { +void GetPoseRequest::InternalSwap(GetPoseRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.supplemental_transforms_.InternalSwap(&other->_impl_.supplemental_transforms_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.destination_frame_, &other->_impl_.destination_frame_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(GetPoseRequest, _impl_.extra_) - + sizeof(GetPoseRequest::_impl_.extra_) - - PROTOBUF_FIELD_OFFSET(GetPoseRequest, _impl_.component_name_)>( - reinterpret_cast(&_impl_.component_name_), - reinterpret_cast(&other->_impl_.component_name_)); -} - -::google::protobuf::Metadata GetPoseRequest::GetMetadata() const { + supplemental_transforms_.InternalSwap(&other->supplemental_transforms_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &destination_frame_, lhs_arena, + &other->destination_frame_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GetPoseRequest, extra_) + + sizeof(GetPoseRequest::extra_) + - PROTOBUF_FIELD_OFFSET(GetPoseRequest, component_name_)>( + reinterpret_cast(&component_name_), + reinterpret_cast(&other->component_name_)); +} + +::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[8]); } + // =================================================================== class GetPoseResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetPoseResponse, _impl_._has_bits_); static const ::viam::common::v1::PoseInFrame& pose(const GetPoseResponse* msg); - static void set_has_pose(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::common::v1::PoseInFrame& GetPoseResponse::_Internal::pose(const GetPoseResponse* msg) { - return *msg->_impl_.pose_; +const ::viam::common::v1::PoseInFrame& +GetPoseResponse::_Internal::pose(const GetPoseResponse* msg) { + return *msg->pose_; } void GetPoseResponse::clear_pose() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.pose_ != nullptr) _impl_.pose_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && pose_ != nullptr) { + delete pose_; + } + pose_ = nullptr; } -GetPoseResponse::GetPoseResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetPoseResponse::GetPoseResponse(::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.GetPoseResponse) } -inline PROTOBUF_NDEBUG_INLINE GetPoseResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -GetPoseResponse::GetPoseResponse( - ::google::protobuf::Arena* arena, - const GetPoseResponse& from) - : ::google::protobuf::Message(arena) { - GetPoseResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.pose_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::common::v1::PoseInFrame>(arena, *from._impl_.pose_) - : nullptr; - +GetPoseResponse::GetPoseResponse(const GetPoseResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_pose()) { + pose_ = new ::viam::common::v1::PoseInFrame(*from.pose_); + } else { + pose_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.service.motion.v1.GetPoseResponse) } -inline PROTOBUF_NDEBUG_INLINE GetPoseResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void GetPoseResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.pose_ = {}; +inline void GetPoseResponse::SharedCtor() { +pose_ = nullptr; } + GetPoseResponse::~GetPoseResponse() { // @@protoc_insertion_point(destructor:viam.service.motion.v1.GetPoseResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetPoseResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.pose_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete pose_; +} + +void GetPoseResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetPoseResponse::Clear() { +void GetPoseResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.motion.v1.GetPoseResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.pose_ != nullptr); - _impl_.pose_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetPoseResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + if (GetArenaForAllocation() == nullptr && pose_ != nullptr) { + delete pose_; + } + pose_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPoseResponse::_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.PoseInFrame pose = 1 [json_name = "pose"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_pose(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetPoseResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetPoseResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetPoseResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.common.v1.PoseInFrame pose = 1 [json_name = "pose"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetPoseResponse, _impl_.pose_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.common.v1.PoseInFrame pose = 1 [json_name = "pose"]; - {PROTOBUF_FIELD_OFFSET(GetPoseResponse, _impl_.pose_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::common::v1::PoseInFrame>()}, - }}, {{ - }}, -}; - -::uint8_t* GetPoseResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetPoseResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.motion.v1.GetPoseResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.common.v1.PoseInFrame pose = 1 [json_name = "pose"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::pose(this), + if (this->_internal_has_pose()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::pose(this), _Internal::pose(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.GetPoseResponse) return target; } -::size_t GetPoseResponse::ByteSizeLong() const { +size_t GetPoseResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.motion.v1.GetPoseResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .viam.common.v1.PoseInFrame pose = 1 [json_name = "pose"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.pose_); + if (this->_internal_has_pose()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *pose_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetPoseResponse::_class_data_ = { - GetPoseResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPoseResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetPoseResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetPoseResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPoseResponse::GetClassData() const { return &_class_data_; } + +void GetPoseResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetPoseResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.GetPoseResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetPoseResponse::MergeFrom(const GetPoseResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.GetPoseResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_pose()->::viam::common::v1::PoseInFrame::MergeFrom( - from._internal_pose()); + if (from._internal_has_pose()) { + _internal_mutable_pose()->::viam::common::v1::PoseInFrame::MergeFrom(from._internal_pose()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetPoseResponse::CopyFrom(const GetPoseResponse& from) { @@ -4458,298 +4162,283 @@ void GetPoseResponse::CopyFrom(const GetPoseResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetPoseResponse::IsInitialized() const { +bool GetPoseResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetPoseResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetPoseResponse::InternalSwap(GetPoseResponse* PROTOBUF_RESTRICT other) { +void GetPoseResponse::InternalSwap(GetPoseResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.pose_, other->_impl_.pose_); + swap(pose_, other->pose_); } -::google::protobuf::Metadata GetPoseResponse::GetMetadata() const { +::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[9]); } + // =================================================================== class StopPlanRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(StopPlanRequest, _impl_._has_bits_); static const ::viam::common::v1::ResourceName& component_name(const StopPlanRequest* msg); - static void set_has_component_name(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::google::protobuf::Struct& extra(const StopPlanRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const StopPlanRequest* msg); }; -const ::viam::common::v1::ResourceName& StopPlanRequest::_Internal::component_name(const StopPlanRequest* msg) { - return *msg->_impl_.component_name_; +const ::viam::common::v1::ResourceName& +StopPlanRequest::_Internal::component_name(const StopPlanRequest* msg) { + return *msg->component_name_; } -const ::google::protobuf::Struct& StopPlanRequest::_Internal::extra(const StopPlanRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +StopPlanRequest::_Internal::extra(const StopPlanRequest* msg) { + return *msg->extra_; } void StopPlanRequest::clear_component_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.component_name_ != nullptr) _impl_.component_name_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && component_name_ != nullptr) { + delete component_name_; + } + component_name_ = nullptr; } void StopPlanRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -StopPlanRequest::StopPlanRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +StopPlanRequest::StopPlanRequest(::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.StopPlanRequest) } -inline PROTOBUF_NDEBUG_INLINE StopPlanRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -StopPlanRequest::StopPlanRequest( - ::google::protobuf::Arena* arena, - const StopPlanRequest& from) - : ::google::protobuf::Message(arena) { - StopPlanRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.component_name_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::common::v1::ResourceName>(arena, *from._impl_.component_name_) - : nullptr; - _impl_.extra_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +StopPlanRequest::StopPlanRequest(const StopPlanRequest& 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_component_name()) { + component_name_ = new ::viam::common::v1::ResourceName(*from.component_name_); + } else { + component_name_ = nullptr; + } + if (from._internal_has_extra()) { + extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.extra_); + } else { + extra_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.service.motion.v1.StopPlanRequest) } -inline PROTOBUF_NDEBUG_INLINE StopPlanRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} - -inline void StopPlanRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, component_name_), - 0, - offsetof(Impl_, extra_) - - offsetof(Impl_, component_name_) + - sizeof(Impl_::extra_)); + +inline void StopPlanRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&component_name_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&extra_) - + reinterpret_cast(&component_name_)) + sizeof(extra_)); } + StopPlanRequest::~StopPlanRequest() { // @@protoc_insertion_point(destructor:viam.service.motion.v1.StopPlanRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void StopPlanRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.component_name_; - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete component_name_; + if (this != internal_default_instance()) delete extra_; } -PROTOBUF_NOINLINE void StopPlanRequest::Clear() { +void StopPlanRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void StopPlanRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.motion.v1.StopPlanRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.component_name_ != nullptr); - _impl_.component_name_->Clear(); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && component_name_ != nullptr) { + delete component_name_; + } + component_name_ = nullptr; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* StopPlanRequest::_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.service.motion.v1.StopPlanRequest.name")); + } else + goto handle_unusual; + continue; + // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_component_name(), ptr); + CHK_(ptr); + } 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; } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* StopPlanRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 2, 51, 7> StopPlanRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(StopPlanRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_StopPlanRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(StopPlanRequest, _impl_.name_)}}, - // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(StopPlanRequest, _impl_.component_name_)}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 1, 1, PROTOBUF_FIELD_OFFSET(StopPlanRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 2, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(StopPlanRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; - {PROTOBUF_FIELD_OFFSET(StopPlanRequest, _impl_.component_name_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(StopPlanRequest, _impl_.extra_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::common::v1::ResourceName>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\46\4\0\0\0\0\0\0" - "viam.service.motion.v1.StopPlanRequest" - "name" - }}, -}; - -::uint8_t* StopPlanRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* StopPlanRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.motion.v1.StopPlanRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.motion.v1.StopPlanRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.motion.v1.StopPlanRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::component_name(this), + if (this->_internal_has_component_name()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::component_name(this), _Internal::component_name(this).GetCachedSize(), target, stream); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.StopPlanRequest) return target; } -::size_t StopPlanRequest::ByteSizeLong() const { +size_t StopPlanRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.motion.v1.StopPlanRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.component_name_); - } - - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); - } + // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; + if (this->_internal_has_component_name()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *component_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, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData StopPlanRequest::_class_data_ = { - StopPlanRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StopPlanRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + StopPlanRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* StopPlanRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StopPlanRequest::GetClassData() const { return &_class_data_; } + +void StopPlanRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void StopPlanRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.StopPlanRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void StopPlanRequest::MergeFrom(const StopPlanRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.StopPlanRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_component_name()->::viam::common::v1::ResourceName::MergeFrom( - from._internal_component_name()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); - } + if (from._internal_has_component_name()) { + _internal_mutable_component_name()->::viam::common::v1::ResourceName::MergeFrom(from._internal_component_name()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + 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 StopPlanRequest::CopyFrom(const StopPlanRequest& from) { @@ -4759,52 +4448,47 @@ void StopPlanRequest::CopyFrom(const StopPlanRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool StopPlanRequest::IsInitialized() const { +bool StopPlanRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* StopPlanRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void StopPlanRequest::InternalSwap(StopPlanRequest* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(StopPlanRequest, _impl_.extra_) - + sizeof(StopPlanRequest::_impl_.extra_) - - PROTOBUF_FIELD_OFFSET(StopPlanRequest, _impl_.component_name_)>( - reinterpret_cast(&_impl_.component_name_), - reinterpret_cast(&other->_impl_.component_name_)); -} - -::google::protobuf::Metadata StopPlanRequest::GetMetadata() const { +void StopPlanRequest::InternalSwap(StopPlanRequest* 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 + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(StopPlanRequest, extra_) + + sizeof(StopPlanRequest::extra_) + - PROTOBUF_FIELD_OFFSET(StopPlanRequest, component_name_)>( + reinterpret_cast(&component_name_), + reinterpret_cast(&other->component_name_)); +} + +::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[10]); } + // =================================================================== class StopPlanResponse::_Internal { public: }; -StopPlanResponse::StopPlanResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +StopPlanResponse::StopPlanResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.service.motion.v1.StopPlanResponse) } -StopPlanResponse::StopPlanResponse( - ::google::protobuf::Arena* arena, - const StopPlanResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - StopPlanResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +StopPlanResponse::StopPlanResponse(const StopPlanResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.service.motion.v1.StopPlanResponse) } @@ -4812,260 +4496,263 @@ StopPlanResponse::StopPlanResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StopPlanResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StopPlanResponse::GetClassData() const { return &_class_data_; } + + + -::google::protobuf::Metadata StopPlanResponse::GetMetadata() const { +::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[11]); } + // =================================================================== class ListPlanStatusesRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ListPlanStatusesRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const ListPlanStatusesRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const ListPlanStatusesRequest* msg); }; -const ::google::protobuf::Struct& ListPlanStatusesRequest::_Internal::extra(const ListPlanStatusesRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +ListPlanStatusesRequest::_Internal::extra(const ListPlanStatusesRequest* msg) { + return *msg->extra_; } void ListPlanStatusesRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -ListPlanStatusesRequest::ListPlanStatusesRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ListPlanStatusesRequest::ListPlanStatusesRequest(::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.ListPlanStatusesRequest) } -inline PROTOBUF_NDEBUG_INLINE ListPlanStatusesRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -ListPlanStatusesRequest::ListPlanStatusesRequest( - ::google::protobuf::Arena* arena, - const ListPlanStatusesRequest& from) - : ::google::protobuf::Message(arena) { - ListPlanStatusesRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - _impl_.only_active_plans_ = from._impl_.only_active_plans_; - +ListPlanStatusesRequest::ListPlanStatusesRequest(const ListPlanStatusesRequest& 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; + } + only_active_plans_ = from.only_active_plans_; // @@protoc_insertion_point(copy_constructor:viam.service.motion.v1.ListPlanStatusesRequest) } -inline PROTOBUF_NDEBUG_INLINE ListPlanStatusesRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} - -inline void ListPlanStatusesRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, extra_), - 0, - offsetof(Impl_, only_active_plans_) - - offsetof(Impl_, extra_) + - sizeof(Impl_::only_active_plans_)); + +inline void ListPlanStatusesRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&extra_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&only_active_plans_) - + reinterpret_cast(&extra_)) + sizeof(only_active_plans_)); } + ListPlanStatusesRequest::~ListPlanStatusesRequest() { // @@protoc_insertion_point(destructor:viam.service.motion.v1.ListPlanStatusesRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ListPlanStatusesRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; } -PROTOBUF_NOINLINE void ListPlanStatusesRequest::Clear() { +void ListPlanStatusesRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ListPlanStatusesRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.motion.v1.ListPlanStatusesRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - _impl_.only_active_plans_ = false; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ListPlanStatusesRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + only_active_plans_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListPlanStatusesRequest::_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.service.motion.v1.ListPlanStatusesRequest.name")); + } else + goto handle_unusual; + continue; + // bool only_active_plans = 2 [json_name = "onlyActivePlans"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + only_active_plans_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 1, 59, 7> ListPlanStatusesRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ListPlanStatusesRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ListPlanStatusesRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ListPlanStatusesRequest, _impl_.name_)}}, - // bool only_active_plans = 2 [json_name = "onlyActivePlans"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(ListPlanStatusesRequest, _impl_.only_active_plans_)}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(ListPlanStatusesRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 2, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(ListPlanStatusesRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // bool only_active_plans = 2 [json_name = "onlyActivePlans"]; - {PROTOBUF_FIELD_OFFSET(ListPlanStatusesRequest, _impl_.only_active_plans_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(ListPlanStatusesRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\56\4\0\0\0\0\0\0" - "viam.service.motion.v1.ListPlanStatusesRequest" - "name" - }}, -}; - -::uint8_t* ListPlanStatusesRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ListPlanStatusesRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.motion.v1.ListPlanStatusesRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.motion.v1.ListPlanStatusesRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.motion.v1.ListPlanStatusesRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // bool only_active_plans = 2 [json_name = "onlyActivePlans"]; if (this->_internal_only_active_plans() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 2, this->_internal_only_active_plans(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_only_active_plans(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.ListPlanStatusesRequest) return target; } -::size_t ListPlanStatusesRequest::ByteSizeLong() const { +size_t ListPlanStatusesRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.motion.v1.ListPlanStatusesRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } // bool only_active_plans = 2 [json_name = "onlyActivePlans"]; if (this->_internal_only_active_plans() != 0) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ListPlanStatusesRequest::_class_data_ = { - ListPlanStatusesRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListPlanStatusesRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ListPlanStatusesRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* ListPlanStatusesRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListPlanStatusesRequest::GetClassData() const { return &_class_data_; } + +void ListPlanStatusesRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ListPlanStatusesRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.ListPlanStatusesRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ListPlanStatusesRequest::MergeFrom(const ListPlanStatusesRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.ListPlanStatusesRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } if (from._internal_only_active_plans() != 0) { - _this->_internal_set_only_active_plans(from._internal_only_active_plans()); + _internal_set_only_active_plans(from._internal_only_active_plans()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ListPlanStatusesRequest::CopyFrom(const ListPlanStatusesRequest& from) { @@ -5075,189 +4762,186 @@ void ListPlanStatusesRequest::CopyFrom(const ListPlanStatusesRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ListPlanStatusesRequest::IsInitialized() const { +bool ListPlanStatusesRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* ListPlanStatusesRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ListPlanStatusesRequest::InternalSwap(ListPlanStatusesRequest* PROTOBUF_RESTRICT other) { +void ListPlanStatusesRequest::InternalSwap(ListPlanStatusesRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(ListPlanStatusesRequest, _impl_.only_active_plans_) - + sizeof(ListPlanStatusesRequest::_impl_.only_active_plans_) - - PROTOBUF_FIELD_OFFSET(ListPlanStatusesRequest, _impl_.extra_)>( - reinterpret_cast(&_impl_.extra_), - reinterpret_cast(&other->_impl_.extra_)); -} - -::google::protobuf::Metadata ListPlanStatusesRequest::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(ListPlanStatusesRequest, only_active_plans_) + + sizeof(ListPlanStatusesRequest::only_active_plans_) + - PROTOBUF_FIELD_OFFSET(ListPlanStatusesRequest, extra_)>( + reinterpret_cast(&extra_), + reinterpret_cast(&other->extra_)); +} + +::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[12]); } + // =================================================================== class ListPlanStatusesResponse::_Internal { public: }; -ListPlanStatusesResponse::ListPlanStatusesResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ListPlanStatusesResponse::ListPlanStatusesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + plan_statuses_with_ids_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.service.motion.v1.ListPlanStatusesResponse) } -inline PROTOBUF_NDEBUG_INLINE ListPlanStatusesResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : plan_statuses_with_ids_{visibility, arena, from.plan_statuses_with_ids_}, - _cached_size_{0} {} - -ListPlanStatusesResponse::ListPlanStatusesResponse( - ::google::protobuf::Arena* arena, - const ListPlanStatusesResponse& from) - : ::google::protobuf::Message(arena) { - ListPlanStatusesResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +ListPlanStatusesResponse::ListPlanStatusesResponse(const ListPlanStatusesResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + plan_statuses_with_ids_(from.plan_statuses_with_ids_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.service.motion.v1.ListPlanStatusesResponse) } -inline PROTOBUF_NDEBUG_INLINE ListPlanStatusesResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : plan_statuses_with_ids_{visibility, arena}, - _cached_size_{0} {} -inline void ListPlanStatusesResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void ListPlanStatusesResponse::SharedCtor() { } + ListPlanStatusesResponse::~ListPlanStatusesResponse() { // @@protoc_insertion_point(destructor:viam.service.motion.v1.ListPlanStatusesResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ListPlanStatusesResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void ListPlanStatusesResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void ListPlanStatusesResponse::Clear() { +void ListPlanStatusesResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.motion.v1.ListPlanStatusesResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.plan_statuses_with_ids_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ListPlanStatusesResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + plan_statuses_with_ids_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListPlanStatusesResponse::_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) { + // repeated .viam.service.motion.v1.PlanStatusWithID plan_statuses_with_ids = 1 [json_name = "planStatusesWithIds"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_plan_statuses_with_ids(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ListPlanStatusesResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ListPlanStatusesResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.service.motion.v1.PlanStatusWithID plan_statuses_with_ids = 1 [json_name = "planStatusesWithIds"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ListPlanStatusesResponse, _impl_.plan_statuses_with_ids_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.service.motion.v1.PlanStatusWithID plan_statuses_with_ids = 1 [json_name = "planStatusesWithIds"]; - {PROTOBUF_FIELD_OFFSET(ListPlanStatusesResponse, _impl_.plan_statuses_with_ids_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::service::motion::v1::PlanStatusWithID>()}, - }}, {{ - }}, -}; - -::uint8_t* ListPlanStatusesResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ListPlanStatusesResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.motion.v1.ListPlanStatusesResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .viam.service.motion.v1.PlanStatusWithID plan_statuses_with_ids = 1 [json_name = "planStatusesWithIds"]; for (unsigned i = 0, n = static_cast(this->_internal_plan_statuses_with_ids_size()); i < n; i++) { - const auto& repfield = this->_internal_plan_statuses_with_ids().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_plan_statuses_with_ids(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.ListPlanStatusesResponse) return target; } -::size_t ListPlanStatusesResponse::ByteSizeLong() const { +size_t ListPlanStatusesResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.motion.v1.ListPlanStatusesResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.service.motion.v1.PlanStatusWithID plan_statuses_with_ids = 1 [json_name = "planStatusesWithIds"]; total_size += 1UL * this->_internal_plan_statuses_with_ids_size(); - for (const auto& msg : this->_internal_plan_statuses_with_ids()) { + for (const auto& msg : this->plan_statuses_with_ids_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ListPlanStatusesResponse::_class_data_ = { - ListPlanStatusesResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListPlanStatusesResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ListPlanStatusesResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* ListPlanStatusesResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListPlanStatusesResponse::GetClassData() const { return &_class_data_; } + +void ListPlanStatusesResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ListPlanStatusesResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.ListPlanStatusesResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ListPlanStatusesResponse::MergeFrom(const ListPlanStatusesResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.ListPlanStatusesResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_plan_statuses_with_ids()->MergeFrom( - from._internal_plan_statuses_with_ids()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + plan_statuses_with_ids_.MergeFrom(from.plan_statuses_with_ids_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ListPlanStatusesResponse::CopyFrom(const ListPlanStatusesResponse& from) { @@ -5267,349 +4951,363 @@ void ListPlanStatusesResponse::CopyFrom(const ListPlanStatusesResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ListPlanStatusesResponse::IsInitialized() const { +bool ListPlanStatusesResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* ListPlanStatusesResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ListPlanStatusesResponse::InternalSwap(ListPlanStatusesResponse* PROTOBUF_RESTRICT other) { +void ListPlanStatusesResponse::InternalSwap(ListPlanStatusesResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.plan_statuses_with_ids_.InternalSwap(&other->_impl_.plan_statuses_with_ids_); + plan_statuses_with_ids_.InternalSwap(&other->plan_statuses_with_ids_); } -::google::protobuf::Metadata ListPlanStatusesResponse::GetMetadata() const { +::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[13]); } + // =================================================================== class GetPlanRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetPlanRequest, _impl_._has_bits_); + using HasBits = decltype(std::declval()._has_bits_); static const ::viam::common::v1::ResourceName& component_name(const GetPlanRequest* msg); - static void set_has_component_name(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } static void set_has_execution_id(HasBits* has_bits) { (*has_bits)[0] |= 1u; } - static const ::google::protobuf::Struct& extra(const GetPlanRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetPlanRequest* msg); }; -const ::viam::common::v1::ResourceName& GetPlanRequest::_Internal::component_name(const GetPlanRequest* msg) { - return *msg->_impl_.component_name_; +const ::viam::common::v1::ResourceName& +GetPlanRequest::_Internal::component_name(const GetPlanRequest* msg) { + return *msg->component_name_; } -const ::google::protobuf::Struct& GetPlanRequest::_Internal::extra(const GetPlanRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetPlanRequest::_Internal::extra(const GetPlanRequest* msg) { + return *msg->extra_; } void GetPlanRequest::clear_component_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.component_name_ != nullptr) _impl_.component_name_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && component_name_ != nullptr) { + delete component_name_; + } + component_name_ = nullptr; } void GetPlanRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000004u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -GetPlanRequest::GetPlanRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetPlanRequest::GetPlanRequest(::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.GetPlanRequest) } -inline PROTOBUF_NDEBUG_INLINE GetPlanRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_), - execution_id_(arena, from.execution_id_) {} - -GetPlanRequest::GetPlanRequest( - ::google::protobuf::Arena* arena, - const GetPlanRequest& from) - : ::google::protobuf::Message(arena) { - GetPlanRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.component_name_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::viam::common::v1::ResourceName>(arena, *from._impl_.component_name_) - : nullptr; - _impl_.extra_ = (cached_has_bits & 0x00000004u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - _impl_.last_plan_only_ = from._impl_.last_plan_only_; - +GetPlanRequest::GetPlanRequest(const GetPlanRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_) { + _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()); + } + execution_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + execution_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (from._internal_has_execution_id()) { + execution_id_.Set(from._internal_execution_id(), + GetArenaForAllocation()); + } + if (from._internal_has_component_name()) { + component_name_ = new ::viam::common::v1::ResourceName(*from.component_name_); + } else { + component_name_ = nullptr; + } + if (from._internal_has_extra()) { + extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.extra_); + } else { + extra_ = nullptr; + } + last_plan_only_ = from.last_plan_only_; // @@protoc_insertion_point(copy_constructor:viam.service.motion.v1.GetPlanRequest) } -inline PROTOBUF_NDEBUG_INLINE GetPlanRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena), - execution_id_(arena) {} - -inline void GetPlanRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, component_name_), - 0, - offsetof(Impl_, last_plan_only_) - - offsetof(Impl_, component_name_) + - sizeof(Impl_::last_plan_only_)); + +inline void GetPlanRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +execution_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + execution_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&component_name_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&last_plan_only_) - + reinterpret_cast(&component_name_)) + sizeof(last_plan_only_)); } + GetPlanRequest::~GetPlanRequest() { // @@protoc_insertion_point(destructor:viam.service.motion.v1.GetPlanRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetPlanRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.execution_id_.Destroy(); - delete _impl_.component_name_; - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + execution_id_.Destroy(); + if (this != internal_default_instance()) delete component_name_; + if (this != internal_default_instance()) delete extra_; +} + +void GetPlanRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetPlanRequest::Clear() { +void GetPlanRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.motion.v1.GetPlanRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - _impl_.execution_id_.ClearNonDefaultToEmpty(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.component_name_ != nullptr); - _impl_.component_name_->Clear(); - } - if (cached_has_bits & 0x00000004u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); + name_.ClearToEmpty(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + execution_id_.ClearNonDefaultToEmpty(); + } + if (GetArenaForAllocation() == nullptr && component_name_ != nullptr) { + delete component_name_; + } + component_name_ = nullptr; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + last_plan_only_ = false; + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPlanRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + 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.service.motion.v1.GetPlanRequest.name")); + } else + goto handle_unusual; + continue; + // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_component_name(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool last_plan_only = 3 [json_name = "lastPlanOnly"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + last_plan_only_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional string execution_id = 4 [json_name = "executionId"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_execution_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.motion.v1.GetPlanRequest.execution_id")); + } 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; } - } - _impl_.last_plan_only_ = false; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetPlanRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 5, 2, 62, 7> GetPlanRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetPlanRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 5, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetPlanRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // optional string execution_id = 4 [json_name = "executionId"]; - {::_pbi::TcParser::FastUS1, - {34, 0, 0, PROTOBUF_FIELD_OFFSET(GetPlanRequest, _impl_.execution_id_)}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetPlanRequest, _impl_.name_)}}, - // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; - {::_pbi::TcParser::FastMtS1, - {18, 1, 0, PROTOBUF_FIELD_OFFSET(GetPlanRequest, _impl_.component_name_)}}, - // bool last_plan_only = 3 [json_name = "lastPlanOnly"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(GetPlanRequest, _impl_.last_plan_only_)}}, - }}, {{ - 99, 0, 1, - 65534, 4, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(GetPlanRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; - {PROTOBUF_FIELD_OFFSET(GetPlanRequest, _impl_.component_name_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // bool last_plan_only = 3 [json_name = "lastPlanOnly"]; - {PROTOBUF_FIELD_OFFSET(GetPlanRequest, _impl_.last_plan_only_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // optional string execution_id = 4 [json_name = "executionId"]; - {PROTOBUF_FIELD_OFFSET(GetPlanRequest, _impl_.execution_id_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(GetPlanRequest, _impl_.extra_), _Internal::kHasBitsOffset + 2, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::common::v1::ResourceName>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\45\4\0\0\14\0\0\0" - "viam.service.motion.v1.GetPlanRequest" - "name" - "execution_id" - }}, -}; - -::uint8_t* GetPlanRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetPlanRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.motion.v1.GetPlanRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.motion.v1.GetPlanRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.motion.v1.GetPlanRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::component_name(this), + if (this->_internal_has_component_name()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::component_name(this), _Internal::component_name(this).GetCachedSize(), target, stream); } // bool last_plan_only = 3 [json_name = "lastPlanOnly"]; if (this->_internal_last_plan_only() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 3, this->_internal_last_plan_only(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_last_plan_only(), target); } // optional string execution_id = 4 [json_name = "executionId"]; - if (cached_has_bits & 0x00000001u) { - const std::string& _s = this->_internal_execution_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.motion.v1.GetPlanRequest.execution_id"); - target = stream->WriteStringMaybeAliased(4, _s, target); + if (_internal_has_execution_id()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_execution_id().data(), static_cast(this->_internal_execution_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.motion.v1.GetPlanRequest.execution_id"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_execution_id(), target); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000004u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.GetPlanRequest) return target; } -::size_t GetPlanRequest::ByteSizeLong() const { +size_t GetPlanRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.motion.v1.GetPlanRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - // optional string execution_id = 4 [json_name = "executionId"]; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_execution_id()); - } - - // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.component_name_); - } + // optional string execution_id = 4 [json_name = "executionId"]; + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_execution_id()); + } - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000004u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); - } + // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; + if (this->_internal_has_component_name()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *component_name_); + } + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } + // bool last_plan_only = 3 [json_name = "lastPlanOnly"]; if (this->_internal_last_plan_only() != 0) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetPlanRequest::_class_data_ = { - GetPlanRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPlanRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetPlanRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetPlanRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPlanRequest::GetClassData() const { return &_class_data_; } + +void GetPlanRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetPlanRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.GetPlanRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetPlanRequest::MergeFrom(const GetPlanRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.GetPlanRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_set_execution_id(from._internal_execution_id()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_component_name()->::viam::common::v1::ResourceName::MergeFrom( - from._internal_component_name()); - } - if (cached_has_bits & 0x00000004u) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); - } + if (from._internal_has_execution_id()) { + _internal_set_execution_id(from._internal_execution_id()); + } + if (from._internal_has_component_name()) { + _internal_mutable_component_name()->::viam::common::v1::ResourceName::MergeFrom(from._internal_component_name()); + } + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } if (from._internal_last_plan_only() != 0) { - _this->_internal_set_last_plan_only(from._internal_last_plan_only()); + _internal_set_last_plan_only(from._internal_last_plan_only()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetPlanRequest::CopyFrom(const GetPlanRequest& from) { @@ -5619,239 +5317,232 @@ void GetPlanRequest::CopyFrom(const GetPlanRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetPlanRequest::IsInitialized() const { +bool GetPlanRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetPlanRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetPlanRequest::InternalSwap(GetPlanRequest* PROTOBUF_RESTRICT other) { +void GetPlanRequest::InternalSwap(GetPlanRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.execution_id_, &other->_impl_.execution_id_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(GetPlanRequest, _impl_.last_plan_only_) - + sizeof(GetPlanRequest::_impl_.last_plan_only_) - - PROTOBUF_FIELD_OFFSET(GetPlanRequest, _impl_.component_name_)>( - reinterpret_cast(&_impl_.component_name_), - reinterpret_cast(&other->_impl_.component_name_)); -} - -::google::protobuf::Metadata GetPlanRequest::GetMetadata() const { + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &execution_id_, lhs_arena, + &other->execution_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GetPlanRequest, last_plan_only_) + + sizeof(GetPlanRequest::last_plan_only_) + - PROTOBUF_FIELD_OFFSET(GetPlanRequest, component_name_)>( + reinterpret_cast(&component_name_), + reinterpret_cast(&other->component_name_)); +} + +::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[14]); } + // =================================================================== class GetPlanResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetPlanResponse, _impl_._has_bits_); static const ::viam::service::motion::v1::PlanWithStatus& current_plan_with_status(const GetPlanResponse* msg); - static void set_has_current_plan_with_status(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::service::motion::v1::PlanWithStatus& GetPlanResponse::_Internal::current_plan_with_status(const GetPlanResponse* msg) { - return *msg->_impl_.current_plan_with_status_; +const ::viam::service::motion::v1::PlanWithStatus& +GetPlanResponse::_Internal::current_plan_with_status(const GetPlanResponse* msg) { + return *msg->current_plan_with_status_; } -GetPlanResponse::GetPlanResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetPlanResponse::GetPlanResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + replan_history_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.service.motion.v1.GetPlanResponse) } -inline PROTOBUF_NDEBUG_INLINE GetPlanResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - replan_history_{visibility, arena, from.replan_history_} {} - -GetPlanResponse::GetPlanResponse( - ::google::protobuf::Arena* arena, - const GetPlanResponse& from) - : ::google::protobuf::Message(arena) { - GetPlanResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.current_plan_with_status_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::service::motion::v1::PlanWithStatus>(arena, *from._impl_.current_plan_with_status_) - : nullptr; - +GetPlanResponse::GetPlanResponse(const GetPlanResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + replan_history_(from.replan_history_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_current_plan_with_status()) { + current_plan_with_status_ = new ::viam::service::motion::v1::PlanWithStatus(*from.current_plan_with_status_); + } else { + current_plan_with_status_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.service.motion.v1.GetPlanResponse) } -inline PROTOBUF_NDEBUG_INLINE GetPlanResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - replan_history_{visibility, arena} {} -inline void GetPlanResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.current_plan_with_status_ = {}; +inline void GetPlanResponse::SharedCtor() { +current_plan_with_status_ = nullptr; } + GetPlanResponse::~GetPlanResponse() { // @@protoc_insertion_point(destructor:viam.service.motion.v1.GetPlanResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetPlanResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.current_plan_with_status_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete current_plan_with_status_; } -PROTOBUF_NOINLINE void GetPlanResponse::Clear() { +void GetPlanResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetPlanResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.motion.v1.GetPlanResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.replan_history_.Clear(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.current_plan_with_status_ != nullptr); - _impl_.current_plan_with_status_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetPlanResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + replan_history_.Clear(); + if (GetArenaForAllocation() == nullptr && current_plan_with_status_ != nullptr) { + delete current_plan_with_status_; + } + current_plan_with_status_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPlanResponse::_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.service.motion.v1.PlanWithStatus current_plan_with_status = 1 [json_name = "currentPlanWithStatus"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_current_plan_with_status(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // repeated .viam.service.motion.v1.PlanWithStatus replan_history = 2 [json_name = "replanHistory"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_replan_history(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 2, 0, 2> GetPlanResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetPlanResponse, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetPlanResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.service.motion.v1.PlanWithStatus replan_history = 2 [json_name = "replanHistory"]; - {::_pbi::TcParser::FastMtR1, - {18, 63, 1, PROTOBUF_FIELD_OFFSET(GetPlanResponse, _impl_.replan_history_)}}, - // .viam.service.motion.v1.PlanWithStatus current_plan_with_status = 1 [json_name = "currentPlanWithStatus"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetPlanResponse, _impl_.current_plan_with_status_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.service.motion.v1.PlanWithStatus current_plan_with_status = 1 [json_name = "currentPlanWithStatus"]; - {PROTOBUF_FIELD_OFFSET(GetPlanResponse, _impl_.current_plan_with_status_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated .viam.service.motion.v1.PlanWithStatus replan_history = 2 [json_name = "replanHistory"]; - {PROTOBUF_FIELD_OFFSET(GetPlanResponse, _impl_.replan_history_), -1, 1, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::service::motion::v1::PlanWithStatus>()}, - {::_pbi::TcParser::GetTable<::viam::service::motion::v1::PlanWithStatus>()}, - }}, {{ - }}, -}; - -::uint8_t* GetPlanResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetPlanResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.motion.v1.GetPlanResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.service.motion.v1.PlanWithStatus current_plan_with_status = 1 [json_name = "currentPlanWithStatus"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::current_plan_with_status(this), + if (this->_internal_has_current_plan_with_status()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::current_plan_with_status(this), _Internal::current_plan_with_status(this).GetCachedSize(), target, stream); } // repeated .viam.service.motion.v1.PlanWithStatus replan_history = 2 [json_name = "replanHistory"]; for (unsigned i = 0, n = static_cast(this->_internal_replan_history_size()); i < n; i++) { - const auto& repfield = this->_internal_replan_history().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_replan_history(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.GetPlanResponse) return target; } -::size_t GetPlanResponse::ByteSizeLong() const { +size_t GetPlanResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.motion.v1.GetPlanResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.service.motion.v1.PlanWithStatus replan_history = 2 [json_name = "replanHistory"]; total_size += 1UL * this->_internal_replan_history_size(); - for (const auto& msg : this->_internal_replan_history()) { + for (const auto& msg : this->replan_history_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // .viam.service.motion.v1.PlanWithStatus current_plan_with_status = 1 [json_name = "currentPlanWithStatus"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.current_plan_with_status_); + if (this->_internal_has_current_plan_with_status()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *current_plan_with_status_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetPlanResponse::_class_data_ = { - GetPlanResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPlanResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetPlanResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetPlanResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPlanResponse::GetClassData() const { return &_class_data_; } + +void GetPlanResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetPlanResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.GetPlanResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetPlanResponse::MergeFrom(const GetPlanResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.GetPlanResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_replan_history()->MergeFrom( - from._internal_replan_history()); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_current_plan_with_status()->::viam::service::motion::v1::PlanWithStatus::MergeFrom( - from._internal_current_plan_with_status()); + replan_history_.MergeFrom(from.replan_history_); + if (from._internal_has_current_plan_with_status()) { + _internal_mutable_current_plan_with_status()->::viam::service::motion::v1::PlanWithStatus::MergeFrom(from._internal_current_plan_with_status()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetPlanResponse::CopyFrom(const GetPlanResponse& from) { @@ -5861,235 +5552,240 @@ void GetPlanResponse::CopyFrom(const GetPlanResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetPlanResponse::IsInitialized() const { +bool GetPlanResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetPlanResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetPlanResponse::InternalSwap(GetPlanResponse* PROTOBUF_RESTRICT other) { +void GetPlanResponse::InternalSwap(GetPlanResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.replan_history_.InternalSwap(&other->_impl_.replan_history_); - swap(_impl_.current_plan_with_status_, other->_impl_.current_plan_with_status_); + replan_history_.InternalSwap(&other->replan_history_); + swap(current_plan_with_status_, other->current_plan_with_status_); } -::google::protobuf::Metadata GetPlanResponse::GetMetadata() const { +::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[15]); } + // =================================================================== class Constraints::_Internal { public: }; -Constraints::Constraints(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Constraints::Constraints(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + linear_constraint_(arena), + orientation_constraint_(arena), + collision_specification_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.service.motion.v1.Constraints) } -inline PROTOBUF_NDEBUG_INLINE Constraints::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : linear_constraint_{visibility, arena, from.linear_constraint_}, - orientation_constraint_{visibility, arena, from.orientation_constraint_}, - collision_specification_{visibility, arena, from.collision_specification_}, - _cached_size_{0} {} - -Constraints::Constraints( - ::google::protobuf::Arena* arena, - const Constraints& from) - : ::google::protobuf::Message(arena) { - Constraints* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +Constraints::Constraints(const Constraints& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + linear_constraint_(from.linear_constraint_), + orientation_constraint_(from.orientation_constraint_), + collision_specification_(from.collision_specification_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.service.motion.v1.Constraints) } -inline PROTOBUF_NDEBUG_INLINE Constraints::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : linear_constraint_{visibility, arena}, - orientation_constraint_{visibility, arena}, - collision_specification_{visibility, arena}, - _cached_size_{0} {} -inline void Constraints::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void Constraints::SharedCtor() { } + Constraints::~Constraints() { // @@protoc_insertion_point(destructor:viam.service.motion.v1.Constraints) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Constraints::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void Constraints::Clear() { +void Constraints::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void Constraints::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.motion.v1.Constraints) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.linear_constraint_.Clear(); - _impl_.orientation_constraint_.Clear(); - _impl_.collision_specification_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Constraints::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + linear_constraint_.Clear(); + orientation_constraint_.Clear(); + collision_specification_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Constraints::_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) { + // repeated .viam.service.motion.v1.LinearConstraint linear_constraint = 1 [json_name = "linearConstraint"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_linear_constraint(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + // repeated .viam.service.motion.v1.OrientationConstraint orientation_constraint = 2 [json_name = "orientationConstraint"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_orientation_constraint(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } else + goto handle_unusual; + continue; + // repeated .viam.service.motion.v1.CollisionSpecification collision_specification = 3 [json_name = "collisionSpecification"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_collision_specification(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 3, 0, 2> Constraints::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 3, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Constraints_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // repeated .viam.service.motion.v1.LinearConstraint linear_constraint = 1 [json_name = "linearConstraint"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Constraints, _impl_.linear_constraint_)}}, - // repeated .viam.service.motion.v1.OrientationConstraint orientation_constraint = 2 [json_name = "orientationConstraint"]; - {::_pbi::TcParser::FastMtR1, - {18, 63, 1, PROTOBUF_FIELD_OFFSET(Constraints, _impl_.orientation_constraint_)}}, - // repeated .viam.service.motion.v1.CollisionSpecification collision_specification = 3 [json_name = "collisionSpecification"]; - {::_pbi::TcParser::FastMtR1, - {26, 63, 2, PROTOBUF_FIELD_OFFSET(Constraints, _impl_.collision_specification_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.service.motion.v1.LinearConstraint linear_constraint = 1 [json_name = "linearConstraint"]; - {PROTOBUF_FIELD_OFFSET(Constraints, _impl_.linear_constraint_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated .viam.service.motion.v1.OrientationConstraint orientation_constraint = 2 [json_name = "orientationConstraint"]; - {PROTOBUF_FIELD_OFFSET(Constraints, _impl_.orientation_constraint_), 0, 1, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated .viam.service.motion.v1.CollisionSpecification collision_specification = 3 [json_name = "collisionSpecification"]; - {PROTOBUF_FIELD_OFFSET(Constraints, _impl_.collision_specification_), 0, 2, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::service::motion::v1::LinearConstraint>()}, - {::_pbi::TcParser::GetTable<::viam::service::motion::v1::OrientationConstraint>()}, - {::_pbi::TcParser::GetTable<::viam::service::motion::v1::CollisionSpecification>()}, - }}, {{ - }}, -}; - -::uint8_t* Constraints::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Constraints::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.motion.v1.Constraints) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .viam.service.motion.v1.LinearConstraint linear_constraint = 1 [json_name = "linearConstraint"]; for (unsigned i = 0, n = static_cast(this->_internal_linear_constraint_size()); i < n; i++) { - const auto& repfield = this->_internal_linear_constraint().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_linear_constraint(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } // repeated .viam.service.motion.v1.OrientationConstraint orientation_constraint = 2 [json_name = "orientationConstraint"]; for (unsigned i = 0, n = static_cast(this->_internal_orientation_constraint_size()); i < n; i++) { - const auto& repfield = this->_internal_orientation_constraint().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_orientation_constraint(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); } // repeated .viam.service.motion.v1.CollisionSpecification collision_specification = 3 [json_name = "collisionSpecification"]; for (unsigned i = 0, n = static_cast(this->_internal_collision_specification_size()); i < n; i++) { - const auto& repfield = this->_internal_collision_specification().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_collision_specification(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.Constraints) return target; } -::size_t Constraints::ByteSizeLong() const { +size_t Constraints::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.motion.v1.Constraints) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.service.motion.v1.LinearConstraint linear_constraint = 1 [json_name = "linearConstraint"]; total_size += 1UL * this->_internal_linear_constraint_size(); - for (const auto& msg : this->_internal_linear_constraint()) { + for (const auto& msg : this->linear_constraint_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // repeated .viam.service.motion.v1.OrientationConstraint orientation_constraint = 2 [json_name = "orientationConstraint"]; total_size += 1UL * this->_internal_orientation_constraint_size(); - for (const auto& msg : this->_internal_orientation_constraint()) { + for (const auto& msg : this->orientation_constraint_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // repeated .viam.service.motion.v1.CollisionSpecification collision_specification = 3 [json_name = "collisionSpecification"]; total_size += 1UL * this->_internal_collision_specification_size(); - for (const auto& msg : this->_internal_collision_specification()) { + for (const auto& msg : this->collision_specification_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Constraints::_class_data_ = { - Constraints::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Constraints::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Constraints::MergeImpl }; -const ::google::protobuf::Message::ClassData* Constraints::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Constraints::GetClassData() const { return &_class_data_; } + +void Constraints::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Constraints::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.Constraints) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Constraints::MergeFrom(const Constraints& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.Constraints) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_linear_constraint()->MergeFrom( - from._internal_linear_constraint()); - _this->_internal_mutable_orientation_constraint()->MergeFrom( - from._internal_orientation_constraint()); - _this->_internal_mutable_collision_specification()->MergeFrom( - from._internal_collision_specification()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + linear_constraint_.MergeFrom(from.linear_constraint_); + orientation_constraint_.MergeFrom(from.orientation_constraint_); + collision_specification_.MergeFrom(from.collision_specification_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Constraints::CopyFrom(const Constraints& from) { @@ -6099,33 +5795,29 @@ void Constraints::CopyFrom(const Constraints& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Constraints::IsInitialized() const { +bool Constraints::IsInitialized() const { return true; } -::_pbi::CachedSize* Constraints::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Constraints::InternalSwap(Constraints* PROTOBUF_RESTRICT other) { +void Constraints::InternalSwap(Constraints* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.linear_constraint_.InternalSwap(&other->_impl_.linear_constraint_); - _impl_.orientation_constraint_.InternalSwap(&other->_impl_.orientation_constraint_); - _impl_.collision_specification_.InternalSwap(&other->_impl_.collision_specification_); + linear_constraint_.InternalSwap(&other->linear_constraint_); + orientation_constraint_.InternalSwap(&other->orientation_constraint_); + collision_specification_.InternalSwap(&other->collision_specification_); } -::google::protobuf::Metadata Constraints::GetMetadata() const { +::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[16]); } + // =================================================================== class LinearConstraint::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(LinearConstraint, _impl_._has_bits_); + using HasBits = decltype(std::declval()._has_bits_); static void set_has_line_tolerance_mm(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -6134,182 +5826,191 @@ class LinearConstraint::_Internal { } }; -LinearConstraint::LinearConstraint(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +LinearConstraint::LinearConstraint(::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.LinearConstraint) } -LinearConstraint::LinearConstraint( - ::google::protobuf::Arena* arena, const LinearConstraint& from) - : LinearConstraint(arena) { - MergeFrom(from); +LinearConstraint::LinearConstraint(const LinearConstraint& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&line_tolerance_mm_, &from.line_tolerance_mm_, + static_cast(reinterpret_cast(&orientation_tolerance_degs_) - + reinterpret_cast(&line_tolerance_mm_)) + sizeof(orientation_tolerance_degs_)); + // @@protoc_insertion_point(copy_constructor:viam.service.motion.v1.LinearConstraint) } -inline PROTOBUF_NDEBUG_INLINE LinearConstraint::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void LinearConstraint::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, line_tolerance_mm_), - 0, - offsetof(Impl_, orientation_tolerance_degs_) - - offsetof(Impl_, line_tolerance_mm_) + - sizeof(Impl_::orientation_tolerance_degs_)); +inline void LinearConstraint::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&line_tolerance_mm_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&orientation_tolerance_degs_) - + reinterpret_cast(&line_tolerance_mm_)) + sizeof(orientation_tolerance_degs_)); } + LinearConstraint::~LinearConstraint() { // @@protoc_insertion_point(destructor:viam.service.motion.v1.LinearConstraint) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void LinearConstraint::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void LinearConstraint::Clear() { +void LinearConstraint::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void LinearConstraint::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.motion.v1.LinearConstraint) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000003u) { - ::memset(&_impl_.line_tolerance_mm_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.orientation_tolerance_degs_) - - reinterpret_cast(&_impl_.line_tolerance_mm_)) + sizeof(_impl_.orientation_tolerance_degs_)); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* LinearConstraint::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + ::memset(&line_tolerance_mm_, 0, static_cast( + reinterpret_cast(&orientation_tolerance_degs_) - + reinterpret_cast(&line_tolerance_mm_)) + sizeof(orientation_tolerance_degs_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* LinearConstraint::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // optional float line_tolerance_mm = 1 [json_name = "lineToleranceMm"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 13)) { + _Internal::set_has_line_tolerance_mm(&has_bits); + line_tolerance_mm_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(float); + } else + goto handle_unusual; + continue; + // optional float orientation_tolerance_degs = 2 [json_name = "orientationToleranceDegs"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 21)) { + _Internal::set_has_orientation_tolerance_degs(&has_bits); + orientation_tolerance_degs_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(float); + } 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: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> LinearConstraint::_table_ = { - { - PROTOBUF_FIELD_OFFSET(LinearConstraint, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_LinearConstraint_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // optional float orientation_tolerance_degs = 2 [json_name = "orientationToleranceDegs"]; - {::_pbi::TcParser::FastF32S1, - {21, 1, 0, PROTOBUF_FIELD_OFFSET(LinearConstraint, _impl_.orientation_tolerance_degs_)}}, - // optional float line_tolerance_mm = 1 [json_name = "lineToleranceMm"]; - {::_pbi::TcParser::FastF32S1, - {13, 0, 0, PROTOBUF_FIELD_OFFSET(LinearConstraint, _impl_.line_tolerance_mm_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // optional float line_tolerance_mm = 1 [json_name = "lineToleranceMm"]; - {PROTOBUF_FIELD_OFFSET(LinearConstraint, _impl_.line_tolerance_mm_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, - // optional float orientation_tolerance_degs = 2 [json_name = "orientationToleranceDegs"]; - {PROTOBUF_FIELD_OFFSET(LinearConstraint, _impl_.orientation_tolerance_degs_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* LinearConstraint::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* LinearConstraint::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.motion.v1.LinearConstraint) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // optional float line_tolerance_mm = 1 [json_name = "lineToleranceMm"]; - if (cached_has_bits & 0x00000001u) { + if (_internal_has_line_tolerance_mm()) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 1, this->_internal_line_tolerance_mm(), target); + target = ::_pbi::WireFormatLite::WriteFloatToArray(1, this->_internal_line_tolerance_mm(), target); } // optional float orientation_tolerance_degs = 2 [json_name = "orientationToleranceDegs"]; - if (cached_has_bits & 0x00000002u) { + if (_internal_has_orientation_tolerance_degs()) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 2, this->_internal_orientation_tolerance_degs(), target); + target = ::_pbi::WireFormatLite::WriteFloatToArray(2, this->_internal_orientation_tolerance_degs(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.LinearConstraint) return target; } -::size_t LinearConstraint::ByteSizeLong() const { +size_t LinearConstraint::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.motion.v1.LinearConstraint) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000003u) { // optional float line_tolerance_mm = 1 [json_name = "lineToleranceMm"]; if (cached_has_bits & 0x00000001u) { - total_size += 5; + total_size += 1 + 4; } // optional float orientation_tolerance_degs = 2 [json_name = "orientationToleranceDegs"]; if (cached_has_bits & 0x00000002u) { - total_size += 5; + total_size += 1 + 4; } } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData LinearConstraint::_class_data_ = { - LinearConstraint::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LinearConstraint::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + LinearConstraint::MergeImpl }; -const ::google::protobuf::Message::ClassData* LinearConstraint::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LinearConstraint::GetClassData() const { return &_class_data_; } + +void LinearConstraint::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void LinearConstraint::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.LinearConstraint) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void LinearConstraint::MergeFrom(const LinearConstraint& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.LinearConstraint) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._impl_._has_bits_[0]; + cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - _this->_impl_.line_tolerance_mm_ = from._impl_.line_tolerance_mm_; + line_tolerance_mm_ = from.line_tolerance_mm_; } if (cached_has_bits & 0x00000002u) { - _this->_impl_.orientation_tolerance_degs_ = from._impl_.orientation_tolerance_degs_; + orientation_tolerance_degs_ = from.orientation_tolerance_degs_; } - _this->_impl_._has_bits_[0] |= cached_has_bits; + _has_bits_[0] |= cached_has_bits; } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void LinearConstraint::CopyFrom(const LinearConstraint& from) { @@ -6319,181 +6020,184 @@ void LinearConstraint::CopyFrom(const LinearConstraint& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool LinearConstraint::IsInitialized() const { +bool LinearConstraint::IsInitialized() const { return true; } -::_pbi::CachedSize* LinearConstraint::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void LinearConstraint::InternalSwap(LinearConstraint* PROTOBUF_RESTRICT other) { +void LinearConstraint::InternalSwap(LinearConstraint* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(LinearConstraint, _impl_.orientation_tolerance_degs_) - + sizeof(LinearConstraint::_impl_.orientation_tolerance_degs_) - - PROTOBUF_FIELD_OFFSET(LinearConstraint, _impl_.line_tolerance_mm_)>( - reinterpret_cast(&_impl_.line_tolerance_mm_), - reinterpret_cast(&other->_impl_.line_tolerance_mm_)); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(LinearConstraint, orientation_tolerance_degs_) + + sizeof(LinearConstraint::orientation_tolerance_degs_) + - PROTOBUF_FIELD_OFFSET(LinearConstraint, line_tolerance_mm_)>( + reinterpret_cast(&line_tolerance_mm_), + reinterpret_cast(&other->line_tolerance_mm_)); } -::google::protobuf::Metadata LinearConstraint::GetMetadata() const { +::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[17]); } + // =================================================================== class OrientationConstraint::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(OrientationConstraint, _impl_._has_bits_); + using HasBits = decltype(std::declval()._has_bits_); static void set_has_orientation_tolerance_degs(HasBits* has_bits) { (*has_bits)[0] |= 1u; } }; -OrientationConstraint::OrientationConstraint(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +OrientationConstraint::OrientationConstraint(::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.OrientationConstraint) } -OrientationConstraint::OrientationConstraint( - ::google::protobuf::Arena* arena, const OrientationConstraint& from) - : OrientationConstraint(arena) { - MergeFrom(from); +OrientationConstraint::OrientationConstraint(const OrientationConstraint& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + orientation_tolerance_degs_ = from.orientation_tolerance_degs_; + // @@protoc_insertion_point(copy_constructor:viam.service.motion.v1.OrientationConstraint) } -inline PROTOBUF_NDEBUG_INLINE OrientationConstraint::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void OrientationConstraint::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.orientation_tolerance_degs_ = {}; +inline void OrientationConstraint::SharedCtor() { +orientation_tolerance_degs_ = 0; } + OrientationConstraint::~OrientationConstraint() { // @@protoc_insertion_point(destructor:viam.service.motion.v1.OrientationConstraint) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void OrientationConstraint::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void OrientationConstraint::Clear() { +void OrientationConstraint::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void OrientationConstraint::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.motion.v1.OrientationConstraint) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.orientation_tolerance_degs_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* OrientationConstraint::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + orientation_tolerance_degs_ = 0; + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* OrientationConstraint::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // optional float orientation_tolerance_degs = 1 [json_name = "orientationToleranceDegs"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 13)) { + _Internal::set_has_orientation_tolerance_degs(&has_bits); + orientation_tolerance_degs_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(float); + } 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: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> OrientationConstraint::_table_ = { - { - PROTOBUF_FIELD_OFFSET(OrientationConstraint, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_OrientationConstraint_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // optional float orientation_tolerance_degs = 1 [json_name = "orientationToleranceDegs"]; - {::_pbi::TcParser::FastF32S1, - {13, 0, 0, PROTOBUF_FIELD_OFFSET(OrientationConstraint, _impl_.orientation_tolerance_degs_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // optional float orientation_tolerance_degs = 1 [json_name = "orientationToleranceDegs"]; - {PROTOBUF_FIELD_OFFSET(OrientationConstraint, _impl_.orientation_tolerance_degs_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* OrientationConstraint::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* OrientationConstraint::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.motion.v1.OrientationConstraint) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // optional float orientation_tolerance_degs = 1 [json_name = "orientationToleranceDegs"]; - if (cached_has_bits & 0x00000001u) { + if (_internal_has_orientation_tolerance_degs()) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 1, this->_internal_orientation_tolerance_degs(), target); + target = ::_pbi::WireFormatLite::WriteFloatToArray(1, this->_internal_orientation_tolerance_degs(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.OrientationConstraint) return target; } -::size_t OrientationConstraint::ByteSizeLong() const { +size_t OrientationConstraint::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.motion.v1.OrientationConstraint) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // optional float orientation_tolerance_degs = 1 [json_name = "orientationToleranceDegs"]; - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 5; + total_size += 1 + 4; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData OrientationConstraint::_class_data_ = { - OrientationConstraint::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData OrientationConstraint::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + OrientationConstraint::MergeImpl }; -const ::google::protobuf::Message::ClassData* OrientationConstraint::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*OrientationConstraint::GetClassData() const { return &_class_data_; } + +void OrientationConstraint::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void OrientationConstraint::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.OrientationConstraint) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void OrientationConstraint::MergeFrom(const OrientationConstraint& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.OrientationConstraint) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_set_orientation_tolerance_degs(from._internal_orientation_tolerance_degs()); + if (from._internal_has_orientation_tolerance_degs()) { + _internal_set_orientation_tolerance_degs(from._internal_orientation_tolerance_degs()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void OrientationConstraint::CopyFrom(const OrientationConstraint& from) { @@ -6503,214 +6207,232 @@ void OrientationConstraint::CopyFrom(const OrientationConstraint& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool OrientationConstraint::IsInitialized() const { +bool OrientationConstraint::IsInitialized() const { return true; } -::_pbi::CachedSize* OrientationConstraint::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void OrientationConstraint::InternalSwap(OrientationConstraint* PROTOBUF_RESTRICT other) { +void OrientationConstraint::InternalSwap(OrientationConstraint* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.orientation_tolerance_degs_, other->_impl_.orientation_tolerance_degs_); + swap(_has_bits_[0], other->_has_bits_[0]); + swap(orientation_tolerance_degs_, other->orientation_tolerance_degs_); } -::google::protobuf::Metadata OrientationConstraint::GetMetadata() const { +::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[18]); } + // =================================================================== class CollisionSpecification_AllowedFrameCollisions::_Internal { public: }; -CollisionSpecification_AllowedFrameCollisions::CollisionSpecification_AllowedFrameCollisions(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +CollisionSpecification_AllowedFrameCollisions::CollisionSpecification_AllowedFrameCollisions(::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.CollisionSpecification.AllowedFrameCollisions) } -inline PROTOBUF_NDEBUG_INLINE CollisionSpecification_AllowedFrameCollisions::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : frame1_(arena, from.frame1_), - frame2_(arena, from.frame2_), - _cached_size_{0} {} - -CollisionSpecification_AllowedFrameCollisions::CollisionSpecification_AllowedFrameCollisions( - ::google::protobuf::Arena* arena, - const CollisionSpecification_AllowedFrameCollisions& from) - : ::google::protobuf::Message(arena) { - CollisionSpecification_AllowedFrameCollisions* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +CollisionSpecification_AllowedFrameCollisions::CollisionSpecification_AllowedFrameCollisions(const CollisionSpecification_AllowedFrameCollisions& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + frame1_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + frame1_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_frame1().empty()) { + frame1_.Set(from._internal_frame1(), + GetArenaForAllocation()); + } + frame2_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + frame2_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_frame2().empty()) { + frame2_.Set(from._internal_frame2(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.service.motion.v1.CollisionSpecification.AllowedFrameCollisions) } -inline PROTOBUF_NDEBUG_INLINE CollisionSpecification_AllowedFrameCollisions::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : frame1_(arena), - frame2_(arena), - _cached_size_{0} {} -inline void CollisionSpecification_AllowedFrameCollisions::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void CollisionSpecification_AllowedFrameCollisions::SharedCtor() { +frame1_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + frame1_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +frame2_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + frame2_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + CollisionSpecification_AllowedFrameCollisions::~CollisionSpecification_AllowedFrameCollisions() { // @@protoc_insertion_point(destructor:viam.service.motion.v1.CollisionSpecification.AllowedFrameCollisions) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void CollisionSpecification_AllowedFrameCollisions::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.frame1_.Destroy(); - _impl_.frame2_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + frame1_.Destroy(); + frame2_.Destroy(); +} + +void CollisionSpecification_AllowedFrameCollisions::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void CollisionSpecification_AllowedFrameCollisions::Clear() { +void CollisionSpecification_AllowedFrameCollisions::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.motion.v1.CollisionSpecification.AllowedFrameCollisions) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.frame1_.ClearToEmpty(); - _impl_.frame2_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* CollisionSpecification_AllowedFrameCollisions::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + frame1_.ClearToEmpty(); + frame2_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CollisionSpecification_AllowedFrameCollisions::_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 frame1 = 1 [json_name = "frame1"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_frame1(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.motion.v1.CollisionSpecification.AllowedFrameCollisions.frame1")); + } else + goto handle_unusual; + continue; + // string frame2 = 2 [json_name = "frame2"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_frame2(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.motion.v1.CollisionSpecification.AllowedFrameCollisions.frame2")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 89, 2> CollisionSpecification_AllowedFrameCollisions::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_CollisionSpecification_AllowedFrameCollisions_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string frame2 = 2 [json_name = "frame2"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(CollisionSpecification_AllowedFrameCollisions, _impl_.frame2_)}}, - // string frame1 = 1 [json_name = "frame1"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(CollisionSpecification_AllowedFrameCollisions, _impl_.frame1_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string frame1 = 1 [json_name = "frame1"]; - {PROTOBUF_FIELD_OFFSET(CollisionSpecification_AllowedFrameCollisions, _impl_.frame1_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string frame2 = 2 [json_name = "frame2"]; - {PROTOBUF_FIELD_OFFSET(CollisionSpecification_AllowedFrameCollisions, _impl_.frame2_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\104\6\6\0\0\0\0\0" - "viam.service.motion.v1.CollisionSpecification.AllowedFrameCollisions" - "frame1" - "frame2" - }}, -}; - -::uint8_t* CollisionSpecification_AllowedFrameCollisions::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* CollisionSpecification_AllowedFrameCollisions::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.motion.v1.CollisionSpecification.AllowedFrameCollisions) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string frame1 = 1 [json_name = "frame1"]; if (!this->_internal_frame1().empty()) { - const std::string& _s = this->_internal_frame1(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.motion.v1.CollisionSpecification.AllowedFrameCollisions.frame1"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_frame1().data(), static_cast(this->_internal_frame1().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.motion.v1.CollisionSpecification.AllowedFrameCollisions.frame1"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_frame1(), target); } // string frame2 = 2 [json_name = "frame2"]; if (!this->_internal_frame2().empty()) { - const std::string& _s = this->_internal_frame2(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.motion.v1.CollisionSpecification.AllowedFrameCollisions.frame2"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_frame2().data(), static_cast(this->_internal_frame2().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.motion.v1.CollisionSpecification.AllowedFrameCollisions.frame2"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_frame2(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.CollisionSpecification.AllowedFrameCollisions) return target; } -::size_t CollisionSpecification_AllowedFrameCollisions::ByteSizeLong() const { +size_t CollisionSpecification_AllowedFrameCollisions::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.motion.v1.CollisionSpecification.AllowedFrameCollisions) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string frame1 = 1 [json_name = "frame1"]; if (!this->_internal_frame1().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_frame1()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_frame1()); } // string frame2 = 2 [json_name = "frame2"]; if (!this->_internal_frame2().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_frame2()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_frame2()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData CollisionSpecification_AllowedFrameCollisions::_class_data_ = { - CollisionSpecification_AllowedFrameCollisions::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CollisionSpecification_AllowedFrameCollisions::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CollisionSpecification_AllowedFrameCollisions::MergeImpl }; -const ::google::protobuf::Message::ClassData* CollisionSpecification_AllowedFrameCollisions::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CollisionSpecification_AllowedFrameCollisions::GetClassData() const { return &_class_data_; } + +void CollisionSpecification_AllowedFrameCollisions::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void CollisionSpecification_AllowedFrameCollisions::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.CollisionSpecification.AllowedFrameCollisions) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void CollisionSpecification_AllowedFrameCollisions::MergeFrom(const CollisionSpecification_AllowedFrameCollisions& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.CollisionSpecification.AllowedFrameCollisions) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_frame1().empty()) { - _this->_internal_set_frame1(from._internal_frame1()); + _internal_set_frame1(from._internal_frame1()); } if (!from._internal_frame2().empty()) { - _this->_internal_set_frame2(from._internal_frame2()); + _internal_set_frame2(from._internal_frame2()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CollisionSpecification_AllowedFrameCollisions::CopyFrom(const CollisionSpecification_AllowedFrameCollisions& from) { @@ -6720,183 +6442,184 @@ void CollisionSpecification_AllowedFrameCollisions::CopyFrom(const CollisionSpec MergeFrom(from); } -PROTOBUF_NOINLINE bool CollisionSpecification_AllowedFrameCollisions::IsInitialized() const { +bool CollisionSpecification_AllowedFrameCollisions::IsInitialized() const { return true; } -::_pbi::CachedSize* CollisionSpecification_AllowedFrameCollisions::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void CollisionSpecification_AllowedFrameCollisions::InternalSwap(CollisionSpecification_AllowedFrameCollisions* PROTOBUF_RESTRICT other) { +void CollisionSpecification_AllowedFrameCollisions::InternalSwap(CollisionSpecification_AllowedFrameCollisions* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.frame1_, &other->_impl_.frame1_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.frame2_, &other->_impl_.frame2_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &frame1_, lhs_arena, + &other->frame1_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &frame2_, lhs_arena, + &other->frame2_, rhs_arena + ); } -::google::protobuf::Metadata CollisionSpecification_AllowedFrameCollisions::GetMetadata() const { +::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[19]); } + // =================================================================== class CollisionSpecification::_Internal { public: }; -CollisionSpecification::CollisionSpecification(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +CollisionSpecification::CollisionSpecification(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + allows_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.service.motion.v1.CollisionSpecification) } -inline PROTOBUF_NDEBUG_INLINE CollisionSpecification::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : allows_{visibility, arena, from.allows_}, - _cached_size_{0} {} - -CollisionSpecification::CollisionSpecification( - ::google::protobuf::Arena* arena, - const CollisionSpecification& from) - : ::google::protobuf::Message(arena) { - CollisionSpecification* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +CollisionSpecification::CollisionSpecification(const CollisionSpecification& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + allows_(from.allows_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.service.motion.v1.CollisionSpecification) } -inline PROTOBUF_NDEBUG_INLINE CollisionSpecification::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : allows_{visibility, arena}, - _cached_size_{0} {} -inline void CollisionSpecification::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void CollisionSpecification::SharedCtor() { } + CollisionSpecification::~CollisionSpecification() { // @@protoc_insertion_point(destructor:viam.service.motion.v1.CollisionSpecification) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void CollisionSpecification::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void CollisionSpecification::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void CollisionSpecification::Clear() { +void CollisionSpecification::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.motion.v1.CollisionSpecification) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.allows_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* CollisionSpecification::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + allows_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CollisionSpecification::_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) { + // repeated .viam.service.motion.v1.CollisionSpecification.AllowedFrameCollisions allows = 1 [json_name = "allows"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_allows(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> CollisionSpecification::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_CollisionSpecification_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.service.motion.v1.CollisionSpecification.AllowedFrameCollisions allows = 1 [json_name = "allows"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(CollisionSpecification, _impl_.allows_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.service.motion.v1.CollisionSpecification.AllowedFrameCollisions allows = 1 [json_name = "allows"]; - {PROTOBUF_FIELD_OFFSET(CollisionSpecification, _impl_.allows_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions>()}, - }}, {{ - }}, -}; - -::uint8_t* CollisionSpecification::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* CollisionSpecification::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.motion.v1.CollisionSpecification) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .viam.service.motion.v1.CollisionSpecification.AllowedFrameCollisions allows = 1 [json_name = "allows"]; for (unsigned i = 0, n = static_cast(this->_internal_allows_size()); i < n; i++) { - const auto& repfield = this->_internal_allows().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_allows(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.CollisionSpecification) return target; } -::size_t CollisionSpecification::ByteSizeLong() const { +size_t CollisionSpecification::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.motion.v1.CollisionSpecification) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.service.motion.v1.CollisionSpecification.AllowedFrameCollisions allows = 1 [json_name = "allows"]; total_size += 1UL * this->_internal_allows_size(); - for (const auto& msg : this->_internal_allows()) { + for (const auto& msg : this->allows_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData CollisionSpecification::_class_data_ = { - CollisionSpecification::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CollisionSpecification::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CollisionSpecification::MergeImpl }; -const ::google::protobuf::Message::ClassData* CollisionSpecification::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CollisionSpecification::GetClassData() const { return &_class_data_; } + +void CollisionSpecification::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void CollisionSpecification::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.CollisionSpecification) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void CollisionSpecification::MergeFrom(const CollisionSpecification& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.CollisionSpecification) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_allows()->MergeFrom( - from._internal_allows()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + allows_.MergeFrom(from.allows_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CollisionSpecification::CopyFrom(const CollisionSpecification& from) { @@ -6906,281 +6629,259 @@ void CollisionSpecification::CopyFrom(const CollisionSpecification& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool CollisionSpecification::IsInitialized() const { +bool CollisionSpecification::IsInitialized() const { return true; } -::_pbi::CachedSize* CollisionSpecification::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void CollisionSpecification::InternalSwap(CollisionSpecification* PROTOBUF_RESTRICT other) { +void CollisionSpecification::InternalSwap(CollisionSpecification* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.allows_.InternalSwap(&other->_impl_.allows_); + allows_.InternalSwap(&other->allows_); } -::google::protobuf::Metadata CollisionSpecification::GetMetadata() const { +::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[20]); } + // =================================================================== class PlanWithStatus::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(PlanWithStatus, _impl_._has_bits_); static const ::viam::service::motion::v1::Plan& plan(const PlanWithStatus* msg); - static void set_has_plan(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } static const ::viam::service::motion::v1::PlanStatus& status(const PlanWithStatus* msg); - static void set_has_status(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } }; -const ::viam::service::motion::v1::Plan& PlanWithStatus::_Internal::plan(const PlanWithStatus* msg) { - return *msg->_impl_.plan_; +const ::viam::service::motion::v1::Plan& +PlanWithStatus::_Internal::plan(const PlanWithStatus* msg) { + return *msg->plan_; } -const ::viam::service::motion::v1::PlanStatus& PlanWithStatus::_Internal::status(const PlanWithStatus* msg) { - return *msg->_impl_.status_; +const ::viam::service::motion::v1::PlanStatus& +PlanWithStatus::_Internal::status(const PlanWithStatus* msg) { + return *msg->status_; } -PlanWithStatus::PlanWithStatus(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +PlanWithStatus::PlanWithStatus(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + status_history_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.service.motion.v1.PlanWithStatus) } -inline PROTOBUF_NDEBUG_INLINE PlanWithStatus::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - status_history_{visibility, arena, from.status_history_} {} - -PlanWithStatus::PlanWithStatus( - ::google::protobuf::Arena* arena, - const PlanWithStatus& from) - : ::google::protobuf::Message(arena) { - PlanWithStatus* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.plan_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::service::motion::v1::Plan>(arena, *from._impl_.plan_) - : nullptr; - _impl_.status_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::viam::service::motion::v1::PlanStatus>(arena, *from._impl_.status_) - : nullptr; - +PlanWithStatus::PlanWithStatus(const PlanWithStatus& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + status_history_(from.status_history_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_plan()) { + plan_ = new ::viam::service::motion::v1::Plan(*from.plan_); + } else { + plan_ = nullptr; + } + if (from._internal_has_status()) { + status_ = new ::viam::service::motion::v1::PlanStatus(*from.status_); + } else { + status_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.service.motion.v1.PlanWithStatus) } -inline PROTOBUF_NDEBUG_INLINE PlanWithStatus::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - status_history_{visibility, arena} {} - -inline void PlanWithStatus::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, plan_), - 0, - offsetof(Impl_, status_) - - offsetof(Impl_, plan_) + - sizeof(Impl_::status_)); + +inline void PlanWithStatus::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&plan_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&status_) - + reinterpret_cast(&plan_)) + sizeof(status_)); } + PlanWithStatus::~PlanWithStatus() { // @@protoc_insertion_point(destructor:viam.service.motion.v1.PlanWithStatus) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void PlanWithStatus::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.plan_; - delete _impl_.status_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete plan_; + if (this != internal_default_instance()) delete status_; +} + +void PlanWithStatus::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void PlanWithStatus::Clear() { +void PlanWithStatus::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.motion.v1.PlanWithStatus) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.status_history_.Clear(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.plan_ != nullptr); - _impl_.plan_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.status_ != nullptr); - _impl_.status_->Clear(); + status_history_.Clear(); + if (GetArenaForAllocation() == nullptr && plan_ != nullptr) { + delete plan_; + } + plan_ = nullptr; + if (GetArenaForAllocation() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* PlanWithStatus::_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.service.motion.v1.Plan plan = 1 [json_name = "plan"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_plan(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.service.motion.v1.PlanStatus status = 2 [json_name = "status"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_status(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // repeated .viam.service.motion.v1.PlanStatus status_history = 3 [json_name = "statusHistory"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_status_history(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(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; } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* PlanWithStatus::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 3, 0, 2> PlanWithStatus::_table_ = { - { - PROTOBUF_FIELD_OFFSET(PlanWithStatus, _impl_._has_bits_), - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 3, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_PlanWithStatus_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // .viam.service.motion.v1.Plan plan = 1 [json_name = "plan"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(PlanWithStatus, _impl_.plan_)}}, - // .viam.service.motion.v1.PlanStatus status = 2 [json_name = "status"]; - {::_pbi::TcParser::FastMtS1, - {18, 1, 1, PROTOBUF_FIELD_OFFSET(PlanWithStatus, _impl_.status_)}}, - // repeated .viam.service.motion.v1.PlanStatus status_history = 3 [json_name = "statusHistory"]; - {::_pbi::TcParser::FastMtR1, - {26, 63, 2, PROTOBUF_FIELD_OFFSET(PlanWithStatus, _impl_.status_history_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.service.motion.v1.Plan plan = 1 [json_name = "plan"]; - {PROTOBUF_FIELD_OFFSET(PlanWithStatus, _impl_.plan_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .viam.service.motion.v1.PlanStatus status = 2 [json_name = "status"]; - {PROTOBUF_FIELD_OFFSET(PlanWithStatus, _impl_.status_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated .viam.service.motion.v1.PlanStatus status_history = 3 [json_name = "statusHistory"]; - {PROTOBUF_FIELD_OFFSET(PlanWithStatus, _impl_.status_history_), -1, 2, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::service::motion::v1::Plan>()}, - {::_pbi::TcParser::GetTable<::viam::service::motion::v1::PlanStatus>()}, - {::_pbi::TcParser::GetTable<::viam::service::motion::v1::PlanStatus>()}, - }}, {{ - }}, -}; - -::uint8_t* PlanWithStatus::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* PlanWithStatus::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.motion.v1.PlanWithStatus) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.service.motion.v1.Plan plan = 1 [json_name = "plan"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::plan(this), + if (this->_internal_has_plan()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::plan(this), _Internal::plan(this).GetCachedSize(), target, stream); } // .viam.service.motion.v1.PlanStatus status = 2 [json_name = "status"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::status(this), + if (this->_internal_has_status()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::status(this), _Internal::status(this).GetCachedSize(), target, stream); } // repeated .viam.service.motion.v1.PlanStatus status_history = 3 [json_name = "statusHistory"]; for (unsigned i = 0, n = static_cast(this->_internal_status_history_size()); i < n; i++) { - const auto& repfield = this->_internal_status_history().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_status_history(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.PlanWithStatus) return target; } -::size_t PlanWithStatus::ByteSizeLong() const { +size_t PlanWithStatus::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.motion.v1.PlanWithStatus) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.service.motion.v1.PlanStatus status_history = 3 [json_name = "statusHistory"]; total_size += 1UL * this->_internal_status_history_size(); - for (const auto& msg : this->_internal_status_history()) { + for (const auto& msg : this->status_history_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // .viam.service.motion.v1.Plan plan = 1 [json_name = "plan"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.plan_); - } - // .viam.service.motion.v1.PlanStatus status = 2 [json_name = "status"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.status_); - } + // .viam.service.motion.v1.Plan plan = 1 [json_name = "plan"]; + if (this->_internal_has_plan()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *plan_); + } + // .viam.service.motion.v1.PlanStatus status = 2 [json_name = "status"]; + if (this->_internal_has_status()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *status_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData PlanWithStatus::_class_data_ = { - PlanWithStatus::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PlanWithStatus::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + PlanWithStatus::MergeImpl }; -const ::google::protobuf::Message::ClassData* PlanWithStatus::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PlanWithStatus::GetClassData() const { return &_class_data_; } + +void PlanWithStatus::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void PlanWithStatus::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.PlanWithStatus) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void PlanWithStatus::MergeFrom(const PlanWithStatus& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.PlanWithStatus) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_status_history()->MergeFrom( - from._internal_status_history()); - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_plan()->::viam::service::motion::v1::Plan::MergeFrom( - from._internal_plan()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_status()->::viam::service::motion::v1::PlanStatus::MergeFrom( - from._internal_status()); - } + status_history_.MergeFrom(from.status_history_); + if (from._internal_has_plan()) { + _internal_mutable_plan()->::viam::service::motion::v1::Plan::MergeFrom(from._internal_plan()); + } + if (from._internal_has_status()) { + _internal_mutable_status()->::viam::service::motion::v1::PlanStatus::MergeFrom(from._internal_status()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void PlanWithStatus::CopyFrom(const PlanWithStatus& from) { @@ -7190,324 +6891,327 @@ void PlanWithStatus::CopyFrom(const PlanWithStatus& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool PlanWithStatus::IsInitialized() const { +bool PlanWithStatus::IsInitialized() const { return true; } -::_pbi::CachedSize* PlanWithStatus::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void PlanWithStatus::InternalSwap(PlanWithStatus* PROTOBUF_RESTRICT other) { +void PlanWithStatus::InternalSwap(PlanWithStatus* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.status_history_.InternalSwap(&other->_impl_.status_history_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(PlanWithStatus, _impl_.status_) - + sizeof(PlanWithStatus::_impl_.status_) - - PROTOBUF_FIELD_OFFSET(PlanWithStatus, _impl_.plan_)>( - reinterpret_cast(&_impl_.plan_), - reinterpret_cast(&other->_impl_.plan_)); + status_history_.InternalSwap(&other->status_history_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(PlanWithStatus, status_) + + sizeof(PlanWithStatus::status_) + - PROTOBUF_FIELD_OFFSET(PlanWithStatus, plan_)>( + reinterpret_cast(&plan_), + reinterpret_cast(&other->plan_)); } -::google::protobuf::Metadata PlanWithStatus::GetMetadata() const { +::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[21]); } + // =================================================================== class PlanStatusWithID::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(PlanStatusWithID, _impl_._has_bits_); static const ::viam::common::v1::ResourceName& component_name(const PlanStatusWithID* msg); - static void set_has_component_name(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } static const ::viam::service::motion::v1::PlanStatus& status(const PlanStatusWithID* msg); - static void set_has_status(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } }; -const ::viam::common::v1::ResourceName& PlanStatusWithID::_Internal::component_name(const PlanStatusWithID* msg) { - return *msg->_impl_.component_name_; +const ::viam::common::v1::ResourceName& +PlanStatusWithID::_Internal::component_name(const PlanStatusWithID* msg) { + return *msg->component_name_; } -const ::viam::service::motion::v1::PlanStatus& PlanStatusWithID::_Internal::status(const PlanStatusWithID* msg) { - return *msg->_impl_.status_; +const ::viam::service::motion::v1::PlanStatus& +PlanStatusWithID::_Internal::status(const PlanStatusWithID* msg) { + return *msg->status_; } void PlanStatusWithID::clear_component_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.component_name_ != nullptr) _impl_.component_name_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && component_name_ != nullptr) { + delete component_name_; + } + component_name_ = nullptr; } -PlanStatusWithID::PlanStatusWithID(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +PlanStatusWithID::PlanStatusWithID(::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.PlanStatusWithID) } -inline PROTOBUF_NDEBUG_INLINE PlanStatusWithID::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - plan_id_(arena, from.plan_id_), - execution_id_(arena, from.execution_id_) {} - -PlanStatusWithID::PlanStatusWithID( - ::google::protobuf::Arena* arena, - const PlanStatusWithID& from) - : ::google::protobuf::Message(arena) { - PlanStatusWithID* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.component_name_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::common::v1::ResourceName>(arena, *from._impl_.component_name_) - : nullptr; - _impl_.status_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::viam::service::motion::v1::PlanStatus>(arena, *from._impl_.status_) - : nullptr; - +PlanStatusWithID::PlanStatusWithID(const PlanStatusWithID& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + plan_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + plan_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_plan_id().empty()) { + plan_id_.Set(from._internal_plan_id(), + GetArenaForAllocation()); + } + execution_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + execution_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_execution_id().empty()) { + execution_id_.Set(from._internal_execution_id(), + GetArenaForAllocation()); + } + if (from._internal_has_component_name()) { + component_name_ = new ::viam::common::v1::ResourceName(*from.component_name_); + } else { + component_name_ = nullptr; + } + if (from._internal_has_status()) { + status_ = new ::viam::service::motion::v1::PlanStatus(*from.status_); + } else { + status_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.service.motion.v1.PlanStatusWithID) } -inline PROTOBUF_NDEBUG_INLINE PlanStatusWithID::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - plan_id_(arena), - execution_id_(arena) {} - -inline void PlanStatusWithID::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, component_name_), - 0, - offsetof(Impl_, status_) - - offsetof(Impl_, component_name_) + - sizeof(Impl_::status_)); + +inline void PlanStatusWithID::SharedCtor() { +plan_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + plan_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +execution_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + execution_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&component_name_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&status_) - + reinterpret_cast(&component_name_)) + sizeof(status_)); } + PlanStatusWithID::~PlanStatusWithID() { // @@protoc_insertion_point(destructor:viam.service.motion.v1.PlanStatusWithID) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void PlanStatusWithID::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.plan_id_.Destroy(); - _impl_.execution_id_.Destroy(); - delete _impl_.component_name_; - delete _impl_.status_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + plan_id_.Destroy(); + execution_id_.Destroy(); + if (this != internal_default_instance()) delete component_name_; + if (this != internal_default_instance()) delete status_; +} + +void PlanStatusWithID::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void PlanStatusWithID::Clear() { +void PlanStatusWithID::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.motion.v1.PlanStatusWithID) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.plan_id_.ClearToEmpty(); - _impl_.execution_id_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.component_name_ != nullptr); - _impl_.component_name_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.status_ != nullptr); - _impl_.status_->Clear(); + plan_id_.ClearToEmpty(); + execution_id_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && component_name_ != nullptr) { + delete component_name_; + } + component_name_ = nullptr; + if (GetArenaForAllocation() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* PlanStatusWithID::_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 plan_id = 1 [json_name = "planId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_plan_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.motion.v1.PlanStatusWithID.plan_id")); + } else + goto handle_unusual; + continue; + // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_component_name(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string execution_id = 3 [json_name = "executionId"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_execution_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.motion.v1.PlanStatusWithID.execution_id")); + } else + goto handle_unusual; + continue; + // .viam.service.motion.v1.PlanStatus status = 4 [json_name = "status"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_status(), 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; } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* PlanStatusWithID::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 2, 67, 2> PlanStatusWithID::_table_ = { - { - PROTOBUF_FIELD_OFFSET(PlanStatusWithID, _impl_._has_bits_), - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_PlanStatusWithID_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.service.motion.v1.PlanStatus status = 4 [json_name = "status"]; - {::_pbi::TcParser::FastMtS1, - {34, 1, 1, PROTOBUF_FIELD_OFFSET(PlanStatusWithID, _impl_.status_)}}, - // string plan_id = 1 [json_name = "planId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(PlanStatusWithID, _impl_.plan_id_)}}, - // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(PlanStatusWithID, _impl_.component_name_)}}, - // string execution_id = 3 [json_name = "executionId"]; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(PlanStatusWithID, _impl_.execution_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string plan_id = 1 [json_name = "planId"]; - {PROTOBUF_FIELD_OFFSET(PlanStatusWithID, _impl_.plan_id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; - {PROTOBUF_FIELD_OFFSET(PlanStatusWithID, _impl_.component_name_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // string execution_id = 3 [json_name = "executionId"]; - {PROTOBUF_FIELD_OFFSET(PlanStatusWithID, _impl_.execution_id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .viam.service.motion.v1.PlanStatus status = 4 [json_name = "status"]; - {PROTOBUF_FIELD_OFFSET(PlanStatusWithID, _impl_.status_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::common::v1::ResourceName>()}, - {::_pbi::TcParser::GetTable<::viam::service::motion::v1::PlanStatus>()}, - }}, {{ - "\47\7\0\14\0\0\0\0" - "viam.service.motion.v1.PlanStatusWithID" - "plan_id" - "execution_id" - }}, -}; - -::uint8_t* PlanStatusWithID::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* PlanStatusWithID::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.motion.v1.PlanStatusWithID) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string plan_id = 1 [json_name = "planId"]; if (!this->_internal_plan_id().empty()) { - const std::string& _s = this->_internal_plan_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.motion.v1.PlanStatusWithID.plan_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_plan_id().data(), static_cast(this->_internal_plan_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.motion.v1.PlanStatusWithID.plan_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_plan_id(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::component_name(this), + if (this->_internal_has_component_name()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::component_name(this), _Internal::component_name(this).GetCachedSize(), target, stream); } // string execution_id = 3 [json_name = "executionId"]; if (!this->_internal_execution_id().empty()) { - const std::string& _s = this->_internal_execution_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.motion.v1.PlanStatusWithID.execution_id"); - target = stream->WriteStringMaybeAliased(3, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_execution_id().data(), static_cast(this->_internal_execution_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.motion.v1.PlanStatusWithID.execution_id"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_execution_id(), target); } // .viam.service.motion.v1.PlanStatus status = 4 [json_name = "status"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, _Internal::status(this), + if (this->_internal_has_status()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.PlanStatusWithID) return target; } -::size_t PlanStatusWithID::ByteSizeLong() const { +size_t PlanStatusWithID::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.motion.v1.PlanStatusWithID) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string plan_id = 1 [json_name = "planId"]; if (!this->_internal_plan_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_plan_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_plan_id()); } // string execution_id = 3 [json_name = "executionId"]; if (!this->_internal_execution_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_execution_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_execution_id()); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.component_name_); - } - - // .viam.service.motion.v1.PlanStatus status = 4 [json_name = "status"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.status_); - } + // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; + if (this->_internal_has_component_name()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *component_name_); + } + // .viam.service.motion.v1.PlanStatus status = 4 [json_name = "status"]; + if (this->_internal_has_status()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *status_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData PlanStatusWithID::_class_data_ = { - PlanStatusWithID::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PlanStatusWithID::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + PlanStatusWithID::MergeImpl }; -const ::google::protobuf::Message::ClassData* PlanStatusWithID::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PlanStatusWithID::GetClassData() const { return &_class_data_; } + +void PlanStatusWithID::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void PlanStatusWithID::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.PlanStatusWithID) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void PlanStatusWithID::MergeFrom(const PlanStatusWithID& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.PlanStatusWithID) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_plan_id().empty()) { - _this->_internal_set_plan_id(from._internal_plan_id()); + _internal_set_plan_id(from._internal_plan_id()); } if (!from._internal_execution_id().empty()) { - _this->_internal_set_execution_id(from._internal_execution_id()); + _internal_set_execution_id(from._internal_execution_id()); } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_component_name()->::viam::common::v1::ResourceName::MergeFrom( - from._internal_component_name()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_status()->::viam::service::motion::v1::PlanStatus::MergeFrom( - from._internal_status()); - } + if (from._internal_has_component_name()) { + _internal_mutable_component_name()->::viam::common::v1::ResourceName::MergeFrom(from._internal_component_name()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_status()) { + _internal_mutable_status()->::viam::service::motion::v1::PlanStatus::MergeFrom(from._internal_status()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void PlanStatusWithID::CopyFrom(const PlanStatusWithID& from) { @@ -7517,290 +7221,291 @@ void PlanStatusWithID::CopyFrom(const PlanStatusWithID& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool PlanStatusWithID::IsInitialized() const { +bool PlanStatusWithID::IsInitialized() const { return true; } -::_pbi::CachedSize* PlanStatusWithID::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void PlanStatusWithID::InternalSwap(PlanStatusWithID* PROTOBUF_RESTRICT other) { +void PlanStatusWithID::InternalSwap(PlanStatusWithID* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.plan_id_, &other->_impl_.plan_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.execution_id_, &other->_impl_.execution_id_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(PlanStatusWithID, _impl_.status_) - + sizeof(PlanStatusWithID::_impl_.status_) - - PROTOBUF_FIELD_OFFSET(PlanStatusWithID, _impl_.component_name_)>( - reinterpret_cast(&_impl_.component_name_), - reinterpret_cast(&other->_impl_.component_name_)); -} - -::google::protobuf::Metadata PlanStatusWithID::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &plan_id_, lhs_arena, + &other->plan_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &execution_id_, lhs_arena, + &other->execution_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(PlanStatusWithID, status_) + + sizeof(PlanStatusWithID::status_) + - PROTOBUF_FIELD_OFFSET(PlanStatusWithID, component_name_)>( + reinterpret_cast(&component_name_), + reinterpret_cast(&other->component_name_)); +} + +::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[22]); } + // =================================================================== class PlanStatus::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(PlanStatus, _impl_._has_bits_); - static const ::google::protobuf::Timestamp& timestamp(const PlanStatus* msg); - static void set_has_timestamp(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = decltype(std::declval()._has_bits_); + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& timestamp(const PlanStatus* msg); static void set_has_reason(HasBits* has_bits) { (*has_bits)[0] |= 1u; } }; -const ::google::protobuf::Timestamp& PlanStatus::_Internal::timestamp(const PlanStatus* msg) { - return *msg->_impl_.timestamp_; +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +PlanStatus::_Internal::timestamp(const PlanStatus* msg) { + return *msg->timestamp_; } void PlanStatus::clear_timestamp() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.timestamp_ != nullptr) _impl_.timestamp_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && timestamp_ != nullptr) { + delete timestamp_; + } + timestamp_ = nullptr; } -PlanStatus::PlanStatus(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +PlanStatus::PlanStatus(::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.PlanStatus) } -inline PROTOBUF_NDEBUG_INLINE PlanStatus::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - reason_(arena, from.reason_) {} - -PlanStatus::PlanStatus( - ::google::protobuf::Arena* arena, - const PlanStatus& from) - : ::google::protobuf::Message(arena) { - PlanStatus* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.timestamp_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.timestamp_) - : nullptr; - _impl_.state_ = from._impl_.state_; - +PlanStatus::PlanStatus(const PlanStatus& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + reason_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + reason_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (from._internal_has_reason()) { + reason_.Set(from._internal_reason(), + GetArenaForAllocation()); + } + if (from._internal_has_timestamp()) { + timestamp_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from.timestamp_); + } else { + timestamp_ = nullptr; + } + state_ = from.state_; // @@protoc_insertion_point(copy_constructor:viam.service.motion.v1.PlanStatus) } -inline PROTOBUF_NDEBUG_INLINE PlanStatus::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - reason_(arena) {} - -inline void PlanStatus::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, timestamp_), - 0, - offsetof(Impl_, state_) - - offsetof(Impl_, timestamp_) + - sizeof(Impl_::state_)); + +inline void PlanStatus::SharedCtor() { +reason_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + reason_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(×tamp_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&state_) - + reinterpret_cast(×tamp_)) + sizeof(state_)); } + PlanStatus::~PlanStatus() { // @@protoc_insertion_point(destructor:viam.service.motion.v1.PlanStatus) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void PlanStatus::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.reason_.Destroy(); - delete _impl_.timestamp_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + reason_.Destroy(); + if (this != internal_default_instance()) delete timestamp_; +} + +void PlanStatus::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void PlanStatus::Clear() { +void PlanStatus::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.motion.v1.PlanStatus) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _impl_.reason_.ClearNonDefaultToEmpty(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.timestamp_ != nullptr); - _impl_.timestamp_->Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + reason_.ClearNonDefaultToEmpty(); + } + if (GetArenaForAllocation() == nullptr && timestamp_ != nullptr) { + delete timestamp_; + } + timestamp_ = nullptr; + state_ = 0; + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* PlanStatus::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .viam.service.motion.v1.PlanState state = 1 [json_name = "state"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_state(static_cast<::viam::service::motion::v1::PlanState>(val)); + } else + goto handle_unusual; + continue; + // .google.protobuf.Timestamp timestamp = 2 [json_name = "timestamp"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_timestamp(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional string reason = 3 [json_name = "reason"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_reason(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.motion.v1.PlanStatus.reason")); + } 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; } - } - _impl_.state_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* PlanStatus::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 1, 48, 2> PlanStatus::_table_ = { - { - PROTOBUF_FIELD_OFFSET(PlanStatus, _impl_._has_bits_), - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_PlanStatus_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // .viam.service.motion.v1.PlanState state = 1 [json_name = "state"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(PlanStatus, _impl_.state_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(PlanStatus, _impl_.state_)}}, - // .google.protobuf.Timestamp timestamp = 2 [json_name = "timestamp"]; - {::_pbi::TcParser::FastMtS1, - {18, 1, 0, PROTOBUF_FIELD_OFFSET(PlanStatus, _impl_.timestamp_)}}, - // optional string reason = 3 [json_name = "reason"]; - {::_pbi::TcParser::FastUS1, - {26, 0, 0, PROTOBUF_FIELD_OFFSET(PlanStatus, _impl_.reason_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.service.motion.v1.PlanState state = 1 [json_name = "state"]; - {PROTOBUF_FIELD_OFFSET(PlanStatus, _impl_.state_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // .google.protobuf.Timestamp timestamp = 2 [json_name = "timestamp"]; - {PROTOBUF_FIELD_OFFSET(PlanStatus, _impl_.timestamp_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // optional string reason = 3 [json_name = "reason"]; - {PROTOBUF_FIELD_OFFSET(PlanStatus, _impl_.reason_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, - }}, {{ - "\41\0\0\6\0\0\0\0" - "viam.service.motion.v1.PlanStatus" - "reason" - }}, -}; - -::uint8_t* PlanStatus::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* PlanStatus::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.motion.v1.PlanStatus) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // .viam.service.motion.v1.PlanState state = 1 [json_name = "state"]; if (this->_internal_state() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_state(), target); + 1, this->_internal_state(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Timestamp timestamp = 2 [json_name = "timestamp"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::timestamp(this), + if (this->_internal_has_timestamp()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::timestamp(this), _Internal::timestamp(this).GetCachedSize(), target, stream); } // optional string reason = 3 [json_name = "reason"]; - if (cached_has_bits & 0x00000001u) { - const std::string& _s = this->_internal_reason(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.motion.v1.PlanStatus.reason"); - target = stream->WriteStringMaybeAliased(3, _s, target); + if (_internal_has_reason()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_reason().data(), static_cast(this->_internal_reason().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.motion.v1.PlanStatus.reason"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_reason(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.PlanStatus) return target; } -::size_t PlanStatus::ByteSizeLong() const { +size_t PlanStatus::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.motion.v1.PlanStatus) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // optional string reason = 3 [json_name = "reason"]; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_reason()); - } - - // .google.protobuf.Timestamp timestamp = 2 [json_name = "timestamp"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.timestamp_); - } + // optional string reason = 3 [json_name = "reason"]; + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_reason()); + } + // .google.protobuf.Timestamp timestamp = 2 [json_name = "timestamp"]; + if (this->_internal_has_timestamp()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *timestamp_); } + // .viam.service.motion.v1.PlanState state = 1 [json_name = "state"]; if (this->_internal_state() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_state()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_state()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData PlanStatus::_class_data_ = { - PlanStatus::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PlanStatus::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + PlanStatus::MergeImpl }; -const ::google::protobuf::Message::ClassData* PlanStatus::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PlanStatus::GetClassData() const { return &_class_data_; } + +void PlanStatus::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void PlanStatus::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.PlanStatus) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void PlanStatus::MergeFrom(const PlanStatus& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.PlanStatus) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_set_reason(from._internal_reason()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_timestamp()->::google::protobuf::Timestamp::MergeFrom( - from._internal_timestamp()); - } + if (from._internal_has_reason()) { + _internal_set_reason(from._internal_reason()); + } + if (from._internal_has_timestamp()) { + _internal_mutable_timestamp()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_timestamp()); } if (from._internal_state() != 0) { - _this->_internal_set_state(from._internal_state()); + _internal_set_state(from._internal_state()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void PlanStatus::CopyFrom(const PlanStatus& from) { @@ -7810,301 +7515,322 @@ void PlanStatus::CopyFrom(const PlanStatus& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool PlanStatus::IsInitialized() const { +bool PlanStatus::IsInitialized() const { return true; } -::_pbi::CachedSize* PlanStatus::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void PlanStatus::InternalSwap(PlanStatus* PROTOBUF_RESTRICT other) { +void PlanStatus::InternalSwap(PlanStatus* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.reason_, &other->_impl_.reason_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(PlanStatus, _impl_.state_) - + sizeof(PlanStatus::_impl_.state_) - - PROTOBUF_FIELD_OFFSET(PlanStatus, _impl_.timestamp_)>( - reinterpret_cast(&_impl_.timestamp_), - reinterpret_cast(&other->_impl_.timestamp_)); -} - -::google::protobuf::Metadata PlanStatus::GetMetadata() const { + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &reason_, lhs_arena, + &other->reason_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(PlanStatus, state_) + + sizeof(PlanStatus::state_) + - PROTOBUF_FIELD_OFFSET(PlanStatus, timestamp_)>( + reinterpret_cast(×tamp_), + reinterpret_cast(&other->timestamp_)); +} + +::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[23]); } + // =================================================================== class Plan::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Plan, _impl_._has_bits_); static const ::viam::common::v1::ResourceName& component_name(const Plan* msg); - static void set_has_component_name(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::common::v1::ResourceName& Plan::_Internal::component_name(const Plan* msg) { - return *msg->_impl_.component_name_; +const ::viam::common::v1::ResourceName& +Plan::_Internal::component_name(const Plan* msg) { + return *msg->component_name_; } void Plan::clear_component_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.component_name_ != nullptr) _impl_.component_name_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && component_name_ != nullptr) { + delete component_name_; + } + component_name_ = nullptr; } -Plan::Plan(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Plan::Plan(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + steps_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.service.motion.v1.Plan) } -inline PROTOBUF_NDEBUG_INLINE Plan::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - steps_{visibility, arena, from.steps_}, - id_(arena, from.id_), - execution_id_(arena, from.execution_id_) {} - -Plan::Plan( - ::google::protobuf::Arena* arena, - const Plan& from) - : ::google::protobuf::Message(arena) { - Plan* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.component_name_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::common::v1::ResourceName>(arena, *from._impl_.component_name_) - : nullptr; - +Plan::Plan(const Plan& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + steps_(from.steps_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } + execution_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + execution_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_execution_id().empty()) { + execution_id_.Set(from._internal_execution_id(), + GetArenaForAllocation()); + } + if (from._internal_has_component_name()) { + component_name_ = new ::viam::common::v1::ResourceName(*from.component_name_); + } else { + component_name_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.service.motion.v1.Plan) } -inline PROTOBUF_NDEBUG_INLINE Plan::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - steps_{visibility, arena}, - id_(arena), - execution_id_(arena) {} -inline void Plan::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.component_name_ = {}; +inline void Plan::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +execution_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + execution_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +component_name_ = nullptr; } + Plan::~Plan() { // @@protoc_insertion_point(destructor:viam.service.motion.v1.Plan) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Plan::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.execution_id_.Destroy(); - delete _impl_.component_name_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); + execution_id_.Destroy(); + if (this != internal_default_instance()) delete component_name_; +} + +void Plan::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void Plan::Clear() { +void Plan::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.motion.v1.Plan) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.steps_.Clear(); - _impl_.id_.ClearToEmpty(); - _impl_.execution_id_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.component_name_ != nullptr); - _impl_.component_name_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Plan::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + steps_.Clear(); + id_.ClearToEmpty(); + execution_id_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && component_name_ != nullptr) { + delete component_name_; + } + component_name_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Plan::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.motion.v1.Plan.id")); + } else + goto handle_unusual; + continue; + // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_component_name(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string execution_id = 3 [json_name = "executionId"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_execution_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.motion.v1.Plan.execution_id")); + } else + goto handle_unusual; + continue; + // repeated .viam.service.motion.v1.PlanStep steps = 4 [json_name = "steps"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_steps(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 2, 50, 2> Plan::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Plan, _impl_._has_bits_), - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Plan_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.service.motion.v1.PlanStep steps = 4 [json_name = "steps"]; - {::_pbi::TcParser::FastMtR1, - {34, 63, 1, PROTOBUF_FIELD_OFFSET(Plan, _impl_.steps_)}}, - // string id = 1 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Plan, _impl_.id_)}}, - // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(Plan, _impl_.component_name_)}}, - // string execution_id = 3 [json_name = "executionId"]; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(Plan, _impl_.execution_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(Plan, _impl_.id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; - {PROTOBUF_FIELD_OFFSET(Plan, _impl_.component_name_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // string execution_id = 3 [json_name = "executionId"]; - {PROTOBUF_FIELD_OFFSET(Plan, _impl_.execution_id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated .viam.service.motion.v1.PlanStep steps = 4 [json_name = "steps"]; - {PROTOBUF_FIELD_OFFSET(Plan, _impl_.steps_), -1, 1, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::common::v1::ResourceName>()}, - {::_pbi::TcParser::GetTable<::viam::service::motion::v1::PlanStep>()}, - }}, {{ - "\33\2\0\14\0\0\0\0" - "viam.service.motion.v1.Plan" - "id" - "execution_id" - }}, -}; - -::uint8_t* Plan::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Plan::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.motion.v1.Plan) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.motion.v1.Plan.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.motion.v1.Plan.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::component_name(this), + if (this->_internal_has_component_name()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::component_name(this), _Internal::component_name(this).GetCachedSize(), target, stream); } // string execution_id = 3 [json_name = "executionId"]; if (!this->_internal_execution_id().empty()) { - const std::string& _s = this->_internal_execution_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.motion.v1.Plan.execution_id"); - target = stream->WriteStringMaybeAliased(3, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_execution_id().data(), static_cast(this->_internal_execution_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.motion.v1.Plan.execution_id"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_execution_id(), target); } // repeated .viam.service.motion.v1.PlanStep steps = 4 [json_name = "steps"]; for (unsigned i = 0, n = static_cast(this->_internal_steps_size()); i < n; i++) { - const auto& repfield = this->_internal_steps().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_steps(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(4, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.Plan) return target; } -::size_t Plan::ByteSizeLong() const { +size_t Plan::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.motion.v1.Plan) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.service.motion.v1.PlanStep steps = 4 [json_name = "steps"]; total_size += 1UL * this->_internal_steps_size(); - for (const auto& msg : this->_internal_steps()) { + for (const auto& msg : this->steps_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } // string execution_id = 3 [json_name = "executionId"]; if (!this->_internal_execution_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_execution_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_execution_id()); } // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.component_name_); + if (this->_internal_has_component_name()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *component_name_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Plan::_class_data_ = { - Plan::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Plan::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Plan::MergeImpl }; -const ::google::protobuf::Message::ClassData* Plan::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Plan::GetClassData() const { return &_class_data_; } + +void Plan::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Plan::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.Plan) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Plan::MergeFrom(const Plan& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.Plan) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_steps()->MergeFrom( - from._internal_steps()); + steps_.MergeFrom(from.steps_); if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } if (!from._internal_execution_id().empty()) { - _this->_internal_set_execution_id(from._internal_execution_id()); + _internal_set_execution_id(from._internal_execution_id()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_component_name()->::viam::common::v1::ResourceName::MergeFrom( - from._internal_component_name()); + if (from._internal_has_component_name()) { + _internal_mutable_component_name()->::viam::common::v1::ResourceName::MergeFrom(from._internal_component_name()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Plan::CopyFrom(const Plan& from) { @@ -8114,220 +7840,229 @@ void Plan::CopyFrom(const Plan& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Plan::IsInitialized() const { +bool Plan::IsInitialized() const { return true; } -::_pbi::CachedSize* Plan::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Plan::InternalSwap(Plan* PROTOBUF_RESTRICT other) { +void Plan::InternalSwap(Plan* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.steps_.InternalSwap(&other->_impl_.steps_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.execution_id_, &other->_impl_.execution_id_, arena); - swap(_impl_.component_name_, other->_impl_.component_name_); -} - -::google::protobuf::Metadata Plan::GetMetadata() const { + steps_.InternalSwap(&other->steps_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &execution_id_, lhs_arena, + &other->execution_id_, rhs_arena + ); + swap(component_name_, other->component_name_); +} + +::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[24]); } + // =================================================================== PlanStep_StepEntry_DoNotUse::PlanStep_StepEntry_DoNotUse() {} -PlanStep_StepEntry_DoNotUse::PlanStep_StepEntry_DoNotUse(::google::protobuf::Arena* arena) +PlanStep_StepEntry_DoNotUse::PlanStep_StepEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) : SuperType(arena) {} -::google::protobuf::Metadata PlanStep_StepEntry_DoNotUse::GetMetadata() const { +void PlanStep_StepEntry_DoNotUse::MergeFrom(const PlanStep_StepEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::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[25]); } + // =================================================================== class PlanStep::_Internal { public: }; -PlanStep::PlanStep(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +PlanStep::PlanStep(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + step_(arena) { + SharedCtor(); + if (arena != nullptr && !is_message_owned) { + arena->OwnCustomDestructor(this, &PlanStep::ArenaDtor); + } // @@protoc_insertion_point(arena_constructor:viam.service.motion.v1.PlanStep) } -inline PROTOBUF_NDEBUG_INLINE PlanStep::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : step_{visibility, arena, from.step_}, - _cached_size_{0} {} - -PlanStep::PlanStep( - ::google::protobuf::Arena* arena, - const PlanStep& from) - : ::google::protobuf::Message(arena) { - PlanStep* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +PlanStep::PlanStep(const PlanStep& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + step_.MergeFrom(from.step_); // @@protoc_insertion_point(copy_constructor:viam.service.motion.v1.PlanStep) } -inline PROTOBUF_NDEBUG_INLINE PlanStep::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : step_{visibility, arena}, - _cached_size_{0} {} -inline void PlanStep::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void PlanStep::SharedCtor() { } + PlanStep::~PlanStep() { // @@protoc_insertion_point(destructor:viam.service.motion.v1.PlanStep) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + ArenaDtor(this); + return; + } SharedDtor(); } + inline void PlanStep::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + step_.Destruct(); +} + +void PlanStep::ArenaDtor(void* object) { + PlanStep* _this = reinterpret_cast< PlanStep* >(object); + _this->step_.Destruct(); +} +void PlanStep::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void PlanStep::Clear() { +void PlanStep::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.motion.v1.PlanStep) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.step_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* PlanStep::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + step_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* PlanStep::_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 step = 1 [json_name = "step"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&step_, 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 2, 44, 2> PlanStep::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_PlanStep_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // map step = 1 [json_name = "step"]; - {PROTOBUF_FIELD_OFFSET(PlanStep, _impl_.step_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, - }}, {{ - {::_pbi::TcParser::GetMapAuxInfo< - decltype(PlanStep()._impl_.step_)>( - 1, 0, 0, 9, - 11)}, - {::_pbi::TcParser::CreateInArenaStorageCb<::viam::service::motion::v1::ComponentState>}, - }}, {{ - "\37\4\0\0\0\0\0\0" - "viam.service.motion.v1.PlanStep" - "step" - }}, -}; - -::uint8_t* PlanStep::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* PlanStep::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.motion.v1.PlanStep) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // map step = 1 [json_name = "step"]; - if (!_internal_step().empty()) { - using MapType = ::google::protobuf::Map; - using WireHelper = _pbi::MapEntryFuncs; - const auto& field = _internal_step(); - - if (stream->IsSerializationDeterministic() && field.size() > 1) { - for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { - target = WireHelper::InternalSerialize( - 1, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.motion.v1.PlanStep.step"); + if (!this->_internal_step().empty()) { + using MapType = ::_pb::Map; + using WireHelper = PlanStep_StepEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_step(); + 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.service.motion.v1.PlanStep.StepEntry.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 : field) { - target = WireHelper::InternalSerialize( - 1, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.motion.v1.PlanStep.step"); + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.PlanStep) return target; } -::size_t PlanStep::ByteSizeLong() const { +size_t PlanStep::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.motion.v1.PlanStep) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // map step = 1 [json_name = "step"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_step_size()); - for (const auto& entry : _internal_step()) { - total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_step_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::service::motion::v1::ComponentState >::const_iterator + it = this->_internal_step().begin(); + it != this->_internal_step().end(); ++it) { + total_size += PlanStep_StepEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData PlanStep::_class_data_ = { - PlanStep::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PlanStep::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + PlanStep::MergeImpl }; -const ::google::protobuf::Message::ClassData* PlanStep::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PlanStep::GetClassData() const { return &_class_data_; } + +void PlanStep::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void PlanStep::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.PlanStep) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void PlanStep::MergeFrom(const PlanStep& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.PlanStep) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.step_.MergeFrom(from._impl_.step_); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + step_.MergeFrom(from.step_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void PlanStep::CopyFrom(const PlanStep& from) { @@ -8337,208 +8072,190 @@ void PlanStep::CopyFrom(const PlanStep& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool PlanStep::IsInitialized() const { +bool PlanStep::IsInitialized() const { return true; } -::_pbi::CachedSize* PlanStep::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void PlanStep::InternalSwap(PlanStep* PROTOBUF_RESTRICT other) { +void PlanStep::InternalSwap(PlanStep* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.step_.InternalSwap(&other->_impl_.step_); + step_.InternalSwap(&other->step_); } -::google::protobuf::Metadata PlanStep::GetMetadata() const { +::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[26]); } + // =================================================================== class ComponentState::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ComponentState, _impl_._has_bits_); static const ::viam::common::v1::Pose& pose(const ComponentState* msg); - static void set_has_pose(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::common::v1::Pose& ComponentState::_Internal::pose(const ComponentState* msg) { - return *msg->_impl_.pose_; +const ::viam::common::v1::Pose& +ComponentState::_Internal::pose(const ComponentState* msg) { + return *msg->pose_; } void ComponentState::clear_pose() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.pose_ != nullptr) _impl_.pose_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && pose_ != nullptr) { + delete pose_; + } + pose_ = nullptr; } -ComponentState::ComponentState(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ComponentState::ComponentState(::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.ComponentState) } -inline PROTOBUF_NDEBUG_INLINE ComponentState::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -ComponentState::ComponentState( - ::google::protobuf::Arena* arena, - const ComponentState& from) - : ::google::protobuf::Message(arena) { - ComponentState* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.pose_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::common::v1::Pose>(arena, *from._impl_.pose_) - : nullptr; - +ComponentState::ComponentState(const ComponentState& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_pose()) { + pose_ = new ::viam::common::v1::Pose(*from.pose_); + } else { + pose_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.service.motion.v1.ComponentState) } -inline PROTOBUF_NDEBUG_INLINE ComponentState::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void ComponentState::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.pose_ = {}; +inline void ComponentState::SharedCtor() { +pose_ = nullptr; } + ComponentState::~ComponentState() { // @@protoc_insertion_point(destructor:viam.service.motion.v1.ComponentState) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ComponentState::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.pose_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete pose_; } -PROTOBUF_NOINLINE void ComponentState::Clear() { +void ComponentState::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ComponentState::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.motion.v1.ComponentState) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.pose_ != nullptr); - _impl_.pose_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ComponentState::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + if (GetArenaForAllocation() == nullptr && pose_ != nullptr) { + delete pose_; + } + pose_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ComponentState::_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.Pose pose = 1 [json_name = "pose"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_pose(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ComponentState::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ComponentState, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ComponentState_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.common.v1.Pose pose = 1 [json_name = "pose"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(ComponentState, _impl_.pose_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.common.v1.Pose pose = 1 [json_name = "pose"]; - {PROTOBUF_FIELD_OFFSET(ComponentState, _impl_.pose_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::common::v1::Pose>()}, - }}, {{ - }}, -}; - -::uint8_t* ComponentState::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ComponentState::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.motion.v1.ComponentState) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.common.v1.Pose pose = 1 [json_name = "pose"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::pose(this), + if (this->_internal_has_pose()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::pose(this), _Internal::pose(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.ComponentState) return target; } -::size_t ComponentState::ByteSizeLong() const { +size_t ComponentState::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.motion.v1.ComponentState) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .viam.common.v1.Pose pose = 1 [json_name = "pose"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.pose_); + if (this->_internal_has_pose()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *pose_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ComponentState::_class_data_ = { - ComponentState::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ComponentState::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ComponentState::MergeImpl }; -const ::google::protobuf::Message::ClassData* ComponentState::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ComponentState::GetClassData() const { return &_class_data_; } + +void ComponentState::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ComponentState::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.ComponentState) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ComponentState::MergeFrom(const ComponentState& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.ComponentState) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_pose()->::viam::common::v1::Pose::MergeFrom( - from._internal_pose()); + if (from._internal_has_pose()) { + _internal_mutable_pose()->::viam::common::v1::Pose::MergeFrom(from._internal_pose()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ComponentState::CopyFrom(const ComponentState& from) { @@ -8548,33 +8265,141 @@ void ComponentState::CopyFrom(const ComponentState& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ComponentState::IsInitialized() const { +bool ComponentState::IsInitialized() const { return true; } -::_pbi::CachedSize* ComponentState::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ComponentState::InternalSwap(ComponentState* PROTOBUF_RESTRICT other) { +void ComponentState::InternalSwap(ComponentState* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.pose_, other->_impl_.pose_); + swap(pose_, other->pose_); } -::google::protobuf::Metadata ComponentState::GetMetadata() const { +::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[27]); } + // @@protoc_insertion_point(namespace_scope) } // namespace v1 } // namespace motion } // namespace service } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::service::motion::v1::MoveRequest* +Arena::CreateMaybeMessage< ::viam::service::motion::v1::MoveRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::motion::v1::MoveRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::motion::v1::MoveResponse* +Arena::CreateMaybeMessage< ::viam::service::motion::v1::MoveResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::motion::v1::MoveResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::motion::v1::MoveOnMapRequest* +Arena::CreateMaybeMessage< ::viam::service::motion::v1::MoveOnMapRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::motion::v1::MoveOnMapRequest >(arena); +} +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); +} +template<> PROTOBUF_NOINLINE ::viam::service::motion::v1::MoveOnGlobeRequest* +Arena::CreateMaybeMessage< ::viam::service::motion::v1::MoveOnGlobeRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::motion::v1::MoveOnGlobeRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::motion::v1::MoveOnGlobeResponse* +Arena::CreateMaybeMessage< ::viam::service::motion::v1::MoveOnGlobeResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::motion::v1::MoveOnGlobeResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::motion::v1::GetPoseRequest* +Arena::CreateMaybeMessage< ::viam::service::motion::v1::GetPoseRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::motion::v1::GetPoseRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::motion::v1::GetPoseResponse* +Arena::CreateMaybeMessage< ::viam::service::motion::v1::GetPoseResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::motion::v1::GetPoseResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::motion::v1::StopPlanRequest* +Arena::CreateMaybeMessage< ::viam::service::motion::v1::StopPlanRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::motion::v1::StopPlanRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::motion::v1::StopPlanResponse* +Arena::CreateMaybeMessage< ::viam::service::motion::v1::StopPlanResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::motion::v1::StopPlanResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::motion::v1::ListPlanStatusesRequest* +Arena::CreateMaybeMessage< ::viam::service::motion::v1::ListPlanStatusesRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::motion::v1::ListPlanStatusesRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::motion::v1::ListPlanStatusesResponse* +Arena::CreateMaybeMessage< ::viam::service::motion::v1::ListPlanStatusesResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::motion::v1::ListPlanStatusesResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::motion::v1::GetPlanRequest* +Arena::CreateMaybeMessage< ::viam::service::motion::v1::GetPlanRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::motion::v1::GetPlanRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::motion::v1::GetPlanResponse* +Arena::CreateMaybeMessage< ::viam::service::motion::v1::GetPlanResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::motion::v1::GetPlanResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::motion::v1::Constraints* +Arena::CreateMaybeMessage< ::viam::service::motion::v1::Constraints >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::motion::v1::Constraints >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::motion::v1::LinearConstraint* +Arena::CreateMaybeMessage< ::viam::service::motion::v1::LinearConstraint >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::motion::v1::LinearConstraint >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::motion::v1::OrientationConstraint* +Arena::CreateMaybeMessage< ::viam::service::motion::v1::OrientationConstraint >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::motion::v1::OrientationConstraint >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions* +Arena::CreateMaybeMessage< ::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::motion::v1::CollisionSpecification* +Arena::CreateMaybeMessage< ::viam::service::motion::v1::CollisionSpecification >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::motion::v1::CollisionSpecification >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::motion::v1::PlanWithStatus* +Arena::CreateMaybeMessage< ::viam::service::motion::v1::PlanWithStatus >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::motion::v1::PlanWithStatus >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::motion::v1::PlanStatusWithID* +Arena::CreateMaybeMessage< ::viam::service::motion::v1::PlanStatusWithID >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::motion::v1::PlanStatusWithID >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::motion::v1::PlanStatus* +Arena::CreateMaybeMessage< ::viam::service::motion::v1::PlanStatus >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::motion::v1::PlanStatus >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::motion::v1::Plan* +Arena::CreateMaybeMessage< ::viam::service::motion::v1::Plan >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::motion::v1::Plan >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::motion::v1::PlanStep_StepEntry_DoNotUse* +Arena::CreateMaybeMessage< ::viam::service::motion::v1::PlanStep_StepEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::motion::v1::PlanStep_StepEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::motion::v1::PlanStep* +Arena::CreateMaybeMessage< ::viam::service::motion::v1::PlanStep >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::motion::v1::PlanStep >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::motion::v1::ComponentState* +Arena::CreateMaybeMessage< ::viam::service::motion::v1::ComponentState >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::motion::v1::ComponentState >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/service/motion/v1/motion.pb.h b/src/viam/api/service/motion/v1/motion.pb.h index c4420e5a3..b901843e5 100644 --- a/src/viam/api/service/motion/v1/motion.pb.h +++ b/src/viam/api/service/motion/v1/motion.pb.h @@ -1,69 +1,58 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: service/motion/v1/motion.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_service_2fmotion_2fv1_2fmotion_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_service_2fmotion_2fv1_2fmotion_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_service_2fmotion_2fv1_2fmotion_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_service_2fmotion_2fv1_2fmotion_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_bases.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/map.h" // IWYU pragma: export -#include "google/protobuf/map_entry.h" -#include "google/protobuf/map_field_inl.h" -#include "google/protobuf/generated_enum_reflection.h" -#include "google/protobuf/unknown_field_set.h" + +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include +#include #include "common/v1/common.pb.h" #include "google/api/annotations.pb.h" -#include "google/protobuf/struct.pb.h" -#include "google/protobuf/timestamp.pb.h" +#include +#include // @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - +#include #define PROTOBUF_INTERNAL_EXPORT_service_2fmotion_2fv1_2fmotion_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_service_2fmotion_2fv1_2fmotion_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto; namespace viam { namespace service { namespace motion { @@ -156,80 +145,93 @@ extern StopPlanResponseDefaultTypeInternal _StopPlanResponse_default_instance_; } // namespace motion } // namespace service } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::service::motion::v1::CollisionSpecification* Arena::CreateMaybeMessage<::viam::service::motion::v1::CollisionSpecification>(Arena*); +template<> ::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions* Arena::CreateMaybeMessage<::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions>(Arena*); +template<> ::viam::service::motion::v1::ComponentState* Arena::CreateMaybeMessage<::viam::service::motion::v1::ComponentState>(Arena*); +template<> ::viam::service::motion::v1::Constraints* Arena::CreateMaybeMessage<::viam::service::motion::v1::Constraints>(Arena*); +template<> ::viam::service::motion::v1::GetPlanRequest* Arena::CreateMaybeMessage<::viam::service::motion::v1::GetPlanRequest>(Arena*); +template<> ::viam::service::motion::v1::GetPlanResponse* Arena::CreateMaybeMessage<::viam::service::motion::v1::GetPlanResponse>(Arena*); +template<> ::viam::service::motion::v1::GetPoseRequest* Arena::CreateMaybeMessage<::viam::service::motion::v1::GetPoseRequest>(Arena*); +template<> ::viam::service::motion::v1::GetPoseResponse* Arena::CreateMaybeMessage<::viam::service::motion::v1::GetPoseResponse>(Arena*); +template<> ::viam::service::motion::v1::LinearConstraint* Arena::CreateMaybeMessage<::viam::service::motion::v1::LinearConstraint>(Arena*); +template<> ::viam::service::motion::v1::ListPlanStatusesRequest* Arena::CreateMaybeMessage<::viam::service::motion::v1::ListPlanStatusesRequest>(Arena*); +template<> ::viam::service::motion::v1::ListPlanStatusesResponse* Arena::CreateMaybeMessage<::viam::service::motion::v1::ListPlanStatusesResponse>(Arena*); +template<> ::viam::service::motion::v1::MotionConfiguration* Arena::CreateMaybeMessage<::viam::service::motion::v1::MotionConfiguration>(Arena*); +template<> ::viam::service::motion::v1::MoveOnGlobeRequest* Arena::CreateMaybeMessage<::viam::service::motion::v1::MoveOnGlobeRequest>(Arena*); +template<> ::viam::service::motion::v1::MoveOnGlobeResponse* Arena::CreateMaybeMessage<::viam::service::motion::v1::MoveOnGlobeResponse>(Arena*); +template<> ::viam::service::motion::v1::MoveOnMapRequest* Arena::CreateMaybeMessage<::viam::service::motion::v1::MoveOnMapRequest>(Arena*); +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*); +template<> ::viam::service::motion::v1::PlanStatusWithID* Arena::CreateMaybeMessage<::viam::service::motion::v1::PlanStatusWithID>(Arena*); +template<> ::viam::service::motion::v1::PlanStep* Arena::CreateMaybeMessage<::viam::service::motion::v1::PlanStep>(Arena*); +template<> ::viam::service::motion::v1::PlanStep_StepEntry_DoNotUse* Arena::CreateMaybeMessage<::viam::service::motion::v1::PlanStep_StepEntry_DoNotUse>(Arena*); +template<> ::viam::service::motion::v1::PlanWithStatus* Arena::CreateMaybeMessage<::viam::service::motion::v1::PlanWithStatus>(Arena*); +template<> ::viam::service::motion::v1::StopPlanRequest* Arena::CreateMaybeMessage<::viam::service::motion::v1::StopPlanRequest>(Arena*); +template<> ::viam::service::motion::v1::StopPlanResponse* Arena::CreateMaybeMessage<::viam::service::motion::v1::StopPlanResponse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace viam { namespace service { namespace motion { namespace v1 { + enum PlanState : int { PLAN_STATE_UNSPECIFIED = 0, PLAN_STATE_IN_PROGRESS = 1, PLAN_STATE_STOPPED = 2, PLAN_STATE_SUCCEEDED = 3, PLAN_STATE_FAILED = 4, - PlanState_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - PlanState_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), + PlanState_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + PlanState_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() }; - bool PlanState_IsValid(int value); -extern const uint32_t PlanState_internal_data_[]; -constexpr PlanState PlanState_MIN = static_cast(0); -constexpr PlanState PlanState_MAX = static_cast(4); -constexpr int PlanState_ARRAYSIZE = 4 + 1; -const ::google::protobuf::EnumDescriptor* -PlanState_descriptor(); -template -const std::string& PlanState_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to PlanState_Name()."); - return PlanState_Name(static_cast(value)); -} -template <> -inline const std::string& PlanState_Name(PlanState value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool PlanState_Parse(absl::string_view name, PlanState* value) { - return ::google::protobuf::internal::ParseNamedEnum( - PlanState_descriptor(), name, value); +constexpr PlanState PlanState_MIN = PLAN_STATE_UNSPECIFIED; +constexpr PlanState PlanState_MAX = PLAN_STATE_FAILED; +constexpr int PlanState_ARRAYSIZE = PlanState_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PlanState_descriptor(); +template +inline const std::string& PlanState_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function PlanState_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + PlanState_descriptor(), enum_t_value); +} +inline bool PlanState_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PlanState* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + PlanState_descriptor(), name, value); } - // =================================================================== - -// ------------------------------------------------------------------- - -class StopPlanResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.StopPlanResponse) */ { +class MoveRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.MoveRequest) */ { public: - inline StopPlanResponse() : StopPlanResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR StopPlanResponse(::google::protobuf::internal::ConstantInitialized); + inline MoveRequest() : MoveRequest(nullptr) {} + ~MoveRequest() override; + explicit PROTOBUF_CONSTEXPR MoveRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline StopPlanResponse(const StopPlanResponse& from) - : StopPlanResponse(nullptr, from) {} - StopPlanResponse(StopPlanResponse&& from) noexcept - : StopPlanResponse() { + MoveRequest(const MoveRequest& from); + MoveRequest(MoveRequest&& from) noexcept + : MoveRequest() { *this = ::std::move(from); } - inline StopPlanResponse& operator=(const StopPlanResponse& from) { + inline MoveRequest& operator=(const MoveRequest& from) { CopyFrom(from); return *this; } - inline StopPlanResponse& operator=(StopPlanResponse&& from) noexcept { + inline MoveRequest& operator=(MoveRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -239,134 +241,246 @@ class StopPlanResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const StopPlanResponse& default_instance() { + static const MoveRequest& default_instance() { return *internal_default_instance(); } - static inline const StopPlanResponse* internal_default_instance() { - return reinterpret_cast( - &_StopPlanResponse_default_instance_); + static inline const MoveRequest* internal_default_instance() { + return reinterpret_cast( + &_MoveRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 11; + 0; - friend void swap(StopPlanResponse& a, StopPlanResponse& b) { + friend void swap(MoveRequest& a, MoveRequest& b) { a.Swap(&b); } - inline void Swap(StopPlanResponse* other) { + inline void Swap(MoveRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(StopPlanResponse* other) { + void UnsafeArenaSwap(MoveRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - StopPlanResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const StopPlanResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const StopPlanResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + MoveRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MoveRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MoveRequest& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.motion.v1.StopPlanResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoveRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.motion.v1.MoveRequest"; } protected: - explicit StopPlanResponse(::google::protobuf::Arena* arena); - StopPlanResponse(::google::protobuf::Arena* arena, const StopPlanResponse& from); + explicit MoveRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.service.motion.v1.StopPlanResponse) + enum : int { + kNameFieldNumber = 1, + kDestinationFieldNumber = 2, + kComponentNameFieldNumber = 3, + kWorldStateFieldNumber = 4, + kConstraintsFieldNumber = 5, + 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: + + // .viam.common.v1.PoseInFrame destination = 2 [json_name = "destination"]; + bool has_destination() const; + private: + bool _internal_has_destination() const; + public: + void clear_destination(); + const ::viam::common::v1::PoseInFrame& destination() const; + PROTOBUF_NODISCARD ::viam::common::v1::PoseInFrame* release_destination(); + ::viam::common::v1::PoseInFrame* mutable_destination(); + void set_allocated_destination(::viam::common::v1::PoseInFrame* destination); + private: + const ::viam::common::v1::PoseInFrame& _internal_destination() const; + ::viam::common::v1::PoseInFrame* _internal_mutable_destination(); + public: + void unsafe_arena_set_allocated_destination( + ::viam::common::v1::PoseInFrame* destination); + ::viam::common::v1::PoseInFrame* unsafe_arena_release_destination(); + + // .viam.common.v1.ResourceName component_name = 3 [json_name = "componentName"]; + bool has_component_name() const; + private: + bool _internal_has_component_name() const; + public: + void clear_component_name(); + const ::viam::common::v1::ResourceName& component_name() const; + PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_component_name(); + ::viam::common::v1::ResourceName* mutable_component_name(); + void set_allocated_component_name(::viam::common::v1::ResourceName* component_name); + private: + const ::viam::common::v1::ResourceName& _internal_component_name() const; + ::viam::common::v1::ResourceName* _internal_mutable_component_name(); + public: + void unsafe_arena_set_allocated_component_name( + ::viam::common::v1::ResourceName* component_name); + ::viam::common::v1::ResourceName* unsafe_arena_release_component_name(); + + // optional .viam.common.v1.WorldState world_state = 4 [json_name = "worldState"]; + bool has_world_state() const; + private: + bool _internal_has_world_state() const; + public: + void clear_world_state(); + const ::viam::common::v1::WorldState& world_state() const; + PROTOBUF_NODISCARD ::viam::common::v1::WorldState* release_world_state(); + ::viam::common::v1::WorldState* mutable_world_state(); + void set_allocated_world_state(::viam::common::v1::WorldState* world_state); + private: + const ::viam::common::v1::WorldState& _internal_world_state() const; + ::viam::common::v1::WorldState* _internal_mutable_world_state(); + public: + void unsafe_arena_set_allocated_world_state( + ::viam::common::v1::WorldState* world_state); + ::viam::common::v1::WorldState* unsafe_arena_release_world_state(); + + // optional .viam.service.motion.v1.Constraints constraints = 5 [json_name = "constraints"]; + bool has_constraints() const; + private: + bool _internal_has_constraints() const; + public: + void clear_constraints(); + const ::viam::service::motion::v1::Constraints& constraints() const; + PROTOBUF_NODISCARD ::viam::service::motion::v1::Constraints* release_constraints(); + ::viam::service::motion::v1::Constraints* mutable_constraints(); + void set_allocated_constraints(::viam::service::motion::v1::Constraints* constraints); + private: + const ::viam::service::motion::v1::Constraints& _internal_constraints() const; + ::viam::service::motion::v1::Constraints* _internal_mutable_constraints(); + public: + void unsafe_arena_set_allocated_constraints( + ::viam::service::motion::v1::Constraints* constraints); + ::viam::service::motion::v1::Constraints* unsafe_arena_release_constraints(); + + // .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.service.motion.v1.MoveRequest) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::viam::common::v1::PoseInFrame* destination_; + ::viam::common::v1::ResourceName* component_name_; + ::viam::common::v1::WorldState* world_state_; + ::viam::service::motion::v1::Constraints* constraints_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class OrientationConstraint final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.OrientationConstraint) */ { +class MoveResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.MoveResponse) */ { public: - inline OrientationConstraint() : OrientationConstraint(nullptr) {} - ~OrientationConstraint() override; - template - explicit PROTOBUF_CONSTEXPR OrientationConstraint(::google::protobuf::internal::ConstantInitialized); + inline MoveResponse() : MoveResponse(nullptr) {} + ~MoveResponse() override; + explicit PROTOBUF_CONSTEXPR MoveResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline OrientationConstraint(const OrientationConstraint& from) - : OrientationConstraint(nullptr, from) {} - OrientationConstraint(OrientationConstraint&& from) noexcept - : OrientationConstraint() { + MoveResponse(const MoveResponse& from); + MoveResponse(MoveResponse&& from) noexcept + : MoveResponse() { *this = ::std::move(from); } - inline OrientationConstraint& operator=(const OrientationConstraint& from) { + inline MoveResponse& operator=(const MoveResponse& from) { CopyFrom(from); return *this; } - inline OrientationConstraint& operator=(OrientationConstraint&& from) noexcept { + inline MoveResponse& operator=(MoveResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -376,174 +490,140 @@ class OrientationConstraint final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const OrientationConstraint& default_instance() { + static const MoveResponse& default_instance() { return *internal_default_instance(); } - static inline const OrientationConstraint* internal_default_instance() { - return reinterpret_cast( - &_OrientationConstraint_default_instance_); + static inline const MoveResponse* internal_default_instance() { + return reinterpret_cast( + &_MoveResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 18; + 1; - friend void swap(OrientationConstraint& a, OrientationConstraint& b) { + friend void swap(MoveResponse& a, MoveResponse& b) { a.Swap(&b); } - inline void Swap(OrientationConstraint* other) { + inline void Swap(MoveResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(OrientationConstraint* other) { + void UnsafeArenaSwap(MoveResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - OrientationConstraint* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const OrientationConstraint& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const OrientationConstraint& from) { - OrientationConstraint::MergeImpl(*this, from); + MoveResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MoveResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MoveResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(OrientationConstraint* other); + void SetCachedSize(int size) const final; + void InternalSwap(MoveResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.motion.v1.OrientationConstraint"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.motion.v1.MoveResponse"; } protected: - explicit OrientationConstraint(::google::protobuf::Arena* arena); - OrientationConstraint(::google::protobuf::Arena* arena, const OrientationConstraint& from); + explicit MoveResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kOrientationToleranceDegsFieldNumber = 1, + kSuccessFieldNumber = 1, }; - // optional float orientation_tolerance_degs = 1 [json_name = "orientationToleranceDegs"]; - bool has_orientation_tolerance_degs() const; - void clear_orientation_tolerance_degs() ; - float orientation_tolerance_degs() const; - void set_orientation_tolerance_degs(float value); - + // bool success = 1 [json_name = "success"]; + void clear_success(); + bool success() const; + void set_success(bool value); private: - float _internal_orientation_tolerance_degs() const; - void _internal_set_orientation_tolerance_degs(float value); - + bool _internal_success() const; + void _internal_set_success(bool value); public: - // @@protoc_insertion_point(class_scope:viam.service.motion.v1.OrientationConstraint) + + // @@protoc_insertion_point(class_scope:viam.service.motion.v1.MoveResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - float orientation_tolerance_degs_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + bool success_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class MoveResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.MoveResponse) */ { +class MoveOnMapRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.MoveOnMapRequest) */ { public: - inline MoveResponse() : MoveResponse(nullptr) {} - ~MoveResponse() override; - template - explicit PROTOBUF_CONSTEXPR MoveResponse(::google::protobuf::internal::ConstantInitialized); + inline MoveOnMapRequest() : MoveOnMapRequest(nullptr) {} + ~MoveOnMapRequest() override; + explicit PROTOBUF_CONSTEXPR MoveOnMapRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline MoveResponse(const MoveResponse& from) - : MoveResponse(nullptr, from) {} - MoveResponse(MoveResponse&& from) noexcept - : MoveResponse() { + MoveOnMapRequest(const MoveOnMapRequest& from); + MoveOnMapRequest(MoveOnMapRequest&& from) noexcept + : MoveOnMapRequest() { *this = ::std::move(from); } - inline MoveResponse& operator=(const MoveResponse& from) { + inline MoveOnMapRequest& operator=(const MoveOnMapRequest& from) { CopyFrom(from); return *this; } - inline MoveResponse& operator=(MoveResponse&& from) noexcept { + inline MoveOnMapRequest& operator=(MoveOnMapRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -553,158 +633,252 @@ class MoveResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MoveResponse& default_instance() { + static const MoveOnMapRequest& default_instance() { return *internal_default_instance(); } - static inline const MoveResponse* internal_default_instance() { - return reinterpret_cast( - &_MoveResponse_default_instance_); + static inline const MoveOnMapRequest* internal_default_instance() { + return reinterpret_cast( + &_MoveOnMapRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 1; + 2; - friend void swap(MoveResponse& a, MoveResponse& b) { + friend void swap(MoveOnMapRequest& a, MoveOnMapRequest& b) { a.Swap(&b); } - inline void Swap(MoveResponse* other) { + inline void Swap(MoveOnMapRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MoveResponse* other) { + void UnsafeArenaSwap(MoveOnMapRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MoveResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const MoveResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const MoveResponse& from) { - MoveResponse::MergeImpl(*this, from); + MoveOnMapRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MoveOnMapRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MoveOnMapRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(MoveResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(MoveOnMapRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.motion.v1.MoveResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.motion.v1.MoveOnMapRequest"; } protected: - explicit MoveResponse(::google::protobuf::Arena* arena); - MoveResponse(::google::protobuf::Arena* arena, const MoveResponse& from); + explicit MoveOnMapRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kSuccessFieldNumber = 1, - }; - // bool success = 1 [json_name = "success"]; - void clear_success() ; - bool success() const; - void set_success(bool value); + kObstaclesFieldNumber = 6, + kNameFieldNumber = 1, + kDestinationFieldNumber = 2, + kComponentNameFieldNumber = 3, + kSlamServiceNameFieldNumber = 4, + kMotionConfigurationFieldNumber = 5, + kExtraFieldNumber = 99, + }; + // repeated .viam.common.v1.Geometry obstacles = 6 [json_name = "obstacles"]; + int obstacles_size() const; + private: + int _internal_obstacles_size() const; + public: + void clear_obstacles(); + ::viam::common::v1::Geometry* mutable_obstacles(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Geometry >* + mutable_obstacles(); + private: + const ::viam::common::v1::Geometry& _internal_obstacles(int index) const; + ::viam::common::v1::Geometry* _internal_add_obstacles(); + public: + const ::viam::common::v1::Geometry& obstacles(int index) const; + ::viam::common::v1::Geometry* add_obstacles(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Geometry >& + obstacles() const; + // 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: - bool _internal_success() const; - void _internal_set_success(bool value); + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + + // .viam.common.v1.Pose destination = 2 [json_name = "destination"]; + bool has_destination() const; + private: + bool _internal_has_destination() const; + public: + void clear_destination(); + const ::viam::common::v1::Pose& destination() const; + PROTOBUF_NODISCARD ::viam::common::v1::Pose* release_destination(); + ::viam::common::v1::Pose* mutable_destination(); + void set_allocated_destination(::viam::common::v1::Pose* destination); + private: + const ::viam::common::v1::Pose& _internal_destination() const; + ::viam::common::v1::Pose* _internal_mutable_destination(); + public: + void unsafe_arena_set_allocated_destination( + ::viam::common::v1::Pose* destination); + ::viam::common::v1::Pose* unsafe_arena_release_destination(); + // .viam.common.v1.ResourceName component_name = 3 [json_name = "componentName"]; + bool has_component_name() const; + private: + bool _internal_has_component_name() const; public: - // @@protoc_insertion_point(class_scope:viam.service.motion.v1.MoveResponse) + void clear_component_name(); + const ::viam::common::v1::ResourceName& component_name() const; + PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_component_name(); + ::viam::common::v1::ResourceName* mutable_component_name(); + void set_allocated_component_name(::viam::common::v1::ResourceName* component_name); + private: + const ::viam::common::v1::ResourceName& _internal_component_name() const; + ::viam::common::v1::ResourceName* _internal_mutable_component_name(); + public: + void unsafe_arena_set_allocated_component_name( + ::viam::common::v1::ResourceName* component_name); + ::viam::common::v1::ResourceName* unsafe_arena_release_component_name(); + + // .viam.common.v1.ResourceName slam_service_name = 4 [json_name = "slamServiceName"]; + bool has_slam_service_name() const; + private: + bool _internal_has_slam_service_name() const; + public: + void clear_slam_service_name(); + const ::viam::common::v1::ResourceName& slam_service_name() const; + PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_slam_service_name(); + ::viam::common::v1::ResourceName* mutable_slam_service_name(); + void set_allocated_slam_service_name(::viam::common::v1::ResourceName* slam_service_name); + private: + const ::viam::common::v1::ResourceName& _internal_slam_service_name() const; + ::viam::common::v1::ResourceName* _internal_mutable_slam_service_name(); + public: + void unsafe_arena_set_allocated_slam_service_name( + ::viam::common::v1::ResourceName* slam_service_name); + ::viam::common::v1::ResourceName* unsafe_arena_release_slam_service_name(); + + // optional .viam.service.motion.v1.MotionConfiguration motion_configuration = 5 [json_name = "motionConfiguration"]; + bool has_motion_configuration() const; + private: + bool _internal_has_motion_configuration() const; + public: + void clear_motion_configuration(); + const ::viam::service::motion::v1::MotionConfiguration& motion_configuration() const; + PROTOBUF_NODISCARD ::viam::service::motion::v1::MotionConfiguration* release_motion_configuration(); + ::viam::service::motion::v1::MotionConfiguration* mutable_motion_configuration(); + void set_allocated_motion_configuration(::viam::service::motion::v1::MotionConfiguration* motion_configuration); + private: + const ::viam::service::motion::v1::MotionConfiguration& _internal_motion_configuration() const; + ::viam::service::motion::v1::MotionConfiguration* _internal_mutable_motion_configuration(); + public: + void unsafe_arena_set_allocated_motion_configuration( + ::viam::service::motion::v1::MotionConfiguration* motion_configuration); + ::viam::service::motion::v1::MotionConfiguration* unsafe_arena_release_motion_configuration(); + + // .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.service.motion.v1.MoveOnMapRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - bool success_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + 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::Geometry > obstacles_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::viam::common::v1::Pose* destination_; + ::viam::common::v1::ResourceName* component_name_; + ::viam::common::v1::ResourceName* slam_service_name_; + ::viam::service::motion::v1::MotionConfiguration* motion_configuration_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class MoveOnMapResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.MoveOnMapResponse) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.MoveOnMapResponse) */ { public: inline MoveOnMapResponse() : MoveOnMapResponse(nullptr) {} ~MoveOnMapResponse() override; - template - explicit PROTOBUF_CONSTEXPR MoveOnMapResponse(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR MoveOnMapResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline MoveOnMapResponse(const MoveOnMapResponse& from) - : MoveOnMapResponse(nullptr, from) {} + MoveOnMapResponse(const MoveOnMapResponse& from); MoveOnMapResponse(MoveOnMapResponse&& from) noexcept : MoveOnMapResponse() { *this = ::std::move(from); @@ -716,9 +890,9 @@ class MoveOnMapResponse final : } inline MoveOnMapResponse& operator=(MoveOnMapResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -728,22 +902,13 @@ class MoveOnMapResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const MoveOnMapResponse& default_instance() { @@ -762,65 +927,63 @@ class MoveOnMapResponse final : inline void Swap(MoveOnMapResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(MoveOnMapResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MoveOnMapResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + MoveOnMapResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const MoveOnMapResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const MoveOnMapResponse& from) { - MoveOnMapResponse::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MoveOnMapResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(MoveOnMapResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "viam.service.motion.v1.MoveOnMapResponse"; } protected: - explicit MoveOnMapResponse(::google::protobuf::Arena* arena); - MoveOnMapResponse(::google::protobuf::Arena* arena, const MoveOnMapResponse& from); + explicit MoveOnMapResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -830,76 +993,54 @@ class MoveOnMapResponse final : kExecutionIdFieldNumber = 1, }; // string execution_id = 1 [json_name = "executionId"]; - void clear_execution_id() ; + void clear_execution_id(); const std::string& execution_id() const; - template - void set_execution_id(Arg_&& arg, Args_... args); + template + void set_execution_id(ArgT0&& arg0, ArgT... args); std::string* mutable_execution_id(); PROTOBUF_NODISCARD std::string* release_execution_id(); - void set_allocated_execution_id(std::string* value); - + void set_allocated_execution_id(std::string* execution_id); private: const std::string& _internal_execution_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_execution_id( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_execution_id(const std::string& value); std::string* _internal_mutable_execution_id(); - public: + // @@protoc_insertion_point(class_scope:viam.service.motion.v1.MoveOnMapResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 61, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr execution_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr execution_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class MoveOnGlobeResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.MoveOnGlobeResponse) */ { +class ObstacleDetector final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.ObstacleDetector) */ { public: - inline MoveOnGlobeResponse() : MoveOnGlobeResponse(nullptr) {} - ~MoveOnGlobeResponse() override; - template - explicit PROTOBUF_CONSTEXPR MoveOnGlobeResponse(::google::protobuf::internal::ConstantInitialized); + inline ObstacleDetector() : ObstacleDetector(nullptr) {} + ~ObstacleDetector() override; + explicit PROTOBUF_CONSTEXPR ObstacleDetector(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline MoveOnGlobeResponse(const MoveOnGlobeResponse& from) - : MoveOnGlobeResponse(nullptr, from) {} - MoveOnGlobeResponse(MoveOnGlobeResponse&& from) noexcept - : MoveOnGlobeResponse() { + ObstacleDetector(const ObstacleDetector& from); + ObstacleDetector(ObstacleDetector&& from) noexcept + : ObstacleDetector() { *this = ::std::move(from); } - inline MoveOnGlobeResponse& operator=(const MoveOnGlobeResponse& from) { + inline ObstacleDetector& operator=(const ObstacleDetector& from) { CopyFrom(from); return *this; } - inline MoveOnGlobeResponse& operator=(MoveOnGlobeResponse&& from) noexcept { + inline ObstacleDetector& operator=(ObstacleDetector&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -909,178 +1050,169 @@ class MoveOnGlobeResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MoveOnGlobeResponse& default_instance() { + static const ObstacleDetector& default_instance() { return *internal_default_instance(); } - static inline const MoveOnGlobeResponse* internal_default_instance() { - return reinterpret_cast( - &_MoveOnGlobeResponse_default_instance_); + static inline const ObstacleDetector* internal_default_instance() { + return reinterpret_cast( + &_ObstacleDetector_default_instance_); } static constexpr int kIndexInFileMessages = - 7; + 4; - friend void swap(MoveOnGlobeResponse& a, MoveOnGlobeResponse& b) { + friend void swap(ObstacleDetector& a, ObstacleDetector& b) { a.Swap(&b); } - inline void Swap(MoveOnGlobeResponse* other) { + inline void Swap(ObstacleDetector* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MoveOnGlobeResponse* other) { + void UnsafeArenaSwap(ObstacleDetector* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MoveOnGlobeResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const MoveOnGlobeResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const MoveOnGlobeResponse& from) { - MoveOnGlobeResponse::MergeImpl(*this, from); + 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(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(MoveOnGlobeResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(ObstacleDetector* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.motion.v1.MoveOnGlobeResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.motion.v1.ObstacleDetector"; } protected: - explicit MoveOnGlobeResponse(::google::protobuf::Arena* arena); - MoveOnGlobeResponse(::google::protobuf::Arena* arena, const MoveOnGlobeResponse& from); + explicit ObstacleDetector(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kExecutionIdFieldNumber = 1, + kVisionServiceFieldNumber = 1, + kCameraFieldNumber = 2, }; - // string execution_id = 1 [json_name = "executionId"]; - void clear_execution_id() ; - const std::string& execution_id() const; - template - void set_execution_id(Arg_&& arg, Args_... args); - std::string* mutable_execution_id(); - PROTOBUF_NODISCARD std::string* release_execution_id(); - void set_allocated_execution_id(std::string* value); - + // .viam.common.v1.ResourceName vision_service = 1 [json_name = "visionService"]; + bool has_vision_service() const; private: - const std::string& _internal_execution_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_execution_id( - const std::string& value); - std::string* _internal_mutable_execution_id(); + 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: - // @@protoc_insertion_point(class_scope:viam.service.motion.v1.MoveOnGlobeResponse) + 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; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 63, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr execution_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + 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 LinearConstraint final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.LinearConstraint) */ { +class MotionConfiguration final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.MotionConfiguration) */ { public: - inline LinearConstraint() : LinearConstraint(nullptr) {} - ~LinearConstraint() override; - template - explicit PROTOBUF_CONSTEXPR LinearConstraint(::google::protobuf::internal::ConstantInitialized); + inline MotionConfiguration() : MotionConfiguration(nullptr) {} + ~MotionConfiguration() override; + explicit PROTOBUF_CONSTEXPR MotionConfiguration(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline LinearConstraint(const LinearConstraint& from) - : LinearConstraint(nullptr, from) {} - LinearConstraint(LinearConstraint&& from) noexcept - : LinearConstraint() { + MotionConfiguration(const MotionConfiguration& from); + MotionConfiguration(MotionConfiguration&& from) noexcept + : MotionConfiguration() { *this = ::std::move(from); } - inline LinearConstraint& operator=(const LinearConstraint& from) { + inline MotionConfiguration& operator=(const MotionConfiguration& from) { CopyFrom(from); return *this; } - inline LinearConstraint& operator=(LinearConstraint&& from) noexcept { + inline MotionConfiguration& operator=(MotionConfiguration&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1090,386 +1222,225 @@ class LinearConstraint final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const LinearConstraint& default_instance() { + static const MotionConfiguration& default_instance() { return *internal_default_instance(); } - static inline const LinearConstraint* internal_default_instance() { - return reinterpret_cast( - &_LinearConstraint_default_instance_); + static inline const MotionConfiguration* internal_default_instance() { + return reinterpret_cast( + &_MotionConfiguration_default_instance_); } static constexpr int kIndexInFileMessages = - 17; + 5; - friend void swap(LinearConstraint& a, LinearConstraint& b) { + friend void swap(MotionConfiguration& a, MotionConfiguration& b) { a.Swap(&b); } - inline void Swap(LinearConstraint* other) { + inline void Swap(MotionConfiguration* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(LinearConstraint* other) { + void UnsafeArenaSwap(MotionConfiguration* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - LinearConstraint* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const LinearConstraint& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const LinearConstraint& from) { - LinearConstraint::MergeImpl(*this, from); + MotionConfiguration* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MotionConfiguration& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MotionConfiguration& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(LinearConstraint* other); + void SetCachedSize(int size) const final; + void InternalSwap(MotionConfiguration* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.motion.v1.LinearConstraint"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.motion.v1.MotionConfiguration"; } protected: - explicit LinearConstraint(::google::protobuf::Arena* arena); - LinearConstraint(::google::protobuf::Arena* arena, const LinearConstraint& from); + explicit MotionConfiguration(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kLineToleranceMmFieldNumber = 1, - kOrientationToleranceDegsFieldNumber = 2, + kObstacleDetectorsFieldNumber = 1, + kPositionPollingFrequencyHzFieldNumber = 2, + kObstaclePollingFrequencyHzFieldNumber = 3, + kPlanDeviationMFieldNumber = 4, + kLinearMPerSecFieldNumber = 5, + kAngularDegsPerSecFieldNumber = 6, }; - // optional float line_tolerance_mm = 1 [json_name = "lineToleranceMm"]; - bool has_line_tolerance_mm() const; - void clear_line_tolerance_mm() ; - float line_tolerance_mm() const; - void set_line_tolerance_mm(float value); - + // repeated .viam.service.motion.v1.ObstacleDetector obstacle_detectors = 1 [json_name = "obstacleDetectors"]; + int obstacle_detectors_size() const; private: - float _internal_line_tolerance_mm() const; - void _internal_set_line_tolerance_mm(float value); - + int _internal_obstacle_detectors_size() const; public: - // optional float orientation_tolerance_degs = 2 [json_name = "orientationToleranceDegs"]; - bool has_orientation_tolerance_degs() const; - void clear_orientation_tolerance_degs() ; - float orientation_tolerance_degs() const; - void set_orientation_tolerance_degs(float value); - + 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: - float _internal_orientation_tolerance_degs() const; - void _internal_set_orientation_tolerance_degs(float value); - + const ::viam::service::motion::v1::ObstacleDetector& _internal_obstacle_detectors(int index) const; + ::viam::service::motion::v1::ObstacleDetector* _internal_add_obstacle_detectors(); public: - // @@protoc_insertion_point(class_scope:viam.service.motion.v1.LinearConstraint) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - float line_tolerance_mm_; - float orientation_tolerance_degs_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; -};// ------------------------------------------------------------------- - -class CollisionSpecification_AllowedFrameCollisions final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.CollisionSpecification.AllowedFrameCollisions) */ { - public: - inline CollisionSpecification_AllowedFrameCollisions() : CollisionSpecification_AllowedFrameCollisions(nullptr) {} - ~CollisionSpecification_AllowedFrameCollisions() override; - template - explicit PROTOBUF_CONSTEXPR CollisionSpecification_AllowedFrameCollisions(::google::protobuf::internal::ConstantInitialized); - - inline CollisionSpecification_AllowedFrameCollisions(const CollisionSpecification_AllowedFrameCollisions& from) - : CollisionSpecification_AllowedFrameCollisions(nullptr, from) {} - CollisionSpecification_AllowedFrameCollisions(CollisionSpecification_AllowedFrameCollisions&& from) noexcept - : CollisionSpecification_AllowedFrameCollisions() { - *this = ::std::move(from); - } - - inline CollisionSpecification_AllowedFrameCollisions& operator=(const CollisionSpecification_AllowedFrameCollisions& from) { - CopyFrom(from); - return *this; - } - inline CollisionSpecification_AllowedFrameCollisions& operator=(CollisionSpecification_AllowedFrameCollisions&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CollisionSpecification_AllowedFrameCollisions& default_instance() { - return *internal_default_instance(); - } - static inline const CollisionSpecification_AllowedFrameCollisions* internal_default_instance() { - return reinterpret_cast( - &_CollisionSpecification_AllowedFrameCollisions_default_instance_); - } - static constexpr int kIndexInFileMessages = - 19; - - friend void swap(CollisionSpecification_AllowedFrameCollisions& a, CollisionSpecification_AllowedFrameCollisions& b) { - a.Swap(&b); - } - inline void Swap(CollisionSpecification_AllowedFrameCollisions* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CollisionSpecification_AllowedFrameCollisions* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- + 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; - CollisionSpecification_AllowedFrameCollisions* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const CollisionSpecification_AllowedFrameCollisions& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CollisionSpecification_AllowedFrameCollisions& from) { - CollisionSpecification_AllowedFrameCollisions::MergeImpl(*this, from); - } + // optional double position_polling_frequency_hz = 2 [json_name = "positionPollingFrequencyHz"]; + bool has_position_polling_frequency_hz() const; private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + bool _internal_has_position_polling_frequency_hz() const; public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - + void clear_position_polling_frequency_hz(); + double position_polling_frequency_hz() const; + void set_position_polling_frequency_hz(double value); private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(CollisionSpecification_AllowedFrameCollisions* other); + double _internal_position_polling_frequency_hz() const; + void _internal_set_position_polling_frequency_hz(double value); + public: + // optional double obstacle_polling_frequency_hz = 3 [json_name = "obstaclePollingFrequencyHz"]; + bool has_obstacle_polling_frequency_hz() const; private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.motion.v1.CollisionSpecification.AllowedFrameCollisions"; - } - protected: - explicit CollisionSpecification_AllowedFrameCollisions(::google::protobuf::Arena* arena); - CollisionSpecification_AllowedFrameCollisions(::google::protobuf::Arena* arena, const CollisionSpecification_AllowedFrameCollisions& from); + bool _internal_has_obstacle_polling_frequency_hz() const; public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kFrame1FieldNumber = 1, - kFrame2FieldNumber = 2, - }; - // string frame1 = 1 [json_name = "frame1"]; - void clear_frame1() ; - const std::string& frame1() const; - template - void set_frame1(Arg_&& arg, Args_... args); - std::string* mutable_frame1(); - PROTOBUF_NODISCARD std::string* release_frame1(); - void set_allocated_frame1(std::string* value); - + void clear_obstacle_polling_frequency_hz(); + double obstacle_polling_frequency_hz() const; + void set_obstacle_polling_frequency_hz(double value); private: - const std::string& _internal_frame1() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_frame1( - const std::string& value); - std::string* _internal_mutable_frame1(); + double _internal_obstacle_polling_frequency_hz() const; + void _internal_set_obstacle_polling_frequency_hz(double value); + public: + // optional double plan_deviation_m = 4 [json_name = "planDeviationM"]; + bool has_plan_deviation_m() const; + private: + bool _internal_has_plan_deviation_m() const; + public: + void clear_plan_deviation_m(); + double plan_deviation_m() const; + void set_plan_deviation_m(double value); + private: + double _internal_plan_deviation_m() const; + void _internal_set_plan_deviation_m(double value); public: - // string frame2 = 2 [json_name = "frame2"]; - void clear_frame2() ; - const std::string& frame2() const; - template - void set_frame2(Arg_&& arg, Args_... args); - std::string* mutable_frame2(); - PROTOBUF_NODISCARD std::string* release_frame2(); - void set_allocated_frame2(std::string* value); + // optional double linear_m_per_sec = 5 [json_name = "linearMPerSec"]; + bool has_linear_m_per_sec() const; private: - const std::string& _internal_frame2() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_frame2( - const std::string& value); - std::string* _internal_mutable_frame2(); + bool _internal_has_linear_m_per_sec() const; + public: + void clear_linear_m_per_sec(); + double linear_m_per_sec() const; + void set_linear_m_per_sec(double value); + private: + double _internal_linear_m_per_sec() const; + void _internal_set_linear_m_per_sec(double value); + public: + // optional double angular_degs_per_sec = 6 [json_name = "angularDegsPerSec"]; + bool has_angular_degs_per_sec() const; + private: + bool _internal_has_angular_degs_per_sec() const; public: - // @@protoc_insertion_point(class_scope:viam.service.motion.v1.CollisionSpecification.AllowedFrameCollisions) + void clear_angular_degs_per_sec(); + double angular_degs_per_sec() const; + void set_angular_degs_per_sec(double value); + private: + double _internal_angular_degs_per_sec() const; + void _internal_set_angular_degs_per_sec(double value); + public: + + // @@protoc_insertion_point(class_scope:viam.service.motion.v1.MotionConfiguration) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 89, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr frame1_; - ::google::protobuf::internal::ArenaStringPtr frame2_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::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_; + double linear_m_per_sec_; + double angular_degs_per_sec_; friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class StopPlanRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.StopPlanRequest) */ { +class MoveOnGlobeRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.MoveOnGlobeRequest) */ { public: - inline StopPlanRequest() : StopPlanRequest(nullptr) {} - ~StopPlanRequest() override; - template - explicit PROTOBUF_CONSTEXPR StopPlanRequest(::google::protobuf::internal::ConstantInitialized); + inline MoveOnGlobeRequest() : MoveOnGlobeRequest(nullptr) {} + ~MoveOnGlobeRequest() override; + explicit PROTOBUF_CONSTEXPR MoveOnGlobeRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline StopPlanRequest(const StopPlanRequest& from) - : StopPlanRequest(nullptr, from) {} - StopPlanRequest(StopPlanRequest&& from) noexcept - : StopPlanRequest() { + MoveOnGlobeRequest(const MoveOnGlobeRequest& from); + MoveOnGlobeRequest(MoveOnGlobeRequest&& from) noexcept + : MoveOnGlobeRequest() { *this = ::std::move(from); } - inline StopPlanRequest& operator=(const StopPlanRequest& from) { + inline MoveOnGlobeRequest& operator=(const MoveOnGlobeRequest& from) { CopyFrom(from); return *this; } - inline StopPlanRequest& operator=(StopPlanRequest&& from) noexcept { + inline MoveOnGlobeRequest& operator=(MoveOnGlobeRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1479,213 +1450,301 @@ class StopPlanRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const StopPlanRequest& default_instance() { + static const MoveOnGlobeRequest& default_instance() { return *internal_default_instance(); } - static inline const StopPlanRequest* internal_default_instance() { - return reinterpret_cast( - &_StopPlanRequest_default_instance_); + static inline const MoveOnGlobeRequest* internal_default_instance() { + return reinterpret_cast( + &_MoveOnGlobeRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 10; + 6; - friend void swap(StopPlanRequest& a, StopPlanRequest& b) { + friend void swap(MoveOnGlobeRequest& a, MoveOnGlobeRequest& b) { a.Swap(&b); } - inline void Swap(StopPlanRequest* other) { + inline void Swap(MoveOnGlobeRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(StopPlanRequest* other) { + void UnsafeArenaSwap(MoveOnGlobeRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - StopPlanRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const StopPlanRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const StopPlanRequest& from) { - StopPlanRequest::MergeImpl(*this, from); + MoveOnGlobeRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MoveOnGlobeRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MoveOnGlobeRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(StopPlanRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(MoveOnGlobeRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.motion.v1.StopPlanRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.motion.v1.MoveOnGlobeRequest"; } protected: - explicit StopPlanRequest(::google::protobuf::Arena* arena); - StopPlanRequest(::google::protobuf::Arena* arena, const StopPlanRequest& from); + explicit MoveOnGlobeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { + kObstaclesFieldNumber = 6, + kBoundingRegionsFieldNumber = 8, kNameFieldNumber = 1, - kComponentNameFieldNumber = 2, + kDestinationFieldNumber = 2, + kComponentNameFieldNumber = 4, + kMovementSensorNameFieldNumber = 5, + kMotionConfigurationFieldNumber = 7, kExtraFieldNumber = 99, + kHeadingFieldNumber = 3, }; + // repeated .viam.common.v1.GeoGeometry obstacles = 6 [json_name = "obstacles"]; + int obstacles_size() const; + private: + int _internal_obstacles_size() const; + public: + void clear_obstacles(); + ::viam::common::v1::GeoGeometry* mutable_obstacles(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::GeoGeometry >* + mutable_obstacles(); + private: + const ::viam::common::v1::GeoGeometry& _internal_obstacles(int index) const; + ::viam::common::v1::GeoGeometry* _internal_add_obstacles(); + public: + const ::viam::common::v1::GeoGeometry& obstacles(int index) const; + ::viam::common::v1::GeoGeometry* add_obstacles(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::GeoGeometry >& + obstacles() const; + + // repeated .viam.common.v1.GeoGeometry bounding_regions = 8 [json_name = "boundingRegions"]; + int bounding_regions_size() const; + private: + int _internal_bounding_regions_size() const; + public: + void clear_bounding_regions(); + ::viam::common::v1::GeoGeometry* mutable_bounding_regions(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::GeoGeometry >* + mutable_bounding_regions(); + private: + const ::viam::common::v1::GeoGeometry& _internal_bounding_regions(int index) const; + ::viam::common::v1::GeoGeometry* _internal_add_bounding_regions(); + public: + const ::viam::common::v1::GeoGeometry& bounding_regions(int index) const; + ::viam::common::v1::GeoGeometry* add_bounding_regions(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::GeoGeometry >& + bounding_regions() const; + // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); std::string* _internal_mutable_name(); + public: + // .viam.common.v1.GeoPoint destination = 2 [json_name = "destination"]; + bool has_destination() const; + private: + bool _internal_has_destination() const; public: - // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; + void clear_destination(); + const ::viam::common::v1::GeoPoint& destination() const; + PROTOBUF_NODISCARD ::viam::common::v1::GeoPoint* release_destination(); + ::viam::common::v1::GeoPoint* mutable_destination(); + void set_allocated_destination(::viam::common::v1::GeoPoint* destination); + private: + const ::viam::common::v1::GeoPoint& _internal_destination() const; + ::viam::common::v1::GeoPoint* _internal_mutable_destination(); + public: + void unsafe_arena_set_allocated_destination( + ::viam::common::v1::GeoPoint* destination); + ::viam::common::v1::GeoPoint* unsafe_arena_release_destination(); + + // .viam.common.v1.ResourceName component_name = 4 [json_name = "componentName"]; bool has_component_name() const; - void clear_component_name() ; + private: + bool _internal_has_component_name() const; + public: + void clear_component_name(); const ::viam::common::v1::ResourceName& component_name() const; PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_component_name(); ::viam::common::v1::ResourceName* mutable_component_name(); - void set_allocated_component_name(::viam::common::v1::ResourceName* value); - void unsafe_arena_set_allocated_component_name(::viam::common::v1::ResourceName* value); - ::viam::common::v1::ResourceName* unsafe_arena_release_component_name(); - + void set_allocated_component_name(::viam::common::v1::ResourceName* component_name); private: const ::viam::common::v1::ResourceName& _internal_component_name() const; ::viam::common::v1::ResourceName* _internal_mutable_component_name(); + public: + void unsafe_arena_set_allocated_component_name( + ::viam::common::v1::ResourceName* component_name); + ::viam::common::v1::ResourceName* unsafe_arena_release_component_name(); + // .viam.common.v1.ResourceName movement_sensor_name = 5 [json_name = "movementSensorName"]; + bool has_movement_sensor_name() const; + private: + bool _internal_has_movement_sensor_name() const; + public: + void clear_movement_sensor_name(); + const ::viam::common::v1::ResourceName& movement_sensor_name() const; + PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_movement_sensor_name(); + ::viam::common::v1::ResourceName* mutable_movement_sensor_name(); + void set_allocated_movement_sensor_name(::viam::common::v1::ResourceName* movement_sensor_name); + private: + const ::viam::common::v1::ResourceName& _internal_movement_sensor_name() const; + ::viam::common::v1::ResourceName* _internal_mutable_movement_sensor_name(); + public: + void unsafe_arena_set_allocated_movement_sensor_name( + ::viam::common::v1::ResourceName* movement_sensor_name); + ::viam::common::v1::ResourceName* unsafe_arena_release_movement_sensor_name(); + + // optional .viam.service.motion.v1.MotionConfiguration motion_configuration = 7 [json_name = "motionConfiguration"]; + bool has_motion_configuration() const; + private: + bool _internal_has_motion_configuration() const; + public: + void clear_motion_configuration(); + const ::viam::service::motion::v1::MotionConfiguration& motion_configuration() const; + PROTOBUF_NODISCARD ::viam::service::motion::v1::MotionConfiguration* release_motion_configuration(); + ::viam::service::motion::v1::MotionConfiguration* mutable_motion_configuration(); + void set_allocated_motion_configuration(::viam::service::motion::v1::MotionConfiguration* motion_configuration); + private: + const ::viam::service::motion::v1::MotionConfiguration& _internal_motion_configuration() const; + ::viam::service::motion::v1::MotionConfiguration* _internal_mutable_motion_configuration(); public: + void unsafe_arena_set_allocated_motion_configuration( + ::viam::service::motion::v1::MotionConfiguration* motion_configuration); + ::viam::service::motion::v1::MotionConfiguration* unsafe_arena_release_motion_configuration(); + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); + 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(); + // optional double heading = 3 [json_name = "heading"]; + bool has_heading() const; + private: + bool _internal_has_heading() const; public: - // @@protoc_insertion_point(class_scope:viam.service.motion.v1.StopPlanRequest) + void clear_heading(); + double heading() const; + void set_heading(double value); + private: + double _internal_heading() const; + void _internal_set_heading(double value); + public: + + // @@protoc_insertion_point(class_scope:viam.service.motion.v1.MoveOnGlobeRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 2, - 51, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::viam::common::v1::ResourceName* component_name_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + 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::GeoGeometry > obstacles_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::GeoGeometry > bounding_regions_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::viam::common::v1::GeoPoint* destination_; + ::viam::common::v1::ResourceName* component_name_; + ::viam::common::v1::ResourceName* movement_sensor_name_; + ::viam::service::motion::v1::MotionConfiguration* motion_configuration_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + double heading_; friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class PlanStatus final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.PlanStatus) */ { +class MoveOnGlobeResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.MoveOnGlobeResponse) */ { public: - inline PlanStatus() : PlanStatus(nullptr) {} - ~PlanStatus() override; - template - explicit PROTOBUF_CONSTEXPR PlanStatus(::google::protobuf::internal::ConstantInitialized); + inline MoveOnGlobeResponse() : MoveOnGlobeResponse(nullptr) {} + ~MoveOnGlobeResponse() override; + explicit PROTOBUF_CONSTEXPR MoveOnGlobeResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline PlanStatus(const PlanStatus& from) - : PlanStatus(nullptr, from) {} - PlanStatus(PlanStatus&& from) noexcept - : PlanStatus() { + MoveOnGlobeResponse(const MoveOnGlobeResponse& from); + MoveOnGlobeResponse(MoveOnGlobeResponse&& from) noexcept + : MoveOnGlobeResponse() { *this = ::std::move(from); } - inline PlanStatus& operator=(const PlanStatus& from) { + inline MoveOnGlobeResponse& operator=(const MoveOnGlobeResponse& from) { CopyFrom(from); return *this; } - inline PlanStatus& operator=(PlanStatus&& from) noexcept { + inline MoveOnGlobeResponse& operator=(MoveOnGlobeResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1695,209 +1754,145 @@ class PlanStatus final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const PlanStatus& default_instance() { + static const MoveOnGlobeResponse& default_instance() { return *internal_default_instance(); } - static inline const PlanStatus* internal_default_instance() { - return reinterpret_cast( - &_PlanStatus_default_instance_); + static inline const MoveOnGlobeResponse* internal_default_instance() { + return reinterpret_cast( + &_MoveOnGlobeResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 23; + 7; - friend void swap(PlanStatus& a, PlanStatus& b) { + friend void swap(MoveOnGlobeResponse& a, MoveOnGlobeResponse& b) { a.Swap(&b); } - inline void Swap(PlanStatus* other) { + inline void Swap(MoveOnGlobeResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(PlanStatus* other) { + void UnsafeArenaSwap(MoveOnGlobeResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - PlanStatus* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const PlanStatus& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const PlanStatus& from) { - PlanStatus::MergeImpl(*this, from); + MoveOnGlobeResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MoveOnGlobeResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MoveOnGlobeResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(PlanStatus* other); + void SetCachedSize(int size) const final; + void InternalSwap(MoveOnGlobeResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.motion.v1.PlanStatus"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.motion.v1.MoveOnGlobeResponse"; } protected: - explicit PlanStatus(::google::protobuf::Arena* arena); - PlanStatus(::google::protobuf::Arena* arena, const PlanStatus& from); + explicit MoveOnGlobeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kReasonFieldNumber = 3, - kTimestampFieldNumber = 2, - kStateFieldNumber = 1, + kExecutionIdFieldNumber = 1, }; - // optional string reason = 3 [json_name = "reason"]; - bool has_reason() const; - void clear_reason() ; - const std::string& reason() const; - template - void set_reason(Arg_&& arg, Args_... args); - std::string* mutable_reason(); - PROTOBUF_NODISCARD std::string* release_reason(); - void set_allocated_reason(std::string* value); - - private: - const std::string& _internal_reason() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_reason( - const std::string& value); - std::string* _internal_mutable_reason(); - - public: - // .google.protobuf.Timestamp timestamp = 2 [json_name = "timestamp"]; - bool has_timestamp() const; - void clear_timestamp() ; - const ::google::protobuf::Timestamp& timestamp() const; - PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_timestamp(); - ::google::protobuf::Timestamp* mutable_timestamp(); - void set_allocated_timestamp(::google::protobuf::Timestamp* value); - void unsafe_arena_set_allocated_timestamp(::google::protobuf::Timestamp* value); - ::google::protobuf::Timestamp* unsafe_arena_release_timestamp(); - + // string execution_id = 1 [json_name = "executionId"]; + void clear_execution_id(); + const std::string& execution_id() const; + template + void set_execution_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_execution_id(); + PROTOBUF_NODISCARD std::string* release_execution_id(); + void set_allocated_execution_id(std::string* execution_id); private: - const ::google::protobuf::Timestamp& _internal_timestamp() const; - ::google::protobuf::Timestamp* _internal_mutable_timestamp(); - + const std::string& _internal_execution_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_execution_id(const std::string& value); + std::string* _internal_mutable_execution_id(); public: - // .viam.service.motion.v1.PlanState state = 1 [json_name = "state"]; - void clear_state() ; - ::viam::service::motion::v1::PlanState state() const; - void set_state(::viam::service::motion::v1::PlanState value); - private: - ::viam::service::motion::v1::PlanState _internal_state() const; - void _internal_set_state(::viam::service::motion::v1::PlanState value); - - public: - // @@protoc_insertion_point(class_scope:viam.service.motion.v1.PlanStatus) + // @@protoc_insertion_point(class_scope:viam.service.motion.v1.MoveOnGlobeResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 1, - 48, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr reason_; - ::google::protobuf::Timestamp* timestamp_; - int state_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr execution_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ObstacleDetector final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.ObstacleDetector) */ { +class GetPoseRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.GetPoseRequest) */ { public: - inline ObstacleDetector() : ObstacleDetector(nullptr) {} - ~ObstacleDetector() override; - template - explicit PROTOBUF_CONSTEXPR ObstacleDetector(::google::protobuf::internal::ConstantInitialized); + inline GetPoseRequest() : GetPoseRequest(nullptr) {} + ~GetPoseRequest() override; + explicit PROTOBUF_CONSTEXPR GetPoseRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ObstacleDetector(const ObstacleDetector& from) - : ObstacleDetector(nullptr, from) {} - ObstacleDetector(ObstacleDetector&& from) noexcept - : ObstacleDetector() { + GetPoseRequest(const GetPoseRequest& from); + GetPoseRequest(GetPoseRequest&& from) noexcept + : GetPoseRequest() { *this = ::std::move(from); } - inline ObstacleDetector& operator=(const ObstacleDetector& from) { + inline GetPoseRequest& operator=(const GetPoseRequest& from) { CopyFrom(from); return *this; } - inline ObstacleDetector& operator=(ObstacleDetector&& from) noexcept { + inline GetPoseRequest& operator=(GetPoseRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1907,195 +1902,221 @@ class ObstacleDetector final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ObstacleDetector& default_instance() { + static const GetPoseRequest& default_instance() { return *internal_default_instance(); } - static inline const ObstacleDetector* internal_default_instance() { - return reinterpret_cast( - &_ObstacleDetector_default_instance_); + static inline const GetPoseRequest* internal_default_instance() { + return reinterpret_cast( + &_GetPoseRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 4; + 8; - friend void swap(ObstacleDetector& a, ObstacleDetector& b) { + friend void swap(GetPoseRequest& a, GetPoseRequest& b) { a.Swap(&b); } - inline void Swap(ObstacleDetector* other) { + inline void Swap(GetPoseRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ObstacleDetector* other) { + void UnsafeArenaSwap(GetPoseRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ObstacleDetector* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ObstacleDetector& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ObstacleDetector& from) { - ObstacleDetector::MergeImpl(*this, from); + GetPoseRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPoseRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetPoseRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ObstacleDetector* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetPoseRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.motion.v1.ObstacleDetector"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.motion.v1.GetPoseRequest"; } protected: - explicit ObstacleDetector(::google::protobuf::Arena* arena); - ObstacleDetector(::google::protobuf::Arena* arena, const ObstacleDetector& from); + explicit GetPoseRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kVisionServiceFieldNumber = 1, - kCameraFieldNumber = 2, + kSupplementalTransformsFieldNumber = 4, + kNameFieldNumber = 1, + kDestinationFrameFieldNumber = 3, + kComponentNameFieldNumber = 2, + kExtraFieldNumber = 99, }; - // .viam.common.v1.ResourceName vision_service = 1 [json_name = "visionService"]; - bool has_vision_service() const; - 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* value); - void unsafe_arena_set_allocated_vision_service(::viam::common::v1::ResourceName* value); - ::viam::common::v1::ResourceName* unsafe_arena_release_vision_service(); + // repeated .viam.common.v1.Transform supplemental_transforms = 4 [json_name = "supplementalTransforms"]; + int supplemental_transforms_size() const; + private: + int _internal_supplemental_transforms_size() const; + public: + void clear_supplemental_transforms(); + ::viam::common::v1::Transform* mutable_supplemental_transforms(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Transform >* + mutable_supplemental_transforms(); + private: + const ::viam::common::v1::Transform& _internal_supplemental_transforms(int index) const; + ::viam::common::v1::Transform* _internal_add_supplemental_transforms(); + public: + const ::viam::common::v1::Transform& supplemental_transforms(int index) const; + ::viam::common::v1::Transform* add_supplemental_transforms(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Transform >& + supplemental_transforms() const; + // 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 ::viam::common::v1::ResourceName& _internal_vision_service() const; - ::viam::common::v1::ResourceName* _internal_mutable_vision_service(); + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + // string destination_frame = 3 [json_name = "destinationFrame"]; + void clear_destination_frame(); + const std::string& destination_frame() const; + template + void set_destination_frame(ArgT0&& arg0, ArgT... args); + std::string* mutable_destination_frame(); + PROTOBUF_NODISCARD std::string* release_destination_frame(); + void set_allocated_destination_frame(std::string* destination_frame); + private: + const std::string& _internal_destination_frame() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_destination_frame(const std::string& value); + std::string* _internal_mutable_destination_frame(); public: - // .viam.common.v1.ResourceName camera = 2 [json_name = "camera"]; - bool has_camera() const; - 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* value); - void unsafe_arena_set_allocated_camera(::viam::common::v1::ResourceName* value); - ::viam::common::v1::ResourceName* unsafe_arena_release_camera(); + // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; + bool has_component_name() const; private: - const ::viam::common::v1::ResourceName& _internal_camera() const; - ::viam::common::v1::ResourceName* _internal_mutable_camera(); + bool _internal_has_component_name() const; + public: + void clear_component_name(); + const ::viam::common::v1::ResourceName& component_name() const; + PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_component_name(); + ::viam::common::v1::ResourceName* mutable_component_name(); + void set_allocated_component_name(::viam::common::v1::ResourceName* component_name); + private: + const ::viam::common::v1::ResourceName& _internal_component_name() const; + ::viam::common::v1::ResourceName* _internal_mutable_component_name(); + public: + void unsafe_arena_set_allocated_component_name( + ::viam::common::v1::ResourceName* component_name); + ::viam::common::v1::ResourceName* unsafe_arena_release_component_name(); + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + bool has_extra() const; + private: + bool _internal_has_extra() const; public: - // @@protoc_insertion_point(class_scope:viam.service.motion.v1.ObstacleDetector) + 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.service.motion.v1.GetPoseRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 2, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::viam::common::v1::ResourceName* vision_service_; - ::viam::common::v1::ResourceName* camera_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Transform > supplemental_transforms_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr destination_frame_; + ::viam::common::v1::ResourceName* component_name_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ListPlanStatusesRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.ListPlanStatusesRequest) */ { +class GetPoseResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.GetPoseResponse) */ { public: - inline ListPlanStatusesRequest() : ListPlanStatusesRequest(nullptr) {} - ~ListPlanStatusesRequest() override; - template - explicit PROTOBUF_CONSTEXPR ListPlanStatusesRequest(::google::protobuf::internal::ConstantInitialized); + inline GetPoseResponse() : GetPoseResponse(nullptr) {} + ~GetPoseResponse() override; + explicit PROTOBUF_CONSTEXPR GetPoseResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ListPlanStatusesRequest(const ListPlanStatusesRequest& from) - : ListPlanStatusesRequest(nullptr, from) {} - ListPlanStatusesRequest(ListPlanStatusesRequest&& from) noexcept - : ListPlanStatusesRequest() { + GetPoseResponse(const GetPoseResponse& from); + GetPoseResponse(GetPoseResponse&& from) noexcept + : GetPoseResponse() { *this = ::std::move(from); } - inline ListPlanStatusesRequest& operator=(const ListPlanStatusesRequest& from) { + inline GetPoseResponse& operator=(const GetPoseResponse& from) { CopyFrom(from); return *this; } - inline ListPlanStatusesRequest& operator=(ListPlanStatusesRequest&& from) noexcept { + inline GetPoseResponse& operator=(GetPoseResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2105,208 +2126,149 @@ class ListPlanStatusesRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ListPlanStatusesRequest& default_instance() { + static const GetPoseResponse& default_instance() { return *internal_default_instance(); } - static inline const ListPlanStatusesRequest* internal_default_instance() { - return reinterpret_cast( - &_ListPlanStatusesRequest_default_instance_); + static inline const GetPoseResponse* internal_default_instance() { + return reinterpret_cast( + &_GetPoseResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 12; + 9; - friend void swap(ListPlanStatusesRequest& a, ListPlanStatusesRequest& b) { + friend void swap(GetPoseResponse& a, GetPoseResponse& b) { a.Swap(&b); } - inline void Swap(ListPlanStatusesRequest* other) { + inline void Swap(GetPoseResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ListPlanStatusesRequest* other) { + void UnsafeArenaSwap(GetPoseResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ListPlanStatusesRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ListPlanStatusesRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ListPlanStatusesRequest& from) { - ListPlanStatusesRequest::MergeImpl(*this, from); + GetPoseResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPoseResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetPoseResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ListPlanStatusesRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetPoseResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.motion.v1.ListPlanStatusesRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.motion.v1.GetPoseResponse"; } protected: - explicit ListPlanStatusesRequest(::google::protobuf::Arena* arena); - ListPlanStatusesRequest(::google::protobuf::Arena* arena, const ListPlanStatusesRequest& from); + explicit GetPoseResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kNameFieldNumber = 1, - kExtraFieldNumber = 99, - kOnlyActivePlansFieldNumber = 2, + kPoseFieldNumber = 1, }; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + // .viam.common.v1.PoseInFrame pose = 1 [json_name = "pose"]; + bool has_pose() const; private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - + bool _internal_has_pose() const; public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - + void clear_pose(); + const ::viam::common::v1::PoseInFrame& pose() const; + PROTOBUF_NODISCARD ::viam::common::v1::PoseInFrame* release_pose(); + ::viam::common::v1::PoseInFrame* mutable_pose(); + void set_allocated_pose(::viam::common::v1::PoseInFrame* pose); private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - + const ::viam::common::v1::PoseInFrame& _internal_pose() const; + ::viam::common::v1::PoseInFrame* _internal_mutable_pose(); public: - // bool only_active_plans = 2 [json_name = "onlyActivePlans"]; - void clear_only_active_plans() ; - bool only_active_plans() const; - void set_only_active_plans(bool value); - - private: - bool _internal_only_active_plans() const; - void _internal_set_only_active_plans(bool value); + void unsafe_arena_set_allocated_pose( + ::viam::common::v1::PoseInFrame* pose); + ::viam::common::v1::PoseInFrame* unsafe_arena_release_pose(); - public: - // @@protoc_insertion_point(class_scope:viam.service.motion.v1.ListPlanStatusesRequest) + // @@protoc_insertion_point(class_scope:viam.service.motion.v1.GetPoseResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 1, - 59, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - bool only_active_plans_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::viam::common::v1::PoseInFrame* pose_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetPlanRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.GetPlanRequest) */ { +class StopPlanRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.StopPlanRequest) */ { public: - inline GetPlanRequest() : GetPlanRequest(nullptr) {} - ~GetPlanRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetPlanRequest(::google::protobuf::internal::ConstantInitialized); + inline StopPlanRequest() : StopPlanRequest(nullptr) {} + ~StopPlanRequest() override; + explicit PROTOBUF_CONSTEXPR StopPlanRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetPlanRequest(const GetPlanRequest& from) - : GetPlanRequest(nullptr, from) {} - GetPlanRequest(GetPlanRequest&& from) noexcept - : GetPlanRequest() { + StopPlanRequest(const StopPlanRequest& from); + StopPlanRequest(StopPlanRequest&& from) noexcept + : StopPlanRequest() { *this = ::std::move(from); } - inline GetPlanRequest& operator=(const GetPlanRequest& from) { + inline StopPlanRequest& operator=(const StopPlanRequest& from) { CopyFrom(from); return *this; } - inline GetPlanRequest& operator=(GetPlanRequest&& from) noexcept { + inline StopPlanRequest& operator=(StopPlanRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2316,99 +2278,88 @@ class GetPlanRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetPlanRequest& default_instance() { + static const StopPlanRequest& default_instance() { return *internal_default_instance(); } - static inline const GetPlanRequest* internal_default_instance() { - return reinterpret_cast( - &_GetPlanRequest_default_instance_); + static inline const StopPlanRequest* internal_default_instance() { + return reinterpret_cast( + &_StopPlanRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 14; + 10; - friend void swap(GetPlanRequest& a, GetPlanRequest& b) { + friend void swap(StopPlanRequest& a, StopPlanRequest& b) { a.Swap(&b); } - inline void Swap(GetPlanRequest* other) { + inline void Swap(StopPlanRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetPlanRequest* other) { + void UnsafeArenaSwap(StopPlanRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetPlanRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetPlanRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetPlanRequest& from) { - GetPlanRequest::MergeImpl(*this, from); + StopPlanRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const StopPlanRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const StopPlanRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetPlanRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(StopPlanRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.motion.v1.GetPlanRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.motion.v1.StopPlanRequest"; } protected: - explicit GetPlanRequest(::google::protobuf::Arena* arena); - GetPlanRequest(::google::protobuf::Arena* arena, const GetPlanRequest& from); + explicit StopPlanRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -2416,144 +2367,95 @@ class GetPlanRequest final : enum : int { kNameFieldNumber = 1, - kExecutionIdFieldNumber = 4, kComponentNameFieldNumber = 2, kExtraFieldNumber = 99, - kLastPlanOnlyFieldNumber = 3, }; // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); std::string* _internal_mutable_name(); - public: - // optional string execution_id = 4 [json_name = "executionId"]; - bool has_execution_id() const; - void clear_execution_id() ; - const std::string& execution_id() const; - template - void set_execution_id(Arg_&& arg, Args_... args); - std::string* mutable_execution_id(); - PROTOBUF_NODISCARD std::string* release_execution_id(); - void set_allocated_execution_id(std::string* value); - - private: - const std::string& _internal_execution_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_execution_id( - const std::string& value); - std::string* _internal_mutable_execution_id(); - public: // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; bool has_component_name() const; - void clear_component_name() ; + private: + bool _internal_has_component_name() const; + public: + void clear_component_name(); const ::viam::common::v1::ResourceName& component_name() const; PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_component_name(); ::viam::common::v1::ResourceName* mutable_component_name(); - void set_allocated_component_name(::viam::common::v1::ResourceName* value); - void unsafe_arena_set_allocated_component_name(::viam::common::v1::ResourceName* value); - ::viam::common::v1::ResourceName* unsafe_arena_release_component_name(); - + void set_allocated_component_name(::viam::common::v1::ResourceName* component_name); private: const ::viam::common::v1::ResourceName& _internal_component_name() const; ::viam::common::v1::ResourceName* _internal_mutable_component_name(); - public: + void unsafe_arena_set_allocated_component_name( + ::viam::common::v1::ResourceName* component_name); + ::viam::common::v1::ResourceName* unsafe_arena_release_component_name(); + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - + bool _internal_has_extra() const; public: - // bool last_plan_only = 3 [json_name = "lastPlanOnly"]; - void clear_last_plan_only() ; - bool last_plan_only() const; - void set_last_plan_only(bool value); - + 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: - bool _internal_last_plan_only() const; - void _internal_set_last_plan_only(bool value); - + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_extra() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_extra(); public: - // @@protoc_insertion_point(class_scope:viam.service.motion.v1.GetPlanRequest) + 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.service.motion.v1.StopPlanRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 5, 2, - 62, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr execution_id_; - ::viam::common::v1::ResourceName* component_name_; - ::google::protobuf::Struct* extra_; - bool last_plan_only_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::viam::common::v1::ResourceName* component_name_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ComponentState final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.ComponentState) */ { +class StopPlanResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.StopPlanResponse) */ { public: - inline ComponentState() : ComponentState(nullptr) {} - ~ComponentState() override; - template - explicit PROTOBUF_CONSTEXPR ComponentState(::google::protobuf::internal::ConstantInitialized); + inline StopPlanResponse() : StopPlanResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR StopPlanResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ComponentState(const ComponentState& from) - : ComponentState(nullptr, from) {} - ComponentState(ComponentState&& from) noexcept - : ComponentState() { + StopPlanResponse(const StopPlanResponse& from); + StopPlanResponse(StopPlanResponse&& from) noexcept + : StopPlanResponse() { *this = ::std::move(from); } - inline ComponentState& operator=(const ComponentState& from) { + inline StopPlanResponse& operator=(const StopPlanResponse& from) { CopyFrom(from); return *this; } - inline ComponentState& operator=(ComponentState&& from) noexcept { + inline StopPlanResponse& operator=(StopPlanResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2563,178 +2465,114 @@ class ComponentState final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ComponentState& default_instance() { + static const StopPlanResponse& default_instance() { return *internal_default_instance(); } - static inline const ComponentState* internal_default_instance() { - return reinterpret_cast( - &_ComponentState_default_instance_); + static inline const StopPlanResponse* internal_default_instance() { + return reinterpret_cast( + &_StopPlanResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 27; + 11; - friend void swap(ComponentState& a, ComponentState& b) { + friend void swap(StopPlanResponse& a, StopPlanResponse& b) { a.Swap(&b); } - inline void Swap(ComponentState* other) { + inline void Swap(StopPlanResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ComponentState* other) { + void UnsafeArenaSwap(StopPlanResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ComponentState* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + StopPlanResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ComponentState& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ComponentState& from) { - ComponentState::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const StopPlanResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const StopPlanResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(ComponentState* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.motion.v1.ComponentState"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.motion.v1.StopPlanResponse"; } protected: - explicit ComponentState(::google::protobuf::Arena* arena); - ComponentState(::google::protobuf::Arena* arena, const ComponentState& from); + explicit StopPlanResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kPoseFieldNumber = 1, - }; - // .viam.common.v1.Pose pose = 1 [json_name = "pose"]; - bool has_pose() const; - void clear_pose() ; - const ::viam::common::v1::Pose& pose() const; - PROTOBUF_NODISCARD ::viam::common::v1::Pose* release_pose(); - ::viam::common::v1::Pose* mutable_pose(); - void set_allocated_pose(::viam::common::v1::Pose* value); - void unsafe_arena_set_allocated_pose(::viam::common::v1::Pose* value); - ::viam::common::v1::Pose* unsafe_arena_release_pose(); - - private: - const ::viam::common::v1::Pose& _internal_pose() const; - ::viam::common::v1::Pose* _internal_mutable_pose(); - - public: - // @@protoc_insertion_point(class_scope:viam.service.motion.v1.ComponentState) + // @@protoc_insertion_point(class_scope:viam.service.motion.v1.StopPlanResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::viam::common::v1::Pose* pose_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class CollisionSpecification final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.CollisionSpecification) */ { +class ListPlanStatusesRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.ListPlanStatusesRequest) */ { public: - inline CollisionSpecification() : CollisionSpecification(nullptr) {} - ~CollisionSpecification() override; - template - explicit PROTOBUF_CONSTEXPR CollisionSpecification(::google::protobuf::internal::ConstantInitialized); + inline ListPlanStatusesRequest() : ListPlanStatusesRequest(nullptr) {} + ~ListPlanStatusesRequest() override; + explicit PROTOBUF_CONSTEXPR ListPlanStatusesRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline CollisionSpecification(const CollisionSpecification& from) - : CollisionSpecification(nullptr, from) {} - CollisionSpecification(CollisionSpecification&& from) noexcept - : CollisionSpecification() { + ListPlanStatusesRequest(const ListPlanStatusesRequest& from); + ListPlanStatusesRequest(ListPlanStatusesRequest&& from) noexcept + : ListPlanStatusesRequest() { *this = ::std::move(from); } - inline CollisionSpecification& operator=(const CollisionSpecification& from) { + inline ListPlanStatusesRequest& operator=(const ListPlanStatusesRequest& from) { CopyFrom(from); return *this; } - inline CollisionSpecification& operator=(CollisionSpecification&& from) noexcept { + inline ListPlanStatusesRequest& operator=(ListPlanStatusesRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2744,210 +2582,176 @@ class CollisionSpecification final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CollisionSpecification& default_instance() { + static const ListPlanStatusesRequest& default_instance() { return *internal_default_instance(); } - static inline const CollisionSpecification* internal_default_instance() { - return reinterpret_cast( - &_CollisionSpecification_default_instance_); + static inline const ListPlanStatusesRequest* internal_default_instance() { + return reinterpret_cast( + &_ListPlanStatusesRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 20; + 12; - friend void swap(CollisionSpecification& a, CollisionSpecification& b) { + friend void swap(ListPlanStatusesRequest& a, ListPlanStatusesRequest& b) { a.Swap(&b); } - inline void Swap(CollisionSpecification* other) { + inline void Swap(ListPlanStatusesRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CollisionSpecification* other) { + void UnsafeArenaSwap(ListPlanStatusesRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CollisionSpecification* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const CollisionSpecification& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CollisionSpecification& from) { - CollisionSpecification::MergeImpl(*this, from); + ListPlanStatusesRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ListPlanStatusesRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ListPlanStatusesRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(CollisionSpecification* other); + void SetCachedSize(int size) const final; + void InternalSwap(ListPlanStatusesRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.motion.v1.CollisionSpecification"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.motion.v1.ListPlanStatusesRequest"; } protected: - explicit CollisionSpecification(::google::protobuf::Arena* arena); - CollisionSpecification(::google::protobuf::Arena* arena, const CollisionSpecification& from); + explicit ListPlanStatusesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- - using AllowedFrameCollisions = CollisionSpecification_AllowedFrameCollisions; - // accessors ------------------------------------------------------- enum : int { - kAllowsFieldNumber = 1, + kNameFieldNumber = 1, + kExtraFieldNumber = 99, + kOnlyActivePlansFieldNumber = 2, }; - // repeated .viam.service.motion.v1.CollisionSpecification.AllowedFrameCollisions allows = 1 [json_name = "allows"]; - int allows_size() const; + // 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: - int _internal_allows_size() const; + 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_allows() ; - ::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions* mutable_allows(int index); - ::google::protobuf::RepeatedPtrField< ::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions >* - mutable_allows(); + 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 ::google::protobuf::RepeatedPtrField<::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions>& _internal_allows() const; - ::google::protobuf::RepeatedPtrField<::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions>* _internal_mutable_allows(); + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_extra() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_extra(); public: - const ::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions& allows(int index) const; - ::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions* add_allows(); - const ::google::protobuf::RepeatedPtrField< ::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions >& - allows() const; - // @@protoc_insertion_point(class_scope:viam.service.motion.v1.CollisionSpecification) + void unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_extra(); + + // bool only_active_plans = 2 [json_name = "onlyActivePlans"]; + void clear_only_active_plans(); + bool only_active_plans() const; + void set_only_active_plans(bool value); + private: + bool _internal_only_active_plans() const; + void _internal_set_only_active_plans(bool value); + public: + + // @@protoc_insertion_point(class_scope:viam.service.motion.v1.ListPlanStatusesRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions > allows_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; -};// ------------------------------------------------------------------- - -class PlanStep_StepEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry< - PlanStep_StepEntry_DoNotUse, std::string, ::viam::service::motion::v1::ComponentState, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE> { - public: - using SuperType = ::google::protobuf::internal::MapEntry< - PlanStep_StepEntry_DoNotUse, std::string, ::viam::service::motion::v1::ComponentState, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>; - PlanStep_StepEntry_DoNotUse(); - template - explicit PROTOBUF_CONSTEXPR PlanStep_StepEntry_DoNotUse( - ::google::protobuf::internal::ConstantInitialized); - explicit PlanStep_StepEntry_DoNotUse(::google::protobuf::Arena* arena); - static const PlanStep_StepEntry_DoNotUse* internal_default_instance() { - return reinterpret_cast( - &_PlanStep_StepEntry_DoNotUse_default_instance_); - } - static bool ValidateKey(std::string* s) { - return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "viam.service.motion.v1.PlanStep.StepEntry.key"); - } - static bool ValidateValue(void*) { return true; } - ::google::protobuf::Metadata GetMetadata() const final; + 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_; + bool only_active_plans_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; }; // ------------------------------------------------------------------- -class PlanStatusWithID final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.PlanStatusWithID) */ { +class ListPlanStatusesResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.ListPlanStatusesResponse) */ { public: - inline PlanStatusWithID() : PlanStatusWithID(nullptr) {} - ~PlanStatusWithID() override; - template - explicit PROTOBUF_CONSTEXPR PlanStatusWithID(::google::protobuf::internal::ConstantInitialized); + inline ListPlanStatusesResponse() : ListPlanStatusesResponse(nullptr) {} + ~ListPlanStatusesResponse() override; + explicit PROTOBUF_CONSTEXPR ListPlanStatusesResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline PlanStatusWithID(const PlanStatusWithID& from) - : PlanStatusWithID(nullptr, from) {} - PlanStatusWithID(PlanStatusWithID&& from) noexcept - : PlanStatusWithID() { + ListPlanStatusesResponse(const ListPlanStatusesResponse& from); + ListPlanStatusesResponse(ListPlanStatusesResponse&& from) noexcept + : ListPlanStatusesResponse() { *this = ::std::move(from); } - inline PlanStatusWithID& operator=(const PlanStatusWithID& from) { + inline ListPlanStatusesResponse& operator=(const ListPlanStatusesResponse& from) { CopyFrom(from); return *this; } - inline PlanStatusWithID& operator=(PlanStatusWithID&& from) noexcept { + inline ListPlanStatusesResponse& operator=(ListPlanStatusesResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2957,231 +2761,149 @@ class PlanStatusWithID final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const PlanStatusWithID& default_instance() { + static const ListPlanStatusesResponse& default_instance() { return *internal_default_instance(); } - static inline const PlanStatusWithID* internal_default_instance() { - return reinterpret_cast( - &_PlanStatusWithID_default_instance_); + static inline const ListPlanStatusesResponse* internal_default_instance() { + return reinterpret_cast( + &_ListPlanStatusesResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 22; + 13; - friend void swap(PlanStatusWithID& a, PlanStatusWithID& b) { + friend void swap(ListPlanStatusesResponse& a, ListPlanStatusesResponse& b) { a.Swap(&b); } - inline void Swap(PlanStatusWithID* other) { + inline void Swap(ListPlanStatusesResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(PlanStatusWithID* other) { + void UnsafeArenaSwap(ListPlanStatusesResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - PlanStatusWithID* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const PlanStatusWithID& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const PlanStatusWithID& from) { - PlanStatusWithID::MergeImpl(*this, from); + ListPlanStatusesResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ListPlanStatusesResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ListPlanStatusesResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(PlanStatusWithID* other); + void SetCachedSize(int size) const final; + void InternalSwap(ListPlanStatusesResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.motion.v1.PlanStatusWithID"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.motion.v1.ListPlanStatusesResponse"; } protected: - explicit PlanStatusWithID(::google::protobuf::Arena* arena); - PlanStatusWithID(::google::protobuf::Arena* arena, const PlanStatusWithID& from); + explicit ListPlanStatusesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kPlanIdFieldNumber = 1, - kExecutionIdFieldNumber = 3, - kComponentNameFieldNumber = 2, - kStatusFieldNumber = 4, + kPlanStatusesWithIdsFieldNumber = 1, }; - // string plan_id = 1 [json_name = "planId"]; - void clear_plan_id() ; - const std::string& plan_id() const; - template - void set_plan_id(Arg_&& arg, Args_... args); - std::string* mutable_plan_id(); - PROTOBUF_NODISCARD std::string* release_plan_id(); - void set_allocated_plan_id(std::string* value); - - private: - const std::string& _internal_plan_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_plan_id( - const std::string& value); - std::string* _internal_mutable_plan_id(); - - public: - // string execution_id = 3 [json_name = "executionId"]; - void clear_execution_id() ; - const std::string& execution_id() const; - template - void set_execution_id(Arg_&& arg, Args_... args); - std::string* mutable_execution_id(); - PROTOBUF_NODISCARD std::string* release_execution_id(); - void set_allocated_execution_id(std::string* value); - + // repeated .viam.service.motion.v1.PlanStatusWithID plan_statuses_with_ids = 1 [json_name = "planStatusesWithIds"]; + int plan_statuses_with_ids_size() const; private: - const std::string& _internal_execution_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_execution_id( - const std::string& value); - std::string* _internal_mutable_execution_id(); - + int _internal_plan_statuses_with_ids_size() const; public: - // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; - bool has_component_name() const; - void clear_component_name() ; - const ::viam::common::v1::ResourceName& component_name() const; - PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_component_name(); - ::viam::common::v1::ResourceName* mutable_component_name(); - void set_allocated_component_name(::viam::common::v1::ResourceName* value); - void unsafe_arena_set_allocated_component_name(::viam::common::v1::ResourceName* value); - ::viam::common::v1::ResourceName* unsafe_arena_release_component_name(); - + void clear_plan_statuses_with_ids(); + ::viam::service::motion::v1::PlanStatusWithID* mutable_plan_statuses_with_ids(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::PlanStatusWithID >* + mutable_plan_statuses_with_ids(); private: - const ::viam::common::v1::ResourceName& _internal_component_name() const; - ::viam::common::v1::ResourceName* _internal_mutable_component_name(); - + const ::viam::service::motion::v1::PlanStatusWithID& _internal_plan_statuses_with_ids(int index) const; + ::viam::service::motion::v1::PlanStatusWithID* _internal_add_plan_statuses_with_ids(); public: - // .viam.service.motion.v1.PlanStatus status = 4 [json_name = "status"]; - bool has_status() const; - void clear_status() ; - const ::viam::service::motion::v1::PlanStatus& status() const; - PROTOBUF_NODISCARD ::viam::service::motion::v1::PlanStatus* release_status(); - ::viam::service::motion::v1::PlanStatus* mutable_status(); - void set_allocated_status(::viam::service::motion::v1::PlanStatus* value); - void unsafe_arena_set_allocated_status(::viam::service::motion::v1::PlanStatus* value); - ::viam::service::motion::v1::PlanStatus* unsafe_arena_release_status(); - - private: - const ::viam::service::motion::v1::PlanStatus& _internal_status() const; - ::viam::service::motion::v1::PlanStatus* _internal_mutable_status(); + const ::viam::service::motion::v1::PlanStatusWithID& plan_statuses_with_ids(int index) const; + ::viam::service::motion::v1::PlanStatusWithID* add_plan_statuses_with_ids(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::PlanStatusWithID >& + plan_statuses_with_ids() const; - public: - // @@protoc_insertion_point(class_scope:viam.service.motion.v1.PlanStatusWithID) + // @@protoc_insertion_point(class_scope:viam.service.motion.v1.ListPlanStatusesResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 2, - 67, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr plan_id_; - ::google::protobuf::internal::ArenaStringPtr execution_id_; - ::viam::common::v1::ResourceName* component_name_; - ::viam::service::motion::v1::PlanStatus* status_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::PlanStatusWithID > plan_statuses_with_ids_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class MotionConfiguration final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.MotionConfiguration) */ { +class GetPlanRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.GetPlanRequest) */ { public: - inline MotionConfiguration() : MotionConfiguration(nullptr) {} - ~MotionConfiguration() override; - template - explicit PROTOBUF_CONSTEXPR MotionConfiguration(::google::protobuf::internal::ConstantInitialized); + inline GetPlanRequest() : GetPlanRequest(nullptr) {} + ~GetPlanRequest() override; + explicit PROTOBUF_CONSTEXPR GetPlanRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline MotionConfiguration(const MotionConfiguration& from) - : MotionConfiguration(nullptr, from) {} - MotionConfiguration(MotionConfiguration&& from) noexcept - : MotionConfiguration() { + GetPlanRequest(const GetPlanRequest& from); + GetPlanRequest(GetPlanRequest&& from) noexcept + : GetPlanRequest() { *this = ::std::move(from); } - inline MotionConfiguration& operator=(const MotionConfiguration& from) { + inline GetPlanRequest& operator=(const GetPlanRequest& from) { CopyFrom(from); return *this; } - inline MotionConfiguration& operator=(MotionConfiguration&& from) noexcept { + inline GetPlanRequest& operator=(GetPlanRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3191,246 +2913,217 @@ class MotionConfiguration final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MotionConfiguration& default_instance() { + static const GetPlanRequest& default_instance() { return *internal_default_instance(); } - static inline const MotionConfiguration* internal_default_instance() { - return reinterpret_cast( - &_MotionConfiguration_default_instance_); + static inline const GetPlanRequest* internal_default_instance() { + return reinterpret_cast( + &_GetPlanRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 5; + 14; - friend void swap(MotionConfiguration& a, MotionConfiguration& b) { + friend void swap(GetPlanRequest& a, GetPlanRequest& b) { a.Swap(&b); } - inline void Swap(MotionConfiguration* other) { + inline void Swap(GetPlanRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MotionConfiguration* other) { + void UnsafeArenaSwap(GetPlanRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MotionConfiguration* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const MotionConfiguration& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const MotionConfiguration& from) { - MotionConfiguration::MergeImpl(*this, from); + GetPlanRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPlanRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetPlanRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(MotionConfiguration* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetPlanRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.motion.v1.MotionConfiguration"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.motion.v1.GetPlanRequest"; } protected: - explicit MotionConfiguration(::google::protobuf::Arena* arena); - MotionConfiguration(::google::protobuf::Arena* arena, const MotionConfiguration& from); + explicit GetPlanRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kObstacleDetectorsFieldNumber = 1, - kPositionPollingFrequencyHzFieldNumber = 2, - kObstaclePollingFrequencyHzFieldNumber = 3, - kPlanDeviationMFieldNumber = 4, - kLinearMPerSecFieldNumber = 5, - kAngularDegsPerSecFieldNumber = 6, + kNameFieldNumber = 1, + kExecutionIdFieldNumber = 4, + kComponentNameFieldNumber = 2, + kExtraFieldNumber = 99, + kLastPlanOnlyFieldNumber = 3, }; - // repeated .viam.service.motion.v1.ObstacleDetector obstacle_detectors = 1 [json_name = "obstacleDetectors"]; - int obstacle_detectors_size() const; + // 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: - int _internal_obstacle_detectors_size() const; - + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); public: - void clear_obstacle_detectors() ; - ::viam::service::motion::v1::ObstacleDetector* mutable_obstacle_detectors(int index); - ::google::protobuf::RepeatedPtrField< ::viam::service::motion::v1::ObstacleDetector >* - mutable_obstacle_detectors(); + + // optional string execution_id = 4 [json_name = "executionId"]; + bool has_execution_id() const; private: - const ::google::protobuf::RepeatedPtrField<::viam::service::motion::v1::ObstacleDetector>& _internal_obstacle_detectors() const; - ::google::protobuf::RepeatedPtrField<::viam::service::motion::v1::ObstacleDetector>* _internal_mutable_obstacle_detectors(); + bool _internal_has_execution_id() const; public: - const ::viam::service::motion::v1::ObstacleDetector& obstacle_detectors(int index) const; - ::viam::service::motion::v1::ObstacleDetector* add_obstacle_detectors(); - const ::google::protobuf::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; - void clear_position_polling_frequency_hz() ; - double position_polling_frequency_hz() const; - void set_position_polling_frequency_hz(double value); - + void clear_execution_id(); + const std::string& execution_id() const; + template + void set_execution_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_execution_id(); + PROTOBUF_NODISCARD std::string* release_execution_id(); + void set_allocated_execution_id(std::string* execution_id); private: - double _internal_position_polling_frequency_hz() const; - void _internal_set_position_polling_frequency_hz(double value); - + const std::string& _internal_execution_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_execution_id(const std::string& value); + std::string* _internal_mutable_execution_id(); public: - // optional double obstacle_polling_frequency_hz = 3 [json_name = "obstaclePollingFrequencyHz"]; - bool has_obstacle_polling_frequency_hz() const; - void clear_obstacle_polling_frequency_hz() ; - double obstacle_polling_frequency_hz() const; - void set_obstacle_polling_frequency_hz(double value); + // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; + bool has_component_name() const; private: - double _internal_obstacle_polling_frequency_hz() const; - void _internal_set_obstacle_polling_frequency_hz(double value); - + bool _internal_has_component_name() const; public: - // optional double plan_deviation_m = 4 [json_name = "planDeviationM"]; - bool has_plan_deviation_m() const; - void clear_plan_deviation_m() ; - double plan_deviation_m() const; - void set_plan_deviation_m(double value); - + void clear_component_name(); + const ::viam::common::v1::ResourceName& component_name() const; + PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_component_name(); + ::viam::common::v1::ResourceName* mutable_component_name(); + void set_allocated_component_name(::viam::common::v1::ResourceName* component_name); private: - double _internal_plan_deviation_m() const; - void _internal_set_plan_deviation_m(double value); - + const ::viam::common::v1::ResourceName& _internal_component_name() const; + ::viam::common::v1::ResourceName* _internal_mutable_component_name(); public: - // optional double linear_m_per_sec = 5 [json_name = "linearMPerSec"]; - bool has_linear_m_per_sec() const; - void clear_linear_m_per_sec() ; - double linear_m_per_sec() const; - void set_linear_m_per_sec(double value); + void unsafe_arena_set_allocated_component_name( + ::viam::common::v1::ResourceName* component_name); + ::viam::common::v1::ResourceName* unsafe_arena_release_component_name(); + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + bool has_extra() const; private: - double _internal_linear_m_per_sec() const; - void _internal_set_linear_m_per_sec(double value); - + bool _internal_has_extra() const; public: - // optional double angular_degs_per_sec = 6 [json_name = "angularDegsPerSec"]; - bool has_angular_degs_per_sec() const; - void clear_angular_degs_per_sec() ; - double angular_degs_per_sec() const; - void set_angular_degs_per_sec(double value); - + 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: - double _internal_angular_degs_per_sec() const; - void _internal_set_angular_degs_per_sec(double value); + 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(); + // bool last_plan_only = 3 [json_name = "lastPlanOnly"]; + void clear_last_plan_only(); + bool last_plan_only() const; + void set_last_plan_only(bool value); + private: + bool _internal_last_plan_only() const; + void _internal_set_last_plan_only(bool value); public: - // @@protoc_insertion_point(class_scope:viam.service.motion.v1.MotionConfiguration) + + // @@protoc_insertion_point(class_scope:viam.service.motion.v1.GetPlanRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 6, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::viam::service::motion::v1::ObstacleDetector > obstacle_detectors_; - double position_polling_frequency_hz_; - double obstacle_polling_frequency_hz_; - double plan_deviation_m_; - double linear_m_per_sec_; - double angular_degs_per_sec_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr execution_id_; + ::viam::common::v1::ResourceName* component_name_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + bool last_plan_only_; friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetPoseResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.GetPoseResponse) */ { +class GetPlanResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.GetPlanResponse) */ { public: - inline GetPoseResponse() : GetPoseResponse(nullptr) {} - ~GetPoseResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetPoseResponse(::google::protobuf::internal::ConstantInitialized); + inline GetPlanResponse() : GetPlanResponse(nullptr) {} + ~GetPlanResponse() override; + explicit PROTOBUF_CONSTEXPR GetPlanResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetPoseResponse(const GetPoseResponse& from) - : GetPoseResponse(nullptr, from) {} - GetPoseResponse(GetPoseResponse&& from) noexcept - : GetPoseResponse() { + GetPlanResponse(const GetPlanResponse& from); + GetPlanResponse(GetPlanResponse&& from) noexcept + : GetPlanResponse() { *this = ::std::move(from); } - inline GetPoseResponse& operator=(const GetPoseResponse& from) { + inline GetPlanResponse& operator=(const GetPlanResponse& from) { CopyFrom(from); return *this; } - inline GetPoseResponse& operator=(GetPoseResponse&& from) noexcept { + inline GetPlanResponse& operator=(GetPlanResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3440,164 +3133,155 @@ class GetPoseResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetPoseResponse& default_instance() { + static const GetPlanResponse& default_instance() { return *internal_default_instance(); } - static inline const GetPoseResponse* internal_default_instance() { - return reinterpret_cast( - &_GetPoseResponse_default_instance_); + static inline const GetPlanResponse* internal_default_instance() { + return reinterpret_cast( + &_GetPlanResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 9; + 15; - friend void swap(GetPoseResponse& a, GetPoseResponse& b) { + friend void swap(GetPlanResponse& a, GetPlanResponse& b) { a.Swap(&b); } - inline void Swap(GetPoseResponse* other) { + inline void Swap(GetPlanResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetPoseResponse* other) { + void UnsafeArenaSwap(GetPlanResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetPoseResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetPoseResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetPoseResponse& from) { - GetPoseResponse::MergeImpl(*this, from); + GetPlanResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPlanResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetPlanResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetPoseResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetPlanResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.motion.v1.GetPoseResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.motion.v1.GetPlanResponse"; } protected: - explicit GetPoseResponse(::google::protobuf::Arena* arena); - GetPoseResponse(::google::protobuf::Arena* arena, const GetPoseResponse& from); + explicit GetPlanResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kPoseFieldNumber = 1, + kReplanHistoryFieldNumber = 2, + kCurrentPlanWithStatusFieldNumber = 1, }; - // .viam.common.v1.PoseInFrame pose = 1 [json_name = "pose"]; - bool has_pose() const; - void clear_pose() ; - const ::viam::common::v1::PoseInFrame& pose() const; - PROTOBUF_NODISCARD ::viam::common::v1::PoseInFrame* release_pose(); - ::viam::common::v1::PoseInFrame* mutable_pose(); - void set_allocated_pose(::viam::common::v1::PoseInFrame* value); - void unsafe_arena_set_allocated_pose(::viam::common::v1::PoseInFrame* value); - ::viam::common::v1::PoseInFrame* unsafe_arena_release_pose(); - + // repeated .viam.service.motion.v1.PlanWithStatus replan_history = 2 [json_name = "replanHistory"]; + int replan_history_size() const; private: - const ::viam::common::v1::PoseInFrame& _internal_pose() const; - ::viam::common::v1::PoseInFrame* _internal_mutable_pose(); + int _internal_replan_history_size() const; + public: + void clear_replan_history(); + ::viam::service::motion::v1::PlanWithStatus* mutable_replan_history(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::PlanWithStatus >* + mutable_replan_history(); + private: + const ::viam::service::motion::v1::PlanWithStatus& _internal_replan_history(int index) const; + ::viam::service::motion::v1::PlanWithStatus* _internal_add_replan_history(); + public: + const ::viam::service::motion::v1::PlanWithStatus& replan_history(int index) const; + ::viam::service::motion::v1::PlanWithStatus* add_replan_history(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::PlanWithStatus >& + replan_history() const; + // .viam.service.motion.v1.PlanWithStatus current_plan_with_status = 1 [json_name = "currentPlanWithStatus"]; + bool has_current_plan_with_status() const; + private: + bool _internal_has_current_plan_with_status() const; public: - // @@protoc_insertion_point(class_scope:viam.service.motion.v1.GetPoseResponse) + void clear_current_plan_with_status(); + const ::viam::service::motion::v1::PlanWithStatus& current_plan_with_status() const; + PROTOBUF_NODISCARD ::viam::service::motion::v1::PlanWithStatus* release_current_plan_with_status(); + ::viam::service::motion::v1::PlanWithStatus* mutable_current_plan_with_status(); + void set_allocated_current_plan_with_status(::viam::service::motion::v1::PlanWithStatus* current_plan_with_status); + private: + const ::viam::service::motion::v1::PlanWithStatus& _internal_current_plan_with_status() const; + ::viam::service::motion::v1::PlanWithStatus* _internal_mutable_current_plan_with_status(); + public: + void unsafe_arena_set_allocated_current_plan_with_status( + ::viam::service::motion::v1::PlanWithStatus* current_plan_with_status); + ::viam::service::motion::v1::PlanWithStatus* unsafe_arena_release_current_plan_with_status(); + + // @@protoc_insertion_point(class_scope:viam.service.motion.v1.GetPlanResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::viam::common::v1::PoseInFrame* pose_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::PlanWithStatus > replan_history_; + ::viam::service::motion::v1::PlanWithStatus* current_plan_with_status_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class Constraints final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.Constraints) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.Constraints) */ { public: inline Constraints() : Constraints(nullptr) {} ~Constraints() override; - template - explicit PROTOBUF_CONSTEXPR Constraints(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR Constraints(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Constraints(const Constraints& from) - : Constraints(nullptr, from) {} + Constraints(const Constraints& from); Constraints(Constraints&& from) noexcept : Constraints() { *this = ::std::move(from); @@ -3609,9 +3293,9 @@ class Constraints final : } inline Constraints& operator=(Constraints&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3621,22 +3305,13 @@ class Constraints final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const Constraints& default_instance() { @@ -3655,65 +3330,63 @@ class Constraints final : inline void Swap(Constraints* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(Constraints* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Constraints* New(::google::protobuf::Arena* arena = nullptr) const final { + Constraints* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const Constraints& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Constraints& from) { - Constraints::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Constraints& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(Constraints* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "viam.service.motion.v1.Constraints"; } protected: - explicit Constraints(::google::protobuf::Arena* arena); - Constraints(::google::protobuf::Arena* arena, const Constraints& from); + explicit Constraints(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -3728,113 +3401,93 @@ class Constraints final : int linear_constraint_size() const; private: int _internal_linear_constraint_size() const; - public: - void clear_linear_constraint() ; + void clear_linear_constraint(); ::viam::service::motion::v1::LinearConstraint* mutable_linear_constraint(int index); - ::google::protobuf::RepeatedPtrField< ::viam::service::motion::v1::LinearConstraint >* + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::LinearConstraint >* mutable_linear_constraint(); private: - const ::google::protobuf::RepeatedPtrField<::viam::service::motion::v1::LinearConstraint>& _internal_linear_constraint() const; - ::google::protobuf::RepeatedPtrField<::viam::service::motion::v1::LinearConstraint>* _internal_mutable_linear_constraint(); + const ::viam::service::motion::v1::LinearConstraint& _internal_linear_constraint(int index) const; + ::viam::service::motion::v1::LinearConstraint* _internal_add_linear_constraint(); public: const ::viam::service::motion::v1::LinearConstraint& linear_constraint(int index) const; ::viam::service::motion::v1::LinearConstraint* add_linear_constraint(); - const ::google::protobuf::RepeatedPtrField< ::viam::service::motion::v1::LinearConstraint >& + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::LinearConstraint >& linear_constraint() const; + // repeated .viam.service.motion.v1.OrientationConstraint orientation_constraint = 2 [json_name = "orientationConstraint"]; int orientation_constraint_size() const; private: int _internal_orientation_constraint_size() const; - public: - void clear_orientation_constraint() ; + void clear_orientation_constraint(); ::viam::service::motion::v1::OrientationConstraint* mutable_orientation_constraint(int index); - ::google::protobuf::RepeatedPtrField< ::viam::service::motion::v1::OrientationConstraint >* + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::OrientationConstraint >* mutable_orientation_constraint(); private: - const ::google::protobuf::RepeatedPtrField<::viam::service::motion::v1::OrientationConstraint>& _internal_orientation_constraint() const; - ::google::protobuf::RepeatedPtrField<::viam::service::motion::v1::OrientationConstraint>* _internal_mutable_orientation_constraint(); + const ::viam::service::motion::v1::OrientationConstraint& _internal_orientation_constraint(int index) const; + ::viam::service::motion::v1::OrientationConstraint* _internal_add_orientation_constraint(); public: const ::viam::service::motion::v1::OrientationConstraint& orientation_constraint(int index) const; ::viam::service::motion::v1::OrientationConstraint* add_orientation_constraint(); - const ::google::protobuf::RepeatedPtrField< ::viam::service::motion::v1::OrientationConstraint >& + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::OrientationConstraint >& orientation_constraint() const; + // repeated .viam.service.motion.v1.CollisionSpecification collision_specification = 3 [json_name = "collisionSpecification"]; int collision_specification_size() const; private: int _internal_collision_specification_size() const; - public: - void clear_collision_specification() ; + void clear_collision_specification(); ::viam::service::motion::v1::CollisionSpecification* mutable_collision_specification(int index); - ::google::protobuf::RepeatedPtrField< ::viam::service::motion::v1::CollisionSpecification >* + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::CollisionSpecification >* mutable_collision_specification(); private: - const ::google::protobuf::RepeatedPtrField<::viam::service::motion::v1::CollisionSpecification>& _internal_collision_specification() const; - ::google::protobuf::RepeatedPtrField<::viam::service::motion::v1::CollisionSpecification>* _internal_mutable_collision_specification(); + const ::viam::service::motion::v1::CollisionSpecification& _internal_collision_specification(int index) const; + ::viam::service::motion::v1::CollisionSpecification* _internal_add_collision_specification(); public: const ::viam::service::motion::v1::CollisionSpecification& collision_specification(int index) const; ::viam::service::motion::v1::CollisionSpecification* add_collision_specification(); - const ::google::protobuf::RepeatedPtrField< ::viam::service::motion::v1::CollisionSpecification >& + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::CollisionSpecification >& collision_specification() const; + // @@protoc_insertion_point(class_scope:viam.service.motion.v1.Constraints) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 3, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::service::motion::v1::LinearConstraint > linear_constraint_; - ::google::protobuf::RepeatedPtrField< ::viam::service::motion::v1::OrientationConstraint > orientation_constraint_; - ::google::protobuf::RepeatedPtrField< ::viam::service::motion::v1::CollisionSpecification > collision_specification_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::LinearConstraint > linear_constraint_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::OrientationConstraint > orientation_constraint_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::CollisionSpecification > collision_specification_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class PlanStep final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.PlanStep) */ { +class LinearConstraint final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.LinearConstraint) */ { public: - inline PlanStep() : PlanStep(nullptr) {} - ~PlanStep() override; - template - explicit PROTOBUF_CONSTEXPR PlanStep(::google::protobuf::internal::ConstantInitialized); + inline LinearConstraint() : LinearConstraint(nullptr) {} + ~LinearConstraint() override; + explicit PROTOBUF_CONSTEXPR LinearConstraint(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline PlanStep(const PlanStep& from) - : PlanStep(nullptr, from) {} - PlanStep(PlanStep&& from) noexcept - : PlanStep() { + LinearConstraint(const LinearConstraint& from); + LinearConstraint(LinearConstraint&& from) noexcept + : LinearConstraint() { *this = ::std::move(from); } - inline PlanStep& operator=(const PlanStep& from) { + inline LinearConstraint& operator=(const LinearConstraint& from) { CopyFrom(from); return *this; } - inline PlanStep& operator=(PlanStep&& from) noexcept { + inline LinearConstraint& operator=(LinearConstraint&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3844,181 +3497,308 @@ class PlanStep final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + 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 LinearConstraint& default_instance() { + return *internal_default_instance(); + } + static inline const LinearConstraint* internal_default_instance() { + return reinterpret_cast( + &_LinearConstraint_default_instance_); + } + static constexpr int kIndexInFileMessages = + 17; + + friend void swap(LinearConstraint& a, LinearConstraint& b) { + a.Swap(&b); + } + inline void Swap(LinearConstraint* 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(LinearConstraint* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + LinearConstraint* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const LinearConstraint& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const LinearConstraint& 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(LinearConstraint* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.motion.v1.LinearConstraint"; + } + protected: + explicit LinearConstraint(::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 { + kLineToleranceMmFieldNumber = 1, + kOrientationToleranceDegsFieldNumber = 2, + }; + // optional float line_tolerance_mm = 1 [json_name = "lineToleranceMm"]; + bool has_line_tolerance_mm() const; + private: + bool _internal_has_line_tolerance_mm() const; + public: + void clear_line_tolerance_mm(); + float line_tolerance_mm() const; + void set_line_tolerance_mm(float value); + private: + float _internal_line_tolerance_mm() const; + void _internal_set_line_tolerance_mm(float value); + public: + + // optional float orientation_tolerance_degs = 2 [json_name = "orientationToleranceDegs"]; + bool has_orientation_tolerance_degs() const; + private: + bool _internal_has_orientation_tolerance_degs() const; + public: + void clear_orientation_tolerance_degs(); + float orientation_tolerance_degs() const; + void set_orientation_tolerance_degs(float value); + private: + float _internal_orientation_tolerance_degs() const; + void _internal_set_orientation_tolerance_degs(float value); + public: + + // @@protoc_insertion_point(class_scope:viam.service.motion.v1.LinearConstraint) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + float line_tolerance_mm_; + float orientation_tolerance_degs_; + friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; +}; +// ------------------------------------------------------------------- + +class OrientationConstraint final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.OrientationConstraint) */ { + public: + inline OrientationConstraint() : OrientationConstraint(nullptr) {} + ~OrientationConstraint() override; + explicit PROTOBUF_CONSTEXPR OrientationConstraint(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + OrientationConstraint(const OrientationConstraint& from); + OrientationConstraint(OrientationConstraint&& from) noexcept + : OrientationConstraint() { + *this = ::std::move(from); + } + + inline OrientationConstraint& operator=(const OrientationConstraint& from) { + CopyFrom(from); + return *this; } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + inline OrientationConstraint& operator=(OrientationConstraint&& 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 ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const PlanStep& default_instance() { + static const OrientationConstraint& default_instance() { return *internal_default_instance(); } - static inline const PlanStep* internal_default_instance() { - return reinterpret_cast( - &_PlanStep_default_instance_); + static inline const OrientationConstraint* internal_default_instance() { + return reinterpret_cast( + &_OrientationConstraint_default_instance_); } static constexpr int kIndexInFileMessages = - 26; + 18; - friend void swap(PlanStep& a, PlanStep& b) { + friend void swap(OrientationConstraint& a, OrientationConstraint& b) { a.Swap(&b); } - inline void Swap(PlanStep* other) { + inline void Swap(OrientationConstraint* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(PlanStep* other) { + void UnsafeArenaSwap(OrientationConstraint* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - PlanStep* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const PlanStep& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const PlanStep& from) { - PlanStep::MergeImpl(*this, from); + OrientationConstraint* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const OrientationConstraint& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const OrientationConstraint& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(PlanStep* other); + void SetCachedSize(int size) const final; + void InternalSwap(OrientationConstraint* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.motion.v1.PlanStep"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.motion.v1.OrientationConstraint"; } protected: - explicit PlanStep(::google::protobuf::Arena* arena); - PlanStep(::google::protobuf::Arena* arena, const PlanStep& from); + explicit OrientationConstraint(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- - // accessors ------------------------------------------------------- enum : int { - kStepFieldNumber = 1, + kOrientationToleranceDegsFieldNumber = 1, }; - // map step = 1 [json_name = "step"]; - int step_size() const; + // optional float orientation_tolerance_degs = 1 [json_name = "orientationToleranceDegs"]; + bool has_orientation_tolerance_degs() const; private: - int _internal_step_size() const; - + bool _internal_has_orientation_tolerance_degs() const; public: - void clear_step() ; - const ::google::protobuf::Map& step() const; - ::google::protobuf::Map* mutable_step(); - + void clear_orientation_tolerance_degs(); + float orientation_tolerance_degs() const; + void set_orientation_tolerance_degs(float value); private: - const ::google::protobuf::Map& _internal_step() const; - ::google::protobuf::Map* _internal_mutable_step(); - + float _internal_orientation_tolerance_degs() const; + void _internal_set_orientation_tolerance_degs(float value); public: - // @@protoc_insertion_point(class_scope:viam.service.motion.v1.PlanStep) + + // @@protoc_insertion_point(class_scope:viam.service.motion.v1.OrientationConstraint) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 2, - 44, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::MapField - step_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + float orientation_tolerance_degs_; friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class MoveOnMapRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.MoveOnMapRequest) */ { +class CollisionSpecification_AllowedFrameCollisions final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.CollisionSpecification.AllowedFrameCollisions) */ { public: - inline MoveOnMapRequest() : MoveOnMapRequest(nullptr) {} - ~MoveOnMapRequest() override; - template - explicit PROTOBUF_CONSTEXPR MoveOnMapRequest(::google::protobuf::internal::ConstantInitialized); + inline CollisionSpecification_AllowedFrameCollisions() : CollisionSpecification_AllowedFrameCollisions(nullptr) {} + ~CollisionSpecification_AllowedFrameCollisions() override; + explicit PROTOBUF_CONSTEXPR CollisionSpecification_AllowedFrameCollisions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline MoveOnMapRequest(const MoveOnMapRequest& from) - : MoveOnMapRequest(nullptr, from) {} - MoveOnMapRequest(MoveOnMapRequest&& from) noexcept - : MoveOnMapRequest() { + CollisionSpecification_AllowedFrameCollisions(const CollisionSpecification_AllowedFrameCollisions& from); + CollisionSpecification_AllowedFrameCollisions(CollisionSpecification_AllowedFrameCollisions&& from) noexcept + : CollisionSpecification_AllowedFrameCollisions() { *this = ::std::move(from); } - inline MoveOnMapRequest& operator=(const MoveOnMapRequest& from) { + inline CollisionSpecification_AllowedFrameCollisions& operator=(const CollisionSpecification_AllowedFrameCollisions& from) { CopyFrom(from); return *this; } - inline MoveOnMapRequest& operator=(MoveOnMapRequest&& from) noexcept { + inline CollisionSpecification_AllowedFrameCollisions& operator=(CollisionSpecification_AllowedFrameCollisions&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -4028,284 +3808,161 @@ class MoveOnMapRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MoveOnMapRequest& default_instance() { + static const CollisionSpecification_AllowedFrameCollisions& default_instance() { return *internal_default_instance(); } - static inline const MoveOnMapRequest* internal_default_instance() { - return reinterpret_cast( - &_MoveOnMapRequest_default_instance_); + static inline const CollisionSpecification_AllowedFrameCollisions* internal_default_instance() { + return reinterpret_cast( + &_CollisionSpecification_AllowedFrameCollisions_default_instance_); } static constexpr int kIndexInFileMessages = - 2; + 19; - friend void swap(MoveOnMapRequest& a, MoveOnMapRequest& b) { + friend void swap(CollisionSpecification_AllowedFrameCollisions& a, CollisionSpecification_AllowedFrameCollisions& b) { a.Swap(&b); } - inline void Swap(MoveOnMapRequest* other) { + inline void Swap(CollisionSpecification_AllowedFrameCollisions* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MoveOnMapRequest* other) { + void UnsafeArenaSwap(CollisionSpecification_AllowedFrameCollisions* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MoveOnMapRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const MoveOnMapRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const MoveOnMapRequest& from) { - MoveOnMapRequest::MergeImpl(*this, from); + CollisionSpecification_AllowedFrameCollisions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CollisionSpecification_AllowedFrameCollisions& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CollisionSpecification_AllowedFrameCollisions& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(MoveOnMapRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(CollisionSpecification_AllowedFrameCollisions* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.motion.v1.MoveOnMapRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.motion.v1.CollisionSpecification.AllowedFrameCollisions"; } protected: - explicit MoveOnMapRequest(::google::protobuf::Arena* arena); - MoveOnMapRequest(::google::protobuf::Arena* arena, const MoveOnMapRequest& from); + explicit CollisionSpecification_AllowedFrameCollisions(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kObstaclesFieldNumber = 6, - kNameFieldNumber = 1, - kDestinationFieldNumber = 2, - kComponentNameFieldNumber = 3, - kSlamServiceNameFieldNumber = 4, - kMotionConfigurationFieldNumber = 5, - kExtraFieldNumber = 99, + kFrame1FieldNumber = 1, + kFrame2FieldNumber = 2, }; - // repeated .viam.common.v1.Geometry obstacles = 6 [json_name = "obstacles"]; - int obstacles_size() const; - private: - int _internal_obstacles_size() const; - - public: - void clear_obstacles() ; - ::viam::common::v1::Geometry* mutable_obstacles(int index); - ::google::protobuf::RepeatedPtrField< ::viam::common::v1::Geometry >* - mutable_obstacles(); - private: - const ::google::protobuf::RepeatedPtrField<::viam::common::v1::Geometry>& _internal_obstacles() const; - ::google::protobuf::RepeatedPtrField<::viam::common::v1::Geometry>* _internal_mutable_obstacles(); - public: - const ::viam::common::v1::Geometry& obstacles(int index) const; - ::viam::common::v1::Geometry* add_obstacles(); - const ::google::protobuf::RepeatedPtrField< ::viam::common::v1::Geometry >& - obstacles() const; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - - public: - // .viam.common.v1.Pose destination = 2 [json_name = "destination"]; - bool has_destination() const; - void clear_destination() ; - const ::viam::common::v1::Pose& destination() const; - PROTOBUF_NODISCARD ::viam::common::v1::Pose* release_destination(); - ::viam::common::v1::Pose* mutable_destination(); - void set_allocated_destination(::viam::common::v1::Pose* value); - void unsafe_arena_set_allocated_destination(::viam::common::v1::Pose* value); - ::viam::common::v1::Pose* unsafe_arena_release_destination(); - - private: - const ::viam::common::v1::Pose& _internal_destination() const; - ::viam::common::v1::Pose* _internal_mutable_destination(); - - public: - // .viam.common.v1.ResourceName component_name = 3 [json_name = "componentName"]; - bool has_component_name() const; - void clear_component_name() ; - const ::viam::common::v1::ResourceName& component_name() const; - PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_component_name(); - ::viam::common::v1::ResourceName* mutable_component_name(); - void set_allocated_component_name(::viam::common::v1::ResourceName* value); - void unsafe_arena_set_allocated_component_name(::viam::common::v1::ResourceName* value); - ::viam::common::v1::ResourceName* unsafe_arena_release_component_name(); - - private: - const ::viam::common::v1::ResourceName& _internal_component_name() const; - ::viam::common::v1::ResourceName* _internal_mutable_component_name(); - - public: - // .viam.common.v1.ResourceName slam_service_name = 4 [json_name = "slamServiceName"]; - bool has_slam_service_name() const; - void clear_slam_service_name() ; - const ::viam::common::v1::ResourceName& slam_service_name() const; - PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_slam_service_name(); - ::viam::common::v1::ResourceName* mutable_slam_service_name(); - void set_allocated_slam_service_name(::viam::common::v1::ResourceName* value); - void unsafe_arena_set_allocated_slam_service_name(::viam::common::v1::ResourceName* value); - ::viam::common::v1::ResourceName* unsafe_arena_release_slam_service_name(); - + // string frame1 = 1 [json_name = "frame1"]; + void clear_frame1(); + const std::string& frame1() const; + template + void set_frame1(ArgT0&& arg0, ArgT... args); + std::string* mutable_frame1(); + PROTOBUF_NODISCARD std::string* release_frame1(); + void set_allocated_frame1(std::string* frame1); private: - const ::viam::common::v1::ResourceName& _internal_slam_service_name() const; - ::viam::common::v1::ResourceName* _internal_mutable_slam_service_name(); - + const std::string& _internal_frame1() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_frame1(const std::string& value); + std::string* _internal_mutable_frame1(); public: - // optional .viam.service.motion.v1.MotionConfiguration motion_configuration = 5 [json_name = "motionConfiguration"]; - bool has_motion_configuration() const; - void clear_motion_configuration() ; - const ::viam::service::motion::v1::MotionConfiguration& motion_configuration() const; - PROTOBUF_NODISCARD ::viam::service::motion::v1::MotionConfiguration* release_motion_configuration(); - ::viam::service::motion::v1::MotionConfiguration* mutable_motion_configuration(); - void set_allocated_motion_configuration(::viam::service::motion::v1::MotionConfiguration* value); - void unsafe_arena_set_allocated_motion_configuration(::viam::service::motion::v1::MotionConfiguration* value); - ::viam::service::motion::v1::MotionConfiguration* unsafe_arena_release_motion_configuration(); + // string frame2 = 2 [json_name = "frame2"]; + void clear_frame2(); + const std::string& frame2() const; + template + void set_frame2(ArgT0&& arg0, ArgT... args); + std::string* mutable_frame2(); + PROTOBUF_NODISCARD std::string* release_frame2(); + void set_allocated_frame2(std::string* frame2); private: - const ::viam::service::motion::v1::MotionConfiguration& _internal_motion_configuration() const; - ::viam::service::motion::v1::MotionConfiguration* _internal_mutable_motion_configuration(); - + const std::string& _internal_frame2() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_frame2(const std::string& value); + std::string* _internal_mutable_frame2(); public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - public: - // @@protoc_insertion_point(class_scope:viam.service.motion.v1.MoveOnMapRequest) + // @@protoc_insertion_point(class_scope:viam.service.motion.v1.CollisionSpecification.AllowedFrameCollisions) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 7, 6, - 52, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::viam::common::v1::Geometry > obstacles_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::viam::common::v1::Pose* destination_; - ::viam::common::v1::ResourceName* component_name_; - ::viam::common::v1::ResourceName* slam_service_name_; - ::viam::service::motion::v1::MotionConfiguration* motion_configuration_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr frame1_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr frame2_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ListPlanStatusesResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.ListPlanStatusesResponse) */ { +class CollisionSpecification final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.CollisionSpecification) */ { public: - inline ListPlanStatusesResponse() : ListPlanStatusesResponse(nullptr) {} - ~ListPlanStatusesResponse() override; - template - explicit PROTOBUF_CONSTEXPR ListPlanStatusesResponse(::google::protobuf::internal::ConstantInitialized); + inline CollisionSpecification() : CollisionSpecification(nullptr) {} + ~CollisionSpecification() override; + explicit PROTOBUF_CONSTEXPR CollisionSpecification(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ListPlanStatusesResponse(const ListPlanStatusesResponse& from) - : ListPlanStatusesResponse(nullptr, from) {} - ListPlanStatusesResponse(ListPlanStatusesResponse&& from) noexcept - : ListPlanStatusesResponse() { + CollisionSpecification(const CollisionSpecification& from); + CollisionSpecification(CollisionSpecification&& from) noexcept + : CollisionSpecification() { *this = ::std::move(from); } - inline ListPlanStatusesResponse& operator=(const ListPlanStatusesResponse& from) { + inline CollisionSpecification& operator=(const CollisionSpecification& from) { CopyFrom(from); return *this; } - inline ListPlanStatusesResponse& operator=(ListPlanStatusesResponse&& from) noexcept { + inline CollisionSpecification& operator=(CollisionSpecification&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -4315,180 +3972,151 @@ class ListPlanStatusesResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ListPlanStatusesResponse& default_instance() { + static const CollisionSpecification& default_instance() { return *internal_default_instance(); } - static inline const ListPlanStatusesResponse* internal_default_instance() { - return reinterpret_cast( - &_ListPlanStatusesResponse_default_instance_); + static inline const CollisionSpecification* internal_default_instance() { + return reinterpret_cast( + &_CollisionSpecification_default_instance_); } static constexpr int kIndexInFileMessages = - 13; + 20; - friend void swap(ListPlanStatusesResponse& a, ListPlanStatusesResponse& b) { + friend void swap(CollisionSpecification& a, CollisionSpecification& b) { a.Swap(&b); } - inline void Swap(ListPlanStatusesResponse* other) { + inline void Swap(CollisionSpecification* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ListPlanStatusesResponse* other) { + void UnsafeArenaSwap(CollisionSpecification* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ListPlanStatusesResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ListPlanStatusesResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ListPlanStatusesResponse& from) { - ListPlanStatusesResponse::MergeImpl(*this, from); + CollisionSpecification* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CollisionSpecification& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CollisionSpecification& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ListPlanStatusesResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(CollisionSpecification* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.motion.v1.ListPlanStatusesResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.motion.v1.CollisionSpecification"; } protected: - explicit ListPlanStatusesResponse(::google::protobuf::Arena* arena); - ListPlanStatusesResponse(::google::protobuf::Arena* arena, const ListPlanStatusesResponse& from); + explicit CollisionSpecification(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- + typedef CollisionSpecification_AllowedFrameCollisions AllowedFrameCollisions; + // accessors ------------------------------------------------------- enum : int { - kPlanStatusesWithIdsFieldNumber = 1, + kAllowsFieldNumber = 1, }; - // repeated .viam.service.motion.v1.PlanStatusWithID plan_statuses_with_ids = 1 [json_name = "planStatusesWithIds"]; - int plan_statuses_with_ids_size() const; + // repeated .viam.service.motion.v1.CollisionSpecification.AllowedFrameCollisions allows = 1 [json_name = "allows"]; + int allows_size() const; private: - int _internal_plan_statuses_with_ids_size() const; - + int _internal_allows_size() const; public: - void clear_plan_statuses_with_ids() ; - ::viam::service::motion::v1::PlanStatusWithID* mutable_plan_statuses_with_ids(int index); - ::google::protobuf::RepeatedPtrField< ::viam::service::motion::v1::PlanStatusWithID >* - mutable_plan_statuses_with_ids(); + void clear_allows(); + ::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions* mutable_allows(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions >* + mutable_allows(); private: - const ::google::protobuf::RepeatedPtrField<::viam::service::motion::v1::PlanStatusWithID>& _internal_plan_statuses_with_ids() const; - ::google::protobuf::RepeatedPtrField<::viam::service::motion::v1::PlanStatusWithID>* _internal_mutable_plan_statuses_with_ids(); + const ::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions& _internal_allows(int index) const; + ::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions* _internal_add_allows(); public: - const ::viam::service::motion::v1::PlanStatusWithID& plan_statuses_with_ids(int index) const; - ::viam::service::motion::v1::PlanStatusWithID* add_plan_statuses_with_ids(); - const ::google::protobuf::RepeatedPtrField< ::viam::service::motion::v1::PlanStatusWithID >& - plan_statuses_with_ids() const; - // @@protoc_insertion_point(class_scope:viam.service.motion.v1.ListPlanStatusesResponse) + const ::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions& allows(int index) const; + ::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions* add_allows(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions >& + allows() const; + + // @@protoc_insertion_point(class_scope:viam.service.motion.v1.CollisionSpecification) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::service::motion::v1::PlanStatusWithID > plan_statuses_with_ids_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions > allows_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Plan final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.Plan) */ { +class PlanWithStatus final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.PlanWithStatus) */ { public: - inline Plan() : Plan(nullptr) {} - ~Plan() override; - template - explicit PROTOBUF_CONSTEXPR Plan(::google::protobuf::internal::ConstantInitialized); + inline PlanWithStatus() : PlanWithStatus(nullptr) {} + ~PlanWithStatus() override; + explicit PROTOBUF_CONSTEXPR PlanWithStatus(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Plan(const Plan& from) - : Plan(nullptr, from) {} - Plan(Plan&& from) noexcept - : Plan() { + PlanWithStatus(const PlanWithStatus& from); + PlanWithStatus(PlanWithStatus&& from) noexcept + : PlanWithStatus() { *this = ::std::move(from); } - inline Plan& operator=(const Plan& from) { + inline PlanWithStatus& operator=(const PlanWithStatus& from) { CopyFrom(from); return *this; } - inline Plan& operator=(Plan&& from) noexcept { + inline PlanWithStatus& operator=(PlanWithStatus&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -4498,234 +4126,189 @@ class Plan final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Plan& default_instance() { + static const PlanWithStatus& default_instance() { return *internal_default_instance(); } - static inline const Plan* internal_default_instance() { - return reinterpret_cast( - &_Plan_default_instance_); + static inline const PlanWithStatus* internal_default_instance() { + return reinterpret_cast( + &_PlanWithStatus_default_instance_); } static constexpr int kIndexInFileMessages = - 24; + 21; - friend void swap(Plan& a, Plan& b) { + friend void swap(PlanWithStatus& a, PlanWithStatus& b) { a.Swap(&b); } - inline void Swap(Plan* other) { + inline void Swap(PlanWithStatus* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Plan* other) { + void UnsafeArenaSwap(PlanWithStatus* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Plan* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Plan& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Plan& from) { - Plan::MergeImpl(*this, from); + PlanWithStatus* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const PlanWithStatus& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const PlanWithStatus& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Plan* other); + void SetCachedSize(int size) const final; + void InternalSwap(PlanWithStatus* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.motion.v1.Plan"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.motion.v1.PlanWithStatus"; } protected: - explicit Plan(::google::protobuf::Arena* arena); - Plan(::google::protobuf::Arena* arena, const Plan& from); + explicit PlanWithStatus(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kStepsFieldNumber = 4, - kIdFieldNumber = 1, - kExecutionIdFieldNumber = 3, - kComponentNameFieldNumber = 2, + kStatusHistoryFieldNumber = 3, + kPlanFieldNumber = 1, + kStatusFieldNumber = 2, }; - // repeated .viam.service.motion.v1.PlanStep steps = 4 [json_name = "steps"]; - int steps_size() const; + // repeated .viam.service.motion.v1.PlanStatus status_history = 3 [json_name = "statusHistory"]; + int status_history_size() const; private: - int _internal_steps_size() const; - + int _internal_status_history_size() const; public: - void clear_steps() ; - ::viam::service::motion::v1::PlanStep* mutable_steps(int index); - ::google::protobuf::RepeatedPtrField< ::viam::service::motion::v1::PlanStep >* - mutable_steps(); + void clear_status_history(); + ::viam::service::motion::v1::PlanStatus* mutable_status_history(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::PlanStatus >* + mutable_status_history(); private: - const ::google::protobuf::RepeatedPtrField<::viam::service::motion::v1::PlanStep>& _internal_steps() const; - ::google::protobuf::RepeatedPtrField<::viam::service::motion::v1::PlanStep>* _internal_mutable_steps(); + const ::viam::service::motion::v1::PlanStatus& _internal_status_history(int index) const; + ::viam::service::motion::v1::PlanStatus* _internal_add_status_history(); public: - const ::viam::service::motion::v1::PlanStep& steps(int index) const; - ::viam::service::motion::v1::PlanStep* add_steps(); - const ::google::protobuf::RepeatedPtrField< ::viam::service::motion::v1::PlanStep >& - steps() const; - // string id = 1 [json_name = "id"]; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); + const ::viam::service::motion::v1::PlanStatus& status_history(int index) const; + ::viam::service::motion::v1::PlanStatus* add_status_history(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::PlanStatus >& + status_history() const; + // .viam.service.motion.v1.Plan plan = 1 [json_name = "plan"]; + bool has_plan() const; private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); - + bool _internal_has_plan() const; public: - // string execution_id = 3 [json_name = "executionId"]; - void clear_execution_id() ; - const std::string& execution_id() const; - template - void set_execution_id(Arg_&& arg, Args_... args); - std::string* mutable_execution_id(); - PROTOBUF_NODISCARD std::string* release_execution_id(); - void set_allocated_execution_id(std::string* value); - + void clear_plan(); + const ::viam::service::motion::v1::Plan& plan() const; + PROTOBUF_NODISCARD ::viam::service::motion::v1::Plan* release_plan(); + ::viam::service::motion::v1::Plan* mutable_plan(); + void set_allocated_plan(::viam::service::motion::v1::Plan* plan); private: - const std::string& _internal_execution_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_execution_id( - const std::string& value); - std::string* _internal_mutable_execution_id(); - + const ::viam::service::motion::v1::Plan& _internal_plan() const; + ::viam::service::motion::v1::Plan* _internal_mutable_plan(); public: - // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; - bool has_component_name() const; - void clear_component_name() ; - const ::viam::common::v1::ResourceName& component_name() const; - PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_component_name(); - ::viam::common::v1::ResourceName* mutable_component_name(); - void set_allocated_component_name(::viam::common::v1::ResourceName* value); - void unsafe_arena_set_allocated_component_name(::viam::common::v1::ResourceName* value); - ::viam::common::v1::ResourceName* unsafe_arena_release_component_name(); + void unsafe_arena_set_allocated_plan( + ::viam::service::motion::v1::Plan* plan); + ::viam::service::motion::v1::Plan* unsafe_arena_release_plan(); + // .viam.service.motion.v1.PlanStatus status = 2 [json_name = "status"]; + bool has_status() const; private: - const ::viam::common::v1::ResourceName& _internal_component_name() const; - ::viam::common::v1::ResourceName* _internal_mutable_component_name(); - + bool _internal_has_status() const; public: - // @@protoc_insertion_point(class_scope:viam.service.motion.v1.Plan) + void clear_status(); + const ::viam::service::motion::v1::PlanStatus& status() const; + PROTOBUF_NODISCARD ::viam::service::motion::v1::PlanStatus* release_status(); + ::viam::service::motion::v1::PlanStatus* mutable_status(); + void set_allocated_status(::viam::service::motion::v1::PlanStatus* status); + private: + const ::viam::service::motion::v1::PlanStatus& _internal_status() const; + ::viam::service::motion::v1::PlanStatus* _internal_mutable_status(); + public: + void unsafe_arena_set_allocated_status( + ::viam::service::motion::v1::PlanStatus* status); + ::viam::service::motion::v1::PlanStatus* unsafe_arena_release_status(); + + // @@protoc_insertion_point(class_scope:viam.service.motion.v1.PlanWithStatus) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 2, - 50, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::viam::service::motion::v1::PlanStep > steps_; - ::google::protobuf::internal::ArenaStringPtr id_; - ::google::protobuf::internal::ArenaStringPtr execution_id_; - ::viam::common::v1::ResourceName* component_name_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::PlanStatus > status_history_; + ::viam::service::motion::v1::Plan* plan_; + ::viam::service::motion::v1::PlanStatus* status_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class MoveOnGlobeRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.MoveOnGlobeRequest) */ { +class PlanStatusWithID final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.PlanStatusWithID) */ { public: - inline MoveOnGlobeRequest() : MoveOnGlobeRequest(nullptr) {} - ~MoveOnGlobeRequest() override; - template - explicit PROTOBUF_CONSTEXPR MoveOnGlobeRequest(::google::protobuf::internal::ConstantInitialized); + inline PlanStatusWithID() : PlanStatusWithID(nullptr) {} + ~PlanStatusWithID() override; + explicit PROTOBUF_CONSTEXPR PlanStatusWithID(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline MoveOnGlobeRequest(const MoveOnGlobeRequest& from) - : MoveOnGlobeRequest(nullptr, from) {} - MoveOnGlobeRequest(MoveOnGlobeRequest&& from) noexcept - : MoveOnGlobeRequest() { + PlanStatusWithID(const PlanStatusWithID& from); + PlanStatusWithID(PlanStatusWithID&& from) noexcept + : PlanStatusWithID() { *this = ::std::move(from); } - inline MoveOnGlobeRequest& operator=(const MoveOnGlobeRequest& from) { + inline PlanStatusWithID& operator=(const PlanStatusWithID& from) { CopyFrom(from); return *this; } - inline MoveOnGlobeRequest& operator=(MoveOnGlobeRequest&& from) noexcept { + inline PlanStatusWithID& operator=(PlanStatusWithID&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -4735,317 +4318,201 @@ class MoveOnGlobeRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MoveOnGlobeRequest& default_instance() { + static const PlanStatusWithID& default_instance() { return *internal_default_instance(); } - static inline const MoveOnGlobeRequest* internal_default_instance() { - return reinterpret_cast( - &_MoveOnGlobeRequest_default_instance_); + static inline const PlanStatusWithID* internal_default_instance() { + return reinterpret_cast( + &_PlanStatusWithID_default_instance_); } static constexpr int kIndexInFileMessages = - 6; + 22; - friend void swap(MoveOnGlobeRequest& a, MoveOnGlobeRequest& b) { + friend void swap(PlanStatusWithID& a, PlanStatusWithID& b) { a.Swap(&b); } - inline void Swap(MoveOnGlobeRequest* other) { + inline void Swap(PlanStatusWithID* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MoveOnGlobeRequest* other) { + void UnsafeArenaSwap(PlanStatusWithID* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MoveOnGlobeRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const MoveOnGlobeRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const MoveOnGlobeRequest& from) { - MoveOnGlobeRequest::MergeImpl(*this, from); + PlanStatusWithID* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const PlanStatusWithID& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const PlanStatusWithID& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(MoveOnGlobeRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(PlanStatusWithID* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.motion.v1.MoveOnGlobeRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.motion.v1.PlanStatusWithID"; } protected: - explicit MoveOnGlobeRequest(::google::protobuf::Arena* arena); - MoveOnGlobeRequest(::google::protobuf::Arena* arena, const MoveOnGlobeRequest& from); + explicit PlanStatusWithID(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kObstaclesFieldNumber = 6, - kBoundingRegionsFieldNumber = 8, - kNameFieldNumber = 1, - kDestinationFieldNumber = 2, - kComponentNameFieldNumber = 4, - kMovementSensorNameFieldNumber = 5, - kMotionConfigurationFieldNumber = 7, - kExtraFieldNumber = 99, - kHeadingFieldNumber = 3, + kPlanIdFieldNumber = 1, + kExecutionIdFieldNumber = 3, + kComponentNameFieldNumber = 2, + kStatusFieldNumber = 4, }; - // repeated .viam.common.v1.GeoGeometry obstacles = 6 [json_name = "obstacles"]; - int obstacles_size() const; - private: - int _internal_obstacles_size() const; - - public: - void clear_obstacles() ; - ::viam::common::v1::GeoGeometry* mutable_obstacles(int index); - ::google::protobuf::RepeatedPtrField< ::viam::common::v1::GeoGeometry >* - mutable_obstacles(); - private: - const ::google::protobuf::RepeatedPtrField<::viam::common::v1::GeoGeometry>& _internal_obstacles() const; - ::google::protobuf::RepeatedPtrField<::viam::common::v1::GeoGeometry>* _internal_mutable_obstacles(); - public: - const ::viam::common::v1::GeoGeometry& obstacles(int index) const; - ::viam::common::v1::GeoGeometry* add_obstacles(); - const ::google::protobuf::RepeatedPtrField< ::viam::common::v1::GeoGeometry >& - obstacles() const; - // repeated .viam.common.v1.GeoGeometry bounding_regions = 8 [json_name = "boundingRegions"]; - int bounding_regions_size() const; - private: - int _internal_bounding_regions_size() const; - - public: - void clear_bounding_regions() ; - ::viam::common::v1::GeoGeometry* mutable_bounding_regions(int index); - ::google::protobuf::RepeatedPtrField< ::viam::common::v1::GeoGeometry >* - mutable_bounding_regions(); + // string plan_id = 1 [json_name = "planId"]; + void clear_plan_id(); + const std::string& plan_id() const; + template + void set_plan_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_plan_id(); + PROTOBUF_NODISCARD std::string* release_plan_id(); + void set_allocated_plan_id(std::string* plan_id); private: - const ::google::protobuf::RepeatedPtrField<::viam::common::v1::GeoGeometry>& _internal_bounding_regions() const; - ::google::protobuf::RepeatedPtrField<::viam::common::v1::GeoGeometry>* _internal_mutable_bounding_regions(); + const std::string& _internal_plan_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_plan_id(const std::string& value); + std::string* _internal_mutable_plan_id(); public: - const ::viam::common::v1::GeoGeometry& bounding_regions(int index) const; - ::viam::common::v1::GeoGeometry* add_bounding_regions(); - const ::google::protobuf::RepeatedPtrField< ::viam::common::v1::GeoGeometry >& - bounding_regions() const; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); + // string execution_id = 3 [json_name = "executionId"]; + void clear_execution_id(); + const std::string& execution_id() const; + template + void set_execution_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_execution_id(); + PROTOBUF_NODISCARD std::string* release_execution_id(); + void set_allocated_execution_id(std::string* execution_id); private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - + const std::string& _internal_execution_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_execution_id(const std::string& value); + std::string* _internal_mutable_execution_id(); public: - // .viam.common.v1.GeoPoint destination = 2 [json_name = "destination"]; - bool has_destination() const; - void clear_destination() ; - const ::viam::common::v1::GeoPoint& destination() const; - PROTOBUF_NODISCARD ::viam::common::v1::GeoPoint* release_destination(); - ::viam::common::v1::GeoPoint* mutable_destination(); - void set_allocated_destination(::viam::common::v1::GeoPoint* value); - void unsafe_arena_set_allocated_destination(::viam::common::v1::GeoPoint* value); - ::viam::common::v1::GeoPoint* unsafe_arena_release_destination(); + // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; + bool has_component_name() const; private: - const ::viam::common::v1::GeoPoint& _internal_destination() const; - ::viam::common::v1::GeoPoint* _internal_mutable_destination(); - + bool _internal_has_component_name() const; public: - // .viam.common.v1.ResourceName component_name = 4 [json_name = "componentName"]; - bool has_component_name() const; - void clear_component_name() ; + void clear_component_name(); const ::viam::common::v1::ResourceName& component_name() const; PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_component_name(); ::viam::common::v1::ResourceName* mutable_component_name(); - void set_allocated_component_name(::viam::common::v1::ResourceName* value); - void unsafe_arena_set_allocated_component_name(::viam::common::v1::ResourceName* value); - ::viam::common::v1::ResourceName* unsafe_arena_release_component_name(); - + void set_allocated_component_name(::viam::common::v1::ResourceName* component_name); private: const ::viam::common::v1::ResourceName& _internal_component_name() const; ::viam::common::v1::ResourceName* _internal_mutable_component_name(); - - public: - // .viam.common.v1.ResourceName movement_sensor_name = 5 [json_name = "movementSensorName"]; - bool has_movement_sensor_name() const; - void clear_movement_sensor_name() ; - const ::viam::common::v1::ResourceName& movement_sensor_name() const; - PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_movement_sensor_name(); - ::viam::common::v1::ResourceName* mutable_movement_sensor_name(); - void set_allocated_movement_sensor_name(::viam::common::v1::ResourceName* value); - void unsafe_arena_set_allocated_movement_sensor_name(::viam::common::v1::ResourceName* value); - ::viam::common::v1::ResourceName* unsafe_arena_release_movement_sensor_name(); - - private: - const ::viam::common::v1::ResourceName& _internal_movement_sensor_name() const; - ::viam::common::v1::ResourceName* _internal_mutable_movement_sensor_name(); - public: - // optional .viam.service.motion.v1.MotionConfiguration motion_configuration = 7 [json_name = "motionConfiguration"]; - bool has_motion_configuration() const; - void clear_motion_configuration() ; - const ::viam::service::motion::v1::MotionConfiguration& motion_configuration() const; - PROTOBUF_NODISCARD ::viam::service::motion::v1::MotionConfiguration* release_motion_configuration(); - ::viam::service::motion::v1::MotionConfiguration* mutable_motion_configuration(); - void set_allocated_motion_configuration(::viam::service::motion::v1::MotionConfiguration* value); - void unsafe_arena_set_allocated_motion_configuration(::viam::service::motion::v1::MotionConfiguration* value); - ::viam::service::motion::v1::MotionConfiguration* unsafe_arena_release_motion_configuration(); + void unsafe_arena_set_allocated_component_name( + ::viam::common::v1::ResourceName* component_name); + ::viam::common::v1::ResourceName* unsafe_arena_release_component_name(); + // .viam.service.motion.v1.PlanStatus status = 4 [json_name = "status"]; + bool has_status() const; private: - const ::viam::service::motion::v1::MotionConfiguration& _internal_motion_configuration() const; - ::viam::service::motion::v1::MotionConfiguration* _internal_mutable_motion_configuration(); - + bool _internal_has_status() const; public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - + void clear_status(); + const ::viam::service::motion::v1::PlanStatus& status() const; + PROTOBUF_NODISCARD ::viam::service::motion::v1::PlanStatus* release_status(); + ::viam::service::motion::v1::PlanStatus* mutable_status(); + void set_allocated_status(::viam::service::motion::v1::PlanStatus* status); private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - + const ::viam::service::motion::v1::PlanStatus& _internal_status() const; + ::viam::service::motion::v1::PlanStatus* _internal_mutable_status(); public: - // optional double heading = 3 [json_name = "heading"]; - bool has_heading() const; - void clear_heading() ; - double heading() const; - void set_heading(double value); - - private: - double _internal_heading() const; - void _internal_set_heading(double value); + void unsafe_arena_set_allocated_status( + ::viam::service::motion::v1::PlanStatus* status); + ::viam::service::motion::v1::PlanStatus* unsafe_arena_release_status(); - public: - // @@protoc_insertion_point(class_scope:viam.service.motion.v1.MoveOnGlobeRequest) + // @@protoc_insertion_point(class_scope:viam.service.motion.v1.PlanStatusWithID) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 9, 7, - 62, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::viam::common::v1::GeoGeometry > obstacles_; - ::google::protobuf::RepeatedPtrField< ::viam::common::v1::GeoGeometry > bounding_regions_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::viam::common::v1::GeoPoint* destination_; - ::viam::common::v1::ResourceName* component_name_; - ::viam::common::v1::ResourceName* movement_sensor_name_; - ::viam::service::motion::v1::MotionConfiguration* motion_configuration_; - ::google::protobuf::Struct* extra_; - double heading_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr plan_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr execution_id_; + ::viam::common::v1::ResourceName* component_name_; + ::viam::service::motion::v1::PlanStatus* status_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetPoseRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.GetPoseRequest) */ { +class PlanStatus final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.PlanStatus) */ { public: - inline GetPoseRequest() : GetPoseRequest(nullptr) {} - ~GetPoseRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetPoseRequest(::google::protobuf::internal::ConstantInitialized); + inline PlanStatus() : PlanStatus(nullptr) {} + ~PlanStatus() override; + explicit PROTOBUF_CONSTEXPR PlanStatus(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetPoseRequest(const GetPoseRequest& from) - : GetPoseRequest(nullptr, from) {} - GetPoseRequest(GetPoseRequest&& from) noexcept - : GetPoseRequest() { + PlanStatus(const PlanStatus& from); + PlanStatus(PlanStatus&& from) noexcept + : PlanStatus() { *this = ::std::move(from); } - inline GetPoseRequest& operator=(const GetPoseRequest& from) { + inline PlanStatus& operator=(const PlanStatus& from) { CopyFrom(from); return *this; } - inline GetPoseRequest& operator=(GetPoseRequest&& from) noexcept { + inline PlanStatus& operator=(PlanStatus&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -5055,251 +4522,181 @@ class GetPoseRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetPoseRequest& default_instance() { + static const PlanStatus& default_instance() { return *internal_default_instance(); } - static inline const GetPoseRequest* internal_default_instance() { - return reinterpret_cast( - &_GetPoseRequest_default_instance_); + static inline const PlanStatus* internal_default_instance() { + return reinterpret_cast( + &_PlanStatus_default_instance_); } static constexpr int kIndexInFileMessages = - 8; + 23; - friend void swap(GetPoseRequest& a, GetPoseRequest& b) { + friend void swap(PlanStatus& a, PlanStatus& b) { a.Swap(&b); } - inline void Swap(GetPoseRequest* other) { + inline void Swap(PlanStatus* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetPoseRequest* other) { + void UnsafeArenaSwap(PlanStatus* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetPoseRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetPoseRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetPoseRequest& from) { - GetPoseRequest::MergeImpl(*this, from); + PlanStatus* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const PlanStatus& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const PlanStatus& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetPoseRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(PlanStatus* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.motion.v1.GetPoseRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.motion.v1.PlanStatus"; } protected: - explicit GetPoseRequest(::google::protobuf::Arena* arena); - GetPoseRequest(::google::protobuf::Arena* arena, const GetPoseRequest& from); + explicit PlanStatus(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kSupplementalTransformsFieldNumber = 4, - kNameFieldNumber = 1, - kDestinationFrameFieldNumber = 3, - kComponentNameFieldNumber = 2, - kExtraFieldNumber = 99, + kReasonFieldNumber = 3, + kTimestampFieldNumber = 2, + kStateFieldNumber = 1, }; - // repeated .viam.common.v1.Transform supplemental_transforms = 4 [json_name = "supplementalTransforms"]; - int supplemental_transforms_size() const; + // optional string reason = 3 [json_name = "reason"]; + bool has_reason() const; private: - int _internal_supplemental_transforms_size() const; - + bool _internal_has_reason() const; public: - void clear_supplemental_transforms() ; - ::viam::common::v1::Transform* mutable_supplemental_transforms(int index); - ::google::protobuf::RepeatedPtrField< ::viam::common::v1::Transform >* - mutable_supplemental_transforms(); + void clear_reason(); + const std::string& reason() const; + template + void set_reason(ArgT0&& arg0, ArgT... args); + std::string* mutable_reason(); + PROTOBUF_NODISCARD std::string* release_reason(); + void set_allocated_reason(std::string* reason); private: - const ::google::protobuf::RepeatedPtrField<::viam::common::v1::Transform>& _internal_supplemental_transforms() const; - ::google::protobuf::RepeatedPtrField<::viam::common::v1::Transform>* _internal_mutable_supplemental_transforms(); + const std::string& _internal_reason() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_reason(const std::string& value); + std::string* _internal_mutable_reason(); public: - const ::viam::common::v1::Transform& supplemental_transforms(int index) const; - ::viam::common::v1::Transform* add_supplemental_transforms(); - const ::google::protobuf::RepeatedPtrField< ::viam::common::v1::Transform >& - supplemental_transforms() const; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); + // .google.protobuf.Timestamp timestamp = 2 [json_name = "timestamp"]; + bool has_timestamp() const; private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - + bool _internal_has_timestamp() const; public: - // string destination_frame = 3 [json_name = "destinationFrame"]; - void clear_destination_frame() ; - const std::string& destination_frame() const; - template - void set_destination_frame(Arg_&& arg, Args_... args); - std::string* mutable_destination_frame(); - PROTOBUF_NODISCARD std::string* release_destination_frame(); - void set_allocated_destination_frame(std::string* value); - + void clear_timestamp(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& timestamp() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_timestamp(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_timestamp(); + void set_allocated_timestamp(::PROTOBUF_NAMESPACE_ID::Timestamp* timestamp); private: - const std::string& _internal_destination_frame() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_destination_frame( - const std::string& value); - std::string* _internal_mutable_destination_frame(); - + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_timestamp() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_timestamp(); public: - // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; - bool has_component_name() const; - void clear_component_name() ; - const ::viam::common::v1::ResourceName& component_name() const; - PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_component_name(); - ::viam::common::v1::ResourceName* mutable_component_name(); - void set_allocated_component_name(::viam::common::v1::ResourceName* value); - void unsafe_arena_set_allocated_component_name(::viam::common::v1::ResourceName* value); - ::viam::common::v1::ResourceName* unsafe_arena_release_component_name(); + void unsafe_arena_set_allocated_timestamp( + ::PROTOBUF_NAMESPACE_ID::Timestamp* timestamp); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_timestamp(); + // .viam.service.motion.v1.PlanState state = 1 [json_name = "state"]; + void clear_state(); + ::viam::service::motion::v1::PlanState state() const; + void set_state(::viam::service::motion::v1::PlanState value); private: - const ::viam::common::v1::ResourceName& _internal_component_name() const; - ::viam::common::v1::ResourceName* _internal_mutable_component_name(); - + ::viam::service::motion::v1::PlanState _internal_state() const; + void _internal_set_state(::viam::service::motion::v1::PlanState value); public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - public: - // @@protoc_insertion_point(class_scope:viam.service.motion.v1.GetPoseRequest) + // @@protoc_insertion_point(class_scope:viam.service.motion.v1.PlanStatus) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 5, 3, - 67, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::viam::common::v1::Transform > supplemental_transforms_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr destination_frame_; - ::viam::common::v1::ResourceName* component_name_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr reason_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* timestamp_; + int state_; friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class PlanWithStatus final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.PlanWithStatus) */ { +class Plan final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.Plan) */ { public: - inline PlanWithStatus() : PlanWithStatus(nullptr) {} - ~PlanWithStatus() override; - template - explicit PROTOBUF_CONSTEXPR PlanWithStatus(::google::protobuf::internal::ConstantInitialized); + inline Plan() : Plan(nullptr) {} + ~Plan() override; + explicit PROTOBUF_CONSTEXPR Plan(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline PlanWithStatus(const PlanWithStatus& from) - : PlanWithStatus(nullptr, from) {} - PlanWithStatus(PlanWithStatus&& from) noexcept - : PlanWithStatus() { + Plan(const Plan& from); + Plan(Plan&& from) noexcept + : Plan() { *this = ::std::move(from); } - inline PlanWithStatus& operator=(const PlanWithStatus& from) { + inline Plan& operator=(const Plan& from) { CopyFrom(from); return *this; } - inline PlanWithStatus& operator=(PlanWithStatus&& from) noexcept { + inline Plan& operator=(Plan&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -5309,215 +4706,227 @@ class PlanWithStatus final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const PlanWithStatus& default_instance() { + static const Plan& default_instance() { return *internal_default_instance(); } - static inline const PlanWithStatus* internal_default_instance() { - return reinterpret_cast( - &_PlanWithStatus_default_instance_); + static inline const Plan* internal_default_instance() { + return reinterpret_cast( + &_Plan_default_instance_); } static constexpr int kIndexInFileMessages = - 21; + 24; - friend void swap(PlanWithStatus& a, PlanWithStatus& b) { + friend void swap(Plan& a, Plan& b) { a.Swap(&b); } - inline void Swap(PlanWithStatus* other) { + inline void Swap(Plan* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(PlanWithStatus* other) { + void UnsafeArenaSwap(Plan* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - PlanWithStatus* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const PlanWithStatus& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const PlanWithStatus& from) { - PlanWithStatus::MergeImpl(*this, from); + Plan* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Plan& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Plan& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(PlanWithStatus* other); + void SetCachedSize(int size) const final; + void InternalSwap(Plan* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.motion.v1.PlanWithStatus"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.motion.v1.Plan"; } protected: - explicit PlanWithStatus(::google::protobuf::Arena* arena); - PlanWithStatus(::google::protobuf::Arena* arena, const PlanWithStatus& from); + explicit Plan(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kStatusHistoryFieldNumber = 3, - kPlanFieldNumber = 1, - kStatusFieldNumber = 2, + kStepsFieldNumber = 4, + kIdFieldNumber = 1, + kExecutionIdFieldNumber = 3, + kComponentNameFieldNumber = 2, }; - // repeated .viam.service.motion.v1.PlanStatus status_history = 3 [json_name = "statusHistory"]; - int status_history_size() const; + // repeated .viam.service.motion.v1.PlanStep steps = 4 [json_name = "steps"]; + int steps_size() const; private: - int _internal_status_history_size() const; - + int _internal_steps_size() const; public: - void clear_status_history() ; - ::viam::service::motion::v1::PlanStatus* mutable_status_history(int index); - ::google::protobuf::RepeatedPtrField< ::viam::service::motion::v1::PlanStatus >* - mutable_status_history(); + void clear_steps(); + ::viam::service::motion::v1::PlanStep* mutable_steps(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::PlanStep >* + mutable_steps(); private: - const ::google::protobuf::RepeatedPtrField<::viam::service::motion::v1::PlanStatus>& _internal_status_history() const; - ::google::protobuf::RepeatedPtrField<::viam::service::motion::v1::PlanStatus>* _internal_mutable_status_history(); + const ::viam::service::motion::v1::PlanStep& _internal_steps(int index) const; + ::viam::service::motion::v1::PlanStep* _internal_add_steps(); public: - const ::viam::service::motion::v1::PlanStatus& status_history(int index) const; - ::viam::service::motion::v1::PlanStatus* add_status_history(); - const ::google::protobuf::RepeatedPtrField< ::viam::service::motion::v1::PlanStatus >& - status_history() const; - // .viam.service.motion.v1.Plan plan = 1 [json_name = "plan"]; - bool has_plan() const; - void clear_plan() ; - const ::viam::service::motion::v1::Plan& plan() const; - PROTOBUF_NODISCARD ::viam::service::motion::v1::Plan* release_plan(); - ::viam::service::motion::v1::Plan* mutable_plan(); - void set_allocated_plan(::viam::service::motion::v1::Plan* value); - void unsafe_arena_set_allocated_plan(::viam::service::motion::v1::Plan* value); - ::viam::service::motion::v1::Plan* unsafe_arena_release_plan(); + const ::viam::service::motion::v1::PlanStep& steps(int index) const; + ::viam::service::motion::v1::PlanStep* add_steps(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::PlanStep >& + steps() const; + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); private: - const ::viam::service::motion::v1::Plan& _internal_plan() const; - ::viam::service::motion::v1::Plan* _internal_mutable_plan(); - + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); public: - // .viam.service.motion.v1.PlanStatus status = 2 [json_name = "status"]; - bool has_status() const; - void clear_status() ; - const ::viam::service::motion::v1::PlanStatus& status() const; - PROTOBUF_NODISCARD ::viam::service::motion::v1::PlanStatus* release_status(); - ::viam::service::motion::v1::PlanStatus* mutable_status(); - void set_allocated_status(::viam::service::motion::v1::PlanStatus* value); - void unsafe_arena_set_allocated_status(::viam::service::motion::v1::PlanStatus* value); - ::viam::service::motion::v1::PlanStatus* unsafe_arena_release_status(); + // string execution_id = 3 [json_name = "executionId"]; + void clear_execution_id(); + const std::string& execution_id() const; + template + void set_execution_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_execution_id(); + PROTOBUF_NODISCARD std::string* release_execution_id(); + void set_allocated_execution_id(std::string* execution_id); private: - const ::viam::service::motion::v1::PlanStatus& _internal_status() const; - ::viam::service::motion::v1::PlanStatus* _internal_mutable_status(); + const std::string& _internal_execution_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_execution_id(const std::string& value); + std::string* _internal_mutable_execution_id(); + public: + // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; + bool has_component_name() const; + private: + bool _internal_has_component_name() const; public: - // @@protoc_insertion_point(class_scope:viam.service.motion.v1.PlanWithStatus) + void clear_component_name(); + const ::viam::common::v1::ResourceName& component_name() const; + PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_component_name(); + ::viam::common::v1::ResourceName* mutable_component_name(); + void set_allocated_component_name(::viam::common::v1::ResourceName* component_name); + private: + const ::viam::common::v1::ResourceName& _internal_component_name() const; + ::viam::common::v1::ResourceName* _internal_mutable_component_name(); + public: + void unsafe_arena_set_allocated_component_name( + ::viam::common::v1::ResourceName* component_name); + ::viam::common::v1::ResourceName* unsafe_arena_release_component_name(); + + // @@protoc_insertion_point(class_scope:viam.service.motion.v1.Plan) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 3, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::viam::service::motion::v1::PlanStatus > status_history_; - ::viam::service::motion::v1::Plan* plan_; - ::viam::service::motion::v1::PlanStatus* status_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::PlanStep > steps_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr execution_id_; + ::viam::common::v1::ResourceName* component_name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class MoveRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.MoveRequest) */ { +class PlanStep_StepEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + PlanStep_StepEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR PlanStep_StepEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PlanStep_StepEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const PlanStep_StepEntry_DoNotUse& other); + static const PlanStep_StepEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_PlanStep_StepEntry_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.service.motion.v1.PlanStep.StepEntry.key"); + } + static bool ValidateValue(void*) { return true; } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; +}; + +// ------------------------------------------------------------------- + +class PlanStep final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.PlanStep) */ { public: - inline MoveRequest() : MoveRequest(nullptr) {} - ~MoveRequest() override; - template - explicit PROTOBUF_CONSTEXPR MoveRequest(::google::protobuf::internal::ConstantInitialized); + inline PlanStep() : PlanStep(nullptr) {} + ~PlanStep() override; + explicit PROTOBUF_CONSTEXPR PlanStep(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline MoveRequest(const MoveRequest& from) - : MoveRequest(nullptr, from) {} - MoveRequest(MoveRequest&& from) noexcept - : MoveRequest() { + PlanStep(const PlanStep& from); + PlanStep(PlanStep&& from) noexcept + : PlanStep() { *this = ::std::move(from); } - inline MoveRequest& operator=(const MoveRequest& from) { + inline PlanStep& operator=(const PlanStep& from) { CopyFrom(from); return *this; } - inline MoveRequest& operator=(MoveRequest&& from) noexcept { + inline PlanStep& operator=(PlanStep&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -5527,264 +4936,155 @@ class MoveRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const MoveRequest& default_instance() { + static const PlanStep& default_instance() { return *internal_default_instance(); } - static inline const MoveRequest* internal_default_instance() { - return reinterpret_cast( - &_MoveRequest_default_instance_); + static inline const PlanStep* internal_default_instance() { + return reinterpret_cast( + &_PlanStep_default_instance_); } static constexpr int kIndexInFileMessages = - 0; + 26; - friend void swap(MoveRequest& a, MoveRequest& b) { + friend void swap(PlanStep& a, PlanStep& b) { a.Swap(&b); } - inline void Swap(MoveRequest* other) { + inline void Swap(PlanStep* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MoveRequest* other) { + void UnsafeArenaSwap(PlanStep* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MoveRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const MoveRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const MoveRequest& from) { - MoveRequest::MergeImpl(*this, from); + PlanStep* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const PlanStep& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const PlanStep& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(MoveRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(PlanStep* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.motion.v1.MoveRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.motion.v1.PlanStep"; } protected: - explicit MoveRequest(::google::protobuf::Arena* arena); - MoveRequest(::google::protobuf::Arena* arena, const MoveRequest& from); + explicit PlanStep(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- + // accessors ------------------------------------------------------- enum : int { - kNameFieldNumber = 1, - kDestinationFieldNumber = 2, - kComponentNameFieldNumber = 3, - kWorldStateFieldNumber = 4, - kConstraintsFieldNumber = 5, - kExtraFieldNumber = 99, + kStepFieldNumber = 1, }; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - - public: - // .viam.common.v1.PoseInFrame destination = 2 [json_name = "destination"]; - bool has_destination() const; - void clear_destination() ; - const ::viam::common::v1::PoseInFrame& destination() const; - PROTOBUF_NODISCARD ::viam::common::v1::PoseInFrame* release_destination(); - ::viam::common::v1::PoseInFrame* mutable_destination(); - void set_allocated_destination(::viam::common::v1::PoseInFrame* value); - void unsafe_arena_set_allocated_destination(::viam::common::v1::PoseInFrame* value); - ::viam::common::v1::PoseInFrame* unsafe_arena_release_destination(); - - private: - const ::viam::common::v1::PoseInFrame& _internal_destination() const; - ::viam::common::v1::PoseInFrame* _internal_mutable_destination(); - - public: - // .viam.common.v1.ResourceName component_name = 3 [json_name = "componentName"]; - bool has_component_name() const; - void clear_component_name() ; - const ::viam::common::v1::ResourceName& component_name() const; - PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_component_name(); - ::viam::common::v1::ResourceName* mutable_component_name(); - void set_allocated_component_name(::viam::common::v1::ResourceName* value); - void unsafe_arena_set_allocated_component_name(::viam::common::v1::ResourceName* value); - ::viam::common::v1::ResourceName* unsafe_arena_release_component_name(); - - private: - const ::viam::common::v1::ResourceName& _internal_component_name() const; - ::viam::common::v1::ResourceName* _internal_mutable_component_name(); - - public: - // optional .viam.common.v1.WorldState world_state = 4 [json_name = "worldState"]; - bool has_world_state() const; - void clear_world_state() ; - const ::viam::common::v1::WorldState& world_state() const; - PROTOBUF_NODISCARD ::viam::common::v1::WorldState* release_world_state(); - ::viam::common::v1::WorldState* mutable_world_state(); - void set_allocated_world_state(::viam::common::v1::WorldState* value); - void unsafe_arena_set_allocated_world_state(::viam::common::v1::WorldState* value); - ::viam::common::v1::WorldState* unsafe_arena_release_world_state(); - + // map step = 1 [json_name = "step"]; + int step_size() const; private: - const ::viam::common::v1::WorldState& _internal_world_state() const; - ::viam::common::v1::WorldState* _internal_mutable_world_state(); - + int _internal_step_size() const; public: - // optional .viam.service.motion.v1.Constraints constraints = 5 [json_name = "constraints"]; - bool has_constraints() const; - void clear_constraints() ; - const ::viam::service::motion::v1::Constraints& constraints() const; - PROTOBUF_NODISCARD ::viam::service::motion::v1::Constraints* release_constraints(); - ::viam::service::motion::v1::Constraints* mutable_constraints(); - void set_allocated_constraints(::viam::service::motion::v1::Constraints* value); - void unsafe_arena_set_allocated_constraints(::viam::service::motion::v1::Constraints* value); - ::viam::service::motion::v1::Constraints* unsafe_arena_release_constraints(); - + void clear_step(); private: - const ::viam::service::motion::v1::Constraints& _internal_constraints() const; - ::viam::service::motion::v1::Constraints* _internal_mutable_constraints(); - + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::service::motion::v1::ComponentState >& + _internal_step() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::service::motion::v1::ComponentState >* + _internal_mutable_step(); public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::service::motion::v1::ComponentState >& + step() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::service::motion::v1::ComponentState >* + mutable_step(); - public: - // @@protoc_insertion_point(class_scope:viam.service.motion.v1.MoveRequest) + // @@protoc_insertion_point(class_scope:viam.service.motion.v1.PlanStep) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 6, 5, - 47, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::viam::common::v1::PoseInFrame* destination_; - ::viam::common::v1::ResourceName* component_name_; - ::viam::common::v1::WorldState* world_state_; - ::viam::service::motion::v1::Constraints* constraints_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + PlanStep_StepEntry_DoNotUse, + std::string, ::viam::service::motion::v1::ComponentState, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> step_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetPlanResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.GetPlanResponse) */ { +class ComponentState final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.ComponentState) */ { public: - inline GetPlanResponse() : GetPlanResponse(nullptr) {} - ~GetPlanResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetPlanResponse(::google::protobuf::internal::ConstantInitialized); + inline ComponentState() : ComponentState(nullptr) {} + ~ComponentState() override; + explicit PROTOBUF_CONSTEXPR ComponentState(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetPlanResponse(const GetPlanResponse& from) - : GetPlanResponse(nullptr, from) {} - GetPlanResponse(GetPlanResponse&& from) noexcept - : GetPlanResponse() { + ComponentState(const ComponentState& from); + ComponentState(ComponentState&& from) noexcept + : ComponentState() { *this = ::std::move(from); } - inline GetPlanResponse& operator=(const GetPlanResponse& from) { + inline ComponentState& operator=(const ComponentState& from) { CopyFrom(from); return *this; } - inline GetPlanResponse& operator=(GetPlanResponse&& from) noexcept { + inline ComponentState& operator=(ComponentState&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -5794,700 +5094,615 @@ class GetPlanResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetPlanResponse& default_instance() { + static const ComponentState& default_instance() { return *internal_default_instance(); } - static inline const GetPlanResponse* internal_default_instance() { - return reinterpret_cast( - &_GetPlanResponse_default_instance_); + static inline const ComponentState* internal_default_instance() { + return reinterpret_cast( + &_ComponentState_default_instance_); } static constexpr int kIndexInFileMessages = - 15; + 27; - friend void swap(GetPlanResponse& a, GetPlanResponse& b) { + friend void swap(ComponentState& a, ComponentState& b) { a.Swap(&b); } - inline void Swap(GetPlanResponse* other) { + inline void Swap(ComponentState* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetPlanResponse* other) { + void UnsafeArenaSwap(ComponentState* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetPlanResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetPlanResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetPlanResponse& from) { - GetPlanResponse::MergeImpl(*this, from); + ComponentState* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ComponentState& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ComponentState& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetPlanResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(ComponentState* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.motion.v1.GetPlanResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.motion.v1.ComponentState"; } protected: - explicit GetPlanResponse(::google::protobuf::Arena* arena); - GetPlanResponse(::google::protobuf::Arena* arena, const GetPlanResponse& from); + explicit ComponentState(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kReplanHistoryFieldNumber = 2, - kCurrentPlanWithStatusFieldNumber = 1, + kPoseFieldNumber = 1, }; - // repeated .viam.service.motion.v1.PlanWithStatus replan_history = 2 [json_name = "replanHistory"]; - int replan_history_size() const; + // .viam.common.v1.Pose pose = 1 [json_name = "pose"]; + bool has_pose() const; private: - int _internal_replan_history_size() const; - + bool _internal_has_pose() const; public: - void clear_replan_history() ; - ::viam::service::motion::v1::PlanWithStatus* mutable_replan_history(int index); - ::google::protobuf::RepeatedPtrField< ::viam::service::motion::v1::PlanWithStatus >* - mutable_replan_history(); + void clear_pose(); + const ::viam::common::v1::Pose& pose() const; + PROTOBUF_NODISCARD ::viam::common::v1::Pose* release_pose(); + ::viam::common::v1::Pose* mutable_pose(); + void set_allocated_pose(::viam::common::v1::Pose* pose); private: - const ::google::protobuf::RepeatedPtrField<::viam::service::motion::v1::PlanWithStatus>& _internal_replan_history() const; - ::google::protobuf::RepeatedPtrField<::viam::service::motion::v1::PlanWithStatus>* _internal_mutable_replan_history(); + const ::viam::common::v1::Pose& _internal_pose() const; + ::viam::common::v1::Pose* _internal_mutable_pose(); public: - const ::viam::service::motion::v1::PlanWithStatus& replan_history(int index) const; - ::viam::service::motion::v1::PlanWithStatus* add_replan_history(); - const ::google::protobuf::RepeatedPtrField< ::viam::service::motion::v1::PlanWithStatus >& - replan_history() const; - // .viam.service.motion.v1.PlanWithStatus current_plan_with_status = 1 [json_name = "currentPlanWithStatus"]; - bool has_current_plan_with_status() const; - void clear_current_plan_with_status() ; - const ::viam::service::motion::v1::PlanWithStatus& current_plan_with_status() const; - PROTOBUF_NODISCARD ::viam::service::motion::v1::PlanWithStatus* release_current_plan_with_status(); - ::viam::service::motion::v1::PlanWithStatus* mutable_current_plan_with_status(); - void set_allocated_current_plan_with_status(::viam::service::motion::v1::PlanWithStatus* value); - void unsafe_arena_set_allocated_current_plan_with_status(::viam::service::motion::v1::PlanWithStatus* value); - ::viam::service::motion::v1::PlanWithStatus* unsafe_arena_release_current_plan_with_status(); - - private: - const ::viam::service::motion::v1::PlanWithStatus& _internal_current_plan_with_status() const; - ::viam::service::motion::v1::PlanWithStatus* _internal_mutable_current_plan_with_status(); + void unsafe_arena_set_allocated_pose( + ::viam::common::v1::Pose* pose); + ::viam::common::v1::Pose* unsafe_arena_release_pose(); - public: - // @@protoc_insertion_point(class_scope:viam.service.motion.v1.GetPlanResponse) + // @@protoc_insertion_point(class_scope:viam.service.motion.v1.ComponentState) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 2, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::viam::service::motion::v1::PlanWithStatus > replan_history_; - ::viam::service::motion::v1::PlanWithStatus* current_plan_with_status_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::viam::common::v1::Pose* pose_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; }; - // =================================================================== - - // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ -// ------------------------------------------------------------------- - // MoveRequest // string name = 1 [json_name = "name"]; inline void MoveRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& MoveRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& MoveRequest::name() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void MoveRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void MoveRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.motion.v1.MoveRequest.name) } -inline std::string* MoveRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* MoveRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveRequest.name) return _s; } inline const std::string& MoveRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void MoveRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* MoveRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* MoveRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveRequest.name) - return _impl_.name_.Release(); -} -inline void MoveRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void MoveRequest::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.service.motion.v1.MoveRequest.name) } // .viam.common.v1.PoseInFrame destination = 2 [json_name = "destination"]; +inline bool MoveRequest::_internal_has_destination() const { + return this != internal_default_instance() && destination_ != nullptr; +} inline bool MoveRequest::has_destination() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.destination_ != nullptr); - return value; + return _internal_has_destination(); } inline const ::viam::common::v1::PoseInFrame& MoveRequest::_internal_destination() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::common::v1::PoseInFrame* p = _impl_.destination_; - return p != nullptr ? *p : reinterpret_cast(::viam::common::v1::_PoseInFrame_default_instance_); + const ::viam::common::v1::PoseInFrame* p = destination_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_PoseInFrame_default_instance_); } -inline const ::viam::common::v1::PoseInFrame& MoveRequest::destination() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::PoseInFrame& MoveRequest::destination() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveRequest.destination) return _internal_destination(); } -inline void MoveRequest::unsafe_arena_set_allocated_destination(::viam::common::v1::PoseInFrame* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.destination_); +inline void MoveRequest::unsafe_arena_set_allocated_destination( + ::viam::common::v1::PoseInFrame* destination) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(destination_); } - _impl_.destination_ = reinterpret_cast<::viam::common::v1::PoseInFrame*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + destination_ = destination; + if (destination) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.MoveRequest.destination) } inline ::viam::common::v1::PoseInFrame* MoveRequest::release_destination() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::PoseInFrame* released = _impl_.destination_; - _impl_.destination_ = nullptr; + + ::viam::common::v1::PoseInFrame* temp = destination_; + destination_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::common::v1::PoseInFrame* MoveRequest::unsafe_arena_release_destination() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveRequest.destination) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::PoseInFrame* temp = _impl_.destination_; - _impl_.destination_ = nullptr; + + ::viam::common::v1::PoseInFrame* temp = destination_; + destination_ = nullptr; return temp; } inline ::viam::common::v1::PoseInFrame* MoveRequest::_internal_mutable_destination() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.destination_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::PoseInFrame>(GetArena()); - _impl_.destination_ = reinterpret_cast<::viam::common::v1::PoseInFrame*>(p); + + if (destination_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::PoseInFrame>(GetArenaForAllocation()); + destination_ = p; } - return _impl_.destination_; + return destination_; } -inline ::viam::common::v1::PoseInFrame* MoveRequest::mutable_destination() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::PoseInFrame* MoveRequest::mutable_destination() { ::viam::common::v1::PoseInFrame* _msg = _internal_mutable_destination(); // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveRequest.destination) return _msg; } -inline void MoveRequest::set_allocated_destination(::viam::common::v1::PoseInFrame* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void MoveRequest::set_allocated_destination(::viam::common::v1::PoseInFrame* destination) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.destination_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(destination_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (destination) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(destination)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + destination = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, destination, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.destination_ = reinterpret_cast<::viam::common::v1::PoseInFrame*>(value); + destination_ = destination; // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveRequest.destination) } // .viam.common.v1.ResourceName component_name = 3 [json_name = "componentName"]; +inline bool MoveRequest::_internal_has_component_name() const { + return this != internal_default_instance() && component_name_ != nullptr; +} inline bool MoveRequest::has_component_name() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.component_name_ != nullptr); - return value; + return _internal_has_component_name(); } inline const ::viam::common::v1::ResourceName& MoveRequest::_internal_component_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::common::v1::ResourceName* p = _impl_.component_name_; - return p != nullptr ? *p : reinterpret_cast(::viam::common::v1::_ResourceName_default_instance_); + const ::viam::common::v1::ResourceName* p = component_name_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_ResourceName_default_instance_); } -inline const ::viam::common::v1::ResourceName& MoveRequest::component_name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::ResourceName& MoveRequest::component_name() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveRequest.component_name) return _internal_component_name(); } -inline void MoveRequest::unsafe_arena_set_allocated_component_name(::viam::common::v1::ResourceName* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.component_name_); +inline void MoveRequest::unsafe_arena_set_allocated_component_name( + ::viam::common::v1::ResourceName* component_name) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_); } - _impl_.component_name_ = reinterpret_cast<::viam::common::v1::ResourceName*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + component_name_ = component_name; + if (component_name) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.MoveRequest.component_name) } inline ::viam::common::v1::ResourceName* MoveRequest::release_component_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::viam::common::v1::ResourceName* released = _impl_.component_name_; - _impl_.component_name_ = nullptr; + + ::viam::common::v1::ResourceName* temp = component_name_; + component_name_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::common::v1::ResourceName* MoveRequest::unsafe_arena_release_component_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveRequest.component_name) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::viam::common::v1::ResourceName* temp = _impl_.component_name_; - _impl_.component_name_ = nullptr; + + ::viam::common::v1::ResourceName* temp = component_name_; + component_name_ = nullptr; return temp; } inline ::viam::common::v1::ResourceName* MoveRequest::_internal_mutable_component_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.component_name_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArena()); - _impl_.component_name_ = reinterpret_cast<::viam::common::v1::ResourceName*>(p); + + if (component_name_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArenaForAllocation()); + component_name_ = p; } - return _impl_.component_name_; + return component_name_; } -inline ::viam::common::v1::ResourceName* MoveRequest::mutable_component_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::ResourceName* MoveRequest::mutable_component_name() { ::viam::common::v1::ResourceName* _msg = _internal_mutable_component_name(); // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveRequest.component_name) return _msg; } -inline void MoveRequest::set_allocated_component_name(::viam::common::v1::ResourceName* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void MoveRequest::set_allocated_component_name(::viam::common::v1::ResourceName* component_name) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.component_name_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (component_name) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + component_name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, component_name, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.component_name_ = reinterpret_cast<::viam::common::v1::ResourceName*>(value); + component_name_ = component_name; // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveRequest.component_name) } // optional .viam.common.v1.WorldState world_state = 4 [json_name = "worldState"]; -inline bool MoveRequest::has_world_state() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || _impl_.world_state_ != nullptr); +inline bool MoveRequest::_internal_has_world_state() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || world_state_ != nullptr); return value; } +inline bool MoveRequest::has_world_state() const { + return _internal_has_world_state(); +} inline const ::viam::common::v1::WorldState& MoveRequest::_internal_world_state() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::common::v1::WorldState* p = _impl_.world_state_; - return p != nullptr ? *p : reinterpret_cast(::viam::common::v1::_WorldState_default_instance_); + const ::viam::common::v1::WorldState* p = world_state_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_WorldState_default_instance_); } -inline const ::viam::common::v1::WorldState& MoveRequest::world_state() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::WorldState& MoveRequest::world_state() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveRequest.world_state) return _internal_world_state(); } -inline void MoveRequest::unsafe_arena_set_allocated_world_state(::viam::common::v1::WorldState* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.world_state_); +inline void MoveRequest::unsafe_arena_set_allocated_world_state( + ::viam::common::v1::WorldState* world_state) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(world_state_); } - _impl_.world_state_ = reinterpret_cast<::viam::common::v1::WorldState*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000004u; + world_state_ = world_state; + if (world_state) { + _has_bits_[0] |= 0x00000001u; } else { - _impl_._has_bits_[0] &= ~0x00000004u; + _has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.MoveRequest.world_state) } inline ::viam::common::v1::WorldState* MoveRequest::release_world_state() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000004u; - ::viam::common::v1::WorldState* released = _impl_.world_state_; - _impl_.world_state_ = nullptr; + _has_bits_[0] &= ~0x00000001u; + ::viam::common::v1::WorldState* temp = world_state_; + world_state_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::common::v1::WorldState* MoveRequest::unsafe_arena_release_world_state() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveRequest.world_state) - - _impl_._has_bits_[0] &= ~0x00000004u; - ::viam::common::v1::WorldState* temp = _impl_.world_state_; - _impl_.world_state_ = nullptr; + _has_bits_[0] &= ~0x00000001u; + ::viam::common::v1::WorldState* temp = world_state_; + world_state_ = nullptr; return temp; } inline ::viam::common::v1::WorldState* MoveRequest::_internal_mutable_world_state() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - if (_impl_.world_state_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::WorldState>(GetArena()); - _impl_.world_state_ = reinterpret_cast<::viam::common::v1::WorldState*>(p); + _has_bits_[0] |= 0x00000001u; + if (world_state_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::WorldState>(GetArenaForAllocation()); + world_state_ = p; } - return _impl_.world_state_; + return world_state_; } -inline ::viam::common::v1::WorldState* MoveRequest::mutable_world_state() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::WorldState* MoveRequest::mutable_world_state() { ::viam::common::v1::WorldState* _msg = _internal_mutable_world_state(); // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveRequest.world_state) return _msg; } -inline void MoveRequest::set_allocated_world_state(::viam::common::v1::WorldState* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void MoveRequest::set_allocated_world_state(::viam::common::v1::WorldState* world_state) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.world_state_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(world_state_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (world_state) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(world_state)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + world_state = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, world_state, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000004u; + _has_bits_[0] |= 0x00000001u; } else { - _impl_._has_bits_[0] &= ~0x00000004u; + _has_bits_[0] &= ~0x00000001u; } - - _impl_.world_state_ = reinterpret_cast<::viam::common::v1::WorldState*>(value); + world_state_ = world_state; // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveRequest.world_state) } // optional .viam.service.motion.v1.Constraints constraints = 5 [json_name = "constraints"]; -inline bool MoveRequest::has_constraints() const { - bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; - PROTOBUF_ASSUME(!value || _impl_.constraints_ != nullptr); +inline bool MoveRequest::_internal_has_constraints() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + PROTOBUF_ASSUME(!value || constraints_ != nullptr); return value; } +inline bool MoveRequest::has_constraints() const { + return _internal_has_constraints(); +} inline void MoveRequest::clear_constraints() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.constraints_ != nullptr) _impl_.constraints_->Clear(); - _impl_._has_bits_[0] &= ~0x00000008u; + if (constraints_ != nullptr) constraints_->Clear(); + _has_bits_[0] &= ~0x00000002u; } inline const ::viam::service::motion::v1::Constraints& MoveRequest::_internal_constraints() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::service::motion::v1::Constraints* p = _impl_.constraints_; - return p != nullptr ? *p : reinterpret_cast(::viam::service::motion::v1::_Constraints_default_instance_); + const ::viam::service::motion::v1::Constraints* p = constraints_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::service::motion::v1::_Constraints_default_instance_); } -inline const ::viam::service::motion::v1::Constraints& MoveRequest::constraints() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::service::motion::v1::Constraints& MoveRequest::constraints() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveRequest.constraints) return _internal_constraints(); } -inline void MoveRequest::unsafe_arena_set_allocated_constraints(::viam::service::motion::v1::Constraints* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.constraints_); +inline void MoveRequest::unsafe_arena_set_allocated_constraints( + ::viam::service::motion::v1::Constraints* constraints) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(constraints_); } - _impl_.constraints_ = reinterpret_cast<::viam::service::motion::v1::Constraints*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000008u; + constraints_ = constraints; + if (constraints) { + _has_bits_[0] |= 0x00000002u; } else { - _impl_._has_bits_[0] &= ~0x00000008u; + _has_bits_[0] &= ~0x00000002u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.MoveRequest.constraints) } inline ::viam::service::motion::v1::Constraints* MoveRequest::release_constraints() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000008u; - ::viam::service::motion::v1::Constraints* released = _impl_.constraints_; - _impl_.constraints_ = nullptr; + _has_bits_[0] &= ~0x00000002u; + ::viam::service::motion::v1::Constraints* temp = constraints_; + constraints_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::service::motion::v1::Constraints* MoveRequest::unsafe_arena_release_constraints() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveRequest.constraints) - - _impl_._has_bits_[0] &= ~0x00000008u; - ::viam::service::motion::v1::Constraints* temp = _impl_.constraints_; - _impl_.constraints_ = nullptr; + _has_bits_[0] &= ~0x00000002u; + ::viam::service::motion::v1::Constraints* temp = constraints_; + constraints_ = nullptr; return temp; } inline ::viam::service::motion::v1::Constraints* MoveRequest::_internal_mutable_constraints() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000008u; - if (_impl_.constraints_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::service::motion::v1::Constraints>(GetArena()); - _impl_.constraints_ = reinterpret_cast<::viam::service::motion::v1::Constraints*>(p); + _has_bits_[0] |= 0x00000002u; + if (constraints_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::service::motion::v1::Constraints>(GetArenaForAllocation()); + constraints_ = p; } - return _impl_.constraints_; + return constraints_; } -inline ::viam::service::motion::v1::Constraints* MoveRequest::mutable_constraints() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::service::motion::v1::Constraints* MoveRequest::mutable_constraints() { ::viam::service::motion::v1::Constraints* _msg = _internal_mutable_constraints(); // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveRequest.constraints) return _msg; } -inline void MoveRequest::set_allocated_constraints(::viam::service::motion::v1::Constraints* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void MoveRequest::set_allocated_constraints(::viam::service::motion::v1::Constraints* constraints) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::service::motion::v1::Constraints*>(_impl_.constraints_); + delete constraints_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::service::motion::v1::Constraints*>(value)->GetArena(); + if (constraints) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(constraints); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + constraints = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, constraints, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000008u; + _has_bits_[0] |= 0x00000002u; } else { - _impl_._has_bits_[0] &= ~0x00000008u; + _has_bits_[0] &= ~0x00000002u; } - - _impl_.constraints_ = reinterpret_cast<::viam::service::motion::v1::Constraints*>(value); + constraints_ = constraints; // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveRequest.constraints) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool MoveRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool MoveRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& MoveRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& MoveRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& MoveRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& MoveRequest::extra() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveRequest.extra) return _internal_extra(); } -inline void MoveRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void MoveRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000010u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000010u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.MoveRequest.extra) } -inline ::google::protobuf::Struct* MoveRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000010u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* MoveRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000010u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* MoveRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000010u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* MoveRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveRequest.extra) return _msg; } -inline void MoveRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void MoveRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000010u; + } else { - _impl_._has_bits_[0] &= ~0x00000010u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveRequest.extra) } @@ -6497,26 +5712,23 @@ inline void MoveRequest::set_allocated_extra(::google::protobuf::Struct* value) // bool success = 1 [json_name = "success"]; inline void MoveResponse::clear_success() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.success_ = false; + success_ = false; +} +inline bool MoveResponse::_internal_success() const { + return success_; } inline bool MoveResponse::success() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveResponse.success) return _internal_success(); } +inline void MoveResponse::_internal_set_success(bool value) { + + success_ = value; +} inline void MoveResponse::set_success(bool value) { _internal_set_success(value); // @@protoc_insertion_point(field_set:viam.service.motion.v1.MoveResponse.success) } -inline bool MoveResponse::_internal_success() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.success_; -} -inline void MoveResponse::_internal_set_success(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.success_ = value; -} // ------------------------------------------------------------------- @@ -6524,559 +5736,518 @@ inline void MoveResponse::_internal_set_success(bool value) { // string name = 1 [json_name = "name"]; inline void MoveOnMapRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& MoveOnMapRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& MoveOnMapRequest::name() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveOnMapRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void MoveOnMapRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void MoveOnMapRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.motion.v1.MoveOnMapRequest.name) } -inline std::string* MoveOnMapRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* MoveOnMapRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveOnMapRequest.name) return _s; } inline const std::string& MoveOnMapRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void MoveOnMapRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* MoveOnMapRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* MoveOnMapRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveOnMapRequest.name) - return _impl_.name_.Release(); -} -inline void MoveOnMapRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void MoveOnMapRequest::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.service.motion.v1.MoveOnMapRequest.name) } // .viam.common.v1.Pose destination = 2 [json_name = "destination"]; +inline bool MoveOnMapRequest::_internal_has_destination() const { + return this != internal_default_instance() && destination_ != nullptr; +} inline bool MoveOnMapRequest::has_destination() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.destination_ != nullptr); - return value; + return _internal_has_destination(); } inline const ::viam::common::v1::Pose& MoveOnMapRequest::_internal_destination() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::common::v1::Pose* p = _impl_.destination_; - return p != nullptr ? *p : reinterpret_cast(::viam::common::v1::_Pose_default_instance_); + const ::viam::common::v1::Pose* p = destination_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_Pose_default_instance_); } -inline const ::viam::common::v1::Pose& MoveOnMapRequest::destination() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::Pose& MoveOnMapRequest::destination() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveOnMapRequest.destination) return _internal_destination(); } -inline void MoveOnMapRequest::unsafe_arena_set_allocated_destination(::viam::common::v1::Pose* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.destination_); +inline void MoveOnMapRequest::unsafe_arena_set_allocated_destination( + ::viam::common::v1::Pose* destination) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(destination_); } - _impl_.destination_ = reinterpret_cast<::viam::common::v1::Pose*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + destination_ = destination; + if (destination) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.MoveOnMapRequest.destination) } inline ::viam::common::v1::Pose* MoveOnMapRequest::release_destination() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::Pose* released = _impl_.destination_; - _impl_.destination_ = nullptr; + + ::viam::common::v1::Pose* temp = destination_; + destination_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::common::v1::Pose* MoveOnMapRequest::unsafe_arena_release_destination() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveOnMapRequest.destination) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::Pose* temp = _impl_.destination_; - _impl_.destination_ = nullptr; + + ::viam::common::v1::Pose* temp = destination_; + destination_ = nullptr; return temp; } inline ::viam::common::v1::Pose* MoveOnMapRequest::_internal_mutable_destination() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.destination_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::Pose>(GetArena()); - _impl_.destination_ = reinterpret_cast<::viam::common::v1::Pose*>(p); + + if (destination_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::Pose>(GetArenaForAllocation()); + destination_ = p; } - return _impl_.destination_; + return destination_; } -inline ::viam::common::v1::Pose* MoveOnMapRequest::mutable_destination() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::Pose* MoveOnMapRequest::mutable_destination() { ::viam::common::v1::Pose* _msg = _internal_mutable_destination(); // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveOnMapRequest.destination) return _msg; } -inline void MoveOnMapRequest::set_allocated_destination(::viam::common::v1::Pose* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void MoveOnMapRequest::set_allocated_destination(::viam::common::v1::Pose* destination) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.destination_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(destination_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (destination) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(destination)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + destination = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, destination, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.destination_ = reinterpret_cast<::viam::common::v1::Pose*>(value); + destination_ = destination; // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveOnMapRequest.destination) } // .viam.common.v1.ResourceName component_name = 3 [json_name = "componentName"]; +inline bool MoveOnMapRequest::_internal_has_component_name() const { + return this != internal_default_instance() && component_name_ != nullptr; +} inline bool MoveOnMapRequest::has_component_name() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.component_name_ != nullptr); - return value; + return _internal_has_component_name(); } inline const ::viam::common::v1::ResourceName& MoveOnMapRequest::_internal_component_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::common::v1::ResourceName* p = _impl_.component_name_; - return p != nullptr ? *p : reinterpret_cast(::viam::common::v1::_ResourceName_default_instance_); + const ::viam::common::v1::ResourceName* p = component_name_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_ResourceName_default_instance_); } -inline const ::viam::common::v1::ResourceName& MoveOnMapRequest::component_name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::ResourceName& MoveOnMapRequest::component_name() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveOnMapRequest.component_name) return _internal_component_name(); } -inline void MoveOnMapRequest::unsafe_arena_set_allocated_component_name(::viam::common::v1::ResourceName* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.component_name_); +inline void MoveOnMapRequest::unsafe_arena_set_allocated_component_name( + ::viam::common::v1::ResourceName* component_name) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_); } - _impl_.component_name_ = reinterpret_cast<::viam::common::v1::ResourceName*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + component_name_ = component_name; + if (component_name) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.MoveOnMapRequest.component_name) } inline ::viam::common::v1::ResourceName* MoveOnMapRequest::release_component_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::viam::common::v1::ResourceName* released = _impl_.component_name_; - _impl_.component_name_ = nullptr; + + ::viam::common::v1::ResourceName* temp = component_name_; + component_name_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::common::v1::ResourceName* MoveOnMapRequest::unsafe_arena_release_component_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveOnMapRequest.component_name) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::viam::common::v1::ResourceName* temp = _impl_.component_name_; - _impl_.component_name_ = nullptr; + + ::viam::common::v1::ResourceName* temp = component_name_; + component_name_ = nullptr; return temp; } inline ::viam::common::v1::ResourceName* MoveOnMapRequest::_internal_mutable_component_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.component_name_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArena()); - _impl_.component_name_ = reinterpret_cast<::viam::common::v1::ResourceName*>(p); + + if (component_name_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArenaForAllocation()); + component_name_ = p; } - return _impl_.component_name_; + return component_name_; } -inline ::viam::common::v1::ResourceName* MoveOnMapRequest::mutable_component_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::ResourceName* MoveOnMapRequest::mutable_component_name() { ::viam::common::v1::ResourceName* _msg = _internal_mutable_component_name(); // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveOnMapRequest.component_name) return _msg; } -inline void MoveOnMapRequest::set_allocated_component_name(::viam::common::v1::ResourceName* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void MoveOnMapRequest::set_allocated_component_name(::viam::common::v1::ResourceName* component_name) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.component_name_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (component_name) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + component_name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, component_name, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.component_name_ = reinterpret_cast<::viam::common::v1::ResourceName*>(value); + component_name_ = component_name; // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveOnMapRequest.component_name) } // .viam.common.v1.ResourceName slam_service_name = 4 [json_name = "slamServiceName"]; +inline bool MoveOnMapRequest::_internal_has_slam_service_name() const { + return this != internal_default_instance() && slam_service_name_ != nullptr; +} inline bool MoveOnMapRequest::has_slam_service_name() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || _impl_.slam_service_name_ != nullptr); - return value; + return _internal_has_slam_service_name(); } inline const ::viam::common::v1::ResourceName& MoveOnMapRequest::_internal_slam_service_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::common::v1::ResourceName* p = _impl_.slam_service_name_; - return p != nullptr ? *p : reinterpret_cast(::viam::common::v1::_ResourceName_default_instance_); + const ::viam::common::v1::ResourceName* p = slam_service_name_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_ResourceName_default_instance_); } -inline const ::viam::common::v1::ResourceName& MoveOnMapRequest::slam_service_name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::ResourceName& MoveOnMapRequest::slam_service_name() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveOnMapRequest.slam_service_name) return _internal_slam_service_name(); } -inline void MoveOnMapRequest::unsafe_arena_set_allocated_slam_service_name(::viam::common::v1::ResourceName* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.slam_service_name_); +inline void MoveOnMapRequest::unsafe_arena_set_allocated_slam_service_name( + ::viam::common::v1::ResourceName* slam_service_name) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(slam_service_name_); } - _impl_.slam_service_name_ = reinterpret_cast<::viam::common::v1::ResourceName*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000004u; + slam_service_name_ = slam_service_name; + if (slam_service_name) { + } else { - _impl_._has_bits_[0] &= ~0x00000004u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.MoveOnMapRequest.slam_service_name) } inline ::viam::common::v1::ResourceName* MoveOnMapRequest::release_slam_service_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000004u; - ::viam::common::v1::ResourceName* released = _impl_.slam_service_name_; - _impl_.slam_service_name_ = nullptr; + + ::viam::common::v1::ResourceName* temp = slam_service_name_; + slam_service_name_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::common::v1::ResourceName* MoveOnMapRequest::unsafe_arena_release_slam_service_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveOnMapRequest.slam_service_name) - - _impl_._has_bits_[0] &= ~0x00000004u; - ::viam::common::v1::ResourceName* temp = _impl_.slam_service_name_; - _impl_.slam_service_name_ = nullptr; + + ::viam::common::v1::ResourceName* temp = slam_service_name_; + slam_service_name_ = nullptr; return temp; } inline ::viam::common::v1::ResourceName* MoveOnMapRequest::_internal_mutable_slam_service_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - if (_impl_.slam_service_name_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArena()); - _impl_.slam_service_name_ = reinterpret_cast<::viam::common::v1::ResourceName*>(p); + + if (slam_service_name_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArenaForAllocation()); + slam_service_name_ = p; } - return _impl_.slam_service_name_; + return slam_service_name_; } -inline ::viam::common::v1::ResourceName* MoveOnMapRequest::mutable_slam_service_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::ResourceName* MoveOnMapRequest::mutable_slam_service_name() { ::viam::common::v1::ResourceName* _msg = _internal_mutable_slam_service_name(); // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveOnMapRequest.slam_service_name) return _msg; } -inline void MoveOnMapRequest::set_allocated_slam_service_name(::viam::common::v1::ResourceName* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void MoveOnMapRequest::set_allocated_slam_service_name(::viam::common::v1::ResourceName* slam_service_name) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.slam_service_name_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(slam_service_name_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (slam_service_name) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(slam_service_name)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + slam_service_name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, slam_service_name, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000004u; + } else { - _impl_._has_bits_[0] &= ~0x00000004u; + } - - _impl_.slam_service_name_ = reinterpret_cast<::viam::common::v1::ResourceName*>(value); + slam_service_name_ = slam_service_name; // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveOnMapRequest.slam_service_name) } // optional .viam.service.motion.v1.MotionConfiguration motion_configuration = 5 [json_name = "motionConfiguration"]; -inline bool MoveOnMapRequest::has_motion_configuration() const { - bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; - PROTOBUF_ASSUME(!value || _impl_.motion_configuration_ != nullptr); +inline bool MoveOnMapRequest::_internal_has_motion_configuration() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || motion_configuration_ != nullptr); return value; } +inline bool MoveOnMapRequest::has_motion_configuration() const { + return _internal_has_motion_configuration(); +} inline void MoveOnMapRequest::clear_motion_configuration() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.motion_configuration_ != nullptr) _impl_.motion_configuration_->Clear(); - _impl_._has_bits_[0] &= ~0x00000008u; + if (motion_configuration_ != nullptr) motion_configuration_->Clear(); + _has_bits_[0] &= ~0x00000001u; } inline const ::viam::service::motion::v1::MotionConfiguration& MoveOnMapRequest::_internal_motion_configuration() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::service::motion::v1::MotionConfiguration* p = _impl_.motion_configuration_; - return p != nullptr ? *p : reinterpret_cast(::viam::service::motion::v1::_MotionConfiguration_default_instance_); + const ::viam::service::motion::v1::MotionConfiguration* p = motion_configuration_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::service::motion::v1::_MotionConfiguration_default_instance_); } -inline const ::viam::service::motion::v1::MotionConfiguration& MoveOnMapRequest::motion_configuration() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::service::motion::v1::MotionConfiguration& MoveOnMapRequest::motion_configuration() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveOnMapRequest.motion_configuration) return _internal_motion_configuration(); } -inline void MoveOnMapRequest::unsafe_arena_set_allocated_motion_configuration(::viam::service::motion::v1::MotionConfiguration* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.motion_configuration_); +inline void MoveOnMapRequest::unsafe_arena_set_allocated_motion_configuration( + ::viam::service::motion::v1::MotionConfiguration* motion_configuration) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(motion_configuration_); } - _impl_.motion_configuration_ = reinterpret_cast<::viam::service::motion::v1::MotionConfiguration*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000008u; + motion_configuration_ = motion_configuration; + if (motion_configuration) { + _has_bits_[0] |= 0x00000001u; } else { - _impl_._has_bits_[0] &= ~0x00000008u; + _has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.MoveOnMapRequest.motion_configuration) } inline ::viam::service::motion::v1::MotionConfiguration* MoveOnMapRequest::release_motion_configuration() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000008u; - ::viam::service::motion::v1::MotionConfiguration* released = _impl_.motion_configuration_; - _impl_.motion_configuration_ = nullptr; + _has_bits_[0] &= ~0x00000001u; + ::viam::service::motion::v1::MotionConfiguration* temp = motion_configuration_; + motion_configuration_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::service::motion::v1::MotionConfiguration* MoveOnMapRequest::unsafe_arena_release_motion_configuration() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveOnMapRequest.motion_configuration) - - _impl_._has_bits_[0] &= ~0x00000008u; - ::viam::service::motion::v1::MotionConfiguration* temp = _impl_.motion_configuration_; - _impl_.motion_configuration_ = nullptr; + _has_bits_[0] &= ~0x00000001u; + ::viam::service::motion::v1::MotionConfiguration* temp = motion_configuration_; + motion_configuration_ = nullptr; return temp; } inline ::viam::service::motion::v1::MotionConfiguration* MoveOnMapRequest::_internal_mutable_motion_configuration() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000008u; - if (_impl_.motion_configuration_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::service::motion::v1::MotionConfiguration>(GetArena()); - _impl_.motion_configuration_ = reinterpret_cast<::viam::service::motion::v1::MotionConfiguration*>(p); + _has_bits_[0] |= 0x00000001u; + if (motion_configuration_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::service::motion::v1::MotionConfiguration>(GetArenaForAllocation()); + motion_configuration_ = p; } - return _impl_.motion_configuration_; + return motion_configuration_; } -inline ::viam::service::motion::v1::MotionConfiguration* MoveOnMapRequest::mutable_motion_configuration() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::service::motion::v1::MotionConfiguration* MoveOnMapRequest::mutable_motion_configuration() { ::viam::service::motion::v1::MotionConfiguration* _msg = _internal_mutable_motion_configuration(); // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveOnMapRequest.motion_configuration) return _msg; } -inline void MoveOnMapRequest::set_allocated_motion_configuration(::viam::service::motion::v1::MotionConfiguration* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void MoveOnMapRequest::set_allocated_motion_configuration(::viam::service::motion::v1::MotionConfiguration* motion_configuration) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::service::motion::v1::MotionConfiguration*>(_impl_.motion_configuration_); + delete motion_configuration_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::service::motion::v1::MotionConfiguration*>(value)->GetArena(); + if (motion_configuration) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(motion_configuration); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + motion_configuration = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, motion_configuration, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000008u; + _has_bits_[0] |= 0x00000001u; } else { - _impl_._has_bits_[0] &= ~0x00000008u; + _has_bits_[0] &= ~0x00000001u; } - - _impl_.motion_configuration_ = reinterpret_cast<::viam::service::motion::v1::MotionConfiguration*>(value); + motion_configuration_ = motion_configuration; // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveOnMapRequest.motion_configuration) } // repeated .viam.common.v1.Geometry obstacles = 6 [json_name = "obstacles"]; inline int MoveOnMapRequest::_internal_obstacles_size() const { - return _internal_obstacles().size(); + return obstacles_.size(); } inline int MoveOnMapRequest::obstacles_size() const { return _internal_obstacles_size(); } -inline ::viam::common::v1::Geometry* MoveOnMapRequest::mutable_obstacles(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::Geometry* MoveOnMapRequest::mutable_obstacles(int index) { // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveOnMapRequest.obstacles) - return _internal_mutable_obstacles()->Mutable(index); + return obstacles_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::common::v1::Geometry>* MoveOnMapRequest::mutable_obstacles() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Geometry >* +MoveOnMapRequest::mutable_obstacles() { // @@protoc_insertion_point(field_mutable_list:viam.service.motion.v1.MoveOnMapRequest.obstacles) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_obstacles(); + return &obstacles_; } -inline const ::viam::common::v1::Geometry& MoveOnMapRequest::obstacles(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::Geometry& MoveOnMapRequest::_internal_obstacles(int index) const { + return obstacles_.Get(index); +} +inline const ::viam::common::v1::Geometry& MoveOnMapRequest::obstacles(int index) const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveOnMapRequest.obstacles) - return _internal_obstacles().Get(index); + return _internal_obstacles(index); +} +inline ::viam::common::v1::Geometry* MoveOnMapRequest::_internal_add_obstacles() { + return obstacles_.Add(); } -inline ::viam::common::v1::Geometry* MoveOnMapRequest::add_obstacles() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::common::v1::Geometry* _add = _internal_mutable_obstacles()->Add(); +inline ::viam::common::v1::Geometry* MoveOnMapRequest::add_obstacles() { + ::viam::common::v1::Geometry* _add = _internal_add_obstacles(); // @@protoc_insertion_point(field_add:viam.service.motion.v1.MoveOnMapRequest.obstacles) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::common::v1::Geometry>& MoveOnMapRequest::obstacles() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Geometry >& +MoveOnMapRequest::obstacles() const { // @@protoc_insertion_point(field_list:viam.service.motion.v1.MoveOnMapRequest.obstacles) - return _internal_obstacles(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::common::v1::Geometry>& -MoveOnMapRequest::_internal_obstacles() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.obstacles_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::common::v1::Geometry>* -MoveOnMapRequest::_internal_mutable_obstacles() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.obstacles_; + return obstacles_; } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool MoveOnMapRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool MoveOnMapRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& MoveOnMapRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& MoveOnMapRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& MoveOnMapRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& MoveOnMapRequest::extra() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveOnMapRequest.extra) return _internal_extra(); } -inline void MoveOnMapRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void MoveOnMapRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000010u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000010u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.MoveOnMapRequest.extra) } -inline ::google::protobuf::Struct* MoveOnMapRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000010u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveOnMapRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* MoveOnMapRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveOnMapRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveOnMapRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000010u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* MoveOnMapRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000010u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveOnMapRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* MoveOnMapRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveOnMapRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveOnMapRequest.extra) return _msg; } -inline void MoveOnMapRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void MoveOnMapRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000010u; + } else { - _impl_._has_bits_[0] &= ~0x00000010u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveOnMapRequest.extra) } @@ -7086,54 +6257,51 @@ inline void MoveOnMapRequest::set_allocated_extra(::google::protobuf::Struct* va // string execution_id = 1 [json_name = "executionId"]; inline void MoveOnMapResponse::clear_execution_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.execution_id_.ClearToEmpty(); + execution_id_.ClearToEmpty(); } -inline const std::string& MoveOnMapResponse::execution_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& MoveOnMapResponse::execution_id() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveOnMapResponse.execution_id) return _internal_execution_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void MoveOnMapResponse::set_execution_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.execution_id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void MoveOnMapResponse::set_execution_id(ArgT0&& arg0, ArgT... args) { + + execution_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.motion.v1.MoveOnMapResponse.execution_id) } -inline std::string* MoveOnMapResponse::mutable_execution_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* MoveOnMapResponse::mutable_execution_id() { std::string* _s = _internal_mutable_execution_id(); // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveOnMapResponse.execution_id) return _s; } inline const std::string& MoveOnMapResponse::_internal_execution_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.execution_id_.Get(); + return execution_id_.Get(); } inline void MoveOnMapResponse::_internal_set_execution_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.execution_id_.Set(value, GetArena()); + + execution_id_.Set(value, GetArenaForAllocation()); } inline std::string* MoveOnMapResponse::_internal_mutable_execution_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.execution_id_.Mutable( GetArena()); + + return execution_id_.Mutable(GetArenaForAllocation()); } inline std::string* MoveOnMapResponse::release_execution_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveOnMapResponse.execution_id) - return _impl_.execution_id_.Release(); -} -inline void MoveOnMapResponse::set_allocated_execution_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.execution_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.execution_id_.IsDefault()) { - _impl_.execution_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return execution_id_.Release(); +} +inline void MoveOnMapResponse::set_allocated_execution_id(std::string* execution_id) { + if (execution_id != nullptr) { + + } else { + + } + execution_id_.SetAllocated(execution_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (execution_id_.IsDefault()) { + execution_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveOnMapResponse.execution_id) } @@ -7142,184 +6310,172 @@ inline void MoveOnMapResponse::set_allocated_execution_id(std::string* 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 { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.vision_service_ != nullptr); - return value; + return _internal_has_vision_service(); } inline const ::viam::common::v1::ResourceName& ObstacleDetector::_internal_vision_service() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::common::v1::ResourceName* p = _impl_.vision_service_; - return p != nullptr ? *p : reinterpret_cast(::viam::common::v1::_ResourceName_default_instance_); + 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 ABSL_ATTRIBUTE_LIFETIME_BOUND { +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* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.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_); } - _impl_.vision_service_ = reinterpret_cast<::viam::common::v1::ResourceName*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + vision_service_ = vision_service; + if (vision_service) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.ObstacleDetector.vision_service) } inline ::viam::common::v1::ResourceName* ObstacleDetector::release_vision_service() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::ResourceName* released = _impl_.vision_service_; - _impl_.vision_service_ = nullptr; + + ::viam::common::v1::ResourceName* temp = vision_service_; + vision_service_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::common::v1::ResourceName* ObstacleDetector::unsafe_arena_release_vision_service() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.motion.v1.ObstacleDetector.vision_service) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::ResourceName* temp = _impl_.vision_service_; - _impl_.vision_service_ = nullptr; + + ::viam::common::v1::ResourceName* temp = vision_service_; + vision_service_ = nullptr; return temp; } inline ::viam::common::v1::ResourceName* ObstacleDetector::_internal_mutable_vision_service() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.vision_service_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArena()); - _impl_.vision_service_ = reinterpret_cast<::viam::common::v1::ResourceName*>(p); + + if (vision_service_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArenaForAllocation()); + vision_service_ = p; } - return _impl_.vision_service_; + return vision_service_; } -inline ::viam::common::v1::ResourceName* ObstacleDetector::mutable_vision_service() ABSL_ATTRIBUTE_LIFETIME_BOUND { +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* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +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<::google::protobuf::MessageLite*>(_impl_.vision_service_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(vision_service_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + vision_service = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, vision_service, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.vision_service_ = reinterpret_cast<::viam::common::v1::ResourceName*>(value); + 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 { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.camera_ != nullptr); - return value; + return _internal_has_camera(); } inline const ::viam::common::v1::ResourceName& ObstacleDetector::_internal_camera() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::common::v1::ResourceName* p = _impl_.camera_; - return p != nullptr ? *p : reinterpret_cast(::viam::common::v1::_ResourceName_default_instance_); + 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 ABSL_ATTRIBUTE_LIFETIME_BOUND { +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* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.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_); } - _impl_.camera_ = reinterpret_cast<::viam::common::v1::ResourceName*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + camera_ = camera; + if (camera) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.ObstacleDetector.camera) } inline ::viam::common::v1::ResourceName* ObstacleDetector::release_camera() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::viam::common::v1::ResourceName* released = _impl_.camera_; - _impl_.camera_ = nullptr; + + ::viam::common::v1::ResourceName* temp = camera_; + camera_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::common::v1::ResourceName* ObstacleDetector::unsafe_arena_release_camera() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.motion.v1.ObstacleDetector.camera) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::viam::common::v1::ResourceName* temp = _impl_.camera_; - _impl_.camera_ = nullptr; + + ::viam::common::v1::ResourceName* temp = camera_; + camera_ = nullptr; return temp; } inline ::viam::common::v1::ResourceName* ObstacleDetector::_internal_mutable_camera() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.camera_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArena()); - _impl_.camera_ = reinterpret_cast<::viam::common::v1::ResourceName*>(p); + + if (camera_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArenaForAllocation()); + camera_ = p; } - return _impl_.camera_; + return camera_; } -inline ::viam::common::v1::ResourceName* ObstacleDetector::mutable_camera() ABSL_ATTRIBUTE_LIFETIME_BOUND { +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* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +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<::google::protobuf::MessageLite*>(_impl_.camera_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(camera_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + camera = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, camera, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.camera_ = reinterpret_cast<::viam::common::v1::ResourceName*>(value); + camera_ = camera; // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.ObstacleDetector.camera) } @@ -7329,192 +6485,183 @@ inline void ObstacleDetector::set_allocated_camera(::viam::common::v1::ResourceN // repeated .viam.service.motion.v1.ObstacleDetector obstacle_detectors = 1 [json_name = "obstacleDetectors"]; inline int MotionConfiguration::_internal_obstacle_detectors_size() const { - return _internal_obstacle_detectors().size(); + return obstacle_detectors_.size(); } inline int MotionConfiguration::obstacle_detectors_size() const { return _internal_obstacle_detectors_size(); } inline void MotionConfiguration::clear_obstacle_detectors() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.obstacle_detectors_.Clear(); + obstacle_detectors_.Clear(); } -inline ::viam::service::motion::v1::ObstacleDetector* MotionConfiguration::mutable_obstacle_detectors(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +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 _internal_mutable_obstacle_detectors()->Mutable(index); + return obstacle_detectors_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::service::motion::v1::ObstacleDetector>* MotionConfiguration::mutable_obstacle_detectors() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +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) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_obstacle_detectors(); + return &obstacle_detectors_; } -inline const ::viam::service::motion::v1::ObstacleDetector& MotionConfiguration::obstacle_detectors(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::service::motion::v1::ObstacleDetector& MotionConfiguration::_internal_obstacle_detectors(int index) const { + return obstacle_detectors_.Get(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().Get(index); + return _internal_obstacle_detectors(index); +} +inline ::viam::service::motion::v1::ObstacleDetector* MotionConfiguration::_internal_add_obstacle_detectors() { + return obstacle_detectors_.Add(); } -inline ::viam::service::motion::v1::ObstacleDetector* MotionConfiguration::add_obstacle_detectors() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::service::motion::v1::ObstacleDetector* _add = _internal_mutable_obstacle_detectors()->Add(); +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 ::google::protobuf::RepeatedPtrField<::viam::service::motion::v1::ObstacleDetector>& MotionConfiguration::obstacle_detectors() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +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 _internal_obstacle_detectors(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::service::motion::v1::ObstacleDetector>& -MotionConfiguration::_internal_obstacle_detectors() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.obstacle_detectors_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::service::motion::v1::ObstacleDetector>* -MotionConfiguration::_internal_mutable_obstacle_detectors() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.obstacle_detectors_; + return obstacle_detectors_; } // optional double position_polling_frequency_hz = 2 [json_name = "positionPollingFrequencyHz"]; -inline bool MotionConfiguration::has_position_polling_frequency_hz() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; +inline bool MotionConfiguration::_internal_has_position_polling_frequency_hz() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; return value; } +inline bool MotionConfiguration::has_position_polling_frequency_hz() const { + return _internal_has_position_polling_frequency_hz(); +} inline void MotionConfiguration::clear_position_polling_frequency_hz() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.position_polling_frequency_hz_ = 0; - _impl_._has_bits_[0] &= ~0x00000001u; + position_polling_frequency_hz_ = 0; + _has_bits_[0] &= ~0x00000001u; +} +inline double MotionConfiguration::_internal_position_polling_frequency_hz() const { + return position_polling_frequency_hz_; } inline double MotionConfiguration::position_polling_frequency_hz() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.MotionConfiguration.position_polling_frequency_hz) return _internal_position_polling_frequency_hz(); } +inline void MotionConfiguration::_internal_set_position_polling_frequency_hz(double value) { + _has_bits_[0] |= 0x00000001u; + position_polling_frequency_hz_ = value; +} inline void MotionConfiguration::set_position_polling_frequency_hz(double value) { _internal_set_position_polling_frequency_hz(value); // @@protoc_insertion_point(field_set:viam.service.motion.v1.MotionConfiguration.position_polling_frequency_hz) } -inline double MotionConfiguration::_internal_position_polling_frequency_hz() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.position_polling_frequency_hz_; -} -inline void MotionConfiguration::_internal_set_position_polling_frequency_hz(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.position_polling_frequency_hz_ = value; -} // optional double obstacle_polling_frequency_hz = 3 [json_name = "obstaclePollingFrequencyHz"]; -inline bool MotionConfiguration::has_obstacle_polling_frequency_hz() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; +inline bool MotionConfiguration::_internal_has_obstacle_polling_frequency_hz() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; return value; } +inline bool MotionConfiguration::has_obstacle_polling_frequency_hz() const { + return _internal_has_obstacle_polling_frequency_hz(); +} inline void MotionConfiguration::clear_obstacle_polling_frequency_hz() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.obstacle_polling_frequency_hz_ = 0; - _impl_._has_bits_[0] &= ~0x00000002u; + obstacle_polling_frequency_hz_ = 0; + _has_bits_[0] &= ~0x00000002u; +} +inline double MotionConfiguration::_internal_obstacle_polling_frequency_hz() const { + return obstacle_polling_frequency_hz_; } inline double MotionConfiguration::obstacle_polling_frequency_hz() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.MotionConfiguration.obstacle_polling_frequency_hz) return _internal_obstacle_polling_frequency_hz(); } +inline void MotionConfiguration::_internal_set_obstacle_polling_frequency_hz(double value) { + _has_bits_[0] |= 0x00000002u; + obstacle_polling_frequency_hz_ = value; +} inline void MotionConfiguration::set_obstacle_polling_frequency_hz(double value) { _internal_set_obstacle_polling_frequency_hz(value); // @@protoc_insertion_point(field_set:viam.service.motion.v1.MotionConfiguration.obstacle_polling_frequency_hz) } -inline double MotionConfiguration::_internal_obstacle_polling_frequency_hz() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.obstacle_polling_frequency_hz_; -} -inline void MotionConfiguration::_internal_set_obstacle_polling_frequency_hz(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.obstacle_polling_frequency_hz_ = value; -} // optional double plan_deviation_m = 4 [json_name = "planDeviationM"]; -inline bool MotionConfiguration::has_plan_deviation_m() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; +inline bool MotionConfiguration::_internal_has_plan_deviation_m() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; return value; } +inline bool MotionConfiguration::has_plan_deviation_m() const { + return _internal_has_plan_deviation_m(); +} inline void MotionConfiguration::clear_plan_deviation_m() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.plan_deviation_m_ = 0; - _impl_._has_bits_[0] &= ~0x00000004u; + plan_deviation_m_ = 0; + _has_bits_[0] &= ~0x00000004u; +} +inline double MotionConfiguration::_internal_plan_deviation_m() const { + return plan_deviation_m_; } inline double MotionConfiguration::plan_deviation_m() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.MotionConfiguration.plan_deviation_m) return _internal_plan_deviation_m(); } +inline void MotionConfiguration::_internal_set_plan_deviation_m(double value) { + _has_bits_[0] |= 0x00000004u; + plan_deviation_m_ = value; +} inline void MotionConfiguration::set_plan_deviation_m(double value) { _internal_set_plan_deviation_m(value); // @@protoc_insertion_point(field_set:viam.service.motion.v1.MotionConfiguration.plan_deviation_m) } -inline double MotionConfiguration::_internal_plan_deviation_m() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.plan_deviation_m_; -} -inline void MotionConfiguration::_internal_set_plan_deviation_m(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - _impl_.plan_deviation_m_ = value; -} // optional double linear_m_per_sec = 5 [json_name = "linearMPerSec"]; -inline bool MotionConfiguration::has_linear_m_per_sec() const { - bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; +inline bool MotionConfiguration::_internal_has_linear_m_per_sec() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; return value; } +inline bool MotionConfiguration::has_linear_m_per_sec() const { + return _internal_has_linear_m_per_sec(); +} inline void MotionConfiguration::clear_linear_m_per_sec() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.linear_m_per_sec_ = 0; - _impl_._has_bits_[0] &= ~0x00000008u; + linear_m_per_sec_ = 0; + _has_bits_[0] &= ~0x00000008u; +} +inline double MotionConfiguration::_internal_linear_m_per_sec() const { + return linear_m_per_sec_; } inline double MotionConfiguration::linear_m_per_sec() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.MotionConfiguration.linear_m_per_sec) return _internal_linear_m_per_sec(); } +inline void MotionConfiguration::_internal_set_linear_m_per_sec(double value) { + _has_bits_[0] |= 0x00000008u; + linear_m_per_sec_ = value; +} inline void MotionConfiguration::set_linear_m_per_sec(double value) { _internal_set_linear_m_per_sec(value); // @@protoc_insertion_point(field_set:viam.service.motion.v1.MotionConfiguration.linear_m_per_sec) } -inline double MotionConfiguration::_internal_linear_m_per_sec() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.linear_m_per_sec_; -} -inline void MotionConfiguration::_internal_set_linear_m_per_sec(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000008u; - _impl_.linear_m_per_sec_ = value; -} // optional double angular_degs_per_sec = 6 [json_name = "angularDegsPerSec"]; -inline bool MotionConfiguration::has_angular_degs_per_sec() const { - bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; +inline bool MotionConfiguration::_internal_has_angular_degs_per_sec() const { + bool value = (_has_bits_[0] & 0x00000010u) != 0; return value; } +inline bool MotionConfiguration::has_angular_degs_per_sec() const { + return _internal_has_angular_degs_per_sec(); +} inline void MotionConfiguration::clear_angular_degs_per_sec() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.angular_degs_per_sec_ = 0; - _impl_._has_bits_[0] &= ~0x00000010u; + angular_degs_per_sec_ = 0; + _has_bits_[0] &= ~0x00000010u; +} +inline double MotionConfiguration::_internal_angular_degs_per_sec() const { + return angular_degs_per_sec_; } inline double MotionConfiguration::angular_degs_per_sec() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.MotionConfiguration.angular_degs_per_sec) return _internal_angular_degs_per_sec(); } +inline void MotionConfiguration::_internal_set_angular_degs_per_sec(double value) { + _has_bits_[0] |= 0x00000010u; + angular_degs_per_sec_ = value; +} inline void MotionConfiguration::set_angular_degs_per_sec(double value) { _internal_set_angular_degs_per_sec(value); // @@protoc_insertion_point(field_set:viam.service.motion.v1.MotionConfiguration.angular_degs_per_sec) } -inline double MotionConfiguration::_internal_angular_degs_per_sec() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.angular_degs_per_sec_; -} -inline void MotionConfiguration::_internal_set_angular_degs_per_sec(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000010u; - _impl_.angular_degs_per_sec_ = value; -} // ------------------------------------------------------------------- @@ -7522,632 +6669,583 @@ inline void MotionConfiguration::_internal_set_angular_degs_per_sec(double value // string name = 1 [json_name = "name"]; inline void MoveOnGlobeRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& MoveOnGlobeRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& MoveOnGlobeRequest::name() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveOnGlobeRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void MoveOnGlobeRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void MoveOnGlobeRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.motion.v1.MoveOnGlobeRequest.name) } -inline std::string* MoveOnGlobeRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* MoveOnGlobeRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveOnGlobeRequest.name) return _s; } inline const std::string& MoveOnGlobeRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void MoveOnGlobeRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* MoveOnGlobeRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* MoveOnGlobeRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveOnGlobeRequest.name) - return _impl_.name_.Release(); -} -inline void MoveOnGlobeRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void MoveOnGlobeRequest::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.service.motion.v1.MoveOnGlobeRequest.name) } // .viam.common.v1.GeoPoint destination = 2 [json_name = "destination"]; +inline bool MoveOnGlobeRequest::_internal_has_destination() const { + return this != internal_default_instance() && destination_ != nullptr; +} inline bool MoveOnGlobeRequest::has_destination() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.destination_ != nullptr); - return value; + return _internal_has_destination(); } inline const ::viam::common::v1::GeoPoint& MoveOnGlobeRequest::_internal_destination() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::common::v1::GeoPoint* p = _impl_.destination_; - return p != nullptr ? *p : reinterpret_cast(::viam::common::v1::_GeoPoint_default_instance_); + const ::viam::common::v1::GeoPoint* p = destination_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_GeoPoint_default_instance_); } -inline const ::viam::common::v1::GeoPoint& MoveOnGlobeRequest::destination() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::GeoPoint& MoveOnGlobeRequest::destination() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveOnGlobeRequest.destination) return _internal_destination(); } -inline void MoveOnGlobeRequest::unsafe_arena_set_allocated_destination(::viam::common::v1::GeoPoint* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.destination_); +inline void MoveOnGlobeRequest::unsafe_arena_set_allocated_destination( + ::viam::common::v1::GeoPoint* destination) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(destination_); } - _impl_.destination_ = reinterpret_cast<::viam::common::v1::GeoPoint*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + destination_ = destination; + if (destination) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.MoveOnGlobeRequest.destination) } inline ::viam::common::v1::GeoPoint* MoveOnGlobeRequest::release_destination() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::GeoPoint* released = _impl_.destination_; - _impl_.destination_ = nullptr; + + ::viam::common::v1::GeoPoint* temp = destination_; + destination_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::common::v1::GeoPoint* MoveOnGlobeRequest::unsafe_arena_release_destination() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveOnGlobeRequest.destination) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::GeoPoint* temp = _impl_.destination_; - _impl_.destination_ = nullptr; + + ::viam::common::v1::GeoPoint* temp = destination_; + destination_ = nullptr; return temp; } inline ::viam::common::v1::GeoPoint* MoveOnGlobeRequest::_internal_mutable_destination() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.destination_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::GeoPoint>(GetArena()); - _impl_.destination_ = reinterpret_cast<::viam::common::v1::GeoPoint*>(p); + + if (destination_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::GeoPoint>(GetArenaForAllocation()); + destination_ = p; } - return _impl_.destination_; + return destination_; } -inline ::viam::common::v1::GeoPoint* MoveOnGlobeRequest::mutable_destination() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::GeoPoint* MoveOnGlobeRequest::mutable_destination() { ::viam::common::v1::GeoPoint* _msg = _internal_mutable_destination(); // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveOnGlobeRequest.destination) return _msg; } -inline void MoveOnGlobeRequest::set_allocated_destination(::viam::common::v1::GeoPoint* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void MoveOnGlobeRequest::set_allocated_destination(::viam::common::v1::GeoPoint* destination) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.destination_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(destination_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (destination) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(destination)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + destination = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, destination, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.destination_ = reinterpret_cast<::viam::common::v1::GeoPoint*>(value); + destination_ = destination; // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveOnGlobeRequest.destination) } // optional double heading = 3 [json_name = "heading"]; -inline bool MoveOnGlobeRequest::has_heading() const { - bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0; +inline bool MoveOnGlobeRequest::_internal_has_heading() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; return value; } +inline bool MoveOnGlobeRequest::has_heading() const { + return _internal_has_heading(); +} inline void MoveOnGlobeRequest::clear_heading() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.heading_ = 0; - _impl_._has_bits_[0] &= ~0x00000020u; + heading_ = 0; + _has_bits_[0] &= ~0x00000002u; +} +inline double MoveOnGlobeRequest::_internal_heading() const { + return heading_; } inline double MoveOnGlobeRequest::heading() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveOnGlobeRequest.heading) return _internal_heading(); } +inline void MoveOnGlobeRequest::_internal_set_heading(double value) { + _has_bits_[0] |= 0x00000002u; + heading_ = value; +} inline void MoveOnGlobeRequest::set_heading(double value) { _internal_set_heading(value); // @@protoc_insertion_point(field_set:viam.service.motion.v1.MoveOnGlobeRequest.heading) } -inline double MoveOnGlobeRequest::_internal_heading() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.heading_; -} -inline void MoveOnGlobeRequest::_internal_set_heading(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000020u; - _impl_.heading_ = value; -} // .viam.common.v1.ResourceName component_name = 4 [json_name = "componentName"]; +inline bool MoveOnGlobeRequest::_internal_has_component_name() const { + return this != internal_default_instance() && component_name_ != nullptr; +} inline bool MoveOnGlobeRequest::has_component_name() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.component_name_ != nullptr); - return value; + return _internal_has_component_name(); } inline const ::viam::common::v1::ResourceName& MoveOnGlobeRequest::_internal_component_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::common::v1::ResourceName* p = _impl_.component_name_; - return p != nullptr ? *p : reinterpret_cast(::viam::common::v1::_ResourceName_default_instance_); + const ::viam::common::v1::ResourceName* p = component_name_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_ResourceName_default_instance_); } -inline const ::viam::common::v1::ResourceName& MoveOnGlobeRequest::component_name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::ResourceName& MoveOnGlobeRequest::component_name() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveOnGlobeRequest.component_name) return _internal_component_name(); } -inline void MoveOnGlobeRequest::unsafe_arena_set_allocated_component_name(::viam::common::v1::ResourceName* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.component_name_); +inline void MoveOnGlobeRequest::unsafe_arena_set_allocated_component_name( + ::viam::common::v1::ResourceName* component_name) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_); } - _impl_.component_name_ = reinterpret_cast<::viam::common::v1::ResourceName*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + component_name_ = component_name; + if (component_name) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.MoveOnGlobeRequest.component_name) } inline ::viam::common::v1::ResourceName* MoveOnGlobeRequest::release_component_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::viam::common::v1::ResourceName* released = _impl_.component_name_; - _impl_.component_name_ = nullptr; + + ::viam::common::v1::ResourceName* temp = component_name_; + component_name_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::common::v1::ResourceName* MoveOnGlobeRequest::unsafe_arena_release_component_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveOnGlobeRequest.component_name) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::viam::common::v1::ResourceName* temp = _impl_.component_name_; - _impl_.component_name_ = nullptr; + + ::viam::common::v1::ResourceName* temp = component_name_; + component_name_ = nullptr; return temp; } inline ::viam::common::v1::ResourceName* MoveOnGlobeRequest::_internal_mutable_component_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.component_name_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArena()); - _impl_.component_name_ = reinterpret_cast<::viam::common::v1::ResourceName*>(p); + + if (component_name_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArenaForAllocation()); + component_name_ = p; } - return _impl_.component_name_; + return component_name_; } -inline ::viam::common::v1::ResourceName* MoveOnGlobeRequest::mutable_component_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::ResourceName* MoveOnGlobeRequest::mutable_component_name() { ::viam::common::v1::ResourceName* _msg = _internal_mutable_component_name(); // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveOnGlobeRequest.component_name) return _msg; } -inline void MoveOnGlobeRequest::set_allocated_component_name(::viam::common::v1::ResourceName* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void MoveOnGlobeRequest::set_allocated_component_name(::viam::common::v1::ResourceName* component_name) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.component_name_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (component_name) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + component_name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, component_name, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.component_name_ = reinterpret_cast<::viam::common::v1::ResourceName*>(value); + component_name_ = component_name; // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveOnGlobeRequest.component_name) } // .viam.common.v1.ResourceName movement_sensor_name = 5 [json_name = "movementSensorName"]; +inline bool MoveOnGlobeRequest::_internal_has_movement_sensor_name() const { + return this != internal_default_instance() && movement_sensor_name_ != nullptr; +} inline bool MoveOnGlobeRequest::has_movement_sensor_name() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || _impl_.movement_sensor_name_ != nullptr); - return value; + return _internal_has_movement_sensor_name(); } inline const ::viam::common::v1::ResourceName& MoveOnGlobeRequest::_internal_movement_sensor_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::common::v1::ResourceName* p = _impl_.movement_sensor_name_; - return p != nullptr ? *p : reinterpret_cast(::viam::common::v1::_ResourceName_default_instance_); + const ::viam::common::v1::ResourceName* p = movement_sensor_name_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_ResourceName_default_instance_); } -inline const ::viam::common::v1::ResourceName& MoveOnGlobeRequest::movement_sensor_name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::ResourceName& MoveOnGlobeRequest::movement_sensor_name() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveOnGlobeRequest.movement_sensor_name) return _internal_movement_sensor_name(); } -inline void MoveOnGlobeRequest::unsafe_arena_set_allocated_movement_sensor_name(::viam::common::v1::ResourceName* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.movement_sensor_name_); +inline void MoveOnGlobeRequest::unsafe_arena_set_allocated_movement_sensor_name( + ::viam::common::v1::ResourceName* movement_sensor_name) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(movement_sensor_name_); } - _impl_.movement_sensor_name_ = reinterpret_cast<::viam::common::v1::ResourceName*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000004u; + movement_sensor_name_ = movement_sensor_name; + if (movement_sensor_name) { + } else { - _impl_._has_bits_[0] &= ~0x00000004u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.MoveOnGlobeRequest.movement_sensor_name) } inline ::viam::common::v1::ResourceName* MoveOnGlobeRequest::release_movement_sensor_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000004u; - ::viam::common::v1::ResourceName* released = _impl_.movement_sensor_name_; - _impl_.movement_sensor_name_ = nullptr; + + ::viam::common::v1::ResourceName* temp = movement_sensor_name_; + movement_sensor_name_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::common::v1::ResourceName* MoveOnGlobeRequest::unsafe_arena_release_movement_sensor_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveOnGlobeRequest.movement_sensor_name) - - _impl_._has_bits_[0] &= ~0x00000004u; - ::viam::common::v1::ResourceName* temp = _impl_.movement_sensor_name_; - _impl_.movement_sensor_name_ = nullptr; + + ::viam::common::v1::ResourceName* temp = movement_sensor_name_; + movement_sensor_name_ = nullptr; return temp; } inline ::viam::common::v1::ResourceName* MoveOnGlobeRequest::_internal_mutable_movement_sensor_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - if (_impl_.movement_sensor_name_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArena()); - _impl_.movement_sensor_name_ = reinterpret_cast<::viam::common::v1::ResourceName*>(p); + + if (movement_sensor_name_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArenaForAllocation()); + movement_sensor_name_ = p; } - return _impl_.movement_sensor_name_; + return movement_sensor_name_; } -inline ::viam::common::v1::ResourceName* MoveOnGlobeRequest::mutable_movement_sensor_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::ResourceName* MoveOnGlobeRequest::mutable_movement_sensor_name() { ::viam::common::v1::ResourceName* _msg = _internal_mutable_movement_sensor_name(); // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveOnGlobeRequest.movement_sensor_name) return _msg; } -inline void MoveOnGlobeRequest::set_allocated_movement_sensor_name(::viam::common::v1::ResourceName* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void MoveOnGlobeRequest::set_allocated_movement_sensor_name(::viam::common::v1::ResourceName* movement_sensor_name) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.movement_sensor_name_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(movement_sensor_name_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (movement_sensor_name) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(movement_sensor_name)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + movement_sensor_name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, movement_sensor_name, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000004u; + } else { - _impl_._has_bits_[0] &= ~0x00000004u; + } - - _impl_.movement_sensor_name_ = reinterpret_cast<::viam::common::v1::ResourceName*>(value); + movement_sensor_name_ = movement_sensor_name; // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveOnGlobeRequest.movement_sensor_name) } // repeated .viam.common.v1.GeoGeometry obstacles = 6 [json_name = "obstacles"]; inline int MoveOnGlobeRequest::_internal_obstacles_size() const { - return _internal_obstacles().size(); + return obstacles_.size(); } inline int MoveOnGlobeRequest::obstacles_size() const { return _internal_obstacles_size(); } -inline ::viam::common::v1::GeoGeometry* MoveOnGlobeRequest::mutable_obstacles(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::GeoGeometry* MoveOnGlobeRequest::mutable_obstacles(int index) { // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveOnGlobeRequest.obstacles) - return _internal_mutable_obstacles()->Mutable(index); + return obstacles_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::common::v1::GeoGeometry>* MoveOnGlobeRequest::mutable_obstacles() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::GeoGeometry >* +MoveOnGlobeRequest::mutable_obstacles() { // @@protoc_insertion_point(field_mutable_list:viam.service.motion.v1.MoveOnGlobeRequest.obstacles) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_obstacles(); + return &obstacles_; } -inline const ::viam::common::v1::GeoGeometry& MoveOnGlobeRequest::obstacles(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::GeoGeometry& MoveOnGlobeRequest::_internal_obstacles(int index) const { + return obstacles_.Get(index); +} +inline const ::viam::common::v1::GeoGeometry& MoveOnGlobeRequest::obstacles(int index) const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveOnGlobeRequest.obstacles) - return _internal_obstacles().Get(index); + return _internal_obstacles(index); +} +inline ::viam::common::v1::GeoGeometry* MoveOnGlobeRequest::_internal_add_obstacles() { + return obstacles_.Add(); } -inline ::viam::common::v1::GeoGeometry* MoveOnGlobeRequest::add_obstacles() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::common::v1::GeoGeometry* _add = _internal_mutable_obstacles()->Add(); +inline ::viam::common::v1::GeoGeometry* MoveOnGlobeRequest::add_obstacles() { + ::viam::common::v1::GeoGeometry* _add = _internal_add_obstacles(); // @@protoc_insertion_point(field_add:viam.service.motion.v1.MoveOnGlobeRequest.obstacles) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::common::v1::GeoGeometry>& MoveOnGlobeRequest::obstacles() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::GeoGeometry >& +MoveOnGlobeRequest::obstacles() const { // @@protoc_insertion_point(field_list:viam.service.motion.v1.MoveOnGlobeRequest.obstacles) - return _internal_obstacles(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::common::v1::GeoGeometry>& -MoveOnGlobeRequest::_internal_obstacles() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.obstacles_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::common::v1::GeoGeometry>* -MoveOnGlobeRequest::_internal_mutable_obstacles() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.obstacles_; + return obstacles_; } // optional .viam.service.motion.v1.MotionConfiguration motion_configuration = 7 [json_name = "motionConfiguration"]; -inline bool MoveOnGlobeRequest::has_motion_configuration() const { - bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; - PROTOBUF_ASSUME(!value || _impl_.motion_configuration_ != nullptr); +inline bool MoveOnGlobeRequest::_internal_has_motion_configuration() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || motion_configuration_ != nullptr); return value; } +inline bool MoveOnGlobeRequest::has_motion_configuration() const { + return _internal_has_motion_configuration(); +} inline void MoveOnGlobeRequest::clear_motion_configuration() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.motion_configuration_ != nullptr) _impl_.motion_configuration_->Clear(); - _impl_._has_bits_[0] &= ~0x00000008u; + if (motion_configuration_ != nullptr) motion_configuration_->Clear(); + _has_bits_[0] &= ~0x00000001u; } inline const ::viam::service::motion::v1::MotionConfiguration& MoveOnGlobeRequest::_internal_motion_configuration() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::service::motion::v1::MotionConfiguration* p = _impl_.motion_configuration_; - return p != nullptr ? *p : reinterpret_cast(::viam::service::motion::v1::_MotionConfiguration_default_instance_); + const ::viam::service::motion::v1::MotionConfiguration* p = motion_configuration_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::service::motion::v1::_MotionConfiguration_default_instance_); } -inline const ::viam::service::motion::v1::MotionConfiguration& MoveOnGlobeRequest::motion_configuration() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::service::motion::v1::MotionConfiguration& MoveOnGlobeRequest::motion_configuration() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveOnGlobeRequest.motion_configuration) return _internal_motion_configuration(); } -inline void MoveOnGlobeRequest::unsafe_arena_set_allocated_motion_configuration(::viam::service::motion::v1::MotionConfiguration* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.motion_configuration_); +inline void MoveOnGlobeRequest::unsafe_arena_set_allocated_motion_configuration( + ::viam::service::motion::v1::MotionConfiguration* motion_configuration) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(motion_configuration_); } - _impl_.motion_configuration_ = reinterpret_cast<::viam::service::motion::v1::MotionConfiguration*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000008u; + motion_configuration_ = motion_configuration; + if (motion_configuration) { + _has_bits_[0] |= 0x00000001u; } else { - _impl_._has_bits_[0] &= ~0x00000008u; + _has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.MoveOnGlobeRequest.motion_configuration) } inline ::viam::service::motion::v1::MotionConfiguration* MoveOnGlobeRequest::release_motion_configuration() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000008u; - ::viam::service::motion::v1::MotionConfiguration* released = _impl_.motion_configuration_; - _impl_.motion_configuration_ = nullptr; + _has_bits_[0] &= ~0x00000001u; + ::viam::service::motion::v1::MotionConfiguration* temp = motion_configuration_; + motion_configuration_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::service::motion::v1::MotionConfiguration* MoveOnGlobeRequest::unsafe_arena_release_motion_configuration() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveOnGlobeRequest.motion_configuration) - - _impl_._has_bits_[0] &= ~0x00000008u; - ::viam::service::motion::v1::MotionConfiguration* temp = _impl_.motion_configuration_; - _impl_.motion_configuration_ = nullptr; + _has_bits_[0] &= ~0x00000001u; + ::viam::service::motion::v1::MotionConfiguration* temp = motion_configuration_; + motion_configuration_ = nullptr; return temp; } inline ::viam::service::motion::v1::MotionConfiguration* MoveOnGlobeRequest::_internal_mutable_motion_configuration() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000008u; - if (_impl_.motion_configuration_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::service::motion::v1::MotionConfiguration>(GetArena()); - _impl_.motion_configuration_ = reinterpret_cast<::viam::service::motion::v1::MotionConfiguration*>(p); + _has_bits_[0] |= 0x00000001u; + if (motion_configuration_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::service::motion::v1::MotionConfiguration>(GetArenaForAllocation()); + motion_configuration_ = p; } - return _impl_.motion_configuration_; + return motion_configuration_; } -inline ::viam::service::motion::v1::MotionConfiguration* MoveOnGlobeRequest::mutable_motion_configuration() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::service::motion::v1::MotionConfiguration* MoveOnGlobeRequest::mutable_motion_configuration() { ::viam::service::motion::v1::MotionConfiguration* _msg = _internal_mutable_motion_configuration(); // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveOnGlobeRequest.motion_configuration) return _msg; } -inline void MoveOnGlobeRequest::set_allocated_motion_configuration(::viam::service::motion::v1::MotionConfiguration* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void MoveOnGlobeRequest::set_allocated_motion_configuration(::viam::service::motion::v1::MotionConfiguration* motion_configuration) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::service::motion::v1::MotionConfiguration*>(_impl_.motion_configuration_); + delete motion_configuration_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::service::motion::v1::MotionConfiguration*>(value)->GetArena(); + if (motion_configuration) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(motion_configuration); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + motion_configuration = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, motion_configuration, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000008u; + _has_bits_[0] |= 0x00000001u; } else { - _impl_._has_bits_[0] &= ~0x00000008u; + _has_bits_[0] &= ~0x00000001u; } - - _impl_.motion_configuration_ = reinterpret_cast<::viam::service::motion::v1::MotionConfiguration*>(value); + motion_configuration_ = motion_configuration; // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveOnGlobeRequest.motion_configuration) } // repeated .viam.common.v1.GeoGeometry bounding_regions = 8 [json_name = "boundingRegions"]; inline int MoveOnGlobeRequest::_internal_bounding_regions_size() const { - return _internal_bounding_regions().size(); + return bounding_regions_.size(); } inline int MoveOnGlobeRequest::bounding_regions_size() const { return _internal_bounding_regions_size(); } -inline ::viam::common::v1::GeoGeometry* MoveOnGlobeRequest::mutable_bounding_regions(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::GeoGeometry* MoveOnGlobeRequest::mutable_bounding_regions(int index) { // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveOnGlobeRequest.bounding_regions) - return _internal_mutable_bounding_regions()->Mutable(index); + return bounding_regions_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::common::v1::GeoGeometry>* MoveOnGlobeRequest::mutable_bounding_regions() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::GeoGeometry >* +MoveOnGlobeRequest::mutable_bounding_regions() { // @@protoc_insertion_point(field_mutable_list:viam.service.motion.v1.MoveOnGlobeRequest.bounding_regions) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_bounding_regions(); + return &bounding_regions_; +} +inline const ::viam::common::v1::GeoGeometry& MoveOnGlobeRequest::_internal_bounding_regions(int index) const { + return bounding_regions_.Get(index); } -inline const ::viam::common::v1::GeoGeometry& MoveOnGlobeRequest::bounding_regions(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::GeoGeometry& MoveOnGlobeRequest::bounding_regions(int index) const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveOnGlobeRequest.bounding_regions) - return _internal_bounding_regions().Get(index); + return _internal_bounding_regions(index); } -inline ::viam::common::v1::GeoGeometry* MoveOnGlobeRequest::add_bounding_regions() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::common::v1::GeoGeometry* _add = _internal_mutable_bounding_regions()->Add(); +inline ::viam::common::v1::GeoGeometry* MoveOnGlobeRequest::_internal_add_bounding_regions() { + return bounding_regions_.Add(); +} +inline ::viam::common::v1::GeoGeometry* MoveOnGlobeRequest::add_bounding_regions() { + ::viam::common::v1::GeoGeometry* _add = _internal_add_bounding_regions(); // @@protoc_insertion_point(field_add:viam.service.motion.v1.MoveOnGlobeRequest.bounding_regions) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::common::v1::GeoGeometry>& MoveOnGlobeRequest::bounding_regions() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::GeoGeometry >& +MoveOnGlobeRequest::bounding_regions() const { // @@protoc_insertion_point(field_list:viam.service.motion.v1.MoveOnGlobeRequest.bounding_regions) - return _internal_bounding_regions(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::common::v1::GeoGeometry>& -MoveOnGlobeRequest::_internal_bounding_regions() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.bounding_regions_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::common::v1::GeoGeometry>* -MoveOnGlobeRequest::_internal_mutable_bounding_regions() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.bounding_regions_; + return bounding_regions_; } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool MoveOnGlobeRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool MoveOnGlobeRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& MoveOnGlobeRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& MoveOnGlobeRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& MoveOnGlobeRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& MoveOnGlobeRequest::extra() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveOnGlobeRequest.extra) return _internal_extra(); } -inline void MoveOnGlobeRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void MoveOnGlobeRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000010u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000010u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.MoveOnGlobeRequest.extra) } -inline ::google::protobuf::Struct* MoveOnGlobeRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000010u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveOnGlobeRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* MoveOnGlobeRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveOnGlobeRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveOnGlobeRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000010u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* MoveOnGlobeRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000010u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveOnGlobeRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* MoveOnGlobeRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* MoveOnGlobeRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveOnGlobeRequest.extra) return _msg; } -inline void MoveOnGlobeRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void MoveOnGlobeRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000010u; + } else { - _impl_._has_bits_[0] &= ~0x00000010u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveOnGlobeRequest.extra) } @@ -8157,54 +7255,51 @@ inline void MoveOnGlobeRequest::set_allocated_extra(::google::protobuf::Struct* // string execution_id = 1 [json_name = "executionId"]; inline void MoveOnGlobeResponse::clear_execution_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.execution_id_.ClearToEmpty(); + execution_id_.ClearToEmpty(); } -inline const std::string& MoveOnGlobeResponse::execution_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& MoveOnGlobeResponse::execution_id() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.MoveOnGlobeResponse.execution_id) return _internal_execution_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void MoveOnGlobeResponse::set_execution_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.execution_id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void MoveOnGlobeResponse::set_execution_id(ArgT0&& arg0, ArgT... args) { + + execution_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.motion.v1.MoveOnGlobeResponse.execution_id) } -inline std::string* MoveOnGlobeResponse::mutable_execution_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* MoveOnGlobeResponse::mutable_execution_id() { std::string* _s = _internal_mutable_execution_id(); // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MoveOnGlobeResponse.execution_id) return _s; } inline const std::string& MoveOnGlobeResponse::_internal_execution_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.execution_id_.Get(); + return execution_id_.Get(); } inline void MoveOnGlobeResponse::_internal_set_execution_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.execution_id_.Set(value, GetArena()); + + execution_id_.Set(value, GetArenaForAllocation()); } inline std::string* MoveOnGlobeResponse::_internal_mutable_execution_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.execution_id_.Mutable( GetArena()); + + return execution_id_.Mutable(GetArenaForAllocation()); } inline std::string* MoveOnGlobeResponse::release_execution_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.motion.v1.MoveOnGlobeResponse.execution_id) - return _impl_.execution_id_.Release(); -} -inline void MoveOnGlobeResponse::set_allocated_execution_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.execution_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.execution_id_.IsDefault()) { - _impl_.execution_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return execution_id_.Release(); +} +inline void MoveOnGlobeResponse::set_allocated_execution_id(std::string* execution_id) { + if (execution_id != nullptr) { + + } else { + + } + execution_id_.SetAllocated(execution_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (execution_id_.IsDefault()) { + execution_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.MoveOnGlobeResponse.execution_id) } @@ -8214,334 +7309,308 @@ inline void MoveOnGlobeResponse::set_allocated_execution_id(std::string* value) // string name = 1 [json_name = "name"]; inline void GetPoseRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& GetPoseRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetPoseRequest::name() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.GetPoseRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetPoseRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetPoseRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.motion.v1.GetPoseRequest.name) } -inline std::string* GetPoseRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetPoseRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.GetPoseRequest.name) return _s; } inline const std::string& GetPoseRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void GetPoseRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* GetPoseRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* GetPoseRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.motion.v1.GetPoseRequest.name) - return _impl_.name_.Release(); -} -inline void GetPoseRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void GetPoseRequest::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.service.motion.v1.GetPoseRequest.name) } // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; +inline bool GetPoseRequest::_internal_has_component_name() const { + return this != internal_default_instance() && component_name_ != nullptr; +} inline bool GetPoseRequest::has_component_name() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.component_name_ != nullptr); - return value; + return _internal_has_component_name(); } inline const ::viam::common::v1::ResourceName& GetPoseRequest::_internal_component_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::common::v1::ResourceName* p = _impl_.component_name_; - return p != nullptr ? *p : reinterpret_cast(::viam::common::v1::_ResourceName_default_instance_); + const ::viam::common::v1::ResourceName* p = component_name_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_ResourceName_default_instance_); } -inline const ::viam::common::v1::ResourceName& GetPoseRequest::component_name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::ResourceName& GetPoseRequest::component_name() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.GetPoseRequest.component_name) return _internal_component_name(); } -inline void GetPoseRequest::unsafe_arena_set_allocated_component_name(::viam::common::v1::ResourceName* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.component_name_); +inline void GetPoseRequest::unsafe_arena_set_allocated_component_name( + ::viam::common::v1::ResourceName* component_name) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_); } - _impl_.component_name_ = reinterpret_cast<::viam::common::v1::ResourceName*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + component_name_ = component_name; + if (component_name) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.GetPoseRequest.component_name) } inline ::viam::common::v1::ResourceName* GetPoseRequest::release_component_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::ResourceName* released = _impl_.component_name_; - _impl_.component_name_ = nullptr; + + ::viam::common::v1::ResourceName* temp = component_name_; + component_name_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::common::v1::ResourceName* GetPoseRequest::unsafe_arena_release_component_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.motion.v1.GetPoseRequest.component_name) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::ResourceName* temp = _impl_.component_name_; - _impl_.component_name_ = nullptr; + + ::viam::common::v1::ResourceName* temp = component_name_; + component_name_ = nullptr; return temp; } inline ::viam::common::v1::ResourceName* GetPoseRequest::_internal_mutable_component_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.component_name_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArena()); - _impl_.component_name_ = reinterpret_cast<::viam::common::v1::ResourceName*>(p); + + if (component_name_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArenaForAllocation()); + component_name_ = p; } - return _impl_.component_name_; + return component_name_; } -inline ::viam::common::v1::ResourceName* GetPoseRequest::mutable_component_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::ResourceName* GetPoseRequest::mutable_component_name() { ::viam::common::v1::ResourceName* _msg = _internal_mutable_component_name(); // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.GetPoseRequest.component_name) return _msg; } -inline void GetPoseRequest::set_allocated_component_name(::viam::common::v1::ResourceName* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetPoseRequest::set_allocated_component_name(::viam::common::v1::ResourceName* component_name) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.component_name_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (component_name) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + component_name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, component_name, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.component_name_ = reinterpret_cast<::viam::common::v1::ResourceName*>(value); + component_name_ = component_name; // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.GetPoseRequest.component_name) } // string destination_frame = 3 [json_name = "destinationFrame"]; inline void GetPoseRequest::clear_destination_frame() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.destination_frame_.ClearToEmpty(); + destination_frame_.ClearToEmpty(); } -inline const std::string& GetPoseRequest::destination_frame() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetPoseRequest::destination_frame() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.GetPoseRequest.destination_frame) return _internal_destination_frame(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetPoseRequest::set_destination_frame(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.destination_frame_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetPoseRequest::set_destination_frame(ArgT0&& arg0, ArgT... args) { + + destination_frame_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.motion.v1.GetPoseRequest.destination_frame) } -inline std::string* GetPoseRequest::mutable_destination_frame() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetPoseRequest::mutable_destination_frame() { std::string* _s = _internal_mutable_destination_frame(); // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.GetPoseRequest.destination_frame) return _s; } inline const std::string& GetPoseRequest::_internal_destination_frame() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.destination_frame_.Get(); + return destination_frame_.Get(); } inline void GetPoseRequest::_internal_set_destination_frame(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.destination_frame_.Set(value, GetArena()); + + destination_frame_.Set(value, GetArenaForAllocation()); } inline std::string* GetPoseRequest::_internal_mutable_destination_frame() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.destination_frame_.Mutable( GetArena()); + + return destination_frame_.Mutable(GetArenaForAllocation()); } inline std::string* GetPoseRequest::release_destination_frame() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.motion.v1.GetPoseRequest.destination_frame) - return _impl_.destination_frame_.Release(); -} -inline void GetPoseRequest::set_allocated_destination_frame(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.destination_frame_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.destination_frame_.IsDefault()) { - _impl_.destination_frame_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return destination_frame_.Release(); +} +inline void GetPoseRequest::set_allocated_destination_frame(std::string* destination_frame) { + if (destination_frame != nullptr) { + + } else { + + } + destination_frame_.SetAllocated(destination_frame, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (destination_frame_.IsDefault()) { + destination_frame_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.GetPoseRequest.destination_frame) } // repeated .viam.common.v1.Transform supplemental_transforms = 4 [json_name = "supplementalTransforms"]; inline int GetPoseRequest::_internal_supplemental_transforms_size() const { - return _internal_supplemental_transforms().size(); + return supplemental_transforms_.size(); } inline int GetPoseRequest::supplemental_transforms_size() const { return _internal_supplemental_transforms_size(); } -inline ::viam::common::v1::Transform* GetPoseRequest::mutable_supplemental_transforms(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::Transform* GetPoseRequest::mutable_supplemental_transforms(int index) { // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.GetPoseRequest.supplemental_transforms) - return _internal_mutable_supplemental_transforms()->Mutable(index); + return supplemental_transforms_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::common::v1::Transform>* GetPoseRequest::mutable_supplemental_transforms() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Transform >* +GetPoseRequest::mutable_supplemental_transforms() { // @@protoc_insertion_point(field_mutable_list:viam.service.motion.v1.GetPoseRequest.supplemental_transforms) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_supplemental_transforms(); + return &supplemental_transforms_; +} +inline const ::viam::common::v1::Transform& GetPoseRequest::_internal_supplemental_transforms(int index) const { + return supplemental_transforms_.Get(index); } -inline const ::viam::common::v1::Transform& GetPoseRequest::supplemental_transforms(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::Transform& GetPoseRequest::supplemental_transforms(int index) const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.GetPoseRequest.supplemental_transforms) - return _internal_supplemental_transforms().Get(index); + return _internal_supplemental_transforms(index); } -inline ::viam::common::v1::Transform* GetPoseRequest::add_supplemental_transforms() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::common::v1::Transform* _add = _internal_mutable_supplemental_transforms()->Add(); +inline ::viam::common::v1::Transform* GetPoseRequest::_internal_add_supplemental_transforms() { + return supplemental_transforms_.Add(); +} +inline ::viam::common::v1::Transform* GetPoseRequest::add_supplemental_transforms() { + ::viam::common::v1::Transform* _add = _internal_add_supplemental_transforms(); // @@protoc_insertion_point(field_add:viam.service.motion.v1.GetPoseRequest.supplemental_transforms) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::common::v1::Transform>& GetPoseRequest::supplemental_transforms() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::Transform >& +GetPoseRequest::supplemental_transforms() const { // @@protoc_insertion_point(field_list:viam.service.motion.v1.GetPoseRequest.supplemental_transforms) - return _internal_supplemental_transforms(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::common::v1::Transform>& -GetPoseRequest::_internal_supplemental_transforms() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.supplemental_transforms_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::common::v1::Transform>* -GetPoseRequest::_internal_mutable_supplemental_transforms() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.supplemental_transforms_; + return supplemental_transforms_; } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetPoseRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool GetPoseRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& GetPoseRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetPoseRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& GetPoseRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetPoseRequest::extra() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.GetPoseRequest.extra) return _internal_extra(); } -inline void GetPoseRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void GetPoseRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.GetPoseRequest.extra) } -inline ::google::protobuf::Struct* GetPoseRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPoseRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* GetPoseRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPoseRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.service.motion.v1.GetPoseRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* GetPoseRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPoseRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* GetPoseRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPoseRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.GetPoseRequest.extra) return _msg; } -inline void GetPoseRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetPoseRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.GetPoseRequest.extra) } @@ -8550,93 +7619,87 @@ inline void GetPoseRequest::set_allocated_extra(::google::protobuf::Struct* valu // GetPoseResponse // .viam.common.v1.PoseInFrame pose = 1 [json_name = "pose"]; +inline bool GetPoseResponse::_internal_has_pose() const { + return this != internal_default_instance() && pose_ != nullptr; +} inline bool GetPoseResponse::has_pose() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.pose_ != nullptr); - return value; + return _internal_has_pose(); } inline const ::viam::common::v1::PoseInFrame& GetPoseResponse::_internal_pose() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::common::v1::PoseInFrame* p = _impl_.pose_; - return p != nullptr ? *p : reinterpret_cast(::viam::common::v1::_PoseInFrame_default_instance_); + const ::viam::common::v1::PoseInFrame* p = pose_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_PoseInFrame_default_instance_); } -inline const ::viam::common::v1::PoseInFrame& GetPoseResponse::pose() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::PoseInFrame& GetPoseResponse::pose() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.GetPoseResponse.pose) return _internal_pose(); } -inline void GetPoseResponse::unsafe_arena_set_allocated_pose(::viam::common::v1::PoseInFrame* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.pose_); +inline void GetPoseResponse::unsafe_arena_set_allocated_pose( + ::viam::common::v1::PoseInFrame* pose) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(pose_); } - _impl_.pose_ = reinterpret_cast<::viam::common::v1::PoseInFrame*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + pose_ = pose; + if (pose) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.GetPoseResponse.pose) } inline ::viam::common::v1::PoseInFrame* GetPoseResponse::release_pose() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::PoseInFrame* released = _impl_.pose_; - _impl_.pose_ = nullptr; + + ::viam::common::v1::PoseInFrame* temp = pose_; + pose_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::common::v1::PoseInFrame* GetPoseResponse::unsafe_arena_release_pose() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.motion.v1.GetPoseResponse.pose) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::PoseInFrame* temp = _impl_.pose_; - _impl_.pose_ = nullptr; + + ::viam::common::v1::PoseInFrame* temp = pose_; + pose_ = nullptr; return temp; } inline ::viam::common::v1::PoseInFrame* GetPoseResponse::_internal_mutable_pose() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.pose_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::PoseInFrame>(GetArena()); - _impl_.pose_ = reinterpret_cast<::viam::common::v1::PoseInFrame*>(p); + + if (pose_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::PoseInFrame>(GetArenaForAllocation()); + pose_ = p; } - return _impl_.pose_; + return pose_; } -inline ::viam::common::v1::PoseInFrame* GetPoseResponse::mutable_pose() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::PoseInFrame* GetPoseResponse::mutable_pose() { ::viam::common::v1::PoseInFrame* _msg = _internal_mutable_pose(); // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.GetPoseResponse.pose) return _msg; } -inline void GetPoseResponse::set_allocated_pose(::viam::common::v1::PoseInFrame* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetPoseResponse::set_allocated_pose(::viam::common::v1::PoseInFrame* pose) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.pose_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(pose_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (pose) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(pose)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + pose = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, pose, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.pose_ = reinterpret_cast<::viam::common::v1::PoseInFrame*>(value); + pose_ = pose; // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.GetPoseResponse.pose) } @@ -8646,236 +7709,221 @@ inline void GetPoseResponse::set_allocated_pose(::viam::common::v1::PoseInFrame* // string name = 1 [json_name = "name"]; inline void StopPlanRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& StopPlanRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& StopPlanRequest::name() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.StopPlanRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void StopPlanRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void StopPlanRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.motion.v1.StopPlanRequest.name) } -inline std::string* StopPlanRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* StopPlanRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.StopPlanRequest.name) return _s; } inline const std::string& StopPlanRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void StopPlanRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* StopPlanRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* StopPlanRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.motion.v1.StopPlanRequest.name) - return _impl_.name_.Release(); -} -inline void StopPlanRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void StopPlanRequest::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.service.motion.v1.StopPlanRequest.name) } // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; +inline bool StopPlanRequest::_internal_has_component_name() const { + return this != internal_default_instance() && component_name_ != nullptr; +} inline bool StopPlanRequest::has_component_name() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.component_name_ != nullptr); - return value; + return _internal_has_component_name(); } inline const ::viam::common::v1::ResourceName& StopPlanRequest::_internal_component_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::common::v1::ResourceName* p = _impl_.component_name_; - return p != nullptr ? *p : reinterpret_cast(::viam::common::v1::_ResourceName_default_instance_); + const ::viam::common::v1::ResourceName* p = component_name_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_ResourceName_default_instance_); } -inline const ::viam::common::v1::ResourceName& StopPlanRequest::component_name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::ResourceName& StopPlanRequest::component_name() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.StopPlanRequest.component_name) return _internal_component_name(); } -inline void StopPlanRequest::unsafe_arena_set_allocated_component_name(::viam::common::v1::ResourceName* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.component_name_); +inline void StopPlanRequest::unsafe_arena_set_allocated_component_name( + ::viam::common::v1::ResourceName* component_name) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_); } - _impl_.component_name_ = reinterpret_cast<::viam::common::v1::ResourceName*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + component_name_ = component_name; + if (component_name) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.StopPlanRequest.component_name) } inline ::viam::common::v1::ResourceName* StopPlanRequest::release_component_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::ResourceName* released = _impl_.component_name_; - _impl_.component_name_ = nullptr; + + ::viam::common::v1::ResourceName* temp = component_name_; + component_name_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::common::v1::ResourceName* StopPlanRequest::unsafe_arena_release_component_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.motion.v1.StopPlanRequest.component_name) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::ResourceName* temp = _impl_.component_name_; - _impl_.component_name_ = nullptr; + + ::viam::common::v1::ResourceName* temp = component_name_; + component_name_ = nullptr; return temp; } inline ::viam::common::v1::ResourceName* StopPlanRequest::_internal_mutable_component_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.component_name_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArena()); - _impl_.component_name_ = reinterpret_cast<::viam::common::v1::ResourceName*>(p); + + if (component_name_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArenaForAllocation()); + component_name_ = p; } - return _impl_.component_name_; + return component_name_; } -inline ::viam::common::v1::ResourceName* StopPlanRequest::mutable_component_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::ResourceName* StopPlanRequest::mutable_component_name() { ::viam::common::v1::ResourceName* _msg = _internal_mutable_component_name(); // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.StopPlanRequest.component_name) return _msg; } -inline void StopPlanRequest::set_allocated_component_name(::viam::common::v1::ResourceName* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void StopPlanRequest::set_allocated_component_name(::viam::common::v1::ResourceName* component_name) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.component_name_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (component_name) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + component_name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, component_name, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.component_name_ = reinterpret_cast<::viam::common::v1::ResourceName*>(value); + component_name_ = component_name; // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.StopPlanRequest.component_name) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool StopPlanRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool StopPlanRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& StopPlanRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& StopPlanRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& StopPlanRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& StopPlanRequest::extra() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.StopPlanRequest.extra) return _internal_extra(); } -inline void StopPlanRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void StopPlanRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.StopPlanRequest.extra) } -inline ::google::protobuf::Struct* StopPlanRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* StopPlanRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* StopPlanRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* StopPlanRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.service.motion.v1.StopPlanRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* StopPlanRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* StopPlanRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* StopPlanRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* StopPlanRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.StopPlanRequest.extra) return _msg; } -inline void StopPlanRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void StopPlanRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.StopPlanRequest.extra) } @@ -8889,168 +7937,156 @@ inline void StopPlanRequest::set_allocated_extra(::google::protobuf::Struct* val // string name = 1 [json_name = "name"]; inline void ListPlanStatusesRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& ListPlanStatusesRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ListPlanStatusesRequest::name() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.ListPlanStatusesRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void ListPlanStatusesRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ListPlanStatusesRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.motion.v1.ListPlanStatusesRequest.name) } -inline std::string* ListPlanStatusesRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ListPlanStatusesRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.ListPlanStatusesRequest.name) return _s; } inline const std::string& ListPlanStatusesRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void ListPlanStatusesRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* ListPlanStatusesRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* ListPlanStatusesRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.motion.v1.ListPlanStatusesRequest.name) - return _impl_.name_.Release(); -} -inline void ListPlanStatusesRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void ListPlanStatusesRequest::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.service.motion.v1.ListPlanStatusesRequest.name) } // bool only_active_plans = 2 [json_name = "onlyActivePlans"]; inline void ListPlanStatusesRequest::clear_only_active_plans() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.only_active_plans_ = false; + only_active_plans_ = false; +} +inline bool ListPlanStatusesRequest::_internal_only_active_plans() const { + return only_active_plans_; } inline bool ListPlanStatusesRequest::only_active_plans() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.ListPlanStatusesRequest.only_active_plans) return _internal_only_active_plans(); } +inline void ListPlanStatusesRequest::_internal_set_only_active_plans(bool value) { + + only_active_plans_ = value; +} inline void ListPlanStatusesRequest::set_only_active_plans(bool value) { _internal_set_only_active_plans(value); // @@protoc_insertion_point(field_set:viam.service.motion.v1.ListPlanStatusesRequest.only_active_plans) } -inline bool ListPlanStatusesRequest::_internal_only_active_plans() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.only_active_plans_; -} -inline void ListPlanStatusesRequest::_internal_set_only_active_plans(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.only_active_plans_ = value; -} // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool ListPlanStatusesRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool ListPlanStatusesRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& ListPlanStatusesRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& ListPlanStatusesRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& ListPlanStatusesRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& ListPlanStatusesRequest::extra() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.ListPlanStatusesRequest.extra) return _internal_extra(); } -inline void ListPlanStatusesRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void ListPlanStatusesRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.ListPlanStatusesRequest.extra) } -inline ::google::protobuf::Struct* ListPlanStatusesRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* ListPlanStatusesRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* ListPlanStatusesRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* ListPlanStatusesRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.service.motion.v1.ListPlanStatusesRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* ListPlanStatusesRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* ListPlanStatusesRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* ListPlanStatusesRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* ListPlanStatusesRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.ListPlanStatusesRequest.extra) return _msg; } -inline void ListPlanStatusesRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ListPlanStatusesRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.ListPlanStatusesRequest.extra) } @@ -9060,51 +8096,42 @@ inline void ListPlanStatusesRequest::set_allocated_extra(::google::protobuf::Str // repeated .viam.service.motion.v1.PlanStatusWithID plan_statuses_with_ids = 1 [json_name = "planStatusesWithIds"]; inline int ListPlanStatusesResponse::_internal_plan_statuses_with_ids_size() const { - return _internal_plan_statuses_with_ids().size(); + return plan_statuses_with_ids_.size(); } inline int ListPlanStatusesResponse::plan_statuses_with_ids_size() const { return _internal_plan_statuses_with_ids_size(); } inline void ListPlanStatusesResponse::clear_plan_statuses_with_ids() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.plan_statuses_with_ids_.Clear(); + plan_statuses_with_ids_.Clear(); } -inline ::viam::service::motion::v1::PlanStatusWithID* ListPlanStatusesResponse::mutable_plan_statuses_with_ids(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::service::motion::v1::PlanStatusWithID* ListPlanStatusesResponse::mutable_plan_statuses_with_ids(int index) { // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.ListPlanStatusesResponse.plan_statuses_with_ids) - return _internal_mutable_plan_statuses_with_ids()->Mutable(index); + return plan_statuses_with_ids_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::service::motion::v1::PlanStatusWithID>* ListPlanStatusesResponse::mutable_plan_statuses_with_ids() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::PlanStatusWithID >* +ListPlanStatusesResponse::mutable_plan_statuses_with_ids() { // @@protoc_insertion_point(field_mutable_list:viam.service.motion.v1.ListPlanStatusesResponse.plan_statuses_with_ids) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_plan_statuses_with_ids(); + return &plan_statuses_with_ids_; +} +inline const ::viam::service::motion::v1::PlanStatusWithID& ListPlanStatusesResponse::_internal_plan_statuses_with_ids(int index) const { + return plan_statuses_with_ids_.Get(index); } -inline const ::viam::service::motion::v1::PlanStatusWithID& ListPlanStatusesResponse::plan_statuses_with_ids(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::service::motion::v1::PlanStatusWithID& ListPlanStatusesResponse::plan_statuses_with_ids(int index) const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.ListPlanStatusesResponse.plan_statuses_with_ids) - return _internal_plan_statuses_with_ids().Get(index); + return _internal_plan_statuses_with_ids(index); } -inline ::viam::service::motion::v1::PlanStatusWithID* ListPlanStatusesResponse::add_plan_statuses_with_ids() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::service::motion::v1::PlanStatusWithID* _add = _internal_mutable_plan_statuses_with_ids()->Add(); +inline ::viam::service::motion::v1::PlanStatusWithID* ListPlanStatusesResponse::_internal_add_plan_statuses_with_ids() { + return plan_statuses_with_ids_.Add(); +} +inline ::viam::service::motion::v1::PlanStatusWithID* ListPlanStatusesResponse::add_plan_statuses_with_ids() { + ::viam::service::motion::v1::PlanStatusWithID* _add = _internal_add_plan_statuses_with_ids(); // @@protoc_insertion_point(field_add:viam.service.motion.v1.ListPlanStatusesResponse.plan_statuses_with_ids) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::service::motion::v1::PlanStatusWithID>& ListPlanStatusesResponse::plan_statuses_with_ids() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::PlanStatusWithID >& +ListPlanStatusesResponse::plan_statuses_with_ids() const { // @@protoc_insertion_point(field_list:viam.service.motion.v1.ListPlanStatusesResponse.plan_statuses_with_ids) - return _internal_plan_statuses_with_ids(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::service::motion::v1::PlanStatusWithID>& -ListPlanStatusesResponse::_internal_plan_statuses_with_ids() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.plan_statuses_with_ids_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::service::motion::v1::PlanStatusWithID>* -ListPlanStatusesResponse::_internal_mutable_plan_statuses_with_ids() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.plan_statuses_with_ids_; + return plan_statuses_with_ids_; } // ------------------------------------------------------------------- @@ -9113,330 +8140,309 @@ ListPlanStatusesResponse::_internal_mutable_plan_statuses_with_ids() { // string name = 1 [json_name = "name"]; inline void GetPlanRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& GetPlanRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetPlanRequest::name() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.GetPlanRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetPlanRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetPlanRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.motion.v1.GetPlanRequest.name) } -inline std::string* GetPlanRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetPlanRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.GetPlanRequest.name) return _s; } inline const std::string& GetPlanRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void GetPlanRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* GetPlanRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* GetPlanRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.motion.v1.GetPlanRequest.name) - return _impl_.name_.Release(); -} -inline void GetPlanRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void GetPlanRequest::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.service.motion.v1.GetPlanRequest.name) } // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; +inline bool GetPlanRequest::_internal_has_component_name() const { + return this != internal_default_instance() && component_name_ != nullptr; +} inline bool GetPlanRequest::has_component_name() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.component_name_ != nullptr); - return value; + return _internal_has_component_name(); } inline const ::viam::common::v1::ResourceName& GetPlanRequest::_internal_component_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::common::v1::ResourceName* p = _impl_.component_name_; - return p != nullptr ? *p : reinterpret_cast(::viam::common::v1::_ResourceName_default_instance_); + const ::viam::common::v1::ResourceName* p = component_name_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_ResourceName_default_instance_); } -inline const ::viam::common::v1::ResourceName& GetPlanRequest::component_name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::ResourceName& GetPlanRequest::component_name() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.GetPlanRequest.component_name) return _internal_component_name(); } -inline void GetPlanRequest::unsafe_arena_set_allocated_component_name(::viam::common::v1::ResourceName* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.component_name_); +inline void GetPlanRequest::unsafe_arena_set_allocated_component_name( + ::viam::common::v1::ResourceName* component_name) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_); } - _impl_.component_name_ = reinterpret_cast<::viam::common::v1::ResourceName*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + component_name_ = component_name; + if (component_name) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.GetPlanRequest.component_name) } inline ::viam::common::v1::ResourceName* GetPlanRequest::release_component_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::viam::common::v1::ResourceName* released = _impl_.component_name_; - _impl_.component_name_ = nullptr; + + ::viam::common::v1::ResourceName* temp = component_name_; + component_name_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::common::v1::ResourceName* GetPlanRequest::unsafe_arena_release_component_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.motion.v1.GetPlanRequest.component_name) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::viam::common::v1::ResourceName* temp = _impl_.component_name_; - _impl_.component_name_ = nullptr; + + ::viam::common::v1::ResourceName* temp = component_name_; + component_name_ = nullptr; return temp; } inline ::viam::common::v1::ResourceName* GetPlanRequest::_internal_mutable_component_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.component_name_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArena()); - _impl_.component_name_ = reinterpret_cast<::viam::common::v1::ResourceName*>(p); + + if (component_name_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArenaForAllocation()); + component_name_ = p; } - return _impl_.component_name_; + return component_name_; } -inline ::viam::common::v1::ResourceName* GetPlanRequest::mutable_component_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::ResourceName* GetPlanRequest::mutable_component_name() { ::viam::common::v1::ResourceName* _msg = _internal_mutable_component_name(); // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.GetPlanRequest.component_name) return _msg; } -inline void GetPlanRequest::set_allocated_component_name(::viam::common::v1::ResourceName* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetPlanRequest::set_allocated_component_name(::viam::common::v1::ResourceName* component_name) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.component_name_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (component_name) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + component_name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, component_name, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.component_name_ = reinterpret_cast<::viam::common::v1::ResourceName*>(value); + component_name_ = component_name; // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.GetPlanRequest.component_name) } // bool last_plan_only = 3 [json_name = "lastPlanOnly"]; inline void GetPlanRequest::clear_last_plan_only() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.last_plan_only_ = false; + last_plan_only_ = false; +} +inline bool GetPlanRequest::_internal_last_plan_only() const { + return last_plan_only_; } inline bool GetPlanRequest::last_plan_only() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.GetPlanRequest.last_plan_only) return _internal_last_plan_only(); } +inline void GetPlanRequest::_internal_set_last_plan_only(bool value) { + + last_plan_only_ = value; +} inline void GetPlanRequest::set_last_plan_only(bool value) { _internal_set_last_plan_only(value); // @@protoc_insertion_point(field_set:viam.service.motion.v1.GetPlanRequest.last_plan_only) } -inline bool GetPlanRequest::_internal_last_plan_only() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.last_plan_only_; -} -inline void GetPlanRequest::_internal_set_last_plan_only(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.last_plan_only_ = value; -} // optional string execution_id = 4 [json_name = "executionId"]; -inline bool GetPlanRequest::has_execution_id() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; +inline bool GetPlanRequest::_internal_has_execution_id() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; return value; } +inline bool GetPlanRequest::has_execution_id() const { + return _internal_has_execution_id(); +} inline void GetPlanRequest::clear_execution_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.execution_id_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000001u; + execution_id_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; } -inline const std::string& GetPlanRequest::execution_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetPlanRequest::execution_id() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.GetPlanRequest.execution_id) return _internal_execution_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetPlanRequest::set_execution_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.execution_id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetPlanRequest::set_execution_id(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + execution_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.motion.v1.GetPlanRequest.execution_id) } -inline std::string* GetPlanRequest::mutable_execution_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetPlanRequest::mutable_execution_id() { std::string* _s = _internal_mutable_execution_id(); // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.GetPlanRequest.execution_id) return _s; } inline const std::string& GetPlanRequest::_internal_execution_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.execution_id_.Get(); + return execution_id_.Get(); } inline void GetPlanRequest::_internal_set_execution_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.execution_id_.Set(value, GetArena()); + _has_bits_[0] |= 0x00000001u; + execution_id_.Set(value, GetArenaForAllocation()); } inline std::string* GetPlanRequest::_internal_mutable_execution_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.execution_id_.Mutable( GetArena()); + _has_bits_[0] |= 0x00000001u; + return execution_id_.Mutable(GetArenaForAllocation()); } inline std::string* GetPlanRequest::release_execution_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.motion.v1.GetPlanRequest.execution_id) - if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + if (!_internal_has_execution_id()) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000001u; - auto* released = _impl_.execution_id_.Release(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.execution_id_.Set("", GetArena()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return released; -} -inline void GetPlanRequest::set_allocated_execution_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + _has_bits_[0] &= ~0x00000001u; + auto* p = execution_id_.Release(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (execution_id_.IsDefault()) { + execution_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; +} +inline void GetPlanRequest::set_allocated_execution_id(std::string* execution_id) { + if (execution_id != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - _impl_.execution_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.execution_id_.IsDefault()) { - _impl_.execution_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _has_bits_[0] &= ~0x00000001u; + } + execution_id_.SetAllocated(execution_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (execution_id_.IsDefault()) { + execution_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.GetPlanRequest.execution_id) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetPlanRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool GetPlanRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& GetPlanRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetPlanRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& GetPlanRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetPlanRequest::extra() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.GetPlanRequest.extra) return _internal_extra(); } -inline void GetPlanRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void GetPlanRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000004u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000004u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.GetPlanRequest.extra) } -inline ::google::protobuf::Struct* GetPlanRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000004u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPlanRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* GetPlanRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPlanRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.service.motion.v1.GetPlanRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000004u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* GetPlanRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPlanRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* GetPlanRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPlanRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.GetPlanRequest.extra) return _msg; } -inline void GetPlanRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetPlanRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000004u; + } else { - _impl_._has_bits_[0] &= ~0x00000004u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.GetPlanRequest.extra) } @@ -9445,148 +8451,133 @@ inline void GetPlanRequest::set_allocated_extra(::google::protobuf::Struct* valu // GetPlanResponse // .viam.service.motion.v1.PlanWithStatus current_plan_with_status = 1 [json_name = "currentPlanWithStatus"]; +inline bool GetPlanResponse::_internal_has_current_plan_with_status() const { + return this != internal_default_instance() && current_plan_with_status_ != nullptr; +} inline bool GetPlanResponse::has_current_plan_with_status() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.current_plan_with_status_ != nullptr); - return value; + return _internal_has_current_plan_with_status(); } inline void GetPlanResponse::clear_current_plan_with_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.current_plan_with_status_ != nullptr) _impl_.current_plan_with_status_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && current_plan_with_status_ != nullptr) { + delete current_plan_with_status_; + } + current_plan_with_status_ = nullptr; } inline const ::viam::service::motion::v1::PlanWithStatus& GetPlanResponse::_internal_current_plan_with_status() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::service::motion::v1::PlanWithStatus* p = _impl_.current_plan_with_status_; - return p != nullptr ? *p : reinterpret_cast(::viam::service::motion::v1::_PlanWithStatus_default_instance_); + const ::viam::service::motion::v1::PlanWithStatus* p = current_plan_with_status_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::service::motion::v1::_PlanWithStatus_default_instance_); } -inline const ::viam::service::motion::v1::PlanWithStatus& GetPlanResponse::current_plan_with_status() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::service::motion::v1::PlanWithStatus& GetPlanResponse::current_plan_with_status() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.GetPlanResponse.current_plan_with_status) return _internal_current_plan_with_status(); } -inline void GetPlanResponse::unsafe_arena_set_allocated_current_plan_with_status(::viam::service::motion::v1::PlanWithStatus* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.current_plan_with_status_); +inline void GetPlanResponse::unsafe_arena_set_allocated_current_plan_with_status( + ::viam::service::motion::v1::PlanWithStatus* current_plan_with_status) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(current_plan_with_status_); } - _impl_.current_plan_with_status_ = reinterpret_cast<::viam::service::motion::v1::PlanWithStatus*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + current_plan_with_status_ = current_plan_with_status; + if (current_plan_with_status) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.GetPlanResponse.current_plan_with_status) } inline ::viam::service::motion::v1::PlanWithStatus* GetPlanResponse::release_current_plan_with_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::service::motion::v1::PlanWithStatus* released = _impl_.current_plan_with_status_; - _impl_.current_plan_with_status_ = nullptr; + + ::viam::service::motion::v1::PlanWithStatus* temp = current_plan_with_status_; + current_plan_with_status_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::service::motion::v1::PlanWithStatus* GetPlanResponse::unsafe_arena_release_current_plan_with_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.motion.v1.GetPlanResponse.current_plan_with_status) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::service::motion::v1::PlanWithStatus* temp = _impl_.current_plan_with_status_; - _impl_.current_plan_with_status_ = nullptr; + + ::viam::service::motion::v1::PlanWithStatus* temp = current_plan_with_status_; + current_plan_with_status_ = nullptr; return temp; } inline ::viam::service::motion::v1::PlanWithStatus* GetPlanResponse::_internal_mutable_current_plan_with_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.current_plan_with_status_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::service::motion::v1::PlanWithStatus>(GetArena()); - _impl_.current_plan_with_status_ = reinterpret_cast<::viam::service::motion::v1::PlanWithStatus*>(p); + + if (current_plan_with_status_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::service::motion::v1::PlanWithStatus>(GetArenaForAllocation()); + current_plan_with_status_ = p; } - return _impl_.current_plan_with_status_; + return current_plan_with_status_; } -inline ::viam::service::motion::v1::PlanWithStatus* GetPlanResponse::mutable_current_plan_with_status() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::service::motion::v1::PlanWithStatus* GetPlanResponse::mutable_current_plan_with_status() { ::viam::service::motion::v1::PlanWithStatus* _msg = _internal_mutable_current_plan_with_status(); // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.GetPlanResponse.current_plan_with_status) return _msg; } -inline void GetPlanResponse::set_allocated_current_plan_with_status(::viam::service::motion::v1::PlanWithStatus* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetPlanResponse::set_allocated_current_plan_with_status(::viam::service::motion::v1::PlanWithStatus* current_plan_with_status) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::service::motion::v1::PlanWithStatus*>(_impl_.current_plan_with_status_); + delete current_plan_with_status_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::service::motion::v1::PlanWithStatus*>(value)->GetArena(); + if (current_plan_with_status) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(current_plan_with_status); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + current_plan_with_status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, current_plan_with_status, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.current_plan_with_status_ = reinterpret_cast<::viam::service::motion::v1::PlanWithStatus*>(value); + current_plan_with_status_ = current_plan_with_status; // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.GetPlanResponse.current_plan_with_status) } // repeated .viam.service.motion.v1.PlanWithStatus replan_history = 2 [json_name = "replanHistory"]; inline int GetPlanResponse::_internal_replan_history_size() const { - return _internal_replan_history().size(); + return replan_history_.size(); } inline int GetPlanResponse::replan_history_size() const { return _internal_replan_history_size(); } inline void GetPlanResponse::clear_replan_history() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.replan_history_.Clear(); + replan_history_.Clear(); } -inline ::viam::service::motion::v1::PlanWithStatus* GetPlanResponse::mutable_replan_history(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::service::motion::v1::PlanWithStatus* GetPlanResponse::mutable_replan_history(int index) { // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.GetPlanResponse.replan_history) - return _internal_mutable_replan_history()->Mutable(index); + return replan_history_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::service::motion::v1::PlanWithStatus>* GetPlanResponse::mutable_replan_history() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::PlanWithStatus >* +GetPlanResponse::mutable_replan_history() { // @@protoc_insertion_point(field_mutable_list:viam.service.motion.v1.GetPlanResponse.replan_history) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_replan_history(); + return &replan_history_; +} +inline const ::viam::service::motion::v1::PlanWithStatus& GetPlanResponse::_internal_replan_history(int index) const { + return replan_history_.Get(index); } -inline const ::viam::service::motion::v1::PlanWithStatus& GetPlanResponse::replan_history(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::service::motion::v1::PlanWithStatus& GetPlanResponse::replan_history(int index) const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.GetPlanResponse.replan_history) - return _internal_replan_history().Get(index); + return _internal_replan_history(index); } -inline ::viam::service::motion::v1::PlanWithStatus* GetPlanResponse::add_replan_history() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::service::motion::v1::PlanWithStatus* _add = _internal_mutable_replan_history()->Add(); +inline ::viam::service::motion::v1::PlanWithStatus* GetPlanResponse::_internal_add_replan_history() { + return replan_history_.Add(); +} +inline ::viam::service::motion::v1::PlanWithStatus* GetPlanResponse::add_replan_history() { + ::viam::service::motion::v1::PlanWithStatus* _add = _internal_add_replan_history(); // @@protoc_insertion_point(field_add:viam.service.motion.v1.GetPlanResponse.replan_history) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::service::motion::v1::PlanWithStatus>& GetPlanResponse::replan_history() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::PlanWithStatus >& +GetPlanResponse::replan_history() const { // @@protoc_insertion_point(field_list:viam.service.motion.v1.GetPlanResponse.replan_history) - return _internal_replan_history(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::service::motion::v1::PlanWithStatus>& -GetPlanResponse::_internal_replan_history() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.replan_history_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::service::motion::v1::PlanWithStatus>* -GetPlanResponse::_internal_mutable_replan_history() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.replan_history_; + return replan_history_; } // ------------------------------------------------------------------- @@ -9595,149 +8586,122 @@ GetPlanResponse::_internal_mutable_replan_history() { // repeated .viam.service.motion.v1.LinearConstraint linear_constraint = 1 [json_name = "linearConstraint"]; inline int Constraints::_internal_linear_constraint_size() const { - return _internal_linear_constraint().size(); + return linear_constraint_.size(); } inline int Constraints::linear_constraint_size() const { return _internal_linear_constraint_size(); } inline void Constraints::clear_linear_constraint() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.linear_constraint_.Clear(); + linear_constraint_.Clear(); } -inline ::viam::service::motion::v1::LinearConstraint* Constraints::mutable_linear_constraint(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::service::motion::v1::LinearConstraint* Constraints::mutable_linear_constraint(int index) { // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.Constraints.linear_constraint) - return _internal_mutable_linear_constraint()->Mutable(index); + return linear_constraint_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::service::motion::v1::LinearConstraint>* Constraints::mutable_linear_constraint() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::LinearConstraint >* +Constraints::mutable_linear_constraint() { // @@protoc_insertion_point(field_mutable_list:viam.service.motion.v1.Constraints.linear_constraint) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_linear_constraint(); + return &linear_constraint_; +} +inline const ::viam::service::motion::v1::LinearConstraint& Constraints::_internal_linear_constraint(int index) const { + return linear_constraint_.Get(index); } -inline const ::viam::service::motion::v1::LinearConstraint& Constraints::linear_constraint(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::service::motion::v1::LinearConstraint& Constraints::linear_constraint(int index) const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.Constraints.linear_constraint) - return _internal_linear_constraint().Get(index); + return _internal_linear_constraint(index); } -inline ::viam::service::motion::v1::LinearConstraint* Constraints::add_linear_constraint() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::service::motion::v1::LinearConstraint* _add = _internal_mutable_linear_constraint()->Add(); +inline ::viam::service::motion::v1::LinearConstraint* Constraints::_internal_add_linear_constraint() { + return linear_constraint_.Add(); +} +inline ::viam::service::motion::v1::LinearConstraint* Constraints::add_linear_constraint() { + ::viam::service::motion::v1::LinearConstraint* _add = _internal_add_linear_constraint(); // @@protoc_insertion_point(field_add:viam.service.motion.v1.Constraints.linear_constraint) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::service::motion::v1::LinearConstraint>& Constraints::linear_constraint() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::LinearConstraint >& +Constraints::linear_constraint() const { // @@protoc_insertion_point(field_list:viam.service.motion.v1.Constraints.linear_constraint) - return _internal_linear_constraint(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::service::motion::v1::LinearConstraint>& -Constraints::_internal_linear_constraint() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.linear_constraint_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::service::motion::v1::LinearConstraint>* -Constraints::_internal_mutable_linear_constraint() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.linear_constraint_; + return linear_constraint_; } // repeated .viam.service.motion.v1.OrientationConstraint orientation_constraint = 2 [json_name = "orientationConstraint"]; inline int Constraints::_internal_orientation_constraint_size() const { - return _internal_orientation_constraint().size(); + return orientation_constraint_.size(); } inline int Constraints::orientation_constraint_size() const { return _internal_orientation_constraint_size(); } inline void Constraints::clear_orientation_constraint() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.orientation_constraint_.Clear(); + orientation_constraint_.Clear(); } -inline ::viam::service::motion::v1::OrientationConstraint* Constraints::mutable_orientation_constraint(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::service::motion::v1::OrientationConstraint* Constraints::mutable_orientation_constraint(int index) { // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.Constraints.orientation_constraint) - return _internal_mutable_orientation_constraint()->Mutable(index); + return orientation_constraint_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::service::motion::v1::OrientationConstraint>* Constraints::mutable_orientation_constraint() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::OrientationConstraint >* +Constraints::mutable_orientation_constraint() { // @@protoc_insertion_point(field_mutable_list:viam.service.motion.v1.Constraints.orientation_constraint) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_orientation_constraint(); + return &orientation_constraint_; +} +inline const ::viam::service::motion::v1::OrientationConstraint& Constraints::_internal_orientation_constraint(int index) const { + return orientation_constraint_.Get(index); } -inline const ::viam::service::motion::v1::OrientationConstraint& Constraints::orientation_constraint(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::service::motion::v1::OrientationConstraint& Constraints::orientation_constraint(int index) const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.Constraints.orientation_constraint) - return _internal_orientation_constraint().Get(index); + return _internal_orientation_constraint(index); } -inline ::viam::service::motion::v1::OrientationConstraint* Constraints::add_orientation_constraint() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::service::motion::v1::OrientationConstraint* _add = _internal_mutable_orientation_constraint()->Add(); +inline ::viam::service::motion::v1::OrientationConstraint* Constraints::_internal_add_orientation_constraint() { + return orientation_constraint_.Add(); +} +inline ::viam::service::motion::v1::OrientationConstraint* Constraints::add_orientation_constraint() { + ::viam::service::motion::v1::OrientationConstraint* _add = _internal_add_orientation_constraint(); // @@protoc_insertion_point(field_add:viam.service.motion.v1.Constraints.orientation_constraint) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::service::motion::v1::OrientationConstraint>& Constraints::orientation_constraint() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::OrientationConstraint >& +Constraints::orientation_constraint() const { // @@protoc_insertion_point(field_list:viam.service.motion.v1.Constraints.orientation_constraint) - return _internal_orientation_constraint(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::service::motion::v1::OrientationConstraint>& -Constraints::_internal_orientation_constraint() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.orientation_constraint_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::service::motion::v1::OrientationConstraint>* -Constraints::_internal_mutable_orientation_constraint() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.orientation_constraint_; + return orientation_constraint_; } // repeated .viam.service.motion.v1.CollisionSpecification collision_specification = 3 [json_name = "collisionSpecification"]; inline int Constraints::_internal_collision_specification_size() const { - return _internal_collision_specification().size(); + return collision_specification_.size(); } inline int Constraints::collision_specification_size() const { return _internal_collision_specification_size(); } inline void Constraints::clear_collision_specification() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.collision_specification_.Clear(); + collision_specification_.Clear(); } -inline ::viam::service::motion::v1::CollisionSpecification* Constraints::mutable_collision_specification(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::service::motion::v1::CollisionSpecification* Constraints::mutable_collision_specification(int index) { // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.Constraints.collision_specification) - return _internal_mutable_collision_specification()->Mutable(index); + return collision_specification_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::service::motion::v1::CollisionSpecification>* Constraints::mutable_collision_specification() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::CollisionSpecification >* +Constraints::mutable_collision_specification() { // @@protoc_insertion_point(field_mutable_list:viam.service.motion.v1.Constraints.collision_specification) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_collision_specification(); + return &collision_specification_; +} +inline const ::viam::service::motion::v1::CollisionSpecification& Constraints::_internal_collision_specification(int index) const { + return collision_specification_.Get(index); } -inline const ::viam::service::motion::v1::CollisionSpecification& Constraints::collision_specification(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::service::motion::v1::CollisionSpecification& Constraints::collision_specification(int index) const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.Constraints.collision_specification) - return _internal_collision_specification().Get(index); + return _internal_collision_specification(index); } -inline ::viam::service::motion::v1::CollisionSpecification* Constraints::add_collision_specification() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::service::motion::v1::CollisionSpecification* _add = _internal_mutable_collision_specification()->Add(); +inline ::viam::service::motion::v1::CollisionSpecification* Constraints::_internal_add_collision_specification() { + return collision_specification_.Add(); +} +inline ::viam::service::motion::v1::CollisionSpecification* Constraints::add_collision_specification() { + ::viam::service::motion::v1::CollisionSpecification* _add = _internal_add_collision_specification(); // @@protoc_insertion_point(field_add:viam.service.motion.v1.Constraints.collision_specification) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::service::motion::v1::CollisionSpecification>& Constraints::collision_specification() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::CollisionSpecification >& +Constraints::collision_specification() const { // @@protoc_insertion_point(field_list:viam.service.motion.v1.Constraints.collision_specification) - return _internal_collision_specification(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::service::motion::v1::CollisionSpecification>& -Constraints::_internal_collision_specification() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.collision_specification_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::service::motion::v1::CollisionSpecification>* -Constraints::_internal_mutable_collision_specification() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.collision_specification_; + return collision_specification_; } // ------------------------------------------------------------------- @@ -9745,92 +8709,92 @@ Constraints::_internal_mutable_collision_specification() { // LinearConstraint // optional float line_tolerance_mm = 1 [json_name = "lineToleranceMm"]; -inline bool LinearConstraint::has_line_tolerance_mm() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; +inline bool LinearConstraint::_internal_has_line_tolerance_mm() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; return value; } +inline bool LinearConstraint::has_line_tolerance_mm() const { + return _internal_has_line_tolerance_mm(); +} inline void LinearConstraint::clear_line_tolerance_mm() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.line_tolerance_mm_ = 0; - _impl_._has_bits_[0] &= ~0x00000001u; + line_tolerance_mm_ = 0; + _has_bits_[0] &= ~0x00000001u; +} +inline float LinearConstraint::_internal_line_tolerance_mm() const { + return line_tolerance_mm_; } inline float LinearConstraint::line_tolerance_mm() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.LinearConstraint.line_tolerance_mm) return _internal_line_tolerance_mm(); } +inline void LinearConstraint::_internal_set_line_tolerance_mm(float value) { + _has_bits_[0] |= 0x00000001u; + line_tolerance_mm_ = value; +} inline void LinearConstraint::set_line_tolerance_mm(float value) { _internal_set_line_tolerance_mm(value); // @@protoc_insertion_point(field_set:viam.service.motion.v1.LinearConstraint.line_tolerance_mm) } -inline float LinearConstraint::_internal_line_tolerance_mm() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.line_tolerance_mm_; -} -inline void LinearConstraint::_internal_set_line_tolerance_mm(float value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.line_tolerance_mm_ = value; -} // optional float orientation_tolerance_degs = 2 [json_name = "orientationToleranceDegs"]; -inline bool LinearConstraint::has_orientation_tolerance_degs() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; +inline bool LinearConstraint::_internal_has_orientation_tolerance_degs() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; return value; } +inline bool LinearConstraint::has_orientation_tolerance_degs() const { + return _internal_has_orientation_tolerance_degs(); +} inline void LinearConstraint::clear_orientation_tolerance_degs() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.orientation_tolerance_degs_ = 0; - _impl_._has_bits_[0] &= ~0x00000002u; + orientation_tolerance_degs_ = 0; + _has_bits_[0] &= ~0x00000002u; +} +inline float LinearConstraint::_internal_orientation_tolerance_degs() const { + return orientation_tolerance_degs_; } inline float LinearConstraint::orientation_tolerance_degs() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.LinearConstraint.orientation_tolerance_degs) return _internal_orientation_tolerance_degs(); } +inline void LinearConstraint::_internal_set_orientation_tolerance_degs(float value) { + _has_bits_[0] |= 0x00000002u; + orientation_tolerance_degs_ = value; +} inline void LinearConstraint::set_orientation_tolerance_degs(float value) { _internal_set_orientation_tolerance_degs(value); // @@protoc_insertion_point(field_set:viam.service.motion.v1.LinearConstraint.orientation_tolerance_degs) } -inline float LinearConstraint::_internal_orientation_tolerance_degs() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.orientation_tolerance_degs_; -} -inline void LinearConstraint::_internal_set_orientation_tolerance_degs(float value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.orientation_tolerance_degs_ = value; -} // ------------------------------------------------------------------- // OrientationConstraint // optional float orientation_tolerance_degs = 1 [json_name = "orientationToleranceDegs"]; -inline bool OrientationConstraint::has_orientation_tolerance_degs() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; +inline bool OrientationConstraint::_internal_has_orientation_tolerance_degs() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; return value; } +inline bool OrientationConstraint::has_orientation_tolerance_degs() const { + return _internal_has_orientation_tolerance_degs(); +} inline void OrientationConstraint::clear_orientation_tolerance_degs() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.orientation_tolerance_degs_ = 0; - _impl_._has_bits_[0] &= ~0x00000001u; + orientation_tolerance_degs_ = 0; + _has_bits_[0] &= ~0x00000001u; +} +inline float OrientationConstraint::_internal_orientation_tolerance_degs() const { + return orientation_tolerance_degs_; } inline float OrientationConstraint::orientation_tolerance_degs() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.OrientationConstraint.orientation_tolerance_degs) return _internal_orientation_tolerance_degs(); } +inline void OrientationConstraint::_internal_set_orientation_tolerance_degs(float value) { + _has_bits_[0] |= 0x00000001u; + orientation_tolerance_degs_ = value; +} inline void OrientationConstraint::set_orientation_tolerance_degs(float value) { _internal_set_orientation_tolerance_degs(value); // @@protoc_insertion_point(field_set:viam.service.motion.v1.OrientationConstraint.orientation_tolerance_degs) } -inline float OrientationConstraint::_internal_orientation_tolerance_degs() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.orientation_tolerance_degs_; -} -inline void OrientationConstraint::_internal_set_orientation_tolerance_degs(float value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.orientation_tolerance_degs_ = value; -} // ------------------------------------------------------------------- @@ -9838,107 +8802,101 @@ inline void OrientationConstraint::_internal_set_orientation_tolerance_degs(floa // string frame1 = 1 [json_name = "frame1"]; inline void CollisionSpecification_AllowedFrameCollisions::clear_frame1() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.frame1_.ClearToEmpty(); + frame1_.ClearToEmpty(); } -inline const std::string& CollisionSpecification_AllowedFrameCollisions::frame1() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& CollisionSpecification_AllowedFrameCollisions::frame1() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.CollisionSpecification.AllowedFrameCollisions.frame1) return _internal_frame1(); } -template -inline PROTOBUF_ALWAYS_INLINE void CollisionSpecification_AllowedFrameCollisions::set_frame1(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.frame1_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void CollisionSpecification_AllowedFrameCollisions::set_frame1(ArgT0&& arg0, ArgT... args) { + + frame1_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.motion.v1.CollisionSpecification.AllowedFrameCollisions.frame1) } -inline std::string* CollisionSpecification_AllowedFrameCollisions::mutable_frame1() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* CollisionSpecification_AllowedFrameCollisions::mutable_frame1() { std::string* _s = _internal_mutable_frame1(); // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.CollisionSpecification.AllowedFrameCollisions.frame1) return _s; } inline const std::string& CollisionSpecification_AllowedFrameCollisions::_internal_frame1() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.frame1_.Get(); + return frame1_.Get(); } inline void CollisionSpecification_AllowedFrameCollisions::_internal_set_frame1(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.frame1_.Set(value, GetArena()); + + frame1_.Set(value, GetArenaForAllocation()); } inline std::string* CollisionSpecification_AllowedFrameCollisions::_internal_mutable_frame1() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.frame1_.Mutable( GetArena()); + + return frame1_.Mutable(GetArenaForAllocation()); } inline std::string* CollisionSpecification_AllowedFrameCollisions::release_frame1() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.motion.v1.CollisionSpecification.AllowedFrameCollisions.frame1) - return _impl_.frame1_.Release(); -} -inline void CollisionSpecification_AllowedFrameCollisions::set_allocated_frame1(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.frame1_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.frame1_.IsDefault()) { - _impl_.frame1_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return frame1_.Release(); +} +inline void CollisionSpecification_AllowedFrameCollisions::set_allocated_frame1(std::string* frame1) { + if (frame1 != nullptr) { + + } else { + + } + frame1_.SetAllocated(frame1, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (frame1_.IsDefault()) { + frame1_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.CollisionSpecification.AllowedFrameCollisions.frame1) } // string frame2 = 2 [json_name = "frame2"]; inline void CollisionSpecification_AllowedFrameCollisions::clear_frame2() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.frame2_.ClearToEmpty(); + frame2_.ClearToEmpty(); } -inline const std::string& CollisionSpecification_AllowedFrameCollisions::frame2() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& CollisionSpecification_AllowedFrameCollisions::frame2() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.CollisionSpecification.AllowedFrameCollisions.frame2) return _internal_frame2(); } -template -inline PROTOBUF_ALWAYS_INLINE void CollisionSpecification_AllowedFrameCollisions::set_frame2(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.frame2_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void CollisionSpecification_AllowedFrameCollisions::set_frame2(ArgT0&& arg0, ArgT... args) { + + frame2_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.motion.v1.CollisionSpecification.AllowedFrameCollisions.frame2) } -inline std::string* CollisionSpecification_AllowedFrameCollisions::mutable_frame2() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* CollisionSpecification_AllowedFrameCollisions::mutable_frame2() { std::string* _s = _internal_mutable_frame2(); // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.CollisionSpecification.AllowedFrameCollisions.frame2) return _s; } inline const std::string& CollisionSpecification_AllowedFrameCollisions::_internal_frame2() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.frame2_.Get(); + return frame2_.Get(); } inline void CollisionSpecification_AllowedFrameCollisions::_internal_set_frame2(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.frame2_.Set(value, GetArena()); + + frame2_.Set(value, GetArenaForAllocation()); } inline std::string* CollisionSpecification_AllowedFrameCollisions::_internal_mutable_frame2() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.frame2_.Mutable( GetArena()); + + return frame2_.Mutable(GetArenaForAllocation()); } inline std::string* CollisionSpecification_AllowedFrameCollisions::release_frame2() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.motion.v1.CollisionSpecification.AllowedFrameCollisions.frame2) - return _impl_.frame2_.Release(); -} -inline void CollisionSpecification_AllowedFrameCollisions::set_allocated_frame2(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.frame2_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.frame2_.IsDefault()) { - _impl_.frame2_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return frame2_.Release(); +} +inline void CollisionSpecification_AllowedFrameCollisions::set_allocated_frame2(std::string* frame2) { + if (frame2 != nullptr) { + + } else { + + } + frame2_.SetAllocated(frame2, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (frame2_.IsDefault()) { + frame2_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.CollisionSpecification.AllowedFrameCollisions.frame2) } @@ -9948,51 +8906,42 @@ inline void CollisionSpecification_AllowedFrameCollisions::set_allocated_frame2( // repeated .viam.service.motion.v1.CollisionSpecification.AllowedFrameCollisions allows = 1 [json_name = "allows"]; inline int CollisionSpecification::_internal_allows_size() const { - return _internal_allows().size(); + return allows_.size(); } inline int CollisionSpecification::allows_size() const { return _internal_allows_size(); } inline void CollisionSpecification::clear_allows() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.allows_.Clear(); + allows_.Clear(); } -inline ::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions* CollisionSpecification::mutable_allows(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions* CollisionSpecification::mutable_allows(int index) { // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.CollisionSpecification.allows) - return _internal_mutable_allows()->Mutable(index); + return allows_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions>* CollisionSpecification::mutable_allows() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions >* +CollisionSpecification::mutable_allows() { // @@protoc_insertion_point(field_mutable_list:viam.service.motion.v1.CollisionSpecification.allows) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_allows(); + return &allows_; } -inline const ::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions& CollisionSpecification::allows(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions& CollisionSpecification::_internal_allows(int index) const { + return allows_.Get(index); +} +inline const ::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions& CollisionSpecification::allows(int index) const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.CollisionSpecification.allows) - return _internal_allows().Get(index); + return _internal_allows(index); +} +inline ::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions* CollisionSpecification::_internal_add_allows() { + return allows_.Add(); } -inline ::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions* CollisionSpecification::add_allows() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions* _add = _internal_mutable_allows()->Add(); +inline ::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions* CollisionSpecification::add_allows() { + ::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions* _add = _internal_add_allows(); // @@protoc_insertion_point(field_add:viam.service.motion.v1.CollisionSpecification.allows) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions>& CollisionSpecification::allows() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions >& +CollisionSpecification::allows() const { // @@protoc_insertion_point(field_list:viam.service.motion.v1.CollisionSpecification.allows) - return _internal_allows(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions>& -CollisionSpecification::_internal_allows() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.allows_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions>* -CollisionSpecification::_internal_mutable_allows() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.allows_; + return allows_; } // ------------------------------------------------------------------- @@ -10000,244 +8949,223 @@ CollisionSpecification::_internal_mutable_allows() { // PlanWithStatus // .viam.service.motion.v1.Plan plan = 1 [json_name = "plan"]; +inline bool PlanWithStatus::_internal_has_plan() const { + return this != internal_default_instance() && plan_ != nullptr; +} inline bool PlanWithStatus::has_plan() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.plan_ != nullptr); - return value; + return _internal_has_plan(); } inline void PlanWithStatus::clear_plan() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.plan_ != nullptr) _impl_.plan_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && plan_ != nullptr) { + delete plan_; + } + plan_ = nullptr; } inline const ::viam::service::motion::v1::Plan& PlanWithStatus::_internal_plan() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::service::motion::v1::Plan* p = _impl_.plan_; - return p != nullptr ? *p : reinterpret_cast(::viam::service::motion::v1::_Plan_default_instance_); + const ::viam::service::motion::v1::Plan* p = plan_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::service::motion::v1::_Plan_default_instance_); } -inline const ::viam::service::motion::v1::Plan& PlanWithStatus::plan() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::service::motion::v1::Plan& PlanWithStatus::plan() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.PlanWithStatus.plan) return _internal_plan(); } -inline void PlanWithStatus::unsafe_arena_set_allocated_plan(::viam::service::motion::v1::Plan* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.plan_); +inline void PlanWithStatus::unsafe_arena_set_allocated_plan( + ::viam::service::motion::v1::Plan* plan) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(plan_); } - _impl_.plan_ = reinterpret_cast<::viam::service::motion::v1::Plan*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + plan_ = plan; + if (plan) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.PlanWithStatus.plan) } inline ::viam::service::motion::v1::Plan* PlanWithStatus::release_plan() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::service::motion::v1::Plan* released = _impl_.plan_; - _impl_.plan_ = nullptr; + + ::viam::service::motion::v1::Plan* temp = plan_; + plan_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::service::motion::v1::Plan* PlanWithStatus::unsafe_arena_release_plan() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.motion.v1.PlanWithStatus.plan) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::service::motion::v1::Plan* temp = _impl_.plan_; - _impl_.plan_ = nullptr; + + ::viam::service::motion::v1::Plan* temp = plan_; + plan_ = nullptr; return temp; } inline ::viam::service::motion::v1::Plan* PlanWithStatus::_internal_mutable_plan() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.plan_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::service::motion::v1::Plan>(GetArena()); - _impl_.plan_ = reinterpret_cast<::viam::service::motion::v1::Plan*>(p); + + if (plan_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::service::motion::v1::Plan>(GetArenaForAllocation()); + plan_ = p; } - return _impl_.plan_; + return plan_; } -inline ::viam::service::motion::v1::Plan* PlanWithStatus::mutable_plan() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::service::motion::v1::Plan* PlanWithStatus::mutable_plan() { ::viam::service::motion::v1::Plan* _msg = _internal_mutable_plan(); // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.PlanWithStatus.plan) return _msg; } -inline void PlanWithStatus::set_allocated_plan(::viam::service::motion::v1::Plan* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void PlanWithStatus::set_allocated_plan(::viam::service::motion::v1::Plan* plan) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::service::motion::v1::Plan*>(_impl_.plan_); + delete plan_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::service::motion::v1::Plan*>(value)->GetArena(); + if (plan) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(plan); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + plan = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, plan, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.plan_ = reinterpret_cast<::viam::service::motion::v1::Plan*>(value); + plan_ = plan; // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.PlanWithStatus.plan) } // .viam.service.motion.v1.PlanStatus status = 2 [json_name = "status"]; +inline bool PlanWithStatus::_internal_has_status() const { + return this != internal_default_instance() && status_ != nullptr; +} inline bool PlanWithStatus::has_status() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.status_ != nullptr); - return value; + return _internal_has_status(); } inline void PlanWithStatus::clear_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.status_ != nullptr) _impl_.status_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; } inline const ::viam::service::motion::v1::PlanStatus& PlanWithStatus::_internal_status() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::service::motion::v1::PlanStatus* p = _impl_.status_; - return p != nullptr ? *p : reinterpret_cast(::viam::service::motion::v1::_PlanStatus_default_instance_); + const ::viam::service::motion::v1::PlanStatus* p = status_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::service::motion::v1::_PlanStatus_default_instance_); } -inline const ::viam::service::motion::v1::PlanStatus& PlanWithStatus::status() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::service::motion::v1::PlanStatus& PlanWithStatus::status() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.PlanWithStatus.status) return _internal_status(); } -inline void PlanWithStatus::unsafe_arena_set_allocated_status(::viam::service::motion::v1::PlanStatus* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.status_); +inline void PlanWithStatus::unsafe_arena_set_allocated_status( + ::viam::service::motion::v1::PlanStatus* status) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); } - _impl_.status_ = reinterpret_cast<::viam::service::motion::v1::PlanStatus*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + status_ = status; + if (status) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.PlanWithStatus.status) } inline ::viam::service::motion::v1::PlanStatus* PlanWithStatus::release_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::viam::service::motion::v1::PlanStatus* released = _impl_.status_; - _impl_.status_ = nullptr; + + ::viam::service::motion::v1::PlanStatus* temp = status_; + status_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::service::motion::v1::PlanStatus* PlanWithStatus::unsafe_arena_release_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.motion.v1.PlanWithStatus.status) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::viam::service::motion::v1::PlanStatus* temp = _impl_.status_; - _impl_.status_ = nullptr; + + ::viam::service::motion::v1::PlanStatus* temp = status_; + status_ = nullptr; return temp; } inline ::viam::service::motion::v1::PlanStatus* PlanWithStatus::_internal_mutable_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.status_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::service::motion::v1::PlanStatus>(GetArena()); - _impl_.status_ = reinterpret_cast<::viam::service::motion::v1::PlanStatus*>(p); + + if (status_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::service::motion::v1::PlanStatus>(GetArenaForAllocation()); + status_ = p; } - return _impl_.status_; + return status_; } -inline ::viam::service::motion::v1::PlanStatus* PlanWithStatus::mutable_status() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::service::motion::v1::PlanStatus* PlanWithStatus::mutable_status() { ::viam::service::motion::v1::PlanStatus* _msg = _internal_mutable_status(); // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.PlanWithStatus.status) return _msg; } -inline void PlanWithStatus::set_allocated_status(::viam::service::motion::v1::PlanStatus* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void PlanWithStatus::set_allocated_status(::viam::service::motion::v1::PlanStatus* status) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::service::motion::v1::PlanStatus*>(_impl_.status_); + delete status_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::service::motion::v1::PlanStatus*>(value)->GetArena(); + if (status) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(status); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, status, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.status_ = reinterpret_cast<::viam::service::motion::v1::PlanStatus*>(value); + status_ = status; // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.PlanWithStatus.status) } // repeated .viam.service.motion.v1.PlanStatus status_history = 3 [json_name = "statusHistory"]; inline int PlanWithStatus::_internal_status_history_size() const { - return _internal_status_history().size(); + return status_history_.size(); } inline int PlanWithStatus::status_history_size() const { return _internal_status_history_size(); } inline void PlanWithStatus::clear_status_history() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.status_history_.Clear(); + status_history_.Clear(); } -inline ::viam::service::motion::v1::PlanStatus* PlanWithStatus::mutable_status_history(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::service::motion::v1::PlanStatus* PlanWithStatus::mutable_status_history(int index) { // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.PlanWithStatus.status_history) - return _internal_mutable_status_history()->Mutable(index); + return status_history_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::service::motion::v1::PlanStatus>* PlanWithStatus::mutable_status_history() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::PlanStatus >* +PlanWithStatus::mutable_status_history() { // @@protoc_insertion_point(field_mutable_list:viam.service.motion.v1.PlanWithStatus.status_history) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_status_history(); + return &status_history_; } -inline const ::viam::service::motion::v1::PlanStatus& PlanWithStatus::status_history(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::service::motion::v1::PlanStatus& PlanWithStatus::_internal_status_history(int index) const { + return status_history_.Get(index); +} +inline const ::viam::service::motion::v1::PlanStatus& PlanWithStatus::status_history(int index) const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.PlanWithStatus.status_history) - return _internal_status_history().Get(index); + return _internal_status_history(index); +} +inline ::viam::service::motion::v1::PlanStatus* PlanWithStatus::_internal_add_status_history() { + return status_history_.Add(); } -inline ::viam::service::motion::v1::PlanStatus* PlanWithStatus::add_status_history() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::service::motion::v1::PlanStatus* _add = _internal_mutable_status_history()->Add(); +inline ::viam::service::motion::v1::PlanStatus* PlanWithStatus::add_status_history() { + ::viam::service::motion::v1::PlanStatus* _add = _internal_add_status_history(); // @@protoc_insertion_point(field_add:viam.service.motion.v1.PlanWithStatus.status_history) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::service::motion::v1::PlanStatus>& PlanWithStatus::status_history() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::PlanStatus >& +PlanWithStatus::status_history() const { // @@protoc_insertion_point(field_list:viam.service.motion.v1.PlanWithStatus.status_history) - return _internal_status_history(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::service::motion::v1::PlanStatus>& -PlanWithStatus::_internal_status_history() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.status_history_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::service::motion::v1::PlanStatus>* -PlanWithStatus::_internal_mutable_status_history() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.status_history_; + return status_history_; } // ------------------------------------------------------------------- @@ -10246,294 +9174,276 @@ PlanWithStatus::_internal_mutable_status_history() { // string plan_id = 1 [json_name = "planId"]; inline void PlanStatusWithID::clear_plan_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.plan_id_.ClearToEmpty(); + plan_id_.ClearToEmpty(); } -inline const std::string& PlanStatusWithID::plan_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& PlanStatusWithID::plan_id() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.PlanStatusWithID.plan_id) return _internal_plan_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void PlanStatusWithID::set_plan_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.plan_id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void PlanStatusWithID::set_plan_id(ArgT0&& arg0, ArgT... args) { + + plan_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.motion.v1.PlanStatusWithID.plan_id) } -inline std::string* PlanStatusWithID::mutable_plan_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* PlanStatusWithID::mutable_plan_id() { std::string* _s = _internal_mutable_plan_id(); // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.PlanStatusWithID.plan_id) return _s; } inline const std::string& PlanStatusWithID::_internal_plan_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.plan_id_.Get(); + return plan_id_.Get(); } inline void PlanStatusWithID::_internal_set_plan_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.plan_id_.Set(value, GetArena()); + + plan_id_.Set(value, GetArenaForAllocation()); } inline std::string* PlanStatusWithID::_internal_mutable_plan_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.plan_id_.Mutable( GetArena()); + + return plan_id_.Mutable(GetArenaForAllocation()); } inline std::string* PlanStatusWithID::release_plan_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.motion.v1.PlanStatusWithID.plan_id) - return _impl_.plan_id_.Release(); -} -inline void PlanStatusWithID::set_allocated_plan_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.plan_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.plan_id_.IsDefault()) { - _impl_.plan_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return plan_id_.Release(); +} +inline void PlanStatusWithID::set_allocated_plan_id(std::string* plan_id) { + if (plan_id != nullptr) { + + } else { + + } + plan_id_.SetAllocated(plan_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (plan_id_.IsDefault()) { + plan_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.PlanStatusWithID.plan_id) } // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; +inline bool PlanStatusWithID::_internal_has_component_name() const { + return this != internal_default_instance() && component_name_ != nullptr; +} inline bool PlanStatusWithID::has_component_name() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.component_name_ != nullptr); - return value; + return _internal_has_component_name(); } inline const ::viam::common::v1::ResourceName& PlanStatusWithID::_internal_component_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::common::v1::ResourceName* p = _impl_.component_name_; - return p != nullptr ? *p : reinterpret_cast(::viam::common::v1::_ResourceName_default_instance_); + const ::viam::common::v1::ResourceName* p = component_name_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_ResourceName_default_instance_); } -inline const ::viam::common::v1::ResourceName& PlanStatusWithID::component_name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::ResourceName& PlanStatusWithID::component_name() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.PlanStatusWithID.component_name) return _internal_component_name(); } -inline void PlanStatusWithID::unsafe_arena_set_allocated_component_name(::viam::common::v1::ResourceName* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.component_name_); +inline void PlanStatusWithID::unsafe_arena_set_allocated_component_name( + ::viam::common::v1::ResourceName* component_name) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_); } - _impl_.component_name_ = reinterpret_cast<::viam::common::v1::ResourceName*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + component_name_ = component_name; + if (component_name) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.PlanStatusWithID.component_name) } inline ::viam::common::v1::ResourceName* PlanStatusWithID::release_component_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::ResourceName* released = _impl_.component_name_; - _impl_.component_name_ = nullptr; + + ::viam::common::v1::ResourceName* temp = component_name_; + component_name_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::common::v1::ResourceName* PlanStatusWithID::unsafe_arena_release_component_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.motion.v1.PlanStatusWithID.component_name) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::ResourceName* temp = _impl_.component_name_; - _impl_.component_name_ = nullptr; + + ::viam::common::v1::ResourceName* temp = component_name_; + component_name_ = nullptr; return temp; } inline ::viam::common::v1::ResourceName* PlanStatusWithID::_internal_mutable_component_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.component_name_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArena()); - _impl_.component_name_ = reinterpret_cast<::viam::common::v1::ResourceName*>(p); + + if (component_name_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArenaForAllocation()); + component_name_ = p; } - return _impl_.component_name_; + return component_name_; } -inline ::viam::common::v1::ResourceName* PlanStatusWithID::mutable_component_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::ResourceName* PlanStatusWithID::mutable_component_name() { ::viam::common::v1::ResourceName* _msg = _internal_mutable_component_name(); // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.PlanStatusWithID.component_name) return _msg; } -inline void PlanStatusWithID::set_allocated_component_name(::viam::common::v1::ResourceName* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void PlanStatusWithID::set_allocated_component_name(::viam::common::v1::ResourceName* component_name) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.component_name_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (component_name) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + component_name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, component_name, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.component_name_ = reinterpret_cast<::viam::common::v1::ResourceName*>(value); + component_name_ = component_name; // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.PlanStatusWithID.component_name) } // string execution_id = 3 [json_name = "executionId"]; inline void PlanStatusWithID::clear_execution_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.execution_id_.ClearToEmpty(); + execution_id_.ClearToEmpty(); } -inline const std::string& PlanStatusWithID::execution_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& PlanStatusWithID::execution_id() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.PlanStatusWithID.execution_id) return _internal_execution_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void PlanStatusWithID::set_execution_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.execution_id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void PlanStatusWithID::set_execution_id(ArgT0&& arg0, ArgT... args) { + + execution_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.motion.v1.PlanStatusWithID.execution_id) } -inline std::string* PlanStatusWithID::mutable_execution_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* PlanStatusWithID::mutable_execution_id() { std::string* _s = _internal_mutable_execution_id(); // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.PlanStatusWithID.execution_id) return _s; } inline const std::string& PlanStatusWithID::_internal_execution_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.execution_id_.Get(); + return execution_id_.Get(); } inline void PlanStatusWithID::_internal_set_execution_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.execution_id_.Set(value, GetArena()); + + execution_id_.Set(value, GetArenaForAllocation()); } inline std::string* PlanStatusWithID::_internal_mutable_execution_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.execution_id_.Mutable( GetArena()); + + return execution_id_.Mutable(GetArenaForAllocation()); } inline std::string* PlanStatusWithID::release_execution_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.motion.v1.PlanStatusWithID.execution_id) - return _impl_.execution_id_.Release(); -} -inline void PlanStatusWithID::set_allocated_execution_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.execution_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.execution_id_.IsDefault()) { - _impl_.execution_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return execution_id_.Release(); +} +inline void PlanStatusWithID::set_allocated_execution_id(std::string* execution_id) { + if (execution_id != nullptr) { + + } else { + + } + execution_id_.SetAllocated(execution_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (execution_id_.IsDefault()) { + execution_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.PlanStatusWithID.execution_id) } // .viam.service.motion.v1.PlanStatus status = 4 [json_name = "status"]; +inline bool PlanStatusWithID::_internal_has_status() const { + return this != internal_default_instance() && status_ != nullptr; +} inline bool PlanStatusWithID::has_status() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.status_ != nullptr); - return value; + return _internal_has_status(); } inline void PlanStatusWithID::clear_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.status_ != nullptr) _impl_.status_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; } inline const ::viam::service::motion::v1::PlanStatus& PlanStatusWithID::_internal_status() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::service::motion::v1::PlanStatus* p = _impl_.status_; - return p != nullptr ? *p : reinterpret_cast(::viam::service::motion::v1::_PlanStatus_default_instance_); + const ::viam::service::motion::v1::PlanStatus* p = status_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::service::motion::v1::_PlanStatus_default_instance_); } -inline const ::viam::service::motion::v1::PlanStatus& PlanStatusWithID::status() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::service::motion::v1::PlanStatus& PlanStatusWithID::status() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.PlanStatusWithID.status) return _internal_status(); } -inline void PlanStatusWithID::unsafe_arena_set_allocated_status(::viam::service::motion::v1::PlanStatus* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.status_); +inline void PlanStatusWithID::unsafe_arena_set_allocated_status( + ::viam::service::motion::v1::PlanStatus* status) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); } - _impl_.status_ = reinterpret_cast<::viam::service::motion::v1::PlanStatus*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + status_ = status; + if (status) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.PlanStatusWithID.status) } inline ::viam::service::motion::v1::PlanStatus* PlanStatusWithID::release_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::viam::service::motion::v1::PlanStatus* released = _impl_.status_; - _impl_.status_ = nullptr; + + ::viam::service::motion::v1::PlanStatus* temp = status_; + status_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::service::motion::v1::PlanStatus* PlanStatusWithID::unsafe_arena_release_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.motion.v1.PlanStatusWithID.status) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::viam::service::motion::v1::PlanStatus* temp = _impl_.status_; - _impl_.status_ = nullptr; + + ::viam::service::motion::v1::PlanStatus* temp = status_; + status_ = nullptr; return temp; } inline ::viam::service::motion::v1::PlanStatus* PlanStatusWithID::_internal_mutable_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.status_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::service::motion::v1::PlanStatus>(GetArena()); - _impl_.status_ = reinterpret_cast<::viam::service::motion::v1::PlanStatus*>(p); + + if (status_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::service::motion::v1::PlanStatus>(GetArenaForAllocation()); + status_ = p; } - return _impl_.status_; + return status_; } -inline ::viam::service::motion::v1::PlanStatus* PlanStatusWithID::mutable_status() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::service::motion::v1::PlanStatus* PlanStatusWithID::mutable_status() { ::viam::service::motion::v1::PlanStatus* _msg = _internal_mutable_status(); // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.PlanStatusWithID.status) return _msg; } -inline void PlanStatusWithID::set_allocated_status(::viam::service::motion::v1::PlanStatus* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void PlanStatusWithID::set_allocated_status(::viam::service::motion::v1::PlanStatus* status) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::viam::service::motion::v1::PlanStatus*>(_impl_.status_); + delete status_; } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::viam::service::motion::v1::PlanStatus*>(value)->GetArena(); + if (status) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(status); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, status, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.status_ = reinterpret_cast<::viam::service::motion::v1::PlanStatus*>(value); + status_ = status; // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.PlanStatusWithID.status) } @@ -10543,186 +9453,174 @@ inline void PlanStatusWithID::set_allocated_status(::viam::service::motion::v1:: // .viam.service.motion.v1.PlanState state = 1 [json_name = "state"]; inline void PlanStatus::clear_state() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.state_ = 0; + state_ = 0; +} +inline ::viam::service::motion::v1::PlanState PlanStatus::_internal_state() const { + return static_cast< ::viam::service::motion::v1::PlanState >(state_); } inline ::viam::service::motion::v1::PlanState PlanStatus::state() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.PlanStatus.state) return _internal_state(); } +inline void PlanStatus::_internal_set_state(::viam::service::motion::v1::PlanState value) { + + state_ = value; +} inline void PlanStatus::set_state(::viam::service::motion::v1::PlanState value) { _internal_set_state(value); // @@protoc_insertion_point(field_set:viam.service.motion.v1.PlanStatus.state) } -inline ::viam::service::motion::v1::PlanState PlanStatus::_internal_state() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::viam::service::motion::v1::PlanState>(_impl_.state_); -} -inline void PlanStatus::_internal_set_state(::viam::service::motion::v1::PlanState value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.state_ = value; -} // .google.protobuf.Timestamp timestamp = 2 [json_name = "timestamp"]; +inline bool PlanStatus::_internal_has_timestamp() const { + return this != internal_default_instance() && timestamp_ != nullptr; +} inline bool PlanStatus::has_timestamp() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.timestamp_ != nullptr); - return value; + return _internal_has_timestamp(); } -inline const ::google::protobuf::Timestamp& PlanStatus::_internal_timestamp() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Timestamp* p = _impl_.timestamp_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& PlanStatus::_internal_timestamp() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = timestamp_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); } -inline const ::google::protobuf::Timestamp& PlanStatus::timestamp() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& PlanStatus::timestamp() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.PlanStatus.timestamp) return _internal_timestamp(); } -inline void PlanStatus::unsafe_arena_set_allocated_timestamp(::google::protobuf::Timestamp* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.timestamp_); +inline void PlanStatus::unsafe_arena_set_allocated_timestamp( + ::PROTOBUF_NAMESPACE_ID::Timestamp* timestamp) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(timestamp_); } - _impl_.timestamp_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + timestamp_ = timestamp; + if (timestamp) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.PlanStatus.timestamp) } -inline ::google::protobuf::Timestamp* PlanStatus::release_timestamp() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Timestamp* released = _impl_.timestamp_; - _impl_.timestamp_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* PlanStatus::release_timestamp() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = timestamp_; + timestamp_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Timestamp* PlanStatus::unsafe_arena_release_timestamp() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* PlanStatus::unsafe_arena_release_timestamp() { // @@protoc_insertion_point(field_release:viam.service.motion.v1.PlanStatus.timestamp) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Timestamp* temp = _impl_.timestamp_; - _impl_.timestamp_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = timestamp_; + timestamp_ = nullptr; return temp; } -inline ::google::protobuf::Timestamp* PlanStatus::_internal_mutable_timestamp() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.timestamp_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena()); - _impl_.timestamp_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* PlanStatus::_internal_mutable_timestamp() { + + if (timestamp_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + timestamp_ = p; } - return _impl_.timestamp_; + return timestamp_; } -inline ::google::protobuf::Timestamp* PlanStatus::mutable_timestamp() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Timestamp* _msg = _internal_mutable_timestamp(); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* PlanStatus::mutable_timestamp() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_timestamp(); // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.PlanStatus.timestamp) return _msg; } -inline void PlanStatus::set_allocated_timestamp(::google::protobuf::Timestamp* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void PlanStatus::set_allocated_timestamp(::PROTOBUF_NAMESPACE_ID::Timestamp* timestamp) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.timestamp_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(timestamp_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (timestamp) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(timestamp)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + timestamp = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, timestamp, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.timestamp_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); + timestamp_ = timestamp; // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.PlanStatus.timestamp) } // optional string reason = 3 [json_name = "reason"]; -inline bool PlanStatus::has_reason() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; +inline bool PlanStatus::_internal_has_reason() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; return value; } +inline bool PlanStatus::has_reason() const { + return _internal_has_reason(); +} inline void PlanStatus::clear_reason() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.reason_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000001u; + reason_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; } -inline const std::string& PlanStatus::reason() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& PlanStatus::reason() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.PlanStatus.reason) return _internal_reason(); } -template -inline PROTOBUF_ALWAYS_INLINE void PlanStatus::set_reason(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.reason_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void PlanStatus::set_reason(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + reason_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.motion.v1.PlanStatus.reason) } -inline std::string* PlanStatus::mutable_reason() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* PlanStatus::mutable_reason() { std::string* _s = _internal_mutable_reason(); // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.PlanStatus.reason) return _s; } inline const std::string& PlanStatus::_internal_reason() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.reason_.Get(); + return reason_.Get(); } inline void PlanStatus::_internal_set_reason(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.reason_.Set(value, GetArena()); + _has_bits_[0] |= 0x00000001u; + reason_.Set(value, GetArenaForAllocation()); } inline std::string* PlanStatus::_internal_mutable_reason() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.reason_.Mutable( GetArena()); + _has_bits_[0] |= 0x00000001u; + return reason_.Mutable(GetArenaForAllocation()); } inline std::string* PlanStatus::release_reason() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.motion.v1.PlanStatus.reason) - if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + if (!_internal_has_reason()) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000001u; - auto* released = _impl_.reason_.Release(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.reason_.Set("", GetArena()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return released; -} -inline void PlanStatus::set_allocated_reason(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + _has_bits_[0] &= ~0x00000001u; + auto* p = reason_.Release(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (reason_.IsDefault()) { + reason_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; +} +inline void PlanStatus::set_allocated_reason(std::string* reason) { + if (reason != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - _impl_.reason_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.reason_.IsDefault()) { - _impl_.reason_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _has_bits_[0] &= ~0x00000001u; + } + reason_.SetAllocated(reason, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (reason_.IsDefault()) { + reason_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.PlanStatus.reason) } @@ -10732,248 +9630,227 @@ inline void PlanStatus::set_allocated_reason(std::string* value) { // string id = 1 [json_name = "id"]; inline void Plan::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); + id_.ClearToEmpty(); } -inline const std::string& Plan::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Plan::id() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.Plan.id) return _internal_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void Plan::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Plan::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.motion.v1.Plan.id) } -inline std::string* Plan::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Plan::mutable_id() { std::string* _s = _internal_mutable_id(); // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.Plan.id) return _s; } inline const std::string& Plan::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); + return id_.Get(); } inline void Plan::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); + + id_.Set(value, GetArenaForAllocation()); } inline std::string* Plan::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); + + return id_.Mutable(GetArenaForAllocation()); } inline std::string* Plan::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.motion.v1.Plan.id) - return _impl_.id_.Release(); -} -inline void Plan::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return id_.Release(); +} +inline void Plan::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.Plan.id) } // .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"]; +inline bool Plan::_internal_has_component_name() const { + return this != internal_default_instance() && component_name_ != nullptr; +} inline bool Plan::has_component_name() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.component_name_ != nullptr); - return value; + return _internal_has_component_name(); } inline const ::viam::common::v1::ResourceName& Plan::_internal_component_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::common::v1::ResourceName* p = _impl_.component_name_; - return p != nullptr ? *p : reinterpret_cast(::viam::common::v1::_ResourceName_default_instance_); + const ::viam::common::v1::ResourceName* p = component_name_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_ResourceName_default_instance_); } -inline const ::viam::common::v1::ResourceName& Plan::component_name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::ResourceName& Plan::component_name() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.Plan.component_name) return _internal_component_name(); } -inline void Plan::unsafe_arena_set_allocated_component_name(::viam::common::v1::ResourceName* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.component_name_); +inline void Plan::unsafe_arena_set_allocated_component_name( + ::viam::common::v1::ResourceName* component_name) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_); } - _impl_.component_name_ = reinterpret_cast<::viam::common::v1::ResourceName*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + component_name_ = component_name; + if (component_name) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.Plan.component_name) } inline ::viam::common::v1::ResourceName* Plan::release_component_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::ResourceName* released = _impl_.component_name_; - _impl_.component_name_ = nullptr; + + ::viam::common::v1::ResourceName* temp = component_name_; + component_name_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::common::v1::ResourceName* Plan::unsafe_arena_release_component_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.motion.v1.Plan.component_name) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::ResourceName* temp = _impl_.component_name_; - _impl_.component_name_ = nullptr; + + ::viam::common::v1::ResourceName* temp = component_name_; + component_name_ = nullptr; return temp; } inline ::viam::common::v1::ResourceName* Plan::_internal_mutable_component_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.component_name_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArena()); - _impl_.component_name_ = reinterpret_cast<::viam::common::v1::ResourceName*>(p); + + if (component_name_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArenaForAllocation()); + component_name_ = p; } - return _impl_.component_name_; + return component_name_; } -inline ::viam::common::v1::ResourceName* Plan::mutable_component_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::ResourceName* Plan::mutable_component_name() { ::viam::common::v1::ResourceName* _msg = _internal_mutable_component_name(); // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.Plan.component_name) return _msg; } -inline void Plan::set_allocated_component_name(::viam::common::v1::ResourceName* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Plan::set_allocated_component_name(::viam::common::v1::ResourceName* component_name) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.component_name_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (component_name) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(component_name)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + component_name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, component_name, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.component_name_ = reinterpret_cast<::viam::common::v1::ResourceName*>(value); + component_name_ = component_name; // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.Plan.component_name) } // string execution_id = 3 [json_name = "executionId"]; inline void Plan::clear_execution_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.execution_id_.ClearToEmpty(); + execution_id_.ClearToEmpty(); } -inline const std::string& Plan::execution_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Plan::execution_id() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.Plan.execution_id) return _internal_execution_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void Plan::set_execution_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.execution_id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Plan::set_execution_id(ArgT0&& arg0, ArgT... args) { + + execution_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.motion.v1.Plan.execution_id) } -inline std::string* Plan::mutable_execution_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Plan::mutable_execution_id() { std::string* _s = _internal_mutable_execution_id(); // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.Plan.execution_id) return _s; } inline const std::string& Plan::_internal_execution_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.execution_id_.Get(); + return execution_id_.Get(); } inline void Plan::_internal_set_execution_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.execution_id_.Set(value, GetArena()); + + execution_id_.Set(value, GetArenaForAllocation()); } inline std::string* Plan::_internal_mutable_execution_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.execution_id_.Mutable( GetArena()); + + return execution_id_.Mutable(GetArenaForAllocation()); } inline std::string* Plan::release_execution_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.motion.v1.Plan.execution_id) - return _impl_.execution_id_.Release(); -} -inline void Plan::set_allocated_execution_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.execution_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.execution_id_.IsDefault()) { - _impl_.execution_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return execution_id_.Release(); +} +inline void Plan::set_allocated_execution_id(std::string* execution_id) { + if (execution_id != nullptr) { + + } else { + + } + execution_id_.SetAllocated(execution_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (execution_id_.IsDefault()) { + execution_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.Plan.execution_id) } // repeated .viam.service.motion.v1.PlanStep steps = 4 [json_name = "steps"]; inline int Plan::_internal_steps_size() const { - return _internal_steps().size(); + return steps_.size(); } inline int Plan::steps_size() const { return _internal_steps_size(); } inline void Plan::clear_steps() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.steps_.Clear(); + steps_.Clear(); } -inline ::viam::service::motion::v1::PlanStep* Plan::mutable_steps(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::service::motion::v1::PlanStep* Plan::mutable_steps(int index) { // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.Plan.steps) - return _internal_mutable_steps()->Mutable(index); + return steps_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::service::motion::v1::PlanStep>* Plan::mutable_steps() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::PlanStep >* +Plan::mutable_steps() { // @@protoc_insertion_point(field_mutable_list:viam.service.motion.v1.Plan.steps) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_steps(); + return &steps_; } -inline const ::viam::service::motion::v1::PlanStep& Plan::steps(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::service::motion::v1::PlanStep& Plan::_internal_steps(int index) const { + return steps_.Get(index); +} +inline const ::viam::service::motion::v1::PlanStep& Plan::steps(int index) const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.Plan.steps) - return _internal_steps().Get(index); + return _internal_steps(index); +} +inline ::viam::service::motion::v1::PlanStep* Plan::_internal_add_steps() { + return steps_.Add(); } -inline ::viam::service::motion::v1::PlanStep* Plan::add_steps() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::service::motion::v1::PlanStep* _add = _internal_mutable_steps()->Add(); +inline ::viam::service::motion::v1::PlanStep* Plan::add_steps() { + ::viam::service::motion::v1::PlanStep* _add = _internal_add_steps(); // @@protoc_insertion_point(field_add:viam.service.motion.v1.Plan.steps) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::service::motion::v1::PlanStep>& Plan::steps() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::PlanStep >& +Plan::steps() const { // @@protoc_insertion_point(field_list:viam.service.motion.v1.Plan.steps) - return _internal_steps(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::service::motion::v1::PlanStep>& -Plan::_internal_steps() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.steps_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::service::motion::v1::PlanStep>* -Plan::_internal_mutable_steps() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.steps_; + return steps_; } // ------------------------------------------------------------------- @@ -10984,28 +9861,29 @@ Plan::_internal_mutable_steps() { // map step = 1 [json_name = "step"]; inline int PlanStep::_internal_step_size() const { - return _internal_step().size(); + return step_.size(); } inline int PlanStep::step_size() const { return _internal_step_size(); } inline void PlanStep::clear_step() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.step_.Clear(); + step_.Clear(); } -inline const ::google::protobuf::Map& PlanStep::_internal_step() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.step_.GetMap(); +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::service::motion::v1::ComponentState >& +PlanStep::_internal_step() const { + return step_.GetMap(); } -inline const ::google::protobuf::Map& PlanStep::step() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::service::motion::v1::ComponentState >& +PlanStep::step() const { // @@protoc_insertion_point(field_map:viam.service.motion.v1.PlanStep.step) return _internal_step(); } -inline ::google::protobuf::Map* PlanStep::_internal_mutable_step() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.step_.MutableMap(); +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::service::motion::v1::ComponentState >* +PlanStep::_internal_mutable_step() { + return step_.MutableMap(); } -inline ::google::protobuf::Map* PlanStep::mutable_step() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::viam::service::motion::v1::ComponentState >* +PlanStep::mutable_step() { // @@protoc_insertion_point(field_mutable_map:viam.service.motion.v1.PlanStep.step) return _internal_mutable_step(); } @@ -11015,122 +9893,166 @@ inline ::google::protobuf::Map(::viam::common::v1::_Pose_default_instance_); + const ::viam::common::v1::Pose* p = pose_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_Pose_default_instance_); } -inline const ::viam::common::v1::Pose& ComponentState::pose() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::Pose& ComponentState::pose() const { // @@protoc_insertion_point(field_get:viam.service.motion.v1.ComponentState.pose) return _internal_pose(); } -inline void ComponentState::unsafe_arena_set_allocated_pose(::viam::common::v1::Pose* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.pose_); +inline void ComponentState::unsafe_arena_set_allocated_pose( + ::viam::common::v1::Pose* pose) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(pose_); } - _impl_.pose_ = reinterpret_cast<::viam::common::v1::Pose*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + pose_ = pose; + if (pose) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.ComponentState.pose) } inline ::viam::common::v1::Pose* ComponentState::release_pose() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::Pose* released = _impl_.pose_; - _impl_.pose_ = nullptr; + + ::viam::common::v1::Pose* temp = pose_; + pose_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::common::v1::Pose* ComponentState::unsafe_arena_release_pose() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.motion.v1.ComponentState.pose) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::Pose* temp = _impl_.pose_; - _impl_.pose_ = nullptr; + + ::viam::common::v1::Pose* temp = pose_; + pose_ = nullptr; return temp; } inline ::viam::common::v1::Pose* ComponentState::_internal_mutable_pose() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.pose_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::Pose>(GetArena()); - _impl_.pose_ = reinterpret_cast<::viam::common::v1::Pose*>(p); + + if (pose_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::Pose>(GetArenaForAllocation()); + pose_ = p; } - return _impl_.pose_; + return pose_; } -inline ::viam::common::v1::Pose* ComponentState::mutable_pose() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::Pose* ComponentState::mutable_pose() { ::viam::common::v1::Pose* _msg = _internal_mutable_pose(); // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.ComponentState.pose) return _msg; } -inline void ComponentState::set_allocated_pose(::viam::common::v1::Pose* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ComponentState::set_allocated_pose(::viam::common::v1::Pose* pose) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.pose_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(pose_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (pose) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(pose)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + pose = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, pose, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.pose_ = reinterpret_cast<::viam::common::v1::Pose*>(value); + pose_ = pose; // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.ComponentState.pose) } #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) + } // namespace v1 } // namespace motion } // namespace service } // namespace viam +PROTOBUF_NAMESPACE_OPEN -namespace google { -namespace protobuf { - +template <> struct is_proto_enum< ::viam::service::motion::v1::PlanState> : ::std::true_type {}; template <> -struct is_proto_enum<::viam::service::motion::v1::PlanState> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::viam::service::motion::v1::PlanState>() { +inline const EnumDescriptor* GetEnumDescriptor< ::viam::service::motion::v1::PlanState>() { return ::viam::service::motion::v1::PlanState_descriptor(); } -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_service_2fmotion_2fv1_2fmotion_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_service_2fmotion_2fv1_2fmotion_2eproto diff --git a/src/viam/api/service/navigation/v1/navigation.grpc.pb.cc b/src/viam/api/service/navigation/v1/navigation.grpc.pb.cc index 7ffe24fb8..689440852 100644 --- a/src/viam/api/service/navigation/v1/navigation.grpc.pb.cc +++ b/src/viam/api/service/navigation/v1/navigation.grpc.pb.cc @@ -6,19 +6,19 @@ #include "service/navigation/v1/navigation.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace service { namespace navigation { @@ -39,260 +39,310 @@ static const char* NavigationService_method_names[] = { std::unique_ptr< NavigationService::Stub> NavigationService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { (void)options; - std::unique_ptr< NavigationService::Stub> stub(new NavigationService::Stub(channel, options)); + std::unique_ptr< NavigationService::Stub> stub(new NavigationService::Stub(channel)); return stub; } -NavigationService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) - : channel_(channel), rpcmethod_GetMode_(NavigationService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_SetMode_(NavigationService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetLocation_(NavigationService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetWaypoints_(NavigationService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_AddWaypoint_(NavigationService_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_RemoveWaypoint_(NavigationService_method_names[5], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetObstacles_(NavigationService_method_names[6], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetPaths_(NavigationService_method_names[7], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetProperties_(NavigationService_method_names[8], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_DoCommand_(NavigationService_method_names[9], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) +NavigationService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_GetMode_(NavigationService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_SetMode_(NavigationService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetLocation_(NavigationService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetWaypoints_(NavigationService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_AddWaypoint_(NavigationService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_RemoveWaypoint_(NavigationService_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetObstacles_(NavigationService_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetPaths_(NavigationService_method_names[7], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetProperties_(NavigationService_method_names[8], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DoCommand_(NavigationService_method_names[9], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status NavigationService::Stub::GetMode(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetModeRequest& request, ::viam::service::navigation::v1::GetModeResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::service::navigation::v1::GetModeRequest, ::viam::service::navigation::v1::GetModeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetMode_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetMode_, context, request, response); } -void NavigationService::Stub::async::GetMode(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetModeRequest* request, ::viam::service::navigation::v1::GetModeResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::service::navigation::v1::GetModeRequest, ::viam::service::navigation::v1::GetModeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetMode_, context, request, response, std::move(f)); +void NavigationService::Stub::experimental_async::GetMode(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetModeRequest* request, ::viam::service::navigation::v1::GetModeResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetMode_, context, request, response, std::move(f)); } -void NavigationService::Stub::async::GetMode(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetModeRequest* request, ::viam::service::navigation::v1::GetModeResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetMode_, context, request, response, reactor); +void NavigationService::Stub::experimental_async::GetMode(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::GetModeResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetMode_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::GetModeResponse>* NavigationService::Stub::PrepareAsyncGetModeRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetModeRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::navigation::v1::GetModeResponse, ::viam::service::navigation::v1::GetModeRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetMode_, context, request); +void NavigationService::Stub::experimental_async::GetMode(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetModeRequest* request, ::viam::service::navigation::v1::GetModeResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetMode_, context, request, response, reactor); +} + +void NavigationService::Stub::experimental_async::GetMode(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::GetModeResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetMode_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::GetModeResponse>* NavigationService::Stub::AsyncGetModeRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetModeRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetModeRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::navigation::v1::GetModeResponse>::Create(channel_.get(), cq, rpcmethod_GetMode_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::GetModeResponse>* NavigationService::Stub::PrepareAsyncGetModeRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetModeRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::navigation::v1::GetModeResponse>::Create(channel_.get(), cq, rpcmethod_GetMode_, context, request, false); } ::grpc::Status NavigationService::Stub::SetMode(::grpc::ClientContext* context, const ::viam::service::navigation::v1::SetModeRequest& request, ::viam::service::navigation::v1::SetModeResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::service::navigation::v1::SetModeRequest, ::viam::service::navigation::v1::SetModeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_SetMode_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_SetMode_, context, request, response); } -void NavigationService::Stub::async::SetMode(::grpc::ClientContext* context, const ::viam::service::navigation::v1::SetModeRequest* request, ::viam::service::navigation::v1::SetModeResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::service::navigation::v1::SetModeRequest, ::viam::service::navigation::v1::SetModeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SetMode_, context, request, response, std::move(f)); +void NavigationService::Stub::experimental_async::SetMode(::grpc::ClientContext* context, const ::viam::service::navigation::v1::SetModeRequest* request, ::viam::service::navigation::v1::SetModeResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SetMode_, context, request, response, std::move(f)); } -void NavigationService::Stub::async::SetMode(::grpc::ClientContext* context, const ::viam::service::navigation::v1::SetModeRequest* request, ::viam::service::navigation::v1::SetModeResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SetMode_, context, request, response, reactor); +void NavigationService::Stub::experimental_async::SetMode(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::SetModeResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SetMode_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::SetModeResponse>* NavigationService::Stub::PrepareAsyncSetModeRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::SetModeRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::navigation::v1::SetModeResponse, ::viam::service::navigation::v1::SetModeRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_SetMode_, context, request); +void NavigationService::Stub::experimental_async::SetMode(::grpc::ClientContext* context, const ::viam::service::navigation::v1::SetModeRequest* request, ::viam::service::navigation::v1::SetModeResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SetMode_, context, request, response, reactor); +} + +void NavigationService::Stub::experimental_async::SetMode(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::SetModeResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SetMode_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::SetModeResponse>* NavigationService::Stub::AsyncSetModeRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::SetModeRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncSetModeRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::navigation::v1::SetModeResponse>::Create(channel_.get(), cq, rpcmethod_SetMode_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::SetModeResponse>* NavigationService::Stub::PrepareAsyncSetModeRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::SetModeRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::navigation::v1::SetModeResponse>::Create(channel_.get(), cq, rpcmethod_SetMode_, context, request, false); } ::grpc::Status NavigationService::Stub::GetLocation(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetLocationRequest& request, ::viam::service::navigation::v1::GetLocationResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::service::navigation::v1::GetLocationRequest, ::viam::service::navigation::v1::GetLocationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetLocation_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetLocation_, context, request, response); } -void NavigationService::Stub::async::GetLocation(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetLocationRequest* request, ::viam::service::navigation::v1::GetLocationResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::service::navigation::v1::GetLocationRequest, ::viam::service::navigation::v1::GetLocationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetLocation_, context, request, response, std::move(f)); +void NavigationService::Stub::experimental_async::GetLocation(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetLocationRequest* request, ::viam::service::navigation::v1::GetLocationResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetLocation_, context, request, response, std::move(f)); } -void NavigationService::Stub::async::GetLocation(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetLocationRequest* request, ::viam::service::navigation::v1::GetLocationResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetLocation_, context, request, response, reactor); +void NavigationService::Stub::experimental_async::GetLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::GetLocationResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetLocation_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::GetLocationResponse>* NavigationService::Stub::PrepareAsyncGetLocationRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetLocationRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::navigation::v1::GetLocationResponse, ::viam::service::navigation::v1::GetLocationRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetLocation_, context, request); +void NavigationService::Stub::experimental_async::GetLocation(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetLocationRequest* request, ::viam::service::navigation::v1::GetLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetLocation_, context, request, response, reactor); +} + +void NavigationService::Stub::experimental_async::GetLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::GetLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetLocation_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::GetLocationResponse>* NavigationService::Stub::AsyncGetLocationRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetLocationRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetLocationRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::navigation::v1::GetLocationResponse>::Create(channel_.get(), cq, rpcmethod_GetLocation_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::GetLocationResponse>* NavigationService::Stub::PrepareAsyncGetLocationRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetLocationRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::navigation::v1::GetLocationResponse>::Create(channel_.get(), cq, rpcmethod_GetLocation_, context, request, false); } ::grpc::Status NavigationService::Stub::GetWaypoints(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetWaypointsRequest& request, ::viam::service::navigation::v1::GetWaypointsResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::service::navigation::v1::GetWaypointsRequest, ::viam::service::navigation::v1::GetWaypointsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetWaypoints_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetWaypoints_, context, request, response); } -void NavigationService::Stub::async::GetWaypoints(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetWaypointsRequest* request, ::viam::service::navigation::v1::GetWaypointsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::service::navigation::v1::GetWaypointsRequest, ::viam::service::navigation::v1::GetWaypointsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetWaypoints_, context, request, response, std::move(f)); +void NavigationService::Stub::experimental_async::GetWaypoints(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetWaypointsRequest* request, ::viam::service::navigation::v1::GetWaypointsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetWaypoints_, context, request, response, std::move(f)); } -void NavigationService::Stub::async::GetWaypoints(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetWaypointsRequest* request, ::viam::service::navigation::v1::GetWaypointsResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetWaypoints_, context, request, response, reactor); +void NavigationService::Stub::experimental_async::GetWaypoints(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::GetWaypointsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetWaypoints_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::GetWaypointsResponse>* NavigationService::Stub::PrepareAsyncGetWaypointsRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetWaypointsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::navigation::v1::GetWaypointsResponse, ::viam::service::navigation::v1::GetWaypointsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetWaypoints_, context, request); +void NavigationService::Stub::experimental_async::GetWaypoints(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetWaypointsRequest* request, ::viam::service::navigation::v1::GetWaypointsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetWaypoints_, context, request, response, reactor); +} + +void NavigationService::Stub::experimental_async::GetWaypoints(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::GetWaypointsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetWaypoints_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::GetWaypointsResponse>* NavigationService::Stub::AsyncGetWaypointsRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetWaypointsRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetWaypointsRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::navigation::v1::GetWaypointsResponse>::Create(channel_.get(), cq, rpcmethod_GetWaypoints_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::GetWaypointsResponse>* NavigationService::Stub::PrepareAsyncGetWaypointsRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetWaypointsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::navigation::v1::GetWaypointsResponse>::Create(channel_.get(), cq, rpcmethod_GetWaypoints_, context, request, false); } ::grpc::Status NavigationService::Stub::AddWaypoint(::grpc::ClientContext* context, const ::viam::service::navigation::v1::AddWaypointRequest& request, ::viam::service::navigation::v1::AddWaypointResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::service::navigation::v1::AddWaypointRequest, ::viam::service::navigation::v1::AddWaypointResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_AddWaypoint_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_AddWaypoint_, context, request, response); } -void NavigationService::Stub::async::AddWaypoint(::grpc::ClientContext* context, const ::viam::service::navigation::v1::AddWaypointRequest* request, ::viam::service::navigation::v1::AddWaypointResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::service::navigation::v1::AddWaypointRequest, ::viam::service::navigation::v1::AddWaypointResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_AddWaypoint_, context, request, response, std::move(f)); +void NavigationService::Stub::experimental_async::AddWaypoint(::grpc::ClientContext* context, const ::viam::service::navigation::v1::AddWaypointRequest* request, ::viam::service::navigation::v1::AddWaypointResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_AddWaypoint_, context, request, response, std::move(f)); } -void NavigationService::Stub::async::AddWaypoint(::grpc::ClientContext* context, const ::viam::service::navigation::v1::AddWaypointRequest* request, ::viam::service::navigation::v1::AddWaypointResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_AddWaypoint_, context, request, response, reactor); +void NavigationService::Stub::experimental_async::AddWaypoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::AddWaypointResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_AddWaypoint_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::AddWaypointResponse>* NavigationService::Stub::PrepareAsyncAddWaypointRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::AddWaypointRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::navigation::v1::AddWaypointResponse, ::viam::service::navigation::v1::AddWaypointRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_AddWaypoint_, context, request); +void NavigationService::Stub::experimental_async::AddWaypoint(::grpc::ClientContext* context, const ::viam::service::navigation::v1::AddWaypointRequest* request, ::viam::service::navigation::v1::AddWaypointResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_AddWaypoint_, context, request, response, reactor); +} + +void NavigationService::Stub::experimental_async::AddWaypoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::AddWaypointResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_AddWaypoint_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::AddWaypointResponse>* NavigationService::Stub::AsyncAddWaypointRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::AddWaypointRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncAddWaypointRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::navigation::v1::AddWaypointResponse>::Create(channel_.get(), cq, rpcmethod_AddWaypoint_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::AddWaypointResponse>* NavigationService::Stub::PrepareAsyncAddWaypointRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::AddWaypointRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::navigation::v1::AddWaypointResponse>::Create(channel_.get(), cq, rpcmethod_AddWaypoint_, context, request, false); } ::grpc::Status NavigationService::Stub::RemoveWaypoint(::grpc::ClientContext* context, const ::viam::service::navigation::v1::RemoveWaypointRequest& request, ::viam::service::navigation::v1::RemoveWaypointResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::service::navigation::v1::RemoveWaypointRequest, ::viam::service::navigation::v1::RemoveWaypointResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_RemoveWaypoint_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_RemoveWaypoint_, context, request, response); } -void NavigationService::Stub::async::RemoveWaypoint(::grpc::ClientContext* context, const ::viam::service::navigation::v1::RemoveWaypointRequest* request, ::viam::service::navigation::v1::RemoveWaypointResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::service::navigation::v1::RemoveWaypointRequest, ::viam::service::navigation::v1::RemoveWaypointResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_RemoveWaypoint_, context, request, response, std::move(f)); +void NavigationService::Stub::experimental_async::RemoveWaypoint(::grpc::ClientContext* context, const ::viam::service::navigation::v1::RemoveWaypointRequest* request, ::viam::service::navigation::v1::RemoveWaypointResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_RemoveWaypoint_, context, request, response, std::move(f)); } -void NavigationService::Stub::async::RemoveWaypoint(::grpc::ClientContext* context, const ::viam::service::navigation::v1::RemoveWaypointRequest* request, ::viam::service::navigation::v1::RemoveWaypointResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_RemoveWaypoint_, context, request, response, reactor); +void NavigationService::Stub::experimental_async::RemoveWaypoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::RemoveWaypointResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_RemoveWaypoint_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::RemoveWaypointResponse>* NavigationService::Stub::PrepareAsyncRemoveWaypointRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::RemoveWaypointRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::navigation::v1::RemoveWaypointResponse, ::viam::service::navigation::v1::RemoveWaypointRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_RemoveWaypoint_, context, request); +void NavigationService::Stub::experimental_async::RemoveWaypoint(::grpc::ClientContext* context, const ::viam::service::navigation::v1::RemoveWaypointRequest* request, ::viam::service::navigation::v1::RemoveWaypointResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_RemoveWaypoint_, context, request, response, reactor); +} + +void NavigationService::Stub::experimental_async::RemoveWaypoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::RemoveWaypointResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_RemoveWaypoint_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::RemoveWaypointResponse>* NavigationService::Stub::AsyncRemoveWaypointRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::RemoveWaypointRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncRemoveWaypointRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::navigation::v1::RemoveWaypointResponse>::Create(channel_.get(), cq, rpcmethod_RemoveWaypoint_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::RemoveWaypointResponse>* NavigationService::Stub::PrepareAsyncRemoveWaypointRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::RemoveWaypointRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::navigation::v1::RemoveWaypointResponse>::Create(channel_.get(), cq, rpcmethod_RemoveWaypoint_, context, request, false); } ::grpc::Status NavigationService::Stub::GetObstacles(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetObstaclesRequest& request, ::viam::service::navigation::v1::GetObstaclesResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::service::navigation::v1::GetObstaclesRequest, ::viam::service::navigation::v1::GetObstaclesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetObstacles_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetObstacles_, context, request, response); } -void NavigationService::Stub::async::GetObstacles(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetObstaclesRequest* request, ::viam::service::navigation::v1::GetObstaclesResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::service::navigation::v1::GetObstaclesRequest, ::viam::service::navigation::v1::GetObstaclesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetObstacles_, context, request, response, std::move(f)); +void NavigationService::Stub::experimental_async::GetObstacles(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetObstaclesRequest* request, ::viam::service::navigation::v1::GetObstaclesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetObstacles_, context, request, response, std::move(f)); } -void NavigationService::Stub::async::GetObstacles(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetObstaclesRequest* request, ::viam::service::navigation::v1::GetObstaclesResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetObstacles_, context, request, response, reactor); +void NavigationService::Stub::experimental_async::GetObstacles(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::GetObstaclesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetObstacles_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::GetObstaclesResponse>* NavigationService::Stub::PrepareAsyncGetObstaclesRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetObstaclesRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::navigation::v1::GetObstaclesResponse, ::viam::service::navigation::v1::GetObstaclesRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetObstacles_, context, request); +void NavigationService::Stub::experimental_async::GetObstacles(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetObstaclesRequest* request, ::viam::service::navigation::v1::GetObstaclesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetObstacles_, context, request, response, reactor); +} + +void NavigationService::Stub::experimental_async::GetObstacles(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::GetObstaclesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetObstacles_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::GetObstaclesResponse>* NavigationService::Stub::AsyncGetObstaclesRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetObstaclesRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetObstaclesRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::navigation::v1::GetObstaclesResponse>::Create(channel_.get(), cq, rpcmethod_GetObstacles_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::GetObstaclesResponse>* NavigationService::Stub::PrepareAsyncGetObstaclesRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetObstaclesRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::navigation::v1::GetObstaclesResponse>::Create(channel_.get(), cq, rpcmethod_GetObstacles_, context, request, false); } ::grpc::Status NavigationService::Stub::GetPaths(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetPathsRequest& request, ::viam::service::navigation::v1::GetPathsResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::service::navigation::v1::GetPathsRequest, ::viam::service::navigation::v1::GetPathsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetPaths_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetPaths_, context, request, response); } -void NavigationService::Stub::async::GetPaths(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetPathsRequest* request, ::viam::service::navigation::v1::GetPathsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::service::navigation::v1::GetPathsRequest, ::viam::service::navigation::v1::GetPathsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetPaths_, context, request, response, std::move(f)); +void NavigationService::Stub::experimental_async::GetPaths(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetPathsRequest* request, ::viam::service::navigation::v1::GetPathsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetPaths_, context, request, response, std::move(f)); } -void NavigationService::Stub::async::GetPaths(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetPathsRequest* request, ::viam::service::navigation::v1::GetPathsResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetPaths_, context, request, response, reactor); +void NavigationService::Stub::experimental_async::GetPaths(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::GetPathsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetPaths_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::GetPathsResponse>* NavigationService::Stub::PrepareAsyncGetPathsRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetPathsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::navigation::v1::GetPathsResponse, ::viam::service::navigation::v1::GetPathsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetPaths_, context, request); +void NavigationService::Stub::experimental_async::GetPaths(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetPathsRequest* request, ::viam::service::navigation::v1::GetPathsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetPaths_, context, request, response, reactor); +} + +void NavigationService::Stub::experimental_async::GetPaths(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::GetPathsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetPaths_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::GetPathsResponse>* NavigationService::Stub::AsyncGetPathsRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetPathsRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetPathsRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::navigation::v1::GetPathsResponse>::Create(channel_.get(), cq, rpcmethod_GetPaths_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::GetPathsResponse>* NavigationService::Stub::PrepareAsyncGetPathsRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetPathsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::navigation::v1::GetPathsResponse>::Create(channel_.get(), cq, rpcmethod_GetPaths_, context, request, false); } ::grpc::Status NavigationService::Stub::GetProperties(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetPropertiesRequest& request, ::viam::service::navigation::v1::GetPropertiesResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::service::navigation::v1::GetPropertiesRequest, ::viam::service::navigation::v1::GetPropertiesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetProperties_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetProperties_, context, request, response); } -void NavigationService::Stub::async::GetProperties(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetPropertiesRequest* request, ::viam::service::navigation::v1::GetPropertiesResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::service::navigation::v1::GetPropertiesRequest, ::viam::service::navigation::v1::GetPropertiesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetProperties_, context, request, response, std::move(f)); +void NavigationService::Stub::experimental_async::GetProperties(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetPropertiesRequest* request, ::viam::service::navigation::v1::GetPropertiesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetProperties_, context, request, response, std::move(f)); } -void NavigationService::Stub::async::GetProperties(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetPropertiesRequest* request, ::viam::service::navigation::v1::GetPropertiesResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetProperties_, context, request, response, reactor); +void NavigationService::Stub::experimental_async::GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::GetPropertiesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetProperties_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::GetPropertiesResponse>* NavigationService::Stub::PrepareAsyncGetPropertiesRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetPropertiesRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::navigation::v1::GetPropertiesResponse, ::viam::service::navigation::v1::GetPropertiesRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetProperties_, context, request); +void NavigationService::Stub::experimental_async::GetProperties(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetPropertiesRequest* request, ::viam::service::navigation::v1::GetPropertiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetProperties_, context, request, response, reactor); +} + +void NavigationService::Stub::experimental_async::GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::GetPropertiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetProperties_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::GetPropertiesResponse>* NavigationService::Stub::AsyncGetPropertiesRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetPropertiesRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetPropertiesRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::navigation::v1::GetPropertiesResponse>::Create(channel_.get(), cq, rpcmethod_GetProperties_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::GetPropertiesResponse>* NavigationService::Stub::PrepareAsyncGetPropertiesRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetPropertiesRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::navigation::v1::GetPropertiesResponse>::Create(channel_.get(), cq, rpcmethod_GetProperties_, context, request, false); } ::grpc::Status NavigationService::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); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DoCommand_, context, request, response); } -void NavigationService::Stub::async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); +void NavigationService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); } -void NavigationService::Stub::async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); +void NavigationService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* NavigationService::Stub::PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::common::v1::DoCommandResponse, ::viam::common::v1::DoCommandRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DoCommand_, context, request); +void NavigationService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); +} + +void NavigationService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* NavigationService::Stub::AsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncDoCommandRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::DoCommandResponse>::Create(channel_.get(), cq, rpcmethod_DoCommand_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* NavigationService::Stub::PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::DoCommandResponse>::Create(channel_.get(), cq, rpcmethod_DoCommand_, context, request, false); } NavigationService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( NavigationService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< NavigationService::Service, ::viam::service::navigation::v1::GetModeRequest, ::viam::service::navigation::v1::GetModeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< NavigationService::Service, ::viam::service::navigation::v1::GetModeRequest, ::viam::service::navigation::v1::GetModeResponse>( [](NavigationService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::service::navigation::v1::GetModeRequest* req, ::viam::service::navigation::v1::GetModeResponse* resp) { return service->GetMode(ctx, req, resp); @@ -300,9 +350,9 @@ NavigationService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( NavigationService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< NavigationService::Service, ::viam::service::navigation::v1::SetModeRequest, ::viam::service::navigation::v1::SetModeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< NavigationService::Service, ::viam::service::navigation::v1::SetModeRequest, ::viam::service::navigation::v1::SetModeResponse>( [](NavigationService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::service::navigation::v1::SetModeRequest* req, ::viam::service::navigation::v1::SetModeResponse* resp) { return service->SetMode(ctx, req, resp); @@ -310,9 +360,9 @@ NavigationService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( NavigationService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< NavigationService::Service, ::viam::service::navigation::v1::GetLocationRequest, ::viam::service::navigation::v1::GetLocationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< NavigationService::Service, ::viam::service::navigation::v1::GetLocationRequest, ::viam::service::navigation::v1::GetLocationResponse>( [](NavigationService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::service::navigation::v1::GetLocationRequest* req, ::viam::service::navigation::v1::GetLocationResponse* resp) { return service->GetLocation(ctx, req, resp); @@ -320,9 +370,9 @@ NavigationService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( NavigationService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< NavigationService::Service, ::viam::service::navigation::v1::GetWaypointsRequest, ::viam::service::navigation::v1::GetWaypointsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< NavigationService::Service, ::viam::service::navigation::v1::GetWaypointsRequest, ::viam::service::navigation::v1::GetWaypointsResponse>( [](NavigationService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::service::navigation::v1::GetWaypointsRequest* req, ::viam::service::navigation::v1::GetWaypointsResponse* resp) { return service->GetWaypoints(ctx, req, resp); @@ -330,9 +380,9 @@ NavigationService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( NavigationService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< NavigationService::Service, ::viam::service::navigation::v1::AddWaypointRequest, ::viam::service::navigation::v1::AddWaypointResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< NavigationService::Service, ::viam::service::navigation::v1::AddWaypointRequest, ::viam::service::navigation::v1::AddWaypointResponse>( [](NavigationService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::service::navigation::v1::AddWaypointRequest* req, ::viam::service::navigation::v1::AddWaypointResponse* resp) { return service->AddWaypoint(ctx, req, resp); @@ -340,9 +390,9 @@ NavigationService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( NavigationService_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< NavigationService::Service, ::viam::service::navigation::v1::RemoveWaypointRequest, ::viam::service::navigation::v1::RemoveWaypointResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< NavigationService::Service, ::viam::service::navigation::v1::RemoveWaypointRequest, ::viam::service::navigation::v1::RemoveWaypointResponse>( [](NavigationService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::service::navigation::v1::RemoveWaypointRequest* req, ::viam::service::navigation::v1::RemoveWaypointResponse* resp) { return service->RemoveWaypoint(ctx, req, resp); @@ -350,9 +400,9 @@ NavigationService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( NavigationService_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< NavigationService::Service, ::viam::service::navigation::v1::GetObstaclesRequest, ::viam::service::navigation::v1::GetObstaclesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< NavigationService::Service, ::viam::service::navigation::v1::GetObstaclesRequest, ::viam::service::navigation::v1::GetObstaclesResponse>( [](NavigationService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::service::navigation::v1::GetObstaclesRequest* req, ::viam::service::navigation::v1::GetObstaclesResponse* resp) { return service->GetObstacles(ctx, req, resp); @@ -360,9 +410,9 @@ NavigationService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( NavigationService_method_names[7], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< NavigationService::Service, ::viam::service::navigation::v1::GetPathsRequest, ::viam::service::navigation::v1::GetPathsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< NavigationService::Service, ::viam::service::navigation::v1::GetPathsRequest, ::viam::service::navigation::v1::GetPathsResponse>( [](NavigationService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::service::navigation::v1::GetPathsRequest* req, ::viam::service::navigation::v1::GetPathsResponse* resp) { return service->GetPaths(ctx, req, resp); @@ -370,9 +420,9 @@ NavigationService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( NavigationService_method_names[8], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< NavigationService::Service, ::viam::service::navigation::v1::GetPropertiesRequest, ::viam::service::navigation::v1::GetPropertiesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< NavigationService::Service, ::viam::service::navigation::v1::GetPropertiesRequest, ::viam::service::navigation::v1::GetPropertiesResponse>( [](NavigationService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::service::navigation::v1::GetPropertiesRequest* req, ::viam::service::navigation::v1::GetPropertiesResponse* resp) { return service->GetProperties(ctx, req, resp); @@ -380,9 +430,9 @@ NavigationService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( NavigationService_method_names[9], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< NavigationService::Service, ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< NavigationService::Service, ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( [](NavigationService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::common::v1::DoCommandRequest* req, ::viam::common::v1::DoCommandResponse* resp) { return service->DoCommand(ctx, req, resp); diff --git a/src/viam/api/service/navigation/v1/navigation.grpc.pb.h b/src/viam/api/service/navigation/v1/navigation.grpc.pb.h index a4a1f8850..2380b5331 100644 --- a/src/viam/api/service/navigation/v1/navigation.grpc.pb.h +++ b/src/viam/api/service/navigation/v1/navigation.grpc.pb.h @@ -7,23 +7,24 @@ #include "service/navigation/v1/navigation.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace service { @@ -112,37 +113,141 @@ class NavigationService final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::DoCommandResponse>> PrepareAsyncDoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::DoCommandResponse>>(PrepareAsyncDoCommandRaw(context, request, cq)); } - class async_interface { + class experimental_async_interface { public: - virtual ~async_interface() {} + virtual ~experimental_async_interface() {} virtual void GetMode(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetModeRequest* request, ::viam::service::navigation::v1::GetModeResponse* response, std::function) = 0; + virtual void GetMode(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::GetModeResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetMode(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetModeRequest* request, ::viam::service::navigation::v1::GetModeResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetMode(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetModeRequest* request, ::viam::service::navigation::v1::GetModeResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetMode(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::GetModeResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetMode(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::GetModeResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif virtual void SetMode(::grpc::ClientContext* context, const ::viam::service::navigation::v1::SetModeRequest* request, ::viam::service::navigation::v1::SetModeResponse* response, std::function) = 0; + virtual void SetMode(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::SetModeResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void SetMode(::grpc::ClientContext* context, const ::viam::service::navigation::v1::SetModeRequest* request, ::viam::service::navigation::v1::SetModeResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void SetMode(::grpc::ClientContext* context, const ::viam::service::navigation::v1::SetModeRequest* request, ::viam::service::navigation::v1::SetModeResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void SetMode(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::SetModeResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void SetMode(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::SetModeResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif virtual void GetLocation(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetLocationRequest* request, ::viam::service::navigation::v1::GetLocationResponse* response, std::function) = 0; + virtual void GetLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::GetLocationResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetLocation(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetLocationRequest* request, ::viam::service::navigation::v1::GetLocationResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetLocation(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetLocationRequest* request, ::viam::service::navigation::v1::GetLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::GetLocationResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::GetLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif virtual void GetWaypoints(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetWaypointsRequest* request, ::viam::service::navigation::v1::GetWaypointsResponse* response, std::function) = 0; + virtual void GetWaypoints(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::GetWaypointsResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetWaypoints(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetWaypointsRequest* request, ::viam::service::navigation::v1::GetWaypointsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetWaypoints(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetWaypointsRequest* request, ::viam::service::navigation::v1::GetWaypointsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetWaypoints(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::GetWaypointsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetWaypoints(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::GetWaypointsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif virtual void AddWaypoint(::grpc::ClientContext* context, const ::viam::service::navigation::v1::AddWaypointRequest* request, ::viam::service::navigation::v1::AddWaypointResponse* response, std::function) = 0; + virtual void AddWaypoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::AddWaypointResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void AddWaypoint(::grpc::ClientContext* context, const ::viam::service::navigation::v1::AddWaypointRequest* request, ::viam::service::navigation::v1::AddWaypointResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void AddWaypoint(::grpc::ClientContext* context, const ::viam::service::navigation::v1::AddWaypointRequest* request, ::viam::service::navigation::v1::AddWaypointResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void AddWaypoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::AddWaypointResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void AddWaypoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::AddWaypointResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif virtual void RemoveWaypoint(::grpc::ClientContext* context, const ::viam::service::navigation::v1::RemoveWaypointRequest* request, ::viam::service::navigation::v1::RemoveWaypointResponse* response, std::function) = 0; + virtual void RemoveWaypoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::RemoveWaypointResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void RemoveWaypoint(::grpc::ClientContext* context, const ::viam::service::navigation::v1::RemoveWaypointRequest* request, ::viam::service::navigation::v1::RemoveWaypointResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void RemoveWaypoint(::grpc::ClientContext* context, const ::viam::service::navigation::v1::RemoveWaypointRequest* request, ::viam::service::navigation::v1::RemoveWaypointResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void RemoveWaypoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::RemoveWaypointResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void RemoveWaypoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::RemoveWaypointResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif virtual void GetObstacles(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetObstaclesRequest* request, ::viam::service::navigation::v1::GetObstaclesResponse* response, std::function) = 0; + virtual void GetObstacles(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::GetObstaclesResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetObstacles(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetObstaclesRequest* request, ::viam::service::navigation::v1::GetObstaclesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetObstacles(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetObstaclesRequest* request, ::viam::service::navigation::v1::GetObstaclesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetObstacles(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::GetObstaclesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetObstacles(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::GetObstaclesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif virtual void GetPaths(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetPathsRequest* request, ::viam::service::navigation::v1::GetPathsResponse* response, std::function) = 0; + virtual void GetPaths(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::GetPathsResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetPaths(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetPathsRequest* request, ::viam::service::navigation::v1::GetPathsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetPaths(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetPathsRequest* request, ::viam::service::navigation::v1::GetPathsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetPaths(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::GetPathsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetPaths(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::GetPathsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // GetProperties returns properties of the current navigation service, including the // map_type being operated on. virtual void GetProperties(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetPropertiesRequest* request, ::viam::service::navigation::v1::GetPropertiesResponse* response, std::function) = 0; + virtual void GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::GetPropertiesResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetProperties(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetPropertiesRequest* request, ::viam::service::navigation::v1::GetPropertiesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetProperties(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetPropertiesRequest* request, ::viam::service::navigation::v1::GetPropertiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::GetPropertiesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::GetPropertiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // 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 ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif }; - typedef class async_interface experimental_async_interface; - virtual class async_interface* async() { return nullptr; } - class async_interface* experimental_async() { return async(); } - private: + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef class experimental_async_interface async_interface; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + async_interface* async() { return experimental_async(); } + #endif + virtual class experimental_async_interface* experimental_async() { return nullptr; } + private: virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::navigation::v1::GetModeResponse>* AsyncGetModeRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetModeRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::navigation::v1::GetModeResponse>* PrepareAsyncGetModeRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetModeRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::navigation::v1::SetModeResponse>* AsyncSetModeRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::SetModeRequest& request, ::grpc::CompletionQueue* cq) = 0; @@ -166,7 +271,7 @@ class NavigationService final { }; class Stub final : public StubInterface { public: - Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); ::grpc::Status GetMode(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetModeRequest& request, ::viam::service::navigation::v1::GetModeResponse* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::GetModeResponse>> AsyncGetMode(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetModeRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::GetModeResponse>>(AsyncGetModeRaw(context, request, cq)); @@ -237,40 +342,140 @@ class NavigationService final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>> PrepareAsyncDoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>>(PrepareAsyncDoCommandRaw(context, request, cq)); } - class async final : - public StubInterface::async_interface { + class experimental_async final : + public StubInterface::experimental_async_interface { public: void GetMode(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetModeRequest* request, ::viam::service::navigation::v1::GetModeResponse* response, std::function) override; + void GetMode(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::GetModeResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetMode(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetModeRequest* request, ::viam::service::navigation::v1::GetModeResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetMode(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetModeRequest* request, ::viam::service::navigation::v1::GetModeResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetMode(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::GetModeResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetMode(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::GetModeResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void SetMode(::grpc::ClientContext* context, const ::viam::service::navigation::v1::SetModeRequest* request, ::viam::service::navigation::v1::SetModeResponse* response, std::function) override; + void SetMode(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::SetModeResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void SetMode(::grpc::ClientContext* context, const ::viam::service::navigation::v1::SetModeRequest* request, ::viam::service::navigation::v1::SetModeResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void SetMode(::grpc::ClientContext* context, const ::viam::service::navigation::v1::SetModeRequest* request, ::viam::service::navigation::v1::SetModeResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void SetMode(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::SetModeResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void SetMode(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::SetModeResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetLocation(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetLocationRequest* request, ::viam::service::navigation::v1::GetLocationResponse* response, std::function) override; + void GetLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::GetLocationResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetLocation(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetLocationRequest* request, ::viam::service::navigation::v1::GetLocationResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetLocation(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetLocationRequest* request, ::viam::service::navigation::v1::GetLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::GetLocationResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::GetLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetWaypoints(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetWaypointsRequest* request, ::viam::service::navigation::v1::GetWaypointsResponse* response, std::function) override; + void GetWaypoints(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::GetWaypointsResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetWaypoints(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetWaypointsRequest* request, ::viam::service::navigation::v1::GetWaypointsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetWaypoints(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetWaypointsRequest* request, ::viam::service::navigation::v1::GetWaypointsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetWaypoints(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::GetWaypointsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetWaypoints(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::GetWaypointsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void AddWaypoint(::grpc::ClientContext* context, const ::viam::service::navigation::v1::AddWaypointRequest* request, ::viam::service::navigation::v1::AddWaypointResponse* response, std::function) override; + void AddWaypoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::AddWaypointResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void AddWaypoint(::grpc::ClientContext* context, const ::viam::service::navigation::v1::AddWaypointRequest* request, ::viam::service::navigation::v1::AddWaypointResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void AddWaypoint(::grpc::ClientContext* context, const ::viam::service::navigation::v1::AddWaypointRequest* request, ::viam::service::navigation::v1::AddWaypointResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void AddWaypoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::AddWaypointResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void AddWaypoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::AddWaypointResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void RemoveWaypoint(::grpc::ClientContext* context, const ::viam::service::navigation::v1::RemoveWaypointRequest* request, ::viam::service::navigation::v1::RemoveWaypointResponse* response, std::function) override; + void RemoveWaypoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::RemoveWaypointResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void RemoveWaypoint(::grpc::ClientContext* context, const ::viam::service::navigation::v1::RemoveWaypointRequest* request, ::viam::service::navigation::v1::RemoveWaypointResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void RemoveWaypoint(::grpc::ClientContext* context, const ::viam::service::navigation::v1::RemoveWaypointRequest* request, ::viam::service::navigation::v1::RemoveWaypointResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void RemoveWaypoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::RemoveWaypointResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void RemoveWaypoint(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::RemoveWaypointResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetObstacles(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetObstaclesRequest* request, ::viam::service::navigation::v1::GetObstaclesResponse* response, std::function) override; + void GetObstacles(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::GetObstaclesResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetObstacles(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetObstaclesRequest* request, ::viam::service::navigation::v1::GetObstaclesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetObstacles(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetObstaclesRequest* request, ::viam::service::navigation::v1::GetObstaclesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetObstacles(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::GetObstaclesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetObstacles(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::GetObstaclesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetPaths(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetPathsRequest* request, ::viam::service::navigation::v1::GetPathsResponse* response, std::function) override; + void GetPaths(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::GetPathsResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetPaths(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetPathsRequest* request, ::viam::service::navigation::v1::GetPathsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetPaths(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetPathsRequest* request, ::viam::service::navigation::v1::GetPathsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetPaths(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::GetPathsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetPaths(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::GetPathsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetProperties(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetPropertiesRequest* request, ::viam::service::navigation::v1::GetPropertiesResponse* response, std::function) override; + void GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::GetPropertiesResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetProperties(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetPropertiesRequest* request, ::viam::service::navigation::v1::GetPropertiesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetProperties(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetPropertiesRequest* request, ::viam::service::navigation::v1::GetPropertiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::GetPropertiesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::navigation::v1::GetPropertiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif 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 ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif private: friend class Stub; - explicit async(Stub* stub): stub_(stub) { } + explicit experimental_async(Stub* stub): stub_(stub) { } Stub* stub() { return stub_; } Stub* stub_; }; - class async* async() override { return &async_stub_; } + class experimental_async_interface* experimental_async() override { return &async_stub_; } private: std::shared_ptr< ::grpc::ChannelInterface> channel_; - class async async_stub_{this}; + class experimental_async async_stub_{this}; ::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::GetModeResponse>* AsyncGetModeRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetModeRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::GetModeResponse>* PrepareAsyncGetModeRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::GetModeRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::service::navigation::v1::SetModeResponse>* AsyncSetModeRaw(::grpc::ClientContext* context, const ::viam::service::navigation::v1::SetModeRequest& request, ::grpc::CompletionQueue* cq) override; @@ -524,22 +729,36 @@ class NavigationService final { }; typedef WithAsyncMethod_GetMode > > > > > > > > > AsyncService; template - class WithCallbackMethod_GetMode : public BaseClass { + class ExperimentalWithCallbackMethod_GetMode : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetMode() { - ::grpc::Service::MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::viam::service::navigation::v1::GetModeRequest, ::viam::service::navigation::v1::GetModeResponse>( + ExperimentalWithCallbackMethod_GetMode() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::navigation::v1::GetModeRequest, ::viam::service::navigation::v1::GetModeResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::service::navigation::v1::GetModeRequest* request, ::viam::service::navigation::v1::GetModeResponse* response) { return this->GetMode(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::service::navigation::v1::GetModeRequest* request, ::viam::service::navigation::v1::GetModeResponse* response) { return this->GetMode(context, request, response); }));} void SetMessageAllocatorFor_GetMode( - ::grpc::MessageAllocator< ::viam::service::navigation::v1::GetModeRequest, ::viam::service::navigation::v1::GetModeResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::service::navigation::v1::GetModeRequest, ::viam::service::navigation::v1::GetModeResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::navigation::v1::GetModeRequest, ::viam::service::navigation::v1::GetModeResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(0); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::navigation::v1::GetModeRequest, ::viam::service::navigation::v1::GetModeResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetMode() override { + ~ExperimentalWithCallbackMethod_GetMode() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -547,26 +766,46 @@ class NavigationService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetMode( - ::grpc::CallbackServerContext* /*context*/, const ::viam::service::navigation::v1::GetModeRequest* /*request*/, ::viam::service::navigation::v1::GetModeResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::navigation::v1::GetModeRequest* /*request*/, ::viam::service::navigation::v1::GetModeResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetMode( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::service::navigation::v1::GetModeRequest* /*request*/, ::viam::service::navigation::v1::GetModeResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_SetMode : public BaseClass { + class ExperimentalWithCallbackMethod_SetMode : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_SetMode() { - ::grpc::Service::MarkMethodCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::viam::service::navigation::v1::SetModeRequest, ::viam::service::navigation::v1::SetModeResponse>( + ExperimentalWithCallbackMethod_SetMode() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::navigation::v1::SetModeRequest, ::viam::service::navigation::v1::SetModeResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::service::navigation::v1::SetModeRequest* request, ::viam::service::navigation::v1::SetModeResponse* response) { return this->SetMode(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::service::navigation::v1::SetModeRequest* request, ::viam::service::navigation::v1::SetModeResponse* response) { return this->SetMode(context, request, response); }));} void SetMessageAllocatorFor_SetMode( - ::grpc::MessageAllocator< ::viam::service::navigation::v1::SetModeRequest, ::viam::service::navigation::v1::SetModeResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::service::navigation::v1::SetModeRequest, ::viam::service::navigation::v1::SetModeResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::navigation::v1::SetModeRequest, ::viam::service::navigation::v1::SetModeResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(1); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::navigation::v1::SetModeRequest, ::viam::service::navigation::v1::SetModeResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_SetMode() override { + ~ExperimentalWithCallbackMethod_SetMode() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -574,26 +813,46 @@ class NavigationService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* SetMode( - ::grpc::CallbackServerContext* /*context*/, const ::viam::service::navigation::v1::SetModeRequest* /*request*/, ::viam::service::navigation::v1::SetModeResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::navigation::v1::SetModeRequest* /*request*/, ::viam::service::navigation::v1::SetModeResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* SetMode( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::service::navigation::v1::SetModeRequest* /*request*/, ::viam::service::navigation::v1::SetModeResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetLocation : public BaseClass { + class ExperimentalWithCallbackMethod_GetLocation : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetLocation() { - ::grpc::Service::MarkMethodCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::viam::service::navigation::v1::GetLocationRequest, ::viam::service::navigation::v1::GetLocationResponse>( + ExperimentalWithCallbackMethod_GetLocation() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(2, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::navigation::v1::GetLocationRequest, ::viam::service::navigation::v1::GetLocationResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::service::navigation::v1::GetLocationRequest* request, ::viam::service::navigation::v1::GetLocationResponse* response) { return this->GetLocation(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::service::navigation::v1::GetLocationRequest* request, ::viam::service::navigation::v1::GetLocationResponse* response) { return this->GetLocation(context, request, response); }));} void SetMessageAllocatorFor_GetLocation( - ::grpc::MessageAllocator< ::viam::service::navigation::v1::GetLocationRequest, ::viam::service::navigation::v1::GetLocationResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::service::navigation::v1::GetLocationRequest, ::viam::service::navigation::v1::GetLocationResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::navigation::v1::GetLocationRequest, ::viam::service::navigation::v1::GetLocationResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(2); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::navigation::v1::GetLocationRequest, ::viam::service::navigation::v1::GetLocationResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetLocation() override { + ~ExperimentalWithCallbackMethod_GetLocation() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -601,26 +860,46 @@ class NavigationService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetLocation( - ::grpc::CallbackServerContext* /*context*/, const ::viam::service::navigation::v1::GetLocationRequest* /*request*/, ::viam::service::navigation::v1::GetLocationResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::navigation::v1::GetLocationRequest* /*request*/, ::viam::service::navigation::v1::GetLocationResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetLocation( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::service::navigation::v1::GetLocationRequest* /*request*/, ::viam::service::navigation::v1::GetLocationResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetWaypoints : public BaseClass { + class ExperimentalWithCallbackMethod_GetWaypoints : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetWaypoints() { - ::grpc::Service::MarkMethodCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::viam::service::navigation::v1::GetWaypointsRequest, ::viam::service::navigation::v1::GetWaypointsResponse>( + ExperimentalWithCallbackMethod_GetWaypoints() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(3, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::navigation::v1::GetWaypointsRequest, ::viam::service::navigation::v1::GetWaypointsResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::service::navigation::v1::GetWaypointsRequest* request, ::viam::service::navigation::v1::GetWaypointsResponse* response) { return this->GetWaypoints(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::service::navigation::v1::GetWaypointsRequest* request, ::viam::service::navigation::v1::GetWaypointsResponse* response) { return this->GetWaypoints(context, request, response); }));} void SetMessageAllocatorFor_GetWaypoints( - ::grpc::MessageAllocator< ::viam::service::navigation::v1::GetWaypointsRequest, ::viam::service::navigation::v1::GetWaypointsResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::service::navigation::v1::GetWaypointsRequest, ::viam::service::navigation::v1::GetWaypointsResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::navigation::v1::GetWaypointsRequest, ::viam::service::navigation::v1::GetWaypointsResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(3); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::navigation::v1::GetWaypointsRequest, ::viam::service::navigation::v1::GetWaypointsResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetWaypoints() override { + ~ExperimentalWithCallbackMethod_GetWaypoints() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -628,26 +907,46 @@ class NavigationService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetWaypoints( - ::grpc::CallbackServerContext* /*context*/, const ::viam::service::navigation::v1::GetWaypointsRequest* /*request*/, ::viam::service::navigation::v1::GetWaypointsResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::navigation::v1::GetWaypointsRequest* /*request*/, ::viam::service::navigation::v1::GetWaypointsResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetWaypoints( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::service::navigation::v1::GetWaypointsRequest* /*request*/, ::viam::service::navigation::v1::GetWaypointsResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_AddWaypoint : public BaseClass { + class ExperimentalWithCallbackMethod_AddWaypoint : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_AddWaypoint() { - ::grpc::Service::MarkMethodCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::viam::service::navigation::v1::AddWaypointRequest, ::viam::service::navigation::v1::AddWaypointResponse>( + ExperimentalWithCallbackMethod_AddWaypoint() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(4, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::navigation::v1::AddWaypointRequest, ::viam::service::navigation::v1::AddWaypointResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::service::navigation::v1::AddWaypointRequest* request, ::viam::service::navigation::v1::AddWaypointResponse* response) { return this->AddWaypoint(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::service::navigation::v1::AddWaypointRequest* request, ::viam::service::navigation::v1::AddWaypointResponse* response) { return this->AddWaypoint(context, request, response); }));} void SetMessageAllocatorFor_AddWaypoint( - ::grpc::MessageAllocator< ::viam::service::navigation::v1::AddWaypointRequest, ::viam::service::navigation::v1::AddWaypointResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::service::navigation::v1::AddWaypointRequest, ::viam::service::navigation::v1::AddWaypointResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::navigation::v1::AddWaypointRequest, ::viam::service::navigation::v1::AddWaypointResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(4); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::navigation::v1::AddWaypointRequest, ::viam::service::navigation::v1::AddWaypointResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_AddWaypoint() override { + ~ExperimentalWithCallbackMethod_AddWaypoint() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -655,26 +954,46 @@ class NavigationService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* AddWaypoint( - ::grpc::CallbackServerContext* /*context*/, const ::viam::service::navigation::v1::AddWaypointRequest* /*request*/, ::viam::service::navigation::v1::AddWaypointResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::navigation::v1::AddWaypointRequest* /*request*/, ::viam::service::navigation::v1::AddWaypointResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* AddWaypoint( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::service::navigation::v1::AddWaypointRequest* /*request*/, ::viam::service::navigation::v1::AddWaypointResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_RemoveWaypoint : public BaseClass { + class ExperimentalWithCallbackMethod_RemoveWaypoint : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_RemoveWaypoint() { - ::grpc::Service::MarkMethodCallback(5, - new ::grpc::internal::CallbackUnaryHandler< ::viam::service::navigation::v1::RemoveWaypointRequest, ::viam::service::navigation::v1::RemoveWaypointResponse>( + ExperimentalWithCallbackMethod_RemoveWaypoint() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(5, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::navigation::v1::RemoveWaypointRequest, ::viam::service::navigation::v1::RemoveWaypointResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::service::navigation::v1::RemoveWaypointRequest* request, ::viam::service::navigation::v1::RemoveWaypointResponse* response) { return this->RemoveWaypoint(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::service::navigation::v1::RemoveWaypointRequest* request, ::viam::service::navigation::v1::RemoveWaypointResponse* response) { return this->RemoveWaypoint(context, request, response); }));} void SetMessageAllocatorFor_RemoveWaypoint( - ::grpc::MessageAllocator< ::viam::service::navigation::v1::RemoveWaypointRequest, ::viam::service::navigation::v1::RemoveWaypointResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::service::navigation::v1::RemoveWaypointRequest, ::viam::service::navigation::v1::RemoveWaypointResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(5); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::navigation::v1::RemoveWaypointRequest, ::viam::service::navigation::v1::RemoveWaypointResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(5); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::navigation::v1::RemoveWaypointRequest, ::viam::service::navigation::v1::RemoveWaypointResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_RemoveWaypoint() override { + ~ExperimentalWithCallbackMethod_RemoveWaypoint() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -682,26 +1001,46 @@ class NavigationService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* RemoveWaypoint( - ::grpc::CallbackServerContext* /*context*/, const ::viam::service::navigation::v1::RemoveWaypointRequest* /*request*/, ::viam::service::navigation::v1::RemoveWaypointResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::navigation::v1::RemoveWaypointRequest* /*request*/, ::viam::service::navigation::v1::RemoveWaypointResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* RemoveWaypoint( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::service::navigation::v1::RemoveWaypointRequest* /*request*/, ::viam::service::navigation::v1::RemoveWaypointResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetObstacles : public BaseClass { + class ExperimentalWithCallbackMethod_GetObstacles : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetObstacles() { - ::grpc::Service::MarkMethodCallback(6, - new ::grpc::internal::CallbackUnaryHandler< ::viam::service::navigation::v1::GetObstaclesRequest, ::viam::service::navigation::v1::GetObstaclesResponse>( + ExperimentalWithCallbackMethod_GetObstacles() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(6, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::navigation::v1::GetObstaclesRequest, ::viam::service::navigation::v1::GetObstaclesResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::service::navigation::v1::GetObstaclesRequest* request, ::viam::service::navigation::v1::GetObstaclesResponse* response) { return this->GetObstacles(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::service::navigation::v1::GetObstaclesRequest* request, ::viam::service::navigation::v1::GetObstaclesResponse* response) { return this->GetObstacles(context, request, response); }));} void SetMessageAllocatorFor_GetObstacles( - ::grpc::MessageAllocator< ::viam::service::navigation::v1::GetObstaclesRequest, ::viam::service::navigation::v1::GetObstaclesResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::service::navigation::v1::GetObstaclesRequest, ::viam::service::navigation::v1::GetObstaclesResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(6); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::navigation::v1::GetObstaclesRequest, ::viam::service::navigation::v1::GetObstaclesResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(6); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::navigation::v1::GetObstaclesRequest, ::viam::service::navigation::v1::GetObstaclesResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetObstacles() override { + ~ExperimentalWithCallbackMethod_GetObstacles() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -709,26 +1048,46 @@ class NavigationService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetObstacles( - ::grpc::CallbackServerContext* /*context*/, const ::viam::service::navigation::v1::GetObstaclesRequest* /*request*/, ::viam::service::navigation::v1::GetObstaclesResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::navigation::v1::GetObstaclesRequest* /*request*/, ::viam::service::navigation::v1::GetObstaclesResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetObstacles( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::service::navigation::v1::GetObstaclesRequest* /*request*/, ::viam::service::navigation::v1::GetObstaclesResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetPaths : public BaseClass { + class ExperimentalWithCallbackMethod_GetPaths : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetPaths() { - ::grpc::Service::MarkMethodCallback(7, - new ::grpc::internal::CallbackUnaryHandler< ::viam::service::navigation::v1::GetPathsRequest, ::viam::service::navigation::v1::GetPathsResponse>( + ExperimentalWithCallbackMethod_GetPaths() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(7, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::navigation::v1::GetPathsRequest, ::viam::service::navigation::v1::GetPathsResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::service::navigation::v1::GetPathsRequest* request, ::viam::service::navigation::v1::GetPathsResponse* response) { return this->GetPaths(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::service::navigation::v1::GetPathsRequest* request, ::viam::service::navigation::v1::GetPathsResponse* response) { return this->GetPaths(context, request, response); }));} void SetMessageAllocatorFor_GetPaths( - ::grpc::MessageAllocator< ::viam::service::navigation::v1::GetPathsRequest, ::viam::service::navigation::v1::GetPathsResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::service::navigation::v1::GetPathsRequest, ::viam::service::navigation::v1::GetPathsResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(7); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::navigation::v1::GetPathsRequest, ::viam::service::navigation::v1::GetPathsResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(7); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::navigation::v1::GetPathsRequest, ::viam::service::navigation::v1::GetPathsResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetPaths() override { + ~ExperimentalWithCallbackMethod_GetPaths() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -736,26 +1095,46 @@ class NavigationService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetPaths( - ::grpc::CallbackServerContext* /*context*/, const ::viam::service::navigation::v1::GetPathsRequest* /*request*/, ::viam::service::navigation::v1::GetPathsResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::navigation::v1::GetPathsRequest* /*request*/, ::viam::service::navigation::v1::GetPathsResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetPaths( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::service::navigation::v1::GetPathsRequest* /*request*/, ::viam::service::navigation::v1::GetPathsResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetProperties : public BaseClass { + class ExperimentalWithCallbackMethod_GetProperties : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetProperties() { - ::grpc::Service::MarkMethodCallback(8, - new ::grpc::internal::CallbackUnaryHandler< ::viam::service::navigation::v1::GetPropertiesRequest, ::viam::service::navigation::v1::GetPropertiesResponse>( + ExperimentalWithCallbackMethod_GetProperties() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(8, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::navigation::v1::GetPropertiesRequest, ::viam::service::navigation::v1::GetPropertiesResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::service::navigation::v1::GetPropertiesRequest* request, ::viam::service::navigation::v1::GetPropertiesResponse* response) { return this->GetProperties(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::service::navigation::v1::GetPropertiesRequest* request, ::viam::service::navigation::v1::GetPropertiesResponse* response) { return this->GetProperties(context, request, response); }));} void SetMessageAllocatorFor_GetProperties( - ::grpc::MessageAllocator< ::viam::service::navigation::v1::GetPropertiesRequest, ::viam::service::navigation::v1::GetPropertiesResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::service::navigation::v1::GetPropertiesRequest, ::viam::service::navigation::v1::GetPropertiesResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(8); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::navigation::v1::GetPropertiesRequest, ::viam::service::navigation::v1::GetPropertiesResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(8); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::navigation::v1::GetPropertiesRequest, ::viam::service::navigation::v1::GetPropertiesResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetProperties() override { + ~ExperimentalWithCallbackMethod_GetProperties() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -763,26 +1142,46 @@ class NavigationService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetProperties( - ::grpc::CallbackServerContext* /*context*/, const ::viam::service::navigation::v1::GetPropertiesRequest* /*request*/, ::viam::service::navigation::v1::GetPropertiesResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::navigation::v1::GetPropertiesRequest* /*request*/, ::viam::service::navigation::v1::GetPropertiesResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetProperties( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::service::navigation::v1::GetPropertiesRequest* /*request*/, ::viam::service::navigation::v1::GetPropertiesResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_DoCommand : public BaseClass { + class ExperimentalWithCallbackMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_DoCommand() { - ::grpc::Service::MarkMethodCallback(9, - new ::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( + ExperimentalWithCallbackMethod_DoCommand() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(9, + new ::grpc_impl::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); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + 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::experimental::MessageAllocator< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(9); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(9); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_DoCommand() override { + ~ExperimentalWithCallbackMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -790,11 +1189,20 @@ class NavigationService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DoCommand( - ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DoCommand( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) + #endif + { return nullptr; } }; - typedef WithCallbackMethod_GetMode > > > > > > > > > CallbackService; - typedef CallbackService ExperimentalCallbackService; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef ExperimentalWithCallbackMethod_GetMode > > > > > > > > > CallbackService; + #endif + + typedef ExperimentalWithCallbackMethod_GetMode > > > > > > > > > ExperimentalCallbackService; template class WithGenericMethod_GetMode : public BaseClass { private: @@ -1166,17 +1574,27 @@ class NavigationService final { } }; template - class WithRawCallbackMethod_GetMode : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetMode : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetMode() { - ::grpc::Service::MarkMethodRawCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetMode() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetMode(context, request, response); })); - } - ~WithRawCallbackMethod_GetMode() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetMode(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetMode() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1184,21 +1602,37 @@ class NavigationService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetMode( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetMode( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_SetMode : public BaseClass { + class ExperimentalWithRawCallbackMethod_SetMode : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_SetMode() { - ::grpc::Service::MarkMethodRawCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_SetMode() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SetMode(context, request, response); })); - } - ~WithRawCallbackMethod_SetMode() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SetMode(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_SetMode() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1206,21 +1640,37 @@ class NavigationService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* SetMode( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* SetMode( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetLocation : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetLocation : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetLocation() { - ::grpc::Service::MarkMethodRawCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetLocation() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(2, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetLocation(context, request, response); })); - } - ~WithRawCallbackMethod_GetLocation() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetLocation(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetLocation() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1228,21 +1678,37 @@ class NavigationService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetLocation( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetLocation( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetWaypoints : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetWaypoints : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetWaypoints() { - ::grpc::Service::MarkMethodRawCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetWaypoints() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(3, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetWaypoints(context, request, response); })); - } - ~WithRawCallbackMethod_GetWaypoints() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetWaypoints(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetWaypoints() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1250,21 +1716,37 @@ class NavigationService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetWaypoints( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetWaypoints( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_AddWaypoint : public BaseClass { + class ExperimentalWithRawCallbackMethod_AddWaypoint : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_AddWaypoint() { - ::grpc::Service::MarkMethodRawCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_AddWaypoint() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(4, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->AddWaypoint(context, request, response); })); - } - ~WithRawCallbackMethod_AddWaypoint() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->AddWaypoint(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_AddWaypoint() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1272,21 +1754,37 @@ class NavigationService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* AddWaypoint( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* AddWaypoint( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_RemoveWaypoint : public BaseClass { + class ExperimentalWithRawCallbackMethod_RemoveWaypoint : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_RemoveWaypoint() { - ::grpc::Service::MarkMethodRawCallback(5, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_RemoveWaypoint() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(5, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->RemoveWaypoint(context, request, response); })); - } - ~WithRawCallbackMethod_RemoveWaypoint() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->RemoveWaypoint(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_RemoveWaypoint() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1294,21 +1792,37 @@ class NavigationService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* RemoveWaypoint( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* RemoveWaypoint( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetObstacles : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetObstacles : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetObstacles() { - ::grpc::Service::MarkMethodRawCallback(6, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetObstacles() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(6, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetObstacles(context, request, response); })); - } - ~WithRawCallbackMethod_GetObstacles() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetObstacles(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetObstacles() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1316,21 +1830,37 @@ class NavigationService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetObstacles( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetObstacles( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetPaths : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetPaths : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetPaths() { - ::grpc::Service::MarkMethodRawCallback(7, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetPaths() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(7, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetPaths(context, request, response); })); - } - ~WithRawCallbackMethod_GetPaths() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetPaths(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetPaths() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1338,21 +1868,37 @@ class NavigationService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetPaths( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetPaths( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetProperties : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetProperties : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetProperties() { - ::grpc::Service::MarkMethodRawCallback(8, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetProperties() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(8, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetProperties(context, request, response); })); - } - ~WithRawCallbackMethod_GetProperties() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetProperties(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetProperties() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1360,21 +1906,37 @@ class NavigationService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetProperties( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetProperties( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_DoCommand : public BaseClass { + class ExperimentalWithRawCallbackMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_DoCommand() { - ::grpc::Service::MarkMethodRawCallback(9, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_DoCommand() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(9, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DoCommand(context, request, response); })); - } - ~WithRawCallbackMethod_DoCommand() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DoCommand(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1382,8 +1944,14 @@ class NavigationService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DoCommand( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DoCommand( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template class WithStreamedUnaryMethod_GetMode : public BaseClass { @@ -1394,8 +1962,8 @@ class NavigationService final { ::grpc::Service::MarkMethodStreamed(0, new ::grpc::internal::StreamedUnaryHandler< ::viam::service::navigation::v1::GetModeRequest, ::viam::service::navigation::v1::GetModeResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::service::navigation::v1::GetModeRequest, ::viam::service::navigation::v1::GetModeResponse>* streamer) { return this->StreamedGetMode(context, streamer); @@ -1421,8 +1989,8 @@ class NavigationService final { ::grpc::Service::MarkMethodStreamed(1, new ::grpc::internal::StreamedUnaryHandler< ::viam::service::navigation::v1::SetModeRequest, ::viam::service::navigation::v1::SetModeResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::service::navigation::v1::SetModeRequest, ::viam::service::navigation::v1::SetModeResponse>* streamer) { return this->StreamedSetMode(context, streamer); @@ -1448,8 +2016,8 @@ class NavigationService final { ::grpc::Service::MarkMethodStreamed(2, new ::grpc::internal::StreamedUnaryHandler< ::viam::service::navigation::v1::GetLocationRequest, ::viam::service::navigation::v1::GetLocationResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::service::navigation::v1::GetLocationRequest, ::viam::service::navigation::v1::GetLocationResponse>* streamer) { return this->StreamedGetLocation(context, streamer); @@ -1475,8 +2043,8 @@ class NavigationService final { ::grpc::Service::MarkMethodStreamed(3, new ::grpc::internal::StreamedUnaryHandler< ::viam::service::navigation::v1::GetWaypointsRequest, ::viam::service::navigation::v1::GetWaypointsResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::service::navigation::v1::GetWaypointsRequest, ::viam::service::navigation::v1::GetWaypointsResponse>* streamer) { return this->StreamedGetWaypoints(context, streamer); @@ -1502,8 +2070,8 @@ class NavigationService final { ::grpc::Service::MarkMethodStreamed(4, new ::grpc::internal::StreamedUnaryHandler< ::viam::service::navigation::v1::AddWaypointRequest, ::viam::service::navigation::v1::AddWaypointResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::service::navigation::v1::AddWaypointRequest, ::viam::service::navigation::v1::AddWaypointResponse>* streamer) { return this->StreamedAddWaypoint(context, streamer); @@ -1529,8 +2097,8 @@ class NavigationService final { ::grpc::Service::MarkMethodStreamed(5, new ::grpc::internal::StreamedUnaryHandler< ::viam::service::navigation::v1::RemoveWaypointRequest, ::viam::service::navigation::v1::RemoveWaypointResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::service::navigation::v1::RemoveWaypointRequest, ::viam::service::navigation::v1::RemoveWaypointResponse>* streamer) { return this->StreamedRemoveWaypoint(context, streamer); @@ -1556,8 +2124,8 @@ class NavigationService final { ::grpc::Service::MarkMethodStreamed(6, new ::grpc::internal::StreamedUnaryHandler< ::viam::service::navigation::v1::GetObstaclesRequest, ::viam::service::navigation::v1::GetObstaclesResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::service::navigation::v1::GetObstaclesRequest, ::viam::service::navigation::v1::GetObstaclesResponse>* streamer) { return this->StreamedGetObstacles(context, streamer); @@ -1583,8 +2151,8 @@ class NavigationService final { ::grpc::Service::MarkMethodStreamed(7, new ::grpc::internal::StreamedUnaryHandler< ::viam::service::navigation::v1::GetPathsRequest, ::viam::service::navigation::v1::GetPathsResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::service::navigation::v1::GetPathsRequest, ::viam::service::navigation::v1::GetPathsResponse>* streamer) { return this->StreamedGetPaths(context, streamer); @@ -1610,8 +2178,8 @@ class NavigationService final { ::grpc::Service::MarkMethodStreamed(8, new ::grpc::internal::StreamedUnaryHandler< ::viam::service::navigation::v1::GetPropertiesRequest, ::viam::service::navigation::v1::GetPropertiesResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::service::navigation::v1::GetPropertiesRequest, ::viam::service::navigation::v1::GetPropertiesResponse>* streamer) { return this->StreamedGetProperties(context, streamer); @@ -1637,8 +2205,8 @@ class NavigationService final { ::grpc::Service::MarkMethodStreamed(9, new ::grpc::internal::StreamedUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* streamer) { return this->StreamedDoCommand(context, streamer); diff --git a/src/viam/api/service/navigation/v1/navigation.pb.cc b/src/viam/api/service/navigation/v1/navigation.pb.cc index d6d3c51db..9f56e8783 100644 --- a/src/viam/api/service/navigation/v1/navigation.pb.cc +++ b/src/viam/api/service/navigation/v1/navigation.pb.cc @@ -4,1077 +4,851 @@ #include "service/navigation/v1/navigation.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace viam { namespace service { namespace navigation { namespace v1 { - template -PROTOBUF_CONSTEXPR SetModeResponse::SetModeResponse(::_pbi::ConstantInitialized) {} -struct SetModeResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetModeResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetModeResponseDefaultTypeInternal() {} - union { - SetModeResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetModeResponseDefaultTypeInternal _SetModeResponse_default_instance_; - template -PROTOBUF_CONSTEXPR RemoveWaypointResponse::RemoveWaypointResponse(::_pbi::ConstantInitialized) {} -struct RemoveWaypointResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR RemoveWaypointResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RemoveWaypointResponseDefaultTypeInternal() {} - union { - RemoveWaypointResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RemoveWaypointResponseDefaultTypeInternal _RemoveWaypointResponse_default_instance_; - -inline constexpr GetPropertiesResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : map_type_{static_cast< ::viam::service::navigation::v1::MapType >(0)}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetPropertiesResponse::GetPropertiesResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetPropertiesResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetPropertiesResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetPropertiesResponseDefaultTypeInternal() {} - union { - GetPropertiesResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPropertiesResponseDefaultTypeInternal _GetPropertiesResponse_default_instance_; - -inline constexpr GetPropertiesRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetPropertiesRequest::GetPropertiesRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetPropertiesRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetPropertiesRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetPropertiesRequestDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR GetModeRequest::GetModeRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} +struct GetModeRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetModeRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetModeRequestDefaultTypeInternal() {} union { - GetPropertiesRequest _instance; + GetModeRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPropertiesRequestDefaultTypeInternal _GetPropertiesRequest_default_instance_; - -inline constexpr GetModeResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : mode_{static_cast< ::viam::service::navigation::v1::Mode >(0)}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetModeResponse::GetModeResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetModeRequestDefaultTypeInternal _GetModeRequest_default_instance_; +PROTOBUF_CONSTEXPR GetModeResponse::GetModeResponse( + ::_pbi::ConstantInitialized) + : mode_(0) +{} struct GetModeResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetModeResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GetModeResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~GetModeResponseDefaultTypeInternal() {} union { GetModeResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetModeResponseDefaultTypeInternal _GetModeResponse_default_instance_; - template -PROTOBUF_CONSTEXPR AddWaypointResponse::AddWaypointResponse(::_pbi::ConstantInitialized) {} -struct AddWaypointResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR AddWaypointResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AddWaypointResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetModeResponseDefaultTypeInternal _GetModeResponse_default_instance_; +PROTOBUF_CONSTEXPR SetModeRequest::SetModeRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr) + , mode_(0) +{} +struct SetModeRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SetModeRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SetModeRequestDefaultTypeInternal() {} union { - AddWaypointResponse _instance; + SetModeRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AddWaypointResponseDefaultTypeInternal _AddWaypointResponse_default_instance_; - -inline constexpr Waypoint::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - location_{nullptr} {} - -template -PROTOBUF_CONSTEXPR Waypoint::Waypoint(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct WaypointDefaultTypeInternal { - PROTOBUF_CONSTEXPR WaypointDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~WaypointDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetModeRequestDefaultTypeInternal _SetModeRequest_default_instance_; +PROTOBUF_CONSTEXPR SetModeResponse::SetModeResponse( + ::_pbi::ConstantInitialized){} +struct SetModeResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR SetModeResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SetModeResponseDefaultTypeInternal() {} union { - Waypoint _instance; + SetModeResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WaypointDefaultTypeInternal _Waypoint_default_instance_; - -inline constexpr SetModeRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr}, - mode_{static_cast< ::viam::service::navigation::v1::Mode >(0)} {} - -template -PROTOBUF_CONSTEXPR SetModeRequest::SetModeRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct SetModeRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetModeRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetModeRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetModeResponseDefaultTypeInternal _SetModeResponse_default_instance_; +PROTOBUF_CONSTEXPR Waypoint::Waypoint( + ::_pbi::ConstantInitialized) + : id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , location_(nullptr){} +struct WaypointDefaultTypeInternal { + PROTOBUF_CONSTEXPR WaypointDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~WaypointDefaultTypeInternal() {} union { - SetModeRequest _instance; + Waypoint _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetModeRequestDefaultTypeInternal _SetModeRequest_default_instance_; - -inline constexpr RemoveWaypointRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR RemoveWaypointRequest::RemoveWaypointRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct RemoveWaypointRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR RemoveWaypointRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RemoveWaypointRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WaypointDefaultTypeInternal _Waypoint_default_instance_; +PROTOBUF_CONSTEXPR GetLocationRequest::GetLocationRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} +struct GetLocationRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetLocationRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetLocationRequestDefaultTypeInternal() {} union { - RemoveWaypointRequest _instance; + GetLocationRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RemoveWaypointRequestDefaultTypeInternal _RemoveWaypointRequest_default_instance_; - -inline constexpr Path::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : geopoints_{}, - destination_waypoint_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR Path::Path(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct PathDefaultTypeInternal { - PROTOBUF_CONSTEXPR PathDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~PathDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetLocationRequestDefaultTypeInternal _GetLocationRequest_default_instance_; +PROTOBUF_CONSTEXPR GetLocationResponse::GetLocationResponse( + ::_pbi::ConstantInitialized) + : location_(nullptr) + , compass_heading_(0){} +struct GetLocationResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetLocationResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetLocationResponseDefaultTypeInternal() {} union { - Path _instance; + GetLocationResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PathDefaultTypeInternal _Path_default_instance_; - -inline constexpr GetWaypointsRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetWaypointsRequest::GetWaypointsRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetLocationResponseDefaultTypeInternal _GetLocationResponse_default_instance_; +PROTOBUF_CONSTEXPR GetWaypointsRequest::GetWaypointsRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} struct GetWaypointsRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetWaypointsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GetWaypointsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~GetWaypointsRequestDefaultTypeInternal() {} union { GetWaypointsRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetWaypointsRequestDefaultTypeInternal _GetWaypointsRequest_default_instance_; - -inline constexpr GetPathsRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetPathsRequest::GetPathsRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetPathsRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetPathsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetPathsRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetWaypointsRequestDefaultTypeInternal _GetWaypointsRequest_default_instance_; +PROTOBUF_CONSTEXPR GetWaypointsResponse::GetWaypointsResponse( + ::_pbi::ConstantInitialized) + : waypoints_(){} +struct GetWaypointsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetWaypointsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetWaypointsResponseDefaultTypeInternal() {} union { - GetPathsRequest _instance; + GetWaypointsResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPathsRequestDefaultTypeInternal _GetPathsRequest_default_instance_; - -inline constexpr GetObstaclesRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetObstaclesRequest::GetObstaclesRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetObstaclesRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetObstaclesRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetObstaclesRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetWaypointsResponseDefaultTypeInternal _GetWaypointsResponse_default_instance_; +PROTOBUF_CONSTEXPR AddWaypointRequest::AddWaypointRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , location_(nullptr) + , extra_(nullptr){} +struct AddWaypointRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR AddWaypointRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AddWaypointRequestDefaultTypeInternal() {} union { - GetObstaclesRequest _instance; + AddWaypointRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetObstaclesRequestDefaultTypeInternal _GetObstaclesRequest_default_instance_; - -inline constexpr GetModeRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetModeRequest::GetModeRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetModeRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetModeRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetModeRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AddWaypointRequestDefaultTypeInternal _AddWaypointRequest_default_instance_; +PROTOBUF_CONSTEXPR AddWaypointResponse::AddWaypointResponse( + ::_pbi::ConstantInitialized){} +struct AddWaypointResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR AddWaypointResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AddWaypointResponseDefaultTypeInternal() {} union { - GetModeRequest _instance; + AddWaypointResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetModeRequestDefaultTypeInternal _GetModeRequest_default_instance_; - -inline constexpr GetLocationResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - location_{nullptr}, - compass_heading_{0} {} - -template -PROTOBUF_CONSTEXPR GetLocationResponse::GetLocationResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetLocationResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetLocationResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetLocationResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AddWaypointResponseDefaultTypeInternal _AddWaypointResponse_default_instance_; +PROTOBUF_CONSTEXPR RemoveWaypointRequest::RemoveWaypointRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} +struct RemoveWaypointRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR RemoveWaypointRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RemoveWaypointRequestDefaultTypeInternal() {} union { - GetLocationResponse _instance; + RemoveWaypointRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetLocationResponseDefaultTypeInternal _GetLocationResponse_default_instance_; - -inline constexpr GetLocationRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetLocationRequest::GetLocationRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetLocationRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetLocationRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetLocationRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RemoveWaypointRequestDefaultTypeInternal _RemoveWaypointRequest_default_instance_; +PROTOBUF_CONSTEXPR RemoveWaypointResponse::RemoveWaypointResponse( + ::_pbi::ConstantInitialized){} +struct RemoveWaypointResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR RemoveWaypointResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RemoveWaypointResponseDefaultTypeInternal() {} union { - GetLocationRequest _instance; + RemoveWaypointResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetLocationRequestDefaultTypeInternal _GetLocationRequest_default_instance_; - -inline constexpr AddWaypointRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - location_{nullptr}, - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR AddWaypointRequest::AddWaypointRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct AddWaypointRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR AddWaypointRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AddWaypointRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RemoveWaypointResponseDefaultTypeInternal _RemoveWaypointResponse_default_instance_; +PROTOBUF_CONSTEXPR GetObstaclesRequest::GetObstaclesRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} +struct GetObstaclesRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetObstaclesRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetObstaclesRequestDefaultTypeInternal() {} union { - AddWaypointRequest _instance; + GetObstaclesRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AddWaypointRequestDefaultTypeInternal _AddWaypointRequest_default_instance_; - -inline constexpr GetWaypointsResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : waypoints_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetWaypointsResponse::GetWaypointsResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetWaypointsResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetWaypointsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetWaypointsResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetObstaclesRequestDefaultTypeInternal _GetObstaclesRequest_default_instance_; +PROTOBUF_CONSTEXPR GetObstaclesResponse::GetObstaclesResponse( + ::_pbi::ConstantInitialized) + : obstacles_(){} +struct GetObstaclesResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetObstaclesResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetObstaclesResponseDefaultTypeInternal() {} union { - GetWaypointsResponse _instance; + GetObstaclesResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetWaypointsResponseDefaultTypeInternal _GetWaypointsResponse_default_instance_; - -inline constexpr GetPathsResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : paths_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetPathsResponse::GetPathsResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetObstaclesResponseDefaultTypeInternal _GetObstaclesResponse_default_instance_; +PROTOBUF_CONSTEXPR Path::Path( + ::_pbi::ConstantInitialized) + : geopoints_() + , destination_waypoint_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct PathDefaultTypeInternal { + PROTOBUF_CONSTEXPR PathDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~PathDefaultTypeInternal() {} + union { + Path _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PathDefaultTypeInternal _Path_default_instance_; +PROTOBUF_CONSTEXPR GetPathsRequest::GetPathsRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} +struct GetPathsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPathsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPathsRequestDefaultTypeInternal() {} + union { + GetPathsRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPathsRequestDefaultTypeInternal _GetPathsRequest_default_instance_; +PROTOBUF_CONSTEXPR GetPathsResponse::GetPathsResponse( + ::_pbi::ConstantInitialized) + : paths_(){} struct GetPathsResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetPathsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GetPathsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~GetPathsResponseDefaultTypeInternal() {} union { GetPathsResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPathsResponseDefaultTypeInternal _GetPathsResponse_default_instance_; - -inline constexpr GetObstaclesResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : obstacles_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetObstaclesResponse::GetObstaclesResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetObstaclesResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetObstaclesResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetObstaclesResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPathsResponseDefaultTypeInternal _GetPathsResponse_default_instance_; +PROTOBUF_CONSTEXPR GetPropertiesRequest::GetPropertiesRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct GetPropertiesRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPropertiesRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPropertiesRequestDefaultTypeInternal() {} union { - GetObstaclesResponse _instance; + GetPropertiesRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetObstaclesResponseDefaultTypeInternal _GetObstaclesResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPropertiesRequestDefaultTypeInternal _GetPropertiesRequest_default_instance_; +PROTOBUF_CONSTEXPR GetPropertiesResponse::GetPropertiesResponse( + ::_pbi::ConstantInitialized) + : map_type_(0) +{} +struct GetPropertiesResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPropertiesResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPropertiesResponseDefaultTypeInternal() {} + union { + GetPropertiesResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPropertiesResponseDefaultTypeInternal _GetPropertiesResponse_default_instance_; } // namespace v1 } // namespace navigation } // namespace service } // namespace viam static ::_pb::Metadata file_level_metadata_service_2fnavigation_2fv1_2fnavigation_2eproto[20]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_service_2fnavigation_2fv1_2fnavigation_2eproto[2]; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_service_2fnavigation_2fv1_2fnavigation_2eproto = nullptr; -const ::uint32_t TableStruct_service_2fnavigation_2fv1_2fnavigation_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetModeRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetModeRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetModeRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetModeRequest, _impl_.extra_), - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetModeResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetModeResponse, _impl_.mode_), - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::SetModeRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::SetModeRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::SetModeRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::SetModeRequest, _impl_.mode_), - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::SetModeRequest, _impl_.extra_), - ~0u, - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::SetModeResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::Waypoint, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::Waypoint, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::Waypoint, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::Waypoint, _impl_.location_), - ~0u, - 0, - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetLocationRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetLocationRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetLocationRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetLocationRequest, _impl_.extra_), - ~0u, - 0, - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetLocationResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetLocationResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetLocationResponse, _impl_.location_), - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetLocationResponse, _impl_.compass_heading_), - 0, - ~0u, - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetWaypointsRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetWaypointsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetWaypointsRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetWaypointsRequest, _impl_.extra_), - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetWaypointsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetWaypointsResponse, _impl_.waypoints_), - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::AddWaypointRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::AddWaypointRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::AddWaypointRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::AddWaypointRequest, _impl_.location_), - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::AddWaypointRequest, _impl_.extra_), - ~0u, - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::AddWaypointResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::RemoveWaypointRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::RemoveWaypointRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::RemoveWaypointRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::RemoveWaypointRequest, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::RemoveWaypointRequest, _impl_.extra_), - ~0u, - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::RemoveWaypointResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetObstaclesRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetObstaclesRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetObstaclesRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetObstaclesRequest, _impl_.extra_), - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetObstaclesResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetObstaclesResponse, _impl_.obstacles_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::Path, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::Path, _impl_.destination_waypoint_id_), - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::Path, _impl_.geopoints_), - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetPathsRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetPathsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetPathsRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetPathsRequest, _impl_.extra_), - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetPathsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetPathsResponse, _impl_.paths_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetPropertiesRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetPropertiesRequest, _impl_.name_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetPropertiesResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetPropertiesResponse, _impl_.map_type_), +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_service_2fnavigation_2fv1_2fnavigation_2eproto = nullptr; + +const uint32_t TableStruct_service_2fnavigation_2fv1_2fnavigation_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetModeRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetModeRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetModeRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetModeResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetModeResponse, mode_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::SetModeRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::SetModeRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::SetModeRequest, mode_), + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::SetModeRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::SetModeResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::Waypoint, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::Waypoint, id_), + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::Waypoint, location_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetLocationRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetLocationRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetLocationRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetLocationResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetLocationResponse, location_), + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetLocationResponse, compass_heading_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetWaypointsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetWaypointsRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetWaypointsRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetWaypointsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetWaypointsResponse, waypoints_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::AddWaypointRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::AddWaypointRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::AddWaypointRequest, location_), + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::AddWaypointRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::AddWaypointResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::RemoveWaypointRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::RemoveWaypointRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::RemoveWaypointRequest, id_), + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::RemoveWaypointRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::RemoveWaypointResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetObstaclesRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetObstaclesRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetObstaclesRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetObstaclesResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetObstaclesResponse, obstacles_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::Path, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::Path, destination_waypoint_id_), + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::Path, geopoints_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetPathsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetPathsRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetPathsRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetPathsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetPathsResponse, paths_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetPropertiesRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetPropertiesRequest, name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetPropertiesResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::navigation::v1::GetPropertiesResponse, map_type_), }; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, 10, -1, sizeof(::viam::service::navigation::v1::GetModeRequest)}, - {12, -1, -1, sizeof(::viam::service::navigation::v1::GetModeResponse)}, - {21, 32, -1, sizeof(::viam::service::navigation::v1::SetModeRequest)}, - {35, -1, -1, sizeof(::viam::service::navigation::v1::SetModeResponse)}, - {43, 53, -1, sizeof(::viam::service::navigation::v1::Waypoint)}, - {55, 65, -1, sizeof(::viam::service::navigation::v1::GetLocationRequest)}, - {67, 77, -1, sizeof(::viam::service::navigation::v1::GetLocationResponse)}, - {79, 89, -1, sizeof(::viam::service::navigation::v1::GetWaypointsRequest)}, - {91, -1, -1, sizeof(::viam::service::navigation::v1::GetWaypointsResponse)}, - {100, 111, -1, sizeof(::viam::service::navigation::v1::AddWaypointRequest)}, - {114, -1, -1, sizeof(::viam::service::navigation::v1::AddWaypointResponse)}, - {122, 133, -1, sizeof(::viam::service::navigation::v1::RemoveWaypointRequest)}, - {136, -1, -1, sizeof(::viam::service::navigation::v1::RemoveWaypointResponse)}, - {144, 154, -1, sizeof(::viam::service::navigation::v1::GetObstaclesRequest)}, - {156, -1, -1, sizeof(::viam::service::navigation::v1::GetObstaclesResponse)}, - {165, -1, -1, sizeof(::viam::service::navigation::v1::Path)}, - {175, 185, -1, sizeof(::viam::service::navigation::v1::GetPathsRequest)}, - {187, -1, -1, sizeof(::viam::service::navigation::v1::GetPathsResponse)}, - {196, -1, -1, sizeof(::viam::service::navigation::v1::GetPropertiesRequest)}, - {205, -1, -1, sizeof(::viam::service::navigation::v1::GetPropertiesResponse)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::service::navigation::v1::GetModeRequest)}, + { 8, -1, -1, sizeof(::viam::service::navigation::v1::GetModeResponse)}, + { 15, -1, -1, sizeof(::viam::service::navigation::v1::SetModeRequest)}, + { 24, -1, -1, sizeof(::viam::service::navigation::v1::SetModeResponse)}, + { 30, -1, -1, sizeof(::viam::service::navigation::v1::Waypoint)}, + { 38, -1, -1, sizeof(::viam::service::navigation::v1::GetLocationRequest)}, + { 46, -1, -1, sizeof(::viam::service::navigation::v1::GetLocationResponse)}, + { 54, -1, -1, sizeof(::viam::service::navigation::v1::GetWaypointsRequest)}, + { 62, -1, -1, sizeof(::viam::service::navigation::v1::GetWaypointsResponse)}, + { 69, -1, -1, sizeof(::viam::service::navigation::v1::AddWaypointRequest)}, + { 78, -1, -1, sizeof(::viam::service::navigation::v1::AddWaypointResponse)}, + { 84, -1, -1, sizeof(::viam::service::navigation::v1::RemoveWaypointRequest)}, + { 93, -1, -1, sizeof(::viam::service::navigation::v1::RemoveWaypointResponse)}, + { 99, -1, -1, sizeof(::viam::service::navigation::v1::GetObstaclesRequest)}, + { 107, -1, -1, sizeof(::viam::service::navigation::v1::GetObstaclesResponse)}, + { 114, -1, -1, sizeof(::viam::service::navigation::v1::Path)}, + { 122, -1, -1, sizeof(::viam::service::navigation::v1::GetPathsRequest)}, + { 130, -1, -1, sizeof(::viam::service::navigation::v1::GetPathsResponse)}, + { 137, -1, -1, sizeof(::viam::service::navigation::v1::GetPropertiesRequest)}, + { 144, -1, -1, sizeof(::viam::service::navigation::v1::GetPropertiesResponse)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::viam::service::navigation::v1::_GetModeRequest_default_instance_._instance, - &::viam::service::navigation::v1::_GetModeResponse_default_instance_._instance, - &::viam::service::navigation::v1::_SetModeRequest_default_instance_._instance, - &::viam::service::navigation::v1::_SetModeResponse_default_instance_._instance, - &::viam::service::navigation::v1::_Waypoint_default_instance_._instance, - &::viam::service::navigation::v1::_GetLocationRequest_default_instance_._instance, - &::viam::service::navigation::v1::_GetLocationResponse_default_instance_._instance, - &::viam::service::navigation::v1::_GetWaypointsRequest_default_instance_._instance, - &::viam::service::navigation::v1::_GetWaypointsResponse_default_instance_._instance, - &::viam::service::navigation::v1::_AddWaypointRequest_default_instance_._instance, - &::viam::service::navigation::v1::_AddWaypointResponse_default_instance_._instance, - &::viam::service::navigation::v1::_RemoveWaypointRequest_default_instance_._instance, - &::viam::service::navigation::v1::_RemoveWaypointResponse_default_instance_._instance, - &::viam::service::navigation::v1::_GetObstaclesRequest_default_instance_._instance, - &::viam::service::navigation::v1::_GetObstaclesResponse_default_instance_._instance, - &::viam::service::navigation::v1::_Path_default_instance_._instance, - &::viam::service::navigation::v1::_GetPathsRequest_default_instance_._instance, - &::viam::service::navigation::v1::_GetPathsResponse_default_instance_._instance, - &::viam::service::navigation::v1::_GetPropertiesRequest_default_instance_._instance, - &::viam::service::navigation::v1::_GetPropertiesResponse_default_instance_._instance, + &::viam::service::navigation::v1::_GetModeRequest_default_instance_._instance, + &::viam::service::navigation::v1::_GetModeResponse_default_instance_._instance, + &::viam::service::navigation::v1::_SetModeRequest_default_instance_._instance, + &::viam::service::navigation::v1::_SetModeResponse_default_instance_._instance, + &::viam::service::navigation::v1::_Waypoint_default_instance_._instance, + &::viam::service::navigation::v1::_GetLocationRequest_default_instance_._instance, + &::viam::service::navigation::v1::_GetLocationResponse_default_instance_._instance, + &::viam::service::navigation::v1::_GetWaypointsRequest_default_instance_._instance, + &::viam::service::navigation::v1::_GetWaypointsResponse_default_instance_._instance, + &::viam::service::navigation::v1::_AddWaypointRequest_default_instance_._instance, + &::viam::service::navigation::v1::_AddWaypointResponse_default_instance_._instance, + &::viam::service::navigation::v1::_RemoveWaypointRequest_default_instance_._instance, + &::viam::service::navigation::v1::_RemoveWaypointResponse_default_instance_._instance, + &::viam::service::navigation::v1::_GetObstaclesRequest_default_instance_._instance, + &::viam::service::navigation::v1::_GetObstaclesResponse_default_instance_._instance, + &::viam::service::navigation::v1::_Path_default_instance_._instance, + &::viam::service::navigation::v1::_GetPathsRequest_default_instance_._instance, + &::viam::service::navigation::v1::_GetPathsResponse_default_instance_._instance, + &::viam::service::navigation::v1::_GetPropertiesRequest_default_instance_._instance, + &::viam::service::navigation::v1::_GetPropertiesResponse_default_instance_._instance, }; -const char descriptor_table_protodef_service_2fnavigation_2fv1_2fnavigation_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n&service/navigation/v1/navigation.proto" - "\022\032viam.service.navigation.v1\032\026common/v1/" - "common.proto\032\034google/api/annotations.pro" - "to\032\034google/protobuf/struct.proto\"S\n\016GetM" - "odeRequest\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005extra\030" - "c \001(\0132\027.google.protobuf.StructR\005extra\"G\n" - "\017GetModeResponse\0224\n\004mode\030\001 \001(\0162 .viam.se" - "rvice.navigation.v1.ModeR\004mode\"\211\001\n\016SetMo" - "deRequest\022\022\n\004name\030\001 \001(\tR\004name\0224\n\004mode\030\002 " - "\001(\0162 .viam.service.navigation.v1.ModeR\004m" - "ode\022-\n\005extra\030c \001(\0132\027.google.protobuf.Str" - "uctR\005extra\"\021\n\017SetModeResponse\"P\n\010Waypoin" - "t\022\016\n\002id\030\001 \001(\tR\002id\0224\n\010location\030\002 \001(\0132\030.vi" - "am.common.v1.GeoPointR\010location\"W\n\022GetLo" - "cationRequest\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005ext" - "ra\030c \001(\0132\027.google.protobuf.StructR\005extra" - "\"t\n\023GetLocationResponse\0224\n\010location\030\001 \001(" - "\0132\030.viam.common.v1.GeoPointR\010location\022\'\n" - "\017compass_heading\030\002 \001(\001R\016compassHeading\"X" - "\n\023GetWaypointsRequest\022\022\n\004name\030\001 \001(\tR\004nam" - "e\022-\n\005extra\030c \001(\0132\027.google.protobuf.Struc" - "tR\005extra\"Z\n\024GetWaypointsResponse\022B\n\twayp" - "oints\030\001 \003(\0132$.viam.service.navigation.v1" - ".WaypointR\twaypoints\"\215\001\n\022AddWaypointRequ" - "est\022\022\n\004name\030\001 \001(\tR\004name\0224\n\010location\030\002 \001(" - "\0132\030.viam.common.v1.GeoPointR\010location\022-\n" - "\005extra\030c \001(\0132\027.google.protobuf.StructR\005e" - "xtra\"\025\n\023AddWaypointResponse\"j\n\025RemoveWay" - "pointRequest\022\022\n\004name\030\001 \001(\tR\004name\022\016\n\002id\030\002" - " \001(\tR\002id\022-\n\005extra\030c \001(\0132\027.google.protobu" - "f.StructR\005extra\"\030\n\026RemoveWaypointRespons" - "e\"X\n\023GetObstaclesRequest\022\022\n\004name\030\001 \001(\tR\004" - "name\022-\n\005extra\030c \001(\0132\027.google.protobuf.St" - "ructR\005extra\"Q\n\024GetObstaclesResponse\0229\n\to" - "bstacles\030\001 \003(\0132\033.viam.common.v1.GeoGeome" - "tryR\tobstacles\"v\n\004Path\0226\n\027destination_wa" - "ypoint_id\030\001 \001(\tR\025destinationWaypointId\0226" - "\n\tgeopoints\030\002 \003(\0132\030.viam.common.v1.GeoPo" - "intR\tgeopoints\"T\n\017GetPathsRequest\022\022\n\004nam" - "e\030\001 \001(\tR\004name\022-\n\005extra\030c \001(\0132\027.google.pr" - "otobuf.StructR\005extra\"J\n\020GetPathsResponse" - "\0226\n\005paths\030\001 \003(\0132 .viam.service.navigatio" - "n.v1.PathR\005paths\"*\n\024GetPropertiesRequest" - "\022\022\n\004name\030\001 \001(\tR\004name\"W\n\025GetPropertiesRes" - "ponse\022>\n\010map_type\030\001 \001(\0162#.viam.service.n" - "avigation.v1.MapTypeR\007mapType*H\n\007MapType" - "\022\030\n\024MAP_TYPE_UNSPECIFIED\020\000\022\021\n\rMAP_TYPE_N" - "ONE\020\001\022\020\n\014MAP_TYPE_GPS\020\002*R\n\004Mode\022\024\n\020MODE_" - "UNSPECIFIED\020\000\022\017\n\013MODE_MANUAL\020\001\022\021\n\rMODE_W" - "AYPOINT\020\002\022\020\n\014MODE_EXPLORE\020\0032\227\r\n\021Navigati" - "onService\022\227\001\n\007GetMode\022*.viam.service.nav" - "igation.v1.GetModeRequest\032+.viam.service" - ".navigation.v1.GetModeResponse\"3\202\323\344\223\002-\022+" - "/viam/api/v1/service/navigation/{name}/m" - "ode\022\227\001\n\007SetMode\022*.viam.service.navigatio" - "n.v1.SetModeRequest\032+.viam.service.navig" - "ation.v1.SetModeResponse\"3\202\323\344\223\002-\032+/viam/" - "api/v1/service/navigation/{name}/mode\022\247\001" - "\n\013GetLocation\022..viam.service.navigation." - "v1.GetLocationRequest\032/.viam.service.nav" - "igation.v1.GetLocationResponse\"7\202\323\344\223\0021\022/" - "/viam/api/v1/service/navigation/{name}/l" - "ocation\022\253\001\n\014GetWaypoints\022/.viam.service." - "navigation.v1.GetWaypointsRequest\0320.viam" - ".service.navigation.v1.GetWaypointsRespo" - "nse\"8\202\323\344\223\0022\0220/viam/api/v1/service/naviga" - "tion/{name}/waypoints\022\250\001\n\013AddWaypoint\022.." - "viam.service.navigation.v1.AddWaypointRe" - "quest\032/.viam.service.navigation.v1.AddWa" - "ypointResponse\"8\202\323\344\223\0022\"0/viam/api/v1/ser" - "vice/navigation/{name}/waypoints\022\266\001\n\016Rem" - "oveWaypoint\0221.viam.service.navigation.v1" - ".RemoveWaypointRequest\0322.viam.service.na" - "vigation.v1.RemoveWaypointResponse\"=\202\323\344\223" - "\0027*5/viam/api/v1/service/navigation/{nam" - "e}/waypoints/{id}\022\257\001\n\014GetObstacles\022/.via" - "m.service.navigation.v1.GetObstaclesRequ" - "est\0320.viam.service.navigation.v1.GetObst" - "aclesResponse\"<\202\323\344\223\0026\0224/viam/api/v1/serv" - "ice/navigation/{name}/get_obstacles\022\237\001\n\010" - "GetPaths\022+.viam.service.navigation.v1.Ge" - "tPathsRequest\032,.viam.service.navigation." - "v1.GetPathsResponse\"8\202\323\344\223\0022\0220/viam/api/v" - "1/service/navigation/{name}/get_paths\022\257\001" - "\n\rGetProperties\0220.viam.service.navigatio" - "n.v1.GetPropertiesRequest\0321.viam.service" - ".navigation.v1.GetPropertiesResponse\"9\202\323" - "\344\223\0023\0221/viam/api/v1/service/navigation/{n" - "ame}/properties\022\213\001\n\tDoCommand\022 .viam.com" - "mon.v1.DoCommandRequest\032!.viam.common.v1" - ".DoCommandResponse\"9\202\323\344\223\0023\"1/viam/api/v1" - "/service/navigation/{name}/do_commandB\343\001" - "\n\036com.viam.service.navigation.v1B\017Naviga" - "tionProtoP\001Z%go.viam.com/api/service/nav" - "igation/v1\242\002\003VSN\252\002\032Viam.Service.Navigati" - "on.V1\312\002\032Viam\\Service\\Navigation\\V1\342\002&Via" - "m\\Service\\Navigation\\V1\\GPBMetadata\352\002\035Vi" - "am::Service::Navigation::V1b\006proto3" -}; -static const ::_pbi::DescriptorTable* const descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_deps[3] = - { - &::descriptor_table_common_2fv1_2fcommon_2eproto, - &::descriptor_table_google_2fapi_2fannotations_2eproto, - &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, + +const char descriptor_table_protodef_service_2fnavigation_2fv1_2fnavigation_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n&service/navigation/v1/navigation.proto" + "\022\032viam.service.navigation.v1\032\026common/v1/" + "common.proto\032\034google/api/annotations.pro" + "to\032\034google/protobuf/struct.proto\"S\n\016GetM" + "odeRequest\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005extra\030" + "c \001(\0132\027.google.protobuf.StructR\005extra\"G\n" + "\017GetModeResponse\0224\n\004mode\030\001 \001(\0162 .viam.se" + "rvice.navigation.v1.ModeR\004mode\"\211\001\n\016SetMo" + "deRequest\022\022\n\004name\030\001 \001(\tR\004name\0224\n\004mode\030\002 " + "\001(\0162 .viam.service.navigation.v1.ModeR\004m" + "ode\022-\n\005extra\030c \001(\0132\027.google.protobuf.Str" + "uctR\005extra\"\021\n\017SetModeResponse\"P\n\010Waypoin" + "t\022\016\n\002id\030\001 \001(\tR\002id\0224\n\010location\030\002 \001(\0132\030.vi" + "am.common.v1.GeoPointR\010location\"W\n\022GetLo" + "cationRequest\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005ext" + "ra\030c \001(\0132\027.google.protobuf.StructR\005extra" + "\"t\n\023GetLocationResponse\0224\n\010location\030\001 \001(" + "\0132\030.viam.common.v1.GeoPointR\010location\022\'\n" + "\017compass_heading\030\002 \001(\001R\016compassHeading\"X" + "\n\023GetWaypointsRequest\022\022\n\004name\030\001 \001(\tR\004nam" + "e\022-\n\005extra\030c \001(\0132\027.google.protobuf.Struc" + "tR\005extra\"Z\n\024GetWaypointsResponse\022B\n\twayp" + "oints\030\001 \003(\0132$.viam.service.navigation.v1" + ".WaypointR\twaypoints\"\215\001\n\022AddWaypointRequ" + "est\022\022\n\004name\030\001 \001(\tR\004name\0224\n\010location\030\002 \001(" + "\0132\030.viam.common.v1.GeoPointR\010location\022-\n" + "\005extra\030c \001(\0132\027.google.protobuf.StructR\005e" + "xtra\"\025\n\023AddWaypointResponse\"j\n\025RemoveWay" + "pointRequest\022\022\n\004name\030\001 \001(\tR\004name\022\016\n\002id\030\002" + " \001(\tR\002id\022-\n\005extra\030c \001(\0132\027.google.protobu" + "f.StructR\005extra\"\030\n\026RemoveWaypointRespons" + "e\"X\n\023GetObstaclesRequest\022\022\n\004name\030\001 \001(\tR\004" + "name\022-\n\005extra\030c \001(\0132\027.google.protobuf.St" + "ructR\005extra\"Q\n\024GetObstaclesResponse\0229\n\to" + "bstacles\030\001 \003(\0132\033.viam.common.v1.GeoGeome" + "tryR\tobstacles\"v\n\004Path\0226\n\027destination_wa" + "ypoint_id\030\001 \001(\tR\025destinationWaypointId\0226" + "\n\tgeopoints\030\002 \003(\0132\030.viam.common.v1.GeoPo" + "intR\tgeopoints\"T\n\017GetPathsRequest\022\022\n\004nam" + "e\030\001 \001(\tR\004name\022-\n\005extra\030c \001(\0132\027.google.pr" + "otobuf.StructR\005extra\"J\n\020GetPathsResponse" + "\0226\n\005paths\030\001 \003(\0132 .viam.service.navigatio" + "n.v1.PathR\005paths\"*\n\024GetPropertiesRequest" + "\022\022\n\004name\030\001 \001(\tR\004name\"W\n\025GetPropertiesRes" + "ponse\022>\n\010map_type\030\001 \001(\0162#.viam.service.n" + "avigation.v1.MapTypeR\007mapType*H\n\007MapType" + "\022\030\n\024MAP_TYPE_UNSPECIFIED\020\000\022\021\n\rMAP_TYPE_N" + "ONE\020\001\022\020\n\014MAP_TYPE_GPS\020\002*R\n\004Mode\022\024\n\020MODE_" + "UNSPECIFIED\020\000\022\017\n\013MODE_MANUAL\020\001\022\021\n\rMODE_W" + "AYPOINT\020\002\022\020\n\014MODE_EXPLORE\020\0032\227\r\n\021Navigati" + "onService\022\227\001\n\007GetMode\022*.viam.service.nav" + "igation.v1.GetModeRequest\032+.viam.service" + ".navigation.v1.GetModeResponse\"3\202\323\344\223\002-\022+" + "/viam/api/v1/service/navigation/{name}/m" + "ode\022\227\001\n\007SetMode\022*.viam.service.navigatio" + "n.v1.SetModeRequest\032+.viam.service.navig" + "ation.v1.SetModeResponse\"3\202\323\344\223\002-\032+/viam/" + "api/v1/service/navigation/{name}/mode\022\247\001" + "\n\013GetLocation\022..viam.service.navigation." + "v1.GetLocationRequest\032/.viam.service.nav" + "igation.v1.GetLocationResponse\"7\202\323\344\223\0021\022/" + "/viam/api/v1/service/navigation/{name}/l" + "ocation\022\253\001\n\014GetWaypoints\022/.viam.service." + "navigation.v1.GetWaypointsRequest\0320.viam" + ".service.navigation.v1.GetWaypointsRespo" + "nse\"8\202\323\344\223\0022\0220/viam/api/v1/service/naviga" + "tion/{name}/waypoints\022\250\001\n\013AddWaypoint\022.." + "viam.service.navigation.v1.AddWaypointRe" + "quest\032/.viam.service.navigation.v1.AddWa" + "ypointResponse\"8\202\323\344\223\0022\"0/viam/api/v1/ser" + "vice/navigation/{name}/waypoints\022\266\001\n\016Rem" + "oveWaypoint\0221.viam.service.navigation.v1" + ".RemoveWaypointRequest\0322.viam.service.na" + "vigation.v1.RemoveWaypointResponse\"=\202\323\344\223" + "\0027*5/viam/api/v1/service/navigation/{nam" + "e}/waypoints/{id}\022\257\001\n\014GetObstacles\022/.via" + "m.service.navigation.v1.GetObstaclesRequ" + "est\0320.viam.service.navigation.v1.GetObst" + "aclesResponse\"<\202\323\344\223\0026\0224/viam/api/v1/serv" + "ice/navigation/{name}/get_obstacles\022\237\001\n\010" + "GetPaths\022+.viam.service.navigation.v1.Ge" + "tPathsRequest\032,.viam.service.navigation." + "v1.GetPathsResponse\"8\202\323\344\223\0022\0220/viam/api/v" + "1/service/navigation/{name}/get_paths\022\257\001" + "\n\rGetProperties\0220.viam.service.navigatio" + "n.v1.GetPropertiesRequest\0321.viam.service" + ".navigation.v1.GetPropertiesResponse\"9\202\323" + "\344\223\0023\0221/viam/api/v1/service/navigation/{n" + "ame}/properties\022\213\001\n\tDoCommand\022 .viam.com" + "mon.v1.DoCommandRequest\032!.viam.common.v1" + ".DoCommandResponse\"9\202\323\344\223\0023\"1/viam/api/v1" + "/service/navigation/{name}/do_commandBG\n" + "\036com.viam.service.navigation.v1Z%go.viam" + ".com/api/service/navigation/v1b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_deps[3] = { + &::descriptor_table_common_2fv1_2fcommon_2eproto, + &::descriptor_table_google_2fapi_2fannotations_2eproto, + &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, }; -static ::absl::once_flag descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_once; +static ::_pbi::once_flag descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto = { - false, - false, - 3915, - descriptor_table_protodef_service_2fnavigation_2fv1_2fnavigation_2eproto, + false, false, 3758, descriptor_table_protodef_service_2fnavigation_2fv1_2fnavigation_2eproto, "service/navigation/v1/navigation.proto", - &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_once, - descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_deps, - 3, - 20, - schemas, - file_default_instances, - TableStruct_service_2fnavigation_2fv1_2fnavigation_2eproto::offsets, - file_level_metadata_service_2fnavigation_2fv1_2fnavigation_2eproto, - file_level_enum_descriptors_service_2fnavigation_2fv1_2fnavigation_2eproto, + &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_once, descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_deps, 3, 20, + schemas, file_default_instances, TableStruct_service_2fnavigation_2fv1_2fnavigation_2eproto::offsets, + file_level_metadata_service_2fnavigation_2fv1_2fnavigation_2eproto, file_level_enum_descriptors_service_2fnavigation_2fv1_2fnavigation_2eproto, file_level_service_descriptors_service_2fnavigation_2fv1_2fnavigation_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_getter() { return &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_service_2fnavigation_2fv1_2fnavigation_2eproto(&descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_service_2fnavigation_2fv1_2fnavigation_2eproto(&descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto); namespace viam { namespace service { namespace navigation { namespace v1 { -const ::google::protobuf::EnumDescriptor* MapType_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto); +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* MapType_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto); return file_level_enum_descriptors_service_2fnavigation_2fv1_2fnavigation_2eproto[0]; } -PROTOBUF_CONSTINIT const uint32_t MapType_internal_data_[] = { - 196608u, 0u, }; bool MapType_IsValid(int value) { - return 0 <= value && value <= 2; + switch (value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } } -const ::google::protobuf::EnumDescriptor* Mode_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto); + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Mode_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto); return file_level_enum_descriptors_service_2fnavigation_2fv1_2fnavigation_2eproto[1]; } -PROTOBUF_CONSTINIT const uint32_t Mode_internal_data_[] = { - 262144u, 0u, }; bool Mode_IsValid(int value) { - return 0 <= value && value <= 3; + switch (value) { + case 0: + case 1: + case 2: + case 3: + return true; + default: + return false; + } } + + // =================================================================== class GetModeRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetModeRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const GetModeRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetModeRequest* msg); }; -const ::google::protobuf::Struct& GetModeRequest::_Internal::extra(const GetModeRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetModeRequest::_Internal::extra(const GetModeRequest* msg) { + return *msg->extra_; } void GetModeRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -GetModeRequest::GetModeRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetModeRequest::GetModeRequest(::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.navigation.v1.GetModeRequest) } -inline PROTOBUF_NDEBUG_INLINE GetModeRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -GetModeRequest::GetModeRequest( - ::google::protobuf::Arena* arena, - const GetModeRequest& from) - : ::google::protobuf::Message(arena) { - GetModeRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +GetModeRequest::GetModeRequest(const GetModeRequest& 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.service.navigation.v1.GetModeRequest) } -inline PROTOBUF_NDEBUG_INLINE GetModeRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} -inline void GetModeRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void GetModeRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + GetModeRequest::~GetModeRequest() { // @@protoc_insertion_point(destructor:viam.service.navigation.v1.GetModeRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetModeRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void GetModeRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetModeRequest::Clear() { +void GetModeRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.navigation.v1.GetModeRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetModeRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetModeRequest::_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.service.navigation.v1.GetModeRequest.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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 2, 1, 54, 7> GetModeRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetModeRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetModeRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetModeRequest, _impl_.name_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(GetModeRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 1, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(GetModeRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(GetModeRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\51\4\0\0\0\0\0\0" - "viam.service.navigation.v1.GetModeRequest" - "name" - }}, -}; - -::uint8_t* GetModeRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetModeRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.navigation.v1.GetModeRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.navigation.v1.GetModeRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.navigation.v1.GetModeRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.navigation.v1.GetModeRequest) return target; } -::size_t GetModeRequest::ByteSizeLong() const { +size_t GetModeRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.navigation.v1.GetModeRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetModeRequest::_class_data_ = { - GetModeRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetModeRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetModeRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetModeRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetModeRequest::GetClassData() const { return &_class_data_; } + +void GetModeRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetModeRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.navigation.v1.GetModeRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetModeRequest::MergeFrom(const GetModeRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.navigation.v1.GetModeRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetModeRequest::CopyFrom(const GetModeRequest& from) { @@ -1084,171 +858,177 @@ void GetModeRequest::CopyFrom(const GetModeRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetModeRequest::IsInitialized() const { +bool GetModeRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetModeRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetModeRequest::InternalSwap(GetModeRequest* PROTOBUF_RESTRICT other) { +void GetModeRequest::InternalSwap(GetModeRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.extra_, other->_impl_.extra_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(extra_, other->extra_); } -::google::protobuf::Metadata GetModeRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetModeRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_getter, &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_once, file_level_metadata_service_2fnavigation_2fv1_2fnavigation_2eproto[0]); } + // =================================================================== class GetModeResponse::_Internal { public: }; -GetModeResponse::GetModeResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetModeResponse::GetModeResponse(::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.navigation.v1.GetModeResponse) } -GetModeResponse::GetModeResponse( - ::google::protobuf::Arena* arena, const GetModeResponse& from) - : GetModeResponse(arena) { - MergeFrom(from); +GetModeResponse::GetModeResponse(const GetModeResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + mode_ = from.mode_; + // @@protoc_insertion_point(copy_constructor:viam.service.navigation.v1.GetModeResponse) } -inline PROTOBUF_NDEBUG_INLINE GetModeResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void GetModeResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.mode_ = {}; +inline void GetModeResponse::SharedCtor() { +mode_ = 0; } + GetModeResponse::~GetModeResponse() { // @@protoc_insertion_point(destructor:viam.service.navigation.v1.GetModeResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetModeResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void GetModeResponse::Clear() { +void GetModeResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetModeResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.navigation.v1.GetModeResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.mode_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetModeResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + mode_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetModeResponse::_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.service.navigation.v1.Mode mode = 1 [json_name = "mode"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_mode(static_cast<::viam::service::navigation::v1::Mode>(val)); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> GetModeResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetModeResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.service.navigation.v1.Mode mode = 1 [json_name = "mode"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(GetModeResponse, _impl_.mode_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(GetModeResponse, _impl_.mode_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.service.navigation.v1.Mode mode = 1 [json_name = "mode"]; - {PROTOBUF_FIELD_OFFSET(GetModeResponse, _impl_.mode_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* GetModeResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetModeResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.navigation.v1.GetModeResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // .viam.service.navigation.v1.Mode mode = 1 [json_name = "mode"]; if (this->_internal_mode() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_mode(), target); + 1, this->_internal_mode(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.navigation.v1.GetModeResponse) return target; } -::size_t GetModeResponse::ByteSizeLong() const { +size_t GetModeResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.navigation.v1.GetModeResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .viam.service.navigation.v1.Mode mode = 1 [json_name = "mode"]; if (this->_internal_mode() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_mode()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_mode()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetModeResponse::_class_data_ = { - GetModeResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetModeResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetModeResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetModeResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetModeResponse::GetClassData() const { return &_class_data_; } + +void GetModeResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetModeResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.navigation.v1.GetModeResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetModeResponse::MergeFrom(const GetModeResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.navigation.v1.GetModeResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_mode() != 0) { - _this->_internal_set_mode(from._internal_mode()); + _internal_set_mode(from._internal_mode()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetModeResponse::CopyFrom(const GetModeResponse& from) { @@ -1258,270 +1038,264 @@ void GetModeResponse::CopyFrom(const GetModeResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetModeResponse::IsInitialized() const { +bool GetModeResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetModeResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetModeResponse::InternalSwap(GetModeResponse* PROTOBUF_RESTRICT other) { +void GetModeResponse::InternalSwap(GetModeResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.mode_, other->_impl_.mode_); + swap(mode_, other->mode_); } -::google::protobuf::Metadata GetModeResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetModeResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_getter, &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_once, file_level_metadata_service_2fnavigation_2fv1_2fnavigation_2eproto[1]); } + // =================================================================== class SetModeRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SetModeRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const SetModeRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const SetModeRequest* msg); }; -const ::google::protobuf::Struct& SetModeRequest::_Internal::extra(const SetModeRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +SetModeRequest::_Internal::extra(const SetModeRequest* msg) { + return *msg->extra_; } void SetModeRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -SetModeRequest::SetModeRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +SetModeRequest::SetModeRequest(::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.navigation.v1.SetModeRequest) } -inline PROTOBUF_NDEBUG_INLINE SetModeRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -SetModeRequest::SetModeRequest( - ::google::protobuf::Arena* arena, - const SetModeRequest& from) - : ::google::protobuf::Message(arena) { - SetModeRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - _impl_.mode_ = from._impl_.mode_; - +SetModeRequest::SetModeRequest(const SetModeRequest& 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; + } + mode_ = from.mode_; // @@protoc_insertion_point(copy_constructor:viam.service.navigation.v1.SetModeRequest) } -inline PROTOBUF_NDEBUG_INLINE SetModeRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} - -inline void SetModeRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, extra_), - 0, - offsetof(Impl_, mode_) - - offsetof(Impl_, extra_) + - sizeof(Impl_::mode_)); + +inline void SetModeRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&extra_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&mode_) - + reinterpret_cast(&extra_)) + sizeof(mode_)); } + SetModeRequest::~SetModeRequest() { // @@protoc_insertion_point(destructor:viam.service.navigation.v1.SetModeRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void SetModeRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void SetModeRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void SetModeRequest::Clear() { +void SetModeRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.navigation.v1.SetModeRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; } - _impl_.mode_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SetModeRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + extra_ = nullptr; + mode_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SetModeRequest::_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.service.navigation.v1.SetModeRequest.name")); + } else + goto handle_unusual; + continue; + // .viam.service.navigation.v1.Mode mode = 2 [json_name = "mode"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_mode(static_cast<::viam::service::navigation::v1::Mode>(val)); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 1, 54, 7> SetModeRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(SetModeRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_SetModeRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(SetModeRequest, _impl_.name_)}}, - // .viam.service.navigation.v1.Mode mode = 2 [json_name = "mode"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SetModeRequest, _impl_.mode_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(SetModeRequest, _impl_.mode_)}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(SetModeRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 2, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(SetModeRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .viam.service.navigation.v1.Mode mode = 2 [json_name = "mode"]; - {PROTOBUF_FIELD_OFFSET(SetModeRequest, _impl_.mode_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(SetModeRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\51\4\0\0\0\0\0\0" - "viam.service.navigation.v1.SetModeRequest" - "name" - }}, -}; - -::uint8_t* SetModeRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* SetModeRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.navigation.v1.SetModeRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.navigation.v1.SetModeRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.navigation.v1.SetModeRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // .viam.service.navigation.v1.Mode mode = 2 [json_name = "mode"]; if (this->_internal_mode() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 2, this->_internal_mode(), target); + 2, this->_internal_mode(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.navigation.v1.SetModeRequest) return target; } -::size_t SetModeRequest::ByteSizeLong() const { +size_t SetModeRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.navigation.v1.SetModeRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } // .viam.service.navigation.v1.Mode mode = 2 [json_name = "mode"]; if (this->_internal_mode() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_mode()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_mode()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData SetModeRequest::_class_data_ = { - SetModeRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetModeRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + SetModeRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* SetModeRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetModeRequest::GetClassData() const { return &_class_data_; } + +void SetModeRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void SetModeRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.navigation.v1.SetModeRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void SetModeRequest::MergeFrom(const SetModeRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.navigation.v1.SetModeRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } if (from._internal_mode() != 0) { - _this->_internal_set_mode(from._internal_mode()); + _internal_set_mode(from._internal_mode()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SetModeRequest::CopyFrom(const SetModeRequest& from) { @@ -1531,52 +1305,47 @@ void SetModeRequest::CopyFrom(const SetModeRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool SetModeRequest::IsInitialized() const { +bool SetModeRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* SetModeRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void SetModeRequest::InternalSwap(SetModeRequest* PROTOBUF_RESTRICT other) { +void SetModeRequest::InternalSwap(SetModeRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(SetModeRequest, _impl_.mode_) - + sizeof(SetModeRequest::_impl_.mode_) - - PROTOBUF_FIELD_OFFSET(SetModeRequest, _impl_.extra_)>( - reinterpret_cast(&_impl_.extra_), - reinterpret_cast(&other->_impl_.extra_)); -} - -::google::protobuf::Metadata SetModeRequest::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(SetModeRequest, mode_) + + sizeof(SetModeRequest::mode_) + - PROTOBUF_FIELD_OFFSET(SetModeRequest, extra_)>( + reinterpret_cast(&extra_), + reinterpret_cast(&other->extra_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SetModeRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_getter, &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_once, file_level_metadata_service_2fnavigation_2fv1_2fnavigation_2eproto[2]); } + // =================================================================== class SetModeResponse::_Internal { public: }; -SetModeResponse::SetModeResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +SetModeResponse::SetModeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.service.navigation.v1.SetModeResponse) } -SetModeResponse::SetModeResponse( - ::google::protobuf::Arena* arena, - const SetModeResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - SetModeResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +SetModeResponse::SetModeResponse(const SetModeResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.service.navigation.v1.SetModeResponse) } @@ -1584,229 +1353,236 @@ SetModeResponse::SetModeResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetModeResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetModeResponse::GetClassData() const { return &_class_data_; } + + + -::google::protobuf::Metadata SetModeResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata SetModeResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_getter, &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_once, file_level_metadata_service_2fnavigation_2fv1_2fnavigation_2eproto[3]); } + // =================================================================== class Waypoint::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Waypoint, _impl_._has_bits_); static const ::viam::common::v1::GeoPoint& location(const Waypoint* msg); - static void set_has_location(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::common::v1::GeoPoint& Waypoint::_Internal::location(const Waypoint* msg) { - return *msg->_impl_.location_; +const ::viam::common::v1::GeoPoint& +Waypoint::_Internal::location(const Waypoint* msg) { + return *msg->location_; } void Waypoint::clear_location() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.location_ != nullptr) _impl_.location_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && location_ != nullptr) { + delete location_; + } + location_ = nullptr; } -Waypoint::Waypoint(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Waypoint::Waypoint(::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.navigation.v1.Waypoint) } -inline PROTOBUF_NDEBUG_INLINE Waypoint::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - id_(arena, from.id_) {} - -Waypoint::Waypoint( - ::google::protobuf::Arena* arena, - const Waypoint& from) - : ::google::protobuf::Message(arena) { - Waypoint* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.location_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::common::v1::GeoPoint>(arena, *from._impl_.location_) - : nullptr; - +Waypoint::Waypoint(const Waypoint& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } + if (from._internal_has_location()) { + location_ = new ::viam::common::v1::GeoPoint(*from.location_); + } else { + location_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.service.navigation.v1.Waypoint) } -inline PROTOBUF_NDEBUG_INLINE Waypoint::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - id_(arena) {} -inline void Waypoint::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.location_ = {}; +inline void Waypoint::SharedCtor() { +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +location_ = nullptr; } + Waypoint::~Waypoint() { // @@protoc_insertion_point(destructor:viam.service.navigation.v1.Waypoint) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Waypoint::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - delete _impl_.location_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + id_.Destroy(); + if (this != internal_default_instance()) delete location_; } -PROTOBUF_NOINLINE void Waypoint::Clear() { +void Waypoint::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void Waypoint::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.navigation.v1.Waypoint) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.id_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.location_ != nullptr); - _impl_.location_->Clear(); + id_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && location_ != nullptr) { + delete location_; } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Waypoint::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + location_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Waypoint::_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 id = 1 [json_name = "id"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.navigation.v1.Waypoint.id")); + } else + goto handle_unusual; + continue; + // .viam.common.v1.GeoPoint location = 2 [json_name = "location"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_location(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 46, 2> Waypoint::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Waypoint, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Waypoint_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.common.v1.GeoPoint location = 2 [json_name = "location"]; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(Waypoint, _impl_.location_)}}, - // string id = 1 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Waypoint, _impl_.id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(Waypoint, _impl_.id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .viam.common.v1.GeoPoint location = 2 [json_name = "location"]; - {PROTOBUF_FIELD_OFFSET(Waypoint, _impl_.location_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::common::v1::GeoPoint>()}, - }}, {{ - "\43\2\0\0\0\0\0\0" - "viam.service.navigation.v1.Waypoint" - "id" - }}, -}; - -::uint8_t* Waypoint::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Waypoint::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.navigation.v1.Waypoint) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.navigation.v1.Waypoint.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.navigation.v1.Waypoint.id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_id(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .viam.common.v1.GeoPoint location = 2 [json_name = "location"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::location(this), + if (this->_internal_has_location()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::location(this), _Internal::location(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.navigation.v1.Waypoint) return target; } -::size_t Waypoint::ByteSizeLong() const { +size_t Waypoint::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.navigation.v1.Waypoint) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } // .viam.common.v1.GeoPoint location = 2 [json_name = "location"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.location_); + if (this->_internal_has_location()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *location_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Waypoint::_class_data_ = { - Waypoint::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Waypoint::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Waypoint::MergeImpl }; -const ::google::protobuf::Message::ClassData* Waypoint::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Waypoint::GetClassData() const { return &_class_data_; } + +void Waypoint::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Waypoint::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.navigation.v1.Waypoint) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Waypoint::MergeFrom(const Waypoint& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.navigation.v1.Waypoint) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_location()->::viam::common::v1::GeoPoint::MergeFrom( - from._internal_location()); + if (from._internal_has_location()) { + _internal_mutable_location()->::viam::common::v1::GeoPoint::MergeFrom(from._internal_location()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Waypoint::CopyFrom(const Waypoint& from) { @@ -1816,246 +1592,240 @@ void Waypoint::CopyFrom(const Waypoint& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Waypoint::IsInitialized() const { +bool Waypoint::IsInitialized() const { return true; } -::_pbi::CachedSize* Waypoint::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Waypoint::InternalSwap(Waypoint* PROTOBUF_RESTRICT other) { +void Waypoint::InternalSwap(Waypoint* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); - swap(_impl_.location_, other->_impl_.location_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); + swap(location_, other->location_); } -::google::protobuf::Metadata Waypoint::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Waypoint::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_getter, &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_once, file_level_metadata_service_2fnavigation_2fv1_2fnavigation_2eproto[4]); } + // =================================================================== class GetLocationRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetLocationRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const GetLocationRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetLocationRequest* msg); }; -const ::google::protobuf::Struct& GetLocationRequest::_Internal::extra(const GetLocationRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetLocationRequest::_Internal::extra(const GetLocationRequest* msg) { + return *msg->extra_; } void GetLocationRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -GetLocationRequest::GetLocationRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetLocationRequest::GetLocationRequest(::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.navigation.v1.GetLocationRequest) } -inline PROTOBUF_NDEBUG_INLINE GetLocationRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -GetLocationRequest::GetLocationRequest( - ::google::protobuf::Arena* arena, - const GetLocationRequest& from) - : ::google::protobuf::Message(arena) { - GetLocationRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +GetLocationRequest::GetLocationRequest(const GetLocationRequest& 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.service.navigation.v1.GetLocationRequest) } -inline PROTOBUF_NDEBUG_INLINE GetLocationRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} -inline void GetLocationRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void GetLocationRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + GetLocationRequest::~GetLocationRequest() { // @@protoc_insertion_point(destructor:viam.service.navigation.v1.GetLocationRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetLocationRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void GetLocationRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetLocationRequest::Clear() { +void GetLocationRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.navigation.v1.GetLocationRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetLocationRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetLocationRequest::_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.service.navigation.v1.GetLocationRequest.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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 2, 1, 58, 7> GetLocationRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetLocationRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetLocationRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetLocationRequest, _impl_.name_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(GetLocationRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 1, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(GetLocationRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(GetLocationRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\55\4\0\0\0\0\0\0" - "viam.service.navigation.v1.GetLocationRequest" - "name" - }}, -}; - -::uint8_t* GetLocationRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetLocationRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.navigation.v1.GetLocationRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.navigation.v1.GetLocationRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.navigation.v1.GetLocationRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.navigation.v1.GetLocationRequest) return target; } -::size_t GetLocationRequest::ByteSizeLong() const { +size_t GetLocationRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.navigation.v1.GetLocationRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetLocationRequest::_class_data_ = { - GetLocationRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetLocationRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetLocationRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetLocationRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetLocationRequest::GetClassData() const { return &_class_data_; } + +void GetLocationRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetLocationRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.navigation.v1.GetLocationRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetLocationRequest::MergeFrom(const GetLocationRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.navigation.v1.GetLocationRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetLocationRequest::CopyFrom(const GetLocationRequest& from) { @@ -2065,255 +1835,235 @@ void GetLocationRequest::CopyFrom(const GetLocationRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetLocationRequest::IsInitialized() const { +bool GetLocationRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetLocationRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetLocationRequest::InternalSwap(GetLocationRequest* PROTOBUF_RESTRICT other) { +void GetLocationRequest::InternalSwap(GetLocationRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.extra_, other->_impl_.extra_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(extra_, other->extra_); } -::google::protobuf::Metadata GetLocationRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetLocationRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_getter, &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_once, file_level_metadata_service_2fnavigation_2fv1_2fnavigation_2eproto[5]); } + // =================================================================== class GetLocationResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetLocationResponse, _impl_._has_bits_); static const ::viam::common::v1::GeoPoint& location(const GetLocationResponse* msg); - static void set_has_location(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::common::v1::GeoPoint& GetLocationResponse::_Internal::location(const GetLocationResponse* msg) { - return *msg->_impl_.location_; +const ::viam::common::v1::GeoPoint& +GetLocationResponse::_Internal::location(const GetLocationResponse* msg) { + return *msg->location_; } void GetLocationResponse::clear_location() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.location_ != nullptr) _impl_.location_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && location_ != nullptr) { + delete location_; + } + location_ = nullptr; } -GetLocationResponse::GetLocationResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetLocationResponse::GetLocationResponse(::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.navigation.v1.GetLocationResponse) } -inline PROTOBUF_NDEBUG_INLINE GetLocationResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -GetLocationResponse::GetLocationResponse( - ::google::protobuf::Arena* arena, - const GetLocationResponse& from) - : ::google::protobuf::Message(arena) { - GetLocationResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.location_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::common::v1::GeoPoint>(arena, *from._impl_.location_) - : nullptr; - _impl_.compass_heading_ = from._impl_.compass_heading_; - +GetLocationResponse::GetLocationResponse(const GetLocationResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_location()) { + location_ = new ::viam::common::v1::GeoPoint(*from.location_); + } else { + location_ = nullptr; + } + compass_heading_ = from.compass_heading_; // @@protoc_insertion_point(copy_constructor:viam.service.navigation.v1.GetLocationResponse) } -inline PROTOBUF_NDEBUG_INLINE GetLocationResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void GetLocationResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, location_), - 0, - offsetof(Impl_, compass_heading_) - - offsetof(Impl_, location_) + - sizeof(Impl_::compass_heading_)); +inline void GetLocationResponse::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&location_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&compass_heading_) - + reinterpret_cast(&location_)) + sizeof(compass_heading_)); } + GetLocationResponse::~GetLocationResponse() { // @@protoc_insertion_point(destructor:viam.service.navigation.v1.GetLocationResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetLocationResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.location_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete location_; +} + +void GetLocationResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetLocationResponse::Clear() { +void GetLocationResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.navigation.v1.GetLocationResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.location_ != nullptr); - _impl_.location_->Clear(); + if (GetArenaForAllocation() == nullptr && location_ != nullptr) { + delete location_; } - _impl_.compass_heading_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetLocationResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + location_ = nullptr; + compass_heading_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetLocationResponse::_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.GeoPoint location = 1 [json_name = "location"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_location(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // double compass_heading = 2 [json_name = "compassHeading"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 17)) { + compass_heading_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 0, 2> GetLocationResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetLocationResponse, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetLocationResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // double compass_heading = 2 [json_name = "compassHeading"]; - {::_pbi::TcParser::FastF64S1, - {17, 63, 0, PROTOBUF_FIELD_OFFSET(GetLocationResponse, _impl_.compass_heading_)}}, - // .viam.common.v1.GeoPoint location = 1 [json_name = "location"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetLocationResponse, _impl_.location_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.common.v1.GeoPoint location = 1 [json_name = "location"]; - {PROTOBUF_FIELD_OFFSET(GetLocationResponse, _impl_.location_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // double compass_heading = 2 [json_name = "compassHeading"]; - {PROTOBUF_FIELD_OFFSET(GetLocationResponse, _impl_.compass_heading_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::common::v1::GeoPoint>()}, - }}, {{ - }}, -}; - -::uint8_t* GetLocationResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetLocationResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.navigation.v1.GetLocationResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.common.v1.GeoPoint location = 1 [json_name = "location"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::location(this), + if (this->_internal_has_location()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::location(this), _Internal::location(this).GetCachedSize(), target, stream); } // double compass_heading = 2 [json_name = "compassHeading"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_compass_heading = this->_internal_compass_heading(); - ::uint64_t raw_compass_heading; + uint64_t raw_compass_heading; memcpy(&raw_compass_heading, &tmp_compass_heading, sizeof(tmp_compass_heading)); if (raw_compass_heading != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 2, this->_internal_compass_heading(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_compass_heading(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.navigation.v1.GetLocationResponse) return target; } -::size_t GetLocationResponse::ByteSizeLong() const { +size_t GetLocationResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.navigation.v1.GetLocationResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .viam.common.v1.GeoPoint location = 1 [json_name = "location"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.location_); + if (this->_internal_has_location()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *location_); } // double compass_heading = 2 [json_name = "compassHeading"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_compass_heading = this->_internal_compass_heading(); - ::uint64_t raw_compass_heading; + uint64_t raw_compass_heading; memcpy(&raw_compass_heading, &tmp_compass_heading, sizeof(tmp_compass_heading)); if (raw_compass_heading != 0) { - total_size += 9; + total_size += 1 + 8; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetLocationResponse::_class_data_ = { - GetLocationResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetLocationResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetLocationResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetLocationResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetLocationResponse::GetClassData() const { return &_class_data_; } + +void GetLocationResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetLocationResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.navigation.v1.GetLocationResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetLocationResponse::MergeFrom(const GetLocationResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.navigation.v1.GetLocationResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_location()->::viam::common::v1::GeoPoint::MergeFrom( - from._internal_location()); + if (from._internal_has_location()) { + _internal_mutable_location()->::viam::common::v1::GeoPoint::MergeFrom(from._internal_location()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_compass_heading = from._internal_compass_heading(); - ::uint64_t raw_compass_heading; + uint64_t raw_compass_heading; memcpy(&raw_compass_heading, &tmp_compass_heading, sizeof(tmp_compass_heading)); if (raw_compass_heading != 0) { - _this->_internal_set_compass_heading(from._internal_compass_heading()); + _internal_set_compass_heading(from._internal_compass_heading()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetLocationResponse::CopyFrom(const GetLocationResponse& from) { @@ -2323,248 +2073,239 @@ void GetLocationResponse::CopyFrom(const GetLocationResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetLocationResponse::IsInitialized() const { +bool GetLocationResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetLocationResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetLocationResponse::InternalSwap(GetLocationResponse* PROTOBUF_RESTRICT other) { +void GetLocationResponse::InternalSwap(GetLocationResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(GetLocationResponse, _impl_.compass_heading_) - + sizeof(GetLocationResponse::_impl_.compass_heading_) - - PROTOBUF_FIELD_OFFSET(GetLocationResponse, _impl_.location_)>( - reinterpret_cast(&_impl_.location_), - reinterpret_cast(&other->_impl_.location_)); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GetLocationResponse, compass_heading_) + + sizeof(GetLocationResponse::compass_heading_) + - PROTOBUF_FIELD_OFFSET(GetLocationResponse, location_)>( + reinterpret_cast(&location_), + reinterpret_cast(&other->location_)); } -::google::protobuf::Metadata GetLocationResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetLocationResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_getter, &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_once, file_level_metadata_service_2fnavigation_2fv1_2fnavigation_2eproto[6]); } + // =================================================================== class GetWaypointsRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetWaypointsRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const GetWaypointsRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetWaypointsRequest* msg); }; -const ::google::protobuf::Struct& GetWaypointsRequest::_Internal::extra(const GetWaypointsRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetWaypointsRequest::_Internal::extra(const GetWaypointsRequest* msg) { + return *msg->extra_; } void GetWaypointsRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -GetWaypointsRequest::GetWaypointsRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetWaypointsRequest::GetWaypointsRequest(::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.navigation.v1.GetWaypointsRequest) } -inline PROTOBUF_NDEBUG_INLINE GetWaypointsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -GetWaypointsRequest::GetWaypointsRequest( - ::google::protobuf::Arena* arena, - const GetWaypointsRequest& from) - : ::google::protobuf::Message(arena) { - GetWaypointsRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +GetWaypointsRequest::GetWaypointsRequest(const GetWaypointsRequest& 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.service.navigation.v1.GetWaypointsRequest) } -inline PROTOBUF_NDEBUG_INLINE GetWaypointsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} -inline void GetWaypointsRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void GetWaypointsRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + GetWaypointsRequest::~GetWaypointsRequest() { // @@protoc_insertion_point(destructor:viam.service.navigation.v1.GetWaypointsRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetWaypointsRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void GetWaypointsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetWaypointsRequest::Clear() { +void GetWaypointsRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.navigation.v1.GetWaypointsRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetWaypointsRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetWaypointsRequest::_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.service.navigation.v1.GetWaypointsRequest.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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 2, 1, 59, 7> GetWaypointsRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetWaypointsRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetWaypointsRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetWaypointsRequest, _impl_.name_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(GetWaypointsRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 1, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(GetWaypointsRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(GetWaypointsRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\56\4\0\0\0\0\0\0" - "viam.service.navigation.v1.GetWaypointsRequest" - "name" - }}, -}; - -::uint8_t* GetWaypointsRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetWaypointsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.navigation.v1.GetWaypointsRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.navigation.v1.GetWaypointsRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.navigation.v1.GetWaypointsRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.navigation.v1.GetWaypointsRequest) return target; } -::size_t GetWaypointsRequest::ByteSizeLong() const { +size_t GetWaypointsRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.navigation.v1.GetWaypointsRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetWaypointsRequest::_class_data_ = { - GetWaypointsRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetWaypointsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetWaypointsRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetWaypointsRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetWaypointsRequest::GetClassData() const { return &_class_data_; } + +void GetWaypointsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetWaypointsRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.navigation.v1.GetWaypointsRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetWaypointsRequest::MergeFrom(const GetWaypointsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.navigation.v1.GetWaypointsRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetWaypointsRequest::CopyFrom(const GetWaypointsRequest& from) { @@ -2574,184 +2315,181 @@ void GetWaypointsRequest::CopyFrom(const GetWaypointsRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetWaypointsRequest::IsInitialized() const { +bool GetWaypointsRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetWaypointsRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetWaypointsRequest::InternalSwap(GetWaypointsRequest* PROTOBUF_RESTRICT other) { +void GetWaypointsRequest::InternalSwap(GetWaypointsRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.extra_, other->_impl_.extra_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(extra_, other->extra_); } -::google::protobuf::Metadata GetWaypointsRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetWaypointsRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_getter, &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_once, file_level_metadata_service_2fnavigation_2fv1_2fnavigation_2eproto[7]); } + // =================================================================== class GetWaypointsResponse::_Internal { public: }; -GetWaypointsResponse::GetWaypointsResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetWaypointsResponse::GetWaypointsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + waypoints_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.service.navigation.v1.GetWaypointsResponse) } -inline PROTOBUF_NDEBUG_INLINE GetWaypointsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : waypoints_{visibility, arena, from.waypoints_}, - _cached_size_{0} {} - -GetWaypointsResponse::GetWaypointsResponse( - ::google::protobuf::Arena* arena, - const GetWaypointsResponse& from) - : ::google::protobuf::Message(arena) { - GetWaypointsResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetWaypointsResponse::GetWaypointsResponse(const GetWaypointsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + waypoints_(from.waypoints_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.service.navigation.v1.GetWaypointsResponse) } -inline PROTOBUF_NDEBUG_INLINE GetWaypointsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : waypoints_{visibility, arena}, - _cached_size_{0} {} -inline void GetWaypointsResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetWaypointsResponse::SharedCtor() { } + GetWaypointsResponse::~GetWaypointsResponse() { // @@protoc_insertion_point(destructor:viam.service.navigation.v1.GetWaypointsResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetWaypointsResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void GetWaypointsResponse::Clear() { +void GetWaypointsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetWaypointsResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.navigation.v1.GetWaypointsResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.waypoints_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetWaypointsResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + waypoints_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetWaypointsResponse::_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) { + // repeated .viam.service.navigation.v1.Waypoint waypoints = 1 [json_name = "waypoints"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_waypoints(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetWaypointsResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetWaypointsResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.service.navigation.v1.Waypoint waypoints = 1 [json_name = "waypoints"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetWaypointsResponse, _impl_.waypoints_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.service.navigation.v1.Waypoint waypoints = 1 [json_name = "waypoints"]; - {PROTOBUF_FIELD_OFFSET(GetWaypointsResponse, _impl_.waypoints_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::service::navigation::v1::Waypoint>()}, - }}, {{ - }}, -}; - -::uint8_t* GetWaypointsResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetWaypointsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.navigation.v1.GetWaypointsResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .viam.service.navigation.v1.Waypoint waypoints = 1 [json_name = "waypoints"]; for (unsigned i = 0, n = static_cast(this->_internal_waypoints_size()); i < n; i++) { - const auto& repfield = this->_internal_waypoints().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_waypoints(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.navigation.v1.GetWaypointsResponse) return target; } -::size_t GetWaypointsResponse::ByteSizeLong() const { +size_t GetWaypointsResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.navigation.v1.GetWaypointsResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.service.navigation.v1.Waypoint waypoints = 1 [json_name = "waypoints"]; total_size += 1UL * this->_internal_waypoints_size(); - for (const auto& msg : this->_internal_waypoints()) { + for (const auto& msg : this->waypoints_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetWaypointsResponse::_class_data_ = { - GetWaypointsResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetWaypointsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetWaypointsResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetWaypointsResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetWaypointsResponse::GetClassData() const { return &_class_data_; } + +void GetWaypointsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetWaypointsResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.navigation.v1.GetWaypointsResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetWaypointsResponse::MergeFrom(const GetWaypointsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.navigation.v1.GetWaypointsResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_waypoints()->MergeFrom( - from._internal_waypoints()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + waypoints_.MergeFrom(from.waypoints_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetWaypointsResponse::CopyFrom(const GetWaypointsResponse& from) { @@ -2761,297 +2499,283 @@ void GetWaypointsResponse::CopyFrom(const GetWaypointsResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetWaypointsResponse::IsInitialized() const { +bool GetWaypointsResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetWaypointsResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetWaypointsResponse::InternalSwap(GetWaypointsResponse* PROTOBUF_RESTRICT other) { +void GetWaypointsResponse::InternalSwap(GetWaypointsResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.waypoints_.InternalSwap(&other->_impl_.waypoints_); + waypoints_.InternalSwap(&other->waypoints_); } -::google::protobuf::Metadata GetWaypointsResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetWaypointsResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_getter, &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_once, file_level_metadata_service_2fnavigation_2fv1_2fnavigation_2eproto[8]); } + // =================================================================== class AddWaypointRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(AddWaypointRequest, _impl_._has_bits_); static const ::viam::common::v1::GeoPoint& location(const AddWaypointRequest* msg); - static void set_has_location(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::google::protobuf::Struct& extra(const AddWaypointRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const AddWaypointRequest* msg); }; -const ::viam::common::v1::GeoPoint& AddWaypointRequest::_Internal::location(const AddWaypointRequest* msg) { - return *msg->_impl_.location_; +const ::viam::common::v1::GeoPoint& +AddWaypointRequest::_Internal::location(const AddWaypointRequest* msg) { + return *msg->location_; } -const ::google::protobuf::Struct& AddWaypointRequest::_Internal::extra(const AddWaypointRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +AddWaypointRequest::_Internal::extra(const AddWaypointRequest* msg) { + return *msg->extra_; } void AddWaypointRequest::clear_location() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.location_ != nullptr) _impl_.location_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && location_ != nullptr) { + delete location_; + } + location_ = nullptr; } void AddWaypointRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -AddWaypointRequest::AddWaypointRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +AddWaypointRequest::AddWaypointRequest(::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.navigation.v1.AddWaypointRequest) } -inline PROTOBUF_NDEBUG_INLINE AddWaypointRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -AddWaypointRequest::AddWaypointRequest( - ::google::protobuf::Arena* arena, - const AddWaypointRequest& from) - : ::google::protobuf::Message(arena) { - AddWaypointRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.location_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::common::v1::GeoPoint>(arena, *from._impl_.location_) - : nullptr; - _impl_.extra_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +AddWaypointRequest::AddWaypointRequest(const AddWaypointRequest& 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_location()) { + location_ = new ::viam::common::v1::GeoPoint(*from.location_); + } else { + location_ = nullptr; + } + if (from._internal_has_extra()) { + extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.extra_); + } else { + extra_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.service.navigation.v1.AddWaypointRequest) } -inline PROTOBUF_NDEBUG_INLINE AddWaypointRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} - -inline void AddWaypointRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, location_), - 0, - offsetof(Impl_, extra_) - - offsetof(Impl_, location_) + - sizeof(Impl_::extra_)); + +inline void AddWaypointRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&location_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&extra_) - + reinterpret_cast(&location_)) + sizeof(extra_)); } + AddWaypointRequest::~AddWaypointRequest() { // @@protoc_insertion_point(destructor:viam.service.navigation.v1.AddWaypointRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void AddWaypointRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.location_; - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete location_; + if (this != internal_default_instance()) delete extra_; +} + +void AddWaypointRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void AddWaypointRequest::Clear() { +void AddWaypointRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.navigation.v1.AddWaypointRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.location_ != nullptr); - _impl_.location_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && location_ != nullptr) { + delete location_; } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* AddWaypointRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + location_ = nullptr; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* AddWaypointRequest::_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.service.navigation.v1.AddWaypointRequest.name")); + } else + goto handle_unusual; + continue; + // .viam.common.v1.GeoPoint location = 2 [json_name = "location"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_location(), ptr); + CHK_(ptr); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 2, 58, 7> AddWaypointRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(AddWaypointRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_AddWaypointRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(AddWaypointRequest, _impl_.name_)}}, - // .viam.common.v1.GeoPoint location = 2 [json_name = "location"]; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(AddWaypointRequest, _impl_.location_)}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 1, 1, PROTOBUF_FIELD_OFFSET(AddWaypointRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 2, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(AddWaypointRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .viam.common.v1.GeoPoint location = 2 [json_name = "location"]; - {PROTOBUF_FIELD_OFFSET(AddWaypointRequest, _impl_.location_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(AddWaypointRequest, _impl_.extra_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::common::v1::GeoPoint>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\55\4\0\0\0\0\0\0" - "viam.service.navigation.v1.AddWaypointRequest" - "name" - }}, -}; - -::uint8_t* AddWaypointRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* AddWaypointRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.navigation.v1.AddWaypointRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.navigation.v1.AddWaypointRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.navigation.v1.AddWaypointRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .viam.common.v1.GeoPoint location = 2 [json_name = "location"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::location(this), + if (this->_internal_has_location()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::location(this), _Internal::location(this).GetCachedSize(), target, stream); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.navigation.v1.AddWaypointRequest) return target; } -::size_t AddWaypointRequest::ByteSizeLong() const { +size_t AddWaypointRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.navigation.v1.AddWaypointRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // .viam.common.v1.GeoPoint location = 2 [json_name = "location"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.location_); - } - - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); - } + // .viam.common.v1.GeoPoint location = 2 [json_name = "location"]; + if (this->_internal_has_location()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *location_); + } + // .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, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData AddWaypointRequest::_class_data_ = { - AddWaypointRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AddWaypointRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + AddWaypointRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* AddWaypointRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AddWaypointRequest::GetClassData() const { return &_class_data_; } + +void AddWaypointRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void AddWaypointRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.navigation.v1.AddWaypointRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void AddWaypointRequest::MergeFrom(const AddWaypointRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.navigation.v1.AddWaypointRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_location()->::viam::common::v1::GeoPoint::MergeFrom( - from._internal_location()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); - } + if (from._internal_has_location()) { + _internal_mutable_location()->::viam::common::v1::GeoPoint::MergeFrom(from._internal_location()); + } + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void AddWaypointRequest::CopyFrom(const AddWaypointRequest& from) { @@ -3061,52 +2785,47 @@ void AddWaypointRequest::CopyFrom(const AddWaypointRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool AddWaypointRequest::IsInitialized() const { +bool AddWaypointRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* AddWaypointRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void AddWaypointRequest::InternalSwap(AddWaypointRequest* PROTOBUF_RESTRICT other) { +void AddWaypointRequest::InternalSwap(AddWaypointRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(AddWaypointRequest, _impl_.extra_) - + sizeof(AddWaypointRequest::_impl_.extra_) - - PROTOBUF_FIELD_OFFSET(AddWaypointRequest, _impl_.location_)>( - reinterpret_cast(&_impl_.location_), - reinterpret_cast(&other->_impl_.location_)); -} - -::google::protobuf::Metadata AddWaypointRequest::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(AddWaypointRequest, extra_) + + sizeof(AddWaypointRequest::extra_) + - PROTOBUF_FIELD_OFFSET(AddWaypointRequest, location_)>( + reinterpret_cast(&location_), + reinterpret_cast(&other->location_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata AddWaypointRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_getter, &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_once, file_level_metadata_service_2fnavigation_2fv1_2fnavigation_2eproto[9]); } + // =================================================================== class AddWaypointResponse::_Internal { public: }; -AddWaypointResponse::AddWaypointResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +AddWaypointResponse::AddWaypointResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.service.navigation.v1.AddWaypointResponse) } -AddWaypointResponse::AddWaypointResponse( - ::google::protobuf::Arena* arena, - const AddWaypointResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - AddWaypointResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +AddWaypointResponse::AddWaypointResponse(const AddWaypointResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.service.navigation.v1.AddWaypointResponse) } @@ -3114,260 +2833,280 @@ AddWaypointResponse::AddWaypointResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AddWaypointResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AddWaypointResponse::GetClassData() const { return &_class_data_; } + + + -::google::protobuf::Metadata AddWaypointResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata AddWaypointResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_getter, &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_once, file_level_metadata_service_2fnavigation_2fv1_2fnavigation_2eproto[10]); } + // =================================================================== class RemoveWaypointRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(RemoveWaypointRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const RemoveWaypointRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const RemoveWaypointRequest* msg); }; -const ::google::protobuf::Struct& RemoveWaypointRequest::_Internal::extra(const RemoveWaypointRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +RemoveWaypointRequest::_Internal::extra(const RemoveWaypointRequest* msg) { + return *msg->extra_; } void RemoveWaypointRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -RemoveWaypointRequest::RemoveWaypointRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +RemoveWaypointRequest::RemoveWaypointRequest(::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.navigation.v1.RemoveWaypointRequest) } -inline PROTOBUF_NDEBUG_INLINE RemoveWaypointRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_), - id_(arena, from.id_) {} - -RemoveWaypointRequest::RemoveWaypointRequest( - ::google::protobuf::Arena* arena, - const RemoveWaypointRequest& from) - : ::google::protobuf::Message(arena) { - RemoveWaypointRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +RemoveWaypointRequest::RemoveWaypointRequest(const RemoveWaypointRequest& 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()); + } + id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + id_.Set(from._internal_id(), + GetArenaForAllocation()); + } + if (from._internal_has_extra()) { + extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.extra_); + } else { + extra_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.service.navigation.v1.RemoveWaypointRequest) } -inline PROTOBUF_NDEBUG_INLINE RemoveWaypointRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena), - id_(arena) {} -inline void RemoveWaypointRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void RemoveWaypointRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + RemoveWaypointRequest::~RemoveWaypointRequest() { // @@protoc_insertion_point(destructor:viam.service.navigation.v1.RemoveWaypointRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void RemoveWaypointRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.id_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + id_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void RemoveWaypointRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void RemoveWaypointRequest::Clear() { +void RemoveWaypointRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.navigation.v1.RemoveWaypointRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _impl_.id_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); + name_.ClearToEmpty(); + id_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* RemoveWaypointRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RemoveWaypointRequest::_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.service.navigation.v1.RemoveWaypointRequest.name")); + } else + goto handle_unusual; + continue; + // string id = 2 [json_name = "id"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.navigation.v1.RemoveWaypointRequest.id")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 1, 63, 7> RemoveWaypointRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(RemoveWaypointRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_RemoveWaypointRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(RemoveWaypointRequest, _impl_.name_)}}, - // string id = 2 [json_name = "id"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(RemoveWaypointRequest, _impl_.id_)}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(RemoveWaypointRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 2, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(RemoveWaypointRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string id = 2 [json_name = "id"]; - {PROTOBUF_FIELD_OFFSET(RemoveWaypointRequest, _impl_.id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(RemoveWaypointRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\60\4\2\0\0\0\0\0" - "viam.service.navigation.v1.RemoveWaypointRequest" - "name" - "id" - }}, -}; - -::uint8_t* RemoveWaypointRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* RemoveWaypointRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.navigation.v1.RemoveWaypointRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.navigation.v1.RemoveWaypointRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.navigation.v1.RemoveWaypointRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // string id = 2 [json_name = "id"]; if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.navigation.v1.RemoveWaypointRequest.id"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_id().data(), static_cast(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.navigation.v1.RemoveWaypointRequest.id"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_id(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.navigation.v1.RemoveWaypointRequest) return target; } -::size_t RemoveWaypointRequest::ByteSizeLong() const { +size_t RemoveWaypointRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.navigation.v1.RemoveWaypointRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // string id = 2 [json_name = "id"]; if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData RemoveWaypointRequest::_class_data_ = { - RemoveWaypointRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RemoveWaypointRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + RemoveWaypointRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* RemoveWaypointRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RemoveWaypointRequest::GetClassData() const { return &_class_data_; } + +void RemoveWaypointRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void RemoveWaypointRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.navigation.v1.RemoveWaypointRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void RemoveWaypointRequest::MergeFrom(const RemoveWaypointRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.navigation.v1.RemoveWaypointRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); + _internal_set_id(from._internal_id()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void RemoveWaypointRequest::CopyFrom(const RemoveWaypointRequest& from) { @@ -3377,48 +3116,46 @@ void RemoveWaypointRequest::CopyFrom(const RemoveWaypointRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool RemoveWaypointRequest::IsInitialized() const { +bool RemoveWaypointRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* RemoveWaypointRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void RemoveWaypointRequest::InternalSwap(RemoveWaypointRequest* PROTOBUF_RESTRICT other) { +void RemoveWaypointRequest::InternalSwap(RemoveWaypointRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); - swap(_impl_.extra_, other->_impl_.extra_); -} - -::google::protobuf::Metadata RemoveWaypointRequest::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &id_, lhs_arena, + &other->id_, rhs_arena + ); + swap(extra_, other->extra_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata RemoveWaypointRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_getter, &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_once, file_level_metadata_service_2fnavigation_2fv1_2fnavigation_2eproto[11]); } + // =================================================================== class RemoveWaypointResponse::_Internal { public: }; -RemoveWaypointResponse::RemoveWaypointResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { +RemoveWaypointResponse::RemoveWaypointResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:viam.service.navigation.v1.RemoveWaypointResponse) } -RemoveWaypointResponse::RemoveWaypointResponse( - ::google::protobuf::Arena* arena, - const RemoveWaypointResponse& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - RemoveWaypointResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - +RemoveWaypointResponse::RemoveWaypointResponse(const RemoveWaypointResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.service.navigation.v1.RemoveWaypointResponse) } @@ -3426,233 +3163,236 @@ RemoveWaypointResponse::RemoveWaypointResponse( +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RemoveWaypointResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RemoveWaypointResponse::GetClassData() const { return &_class_data_; } + + + -::google::protobuf::Metadata RemoveWaypointResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata RemoveWaypointResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_getter, &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_once, file_level_metadata_service_2fnavigation_2fv1_2fnavigation_2eproto[12]); } + // =================================================================== class GetObstaclesRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetObstaclesRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const GetObstaclesRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetObstaclesRequest* msg); }; -const ::google::protobuf::Struct& GetObstaclesRequest::_Internal::extra(const GetObstaclesRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetObstaclesRequest::_Internal::extra(const GetObstaclesRequest* msg) { + return *msg->extra_; } void GetObstaclesRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -GetObstaclesRequest::GetObstaclesRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetObstaclesRequest::GetObstaclesRequest(::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.navigation.v1.GetObstaclesRequest) } -inline PROTOBUF_NDEBUG_INLINE GetObstaclesRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -GetObstaclesRequest::GetObstaclesRequest( - ::google::protobuf::Arena* arena, - const GetObstaclesRequest& from) - : ::google::protobuf::Message(arena) { - GetObstaclesRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +GetObstaclesRequest::GetObstaclesRequest(const GetObstaclesRequest& 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.service.navigation.v1.GetObstaclesRequest) } -inline PROTOBUF_NDEBUG_INLINE GetObstaclesRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} -inline void GetObstaclesRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void GetObstaclesRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + GetObstaclesRequest::~GetObstaclesRequest() { // @@protoc_insertion_point(destructor:viam.service.navigation.v1.GetObstaclesRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetObstaclesRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void GetObstaclesRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetObstaclesRequest::Clear() { +void GetObstaclesRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.navigation.v1.GetObstaclesRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetObstaclesRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetObstaclesRequest::_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.service.navigation.v1.GetObstaclesRequest.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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 2, 1, 59, 7> GetObstaclesRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetObstaclesRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetObstaclesRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetObstaclesRequest, _impl_.name_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(GetObstaclesRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 1, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(GetObstaclesRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(GetObstaclesRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\56\4\0\0\0\0\0\0" - "viam.service.navigation.v1.GetObstaclesRequest" - "name" - }}, -}; - -::uint8_t* GetObstaclesRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetObstaclesRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.navigation.v1.GetObstaclesRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.navigation.v1.GetObstaclesRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.navigation.v1.GetObstaclesRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.navigation.v1.GetObstaclesRequest) return target; } -::size_t GetObstaclesRequest::ByteSizeLong() const { +size_t GetObstaclesRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.navigation.v1.GetObstaclesRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetObstaclesRequest::_class_data_ = { - GetObstaclesRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetObstaclesRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetObstaclesRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetObstaclesRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetObstaclesRequest::GetClassData() const { return &_class_data_; } + +void GetObstaclesRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetObstaclesRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.navigation.v1.GetObstaclesRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetObstaclesRequest::MergeFrom(const GetObstaclesRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.navigation.v1.GetObstaclesRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetObstaclesRequest::CopyFrom(const GetObstaclesRequest& from) { @@ -3662,28 +3402,28 @@ void GetObstaclesRequest::CopyFrom(const GetObstaclesRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetObstaclesRequest::IsInitialized() const { +bool GetObstaclesRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetObstaclesRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetObstaclesRequest::InternalSwap(GetObstaclesRequest* PROTOBUF_RESTRICT other) { +void GetObstaclesRequest::InternalSwap(GetObstaclesRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.extra_, other->_impl_.extra_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(extra_, other->extra_); } -::google::protobuf::Metadata GetObstaclesRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetObstaclesRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_getter, &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_once, file_level_metadata_service_2fnavigation_2fv1_2fnavigation_2eproto[13]); } + // =================================================================== class GetObstaclesResponse::_Internal { @@ -3691,159 +3431,155 @@ class GetObstaclesResponse::_Internal { }; void GetObstaclesResponse::clear_obstacles() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.obstacles_.Clear(); + obstacles_.Clear(); } -GetObstaclesResponse::GetObstaclesResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetObstaclesResponse::GetObstaclesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + obstacles_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.service.navigation.v1.GetObstaclesResponse) } -inline PROTOBUF_NDEBUG_INLINE GetObstaclesResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : obstacles_{visibility, arena, from.obstacles_}, - _cached_size_{0} {} - -GetObstaclesResponse::GetObstaclesResponse( - ::google::protobuf::Arena* arena, - const GetObstaclesResponse& from) - : ::google::protobuf::Message(arena) { - GetObstaclesResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetObstaclesResponse::GetObstaclesResponse(const GetObstaclesResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + obstacles_(from.obstacles_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.service.navigation.v1.GetObstaclesResponse) } -inline PROTOBUF_NDEBUG_INLINE GetObstaclesResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : obstacles_{visibility, arena}, - _cached_size_{0} {} -inline void GetObstaclesResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetObstaclesResponse::SharedCtor() { } + GetObstaclesResponse::~GetObstaclesResponse() { // @@protoc_insertion_point(destructor:viam.service.navigation.v1.GetObstaclesResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetObstaclesResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void GetObstaclesResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetObstaclesResponse::Clear() { +void GetObstaclesResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.navigation.v1.GetObstaclesResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.obstacles_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetObstaclesResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + obstacles_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetObstaclesResponse::_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) { + // repeated .viam.common.v1.GeoGeometry obstacles = 1 [json_name = "obstacles"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_obstacles(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetObstaclesResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetObstaclesResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.common.v1.GeoGeometry obstacles = 1 [json_name = "obstacles"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetObstaclesResponse, _impl_.obstacles_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.common.v1.GeoGeometry obstacles = 1 [json_name = "obstacles"]; - {PROTOBUF_FIELD_OFFSET(GetObstaclesResponse, _impl_.obstacles_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::common::v1::GeoGeometry>()}, - }}, {{ - }}, -}; - -::uint8_t* GetObstaclesResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetObstaclesResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.navigation.v1.GetObstaclesResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .viam.common.v1.GeoGeometry obstacles = 1 [json_name = "obstacles"]; for (unsigned i = 0, n = static_cast(this->_internal_obstacles_size()); i < n; i++) { - const auto& repfield = this->_internal_obstacles().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_obstacles(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.navigation.v1.GetObstaclesResponse) return target; } -::size_t GetObstaclesResponse::ByteSizeLong() const { +size_t GetObstaclesResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.navigation.v1.GetObstaclesResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.common.v1.GeoGeometry obstacles = 1 [json_name = "obstacles"]; total_size += 1UL * this->_internal_obstacles_size(); - for (const auto& msg : this->_internal_obstacles()) { + for (const auto& msg : this->obstacles_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetObstaclesResponse::_class_data_ = { - GetObstaclesResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetObstaclesResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetObstaclesResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetObstaclesResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetObstaclesResponse::GetClassData() const { return &_class_data_; } + +void GetObstaclesResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetObstaclesResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.navigation.v1.GetObstaclesResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetObstaclesResponse::MergeFrom(const GetObstaclesResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.navigation.v1.GetObstaclesResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_obstacles()->MergeFrom( - from._internal_obstacles()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + obstacles_.MergeFrom(from.obstacles_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetObstaclesResponse::CopyFrom(const GetObstaclesResponse& from) { @@ -3853,24 +3589,22 @@ void GetObstaclesResponse::CopyFrom(const GetObstaclesResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetObstaclesResponse::IsInitialized() const { +bool GetObstaclesResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetObstaclesResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetObstaclesResponse::InternalSwap(GetObstaclesResponse* PROTOBUF_RESTRICT other) { +void GetObstaclesResponse::InternalSwap(GetObstaclesResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.obstacles_.InternalSwap(&other->_impl_.obstacles_); + obstacles_.InternalSwap(&other->obstacles_); } -::google::protobuf::Metadata GetObstaclesResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetObstaclesResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_getter, &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_once, file_level_metadata_service_2fnavigation_2fv1_2fnavigation_2eproto[14]); } + // =================================================================== class Path::_Internal { @@ -3878,189 +3612,199 @@ class Path::_Internal { }; void Path::clear_geopoints() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.geopoints_.Clear(); + geopoints_.Clear(); } -Path::Path(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Path::Path(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + geopoints_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.service.navigation.v1.Path) } -inline PROTOBUF_NDEBUG_INLINE Path::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : geopoints_{visibility, arena, from.geopoints_}, - destination_waypoint_id_(arena, from.destination_waypoint_id_), - _cached_size_{0} {} - -Path::Path( - ::google::protobuf::Arena* arena, - const Path& from) - : ::google::protobuf::Message(arena) { - Path* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +Path::Path(const Path& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + geopoints_(from.geopoints_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + destination_waypoint_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + destination_waypoint_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_destination_waypoint_id().empty()) { + destination_waypoint_id_.Set(from._internal_destination_waypoint_id(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.service.navigation.v1.Path) } -inline PROTOBUF_NDEBUG_INLINE Path::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : geopoints_{visibility, arena}, - destination_waypoint_id_(arena), - _cached_size_{0} {} -inline void Path::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void Path::SharedCtor() { +destination_waypoint_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + destination_waypoint_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + Path::~Path() { // @@protoc_insertion_point(destructor:viam.service.navigation.v1.Path) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Path::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.destination_waypoint_id_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + destination_waypoint_id_.Destroy(); +} + +void Path::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void Path::Clear() { +void Path::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.navigation.v1.Path) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.geopoints_.Clear(); - _impl_.destination_waypoint_id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Path::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + geopoints_.Clear(); + destination_waypoint_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Path::_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 destination_waypoint_id = 1 [json_name = "destinationWaypointId"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_destination_waypoint_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.navigation.v1.Path.destination_waypoint_id")); + } else + goto handle_unusual; + continue; + // repeated .viam.common.v1.GeoPoint geopoints = 2 [json_name = "geopoints"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_geopoints(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 63, 2> Path::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Path_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.common.v1.GeoPoint geopoints = 2 [json_name = "geopoints"]; - {::_pbi::TcParser::FastMtR1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(Path, _impl_.geopoints_)}}, - // string destination_waypoint_id = 1 [json_name = "destinationWaypointId"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Path, _impl_.destination_waypoint_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string destination_waypoint_id = 1 [json_name = "destinationWaypointId"]; - {PROTOBUF_FIELD_OFFSET(Path, _impl_.destination_waypoint_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated .viam.common.v1.GeoPoint geopoints = 2 [json_name = "geopoints"]; - {PROTOBUF_FIELD_OFFSET(Path, _impl_.geopoints_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::common::v1::GeoPoint>()}, - }}, {{ - "\37\27\0\0\0\0\0\0" - "viam.service.navigation.v1.Path" - "destination_waypoint_id" - }}, -}; - -::uint8_t* Path::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Path::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.navigation.v1.Path) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string destination_waypoint_id = 1 [json_name = "destinationWaypointId"]; if (!this->_internal_destination_waypoint_id().empty()) { - const std::string& _s = this->_internal_destination_waypoint_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.navigation.v1.Path.destination_waypoint_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_destination_waypoint_id().data(), static_cast(this->_internal_destination_waypoint_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.navigation.v1.Path.destination_waypoint_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_destination_waypoint_id(), target); } // repeated .viam.common.v1.GeoPoint geopoints = 2 [json_name = "geopoints"]; for (unsigned i = 0, n = static_cast(this->_internal_geopoints_size()); i < n; i++) { - const auto& repfield = this->_internal_geopoints().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_geopoints(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.navigation.v1.Path) return target; } -::size_t Path::ByteSizeLong() const { +size_t Path::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.navigation.v1.Path) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.common.v1.GeoPoint geopoints = 2 [json_name = "geopoints"]; total_size += 1UL * this->_internal_geopoints_size(); - for (const auto& msg : this->_internal_geopoints()) { + for (const auto& msg : this->geopoints_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // string destination_waypoint_id = 1 [json_name = "destinationWaypointId"]; if (!this->_internal_destination_waypoint_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_destination_waypoint_id()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_destination_waypoint_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Path::_class_data_ = { - Path::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Path::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Path::MergeImpl }; -const ::google::protobuf::Message::ClassData* Path::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Path::GetClassData() const { return &_class_data_; } + +void Path::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Path::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.navigation.v1.Path) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Path::MergeFrom(const Path& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.navigation.v1.Path) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_geopoints()->MergeFrom( - from._internal_geopoints()); + geopoints_.MergeFrom(from.geopoints_); if (!from._internal_destination_waypoint_id().empty()) { - _this->_internal_set_destination_waypoint_id(from._internal_destination_waypoint_id()); + _internal_set_destination_waypoint_id(from._internal_destination_waypoint_id()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Path::CopyFrom(const Path& from) { @@ -4070,245 +3814,240 @@ void Path::CopyFrom(const Path& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Path::IsInitialized() const { +bool Path::IsInitialized() const { return true; } -::_pbi::CachedSize* Path::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Path::InternalSwap(Path* PROTOBUF_RESTRICT other) { +void Path::InternalSwap(Path* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.geopoints_.InternalSwap(&other->_impl_.geopoints_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.destination_waypoint_id_, &other->_impl_.destination_waypoint_id_, arena); + geopoints_.InternalSwap(&other->geopoints_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &destination_waypoint_id_, lhs_arena, + &other->destination_waypoint_id_, rhs_arena + ); } -::google::protobuf::Metadata Path::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Path::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_getter, &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_once, file_level_metadata_service_2fnavigation_2fv1_2fnavigation_2eproto[15]); } + // =================================================================== class GetPathsRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetPathsRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const GetPathsRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetPathsRequest* msg); }; -const ::google::protobuf::Struct& GetPathsRequest::_Internal::extra(const GetPathsRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetPathsRequest::_Internal::extra(const GetPathsRequest* msg) { + return *msg->extra_; } void GetPathsRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -GetPathsRequest::GetPathsRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetPathsRequest::GetPathsRequest(::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.navigation.v1.GetPathsRequest) } -inline PROTOBUF_NDEBUG_INLINE GetPathsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -GetPathsRequest::GetPathsRequest( - ::google::protobuf::Arena* arena, - const GetPathsRequest& from) - : ::google::protobuf::Message(arena) { - GetPathsRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +GetPathsRequest::GetPathsRequest(const GetPathsRequest& 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.service.navigation.v1.GetPathsRequest) } -inline PROTOBUF_NDEBUG_INLINE GetPathsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} -inline void GetPathsRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void GetPathsRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + GetPathsRequest::~GetPathsRequest() { // @@protoc_insertion_point(destructor:viam.service.navigation.v1.GetPathsRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetPathsRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void GetPathsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetPathsRequest::Clear() { +void GetPathsRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.navigation.v1.GetPathsRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetPathsRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPathsRequest::_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.service.navigation.v1.GetPathsRequest.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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 2, 1, 55, 7> GetPathsRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetPathsRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetPathsRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetPathsRequest, _impl_.name_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(GetPathsRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 1, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(GetPathsRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(GetPathsRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\52\4\0\0\0\0\0\0" - "viam.service.navigation.v1.GetPathsRequest" - "name" - }}, -}; - -::uint8_t* GetPathsRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetPathsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.navigation.v1.GetPathsRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.navigation.v1.GetPathsRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.navigation.v1.GetPathsRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.navigation.v1.GetPathsRequest) return target; } -::size_t GetPathsRequest::ByteSizeLong() const { +size_t GetPathsRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.navigation.v1.GetPathsRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetPathsRequest::_class_data_ = { - GetPathsRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPathsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetPathsRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetPathsRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPathsRequest::GetClassData() const { return &_class_data_; } + +void GetPathsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetPathsRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.navigation.v1.GetPathsRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetPathsRequest::MergeFrom(const GetPathsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.navigation.v1.GetPathsRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetPathsRequest::CopyFrom(const GetPathsRequest& from) { @@ -4318,184 +4057,181 @@ void GetPathsRequest::CopyFrom(const GetPathsRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetPathsRequest::IsInitialized() const { +bool GetPathsRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetPathsRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetPathsRequest::InternalSwap(GetPathsRequest* PROTOBUF_RESTRICT other) { +void GetPathsRequest::InternalSwap(GetPathsRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.extra_, other->_impl_.extra_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(extra_, other->extra_); } -::google::protobuf::Metadata GetPathsRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetPathsRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_getter, &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_once, file_level_metadata_service_2fnavigation_2fv1_2fnavigation_2eproto[16]); } + // =================================================================== class GetPathsResponse::_Internal { public: }; -GetPathsResponse::GetPathsResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetPathsResponse::GetPathsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + paths_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.service.navigation.v1.GetPathsResponse) } -inline PROTOBUF_NDEBUG_INLINE GetPathsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : paths_{visibility, arena, from.paths_}, - _cached_size_{0} {} - -GetPathsResponse::GetPathsResponse( - ::google::protobuf::Arena* arena, - const GetPathsResponse& from) - : ::google::protobuf::Message(arena) { - GetPathsResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetPathsResponse::GetPathsResponse(const GetPathsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + paths_(from.paths_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.service.navigation.v1.GetPathsResponse) } -inline PROTOBUF_NDEBUG_INLINE GetPathsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : paths_{visibility, arena}, - _cached_size_{0} {} -inline void GetPathsResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetPathsResponse::SharedCtor() { } + GetPathsResponse::~GetPathsResponse() { // @@protoc_insertion_point(destructor:viam.service.navigation.v1.GetPathsResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetPathsResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void GetPathsResponse::Clear() { +void GetPathsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetPathsResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.navigation.v1.GetPathsResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.paths_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetPathsResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + paths_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPathsResponse::_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) { + // repeated .viam.service.navigation.v1.Path paths = 1 [json_name = "paths"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_paths(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetPathsResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetPathsResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.service.navigation.v1.Path paths = 1 [json_name = "paths"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetPathsResponse, _impl_.paths_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.service.navigation.v1.Path paths = 1 [json_name = "paths"]; - {PROTOBUF_FIELD_OFFSET(GetPathsResponse, _impl_.paths_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::service::navigation::v1::Path>()}, - }}, {{ - }}, -}; - -::uint8_t* GetPathsResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetPathsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.navigation.v1.GetPathsResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .viam.service.navigation.v1.Path paths = 1 [json_name = "paths"]; for (unsigned i = 0, n = static_cast(this->_internal_paths_size()); i < n; i++) { - const auto& repfield = this->_internal_paths().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_paths(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.navigation.v1.GetPathsResponse) return target; } -::size_t GetPathsResponse::ByteSizeLong() const { +size_t GetPathsResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.navigation.v1.GetPathsResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.service.navigation.v1.Path paths = 1 [json_name = "paths"]; total_size += 1UL * this->_internal_paths_size(); - for (const auto& msg : this->_internal_paths()) { + for (const auto& msg : this->paths_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetPathsResponse::_class_data_ = { - GetPathsResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPathsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetPathsResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetPathsResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPathsResponse::GetClassData() const { return &_class_data_; } + +void GetPathsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetPathsResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.navigation.v1.GetPathsResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetPathsResponse::MergeFrom(const GetPathsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.navigation.v1.GetPathsResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_paths()->MergeFrom( - from._internal_paths()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + paths_.MergeFrom(from.paths_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetPathsResponse::CopyFrom(const GetPathsResponse& from) { @@ -4505,185 +4241,187 @@ void GetPathsResponse::CopyFrom(const GetPathsResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetPathsResponse::IsInitialized() const { +bool GetPathsResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetPathsResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetPathsResponse::InternalSwap(GetPathsResponse* PROTOBUF_RESTRICT other) { +void GetPathsResponse::InternalSwap(GetPathsResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.paths_.InternalSwap(&other->_impl_.paths_); + paths_.InternalSwap(&other->paths_); } -::google::protobuf::Metadata GetPathsResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetPathsResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_getter, &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_once, file_level_metadata_service_2fnavigation_2fv1_2fnavigation_2eproto[17]); } + // =================================================================== class GetPropertiesRequest::_Internal { public: }; -GetPropertiesRequest::GetPropertiesRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetPropertiesRequest::GetPropertiesRequest(::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.navigation.v1.GetPropertiesRequest) } -inline PROTOBUF_NDEBUG_INLINE GetPropertiesRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : name_(arena, from.name_), - _cached_size_{0} {} - -GetPropertiesRequest::GetPropertiesRequest( - ::google::protobuf::Arena* arena, - const GetPropertiesRequest& from) - : ::google::protobuf::Message(arena) { - GetPropertiesRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetPropertiesRequest::GetPropertiesRequest(const GetPropertiesRequest& 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()); + } // @@protoc_insertion_point(copy_constructor:viam.service.navigation.v1.GetPropertiesRequest) } -inline PROTOBUF_NDEBUG_INLINE GetPropertiesRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : name_(arena), - _cached_size_{0} {} -inline void GetPropertiesRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetPropertiesRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + GetPropertiesRequest::~GetPropertiesRequest() { // @@protoc_insertion_point(destructor:viam.service.navigation.v1.GetPropertiesRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetPropertiesRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); } -PROTOBUF_NOINLINE void GetPropertiesRequest::Clear() { +void GetPropertiesRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetPropertiesRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.navigation.v1.GetPropertiesRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetPropertiesRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPropertiesRequest::_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.service.navigation.v1.GetPropertiesRequest.name")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 60, 2> GetPropertiesRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetPropertiesRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetPropertiesRequest, _impl_.name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(GetPropertiesRequest, _impl_.name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\57\4\0\0\0\0\0\0" - "viam.service.navigation.v1.GetPropertiesRequest" - "name" - }}, -}; - -::uint8_t* GetPropertiesRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetPropertiesRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.navigation.v1.GetPropertiesRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.navigation.v1.GetPropertiesRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.navigation.v1.GetPropertiesRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.navigation.v1.GetPropertiesRequest) return target; } -::size_t GetPropertiesRequest::ByteSizeLong() const { +size_t GetPropertiesRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.navigation.v1.GetPropertiesRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetPropertiesRequest::_class_data_ = { - GetPropertiesRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPropertiesRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetPropertiesRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetPropertiesRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPropertiesRequest::GetClassData() const { return &_class_data_; } + +void GetPropertiesRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetPropertiesRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.navigation.v1.GetPropertiesRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetPropertiesRequest::MergeFrom(const GetPropertiesRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.navigation.v1.GetPropertiesRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetPropertiesRequest::CopyFrom(const GetPropertiesRequest& from) { @@ -4693,169 +4431,176 @@ void GetPropertiesRequest::CopyFrom(const GetPropertiesRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetPropertiesRequest::IsInitialized() const { +bool GetPropertiesRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetPropertiesRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetPropertiesRequest::InternalSwap(GetPropertiesRequest* PROTOBUF_RESTRICT other) { +void GetPropertiesRequest::InternalSwap(GetPropertiesRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); } -::google::protobuf::Metadata GetPropertiesRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetPropertiesRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_getter, &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_once, file_level_metadata_service_2fnavigation_2fv1_2fnavigation_2eproto[18]); } + // =================================================================== class GetPropertiesResponse::_Internal { public: }; -GetPropertiesResponse::GetPropertiesResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetPropertiesResponse::GetPropertiesResponse(::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.navigation.v1.GetPropertiesResponse) } -GetPropertiesResponse::GetPropertiesResponse( - ::google::protobuf::Arena* arena, const GetPropertiesResponse& from) - : GetPropertiesResponse(arena) { - MergeFrom(from); +GetPropertiesResponse::GetPropertiesResponse(const GetPropertiesResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + map_type_ = from.map_type_; + // @@protoc_insertion_point(copy_constructor:viam.service.navigation.v1.GetPropertiesResponse) } -inline PROTOBUF_NDEBUG_INLINE GetPropertiesResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void GetPropertiesResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.map_type_ = {}; +inline void GetPropertiesResponse::SharedCtor() { +map_type_ = 0; } + GetPropertiesResponse::~GetPropertiesResponse() { // @@protoc_insertion_point(destructor:viam.service.navigation.v1.GetPropertiesResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetPropertiesResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void GetPropertiesResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetPropertiesResponse::Clear() { +void GetPropertiesResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.navigation.v1.GetPropertiesResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.map_type_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetPropertiesResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + map_type_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPropertiesResponse::_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.service.navigation.v1.MapType map_type = 1 [json_name = "mapType"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_map_type(static_cast<::viam::service::navigation::v1::MapType>(val)); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> GetPropertiesResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetPropertiesResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.service.navigation.v1.MapType map_type = 1 [json_name = "mapType"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(GetPropertiesResponse, _impl_.map_type_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.map_type_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.service.navigation.v1.MapType map_type = 1 [json_name = "mapType"]; - {PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.map_type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* GetPropertiesResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetPropertiesResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.navigation.v1.GetPropertiesResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // .viam.service.navigation.v1.MapType map_type = 1 [json_name = "mapType"]; if (this->_internal_map_type() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_map_type(), target); + 1, this->_internal_map_type(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.navigation.v1.GetPropertiesResponse) return target; } -::size_t GetPropertiesResponse::ByteSizeLong() const { +size_t GetPropertiesResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.navigation.v1.GetPropertiesResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .viam.service.navigation.v1.MapType map_type = 1 [json_name = "mapType"]; if (this->_internal_map_type() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_map_type()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_map_type()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetPropertiesResponse::_class_data_ = { - GetPropertiesResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPropertiesResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetPropertiesResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetPropertiesResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPropertiesResponse::GetClassData() const { return &_class_data_; } + +void GetPropertiesResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetPropertiesResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.navigation.v1.GetPropertiesResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetPropertiesResponse::MergeFrom(const GetPropertiesResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.navigation.v1.GetPropertiesResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_map_type() != 0) { - _this->_internal_set_map_type(from._internal_map_type()); + _internal_set_map_type(from._internal_map_type()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetPropertiesResponse::CopyFrom(const GetPropertiesResponse& from) { @@ -4865,32 +4610,109 @@ void GetPropertiesResponse::CopyFrom(const GetPropertiesResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetPropertiesResponse::IsInitialized() const { +bool GetPropertiesResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetPropertiesResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetPropertiesResponse::InternalSwap(GetPropertiesResponse* PROTOBUF_RESTRICT other) { +void GetPropertiesResponse::InternalSwap(GetPropertiesResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.map_type_, other->_impl_.map_type_); + swap(map_type_, other->map_type_); } -::google::protobuf::Metadata GetPropertiesResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetPropertiesResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_getter, &descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto_once, file_level_metadata_service_2fnavigation_2fv1_2fnavigation_2eproto[19]); } + // @@protoc_insertion_point(namespace_scope) } // namespace v1 } // namespace navigation } // namespace service } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::service::navigation::v1::GetModeRequest* +Arena::CreateMaybeMessage< ::viam::service::navigation::v1::GetModeRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::navigation::v1::GetModeRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::navigation::v1::GetModeResponse* +Arena::CreateMaybeMessage< ::viam::service::navigation::v1::GetModeResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::navigation::v1::GetModeResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::navigation::v1::SetModeRequest* +Arena::CreateMaybeMessage< ::viam::service::navigation::v1::SetModeRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::navigation::v1::SetModeRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::navigation::v1::SetModeResponse* +Arena::CreateMaybeMessage< ::viam::service::navigation::v1::SetModeResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::navigation::v1::SetModeResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::navigation::v1::Waypoint* +Arena::CreateMaybeMessage< ::viam::service::navigation::v1::Waypoint >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::navigation::v1::Waypoint >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::navigation::v1::GetLocationRequest* +Arena::CreateMaybeMessage< ::viam::service::navigation::v1::GetLocationRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::navigation::v1::GetLocationRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::navigation::v1::GetLocationResponse* +Arena::CreateMaybeMessage< ::viam::service::navigation::v1::GetLocationResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::navigation::v1::GetLocationResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::navigation::v1::GetWaypointsRequest* +Arena::CreateMaybeMessage< ::viam::service::navigation::v1::GetWaypointsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::navigation::v1::GetWaypointsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::navigation::v1::GetWaypointsResponse* +Arena::CreateMaybeMessage< ::viam::service::navigation::v1::GetWaypointsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::navigation::v1::GetWaypointsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::navigation::v1::AddWaypointRequest* +Arena::CreateMaybeMessage< ::viam::service::navigation::v1::AddWaypointRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::navigation::v1::AddWaypointRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::navigation::v1::AddWaypointResponse* +Arena::CreateMaybeMessage< ::viam::service::navigation::v1::AddWaypointResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::navigation::v1::AddWaypointResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::navigation::v1::RemoveWaypointRequest* +Arena::CreateMaybeMessage< ::viam::service::navigation::v1::RemoveWaypointRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::navigation::v1::RemoveWaypointRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::navigation::v1::RemoveWaypointResponse* +Arena::CreateMaybeMessage< ::viam::service::navigation::v1::RemoveWaypointResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::navigation::v1::RemoveWaypointResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::navigation::v1::GetObstaclesRequest* +Arena::CreateMaybeMessage< ::viam::service::navigation::v1::GetObstaclesRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::navigation::v1::GetObstaclesRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::navigation::v1::GetObstaclesResponse* +Arena::CreateMaybeMessage< ::viam::service::navigation::v1::GetObstaclesResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::navigation::v1::GetObstaclesResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::navigation::v1::Path* +Arena::CreateMaybeMessage< ::viam::service::navigation::v1::Path >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::navigation::v1::Path >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::navigation::v1::GetPathsRequest* +Arena::CreateMaybeMessage< ::viam::service::navigation::v1::GetPathsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::navigation::v1::GetPathsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::navigation::v1::GetPathsResponse* +Arena::CreateMaybeMessage< ::viam::service::navigation::v1::GetPathsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::navigation::v1::GetPathsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::navigation::v1::GetPropertiesRequest* +Arena::CreateMaybeMessage< ::viam::service::navigation::v1::GetPropertiesRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::navigation::v1::GetPropertiesRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::navigation::v1::GetPropertiesResponse* +Arena::CreateMaybeMessage< ::viam::service::navigation::v1::GetPropertiesResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::navigation::v1::GetPropertiesResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/service/navigation/v1/navigation.pb.h b/src/viam/api/service/navigation/v1/navigation.pb.h index 6fdd59b0c..e178c1f71 100644 --- a/src/viam/api/service/navigation/v1/navigation.pb.h +++ b/src/viam/api/service/navigation/v1/navigation.pb.h @@ -1,65 +1,54 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: service/navigation/v1/navigation.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_service_2fnavigation_2fv1_2fnavigation_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_service_2fnavigation_2fv1_2fnavigation_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_service_2fnavigation_2fv1_2fnavigation_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_service_2fnavigation_2fv1_2fnavigation_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_bases.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/generated_enum_reflection.h" -#include "google/protobuf/unknown_field_set.h" + +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include #include "common/v1/common.pb.h" #include "google/api/annotations.pb.h" -#include "google/protobuf/struct.pb.h" +#include // @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - +#include #define PROTOBUF_INTERNAL_EXPORT_service_2fnavigation_2fv1_2fnavigation_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_service_2fnavigation_2fv1_2fnavigation_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_service_2fnavigation_2fv1_2fnavigation_2eproto; namespace viam { namespace service { namespace navigation { @@ -128,113 +117,110 @@ extern WaypointDefaultTypeInternal _Waypoint_default_instance_; } // namespace navigation } // namespace service } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::service::navigation::v1::AddWaypointRequest* Arena::CreateMaybeMessage<::viam::service::navigation::v1::AddWaypointRequest>(Arena*); +template<> ::viam::service::navigation::v1::AddWaypointResponse* Arena::CreateMaybeMessage<::viam::service::navigation::v1::AddWaypointResponse>(Arena*); +template<> ::viam::service::navigation::v1::GetLocationRequest* Arena::CreateMaybeMessage<::viam::service::navigation::v1::GetLocationRequest>(Arena*); +template<> ::viam::service::navigation::v1::GetLocationResponse* Arena::CreateMaybeMessage<::viam::service::navigation::v1::GetLocationResponse>(Arena*); +template<> ::viam::service::navigation::v1::GetModeRequest* Arena::CreateMaybeMessage<::viam::service::navigation::v1::GetModeRequest>(Arena*); +template<> ::viam::service::navigation::v1::GetModeResponse* Arena::CreateMaybeMessage<::viam::service::navigation::v1::GetModeResponse>(Arena*); +template<> ::viam::service::navigation::v1::GetObstaclesRequest* Arena::CreateMaybeMessage<::viam::service::navigation::v1::GetObstaclesRequest>(Arena*); +template<> ::viam::service::navigation::v1::GetObstaclesResponse* Arena::CreateMaybeMessage<::viam::service::navigation::v1::GetObstaclesResponse>(Arena*); +template<> ::viam::service::navigation::v1::GetPathsRequest* Arena::CreateMaybeMessage<::viam::service::navigation::v1::GetPathsRequest>(Arena*); +template<> ::viam::service::navigation::v1::GetPathsResponse* Arena::CreateMaybeMessage<::viam::service::navigation::v1::GetPathsResponse>(Arena*); +template<> ::viam::service::navigation::v1::GetPropertiesRequest* Arena::CreateMaybeMessage<::viam::service::navigation::v1::GetPropertiesRequest>(Arena*); +template<> ::viam::service::navigation::v1::GetPropertiesResponse* Arena::CreateMaybeMessage<::viam::service::navigation::v1::GetPropertiesResponse>(Arena*); +template<> ::viam::service::navigation::v1::GetWaypointsRequest* Arena::CreateMaybeMessage<::viam::service::navigation::v1::GetWaypointsRequest>(Arena*); +template<> ::viam::service::navigation::v1::GetWaypointsResponse* Arena::CreateMaybeMessage<::viam::service::navigation::v1::GetWaypointsResponse>(Arena*); +template<> ::viam::service::navigation::v1::Path* Arena::CreateMaybeMessage<::viam::service::navigation::v1::Path>(Arena*); +template<> ::viam::service::navigation::v1::RemoveWaypointRequest* Arena::CreateMaybeMessage<::viam::service::navigation::v1::RemoveWaypointRequest>(Arena*); +template<> ::viam::service::navigation::v1::RemoveWaypointResponse* Arena::CreateMaybeMessage<::viam::service::navigation::v1::RemoveWaypointResponse>(Arena*); +template<> ::viam::service::navigation::v1::SetModeRequest* Arena::CreateMaybeMessage<::viam::service::navigation::v1::SetModeRequest>(Arena*); +template<> ::viam::service::navigation::v1::SetModeResponse* Arena::CreateMaybeMessage<::viam::service::navigation::v1::SetModeResponse>(Arena*); +template<> ::viam::service::navigation::v1::Waypoint* Arena::CreateMaybeMessage<::viam::service::navigation::v1::Waypoint>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace viam { namespace service { namespace navigation { namespace v1 { + enum MapType : int { MAP_TYPE_UNSPECIFIED = 0, MAP_TYPE_NONE = 1, MAP_TYPE_GPS = 2, - MapType_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - MapType_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), + MapType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + MapType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() }; - bool MapType_IsValid(int value); -extern const uint32_t MapType_internal_data_[]; -constexpr MapType MapType_MIN = static_cast(0); -constexpr MapType MapType_MAX = static_cast(2); -constexpr int MapType_ARRAYSIZE = 2 + 1; -const ::google::protobuf::EnumDescriptor* -MapType_descriptor(); -template -const std::string& MapType_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to MapType_Name()."); - return MapType_Name(static_cast(value)); -} -template <> -inline const std::string& MapType_Name(MapType value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool MapType_Parse(absl::string_view name, MapType* value) { - return ::google::protobuf::internal::ParseNamedEnum( - MapType_descriptor(), name, value); +constexpr MapType MapType_MIN = MAP_TYPE_UNSPECIFIED; +constexpr MapType MapType_MAX = MAP_TYPE_GPS; +constexpr int MapType_ARRAYSIZE = MapType_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* MapType_descriptor(); +template +inline const std::string& MapType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function MapType_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + MapType_descriptor(), enum_t_value); +} +inline bool MapType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, MapType* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + MapType_descriptor(), name, value); } enum Mode : int { MODE_UNSPECIFIED = 0, MODE_MANUAL = 1, MODE_WAYPOINT = 2, MODE_EXPLORE = 3, - Mode_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - Mode_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), + Mode_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + Mode_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() }; - bool Mode_IsValid(int value); -extern const uint32_t Mode_internal_data_[]; -constexpr Mode Mode_MIN = static_cast(0); -constexpr Mode Mode_MAX = static_cast(3); -constexpr int Mode_ARRAYSIZE = 3 + 1; -const ::google::protobuf::EnumDescriptor* -Mode_descriptor(); -template -const std::string& Mode_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to Mode_Name()."); - return Mode_Name(static_cast(value)); -} -template <> -inline const std::string& Mode_Name(Mode value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool Mode_Parse(absl::string_view name, Mode* value) { - return ::google::protobuf::internal::ParseNamedEnum( - Mode_descriptor(), name, value); +constexpr Mode Mode_MIN = MODE_UNSPECIFIED; +constexpr Mode Mode_MAX = MODE_EXPLORE; +constexpr int Mode_ARRAYSIZE = Mode_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Mode_descriptor(); +template +inline const std::string& Mode_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function Mode_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + Mode_descriptor(), enum_t_value); +} +inline bool Mode_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Mode* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + Mode_descriptor(), name, value); } - // =================================================================== - -// ------------------------------------------------------------------- - -class SetModeResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.service.navigation.v1.SetModeResponse) */ { +class GetModeRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.navigation.v1.GetModeRequest) */ { public: - inline SetModeResponse() : SetModeResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR SetModeResponse(::google::protobuf::internal::ConstantInitialized); + inline GetModeRequest() : GetModeRequest(nullptr) {} + ~GetModeRequest() override; + explicit PROTOBUF_CONSTEXPR GetModeRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline SetModeResponse(const SetModeResponse& from) - : SetModeResponse(nullptr, from) {} - SetModeResponse(SetModeResponse&& from) noexcept - : SetModeResponse() { + GetModeRequest(const GetModeRequest& from); + GetModeRequest(GetModeRequest&& from) noexcept + : GetModeRequest() { *this = ::std::move(from); } - inline SetModeResponse& operator=(const SetModeResponse& from) { + inline GetModeRequest& operator=(const GetModeRequest& from) { CopyFrom(from); return *this; } - inline SetModeResponse& operator=(SetModeResponse&& from) noexcept { + inline GetModeRequest& operator=(GetModeRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -244,133 +230,165 @@ class SetModeResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SetModeResponse& default_instance() { + static const GetModeRequest& default_instance() { return *internal_default_instance(); } - static inline const SetModeResponse* internal_default_instance() { - return reinterpret_cast( - &_SetModeResponse_default_instance_); + static inline const GetModeRequest* internal_default_instance() { + return reinterpret_cast( + &_GetModeRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 3; + 0; - friend void swap(SetModeResponse& a, SetModeResponse& b) { + friend void swap(GetModeRequest& a, GetModeRequest& b) { a.Swap(&b); } - inline void Swap(SetModeResponse* other) { + inline void Swap(GetModeRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SetModeResponse* other) { + void UnsafeArenaSwap(GetModeRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SetModeResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const SetModeResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const SetModeResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + GetModeRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetModeRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetModeRequest& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.navigation.v1.SetModeResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetModeRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.navigation.v1.GetModeRequest"; } protected: - explicit SetModeResponse(::google::protobuf::Arena* arena); - SetModeResponse(::google::protobuf::Arena* arena, const SetModeResponse& from); + explicit GetModeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.service.navigation.v1.SetModeResponse) + 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.service.navigation.v1.GetModeRequest) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + 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_service_2fnavigation_2fv1_2fnavigation_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class RemoveWaypointResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.service.navigation.v1.RemoveWaypointResponse) */ { +class GetModeResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.navigation.v1.GetModeResponse) */ { public: - inline RemoveWaypointResponse() : RemoveWaypointResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR RemoveWaypointResponse(::google::protobuf::internal::ConstantInitialized); + inline GetModeResponse() : GetModeResponse(nullptr) {} + ~GetModeResponse() override; + explicit PROTOBUF_CONSTEXPR GetModeResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline RemoveWaypointResponse(const RemoveWaypointResponse& from) - : RemoveWaypointResponse(nullptr, from) {} - RemoveWaypointResponse(RemoveWaypointResponse&& from) noexcept - : RemoveWaypointResponse() { + GetModeResponse(const GetModeResponse& from); + GetModeResponse(GetModeResponse&& from) noexcept + : GetModeResponse() { *this = ::std::move(from); } - inline RemoveWaypointResponse& operator=(const RemoveWaypointResponse& from) { + inline GetModeResponse& operator=(const GetModeResponse& from) { CopyFrom(from); return *this; } - inline RemoveWaypointResponse& operator=(RemoveWaypointResponse&& from) noexcept { + inline GetModeResponse& operator=(GetModeResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -380,134 +398,140 @@ class RemoveWaypointResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const RemoveWaypointResponse& default_instance() { + static const GetModeResponse& default_instance() { return *internal_default_instance(); } - static inline const RemoveWaypointResponse* internal_default_instance() { - return reinterpret_cast( - &_RemoveWaypointResponse_default_instance_); + static inline const GetModeResponse* internal_default_instance() { + return reinterpret_cast( + &_GetModeResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 12; + 1; - friend void swap(RemoveWaypointResponse& a, RemoveWaypointResponse& b) { + friend void swap(GetModeResponse& a, GetModeResponse& b) { a.Swap(&b); } - inline void Swap(RemoveWaypointResponse* other) { + inline void Swap(GetModeResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RemoveWaypointResponse* other) { + void UnsafeArenaSwap(GetModeResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - RemoveWaypointResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const RemoveWaypointResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const RemoveWaypointResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + GetModeResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetModeResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetModeResponse& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.navigation.v1.RemoveWaypointResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetModeResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.navigation.v1.GetModeResponse"; } protected: - explicit RemoveWaypointResponse(::google::protobuf::Arena* arena); - RemoveWaypointResponse(::google::protobuf::Arena* arena, const RemoveWaypointResponse& from); + explicit GetModeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.service.navigation.v1.RemoveWaypointResponse) + enum : int { + kModeFieldNumber = 1, + }; + // .viam.service.navigation.v1.Mode mode = 1 [json_name = "mode"]; + void clear_mode(); + ::viam::service::navigation::v1::Mode mode() const; + void set_mode(::viam::service::navigation::v1::Mode value); + private: + ::viam::service::navigation::v1::Mode _internal_mode() const; + void _internal_set_mode(::viam::service::navigation::v1::Mode value); + public: + + // @@protoc_insertion_point(class_scope:viam.service.navigation.v1.GetModeResponse) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + int mode_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fnavigation_2fv1_2fnavigation_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetPropertiesResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.navigation.v1.GetPropertiesResponse) */ { +class SetModeRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.navigation.v1.SetModeRequest) */ { public: - inline GetPropertiesResponse() : GetPropertiesResponse(nullptr) {} - ~GetPropertiesResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetPropertiesResponse(::google::protobuf::internal::ConstantInitialized); + inline SetModeRequest() : SetModeRequest(nullptr) {} + ~SetModeRequest() override; + explicit PROTOBUF_CONSTEXPR SetModeRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetPropertiesResponse(const GetPropertiesResponse& from) - : GetPropertiesResponse(nullptr, from) {} - GetPropertiesResponse(GetPropertiesResponse&& from) noexcept - : GetPropertiesResponse() { + SetModeRequest(const SetModeRequest& from); + SetModeRequest(SetModeRequest&& from) noexcept + : SetModeRequest() { *this = ::std::move(from); } - inline GetPropertiesResponse& operator=(const GetPropertiesResponse& from) { + inline SetModeRequest& operator=(const SetModeRequest& from) { CopyFrom(from); return *this; } - inline GetPropertiesResponse& operator=(GetPropertiesResponse&& from) noexcept { + inline SetModeRequest& operator=(SetModeRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -517,172 +541,175 @@ class GetPropertiesResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetPropertiesResponse& default_instance() { + static const SetModeRequest& default_instance() { return *internal_default_instance(); } - static inline const GetPropertiesResponse* internal_default_instance() { - return reinterpret_cast( - &_GetPropertiesResponse_default_instance_); + static inline const SetModeRequest* internal_default_instance() { + return reinterpret_cast( + &_SetModeRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 19; + 2; - friend void swap(GetPropertiesResponse& a, GetPropertiesResponse& b) { + friend void swap(SetModeRequest& a, SetModeRequest& b) { a.Swap(&b); } - inline void Swap(GetPropertiesResponse* other) { + inline void Swap(SetModeRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetPropertiesResponse* other) { + void UnsafeArenaSwap(SetModeRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetPropertiesResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetPropertiesResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetPropertiesResponse& from) { - GetPropertiesResponse::MergeImpl(*this, from); + SetModeRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SetModeRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const SetModeRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetPropertiesResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(SetModeRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.navigation.v1.GetPropertiesResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.navigation.v1.SetModeRequest"; } protected: - explicit GetPropertiesResponse(::google::protobuf::Arena* arena); - GetPropertiesResponse(::google::protobuf::Arena* arena, const GetPropertiesResponse& from); + explicit SetModeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kMapTypeFieldNumber = 1, + kNameFieldNumber = 1, + kExtraFieldNumber = 99, + kModeFieldNumber = 2, }; - // .viam.service.navigation.v1.MapType map_type = 1 [json_name = "mapType"]; - void clear_map_type() ; - ::viam::service::navigation::v1::MapType map_type() const; - void set_map_type(::viam::service::navigation::v1::MapType value); + // 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: - ::viam::service::navigation::v1::MapType _internal_map_type() const; - void _internal_set_map_type(::viam::service::navigation::v1::MapType value); + 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(); + // .viam.service.navigation.v1.Mode mode = 2 [json_name = "mode"]; + void clear_mode(); + ::viam::service::navigation::v1::Mode mode() const; + void set_mode(::viam::service::navigation::v1::Mode value); + private: + ::viam::service::navigation::v1::Mode _internal_mode() const; + void _internal_set_mode(::viam::service::navigation::v1::Mode value); public: - // @@protoc_insertion_point(class_scope:viam.service.navigation.v1.GetPropertiesResponse) + + // @@protoc_insertion_point(class_scope:viam.service.navigation.v1.SetModeRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - int map_type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + 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_; + int mode_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fnavigation_2fv1_2fnavigation_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetPropertiesRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.navigation.v1.GetPropertiesRequest) */ { +class SetModeResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.service.navigation.v1.SetModeResponse) */ { public: - inline GetPropertiesRequest() : GetPropertiesRequest(nullptr) {} - ~GetPropertiesRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetPropertiesRequest(::google::protobuf::internal::ConstantInitialized); + inline SetModeResponse() : SetModeResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR SetModeResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetPropertiesRequest(const GetPropertiesRequest& from) - : GetPropertiesRequest(nullptr, from) {} - GetPropertiesRequest(GetPropertiesRequest&& from) noexcept - : GetPropertiesRequest() { + SetModeResponse(const SetModeResponse& from); + SetModeResponse(SetModeResponse&& from) noexcept + : SetModeResponse() { *this = ::std::move(from); } - inline GetPropertiesRequest& operator=(const GetPropertiesRequest& from) { + inline SetModeResponse& operator=(const SetModeResponse& from) { CopyFrom(from); return *this; } - inline GetPropertiesRequest& operator=(GetPropertiesRequest&& from) noexcept { + inline SetModeResponse& operator=(SetModeResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -692,178 +719,114 @@ class GetPropertiesRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetPropertiesRequest& default_instance() { + static const SetModeResponse& default_instance() { return *internal_default_instance(); } - static inline const GetPropertiesRequest* internal_default_instance() { - return reinterpret_cast( - &_GetPropertiesRequest_default_instance_); + static inline const SetModeResponse* internal_default_instance() { + return reinterpret_cast( + &_SetModeResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 18; + 3; - friend void swap(GetPropertiesRequest& a, GetPropertiesRequest& b) { + friend void swap(SetModeResponse& a, SetModeResponse& b) { a.Swap(&b); } - inline void Swap(GetPropertiesRequest* other) { + inline void Swap(SetModeResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetPropertiesRequest* other) { + void UnsafeArenaSwap(SetModeResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetPropertiesRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SetModeResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetPropertiesRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetPropertiesRequest& from) { - GetPropertiesRequest::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const SetModeResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const SetModeResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetPropertiesRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.navigation.v1.GetPropertiesRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.navigation.v1.SetModeResponse"; } protected: - explicit GetPropertiesRequest(::google::protobuf::Arena* arena); - GetPropertiesRequest(::google::protobuf::Arena* arena, const GetPropertiesRequest& from); + explicit SetModeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kNameFieldNumber = 1, - }; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - - public: - // @@protoc_insertion_point(class_scope:viam.service.navigation.v1.GetPropertiesRequest) + // @@protoc_insertion_point(class_scope:viam.service.navigation.v1.SetModeResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 60, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr name_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_service_2fnavigation_2fv1_2fnavigation_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetModeResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.navigation.v1.GetModeResponse) */ { +class Waypoint final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.navigation.v1.Waypoint) */ { public: - inline GetModeResponse() : GetModeResponse(nullptr) {} - ~GetModeResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetModeResponse(::google::protobuf::internal::ConstantInitialized); + inline Waypoint() : Waypoint(nullptr) {} + ~Waypoint() override; + explicit PROTOBUF_CONSTEXPR Waypoint(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetModeResponse(const GetModeResponse& from) - : GetModeResponse(nullptr, from) {} - GetModeResponse(GetModeResponse&& from) noexcept - : GetModeResponse() { + Waypoint(const Waypoint& from); + Waypoint(Waypoint&& from) noexcept + : Waypoint() { *this = ::std::move(from); } - inline GetModeResponse& operator=(const GetModeResponse& from) { + inline Waypoint& operator=(const Waypoint& from) { CopyFrom(from); return *this; } - inline GetModeResponse& operator=(GetModeResponse&& from) noexcept { + inline Waypoint& operator=(Waypoint&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -873,171 +836,165 @@ class GetModeResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetModeResponse& default_instance() { + static const Waypoint& default_instance() { return *internal_default_instance(); } - static inline const GetModeResponse* internal_default_instance() { - return reinterpret_cast( - &_GetModeResponse_default_instance_); + static inline const Waypoint* internal_default_instance() { + return reinterpret_cast( + &_Waypoint_default_instance_); } static constexpr int kIndexInFileMessages = - 1; + 4; - friend void swap(GetModeResponse& a, GetModeResponse& b) { + friend void swap(Waypoint& a, Waypoint& b) { a.Swap(&b); } - inline void Swap(GetModeResponse* other) { + inline void Swap(Waypoint* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetModeResponse* other) { + void UnsafeArenaSwap(Waypoint* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetModeResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetModeResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetModeResponse& from) { - GetModeResponse::MergeImpl(*this, from); + Waypoint* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Waypoint& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Waypoint& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetModeResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(Waypoint* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.navigation.v1.GetModeResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.navigation.v1.Waypoint"; } protected: - explicit GetModeResponse(::google::protobuf::Arena* arena); - GetModeResponse(::google::protobuf::Arena* arena, const GetModeResponse& from); + explicit Waypoint(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kModeFieldNumber = 1, + kIdFieldNumber = 1, + kLocationFieldNumber = 2, }; - // .viam.service.navigation.v1.Mode mode = 1 [json_name = "mode"]; - void clear_mode() ; - ::viam::service::navigation::v1::Mode mode() const; - void set_mode(::viam::service::navigation::v1::Mode value); - + // string id = 1 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); private: - ::viam::service::navigation::v1::Mode _internal_mode() const; - void _internal_set_mode(::viam::service::navigation::v1::Mode value); + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + // .viam.common.v1.GeoPoint location = 2 [json_name = "location"]; + bool has_location() const; + private: + bool _internal_has_location() const; public: - // @@protoc_insertion_point(class_scope:viam.service.navigation.v1.GetModeResponse) + void clear_location(); + const ::viam::common::v1::GeoPoint& location() const; + PROTOBUF_NODISCARD ::viam::common::v1::GeoPoint* release_location(); + ::viam::common::v1::GeoPoint* mutable_location(); + void set_allocated_location(::viam::common::v1::GeoPoint* location); + private: + const ::viam::common::v1::GeoPoint& _internal_location() const; + ::viam::common::v1::GeoPoint* _internal_mutable_location(); + public: + void unsafe_arena_set_allocated_location( + ::viam::common::v1::GeoPoint* location); + ::viam::common::v1::GeoPoint* unsafe_arena_release_location(); + + // @@protoc_insertion_point(class_scope:viam.service.navigation.v1.Waypoint) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - int mode_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::viam::common::v1::GeoPoint* location_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fnavigation_2fv1_2fnavigation_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class AddWaypointResponse final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.service.navigation.v1.AddWaypointResponse) */ { +class GetLocationRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.navigation.v1.GetLocationRequest) */ { public: - inline AddWaypointResponse() : AddWaypointResponse(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR AddWaypointResponse(::google::protobuf::internal::ConstantInitialized); + inline GetLocationRequest() : GetLocationRequest(nullptr) {} + ~GetLocationRequest() override; + explicit PROTOBUF_CONSTEXPR GetLocationRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline AddWaypointResponse(const AddWaypointResponse& from) - : AddWaypointResponse(nullptr, from) {} - AddWaypointResponse(AddWaypointResponse&& from) noexcept - : AddWaypointResponse() { + GetLocationRequest(const GetLocationRequest& from); + GetLocationRequest(GetLocationRequest&& from) noexcept + : GetLocationRequest() { *this = ::std::move(from); } - inline AddWaypointResponse& operator=(const AddWaypointResponse& from) { + inline GetLocationRequest& operator=(const GetLocationRequest& from) { CopyFrom(from); return *this; } - inline AddWaypointResponse& operator=(AddWaypointResponse&& from) noexcept { + inline GetLocationRequest& operator=(GetLocationRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1047,134 +1004,165 @@ class AddWaypointResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const AddWaypointResponse& default_instance() { + static const GetLocationRequest& default_instance() { return *internal_default_instance(); } - static inline const AddWaypointResponse* internal_default_instance() { - return reinterpret_cast( - &_AddWaypointResponse_default_instance_); + static inline const GetLocationRequest* internal_default_instance() { + return reinterpret_cast( + &_GetLocationRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 10; + 5; - friend void swap(AddWaypointResponse& a, AddWaypointResponse& b) { + friend void swap(GetLocationRequest& a, GetLocationRequest& b) { a.Swap(&b); } - inline void Swap(AddWaypointResponse* other) { + inline void Swap(GetLocationRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(AddWaypointResponse* other) { + void UnsafeArenaSwap(GetLocationRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - AddWaypointResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const AddWaypointResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const AddWaypointResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + GetLocationRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetLocationRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetLocationRequest& 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: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.navigation.v1.AddWaypointResponse"; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetLocationRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.navigation.v1.GetLocationRequest"; } protected: - explicit AddWaypointResponse(::google::protobuf::Arena* arena); - AddWaypointResponse(::google::protobuf::Arena* arena, const AddWaypointResponse& from); + explicit GetLocationRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::google::protobuf::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:viam.service.navigation.v1.AddWaypointResponse) + 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.service.navigation.v1.GetLocationRequest) private: class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; + 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_service_2fnavigation_2fv1_2fnavigation_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Waypoint final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.navigation.v1.Waypoint) */ { +class GetLocationResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.navigation.v1.GetLocationResponse) */ { public: - inline Waypoint() : Waypoint(nullptr) {} - ~Waypoint() override; - template - explicit PROTOBUF_CONSTEXPR Waypoint(::google::protobuf::internal::ConstantInitialized); + inline GetLocationResponse() : GetLocationResponse(nullptr) {} + ~GetLocationResponse() override; + explicit PROTOBUF_CONSTEXPR GetLocationResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Waypoint(const Waypoint& from) - : Waypoint(nullptr, from) {} - Waypoint(Waypoint&& from) noexcept - : Waypoint() { + GetLocationResponse(const GetLocationResponse& from); + GetLocationResponse(GetLocationResponse&& from) noexcept + : GetLocationResponse() { *this = ::std::move(from); } - inline Waypoint& operator=(const Waypoint& from) { + inline GetLocationResponse& operator=(const GetLocationResponse& from) { CopyFrom(from); return *this; } - inline Waypoint& operator=(Waypoint&& from) noexcept { + inline GetLocationResponse& operator=(GetLocationResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1184,196 +1172,160 @@ class Waypoint final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Waypoint& default_instance() { + static const GetLocationResponse& default_instance() { return *internal_default_instance(); } - static inline const Waypoint* internal_default_instance() { - return reinterpret_cast( - &_Waypoint_default_instance_); + static inline const GetLocationResponse* internal_default_instance() { + return reinterpret_cast( + &_GetLocationResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 4; + 6; - friend void swap(Waypoint& a, Waypoint& b) { + friend void swap(GetLocationResponse& a, GetLocationResponse& b) { a.Swap(&b); } - inline void Swap(Waypoint* other) { + inline void Swap(GetLocationResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Waypoint* other) { + void UnsafeArenaSwap(GetLocationResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Waypoint* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Waypoint& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Waypoint& from) { - Waypoint::MergeImpl(*this, from); + GetLocationResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetLocationResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetLocationResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Waypoint* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetLocationResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.navigation.v1.Waypoint"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.navigation.v1.GetLocationResponse"; } protected: - explicit Waypoint(::google::protobuf::Arena* arena); - Waypoint(::google::protobuf::Arena* arena, const Waypoint& from); + explicit GetLocationResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kIdFieldNumber = 1, - kLocationFieldNumber = 2, + kLocationFieldNumber = 1, + kCompassHeadingFieldNumber = 2, }; - // string id = 1 [json_name = "id"]; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - + // .viam.common.v1.GeoPoint location = 1 [json_name = "location"]; + bool has_location() const; private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); - + bool _internal_has_location() const; public: - // .viam.common.v1.GeoPoint location = 2 [json_name = "location"]; - bool has_location() const; - void clear_location() ; + void clear_location(); const ::viam::common::v1::GeoPoint& location() const; PROTOBUF_NODISCARD ::viam::common::v1::GeoPoint* release_location(); ::viam::common::v1::GeoPoint* mutable_location(); - void set_allocated_location(::viam::common::v1::GeoPoint* value); - void unsafe_arena_set_allocated_location(::viam::common::v1::GeoPoint* value); - ::viam::common::v1::GeoPoint* unsafe_arena_release_location(); - + void set_allocated_location(::viam::common::v1::GeoPoint* location); private: const ::viam::common::v1::GeoPoint& _internal_location() const; ::viam::common::v1::GeoPoint* _internal_mutable_location(); + public: + void unsafe_arena_set_allocated_location( + ::viam::common::v1::GeoPoint* location); + ::viam::common::v1::GeoPoint* unsafe_arena_release_location(); + // double compass_heading = 2 [json_name = "compassHeading"]; + void clear_compass_heading(); + double compass_heading() const; + void set_compass_heading(double value); + private: + double _internal_compass_heading() const; + void _internal_set_compass_heading(double value); public: - // @@protoc_insertion_point(class_scope:viam.service.navigation.v1.Waypoint) + + // @@protoc_insertion_point(class_scope:viam.service.navigation.v1.GetLocationResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 46, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr id_; - ::viam::common::v1::GeoPoint* location_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::viam::common::v1::GeoPoint* location_; + double compass_heading_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fnavigation_2fv1_2fnavigation_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SetModeRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.navigation.v1.SetModeRequest) */ { +class GetWaypointsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.navigation.v1.GetWaypointsRequest) */ { public: - inline SetModeRequest() : SetModeRequest(nullptr) {} - ~SetModeRequest() override; - template - explicit PROTOBUF_CONSTEXPR SetModeRequest(::google::protobuf::internal::ConstantInitialized); + inline GetWaypointsRequest() : GetWaypointsRequest(nullptr) {} + ~GetWaypointsRequest() override; + explicit PROTOBUF_CONSTEXPR GetWaypointsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline SetModeRequest(const SetModeRequest& from) - : SetModeRequest(nullptr, from) {} - SetModeRequest(SetModeRequest&& from) noexcept - : SetModeRequest() { + GetWaypointsRequest(const GetWaypointsRequest& from); + GetWaypointsRequest(GetWaypointsRequest&& from) noexcept + : GetWaypointsRequest() { *this = ::std::move(from); } - inline SetModeRequest& operator=(const SetModeRequest& from) { + inline GetWaypointsRequest& operator=(const GetWaypointsRequest& from) { CopyFrom(from); return *this; } - inline SetModeRequest& operator=(SetModeRequest&& from) noexcept { + inline GetWaypointsRequest& operator=(GetWaypointsRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1383,99 +1335,88 @@ class SetModeRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SetModeRequest& default_instance() { + static const GetWaypointsRequest& default_instance() { return *internal_default_instance(); } - static inline const SetModeRequest* internal_default_instance() { - return reinterpret_cast( - &_SetModeRequest_default_instance_); + static inline const GetWaypointsRequest* internal_default_instance() { + return reinterpret_cast( + &_GetWaypointsRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 2; + 7; - friend void swap(SetModeRequest& a, SetModeRequest& b) { + friend void swap(GetWaypointsRequest& a, GetWaypointsRequest& b) { a.Swap(&b); } - inline void Swap(SetModeRequest* other) { + inline void Swap(GetWaypointsRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SetModeRequest* other) { + void UnsafeArenaSwap(GetWaypointsRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SetModeRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SetModeRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SetModeRequest& from) { - SetModeRequest::MergeImpl(*this, from); + GetWaypointsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetWaypointsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetWaypointsRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(SetModeRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetWaypointsRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.navigation.v1.SetModeRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.navigation.v1.GetWaypointsRequest"; } protected: - explicit SetModeRequest(::google::protobuf::Arena* arena); - SetModeRequest(::google::protobuf::Arena* arena, const SetModeRequest& from); + explicit GetWaypointsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1484,107 +1425,75 @@ class SetModeRequest final : enum : int { kNameFieldNumber = 1, kExtraFieldNumber = 99, - kModeFieldNumber = 2, }; // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + 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; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - + bool _internal_has_extra() const; public: - // .viam.service.navigation.v1.Mode mode = 2 [json_name = "mode"]; - void clear_mode() ; - ::viam::service::navigation::v1::Mode mode() const; - void set_mode(::viam::service::navigation::v1::Mode value); - + 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: - ::viam::service::navigation::v1::Mode _internal_mode() const; - void _internal_set_mode(::viam::service::navigation::v1::Mode value); - + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_extra() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_extra(); public: - // @@protoc_insertion_point(class_scope:viam.service.navigation.v1.SetModeRequest) + 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.service.navigation.v1.GetWaypointsRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 1, - 54, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - int mode_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + 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_service_2fnavigation_2fv1_2fnavigation_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class RemoveWaypointRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.navigation.v1.RemoveWaypointRequest) */ { +class GetWaypointsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.navigation.v1.GetWaypointsResponse) */ { public: - inline RemoveWaypointRequest() : RemoveWaypointRequest(nullptr) {} - ~RemoveWaypointRequest() override; - template - explicit PROTOBUF_CONSTEXPR RemoveWaypointRequest(::google::protobuf::internal::ConstantInitialized); + inline GetWaypointsResponse() : GetWaypointsResponse(nullptr) {} + ~GetWaypointsResponse() override; + explicit PROTOBUF_CONSTEXPR GetWaypointsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline RemoveWaypointRequest(const RemoveWaypointRequest& from) - : RemoveWaypointRequest(nullptr, from) {} - RemoveWaypointRequest(RemoveWaypointRequest&& from) noexcept - : RemoveWaypointRequest() { + GetWaypointsResponse(const GetWaypointsResponse& from); + GetWaypointsResponse(GetWaypointsResponse&& from) noexcept + : GetWaypointsResponse() { *this = ::std::move(from); } - inline RemoveWaypointRequest& operator=(const RemoveWaypointRequest& from) { + inline GetWaypointsResponse& operator=(const GetWaypointsResponse& from) { CopyFrom(from); return *this; } - inline RemoveWaypointRequest& operator=(RemoveWaypointRequest&& from) noexcept { + inline GetWaypointsResponse& operator=(GetWaypointsResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1594,214 +1503,149 @@ class RemoveWaypointRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const RemoveWaypointRequest& default_instance() { + static const GetWaypointsResponse& default_instance() { return *internal_default_instance(); } - static inline const RemoveWaypointRequest* internal_default_instance() { - return reinterpret_cast( - &_RemoveWaypointRequest_default_instance_); + static inline const GetWaypointsResponse* internal_default_instance() { + return reinterpret_cast( + &_GetWaypointsResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 11; + 8; - friend void swap(RemoveWaypointRequest& a, RemoveWaypointRequest& b) { + friend void swap(GetWaypointsResponse& a, GetWaypointsResponse& b) { a.Swap(&b); } - inline void Swap(RemoveWaypointRequest* other) { + inline void Swap(GetWaypointsResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RemoveWaypointRequest* other) { + void UnsafeArenaSwap(GetWaypointsResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - RemoveWaypointRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const RemoveWaypointRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const RemoveWaypointRequest& from) { - RemoveWaypointRequest::MergeImpl(*this, from); + GetWaypointsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetWaypointsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetWaypointsResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(RemoveWaypointRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetWaypointsResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.navigation.v1.RemoveWaypointRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.navigation.v1.GetWaypointsResponse"; } protected: - explicit RemoveWaypointRequest(::google::protobuf::Arena* arena); - RemoveWaypointRequest(::google::protobuf::Arena* arena, const RemoveWaypointRequest& from); + explicit GetWaypointsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kNameFieldNumber = 1, - kIdFieldNumber = 2, - kExtraFieldNumber = 99, + kWaypointsFieldNumber = 1, }; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + // repeated .viam.service.navigation.v1.Waypoint waypoints = 1 [json_name = "waypoints"]; + int waypoints_size() const; private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - + int _internal_waypoints_size() const; public: - // string id = 2 [json_name = "id"]; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - + void clear_waypoints(); + ::viam::service::navigation::v1::Waypoint* mutable_waypoints(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::navigation::v1::Waypoint >* + mutable_waypoints(); private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); - + const ::viam::service::navigation::v1::Waypoint& _internal_waypoints(int index) const; + ::viam::service::navigation::v1::Waypoint* _internal_add_waypoints(); public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); + const ::viam::service::navigation::v1::Waypoint& waypoints(int index) const; + ::viam::service::navigation::v1::Waypoint* add_waypoints(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::navigation::v1::Waypoint >& + waypoints() const; - public: - // @@protoc_insertion_point(class_scope:viam.service.navigation.v1.RemoveWaypointRequest) + // @@protoc_insertion_point(class_scope:viam.service.navigation.v1.GetWaypointsResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 1, - 63, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr id_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::navigation::v1::Waypoint > waypoints_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fnavigation_2fv1_2fnavigation_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Path final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.navigation.v1.Path) */ { +class AddWaypointRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.navigation.v1.AddWaypointRequest) */ { public: - inline Path() : Path(nullptr) {} - ~Path() override; - template - explicit PROTOBUF_CONSTEXPR Path(::google::protobuf::internal::ConstantInitialized); + inline AddWaypointRequest() : AddWaypointRequest(nullptr) {} + ~AddWaypointRequest() override; + explicit PROTOBUF_CONSTEXPR AddWaypointRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Path(const Path& from) - : Path(nullptr, from) {} - Path(Path&& from) noexcept - : Path() { + AddWaypointRequest(const AddWaypointRequest& from); + AddWaypointRequest(AddWaypointRequest&& from) noexcept + : AddWaypointRequest() { *this = ::std::move(from); } - inline Path& operator=(const Path& from) { + inline AddWaypointRequest& operator=(const AddWaypointRequest& from) { CopyFrom(from); return *this; } - inline Path& operator=(Path&& from) noexcept { + inline AddWaypointRequest& operator=(AddWaypointRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1811,198 +1655,184 @@ class Path final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Path& default_instance() { + static const AddWaypointRequest& default_instance() { return *internal_default_instance(); } - static inline const Path* internal_default_instance() { - return reinterpret_cast( - &_Path_default_instance_); + static inline const AddWaypointRequest* internal_default_instance() { + return reinterpret_cast( + &_AddWaypointRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 15; + 9; - friend void swap(Path& a, Path& b) { + friend void swap(AddWaypointRequest& a, AddWaypointRequest& b) { a.Swap(&b); } - inline void Swap(Path* other) { + inline void Swap(AddWaypointRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Path* other) { + void UnsafeArenaSwap(AddWaypointRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Path* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Path& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Path& from) { - Path::MergeImpl(*this, from); + AddWaypointRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const AddWaypointRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const AddWaypointRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Path* other); + void SetCachedSize(int size) const final; + void InternalSwap(AddWaypointRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.navigation.v1.Path"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.navigation.v1.AddWaypointRequest"; } protected: - explicit Path(::google::protobuf::Arena* arena); - Path(::google::protobuf::Arena* arena, const Path& from); + explicit AddWaypointRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kGeopointsFieldNumber = 2, - kDestinationWaypointIdFieldNumber = 1, + kNameFieldNumber = 1, + kLocationFieldNumber = 2, + kExtraFieldNumber = 99, }; - // repeated .viam.common.v1.GeoPoint geopoints = 2 [json_name = "geopoints"]; - int geopoints_size() const; + // 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: - int _internal_geopoints_size() const; + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + // .viam.common.v1.GeoPoint location = 2 [json_name = "location"]; + bool has_location() const; + private: + bool _internal_has_location() const; public: - void clear_geopoints() ; - ::viam::common::v1::GeoPoint* mutable_geopoints(int index); - ::google::protobuf::RepeatedPtrField< ::viam::common::v1::GeoPoint >* - mutable_geopoints(); + void clear_location(); + const ::viam::common::v1::GeoPoint& location() const; + PROTOBUF_NODISCARD ::viam::common::v1::GeoPoint* release_location(); + ::viam::common::v1::GeoPoint* mutable_location(); + void set_allocated_location(::viam::common::v1::GeoPoint* location); private: - const ::google::protobuf::RepeatedPtrField<::viam::common::v1::GeoPoint>& _internal_geopoints() const; - ::google::protobuf::RepeatedPtrField<::viam::common::v1::GeoPoint>* _internal_mutable_geopoints(); + const ::viam::common::v1::GeoPoint& _internal_location() const; + ::viam::common::v1::GeoPoint* _internal_mutable_location(); public: - const ::viam::common::v1::GeoPoint& geopoints(int index) const; - ::viam::common::v1::GeoPoint* add_geopoints(); - const ::google::protobuf::RepeatedPtrField< ::viam::common::v1::GeoPoint >& - geopoints() const; - // string destination_waypoint_id = 1 [json_name = "destinationWaypointId"]; - void clear_destination_waypoint_id() ; - const std::string& destination_waypoint_id() const; - template - void set_destination_waypoint_id(Arg_&& arg, Args_... args); - std::string* mutable_destination_waypoint_id(); - PROTOBUF_NODISCARD std::string* release_destination_waypoint_id(); - void set_allocated_destination_waypoint_id(std::string* value); + void unsafe_arena_set_allocated_location( + ::viam::common::v1::GeoPoint* location); + ::viam::common::v1::GeoPoint* unsafe_arena_release_location(); + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + bool has_extra() const; private: - const std::string& _internal_destination_waypoint_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_destination_waypoint_id( - const std::string& value); - std::string* _internal_mutable_destination_waypoint_id(); - + bool _internal_has_extra() const; public: - // @@protoc_insertion_point(class_scope:viam.service.navigation.v1.Path) + 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.service.navigation.v1.AddWaypointRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 63, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::common::v1::GeoPoint > geopoints_; - ::google::protobuf::internal::ArenaStringPtr destination_waypoint_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::viam::common::v1::GeoPoint* location_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fnavigation_2fv1_2fnavigation_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetWaypointsRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.navigation.v1.GetWaypointsRequest) */ { +class AddWaypointResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.service.navigation.v1.AddWaypointResponse) */ { public: - inline GetWaypointsRequest() : GetWaypointsRequest(nullptr) {} - ~GetWaypointsRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetWaypointsRequest(::google::protobuf::internal::ConstantInitialized); + inline AddWaypointResponse() : AddWaypointResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR AddWaypointResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetWaypointsRequest(const GetWaypointsRequest& from) - : GetWaypointsRequest(nullptr, from) {} - GetWaypointsRequest(GetWaypointsRequest&& from) noexcept - : GetWaypointsRequest() { + AddWaypointResponse(const AddWaypointResponse& from); + AddWaypointResponse(AddWaypointResponse&& from) noexcept + : AddWaypointResponse() { *this = ::std::move(from); } - inline GetWaypointsRequest& operator=(const GetWaypointsRequest& from) { + inline AddWaypointResponse& operator=(const AddWaypointResponse& from) { CopyFrom(from); return *this; } - inline GetWaypointsRequest& operator=(GetWaypointsRequest&& from) noexcept { + inline AddWaypointResponse& operator=(AddWaypointResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2012,196 +1842,114 @@ class GetWaypointsRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetWaypointsRequest& default_instance() { + static const AddWaypointResponse& default_instance() { return *internal_default_instance(); } - static inline const GetWaypointsRequest* internal_default_instance() { - return reinterpret_cast( - &_GetWaypointsRequest_default_instance_); + static inline const AddWaypointResponse* internal_default_instance() { + return reinterpret_cast( + &_AddWaypointResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 7; + 10; - friend void swap(GetWaypointsRequest& a, GetWaypointsRequest& b) { + friend void swap(AddWaypointResponse& a, AddWaypointResponse& b) { a.Swap(&b); } - inline void Swap(GetWaypointsRequest* other) { + inline void Swap(AddWaypointResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetWaypointsRequest* other) { + void UnsafeArenaSwap(AddWaypointResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetWaypointsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + AddWaypointResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetWaypointsRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetWaypointsRequest& from) { - GetWaypointsRequest::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const AddWaypointResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const AddWaypointResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetWaypointsRequest* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.navigation.v1.GetWaypointsRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.navigation.v1.AddWaypointResponse"; } protected: - explicit GetWaypointsRequest(::google::protobuf::Arena* arena); - GetWaypointsRequest(::google::protobuf::Arena* arena, const GetWaypointsRequest& from); + explicit AddWaypointResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() 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(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - - public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - - public: - // @@protoc_insertion_point(class_scope:viam.service.navigation.v1.GetWaypointsRequest) + // @@protoc_insertion_point(class_scope:viam.service.navigation.v1.AddWaypointResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 2, 1, - 59, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_service_2fnavigation_2fv1_2fnavigation_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetPathsRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.navigation.v1.GetPathsRequest) */ { +class RemoveWaypointRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.navigation.v1.RemoveWaypointRequest) */ { public: - inline GetPathsRequest() : GetPathsRequest(nullptr) {} - ~GetPathsRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetPathsRequest(::google::protobuf::internal::ConstantInitialized); + inline RemoveWaypointRequest() : RemoveWaypointRequest(nullptr) {} + ~RemoveWaypointRequest() override; + explicit PROTOBUF_CONSTEXPR RemoveWaypointRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetPathsRequest(const GetPathsRequest& from) - : GetPathsRequest(nullptr, from) {} - GetPathsRequest(GetPathsRequest&& from) noexcept - : GetPathsRequest() { + RemoveWaypointRequest(const RemoveWaypointRequest& from); + RemoveWaypointRequest(RemoveWaypointRequest&& from) noexcept + : RemoveWaypointRequest() { *this = ::std::move(from); } - inline GetPathsRequest& operator=(const GetPathsRequest& from) { + inline RemoveWaypointRequest& operator=(const RemoveWaypointRequest& from) { CopyFrom(from); return *this; } - inline GetPathsRequest& operator=(GetPathsRequest&& from) noexcept { + inline RemoveWaypointRequest& operator=(RemoveWaypointRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2211,99 +1959,88 @@ class GetPathsRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetPathsRequest& default_instance() { + static const RemoveWaypointRequest& default_instance() { return *internal_default_instance(); } - static inline const GetPathsRequest* internal_default_instance() { - return reinterpret_cast( - &_GetPathsRequest_default_instance_); + static inline const RemoveWaypointRequest* internal_default_instance() { + return reinterpret_cast( + &_RemoveWaypointRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 16; + 11; - friend void swap(GetPathsRequest& a, GetPathsRequest& b) { + friend void swap(RemoveWaypointRequest& a, RemoveWaypointRequest& b) { a.Swap(&b); } - inline void Swap(GetPathsRequest* other) { + inline void Swap(RemoveWaypointRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetPathsRequest* other) { + void UnsafeArenaSwap(RemoveWaypointRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetPathsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetPathsRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetPathsRequest& from) { - GetPathsRequest::MergeImpl(*this, from); + RemoveWaypointRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const RemoveWaypointRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const RemoveWaypointRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetPathsRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(RemoveWaypointRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.navigation.v1.GetPathsRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.navigation.v1.RemoveWaypointRequest"; } protected: - explicit GetPathsRequest(::google::protobuf::Arena* arena); - GetPathsRequest(::google::protobuf::Arena* arena, const GetPathsRequest& from); + explicit RemoveWaypointRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -2311,96 +2048,91 @@ class GetPathsRequest final : enum : int { kNameFieldNumber = 1, + kIdFieldNumber = 2, kExtraFieldNumber = 99, }; // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); std::string* _internal_mutable_name(); + public: + // string id = 2 [json_name = "id"]; + void clear_id(); + const std::string& id() const; + template + void set_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); public: + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - + bool _internal_has_extra() const; public: - // @@protoc_insertion_point(class_scope:viam.service.navigation.v1.GetPathsRequest) + 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.service.navigation.v1.RemoveWaypointRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 2, 1, - 55, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fnavigation_2fv1_2fnavigation_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetObstaclesRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.navigation.v1.GetObstaclesRequest) */ { +class RemoveWaypointResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.service.navigation.v1.RemoveWaypointResponse) */ { public: - inline GetObstaclesRequest() : GetObstaclesRequest(nullptr) {} - ~GetObstaclesRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetObstaclesRequest(::google::protobuf::internal::ConstantInitialized); + inline RemoveWaypointResponse() : RemoveWaypointResponse(nullptr) {} + explicit PROTOBUF_CONSTEXPR RemoveWaypointResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetObstaclesRequest(const GetObstaclesRequest& from) - : GetObstaclesRequest(nullptr, from) {} - GetObstaclesRequest(GetObstaclesRequest&& from) noexcept - : GetObstaclesRequest() { + RemoveWaypointResponse(const RemoveWaypointResponse& from); + RemoveWaypointResponse(RemoveWaypointResponse&& from) noexcept + : RemoveWaypointResponse() { *this = ::std::move(from); } - inline GetObstaclesRequest& operator=(const GetObstaclesRequest& from) { + inline RemoveWaypointResponse& operator=(const RemoveWaypointResponse& from) { CopyFrom(from); return *this; } - inline GetObstaclesRequest& operator=(GetObstaclesRequest&& from) noexcept { + inline RemoveWaypointResponse& operator=(RemoveWaypointResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2410,196 +2142,114 @@ class GetObstaclesRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetObstaclesRequest& default_instance() { + static const RemoveWaypointResponse& default_instance() { return *internal_default_instance(); } - static inline const GetObstaclesRequest* internal_default_instance() { - return reinterpret_cast( - &_GetObstaclesRequest_default_instance_); + static inline const RemoveWaypointResponse* internal_default_instance() { + return reinterpret_cast( + &_RemoveWaypointResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 13; + 12; - friend void swap(GetObstaclesRequest& a, GetObstaclesRequest& b) { + friend void swap(RemoveWaypointResponse& a, RemoveWaypointResponse& b) { a.Swap(&b); } - inline void Swap(GetObstaclesRequest* other) { + inline void Swap(RemoveWaypointResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetObstaclesRequest* other) { + void UnsafeArenaSwap(RemoveWaypointResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetObstaclesRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + RemoveWaypointResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetObstaclesRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetObstaclesRequest& from) { - GetObstaclesRequest::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const RemoveWaypointResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const RemoveWaypointResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetObstaclesRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.navigation.v1.GetObstaclesRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.navigation.v1.RemoveWaypointResponse"; } protected: - explicit GetObstaclesRequest(::google::protobuf::Arena* arena); - GetObstaclesRequest(::google::protobuf::Arena* arena, const GetObstaclesRequest& from); + explicit RemoveWaypointResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() 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(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - - public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - - public: - // @@protoc_insertion_point(class_scope:viam.service.navigation.v1.GetObstaclesRequest) + // @@protoc_insertion_point(class_scope:viam.service.navigation.v1.RemoveWaypointResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 2, 1, - 59, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; friend struct ::TableStruct_service_2fnavigation_2fv1_2fnavigation_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetModeRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.navigation.v1.GetModeRequest) */ { +class GetObstaclesRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.navigation.v1.GetObstaclesRequest) */ { public: - inline GetModeRequest() : GetModeRequest(nullptr) {} - ~GetModeRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetModeRequest(::google::protobuf::internal::ConstantInitialized); + inline GetObstaclesRequest() : GetObstaclesRequest(nullptr) {} + ~GetObstaclesRequest() override; + explicit PROTOBUF_CONSTEXPR GetObstaclesRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetModeRequest(const GetModeRequest& from) - : GetModeRequest(nullptr, from) {} - GetModeRequest(GetModeRequest&& from) noexcept - : GetModeRequest() { + GetObstaclesRequest(const GetObstaclesRequest& from); + GetObstaclesRequest(GetObstaclesRequest&& from) noexcept + : GetObstaclesRequest() { *this = ::std::move(from); } - inline GetModeRequest& operator=(const GetModeRequest& from) { + inline GetObstaclesRequest& operator=(const GetObstaclesRequest& from) { CopyFrom(from); return *this; } - inline GetModeRequest& operator=(GetModeRequest&& from) noexcept { + inline GetObstaclesRequest& operator=(GetObstaclesRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2609,99 +2259,88 @@ class GetModeRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetModeRequest& default_instance() { + static const GetObstaclesRequest& default_instance() { return *internal_default_instance(); } - static inline const GetModeRequest* internal_default_instance() { - return reinterpret_cast( - &_GetModeRequest_default_instance_); + static inline const GetObstaclesRequest* internal_default_instance() { + return reinterpret_cast( + &_GetObstaclesRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 0; + 13; - friend void swap(GetModeRequest& a, GetModeRequest& b) { + friend void swap(GetObstaclesRequest& a, GetObstaclesRequest& b) { a.Swap(&b); } - inline void Swap(GetModeRequest* other) { + inline void Swap(GetObstaclesRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetModeRequest* other) { + void UnsafeArenaSwap(GetObstaclesRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetModeRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetModeRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetModeRequest& from) { - GetModeRequest::MergeImpl(*this, from); + GetObstaclesRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetObstaclesRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetObstaclesRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetModeRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetObstaclesRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.navigation.v1.GetModeRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.navigation.v1.GetObstaclesRequest"; } protected: - explicit GetModeRequest(::google::protobuf::Arena* arena); - GetModeRequest(::google::protobuf::Arena* arena, const GetModeRequest& from); + explicit GetObstaclesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -2712,93 +2351,73 @@ class GetModeRequest final : kExtraFieldNumber = 99, }; // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + 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; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - + bool _internal_has_extra() const; public: - // @@protoc_insertion_point(class_scope:viam.service.navigation.v1.GetModeRequest) + 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.service.navigation.v1.GetObstaclesRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 2, 1, - 54, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + 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_service_2fnavigation_2fv1_2fnavigation_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetLocationResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.navigation.v1.GetLocationResponse) */ { +class GetObstaclesResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.navigation.v1.GetObstaclesResponse) */ { public: - inline GetLocationResponse() : GetLocationResponse(nullptr) {} - ~GetLocationResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetLocationResponse(::google::protobuf::internal::ConstantInitialized); + inline GetObstaclesResponse() : GetObstaclesResponse(nullptr) {} + ~GetObstaclesResponse() override; + explicit PROTOBUF_CONSTEXPR GetObstaclesResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetLocationResponse(const GetLocationResponse& from) - : GetLocationResponse(nullptr, from) {} - GetLocationResponse(GetLocationResponse&& from) noexcept - : GetLocationResponse() { + GetObstaclesResponse(const GetObstaclesResponse& from); + GetObstaclesResponse(GetObstaclesResponse&& from) noexcept + : GetObstaclesResponse() { *this = ::std::move(from); } - inline GetLocationResponse& operator=(const GetLocationResponse& from) { + inline GetObstaclesResponse& operator=(const GetObstaclesResponse& from) { CopyFrom(from); return *this; } - inline GetLocationResponse& operator=(GetLocationResponse&& from) noexcept { + inline GetObstaclesResponse& operator=(GetObstaclesResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2808,190 +2427,149 @@ class GetLocationResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetLocationResponse& default_instance() { + static const GetObstaclesResponse& default_instance() { return *internal_default_instance(); } - static inline const GetLocationResponse* internal_default_instance() { - return reinterpret_cast( - &_GetLocationResponse_default_instance_); + static inline const GetObstaclesResponse* internal_default_instance() { + return reinterpret_cast( + &_GetObstaclesResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 6; + 14; - friend void swap(GetLocationResponse& a, GetLocationResponse& b) { + friend void swap(GetObstaclesResponse& a, GetObstaclesResponse& b) { a.Swap(&b); } - inline void Swap(GetLocationResponse* other) { + inline void Swap(GetObstaclesResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetLocationResponse* other) { + void UnsafeArenaSwap(GetObstaclesResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetLocationResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetLocationResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetLocationResponse& from) { - GetLocationResponse::MergeImpl(*this, from); + GetObstaclesResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetObstaclesResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetObstaclesResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetLocationResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetObstaclesResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.navigation.v1.GetLocationResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.navigation.v1.GetObstaclesResponse"; } protected: - explicit GetLocationResponse(::google::protobuf::Arena* arena); - GetLocationResponse(::google::protobuf::Arena* arena, const GetLocationResponse& from); + explicit GetObstaclesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kLocationFieldNumber = 1, - kCompassHeadingFieldNumber = 2, + kObstaclesFieldNumber = 1, }; - // .viam.common.v1.GeoPoint location = 1 [json_name = "location"]; - bool has_location() const; - void clear_location() ; - const ::viam::common::v1::GeoPoint& location() const; - PROTOBUF_NODISCARD ::viam::common::v1::GeoPoint* release_location(); - ::viam::common::v1::GeoPoint* mutable_location(); - void set_allocated_location(::viam::common::v1::GeoPoint* value); - void unsafe_arena_set_allocated_location(::viam::common::v1::GeoPoint* value); - ::viam::common::v1::GeoPoint* unsafe_arena_release_location(); - + // repeated .viam.common.v1.GeoGeometry obstacles = 1 [json_name = "obstacles"]; + int obstacles_size() const; private: - const ::viam::common::v1::GeoPoint& _internal_location() const; - ::viam::common::v1::GeoPoint* _internal_mutable_location(); - + int _internal_obstacles_size() const; public: - // double compass_heading = 2 [json_name = "compassHeading"]; - void clear_compass_heading() ; - double compass_heading() const; - void set_compass_heading(double value); - + void clear_obstacles(); + ::viam::common::v1::GeoGeometry* mutable_obstacles(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::GeoGeometry >* + mutable_obstacles(); private: - double _internal_compass_heading() const; - void _internal_set_compass_heading(double value); - + const ::viam::common::v1::GeoGeometry& _internal_obstacles(int index) const; + ::viam::common::v1::GeoGeometry* _internal_add_obstacles(); public: - // @@protoc_insertion_point(class_scope:viam.service.navigation.v1.GetLocationResponse) + const ::viam::common::v1::GeoGeometry& obstacles(int index) const; + ::viam::common::v1::GeoGeometry* add_obstacles(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::GeoGeometry >& + obstacles() const; + + // @@protoc_insertion_point(class_scope:viam.service.navigation.v1.GetObstaclesResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::viam::common::v1::GeoPoint* location_; - double compass_heading_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::GeoGeometry > obstacles_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fnavigation_2fv1_2fnavigation_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetLocationRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.navigation.v1.GetLocationRequest) */ { +class Path final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.navigation.v1.Path) */ { public: - inline GetLocationRequest() : GetLocationRequest(nullptr) {} - ~GetLocationRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetLocationRequest(::google::protobuf::internal::ConstantInitialized); + inline Path() : Path(nullptr) {} + ~Path() override; + explicit PROTOBUF_CONSTEXPR Path(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetLocationRequest(const GetLocationRequest& from) - : GetLocationRequest(nullptr, from) {} - GetLocationRequest(GetLocationRequest&& from) noexcept - : GetLocationRequest() { + Path(const Path& from); + Path(Path&& from) noexcept + : Path() { *this = ::std::move(from); } - inline GetLocationRequest& operator=(const GetLocationRequest& from) { + inline Path& operator=(const Path& from) { CopyFrom(from); return *this; } - inline GetLocationRequest& operator=(GetLocationRequest&& from) noexcept { + inline Path& operator=(Path&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3001,196 +2579,165 @@ class GetLocationRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetLocationRequest& default_instance() { + static const Path& default_instance() { return *internal_default_instance(); } - static inline const GetLocationRequest* internal_default_instance() { - return reinterpret_cast( - &_GetLocationRequest_default_instance_); + static inline const Path* internal_default_instance() { + return reinterpret_cast( + &_Path_default_instance_); } static constexpr int kIndexInFileMessages = - 5; + 15; - friend void swap(GetLocationRequest& a, GetLocationRequest& b) { + friend void swap(Path& a, Path& b) { a.Swap(&b); } - inline void Swap(GetLocationRequest* other) { + inline void Swap(Path* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetLocationRequest* other) { + void UnsafeArenaSwap(Path* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetLocationRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetLocationRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetLocationRequest& from) { - GetLocationRequest::MergeImpl(*this, from); + Path* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Path& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Path& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetLocationRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(Path* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.navigation.v1.GetLocationRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.navigation.v1.Path"; } protected: - explicit GetLocationRequest(::google::protobuf::Arena* arena); - GetLocationRequest(::google::protobuf::Arena* arena, const GetLocationRequest& from); + explicit Path(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kNameFieldNumber = 1, - kExtraFieldNumber = 99, + kGeopointsFieldNumber = 2, + kDestinationWaypointIdFieldNumber = 1, }; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + // repeated .viam.common.v1.GeoPoint geopoints = 2 [json_name = "geopoints"]; + int geopoints_size() const; private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - + int _internal_geopoints_size() const; public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - + void clear_geopoints(); + ::viam::common::v1::GeoPoint* mutable_geopoints(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::GeoPoint >* + mutable_geopoints(); private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); + const ::viam::common::v1::GeoPoint& _internal_geopoints(int index) const; + ::viam::common::v1::GeoPoint* _internal_add_geopoints(); + public: + const ::viam::common::v1::GeoPoint& geopoints(int index) const; + ::viam::common::v1::GeoPoint* add_geopoints(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::GeoPoint >& + geopoints() const; + // string destination_waypoint_id = 1 [json_name = "destinationWaypointId"]; + void clear_destination_waypoint_id(); + const std::string& destination_waypoint_id() const; + template + void set_destination_waypoint_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_destination_waypoint_id(); + PROTOBUF_NODISCARD std::string* release_destination_waypoint_id(); + void set_allocated_destination_waypoint_id(std::string* destination_waypoint_id); + private: + const std::string& _internal_destination_waypoint_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_destination_waypoint_id(const std::string& value); + std::string* _internal_mutable_destination_waypoint_id(); public: - // @@protoc_insertion_point(class_scope:viam.service.navigation.v1.GetLocationRequest) + + // @@protoc_insertion_point(class_scope:viam.service.navigation.v1.Path) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 2, 1, - 58, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::GeoPoint > geopoints_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr destination_waypoint_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fnavigation_2fv1_2fnavigation_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class AddWaypointRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.navigation.v1.AddWaypointRequest) */ { +class GetPathsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.navigation.v1.GetPathsRequest) */ { public: - inline AddWaypointRequest() : AddWaypointRequest(nullptr) {} - ~AddWaypointRequest() override; - template - explicit PROTOBUF_CONSTEXPR AddWaypointRequest(::google::protobuf::internal::ConstantInitialized); + inline GetPathsRequest() : GetPathsRequest(nullptr) {} + ~GetPathsRequest() override; + explicit PROTOBUF_CONSTEXPR GetPathsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline AddWaypointRequest(const AddWaypointRequest& from) - : AddWaypointRequest(nullptr, from) {} - AddWaypointRequest(AddWaypointRequest&& from) noexcept - : AddWaypointRequest() { + GetPathsRequest(const GetPathsRequest& from); + GetPathsRequest(GetPathsRequest&& from) noexcept + : GetPathsRequest() { *this = ::std::move(from); } - inline AddWaypointRequest& operator=(const AddWaypointRequest& from) { + inline GetPathsRequest& operator=(const GetPathsRequest& from) { CopyFrom(from); return *this; } - inline AddWaypointRequest& operator=(AddWaypointRequest&& from) noexcept { + inline GetPathsRequest& operator=(GetPathsRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3200,99 +2747,88 @@ class AddWaypointRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const AddWaypointRequest& default_instance() { + static const GetPathsRequest& default_instance() { return *internal_default_instance(); } - static inline const AddWaypointRequest* internal_default_instance() { - return reinterpret_cast( - &_AddWaypointRequest_default_instance_); + static inline const GetPathsRequest* internal_default_instance() { + return reinterpret_cast( + &_GetPathsRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 9; + 16; - friend void swap(AddWaypointRequest& a, AddWaypointRequest& b) { + friend void swap(GetPathsRequest& a, GetPathsRequest& b) { a.Swap(&b); } - inline void Swap(AddWaypointRequest* other) { + inline void Swap(GetPathsRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(AddWaypointRequest* other) { + void UnsafeArenaSwap(GetPathsRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - AddWaypointRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const AddWaypointRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const AddWaypointRequest& from) { - AddWaypointRequest::MergeImpl(*this, from); + GetPathsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPathsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetPathsRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(AddWaypointRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetPathsRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.navigation.v1.AddWaypointRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.navigation.v1.GetPathsRequest"; } protected: - explicit AddWaypointRequest(::google::protobuf::Arena* arena); - AddWaypointRequest(::google::protobuf::Arena* arena, const AddWaypointRequest& from); + explicit GetPathsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -3300,113 +2836,76 @@ class AddWaypointRequest final : enum : int { kNameFieldNumber = 1, - kLocationFieldNumber = 2, kExtraFieldNumber = 99, }; // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); std::string* _internal_mutable_name(); - public: - // .viam.common.v1.GeoPoint location = 2 [json_name = "location"]; - bool has_location() const; - void clear_location() ; - const ::viam::common::v1::GeoPoint& location() const; - PROTOBUF_NODISCARD ::viam::common::v1::GeoPoint* release_location(); - ::viam::common::v1::GeoPoint* mutable_location(); - void set_allocated_location(::viam::common::v1::GeoPoint* value); - void unsafe_arena_set_allocated_location(::viam::common::v1::GeoPoint* value); - ::viam::common::v1::GeoPoint* unsafe_arena_release_location(); - - private: - const ::viam::common::v1::GeoPoint& _internal_location() const; - ::viam::common::v1::GeoPoint* _internal_mutable_location(); - public: // .google.protobuf.Struct extra = 99 [json_name = "extra"]; bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - + bool _internal_has_extra() const; public: - // @@protoc_insertion_point(class_scope:viam.service.navigation.v1.AddWaypointRequest) + 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.service.navigation.v1.GetPathsRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 2, - 58, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::viam::common::v1::GeoPoint* location_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + 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_service_2fnavigation_2fv1_2fnavigation_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetWaypointsResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.navigation.v1.GetWaypointsResponse) */ { +class GetPathsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.navigation.v1.GetPathsResponse) */ { public: - inline GetWaypointsResponse() : GetWaypointsResponse(nullptr) {} - ~GetWaypointsResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetWaypointsResponse(::google::protobuf::internal::ConstantInitialized); + inline GetPathsResponse() : GetPathsResponse(nullptr) {} + ~GetPathsResponse() override; + explicit PROTOBUF_CONSTEXPR GetPathsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetWaypointsResponse(const GetWaypointsResponse& from) - : GetWaypointsResponse(nullptr, from) {} - GetWaypointsResponse(GetWaypointsResponse&& from) noexcept - : GetWaypointsResponse() { + GetPathsResponse(const GetPathsResponse& from); + GetPathsResponse(GetPathsResponse&& from) noexcept + : GetPathsResponse() { *this = ::std::move(from); } - inline GetWaypointsResponse& operator=(const GetWaypointsResponse& from) { + inline GetPathsResponse& operator=(const GetPathsResponse& from) { CopyFrom(from); return *this; } - inline GetWaypointsResponse& operator=(GetWaypointsResponse&& from) noexcept { + inline GetPathsResponse& operator=(GetPathsResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3416,180 +2915,149 @@ class GetWaypointsResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetWaypointsResponse& default_instance() { + static const GetPathsResponse& default_instance() { return *internal_default_instance(); } - static inline const GetWaypointsResponse* internal_default_instance() { - return reinterpret_cast( - &_GetWaypointsResponse_default_instance_); + static inline const GetPathsResponse* internal_default_instance() { + return reinterpret_cast( + &_GetPathsResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 8; + 17; - friend void swap(GetWaypointsResponse& a, GetWaypointsResponse& b) { + friend void swap(GetPathsResponse& a, GetPathsResponse& b) { a.Swap(&b); } - inline void Swap(GetWaypointsResponse* other) { + inline void Swap(GetPathsResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetWaypointsResponse* other) { + void UnsafeArenaSwap(GetPathsResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetWaypointsResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetWaypointsResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetWaypointsResponse& from) { - GetWaypointsResponse::MergeImpl(*this, from); + GetPathsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPathsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetPathsResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetWaypointsResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetPathsResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.navigation.v1.GetWaypointsResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.navigation.v1.GetPathsResponse"; } protected: - explicit GetWaypointsResponse(::google::protobuf::Arena* arena); - GetWaypointsResponse(::google::protobuf::Arena* arena, const GetWaypointsResponse& from); + explicit GetPathsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kWaypointsFieldNumber = 1, + kPathsFieldNumber = 1, }; - // repeated .viam.service.navigation.v1.Waypoint waypoints = 1 [json_name = "waypoints"]; - int waypoints_size() const; + // repeated .viam.service.navigation.v1.Path paths = 1 [json_name = "paths"]; + int paths_size() const; private: - int _internal_waypoints_size() const; - + int _internal_paths_size() const; public: - void clear_waypoints() ; - ::viam::service::navigation::v1::Waypoint* mutable_waypoints(int index); - ::google::protobuf::RepeatedPtrField< ::viam::service::navigation::v1::Waypoint >* - mutable_waypoints(); + void clear_paths(); + ::viam::service::navigation::v1::Path* mutable_paths(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::navigation::v1::Path >* + mutable_paths(); private: - const ::google::protobuf::RepeatedPtrField<::viam::service::navigation::v1::Waypoint>& _internal_waypoints() const; - ::google::protobuf::RepeatedPtrField<::viam::service::navigation::v1::Waypoint>* _internal_mutable_waypoints(); + const ::viam::service::navigation::v1::Path& _internal_paths(int index) const; + ::viam::service::navigation::v1::Path* _internal_add_paths(); public: - const ::viam::service::navigation::v1::Waypoint& waypoints(int index) const; - ::viam::service::navigation::v1::Waypoint* add_waypoints(); - const ::google::protobuf::RepeatedPtrField< ::viam::service::navigation::v1::Waypoint >& - waypoints() const; - // @@protoc_insertion_point(class_scope:viam.service.navigation.v1.GetWaypointsResponse) + const ::viam::service::navigation::v1::Path& paths(int index) const; + ::viam::service::navigation::v1::Path* add_paths(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::navigation::v1::Path >& + paths() const; + + // @@protoc_insertion_point(class_scope:viam.service.navigation.v1.GetPathsResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::service::navigation::v1::Waypoint > waypoints_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::navigation::v1::Path > paths_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fnavigation_2fv1_2fnavigation_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetPathsResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.navigation.v1.GetPathsResponse) */ { +class GetPropertiesRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.navigation.v1.GetPropertiesRequest) */ { public: - inline GetPathsResponse() : GetPathsResponse(nullptr) {} - ~GetPathsResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetPathsResponse(::google::protobuf::internal::ConstantInitialized); + inline GetPropertiesRequest() : GetPropertiesRequest(nullptr) {} + ~GetPropertiesRequest() override; + explicit PROTOBUF_CONSTEXPR GetPropertiesRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetPathsResponse(const GetPathsResponse& from) - : GetPathsResponse(nullptr, from) {} - GetPathsResponse(GetPathsResponse&& from) noexcept - : GetPathsResponse() { + GetPropertiesRequest(const GetPropertiesRequest& from); + GetPropertiesRequest(GetPropertiesRequest&& from) noexcept + : GetPropertiesRequest() { *this = ::std::move(from); } - inline GetPathsResponse& operator=(const GetPathsResponse& from) { + inline GetPropertiesRequest& operator=(const GetPropertiesRequest& from) { CopyFrom(from); return *this; } - inline GetPathsResponse& operator=(GetPathsResponse&& from) noexcept { + inline GetPropertiesRequest& operator=(GetPropertiesRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3599,180 +3067,145 @@ class GetPathsResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetPathsResponse& default_instance() { + static const GetPropertiesRequest& default_instance() { return *internal_default_instance(); } - static inline const GetPathsResponse* internal_default_instance() { - return reinterpret_cast( - &_GetPathsResponse_default_instance_); + static inline const GetPropertiesRequest* internal_default_instance() { + return reinterpret_cast( + &_GetPropertiesRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 17; + 18; - friend void swap(GetPathsResponse& a, GetPathsResponse& b) { + friend void swap(GetPropertiesRequest& a, GetPropertiesRequest& b) { a.Swap(&b); } - inline void Swap(GetPathsResponse* other) { + inline void Swap(GetPropertiesRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetPathsResponse* other) { + void UnsafeArenaSwap(GetPropertiesRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetPathsResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetPathsResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetPathsResponse& from) { - GetPathsResponse::MergeImpl(*this, from); + GetPropertiesRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPropertiesRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetPropertiesRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetPathsResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetPropertiesRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.navigation.v1.GetPathsResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.navigation.v1.GetPropertiesRequest"; } protected: - explicit GetPathsResponse(::google::protobuf::Arena* arena); - GetPathsResponse(::google::protobuf::Arena* arena, const GetPathsResponse& from); + explicit GetPropertiesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kPathsFieldNumber = 1, + kNameFieldNumber = 1, }; - // repeated .viam.service.navigation.v1.Path paths = 1 [json_name = "paths"]; - int paths_size() const; - private: - int _internal_paths_size() const; - - public: - void clear_paths() ; - ::viam::service::navigation::v1::Path* mutable_paths(int index); - ::google::protobuf::RepeatedPtrField< ::viam::service::navigation::v1::Path >* - mutable_paths(); + // 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 ::google::protobuf::RepeatedPtrField<::viam::service::navigation::v1::Path>& _internal_paths() const; - ::google::protobuf::RepeatedPtrField<::viam::service::navigation::v1::Path>* _internal_mutable_paths(); + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); public: - const ::viam::service::navigation::v1::Path& paths(int index) const; - ::viam::service::navigation::v1::Path* add_paths(); - const ::google::protobuf::RepeatedPtrField< ::viam::service::navigation::v1::Path >& - paths() const; - // @@protoc_insertion_point(class_scope:viam.service.navigation.v1.GetPathsResponse) + + // @@protoc_insertion_point(class_scope:viam.service.navigation.v1.GetPropertiesRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::service::navigation::v1::Path > paths_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fnavigation_2fv1_2fnavigation_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetObstaclesResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.navigation.v1.GetObstaclesResponse) */ { +class GetPropertiesResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.navigation.v1.GetPropertiesResponse) */ { public: - inline GetObstaclesResponse() : GetObstaclesResponse(nullptr) {} - ~GetObstaclesResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetObstaclesResponse(::google::protobuf::internal::ConstantInitialized); + inline GetPropertiesResponse() : GetPropertiesResponse(nullptr) {} + ~GetPropertiesResponse() override; + explicit PROTOBUF_CONSTEXPR GetPropertiesResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetObstaclesResponse(const GetObstaclesResponse& from) - : GetObstaclesResponse(nullptr, from) {} - GetObstaclesResponse(GetObstaclesResponse&& from) noexcept - : GetObstaclesResponse() { + GetPropertiesResponse(const GetPropertiesResponse& from); + GetPropertiesResponse(GetPropertiesResponse&& from) noexcept + : GetPropertiesResponse() { *this = ::std::move(from); } - inline GetObstaclesResponse& operator=(const GetObstaclesResponse& from) { + inline GetPropertiesResponse& operator=(const GetPropertiesResponse& from) { CopyFrom(from); return *this; } - inline GetObstaclesResponse& operator=(GetObstaclesResponse&& from) noexcept { + inline GetPropertiesResponse& operator=(GetPropertiesResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3782,313 +3215,259 @@ class GetObstaclesResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetObstaclesResponse& default_instance() { + static const GetPropertiesResponse& default_instance() { return *internal_default_instance(); } - static inline const GetObstaclesResponse* internal_default_instance() { - return reinterpret_cast( - &_GetObstaclesResponse_default_instance_); + static inline const GetPropertiesResponse* internal_default_instance() { + return reinterpret_cast( + &_GetPropertiesResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 14; + 19; - friend void swap(GetObstaclesResponse& a, GetObstaclesResponse& b) { + friend void swap(GetPropertiesResponse& a, GetPropertiesResponse& b) { a.Swap(&b); } - inline void Swap(GetObstaclesResponse* other) { + inline void Swap(GetPropertiesResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetObstaclesResponse* other) { + void UnsafeArenaSwap(GetPropertiesResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetObstaclesResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetObstaclesResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetObstaclesResponse& from) { - GetObstaclesResponse::MergeImpl(*this, from); + GetPropertiesResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPropertiesResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetPropertiesResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetObstaclesResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetPropertiesResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.navigation.v1.GetObstaclesResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.navigation.v1.GetPropertiesResponse"; } protected: - explicit GetObstaclesResponse(::google::protobuf::Arena* arena); - GetObstaclesResponse(::google::protobuf::Arena* arena, const GetObstaclesResponse& from); + explicit GetPropertiesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kObstaclesFieldNumber = 1, + kMapTypeFieldNumber = 1, }; - // repeated .viam.common.v1.GeoGeometry obstacles = 1 [json_name = "obstacles"]; - int obstacles_size() const; - private: - int _internal_obstacles_size() const; - - public: - void clear_obstacles() ; - ::viam::common::v1::GeoGeometry* mutable_obstacles(int index); - ::google::protobuf::RepeatedPtrField< ::viam::common::v1::GeoGeometry >* - mutable_obstacles(); + // .viam.service.navigation.v1.MapType map_type = 1 [json_name = "mapType"]; + void clear_map_type(); + ::viam::service::navigation::v1::MapType map_type() const; + void set_map_type(::viam::service::navigation::v1::MapType value); private: - const ::google::protobuf::RepeatedPtrField<::viam::common::v1::GeoGeometry>& _internal_obstacles() const; - ::google::protobuf::RepeatedPtrField<::viam::common::v1::GeoGeometry>* _internal_mutable_obstacles(); + ::viam::service::navigation::v1::MapType _internal_map_type() const; + void _internal_set_map_type(::viam::service::navigation::v1::MapType value); public: - const ::viam::common::v1::GeoGeometry& obstacles(int index) const; - ::viam::common::v1::GeoGeometry* add_obstacles(); - const ::google::protobuf::RepeatedPtrField< ::viam::common::v1::GeoGeometry >& - obstacles() const; - // @@protoc_insertion_point(class_scope:viam.service.navigation.v1.GetObstaclesResponse) + + // @@protoc_insertion_point(class_scope:viam.service.navigation.v1.GetPropertiesResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::common::v1::GeoGeometry > obstacles_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + int map_type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fnavigation_2fv1_2fnavigation_2eproto; }; - // =================================================================== - - // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ -// ------------------------------------------------------------------- - // GetModeRequest // string name = 1 [json_name = "name"]; inline void GetModeRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& GetModeRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetModeRequest::name() const { // @@protoc_insertion_point(field_get:viam.service.navigation.v1.GetModeRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetModeRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetModeRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.navigation.v1.GetModeRequest.name) } -inline std::string* GetModeRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetModeRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.service.navigation.v1.GetModeRequest.name) return _s; } inline const std::string& GetModeRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void GetModeRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* GetModeRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* GetModeRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.navigation.v1.GetModeRequest.name) - return _impl_.name_.Release(); -} -inline void GetModeRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void GetModeRequest::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.service.navigation.v1.GetModeRequest.name) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetModeRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool GetModeRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& GetModeRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetModeRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& GetModeRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetModeRequest::extra() const { // @@protoc_insertion_point(field_get:viam.service.navigation.v1.GetModeRequest.extra) return _internal_extra(); } -inline void GetModeRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void GetModeRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.navigation.v1.GetModeRequest.extra) } -inline ::google::protobuf::Struct* GetModeRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetModeRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* GetModeRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetModeRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.service.navigation.v1.GetModeRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* GetModeRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetModeRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* GetModeRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetModeRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.service.navigation.v1.GetModeRequest.extra) return _msg; } -inline void GetModeRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetModeRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.service.navigation.v1.GetModeRequest.extra) } @@ -4098,26 +3477,23 @@ inline void GetModeRequest::set_allocated_extra(::google::protobuf::Struct* valu // .viam.service.navigation.v1.Mode mode = 1 [json_name = "mode"]; inline void GetModeResponse::clear_mode() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.mode_ = 0; + mode_ = 0; +} +inline ::viam::service::navigation::v1::Mode GetModeResponse::_internal_mode() const { + return static_cast< ::viam::service::navigation::v1::Mode >(mode_); } inline ::viam::service::navigation::v1::Mode GetModeResponse::mode() const { // @@protoc_insertion_point(field_get:viam.service.navigation.v1.GetModeResponse.mode) return _internal_mode(); } +inline void GetModeResponse::_internal_set_mode(::viam::service::navigation::v1::Mode value) { + + mode_ = value; +} inline void GetModeResponse::set_mode(::viam::service::navigation::v1::Mode value) { _internal_set_mode(value); // @@protoc_insertion_point(field_set:viam.service.navigation.v1.GetModeResponse.mode) } -inline ::viam::service::navigation::v1::Mode GetModeResponse::_internal_mode() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::viam::service::navigation::v1::Mode>(_impl_.mode_); -} -inline void GetModeResponse::_internal_set_mode(::viam::service::navigation::v1::Mode value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.mode_ = value; -} // ------------------------------------------------------------------- @@ -4125,168 +3501,156 @@ inline void GetModeResponse::_internal_set_mode(::viam::service::navigation::v1: // string name = 1 [json_name = "name"]; inline void SetModeRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& SetModeRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& SetModeRequest::name() const { // @@protoc_insertion_point(field_get:viam.service.navigation.v1.SetModeRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void SetModeRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void SetModeRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.navigation.v1.SetModeRequest.name) } -inline std::string* SetModeRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* SetModeRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.service.navigation.v1.SetModeRequest.name) return _s; } inline const std::string& SetModeRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void SetModeRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* SetModeRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* SetModeRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.navigation.v1.SetModeRequest.name) - return _impl_.name_.Release(); -} -inline void SetModeRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void SetModeRequest::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.service.navigation.v1.SetModeRequest.name) } // .viam.service.navigation.v1.Mode mode = 2 [json_name = "mode"]; inline void SetModeRequest::clear_mode() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.mode_ = 0; + mode_ = 0; +} +inline ::viam::service::navigation::v1::Mode SetModeRequest::_internal_mode() const { + return static_cast< ::viam::service::navigation::v1::Mode >(mode_); } inline ::viam::service::navigation::v1::Mode SetModeRequest::mode() const { // @@protoc_insertion_point(field_get:viam.service.navigation.v1.SetModeRequest.mode) return _internal_mode(); } +inline void SetModeRequest::_internal_set_mode(::viam::service::navigation::v1::Mode value) { + + mode_ = value; +} inline void SetModeRequest::set_mode(::viam::service::navigation::v1::Mode value) { _internal_set_mode(value); // @@protoc_insertion_point(field_set:viam.service.navigation.v1.SetModeRequest.mode) } -inline ::viam::service::navigation::v1::Mode SetModeRequest::_internal_mode() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::viam::service::navigation::v1::Mode>(_impl_.mode_); -} -inline void SetModeRequest::_internal_set_mode(::viam::service::navigation::v1::Mode value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.mode_ = value; -} // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool SetModeRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool SetModeRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& SetModeRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& SetModeRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& SetModeRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& SetModeRequest::extra() const { // @@protoc_insertion_point(field_get:viam.service.navigation.v1.SetModeRequest.extra) return _internal_extra(); } -inline void SetModeRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void SetModeRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.navigation.v1.SetModeRequest.extra) } -inline ::google::protobuf::Struct* SetModeRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetModeRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* SetModeRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetModeRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.service.navigation.v1.SetModeRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* SetModeRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetModeRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* SetModeRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* SetModeRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.service.navigation.v1.SetModeRequest.extra) return _msg; } -inline void SetModeRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void SetModeRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.service.navigation.v1.SetModeRequest.extra) } @@ -4300,145 +3664,136 @@ inline void SetModeRequest::set_allocated_extra(::google::protobuf::Struct* valu // string id = 1 [json_name = "id"]; inline void Waypoint::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); + id_.ClearToEmpty(); } -inline const std::string& Waypoint::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Waypoint::id() const { // @@protoc_insertion_point(field_get:viam.service.navigation.v1.Waypoint.id) return _internal_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void Waypoint::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Waypoint::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.navigation.v1.Waypoint.id) } -inline std::string* Waypoint::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Waypoint::mutable_id() { std::string* _s = _internal_mutable_id(); // @@protoc_insertion_point(field_mutable:viam.service.navigation.v1.Waypoint.id) return _s; } inline const std::string& Waypoint::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); + return id_.Get(); } inline void Waypoint::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); + + id_.Set(value, GetArenaForAllocation()); } inline std::string* Waypoint::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); + + return id_.Mutable(GetArenaForAllocation()); } inline std::string* Waypoint::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.navigation.v1.Waypoint.id) - return _impl_.id_.Release(); -} -inline void Waypoint::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return id_.Release(); +} +inline void Waypoint::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.service.navigation.v1.Waypoint.id) } // .viam.common.v1.GeoPoint location = 2 [json_name = "location"]; +inline bool Waypoint::_internal_has_location() const { + return this != internal_default_instance() && location_ != nullptr; +} inline bool Waypoint::has_location() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.location_ != nullptr); - return value; + return _internal_has_location(); } inline const ::viam::common::v1::GeoPoint& Waypoint::_internal_location() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::common::v1::GeoPoint* p = _impl_.location_; - return p != nullptr ? *p : reinterpret_cast(::viam::common::v1::_GeoPoint_default_instance_); + const ::viam::common::v1::GeoPoint* p = location_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_GeoPoint_default_instance_); } -inline const ::viam::common::v1::GeoPoint& Waypoint::location() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::GeoPoint& Waypoint::location() const { // @@protoc_insertion_point(field_get:viam.service.navigation.v1.Waypoint.location) return _internal_location(); } -inline void Waypoint::unsafe_arena_set_allocated_location(::viam::common::v1::GeoPoint* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.location_); +inline void Waypoint::unsafe_arena_set_allocated_location( + ::viam::common::v1::GeoPoint* location) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(location_); } - _impl_.location_ = reinterpret_cast<::viam::common::v1::GeoPoint*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + location_ = location; + if (location) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.navigation.v1.Waypoint.location) } inline ::viam::common::v1::GeoPoint* Waypoint::release_location() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::GeoPoint* released = _impl_.location_; - _impl_.location_ = nullptr; + + ::viam::common::v1::GeoPoint* temp = location_; + location_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::common::v1::GeoPoint* Waypoint::unsafe_arena_release_location() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.navigation.v1.Waypoint.location) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::GeoPoint* temp = _impl_.location_; - _impl_.location_ = nullptr; + + ::viam::common::v1::GeoPoint* temp = location_; + location_ = nullptr; return temp; } inline ::viam::common::v1::GeoPoint* Waypoint::_internal_mutable_location() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.location_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::GeoPoint>(GetArena()); - _impl_.location_ = reinterpret_cast<::viam::common::v1::GeoPoint*>(p); + + if (location_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::GeoPoint>(GetArenaForAllocation()); + location_ = p; } - return _impl_.location_; + return location_; } -inline ::viam::common::v1::GeoPoint* Waypoint::mutable_location() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::GeoPoint* Waypoint::mutable_location() { ::viam::common::v1::GeoPoint* _msg = _internal_mutable_location(); // @@protoc_insertion_point(field_mutable:viam.service.navigation.v1.Waypoint.location) return _msg; } -inline void Waypoint::set_allocated_location(::viam::common::v1::GeoPoint* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Waypoint::set_allocated_location(::viam::common::v1::GeoPoint* location) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.location_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(location_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (location) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(location)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + location = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, location, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.location_ = reinterpret_cast<::viam::common::v1::GeoPoint*>(value); + location_ = location; // @@protoc_insertion_point(field_set_allocated:viam.service.navigation.v1.Waypoint.location) } @@ -4448,145 +3803,136 @@ inline void Waypoint::set_allocated_location(::viam::common::v1::GeoPoint* value // string name = 1 [json_name = "name"]; inline void GetLocationRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& GetLocationRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetLocationRequest::name() const { // @@protoc_insertion_point(field_get:viam.service.navigation.v1.GetLocationRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetLocationRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetLocationRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.navigation.v1.GetLocationRequest.name) } -inline std::string* GetLocationRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetLocationRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.service.navigation.v1.GetLocationRequest.name) return _s; } inline const std::string& GetLocationRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void GetLocationRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* GetLocationRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* GetLocationRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.navigation.v1.GetLocationRequest.name) - return _impl_.name_.Release(); -} -inline void GetLocationRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void GetLocationRequest::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.service.navigation.v1.GetLocationRequest.name) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetLocationRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool GetLocationRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& GetLocationRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetLocationRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& GetLocationRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetLocationRequest::extra() const { // @@protoc_insertion_point(field_get:viam.service.navigation.v1.GetLocationRequest.extra) return _internal_extra(); } -inline void GetLocationRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void GetLocationRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.navigation.v1.GetLocationRequest.extra) } -inline ::google::protobuf::Struct* GetLocationRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetLocationRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* GetLocationRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetLocationRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.service.navigation.v1.GetLocationRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* GetLocationRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetLocationRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* GetLocationRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetLocationRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.service.navigation.v1.GetLocationRequest.extra) return _msg; } -inline void GetLocationRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetLocationRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.service.navigation.v1.GetLocationRequest.extra) } @@ -4595,118 +3941,109 @@ inline void GetLocationRequest::set_allocated_extra(::google::protobuf::Struct* // GetLocationResponse // .viam.common.v1.GeoPoint location = 1 [json_name = "location"]; +inline bool GetLocationResponse::_internal_has_location() const { + return this != internal_default_instance() && location_ != nullptr; +} inline bool GetLocationResponse::has_location() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.location_ != nullptr); - return value; + return _internal_has_location(); } inline const ::viam::common::v1::GeoPoint& GetLocationResponse::_internal_location() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::common::v1::GeoPoint* p = _impl_.location_; - return p != nullptr ? *p : reinterpret_cast(::viam::common::v1::_GeoPoint_default_instance_); + const ::viam::common::v1::GeoPoint* p = location_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_GeoPoint_default_instance_); } -inline const ::viam::common::v1::GeoPoint& GetLocationResponse::location() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::GeoPoint& GetLocationResponse::location() const { // @@protoc_insertion_point(field_get:viam.service.navigation.v1.GetLocationResponse.location) return _internal_location(); } -inline void GetLocationResponse::unsafe_arena_set_allocated_location(::viam::common::v1::GeoPoint* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.location_); +inline void GetLocationResponse::unsafe_arena_set_allocated_location( + ::viam::common::v1::GeoPoint* location) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(location_); } - _impl_.location_ = reinterpret_cast<::viam::common::v1::GeoPoint*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + location_ = location; + if (location) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.navigation.v1.GetLocationResponse.location) } inline ::viam::common::v1::GeoPoint* GetLocationResponse::release_location() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::GeoPoint* released = _impl_.location_; - _impl_.location_ = nullptr; + + ::viam::common::v1::GeoPoint* temp = location_; + location_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::common::v1::GeoPoint* GetLocationResponse::unsafe_arena_release_location() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.navigation.v1.GetLocationResponse.location) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::GeoPoint* temp = _impl_.location_; - _impl_.location_ = nullptr; + + ::viam::common::v1::GeoPoint* temp = location_; + location_ = nullptr; return temp; } inline ::viam::common::v1::GeoPoint* GetLocationResponse::_internal_mutable_location() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.location_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::GeoPoint>(GetArena()); - _impl_.location_ = reinterpret_cast<::viam::common::v1::GeoPoint*>(p); + + if (location_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::GeoPoint>(GetArenaForAllocation()); + location_ = p; } - return _impl_.location_; + return location_; } -inline ::viam::common::v1::GeoPoint* GetLocationResponse::mutable_location() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::GeoPoint* GetLocationResponse::mutable_location() { ::viam::common::v1::GeoPoint* _msg = _internal_mutable_location(); // @@protoc_insertion_point(field_mutable:viam.service.navigation.v1.GetLocationResponse.location) return _msg; } -inline void GetLocationResponse::set_allocated_location(::viam::common::v1::GeoPoint* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetLocationResponse::set_allocated_location(::viam::common::v1::GeoPoint* location) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.location_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(location_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (location) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(location)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + location = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, location, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.location_ = reinterpret_cast<::viam::common::v1::GeoPoint*>(value); + location_ = location; // @@protoc_insertion_point(field_set_allocated:viam.service.navigation.v1.GetLocationResponse.location) } // double compass_heading = 2 [json_name = "compassHeading"]; inline void GetLocationResponse::clear_compass_heading() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.compass_heading_ = 0; + compass_heading_ = 0; +} +inline double GetLocationResponse::_internal_compass_heading() const { + return compass_heading_; } inline double GetLocationResponse::compass_heading() const { // @@protoc_insertion_point(field_get:viam.service.navigation.v1.GetLocationResponse.compass_heading) return _internal_compass_heading(); } +inline void GetLocationResponse::_internal_set_compass_heading(double value) { + + compass_heading_ = value; +} inline void GetLocationResponse::set_compass_heading(double value) { _internal_set_compass_heading(value); // @@protoc_insertion_point(field_set:viam.service.navigation.v1.GetLocationResponse.compass_heading) } -inline double GetLocationResponse::_internal_compass_heading() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.compass_heading_; -} -inline void GetLocationResponse::_internal_set_compass_heading(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.compass_heading_ = value; -} // ------------------------------------------------------------------- @@ -4714,145 +4051,136 @@ inline void GetLocationResponse::_internal_set_compass_heading(double value) { // string name = 1 [json_name = "name"]; inline void GetWaypointsRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& GetWaypointsRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetWaypointsRequest::name() const { // @@protoc_insertion_point(field_get:viam.service.navigation.v1.GetWaypointsRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetWaypointsRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetWaypointsRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.navigation.v1.GetWaypointsRequest.name) } -inline std::string* GetWaypointsRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetWaypointsRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.service.navigation.v1.GetWaypointsRequest.name) return _s; } inline const std::string& GetWaypointsRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void GetWaypointsRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* GetWaypointsRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* GetWaypointsRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.navigation.v1.GetWaypointsRequest.name) - return _impl_.name_.Release(); -} -inline void GetWaypointsRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void GetWaypointsRequest::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.service.navigation.v1.GetWaypointsRequest.name) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetWaypointsRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool GetWaypointsRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& GetWaypointsRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetWaypointsRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& GetWaypointsRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetWaypointsRequest::extra() const { // @@protoc_insertion_point(field_get:viam.service.navigation.v1.GetWaypointsRequest.extra) return _internal_extra(); } -inline void GetWaypointsRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void GetWaypointsRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.navigation.v1.GetWaypointsRequest.extra) } -inline ::google::protobuf::Struct* GetWaypointsRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetWaypointsRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* GetWaypointsRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetWaypointsRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.service.navigation.v1.GetWaypointsRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* GetWaypointsRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetWaypointsRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* GetWaypointsRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetWaypointsRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.service.navigation.v1.GetWaypointsRequest.extra) return _msg; } -inline void GetWaypointsRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetWaypointsRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.service.navigation.v1.GetWaypointsRequest.extra) } @@ -4862,51 +4190,42 @@ inline void GetWaypointsRequest::set_allocated_extra(::google::protobuf::Struct* // repeated .viam.service.navigation.v1.Waypoint waypoints = 1 [json_name = "waypoints"]; inline int GetWaypointsResponse::_internal_waypoints_size() const { - return _internal_waypoints().size(); + return waypoints_.size(); } inline int GetWaypointsResponse::waypoints_size() const { return _internal_waypoints_size(); } inline void GetWaypointsResponse::clear_waypoints() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.waypoints_.Clear(); + waypoints_.Clear(); } -inline ::viam::service::navigation::v1::Waypoint* GetWaypointsResponse::mutable_waypoints(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::service::navigation::v1::Waypoint* GetWaypointsResponse::mutable_waypoints(int index) { // @@protoc_insertion_point(field_mutable:viam.service.navigation.v1.GetWaypointsResponse.waypoints) - return _internal_mutable_waypoints()->Mutable(index); + return waypoints_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::service::navigation::v1::Waypoint>* GetWaypointsResponse::mutable_waypoints() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::navigation::v1::Waypoint >* +GetWaypointsResponse::mutable_waypoints() { // @@protoc_insertion_point(field_mutable_list:viam.service.navigation.v1.GetWaypointsResponse.waypoints) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_waypoints(); + return &waypoints_; } -inline const ::viam::service::navigation::v1::Waypoint& GetWaypointsResponse::waypoints(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::service::navigation::v1::Waypoint& GetWaypointsResponse::_internal_waypoints(int index) const { + return waypoints_.Get(index); +} +inline const ::viam::service::navigation::v1::Waypoint& GetWaypointsResponse::waypoints(int index) const { // @@protoc_insertion_point(field_get:viam.service.navigation.v1.GetWaypointsResponse.waypoints) - return _internal_waypoints().Get(index); + return _internal_waypoints(index); +} +inline ::viam::service::navigation::v1::Waypoint* GetWaypointsResponse::_internal_add_waypoints() { + return waypoints_.Add(); } -inline ::viam::service::navigation::v1::Waypoint* GetWaypointsResponse::add_waypoints() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::service::navigation::v1::Waypoint* _add = _internal_mutable_waypoints()->Add(); +inline ::viam::service::navigation::v1::Waypoint* GetWaypointsResponse::add_waypoints() { + ::viam::service::navigation::v1::Waypoint* _add = _internal_add_waypoints(); // @@protoc_insertion_point(field_add:viam.service.navigation.v1.GetWaypointsResponse.waypoints) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::service::navigation::v1::Waypoint>& GetWaypointsResponse::waypoints() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::navigation::v1::Waypoint >& +GetWaypointsResponse::waypoints() const { // @@protoc_insertion_point(field_list:viam.service.navigation.v1.GetWaypointsResponse.waypoints) - return _internal_waypoints(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::service::navigation::v1::Waypoint>& -GetWaypointsResponse::_internal_waypoints() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.waypoints_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::service::navigation::v1::Waypoint>* -GetWaypointsResponse::_internal_mutable_waypoints() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.waypoints_; + return waypoints_; } // ------------------------------------------------------------------- @@ -4915,236 +4234,221 @@ GetWaypointsResponse::_internal_mutable_waypoints() { // string name = 1 [json_name = "name"]; inline void AddWaypointRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& AddWaypointRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& AddWaypointRequest::name() const { // @@protoc_insertion_point(field_get:viam.service.navigation.v1.AddWaypointRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void AddWaypointRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void AddWaypointRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.navigation.v1.AddWaypointRequest.name) } -inline std::string* AddWaypointRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* AddWaypointRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.service.navigation.v1.AddWaypointRequest.name) return _s; } inline const std::string& AddWaypointRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void AddWaypointRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* AddWaypointRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* AddWaypointRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.navigation.v1.AddWaypointRequest.name) - return _impl_.name_.Release(); -} -inline void AddWaypointRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void AddWaypointRequest::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.service.navigation.v1.AddWaypointRequest.name) } // .viam.common.v1.GeoPoint location = 2 [json_name = "location"]; +inline bool AddWaypointRequest::_internal_has_location() const { + return this != internal_default_instance() && location_ != nullptr; +} inline bool AddWaypointRequest::has_location() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.location_ != nullptr); - return value; + return _internal_has_location(); } inline const ::viam::common::v1::GeoPoint& AddWaypointRequest::_internal_location() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::common::v1::GeoPoint* p = _impl_.location_; - return p != nullptr ? *p : reinterpret_cast(::viam::common::v1::_GeoPoint_default_instance_); + const ::viam::common::v1::GeoPoint* p = location_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_GeoPoint_default_instance_); } -inline const ::viam::common::v1::GeoPoint& AddWaypointRequest::location() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::GeoPoint& AddWaypointRequest::location() const { // @@protoc_insertion_point(field_get:viam.service.navigation.v1.AddWaypointRequest.location) return _internal_location(); } -inline void AddWaypointRequest::unsafe_arena_set_allocated_location(::viam::common::v1::GeoPoint* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.location_); +inline void AddWaypointRequest::unsafe_arena_set_allocated_location( + ::viam::common::v1::GeoPoint* location) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(location_); } - _impl_.location_ = reinterpret_cast<::viam::common::v1::GeoPoint*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + location_ = location; + if (location) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.navigation.v1.AddWaypointRequest.location) } inline ::viam::common::v1::GeoPoint* AddWaypointRequest::release_location() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::GeoPoint* released = _impl_.location_; - _impl_.location_ = nullptr; + + ::viam::common::v1::GeoPoint* temp = location_; + location_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::common::v1::GeoPoint* AddWaypointRequest::unsafe_arena_release_location() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.navigation.v1.AddWaypointRequest.location) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::GeoPoint* temp = _impl_.location_; - _impl_.location_ = nullptr; + + ::viam::common::v1::GeoPoint* temp = location_; + location_ = nullptr; return temp; } inline ::viam::common::v1::GeoPoint* AddWaypointRequest::_internal_mutable_location() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.location_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::GeoPoint>(GetArena()); - _impl_.location_ = reinterpret_cast<::viam::common::v1::GeoPoint*>(p); + + if (location_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::GeoPoint>(GetArenaForAllocation()); + location_ = p; } - return _impl_.location_; + return location_; } -inline ::viam::common::v1::GeoPoint* AddWaypointRequest::mutable_location() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::GeoPoint* AddWaypointRequest::mutable_location() { ::viam::common::v1::GeoPoint* _msg = _internal_mutable_location(); // @@protoc_insertion_point(field_mutable:viam.service.navigation.v1.AddWaypointRequest.location) return _msg; } -inline void AddWaypointRequest::set_allocated_location(::viam::common::v1::GeoPoint* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void AddWaypointRequest::set_allocated_location(::viam::common::v1::GeoPoint* location) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.location_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(location_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (location) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(location)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + location = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, location, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.location_ = reinterpret_cast<::viam::common::v1::GeoPoint*>(value); + location_ = location; // @@protoc_insertion_point(field_set_allocated:viam.service.navigation.v1.AddWaypointRequest.location) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool AddWaypointRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool AddWaypointRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& AddWaypointRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& AddWaypointRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& AddWaypointRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& AddWaypointRequest::extra() const { // @@protoc_insertion_point(field_get:viam.service.navigation.v1.AddWaypointRequest.extra) return _internal_extra(); } -inline void AddWaypointRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void AddWaypointRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.navigation.v1.AddWaypointRequest.extra) } -inline ::google::protobuf::Struct* AddWaypointRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* AddWaypointRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* AddWaypointRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* AddWaypointRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.service.navigation.v1.AddWaypointRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* AddWaypointRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* AddWaypointRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* AddWaypointRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* AddWaypointRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.service.navigation.v1.AddWaypointRequest.extra) return _msg; } -inline void AddWaypointRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void AddWaypointRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.service.navigation.v1.AddWaypointRequest.extra) } @@ -5158,198 +4462,186 @@ inline void AddWaypointRequest::set_allocated_extra(::google::protobuf::Struct* // string name = 1 [json_name = "name"]; inline void RemoveWaypointRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& RemoveWaypointRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& RemoveWaypointRequest::name() const { // @@protoc_insertion_point(field_get:viam.service.navigation.v1.RemoveWaypointRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void RemoveWaypointRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void RemoveWaypointRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.navigation.v1.RemoveWaypointRequest.name) } -inline std::string* RemoveWaypointRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* RemoveWaypointRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.service.navigation.v1.RemoveWaypointRequest.name) return _s; } inline const std::string& RemoveWaypointRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void RemoveWaypointRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* RemoveWaypointRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* RemoveWaypointRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.navigation.v1.RemoveWaypointRequest.name) - return _impl_.name_.Release(); -} -inline void RemoveWaypointRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void RemoveWaypointRequest::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.service.navigation.v1.RemoveWaypointRequest.name) } // string id = 2 [json_name = "id"]; inline void RemoveWaypointRequest::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); + id_.ClearToEmpty(); } -inline const std::string& RemoveWaypointRequest::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& RemoveWaypointRequest::id() const { // @@protoc_insertion_point(field_get:viam.service.navigation.v1.RemoveWaypointRequest.id) return _internal_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void RemoveWaypointRequest::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void RemoveWaypointRequest::set_id(ArgT0&& arg0, ArgT... args) { + + id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.navigation.v1.RemoveWaypointRequest.id) } -inline std::string* RemoveWaypointRequest::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* RemoveWaypointRequest::mutable_id() { std::string* _s = _internal_mutable_id(); // @@protoc_insertion_point(field_mutable:viam.service.navigation.v1.RemoveWaypointRequest.id) return _s; } inline const std::string& RemoveWaypointRequest::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); + return id_.Get(); } inline void RemoveWaypointRequest::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.id_.Set(value, GetArena()); + + id_.Set(value, GetArenaForAllocation()); } inline std::string* RemoveWaypointRequest::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.id_.Mutable( GetArena()); + + return id_.Mutable(GetArenaForAllocation()); } inline std::string* RemoveWaypointRequest::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.navigation.v1.RemoveWaypointRequest.id) - return _impl_.id_.Release(); -} -inline void RemoveWaypointRequest::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return id_.Release(); +} +inline void RemoveWaypointRequest::set_allocated_id(std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocated(id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (id_.IsDefault()) { + id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.service.navigation.v1.RemoveWaypointRequest.id) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool RemoveWaypointRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool RemoveWaypointRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& RemoveWaypointRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& RemoveWaypointRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& RemoveWaypointRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& RemoveWaypointRequest::extra() const { // @@protoc_insertion_point(field_get:viam.service.navigation.v1.RemoveWaypointRequest.extra) return _internal_extra(); } -inline void RemoveWaypointRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void RemoveWaypointRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.navigation.v1.RemoveWaypointRequest.extra) } -inline ::google::protobuf::Struct* RemoveWaypointRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* RemoveWaypointRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* RemoveWaypointRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* RemoveWaypointRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.service.navigation.v1.RemoveWaypointRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* RemoveWaypointRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* RemoveWaypointRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* RemoveWaypointRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* RemoveWaypointRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.service.navigation.v1.RemoveWaypointRequest.extra) return _msg; } -inline void RemoveWaypointRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void RemoveWaypointRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.service.navigation.v1.RemoveWaypointRequest.extra) } @@ -5363,145 +4655,136 @@ inline void RemoveWaypointRequest::set_allocated_extra(::google::protobuf::Struc // string name = 1 [json_name = "name"]; inline void GetObstaclesRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& GetObstaclesRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetObstaclesRequest::name() const { // @@protoc_insertion_point(field_get:viam.service.navigation.v1.GetObstaclesRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetObstaclesRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetObstaclesRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.navigation.v1.GetObstaclesRequest.name) } -inline std::string* GetObstaclesRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetObstaclesRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.service.navigation.v1.GetObstaclesRequest.name) return _s; } inline const std::string& GetObstaclesRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void GetObstaclesRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* GetObstaclesRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* GetObstaclesRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.navigation.v1.GetObstaclesRequest.name) - return _impl_.name_.Release(); -} -inline void GetObstaclesRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void GetObstaclesRequest::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.service.navigation.v1.GetObstaclesRequest.name) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetObstaclesRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool GetObstaclesRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& GetObstaclesRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetObstaclesRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& GetObstaclesRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetObstaclesRequest::extra() const { // @@protoc_insertion_point(field_get:viam.service.navigation.v1.GetObstaclesRequest.extra) return _internal_extra(); } -inline void GetObstaclesRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void GetObstaclesRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.navigation.v1.GetObstaclesRequest.extra) } -inline ::google::protobuf::Struct* GetObstaclesRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetObstaclesRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* GetObstaclesRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetObstaclesRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.service.navigation.v1.GetObstaclesRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* GetObstaclesRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetObstaclesRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* GetObstaclesRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetObstaclesRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.service.navigation.v1.GetObstaclesRequest.extra) return _msg; } -inline void GetObstaclesRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetObstaclesRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.service.navigation.v1.GetObstaclesRequest.extra) } @@ -5511,47 +4794,39 @@ inline void GetObstaclesRequest::set_allocated_extra(::google::protobuf::Struct* // repeated .viam.common.v1.GeoGeometry obstacles = 1 [json_name = "obstacles"]; inline int GetObstaclesResponse::_internal_obstacles_size() const { - return _internal_obstacles().size(); + return obstacles_.size(); } inline int GetObstaclesResponse::obstacles_size() const { return _internal_obstacles_size(); } -inline ::viam::common::v1::GeoGeometry* GetObstaclesResponse::mutable_obstacles(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::GeoGeometry* GetObstaclesResponse::mutable_obstacles(int index) { // @@protoc_insertion_point(field_mutable:viam.service.navigation.v1.GetObstaclesResponse.obstacles) - return _internal_mutable_obstacles()->Mutable(index); + return obstacles_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::common::v1::GeoGeometry>* GetObstaclesResponse::mutable_obstacles() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::GeoGeometry >* +GetObstaclesResponse::mutable_obstacles() { // @@protoc_insertion_point(field_mutable_list:viam.service.navigation.v1.GetObstaclesResponse.obstacles) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_obstacles(); + return &obstacles_; } -inline const ::viam::common::v1::GeoGeometry& GetObstaclesResponse::obstacles(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::GeoGeometry& GetObstaclesResponse::_internal_obstacles(int index) const { + return obstacles_.Get(index); +} +inline const ::viam::common::v1::GeoGeometry& GetObstaclesResponse::obstacles(int index) const { // @@protoc_insertion_point(field_get:viam.service.navigation.v1.GetObstaclesResponse.obstacles) - return _internal_obstacles().Get(index); + return _internal_obstacles(index); +} +inline ::viam::common::v1::GeoGeometry* GetObstaclesResponse::_internal_add_obstacles() { + return obstacles_.Add(); } -inline ::viam::common::v1::GeoGeometry* GetObstaclesResponse::add_obstacles() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::common::v1::GeoGeometry* _add = _internal_mutable_obstacles()->Add(); +inline ::viam::common::v1::GeoGeometry* GetObstaclesResponse::add_obstacles() { + ::viam::common::v1::GeoGeometry* _add = _internal_add_obstacles(); // @@protoc_insertion_point(field_add:viam.service.navigation.v1.GetObstaclesResponse.obstacles) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::common::v1::GeoGeometry>& GetObstaclesResponse::obstacles() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::GeoGeometry >& +GetObstaclesResponse::obstacles() const { // @@protoc_insertion_point(field_list:viam.service.navigation.v1.GetObstaclesResponse.obstacles) - return _internal_obstacles(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::common::v1::GeoGeometry>& -GetObstaclesResponse::_internal_obstacles() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.obstacles_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::common::v1::GeoGeometry>* -GetObstaclesResponse::_internal_mutable_obstacles() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.obstacles_; + return obstacles_; } // ------------------------------------------------------------------- @@ -5560,100 +4835,89 @@ GetObstaclesResponse::_internal_mutable_obstacles() { // string destination_waypoint_id = 1 [json_name = "destinationWaypointId"]; inline void Path::clear_destination_waypoint_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.destination_waypoint_id_.ClearToEmpty(); + destination_waypoint_id_.ClearToEmpty(); } -inline const std::string& Path::destination_waypoint_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Path::destination_waypoint_id() const { // @@protoc_insertion_point(field_get:viam.service.navigation.v1.Path.destination_waypoint_id) return _internal_destination_waypoint_id(); } -template -inline PROTOBUF_ALWAYS_INLINE void Path::set_destination_waypoint_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.destination_waypoint_id_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Path::set_destination_waypoint_id(ArgT0&& arg0, ArgT... args) { + + destination_waypoint_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.navigation.v1.Path.destination_waypoint_id) } -inline std::string* Path::mutable_destination_waypoint_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Path::mutable_destination_waypoint_id() { std::string* _s = _internal_mutable_destination_waypoint_id(); // @@protoc_insertion_point(field_mutable:viam.service.navigation.v1.Path.destination_waypoint_id) return _s; } inline const std::string& Path::_internal_destination_waypoint_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.destination_waypoint_id_.Get(); + return destination_waypoint_id_.Get(); } inline void Path::_internal_set_destination_waypoint_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.destination_waypoint_id_.Set(value, GetArena()); + + destination_waypoint_id_.Set(value, GetArenaForAllocation()); } inline std::string* Path::_internal_mutable_destination_waypoint_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.destination_waypoint_id_.Mutable( GetArena()); + + return destination_waypoint_id_.Mutable(GetArenaForAllocation()); } inline std::string* Path::release_destination_waypoint_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.navigation.v1.Path.destination_waypoint_id) - return _impl_.destination_waypoint_id_.Release(); -} -inline void Path::set_allocated_destination_waypoint_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.destination_waypoint_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.destination_waypoint_id_.IsDefault()) { - _impl_.destination_waypoint_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return destination_waypoint_id_.Release(); +} +inline void Path::set_allocated_destination_waypoint_id(std::string* destination_waypoint_id) { + if (destination_waypoint_id != nullptr) { + + } else { + + } + destination_waypoint_id_.SetAllocated(destination_waypoint_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (destination_waypoint_id_.IsDefault()) { + destination_waypoint_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.service.navigation.v1.Path.destination_waypoint_id) } // repeated .viam.common.v1.GeoPoint geopoints = 2 [json_name = "geopoints"]; inline int Path::_internal_geopoints_size() const { - return _internal_geopoints().size(); + return geopoints_.size(); } inline int Path::geopoints_size() const { return _internal_geopoints_size(); } -inline ::viam::common::v1::GeoPoint* Path::mutable_geopoints(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::GeoPoint* Path::mutable_geopoints(int index) { // @@protoc_insertion_point(field_mutable:viam.service.navigation.v1.Path.geopoints) - return _internal_mutable_geopoints()->Mutable(index); + return geopoints_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::common::v1::GeoPoint>* Path::mutable_geopoints() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::GeoPoint >* +Path::mutable_geopoints() { // @@protoc_insertion_point(field_mutable_list:viam.service.navigation.v1.Path.geopoints) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_geopoints(); + return &geopoints_; } -inline const ::viam::common::v1::GeoPoint& Path::geopoints(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::GeoPoint& Path::_internal_geopoints(int index) const { + return geopoints_.Get(index); +} +inline const ::viam::common::v1::GeoPoint& Path::geopoints(int index) const { // @@protoc_insertion_point(field_get:viam.service.navigation.v1.Path.geopoints) - return _internal_geopoints().Get(index); + return _internal_geopoints(index); +} +inline ::viam::common::v1::GeoPoint* Path::_internal_add_geopoints() { + return geopoints_.Add(); } -inline ::viam::common::v1::GeoPoint* Path::add_geopoints() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::common::v1::GeoPoint* _add = _internal_mutable_geopoints()->Add(); +inline ::viam::common::v1::GeoPoint* Path::add_geopoints() { + ::viam::common::v1::GeoPoint* _add = _internal_add_geopoints(); // @@protoc_insertion_point(field_add:viam.service.navigation.v1.Path.geopoints) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::common::v1::GeoPoint>& Path::geopoints() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::GeoPoint >& +Path::geopoints() const { // @@protoc_insertion_point(field_list:viam.service.navigation.v1.Path.geopoints) - return _internal_geopoints(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::common::v1::GeoPoint>& -Path::_internal_geopoints() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.geopoints_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::common::v1::GeoPoint>* -Path::_internal_mutable_geopoints() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.geopoints_; + return geopoints_; } // ------------------------------------------------------------------- @@ -5662,145 +4926,136 @@ Path::_internal_mutable_geopoints() { // string name = 1 [json_name = "name"]; inline void GetPathsRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& GetPathsRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetPathsRequest::name() const { // @@protoc_insertion_point(field_get:viam.service.navigation.v1.GetPathsRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetPathsRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetPathsRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.navigation.v1.GetPathsRequest.name) } -inline std::string* GetPathsRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetPathsRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.service.navigation.v1.GetPathsRequest.name) return _s; } inline const std::string& GetPathsRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void GetPathsRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* GetPathsRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* GetPathsRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.navigation.v1.GetPathsRequest.name) - return _impl_.name_.Release(); -} -inline void GetPathsRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void GetPathsRequest::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.service.navigation.v1.GetPathsRequest.name) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetPathsRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool GetPathsRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& GetPathsRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetPathsRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& GetPathsRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetPathsRequest::extra() const { // @@protoc_insertion_point(field_get:viam.service.navigation.v1.GetPathsRequest.extra) return _internal_extra(); } -inline void GetPathsRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void GetPathsRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.navigation.v1.GetPathsRequest.extra) } -inline ::google::protobuf::Struct* GetPathsRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPathsRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* GetPathsRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPathsRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.service.navigation.v1.GetPathsRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* GetPathsRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPathsRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* GetPathsRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPathsRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.service.navigation.v1.GetPathsRequest.extra) return _msg; } -inline void GetPathsRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetPathsRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.service.navigation.v1.GetPathsRequest.extra) } @@ -5810,51 +5065,42 @@ inline void GetPathsRequest::set_allocated_extra(::google::protobuf::Struct* val // repeated .viam.service.navigation.v1.Path paths = 1 [json_name = "paths"]; inline int GetPathsResponse::_internal_paths_size() const { - return _internal_paths().size(); + return paths_.size(); } inline int GetPathsResponse::paths_size() const { return _internal_paths_size(); } inline void GetPathsResponse::clear_paths() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.paths_.Clear(); + paths_.Clear(); } -inline ::viam::service::navigation::v1::Path* GetPathsResponse::mutable_paths(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::service::navigation::v1::Path* GetPathsResponse::mutable_paths(int index) { // @@protoc_insertion_point(field_mutable:viam.service.navigation.v1.GetPathsResponse.paths) - return _internal_mutable_paths()->Mutable(index); + return paths_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::service::navigation::v1::Path>* GetPathsResponse::mutable_paths() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::navigation::v1::Path >* +GetPathsResponse::mutable_paths() { // @@protoc_insertion_point(field_mutable_list:viam.service.navigation.v1.GetPathsResponse.paths) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_paths(); + return &paths_; +} +inline const ::viam::service::navigation::v1::Path& GetPathsResponse::_internal_paths(int index) const { + return paths_.Get(index); } -inline const ::viam::service::navigation::v1::Path& GetPathsResponse::paths(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::service::navigation::v1::Path& GetPathsResponse::paths(int index) const { // @@protoc_insertion_point(field_get:viam.service.navigation.v1.GetPathsResponse.paths) - return _internal_paths().Get(index); + return _internal_paths(index); } -inline ::viam::service::navigation::v1::Path* GetPathsResponse::add_paths() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::service::navigation::v1::Path* _add = _internal_mutable_paths()->Add(); +inline ::viam::service::navigation::v1::Path* GetPathsResponse::_internal_add_paths() { + return paths_.Add(); +} +inline ::viam::service::navigation::v1::Path* GetPathsResponse::add_paths() { + ::viam::service::navigation::v1::Path* _add = _internal_add_paths(); // @@protoc_insertion_point(field_add:viam.service.navigation.v1.GetPathsResponse.paths) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::service::navigation::v1::Path>& GetPathsResponse::paths() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::navigation::v1::Path >& +GetPathsResponse::paths() const { // @@protoc_insertion_point(field_list:viam.service.navigation.v1.GetPathsResponse.paths) - return _internal_paths(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::service::navigation::v1::Path>& -GetPathsResponse::_internal_paths() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.paths_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::service::navigation::v1::Path>* -GetPathsResponse::_internal_mutable_paths() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.paths_; + return paths_; } // ------------------------------------------------------------------- @@ -5863,54 +5109,51 @@ GetPathsResponse::_internal_mutable_paths() { // string name = 1 [json_name = "name"]; inline void GetPropertiesRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& GetPropertiesRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetPropertiesRequest::name() const { // @@protoc_insertion_point(field_get:viam.service.navigation.v1.GetPropertiesRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetPropertiesRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetPropertiesRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.navigation.v1.GetPropertiesRequest.name) } -inline std::string* GetPropertiesRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetPropertiesRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.service.navigation.v1.GetPropertiesRequest.name) return _s; } inline const std::string& GetPropertiesRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void GetPropertiesRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* GetPropertiesRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* GetPropertiesRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.navigation.v1.GetPropertiesRequest.name) - return _impl_.name_.Release(); -} -inline void GetPropertiesRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void GetPropertiesRequest::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.service.navigation.v1.GetPropertiesRequest.name) } @@ -5920,59 +5163,89 @@ inline void GetPropertiesRequest::set_allocated_name(std::string* value) { // .viam.service.navigation.v1.MapType map_type = 1 [json_name = "mapType"]; inline void GetPropertiesResponse::clear_map_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.map_type_ = 0; + map_type_ = 0; +} +inline ::viam::service::navigation::v1::MapType GetPropertiesResponse::_internal_map_type() const { + return static_cast< ::viam::service::navigation::v1::MapType >(map_type_); } inline ::viam::service::navigation::v1::MapType GetPropertiesResponse::map_type() const { // @@protoc_insertion_point(field_get:viam.service.navigation.v1.GetPropertiesResponse.map_type) return _internal_map_type(); } +inline void GetPropertiesResponse::_internal_set_map_type(::viam::service::navigation::v1::MapType value) { + + map_type_ = value; +} inline void GetPropertiesResponse::set_map_type(::viam::service::navigation::v1::MapType value) { _internal_set_map_type(value); // @@protoc_insertion_point(field_set:viam.service.navigation.v1.GetPropertiesResponse.map_type) } -inline ::viam::service::navigation::v1::MapType GetPropertiesResponse::_internal_map_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::viam::service::navigation::v1::MapType>(_impl_.map_type_); -} -inline void GetPropertiesResponse::_internal_set_map_type(::viam::service::navigation::v1::MapType value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.map_type_ = value; -} #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) + } // namespace v1 } // namespace navigation } // namespace service } // namespace viam +PROTOBUF_NAMESPACE_OPEN -namespace google { -namespace protobuf { - -template <> -struct is_proto_enum<::viam::service::navigation::v1::MapType> : std::true_type {}; +template <> struct is_proto_enum< ::viam::service::navigation::v1::MapType> : ::std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor<::viam::service::navigation::v1::MapType>() { +inline const EnumDescriptor* GetEnumDescriptor< ::viam::service::navigation::v1::MapType>() { return ::viam::service::navigation::v1::MapType_descriptor(); } +template <> struct is_proto_enum< ::viam::service::navigation::v1::Mode> : ::std::true_type {}; template <> -struct is_proto_enum<::viam::service::navigation::v1::Mode> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::viam::service::navigation::v1::Mode>() { +inline const EnumDescriptor* GetEnumDescriptor< ::viam::service::navigation::v1::Mode>() { return ::viam::service::navigation::v1::Mode_descriptor(); } -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_service_2fnavigation_2fv1_2fnavigation_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_service_2fnavigation_2fv1_2fnavigation_2eproto diff --git a/src/viam/api/service/sensors/v1/sensors.grpc.pb.cc b/src/viam/api/service/sensors/v1/sensors.grpc.pb.cc index b377c477b..7a6fb88d9 100644 --- a/src/viam/api/service/sensors/v1/sensors.grpc.pb.cc +++ b/src/viam/api/service/sensors/v1/sensors.grpc.pb.cc @@ -6,19 +6,19 @@ #include "service/sensors/v1/sensors.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace service { namespace sensors { @@ -32,92 +32,107 @@ static const char* SensorsService_method_names[] = { std::unique_ptr< SensorsService::Stub> SensorsService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { (void)options; - std::unique_ptr< SensorsService::Stub> stub(new SensorsService::Stub(channel, options)); + std::unique_ptr< SensorsService::Stub> stub(new SensorsService::Stub(channel)); return stub; } -SensorsService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) - : channel_(channel), rpcmethod_GetSensors_(SensorsService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetReadings_(SensorsService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_DoCommand_(SensorsService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) +SensorsService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_GetSensors_(SensorsService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetReadings_(SensorsService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DoCommand_(SensorsService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status SensorsService::Stub::GetSensors(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetSensorsRequest& request, ::viam::service::sensors::v1::GetSensorsResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::service::sensors::v1::GetSensorsRequest, ::viam::service::sensors::v1::GetSensorsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetSensors_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetSensors_, context, request, response); } -void SensorsService::Stub::async::GetSensors(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetSensorsRequest* request, ::viam::service::sensors::v1::GetSensorsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::service::sensors::v1::GetSensorsRequest, ::viam::service::sensors::v1::GetSensorsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetSensors_, context, request, response, std::move(f)); +void SensorsService::Stub::experimental_async::GetSensors(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetSensorsRequest* request, ::viam::service::sensors::v1::GetSensorsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetSensors_, context, request, response, std::move(f)); } -void SensorsService::Stub::async::GetSensors(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetSensorsRequest* request, ::viam::service::sensors::v1::GetSensorsResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetSensors_, context, request, response, reactor); +void SensorsService::Stub::experimental_async::GetSensors(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::sensors::v1::GetSensorsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetSensors_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::service::sensors::v1::GetSensorsResponse>* SensorsService::Stub::PrepareAsyncGetSensorsRaw(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetSensorsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::sensors::v1::GetSensorsResponse, ::viam::service::sensors::v1::GetSensorsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetSensors_, context, request); +void SensorsService::Stub::experimental_async::GetSensors(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetSensorsRequest* request, ::viam::service::sensors::v1::GetSensorsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetSensors_, context, request, response, reactor); +} + +void SensorsService::Stub::experimental_async::GetSensors(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::sensors::v1::GetSensorsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetSensors_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::service::sensors::v1::GetSensorsResponse>* SensorsService::Stub::AsyncGetSensorsRaw(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetSensorsRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetSensorsRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::sensors::v1::GetSensorsResponse>::Create(channel_.get(), cq, rpcmethod_GetSensors_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::sensors::v1::GetSensorsResponse>* SensorsService::Stub::PrepareAsyncGetSensorsRaw(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetSensorsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::sensors::v1::GetSensorsResponse>::Create(channel_.get(), cq, rpcmethod_GetSensors_, context, request, false); } ::grpc::Status SensorsService::Stub::GetReadings(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetReadingsRequest& request, ::viam::service::sensors::v1::GetReadingsResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::service::sensors::v1::GetReadingsRequest, ::viam::service::sensors::v1::GetReadingsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetReadings_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetReadings_, context, request, response); } -void SensorsService::Stub::async::GetReadings(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetReadingsRequest* request, ::viam::service::sensors::v1::GetReadingsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::service::sensors::v1::GetReadingsRequest, ::viam::service::sensors::v1::GetReadingsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetReadings_, context, request, response, std::move(f)); +void SensorsService::Stub::experimental_async::GetReadings(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetReadingsRequest* request, ::viam::service::sensors::v1::GetReadingsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetReadings_, context, request, response, std::move(f)); } -void SensorsService::Stub::async::GetReadings(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetReadingsRequest* request, ::viam::service::sensors::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); +void SensorsService::Stub::experimental_async::GetReadings(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::sensors::v1::GetReadingsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetReadings_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::service::sensors::v1::GetReadingsResponse>* SensorsService::Stub::PrepareAsyncGetReadingsRaw(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::sensors::v1::GetReadingsResponse, ::viam::service::sensors::v1::GetReadingsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetReadings_, context, request); +void SensorsService::Stub::experimental_async::GetReadings(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetReadingsRequest* request, ::viam::service::sensors::v1::GetReadingsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetReadings_, context, request, response, reactor); +} + +void SensorsService::Stub::experimental_async::GetReadings(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::sensors::v1::GetReadingsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetReadings_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::service::sensors::v1::GetReadingsResponse>* SensorsService::Stub::AsyncGetReadingsRaw(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetReadingsRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::sensors::v1::GetReadingsResponse>::Create(channel_.get(), cq, rpcmethod_GetReadings_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::sensors::v1::GetReadingsResponse>* SensorsService::Stub::PrepareAsyncGetReadingsRaw(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::sensors::v1::GetReadingsResponse>::Create(channel_.get(), cq, rpcmethod_GetReadings_, context, request, false); } ::grpc::Status SensorsService::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); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DoCommand_, context, request, response); } -void SensorsService::Stub::async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); +void SensorsService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); } -void SensorsService::Stub::async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); +void SensorsService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* SensorsService::Stub::PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::common::v1::DoCommandResponse, ::viam::common::v1::DoCommandRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DoCommand_, context, request); +void SensorsService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); +} + +void SensorsService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* SensorsService::Stub::AsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncDoCommandRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::DoCommandResponse>::Create(channel_.get(), cq, rpcmethod_DoCommand_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* SensorsService::Stub::PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::DoCommandResponse>::Create(channel_.get(), cq, rpcmethod_DoCommand_, context, request, false); } SensorsService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( SensorsService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< SensorsService::Service, ::viam::service::sensors::v1::GetSensorsRequest, ::viam::service::sensors::v1::GetSensorsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< SensorsService::Service, ::viam::service::sensors::v1::GetSensorsRequest, ::viam::service::sensors::v1::GetSensorsResponse>( [](SensorsService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::service::sensors::v1::GetSensorsRequest* req, ::viam::service::sensors::v1::GetSensorsResponse* resp) { return service->GetSensors(ctx, req, resp); @@ -125,9 +140,9 @@ SensorsService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( SensorsService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< SensorsService::Service, ::viam::service::sensors::v1::GetReadingsRequest, ::viam::service::sensors::v1::GetReadingsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< SensorsService::Service, ::viam::service::sensors::v1::GetReadingsRequest, ::viam::service::sensors::v1::GetReadingsResponse>( [](SensorsService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::service::sensors::v1::GetReadingsRequest* req, ::viam::service::sensors::v1::GetReadingsResponse* resp) { return service->GetReadings(ctx, req, resp); @@ -135,9 +150,9 @@ SensorsService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( SensorsService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< SensorsService::Service, ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< SensorsService::Service, ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( [](SensorsService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::common::v1::DoCommandRequest* req, ::viam::common::v1::DoCommandResponse* resp) { return service->DoCommand(ctx, req, resp); diff --git a/src/viam/api/service/sensors/v1/sensors.grpc.pb.h b/src/viam/api/service/sensors/v1/sensors.grpc.pb.h index b6d53402a..590151933 100644 --- a/src/viam/api/service/sensors/v1/sensors.grpc.pb.h +++ b/src/viam/api/service/sensors/v1/sensors.grpc.pb.h @@ -7,23 +7,24 @@ #include "service/sensors/v1/sensors.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace service { @@ -64,23 +65,57 @@ class SensorsService final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::DoCommandResponse>> PrepareAsyncDoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::DoCommandResponse>>(PrepareAsyncDoCommandRaw(context, request, cq)); } - class async_interface { + class experimental_async_interface { public: - virtual ~async_interface() {} + virtual ~experimental_async_interface() {} // GetSensors returns the list of all sensors. virtual void GetSensors(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetSensorsRequest* request, ::viam::service::sensors::v1::GetSensorsResponse* response, std::function) = 0; + virtual void GetSensors(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::sensors::v1::GetSensorsResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetSensors(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetSensorsRequest* request, ::viam::service::sensors::v1::GetSensorsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetSensors(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetSensorsRequest* request, ::viam::service::sensors::v1::GetSensorsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetSensors(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::sensors::v1::GetSensorsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetSensors(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::sensors::v1::GetSensorsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // GetReadings returns the list of readings for all sensors specified. virtual void GetReadings(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetReadingsRequest* request, ::viam::service::sensors::v1::GetReadingsResponse* response, std::function) = 0; + virtual void GetReadings(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::sensors::v1::GetReadingsResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetReadings(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetReadingsRequest* request, ::viam::service::sensors::v1::GetReadingsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetReadings(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetReadingsRequest* request, ::viam::service::sensors::v1::GetReadingsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetReadings(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::sensors::v1::GetReadingsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetReadings(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::sensors::v1::GetReadingsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // 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 ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif }; - typedef class async_interface experimental_async_interface; - virtual class async_interface* async() { return nullptr; } - class async_interface* experimental_async() { return async(); } - private: + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef class experimental_async_interface async_interface; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + async_interface* async() { return experimental_async(); } + #endif + virtual class experimental_async_interface* experimental_async() { return nullptr; } + private: virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::sensors::v1::GetSensorsResponse>* AsyncGetSensorsRaw(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetSensorsRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::sensors::v1::GetSensorsResponse>* PrepareAsyncGetSensorsRaw(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetSensorsRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::sensors::v1::GetReadingsResponse>* AsyncGetReadingsRaw(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) = 0; @@ -90,7 +125,7 @@ class SensorsService final { }; class Stub final : public StubInterface { public: - Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); ::grpc::Status GetSensors(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetSensorsRequest& request, ::viam::service::sensors::v1::GetSensorsResponse* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::sensors::v1::GetSensorsResponse>> AsyncGetSensors(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetSensorsRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::sensors::v1::GetSensorsResponse>>(AsyncGetSensorsRaw(context, request, cq)); @@ -112,26 +147,56 @@ class SensorsService final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>> PrepareAsyncDoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>>(PrepareAsyncDoCommandRaw(context, request, cq)); } - class async final : - public StubInterface::async_interface { + class experimental_async final : + public StubInterface::experimental_async_interface { public: void GetSensors(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetSensorsRequest* request, ::viam::service::sensors::v1::GetSensorsResponse* response, std::function) override; + void GetSensors(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::sensors::v1::GetSensorsResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetSensors(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetSensorsRequest* request, ::viam::service::sensors::v1::GetSensorsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetSensors(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetSensorsRequest* request, ::viam::service::sensors::v1::GetSensorsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetSensors(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::sensors::v1::GetSensorsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetSensors(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::sensors::v1::GetSensorsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetReadings(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetReadingsRequest* request, ::viam::service::sensors::v1::GetReadingsResponse* response, std::function) override; + void GetReadings(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::sensors::v1::GetReadingsResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetReadings(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetReadingsRequest* request, ::viam::service::sensors::v1::GetReadingsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetReadings(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetReadingsRequest* request, ::viam::service::sensors::v1::GetReadingsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetReadings(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::sensors::v1::GetReadingsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetReadings(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::sensors::v1::GetReadingsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif 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 ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif private: friend class Stub; - explicit async(Stub* stub): stub_(stub) { } + explicit experimental_async(Stub* stub): stub_(stub) { } Stub* stub() { return stub_; } Stub* stub_; }; - class async* async() override { return &async_stub_; } + class experimental_async_interface* experimental_async() override { return &async_stub_; } private: std::shared_ptr< ::grpc::ChannelInterface> channel_; - class async async_stub_{this}; + class experimental_async async_stub_{this}; ::grpc::ClientAsyncResponseReader< ::viam::service::sensors::v1::GetSensorsResponse>* AsyncGetSensorsRaw(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetSensorsRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::service::sensors::v1::GetSensorsResponse>* PrepareAsyncGetSensorsRaw(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetSensorsRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::service::sensors::v1::GetReadingsResponse>* AsyncGetReadingsRaw(::grpc::ClientContext* context, const ::viam::service::sensors::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) override; @@ -217,22 +282,36 @@ class SensorsService final { }; typedef WithAsyncMethod_GetSensors > > AsyncService; template - class WithCallbackMethod_GetSensors : public BaseClass { + class ExperimentalWithCallbackMethod_GetSensors : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetSensors() { - ::grpc::Service::MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::viam::service::sensors::v1::GetSensorsRequest, ::viam::service::sensors::v1::GetSensorsResponse>( + ExperimentalWithCallbackMethod_GetSensors() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::sensors::v1::GetSensorsRequest, ::viam::service::sensors::v1::GetSensorsResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::service::sensors::v1::GetSensorsRequest* request, ::viam::service::sensors::v1::GetSensorsResponse* response) { return this->GetSensors(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::service::sensors::v1::GetSensorsRequest* request, ::viam::service::sensors::v1::GetSensorsResponse* response) { return this->GetSensors(context, request, response); }));} void SetMessageAllocatorFor_GetSensors( - ::grpc::MessageAllocator< ::viam::service::sensors::v1::GetSensorsRequest, ::viam::service::sensors::v1::GetSensorsResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::service::sensors::v1::GetSensorsRequest, ::viam::service::sensors::v1::GetSensorsResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::sensors::v1::GetSensorsRequest, ::viam::service::sensors::v1::GetSensorsResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(0); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::sensors::v1::GetSensorsRequest, ::viam::service::sensors::v1::GetSensorsResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetSensors() override { + ~ExperimentalWithCallbackMethod_GetSensors() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -240,26 +319,46 @@ class SensorsService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetSensors( - ::grpc::CallbackServerContext* /*context*/, const ::viam::service::sensors::v1::GetSensorsRequest* /*request*/, ::viam::service::sensors::v1::GetSensorsResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::sensors::v1::GetSensorsRequest* /*request*/, ::viam::service::sensors::v1::GetSensorsResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetSensors( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::service::sensors::v1::GetSensorsRequest* /*request*/, ::viam::service::sensors::v1::GetSensorsResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetReadings : public BaseClass { + class ExperimentalWithCallbackMethod_GetReadings : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetReadings() { - ::grpc::Service::MarkMethodCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::viam::service::sensors::v1::GetReadingsRequest, ::viam::service::sensors::v1::GetReadingsResponse>( + ExperimentalWithCallbackMethod_GetReadings() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::sensors::v1::GetReadingsRequest, ::viam::service::sensors::v1::GetReadingsResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::service::sensors::v1::GetReadingsRequest* request, ::viam::service::sensors::v1::GetReadingsResponse* response) { return this->GetReadings(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::service::sensors::v1::GetReadingsRequest* request, ::viam::service::sensors::v1::GetReadingsResponse* response) { return this->GetReadings(context, request, response); }));} void SetMessageAllocatorFor_GetReadings( - ::grpc::MessageAllocator< ::viam::service::sensors::v1::GetReadingsRequest, ::viam::service::sensors::v1::GetReadingsResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::service::sensors::v1::GetReadingsRequest, ::viam::service::sensors::v1::GetReadingsResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::sensors::v1::GetReadingsRequest, ::viam::service::sensors::v1::GetReadingsResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(1); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::sensors::v1::GetReadingsRequest, ::viam::service::sensors::v1::GetReadingsResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetReadings() override { + ~ExperimentalWithCallbackMethod_GetReadings() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -267,26 +366,46 @@ class SensorsService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetReadings( - ::grpc::CallbackServerContext* /*context*/, const ::viam::service::sensors::v1::GetReadingsRequest* /*request*/, ::viam::service::sensors::v1::GetReadingsResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::sensors::v1::GetReadingsRequest* /*request*/, ::viam::service::sensors::v1::GetReadingsResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetReadings( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::service::sensors::v1::GetReadingsRequest* /*request*/, ::viam::service::sensors::v1::GetReadingsResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_DoCommand : public BaseClass { + class ExperimentalWithCallbackMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_DoCommand() { - ::grpc::Service::MarkMethodCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( + ExperimentalWithCallbackMethod_DoCommand() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(2, + new ::grpc_impl::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); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + 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::experimental::MessageAllocator< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(2); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_DoCommand() override { + ~ExperimentalWithCallbackMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -294,11 +413,20 @@ class SensorsService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DoCommand( - ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DoCommand( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) + #endif + { return nullptr; } }; - typedef WithCallbackMethod_GetSensors > > CallbackService; - typedef CallbackService ExperimentalCallbackService; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef ExperimentalWithCallbackMethod_GetSensors > > CallbackService; + #endif + + typedef ExperimentalWithCallbackMethod_GetSensors > > ExperimentalCallbackService; template class WithGenericMethod_GetSensors : public BaseClass { private: @@ -411,17 +539,27 @@ class SensorsService final { } }; template - class WithRawCallbackMethod_GetSensors : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetSensors : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetSensors() { - ::grpc::Service::MarkMethodRawCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetSensors() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetSensors(context, request, response); })); - } - ~WithRawCallbackMethod_GetSensors() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetSensors(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetSensors() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -429,21 +567,37 @@ class SensorsService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetSensors( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetSensors( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetReadings : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetReadings : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetReadings() { - ::grpc::Service::MarkMethodRawCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetReadings() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(1, + new ::grpc_impl::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 { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetReadings(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetReadings() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -451,21 +605,37 @@ class SensorsService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetReadings( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetReadings( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_DoCommand : public BaseClass { + class ExperimentalWithRawCallbackMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_DoCommand() { - ::grpc::Service::MarkMethodRawCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_DoCommand() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(2, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DoCommand(context, request, response); })); - } - ~WithRawCallbackMethod_DoCommand() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DoCommand(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -473,8 +643,14 @@ class SensorsService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DoCommand( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DoCommand( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template class WithStreamedUnaryMethod_GetSensors : public BaseClass { @@ -485,8 +661,8 @@ class SensorsService final { ::grpc::Service::MarkMethodStreamed(0, new ::grpc::internal::StreamedUnaryHandler< ::viam::service::sensors::v1::GetSensorsRequest, ::viam::service::sensors::v1::GetSensorsResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::service::sensors::v1::GetSensorsRequest, ::viam::service::sensors::v1::GetSensorsResponse>* streamer) { return this->StreamedGetSensors(context, streamer); @@ -512,8 +688,8 @@ class SensorsService final { ::grpc::Service::MarkMethodStreamed(1, new ::grpc::internal::StreamedUnaryHandler< ::viam::service::sensors::v1::GetReadingsRequest, ::viam::service::sensors::v1::GetReadingsResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::service::sensors::v1::GetReadingsRequest, ::viam::service::sensors::v1::GetReadingsResponse>* streamer) { return this->StreamedGetReadings(context, streamer); @@ -539,8 +715,8 @@ class SensorsService final { ::grpc::Service::MarkMethodStreamed(2, new ::grpc::internal::StreamedUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* streamer) { return this->StreamedDoCommand(context, streamer); diff --git a/src/viam/api/service/sensors/v1/sensors.pb.cc b/src/viam/api/service/sensors/v1/sensors.pb.cc index 816e13d80..a63e8585f 100644 --- a/src/viam/api/service/sensors/v1/sensors.pb.cc +++ b/src/viam/api/service/sensors/v1/sensors.pb.cc @@ -4,545 +4,452 @@ #include "service/sensors/v1/sensors.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace viam { namespace service { namespace sensors { namespace v1 { - template -PROTOBUF_CONSTEXPR Readings_ReadingsEntry_DoNotUse::Readings_ReadingsEntry_DoNotUse(::_pbi::ConstantInitialized) {} -struct Readings_ReadingsEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR Readings_ReadingsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~Readings_ReadingsEntry_DoNotUseDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR GetSensorsRequest::GetSensorsRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} +struct GetSensorsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetSensorsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetSensorsRequestDefaultTypeInternal() {} union { - Readings_ReadingsEntry_DoNotUse _instance; + GetSensorsRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Readings_ReadingsEntry_DoNotUseDefaultTypeInternal _Readings_ReadingsEntry_DoNotUse_default_instance_; - -inline constexpr GetSensorsResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : sensor_names_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetSensorsResponse::GetSensorsResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetSensorsRequestDefaultTypeInternal _GetSensorsRequest_default_instance_; +PROTOBUF_CONSTEXPR GetSensorsResponse::GetSensorsResponse( + ::_pbi::ConstantInitialized) + : sensor_names_(){} struct GetSensorsResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetSensorsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GetSensorsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~GetSensorsResponseDefaultTypeInternal() {} union { GetSensorsResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetSensorsResponseDefaultTypeInternal _GetSensorsResponse_default_instance_; - -inline constexpr GetSensorsRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetSensorsRequest::GetSensorsRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetSensorsRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetSensorsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetSensorsRequestDefaultTypeInternal() {} - union { - GetSensorsRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetSensorsRequestDefaultTypeInternal _GetSensorsRequest_default_instance_; - -inline constexpr GetReadingsRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - sensor_names_{}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetReadingsRequest::GetReadingsRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetSensorsResponseDefaultTypeInternal _GetSensorsResponse_default_instance_; +PROTOBUF_CONSTEXPR GetReadingsRequest::GetReadingsRequest( + ::_pbi::ConstantInitialized) + : sensor_names_() + , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} struct GetReadingsRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetReadingsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GetReadingsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~GetReadingsRequestDefaultTypeInternal() {} union { GetReadingsRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetReadingsRequestDefaultTypeInternal _GetReadingsRequest_default_instance_; - -inline constexpr Readings::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - readings_{}, - name_{nullptr} {} - -template -PROTOBUF_CONSTEXPR Readings::Readings(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetReadingsRequestDefaultTypeInternal _GetReadingsRequest_default_instance_; +PROTOBUF_CONSTEXPR Readings_ReadingsEntry_DoNotUse::Readings_ReadingsEntry_DoNotUse( + ::_pbi::ConstantInitialized){} +struct Readings_ReadingsEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR Readings_ReadingsEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Readings_ReadingsEntry_DoNotUseDefaultTypeInternal() {} + union { + Readings_ReadingsEntry_DoNotUse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Readings_ReadingsEntry_DoNotUseDefaultTypeInternal _Readings_ReadingsEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR Readings::Readings( + ::_pbi::ConstantInitialized) + : readings_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + , name_(nullptr){} struct ReadingsDefaultTypeInternal { - PROTOBUF_CONSTEXPR ReadingsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ReadingsDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~ReadingsDefaultTypeInternal() {} union { Readings _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ReadingsDefaultTypeInternal _Readings_default_instance_; - -inline constexpr GetReadingsResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : readings_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetReadingsResponse::GetReadingsResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ReadingsDefaultTypeInternal _Readings_default_instance_; +PROTOBUF_CONSTEXPR GetReadingsResponse::GetReadingsResponse( + ::_pbi::ConstantInitialized) + : readings_(){} struct GetReadingsResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetReadingsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GetReadingsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~GetReadingsResponseDefaultTypeInternal() {} union { GetReadingsResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetReadingsResponseDefaultTypeInternal _GetReadingsResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetReadingsResponseDefaultTypeInternal _GetReadingsResponse_default_instance_; } // namespace v1 } // namespace sensors } // namespace service } // namespace viam static ::_pb::Metadata file_level_metadata_service_2fsensors_2fv1_2fsensors_2eproto[6]; -static constexpr const ::_pb::EnumDescriptor** - file_level_enum_descriptors_service_2fsensors_2fv1_2fsensors_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_service_2fsensors_2fv1_2fsensors_2eproto = nullptr; -const ::uint32_t TableStruct_service_2fsensors_2fv1_2fsensors_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::viam::service::sensors::v1::GetSensorsRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::service::sensors::v1::GetSensorsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::sensors::v1::GetSensorsRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::service::sensors::v1::GetSensorsRequest, _impl_.extra_), - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::service::sensors::v1::GetSensorsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::sensors::v1::GetSensorsResponse, _impl_.sensor_names_), - PROTOBUF_FIELD_OFFSET(::viam::service::sensors::v1::GetReadingsRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::service::sensors::v1::GetReadingsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::sensors::v1::GetReadingsRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::service::sensors::v1::GetReadingsRequest, _impl_.sensor_names_), - PROTOBUF_FIELD_OFFSET(::viam::service::sensors::v1::GetReadingsRequest, _impl_.extra_), - ~0u, - ~0u, - 0, - PROTOBUF_FIELD_OFFSET(::viam::service::sensors::v1::Readings_ReadingsEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::service::sensors::v1::Readings_ReadingsEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::sensors::v1::Readings_ReadingsEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::viam::service::sensors::v1::Readings_ReadingsEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::viam::service::sensors::v1::Readings, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::service::sensors::v1::Readings, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::sensors::v1::Readings, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::service::sensors::v1::Readings, _impl_.readings_), - 0, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::service::sensors::v1::GetReadingsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::sensors::v1::GetReadingsResponse, _impl_.readings_), +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_service_2fsensors_2fv1_2fsensors_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_service_2fsensors_2fv1_2fsensors_2eproto = nullptr; + +const uint32_t TableStruct_service_2fsensors_2fv1_2fsensors_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::sensors::v1::GetSensorsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::sensors::v1::GetSensorsRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::service::sensors::v1::GetSensorsRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::sensors::v1::GetSensorsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::sensors::v1::GetSensorsResponse, sensor_names_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::sensors::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::service::sensors::v1::GetReadingsRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::service::sensors::v1::GetReadingsRequest, sensor_names_), + PROTOBUF_FIELD_OFFSET(::viam::service::sensors::v1::GetReadingsRequest, extra_), + PROTOBUF_FIELD_OFFSET(::viam::service::sensors::v1::Readings_ReadingsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::service::sensors::v1::Readings_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::service::sensors::v1::Readings_ReadingsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::viam::service::sensors::v1::Readings_ReadingsEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::sensors::v1::Readings, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::sensors::v1::Readings, name_), + PROTOBUF_FIELD_OFFSET(::viam::service::sensors::v1::Readings, readings_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::sensors::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::service::sensors::v1::GetReadingsResponse, readings_), }; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, 10, -1, sizeof(::viam::service::sensors::v1::GetSensorsRequest)}, - {12, -1, -1, sizeof(::viam::service::sensors::v1::GetSensorsResponse)}, - {21, 32, -1, sizeof(::viam::service::sensors::v1::GetReadingsRequest)}, - {35, 45, -1, sizeof(::viam::service::sensors::v1::Readings_ReadingsEntry_DoNotUse)}, - {47, 57, -1, sizeof(::viam::service::sensors::v1::Readings)}, - {59, -1, -1, sizeof(::viam::service::sensors::v1::GetReadingsResponse)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::service::sensors::v1::GetSensorsRequest)}, + { 8, -1, -1, sizeof(::viam::service::sensors::v1::GetSensorsResponse)}, + { 15, -1, -1, sizeof(::viam::service::sensors::v1::GetReadingsRequest)}, + { 24, 32, -1, sizeof(::viam::service::sensors::v1::Readings_ReadingsEntry_DoNotUse)}, + { 34, -1, -1, sizeof(::viam::service::sensors::v1::Readings)}, + { 42, -1, -1, sizeof(::viam::service::sensors::v1::GetReadingsResponse)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::viam::service::sensors::v1::_GetSensorsRequest_default_instance_._instance, - &::viam::service::sensors::v1::_GetSensorsResponse_default_instance_._instance, - &::viam::service::sensors::v1::_GetReadingsRequest_default_instance_._instance, - &::viam::service::sensors::v1::_Readings_ReadingsEntry_DoNotUse_default_instance_._instance, - &::viam::service::sensors::v1::_Readings_default_instance_._instance, - &::viam::service::sensors::v1::_GetReadingsResponse_default_instance_._instance, -}; -const char descriptor_table_protodef_service_2fsensors_2fv1_2fsensors_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n service/sensors/v1/sensors.proto\022\027viam" - ".service.sensors.v1\032\026common/v1/common.pr" - "oto\032\034google/api/annotations.proto\032\034googl" - "e/protobuf/struct.proto\"b\n\021GetSensorsReq" - "uest\022\026\n\004name\030\001 \001(\tB\002\030\001R\004name\0221\n\005extra\030c " - "\001(\0132\027.google.protobuf.StructB\002\030\001R\005extra:" - "\002\030\001\"]\n\022GetSensorsResponse\022C\n\014sensor_name" - "s\030\001 \003(\0132\034.viam.common.v1.ResourceNameB\002\030" - "\001R\013sensorNames:\002\030\001\"\250\001\n\022GetReadingsReques" - "t\022\026\n\004name\030\001 \001(\tB\002\030\001R\004name\022C\n\014sensor_name" - "s\030\002 \003(\0132\034.viam.common.v1.ResourceNameB\002\030" - "\001R\013sensorNames\0221\n\005extra\030c \001(\0132\027.google.p" - "rotobuf.StructB\002\030\001R\005extra:\002\030\001\"\352\001\n\010Readin" - "gs\0224\n\004name\030\001 \001(\0132\034.viam.common.v1.Resour" - "ceNameB\002\030\001R\004name\022O\n\010readings\030\002 \003(\0132/.via" - "m.service.sensors.v1.Readings.ReadingsEn" - "tryB\002\030\001R\010readings\032S\n\rReadingsEntry\022\020\n\003ke" - "y\030\001 \001(\tR\003key\022,\n\005value\030\002 \001(\0132\026.google.pro" - "tobuf.ValueR\005value:\0028\001:\002\030\001\"\\\n\023GetReading" - "sResponse\022A\n\010readings\030\001 \003(\0132!.viam.servi" - "ce.sensors.v1.ReadingsB\002\030\001R\010readings:\002\030\001" - "2\332\003\n\016SensorsService\022\225\001\n\nGetSensors\022*.via" - "m.service.sensors.v1.GetSensorsRequest\032+" - ".viam.service.sensors.v1.GetSensorsRespo" - "nse\".\210\002\001\202\323\344\223\002%\022#/viam/api/v1/service/{na" - "me}/sensors\022\241\001\n\013GetReadings\022+.viam.servi" - "ce.sensors.v1.GetReadingsRequest\032,.viam." - "service.sensors.v1.GetReadingsResponse\"7" - "\210\002\001\202\323\344\223\002.\022,/viam/api/v1/service/sensors/" - "{name}/readings\022\213\001\n\tDoCommand\022 .viam.com" - "mon.v1.DoCommandRequest\032!.viam.common.v1" - ".DoCommandResponse\"9\210\002\001\202\323\344\223\0020\"./viam/api" - "/v1/service/sensors/{name}/do_commandB\321\001" - "\n\033com.viam.service.sensors.v1B\014SensorsPr" - "otoP\001Z\"go.viam.com/api/service/sensors/v" - "1\270\001\001\242\002\003VSS\252\002\027Viam.Service.Sensors.V1\312\002\027V" - "iam\\Service\\Sensors\\V1\342\002#Viam\\Service\\Se" - "nsors\\V1\\GPBMetadata\352\002\032Viam::Service::Se" - "nsors::V1b\006proto3" + &::viam::service::sensors::v1::_GetSensorsRequest_default_instance_._instance, + &::viam::service::sensors::v1::_GetSensorsResponse_default_instance_._instance, + &::viam::service::sensors::v1::_GetReadingsRequest_default_instance_._instance, + &::viam::service::sensors::v1::_Readings_ReadingsEntry_DoNotUse_default_instance_._instance, + &::viam::service::sensors::v1::_Readings_default_instance_._instance, + &::viam::service::sensors::v1::_GetReadingsResponse_default_instance_._instance, }; -static const ::_pbi::DescriptorTable* const descriptor_table_service_2fsensors_2fv1_2fsensors_2eproto_deps[3] = - { - &::descriptor_table_common_2fv1_2fcommon_2eproto, - &::descriptor_table_google_2fapi_2fannotations_2eproto, - &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, + +const char descriptor_table_protodef_service_2fsensors_2fv1_2fsensors_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n service/sensors/v1/sensors.proto\022\027viam" + ".service.sensors.v1\032\026common/v1/common.pr" + "oto\032\034google/api/annotations.proto\032\034googl" + "e/protobuf/struct.proto\"b\n\021GetSensorsReq" + "uest\022\026\n\004name\030\001 \001(\tB\002\030\001R\004name\0221\n\005extra\030c " + "\001(\0132\027.google.protobuf.StructB\002\030\001R\005extra:" + "\002\030\001\"]\n\022GetSensorsResponse\022C\n\014sensor_name" + "s\030\001 \003(\0132\034.viam.common.v1.ResourceNameB\002\030" + "\001R\013sensorNames:\002\030\001\"\250\001\n\022GetReadingsReques" + "t\022\026\n\004name\030\001 \001(\tB\002\030\001R\004name\022C\n\014sensor_name" + "s\030\002 \003(\0132\034.viam.common.v1.ResourceNameB\002\030" + "\001R\013sensorNames\0221\n\005extra\030c \001(\0132\027.google.p" + "rotobuf.StructB\002\030\001R\005extra:\002\030\001\"\352\001\n\010Readin" + "gs\0224\n\004name\030\001 \001(\0132\034.viam.common.v1.Resour" + "ceNameB\002\030\001R\004name\022O\n\010readings\030\002 \003(\0132/.via" + "m.service.sensors.v1.Readings.ReadingsEn" + "tryB\002\030\001R\010readings\032S\n\rReadingsEntry\022\020\n\003ke" + "y\030\001 \001(\tR\003key\022,\n\005value\030\002 \001(\0132\026.google.pro" + "tobuf.ValueR\005value:\0028\001:\002\030\001\"\\\n\023GetReading" + "sResponse\022A\n\010readings\030\001 \003(\0132!.viam.servi" + "ce.sensors.v1.ReadingsB\002\030\001R\010readings:\002\030\001" + "2\332\003\n\016SensorsService\022\225\001\n\nGetSensors\022*.via" + "m.service.sensors.v1.GetSensorsRequest\032+" + ".viam.service.sensors.v1.GetSensorsRespo" + "nse\".\210\002\001\202\323\344\223\002%\022#/viam/api/v1/service/{na" + "me}/sensors\022\241\001\n\013GetReadings\022+.viam.servi" + "ce.sensors.v1.GetReadingsRequest\032,.viam." + "service.sensors.v1.GetReadingsResponse\"7" + "\210\002\001\202\323\344\223\002.\022,/viam/api/v1/service/sensors/" + "{name}/readings\022\213\001\n\tDoCommand\022 .viam.com" + "mon.v1.DoCommandRequest\032!.viam.common.v1" + ".DoCommandResponse\"9\210\002\001\202\323\344\223\0020\"./viam/api" + "/v1/service/sensors/{name}/do_commandBD\n" + "\033com.viam.service.sensors.v1Z\"go.viam.co" + "m/api/service/sensors/v1\270\001\001b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_service_2fsensors_2fv1_2fsensors_2eproto_deps[3] = { + &::descriptor_table_common_2fv1_2fcommon_2eproto, + &::descriptor_table_google_2fapi_2fannotations_2eproto, + &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, }; -static ::absl::once_flag descriptor_table_service_2fsensors_2fv1_2fsensors_2eproto_once; +static ::_pbi::once_flag descriptor_table_service_2fsensors_2fv1_2fsensors_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_service_2fsensors_2fv1_2fsensors_2eproto = { - false, - false, - 1537, - descriptor_table_protodef_service_2fsensors_2fv1_2fsensors_2eproto, + false, false, 1395, descriptor_table_protodef_service_2fsensors_2fv1_2fsensors_2eproto, "service/sensors/v1/sensors.proto", - &descriptor_table_service_2fsensors_2fv1_2fsensors_2eproto_once, - descriptor_table_service_2fsensors_2fv1_2fsensors_2eproto_deps, - 3, - 6, - schemas, - file_default_instances, - TableStruct_service_2fsensors_2fv1_2fsensors_2eproto::offsets, - file_level_metadata_service_2fsensors_2fv1_2fsensors_2eproto, - file_level_enum_descriptors_service_2fsensors_2fv1_2fsensors_2eproto, + &descriptor_table_service_2fsensors_2fv1_2fsensors_2eproto_once, descriptor_table_service_2fsensors_2fv1_2fsensors_2eproto_deps, 3, 6, + schemas, file_default_instances, TableStruct_service_2fsensors_2fv1_2fsensors_2eproto::offsets, + file_level_metadata_service_2fsensors_2fv1_2fsensors_2eproto, file_level_enum_descriptors_service_2fsensors_2fv1_2fsensors_2eproto, file_level_service_descriptors_service_2fsensors_2fv1_2fsensors_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_service_2fsensors_2fv1_2fsensors_2eproto_getter() { return &descriptor_table_service_2fsensors_2fv1_2fsensors_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_service_2fsensors_2fv1_2fsensors_2eproto(&descriptor_table_service_2fsensors_2fv1_2fsensors_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_service_2fsensors_2fv1_2fsensors_2eproto(&descriptor_table_service_2fsensors_2fv1_2fsensors_2eproto); namespace viam { namespace service { namespace sensors { namespace v1 { + // =================================================================== class GetSensorsRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetSensorsRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const GetSensorsRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetSensorsRequest* msg); }; -const ::google::protobuf::Struct& GetSensorsRequest::_Internal::extra(const GetSensorsRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetSensorsRequest::_Internal::extra(const GetSensorsRequest* msg) { + return *msg->extra_; } void GetSensorsRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -GetSensorsRequest::GetSensorsRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetSensorsRequest::GetSensorsRequest(::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.sensors.v1.GetSensorsRequest) } -inline PROTOBUF_NDEBUG_INLINE GetSensorsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -GetSensorsRequest::GetSensorsRequest( - ::google::protobuf::Arena* arena, - const GetSensorsRequest& from) - : ::google::protobuf::Message(arena) { - GetSensorsRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +GetSensorsRequest::GetSensorsRequest(const GetSensorsRequest& 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.service.sensors.v1.GetSensorsRequest) } -inline PROTOBUF_NDEBUG_INLINE GetSensorsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} -inline void GetSensorsRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void GetSensorsRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + GetSensorsRequest::~GetSensorsRequest() { // @@protoc_insertion_point(destructor:viam.service.sensors.v1.GetSensorsRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetSensorsRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; } -PROTOBUF_NOINLINE void GetSensorsRequest::Clear() { +void GetSensorsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetSensorsRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.sensors.v1.GetSensorsRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetSensorsRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetSensorsRequest::_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", deprecated = true]; + 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.service.sensors.v1.GetSensorsRequest.name")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct extra = 99 [json_name = "extra", deprecated = true]; + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 2, 1, 54, 7> GetSensorsRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetSensorsRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetSensorsRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name", deprecated = true]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetSensorsRequest, _impl_.name_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra", deprecated = true]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(GetSensorsRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 1, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name", deprecated = true]; - {PROTOBUF_FIELD_OFFSET(GetSensorsRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra", deprecated = true]; - {PROTOBUF_FIELD_OFFSET(GetSensorsRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\51\4\0\0\0\0\0\0" - "viam.service.sensors.v1.GetSensorsRequest" - "name" - }}, -}; - -::uint8_t* GetSensorsRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetSensorsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.sensors.v1.GetSensorsRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name", deprecated = true]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.sensors.v1.GetSensorsRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.sensors.v1.GetSensorsRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra", deprecated = true]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.sensors.v1.GetSensorsRequest) return target; } -::size_t GetSensorsRequest::ByteSizeLong() const { +size_t GetSensorsRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.sensors.v1.GetSensorsRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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", deprecated = true]; if (!this->_internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra", deprecated = true]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetSensorsRequest::_class_data_ = { - GetSensorsRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetSensorsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetSensorsRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetSensorsRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetSensorsRequest::GetClassData() const { return &_class_data_; } + +void GetSensorsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetSensorsRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.sensors.v1.GetSensorsRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetSensorsRequest::MergeFrom(const GetSensorsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.sensors.v1.GetSensorsRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetSensorsRequest::CopyFrom(const GetSensorsRequest& from) { @@ -552,28 +459,28 @@ void GetSensorsRequest::CopyFrom(const GetSensorsRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetSensorsRequest::IsInitialized() const { +bool GetSensorsRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetSensorsRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetSensorsRequest::InternalSwap(GetSensorsRequest* PROTOBUF_RESTRICT other) { +void GetSensorsRequest::InternalSwap(GetSensorsRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.extra_, other->_impl_.extra_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(extra_, other->extra_); } -::google::protobuf::Metadata GetSensorsRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetSensorsRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fsensors_2fv1_2fsensors_2eproto_getter, &descriptor_table_service_2fsensors_2fv1_2fsensors_2eproto_once, file_level_metadata_service_2fsensors_2fv1_2fsensors_2eproto[0]); } + // =================================================================== class GetSensorsResponse::_Internal { @@ -581,159 +488,155 @@ class GetSensorsResponse::_Internal { }; void GetSensorsResponse::clear_sensor_names() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.sensor_names_.Clear(); + sensor_names_.Clear(); } -GetSensorsResponse::GetSensorsResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetSensorsResponse::GetSensorsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + sensor_names_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.service.sensors.v1.GetSensorsResponse) } -inline PROTOBUF_NDEBUG_INLINE GetSensorsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : sensor_names_{visibility, arena, from.sensor_names_}, - _cached_size_{0} {} - -GetSensorsResponse::GetSensorsResponse( - ::google::protobuf::Arena* arena, - const GetSensorsResponse& from) - : ::google::protobuf::Message(arena) { - GetSensorsResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetSensorsResponse::GetSensorsResponse(const GetSensorsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + sensor_names_(from.sensor_names_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.service.sensors.v1.GetSensorsResponse) } -inline PROTOBUF_NDEBUG_INLINE GetSensorsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : sensor_names_{visibility, arena}, - _cached_size_{0} {} -inline void GetSensorsResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetSensorsResponse::SharedCtor() { } + GetSensorsResponse::~GetSensorsResponse() { // @@protoc_insertion_point(destructor:viam.service.sensors.v1.GetSensorsResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetSensorsResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void GetSensorsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetSensorsResponse::Clear() { +void GetSensorsResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.sensors.v1.GetSensorsResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.sensor_names_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetSensorsResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + sensor_names_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetSensorsResponse::_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) { + // repeated .viam.common.v1.ResourceName sensor_names = 1 [json_name = "sensorNames", deprecated = true]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_sensor_names(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetSensorsResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetSensorsResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.common.v1.ResourceName sensor_names = 1 [json_name = "sensorNames", deprecated = true]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetSensorsResponse, _impl_.sensor_names_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.common.v1.ResourceName sensor_names = 1 [json_name = "sensorNames", deprecated = true]; - {PROTOBUF_FIELD_OFFSET(GetSensorsResponse, _impl_.sensor_names_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::common::v1::ResourceName>()}, - }}, {{ - }}, -}; - -::uint8_t* GetSensorsResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetSensorsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.sensors.v1.GetSensorsResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .viam.common.v1.ResourceName sensor_names = 1 [json_name = "sensorNames", deprecated = true]; for (unsigned i = 0, n = static_cast(this->_internal_sensor_names_size()); i < n; i++) { - const auto& repfield = this->_internal_sensor_names().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_sensor_names(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.sensors.v1.GetSensorsResponse) return target; } -::size_t GetSensorsResponse::ByteSizeLong() const { +size_t GetSensorsResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.sensors.v1.GetSensorsResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.common.v1.ResourceName sensor_names = 1 [json_name = "sensorNames", deprecated = true]; total_size += 1UL * this->_internal_sensor_names_size(); - for (const auto& msg : this->_internal_sensor_names()) { + for (const auto& msg : this->sensor_names_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetSensorsResponse::_class_data_ = { - GetSensorsResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetSensorsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetSensorsResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetSensorsResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetSensorsResponse::GetClassData() const { return &_class_data_; } + +void GetSensorsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetSensorsResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.sensors.v1.GetSensorsResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetSensorsResponse::MergeFrom(const GetSensorsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.sensors.v1.GetSensorsResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_sensor_names()->MergeFrom( - from._internal_sensor_names()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + sensor_names_.MergeFrom(from.sensor_names_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetSensorsResponse::CopyFrom(const GetSensorsResponse& from) { @@ -743,271 +646,269 @@ void GetSensorsResponse::CopyFrom(const GetSensorsResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetSensorsResponse::IsInitialized() const { +bool GetSensorsResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetSensorsResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetSensorsResponse::InternalSwap(GetSensorsResponse* PROTOBUF_RESTRICT other) { +void GetSensorsResponse::InternalSwap(GetSensorsResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.sensor_names_.InternalSwap(&other->_impl_.sensor_names_); + sensor_names_.InternalSwap(&other->sensor_names_); } -::google::protobuf::Metadata GetSensorsResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetSensorsResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fsensors_2fv1_2fsensors_2eproto_getter, &descriptor_table_service_2fsensors_2fv1_2fsensors_2eproto_once, file_level_metadata_service_2fsensors_2fv1_2fsensors_2eproto[1]); } + // =================================================================== class GetReadingsRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetReadingsRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const GetReadingsRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetReadingsRequest* msg); }; -const ::google::protobuf::Struct& GetReadingsRequest::_Internal::extra(const GetReadingsRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetReadingsRequest::_Internal::extra(const GetReadingsRequest* msg) { + return *msg->extra_; } void GetReadingsRequest::clear_sensor_names() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.sensor_names_.Clear(); + sensor_names_.Clear(); } void GetReadingsRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -GetReadingsRequest::GetReadingsRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetReadingsRequest::GetReadingsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + sensor_names_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.service.sensors.v1.GetReadingsRequest) } -inline PROTOBUF_NDEBUG_INLINE GetReadingsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - sensor_names_{visibility, arena, from.sensor_names_}, - name_(arena, from.name_) {} - -GetReadingsRequest::GetReadingsRequest( - ::google::protobuf::Arena* arena, - const GetReadingsRequest& from) - : ::google::protobuf::Message(arena) { - GetReadingsRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +GetReadingsRequest::GetReadingsRequest(const GetReadingsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + sensor_names_(from.sensor_names_) { + _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.service.sensors.v1.GetReadingsRequest) } -inline PROTOBUF_NDEBUG_INLINE GetReadingsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - sensor_names_{visibility, arena}, - name_(arena) {} -inline void GetReadingsRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +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.service.sensors.v1.GetReadingsRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetReadingsRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; } -PROTOBUF_NOINLINE void GetReadingsRequest::Clear() { +void GetReadingsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetReadingsRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.sensors.v1.GetReadingsRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.sensor_names_.Clear(); - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); + sensor_names_.Clear(); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetReadingsRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + 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", deprecated = true]; + 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.service.sensors.v1.GetReadingsRequest.name")); + } else + goto handle_unusual; + continue; + // repeated .viam.common.v1.ResourceName sensor_names = 2 [json_name = "sensorNames", deprecated = true]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_sensor_names(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct extra = 99 [json_name = "extra", deprecated = true]; + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 2, 55, 7> GetReadingsRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetReadingsRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetReadingsRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name", deprecated = true]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetReadingsRequest, _impl_.name_)}}, - // repeated .viam.common.v1.ResourceName sensor_names = 2 [json_name = "sensorNames", deprecated = true]; - {::_pbi::TcParser::FastMtR1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(GetReadingsRequest, _impl_.sensor_names_)}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra", deprecated = true]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 1, PROTOBUF_FIELD_OFFSET(GetReadingsRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 2, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name", deprecated = true]; - {PROTOBUF_FIELD_OFFSET(GetReadingsRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated .viam.common.v1.ResourceName sensor_names = 2 [json_name = "sensorNames", deprecated = true]; - {PROTOBUF_FIELD_OFFSET(GetReadingsRequest, _impl_.sensor_names_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra", deprecated = true]; - {PROTOBUF_FIELD_OFFSET(GetReadingsRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::common::v1::ResourceName>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\52\4\0\0\0\0\0\0" - "viam.service.sensors.v1.GetReadingsRequest" - "name" - }}, -}; - -::uint8_t* GetReadingsRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetReadingsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.sensors.v1.GetReadingsRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name", deprecated = true]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.sensors.v1.GetReadingsRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.sensors.v1.GetReadingsRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // repeated .viam.common.v1.ResourceName sensor_names = 2 [json_name = "sensorNames", deprecated = true]; for (unsigned i = 0, n = static_cast(this->_internal_sensor_names_size()); i < n; i++) { - const auto& repfield = this->_internal_sensor_names().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_sensor_names(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra", deprecated = true]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.sensors.v1.GetReadingsRequest) return target; } -::size_t GetReadingsRequest::ByteSizeLong() const { +size_t GetReadingsRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.sensors.v1.GetReadingsRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.common.v1.ResourceName sensor_names = 2 [json_name = "sensorNames", deprecated = true]; total_size += 1UL * this->_internal_sensor_names_size(); - for (const auto& msg : this->_internal_sensor_names()) { + for (const auto& msg : this->sensor_names_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // string name = 1 [json_name = "name", deprecated = true]; if (!this->_internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra", deprecated = true]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetReadingsRequest::_class_data_ = { - GetReadingsRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetReadingsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetReadingsRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetReadingsRequest::GetClassData() const { - return &_class_data_; +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::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.sensors.v1.GetReadingsRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetReadingsRequest::MergeFrom(const GetReadingsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.sensors.v1.GetReadingsRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_sensor_names()->MergeFrom( - from._internal_sensor_names()); + sensor_names_.MergeFrom(from.sensor_names_); if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetReadingsRequest::CopyFrom(const GetReadingsRequest& from) { @@ -1017,276 +918,275 @@ void GetReadingsRequest::CopyFrom(const GetReadingsRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetReadingsRequest::IsInitialized() const { +bool GetReadingsRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetReadingsRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetReadingsRequest::InternalSwap(GetReadingsRequest* PROTOBUF_RESTRICT other) { +void GetReadingsRequest::InternalSwap(GetReadingsRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.sensor_names_.InternalSwap(&other->_impl_.sensor_names_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.extra_, other->_impl_.extra_); + sensor_names_.InternalSwap(&other->sensor_names_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(extra_, other->extra_); } -::google::protobuf::Metadata GetReadingsRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetReadingsRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fsensors_2fv1_2fsensors_2eproto_getter, &descriptor_table_service_2fsensors_2fv1_2fsensors_2eproto_once, file_level_metadata_service_2fsensors_2fv1_2fsensors_2eproto[2]); } + // =================================================================== Readings_ReadingsEntry_DoNotUse::Readings_ReadingsEntry_DoNotUse() {} -Readings_ReadingsEntry_DoNotUse::Readings_ReadingsEntry_DoNotUse(::google::protobuf::Arena* arena) +Readings_ReadingsEntry_DoNotUse::Readings_ReadingsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) : SuperType(arena) {} -::google::protobuf::Metadata Readings_ReadingsEntry_DoNotUse::GetMetadata() const { +void Readings_ReadingsEntry_DoNotUse::MergeFrom(const Readings_ReadingsEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata Readings_ReadingsEntry_DoNotUse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fsensors_2fv1_2fsensors_2eproto_getter, &descriptor_table_service_2fsensors_2fv1_2fsensors_2eproto_once, file_level_metadata_service_2fsensors_2fv1_2fsensors_2eproto[3]); } + // =================================================================== class Readings::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Readings, _impl_._has_bits_); static const ::viam::common::v1::ResourceName& name(const Readings* msg); - static void set_has_name(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::common::v1::ResourceName& Readings::_Internal::name(const Readings* msg) { - return *msg->_impl_.name_; +const ::viam::common::v1::ResourceName& +Readings::_Internal::name(const Readings* msg) { + return *msg->name_; } void Readings::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.name_ != nullptr) _impl_.name_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && name_ != nullptr) { + delete name_; + } + name_ = nullptr; } void Readings::clear_readings() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.readings_.Clear(); -} -Readings::Readings(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); + readings_.Clear(); +} +Readings::Readings(::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, &Readings::ArenaDtor); + } // @@protoc_insertion_point(arena_constructor:viam.service.sensors.v1.Readings) } -inline PROTOBUF_NDEBUG_INLINE Readings::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - readings_{visibility, arena, from.readings_} {} - -Readings::Readings( - ::google::protobuf::Arena* arena, - const Readings& from) - : ::google::protobuf::Message(arena) { - Readings* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.name_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::common::v1::ResourceName>(arena, *from._impl_.name_) - : nullptr; - +Readings::Readings(const Readings& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + readings_.MergeFrom(from.readings_); + if (from._internal_has_name()) { + name_ = new ::viam::common::v1::ResourceName(*from.name_); + } else { + name_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.service.sensors.v1.Readings) } -inline PROTOBUF_NDEBUG_INLINE Readings::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - readings_{visibility, arena} {} -inline void Readings::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.name_ = {}; +inline void Readings::SharedCtor() { +name_ = nullptr; } + Readings::~Readings() { // @@protoc_insertion_point(destructor:viam.service.sensors.v1.Readings) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + ArenaDtor(this); + return; + } SharedDtor(); } + inline void Readings::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.name_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + readings_.Destruct(); + if (this != internal_default_instance()) delete name_; } -PROTOBUF_NOINLINE void Readings::Clear() { +void Readings::ArenaDtor(void* object) { + Readings* _this = reinterpret_cast< Readings* >(object); + _this->readings_.Destruct(); +} +void Readings::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void Readings::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.sensors.v1.Readings) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.readings_.Clear(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.name_ != nullptr); - _impl_.name_->Clear(); + readings_.Clear(); + if (GetArenaForAllocation() == nullptr && name_ != nullptr) { + delete name_; } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Readings::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Readings::_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 name = 1 [json_name = "name", deprecated = true]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_name(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // map readings = 2 [json_name = "readings", deprecated = true]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&readings_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 2, 3, 49, 2> Readings::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Readings, _impl_._has_bits_), - 0, // no _extensions_ - 2, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 3, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Readings_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.common.v1.ResourceName name = 1 [json_name = "name", deprecated = true]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(Readings, _impl_.name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.common.v1.ResourceName name = 1 [json_name = "name", deprecated = true]; - {PROTOBUF_FIELD_OFFSET(Readings, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // map readings = 2 [json_name = "readings", deprecated = true]; - {PROTOBUF_FIELD_OFFSET(Readings, _impl_.readings_), -1, 1, - (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::common::v1::ResourceName>()}, - {::_pbi::TcParser::GetMapAuxInfo< - decltype(Readings()._impl_.readings_)>( - 1, 0, 0, 9, - 11)}, - {::_pbi::TcParser::CreateInArenaStorageCb<::google::protobuf::Value>}, - }}, {{ - "\40\0\10\0\0\0\0\0" - "viam.service.sensors.v1.Readings" - "readings" - }}, -}; - -::uint8_t* Readings::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Readings::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.sensors.v1.Readings) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.common.v1.ResourceName name = 1 [json_name = "name", deprecated = true]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::name(this), + if (this->_internal_has_name()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::name(this), _Internal::name(this).GetCachedSize(), target, stream); } // map readings = 2 [json_name = "readings", deprecated = true]; - if (!_internal_readings().empty()) { - using MapType = ::google::protobuf::Map; - using WireHelper = _pbi::MapEntryFuncs; - const auto& field = _internal_readings(); - - if (stream->IsSerializationDeterministic() && field.size() > 1) { - for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { - target = WireHelper::InternalSerialize( - 2, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.sensors.v1.Readings.readings"); + if (!this->_internal_readings().empty()) { + using MapType = ::_pb::Map; + using WireHelper = Readings_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.service.sensors.v1.Readings.ReadingsEntry.key"); + }; + + if (stream->IsSerializationDeterministic() && map_field.size() > 1) { + for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { + target = WireHelper::InternalSerialize(2, entry.first, entry.second, target, stream); + check_utf8(entry); } } else { - for (const auto& entry : field) { - target = WireHelper::InternalSerialize( - 2, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.sensors.v1.Readings.readings"); + for (const auto& entry : map_field) { + target = WireHelper::InternalSerialize(2, 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.sensors.v1.Readings) return target; } -::size_t Readings::ByteSizeLong() const { +size_t Readings::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.sensors.v1.Readings) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // map readings = 2 [json_name = "readings", deprecated = true]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_readings_size()); - for (const auto& entry : _internal_readings()) { - total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); + 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 += Readings_ReadingsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); } + // .viam.common.v1.ResourceName name = 1 [json_name = "name", deprecated = true]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.name_); + if (this->_internal_has_name()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *name_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Readings::_class_data_ = { - Readings::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Readings::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Readings::MergeImpl }; -const ::google::protobuf::Message::ClassData* Readings::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Readings::GetClassData() const { return &_class_data_; } + +void Readings::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Readings::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.sensors.v1.Readings) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Readings::MergeFrom(const Readings& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.sensors.v1.Readings) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.readings_.MergeFrom(from._impl_.readings_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_name()->::viam::common::v1::ResourceName::MergeFrom( - from._internal_name()); + readings_.MergeFrom(from.readings_); + if (from._internal_has_name()) { + _internal_mutable_name()->::viam::common::v1::ResourceName::MergeFrom(from._internal_name()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Readings::CopyFrom(const Readings& from) { @@ -1296,182 +1196,176 @@ void Readings::CopyFrom(const Readings& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Readings::IsInitialized() const { +bool Readings::IsInitialized() const { return true; } -::_pbi::CachedSize* Readings::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Readings::InternalSwap(Readings* PROTOBUF_RESTRICT other) { +void Readings::InternalSwap(Readings* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.readings_.InternalSwap(&other->_impl_.readings_); - swap(_impl_.name_, other->_impl_.name_); + readings_.InternalSwap(&other->readings_); + swap(name_, other->name_); } -::google::protobuf::Metadata Readings::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Readings::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fsensors_2fv1_2fsensors_2eproto_getter, &descriptor_table_service_2fsensors_2fv1_2fsensors_2eproto_once, file_level_metadata_service_2fsensors_2fv1_2fsensors_2eproto[4]); } + // =================================================================== class GetReadingsResponse::_Internal { public: }; -GetReadingsResponse::GetReadingsResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetReadingsResponse::GetReadingsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + readings_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.service.sensors.v1.GetReadingsResponse) } -inline PROTOBUF_NDEBUG_INLINE GetReadingsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : readings_{visibility, arena, from.readings_}, - _cached_size_{0} {} - -GetReadingsResponse::GetReadingsResponse( - ::google::protobuf::Arena* arena, - const GetReadingsResponse& from) - : ::google::protobuf::Message(arena) { - GetReadingsResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetReadingsResponse::GetReadingsResponse(const GetReadingsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + readings_(from.readings_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.service.sensors.v1.GetReadingsResponse) } -inline PROTOBUF_NDEBUG_INLINE GetReadingsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : readings_{visibility, arena}, - _cached_size_{0} {} -inline void GetReadingsResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetReadingsResponse::SharedCtor() { } + GetReadingsResponse::~GetReadingsResponse() { // @@protoc_insertion_point(destructor:viam.service.sensors.v1.GetReadingsResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetReadingsResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void GetReadingsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetReadingsResponse::Clear() { +void GetReadingsResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.sensors.v1.GetReadingsResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.readings_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetReadingsResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + 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) { + // repeated .viam.service.sensors.v1.Readings readings = 1 [json_name = "readings", deprecated = true]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetReadingsResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetReadingsResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.service.sensors.v1.Readings readings = 1 [json_name = "readings", deprecated = true]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetReadingsResponse, _impl_.readings_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.service.sensors.v1.Readings readings = 1 [json_name = "readings", deprecated = true]; - {PROTOBUF_FIELD_OFFSET(GetReadingsResponse, _impl_.readings_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::service::sensors::v1::Readings>()}, - }}, {{ - }}, -}; - -::uint8_t* GetReadingsResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetReadingsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.sensors.v1.GetReadingsResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .viam.service.sensors.v1.Readings readings = 1 [json_name = "readings", deprecated = true]; for (unsigned i = 0, n = static_cast(this->_internal_readings_size()); i < n; i++) { - const auto& repfield = this->_internal_readings().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_readings(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.sensors.v1.GetReadingsResponse) return target; } -::size_t GetReadingsResponse::ByteSizeLong() const { +size_t GetReadingsResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.sensors.v1.GetReadingsResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.service.sensors.v1.Readings readings = 1 [json_name = "readings", deprecated = true]; total_size += 1UL * this->_internal_readings_size(); - for (const auto& msg : this->_internal_readings()) { + for (const auto& msg : this->readings_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetReadingsResponse::_class_data_ = { - GetReadingsResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetReadingsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetReadingsResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetReadingsResponse::GetClassData() const { - return &_class_data_; +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::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.sensors.v1.GetReadingsResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetReadingsResponse::MergeFrom(const GetReadingsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.sensors.v1.GetReadingsResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_readings()->MergeFrom( - from._internal_readings()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + readings_.MergeFrom(from.readings_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetReadingsResponse::CopyFrom(const GetReadingsResponse& from) { @@ -1481,32 +1375,53 @@ void GetReadingsResponse::CopyFrom(const GetReadingsResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetReadingsResponse::IsInitialized() const { +bool GetReadingsResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetReadingsResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetReadingsResponse::InternalSwap(GetReadingsResponse* PROTOBUF_RESTRICT other) { +void GetReadingsResponse::InternalSwap(GetReadingsResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.readings_.InternalSwap(&other->_impl_.readings_); + readings_.InternalSwap(&other->readings_); } -::google::protobuf::Metadata GetReadingsResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetReadingsResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fsensors_2fv1_2fsensors_2eproto_getter, &descriptor_table_service_2fsensors_2fv1_2fsensors_2eproto_once, file_level_metadata_service_2fsensors_2fv1_2fsensors_2eproto[5]); } + // @@protoc_insertion_point(namespace_scope) } // namespace v1 } // namespace sensors } // namespace service } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::service::sensors::v1::GetSensorsRequest* +Arena::CreateMaybeMessage< ::viam::service::sensors::v1::GetSensorsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::sensors::v1::GetSensorsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::sensors::v1::GetSensorsResponse* +Arena::CreateMaybeMessage< ::viam::service::sensors::v1::GetSensorsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::sensors::v1::GetSensorsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::sensors::v1::GetReadingsRequest* +Arena::CreateMaybeMessage< ::viam::service::sensors::v1::GetReadingsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::sensors::v1::GetReadingsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::sensors::v1::Readings_ReadingsEntry_DoNotUse* +Arena::CreateMaybeMessage< ::viam::service::sensors::v1::Readings_ReadingsEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::sensors::v1::Readings_ReadingsEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::sensors::v1::Readings* +Arena::CreateMaybeMessage< ::viam::service::sensors::v1::Readings >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::sensors::v1::Readings >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::sensors::v1::GetReadingsResponse* +Arena::CreateMaybeMessage< ::viam::service::sensors::v1::GetReadingsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::sensors::v1::GetReadingsResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/service/sensors/v1/sensors.pb.h b/src/viam/api/service/sensors/v1/sensors.pb.h index 3cc7c24ea..4e4731791 100644 --- a/src/viam/api/service/sensors/v1/sensors.pb.h +++ b/src/viam/api/service/sensors/v1/sensors.pb.h @@ -1,66 +1,55 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: service/sensors/v1/sensors.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_service_2fsensors_2fv1_2fsensors_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_service_2fsensors_2fv1_2fsensors_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_service_2fsensors_2fv1_2fsensors_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_service_2fsensors_2fv1_2fsensors_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/map.h" // IWYU pragma: export -#include "google/protobuf/map_entry.h" -#include "google/protobuf/map_field_inl.h" -#include "google/protobuf/unknown_field_set.h" + +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#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 "google/protobuf/struct.pb.h" +#include // @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - +#include #define PROTOBUF_INTERNAL_EXPORT_service_2fsensors_2fv1_2fsensors_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_service_2fsensors_2fv1_2fsensors_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_service_2fsensors_2fv1_2fsensors_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_service_2fsensors_2fv1_2fsensors_2eproto; namespace viam { namespace service { namespace sensors { @@ -87,11 +76,14 @@ extern Readings_ReadingsEntry_DoNotUseDefaultTypeInternal _Readings_ReadingsEntr } // namespace sensors } // namespace service } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::service::sensors::v1::GetReadingsRequest* Arena::CreateMaybeMessage<::viam::service::sensors::v1::GetReadingsRequest>(Arena*); +template<> ::viam::service::sensors::v1::GetReadingsResponse* Arena::CreateMaybeMessage<::viam::service::sensors::v1::GetReadingsResponse>(Arena*); +template<> ::viam::service::sensors::v1::GetSensorsRequest* Arena::CreateMaybeMessage<::viam::service::sensors::v1::GetSensorsRequest>(Arena*); +template<> ::viam::service::sensors::v1::GetSensorsResponse* Arena::CreateMaybeMessage<::viam::service::sensors::v1::GetSensorsResponse>(Arena*); +template<> ::viam::service::sensors::v1::Readings* Arena::CreateMaybeMessage<::viam::service::sensors::v1::Readings>(Arena*); +template<> ::viam::service::sensors::v1::Readings_ReadingsEntry_DoNotUse* Arena::CreateMaybeMessage<::viam::service::sensors::v1::Readings_ReadingsEntry_DoNotUse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace viam { namespace service { namespace sensors { @@ -99,61 +91,28 @@ namespace v1 { // =================================================================== - -// ------------------------------------------------------------------- - -class Readings_ReadingsEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry< - Readings_ReadingsEntry_DoNotUse, std::string, ::google::protobuf::Value, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE> { - public: - using SuperType = ::google::protobuf::internal::MapEntry< - Readings_ReadingsEntry_DoNotUse, std::string, ::google::protobuf::Value, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>; - Readings_ReadingsEntry_DoNotUse(); - template - explicit PROTOBUF_CONSTEXPR Readings_ReadingsEntry_DoNotUse( - ::google::protobuf::internal::ConstantInitialized); - explicit Readings_ReadingsEntry_DoNotUse(::google::protobuf::Arena* arena); - static const Readings_ReadingsEntry_DoNotUse* internal_default_instance() { - return reinterpret_cast( - &_Readings_ReadingsEntry_DoNotUse_default_instance_); - } - static bool ValidateKey(std::string* s) { - return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "viam.service.sensors.v1.Readings.ReadingsEntry.key"); - } - static bool ValidateValue(void*) { return true; } - ::google::protobuf::Metadata GetMetadata() const final; - friend struct ::TableStruct_service_2fsensors_2fv1_2fsensors_2eproto; -}; -// ------------------------------------------------------------------- - -class GetSensorsResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.sensors.v1.GetSensorsResponse) */ { +class GetSensorsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.sensors.v1.GetSensorsRequest) */ { public: - inline GetSensorsResponse() : GetSensorsResponse(nullptr) {} - ~GetSensorsResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetSensorsResponse(::google::protobuf::internal::ConstantInitialized); + inline GetSensorsRequest() : GetSensorsRequest(nullptr) {} + ~GetSensorsRequest() override; + explicit PROTOBUF_CONSTEXPR GetSensorsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetSensorsResponse(const GetSensorsResponse& from) - : GetSensorsResponse(nullptr, from) {} - GetSensorsResponse(GetSensorsResponse&& from) noexcept - : GetSensorsResponse() { + GetSensorsRequest(const GetSensorsRequest& from); + GetSensorsRequest(GetSensorsRequest&& from) noexcept + : GetSensorsRequest() { *this = ::std::move(from); } - inline GetSensorsResponse& operator=(const GetSensorsResponse& from) { + inline GetSensorsRequest& operator=(const GetSensorsRequest& from) { CopyFrom(from); return *this; } - inline GetSensorsResponse& operator=(GetSensorsResponse&& from) noexcept { + inline GetSensorsRequest& operator=(GetSensorsRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -163,180 +122,165 @@ class GetSensorsResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetSensorsResponse& default_instance() { + static const GetSensorsRequest& default_instance() { return *internal_default_instance(); } - static inline const GetSensorsResponse* internal_default_instance() { - return reinterpret_cast( - &_GetSensorsResponse_default_instance_); + static inline const GetSensorsRequest* internal_default_instance() { + return reinterpret_cast( + &_GetSensorsRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 1; + 0; - friend void swap(GetSensorsResponse& a, GetSensorsResponse& b) { + friend void swap(GetSensorsRequest& a, GetSensorsRequest& b) { a.Swap(&b); } - inline void Swap(GetSensorsResponse* other) { + inline void Swap(GetSensorsRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetSensorsResponse* other) { + void UnsafeArenaSwap(GetSensorsRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetSensorsResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetSensorsResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetSensorsResponse& from) { - GetSensorsResponse::MergeImpl(*this, from); + GetSensorsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetSensorsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetSensorsRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetSensorsResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetSensorsRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.sensors.v1.GetSensorsResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.sensors.v1.GetSensorsRequest"; } protected: - explicit GetSensorsResponse(::google::protobuf::Arena* arena); - GetSensorsResponse(::google::protobuf::Arena* arena, const GetSensorsResponse& from); + explicit GetSensorsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kSensorNamesFieldNumber = 1, + kNameFieldNumber = 1, + kExtraFieldNumber = 99, }; - // repeated .viam.common.v1.ResourceName sensor_names = 1 [json_name = "sensorNames", deprecated = true]; - [[deprecated]] int sensor_names_size() const; + // string name = 1 [json_name = "name", deprecated = true]; + PROTOBUF_DEPRECATED void clear_name(); + PROTOBUF_DEPRECATED const std::string& name() const; + template + PROTOBUF_DEPRECATED void set_name(ArgT0&& arg0, ArgT... args); + PROTOBUF_DEPRECATED std::string* mutable_name(); + PROTOBUF_NODISCARD PROTOBUF_DEPRECATED std::string* release_name(); + PROTOBUF_DEPRECATED void set_allocated_name(std::string* name); private: - int _internal_sensor_names_size() const; + 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", deprecated = true]; + PROTOBUF_DEPRECATED bool has_extra() const; + private: + bool _internal_has_extra() const; public: - [[deprecated]] void clear_sensor_names() ; - [[deprecated]] ::viam::common::v1::ResourceName* mutable_sensor_names(int index); - [[deprecated]] ::google::protobuf::RepeatedPtrField< ::viam::common::v1::ResourceName >* - mutable_sensor_names(); + PROTOBUF_DEPRECATED void clear_extra(); + PROTOBUF_DEPRECATED const ::PROTOBUF_NAMESPACE_ID::Struct& extra() const; + PROTOBUF_NODISCARD PROTOBUF_DEPRECATED ::PROTOBUF_NAMESPACE_ID::Struct* release_extra(); + PROTOBUF_DEPRECATED ::PROTOBUF_NAMESPACE_ID::Struct* mutable_extra(); + PROTOBUF_DEPRECATED void set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra); private: - const ::google::protobuf::RepeatedPtrField<::viam::common::v1::ResourceName>& _internal_sensor_names() const; - ::google::protobuf::RepeatedPtrField<::viam::common::v1::ResourceName>* _internal_mutable_sensor_names(); + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_extra() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_extra(); public: - [[deprecated]] const ::viam::common::v1::ResourceName& sensor_names(int index) const; - [[deprecated]] ::viam::common::v1::ResourceName* add_sensor_names(); - [[deprecated]] const ::google::protobuf::RepeatedPtrField< ::viam::common::v1::ResourceName >& - sensor_names() const; - // @@protoc_insertion_point(class_scope:viam.service.sensors.v1.GetSensorsResponse) + PROTOBUF_DEPRECATED void unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra); + PROTOBUF_DEPRECATED ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_extra(); + + // @@protoc_insertion_point(class_scope:viam.service.sensors.v1.GetSensorsRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::common::v1::ResourceName > sensor_names_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + 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_service_2fsensors_2fv1_2fsensors_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetSensorsRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.sensors.v1.GetSensorsRequest) */ { +class GetSensorsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.sensors.v1.GetSensorsResponse) */ { public: - inline GetSensorsRequest() : GetSensorsRequest(nullptr) {} - ~GetSensorsRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetSensorsRequest(::google::protobuf::internal::ConstantInitialized); + inline GetSensorsResponse() : GetSensorsResponse(nullptr) {} + ~GetSensorsResponse() override; + explicit PROTOBUF_CONSTEXPR GetSensorsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetSensorsRequest(const GetSensorsRequest& from) - : GetSensorsRequest(nullptr, from) {} - GetSensorsRequest(GetSensorsRequest&& from) noexcept - : GetSensorsRequest() { + GetSensorsResponse(const GetSensorsResponse& from); + GetSensorsResponse(GetSensorsResponse&& from) noexcept + : GetSensorsResponse() { *this = ::std::move(from); } - inline GetSensorsRequest& operator=(const GetSensorsRequest& from) { + inline GetSensorsResponse& operator=(const GetSensorsResponse& from) { CopyFrom(from); return *this; } - inline GetSensorsRequest& operator=(GetSensorsRequest&& from) noexcept { + inline GetSensorsResponse& operator=(GetSensorsResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -346,182 +290,135 @@ class GetSensorsRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetSensorsRequest& default_instance() { + static const GetSensorsResponse& default_instance() { return *internal_default_instance(); } - static inline const GetSensorsRequest* internal_default_instance() { - return reinterpret_cast( - &_GetSensorsRequest_default_instance_); + static inline const GetSensorsResponse* internal_default_instance() { + return reinterpret_cast( + &_GetSensorsResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 0; + 1; - friend void swap(GetSensorsRequest& a, GetSensorsRequest& b) { + friend void swap(GetSensorsResponse& a, GetSensorsResponse& b) { a.Swap(&b); } - inline void Swap(GetSensorsRequest* other) { + inline void Swap(GetSensorsResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetSensorsRequest* other) { + void UnsafeArenaSwap(GetSensorsResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetSensorsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetSensorsRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetSensorsRequest& from) { - GetSensorsRequest::MergeImpl(*this, from); + GetSensorsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetSensorsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetSensorsResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetSensorsRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetSensorsResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.sensors.v1.GetSensorsRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.sensors.v1.GetSensorsResponse"; } protected: - explicit GetSensorsRequest(::google::protobuf::Arena* arena); - GetSensorsRequest(::google::protobuf::Arena* arena, const GetSensorsRequest& from); + explicit GetSensorsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kNameFieldNumber = 1, - kExtraFieldNumber = 99, + kSensorNamesFieldNumber = 1, }; - // string name = 1 [json_name = "name", deprecated = true]; - [[deprecated]] void clear_name() ; - [[deprecated]] const std::string& name() const; - template - [[deprecated]] void set_name(Arg_&& arg, Args_... args); - [[deprecated]] std::string* mutable_name(); - [[deprecated]] PROTOBUF_NODISCARD std::string* release_name(); - [[deprecated]] void set_allocated_name(std::string* value); - + // repeated .viam.common.v1.ResourceName sensor_names = 1 [json_name = "sensorNames", deprecated = true]; + PROTOBUF_DEPRECATED int sensor_names_size() const; private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - + int _internal_sensor_names_size() const; public: - // .google.protobuf.Struct extra = 99 [json_name = "extra", deprecated = true]; - [[deprecated]] bool has_extra() const; - [[deprecated]] void clear_extra() ; - [[deprecated]] const ::google::protobuf::Struct& extra() const; - [[deprecated]] PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - [[deprecated]] ::google::protobuf::Struct* mutable_extra(); - [[deprecated]] void set_allocated_extra(::google::protobuf::Struct* value); - [[deprecated]] void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - [[deprecated]] ::google::protobuf::Struct* unsafe_arena_release_extra(); - + PROTOBUF_DEPRECATED void clear_sensor_names(); + PROTOBUF_DEPRECATED ::viam::common::v1::ResourceName* mutable_sensor_names(int index); + PROTOBUF_DEPRECATED ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::ResourceName >* + mutable_sensor_names(); private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - + const ::viam::common::v1::ResourceName& _internal_sensor_names(int index) const; + ::viam::common::v1::ResourceName* _internal_add_sensor_names(); public: - // @@protoc_insertion_point(class_scope:viam.service.sensors.v1.GetSensorsRequest) + PROTOBUF_DEPRECATED const ::viam::common::v1::ResourceName& sensor_names(int index) const; + PROTOBUF_DEPRECATED ::viam::common::v1::ResourceName* add_sensor_names(); + PROTOBUF_DEPRECATED const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::ResourceName >& + sensor_names() const; + + // @@protoc_insertion_point(class_scope:viam.service.sensors.v1.GetSensorsResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 2, 1, - 54, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::ResourceName > sensor_names_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fsensors_2fv1_2fsensors_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class GetReadingsRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.sensors.v1.GetReadingsRequest) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.sensors.v1.GetReadingsRequest) */ { public: inline GetReadingsRequest() : GetReadingsRequest(nullptr) {} ~GetReadingsRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetReadingsRequest(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR GetReadingsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetReadingsRequest(const GetReadingsRequest& from) - : GetReadingsRequest(nullptr, from) {} + GetReadingsRequest(const GetReadingsRequest& from); GetReadingsRequest(GetReadingsRequest&& from) noexcept : GetReadingsRequest() { *this = ::std::move(from); @@ -533,9 +430,9 @@ class GetReadingsRequest final : } inline GetReadingsRequest& operator=(GetReadingsRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -545,22 +442,13 @@ class GetReadingsRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const GetReadingsRequest& default_instance() { @@ -579,65 +467,63 @@ class GetReadingsRequest final : inline void Swap(GetReadingsRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(GetReadingsRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetReadingsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + GetReadingsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const GetReadingsRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetReadingsRequest& from) { - GetReadingsRequest::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetReadingsRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(GetReadingsRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "viam.service.sensors.v1.GetReadingsRequest"; } protected: - explicit GetReadingsRequest(::google::protobuf::Arena* arena); - GetReadingsRequest(::google::protobuf::Arena* arena, const GetReadingsRequest& from); + explicit GetReadingsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -649,98 +535,104 @@ class GetReadingsRequest final : kExtraFieldNumber = 99, }; // repeated .viam.common.v1.ResourceName sensor_names = 2 [json_name = "sensorNames", deprecated = true]; - [[deprecated]] int sensor_names_size() const; + PROTOBUF_DEPRECATED int sensor_names_size() const; private: int _internal_sensor_names_size() const; - public: - [[deprecated]] void clear_sensor_names() ; - [[deprecated]] ::viam::common::v1::ResourceName* mutable_sensor_names(int index); - [[deprecated]] ::google::protobuf::RepeatedPtrField< ::viam::common::v1::ResourceName >* + PROTOBUF_DEPRECATED void clear_sensor_names(); + PROTOBUF_DEPRECATED ::viam::common::v1::ResourceName* mutable_sensor_names(int index); + PROTOBUF_DEPRECATED ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::ResourceName >* mutable_sensor_names(); private: - const ::google::protobuf::RepeatedPtrField<::viam::common::v1::ResourceName>& _internal_sensor_names() const; - ::google::protobuf::RepeatedPtrField<::viam::common::v1::ResourceName>* _internal_mutable_sensor_names(); + const ::viam::common::v1::ResourceName& _internal_sensor_names(int index) const; + ::viam::common::v1::ResourceName* _internal_add_sensor_names(); public: - [[deprecated]] const ::viam::common::v1::ResourceName& sensor_names(int index) const; - [[deprecated]] ::viam::common::v1::ResourceName* add_sensor_names(); - [[deprecated]] const ::google::protobuf::RepeatedPtrField< ::viam::common::v1::ResourceName >& + PROTOBUF_DEPRECATED const ::viam::common::v1::ResourceName& sensor_names(int index) const; + PROTOBUF_DEPRECATED ::viam::common::v1::ResourceName* add_sensor_names(); + PROTOBUF_DEPRECATED const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::ResourceName >& sensor_names() const; - // string name = 1 [json_name = "name", deprecated = true]; - [[deprecated]] void clear_name() ; - [[deprecated]] const std::string& name() const; - template - [[deprecated]] void set_name(Arg_&& arg, Args_... args); - [[deprecated]] std::string* mutable_name(); - [[deprecated]] PROTOBUF_NODISCARD std::string* release_name(); - [[deprecated]] void set_allocated_name(std::string* value); + // string name = 1 [json_name = "name", deprecated = true]; + PROTOBUF_DEPRECATED void clear_name(); + PROTOBUF_DEPRECATED const std::string& name() const; + template + PROTOBUF_DEPRECATED void set_name(ArgT0&& arg0, ArgT... args); + PROTOBUF_DEPRECATED std::string* mutable_name(); + PROTOBUF_NODISCARD PROTOBUF_DEPRECATED std::string* release_name(); + PROTOBUF_DEPRECATED 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); + 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", deprecated = true]; - [[deprecated]] bool has_extra() const; - [[deprecated]] void clear_extra() ; - [[deprecated]] const ::google::protobuf::Struct& extra() const; - [[deprecated]] PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - [[deprecated]] ::google::protobuf::Struct* mutable_extra(); - [[deprecated]] void set_allocated_extra(::google::protobuf::Struct* value); - [[deprecated]] void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - [[deprecated]] ::google::protobuf::Struct* unsafe_arena_release_extra(); + // .google.protobuf.Struct extra = 99 [json_name = "extra", deprecated = true]; + PROTOBUF_DEPRECATED bool has_extra() const; private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - + bool _internal_has_extra() const; public: + PROTOBUF_DEPRECATED void clear_extra(); + PROTOBUF_DEPRECATED const ::PROTOBUF_NAMESPACE_ID::Struct& extra() const; + PROTOBUF_NODISCARD PROTOBUF_DEPRECATED ::PROTOBUF_NAMESPACE_ID::Struct* release_extra(); + PROTOBUF_DEPRECATED ::PROTOBUF_NAMESPACE_ID::Struct* mutable_extra(); + PROTOBUF_DEPRECATED 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: + PROTOBUF_DEPRECATED void unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra); + PROTOBUF_DEPRECATED ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_extra(); + // @@protoc_insertion_point(class_scope:viam.service.sensors.v1.GetReadingsRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 2, - 55, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::viam::common::v1::ResourceName > sensor_names_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::ResourceName > sensor_names_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fsensors_2fv1_2fsensors_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- + +class Readings_ReadingsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + Readings_ReadingsEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR Readings_ReadingsEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit Readings_ReadingsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const Readings_ReadingsEntry_DoNotUse& other); + static const Readings_ReadingsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_Readings_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.service.sensors.v1.Readings.ReadingsEntry.key"); + } + static bool ValidateValue(void*) { return true; } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + friend struct ::TableStruct_service_2fsensors_2fv1_2fsensors_2eproto; +}; + +// ------------------------------------------------------------------- class Readings final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.sensors.v1.Readings) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.sensors.v1.Readings) */ { public: inline Readings() : Readings(nullptr) {} ~Readings() override; - template - explicit PROTOBUF_CONSTEXPR Readings(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR Readings(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Readings(const Readings& from) - : Readings(nullptr, from) {} + Readings(const Readings& from); Readings(Readings&& from) noexcept : Readings() { *this = ::std::move(from); @@ -752,9 +644,9 @@ class Readings final : } inline Readings& operator=(Readings&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -764,22 +656,13 @@ class Readings final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const Readings& default_instance() { @@ -798,65 +681,65 @@ class Readings final : inline void Swap(Readings* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(Readings* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Readings* New(::google::protobuf::Arena* arena = nullptr) const final { + Readings* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const Readings& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Readings& from) { - Readings::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Readings& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(Readings* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "viam.service.sensors.v1.Readings"; } protected: - explicit Readings(::google::protobuf::Arena* arena); - Readings(::google::protobuf::Arena* arena, const Readings& from); + explicit Readings(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -868,81 +751,66 @@ class Readings final : kNameFieldNumber = 1, }; // map readings = 2 [json_name = "readings", deprecated = true]; - [[deprecated]] int readings_size() const; + PROTOBUF_DEPRECATED int readings_size() const; private: int _internal_readings_size() const; - public: - [[deprecated]] void clear_readings() ; - [[deprecated]] const ::google::protobuf::Map& readings() const; - [[deprecated]] ::google::protobuf::Map* mutable_readings(); - + PROTOBUF_DEPRECATED void clear_readings(); private: - const ::google::protobuf::Map& _internal_readings() const; - ::google::protobuf::Map* _internal_mutable_readings(); - + 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: - // .viam.common.v1.ResourceName name = 1 [json_name = "name", deprecated = true]; - [[deprecated]] bool has_name() const; - [[deprecated]] void clear_name() ; - [[deprecated]] const ::viam::common::v1::ResourceName& name() const; - [[deprecated]] PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_name(); - [[deprecated]] ::viam::common::v1::ResourceName* mutable_name(); - [[deprecated]] void set_allocated_name(::viam::common::v1::ResourceName* value); - [[deprecated]] void unsafe_arena_set_allocated_name(::viam::common::v1::ResourceName* value); - [[deprecated]] ::viam::common::v1::ResourceName* unsafe_arena_release_name(); + PROTOBUF_DEPRECATED const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >& + readings() const; + PROTOBUF_DEPRECATED ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >* + mutable_readings(); + // .viam.common.v1.ResourceName name = 1 [json_name = "name", deprecated = true]; + PROTOBUF_DEPRECATED bool has_name() const; + private: + bool _internal_has_name() const; + public: + PROTOBUF_DEPRECATED void clear_name(); + PROTOBUF_DEPRECATED const ::viam::common::v1::ResourceName& name() const; + PROTOBUF_NODISCARD PROTOBUF_DEPRECATED ::viam::common::v1::ResourceName* release_name(); + PROTOBUF_DEPRECATED ::viam::common::v1::ResourceName* mutable_name(); + PROTOBUF_DEPRECATED void set_allocated_name(::viam::common::v1::ResourceName* name); private: const ::viam::common::v1::ResourceName& _internal_name() const; ::viam::common::v1::ResourceName* _internal_mutable_name(); - public: + PROTOBUF_DEPRECATED void unsafe_arena_set_allocated_name( + ::viam::common::v1::ResourceName* name); + PROTOBUF_DEPRECATED ::viam::common::v1::ResourceName* unsafe_arena_release_name(); + // @@protoc_insertion_point(class_scope:viam.service.sensors.v1.Readings) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 2, 3, - 49, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::MapField - readings_; - ::viam::common::v1::ResourceName* name_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + Readings_ReadingsEntry_DoNotUse, + std::string, ::PROTOBUF_NAMESPACE_ID::Value, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> readings_; + ::viam::common::v1::ResourceName* name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fsensors_2fv1_2fsensors_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class GetReadingsResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.sensors.v1.GetReadingsResponse) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.sensors.v1.GetReadingsResponse) */ { public: inline GetReadingsResponse() : GetReadingsResponse(nullptr) {} ~GetReadingsResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetReadingsResponse(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR GetReadingsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetReadingsResponse(const GetReadingsResponse& from) - : GetReadingsResponse(nullptr, from) {} + GetReadingsResponse(const GetReadingsResponse& from); GetReadingsResponse(GetReadingsResponse&& from) noexcept : GetReadingsResponse() { *this = ::std::move(from); @@ -954,9 +822,9 @@ class GetReadingsResponse final : } inline GetReadingsResponse& operator=(GetReadingsResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -966,22 +834,13 @@ class GetReadingsResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const GetReadingsResponse& default_instance() { @@ -1000,65 +859,63 @@ class GetReadingsResponse final : inline void Swap(GetReadingsResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(GetReadingsResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetReadingsResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + GetReadingsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const GetReadingsResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetReadingsResponse& from) { - GetReadingsResponse::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetReadingsResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(GetReadingsResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "viam.service.sensors.v1.GetReadingsResponse"; } protected: - explicit GetReadingsResponse(::google::protobuf::Arena* arena); - GetReadingsResponse(::google::protobuf::Arena* arena, const GetReadingsResponse& from); + explicit GetReadingsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1068,211 +925,177 @@ class GetReadingsResponse final : kReadingsFieldNumber = 1, }; // repeated .viam.service.sensors.v1.Readings readings = 1 [json_name = "readings", deprecated = true]; - [[deprecated]] int readings_size() const; + PROTOBUF_DEPRECATED int readings_size() const; private: int _internal_readings_size() const; - public: - [[deprecated]] void clear_readings() ; - [[deprecated]] ::viam::service::sensors::v1::Readings* mutable_readings(int index); - [[deprecated]] ::google::protobuf::RepeatedPtrField< ::viam::service::sensors::v1::Readings >* + PROTOBUF_DEPRECATED void clear_readings(); + PROTOBUF_DEPRECATED ::viam::service::sensors::v1::Readings* mutable_readings(int index); + PROTOBUF_DEPRECATED ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::sensors::v1::Readings >* mutable_readings(); private: - const ::google::protobuf::RepeatedPtrField<::viam::service::sensors::v1::Readings>& _internal_readings() const; - ::google::protobuf::RepeatedPtrField<::viam::service::sensors::v1::Readings>* _internal_mutable_readings(); + const ::viam::service::sensors::v1::Readings& _internal_readings(int index) const; + ::viam::service::sensors::v1::Readings* _internal_add_readings(); public: - [[deprecated]] const ::viam::service::sensors::v1::Readings& readings(int index) const; - [[deprecated]] ::viam::service::sensors::v1::Readings* add_readings(); - [[deprecated]] const ::google::protobuf::RepeatedPtrField< ::viam::service::sensors::v1::Readings >& + PROTOBUF_DEPRECATED const ::viam::service::sensors::v1::Readings& readings(int index) const; + PROTOBUF_DEPRECATED ::viam::service::sensors::v1::Readings* add_readings(); + PROTOBUF_DEPRECATED const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::sensors::v1::Readings >& readings() const; + // @@protoc_insertion_point(class_scope:viam.service.sensors.v1.GetReadingsResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::service::sensors::v1::Readings > readings_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::sensors::v1::Readings > readings_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fsensors_2fv1_2fsensors_2eproto; }; - // =================================================================== - - // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ -// ------------------------------------------------------------------- - // GetSensorsRequest // string name = 1 [json_name = "name", deprecated = true]; inline void GetSensorsRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& GetSensorsRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetSensorsRequest::name() const { // @@protoc_insertion_point(field_get:viam.service.sensors.v1.GetSensorsRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetSensorsRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetSensorsRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.sensors.v1.GetSensorsRequest.name) } -inline std::string* GetSensorsRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetSensorsRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.service.sensors.v1.GetSensorsRequest.name) return _s; } inline const std::string& GetSensorsRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void GetSensorsRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* GetSensorsRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* GetSensorsRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.sensors.v1.GetSensorsRequest.name) - return _impl_.name_.Release(); -} -inline void GetSensorsRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void GetSensorsRequest::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.service.sensors.v1.GetSensorsRequest.name) } // .google.protobuf.Struct extra = 99 [json_name = "extra", deprecated = true]; +inline bool GetSensorsRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool GetSensorsRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& GetSensorsRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetSensorsRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& GetSensorsRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetSensorsRequest::extra() const { // @@protoc_insertion_point(field_get:viam.service.sensors.v1.GetSensorsRequest.extra) return _internal_extra(); } -inline void GetSensorsRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void GetSensorsRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.sensors.v1.GetSensorsRequest.extra) } -inline ::google::protobuf::Struct* GetSensorsRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetSensorsRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* GetSensorsRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetSensorsRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.service.sensors.v1.GetSensorsRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* GetSensorsRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetSensorsRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* GetSensorsRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetSensorsRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.service.sensors.v1.GetSensorsRequest.extra) return _msg; } -inline void GetSensorsRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetSensorsRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.service.sensors.v1.GetSensorsRequest.extra) } @@ -1282,47 +1105,39 @@ inline void GetSensorsRequest::set_allocated_extra(::google::protobuf::Struct* v // repeated .viam.common.v1.ResourceName sensor_names = 1 [json_name = "sensorNames", deprecated = true]; inline int GetSensorsResponse::_internal_sensor_names_size() const { - return _internal_sensor_names().size(); + return sensor_names_.size(); } inline int GetSensorsResponse::sensor_names_size() const { return _internal_sensor_names_size(); } -inline ::viam::common::v1::ResourceName* GetSensorsResponse::mutable_sensor_names(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::ResourceName* GetSensorsResponse::mutable_sensor_names(int index) { // @@protoc_insertion_point(field_mutable:viam.service.sensors.v1.GetSensorsResponse.sensor_names) - return _internal_mutable_sensor_names()->Mutable(index); + return sensor_names_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::common::v1::ResourceName>* GetSensorsResponse::mutable_sensor_names() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::ResourceName >* +GetSensorsResponse::mutable_sensor_names() { // @@protoc_insertion_point(field_mutable_list:viam.service.sensors.v1.GetSensorsResponse.sensor_names) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_sensor_names(); + return &sensor_names_; +} +inline const ::viam::common::v1::ResourceName& GetSensorsResponse::_internal_sensor_names(int index) const { + return sensor_names_.Get(index); } -inline const ::viam::common::v1::ResourceName& GetSensorsResponse::sensor_names(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::ResourceName& GetSensorsResponse::sensor_names(int index) const { // @@protoc_insertion_point(field_get:viam.service.sensors.v1.GetSensorsResponse.sensor_names) - return _internal_sensor_names().Get(index); + return _internal_sensor_names(index); } -inline ::viam::common::v1::ResourceName* GetSensorsResponse::add_sensor_names() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::common::v1::ResourceName* _add = _internal_mutable_sensor_names()->Add(); +inline ::viam::common::v1::ResourceName* GetSensorsResponse::_internal_add_sensor_names() { + return sensor_names_.Add(); +} +inline ::viam::common::v1::ResourceName* GetSensorsResponse::add_sensor_names() { + ::viam::common::v1::ResourceName* _add = _internal_add_sensor_names(); // @@protoc_insertion_point(field_add:viam.service.sensors.v1.GetSensorsResponse.sensor_names) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::common::v1::ResourceName>& GetSensorsResponse::sensor_names() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::ResourceName >& +GetSensorsResponse::sensor_names() const { // @@protoc_insertion_point(field_list:viam.service.sensors.v1.GetSensorsResponse.sensor_names) - return _internal_sensor_names(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::common::v1::ResourceName>& -GetSensorsResponse::_internal_sensor_names() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.sensor_names_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::common::v1::ResourceName>* -GetSensorsResponse::_internal_mutable_sensor_names() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.sensor_names_; + return sensor_names_; } // ------------------------------------------------------------------- @@ -1331,190 +1146,173 @@ GetSensorsResponse::_internal_mutable_sensor_names() { // string name = 1 [json_name = "name", deprecated = true]; inline void GetReadingsRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& GetReadingsRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetReadingsRequest::name() const { // @@protoc_insertion_point(field_get:viam.service.sensors.v1.GetReadingsRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetReadingsRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +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.service.sensors.v1.GetReadingsRequest.name) } -inline std::string* GetReadingsRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetReadingsRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.service.sensors.v1.GetReadingsRequest.name) return _s; } inline const std::string& GetReadingsRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void GetReadingsRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* GetReadingsRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* GetReadingsRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.sensors.v1.GetReadingsRequest.name) - return _impl_.name_.Release(); -} -inline void GetReadingsRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + 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.service.sensors.v1.GetReadingsRequest.name) } // repeated .viam.common.v1.ResourceName sensor_names = 2 [json_name = "sensorNames", deprecated = true]; inline int GetReadingsRequest::_internal_sensor_names_size() const { - return _internal_sensor_names().size(); + return sensor_names_.size(); } inline int GetReadingsRequest::sensor_names_size() const { return _internal_sensor_names_size(); } -inline ::viam::common::v1::ResourceName* GetReadingsRequest::mutable_sensor_names(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::ResourceName* GetReadingsRequest::mutable_sensor_names(int index) { // @@protoc_insertion_point(field_mutable:viam.service.sensors.v1.GetReadingsRequest.sensor_names) - return _internal_mutable_sensor_names()->Mutable(index); + return sensor_names_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::common::v1::ResourceName>* GetReadingsRequest::mutable_sensor_names() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::ResourceName >* +GetReadingsRequest::mutable_sensor_names() { // @@protoc_insertion_point(field_mutable_list:viam.service.sensors.v1.GetReadingsRequest.sensor_names) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_sensor_names(); + return &sensor_names_; +} +inline const ::viam::common::v1::ResourceName& GetReadingsRequest::_internal_sensor_names(int index) const { + return sensor_names_.Get(index); } -inline const ::viam::common::v1::ResourceName& GetReadingsRequest::sensor_names(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::ResourceName& GetReadingsRequest::sensor_names(int index) const { // @@protoc_insertion_point(field_get:viam.service.sensors.v1.GetReadingsRequest.sensor_names) - return _internal_sensor_names().Get(index); + return _internal_sensor_names(index); } -inline ::viam::common::v1::ResourceName* GetReadingsRequest::add_sensor_names() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::common::v1::ResourceName* _add = _internal_mutable_sensor_names()->Add(); +inline ::viam::common::v1::ResourceName* GetReadingsRequest::_internal_add_sensor_names() { + return sensor_names_.Add(); +} +inline ::viam::common::v1::ResourceName* GetReadingsRequest::add_sensor_names() { + ::viam::common::v1::ResourceName* _add = _internal_add_sensor_names(); // @@protoc_insertion_point(field_add:viam.service.sensors.v1.GetReadingsRequest.sensor_names) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::common::v1::ResourceName>& GetReadingsRequest::sensor_names() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::ResourceName >& +GetReadingsRequest::sensor_names() const { // @@protoc_insertion_point(field_list:viam.service.sensors.v1.GetReadingsRequest.sensor_names) - return _internal_sensor_names(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::common::v1::ResourceName>& -GetReadingsRequest::_internal_sensor_names() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.sensor_names_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::common::v1::ResourceName>* -GetReadingsRequest::_internal_mutable_sensor_names() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.sensor_names_; + return sensor_names_; } // .google.protobuf.Struct extra = 99 [json_name = "extra", deprecated = true]; +inline bool GetReadingsRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool GetReadingsRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& GetReadingsRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +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 ::google::protobuf::Struct& GetReadingsRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetReadingsRequest::extra() const { // @@protoc_insertion_point(field_get:viam.service.sensors.v1.GetReadingsRequest.extra) return _internal_extra(); } -inline void GetReadingsRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.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_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.sensors.v1.GetReadingsRequest.extra) } -inline ::google::protobuf::Struct* GetReadingsRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +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<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* GetReadingsRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetReadingsRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.service.sensors.v1.GetReadingsRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* GetReadingsRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetReadingsRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* GetReadingsRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetReadingsRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.service.sensors.v1.GetReadingsRequest.extra) return _msg; } -inline void GetReadingsRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +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<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.service.sensors.v1.GetReadingsRequest.extra) } @@ -1525,116 +1323,112 @@ inline void GetReadingsRequest::set_allocated_extra(::google::protobuf::Struct* // Readings // .viam.common.v1.ResourceName name = 1 [json_name = "name", deprecated = true]; +inline bool Readings::_internal_has_name() const { + return this != internal_default_instance() && name_ != nullptr; +} inline bool Readings::has_name() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.name_ != nullptr); - return value; + return _internal_has_name(); } inline const ::viam::common::v1::ResourceName& Readings::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::common::v1::ResourceName* p = _impl_.name_; - return p != nullptr ? *p : reinterpret_cast(::viam::common::v1::_ResourceName_default_instance_); + const ::viam::common::v1::ResourceName* p = name_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_ResourceName_default_instance_); } -inline const ::viam::common::v1::ResourceName& Readings::name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::ResourceName& Readings::name() const { // @@protoc_insertion_point(field_get:viam.service.sensors.v1.Readings.name) return _internal_name(); } -inline void Readings::unsafe_arena_set_allocated_name(::viam::common::v1::ResourceName* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.name_); +inline void Readings::unsafe_arena_set_allocated_name( + ::viam::common::v1::ResourceName* name) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(name_); } - _impl_.name_ = reinterpret_cast<::viam::common::v1::ResourceName*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + name_ = name; + if (name) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.sensors.v1.Readings.name) } inline ::viam::common::v1::ResourceName* Readings::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::ResourceName* released = _impl_.name_; - _impl_.name_ = nullptr; + + ::viam::common::v1::ResourceName* temp = name_; + name_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::common::v1::ResourceName* Readings::unsafe_arena_release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.sensors.v1.Readings.name) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::ResourceName* temp = _impl_.name_; - _impl_.name_ = nullptr; + + ::viam::common::v1::ResourceName* temp = name_; + name_ = nullptr; return temp; } inline ::viam::common::v1::ResourceName* Readings::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.name_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArena()); - _impl_.name_ = reinterpret_cast<::viam::common::v1::ResourceName*>(p); + + if (name_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArenaForAllocation()); + name_ = p; } - return _impl_.name_; + return name_; } -inline ::viam::common::v1::ResourceName* Readings::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::ResourceName* Readings::mutable_name() { ::viam::common::v1::ResourceName* _msg = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.service.sensors.v1.Readings.name) return _msg; } -inline void Readings::set_allocated_name(::viam::common::v1::ResourceName* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Readings::set_allocated_name(::viam::common::v1::ResourceName* name) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.name_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(name_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (name) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(name)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, name, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.name_ = reinterpret_cast<::viam::common::v1::ResourceName*>(value); + name_ = name; // @@protoc_insertion_point(field_set_allocated:viam.service.sensors.v1.Readings.name) } // map readings = 2 [json_name = "readings", deprecated = true]; inline int Readings::_internal_readings_size() const { - return _internal_readings().size(); + return readings_.size(); } inline int Readings::readings_size() const { return _internal_readings_size(); } -inline const ::google::protobuf::Map& Readings::_internal_readings() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.readings_.GetMap(); +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >& +Readings::_internal_readings() const { + return readings_.GetMap(); } -inline const ::google::protobuf::Map& Readings::readings() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >& +Readings::readings() const { // @@protoc_insertion_point(field_map:viam.service.sensors.v1.Readings.readings) return _internal_readings(); } -inline ::google::protobuf::Map* Readings::_internal_mutable_readings() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.readings_.MutableMap(); +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >* +Readings::_internal_mutable_readings() { + return readings_.MutableMap(); } -inline ::google::protobuf::Map* Readings::mutable_readings() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >* +Readings::mutable_readings() { // @@protoc_insertion_point(field_mutable_map:viam.service.sensors.v1.Readings.readings) return _internal_mutable_readings(); } @@ -1645,66 +1439,66 @@ inline ::google::protobuf::Map* Readings // repeated .viam.service.sensors.v1.Readings readings = 1 [json_name = "readings", deprecated = true]; inline int GetReadingsResponse::_internal_readings_size() const { - return _internal_readings().size(); + return readings_.size(); } inline int GetReadingsResponse::readings_size() const { return _internal_readings_size(); } inline void GetReadingsResponse::clear_readings() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.readings_.Clear(); + readings_.Clear(); } -inline ::viam::service::sensors::v1::Readings* GetReadingsResponse::mutable_readings(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::service::sensors::v1::Readings* GetReadingsResponse::mutable_readings(int index) { // @@protoc_insertion_point(field_mutable:viam.service.sensors.v1.GetReadingsResponse.readings) - return _internal_mutable_readings()->Mutable(index); + return readings_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::service::sensors::v1::Readings>* GetReadingsResponse::mutable_readings() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::sensors::v1::Readings >* +GetReadingsResponse::mutable_readings() { // @@protoc_insertion_point(field_mutable_list:viam.service.sensors.v1.GetReadingsResponse.readings) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_readings(); + return &readings_; } -inline const ::viam::service::sensors::v1::Readings& GetReadingsResponse::readings(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::service::sensors::v1::Readings& GetReadingsResponse::_internal_readings(int index) const { + return readings_.Get(index); +} +inline const ::viam::service::sensors::v1::Readings& GetReadingsResponse::readings(int index) const { // @@protoc_insertion_point(field_get:viam.service.sensors.v1.GetReadingsResponse.readings) - return _internal_readings().Get(index); + return _internal_readings(index); +} +inline ::viam::service::sensors::v1::Readings* GetReadingsResponse::_internal_add_readings() { + return readings_.Add(); } -inline ::viam::service::sensors::v1::Readings* GetReadingsResponse::add_readings() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::service::sensors::v1::Readings* _add = _internal_mutable_readings()->Add(); +inline ::viam::service::sensors::v1::Readings* GetReadingsResponse::add_readings() { + ::viam::service::sensors::v1::Readings* _add = _internal_add_readings(); // @@protoc_insertion_point(field_add:viam.service.sensors.v1.GetReadingsResponse.readings) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::service::sensors::v1::Readings>& GetReadingsResponse::readings() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::sensors::v1::Readings >& +GetReadingsResponse::readings() const { // @@protoc_insertion_point(field_list:viam.service.sensors.v1.GetReadingsResponse.readings) - return _internal_readings(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::service::sensors::v1::Readings>& -GetReadingsResponse::_internal_readings() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.readings_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::service::sensors::v1::Readings>* -GetReadingsResponse::_internal_mutable_readings() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.readings_; + return readings_; } #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) + } // namespace v1 } // namespace sensors } // namespace service } // namespace viam - // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_service_2fsensors_2fv1_2fsensors_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_service_2fsensors_2fv1_2fsensors_2eproto diff --git a/src/viam/api/service/shell/v1/shell.grpc.pb.cc b/src/viam/api/service/shell/v1/shell.grpc.pb.cc index a48a49f87..a15141713 100644 --- a/src/viam/api/service/shell/v1/shell.grpc.pb.cc +++ b/src/viam/api/service/shell/v1/shell.grpc.pb.cc @@ -6,19 +6,19 @@ #include "service/shell/v1/shell.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace service { namespace shell { @@ -33,86 +33,91 @@ static const char* ShellService_method_names[] = { std::unique_ptr< ShellService::Stub> ShellService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { (void)options; - std::unique_ptr< ShellService::Stub> stub(new ShellService::Stub(channel, options)); + std::unique_ptr< ShellService::Stub> stub(new ShellService::Stub(channel)); return stub; } -ShellService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) - : channel_(channel), rpcmethod_Shell_(ShellService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::BIDI_STREAMING, channel) - , rpcmethod_CopyFilesToMachine_(ShellService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::BIDI_STREAMING, channel) - , rpcmethod_CopyFilesFromMachine_(ShellService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::BIDI_STREAMING, channel) - , rpcmethod_DoCommand_(ShellService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) +ShellService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_Shell_(ShellService_method_names[0], ::grpc::internal::RpcMethod::BIDI_STREAMING, channel) + , rpcmethod_CopyFilesToMachine_(ShellService_method_names[1], ::grpc::internal::RpcMethod::BIDI_STREAMING, channel) + , rpcmethod_CopyFilesFromMachine_(ShellService_method_names[2], ::grpc::internal::RpcMethod::BIDI_STREAMING, channel) + , rpcmethod_DoCommand_(ShellService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::ClientReaderWriter< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>* ShellService::Stub::ShellRaw(::grpc::ClientContext* context) { - return ::grpc::internal::ClientReaderWriterFactory< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>::Create(channel_.get(), rpcmethod_Shell_, context); + return ::grpc_impl::internal::ClientReaderWriterFactory< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>::Create(channel_.get(), rpcmethod_Shell_, context); } -void ShellService::Stub::async::Shell(::grpc::ClientContext* context, ::grpc::ClientBidiReactor< ::viam::service::shell::v1::ShellRequest,::viam::service::shell::v1::ShellResponse>* reactor) { - ::grpc::internal::ClientCallbackReaderWriterFactory< ::viam::service::shell::v1::ShellRequest,::viam::service::shell::v1::ShellResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_Shell_, context, reactor); +void ShellService::Stub::experimental_async::Shell(::grpc::ClientContext* context, ::grpc::experimental::ClientBidiReactor< ::viam::service::shell::v1::ShellRequest,::viam::service::shell::v1::ShellResponse>* reactor) { + ::grpc_impl::internal::ClientCallbackReaderWriterFactory< ::viam::service::shell::v1::ShellRequest,::viam::service::shell::v1::ShellResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_Shell_, context, reactor); } ::grpc::ClientAsyncReaderWriter< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>* ShellService::Stub::AsyncShellRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) { - return ::grpc::internal::ClientAsyncReaderWriterFactory< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>::Create(channel_.get(), cq, rpcmethod_Shell_, context, true, tag); + return ::grpc_impl::internal::ClientAsyncReaderWriterFactory< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>::Create(channel_.get(), cq, rpcmethod_Shell_, context, true, tag); } ::grpc::ClientAsyncReaderWriter< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>* ShellService::Stub::PrepareAsyncShellRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncReaderWriterFactory< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>::Create(channel_.get(), cq, rpcmethod_Shell_, context, false, nullptr); + return ::grpc_impl::internal::ClientAsyncReaderWriterFactory< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>::Create(channel_.get(), cq, rpcmethod_Shell_, context, false, nullptr); } ::grpc::ClientReaderWriter< ::viam::service::shell::v1::CopyFilesToMachineRequest, ::viam::service::shell::v1::CopyFilesToMachineResponse>* ShellService::Stub::CopyFilesToMachineRaw(::grpc::ClientContext* context) { - return ::grpc::internal::ClientReaderWriterFactory< ::viam::service::shell::v1::CopyFilesToMachineRequest, ::viam::service::shell::v1::CopyFilesToMachineResponse>::Create(channel_.get(), rpcmethod_CopyFilesToMachine_, context); + return ::grpc_impl::internal::ClientReaderWriterFactory< ::viam::service::shell::v1::CopyFilesToMachineRequest, ::viam::service::shell::v1::CopyFilesToMachineResponse>::Create(channel_.get(), rpcmethod_CopyFilesToMachine_, context); } -void ShellService::Stub::async::CopyFilesToMachine(::grpc::ClientContext* context, ::grpc::ClientBidiReactor< ::viam::service::shell::v1::CopyFilesToMachineRequest,::viam::service::shell::v1::CopyFilesToMachineResponse>* reactor) { - ::grpc::internal::ClientCallbackReaderWriterFactory< ::viam::service::shell::v1::CopyFilesToMachineRequest,::viam::service::shell::v1::CopyFilesToMachineResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_CopyFilesToMachine_, context, reactor); +void ShellService::Stub::experimental_async::CopyFilesToMachine(::grpc::ClientContext* context, ::grpc::experimental::ClientBidiReactor< ::viam::service::shell::v1::CopyFilesToMachineRequest,::viam::service::shell::v1::CopyFilesToMachineResponse>* reactor) { + ::grpc_impl::internal::ClientCallbackReaderWriterFactory< ::viam::service::shell::v1::CopyFilesToMachineRequest,::viam::service::shell::v1::CopyFilesToMachineResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_CopyFilesToMachine_, context, reactor); } ::grpc::ClientAsyncReaderWriter< ::viam::service::shell::v1::CopyFilesToMachineRequest, ::viam::service::shell::v1::CopyFilesToMachineResponse>* ShellService::Stub::AsyncCopyFilesToMachineRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) { - return ::grpc::internal::ClientAsyncReaderWriterFactory< ::viam::service::shell::v1::CopyFilesToMachineRequest, ::viam::service::shell::v1::CopyFilesToMachineResponse>::Create(channel_.get(), cq, rpcmethod_CopyFilesToMachine_, context, true, tag); + return ::grpc_impl::internal::ClientAsyncReaderWriterFactory< ::viam::service::shell::v1::CopyFilesToMachineRequest, ::viam::service::shell::v1::CopyFilesToMachineResponse>::Create(channel_.get(), cq, rpcmethod_CopyFilesToMachine_, context, true, tag); } ::grpc::ClientAsyncReaderWriter< ::viam::service::shell::v1::CopyFilesToMachineRequest, ::viam::service::shell::v1::CopyFilesToMachineResponse>* ShellService::Stub::PrepareAsyncCopyFilesToMachineRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncReaderWriterFactory< ::viam::service::shell::v1::CopyFilesToMachineRequest, ::viam::service::shell::v1::CopyFilesToMachineResponse>::Create(channel_.get(), cq, rpcmethod_CopyFilesToMachine_, context, false, nullptr); + return ::grpc_impl::internal::ClientAsyncReaderWriterFactory< ::viam::service::shell::v1::CopyFilesToMachineRequest, ::viam::service::shell::v1::CopyFilesToMachineResponse>::Create(channel_.get(), cq, rpcmethod_CopyFilesToMachine_, context, false, nullptr); } ::grpc::ClientReaderWriter< ::viam::service::shell::v1::CopyFilesFromMachineRequest, ::viam::service::shell::v1::CopyFilesFromMachineResponse>* ShellService::Stub::CopyFilesFromMachineRaw(::grpc::ClientContext* context) { - return ::grpc::internal::ClientReaderWriterFactory< ::viam::service::shell::v1::CopyFilesFromMachineRequest, ::viam::service::shell::v1::CopyFilesFromMachineResponse>::Create(channel_.get(), rpcmethod_CopyFilesFromMachine_, context); + return ::grpc_impl::internal::ClientReaderWriterFactory< ::viam::service::shell::v1::CopyFilesFromMachineRequest, ::viam::service::shell::v1::CopyFilesFromMachineResponse>::Create(channel_.get(), rpcmethod_CopyFilesFromMachine_, context); } -void ShellService::Stub::async::CopyFilesFromMachine(::grpc::ClientContext* context, ::grpc::ClientBidiReactor< ::viam::service::shell::v1::CopyFilesFromMachineRequest,::viam::service::shell::v1::CopyFilesFromMachineResponse>* reactor) { - ::grpc::internal::ClientCallbackReaderWriterFactory< ::viam::service::shell::v1::CopyFilesFromMachineRequest,::viam::service::shell::v1::CopyFilesFromMachineResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_CopyFilesFromMachine_, context, reactor); +void ShellService::Stub::experimental_async::CopyFilesFromMachine(::grpc::ClientContext* context, ::grpc::experimental::ClientBidiReactor< ::viam::service::shell::v1::CopyFilesFromMachineRequest,::viam::service::shell::v1::CopyFilesFromMachineResponse>* reactor) { + ::grpc_impl::internal::ClientCallbackReaderWriterFactory< ::viam::service::shell::v1::CopyFilesFromMachineRequest,::viam::service::shell::v1::CopyFilesFromMachineResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_CopyFilesFromMachine_, context, reactor); } ::grpc::ClientAsyncReaderWriter< ::viam::service::shell::v1::CopyFilesFromMachineRequest, ::viam::service::shell::v1::CopyFilesFromMachineResponse>* ShellService::Stub::AsyncCopyFilesFromMachineRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) { - return ::grpc::internal::ClientAsyncReaderWriterFactory< ::viam::service::shell::v1::CopyFilesFromMachineRequest, ::viam::service::shell::v1::CopyFilesFromMachineResponse>::Create(channel_.get(), cq, rpcmethod_CopyFilesFromMachine_, context, true, tag); + return ::grpc_impl::internal::ClientAsyncReaderWriterFactory< ::viam::service::shell::v1::CopyFilesFromMachineRequest, ::viam::service::shell::v1::CopyFilesFromMachineResponse>::Create(channel_.get(), cq, rpcmethod_CopyFilesFromMachine_, context, true, tag); } ::grpc::ClientAsyncReaderWriter< ::viam::service::shell::v1::CopyFilesFromMachineRequest, ::viam::service::shell::v1::CopyFilesFromMachineResponse>* ShellService::Stub::PrepareAsyncCopyFilesFromMachineRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncReaderWriterFactory< ::viam::service::shell::v1::CopyFilesFromMachineRequest, ::viam::service::shell::v1::CopyFilesFromMachineResponse>::Create(channel_.get(), cq, rpcmethod_CopyFilesFromMachine_, context, false, nullptr); + return ::grpc_impl::internal::ClientAsyncReaderWriterFactory< ::viam::service::shell::v1::CopyFilesFromMachineRequest, ::viam::service::shell::v1::CopyFilesFromMachineResponse>::Create(channel_.get(), cq, rpcmethod_CopyFilesFromMachine_, context, false, nullptr); } ::grpc::Status ShellService::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); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DoCommand_, context, request, response); } -void ShellService::Stub::async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); +void ShellService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); } -void ShellService::Stub::async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); +void ShellService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* ShellService::Stub::PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::common::v1::DoCommandResponse, ::viam::common::v1::DoCommandRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DoCommand_, context, request); +void ShellService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); +} + +void ShellService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* ShellService::Stub::AsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncDoCommandRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::DoCommandResponse>::Create(channel_.get(), cq, rpcmethod_DoCommand_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* ShellService::Stub::PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::DoCommandResponse>::Create(channel_.get(), cq, rpcmethod_DoCommand_, context, request, false); } ShellService::Service::Service() { @@ -121,8 +126,8 @@ ShellService::Service::Service() { ::grpc::internal::RpcMethod::BIDI_STREAMING, new ::grpc::internal::BidiStreamingHandler< ShellService::Service, ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>( [](ShellService::Service* service, - ::grpc::ServerContext* ctx, - ::grpc::ServerReaderWriter<::viam::service::shell::v1::ShellResponse, + ::grpc_impl::ServerContext* ctx, + ::grpc_impl::ServerReaderWriter<::viam::service::shell::v1::ShellResponse, ::viam::service::shell::v1::ShellRequest>* stream) { return service->Shell(ctx, stream); }, this))); @@ -131,8 +136,8 @@ ShellService::Service::Service() { ::grpc::internal::RpcMethod::BIDI_STREAMING, new ::grpc::internal::BidiStreamingHandler< ShellService::Service, ::viam::service::shell::v1::CopyFilesToMachineRequest, ::viam::service::shell::v1::CopyFilesToMachineResponse>( [](ShellService::Service* service, - ::grpc::ServerContext* ctx, - ::grpc::ServerReaderWriter<::viam::service::shell::v1::CopyFilesToMachineResponse, + ::grpc_impl::ServerContext* ctx, + ::grpc_impl::ServerReaderWriter<::viam::service::shell::v1::CopyFilesToMachineResponse, ::viam::service::shell::v1::CopyFilesToMachineRequest>* stream) { return service->CopyFilesToMachine(ctx, stream); }, this))); @@ -141,17 +146,17 @@ ShellService::Service::Service() { ::grpc::internal::RpcMethod::BIDI_STREAMING, new ::grpc::internal::BidiStreamingHandler< ShellService::Service, ::viam::service::shell::v1::CopyFilesFromMachineRequest, ::viam::service::shell::v1::CopyFilesFromMachineResponse>( [](ShellService::Service* service, - ::grpc::ServerContext* ctx, - ::grpc::ServerReaderWriter<::viam::service::shell::v1::CopyFilesFromMachineResponse, + ::grpc_impl::ServerContext* ctx, + ::grpc_impl::ServerReaderWriter<::viam::service::shell::v1::CopyFilesFromMachineResponse, ::viam::service::shell::v1::CopyFilesFromMachineRequest>* stream) { return service->CopyFilesFromMachine(ctx, stream); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( ShellService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< ShellService::Service, ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< ShellService::Service, ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( [](ShellService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::common::v1::DoCommandRequest* req, ::viam::common::v1::DoCommandResponse* resp) { return service->DoCommand(ctx, req, resp); diff --git a/src/viam/api/service/shell/v1/shell.grpc.pb.h b/src/viam/api/service/shell/v1/shell.grpc.pb.h index e5cfab5b3..2dc4deaac 100644 --- a/src/viam/api/service/shell/v1/shell.grpc.pb.h +++ b/src/viam/api/service/shell/v1/shell.grpc.pb.h @@ -7,23 +7,24 @@ #include "service/shell/v1/shell.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace service { @@ -91,11 +92,15 @@ class ShellService final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::DoCommandResponse>> PrepareAsyncDoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::DoCommandResponse>>(PrepareAsyncDoCommandRaw(context, request, cq)); } - class async_interface { + class experimental_async_interface { public: - virtual ~async_interface() {} + virtual ~experimental_async_interface() {} // Shell starts a shell with an input and output pipe. + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void Shell(::grpc::ClientContext* context, ::grpc::ClientBidiReactor< ::viam::service::shell::v1::ShellRequest,::viam::service::shell::v1::ShellResponse>* reactor) = 0; + #else + virtual void Shell(::grpc::ClientContext* context, ::grpc::experimental::ClientBidiReactor< ::viam::service::shell::v1::ShellRequest,::viam::service::shell::v1::ShellResponse>* reactor) = 0; + #endif // CopyFilesToMachines copies a stream of files from a client to the connected-to machine. // Initially, metadata is sent to describe the destination in the filesystem in addition // to what kind of file(s) are being sent. @@ -107,20 +112,42 @@ class ShellService final { // directory, copying depth-first, breadth-first, or any other algorithm does not matter. // Permissions and metadata on files copied are only preserved if the preserve option is // set in the initial request metadata. + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void CopyFilesToMachine(::grpc::ClientContext* context, ::grpc::ClientBidiReactor< ::viam::service::shell::v1::CopyFilesToMachineRequest,::viam::service::shell::v1::CopyFilesToMachineResponse>* reactor) = 0; + #else + virtual void CopyFilesToMachine(::grpc::ClientContext* context, ::grpc::experimental::ClientBidiReactor< ::viam::service::shell::v1::CopyFilesToMachineRequest,::viam::service::shell::v1::CopyFilesToMachineResponse>* reactor) = 0; + #endif // CopyFilesFromMachine copies a stream of files from a connected-to machine to the calling client. // Essentially, it is the inverse of CopyFilesToMachine with the same ACK mechanism in reverse. // The initial metadata request will request the paths to copy along with if permissions should // be preserved (and consequently sent over the wire). + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void CopyFilesFromMachine(::grpc::ClientContext* context, ::grpc::ClientBidiReactor< ::viam::service::shell::v1::CopyFilesFromMachineRequest,::viam::service::shell::v1::CopyFilesFromMachineResponse>* reactor) = 0; + #else + virtual void CopyFilesFromMachine(::grpc::ClientContext* context, ::grpc::experimental::ClientBidiReactor< ::viam::service::shell::v1::CopyFilesFromMachineRequest,::viam::service::shell::v1::CopyFilesFromMachineResponse>* reactor) = 0; + #endif // 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 ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif }; - typedef class async_interface experimental_async_interface; - virtual class async_interface* async() { return nullptr; } - class async_interface* experimental_async() { return async(); } - private: + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef class experimental_async_interface async_interface; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + async_interface* async() { return experimental_async(); } + #endif + virtual class experimental_async_interface* experimental_async() { return nullptr; } + private: virtual ::grpc::ClientReaderWriterInterface< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>* ShellRaw(::grpc::ClientContext* context) = 0; virtual ::grpc::ClientAsyncReaderWriterInterface< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>* AsyncShellRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) = 0; virtual ::grpc::ClientAsyncReaderWriterInterface< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>* PrepareAsyncShellRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) = 0; @@ -135,7 +162,7 @@ class ShellService final { }; class Stub final : public StubInterface { public: - Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); std::unique_ptr< ::grpc::ClientReaderWriter< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>> Shell(::grpc::ClientContext* context) { return std::unique_ptr< ::grpc::ClientReaderWriter< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>>(ShellRaw(context)); } @@ -170,25 +197,47 @@ class ShellService final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>> PrepareAsyncDoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>>(PrepareAsyncDoCommandRaw(context, request, cq)); } - class async final : - public StubInterface::async_interface { + class experimental_async final : + public StubInterface::experimental_async_interface { public: + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void Shell(::grpc::ClientContext* context, ::grpc::ClientBidiReactor< ::viam::service::shell::v1::ShellRequest,::viam::service::shell::v1::ShellResponse>* reactor) override; + #else + void Shell(::grpc::ClientContext* context, ::grpc::experimental::ClientBidiReactor< ::viam::service::shell::v1::ShellRequest,::viam::service::shell::v1::ShellResponse>* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void CopyFilesToMachine(::grpc::ClientContext* context, ::grpc::ClientBidiReactor< ::viam::service::shell::v1::CopyFilesToMachineRequest,::viam::service::shell::v1::CopyFilesToMachineResponse>* reactor) override; + #else + void CopyFilesToMachine(::grpc::ClientContext* context, ::grpc::experimental::ClientBidiReactor< ::viam::service::shell::v1::CopyFilesToMachineRequest,::viam::service::shell::v1::CopyFilesToMachineResponse>* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void CopyFilesFromMachine(::grpc::ClientContext* context, ::grpc::ClientBidiReactor< ::viam::service::shell::v1::CopyFilesFromMachineRequest,::viam::service::shell::v1::CopyFilesFromMachineResponse>* reactor) override; + #else + void CopyFilesFromMachine(::grpc::ClientContext* context, ::grpc::experimental::ClientBidiReactor< ::viam::service::shell::v1::CopyFilesFromMachineRequest,::viam::service::shell::v1::CopyFilesFromMachineResponse>* reactor) override; + #endif 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 ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif private: friend class Stub; - explicit async(Stub* stub): stub_(stub) { } + explicit experimental_async(Stub* stub): stub_(stub) { } Stub* stub() { return stub_; } Stub* stub_; }; - class async* async() override { return &async_stub_; } + class experimental_async_interface* experimental_async() override { return &async_stub_; } private: std::shared_ptr< ::grpc::ChannelInterface> channel_; - class async async_stub_{this}; + class experimental_async async_stub_{this}; ::grpc::ClientReaderWriter< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>* ShellRaw(::grpc::ClientContext* context) override; ::grpc::ClientAsyncReaderWriter< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>* AsyncShellRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) override; ::grpc::ClientAsyncReaderWriter< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>* PrepareAsyncShellRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) override; @@ -315,17 +364,27 @@ class ShellService final { }; typedef WithAsyncMethod_Shell > > > AsyncService; template - class WithCallbackMethod_Shell : public BaseClass { + class ExperimentalWithCallbackMethod_Shell : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_Shell() { - ::grpc::Service::MarkMethodCallback(0, - new ::grpc::internal::CallbackBidiHandler< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>( + ExperimentalWithCallbackMethod_Shell() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(0, + new ::grpc_impl::internal::CallbackBidiHandler< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>( [this]( - ::grpc::CallbackServerContext* context) { return this->Shell(context); })); - } - ~WithCallbackMethod_Shell() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context) { return this->Shell(context); })); + } + ~ExperimentalWithCallbackMethod_Shell() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -333,22 +392,37 @@ class ShellService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerBidiReactor< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>* Shell( ::grpc::CallbackServerContext* /*context*/) + #else + virtual ::grpc::experimental::ServerBidiReactor< ::viam::service::shell::v1::ShellRequest, ::viam::service::shell::v1::ShellResponse>* Shell( + ::grpc::experimental::CallbackServerContext* /*context*/) + #endif { return nullptr; } }; template - class WithCallbackMethod_CopyFilesToMachine : public BaseClass { + class ExperimentalWithCallbackMethod_CopyFilesToMachine : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_CopyFilesToMachine() { - ::grpc::Service::MarkMethodCallback(1, - new ::grpc::internal::CallbackBidiHandler< ::viam::service::shell::v1::CopyFilesToMachineRequest, ::viam::service::shell::v1::CopyFilesToMachineResponse>( + ExperimentalWithCallbackMethod_CopyFilesToMachine() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(1, + new ::grpc_impl::internal::CallbackBidiHandler< ::viam::service::shell::v1::CopyFilesToMachineRequest, ::viam::service::shell::v1::CopyFilesToMachineResponse>( [this]( - ::grpc::CallbackServerContext* context) { return this->CopyFilesToMachine(context); })); - } - ~WithCallbackMethod_CopyFilesToMachine() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context) { return this->CopyFilesToMachine(context); })); + } + ~ExperimentalWithCallbackMethod_CopyFilesToMachine() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -356,22 +430,37 @@ class ShellService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerBidiReactor< ::viam::service::shell::v1::CopyFilesToMachineRequest, ::viam::service::shell::v1::CopyFilesToMachineResponse>* CopyFilesToMachine( ::grpc::CallbackServerContext* /*context*/) + #else + virtual ::grpc::experimental::ServerBidiReactor< ::viam::service::shell::v1::CopyFilesToMachineRequest, ::viam::service::shell::v1::CopyFilesToMachineResponse>* CopyFilesToMachine( + ::grpc::experimental::CallbackServerContext* /*context*/) + #endif { return nullptr; } }; template - class WithCallbackMethod_CopyFilesFromMachine : public BaseClass { + class ExperimentalWithCallbackMethod_CopyFilesFromMachine : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_CopyFilesFromMachine() { - ::grpc::Service::MarkMethodCallback(2, - new ::grpc::internal::CallbackBidiHandler< ::viam::service::shell::v1::CopyFilesFromMachineRequest, ::viam::service::shell::v1::CopyFilesFromMachineResponse>( + ExperimentalWithCallbackMethod_CopyFilesFromMachine() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(2, + new ::grpc_impl::internal::CallbackBidiHandler< ::viam::service::shell::v1::CopyFilesFromMachineRequest, ::viam::service::shell::v1::CopyFilesFromMachineResponse>( [this]( - ::grpc::CallbackServerContext* context) { return this->CopyFilesFromMachine(context); })); - } - ~WithCallbackMethod_CopyFilesFromMachine() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context) { return this->CopyFilesFromMachine(context); })); + } + ~ExperimentalWithCallbackMethod_CopyFilesFromMachine() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -379,27 +468,46 @@ class ShellService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerBidiReactor< ::viam::service::shell::v1::CopyFilesFromMachineRequest, ::viam::service::shell::v1::CopyFilesFromMachineResponse>* CopyFilesFromMachine( ::grpc::CallbackServerContext* /*context*/) + #else + virtual ::grpc::experimental::ServerBidiReactor< ::viam::service::shell::v1::CopyFilesFromMachineRequest, ::viam::service::shell::v1::CopyFilesFromMachineResponse>* CopyFilesFromMachine( + ::grpc::experimental::CallbackServerContext* /*context*/) + #endif { return nullptr; } }; template - class WithCallbackMethod_DoCommand : public BaseClass { + class ExperimentalWithCallbackMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_DoCommand() { - ::grpc::Service::MarkMethodCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( + ExperimentalWithCallbackMethod_DoCommand() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(3, + new ::grpc_impl::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); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + 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::experimental::MessageAllocator< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(3); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_DoCommand() override { + ~ExperimentalWithCallbackMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -407,11 +515,20 @@ class ShellService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DoCommand( - ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DoCommand( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) + #endif + { return nullptr; } }; - typedef WithCallbackMethod_Shell > > > CallbackService; - typedef CallbackService ExperimentalCallbackService; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef ExperimentalWithCallbackMethod_Shell > > > CallbackService; + #endif + + typedef ExperimentalWithCallbackMethod_Shell > > > ExperimentalCallbackService; template class WithGenericMethod_Shell : public BaseClass { private: @@ -561,17 +678,27 @@ class ShellService final { } }; template - class WithRawCallbackMethod_Shell : public BaseClass { + class ExperimentalWithRawCallbackMethod_Shell : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_Shell() { - ::grpc::Service::MarkMethodRawCallback(0, - new ::grpc::internal::CallbackBidiHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_Shell() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(0, + new ::grpc_impl::internal::CallbackBidiHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context) { return this->Shell(context); })); - } - ~WithRawCallbackMethod_Shell() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context) { return this->Shell(context); })); + } + ~ExperimentalWithRawCallbackMethod_Shell() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -579,22 +706,37 @@ class ShellService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerBidiReactor< ::grpc::ByteBuffer, ::grpc::ByteBuffer>* Shell( ::grpc::CallbackServerContext* /*context*/) + #else + virtual ::grpc::experimental::ServerBidiReactor< ::grpc::ByteBuffer, ::grpc::ByteBuffer>* Shell( + ::grpc::experimental::CallbackServerContext* /*context*/) + #endif { return nullptr; } }; template - class WithRawCallbackMethod_CopyFilesToMachine : public BaseClass { + class ExperimentalWithRawCallbackMethod_CopyFilesToMachine : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_CopyFilesToMachine() { - ::grpc::Service::MarkMethodRawCallback(1, - new ::grpc::internal::CallbackBidiHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_CopyFilesToMachine() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(1, + new ::grpc_impl::internal::CallbackBidiHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context) { return this->CopyFilesToMachine(context); })); - } - ~WithRawCallbackMethod_CopyFilesToMachine() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context) { return this->CopyFilesToMachine(context); })); + } + ~ExperimentalWithRawCallbackMethod_CopyFilesToMachine() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -602,22 +744,37 @@ class ShellService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerBidiReactor< ::grpc::ByteBuffer, ::grpc::ByteBuffer>* CopyFilesToMachine( ::grpc::CallbackServerContext* /*context*/) + #else + virtual ::grpc::experimental::ServerBidiReactor< ::grpc::ByteBuffer, ::grpc::ByteBuffer>* CopyFilesToMachine( + ::grpc::experimental::CallbackServerContext* /*context*/) + #endif { return nullptr; } }; template - class WithRawCallbackMethod_CopyFilesFromMachine : public BaseClass { + class ExperimentalWithRawCallbackMethod_CopyFilesFromMachine : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_CopyFilesFromMachine() { - ::grpc::Service::MarkMethodRawCallback(2, - new ::grpc::internal::CallbackBidiHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_CopyFilesFromMachine() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(2, + new ::grpc_impl::internal::CallbackBidiHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context) { return this->CopyFilesFromMachine(context); })); - } - ~WithRawCallbackMethod_CopyFilesFromMachine() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context) { return this->CopyFilesFromMachine(context); })); + } + ~ExperimentalWithRawCallbackMethod_CopyFilesFromMachine() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -625,22 +782,37 @@ class ShellService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerBidiReactor< ::grpc::ByteBuffer, ::grpc::ByteBuffer>* CopyFilesFromMachine( ::grpc::CallbackServerContext* /*context*/) + #else + virtual ::grpc::experimental::ServerBidiReactor< ::grpc::ByteBuffer, ::grpc::ByteBuffer>* CopyFilesFromMachine( + ::grpc::experimental::CallbackServerContext* /*context*/) + #endif { return nullptr; } }; template - class WithRawCallbackMethod_DoCommand : public BaseClass { + class ExperimentalWithRawCallbackMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_DoCommand() { - ::grpc::Service::MarkMethodRawCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_DoCommand() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(3, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DoCommand(context, request, response); })); - } - ~WithRawCallbackMethod_DoCommand() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DoCommand(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -648,8 +820,14 @@ class ShellService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DoCommand( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DoCommand( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template class WithStreamedUnaryMethod_DoCommand : public BaseClass { @@ -660,8 +838,8 @@ class ShellService final { ::grpc::Service::MarkMethodStreamed(3, new ::grpc::internal::StreamedUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* streamer) { return this->StreamedDoCommand(context, streamer); diff --git a/src/viam/api/service/shell/v1/shell.pb.cc b/src/viam/api/service/shell/v1/shell.pb.cc index 87fc05ab5..25b7f7adf 100644 --- a/src/viam/api/service/shell/v1/shell.pb.cc +++ b/src/viam/api/service/shell/v1/shell.pb.cc @@ -4,797 +4,667 @@ #include "service/shell/v1/shell.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace viam { namespace service { namespace shell { namespace v1 { - -inline constexpr ShellResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : data_out_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - data_err_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - eof_{false}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR ShellResponse::ShellResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ShellResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ShellResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ShellResponseDefaultTypeInternal() {} - union { - ShellResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ShellResponseDefaultTypeInternal _ShellResponse_default_instance_; - -inline constexpr CopyFilesToMachineResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : ack_last_file_{false}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR CopyFilesToMachineResponse::CopyFilesToMachineResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct CopyFilesToMachineResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR CopyFilesToMachineResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CopyFilesToMachineResponseDefaultTypeInternal() {} - union { - CopyFilesToMachineResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CopyFilesToMachineResponseDefaultTypeInternal _CopyFilesToMachineResponse_default_instance_; - -inline constexpr CopyFilesFromMachineResponseMetadata::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : source_type_{static_cast< ::viam::service::shell::v1::CopyFilesSourceType >(0)}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR CopyFilesFromMachineResponseMetadata::CopyFilesFromMachineResponseMetadata(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct CopyFilesFromMachineResponseMetadataDefaultTypeInternal { - PROTOBUF_CONSTEXPR CopyFilesFromMachineResponseMetadataDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CopyFilesFromMachineResponseMetadataDefaultTypeInternal() {} - union { - CopyFilesFromMachineResponseMetadata _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CopyFilesFromMachineResponseMetadataDefaultTypeInternal _CopyFilesFromMachineResponseMetadata_default_instance_; - -inline constexpr ShellRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - data_in_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR ShellRequest::ShellRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_CONSTEXPR ShellRequest::ShellRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , data_in_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} struct ShellRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR ShellRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ShellRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~ShellRequestDefaultTypeInternal() {} union { ShellRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ShellRequestDefaultTypeInternal _ShellRequest_default_instance_; - -inline constexpr FileData::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - data_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - mod_time_{nullptr}, - size_{::int64_t{0}}, - is_dir_{false}, - eof_{false}, - mode_{0u} {} - -template -PROTOBUF_CONSTEXPR FileData::FileData(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ShellRequestDefaultTypeInternal _ShellRequest_default_instance_; +PROTOBUF_CONSTEXPR ShellResponse::ShellResponse( + ::_pbi::ConstantInitialized) + : data_out_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , data_err_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , eof_(false){} +struct ShellResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ShellResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ShellResponseDefaultTypeInternal() {} + union { + ShellResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ShellResponseDefaultTypeInternal _ShellResponse_default_instance_; +PROTOBUF_CONSTEXPR FileData::FileData( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , data_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , mod_time_(nullptr) + , size_(int64_t{0}) + , is_dir_(false) + , eof_(false) + , mode_(0u){} struct FileDataDefaultTypeInternal { - PROTOBUF_CONSTEXPR FileDataDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR FileDataDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~FileDataDefaultTypeInternal() {} union { FileData _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FileDataDefaultTypeInternal _FileData_default_instance_; - -inline constexpr CopyFilesToMachineRequestMetadata::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - destination_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr}, - source_type_{static_cast< ::viam::service::shell::v1::CopyFilesSourceType >(0)}, - preserve_{false} {} - -template -PROTOBUF_CONSTEXPR CopyFilesToMachineRequestMetadata::CopyFilesToMachineRequestMetadata(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FileDataDefaultTypeInternal _FileData_default_instance_; +PROTOBUF_CONSTEXPR CopyFilesToMachineRequestMetadata::CopyFilesToMachineRequestMetadata( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , destination_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr) + , source_type_(0) + + , preserve_(false){} struct CopyFilesToMachineRequestMetadataDefaultTypeInternal { - PROTOBUF_CONSTEXPR CopyFilesToMachineRequestMetadataDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR CopyFilesToMachineRequestMetadataDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~CopyFilesToMachineRequestMetadataDefaultTypeInternal() {} union { CopyFilesToMachineRequestMetadata _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CopyFilesToMachineRequestMetadataDefaultTypeInternal _CopyFilesToMachineRequestMetadata_default_instance_; - -inline constexpr CopyFilesFromMachineRequestMetadata::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - paths_{}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr}, - allow_recursion_{false}, - preserve_{false} {} - -template -PROTOBUF_CONSTEXPR CopyFilesFromMachineRequestMetadata::CopyFilesFromMachineRequestMetadata(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct CopyFilesFromMachineRequestMetadataDefaultTypeInternal { - PROTOBUF_CONSTEXPR CopyFilesFromMachineRequestMetadataDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CopyFilesFromMachineRequestMetadataDefaultTypeInternal() {} - union { - CopyFilesFromMachineRequestMetadata _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CopyFilesFromMachineRequestMetadataDefaultTypeInternal _CopyFilesFromMachineRequestMetadata_default_instance_; - -inline constexpr CopyFilesToMachineRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : request_{}, - _cached_size_{0}, - _oneof_case_{} {} - -template -PROTOBUF_CONSTEXPR CopyFilesToMachineRequest::CopyFilesToMachineRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CopyFilesToMachineRequestMetadataDefaultTypeInternal _CopyFilesToMachineRequestMetadata_default_instance_; +PROTOBUF_CONSTEXPR CopyFilesToMachineRequest::CopyFilesToMachineRequest( + ::_pbi::ConstantInitialized) + : _oneof_case_{}{} struct CopyFilesToMachineRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR CopyFilesToMachineRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR CopyFilesToMachineRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~CopyFilesToMachineRequestDefaultTypeInternal() {} union { CopyFilesToMachineRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CopyFilesToMachineRequestDefaultTypeInternal _CopyFilesToMachineRequest_default_instance_; - -inline constexpr CopyFilesFromMachineResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : response_{}, - _cached_size_{0}, - _oneof_case_{} {} - -template -PROTOBUF_CONSTEXPR CopyFilesFromMachineResponse::CopyFilesFromMachineResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct CopyFilesFromMachineResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR CopyFilesFromMachineResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CopyFilesFromMachineResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CopyFilesToMachineRequestDefaultTypeInternal _CopyFilesToMachineRequest_default_instance_; +PROTOBUF_CONSTEXPR CopyFilesToMachineResponse::CopyFilesToMachineResponse( + ::_pbi::ConstantInitialized) + : ack_last_file_(false){} +struct CopyFilesToMachineResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR CopyFilesToMachineResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CopyFilesToMachineResponseDefaultTypeInternal() {} union { - CopyFilesFromMachineResponse _instance; + CopyFilesToMachineResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CopyFilesFromMachineResponseDefaultTypeInternal _CopyFilesFromMachineResponse_default_instance_; - -inline constexpr CopyFilesFromMachineRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : request_{}, - _cached_size_{0}, - _oneof_case_{} {} - -template -PROTOBUF_CONSTEXPR CopyFilesFromMachineRequest::CopyFilesFromMachineRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CopyFilesToMachineResponseDefaultTypeInternal _CopyFilesToMachineResponse_default_instance_; +PROTOBUF_CONSTEXPR CopyFilesFromMachineRequestMetadata::CopyFilesFromMachineRequestMetadata( + ::_pbi::ConstantInitialized) + : paths_() + , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr) + , allow_recursion_(false) + , preserve_(false){} +struct CopyFilesFromMachineRequestMetadataDefaultTypeInternal { + PROTOBUF_CONSTEXPR CopyFilesFromMachineRequestMetadataDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CopyFilesFromMachineRequestMetadataDefaultTypeInternal() {} + union { + CopyFilesFromMachineRequestMetadata _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CopyFilesFromMachineRequestMetadataDefaultTypeInternal _CopyFilesFromMachineRequestMetadata_default_instance_; +PROTOBUF_CONSTEXPR CopyFilesFromMachineRequest::CopyFilesFromMachineRequest( + ::_pbi::ConstantInitialized) + : _oneof_case_{}{} struct CopyFilesFromMachineRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR CopyFilesFromMachineRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR CopyFilesFromMachineRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~CopyFilesFromMachineRequestDefaultTypeInternal() {} union { CopyFilesFromMachineRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CopyFilesFromMachineRequestDefaultTypeInternal _CopyFilesFromMachineRequest_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CopyFilesFromMachineRequestDefaultTypeInternal _CopyFilesFromMachineRequest_default_instance_; +PROTOBUF_CONSTEXPR CopyFilesFromMachineResponseMetadata::CopyFilesFromMachineResponseMetadata( + ::_pbi::ConstantInitialized) + : source_type_(0) +{} +struct CopyFilesFromMachineResponseMetadataDefaultTypeInternal { + PROTOBUF_CONSTEXPR CopyFilesFromMachineResponseMetadataDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CopyFilesFromMachineResponseMetadataDefaultTypeInternal() {} + union { + CopyFilesFromMachineResponseMetadata _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CopyFilesFromMachineResponseMetadataDefaultTypeInternal _CopyFilesFromMachineResponseMetadata_default_instance_; +PROTOBUF_CONSTEXPR CopyFilesFromMachineResponse::CopyFilesFromMachineResponse( + ::_pbi::ConstantInitialized) + : _oneof_case_{}{} +struct CopyFilesFromMachineResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR CopyFilesFromMachineResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CopyFilesFromMachineResponseDefaultTypeInternal() {} + union { + CopyFilesFromMachineResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CopyFilesFromMachineResponseDefaultTypeInternal _CopyFilesFromMachineResponse_default_instance_; } // namespace v1 } // namespace shell } // namespace service } // namespace viam static ::_pb::Metadata file_level_metadata_service_2fshell_2fv1_2fshell_2eproto[10]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_service_2fshell_2fv1_2fshell_2eproto[1]; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_service_2fshell_2fv1_2fshell_2eproto = nullptr; -const ::uint32_t TableStruct_service_2fshell_2fv1_2fshell_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::ShellRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::ShellRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::ShellRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::ShellRequest, _impl_.data_in_), - PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::ShellRequest, _impl_.extra_), - ~0u, - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::ShellResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::ShellResponse, _impl_.data_out_), - PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::ShellResponse, _impl_.data_err_), - PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::ShellResponse, _impl_.eof_), - PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::FileData, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::FileData, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::FileData, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::FileData, _impl_.size_), - PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::FileData, _impl_.is_dir_), - PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::FileData, _impl_.data_), - PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::FileData, _impl_.eof_), - PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::FileData, _impl_.mod_time_), - PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::FileData, _impl_.mode_), - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - 0, - 1, - PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesToMachineRequestMetadata, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesToMachineRequestMetadata, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesToMachineRequestMetadata, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesToMachineRequestMetadata, _impl_.source_type_), - PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesToMachineRequestMetadata, _impl_.destination_), - PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesToMachineRequestMetadata, _impl_.preserve_), - PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesToMachineRequestMetadata, _impl_.extra_), - ~0u, - ~0u, - ~0u, - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesToMachineRequest, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesToMachineRequest, _impl_._oneof_case_[0]), - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesToMachineRequest, _impl_.request_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesToMachineResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesToMachineResponse, _impl_.ack_last_file_), - PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata, _impl_.paths_), - PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata, _impl_.allow_recursion_), - PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata, _impl_.preserve_), - PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata, _impl_.extra_), - ~0u, - ~0u, - ~0u, - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesFromMachineRequest, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesFromMachineRequest, _impl_._oneof_case_[0]), - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesFromMachineRequest, _impl_.request_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata, _impl_.source_type_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesFromMachineResponse, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesFromMachineResponse, _impl_._oneof_case_[0]), - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesFromMachineResponse, _impl_.response_), +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_service_2fshell_2fv1_2fshell_2eproto = nullptr; + +const uint32_t TableStruct_service_2fshell_2fv1_2fshell_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::ShellRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::ShellRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::ShellRequest, data_in_), + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::ShellRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::ShellResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::ShellResponse, data_out_), + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::ShellResponse, data_err_), + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::ShellResponse, eof_), + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::FileData, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::FileData, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::FileData, name_), + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::FileData, size_), + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::FileData, is_dir_), + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::FileData, data_), + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::FileData, eof_), + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::FileData, mod_time_), + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::FileData, mode_), + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesToMachineRequestMetadata, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesToMachineRequestMetadata, name_), + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesToMachineRequestMetadata, source_type_), + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesToMachineRequestMetadata, destination_), + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesToMachineRequestMetadata, preserve_), + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesToMachineRequestMetadata, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesToMachineRequest, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesToMachineRequest, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesToMachineRequest, request_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesToMachineResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesToMachineResponse, ack_last_file_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata, name_), + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata, paths_), + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata, allow_recursion_), + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata, preserve_), + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesFromMachineRequest, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesFromMachineRequest, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesFromMachineRequest, request_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata, source_type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesFromMachineResponse, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesFromMachineResponse, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesFromMachineResponse, response_), }; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, 11, -1, sizeof(::viam::service::shell::v1::ShellRequest)}, - {14, -1, -1, sizeof(::viam::service::shell::v1::ShellResponse)}, - {25, 40, -1, sizeof(::viam::service::shell::v1::FileData)}, - {47, 60, -1, sizeof(::viam::service::shell::v1::CopyFilesToMachineRequestMetadata)}, - {65, -1, -1, sizeof(::viam::service::shell::v1::CopyFilesToMachineRequest)}, - {76, -1, -1, sizeof(::viam::service::shell::v1::CopyFilesToMachineResponse)}, - {85, 98, -1, sizeof(::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata)}, - {103, -1, -1, sizeof(::viam::service::shell::v1::CopyFilesFromMachineRequest)}, - {114, -1, -1, sizeof(::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata)}, - {123, -1, -1, sizeof(::viam::service::shell::v1::CopyFilesFromMachineResponse)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::service::shell::v1::ShellRequest)}, + { 9, -1, -1, sizeof(::viam::service::shell::v1::ShellResponse)}, + { 18, 31, -1, sizeof(::viam::service::shell::v1::FileData)}, + { 38, -1, -1, sizeof(::viam::service::shell::v1::CopyFilesToMachineRequestMetadata)}, + { 49, -1, -1, sizeof(::viam::service::shell::v1::CopyFilesToMachineRequest)}, + { 58, -1, -1, sizeof(::viam::service::shell::v1::CopyFilesToMachineResponse)}, + { 65, -1, -1, sizeof(::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata)}, + { 76, -1, -1, sizeof(::viam::service::shell::v1::CopyFilesFromMachineRequest)}, + { 85, -1, -1, sizeof(::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata)}, + { 92, -1, -1, sizeof(::viam::service::shell::v1::CopyFilesFromMachineResponse)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::viam::service::shell::v1::_ShellRequest_default_instance_._instance, - &::viam::service::shell::v1::_ShellResponse_default_instance_._instance, - &::viam::service::shell::v1::_FileData_default_instance_._instance, - &::viam::service::shell::v1::_CopyFilesToMachineRequestMetadata_default_instance_._instance, - &::viam::service::shell::v1::_CopyFilesToMachineRequest_default_instance_._instance, - &::viam::service::shell::v1::_CopyFilesToMachineResponse_default_instance_._instance, - &::viam::service::shell::v1::_CopyFilesFromMachineRequestMetadata_default_instance_._instance, - &::viam::service::shell::v1::_CopyFilesFromMachineRequest_default_instance_._instance, - &::viam::service::shell::v1::_CopyFilesFromMachineResponseMetadata_default_instance_._instance, - &::viam::service::shell::v1::_CopyFilesFromMachineResponse_default_instance_._instance, + &::viam::service::shell::v1::_ShellRequest_default_instance_._instance, + &::viam::service::shell::v1::_ShellResponse_default_instance_._instance, + &::viam::service::shell::v1::_FileData_default_instance_._instance, + &::viam::service::shell::v1::_CopyFilesToMachineRequestMetadata_default_instance_._instance, + &::viam::service::shell::v1::_CopyFilesToMachineRequest_default_instance_._instance, + &::viam::service::shell::v1::_CopyFilesToMachineResponse_default_instance_._instance, + &::viam::service::shell::v1::_CopyFilesFromMachineRequestMetadata_default_instance_._instance, + &::viam::service::shell::v1::_CopyFilesFromMachineRequest_default_instance_._instance, + &::viam::service::shell::v1::_CopyFilesFromMachineResponseMetadata_default_instance_._instance, + &::viam::service::shell::v1::_CopyFilesFromMachineResponse_default_instance_._instance, }; -const char descriptor_table_protodef_service_2fshell_2fv1_2fshell_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n\034service/shell/v1/shell.proto\022\025viam.ser" - "vice.shell.v1\032\026common/v1/common.proto\032\034g" - "oogle/api/annotations.proto\032\034google/prot" - "obuf/struct.proto\032\037google/protobuf/times" - "tamp.proto\"j\n\014ShellRequest\022\022\n\004name\030\001 \001(\t" - "R\004name\022\027\n\007data_in\030\002 \001(\tR\006dataIn\022-\n\005extra" - "\030c \001(\0132\027.google.protobuf.StructR\005extra\"W" - "\n\rShellResponse\022\031\n\010data_out\030\001 \001(\tR\007dataO" - "ut\022\031\n\010data_err\030\002 \001(\tR\007dataErr\022\020\n\003eof\030\003 \001" - "(\010R\003eof\"\332\001\n\010FileData\022\022\n\004name\030\001 \001(\tR\004name" - "\022\022\n\004size\030\002 \001(\003R\004size\022\025\n\006is_dir\030\003 \001(\010R\005is" - "Dir\022\022\n\004data\030\004 \001(\014R\004data\022\020\n\003eof\030\005 \001(\010R\003eo" - "f\022:\n\010mod_time\030\006 \001(\0132\032.google.protobuf.Ti" - "mestampH\000R\007modTime\210\001\001\022\027\n\004mode\030\007 \001(\rH\001R\004m" - "ode\210\001\001B\013\n\t_mod_timeB\007\n\005_mode\"\361\001\n!CopyFil" - "esToMachineRequestMetadata\022\022\n\004name\030\001 \001(\t" - "R\004name\022K\n\013source_type\030\002 \001(\0162*.viam.servi" - "ce.shell.v1.CopyFilesSourceTypeR\nsourceT" - "ype\022 \n\013destination\030\003 \001(\tR\013destination\022\032\n" - "\010preserve\030\004 \001(\010R\010preserve\022-\n\005extra\030c \001(\013" - "2\027.google.protobuf.StructR\005extra\"\276\001\n\031Cop" - "yFilesToMachineRequest\022V\n\010metadata\030\001 \001(\013" - "28.viam.service.shell.v1.CopyFilesToMach" - "ineRequestMetadataH\000R\010metadata\022>\n\tfile_d" - "ata\030\002 \001(\0132\037.viam.service.shell.v1.FileDa" - "taH\000R\010fileDataB\t\n\007request\"@\n\032CopyFilesTo" - "MachineResponse\022\"\n\rack_last_file\030\001 \001(\010R\013" - "ackLastFile\"\303\001\n#CopyFilesFromMachineRequ" - "estMetadata\022\022\n\004name\030\001 \001(\tR\004name\022\024\n\005paths" - "\030\002 \003(\tR\005paths\022\'\n\017allow_recursion\030\003 \001(\010R\016" - "allowRecursion\022\032\n\010preserve\030\004 \001(\010R\010preser" - "ve\022-\n\005extra\030c \001(\0132\027.google.protobuf.Stru" - "ctR\005extra\"\250\001\n\033CopyFilesFromMachineReques" - "t\022X\n\010metadata\030\001 \001(\0132:.viam.service.shell" - ".v1.CopyFilesFromMachineRequestMetadataH" - "\000R\010metadata\022$\n\rack_last_file\030\002 \001(\010H\000R\013ac" - "kLastFileB\t\n\007request\"s\n$CopyFilesFromMac" - "hineResponseMetadata\022K\n\013source_type\030\001 \001(" - "\0162*.viam.service.shell.v1.CopyFilesSourc" - "eTypeR\nsourceType\"\305\001\n\034CopyFilesFromMachi" - "neResponse\022Y\n\010metadata\030\001 \001(\0132;.viam.serv" - "ice.shell.v1.CopyFilesFromMachineRespons" - "eMetadataH\000R\010metadata\022>\n\tfile_data\030\002 \001(\013" - "2\037.viam.service.shell.v1.FileDataH\000R\010fil" - "eDataB\n\n\010response*\275\001\n\023CopyFilesSourceTyp" - "e\022&\n\"COPY_FILES_SOURCE_TYPE_UNSPECIFIED\020" - "\000\022&\n\"COPY_FILES_SOURCE_TYPE_SINGLE_FILE\020" - "\001\022+\n\'COPY_FILES_SOURCE_TYPE_SINGLE_DIREC" - "TORY\020\002\022)\n%COPY_FILES_SOURCE_TYPE_MULTIPL" - "E_FILES\020\0032\364\003\n\014ShellService\022V\n\005Shell\022#.vi" - "am.service.shell.v1.ShellRequest\032$.viam." - "service.shell.v1.ShellResponse(\0010\001\022}\n\022Co" - "pyFilesToMachine\0220.viam.service.shell.v1" - ".CopyFilesToMachineRequest\0321.viam.servic" - "e.shell.v1.CopyFilesToMachineResponse(\0010" - "\001\022\203\001\n\024CopyFilesFromMachine\0222.viam.servic" - "e.shell.v1.CopyFilesFromMachineRequest\0323" - ".viam.service.shell.v1.CopyFilesFromMach" - "ineResponse(\0010\001\022\206\001\n\tDoCommand\022 .viam.com" - "mon.v1.DoCommandRequest\032!.viam.common.v1" - ".DoCommandResponse\"4\202\323\344\223\002.\",/viam/api/v1" - "/service/shell/{name}/do_commandB\300\001\n\031com" - ".viam.service.shell.v1B\nShellProtoP\001Z go" - ".viam.com/api/service/shell/v1\242\002\003VSS\252\002\025V" - "iam.Service.Shell.V1\312\002\025Viam\\Service\\Shel" - "l\\V1\342\002!Viam\\Service\\Shell\\V1\\GPBMetadata" - "\352\002\030Viam::Service::Shell::V1b\006proto3" -}; -static const ::_pbi::DescriptorTable* const descriptor_table_service_2fshell_2fv1_2fshell_2eproto_deps[4] = - { - &::descriptor_table_common_2fv1_2fcommon_2eproto, - &::descriptor_table_google_2fapi_2fannotations_2eproto, - &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, - &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto, + +const char descriptor_table_protodef_service_2fshell_2fv1_2fshell_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\034service/shell/v1/shell.proto\022\025viam.ser" + "vice.shell.v1\032\026common/v1/common.proto\032\034g" + "oogle/api/annotations.proto\032\034google/prot" + "obuf/struct.proto\032\037google/protobuf/times" + "tamp.proto\"j\n\014ShellRequest\022\022\n\004name\030\001 \001(\t" + "R\004name\022\027\n\007data_in\030\002 \001(\tR\006dataIn\022-\n\005extra" + "\030c \001(\0132\027.google.protobuf.StructR\005extra\"W" + "\n\rShellResponse\022\031\n\010data_out\030\001 \001(\tR\007dataO" + "ut\022\031\n\010data_err\030\002 \001(\tR\007dataErr\022\020\n\003eof\030\003 \001" + "(\010R\003eof\"\332\001\n\010FileData\022\022\n\004name\030\001 \001(\tR\004name" + "\022\022\n\004size\030\002 \001(\003R\004size\022\025\n\006is_dir\030\003 \001(\010R\005is" + "Dir\022\022\n\004data\030\004 \001(\014R\004data\022\020\n\003eof\030\005 \001(\010R\003eo" + "f\022:\n\010mod_time\030\006 \001(\0132\032.google.protobuf.Ti" + "mestampH\000R\007modTime\210\001\001\022\027\n\004mode\030\007 \001(\rH\001R\004m" + "ode\210\001\001B\013\n\t_mod_timeB\007\n\005_mode\"\361\001\n!CopyFil" + "esToMachineRequestMetadata\022\022\n\004name\030\001 \001(\t" + "R\004name\022K\n\013source_type\030\002 \001(\0162*.viam.servi" + "ce.shell.v1.CopyFilesSourceTypeR\nsourceT" + "ype\022 \n\013destination\030\003 \001(\tR\013destination\022\032\n" + "\010preserve\030\004 \001(\010R\010preserve\022-\n\005extra\030c \001(\013" + "2\027.google.protobuf.StructR\005extra\"\276\001\n\031Cop" + "yFilesToMachineRequest\022V\n\010metadata\030\001 \001(\013" + "28.viam.service.shell.v1.CopyFilesToMach" + "ineRequestMetadataH\000R\010metadata\022>\n\tfile_d" + "ata\030\002 \001(\0132\037.viam.service.shell.v1.FileDa" + "taH\000R\010fileDataB\t\n\007request\"@\n\032CopyFilesTo" + "MachineResponse\022\"\n\rack_last_file\030\001 \001(\010R\013" + "ackLastFile\"\303\001\n#CopyFilesFromMachineRequ" + "estMetadata\022\022\n\004name\030\001 \001(\tR\004name\022\024\n\005paths" + "\030\002 \003(\tR\005paths\022\'\n\017allow_recursion\030\003 \001(\010R\016" + "allowRecursion\022\032\n\010preserve\030\004 \001(\010R\010preser" + "ve\022-\n\005extra\030c \001(\0132\027.google.protobuf.Stru" + "ctR\005extra\"\250\001\n\033CopyFilesFromMachineReques" + "t\022X\n\010metadata\030\001 \001(\0132:.viam.service.shell" + ".v1.CopyFilesFromMachineRequestMetadataH" + "\000R\010metadata\022$\n\rack_last_file\030\002 \001(\010H\000R\013ac" + "kLastFileB\t\n\007request\"s\n$CopyFilesFromMac" + "hineResponseMetadata\022K\n\013source_type\030\001 \001(" + "\0162*.viam.service.shell.v1.CopyFilesSourc" + "eTypeR\nsourceType\"\305\001\n\034CopyFilesFromMachi" + "neResponse\022Y\n\010metadata\030\001 \001(\0132;.viam.serv" + "ice.shell.v1.CopyFilesFromMachineRespons" + "eMetadataH\000R\010metadata\022>\n\tfile_data\030\002 \001(\013" + "2\037.viam.service.shell.v1.FileDataH\000R\010fil" + "eDataB\n\n\010response*\275\001\n\023CopyFilesSourceTyp" + "e\022&\n\"COPY_FILES_SOURCE_TYPE_UNSPECIFIED\020" + "\000\022&\n\"COPY_FILES_SOURCE_TYPE_SINGLE_FILE\020" + "\001\022+\n\'COPY_FILES_SOURCE_TYPE_SINGLE_DIREC" + "TORY\020\002\022)\n%COPY_FILES_SOURCE_TYPE_MULTIPL" + "E_FILES\020\0032\364\003\n\014ShellService\022V\n\005Shell\022#.vi" + "am.service.shell.v1.ShellRequest\032$.viam." + "service.shell.v1.ShellResponse(\0010\001\022}\n\022Co" + "pyFilesToMachine\0220.viam.service.shell.v1" + ".CopyFilesToMachineRequest\0321.viam.servic" + "e.shell.v1.CopyFilesToMachineResponse(\0010" + "\001\022\203\001\n\024CopyFilesFromMachine\0222.viam.servic" + "e.shell.v1.CopyFilesFromMachineRequest\0323" + ".viam.service.shell.v1.CopyFilesFromMach" + "ineResponse(\0010\001\022\206\001\n\tDoCommand\022 .viam.com" + "mon.v1.DoCommandRequest\032!.viam.common.v1" + ".DoCommandResponse\"4\202\323\344\223\002.\",/viam/api/v1" + "/service/shell/{name}/do_commandB=\n\031com." + "viam.service.shell.v1Z go.viam.com/api/s" + "ervice/shell/v1b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_service_2fshell_2fv1_2fshell_2eproto_deps[4] = { + &::descriptor_table_common_2fv1_2fcommon_2eproto, + &::descriptor_table_google_2fapi_2fannotations_2eproto, + &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, + &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto, }; -static ::absl::once_flag descriptor_table_service_2fshell_2fv1_2fshell_2eproto_once; +static ::_pbi::once_flag descriptor_table_service_2fshell_2fv1_2fshell_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_service_2fshell_2fv1_2fshell_2eproto = { - false, - false, - 2675, - descriptor_table_protodef_service_2fshell_2fv1_2fshell_2eproto, + false, false, 2543, descriptor_table_protodef_service_2fshell_2fv1_2fshell_2eproto, "service/shell/v1/shell.proto", - &descriptor_table_service_2fshell_2fv1_2fshell_2eproto_once, - descriptor_table_service_2fshell_2fv1_2fshell_2eproto_deps, - 4, - 10, - schemas, - file_default_instances, - TableStruct_service_2fshell_2fv1_2fshell_2eproto::offsets, - file_level_metadata_service_2fshell_2fv1_2fshell_2eproto, - file_level_enum_descriptors_service_2fshell_2fv1_2fshell_2eproto, + &descriptor_table_service_2fshell_2fv1_2fshell_2eproto_once, descriptor_table_service_2fshell_2fv1_2fshell_2eproto_deps, 4, 10, + schemas, file_default_instances, TableStruct_service_2fshell_2fv1_2fshell_2eproto::offsets, + file_level_metadata_service_2fshell_2fv1_2fshell_2eproto, file_level_enum_descriptors_service_2fshell_2fv1_2fshell_2eproto, file_level_service_descriptors_service_2fshell_2fv1_2fshell_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_service_2fshell_2fv1_2fshell_2eproto_getter() { return &descriptor_table_service_2fshell_2fv1_2fshell_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_service_2fshell_2fv1_2fshell_2eproto(&descriptor_table_service_2fshell_2fv1_2fshell_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_service_2fshell_2fv1_2fshell_2eproto(&descriptor_table_service_2fshell_2fv1_2fshell_2eproto); namespace viam { namespace service { namespace shell { namespace v1 { -const ::google::protobuf::EnumDescriptor* CopyFilesSourceType_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_service_2fshell_2fv1_2fshell_2eproto); +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* CopyFilesSourceType_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_service_2fshell_2fv1_2fshell_2eproto); return file_level_enum_descriptors_service_2fshell_2fv1_2fshell_2eproto[0]; } -PROTOBUF_CONSTINIT const uint32_t CopyFilesSourceType_internal_data_[] = { - 262144u, 0u, }; bool CopyFilesSourceType_IsValid(int value) { - return 0 <= value && value <= 3; + switch (value) { + case 0: + case 1: + case 2: + case 3: + return true; + default: + return false; + } } + + // =================================================================== class ShellRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ShellRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const ShellRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const ShellRequest* msg); }; -const ::google::protobuf::Struct& ShellRequest::_Internal::extra(const ShellRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +ShellRequest::_Internal::extra(const ShellRequest* msg) { + return *msg->extra_; } void ShellRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -ShellRequest::ShellRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ShellRequest::ShellRequest(::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.shell.v1.ShellRequest) } -inline PROTOBUF_NDEBUG_INLINE ShellRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_), - data_in_(arena, from.data_in_) {} - -ShellRequest::ShellRequest( - ::google::protobuf::Arena* arena, - const ShellRequest& from) - : ::google::protobuf::Message(arena) { - ShellRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +ShellRequest::ShellRequest(const ShellRequest& 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()); + } + data_in_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + data_in_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_data_in().empty()) { + data_in_.Set(from._internal_data_in(), + GetArenaForAllocation()); + } + if (from._internal_has_extra()) { + extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.extra_); + } else { + extra_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.service.shell.v1.ShellRequest) } -inline PROTOBUF_NDEBUG_INLINE ShellRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena), - data_in_(arena) {} -inline void ShellRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void ShellRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +data_in_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + data_in_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + ShellRequest::~ShellRequest() { // @@protoc_insertion_point(destructor:viam.service.shell.v1.ShellRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ShellRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.data_in_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + data_in_.Destroy(); + if (this != internal_default_instance()) delete extra_; } -PROTOBUF_NOINLINE void ShellRequest::Clear() { +void ShellRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ShellRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.shell.v1.ShellRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _impl_.data_in_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ShellRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + data_in_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ShellRequest::_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.service.shell.v1.ShellRequest.name")); + } else + goto handle_unusual; + continue; + // string data_in = 2 [json_name = "dataIn"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_data_in(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.shell.v1.ShellRequest.data_in")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 1, 54, 7> ShellRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ShellRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ShellRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ShellRequest, _impl_.name_)}}, - // string data_in = 2 [json_name = "dataIn"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(ShellRequest, _impl_.data_in_)}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(ShellRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 2, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(ShellRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string data_in = 2 [json_name = "dataIn"]; - {PROTOBUF_FIELD_OFFSET(ShellRequest, _impl_.data_in_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(ShellRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\42\4\7\0\0\0\0\0" - "viam.service.shell.v1.ShellRequest" - "name" - "data_in" - }}, -}; - -::uint8_t* ShellRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ShellRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.shell.v1.ShellRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.shell.v1.ShellRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.shell.v1.ShellRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // string data_in = 2 [json_name = "dataIn"]; if (!this->_internal_data_in().empty()) { - const std::string& _s = this->_internal_data_in(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.shell.v1.ShellRequest.data_in"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_data_in().data(), static_cast(this->_internal_data_in().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.shell.v1.ShellRequest.data_in"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_data_in(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.shell.v1.ShellRequest) return target; } -::size_t ShellRequest::ByteSizeLong() const { +size_t ShellRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.shell.v1.ShellRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // string data_in = 2 [json_name = "dataIn"]; if (!this->_internal_data_in().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_data_in()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_data_in()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ShellRequest::_class_data_ = { - ShellRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ShellRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ShellRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* ShellRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ShellRequest::GetClassData() const { return &_class_data_; } + +void ShellRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ShellRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.shell.v1.ShellRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ShellRequest::MergeFrom(const ShellRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.shell.v1.ShellRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (!from._internal_data_in().empty()) { - _this->_internal_set_data_in(from._internal_data_in()); + _internal_set_data_in(from._internal_data_in()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ShellRequest::CopyFrom(const ShellRequest& from) { @@ -804,243 +674,266 @@ void ShellRequest::CopyFrom(const ShellRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ShellRequest::IsInitialized() const { +bool ShellRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* ShellRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ShellRequest::InternalSwap(ShellRequest* PROTOBUF_RESTRICT other) { +void ShellRequest::InternalSwap(ShellRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.data_in_, &other->_impl_.data_in_, arena); - swap(_impl_.extra_, other->_impl_.extra_); -} - -::google::protobuf::Metadata ShellRequest::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &data_in_, lhs_arena, + &other->data_in_, rhs_arena + ); + swap(extra_, other->extra_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ShellRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fshell_2fv1_2fshell_2eproto_getter, &descriptor_table_service_2fshell_2fv1_2fshell_2eproto_once, file_level_metadata_service_2fshell_2fv1_2fshell_2eproto[0]); } + // =================================================================== class ShellResponse::_Internal { public: }; -ShellResponse::ShellResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +ShellResponse::ShellResponse(::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.shell.v1.ShellResponse) } -inline PROTOBUF_NDEBUG_INLINE ShellResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : data_out_(arena, from.data_out_), - data_err_(arena, from.data_err_), - _cached_size_{0} {} - -ShellResponse::ShellResponse( - ::google::protobuf::Arena* arena, - const ShellResponse& from) - : ::google::protobuf::Message(arena) { - ShellResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.eof_ = from._impl_.eof_; - +ShellResponse::ShellResponse(const ShellResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + data_out_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + data_out_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_data_out().empty()) { + data_out_.Set(from._internal_data_out(), + GetArenaForAllocation()); + } + data_err_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + data_err_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_data_err().empty()) { + data_err_.Set(from._internal_data_err(), + GetArenaForAllocation()); + } + eof_ = from.eof_; // @@protoc_insertion_point(copy_constructor:viam.service.shell.v1.ShellResponse) } -inline PROTOBUF_NDEBUG_INLINE ShellResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : data_out_(arena), - data_err_(arena), - _cached_size_{0} {} -inline void ShellResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.eof_ = {}; +inline void ShellResponse::SharedCtor() { +data_out_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + data_out_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +data_err_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + data_err_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +eof_ = false; } + ShellResponse::~ShellResponse() { // @@protoc_insertion_point(destructor:viam.service.shell.v1.ShellResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void ShellResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.data_out_.Destroy(); - _impl_.data_err_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + data_out_.Destroy(); + data_err_.Destroy(); } -PROTOBUF_NOINLINE void ShellResponse::Clear() { +void ShellResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ShellResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.shell.v1.ShellResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.data_out_.ClearToEmpty(); - _impl_.data_err_.ClearToEmpty(); - _impl_.eof_ = false; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ShellResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + data_out_.ClearToEmpty(); + data_err_.ClearToEmpty(); + eof_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ShellResponse::_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 data_out = 1 [json_name = "dataOut"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_data_out(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.shell.v1.ShellResponse.data_out")); + } else + goto handle_unusual; + continue; + // string data_err = 2 [json_name = "dataErr"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_data_err(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.shell.v1.ShellResponse.data_err")); + } else + goto handle_unusual; + continue; + // bool eof = 3 [json_name = "eof"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + eof_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 60, 2> ShellResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_ShellResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string data_out = 1 [json_name = "dataOut"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ShellResponse, _impl_.data_out_)}}, - // string data_err = 2 [json_name = "dataErr"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(ShellResponse, _impl_.data_err_)}}, - // bool eof = 3 [json_name = "eof"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(ShellResponse, _impl_.eof_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string data_out = 1 [json_name = "dataOut"]; - {PROTOBUF_FIELD_OFFSET(ShellResponse, _impl_.data_out_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string data_err = 2 [json_name = "dataErr"]; - {PROTOBUF_FIELD_OFFSET(ShellResponse, _impl_.data_err_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // bool eof = 3 [json_name = "eof"]; - {PROTOBUF_FIELD_OFFSET(ShellResponse, _impl_.eof_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, - // no aux_entries - {{ - "\43\10\10\0\0\0\0\0" - "viam.service.shell.v1.ShellResponse" - "data_out" - "data_err" - }}, -}; - -::uint8_t* ShellResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* ShellResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.shell.v1.ShellResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string data_out = 1 [json_name = "dataOut"]; if (!this->_internal_data_out().empty()) { - const std::string& _s = this->_internal_data_out(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.shell.v1.ShellResponse.data_out"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_data_out().data(), static_cast(this->_internal_data_out().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.shell.v1.ShellResponse.data_out"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_data_out(), target); } // string data_err = 2 [json_name = "dataErr"]; if (!this->_internal_data_err().empty()) { - const std::string& _s = this->_internal_data_err(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.shell.v1.ShellResponse.data_err"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_data_err().data(), static_cast(this->_internal_data_err().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.shell.v1.ShellResponse.data_err"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_data_err(), target); } // bool eof = 3 [json_name = "eof"]; if (this->_internal_eof() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 3, this->_internal_eof(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_eof(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.shell.v1.ShellResponse) return target; } -::size_t ShellResponse::ByteSizeLong() const { +size_t ShellResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.shell.v1.ShellResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string data_out = 1 [json_name = "dataOut"]; if (!this->_internal_data_out().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_data_out()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_data_out()); } // string data_err = 2 [json_name = "dataErr"]; if (!this->_internal_data_err().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_data_err()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_data_err()); } // bool eof = 3 [json_name = "eof"]; if (this->_internal_eof() != 0) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData ShellResponse::_class_data_ = { - ShellResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ShellResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ShellResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* ShellResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ShellResponse::GetClassData() const { return &_class_data_; } + +void ShellResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void ShellResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.shell.v1.ShellResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void ShellResponse::MergeFrom(const ShellResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.shell.v1.ShellResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_data_out().empty()) { - _this->_internal_set_data_out(from._internal_data_out()); + _internal_set_data_out(from._internal_data_out()); } if (!from._internal_data_err().empty()) { - _this->_internal_set_data_err(from._internal_data_err()); + _internal_set_data_err(from._internal_data_err()); } if (from._internal_eof() != 0) { - _this->_internal_set_eof(from._internal_eof()); + _internal_set_eof(from._internal_eof()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ShellResponse::CopyFrom(const ShellResponse& from) { @@ -1050,36 +943,38 @@ void ShellResponse::CopyFrom(const ShellResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ShellResponse::IsInitialized() const { +bool ShellResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* ShellResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void ShellResponse::InternalSwap(ShellResponse* PROTOBUF_RESTRICT other) { +void ShellResponse::InternalSwap(ShellResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.data_out_, &other->_impl_.data_out_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.data_err_, &other->_impl_.data_err_, arena); - swap(_impl_.eof_, other->_impl_.eof_); -} - -::google::protobuf::Metadata ShellResponse::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &data_out_, lhs_arena, + &other->data_out_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &data_err_, lhs_arena, + &other->data_err_, rhs_arena + ); + swap(eof_, other->eof_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ShellResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fshell_2fv1_2fshell_2eproto_getter, &descriptor_table_service_2fshell_2fv1_2fshell_2eproto_once, file_level_metadata_service_2fshell_2fv1_2fshell_2eproto[1]); } + // =================================================================== class FileData::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(FileData, _impl_._has_bits_); - static const ::google::protobuf::Timestamp& mod_time(const FileData* msg); + using HasBits = decltype(std::declval()._has_bits_); + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& mod_time(const FileData* msg); static void set_has_mod_time(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -1088,335 +983,353 @@ class FileData::_Internal { } }; -const ::google::protobuf::Timestamp& FileData::_Internal::mod_time(const FileData* msg) { - return *msg->_impl_.mod_time_; +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +FileData::_Internal::mod_time(const FileData* msg) { + return *msg->mod_time_; } void FileData::clear_mod_time() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.mod_time_ != nullptr) _impl_.mod_time_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (mod_time_ != nullptr) mod_time_->Clear(); + _has_bits_[0] &= ~0x00000001u; } -FileData::FileData(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +FileData::FileData(::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.shell.v1.FileData) } -inline PROTOBUF_NDEBUG_INLINE FileData::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_), - data_(arena, from.data_) {} - -FileData::FileData( - ::google::protobuf::Arena* arena, - const FileData& from) - : ::google::protobuf::Message(arena) { - FileData* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.mod_time_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.mod_time_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, size_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, size_), - offsetof(Impl_, mode_) - - offsetof(Impl_, size_) + - sizeof(Impl_::mode_)); - +FileData::FileData(const FileData& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_) { + _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()); + } + data_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + data_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_data().empty()) { + data_.Set(from._internal_data(), + GetArenaForAllocation()); + } + if (from._internal_has_mod_time()) { + mod_time_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from.mod_time_); + } else { + mod_time_ = nullptr; + } + ::memcpy(&size_, &from.size_, + static_cast(reinterpret_cast(&mode_) - + reinterpret_cast(&size_)) + sizeof(mode_)); // @@protoc_insertion_point(copy_constructor:viam.service.shell.v1.FileData) } -inline PROTOBUF_NDEBUG_INLINE FileData::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena), - data_(arena) {} - -inline void FileData::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, mod_time_), - 0, - offsetof(Impl_, mode_) - - offsetof(Impl_, mod_time_) + - sizeof(Impl_::mode_)); + +inline void FileData::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +data_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + data_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&mod_time_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&mode_) - + reinterpret_cast(&mod_time_)) + sizeof(mode_)); } + FileData::~FileData() { // @@protoc_insertion_point(destructor:viam.service.shell.v1.FileData) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void FileData::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.data_.Destroy(); - delete _impl_.mod_time_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + data_.Destroy(); + if (this != internal_default_instance()) delete mod_time_; +} + +void FileData::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void FileData::Clear() { +void FileData::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.shell.v1.FileData) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _impl_.data_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; + name_.ClearToEmpty(); + data_.ClearToEmpty(); + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.mod_time_ != nullptr); - _impl_.mod_time_->Clear(); - } - ::memset(&_impl_.size_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.eof_) - - reinterpret_cast(&_impl_.size_)) + sizeof(_impl_.eof_)); - _impl_.mode_ = 0u; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* FileData::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + GOOGLE_DCHECK(mod_time_ != nullptr); + mod_time_->Clear(); + } + ::memset(&size_, 0, static_cast( + reinterpret_cast(&eof_) - + reinterpret_cast(&size_)) + sizeof(eof_)); + mode_ = 0u; + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* FileData::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + 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.service.shell.v1.FileData.name")); + } else + goto handle_unusual; + continue; + // int64 size = 2 [json_name = "size"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool is_dir = 3 [json_name = "isDir"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + is_dir_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bytes data = 4 [json_name = "data"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_data(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool eof = 5 [json_name = "eof"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { + eof_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional .google.protobuf.Timestamp mod_time = 6 [json_name = "modTime"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr = ctx->ParseMessage(_internal_mutable_mod_time(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional uint32 mode = 7 [json_name = "mode"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 56)) { + _Internal::set_has_mode(&has_bits); + mode_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&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: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 7, 1, 43, 2> FileData::_table_ = { - { - PROTOBUF_FIELD_OFFSET(FileData, _impl_._has_bits_), - 0, // no _extensions_ - 7, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967168, // skipmap - offsetof(decltype(_table_), field_entries), - 7, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_FileData_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(FileData, _impl_.name_)}}, - // int64 size = 2 [json_name = "size"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(FileData, _impl_.size_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(FileData, _impl_.size_)}}, - // bool is_dir = 3 [json_name = "isDir"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(FileData, _impl_.is_dir_)}}, - // bytes data = 4 [json_name = "data"]; - {::_pbi::TcParser::FastBS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(FileData, _impl_.data_)}}, - // bool eof = 5 [json_name = "eof"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {40, 63, 0, PROTOBUF_FIELD_OFFSET(FileData, _impl_.eof_)}}, - // optional .google.protobuf.Timestamp mod_time = 6 [json_name = "modTime"]; - {::_pbi::TcParser::FastMtS1, - {50, 0, 0, PROTOBUF_FIELD_OFFSET(FileData, _impl_.mod_time_)}}, - // optional uint32 mode = 7 [json_name = "mode"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(FileData, _impl_.mode_), 1>(), - {56, 1, 0, PROTOBUF_FIELD_OFFSET(FileData, _impl_.mode_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(FileData, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // int64 size = 2 [json_name = "size"]; - {PROTOBUF_FIELD_OFFSET(FileData, _impl_.size_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - // bool is_dir = 3 [json_name = "isDir"]; - {PROTOBUF_FIELD_OFFSET(FileData, _impl_.is_dir_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // bytes data = 4 [json_name = "data"]; - {PROTOBUF_FIELD_OFFSET(FileData, _impl_.data_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // bool eof = 5 [json_name = "eof"]; - {PROTOBUF_FIELD_OFFSET(FileData, _impl_.eof_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // optional .google.protobuf.Timestamp mod_time = 6 [json_name = "modTime"]; - {PROTOBUF_FIELD_OFFSET(FileData, _impl_.mod_time_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // optional uint32 mode = 7 [json_name = "mode"]; - {PROTOBUF_FIELD_OFFSET(FileData, _impl_.mode_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, - }}, {{ - "\36\4\0\0\0\0\0\0" - "viam.service.shell.v1.FileData" - "name" - }}, -}; - -::uint8_t* FileData::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* FileData::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.shell.v1.FileData) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.shell.v1.FileData.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.shell.v1.FileData.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // int64 size = 2 [json_name = "size"]; if (this->_internal_size() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<2>( - stream, this->_internal_size(), target); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_size(), target); } // bool is_dir = 3 [json_name = "isDir"]; if (this->_internal_is_dir() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 3, this->_internal_is_dir(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_is_dir(), target); } // bytes data = 4 [json_name = "data"]; if (!this->_internal_data().empty()) { - const std::string& _s = this->_internal_data(); - target = stream->WriteBytesMaybeAliased(4, _s, target); + target = stream->WriteBytesMaybeAliased( + 4, this->_internal_data(), target); } // bool eof = 5 [json_name = "eof"]; if (this->_internal_eof() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 5, this->_internal_eof(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(5, this->_internal_eof(), target); } - cached_has_bits = _impl_._has_bits_[0]; // optional .google.protobuf.Timestamp mod_time = 6 [json_name = "modTime"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 6, _Internal::mod_time(this), + if (_internal_has_mod_time()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(6, _Internal::mod_time(this), _Internal::mod_time(this).GetCachedSize(), target, stream); } // optional uint32 mode = 7 [json_name = "mode"]; - if (cached_has_bits & 0x00000002u) { + if (_internal_has_mode()) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 7, this->_internal_mode(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(7, this->_internal_mode(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.shell.v1.FileData) return target; } -::size_t FileData::ByteSizeLong() const { +size_t FileData::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.shell.v1.FileData) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // bytes data = 4 [json_name = "data"]; if (!this->_internal_data().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_data()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_data()); } // optional .google.protobuf.Timestamp mod_time = 6 [json_name = "modTime"]; - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.mod_time_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *mod_time_); } // int64 size = 2 [json_name = "size"]; if (this->_internal_size() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( - this->_internal_size()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_size()); } // bool is_dir = 3 [json_name = "isDir"]; if (this->_internal_is_dir() != 0) { - total_size += 2; + total_size += 1 + 1; } // bool eof = 5 [json_name = "eof"]; if (this->_internal_eof() != 0) { - total_size += 2; + total_size += 1 + 1; } // optional uint32 mode = 7 [json_name = "mode"]; if (cached_has_bits & 0x00000002u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_mode()); + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_mode()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData FileData::_class_data_ = { - FileData::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FileData::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + FileData::MergeImpl }; -const ::google::protobuf::Message::ClassData* FileData::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FileData::GetClassData() const { return &_class_data_; } + +void FileData::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void FileData::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.shell.v1.FileData) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void FileData::MergeFrom(const FileData& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.shell.v1.FileData) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (!from._internal_data().empty()) { - _this->_internal_set_data(from._internal_data()); + _internal_set_data(from._internal_data()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_mod_time()->::google::protobuf::Timestamp::MergeFrom( - from._internal_mod_time()); + if (from._internal_has_mod_time()) { + _internal_mutable_mod_time()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_mod_time()); } if (from._internal_size() != 0) { - _this->_internal_set_size(from._internal_size()); + _internal_set_size(from._internal_size()); } if (from._internal_is_dir() != 0) { - _this->_internal_set_is_dir(from._internal_is_dir()); + _internal_set_is_dir(from._internal_is_dir()); } if (from._internal_eof() != 0) { - _this->_internal_set_eof(from._internal_eof()); + _internal_set_eof(from._internal_eof()); } - if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) { - _this->_internal_set_mode(from._internal_mode()); + if (from._internal_has_mode()) { + _internal_set_mode(from._internal_mode()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void FileData::CopyFrom(const FileData& from) { @@ -1426,333 +1339,350 @@ void FileData::CopyFrom(const FileData& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool FileData::IsInitialized() const { +bool FileData::IsInitialized() const { return true; } -::_pbi::CachedSize* FileData::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void FileData::InternalSwap(FileData* PROTOBUF_RESTRICT other) { +void FileData::InternalSwap(FileData* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.data_, &other->_impl_.data_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(FileData, _impl_.mode_) - + sizeof(FileData::_impl_.mode_) - - PROTOBUF_FIELD_OFFSET(FileData, _impl_.mod_time_)>( - reinterpret_cast(&_impl_.mod_time_), - reinterpret_cast(&other->_impl_.mod_time_)); -} - -::google::protobuf::Metadata FileData::GetMetadata() const { + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &data_, lhs_arena, + &other->data_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(FileData, mode_) + + sizeof(FileData::mode_) + - PROTOBUF_FIELD_OFFSET(FileData, mod_time_)>( + reinterpret_cast(&mod_time_), + reinterpret_cast(&other->mod_time_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata FileData::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fshell_2fv1_2fshell_2eproto_getter, &descriptor_table_service_2fshell_2fv1_2fshell_2eproto_once, file_level_metadata_service_2fshell_2fv1_2fshell_2eproto[2]); } + // =================================================================== class CopyFilesToMachineRequestMetadata::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(CopyFilesToMachineRequestMetadata, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const CopyFilesToMachineRequestMetadata* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const CopyFilesToMachineRequestMetadata* msg); }; -const ::google::protobuf::Struct& CopyFilesToMachineRequestMetadata::_Internal::extra(const CopyFilesToMachineRequestMetadata* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +CopyFilesToMachineRequestMetadata::_Internal::extra(const CopyFilesToMachineRequestMetadata* msg) { + return *msg->extra_; } void CopyFilesToMachineRequestMetadata::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -CopyFilesToMachineRequestMetadata::CopyFilesToMachineRequestMetadata(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +CopyFilesToMachineRequestMetadata::CopyFilesToMachineRequestMetadata(::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.shell.v1.CopyFilesToMachineRequestMetadata) } -inline PROTOBUF_NDEBUG_INLINE CopyFilesToMachineRequestMetadata::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_), - destination_(arena, from.destination_) {} - -CopyFilesToMachineRequestMetadata::CopyFilesToMachineRequestMetadata( - ::google::protobuf::Arena* arena, - const CopyFilesToMachineRequestMetadata& from) - : ::google::protobuf::Message(arena) { - CopyFilesToMachineRequestMetadata* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, source_type_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, source_type_), - offsetof(Impl_, preserve_) - - offsetof(Impl_, source_type_) + - sizeof(Impl_::preserve_)); - +CopyFilesToMachineRequestMetadata::CopyFilesToMachineRequestMetadata(const CopyFilesToMachineRequestMetadata& 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()); + } + destination_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + destination_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_destination().empty()) { + destination_.Set(from._internal_destination(), + GetArenaForAllocation()); + } + if (from._internal_has_extra()) { + extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.extra_); + } else { + extra_ = nullptr; + } + ::memcpy(&source_type_, &from.source_type_, + static_cast(reinterpret_cast(&preserve_) - + reinterpret_cast(&source_type_)) + sizeof(preserve_)); // @@protoc_insertion_point(copy_constructor:viam.service.shell.v1.CopyFilesToMachineRequestMetadata) } -inline PROTOBUF_NDEBUG_INLINE CopyFilesToMachineRequestMetadata::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena), - destination_(arena) {} - -inline void CopyFilesToMachineRequestMetadata::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, extra_), - 0, - offsetof(Impl_, preserve_) - - offsetof(Impl_, extra_) + - sizeof(Impl_::preserve_)); + +inline void CopyFilesToMachineRequestMetadata::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +destination_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + destination_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&extra_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&preserve_) - + reinterpret_cast(&extra_)) + sizeof(preserve_)); } + CopyFilesToMachineRequestMetadata::~CopyFilesToMachineRequestMetadata() { // @@protoc_insertion_point(destructor:viam.service.shell.v1.CopyFilesToMachineRequestMetadata) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void CopyFilesToMachineRequestMetadata::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.destination_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + destination_.Destroy(); + if (this != internal_default_instance()) delete extra_; } -PROTOBUF_NOINLINE void CopyFilesToMachineRequestMetadata::Clear() { +void CopyFilesToMachineRequestMetadata::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void CopyFilesToMachineRequestMetadata::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.shell.v1.CopyFilesToMachineRequestMetadata) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _impl_.destination_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - ::memset(&_impl_.source_type_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.preserve_) - - reinterpret_cast(&_impl_.source_type_)) + sizeof(_impl_.preserve_)); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* CopyFilesToMachineRequestMetadata::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + destination_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + ::memset(&source_type_, 0, static_cast( + reinterpret_cast(&preserve_) - + reinterpret_cast(&source_type_)) + sizeof(preserve_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CopyFilesToMachineRequestMetadata::_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.service.shell.v1.CopyFilesToMachineRequestMetadata.name")); + } else + goto handle_unusual; + continue; + // .viam.service.shell.v1.CopyFilesSourceType source_type = 2 [json_name = "sourceType"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_source_type(static_cast<::viam::service::shell::v1::CopyFilesSourceType>(val)); + } else + goto handle_unusual; + continue; + // string destination = 3 [json_name = "destination"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_destination(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.shell.v1.CopyFilesToMachineRequestMetadata.destination")); + } else + goto handle_unusual; + continue; + // bool preserve = 4 [json_name = "preserve"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + preserve_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 5, 1, 79, 7> CopyFilesToMachineRequestMetadata::_table_ = { - { - PROTOBUF_FIELD_OFFSET(CopyFilesToMachineRequestMetadata, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 5, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_CopyFilesToMachineRequestMetadata_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // bool preserve = 4 [json_name = "preserve"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(CopyFilesToMachineRequestMetadata, _impl_.preserve_)}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(CopyFilesToMachineRequestMetadata, _impl_.name_)}}, - // .viam.service.shell.v1.CopyFilesSourceType source_type = 2 [json_name = "sourceType"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CopyFilesToMachineRequestMetadata, _impl_.source_type_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(CopyFilesToMachineRequestMetadata, _impl_.source_type_)}}, - // string destination = 3 [json_name = "destination"]; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(CopyFilesToMachineRequestMetadata, _impl_.destination_)}}, - }}, {{ - 99, 0, 1, - 65534, 4, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(CopyFilesToMachineRequestMetadata, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .viam.service.shell.v1.CopyFilesSourceType source_type = 2 [json_name = "sourceType"]; - {PROTOBUF_FIELD_OFFSET(CopyFilesToMachineRequestMetadata, _impl_.source_type_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // string destination = 3 [json_name = "destination"]; - {PROTOBUF_FIELD_OFFSET(CopyFilesToMachineRequestMetadata, _impl_.destination_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // bool preserve = 4 [json_name = "preserve"]; - {PROTOBUF_FIELD_OFFSET(CopyFilesToMachineRequestMetadata, _impl_.preserve_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(CopyFilesToMachineRequestMetadata, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\67\4\0\13\0\0\0\0" - "viam.service.shell.v1.CopyFilesToMachineRequestMetadata" - "name" - "destination" - }}, -}; - -::uint8_t* CopyFilesToMachineRequestMetadata::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* CopyFilesToMachineRequestMetadata::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.shell.v1.CopyFilesToMachineRequestMetadata) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.shell.v1.CopyFilesToMachineRequestMetadata.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.shell.v1.CopyFilesToMachineRequestMetadata.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // .viam.service.shell.v1.CopyFilesSourceType source_type = 2 [json_name = "sourceType"]; if (this->_internal_source_type() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 2, this->_internal_source_type(), target); + 2, this->_internal_source_type(), target); } // string destination = 3 [json_name = "destination"]; if (!this->_internal_destination().empty()) { - const std::string& _s = this->_internal_destination(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.shell.v1.CopyFilesToMachineRequestMetadata.destination"); - target = stream->WriteStringMaybeAliased(3, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_destination().data(), static_cast(this->_internal_destination().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.shell.v1.CopyFilesToMachineRequestMetadata.destination"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_destination(), target); } // bool preserve = 4 [json_name = "preserve"]; if (this->_internal_preserve() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 4, this->_internal_preserve(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(4, this->_internal_preserve(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.shell.v1.CopyFilesToMachineRequestMetadata) return target; } -::size_t CopyFilesToMachineRequestMetadata::ByteSizeLong() const { +size_t CopyFilesToMachineRequestMetadata::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.shell.v1.CopyFilesToMachineRequestMetadata) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // string destination = 3 [json_name = "destination"]; if (!this->_internal_destination().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_destination()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_destination()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } // .viam.service.shell.v1.CopyFilesSourceType source_type = 2 [json_name = "sourceType"]; if (this->_internal_source_type() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_source_type()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_source_type()); } // bool preserve = 4 [json_name = "preserve"]; if (this->_internal_preserve() != 0) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData CopyFilesToMachineRequestMetadata::_class_data_ = { - CopyFilesToMachineRequestMetadata::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CopyFilesToMachineRequestMetadata::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CopyFilesToMachineRequestMetadata::MergeImpl }; -const ::google::protobuf::Message::ClassData* CopyFilesToMachineRequestMetadata::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CopyFilesToMachineRequestMetadata::GetClassData() const { return &_class_data_; } + +void CopyFilesToMachineRequestMetadata::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void CopyFilesToMachineRequestMetadata::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.shell.v1.CopyFilesToMachineRequestMetadata) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void CopyFilesToMachineRequestMetadata::MergeFrom(const CopyFilesToMachineRequestMetadata& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.shell.v1.CopyFilesToMachineRequestMetadata) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (!from._internal_destination().empty()) { - _this->_internal_set_destination(from._internal_destination()); + _internal_set_destination(from._internal_destination()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } if (from._internal_source_type() != 0) { - _this->_internal_set_source_type(from._internal_source_type()); + _internal_set_source_type(from._internal_source_type()); } if (from._internal_preserve() != 0) { - _this->_internal_set_preserve(from._internal_preserve()); + _internal_set_preserve(from._internal_preserve()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CopyFilesToMachineRequestMetadata::CopyFrom(const CopyFilesToMachineRequestMetadata& from) { @@ -1762,146 +1692,145 @@ void CopyFilesToMachineRequestMetadata::CopyFrom(const CopyFilesToMachineRequest MergeFrom(from); } -PROTOBUF_NOINLINE bool CopyFilesToMachineRequestMetadata::IsInitialized() const { +bool CopyFilesToMachineRequestMetadata::IsInitialized() const { return true; } -::_pbi::CachedSize* CopyFilesToMachineRequestMetadata::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void CopyFilesToMachineRequestMetadata::InternalSwap(CopyFilesToMachineRequestMetadata* PROTOBUF_RESTRICT other) { +void CopyFilesToMachineRequestMetadata::InternalSwap(CopyFilesToMachineRequestMetadata* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.destination_, &other->_impl_.destination_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(CopyFilesToMachineRequestMetadata, _impl_.preserve_) - + sizeof(CopyFilesToMachineRequestMetadata::_impl_.preserve_) - - PROTOBUF_FIELD_OFFSET(CopyFilesToMachineRequestMetadata, _impl_.extra_)>( - reinterpret_cast(&_impl_.extra_), - reinterpret_cast(&other->_impl_.extra_)); -} - -::google::protobuf::Metadata CopyFilesToMachineRequestMetadata::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &destination_, lhs_arena, + &other->destination_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(CopyFilesToMachineRequestMetadata, preserve_) + + sizeof(CopyFilesToMachineRequestMetadata::preserve_) + - PROTOBUF_FIELD_OFFSET(CopyFilesToMachineRequestMetadata, extra_)>( + reinterpret_cast(&extra_), + reinterpret_cast(&other->extra_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata CopyFilesToMachineRequestMetadata::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fshell_2fv1_2fshell_2eproto_getter, &descriptor_table_service_2fshell_2fv1_2fshell_2eproto_once, file_level_metadata_service_2fshell_2fv1_2fshell_2eproto[3]); } + // =================================================================== class CopyFilesToMachineRequest::_Internal { public: - static constexpr ::int32_t kOneofCaseOffset = - PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesToMachineRequest, _impl_._oneof_case_); static const ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata& metadata(const CopyFilesToMachineRequest* msg); static const ::viam::service::shell::v1::FileData& file_data(const CopyFilesToMachineRequest* msg); }; -const ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata& CopyFilesToMachineRequest::_Internal::metadata(const CopyFilesToMachineRequest* msg) { - return *msg->_impl_.request_.metadata_; +const ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata& +CopyFilesToMachineRequest::_Internal::metadata(const CopyFilesToMachineRequest* msg) { + return *msg->request_.metadata_; } -const ::viam::service::shell::v1::FileData& CopyFilesToMachineRequest::_Internal::file_data(const CopyFilesToMachineRequest* msg) { - return *msg->_impl_.request_.file_data_; +const ::viam::service::shell::v1::FileData& +CopyFilesToMachineRequest::_Internal::file_data(const CopyFilesToMachineRequest* msg) { + return *msg->request_.file_data_; } void CopyFilesToMachineRequest::set_allocated_metadata(::viam::service::shell::v1::CopyFilesToMachineRequestMetadata* metadata) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_request(); if (metadata) { - ::google::protobuf::Arena* submessage_arena = metadata->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(metadata); if (message_arena != submessage_arena) { - metadata = ::google::protobuf::internal::GetOwnedMessage(message_arena, metadata, submessage_arena); + metadata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, metadata, submessage_arena); } set_has_metadata(); - _impl_.request_.metadata_ = metadata; + request_.metadata_ = metadata; } // @@protoc_insertion_point(field_set_allocated:viam.service.shell.v1.CopyFilesToMachineRequest.metadata) } void CopyFilesToMachineRequest::set_allocated_file_data(::viam::service::shell::v1::FileData* file_data) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_request(); if (file_data) { - ::google::protobuf::Arena* submessage_arena = file_data->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(file_data); if (message_arena != submessage_arena) { - file_data = ::google::protobuf::internal::GetOwnedMessage(message_arena, file_data, submessage_arena); + file_data = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, file_data, submessage_arena); } set_has_file_data(); - _impl_.request_.file_data_ = file_data; + request_.file_data_ = file_data; } // @@protoc_insertion_point(field_set_allocated:viam.service.shell.v1.CopyFilesToMachineRequest.file_data) } -CopyFilesToMachineRequest::CopyFilesToMachineRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +CopyFilesToMachineRequest::CopyFilesToMachineRequest(::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.shell.v1.CopyFilesToMachineRequest) } -inline PROTOBUF_NDEBUG_INLINE CopyFilesToMachineRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : request_{}, - _cached_size_{0}, - _oneof_case_{from._oneof_case_[0]} {} - -CopyFilesToMachineRequest::CopyFilesToMachineRequest( - ::google::protobuf::Arena* arena, - const CopyFilesToMachineRequest& from) - : ::google::protobuf::Message(arena) { - CopyFilesToMachineRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - switch (request_case()) { - case REQUEST_NOT_SET: +CopyFilesToMachineRequest::CopyFilesToMachineRequest(const CopyFilesToMachineRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + clear_has_request(); + switch (from.request_case()) { + case kMetadata: { + _internal_mutable_metadata()->::viam::service::shell::v1::CopyFilesToMachineRequestMetadata::MergeFrom(from._internal_metadata()); + break; + } + case kFileData: { + _internal_mutable_file_data()->::viam::service::shell::v1::FileData::MergeFrom(from._internal_file_data()); + break; + } + case REQUEST_NOT_SET: { break; - case kMetadata: - _impl_.request_.metadata_ = CreateMaybeMessage<::viam::service::shell::v1::CopyFilesToMachineRequestMetadata>(arena, *from._impl_.request_.metadata_); - break; - case kFileData: - _impl_.request_.file_data_ = CreateMaybeMessage<::viam::service::shell::v1::FileData>(arena, *from._impl_.request_.file_data_); - break; + } } - // @@protoc_insertion_point(copy_constructor:viam.service.shell.v1.CopyFilesToMachineRequest) } -inline PROTOBUF_NDEBUG_INLINE CopyFilesToMachineRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : request_{}, - _cached_size_{0}, - _oneof_case_{} {} -inline void CopyFilesToMachineRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void CopyFilesToMachineRequest::SharedCtor() { +clear_has_request(); } + CopyFilesToMachineRequest::~CopyFilesToMachineRequest() { // @@protoc_insertion_point(destructor:viam.service.shell.v1.CopyFilesToMachineRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void CopyFilesToMachineRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); if (has_request()) { clear_request(); } - _impl_.~Impl_(); +} + +void CopyFilesToMachineRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } void CopyFilesToMachineRequest::clear_request() { // @@protoc_insertion_point(one_of_clear_start:viam.service.shell.v1.CopyFilesToMachineRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); switch (request_case()) { case kMetadata: { - if (GetArena() == nullptr) { - delete _impl_.request_.metadata_; + if (GetArenaForAllocation() == nullptr) { + delete request_.metadata_; } break; } case kFileData: { - if (GetArena() == nullptr) { - delete _impl_.request_.file_data_; + if (GetArenaForAllocation() == nullptr) { + delete request_.file_data_; } break; } @@ -1909,152 +1838,156 @@ void CopyFilesToMachineRequest::clear_request() { break; } } - _impl_._oneof_case_[0] = REQUEST_NOT_SET; + _oneof_case_[0] = REQUEST_NOT_SET; } -PROTOBUF_NOINLINE void CopyFilesToMachineRequest::Clear() { +void CopyFilesToMachineRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.shell.v1.CopyFilesToMachineRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; clear_request(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* CopyFilesToMachineRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CopyFilesToMachineRequest::_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.service.shell.v1.CopyFilesToMachineRequestMetadata metadata = 1 [json_name = "metadata"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_metadata(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.service.shell.v1.FileData file_data = 2 [json_name = "fileData"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_file_data(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 2, 2, 0, 2> CopyFilesToMachineRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_CopyFilesToMachineRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.service.shell.v1.CopyFilesToMachineRequestMetadata metadata = 1 [json_name = "metadata"]; - {PROTOBUF_FIELD_OFFSET(CopyFilesToMachineRequest, _impl_.request_.metadata_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .viam.service.shell.v1.FileData file_data = 2 [json_name = "fileData"]; - {PROTOBUF_FIELD_OFFSET(CopyFilesToMachineRequest, _impl_.request_.file_data_), _Internal::kOneofCaseOffset + 0, 1, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::service::shell::v1::CopyFilesToMachineRequestMetadata>()}, - {::_pbi::TcParser::GetTable<::viam::service::shell::v1::FileData>()}, - }}, {{ - }}, -}; - -::uint8_t* CopyFilesToMachineRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* CopyFilesToMachineRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.shell.v1.CopyFilesToMachineRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - switch (request_case()) { - case kMetadata: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::metadata(this), - _Internal::metadata(this).GetCachedSize(), target, stream); - break; - } - case kFileData: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::file_data(this), - _Internal::file_data(this).GetCachedSize(), target, stream); - break; - } - default: - break; + // .viam.service.shell.v1.CopyFilesToMachineRequestMetadata metadata = 1 [json_name = "metadata"]; + if (_internal_has_metadata()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::metadata(this), + _Internal::metadata(this).GetCachedSize(), target, stream); } + + // .viam.service.shell.v1.FileData file_data = 2 [json_name = "fileData"]; + if (_internal_has_file_data()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::file_data(this), + _Internal::file_data(this).GetCachedSize(), target, stream); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.shell.v1.CopyFilesToMachineRequest) return target; } -::size_t CopyFilesToMachineRequest::ByteSizeLong() const { +size_t CopyFilesToMachineRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.shell.v1.CopyFilesToMachineRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; switch (request_case()) { // .viam.service.shell.v1.CopyFilesToMachineRequestMetadata metadata = 1 [json_name = "metadata"]; case kMetadata: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.request_.metadata_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *request_.metadata_); break; } // .viam.service.shell.v1.FileData file_data = 2 [json_name = "fileData"]; case kFileData: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.request_.file_data_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *request_.file_data_); break; } case REQUEST_NOT_SET: { break; } } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData CopyFilesToMachineRequest::_class_data_ = { - CopyFilesToMachineRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CopyFilesToMachineRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CopyFilesToMachineRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* CopyFilesToMachineRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CopyFilesToMachineRequest::GetClassData() const { return &_class_data_; } + +void CopyFilesToMachineRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void CopyFilesToMachineRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.shell.v1.CopyFilesToMachineRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void CopyFilesToMachineRequest::MergeFrom(const CopyFilesToMachineRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.shell.v1.CopyFilesToMachineRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; switch (from.request_case()) { case kMetadata: { - _this->_internal_mutable_metadata()->::viam::service::shell::v1::CopyFilesToMachineRequestMetadata::MergeFrom( - from._internal_metadata()); + _internal_mutable_metadata()->::viam::service::shell::v1::CopyFilesToMachineRequestMetadata::MergeFrom(from._internal_metadata()); break; } case kFileData: { - _this->_internal_mutable_file_data()->::viam::service::shell::v1::FileData::MergeFrom( - from._internal_file_data()); + _internal_mutable_file_data()->::viam::service::shell::v1::FileData::MergeFrom(from._internal_file_data()); break; } case REQUEST_NOT_SET: { break; } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CopyFilesToMachineRequest::CopyFrom(const CopyFilesToMachineRequest& from) { @@ -2064,167 +1997,169 @@ void CopyFilesToMachineRequest::CopyFrom(const CopyFilesToMachineRequest& from) MergeFrom(from); } -PROTOBUF_NOINLINE bool CopyFilesToMachineRequest::IsInitialized() const { +bool CopyFilesToMachineRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* CopyFilesToMachineRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void CopyFilesToMachineRequest::InternalSwap(CopyFilesToMachineRequest* PROTOBUF_RESTRICT other) { +void CopyFilesToMachineRequest::InternalSwap(CopyFilesToMachineRequest* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.request_, other->_impl_.request_); - swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); + swap(request_, other->request_); + swap(_oneof_case_[0], other->_oneof_case_[0]); } -::google::protobuf::Metadata CopyFilesToMachineRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata CopyFilesToMachineRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fshell_2fv1_2fshell_2eproto_getter, &descriptor_table_service_2fshell_2fv1_2fshell_2eproto_once, file_level_metadata_service_2fshell_2fv1_2fshell_2eproto[4]); } + // =================================================================== class CopyFilesToMachineResponse::_Internal { public: }; -CopyFilesToMachineResponse::CopyFilesToMachineResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +CopyFilesToMachineResponse::CopyFilesToMachineResponse(::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.shell.v1.CopyFilesToMachineResponse) } -CopyFilesToMachineResponse::CopyFilesToMachineResponse( - ::google::protobuf::Arena* arena, const CopyFilesToMachineResponse& from) - : CopyFilesToMachineResponse(arena) { - MergeFrom(from); +CopyFilesToMachineResponse::CopyFilesToMachineResponse(const CopyFilesToMachineResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ack_last_file_ = from.ack_last_file_; + // @@protoc_insertion_point(copy_constructor:viam.service.shell.v1.CopyFilesToMachineResponse) } -inline PROTOBUF_NDEBUG_INLINE CopyFilesToMachineResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void CopyFilesToMachineResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.ack_last_file_ = {}; +inline void CopyFilesToMachineResponse::SharedCtor() { +ack_last_file_ = false; } + CopyFilesToMachineResponse::~CopyFilesToMachineResponse() { // @@protoc_insertion_point(destructor:viam.service.shell.v1.CopyFilesToMachineResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void CopyFilesToMachineResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void CopyFilesToMachineResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void CopyFilesToMachineResponse::Clear() { +void CopyFilesToMachineResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.shell.v1.CopyFilesToMachineResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.ack_last_file_ = false; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* CopyFilesToMachineResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + ack_last_file_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CopyFilesToMachineResponse::_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) { + // bool ack_last_file = 1 [json_name = "ackLastFile"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + ack_last_file_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> CopyFilesToMachineResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_CopyFilesToMachineResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // bool ack_last_file = 1 [json_name = "ackLastFile"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(CopyFilesToMachineResponse, _impl_.ack_last_file_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bool ack_last_file = 1 [json_name = "ackLastFile"]; - {PROTOBUF_FIELD_OFFSET(CopyFilesToMachineResponse, _impl_.ack_last_file_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* CopyFilesToMachineResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* CopyFilesToMachineResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.shell.v1.CopyFilesToMachineResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // bool ack_last_file = 1 [json_name = "ackLastFile"]; if (this->_internal_ack_last_file() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 1, this->_internal_ack_last_file(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_ack_last_file(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.shell.v1.CopyFilesToMachineResponse) return target; } -::size_t CopyFilesToMachineResponse::ByteSizeLong() const { +size_t CopyFilesToMachineResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.shell.v1.CopyFilesToMachineResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // bool ack_last_file = 1 [json_name = "ackLastFile"]; if (this->_internal_ack_last_file() != 0) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData CopyFilesToMachineResponse::_class_data_ = { - CopyFilesToMachineResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CopyFilesToMachineResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CopyFilesToMachineResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* CopyFilesToMachineResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CopyFilesToMachineResponse::GetClassData() const { return &_class_data_; } + +void CopyFilesToMachineResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void CopyFilesToMachineResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.shell.v1.CopyFilesToMachineResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void CopyFilesToMachineResponse::MergeFrom(const CopyFilesToMachineResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.shell.v1.CopyFilesToMachineResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_ack_last_file() != 0) { - _this->_internal_set_ack_last_file(from._internal_ack_last_file()); + _internal_set_ack_last_file(from._internal_ack_last_file()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CopyFilesToMachineResponse::CopyFrom(const CopyFilesToMachineResponse& from) { @@ -2234,319 +2169,324 @@ void CopyFilesToMachineResponse::CopyFrom(const CopyFilesToMachineResponse& from MergeFrom(from); } -PROTOBUF_NOINLINE bool CopyFilesToMachineResponse::IsInitialized() const { +bool CopyFilesToMachineResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* CopyFilesToMachineResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void CopyFilesToMachineResponse::InternalSwap(CopyFilesToMachineResponse* PROTOBUF_RESTRICT other) { +void CopyFilesToMachineResponse::InternalSwap(CopyFilesToMachineResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.ack_last_file_, other->_impl_.ack_last_file_); + swap(ack_last_file_, other->ack_last_file_); } -::google::protobuf::Metadata CopyFilesToMachineResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata CopyFilesToMachineResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fshell_2fv1_2fshell_2eproto_getter, &descriptor_table_service_2fshell_2fv1_2fshell_2eproto_once, file_level_metadata_service_2fshell_2fv1_2fshell_2eproto[5]); } + // =================================================================== class CopyFilesFromMachineRequestMetadata::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(CopyFilesFromMachineRequestMetadata, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const CopyFilesFromMachineRequestMetadata* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const CopyFilesFromMachineRequestMetadata* msg); }; -const ::google::protobuf::Struct& CopyFilesFromMachineRequestMetadata::_Internal::extra(const CopyFilesFromMachineRequestMetadata* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +CopyFilesFromMachineRequestMetadata::_Internal::extra(const CopyFilesFromMachineRequestMetadata* msg) { + return *msg->extra_; } void CopyFilesFromMachineRequestMetadata::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -CopyFilesFromMachineRequestMetadata::CopyFilesFromMachineRequestMetadata(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +CopyFilesFromMachineRequestMetadata::CopyFilesFromMachineRequestMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + paths_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata) } -inline PROTOBUF_NDEBUG_INLINE CopyFilesFromMachineRequestMetadata::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - paths_{visibility, arena, from.paths_}, - name_(arena, from.name_) {} - -CopyFilesFromMachineRequestMetadata::CopyFilesFromMachineRequestMetadata( - ::google::protobuf::Arena* arena, - const CopyFilesFromMachineRequestMetadata& from) - : ::google::protobuf::Message(arena) { - CopyFilesFromMachineRequestMetadata* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, allow_recursion_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, allow_recursion_), - offsetof(Impl_, preserve_) - - offsetof(Impl_, allow_recursion_) + - sizeof(Impl_::preserve_)); - +CopyFilesFromMachineRequestMetadata::CopyFilesFromMachineRequestMetadata(const CopyFilesFromMachineRequestMetadata& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + paths_(from.paths_) { + _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; + } + ::memcpy(&allow_recursion_, &from.allow_recursion_, + static_cast(reinterpret_cast(&preserve_) - + reinterpret_cast(&allow_recursion_)) + sizeof(preserve_)); // @@protoc_insertion_point(copy_constructor:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata) } -inline PROTOBUF_NDEBUG_INLINE CopyFilesFromMachineRequestMetadata::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - paths_{visibility, arena}, - name_(arena) {} - -inline void CopyFilesFromMachineRequestMetadata::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, extra_), - 0, - offsetof(Impl_, preserve_) - - offsetof(Impl_, extra_) + - sizeof(Impl_::preserve_)); + +inline void CopyFilesFromMachineRequestMetadata::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&extra_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&preserve_) - + reinterpret_cast(&extra_)) + sizeof(preserve_)); } + CopyFilesFromMachineRequestMetadata::~CopyFilesFromMachineRequestMetadata() { // @@protoc_insertion_point(destructor:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void CopyFilesFromMachineRequestMetadata::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void CopyFilesFromMachineRequestMetadata::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void CopyFilesFromMachineRequestMetadata::Clear() { +void CopyFilesFromMachineRequestMetadata::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.paths_.Clear(); - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - ::memset(&_impl_.allow_recursion_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.preserve_) - - reinterpret_cast(&_impl_.allow_recursion_)) + sizeof(_impl_.preserve_)); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* CopyFilesFromMachineRequestMetadata::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + paths_.Clear(); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + ::memset(&allow_recursion_, 0, static_cast( + reinterpret_cast(&preserve_) - + reinterpret_cast(&allow_recursion_)) + sizeof(preserve_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CopyFilesFromMachineRequestMetadata::_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.service.shell.v1.CopyFilesFromMachineRequestMetadata.name")); + } else + goto handle_unusual; + continue; + // repeated string paths = 2 [json_name = "paths"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_paths(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.paths")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } else + goto handle_unusual; + continue; + // bool allow_recursion = 3 [json_name = "allowRecursion"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + allow_recursion_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool preserve = 4 [json_name = "preserve"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + preserve_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 5, 1, 75, 7> CopyFilesFromMachineRequestMetadata::_table_ = { - { - PROTOBUF_FIELD_OFFSET(CopyFilesFromMachineRequestMetadata, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 5, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_CopyFilesFromMachineRequestMetadata_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // bool preserve = 4 [json_name = "preserve"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(CopyFilesFromMachineRequestMetadata, _impl_.preserve_)}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(CopyFilesFromMachineRequestMetadata, _impl_.name_)}}, - // repeated string paths = 2 [json_name = "paths"]; - {::_pbi::TcParser::FastUR1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(CopyFilesFromMachineRequestMetadata, _impl_.paths_)}}, - // bool allow_recursion = 3 [json_name = "allowRecursion"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(CopyFilesFromMachineRequestMetadata, _impl_.allow_recursion_)}}, - }}, {{ - 99, 0, 1, - 65534, 4, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(CopyFilesFromMachineRequestMetadata, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated string paths = 2 [json_name = "paths"]; - {PROTOBUF_FIELD_OFFSET(CopyFilesFromMachineRequestMetadata, _impl_.paths_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - // bool allow_recursion = 3 [json_name = "allowRecursion"]; - {PROTOBUF_FIELD_OFFSET(CopyFilesFromMachineRequestMetadata, _impl_.allow_recursion_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // bool preserve = 4 [json_name = "preserve"]; - {PROTOBUF_FIELD_OFFSET(CopyFilesFromMachineRequestMetadata, _impl_.preserve_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(CopyFilesFromMachineRequestMetadata, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\71\4\5\0\0\0\0\0" - "viam.service.shell.v1.CopyFilesFromMachineRequestMetadata" - "name" - "paths" - }}, -}; - -::uint8_t* CopyFilesFromMachineRequestMetadata::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* CopyFilesFromMachineRequestMetadata::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // repeated string paths = 2 [json_name = "paths"]; - for (int i = 0, n = this->_internal_paths_size(); i < n; ++i) { - const auto& s = this->_internal_paths().Get(i); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.paths"); + for (int i = 0, n = this->_internal_paths_size(); i < n; i++) { + const auto& s = this->_internal_paths(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.paths"); target = stream->WriteString(2, s, target); } // bool allow_recursion = 3 [json_name = "allowRecursion"]; if (this->_internal_allow_recursion() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 3, this->_internal_allow_recursion(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_allow_recursion(), target); } // bool preserve = 4 [json_name = "preserve"]; if (this->_internal_preserve() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 4, this->_internal_preserve(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(4, this->_internal_preserve(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.shell.v1.CopyFilesFromMachineRequestMetadata) return target; } -::size_t CopyFilesFromMachineRequestMetadata::ByteSizeLong() const { +size_t CopyFilesFromMachineRequestMetadata::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated string paths = 2 [json_name = "paths"]; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_paths().size()); - for (int i = 0, n = _internal_paths().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - _internal_paths().Get(i)); + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(paths_.size()); + for (int i = 0, n = paths_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + paths_.Get(i)); } + // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } // bool allow_recursion = 3 [json_name = "allowRecursion"]; if (this->_internal_allow_recursion() != 0) { - total_size += 2; + total_size += 1 + 1; } // bool preserve = 4 [json_name = "preserve"]; if (this->_internal_preserve() != 0) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData CopyFilesFromMachineRequestMetadata::_class_data_ = { - CopyFilesFromMachineRequestMetadata::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CopyFilesFromMachineRequestMetadata::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CopyFilesFromMachineRequestMetadata::MergeImpl }; -const ::google::protobuf::Message::ClassData* CopyFilesFromMachineRequestMetadata::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CopyFilesFromMachineRequestMetadata::GetClassData() const { return &_class_data_; } + +void CopyFilesFromMachineRequestMetadata::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void CopyFilesFromMachineRequestMetadata::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void CopyFilesFromMachineRequestMetadata::MergeFrom(const CopyFilesFromMachineRequestMetadata& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_paths()->MergeFrom(from._internal_paths()); + paths_.MergeFrom(from.paths_); if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } if (from._internal_allow_recursion() != 0) { - _this->_internal_set_allow_recursion(from._internal_allow_recursion()); + _internal_set_allow_recursion(from._internal_allow_recursion()); } if (from._internal_preserve() != 0) { - _this->_internal_set_preserve(from._internal_preserve()); + _internal_set_preserve(from._internal_preserve()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CopyFilesFromMachineRequestMetadata::CopyFrom(const CopyFilesFromMachineRequestMetadata& from) { @@ -2556,123 +2496,116 @@ void CopyFilesFromMachineRequestMetadata::CopyFrom(const CopyFilesFromMachineReq MergeFrom(from); } -PROTOBUF_NOINLINE bool CopyFilesFromMachineRequestMetadata::IsInitialized() const { +bool CopyFilesFromMachineRequestMetadata::IsInitialized() const { return true; } -::_pbi::CachedSize* CopyFilesFromMachineRequestMetadata::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void CopyFilesFromMachineRequestMetadata::InternalSwap(CopyFilesFromMachineRequestMetadata* PROTOBUF_RESTRICT other) { +void CopyFilesFromMachineRequestMetadata::InternalSwap(CopyFilesFromMachineRequestMetadata* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.paths_.InternalSwap(&other->_impl_.paths_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(CopyFilesFromMachineRequestMetadata, _impl_.preserve_) - + sizeof(CopyFilesFromMachineRequestMetadata::_impl_.preserve_) - - PROTOBUF_FIELD_OFFSET(CopyFilesFromMachineRequestMetadata, _impl_.extra_)>( - reinterpret_cast(&_impl_.extra_), - reinterpret_cast(&other->_impl_.extra_)); -} - -::google::protobuf::Metadata CopyFilesFromMachineRequestMetadata::GetMetadata() const { + paths_.InternalSwap(&other->paths_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(CopyFilesFromMachineRequestMetadata, preserve_) + + sizeof(CopyFilesFromMachineRequestMetadata::preserve_) + - PROTOBUF_FIELD_OFFSET(CopyFilesFromMachineRequestMetadata, extra_)>( + reinterpret_cast(&extra_), + reinterpret_cast(&other->extra_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata CopyFilesFromMachineRequestMetadata::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fshell_2fv1_2fshell_2eproto_getter, &descriptor_table_service_2fshell_2fv1_2fshell_2eproto_once, file_level_metadata_service_2fshell_2fv1_2fshell_2eproto[6]); } + // =================================================================== class CopyFilesFromMachineRequest::_Internal { public: - static constexpr ::int32_t kOneofCaseOffset = - PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesFromMachineRequest, _impl_._oneof_case_); static const ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata& metadata(const CopyFilesFromMachineRequest* msg); }; -const ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata& CopyFilesFromMachineRequest::_Internal::metadata(const CopyFilesFromMachineRequest* msg) { - return *msg->_impl_.request_.metadata_; +const ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata& +CopyFilesFromMachineRequest::_Internal::metadata(const CopyFilesFromMachineRequest* msg) { + return *msg->request_.metadata_; } void CopyFilesFromMachineRequest::set_allocated_metadata(::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata* metadata) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_request(); if (metadata) { - ::google::protobuf::Arena* submessage_arena = metadata->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(metadata); if (message_arena != submessage_arena) { - metadata = ::google::protobuf::internal::GetOwnedMessage(message_arena, metadata, submessage_arena); + metadata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, metadata, submessage_arena); } set_has_metadata(); - _impl_.request_.metadata_ = metadata; + request_.metadata_ = metadata; } // @@protoc_insertion_point(field_set_allocated:viam.service.shell.v1.CopyFilesFromMachineRequest.metadata) } -CopyFilesFromMachineRequest::CopyFilesFromMachineRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +CopyFilesFromMachineRequest::CopyFilesFromMachineRequest(::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.shell.v1.CopyFilesFromMachineRequest) } -inline PROTOBUF_NDEBUG_INLINE CopyFilesFromMachineRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : request_{}, - _cached_size_{0}, - _oneof_case_{from._oneof_case_[0]} {} - -CopyFilesFromMachineRequest::CopyFilesFromMachineRequest( - ::google::protobuf::Arena* arena, - const CopyFilesFromMachineRequest& from) - : ::google::protobuf::Message(arena) { - CopyFilesFromMachineRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - switch (request_case()) { - case REQUEST_NOT_SET: +CopyFilesFromMachineRequest::CopyFilesFromMachineRequest(const CopyFilesFromMachineRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + clear_has_request(); + switch (from.request_case()) { + case kMetadata: { + _internal_mutable_metadata()->::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata::MergeFrom(from._internal_metadata()); + break; + } + case kAckLastFile: { + _internal_set_ack_last_file(from._internal_ack_last_file()); + break; + } + case REQUEST_NOT_SET: { break; - case kMetadata: - _impl_.request_.metadata_ = CreateMaybeMessage<::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata>(arena, *from._impl_.request_.metadata_); - break; - case kAckLastFile: - _impl_.request_.ack_last_file_ = from._impl_.request_.ack_last_file_; - break; + } } - // @@protoc_insertion_point(copy_constructor:viam.service.shell.v1.CopyFilesFromMachineRequest) } -inline PROTOBUF_NDEBUG_INLINE CopyFilesFromMachineRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : request_{}, - _cached_size_{0}, - _oneof_case_{} {} -inline void CopyFilesFromMachineRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void CopyFilesFromMachineRequest::SharedCtor() { +clear_has_request(); } + CopyFilesFromMachineRequest::~CopyFilesFromMachineRequest() { // @@protoc_insertion_point(destructor:viam.service.shell.v1.CopyFilesFromMachineRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void CopyFilesFromMachineRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); if (has_request()) { clear_request(); } - _impl_.~Impl_(); +} + +void CopyFilesFromMachineRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } void CopyFilesFromMachineRequest::clear_request() { // @@protoc_insertion_point(one_of_clear_start:viam.service.shell.v1.CopyFilesFromMachineRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); switch (request_case()) { case kMetadata: { - if (GetArena() == nullptr) { - delete _impl_.request_.metadata_; + if (GetArenaForAllocation() == nullptr) { + delete request_.metadata_; } break; } @@ -2684,149 +2617,153 @@ void CopyFilesFromMachineRequest::clear_request() { break; } } - _impl_._oneof_case_[0] = REQUEST_NOT_SET; + _oneof_case_[0] = REQUEST_NOT_SET; } -PROTOBUF_NOINLINE void CopyFilesFromMachineRequest::Clear() { +void CopyFilesFromMachineRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.shell.v1.CopyFilesFromMachineRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; clear_request(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* CopyFilesFromMachineRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CopyFilesFromMachineRequest::_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.service.shell.v1.CopyFilesFromMachineRequestMetadata metadata = 1 [json_name = "metadata"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_metadata(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool ack_last_file = 2 [json_name = "ackLastFile"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _internal_set_ack_last_file(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 2, 1, 0, 2> CopyFilesFromMachineRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_CopyFilesFromMachineRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.service.shell.v1.CopyFilesFromMachineRequestMetadata metadata = 1 [json_name = "metadata"]; - {PROTOBUF_FIELD_OFFSET(CopyFilesFromMachineRequest, _impl_.request_.metadata_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // bool ack_last_file = 2 [json_name = "ackLastFile"]; - {PROTOBUF_FIELD_OFFSET(CopyFilesFromMachineRequest, _impl_.request_.ack_last_file_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kBool)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata>()}, - }}, {{ - }}, -}; - -::uint8_t* CopyFilesFromMachineRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* CopyFilesFromMachineRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.shell.v1.CopyFilesFromMachineRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - switch (request_case()) { - case kMetadata: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::metadata(this), - _Internal::metadata(this).GetCachedSize(), target, stream); - break; - } - case kAckLastFile: { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 2, this->_internal_ack_last_file(), target); - break; - } - default: - break; + // .viam.service.shell.v1.CopyFilesFromMachineRequestMetadata metadata = 1 [json_name = "metadata"]; + if (_internal_has_metadata()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::metadata(this), + _Internal::metadata(this).GetCachedSize(), target, stream); } + + // bool ack_last_file = 2 [json_name = "ackLastFile"]; + if (_internal_has_ack_last_file()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_ack_last_file(), target); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.shell.v1.CopyFilesFromMachineRequest) return target; } -::size_t CopyFilesFromMachineRequest::ByteSizeLong() const { +size_t CopyFilesFromMachineRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.shell.v1.CopyFilesFromMachineRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; switch (request_case()) { // .viam.service.shell.v1.CopyFilesFromMachineRequestMetadata metadata = 1 [json_name = "metadata"]; case kMetadata: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.request_.metadata_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *request_.metadata_); break; } // bool ack_last_file = 2 [json_name = "ackLastFile"]; case kAckLastFile: { - total_size += 2; + total_size += 1 + 1; break; } case REQUEST_NOT_SET: { break; } } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData CopyFilesFromMachineRequest::_class_data_ = { - CopyFilesFromMachineRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CopyFilesFromMachineRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CopyFilesFromMachineRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* CopyFilesFromMachineRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CopyFilesFromMachineRequest::GetClassData() const { return &_class_data_; } + +void CopyFilesFromMachineRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void CopyFilesFromMachineRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.shell.v1.CopyFilesFromMachineRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void CopyFilesFromMachineRequest::MergeFrom(const CopyFilesFromMachineRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.shell.v1.CopyFilesFromMachineRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; switch (from.request_case()) { case kMetadata: { - _this->_internal_mutable_metadata()->::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata::MergeFrom( - from._internal_metadata()); + _internal_mutable_metadata()->::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata::MergeFrom(from._internal_metadata()); break; } case kAckLastFile: { - _this->_internal_set_ack_last_file(from._internal_ack_last_file()); + _internal_set_ack_last_file(from._internal_ack_last_file()); break; } case REQUEST_NOT_SET: { break; } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CopyFilesFromMachineRequest::CopyFrom(const CopyFilesFromMachineRequest& from) { @@ -2836,168 +2773,172 @@ void CopyFilesFromMachineRequest::CopyFrom(const CopyFilesFromMachineRequest& fr MergeFrom(from); } -PROTOBUF_NOINLINE bool CopyFilesFromMachineRequest::IsInitialized() const { +bool CopyFilesFromMachineRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* CopyFilesFromMachineRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void CopyFilesFromMachineRequest::InternalSwap(CopyFilesFromMachineRequest* PROTOBUF_RESTRICT other) { +void CopyFilesFromMachineRequest::InternalSwap(CopyFilesFromMachineRequest* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.request_, other->_impl_.request_); - swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); + swap(request_, other->request_); + swap(_oneof_case_[0], other->_oneof_case_[0]); } -::google::protobuf::Metadata CopyFilesFromMachineRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata CopyFilesFromMachineRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fshell_2fv1_2fshell_2eproto_getter, &descriptor_table_service_2fshell_2fv1_2fshell_2eproto_once, file_level_metadata_service_2fshell_2fv1_2fshell_2eproto[7]); } + // =================================================================== class CopyFilesFromMachineResponseMetadata::_Internal { public: }; -CopyFilesFromMachineResponseMetadata::CopyFilesFromMachineResponseMetadata(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +CopyFilesFromMachineResponseMetadata::CopyFilesFromMachineResponseMetadata(::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.shell.v1.CopyFilesFromMachineResponseMetadata) } -CopyFilesFromMachineResponseMetadata::CopyFilesFromMachineResponseMetadata( - ::google::protobuf::Arena* arena, const CopyFilesFromMachineResponseMetadata& from) - : CopyFilesFromMachineResponseMetadata(arena) { - MergeFrom(from); +CopyFilesFromMachineResponseMetadata::CopyFilesFromMachineResponseMetadata(const CopyFilesFromMachineResponseMetadata& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + source_type_ = from.source_type_; + // @@protoc_insertion_point(copy_constructor:viam.service.shell.v1.CopyFilesFromMachineResponseMetadata) } -inline PROTOBUF_NDEBUG_INLINE CopyFilesFromMachineResponseMetadata::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void CopyFilesFromMachineResponseMetadata::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.source_type_ = {}; +inline void CopyFilesFromMachineResponseMetadata::SharedCtor() { +source_type_ = 0; } + CopyFilesFromMachineResponseMetadata::~CopyFilesFromMachineResponseMetadata() { // @@protoc_insertion_point(destructor:viam.service.shell.v1.CopyFilesFromMachineResponseMetadata) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void CopyFilesFromMachineResponseMetadata::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void CopyFilesFromMachineResponseMetadata::Clear() { +void CopyFilesFromMachineResponseMetadata::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void CopyFilesFromMachineResponseMetadata::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.shell.v1.CopyFilesFromMachineResponseMetadata) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.source_type_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* CopyFilesFromMachineResponseMetadata::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + source_type_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CopyFilesFromMachineResponseMetadata::_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.service.shell.v1.CopyFilesSourceType source_type = 1 [json_name = "sourceType"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_source_type(static_cast<::viam::service::shell::v1::CopyFilesSourceType>(val)); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> CopyFilesFromMachineResponseMetadata::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_CopyFilesFromMachineResponseMetadata_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.service.shell.v1.CopyFilesSourceType source_type = 1 [json_name = "sourceType"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CopyFilesFromMachineResponseMetadata, _impl_.source_type_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(CopyFilesFromMachineResponseMetadata, _impl_.source_type_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.service.shell.v1.CopyFilesSourceType source_type = 1 [json_name = "sourceType"]; - {PROTOBUF_FIELD_OFFSET(CopyFilesFromMachineResponseMetadata, _impl_.source_type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* CopyFilesFromMachineResponseMetadata::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* CopyFilesFromMachineResponseMetadata::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.shell.v1.CopyFilesFromMachineResponseMetadata) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // .viam.service.shell.v1.CopyFilesSourceType source_type = 1 [json_name = "sourceType"]; if (this->_internal_source_type() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_source_type(), target); + 1, this->_internal_source_type(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.shell.v1.CopyFilesFromMachineResponseMetadata) return target; } -::size_t CopyFilesFromMachineResponseMetadata::ByteSizeLong() const { +size_t CopyFilesFromMachineResponseMetadata::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.shell.v1.CopyFilesFromMachineResponseMetadata) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .viam.service.shell.v1.CopyFilesSourceType source_type = 1 [json_name = "sourceType"]; if (this->_internal_source_type() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_source_type()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_source_type()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData CopyFilesFromMachineResponseMetadata::_class_data_ = { - CopyFilesFromMachineResponseMetadata::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CopyFilesFromMachineResponseMetadata::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CopyFilesFromMachineResponseMetadata::MergeImpl }; -const ::google::protobuf::Message::ClassData* CopyFilesFromMachineResponseMetadata::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CopyFilesFromMachineResponseMetadata::GetClassData() const { return &_class_data_; } + +void CopyFilesFromMachineResponseMetadata::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void CopyFilesFromMachineResponseMetadata::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.shell.v1.CopyFilesFromMachineResponseMetadata) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void CopyFilesFromMachineResponseMetadata::MergeFrom(const CopyFilesFromMachineResponseMetadata& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.shell.v1.CopyFilesFromMachineResponseMetadata) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_source_type() != 0) { - _this->_internal_set_source_type(from._internal_source_type()); + _internal_set_source_type(from._internal_source_type()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CopyFilesFromMachineResponseMetadata::CopyFrom(const CopyFilesFromMachineResponseMetadata& from) { @@ -3007,136 +2948,130 @@ void CopyFilesFromMachineResponseMetadata::CopyFrom(const CopyFilesFromMachineRe MergeFrom(from); } -PROTOBUF_NOINLINE bool CopyFilesFromMachineResponseMetadata::IsInitialized() const { +bool CopyFilesFromMachineResponseMetadata::IsInitialized() const { return true; } -::_pbi::CachedSize* CopyFilesFromMachineResponseMetadata::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void CopyFilesFromMachineResponseMetadata::InternalSwap(CopyFilesFromMachineResponseMetadata* PROTOBUF_RESTRICT other) { +void CopyFilesFromMachineResponseMetadata::InternalSwap(CopyFilesFromMachineResponseMetadata* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.source_type_, other->_impl_.source_type_); + swap(source_type_, other->source_type_); } -::google::protobuf::Metadata CopyFilesFromMachineResponseMetadata::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata CopyFilesFromMachineResponseMetadata::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fshell_2fv1_2fshell_2eproto_getter, &descriptor_table_service_2fshell_2fv1_2fshell_2eproto_once, file_level_metadata_service_2fshell_2fv1_2fshell_2eproto[8]); } + // =================================================================== class CopyFilesFromMachineResponse::_Internal { public: - static constexpr ::int32_t kOneofCaseOffset = - PROTOBUF_FIELD_OFFSET(::viam::service::shell::v1::CopyFilesFromMachineResponse, _impl_._oneof_case_); static const ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata& metadata(const CopyFilesFromMachineResponse* msg); static const ::viam::service::shell::v1::FileData& file_data(const CopyFilesFromMachineResponse* msg); }; -const ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata& CopyFilesFromMachineResponse::_Internal::metadata(const CopyFilesFromMachineResponse* msg) { - return *msg->_impl_.response_.metadata_; +const ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata& +CopyFilesFromMachineResponse::_Internal::metadata(const CopyFilesFromMachineResponse* msg) { + return *msg->response_.metadata_; } -const ::viam::service::shell::v1::FileData& CopyFilesFromMachineResponse::_Internal::file_data(const CopyFilesFromMachineResponse* msg) { - return *msg->_impl_.response_.file_data_; +const ::viam::service::shell::v1::FileData& +CopyFilesFromMachineResponse::_Internal::file_data(const CopyFilesFromMachineResponse* msg) { + return *msg->response_.file_data_; } void CopyFilesFromMachineResponse::set_allocated_metadata(::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata* metadata) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_response(); if (metadata) { - ::google::protobuf::Arena* submessage_arena = metadata->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(metadata); if (message_arena != submessage_arena) { - metadata = ::google::protobuf::internal::GetOwnedMessage(message_arena, metadata, submessage_arena); + metadata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, metadata, submessage_arena); } set_has_metadata(); - _impl_.response_.metadata_ = metadata; + response_.metadata_ = metadata; } // @@protoc_insertion_point(field_set_allocated:viam.service.shell.v1.CopyFilesFromMachineResponse.metadata) } void CopyFilesFromMachineResponse::set_allocated_file_data(::viam::service::shell::v1::FileData* file_data) { - ::google::protobuf::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_response(); if (file_data) { - ::google::protobuf::Arena* submessage_arena = file_data->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(file_data); if (message_arena != submessage_arena) { - file_data = ::google::protobuf::internal::GetOwnedMessage(message_arena, file_data, submessage_arena); + file_data = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, file_data, submessage_arena); } set_has_file_data(); - _impl_.response_.file_data_ = file_data; + response_.file_data_ = file_data; } // @@protoc_insertion_point(field_set_allocated:viam.service.shell.v1.CopyFilesFromMachineResponse.file_data) } -CopyFilesFromMachineResponse::CopyFilesFromMachineResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +CopyFilesFromMachineResponse::CopyFilesFromMachineResponse(::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.shell.v1.CopyFilesFromMachineResponse) } -inline PROTOBUF_NDEBUG_INLINE CopyFilesFromMachineResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : response_{}, - _cached_size_{0}, - _oneof_case_{from._oneof_case_[0]} {} - -CopyFilesFromMachineResponse::CopyFilesFromMachineResponse( - ::google::protobuf::Arena* arena, - const CopyFilesFromMachineResponse& from) - : ::google::protobuf::Message(arena) { - CopyFilesFromMachineResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - switch (response_case()) { - case RESPONSE_NOT_SET: +CopyFilesFromMachineResponse::CopyFilesFromMachineResponse(const CopyFilesFromMachineResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + clear_has_response(); + switch (from.response_case()) { + case kMetadata: { + _internal_mutable_metadata()->::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata::MergeFrom(from._internal_metadata()); + break; + } + case kFileData: { + _internal_mutable_file_data()->::viam::service::shell::v1::FileData::MergeFrom(from._internal_file_data()); + break; + } + case RESPONSE_NOT_SET: { break; - case kMetadata: - _impl_.response_.metadata_ = CreateMaybeMessage<::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata>(arena, *from._impl_.response_.metadata_); - break; - case kFileData: - _impl_.response_.file_data_ = CreateMaybeMessage<::viam::service::shell::v1::FileData>(arena, *from._impl_.response_.file_data_); - break; + } } - // @@protoc_insertion_point(copy_constructor:viam.service.shell.v1.CopyFilesFromMachineResponse) } -inline PROTOBUF_NDEBUG_INLINE CopyFilesFromMachineResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : response_{}, - _cached_size_{0}, - _oneof_case_{} {} -inline void CopyFilesFromMachineResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void CopyFilesFromMachineResponse::SharedCtor() { +clear_has_response(); } + CopyFilesFromMachineResponse::~CopyFilesFromMachineResponse() { // @@protoc_insertion_point(destructor:viam.service.shell.v1.CopyFilesFromMachineResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void CopyFilesFromMachineResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); if (has_response()) { clear_response(); } - _impl_.~Impl_(); +} + +void CopyFilesFromMachineResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } void CopyFilesFromMachineResponse::clear_response() { // @@protoc_insertion_point(one_of_clear_start:viam.service.shell.v1.CopyFilesFromMachineResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); switch (response_case()) { case kMetadata: { - if (GetArena() == nullptr) { - delete _impl_.response_.metadata_; + if (GetArenaForAllocation() == nullptr) { + delete response_.metadata_; } break; } case kFileData: { - if (GetArena() == nullptr) { - delete _impl_.response_.file_data_; + if (GetArenaForAllocation() == nullptr) { + delete response_.file_data_; } break; } @@ -3144,152 +3079,156 @@ void CopyFilesFromMachineResponse::clear_response() { break; } } - _impl_._oneof_case_[0] = RESPONSE_NOT_SET; + _oneof_case_[0] = RESPONSE_NOT_SET; } -PROTOBUF_NOINLINE void CopyFilesFromMachineResponse::Clear() { +void CopyFilesFromMachineResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.shell.v1.CopyFilesFromMachineResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; clear_response(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* CopyFilesFromMachineResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CopyFilesFromMachineResponse::_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.service.shell.v1.CopyFilesFromMachineResponseMetadata metadata = 1 [json_name = "metadata"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_metadata(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.service.shell.v1.FileData file_data = 2 [json_name = "fileData"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_file_data(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 2, 2, 0, 2> CopyFilesFromMachineResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_CopyFilesFromMachineResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.service.shell.v1.CopyFilesFromMachineResponseMetadata metadata = 1 [json_name = "metadata"]; - {PROTOBUF_FIELD_OFFSET(CopyFilesFromMachineResponse, _impl_.response_.metadata_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .viam.service.shell.v1.FileData file_data = 2 [json_name = "fileData"]; - {PROTOBUF_FIELD_OFFSET(CopyFilesFromMachineResponse, _impl_.response_.file_data_), _Internal::kOneofCaseOffset + 0, 1, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata>()}, - {::_pbi::TcParser::GetTable<::viam::service::shell::v1::FileData>()}, - }}, {{ - }}, -}; - -::uint8_t* CopyFilesFromMachineResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* CopyFilesFromMachineResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.shell.v1.CopyFilesFromMachineResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - switch (response_case()) { - case kMetadata: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::metadata(this), - _Internal::metadata(this).GetCachedSize(), target, stream); - break; - } - case kFileData: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::file_data(this), - _Internal::file_data(this).GetCachedSize(), target, stream); - break; - } - default: - break; + // .viam.service.shell.v1.CopyFilesFromMachineResponseMetadata metadata = 1 [json_name = "metadata"]; + if (_internal_has_metadata()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::metadata(this), + _Internal::metadata(this).GetCachedSize(), target, stream); } + + // .viam.service.shell.v1.FileData file_data = 2 [json_name = "fileData"]; + if (_internal_has_file_data()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::file_data(this), + _Internal::file_data(this).GetCachedSize(), target, stream); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.shell.v1.CopyFilesFromMachineResponse) return target; } -::size_t CopyFilesFromMachineResponse::ByteSizeLong() const { +size_t CopyFilesFromMachineResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.shell.v1.CopyFilesFromMachineResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; switch (response_case()) { // .viam.service.shell.v1.CopyFilesFromMachineResponseMetadata metadata = 1 [json_name = "metadata"]; case kMetadata: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.response_.metadata_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *response_.metadata_); break; } // .viam.service.shell.v1.FileData file_data = 2 [json_name = "fileData"]; case kFileData: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.response_.file_data_); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *response_.file_data_); break; } case RESPONSE_NOT_SET: { break; } } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData CopyFilesFromMachineResponse::_class_data_ = { - CopyFilesFromMachineResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CopyFilesFromMachineResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CopyFilesFromMachineResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* CopyFilesFromMachineResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CopyFilesFromMachineResponse::GetClassData() const { return &_class_data_; } + +void CopyFilesFromMachineResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void CopyFilesFromMachineResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.shell.v1.CopyFilesFromMachineResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void CopyFilesFromMachineResponse::MergeFrom(const CopyFilesFromMachineResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.shell.v1.CopyFilesFromMachineResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; switch (from.response_case()) { case kMetadata: { - _this->_internal_mutable_metadata()->::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata::MergeFrom( - from._internal_metadata()); + _internal_mutable_metadata()->::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata::MergeFrom(from._internal_metadata()); break; } case kFileData: { - _this->_internal_mutable_file_data()->::viam::service::shell::v1::FileData::MergeFrom( - from._internal_file_data()); + _internal_mutable_file_data()->::viam::service::shell::v1::FileData::MergeFrom(from._internal_file_data()); break; } case RESPONSE_NOT_SET: { break; } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CopyFilesFromMachineResponse::CopyFrom(const CopyFilesFromMachineResponse& from) { @@ -3299,33 +3238,70 @@ void CopyFilesFromMachineResponse::CopyFrom(const CopyFilesFromMachineResponse& MergeFrom(from); } -PROTOBUF_NOINLINE bool CopyFilesFromMachineResponse::IsInitialized() const { +bool CopyFilesFromMachineResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* CopyFilesFromMachineResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void CopyFilesFromMachineResponse::InternalSwap(CopyFilesFromMachineResponse* PROTOBUF_RESTRICT other) { +void CopyFilesFromMachineResponse::InternalSwap(CopyFilesFromMachineResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.response_, other->_impl_.response_); - swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); + swap(response_, other->response_); + swap(_oneof_case_[0], other->_oneof_case_[0]); } -::google::protobuf::Metadata CopyFilesFromMachineResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata CopyFilesFromMachineResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fshell_2fv1_2fshell_2eproto_getter, &descriptor_table_service_2fshell_2fv1_2fshell_2eproto_once, file_level_metadata_service_2fshell_2fv1_2fshell_2eproto[9]); } + // @@protoc_insertion_point(namespace_scope) } // namespace v1 } // namespace shell } // namespace service } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::service::shell::v1::ShellRequest* +Arena::CreateMaybeMessage< ::viam::service::shell::v1::ShellRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::shell::v1::ShellRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::shell::v1::ShellResponse* +Arena::CreateMaybeMessage< ::viam::service::shell::v1::ShellResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::shell::v1::ShellResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::shell::v1::FileData* +Arena::CreateMaybeMessage< ::viam::service::shell::v1::FileData >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::shell::v1::FileData >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata* +Arena::CreateMaybeMessage< ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::shell::v1::CopyFilesToMachineRequest* +Arena::CreateMaybeMessage< ::viam::service::shell::v1::CopyFilesToMachineRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::shell::v1::CopyFilesToMachineRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::shell::v1::CopyFilesToMachineResponse* +Arena::CreateMaybeMessage< ::viam::service::shell::v1::CopyFilesToMachineResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::shell::v1::CopyFilesToMachineResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata* +Arena::CreateMaybeMessage< ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::shell::v1::CopyFilesFromMachineRequest* +Arena::CreateMaybeMessage< ::viam::service::shell::v1::CopyFilesFromMachineRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::shell::v1::CopyFilesFromMachineRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata* +Arena::CreateMaybeMessage< ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::shell::v1::CopyFilesFromMachineResponse* +Arena::CreateMaybeMessage< ::viam::service::shell::v1::CopyFilesFromMachineResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::shell::v1::CopyFilesFromMachineResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/service/shell/v1/shell.pb.h b/src/viam/api/service/shell/v1/shell.pb.h index 9f12eb0d4..a8b01d1e9 100644 --- a/src/viam/api/service/shell/v1/shell.pb.h +++ b/src/viam/api/service/shell/v1/shell.pb.h @@ -1,65 +1,54 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: service/shell/v1/shell.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_service_2fshell_2fv1_2fshell_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_service_2fshell_2fv1_2fshell_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_service_2fshell_2fv1_2fshell_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_service_2fshell_2fv1_2fshell_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/generated_enum_reflection.h" -#include "google/protobuf/unknown_field_set.h" + +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include #include "common/v1/common.pb.h" #include "google/api/annotations.pb.h" -#include "google/protobuf/struct.pb.h" -#include "google/protobuf/timestamp.pb.h" +#include +#include // @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - +#include #define PROTOBUF_INTERNAL_EXPORT_service_2fshell_2fv1_2fshell_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_service_2fshell_2fv1_2fshell_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_service_2fshell_2fv1_2fshell_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_service_2fshell_2fv1_2fshell_2eproto; namespace viam { namespace service { namespace shell { @@ -98,80 +87,74 @@ extern ShellResponseDefaultTypeInternal _ShellResponse_default_instance_; } // namespace shell } // namespace service } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::service::shell::v1::CopyFilesFromMachineRequest* Arena::CreateMaybeMessage<::viam::service::shell::v1::CopyFilesFromMachineRequest>(Arena*); +template<> ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata* Arena::CreateMaybeMessage<::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata>(Arena*); +template<> ::viam::service::shell::v1::CopyFilesFromMachineResponse* Arena::CreateMaybeMessage<::viam::service::shell::v1::CopyFilesFromMachineResponse>(Arena*); +template<> ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata* Arena::CreateMaybeMessage<::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata>(Arena*); +template<> ::viam::service::shell::v1::CopyFilesToMachineRequest* Arena::CreateMaybeMessage<::viam::service::shell::v1::CopyFilesToMachineRequest>(Arena*); +template<> ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata* Arena::CreateMaybeMessage<::viam::service::shell::v1::CopyFilesToMachineRequestMetadata>(Arena*); +template<> ::viam::service::shell::v1::CopyFilesToMachineResponse* Arena::CreateMaybeMessage<::viam::service::shell::v1::CopyFilesToMachineResponse>(Arena*); +template<> ::viam::service::shell::v1::FileData* Arena::CreateMaybeMessage<::viam::service::shell::v1::FileData>(Arena*); +template<> ::viam::service::shell::v1::ShellRequest* Arena::CreateMaybeMessage<::viam::service::shell::v1::ShellRequest>(Arena*); +template<> ::viam::service::shell::v1::ShellResponse* Arena::CreateMaybeMessage<::viam::service::shell::v1::ShellResponse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace viam { namespace service { namespace shell { namespace v1 { + enum CopyFilesSourceType : int { COPY_FILES_SOURCE_TYPE_UNSPECIFIED = 0, COPY_FILES_SOURCE_TYPE_SINGLE_FILE = 1, COPY_FILES_SOURCE_TYPE_SINGLE_DIRECTORY = 2, COPY_FILES_SOURCE_TYPE_MULTIPLE_FILES = 3, - CopyFilesSourceType_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - CopyFilesSourceType_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), + CopyFilesSourceType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + CopyFilesSourceType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() }; - bool CopyFilesSourceType_IsValid(int value); -extern const uint32_t CopyFilesSourceType_internal_data_[]; -constexpr CopyFilesSourceType CopyFilesSourceType_MIN = static_cast(0); -constexpr CopyFilesSourceType CopyFilesSourceType_MAX = static_cast(3); -constexpr int CopyFilesSourceType_ARRAYSIZE = 3 + 1; -const ::google::protobuf::EnumDescriptor* -CopyFilesSourceType_descriptor(); -template -const std::string& CopyFilesSourceType_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to CopyFilesSourceType_Name()."); - return CopyFilesSourceType_Name(static_cast(value)); -} -template <> -inline const std::string& CopyFilesSourceType_Name(CopyFilesSourceType value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool CopyFilesSourceType_Parse(absl::string_view name, CopyFilesSourceType* value) { - return ::google::protobuf::internal::ParseNamedEnum( - CopyFilesSourceType_descriptor(), name, value); +constexpr CopyFilesSourceType CopyFilesSourceType_MIN = COPY_FILES_SOURCE_TYPE_UNSPECIFIED; +constexpr CopyFilesSourceType CopyFilesSourceType_MAX = COPY_FILES_SOURCE_TYPE_MULTIPLE_FILES; +constexpr int CopyFilesSourceType_ARRAYSIZE = CopyFilesSourceType_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* CopyFilesSourceType_descriptor(); +template +inline const std::string& CopyFilesSourceType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function CopyFilesSourceType_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + CopyFilesSourceType_descriptor(), enum_t_value); +} +inline bool CopyFilesSourceType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, CopyFilesSourceType* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + CopyFilesSourceType_descriptor(), name, value); } - // =================================================================== - -// ------------------------------------------------------------------- - -class ShellResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.shell.v1.ShellResponse) */ { +class ShellRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.shell.v1.ShellRequest) */ { public: - inline ShellResponse() : ShellResponse(nullptr) {} - ~ShellResponse() override; - template - explicit PROTOBUF_CONSTEXPR ShellResponse(::google::protobuf::internal::ConstantInitialized); + inline ShellRequest() : ShellRequest(nullptr) {} + ~ShellRequest() override; + explicit PROTOBUF_CONSTEXPR ShellRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ShellResponse(const ShellResponse& from) - : ShellResponse(nullptr, from) {} - ShellResponse(ShellResponse&& from) noexcept - : ShellResponse() { + ShellRequest(const ShellRequest& from); + ShellRequest(ShellRequest&& from) noexcept + : ShellRequest() { *this = ::std::move(from); } - inline ShellResponse& operator=(const ShellResponse& from) { + inline ShellRequest& operator=(const ShellRequest& from) { CopyFrom(from); return *this; } - inline ShellResponse& operator=(ShellResponse&& from) noexcept { + inline ShellRequest& operator=(ShellRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -181,208 +164,181 @@ class ShellResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ShellResponse& default_instance() { + static const ShellRequest& default_instance() { return *internal_default_instance(); } - static inline const ShellResponse* internal_default_instance() { - return reinterpret_cast( - &_ShellResponse_default_instance_); + static inline const ShellRequest* internal_default_instance() { + return reinterpret_cast( + &_ShellRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 1; + 0; - friend void swap(ShellResponse& a, ShellResponse& b) { + friend void swap(ShellRequest& a, ShellRequest& b) { a.Swap(&b); } - inline void Swap(ShellResponse* other) { + inline void Swap(ShellRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ShellResponse* other) { + void UnsafeArenaSwap(ShellRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ShellResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ShellResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ShellResponse& from) { - ShellResponse::MergeImpl(*this, from); + ShellRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ShellRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ShellRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ShellResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(ShellRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.shell.v1.ShellResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.shell.v1.ShellRequest"; } protected: - explicit ShellResponse(::google::protobuf::Arena* arena); - ShellResponse(::google::protobuf::Arena* arena, const ShellResponse& from); + explicit ShellRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kDataOutFieldNumber = 1, - kDataErrFieldNumber = 2, - kEofFieldNumber = 3, + kNameFieldNumber = 1, + kDataInFieldNumber = 2, + kExtraFieldNumber = 99, }; - // string data_out = 1 [json_name = "dataOut"]; - void clear_data_out() ; - const std::string& data_out() const; - template - void set_data_out(Arg_&& arg, Args_... args); - std::string* mutable_data_out(); - PROTOBUF_NODISCARD std::string* release_data_out(); - void set_allocated_data_out(std::string* value); - + // 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_data_out() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_data_out( - const std::string& value); - std::string* _internal_mutable_data_out(); - + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); public: - // string data_err = 2 [json_name = "dataErr"]; - void clear_data_err() ; - const std::string& data_err() const; - template - void set_data_err(Arg_&& arg, Args_... args); - std::string* mutable_data_err(); - PROTOBUF_NODISCARD std::string* release_data_err(); - void set_allocated_data_err(std::string* value); + // string data_in = 2 [json_name = "dataIn"]; + void clear_data_in(); + const std::string& data_in() const; + template + void set_data_in(ArgT0&& arg0, ArgT... args); + std::string* mutable_data_in(); + PROTOBUF_NODISCARD std::string* release_data_in(); + void set_allocated_data_in(std::string* data_in); private: - const std::string& _internal_data_err() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_data_err( - const std::string& value); - std::string* _internal_mutable_data_err(); - + const std::string& _internal_data_in() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_data_in(const std::string& value); + std::string* _internal_mutable_data_in(); public: - // bool eof = 3 [json_name = "eof"]; - void clear_eof() ; - bool eof() const; - void set_eof(bool value); + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + bool has_extra() const; private: - bool _internal_eof() const; - void _internal_set_eof(bool value); - + bool _internal_has_extra() const; public: - // @@protoc_insertion_point(class_scope:viam.service.shell.v1.ShellResponse) + 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.service.shell.v1.ShellRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 0, - 60, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr data_out_; - ::google::protobuf::internal::ArenaStringPtr data_err_; - bool eof_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr data_in_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fshell_2fv1_2fshell_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class CopyFilesToMachineResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.shell.v1.CopyFilesToMachineResponse) */ { +class ShellResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.shell.v1.ShellResponse) */ { public: - inline CopyFilesToMachineResponse() : CopyFilesToMachineResponse(nullptr) {} - ~CopyFilesToMachineResponse() override; - template - explicit PROTOBUF_CONSTEXPR CopyFilesToMachineResponse(::google::protobuf::internal::ConstantInitialized); + inline ShellResponse() : ShellResponse(nullptr) {} + ~ShellResponse() override; + explicit PROTOBUF_CONSTEXPR ShellResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline CopyFilesToMachineResponse(const CopyFilesToMachineResponse& from) - : CopyFilesToMachineResponse(nullptr, from) {} - CopyFilesToMachineResponse(CopyFilesToMachineResponse&& from) noexcept - : CopyFilesToMachineResponse() { + ShellResponse(const ShellResponse& from); + ShellResponse(ShellResponse&& from) noexcept + : ShellResponse() { *this = ::std::move(from); } - inline CopyFilesToMachineResponse& operator=(const CopyFilesToMachineResponse& from) { + inline ShellResponse& operator=(const ShellResponse& from) { CopyFrom(from); return *this; } - inline CopyFilesToMachineResponse& operator=(CopyFilesToMachineResponse&& from) noexcept { + inline ShellResponse& operator=(ShellResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -392,172 +348,172 @@ class CopyFilesToMachineResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CopyFilesToMachineResponse& default_instance() { + static const ShellResponse& default_instance() { return *internal_default_instance(); } - static inline const CopyFilesToMachineResponse* internal_default_instance() { - return reinterpret_cast( - &_CopyFilesToMachineResponse_default_instance_); + static inline const ShellResponse* internal_default_instance() { + return reinterpret_cast( + &_ShellResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 5; + 1; - friend void swap(CopyFilesToMachineResponse& a, CopyFilesToMachineResponse& b) { + friend void swap(ShellResponse& a, ShellResponse& b) { a.Swap(&b); } - inline void Swap(CopyFilesToMachineResponse* other) { + inline void Swap(ShellResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CopyFilesToMachineResponse* other) { + void UnsafeArenaSwap(ShellResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CopyFilesToMachineResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const CopyFilesToMachineResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CopyFilesToMachineResponse& from) { - CopyFilesToMachineResponse::MergeImpl(*this, from); + ShellResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ShellResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ShellResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(CopyFilesToMachineResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(ShellResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.shell.v1.CopyFilesToMachineResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.shell.v1.ShellResponse"; } protected: - explicit CopyFilesToMachineResponse(::google::protobuf::Arena* arena); - CopyFilesToMachineResponse(::google::protobuf::Arena* arena, const CopyFilesToMachineResponse& from); + explicit ShellResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kAckLastFileFieldNumber = 1, + kDataOutFieldNumber = 1, + kDataErrFieldNumber = 2, + kEofFieldNumber = 3, }; - // bool ack_last_file = 1 [json_name = "ackLastFile"]; - void clear_ack_last_file() ; - bool ack_last_file() const; - void set_ack_last_file(bool value); + // string data_out = 1 [json_name = "dataOut"]; + void clear_data_out(); + const std::string& data_out() const; + template + void set_data_out(ArgT0&& arg0, ArgT... args); + std::string* mutable_data_out(); + PROTOBUF_NODISCARD std::string* release_data_out(); + void set_allocated_data_out(std::string* data_out); + private: + const std::string& _internal_data_out() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_data_out(const std::string& value); + std::string* _internal_mutable_data_out(); + public: + // string data_err = 2 [json_name = "dataErr"]; + void clear_data_err(); + const std::string& data_err() const; + template + void set_data_err(ArgT0&& arg0, ArgT... args); + std::string* mutable_data_err(); + PROTOBUF_NODISCARD std::string* release_data_err(); + void set_allocated_data_err(std::string* data_err); private: - bool _internal_ack_last_file() const; - void _internal_set_ack_last_file(bool value); + const std::string& _internal_data_err() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_data_err(const std::string& value); + std::string* _internal_mutable_data_err(); + public: + // bool eof = 3 [json_name = "eof"]; + void clear_eof(); + bool eof() const; + void set_eof(bool value); + private: + bool _internal_eof() const; + void _internal_set_eof(bool value); public: - // @@protoc_insertion_point(class_scope:viam.service.shell.v1.CopyFilesToMachineResponse) + + // @@protoc_insertion_point(class_scope:viam.service.shell.v1.ShellResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - bool ack_last_file_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr data_out_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr data_err_; + bool eof_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fshell_2fv1_2fshell_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class CopyFilesFromMachineResponseMetadata final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.shell.v1.CopyFilesFromMachineResponseMetadata) */ { +class FileData final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.shell.v1.FileData) */ { public: - inline CopyFilesFromMachineResponseMetadata() : CopyFilesFromMachineResponseMetadata(nullptr) {} - ~CopyFilesFromMachineResponseMetadata() override; - template - explicit PROTOBUF_CONSTEXPR CopyFilesFromMachineResponseMetadata(::google::protobuf::internal::ConstantInitialized); + inline FileData() : FileData(nullptr) {} + ~FileData() override; + explicit PROTOBUF_CONSTEXPR FileData(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline CopyFilesFromMachineResponseMetadata(const CopyFilesFromMachineResponseMetadata& from) - : CopyFilesFromMachineResponseMetadata(nullptr, from) {} - CopyFilesFromMachineResponseMetadata(CopyFilesFromMachineResponseMetadata&& from) noexcept - : CopyFilesFromMachineResponseMetadata() { + FileData(const FileData& from); + FileData(FileData&& from) noexcept + : FileData() { *this = ::std::move(from); } - inline CopyFilesFromMachineResponseMetadata& operator=(const CopyFilesFromMachineResponseMetadata& from) { + inline FileData& operator=(const FileData& from) { CopyFrom(from); return *this; } - inline CopyFilesFromMachineResponseMetadata& operator=(CopyFilesFromMachineResponseMetadata&& from) noexcept { + inline FileData& operator=(FileData&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -567,172 +523,230 @@ class CopyFilesFromMachineResponseMetadata final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CopyFilesFromMachineResponseMetadata& default_instance() { + static const FileData& default_instance() { return *internal_default_instance(); } - static inline const CopyFilesFromMachineResponseMetadata* internal_default_instance() { - return reinterpret_cast( - &_CopyFilesFromMachineResponseMetadata_default_instance_); + static inline const FileData* internal_default_instance() { + return reinterpret_cast( + &_FileData_default_instance_); } static constexpr int kIndexInFileMessages = - 8; + 2; - friend void swap(CopyFilesFromMachineResponseMetadata& a, CopyFilesFromMachineResponseMetadata& b) { + friend void swap(FileData& a, FileData& b) { a.Swap(&b); } - inline void Swap(CopyFilesFromMachineResponseMetadata* other) { + inline void Swap(FileData* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CopyFilesFromMachineResponseMetadata* other) { + void UnsafeArenaSwap(FileData* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CopyFilesFromMachineResponseMetadata* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const CopyFilesFromMachineResponseMetadata& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CopyFilesFromMachineResponseMetadata& from) { - CopyFilesFromMachineResponseMetadata::MergeImpl(*this, from); + FileData* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const FileData& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const FileData& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(CopyFilesFromMachineResponseMetadata* other); + void SetCachedSize(int size) const final; + void InternalSwap(FileData* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.shell.v1.CopyFilesFromMachineResponseMetadata"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.shell.v1.FileData"; } protected: - explicit CopyFilesFromMachineResponseMetadata(::google::protobuf::Arena* arena); - CopyFilesFromMachineResponseMetadata(::google::protobuf::Arena* arena, const CopyFilesFromMachineResponseMetadata& from); + explicit FileData(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kSourceTypeFieldNumber = 1, + kNameFieldNumber = 1, + kDataFieldNumber = 4, + kModTimeFieldNumber = 6, + kSizeFieldNumber = 2, + kIsDirFieldNumber = 3, + kEofFieldNumber = 5, + kModeFieldNumber = 7, }; - // .viam.service.shell.v1.CopyFilesSourceType source_type = 1 [json_name = "sourceType"]; - void clear_source_type() ; - ::viam::service::shell::v1::CopyFilesSourceType source_type() const; - void set_source_type(::viam::service::shell::v1::CopyFilesSourceType value); - + // 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: - ::viam::service::shell::v1::CopyFilesSourceType _internal_source_type() const; - void _internal_set_source_type(::viam::service::shell::v1::CopyFilesSourceType value); + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + // bytes data = 4 [json_name = "data"]; + void clear_data(); + const std::string& data() const; + template + void set_data(ArgT0&& arg0, ArgT... args); + std::string* mutable_data(); + PROTOBUF_NODISCARD std::string* release_data(); + void set_allocated_data(std::string* data); + private: + const std::string& _internal_data() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_data(const std::string& value); + std::string* _internal_mutable_data(); public: - // @@protoc_insertion_point(class_scope:viam.service.shell.v1.CopyFilesFromMachineResponseMetadata) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - int source_type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + // optional .google.protobuf.Timestamp mod_time = 6 [json_name = "modTime"]; + bool has_mod_time() const; + private: + bool _internal_has_mod_time() const; + public: + void clear_mod_time(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& mod_time() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_mod_time(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_mod_time(); + void set_allocated_mod_time(::PROTOBUF_NAMESPACE_ID::Timestamp* mod_time); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_mod_time() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_mod_time(); + public: + void unsafe_arena_set_allocated_mod_time( + ::PROTOBUF_NAMESPACE_ID::Timestamp* mod_time); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_mod_time(); + + // int64 size = 2 [json_name = "size"]; + void clear_size(); + int64_t size() const; + void set_size(int64_t value); + private: + int64_t _internal_size() const; + void _internal_set_size(int64_t value); + public: + + // bool is_dir = 3 [json_name = "isDir"]; + void clear_is_dir(); + bool is_dir() const; + void set_is_dir(bool value); + private: + bool _internal_is_dir() const; + void _internal_set_is_dir(bool value); + public: + + // bool eof = 5 [json_name = "eof"]; + void clear_eof(); + bool eof() const; + void set_eof(bool value); + private: + bool _internal_eof() const; + void _internal_set_eof(bool value); + public: + + // optional uint32 mode = 7 [json_name = "mode"]; + bool has_mode() const; + private: + bool _internal_has_mode() const; + public: + void clear_mode(); + uint32_t mode() const; + void set_mode(uint32_t value); + private: + uint32_t _internal_mode() const; + void _internal_set_mode(uint32_t value); + public: + + // @@protoc_insertion_point(class_scope:viam.service.shell.v1.FileData) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr data_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* mod_time_; + int64_t size_; + bool is_dir_; + bool eof_; + uint32_t mode_; friend struct ::TableStruct_service_2fshell_2fv1_2fshell_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ShellRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.shell.v1.ShellRequest) */ { +class CopyFilesToMachineRequestMetadata final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.shell.v1.CopyFilesToMachineRequestMetadata) */ { public: - inline ShellRequest() : ShellRequest(nullptr) {} - ~ShellRequest() override; - template - explicit PROTOBUF_CONSTEXPR ShellRequest(::google::protobuf::internal::ConstantInitialized); + inline CopyFilesToMachineRequestMetadata() : CopyFilesToMachineRequestMetadata(nullptr) {} + ~CopyFilesToMachineRequestMetadata() override; + explicit PROTOBUF_CONSTEXPR CopyFilesToMachineRequestMetadata(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline ShellRequest(const ShellRequest& from) - : ShellRequest(nullptr, from) {} - ShellRequest(ShellRequest&& from) noexcept - : ShellRequest() { + CopyFilesToMachineRequestMetadata(const CopyFilesToMachineRequestMetadata& from); + CopyFilesToMachineRequestMetadata(CopyFilesToMachineRequestMetadata&& from) noexcept + : CopyFilesToMachineRequestMetadata() { *this = ::std::move(from); } - inline ShellRequest& operator=(const ShellRequest& from) { + inline CopyFilesToMachineRequestMetadata& operator=(const CopyFilesToMachineRequestMetadata& from) { CopyFrom(from); return *this; } - inline ShellRequest& operator=(ShellRequest&& from) noexcept { + inline CopyFilesToMachineRequestMetadata& operator=(CopyFilesToMachineRequestMetadata&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -742,99 +756,88 @@ class ShellRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ShellRequest& default_instance() { + static const CopyFilesToMachineRequestMetadata& default_instance() { return *internal_default_instance(); } - static inline const ShellRequest* internal_default_instance() { - return reinterpret_cast( - &_ShellRequest_default_instance_); + static inline const CopyFilesToMachineRequestMetadata* internal_default_instance() { + return reinterpret_cast( + &_CopyFilesToMachineRequestMetadata_default_instance_); } static constexpr int kIndexInFileMessages = - 0; + 3; - friend void swap(ShellRequest& a, ShellRequest& b) { + friend void swap(CopyFilesToMachineRequestMetadata& a, CopyFilesToMachineRequestMetadata& b) { a.Swap(&b); } - inline void Swap(ShellRequest* other) { + inline void Swap(CopyFilesToMachineRequestMetadata* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ShellRequest* other) { + void UnsafeArenaSwap(CopyFilesToMachineRequestMetadata* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ShellRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ShellRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ShellRequest& from) { - ShellRequest::MergeImpl(*this, from); + CopyFilesToMachineRequestMetadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CopyFilesToMachineRequestMetadata& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CopyFilesToMachineRequestMetadata& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(ShellRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(CopyFilesToMachineRequestMetadata* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.shell.v1.ShellRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.shell.v1.CopyFilesToMachineRequestMetadata"; } protected: - explicit ShellRequest(::google::protobuf::Arena* arena); - ShellRequest(::google::protobuf::Arena* arena, const ShellRequest& from); + explicit CopyFilesToMachineRequestMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -842,114 +845,114 @@ class ShellRequest final : enum : int { kNameFieldNumber = 1, - kDataInFieldNumber = 2, + kDestinationFieldNumber = 3, kExtraFieldNumber = 99, + kSourceTypeFieldNumber = 2, + kPreserveFieldNumber = 4, }; // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); std::string* _internal_mutable_name(); - public: - // string data_in = 2 [json_name = "dataIn"]; - void clear_data_in() ; - const std::string& data_in() const; - template - void set_data_in(Arg_&& arg, Args_... args); - std::string* mutable_data_in(); - PROTOBUF_NODISCARD std::string* release_data_in(); - void set_allocated_data_in(std::string* value); + // string destination = 3 [json_name = "destination"]; + void clear_destination(); + const std::string& destination() const; + template + void set_destination(ArgT0&& arg0, ArgT... args); + std::string* mutable_destination(); + PROTOBUF_NODISCARD std::string* release_destination(); + void set_allocated_destination(std::string* destination); private: - const std::string& _internal_data_in() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_data_in( - const std::string& value); - std::string* _internal_mutable_data_in(); - + const std::string& _internal_destination() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_destination(const std::string& value); + std::string* _internal_mutable_destination(); public: + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); + 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(); + // .viam.service.shell.v1.CopyFilesSourceType source_type = 2 [json_name = "sourceType"]; + void clear_source_type(); + ::viam::service::shell::v1::CopyFilesSourceType source_type() const; + void set_source_type(::viam::service::shell::v1::CopyFilesSourceType value); private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); + ::viam::service::shell::v1::CopyFilesSourceType _internal_source_type() const; + void _internal_set_source_type(::viam::service::shell::v1::CopyFilesSourceType value); + public: + // bool preserve = 4 [json_name = "preserve"]; + void clear_preserve(); + bool preserve() const; + void set_preserve(bool value); + private: + bool _internal_preserve() const; + void _internal_set_preserve(bool value); public: - // @@protoc_insertion_point(class_scope:viam.service.shell.v1.ShellRequest) + + // @@protoc_insertion_point(class_scope:viam.service.shell.v1.CopyFilesToMachineRequestMetadata) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 1, - 54, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr data_in_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr destination_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + int source_type_; + bool preserve_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fshell_2fv1_2fshell_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class FileData final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.shell.v1.FileData) */ { +class CopyFilesToMachineRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.shell.v1.CopyFilesToMachineRequest) */ { public: - inline FileData() : FileData(nullptr) {} - ~FileData() override; - template - explicit PROTOBUF_CONSTEXPR FileData(::google::protobuf::internal::ConstantInitialized); + inline CopyFilesToMachineRequest() : CopyFilesToMachineRequest(nullptr) {} + ~CopyFilesToMachineRequest() override; + explicit PROTOBUF_CONSTEXPR CopyFilesToMachineRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline FileData(const FileData& from) - : FileData(nullptr, from) {} - FileData(FileData&& from) noexcept - : FileData() { + CopyFilesToMachineRequest(const CopyFilesToMachineRequest& from); + CopyFilesToMachineRequest(CopyFilesToMachineRequest&& from) noexcept + : CopyFilesToMachineRequest() { *this = ::std::move(from); } - inline FileData& operator=(const FileData& from) { + inline CopyFilesToMachineRequest& operator=(const CopyFilesToMachineRequest& from) { CopyFrom(from); return *this; } - inline FileData& operator=(FileData&& from) noexcept { + inline CopyFilesToMachineRequest& operator=(CopyFilesToMachineRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -959,263 +962,188 @@ class FileData final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const FileData& default_instance() { + static const CopyFilesToMachineRequest& default_instance() { return *internal_default_instance(); } - static inline const FileData* internal_default_instance() { - return reinterpret_cast( - &_FileData_default_instance_); + enum RequestCase { + kMetadata = 1, + kFileData = 2, + REQUEST_NOT_SET = 0, + }; + + static inline const CopyFilesToMachineRequest* internal_default_instance() { + return reinterpret_cast( + &_CopyFilesToMachineRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 2; + 4; - friend void swap(FileData& a, FileData& b) { + friend void swap(CopyFilesToMachineRequest& a, CopyFilesToMachineRequest& b) { a.Swap(&b); } - inline void Swap(FileData* other) { + inline void Swap(CopyFilesToMachineRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(FileData* other) { + void UnsafeArenaSwap(CopyFilesToMachineRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - FileData* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const FileData& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const FileData& from) { - FileData::MergeImpl(*this, from); + CopyFilesToMachineRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CopyFilesToMachineRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CopyFilesToMachineRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(FileData* other); + void SetCachedSize(int size) const final; + void InternalSwap(CopyFilesToMachineRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.shell.v1.FileData"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.shell.v1.CopyFilesToMachineRequest"; } protected: - explicit FileData(::google::protobuf::Arena* arena); - FileData(::google::protobuf::Arena* arena, const FileData& from); + explicit CopyFilesToMachineRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kNameFieldNumber = 1, - kDataFieldNumber = 4, - kModTimeFieldNumber = 6, - kSizeFieldNumber = 2, - kIsDirFieldNumber = 3, - kEofFieldNumber = 5, - kModeFieldNumber = 7, + kMetadataFieldNumber = 1, + kFileDataFieldNumber = 2, }; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - - public: - // bytes data = 4 [json_name = "data"]; - void clear_data() ; - const std::string& data() const; - template - void set_data(Arg_&& arg, Args_... args); - std::string* mutable_data(); - PROTOBUF_NODISCARD std::string* release_data(); - void set_allocated_data(std::string* value); - - private: - const std::string& _internal_data() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_data( - const std::string& value); - std::string* _internal_mutable_data(); - - public: - // optional .google.protobuf.Timestamp mod_time = 6 [json_name = "modTime"]; - bool has_mod_time() const; - void clear_mod_time() ; - const ::google::protobuf::Timestamp& mod_time() const; - PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_mod_time(); - ::google::protobuf::Timestamp* mutable_mod_time(); - void set_allocated_mod_time(::google::protobuf::Timestamp* value); - void unsafe_arena_set_allocated_mod_time(::google::protobuf::Timestamp* value); - ::google::protobuf::Timestamp* unsafe_arena_release_mod_time(); - + // .viam.service.shell.v1.CopyFilesToMachineRequestMetadata metadata = 1 [json_name = "metadata"]; + bool has_metadata() const; private: - const ::google::protobuf::Timestamp& _internal_mod_time() const; - ::google::protobuf::Timestamp* _internal_mutable_mod_time(); - + bool _internal_has_metadata() const; public: - // int64 size = 2 [json_name = "size"]; - void clear_size() ; - ::int64_t size() const; - void set_size(::int64_t value); - + void clear_metadata(); + const ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata& metadata() const; + PROTOBUF_NODISCARD ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata* release_metadata(); + ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata* mutable_metadata(); + void set_allocated_metadata(::viam::service::shell::v1::CopyFilesToMachineRequestMetadata* metadata); private: - ::int64_t _internal_size() const; - void _internal_set_size(::int64_t value); - + const ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata& _internal_metadata() const; + ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata* _internal_mutable_metadata(); public: - // bool is_dir = 3 [json_name = "isDir"]; - void clear_is_dir() ; - bool is_dir() const; - void set_is_dir(bool value); + void unsafe_arena_set_allocated_metadata( + ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata* metadata); + ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata* unsafe_arena_release_metadata(); + // .viam.service.shell.v1.FileData file_data = 2 [json_name = "fileData"]; + bool has_file_data() const; private: - bool _internal_is_dir() const; - void _internal_set_is_dir(bool value); - + bool _internal_has_file_data() const; public: - // bool eof = 5 [json_name = "eof"]; - void clear_eof() ; - bool eof() const; - void set_eof(bool value); - + void clear_file_data(); + const ::viam::service::shell::v1::FileData& file_data() const; + PROTOBUF_NODISCARD ::viam::service::shell::v1::FileData* release_file_data(); + ::viam::service::shell::v1::FileData* mutable_file_data(); + void set_allocated_file_data(::viam::service::shell::v1::FileData* file_data); private: - bool _internal_eof() const; - void _internal_set_eof(bool value); - + const ::viam::service::shell::v1::FileData& _internal_file_data() const; + ::viam::service::shell::v1::FileData* _internal_mutable_file_data(); public: - // optional uint32 mode = 7 [json_name = "mode"]; - bool has_mode() const; - void clear_mode() ; - ::uint32_t mode() const; - void set_mode(::uint32_t value); - - private: - ::uint32_t _internal_mode() const; - void _internal_set_mode(::uint32_t value); + void unsafe_arena_set_allocated_file_data( + ::viam::service::shell::v1::FileData* file_data); + ::viam::service::shell::v1::FileData* unsafe_arena_release_file_data(); - public: - // @@protoc_insertion_point(class_scope:viam.service.shell.v1.FileData) + void clear_request(); + RequestCase request_case() const; + // @@protoc_insertion_point(class_scope:viam.service.shell.v1.CopyFilesToMachineRequest) private: class _Internal; + void set_has_metadata(); + void set_has_file_data(); + + inline bool has_request() const; + inline void clear_has_request(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + union RequestUnion { + constexpr RequestUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata* metadata_; + ::viam::service::shell::v1::FileData* file_data_; + } request_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 7, 1, - 43, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr data_; - ::google::protobuf::Timestamp* mod_time_; - ::int64_t size_; - bool is_dir_; - bool eof_; - ::uint32_t mode_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; friend struct ::TableStruct_service_2fshell_2fv1_2fshell_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class CopyFilesToMachineRequestMetadata final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.shell.v1.CopyFilesToMachineRequestMetadata) */ { +class CopyFilesToMachineResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.shell.v1.CopyFilesToMachineResponse) */ { public: - inline CopyFilesToMachineRequestMetadata() : CopyFilesToMachineRequestMetadata(nullptr) {} - ~CopyFilesToMachineRequestMetadata() override; - template - explicit PROTOBUF_CONSTEXPR CopyFilesToMachineRequestMetadata(::google::protobuf::internal::ConstantInitialized); + inline CopyFilesToMachineResponse() : CopyFilesToMachineResponse(nullptr) {} + ~CopyFilesToMachineResponse() override; + explicit PROTOBUF_CONSTEXPR CopyFilesToMachineResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline CopyFilesToMachineRequestMetadata(const CopyFilesToMachineRequestMetadata& from) - : CopyFilesToMachineRequestMetadata(nullptr, from) {} - CopyFilesToMachineRequestMetadata(CopyFilesToMachineRequestMetadata&& from) noexcept - : CopyFilesToMachineRequestMetadata() { + CopyFilesToMachineResponse(const CopyFilesToMachineResponse& from); + CopyFilesToMachineResponse(CopyFilesToMachineResponse&& from) noexcept + : CopyFilesToMachineResponse() { *this = ::std::move(from); } - inline CopyFilesToMachineRequestMetadata& operator=(const CopyFilesToMachineRequestMetadata& from) { + inline CopyFilesToMachineResponse& operator=(const CopyFilesToMachineResponse& from) { CopyFrom(from); return *this; } - inline CopyFilesToMachineRequestMetadata& operator=(CopyFilesToMachineRequestMetadata&& from) noexcept { + inline CopyFilesToMachineResponse& operator=(CopyFilesToMachineResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1225,224 +1153,126 @@ class CopyFilesToMachineRequestMetadata final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CopyFilesToMachineRequestMetadata& default_instance() { + static const CopyFilesToMachineResponse& default_instance() { return *internal_default_instance(); } - static inline const CopyFilesToMachineRequestMetadata* internal_default_instance() { - return reinterpret_cast( - &_CopyFilesToMachineRequestMetadata_default_instance_); + static inline const CopyFilesToMachineResponse* internal_default_instance() { + return reinterpret_cast( + &_CopyFilesToMachineResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 3; + 5; - friend void swap(CopyFilesToMachineRequestMetadata& a, CopyFilesToMachineRequestMetadata& b) { + friend void swap(CopyFilesToMachineResponse& a, CopyFilesToMachineResponse& b) { a.Swap(&b); } - inline void Swap(CopyFilesToMachineRequestMetadata* other) { + inline void Swap(CopyFilesToMachineResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CopyFilesToMachineRequestMetadata* other) { + void UnsafeArenaSwap(CopyFilesToMachineResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CopyFilesToMachineRequestMetadata* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const CopyFilesToMachineRequestMetadata& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CopyFilesToMachineRequestMetadata& from) { - CopyFilesToMachineRequestMetadata::MergeImpl(*this, from); + CopyFilesToMachineResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CopyFilesToMachineResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CopyFilesToMachineResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(CopyFilesToMachineRequestMetadata* other); + void SetCachedSize(int size) const final; + void InternalSwap(CopyFilesToMachineResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.shell.v1.CopyFilesToMachineRequestMetadata"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.shell.v1.CopyFilesToMachineResponse"; } protected: - explicit CopyFilesToMachineRequestMetadata(::google::protobuf::Arena* arena); - CopyFilesToMachineRequestMetadata(::google::protobuf::Arena* arena, const CopyFilesToMachineRequestMetadata& from); + explicit CopyFilesToMachineResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kNameFieldNumber = 1, - kDestinationFieldNumber = 3, - kExtraFieldNumber = 99, - kSourceTypeFieldNumber = 2, - kPreserveFieldNumber = 4, + kAckLastFileFieldNumber = 1, }; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - - public: - // string destination = 3 [json_name = "destination"]; - void clear_destination() ; - const std::string& destination() const; - template - void set_destination(Arg_&& arg, Args_... args); - std::string* mutable_destination(); - PROTOBUF_NODISCARD std::string* release_destination(); - void set_allocated_destination(std::string* value); - - private: - const std::string& _internal_destination() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_destination( - const std::string& value); - std::string* _internal_mutable_destination(); - - public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - - public: - // .viam.service.shell.v1.CopyFilesSourceType source_type = 2 [json_name = "sourceType"]; - void clear_source_type() ; - ::viam::service::shell::v1::CopyFilesSourceType source_type() const; - void set_source_type(::viam::service::shell::v1::CopyFilesSourceType value); - + // bool ack_last_file = 1 [json_name = "ackLastFile"]; + void clear_ack_last_file(); + bool ack_last_file() const; + void set_ack_last_file(bool value); private: - ::viam::service::shell::v1::CopyFilesSourceType _internal_source_type() const; - void _internal_set_source_type(::viam::service::shell::v1::CopyFilesSourceType value); - + bool _internal_ack_last_file() const; + void _internal_set_ack_last_file(bool value); public: - // bool preserve = 4 [json_name = "preserve"]; - void clear_preserve() ; - bool preserve() const; - void set_preserve(bool value); - - private: - bool _internal_preserve() const; - void _internal_set_preserve(bool value); - public: - // @@protoc_insertion_point(class_scope:viam.service.shell.v1.CopyFilesToMachineRequestMetadata) + // @@protoc_insertion_point(class_scope:viam.service.shell.v1.CopyFilesToMachineResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 5, 1, - 79, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr destination_; - ::google::protobuf::Struct* extra_; - int source_type_; - bool preserve_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + bool ack_last_file_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fshell_2fv1_2fshell_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class CopyFilesFromMachineRequestMetadata final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata) */ { public: inline CopyFilesFromMachineRequestMetadata() : CopyFilesFromMachineRequestMetadata(nullptr) {} ~CopyFilesFromMachineRequestMetadata() override; - template - explicit PROTOBUF_CONSTEXPR CopyFilesFromMachineRequestMetadata(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR CopyFilesFromMachineRequestMetadata(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline CopyFilesFromMachineRequestMetadata(const CopyFilesFromMachineRequestMetadata& from) - : CopyFilesFromMachineRequestMetadata(nullptr, from) {} + CopyFilesFromMachineRequestMetadata(const CopyFilesFromMachineRequestMetadata& from); CopyFilesFromMachineRequestMetadata(CopyFilesFromMachineRequestMetadata&& from) noexcept : CopyFilesFromMachineRequestMetadata() { *this = ::std::move(from); @@ -1454,9 +1284,9 @@ class CopyFilesFromMachineRequestMetadata final : } inline CopyFilesFromMachineRequestMetadata& operator=(CopyFilesFromMachineRequestMetadata&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1466,22 +1296,13 @@ class CopyFilesFromMachineRequestMetadata final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const CopyFilesFromMachineRequestMetadata& default_instance() { @@ -1500,65 +1321,63 @@ class CopyFilesFromMachineRequestMetadata final : inline void Swap(CopyFilesFromMachineRequestMetadata* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(CopyFilesFromMachineRequestMetadata* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CopyFilesFromMachineRequestMetadata* New(::google::protobuf::Arena* arena = nullptr) const final { + CopyFilesFromMachineRequestMetadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const CopyFilesFromMachineRequestMetadata& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CopyFilesFromMachineRequestMetadata& from) { - CopyFilesFromMachineRequestMetadata::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CopyFilesFromMachineRequestMetadata& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(CopyFilesFromMachineRequestMetadata* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "viam.service.shell.v1.CopyFilesFromMachineRequestMetadata"; } protected: - explicit CopyFilesFromMachineRequestMetadata(::google::protobuf::Arena* arena); - CopyFilesFromMachineRequestMetadata(::google::protobuf::Arena* arena, const CopyFilesFromMachineRequestMetadata& from); + explicit CopyFilesFromMachineRequestMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1575,141 +1394,115 @@ class CopyFilesFromMachineRequestMetadata final : int paths_size() const; private: int _internal_paths_size() const; - public: - void clear_paths() ; + void clear_paths(); const std::string& paths(int index) const; std::string* mutable_paths(int index); void set_paths(int index, const std::string& value); void set_paths(int index, std::string&& value); void set_paths(int index, const char* value); - void set_paths(int index, const char* value, std::size_t size); - void set_paths(int index, absl::string_view value); + void set_paths(int index, const char* value, size_t size); std::string* add_paths(); void add_paths(const std::string& value); void add_paths(std::string&& value); void add_paths(const char* value); - void add_paths(const char* value, std::size_t size); - void add_paths(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& paths() const; - ::google::protobuf::RepeatedPtrField* mutable_paths(); - + void add_paths(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& paths() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_paths(); private: - const ::google::protobuf::RepeatedPtrField& _internal_paths() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_paths(); - + const std::string& _internal_paths(int index) const; + std::string* _internal_add_paths(); public: + // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + 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; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - + 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(); + // bool allow_recursion = 3 [json_name = "allowRecursion"]; - void clear_allow_recursion() ; + void clear_allow_recursion(); bool allow_recursion() const; void set_allow_recursion(bool value); - private: bool _internal_allow_recursion() const; void _internal_set_allow_recursion(bool value); - public: + // bool preserve = 4 [json_name = "preserve"]; - void clear_preserve() ; + void clear_preserve(); bool preserve() const; void set_preserve(bool value); - private: bool _internal_preserve() const; void _internal_set_preserve(bool value); - public: + // @@protoc_insertion_point(class_scope:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 5, 1, - 75, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField paths_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - bool allow_recursion_; - bool preserve_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField paths_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + bool allow_recursion_; + bool preserve_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fshell_2fv1_2fshell_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class CopyFilesToMachineRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.shell.v1.CopyFilesToMachineRequest) */ { +class CopyFilesFromMachineRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.shell.v1.CopyFilesFromMachineRequest) */ { public: - inline CopyFilesToMachineRequest() : CopyFilesToMachineRequest(nullptr) {} - ~CopyFilesToMachineRequest() override; - template - explicit PROTOBUF_CONSTEXPR CopyFilesToMachineRequest(::google::protobuf::internal::ConstantInitialized); - - inline CopyFilesToMachineRequest(const CopyFilesToMachineRequest& from) - : CopyFilesToMachineRequest(nullptr, from) {} - CopyFilesToMachineRequest(CopyFilesToMachineRequest&& from) noexcept - : CopyFilesToMachineRequest() { + inline CopyFilesFromMachineRequest() : CopyFilesFromMachineRequest(nullptr) {} + ~CopyFilesFromMachineRequest() override; + explicit PROTOBUF_CONSTEXPR CopyFilesFromMachineRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + CopyFilesFromMachineRequest(const CopyFilesFromMachineRequest& from); + CopyFilesFromMachineRequest(CopyFilesFromMachineRequest&& from) noexcept + : CopyFilesFromMachineRequest() { *this = ::std::move(from); } - inline CopyFilesToMachineRequest& operator=(const CopyFilesToMachineRequest& from) { + inline CopyFilesFromMachineRequest& operator=(const CopyFilesFromMachineRequest& from) { CopyFrom(from); return *this; } - inline CopyFilesToMachineRequest& operator=(CopyFilesToMachineRequest&& from) noexcept { + inline CopyFilesFromMachineRequest& operator=(CopyFilesFromMachineRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1719,105 +1512,94 @@ class CopyFilesToMachineRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CopyFilesToMachineRequest& default_instance() { + static const CopyFilesFromMachineRequest& default_instance() { return *internal_default_instance(); } enum RequestCase { kMetadata = 1, - kFileData = 2, + kAckLastFile = 2, REQUEST_NOT_SET = 0, }; - static inline const CopyFilesToMachineRequest* internal_default_instance() { - return reinterpret_cast( - &_CopyFilesToMachineRequest_default_instance_); + static inline const CopyFilesFromMachineRequest* internal_default_instance() { + return reinterpret_cast( + &_CopyFilesFromMachineRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 4; + 7; - friend void swap(CopyFilesToMachineRequest& a, CopyFilesToMachineRequest& b) { + friend void swap(CopyFilesFromMachineRequest& a, CopyFilesFromMachineRequest& b) { a.Swap(&b); } - inline void Swap(CopyFilesToMachineRequest* other) { + inline void Swap(CopyFilesFromMachineRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CopyFilesToMachineRequest* other) { + void UnsafeArenaSwap(CopyFilesFromMachineRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CopyFilesToMachineRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const CopyFilesToMachineRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CopyFilesToMachineRequest& from) { - CopyFilesToMachineRequest::MergeImpl(*this, from); + CopyFilesFromMachineRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CopyFilesFromMachineRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CopyFilesFromMachineRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(CopyFilesToMachineRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(CopyFilesFromMachineRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.shell.v1.CopyFilesToMachineRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.shell.v1.CopyFilesFromMachineRequest"; } protected: - explicit CopyFilesToMachineRequest(::google::protobuf::Arena* arena); - CopyFilesToMachineRequest(::google::protobuf::Arena* arena, const CopyFilesToMachineRequest& from); + explicit CopyFilesFromMachineRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1825,115 +1607,88 @@ class CopyFilesToMachineRequest final : enum : int { kMetadataFieldNumber = 1, - kFileDataFieldNumber = 2, + kAckLastFileFieldNumber = 2, }; - // .viam.service.shell.v1.CopyFilesToMachineRequestMetadata metadata = 1 [json_name = "metadata"]; + // .viam.service.shell.v1.CopyFilesFromMachineRequestMetadata metadata = 1 [json_name = "metadata"]; bool has_metadata() const; private: bool _internal_has_metadata() const; - public: - void clear_metadata() ; - const ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata& metadata() const; - PROTOBUF_NODISCARD ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata* release_metadata(); - ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata* mutable_metadata(); - void set_allocated_metadata(::viam::service::shell::v1::CopyFilesToMachineRequestMetadata* value); - void unsafe_arena_set_allocated_metadata(::viam::service::shell::v1::CopyFilesToMachineRequestMetadata* value); - ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata* unsafe_arena_release_metadata(); - + void clear_metadata(); + const ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata& metadata() const; + PROTOBUF_NODISCARD ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata* release_metadata(); + ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata* mutable_metadata(); + void set_allocated_metadata(::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata* metadata); private: - const ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata& _internal_metadata() const; - ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata* _internal_mutable_metadata(); - + const ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata& _internal_metadata() const; + ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata* _internal_mutable_metadata(); public: - // .viam.service.shell.v1.FileData file_data = 2 [json_name = "fileData"]; - bool has_file_data() const; - private: - bool _internal_has_file_data() const; + void unsafe_arena_set_allocated_metadata( + ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata* metadata); + ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata* unsafe_arena_release_metadata(); + // bool ack_last_file = 2 [json_name = "ackLastFile"]; + bool has_ack_last_file() const; + private: + bool _internal_has_ack_last_file() const; public: - void clear_file_data() ; - const ::viam::service::shell::v1::FileData& file_data() const; - PROTOBUF_NODISCARD ::viam::service::shell::v1::FileData* release_file_data(); - ::viam::service::shell::v1::FileData* mutable_file_data(); - void set_allocated_file_data(::viam::service::shell::v1::FileData* value); - void unsafe_arena_set_allocated_file_data(::viam::service::shell::v1::FileData* value); - ::viam::service::shell::v1::FileData* unsafe_arena_release_file_data(); - + void clear_ack_last_file(); + bool ack_last_file() const; + void set_ack_last_file(bool value); private: - const ::viam::service::shell::v1::FileData& _internal_file_data() const; - ::viam::service::shell::v1::FileData* _internal_mutable_file_data(); - + bool _internal_ack_last_file() const; + void _internal_set_ack_last_file(bool value); public: + void clear_request(); RequestCase request_case() const; - // @@protoc_insertion_point(class_scope:viam.service.shell.v1.CopyFilesToMachineRequest) + // @@protoc_insertion_point(class_scope:viam.service.shell.v1.CopyFilesFromMachineRequest) private: class _Internal; void set_has_metadata(); - void set_has_file_data(); + void set_has_ack_last_file(); inline bool has_request() const; inline void clear_has_request(); - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 2, 2, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - union RequestUnion { - constexpr RequestUnion() : _constinit_{} {} - ::google::protobuf::internal::ConstantInitialized _constinit_; - ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata* metadata_; - ::viam::service::shell::v1::FileData* file_data_; - } request_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t _oneof_case_[1]; - - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + union RequestUnion { + constexpr RequestUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata* metadata_; + bool ack_last_file_; + } request_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; + friend struct ::TableStruct_service_2fshell_2fv1_2fshell_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class CopyFilesFromMachineResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.shell.v1.CopyFilesFromMachineResponse) */ { +class CopyFilesFromMachineResponseMetadata final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.shell.v1.CopyFilesFromMachineResponseMetadata) */ { public: - inline CopyFilesFromMachineResponse() : CopyFilesFromMachineResponse(nullptr) {} - ~CopyFilesFromMachineResponse() override; - template - explicit PROTOBUF_CONSTEXPR CopyFilesFromMachineResponse(::google::protobuf::internal::ConstantInitialized); + inline CopyFilesFromMachineResponseMetadata() : CopyFilesFromMachineResponseMetadata(nullptr) {} + ~CopyFilesFromMachineResponseMetadata() override; + explicit PROTOBUF_CONSTEXPR CopyFilesFromMachineResponseMetadata(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline CopyFilesFromMachineResponse(const CopyFilesFromMachineResponse& from) - : CopyFilesFromMachineResponse(nullptr, from) {} - CopyFilesFromMachineResponse(CopyFilesFromMachineResponse&& from) noexcept - : CopyFilesFromMachineResponse() { + CopyFilesFromMachineResponseMetadata(const CopyFilesFromMachineResponseMetadata& from); + CopyFilesFromMachineResponseMetadata(CopyFilesFromMachineResponseMetadata&& from) noexcept + : CopyFilesFromMachineResponseMetadata() { *this = ::std::move(from); } - inline CopyFilesFromMachineResponse& operator=(const CopyFilesFromMachineResponse& from) { + inline CopyFilesFromMachineResponseMetadata& operator=(const CopyFilesFromMachineResponseMetadata& from) { CopyFrom(from); return *this; } - inline CopyFilesFromMachineResponse& operator=(CopyFilesFromMachineResponse&& from) noexcept { + inline CopyFilesFromMachineResponseMetadata& operator=(CopyFilesFromMachineResponseMetadata&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1943,221 +1698,140 @@ class CopyFilesFromMachineResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CopyFilesFromMachineResponse& default_instance() { + static const CopyFilesFromMachineResponseMetadata& default_instance() { return *internal_default_instance(); } - enum ResponseCase { - kMetadata = 1, - kFileData = 2, - RESPONSE_NOT_SET = 0, - }; - - static inline const CopyFilesFromMachineResponse* internal_default_instance() { - return reinterpret_cast( - &_CopyFilesFromMachineResponse_default_instance_); + static inline const CopyFilesFromMachineResponseMetadata* internal_default_instance() { + return reinterpret_cast( + &_CopyFilesFromMachineResponseMetadata_default_instance_); } static constexpr int kIndexInFileMessages = - 9; + 8; - friend void swap(CopyFilesFromMachineResponse& a, CopyFilesFromMachineResponse& b) { + friend void swap(CopyFilesFromMachineResponseMetadata& a, CopyFilesFromMachineResponseMetadata& b) { a.Swap(&b); } - inline void Swap(CopyFilesFromMachineResponse* other) { + inline void Swap(CopyFilesFromMachineResponseMetadata* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CopyFilesFromMachineResponse* other) { + void UnsafeArenaSwap(CopyFilesFromMachineResponseMetadata* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CopyFilesFromMachineResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const CopyFilesFromMachineResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CopyFilesFromMachineResponse& from) { - CopyFilesFromMachineResponse::MergeImpl(*this, from); + CopyFilesFromMachineResponseMetadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CopyFilesFromMachineResponseMetadata& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CopyFilesFromMachineResponseMetadata& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(CopyFilesFromMachineResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(CopyFilesFromMachineResponseMetadata* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.shell.v1.CopyFilesFromMachineResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.shell.v1.CopyFilesFromMachineResponseMetadata"; } protected: - explicit CopyFilesFromMachineResponse(::google::protobuf::Arena* arena); - CopyFilesFromMachineResponse(::google::protobuf::Arena* arena, const CopyFilesFromMachineResponse& from); + explicit CopyFilesFromMachineResponseMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kMetadataFieldNumber = 1, - kFileDataFieldNumber = 2, + kSourceTypeFieldNumber = 1, }; - // .viam.service.shell.v1.CopyFilesFromMachineResponseMetadata metadata = 1 [json_name = "metadata"]; - bool has_metadata() const; - private: - bool _internal_has_metadata() const; - - public: - void clear_metadata() ; - const ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata& metadata() const; - PROTOBUF_NODISCARD ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata* release_metadata(); - ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata* mutable_metadata(); - void set_allocated_metadata(::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata* value); - void unsafe_arena_set_allocated_metadata(::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata* value); - ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata* unsafe_arena_release_metadata(); - - private: - const ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata& _internal_metadata() const; - ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata* _internal_mutable_metadata(); - - public: - // .viam.service.shell.v1.FileData file_data = 2 [json_name = "fileData"]; - bool has_file_data() const; + // .viam.service.shell.v1.CopyFilesSourceType source_type = 1 [json_name = "sourceType"]; + void clear_source_type(); + ::viam::service::shell::v1::CopyFilesSourceType source_type() const; + void set_source_type(::viam::service::shell::v1::CopyFilesSourceType value); private: - bool _internal_has_file_data() const; - + ::viam::service::shell::v1::CopyFilesSourceType _internal_source_type() const; + void _internal_set_source_type(::viam::service::shell::v1::CopyFilesSourceType value); public: - void clear_file_data() ; - const ::viam::service::shell::v1::FileData& file_data() const; - PROTOBUF_NODISCARD ::viam::service::shell::v1::FileData* release_file_data(); - ::viam::service::shell::v1::FileData* mutable_file_data(); - void set_allocated_file_data(::viam::service::shell::v1::FileData* value); - void unsafe_arena_set_allocated_file_data(::viam::service::shell::v1::FileData* value); - ::viam::service::shell::v1::FileData* unsafe_arena_release_file_data(); - - private: - const ::viam::service::shell::v1::FileData& _internal_file_data() const; - ::viam::service::shell::v1::FileData* _internal_mutable_file_data(); - public: - void clear_response(); - ResponseCase response_case() const; - // @@protoc_insertion_point(class_scope:viam.service.shell.v1.CopyFilesFromMachineResponse) + // @@protoc_insertion_point(class_scope:viam.service.shell.v1.CopyFilesFromMachineResponseMetadata) private: class _Internal; - void set_has_metadata(); - void set_has_file_data(); - inline bool has_response() const; - inline void clear_has_response(); - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 2, 2, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - union ResponseUnion { - constexpr ResponseUnion() : _constinit_{} {} - ::google::protobuf::internal::ConstantInitialized _constinit_; - ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata* metadata_; - ::viam::service::shell::v1::FileData* file_data_; - } response_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t _oneof_case_[1]; - - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + int source_type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fshell_2fv1_2fshell_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class CopyFilesFromMachineRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.shell.v1.CopyFilesFromMachineRequest) */ { +class CopyFilesFromMachineResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.shell.v1.CopyFilesFromMachineResponse) */ { public: - inline CopyFilesFromMachineRequest() : CopyFilesFromMachineRequest(nullptr) {} - ~CopyFilesFromMachineRequest() override; - template - explicit PROTOBUF_CONSTEXPR CopyFilesFromMachineRequest(::google::protobuf::internal::ConstantInitialized); + inline CopyFilesFromMachineResponse() : CopyFilesFromMachineResponse(nullptr) {} + ~CopyFilesFromMachineResponse() override; + explicit PROTOBUF_CONSTEXPR CopyFilesFromMachineResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline CopyFilesFromMachineRequest(const CopyFilesFromMachineRequest& from) - : CopyFilesFromMachineRequest(nullptr, from) {} - CopyFilesFromMachineRequest(CopyFilesFromMachineRequest&& from) noexcept - : CopyFilesFromMachineRequest() { + CopyFilesFromMachineResponse(const CopyFilesFromMachineResponse& from); + CopyFilesFromMachineResponse(CopyFilesFromMachineResponse&& from) noexcept + : CopyFilesFromMachineResponse() { *this = ::std::move(from); } - inline CopyFilesFromMachineRequest& operator=(const CopyFilesFromMachineRequest& from) { + inline CopyFilesFromMachineResponse& operator=(const CopyFilesFromMachineResponse& from) { CopyFrom(from); return *this; } - inline CopyFilesFromMachineRequest& operator=(CopyFilesFromMachineRequest&& from) noexcept { + inline CopyFilesFromMachineResponse& operator=(CopyFilesFromMachineResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2167,105 +1841,94 @@ class CopyFilesFromMachineRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CopyFilesFromMachineRequest& default_instance() { + static const CopyFilesFromMachineResponse& default_instance() { return *internal_default_instance(); } - enum RequestCase { + enum ResponseCase { kMetadata = 1, - kAckLastFile = 2, - REQUEST_NOT_SET = 0, + kFileData = 2, + RESPONSE_NOT_SET = 0, }; - static inline const CopyFilesFromMachineRequest* internal_default_instance() { - return reinterpret_cast( - &_CopyFilesFromMachineRequest_default_instance_); + static inline const CopyFilesFromMachineResponse* internal_default_instance() { + return reinterpret_cast( + &_CopyFilesFromMachineResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 7; + 9; - friend void swap(CopyFilesFromMachineRequest& a, CopyFilesFromMachineRequest& b) { + friend void swap(CopyFilesFromMachineResponse& a, CopyFilesFromMachineResponse& b) { a.Swap(&b); } - inline void Swap(CopyFilesFromMachineRequest* other) { + inline void Swap(CopyFilesFromMachineResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CopyFilesFromMachineRequest* other) { + void UnsafeArenaSwap(CopyFilesFromMachineResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CopyFilesFromMachineRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const CopyFilesFromMachineRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CopyFilesFromMachineRequest& from) { - CopyFilesFromMachineRequest::MergeImpl(*this, from); + CopyFilesFromMachineResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CopyFilesFromMachineResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CopyFilesFromMachineResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(CopyFilesFromMachineRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(CopyFilesFromMachineResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.shell.v1.CopyFilesFromMachineRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.shell.v1.CopyFilesFromMachineResponse"; } protected: - explicit CopyFilesFromMachineRequest(::google::protobuf::Arena* arena); - CopyFilesFromMachineRequest(::google::protobuf::Arena* arena, const CopyFilesFromMachineRequest& from); + explicit CopyFilesFromMachineResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -2273,293 +1936,262 @@ class CopyFilesFromMachineRequest final : enum : int { kMetadataFieldNumber = 1, - kAckLastFileFieldNumber = 2, + kFileDataFieldNumber = 2, }; - // .viam.service.shell.v1.CopyFilesFromMachineRequestMetadata metadata = 1 [json_name = "metadata"]; + // .viam.service.shell.v1.CopyFilesFromMachineResponseMetadata metadata = 1 [json_name = "metadata"]; bool has_metadata() const; private: bool _internal_has_metadata() const; - public: - void clear_metadata() ; - const ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata& metadata() const; - PROTOBUF_NODISCARD ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata* release_metadata(); - ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata* mutable_metadata(); - void set_allocated_metadata(::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata* value); - void unsafe_arena_set_allocated_metadata(::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata* value); - ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata* unsafe_arena_release_metadata(); - + void clear_metadata(); + const ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata& metadata() const; + PROTOBUF_NODISCARD ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata* release_metadata(); + ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata* mutable_metadata(); + void set_allocated_metadata(::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata* metadata); private: - const ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata& _internal_metadata() const; - ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata* _internal_mutable_metadata(); - + const ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata& _internal_metadata() const; + ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata* _internal_mutable_metadata(); public: - // bool ack_last_file = 2 [json_name = "ackLastFile"]; - bool has_ack_last_file() const; - void clear_ack_last_file() ; - bool ack_last_file() const; - void set_ack_last_file(bool value); - - private: - bool _internal_ack_last_file() const; - void _internal_set_ack_last_file(bool value); + void unsafe_arena_set_allocated_metadata( + ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata* metadata); + ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata* unsafe_arena_release_metadata(); + // .viam.service.shell.v1.FileData file_data = 2 [json_name = "fileData"]; + bool has_file_data() const; + private: + bool _internal_has_file_data() const; public: - void clear_request(); - RequestCase request_case() const; - // @@protoc_insertion_point(class_scope:viam.service.shell.v1.CopyFilesFromMachineRequest) + void clear_file_data(); + const ::viam::service::shell::v1::FileData& file_data() const; + PROTOBUF_NODISCARD ::viam::service::shell::v1::FileData* release_file_data(); + ::viam::service::shell::v1::FileData* mutable_file_data(); + void set_allocated_file_data(::viam::service::shell::v1::FileData* file_data); + private: + const ::viam::service::shell::v1::FileData& _internal_file_data() const; + ::viam::service::shell::v1::FileData* _internal_mutable_file_data(); + public: + void unsafe_arena_set_allocated_file_data( + ::viam::service::shell::v1::FileData* file_data); + ::viam::service::shell::v1::FileData* unsafe_arena_release_file_data(); + + void clear_response(); + ResponseCase response_case() const; + // @@protoc_insertion_point(class_scope:viam.service.shell.v1.CopyFilesFromMachineResponse) private: class _Internal; void set_has_metadata(); - void set_has_ack_last_file(); + void set_has_file_data(); - inline bool has_request() const; - inline void clear_has_request(); + inline bool has_response() const; + inline void clear_has_response(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + union ResponseUnion { + constexpr ResponseUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata* metadata_; + ::viam::service::shell::v1::FileData* file_data_; + } response_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 2, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - union RequestUnion { - constexpr RequestUnion() : _constinit_{} {} - ::google::protobuf::internal::ConstantInitialized _constinit_; - ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata* metadata_; - bool ack_last_file_; - } request_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t _oneof_case_[1]; - - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; friend struct ::TableStruct_service_2fshell_2fv1_2fshell_2eproto; }; - // =================================================================== - - // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ -// ------------------------------------------------------------------- - // ShellRequest // string name = 1 [json_name = "name"]; inline void ShellRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& ShellRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ShellRequest::name() const { // @@protoc_insertion_point(field_get:viam.service.shell.v1.ShellRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void ShellRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ShellRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.shell.v1.ShellRequest.name) } -inline std::string* ShellRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ShellRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.service.shell.v1.ShellRequest.name) return _s; } inline const std::string& ShellRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void ShellRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* ShellRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* ShellRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.shell.v1.ShellRequest.name) - return _impl_.name_.Release(); -} -inline void ShellRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void ShellRequest::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.service.shell.v1.ShellRequest.name) } // string data_in = 2 [json_name = "dataIn"]; inline void ShellRequest::clear_data_in() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.data_in_.ClearToEmpty(); + data_in_.ClearToEmpty(); } -inline const std::string& ShellRequest::data_in() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ShellRequest::data_in() const { // @@protoc_insertion_point(field_get:viam.service.shell.v1.ShellRequest.data_in) return _internal_data_in(); } -template -inline PROTOBUF_ALWAYS_INLINE void ShellRequest::set_data_in(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.data_in_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ShellRequest::set_data_in(ArgT0&& arg0, ArgT... args) { + + data_in_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.shell.v1.ShellRequest.data_in) } -inline std::string* ShellRequest::mutable_data_in() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ShellRequest::mutable_data_in() { std::string* _s = _internal_mutable_data_in(); // @@protoc_insertion_point(field_mutable:viam.service.shell.v1.ShellRequest.data_in) return _s; } inline const std::string& ShellRequest::_internal_data_in() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.data_in_.Get(); + return data_in_.Get(); } inline void ShellRequest::_internal_set_data_in(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.data_in_.Set(value, GetArena()); + + data_in_.Set(value, GetArenaForAllocation()); } inline std::string* ShellRequest::_internal_mutable_data_in() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.data_in_.Mutable( GetArena()); + + return data_in_.Mutable(GetArenaForAllocation()); } inline std::string* ShellRequest::release_data_in() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.shell.v1.ShellRequest.data_in) - return _impl_.data_in_.Release(); -} -inline void ShellRequest::set_allocated_data_in(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.data_in_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.data_in_.IsDefault()) { - _impl_.data_in_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return data_in_.Release(); +} +inline void ShellRequest::set_allocated_data_in(std::string* data_in) { + if (data_in != nullptr) { + + } else { + + } + data_in_.SetAllocated(data_in, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (data_in_.IsDefault()) { + data_in_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.service.shell.v1.ShellRequest.data_in) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool ShellRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool ShellRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& ShellRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& ShellRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& ShellRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& ShellRequest::extra() const { // @@protoc_insertion_point(field_get:viam.service.shell.v1.ShellRequest.extra) return _internal_extra(); } -inline void ShellRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void ShellRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.shell.v1.ShellRequest.extra) } -inline ::google::protobuf::Struct* ShellRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* ShellRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* ShellRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* ShellRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.service.shell.v1.ShellRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* ShellRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* ShellRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* ShellRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* ShellRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.service.shell.v1.ShellRequest.extra) return _msg; } -inline void ShellRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ShellRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.service.shell.v1.ShellRequest.extra) } @@ -2569,132 +2201,123 @@ inline void ShellRequest::set_allocated_extra(::google::protobuf::Struct* value) // string data_out = 1 [json_name = "dataOut"]; inline void ShellResponse::clear_data_out() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.data_out_.ClearToEmpty(); + data_out_.ClearToEmpty(); } -inline const std::string& ShellResponse::data_out() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ShellResponse::data_out() const { // @@protoc_insertion_point(field_get:viam.service.shell.v1.ShellResponse.data_out) return _internal_data_out(); } -template -inline PROTOBUF_ALWAYS_INLINE void ShellResponse::set_data_out(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.data_out_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ShellResponse::set_data_out(ArgT0&& arg0, ArgT... args) { + + data_out_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.shell.v1.ShellResponse.data_out) } -inline std::string* ShellResponse::mutable_data_out() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ShellResponse::mutable_data_out() { std::string* _s = _internal_mutable_data_out(); // @@protoc_insertion_point(field_mutable:viam.service.shell.v1.ShellResponse.data_out) return _s; } inline const std::string& ShellResponse::_internal_data_out() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.data_out_.Get(); + return data_out_.Get(); } inline void ShellResponse::_internal_set_data_out(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.data_out_.Set(value, GetArena()); + + data_out_.Set(value, GetArenaForAllocation()); } inline std::string* ShellResponse::_internal_mutable_data_out() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.data_out_.Mutable( GetArena()); + + return data_out_.Mutable(GetArenaForAllocation()); } inline std::string* ShellResponse::release_data_out() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.shell.v1.ShellResponse.data_out) - return _impl_.data_out_.Release(); -} -inline void ShellResponse::set_allocated_data_out(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.data_out_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.data_out_.IsDefault()) { - _impl_.data_out_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return data_out_.Release(); +} +inline void ShellResponse::set_allocated_data_out(std::string* data_out) { + if (data_out != nullptr) { + + } else { + + } + data_out_.SetAllocated(data_out, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (data_out_.IsDefault()) { + data_out_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.service.shell.v1.ShellResponse.data_out) } // string data_err = 2 [json_name = "dataErr"]; inline void ShellResponse::clear_data_err() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.data_err_.ClearToEmpty(); + data_err_.ClearToEmpty(); } -inline const std::string& ShellResponse::data_err() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& ShellResponse::data_err() const { // @@protoc_insertion_point(field_get:viam.service.shell.v1.ShellResponse.data_err) return _internal_data_err(); } -template -inline PROTOBUF_ALWAYS_INLINE void ShellResponse::set_data_err(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.data_err_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void ShellResponse::set_data_err(ArgT0&& arg0, ArgT... args) { + + data_err_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.shell.v1.ShellResponse.data_err) } -inline std::string* ShellResponse::mutable_data_err() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* ShellResponse::mutable_data_err() { std::string* _s = _internal_mutable_data_err(); // @@protoc_insertion_point(field_mutable:viam.service.shell.v1.ShellResponse.data_err) return _s; } inline const std::string& ShellResponse::_internal_data_err() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.data_err_.Get(); + return data_err_.Get(); } inline void ShellResponse::_internal_set_data_err(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.data_err_.Set(value, GetArena()); + + data_err_.Set(value, GetArenaForAllocation()); } inline std::string* ShellResponse::_internal_mutable_data_err() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.data_err_.Mutable( GetArena()); + + return data_err_.Mutable(GetArenaForAllocation()); } inline std::string* ShellResponse::release_data_err() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.shell.v1.ShellResponse.data_err) - return _impl_.data_err_.Release(); -} -inline void ShellResponse::set_allocated_data_err(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.data_err_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.data_err_.IsDefault()) { - _impl_.data_err_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return data_err_.Release(); +} +inline void ShellResponse::set_allocated_data_err(std::string* data_err) { + if (data_err != nullptr) { + + } else { + + } + data_err_.SetAllocated(data_err, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (data_err_.IsDefault()) { + data_err_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.service.shell.v1.ShellResponse.data_err) } // bool eof = 3 [json_name = "eof"]; inline void ShellResponse::clear_eof() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.eof_ = false; + eof_ = false; +} +inline bool ShellResponse::_internal_eof() const { + return eof_; } inline bool ShellResponse::eof() const { // @@protoc_insertion_point(field_get:viam.service.shell.v1.ShellResponse.eof) return _internal_eof(); } +inline void ShellResponse::_internal_set_eof(bool value) { + + eof_ = value; +} inline void ShellResponse::set_eof(bool value) { _internal_set_eof(value); // @@protoc_insertion_point(field_set:viam.service.shell.v1.ShellResponse.eof) } -inline bool ShellResponse::_internal_eof() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.eof_; -} -inline void ShellResponse::_internal_set_eof(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.eof_ = value; -} // ------------------------------------------------------------------- @@ -2702,297 +2325,278 @@ inline void ShellResponse::_internal_set_eof(bool value) { // string name = 1 [json_name = "name"]; inline void FileData::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& FileData::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& FileData::name() const { // @@protoc_insertion_point(field_get:viam.service.shell.v1.FileData.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void FileData::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void FileData::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.shell.v1.FileData.name) } -inline std::string* FileData::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* FileData::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.service.shell.v1.FileData.name) return _s; } inline const std::string& FileData::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void FileData::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* FileData::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* FileData::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.shell.v1.FileData.name) - return _impl_.name_.Release(); -} -inline void FileData::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void FileData::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.service.shell.v1.FileData.name) } // int64 size = 2 [json_name = "size"]; inline void FileData::clear_size() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.size_ = ::int64_t{0}; + size_ = int64_t{0}; } -inline ::int64_t FileData::size() const { +inline int64_t FileData::_internal_size() const { + return size_; +} +inline int64_t FileData::size() const { // @@protoc_insertion_point(field_get:viam.service.shell.v1.FileData.size) return _internal_size(); } -inline void FileData::set_size(::int64_t value) { +inline void FileData::_internal_set_size(int64_t value) { + + size_ = value; +} +inline void FileData::set_size(int64_t value) { _internal_set_size(value); // @@protoc_insertion_point(field_set:viam.service.shell.v1.FileData.size) } -inline ::int64_t FileData::_internal_size() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.size_; -} -inline void FileData::_internal_set_size(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.size_ = value; -} // bool is_dir = 3 [json_name = "isDir"]; inline void FileData::clear_is_dir() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.is_dir_ = false; + is_dir_ = false; +} +inline bool FileData::_internal_is_dir() const { + return is_dir_; } inline bool FileData::is_dir() const { // @@protoc_insertion_point(field_get:viam.service.shell.v1.FileData.is_dir) return _internal_is_dir(); } +inline void FileData::_internal_set_is_dir(bool value) { + + is_dir_ = value; +} inline void FileData::set_is_dir(bool value) { _internal_set_is_dir(value); // @@protoc_insertion_point(field_set:viam.service.shell.v1.FileData.is_dir) } -inline bool FileData::_internal_is_dir() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.is_dir_; -} -inline void FileData::_internal_set_is_dir(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.is_dir_ = value; -} // bytes data = 4 [json_name = "data"]; inline void FileData::clear_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.data_.ClearToEmpty(); + data_.ClearToEmpty(); } -inline const std::string& FileData::data() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& FileData::data() const { // @@protoc_insertion_point(field_get:viam.service.shell.v1.FileData.data) return _internal_data(); } -template -inline PROTOBUF_ALWAYS_INLINE void FileData::set_data(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.data_.SetBytes(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void FileData::set_data(ArgT0&& arg0, ArgT... args) { + + data_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.shell.v1.FileData.data) } -inline std::string* FileData::mutable_data() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* FileData::mutable_data() { std::string* _s = _internal_mutable_data(); // @@protoc_insertion_point(field_mutable:viam.service.shell.v1.FileData.data) return _s; } inline const std::string& FileData::_internal_data() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.data_.Get(); + return data_.Get(); } inline void FileData::_internal_set_data(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.data_.Set(value, GetArena()); + + data_.Set(value, GetArenaForAllocation()); } inline std::string* FileData::_internal_mutable_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.data_.Mutable( GetArena()); + + return data_.Mutable(GetArenaForAllocation()); } inline std::string* FileData::release_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.shell.v1.FileData.data) - return _impl_.data_.Release(); -} -inline void FileData::set_allocated_data(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.data_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.data_.IsDefault()) { - _impl_.data_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return data_.Release(); +} +inline void FileData::set_allocated_data(std::string* data) { + if (data != nullptr) { + + } else { + + } + data_.SetAllocated(data, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (data_.IsDefault()) { + data_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.service.shell.v1.FileData.data) } // bool eof = 5 [json_name = "eof"]; inline void FileData::clear_eof() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.eof_ = false; + eof_ = false; +} +inline bool FileData::_internal_eof() const { + return eof_; } inline bool FileData::eof() const { // @@protoc_insertion_point(field_get:viam.service.shell.v1.FileData.eof) return _internal_eof(); } +inline void FileData::_internal_set_eof(bool value) { + + eof_ = value; +} inline void FileData::set_eof(bool value) { _internal_set_eof(value); // @@protoc_insertion_point(field_set:viam.service.shell.v1.FileData.eof) } -inline bool FileData::_internal_eof() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.eof_; -} -inline void FileData::_internal_set_eof(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.eof_ = value; -} // optional .google.protobuf.Timestamp mod_time = 6 [json_name = "modTime"]; -inline bool FileData::has_mod_time() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.mod_time_ != nullptr); +inline bool FileData::_internal_has_mod_time() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || mod_time_ != nullptr); return value; } -inline const ::google::protobuf::Timestamp& FileData::_internal_mod_time() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Timestamp* p = _impl_.mod_time_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); +inline bool FileData::has_mod_time() const { + return _internal_has_mod_time(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& FileData::_internal_mod_time() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = mod_time_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); } -inline const ::google::protobuf::Timestamp& FileData::mod_time() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& FileData::mod_time() const { // @@protoc_insertion_point(field_get:viam.service.shell.v1.FileData.mod_time) return _internal_mod_time(); } -inline void FileData::unsafe_arena_set_allocated_mod_time(::google::protobuf::Timestamp* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.mod_time_); +inline void FileData::unsafe_arena_set_allocated_mod_time( + ::PROTOBUF_NAMESPACE_ID::Timestamp* mod_time) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(mod_time_); } - _impl_.mod_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + mod_time_ = mod_time; + if (mod_time) { + _has_bits_[0] |= 0x00000001u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; + _has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.shell.v1.FileData.mod_time) } -inline ::google::protobuf::Timestamp* FileData::release_mod_time() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Timestamp* released = _impl_.mod_time_; - _impl_.mod_time_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* FileData::release_mod_time() { + _has_bits_[0] &= ~0x00000001u; + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = mod_time_; + mod_time_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Timestamp* FileData::unsafe_arena_release_mod_time() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* FileData::unsafe_arena_release_mod_time() { // @@protoc_insertion_point(field_release:viam.service.shell.v1.FileData.mod_time) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Timestamp* temp = _impl_.mod_time_; - _impl_.mod_time_ = nullptr; + _has_bits_[0] &= ~0x00000001u; + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = mod_time_; + mod_time_ = nullptr; return temp; } -inline ::google::protobuf::Timestamp* FileData::_internal_mutable_mod_time() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.mod_time_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena()); - _impl_.mod_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* FileData::_internal_mutable_mod_time() { + _has_bits_[0] |= 0x00000001u; + if (mod_time_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + mod_time_ = p; } - return _impl_.mod_time_; + return mod_time_; } -inline ::google::protobuf::Timestamp* FileData::mutable_mod_time() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Timestamp* _msg = _internal_mutable_mod_time(); +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* FileData::mutable_mod_time() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_mod_time(); // @@protoc_insertion_point(field_mutable:viam.service.shell.v1.FileData.mod_time) return _msg; } -inline void FileData::set_allocated_mod_time(::google::protobuf::Timestamp* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void FileData::set_allocated_mod_time(::PROTOBUF_NAMESPACE_ID::Timestamp* mod_time) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.mod_time_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(mod_time_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (mod_time) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(mod_time)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + mod_time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, mod_time, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + _has_bits_[0] |= 0x00000001u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; + _has_bits_[0] &= ~0x00000001u; } - - _impl_.mod_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); + mod_time_ = mod_time; // @@protoc_insertion_point(field_set_allocated:viam.service.shell.v1.FileData.mod_time) } // optional uint32 mode = 7 [json_name = "mode"]; -inline bool FileData::has_mode() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; +inline bool FileData::_internal_has_mode() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; return value; } +inline bool FileData::has_mode() const { + return _internal_has_mode(); +} inline void FileData::clear_mode() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.mode_ = 0u; - _impl_._has_bits_[0] &= ~0x00000002u; + mode_ = 0u; + _has_bits_[0] &= ~0x00000002u; } -inline ::uint32_t FileData::mode() const { +inline uint32_t FileData::_internal_mode() const { + return mode_; +} +inline uint32_t FileData::mode() const { // @@protoc_insertion_point(field_get:viam.service.shell.v1.FileData.mode) return _internal_mode(); } -inline void FileData::set_mode(::uint32_t value) { +inline void FileData::_internal_set_mode(uint32_t value) { + _has_bits_[0] |= 0x00000002u; + mode_ = value; +} +inline void FileData::set_mode(uint32_t value) { _internal_set_mode(value); // @@protoc_insertion_point(field_set:viam.service.shell.v1.FileData.mode) } -inline ::uint32_t FileData::_internal_mode() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.mode_; -} -inline void FileData::_internal_set_mode(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.mode_ = value; -} // ------------------------------------------------------------------- @@ -3000,244 +2604,226 @@ inline void FileData::_internal_set_mode(::uint32_t value) { // string name = 1 [json_name = "name"]; inline void CopyFilesToMachineRequestMetadata::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& CopyFilesToMachineRequestMetadata::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& CopyFilesToMachineRequestMetadata::name() const { // @@protoc_insertion_point(field_get:viam.service.shell.v1.CopyFilesToMachineRequestMetadata.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void CopyFilesToMachineRequestMetadata::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void CopyFilesToMachineRequestMetadata::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.shell.v1.CopyFilesToMachineRequestMetadata.name) } -inline std::string* CopyFilesToMachineRequestMetadata::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* CopyFilesToMachineRequestMetadata::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.service.shell.v1.CopyFilesToMachineRequestMetadata.name) return _s; } inline const std::string& CopyFilesToMachineRequestMetadata::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void CopyFilesToMachineRequestMetadata::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* CopyFilesToMachineRequestMetadata::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* CopyFilesToMachineRequestMetadata::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.shell.v1.CopyFilesToMachineRequestMetadata.name) - return _impl_.name_.Release(); -} -inline void CopyFilesToMachineRequestMetadata::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void CopyFilesToMachineRequestMetadata::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.service.shell.v1.CopyFilesToMachineRequestMetadata.name) } // .viam.service.shell.v1.CopyFilesSourceType source_type = 2 [json_name = "sourceType"]; inline void CopyFilesToMachineRequestMetadata::clear_source_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.source_type_ = 0; + source_type_ = 0; +} +inline ::viam::service::shell::v1::CopyFilesSourceType CopyFilesToMachineRequestMetadata::_internal_source_type() const { + return static_cast< ::viam::service::shell::v1::CopyFilesSourceType >(source_type_); } inline ::viam::service::shell::v1::CopyFilesSourceType CopyFilesToMachineRequestMetadata::source_type() const { // @@protoc_insertion_point(field_get:viam.service.shell.v1.CopyFilesToMachineRequestMetadata.source_type) return _internal_source_type(); } +inline void CopyFilesToMachineRequestMetadata::_internal_set_source_type(::viam::service::shell::v1::CopyFilesSourceType value) { + + source_type_ = value; +} inline void CopyFilesToMachineRequestMetadata::set_source_type(::viam::service::shell::v1::CopyFilesSourceType value) { _internal_set_source_type(value); // @@protoc_insertion_point(field_set:viam.service.shell.v1.CopyFilesToMachineRequestMetadata.source_type) } -inline ::viam::service::shell::v1::CopyFilesSourceType CopyFilesToMachineRequestMetadata::_internal_source_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::viam::service::shell::v1::CopyFilesSourceType>(_impl_.source_type_); -} -inline void CopyFilesToMachineRequestMetadata::_internal_set_source_type(::viam::service::shell::v1::CopyFilesSourceType value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.source_type_ = value; -} // string destination = 3 [json_name = "destination"]; inline void CopyFilesToMachineRequestMetadata::clear_destination() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.destination_.ClearToEmpty(); + destination_.ClearToEmpty(); } -inline const std::string& CopyFilesToMachineRequestMetadata::destination() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& CopyFilesToMachineRequestMetadata::destination() const { // @@protoc_insertion_point(field_get:viam.service.shell.v1.CopyFilesToMachineRequestMetadata.destination) return _internal_destination(); } -template -inline PROTOBUF_ALWAYS_INLINE void CopyFilesToMachineRequestMetadata::set_destination(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.destination_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void CopyFilesToMachineRequestMetadata::set_destination(ArgT0&& arg0, ArgT... args) { + + destination_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.shell.v1.CopyFilesToMachineRequestMetadata.destination) } -inline std::string* CopyFilesToMachineRequestMetadata::mutable_destination() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* CopyFilesToMachineRequestMetadata::mutable_destination() { std::string* _s = _internal_mutable_destination(); // @@protoc_insertion_point(field_mutable:viam.service.shell.v1.CopyFilesToMachineRequestMetadata.destination) return _s; } inline const std::string& CopyFilesToMachineRequestMetadata::_internal_destination() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.destination_.Get(); + return destination_.Get(); } inline void CopyFilesToMachineRequestMetadata::_internal_set_destination(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.destination_.Set(value, GetArena()); + + destination_.Set(value, GetArenaForAllocation()); } inline std::string* CopyFilesToMachineRequestMetadata::_internal_mutable_destination() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.destination_.Mutable( GetArena()); + + return destination_.Mutable(GetArenaForAllocation()); } inline std::string* CopyFilesToMachineRequestMetadata::release_destination() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.shell.v1.CopyFilesToMachineRequestMetadata.destination) - return _impl_.destination_.Release(); -} -inline void CopyFilesToMachineRequestMetadata::set_allocated_destination(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.destination_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.destination_.IsDefault()) { - _impl_.destination_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return destination_.Release(); +} +inline void CopyFilesToMachineRequestMetadata::set_allocated_destination(std::string* destination) { + if (destination != nullptr) { + + } else { + + } + destination_.SetAllocated(destination, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (destination_.IsDefault()) { + destination_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.service.shell.v1.CopyFilesToMachineRequestMetadata.destination) } // bool preserve = 4 [json_name = "preserve"]; inline void CopyFilesToMachineRequestMetadata::clear_preserve() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.preserve_ = false; + preserve_ = false; +} +inline bool CopyFilesToMachineRequestMetadata::_internal_preserve() const { + return preserve_; } inline bool CopyFilesToMachineRequestMetadata::preserve() const { // @@protoc_insertion_point(field_get:viam.service.shell.v1.CopyFilesToMachineRequestMetadata.preserve) return _internal_preserve(); } +inline void CopyFilesToMachineRequestMetadata::_internal_set_preserve(bool value) { + + preserve_ = value; +} inline void CopyFilesToMachineRequestMetadata::set_preserve(bool value) { _internal_set_preserve(value); // @@protoc_insertion_point(field_set:viam.service.shell.v1.CopyFilesToMachineRequestMetadata.preserve) } -inline bool CopyFilesToMachineRequestMetadata::_internal_preserve() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.preserve_; -} -inline void CopyFilesToMachineRequestMetadata::_internal_set_preserve(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.preserve_ = value; -} // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool CopyFilesToMachineRequestMetadata::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool CopyFilesToMachineRequestMetadata::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& CopyFilesToMachineRequestMetadata::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& CopyFilesToMachineRequestMetadata::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& CopyFilesToMachineRequestMetadata::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& CopyFilesToMachineRequestMetadata::extra() const { // @@protoc_insertion_point(field_get:viam.service.shell.v1.CopyFilesToMachineRequestMetadata.extra) return _internal_extra(); } -inline void CopyFilesToMachineRequestMetadata::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void CopyFilesToMachineRequestMetadata::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.shell.v1.CopyFilesToMachineRequestMetadata.extra) } -inline ::google::protobuf::Struct* CopyFilesToMachineRequestMetadata::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* CopyFilesToMachineRequestMetadata::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* CopyFilesToMachineRequestMetadata::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* CopyFilesToMachineRequestMetadata::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.service.shell.v1.CopyFilesToMachineRequestMetadata.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* CopyFilesToMachineRequestMetadata::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* CopyFilesToMachineRequestMetadata::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* CopyFilesToMachineRequestMetadata::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* CopyFilesToMachineRequestMetadata::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.service.shell.v1.CopyFilesToMachineRequestMetadata.extra) return _msg; } -inline void CopyFilesToMachineRequestMetadata::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void CopyFilesToMachineRequestMetadata::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.service.shell.v1.CopyFilesToMachineRequestMetadata.extra) } @@ -3246,152 +2832,148 @@ inline void CopyFilesToMachineRequestMetadata::set_allocated_extra(::google::pro // CopyFilesToMachineRequest // .viam.service.shell.v1.CopyFilesToMachineRequestMetadata metadata = 1 [json_name = "metadata"]; -inline bool CopyFilesToMachineRequest::has_metadata() const { - return request_case() == kMetadata; -} inline bool CopyFilesToMachineRequest::_internal_has_metadata() const { return request_case() == kMetadata; } +inline bool CopyFilesToMachineRequest::has_metadata() const { + return _internal_has_metadata(); +} inline void CopyFilesToMachineRequest::set_has_metadata() { - _impl_._oneof_case_[0] = kMetadata; + _oneof_case_[0] = kMetadata; } inline void CopyFilesToMachineRequest::clear_metadata() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (request_case() == kMetadata) { - if (GetArena() == nullptr) { - delete _impl_.request_.metadata_; + if (_internal_has_metadata()) { + if (GetArenaForAllocation() == nullptr) { + delete request_.metadata_; } clear_has_request(); } } inline ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata* CopyFilesToMachineRequest::release_metadata() { // @@protoc_insertion_point(field_release:viam.service.shell.v1.CopyFilesToMachineRequest.metadata) - if (request_case() == kMetadata) { + if (_internal_has_metadata()) { clear_has_request(); - auto* temp = _impl_.request_.metadata_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata* temp = request_.metadata_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.request_.metadata_ = nullptr; + request_.metadata_ = nullptr; return temp; } else { return nullptr; } } inline const ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata& CopyFilesToMachineRequest::_internal_metadata() const { - return request_case() == kMetadata ? *_impl_.request_.metadata_ : reinterpret_cast<::viam::service::shell::v1::CopyFilesToMachineRequestMetadata&>(::viam::service::shell::v1::_CopyFilesToMachineRequestMetadata_default_instance_); + return _internal_has_metadata() + ? *request_.metadata_ + : reinterpret_cast< ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata&>(::viam::service::shell::v1::_CopyFilesToMachineRequestMetadata_default_instance_); } -inline const ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata& CopyFilesToMachineRequest::metadata() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata& CopyFilesToMachineRequest::metadata() const { // @@protoc_insertion_point(field_get:viam.service.shell.v1.CopyFilesToMachineRequest.metadata) return _internal_metadata(); } inline ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata* CopyFilesToMachineRequest::unsafe_arena_release_metadata() { // @@protoc_insertion_point(field_unsafe_arena_release:viam.service.shell.v1.CopyFilesToMachineRequest.metadata) - if (request_case() == kMetadata) { + if (_internal_has_metadata()) { clear_has_request(); - auto* temp = _impl_.request_.metadata_; - _impl_.request_.metadata_ = nullptr; + ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata* temp = request_.metadata_; + request_.metadata_ = nullptr; return temp; } else { return nullptr; } } -inline void CopyFilesToMachineRequest::unsafe_arena_set_allocated_metadata(::viam::service::shell::v1::CopyFilesToMachineRequestMetadata* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void CopyFilesToMachineRequest::unsafe_arena_set_allocated_metadata(::viam::service::shell::v1::CopyFilesToMachineRequestMetadata* metadata) { clear_request(); - if (value) { + if (metadata) { set_has_metadata(); - _impl_.request_.metadata_ = value; + request_.metadata_ = metadata; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.shell.v1.CopyFilesToMachineRequest.metadata) } inline ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata* CopyFilesToMachineRequest::_internal_mutable_metadata() { - if (request_case() != kMetadata) { + if (!_internal_has_metadata()) { clear_request(); set_has_metadata(); - _impl_.request_.metadata_ = CreateMaybeMessage<::viam::service::shell::v1::CopyFilesToMachineRequestMetadata>(GetArena()); + request_.metadata_ = CreateMaybeMessage< ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata >(GetArenaForAllocation()); } - return _impl_.request_.metadata_; + return request_.metadata_; } -inline ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata* CopyFilesToMachineRequest::mutable_metadata() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata* CopyFilesToMachineRequest::mutable_metadata() { ::viam::service::shell::v1::CopyFilesToMachineRequestMetadata* _msg = _internal_mutable_metadata(); // @@protoc_insertion_point(field_mutable:viam.service.shell.v1.CopyFilesToMachineRequest.metadata) return _msg; } // .viam.service.shell.v1.FileData file_data = 2 [json_name = "fileData"]; -inline bool CopyFilesToMachineRequest::has_file_data() const { - return request_case() == kFileData; -} inline bool CopyFilesToMachineRequest::_internal_has_file_data() const { return request_case() == kFileData; } +inline bool CopyFilesToMachineRequest::has_file_data() const { + return _internal_has_file_data(); +} inline void CopyFilesToMachineRequest::set_has_file_data() { - _impl_._oneof_case_[0] = kFileData; + _oneof_case_[0] = kFileData; } inline void CopyFilesToMachineRequest::clear_file_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (request_case() == kFileData) { - if (GetArena() == nullptr) { - delete _impl_.request_.file_data_; + if (_internal_has_file_data()) { + if (GetArenaForAllocation() == nullptr) { + delete request_.file_data_; } clear_has_request(); } } inline ::viam::service::shell::v1::FileData* CopyFilesToMachineRequest::release_file_data() { // @@protoc_insertion_point(field_release:viam.service.shell.v1.CopyFilesToMachineRequest.file_data) - if (request_case() == kFileData) { + if (_internal_has_file_data()) { clear_has_request(); - auto* temp = _impl_.request_.file_data_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::viam::service::shell::v1::FileData* temp = request_.file_data_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.request_.file_data_ = nullptr; + request_.file_data_ = nullptr; return temp; } else { return nullptr; } } inline const ::viam::service::shell::v1::FileData& CopyFilesToMachineRequest::_internal_file_data() const { - return request_case() == kFileData ? *_impl_.request_.file_data_ : reinterpret_cast<::viam::service::shell::v1::FileData&>(::viam::service::shell::v1::_FileData_default_instance_); + return _internal_has_file_data() + ? *request_.file_data_ + : reinterpret_cast< ::viam::service::shell::v1::FileData&>(::viam::service::shell::v1::_FileData_default_instance_); } -inline const ::viam::service::shell::v1::FileData& CopyFilesToMachineRequest::file_data() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::service::shell::v1::FileData& CopyFilesToMachineRequest::file_data() const { // @@protoc_insertion_point(field_get:viam.service.shell.v1.CopyFilesToMachineRequest.file_data) return _internal_file_data(); } inline ::viam::service::shell::v1::FileData* CopyFilesToMachineRequest::unsafe_arena_release_file_data() { // @@protoc_insertion_point(field_unsafe_arena_release:viam.service.shell.v1.CopyFilesToMachineRequest.file_data) - if (request_case() == kFileData) { + if (_internal_has_file_data()) { clear_has_request(); - auto* temp = _impl_.request_.file_data_; - _impl_.request_.file_data_ = nullptr; + ::viam::service::shell::v1::FileData* temp = request_.file_data_; + request_.file_data_ = nullptr; return temp; } else { return nullptr; } } -inline void CopyFilesToMachineRequest::unsafe_arena_set_allocated_file_data(::viam::service::shell::v1::FileData* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void CopyFilesToMachineRequest::unsafe_arena_set_allocated_file_data(::viam::service::shell::v1::FileData* file_data) { clear_request(); - if (value) { + if (file_data) { set_has_file_data(); - _impl_.request_.file_data_ = value; + request_.file_data_ = file_data; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.shell.v1.CopyFilesToMachineRequest.file_data) } inline ::viam::service::shell::v1::FileData* CopyFilesToMachineRequest::_internal_mutable_file_data() { - if (request_case() != kFileData) { + if (!_internal_has_file_data()) { clear_request(); set_has_file_data(); - _impl_.request_.file_data_ = CreateMaybeMessage<::viam::service::shell::v1::FileData>(GetArena()); + request_.file_data_ = CreateMaybeMessage< ::viam::service::shell::v1::FileData >(GetArenaForAllocation()); } - return _impl_.request_.file_data_; + return request_.file_data_; } -inline ::viam::service::shell::v1::FileData* CopyFilesToMachineRequest::mutable_file_data() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::service::shell::v1::FileData* CopyFilesToMachineRequest::mutable_file_data() { ::viam::service::shell::v1::FileData* _msg = _internal_mutable_file_data(); // @@protoc_insertion_point(field_mutable:viam.service.shell.v1.CopyFilesToMachineRequest.file_data) return _msg; @@ -3401,10 +2983,10 @@ inline bool CopyFilesToMachineRequest::has_request() const { return request_case() != REQUEST_NOT_SET; } inline void CopyFilesToMachineRequest::clear_has_request() { - _impl_._oneof_case_[0] = REQUEST_NOT_SET; + _oneof_case_[0] = REQUEST_NOT_SET; } inline CopyFilesToMachineRequest::RequestCase CopyFilesToMachineRequest::request_case() const { - return CopyFilesToMachineRequest::RequestCase(_impl_._oneof_case_[0]); + return CopyFilesToMachineRequest::RequestCase(_oneof_case_[0]); } // ------------------------------------------------------------------- @@ -3412,26 +2994,23 @@ inline CopyFilesToMachineRequest::RequestCase CopyFilesToMachineRequest::request // bool ack_last_file = 1 [json_name = "ackLastFile"]; inline void CopyFilesToMachineResponse::clear_ack_last_file() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.ack_last_file_ = false; + ack_last_file_ = false; +} +inline bool CopyFilesToMachineResponse::_internal_ack_last_file() const { + return ack_last_file_; } inline bool CopyFilesToMachineResponse::ack_last_file() const { // @@protoc_insertion_point(field_get:viam.service.shell.v1.CopyFilesToMachineResponse.ack_last_file) return _internal_ack_last_file(); } +inline void CopyFilesToMachineResponse::_internal_set_ack_last_file(bool value) { + + ack_last_file_ = value; +} inline void CopyFilesToMachineResponse::set_ack_last_file(bool value) { _internal_set_ack_last_file(value); // @@protoc_insertion_point(field_set:viam.service.shell.v1.CopyFilesToMachineResponse.ack_last_file) } -inline bool CopyFilesToMachineResponse::_internal_ack_last_file() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.ack_last_file_; -} -inline void CopyFilesToMachineResponse::_internal_set_ack_last_file(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.ack_last_file_ = value; -} // ------------------------------------------------------------------- @@ -3439,292 +3018,251 @@ inline void CopyFilesToMachineResponse::_internal_set_ack_last_file(bool value) // string name = 1 [json_name = "name"]; inline void CopyFilesFromMachineRequestMetadata::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& CopyFilesFromMachineRequestMetadata::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& CopyFilesFromMachineRequestMetadata::name() const { // @@protoc_insertion_point(field_get:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void CopyFilesFromMachineRequestMetadata::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void CopyFilesFromMachineRequestMetadata::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.name) } -inline std::string* CopyFilesFromMachineRequestMetadata::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* CopyFilesFromMachineRequestMetadata::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.name) return _s; } inline const std::string& CopyFilesFromMachineRequestMetadata::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void CopyFilesFromMachineRequestMetadata::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* CopyFilesFromMachineRequestMetadata::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* CopyFilesFromMachineRequestMetadata::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.name) - return _impl_.name_.Release(); -} -inline void CopyFilesFromMachineRequestMetadata::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void CopyFilesFromMachineRequestMetadata::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.service.shell.v1.CopyFilesFromMachineRequestMetadata.name) } // repeated string paths = 2 [json_name = "paths"]; inline int CopyFilesFromMachineRequestMetadata::_internal_paths_size() const { - return _internal_paths().size(); + return paths_.size(); } inline int CopyFilesFromMachineRequestMetadata::paths_size() const { return _internal_paths_size(); } inline void CopyFilesFromMachineRequestMetadata::clear_paths() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.paths_.Clear(); + paths_.Clear(); } -inline std::string* CopyFilesFromMachineRequestMetadata::add_paths() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_paths()->Add(); +inline std::string* CopyFilesFromMachineRequestMetadata::add_paths() { + std::string* _s = _internal_add_paths(); // @@protoc_insertion_point(field_add_mutable:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.paths) return _s; } -inline const std::string& CopyFilesFromMachineRequestMetadata::paths(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& CopyFilesFromMachineRequestMetadata::_internal_paths(int index) const { + return paths_.Get(index); +} +inline const std::string& CopyFilesFromMachineRequestMetadata::paths(int index) const { // @@protoc_insertion_point(field_get:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.paths) - return _internal_paths().Get(index); + return _internal_paths(index); } -inline std::string* CopyFilesFromMachineRequestMetadata::mutable_paths(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* CopyFilesFromMachineRequestMetadata::mutable_paths(int index) { // @@protoc_insertion_point(field_mutable:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.paths) - return _internal_mutable_paths()->Mutable(index); + return paths_.Mutable(index); } inline void CopyFilesFromMachineRequestMetadata::set_paths(int index, const std::string& value) { - _internal_mutable_paths()->Mutable(index)->assign(value); + paths_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.paths) } inline void CopyFilesFromMachineRequestMetadata::set_paths(int index, std::string&& value) { - _internal_mutable_paths()->Mutable(index)->assign(std::move(value)); + paths_.Mutable(index)->assign(std::move(value)); // @@protoc_insertion_point(field_set:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.paths) } inline void CopyFilesFromMachineRequestMetadata::set_paths(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_paths()->Mutable(index)->assign(value); + GOOGLE_DCHECK(value != nullptr); + paths_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.paths) } -inline void CopyFilesFromMachineRequestMetadata::set_paths(int index, const char* value, - std::size_t size) { - _internal_mutable_paths()->Mutable(index)->assign( - reinterpret_cast(value), size); +inline void CopyFilesFromMachineRequestMetadata::set_paths(int index, const char* value, size_t size) { + paths_.Mutable(index)->assign( + reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.paths) } -inline void CopyFilesFromMachineRequestMetadata::set_paths(int index, absl::string_view value) { - _internal_mutable_paths()->Mutable(index)->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_set_string_piece:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.paths) +inline std::string* CopyFilesFromMachineRequestMetadata::_internal_add_paths() { + return paths_.Add(); } inline void CopyFilesFromMachineRequestMetadata::add_paths(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_paths()->Add()->assign(value); + paths_.Add()->assign(value); // @@protoc_insertion_point(field_add:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.paths) } inline void CopyFilesFromMachineRequestMetadata::add_paths(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_paths()->Add(std::move(value)); + paths_.Add(std::move(value)); // @@protoc_insertion_point(field_add:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.paths) } inline void CopyFilesFromMachineRequestMetadata::add_paths(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_paths()->Add()->assign(value); + GOOGLE_DCHECK(value != nullptr); + paths_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.paths) } -inline void CopyFilesFromMachineRequestMetadata::add_paths(const char* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_paths()->Add()->assign( - reinterpret_cast(value), size); +inline void CopyFilesFromMachineRequestMetadata::add_paths(const char* value, size_t size) { + paths_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.paths) } -inline void CopyFilesFromMachineRequestMetadata::add_paths(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_paths()->Add()->assign(value.data(), value.size()); - // @@protoc_insertion_point(field_add_string_piece:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.paths) -} -inline const ::google::protobuf::RepeatedPtrField& -CopyFilesFromMachineRequestMetadata::paths() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +CopyFilesFromMachineRequestMetadata::paths() const { // @@protoc_insertion_point(field_list:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.paths) - return _internal_paths(); + return paths_; } -inline ::google::protobuf::RepeatedPtrField* -CopyFilesFromMachineRequestMetadata::mutable_paths() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +CopyFilesFromMachineRequestMetadata::mutable_paths() { // @@protoc_insertion_point(field_mutable_list:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.paths) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_paths(); -} -inline const ::google::protobuf::RepeatedPtrField& -CopyFilesFromMachineRequestMetadata::_internal_paths() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.paths_; -} -inline ::google::protobuf::RepeatedPtrField* -CopyFilesFromMachineRequestMetadata::_internal_mutable_paths() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.paths_; + return &paths_; } // bool allow_recursion = 3 [json_name = "allowRecursion"]; inline void CopyFilesFromMachineRequestMetadata::clear_allow_recursion() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.allow_recursion_ = false; + allow_recursion_ = false; +} +inline bool CopyFilesFromMachineRequestMetadata::_internal_allow_recursion() const { + return allow_recursion_; } inline bool CopyFilesFromMachineRequestMetadata::allow_recursion() const { // @@protoc_insertion_point(field_get:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.allow_recursion) return _internal_allow_recursion(); } +inline void CopyFilesFromMachineRequestMetadata::_internal_set_allow_recursion(bool value) { + + allow_recursion_ = value; +} inline void CopyFilesFromMachineRequestMetadata::set_allow_recursion(bool value) { _internal_set_allow_recursion(value); // @@protoc_insertion_point(field_set:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.allow_recursion) } -inline bool CopyFilesFromMachineRequestMetadata::_internal_allow_recursion() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.allow_recursion_; -} -inline void CopyFilesFromMachineRequestMetadata::_internal_set_allow_recursion(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.allow_recursion_ = value; -} // bool preserve = 4 [json_name = "preserve"]; inline void CopyFilesFromMachineRequestMetadata::clear_preserve() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.preserve_ = false; + preserve_ = false; +} +inline bool CopyFilesFromMachineRequestMetadata::_internal_preserve() const { + return preserve_; } inline bool CopyFilesFromMachineRequestMetadata::preserve() const { // @@protoc_insertion_point(field_get:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.preserve) return _internal_preserve(); } +inline void CopyFilesFromMachineRequestMetadata::_internal_set_preserve(bool value) { + + preserve_ = value; +} inline void CopyFilesFromMachineRequestMetadata::set_preserve(bool value) { _internal_set_preserve(value); // @@protoc_insertion_point(field_set:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.preserve) } -inline bool CopyFilesFromMachineRequestMetadata::_internal_preserve() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.preserve_; -} -inline void CopyFilesFromMachineRequestMetadata::_internal_set_preserve(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.preserve_ = value; -} // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool CopyFilesFromMachineRequestMetadata::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool CopyFilesFromMachineRequestMetadata::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& CopyFilesFromMachineRequestMetadata::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& CopyFilesFromMachineRequestMetadata::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& CopyFilesFromMachineRequestMetadata::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& CopyFilesFromMachineRequestMetadata::extra() const { // @@protoc_insertion_point(field_get:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.extra) return _internal_extra(); } -inline void CopyFilesFromMachineRequestMetadata::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void CopyFilesFromMachineRequestMetadata::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.extra) } -inline ::google::protobuf::Struct* CopyFilesFromMachineRequestMetadata::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* CopyFilesFromMachineRequestMetadata::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* CopyFilesFromMachineRequestMetadata::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* CopyFilesFromMachineRequestMetadata::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* CopyFilesFromMachineRequestMetadata::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* CopyFilesFromMachineRequestMetadata::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* CopyFilesFromMachineRequestMetadata::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* CopyFilesFromMachineRequestMetadata::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.extra) return _msg; } -inline void CopyFilesFromMachineRequestMetadata::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void CopyFilesFromMachineRequestMetadata::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.service.shell.v1.CopyFilesFromMachineRequestMetadata.extra) } @@ -3733,125 +3271,125 @@ inline void CopyFilesFromMachineRequestMetadata::set_allocated_extra(::google::p // CopyFilesFromMachineRequest // .viam.service.shell.v1.CopyFilesFromMachineRequestMetadata metadata = 1 [json_name = "metadata"]; -inline bool CopyFilesFromMachineRequest::has_metadata() const { - return request_case() == kMetadata; -} inline bool CopyFilesFromMachineRequest::_internal_has_metadata() const { return request_case() == kMetadata; } +inline bool CopyFilesFromMachineRequest::has_metadata() const { + return _internal_has_metadata(); +} inline void CopyFilesFromMachineRequest::set_has_metadata() { - _impl_._oneof_case_[0] = kMetadata; + _oneof_case_[0] = kMetadata; } inline void CopyFilesFromMachineRequest::clear_metadata() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (request_case() == kMetadata) { - if (GetArena() == nullptr) { - delete _impl_.request_.metadata_; + if (_internal_has_metadata()) { + if (GetArenaForAllocation() == nullptr) { + delete request_.metadata_; } clear_has_request(); } } inline ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata* CopyFilesFromMachineRequest::release_metadata() { // @@protoc_insertion_point(field_release:viam.service.shell.v1.CopyFilesFromMachineRequest.metadata) - if (request_case() == kMetadata) { + if (_internal_has_metadata()) { clear_has_request(); - auto* temp = _impl_.request_.metadata_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata* temp = request_.metadata_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.request_.metadata_ = nullptr; + request_.metadata_ = nullptr; return temp; } else { return nullptr; } } inline const ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata& CopyFilesFromMachineRequest::_internal_metadata() const { - return request_case() == kMetadata ? *_impl_.request_.metadata_ : reinterpret_cast<::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata&>(::viam::service::shell::v1::_CopyFilesFromMachineRequestMetadata_default_instance_); + return _internal_has_metadata() + ? *request_.metadata_ + : reinterpret_cast< ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata&>(::viam::service::shell::v1::_CopyFilesFromMachineRequestMetadata_default_instance_); } -inline const ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata& CopyFilesFromMachineRequest::metadata() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata& CopyFilesFromMachineRequest::metadata() const { // @@protoc_insertion_point(field_get:viam.service.shell.v1.CopyFilesFromMachineRequest.metadata) return _internal_metadata(); } inline ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata* CopyFilesFromMachineRequest::unsafe_arena_release_metadata() { // @@protoc_insertion_point(field_unsafe_arena_release:viam.service.shell.v1.CopyFilesFromMachineRequest.metadata) - if (request_case() == kMetadata) { + if (_internal_has_metadata()) { clear_has_request(); - auto* temp = _impl_.request_.metadata_; - _impl_.request_.metadata_ = nullptr; + ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata* temp = request_.metadata_; + request_.metadata_ = nullptr; return temp; } else { return nullptr; } } -inline void CopyFilesFromMachineRequest::unsafe_arena_set_allocated_metadata(::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void CopyFilesFromMachineRequest::unsafe_arena_set_allocated_metadata(::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata* metadata) { clear_request(); - if (value) { + if (metadata) { set_has_metadata(); - _impl_.request_.metadata_ = value; + request_.metadata_ = metadata; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.shell.v1.CopyFilesFromMachineRequest.metadata) } inline ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata* CopyFilesFromMachineRequest::_internal_mutable_metadata() { - if (request_case() != kMetadata) { + if (!_internal_has_metadata()) { clear_request(); set_has_metadata(); - _impl_.request_.metadata_ = CreateMaybeMessage<::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata>(GetArena()); + request_.metadata_ = CreateMaybeMessage< ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata >(GetArenaForAllocation()); } - return _impl_.request_.metadata_; + return request_.metadata_; } -inline ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata* CopyFilesFromMachineRequest::mutable_metadata() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata* CopyFilesFromMachineRequest::mutable_metadata() { ::viam::service::shell::v1::CopyFilesFromMachineRequestMetadata* _msg = _internal_mutable_metadata(); // @@protoc_insertion_point(field_mutable:viam.service.shell.v1.CopyFilesFromMachineRequest.metadata) return _msg; } // bool ack_last_file = 2 [json_name = "ackLastFile"]; -inline bool CopyFilesFromMachineRequest::has_ack_last_file() const { +inline bool CopyFilesFromMachineRequest::_internal_has_ack_last_file() const { return request_case() == kAckLastFile; } +inline bool CopyFilesFromMachineRequest::has_ack_last_file() const { + return _internal_has_ack_last_file(); +} inline void CopyFilesFromMachineRequest::set_has_ack_last_file() { - _impl_._oneof_case_[0] = kAckLastFile; + _oneof_case_[0] = kAckLastFile; } inline void CopyFilesFromMachineRequest::clear_ack_last_file() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (request_case() == kAckLastFile) { - _impl_.request_.ack_last_file_ = false; + if (_internal_has_ack_last_file()) { + request_.ack_last_file_ = false; clear_has_request(); } } -inline bool CopyFilesFromMachineRequest::ack_last_file() const { - // @@protoc_insertion_point(field_get:viam.service.shell.v1.CopyFilesFromMachineRequest.ack_last_file) - return _internal_ack_last_file(); -} -inline void CopyFilesFromMachineRequest::set_ack_last_file(bool value) { - _internal_set_ack_last_file(value); - // @@protoc_insertion_point(field_set:viam.service.shell.v1.CopyFilesFromMachineRequest.ack_last_file) -} inline bool CopyFilesFromMachineRequest::_internal_ack_last_file() const { - if (request_case() == kAckLastFile) { - return _impl_.request_.ack_last_file_; + if (_internal_has_ack_last_file()) { + return request_.ack_last_file_; } return false; } inline void CopyFilesFromMachineRequest::_internal_set_ack_last_file(bool value) { - if (request_case() != kAckLastFile) { + if (!_internal_has_ack_last_file()) { clear_request(); set_has_ack_last_file(); } - _impl_.request_.ack_last_file_ = value; + request_.ack_last_file_ = value; +} +inline bool CopyFilesFromMachineRequest::ack_last_file() const { + // @@protoc_insertion_point(field_get:viam.service.shell.v1.CopyFilesFromMachineRequest.ack_last_file) + return _internal_ack_last_file(); +} +inline void CopyFilesFromMachineRequest::set_ack_last_file(bool value) { + _internal_set_ack_last_file(value); + // @@protoc_insertion_point(field_set:viam.service.shell.v1.CopyFilesFromMachineRequest.ack_last_file) } inline bool CopyFilesFromMachineRequest::has_request() const { return request_case() != REQUEST_NOT_SET; } inline void CopyFilesFromMachineRequest::clear_has_request() { - _impl_._oneof_case_[0] = REQUEST_NOT_SET; + _oneof_case_[0] = REQUEST_NOT_SET; } inline CopyFilesFromMachineRequest::RequestCase CopyFilesFromMachineRequest::request_case() const { - return CopyFilesFromMachineRequest::RequestCase(_impl_._oneof_case_[0]); + return CopyFilesFromMachineRequest::RequestCase(_oneof_case_[0]); } // ------------------------------------------------------------------- @@ -3859,178 +3397,171 @@ inline CopyFilesFromMachineRequest::RequestCase CopyFilesFromMachineRequest::req // .viam.service.shell.v1.CopyFilesSourceType source_type = 1 [json_name = "sourceType"]; inline void CopyFilesFromMachineResponseMetadata::clear_source_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.source_type_ = 0; + source_type_ = 0; +} +inline ::viam::service::shell::v1::CopyFilesSourceType CopyFilesFromMachineResponseMetadata::_internal_source_type() const { + return static_cast< ::viam::service::shell::v1::CopyFilesSourceType >(source_type_); } inline ::viam::service::shell::v1::CopyFilesSourceType CopyFilesFromMachineResponseMetadata::source_type() const { // @@protoc_insertion_point(field_get:viam.service.shell.v1.CopyFilesFromMachineResponseMetadata.source_type) return _internal_source_type(); } +inline void CopyFilesFromMachineResponseMetadata::_internal_set_source_type(::viam::service::shell::v1::CopyFilesSourceType value) { + + source_type_ = value; +} inline void CopyFilesFromMachineResponseMetadata::set_source_type(::viam::service::shell::v1::CopyFilesSourceType value) { _internal_set_source_type(value); // @@protoc_insertion_point(field_set:viam.service.shell.v1.CopyFilesFromMachineResponseMetadata.source_type) } -inline ::viam::service::shell::v1::CopyFilesSourceType CopyFilesFromMachineResponseMetadata::_internal_source_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::viam::service::shell::v1::CopyFilesSourceType>(_impl_.source_type_); -} -inline void CopyFilesFromMachineResponseMetadata::_internal_set_source_type(::viam::service::shell::v1::CopyFilesSourceType value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.source_type_ = value; -} // ------------------------------------------------------------------- // CopyFilesFromMachineResponse // .viam.service.shell.v1.CopyFilesFromMachineResponseMetadata metadata = 1 [json_name = "metadata"]; -inline bool CopyFilesFromMachineResponse::has_metadata() const { - return response_case() == kMetadata; -} inline bool CopyFilesFromMachineResponse::_internal_has_metadata() const { return response_case() == kMetadata; } +inline bool CopyFilesFromMachineResponse::has_metadata() const { + return _internal_has_metadata(); +} inline void CopyFilesFromMachineResponse::set_has_metadata() { - _impl_._oneof_case_[0] = kMetadata; + _oneof_case_[0] = kMetadata; } inline void CopyFilesFromMachineResponse::clear_metadata() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (response_case() == kMetadata) { - if (GetArena() == nullptr) { - delete _impl_.response_.metadata_; + if (_internal_has_metadata()) { + if (GetArenaForAllocation() == nullptr) { + delete response_.metadata_; } clear_has_response(); } } inline ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata* CopyFilesFromMachineResponse::release_metadata() { // @@protoc_insertion_point(field_release:viam.service.shell.v1.CopyFilesFromMachineResponse.metadata) - if (response_case() == kMetadata) { + if (_internal_has_metadata()) { clear_has_response(); - auto* temp = _impl_.response_.metadata_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata* temp = response_.metadata_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.response_.metadata_ = nullptr; + response_.metadata_ = nullptr; return temp; } else { return nullptr; } } inline const ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata& CopyFilesFromMachineResponse::_internal_metadata() const { - return response_case() == kMetadata ? *_impl_.response_.metadata_ : reinterpret_cast<::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata&>(::viam::service::shell::v1::_CopyFilesFromMachineResponseMetadata_default_instance_); + return _internal_has_metadata() + ? *response_.metadata_ + : reinterpret_cast< ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata&>(::viam::service::shell::v1::_CopyFilesFromMachineResponseMetadata_default_instance_); } -inline const ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata& CopyFilesFromMachineResponse::metadata() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata& CopyFilesFromMachineResponse::metadata() const { // @@protoc_insertion_point(field_get:viam.service.shell.v1.CopyFilesFromMachineResponse.metadata) return _internal_metadata(); } inline ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata* CopyFilesFromMachineResponse::unsafe_arena_release_metadata() { // @@protoc_insertion_point(field_unsafe_arena_release:viam.service.shell.v1.CopyFilesFromMachineResponse.metadata) - if (response_case() == kMetadata) { + if (_internal_has_metadata()) { clear_has_response(); - auto* temp = _impl_.response_.metadata_; - _impl_.response_.metadata_ = nullptr; + ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata* temp = response_.metadata_; + response_.metadata_ = nullptr; return temp; } else { return nullptr; } } -inline void CopyFilesFromMachineResponse::unsafe_arena_set_allocated_metadata(::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void CopyFilesFromMachineResponse::unsafe_arena_set_allocated_metadata(::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata* metadata) { clear_response(); - if (value) { + if (metadata) { set_has_metadata(); - _impl_.response_.metadata_ = value; + response_.metadata_ = metadata; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.shell.v1.CopyFilesFromMachineResponse.metadata) } inline ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata* CopyFilesFromMachineResponse::_internal_mutable_metadata() { - if (response_case() != kMetadata) { + if (!_internal_has_metadata()) { clear_response(); set_has_metadata(); - _impl_.response_.metadata_ = CreateMaybeMessage<::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata>(GetArena()); + response_.metadata_ = CreateMaybeMessage< ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata >(GetArenaForAllocation()); } - return _impl_.response_.metadata_; + return response_.metadata_; } -inline ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata* CopyFilesFromMachineResponse::mutable_metadata() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata* CopyFilesFromMachineResponse::mutable_metadata() { ::viam::service::shell::v1::CopyFilesFromMachineResponseMetadata* _msg = _internal_mutable_metadata(); // @@protoc_insertion_point(field_mutable:viam.service.shell.v1.CopyFilesFromMachineResponse.metadata) return _msg; } // .viam.service.shell.v1.FileData file_data = 2 [json_name = "fileData"]; -inline bool CopyFilesFromMachineResponse::has_file_data() const { - return response_case() == kFileData; -} inline bool CopyFilesFromMachineResponse::_internal_has_file_data() const { return response_case() == kFileData; } +inline bool CopyFilesFromMachineResponse::has_file_data() const { + return _internal_has_file_data(); +} inline void CopyFilesFromMachineResponse::set_has_file_data() { - _impl_._oneof_case_[0] = kFileData; + _oneof_case_[0] = kFileData; } inline void CopyFilesFromMachineResponse::clear_file_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (response_case() == kFileData) { - if (GetArena() == nullptr) { - delete _impl_.response_.file_data_; + if (_internal_has_file_data()) { + if (GetArenaForAllocation() == nullptr) { + delete response_.file_data_; } clear_has_response(); } } inline ::viam::service::shell::v1::FileData* CopyFilesFromMachineResponse::release_file_data() { // @@protoc_insertion_point(field_release:viam.service.shell.v1.CopyFilesFromMachineResponse.file_data) - if (response_case() == kFileData) { + if (_internal_has_file_data()) { clear_has_response(); - auto* temp = _impl_.response_.file_data_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + ::viam::service::shell::v1::FileData* temp = response_.file_data_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.response_.file_data_ = nullptr; + response_.file_data_ = nullptr; return temp; } else { return nullptr; } } inline const ::viam::service::shell::v1::FileData& CopyFilesFromMachineResponse::_internal_file_data() const { - return response_case() == kFileData ? *_impl_.response_.file_data_ : reinterpret_cast<::viam::service::shell::v1::FileData&>(::viam::service::shell::v1::_FileData_default_instance_); + return _internal_has_file_data() + ? *response_.file_data_ + : reinterpret_cast< ::viam::service::shell::v1::FileData&>(::viam::service::shell::v1::_FileData_default_instance_); } -inline const ::viam::service::shell::v1::FileData& CopyFilesFromMachineResponse::file_data() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::service::shell::v1::FileData& CopyFilesFromMachineResponse::file_data() const { // @@protoc_insertion_point(field_get:viam.service.shell.v1.CopyFilesFromMachineResponse.file_data) return _internal_file_data(); } inline ::viam::service::shell::v1::FileData* CopyFilesFromMachineResponse::unsafe_arena_release_file_data() { // @@protoc_insertion_point(field_unsafe_arena_release:viam.service.shell.v1.CopyFilesFromMachineResponse.file_data) - if (response_case() == kFileData) { + if (_internal_has_file_data()) { clear_has_response(); - auto* temp = _impl_.response_.file_data_; - _impl_.response_.file_data_ = nullptr; + ::viam::service::shell::v1::FileData* temp = response_.file_data_; + response_.file_data_ = nullptr; return temp; } else { return nullptr; } } -inline void CopyFilesFromMachineResponse::unsafe_arena_set_allocated_file_data(::viam::service::shell::v1::FileData* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. +inline void CopyFilesFromMachineResponse::unsafe_arena_set_allocated_file_data(::viam::service::shell::v1::FileData* file_data) { clear_response(); - if (value) { + if (file_data) { set_has_file_data(); - _impl_.response_.file_data_ = value; + response_.file_data_ = file_data; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.shell.v1.CopyFilesFromMachineResponse.file_data) } inline ::viam::service::shell::v1::FileData* CopyFilesFromMachineResponse::_internal_mutable_file_data() { - if (response_case() != kFileData) { + if (!_internal_has_file_data()) { clear_response(); set_has_file_data(); - _impl_.response_.file_data_ = CreateMaybeMessage<::viam::service::shell::v1::FileData>(GetArena()); + response_.file_data_ = CreateMaybeMessage< ::viam::service::shell::v1::FileData >(GetArenaForAllocation()); } - return _impl_.response_.file_data_; + return response_.file_data_; } -inline ::viam::service::shell::v1::FileData* CopyFilesFromMachineResponse::mutable_file_data() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::service::shell::v1::FileData* CopyFilesFromMachineResponse::mutable_file_data() { ::viam::service::shell::v1::FileData* _msg = _internal_mutable_file_data(); // @@protoc_insertion_point(field_mutable:viam.service.shell.v1.CopyFilesFromMachineResponse.file_data) return _msg; @@ -4040,37 +3571,51 @@ inline bool CopyFilesFromMachineResponse::has_response() const { return response_case() != RESPONSE_NOT_SET; } inline void CopyFilesFromMachineResponse::clear_has_response() { - _impl_._oneof_case_[0] = RESPONSE_NOT_SET; + _oneof_case_[0] = RESPONSE_NOT_SET; } inline CopyFilesFromMachineResponse::ResponseCase CopyFilesFromMachineResponse::response_case() const { - return CopyFilesFromMachineResponse::ResponseCase(_impl_._oneof_case_[0]); + return CopyFilesFromMachineResponse::ResponseCase(_oneof_case_[0]); } #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) + } // namespace v1 } // namespace shell } // namespace service } // namespace viam +PROTOBUF_NAMESPACE_OPEN -namespace google { -namespace protobuf { - +template <> struct is_proto_enum< ::viam::service::shell::v1::CopyFilesSourceType> : ::std::true_type {}; template <> -struct is_proto_enum<::viam::service::shell::v1::CopyFilesSourceType> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::viam::service::shell::v1::CopyFilesSourceType>() { +inline const EnumDescriptor* GetEnumDescriptor< ::viam::service::shell::v1::CopyFilesSourceType>() { return ::viam::service::shell::v1::CopyFilesSourceType_descriptor(); } -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_service_2fshell_2fv1_2fshell_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_service_2fshell_2fv1_2fshell_2eproto diff --git a/src/viam/api/service/slam/v1/slam.grpc.pb.cc b/src/viam/api/service/slam/v1/slam.grpc.pb.cc index 52bd500aa..cde95b6d1 100644 --- a/src/viam/api/service/slam/v1/slam.grpc.pb.cc +++ b/src/viam/api/service/slam/v1/slam.grpc.pb.cc @@ -6,19 +6,19 @@ #include "service/slam/v1/slam.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace service { namespace slam { @@ -34,126 +34,141 @@ static const char* SLAMService_method_names[] = { std::unique_ptr< SLAMService::Stub> SLAMService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { (void)options; - std::unique_ptr< SLAMService::Stub> stub(new SLAMService::Stub(channel, options)); + std::unique_ptr< SLAMService::Stub> stub(new SLAMService::Stub(channel)); return stub; } -SLAMService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) - : channel_(channel), rpcmethod_GetPosition_(SLAMService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetPointCloudMap_(SLAMService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::SERVER_STREAMING, channel) - , rpcmethod_GetInternalState_(SLAMService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::SERVER_STREAMING, channel) - , rpcmethod_GetProperties_(SLAMService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_DoCommand_(SLAMService_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) +SLAMService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_GetPosition_(SLAMService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetPointCloudMap_(SLAMService_method_names[1], ::grpc::internal::RpcMethod::SERVER_STREAMING, channel) + , rpcmethod_GetInternalState_(SLAMService_method_names[2], ::grpc::internal::RpcMethod::SERVER_STREAMING, channel) + , rpcmethod_GetProperties_(SLAMService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DoCommand_(SLAMService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status SLAMService::Stub::GetPosition(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPositionRequest& request, ::viam::service::slam::v1::GetPositionResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::service::slam::v1::GetPositionRequest, ::viam::service::slam::v1::GetPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetPosition_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetPosition_, context, request, response); } -void SLAMService::Stub::async::GetPosition(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPositionRequest* request, ::viam::service::slam::v1::GetPositionResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::service::slam::v1::GetPositionRequest, ::viam::service::slam::v1::GetPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetPosition_, context, request, response, std::move(f)); +void SLAMService::Stub::experimental_async::GetPosition(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPositionRequest* request, ::viam::service::slam::v1::GetPositionResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetPosition_, context, request, response, std::move(f)); } -void SLAMService::Stub::async::GetPosition(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPositionRequest* request, ::viam::service::slam::v1::GetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetPosition_, context, request, response, reactor); +void SLAMService::Stub::experimental_async::GetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::slam::v1::GetPositionResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetPosition_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::service::slam::v1::GetPositionResponse>* SLAMService::Stub::PrepareAsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::slam::v1::GetPositionResponse, ::viam::service::slam::v1::GetPositionRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetPosition_, context, request); +void SLAMService::Stub::experimental_async::GetPosition(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPositionRequest* request, ::viam::service::slam::v1::GetPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetPosition_, context, request, response, reactor); +} + +void SLAMService::Stub::experimental_async::GetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::slam::v1::GetPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetPosition_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::service::slam::v1::GetPositionResponse>* SLAMService::Stub::AsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetPositionRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::slam::v1::GetPositionResponse>::Create(channel_.get(), cq, rpcmethod_GetPosition_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::slam::v1::GetPositionResponse>* SLAMService::Stub::PrepareAsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::slam::v1::GetPositionResponse>::Create(channel_.get(), cq, rpcmethod_GetPosition_, context, request, false); } ::grpc::ClientReader< ::viam::service::slam::v1::GetPointCloudMapResponse>* SLAMService::Stub::GetPointCloudMapRaw(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPointCloudMapRequest& request) { - return ::grpc::internal::ClientReaderFactory< ::viam::service::slam::v1::GetPointCloudMapResponse>::Create(channel_.get(), rpcmethod_GetPointCloudMap_, context, request); + return ::grpc_impl::internal::ClientReaderFactory< ::viam::service::slam::v1::GetPointCloudMapResponse>::Create(channel_.get(), rpcmethod_GetPointCloudMap_, context, request); } -void SLAMService::Stub::async::GetPointCloudMap(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPointCloudMapRequest* request, ::grpc::ClientReadReactor< ::viam::service::slam::v1::GetPointCloudMapResponse>* reactor) { - ::grpc::internal::ClientCallbackReaderFactory< ::viam::service::slam::v1::GetPointCloudMapResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_GetPointCloudMap_, context, request, reactor); +void SLAMService::Stub::experimental_async::GetPointCloudMap(::grpc::ClientContext* context, ::viam::service::slam::v1::GetPointCloudMapRequest* request, ::grpc::experimental::ClientReadReactor< ::viam::service::slam::v1::GetPointCloudMapResponse>* reactor) { + ::grpc_impl::internal::ClientCallbackReaderFactory< ::viam::service::slam::v1::GetPointCloudMapResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_GetPointCloudMap_, context, request, reactor); } ::grpc::ClientAsyncReader< ::viam::service::slam::v1::GetPointCloudMapResponse>* SLAMService::Stub::AsyncGetPointCloudMapRaw(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPointCloudMapRequest& request, ::grpc::CompletionQueue* cq, void* tag) { - return ::grpc::internal::ClientAsyncReaderFactory< ::viam::service::slam::v1::GetPointCloudMapResponse>::Create(channel_.get(), cq, rpcmethod_GetPointCloudMap_, context, request, true, tag); + return ::grpc_impl::internal::ClientAsyncReaderFactory< ::viam::service::slam::v1::GetPointCloudMapResponse>::Create(channel_.get(), cq, rpcmethod_GetPointCloudMap_, context, request, true, tag); } ::grpc::ClientAsyncReader< ::viam::service::slam::v1::GetPointCloudMapResponse>* SLAMService::Stub::PrepareAsyncGetPointCloudMapRaw(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPointCloudMapRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncReaderFactory< ::viam::service::slam::v1::GetPointCloudMapResponse>::Create(channel_.get(), cq, rpcmethod_GetPointCloudMap_, context, request, false, nullptr); + return ::grpc_impl::internal::ClientAsyncReaderFactory< ::viam::service::slam::v1::GetPointCloudMapResponse>::Create(channel_.get(), cq, rpcmethod_GetPointCloudMap_, context, request, false, nullptr); } ::grpc::ClientReader< ::viam::service::slam::v1::GetInternalStateResponse>* SLAMService::Stub::GetInternalStateRaw(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetInternalStateRequest& request) { - return ::grpc::internal::ClientReaderFactory< ::viam::service::slam::v1::GetInternalStateResponse>::Create(channel_.get(), rpcmethod_GetInternalState_, context, request); + return ::grpc_impl::internal::ClientReaderFactory< ::viam::service::slam::v1::GetInternalStateResponse>::Create(channel_.get(), rpcmethod_GetInternalState_, context, request); } -void SLAMService::Stub::async::GetInternalState(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetInternalStateRequest* request, ::grpc::ClientReadReactor< ::viam::service::slam::v1::GetInternalStateResponse>* reactor) { - ::grpc::internal::ClientCallbackReaderFactory< ::viam::service::slam::v1::GetInternalStateResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_GetInternalState_, context, request, reactor); +void SLAMService::Stub::experimental_async::GetInternalState(::grpc::ClientContext* context, ::viam::service::slam::v1::GetInternalStateRequest* request, ::grpc::experimental::ClientReadReactor< ::viam::service::slam::v1::GetInternalStateResponse>* reactor) { + ::grpc_impl::internal::ClientCallbackReaderFactory< ::viam::service::slam::v1::GetInternalStateResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_GetInternalState_, context, request, reactor); } ::grpc::ClientAsyncReader< ::viam::service::slam::v1::GetInternalStateResponse>* SLAMService::Stub::AsyncGetInternalStateRaw(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetInternalStateRequest& request, ::grpc::CompletionQueue* cq, void* tag) { - return ::grpc::internal::ClientAsyncReaderFactory< ::viam::service::slam::v1::GetInternalStateResponse>::Create(channel_.get(), cq, rpcmethod_GetInternalState_, context, request, true, tag); + return ::grpc_impl::internal::ClientAsyncReaderFactory< ::viam::service::slam::v1::GetInternalStateResponse>::Create(channel_.get(), cq, rpcmethod_GetInternalState_, context, request, true, tag); } ::grpc::ClientAsyncReader< ::viam::service::slam::v1::GetInternalStateResponse>* SLAMService::Stub::PrepareAsyncGetInternalStateRaw(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetInternalStateRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncReaderFactory< ::viam::service::slam::v1::GetInternalStateResponse>::Create(channel_.get(), cq, rpcmethod_GetInternalState_, context, request, false, nullptr); + return ::grpc_impl::internal::ClientAsyncReaderFactory< ::viam::service::slam::v1::GetInternalStateResponse>::Create(channel_.get(), cq, rpcmethod_GetInternalState_, context, request, false, nullptr); } ::grpc::Status SLAMService::Stub::GetProperties(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPropertiesRequest& request, ::viam::service::slam::v1::GetPropertiesResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::service::slam::v1::GetPropertiesRequest, ::viam::service::slam::v1::GetPropertiesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetProperties_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetProperties_, context, request, response); } -void SLAMService::Stub::async::GetProperties(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPropertiesRequest* request, ::viam::service::slam::v1::GetPropertiesResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::service::slam::v1::GetPropertiesRequest, ::viam::service::slam::v1::GetPropertiesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetProperties_, context, request, response, std::move(f)); +void SLAMService::Stub::experimental_async::GetProperties(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPropertiesRequest* request, ::viam::service::slam::v1::GetPropertiesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetProperties_, context, request, response, std::move(f)); } -void SLAMService::Stub::async::GetProperties(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPropertiesRequest* request, ::viam::service::slam::v1::GetPropertiesResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetProperties_, context, request, response, reactor); +void SLAMService::Stub::experimental_async::GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::slam::v1::GetPropertiesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetProperties_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::service::slam::v1::GetPropertiesResponse>* SLAMService::Stub::PrepareAsyncGetPropertiesRaw(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPropertiesRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::slam::v1::GetPropertiesResponse, ::viam::service::slam::v1::GetPropertiesRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetProperties_, context, request); +void SLAMService::Stub::experimental_async::GetProperties(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPropertiesRequest* request, ::viam::service::slam::v1::GetPropertiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetProperties_, context, request, response, reactor); +} + +void SLAMService::Stub::experimental_async::GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::slam::v1::GetPropertiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetProperties_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::service::slam::v1::GetPropertiesResponse>* SLAMService::Stub::AsyncGetPropertiesRaw(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPropertiesRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetPropertiesRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::slam::v1::GetPropertiesResponse>::Create(channel_.get(), cq, rpcmethod_GetProperties_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::slam::v1::GetPropertiesResponse>* SLAMService::Stub::PrepareAsyncGetPropertiesRaw(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPropertiesRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::slam::v1::GetPropertiesResponse>::Create(channel_.get(), cq, rpcmethod_GetProperties_, context, request, false); } ::grpc::Status SLAMService::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); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DoCommand_, context, request, response); } -void SLAMService::Stub::async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); +void SLAMService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); } -void SLAMService::Stub::async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); +void SLAMService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* SLAMService::Stub::PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::common::v1::DoCommandResponse, ::viam::common::v1::DoCommandRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DoCommand_, context, request); +void SLAMService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); +} + +void SLAMService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* SLAMService::Stub::AsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncDoCommandRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::DoCommandResponse>::Create(channel_.get(), cq, rpcmethod_DoCommand_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* SLAMService::Stub::PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::DoCommandResponse>::Create(channel_.get(), cq, rpcmethod_DoCommand_, context, request, false); } SLAMService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( SLAMService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< SLAMService::Service, ::viam::service::slam::v1::GetPositionRequest, ::viam::service::slam::v1::GetPositionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< SLAMService::Service, ::viam::service::slam::v1::GetPositionRequest, ::viam::service::slam::v1::GetPositionResponse>( [](SLAMService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::service::slam::v1::GetPositionRequest* req, ::viam::service::slam::v1::GetPositionResponse* resp) { return service->GetPosition(ctx, req, resp); @@ -163,9 +178,9 @@ SLAMService::Service::Service() { ::grpc::internal::RpcMethod::SERVER_STREAMING, new ::grpc::internal::ServerStreamingHandler< SLAMService::Service, ::viam::service::slam::v1::GetPointCloudMapRequest, ::viam::service::slam::v1::GetPointCloudMapResponse>( [](SLAMService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::service::slam::v1::GetPointCloudMapRequest* req, - ::grpc::ServerWriter<::viam::service::slam::v1::GetPointCloudMapResponse>* writer) { + ::grpc_impl::ServerWriter<::viam::service::slam::v1::GetPointCloudMapResponse>* writer) { return service->GetPointCloudMap(ctx, req, writer); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( @@ -173,17 +188,17 @@ SLAMService::Service::Service() { ::grpc::internal::RpcMethod::SERVER_STREAMING, new ::grpc::internal::ServerStreamingHandler< SLAMService::Service, ::viam::service::slam::v1::GetInternalStateRequest, ::viam::service::slam::v1::GetInternalStateResponse>( [](SLAMService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::service::slam::v1::GetInternalStateRequest* req, - ::grpc::ServerWriter<::viam::service::slam::v1::GetInternalStateResponse>* writer) { + ::grpc_impl::ServerWriter<::viam::service::slam::v1::GetInternalStateResponse>* writer) { return service->GetInternalState(ctx, req, writer); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( SLAMService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< SLAMService::Service, ::viam::service::slam::v1::GetPropertiesRequest, ::viam::service::slam::v1::GetPropertiesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< SLAMService::Service, ::viam::service::slam::v1::GetPropertiesRequest, ::viam::service::slam::v1::GetPropertiesResponse>( [](SLAMService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::service::slam::v1::GetPropertiesRequest* req, ::viam::service::slam::v1::GetPropertiesResponse* resp) { return service->GetProperties(ctx, req, resp); @@ -191,9 +206,9 @@ SLAMService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( SLAMService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< SLAMService::Service, ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< SLAMService::Service, ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( [](SLAMService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::common::v1::DoCommandRequest* req, ::viam::common::v1::DoCommandResponse* resp) { return service->DoCommand(ctx, req, resp); diff --git a/src/viam/api/service/slam/v1/slam.grpc.pb.h b/src/viam/api/service/slam/v1/slam.grpc.pb.h index cc57595cf..8015fc76e 100644 --- a/src/viam/api/service/slam/v1/slam.grpc.pb.h +++ b/src/viam/api/service/slam/v1/slam.grpc.pb.h @@ -7,23 +7,24 @@ #include "service/slam/v1/slam.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace service { @@ -89,33 +90,75 @@ class SLAMService final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::DoCommandResponse>> PrepareAsyncDoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::DoCommandResponse>>(PrepareAsyncDoCommandRaw(context, request, cq)); } - class async_interface { + class experimental_async_interface { public: - virtual ~async_interface() {} + virtual ~experimental_async_interface() {} // GetPosition returns the current estimated position of the robot with // respect to a returned component reference. virtual void GetPosition(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPositionRequest* request, ::viam::service::slam::v1::GetPositionResponse* response, std::function) = 0; + virtual void GetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::slam::v1::GetPositionResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetPosition(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPositionRequest* request, ::viam::service::slam::v1::GetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetPosition(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPositionRequest* request, ::viam::service::slam::v1::GetPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::slam::v1::GetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::slam::v1::GetPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // GetPointCloudMap returns the latest pointcloud map available where XY is the ground // plane and positive Z is up, following the Right Hand Rule. - virtual void GetPointCloudMap(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPointCloudMapRequest* request, ::grpc::ClientReadReactor< ::viam::service::slam::v1::GetPointCloudMapResponse>* reactor) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetPointCloudMap(::grpc::ClientContext* context, ::viam::service::slam::v1::GetPointCloudMapRequest* request, ::grpc::ClientReadReactor< ::viam::service::slam::v1::GetPointCloudMapResponse>* reactor) = 0; + #else + virtual void GetPointCloudMap(::grpc::ClientContext* context, ::viam::service::slam::v1::GetPointCloudMapRequest* request, ::grpc::experimental::ClientReadReactor< ::viam::service::slam::v1::GetPointCloudMapResponse>* reactor) = 0; + #endif // GetInternalState returns the internal map as defined by the specified slam // algorithm required to continue mapping/localizing. // This endpoint is not intended for end users. - virtual void GetInternalState(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetInternalStateRequest* request, ::grpc::ClientReadReactor< ::viam::service::slam::v1::GetInternalStateResponse>* reactor) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetInternalState(::grpc::ClientContext* context, ::viam::service::slam::v1::GetInternalStateRequest* request, ::grpc::ClientReadReactor< ::viam::service::slam::v1::GetInternalStateResponse>* reactor) = 0; + #else + virtual void GetInternalState(::grpc::ClientContext* context, ::viam::service::slam::v1::GetInternalStateRequest* request, ::grpc::experimental::ClientReadReactor< ::viam::service::slam::v1::GetInternalStateResponse>* reactor) = 0; + #endif // GetProperties returns properties of the current slam service including mapping_mode // and cloud_slam, where mapping_mode is the type of mapping/localizing being performed // and cloud_slam is a boolean representing if this SLAM service is being run in the cloud. virtual void GetProperties(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPropertiesRequest* request, ::viam::service::slam::v1::GetPropertiesResponse* response, std::function) = 0; + virtual void GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::slam::v1::GetPropertiesResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetProperties(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPropertiesRequest* request, ::viam::service::slam::v1::GetPropertiesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetProperties(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPropertiesRequest* request, ::viam::service::slam::v1::GetPropertiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::slam::v1::GetPropertiesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::slam::v1::GetPropertiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // 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 ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif }; - typedef class async_interface experimental_async_interface; - virtual class async_interface* async() { return nullptr; } - class async_interface* experimental_async() { return async(); } - private: + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef class experimental_async_interface async_interface; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + async_interface* async() { return experimental_async(); } + #endif + virtual class experimental_async_interface* experimental_async() { return nullptr; } + private: virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::slam::v1::GetPositionResponse>* AsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::slam::v1::GetPositionResponse>* PrepareAsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientReaderInterface< ::viam::service::slam::v1::GetPointCloudMapResponse>* GetPointCloudMapRaw(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPointCloudMapRequest& request) = 0; @@ -131,7 +174,7 @@ class SLAMService final { }; class Stub final : public StubInterface { public: - Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); ::grpc::Status GetPosition(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPositionRequest& request, ::viam::service::slam::v1::GetPositionResponse* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::slam::v1::GetPositionResponse>> AsyncGetPosition(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::slam::v1::GetPositionResponse>>(AsyncGetPositionRaw(context, request, cq)); @@ -171,28 +214,66 @@ class SLAMService final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>> PrepareAsyncDoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>>(PrepareAsyncDoCommandRaw(context, request, cq)); } - class async final : - public StubInterface::async_interface { + class experimental_async final : + public StubInterface::experimental_async_interface { public: void GetPosition(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPositionRequest* request, ::viam::service::slam::v1::GetPositionResponse* response, std::function) override; + void GetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::slam::v1::GetPositionResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetPosition(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPositionRequest* request, ::viam::service::slam::v1::GetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - void GetPointCloudMap(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPointCloudMapRequest* request, ::grpc::ClientReadReactor< ::viam::service::slam::v1::GetPointCloudMapResponse>* reactor) override; - void GetInternalState(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetInternalStateRequest* request, ::grpc::ClientReadReactor< ::viam::service::slam::v1::GetInternalStateResponse>* reactor) override; + #else + void GetPosition(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPositionRequest* request, ::viam::service::slam::v1::GetPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::slam::v1::GetPositionResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetPosition(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::slam::v1::GetPositionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetPointCloudMap(::grpc::ClientContext* context, ::viam::service::slam::v1::GetPointCloudMapRequest* request, ::grpc::ClientReadReactor< ::viam::service::slam::v1::GetPointCloudMapResponse>* reactor) override; + #else + void GetPointCloudMap(::grpc::ClientContext* context, ::viam::service::slam::v1::GetPointCloudMapRequest* request, ::grpc::experimental::ClientReadReactor< ::viam::service::slam::v1::GetPointCloudMapResponse>* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetInternalState(::grpc::ClientContext* context, ::viam::service::slam::v1::GetInternalStateRequest* request, ::grpc::ClientReadReactor< ::viam::service::slam::v1::GetInternalStateResponse>* reactor) override; + #else + void GetInternalState(::grpc::ClientContext* context, ::viam::service::slam::v1::GetInternalStateRequest* request, ::grpc::experimental::ClientReadReactor< ::viam::service::slam::v1::GetInternalStateResponse>* reactor) override; + #endif void GetProperties(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPropertiesRequest* request, ::viam::service::slam::v1::GetPropertiesResponse* response, std::function) override; + void GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::slam::v1::GetPropertiesResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetProperties(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPropertiesRequest* request, ::viam::service::slam::v1::GetPropertiesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetProperties(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPropertiesRequest* request, ::viam::service::slam::v1::GetPropertiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::slam::v1::GetPropertiesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::slam::v1::GetPropertiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif 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 ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif private: friend class Stub; - explicit async(Stub* stub): stub_(stub) { } + explicit experimental_async(Stub* stub): stub_(stub) { } Stub* stub() { return stub_; } Stub* stub_; }; - class async* async() override { return &async_stub_; } + class experimental_async_interface* experimental_async() override { return &async_stub_; } private: std::shared_ptr< ::grpc::ChannelInterface> channel_; - class async async_stub_{this}; + class experimental_async async_stub_{this}; ::grpc::ClientAsyncResponseReader< ::viam::service::slam::v1::GetPositionResponse>* AsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::service::slam::v1::GetPositionResponse>* PrepareAsyncGetPositionRaw(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPositionRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientReader< ::viam::service::slam::v1::GetPointCloudMapResponse>* GetPointCloudMapRaw(::grpc::ClientContext* context, const ::viam::service::slam::v1::GetPointCloudMapRequest& request) override; @@ -336,22 +417,36 @@ class SLAMService final { }; typedef WithAsyncMethod_GetPosition > > > > AsyncService; template - class WithCallbackMethod_GetPosition : public BaseClass { + class ExperimentalWithCallbackMethod_GetPosition : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetPosition() { - ::grpc::Service::MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::viam::service::slam::v1::GetPositionRequest, ::viam::service::slam::v1::GetPositionResponse>( + ExperimentalWithCallbackMethod_GetPosition() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::slam::v1::GetPositionRequest, ::viam::service::slam::v1::GetPositionResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::service::slam::v1::GetPositionRequest* request, ::viam::service::slam::v1::GetPositionResponse* response) { return this->GetPosition(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::service::slam::v1::GetPositionRequest* request, ::viam::service::slam::v1::GetPositionResponse* response) { return this->GetPosition(context, request, response); }));} void SetMessageAllocatorFor_GetPosition( - ::grpc::MessageAllocator< ::viam::service::slam::v1::GetPositionRequest, ::viam::service::slam::v1::GetPositionResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::service::slam::v1::GetPositionRequest, ::viam::service::slam::v1::GetPositionResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::slam::v1::GetPositionRequest, ::viam::service::slam::v1::GetPositionResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(0); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::slam::v1::GetPositionRequest, ::viam::service::slam::v1::GetPositionResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetPosition() override { + ~ExperimentalWithCallbackMethod_GetPosition() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -359,21 +454,37 @@ class SLAMService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetPosition( - ::grpc::CallbackServerContext* /*context*/, const ::viam::service::slam::v1::GetPositionRequest* /*request*/, ::viam::service::slam::v1::GetPositionResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::slam::v1::GetPositionRequest* /*request*/, ::viam::service::slam::v1::GetPositionResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetPosition( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::service::slam::v1::GetPositionRequest* /*request*/, ::viam::service::slam::v1::GetPositionResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetPointCloudMap : public BaseClass { + class ExperimentalWithCallbackMethod_GetPointCloudMap : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetPointCloudMap() { - ::grpc::Service::MarkMethodCallback(1, - new ::grpc::internal::CallbackServerStreamingHandler< ::viam::service::slam::v1::GetPointCloudMapRequest, ::viam::service::slam::v1::GetPointCloudMapResponse>( + ExperimentalWithCallbackMethod_GetPointCloudMap() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(1, + new ::grpc_impl::internal::CallbackServerStreamingHandler< ::viam::service::slam::v1::GetPointCloudMapRequest, ::viam::service::slam::v1::GetPointCloudMapResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::service::slam::v1::GetPointCloudMapRequest* request) { return this->GetPointCloudMap(context, request); })); - } - ~WithCallbackMethod_GetPointCloudMap() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::service::slam::v1::GetPointCloudMapRequest* request) { return this->GetPointCloudMap(context, request); })); + } + ~ExperimentalWithCallbackMethod_GetPointCloudMap() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -381,21 +492,37 @@ class SLAMService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerWriteReactor< ::viam::service::slam::v1::GetPointCloudMapResponse>* GetPointCloudMap( - ::grpc::CallbackServerContext* /*context*/, const ::viam::service::slam::v1::GetPointCloudMapRequest* /*request*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::slam::v1::GetPointCloudMapRequest* /*request*/) + #else + virtual ::grpc::experimental::ServerWriteReactor< ::viam::service::slam::v1::GetPointCloudMapResponse>* GetPointCloudMap( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::service::slam::v1::GetPointCloudMapRequest* /*request*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetInternalState : public BaseClass { + class ExperimentalWithCallbackMethod_GetInternalState : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetInternalState() { - ::grpc::Service::MarkMethodCallback(2, - new ::grpc::internal::CallbackServerStreamingHandler< ::viam::service::slam::v1::GetInternalStateRequest, ::viam::service::slam::v1::GetInternalStateResponse>( + ExperimentalWithCallbackMethod_GetInternalState() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(2, + new ::grpc_impl::internal::CallbackServerStreamingHandler< ::viam::service::slam::v1::GetInternalStateRequest, ::viam::service::slam::v1::GetInternalStateResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::service::slam::v1::GetInternalStateRequest* request) { return this->GetInternalState(context, request); })); - } - ~WithCallbackMethod_GetInternalState() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::service::slam::v1::GetInternalStateRequest* request) { return this->GetInternalState(context, request); })); + } + ~ExperimentalWithCallbackMethod_GetInternalState() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -403,26 +530,46 @@ class SLAMService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerWriteReactor< ::viam::service::slam::v1::GetInternalStateResponse>* GetInternalState( - ::grpc::CallbackServerContext* /*context*/, const ::viam::service::slam::v1::GetInternalStateRequest* /*request*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::slam::v1::GetInternalStateRequest* /*request*/) + #else + virtual ::grpc::experimental::ServerWriteReactor< ::viam::service::slam::v1::GetInternalStateResponse>* GetInternalState( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::service::slam::v1::GetInternalStateRequest* /*request*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetProperties : public BaseClass { + class ExperimentalWithCallbackMethod_GetProperties : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetProperties() { - ::grpc::Service::MarkMethodCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::viam::service::slam::v1::GetPropertiesRequest, ::viam::service::slam::v1::GetPropertiesResponse>( + ExperimentalWithCallbackMethod_GetProperties() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(3, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::slam::v1::GetPropertiesRequest, ::viam::service::slam::v1::GetPropertiesResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::service::slam::v1::GetPropertiesRequest* request, ::viam::service::slam::v1::GetPropertiesResponse* response) { return this->GetProperties(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::service::slam::v1::GetPropertiesRequest* request, ::viam::service::slam::v1::GetPropertiesResponse* response) { return this->GetProperties(context, request, response); }));} void SetMessageAllocatorFor_GetProperties( - ::grpc::MessageAllocator< ::viam::service::slam::v1::GetPropertiesRequest, ::viam::service::slam::v1::GetPropertiesResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::service::slam::v1::GetPropertiesRequest, ::viam::service::slam::v1::GetPropertiesResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::slam::v1::GetPropertiesRequest, ::viam::service::slam::v1::GetPropertiesResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(3); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::slam::v1::GetPropertiesRequest, ::viam::service::slam::v1::GetPropertiesResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetProperties() override { + ~ExperimentalWithCallbackMethod_GetProperties() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -430,26 +577,46 @@ class SLAMService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetProperties( - ::grpc::CallbackServerContext* /*context*/, const ::viam::service::slam::v1::GetPropertiesRequest* /*request*/, ::viam::service::slam::v1::GetPropertiesResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::slam::v1::GetPropertiesRequest* /*request*/, ::viam::service::slam::v1::GetPropertiesResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetProperties( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::service::slam::v1::GetPropertiesRequest* /*request*/, ::viam::service::slam::v1::GetPropertiesResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_DoCommand : public BaseClass { + class ExperimentalWithCallbackMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_DoCommand() { - ::grpc::Service::MarkMethodCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( + ExperimentalWithCallbackMethod_DoCommand() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(4, + new ::grpc_impl::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); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + 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::experimental::MessageAllocator< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(4); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_DoCommand() override { + ~ExperimentalWithCallbackMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -457,11 +624,20 @@ class SLAMService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DoCommand( - ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DoCommand( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) + #endif + { return nullptr; } }; - typedef WithCallbackMethod_GetPosition > > > > CallbackService; - typedef CallbackService ExperimentalCallbackService; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef ExperimentalWithCallbackMethod_GetPosition > > > > CallbackService; + #endif + + typedef ExperimentalWithCallbackMethod_GetPosition > > > > ExperimentalCallbackService; template class WithGenericMethod_GetPosition : public BaseClass { private: @@ -648,17 +824,27 @@ class SLAMService final { } }; template - class WithRawCallbackMethod_GetPosition : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetPosition : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetPosition() { - ::grpc::Service::MarkMethodRawCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetPosition() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetPosition(context, request, response); })); - } - ~WithRawCallbackMethod_GetPosition() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetPosition(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetPosition() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -666,21 +852,37 @@ class SLAMService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetPosition( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetPosition( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetPointCloudMap : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetPointCloudMap : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetPointCloudMap() { - ::grpc::Service::MarkMethodRawCallback(1, - new ::grpc::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetPointCloudMap() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(1, + new ::grpc_impl::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const::grpc::ByteBuffer* request) { return this->GetPointCloudMap(context, request); })); - } - ~WithRawCallbackMethod_GetPointCloudMap() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const::grpc::ByteBuffer* request) { return this->GetPointCloudMap(context, request); })); + } + ~ExperimentalWithRawCallbackMethod_GetPointCloudMap() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -688,21 +890,37 @@ class SLAMService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerWriteReactor< ::grpc::ByteBuffer>* GetPointCloudMap( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) + #else + virtual ::grpc::experimental::ServerWriteReactor< ::grpc::ByteBuffer>* GetPointCloudMap( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetInternalState : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetInternalState : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetInternalState() { - ::grpc::Service::MarkMethodRawCallback(2, - new ::grpc::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetInternalState() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(2, + new ::grpc_impl::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const::grpc::ByteBuffer* request) { return this->GetInternalState(context, request); })); - } - ~WithRawCallbackMethod_GetInternalState() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const::grpc::ByteBuffer* request) { return this->GetInternalState(context, request); })); + } + ~ExperimentalWithRawCallbackMethod_GetInternalState() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -710,21 +928,37 @@ class SLAMService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerWriteReactor< ::grpc::ByteBuffer>* GetInternalState( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) + #else + virtual ::grpc::experimental::ServerWriteReactor< ::grpc::ByteBuffer>* GetInternalState( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetProperties : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetProperties : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetProperties() { - ::grpc::Service::MarkMethodRawCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetProperties() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(3, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetProperties(context, request, response); })); - } - ~WithRawCallbackMethod_GetProperties() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetProperties(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetProperties() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -732,21 +966,37 @@ class SLAMService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetProperties( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetProperties( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_DoCommand : public BaseClass { + class ExperimentalWithRawCallbackMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_DoCommand() { - ::grpc::Service::MarkMethodRawCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_DoCommand() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(4, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DoCommand(context, request, response); })); - } - ~WithRawCallbackMethod_DoCommand() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DoCommand(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -754,8 +1004,14 @@ class SLAMService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DoCommand( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DoCommand( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template class WithStreamedUnaryMethod_GetPosition : public BaseClass { @@ -766,8 +1022,8 @@ class SLAMService final { ::grpc::Service::MarkMethodStreamed(0, new ::grpc::internal::StreamedUnaryHandler< ::viam::service::slam::v1::GetPositionRequest, ::viam::service::slam::v1::GetPositionResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::service::slam::v1::GetPositionRequest, ::viam::service::slam::v1::GetPositionResponse>* streamer) { return this->StreamedGetPosition(context, streamer); @@ -793,8 +1049,8 @@ class SLAMService final { ::grpc::Service::MarkMethodStreamed(3, new ::grpc::internal::StreamedUnaryHandler< ::viam::service::slam::v1::GetPropertiesRequest, ::viam::service::slam::v1::GetPropertiesResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::service::slam::v1::GetPropertiesRequest, ::viam::service::slam::v1::GetPropertiesResponse>* streamer) { return this->StreamedGetProperties(context, streamer); @@ -820,8 +1076,8 @@ class SLAMService final { ::grpc::Service::MarkMethodStreamed(4, new ::grpc::internal::StreamedUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* streamer) { return this->StreamedDoCommand(context, streamer); @@ -848,8 +1104,8 @@ class SLAMService final { ::grpc::Service::MarkMethodStreamed(1, new ::grpc::internal::SplitServerStreamingHandler< ::viam::service::slam::v1::GetPointCloudMapRequest, ::viam::service::slam::v1::GetPointCloudMapResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerSplitStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerSplitStreamer< ::viam::service::slam::v1::GetPointCloudMapRequest, ::viam::service::slam::v1::GetPointCloudMapResponse>* streamer) { return this->StreamedGetPointCloudMap(context, streamer); @@ -875,8 +1131,8 @@ class SLAMService final { ::grpc::Service::MarkMethodStreamed(2, new ::grpc::internal::SplitServerStreamingHandler< ::viam::service::slam::v1::GetInternalStateRequest, ::viam::service::slam::v1::GetInternalStateResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerSplitStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerSplitStreamer< ::viam::service::slam::v1::GetInternalStateRequest, ::viam::service::slam::v1::GetInternalStateResponse>* streamer) { return this->StreamedGetInternalState(context, streamer); diff --git a/src/viam/api/service/slam/v1/slam.pb.cc b/src/viam/api/service/slam/v1/slam.pb.cc index 414d9b955..77fd2b89d 100644 --- a/src/viam/api/service/slam/v1/slam.pb.cc +++ b/src/viam/api/service/slam/v1/slam.pb.cc @@ -4,629 +4,524 @@ #include "service/slam/v1/slam.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace viam { namespace service { namespace slam { namespace v1 { - -inline constexpr SensorInfo::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - type_{static_cast< ::viam::service::slam::v1::SensorType >(0)}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR SensorInfo::SensorInfo(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct SensorInfoDefaultTypeInternal { - PROTOBUF_CONSTEXPR SensorInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SensorInfoDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR GetPositionRequest::GetPositionRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct GetPositionRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPositionRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPositionRequestDefaultTypeInternal() {} union { - SensorInfo _instance; + GetPositionRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SensorInfoDefaultTypeInternal _SensorInfo_default_instance_; - -inline constexpr GetPropertiesRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetPropertiesRequest::GetPropertiesRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetPropertiesRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetPropertiesRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetPropertiesRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPositionRequestDefaultTypeInternal _GetPositionRequest_default_instance_; +PROTOBUF_CONSTEXPR GetPositionResponse::GetPositionResponse( + ::_pbi::ConstantInitialized) + : pose_(nullptr){} +struct GetPositionResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPositionResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPositionResponseDefaultTypeInternal() {} union { - GetPropertiesRequest _instance; + GetPositionResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPropertiesRequestDefaultTypeInternal _GetPropertiesRequest_default_instance_; - -inline constexpr GetPositionRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetPositionRequest::GetPositionRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetPositionRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetPositionRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetPositionRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPositionResponseDefaultTypeInternal _GetPositionResponse_default_instance_; +PROTOBUF_CONSTEXPR GetPointCloudMapRequest::GetPointCloudMapRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , return_edited_map_(false){} +struct GetPointCloudMapRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPointCloudMapRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPointCloudMapRequestDefaultTypeInternal() {} union { - GetPositionRequest _instance; + GetPointCloudMapRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPositionRequestDefaultTypeInternal _GetPositionRequest_default_instance_; - -inline constexpr GetPointCloudMapResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : point_cloud_pcd_chunk_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetPointCloudMapResponse::GetPointCloudMapResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPointCloudMapRequestDefaultTypeInternal _GetPointCloudMapRequest_default_instance_; +PROTOBUF_CONSTEXPR GetPointCloudMapResponse::GetPointCloudMapResponse( + ::_pbi::ConstantInitialized) + : point_cloud_pcd_chunk_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} struct GetPointCloudMapResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetPointCloudMapResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GetPointCloudMapResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~GetPointCloudMapResponseDefaultTypeInternal() {} union { GetPointCloudMapResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPointCloudMapResponseDefaultTypeInternal _GetPointCloudMapResponse_default_instance_; - -inline constexpr GetPointCloudMapRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - return_edited_map_{false} {} - -template -PROTOBUF_CONSTEXPR GetPointCloudMapRequest::GetPointCloudMapRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetPointCloudMapRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetPointCloudMapRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetPointCloudMapRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPointCloudMapResponseDefaultTypeInternal _GetPointCloudMapResponse_default_instance_; +PROTOBUF_CONSTEXPR GetInternalStateRequest::GetInternalStateRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct GetInternalStateRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetInternalStateRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetInternalStateRequestDefaultTypeInternal() {} union { - GetPointCloudMapRequest _instance; + GetInternalStateRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPointCloudMapRequestDefaultTypeInternal _GetPointCloudMapRequest_default_instance_; - -inline constexpr GetInternalStateResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : internal_state_chunk_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetInternalStateResponse::GetInternalStateResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetInternalStateRequestDefaultTypeInternal _GetInternalStateRequest_default_instance_; +PROTOBUF_CONSTEXPR GetInternalStateResponse::GetInternalStateResponse( + ::_pbi::ConstantInitialized) + : internal_state_chunk_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} struct GetInternalStateResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetInternalStateResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GetInternalStateResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~GetInternalStateResponseDefaultTypeInternal() {} union { GetInternalStateResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetInternalStateResponseDefaultTypeInternal _GetInternalStateResponse_default_instance_; - -inline constexpr GetInternalStateRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetInternalStateRequest::GetInternalStateRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetInternalStateRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetInternalStateRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetInternalStateRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetInternalStateResponseDefaultTypeInternal _GetInternalStateResponse_default_instance_; +PROTOBUF_CONSTEXPR GetPropertiesRequest::GetPropertiesRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct GetPropertiesRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPropertiesRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPropertiesRequestDefaultTypeInternal() {} union { - GetInternalStateRequest _instance; + GetPropertiesRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetInternalStateRequestDefaultTypeInternal _GetInternalStateRequest_default_instance_; - -inline constexpr GetPropertiesResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - sensor_info_{}, - internal_state_file_type_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - cloud_slam_{false}, - mapping_mode_{static_cast< ::viam::service::slam::v1::MappingMode >(0)} {} - -template -PROTOBUF_CONSTEXPR GetPropertiesResponse::GetPropertiesResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPropertiesRequestDefaultTypeInternal _GetPropertiesRequest_default_instance_; +PROTOBUF_CONSTEXPR GetPropertiesResponse::GetPropertiesResponse( + ::_pbi::ConstantInitialized) + : sensor_info_() + , internal_state_file_type_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , cloud_slam_(false) + , mapping_mode_(0) +{} struct GetPropertiesResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetPropertiesResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GetPropertiesResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~GetPropertiesResponseDefaultTypeInternal() {} union { GetPropertiesResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPropertiesResponseDefaultTypeInternal _GetPropertiesResponse_default_instance_; - -inline constexpr GetPositionResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - pose_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetPositionResponse::GetPositionResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetPositionResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetPositionResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetPositionResponseDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPropertiesResponseDefaultTypeInternal _GetPropertiesResponse_default_instance_; +PROTOBUF_CONSTEXPR SensorInfo::SensorInfo( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , type_(0) +{} +struct SensorInfoDefaultTypeInternal { + PROTOBUF_CONSTEXPR SensorInfoDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SensorInfoDefaultTypeInternal() {} union { - GetPositionResponse _instance; + SensorInfo _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPositionResponseDefaultTypeInternal _GetPositionResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SensorInfoDefaultTypeInternal _SensorInfo_default_instance_; } // namespace v1 } // namespace slam } // namespace service } // namespace viam static ::_pb::Metadata file_level_metadata_service_2fslam_2fv1_2fslam_2eproto[9]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_service_2fslam_2fv1_2fslam_2eproto[2]; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_service_2fslam_2fv1_2fslam_2eproto = nullptr; -const ::uint32_t TableStruct_service_2fslam_2fv1_2fslam_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPositionRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPositionRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPositionResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPositionResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPositionResponse, _impl_.pose_), - 0, - PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPointCloudMapRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPointCloudMapRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPointCloudMapRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPointCloudMapRequest, _impl_.return_edited_map_), - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPointCloudMapResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPointCloudMapResponse, _impl_.point_cloud_pcd_chunk_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetInternalStateRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetInternalStateRequest, _impl_.name_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetInternalStateResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetInternalStateResponse, _impl_.internal_state_chunk_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPropertiesRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPropertiesRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPropertiesResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPropertiesResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPropertiesResponse, _impl_.cloud_slam_), - PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPropertiesResponse, _impl_.mapping_mode_), - PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPropertiesResponse, _impl_.internal_state_file_type_), - PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPropertiesResponse, _impl_.sensor_info_), - ~0u, - ~0u, - 0, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::SensorInfo, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::SensorInfo, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::SensorInfo, _impl_.type_), +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_service_2fslam_2fv1_2fslam_2eproto = nullptr; + +const uint32_t TableStruct_service_2fslam_2fv1_2fslam_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPositionRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPositionRequest, name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPositionResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPositionResponse, pose_), + PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPointCloudMapRequest, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPointCloudMapRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPointCloudMapRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPointCloudMapRequest, return_edited_map_), + ~0u, + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPointCloudMapResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPointCloudMapResponse, point_cloud_pcd_chunk_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetInternalStateRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetInternalStateRequest, name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetInternalStateResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetInternalStateResponse, internal_state_chunk_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPropertiesRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPropertiesRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPropertiesResponse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPropertiesResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPropertiesResponse, cloud_slam_), + PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPropertiesResponse, mapping_mode_), + PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPropertiesResponse, internal_state_file_type_), + PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::GetPropertiesResponse, sensor_info_), + ~0u, + ~0u, + 0, + ~0u, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::SensorInfo, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::SensorInfo, name_), + PROTOBUF_FIELD_OFFSET(::viam::service::slam::v1::SensorInfo, type_), }; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, -1, -1, sizeof(::viam::service::slam::v1::GetPositionRequest)}, - {9, 18, -1, sizeof(::viam::service::slam::v1::GetPositionResponse)}, - {19, 29, -1, sizeof(::viam::service::slam::v1::GetPointCloudMapRequest)}, - {31, -1, -1, sizeof(::viam::service::slam::v1::GetPointCloudMapResponse)}, - {40, -1, -1, sizeof(::viam::service::slam::v1::GetInternalStateRequest)}, - {49, -1, -1, sizeof(::viam::service::slam::v1::GetInternalStateResponse)}, - {58, -1, -1, sizeof(::viam::service::slam::v1::GetPropertiesRequest)}, - {67, 79, -1, sizeof(::viam::service::slam::v1::GetPropertiesResponse)}, - {83, -1, -1, sizeof(::viam::service::slam::v1::SensorInfo)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::service::slam::v1::GetPositionRequest)}, + { 7, -1, -1, sizeof(::viam::service::slam::v1::GetPositionResponse)}, + { 14, 22, -1, sizeof(::viam::service::slam::v1::GetPointCloudMapRequest)}, + { 24, -1, -1, sizeof(::viam::service::slam::v1::GetPointCloudMapResponse)}, + { 31, -1, -1, sizeof(::viam::service::slam::v1::GetInternalStateRequest)}, + { 38, -1, -1, sizeof(::viam::service::slam::v1::GetInternalStateResponse)}, + { 45, -1, -1, sizeof(::viam::service::slam::v1::GetPropertiesRequest)}, + { 52, 62, -1, sizeof(::viam::service::slam::v1::GetPropertiesResponse)}, + { 66, -1, -1, sizeof(::viam::service::slam::v1::SensorInfo)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::viam::service::slam::v1::_GetPositionRequest_default_instance_._instance, - &::viam::service::slam::v1::_GetPositionResponse_default_instance_._instance, - &::viam::service::slam::v1::_GetPointCloudMapRequest_default_instance_._instance, - &::viam::service::slam::v1::_GetPointCloudMapResponse_default_instance_._instance, - &::viam::service::slam::v1::_GetInternalStateRequest_default_instance_._instance, - &::viam::service::slam::v1::_GetInternalStateResponse_default_instance_._instance, - &::viam::service::slam::v1::_GetPropertiesRequest_default_instance_._instance, - &::viam::service::slam::v1::_GetPropertiesResponse_default_instance_._instance, - &::viam::service::slam::v1::_SensorInfo_default_instance_._instance, + &::viam::service::slam::v1::_GetPositionRequest_default_instance_._instance, + &::viam::service::slam::v1::_GetPositionResponse_default_instance_._instance, + &::viam::service::slam::v1::_GetPointCloudMapRequest_default_instance_._instance, + &::viam::service::slam::v1::_GetPointCloudMapResponse_default_instance_._instance, + &::viam::service::slam::v1::_GetInternalStateRequest_default_instance_._instance, + &::viam::service::slam::v1::_GetInternalStateResponse_default_instance_._instance, + &::viam::service::slam::v1::_GetPropertiesRequest_default_instance_._instance, + &::viam::service::slam::v1::_GetPropertiesResponse_default_instance_._instance, + &::viam::service::slam::v1::_SensorInfo_default_instance_._instance, }; -const char descriptor_table_protodef_service_2fslam_2fv1_2fslam_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n\032service/slam/v1/slam.proto\022\024viam.servi" - "ce.slam.v1\032\026common/v1/common.proto\032\034goog" - "le/api/annotations.proto\"(\n\022GetPositionR" - "equest\022\022\n\004name\030\001 \001(\tR\004name\"\?\n\023GetPositio" - "nResponse\022(\n\004pose\030\001 \001(\0132\024.viam.common.v1" - ".PoseR\004pose\"t\n\027GetPointCloudMapRequest\022\022" - "\n\004name\030\001 \001(\tR\004name\022/\n\021return_edited_map\030" - "\002 \001(\010H\000R\017returnEditedMap\210\001\001B\024\n\022_return_e" - "dited_map\"M\n\030GetPointCloudMapResponse\0221\n" - "\025point_cloud_pcd_chunk\030\001 \001(\014R\022pointCloud" - "PcdChunk\"-\n\027GetInternalStateRequest\022\022\n\004n" - "ame\030\001 \001(\tR\004name\"L\n\030GetInternalStateRespo" - "nse\0220\n\024internal_state_chunk\030\001 \001(\014R\022inter" - "nalStateChunk\"*\n\024GetPropertiesRequest\022\022\n" - "\004name\030\001 \001(\tR\004name\"\232\002\n\025GetPropertiesRespo" - "nse\022\035\n\ncloud_slam\030\001 \001(\010R\tcloudSlam\022D\n\014ma" - "pping_mode\030\002 \001(\0162!.viam.service.slam.v1." - "MappingModeR\013mappingMode\022<\n\030internal_sta" - "te_file_type\030\003 \001(\tH\000R\025internalStateFileT" - "ype\210\001\001\022A\n\013sensor_info\030\004 \003(\0132 .viam.servi" - "ce.slam.v1.SensorInfoR\nsensorInfoB\033\n\031_in" - "ternal_state_file_type\"V\n\nSensorInfo\022\022\n\004" - "name\030\001 \001(\tR\004name\0224\n\004type\030\002 \001(\0162 .viam.se" - "rvice.slam.v1.SensorTypeR\004type*\222\001\n\013Mappi" - "ngMode\022\034\n\030MAPPING_MODE_UNSPECIFIED\020\000\022\037\n\033" - "MAPPING_MODE_CREATE_NEW_MAP\020\001\022\036\n\032MAPPING" - "_MODE_LOCALIZE_ONLY\020\002\022$\n MAPPING_MODE_UP" - "DATE_EXISTING_MAP\020\003*b\n\nSensorType\022\033\n\027SEN" - "SOR_TYPE_UNSPECIFIED\020\000\022\026\n\022SENSOR_TYPE_CA" - "MERA\020\001\022\037\n\033SENSOR_TYPE_MOVEMENT_SENSOR\020\0022" - "\254\006\n\013SLAMService\022\225\001\n\013GetPosition\022(.viam.s" - "ervice.slam.v1.GetPositionRequest\032).viam" - ".service.slam.v1.GetPositionResponse\"1\202\323" - "\344\223\002+\022)/viam/api/v1/service/slam/{name}/p" - "osition\022\255\001\n\020GetPointCloudMap\022-.viam.serv" - "ice.slam.v1.GetPointCloudMapRequest\032..vi" - "am.service.slam.v1.GetPointCloudMapRespo" - "nse\"8\202\323\344\223\0022\0220/viam/api/v1/service/slam/{" - "name}/point_cloud_map0\001\022\254\001\n\020GetInternalS" - "tate\022-.viam.service.slam.v1.GetInternalS" - "tateRequest\032..viam.service.slam.v1.GetIn" - "ternalStateResponse\"7\202\323\344\223\0021\022//viam/api/v" - "1/service/slam/{name}/internal_state0\001\022\235" - "\001\n\rGetProperties\022*.viam.service.slam.v1." - "GetPropertiesRequest\032+.viam.service.slam" - ".v1.GetPropertiesResponse\"3\202\323\344\223\002-\022+/viam" - "/api/v1/service/slam/{name}/properties\022\205" - "\001\n\tDoCommand\022 .viam.common.v1.DoCommandR" - "equest\032!.viam.common.v1.DoCommandRespons" - "e\"3\202\323\344\223\002-\"+/viam/api/v1/service/slam/{na" - "me}/do_commandB\271\001\n\030com.viam.service.slam" - ".v1B\tSlamProtoP\001Z\037go.viam.com/api/servic" - "e/slam/v1\242\002\003VSS\252\002\024Viam.Service.Slam.V1\312\002" - "\024Viam\\Service\\Slam\\V1\342\002 Viam\\Service\\Sla" - "m\\V1\\GPBMetadata\352\002\027Viam::Service::Slam::" - "V1b\006proto3" -}; -static const ::_pbi::DescriptorTable* const descriptor_table_service_2fslam_2fv1_2fslam_2eproto_deps[2] = - { - &::descriptor_table_common_2fv1_2fcommon_2eproto, - &::descriptor_table_google_2fapi_2fannotations_2eproto, + +const char descriptor_table_protodef_service_2fslam_2fv1_2fslam_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\032service/slam/v1/slam.proto\022\024viam.servi" + "ce.slam.v1\032\026common/v1/common.proto\032\034goog" + "le/api/annotations.proto\"(\n\022GetPositionR" + "equest\022\022\n\004name\030\001 \001(\tR\004name\"\?\n\023GetPositio" + "nResponse\022(\n\004pose\030\001 \001(\0132\024.viam.common.v1" + ".PoseR\004pose\"t\n\027GetPointCloudMapRequest\022\022" + "\n\004name\030\001 \001(\tR\004name\022/\n\021return_edited_map\030" + "\002 \001(\010H\000R\017returnEditedMap\210\001\001B\024\n\022_return_e" + "dited_map\"M\n\030GetPointCloudMapResponse\0221\n" + "\025point_cloud_pcd_chunk\030\001 \001(\014R\022pointCloud" + "PcdChunk\"-\n\027GetInternalStateRequest\022\022\n\004n" + "ame\030\001 \001(\tR\004name\"L\n\030GetInternalStateRespo" + "nse\0220\n\024internal_state_chunk\030\001 \001(\014R\022inter" + "nalStateChunk\"*\n\024GetPropertiesRequest\022\022\n" + "\004name\030\001 \001(\tR\004name\"\232\002\n\025GetPropertiesRespo" + "nse\022\035\n\ncloud_slam\030\001 \001(\010R\tcloudSlam\022D\n\014ma" + "pping_mode\030\002 \001(\0162!.viam.service.slam.v1." + "MappingModeR\013mappingMode\022<\n\030internal_sta" + "te_file_type\030\003 \001(\tH\000R\025internalStateFileT" + "ype\210\001\001\022A\n\013sensor_info\030\004 \003(\0132 .viam.servi" + "ce.slam.v1.SensorInfoR\nsensorInfoB\033\n\031_in" + "ternal_state_file_type\"V\n\nSensorInfo\022\022\n\004" + "name\030\001 \001(\tR\004name\0224\n\004type\030\002 \001(\0162 .viam.se" + "rvice.slam.v1.SensorTypeR\004type*\222\001\n\013Mappi" + "ngMode\022\034\n\030MAPPING_MODE_UNSPECIFIED\020\000\022\037\n\033" + "MAPPING_MODE_CREATE_NEW_MAP\020\001\022\036\n\032MAPPING" + "_MODE_LOCALIZE_ONLY\020\002\022$\n MAPPING_MODE_UP" + "DATE_EXISTING_MAP\020\003*b\n\nSensorType\022\033\n\027SEN" + "SOR_TYPE_UNSPECIFIED\020\000\022\026\n\022SENSOR_TYPE_CA" + "MERA\020\001\022\037\n\033SENSOR_TYPE_MOVEMENT_SENSOR\020\0022" + "\254\006\n\013SLAMService\022\225\001\n\013GetPosition\022(.viam.s" + "ervice.slam.v1.GetPositionRequest\032).viam" + ".service.slam.v1.GetPositionResponse\"1\202\323" + "\344\223\002+\022)/viam/api/v1/service/slam/{name}/p" + "osition\022\255\001\n\020GetPointCloudMap\022-.viam.serv" + "ice.slam.v1.GetPointCloudMapRequest\032..vi" + "am.service.slam.v1.GetPointCloudMapRespo" + "nse\"8\202\323\344\223\0022\0220/viam/api/v1/service/slam/{" + "name}/point_cloud_map0\001\022\254\001\n\020GetInternalS" + "tate\022-.viam.service.slam.v1.GetInternalS" + "tateRequest\032..viam.service.slam.v1.GetIn" + "ternalStateResponse\"7\202\323\344\223\0021\022//viam/api/v" + "1/service/slam/{name}/internal_state0\001\022\235" + "\001\n\rGetProperties\022*.viam.service.slam.v1." + "GetPropertiesRequest\032+.viam.service.slam" + ".v1.GetPropertiesResponse\"3\202\323\344\223\002-\022+/viam" + "/api/v1/service/slam/{name}/properties\022\205" + "\001\n\tDoCommand\022 .viam.common.v1.DoCommandR" + "equest\032!.viam.common.v1.DoCommandRespons" + "e\"3\202\323\344\223\002-\"+/viam/api/v1/service/slam/{na" + "me}/do_commandB;\n\030com.viam.service.slam." + "v1Z\037go.viam.com/api/service/slam/v1b\006pro" + "to3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_service_2fslam_2fv1_2fslam_2eproto_deps[2] = { + &::descriptor_table_common_2fv1_2fcommon_2eproto, + &::descriptor_table_google_2fapi_2fannotations_2eproto, }; -static ::absl::once_flag descriptor_table_service_2fslam_2fv1_2fslam_2eproto_once; +static ::_pbi::once_flag descriptor_table_service_2fslam_2fv1_2fslam_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_service_2fslam_2fv1_2fslam_2eproto = { - false, - false, - 2210, - descriptor_table_protodef_service_2fslam_2fv1_2fslam_2eproto, + false, false, 2083, descriptor_table_protodef_service_2fslam_2fv1_2fslam_2eproto, "service/slam/v1/slam.proto", - &descriptor_table_service_2fslam_2fv1_2fslam_2eproto_once, - descriptor_table_service_2fslam_2fv1_2fslam_2eproto_deps, - 2, - 9, - schemas, - file_default_instances, - TableStruct_service_2fslam_2fv1_2fslam_2eproto::offsets, - file_level_metadata_service_2fslam_2fv1_2fslam_2eproto, - file_level_enum_descriptors_service_2fslam_2fv1_2fslam_2eproto, + &descriptor_table_service_2fslam_2fv1_2fslam_2eproto_once, descriptor_table_service_2fslam_2fv1_2fslam_2eproto_deps, 2, 9, + schemas, file_default_instances, TableStruct_service_2fslam_2fv1_2fslam_2eproto::offsets, + file_level_metadata_service_2fslam_2fv1_2fslam_2eproto, file_level_enum_descriptors_service_2fslam_2fv1_2fslam_2eproto, file_level_service_descriptors_service_2fslam_2fv1_2fslam_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_service_2fslam_2fv1_2fslam_2eproto_getter() { return &descriptor_table_service_2fslam_2fv1_2fslam_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_service_2fslam_2fv1_2fslam_2eproto(&descriptor_table_service_2fslam_2fv1_2fslam_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_service_2fslam_2fv1_2fslam_2eproto(&descriptor_table_service_2fslam_2fv1_2fslam_2eproto); namespace viam { namespace service { namespace slam { namespace v1 { -const ::google::protobuf::EnumDescriptor* MappingMode_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_service_2fslam_2fv1_2fslam_2eproto); +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* MappingMode_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_service_2fslam_2fv1_2fslam_2eproto); return file_level_enum_descriptors_service_2fslam_2fv1_2fslam_2eproto[0]; } -PROTOBUF_CONSTINIT const uint32_t MappingMode_internal_data_[] = { - 262144u, 0u, }; bool MappingMode_IsValid(int value) { - return 0 <= value && value <= 3; + switch (value) { + case 0: + case 1: + case 2: + case 3: + return true; + default: + return false; + } } -const ::google::protobuf::EnumDescriptor* SensorType_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_service_2fslam_2fv1_2fslam_2eproto); + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SensorType_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_service_2fslam_2fv1_2fslam_2eproto); return file_level_enum_descriptors_service_2fslam_2fv1_2fslam_2eproto[1]; } -PROTOBUF_CONSTINIT const uint32_t SensorType_internal_data_[] = { - 196608u, 0u, }; bool SensorType_IsValid(int value) { - return 0 <= value && value <= 2; + switch (value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } } + + // =================================================================== class GetPositionRequest::_Internal { public: }; -GetPositionRequest::GetPositionRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetPositionRequest::GetPositionRequest(::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.slam.v1.GetPositionRequest) } -inline PROTOBUF_NDEBUG_INLINE GetPositionRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : name_(arena, from.name_), - _cached_size_{0} {} - -GetPositionRequest::GetPositionRequest( - ::google::protobuf::Arena* arena, - const GetPositionRequest& from) - : ::google::protobuf::Message(arena) { - GetPositionRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetPositionRequest::GetPositionRequest(const GetPositionRequest& 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()); + } // @@protoc_insertion_point(copy_constructor:viam.service.slam.v1.GetPositionRequest) } -inline PROTOBUF_NDEBUG_INLINE GetPositionRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : name_(arena), - _cached_size_{0} {} -inline void GetPositionRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetPositionRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + GetPositionRequest::~GetPositionRequest() { // @@protoc_insertion_point(destructor:viam.service.slam.v1.GetPositionRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetPositionRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); } -PROTOBUF_NOINLINE void GetPositionRequest::Clear() { +void GetPositionRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetPositionRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.slam.v1.GetPositionRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetPositionRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPositionRequest::_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.service.slam.v1.GetPositionRequest.name")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 52, 2> GetPositionRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetPositionRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetPositionRequest, _impl_.name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(GetPositionRequest, _impl_.name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\47\4\0\0\0\0\0\0" - "viam.service.slam.v1.GetPositionRequest" - "name" - }}, -}; - -::uint8_t* GetPositionRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetPositionRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.slam.v1.GetPositionRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.slam.v1.GetPositionRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.slam.v1.GetPositionRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.slam.v1.GetPositionRequest) return target; } -::size_t GetPositionRequest::ByteSizeLong() const { +size_t GetPositionRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.slam.v1.GetPositionRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetPositionRequest::_class_data_ = { - GetPositionRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPositionRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetPositionRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetPositionRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPositionRequest::GetClassData() const { return &_class_data_; } + +void GetPositionRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetPositionRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.slam.v1.GetPositionRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetPositionRequest::MergeFrom(const GetPositionRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.slam.v1.GetPositionRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetPositionRequest::CopyFrom(const GetPositionRequest& from) { @@ -636,210 +531,195 @@ void GetPositionRequest::CopyFrom(const GetPositionRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetPositionRequest::IsInitialized() const { +bool GetPositionRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetPositionRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetPositionRequest::InternalSwap(GetPositionRequest* PROTOBUF_RESTRICT other) { +void GetPositionRequest::InternalSwap(GetPositionRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); } -::google::protobuf::Metadata GetPositionRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetPositionRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fslam_2fv1_2fslam_2eproto_getter, &descriptor_table_service_2fslam_2fv1_2fslam_2eproto_once, file_level_metadata_service_2fslam_2fv1_2fslam_2eproto[0]); } + // =================================================================== class GetPositionResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetPositionResponse, _impl_._has_bits_); static const ::viam::common::v1::Pose& pose(const GetPositionResponse* msg); - static void set_has_pose(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::viam::common::v1::Pose& GetPositionResponse::_Internal::pose(const GetPositionResponse* msg) { - return *msg->_impl_.pose_; +const ::viam::common::v1::Pose& +GetPositionResponse::_Internal::pose(const GetPositionResponse* msg) { + return *msg->pose_; } void GetPositionResponse::clear_pose() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.pose_ != nullptr) _impl_.pose_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && pose_ != nullptr) { + delete pose_; + } + pose_ = nullptr; } -GetPositionResponse::GetPositionResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetPositionResponse::GetPositionResponse(::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.slam.v1.GetPositionResponse) } -inline PROTOBUF_NDEBUG_INLINE GetPositionResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -GetPositionResponse::GetPositionResponse( - ::google::protobuf::Arena* arena, - const GetPositionResponse& from) - : ::google::protobuf::Message(arena) { - GetPositionResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.pose_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::common::v1::Pose>(arena, *from._impl_.pose_) - : nullptr; - +GetPositionResponse::GetPositionResponse(const GetPositionResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_pose()) { + pose_ = new ::viam::common::v1::Pose(*from.pose_); + } else { + pose_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.service.slam.v1.GetPositionResponse) } -inline PROTOBUF_NDEBUG_INLINE GetPositionResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void GetPositionResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.pose_ = {}; +inline void GetPositionResponse::SharedCtor() { +pose_ = nullptr; } + GetPositionResponse::~GetPositionResponse() { // @@protoc_insertion_point(destructor:viam.service.slam.v1.GetPositionResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetPositionResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.pose_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete pose_; +} + +void GetPositionResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetPositionResponse::Clear() { +void GetPositionResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.slam.v1.GetPositionResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.pose_ != nullptr); - _impl_.pose_->Clear(); + if (GetArenaForAllocation() == nullptr && pose_ != nullptr) { + delete pose_; } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetPositionResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + pose_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPositionResponse::_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.Pose pose = 1 [json_name = "pose"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_pose(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetPositionResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetPositionResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetPositionResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.common.v1.Pose pose = 1 [json_name = "pose"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetPositionResponse, _impl_.pose_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .viam.common.v1.Pose pose = 1 [json_name = "pose"]; - {PROTOBUF_FIELD_OFFSET(GetPositionResponse, _impl_.pose_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::common::v1::Pose>()}, - }}, {{ - }}, -}; - -::uint8_t* GetPositionResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetPositionResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.slam.v1.GetPositionResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.common.v1.Pose pose = 1 [json_name = "pose"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::pose(this), + if (this->_internal_has_pose()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::pose(this), _Internal::pose(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.slam.v1.GetPositionResponse) return target; } -::size_t GetPositionResponse::ByteSizeLong() const { +size_t GetPositionResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.slam.v1.GetPositionResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .viam.common.v1.Pose pose = 1 [json_name = "pose"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.pose_); + if (this->_internal_has_pose()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *pose_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetPositionResponse::_class_data_ = { - GetPositionResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPositionResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetPositionResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetPositionResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPositionResponse::GetClassData() const { return &_class_data_; } + +void GetPositionResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetPositionResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.slam.v1.GetPositionResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetPositionResponse::MergeFrom(const GetPositionResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.slam.v1.GetPositionResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_pose()->::viam::common::v1::Pose::MergeFrom( - from._internal_pose()); + if (from._internal_has_pose()) { + _internal_mutable_pose()->::viam::common::v1::Pose::MergeFrom(from._internal_pose()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetPositionResponse::CopyFrom(const GetPositionResponse& from) { @@ -849,220 +729,222 @@ void GetPositionResponse::CopyFrom(const GetPositionResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetPositionResponse::IsInitialized() const { +bool GetPositionResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetPositionResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetPositionResponse::InternalSwap(GetPositionResponse* PROTOBUF_RESTRICT other) { +void GetPositionResponse::InternalSwap(GetPositionResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.pose_, other->_impl_.pose_); + swap(pose_, other->pose_); } -::google::protobuf::Metadata GetPositionResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetPositionResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fslam_2fv1_2fslam_2eproto_getter, &descriptor_table_service_2fslam_2fv1_2fslam_2eproto_once, file_level_metadata_service_2fslam_2fv1_2fslam_2eproto[1]); } + // =================================================================== class GetPointCloudMapRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetPointCloudMapRequest, _impl_._has_bits_); + using HasBits = decltype(std::declval()._has_bits_); static void set_has_return_edited_map(HasBits* has_bits) { (*has_bits)[0] |= 1u; } }; -GetPointCloudMapRequest::GetPointCloudMapRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetPointCloudMapRequest::GetPointCloudMapRequest(::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.slam.v1.GetPointCloudMapRequest) } -inline PROTOBUF_NDEBUG_INLINE GetPointCloudMapRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -GetPointCloudMapRequest::GetPointCloudMapRequest( - ::google::protobuf::Arena* arena, - const GetPointCloudMapRequest& from) - : ::google::protobuf::Message(arena) { - GetPointCloudMapRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.return_edited_map_ = from._impl_.return_edited_map_; - +GetPointCloudMapRequest::GetPointCloudMapRequest(const GetPointCloudMapRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_) { + _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()); + } + return_edited_map_ = from.return_edited_map_; // @@protoc_insertion_point(copy_constructor:viam.service.slam.v1.GetPointCloudMapRequest) } -inline PROTOBUF_NDEBUG_INLINE GetPointCloudMapRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} -inline void GetPointCloudMapRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.return_edited_map_ = {}; +inline void GetPointCloudMapRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +return_edited_map_ = false; } + GetPointCloudMapRequest::~GetPointCloudMapRequest() { // @@protoc_insertion_point(destructor:viam.service.slam.v1.GetPointCloudMapRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetPointCloudMapRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); +} + +void GetPointCloudMapRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetPointCloudMapRequest::Clear() { +void GetPointCloudMapRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.slam.v1.GetPointCloudMapRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _impl_.return_edited_map_ = false; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetPointCloudMapRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + return_edited_map_ = false; + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPointCloudMapRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + 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.service.slam.v1.GetPointCloudMapRequest.name")); + } else + goto handle_unusual; + continue; + // optional bool return_edited_map = 2 [json_name = "returnEditedMap"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _Internal::set_has_return_edited_map(&has_bits); + return_edited_map_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 57, 2> GetPointCloudMapRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetPointCloudMapRequest, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetPointCloudMapRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // optional bool return_edited_map = 2 [json_name = "returnEditedMap"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {16, 0, 0, PROTOBUF_FIELD_OFFSET(GetPointCloudMapRequest, _impl_.return_edited_map_)}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetPointCloudMapRequest, _impl_.name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(GetPointCloudMapRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // optional bool return_edited_map = 2 [json_name = "returnEditedMap"]; - {PROTOBUF_FIELD_OFFSET(GetPointCloudMapRequest, _impl_.return_edited_map_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - }}, - // no aux_entries - {{ - "\54\4\0\0\0\0\0\0" - "viam.service.slam.v1.GetPointCloudMapRequest" - "name" - }}, -}; - -::uint8_t* GetPointCloudMapRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetPointCloudMapRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.slam.v1.GetPointCloudMapRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.slam.v1.GetPointCloudMapRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.slam.v1.GetPointCloudMapRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // optional bool return_edited_map = 2 [json_name = "returnEditedMap"]; - if (cached_has_bits & 0x00000001u) { + if (_internal_has_return_edited_map()) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 2, this->_internal_return_edited_map(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_return_edited_map(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.slam.v1.GetPointCloudMapRequest) return target; } -::size_t GetPointCloudMapRequest::ByteSizeLong() const { +size_t GetPointCloudMapRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.slam.v1.GetPointCloudMapRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // optional bool return_edited_map = 2 [json_name = "returnEditedMap"]; - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetPointCloudMapRequest::_class_data_ = { - GetPointCloudMapRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPointCloudMapRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetPointCloudMapRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetPointCloudMapRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPointCloudMapRequest::GetClassData() const { return &_class_data_; } + +void GetPointCloudMapRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetPointCloudMapRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.slam.v1.GetPointCloudMapRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetPointCloudMapRequest::MergeFrom(const GetPointCloudMapRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.slam.v1.GetPointCloudMapRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_set_return_edited_map(from._internal_return_edited_map()); + if (from._internal_has_return_edited_map()) { + _internal_set_return_edited_map(from._internal_return_edited_map()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetPointCloudMapRequest::CopyFrom(const GetPointCloudMapRequest& from) { @@ -1072,184 +954,189 @@ void GetPointCloudMapRequest::CopyFrom(const GetPointCloudMapRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetPointCloudMapRequest::IsInitialized() const { +bool GetPointCloudMapRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetPointCloudMapRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetPointCloudMapRequest::InternalSwap(GetPointCloudMapRequest* PROTOBUF_RESTRICT other) { +void GetPointCloudMapRequest::InternalSwap(GetPointCloudMapRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.return_edited_map_, other->_impl_.return_edited_map_); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(return_edited_map_, other->return_edited_map_); } -::google::protobuf::Metadata GetPointCloudMapRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetPointCloudMapRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fslam_2fv1_2fslam_2eproto_getter, &descriptor_table_service_2fslam_2fv1_2fslam_2eproto_once, file_level_metadata_service_2fslam_2fv1_2fslam_2eproto[2]); } + // =================================================================== class GetPointCloudMapResponse::_Internal { public: }; -GetPointCloudMapResponse::GetPointCloudMapResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetPointCloudMapResponse::GetPointCloudMapResponse(::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.slam.v1.GetPointCloudMapResponse) } -inline PROTOBUF_NDEBUG_INLINE GetPointCloudMapResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : point_cloud_pcd_chunk_(arena, from.point_cloud_pcd_chunk_), - _cached_size_{0} {} - -GetPointCloudMapResponse::GetPointCloudMapResponse( - ::google::protobuf::Arena* arena, - const GetPointCloudMapResponse& from) - : ::google::protobuf::Message(arena) { - GetPointCloudMapResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetPointCloudMapResponse::GetPointCloudMapResponse(const GetPointCloudMapResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + point_cloud_pcd_chunk_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + point_cloud_pcd_chunk_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_point_cloud_pcd_chunk().empty()) { + point_cloud_pcd_chunk_.Set(from._internal_point_cloud_pcd_chunk(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.service.slam.v1.GetPointCloudMapResponse) } -inline PROTOBUF_NDEBUG_INLINE GetPointCloudMapResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : point_cloud_pcd_chunk_(arena), - _cached_size_{0} {} -inline void GetPointCloudMapResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetPointCloudMapResponse::SharedCtor() { +point_cloud_pcd_chunk_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + point_cloud_pcd_chunk_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + GetPointCloudMapResponse::~GetPointCloudMapResponse() { // @@protoc_insertion_point(destructor:viam.service.slam.v1.GetPointCloudMapResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetPointCloudMapResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.point_cloud_pcd_chunk_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + point_cloud_pcd_chunk_.Destroy(); +} + +void GetPointCloudMapResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetPointCloudMapResponse::Clear() { +void GetPointCloudMapResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.slam.v1.GetPointCloudMapResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.point_cloud_pcd_chunk_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetPointCloudMapResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + point_cloud_pcd_chunk_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPointCloudMapResponse::_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) { + // bytes point_cloud_pcd_chunk = 1 [json_name = "pointCloudPcdChunk"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_point_cloud_pcd_chunk(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> GetPointCloudMapResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetPointCloudMapResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // bytes point_cloud_pcd_chunk = 1 [json_name = "pointCloudPcdChunk"]; - {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetPointCloudMapResponse, _impl_.point_cloud_pcd_chunk_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bytes point_cloud_pcd_chunk = 1 [json_name = "pointCloudPcdChunk"]; - {PROTOBUF_FIELD_OFFSET(GetPointCloudMapResponse, _impl_.point_cloud_pcd_chunk_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* GetPointCloudMapResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetPointCloudMapResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.slam.v1.GetPointCloudMapResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // bytes point_cloud_pcd_chunk = 1 [json_name = "pointCloudPcdChunk"]; if (!this->_internal_point_cloud_pcd_chunk().empty()) { - const std::string& _s = this->_internal_point_cloud_pcd_chunk(); - target = stream->WriteBytesMaybeAliased(1, _s, target); + target = stream->WriteBytesMaybeAliased( + 1, this->_internal_point_cloud_pcd_chunk(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.slam.v1.GetPointCloudMapResponse) return target; } -::size_t GetPointCloudMapResponse::ByteSizeLong() const { +size_t GetPointCloudMapResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.slam.v1.GetPointCloudMapResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // bytes point_cloud_pcd_chunk = 1 [json_name = "pointCloudPcdChunk"]; if (!this->_internal_point_cloud_pcd_chunk().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_point_cloud_pcd_chunk()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_point_cloud_pcd_chunk()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetPointCloudMapResponse::_class_data_ = { - GetPointCloudMapResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPointCloudMapResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetPointCloudMapResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetPointCloudMapResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPointCloudMapResponse::GetClassData() const { return &_class_data_; } + +void GetPointCloudMapResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetPointCloudMapResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.slam.v1.GetPointCloudMapResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetPointCloudMapResponse::MergeFrom(const GetPointCloudMapResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.slam.v1.GetPointCloudMapResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_point_cloud_pcd_chunk().empty()) { - _this->_internal_set_point_cloud_pcd_chunk(from._internal_point_cloud_pcd_chunk()); + _internal_set_point_cloud_pcd_chunk(from._internal_point_cloud_pcd_chunk()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetPointCloudMapResponse::CopyFrom(const GetPointCloudMapResponse& from) { @@ -1259,187 +1146,192 @@ void GetPointCloudMapResponse::CopyFrom(const GetPointCloudMapResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetPointCloudMapResponse::IsInitialized() const { +bool GetPointCloudMapResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetPointCloudMapResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetPointCloudMapResponse::InternalSwap(GetPointCloudMapResponse* PROTOBUF_RESTRICT other) { +void GetPointCloudMapResponse::InternalSwap(GetPointCloudMapResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.point_cloud_pcd_chunk_, &other->_impl_.point_cloud_pcd_chunk_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &point_cloud_pcd_chunk_, lhs_arena, + &other->point_cloud_pcd_chunk_, rhs_arena + ); } -::google::protobuf::Metadata GetPointCloudMapResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetPointCloudMapResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fslam_2fv1_2fslam_2eproto_getter, &descriptor_table_service_2fslam_2fv1_2fslam_2eproto_once, file_level_metadata_service_2fslam_2fv1_2fslam_2eproto[3]); } + // =================================================================== class GetInternalStateRequest::_Internal { public: }; -GetInternalStateRequest::GetInternalStateRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetInternalStateRequest::GetInternalStateRequest(::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.slam.v1.GetInternalStateRequest) } -inline PROTOBUF_NDEBUG_INLINE GetInternalStateRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : name_(arena, from.name_), - _cached_size_{0} {} - -GetInternalStateRequest::GetInternalStateRequest( - ::google::protobuf::Arena* arena, - const GetInternalStateRequest& from) - : ::google::protobuf::Message(arena) { - GetInternalStateRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetInternalStateRequest::GetInternalStateRequest(const GetInternalStateRequest& 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()); + } // @@protoc_insertion_point(copy_constructor:viam.service.slam.v1.GetInternalStateRequest) } -inline PROTOBUF_NDEBUG_INLINE GetInternalStateRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : name_(arena), - _cached_size_{0} {} -inline void GetInternalStateRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetInternalStateRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + GetInternalStateRequest::~GetInternalStateRequest() { // @@protoc_insertion_point(destructor:viam.service.slam.v1.GetInternalStateRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetInternalStateRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); +} + +void GetInternalStateRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetInternalStateRequest::Clear() { +void GetInternalStateRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.slam.v1.GetInternalStateRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetInternalStateRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetInternalStateRequest::_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.service.slam.v1.GetInternalStateRequest.name")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 57, 2> GetInternalStateRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetInternalStateRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetInternalStateRequest, _impl_.name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(GetInternalStateRequest, _impl_.name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\54\4\0\0\0\0\0\0" - "viam.service.slam.v1.GetInternalStateRequest" - "name" - }}, -}; - -::uint8_t* GetInternalStateRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetInternalStateRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.slam.v1.GetInternalStateRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.slam.v1.GetInternalStateRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.slam.v1.GetInternalStateRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.slam.v1.GetInternalStateRequest) return target; } -::size_t GetInternalStateRequest::ByteSizeLong() const { +size_t GetInternalStateRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.slam.v1.GetInternalStateRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetInternalStateRequest::_class_data_ = { - GetInternalStateRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetInternalStateRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetInternalStateRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetInternalStateRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetInternalStateRequest::GetClassData() const { return &_class_data_; } + +void GetInternalStateRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetInternalStateRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.slam.v1.GetInternalStateRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetInternalStateRequest::MergeFrom(const GetInternalStateRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.slam.v1.GetInternalStateRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetInternalStateRequest::CopyFrom(const GetInternalStateRequest& from) { @@ -1449,182 +1341,187 @@ void GetInternalStateRequest::CopyFrom(const GetInternalStateRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetInternalStateRequest::IsInitialized() const { +bool GetInternalStateRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetInternalStateRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetInternalStateRequest::InternalSwap(GetInternalStateRequest* PROTOBUF_RESTRICT other) { +void GetInternalStateRequest::InternalSwap(GetInternalStateRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); } -::google::protobuf::Metadata GetInternalStateRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetInternalStateRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fslam_2fv1_2fslam_2eproto_getter, &descriptor_table_service_2fslam_2fv1_2fslam_2eproto_once, file_level_metadata_service_2fslam_2fv1_2fslam_2eproto[4]); } + // =================================================================== class GetInternalStateResponse::_Internal { public: }; -GetInternalStateResponse::GetInternalStateResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetInternalStateResponse::GetInternalStateResponse(::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.slam.v1.GetInternalStateResponse) } -inline PROTOBUF_NDEBUG_INLINE GetInternalStateResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : internal_state_chunk_(arena, from.internal_state_chunk_), - _cached_size_{0} {} - -GetInternalStateResponse::GetInternalStateResponse( - ::google::protobuf::Arena* arena, - const GetInternalStateResponse& from) - : ::google::protobuf::Message(arena) { - GetInternalStateResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetInternalStateResponse::GetInternalStateResponse(const GetInternalStateResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + internal_state_chunk_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + internal_state_chunk_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_internal_state_chunk().empty()) { + internal_state_chunk_.Set(from._internal_internal_state_chunk(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.service.slam.v1.GetInternalStateResponse) } -inline PROTOBUF_NDEBUG_INLINE GetInternalStateResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : internal_state_chunk_(arena), - _cached_size_{0} {} -inline void GetInternalStateResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetInternalStateResponse::SharedCtor() { +internal_state_chunk_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + internal_state_chunk_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + GetInternalStateResponse::~GetInternalStateResponse() { // @@protoc_insertion_point(destructor:viam.service.slam.v1.GetInternalStateResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetInternalStateResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.internal_state_chunk_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + internal_state_chunk_.Destroy(); } -PROTOBUF_NOINLINE void GetInternalStateResponse::Clear() { +void GetInternalStateResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetInternalStateResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.slam.v1.GetInternalStateResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.internal_state_chunk_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetInternalStateResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + internal_state_chunk_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetInternalStateResponse::_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) { + // bytes internal_state_chunk = 1 [json_name = "internalStateChunk"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_internal_state_chunk(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> GetInternalStateResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetInternalStateResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // bytes internal_state_chunk = 1 [json_name = "internalStateChunk"]; - {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetInternalStateResponse, _impl_.internal_state_chunk_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bytes internal_state_chunk = 1 [json_name = "internalStateChunk"]; - {PROTOBUF_FIELD_OFFSET(GetInternalStateResponse, _impl_.internal_state_chunk_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* GetInternalStateResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetInternalStateResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.slam.v1.GetInternalStateResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // bytes internal_state_chunk = 1 [json_name = "internalStateChunk"]; if (!this->_internal_internal_state_chunk().empty()) { - const std::string& _s = this->_internal_internal_state_chunk(); - target = stream->WriteBytesMaybeAliased(1, _s, target); + target = stream->WriteBytesMaybeAliased( + 1, this->_internal_internal_state_chunk(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.slam.v1.GetInternalStateResponse) return target; } -::size_t GetInternalStateResponse::ByteSizeLong() const { +size_t GetInternalStateResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.slam.v1.GetInternalStateResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // bytes internal_state_chunk = 1 [json_name = "internalStateChunk"]; if (!this->_internal_internal_state_chunk().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_internal_state_chunk()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_internal_state_chunk()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetInternalStateResponse::_class_data_ = { - GetInternalStateResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetInternalStateResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetInternalStateResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetInternalStateResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetInternalStateResponse::GetClassData() const { return &_class_data_; } + +void GetInternalStateResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetInternalStateResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.slam.v1.GetInternalStateResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetInternalStateResponse::MergeFrom(const GetInternalStateResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.slam.v1.GetInternalStateResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_internal_state_chunk().empty()) { - _this->_internal_set_internal_state_chunk(from._internal_internal_state_chunk()); + _internal_set_internal_state_chunk(from._internal_internal_state_chunk()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetInternalStateResponse::CopyFrom(const GetInternalStateResponse& from) { @@ -1634,187 +1531,192 @@ void GetInternalStateResponse::CopyFrom(const GetInternalStateResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetInternalStateResponse::IsInitialized() const { +bool GetInternalStateResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetInternalStateResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetInternalStateResponse::InternalSwap(GetInternalStateResponse* PROTOBUF_RESTRICT other) { +void GetInternalStateResponse::InternalSwap(GetInternalStateResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.internal_state_chunk_, &other->_impl_.internal_state_chunk_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &internal_state_chunk_, lhs_arena, + &other->internal_state_chunk_, rhs_arena + ); } -::google::protobuf::Metadata GetInternalStateResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetInternalStateResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fslam_2fv1_2fslam_2eproto_getter, &descriptor_table_service_2fslam_2fv1_2fslam_2eproto_once, file_level_metadata_service_2fslam_2fv1_2fslam_2eproto[5]); } + // =================================================================== class GetPropertiesRequest::_Internal { public: }; -GetPropertiesRequest::GetPropertiesRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetPropertiesRequest::GetPropertiesRequest(::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.slam.v1.GetPropertiesRequest) } -inline PROTOBUF_NDEBUG_INLINE GetPropertiesRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : name_(arena, from.name_), - _cached_size_{0} {} - -GetPropertiesRequest::GetPropertiesRequest( - ::google::protobuf::Arena* arena, - const GetPropertiesRequest& from) - : ::google::protobuf::Message(arena) { - GetPropertiesRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetPropertiesRequest::GetPropertiesRequest(const GetPropertiesRequest& 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()); + } // @@protoc_insertion_point(copy_constructor:viam.service.slam.v1.GetPropertiesRequest) } -inline PROTOBUF_NDEBUG_INLINE GetPropertiesRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : name_(arena), - _cached_size_{0} {} -inline void GetPropertiesRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetPropertiesRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + GetPropertiesRequest::~GetPropertiesRequest() { // @@protoc_insertion_point(destructor:viam.service.slam.v1.GetPropertiesRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetPropertiesRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); } -PROTOBUF_NOINLINE void GetPropertiesRequest::Clear() { +void GetPropertiesRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetPropertiesRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.slam.v1.GetPropertiesRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetPropertiesRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPropertiesRequest::_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.service.slam.v1.GetPropertiesRequest.name")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 54, 2> GetPropertiesRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetPropertiesRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetPropertiesRequest, _impl_.name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(GetPropertiesRequest, _impl_.name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\51\4\0\0\0\0\0\0" - "viam.service.slam.v1.GetPropertiesRequest" - "name" - }}, -}; - -::uint8_t* GetPropertiesRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetPropertiesRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.slam.v1.GetPropertiesRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.slam.v1.GetPropertiesRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.slam.v1.GetPropertiesRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.slam.v1.GetPropertiesRequest) return target; } -::size_t GetPropertiesRequest::ByteSizeLong() const { +size_t GetPropertiesRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.slam.v1.GetPropertiesRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetPropertiesRequest::_class_data_ = { - GetPropertiesRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPropertiesRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetPropertiesRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetPropertiesRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPropertiesRequest::GetClassData() const { return &_class_data_; } + +void GetPropertiesRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetPropertiesRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.slam.v1.GetPropertiesRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetPropertiesRequest::MergeFrom(const GetPropertiesRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.slam.v1.GetPropertiesRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetPropertiesRequest::CopyFrom(const GetPropertiesRequest& from) { @@ -1824,284 +1726,293 @@ void GetPropertiesRequest::CopyFrom(const GetPropertiesRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetPropertiesRequest::IsInitialized() const { +bool GetPropertiesRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetPropertiesRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetPropertiesRequest::InternalSwap(GetPropertiesRequest* PROTOBUF_RESTRICT other) { +void GetPropertiesRequest::InternalSwap(GetPropertiesRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); } -::google::protobuf::Metadata GetPropertiesRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetPropertiesRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fslam_2fv1_2fslam_2eproto_getter, &descriptor_table_service_2fslam_2fv1_2fslam_2eproto_once, file_level_metadata_service_2fslam_2fv1_2fslam_2eproto[6]); } + // =================================================================== class GetPropertiesResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_._has_bits_); + using HasBits = decltype(std::declval()._has_bits_); static void set_has_internal_state_file_type(HasBits* has_bits) { (*has_bits)[0] |= 1u; } }; -GetPropertiesResponse::GetPropertiesResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetPropertiesResponse::GetPropertiesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + sensor_info_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.service.slam.v1.GetPropertiesResponse) } -inline PROTOBUF_NDEBUG_INLINE GetPropertiesResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - sensor_info_{visibility, arena, from.sensor_info_}, - internal_state_file_type_(arena, from.internal_state_file_type_) {} - -GetPropertiesResponse::GetPropertiesResponse( - ::google::protobuf::Arena* arena, - const GetPropertiesResponse& from) - : ::google::protobuf::Message(arena) { - GetPropertiesResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, cloud_slam_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, cloud_slam_), - offsetof(Impl_, mapping_mode_) - - offsetof(Impl_, cloud_slam_) + - sizeof(Impl_::mapping_mode_)); - +GetPropertiesResponse::GetPropertiesResponse(const GetPropertiesResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_), + sensor_info_(from.sensor_info_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + internal_state_file_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + internal_state_file_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (from._internal_has_internal_state_file_type()) { + internal_state_file_type_.Set(from._internal_internal_state_file_type(), + GetArenaForAllocation()); + } + ::memcpy(&cloud_slam_, &from.cloud_slam_, + static_cast(reinterpret_cast(&mapping_mode_) - + reinterpret_cast(&cloud_slam_)) + sizeof(mapping_mode_)); // @@protoc_insertion_point(copy_constructor:viam.service.slam.v1.GetPropertiesResponse) } -inline PROTOBUF_NDEBUG_INLINE GetPropertiesResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - sensor_info_{visibility, arena}, - internal_state_file_type_(arena) {} - -inline void GetPropertiesResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, cloud_slam_), - 0, - offsetof(Impl_, mapping_mode_) - - offsetof(Impl_, cloud_slam_) + - sizeof(Impl_::mapping_mode_)); + +inline void GetPropertiesResponse::SharedCtor() { +internal_state_file_type_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + internal_state_file_type_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&cloud_slam_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&mapping_mode_) - + reinterpret_cast(&cloud_slam_)) + sizeof(mapping_mode_)); } + GetPropertiesResponse::~GetPropertiesResponse() { // @@protoc_insertion_point(destructor:viam.service.slam.v1.GetPropertiesResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetPropertiesResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.internal_state_file_type_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + internal_state_file_type_.Destroy(); } -PROTOBUF_NOINLINE void GetPropertiesResponse::Clear() { +void GetPropertiesResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetPropertiesResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.slam.v1.GetPropertiesResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.sensor_info_.Clear(); - cached_has_bits = _impl_._has_bits_[0]; + sensor_info_.Clear(); + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { - _impl_.internal_state_file_type_.ClearNonDefaultToEmpty(); + internal_state_file_type_.ClearNonDefaultToEmpty(); } - ::memset(&_impl_.cloud_slam_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.mapping_mode_) - - reinterpret_cast(&_impl_.cloud_slam_)) + sizeof(_impl_.mapping_mode_)); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetPropertiesResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + ::memset(&cloud_slam_, 0, static_cast( + reinterpret_cast(&mapping_mode_) - + reinterpret_cast(&cloud_slam_)) + sizeof(mapping_mode_)); + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPropertiesResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // bool cloud_slam = 1 [json_name = "cloudSlam"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + cloud_slam_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.service.slam.v1.MappingMode mapping_mode = 2 [json_name = "mappingMode"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_mapping_mode(static_cast<::viam::service::slam::v1::MappingMode>(val)); + } else + goto handle_unusual; + continue; + // optional string internal_state_file_type = 3 [json_name = "internalStateFileType"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_internal_state_file_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.slam.v1.GetPropertiesResponse.internal_state_file_type")); + } else + goto handle_unusual; + continue; + // repeated .viam.service.slam.v1.SensorInfo sensor_info = 4 [json_name = "sensorInfo"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_sensor_info(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(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: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 1, 75, 2> GetPropertiesResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_._has_bits_), - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetPropertiesResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.service.slam.v1.SensorInfo sensor_info = 4 [json_name = "sensorInfo"]; - {::_pbi::TcParser::FastMtR1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.sensor_info_)}}, - // bool cloud_slam = 1 [json_name = "cloudSlam"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.cloud_slam_)}}, - // .viam.service.slam.v1.MappingMode mapping_mode = 2 [json_name = "mappingMode"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(GetPropertiesResponse, _impl_.mapping_mode_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.mapping_mode_)}}, - // optional string internal_state_file_type = 3 [json_name = "internalStateFileType"]; - {::_pbi::TcParser::FastUS1, - {26, 0, 0, PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.internal_state_file_type_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bool cloud_slam = 1 [json_name = "cloudSlam"]; - {PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.cloud_slam_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // .viam.service.slam.v1.MappingMode mapping_mode = 2 [json_name = "mappingMode"]; - {PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.mapping_mode_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // optional string internal_state_file_type = 3 [json_name = "internalStateFileType"]; - {PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.internal_state_file_type_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated .viam.service.slam.v1.SensorInfo sensor_info = 4 [json_name = "sensorInfo"]; - {PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.sensor_info_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::service::slam::v1::SensorInfo>()}, - }}, {{ - "\52\0\0\30\0\0\0\0" - "viam.service.slam.v1.GetPropertiesResponse" - "internal_state_file_type" - }}, -}; - -::uint8_t* GetPropertiesResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetPropertiesResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.slam.v1.GetPropertiesResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // bool cloud_slam = 1 [json_name = "cloudSlam"]; if (this->_internal_cloud_slam() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 1, this->_internal_cloud_slam(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_cloud_slam(), target); } // .viam.service.slam.v1.MappingMode mapping_mode = 2 [json_name = "mappingMode"]; if (this->_internal_mapping_mode() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 2, this->_internal_mapping_mode(), target); + 2, this->_internal_mapping_mode(), target); } - cached_has_bits = _impl_._has_bits_[0]; // optional string internal_state_file_type = 3 [json_name = "internalStateFileType"]; - if (cached_has_bits & 0x00000001u) { - const std::string& _s = this->_internal_internal_state_file_type(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.slam.v1.GetPropertiesResponse.internal_state_file_type"); - target = stream->WriteStringMaybeAliased(3, _s, target); + if (_internal_has_internal_state_file_type()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_internal_state_file_type().data(), static_cast(this->_internal_internal_state_file_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.slam.v1.GetPropertiesResponse.internal_state_file_type"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_internal_state_file_type(), target); } // repeated .viam.service.slam.v1.SensorInfo sensor_info = 4 [json_name = "sensorInfo"]; for (unsigned i = 0, n = static_cast(this->_internal_sensor_info_size()); i < n; i++) { - const auto& repfield = this->_internal_sensor_info().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_sensor_info(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(4, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.slam.v1.GetPropertiesResponse) return target; } -::size_t GetPropertiesResponse::ByteSizeLong() const { +size_t GetPropertiesResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.slam.v1.GetPropertiesResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.service.slam.v1.SensorInfo sensor_info = 4 [json_name = "sensorInfo"]; total_size += 1UL * this->_internal_sensor_info_size(); - for (const auto& msg : this->_internal_sensor_info()) { + for (const auto& msg : this->sensor_info_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // optional string internal_state_file_type = 3 [json_name = "internalStateFileType"]; - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_internal_state_file_type()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_internal_state_file_type()); } // bool cloud_slam = 1 [json_name = "cloudSlam"]; if (this->_internal_cloud_slam() != 0) { - total_size += 2; + total_size += 1 + 1; } // .viam.service.slam.v1.MappingMode mapping_mode = 2 [json_name = "mappingMode"]; if (this->_internal_mapping_mode() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_mapping_mode()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_mapping_mode()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetPropertiesResponse::_class_data_ = { - GetPropertiesResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPropertiesResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetPropertiesResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetPropertiesResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPropertiesResponse::GetClassData() const { return &_class_data_; } + +void GetPropertiesResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetPropertiesResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.slam.v1.GetPropertiesResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetPropertiesResponse::MergeFrom(const GetPropertiesResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.slam.v1.GetPropertiesResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_sensor_info()->MergeFrom( - from._internal_sensor_info()); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_set_internal_state_file_type(from._internal_internal_state_file_type()); + sensor_info_.MergeFrom(from.sensor_info_); + if (from._internal_has_internal_state_file_type()) { + _internal_set_internal_state_file_type(from._internal_internal_state_file_type()); } if (from._internal_cloud_slam() != 0) { - _this->_internal_set_cloud_slam(from._internal_cloud_slam()); + _internal_set_cloud_slam(from._internal_cloud_slam()); } if (from._internal_mapping_mode() != 0) { - _this->_internal_set_mapping_mode(from._internal_mapping_mode()); + _internal_set_mapping_mode(from._internal_mapping_mode()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetPropertiesResponse::CopyFrom(const GetPropertiesResponse& from) { @@ -2111,220 +2022,228 @@ void GetPropertiesResponse::CopyFrom(const GetPropertiesResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetPropertiesResponse::IsInitialized() const { +bool GetPropertiesResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetPropertiesResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetPropertiesResponse::InternalSwap(GetPropertiesResponse* PROTOBUF_RESTRICT other) { +void GetPropertiesResponse::InternalSwap(GetPropertiesResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.sensor_info_.InternalSwap(&other->_impl_.sensor_info_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.internal_state_file_type_, &other->_impl_.internal_state_file_type_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.mapping_mode_) - + sizeof(GetPropertiesResponse::_impl_.mapping_mode_) - - PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.cloud_slam_)>( - reinterpret_cast(&_impl_.cloud_slam_), - reinterpret_cast(&other->_impl_.cloud_slam_)); -} - -::google::protobuf::Metadata GetPropertiesResponse::GetMetadata() const { + swap(_has_bits_[0], other->_has_bits_[0]); + sensor_info_.InternalSwap(&other->sensor_info_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &internal_state_file_type_, lhs_arena, + &other->internal_state_file_type_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, mapping_mode_) + + sizeof(GetPropertiesResponse::mapping_mode_) + - PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, cloud_slam_)>( + reinterpret_cast(&cloud_slam_), + reinterpret_cast(&other->cloud_slam_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetPropertiesResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fslam_2fv1_2fslam_2eproto_getter, &descriptor_table_service_2fslam_2fv1_2fslam_2eproto_once, file_level_metadata_service_2fslam_2fv1_2fslam_2eproto[7]); } + // =================================================================== class SensorInfo::_Internal { public: }; -SensorInfo::SensorInfo(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +SensorInfo::SensorInfo(::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.slam.v1.SensorInfo) } -inline PROTOBUF_NDEBUG_INLINE SensorInfo::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : name_(arena, from.name_), - _cached_size_{0} {} - -SensorInfo::SensorInfo( - ::google::protobuf::Arena* arena, - const SensorInfo& from) - : ::google::protobuf::Message(arena) { - SensorInfo* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.type_ = from._impl_.type_; - +SensorInfo::SensorInfo(const SensorInfo& 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()); + } + type_ = from.type_; // @@protoc_insertion_point(copy_constructor:viam.service.slam.v1.SensorInfo) } -inline PROTOBUF_NDEBUG_INLINE SensorInfo::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : name_(arena), - _cached_size_{0} {} -inline void SensorInfo::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.type_ = {}; +inline void SensorInfo::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +type_ = 0; } + SensorInfo::~SensorInfo() { // @@protoc_insertion_point(destructor:viam.service.slam.v1.SensorInfo) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void SensorInfo::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); +} + +void SensorInfo::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void SensorInfo::Clear() { +void SensorInfo::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.slam.v1.SensorInfo) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _impl_.type_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SensorInfo::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + type_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SensorInfo::_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.service.slam.v1.SensorInfo.name")); + } else + goto handle_unusual; + continue; + // .viam.service.slam.v1.SensorType type = 2 [json_name = "type"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_type(static_cast<::viam::service::slam::v1::SensorType>(val)); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 44, 2> SensorInfo::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_SensorInfo_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .viam.service.slam.v1.SensorType type = 2 [json_name = "type"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SensorInfo, _impl_.type_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(SensorInfo, _impl_.type_)}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(SensorInfo, _impl_.name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(SensorInfo, _impl_.name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .viam.service.slam.v1.SensorType type = 2 [json_name = "type"]; - {PROTOBUF_FIELD_OFFSET(SensorInfo, _impl_.type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - }}, - // no aux_entries - {{ - "\37\4\0\0\0\0\0\0" - "viam.service.slam.v1.SensorInfo" - "name" - }}, -}; - -::uint8_t* SensorInfo::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* SensorInfo::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.slam.v1.SensorInfo) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.slam.v1.SensorInfo.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.slam.v1.SensorInfo.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // .viam.service.slam.v1.SensorType type = 2 [json_name = "type"]; if (this->_internal_type() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 2, this->_internal_type(), target); + 2, this->_internal_type(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.slam.v1.SensorInfo) return target; } -::size_t SensorInfo::ByteSizeLong() const { +size_t SensorInfo::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.slam.v1.SensorInfo) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .viam.service.slam.v1.SensorType type = 2 [json_name = "type"]; if (this->_internal_type() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_type()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_type()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData SensorInfo::_class_data_ = { - SensorInfo::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SensorInfo::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + SensorInfo::MergeImpl }; -const ::google::protobuf::Message::ClassData* SensorInfo::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SensorInfo::GetClassData() const { return &_class_data_; } + +void SensorInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void SensorInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.slam.v1.SensorInfo) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void SensorInfo::MergeFrom(const SensorInfo& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.slam.v1.SensorInfo) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (from._internal_type() != 0) { - _this->_internal_set_type(from._internal_type()); + _internal_set_type(from._internal_type()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SensorInfo::CopyFrom(const SensorInfo& from) { @@ -2334,35 +2253,71 @@ void SensorInfo::CopyFrom(const SensorInfo& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool SensorInfo::IsInitialized() const { +bool SensorInfo::IsInitialized() const { return true; } -::_pbi::CachedSize* SensorInfo::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void SensorInfo::InternalSwap(SensorInfo* PROTOBUF_RESTRICT other) { +void SensorInfo::InternalSwap(SensorInfo* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.type_, other->_impl_.type_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(type_, other->type_); } -::google::protobuf::Metadata SensorInfo::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata SensorInfo::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fslam_2fv1_2fslam_2eproto_getter, &descriptor_table_service_2fslam_2fv1_2fslam_2eproto_once, file_level_metadata_service_2fslam_2fv1_2fslam_2eproto[8]); } + // @@protoc_insertion_point(namespace_scope) } // namespace v1 } // namespace slam } // namespace service } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::service::slam::v1::GetPositionRequest* +Arena::CreateMaybeMessage< ::viam::service::slam::v1::GetPositionRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::slam::v1::GetPositionRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::slam::v1::GetPositionResponse* +Arena::CreateMaybeMessage< ::viam::service::slam::v1::GetPositionResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::slam::v1::GetPositionResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::slam::v1::GetPointCloudMapRequest* +Arena::CreateMaybeMessage< ::viam::service::slam::v1::GetPointCloudMapRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::slam::v1::GetPointCloudMapRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::slam::v1::GetPointCloudMapResponse* +Arena::CreateMaybeMessage< ::viam::service::slam::v1::GetPointCloudMapResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::slam::v1::GetPointCloudMapResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::slam::v1::GetInternalStateRequest* +Arena::CreateMaybeMessage< ::viam::service::slam::v1::GetInternalStateRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::slam::v1::GetInternalStateRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::slam::v1::GetInternalStateResponse* +Arena::CreateMaybeMessage< ::viam::service::slam::v1::GetInternalStateResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::slam::v1::GetInternalStateResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::slam::v1::GetPropertiesRequest* +Arena::CreateMaybeMessage< ::viam::service::slam::v1::GetPropertiesRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::slam::v1::GetPropertiesRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::slam::v1::GetPropertiesResponse* +Arena::CreateMaybeMessage< ::viam::service::slam::v1::GetPropertiesResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::slam::v1::GetPropertiesResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::slam::v1::SensorInfo* +Arena::CreateMaybeMessage< ::viam::service::slam::v1::SensorInfo >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::slam::v1::SensorInfo >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/service/slam/v1/slam.pb.h b/src/viam/api/service/slam/v1/slam.pb.h index 85a965d43..5ce5c504c 100644 --- a/src/viam/api/service/slam/v1/slam.pb.h +++ b/src/viam/api/service/slam/v1/slam.pb.h @@ -1,63 +1,52 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: service/slam/v1/slam.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_service_2fslam_2fv1_2fslam_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_service_2fslam_2fv1_2fslam_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_service_2fslam_2fv1_2fslam_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_service_2fslam_2fv1_2fslam_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/generated_enum_reflection.h" -#include "google/protobuf/unknown_field_set.h" + +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include #include "common/v1/common.pb.h" #include "google/api/annotations.pb.h" // @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - +#include #define PROTOBUF_INTERNAL_EXPORT_service_2fslam_2fv1_2fslam_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_service_2fslam_2fv1_2fslam_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_service_2fslam_2fv1_2fslam_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_service_2fslam_2fv1_2fslam_2eproto; namespace viam { namespace service { namespace slam { @@ -93,114 +82,99 @@ extern SensorInfoDefaultTypeInternal _SensorInfo_default_instance_; } // namespace slam } // namespace service } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::service::slam::v1::GetInternalStateRequest* Arena::CreateMaybeMessage<::viam::service::slam::v1::GetInternalStateRequest>(Arena*); +template<> ::viam::service::slam::v1::GetInternalStateResponse* Arena::CreateMaybeMessage<::viam::service::slam::v1::GetInternalStateResponse>(Arena*); +template<> ::viam::service::slam::v1::GetPointCloudMapRequest* Arena::CreateMaybeMessage<::viam::service::slam::v1::GetPointCloudMapRequest>(Arena*); +template<> ::viam::service::slam::v1::GetPointCloudMapResponse* Arena::CreateMaybeMessage<::viam::service::slam::v1::GetPointCloudMapResponse>(Arena*); +template<> ::viam::service::slam::v1::GetPositionRequest* Arena::CreateMaybeMessage<::viam::service::slam::v1::GetPositionRequest>(Arena*); +template<> ::viam::service::slam::v1::GetPositionResponse* Arena::CreateMaybeMessage<::viam::service::slam::v1::GetPositionResponse>(Arena*); +template<> ::viam::service::slam::v1::GetPropertiesRequest* Arena::CreateMaybeMessage<::viam::service::slam::v1::GetPropertiesRequest>(Arena*); +template<> ::viam::service::slam::v1::GetPropertiesResponse* Arena::CreateMaybeMessage<::viam::service::slam::v1::GetPropertiesResponse>(Arena*); +template<> ::viam::service::slam::v1::SensorInfo* Arena::CreateMaybeMessage<::viam::service::slam::v1::SensorInfo>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace viam { namespace service { namespace slam { namespace v1 { + enum MappingMode : int { MAPPING_MODE_UNSPECIFIED = 0, MAPPING_MODE_CREATE_NEW_MAP = 1, MAPPING_MODE_LOCALIZE_ONLY = 2, MAPPING_MODE_UPDATE_EXISTING_MAP = 3, - MappingMode_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - MappingMode_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), + MappingMode_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + MappingMode_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() }; - bool MappingMode_IsValid(int value); -extern const uint32_t MappingMode_internal_data_[]; -constexpr MappingMode MappingMode_MIN = static_cast(0); -constexpr MappingMode MappingMode_MAX = static_cast(3); -constexpr int MappingMode_ARRAYSIZE = 3 + 1; -const ::google::protobuf::EnumDescriptor* -MappingMode_descriptor(); -template -const std::string& MappingMode_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to MappingMode_Name()."); - return MappingMode_Name(static_cast(value)); -} -template <> -inline const std::string& MappingMode_Name(MappingMode value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool MappingMode_Parse(absl::string_view name, MappingMode* value) { - return ::google::protobuf::internal::ParseNamedEnum( - MappingMode_descriptor(), name, value); +constexpr MappingMode MappingMode_MIN = MAPPING_MODE_UNSPECIFIED; +constexpr MappingMode MappingMode_MAX = MAPPING_MODE_UPDATE_EXISTING_MAP; +constexpr int MappingMode_ARRAYSIZE = MappingMode_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* MappingMode_descriptor(); +template +inline const std::string& MappingMode_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function MappingMode_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + MappingMode_descriptor(), enum_t_value); +} +inline bool MappingMode_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, MappingMode* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + MappingMode_descriptor(), name, value); } enum SensorType : int { SENSOR_TYPE_UNSPECIFIED = 0, SENSOR_TYPE_CAMERA = 1, SENSOR_TYPE_MOVEMENT_SENSOR = 2, - SensorType_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - SensorType_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), + SensorType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + SensorType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() }; - bool SensorType_IsValid(int value); -extern const uint32_t SensorType_internal_data_[]; -constexpr SensorType SensorType_MIN = static_cast(0); -constexpr SensorType SensorType_MAX = static_cast(2); -constexpr int SensorType_ARRAYSIZE = 2 + 1; -const ::google::protobuf::EnumDescriptor* -SensorType_descriptor(); -template -const std::string& SensorType_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to SensorType_Name()."); - return SensorType_Name(static_cast(value)); -} -template <> -inline const std::string& SensorType_Name(SensorType value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool SensorType_Parse(absl::string_view name, SensorType* value) { - return ::google::protobuf::internal::ParseNamedEnum( - SensorType_descriptor(), name, value); +constexpr SensorType SensorType_MIN = SENSOR_TYPE_UNSPECIFIED; +constexpr SensorType SensorType_MAX = SENSOR_TYPE_MOVEMENT_SENSOR; +constexpr int SensorType_ARRAYSIZE = SensorType_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SensorType_descriptor(); +template +inline const std::string& SensorType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function SensorType_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + SensorType_descriptor(), enum_t_value); +} +inline bool SensorType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SensorType* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + SensorType_descriptor(), name, value); } - // =================================================================== - -// ------------------------------------------------------------------- - -class SensorInfo final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.slam.v1.SensorInfo) */ { +class GetPositionRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.slam.v1.GetPositionRequest) */ { public: - inline SensorInfo() : SensorInfo(nullptr) {} - ~SensorInfo() override; - template - explicit PROTOBUF_CONSTEXPR SensorInfo(::google::protobuf::internal::ConstantInitialized); + inline GetPositionRequest() : GetPositionRequest(nullptr) {} + ~GetPositionRequest() override; + explicit PROTOBUF_CONSTEXPR GetPositionRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline SensorInfo(const SensorInfo& from) - : SensorInfo(nullptr, from) {} - SensorInfo(SensorInfo&& from) noexcept - : SensorInfo() { + GetPositionRequest(const GetPositionRequest& from); + GetPositionRequest(GetPositionRequest&& from) noexcept + : GetPositionRequest() { *this = ::std::move(from); } - inline SensorInfo& operator=(const SensorInfo& from) { + inline GetPositionRequest& operator=(const GetPositionRequest& from) { CopyFrom(from); return *this; } - inline SensorInfo& operator=(SensorInfo&& from) noexcept { + inline GetPositionRequest& operator=(GetPositionRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -210,99 +184,88 @@ class SensorInfo final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SensorInfo& default_instance() { + static const GetPositionRequest& default_instance() { return *internal_default_instance(); } - static inline const SensorInfo* internal_default_instance() { - return reinterpret_cast( - &_SensorInfo_default_instance_); + static inline const GetPositionRequest* internal_default_instance() { + return reinterpret_cast( + &_GetPositionRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 8; + 0; - friend void swap(SensorInfo& a, SensorInfo& b) { + friend void swap(GetPositionRequest& a, GetPositionRequest& b) { a.Swap(&b); } - inline void Swap(SensorInfo* other) { + inline void Swap(GetPositionRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SensorInfo* other) { + void UnsafeArenaSwap(GetPositionRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SensorInfo* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SensorInfo& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SensorInfo& from) { - SensorInfo::MergeImpl(*this, from); + GetPositionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPositionRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetPositionRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(SensorInfo* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetPositionRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.slam.v1.SensorInfo"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.slam.v1.GetPositionRequest"; } protected: - explicit SensorInfo(::google::protobuf::Arena* arena); - SensorInfo(::google::protobuf::Arena* arena, const SensorInfo& from); + explicit GetPositionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -310,90 +273,56 @@ class SensorInfo final : enum : int { kNameFieldNumber = 1, - kTypeFieldNumber = 2, }; // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); std::string* _internal_mutable_name(); - public: - // .viam.service.slam.v1.SensorType type = 2 [json_name = "type"]; - void clear_type() ; - ::viam::service::slam::v1::SensorType type() const; - void set_type(::viam::service::slam::v1::SensorType value); - - private: - ::viam::service::slam::v1::SensorType _internal_type() const; - void _internal_set_type(::viam::service::slam::v1::SensorType value); - public: - // @@protoc_insertion_point(class_scope:viam.service.slam.v1.SensorInfo) + // @@protoc_insertion_point(class_scope:viam.service.slam.v1.GetPositionRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 44, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr name_; - int type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fslam_2fv1_2fslam_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetPropertiesRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.slam.v1.GetPropertiesRequest) */ { +class GetPositionResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.slam.v1.GetPositionResponse) */ { public: - inline GetPropertiesRequest() : GetPropertiesRequest(nullptr) {} - ~GetPropertiesRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetPropertiesRequest(::google::protobuf::internal::ConstantInitialized); + inline GetPositionResponse() : GetPositionResponse(nullptr) {} + ~GetPositionResponse() override; + explicit PROTOBUF_CONSTEXPR GetPositionResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetPropertiesRequest(const GetPropertiesRequest& from) - : GetPropertiesRequest(nullptr, from) {} - GetPropertiesRequest(GetPropertiesRequest&& from) noexcept - : GetPropertiesRequest() { + GetPositionResponse(const GetPositionResponse& from); + GetPositionResponse(GetPositionResponse&& from) noexcept + : GetPositionResponse() { *this = ::std::move(from); } - inline GetPropertiesRequest& operator=(const GetPropertiesRequest& from) { + inline GetPositionResponse& operator=(const GetPositionResponse& from) { CopyFrom(from); return *this; } - inline GetPropertiesRequest& operator=(GetPropertiesRequest&& from) noexcept { + inline GetPositionResponse& operator=(GetPositionResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -403,178 +332,149 @@ class GetPropertiesRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetPropertiesRequest& default_instance() { + static const GetPositionResponse& default_instance() { return *internal_default_instance(); } - static inline const GetPropertiesRequest* internal_default_instance() { - return reinterpret_cast( - &_GetPropertiesRequest_default_instance_); + static inline const GetPositionResponse* internal_default_instance() { + return reinterpret_cast( + &_GetPositionResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 6; + 1; - friend void swap(GetPropertiesRequest& a, GetPropertiesRequest& b) { + friend void swap(GetPositionResponse& a, GetPositionResponse& b) { a.Swap(&b); } - inline void Swap(GetPropertiesRequest* other) { + inline void Swap(GetPositionResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetPropertiesRequest* other) { + void UnsafeArenaSwap(GetPositionResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetPropertiesRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetPropertiesRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetPropertiesRequest& from) { - GetPropertiesRequest::MergeImpl(*this, from); + GetPositionResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPositionResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetPositionResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetPropertiesRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetPositionResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.slam.v1.GetPropertiesRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.slam.v1.GetPositionResponse"; } protected: - explicit GetPropertiesRequest(::google::protobuf::Arena* arena); - GetPropertiesRequest(::google::protobuf::Arena* arena, const GetPropertiesRequest& from); + explicit GetPositionResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kNameFieldNumber = 1, + kPoseFieldNumber = 1, }; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + // .viam.common.v1.Pose pose = 1 [json_name = "pose"]; + bool has_pose() const; private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - + bool _internal_has_pose() const; public: - // @@protoc_insertion_point(class_scope:viam.service.slam.v1.GetPropertiesRequest) + void clear_pose(); + const ::viam::common::v1::Pose& pose() const; + PROTOBUF_NODISCARD ::viam::common::v1::Pose* release_pose(); + ::viam::common::v1::Pose* mutable_pose(); + void set_allocated_pose(::viam::common::v1::Pose* pose); + private: + const ::viam::common::v1::Pose& _internal_pose() const; + ::viam::common::v1::Pose* _internal_mutable_pose(); + public: + void unsafe_arena_set_allocated_pose( + ::viam::common::v1::Pose* pose); + ::viam::common::v1::Pose* unsafe_arena_release_pose(); + + // @@protoc_insertion_point(class_scope:viam.service.slam.v1.GetPositionResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 54, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr name_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::viam::common::v1::Pose* pose_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fslam_2fv1_2fslam_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetPositionRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.slam.v1.GetPositionRequest) */ { +class GetPointCloudMapRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.slam.v1.GetPointCloudMapRequest) */ { public: - inline GetPositionRequest() : GetPositionRequest(nullptr) {} - ~GetPositionRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetPositionRequest(::google::protobuf::internal::ConstantInitialized); + inline GetPointCloudMapRequest() : GetPointCloudMapRequest(nullptr) {} + ~GetPointCloudMapRequest() override; + explicit PROTOBUF_CONSTEXPR GetPointCloudMapRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetPositionRequest(const GetPositionRequest& from) - : GetPositionRequest(nullptr, from) {} - GetPositionRequest(GetPositionRequest&& from) noexcept - : GetPositionRequest() { + GetPointCloudMapRequest(const GetPointCloudMapRequest& from); + GetPointCloudMapRequest(GetPointCloudMapRequest&& from) noexcept + : GetPointCloudMapRequest() { *this = ::std::move(from); } - inline GetPositionRequest& operator=(const GetPositionRequest& from) { + inline GetPointCloudMapRequest& operator=(const GetPointCloudMapRequest& from) { CopyFrom(from); return *this; } - inline GetPositionRequest& operator=(GetPositionRequest&& from) noexcept { + inline GetPointCloudMapRequest& operator=(GetPointCloudMapRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -584,99 +484,88 @@ class GetPositionRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetPositionRequest& default_instance() { + static const GetPointCloudMapRequest& default_instance() { return *internal_default_instance(); } - static inline const GetPositionRequest* internal_default_instance() { - return reinterpret_cast( - &_GetPositionRequest_default_instance_); + static inline const GetPointCloudMapRequest* internal_default_instance() { + return reinterpret_cast( + &_GetPointCloudMapRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 0; + 2; - friend void swap(GetPositionRequest& a, GetPositionRequest& b) { + friend void swap(GetPointCloudMapRequest& a, GetPointCloudMapRequest& b) { a.Swap(&b); } - inline void Swap(GetPositionRequest* other) { + inline void Swap(GetPointCloudMapRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetPositionRequest* other) { + void UnsafeArenaSwap(GetPointCloudMapRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetPositionRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetPositionRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetPositionRequest& from) { - GetPositionRequest::MergeImpl(*this, from); + GetPointCloudMapRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPointCloudMapRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetPointCloudMapRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetPositionRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetPointCloudMapRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.slam.v1.GetPositionRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.slam.v1.GetPointCloudMapRequest"; } protected: - explicit GetPositionRequest(::google::protobuf::Arena* arena); - GetPositionRequest(::google::protobuf::Arena* arena, const GetPositionRequest& from); + explicit GetPointCloudMapRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -684,64 +573,58 @@ class GetPositionRequest final : enum : int { kNameFieldNumber = 1, + kReturnEditedMapFieldNumber = 2, }; // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); std::string* _internal_mutable_name(); + public: + // optional bool return_edited_map = 2 [json_name = "returnEditedMap"]; + bool has_return_edited_map() const; + private: + bool _internal_has_return_edited_map() const; public: - // @@protoc_insertion_point(class_scope:viam.service.slam.v1.GetPositionRequest) + void clear_return_edited_map(); + bool return_edited_map() const; + void set_return_edited_map(bool value); + private: + bool _internal_return_edited_map() const; + void _internal_set_return_edited_map(bool value); + public: + + // @@protoc_insertion_point(class_scope:viam.service.slam.v1.GetPointCloudMapRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 52, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr name_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + bool return_edited_map_; friend struct ::TableStruct_service_2fslam_2fv1_2fslam_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class GetPointCloudMapResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.slam.v1.GetPointCloudMapResponse) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.slam.v1.GetPointCloudMapResponse) */ { public: inline GetPointCloudMapResponse() : GetPointCloudMapResponse(nullptr) {} ~GetPointCloudMapResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetPointCloudMapResponse(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR GetPointCloudMapResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetPointCloudMapResponse(const GetPointCloudMapResponse& from) - : GetPointCloudMapResponse(nullptr, from) {} + GetPointCloudMapResponse(const GetPointCloudMapResponse& from); GetPointCloudMapResponse(GetPointCloudMapResponse&& from) noexcept : GetPointCloudMapResponse() { *this = ::std::move(from); @@ -753,9 +636,9 @@ class GetPointCloudMapResponse final : } inline GetPointCloudMapResponse& operator=(GetPointCloudMapResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -765,22 +648,13 @@ class GetPointCloudMapResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const GetPointCloudMapResponse& default_instance() { @@ -799,65 +673,63 @@ class GetPointCloudMapResponse final : inline void Swap(GetPointCloudMapResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(GetPointCloudMapResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetPointCloudMapResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + GetPointCloudMapResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const GetPointCloudMapResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetPointCloudMapResponse& from) { - GetPointCloudMapResponse::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetPointCloudMapResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(GetPointCloudMapResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "viam.service.slam.v1.GetPointCloudMapResponse"; } protected: - explicit GetPointCloudMapResponse(::google::protobuf::Arena* arena); - GetPointCloudMapResponse(::google::protobuf::Arena* arena, const GetPointCloudMapResponse& from); + explicit GetPointCloudMapResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -867,76 +739,54 @@ class GetPointCloudMapResponse final : kPointCloudPcdChunkFieldNumber = 1, }; // bytes point_cloud_pcd_chunk = 1 [json_name = "pointCloudPcdChunk"]; - void clear_point_cloud_pcd_chunk() ; + void clear_point_cloud_pcd_chunk(); const std::string& point_cloud_pcd_chunk() const; - template - void set_point_cloud_pcd_chunk(Arg_&& arg, Args_... args); + template + void set_point_cloud_pcd_chunk(ArgT0&& arg0, ArgT... args); std::string* mutable_point_cloud_pcd_chunk(); PROTOBUF_NODISCARD std::string* release_point_cloud_pcd_chunk(); - void set_allocated_point_cloud_pcd_chunk(std::string* value); - + void set_allocated_point_cloud_pcd_chunk(std::string* point_cloud_pcd_chunk); private: const std::string& _internal_point_cloud_pcd_chunk() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_point_cloud_pcd_chunk( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_point_cloud_pcd_chunk(const std::string& value); std::string* _internal_mutable_point_cloud_pcd_chunk(); - public: + // @@protoc_insertion_point(class_scope:viam.service.slam.v1.GetPointCloudMapResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr point_cloud_pcd_chunk_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr point_cloud_pcd_chunk_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fslam_2fv1_2fslam_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetPointCloudMapRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.slam.v1.GetPointCloudMapRequest) */ { +class GetInternalStateRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.slam.v1.GetInternalStateRequest) */ { public: - inline GetPointCloudMapRequest() : GetPointCloudMapRequest(nullptr) {} - ~GetPointCloudMapRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetPointCloudMapRequest(::google::protobuf::internal::ConstantInitialized); + inline GetInternalStateRequest() : GetInternalStateRequest(nullptr) {} + ~GetInternalStateRequest() override; + explicit PROTOBUF_CONSTEXPR GetInternalStateRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetPointCloudMapRequest(const GetPointCloudMapRequest& from) - : GetPointCloudMapRequest(nullptr, from) {} - GetPointCloudMapRequest(GetPointCloudMapRequest&& from) noexcept - : GetPointCloudMapRequest() { + GetInternalStateRequest(const GetInternalStateRequest& from); + GetInternalStateRequest(GetInternalStateRequest&& from) noexcept + : GetInternalStateRequest() { *this = ::std::move(from); } - inline GetPointCloudMapRequest& operator=(const GetPointCloudMapRequest& from) { + inline GetInternalStateRequest& operator=(const GetInternalStateRequest& from) { CopyFrom(from); return *this; } - inline GetPointCloudMapRequest& operator=(GetPointCloudMapRequest&& from) noexcept { + inline GetInternalStateRequest& operator=(GetInternalStateRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -946,99 +796,88 @@ class GetPointCloudMapRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetPointCloudMapRequest& default_instance() { + static const GetInternalStateRequest& default_instance() { return *internal_default_instance(); } - static inline const GetPointCloudMapRequest* internal_default_instance() { - return reinterpret_cast( - &_GetPointCloudMapRequest_default_instance_); + static inline const GetInternalStateRequest* internal_default_instance() { + return reinterpret_cast( + &_GetInternalStateRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 2; + 4; - friend void swap(GetPointCloudMapRequest& a, GetPointCloudMapRequest& b) { + friend void swap(GetInternalStateRequest& a, GetInternalStateRequest& b) { a.Swap(&b); } - inline void Swap(GetPointCloudMapRequest* other) { + inline void Swap(GetInternalStateRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetPointCloudMapRequest* other) { + void UnsafeArenaSwap(GetInternalStateRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetPointCloudMapRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetPointCloudMapRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetPointCloudMapRequest& from) { - GetPointCloudMapRequest::MergeImpl(*this, from); + GetInternalStateRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetInternalStateRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetInternalStateRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetPointCloudMapRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetInternalStateRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.slam.v1.GetPointCloudMapRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.slam.v1.GetInternalStateRequest"; } protected: - explicit GetPointCloudMapRequest(::google::protobuf::Arena* arena); - GetPointCloudMapRequest(::google::protobuf::Arena* arena, const GetPointCloudMapRequest& from); + explicit GetInternalStateRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1046,78 +885,42 @@ class GetPointCloudMapRequest final : enum : int { kNameFieldNumber = 1, - kReturnEditedMapFieldNumber = 2, }; // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); std::string* _internal_mutable_name(); - public: - // optional bool return_edited_map = 2 [json_name = "returnEditedMap"]; - bool has_return_edited_map() const; - void clear_return_edited_map() ; - bool return_edited_map() const; - void set_return_edited_map(bool value); - private: - bool _internal_return_edited_map() const; - void _internal_set_return_edited_map(bool value); - - public: - // @@protoc_insertion_point(class_scope:viam.service.slam.v1.GetPointCloudMapRequest) + // @@protoc_insertion_point(class_scope:viam.service.slam.v1.GetInternalStateRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 57, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - bool return_edited_map_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fslam_2fv1_2fslam_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class GetInternalStateResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.slam.v1.GetInternalStateResponse) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.slam.v1.GetInternalStateResponse) */ { public: inline GetInternalStateResponse() : GetInternalStateResponse(nullptr) {} ~GetInternalStateResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetInternalStateResponse(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR GetInternalStateResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetInternalStateResponse(const GetInternalStateResponse& from) - : GetInternalStateResponse(nullptr, from) {} + GetInternalStateResponse(const GetInternalStateResponse& from); GetInternalStateResponse(GetInternalStateResponse&& from) noexcept : GetInternalStateResponse() { *this = ::std::move(from); @@ -1129,9 +932,9 @@ class GetInternalStateResponse final : } inline GetInternalStateResponse& operator=(GetInternalStateResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1141,22 +944,13 @@ class GetInternalStateResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const GetInternalStateResponse& default_instance() { @@ -1175,65 +969,63 @@ class GetInternalStateResponse final : inline void Swap(GetInternalStateResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(GetInternalStateResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetInternalStateResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + GetInternalStateResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const GetInternalStateResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetInternalStateResponse& from) { - GetInternalStateResponse::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetInternalStateResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(GetInternalStateResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "viam.service.slam.v1.GetInternalStateResponse"; } protected: - explicit GetInternalStateResponse(::google::protobuf::Arena* arena); - GetInternalStateResponse(::google::protobuf::Arena* arena, const GetInternalStateResponse& from); + explicit GetInternalStateResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1243,76 +1035,54 @@ class GetInternalStateResponse final : kInternalStateChunkFieldNumber = 1, }; // bytes internal_state_chunk = 1 [json_name = "internalStateChunk"]; - void clear_internal_state_chunk() ; + void clear_internal_state_chunk(); const std::string& internal_state_chunk() const; - template - void set_internal_state_chunk(Arg_&& arg, Args_... args); + template + void set_internal_state_chunk(ArgT0&& arg0, ArgT... args); std::string* mutable_internal_state_chunk(); PROTOBUF_NODISCARD std::string* release_internal_state_chunk(); - void set_allocated_internal_state_chunk(std::string* value); - + void set_allocated_internal_state_chunk(std::string* internal_state_chunk); private: const std::string& _internal_internal_state_chunk() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_internal_state_chunk( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_internal_state_chunk(const std::string& value); std::string* _internal_mutable_internal_state_chunk(); - public: + // @@protoc_insertion_point(class_scope:viam.service.slam.v1.GetInternalStateResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr internal_state_chunk_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr internal_state_chunk_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fslam_2fv1_2fslam_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetInternalStateRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.slam.v1.GetInternalStateRequest) */ { +class GetPropertiesRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.slam.v1.GetPropertiesRequest) */ { public: - inline GetInternalStateRequest() : GetInternalStateRequest(nullptr) {} - ~GetInternalStateRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetInternalStateRequest(::google::protobuf::internal::ConstantInitialized); + inline GetPropertiesRequest() : GetPropertiesRequest(nullptr) {} + ~GetPropertiesRequest() override; + explicit PROTOBUF_CONSTEXPR GetPropertiesRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetInternalStateRequest(const GetInternalStateRequest& from) - : GetInternalStateRequest(nullptr, from) {} - GetInternalStateRequest(GetInternalStateRequest&& from) noexcept - : GetInternalStateRequest() { + GetPropertiesRequest(const GetPropertiesRequest& from); + GetPropertiesRequest(GetPropertiesRequest&& from) noexcept + : GetPropertiesRequest() { *this = ::std::move(from); } - inline GetInternalStateRequest& operator=(const GetInternalStateRequest& from) { + inline GetPropertiesRequest& operator=(const GetPropertiesRequest& from) { CopyFrom(from); return *this; } - inline GetInternalStateRequest& operator=(GetInternalStateRequest&& from) noexcept { + inline GetPropertiesRequest& operator=(GetPropertiesRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1322,99 +1092,88 @@ class GetInternalStateRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetInternalStateRequest& default_instance() { + static const GetPropertiesRequest& default_instance() { return *internal_default_instance(); } - static inline const GetInternalStateRequest* internal_default_instance() { - return reinterpret_cast( - &_GetInternalStateRequest_default_instance_); + static inline const GetPropertiesRequest* internal_default_instance() { + return reinterpret_cast( + &_GetPropertiesRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 4; + 6; - friend void swap(GetInternalStateRequest& a, GetInternalStateRequest& b) { + friend void swap(GetPropertiesRequest& a, GetPropertiesRequest& b) { a.Swap(&b); } - inline void Swap(GetInternalStateRequest* other) { + inline void Swap(GetPropertiesRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetInternalStateRequest* other) { + void UnsafeArenaSwap(GetPropertiesRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetInternalStateRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetInternalStateRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetInternalStateRequest& from) { - GetInternalStateRequest::MergeImpl(*this, from); + GetPropertiesRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPropertiesRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetPropertiesRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetInternalStateRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetPropertiesRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.slam.v1.GetInternalStateRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.slam.v1.GetPropertiesRequest"; } protected: - explicit GetInternalStateRequest(::google::protobuf::Arena* arena); - GetInternalStateRequest(::google::protobuf::Arena* arena, const GetInternalStateRequest& from); + explicit GetPropertiesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1424,62 +1183,40 @@ class GetInternalStateRequest final : kNameFieldNumber = 1, }; // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); std::string* _internal_mutable_name(); - public: - // @@protoc_insertion_point(class_scope:viam.service.slam.v1.GetInternalStateRequest) + + // @@protoc_insertion_point(class_scope:viam.service.slam.v1.GetPropertiesRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 57, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr name_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fslam_2fv1_2fslam_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class GetPropertiesResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.slam.v1.GetPropertiesResponse) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.slam.v1.GetPropertiesResponse) */ { public: inline GetPropertiesResponse() : GetPropertiesResponse(nullptr) {} ~GetPropertiesResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetPropertiesResponse(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR GetPropertiesResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetPropertiesResponse(const GetPropertiesResponse& from) - : GetPropertiesResponse(nullptr, from) {} + GetPropertiesResponse(const GetPropertiesResponse& from); GetPropertiesResponse(GetPropertiesResponse&& from) noexcept : GetPropertiesResponse() { *this = ::std::move(from); @@ -1491,9 +1228,9 @@ class GetPropertiesResponse final : } inline GetPropertiesResponse& operator=(GetPropertiesResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1503,22 +1240,13 @@ class GetPropertiesResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const GetPropertiesResponse& default_instance() { @@ -1537,65 +1265,63 @@ class GetPropertiesResponse final : inline void Swap(GetPropertiesResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(GetPropertiesResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetPropertiesResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + GetPropertiesResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const GetPropertiesResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetPropertiesResponse& from) { - GetPropertiesResponse::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetPropertiesResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(GetPropertiesResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "viam.service.slam.v1.GetPropertiesResponse"; } protected: - explicit GetPropertiesResponse(::google::protobuf::Arena* arena); - GetPropertiesResponse(::google::protobuf::Arena* arena, const GetPropertiesResponse& from); + explicit GetPropertiesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1611,116 +1337,95 @@ class GetPropertiesResponse final : int sensor_info_size() const; private: int _internal_sensor_info_size() const; - public: - void clear_sensor_info() ; + void clear_sensor_info(); ::viam::service::slam::v1::SensorInfo* mutable_sensor_info(int index); - ::google::protobuf::RepeatedPtrField< ::viam::service::slam::v1::SensorInfo >* + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::slam::v1::SensorInfo >* mutable_sensor_info(); private: - const ::google::protobuf::RepeatedPtrField<::viam::service::slam::v1::SensorInfo>& _internal_sensor_info() const; - ::google::protobuf::RepeatedPtrField<::viam::service::slam::v1::SensorInfo>* _internal_mutable_sensor_info(); + const ::viam::service::slam::v1::SensorInfo& _internal_sensor_info(int index) const; + ::viam::service::slam::v1::SensorInfo* _internal_add_sensor_info(); public: const ::viam::service::slam::v1::SensorInfo& sensor_info(int index) const; ::viam::service::slam::v1::SensorInfo* add_sensor_info(); - const ::google::protobuf::RepeatedPtrField< ::viam::service::slam::v1::SensorInfo >& + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::slam::v1::SensorInfo >& sensor_info() const; + // optional string internal_state_file_type = 3 [json_name = "internalStateFileType"]; bool has_internal_state_file_type() const; - void clear_internal_state_file_type() ; + private: + bool _internal_has_internal_state_file_type() const; + public: + void clear_internal_state_file_type(); const std::string& internal_state_file_type() const; - template - void set_internal_state_file_type(Arg_&& arg, Args_... args); + template + void set_internal_state_file_type(ArgT0&& arg0, ArgT... args); std::string* mutable_internal_state_file_type(); PROTOBUF_NODISCARD std::string* release_internal_state_file_type(); - void set_allocated_internal_state_file_type(std::string* value); - + void set_allocated_internal_state_file_type(std::string* internal_state_file_type); private: const std::string& _internal_internal_state_file_type() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_internal_state_file_type( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_internal_state_file_type(const std::string& value); std::string* _internal_mutable_internal_state_file_type(); - public: + // bool cloud_slam = 1 [json_name = "cloudSlam"]; - void clear_cloud_slam() ; + void clear_cloud_slam(); bool cloud_slam() const; void set_cloud_slam(bool value); - private: bool _internal_cloud_slam() const; void _internal_set_cloud_slam(bool value); - public: + // .viam.service.slam.v1.MappingMode mapping_mode = 2 [json_name = "mappingMode"]; - void clear_mapping_mode() ; + void clear_mapping_mode(); ::viam::service::slam::v1::MappingMode mapping_mode() const; void set_mapping_mode(::viam::service::slam::v1::MappingMode value); - private: ::viam::service::slam::v1::MappingMode _internal_mapping_mode() const; void _internal_set_mapping_mode(::viam::service::slam::v1::MappingMode value); - public: + // @@protoc_insertion_point(class_scope:viam.service.slam.v1.GetPropertiesResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 1, - 75, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::viam::service::slam::v1::SensorInfo > sensor_info_; - ::google::protobuf::internal::ArenaStringPtr internal_state_file_type_; - bool cloud_slam_; - int mapping_mode_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::slam::v1::SensorInfo > sensor_info_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr internal_state_file_type_; + bool cloud_slam_; + int mapping_mode_; friend struct ::TableStruct_service_2fslam_2fv1_2fslam_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetPositionResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.slam.v1.GetPositionResponse) */ { +class SensorInfo final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.slam.v1.SensorInfo) */ { public: - inline GetPositionResponse() : GetPositionResponse(nullptr) {} - ~GetPositionResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetPositionResponse(::google::protobuf::internal::ConstantInitialized); + inline SensorInfo() : SensorInfo(nullptr) {} + ~SensorInfo() override; + explicit PROTOBUF_CONSTEXPR SensorInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetPositionResponse(const GetPositionResponse& from) - : GetPositionResponse(nullptr, from) {} - GetPositionResponse(GetPositionResponse&& from) noexcept - : GetPositionResponse() { + SensorInfo(const SensorInfo& from); + SensorInfo(SensorInfo&& from) noexcept + : SensorInfo() { *this = ::std::move(from); } - inline GetPositionResponse& operator=(const GetPositionResponse& from) { + inline SensorInfo& operator=(const SensorInfo& from) { CopyFrom(from); return *this; } - inline GetPositionResponse& operator=(GetPositionResponse&& from) noexcept { + inline SensorInfo& operator=(SensorInfo&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1730,220 +1435,190 @@ class GetPositionResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetPositionResponse& default_instance() { + static const SensorInfo& default_instance() { return *internal_default_instance(); } - static inline const GetPositionResponse* internal_default_instance() { - return reinterpret_cast( - &_GetPositionResponse_default_instance_); + static inline const SensorInfo* internal_default_instance() { + return reinterpret_cast( + &_SensorInfo_default_instance_); } static constexpr int kIndexInFileMessages = - 1; + 8; - friend void swap(GetPositionResponse& a, GetPositionResponse& b) { + friend void swap(SensorInfo& a, SensorInfo& b) { a.Swap(&b); } - inline void Swap(GetPositionResponse* other) { + inline void Swap(SensorInfo* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetPositionResponse* other) { + void UnsafeArenaSwap(SensorInfo* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetPositionResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetPositionResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetPositionResponse& from) { - GetPositionResponse::MergeImpl(*this, from); + SensorInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SensorInfo& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const SensorInfo& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetPositionResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(SensorInfo* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.slam.v1.GetPositionResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.slam.v1.SensorInfo"; } protected: - explicit GetPositionResponse(::google::protobuf::Arena* arena); - GetPositionResponse(::google::protobuf::Arena* arena, const GetPositionResponse& from); + explicit SensorInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kPoseFieldNumber = 1, + kNameFieldNumber = 1, + kTypeFieldNumber = 2, }; - // .viam.common.v1.Pose pose = 1 [json_name = "pose"]; - bool has_pose() const; - void clear_pose() ; - const ::viam::common::v1::Pose& pose() const; - PROTOBUF_NODISCARD ::viam::common::v1::Pose* release_pose(); - ::viam::common::v1::Pose* mutable_pose(); - void set_allocated_pose(::viam::common::v1::Pose* value); - void unsafe_arena_set_allocated_pose(::viam::common::v1::Pose* value); - ::viam::common::v1::Pose* unsafe_arena_release_pose(); - + // 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 ::viam::common::v1::Pose& _internal_pose() const; - ::viam::common::v1::Pose* _internal_mutable_pose(); + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + // .viam.service.slam.v1.SensorType type = 2 [json_name = "type"]; + void clear_type(); + ::viam::service::slam::v1::SensorType type() const; + void set_type(::viam::service::slam::v1::SensorType value); + private: + ::viam::service::slam::v1::SensorType _internal_type() const; + void _internal_set_type(::viam::service::slam::v1::SensorType value); public: - // @@protoc_insertion_point(class_scope:viam.service.slam.v1.GetPositionResponse) + + // @@protoc_insertion_point(class_scope:viam.service.slam.v1.SensorInfo) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::viam::common::v1::Pose* pose_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + int type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fslam_2fv1_2fslam_2eproto; }; - // =================================================================== - - // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ -// ------------------------------------------------------------------- - // GetPositionRequest // string name = 1 [json_name = "name"]; inline void GetPositionRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& GetPositionRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetPositionRequest::name() const { // @@protoc_insertion_point(field_get:viam.service.slam.v1.GetPositionRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetPositionRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetPositionRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.slam.v1.GetPositionRequest.name) } -inline std::string* GetPositionRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetPositionRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.service.slam.v1.GetPositionRequest.name) return _s; } inline const std::string& GetPositionRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void GetPositionRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* GetPositionRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* GetPositionRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.slam.v1.GetPositionRequest.name) - return _impl_.name_.Release(); -} -inline void GetPositionRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void GetPositionRequest::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.service.slam.v1.GetPositionRequest.name) } @@ -1952,93 +1627,87 @@ inline void GetPositionRequest::set_allocated_name(std::string* value) { // GetPositionResponse // .viam.common.v1.Pose pose = 1 [json_name = "pose"]; +inline bool GetPositionResponse::_internal_has_pose() const { + return this != internal_default_instance() && pose_ != nullptr; +} inline bool GetPositionResponse::has_pose() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.pose_ != nullptr); - return value; + return _internal_has_pose(); } inline const ::viam::common::v1::Pose& GetPositionResponse::_internal_pose() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::common::v1::Pose* p = _impl_.pose_; - return p != nullptr ? *p : reinterpret_cast(::viam::common::v1::_Pose_default_instance_); + const ::viam::common::v1::Pose* p = pose_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_Pose_default_instance_); } -inline const ::viam::common::v1::Pose& GetPositionResponse::pose() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::Pose& GetPositionResponse::pose() const { // @@protoc_insertion_point(field_get:viam.service.slam.v1.GetPositionResponse.pose) return _internal_pose(); } -inline void GetPositionResponse::unsafe_arena_set_allocated_pose(::viam::common::v1::Pose* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.pose_); +inline void GetPositionResponse::unsafe_arena_set_allocated_pose( + ::viam::common::v1::Pose* pose) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(pose_); } - _impl_.pose_ = reinterpret_cast<::viam::common::v1::Pose*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + pose_ = pose; + if (pose) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.slam.v1.GetPositionResponse.pose) } inline ::viam::common::v1::Pose* GetPositionResponse::release_pose() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::Pose* released = _impl_.pose_; - _impl_.pose_ = nullptr; + + ::viam::common::v1::Pose* temp = pose_; + pose_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::common::v1::Pose* GetPositionResponse::unsafe_arena_release_pose() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.slam.v1.GetPositionResponse.pose) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::common::v1::Pose* temp = _impl_.pose_; - _impl_.pose_ = nullptr; + + ::viam::common::v1::Pose* temp = pose_; + pose_ = nullptr; return temp; } inline ::viam::common::v1::Pose* GetPositionResponse::_internal_mutable_pose() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.pose_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::common::v1::Pose>(GetArena()); - _impl_.pose_ = reinterpret_cast<::viam::common::v1::Pose*>(p); + + if (pose_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::Pose>(GetArenaForAllocation()); + pose_ = p; } - return _impl_.pose_; + return pose_; } -inline ::viam::common::v1::Pose* GetPositionResponse::mutable_pose() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::Pose* GetPositionResponse::mutable_pose() { ::viam::common::v1::Pose* _msg = _internal_mutable_pose(); // @@protoc_insertion_point(field_mutable:viam.service.slam.v1.GetPositionResponse.pose) return _msg; } -inline void GetPositionResponse::set_allocated_pose(::viam::common::v1::Pose* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetPositionResponse::set_allocated_pose(::viam::common::v1::Pose* pose) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.pose_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(pose_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (pose) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(pose)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + pose = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, pose, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.pose_ = reinterpret_cast<::viam::common::v1::Pose*>(value); + pose_ = pose; // @@protoc_insertion_point(field_set_allocated:viam.service.slam.v1.GetPositionResponse.pose) } @@ -2048,84 +1717,81 @@ inline void GetPositionResponse::set_allocated_pose(::viam::common::v1::Pose* va // string name = 1 [json_name = "name"]; inline void GetPointCloudMapRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& GetPointCloudMapRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetPointCloudMapRequest::name() const { // @@protoc_insertion_point(field_get:viam.service.slam.v1.GetPointCloudMapRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetPointCloudMapRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetPointCloudMapRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.slam.v1.GetPointCloudMapRequest.name) } -inline std::string* GetPointCloudMapRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetPointCloudMapRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.service.slam.v1.GetPointCloudMapRequest.name) return _s; } inline const std::string& GetPointCloudMapRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void GetPointCloudMapRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* GetPointCloudMapRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* GetPointCloudMapRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.slam.v1.GetPointCloudMapRequest.name) - return _impl_.name_.Release(); -} -inline void GetPointCloudMapRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void GetPointCloudMapRequest::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.service.slam.v1.GetPointCloudMapRequest.name) } // optional bool return_edited_map = 2 [json_name = "returnEditedMap"]; -inline bool GetPointCloudMapRequest::has_return_edited_map() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; +inline bool GetPointCloudMapRequest::_internal_has_return_edited_map() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; return value; } +inline bool GetPointCloudMapRequest::has_return_edited_map() const { + return _internal_has_return_edited_map(); +} inline void GetPointCloudMapRequest::clear_return_edited_map() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.return_edited_map_ = false; - _impl_._has_bits_[0] &= ~0x00000001u; + return_edited_map_ = false; + _has_bits_[0] &= ~0x00000001u; +} +inline bool GetPointCloudMapRequest::_internal_return_edited_map() const { + return return_edited_map_; } inline bool GetPointCloudMapRequest::return_edited_map() const { // @@protoc_insertion_point(field_get:viam.service.slam.v1.GetPointCloudMapRequest.return_edited_map) return _internal_return_edited_map(); } +inline void GetPointCloudMapRequest::_internal_set_return_edited_map(bool value) { + _has_bits_[0] |= 0x00000001u; + return_edited_map_ = value; +} inline void GetPointCloudMapRequest::set_return_edited_map(bool value) { _internal_set_return_edited_map(value); // @@protoc_insertion_point(field_set:viam.service.slam.v1.GetPointCloudMapRequest.return_edited_map) } -inline bool GetPointCloudMapRequest::_internal_return_edited_map() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.return_edited_map_; -} -inline void GetPointCloudMapRequest::_internal_set_return_edited_map(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.return_edited_map_ = value; -} // ------------------------------------------------------------------- @@ -2133,54 +1799,51 @@ inline void GetPointCloudMapRequest::_internal_set_return_edited_map(bool value) // bytes point_cloud_pcd_chunk = 1 [json_name = "pointCloudPcdChunk"]; inline void GetPointCloudMapResponse::clear_point_cloud_pcd_chunk() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.point_cloud_pcd_chunk_.ClearToEmpty(); + point_cloud_pcd_chunk_.ClearToEmpty(); } -inline const std::string& GetPointCloudMapResponse::point_cloud_pcd_chunk() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetPointCloudMapResponse::point_cloud_pcd_chunk() const { // @@protoc_insertion_point(field_get:viam.service.slam.v1.GetPointCloudMapResponse.point_cloud_pcd_chunk) return _internal_point_cloud_pcd_chunk(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetPointCloudMapResponse::set_point_cloud_pcd_chunk(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.point_cloud_pcd_chunk_.SetBytes(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetPointCloudMapResponse::set_point_cloud_pcd_chunk(ArgT0&& arg0, ArgT... args) { + + point_cloud_pcd_chunk_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.slam.v1.GetPointCloudMapResponse.point_cloud_pcd_chunk) } -inline std::string* GetPointCloudMapResponse::mutable_point_cloud_pcd_chunk() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetPointCloudMapResponse::mutable_point_cloud_pcd_chunk() { std::string* _s = _internal_mutable_point_cloud_pcd_chunk(); // @@protoc_insertion_point(field_mutable:viam.service.slam.v1.GetPointCloudMapResponse.point_cloud_pcd_chunk) return _s; } inline const std::string& GetPointCloudMapResponse::_internal_point_cloud_pcd_chunk() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.point_cloud_pcd_chunk_.Get(); + return point_cloud_pcd_chunk_.Get(); } inline void GetPointCloudMapResponse::_internal_set_point_cloud_pcd_chunk(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.point_cloud_pcd_chunk_.Set(value, GetArena()); + + point_cloud_pcd_chunk_.Set(value, GetArenaForAllocation()); } inline std::string* GetPointCloudMapResponse::_internal_mutable_point_cloud_pcd_chunk() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.point_cloud_pcd_chunk_.Mutable( GetArena()); + + return point_cloud_pcd_chunk_.Mutable(GetArenaForAllocation()); } inline std::string* GetPointCloudMapResponse::release_point_cloud_pcd_chunk() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.slam.v1.GetPointCloudMapResponse.point_cloud_pcd_chunk) - return _impl_.point_cloud_pcd_chunk_.Release(); -} -inline void GetPointCloudMapResponse::set_allocated_point_cloud_pcd_chunk(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.point_cloud_pcd_chunk_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.point_cloud_pcd_chunk_.IsDefault()) { - _impl_.point_cloud_pcd_chunk_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return point_cloud_pcd_chunk_.Release(); +} +inline void GetPointCloudMapResponse::set_allocated_point_cloud_pcd_chunk(std::string* point_cloud_pcd_chunk) { + if (point_cloud_pcd_chunk != nullptr) { + + } else { + + } + point_cloud_pcd_chunk_.SetAllocated(point_cloud_pcd_chunk, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (point_cloud_pcd_chunk_.IsDefault()) { + point_cloud_pcd_chunk_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.service.slam.v1.GetPointCloudMapResponse.point_cloud_pcd_chunk) } @@ -2190,54 +1853,51 @@ inline void GetPointCloudMapResponse::set_allocated_point_cloud_pcd_chunk(std::s // string name = 1 [json_name = "name"]; inline void GetInternalStateRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& GetInternalStateRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetInternalStateRequest::name() const { // @@protoc_insertion_point(field_get:viam.service.slam.v1.GetInternalStateRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetInternalStateRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetInternalStateRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.slam.v1.GetInternalStateRequest.name) } -inline std::string* GetInternalStateRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetInternalStateRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.service.slam.v1.GetInternalStateRequest.name) return _s; } inline const std::string& GetInternalStateRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void GetInternalStateRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* GetInternalStateRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* GetInternalStateRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.slam.v1.GetInternalStateRequest.name) - return _impl_.name_.Release(); -} -inline void GetInternalStateRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void GetInternalStateRequest::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.service.slam.v1.GetInternalStateRequest.name) } @@ -2247,54 +1907,51 @@ inline void GetInternalStateRequest::set_allocated_name(std::string* value) { // bytes internal_state_chunk = 1 [json_name = "internalStateChunk"]; inline void GetInternalStateResponse::clear_internal_state_chunk() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.internal_state_chunk_.ClearToEmpty(); + internal_state_chunk_.ClearToEmpty(); } -inline const std::string& GetInternalStateResponse::internal_state_chunk() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetInternalStateResponse::internal_state_chunk() const { // @@protoc_insertion_point(field_get:viam.service.slam.v1.GetInternalStateResponse.internal_state_chunk) return _internal_internal_state_chunk(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetInternalStateResponse::set_internal_state_chunk(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.internal_state_chunk_.SetBytes(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetInternalStateResponse::set_internal_state_chunk(ArgT0&& arg0, ArgT... args) { + + internal_state_chunk_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.slam.v1.GetInternalStateResponse.internal_state_chunk) } -inline std::string* GetInternalStateResponse::mutable_internal_state_chunk() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetInternalStateResponse::mutable_internal_state_chunk() { std::string* _s = _internal_mutable_internal_state_chunk(); // @@protoc_insertion_point(field_mutable:viam.service.slam.v1.GetInternalStateResponse.internal_state_chunk) return _s; } inline const std::string& GetInternalStateResponse::_internal_internal_state_chunk() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.internal_state_chunk_.Get(); + return internal_state_chunk_.Get(); } inline void GetInternalStateResponse::_internal_set_internal_state_chunk(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.internal_state_chunk_.Set(value, GetArena()); + + internal_state_chunk_.Set(value, GetArenaForAllocation()); } inline std::string* GetInternalStateResponse::_internal_mutable_internal_state_chunk() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.internal_state_chunk_.Mutable( GetArena()); + + return internal_state_chunk_.Mutable(GetArenaForAllocation()); } inline std::string* GetInternalStateResponse::release_internal_state_chunk() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.slam.v1.GetInternalStateResponse.internal_state_chunk) - return _impl_.internal_state_chunk_.Release(); -} -inline void GetInternalStateResponse::set_allocated_internal_state_chunk(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.internal_state_chunk_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.internal_state_chunk_.IsDefault()) { - _impl_.internal_state_chunk_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return internal_state_chunk_.Release(); +} +inline void GetInternalStateResponse::set_allocated_internal_state_chunk(std::string* internal_state_chunk) { + if (internal_state_chunk != nullptr) { + + } else { + + } + internal_state_chunk_.SetAllocated(internal_state_chunk, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (internal_state_chunk_.IsDefault()) { + internal_state_chunk_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.service.slam.v1.GetInternalStateResponse.internal_state_chunk) } @@ -2304,54 +1961,51 @@ inline void GetInternalStateResponse::set_allocated_internal_state_chunk(std::st // string name = 1 [json_name = "name"]; inline void GetPropertiesRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& GetPropertiesRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetPropertiesRequest::name() const { // @@protoc_insertion_point(field_get:viam.service.slam.v1.GetPropertiesRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetPropertiesRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetPropertiesRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.slam.v1.GetPropertiesRequest.name) } -inline std::string* GetPropertiesRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetPropertiesRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.service.slam.v1.GetPropertiesRequest.name) return _s; } inline const std::string& GetPropertiesRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void GetPropertiesRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* GetPropertiesRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* GetPropertiesRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.slam.v1.GetPropertiesRequest.name) - return _impl_.name_.Release(); -} -inline void GetPropertiesRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void GetPropertiesRequest::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.service.slam.v1.GetPropertiesRequest.name) } @@ -2361,168 +2015,150 @@ inline void GetPropertiesRequest::set_allocated_name(std::string* value) { // bool cloud_slam = 1 [json_name = "cloudSlam"]; inline void GetPropertiesResponse::clear_cloud_slam() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.cloud_slam_ = false; + cloud_slam_ = false; +} +inline bool GetPropertiesResponse::_internal_cloud_slam() const { + return cloud_slam_; } inline bool GetPropertiesResponse::cloud_slam() const { // @@protoc_insertion_point(field_get:viam.service.slam.v1.GetPropertiesResponse.cloud_slam) return _internal_cloud_slam(); } +inline void GetPropertiesResponse::_internal_set_cloud_slam(bool value) { + + cloud_slam_ = value; +} inline void GetPropertiesResponse::set_cloud_slam(bool value) { _internal_set_cloud_slam(value); // @@protoc_insertion_point(field_set:viam.service.slam.v1.GetPropertiesResponse.cloud_slam) } -inline bool GetPropertiesResponse::_internal_cloud_slam() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.cloud_slam_; -} -inline void GetPropertiesResponse::_internal_set_cloud_slam(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.cloud_slam_ = value; -} // .viam.service.slam.v1.MappingMode mapping_mode = 2 [json_name = "mappingMode"]; inline void GetPropertiesResponse::clear_mapping_mode() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.mapping_mode_ = 0; + mapping_mode_ = 0; +} +inline ::viam::service::slam::v1::MappingMode GetPropertiesResponse::_internal_mapping_mode() const { + return static_cast< ::viam::service::slam::v1::MappingMode >(mapping_mode_); } inline ::viam::service::slam::v1::MappingMode GetPropertiesResponse::mapping_mode() const { // @@protoc_insertion_point(field_get:viam.service.slam.v1.GetPropertiesResponse.mapping_mode) return _internal_mapping_mode(); } +inline void GetPropertiesResponse::_internal_set_mapping_mode(::viam::service::slam::v1::MappingMode value) { + + mapping_mode_ = value; +} inline void GetPropertiesResponse::set_mapping_mode(::viam::service::slam::v1::MappingMode value) { _internal_set_mapping_mode(value); // @@protoc_insertion_point(field_set:viam.service.slam.v1.GetPropertiesResponse.mapping_mode) } -inline ::viam::service::slam::v1::MappingMode GetPropertiesResponse::_internal_mapping_mode() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::viam::service::slam::v1::MappingMode>(_impl_.mapping_mode_); -} -inline void GetPropertiesResponse::_internal_set_mapping_mode(::viam::service::slam::v1::MappingMode value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.mapping_mode_ = value; -} // optional string internal_state_file_type = 3 [json_name = "internalStateFileType"]; -inline bool GetPropertiesResponse::has_internal_state_file_type() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; +inline bool GetPropertiesResponse::_internal_has_internal_state_file_type() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; return value; } +inline bool GetPropertiesResponse::has_internal_state_file_type() const { + return _internal_has_internal_state_file_type(); +} inline void GetPropertiesResponse::clear_internal_state_file_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.internal_state_file_type_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000001u; + internal_state_file_type_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; } -inline const std::string& GetPropertiesResponse::internal_state_file_type() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetPropertiesResponse::internal_state_file_type() const { // @@protoc_insertion_point(field_get:viam.service.slam.v1.GetPropertiesResponse.internal_state_file_type) return _internal_internal_state_file_type(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetPropertiesResponse::set_internal_state_file_type(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.internal_state_file_type_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetPropertiesResponse::set_internal_state_file_type(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + internal_state_file_type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.slam.v1.GetPropertiesResponse.internal_state_file_type) } -inline std::string* GetPropertiesResponse::mutable_internal_state_file_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetPropertiesResponse::mutable_internal_state_file_type() { std::string* _s = _internal_mutable_internal_state_file_type(); // @@protoc_insertion_point(field_mutable:viam.service.slam.v1.GetPropertiesResponse.internal_state_file_type) return _s; } inline const std::string& GetPropertiesResponse::_internal_internal_state_file_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.internal_state_file_type_.Get(); + return internal_state_file_type_.Get(); } inline void GetPropertiesResponse::_internal_set_internal_state_file_type(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.internal_state_file_type_.Set(value, GetArena()); + _has_bits_[0] |= 0x00000001u; + internal_state_file_type_.Set(value, GetArenaForAllocation()); } inline std::string* GetPropertiesResponse::_internal_mutable_internal_state_file_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.internal_state_file_type_.Mutable( GetArena()); + _has_bits_[0] |= 0x00000001u; + return internal_state_file_type_.Mutable(GetArenaForAllocation()); } inline std::string* GetPropertiesResponse::release_internal_state_file_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.slam.v1.GetPropertiesResponse.internal_state_file_type) - if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + if (!_internal_has_internal_state_file_type()) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000001u; - auto* released = _impl_.internal_state_file_type_.Release(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.internal_state_file_type_.Set("", GetArena()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return released; -} -inline void GetPropertiesResponse::set_allocated_internal_state_file_type(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + _has_bits_[0] &= ~0x00000001u; + auto* p = internal_state_file_type_.Release(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (internal_state_file_type_.IsDefault()) { + internal_state_file_type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; +} +inline void GetPropertiesResponse::set_allocated_internal_state_file_type(std::string* internal_state_file_type) { + if (internal_state_file_type != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - _impl_.internal_state_file_type_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.internal_state_file_type_.IsDefault()) { - _impl_.internal_state_file_type_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _has_bits_[0] &= ~0x00000001u; + } + internal_state_file_type_.SetAllocated(internal_state_file_type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (internal_state_file_type_.IsDefault()) { + internal_state_file_type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.service.slam.v1.GetPropertiesResponse.internal_state_file_type) } // repeated .viam.service.slam.v1.SensorInfo sensor_info = 4 [json_name = "sensorInfo"]; inline int GetPropertiesResponse::_internal_sensor_info_size() const { - return _internal_sensor_info().size(); + return sensor_info_.size(); } inline int GetPropertiesResponse::sensor_info_size() const { return _internal_sensor_info_size(); } inline void GetPropertiesResponse::clear_sensor_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.sensor_info_.Clear(); + sensor_info_.Clear(); } -inline ::viam::service::slam::v1::SensorInfo* GetPropertiesResponse::mutable_sensor_info(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::service::slam::v1::SensorInfo* GetPropertiesResponse::mutable_sensor_info(int index) { // @@protoc_insertion_point(field_mutable:viam.service.slam.v1.GetPropertiesResponse.sensor_info) - return _internal_mutable_sensor_info()->Mutable(index); + return sensor_info_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::service::slam::v1::SensorInfo>* GetPropertiesResponse::mutable_sensor_info() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::slam::v1::SensorInfo >* +GetPropertiesResponse::mutable_sensor_info() { // @@protoc_insertion_point(field_mutable_list:viam.service.slam.v1.GetPropertiesResponse.sensor_info) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_sensor_info(); + return &sensor_info_; +} +inline const ::viam::service::slam::v1::SensorInfo& GetPropertiesResponse::_internal_sensor_info(int index) const { + return sensor_info_.Get(index); } -inline const ::viam::service::slam::v1::SensorInfo& GetPropertiesResponse::sensor_info(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::service::slam::v1::SensorInfo& GetPropertiesResponse::sensor_info(int index) const { // @@protoc_insertion_point(field_get:viam.service.slam.v1.GetPropertiesResponse.sensor_info) - return _internal_sensor_info().Get(index); + return _internal_sensor_info(index); } -inline ::viam::service::slam::v1::SensorInfo* GetPropertiesResponse::add_sensor_info() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::service::slam::v1::SensorInfo* _add = _internal_mutable_sensor_info()->Add(); +inline ::viam::service::slam::v1::SensorInfo* GetPropertiesResponse::_internal_add_sensor_info() { + return sensor_info_.Add(); +} +inline ::viam::service::slam::v1::SensorInfo* GetPropertiesResponse::add_sensor_info() { + ::viam::service::slam::v1::SensorInfo* _add = _internal_add_sensor_info(); // @@protoc_insertion_point(field_add:viam.service.slam.v1.GetPropertiesResponse.sensor_info) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::service::slam::v1::SensorInfo>& GetPropertiesResponse::sensor_info() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::slam::v1::SensorInfo >& +GetPropertiesResponse::sensor_info() const { // @@protoc_insertion_point(field_list:viam.service.slam.v1.GetPropertiesResponse.sensor_info) - return _internal_sensor_info(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::service::slam::v1::SensorInfo>& -GetPropertiesResponse::_internal_sensor_info() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.sensor_info_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::service::slam::v1::SensorInfo>* -GetPropertiesResponse::_internal_mutable_sensor_info() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.sensor_info_; + return sensor_info_; } // ------------------------------------------------------------------- @@ -2531,112 +2167,117 @@ GetPropertiesResponse::_internal_mutable_sensor_info() { // string name = 1 [json_name = "name"]; inline void SensorInfo::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& SensorInfo::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& SensorInfo::name() const { // @@protoc_insertion_point(field_get:viam.service.slam.v1.SensorInfo.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void SensorInfo::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void SensorInfo::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.slam.v1.SensorInfo.name) } -inline std::string* SensorInfo::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* SensorInfo::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.service.slam.v1.SensorInfo.name) return _s; } inline const std::string& SensorInfo::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void SensorInfo::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* SensorInfo::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* SensorInfo::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.slam.v1.SensorInfo.name) - return _impl_.name_.Release(); -} -inline void SensorInfo::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void SensorInfo::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.service.slam.v1.SensorInfo.name) } // .viam.service.slam.v1.SensorType type = 2 [json_name = "type"]; inline void SensorInfo::clear_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_ = 0; + type_ = 0; +} +inline ::viam::service::slam::v1::SensorType SensorInfo::_internal_type() const { + return static_cast< ::viam::service::slam::v1::SensorType >(type_); } inline ::viam::service::slam::v1::SensorType SensorInfo::type() const { // @@protoc_insertion_point(field_get:viam.service.slam.v1.SensorInfo.type) return _internal_type(); } +inline void SensorInfo::_internal_set_type(::viam::service::slam::v1::SensorType value) { + + type_ = value; +} inline void SensorInfo::set_type(::viam::service::slam::v1::SensorType value) { _internal_set_type(value); // @@protoc_insertion_point(field_set:viam.service.slam.v1.SensorInfo.type) } -inline ::viam::service::slam::v1::SensorType SensorInfo::_internal_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::viam::service::slam::v1::SensorType>(_impl_.type_); -} -inline void SensorInfo::_internal_set_type(::viam::service::slam::v1::SensorType value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.type_ = value; -} #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) + } // namespace v1 } // namespace slam } // namespace service } // namespace viam +PROTOBUF_NAMESPACE_OPEN -namespace google { -namespace protobuf { - -template <> -struct is_proto_enum<::viam::service::slam::v1::MappingMode> : std::true_type {}; +template <> struct is_proto_enum< ::viam::service::slam::v1::MappingMode> : ::std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor<::viam::service::slam::v1::MappingMode>() { +inline const EnumDescriptor* GetEnumDescriptor< ::viam::service::slam::v1::MappingMode>() { return ::viam::service::slam::v1::MappingMode_descriptor(); } +template <> struct is_proto_enum< ::viam::service::slam::v1::SensorType> : ::std::true_type {}; template <> -struct is_proto_enum<::viam::service::slam::v1::SensorType> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::viam::service::slam::v1::SensorType>() { +inline const EnumDescriptor* GetEnumDescriptor< ::viam::service::slam::v1::SensorType>() { return ::viam::service::slam::v1::SensorType_descriptor(); } -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_service_2fslam_2fv1_2fslam_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_service_2fslam_2fv1_2fslam_2eproto diff --git a/src/viam/api/service/vision/v1/vision.grpc.pb.cc b/src/viam/api/service/vision/v1/vision.grpc.pb.cc index b601f03a2..7cc500645 100644 --- a/src/viam/api/service/vision/v1/vision.grpc.pb.cc +++ b/src/viam/api/service/vision/v1/vision.grpc.pb.cc @@ -6,19 +6,19 @@ #include "service/vision/v1/vision.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace service { namespace vision { @@ -37,212 +37,252 @@ static const char* VisionService_method_names[] = { std::unique_ptr< VisionService::Stub> VisionService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { (void)options; - std::unique_ptr< VisionService::Stub> stub(new VisionService::Stub(channel, options)); + std::unique_ptr< VisionService::Stub> stub(new VisionService::Stub(channel)); return stub; } -VisionService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) - : channel_(channel), rpcmethod_GetDetectionsFromCamera_(VisionService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetDetections_(VisionService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetClassificationsFromCamera_(VisionService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetClassifications_(VisionService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetObjectPointClouds_(VisionService_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetProperties_(VisionService_method_names[5], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_CaptureAllFromCamera_(VisionService_method_names[6], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_DoCommand_(VisionService_method_names[7], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) +VisionService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_GetDetectionsFromCamera_(VisionService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetDetections_(VisionService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetClassificationsFromCamera_(VisionService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetClassifications_(VisionService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetObjectPointClouds_(VisionService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetProperties_(VisionService_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_CaptureAllFromCamera_(VisionService_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DoCommand_(VisionService_method_names[7], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status VisionService::Stub::GetDetectionsFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsFromCameraRequest& request, ::viam::service::vision::v1::GetDetectionsFromCameraResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::service::vision::v1::GetDetectionsFromCameraRequest, ::viam::service::vision::v1::GetDetectionsFromCameraResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetDetectionsFromCamera_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetDetectionsFromCamera_, context, request, response); } -void VisionService::Stub::async::GetDetectionsFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsFromCameraRequest* request, ::viam::service::vision::v1::GetDetectionsFromCameraResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::service::vision::v1::GetDetectionsFromCameraRequest, ::viam::service::vision::v1::GetDetectionsFromCameraResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetDetectionsFromCamera_, context, request, response, std::move(f)); +void VisionService::Stub::experimental_async::GetDetectionsFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsFromCameraRequest* request, ::viam::service::vision::v1::GetDetectionsFromCameraResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetDetectionsFromCamera_, context, request, response, std::move(f)); } -void VisionService::Stub::async::GetDetectionsFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsFromCameraRequest* request, ::viam::service::vision::v1::GetDetectionsFromCameraResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetDetectionsFromCamera_, context, request, response, reactor); +void VisionService::Stub::experimental_async::GetDetectionsFromCamera(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::vision::v1::GetDetectionsFromCameraResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetDetectionsFromCamera_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetDetectionsFromCameraResponse>* VisionService::Stub::PrepareAsyncGetDetectionsFromCameraRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsFromCameraRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::vision::v1::GetDetectionsFromCameraResponse, ::viam::service::vision::v1::GetDetectionsFromCameraRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetDetectionsFromCamera_, context, request); +void VisionService::Stub::experimental_async::GetDetectionsFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsFromCameraRequest* request, ::viam::service::vision::v1::GetDetectionsFromCameraResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetDetectionsFromCamera_, context, request, response, reactor); +} + +void VisionService::Stub::experimental_async::GetDetectionsFromCamera(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::vision::v1::GetDetectionsFromCameraResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetDetectionsFromCamera_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetDetectionsFromCameraResponse>* VisionService::Stub::AsyncGetDetectionsFromCameraRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsFromCameraRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetDetectionsFromCameraRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::vision::v1::GetDetectionsFromCameraResponse>::Create(channel_.get(), cq, rpcmethod_GetDetectionsFromCamera_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetDetectionsFromCameraResponse>* VisionService::Stub::PrepareAsyncGetDetectionsFromCameraRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsFromCameraRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::vision::v1::GetDetectionsFromCameraResponse>::Create(channel_.get(), cq, rpcmethod_GetDetectionsFromCamera_, context, request, false); } ::grpc::Status VisionService::Stub::GetDetections(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsRequest& request, ::viam::service::vision::v1::GetDetectionsResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::service::vision::v1::GetDetectionsRequest, ::viam::service::vision::v1::GetDetectionsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetDetections_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetDetections_, context, request, response); } -void VisionService::Stub::async::GetDetections(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsRequest* request, ::viam::service::vision::v1::GetDetectionsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::service::vision::v1::GetDetectionsRequest, ::viam::service::vision::v1::GetDetectionsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetDetections_, context, request, response, std::move(f)); +void VisionService::Stub::experimental_async::GetDetections(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsRequest* request, ::viam::service::vision::v1::GetDetectionsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetDetections_, context, request, response, std::move(f)); } -void VisionService::Stub::async::GetDetections(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsRequest* request, ::viam::service::vision::v1::GetDetectionsResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetDetections_, context, request, response, reactor); +void VisionService::Stub::experimental_async::GetDetections(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::vision::v1::GetDetectionsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetDetections_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetDetectionsResponse>* VisionService::Stub::PrepareAsyncGetDetectionsRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::vision::v1::GetDetectionsResponse, ::viam::service::vision::v1::GetDetectionsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetDetections_, context, request); +void VisionService::Stub::experimental_async::GetDetections(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsRequest* request, ::viam::service::vision::v1::GetDetectionsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetDetections_, context, request, response, reactor); +} + +void VisionService::Stub::experimental_async::GetDetections(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::vision::v1::GetDetectionsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetDetections_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetDetectionsResponse>* VisionService::Stub::AsyncGetDetectionsRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetDetectionsRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::vision::v1::GetDetectionsResponse>::Create(channel_.get(), cq, rpcmethod_GetDetections_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetDetectionsResponse>* VisionService::Stub::PrepareAsyncGetDetectionsRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::vision::v1::GetDetectionsResponse>::Create(channel_.get(), cq, rpcmethod_GetDetections_, context, request, false); } ::grpc::Status VisionService::Stub::GetClassificationsFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsFromCameraRequest& request, ::viam::service::vision::v1::GetClassificationsFromCameraResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::service::vision::v1::GetClassificationsFromCameraRequest, ::viam::service::vision::v1::GetClassificationsFromCameraResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetClassificationsFromCamera_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetClassificationsFromCamera_, context, request, response); } -void VisionService::Stub::async::GetClassificationsFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsFromCameraRequest* request, ::viam::service::vision::v1::GetClassificationsFromCameraResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::service::vision::v1::GetClassificationsFromCameraRequest, ::viam::service::vision::v1::GetClassificationsFromCameraResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetClassificationsFromCamera_, context, request, response, std::move(f)); +void VisionService::Stub::experimental_async::GetClassificationsFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsFromCameraRequest* request, ::viam::service::vision::v1::GetClassificationsFromCameraResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetClassificationsFromCamera_, context, request, response, std::move(f)); } -void VisionService::Stub::async::GetClassificationsFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsFromCameraRequest* request, ::viam::service::vision::v1::GetClassificationsFromCameraResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetClassificationsFromCamera_, context, request, response, reactor); +void VisionService::Stub::experimental_async::GetClassificationsFromCamera(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::vision::v1::GetClassificationsFromCameraResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetClassificationsFromCamera_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetClassificationsFromCameraResponse>* VisionService::Stub::PrepareAsyncGetClassificationsFromCameraRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsFromCameraRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::vision::v1::GetClassificationsFromCameraResponse, ::viam::service::vision::v1::GetClassificationsFromCameraRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetClassificationsFromCamera_, context, request); +void VisionService::Stub::experimental_async::GetClassificationsFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsFromCameraRequest* request, ::viam::service::vision::v1::GetClassificationsFromCameraResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetClassificationsFromCamera_, context, request, response, reactor); +} + +void VisionService::Stub::experimental_async::GetClassificationsFromCamera(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::vision::v1::GetClassificationsFromCameraResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetClassificationsFromCamera_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetClassificationsFromCameraResponse>* VisionService::Stub::AsyncGetClassificationsFromCameraRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsFromCameraRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetClassificationsFromCameraRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::vision::v1::GetClassificationsFromCameraResponse>::Create(channel_.get(), cq, rpcmethod_GetClassificationsFromCamera_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetClassificationsFromCameraResponse>* VisionService::Stub::PrepareAsyncGetClassificationsFromCameraRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsFromCameraRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::vision::v1::GetClassificationsFromCameraResponse>::Create(channel_.get(), cq, rpcmethod_GetClassificationsFromCamera_, context, request, false); } ::grpc::Status VisionService::Stub::GetClassifications(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsRequest& request, ::viam::service::vision::v1::GetClassificationsResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::service::vision::v1::GetClassificationsRequest, ::viam::service::vision::v1::GetClassificationsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetClassifications_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetClassifications_, context, request, response); } -void VisionService::Stub::async::GetClassifications(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsRequest* request, ::viam::service::vision::v1::GetClassificationsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::service::vision::v1::GetClassificationsRequest, ::viam::service::vision::v1::GetClassificationsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetClassifications_, context, request, response, std::move(f)); +void VisionService::Stub::experimental_async::GetClassifications(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsRequest* request, ::viam::service::vision::v1::GetClassificationsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetClassifications_, context, request, response, std::move(f)); } -void VisionService::Stub::async::GetClassifications(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsRequest* request, ::viam::service::vision::v1::GetClassificationsResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetClassifications_, context, request, response, reactor); +void VisionService::Stub::experimental_async::GetClassifications(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::vision::v1::GetClassificationsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetClassifications_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetClassificationsResponse>* VisionService::Stub::PrepareAsyncGetClassificationsRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::vision::v1::GetClassificationsResponse, ::viam::service::vision::v1::GetClassificationsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetClassifications_, context, request); +void VisionService::Stub::experimental_async::GetClassifications(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsRequest* request, ::viam::service::vision::v1::GetClassificationsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetClassifications_, context, request, response, reactor); +} + +void VisionService::Stub::experimental_async::GetClassifications(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::vision::v1::GetClassificationsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetClassifications_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetClassificationsResponse>* VisionService::Stub::AsyncGetClassificationsRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetClassificationsRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::vision::v1::GetClassificationsResponse>::Create(channel_.get(), cq, rpcmethod_GetClassifications_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetClassificationsResponse>* VisionService::Stub::PrepareAsyncGetClassificationsRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::vision::v1::GetClassificationsResponse>::Create(channel_.get(), cq, rpcmethod_GetClassifications_, context, request, false); } ::grpc::Status VisionService::Stub::GetObjectPointClouds(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetObjectPointCloudsRequest& request, ::viam::service::vision::v1::GetObjectPointCloudsResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::service::vision::v1::GetObjectPointCloudsRequest, ::viam::service::vision::v1::GetObjectPointCloudsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetObjectPointClouds_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetObjectPointClouds_, context, request, response); } -void VisionService::Stub::async::GetObjectPointClouds(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetObjectPointCloudsRequest* request, ::viam::service::vision::v1::GetObjectPointCloudsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::service::vision::v1::GetObjectPointCloudsRequest, ::viam::service::vision::v1::GetObjectPointCloudsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetObjectPointClouds_, context, request, response, std::move(f)); +void VisionService::Stub::experimental_async::GetObjectPointClouds(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetObjectPointCloudsRequest* request, ::viam::service::vision::v1::GetObjectPointCloudsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetObjectPointClouds_, context, request, response, std::move(f)); } -void VisionService::Stub::async::GetObjectPointClouds(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetObjectPointCloudsRequest* request, ::viam::service::vision::v1::GetObjectPointCloudsResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetObjectPointClouds_, context, request, response, reactor); +void VisionService::Stub::experimental_async::GetObjectPointClouds(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::vision::v1::GetObjectPointCloudsResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetObjectPointClouds_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetObjectPointCloudsResponse>* VisionService::Stub::PrepareAsyncGetObjectPointCloudsRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetObjectPointCloudsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::vision::v1::GetObjectPointCloudsResponse, ::viam::service::vision::v1::GetObjectPointCloudsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetObjectPointClouds_, context, request); +void VisionService::Stub::experimental_async::GetObjectPointClouds(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetObjectPointCloudsRequest* request, ::viam::service::vision::v1::GetObjectPointCloudsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetObjectPointClouds_, context, request, response, reactor); +} + +void VisionService::Stub::experimental_async::GetObjectPointClouds(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::vision::v1::GetObjectPointCloudsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetObjectPointClouds_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetObjectPointCloudsResponse>* VisionService::Stub::AsyncGetObjectPointCloudsRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetObjectPointCloudsRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetObjectPointCloudsRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::vision::v1::GetObjectPointCloudsResponse>::Create(channel_.get(), cq, rpcmethod_GetObjectPointClouds_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetObjectPointCloudsResponse>* VisionService::Stub::PrepareAsyncGetObjectPointCloudsRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetObjectPointCloudsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::vision::v1::GetObjectPointCloudsResponse>::Create(channel_.get(), cq, rpcmethod_GetObjectPointClouds_, context, request, false); } ::grpc::Status VisionService::Stub::GetProperties(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetPropertiesRequest& request, ::viam::service::vision::v1::GetPropertiesResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::service::vision::v1::GetPropertiesRequest, ::viam::service::vision::v1::GetPropertiesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetProperties_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetProperties_, context, request, response); } -void VisionService::Stub::async::GetProperties(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetPropertiesRequest* request, ::viam::service::vision::v1::GetPropertiesResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::service::vision::v1::GetPropertiesRequest, ::viam::service::vision::v1::GetPropertiesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetProperties_, context, request, response, std::move(f)); +void VisionService::Stub::experimental_async::GetProperties(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetPropertiesRequest* request, ::viam::service::vision::v1::GetPropertiesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetProperties_, context, request, response, std::move(f)); } -void VisionService::Stub::async::GetProperties(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetPropertiesRequest* request, ::viam::service::vision::v1::GetPropertiesResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetProperties_, context, request, response, reactor); +void VisionService::Stub::experimental_async::GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::vision::v1::GetPropertiesResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetProperties_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetPropertiesResponse>* VisionService::Stub::PrepareAsyncGetPropertiesRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetPropertiesRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::vision::v1::GetPropertiesResponse, ::viam::service::vision::v1::GetPropertiesRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetProperties_, context, request); +void VisionService::Stub::experimental_async::GetProperties(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetPropertiesRequest* request, ::viam::service::vision::v1::GetPropertiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetProperties_, context, request, response, reactor); +} + +void VisionService::Stub::experimental_async::GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::vision::v1::GetPropertiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetProperties_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetPropertiesResponse>* VisionService::Stub::AsyncGetPropertiesRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetPropertiesRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetPropertiesRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::vision::v1::GetPropertiesResponse>::Create(channel_.get(), cq, rpcmethod_GetProperties_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetPropertiesResponse>* VisionService::Stub::PrepareAsyncGetPropertiesRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetPropertiesRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::vision::v1::GetPropertiesResponse>::Create(channel_.get(), cq, rpcmethod_GetProperties_, context, request, false); } ::grpc::Status VisionService::Stub::CaptureAllFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::CaptureAllFromCameraRequest& request, ::viam::service::vision::v1::CaptureAllFromCameraResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::service::vision::v1::CaptureAllFromCameraRequest, ::viam::service::vision::v1::CaptureAllFromCameraResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_CaptureAllFromCamera_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CaptureAllFromCamera_, context, request, response); } -void VisionService::Stub::async::CaptureAllFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::CaptureAllFromCameraRequest* request, ::viam::service::vision::v1::CaptureAllFromCameraResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::service::vision::v1::CaptureAllFromCameraRequest, ::viam::service::vision::v1::CaptureAllFromCameraResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_CaptureAllFromCamera_, context, request, response, std::move(f)); +void VisionService::Stub::experimental_async::CaptureAllFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::CaptureAllFromCameraRequest* request, ::viam::service::vision::v1::CaptureAllFromCameraResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CaptureAllFromCamera_, context, request, response, std::move(f)); } -void VisionService::Stub::async::CaptureAllFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::CaptureAllFromCameraRequest* request, ::viam::service::vision::v1::CaptureAllFromCameraResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_CaptureAllFromCamera_, context, request, response, reactor); +void VisionService::Stub::experimental_async::CaptureAllFromCamera(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::vision::v1::CaptureAllFromCameraResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CaptureAllFromCamera_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::CaptureAllFromCameraResponse>* VisionService::Stub::PrepareAsyncCaptureAllFromCameraRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::CaptureAllFromCameraRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::service::vision::v1::CaptureAllFromCameraResponse, ::viam::service::vision::v1::CaptureAllFromCameraRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_CaptureAllFromCamera_, context, request); +void VisionService::Stub::experimental_async::CaptureAllFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::CaptureAllFromCameraRequest* request, ::viam::service::vision::v1::CaptureAllFromCameraResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CaptureAllFromCamera_, context, request, response, reactor); +} + +void VisionService::Stub::experimental_async::CaptureAllFromCamera(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::vision::v1::CaptureAllFromCameraResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CaptureAllFromCamera_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::CaptureAllFromCameraResponse>* VisionService::Stub::AsyncCaptureAllFromCameraRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::CaptureAllFromCameraRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncCaptureAllFromCameraRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::vision::v1::CaptureAllFromCameraResponse>::Create(channel_.get(), cq, rpcmethod_CaptureAllFromCamera_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::CaptureAllFromCameraResponse>* VisionService::Stub::PrepareAsyncCaptureAllFromCameraRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::CaptureAllFromCameraRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::service::vision::v1::CaptureAllFromCameraResponse>::Create(channel_.get(), cq, rpcmethod_CaptureAllFromCamera_, context, request, false); } ::grpc::Status VisionService::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); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DoCommand_, context, request, response); } -void VisionService::Stub::async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); +void VisionService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); } -void VisionService::Stub::async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); +void VisionService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, std::move(f)); } -::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* VisionService::Stub::PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::common::v1::DoCommandResponse, ::viam::common::v1::DoCommandRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DoCommand_, context, request); +void VisionService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); +} + +void VisionService::Stub::experimental_async::DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DoCommand_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* VisionService::Stub::AsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncDoCommandRaw(context, request, cq); - result->StartCall(); - return result; + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::DoCommandResponse>::Create(channel_.get(), cq, rpcmethod_DoCommand_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* VisionService::Stub::PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::viam::common::v1::DoCommandResponse>::Create(channel_.get(), cq, rpcmethod_DoCommand_, context, request, false); } VisionService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( VisionService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< VisionService::Service, ::viam::service::vision::v1::GetDetectionsFromCameraRequest, ::viam::service::vision::v1::GetDetectionsFromCameraResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< VisionService::Service, ::viam::service::vision::v1::GetDetectionsFromCameraRequest, ::viam::service::vision::v1::GetDetectionsFromCameraResponse>( [](VisionService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::service::vision::v1::GetDetectionsFromCameraRequest* req, ::viam::service::vision::v1::GetDetectionsFromCameraResponse* resp) { return service->GetDetectionsFromCamera(ctx, req, resp); @@ -250,9 +290,9 @@ VisionService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( VisionService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< VisionService::Service, ::viam::service::vision::v1::GetDetectionsRequest, ::viam::service::vision::v1::GetDetectionsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< VisionService::Service, ::viam::service::vision::v1::GetDetectionsRequest, ::viam::service::vision::v1::GetDetectionsResponse>( [](VisionService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::service::vision::v1::GetDetectionsRequest* req, ::viam::service::vision::v1::GetDetectionsResponse* resp) { return service->GetDetections(ctx, req, resp); @@ -260,9 +300,9 @@ VisionService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( VisionService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< VisionService::Service, ::viam::service::vision::v1::GetClassificationsFromCameraRequest, ::viam::service::vision::v1::GetClassificationsFromCameraResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< VisionService::Service, ::viam::service::vision::v1::GetClassificationsFromCameraRequest, ::viam::service::vision::v1::GetClassificationsFromCameraResponse>( [](VisionService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::service::vision::v1::GetClassificationsFromCameraRequest* req, ::viam::service::vision::v1::GetClassificationsFromCameraResponse* resp) { return service->GetClassificationsFromCamera(ctx, req, resp); @@ -270,9 +310,9 @@ VisionService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( VisionService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< VisionService::Service, ::viam::service::vision::v1::GetClassificationsRequest, ::viam::service::vision::v1::GetClassificationsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< VisionService::Service, ::viam::service::vision::v1::GetClassificationsRequest, ::viam::service::vision::v1::GetClassificationsResponse>( [](VisionService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::service::vision::v1::GetClassificationsRequest* req, ::viam::service::vision::v1::GetClassificationsResponse* resp) { return service->GetClassifications(ctx, req, resp); @@ -280,9 +320,9 @@ VisionService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( VisionService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< VisionService::Service, ::viam::service::vision::v1::GetObjectPointCloudsRequest, ::viam::service::vision::v1::GetObjectPointCloudsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< VisionService::Service, ::viam::service::vision::v1::GetObjectPointCloudsRequest, ::viam::service::vision::v1::GetObjectPointCloudsResponse>( [](VisionService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::service::vision::v1::GetObjectPointCloudsRequest* req, ::viam::service::vision::v1::GetObjectPointCloudsResponse* resp) { return service->GetObjectPointClouds(ctx, req, resp); @@ -290,9 +330,9 @@ VisionService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( VisionService_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< VisionService::Service, ::viam::service::vision::v1::GetPropertiesRequest, ::viam::service::vision::v1::GetPropertiesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< VisionService::Service, ::viam::service::vision::v1::GetPropertiesRequest, ::viam::service::vision::v1::GetPropertiesResponse>( [](VisionService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::service::vision::v1::GetPropertiesRequest* req, ::viam::service::vision::v1::GetPropertiesResponse* resp) { return service->GetProperties(ctx, req, resp); @@ -300,9 +340,9 @@ VisionService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( VisionService_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< VisionService::Service, ::viam::service::vision::v1::CaptureAllFromCameraRequest, ::viam::service::vision::v1::CaptureAllFromCameraResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< VisionService::Service, ::viam::service::vision::v1::CaptureAllFromCameraRequest, ::viam::service::vision::v1::CaptureAllFromCameraResponse>( [](VisionService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::service::vision::v1::CaptureAllFromCameraRequest* req, ::viam::service::vision::v1::CaptureAllFromCameraResponse* resp) { return service->CaptureAllFromCamera(ctx, req, resp); @@ -310,9 +350,9 @@ VisionService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( VisionService_method_names[7], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< VisionService::Service, ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< VisionService::Service, ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( [](VisionService::Service* service, - ::grpc::ServerContext* ctx, + ::grpc_impl::ServerContext* ctx, const ::viam::common::v1::DoCommandRequest* req, ::viam::common::v1::DoCommandResponse* resp) { return service->DoCommand(ctx, req, resp); diff --git a/src/viam/api/service/vision/v1/vision.grpc.pb.h b/src/viam/api/service/vision/v1/vision.grpc.pb.h index d983f9c9d..59e2e81b0 100644 --- a/src/viam/api/service/vision/v1/vision.grpc.pb.h +++ b/src/viam/api/service/vision/v1/vision.grpc.pb.h @@ -7,23 +7,24 @@ #include "service/vision/v1/vision.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace viam { namespace service { @@ -104,39 +105,123 @@ class VisionService final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::DoCommandResponse>> PrepareAsyncDoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::DoCommandResponse>>(PrepareAsyncDoCommandRaw(context, request, cq)); } - class async_interface { + class experimental_async_interface { public: - virtual ~async_interface() {} + virtual ~experimental_async_interface() {} // GetDetectionsFromCamera will return a list of detections in the next image given a camera and a detector virtual void GetDetectionsFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsFromCameraRequest* request, ::viam::service::vision::v1::GetDetectionsFromCameraResponse* response, std::function) = 0; + virtual void GetDetectionsFromCamera(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::vision::v1::GetDetectionsFromCameraResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetDetectionsFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsFromCameraRequest* request, ::viam::service::vision::v1::GetDetectionsFromCameraResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetDetectionsFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsFromCameraRequest* request, ::viam::service::vision::v1::GetDetectionsFromCameraResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetDetectionsFromCamera(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::vision::v1::GetDetectionsFromCameraResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetDetectionsFromCamera(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::vision::v1::GetDetectionsFromCameraResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // GetDetections will return a list of detections in the next image given the image bytes and a detector virtual void GetDetections(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsRequest* request, ::viam::service::vision::v1::GetDetectionsResponse* response, std::function) = 0; + virtual void GetDetections(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::vision::v1::GetDetectionsResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetDetections(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsRequest* request, ::viam::service::vision::v1::GetDetectionsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetDetections(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsRequest* request, ::viam::service::vision::v1::GetDetectionsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetDetections(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::vision::v1::GetDetectionsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetDetections(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::vision::v1::GetDetectionsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // GetClassificationsFromCamera will return a list of classifications in the next image given a camera and a classifier virtual void GetClassificationsFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsFromCameraRequest* request, ::viam::service::vision::v1::GetClassificationsFromCameraResponse* response, std::function) = 0; + virtual void GetClassificationsFromCamera(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::vision::v1::GetClassificationsFromCameraResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetClassificationsFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsFromCameraRequest* request, ::viam::service::vision::v1::GetClassificationsFromCameraResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetClassificationsFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsFromCameraRequest* request, ::viam::service::vision::v1::GetClassificationsFromCameraResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetClassificationsFromCamera(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::vision::v1::GetClassificationsFromCameraResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetClassificationsFromCamera(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::vision::v1::GetClassificationsFromCameraResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // GetClassifications will return a list of classifications in the next image given the image bytes and a classifier virtual void GetClassifications(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsRequest* request, ::viam::service::vision::v1::GetClassificationsResponse* response, std::function) = 0; + virtual void GetClassifications(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::vision::v1::GetClassificationsResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetClassifications(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsRequest* request, ::viam::service::vision::v1::GetClassificationsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetClassifications(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsRequest* request, ::viam::service::vision::v1::GetClassificationsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetClassifications(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::vision::v1::GetClassificationsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetClassifications(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::vision::v1::GetClassificationsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // GetObjectPointClouds returns all the found objects in a pointcloud from a camera of the underlying robot, // as well as the 3-vector center of each of the found objects. // A specific MIME type can be requested but may not necessarily be the same one returned. virtual void GetObjectPointClouds(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetObjectPointCloudsRequest* request, ::viam::service::vision::v1::GetObjectPointCloudsResponse* response, std::function) = 0; + virtual void GetObjectPointClouds(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::vision::v1::GetObjectPointCloudsResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetObjectPointClouds(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetObjectPointCloudsRequest* request, ::viam::service::vision::v1::GetObjectPointCloudsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetObjectPointClouds(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetObjectPointCloudsRequest* request, ::viam::service::vision::v1::GetObjectPointCloudsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetObjectPointClouds(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::vision::v1::GetObjectPointCloudsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetObjectPointClouds(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::vision::v1::GetObjectPointCloudsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // GetProperties will return the properties as booleans given the name of the vision service virtual void GetProperties(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetPropertiesRequest* request, ::viam::service::vision::v1::GetPropertiesResponse* response, std::function) = 0; + virtual void GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::vision::v1::GetPropertiesResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void GetProperties(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetPropertiesRequest* request, ::viam::service::vision::v1::GetPropertiesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetProperties(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetPropertiesRequest* request, ::viam::service::vision::v1::GetPropertiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::vision::v1::GetPropertiesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::vision::v1::GetPropertiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif virtual void CaptureAllFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::CaptureAllFromCameraRequest* request, ::viam::service::vision::v1::CaptureAllFromCameraResponse* response, std::function) = 0; + virtual void CaptureAllFromCamera(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::vision::v1::CaptureAllFromCameraResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void CaptureAllFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::CaptureAllFromCameraRequest* request, ::viam::service::vision::v1::CaptureAllFromCameraResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void CaptureAllFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::CaptureAllFromCameraRequest* request, ::viam::service::vision::v1::CaptureAllFromCameraResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void CaptureAllFromCamera(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::vision::v1::CaptureAllFromCameraResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void CaptureAllFromCamera(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::vision::v1::CaptureAllFromCameraResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif // 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 ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function) = 0; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + virtual void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + #else + virtual void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + #endif }; - typedef class async_interface experimental_async_interface; - virtual class async_interface* async() { return nullptr; } - class async_interface* experimental_async() { return async(); } - private: + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef class experimental_async_interface async_interface; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + async_interface* async() { return experimental_async(); } + #endif + virtual class experimental_async_interface* experimental_async() { return nullptr; } + private: virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetDetectionsFromCameraResponse>* AsyncGetDetectionsFromCameraRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsFromCameraRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetDetectionsFromCameraResponse>* PrepareAsyncGetDetectionsFromCameraRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsFromCameraRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::service::vision::v1::GetDetectionsResponse>* AsyncGetDetectionsRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsRequest& request, ::grpc::CompletionQueue* cq) = 0; @@ -156,7 +241,7 @@ class VisionService final { }; class Stub final : public StubInterface { public: - Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); ::grpc::Status GetDetectionsFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsFromCameraRequest& request, ::viam::service::vision::v1::GetDetectionsFromCameraResponse* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetDetectionsFromCameraResponse>> AsyncGetDetectionsFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsFromCameraRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetDetectionsFromCameraResponse>>(AsyncGetDetectionsFromCameraRaw(context, request, cq)); @@ -213,36 +298,116 @@ class VisionService final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>> PrepareAsyncDoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>>(PrepareAsyncDoCommandRaw(context, request, cq)); } - class async final : - public StubInterface::async_interface { + class experimental_async final : + public StubInterface::experimental_async_interface { public: void GetDetectionsFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsFromCameraRequest* request, ::viam::service::vision::v1::GetDetectionsFromCameraResponse* response, std::function) override; + void GetDetectionsFromCamera(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::vision::v1::GetDetectionsFromCameraResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetDetectionsFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsFromCameraRequest* request, ::viam::service::vision::v1::GetDetectionsFromCameraResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetDetectionsFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsFromCameraRequest* request, ::viam::service::vision::v1::GetDetectionsFromCameraResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetDetectionsFromCamera(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::vision::v1::GetDetectionsFromCameraResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetDetectionsFromCamera(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::vision::v1::GetDetectionsFromCameraResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetDetections(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsRequest* request, ::viam::service::vision::v1::GetDetectionsResponse* response, std::function) override; + void GetDetections(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::vision::v1::GetDetectionsResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetDetections(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsRequest* request, ::viam::service::vision::v1::GetDetectionsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetDetections(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsRequest* request, ::viam::service::vision::v1::GetDetectionsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetDetections(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::vision::v1::GetDetectionsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetDetections(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::vision::v1::GetDetectionsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetClassificationsFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsFromCameraRequest* request, ::viam::service::vision::v1::GetClassificationsFromCameraResponse* response, std::function) override; + void GetClassificationsFromCamera(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::vision::v1::GetClassificationsFromCameraResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetClassificationsFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsFromCameraRequest* request, ::viam::service::vision::v1::GetClassificationsFromCameraResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetClassificationsFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsFromCameraRequest* request, ::viam::service::vision::v1::GetClassificationsFromCameraResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetClassificationsFromCamera(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::vision::v1::GetClassificationsFromCameraResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetClassificationsFromCamera(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::vision::v1::GetClassificationsFromCameraResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetClassifications(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsRequest* request, ::viam::service::vision::v1::GetClassificationsResponse* response, std::function) override; + void GetClassifications(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::vision::v1::GetClassificationsResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetClassifications(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsRequest* request, ::viam::service::vision::v1::GetClassificationsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetClassifications(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetClassificationsRequest* request, ::viam::service::vision::v1::GetClassificationsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetClassifications(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::vision::v1::GetClassificationsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetClassifications(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::vision::v1::GetClassificationsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetObjectPointClouds(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetObjectPointCloudsRequest* request, ::viam::service::vision::v1::GetObjectPointCloudsResponse* response, std::function) override; + void GetObjectPointClouds(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::vision::v1::GetObjectPointCloudsResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetObjectPointClouds(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetObjectPointCloudsRequest* request, ::viam::service::vision::v1::GetObjectPointCloudsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetObjectPointClouds(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetObjectPointCloudsRequest* request, ::viam::service::vision::v1::GetObjectPointCloudsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetObjectPointClouds(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::vision::v1::GetObjectPointCloudsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetObjectPointClouds(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::vision::v1::GetObjectPointCloudsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void GetProperties(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetPropertiesRequest* request, ::viam::service::vision::v1::GetPropertiesResponse* response, std::function) override; + void GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::vision::v1::GetPropertiesResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void GetProperties(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetPropertiesRequest* request, ::viam::service::vision::v1::GetPropertiesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetProperties(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetPropertiesRequest* request, ::viam::service::vision::v1::GetPropertiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::vision::v1::GetPropertiesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void GetProperties(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::vision::v1::GetPropertiesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif void CaptureAllFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::CaptureAllFromCameraRequest* request, ::viam::service::vision::v1::CaptureAllFromCameraResponse* response, std::function) override; + void CaptureAllFromCamera(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::vision::v1::CaptureAllFromCameraResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void CaptureAllFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::CaptureAllFromCameraRequest* request, ::viam::service::vision::v1::CaptureAllFromCameraResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void CaptureAllFromCamera(::grpc::ClientContext* context, const ::viam::service::vision::v1::CaptureAllFromCameraRequest* request, ::viam::service::vision::v1::CaptureAllFromCameraResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void CaptureAllFromCamera(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::vision::v1::CaptureAllFromCameraResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void CaptureAllFromCamera(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::service::vision::v1::CaptureAllFromCameraResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif 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 ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, std::function) override; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + #else + void DoCommand(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + #endif private: friend class Stub; - explicit async(Stub* stub): stub_(stub) { } + explicit experimental_async(Stub* stub): stub_(stub) { } Stub* stub() { return stub_; } Stub* stub_; }; - class async* async() override { return &async_stub_; } + class experimental_async_interface* experimental_async() override { return &async_stub_; } private: std::shared_ptr< ::grpc::ChannelInterface> channel_; - class async async_stub_{this}; + class experimental_async async_stub_{this}; ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetDetectionsFromCameraResponse>* AsyncGetDetectionsFromCameraRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsFromCameraRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetDetectionsFromCameraResponse>* PrepareAsyncGetDetectionsFromCameraRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsFromCameraRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::service::vision::v1::GetDetectionsResponse>* AsyncGetDetectionsRaw(::grpc::ClientContext* context, const ::viam::service::vision::v1::GetDetectionsRequest& request, ::grpc::CompletionQueue* cq) override; @@ -454,22 +619,36 @@ class VisionService final { }; typedef WithAsyncMethod_GetDetectionsFromCamera > > > > > > > AsyncService; template - class WithCallbackMethod_GetDetectionsFromCamera : public BaseClass { + class ExperimentalWithCallbackMethod_GetDetectionsFromCamera : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetDetectionsFromCamera() { - ::grpc::Service::MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::viam::service::vision::v1::GetDetectionsFromCameraRequest, ::viam::service::vision::v1::GetDetectionsFromCameraResponse>( + ExperimentalWithCallbackMethod_GetDetectionsFromCamera() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::vision::v1::GetDetectionsFromCameraRequest, ::viam::service::vision::v1::GetDetectionsFromCameraResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::service::vision::v1::GetDetectionsFromCameraRequest* request, ::viam::service::vision::v1::GetDetectionsFromCameraResponse* response) { return this->GetDetectionsFromCamera(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::service::vision::v1::GetDetectionsFromCameraRequest* request, ::viam::service::vision::v1::GetDetectionsFromCameraResponse* response) { return this->GetDetectionsFromCamera(context, request, response); }));} void SetMessageAllocatorFor_GetDetectionsFromCamera( - ::grpc::MessageAllocator< ::viam::service::vision::v1::GetDetectionsFromCameraRequest, ::viam::service::vision::v1::GetDetectionsFromCameraResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::service::vision::v1::GetDetectionsFromCameraRequest, ::viam::service::vision::v1::GetDetectionsFromCameraResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::vision::v1::GetDetectionsFromCameraRequest, ::viam::service::vision::v1::GetDetectionsFromCameraResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(0); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::vision::v1::GetDetectionsFromCameraRequest, ::viam::service::vision::v1::GetDetectionsFromCameraResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetDetectionsFromCamera() override { + ~ExperimentalWithCallbackMethod_GetDetectionsFromCamera() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -477,26 +656,46 @@ class VisionService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetDetectionsFromCamera( - ::grpc::CallbackServerContext* /*context*/, const ::viam::service::vision::v1::GetDetectionsFromCameraRequest* /*request*/, ::viam::service::vision::v1::GetDetectionsFromCameraResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::vision::v1::GetDetectionsFromCameraRequest* /*request*/, ::viam::service::vision::v1::GetDetectionsFromCameraResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetDetectionsFromCamera( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::service::vision::v1::GetDetectionsFromCameraRequest* /*request*/, ::viam::service::vision::v1::GetDetectionsFromCameraResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetDetections : public BaseClass { + class ExperimentalWithCallbackMethod_GetDetections : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetDetections() { - ::grpc::Service::MarkMethodCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::viam::service::vision::v1::GetDetectionsRequest, ::viam::service::vision::v1::GetDetectionsResponse>( + ExperimentalWithCallbackMethod_GetDetections() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::vision::v1::GetDetectionsRequest, ::viam::service::vision::v1::GetDetectionsResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::service::vision::v1::GetDetectionsRequest* request, ::viam::service::vision::v1::GetDetectionsResponse* response) { return this->GetDetections(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::service::vision::v1::GetDetectionsRequest* request, ::viam::service::vision::v1::GetDetectionsResponse* response) { return this->GetDetections(context, request, response); }));} void SetMessageAllocatorFor_GetDetections( - ::grpc::MessageAllocator< ::viam::service::vision::v1::GetDetectionsRequest, ::viam::service::vision::v1::GetDetectionsResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::service::vision::v1::GetDetectionsRequest, ::viam::service::vision::v1::GetDetectionsResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::vision::v1::GetDetectionsRequest, ::viam::service::vision::v1::GetDetectionsResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(1); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::vision::v1::GetDetectionsRequest, ::viam::service::vision::v1::GetDetectionsResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetDetections() override { + ~ExperimentalWithCallbackMethod_GetDetections() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -504,26 +703,46 @@ class VisionService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetDetections( - ::grpc::CallbackServerContext* /*context*/, const ::viam::service::vision::v1::GetDetectionsRequest* /*request*/, ::viam::service::vision::v1::GetDetectionsResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::vision::v1::GetDetectionsRequest* /*request*/, ::viam::service::vision::v1::GetDetectionsResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetDetections( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::service::vision::v1::GetDetectionsRequest* /*request*/, ::viam::service::vision::v1::GetDetectionsResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetClassificationsFromCamera : public BaseClass { + class ExperimentalWithCallbackMethod_GetClassificationsFromCamera : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetClassificationsFromCamera() { - ::grpc::Service::MarkMethodCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::viam::service::vision::v1::GetClassificationsFromCameraRequest, ::viam::service::vision::v1::GetClassificationsFromCameraResponse>( + ExperimentalWithCallbackMethod_GetClassificationsFromCamera() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(2, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::vision::v1::GetClassificationsFromCameraRequest, ::viam::service::vision::v1::GetClassificationsFromCameraResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::service::vision::v1::GetClassificationsFromCameraRequest* request, ::viam::service::vision::v1::GetClassificationsFromCameraResponse* response) { return this->GetClassificationsFromCamera(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::service::vision::v1::GetClassificationsFromCameraRequest* request, ::viam::service::vision::v1::GetClassificationsFromCameraResponse* response) { return this->GetClassificationsFromCamera(context, request, response); }));} void SetMessageAllocatorFor_GetClassificationsFromCamera( - ::grpc::MessageAllocator< ::viam::service::vision::v1::GetClassificationsFromCameraRequest, ::viam::service::vision::v1::GetClassificationsFromCameraResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::service::vision::v1::GetClassificationsFromCameraRequest, ::viam::service::vision::v1::GetClassificationsFromCameraResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::vision::v1::GetClassificationsFromCameraRequest, ::viam::service::vision::v1::GetClassificationsFromCameraResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(2); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::vision::v1::GetClassificationsFromCameraRequest, ::viam::service::vision::v1::GetClassificationsFromCameraResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetClassificationsFromCamera() override { + ~ExperimentalWithCallbackMethod_GetClassificationsFromCamera() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -531,26 +750,46 @@ class VisionService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetClassificationsFromCamera( - ::grpc::CallbackServerContext* /*context*/, const ::viam::service::vision::v1::GetClassificationsFromCameraRequest* /*request*/, ::viam::service::vision::v1::GetClassificationsFromCameraResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::vision::v1::GetClassificationsFromCameraRequest* /*request*/, ::viam::service::vision::v1::GetClassificationsFromCameraResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetClassificationsFromCamera( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::service::vision::v1::GetClassificationsFromCameraRequest* /*request*/, ::viam::service::vision::v1::GetClassificationsFromCameraResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetClassifications : public BaseClass { + class ExperimentalWithCallbackMethod_GetClassifications : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetClassifications() { - ::grpc::Service::MarkMethodCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::viam::service::vision::v1::GetClassificationsRequest, ::viam::service::vision::v1::GetClassificationsResponse>( + ExperimentalWithCallbackMethod_GetClassifications() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(3, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::vision::v1::GetClassificationsRequest, ::viam::service::vision::v1::GetClassificationsResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::service::vision::v1::GetClassificationsRequest* request, ::viam::service::vision::v1::GetClassificationsResponse* response) { return this->GetClassifications(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::service::vision::v1::GetClassificationsRequest* request, ::viam::service::vision::v1::GetClassificationsResponse* response) { return this->GetClassifications(context, request, response); }));} void SetMessageAllocatorFor_GetClassifications( - ::grpc::MessageAllocator< ::viam::service::vision::v1::GetClassificationsRequest, ::viam::service::vision::v1::GetClassificationsResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::service::vision::v1::GetClassificationsRequest, ::viam::service::vision::v1::GetClassificationsResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::vision::v1::GetClassificationsRequest, ::viam::service::vision::v1::GetClassificationsResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(3); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::vision::v1::GetClassificationsRequest, ::viam::service::vision::v1::GetClassificationsResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetClassifications() override { + ~ExperimentalWithCallbackMethod_GetClassifications() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -558,26 +797,46 @@ class VisionService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetClassifications( - ::grpc::CallbackServerContext* /*context*/, const ::viam::service::vision::v1::GetClassificationsRequest* /*request*/, ::viam::service::vision::v1::GetClassificationsResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::vision::v1::GetClassificationsRequest* /*request*/, ::viam::service::vision::v1::GetClassificationsResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetClassifications( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::service::vision::v1::GetClassificationsRequest* /*request*/, ::viam::service::vision::v1::GetClassificationsResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetObjectPointClouds : public BaseClass { + class ExperimentalWithCallbackMethod_GetObjectPointClouds : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetObjectPointClouds() { - ::grpc::Service::MarkMethodCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::viam::service::vision::v1::GetObjectPointCloudsRequest, ::viam::service::vision::v1::GetObjectPointCloudsResponse>( + ExperimentalWithCallbackMethod_GetObjectPointClouds() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(4, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::vision::v1::GetObjectPointCloudsRequest, ::viam::service::vision::v1::GetObjectPointCloudsResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::service::vision::v1::GetObjectPointCloudsRequest* request, ::viam::service::vision::v1::GetObjectPointCloudsResponse* response) { return this->GetObjectPointClouds(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::service::vision::v1::GetObjectPointCloudsRequest* request, ::viam::service::vision::v1::GetObjectPointCloudsResponse* response) { return this->GetObjectPointClouds(context, request, response); }));} void SetMessageAllocatorFor_GetObjectPointClouds( - ::grpc::MessageAllocator< ::viam::service::vision::v1::GetObjectPointCloudsRequest, ::viam::service::vision::v1::GetObjectPointCloudsResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::service::vision::v1::GetObjectPointCloudsRequest, ::viam::service::vision::v1::GetObjectPointCloudsResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::vision::v1::GetObjectPointCloudsRequest, ::viam::service::vision::v1::GetObjectPointCloudsResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(4); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::vision::v1::GetObjectPointCloudsRequest, ::viam::service::vision::v1::GetObjectPointCloudsResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetObjectPointClouds() override { + ~ExperimentalWithCallbackMethod_GetObjectPointClouds() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -585,26 +844,46 @@ class VisionService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetObjectPointClouds( - ::grpc::CallbackServerContext* /*context*/, const ::viam::service::vision::v1::GetObjectPointCloudsRequest* /*request*/, ::viam::service::vision::v1::GetObjectPointCloudsResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::vision::v1::GetObjectPointCloudsRequest* /*request*/, ::viam::service::vision::v1::GetObjectPointCloudsResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetObjectPointClouds( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::service::vision::v1::GetObjectPointCloudsRequest* /*request*/, ::viam::service::vision::v1::GetObjectPointCloudsResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_GetProperties : public BaseClass { + class ExperimentalWithCallbackMethod_GetProperties : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_GetProperties() { - ::grpc::Service::MarkMethodCallback(5, - new ::grpc::internal::CallbackUnaryHandler< ::viam::service::vision::v1::GetPropertiesRequest, ::viam::service::vision::v1::GetPropertiesResponse>( + ExperimentalWithCallbackMethod_GetProperties() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(5, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::vision::v1::GetPropertiesRequest, ::viam::service::vision::v1::GetPropertiesResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::service::vision::v1::GetPropertiesRequest* request, ::viam::service::vision::v1::GetPropertiesResponse* response) { return this->GetProperties(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::service::vision::v1::GetPropertiesRequest* request, ::viam::service::vision::v1::GetPropertiesResponse* response) { return this->GetProperties(context, request, response); }));} void SetMessageAllocatorFor_GetProperties( - ::grpc::MessageAllocator< ::viam::service::vision::v1::GetPropertiesRequest, ::viam::service::vision::v1::GetPropertiesResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::service::vision::v1::GetPropertiesRequest, ::viam::service::vision::v1::GetPropertiesResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(5); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::vision::v1::GetPropertiesRequest, ::viam::service::vision::v1::GetPropertiesResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(5); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::vision::v1::GetPropertiesRequest, ::viam::service::vision::v1::GetPropertiesResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_GetProperties() override { + ~ExperimentalWithCallbackMethod_GetProperties() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -612,26 +891,46 @@ class VisionService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetProperties( - ::grpc::CallbackServerContext* /*context*/, const ::viam::service::vision::v1::GetPropertiesRequest* /*request*/, ::viam::service::vision::v1::GetPropertiesResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::vision::v1::GetPropertiesRequest* /*request*/, ::viam::service::vision::v1::GetPropertiesResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetProperties( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::service::vision::v1::GetPropertiesRequest* /*request*/, ::viam::service::vision::v1::GetPropertiesResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_CaptureAllFromCamera : public BaseClass { + class ExperimentalWithCallbackMethod_CaptureAllFromCamera : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_CaptureAllFromCamera() { - ::grpc::Service::MarkMethodCallback(6, - new ::grpc::internal::CallbackUnaryHandler< ::viam::service::vision::v1::CaptureAllFromCameraRequest, ::viam::service::vision::v1::CaptureAllFromCameraResponse>( + ExperimentalWithCallbackMethod_CaptureAllFromCamera() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(6, + new ::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::vision::v1::CaptureAllFromCameraRequest, ::viam::service::vision::v1::CaptureAllFromCameraResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::service::vision::v1::CaptureAllFromCameraRequest* request, ::viam::service::vision::v1::CaptureAllFromCameraResponse* response) { return this->CaptureAllFromCamera(context, request, response); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::viam::service::vision::v1::CaptureAllFromCameraRequest* request, ::viam::service::vision::v1::CaptureAllFromCameraResponse* response) { return this->CaptureAllFromCamera(context, request, response); }));} void SetMessageAllocatorFor_CaptureAllFromCamera( - ::grpc::MessageAllocator< ::viam::service::vision::v1::CaptureAllFromCameraRequest, ::viam::service::vision::v1::CaptureAllFromCameraResponse>* allocator) { + ::grpc::experimental::MessageAllocator< ::viam::service::vision::v1::CaptureAllFromCameraRequest, ::viam::service::vision::v1::CaptureAllFromCameraResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(6); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::service::vision::v1::CaptureAllFromCameraRequest, ::viam::service::vision::v1::CaptureAllFromCameraResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(6); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::service::vision::v1::CaptureAllFromCameraRequest, ::viam::service::vision::v1::CaptureAllFromCameraResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_CaptureAllFromCamera() override { + ~ExperimentalWithCallbackMethod_CaptureAllFromCamera() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -639,26 +938,46 @@ class VisionService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* CaptureAllFromCamera( - ::grpc::CallbackServerContext* /*context*/, const ::viam::service::vision::v1::CaptureAllFromCameraRequest* /*request*/, ::viam::service::vision::v1::CaptureAllFromCameraResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::service::vision::v1::CaptureAllFromCameraRequest* /*request*/, ::viam::service::vision::v1::CaptureAllFromCameraResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* CaptureAllFromCamera( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::service::vision::v1::CaptureAllFromCameraRequest* /*request*/, ::viam::service::vision::v1::CaptureAllFromCameraResponse* /*response*/) + #endif + { return nullptr; } }; template - class WithCallbackMethod_DoCommand : public BaseClass { + class ExperimentalWithCallbackMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_DoCommand() { - ::grpc::Service::MarkMethodCallback(7, - new ::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( + ExperimentalWithCallbackMethod_DoCommand() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodCallback(7, + new ::grpc_impl::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); }));} + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + 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::experimental::MessageAllocator< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* allocator) { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(7); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>*>(handler) + #else + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(7); + #endif + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_DoCommand() override { + ~ExperimentalWithCallbackMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -666,11 +985,20 @@ class VisionService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DoCommand( - ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DoCommand( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) + #endif + { return nullptr; } }; - typedef WithCallbackMethod_GetDetectionsFromCamera > > > > > > > CallbackService; - typedef CallbackService ExperimentalCallbackService; + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + typedef ExperimentalWithCallbackMethod_GetDetectionsFromCamera > > > > > > > CallbackService; + #endif + + typedef ExperimentalWithCallbackMethod_GetDetectionsFromCamera > > > > > > > ExperimentalCallbackService; template class WithGenericMethod_GetDetectionsFromCamera : public BaseClass { private: @@ -968,17 +1296,27 @@ class VisionService final { } }; template - class WithRawCallbackMethod_GetDetectionsFromCamera : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetDetectionsFromCamera : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetDetectionsFromCamera() { - ::grpc::Service::MarkMethodRawCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetDetectionsFromCamera() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(0, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetDetectionsFromCamera(context, request, response); })); - } - ~WithRawCallbackMethod_GetDetectionsFromCamera() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetDetectionsFromCamera(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetDetectionsFromCamera() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -986,21 +1324,37 @@ class VisionService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetDetectionsFromCamera( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetDetectionsFromCamera( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetDetections : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetDetections : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetDetections() { - ::grpc::Service::MarkMethodRawCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetDetections() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(1, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetDetections(context, request, response); })); - } - ~WithRawCallbackMethod_GetDetections() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetDetections(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetDetections() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1008,21 +1362,37 @@ class VisionService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetDetections( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetDetections( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetClassificationsFromCamera : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetClassificationsFromCamera : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetClassificationsFromCamera() { - ::grpc::Service::MarkMethodRawCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetClassificationsFromCamera() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(2, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetClassificationsFromCamera(context, request, response); })); - } - ~WithRawCallbackMethod_GetClassificationsFromCamera() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetClassificationsFromCamera(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetClassificationsFromCamera() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1030,21 +1400,37 @@ class VisionService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetClassificationsFromCamera( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetClassificationsFromCamera( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetClassifications : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetClassifications : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetClassifications() { - ::grpc::Service::MarkMethodRawCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetClassifications() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(3, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetClassifications(context, request, response); })); - } - ~WithRawCallbackMethod_GetClassifications() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetClassifications(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetClassifications() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1052,21 +1438,37 @@ class VisionService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetClassifications( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetClassifications( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetObjectPointClouds : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetObjectPointClouds : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetObjectPointClouds() { - ::grpc::Service::MarkMethodRawCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetObjectPointClouds() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(4, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetObjectPointClouds(context, request, response); })); - } - ~WithRawCallbackMethod_GetObjectPointClouds() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetObjectPointClouds(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetObjectPointClouds() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1074,21 +1476,37 @@ class VisionService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetObjectPointClouds( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetObjectPointClouds( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_GetProperties : public BaseClass { + class ExperimentalWithRawCallbackMethod_GetProperties : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_GetProperties() { - ::grpc::Service::MarkMethodRawCallback(5, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_GetProperties() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(5, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetProperties(context, request, response); })); - } - ~WithRawCallbackMethod_GetProperties() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetProperties(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_GetProperties() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1096,21 +1514,37 @@ class VisionService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* GetProperties( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* GetProperties( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_CaptureAllFromCamera : public BaseClass { + class ExperimentalWithRawCallbackMethod_CaptureAllFromCamera : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_CaptureAllFromCamera() { - ::grpc::Service::MarkMethodRawCallback(6, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_CaptureAllFromCamera() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(6, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->CaptureAllFromCamera(context, request, response); })); - } - ~WithRawCallbackMethod_CaptureAllFromCamera() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->CaptureAllFromCamera(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_CaptureAllFromCamera() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1118,21 +1552,37 @@ class VisionService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* CaptureAllFromCamera( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* CaptureAllFromCamera( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template - class WithRawCallbackMethod_DoCommand : public BaseClass { + class ExperimentalWithRawCallbackMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_DoCommand() { - ::grpc::Service::MarkMethodRawCallback(7, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ExperimentalWithRawCallbackMethod_DoCommand() { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::Service:: + #else + ::grpc::Service::experimental(). + #endif + MarkMethodRawCallback(7, + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DoCommand(context, request, response); })); - } - ~WithRawCallbackMethod_DoCommand() override { + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL + ::grpc::CallbackServerContext* + #else + ::grpc::experimental::CallbackServerContext* + #endif + context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DoCommand(context, request, response); })); + } + ~ExperimentalWithRawCallbackMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method @@ -1140,8 +1590,14 @@ class VisionService final { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } + #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL virtual ::grpc::ServerUnaryReactor* DoCommand( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #else + virtual ::grpc::experimental::ServerUnaryReactor* DoCommand( + ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) + #endif + { return nullptr; } }; template class WithStreamedUnaryMethod_GetDetectionsFromCamera : public BaseClass { @@ -1152,8 +1608,8 @@ class VisionService final { ::grpc::Service::MarkMethodStreamed(0, new ::grpc::internal::StreamedUnaryHandler< ::viam::service::vision::v1::GetDetectionsFromCameraRequest, ::viam::service::vision::v1::GetDetectionsFromCameraResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::service::vision::v1::GetDetectionsFromCameraRequest, ::viam::service::vision::v1::GetDetectionsFromCameraResponse>* streamer) { return this->StreamedGetDetectionsFromCamera(context, streamer); @@ -1179,8 +1635,8 @@ class VisionService final { ::grpc::Service::MarkMethodStreamed(1, new ::grpc::internal::StreamedUnaryHandler< ::viam::service::vision::v1::GetDetectionsRequest, ::viam::service::vision::v1::GetDetectionsResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::service::vision::v1::GetDetectionsRequest, ::viam::service::vision::v1::GetDetectionsResponse>* streamer) { return this->StreamedGetDetections(context, streamer); @@ -1206,8 +1662,8 @@ class VisionService final { ::grpc::Service::MarkMethodStreamed(2, new ::grpc::internal::StreamedUnaryHandler< ::viam::service::vision::v1::GetClassificationsFromCameraRequest, ::viam::service::vision::v1::GetClassificationsFromCameraResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::service::vision::v1::GetClassificationsFromCameraRequest, ::viam::service::vision::v1::GetClassificationsFromCameraResponse>* streamer) { return this->StreamedGetClassificationsFromCamera(context, streamer); @@ -1233,8 +1689,8 @@ class VisionService final { ::grpc::Service::MarkMethodStreamed(3, new ::grpc::internal::StreamedUnaryHandler< ::viam::service::vision::v1::GetClassificationsRequest, ::viam::service::vision::v1::GetClassificationsResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::service::vision::v1::GetClassificationsRequest, ::viam::service::vision::v1::GetClassificationsResponse>* streamer) { return this->StreamedGetClassifications(context, streamer); @@ -1260,8 +1716,8 @@ class VisionService final { ::grpc::Service::MarkMethodStreamed(4, new ::grpc::internal::StreamedUnaryHandler< ::viam::service::vision::v1::GetObjectPointCloudsRequest, ::viam::service::vision::v1::GetObjectPointCloudsResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::service::vision::v1::GetObjectPointCloudsRequest, ::viam::service::vision::v1::GetObjectPointCloudsResponse>* streamer) { return this->StreamedGetObjectPointClouds(context, streamer); @@ -1287,8 +1743,8 @@ class VisionService final { ::grpc::Service::MarkMethodStreamed(5, new ::grpc::internal::StreamedUnaryHandler< ::viam::service::vision::v1::GetPropertiesRequest, ::viam::service::vision::v1::GetPropertiesResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::service::vision::v1::GetPropertiesRequest, ::viam::service::vision::v1::GetPropertiesResponse>* streamer) { return this->StreamedGetProperties(context, streamer); @@ -1314,8 +1770,8 @@ class VisionService final { ::grpc::Service::MarkMethodStreamed(6, new ::grpc::internal::StreamedUnaryHandler< ::viam::service::vision::v1::CaptureAllFromCameraRequest, ::viam::service::vision::v1::CaptureAllFromCameraResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::service::vision::v1::CaptureAllFromCameraRequest, ::viam::service::vision::v1::CaptureAllFromCameraResponse>* streamer) { return this->StreamedCaptureAllFromCamera(context, streamer); @@ -1341,8 +1797,8 @@ class VisionService final { ::grpc::Service::MarkMethodStreamed(7, new ::grpc::internal::StreamedUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< + [this](::grpc_impl::ServerContext* context, + ::grpc_impl::ServerUnaryStreamer< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* streamer) { return this->StreamedDoCommand(context, streamer); diff --git a/src/viam/api/service/vision/v1/vision.pb.cc b/src/viam/api/service/vision/v1/vision.pb.cc index f878f7e0e..ead2b1ac7 100644 --- a/src/viam/api/service/vision/v1/vision.pb.cc +++ b/src/viam/api/service/vision/v1/vision.pb.cc @@ -4,1176 +4,949 @@ #include "service/vision/v1/vision.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace viam { namespace service { namespace vision { namespace v1 { - -inline constexpr GetPropertiesResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : classifications_supported_{false}, - detections_supported_{false}, - object_point_clouds_supported_{false}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetPropertiesResponse::GetPropertiesResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetPropertiesResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetPropertiesResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetPropertiesResponseDefaultTypeInternal() {} - union { - GetPropertiesResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPropertiesResponseDefaultTypeInternal _GetPropertiesResponse_default_instance_; - -inline constexpr Detection::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - class_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - x_min_{::int64_t{0}}, - y_min_{::int64_t{0}}, - x_max_{::int64_t{0}}, - y_max_{::int64_t{0}}, - confidence_{0} {} - -template -PROTOBUF_CONSTEXPR Detection::Detection(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct DetectionDefaultTypeInternal { - PROTOBUF_CONSTEXPR DetectionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~DetectionDefaultTypeInternal() {} - union { - Detection _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DetectionDefaultTypeInternal _Detection_default_instance_; - -inline constexpr Classification::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : class_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - confidence_{0}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR Classification::Classification(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ClassificationDefaultTypeInternal { - PROTOBUF_CONSTEXPR ClassificationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ClassificationDefaultTypeInternal() {} - union { - Classification _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ClassificationDefaultTypeInternal _Classification_default_instance_; - -inline constexpr GetPropertiesRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetPropertiesRequest::GetPropertiesRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetPropertiesRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetPropertiesRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetPropertiesRequestDefaultTypeInternal() {} - union { - GetPropertiesRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPropertiesRequestDefaultTypeInternal _GetPropertiesRequest_default_instance_; - -inline constexpr GetObjectPointCloudsRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - camera_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - mime_type_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetObjectPointCloudsRequest::GetObjectPointCloudsRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetObjectPointCloudsRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetObjectPointCloudsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetObjectPointCloudsRequestDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR GetDetectionsRequest::GetDetectionsRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , image_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , mime_type_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr) + , width_(int64_t{0}) + , height_(int64_t{0}){} +struct GetDetectionsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetDetectionsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetDetectionsRequestDefaultTypeInternal() {} union { - GetObjectPointCloudsRequest _instance; + GetDetectionsRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetObjectPointCloudsRequestDefaultTypeInternal _GetObjectPointCloudsRequest_default_instance_; - -inline constexpr GetDetectionsResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : detections_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetDetectionsResponse::GetDetectionsResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetDetectionsRequestDefaultTypeInternal _GetDetectionsRequest_default_instance_; +PROTOBUF_CONSTEXPR GetDetectionsResponse::GetDetectionsResponse( + ::_pbi::ConstantInitialized) + : detections_(){} struct GetDetectionsResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetDetectionsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GetDetectionsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~GetDetectionsResponseDefaultTypeInternal() {} union { GetDetectionsResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetDetectionsResponseDefaultTypeInternal _GetDetectionsResponse_default_instance_; - -inline constexpr GetDetectionsRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - image_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - mime_type_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr}, - width_{::int64_t{0}}, - height_{::int64_t{0}} {} - -template -PROTOBUF_CONSTEXPR GetDetectionsRequest::GetDetectionsRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetDetectionsRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetDetectionsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetDetectionsRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetDetectionsResponseDefaultTypeInternal _GetDetectionsResponse_default_instance_; +PROTOBUF_CONSTEXPR GetDetectionsFromCameraRequest::GetDetectionsFromCameraRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , camera_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} +struct GetDetectionsFromCameraRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetDetectionsFromCameraRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetDetectionsFromCameraRequestDefaultTypeInternal() {} union { - GetDetectionsRequest _instance; + GetDetectionsFromCameraRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetDetectionsRequestDefaultTypeInternal _GetDetectionsRequest_default_instance_; - -inline constexpr GetDetectionsFromCameraResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : detections_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetDetectionsFromCameraResponse::GetDetectionsFromCameraResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetDetectionsFromCameraRequestDefaultTypeInternal _GetDetectionsFromCameraRequest_default_instance_; +PROTOBUF_CONSTEXPR GetDetectionsFromCameraResponse::GetDetectionsFromCameraResponse( + ::_pbi::ConstantInitialized) + : detections_(){} struct GetDetectionsFromCameraResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetDetectionsFromCameraResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GetDetectionsFromCameraResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~GetDetectionsFromCameraResponseDefaultTypeInternal() {} union { GetDetectionsFromCameraResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetDetectionsFromCameraResponseDefaultTypeInternal _GetDetectionsFromCameraResponse_default_instance_; - -inline constexpr GetDetectionsFromCameraRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - camera_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetDetectionsFromCameraRequest::GetDetectionsFromCameraRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetDetectionsFromCameraRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetDetectionsFromCameraRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetDetectionsFromCameraRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetDetectionsFromCameraResponseDefaultTypeInternal _GetDetectionsFromCameraResponse_default_instance_; +PROTOBUF_CONSTEXPR Detection::Detection( + ::_pbi::ConstantInitialized) + : class_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , x_min_(int64_t{0}) + , y_min_(int64_t{0}) + , x_max_(int64_t{0}) + , y_max_(int64_t{0}) + , confidence_(0){} +struct DetectionDefaultTypeInternal { + PROTOBUF_CONSTEXPR DetectionDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DetectionDefaultTypeInternal() {} union { - GetDetectionsFromCameraRequest _instance; + Detection _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetDetectionsFromCameraRequestDefaultTypeInternal _GetDetectionsFromCameraRequest_default_instance_; - -inline constexpr GetClassificationsResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : classifications_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetClassificationsResponse::GetClassificationsResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DetectionDefaultTypeInternal _Detection_default_instance_; +PROTOBUF_CONSTEXPR GetClassificationsRequest::GetClassificationsRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , image_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , mime_type_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr) + , width_(0) + , height_(0) + , n_(0){} +struct GetClassificationsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetClassificationsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetClassificationsRequestDefaultTypeInternal() {} + union { + GetClassificationsRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetClassificationsRequestDefaultTypeInternal _GetClassificationsRequest_default_instance_; +PROTOBUF_CONSTEXPR GetClassificationsResponse::GetClassificationsResponse( + ::_pbi::ConstantInitialized) + : classifications_(){} struct GetClassificationsResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetClassificationsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GetClassificationsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~GetClassificationsResponseDefaultTypeInternal() {} union { GetClassificationsResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetClassificationsResponseDefaultTypeInternal _GetClassificationsResponse_default_instance_; - -inline constexpr GetClassificationsRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - image_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - mime_type_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr}, - width_{0}, - height_{0}, - n_{0} {} - -template -PROTOBUF_CONSTEXPR GetClassificationsRequest::GetClassificationsRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetClassificationsRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetClassificationsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetClassificationsRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetClassificationsResponseDefaultTypeInternal _GetClassificationsResponse_default_instance_; +PROTOBUF_CONSTEXPR GetClassificationsFromCameraRequest::GetClassificationsFromCameraRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , camera_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr) + , n_(0){} +struct GetClassificationsFromCameraRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetClassificationsFromCameraRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetClassificationsFromCameraRequestDefaultTypeInternal() {} union { - GetClassificationsRequest _instance; + GetClassificationsFromCameraRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetClassificationsRequestDefaultTypeInternal _GetClassificationsRequest_default_instance_; - -inline constexpr GetClassificationsFromCameraResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : classifications_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetClassificationsFromCameraResponse::GetClassificationsFromCameraResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetClassificationsFromCameraRequestDefaultTypeInternal _GetClassificationsFromCameraRequest_default_instance_; +PROTOBUF_CONSTEXPR GetClassificationsFromCameraResponse::GetClassificationsFromCameraResponse( + ::_pbi::ConstantInitialized) + : classifications_(){} struct GetClassificationsFromCameraResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetClassificationsFromCameraResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GetClassificationsFromCameraResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~GetClassificationsFromCameraResponseDefaultTypeInternal() {} union { GetClassificationsFromCameraResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetClassificationsFromCameraResponseDefaultTypeInternal _GetClassificationsFromCameraResponse_default_instance_; - -inline constexpr GetClassificationsFromCameraRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - camera_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr}, - n_{0} {} - -template -PROTOBUF_CONSTEXPR GetClassificationsFromCameraRequest::GetClassificationsFromCameraRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetClassificationsFromCameraRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetClassificationsFromCameraRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetClassificationsFromCameraRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetClassificationsFromCameraResponseDefaultTypeInternal _GetClassificationsFromCameraResponse_default_instance_; +PROTOBUF_CONSTEXPR Classification::Classification( + ::_pbi::ConstantInitialized) + : class_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , confidence_(0){} +struct ClassificationDefaultTypeInternal { + PROTOBUF_CONSTEXPR ClassificationDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ClassificationDefaultTypeInternal() {} union { - GetClassificationsFromCameraRequest _instance; + Classification _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetClassificationsFromCameraRequestDefaultTypeInternal _GetClassificationsFromCameraRequest_default_instance_; - -inline constexpr CaptureAllFromCameraRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - camera_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - extra_{nullptr}, - return_image_{false}, - return_classifications_{false}, - return_detections_{false}, - return_object_point_clouds_{false} {} - -template -PROTOBUF_CONSTEXPR CaptureAllFromCameraRequest::CaptureAllFromCameraRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct CaptureAllFromCameraRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR CaptureAllFromCameraRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CaptureAllFromCameraRequestDefaultTypeInternal() {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ClassificationDefaultTypeInternal _Classification_default_instance_; +PROTOBUF_CONSTEXPR GetObjectPointCloudsRequest::GetObjectPointCloudsRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , camera_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , mime_type_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} +struct GetObjectPointCloudsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetObjectPointCloudsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetObjectPointCloudsRequestDefaultTypeInternal() {} union { - CaptureAllFromCameraRequest _instance; + GetObjectPointCloudsRequest _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CaptureAllFromCameraRequestDefaultTypeInternal _CaptureAllFromCameraRequest_default_instance_; - -inline constexpr GetObjectPointCloudsResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : objects_{}, - mime_type_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetObjectPointCloudsResponse::GetObjectPointCloudsResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetObjectPointCloudsRequestDefaultTypeInternal _GetObjectPointCloudsRequest_default_instance_; +PROTOBUF_CONSTEXPR GetObjectPointCloudsResponse::GetObjectPointCloudsResponse( + ::_pbi::ConstantInitialized) + : objects_() + , mime_type_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} struct GetObjectPointCloudsResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetObjectPointCloudsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GetObjectPointCloudsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~GetObjectPointCloudsResponseDefaultTypeInternal() {} union { GetObjectPointCloudsResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetObjectPointCloudsResponseDefaultTypeInternal _GetObjectPointCloudsResponse_default_instance_; - -inline constexpr CaptureAllFromCameraResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - detections_{}, - classifications_{}, - objects_{}, - image_{nullptr}, - extra_{nullptr} {} - -template -PROTOBUF_CONSTEXPR CaptureAllFromCameraResponse::CaptureAllFromCameraResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetObjectPointCloudsResponseDefaultTypeInternal _GetObjectPointCloudsResponse_default_instance_; +PROTOBUF_CONSTEXPR GetPropertiesRequest::GetPropertiesRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} +struct GetPropertiesRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPropertiesRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPropertiesRequestDefaultTypeInternal() {} + union { + GetPropertiesRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPropertiesRequestDefaultTypeInternal _GetPropertiesRequest_default_instance_; +PROTOBUF_CONSTEXPR CaptureAllFromCameraRequest::CaptureAllFromCameraRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , camera_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr) + , return_image_(false) + , return_classifications_(false) + , return_detections_(false) + , return_object_point_clouds_(false){} +struct CaptureAllFromCameraRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR CaptureAllFromCameraRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CaptureAllFromCameraRequestDefaultTypeInternal() {} + union { + CaptureAllFromCameraRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CaptureAllFromCameraRequestDefaultTypeInternal _CaptureAllFromCameraRequest_default_instance_; +PROTOBUF_CONSTEXPR CaptureAllFromCameraResponse::CaptureAllFromCameraResponse( + ::_pbi::ConstantInitialized) + : detections_() + , classifications_() + , objects_() + , image_(nullptr) + , extra_(nullptr){} struct CaptureAllFromCameraResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR CaptureAllFromCameraResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR CaptureAllFromCameraResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~CaptureAllFromCameraResponseDefaultTypeInternal() {} union { CaptureAllFromCameraResponse _instance; }; }; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CaptureAllFromCameraResponseDefaultTypeInternal _CaptureAllFromCameraResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CaptureAllFromCameraResponseDefaultTypeInternal _CaptureAllFromCameraResponse_default_instance_; +PROTOBUF_CONSTEXPR GetPropertiesResponse::GetPropertiesResponse( + ::_pbi::ConstantInitialized) + : classifications_supported_(false) + , detections_supported_(false) + , object_point_clouds_supported_(false){} +struct GetPropertiesResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPropertiesResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPropertiesResponseDefaultTypeInternal() {} + union { + GetPropertiesResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPropertiesResponseDefaultTypeInternal _GetPropertiesResponse_default_instance_; } // namespace v1 } // namespace vision } // namespace service } // namespace viam static ::_pb::Metadata file_level_metadata_service_2fvision_2fv1_2fvision_2eproto[16]; -static constexpr const ::_pb::EnumDescriptor** - file_level_enum_descriptors_service_2fvision_2fv1_2fvision_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_service_2fvision_2fv1_2fvision_2eproto = nullptr; -const ::uint32_t TableStruct_service_2fvision_2fv1_2fvision_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetDetectionsRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetDetectionsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetDetectionsRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetDetectionsRequest, _impl_.image_), - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetDetectionsRequest, _impl_.width_), - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetDetectionsRequest, _impl_.height_), - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetDetectionsRequest, _impl_.mime_type_), - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetDetectionsRequest, _impl_.extra_), - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetDetectionsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetDetectionsResponse, _impl_.detections_), - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetDetectionsFromCameraRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetDetectionsFromCameraRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetDetectionsFromCameraRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetDetectionsFromCameraRequest, _impl_.camera_name_), - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetDetectionsFromCameraRequest, _impl_.extra_), - ~0u, - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetDetectionsFromCameraResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetDetectionsFromCameraResponse, _impl_.detections_), - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::Detection, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::Detection, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::Detection, _impl_.x_min_), - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::Detection, _impl_.y_min_), - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::Detection, _impl_.x_max_), - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::Detection, _impl_.y_max_), - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::Detection, _impl_.confidence_), - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::Detection, _impl_.class_name_), - 0, - 1, - 2, - 3, - ~0u, - ~0u, - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassificationsRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassificationsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassificationsRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassificationsRequest, _impl_.image_), - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassificationsRequest, _impl_.width_), - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassificationsRequest, _impl_.height_), - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassificationsRequest, _impl_.mime_type_), - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassificationsRequest, _impl_.n_), - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassificationsRequest, _impl_.extra_), - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassificationsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassificationsResponse, _impl_.classifications_), - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassificationsFromCameraRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassificationsFromCameraRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassificationsFromCameraRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassificationsFromCameraRequest, _impl_.camera_name_), - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassificationsFromCameraRequest, _impl_.n_), - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassificationsFromCameraRequest, _impl_.extra_), - ~0u, - ~0u, - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassificationsFromCameraResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassificationsFromCameraResponse, _impl_.classifications_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::Classification, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::Classification, _impl_.class_name_), - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::Classification, _impl_.confidence_), - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetObjectPointCloudsRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetObjectPointCloudsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetObjectPointCloudsRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetObjectPointCloudsRequest, _impl_.camera_name_), - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetObjectPointCloudsRequest, _impl_.mime_type_), - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetObjectPointCloudsRequest, _impl_.extra_), - ~0u, - ~0u, - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetObjectPointCloudsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetObjectPointCloudsResponse, _impl_.mime_type_), - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetObjectPointCloudsResponse, _impl_.objects_), - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetPropertiesRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetPropertiesRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetPropertiesRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetPropertiesRequest, _impl_.extra_), - ~0u, - 0, - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::CaptureAllFromCameraRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::CaptureAllFromCameraRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::CaptureAllFromCameraRequest, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::CaptureAllFromCameraRequest, _impl_.camera_name_), - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::CaptureAllFromCameraRequest, _impl_.return_image_), - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::CaptureAllFromCameraRequest, _impl_.return_classifications_), - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::CaptureAllFromCameraRequest, _impl_.return_detections_), - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::CaptureAllFromCameraRequest, _impl_.return_object_point_clouds_), - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::CaptureAllFromCameraRequest, _impl_.extra_), - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - 0, - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::CaptureAllFromCameraResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::CaptureAllFromCameraResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::CaptureAllFromCameraResponse, _impl_.image_), - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::CaptureAllFromCameraResponse, _impl_.detections_), - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::CaptureAllFromCameraResponse, _impl_.classifications_), - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::CaptureAllFromCameraResponse, _impl_.objects_), - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::CaptureAllFromCameraResponse, _impl_.extra_), - 0, - ~0u, - ~0u, - ~0u, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetPropertiesResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetPropertiesResponse, _impl_.classifications_supported_), - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetPropertiesResponse, _impl_.detections_supported_), - PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetPropertiesResponse, _impl_.object_point_clouds_supported_), +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_service_2fvision_2fv1_2fvision_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_service_2fvision_2fv1_2fvision_2eproto = nullptr; + +const uint32_t TableStruct_service_2fvision_2fv1_2fvision_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetDetectionsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetDetectionsRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetDetectionsRequest, image_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetDetectionsRequest, width_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetDetectionsRequest, height_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetDetectionsRequest, mime_type_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetDetectionsRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetDetectionsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetDetectionsResponse, detections_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetDetectionsFromCameraRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetDetectionsFromCameraRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetDetectionsFromCameraRequest, camera_name_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetDetectionsFromCameraRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetDetectionsFromCameraResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetDetectionsFromCameraResponse, detections_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::Detection, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::Detection, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::Detection, x_min_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::Detection, y_min_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::Detection, x_max_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::Detection, y_max_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::Detection, confidence_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::Detection, class_name_), + 0, + 1, + 2, + 3, + ~0u, + ~0u, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassificationsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassificationsRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassificationsRequest, image_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassificationsRequest, width_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassificationsRequest, height_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassificationsRequest, mime_type_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassificationsRequest, n_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassificationsRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassificationsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassificationsResponse, classifications_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassificationsFromCameraRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassificationsFromCameraRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassificationsFromCameraRequest, camera_name_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassificationsFromCameraRequest, n_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassificationsFromCameraRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassificationsFromCameraResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetClassificationsFromCameraResponse, classifications_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::Classification, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::Classification, class_name_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::Classification, confidence_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetObjectPointCloudsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetObjectPointCloudsRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetObjectPointCloudsRequest, camera_name_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetObjectPointCloudsRequest, mime_type_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetObjectPointCloudsRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetObjectPointCloudsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetObjectPointCloudsResponse, mime_type_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetObjectPointCloudsResponse, objects_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetPropertiesRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetPropertiesRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetPropertiesRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::CaptureAllFromCameraRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::CaptureAllFromCameraRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::CaptureAllFromCameraRequest, camera_name_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::CaptureAllFromCameraRequest, return_image_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::CaptureAllFromCameraRequest, return_classifications_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::CaptureAllFromCameraRequest, return_detections_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::CaptureAllFromCameraRequest, return_object_point_clouds_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::CaptureAllFromCameraRequest, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::CaptureAllFromCameraResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::CaptureAllFromCameraResponse, image_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::CaptureAllFromCameraResponse, detections_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::CaptureAllFromCameraResponse, classifications_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::CaptureAllFromCameraResponse, objects_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::CaptureAllFromCameraResponse, extra_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetPropertiesResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetPropertiesResponse, classifications_supported_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetPropertiesResponse, detections_supported_), + PROTOBUF_FIELD_OFFSET(::viam::service::vision::v1::GetPropertiesResponse, object_point_clouds_supported_), }; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, 14, -1, sizeof(::viam::service::vision::v1::GetDetectionsRequest)}, - {20, -1, -1, sizeof(::viam::service::vision::v1::GetDetectionsResponse)}, - {29, 40, -1, sizeof(::viam::service::vision::v1::GetDetectionsFromCameraRequest)}, - {43, -1, -1, sizeof(::viam::service::vision::v1::GetDetectionsFromCameraResponse)}, - {52, 66, -1, sizeof(::viam::service::vision::v1::Detection)}, - {72, 87, -1, sizeof(::viam::service::vision::v1::GetClassificationsRequest)}, - {94, -1, -1, sizeof(::viam::service::vision::v1::GetClassificationsResponse)}, - {103, 115, -1, sizeof(::viam::service::vision::v1::GetClassificationsFromCameraRequest)}, - {119, -1, -1, sizeof(::viam::service::vision::v1::GetClassificationsFromCameraResponse)}, - {128, -1, -1, sizeof(::viam::service::vision::v1::Classification)}, - {138, 150, -1, sizeof(::viam::service::vision::v1::GetObjectPointCloudsRequest)}, - {154, -1, -1, sizeof(::viam::service::vision::v1::GetObjectPointCloudsResponse)}, - {164, 174, -1, sizeof(::viam::service::vision::v1::GetPropertiesRequest)}, - {176, 191, -1, sizeof(::viam::service::vision::v1::CaptureAllFromCameraRequest)}, - {198, 211, -1, sizeof(::viam::service::vision::v1::CaptureAllFromCameraResponse)}, - {216, -1, -1, sizeof(::viam::service::vision::v1::GetPropertiesResponse)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::viam::service::vision::v1::GetDetectionsRequest)}, + { 12, -1, -1, sizeof(::viam::service::vision::v1::GetDetectionsResponse)}, + { 19, -1, -1, sizeof(::viam::service::vision::v1::GetDetectionsFromCameraRequest)}, + { 28, -1, -1, sizeof(::viam::service::vision::v1::GetDetectionsFromCameraResponse)}, + { 35, 47, -1, sizeof(::viam::service::vision::v1::Detection)}, + { 53, -1, -1, sizeof(::viam::service::vision::v1::GetClassificationsRequest)}, + { 66, -1, -1, sizeof(::viam::service::vision::v1::GetClassificationsResponse)}, + { 73, -1, -1, sizeof(::viam::service::vision::v1::GetClassificationsFromCameraRequest)}, + { 83, -1, -1, sizeof(::viam::service::vision::v1::GetClassificationsFromCameraResponse)}, + { 90, -1, -1, sizeof(::viam::service::vision::v1::Classification)}, + { 98, -1, -1, sizeof(::viam::service::vision::v1::GetObjectPointCloudsRequest)}, + { 108, -1, -1, sizeof(::viam::service::vision::v1::GetObjectPointCloudsResponse)}, + { 116, -1, -1, sizeof(::viam::service::vision::v1::GetPropertiesRequest)}, + { 124, -1, -1, sizeof(::viam::service::vision::v1::CaptureAllFromCameraRequest)}, + { 137, -1, -1, sizeof(::viam::service::vision::v1::CaptureAllFromCameraResponse)}, + { 148, -1, -1, sizeof(::viam::service::vision::v1::GetPropertiesResponse)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::viam::service::vision::v1::_GetDetectionsRequest_default_instance_._instance, - &::viam::service::vision::v1::_GetDetectionsResponse_default_instance_._instance, - &::viam::service::vision::v1::_GetDetectionsFromCameraRequest_default_instance_._instance, - &::viam::service::vision::v1::_GetDetectionsFromCameraResponse_default_instance_._instance, - &::viam::service::vision::v1::_Detection_default_instance_._instance, - &::viam::service::vision::v1::_GetClassificationsRequest_default_instance_._instance, - &::viam::service::vision::v1::_GetClassificationsResponse_default_instance_._instance, - &::viam::service::vision::v1::_GetClassificationsFromCameraRequest_default_instance_._instance, - &::viam::service::vision::v1::_GetClassificationsFromCameraResponse_default_instance_._instance, - &::viam::service::vision::v1::_Classification_default_instance_._instance, - &::viam::service::vision::v1::_GetObjectPointCloudsRequest_default_instance_._instance, - &::viam::service::vision::v1::_GetObjectPointCloudsResponse_default_instance_._instance, - &::viam::service::vision::v1::_GetPropertiesRequest_default_instance_._instance, - &::viam::service::vision::v1::_CaptureAllFromCameraRequest_default_instance_._instance, - &::viam::service::vision::v1::_CaptureAllFromCameraResponse_default_instance_._instance, - &::viam::service::vision::v1::_GetPropertiesResponse_default_instance_._instance, -}; -const char descriptor_table_protodef_service_2fvision_2fv1_2fvision_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n\036service/vision/v1/vision.proto\022\026viam.s" - "ervice.vision.v1\032\026common/v1/common.proto" - "\032 component/camera/v1/camera.proto\032\034goog" - "le/api/annotations.proto\032\034google/protobu" - "f/struct.proto\"\272\001\n\024GetDetectionsRequest\022" - "\022\n\004name\030\001 \001(\tR\004name\022\024\n\005image\030\002 \001(\014R\005imag" - "e\022\024\n\005width\030\003 \001(\003R\005width\022\026\n\006height\030\004 \001(\003R" - "\006height\022\033\n\tmime_type\030\005 \001(\tR\010mimeType\022-\n\005" - "extra\030c \001(\0132\027.google.protobuf.StructR\005ex" - "tra\"Z\n\025GetDetectionsResponse\022A\n\ndetectio" - "ns\030\001 \003(\0132!.viam.service.vision.v1.Detect" - "ionR\ndetections\"\204\001\n\036GetDetectionsFromCam" - "eraRequest\022\022\n\004name\030\001 \001(\tR\004name\022\037\n\013camera" - "_name\030\002 \001(\tR\ncameraName\022-\n\005extra\030c \001(\0132\027" - ".google.protobuf.StructR\005extra\"d\n\037GetDet" - "ectionsFromCameraResponse\022A\n\ndetections\030" - "\001 \003(\0132!.viam.service.vision.v1.Detection" - "R\ndetections\"\332\001\n\tDetection\022\030\n\005x_min\030\001 \001(" - "\003H\000R\004xMin\210\001\001\022\030\n\005y_min\030\002 \001(\003H\001R\004yMin\210\001\001\022\030" - "\n\005x_max\030\003 \001(\003H\002R\004xMax\210\001\001\022\030\n\005y_max\030\004 \001(\003H" - "\003R\004yMax\210\001\001\022\036\n\nconfidence\030\005 \001(\001R\nconfiden" - "ce\022\035\n\nclass_name\030\006 \001(\tR\tclassNameB\010\n\006_x_" - "minB\010\n\006_y_minB\010\n\006_x_maxB\010\n\006_y_max\"\315\001\n\031Ge" - "tClassificationsRequest\022\022\n\004name\030\001 \001(\tR\004n" - "ame\022\024\n\005image\030\002 \001(\014R\005image\022\024\n\005width\030\003 \001(\005" - "R\005width\022\026\n\006height\030\004 \001(\005R\006height\022\033\n\tmime_" - "type\030\005 \001(\tR\010mimeType\022\014\n\001n\030\006 \001(\005R\001n\022-\n\005ex" - "tra\030c \001(\0132\027.google.protobuf.StructR\005extr" - "a\"n\n\032GetClassificationsResponse\022P\n\017class" - "ifications\030\001 \003(\0132&.viam.service.vision.v" - "1.ClassificationR\017classifications\"\227\001\n#Ge" - "tClassificationsFromCameraRequest\022\022\n\004nam" - "e\030\001 \001(\tR\004name\022\037\n\013camera_name\030\002 \001(\tR\ncame" - "raName\022\014\n\001n\030\003 \001(\005R\001n\022-\n\005extra\030c \001(\0132\027.go" - "ogle.protobuf.StructR\005extra\"x\n$GetClassi" - "ficationsFromCameraResponse\022P\n\017classific" - "ations\030\001 \003(\0132&.viam.service.vision.v1.Cl" - "assificationR\017classifications\"O\n\016Classif" - "ication\022\035\n\nclass_name\030\001 \001(\tR\tclassName\022\036" - "\n\nconfidence\030\002 \001(\001R\nconfidence\"\236\001\n\033GetOb" - "jectPointCloudsRequest\022\022\n\004name\030\001 \001(\tR\004na" - "me\022\037\n\013camera_name\030\002 \001(\tR\ncameraName\022\033\n\tm" - "ime_type\030\003 \001(\tR\010mimeType\022-\n\005extra\030c \001(\0132" - "\027.google.protobuf.StructR\005extra\"w\n\034GetOb" - "jectPointCloudsResponse\022\033\n\tmime_type\030\001 \001" - "(\tR\010mimeType\022:\n\007objects\030\002 \003(\0132 .viam.com" - "mon.v1.PointCloudObjectR\007objects\"Y\n\024GetP" - "ropertiesRequest\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005" - "extra\030c \001(\0132\027.google.protobuf.StructR\005ex" - "tra\"\305\002\n\033CaptureAllFromCameraRequest\022\022\n\004n" - "ame\030\001 \001(\tR\004name\022\037\n\013camera_name\030\002 \001(\tR\nca" - "meraName\022!\n\014return_image\030\003 \001(\010R\013returnIm" - "age\0225\n\026return_classifications\030\004 \001(\010R\025ret" - "urnClassifications\022+\n\021return_detections\030" - "\005 \001(\010R\020returnDetections\022;\n\032return_object" - "_point_clouds\030\006 \001(\010R\027returnObjectPointCl" - "ouds\022-\n\005extra\030c \001(\0132\027.google.protobuf.St" - "ructR\005extra\"\325\002\n\034CaptureAllFromCameraResp" - "onse\0225\n\005image\030\001 \001(\0132\037.viam.component.cam" - "era.v1.ImageR\005image\022A\n\ndetections\030\002 \003(\0132" - "!.viam.service.vision.v1.DetectionR\ndete" - "ctions\022P\n\017classifications\030\003 \003(\0132&.viam.s" - "ervice.vision.v1.ClassificationR\017classif" - "ications\022:\n\007objects\030\004 \003(\0132 .viam.common." - "v1.PointCloudObjectR\007objects\022-\n\005extra\030c " - "\001(\0132\027.google.protobuf.StructR\005extra\"\312\001\n\025" - "GetPropertiesResponse\022;\n\031classifications" - "_supported\030\001 \001(\010R\030classificationsSupport" - "ed\0221\n\024detections_supported\030\002 \001(\010R\023detect" - "ionsSupported\022A\n\035object_point_clouds_sup" - "ported\030\003 \001(\010R\032objectPointCloudsSupported" - "2\315\013\n\rVisionService\022\310\001\n\027GetDetectionsFrom" - "Camera\0226.viam.service.vision.v1.GetDetec" - "tionsFromCameraRequest\0327.viam.service.vi" - "sion.v1.GetDetectionsFromCameraResponse\"" - "<\202\323\344\223\0026\"4/viam/api/v1/service/vision/{na" - "me}/camera_detections\022\243\001\n\rGetDetections\022" - ",.viam.service.vision.v1.GetDetectionsRe" - "quest\032-.viam.service.vision.v1.GetDetect" - "ionsResponse\"5\202\323\344\223\002/\"-/viam/api/v1/servi" - "ce/vision/{name}/detections\022\334\001\n\034GetClass" - "ificationsFromCamera\022;.viam.service.visi" - "on.v1.GetClassificationsFromCameraReques" - "t\032<.viam.service.vision.v1.GetClassifica" - "tionsFromCameraResponse\"A\202\323\344\223\002;\"9/viam/a" - "pi/v1/service/vision/{name}/camera_class" - "ifications\022\267\001\n\022GetClassifications\0221.viam" - ".service.vision.v1.GetClassificationsReq" - "uest\0322.viam.service.vision.v1.GetClassif" - "icationsResponse\":\202\323\344\223\0024\"2/viam/api/v1/s" - "ervice/vision/{name}/classifications\022\301\001\n" - "\024GetObjectPointClouds\0223.viam.service.vis" - "ion.v1.GetObjectPointCloudsRequest\0324.via" - "m.service.vision.v1.GetObjectPointClouds" - "Response\">\202\323\344\223\0028\"6/viam/api/v1/service/v" - "ision/{name}/object_point_clouds\022\247\001\n\rGet" - "Properties\022,.viam.service.vision.v1.GetP" - "ropertiesRequest\032-.viam.service.vision.v" - "1.GetPropertiesResponse\"9\202\323\344\223\0023\"1/viam/a" - "pi/v1/service/vision/{name}/get_properti" - "es\022\271\001\n\024CaptureAllFromCamera\0223.viam.servi" - "ce.vision.v1.CaptureAllFromCameraRequest" - "\0324.viam.service.vision.v1.CaptureAllFrom" - "CameraResponse\"6\202\323\344\223\0020\"./viam/api/v1/ser" - "vice/vision/{name}/capture_all\022\207\001\n\tDoCom" - "mand\022 .viam.common.v1.DoCommandRequest\032!" - ".viam.common.v1.DoCommandResponse\"5\202\323\344\223\002" - "/\"-/viam/api/v1/service/vision/{name}/do" - "_commandB\307\001\n\032com.viam.service.vision.v1B" - "\013VisionProtoP\001Z!go.viam.com/api/service/" - "vision/v1\242\002\003VSV\252\002\026Viam.Service.Vision.V1" - "\312\002\026Viam\\Service\\Vision\\V1\342\002\"Viam\\Service" - "\\Vision\\V1\\GPBMetadata\352\002\031Viam::Service::" - "Vision::V1b\006proto3" + &::viam::service::vision::v1::_GetDetectionsRequest_default_instance_._instance, + &::viam::service::vision::v1::_GetDetectionsResponse_default_instance_._instance, + &::viam::service::vision::v1::_GetDetectionsFromCameraRequest_default_instance_._instance, + &::viam::service::vision::v1::_GetDetectionsFromCameraResponse_default_instance_._instance, + &::viam::service::vision::v1::_Detection_default_instance_._instance, + &::viam::service::vision::v1::_GetClassificationsRequest_default_instance_._instance, + &::viam::service::vision::v1::_GetClassificationsResponse_default_instance_._instance, + &::viam::service::vision::v1::_GetClassificationsFromCameraRequest_default_instance_._instance, + &::viam::service::vision::v1::_GetClassificationsFromCameraResponse_default_instance_._instance, + &::viam::service::vision::v1::_Classification_default_instance_._instance, + &::viam::service::vision::v1::_GetObjectPointCloudsRequest_default_instance_._instance, + &::viam::service::vision::v1::_GetObjectPointCloudsResponse_default_instance_._instance, + &::viam::service::vision::v1::_GetPropertiesRequest_default_instance_._instance, + &::viam::service::vision::v1::_CaptureAllFromCameraRequest_default_instance_._instance, + &::viam::service::vision::v1::_CaptureAllFromCameraResponse_default_instance_._instance, + &::viam::service::vision::v1::_GetPropertiesResponse_default_instance_._instance, }; -static const ::_pbi::DescriptorTable* const descriptor_table_service_2fvision_2fv1_2fvision_2eproto_deps[4] = - { - &::descriptor_table_common_2fv1_2fcommon_2eproto, - &::descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto, - &::descriptor_table_google_2fapi_2fannotations_2eproto, - &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, + +const char descriptor_table_protodef_service_2fvision_2fv1_2fvision_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\036service/vision/v1/vision.proto\022\026viam.s" + "ervice.vision.v1\032\026common/v1/common.proto" + "\032 component/camera/v1/camera.proto\032\034goog" + "le/api/annotations.proto\032\034google/protobu" + "f/struct.proto\"\272\001\n\024GetDetectionsRequest\022" + "\022\n\004name\030\001 \001(\tR\004name\022\024\n\005image\030\002 \001(\014R\005imag" + "e\022\024\n\005width\030\003 \001(\003R\005width\022\026\n\006height\030\004 \001(\003R" + "\006height\022\033\n\tmime_type\030\005 \001(\tR\010mimeType\022-\n\005" + "extra\030c \001(\0132\027.google.protobuf.StructR\005ex" + "tra\"Z\n\025GetDetectionsResponse\022A\n\ndetectio" + "ns\030\001 \003(\0132!.viam.service.vision.v1.Detect" + "ionR\ndetections\"\204\001\n\036GetDetectionsFromCam" + "eraRequest\022\022\n\004name\030\001 \001(\tR\004name\022\037\n\013camera" + "_name\030\002 \001(\tR\ncameraName\022-\n\005extra\030c \001(\0132\027" + ".google.protobuf.StructR\005extra\"d\n\037GetDet" + "ectionsFromCameraResponse\022A\n\ndetections\030" + "\001 \003(\0132!.viam.service.vision.v1.Detection" + "R\ndetections\"\332\001\n\tDetection\022\030\n\005x_min\030\001 \001(" + "\003H\000R\004xMin\210\001\001\022\030\n\005y_min\030\002 \001(\003H\001R\004yMin\210\001\001\022\030" + "\n\005x_max\030\003 \001(\003H\002R\004xMax\210\001\001\022\030\n\005y_max\030\004 \001(\003H" + "\003R\004yMax\210\001\001\022\036\n\nconfidence\030\005 \001(\001R\nconfiden" + "ce\022\035\n\nclass_name\030\006 \001(\tR\tclassNameB\010\n\006_x_" + "minB\010\n\006_y_minB\010\n\006_x_maxB\010\n\006_y_max\"\315\001\n\031Ge" + "tClassificationsRequest\022\022\n\004name\030\001 \001(\tR\004n" + "ame\022\024\n\005image\030\002 \001(\014R\005image\022\024\n\005width\030\003 \001(\005" + "R\005width\022\026\n\006height\030\004 \001(\005R\006height\022\033\n\tmime_" + "type\030\005 \001(\tR\010mimeType\022\014\n\001n\030\006 \001(\005R\001n\022-\n\005ex" + "tra\030c \001(\0132\027.google.protobuf.StructR\005extr" + "a\"n\n\032GetClassificationsResponse\022P\n\017class" + "ifications\030\001 \003(\0132&.viam.service.vision.v" + "1.ClassificationR\017classifications\"\227\001\n#Ge" + "tClassificationsFromCameraRequest\022\022\n\004nam" + "e\030\001 \001(\tR\004name\022\037\n\013camera_name\030\002 \001(\tR\ncame" + "raName\022\014\n\001n\030\003 \001(\005R\001n\022-\n\005extra\030c \001(\0132\027.go" + "ogle.protobuf.StructR\005extra\"x\n$GetClassi" + "ficationsFromCameraResponse\022P\n\017classific" + "ations\030\001 \003(\0132&.viam.service.vision.v1.Cl" + "assificationR\017classifications\"O\n\016Classif" + "ication\022\035\n\nclass_name\030\001 \001(\tR\tclassName\022\036" + "\n\nconfidence\030\002 \001(\001R\nconfidence\"\236\001\n\033GetOb" + "jectPointCloudsRequest\022\022\n\004name\030\001 \001(\tR\004na" + "me\022\037\n\013camera_name\030\002 \001(\tR\ncameraName\022\033\n\tm" + "ime_type\030\003 \001(\tR\010mimeType\022-\n\005extra\030c \001(\0132" + "\027.google.protobuf.StructR\005extra\"w\n\034GetOb" + "jectPointCloudsResponse\022\033\n\tmime_type\030\001 \001" + "(\tR\010mimeType\022:\n\007objects\030\002 \003(\0132 .viam.com" + "mon.v1.PointCloudObjectR\007objects\"Y\n\024GetP" + "ropertiesRequest\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005" + "extra\030c \001(\0132\027.google.protobuf.StructR\005ex" + "tra\"\305\002\n\033CaptureAllFromCameraRequest\022\022\n\004n" + "ame\030\001 \001(\tR\004name\022\037\n\013camera_name\030\002 \001(\tR\nca" + "meraName\022!\n\014return_image\030\003 \001(\010R\013returnIm" + "age\0225\n\026return_classifications\030\004 \001(\010R\025ret" + "urnClassifications\022+\n\021return_detections\030" + "\005 \001(\010R\020returnDetections\022;\n\032return_object" + "_point_clouds\030\006 \001(\010R\027returnObjectPointCl" + "ouds\022-\n\005extra\030c \001(\0132\027.google.protobuf.St" + "ructR\005extra\"\325\002\n\034CaptureAllFromCameraResp" + "onse\0225\n\005image\030\001 \001(\0132\037.viam.component.cam" + "era.v1.ImageR\005image\022A\n\ndetections\030\002 \003(\0132" + "!.viam.service.vision.v1.DetectionR\ndete" + "ctions\022P\n\017classifications\030\003 \003(\0132&.viam.s" + "ervice.vision.v1.ClassificationR\017classif" + "ications\022:\n\007objects\030\004 \003(\0132 .viam.common." + "v1.PointCloudObjectR\007objects\022-\n\005extra\030c " + "\001(\0132\027.google.protobuf.StructR\005extra\"\312\001\n\025" + "GetPropertiesResponse\022;\n\031classifications" + "_supported\030\001 \001(\010R\030classificationsSupport" + "ed\0221\n\024detections_supported\030\002 \001(\010R\023detect" + "ionsSupported\022A\n\035object_point_clouds_sup" + "ported\030\003 \001(\010R\032objectPointCloudsSupported" + "2\315\013\n\rVisionService\022\310\001\n\027GetDetectionsFrom" + "Camera\0226.viam.service.vision.v1.GetDetec" + "tionsFromCameraRequest\0327.viam.service.vi" + "sion.v1.GetDetectionsFromCameraResponse\"" + "<\202\323\344\223\0026\"4/viam/api/v1/service/vision/{na" + "me}/camera_detections\022\243\001\n\rGetDetections\022" + ",.viam.service.vision.v1.GetDetectionsRe" + "quest\032-.viam.service.vision.v1.GetDetect" + "ionsResponse\"5\202\323\344\223\002/\"-/viam/api/v1/servi" + "ce/vision/{name}/detections\022\334\001\n\034GetClass" + "ificationsFromCamera\022;.viam.service.visi" + "on.v1.GetClassificationsFromCameraReques" + "t\032<.viam.service.vision.v1.GetClassifica" + "tionsFromCameraResponse\"A\202\323\344\223\002;\"9/viam/a" + "pi/v1/service/vision/{name}/camera_class" + "ifications\022\267\001\n\022GetClassifications\0221.viam" + ".service.vision.v1.GetClassificationsReq" + "uest\0322.viam.service.vision.v1.GetClassif" + "icationsResponse\":\202\323\344\223\0024\"2/viam/api/v1/s" + "ervice/vision/{name}/classifications\022\301\001\n" + "\024GetObjectPointClouds\0223.viam.service.vis" + "ion.v1.GetObjectPointCloudsRequest\0324.via" + "m.service.vision.v1.GetObjectPointClouds" + "Response\">\202\323\344\223\0028\"6/viam/api/v1/service/v" + "ision/{name}/object_point_clouds\022\247\001\n\rGet" + "Properties\022,.viam.service.vision.v1.GetP" + "ropertiesRequest\032-.viam.service.vision.v" + "1.GetPropertiesResponse\"9\202\323\344\223\0023\"1/viam/a" + "pi/v1/service/vision/{name}/get_properti" + "es\022\271\001\n\024CaptureAllFromCamera\0223.viam.servi" + "ce.vision.v1.CaptureAllFromCameraRequest" + "\0324.viam.service.vision.v1.CaptureAllFrom" + "CameraResponse\"6\202\323\344\223\0020\"./viam/api/v1/ser" + "vice/vision/{name}/capture_all\022\207\001\n\tDoCom" + "mand\022 .viam.common.v1.DoCommandRequest\032!" + ".viam.common.v1.DoCommandResponse\"5\202\323\344\223\002" + "/\"-/viam/api/v1/service/vision/{name}/do" + "_commandB\?\n\032com.viam.service.vision.v1Z!" + "go.viam.com/api/service/vision/v1b\006proto" + "3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_service_2fvision_2fv1_2fvision_2eproto_deps[4] = { + &::descriptor_table_common_2fv1_2fcommon_2eproto, + &::descriptor_table_component_2fcamera_2fv1_2fcamera_2eproto, + &::descriptor_table_google_2fapi_2fannotations_2eproto, + &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, }; -static ::absl::once_flag descriptor_table_service_2fvision_2fv1_2fvision_2eproto_once; +static ::_pbi::once_flag descriptor_table_service_2fvision_2fv1_2fvision_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_service_2fvision_2fv1_2fvision_2eproto = { - false, - false, - 4538, - descriptor_table_protodef_service_2fvision_2fv1_2fvision_2eproto, + false, false, 4401, descriptor_table_protodef_service_2fvision_2fv1_2fvision_2eproto, "service/vision/v1/vision.proto", - &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_once, - descriptor_table_service_2fvision_2fv1_2fvision_2eproto_deps, - 4, - 16, - schemas, - file_default_instances, - TableStruct_service_2fvision_2fv1_2fvision_2eproto::offsets, - file_level_metadata_service_2fvision_2fv1_2fvision_2eproto, - file_level_enum_descriptors_service_2fvision_2fv1_2fvision_2eproto, + &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_once, descriptor_table_service_2fvision_2fv1_2fvision_2eproto_deps, 4, 16, + schemas, file_default_instances, TableStruct_service_2fvision_2fv1_2fvision_2eproto::offsets, + file_level_metadata_service_2fvision_2fv1_2fvision_2eproto, file_level_enum_descriptors_service_2fvision_2fv1_2fvision_2eproto, file_level_service_descriptors_service_2fvision_2fv1_2fvision_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_service_2fvision_2fv1_2fvision_2eproto_getter() { return &descriptor_table_service_2fvision_2fv1_2fvision_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_service_2fvision_2fv1_2fvision_2eproto(&descriptor_table_service_2fvision_2fv1_2fvision_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_service_2fvision_2fv1_2fvision_2eproto(&descriptor_table_service_2fvision_2fv1_2fvision_2eproto); namespace viam { namespace service { namespace vision { namespace v1 { + // =================================================================== class GetDetectionsRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetDetectionsRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const GetDetectionsRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetDetectionsRequest* msg); }; -const ::google::protobuf::Struct& GetDetectionsRequest::_Internal::extra(const GetDetectionsRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetDetectionsRequest::_Internal::extra(const GetDetectionsRequest* msg) { + return *msg->extra_; } void GetDetectionsRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -GetDetectionsRequest::GetDetectionsRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetDetectionsRequest::GetDetectionsRequest(::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.vision.v1.GetDetectionsRequest) } -inline PROTOBUF_NDEBUG_INLINE GetDetectionsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_), - image_(arena, from.image_), - mime_type_(arena, from.mime_type_) {} - -GetDetectionsRequest::GetDetectionsRequest( - ::google::protobuf::Arena* arena, - const GetDetectionsRequest& from) - : ::google::protobuf::Message(arena) { - GetDetectionsRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, width_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, width_), - offsetof(Impl_, height_) - - offsetof(Impl_, width_) + - sizeof(Impl_::height_)); - +GetDetectionsRequest::GetDetectionsRequest(const GetDetectionsRequest& 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()); + } + image_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + image_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_image().empty()) { + image_.Set(from._internal_image(), + GetArenaForAllocation()); + } + mime_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + mime_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_mime_type().empty()) { + mime_type_.Set(from._internal_mime_type(), + GetArenaForAllocation()); + } + if (from._internal_has_extra()) { + extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.extra_); + } else { + extra_ = nullptr; + } + ::memcpy(&width_, &from.width_, + static_cast(reinterpret_cast(&height_) - + reinterpret_cast(&width_)) + sizeof(height_)); // @@protoc_insertion_point(copy_constructor:viam.service.vision.v1.GetDetectionsRequest) } -inline PROTOBUF_NDEBUG_INLINE GetDetectionsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena), - image_(arena), - mime_type_(arena) {} - -inline void GetDetectionsRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, extra_), - 0, - offsetof(Impl_, height_) - - offsetof(Impl_, extra_) + - sizeof(Impl_::height_)); + +inline void GetDetectionsRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +image_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + image_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +mime_type_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + mime_type_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&extra_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&height_) - + reinterpret_cast(&extra_)) + sizeof(height_)); } + GetDetectionsRequest::~GetDetectionsRequest() { // @@protoc_insertion_point(destructor:viam.service.vision.v1.GetDetectionsRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetDetectionsRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.image_.Destroy(); - _impl_.mime_type_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + image_.Destroy(); + mime_type_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void GetDetectionsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetDetectionsRequest::Clear() { +void GetDetectionsRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.vision.v1.GetDetectionsRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _impl_.image_.ClearToEmpty(); - _impl_.mime_type_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - ::memset(&_impl_.width_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.height_) - - reinterpret_cast(&_impl_.width_)) + sizeof(_impl_.height_)); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetDetectionsRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + image_.ClearToEmpty(); + mime_type_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + ::memset(&width_, 0, static_cast( + reinterpret_cast(&height_) - + reinterpret_cast(&width_)) + sizeof(height_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetDetectionsRequest::_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.service.vision.v1.GetDetectionsRequest.name")); + } else + goto handle_unusual; + continue; + // bytes image = 2 [json_name = "image"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_image(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int64 width = 3 [json_name = "width"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + width_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int64 height = 4 [json_name = "height"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + height_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string mime_type = 5 [json_name = "mimeType"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + auto str = _internal_mutable_mime_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.vision.v1.GetDetectionsRequest.mime_type")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 6, 1, 65, 7> GetDetectionsRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetDetectionsRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967264, // skipmap - offsetof(decltype(_table_), field_entries), - 6, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetDetectionsRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetDetectionsRequest, _impl_.name_)}}, - // bytes image = 2 [json_name = "image"]; - {::_pbi::TcParser::FastBS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(GetDetectionsRequest, _impl_.image_)}}, - // int64 width = 3 [json_name = "width"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GetDetectionsRequest, _impl_.width_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(GetDetectionsRequest, _impl_.width_)}}, - // int64 height = 4 [json_name = "height"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GetDetectionsRequest, _impl_.height_), 63>(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(GetDetectionsRequest, _impl_.height_)}}, - // string mime_type = 5 [json_name = "mimeType"]; - {::_pbi::TcParser::FastUS1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(GetDetectionsRequest, _impl_.mime_type_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 99, 0, 1, - 65534, 5, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(GetDetectionsRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // bytes image = 2 [json_name = "image"]; - {PROTOBUF_FIELD_OFFSET(GetDetectionsRequest, _impl_.image_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // int64 width = 3 [json_name = "width"]; - {PROTOBUF_FIELD_OFFSET(GetDetectionsRequest, _impl_.width_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - // int64 height = 4 [json_name = "height"]; - {PROTOBUF_FIELD_OFFSET(GetDetectionsRequest, _impl_.height_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - // string mime_type = 5 [json_name = "mimeType"]; - {PROTOBUF_FIELD_OFFSET(GetDetectionsRequest, _impl_.mime_type_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(GetDetectionsRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\53\4\0\0\0\11\0\0" - "viam.service.vision.v1.GetDetectionsRequest" - "name" - "mime_type" - }}, -}; - -::uint8_t* GetDetectionsRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetDetectionsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.vision.v1.GetDetectionsRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.vision.v1.GetDetectionsRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.vision.v1.GetDetectionsRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // bytes image = 2 [json_name = "image"]; if (!this->_internal_image().empty()) { - const std::string& _s = this->_internal_image(); - target = stream->WriteBytesMaybeAliased(2, _s, target); + target = stream->WriteBytesMaybeAliased( + 2, this->_internal_image(), target); } // int64 width = 3 [json_name = "width"]; if (this->_internal_width() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<3>( - stream, this->_internal_width(), target); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(3, this->_internal_width(), target); } // int64 height = 4 [json_name = "height"]; if (this->_internal_height() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<4>( - stream, this->_internal_height(), target); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(4, this->_internal_height(), target); } // string mime_type = 5 [json_name = "mimeType"]; if (!this->_internal_mime_type().empty()) { - const std::string& _s = this->_internal_mime_type(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.vision.v1.GetDetectionsRequest.mime_type"); - target = stream->WriteStringMaybeAliased(5, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_mime_type().data(), static_cast(this->_internal_mime_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.vision.v1.GetDetectionsRequest.mime_type"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_mime_type(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.vision.v1.GetDetectionsRequest) return target; } -::size_t GetDetectionsRequest::ByteSizeLong() const { +size_t GetDetectionsRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.vision.v1.GetDetectionsRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // bytes image = 2 [json_name = "image"]; if (!this->_internal_image().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_image()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_image()); } // string mime_type = 5 [json_name = "mimeType"]; if (!this->_internal_mime_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_mime_type()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_mime_type()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } // int64 width = 3 [json_name = "width"]; if (this->_internal_width() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( - this->_internal_width()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_width()); } // int64 height = 4 [json_name = "height"]; if (this->_internal_height() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( - this->_internal_height()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_height()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetDetectionsRequest::_class_data_ = { - GetDetectionsRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetDetectionsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetDetectionsRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetDetectionsRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetDetectionsRequest::GetClassData() const { return &_class_data_; } + +void GetDetectionsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetDetectionsRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.GetDetectionsRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetDetectionsRequest::MergeFrom(const GetDetectionsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.GetDetectionsRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (!from._internal_image().empty()) { - _this->_internal_set_image(from._internal_image()); + _internal_set_image(from._internal_image()); } if (!from._internal_mime_type().empty()) { - _this->_internal_set_mime_type(from._internal_mime_type()); + _internal_set_mime_type(from._internal_mime_type()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } if (from._internal_width() != 0) { - _this->_internal_set_width(from._internal_width()); + _internal_set_width(from._internal_width()); } if (from._internal_height() != 0) { - _this->_internal_set_height(from._internal_height()); + _internal_set_height(from._internal_height()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetDetectionsRequest::CopyFrom(const GetDetectionsRequest& from) { @@ -1183,191 +956,194 @@ void GetDetectionsRequest::CopyFrom(const GetDetectionsRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetDetectionsRequest::IsInitialized() const { +bool GetDetectionsRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetDetectionsRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetDetectionsRequest::InternalSwap(GetDetectionsRequest* PROTOBUF_RESTRICT other) { +void GetDetectionsRequest::InternalSwap(GetDetectionsRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.image_, &other->_impl_.image_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.mime_type_, &other->_impl_.mime_type_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(GetDetectionsRequest, _impl_.height_) - + sizeof(GetDetectionsRequest::_impl_.height_) - - PROTOBUF_FIELD_OFFSET(GetDetectionsRequest, _impl_.extra_)>( - reinterpret_cast(&_impl_.extra_), - reinterpret_cast(&other->_impl_.extra_)); -} - -::google::protobuf::Metadata GetDetectionsRequest::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &image_, lhs_arena, + &other->image_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &mime_type_, lhs_arena, + &other->mime_type_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GetDetectionsRequest, height_) + + sizeof(GetDetectionsRequest::height_) + - PROTOBUF_FIELD_OFFSET(GetDetectionsRequest, extra_)>( + reinterpret_cast(&extra_), + reinterpret_cast(&other->extra_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetDetectionsRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_getter, &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_once, file_level_metadata_service_2fvision_2fv1_2fvision_2eproto[0]); } + // =================================================================== class GetDetectionsResponse::_Internal { public: }; -GetDetectionsResponse::GetDetectionsResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetDetectionsResponse::GetDetectionsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + detections_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.service.vision.v1.GetDetectionsResponse) } -inline PROTOBUF_NDEBUG_INLINE GetDetectionsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : detections_{visibility, arena, from.detections_}, - _cached_size_{0} {} - -GetDetectionsResponse::GetDetectionsResponse( - ::google::protobuf::Arena* arena, - const GetDetectionsResponse& from) - : ::google::protobuf::Message(arena) { - GetDetectionsResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetDetectionsResponse::GetDetectionsResponse(const GetDetectionsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + detections_(from.detections_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.service.vision.v1.GetDetectionsResponse) } -inline PROTOBUF_NDEBUG_INLINE GetDetectionsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : detections_{visibility, arena}, - _cached_size_{0} {} -inline void GetDetectionsResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetDetectionsResponse::SharedCtor() { } + GetDetectionsResponse::~GetDetectionsResponse() { // @@protoc_insertion_point(destructor:viam.service.vision.v1.GetDetectionsResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetDetectionsResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void GetDetectionsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetDetectionsResponse::Clear() { +void GetDetectionsResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.vision.v1.GetDetectionsResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.detections_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetDetectionsResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + detections_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetDetectionsResponse::_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) { + // repeated .viam.service.vision.v1.Detection detections = 1 [json_name = "detections"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_detections(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetDetectionsResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetDetectionsResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.service.vision.v1.Detection detections = 1 [json_name = "detections"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetDetectionsResponse, _impl_.detections_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.service.vision.v1.Detection detections = 1 [json_name = "detections"]; - {PROTOBUF_FIELD_OFFSET(GetDetectionsResponse, _impl_.detections_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::service::vision::v1::Detection>()}, - }}, {{ - }}, -}; - -::uint8_t* GetDetectionsResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetDetectionsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.vision.v1.GetDetectionsResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .viam.service.vision.v1.Detection detections = 1 [json_name = "detections"]; for (unsigned i = 0, n = static_cast(this->_internal_detections_size()); i < n; i++) { - const auto& repfield = this->_internal_detections().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_detections(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.vision.v1.GetDetectionsResponse) return target; } -::size_t GetDetectionsResponse::ByteSizeLong() const { +size_t GetDetectionsResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.vision.v1.GetDetectionsResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.service.vision.v1.Detection detections = 1 [json_name = "detections"]; total_size += 1UL * this->_internal_detections_size(); - for (const auto& msg : this->_internal_detections()) { + for (const auto& msg : this->detections_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetDetectionsResponse::_class_data_ = { - GetDetectionsResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetDetectionsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetDetectionsResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetDetectionsResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetDetectionsResponse::GetClassData() const { return &_class_data_; } + +void GetDetectionsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetDetectionsResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.GetDetectionsResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetDetectionsResponse::MergeFrom(const GetDetectionsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.GetDetectionsResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_detections()->MergeFrom( - from._internal_detections()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + detections_.MergeFrom(from.detections_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetDetectionsResponse::CopyFrom(const GetDetectionsResponse& from) { @@ -1377,269 +1153,278 @@ void GetDetectionsResponse::CopyFrom(const GetDetectionsResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetDetectionsResponse::IsInitialized() const { +bool GetDetectionsResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetDetectionsResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetDetectionsResponse::InternalSwap(GetDetectionsResponse* PROTOBUF_RESTRICT other) { +void GetDetectionsResponse::InternalSwap(GetDetectionsResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.detections_.InternalSwap(&other->_impl_.detections_); + detections_.InternalSwap(&other->detections_); } -::google::protobuf::Metadata GetDetectionsResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetDetectionsResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_getter, &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_once, file_level_metadata_service_2fvision_2fv1_2fvision_2eproto[1]); } + // =================================================================== class GetDetectionsFromCameraRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetDetectionsFromCameraRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const GetDetectionsFromCameraRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetDetectionsFromCameraRequest* msg); }; -const ::google::protobuf::Struct& GetDetectionsFromCameraRequest::_Internal::extra(const GetDetectionsFromCameraRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetDetectionsFromCameraRequest::_Internal::extra(const GetDetectionsFromCameraRequest* msg) { + return *msg->extra_; } void GetDetectionsFromCameraRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -GetDetectionsFromCameraRequest::GetDetectionsFromCameraRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetDetectionsFromCameraRequest::GetDetectionsFromCameraRequest(::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.vision.v1.GetDetectionsFromCameraRequest) } -inline PROTOBUF_NDEBUG_INLINE GetDetectionsFromCameraRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_), - camera_name_(arena, from.camera_name_) {} - -GetDetectionsFromCameraRequest::GetDetectionsFromCameraRequest( - ::google::protobuf::Arena* arena, - const GetDetectionsFromCameraRequest& from) - : ::google::protobuf::Message(arena) { - GetDetectionsFromCameraRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +GetDetectionsFromCameraRequest::GetDetectionsFromCameraRequest(const GetDetectionsFromCameraRequest& 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()); + } + camera_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + camera_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_camera_name().empty()) { + camera_name_.Set(from._internal_camera_name(), + GetArenaForAllocation()); + } + if (from._internal_has_extra()) { + extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.extra_); + } else { + extra_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.service.vision.v1.GetDetectionsFromCameraRequest) } -inline PROTOBUF_NDEBUG_INLINE GetDetectionsFromCameraRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena), - camera_name_(arena) {} -inline void GetDetectionsFromCameraRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void GetDetectionsFromCameraRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +camera_name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + camera_name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + GetDetectionsFromCameraRequest::~GetDetectionsFromCameraRequest() { // @@protoc_insertion_point(destructor:viam.service.vision.v1.GetDetectionsFromCameraRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetDetectionsFromCameraRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.camera_name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + camera_name_.Destroy(); + if (this != internal_default_instance()) delete extra_; } -PROTOBUF_NOINLINE void GetDetectionsFromCameraRequest::Clear() { +void GetDetectionsFromCameraRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetDetectionsFromCameraRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.vision.v1.GetDetectionsFromCameraRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _impl_.camera_name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetDetectionsFromCameraRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + camera_name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetDetectionsFromCameraRequest::_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.service.vision.v1.GetDetectionsFromCameraRequest.name")); + } else + goto handle_unusual; + continue; + // string camera_name = 2 [json_name = "cameraName"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_camera_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.vision.v1.GetDetectionsFromCameraRequest.camera_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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 1, 77, 7> GetDetectionsFromCameraRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetDetectionsFromCameraRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetDetectionsFromCameraRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetDetectionsFromCameraRequest, _impl_.name_)}}, - // string camera_name = 2 [json_name = "cameraName"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(GetDetectionsFromCameraRequest, _impl_.camera_name_)}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(GetDetectionsFromCameraRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 2, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(GetDetectionsFromCameraRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string camera_name = 2 [json_name = "cameraName"]; - {PROTOBUF_FIELD_OFFSET(GetDetectionsFromCameraRequest, _impl_.camera_name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(GetDetectionsFromCameraRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\65\4\13\0\0\0\0\0" - "viam.service.vision.v1.GetDetectionsFromCameraRequest" - "name" - "camera_name" - }}, -}; - -::uint8_t* GetDetectionsFromCameraRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetDetectionsFromCameraRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.vision.v1.GetDetectionsFromCameraRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.vision.v1.GetDetectionsFromCameraRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.vision.v1.GetDetectionsFromCameraRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // string camera_name = 2 [json_name = "cameraName"]; if (!this->_internal_camera_name().empty()) { - const std::string& _s = this->_internal_camera_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.vision.v1.GetDetectionsFromCameraRequest.camera_name"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_camera_name().data(), static_cast(this->_internal_camera_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.vision.v1.GetDetectionsFromCameraRequest.camera_name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_camera_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.vision.v1.GetDetectionsFromCameraRequest) return target; } -::size_t GetDetectionsFromCameraRequest::ByteSizeLong() const { +size_t GetDetectionsFromCameraRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.vision.v1.GetDetectionsFromCameraRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // string camera_name = 2 [json_name = "cameraName"]; if (!this->_internal_camera_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_camera_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_camera_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetDetectionsFromCameraRequest::_class_data_ = { - GetDetectionsFromCameraRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetDetectionsFromCameraRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetDetectionsFromCameraRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetDetectionsFromCameraRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetDetectionsFromCameraRequest::GetClassData() const { return &_class_data_; } + +void GetDetectionsFromCameraRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetDetectionsFromCameraRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.GetDetectionsFromCameraRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetDetectionsFromCameraRequest::MergeFrom(const GetDetectionsFromCameraRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.GetDetectionsFromCameraRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (!from._internal_camera_name().empty()) { - _this->_internal_set_camera_name(from._internal_camera_name()); + _internal_set_camera_name(from._internal_camera_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetDetectionsFromCameraRequest::CopyFrom(const GetDetectionsFromCameraRequest& from) { @@ -1649,185 +1434,185 @@ void GetDetectionsFromCameraRequest::CopyFrom(const GetDetectionsFromCameraReque MergeFrom(from); } -PROTOBUF_NOINLINE bool GetDetectionsFromCameraRequest::IsInitialized() const { +bool GetDetectionsFromCameraRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetDetectionsFromCameraRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetDetectionsFromCameraRequest::InternalSwap(GetDetectionsFromCameraRequest* PROTOBUF_RESTRICT other) { +void GetDetectionsFromCameraRequest::InternalSwap(GetDetectionsFromCameraRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.camera_name_, &other->_impl_.camera_name_, arena); - swap(_impl_.extra_, other->_impl_.extra_); -} - -::google::protobuf::Metadata GetDetectionsFromCameraRequest::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &camera_name_, lhs_arena, + &other->camera_name_, rhs_arena + ); + swap(extra_, other->extra_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetDetectionsFromCameraRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_getter, &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_once, file_level_metadata_service_2fvision_2fv1_2fvision_2eproto[2]); } + // =================================================================== class GetDetectionsFromCameraResponse::_Internal { public: }; -GetDetectionsFromCameraResponse::GetDetectionsFromCameraResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetDetectionsFromCameraResponse::GetDetectionsFromCameraResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + detections_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.service.vision.v1.GetDetectionsFromCameraResponse) } -inline PROTOBUF_NDEBUG_INLINE GetDetectionsFromCameraResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : detections_{visibility, arena, from.detections_}, - _cached_size_{0} {} - -GetDetectionsFromCameraResponse::GetDetectionsFromCameraResponse( - ::google::protobuf::Arena* arena, - const GetDetectionsFromCameraResponse& from) - : ::google::protobuf::Message(arena) { - GetDetectionsFromCameraResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetDetectionsFromCameraResponse::GetDetectionsFromCameraResponse(const GetDetectionsFromCameraResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + detections_(from.detections_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.service.vision.v1.GetDetectionsFromCameraResponse) } -inline PROTOBUF_NDEBUG_INLINE GetDetectionsFromCameraResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : detections_{visibility, arena}, - _cached_size_{0} {} -inline void GetDetectionsFromCameraResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetDetectionsFromCameraResponse::SharedCtor() { } + GetDetectionsFromCameraResponse::~GetDetectionsFromCameraResponse() { // @@protoc_insertion_point(destructor:viam.service.vision.v1.GetDetectionsFromCameraResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetDetectionsFromCameraResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void GetDetectionsFromCameraResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetDetectionsFromCameraResponse::Clear() { +void GetDetectionsFromCameraResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.vision.v1.GetDetectionsFromCameraResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.detections_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetDetectionsFromCameraResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + detections_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetDetectionsFromCameraResponse::_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) { + // repeated .viam.service.vision.v1.Detection detections = 1 [json_name = "detections"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_detections(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetDetectionsFromCameraResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetDetectionsFromCameraResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.service.vision.v1.Detection detections = 1 [json_name = "detections"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetDetectionsFromCameraResponse, _impl_.detections_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.service.vision.v1.Detection detections = 1 [json_name = "detections"]; - {PROTOBUF_FIELD_OFFSET(GetDetectionsFromCameraResponse, _impl_.detections_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::service::vision::v1::Detection>()}, - }}, {{ - }}, -}; - -::uint8_t* GetDetectionsFromCameraResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetDetectionsFromCameraResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.vision.v1.GetDetectionsFromCameraResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .viam.service.vision.v1.Detection detections = 1 [json_name = "detections"]; for (unsigned i = 0, n = static_cast(this->_internal_detections_size()); i < n; i++) { - const auto& repfield = this->_internal_detections().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_detections(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.vision.v1.GetDetectionsFromCameraResponse) return target; } -::size_t GetDetectionsFromCameraResponse::ByteSizeLong() const { +size_t GetDetectionsFromCameraResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.vision.v1.GetDetectionsFromCameraResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.service.vision.v1.Detection detections = 1 [json_name = "detections"]; total_size += 1UL * this->_internal_detections_size(); - for (const auto& msg : this->_internal_detections()) { + for (const auto& msg : this->detections_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetDetectionsFromCameraResponse::_class_data_ = { - GetDetectionsFromCameraResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetDetectionsFromCameraResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetDetectionsFromCameraResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetDetectionsFromCameraResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetDetectionsFromCameraResponse::GetClassData() const { return &_class_data_; } + +void GetDetectionsFromCameraResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetDetectionsFromCameraResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.GetDetectionsFromCameraResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetDetectionsFromCameraResponse::MergeFrom(const GetDetectionsFromCameraResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.GetDetectionsFromCameraResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_detections()->MergeFrom( - from._internal_detections()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + detections_.MergeFrom(from.detections_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetDetectionsFromCameraResponse::CopyFrom(const GetDetectionsFromCameraResponse& from) { @@ -1837,31 +1622,27 @@ void GetDetectionsFromCameraResponse::CopyFrom(const GetDetectionsFromCameraResp MergeFrom(from); } -PROTOBUF_NOINLINE bool GetDetectionsFromCameraResponse::IsInitialized() const { +bool GetDetectionsFromCameraResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetDetectionsFromCameraResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetDetectionsFromCameraResponse::InternalSwap(GetDetectionsFromCameraResponse* PROTOBUF_RESTRICT other) { +void GetDetectionsFromCameraResponse::InternalSwap(GetDetectionsFromCameraResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.detections_.InternalSwap(&other->_impl_.detections_); + detections_.InternalSwap(&other->detections_); } -::google::protobuf::Metadata GetDetectionsFromCameraResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetDetectionsFromCameraResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_getter, &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_once, file_level_metadata_service_2fvision_2fv1_2fvision_2eproto[3]); } + // =================================================================== class Detection::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Detection, _impl_._has_bits_); + using HasBits = decltype(std::declval()._has_bits_); static void set_has_x_min(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -1876,317 +1657,316 @@ class Detection::_Internal { } }; -Detection::Detection(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Detection::Detection(::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.vision.v1.Detection) } -inline PROTOBUF_NDEBUG_INLINE Detection::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - class_name_(arena, from.class_name_) {} - -Detection::Detection( - ::google::protobuf::Arena* arena, - const Detection& from) - : ::google::protobuf::Message(arena) { - Detection* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, x_min_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, x_min_), - offsetof(Impl_, confidence_) - - offsetof(Impl_, x_min_) + - sizeof(Impl_::confidence_)); - +Detection::Detection(const Detection& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + class_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + class_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_class_name().empty()) { + class_name_.Set(from._internal_class_name(), + GetArenaForAllocation()); + } + ::memcpy(&x_min_, &from.x_min_, + static_cast(reinterpret_cast(&confidence_) - + reinterpret_cast(&x_min_)) + sizeof(confidence_)); // @@protoc_insertion_point(copy_constructor:viam.service.vision.v1.Detection) } -inline PROTOBUF_NDEBUG_INLINE Detection::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - class_name_(arena) {} - -inline void Detection::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, x_min_), - 0, - offsetof(Impl_, confidence_) - - offsetof(Impl_, x_min_) + - sizeof(Impl_::confidence_)); + +inline void Detection::SharedCtor() { +class_name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + class_name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&x_min_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&confidence_) - + reinterpret_cast(&x_min_)) + sizeof(confidence_)); } + Detection::~Detection() { // @@protoc_insertion_point(destructor:viam.service.vision.v1.Detection) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Detection::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.class_name_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + class_name_.Destroy(); +} + +void Detection::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void Detection::Clear() { +void Detection::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.vision.v1.Detection) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.class_name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; + class_name_.ClearToEmpty(); + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x0000000fu) { - ::memset(&_impl_.x_min_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.y_max_) - - reinterpret_cast(&_impl_.x_min_)) + sizeof(_impl_.y_max_)); - } - _impl_.confidence_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Detection::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + ::memset(&x_min_, 0, static_cast( + reinterpret_cast(&y_max_) - + reinterpret_cast(&x_min_)) + sizeof(y_max_)); + } + confidence_ = 0; + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Detection::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // optional int64 x_min = 1 [json_name = "xMin"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _Internal::set_has_x_min(&has_bits); + x_min_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional int64 y_min = 2 [json_name = "yMin"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _Internal::set_has_y_min(&has_bits); + y_min_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional int64 x_max = 3 [json_name = "xMax"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + _Internal::set_has_x_max(&has_bits); + x_max_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional int64 y_max = 4 [json_name = "yMax"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + _Internal::set_has_y_max(&has_bits); + y_max_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // double confidence = 5 [json_name = "confidence"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 41)) { + confidence_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // string class_name = 6 [json_name = "className"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + auto str = _internal_mutable_class_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.vision.v1.Detection.class_name")); + } 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: + _has_bits_.Or(has_bits); return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 6, 0, 51, 2> Detection::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Detection, _impl_._has_bits_), - 0, // no _extensions_ - 6, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967232, // skipmap - offsetof(decltype(_table_), field_entries), - 6, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_Detection_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // optional int64 x_min = 1 [json_name = "xMin"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(Detection, _impl_.x_min_), 0>(), - {8, 0, 0, PROTOBUF_FIELD_OFFSET(Detection, _impl_.x_min_)}}, - // optional int64 y_min = 2 [json_name = "yMin"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(Detection, _impl_.y_min_), 1>(), - {16, 1, 0, PROTOBUF_FIELD_OFFSET(Detection, _impl_.y_min_)}}, - // optional int64 x_max = 3 [json_name = "xMax"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(Detection, _impl_.x_max_), 2>(), - {24, 2, 0, PROTOBUF_FIELD_OFFSET(Detection, _impl_.x_max_)}}, - // optional int64 y_max = 4 [json_name = "yMax"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(Detection, _impl_.y_max_), 3>(), - {32, 3, 0, PROTOBUF_FIELD_OFFSET(Detection, _impl_.y_max_)}}, - // double confidence = 5 [json_name = "confidence"]; - {::_pbi::TcParser::FastF64S1, - {41, 63, 0, PROTOBUF_FIELD_OFFSET(Detection, _impl_.confidence_)}}, - // string class_name = 6 [json_name = "className"]; - {::_pbi::TcParser::FastUS1, - {50, 63, 0, PROTOBUF_FIELD_OFFSET(Detection, _impl_.class_name_)}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // optional int64 x_min = 1 [json_name = "xMin"]; - {PROTOBUF_FIELD_OFFSET(Detection, _impl_.x_min_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, - // optional int64 y_min = 2 [json_name = "yMin"]; - {PROTOBUF_FIELD_OFFSET(Detection, _impl_.y_min_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, - // optional int64 x_max = 3 [json_name = "xMax"]; - {PROTOBUF_FIELD_OFFSET(Detection, _impl_.x_max_), _Internal::kHasBitsOffset + 2, 0, - (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, - // optional int64 y_max = 4 [json_name = "yMax"]; - {PROTOBUF_FIELD_OFFSET(Detection, _impl_.y_max_), _Internal::kHasBitsOffset + 3, 0, - (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, - // double confidence = 5 [json_name = "confidence"]; - {PROTOBUF_FIELD_OFFSET(Detection, _impl_.confidence_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // string class_name = 6 [json_name = "className"]; - {PROTOBUF_FIELD_OFFSET(Detection, _impl_.class_name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\40\0\0\0\0\0\12\0" - "viam.service.vision.v1.Detection" - "class_name" - }}, -}; - -::uint8_t* Detection::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Detection::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.vision.v1.Detection) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // optional int64 x_min = 1 [json_name = "xMin"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<1>( - stream, this->_internal_x_min(), target); + if (_internal_has_x_min()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_x_min(), target); } // optional int64 y_min = 2 [json_name = "yMin"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<2>( - stream, this->_internal_y_min(), target); + if (_internal_has_y_min()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_y_min(), target); } // optional int64 x_max = 3 [json_name = "xMax"]; - if (cached_has_bits & 0x00000004u) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<3>( - stream, this->_internal_x_max(), target); + if (_internal_has_x_max()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(3, this->_internal_x_max(), target); } // optional int64 y_max = 4 [json_name = "yMax"]; - if (cached_has_bits & 0x00000008u) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<4>( - stream, this->_internal_y_max(), target); + if (_internal_has_y_max()) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(4, this->_internal_y_max(), target); } // double confidence = 5 [json_name = "confidence"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_confidence = this->_internal_confidence(); - ::uint64_t raw_confidence; + uint64_t raw_confidence; memcpy(&raw_confidence, &tmp_confidence, sizeof(tmp_confidence)); if (raw_confidence != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 5, this->_internal_confidence(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(5, this->_internal_confidence(), target); } // string class_name = 6 [json_name = "className"]; if (!this->_internal_class_name().empty()) { - const std::string& _s = this->_internal_class_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.vision.v1.Detection.class_name"); - target = stream->WriteStringMaybeAliased(6, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_class_name().data(), static_cast(this->_internal_class_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.vision.v1.Detection.class_name"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_class_name(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.vision.v1.Detection) return target; } -::size_t Detection::ByteSizeLong() const { +size_t Detection::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.vision.v1.Detection) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string class_name = 6 [json_name = "className"]; if (!this->_internal_class_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_class_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_class_name()); } - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x0000000fu) { // optional int64 x_min = 1 [json_name = "xMin"]; if (cached_has_bits & 0x00000001u) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( - this->_internal_x_min()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_x_min()); } // optional int64 y_min = 2 [json_name = "yMin"]; if (cached_has_bits & 0x00000002u) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( - this->_internal_y_min()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_y_min()); } // optional int64 x_max = 3 [json_name = "xMax"]; if (cached_has_bits & 0x00000004u) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( - this->_internal_x_max()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_x_max()); } // optional int64 y_max = 4 [json_name = "yMax"]; if (cached_has_bits & 0x00000008u) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( - this->_internal_y_max()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_y_max()); } } // double confidence = 5 [json_name = "confidence"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_confidence = this->_internal_confidence(); - ::uint64_t raw_confidence; + uint64_t raw_confidence; memcpy(&raw_confidence, &tmp_confidence, sizeof(tmp_confidence)); if (raw_confidence != 0) { - total_size += 9; + total_size += 1 + 8; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Detection::_class_data_ = { - Detection::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Detection::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Detection::MergeImpl }; -const ::google::protobuf::Message::ClassData* Detection::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Detection::GetClassData() const { return &_class_data_; } + +void Detection::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Detection::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.Detection) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Detection::MergeFrom(const Detection& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.Detection) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_class_name().empty()) { - _this->_internal_set_class_name(from._internal_class_name()); + _internal_set_class_name(from._internal_class_name()); } - cached_has_bits = from._impl_._has_bits_[0]; + cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x0000000fu) { if (cached_has_bits & 0x00000001u) { - _this->_impl_.x_min_ = from._impl_.x_min_; + x_min_ = from.x_min_; } if (cached_has_bits & 0x00000002u) { - _this->_impl_.y_min_ = from._impl_.y_min_; + y_min_ = from.y_min_; } if (cached_has_bits & 0x00000004u) { - _this->_impl_.x_max_ = from._impl_.x_max_; + x_max_ = from.x_max_; } if (cached_has_bits & 0x00000008u) { - _this->_impl_.y_max_ = from._impl_.y_max_; + y_max_ = from.y_max_; } - _this->_impl_._has_bits_[0] |= cached_has_bits; + _has_bits_[0] |= cached_has_bits; } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_confidence = from._internal_confidence(); - ::uint64_t raw_confidence; + uint64_t raw_confidence; memcpy(&raw_confidence, &tmp_confidence, sizeof(tmp_confidence)); if (raw_confidence != 0) { - _this->_internal_set_confidence(from._internal_confidence()); + _internal_set_confidence(from._internal_confidence()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Detection::CopyFrom(const Detection& from) { @@ -2196,382 +1976,404 @@ void Detection::CopyFrom(const Detection& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Detection::IsInitialized() const { +bool Detection::IsInitialized() const { return true; } -::_pbi::CachedSize* Detection::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Detection::InternalSwap(Detection* PROTOBUF_RESTRICT other) { +void Detection::InternalSwap(Detection* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.class_name_, &other->_impl_.class_name_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(Detection, _impl_.confidence_) - + sizeof(Detection::_impl_.confidence_) - - PROTOBUF_FIELD_OFFSET(Detection, _impl_.x_min_)>( - reinterpret_cast(&_impl_.x_min_), - reinterpret_cast(&other->_impl_.x_min_)); -} - -::google::protobuf::Metadata Detection::GetMetadata() const { + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &class_name_, lhs_arena, + &other->class_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Detection, confidence_) + + sizeof(Detection::confidence_) + - PROTOBUF_FIELD_OFFSET(Detection, x_min_)>( + reinterpret_cast(&x_min_), + reinterpret_cast(&other->x_min_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Detection::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_getter, &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_once, file_level_metadata_service_2fvision_2fv1_2fvision_2eproto[4]); } + // =================================================================== class GetClassificationsRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetClassificationsRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const GetClassificationsRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetClassificationsRequest* msg); }; -const ::google::protobuf::Struct& GetClassificationsRequest::_Internal::extra(const GetClassificationsRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetClassificationsRequest::_Internal::extra(const GetClassificationsRequest* msg) { + return *msg->extra_; } void GetClassificationsRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -GetClassificationsRequest::GetClassificationsRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetClassificationsRequest::GetClassificationsRequest(::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.vision.v1.GetClassificationsRequest) } -inline PROTOBUF_NDEBUG_INLINE GetClassificationsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_), - image_(arena, from.image_), - mime_type_(arena, from.mime_type_) {} - -GetClassificationsRequest::GetClassificationsRequest( - ::google::protobuf::Arena* arena, - const GetClassificationsRequest& from) - : ::google::protobuf::Message(arena) { - GetClassificationsRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, width_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, width_), - offsetof(Impl_, n_) - - offsetof(Impl_, width_) + - sizeof(Impl_::n_)); - +GetClassificationsRequest::GetClassificationsRequest(const GetClassificationsRequest& 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()); + } + image_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + image_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_image().empty()) { + image_.Set(from._internal_image(), + GetArenaForAllocation()); + } + mime_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + mime_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_mime_type().empty()) { + mime_type_.Set(from._internal_mime_type(), + GetArenaForAllocation()); + } + if (from._internal_has_extra()) { + extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.extra_); + } else { + extra_ = nullptr; + } + ::memcpy(&width_, &from.width_, + static_cast(reinterpret_cast(&n_) - + reinterpret_cast(&width_)) + sizeof(n_)); // @@protoc_insertion_point(copy_constructor:viam.service.vision.v1.GetClassificationsRequest) } -inline PROTOBUF_NDEBUG_INLINE GetClassificationsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena), - image_(arena), - mime_type_(arena) {} - -inline void GetClassificationsRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, extra_), - 0, - offsetof(Impl_, n_) - - offsetof(Impl_, extra_) + - sizeof(Impl_::n_)); + +inline void GetClassificationsRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +image_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + image_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +mime_type_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + mime_type_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&extra_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&n_) - + reinterpret_cast(&extra_)) + sizeof(n_)); } + GetClassificationsRequest::~GetClassificationsRequest() { // @@protoc_insertion_point(destructor:viam.service.vision.v1.GetClassificationsRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetClassificationsRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.image_.Destroy(); - _impl_.mime_type_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + image_.Destroy(); + mime_type_.Destroy(); + if (this != internal_default_instance()) delete extra_; } -PROTOBUF_NOINLINE void GetClassificationsRequest::Clear() { +void GetClassificationsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetClassificationsRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.vision.v1.GetClassificationsRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _impl_.image_.ClearToEmpty(); - _impl_.mime_type_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - ::memset(&_impl_.width_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.n_) - - reinterpret_cast(&_impl_.width_)) + sizeof(_impl_.n_)); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetClassificationsRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + image_.ClearToEmpty(); + mime_type_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + ::memset(&width_, 0, static_cast( + reinterpret_cast(&n_) - + reinterpret_cast(&width_)) + sizeof(n_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetClassificationsRequest::_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.service.vision.v1.GetClassificationsRequest.name")); + } else + goto handle_unusual; + continue; + // bytes image = 2 [json_name = "image"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_image(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int32 width = 3 [json_name = "width"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + width_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int32 height = 4 [json_name = "height"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + height_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string mime_type = 5 [json_name = "mimeType"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + auto str = _internal_mutable_mime_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.vision.v1.GetClassificationsRequest.mime_type")); + } else + goto handle_unusual; + continue; + // int32 n = 6 [json_name = "n"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { + n_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 7, 1, 70, 7> GetClassificationsRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetClassificationsRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967232, // skipmap - offsetof(decltype(_table_), field_entries), - 7, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetClassificationsRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetClassificationsRequest, _impl_.name_)}}, - // bytes image = 2 [json_name = "image"]; - {::_pbi::TcParser::FastBS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(GetClassificationsRequest, _impl_.image_)}}, - // int32 width = 3 [json_name = "width"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(GetClassificationsRequest, _impl_.width_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(GetClassificationsRequest, _impl_.width_)}}, - // int32 height = 4 [json_name = "height"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(GetClassificationsRequest, _impl_.height_), 63>(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(GetClassificationsRequest, _impl_.height_)}}, - // string mime_type = 5 [json_name = "mimeType"]; - {::_pbi::TcParser::FastUS1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(GetClassificationsRequest, _impl_.mime_type_)}}, - // int32 n = 6 [json_name = "n"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(GetClassificationsRequest, _impl_.n_), 63>(), - {48, 63, 0, PROTOBUF_FIELD_OFFSET(GetClassificationsRequest, _impl_.n_)}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 99, 0, 1, - 65534, 6, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(GetClassificationsRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // bytes image = 2 [json_name = "image"]; - {PROTOBUF_FIELD_OFFSET(GetClassificationsRequest, _impl_.image_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // int32 width = 3 [json_name = "width"]; - {PROTOBUF_FIELD_OFFSET(GetClassificationsRequest, _impl_.width_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // int32 height = 4 [json_name = "height"]; - {PROTOBUF_FIELD_OFFSET(GetClassificationsRequest, _impl_.height_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // string mime_type = 5 [json_name = "mimeType"]; - {PROTOBUF_FIELD_OFFSET(GetClassificationsRequest, _impl_.mime_type_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // int32 n = 6 [json_name = "n"]; - {PROTOBUF_FIELD_OFFSET(GetClassificationsRequest, _impl_.n_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(GetClassificationsRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\60\4\0\0\0\11\0\0" - "viam.service.vision.v1.GetClassificationsRequest" - "name" - "mime_type" - }}, -}; - -::uint8_t* GetClassificationsRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetClassificationsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.vision.v1.GetClassificationsRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.vision.v1.GetClassificationsRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.vision.v1.GetClassificationsRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // bytes image = 2 [json_name = "image"]; if (!this->_internal_image().empty()) { - const std::string& _s = this->_internal_image(); - target = stream->WriteBytesMaybeAliased(2, _s, target); + target = stream->WriteBytesMaybeAliased( + 2, this->_internal_image(), target); } // int32 width = 3 [json_name = "width"]; if (this->_internal_width() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<3>( - stream, this->_internal_width(), target); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_width(), target); } // int32 height = 4 [json_name = "height"]; if (this->_internal_height() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<4>( - stream, this->_internal_height(), target); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(4, this->_internal_height(), target); } // string mime_type = 5 [json_name = "mimeType"]; if (!this->_internal_mime_type().empty()) { - const std::string& _s = this->_internal_mime_type(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.vision.v1.GetClassificationsRequest.mime_type"); - target = stream->WriteStringMaybeAliased(5, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_mime_type().data(), static_cast(this->_internal_mime_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.vision.v1.GetClassificationsRequest.mime_type"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_mime_type(), target); } // int32 n = 6 [json_name = "n"]; if (this->_internal_n() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<6>( - stream, this->_internal_n(), target); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(6, this->_internal_n(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.vision.v1.GetClassificationsRequest) return target; } -::size_t GetClassificationsRequest::ByteSizeLong() const { +size_t GetClassificationsRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.vision.v1.GetClassificationsRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // bytes image = 2 [json_name = "image"]; if (!this->_internal_image().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_image()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_image()); } // string mime_type = 5 [json_name = "mimeType"]; if (!this->_internal_mime_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_mime_type()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_mime_type()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } // int32 width = 3 [json_name = "width"]; if (this->_internal_width() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_width()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_width()); } // int32 height = 4 [json_name = "height"]; if (this->_internal_height() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_height()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_height()); } // int32 n = 6 [json_name = "n"]; if (this->_internal_n() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_n()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_n()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetClassificationsRequest::_class_data_ = { - GetClassificationsRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetClassificationsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetClassificationsRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetClassificationsRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassificationsRequest::GetClassData() const { return &_class_data_; } + +void GetClassificationsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetClassificationsRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.GetClassificationsRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetClassificationsRequest::MergeFrom(const GetClassificationsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.GetClassificationsRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (!from._internal_image().empty()) { - _this->_internal_set_image(from._internal_image()); + _internal_set_image(from._internal_image()); } if (!from._internal_mime_type().empty()) { - _this->_internal_set_mime_type(from._internal_mime_type()); + _internal_set_mime_type(from._internal_mime_type()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } if (from._internal_width() != 0) { - _this->_internal_set_width(from._internal_width()); + _internal_set_width(from._internal_width()); } if (from._internal_height() != 0) { - _this->_internal_set_height(from._internal_height()); + _internal_set_height(from._internal_height()); } if (from._internal_n() != 0) { - _this->_internal_set_n(from._internal_n()); + _internal_set_n(from._internal_n()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetClassificationsRequest::CopyFrom(const GetClassificationsRequest& from) { @@ -2581,191 +2383,194 @@ void GetClassificationsRequest::CopyFrom(const GetClassificationsRequest& from) MergeFrom(from); } -PROTOBUF_NOINLINE bool GetClassificationsRequest::IsInitialized() const { +bool GetClassificationsRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetClassificationsRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetClassificationsRequest::InternalSwap(GetClassificationsRequest* PROTOBUF_RESTRICT other) { +void GetClassificationsRequest::InternalSwap(GetClassificationsRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.image_, &other->_impl_.image_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.mime_type_, &other->_impl_.mime_type_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(GetClassificationsRequest, _impl_.n_) - + sizeof(GetClassificationsRequest::_impl_.n_) - - PROTOBUF_FIELD_OFFSET(GetClassificationsRequest, _impl_.extra_)>( - reinterpret_cast(&_impl_.extra_), - reinterpret_cast(&other->_impl_.extra_)); -} - -::google::protobuf::Metadata GetClassificationsRequest::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &image_, lhs_arena, + &other->image_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &mime_type_, lhs_arena, + &other->mime_type_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GetClassificationsRequest, n_) + + sizeof(GetClassificationsRequest::n_) + - PROTOBUF_FIELD_OFFSET(GetClassificationsRequest, extra_)>( + reinterpret_cast(&extra_), + reinterpret_cast(&other->extra_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetClassificationsRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_getter, &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_once, file_level_metadata_service_2fvision_2fv1_2fvision_2eproto[5]); } + // =================================================================== class GetClassificationsResponse::_Internal { public: }; -GetClassificationsResponse::GetClassificationsResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetClassificationsResponse::GetClassificationsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + classifications_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.service.vision.v1.GetClassificationsResponse) } -inline PROTOBUF_NDEBUG_INLINE GetClassificationsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : classifications_{visibility, arena, from.classifications_}, - _cached_size_{0} {} - -GetClassificationsResponse::GetClassificationsResponse( - ::google::protobuf::Arena* arena, - const GetClassificationsResponse& from) - : ::google::protobuf::Message(arena) { - GetClassificationsResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetClassificationsResponse::GetClassificationsResponse(const GetClassificationsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + classifications_(from.classifications_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.service.vision.v1.GetClassificationsResponse) } -inline PROTOBUF_NDEBUG_INLINE GetClassificationsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : classifications_{visibility, arena}, - _cached_size_{0} {} -inline void GetClassificationsResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetClassificationsResponse::SharedCtor() { } + GetClassificationsResponse::~GetClassificationsResponse() { // @@protoc_insertion_point(destructor:viam.service.vision.v1.GetClassificationsResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetClassificationsResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -PROTOBUF_NOINLINE void GetClassificationsResponse::Clear() { +void GetClassificationsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetClassificationsResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.vision.v1.GetClassificationsResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.classifications_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetClassificationsResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + classifications_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetClassificationsResponse::_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) { + // repeated .viam.service.vision.v1.Classification classifications = 1 [json_name = "classifications"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_classifications(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetClassificationsResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetClassificationsResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.service.vision.v1.Classification classifications = 1 [json_name = "classifications"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetClassificationsResponse, _impl_.classifications_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.service.vision.v1.Classification classifications = 1 [json_name = "classifications"]; - {PROTOBUF_FIELD_OFFSET(GetClassificationsResponse, _impl_.classifications_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::service::vision::v1::Classification>()}, - }}, {{ - }}, -}; - -::uint8_t* GetClassificationsResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetClassificationsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.vision.v1.GetClassificationsResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .viam.service.vision.v1.Classification classifications = 1 [json_name = "classifications"]; for (unsigned i = 0, n = static_cast(this->_internal_classifications_size()); i < n; i++) { - const auto& repfield = this->_internal_classifications().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_classifications(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.vision.v1.GetClassificationsResponse) return target; } -::size_t GetClassificationsResponse::ByteSizeLong() const { +size_t GetClassificationsResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.vision.v1.GetClassificationsResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.service.vision.v1.Classification classifications = 1 [json_name = "classifications"]; total_size += 1UL * this->_internal_classifications_size(); - for (const auto& msg : this->_internal_classifications()) { + for (const auto& msg : this->classifications_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetClassificationsResponse::_class_data_ = { - GetClassificationsResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetClassificationsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetClassificationsResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetClassificationsResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassificationsResponse::GetClassData() const { return &_class_data_; } + +void GetClassificationsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetClassificationsResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.GetClassificationsResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetClassificationsResponse::MergeFrom(const GetClassificationsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.GetClassificationsResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_classifications()->MergeFrom( - from._internal_classifications()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + classifications_.MergeFrom(from.classifications_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetClassificationsResponse::CopyFrom(const GetClassificationsResponse& from) { @@ -2775,295 +2580,305 @@ void GetClassificationsResponse::CopyFrom(const GetClassificationsResponse& from MergeFrom(from); } -PROTOBUF_NOINLINE bool GetClassificationsResponse::IsInitialized() const { +bool GetClassificationsResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetClassificationsResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetClassificationsResponse::InternalSwap(GetClassificationsResponse* PROTOBUF_RESTRICT other) { +void GetClassificationsResponse::InternalSwap(GetClassificationsResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.classifications_.InternalSwap(&other->_impl_.classifications_); + classifications_.InternalSwap(&other->classifications_); } -::google::protobuf::Metadata GetClassificationsResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetClassificationsResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_getter, &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_once, file_level_metadata_service_2fvision_2fv1_2fvision_2eproto[6]); } + // =================================================================== class GetClassificationsFromCameraRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetClassificationsFromCameraRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const GetClassificationsFromCameraRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetClassificationsFromCameraRequest* msg); }; -const ::google::protobuf::Struct& GetClassificationsFromCameraRequest::_Internal::extra(const GetClassificationsFromCameraRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetClassificationsFromCameraRequest::_Internal::extra(const GetClassificationsFromCameraRequest* msg) { + return *msg->extra_; } void GetClassificationsFromCameraRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -GetClassificationsFromCameraRequest::GetClassificationsFromCameraRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetClassificationsFromCameraRequest::GetClassificationsFromCameraRequest(::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.vision.v1.GetClassificationsFromCameraRequest) } -inline PROTOBUF_NDEBUG_INLINE GetClassificationsFromCameraRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_), - camera_name_(arena, from.camera_name_) {} - -GetClassificationsFromCameraRequest::GetClassificationsFromCameraRequest( - ::google::protobuf::Arena* arena, - const GetClassificationsFromCameraRequest& from) - : ::google::protobuf::Message(arena) { - GetClassificationsFromCameraRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - _impl_.n_ = from._impl_.n_; - +GetClassificationsFromCameraRequest::GetClassificationsFromCameraRequest(const GetClassificationsFromCameraRequest& 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()); + } + camera_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + camera_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_camera_name().empty()) { + camera_name_.Set(from._internal_camera_name(), + GetArenaForAllocation()); + } + if (from._internal_has_extra()) { + extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.extra_); + } else { + extra_ = nullptr; + } + n_ = from.n_; // @@protoc_insertion_point(copy_constructor:viam.service.vision.v1.GetClassificationsFromCameraRequest) } -inline PROTOBUF_NDEBUG_INLINE GetClassificationsFromCameraRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena), - camera_name_(arena) {} - -inline void GetClassificationsFromCameraRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, extra_), - 0, - offsetof(Impl_, n_) - - offsetof(Impl_, extra_) + - sizeof(Impl_::n_)); + +inline void GetClassificationsFromCameraRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +camera_name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + camera_name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&extra_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&n_) - + reinterpret_cast(&extra_)) + sizeof(n_)); } + GetClassificationsFromCameraRequest::~GetClassificationsFromCameraRequest() { // @@protoc_insertion_point(destructor:viam.service.vision.v1.GetClassificationsFromCameraRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetClassificationsFromCameraRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.camera_name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + camera_name_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void GetClassificationsFromCameraRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetClassificationsFromCameraRequest::Clear() { +void GetClassificationsFromCameraRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.vision.v1.GetClassificationsFromCameraRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _impl_.camera_name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - _impl_.n_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetClassificationsFromCameraRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + camera_name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + n_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetClassificationsFromCameraRequest::_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.service.vision.v1.GetClassificationsFromCameraRequest.name")); + } else + goto handle_unusual; + continue; + // string camera_name = 2 [json_name = "cameraName"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_camera_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.vision.v1.GetClassificationsFromCameraRequest.camera_name")); + } else + goto handle_unusual; + continue; + // int32 n = 3 [json_name = "n"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + n_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 1, 82, 7> GetClassificationsFromCameraRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetClassificationsFromCameraRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetClassificationsFromCameraRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetClassificationsFromCameraRequest, _impl_.name_)}}, - // string camera_name = 2 [json_name = "cameraName"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(GetClassificationsFromCameraRequest, _impl_.camera_name_)}}, - // int32 n = 3 [json_name = "n"]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(GetClassificationsFromCameraRequest, _impl_.n_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(GetClassificationsFromCameraRequest, _impl_.n_)}}, - }}, {{ - 99, 0, 1, - 65534, 3, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(GetClassificationsFromCameraRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string camera_name = 2 [json_name = "cameraName"]; - {PROTOBUF_FIELD_OFFSET(GetClassificationsFromCameraRequest, _impl_.camera_name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // int32 n = 3 [json_name = "n"]; - {PROTOBUF_FIELD_OFFSET(GetClassificationsFromCameraRequest, _impl_.n_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(GetClassificationsFromCameraRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\72\4\13\0\0\0\0\0" - "viam.service.vision.v1.GetClassificationsFromCameraRequest" - "name" - "camera_name" - }}, -}; - -::uint8_t* GetClassificationsFromCameraRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetClassificationsFromCameraRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.vision.v1.GetClassificationsFromCameraRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.vision.v1.GetClassificationsFromCameraRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.vision.v1.GetClassificationsFromCameraRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // string camera_name = 2 [json_name = "cameraName"]; if (!this->_internal_camera_name().empty()) { - const std::string& _s = this->_internal_camera_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.vision.v1.GetClassificationsFromCameraRequest.camera_name"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_camera_name().data(), static_cast(this->_internal_camera_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.vision.v1.GetClassificationsFromCameraRequest.camera_name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_camera_name(), target); } // int32 n = 3 [json_name = "n"]; if (this->_internal_n() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<3>( - stream, this->_internal_n(), target); + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_n(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.vision.v1.GetClassificationsFromCameraRequest) return target; } -::size_t GetClassificationsFromCameraRequest::ByteSizeLong() const { +size_t GetClassificationsFromCameraRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.vision.v1.GetClassificationsFromCameraRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // string camera_name = 2 [json_name = "cameraName"]; if (!this->_internal_camera_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_camera_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_camera_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } // int32 n = 3 [json_name = "n"]; if (this->_internal_n() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_n()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_n()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetClassificationsFromCameraRequest::_class_data_ = { - GetClassificationsFromCameraRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetClassificationsFromCameraRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetClassificationsFromCameraRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetClassificationsFromCameraRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassificationsFromCameraRequest::GetClassData() const { return &_class_data_; } + +void GetClassificationsFromCameraRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetClassificationsFromCameraRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.GetClassificationsFromCameraRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetClassificationsFromCameraRequest::MergeFrom(const GetClassificationsFromCameraRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.GetClassificationsFromCameraRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (!from._internal_camera_name().empty()) { - _this->_internal_set_camera_name(from._internal_camera_name()); + _internal_set_camera_name(from._internal_camera_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } if (from._internal_n() != 0) { - _this->_internal_set_n(from._internal_n()); + _internal_set_n(from._internal_n()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetClassificationsFromCameraRequest::CopyFrom(const GetClassificationsFromCameraRequest& from) { @@ -3073,190 +2888,190 @@ void GetClassificationsFromCameraRequest::CopyFrom(const GetClassificationsFromC MergeFrom(from); } -PROTOBUF_NOINLINE bool GetClassificationsFromCameraRequest::IsInitialized() const { +bool GetClassificationsFromCameraRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetClassificationsFromCameraRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetClassificationsFromCameraRequest::InternalSwap(GetClassificationsFromCameraRequest* PROTOBUF_RESTRICT other) { +void GetClassificationsFromCameraRequest::InternalSwap(GetClassificationsFromCameraRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.camera_name_, &other->_impl_.camera_name_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(GetClassificationsFromCameraRequest, _impl_.n_) - + sizeof(GetClassificationsFromCameraRequest::_impl_.n_) - - PROTOBUF_FIELD_OFFSET(GetClassificationsFromCameraRequest, _impl_.extra_)>( - reinterpret_cast(&_impl_.extra_), - reinterpret_cast(&other->_impl_.extra_)); -} - -::google::protobuf::Metadata GetClassificationsFromCameraRequest::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &camera_name_, lhs_arena, + &other->camera_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GetClassificationsFromCameraRequest, n_) + + sizeof(GetClassificationsFromCameraRequest::n_) + - PROTOBUF_FIELD_OFFSET(GetClassificationsFromCameraRequest, extra_)>( + reinterpret_cast(&extra_), + reinterpret_cast(&other->extra_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetClassificationsFromCameraRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_getter, &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_once, file_level_metadata_service_2fvision_2fv1_2fvision_2eproto[7]); } + // =================================================================== class GetClassificationsFromCameraResponse::_Internal { public: }; -GetClassificationsFromCameraResponse::GetClassificationsFromCameraResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetClassificationsFromCameraResponse::GetClassificationsFromCameraResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + classifications_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.service.vision.v1.GetClassificationsFromCameraResponse) } -inline PROTOBUF_NDEBUG_INLINE GetClassificationsFromCameraResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : classifications_{visibility, arena, from.classifications_}, - _cached_size_{0} {} - -GetClassificationsFromCameraResponse::GetClassificationsFromCameraResponse( - ::google::protobuf::Arena* arena, - const GetClassificationsFromCameraResponse& from) - : ::google::protobuf::Message(arena) { - GetClassificationsFromCameraResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetClassificationsFromCameraResponse::GetClassificationsFromCameraResponse(const GetClassificationsFromCameraResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + classifications_(from.classifications_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:viam.service.vision.v1.GetClassificationsFromCameraResponse) } -inline PROTOBUF_NDEBUG_INLINE GetClassificationsFromCameraResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : classifications_{visibility, arena}, - _cached_size_{0} {} -inline void GetClassificationsFromCameraResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetClassificationsFromCameraResponse::SharedCtor() { } + GetClassificationsFromCameraResponse::~GetClassificationsFromCameraResponse() { // @@protoc_insertion_point(destructor:viam.service.vision.v1.GetClassificationsFromCameraResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetClassificationsFromCameraResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void GetClassificationsFromCameraResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetClassificationsFromCameraResponse::Clear() { +void GetClassificationsFromCameraResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.vision.v1.GetClassificationsFromCameraResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.classifications_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetClassificationsFromCameraResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + classifications_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetClassificationsFromCameraResponse::_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) { + // repeated .viam.service.vision.v1.Classification classifications = 1 [json_name = "classifications"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_classifications(), 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetClassificationsFromCameraResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetClassificationsFromCameraResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.service.vision.v1.Classification classifications = 1 [json_name = "classifications"]; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetClassificationsFromCameraResponse, _impl_.classifications_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .viam.service.vision.v1.Classification classifications = 1 [json_name = "classifications"]; - {PROTOBUF_FIELD_OFFSET(GetClassificationsFromCameraResponse, _impl_.classifications_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::service::vision::v1::Classification>()}, - }}, {{ - }}, -}; - -::uint8_t* GetClassificationsFromCameraResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetClassificationsFromCameraResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.vision.v1.GetClassificationsFromCameraResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // repeated .viam.service.vision.v1.Classification classifications = 1 [json_name = "classifications"]; for (unsigned i = 0, n = static_cast(this->_internal_classifications_size()); i < n; i++) { - const auto& repfield = this->_internal_classifications().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_classifications(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.vision.v1.GetClassificationsFromCameraResponse) return target; } -::size_t GetClassificationsFromCameraResponse::ByteSizeLong() const { +size_t GetClassificationsFromCameraResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.vision.v1.GetClassificationsFromCameraResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.service.vision.v1.Classification classifications = 1 [json_name = "classifications"]; total_size += 1UL * this->_internal_classifications_size(); - for (const auto& msg : this->_internal_classifications()) { + for (const auto& msg : this->classifications_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetClassificationsFromCameraResponse::_class_data_ = { - GetClassificationsFromCameraResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetClassificationsFromCameraResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetClassificationsFromCameraResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetClassificationsFromCameraResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassificationsFromCameraResponse::GetClassData() const { return &_class_data_; } + +void GetClassificationsFromCameraResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetClassificationsFromCameraResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.GetClassificationsFromCameraResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetClassificationsFromCameraResponse::MergeFrom(const GetClassificationsFromCameraResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.GetClassificationsFromCameraResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_classifications()->MergeFrom( - from._internal_classifications()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + classifications_.MergeFrom(from.classifications_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetClassificationsFromCameraResponse::CopyFrom(const GetClassificationsFromCameraResponse& from) { @@ -3266,224 +3081,224 @@ void GetClassificationsFromCameraResponse::CopyFrom(const GetClassificationsFrom MergeFrom(from); } -PROTOBUF_NOINLINE bool GetClassificationsFromCameraResponse::IsInitialized() const { +bool GetClassificationsFromCameraResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetClassificationsFromCameraResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetClassificationsFromCameraResponse::InternalSwap(GetClassificationsFromCameraResponse* PROTOBUF_RESTRICT other) { +void GetClassificationsFromCameraResponse::InternalSwap(GetClassificationsFromCameraResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.classifications_.InternalSwap(&other->_impl_.classifications_); + classifications_.InternalSwap(&other->classifications_); } -::google::protobuf::Metadata GetClassificationsFromCameraResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetClassificationsFromCameraResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_getter, &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_once, file_level_metadata_service_2fvision_2fv1_2fvision_2eproto[8]); } + // =================================================================== class Classification::_Internal { public: }; -Classification::Classification(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +Classification::Classification(::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.vision.v1.Classification) } -inline PROTOBUF_NDEBUG_INLINE Classification::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : class_name_(arena, from.class_name_), - _cached_size_{0} {} - -Classification::Classification( - ::google::protobuf::Arena* arena, - const Classification& from) - : ::google::protobuf::Message(arena) { - Classification* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.confidence_ = from._impl_.confidence_; - +Classification::Classification(const Classification& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + class_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + class_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_class_name().empty()) { + class_name_.Set(from._internal_class_name(), + GetArenaForAllocation()); + } + confidence_ = from.confidence_; // @@protoc_insertion_point(copy_constructor:viam.service.vision.v1.Classification) } -inline PROTOBUF_NDEBUG_INLINE Classification::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : class_name_(arena), - _cached_size_{0} {} -inline void Classification::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.confidence_ = {}; +inline void Classification::SharedCtor() { +class_name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + class_name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +confidence_ = 0; } + Classification::~Classification() { // @@protoc_insertion_point(destructor:viam.service.vision.v1.Classification) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void Classification::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.class_name_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + class_name_.Destroy(); +} + +void Classification::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void Classification::Clear() { +void Classification::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.vision.v1.Classification) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.class_name_.ClearToEmpty(); - _impl_.confidence_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Classification::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + class_name_.ClearToEmpty(); + confidence_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Classification::_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 class_name = 1 [json_name = "className"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_class_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.vision.v1.Classification.class_name")); + } else + goto handle_unusual; + continue; + // double confidence = 2 [json_name = "confidence"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 17)) { + confidence_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 56, 2> Classification::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_Classification_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // double confidence = 2 [json_name = "confidence"]; - {::_pbi::TcParser::FastF64S1, - {17, 63, 0, PROTOBUF_FIELD_OFFSET(Classification, _impl_.confidence_)}}, - // string class_name = 1 [json_name = "className"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Classification, _impl_.class_name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string class_name = 1 [json_name = "className"]; - {PROTOBUF_FIELD_OFFSET(Classification, _impl_.class_name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // double confidence = 2 [json_name = "confidence"]; - {PROTOBUF_FIELD_OFFSET(Classification, _impl_.confidence_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - }}, - // no aux_entries - {{ - "\45\12\0\0\0\0\0\0" - "viam.service.vision.v1.Classification" - "class_name" - }}, -}; - -::uint8_t* Classification::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* Classification::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.vision.v1.Classification) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string class_name = 1 [json_name = "className"]; if (!this->_internal_class_name().empty()) { - const std::string& _s = this->_internal_class_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.vision.v1.Classification.class_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_class_name().data(), static_cast(this->_internal_class_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.vision.v1.Classification.class_name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_class_name(), target); } // double confidence = 2 [json_name = "confidence"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_confidence = this->_internal_confidence(); - ::uint64_t raw_confidence; + uint64_t raw_confidence; memcpy(&raw_confidence, &tmp_confidence, sizeof(tmp_confidence)); if (raw_confidence != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 2, this->_internal_confidence(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_confidence(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.vision.v1.Classification) return target; } -::size_t Classification::ByteSizeLong() const { +size_t Classification::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.vision.v1.Classification) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string class_name = 1 [json_name = "className"]; if (!this->_internal_class_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_class_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_class_name()); } // double confidence = 2 [json_name = "confidence"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_confidence = this->_internal_confidence(); - ::uint64_t raw_confidence; + uint64_t raw_confidence; memcpy(&raw_confidence, &tmp_confidence, sizeof(tmp_confidence)); if (raw_confidence != 0) { - total_size += 9; + total_size += 1 + 8; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData Classification::_class_data_ = { - Classification::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Classification::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Classification::MergeImpl }; -const ::google::protobuf::Message::ClassData* Classification::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Classification::GetClassData() const { return &_class_data_; } + +void Classification::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void Classification::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.Classification) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void Classification::MergeFrom(const Classification& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.Classification) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_class_name().empty()) { - _this->_internal_set_class_name(from._internal_class_name()); + _internal_set_class_name(from._internal_class_name()); } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); double tmp_confidence = from._internal_confidence(); - ::uint64_t raw_confidence; + uint64_t raw_confidence; memcpy(&raw_confidence, &tmp_confidence, sizeof(tmp_confidence)); if (raw_confidence != 0) { - _this->_internal_set_confidence(from._internal_confidence()); + _internal_set_confidence(from._internal_confidence()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Classification::CopyFrom(const Classification& from) { @@ -3493,297 +3308,328 @@ void Classification::CopyFrom(const Classification& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Classification::IsInitialized() const { +bool Classification::IsInitialized() const { return true; } -::_pbi::CachedSize* Classification::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void Classification::InternalSwap(Classification* PROTOBUF_RESTRICT other) { +void Classification::InternalSwap(Classification* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.class_name_, &other->_impl_.class_name_, arena); - swap(_impl_.confidence_, other->_impl_.confidence_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &class_name_, lhs_arena, + &other->class_name_, rhs_arena + ); + swap(confidence_, other->confidence_); } -::google::protobuf::Metadata Classification::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Classification::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_getter, &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_once, file_level_metadata_service_2fvision_2fv1_2fvision_2eproto[9]); } + // =================================================================== class GetObjectPointCloudsRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetObjectPointCloudsRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const GetObjectPointCloudsRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetObjectPointCloudsRequest* msg); }; -const ::google::protobuf::Struct& GetObjectPointCloudsRequest::_Internal::extra(const GetObjectPointCloudsRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetObjectPointCloudsRequest::_Internal::extra(const GetObjectPointCloudsRequest* msg) { + return *msg->extra_; } void GetObjectPointCloudsRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -GetObjectPointCloudsRequest::GetObjectPointCloudsRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetObjectPointCloudsRequest::GetObjectPointCloudsRequest(::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.vision.v1.GetObjectPointCloudsRequest) } -inline PROTOBUF_NDEBUG_INLINE GetObjectPointCloudsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_), - camera_name_(arena, from.camera_name_), - mime_type_(arena, from.mime_type_) {} - -GetObjectPointCloudsRequest::GetObjectPointCloudsRequest( - ::google::protobuf::Arena* arena, - const GetObjectPointCloudsRequest& from) - : ::google::protobuf::Message(arena) { - GetObjectPointCloudsRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +GetObjectPointCloudsRequest::GetObjectPointCloudsRequest(const GetObjectPointCloudsRequest& 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()); + } + camera_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + camera_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_camera_name().empty()) { + camera_name_.Set(from._internal_camera_name(), + GetArenaForAllocation()); + } + mime_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + mime_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_mime_type().empty()) { + mime_type_.Set(from._internal_mime_type(), + GetArenaForAllocation()); + } + if (from._internal_has_extra()) { + extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.extra_); + } else { + extra_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.service.vision.v1.GetObjectPointCloudsRequest) } -inline PROTOBUF_NDEBUG_INLINE GetObjectPointCloudsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena), - camera_name_(arena), - mime_type_(arena) {} -inline void GetObjectPointCloudsRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void GetObjectPointCloudsRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +camera_name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + camera_name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +mime_type_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + mime_type_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + GetObjectPointCloudsRequest::~GetObjectPointCloudsRequest() { // @@protoc_insertion_point(destructor:viam.service.vision.v1.GetObjectPointCloudsRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetObjectPointCloudsRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.camera_name_.Destroy(); - _impl_.mime_type_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + camera_name_.Destroy(); + mime_type_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void GetObjectPointCloudsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetObjectPointCloudsRequest::Clear() { +void GetObjectPointCloudsRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.vision.v1.GetObjectPointCloudsRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _impl_.camera_name_.ClearToEmpty(); - _impl_.mime_type_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetObjectPointCloudsRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + camera_name_.ClearToEmpty(); + mime_type_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetObjectPointCloudsRequest::_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.service.vision.v1.GetObjectPointCloudsRequest.name")); + } else + goto handle_unusual; + continue; + // string camera_name = 2 [json_name = "cameraName"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_camera_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.vision.v1.GetObjectPointCloudsRequest.camera_name")); + } else + goto handle_unusual; + continue; + // string mime_type = 3 [json_name = "mimeType"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_mime_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.vision.v1.GetObjectPointCloudsRequest.mime_type")); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 1, 83, 7> GetObjectPointCloudsRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetObjectPointCloudsRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetObjectPointCloudsRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetObjectPointCloudsRequest, _impl_.name_)}}, - // string camera_name = 2 [json_name = "cameraName"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(GetObjectPointCloudsRequest, _impl_.camera_name_)}}, - // string mime_type = 3 [json_name = "mimeType"]; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(GetObjectPointCloudsRequest, _impl_.mime_type_)}}, - }}, {{ - 99, 0, 1, - 65534, 3, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(GetObjectPointCloudsRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string camera_name = 2 [json_name = "cameraName"]; - {PROTOBUF_FIELD_OFFSET(GetObjectPointCloudsRequest, _impl_.camera_name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string mime_type = 3 [json_name = "mimeType"]; - {PROTOBUF_FIELD_OFFSET(GetObjectPointCloudsRequest, _impl_.mime_type_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(GetObjectPointCloudsRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\62\4\13\11\0\0\0\0" - "viam.service.vision.v1.GetObjectPointCloudsRequest" - "name" - "camera_name" - "mime_type" - }}, -}; - -::uint8_t* GetObjectPointCloudsRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetObjectPointCloudsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.vision.v1.GetObjectPointCloudsRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.vision.v1.GetObjectPointCloudsRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.vision.v1.GetObjectPointCloudsRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // string camera_name = 2 [json_name = "cameraName"]; if (!this->_internal_camera_name().empty()) { - const std::string& _s = this->_internal_camera_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.vision.v1.GetObjectPointCloudsRequest.camera_name"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_camera_name().data(), static_cast(this->_internal_camera_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.vision.v1.GetObjectPointCloudsRequest.camera_name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_camera_name(), target); } // string mime_type = 3 [json_name = "mimeType"]; if (!this->_internal_mime_type().empty()) { - const std::string& _s = this->_internal_mime_type(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.vision.v1.GetObjectPointCloudsRequest.mime_type"); - target = stream->WriteStringMaybeAliased(3, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_mime_type().data(), static_cast(this->_internal_mime_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.vision.v1.GetObjectPointCloudsRequest.mime_type"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_mime_type(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.vision.v1.GetObjectPointCloudsRequest) return target; } -::size_t GetObjectPointCloudsRequest::ByteSizeLong() const { +size_t GetObjectPointCloudsRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.vision.v1.GetObjectPointCloudsRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // string camera_name = 2 [json_name = "cameraName"]; if (!this->_internal_camera_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_camera_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_camera_name()); } // string mime_type = 3 [json_name = "mimeType"]; if (!this->_internal_mime_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_mime_type()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_mime_type()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetObjectPointCloudsRequest::_class_data_ = { - GetObjectPointCloudsRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetObjectPointCloudsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetObjectPointCloudsRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetObjectPointCloudsRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetObjectPointCloudsRequest::GetClassData() const { return &_class_data_; } + +void GetObjectPointCloudsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetObjectPointCloudsRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.GetObjectPointCloudsRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetObjectPointCloudsRequest::MergeFrom(const GetObjectPointCloudsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.GetObjectPointCloudsRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (!from._internal_camera_name().empty()) { - _this->_internal_set_camera_name(from._internal_camera_name()); + _internal_set_camera_name(from._internal_camera_name()); } if (!from._internal_mime_type().empty()) { - _this->_internal_set_mime_type(from._internal_mime_type()); + _internal_set_mime_type(from._internal_mime_type()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetObjectPointCloudsRequest::CopyFrom(const GetObjectPointCloudsRequest& from) { @@ -3793,30 +3639,36 @@ void GetObjectPointCloudsRequest::CopyFrom(const GetObjectPointCloudsRequest& fr MergeFrom(from); } -PROTOBUF_NOINLINE bool GetObjectPointCloudsRequest::IsInitialized() const { +bool GetObjectPointCloudsRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetObjectPointCloudsRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetObjectPointCloudsRequest::InternalSwap(GetObjectPointCloudsRequest* PROTOBUF_RESTRICT other) { +void GetObjectPointCloudsRequest::InternalSwap(GetObjectPointCloudsRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.camera_name_, &other->_impl_.camera_name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.mime_type_, &other->_impl_.mime_type_, arena); - swap(_impl_.extra_, other->_impl_.extra_); -} - -::google::protobuf::Metadata GetObjectPointCloudsRequest::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &camera_name_, lhs_arena, + &other->camera_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &mime_type_, lhs_arena, + &other->mime_type_, rhs_arena + ); + swap(extra_, other->extra_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetObjectPointCloudsRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_getter, &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_once, file_level_metadata_service_2fvision_2fv1_2fvision_2eproto[10]); } + // =================================================================== class GetObjectPointCloudsResponse::_Internal { @@ -3824,189 +3676,199 @@ class GetObjectPointCloudsResponse::_Internal { }; void GetObjectPointCloudsResponse::clear_objects() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.objects_.Clear(); + objects_.Clear(); } -GetObjectPointCloudsResponse::GetObjectPointCloudsResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetObjectPointCloudsResponse::GetObjectPointCloudsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + objects_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.service.vision.v1.GetObjectPointCloudsResponse) } -inline PROTOBUF_NDEBUG_INLINE GetObjectPointCloudsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : objects_{visibility, arena, from.objects_}, - mime_type_(arena, from.mime_type_), - _cached_size_{0} {} - -GetObjectPointCloudsResponse::GetObjectPointCloudsResponse( - ::google::protobuf::Arena* arena, - const GetObjectPointCloudsResponse& from) - : ::google::protobuf::Message(arena) { - GetObjectPointCloudsResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - +GetObjectPointCloudsResponse::GetObjectPointCloudsResponse(const GetObjectPointCloudsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + objects_(from.objects_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + mime_type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + mime_type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_mime_type().empty()) { + mime_type_.Set(from._internal_mime_type(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:viam.service.vision.v1.GetObjectPointCloudsResponse) } -inline PROTOBUF_NDEBUG_INLINE GetObjectPointCloudsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : objects_{visibility, arena}, - mime_type_(arena), - _cached_size_{0} {} -inline void GetObjectPointCloudsResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); +inline void GetObjectPointCloudsResponse::SharedCtor() { +mime_type_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + mime_type_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } + GetObjectPointCloudsResponse::~GetObjectPointCloudsResponse() { // @@protoc_insertion_point(destructor:viam.service.vision.v1.GetObjectPointCloudsResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetObjectPointCloudsResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.mime_type_.Destroy(); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + mime_type_.Destroy(); } -PROTOBUF_NOINLINE void GetObjectPointCloudsResponse::Clear() { +void GetObjectPointCloudsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetObjectPointCloudsResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.vision.v1.GetObjectPointCloudsResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.objects_.Clear(); - _impl_.mime_type_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetObjectPointCloudsResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + objects_.Clear(); + mime_type_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetObjectPointCloudsResponse::_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 mime_type = 1 [json_name = "mimeType"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_mime_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.vision.v1.GetObjectPointCloudsResponse.mime_type")); + } else + goto handle_unusual; + continue; + // repeated .viam.common.v1.PointCloudObject objects = 2 [json_name = "objects"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_objects(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 69, 2> GetObjectPointCloudsResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetObjectPointCloudsResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.common.v1.PointCloudObject objects = 2 [json_name = "objects"]; - {::_pbi::TcParser::FastMtR1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(GetObjectPointCloudsResponse, _impl_.objects_)}}, - // string mime_type = 1 [json_name = "mimeType"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetObjectPointCloudsResponse, _impl_.mime_type_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string mime_type = 1 [json_name = "mimeType"]; - {PROTOBUF_FIELD_OFFSET(GetObjectPointCloudsResponse, _impl_.mime_type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated .viam.common.v1.PointCloudObject objects = 2 [json_name = "objects"]; - {PROTOBUF_FIELD_OFFSET(GetObjectPointCloudsResponse, _impl_.objects_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::common::v1::PointCloudObject>()}, - }}, {{ - "\63\11\0\0\0\0\0\0" - "viam.service.vision.v1.GetObjectPointCloudsResponse" - "mime_type" - }}, -}; - -::uint8_t* GetObjectPointCloudsResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetObjectPointCloudsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.vision.v1.GetObjectPointCloudsResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string mime_type = 1 [json_name = "mimeType"]; if (!this->_internal_mime_type().empty()) { - const std::string& _s = this->_internal_mime_type(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.vision.v1.GetObjectPointCloudsResponse.mime_type"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_mime_type().data(), static_cast(this->_internal_mime_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.vision.v1.GetObjectPointCloudsResponse.mime_type"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_mime_type(), target); } // repeated .viam.common.v1.PointCloudObject objects = 2 [json_name = "objects"]; for (unsigned i = 0, n = static_cast(this->_internal_objects_size()); i < n; i++) { - const auto& repfield = this->_internal_objects().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_objects(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.vision.v1.GetObjectPointCloudsResponse) return target; } -::size_t GetObjectPointCloudsResponse::ByteSizeLong() const { +size_t GetObjectPointCloudsResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.vision.v1.GetObjectPointCloudsResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.common.v1.PointCloudObject objects = 2 [json_name = "objects"]; total_size += 1UL * this->_internal_objects_size(); - for (const auto& msg : this->_internal_objects()) { + for (const auto& msg : this->objects_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // string mime_type = 1 [json_name = "mimeType"]; if (!this->_internal_mime_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_mime_type()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_mime_type()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetObjectPointCloudsResponse::_class_data_ = { - GetObjectPointCloudsResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetObjectPointCloudsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetObjectPointCloudsResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetObjectPointCloudsResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetObjectPointCloudsResponse::GetClassData() const { return &_class_data_; } + +void GetObjectPointCloudsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetObjectPointCloudsResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.GetObjectPointCloudsResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetObjectPointCloudsResponse::MergeFrom(const GetObjectPointCloudsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.GetObjectPointCloudsResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_objects()->MergeFrom( - from._internal_objects()); + objects_.MergeFrom(from.objects_); if (!from._internal_mime_type().empty()) { - _this->_internal_set_mime_type(from._internal_mime_type()); + _internal_set_mime_type(from._internal_mime_type()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetObjectPointCloudsResponse::CopyFrom(const GetObjectPointCloudsResponse& from) { @@ -4016,245 +3878,240 @@ void GetObjectPointCloudsResponse::CopyFrom(const GetObjectPointCloudsResponse& MergeFrom(from); } -PROTOBUF_NOINLINE bool GetObjectPointCloudsResponse::IsInitialized() const { +bool GetObjectPointCloudsResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetObjectPointCloudsResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetObjectPointCloudsResponse::InternalSwap(GetObjectPointCloudsResponse* PROTOBUF_RESTRICT other) { +void GetObjectPointCloudsResponse::InternalSwap(GetObjectPointCloudsResponse* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.objects_.InternalSwap(&other->_impl_.objects_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.mime_type_, &other->_impl_.mime_type_, arena); + objects_.InternalSwap(&other->objects_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &mime_type_, lhs_arena, + &other->mime_type_, rhs_arena + ); } -::google::protobuf::Metadata GetObjectPointCloudsResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetObjectPointCloudsResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_getter, &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_once, file_level_metadata_service_2fvision_2fv1_2fvision_2eproto[11]); } + // =================================================================== class GetPropertiesRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetPropertiesRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const GetPropertiesRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetPropertiesRequest* msg); }; -const ::google::protobuf::Struct& GetPropertiesRequest::_Internal::extra(const GetPropertiesRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetPropertiesRequest::_Internal::extra(const GetPropertiesRequest* msg) { + return *msg->extra_; } void GetPropertiesRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -GetPropertiesRequest::GetPropertiesRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetPropertiesRequest::GetPropertiesRequest(::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.vision.v1.GetPropertiesRequest) } -inline PROTOBUF_NDEBUG_INLINE GetPropertiesRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -GetPropertiesRequest::GetPropertiesRequest( - ::google::protobuf::Arena* arena, - const GetPropertiesRequest& from) - : ::google::protobuf::Message(arena) { - GetPropertiesRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +GetPropertiesRequest::GetPropertiesRequest(const GetPropertiesRequest& 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.service.vision.v1.GetPropertiesRequest) } -inline PROTOBUF_NDEBUG_INLINE GetPropertiesRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} -inline void GetPropertiesRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.extra_ = {}; +inline void GetPropertiesRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; } + GetPropertiesRequest::~GetPropertiesRequest() { // @@protoc_insertion_point(destructor:viam.service.vision.v1.GetPropertiesRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetPropertiesRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; } -PROTOBUF_NOINLINE void GetPropertiesRequest::Clear() { +void GetPropertiesRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetPropertiesRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.vision.v1.GetPropertiesRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetPropertiesRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPropertiesRequest::_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.service.vision.v1.GetPropertiesRequest.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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 2, 1, 56, 7> GetPropertiesRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetPropertiesRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetPropertiesRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetPropertiesRequest, _impl_.name_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {::_pbi::TcParser::FastMtS2, - {1690, 0, 0, PROTOBUF_FIELD_OFFSET(GetPropertiesRequest, _impl_.extra_)}}, - }}, {{ - 99, 0, 1, - 65534, 1, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(GetPropertiesRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(GetPropertiesRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\53\4\0\0\0\0\0\0" - "viam.service.vision.v1.GetPropertiesRequest" - "name" - }}, -}; - -::uint8_t* GetPropertiesRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetPropertiesRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.vision.v1.GetPropertiesRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.vision.v1.GetPropertiesRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.vision.v1.GetPropertiesRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.vision.v1.GetPropertiesRequest) return target; } -::size_t GetPropertiesRequest::ByteSizeLong() const { +size_t GetPropertiesRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.vision.v1.GetPropertiesRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetPropertiesRequest::_class_data_ = { - GetPropertiesRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPropertiesRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetPropertiesRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetPropertiesRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPropertiesRequest::GetClassData() const { return &_class_data_; } + +void GetPropertiesRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetPropertiesRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.GetPropertiesRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetPropertiesRequest::MergeFrom(const GetPropertiesRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.GetPropertiesRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetPropertiesRequest::CopyFrom(const GetPropertiesRequest& from) { @@ -4264,370 +4121,381 @@ void GetPropertiesRequest::CopyFrom(const GetPropertiesRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetPropertiesRequest::IsInitialized() const { +bool GetPropertiesRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetPropertiesRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetPropertiesRequest::InternalSwap(GetPropertiesRequest* PROTOBUF_RESTRICT other) { +void GetPropertiesRequest::InternalSwap(GetPropertiesRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.extra_, other->_impl_.extra_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(extra_, other->extra_); } -::google::protobuf::Metadata GetPropertiesRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetPropertiesRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_getter, &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_once, file_level_metadata_service_2fvision_2fv1_2fvision_2eproto[12]); } + // =================================================================== class CaptureAllFromCameraRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(CaptureAllFromCameraRequest, _impl_._has_bits_); - static const ::google::protobuf::Struct& extra(const CaptureAllFromCameraRequest* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const CaptureAllFromCameraRequest* msg); }; -const ::google::protobuf::Struct& CaptureAllFromCameraRequest::_Internal::extra(const CaptureAllFromCameraRequest* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +CaptureAllFromCameraRequest::_Internal::extra(const CaptureAllFromCameraRequest* msg) { + return *msg->extra_; } void CaptureAllFromCameraRequest::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; } -CaptureAllFromCameraRequest::CaptureAllFromCameraRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +CaptureAllFromCameraRequest::CaptureAllFromCameraRequest(::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.vision.v1.CaptureAllFromCameraRequest) } -inline PROTOBUF_NDEBUG_INLINE CaptureAllFromCameraRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_), - camera_name_(arena, from.camera_name_) {} - -CaptureAllFromCameraRequest::CaptureAllFromCameraRequest( - ::google::protobuf::Arena* arena, - const CaptureAllFromCameraRequest& from) - : ::google::protobuf::Message(arena) { - CaptureAllFromCameraRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.extra_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, return_image_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, return_image_), - offsetof(Impl_, return_object_point_clouds_) - - offsetof(Impl_, return_image_) + - sizeof(Impl_::return_object_point_clouds_)); - +CaptureAllFromCameraRequest::CaptureAllFromCameraRequest(const CaptureAllFromCameraRequest& 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()); + } + camera_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + camera_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_camera_name().empty()) { + camera_name_.Set(from._internal_camera_name(), + GetArenaForAllocation()); + } + if (from._internal_has_extra()) { + extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.extra_); + } else { + extra_ = nullptr; + } + ::memcpy(&return_image_, &from.return_image_, + static_cast(reinterpret_cast(&return_object_point_clouds_) - + reinterpret_cast(&return_image_)) + sizeof(return_object_point_clouds_)); // @@protoc_insertion_point(copy_constructor:viam.service.vision.v1.CaptureAllFromCameraRequest) } -inline PROTOBUF_NDEBUG_INLINE CaptureAllFromCameraRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena), - camera_name_(arena) {} - -inline void CaptureAllFromCameraRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, extra_), - 0, - offsetof(Impl_, return_object_point_clouds_) - - offsetof(Impl_, extra_) + - sizeof(Impl_::return_object_point_clouds_)); + +inline void CaptureAllFromCameraRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +camera_name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + camera_name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&extra_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&return_object_point_clouds_) - + reinterpret_cast(&extra_)) + sizeof(return_object_point_clouds_)); } + CaptureAllFromCameraRequest::~CaptureAllFromCameraRequest() { // @@protoc_insertion_point(destructor:viam.service.vision.v1.CaptureAllFromCameraRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void CaptureAllFromCameraRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.camera_name_.Destroy(); - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + camera_name_.Destroy(); + if (this != internal_default_instance()) delete extra_; } -PROTOBUF_NOINLINE void CaptureAllFromCameraRequest::Clear() { +void CaptureAllFromCameraRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void CaptureAllFromCameraRequest::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.vision.v1.CaptureAllFromCameraRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _impl_.camera_name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); - } - ::memset(&_impl_.return_image_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.return_object_point_clouds_) - - reinterpret_cast(&_impl_.return_image_)) + sizeof(_impl_.return_object_point_clouds_)); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* CaptureAllFromCameraRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + name_.ClearToEmpty(); + camera_name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + ::memset(&return_image_, 0, static_cast( + reinterpret_cast(&return_object_point_clouds_) - + reinterpret_cast(&return_image_)) + sizeof(return_object_point_clouds_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CaptureAllFromCameraRequest::_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.service.vision.v1.CaptureAllFromCameraRequest.name")); + } else + goto handle_unusual; + continue; + // string camera_name = 2 [json_name = "cameraName"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_camera_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.service.vision.v1.CaptureAllFromCameraRequest.camera_name")); + } else + goto handle_unusual; + continue; + // bool return_image = 3 [json_name = "returnImage"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + return_image_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool return_classifications = 4 [json_name = "returnClassifications"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + return_classifications_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool return_detections = 5 [json_name = "returnDetections"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { + return_detections_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool return_object_point_clouds = 6 [json_name = "returnObjectPointClouds"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { + return_object_point_clouds_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 7, 1, 74, 7> CaptureAllFromCameraRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(CaptureAllFromCameraRequest, _impl_._has_bits_), - 0, // no _extensions_ - 99, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967232, // skipmap - offsetof(decltype(_table_), field_entries), - 7, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_CaptureAllFromCameraRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1 [json_name = "name"]; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(CaptureAllFromCameraRequest, _impl_.name_)}}, - // string camera_name = 2 [json_name = "cameraName"]; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(CaptureAllFromCameraRequest, _impl_.camera_name_)}}, - // bool return_image = 3 [json_name = "returnImage"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(CaptureAllFromCameraRequest, _impl_.return_image_)}}, - // bool return_classifications = 4 [json_name = "returnClassifications"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(CaptureAllFromCameraRequest, _impl_.return_classifications_)}}, - // bool return_detections = 5 [json_name = "returnDetections"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {40, 63, 0, PROTOBUF_FIELD_OFFSET(CaptureAllFromCameraRequest, _impl_.return_detections_)}}, - // bool return_object_point_clouds = 6 [json_name = "returnObjectPointClouds"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {48, 63, 0, PROTOBUF_FIELD_OFFSET(CaptureAllFromCameraRequest, _impl_.return_object_point_clouds_)}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 99, 0, 1, - 65534, 6, - 65535, 65535 - }}, {{ - // string name = 1 [json_name = "name"]; - {PROTOBUF_FIELD_OFFSET(CaptureAllFromCameraRequest, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string camera_name = 2 [json_name = "cameraName"]; - {PROTOBUF_FIELD_OFFSET(CaptureAllFromCameraRequest, _impl_.camera_name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // bool return_image = 3 [json_name = "returnImage"]; - {PROTOBUF_FIELD_OFFSET(CaptureAllFromCameraRequest, _impl_.return_image_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // bool return_classifications = 4 [json_name = "returnClassifications"]; - {PROTOBUF_FIELD_OFFSET(CaptureAllFromCameraRequest, _impl_.return_classifications_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // bool return_detections = 5 [json_name = "returnDetections"]; - {PROTOBUF_FIELD_OFFSET(CaptureAllFromCameraRequest, _impl_.return_detections_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // bool return_object_point_clouds = 6 [json_name = "returnObjectPointClouds"]; - {PROTOBUF_FIELD_OFFSET(CaptureAllFromCameraRequest, _impl_.return_object_point_clouds_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(CaptureAllFromCameraRequest, _impl_.extra_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\62\4\13\0\0\0\0\0" - "viam.service.vision.v1.CaptureAllFromCameraRequest" - "name" - "camera_name" - }}, -}; - -::uint8_t* CaptureAllFromCameraRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* CaptureAllFromCameraRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.vision.v1.CaptureAllFromCameraRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.vision.v1.CaptureAllFromCameraRequest.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.vision.v1.CaptureAllFromCameraRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); } // string camera_name = 2 [json_name = "cameraName"]; if (!this->_internal_camera_name().empty()) { - const std::string& _s = this->_internal_camera_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.service.vision.v1.CaptureAllFromCameraRequest.camera_name"); - target = stream->WriteStringMaybeAliased(2, _s, target); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_camera_name().data(), static_cast(this->_internal_camera_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.service.vision.v1.CaptureAllFromCameraRequest.camera_name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_camera_name(), target); } // bool return_image = 3 [json_name = "returnImage"]; if (this->_internal_return_image() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 3, this->_internal_return_image(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_return_image(), target); } // bool return_classifications = 4 [json_name = "returnClassifications"]; if (this->_internal_return_classifications() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 4, this->_internal_return_classifications(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(4, this->_internal_return_classifications(), target); } // bool return_detections = 5 [json_name = "returnDetections"]; if (this->_internal_return_detections() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 5, this->_internal_return_detections(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(5, this->_internal_return_detections(), target); } // bool return_object_point_clouds = 6 [json_name = "returnObjectPointClouds"]; if (this->_internal_return_object_point_clouds() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 6, this->_internal_return_object_point_clouds(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(6, this->_internal_return_object_point_clouds(), target); } - cached_has_bits = _impl_._has_bits_[0]; // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.vision.v1.CaptureAllFromCameraRequest) return target; } -::size_t CaptureAllFromCameraRequest::ByteSizeLong() const { +size_t CaptureAllFromCameraRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.vision.v1.CaptureAllFromCameraRequest) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 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 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } // string camera_name = 2 [json_name = "cameraName"]; if (!this->_internal_camera_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_camera_name()); + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_camera_name()); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); } // bool return_image = 3 [json_name = "returnImage"]; if (this->_internal_return_image() != 0) { - total_size += 2; + total_size += 1 + 1; } // bool return_classifications = 4 [json_name = "returnClassifications"]; if (this->_internal_return_classifications() != 0) { - total_size += 2; + total_size += 1 + 1; } // bool return_detections = 5 [json_name = "returnDetections"]; if (this->_internal_return_detections() != 0) { - total_size += 2; + total_size += 1 + 1; } // bool return_object_point_clouds = 6 [json_name = "returnObjectPointClouds"]; if (this->_internal_return_object_point_clouds() != 0) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData CaptureAllFromCameraRequest::_class_data_ = { - CaptureAllFromCameraRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CaptureAllFromCameraRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CaptureAllFromCameraRequest::MergeImpl }; -const ::google::protobuf::Message::ClassData* CaptureAllFromCameraRequest::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CaptureAllFromCameraRequest::GetClassData() const { return &_class_data_; } + +void CaptureAllFromCameraRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void CaptureAllFromCameraRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.CaptureAllFromCameraRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void CaptureAllFromCameraRequest::MergeFrom(const CaptureAllFromCameraRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.CaptureAllFromCameraRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + _internal_set_name(from._internal_name()); } if (!from._internal_camera_name().empty()) { - _this->_internal_set_camera_name(from._internal_camera_name()); + _internal_set_camera_name(from._internal_camera_name()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } if (from._internal_return_image() != 0) { - _this->_internal_set_return_image(from._internal_return_image()); + _internal_set_return_image(from._internal_return_image()); } if (from._internal_return_classifications() != 0) { - _this->_internal_set_return_classifications(from._internal_return_classifications()); + _internal_set_return_classifications(from._internal_return_classifications()); } if (from._internal_return_detections() != 0) { - _this->_internal_set_return_detections(from._internal_return_detections()); + _internal_set_return_detections(from._internal_return_detections()); } if (from._internal_return_object_point_clouds() != 0) { - _this->_internal_set_return_object_point_clouds(from._internal_return_object_point_clouds()); + _internal_set_return_object_point_clouds(from._internal_return_object_point_clouds()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CaptureAllFromCameraRequest::CopyFrom(const CaptureAllFromCameraRequest& from) { @@ -4637,355 +4505,353 @@ void CaptureAllFromCameraRequest::CopyFrom(const CaptureAllFromCameraRequest& fr MergeFrom(from); } -PROTOBUF_NOINLINE bool CaptureAllFromCameraRequest::IsInitialized() const { +bool CaptureAllFromCameraRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* CaptureAllFromCameraRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void CaptureAllFromCameraRequest::InternalSwap(CaptureAllFromCameraRequest* PROTOBUF_RESTRICT other) { +void CaptureAllFromCameraRequest::InternalSwap(CaptureAllFromCameraRequest* other) { using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.camera_name_, &other->_impl_.camera_name_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(CaptureAllFromCameraRequest, _impl_.return_object_point_clouds_) - + sizeof(CaptureAllFromCameraRequest::_impl_.return_object_point_clouds_) - - PROTOBUF_FIELD_OFFSET(CaptureAllFromCameraRequest, _impl_.extra_)>( - reinterpret_cast(&_impl_.extra_), - reinterpret_cast(&other->_impl_.extra_)); -} - -::google::protobuf::Metadata CaptureAllFromCameraRequest::GetMetadata() const { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &camera_name_, lhs_arena, + &other->camera_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(CaptureAllFromCameraRequest, return_object_point_clouds_) + + sizeof(CaptureAllFromCameraRequest::return_object_point_clouds_) + - PROTOBUF_FIELD_OFFSET(CaptureAllFromCameraRequest, extra_)>( + reinterpret_cast(&extra_), + reinterpret_cast(&other->extra_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata CaptureAllFromCameraRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_getter, &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_once, file_level_metadata_service_2fvision_2fv1_2fvision_2eproto[13]); } + // =================================================================== class CaptureAllFromCameraResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(CaptureAllFromCameraResponse, _impl_._has_bits_); static const ::viam::component::camera::v1::Image& image(const CaptureAllFromCameraResponse* msg); - static void set_has_image(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::google::protobuf::Struct& extra(const CaptureAllFromCameraResponse* msg); - static void set_has_extra(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const CaptureAllFromCameraResponse* msg); }; -const ::viam::component::camera::v1::Image& CaptureAllFromCameraResponse::_Internal::image(const CaptureAllFromCameraResponse* msg) { - return *msg->_impl_.image_; +const ::viam::component::camera::v1::Image& +CaptureAllFromCameraResponse::_Internal::image(const CaptureAllFromCameraResponse* msg) { + return *msg->image_; } -const ::google::protobuf::Struct& CaptureAllFromCameraResponse::_Internal::extra(const CaptureAllFromCameraResponse* msg) { - return *msg->_impl_.extra_; +const ::PROTOBUF_NAMESPACE_ID::Struct& +CaptureAllFromCameraResponse::_Internal::extra(const CaptureAllFromCameraResponse* msg) { + return *msg->extra_; } void CaptureAllFromCameraResponse::clear_image() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.image_ != nullptr) _impl_.image_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + if (GetArenaForAllocation() == nullptr && image_ != nullptr) { + delete image_; + } + image_ = nullptr; } void CaptureAllFromCameraResponse::clear_objects() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.objects_.Clear(); + objects_.Clear(); } void CaptureAllFromCameraResponse::clear_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.extra_ != nullptr) _impl_.extra_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; -} -CaptureAllFromCameraResponse::CaptureAllFromCameraResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; +} +CaptureAllFromCameraResponse::CaptureAllFromCameraResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + detections_(arena), + classifications_(arena), + objects_(arena) { + SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.service.vision.v1.CaptureAllFromCameraResponse) } -inline PROTOBUF_NDEBUG_INLINE CaptureAllFromCameraResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - detections_{visibility, arena, from.detections_}, - classifications_{visibility, arena, from.classifications_}, - objects_{visibility, arena, from.objects_} {} - -CaptureAllFromCameraResponse::CaptureAllFromCameraResponse( - ::google::protobuf::Arena* arena, - const CaptureAllFromCameraResponse& from) - : ::google::protobuf::Message(arena) { - CaptureAllFromCameraResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.image_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::viam::component::camera::v1::Image>(arena, *from._impl_.image_) - : nullptr; - _impl_.extra_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::google::protobuf::Struct>(arena, *from._impl_.extra_) - : nullptr; - +CaptureAllFromCameraResponse::CaptureAllFromCameraResponse(const CaptureAllFromCameraResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + detections_(from.detections_), + classifications_(from.classifications_), + objects_(from.objects_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_image()) { + image_ = new ::viam::component::camera::v1::Image(*from.image_); + } else { + image_ = nullptr; + } + if (from._internal_has_extra()) { + extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.extra_); + } else { + extra_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.service.vision.v1.CaptureAllFromCameraResponse) } -inline PROTOBUF_NDEBUG_INLINE CaptureAllFromCameraResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - detections_{visibility, arena}, - classifications_{visibility, arena}, - objects_{visibility, arena} {} - -inline void CaptureAllFromCameraResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, image_), - 0, - offsetof(Impl_, extra_) - - offsetof(Impl_, image_) + - sizeof(Impl_::extra_)); + +inline void CaptureAllFromCameraResponse::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&image_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&extra_) - + reinterpret_cast(&image_)) + sizeof(extra_)); } + CaptureAllFromCameraResponse::~CaptureAllFromCameraResponse() { // @@protoc_insertion_point(destructor:viam.service.vision.v1.CaptureAllFromCameraResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void CaptureAllFromCameraResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.image_; - delete _impl_.extra_; - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete image_; + if (this != internal_default_instance()) delete extra_; +} + +void CaptureAllFromCameraResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void CaptureAllFromCameraResponse::Clear() { +void CaptureAllFromCameraResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.vision.v1.CaptureAllFromCameraResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.detections_.Clear(); - _impl_.classifications_.Clear(); - _impl_.objects_.Clear(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.image_ != nullptr); - _impl_.image_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.extra_ != nullptr); - _impl_.extra_->Clear(); + detections_.Clear(); + classifications_.Clear(); + objects_.Clear(); + if (GetArenaForAllocation() == nullptr && image_ != nullptr) { + delete image_; + } + image_ = nullptr; + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CaptureAllFromCameraResponse::_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.component.camera.v1.Image image = 1 [json_name = "image"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_image(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // repeated .viam.service.vision.v1.Detection detections = 2 [json_name = "detections"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_detections(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } else + goto handle_unusual; + continue; + // repeated .viam.service.vision.v1.Classification classifications = 3 [json_name = "classifications"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_classifications(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); + } else + goto handle_unusual; + continue; + // repeated .viam.common.v1.PointCloudObject objects = 4 [json_name = "objects"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_objects(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr)); + } 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; } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* CaptureAllFromCameraResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + 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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 5, 5, 0, 7> CaptureAllFromCameraResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(CaptureAllFromCameraResponse, _impl_._has_bits_), - 0, // no _extensions_ - 99, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 5, // num_field_entries - 5, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_CaptureAllFromCameraResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // repeated .viam.common.v1.PointCloudObject objects = 4 [json_name = "objects"]; - {::_pbi::TcParser::FastMtR1, - {34, 63, 3, PROTOBUF_FIELD_OFFSET(CaptureAllFromCameraResponse, _impl_.objects_)}}, - // .viam.component.camera.v1.Image image = 1 [json_name = "image"]; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(CaptureAllFromCameraResponse, _impl_.image_)}}, - // repeated .viam.service.vision.v1.Detection detections = 2 [json_name = "detections"]; - {::_pbi::TcParser::FastMtR1, - {18, 63, 1, PROTOBUF_FIELD_OFFSET(CaptureAllFromCameraResponse, _impl_.detections_)}}, - // repeated .viam.service.vision.v1.Classification classifications = 3 [json_name = "classifications"]; - {::_pbi::TcParser::FastMtR1, - {26, 63, 2, PROTOBUF_FIELD_OFFSET(CaptureAllFromCameraResponse, _impl_.classifications_)}}, - }}, {{ - 99, 0, 1, - 65534, 4, - 65535, 65535 - }}, {{ - // .viam.component.camera.v1.Image image = 1 [json_name = "image"]; - {PROTOBUF_FIELD_OFFSET(CaptureAllFromCameraResponse, _impl_.image_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated .viam.service.vision.v1.Detection detections = 2 [json_name = "detections"]; - {PROTOBUF_FIELD_OFFSET(CaptureAllFromCameraResponse, _impl_.detections_), -1, 1, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated .viam.service.vision.v1.Classification classifications = 3 [json_name = "classifications"]; - {PROTOBUF_FIELD_OFFSET(CaptureAllFromCameraResponse, _impl_.classifications_), -1, 2, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated .viam.common.v1.PointCloudObject objects = 4 [json_name = "objects"]; - {PROTOBUF_FIELD_OFFSET(CaptureAllFromCameraResponse, _impl_.objects_), -1, 3, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - {PROTOBUF_FIELD_OFFSET(CaptureAllFromCameraResponse, _impl_.extra_), _Internal::kHasBitsOffset + 1, 4, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::viam::component::camera::v1::Image>()}, - {::_pbi::TcParser::GetTable<::viam::service::vision::v1::Detection>()}, - {::_pbi::TcParser::GetTable<::viam::service::vision::v1::Classification>()}, - {::_pbi::TcParser::GetTable<::viam::common::v1::PointCloudObject>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - }}, -}; - -::uint8_t* CaptureAllFromCameraResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* CaptureAllFromCameraResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.vision.v1.CaptureAllFromCameraResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; // .viam.component.camera.v1.Image image = 1 [json_name = "image"]; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::image(this), + if (this->_internal_has_image()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::image(this), _Internal::image(this).GetCachedSize(), target, stream); } // repeated .viam.service.vision.v1.Detection detections = 2 [json_name = "detections"]; for (unsigned i = 0, n = static_cast(this->_internal_detections_size()); i < n; i++) { - const auto& repfield = this->_internal_detections().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_detections(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); } // repeated .viam.service.vision.v1.Classification classifications = 3 [json_name = "classifications"]; for (unsigned i = 0, n = static_cast(this->_internal_classifications_size()); i < n; i++) { - const auto& repfield = this->_internal_classifications().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_classifications(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream); } // repeated .viam.common.v1.PointCloudObject objects = 4 [json_name = "objects"]; for (unsigned i = 0, n = static_cast(this->_internal_objects_size()); i < n; i++) { - const auto& repfield = this->_internal_objects().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: + const auto& repfield = this->_internal_objects(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(4, repfield, repfield.GetCachedSize(), target, stream); } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 99, _Internal::extra(this), + 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<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.vision.v1.CaptureAllFromCameraResponse) return target; } -::size_t CaptureAllFromCameraResponse::ByteSizeLong() const { +size_t CaptureAllFromCameraResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.vision.v1.CaptureAllFromCameraResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .viam.service.vision.v1.Detection detections = 2 [json_name = "detections"]; total_size += 1UL * this->_internal_detections_size(); - for (const auto& msg : this->_internal_detections()) { + for (const auto& msg : this->detections_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // repeated .viam.service.vision.v1.Classification classifications = 3 [json_name = "classifications"]; total_size += 1UL * this->_internal_classifications_size(); - for (const auto& msg : this->_internal_classifications()) { + for (const auto& msg : this->classifications_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // repeated .viam.common.v1.PointCloudObject objects = 4 [json_name = "objects"]; total_size += 1UL * this->_internal_objects_size(); - for (const auto& msg : this->_internal_objects()) { + for (const auto& msg : this->objects_) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // .viam.component.camera.v1.Image image = 1 [json_name = "image"]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.image_); - } - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (cached_has_bits & 0x00000002u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.extra_); - } + // .viam.component.camera.v1.Image image = 1 [json_name = "image"]; + if (this->_internal_has_image()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *image_); + } + // .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, &_impl_._cached_size_); + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData CaptureAllFromCameraResponse::_class_data_ = { - CaptureAllFromCameraResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CaptureAllFromCameraResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CaptureAllFromCameraResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* CaptureAllFromCameraResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CaptureAllFromCameraResponse::GetClassData() const { return &_class_data_; } + +void CaptureAllFromCameraResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void CaptureAllFromCameraResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.CaptureAllFromCameraResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void CaptureAllFromCameraResponse::MergeFrom(const CaptureAllFromCameraResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.CaptureAllFromCameraResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_detections()->MergeFrom( - from._internal_detections()); - _this->_internal_mutable_classifications()->MergeFrom( - from._internal_classifications()); - _this->_internal_mutable_objects()->MergeFrom( - from._internal_objects()); - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_image()->::viam::component::camera::v1::Image::MergeFrom( - from._internal_image()); - } - if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_extra()->::google::protobuf::Struct::MergeFrom( - from._internal_extra()); - } + detections_.MergeFrom(from.detections_); + classifications_.MergeFrom(from.classifications_); + objects_.MergeFrom(from.objects_); + if (from._internal_has_image()) { + _internal_mutable_image()->::viam::component::camera::v1::Image::MergeFrom(from._internal_image()); + } + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CaptureAllFromCameraResponse::CopyFrom(const CaptureAllFromCameraResponse& from) { @@ -4995,225 +4861,227 @@ void CaptureAllFromCameraResponse::CopyFrom(const CaptureAllFromCameraResponse& MergeFrom(from); } -PROTOBUF_NOINLINE bool CaptureAllFromCameraResponse::IsInitialized() const { +bool CaptureAllFromCameraResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* CaptureAllFromCameraResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void CaptureAllFromCameraResponse::InternalSwap(CaptureAllFromCameraResponse* PROTOBUF_RESTRICT other) { +void CaptureAllFromCameraResponse::InternalSwap(CaptureAllFromCameraResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.detections_.InternalSwap(&other->_impl_.detections_); - _impl_.classifications_.InternalSwap(&other->_impl_.classifications_); - _impl_.objects_.InternalSwap(&other->_impl_.objects_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(CaptureAllFromCameraResponse, _impl_.extra_) - + sizeof(CaptureAllFromCameraResponse::_impl_.extra_) - - PROTOBUF_FIELD_OFFSET(CaptureAllFromCameraResponse, _impl_.image_)>( - reinterpret_cast(&_impl_.image_), - reinterpret_cast(&other->_impl_.image_)); -} - -::google::protobuf::Metadata CaptureAllFromCameraResponse::GetMetadata() const { + detections_.InternalSwap(&other->detections_); + classifications_.InternalSwap(&other->classifications_); + objects_.InternalSwap(&other->objects_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(CaptureAllFromCameraResponse, extra_) + + sizeof(CaptureAllFromCameraResponse::extra_) + - PROTOBUF_FIELD_OFFSET(CaptureAllFromCameraResponse, image_)>( + reinterpret_cast(&image_), + reinterpret_cast(&other->image_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata CaptureAllFromCameraResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_getter, &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_once, file_level_metadata_service_2fvision_2fv1_2fvision_2eproto[14]); } + // =================================================================== class GetPropertiesResponse::_Internal { public: }; -GetPropertiesResponse::GetPropertiesResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); +GetPropertiesResponse::GetPropertiesResponse(::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.vision.v1.GetPropertiesResponse) } -GetPropertiesResponse::GetPropertiesResponse( - ::google::protobuf::Arena* arena, const GetPropertiesResponse& from) - : GetPropertiesResponse(arena) { - MergeFrom(from); +GetPropertiesResponse::GetPropertiesResponse(const GetPropertiesResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&classifications_supported_, &from.classifications_supported_, + static_cast(reinterpret_cast(&object_point_clouds_supported_) - + reinterpret_cast(&classifications_supported_)) + sizeof(object_point_clouds_supported_)); + // @@protoc_insertion_point(copy_constructor:viam.service.vision.v1.GetPropertiesResponse) } -inline PROTOBUF_NDEBUG_INLINE GetPropertiesResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} -inline void GetPropertiesResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, classifications_supported_), - 0, - offsetof(Impl_, object_point_clouds_supported_) - - offsetof(Impl_, classifications_supported_) + - sizeof(Impl_::object_point_clouds_supported_)); +inline void GetPropertiesResponse::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&classifications_supported_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&object_point_clouds_supported_) - + reinterpret_cast(&classifications_supported_)) + sizeof(object_point_clouds_supported_)); } + GetPropertiesResponse::~GetPropertiesResponse() { // @@protoc_insertion_point(destructor:viam.service.vision.v1.GetPropertiesResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); } + inline void GetPropertiesResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void GetPropertiesResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); } -PROTOBUF_NOINLINE void GetPropertiesResponse::Clear() { +void GetPropertiesResponse::Clear() { // @@protoc_insertion_point(message_clear_start:viam.service.vision.v1.GetPropertiesResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&_impl_.classifications_supported_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.object_point_clouds_supported_) - - reinterpret_cast(&_impl_.classifications_supported_)) + sizeof(_impl_.object_point_clouds_supported_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetPropertiesResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + ::memset(&classifications_supported_, 0, static_cast( + reinterpret_cast(&object_point_clouds_supported_) - + reinterpret_cast(&classifications_supported_)) + sizeof(object_point_clouds_supported_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetPropertiesResponse::_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) { + // bool classifications_supported = 1 [json_name = "classificationsSupported"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + classifications_supported_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool detections_supported = 2 [json_name = "detectionsSupported"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + detections_supported_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool object_point_clouds_supported = 3 [json_name = "objectPointCloudsSupported"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + object_point_clouds_supported_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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_ } - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 0, 2> GetPropertiesResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GetPropertiesResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // bool classifications_supported = 1 [json_name = "classificationsSupported"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.classifications_supported_)}}, - // bool detections_supported = 2 [json_name = "detectionsSupported"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.detections_supported_)}}, - // bool object_point_clouds_supported = 3 [json_name = "objectPointCloudsSupported"]; - {::_pbi::TcParser::SingularVarintNoZag1(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.object_point_clouds_supported_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bool classifications_supported = 1 [json_name = "classificationsSupported"]; - {PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.classifications_supported_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // bool detections_supported = 2 [json_name = "detectionsSupported"]; - {PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.detections_supported_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // bool object_point_clouds_supported = 3 [json_name = "objectPointCloudsSupported"]; - {PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.object_point_clouds_supported_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* GetPropertiesResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +uint8_t* GetPropertiesResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:viam.service.vision.v1.GetPropertiesResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + uint32_t cached_has_bits = 0; + (void) cached_has_bits; // bool classifications_supported = 1 [json_name = "classificationsSupported"]; if (this->_internal_classifications_supported() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 1, this->_internal_classifications_supported(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_classifications_supported(), target); } // bool detections_supported = 2 [json_name = "detectionsSupported"]; if (this->_internal_detections_supported() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 2, this->_internal_detections_supported(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_detections_supported(), target); } // bool object_point_clouds_supported = 3 [json_name = "objectPointCloudsSupported"]; if (this->_internal_object_point_clouds_supported() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 3, this->_internal_object_point_clouds_supported(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_object_point_clouds_supported(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + 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.vision.v1.GetPropertiesResponse) return target; } -::size_t GetPropertiesResponse::ByteSizeLong() const { +size_t GetPropertiesResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:viam.service.vision.v1.GetPropertiesResponse) - ::size_t total_size = 0; + size_t total_size = 0; - ::uint32_t cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // bool classifications_supported = 1 [json_name = "classificationsSupported"]; if (this->_internal_classifications_supported() != 0) { - total_size += 2; + total_size += 1 + 1; } // bool detections_supported = 2 [json_name = "detectionsSupported"]; if (this->_internal_detections_supported() != 0) { - total_size += 2; + total_size += 1 + 1; } // bool object_point_clouds_supported = 3 [json_name = "objectPointCloudsSupported"]; if (this->_internal_object_point_clouds_supported() != 0) { - total_size += 2; + total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::google::protobuf::Message::ClassData GetPropertiesResponse::_class_data_ = { - GetPropertiesResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetPropertiesResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetPropertiesResponse::MergeImpl }; -const ::google::protobuf::Message::ClassData* GetPropertiesResponse::GetClassData() const { - return &_class_data_; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetPropertiesResponse::GetClassData() const { return &_class_data_; } + +void GetPropertiesResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); } -void GetPropertiesResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.GetPropertiesResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; + +void GetPropertiesResponse::MergeFrom(const GetPropertiesResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.vision.v1.GetPropertiesResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_classifications_supported() != 0) { - _this->_internal_set_classifications_supported(from._internal_classifications_supported()); + _internal_set_classifications_supported(from._internal_classifications_supported()); } if (from._internal_detections_supported() != 0) { - _this->_internal_set_detections_supported(from._internal_detections_supported()); + _internal_set_detections_supported(from._internal_detections_supported()); } if (from._internal_object_point_clouds_supported() != 0) { - _this->_internal_set_object_point_clouds_supported(from._internal_object_point_clouds_supported()); + _internal_set_object_point_clouds_supported(from._internal_object_point_clouds_supported()); } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetPropertiesResponse::CopyFrom(const GetPropertiesResponse& from) { @@ -5223,37 +5091,98 @@ void GetPropertiesResponse::CopyFrom(const GetPropertiesResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetPropertiesResponse::IsInitialized() const { +bool GetPropertiesResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetPropertiesResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetPropertiesResponse::InternalSwap(GetPropertiesResponse* PROTOBUF_RESTRICT other) { +void GetPropertiesResponse::InternalSwap(GetPropertiesResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.object_point_clouds_supported_) - + sizeof(GetPropertiesResponse::_impl_.object_point_clouds_supported_) - - PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, _impl_.classifications_supported_)>( - reinterpret_cast(&_impl_.classifications_supported_), - reinterpret_cast(&other->_impl_.classifications_supported_)); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, object_point_clouds_supported_) + + sizeof(GetPropertiesResponse::object_point_clouds_supported_) + - PROTOBUF_FIELD_OFFSET(GetPropertiesResponse, classifications_supported_)>( + reinterpret_cast(&classifications_supported_), + reinterpret_cast(&other->classifications_supported_)); } -::google::protobuf::Metadata GetPropertiesResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata GetPropertiesResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_getter, &descriptor_table_service_2fvision_2fv1_2fvision_2eproto_once, file_level_metadata_service_2fvision_2fv1_2fvision_2eproto[15]); } + // @@protoc_insertion_point(namespace_scope) } // namespace v1 } // namespace vision } // namespace service } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::viam::service::vision::v1::GetDetectionsRequest* +Arena::CreateMaybeMessage< ::viam::service::vision::v1::GetDetectionsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::vision::v1::GetDetectionsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::vision::v1::GetDetectionsResponse* +Arena::CreateMaybeMessage< ::viam::service::vision::v1::GetDetectionsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::vision::v1::GetDetectionsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::vision::v1::GetDetectionsFromCameraRequest* +Arena::CreateMaybeMessage< ::viam::service::vision::v1::GetDetectionsFromCameraRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::vision::v1::GetDetectionsFromCameraRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::vision::v1::GetDetectionsFromCameraResponse* +Arena::CreateMaybeMessage< ::viam::service::vision::v1::GetDetectionsFromCameraResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::vision::v1::GetDetectionsFromCameraResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::vision::v1::Detection* +Arena::CreateMaybeMessage< ::viam::service::vision::v1::Detection >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::vision::v1::Detection >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::vision::v1::GetClassificationsRequest* +Arena::CreateMaybeMessage< ::viam::service::vision::v1::GetClassificationsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::vision::v1::GetClassificationsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::vision::v1::GetClassificationsResponse* +Arena::CreateMaybeMessage< ::viam::service::vision::v1::GetClassificationsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::vision::v1::GetClassificationsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::vision::v1::GetClassificationsFromCameraRequest* +Arena::CreateMaybeMessage< ::viam::service::vision::v1::GetClassificationsFromCameraRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::vision::v1::GetClassificationsFromCameraRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::vision::v1::GetClassificationsFromCameraResponse* +Arena::CreateMaybeMessage< ::viam::service::vision::v1::GetClassificationsFromCameraResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::vision::v1::GetClassificationsFromCameraResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::vision::v1::Classification* +Arena::CreateMaybeMessage< ::viam::service::vision::v1::Classification >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::vision::v1::Classification >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::vision::v1::GetObjectPointCloudsRequest* +Arena::CreateMaybeMessage< ::viam::service::vision::v1::GetObjectPointCloudsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::vision::v1::GetObjectPointCloudsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::vision::v1::GetObjectPointCloudsResponse* +Arena::CreateMaybeMessage< ::viam::service::vision::v1::GetObjectPointCloudsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::vision::v1::GetObjectPointCloudsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::vision::v1::GetPropertiesRequest* +Arena::CreateMaybeMessage< ::viam::service::vision::v1::GetPropertiesRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::vision::v1::GetPropertiesRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::vision::v1::CaptureAllFromCameraRequest* +Arena::CreateMaybeMessage< ::viam::service::vision::v1::CaptureAllFromCameraRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::vision::v1::CaptureAllFromCameraRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::vision::v1::CaptureAllFromCameraResponse* +Arena::CreateMaybeMessage< ::viam::service::vision::v1::CaptureAllFromCameraResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::vision::v1::CaptureAllFromCameraResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::service::vision::v1::GetPropertiesResponse* +Arena::CreateMaybeMessage< ::viam::service::vision::v1::GetPropertiesResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::vision::v1::GetPropertiesResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/service/vision/v1/vision.pb.h b/src/viam/api/service/vision/v1/vision.pb.h index a7110bf48..d79ddc4c0 100644 --- a/src/viam/api/service/vision/v1/vision.pb.h +++ b/src/viam/api/service/vision/v1/vision.pb.h @@ -1,64 +1,53 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: service/vision/v1/vision.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_service_2fvision_2fv1_2fvision_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_service_2fvision_2fv1_2fvision_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_service_2fvision_2fv1_2fvision_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_service_2fvision_2fv1_2fvision_2eproto #include #include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/unknown_field_set.h" + +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include #include "common/v1/common.pb.h" #include "component/camera/v1/camera.pb.h" #include "google/api/annotations.pb.h" -#include "google/protobuf/struct.pb.h" +#include // @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - +#include #define PROTOBUF_INTERNAL_EXPORT_service_2fvision_2fv1_2fvision_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_service_2fvision_2fv1_2fvision_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_service_2fvision_2fv1_2fvision_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_service_2fvision_2fv1_2fvision_2eproto; namespace viam { namespace service { namespace vision { @@ -115,11 +104,24 @@ extern GetPropertiesResponseDefaultTypeInternal _GetPropertiesResponse_default_i } // namespace vision } // namespace service } // namespace viam -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - +PROTOBUF_NAMESPACE_OPEN +template<> ::viam::service::vision::v1::CaptureAllFromCameraRequest* Arena::CreateMaybeMessage<::viam::service::vision::v1::CaptureAllFromCameraRequest>(Arena*); +template<> ::viam::service::vision::v1::CaptureAllFromCameraResponse* Arena::CreateMaybeMessage<::viam::service::vision::v1::CaptureAllFromCameraResponse>(Arena*); +template<> ::viam::service::vision::v1::Classification* Arena::CreateMaybeMessage<::viam::service::vision::v1::Classification>(Arena*); +template<> ::viam::service::vision::v1::Detection* Arena::CreateMaybeMessage<::viam::service::vision::v1::Detection>(Arena*); +template<> ::viam::service::vision::v1::GetClassificationsFromCameraRequest* Arena::CreateMaybeMessage<::viam::service::vision::v1::GetClassificationsFromCameraRequest>(Arena*); +template<> ::viam::service::vision::v1::GetClassificationsFromCameraResponse* Arena::CreateMaybeMessage<::viam::service::vision::v1::GetClassificationsFromCameraResponse>(Arena*); +template<> ::viam::service::vision::v1::GetClassificationsRequest* Arena::CreateMaybeMessage<::viam::service::vision::v1::GetClassificationsRequest>(Arena*); +template<> ::viam::service::vision::v1::GetClassificationsResponse* Arena::CreateMaybeMessage<::viam::service::vision::v1::GetClassificationsResponse>(Arena*); +template<> ::viam::service::vision::v1::GetDetectionsFromCameraRequest* Arena::CreateMaybeMessage<::viam::service::vision::v1::GetDetectionsFromCameraRequest>(Arena*); +template<> ::viam::service::vision::v1::GetDetectionsFromCameraResponse* Arena::CreateMaybeMessage<::viam::service::vision::v1::GetDetectionsFromCameraResponse>(Arena*); +template<> ::viam::service::vision::v1::GetDetectionsRequest* Arena::CreateMaybeMessage<::viam::service::vision::v1::GetDetectionsRequest>(Arena*); +template<> ::viam::service::vision::v1::GetDetectionsResponse* Arena::CreateMaybeMessage<::viam::service::vision::v1::GetDetectionsResponse>(Arena*); +template<> ::viam::service::vision::v1::GetObjectPointCloudsRequest* Arena::CreateMaybeMessage<::viam::service::vision::v1::GetObjectPointCloudsRequest>(Arena*); +template<> ::viam::service::vision::v1::GetObjectPointCloudsResponse* Arena::CreateMaybeMessage<::viam::service::vision::v1::GetObjectPointCloudsResponse>(Arena*); +template<> ::viam::service::vision::v1::GetPropertiesRequest* Arena::CreateMaybeMessage<::viam::service::vision::v1::GetPropertiesRequest>(Arena*); +template<> ::viam::service::vision::v1::GetPropertiesResponse* Arena::CreateMaybeMessage<::viam::service::vision::v1::GetPropertiesResponse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE namespace viam { namespace service { namespace vision { @@ -127,33 +129,28 @@ namespace v1 { // =================================================================== - -// ------------------------------------------------------------------- - -class GetPropertiesResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.GetPropertiesResponse) */ { +class GetDetectionsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.GetDetectionsRequest) */ { public: - inline GetPropertiesResponse() : GetPropertiesResponse(nullptr) {} - ~GetPropertiesResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetPropertiesResponse(::google::protobuf::internal::ConstantInitialized); + inline GetDetectionsRequest() : GetDetectionsRequest(nullptr) {} + ~GetDetectionsRequest() override; + explicit PROTOBUF_CONSTEXPR GetDetectionsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetPropertiesResponse(const GetPropertiesResponse& from) - : GetPropertiesResponse(nullptr, from) {} - GetPropertiesResponse(GetPropertiesResponse&& from) noexcept - : GetPropertiesResponse() { + GetDetectionsRequest(const GetDetectionsRequest& from); + GetDetectionsRequest(GetDetectionsRequest&& from) noexcept + : GetDetectionsRequest() { *this = ::std::move(from); } - inline GetPropertiesResponse& operator=(const GetPropertiesResponse& from) { + inline GetDetectionsRequest& operator=(const GetDetectionsRequest& from) { CopyFrom(from); return *this; } - inline GetPropertiesResponse& operator=(GetPropertiesResponse&& from) noexcept { + inline GetDetectionsRequest& operator=(GetDetectionsRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -163,196 +160,219 @@ class GetPropertiesResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetPropertiesResponse& default_instance() { + static const GetDetectionsRequest& default_instance() { return *internal_default_instance(); } - static inline const GetPropertiesResponse* internal_default_instance() { - return reinterpret_cast( - &_GetPropertiesResponse_default_instance_); + static inline const GetDetectionsRequest* internal_default_instance() { + return reinterpret_cast( + &_GetDetectionsRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 15; + 0; - friend void swap(GetPropertiesResponse& a, GetPropertiesResponse& b) { + friend void swap(GetDetectionsRequest& a, GetDetectionsRequest& b) { a.Swap(&b); } - inline void Swap(GetPropertiesResponse* other) { + inline void Swap(GetDetectionsRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetPropertiesResponse* other) { + void UnsafeArenaSwap(GetDetectionsRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetPropertiesResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetPropertiesResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetPropertiesResponse& from) { - GetPropertiesResponse::MergeImpl(*this, from); + GetDetectionsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetDetectionsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetDetectionsRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetPropertiesResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetDetectionsRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.vision.v1.GetPropertiesResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.vision.v1.GetDetectionsRequest"; } protected: - explicit GetPropertiesResponse(::google::protobuf::Arena* arena); - GetPropertiesResponse(::google::protobuf::Arena* arena, const GetPropertiesResponse& from); + explicit GetDetectionsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kClassificationsSupportedFieldNumber = 1, - kDetectionsSupportedFieldNumber = 2, - kObjectPointCloudsSupportedFieldNumber = 3, + kNameFieldNumber = 1, + kImageFieldNumber = 2, + kMimeTypeFieldNumber = 5, + kExtraFieldNumber = 99, + kWidthFieldNumber = 3, + kHeightFieldNumber = 4, }; - // bool classifications_supported = 1 [json_name = "classificationsSupported"]; - void clear_classifications_supported() ; - bool classifications_supported() const; - void set_classifications_supported(bool value); - + // 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: - bool _internal_classifications_supported() const; - void _internal_set_classifications_supported(bool value); + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + // bytes image = 2 [json_name = "image"]; + void clear_image(); + const std::string& image() const; + template + void set_image(ArgT0&& arg0, ArgT... args); + std::string* mutable_image(); + PROTOBUF_NODISCARD std::string* release_image(); + void set_allocated_image(std::string* image); + private: + const std::string& _internal_image() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_image(const std::string& value); + std::string* _internal_mutable_image(); public: - // bool detections_supported = 2 [json_name = "detectionsSupported"]; - void clear_detections_supported() ; - bool detections_supported() const; - void set_detections_supported(bool value); + // string mime_type = 5 [json_name = "mimeType"]; + void clear_mime_type(); + const std::string& mime_type() const; + template + void set_mime_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_mime_type(); + PROTOBUF_NODISCARD std::string* release_mime_type(); + void set_allocated_mime_type(std::string* mime_type); private: - bool _internal_detections_supported() const; - void _internal_set_detections_supported(bool value); + const std::string& _internal_mime_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_mime_type(const std::string& value); + std::string* _internal_mutable_mime_type(); + public: + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + bool has_extra() const; + private: + bool _internal_has_extra() const; public: - // bool object_point_clouds_supported = 3 [json_name = "objectPointCloudsSupported"]; - void clear_object_point_clouds_supported() ; - bool object_point_clouds_supported() const; - void set_object_point_clouds_supported(bool value); + 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(); + // int64 width = 3 [json_name = "width"]; + void clear_width(); + int64_t width() const; + void set_width(int64_t value); private: - bool _internal_object_point_clouds_supported() const; - void _internal_set_object_point_clouds_supported(bool value); + int64_t _internal_width() const; + void _internal_set_width(int64_t value); + public: + // int64 height = 4 [json_name = "height"]; + void clear_height(); + int64_t height() const; + void set_height(int64_t value); + private: + int64_t _internal_height() const; + void _internal_set_height(int64_t value); public: - // @@protoc_insertion_point(class_scope:viam.service.vision.v1.GetPropertiesResponse) + + // @@protoc_insertion_point(class_scope:viam.service.vision.v1.GetDetectionsRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - bool classifications_supported_; - bool detections_supported_; - bool object_point_clouds_supported_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr image_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr mime_type_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + int64_t width_; + int64_t height_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fvision_2fv1_2fvision_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Detection final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.Detection) */ { +class GetDetectionsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.GetDetectionsResponse) */ { public: - inline Detection() : Detection(nullptr) {} - ~Detection() override; - template - explicit PROTOBUF_CONSTEXPR Detection(::google::protobuf::internal::ConstantInitialized); + inline GetDetectionsResponse() : GetDetectionsResponse(nullptr) {} + ~GetDetectionsResponse() override; + explicit PROTOBUF_CONSTEXPR GetDetectionsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Detection(const Detection& from) - : Detection(nullptr, from) {} - Detection(Detection&& from) noexcept - : Detection() { + GetDetectionsResponse(const GetDetectionsResponse& from); + GetDetectionsResponse(GetDetectionsResponse&& from) noexcept + : GetDetectionsResponse() { *this = ::std::move(from); } - inline Detection& operator=(const Detection& from) { + inline GetDetectionsResponse& operator=(const GetDetectionsResponse& from) { CopyFrom(from); return *this; } - inline Detection& operator=(Detection&& from) noexcept { + inline GetDetectionsResponse& operator=(GetDetectionsResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -362,243 +382,149 @@ class Detection final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Detection& default_instance() { + static const GetDetectionsResponse& default_instance() { return *internal_default_instance(); } - static inline const Detection* internal_default_instance() { - return reinterpret_cast( - &_Detection_default_instance_); + static inline const GetDetectionsResponse* internal_default_instance() { + return reinterpret_cast( + &_GetDetectionsResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 4; + 1; - friend void swap(Detection& a, Detection& b) { + friend void swap(GetDetectionsResponse& a, GetDetectionsResponse& b) { a.Swap(&b); } - inline void Swap(Detection* other) { + inline void Swap(GetDetectionsResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Detection* other) { + void UnsafeArenaSwap(GetDetectionsResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Detection* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Detection& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Detection& from) { - Detection::MergeImpl(*this, from); + GetDetectionsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetDetectionsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetDetectionsResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Detection* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetDetectionsResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.vision.v1.Detection"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.vision.v1.GetDetectionsResponse"; } protected: - explicit Detection(::google::protobuf::Arena* arena); - Detection(::google::protobuf::Arena* arena, const Detection& from); + explicit GetDetectionsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kClassNameFieldNumber = 6, - kXMinFieldNumber = 1, - kYMinFieldNumber = 2, - kXMaxFieldNumber = 3, - kYMaxFieldNumber = 4, - kConfidenceFieldNumber = 5, + kDetectionsFieldNumber = 1, }; - // string class_name = 6 [json_name = "className"]; - void clear_class_name() ; - const std::string& class_name() const; - template - void set_class_name(Arg_&& arg, Args_... args); - std::string* mutable_class_name(); - PROTOBUF_NODISCARD std::string* release_class_name(); - void set_allocated_class_name(std::string* value); - - private: - const std::string& _internal_class_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_class_name( - const std::string& value); - std::string* _internal_mutable_class_name(); - - public: - // optional int64 x_min = 1 [json_name = "xMin"]; - bool has_x_min() const; - void clear_x_min() ; - ::int64_t x_min() const; - void set_x_min(::int64_t value); - - private: - ::int64_t _internal_x_min() const; - void _internal_set_x_min(::int64_t value); - - public: - // optional int64 y_min = 2 [json_name = "yMin"]; - bool has_y_min() const; - void clear_y_min() ; - ::int64_t y_min() const; - void set_y_min(::int64_t value); - - private: - ::int64_t _internal_y_min() const; - void _internal_set_y_min(::int64_t value); - - public: - // optional int64 x_max = 3 [json_name = "xMax"]; - bool has_x_max() const; - void clear_x_max() ; - ::int64_t x_max() const; - void set_x_max(::int64_t value); - + // repeated .viam.service.vision.v1.Detection detections = 1 [json_name = "detections"]; + int detections_size() const; private: - ::int64_t _internal_x_max() const; - void _internal_set_x_max(::int64_t value); - + int _internal_detections_size() const; public: - // optional int64 y_max = 4 [json_name = "yMax"]; - bool has_y_max() const; - void clear_y_max() ; - ::int64_t y_max() const; - void set_y_max(::int64_t value); - + void clear_detections(); + ::viam::service::vision::v1::Detection* mutable_detections(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::vision::v1::Detection >* + mutable_detections(); private: - ::int64_t _internal_y_max() const; - void _internal_set_y_max(::int64_t value); - + const ::viam::service::vision::v1::Detection& _internal_detections(int index) const; + ::viam::service::vision::v1::Detection* _internal_add_detections(); public: - // double confidence = 5 [json_name = "confidence"]; - void clear_confidence() ; - double confidence() const; - void set_confidence(double value); - - private: - double _internal_confidence() const; - void _internal_set_confidence(double value); + const ::viam::service::vision::v1::Detection& detections(int index) const; + ::viam::service::vision::v1::Detection* add_detections(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::vision::v1::Detection >& + detections() const; - public: - // @@protoc_insertion_point(class_scope:viam.service.vision.v1.Detection) + // @@protoc_insertion_point(class_scope:viam.service.vision.v1.GetDetectionsResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 6, 0, - 51, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr class_name_; - ::int64_t x_min_; - ::int64_t y_min_; - ::int64_t x_max_; - ::int64_t y_max_; - double confidence_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::vision::v1::Detection > detections_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fvision_2fv1_2fvision_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Classification final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.Classification) */ { +class GetDetectionsFromCameraRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.GetDetectionsFromCameraRequest) */ { public: - inline Classification() : Classification(nullptr) {} - ~Classification() override; - template - explicit PROTOBUF_CONSTEXPR Classification(::google::protobuf::internal::ConstantInitialized); + inline GetDetectionsFromCameraRequest() : GetDetectionsFromCameraRequest(nullptr) {} + ~GetDetectionsFromCameraRequest() override; + explicit PROTOBUF_CONSTEXPR GetDetectionsFromCameraRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline Classification(const Classification& from) - : Classification(nullptr, from) {} - Classification(Classification&& from) noexcept - : Classification() { + GetDetectionsFromCameraRequest(const GetDetectionsFromCameraRequest& from); + GetDetectionsFromCameraRequest(GetDetectionsFromCameraRequest&& from) noexcept + : GetDetectionsFromCameraRequest() { *this = ::std::move(from); } - inline Classification& operator=(const Classification& from) { + inline GetDetectionsFromCameraRequest& operator=(const GetDetectionsFromCameraRequest& from) { CopyFrom(from); return *this; } - inline Classification& operator=(Classification&& from) noexcept { + inline GetDetectionsFromCameraRequest& operator=(GetDetectionsFromCameraRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -608,190 +534,181 @@ class Classification final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Classification& default_instance() { + static const GetDetectionsFromCameraRequest& default_instance() { return *internal_default_instance(); } - static inline const Classification* internal_default_instance() { - return reinterpret_cast( - &_Classification_default_instance_); + static inline const GetDetectionsFromCameraRequest* internal_default_instance() { + return reinterpret_cast( + &_GetDetectionsFromCameraRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 9; + 2; - friend void swap(Classification& a, Classification& b) { + friend void swap(GetDetectionsFromCameraRequest& a, GetDetectionsFromCameraRequest& b) { a.Swap(&b); } - inline void Swap(Classification* other) { + inline void Swap(GetDetectionsFromCameraRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Classification* other) { + void UnsafeArenaSwap(GetDetectionsFromCameraRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Classification* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Classification& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Classification& from) { - Classification::MergeImpl(*this, from); + GetDetectionsFromCameraRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetDetectionsFromCameraRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetDetectionsFromCameraRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(Classification* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetDetectionsFromCameraRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.vision.v1.Classification"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.vision.v1.GetDetectionsFromCameraRequest"; } protected: - explicit Classification(::google::protobuf::Arena* arena); - Classification(::google::protobuf::Arena* arena, const Classification& from); + explicit GetDetectionsFromCameraRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kClassNameFieldNumber = 1, - kConfidenceFieldNumber = 2, - }; - // string class_name = 1 [json_name = "className"]; - void clear_class_name() ; - const std::string& class_name() const; - template - void set_class_name(Arg_&& arg, Args_... args); - std::string* mutable_class_name(); - PROTOBUF_NODISCARD std::string* release_class_name(); - void set_allocated_class_name(std::string* value); - + kNameFieldNumber = 1, + kCameraNameFieldNumber = 2, + 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_class_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_class_name( - const std::string& value); - std::string* _internal_mutable_class_name(); - + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); public: - // double confidence = 2 [json_name = "confidence"]; - void clear_confidence() ; - double confidence() const; - void set_confidence(double value); + // string camera_name = 2 [json_name = "cameraName"]; + void clear_camera_name(); + const std::string& camera_name() const; + template + void set_camera_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_camera_name(); + PROTOBUF_NODISCARD std::string* release_camera_name(); + void set_allocated_camera_name(std::string* camera_name); private: - double _internal_confidence() const; - void _internal_set_confidence(double value); + const std::string& _internal_camera_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_camera_name(const std::string& value); + std::string* _internal_mutable_camera_name(); + public: + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + bool has_extra() const; + private: + bool _internal_has_extra() const; public: - // @@protoc_insertion_point(class_scope:viam.service.vision.v1.Classification) + 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.service.vision.v1.GetDetectionsFromCameraRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 56, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr class_name_; - double confidence_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr camera_name_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fvision_2fv1_2fvision_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetPropertiesRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.GetPropertiesRequest) */ { +class GetDetectionsFromCameraResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.GetDetectionsFromCameraResponse) */ { public: - inline GetPropertiesRequest() : GetPropertiesRequest(nullptr) {} - ~GetPropertiesRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetPropertiesRequest(::google::protobuf::internal::ConstantInitialized); + inline GetDetectionsFromCameraResponse() : GetDetectionsFromCameraResponse(nullptr) {} + ~GetDetectionsFromCameraResponse() override; + explicit PROTOBUF_CONSTEXPR GetDetectionsFromCameraResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetPropertiesRequest(const GetPropertiesRequest& from) - : GetPropertiesRequest(nullptr, from) {} - GetPropertiesRequest(GetPropertiesRequest&& from) noexcept - : GetPropertiesRequest() { + GetDetectionsFromCameraResponse(const GetDetectionsFromCameraResponse& from); + GetDetectionsFromCameraResponse(GetDetectionsFromCameraResponse&& from) noexcept + : GetDetectionsFromCameraResponse() { *this = ::std::move(from); } - inline GetPropertiesRequest& operator=(const GetPropertiesRequest& from) { + inline GetDetectionsFromCameraResponse& operator=(const GetDetectionsFromCameraResponse& from) { CopyFrom(from); return *this; } - inline GetPropertiesRequest& operator=(GetPropertiesRequest&& from) noexcept { + inline GetDetectionsFromCameraResponse& operator=(GetDetectionsFromCameraResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -801,196 +718,149 @@ class GetPropertiesRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetPropertiesRequest& default_instance() { + static const GetDetectionsFromCameraResponse& default_instance() { return *internal_default_instance(); } - static inline const GetPropertiesRequest* internal_default_instance() { - return reinterpret_cast( - &_GetPropertiesRequest_default_instance_); + static inline const GetDetectionsFromCameraResponse* internal_default_instance() { + return reinterpret_cast( + &_GetDetectionsFromCameraResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 12; + 3; - friend void swap(GetPropertiesRequest& a, GetPropertiesRequest& b) { + friend void swap(GetDetectionsFromCameraResponse& a, GetDetectionsFromCameraResponse& b) { a.Swap(&b); } - inline void Swap(GetPropertiesRequest* other) { + inline void Swap(GetDetectionsFromCameraResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetPropertiesRequest* other) { + void UnsafeArenaSwap(GetDetectionsFromCameraResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetPropertiesRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetPropertiesRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetPropertiesRequest& from) { - GetPropertiesRequest::MergeImpl(*this, from); + GetDetectionsFromCameraResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetDetectionsFromCameraResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetDetectionsFromCameraResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetPropertiesRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetDetectionsFromCameraResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.vision.v1.GetPropertiesRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.vision.v1.GetDetectionsFromCameraResponse"; } protected: - explicit GetPropertiesRequest(::google::protobuf::Arena* arena); - GetPropertiesRequest(::google::protobuf::Arena* arena, const GetPropertiesRequest& from); + explicit GetDetectionsFromCameraResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kNameFieldNumber = 1, - kExtraFieldNumber = 99, + kDetectionsFieldNumber = 1, }; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + // repeated .viam.service.vision.v1.Detection detections = 1 [json_name = "detections"]; + int detections_size() const; private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - + int _internal_detections_size() const; public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - + void clear_detections(); + ::viam::service::vision::v1::Detection* mutable_detections(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::vision::v1::Detection >* + mutable_detections(); private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - + const ::viam::service::vision::v1::Detection& _internal_detections(int index) const; + ::viam::service::vision::v1::Detection* _internal_add_detections(); public: - // @@protoc_insertion_point(class_scope:viam.service.vision.v1.GetPropertiesRequest) + const ::viam::service::vision::v1::Detection& detections(int index) const; + ::viam::service::vision::v1::Detection* add_detections(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::vision::v1::Detection >& + detections() const; + + // @@protoc_insertion_point(class_scope:viam.service.vision.v1.GetDetectionsFromCameraResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 2, 1, - 56, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::vision::v1::Detection > detections_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fvision_2fv1_2fvision_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetObjectPointCloudsRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.GetObjectPointCloudsRequest) */ { +class Detection final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.Detection) */ { public: - inline GetObjectPointCloudsRequest() : GetObjectPointCloudsRequest(nullptr) {} - ~GetObjectPointCloudsRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetObjectPointCloudsRequest(::google::protobuf::internal::ConstantInitialized); + inline Detection() : Detection(nullptr) {} + ~Detection() override; + explicit PROTOBUF_CONSTEXPR Detection(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetObjectPointCloudsRequest(const GetObjectPointCloudsRequest& from) - : GetObjectPointCloudsRequest(nullptr, from) {} - GetObjectPointCloudsRequest(GetObjectPointCloudsRequest&& from) noexcept - : GetObjectPointCloudsRequest() { + Detection(const Detection& from); + Detection(Detection&& from) noexcept + : Detection() { *this = ::std::move(from); } - inline GetObjectPointCloudsRequest& operator=(const GetObjectPointCloudsRequest& from) { + inline Detection& operator=(const Detection& from) { CopyFrom(from); return *this; } - inline GetObjectPointCloudsRequest& operator=(GetObjectPointCloudsRequest&& from) noexcept { + inline Detection& operator=(Detection&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1000,232 +870,217 @@ class GetObjectPointCloudsRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetObjectPointCloudsRequest& default_instance() { + static const Detection& default_instance() { return *internal_default_instance(); } - static inline const GetObjectPointCloudsRequest* internal_default_instance() { - return reinterpret_cast( - &_GetObjectPointCloudsRequest_default_instance_); + static inline const Detection* internal_default_instance() { + return reinterpret_cast( + &_Detection_default_instance_); } static constexpr int kIndexInFileMessages = - 10; + 4; - friend void swap(GetObjectPointCloudsRequest& a, GetObjectPointCloudsRequest& b) { + friend void swap(Detection& a, Detection& b) { a.Swap(&b); } - inline void Swap(GetObjectPointCloudsRequest* other) { + inline void Swap(Detection* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetObjectPointCloudsRequest* other) { + void UnsafeArenaSwap(Detection* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetObjectPointCloudsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetObjectPointCloudsRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetObjectPointCloudsRequest& from) { - GetObjectPointCloudsRequest::MergeImpl(*this, from); + Detection* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Detection& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Detection& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetObjectPointCloudsRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(Detection* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.vision.v1.GetObjectPointCloudsRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.vision.v1.Detection"; } protected: - explicit GetObjectPointCloudsRequest(::google::protobuf::Arena* arena); - GetObjectPointCloudsRequest(::google::protobuf::Arena* arena, const GetObjectPointCloudsRequest& from); + explicit Detection(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kNameFieldNumber = 1, - kCameraNameFieldNumber = 2, - kMimeTypeFieldNumber = 3, - kExtraFieldNumber = 99, + kClassNameFieldNumber = 6, + kXMinFieldNumber = 1, + kYMinFieldNumber = 2, + kXMaxFieldNumber = 3, + kYMaxFieldNumber = 4, + kConfidenceFieldNumber = 5, }; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + // string class_name = 6 [json_name = "className"]; + void clear_class_name(); + const std::string& class_name() const; + template + void set_class_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_class_name(); + PROTOBUF_NODISCARD std::string* release_class_name(); + void set_allocated_class_name(std::string* class_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(); - + const std::string& _internal_class_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_class_name(const std::string& value); + std::string* _internal_mutable_class_name(); public: - // string camera_name = 2 [json_name = "cameraName"]; - void clear_camera_name() ; - const std::string& camera_name() const; - template - void set_camera_name(Arg_&& arg, Args_... args); - std::string* mutable_camera_name(); - PROTOBUF_NODISCARD std::string* release_camera_name(); - void set_allocated_camera_name(std::string* value); + // optional int64 x_min = 1 [json_name = "xMin"]; + bool has_x_min() const; private: - const std::string& _internal_camera_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_camera_name( - const std::string& value); - std::string* _internal_mutable_camera_name(); - + bool _internal_has_x_min() const; + public: + void clear_x_min(); + int64_t x_min() const; + void set_x_min(int64_t value); + private: + int64_t _internal_x_min() const; + void _internal_set_x_min(int64_t value); public: - // string mime_type = 3 [json_name = "mimeType"]; - void clear_mime_type() ; - const std::string& mime_type() const; - template - void set_mime_type(Arg_&& arg, Args_... args); - std::string* mutable_mime_type(); - PROTOBUF_NODISCARD std::string* release_mime_type(); - void set_allocated_mime_type(std::string* value); + // optional int64 y_min = 2 [json_name = "yMin"]; + bool has_y_min() const; private: - const std::string& _internal_mime_type() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_mime_type( - const std::string& value); - std::string* _internal_mutable_mime_type(); + bool _internal_has_y_min() const; + public: + void clear_y_min(); + int64_t y_min() const; + void set_y_min(int64_t value); + private: + int64_t _internal_y_min() const; + void _internal_set_y_min(int64_t value); + public: + // optional int64 x_max = 3 [json_name = "xMax"]; + bool has_x_max() const; + private: + bool _internal_has_x_max() const; + public: + void clear_x_max(); + int64_t x_max() const; + void set_x_max(int64_t value); + private: + int64_t _internal_x_max() const; + void _internal_set_x_max(int64_t value); public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); + // optional int64 y_max = 4 [json_name = "yMax"]; + bool has_y_max() const; + private: + bool _internal_has_y_max() const; + public: + void clear_y_max(); + int64_t y_max() const; + void set_y_max(int64_t value); private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); + int64_t _internal_y_max() const; + void _internal_set_y_max(int64_t value); + public: + // double confidence = 5 [json_name = "confidence"]; + void clear_confidence(); + double confidence() const; + void set_confidence(double value); + private: + double _internal_confidence() const; + void _internal_set_confidence(double value); public: - // @@protoc_insertion_point(class_scope:viam.service.vision.v1.GetObjectPointCloudsRequest) + + // @@protoc_insertion_point(class_scope:viam.service.vision.v1.Detection) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 1, - 83, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr camera_name_; - ::google::protobuf::internal::ArenaStringPtr mime_type_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr class_name_; + int64_t x_min_; + int64_t y_min_; + int64_t x_max_; + int64_t y_max_; + double confidence_; friend struct ::TableStruct_service_2fvision_2fv1_2fvision_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetDetectionsResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.GetDetectionsResponse) */ { +class GetClassificationsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.GetClassificationsRequest) */ { public: - inline GetDetectionsResponse() : GetDetectionsResponse(nullptr) {} - ~GetDetectionsResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetDetectionsResponse(::google::protobuf::internal::ConstantInitialized); + inline GetClassificationsRequest() : GetClassificationsRequest(nullptr) {} + ~GetClassificationsRequest() override; + explicit PROTOBUF_CONSTEXPR GetClassificationsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetDetectionsResponse(const GetDetectionsResponse& from) - : GetDetectionsResponse(nullptr, from) {} - GetDetectionsResponse(GetDetectionsResponse&& from) noexcept - : GetDetectionsResponse() { + GetClassificationsRequest(const GetClassificationsRequest& from); + GetClassificationsRequest(GetClassificationsRequest&& from) noexcept + : GetClassificationsRequest() { *this = ::std::move(from); } - inline GetDetectionsResponse& operator=(const GetDetectionsResponse& from) { + inline GetClassificationsRequest& operator=(const GetClassificationsRequest& from) { CopyFrom(from); return *this; } - inline GetDetectionsResponse& operator=(GetDetectionsResponse&& from) noexcept { + inline GetClassificationsRequest& operator=(GetClassificationsRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1235,180 +1090,230 @@ class GetDetectionsResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetDetectionsResponse& default_instance() { + static const GetClassificationsRequest& default_instance() { return *internal_default_instance(); } - static inline const GetDetectionsResponse* internal_default_instance() { - return reinterpret_cast( - &_GetDetectionsResponse_default_instance_); + static inline const GetClassificationsRequest* internal_default_instance() { + return reinterpret_cast( + &_GetClassificationsRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 1; + 5; - friend void swap(GetDetectionsResponse& a, GetDetectionsResponse& b) { + friend void swap(GetClassificationsRequest& a, GetClassificationsRequest& b) { a.Swap(&b); } - inline void Swap(GetDetectionsResponse* other) { + inline void Swap(GetClassificationsRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetDetectionsResponse* other) { + void UnsafeArenaSwap(GetClassificationsRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetDetectionsResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetDetectionsResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetDetectionsResponse& from) { - GetDetectionsResponse::MergeImpl(*this, from); + GetClassificationsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetClassificationsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetClassificationsRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetDetectionsResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetClassificationsRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.vision.v1.GetDetectionsResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.vision.v1.GetClassificationsRequest"; } protected: - explicit GetDetectionsResponse(::google::protobuf::Arena* arena); - GetDetectionsResponse(::google::protobuf::Arena* arena, const GetDetectionsResponse& from); + explicit GetClassificationsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kDetectionsFieldNumber = 1, + kNameFieldNumber = 1, + kImageFieldNumber = 2, + kMimeTypeFieldNumber = 5, + kExtraFieldNumber = 99, + kWidthFieldNumber = 3, + kHeightFieldNumber = 4, + kNFieldNumber = 6, }; - // repeated .viam.service.vision.v1.Detection detections = 1 [json_name = "detections"]; - int detections_size() const; + // 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: - int _internal_detections_size() const; + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + // bytes image = 2 [json_name = "image"]; + void clear_image(); + const std::string& image() const; + template + void set_image(ArgT0&& arg0, ArgT... args); + std::string* mutable_image(); + PROTOBUF_NODISCARD std::string* release_image(); + void set_allocated_image(std::string* image); + private: + const std::string& _internal_image() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_image(const std::string& value); + std::string* _internal_mutable_image(); public: - void clear_detections() ; - ::viam::service::vision::v1::Detection* mutable_detections(int index); - ::google::protobuf::RepeatedPtrField< ::viam::service::vision::v1::Detection >* - mutable_detections(); + + // string mime_type = 5 [json_name = "mimeType"]; + void clear_mime_type(); + const std::string& mime_type() const; + template + void set_mime_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_mime_type(); + PROTOBUF_NODISCARD std::string* release_mime_type(); + void set_allocated_mime_type(std::string* mime_type); private: - const ::google::protobuf::RepeatedPtrField<::viam::service::vision::v1::Detection>& _internal_detections() const; - ::google::protobuf::RepeatedPtrField<::viam::service::vision::v1::Detection>* _internal_mutable_detections(); + const std::string& _internal_mime_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_mime_type(const std::string& value); + std::string* _internal_mutable_mime_type(); public: - const ::viam::service::vision::v1::Detection& detections(int index) const; - ::viam::service::vision::v1::Detection* add_detections(); - const ::google::protobuf::RepeatedPtrField< ::viam::service::vision::v1::Detection >& - detections() const; - // @@protoc_insertion_point(class_scope:viam.service.vision.v1.GetDetectionsResponse) + + // .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(); + + // int32 width = 3 [json_name = "width"]; + void clear_width(); + int32_t width() const; + void set_width(int32_t value); + private: + int32_t _internal_width() const; + void _internal_set_width(int32_t value); + public: + + // int32 height = 4 [json_name = "height"]; + void clear_height(); + int32_t height() const; + void set_height(int32_t value); + private: + int32_t _internal_height() const; + void _internal_set_height(int32_t value); + public: + + // int32 n = 6 [json_name = "n"]; + void clear_n(); + int32_t n() const; + void set_n(int32_t value); + private: + int32_t _internal_n() const; + void _internal_set_n(int32_t value); + public: + + // @@protoc_insertion_point(class_scope:viam.service.vision.v1.GetClassificationsRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::service::vision::v1::Detection > detections_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr image_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr mime_type_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + int32_t width_; + int32_t height_; + int32_t n_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fvision_2fv1_2fvision_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetDetectionsRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.GetDetectionsRequest) */ { +class GetClassificationsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.GetClassificationsResponse) */ { public: - inline GetDetectionsRequest() : GetDetectionsRequest(nullptr) {} - ~GetDetectionsRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetDetectionsRequest(::google::protobuf::internal::ConstantInitialized); + inline GetClassificationsResponse() : GetClassificationsResponse(nullptr) {} + ~GetClassificationsResponse() override; + explicit PROTOBUF_CONSTEXPR GetClassificationsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetDetectionsRequest(const GetDetectionsRequest& from) - : GetDetectionsRequest(nullptr, from) {} - GetDetectionsRequest(GetDetectionsRequest&& from) noexcept - : GetDetectionsRequest() { + GetClassificationsResponse(const GetClassificationsResponse& from); + GetClassificationsResponse(GetClassificationsResponse&& from) noexcept + : GetClassificationsResponse() { *this = ::std::move(from); } - inline GetDetectionsRequest& operator=(const GetDetectionsRequest& from) { + inline GetClassificationsResponse& operator=(const GetClassificationsResponse& from) { CopyFrom(from); return *this; } - inline GetDetectionsRequest& operator=(GetDetectionsRequest&& from) noexcept { + inline GetClassificationsResponse& operator=(GetClassificationsResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1418,256 +1323,149 @@ class GetDetectionsRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetDetectionsRequest& default_instance() { + static const GetClassificationsResponse& default_instance() { return *internal_default_instance(); } - static inline const GetDetectionsRequest* internal_default_instance() { - return reinterpret_cast( - &_GetDetectionsRequest_default_instance_); + static inline const GetClassificationsResponse* internal_default_instance() { + return reinterpret_cast( + &_GetClassificationsResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 0; + 6; - friend void swap(GetDetectionsRequest& a, GetDetectionsRequest& b) { + friend void swap(GetClassificationsResponse& a, GetClassificationsResponse& b) { a.Swap(&b); } - inline void Swap(GetDetectionsRequest* other) { + inline void Swap(GetClassificationsResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetDetectionsRequest* other) { + void UnsafeArenaSwap(GetClassificationsResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetDetectionsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetDetectionsRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetDetectionsRequest& from) { - GetDetectionsRequest::MergeImpl(*this, from); + GetClassificationsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetClassificationsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetClassificationsResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetDetectionsRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetClassificationsResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.vision.v1.GetDetectionsRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.vision.v1.GetClassificationsResponse"; } protected: - explicit GetDetectionsRequest(::google::protobuf::Arena* arena); - GetDetectionsRequest(::google::protobuf::Arena* arena, const GetDetectionsRequest& from); + explicit GetClassificationsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kNameFieldNumber = 1, - kImageFieldNumber = 2, - kMimeTypeFieldNumber = 5, - kExtraFieldNumber = 99, - kWidthFieldNumber = 3, - kHeightFieldNumber = 4, + kClassificationsFieldNumber = 1, }; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - - public: - // bytes image = 2 [json_name = "image"]; - void clear_image() ; - const std::string& image() const; - template - void set_image(Arg_&& arg, Args_... args); - std::string* mutable_image(); - PROTOBUF_NODISCARD std::string* release_image(); - void set_allocated_image(std::string* value); - - private: - const std::string& _internal_image() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_image( - const std::string& value); - std::string* _internal_mutable_image(); - - public: - // string mime_type = 5 [json_name = "mimeType"]; - void clear_mime_type() ; - const std::string& mime_type() const; - template - void set_mime_type(Arg_&& arg, Args_... args); - std::string* mutable_mime_type(); - PROTOBUF_NODISCARD std::string* release_mime_type(); - void set_allocated_mime_type(std::string* value); - - private: - const std::string& _internal_mime_type() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_mime_type( - const std::string& value); - std::string* _internal_mutable_mime_type(); - - public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - + // repeated .viam.service.vision.v1.Classification classifications = 1 [json_name = "classifications"]; + int classifications_size() const; private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - + int _internal_classifications_size() const; public: - // int64 width = 3 [json_name = "width"]; - void clear_width() ; - ::int64_t width() const; - void set_width(::int64_t value); - + void clear_classifications(); + ::viam::service::vision::v1::Classification* mutable_classifications(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::vision::v1::Classification >* + mutable_classifications(); private: - ::int64_t _internal_width() const; - void _internal_set_width(::int64_t value); - + const ::viam::service::vision::v1::Classification& _internal_classifications(int index) const; + ::viam::service::vision::v1::Classification* _internal_add_classifications(); public: - // int64 height = 4 [json_name = "height"]; - void clear_height() ; - ::int64_t height() const; - void set_height(::int64_t value); - - private: - ::int64_t _internal_height() const; - void _internal_set_height(::int64_t value); + const ::viam::service::vision::v1::Classification& classifications(int index) const; + ::viam::service::vision::v1::Classification* add_classifications(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::vision::v1::Classification >& + classifications() const; - public: - // @@protoc_insertion_point(class_scope:viam.service.vision.v1.GetDetectionsRequest) + // @@protoc_insertion_point(class_scope:viam.service.vision.v1.GetClassificationsResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 6, 1, - 65, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr image_; - ::google::protobuf::internal::ArenaStringPtr mime_type_; - ::google::protobuf::Struct* extra_; - ::int64_t width_; - ::int64_t height_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::vision::v1::Classification > classifications_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fvision_2fv1_2fvision_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetDetectionsFromCameraResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.GetDetectionsFromCameraResponse) */ { +class GetClassificationsFromCameraRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.GetClassificationsFromCameraRequest) */ { public: - inline GetDetectionsFromCameraResponse() : GetDetectionsFromCameraResponse(nullptr) {} - ~GetDetectionsFromCameraResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetDetectionsFromCameraResponse(::google::protobuf::internal::ConstantInitialized); + inline GetClassificationsFromCameraRequest() : GetClassificationsFromCameraRequest(nullptr) {} + ~GetClassificationsFromCameraRequest() override; + explicit PROTOBUF_CONSTEXPR GetClassificationsFromCameraRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetDetectionsFromCameraResponse(const GetDetectionsFromCameraResponse& from) - : GetDetectionsFromCameraResponse(nullptr, from) {} - GetDetectionsFromCameraResponse(GetDetectionsFromCameraResponse&& from) noexcept - : GetDetectionsFromCameraResponse() { + GetClassificationsFromCameraRequest(const GetClassificationsFromCameraRequest& from); + GetClassificationsFromCameraRequest(GetClassificationsFromCameraRequest&& from) noexcept + : GetClassificationsFromCameraRequest() { *this = ::std::move(from); } - inline GetDetectionsFromCameraResponse& operator=(const GetDetectionsFromCameraResponse& from) { + inline GetClassificationsFromCameraRequest& operator=(const GetClassificationsFromCameraRequest& from) { CopyFrom(from); return *this; } - inline GetDetectionsFromCameraResponse& operator=(GetDetectionsFromCameraResponse&& from) noexcept { + inline GetClassificationsFromCameraRequest& operator=(GetClassificationsFromCameraRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1677,180 +1475,192 @@ class GetDetectionsFromCameraResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetDetectionsFromCameraResponse& default_instance() { + static const GetClassificationsFromCameraRequest& default_instance() { return *internal_default_instance(); } - static inline const GetDetectionsFromCameraResponse* internal_default_instance() { - return reinterpret_cast( - &_GetDetectionsFromCameraResponse_default_instance_); + static inline const GetClassificationsFromCameraRequest* internal_default_instance() { + return reinterpret_cast( + &_GetClassificationsFromCameraRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 3; + 7; - friend void swap(GetDetectionsFromCameraResponse& a, GetDetectionsFromCameraResponse& b) { + friend void swap(GetClassificationsFromCameraRequest& a, GetClassificationsFromCameraRequest& b) { a.Swap(&b); } - inline void Swap(GetDetectionsFromCameraResponse* other) { + inline void Swap(GetClassificationsFromCameraRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetDetectionsFromCameraResponse* other) { + void UnsafeArenaSwap(GetClassificationsFromCameraRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetDetectionsFromCameraResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetDetectionsFromCameraResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetDetectionsFromCameraResponse& from) { - GetDetectionsFromCameraResponse::MergeImpl(*this, from); + GetClassificationsFromCameraRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetClassificationsFromCameraRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetClassificationsFromCameraRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetDetectionsFromCameraResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetClassificationsFromCameraRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.vision.v1.GetDetectionsFromCameraResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.vision.v1.GetClassificationsFromCameraRequest"; } protected: - explicit GetDetectionsFromCameraResponse(::google::protobuf::Arena* arena); - GetDetectionsFromCameraResponse(::google::protobuf::Arena* arena, const GetDetectionsFromCameraResponse& from); + explicit GetClassificationsFromCameraRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kDetectionsFieldNumber = 1, + kNameFieldNumber = 1, + kCameraNameFieldNumber = 2, + kExtraFieldNumber = 99, + kNFieldNumber = 3, }; - // repeated .viam.service.vision.v1.Detection detections = 1 [json_name = "detections"]; - int detections_size() const; + // 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: - int _internal_detections_size() const; + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + // string camera_name = 2 [json_name = "cameraName"]; + void clear_camera_name(); + const std::string& camera_name() const; + template + void set_camera_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_camera_name(); + PROTOBUF_NODISCARD std::string* release_camera_name(); + void set_allocated_camera_name(std::string* camera_name); + private: + const std::string& _internal_camera_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_camera_name(const std::string& value); + std::string* _internal_mutable_camera_name(); public: - void clear_detections() ; - ::viam::service::vision::v1::Detection* mutable_detections(int index); - ::google::protobuf::RepeatedPtrField< ::viam::service::vision::v1::Detection >* - mutable_detections(); + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + bool has_extra() const; private: - const ::google::protobuf::RepeatedPtrField<::viam::service::vision::v1::Detection>& _internal_detections() const; - ::google::protobuf::RepeatedPtrField<::viam::service::vision::v1::Detection>* _internal_mutable_detections(); + bool _internal_has_extra() const; public: - const ::viam::service::vision::v1::Detection& detections(int index) const; - ::viam::service::vision::v1::Detection* add_detections(); - const ::google::protobuf::RepeatedPtrField< ::viam::service::vision::v1::Detection >& - detections() const; - // @@protoc_insertion_point(class_scope:viam.service.vision.v1.GetDetectionsFromCameraResponse) + 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(); + + // int32 n = 3 [json_name = "n"]; + void clear_n(); + int32_t n() const; + void set_n(int32_t value); + private: + int32_t _internal_n() const; + void _internal_set_n(int32_t value); + public: + + // @@protoc_insertion_point(class_scope:viam.service.vision.v1.GetClassificationsFromCameraRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::service::vision::v1::Detection > detections_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr camera_name_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + int32_t n_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fvision_2fv1_2fvision_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetDetectionsFromCameraRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.GetDetectionsFromCameraRequest) */ { +class GetClassificationsFromCameraResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.GetClassificationsFromCameraResponse) */ { public: - inline GetDetectionsFromCameraRequest() : GetDetectionsFromCameraRequest(nullptr) {} - ~GetDetectionsFromCameraRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetDetectionsFromCameraRequest(::google::protobuf::internal::ConstantInitialized); + inline GetClassificationsFromCameraResponse() : GetClassificationsFromCameraResponse(nullptr) {} + ~GetClassificationsFromCameraResponse() override; + explicit PROTOBUF_CONSTEXPR GetClassificationsFromCameraResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetDetectionsFromCameraRequest(const GetDetectionsFromCameraRequest& from) - : GetDetectionsFromCameraRequest(nullptr, from) {} - GetDetectionsFromCameraRequest(GetDetectionsFromCameraRequest&& from) noexcept - : GetDetectionsFromCameraRequest() { + GetClassificationsFromCameraResponse(const GetClassificationsFromCameraResponse& from); + GetClassificationsFromCameraResponse(GetClassificationsFromCameraResponse&& from) noexcept + : GetClassificationsFromCameraResponse() { *this = ::std::move(from); } - inline GetDetectionsFromCameraRequest& operator=(const GetDetectionsFromCameraRequest& from) { + inline GetClassificationsFromCameraResponse& operator=(const GetClassificationsFromCameraResponse& from) { CopyFrom(from); return *this; } - inline GetDetectionsFromCameraRequest& operator=(GetDetectionsFromCameraRequest&& from) noexcept { + inline GetClassificationsFromCameraResponse& operator=(GetClassificationsFromCameraResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1860,214 +1670,149 @@ class GetDetectionsFromCameraRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetDetectionsFromCameraRequest& default_instance() { + static const GetClassificationsFromCameraResponse& default_instance() { return *internal_default_instance(); } - static inline const GetDetectionsFromCameraRequest* internal_default_instance() { - return reinterpret_cast( - &_GetDetectionsFromCameraRequest_default_instance_); + static inline const GetClassificationsFromCameraResponse* internal_default_instance() { + return reinterpret_cast( + &_GetClassificationsFromCameraResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 2; + 8; - friend void swap(GetDetectionsFromCameraRequest& a, GetDetectionsFromCameraRequest& b) { + friend void swap(GetClassificationsFromCameraResponse& a, GetClassificationsFromCameraResponse& b) { a.Swap(&b); } - inline void Swap(GetDetectionsFromCameraRequest* other) { + inline void Swap(GetClassificationsFromCameraResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetDetectionsFromCameraRequest* other) { + void UnsafeArenaSwap(GetClassificationsFromCameraResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetDetectionsFromCameraRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetDetectionsFromCameraRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetDetectionsFromCameraRequest& from) { - GetDetectionsFromCameraRequest::MergeImpl(*this, from); + GetClassificationsFromCameraResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetClassificationsFromCameraResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetClassificationsFromCameraResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetDetectionsFromCameraRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetClassificationsFromCameraResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.vision.v1.GetDetectionsFromCameraRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.vision.v1.GetClassificationsFromCameraResponse"; } protected: - explicit GetDetectionsFromCameraRequest(::google::protobuf::Arena* arena); - GetDetectionsFromCameraRequest(::google::protobuf::Arena* arena, const GetDetectionsFromCameraRequest& from); + explicit GetClassificationsFromCameraResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kNameFieldNumber = 1, - kCameraNameFieldNumber = 2, - kExtraFieldNumber = 99, + kClassificationsFieldNumber = 1, }; - // string name = 1 [json_name = "name"]; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + // repeated .viam.service.vision.v1.Classification classifications = 1 [json_name = "classifications"]; + int classifications_size() const; private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - + int _internal_classifications_size() const; public: - // string camera_name = 2 [json_name = "cameraName"]; - void clear_camera_name() ; - const std::string& camera_name() const; - template - void set_camera_name(Arg_&& arg, Args_... args); - std::string* mutable_camera_name(); - PROTOBUF_NODISCARD std::string* release_camera_name(); - void set_allocated_camera_name(std::string* value); - + void clear_classifications(); + ::viam::service::vision::v1::Classification* mutable_classifications(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::vision::v1::Classification >* + mutable_classifications(); private: - const std::string& _internal_camera_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_camera_name( - const std::string& value); - std::string* _internal_mutable_camera_name(); - + const ::viam::service::vision::v1::Classification& _internal_classifications(int index) const; + ::viam::service::vision::v1::Classification* _internal_add_classifications(); public: - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); + const ::viam::service::vision::v1::Classification& classifications(int index) const; + ::viam::service::vision::v1::Classification* add_classifications(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::vision::v1::Classification >& + classifications() const; - public: - // @@protoc_insertion_point(class_scope:viam.service.vision.v1.GetDetectionsFromCameraRequest) + // @@protoc_insertion_point(class_scope:viam.service.vision.v1.GetClassificationsFromCameraResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 1, - 77, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr camera_name_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::vision::v1::Classification > classifications_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fvision_2fv1_2fvision_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetClassificationsResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.GetClassificationsResponse) */ { +class Classification final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.Classification) */ { public: - inline GetClassificationsResponse() : GetClassificationsResponse(nullptr) {} - ~GetClassificationsResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetClassificationsResponse(::google::protobuf::internal::ConstantInitialized); + inline Classification() : Classification(nullptr) {} + ~Classification() override; + explicit PROTOBUF_CONSTEXPR Classification(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetClassificationsResponse(const GetClassificationsResponse& from) - : GetClassificationsResponse(nullptr, from) {} - GetClassificationsResponse(GetClassificationsResponse&& from) noexcept - : GetClassificationsResponse() { + Classification(const Classification& from); + Classification(Classification&& from) noexcept + : Classification() { *this = ::std::move(from); } - inline GetClassificationsResponse& operator=(const GetClassificationsResponse& from) { + inline Classification& operator=(const Classification& from) { CopyFrom(from); return *this; } - inline GetClassificationsResponse& operator=(GetClassificationsResponse&& from) noexcept { + inline Classification& operator=(Classification&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2077,180 +1822,156 @@ class GetClassificationsResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetClassificationsResponse& default_instance() { + static const Classification& default_instance() { return *internal_default_instance(); } - static inline const GetClassificationsResponse* internal_default_instance() { - return reinterpret_cast( - &_GetClassificationsResponse_default_instance_); + static inline const Classification* internal_default_instance() { + return reinterpret_cast( + &_Classification_default_instance_); } static constexpr int kIndexInFileMessages = - 6; + 9; - friend void swap(GetClassificationsResponse& a, GetClassificationsResponse& b) { + friend void swap(Classification& a, Classification& b) { a.Swap(&b); } - inline void Swap(GetClassificationsResponse* other) { + inline void Swap(Classification* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetClassificationsResponse* other) { + void UnsafeArenaSwap(Classification* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetClassificationsResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetClassificationsResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetClassificationsResponse& from) { - GetClassificationsResponse::MergeImpl(*this, from); + Classification* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Classification& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Classification& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetClassificationsResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(Classification* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.vision.v1.GetClassificationsResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.vision.v1.Classification"; } protected: - explicit GetClassificationsResponse(::google::protobuf::Arena* arena); - GetClassificationsResponse(::google::protobuf::Arena* arena, const GetClassificationsResponse& from); + explicit Classification(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kClassificationsFieldNumber = 1, + kClassNameFieldNumber = 1, + kConfidenceFieldNumber = 2, }; - // repeated .viam.service.vision.v1.Classification classifications = 1 [json_name = "classifications"]; - int classifications_size() const; + // string class_name = 1 [json_name = "className"]; + void clear_class_name(); + const std::string& class_name() const; + template + void set_class_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_class_name(); + PROTOBUF_NODISCARD std::string* release_class_name(); + void set_allocated_class_name(std::string* class_name); private: - int _internal_classifications_size() const; - + const std::string& _internal_class_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_class_name(const std::string& value); + std::string* _internal_mutable_class_name(); public: - void clear_classifications() ; - ::viam::service::vision::v1::Classification* mutable_classifications(int index); - ::google::protobuf::RepeatedPtrField< ::viam::service::vision::v1::Classification >* - mutable_classifications(); + + // double confidence = 2 [json_name = "confidence"]; + void clear_confidence(); + double confidence() const; + void set_confidence(double value); private: - const ::google::protobuf::RepeatedPtrField<::viam::service::vision::v1::Classification>& _internal_classifications() const; - ::google::protobuf::RepeatedPtrField<::viam::service::vision::v1::Classification>* _internal_mutable_classifications(); + double _internal_confidence() const; + void _internal_set_confidence(double value); public: - const ::viam::service::vision::v1::Classification& classifications(int index) const; - ::viam::service::vision::v1::Classification* add_classifications(); - const ::google::protobuf::RepeatedPtrField< ::viam::service::vision::v1::Classification >& - classifications() const; - // @@protoc_insertion_point(class_scope:viam.service.vision.v1.GetClassificationsResponse) + + // @@protoc_insertion_point(class_scope:viam.service.vision.v1.Classification) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::service::vision::v1::Classification > classifications_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr class_name_; + double confidence_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fvision_2fv1_2fvision_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetClassificationsRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.GetClassificationsRequest) */ { +class GetObjectPointCloudsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.GetObjectPointCloudsRequest) */ { public: - inline GetClassificationsRequest() : GetClassificationsRequest(nullptr) {} - ~GetClassificationsRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetClassificationsRequest(::google::protobuf::internal::ConstantInitialized); + inline GetObjectPointCloudsRequest() : GetObjectPointCloudsRequest(nullptr) {} + ~GetObjectPointCloudsRequest() override; + explicit PROTOBUF_CONSTEXPR GetObjectPointCloudsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetClassificationsRequest(const GetClassificationsRequest& from) - : GetClassificationsRequest(nullptr, from) {} - GetClassificationsRequest(GetClassificationsRequest&& from) noexcept - : GetClassificationsRequest() { + GetObjectPointCloudsRequest(const GetObjectPointCloudsRequest& from); + GetObjectPointCloudsRequest(GetObjectPointCloudsRequest&& from) noexcept + : GetObjectPointCloudsRequest() { *this = ::std::move(from); } - inline GetClassificationsRequest& operator=(const GetClassificationsRequest& from) { + inline GetObjectPointCloudsRequest& operator=(const GetObjectPointCloudsRequest& from) { CopyFrom(from); return *this; } - inline GetClassificationsRequest& operator=(GetClassificationsRequest&& from) noexcept { + inline GetObjectPointCloudsRequest& operator=(GetObjectPointCloudsRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2260,99 +1981,88 @@ class GetClassificationsRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetClassificationsRequest& default_instance() { + static const GetObjectPointCloudsRequest& default_instance() { return *internal_default_instance(); } - static inline const GetClassificationsRequest* internal_default_instance() { - return reinterpret_cast( - &_GetClassificationsRequest_default_instance_); + static inline const GetObjectPointCloudsRequest* internal_default_instance() { + return reinterpret_cast( + &_GetObjectPointCloudsRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 5; + 10; - friend void swap(GetClassificationsRequest& a, GetClassificationsRequest& b) { + friend void swap(GetObjectPointCloudsRequest& a, GetObjectPointCloudsRequest& b) { a.Swap(&b); } - inline void Swap(GetClassificationsRequest* other) { + inline void Swap(GetObjectPointCloudsRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetClassificationsRequest* other) { + void UnsafeArenaSwap(GetObjectPointCloudsRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetClassificationsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetClassificationsRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetClassificationsRequest& from) { - GetClassificationsRequest::MergeImpl(*this, from); + GetObjectPointCloudsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetObjectPointCloudsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetObjectPointCloudsRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetClassificationsRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetObjectPointCloudsRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.vision.v1.GetClassificationsRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.vision.v1.GetObjectPointCloudsRequest"; } protected: - explicit GetClassificationsRequest(::google::protobuf::Arena* arena); - GetClassificationsRequest(::google::protobuf::Arena* arena, const GetClassificationsRequest& from); + explicit GetObjectPointCloudsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -2360,168 +2070,108 @@ class GetClassificationsRequest final : enum : int { kNameFieldNumber = 1, - kImageFieldNumber = 2, - kMimeTypeFieldNumber = 5, + kCameraNameFieldNumber = 2, + kMimeTypeFieldNumber = 3, kExtraFieldNumber = 99, - kWidthFieldNumber = 3, - kHeightFieldNumber = 4, - kNFieldNumber = 6, }; // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); std::string* _internal_mutable_name(); - public: - // bytes image = 2 [json_name = "image"]; - void clear_image() ; - const std::string& image() const; - template - void set_image(Arg_&& arg, Args_... args); - std::string* mutable_image(); - PROTOBUF_NODISCARD std::string* release_image(); - void set_allocated_image(std::string* value); + // string camera_name = 2 [json_name = "cameraName"]; + void clear_camera_name(); + const std::string& camera_name() const; + template + void set_camera_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_camera_name(); + PROTOBUF_NODISCARD std::string* release_camera_name(); + void set_allocated_camera_name(std::string* camera_name); private: - const std::string& _internal_image() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_image( - const std::string& value); - std::string* _internal_mutable_image(); - + const std::string& _internal_camera_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_camera_name(const std::string& value); + std::string* _internal_mutable_camera_name(); public: - // string mime_type = 5 [json_name = "mimeType"]; - void clear_mime_type() ; + + // string mime_type = 3 [json_name = "mimeType"]; + void clear_mime_type(); const std::string& mime_type() const; - template - void set_mime_type(Arg_&& arg, Args_... args); + template + void set_mime_type(ArgT0&& arg0, ArgT... args); std::string* mutable_mime_type(); PROTOBUF_NODISCARD std::string* release_mime_type(); - void set_allocated_mime_type(std::string* value); - + void set_allocated_mime_type(std::string* mime_type); private: const std::string& _internal_mime_type() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_mime_type( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_mime_type(const std::string& value); std::string* _internal_mutable_mime_type(); - public: + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - - public: - // int32 width = 3 [json_name = "width"]; - void clear_width() ; - ::int32_t width() const; - void set_width(::int32_t value); - - private: - ::int32_t _internal_width() const; - void _internal_set_width(::int32_t value); - + bool _internal_has_extra() const; public: - // int32 height = 4 [json_name = "height"]; - void clear_height() ; - ::int32_t height() const; - void set_height(::int32_t value); - + 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: - ::int32_t _internal_height() const; - void _internal_set_height(::int32_t value); - + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_extra() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_extra(); public: - // int32 n = 6 [json_name = "n"]; - void clear_n() ; - ::int32_t n() const; - void set_n(::int32_t value); - - private: - ::int32_t _internal_n() const; - void _internal_set_n(::int32_t value); + void unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_extra(); - public: - // @@protoc_insertion_point(class_scope:viam.service.vision.v1.GetClassificationsRequest) + // @@protoc_insertion_point(class_scope:viam.service.vision.v1.GetObjectPointCloudsRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 7, 1, - 70, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr image_; - ::google::protobuf::internal::ArenaStringPtr mime_type_; - ::google::protobuf::Struct* extra_; - ::int32_t width_; - ::int32_t height_; - ::int32_t n_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr camera_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr mime_type_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fvision_2fv1_2fvision_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetClassificationsFromCameraResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.GetClassificationsFromCameraResponse) */ { +class GetObjectPointCloudsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.GetObjectPointCloudsResponse) */ { public: - inline GetClassificationsFromCameraResponse() : GetClassificationsFromCameraResponse(nullptr) {} - ~GetClassificationsFromCameraResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetClassificationsFromCameraResponse(::google::protobuf::internal::ConstantInitialized); + inline GetObjectPointCloudsResponse() : GetObjectPointCloudsResponse(nullptr) {} + ~GetObjectPointCloudsResponse() override; + explicit PROTOBUF_CONSTEXPR GetObjectPointCloudsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetClassificationsFromCameraResponse(const GetClassificationsFromCameraResponse& from) - : GetClassificationsFromCameraResponse(nullptr, from) {} - GetClassificationsFromCameraResponse(GetClassificationsFromCameraResponse&& from) noexcept - : GetClassificationsFromCameraResponse() { + GetObjectPointCloudsResponse(const GetObjectPointCloudsResponse& from); + GetObjectPointCloudsResponse(GetObjectPointCloudsResponse&& from) noexcept + : GetObjectPointCloudsResponse() { *this = ::std::move(from); } - inline GetClassificationsFromCameraResponse& operator=(const GetClassificationsFromCameraResponse& from) { + inline GetObjectPointCloudsResponse& operator=(const GetObjectPointCloudsResponse& from) { CopyFrom(from); return *this; } - inline GetClassificationsFromCameraResponse& operator=(GetClassificationsFromCameraResponse&& from) noexcept { + inline GetObjectPointCloudsResponse& operator=(GetObjectPointCloudsResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2531,180 +2181,165 @@ class GetClassificationsFromCameraResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetClassificationsFromCameraResponse& default_instance() { + static const GetObjectPointCloudsResponse& default_instance() { return *internal_default_instance(); } - static inline const GetClassificationsFromCameraResponse* internal_default_instance() { - return reinterpret_cast( - &_GetClassificationsFromCameraResponse_default_instance_); + static inline const GetObjectPointCloudsResponse* internal_default_instance() { + return reinterpret_cast( + &_GetObjectPointCloudsResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 8; + 11; - friend void swap(GetClassificationsFromCameraResponse& a, GetClassificationsFromCameraResponse& b) { + friend void swap(GetObjectPointCloudsResponse& a, GetObjectPointCloudsResponse& b) { a.Swap(&b); } - inline void Swap(GetClassificationsFromCameraResponse* other) { + inline void Swap(GetObjectPointCloudsResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetClassificationsFromCameraResponse* other) { + void UnsafeArenaSwap(GetObjectPointCloudsResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetClassificationsFromCameraResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetClassificationsFromCameraResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetClassificationsFromCameraResponse& from) { - GetClassificationsFromCameraResponse::MergeImpl(*this, from); + GetObjectPointCloudsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetObjectPointCloudsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetObjectPointCloudsResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetClassificationsFromCameraResponse* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetObjectPointCloudsResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.vision.v1.GetClassificationsFromCameraResponse"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.vision.v1.GetObjectPointCloudsResponse"; } protected: - explicit GetClassificationsFromCameraResponse(::google::protobuf::Arena* arena); - GetClassificationsFromCameraResponse(::google::protobuf::Arena* arena, const GetClassificationsFromCameraResponse& from); + explicit GetObjectPointCloudsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kClassificationsFieldNumber = 1, + kObjectsFieldNumber = 2, + kMimeTypeFieldNumber = 1, }; - // repeated .viam.service.vision.v1.Classification classifications = 1 [json_name = "classifications"]; - int classifications_size() const; + // repeated .viam.common.v1.PointCloudObject objects = 2 [json_name = "objects"]; + int objects_size() const; private: - int _internal_classifications_size() const; - + int _internal_objects_size() const; public: - void clear_classifications() ; - ::viam::service::vision::v1::Classification* mutable_classifications(int index); - ::google::protobuf::RepeatedPtrField< ::viam::service::vision::v1::Classification >* - mutable_classifications(); + void clear_objects(); + ::viam::common::v1::PointCloudObject* mutable_objects(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::PointCloudObject >* + mutable_objects(); private: - const ::google::protobuf::RepeatedPtrField<::viam::service::vision::v1::Classification>& _internal_classifications() const; - ::google::protobuf::RepeatedPtrField<::viam::service::vision::v1::Classification>* _internal_mutable_classifications(); + const ::viam::common::v1::PointCloudObject& _internal_objects(int index) const; + ::viam::common::v1::PointCloudObject* _internal_add_objects(); public: - const ::viam::service::vision::v1::Classification& classifications(int index) const; - ::viam::service::vision::v1::Classification* add_classifications(); - const ::google::protobuf::RepeatedPtrField< ::viam::service::vision::v1::Classification >& - classifications() const; - // @@protoc_insertion_point(class_scope:viam.service.vision.v1.GetClassificationsFromCameraResponse) + const ::viam::common::v1::PointCloudObject& objects(int index) const; + ::viam::common::v1::PointCloudObject* add_objects(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::PointCloudObject >& + objects() const; + + // string mime_type = 1 [json_name = "mimeType"]; + void clear_mime_type(); + const std::string& mime_type() const; + template + void set_mime_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_mime_type(); + PROTOBUF_NODISCARD std::string* release_mime_type(); + void set_allocated_mime_type(std::string* mime_type); + private: + const std::string& _internal_mime_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_mime_type(const std::string& value); + std::string* _internal_mutable_mime_type(); + public: + + // @@protoc_insertion_point(class_scope:viam.service.vision.v1.GetObjectPointCloudsResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::service::vision::v1::Classification > classifications_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::PointCloudObject > objects_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr mime_type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fvision_2fv1_2fvision_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetClassificationsFromCameraRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.GetClassificationsFromCameraRequest) */ { +class GetPropertiesRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.GetPropertiesRequest) */ { public: - inline GetClassificationsFromCameraRequest() : GetClassificationsFromCameraRequest(nullptr) {} - ~GetClassificationsFromCameraRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetClassificationsFromCameraRequest(::google::protobuf::internal::ConstantInitialized); + inline GetPropertiesRequest() : GetPropertiesRequest(nullptr) {} + ~GetPropertiesRequest() override; + explicit PROTOBUF_CONSTEXPR GetPropertiesRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline GetClassificationsFromCameraRequest(const GetClassificationsFromCameraRequest& from) - : GetClassificationsFromCameraRequest(nullptr, from) {} - GetClassificationsFromCameraRequest(GetClassificationsFromCameraRequest&& from) noexcept - : GetClassificationsFromCameraRequest() { + GetPropertiesRequest(const GetPropertiesRequest& from); + GetPropertiesRequest(GetPropertiesRequest&& from) noexcept + : GetPropertiesRequest() { *this = ::std::move(from); } - inline GetClassificationsFromCameraRequest& operator=(const GetClassificationsFromCameraRequest& from) { + inline GetPropertiesRequest& operator=(const GetPropertiesRequest& from) { CopyFrom(from); return *this; } - inline GetClassificationsFromCameraRequest& operator=(GetClassificationsFromCameraRequest&& from) noexcept { + inline GetPropertiesRequest& operator=(GetPropertiesRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2714,99 +2349,88 @@ class GetClassificationsFromCameraRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetClassificationsFromCameraRequest& default_instance() { + static const GetPropertiesRequest& default_instance() { return *internal_default_instance(); } - static inline const GetClassificationsFromCameraRequest* internal_default_instance() { - return reinterpret_cast( - &_GetClassificationsFromCameraRequest_default_instance_); + static inline const GetPropertiesRequest* internal_default_instance() { + return reinterpret_cast( + &_GetPropertiesRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 7; + 12; - friend void swap(GetClassificationsFromCameraRequest& a, GetClassificationsFromCameraRequest& b) { + friend void swap(GetPropertiesRequest& a, GetPropertiesRequest& b) { a.Swap(&b); } - inline void Swap(GetClassificationsFromCameraRequest* other) { + inline void Swap(GetPropertiesRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetClassificationsFromCameraRequest* other) { + void UnsafeArenaSwap(GetPropertiesRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetClassificationsFromCameraRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetClassificationsFromCameraRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetClassificationsFromCameraRequest& from) { - GetClassificationsFromCameraRequest::MergeImpl(*this, from); + GetPropertiesRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPropertiesRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetPropertiesRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); - void InternalSwap(GetClassificationsFromCameraRequest* other); + void SetCachedSize(int size) const final; + void InternalSwap(GetPropertiesRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.vision.v1.GetClassificationsFromCameraRequest"; + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.vision.v1.GetPropertiesRequest"; } protected: - explicit GetClassificationsFromCameraRequest(::google::protobuf::Arena* arena); - GetClassificationsFromCameraRequest(::google::protobuf::Arena* arena, const GetClassificationsFromCameraRequest& from); + explicit GetPropertiesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -2814,112 +2438,62 @@ class GetClassificationsFromCameraRequest final : enum : int { kNameFieldNumber = 1, - kCameraNameFieldNumber = 2, kExtraFieldNumber = 99, - kNFieldNumber = 3, }; // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); std::string* _internal_mutable_name(); - public: - // string camera_name = 2 [json_name = "cameraName"]; - void clear_camera_name() ; - const std::string& camera_name() const; - template - void set_camera_name(Arg_&& arg, Args_... args); - std::string* mutable_camera_name(); - PROTOBUF_NODISCARD std::string* release_camera_name(); - void set_allocated_camera_name(std::string* value); - - private: - const std::string& _internal_camera_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_camera_name( - const std::string& value); - std::string* _internal_mutable_camera_name(); - public: // .google.protobuf.Struct extra = 99 [json_name = "extra"]; bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - + bool _internal_has_extra() const; public: - // int32 n = 3 [json_name = "n"]; - void clear_n() ; - ::int32_t n() const; - void set_n(::int32_t value); - + 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: - ::int32_t _internal_n() const; - void _internal_set_n(::int32_t value); - + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_extra() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_extra(); public: - // @@protoc_insertion_point(class_scope:viam.service.vision.v1.GetClassificationsFromCameraRequest) + 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.service.vision.v1.GetPropertiesRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 1, - 82, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr camera_name_; - ::google::protobuf::Struct* extra_; - ::int32_t n_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + 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_service_2fvision_2fv1_2fvision_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class CaptureAllFromCameraRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.CaptureAllFromCameraRequest) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.CaptureAllFromCameraRequest) */ { public: inline CaptureAllFromCameraRequest() : CaptureAllFromCameraRequest(nullptr) {} ~CaptureAllFromCameraRequest() override; - template - explicit PROTOBUF_CONSTEXPR CaptureAllFromCameraRequest(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR CaptureAllFromCameraRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline CaptureAllFromCameraRequest(const CaptureAllFromCameraRequest& from) - : CaptureAllFromCameraRequest(nullptr, from) {} + CaptureAllFromCameraRequest(const CaptureAllFromCameraRequest& from); CaptureAllFromCameraRequest(CaptureAllFromCameraRequest&& from) noexcept : CaptureAllFromCameraRequest() { *this = ::std::move(from); @@ -2931,9 +2505,9 @@ class CaptureAllFromCameraRequest final : } inline CaptureAllFromCameraRequest& operator=(CaptureAllFromCameraRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2943,22 +2517,13 @@ class CaptureAllFromCameraRequest final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const CaptureAllFromCameraRequest& default_instance() { @@ -2977,65 +2542,63 @@ class CaptureAllFromCameraRequest final : inline void Swap(CaptureAllFromCameraRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(CaptureAllFromCameraRequest* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CaptureAllFromCameraRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + CaptureAllFromCameraRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const CaptureAllFromCameraRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CaptureAllFromCameraRequest& from) { - CaptureAllFromCameraRequest::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CaptureAllFromCameraRequest& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(CaptureAllFromCameraRequest* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "viam.service.vision.v1.CaptureAllFromCameraRequest"; } protected: - explicit CaptureAllFromCameraRequest(::google::protobuf::Arena* arena); - CaptureAllFromCameraRequest(::google::protobuf::Arena* arena, const CaptureAllFromCameraRequest& from); + explicit CaptureAllFromCameraRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -3051,341 +2614,114 @@ class CaptureAllFromCameraRequest final : kReturnObjectPointCloudsFieldNumber = 6, }; // string name = 1 [json_name = "name"]; - void clear_name() ; + void clear_name(); const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - + 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); std::string* _internal_mutable_name(); - public: + // string camera_name = 2 [json_name = "cameraName"]; - void clear_camera_name() ; + void clear_camera_name(); const std::string& camera_name() const; - template - void set_camera_name(Arg_&& arg, Args_... args); + template + void set_camera_name(ArgT0&& arg0, ArgT... args); std::string* mutable_camera_name(); PROTOBUF_NODISCARD std::string* release_camera_name(); - void set_allocated_camera_name(std::string* value); - + void set_allocated_camera_name(std::string* camera_name); private: const std::string& _internal_camera_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_camera_name( - const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_camera_name(const std::string& value); std::string* _internal_mutable_camera_name(); - public: + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - + 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(); + // bool return_image = 3 [json_name = "returnImage"]; - void clear_return_image() ; + void clear_return_image(); bool return_image() const; void set_return_image(bool value); - private: bool _internal_return_image() const; void _internal_set_return_image(bool value); - public: + // bool return_classifications = 4 [json_name = "returnClassifications"]; - void clear_return_classifications() ; + void clear_return_classifications(); bool return_classifications() const; void set_return_classifications(bool value); - private: bool _internal_return_classifications() const; - void _internal_set_return_classifications(bool value); - - public: - // bool return_detections = 5 [json_name = "returnDetections"]; - void clear_return_detections() ; - bool return_detections() const; - void set_return_detections(bool value); - - private: - bool _internal_return_detections() const; - void _internal_set_return_detections(bool value); - - public: - // bool return_object_point_clouds = 6 [json_name = "returnObjectPointClouds"]; - void clear_return_object_point_clouds() ; - bool return_object_point_clouds() const; - void set_return_object_point_clouds(bool value); - - private: - bool _internal_return_object_point_clouds() const; - void _internal_set_return_object_point_clouds(bool value); - - public: - // @@protoc_insertion_point(class_scope:viam.service.vision.v1.CaptureAllFromCameraRequest) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 7, 1, - 74, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr camera_name_; - ::google::protobuf::Struct* extra_; - bool return_image_; - bool return_classifications_; - bool return_detections_; - bool return_object_point_clouds_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_service_2fvision_2fv1_2fvision_2eproto; -};// ------------------------------------------------------------------- - -class GetObjectPointCloudsResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.GetObjectPointCloudsResponse) */ { - public: - inline GetObjectPointCloudsResponse() : GetObjectPointCloudsResponse(nullptr) {} - ~GetObjectPointCloudsResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetObjectPointCloudsResponse(::google::protobuf::internal::ConstantInitialized); - - inline GetObjectPointCloudsResponse(const GetObjectPointCloudsResponse& from) - : GetObjectPointCloudsResponse(nullptr, from) {} - GetObjectPointCloudsResponse(GetObjectPointCloudsResponse&& from) noexcept - : GetObjectPointCloudsResponse() { - *this = ::std::move(from); - } - - inline GetObjectPointCloudsResponse& operator=(const GetObjectPointCloudsResponse& from) { - CopyFrom(from); - return *this; - } - inline GetObjectPointCloudsResponse& operator=(GetObjectPointCloudsResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GetObjectPointCloudsResponse& default_instance() { - return *internal_default_instance(); - } - static inline const GetObjectPointCloudsResponse* internal_default_instance() { - return reinterpret_cast( - &_GetObjectPointCloudsResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 11; - - friend void swap(GetObjectPointCloudsResponse& a, GetObjectPointCloudsResponse& b) { - a.Swap(&b); - } - inline void Swap(GetObjectPointCloudsResponse* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetObjectPointCloudsResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GetObjectPointCloudsResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetObjectPointCloudsResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetObjectPointCloudsResponse& from) { - GetObjectPointCloudsResponse::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetObjectPointCloudsResponse* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.service.vision.v1.GetObjectPointCloudsResponse"; - } - protected: - explicit GetObjectPointCloudsResponse(::google::protobuf::Arena* arena); - GetObjectPointCloudsResponse(::google::protobuf::Arena* arena, const GetObjectPointCloudsResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kObjectsFieldNumber = 2, - kMimeTypeFieldNumber = 1, - }; - // repeated .viam.common.v1.PointCloudObject objects = 2 [json_name = "objects"]; - int objects_size() const; - private: - int _internal_objects_size() const; - - public: - void clear_objects() ; - ::viam::common::v1::PointCloudObject* mutable_objects(int index); - ::google::protobuf::RepeatedPtrField< ::viam::common::v1::PointCloudObject >* - mutable_objects(); - private: - const ::google::protobuf::RepeatedPtrField<::viam::common::v1::PointCloudObject>& _internal_objects() const; - ::google::protobuf::RepeatedPtrField<::viam::common::v1::PointCloudObject>* _internal_mutable_objects(); + void _internal_set_return_classifications(bool value); public: - const ::viam::common::v1::PointCloudObject& objects(int index) const; - ::viam::common::v1::PointCloudObject* add_objects(); - const ::google::protobuf::RepeatedPtrField< ::viam::common::v1::PointCloudObject >& - objects() const; - // string mime_type = 1 [json_name = "mimeType"]; - void clear_mime_type() ; - const std::string& mime_type() const; - template - void set_mime_type(Arg_&& arg, Args_... args); - std::string* mutable_mime_type(); - PROTOBUF_NODISCARD std::string* release_mime_type(); - void set_allocated_mime_type(std::string* value); + // bool return_detections = 5 [json_name = "returnDetections"]; + void clear_return_detections(); + bool return_detections() const; + void set_return_detections(bool value); private: - const std::string& _internal_mime_type() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_mime_type( - const std::string& value); - std::string* _internal_mutable_mime_type(); + bool _internal_return_detections() const; + void _internal_set_return_detections(bool value); + public: + // bool return_object_point_clouds = 6 [json_name = "returnObjectPointClouds"]; + void clear_return_object_point_clouds(); + bool return_object_point_clouds() const; + void set_return_object_point_clouds(bool value); + private: + bool _internal_return_object_point_clouds() const; + void _internal_set_return_object_point_clouds(bool value); public: - // @@protoc_insertion_point(class_scope:viam.service.vision.v1.GetObjectPointCloudsResponse) + + // @@protoc_insertion_point(class_scope:viam.service.vision.v1.CaptureAllFromCameraRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 69, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::viam::common::v1::PointCloudObject > objects_; - ::google::protobuf::internal::ArenaStringPtr mime_type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr camera_name_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + bool return_image_; + bool return_classifications_; + bool return_detections_; + bool return_object_point_clouds_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fvision_2fv1_2fvision_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class CaptureAllFromCameraResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.CaptureAllFromCameraResponse) */ { + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.CaptureAllFromCameraResponse) */ { public: inline CaptureAllFromCameraResponse() : CaptureAllFromCameraResponse(nullptr) {} ~CaptureAllFromCameraResponse() override; - template - explicit PROTOBUF_CONSTEXPR CaptureAllFromCameraResponse(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR CaptureAllFromCameraResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - inline CaptureAllFromCameraResponse(const CaptureAllFromCameraResponse& from) - : CaptureAllFromCameraResponse(nullptr, from) {} + CaptureAllFromCameraResponse(const CaptureAllFromCameraResponse& from); CaptureAllFromCameraResponse(CaptureAllFromCameraResponse&& from) noexcept : CaptureAllFromCameraResponse() { *this = ::std::move(from); @@ -3397,9 +2733,9 @@ class CaptureAllFromCameraResponse final : } inline CaptureAllFromCameraResponse& operator=(CaptureAllFromCameraResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() + if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr + && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3409,22 +2745,13 @@ class CaptureAllFromCameraResponse final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const CaptureAllFromCameraResponse& default_instance() { @@ -3443,65 +2770,63 @@ class CaptureAllFromCameraResponse final : inline void Swap(CaptureAllFromCameraResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::google::protobuf::internal::GenericSwap(this, other); + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(CaptureAllFromCameraResponse* other) { if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CaptureAllFromCameraResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + CaptureAllFromCameraResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::google::protobuf::Message::CopyFrom; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const CaptureAllFromCameraResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CaptureAllFromCameraResponse& from) { - CaptureAllFromCameraResponse::MergeImpl(*this, from); - } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CaptureAllFromCameraResponse& from); private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + 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, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + 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: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(); void SharedDtor(); + void SetCachedSize(int size) const final; void InternalSwap(CaptureAllFromCameraResponse* other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "viam.service.vision.v1.CaptureAllFromCameraResponse"; } protected: - explicit CaptureAllFromCameraResponse(::google::protobuf::Arena* arena); - CaptureAllFromCameraResponse(::google::protobuf::Arena* arena, const CaptureAllFromCameraResponse& from); + explicit CaptureAllFromCameraResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -3518,431 +2843,555 @@ class CaptureAllFromCameraResponse final : int detections_size() const; private: int _internal_detections_size() const; - public: - void clear_detections() ; + void clear_detections(); ::viam::service::vision::v1::Detection* mutable_detections(int index); - ::google::protobuf::RepeatedPtrField< ::viam::service::vision::v1::Detection >* + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::vision::v1::Detection >* mutable_detections(); private: - const ::google::protobuf::RepeatedPtrField<::viam::service::vision::v1::Detection>& _internal_detections() const; - ::google::protobuf::RepeatedPtrField<::viam::service::vision::v1::Detection>* _internal_mutable_detections(); + const ::viam::service::vision::v1::Detection& _internal_detections(int index) const; + ::viam::service::vision::v1::Detection* _internal_add_detections(); public: const ::viam::service::vision::v1::Detection& detections(int index) const; ::viam::service::vision::v1::Detection* add_detections(); - const ::google::protobuf::RepeatedPtrField< ::viam::service::vision::v1::Detection >& + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::vision::v1::Detection >& detections() const; + // repeated .viam.service.vision.v1.Classification classifications = 3 [json_name = "classifications"]; int classifications_size() const; private: int _internal_classifications_size() const; - public: - void clear_classifications() ; + void clear_classifications(); ::viam::service::vision::v1::Classification* mutable_classifications(int index); - ::google::protobuf::RepeatedPtrField< ::viam::service::vision::v1::Classification >* + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::vision::v1::Classification >* mutable_classifications(); private: - const ::google::protobuf::RepeatedPtrField<::viam::service::vision::v1::Classification>& _internal_classifications() const; - ::google::protobuf::RepeatedPtrField<::viam::service::vision::v1::Classification>* _internal_mutable_classifications(); + const ::viam::service::vision::v1::Classification& _internal_classifications(int index) const; + ::viam::service::vision::v1::Classification* _internal_add_classifications(); public: const ::viam::service::vision::v1::Classification& classifications(int index) const; ::viam::service::vision::v1::Classification* add_classifications(); - const ::google::protobuf::RepeatedPtrField< ::viam::service::vision::v1::Classification >& + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::vision::v1::Classification >& classifications() const; + // repeated .viam.common.v1.PointCloudObject objects = 4 [json_name = "objects"]; int objects_size() const; private: int _internal_objects_size() const; - public: - void clear_objects() ; + void clear_objects(); ::viam::common::v1::PointCloudObject* mutable_objects(int index); - ::google::protobuf::RepeatedPtrField< ::viam::common::v1::PointCloudObject >* + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::PointCloudObject >* mutable_objects(); private: - const ::google::protobuf::RepeatedPtrField<::viam::common::v1::PointCloudObject>& _internal_objects() const; - ::google::protobuf::RepeatedPtrField<::viam::common::v1::PointCloudObject>* _internal_mutable_objects(); + const ::viam::common::v1::PointCloudObject& _internal_objects(int index) const; + ::viam::common::v1::PointCloudObject* _internal_add_objects(); public: const ::viam::common::v1::PointCloudObject& objects(int index) const; ::viam::common::v1::PointCloudObject* add_objects(); - const ::google::protobuf::RepeatedPtrField< ::viam::common::v1::PointCloudObject >& + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::PointCloudObject >& objects() const; + // .viam.component.camera.v1.Image image = 1 [json_name = "image"]; bool has_image() const; - void clear_image() ; + private: + bool _internal_has_image() const; + public: + void clear_image(); const ::viam::component::camera::v1::Image& image() const; PROTOBUF_NODISCARD ::viam::component::camera::v1::Image* release_image(); ::viam::component::camera::v1::Image* mutable_image(); - void set_allocated_image(::viam::component::camera::v1::Image* value); - void unsafe_arena_set_allocated_image(::viam::component::camera::v1::Image* value); - ::viam::component::camera::v1::Image* unsafe_arena_release_image(); - + void set_allocated_image(::viam::component::camera::v1::Image* image); private: const ::viam::component::camera::v1::Image& _internal_image() const; ::viam::component::camera::v1::Image* _internal_mutable_image(); - public: + void unsafe_arena_set_allocated_image( + ::viam::component::camera::v1::Image* image); + ::viam::component::camera::v1::Image* unsafe_arena_release_image(); + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; bool has_extra() const; - void clear_extra() ; - const ::google::protobuf::Struct& extra() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_extra(); - ::google::protobuf::Struct* mutable_extra(); - void set_allocated_extra(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_extra(); - private: - const ::google::protobuf::Struct& _internal_extra() const; - ::google::protobuf::Struct* _internal_mutable_extra(); - + 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.service.vision.v1.CaptureAllFromCameraResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 5, 5, - 0, 7> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::viam::service::vision::v1::Detection > detections_; - ::google::protobuf::RepeatedPtrField< ::viam::service::vision::v1::Classification > classifications_; - ::google::protobuf::RepeatedPtrField< ::viam::common::v1::PointCloudObject > objects_; - ::viam::component::camera::v1::Image* image_; - ::google::protobuf::Struct* extra_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::vision::v1::Detection > detections_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::vision::v1::Classification > classifications_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::PointCloudObject > objects_; + ::viam::component::camera::v1::Image* image_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_service_2fvision_2fv1_2fvision_2eproto; }; +// ------------------------------------------------------------------- -// =================================================================== +class GetPropertiesResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.vision.v1.GetPropertiesResponse) */ { + public: + inline GetPropertiesResponse() : GetPropertiesResponse(nullptr) {} + ~GetPropertiesResponse() override; + explicit PROTOBUF_CONSTEXPR GetPropertiesResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetPropertiesResponse(const GetPropertiesResponse& from); + GetPropertiesResponse(GetPropertiesResponse&& from) noexcept + : GetPropertiesResponse() { + *this = ::std::move(from); + } + + inline GetPropertiesResponse& operator=(const GetPropertiesResponse& from) { + CopyFrom(from); + return *this; + } + inline GetPropertiesResponse& operator=(GetPropertiesResponse&& 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 GetPropertiesResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetPropertiesResponse* internal_default_instance() { + return reinterpret_cast( + &_GetPropertiesResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 15; + + friend void swap(GetPropertiesResponse& a, GetPropertiesResponse& b) { + a.Swap(&b); + } + inline void Swap(GetPropertiesResponse* 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(GetPropertiesResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetPropertiesResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetPropertiesResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetPropertiesResponse& 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(GetPropertiesResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.vision.v1.GetPropertiesResponse"; + } + protected: + explicit GetPropertiesResponse(::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 { + kClassificationsSupportedFieldNumber = 1, + kDetectionsSupportedFieldNumber = 2, + kObjectPointCloudsSupportedFieldNumber = 3, + }; + // bool classifications_supported = 1 [json_name = "classificationsSupported"]; + void clear_classifications_supported(); + bool classifications_supported() const; + void set_classifications_supported(bool value); + private: + bool _internal_classifications_supported() const; + void _internal_set_classifications_supported(bool value); + public: + // bool detections_supported = 2 [json_name = "detectionsSupported"]; + void clear_detections_supported(); + bool detections_supported() const; + void set_detections_supported(bool value); + private: + bool _internal_detections_supported() const; + void _internal_set_detections_supported(bool value); + public: + // bool object_point_clouds_supported = 3 [json_name = "objectPointCloudsSupported"]; + void clear_object_point_clouds_supported(); + bool object_point_clouds_supported() const; + void set_object_point_clouds_supported(bool value); + private: + bool _internal_object_point_clouds_supported() const; + void _internal_set_object_point_clouds_supported(bool value); + public: + // @@protoc_insertion_point(class_scope:viam.service.vision.v1.GetPropertiesResponse) + private: + class _Internal; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + bool classifications_supported_; + bool detections_supported_; + bool object_point_clouds_supported_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_service_2fvision_2fv1_2fvision_2eproto; +}; // =================================================================== +// =================================================================== + #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ -// ------------------------------------------------------------------- - // GetDetectionsRequest // string name = 1 [json_name = "name"]; inline void GetDetectionsRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& GetDetectionsRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetDetectionsRequest::name() const { // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetDetectionsRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetDetectionsRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetDetectionsRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetDetectionsRequest.name) } -inline std::string* GetDetectionsRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetDetectionsRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetDetectionsRequest.name) return _s; } inline const std::string& GetDetectionsRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void GetDetectionsRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* GetDetectionsRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* GetDetectionsRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.vision.v1.GetDetectionsRequest.name) - return _impl_.name_.Release(); -} -inline void GetDetectionsRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void GetDetectionsRequest::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.service.vision.v1.GetDetectionsRequest.name) } // bytes image = 2 [json_name = "image"]; inline void GetDetectionsRequest::clear_image() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.image_.ClearToEmpty(); + image_.ClearToEmpty(); } -inline const std::string& GetDetectionsRequest::image() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetDetectionsRequest::image() const { // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetDetectionsRequest.image) return _internal_image(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetDetectionsRequest::set_image(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.image_.SetBytes(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetDetectionsRequest::set_image(ArgT0&& arg0, ArgT... args) { + + image_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetDetectionsRequest.image) } -inline std::string* GetDetectionsRequest::mutable_image() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetDetectionsRequest::mutable_image() { std::string* _s = _internal_mutable_image(); // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetDetectionsRequest.image) return _s; } inline const std::string& GetDetectionsRequest::_internal_image() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.image_.Get(); + return image_.Get(); } inline void GetDetectionsRequest::_internal_set_image(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.image_.Set(value, GetArena()); + + image_.Set(value, GetArenaForAllocation()); } inline std::string* GetDetectionsRequest::_internal_mutable_image() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.image_.Mutable( GetArena()); + + return image_.Mutable(GetArenaForAllocation()); } inline std::string* GetDetectionsRequest::release_image() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.vision.v1.GetDetectionsRequest.image) - return _impl_.image_.Release(); -} -inline void GetDetectionsRequest::set_allocated_image(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.image_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.image_.IsDefault()) { - _impl_.image_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return image_.Release(); +} +inline void GetDetectionsRequest::set_allocated_image(std::string* image) { + if (image != nullptr) { + + } else { + + } + image_.SetAllocated(image, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (image_.IsDefault()) { + image_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.GetDetectionsRequest.image) } // int64 width = 3 [json_name = "width"]; inline void GetDetectionsRequest::clear_width() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.width_ = ::int64_t{0}; + width_ = int64_t{0}; +} +inline int64_t GetDetectionsRequest::_internal_width() const { + return width_; } -inline ::int64_t GetDetectionsRequest::width() const { +inline int64_t GetDetectionsRequest::width() const { // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetDetectionsRequest.width) return _internal_width(); } -inline void GetDetectionsRequest::set_width(::int64_t value) { +inline void GetDetectionsRequest::_internal_set_width(int64_t value) { + + width_ = value; +} +inline void GetDetectionsRequest::set_width(int64_t value) { _internal_set_width(value); // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetDetectionsRequest.width) } -inline ::int64_t GetDetectionsRequest::_internal_width() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.width_; -} -inline void GetDetectionsRequest::_internal_set_width(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.width_ = value; -} // int64 height = 4 [json_name = "height"]; inline void GetDetectionsRequest::clear_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.height_ = ::int64_t{0}; + height_ = int64_t{0}; +} +inline int64_t GetDetectionsRequest::_internal_height() const { + return height_; } -inline ::int64_t GetDetectionsRequest::height() const { +inline int64_t GetDetectionsRequest::height() const { // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetDetectionsRequest.height) return _internal_height(); } -inline void GetDetectionsRequest::set_height(::int64_t value) { +inline void GetDetectionsRequest::_internal_set_height(int64_t value) { + + height_ = value; +} +inline void GetDetectionsRequest::set_height(int64_t value) { _internal_set_height(value); // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetDetectionsRequest.height) } -inline ::int64_t GetDetectionsRequest::_internal_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.height_; -} -inline void GetDetectionsRequest::_internal_set_height(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.height_ = value; -} // string mime_type = 5 [json_name = "mimeType"]; inline void GetDetectionsRequest::clear_mime_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.mime_type_.ClearToEmpty(); + mime_type_.ClearToEmpty(); } -inline const std::string& GetDetectionsRequest::mime_type() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetDetectionsRequest::mime_type() const { // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetDetectionsRequest.mime_type) return _internal_mime_type(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetDetectionsRequest::set_mime_type(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.mime_type_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetDetectionsRequest::set_mime_type(ArgT0&& arg0, ArgT... args) { + + mime_type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetDetectionsRequest.mime_type) } -inline std::string* GetDetectionsRequest::mutable_mime_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetDetectionsRequest::mutable_mime_type() { std::string* _s = _internal_mutable_mime_type(); // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetDetectionsRequest.mime_type) return _s; } inline const std::string& GetDetectionsRequest::_internal_mime_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.mime_type_.Get(); + return mime_type_.Get(); } inline void GetDetectionsRequest::_internal_set_mime_type(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.mime_type_.Set(value, GetArena()); + + mime_type_.Set(value, GetArenaForAllocation()); } inline std::string* GetDetectionsRequest::_internal_mutable_mime_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.mime_type_.Mutable( GetArena()); + + return mime_type_.Mutable(GetArenaForAllocation()); } inline std::string* GetDetectionsRequest::release_mime_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.vision.v1.GetDetectionsRequest.mime_type) - return _impl_.mime_type_.Release(); -} -inline void GetDetectionsRequest::set_allocated_mime_type(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.mime_type_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.mime_type_.IsDefault()) { - _impl_.mime_type_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return mime_type_.Release(); +} +inline void GetDetectionsRequest::set_allocated_mime_type(std::string* mime_type) { + if (mime_type != nullptr) { + + } else { + + } + mime_type_.SetAllocated(mime_type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (mime_type_.IsDefault()) { + mime_type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.GetDetectionsRequest.mime_type) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetDetectionsRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool GetDetectionsRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& GetDetectionsRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetDetectionsRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& GetDetectionsRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetDetectionsRequest::extra() const { // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetDetectionsRequest.extra) return _internal_extra(); } -inline void GetDetectionsRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void GetDetectionsRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.vision.v1.GetDetectionsRequest.extra) } -inline ::google::protobuf::Struct* GetDetectionsRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetDetectionsRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* GetDetectionsRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetDetectionsRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.service.vision.v1.GetDetectionsRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* GetDetectionsRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetDetectionsRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* GetDetectionsRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetDetectionsRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetDetectionsRequest.extra) return _msg; } -inline void GetDetectionsRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetDetectionsRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.GetDetectionsRequest.extra) } @@ -3952,51 +3401,42 @@ inline void GetDetectionsRequest::set_allocated_extra(::google::protobuf::Struct // repeated .viam.service.vision.v1.Detection detections = 1 [json_name = "detections"]; inline int GetDetectionsResponse::_internal_detections_size() const { - return _internal_detections().size(); + return detections_.size(); } inline int GetDetectionsResponse::detections_size() const { return _internal_detections_size(); } inline void GetDetectionsResponse::clear_detections() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.detections_.Clear(); + detections_.Clear(); } -inline ::viam::service::vision::v1::Detection* GetDetectionsResponse::mutable_detections(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::service::vision::v1::Detection* GetDetectionsResponse::mutable_detections(int index) { // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetDetectionsResponse.detections) - return _internal_mutable_detections()->Mutable(index); + return detections_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::service::vision::v1::Detection>* GetDetectionsResponse::mutable_detections() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::vision::v1::Detection >* +GetDetectionsResponse::mutable_detections() { // @@protoc_insertion_point(field_mutable_list:viam.service.vision.v1.GetDetectionsResponse.detections) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_detections(); + return &detections_; +} +inline const ::viam::service::vision::v1::Detection& GetDetectionsResponse::_internal_detections(int index) const { + return detections_.Get(index); } -inline const ::viam::service::vision::v1::Detection& GetDetectionsResponse::detections(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::service::vision::v1::Detection& GetDetectionsResponse::detections(int index) const { // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetDetectionsResponse.detections) - return _internal_detections().Get(index); + return _internal_detections(index); } -inline ::viam::service::vision::v1::Detection* GetDetectionsResponse::add_detections() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::service::vision::v1::Detection* _add = _internal_mutable_detections()->Add(); +inline ::viam::service::vision::v1::Detection* GetDetectionsResponse::_internal_add_detections() { + return detections_.Add(); +} +inline ::viam::service::vision::v1::Detection* GetDetectionsResponse::add_detections() { + ::viam::service::vision::v1::Detection* _add = _internal_add_detections(); // @@protoc_insertion_point(field_add:viam.service.vision.v1.GetDetectionsResponse.detections) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::service::vision::v1::Detection>& GetDetectionsResponse::detections() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::vision::v1::Detection >& +GetDetectionsResponse::detections() const { // @@protoc_insertion_point(field_list:viam.service.vision.v1.GetDetectionsResponse.detections) - return _internal_detections(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::service::vision::v1::Detection>& -GetDetectionsResponse::_internal_detections() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.detections_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::service::vision::v1::Detection>* -GetDetectionsResponse::_internal_mutable_detections() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.detections_; + return detections_; } // ------------------------------------------------------------------- @@ -4005,198 +3445,186 @@ GetDetectionsResponse::_internal_mutable_detections() { // string name = 1 [json_name = "name"]; inline void GetDetectionsFromCameraRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& GetDetectionsFromCameraRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetDetectionsFromCameraRequest::name() const { // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetDetectionsFromCameraRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetDetectionsFromCameraRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetDetectionsFromCameraRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetDetectionsFromCameraRequest.name) } -inline std::string* GetDetectionsFromCameraRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetDetectionsFromCameraRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetDetectionsFromCameraRequest.name) return _s; } inline const std::string& GetDetectionsFromCameraRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void GetDetectionsFromCameraRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* GetDetectionsFromCameraRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* GetDetectionsFromCameraRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.vision.v1.GetDetectionsFromCameraRequest.name) - return _impl_.name_.Release(); -} -inline void GetDetectionsFromCameraRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void GetDetectionsFromCameraRequest::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.service.vision.v1.GetDetectionsFromCameraRequest.name) } // string camera_name = 2 [json_name = "cameraName"]; inline void GetDetectionsFromCameraRequest::clear_camera_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.camera_name_.ClearToEmpty(); + camera_name_.ClearToEmpty(); } -inline const std::string& GetDetectionsFromCameraRequest::camera_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetDetectionsFromCameraRequest::camera_name() const { // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetDetectionsFromCameraRequest.camera_name) return _internal_camera_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetDetectionsFromCameraRequest::set_camera_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.camera_name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetDetectionsFromCameraRequest::set_camera_name(ArgT0&& arg0, ArgT... args) { + + camera_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetDetectionsFromCameraRequest.camera_name) } -inline std::string* GetDetectionsFromCameraRequest::mutable_camera_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetDetectionsFromCameraRequest::mutable_camera_name() { std::string* _s = _internal_mutable_camera_name(); // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetDetectionsFromCameraRequest.camera_name) return _s; } inline const std::string& GetDetectionsFromCameraRequest::_internal_camera_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.camera_name_.Get(); + return camera_name_.Get(); } inline void GetDetectionsFromCameraRequest::_internal_set_camera_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.camera_name_.Set(value, GetArena()); + + camera_name_.Set(value, GetArenaForAllocation()); } inline std::string* GetDetectionsFromCameraRequest::_internal_mutable_camera_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.camera_name_.Mutable( GetArena()); + + return camera_name_.Mutable(GetArenaForAllocation()); } inline std::string* GetDetectionsFromCameraRequest::release_camera_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.vision.v1.GetDetectionsFromCameraRequest.camera_name) - return _impl_.camera_name_.Release(); -} -inline void GetDetectionsFromCameraRequest::set_allocated_camera_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.camera_name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.camera_name_.IsDefault()) { - _impl_.camera_name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return camera_name_.Release(); +} +inline void GetDetectionsFromCameraRequest::set_allocated_camera_name(std::string* camera_name) { + if (camera_name != nullptr) { + + } else { + + } + camera_name_.SetAllocated(camera_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (camera_name_.IsDefault()) { + camera_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.GetDetectionsFromCameraRequest.camera_name) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetDetectionsFromCameraRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool GetDetectionsFromCameraRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& GetDetectionsFromCameraRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetDetectionsFromCameraRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& GetDetectionsFromCameraRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetDetectionsFromCameraRequest::extra() const { // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetDetectionsFromCameraRequest.extra) return _internal_extra(); } -inline void GetDetectionsFromCameraRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void GetDetectionsFromCameraRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.vision.v1.GetDetectionsFromCameraRequest.extra) } -inline ::google::protobuf::Struct* GetDetectionsFromCameraRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetDetectionsFromCameraRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* GetDetectionsFromCameraRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetDetectionsFromCameraRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.service.vision.v1.GetDetectionsFromCameraRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* GetDetectionsFromCameraRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetDetectionsFromCameraRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* GetDetectionsFromCameraRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetDetectionsFromCameraRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetDetectionsFromCameraRequest.extra) return _msg; } -inline void GetDetectionsFromCameraRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetDetectionsFromCameraRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.GetDetectionsFromCameraRequest.extra) } @@ -4206,51 +3634,42 @@ inline void GetDetectionsFromCameraRequest::set_allocated_extra(::google::protob // repeated .viam.service.vision.v1.Detection detections = 1 [json_name = "detections"]; inline int GetDetectionsFromCameraResponse::_internal_detections_size() const { - return _internal_detections().size(); + return detections_.size(); } inline int GetDetectionsFromCameraResponse::detections_size() const { return _internal_detections_size(); } inline void GetDetectionsFromCameraResponse::clear_detections() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.detections_.Clear(); + detections_.Clear(); } -inline ::viam::service::vision::v1::Detection* GetDetectionsFromCameraResponse::mutable_detections(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::service::vision::v1::Detection* GetDetectionsFromCameraResponse::mutable_detections(int index) { // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetDetectionsFromCameraResponse.detections) - return _internal_mutable_detections()->Mutable(index); + return detections_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::service::vision::v1::Detection>* GetDetectionsFromCameraResponse::mutable_detections() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::vision::v1::Detection >* +GetDetectionsFromCameraResponse::mutable_detections() { // @@protoc_insertion_point(field_mutable_list:viam.service.vision.v1.GetDetectionsFromCameraResponse.detections) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_detections(); + return &detections_; +} +inline const ::viam::service::vision::v1::Detection& GetDetectionsFromCameraResponse::_internal_detections(int index) const { + return detections_.Get(index); } -inline const ::viam::service::vision::v1::Detection& GetDetectionsFromCameraResponse::detections(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::service::vision::v1::Detection& GetDetectionsFromCameraResponse::detections(int index) const { // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetDetectionsFromCameraResponse.detections) - return _internal_detections().Get(index); + return _internal_detections(index); } -inline ::viam::service::vision::v1::Detection* GetDetectionsFromCameraResponse::add_detections() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::service::vision::v1::Detection* _add = _internal_mutable_detections()->Add(); +inline ::viam::service::vision::v1::Detection* GetDetectionsFromCameraResponse::_internal_add_detections() { + return detections_.Add(); +} +inline ::viam::service::vision::v1::Detection* GetDetectionsFromCameraResponse::add_detections() { + ::viam::service::vision::v1::Detection* _add = _internal_add_detections(); // @@protoc_insertion_point(field_add:viam.service.vision.v1.GetDetectionsFromCameraResponse.detections) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::service::vision::v1::Detection>& GetDetectionsFromCameraResponse::detections() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::vision::v1::Detection >& +GetDetectionsFromCameraResponse::detections() const { // @@protoc_insertion_point(field_list:viam.service.vision.v1.GetDetectionsFromCameraResponse.detections) - return _internal_detections(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::service::vision::v1::Detection>& -GetDetectionsFromCameraResponse::_internal_detections() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.detections_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::service::vision::v1::Detection>* -GetDetectionsFromCameraResponse::_internal_mutable_detections() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.detections_; + return detections_; } // ------------------------------------------------------------------- @@ -4258,190 +3677,184 @@ GetDetectionsFromCameraResponse::_internal_mutable_detections() { // Detection // optional int64 x_min = 1 [json_name = "xMin"]; -inline bool Detection::has_x_min() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; +inline bool Detection::_internal_has_x_min() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; return value; } +inline bool Detection::has_x_min() const { + return _internal_has_x_min(); +} inline void Detection::clear_x_min() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.x_min_ = ::int64_t{0}; - _impl_._has_bits_[0] &= ~0x00000001u; + x_min_ = int64_t{0}; + _has_bits_[0] &= ~0x00000001u; } -inline ::int64_t Detection::x_min() const { +inline int64_t Detection::_internal_x_min() const { + return x_min_; +} +inline int64_t Detection::x_min() const { // @@protoc_insertion_point(field_get:viam.service.vision.v1.Detection.x_min) return _internal_x_min(); } -inline void Detection::set_x_min(::int64_t value) { +inline void Detection::_internal_set_x_min(int64_t value) { + _has_bits_[0] |= 0x00000001u; + x_min_ = value; +} +inline void Detection::set_x_min(int64_t value) { _internal_set_x_min(value); // @@protoc_insertion_point(field_set:viam.service.vision.v1.Detection.x_min) } -inline ::int64_t Detection::_internal_x_min() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.x_min_; -} -inline void Detection::_internal_set_x_min(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.x_min_ = value; -} // optional int64 y_min = 2 [json_name = "yMin"]; -inline bool Detection::has_y_min() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; +inline bool Detection::_internal_has_y_min() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; return value; } +inline bool Detection::has_y_min() const { + return _internal_has_y_min(); +} inline void Detection::clear_y_min() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.y_min_ = ::int64_t{0}; - _impl_._has_bits_[0] &= ~0x00000002u; + y_min_ = int64_t{0}; + _has_bits_[0] &= ~0x00000002u; +} +inline int64_t Detection::_internal_y_min() const { + return y_min_; } -inline ::int64_t Detection::y_min() const { +inline int64_t Detection::y_min() const { // @@protoc_insertion_point(field_get:viam.service.vision.v1.Detection.y_min) return _internal_y_min(); } -inline void Detection::set_y_min(::int64_t value) { +inline void Detection::_internal_set_y_min(int64_t value) { + _has_bits_[0] |= 0x00000002u; + y_min_ = value; +} +inline void Detection::set_y_min(int64_t value) { _internal_set_y_min(value); // @@protoc_insertion_point(field_set:viam.service.vision.v1.Detection.y_min) } -inline ::int64_t Detection::_internal_y_min() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.y_min_; -} -inline void Detection::_internal_set_y_min(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.y_min_ = value; -} // optional int64 x_max = 3 [json_name = "xMax"]; -inline bool Detection::has_x_max() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; +inline bool Detection::_internal_has_x_max() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; return value; } +inline bool Detection::has_x_max() const { + return _internal_has_x_max(); +} inline void Detection::clear_x_max() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.x_max_ = ::int64_t{0}; - _impl_._has_bits_[0] &= ~0x00000004u; + x_max_ = int64_t{0}; + _has_bits_[0] &= ~0x00000004u; } -inline ::int64_t Detection::x_max() const { +inline int64_t Detection::_internal_x_max() const { + return x_max_; +} +inline int64_t Detection::x_max() const { // @@protoc_insertion_point(field_get:viam.service.vision.v1.Detection.x_max) return _internal_x_max(); } -inline void Detection::set_x_max(::int64_t value) { +inline void Detection::_internal_set_x_max(int64_t value) { + _has_bits_[0] |= 0x00000004u; + x_max_ = value; +} +inline void Detection::set_x_max(int64_t value) { _internal_set_x_max(value); // @@protoc_insertion_point(field_set:viam.service.vision.v1.Detection.x_max) } -inline ::int64_t Detection::_internal_x_max() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.x_max_; -} -inline void Detection::_internal_set_x_max(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; - _impl_.x_max_ = value; -} // optional int64 y_max = 4 [json_name = "yMax"]; -inline bool Detection::has_y_max() const { - bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; +inline bool Detection::_internal_has_y_max() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; return value; } +inline bool Detection::has_y_max() const { + return _internal_has_y_max(); +} inline void Detection::clear_y_max() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.y_max_ = ::int64_t{0}; - _impl_._has_bits_[0] &= ~0x00000008u; + y_max_ = int64_t{0}; + _has_bits_[0] &= ~0x00000008u; +} +inline int64_t Detection::_internal_y_max() const { + return y_max_; } -inline ::int64_t Detection::y_max() const { +inline int64_t Detection::y_max() const { // @@protoc_insertion_point(field_get:viam.service.vision.v1.Detection.y_max) return _internal_y_max(); } -inline void Detection::set_y_max(::int64_t value) { +inline void Detection::_internal_set_y_max(int64_t value) { + _has_bits_[0] |= 0x00000008u; + y_max_ = value; +} +inline void Detection::set_y_max(int64_t value) { _internal_set_y_max(value); // @@protoc_insertion_point(field_set:viam.service.vision.v1.Detection.y_max) } -inline ::int64_t Detection::_internal_y_max() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.y_max_; -} -inline void Detection::_internal_set_y_max(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000008u; - _impl_.y_max_ = value; -} // double confidence = 5 [json_name = "confidence"]; inline void Detection::clear_confidence() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.confidence_ = 0; + confidence_ = 0; +} +inline double Detection::_internal_confidence() const { + return confidence_; } inline double Detection::confidence() const { // @@protoc_insertion_point(field_get:viam.service.vision.v1.Detection.confidence) return _internal_confidence(); } +inline void Detection::_internal_set_confidence(double value) { + + confidence_ = value; +} inline void Detection::set_confidence(double value) { _internal_set_confidence(value); // @@protoc_insertion_point(field_set:viam.service.vision.v1.Detection.confidence) } -inline double Detection::_internal_confidence() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.confidence_; -} -inline void Detection::_internal_set_confidence(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.confidence_ = value; -} // string class_name = 6 [json_name = "className"]; inline void Detection::clear_class_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.class_name_.ClearToEmpty(); + class_name_.ClearToEmpty(); } -inline const std::string& Detection::class_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Detection::class_name() const { // @@protoc_insertion_point(field_get:viam.service.vision.v1.Detection.class_name) return _internal_class_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void Detection::set_class_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.class_name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Detection::set_class_name(ArgT0&& arg0, ArgT... args) { + + class_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.vision.v1.Detection.class_name) } -inline std::string* Detection::mutable_class_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Detection::mutable_class_name() { std::string* _s = _internal_mutable_class_name(); // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.Detection.class_name) return _s; } inline const std::string& Detection::_internal_class_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.class_name_.Get(); + return class_name_.Get(); } inline void Detection::_internal_set_class_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.class_name_.Set(value, GetArena()); + + class_name_.Set(value, GetArenaForAllocation()); } inline std::string* Detection::_internal_mutable_class_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.class_name_.Mutable( GetArena()); + + return class_name_.Mutable(GetArenaForAllocation()); } inline std::string* Detection::release_class_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.vision.v1.Detection.class_name) - return _impl_.class_name_.Release(); -} -inline void Detection::set_allocated_class_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.class_name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.class_name_.IsDefault()) { - _impl_.class_name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return class_name_.Release(); +} +inline void Detection::set_allocated_class_name(std::string* class_name) { + if (class_name != nullptr) { + + } else { + + } + class_name_.SetAllocated(class_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (class_name_.IsDefault()) { + class_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.Detection.class_name) } @@ -4451,320 +3864,296 @@ inline void Detection::set_allocated_class_name(std::string* value) { // string name = 1 [json_name = "name"]; inline void GetClassificationsRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& GetClassificationsRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetClassificationsRequest::name() const { // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetClassificationsRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetClassificationsRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetClassificationsRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetClassificationsRequest.name) } -inline std::string* GetClassificationsRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetClassificationsRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetClassificationsRequest.name) return _s; } inline const std::string& GetClassificationsRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void GetClassificationsRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* GetClassificationsRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* GetClassificationsRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.vision.v1.GetClassificationsRequest.name) - return _impl_.name_.Release(); -} -inline void GetClassificationsRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void GetClassificationsRequest::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.service.vision.v1.GetClassificationsRequest.name) } // bytes image = 2 [json_name = "image"]; inline void GetClassificationsRequest::clear_image() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.image_.ClearToEmpty(); + image_.ClearToEmpty(); } -inline const std::string& GetClassificationsRequest::image() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetClassificationsRequest::image() const { // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetClassificationsRequest.image) return _internal_image(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetClassificationsRequest::set_image(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.image_.SetBytes(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetClassificationsRequest::set_image(ArgT0&& arg0, ArgT... args) { + + image_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetClassificationsRequest.image) } -inline std::string* GetClassificationsRequest::mutable_image() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetClassificationsRequest::mutable_image() { std::string* _s = _internal_mutable_image(); // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetClassificationsRequest.image) return _s; } inline const std::string& GetClassificationsRequest::_internal_image() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.image_.Get(); + return image_.Get(); } inline void GetClassificationsRequest::_internal_set_image(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.image_.Set(value, GetArena()); + + image_.Set(value, GetArenaForAllocation()); } inline std::string* GetClassificationsRequest::_internal_mutable_image() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.image_.Mutable( GetArena()); + + return image_.Mutable(GetArenaForAllocation()); } inline std::string* GetClassificationsRequest::release_image() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.vision.v1.GetClassificationsRequest.image) - return _impl_.image_.Release(); -} -inline void GetClassificationsRequest::set_allocated_image(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.image_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.image_.IsDefault()) { - _impl_.image_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return image_.Release(); +} +inline void GetClassificationsRequest::set_allocated_image(std::string* image) { + if (image != nullptr) { + + } else { + + } + image_.SetAllocated(image, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (image_.IsDefault()) { + image_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.GetClassificationsRequest.image) } // int32 width = 3 [json_name = "width"]; inline void GetClassificationsRequest::clear_width() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.width_ = 0; + width_ = 0; +} +inline int32_t GetClassificationsRequest::_internal_width() const { + return width_; } -inline ::int32_t GetClassificationsRequest::width() const { +inline int32_t GetClassificationsRequest::width() const { // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetClassificationsRequest.width) return _internal_width(); } -inline void GetClassificationsRequest::set_width(::int32_t value) { +inline void GetClassificationsRequest::_internal_set_width(int32_t value) { + + width_ = value; +} +inline void GetClassificationsRequest::set_width(int32_t value) { _internal_set_width(value); // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetClassificationsRequest.width) } -inline ::int32_t GetClassificationsRequest::_internal_width() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.width_; -} -inline void GetClassificationsRequest::_internal_set_width(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.width_ = value; -} // int32 height = 4 [json_name = "height"]; inline void GetClassificationsRequest::clear_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.height_ = 0; + height_ = 0; +} +inline int32_t GetClassificationsRequest::_internal_height() const { + return height_; } -inline ::int32_t GetClassificationsRequest::height() const { +inline int32_t GetClassificationsRequest::height() const { // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetClassificationsRequest.height) return _internal_height(); } -inline void GetClassificationsRequest::set_height(::int32_t value) { +inline void GetClassificationsRequest::_internal_set_height(int32_t value) { + + height_ = value; +} +inline void GetClassificationsRequest::set_height(int32_t value) { _internal_set_height(value); // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetClassificationsRequest.height) } -inline ::int32_t GetClassificationsRequest::_internal_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.height_; -} -inline void GetClassificationsRequest::_internal_set_height(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.height_ = value; -} // string mime_type = 5 [json_name = "mimeType"]; inline void GetClassificationsRequest::clear_mime_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.mime_type_.ClearToEmpty(); + mime_type_.ClearToEmpty(); } -inline const std::string& GetClassificationsRequest::mime_type() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetClassificationsRequest::mime_type() const { // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetClassificationsRequest.mime_type) return _internal_mime_type(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetClassificationsRequest::set_mime_type(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.mime_type_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetClassificationsRequest::set_mime_type(ArgT0&& arg0, ArgT... args) { + + mime_type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetClassificationsRequest.mime_type) } -inline std::string* GetClassificationsRequest::mutable_mime_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetClassificationsRequest::mutable_mime_type() { std::string* _s = _internal_mutable_mime_type(); // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetClassificationsRequest.mime_type) return _s; } inline const std::string& GetClassificationsRequest::_internal_mime_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.mime_type_.Get(); + return mime_type_.Get(); } inline void GetClassificationsRequest::_internal_set_mime_type(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.mime_type_.Set(value, GetArena()); + + mime_type_.Set(value, GetArenaForAllocation()); } inline std::string* GetClassificationsRequest::_internal_mutable_mime_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.mime_type_.Mutable( GetArena()); + + return mime_type_.Mutable(GetArenaForAllocation()); } inline std::string* GetClassificationsRequest::release_mime_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.vision.v1.GetClassificationsRequest.mime_type) - return _impl_.mime_type_.Release(); -} -inline void GetClassificationsRequest::set_allocated_mime_type(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.mime_type_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.mime_type_.IsDefault()) { - _impl_.mime_type_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return mime_type_.Release(); +} +inline void GetClassificationsRequest::set_allocated_mime_type(std::string* mime_type) { + if (mime_type != nullptr) { + + } else { + + } + mime_type_.SetAllocated(mime_type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (mime_type_.IsDefault()) { + mime_type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.GetClassificationsRequest.mime_type) } // int32 n = 6 [json_name = "n"]; inline void GetClassificationsRequest::clear_n() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.n_ = 0; + n_ = 0; +} +inline int32_t GetClassificationsRequest::_internal_n() const { + return n_; } -inline ::int32_t GetClassificationsRequest::n() const { +inline int32_t GetClassificationsRequest::n() const { // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetClassificationsRequest.n) return _internal_n(); } -inline void GetClassificationsRequest::set_n(::int32_t value) { +inline void GetClassificationsRequest::_internal_set_n(int32_t value) { + + n_ = value; +} +inline void GetClassificationsRequest::set_n(int32_t value) { _internal_set_n(value); // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetClassificationsRequest.n) } -inline ::int32_t GetClassificationsRequest::_internal_n() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.n_; -} -inline void GetClassificationsRequest::_internal_set_n(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.n_ = value; -} // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetClassificationsRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool GetClassificationsRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& GetClassificationsRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetClassificationsRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& GetClassificationsRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetClassificationsRequest::extra() const { // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetClassificationsRequest.extra) return _internal_extra(); } -inline void GetClassificationsRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void GetClassificationsRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.vision.v1.GetClassificationsRequest.extra) } -inline ::google::protobuf::Struct* GetClassificationsRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetClassificationsRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* GetClassificationsRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetClassificationsRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.service.vision.v1.GetClassificationsRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* GetClassificationsRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetClassificationsRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* GetClassificationsRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetClassificationsRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetClassificationsRequest.extra) return _msg; } -inline void GetClassificationsRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetClassificationsRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.GetClassificationsRequest.extra) } @@ -4774,51 +4163,42 @@ inline void GetClassificationsRequest::set_allocated_extra(::google::protobuf::S // repeated .viam.service.vision.v1.Classification classifications = 1 [json_name = "classifications"]; inline int GetClassificationsResponse::_internal_classifications_size() const { - return _internal_classifications().size(); + return classifications_.size(); } inline int GetClassificationsResponse::classifications_size() const { return _internal_classifications_size(); } inline void GetClassificationsResponse::clear_classifications() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.classifications_.Clear(); + classifications_.Clear(); } -inline ::viam::service::vision::v1::Classification* GetClassificationsResponse::mutable_classifications(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::service::vision::v1::Classification* GetClassificationsResponse::mutable_classifications(int index) { // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetClassificationsResponse.classifications) - return _internal_mutable_classifications()->Mutable(index); + return classifications_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::service::vision::v1::Classification>* GetClassificationsResponse::mutable_classifications() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::vision::v1::Classification >* +GetClassificationsResponse::mutable_classifications() { // @@protoc_insertion_point(field_mutable_list:viam.service.vision.v1.GetClassificationsResponse.classifications) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_classifications(); + return &classifications_; +} +inline const ::viam::service::vision::v1::Classification& GetClassificationsResponse::_internal_classifications(int index) const { + return classifications_.Get(index); } -inline const ::viam::service::vision::v1::Classification& GetClassificationsResponse::classifications(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::service::vision::v1::Classification& GetClassificationsResponse::classifications(int index) const { // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetClassificationsResponse.classifications) - return _internal_classifications().Get(index); + return _internal_classifications(index); } -inline ::viam::service::vision::v1::Classification* GetClassificationsResponse::add_classifications() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::service::vision::v1::Classification* _add = _internal_mutable_classifications()->Add(); +inline ::viam::service::vision::v1::Classification* GetClassificationsResponse::_internal_add_classifications() { + return classifications_.Add(); +} +inline ::viam::service::vision::v1::Classification* GetClassificationsResponse::add_classifications() { + ::viam::service::vision::v1::Classification* _add = _internal_add_classifications(); // @@protoc_insertion_point(field_add:viam.service.vision.v1.GetClassificationsResponse.classifications) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::service::vision::v1::Classification>& GetClassificationsResponse::classifications() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::vision::v1::Classification >& +GetClassificationsResponse::classifications() const { // @@protoc_insertion_point(field_list:viam.service.vision.v1.GetClassificationsResponse.classifications) - return _internal_classifications(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::service::vision::v1::Classification>& -GetClassificationsResponse::_internal_classifications() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.classifications_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::service::vision::v1::Classification>* -GetClassificationsResponse::_internal_mutable_classifications() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.classifications_; + return classifications_; } // ------------------------------------------------------------------- @@ -4827,221 +4207,206 @@ GetClassificationsResponse::_internal_mutable_classifications() { // string name = 1 [json_name = "name"]; inline void GetClassificationsFromCameraRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& GetClassificationsFromCameraRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetClassificationsFromCameraRequest::name() const { // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetClassificationsFromCameraRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetClassificationsFromCameraRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetClassificationsFromCameraRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetClassificationsFromCameraRequest.name) } -inline std::string* GetClassificationsFromCameraRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetClassificationsFromCameraRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetClassificationsFromCameraRequest.name) return _s; } inline const std::string& GetClassificationsFromCameraRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void GetClassificationsFromCameraRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* GetClassificationsFromCameraRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* GetClassificationsFromCameraRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.vision.v1.GetClassificationsFromCameraRequest.name) - return _impl_.name_.Release(); -} -inline void GetClassificationsFromCameraRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void GetClassificationsFromCameraRequest::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.service.vision.v1.GetClassificationsFromCameraRequest.name) } // string camera_name = 2 [json_name = "cameraName"]; inline void GetClassificationsFromCameraRequest::clear_camera_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.camera_name_.ClearToEmpty(); + camera_name_.ClearToEmpty(); } -inline const std::string& GetClassificationsFromCameraRequest::camera_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetClassificationsFromCameraRequest::camera_name() const { // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetClassificationsFromCameraRequest.camera_name) return _internal_camera_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetClassificationsFromCameraRequest::set_camera_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.camera_name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetClassificationsFromCameraRequest::set_camera_name(ArgT0&& arg0, ArgT... args) { + + camera_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetClassificationsFromCameraRequest.camera_name) } -inline std::string* GetClassificationsFromCameraRequest::mutable_camera_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetClassificationsFromCameraRequest::mutable_camera_name() { std::string* _s = _internal_mutable_camera_name(); // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetClassificationsFromCameraRequest.camera_name) return _s; } inline const std::string& GetClassificationsFromCameraRequest::_internal_camera_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.camera_name_.Get(); + return camera_name_.Get(); } inline void GetClassificationsFromCameraRequest::_internal_set_camera_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.camera_name_.Set(value, GetArena()); + + camera_name_.Set(value, GetArenaForAllocation()); } inline std::string* GetClassificationsFromCameraRequest::_internal_mutable_camera_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.camera_name_.Mutable( GetArena()); + + return camera_name_.Mutable(GetArenaForAllocation()); } inline std::string* GetClassificationsFromCameraRequest::release_camera_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.vision.v1.GetClassificationsFromCameraRequest.camera_name) - return _impl_.camera_name_.Release(); -} -inline void GetClassificationsFromCameraRequest::set_allocated_camera_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.camera_name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.camera_name_.IsDefault()) { - _impl_.camera_name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return camera_name_.Release(); +} +inline void GetClassificationsFromCameraRequest::set_allocated_camera_name(std::string* camera_name) { + if (camera_name != nullptr) { + + } else { + + } + camera_name_.SetAllocated(camera_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (camera_name_.IsDefault()) { + camera_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.GetClassificationsFromCameraRequest.camera_name) } // int32 n = 3 [json_name = "n"]; inline void GetClassificationsFromCameraRequest::clear_n() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.n_ = 0; + n_ = 0; +} +inline int32_t GetClassificationsFromCameraRequest::_internal_n() const { + return n_; } -inline ::int32_t GetClassificationsFromCameraRequest::n() const { +inline int32_t GetClassificationsFromCameraRequest::n() const { // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetClassificationsFromCameraRequest.n) return _internal_n(); } -inline void GetClassificationsFromCameraRequest::set_n(::int32_t value) { +inline void GetClassificationsFromCameraRequest::_internal_set_n(int32_t value) { + + n_ = value; +} +inline void GetClassificationsFromCameraRequest::set_n(int32_t value) { _internal_set_n(value); // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetClassificationsFromCameraRequest.n) } -inline ::int32_t GetClassificationsFromCameraRequest::_internal_n() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.n_; -} -inline void GetClassificationsFromCameraRequest::_internal_set_n(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.n_ = value; -} // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetClassificationsFromCameraRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool GetClassificationsFromCameraRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& GetClassificationsFromCameraRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetClassificationsFromCameraRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& GetClassificationsFromCameraRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetClassificationsFromCameraRequest::extra() const { // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetClassificationsFromCameraRequest.extra) return _internal_extra(); } -inline void GetClassificationsFromCameraRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void GetClassificationsFromCameraRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.vision.v1.GetClassificationsFromCameraRequest.extra) } -inline ::google::protobuf::Struct* GetClassificationsFromCameraRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetClassificationsFromCameraRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* GetClassificationsFromCameraRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetClassificationsFromCameraRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.service.vision.v1.GetClassificationsFromCameraRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* GetClassificationsFromCameraRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetClassificationsFromCameraRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* GetClassificationsFromCameraRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetClassificationsFromCameraRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetClassificationsFromCameraRequest.extra) return _msg; } -inline void GetClassificationsFromCameraRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetClassificationsFromCameraRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.GetClassificationsFromCameraRequest.extra) } @@ -5051,51 +4416,42 @@ inline void GetClassificationsFromCameraRequest::set_allocated_extra(::google::p // repeated .viam.service.vision.v1.Classification classifications = 1 [json_name = "classifications"]; inline int GetClassificationsFromCameraResponse::_internal_classifications_size() const { - return _internal_classifications().size(); + return classifications_.size(); } inline int GetClassificationsFromCameraResponse::classifications_size() const { return _internal_classifications_size(); } inline void GetClassificationsFromCameraResponse::clear_classifications() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.classifications_.Clear(); + classifications_.Clear(); } -inline ::viam::service::vision::v1::Classification* GetClassificationsFromCameraResponse::mutable_classifications(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::service::vision::v1::Classification* GetClassificationsFromCameraResponse::mutable_classifications(int index) { // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetClassificationsFromCameraResponse.classifications) - return _internal_mutable_classifications()->Mutable(index); + return classifications_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::service::vision::v1::Classification>* GetClassificationsFromCameraResponse::mutable_classifications() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::vision::v1::Classification >* +GetClassificationsFromCameraResponse::mutable_classifications() { // @@protoc_insertion_point(field_mutable_list:viam.service.vision.v1.GetClassificationsFromCameraResponse.classifications) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_classifications(); + return &classifications_; +} +inline const ::viam::service::vision::v1::Classification& GetClassificationsFromCameraResponse::_internal_classifications(int index) const { + return classifications_.Get(index); } -inline const ::viam::service::vision::v1::Classification& GetClassificationsFromCameraResponse::classifications(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::service::vision::v1::Classification& GetClassificationsFromCameraResponse::classifications(int index) const { // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetClassificationsFromCameraResponse.classifications) - return _internal_classifications().Get(index); + return _internal_classifications(index); } -inline ::viam::service::vision::v1::Classification* GetClassificationsFromCameraResponse::add_classifications() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::service::vision::v1::Classification* _add = _internal_mutable_classifications()->Add(); +inline ::viam::service::vision::v1::Classification* GetClassificationsFromCameraResponse::_internal_add_classifications() { + return classifications_.Add(); +} +inline ::viam::service::vision::v1::Classification* GetClassificationsFromCameraResponse::add_classifications() { + ::viam::service::vision::v1::Classification* _add = _internal_add_classifications(); // @@protoc_insertion_point(field_add:viam.service.vision.v1.GetClassificationsFromCameraResponse.classifications) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::service::vision::v1::Classification>& GetClassificationsFromCameraResponse::classifications() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::vision::v1::Classification >& +GetClassificationsFromCameraResponse::classifications() const { // @@protoc_insertion_point(field_list:viam.service.vision.v1.GetClassificationsFromCameraResponse.classifications) - return _internal_classifications(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::service::vision::v1::Classification>& -GetClassificationsFromCameraResponse::_internal_classifications() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.classifications_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::service::vision::v1::Classification>* -GetClassificationsFromCameraResponse::_internal_mutable_classifications() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.classifications_; + return classifications_; } // ------------------------------------------------------------------- @@ -5104,79 +4460,73 @@ GetClassificationsFromCameraResponse::_internal_mutable_classifications() { // string class_name = 1 [json_name = "className"]; inline void Classification::clear_class_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.class_name_.ClearToEmpty(); + class_name_.ClearToEmpty(); } -inline const std::string& Classification::class_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& Classification::class_name() const { // @@protoc_insertion_point(field_get:viam.service.vision.v1.Classification.class_name) return _internal_class_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void Classification::set_class_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.class_name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void Classification::set_class_name(ArgT0&& arg0, ArgT... args) { + + class_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.vision.v1.Classification.class_name) } -inline std::string* Classification::mutable_class_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* Classification::mutable_class_name() { std::string* _s = _internal_mutable_class_name(); // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.Classification.class_name) return _s; } inline const std::string& Classification::_internal_class_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.class_name_.Get(); + return class_name_.Get(); } inline void Classification::_internal_set_class_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.class_name_.Set(value, GetArena()); + + class_name_.Set(value, GetArenaForAllocation()); } inline std::string* Classification::_internal_mutable_class_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.class_name_.Mutable( GetArena()); + + return class_name_.Mutable(GetArenaForAllocation()); } inline std::string* Classification::release_class_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.vision.v1.Classification.class_name) - return _impl_.class_name_.Release(); -} -inline void Classification::set_allocated_class_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.class_name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.class_name_.IsDefault()) { - _impl_.class_name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return class_name_.Release(); +} +inline void Classification::set_allocated_class_name(std::string* class_name) { + if (class_name != nullptr) { + + } else { + + } + class_name_.SetAllocated(class_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (class_name_.IsDefault()) { + class_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.Classification.class_name) } // double confidence = 2 [json_name = "confidence"]; inline void Classification::clear_confidence() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.confidence_ = 0; + confidence_ = 0; +} +inline double Classification::_internal_confidence() const { + return confidence_; } inline double Classification::confidence() const { // @@protoc_insertion_point(field_get:viam.service.vision.v1.Classification.confidence) return _internal_confidence(); } +inline void Classification::_internal_set_confidence(double value) { + + confidence_ = value; +} inline void Classification::set_confidence(double value) { _internal_set_confidence(value); // @@protoc_insertion_point(field_set:viam.service.vision.v1.Classification.confidence) } -inline double Classification::_internal_confidence() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.confidence_; -} -inline void Classification::_internal_set_confidence(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.confidence_ = value; -} // ------------------------------------------------------------------- @@ -5184,251 +4534,236 @@ inline void Classification::_internal_set_confidence(double value) { // string name = 1 [json_name = "name"]; inline void GetObjectPointCloudsRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& GetObjectPointCloudsRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetObjectPointCloudsRequest::name() const { // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetObjectPointCloudsRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetObjectPointCloudsRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetObjectPointCloudsRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetObjectPointCloudsRequest.name) } -inline std::string* GetObjectPointCloudsRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetObjectPointCloudsRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetObjectPointCloudsRequest.name) return _s; } inline const std::string& GetObjectPointCloudsRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void GetObjectPointCloudsRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* GetObjectPointCloudsRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* GetObjectPointCloudsRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.vision.v1.GetObjectPointCloudsRequest.name) - return _impl_.name_.Release(); -} -inline void GetObjectPointCloudsRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void GetObjectPointCloudsRequest::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.service.vision.v1.GetObjectPointCloudsRequest.name) } // string camera_name = 2 [json_name = "cameraName"]; inline void GetObjectPointCloudsRequest::clear_camera_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.camera_name_.ClearToEmpty(); + camera_name_.ClearToEmpty(); } -inline const std::string& GetObjectPointCloudsRequest::camera_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetObjectPointCloudsRequest::camera_name() const { // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetObjectPointCloudsRequest.camera_name) return _internal_camera_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetObjectPointCloudsRequest::set_camera_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.camera_name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetObjectPointCloudsRequest::set_camera_name(ArgT0&& arg0, ArgT... args) { + + camera_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetObjectPointCloudsRequest.camera_name) } -inline std::string* GetObjectPointCloudsRequest::mutable_camera_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetObjectPointCloudsRequest::mutable_camera_name() { std::string* _s = _internal_mutable_camera_name(); // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetObjectPointCloudsRequest.camera_name) return _s; } inline const std::string& GetObjectPointCloudsRequest::_internal_camera_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.camera_name_.Get(); + return camera_name_.Get(); } inline void GetObjectPointCloudsRequest::_internal_set_camera_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.camera_name_.Set(value, GetArena()); + + camera_name_.Set(value, GetArenaForAllocation()); } inline std::string* GetObjectPointCloudsRequest::_internal_mutable_camera_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.camera_name_.Mutable( GetArena()); + + return camera_name_.Mutable(GetArenaForAllocation()); } inline std::string* GetObjectPointCloudsRequest::release_camera_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.vision.v1.GetObjectPointCloudsRequest.camera_name) - return _impl_.camera_name_.Release(); -} -inline void GetObjectPointCloudsRequest::set_allocated_camera_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.camera_name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.camera_name_.IsDefault()) { - _impl_.camera_name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return camera_name_.Release(); +} +inline void GetObjectPointCloudsRequest::set_allocated_camera_name(std::string* camera_name) { + if (camera_name != nullptr) { + + } else { + + } + camera_name_.SetAllocated(camera_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (camera_name_.IsDefault()) { + camera_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.GetObjectPointCloudsRequest.camera_name) } // string mime_type = 3 [json_name = "mimeType"]; inline void GetObjectPointCloudsRequest::clear_mime_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.mime_type_.ClearToEmpty(); + mime_type_.ClearToEmpty(); } -inline const std::string& GetObjectPointCloudsRequest::mime_type() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetObjectPointCloudsRequest::mime_type() const { // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetObjectPointCloudsRequest.mime_type) return _internal_mime_type(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetObjectPointCloudsRequest::set_mime_type(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.mime_type_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetObjectPointCloudsRequest::set_mime_type(ArgT0&& arg0, ArgT... args) { + + mime_type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetObjectPointCloudsRequest.mime_type) } -inline std::string* GetObjectPointCloudsRequest::mutable_mime_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetObjectPointCloudsRequest::mutable_mime_type() { std::string* _s = _internal_mutable_mime_type(); // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetObjectPointCloudsRequest.mime_type) return _s; } inline const std::string& GetObjectPointCloudsRequest::_internal_mime_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.mime_type_.Get(); + return mime_type_.Get(); } inline void GetObjectPointCloudsRequest::_internal_set_mime_type(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.mime_type_.Set(value, GetArena()); + + mime_type_.Set(value, GetArenaForAllocation()); } inline std::string* GetObjectPointCloudsRequest::_internal_mutable_mime_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.mime_type_.Mutable( GetArena()); + + return mime_type_.Mutable(GetArenaForAllocation()); } inline std::string* GetObjectPointCloudsRequest::release_mime_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.vision.v1.GetObjectPointCloudsRequest.mime_type) - return _impl_.mime_type_.Release(); -} -inline void GetObjectPointCloudsRequest::set_allocated_mime_type(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.mime_type_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.mime_type_.IsDefault()) { - _impl_.mime_type_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return mime_type_.Release(); +} +inline void GetObjectPointCloudsRequest::set_allocated_mime_type(std::string* mime_type) { + if (mime_type != nullptr) { + + } else { + + } + mime_type_.SetAllocated(mime_type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (mime_type_.IsDefault()) { + mime_type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.GetObjectPointCloudsRequest.mime_type) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetObjectPointCloudsRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool GetObjectPointCloudsRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& GetObjectPointCloudsRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetObjectPointCloudsRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& GetObjectPointCloudsRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetObjectPointCloudsRequest::extra() const { // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetObjectPointCloudsRequest.extra) return _internal_extra(); } -inline void GetObjectPointCloudsRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void GetObjectPointCloudsRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.vision.v1.GetObjectPointCloudsRequest.extra) } -inline ::google::protobuf::Struct* GetObjectPointCloudsRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetObjectPointCloudsRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* GetObjectPointCloudsRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetObjectPointCloudsRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.service.vision.v1.GetObjectPointCloudsRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* GetObjectPointCloudsRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetObjectPointCloudsRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* GetObjectPointCloudsRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetObjectPointCloudsRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetObjectPointCloudsRequest.extra) return _msg; } -inline void GetObjectPointCloudsRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetObjectPointCloudsRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.GetObjectPointCloudsRequest.extra) } @@ -5438,100 +4773,89 @@ inline void GetObjectPointCloudsRequest::set_allocated_extra(::google::protobuf: // string mime_type = 1 [json_name = "mimeType"]; inline void GetObjectPointCloudsResponse::clear_mime_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.mime_type_.ClearToEmpty(); + mime_type_.ClearToEmpty(); } -inline const std::string& GetObjectPointCloudsResponse::mime_type() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetObjectPointCloudsResponse::mime_type() const { // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetObjectPointCloudsResponse.mime_type) return _internal_mime_type(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetObjectPointCloudsResponse::set_mime_type(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.mime_type_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetObjectPointCloudsResponse::set_mime_type(ArgT0&& arg0, ArgT... args) { + + mime_type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetObjectPointCloudsResponse.mime_type) } -inline std::string* GetObjectPointCloudsResponse::mutable_mime_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetObjectPointCloudsResponse::mutable_mime_type() { std::string* _s = _internal_mutable_mime_type(); // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetObjectPointCloudsResponse.mime_type) return _s; } inline const std::string& GetObjectPointCloudsResponse::_internal_mime_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.mime_type_.Get(); + return mime_type_.Get(); } inline void GetObjectPointCloudsResponse::_internal_set_mime_type(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.mime_type_.Set(value, GetArena()); + + mime_type_.Set(value, GetArenaForAllocation()); } inline std::string* GetObjectPointCloudsResponse::_internal_mutable_mime_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.mime_type_.Mutable( GetArena()); + + return mime_type_.Mutable(GetArenaForAllocation()); } inline std::string* GetObjectPointCloudsResponse::release_mime_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.vision.v1.GetObjectPointCloudsResponse.mime_type) - return _impl_.mime_type_.Release(); -} -inline void GetObjectPointCloudsResponse::set_allocated_mime_type(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.mime_type_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.mime_type_.IsDefault()) { - _impl_.mime_type_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return mime_type_.Release(); +} +inline void GetObjectPointCloudsResponse::set_allocated_mime_type(std::string* mime_type) { + if (mime_type != nullptr) { + + } else { + + } + mime_type_.SetAllocated(mime_type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (mime_type_.IsDefault()) { + mime_type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.GetObjectPointCloudsResponse.mime_type) } // repeated .viam.common.v1.PointCloudObject objects = 2 [json_name = "objects"]; inline int GetObjectPointCloudsResponse::_internal_objects_size() const { - return _internal_objects().size(); + return objects_.size(); } inline int GetObjectPointCloudsResponse::objects_size() const { return _internal_objects_size(); } -inline ::viam::common::v1::PointCloudObject* GetObjectPointCloudsResponse::mutable_objects(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::PointCloudObject* GetObjectPointCloudsResponse::mutable_objects(int index) { // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetObjectPointCloudsResponse.objects) - return _internal_mutable_objects()->Mutable(index); + return objects_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::common::v1::PointCloudObject>* GetObjectPointCloudsResponse::mutable_objects() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::PointCloudObject >* +GetObjectPointCloudsResponse::mutable_objects() { // @@protoc_insertion_point(field_mutable_list:viam.service.vision.v1.GetObjectPointCloudsResponse.objects) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_objects(); + return &objects_; +} +inline const ::viam::common::v1::PointCloudObject& GetObjectPointCloudsResponse::_internal_objects(int index) const { + return objects_.Get(index); } -inline const ::viam::common::v1::PointCloudObject& GetObjectPointCloudsResponse::objects(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::PointCloudObject& GetObjectPointCloudsResponse::objects(int index) const { // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetObjectPointCloudsResponse.objects) - return _internal_objects().Get(index); + return _internal_objects(index); } -inline ::viam::common::v1::PointCloudObject* GetObjectPointCloudsResponse::add_objects() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::common::v1::PointCloudObject* _add = _internal_mutable_objects()->Add(); +inline ::viam::common::v1::PointCloudObject* GetObjectPointCloudsResponse::_internal_add_objects() { + return objects_.Add(); +} +inline ::viam::common::v1::PointCloudObject* GetObjectPointCloudsResponse::add_objects() { + ::viam::common::v1::PointCloudObject* _add = _internal_add_objects(); // @@protoc_insertion_point(field_add:viam.service.vision.v1.GetObjectPointCloudsResponse.objects) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::common::v1::PointCloudObject>& GetObjectPointCloudsResponse::objects() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::PointCloudObject >& +GetObjectPointCloudsResponse::objects() const { // @@protoc_insertion_point(field_list:viam.service.vision.v1.GetObjectPointCloudsResponse.objects) - return _internal_objects(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::common::v1::PointCloudObject>& -GetObjectPointCloudsResponse::_internal_objects() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.objects_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::common::v1::PointCloudObject>* -GetObjectPointCloudsResponse::_internal_mutable_objects() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.objects_; + return objects_; } // ------------------------------------------------------------------- @@ -5540,145 +4864,136 @@ GetObjectPointCloudsResponse::_internal_mutable_objects() { // string name = 1 [json_name = "name"]; inline void GetPropertiesRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& GetPropertiesRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& GetPropertiesRequest::name() const { // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetPropertiesRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void GetPropertiesRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void GetPropertiesRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetPropertiesRequest.name) } -inline std::string* GetPropertiesRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* GetPropertiesRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetPropertiesRequest.name) return _s; } inline const std::string& GetPropertiesRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void GetPropertiesRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* GetPropertiesRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* GetPropertiesRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.vision.v1.GetPropertiesRequest.name) - return _impl_.name_.Release(); -} -inline void GetPropertiesRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void GetPropertiesRequest::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.service.vision.v1.GetPropertiesRequest.name) } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetPropertiesRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool GetPropertiesRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& GetPropertiesRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetPropertiesRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& GetPropertiesRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetPropertiesRequest::extra() const { // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetPropertiesRequest.extra) return _internal_extra(); } -inline void GetPropertiesRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void GetPropertiesRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.vision.v1.GetPropertiesRequest.extra) } -inline ::google::protobuf::Struct* GetPropertiesRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPropertiesRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* GetPropertiesRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPropertiesRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.service.vision.v1.GetPropertiesRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* GetPropertiesRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPropertiesRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* GetPropertiesRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetPropertiesRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.GetPropertiesRequest.extra) return _msg; } -inline void GetPropertiesRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetPropertiesRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.GetPropertiesRequest.extra) } @@ -5688,290 +5003,266 @@ inline void GetPropertiesRequest::set_allocated_extra(::google::protobuf::Struct // string name = 1 [json_name = "name"]; inline void CaptureAllFromCameraRequest::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(); } -inline const std::string& CaptureAllFromCameraRequest::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& CaptureAllFromCameraRequest::name() const { // @@protoc_insertion_point(field_get:viam.service.vision.v1.CaptureAllFromCameraRequest.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void CaptureAllFromCameraRequest::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void CaptureAllFromCameraRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.vision.v1.CaptureAllFromCameraRequest.name) } -inline std::string* CaptureAllFromCameraRequest::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* CaptureAllFromCameraRequest::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.CaptureAllFromCameraRequest.name) return _s; } inline const std::string& CaptureAllFromCameraRequest::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); + return name_.Get(); } inline void CaptureAllFromCameraRequest::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.name_.Set(value, GetArena()); + + name_.Set(value, GetArenaForAllocation()); } inline std::string* CaptureAllFromCameraRequest::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.name_.Mutable( GetArena()); + + return name_.Mutable(GetArenaForAllocation()); } inline std::string* CaptureAllFromCameraRequest::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.vision.v1.CaptureAllFromCameraRequest.name) - return _impl_.name_.Release(); -} -inline void CaptureAllFromCameraRequest::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return name_.Release(); +} +inline void CaptureAllFromCameraRequest::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.service.vision.v1.CaptureAllFromCameraRequest.name) } // string camera_name = 2 [json_name = "cameraName"]; inline void CaptureAllFromCameraRequest::clear_camera_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.camera_name_.ClearToEmpty(); + camera_name_.ClearToEmpty(); } -inline const std::string& CaptureAllFromCameraRequest::camera_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const std::string& CaptureAllFromCameraRequest::camera_name() const { // @@protoc_insertion_point(field_get:viam.service.vision.v1.CaptureAllFromCameraRequest.camera_name) return _internal_camera_name(); } -template -inline PROTOBUF_ALWAYS_INLINE void CaptureAllFromCameraRequest::set_camera_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.camera_name_.Set(static_cast(arg), args..., GetArena()); +template +inline PROTOBUF_ALWAYS_INLINE +void CaptureAllFromCameraRequest::set_camera_name(ArgT0&& arg0, ArgT... args) { + + camera_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:viam.service.vision.v1.CaptureAllFromCameraRequest.camera_name) } -inline std::string* CaptureAllFromCameraRequest::mutable_camera_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline std::string* CaptureAllFromCameraRequest::mutable_camera_name() { std::string* _s = _internal_mutable_camera_name(); // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.CaptureAllFromCameraRequest.camera_name) return _s; } inline const std::string& CaptureAllFromCameraRequest::_internal_camera_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.camera_name_.Get(); + return camera_name_.Get(); } inline void CaptureAllFromCameraRequest::_internal_set_camera_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.camera_name_.Set(value, GetArena()); + + camera_name_.Set(value, GetArenaForAllocation()); } inline std::string* CaptureAllFromCameraRequest::_internal_mutable_camera_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.camera_name_.Mutable( GetArena()); + + return camera_name_.Mutable(GetArenaForAllocation()); } inline std::string* CaptureAllFromCameraRequest::release_camera_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.vision.v1.CaptureAllFromCameraRequest.camera_name) - return _impl_.camera_name_.Release(); -} -inline void CaptureAllFromCameraRequest::set_allocated_camera_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.camera_name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.camera_name_.IsDefault()) { - _impl_.camera_name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return camera_name_.Release(); +} +inline void CaptureAllFromCameraRequest::set_allocated_camera_name(std::string* camera_name) { + if (camera_name != nullptr) { + + } else { + + } + camera_name_.SetAllocated(camera_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (camera_name_.IsDefault()) { + camera_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.CaptureAllFromCameraRequest.camera_name) } // bool return_image = 3 [json_name = "returnImage"]; inline void CaptureAllFromCameraRequest::clear_return_image() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.return_image_ = false; + return_image_ = false; +} +inline bool CaptureAllFromCameraRequest::_internal_return_image() const { + return return_image_; } inline bool CaptureAllFromCameraRequest::return_image() const { // @@protoc_insertion_point(field_get:viam.service.vision.v1.CaptureAllFromCameraRequest.return_image) return _internal_return_image(); } +inline void CaptureAllFromCameraRequest::_internal_set_return_image(bool value) { + + return_image_ = value; +} inline void CaptureAllFromCameraRequest::set_return_image(bool value) { _internal_set_return_image(value); // @@protoc_insertion_point(field_set:viam.service.vision.v1.CaptureAllFromCameraRequest.return_image) } -inline bool CaptureAllFromCameraRequest::_internal_return_image() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.return_image_; -} -inline void CaptureAllFromCameraRequest::_internal_set_return_image(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.return_image_ = value; -} // bool return_classifications = 4 [json_name = "returnClassifications"]; inline void CaptureAllFromCameraRequest::clear_return_classifications() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.return_classifications_ = false; + return_classifications_ = false; +} +inline bool CaptureAllFromCameraRequest::_internal_return_classifications() const { + return return_classifications_; } inline bool CaptureAllFromCameraRequest::return_classifications() const { // @@protoc_insertion_point(field_get:viam.service.vision.v1.CaptureAllFromCameraRequest.return_classifications) return _internal_return_classifications(); } +inline void CaptureAllFromCameraRequest::_internal_set_return_classifications(bool value) { + + return_classifications_ = value; +} inline void CaptureAllFromCameraRequest::set_return_classifications(bool value) { _internal_set_return_classifications(value); // @@protoc_insertion_point(field_set:viam.service.vision.v1.CaptureAllFromCameraRequest.return_classifications) } -inline bool CaptureAllFromCameraRequest::_internal_return_classifications() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.return_classifications_; -} -inline void CaptureAllFromCameraRequest::_internal_set_return_classifications(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.return_classifications_ = value; -} // bool return_detections = 5 [json_name = "returnDetections"]; inline void CaptureAllFromCameraRequest::clear_return_detections() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.return_detections_ = false; + return_detections_ = false; +} +inline bool CaptureAllFromCameraRequest::_internal_return_detections() const { + return return_detections_; } inline bool CaptureAllFromCameraRequest::return_detections() const { // @@protoc_insertion_point(field_get:viam.service.vision.v1.CaptureAllFromCameraRequest.return_detections) return _internal_return_detections(); } +inline void CaptureAllFromCameraRequest::_internal_set_return_detections(bool value) { + + return_detections_ = value; +} inline void CaptureAllFromCameraRequest::set_return_detections(bool value) { _internal_set_return_detections(value); // @@protoc_insertion_point(field_set:viam.service.vision.v1.CaptureAllFromCameraRequest.return_detections) } -inline bool CaptureAllFromCameraRequest::_internal_return_detections() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.return_detections_; -} -inline void CaptureAllFromCameraRequest::_internal_set_return_detections(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.return_detections_ = value; -} // bool return_object_point_clouds = 6 [json_name = "returnObjectPointClouds"]; inline void CaptureAllFromCameraRequest::clear_return_object_point_clouds() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.return_object_point_clouds_ = false; + return_object_point_clouds_ = false; +} +inline bool CaptureAllFromCameraRequest::_internal_return_object_point_clouds() const { + return return_object_point_clouds_; } inline bool CaptureAllFromCameraRequest::return_object_point_clouds() const { // @@protoc_insertion_point(field_get:viam.service.vision.v1.CaptureAllFromCameraRequest.return_object_point_clouds) return _internal_return_object_point_clouds(); } +inline void CaptureAllFromCameraRequest::_internal_set_return_object_point_clouds(bool value) { + + return_object_point_clouds_ = value; +} inline void CaptureAllFromCameraRequest::set_return_object_point_clouds(bool value) { _internal_set_return_object_point_clouds(value); // @@protoc_insertion_point(field_set:viam.service.vision.v1.CaptureAllFromCameraRequest.return_object_point_clouds) } -inline bool CaptureAllFromCameraRequest::_internal_return_object_point_clouds() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.return_object_point_clouds_; -} -inline void CaptureAllFromCameraRequest::_internal_set_return_object_point_clouds(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.return_object_point_clouds_ = value; -} // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool CaptureAllFromCameraRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool CaptureAllFromCameraRequest::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& CaptureAllFromCameraRequest::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& CaptureAllFromCameraRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& CaptureAllFromCameraRequest::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& CaptureAllFromCameraRequest::extra() const { // @@protoc_insertion_point(field_get:viam.service.vision.v1.CaptureAllFromCameraRequest.extra) return _internal_extra(); } -inline void CaptureAllFromCameraRequest::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void CaptureAllFromCameraRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.vision.v1.CaptureAllFromCameraRequest.extra) } -inline ::google::protobuf::Struct* CaptureAllFromCameraRequest::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* CaptureAllFromCameraRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* CaptureAllFromCameraRequest::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* CaptureAllFromCameraRequest::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.service.vision.v1.CaptureAllFromCameraRequest.extra) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* CaptureAllFromCameraRequest::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* CaptureAllFromCameraRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* CaptureAllFromCameraRequest::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* CaptureAllFromCameraRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.CaptureAllFromCameraRequest.extra) return _msg; } -inline void CaptureAllFromCameraRequest::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void CaptureAllFromCameraRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.CaptureAllFromCameraRequest.extra) } @@ -5980,327 +5271,289 @@ inline void CaptureAllFromCameraRequest::set_allocated_extra(::google::protobuf: // CaptureAllFromCameraResponse // .viam.component.camera.v1.Image image = 1 [json_name = "image"]; +inline bool CaptureAllFromCameraResponse::_internal_has_image() const { + return this != internal_default_instance() && image_ != nullptr; +} inline bool CaptureAllFromCameraResponse::has_image() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.image_ != nullptr); - return value; + return _internal_has_image(); } inline const ::viam::component::camera::v1::Image& CaptureAllFromCameraResponse::_internal_image() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::viam::component::camera::v1::Image* p = _impl_.image_; - return p != nullptr ? *p : reinterpret_cast(::viam::component::camera::v1::_Image_default_instance_); + const ::viam::component::camera::v1::Image* p = image_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::component::camera::v1::_Image_default_instance_); } -inline const ::viam::component::camera::v1::Image& CaptureAllFromCameraResponse::image() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::component::camera::v1::Image& CaptureAllFromCameraResponse::image() const { // @@protoc_insertion_point(field_get:viam.service.vision.v1.CaptureAllFromCameraResponse.image) return _internal_image(); } -inline void CaptureAllFromCameraResponse::unsafe_arena_set_allocated_image(::viam::component::camera::v1::Image* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.image_); +inline void CaptureAllFromCameraResponse::unsafe_arena_set_allocated_image( + ::viam::component::camera::v1::Image* image) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(image_); } - _impl_.image_ = reinterpret_cast<::viam::component::camera::v1::Image*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + image_ = image; + if (image) { + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.vision.v1.CaptureAllFromCameraResponse.image) } inline ::viam::component::camera::v1::Image* CaptureAllFromCameraResponse::release_image() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::component::camera::v1::Image* released = _impl_.image_; - _impl_.image_ = nullptr; + + ::viam::component::camera::v1::Image* temp = image_; + image_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } inline ::viam::component::camera::v1::Image* CaptureAllFromCameraResponse::unsafe_arena_release_image() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:viam.service.vision.v1.CaptureAllFromCameraResponse.image) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::viam::component::camera::v1::Image* temp = _impl_.image_; - _impl_.image_ = nullptr; + + ::viam::component::camera::v1::Image* temp = image_; + image_ = nullptr; return temp; } inline ::viam::component::camera::v1::Image* CaptureAllFromCameraResponse::_internal_mutable_image() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.image_ == nullptr) { - auto* p = CreateMaybeMessage<::viam::component::camera::v1::Image>(GetArena()); - _impl_.image_ = reinterpret_cast<::viam::component::camera::v1::Image*>(p); + + if (image_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::component::camera::v1::Image>(GetArenaForAllocation()); + image_ = p; } - return _impl_.image_; + return image_; } -inline ::viam::component::camera::v1::Image* CaptureAllFromCameraResponse::mutable_image() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::component::camera::v1::Image* CaptureAllFromCameraResponse::mutable_image() { ::viam::component::camera::v1::Image* _msg = _internal_mutable_image(); // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.CaptureAllFromCameraResponse.image) return _msg; } -inline void CaptureAllFromCameraResponse::set_allocated_image(::viam::component::camera::v1::Image* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void CaptureAllFromCameraResponse::set_allocated_image(::viam::component::camera::v1::Image* image) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.image_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(image_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (image) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(image)); if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + image = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, image, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + } else { - _impl_._has_bits_[0] &= ~0x00000001u; + } - - _impl_.image_ = reinterpret_cast<::viam::component::camera::v1::Image*>(value); + image_ = image; // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.CaptureAllFromCameraResponse.image) } // repeated .viam.service.vision.v1.Detection detections = 2 [json_name = "detections"]; inline int CaptureAllFromCameraResponse::_internal_detections_size() const { - return _internal_detections().size(); + return detections_.size(); } inline int CaptureAllFromCameraResponse::detections_size() const { return _internal_detections_size(); } inline void CaptureAllFromCameraResponse::clear_detections() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.detections_.Clear(); + detections_.Clear(); } -inline ::viam::service::vision::v1::Detection* CaptureAllFromCameraResponse::mutable_detections(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::service::vision::v1::Detection* CaptureAllFromCameraResponse::mutable_detections(int index) { // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.CaptureAllFromCameraResponse.detections) - return _internal_mutable_detections()->Mutable(index); + return detections_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::service::vision::v1::Detection>* CaptureAllFromCameraResponse::mutable_detections() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::vision::v1::Detection >* +CaptureAllFromCameraResponse::mutable_detections() { // @@protoc_insertion_point(field_mutable_list:viam.service.vision.v1.CaptureAllFromCameraResponse.detections) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_detections(); + return &detections_; +} +inline const ::viam::service::vision::v1::Detection& CaptureAllFromCameraResponse::_internal_detections(int index) const { + return detections_.Get(index); } -inline const ::viam::service::vision::v1::Detection& CaptureAllFromCameraResponse::detections(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::service::vision::v1::Detection& CaptureAllFromCameraResponse::detections(int index) const { // @@protoc_insertion_point(field_get:viam.service.vision.v1.CaptureAllFromCameraResponse.detections) - return _internal_detections().Get(index); + return _internal_detections(index); } -inline ::viam::service::vision::v1::Detection* CaptureAllFromCameraResponse::add_detections() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::service::vision::v1::Detection* _add = _internal_mutable_detections()->Add(); +inline ::viam::service::vision::v1::Detection* CaptureAllFromCameraResponse::_internal_add_detections() { + return detections_.Add(); +} +inline ::viam::service::vision::v1::Detection* CaptureAllFromCameraResponse::add_detections() { + ::viam::service::vision::v1::Detection* _add = _internal_add_detections(); // @@protoc_insertion_point(field_add:viam.service.vision.v1.CaptureAllFromCameraResponse.detections) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::service::vision::v1::Detection>& CaptureAllFromCameraResponse::detections() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::vision::v1::Detection >& +CaptureAllFromCameraResponse::detections() const { // @@protoc_insertion_point(field_list:viam.service.vision.v1.CaptureAllFromCameraResponse.detections) - return _internal_detections(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::service::vision::v1::Detection>& -CaptureAllFromCameraResponse::_internal_detections() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.detections_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::service::vision::v1::Detection>* -CaptureAllFromCameraResponse::_internal_mutable_detections() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.detections_; + return detections_; } // repeated .viam.service.vision.v1.Classification classifications = 3 [json_name = "classifications"]; inline int CaptureAllFromCameraResponse::_internal_classifications_size() const { - return _internal_classifications().size(); + return classifications_.size(); } inline int CaptureAllFromCameraResponse::classifications_size() const { return _internal_classifications_size(); } inline void CaptureAllFromCameraResponse::clear_classifications() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.classifications_.Clear(); + classifications_.Clear(); } -inline ::viam::service::vision::v1::Classification* CaptureAllFromCameraResponse::mutable_classifications(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::service::vision::v1::Classification* CaptureAllFromCameraResponse::mutable_classifications(int index) { // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.CaptureAllFromCameraResponse.classifications) - return _internal_mutable_classifications()->Mutable(index); + return classifications_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::service::vision::v1::Classification>* CaptureAllFromCameraResponse::mutable_classifications() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::vision::v1::Classification >* +CaptureAllFromCameraResponse::mutable_classifications() { // @@protoc_insertion_point(field_mutable_list:viam.service.vision.v1.CaptureAllFromCameraResponse.classifications) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_classifications(); + return &classifications_; +} +inline const ::viam::service::vision::v1::Classification& CaptureAllFromCameraResponse::_internal_classifications(int index) const { + return classifications_.Get(index); } -inline const ::viam::service::vision::v1::Classification& CaptureAllFromCameraResponse::classifications(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::service::vision::v1::Classification& CaptureAllFromCameraResponse::classifications(int index) const { // @@protoc_insertion_point(field_get:viam.service.vision.v1.CaptureAllFromCameraResponse.classifications) - return _internal_classifications().Get(index); + return _internal_classifications(index); } -inline ::viam::service::vision::v1::Classification* CaptureAllFromCameraResponse::add_classifications() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::service::vision::v1::Classification* _add = _internal_mutable_classifications()->Add(); +inline ::viam::service::vision::v1::Classification* CaptureAllFromCameraResponse::_internal_add_classifications() { + return classifications_.Add(); +} +inline ::viam::service::vision::v1::Classification* CaptureAllFromCameraResponse::add_classifications() { + ::viam::service::vision::v1::Classification* _add = _internal_add_classifications(); // @@protoc_insertion_point(field_add:viam.service.vision.v1.CaptureAllFromCameraResponse.classifications) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::service::vision::v1::Classification>& CaptureAllFromCameraResponse::classifications() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::vision::v1::Classification >& +CaptureAllFromCameraResponse::classifications() const { // @@protoc_insertion_point(field_list:viam.service.vision.v1.CaptureAllFromCameraResponse.classifications) - return _internal_classifications(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::service::vision::v1::Classification>& -CaptureAllFromCameraResponse::_internal_classifications() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.classifications_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::service::vision::v1::Classification>* -CaptureAllFromCameraResponse::_internal_mutable_classifications() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.classifications_; + return classifications_; } // repeated .viam.common.v1.PointCloudObject objects = 4 [json_name = "objects"]; inline int CaptureAllFromCameraResponse::_internal_objects_size() const { - return _internal_objects().size(); + return objects_.size(); } inline int CaptureAllFromCameraResponse::objects_size() const { return _internal_objects_size(); } -inline ::viam::common::v1::PointCloudObject* CaptureAllFromCameraResponse::mutable_objects(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::viam::common::v1::PointCloudObject* CaptureAllFromCameraResponse::mutable_objects(int index) { // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.CaptureAllFromCameraResponse.objects) - return _internal_mutable_objects()->Mutable(index); + return objects_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::viam::common::v1::PointCloudObject>* CaptureAllFromCameraResponse::mutable_objects() - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::PointCloudObject >* +CaptureAllFromCameraResponse::mutable_objects() { // @@protoc_insertion_point(field_mutable_list:viam.service.vision.v1.CaptureAllFromCameraResponse.objects) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_objects(); + return &objects_; +} +inline const ::viam::common::v1::PointCloudObject& CaptureAllFromCameraResponse::_internal_objects(int index) const { + return objects_.Get(index); } -inline const ::viam::common::v1::PointCloudObject& CaptureAllFromCameraResponse::objects(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::viam::common::v1::PointCloudObject& CaptureAllFromCameraResponse::objects(int index) const { // @@protoc_insertion_point(field_get:viam.service.vision.v1.CaptureAllFromCameraResponse.objects) - return _internal_objects().Get(index); + return _internal_objects(index); } -inline ::viam::common::v1::PointCloudObject* CaptureAllFromCameraResponse::add_objects() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::viam::common::v1::PointCloudObject* _add = _internal_mutable_objects()->Add(); +inline ::viam::common::v1::PointCloudObject* CaptureAllFromCameraResponse::_internal_add_objects() { + return objects_.Add(); +} +inline ::viam::common::v1::PointCloudObject* CaptureAllFromCameraResponse::add_objects() { + ::viam::common::v1::PointCloudObject* _add = _internal_add_objects(); // @@protoc_insertion_point(field_add:viam.service.vision.v1.CaptureAllFromCameraResponse.objects) return _add; } -inline const ::google::protobuf::RepeatedPtrField<::viam::common::v1::PointCloudObject>& CaptureAllFromCameraResponse::objects() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::PointCloudObject >& +CaptureAllFromCameraResponse::objects() const { // @@protoc_insertion_point(field_list:viam.service.vision.v1.CaptureAllFromCameraResponse.objects) - return _internal_objects(); -} -inline const ::google::protobuf::RepeatedPtrField<::viam::common::v1::PointCloudObject>& -CaptureAllFromCameraResponse::_internal_objects() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.objects_; -} -inline ::google::protobuf::RepeatedPtrField<::viam::common::v1::PointCloudObject>* -CaptureAllFromCameraResponse::_internal_mutable_objects() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.objects_; + return objects_; } // .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool CaptureAllFromCameraResponse::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} inline bool CaptureAllFromCameraResponse::has_extra() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.extra_ != nullptr); - return value; + return _internal_has_extra(); } -inline const ::google::protobuf::Struct& CaptureAllFromCameraResponse::_internal_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.extra_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Struct_default_instance_); +inline const ::PROTOBUF_NAMESPACE_ID::Struct& CaptureAllFromCameraResponse::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& CaptureAllFromCameraResponse::extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::PROTOBUF_NAMESPACE_ID::Struct& CaptureAllFromCameraResponse::extra() const { // @@protoc_insertion_point(field_get:viam.service.vision.v1.CaptureAllFromCameraResponse.extra) return _internal_extra(); } -inline void CaptureAllFromCameraResponse::unsafe_arena_set_allocated_extra(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); +inline void CaptureAllFromCameraResponse::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + extra_ = extra; + if (extra) { + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.vision.v1.CaptureAllFromCameraResponse.extra) } -inline ::google::protobuf::Struct* CaptureAllFromCameraResponse::release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Struct* released = _impl_.extra_; - _impl_.extra_ = nullptr; +inline ::PROTOBUF_NAMESPACE_ID::Struct* CaptureAllFromCameraResponse::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); + 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 released; + return temp; } -inline ::google::protobuf::Struct* CaptureAllFromCameraResponse::unsafe_arena_release_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::PROTOBUF_NAMESPACE_ID::Struct* CaptureAllFromCameraResponse::unsafe_arena_release_extra() { // @@protoc_insertion_point(field_release:viam.service.vision.v1.CaptureAllFromCameraResponse.extra) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Struct* temp = _impl_.extra_; - _impl_.extra_ = nullptr; + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; return temp; } -inline ::google::protobuf::Struct* CaptureAllFromCameraResponse::_internal_mutable_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; - if (_impl_.extra_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArena()); - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(p); +inline ::PROTOBUF_NAMESPACE_ID::Struct* CaptureAllFromCameraResponse::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; } - return _impl_.extra_; + return extra_; } -inline ::google::protobuf::Struct* CaptureAllFromCameraResponse::mutable_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_extra(); +inline ::PROTOBUF_NAMESPACE_ID::Struct* CaptureAllFromCameraResponse::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); // @@protoc_insertion_point(field_mutable:viam.service.vision.v1.CaptureAllFromCameraResponse.extra) return _msg; } -inline void CaptureAllFromCameraResponse::set_allocated_extra(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void CaptureAllFromCameraResponse::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.extra_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + 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) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + } else { - _impl_._has_bits_[0] &= ~0x00000002u; + } - - _impl_.extra_ = reinterpret_cast<::google::protobuf::Struct*>(value); + extra_ = extra; // @@protoc_insertion_point(field_set_allocated:viam.service.vision.v1.CaptureAllFromCameraResponse.extra) } @@ -6310,86 +5563,106 @@ inline void CaptureAllFromCameraResponse::set_allocated_extra(::google::protobuf // bool classifications_supported = 1 [json_name = "classificationsSupported"]; inline void GetPropertiesResponse::clear_classifications_supported() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.classifications_supported_ = false; + classifications_supported_ = false; +} +inline bool GetPropertiesResponse::_internal_classifications_supported() const { + return classifications_supported_; } inline bool GetPropertiesResponse::classifications_supported() const { // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetPropertiesResponse.classifications_supported) return _internal_classifications_supported(); } +inline void GetPropertiesResponse::_internal_set_classifications_supported(bool value) { + + classifications_supported_ = value; +} inline void GetPropertiesResponse::set_classifications_supported(bool value) { _internal_set_classifications_supported(value); // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetPropertiesResponse.classifications_supported) } -inline bool GetPropertiesResponse::_internal_classifications_supported() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.classifications_supported_; -} -inline void GetPropertiesResponse::_internal_set_classifications_supported(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.classifications_supported_ = value; -} // bool detections_supported = 2 [json_name = "detectionsSupported"]; inline void GetPropertiesResponse::clear_detections_supported() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.detections_supported_ = false; + detections_supported_ = false; +} +inline bool GetPropertiesResponse::_internal_detections_supported() const { + return detections_supported_; } inline bool GetPropertiesResponse::detections_supported() const { // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetPropertiesResponse.detections_supported) return _internal_detections_supported(); } +inline void GetPropertiesResponse::_internal_set_detections_supported(bool value) { + + detections_supported_ = value; +} inline void GetPropertiesResponse::set_detections_supported(bool value) { _internal_set_detections_supported(value); // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetPropertiesResponse.detections_supported) } -inline bool GetPropertiesResponse::_internal_detections_supported() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.detections_supported_; -} -inline void GetPropertiesResponse::_internal_set_detections_supported(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.detections_supported_ = value; -} // bool object_point_clouds_supported = 3 [json_name = "objectPointCloudsSupported"]; inline void GetPropertiesResponse::clear_object_point_clouds_supported() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.object_point_clouds_supported_ = false; + object_point_clouds_supported_ = false; +} +inline bool GetPropertiesResponse::_internal_object_point_clouds_supported() const { + return object_point_clouds_supported_; } inline bool GetPropertiesResponse::object_point_clouds_supported() const { // @@protoc_insertion_point(field_get:viam.service.vision.v1.GetPropertiesResponse.object_point_clouds_supported) return _internal_object_point_clouds_supported(); } +inline void GetPropertiesResponse::_internal_set_object_point_clouds_supported(bool value) { + + object_point_clouds_supported_ = value; +} inline void GetPropertiesResponse::set_object_point_clouds_supported(bool value) { _internal_set_object_point_clouds_supported(value); // @@protoc_insertion_point(field_set:viam.service.vision.v1.GetPropertiesResponse.object_point_clouds_supported) } -inline bool GetPropertiesResponse::_internal_object_point_clouds_supported() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.object_point_clouds_supported_; -} -inline void GetPropertiesResponse::_internal_set_object_point_clouds_supported(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.object_point_clouds_supported_ = value; -} #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) + } // namespace v1 } // namespace vision } // namespace service } // namespace viam - // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_service_2fvision_2fv1_2fvision_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_service_2fvision_2fv1_2fvision_2eproto diff --git a/src/viam/api/tagger/v1/tagger.grpc.pb.cc b/src/viam/api/tagger/v1/tagger.grpc.pb.cc index ec0ef4449..8fdaf4aa1 100644 --- a/src/viam/api/tagger/v1/tagger.grpc.pb.cc +++ b/src/viam/api/tagger/v1/tagger.grpc.pb.cc @@ -6,19 +6,19 @@ #include "tagger/v1/tagger.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace tagger { namespace v1 { diff --git a/src/viam/api/tagger/v1/tagger.grpc.pb.h b/src/viam/api/tagger/v1/tagger.grpc.pb.h index f8a2afaf7..0232467db 100644 --- a/src/viam/api/tagger/v1/tagger.grpc.pb.h +++ b/src/viam/api/tagger/v1/tagger.grpc.pb.h @@ -7,23 +7,24 @@ #include "tagger/v1/tagger.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace tagger { namespace v1 { diff --git a/src/viam/api/tagger/v1/tagger.pb.cc b/src/viam/api/tagger/v1/tagger.pb.cc index bda2335b9..24f8c455a 100644 --- a/src/viam/api/tagger/v1/tagger.pb.cc +++ b/src/viam/api/tagger/v1/tagger.pb.cc @@ -4,100 +4,75 @@ #include "tagger/v1/tagger.pb.h" #include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" + +#include +#include +#include +#include +#include +#include +#include // @@protoc_insertion_point(includes) +#include -// Must be included last. -#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace tagger { namespace v1 { } // namespace v1 } // namespace tagger -static constexpr const ::_pb::EnumDescriptor** - file_level_enum_descriptors_tagger_2fv1_2ftagger_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_tagger_2fv1_2ftagger_2eproto = nullptr; -const ::uint32_t TableStruct_tagger_2fv1_2ftagger_2eproto::offsets[1] = {}; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_tagger_2fv1_2ftagger_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_tagger_2fv1_2ftagger_2eproto = nullptr; +const uint32_t TableStruct_tagger_2fv1_2ftagger_2eproto::offsets[1] = {}; static constexpr ::_pbi::MigrationSchema* schemas = nullptr; static constexpr ::_pb::Message* const* file_default_instances = nullptr; -const char descriptor_table_protodef_tagger_2fv1_2ftagger_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n\026tagger/v1/tagger.proto\022\ttagger.v1\032 goo" - "gle/protobuf/descriptor.proto:3\n\004tags\022\035." - "google.protobuf.FieldOptions\030\303\3403 \001(\tR\004ta" - "gs:>\n\noneof_tags\022\035.google.protobuf.Oneof" - "Options\030\303\3403 \001(\tR\toneofTagsB\225\001\n\rcom.tagge" - "r.v1B\013TaggerProtoP\001Z2github.com/srikrsna" - "/protoc-gen-gotag/tagger;tagger\242\002\003TXX\252\002\t" - "Tagger.V1\312\002\tTagger\\V1\342\002\025Tagger\\V1\\GPBMet" - "adata\352\002\nTagger::V1b\006proto3" -}; -static const ::_pbi::DescriptorTable* const descriptor_table_tagger_2fv1_2ftagger_2eproto_deps[1] = - { - &::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto, + +const char descriptor_table_protodef_tagger_2fv1_2ftagger_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\026tagger/v1/tagger.proto\022\ttagger.v1\032 goo" + "gle/protobuf/descriptor.proto:3\n\004tags\022\035." + "google.protobuf.FieldOptions\030\303\3403 \001(\tR\004ta" + "gs:>\n\noneof_tags\022\035.google.protobuf.Oneof" + "Options\030\303\3403 \001(\tR\toneofTagsB4Z2github.com" + "/srikrsna/protoc-gen-gotag/tagger;tagger" + "b\006proto3" + ; +static const ::_pbi::DescriptorTable* const descriptor_table_tagger_2fv1_2ftagger_2eproto_deps[1] = { + &::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto, }; -static ::absl::once_flag descriptor_table_tagger_2fv1_2ftagger_2eproto_once; +static ::_pbi::once_flag descriptor_table_tagger_2fv1_2ftagger_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_tagger_2fv1_2ftagger_2eproto = { - false, - false, - 346, - descriptor_table_protodef_tagger_2fv1_2ftagger_2eproto, + false, false, 248, descriptor_table_protodef_tagger_2fv1_2ftagger_2eproto, "tagger/v1/tagger.proto", - &descriptor_table_tagger_2fv1_2ftagger_2eproto_once, - descriptor_table_tagger_2fv1_2ftagger_2eproto_deps, - 1, - 0, - schemas, - file_default_instances, - TableStruct_tagger_2fv1_2ftagger_2eproto::offsets, - nullptr, - file_level_enum_descriptors_tagger_2fv1_2ftagger_2eproto, + &descriptor_table_tagger_2fv1_2ftagger_2eproto_once, descriptor_table_tagger_2fv1_2ftagger_2eproto_deps, 1, 0, + schemas, file_default_instances, TableStruct_tagger_2fv1_2ftagger_2eproto::offsets, + nullptr, file_level_enum_descriptors_tagger_2fv1_2ftagger_2eproto, file_level_service_descriptors_tagger_2fv1_2ftagger_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_tagger_2fv1_2ftagger_2eproto_getter() { return &descriptor_table_tagger_2fv1_2ftagger_2eproto; } + // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_tagger_2fv1_2ftagger_2eproto(&descriptor_table_tagger_2fv1_2ftagger_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_tagger_2fv1_2ftagger_2eproto(&descriptor_table_tagger_2fv1_2ftagger_2eproto); namespace tagger { namespace v1 { const std::string tags_default(""); -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::FieldOptions, - ::google::protobuf::internal::StringTypeTraits, 9, false> +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::FieldOptions, + ::PROTOBUF_NAMESPACE_ID::internal::StringTypeTraits, 9, false> tags(kTagsFieldNumber, tags_default, nullptr); const std::string oneof_tags_default(""); -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::OneofOptions, - ::google::protobuf::internal::StringTypeTraits, 9, false> +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::OneofOptions, + ::PROTOBUF_NAMESPACE_ID::internal::StringTypeTraits, 9, false> oneof_tags(kOneofTagsFieldNumber, oneof_tags_default, nullptr); + // @@protoc_insertion_point(namespace_scope) } // namespace v1 } // namespace tagger -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_OPEN +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" +#include diff --git a/src/viam/api/tagger/v1/tagger.pb.h b/src/viam/api/tagger/v1/tagger.pb.h index 5a4dadc22..24ef802b9 100644 --- a/src/viam/api/tagger/v1/tagger.pb.h +++ b/src/viam/api/tagger/v1/tagger.pb.h @@ -1,102 +1,83 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tagger/v1/tagger.proto -// Protobuf C++ Version: 4.25.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_tagger_2fv1_2ftagger_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_tagger_2fv1_2ftagger_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_tagger_2fv1_2ftagger_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_tagger_2fv1_2ftagger_2eproto #include #include -#include -#include -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/descriptor.pb.h" +#include +#if PROTOBUF_VERSION < 3020000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3020003 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include // @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - +#include #define PROTOBUF_INTERNAL_EXPORT_tagger_2fv1_2ftagger_2eproto - -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_tagger_2fv1_2ftagger_2eproto { - static const ::uint32_t offsets[]; + static const uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_tagger_2fv1_2ftagger_2eproto; -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tagger_2fv1_2ftagger_2eproto; +PROTOBUF_NAMESPACE_OPEN +PROTOBUF_NAMESPACE_CLOSE namespace tagger { namespace v1 { // =================================================================== - // =================================================================== - - static const int kTagsFieldNumber = 847939; -extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::FieldOptions, - ::google::protobuf::internal::StringTypeTraits, 9, false > +extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::FieldOptions, + ::PROTOBUF_NAMESPACE_ID::internal::StringTypeTraits, 9, false > tags; static const int kOneofTagsFieldNumber = 847939; -extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::OneofOptions, - ::google::protobuf::internal::StringTypeTraits, 9, false > +extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::OneofOptions, + ::PROTOBUF_NAMESPACE_ID::internal::StringTypeTraits, 9, false > oneof_tags; // =================================================================== - #ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ #ifdef __GNUC__ -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop #endif // __GNUC__ // @@protoc_insertion_point(namespace_scope) + } // namespace v1 } // namespace tagger - // @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_tagger_2fv1_2ftagger_2eproto_2epb_2eh +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tagger_2fv1_2ftagger_2eproto From 2fc0e7d407c6ecb63a756cc0f2044a67f6337abf Mon Sep 17 00:00:00 2001 From: Ethan Date: Wed, 29 Jan 2025 10:24:31 -0500 Subject: [PATCH 2/2] Update api_proto_tag.lock --- src/viam/api/api_proto_tag.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/viam/api/api_proto_tag.lock b/src/viam/api/api_proto_tag.lock index 8b1378917..b43226d3e 100644 --- a/src/viam/api/api_proto_tag.lock +++ b/src/viam/api/api_proto_tag.lock @@ -1 +1 @@ - +v0.1.387